(self.webpackChunkcms=self.webpackChunkcms||[]).push([[179],{61764:()=>{(function(Z){const v=Z.en=Z.en||{};v.dictionary=Object.assign(v.dictionary||{},{Big:"Big",Default:"Default","Document colors":"Document colors","Font Background Color":"Font Background Color","Font Color":"Font Color","Font Family":"Font Family","Font Size":"Font Size",Huge:"Huge",Small:"Small",Tiny:"Tiny"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),(()=>{var Z={304:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(645),h=a.n(c)()(function(d){return d[1]});h.push([n.id,".ck .ck-button.ck-color-table__remove-color{align-items:center;display:flex;width:100%}label.ck.ck-color-grid__label{font-weight:unset}",""]);const p=h},499:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(645),h=a.n(c)()(function(d){return d[1]});h.push([n.id,".ck-content .text-tiny{font-size:.7em}.ck-content .text-small{font-size:.85em}.ck-content .text-big{font-size:1.4em}.ck-content .text-huge{font-size:1.8em}",""]);const p=h},730:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(645),h=a.n(c)()(function(d){return d[1]});h.push([n.id,".ck .ck-color-input{background-color:var(--ck-color-button-default-hover-background);border-radius:var(--ck-border-radius);box-sizing:border-box;font-size:.77rem;height:10px;margin:0 5px 8px 8px;outline:none;padding:3px 0 0 2px;width:53px}.ck .ck-color-input:focus{background-color:var(--ck-color-button-on-background)}.ck .ck-color-picker{margin:0 0 8px}.ck .ck-color-picker>svg{color:var(--ck-color-base-text)!important;display:block!important;pointer-events:none!important;width:14px}.ck .ck-color-picker-save{background-color:var(--ck-color-button-default-hover-background);margin:0 0 8px 5px}.ck .ck-color-picker-save:hover{background-color:var(--ck-color-button-on-background)!important}.ck .ck-color-picker-save>svg{stroke:var(--ck-color-base-active);display:block!important}#primary-2,.ck .ck-color-picker-save>svg>#primary{stroke:var(--ck-color-base-text)}label.ck.ck-color-grid__label{font-weight:unset}.picker-anchor{display:block;position:relative!important}.jsColorCw{box-shadow:var(--ck-drop-shadow),0 0;left:0!important;margin:0 auto!important;position:absolute!important;right:0!important;top:-2px!important;width:127px!important}.jsColorCw,.jsColorCw>div{border-radius:3px!important}.ck.ck-dropdown__panel{position:relative}",""]);const p=h},645:n=>{"use strict";n.exports=function(s){var a=[];return a.toString=function(){return this.map(function(c){var h=s(c);return c[2]?"@media ".concat(c[2]," {").concat(h,"}"):h}).join("")},a.i=function(c,h,p){typeof c=="string"&&(c=[[null,c,""]]);var d={};if(p)for(var k=0;k<this.length;k++){var M=this[k][0];M!=null&&(d[M]=!0)}for(var C=0;C<c.length;C++){var w=[].concat(c[C]);p&&d[w[0]]||(h&&(w[2]?w[2]="".concat(h," and ").concat(w[2]):w[2]=h),a.push(w))}},a}},379:(n,s,a)=>{"use strict";var c,h=function(){return c===void 0&&(c=Boolean(window&&document&&document.all&&!window.atob)),c},p=function(){var x={};return function(T){if(x[T]===void 0){var u=document.querySelector(T);if(window.HTMLIFrameElement&&u instanceof window.HTMLIFrameElement)try{u=u.contentDocument.head}catch{u=null}x[T]=u}return x[T]}}(),d=[];function k(x){for(var T=-1,u=0;u<d.length;u++)if(d[u].identifier===x){T=u;break}return T}function M(x,T){for(var u={},b=[],E=0;E<x.length;E++){var A=x[E],R=T.base?A[0]+T.base:A[0],H=u[R]||0,z="".concat(R," ").concat(H);u[R]=H+1;var V=k(z),$={css:A[1],media:A[2],sourceMap:A[3]};V!==-1?(d[V].references++,d[V].updater($)):d.push({identifier:z,updater:D($,T),references:1}),b.push(z)}return b}function C(x){var T=document.createElement("style"),u=x.attributes||{};if(u.nonce===void 0){var b=a.nc;b&&(u.nonce=b)}if(Object.keys(u).forEach(function(A){T.setAttribute(A,u[A])}),typeof x.insert=="function")x.insert(T);else{var E=p(x.insert||"head");if(!E)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");E.appendChild(T)}return T}var w,I=(w=[],function(x,T){return w[x]=T,w.filter(Boolean).join(`
`)});function F(x,T,u,b){var E=u?"":b.media?"@media ".concat(b.media," {").concat(b.css,"}"):b.css;if(x.styleSheet)x.styleSheet.cssText=I(T,E);else{var A=document.createTextNode(E),R=x.childNodes;R[T]&&x.removeChild(R[T]),R.length?x.insertBefore(A,R[T]):x.appendChild(A)}}function U(x,T,u){var b=u.css,E=u.media,A=u.sourceMap;if(E?x.setAttribute("media",E):x.removeAttribute("media"),A&&typeof btoa<"u"&&(b+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(A))))," */")),x.styleSheet)x.styleSheet.cssText=b;else{for(;x.firstChild;)x.removeChild(x.firstChild);x.appendChild(document.createTextNode(b))}}var B=null,N=0;function D(x,T){var u,b,E;if(T.singleton){var A=N++;u=B||(B=C(T)),b=F.bind(null,u,A,!1),E=F.bind(null,u,A,!0)}else u=C(T),b=U.bind(null,u,T),E=function(){(function(R){if(R.parentNode===null)return!1;R.parentNode.removeChild(R)})(u)};return b(x),function(R){if(R){if(R.css===x.css&&R.media===x.media&&R.sourceMap===x.sourceMap)return;b(x=R)}else E()}}n.exports=function(x,T){(T=T||{}).singleton||typeof T.singleton=="boolean"||(T.singleton=h());var u=M(x=x||[],T);return function(b){if(b=b||[],Object.prototype.toString.call(b)==="[object Array]"){for(var E=0;E<u.length;E++){var A=k(u[E]);d[A].references--}for(var R=M(b,T),H=0;H<u.length;H++){var z=k(u[H]);d[z].references===0&&(d[z].updater(),d.splice(z,1))}u=R}}}},704:(n,s,a)=>{n.exports=a(79)("./src/core.js")},492:(n,s,a)=>{n.exports=a(79)("./src/engine.js")},273:(n,s,a)=>{n.exports=a(79)("./src/ui.js")},209:(n,s,a)=>{n.exports=a(79)("./src/utils.js")},79:n=>{"use strict";n.exports=CKEditor5.dll}},v={};function t(n){var s=v[n];if(s!==void 0)return s.exports;var a=v[n]={id:n,exports:{}};return Z[n](a,a.exports,t),a.exports}t.n=n=>{var s=n&&n.__esModule?()=>n.default:()=>n;return t.d(s,{a:s}),s},t.d=(n,s)=>{for(var a in s)t.o(s,a)&&!t.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:s[a]})},t.o=(n,s)=>Object.prototype.hasOwnProperty.call(n,s),t.r=n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.nc=void 0;var r={};(()=>{"use strict";t.r(r),t.d(r,{Font:()=>un,FontBackgroundColor:()=>mn,FontBackgroundColorEditing:()=>bt,FontBackgroundColorUI:()=>It,FontColor:()=>$e,FontColorEditing:()=>mt,FontColorUI:()=>ln,FontFamily:()=>oe,FontFamilyEditing:()=>ee,FontFamilyUI:()=>q,FontSize:()=>Ne,FontSizeEditing:()=>ue,FontSizeUI:()=>Ce});var n=t(704);/**
 * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */class s extends n.Command{constructor(je,$t){super(je),this.attributeKey=$t}refresh(){const je=this.editor.model,$t=je.document;this.value=$t.selection.getAttribute(this.attributeKey),this.isEnabled=je.schema.checkAttributeInSelection($t.selection,this.attributeKey)}execute(je={}){const $t=this.editor.model,et=$t.document.selection,Kt=je.value;$t.change(kn=>{if(et.isCollapsed)Kt?kn.setSelectionAttribute(this.attributeKey,Kt):kn.removeSelectionAttribute(this.attributeKey);else{const Tn=$t.schema.getValidRanges(et.getRanges(),this.attributeKey);for(const ht of Tn)Kt?kn.setAttribute(this.attributeKey,Kt,ht):kn.removeAttribute(this.attributeKey,ht)}})}}var a=t(273),c=t(209);/**
 * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */class h extends c.Collection{constructor(je){super(je),this.set("isEmpty",!0),this.on("change",()=>{this.set("isEmpty",this.length===0)})}add(je,$t){this.find(et=>et.color===je.color)||super.add(je,$t)}hasColor(je){return!!this.find($t=>$t.color===je)}}(0,c.mix)(h,c.ObservableMixin);var p=t(379),d=t.n(p),k=t(304),M={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};d()(k.Z,M),k.Z.locals;var C=t(730),w={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};d()(C.Z,w),C.Z.locals;/**
 * jscolor - JavaScript Color Picker
 *
 * @link    http://jscolor.com
 * @license For open source use: GPLv3
 *          For commercial use: JSColor Commercial License
 * @author  Jan Odvarko
 * @version 2.0.5
 *
 * See usage examples at http://jscolor.com/examples/
 */var I,F,U,B,N,D={register:function(){D.attachEvent(document,"mousedown",D.onDocumentMouseDown),D.attachEvent(document,"touchstart",D.onDocumentTouchStart),D.attachEvent(window,"resize",D.onWindowResize)},isColorAttrSupported:(N=document.createElement("input"),!(!N.setAttribute||(N.setAttribute("type","color"),N.type.toLowerCase()!="color"))),isCanvasSupported:function(){var Be=document.createElement("canvas");return!(!Be.getContext||!Be.getContext("2d"))}(),fetchElement:function(Be){return typeof Be=="string"?document.getElementById(Be):Be},isElementType:function(Be,je){return Be.nodeName.toLowerCase()===je.toLowerCase()},attachEvent:function(Be,je,$t){Be.addEventListener?Be.addEventListener(je,$t,!1):Be.attachEvent&&Be.attachEvent("on"+je,$t)},detachEvent:function(Be,je,$t){Be.removeEventListener?Be.removeEventListener(je,$t,!1):Be.detachEvent&&Be.detachEvent("on"+je,$t)},_attachedGroupEvents:{},attachGroupEvent:function(Be,je,$t,et){D._attachedGroupEvents.hasOwnProperty(Be)||(D._attachedGroupEvents[Be]=[]),D._attachedGroupEvents[Be].push([je,$t,et]),D.attachEvent(je,$t,et)},detachGroupEvents:function(Be){if(D._attachedGroupEvents.hasOwnProperty(Be)){for(var je=0;je<D._attachedGroupEvents[Be].length;je+=1){var $t=D._attachedGroupEvents[Be][je];D.detachEvent($t[0],$t[1],$t[2])}delete D._attachedGroupEvents[Be]}},warn:function(Be){window.console&&window.console.warn&&window.console.warn(Be)},preventDefault:function(Be){Be.preventDefault&&Be.preventDefault(),Be.returnValue=!1},captureTarget:function(Be){Be.setCapture&&(D._capturedTarget=Be,D._capturedTarget.setCapture())},releaseTarget:function(){D._capturedTarget&&(D._capturedTarget.releaseCapture(),D._capturedTarget=null)},fireEvent:function(Be,je){if(Be)if(document.createEvent)($t=document.createEvent("HTMLEvents")).initEvent(je,!0,!0),Be.dispatchEvent($t);else if(document.createEventObject){var $t=document.createEventObject();Be.fireEvent("on"+je,$t)}else Be["on"+je]&&Be["on"+je]()},classNameToList:function(Be){return Be.replace(/^\s+|\s+$/g,"").split(/\s+/)},hasClass:function(Be,je){return!!je&&(" "+Be.className.replace(/\s+/g," ")+" ").indexOf(" "+je+" ")!=-1},setClass:function(Be,je){for(var $t=D.classNameToList(je),et=0;et<$t.length;et+=1)D.hasClass(Be,$t[et])||(Be.className+=(Be.className?" ":"")+$t[et])},unsetClass:function(Be,je){for(var $t=D.classNameToList(je),et=0;et<$t.length;et+=1){var Kt=new RegExp("^\\s*"+$t[et]+"\\s*|\\s*"+$t[et]+"\\s*$|\\s+"+$t[et]+"(\\s+)","g");Be.className=Be.className.replace(Kt,"$1")}},getStyle:function(Be){return window.getComputedStyle?window.getComputedStyle(Be):Be.currentStyle},setStyle:(F=document.createElement("div"),U=function(Be){for(var je=0;je<Be.length;je+=1)if(Be[je]in F.style)return Be[je]},B={borderRadius:U(["borderRadius","MozBorderRadius","webkitBorderRadius"]),boxShadow:U(["boxShadow","MozBoxShadow","webkitBoxShadow"])},function(Be,je,$t){switch(je.toLowerCase()){case"opacity":var et=Math.round(100*parseFloat($t));Be.style.opacity=$t,Be.style.filter="alpha(opacity="+et+")";break;default:Be.style[B[je]]=$t}}),setBorderRadius:function(Be,je){D.setStyle(Be,"borderRadius",je||"0")},setBoxShadow:function(Be,je){D.setStyle(Be,"boxShadow",je||"none")},getElementPos:function(Be,je){var $t=0,et=0,Kt=Be.getBoundingClientRect();if($t=Kt.left,et=Kt.top,!je){var kn=D.getViewPos();$t+=kn[0],et+=kn[1]}return[$t,et]},getElementSize:function(Be){return[Be.offsetWidth,Be.offsetHeight]},getAbsPointerPos:function(Be){Be||(Be=window.event);var je=0,$t=0;return Be.changedTouches!==void 0&&Be.changedTouches.length?(je=Be.changedTouches[0].clientX,$t=Be.changedTouches[0].clientY):typeof Be.clientX=="number"&&(je=Be.clientX,$t=Be.clientY),{x:je,y:$t}},getRelPointerPos:function(Be){Be||(Be=window.event);var je=(Be.target||Be.srcElement).getBoundingClientRect(),$t=0,et=0;return Be.changedTouches!==void 0&&Be.changedTouches.length?($t=Be.changedTouches[0].clientX,et=Be.changedTouches[0].clientY):typeof Be.clientX=="number"&&($t=Be.clientX,et=Be.clientY),{x:$t-je.left,y:et-je.top}},getViewPos:function(){var Be=document.documentElement;return[(window.pageXOffset||Be.scrollLeft)-(Be.clientLeft||0),(window.pageYOffset||Be.scrollTop)-(Be.clientTop||0)]},getViewSize:function(){var Be=document.documentElement;return[window.innerWidth||Be.clientWidth,window.innerHeight||Be.clientHeight]},redrawPosition:function(){if(D.picker&&D.picker.owner){var Be,je,$t=D.picker.owner;$t.fixed?(Be=D.getElementPos($t.targetElement,!0),je=[0,0]):(Be=D.getElementPos($t.targetElement),je=D.getViewPos());var et,Kt,kn,Tn=D.getElementSize($t.targetElement),ht=D.getViewSize(),ot=D.getPickerOuterDims($t);switch($t.position.toLowerCase()){case"left":et=1,Kt=0,kn=-1;break;case"right":et=1,Kt=0,kn=1;break;case"top":et=0,Kt=1,kn=-1;break;default:et=0,Kt=1,kn=1}var Je=(Tn[Kt]+ot[Kt])/2;if($t.smartPosition)wt=[-je[et]+Be[et]+ot[et]>ht[et]&&-je[et]+Be[et]+Tn[et]/2>ht[et]/2&&Be[et]+Tn[et]-ot[et]>=0?Be[et]+Tn[et]-ot[et]:Be[et],-je[Kt]+Be[Kt]+Tn[Kt]+ot[Kt]-Je+Je*kn>ht[Kt]?-je[Kt]+Be[Kt]+Tn[Kt]/2>ht[Kt]/2&&Be[Kt]+Tn[Kt]-Je-Je*kn>=0?Be[Kt]+Tn[Kt]-Je-Je*kn:Be[Kt]+Tn[Kt]-Je+Je*kn:Be[Kt]+Tn[Kt]-Je+Je*kn>=0?Be[Kt]+Tn[Kt]-Je+Je*kn:Be[Kt]+Tn[Kt]-Je-Je*kn];else var wt=[Be[et],Be[Kt]+Tn[Kt]-Je+Je*kn];var ft=wt[et],vn=wt[Kt],ut=$t.fixed?"fixed":"absolute",Wt=(wt[0]+ot[0]>Be[0]||wt[0]<Be[0]+Tn[0])&&wt[1]+ot[1]<Be[1]+Tn[1];D._drawPosition($t,ft,vn,ut,Wt)}},_drawPosition:function(Be,je,$t,et,Kt){var kn=Kt?0:Be.shadowBlur;D.picker.wrap.style.position=et,D.picker.wrap.style.left=je+"px",D.picker.wrap.style.top=$t+"px",D.setBoxShadow(D.picker.boxS,Be.shadow?new D.BoxShadow(0,kn,Be.shadowBlur,0,Be.shadowColor):null)},getPickerDims:function(Be){var je=!!D.getSliderComponent(Be);return[2*Be.insetWidth+2*Be.padding+Be.width+(je?2*Be.insetWidth+D.getPadToSliderPadding(Be)+Be.sliderSize:0),2*Be.insetWidth+2*Be.padding+Be.height+(Be.closable?2*Be.insetWidth+Be.padding+Be.buttonHeight:0)]},getPickerOuterDims:function(Be){var je=D.getPickerDims(Be);return[je[0]+2*Be.borderWidth,je[1]+2*Be.borderWidth]},getPadToSliderPadding:function(Be){return Math.max(Be.padding,1.5*(2*Be.pointerBorderWidth+Be.pointerThickness))},getPadYComponent:function(Be){switch(Be.mode.charAt(1).toLowerCase()){case"v":return"v"}return"s"},getSliderComponent:function(Be){if(Be.mode.length>2)switch(Be.mode.charAt(2).toLowerCase()){case"s":return"s";case"v":return"v"}return null},onDocumentMouseDown:function(Be){Be||(Be=window.event);var je=Be.target||Be.srcElement;je._jscLinkedInstance?je._jscLinkedInstance.showOnClick&&(D.picker&&D.picker.owner?D.picker.owner.hide():je._jscLinkedInstance.show()):je._jscControlName?D.onControlPointerStart(Be,je,je._jscControlName,"mouse"):D.picker&&D.picker.owner&&D.picker.owner.hide()},onDocumentTouchStart:function(Be){Be||(Be=window.event);var je=Be.target||Be.srcElement;je._jscLinkedInstance?je._jscLinkedInstance.showOnClick&&je._jscLinkedInstance.show():je._jscControlName?D.onControlPointerStart(Be,je,je._jscControlName,"touch"):D.picker&&D.picker.owner&&D.picker.owner.hide()},onWindowResize:function(Be){D.redrawPosition()},onParentScroll:function(Be){D.picker&&D.picker.owner&&D.picker.owner.hide()},_pointerMoveEvent:{mouse:"mousemove",touch:"touchmove"},_pointerEndEvent:{mouse:"mouseup",touch:"touchend"},_pointerOrigin:null,_capturedTarget:null,onControlPointerStart:function(Be,je,$t,et){var Kt=je._jscInstance;D.preventDefault(Be),D.captureTarget(je);var kn=function(wt,ft){D.attachGroupEvent("drag",wt,D._pointerMoveEvent[et],D.onDocumentPointerMove(Be,je,$t,et,ft)),D.attachGroupEvent("drag",wt,D._pointerEndEvent[et],D.onDocumentPointerEnd(Be,je,$t,et))};if(kn(document,[0,0]),window.parent&&window.frameElement){var Tn=window.frameElement.getBoundingClientRect(),ht=[-Tn.left,-Tn.top];kn(window.parent.window.document,ht)}var ot=D.getAbsPointerPos(Be),Je=D.getRelPointerPos(Be);switch(D._pointerOrigin={x:ot.x-Je.x,y:ot.y-Je.y},$t){case"pad":switch(D.getSliderComponent(Kt)){case"s":Kt.hsv[1]===0&&Kt.fromHSV(null,100,null);break;case"v":Kt.hsv[2]===0&&Kt.fromHSV(null,null,100)}D.setPad(Kt,Be,0,0);break;case"sld":D.setSld(Kt,Be,0)}D.dispatchFineChange(Kt)},onDocumentPointerMove:function(Be,je,$t,et,Kt){return function(kn){var Tn=je._jscInstance;switch($t){case"pad":kn||(kn=window.event),D.setPad(Tn,kn,Kt[0],Kt[1]),D.dispatchFineChange(Tn);break;case"sld":kn||(kn=window.event),D.setSld(Tn,kn,Kt[1]),D.dispatchFineChange(Tn)}}},onDocumentPointerEnd:function(Be,je,$t,et){return function(Kt){var kn=je._jscInstance;D.detachGroupEvents("drag"),D.releaseTarget(),D.dispatchChange(kn)}},dispatchChange:function(Be){Be.valueElement&&D.isElementType(Be.valueElement,"input")&&D.fireEvent(Be.valueElement,"change")},dispatchFineChange:function(Be){Be.onFineChange&&(typeof Be.onFineChange=="string"?new Function(Be.onFineChange):Be.onFineChange).call(Be)},setPad:function(Be,je,$t,et){var Kt=D.getAbsPointerPos(je),kn=$t+Kt.x-D._pointerOrigin.x-Be.padding-Be.insetWidth,Tn=et+Kt.y-D._pointerOrigin.y-Be.padding-Be.insetWidth,ht=kn*(360/(Be.width-1)),ot=100-Tn*(100/(Be.height-1));switch(D.getPadYComponent(Be)){case"s":Be.fromHSV(ht,ot,null,D.leaveSld);break;case"v":Be.fromHSV(ht,null,ot,D.leaveSld)}},setSld:function(Be,je,$t){var et=100-($t+D.getAbsPointerPos(je).y-D._pointerOrigin.y-Be.padding-Be.insetWidth)*(100/(Be.height-1));switch(D.getSliderComponent(Be)){case"s":Be.fromHSV(null,et,null,D.leavePad);break;case"v":Be.fromHSV(null,null,et,D.leavePad)}},_vmlNS:"jsc_vml_",_vmlCSS:"jsc_vml_css_",_vmlReady:!1,initVML:function(){if(!D._vmlReady){var Be=document;if(Be.namespaces[D._vmlNS]||Be.namespaces.add(D._vmlNS,"urn:schemas-microsoft-com:vml"),!Be.styleSheets[D._vmlCSS]){var je=["shape","shapetype","group","background","path","formulas","handles","fill","stroke","shadow","textbox","textpath","imagedata","line","polyline","curve","rect","roundrect","oval","arc","image"],$t=Be.createStyleSheet();$t.owningElement.id=D._vmlCSS;for(var et=0;et<je.length;et+=1)$t.addRule(D._vmlNS+"\\:"+je[et],"behavior:url(#default#VML);")}D._vmlReady=!0}},createPalette:function(){var Be={elm:null,draw:null};if(D.isCanvasSupported){var je=document.createElement("canvas"),$t=je.getContext("2d"),et=function(Je,wt,ft){je.width=Je,je.height=wt,$t.clearRect(0,0,je.width,je.height);var vn=$t.createLinearGradient(0,0,je.width,0);vn.addColorStop(0,"#F00"),vn.addColorStop(1/6,"#FF0"),vn.addColorStop(2/6,"#0F0"),vn.addColorStop(.5,"#0FF"),vn.addColorStop(4/6,"#00F"),vn.addColorStop(5/6,"#F0F"),vn.addColorStop(1,"#F00"),$t.fillStyle=vn,$t.fillRect(0,0,je.width,je.height);var ut=$t.createLinearGradient(0,0,0,je.height);switch(ft.toLowerCase()){case"s":ut.addColorStop(0,"rgba(255,255,255,0)"),ut.addColorStop(1,"rgba(255,255,255,1)");break;case"v":ut.addColorStop(0,"rgba(0,0,0,0)"),ut.addColorStop(1,"rgba(0,0,0,1)")}$t.fillStyle=ut,$t.fillRect(0,0,je.width,je.height)};Be.elm=je,Be.draw=et}else{D.initVML();var Kt=document.createElement("div");Kt.style.position="relative",Kt.style.overflow="hidden";var kn=document.createElement(D._vmlNS+":fill");kn.type="gradient",kn.method="linear",kn.angle="90",kn.colors="16.67% #F0F, 33.33% #00F, 50% #0FF, 66.67% #0F0, 83.33% #FF0";var Tn=document.createElement(D._vmlNS+":rect");Tn.style.position="absolute",Tn.style.left="-1px",Tn.style.top="-1px",Tn.stroked=!1,Tn.appendChild(kn),Kt.appendChild(Tn);var ht=document.createElement(D._vmlNS+":fill");ht.type="gradient",ht.method="linear",ht.angle="180",ht.opacity="0";var ot=document.createElement(D._vmlNS+":rect");ot.style.position="absolute",ot.style.left="-1px",ot.style.top="-1px",ot.stroked=!1,ot.appendChild(ht),Kt.appendChild(ot),et=function(Je,wt,ft){switch(Kt.style.width=Je+"px",Kt.style.height=wt+"px",Tn.style.width=ot.style.width=Je+1+"px",Tn.style.height=ot.style.height=wt+1+"px",kn.color="#F00",kn.color2="#F00",ft.toLowerCase()){case"s":ht.color=ht.color2="#FFF";break;case"v":ht.color=ht.color2="#000"}},Be.elm=Kt,Be.draw=et}return Be},createSliderGradient:function(){var Be={elm:null,draw:null};if(D.isCanvasSupported){var je=document.createElement("canvas"),$t=je.getContext("2d"),et=function(ht,ot,Je,wt){je.width=ht,je.height=ot,$t.clearRect(0,0,je.width,je.height);var ft=$t.createLinearGradient(0,0,0,je.height);ft.addColorStop(0,Je),ft.addColorStop(1,wt),$t.fillStyle=ft,$t.fillRect(0,0,je.width,je.height)};Be.elm=je,Be.draw=et}else{D.initVML();var Kt=document.createElement("div");Kt.style.position="relative",Kt.style.overflow="hidden";var kn=document.createElement(D._vmlNS+":fill");kn.type="gradient",kn.method="linear",kn.angle="180";var Tn=document.createElement(D._vmlNS+":rect");Tn.style.position="absolute",Tn.style.left="-1px",Tn.style.top="-1px",Tn.stroked=!1,Tn.appendChild(kn),Kt.appendChild(Tn),et=function(ht,ot,Je,wt){Kt.style.width=ht+"px",Kt.style.height=ot+"px",Tn.style.width=ht+1+"px",Tn.style.height=ot+1+"px",kn.color=Je,kn.color2=wt},Be.elm=Kt,Be.draw=et}return Be},leaveValue:1,leaveStyle:2,leavePad:4,leaveSld:8,BoxShadow:(I=function(Be,je,$t,et,Kt,kn){this.hShadow=Be,this.vShadow=je,this.blur=$t,this.spread=et,this.color=Kt,this.inset=!!kn},I.prototype.toString=function(){var Be=[Math.round(this.hShadow)+"px",Math.round(this.vShadow)+"px",Math.round(this.blur)+"px",Math.round(this.spread)+"px",this.color];return this.inset&&Be.push("inset"),Be.join(" ")},I),jscolor:function(Be,je,$t){for(var et in this.value=null,this.valueElement=Be,this.styleElement=$t||Be,this.styleElementOnClick=!1,this.required=!0,this.refine=!0,this.hash=!1,this.uppercase=!0,this.onFineChange=null,this.activeClass="jscolor-active",this.minS=0,this.maxS=100,this.minV=0,this.maxV=100,this.hsv=[0,0,100],this.rgb=[255,255,255],this.width=181,this.height=101,this.showOnClick=!0,this.mode="HSV",this.position="bottom",this.smartPosition=!0,this.sliderSize=16,this.crossSize=8,this.closable=!1,this.closeText="Close",this.buttonColor="#000000",this.buttonHeight=18,this.padding=12,this.backgroundColor="#FFFFFF",this.borderWidth=1,this.borderColor="#BBBBBB",this.borderRadius=8,this.insetWidth=1,this.insetColor="#BBBBBB",this.shadow=!0,this.shadowBlur=15,this.shadowColor="rgba(0,0,0,0.2)",this.pointerColor="#4C4C4C",this.pointerBorderColor="#FFFFFF",this.pointerBorderWidth=1,this.pointerThickness=2,this.zIndex=1e3,this.container=null,je)je.hasOwnProperty(et)&&(this[et]=je[et]);function Kt(ne,ge,ye){var Xe=ye/100*255;if(ne===null)return[Xe,Xe,Xe];ne/=60,ge/=100;var Ze=Math.floor(ne),lt=Xe*(1-ge),_t=Xe*(1-ge*(Ze%2?ne-Ze:1-(ne-Ze)));switch(Ze){case 6:case 0:return[Xe,_t,lt];case 1:return[_t,Xe,lt];case 2:return[lt,Xe,_t];case 3:return[lt,_t,Xe];case 4:return[_t,lt,Xe];case 5:return[Xe,lt,_t]}}function kn(){ft._processParentElementsInDOM(),D.picker||(D.picker={owner:null,wrap:document.createElement("div"),box:document.createElement("div"),boxS:document.createElement("div"),boxB:document.createElement("div"),pad:document.createElement("div"),padB:document.createElement("div"),padM:document.createElement("div"),padPal:D.createPalette(),cross:document.createElement("div"),crossBY:document.createElement("div"),crossBX:document.createElement("div"),crossLY:document.createElement("div"),crossLX:document.createElement("div"),sld:document.createElement("div"),sldB:document.createElement("div"),sldM:document.createElement("div"),sldGrad:D.createSliderGradient(),sldPtrS:document.createElement("div"),sldPtrIB:document.createElement("div"),sldPtrMB:document.createElement("div"),sldPtrOB:document.createElement("div"),btn:document.createElement("div"),btnT:document.createElement("span")},D.picker.pad.appendChild(D.picker.padPal.elm),D.picker.padB.appendChild(D.picker.pad),D.picker.cross.appendChild(D.picker.crossBY),D.picker.cross.appendChild(D.picker.crossBX),D.picker.cross.appendChild(D.picker.crossLY),D.picker.cross.appendChild(D.picker.crossLX),D.picker.padB.appendChild(D.picker.cross),D.picker.box.appendChild(D.picker.padB),D.picker.box.appendChild(D.picker.padM),D.picker.sld.appendChild(D.picker.sldGrad.elm),D.picker.sldB.appendChild(D.picker.sld),D.picker.sldB.appendChild(D.picker.sldPtrOB),D.picker.sldPtrOB.appendChild(D.picker.sldPtrMB),D.picker.sldPtrMB.appendChild(D.picker.sldPtrIB),D.picker.sldPtrIB.appendChild(D.picker.sldPtrS),D.picker.box.appendChild(D.picker.sldB),D.picker.box.appendChild(D.picker.sldM),D.picker.btn.appendChild(D.picker.btnT),D.picker.box.appendChild(D.picker.btn),D.picker.boxB.appendChild(D.picker.box),D.picker.wrap.appendChild(D.picker.boxS),D.picker.wrap.appendChild(D.picker.boxB));var ne,ge,ye=D.picker,Xe=!!D.getSliderComponent(ft),Ze=D.getPickerDims(ft),lt=2*ft.pointerBorderWidth+ft.pointerThickness+2*ft.crossSize,_t=D.getPadToSliderPadding(ft),zt=Math.min(ft.borderRadius,Math.round(ft.padding*Math.PI));ye.wrap.style.clear="both",ye.wrap.style.width=Ze[0]+2*ft.borderWidth+"px",ye.wrap.style.height=Ze[1]+2*ft.borderWidth+"px",ye.wrap.style.zIndex=ft.zIndex,ye.wrap.classList.add("jsColorCw"),ye.box.style.width=Ze[0]+"px",ye.box.style.height=Ze[1]+"px",ye.boxS.style.position="absolute",ye.boxS.style.left="0",ye.boxS.style.top="0",ye.boxS.style.width="100%",ye.boxS.style.height="100%",D.setBorderRadius(ye.boxS,zt+"px"),ye.boxB.style.position="relative",ye.boxB.style.setProperty("border",ft.borderWidth+"px solid","important"),ye.boxB.style.borderColor=ft.borderColor,ye.boxB.style.background=ft.backgroundColor,D.setBorderRadius(ye.boxB,zt+"px"),ye.padM.style.background=ye.sldM.style.background="#FFF",D.setStyle(ye.padM,"opacity","0"),D.setStyle(ye.sldM,"opacity","0"),ye.pad.style.position="relative",ye.pad.style.width=ft.width+"px",ye.pad.style.height=ft.height+"px",ye.padPal.draw(ft.width,ft.height,D.getPadYComponent(ft)),ye.padPal.elm.style.borderRadius="3px",ye.padB.style.borderRadius="3px",ye.sld.style.borderRadius="3px",ye.sldB.style.borderRadius="3px",ye.sldM.style.borderRadius="3px",ye.padB.style.position="absolute",ye.padB.style.left=ft.padding+"px",ye.padB.style.top=ft.padding+"px",ye.padB.style.borderColor=ft.insetColor,ye.padM._jscInstance=ft,ye.padM._jscControlName="pad",ye.padM.style.position="absolute",ye.padM.style.left="0",ye.padM.style.top="0",ye.padM.style.width=ft.padding+2*ft.insetWidth+ft.width+_t/2+"px",ye.padM.style.height=Ze[1]+"px",ye.padM.style.cursor="crosshair",ye.cross.style.position="absolute",ye.cross.style.left=ye.cross.style.top="0",ye.cross.style.width=ye.cross.style.height=lt+"px",ye.crossBY.style.position=ye.crossBX.style.position="absolute",ye.crossBY.style.background=ye.crossBX.style.background=ft.pointerBorderColor,ye.crossBY.style.width=ye.crossBX.style.height=2*ft.pointerBorderWidth+ft.pointerThickness+"px",ye.crossBY.style.height=ye.crossBX.style.width=lt+"px",ye.crossBY.style.left=ye.crossBX.style.top=Math.floor(lt/2)-Math.floor(ft.pointerThickness/2)-ft.pointerBorderWidth+"px",ye.crossBY.style.top=ye.crossBX.style.left="0",ye.crossLY.style.position=ye.crossLX.style.position="absolute",ye.crossLY.style.background=ye.crossLX.style.background=ft.pointerColor,ye.crossLY.style.height=ye.crossLX.style.width=lt-2*ft.pointerBorderWidth+"px",ye.crossLY.style.width=ye.crossLX.style.height=ft.pointerThickness+"px",ye.crossLY.style.left=ye.crossLX.style.top=Math.floor(lt/2)-Math.floor(ft.pointerThickness/2)+"px",ye.crossLY.style.top=ye.crossLX.style.left=ft.pointerBorderWidth+"px",ye.sld.style.overflow="hidden",ye.sld.style.width=ft.sliderSize+"px",ye.sld.style.height=ft.height+"px",ye.sldGrad.draw(ft.sliderSize,ft.height,"#000","#000"),ye.sldB.style.display=Xe?"block":"none",ye.sldB.style.position="absolute",ye.sldB.style.right=ft.padding+"px",ye.sldB.style.top=ft.padding+"px",ye.sldB.style.borderColor=ft.insetColor,ye.sldM._jscInstance=ft,ye.sldM._jscControlName="sld",ye.sldM.style.display=Xe?"block":"none",ye.sldM.style.position="absolute",ye.sldM.style.right="0",ye.sldM.style.top="0",ye.sldM.style.width=ft.sliderSize+_t/2+ft.padding+2*ft.insetWidth+"px",ye.sldM.style.height=Ze[1]+"px",ye.sldM.style.cursor="pointer",ye.sldPtrIB.style.setProperty("border",ft.pointerBorderWidth+"px solid transparent","important"),ye.sldPtrOB.style.setProperty("border",ft.pointerBorderWidth+"px solid transparent","important"),ye.sldPtrOB.style.position="absolute",ye.sldPtrOB.style.left=-(5*ft.pointerBorderWidth+ft.pointerThickness)+"px",ye.sldPtrOB.style.top="0",ye.sldPtrMB.style.setProperty("border",ft.pointerThickness+"px solid transparent","important"),ye.sldPtrS.style.width=ft.sliderSize+6+"px",ye.sldPtrS.style.height="3px",ye.sldPtrS.style.backgroundColor=ft.pointerColor,ye.sldPtrS.style.borderRadius="3px",ye.btn.style.display=ft.closable?"block":"none",ye.btn.style.position="absolute",ye.btn.style.left=ft.padding+"px",ye.btn.style.bottom=ft.padding+"px",ye.btn.style.padding="0 15px",ye.btn.style.height=ft.buttonHeight+"px",ye.btn.style.setProperty("border",ft.insetWidth+"px solid","important"),ne=ft.insetColor.split(/\s+/),ge=ne.length<2?ne[0]:ne[1]+" "+ne[0]+" "+ne[0]+" "+ne[1],ye.btn.style.borderColor=ge,ye.btn.style.color=ft.buttonColor,ye.btn.style.font="12 sans-serif",ye.btn.style.textAlign="center";try{ye.btn.style.setProperty("cursor","pointer","important")}catch{ye.btn.style.cursor="hand"}ye.btn.onmousedown=function(Vt){Vt.preventDefault(),ft.hide()},ye.btnT.style.lineHeight=ft.buttonHeight+"px",ye.btnT.innerHTML="",ye.btnT.appendChild(document.createTextNode(ft.closeText)),Tn(),ht(),D.picker.owner&&D.picker.owner!==ft&&D.unsetClass(D.picker.owner.targetElement,ft.activeClass),D.picker.owner=ft,D.isElementType(vn,"body")?D.redrawPosition():D._drawPosition(ft,0,0,"relative",!1),ye.wrap.parentNode!=vn&&vn.appendChild(ye.wrap),D.setClass(ft.targetElement,ft.activeClass)}function Tn(){switch(D.getPadYComponent(ft)){case"s":var ne=1;break;case"v":ne=2}var ge=Math.round(ft.hsv[0]/360*(ft.width-1)),ye=Math.round((1-ft.hsv[ne]/100)*(ft.height-1)),Xe=2*ft.pointerBorderWidth+ft.pointerThickness+2*ft.crossSize,Ze=-Math.floor(Xe/2);switch(D.picker.cross.style.left=ge+Ze+"px",D.picker.cross.style.top=ye+Ze+"px",D.getSliderComponent(ft)){case"s":var lt=Kt(ft.hsv[0],100,ft.hsv[2]),_t=Kt(ft.hsv[0],0,ft.hsv[2]),zt="rgb("+Math.round(lt[0])+","+Math.round(lt[1])+","+Math.round(lt[2])+")",Vt="rgb("+Math.round(_t[0])+","+Math.round(_t[1])+","+Math.round(_t[2])+")";D.picker.sldGrad.draw(ft.sliderSize,ft.height,zt,Vt);break;case"v":var sn=Kt(ft.hsv[0],ft.hsv[1],100);zt="rgb("+Math.round(sn[0])+","+Math.round(sn[1])+","+Math.round(sn[2])+")",Vt="#000",D.picker.sldGrad.draw(ft.sliderSize,ft.height,zt,Vt)}}function ht(){var ne=D.getSliderComponent(ft);if(ne){switch(ne){case"s":var ge=1;break;case"v":ge=2}var ye=Math.round((1-ft.hsv[ge]/100)*(ft.height-1));D.picker.sldPtrOB.style.top=ye-(2*ft.pointerBorderWidth+ft.pointerThickness)-Math.floor(ut/2)+"px"}}function ot(){return D.picker&&D.picker.owner===ft}if(this.hide=function(){ot()&&(D.unsetClass(ft.targetElement,ft.activeClass),D.picker.wrap.parentNode.removeChild(D.picker.wrap),delete D.picker.owner)},this.show=function(){kn()},this.redraw=function(){ot()&&kn()},this.importColor=function(){this.valueElement&&D.isElementType(this.valueElement,"input")?this.refine?!this.required&&/^\s*$/.test(this.valueElement.value)?(this.valueElement.value="",this.styleElement&&(this.styleElement.style.backgroundImage=this.styleElement._jscOrigStyle.backgroundImage,this.styleElement.style.backgroundColor=this.styleElement._jscOrigStyle.backgroundColor,this.styleElement.style.color=this.styleElement._jscOrigStyle.color),this.exportColor(D.leaveValue|D.leaveStyle)):this.fromString(this.valueElement.value)||this.exportColor():this.fromString(this.valueElement.value,D.leaveValue)||(this.styleElement&&(this.styleElement.style.backgroundImage=this.styleElement._jscOrigStyle.backgroundImage,this.styleElement.style.backgroundColor=this.styleElement._jscOrigStyle.backgroundColor,this.styleElement.style.color=this.styleElement._jscOrigStyle.color),this.exportColor(D.leaveValue|D.leaveStyle)):this.exportColor()},this.exportColor=function(ne){if(!(ne&D.leaveValue)&&this.valueElement){var ge=this.toString();this.uppercase&&(ge=ge.toUpperCase()),this.hash&&(ge="#"+ge),D.isElementType(this.valueElement,"input")?this.valueElement.value=ge:this.valueElement.innerHTML=ge}if(!(ne&D.leaveStyle)&&this.styleElement){var ye="#"+this.toString(),Xe=this.isLight()?"#000":"#FFF";this.styleElement.style.backgroundImage="none",this.styleElement.style.setProperty("background-color",ye,"important"),this.styleElement.style.setProperty("color",Xe,"important")}ne&D.leavePad||!ot()||Tn(),ne&D.leaveSld||!ot()||ht()},this.fromHSV=function(ne,ge,ye,Xe){if(ne!==null){if(isNaN(ne))return!1;ne=Math.max(0,Math.min(360,ne))}if(ge!==null){if(isNaN(ge))return!1;ge=Math.max(0,Math.min(100,this.maxS,ge),this.minS)}if(ye!==null){if(isNaN(ye))return!1;ye=Math.max(0,Math.min(100,this.maxV,ye),this.minV)}this.rgb=Kt(ne===null?this.hsv[0]:this.hsv[0]=ne,ge===null?this.hsv[1]:this.hsv[1]=ge,ye===null?this.hsv[2]:this.hsv[2]=ye),this.exportColor(Xe)},this.fromRGB=function(ne,ge,ye,Xe){if(ne!==null){if(isNaN(ne))return!1;ne=Math.max(0,Math.min(255,ne))}if(ge!==null){if(isNaN(ge))return!1;ge=Math.max(0,Math.min(255,ge))}if(ye!==null){if(isNaN(ye))return!1;ye=Math.max(0,Math.min(255,ye))}var Ze=function(_t,zt,Vt){_t/=255,zt/=255,Vt/=255;var sn=Math.min(Math.min(_t,zt),Vt),yn=Math.max(Math.max(_t,zt),Vt),dr=yn-sn;if(dr===0)return[null,0,100*yn];var hr=_t===sn?3+(Vt-zt)/dr:zt===sn?5+(_t-Vt)/dr:1+(zt-_t)/dr;return[60*(hr===6?0:hr),dr/yn*100,100*yn]}(ne===null?this.rgb[0]:ne,ge===null?this.rgb[1]:ge,ye===null?this.rgb[2]:ye);Ze[0]!==null&&(this.hsv[0]=Math.max(0,Math.min(360,Ze[0]))),Ze[2]!==0&&(this.hsv[1]=Ze[1]===null?null:Math.max(0,this.minS,Math.min(100,this.maxS,Ze[1]))),this.hsv[2]=Ze[2]===null?null:Math.max(0,this.minV,Math.min(100,this.maxV,Ze[2]));var lt=Kt(this.hsv[0],this.hsv[1],this.hsv[2]);this.rgb[0]=lt[0],this.rgb[1]=lt[1],this.rgb[2]=lt[2],this.exportColor(Xe)},this.fromString=function(ne,ge){var ye;if(ye=ne.match(/^\W*([0-9A-F]{3}([0-9A-F]{3})?)\W*$/i))return ye[1].length===6?this.fromRGB(parseInt(ye[1].substr(0,2),16),parseInt(ye[1].substr(2,2),16),parseInt(ye[1].substr(4,2),16),ge):this.fromRGB(parseInt(ye[1].charAt(0)+ye[1].charAt(0),16),parseInt(ye[1].charAt(1)+ye[1].charAt(1),16),parseInt(ye[1].charAt(2)+ye[1].charAt(2),16),ge),!0;if(ye=ne.match(/^\W*rgba?\(([^)]*)\)\W*$/i)){var Xe,Ze,lt,_t=ye[1].split(","),zt=/^\s*(\d*)(\.\d+)?\s*$/;if(_t.length>=3&&(Xe=_t[0].match(zt))&&(Ze=_t[1].match(zt))&&(lt=_t[2].match(zt))){var Vt=parseFloat((Xe[1]||"0")+(Xe[2]||"")),sn=parseFloat((Ze[1]||"0")+(Ze[2]||"")),yn=parseFloat((lt[1]||"0")+(lt[2]||""));return this.fromRGB(Vt,sn,yn,ge),!0}}return!1},this.toString=function(){return(256|Math.round(this.rgb[0])).toString(16).substr(1)+(256|Math.round(this.rgb[1])).toString(16).substr(1)+(256|Math.round(this.rgb[2])).toString(16).substr(1)},this.toHEXString=function(){return"#"+this.toString().toUpperCase()},this.toRGBString=function(){return"rgb("+Math.round(this.rgb[0])+","+Math.round(this.rgb[1])+","+Math.round(this.rgb[2])+")"},this.isLight=function(){return .213*this.rgb[0]+.715*this.rgb[1]+.072*this.rgb[2]>127.5},this._processParentElementsInDOM=function(){if(!this._linkedElementsProcessed){this._linkedElementsProcessed=!0;var ne=this.targetElement;do{var ge=D.getStyle(ne);ge&&ge.position.toLowerCase()==="fixed"&&(this.fixed=!0),ne!==this.targetElement&&(ne._jscEventsAttached||(D.attachEvent(ne,"scroll",D.onParentScroll),ne._jscEventsAttached=!0))}while((ne=ne.parentNode)&&!D.isElementType(ne,"body"))}},typeof Be=="string"){var Je=Be,wt=document.getElementById(Je);wt?this.targetElement=wt:D.warn("Could not find target element with ID '"+Je+"'")}else Be?this.targetElement=Be:D.warn("Invalid target element: '"+Be+"'");if(this.targetElement._jscLinkedInstance)D.warn("Cannot link jscolor twice to the same element. Skipping.");else{this.valueElement=D.fetchElement(this.valueElement),this.styleElement=D.fetchElement(this.styleElement),this.styleElement&&this.styleElementOnClick?this.styleElement._jscLinkedInstance=this:this.targetElement._jscLinkedInstance=this;var ft=this,vn=this.container?D.fetchElement(this.container):document.getElementsByTagName("body")[0],ut=3;if(D.isElementType(this.targetElement,"button"))if(this.targetElement.onclick){var Wt=this.targetElement.onclick;this.targetElement.onclick=function(ne){return Wt.call(this,ne),!1}}else this.targetElement.onclick=function(){return!1};if(this.valueElement&&D.isElementType(this.valueElement,"input")){var ae=function(){ft.fromString(ft.valueElement.value,D.leaveValue),D.dispatchFineChange(ft)};D.attachEvent(this.valueElement,"keyup",ae),D.attachEvent(this.valueElement,"input",ae),D.attachEvent(this.valueElement,"blur",function(){ft.importColor()}),this.valueElement.setAttribute("autocomplete","off")}this.styleElement&&(this.styleElement._jscOrigStyle={backgroundImage:this.styleElement.style.backgroundImage,backgroundColor:this.styleElement.style.backgroundColor,color:this.styleElement.style.color}),this.value?this.fromString(this.value)||this.exportColor():this.importColor()}}};D.register();const x=D.jscolor,T={hash:!0,borderRadius:2,borderWidth:0,padding:8,uppercase:!1,closable:!1,width:90,sliderSize:12,height:70,buttonHeight:17,backgroundColor:"var(--ck-color-dropdown-panel-background)",insetColor:"var(--ck-color-dropdown-panel-border)",shadow:!0,shadowBlur:4,shadowColor:"rgba(0,0,0,0.1)",styleElementOnClick:!0,pointerColor:"var(--ck-color-base-text)",pointerBorderColor:"transparent"};class u extends a.View{constructor(je,$t){super(je),this.bindTemplate,this.closeButtonLabel=$t,this.set("value"),this.set("parent"),this.set("styleElem"),this.setTemplate({tag:"input",attributes:{type:"text",class:["ck","ck-color-input","ck-color-grid__tile"]}})}setInputValue(je){const $t=getComputedStyle(document.documentElement).getPropertyValue("--ck-color-button-default-hover-background")||"#000000",et=je||$t;this.colorPicker?this.colorPicker.fromString(et):this.element&&(this.element.value=et)}getInputValue(){return this.colorPicker?this.colorPicker.toHEXString():this.element?this.element.value:void 0}render(){super.render(),this.on("change:value",(je,$t,et)=>{this.setInputValue(et)}),this.on("change:parent",(je,$t,et)=>{let Kt=Object.assign({},T,{closeText:this.closeButtonLabel,container:et});this.colorPicker=new x(this.element,Kt,this.styleElem),this.setInputValue(this.value)})}}/**
 * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */class b extends a.View{constructor(je,{colors:$t,columns:et,removeButtonLabel:Kt,documentColorsLabel:kn,documentColorsCount:Tn}){super(je),this.items=this.createCollection(),this.colorDefinitions=$t,this.focusTracker=new c.FocusTracker,this.keystrokes=new c.KeystrokeHandler,this.set("selectedColor"),this.removeButtonLabel=Kt,this.columns=et,this.documentColors=new h,this.documentColorsCount=Tn,this._focusables=new a.ViewCollection,this._focusCycler=new a.FocusCycler({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._documentColorsLabel=kn,this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-table"]},children:this.items}),this.items.add(this._createRemoveColorButton())}updateDocumentColors(je,$t){const et=je.document,Kt=this.documentColorsCount;this.documentColors.clear();for(const kn of et.getRootNames()){const Tn=et.getRoot(kn),ht=je.createRangeIn(Tn);for(const ot of ht.getItems())if(ot.is("$textProxy")&&ot.hasAttribute($t)&&(this._addColorToDocumentColors(ot.getAttribute($t)),this.documentColors.length>=Kt))return}}updateSelectedColors(){const je=this.documentColorsGrid,$t=this.staticColorsGrid,et=this.selectedColor;$t.selectedColor=et,je&&(je.selectedColor=et)}render(){super.render(),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}appendGrids(){if(!this.staticColorsGrid&&(this.staticColorsGrid=this._createStaticColorsGrid(),this.items.add(this.staticColorsGrid),this.focusTracker.add(this.staticColorsGrid.element),this._focusables.add(this.staticColorsGrid),this._appendColorInput(),this.documentColorsCount)){const je=a.Template.bind(this.documentColors,this.documentColors),$t=new a.LabelView(this.locale);$t.text=this._documentColorsLabel,$t.extendTemplate({attributes:{class:["ck","ck-color-grid__label",je.if("isEmpty","ck-hidden")]}}),this.items.add($t),this.documentColorsGrid=this._createDocumentColorsGrid(),this.items.add(this.documentColorsGrid),this.focusTracker.add(this.documentColorsGrid.element),this._focusables.add(this.documentColorsGrid)}}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}_createRemoveColorButton(){const je=new a.ButtonView;return je.set({withText:!0,icon:n.icons.eraser,label:this.removeButtonLabel}),je.class="ck-color-table__remove-color",je.on("execute",()=>{this.fire("execute",{value:null})}),je.render(),this.focusTracker.add(je.element),this._focusables.add(je),je}_createStaticColorsGrid(){const je=new a.ColorGridView(this.locale,{colorDefinitions:this.colorDefinitions,columns:this.columns});return je.delegate("execute").to(this),je}_createDocumentColorsGrid(){const je=a.Template.bind(this.documentColors,this.documentColors),$t=new a.ColorGridView(this.locale,{columns:this.columns});return $t.delegate("execute").to(this),$t.extendTemplate({attributes:{class:je.if("isEmpty","ck-hidden")}}),$t.items.bindTo(this.documentColors).using(et=>{const Kt=new a.ColorTileView;return Kt.set({color:et.color,hasBorder:et.options&&et.options.hasBorder}),et.label&&Kt.set({label:et.label,tooltip:!0}),Kt.on("execute",()=>{this.fire("execute",{value:et.color})}),Kt}),this.documentColors.on("change:isEmpty",(et,Kt,kn)=>{kn&&($t.selectedColor=null)}),$t}_addColorToDocumentColors(je){const $t=this.colorDefinitions.find(et=>et.color===je);$t?this.documentColors.add(Object.assign({},$t)):this.documentColors.add({color:je,label:je,options:{hasBorder:!1}})}_createColorInputView(){return new u(this.locale,"close")}_createButton(je,$t,et){const Kt=new a.ButtonView;return Kt.set({label:je,icon:$t,tooltip:!0,class:et}),Kt}_createLabel(je){const $t=new a.LabelView(this.locale);return $t.text=je,$t.extendTemplate({attributes:{class:["ck","ck-color-grid__label","picker-anchor"]}}),$t}_appendColorInput(){this.pickerButtonView=this._createButton("pick color",`<?xml version="1.0" encoding="iso-8859-1"?>\r
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->\r
<svg fill="inherit" height="800px" width="800px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" \r
	 viewBox="0 0 512 512" xml:space="preserve">\r
<g>\r
	<g>\r
		<path d="M45.616,417.7c-11.674-0.005-23.356,4.445-32.261,13.352c-17.806,17.805-17.807,46.675-0.002,64.477\r
			c17.802,17.802,46.67,17.805,64.476,0c8.902-8.903,13.352-20.572,13.352-32.242l0.001-45.587H45.616z"/>\r
	</g>\r
</g>\r
<g>\r
	<g>\r
		<path d="M412.963,179.664L512,80.625L434.491,3.118l-99.038,99.035L309.619,76.32c-28.538-28.54-74.806-28.538-103.343-0.002\r
			l-12.94,12.94l77.506,77.506l77.509,77.509l77.506,77.506l12.939-12.938c28.537-28.538,28.538-74.807,0.001-103.344\r
			L412.963,179.664z"/>\r
	</g>\r
</g>\r
<g>\r
	<g>\r
		<path d="M245.007,192.602L124.462,313.147c-21.403,21.404-21.401,56.104,0.002,77.506c21.402,21.404,56.103,21.406,77.507,0\r
			l120.543-120.542L245.007,192.602z"/>\r
	</g>\r
</g>\r
</svg>`),this.pickerButtonView.extendTemplate({attributes:{class:["ck","ck-button","ck-off","ck","ck-color-grid__tile","ck-color-picker"]}}),this.colorInputView=this._createColorInputView(),this.saveButtonView=this._createButton("apply color",`<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg fill="#000000" width="800px" height="800px" viewBox="0 0 24 24" data-name="Line Color" xmlns="http://www.w3.org/2000/svg" class="icon line-color"><path id="secondary" d="M7,10h6M10,7v6" style="fill: none; stroke: inherrit; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2;"></path><path id="primary" d="M7,21H20a1,1,0,0,0,1-1V5" style="fill: none; stroke: inherrit; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2;"></path><rect id="primary-2" data-name="primary" x="3" y="3" width="14" height="14" rx="1" style="fill: none; stroke: inherrit; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2;"></rect></svg>`),this.saveButtonView.extendTemplate({attributes:{class:["ck","ck-button","ck-off","ck","ck-color-grid__tile","ck-color-picker-save"]}}),this.saveButtonView.on("execute",()=>{let je=this.colorInputView.getInputValue();this.fire("execute",{value:je})}),this.canvasAnchor=new a.LabelView(this.locale),this.canvasAnchor.extendTemplate({attributes:{class:"picker-anchor"}}),this.items.add(this.colorInputView),this.items.add(this.pickerButtonView),this.items.add(this.saveButtonView),this.items.add(this.canvasAnchor),this.colorInputView.set({styleElem:this.pickerButtonView.element,parent:this.canvasAnchor.element})}}function E(Be,je){const $t={model:{key:Be,values:[]},view:{},upcastAlso:{}};for(const et of je)$t.model.values.push(et.model),$t.view[et.model]=et.view,et.upcastAlso&&($t.upcastAlso[et.model]=et.upcastAlso);return $t}function A(Be){return je=>je.getStyle(Be).replace(/\s/g,"")}function R(Be){return(je,{writer:$t})=>$t.createAttributeElement("span",{style:`${Be}:${je}`},{priority:7})}/**
 * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */class H extends s{constructor(je){super(je,"fontFamily")}}/**
 * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */function z(Be){return Be.map(V).filter(je=>!!je)}function V(Be){return typeof Be=="object"?Be:Be==="default"?{title:"Default",model:void 0}:typeof Be=="string"?function(je){const $t=je.replace(/"|'/g,"").split(","),et=$t[0],Kt=$t.map($).join(", ");return{title:et,model:Kt,view:{name:"span",styles:{"font-family":Kt},priority:7}}}(Be):void 0}function $(Be){return(Be=Be.trim()).indexOf(" ")>0&&(Be=`'${Be}'`),Be}/**
 * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */class ee extends n.Plugin{static get pluginName(){return"FontFamilyEditing"}constructor(je){super(je),je.config.define("fontFamily",{options:["default","Arial, Helvetica, sans-serif","Courier New, Courier, monospace","Georgia, serif","Lucida Sans Unicode, Lucida Grande, sans-serif","Tahoma, Geneva, sans-serif","Times New Roman, Times, serif","Trebuchet MS, Helvetica, sans-serif","Verdana, Geneva, sans-serif"],supportAllValues:!1})}init(){const je=this.editor;je.model.schema.extend("$text",{allowAttributes:"fontFamily"}),je.model.schema.setAttributeProperties("fontFamily",{isFormatting:!0,copyOnEnter:!0});const $t=E("fontFamily",z(je.config.get("fontFamily.options")).filter(et=>et.model));je.config.get("fontFamily.supportAllValues")?(this._prepareAnyValueConverters(),this._prepareCompatibilityConverter()):je.conversion.attributeToElement($t),je.commands.add("fontFamily",new H(je))}_prepareAnyValueConverters(){const je=this.editor;je.conversion.for("downcast").attributeToElement({model:"fontFamily",view:($t,{writer:et})=>et.createAttributeElement("span",{style:"font-family:"+$t},{priority:7})}),je.conversion.for("upcast").elementToAttribute({model:{key:"fontFamily",value:$t=>$t.getStyle("font-family")},view:{name:"span",styles:{"font-family":/.*/}}})}_prepareCompatibilityConverter(){this.editor.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{face:/.*/}},model:{key:"fontFamily",value:je=>je.getAttribute("face")}})}}/**
 * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */class q extends n.Plugin{static get pluginName(){return"FontFamilyUI"}init(){const je=this.editor,$t=je.t,et=this._getLocalizedOptions(),Kt=je.commands.get("fontFamily");je.ui.componentFactory.add("fontFamily",kn=>{const Tn=(0,a.createDropdown)(kn);return(0,a.addListToDropdown)(Tn,function(ht,ot){const Je=new c.Collection;for(const wt of ht){const ft={type:"button",model:new a.Model({commandName:"fontFamily",commandParam:wt.model,label:wt.title,withText:!0})};ft.model.bind("isOn").to(ot,"value",vn=>vn===wt.model||!(!vn||!wt.model)&&vn.split(",")[0].replace(/'/g,"").toLowerCase()===wt.model.toLowerCase()),wt.view&&wt.view.styles&&ft.model.set("labelStyle","font-family: "+wt.view.styles["font-family"]),Je.add(ft)}return Je}(et,Kt)),Tn.buttonView.set({label:$t("Font Family"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.03 3h6.149a.75.75 0 1 1 0 1.5h-5.514L11.03 3zm1.27 3h4.879a.75.75 0 1 1 0 1.5h-4.244L12.3 6zm1.27 3h3.609a.75.75 0 1 1 0 1.5h-2.973L13.57 9zm-2.754 2.5L8.038 4.785 5.261 11.5h5.555zm.62 1.5H4.641l-1.666 4.028H1.312l5.789-14h1.875l5.789 14h-1.663L11.436 13z"/></svg>',tooltip:!0}),Tn.extendTemplate({attributes:{class:"ck-font-family-dropdown"}}),Tn.bind("isEnabled").to(Kt),this.listenTo(Tn,"execute",ht=>{je.execute(ht.source.commandName,{value:ht.source.commandParam}),je.editing.view.focus()}),Tn})}_getLocalizedOptions(){const je=this.editor,$t=je.t;return z(je.config.get("fontFamily").options).map(et=>(et.title==="Default"&&(et.title=$t("Default")),et))}}/**
 * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */class oe extends n.Plugin{static get requires(){return[ee,q]}static get pluginName(){return"FontFamily"}}var X=t(492);/**
 * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */class pe extends s{constructor(je){super(je,"fontSize")}}/**
 * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */function Ie(Be){return Be.map(je=>function($t){if(et=$t,typeof et=="object"&&et.title&&et.model&&et.view)return be($t);var et;const Kt=function(kn){return se[kn]||se[kn.model]}($t);if(Kt)return be(Kt);if($t==="default")return{model:void 0,title:"Default"};if(!function(kn){let Tn;if(typeof kn=="object"){if(!kn.model)throw new c.CKEditorError("font-size-invalid-definition",null,kn);Tn=parseFloat(kn.model)}else Tn=parseFloat(kn);return isNaN(Tn)}($t))return function(kn){return typeof kn!="number"&&typeof kn!="string"||(kn={title:String(kn),model:parseFloat(kn)+"px"}),kn.view={name:"span",styles:{"font-size":kn.model}},be(kn)}($t)}(je)).filter(je=>!!je)}const se={get tiny(){return{title:"Tiny",model:"tiny",view:{name:"span",classes:"text-tiny",priority:7}}},get small(){return{title:"Small",model:"small",view:{name:"span",classes:"text-small",priority:7}}},get big(){return{title:"Big",model:"big",view:{name:"span",classes:"text-big",priority:7}}},get huge(){return{title:"Huge",model:"huge",view:{name:"span",classes:"text-huge",priority:7}}}};function be(Be){return Be.view.priority||(Be.view.priority=7),Be}/**
 * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */const fe=["x-small","x-small","small","medium","large","x-large","xx-large","xxx-large"];class ue extends n.Plugin{static get pluginName(){return"FontSizeEditing"}constructor(je){super(je),je.config.define("fontSize",{options:["tiny","small","default","big","huge"],supportAllValues:!1})}init(){const je=this.editor;je.model.schema.extend("$text",{allowAttributes:"fontSize"}),je.model.schema.setAttributeProperties("fontSize",{isFormatting:!0,copyOnEnter:!0});const $t=je.config.get("fontSize.supportAllValues"),et=E("fontSize",Ie(this.editor.config.get("fontSize.options")).filter(Kt=>Kt.model));$t?(this._prepareAnyValueConverters(et),this._prepareCompatibilityConverter()):je.conversion.attributeToElement(et),je.commands.add("fontSize",new pe(je))}_prepareAnyValueConverters(je){const $t=this.editor,et=je.model.values.filter(Kt=>!(0,X.isLength)(String(Kt))&&!(0,X.isPercentage)(String(Kt)));if(et.length)throw new c.CKEditorError("font-size-invalid-use-of-named-presets",null,{presets:et});$t.conversion.for("downcast").attributeToElement({model:"fontSize",view:(Kt,{writer:kn})=>{if(Kt)return kn.createAttributeElement("span",{style:"font-size:"+Kt},{priority:7})}}),$t.conversion.for("upcast").elementToAttribute({model:{key:"fontSize",value:Kt=>Kt.getStyle("font-size")},view:{name:"span",styles:{"font-size":/.*/}}})}_prepareCompatibilityConverter(){this.editor.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{size:/^[+-]?\d{1,3}$/}},model:{key:"fontSize",value:je=>{const $t=je.getAttribute("size"),et=$t[0]==="-"||$t[0]==="+";let Kt=parseInt($t,10);et&&(Kt=3+Kt);const kn=fe.length-1,Tn=Math.min(Math.max(Kt,0),kn);return fe[Tn]}}})}}var we=t(499),Me={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};d()(we.Z,Me),we.Z.locals;/**
 * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */class Ce extends n.Plugin{static get pluginName(){return"FontSizeUI"}init(){const je=this.editor,$t=je.t,et=this._getLocalizedOptions(),Kt=je.commands.get("fontSize");je.ui.componentFactory.add("fontSize",kn=>{const Tn=(0,a.createDropdown)(kn);return(0,a.addListToDropdown)(Tn,function(ht,ot){const Je=new c.Collection;for(const wt of ht){const ft={type:"button",model:new a.Model({commandName:"fontSize",commandParam:wt.model,label:wt.title,class:"ck-fontsize-option",withText:!0})};wt.view&&wt.view.styles&&ft.model.set("labelStyle","font-size:"+wt.view.styles["font-size"]),wt.view&&wt.view.classes&&ft.model.set("class",`${ft.model.class} ${wt.view.classes}`),ft.model.bind("isOn").to(ot,"value",vn=>vn===wt.model),Je.add(ft)}return Je}(et,Kt)),Tn.buttonView.set({label:$t("Font Size"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.816 11.5 7.038 4.785 4.261 11.5h5.555zm.62 1.5H3.641l-1.666 4.028H.312l5.789-14h1.875l5.789 14h-1.663L10.436 13zm7.55 2.279.779-.779.707.707-2.265 2.265-2.193-2.265.707-.707.765.765V4.825c0-.042 0-.083.002-.123l-.77.77-.707-.707L17.207 2.5l2.265 2.265-.707.707-.782-.782c.002.043.003.089.003.135v10.454z"/></svg>',tooltip:!0}),Tn.extendTemplate({attributes:{class:["ck-font-size-dropdown"]}}),Tn.bind("isEnabled").to(Kt),this.listenTo(Tn,"execute",ht=>{je.execute(ht.source.commandName,{value:ht.source.commandParam}),je.editing.view.focus()}),Tn})}_getLocalizedOptions(){const je=this.editor,$t=je.t,et={Default:$t("Default"),Tiny:$t("Tiny"),Small:$t("Small"),Big:$t("Big"),Huge:$t("Huge")};return Ie(je.config.get("fontSize").options).map(Kt=>{const kn=et[Kt.title];return kn&&kn!=Kt.title&&(Kt=Object.assign({},Kt,{title:kn})),Kt})}}/**
 * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */class Ne extends n.Plugin{static get requires(){return[ue,Ce]}static get pluginName(){return"FontSize"}normalizeSizeOptions(je){return Ie(je)}}/**
 * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */class Ye extends s{constructor(je){super(je,"fontColor")}}/**
 * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */class mt extends n.Plugin{static get pluginName(){return"FontColorEditing"}constructor(je){super(je),je.config.define("fontColor",{colors:[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}],columns:5}),je.conversion.for("upcast").elementToAttribute({view:{name:"span",styles:{color:/[\s\S]+/}},model:{key:"fontColor",value:A("color")}}),je.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{color:/^#?\w+$/}},model:{key:"fontColor",value:$t=>$t.getAttribute("color")}}),je.conversion.for("downcast").attributeToElement({model:"fontColor",view:R("color")}),je.commands.add("fontColor",new Ye(je)),je.model.schema.extend("$text",{allowAttributes:"fontColor"}),je.model.schema.setAttributeProperties("fontColor",{isFormatting:!0,copyOnEnter:!0})}}/**
 * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */class Ct extends n.Plugin{constructor(je,{commandName:$t,icon:et,componentName:Kt,dropdownLabel:kn}){super(je),this.commandName=$t,this.componentName=Kt,this.icon=et,this.dropdownLabel=kn,this.columns=je.config.get(this.componentName+".columns"),this.colorTableView=void 0}init(){const je=this.editor,$t=je.locale,et=$t.t,Kt=je.commands.get(this.commandName),kn=(0,a.normalizeColorOptions)(je.config.get(this.componentName).colors),Tn=(0,a.getLocalizedColorOptions)($t,kn),ht=je.config.get(this.componentName+".documentColors");je.ui.componentFactory.add(this.componentName,ot=>{const Je=(0,a.createDropdown)(ot);return this.colorTableView=function({dropdownView:wt,colors:ft,columns:vn,removeButtonLabel:ut,documentColorsLabel:Wt,documentColorsCount:ae}){const ne=wt.locale,ge=new b(ne,{colors:ft,columns:vn,removeButtonLabel:ut,documentColorsLabel:Wt,documentColorsCount:ae});return wt.colorTableView=ge,wt.panelView.children.add(ge),ge.delegate("execute").to(wt,"execute"),ge}({dropdownView:Je,colors:Tn.map(wt=>({label:wt.label,color:wt.model,options:{hasBorder:wt.hasBorder}})),columns:this.columns,removeButtonLabel:et("Remove color"),documentColorsLabel:ht!==0?et("Document colors"):void 0,documentColorsCount:ht===void 0?this.columns:ht}),this.colorTableView.bind("selectedColor").to(Kt,"value"),Je.buttonView.set({label:this.dropdownLabel,icon:this.icon,tooltip:!0}),Je.extendTemplate({attributes:{class:"ck-color-ui-dropdown"}}),Je.bind("isEnabled").to(Kt),Je.on("execute",(wt,ft)=>{je.execute(this.commandName,ft),je.editing.view.focus()}),Je.on("change:isOpen",(wt,ft,vn)=>{Je.colorTableView.appendGrids(),vn&&(ht!==0&&this.colorTableView.updateDocumentColors(je.model,this.componentName),this.colorTableView.updateSelectedColors())}),(0,a.focusChildOnDropdownOpen)(Je,()=>Je.colorTableView.staticColorsGrid.items.find(wt=>wt.isOn)),Je})}}/**
 * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */class ln extends Ct{constructor(je){super(je,{commandName:"fontColor",componentName:"fontColor",icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.4 10.3 10 4.5l-2.4 5.8h4.8zm.5 1.2H7.1L5.7 15H4.2l5-12h1.6l5 12h-1.5L13 11.5zm3.1 7H4a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2z"/></svg>',dropdownLabel:(0,je.locale.t)("Font Color")})}static get pluginName(){return"FontColorUI"}}/**
 * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */class $e extends n.Plugin{static get requires(){return[mt,ln]}static get pluginName(){return"FontColor"}}/**
 * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */class Qe extends s{constructor(je){super(je,"fontBackgroundColor")}}/**
 * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */class bt extends n.Plugin{static get pluginName(){return"FontBackgroundColorEditing"}constructor(je){super(je),je.config.define("fontBackgroundColor",{colors:[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}],columns:5}),je.data.addStyleProcessorRules(X.addBackgroundRules),je.conversion.for("upcast").elementToAttribute({view:{name:"span",styles:{"background-color":/[\s\S]+/}},model:{key:"fontBackgroundColor",value:A("background-color")}}),je.conversion.for("downcast").attributeToElement({model:"fontBackgroundColor",view:R("background-color")}),je.commands.add("fontBackgroundColor",new Qe(je)),je.model.schema.extend("$text",{allowAttributes:"fontBackgroundColor"}),je.model.schema.setAttributeProperties("fontBackgroundColor",{isFormatting:!0,copyOnEnter:!0})}}/**
 * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */class It extends Ct{constructor(je){super(je,{commandName:"fontBackgroundColor",componentName:"fontBackgroundColor",icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M4 2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm8.38 9.262H7.62L10 5.506l2.38 5.756zm.532 1.285L14.34 16h1.426L10.804 4H9.196L4.234 16H5.66l1.428-3.453h5.824z"/></svg>',dropdownLabel:(0,je.locale.t)("Font Background Color")})}static get pluginName(){return"FontBackgroundColorUI"}}/**
 * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */class mn extends n.Plugin{static get requires(){return[bt,It]}static get pluginName(){return"FontBackgroundColor"}}/**
 * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */class un extends n.Plugin{static get requires(){return[oe,Ne,$e,mn]}static get pluginName(){return"Font"}}})(),(window.CKEditor5=window.CKEditor5||{}).fontWithPicker=r})()},53844:()=>{(function(Z){const v=Z.en=Z.en||{};v.dictionary=Object.assign(v.dictionary||{},{"Align center":"Align center","Align left":"Align left","Align right":"Align right",Justify:"Justify","Text alignment":"Text alignment","Text alignment toolbar":"Text alignment toolbar"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),(()=>{var Z={704:(n,s,a)=>{n.exports=a(79)("./src/core.js")},273:(n,s,a)=>{n.exports=a(79)("./src/ui.js")},209:(n,s,a)=>{n.exports=a(79)("./src/utils.js")},79:n=>{"use strict";n.exports=CKEditor5.dll}},v={};function t(n){var s=v[n];if(s!==void 0)return s.exports;var a=v[n]={exports:{}};return Z[n](a,a.exports,t),a.exports}t.d=(n,s)=>{for(var a in s)t.o(s,a)&&!t.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:s[a]})},t.o=(n,s)=>Object.prototype.hasOwnProperty.call(n,s),t.r=n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var r={};(()=>{"use strict";t.r(r),t.d(r,{Alignment:()=>F,AlignmentEditing:()=>M,AlignmentUI:()=>I});var n=t(704),s=t(209);const a=["left","right","center","justify"];function c(U){return a.includes(U)}function h(U,B){return B.contentLanguageDirection=="rtl"?U==="right":U==="left"}function p(U){const B=U.map(D=>{let x;return x=typeof D=="string"?{name:D}:D,x}).filter(D=>{const x=a.includes(D.name);return x||(0,s.logWarning)("alignment-config-name-not-recognized",{option:D}),x}),N=B.filter(D=>Boolean(D.className)).length;if(N&&N<B.length)throw new s.CKEditorError("alignment-config-classnames-are-missing",{configuredOptions:U});return B.forEach((D,x,T)=>{const u=T.slice(x+1);if(u.some(b=>b.name==D.name))throw new s.CKEditorError("alignment-config-name-already-defined",{option:D,configuredOptions:U});if(D.className&&u.some(b=>b.className==D.className))throw new s.CKEditorError("alignment-config-classname-already-defined",{option:D,configuredOptions:U})}),B}const d="alignment";class k extends n.Command{refresh(){const B=this.editor.locale,N=(0,s.first)(this.editor.model.document.selection.getSelectedBlocks());this.isEnabled=Boolean(N)&&this._canBeAligned(N),this.isEnabled&&N.hasAttribute("alignment")?this.value=N.getAttribute("alignment"):this.value=B.contentLanguageDirection==="rtl"?"right":"left"}execute(B={}){const N=this.editor,D=N.locale,x=N.model,T=x.document,u=B.value;x.change(b=>{const E=Array.from(T.selection.getSelectedBlocks()).filter(R=>this._canBeAligned(R)),A=E[0].getAttribute("alignment");h(u,D)||A===u||!u?function(R,H){for(const z of R)H.removeAttribute(d,z)}(E,b):function(R,H,z){for(const V of R)H.setAttribute(d,z,V)}(E,b,u)})}_canBeAligned(B){return this.editor.model.schema.checkAttribute(B,d)}}class M extends n.Plugin{static get pluginName(){return"AlignmentEditing"}constructor(B){super(B),B.config.define("alignment",{options:a.map(N=>({name:N}))})}init(){const B=this.editor,N=B.locale,D=B.model.schema,x=p(B.config.get("alignment.options")).filter(E=>c(E.name)&&!h(E.name,N)),T=x.some(E=>!!E.className);D.extend("$block",{allowAttributes:"alignment"}),B.model.schema.setAttributeProperties("alignment",{isFormatting:!0}),T?B.conversion.attributeToAttribute(function(E){const A={};for(const H of E)A[H.name]={key:"class",value:H.className};return{model:{key:"alignment",values:E.map(H=>H.name)},view:A}}(x)):B.conversion.for("downcast").attributeToAttribute(function(E){const A={};for(const{name:H}of E)A[H]={key:"style",value:{"text-align":H}};return{model:{key:"alignment",values:E.map(H=>H.name)},view:A}}(x));const u=function(E){const A=[];for(const{name:R}of E)A.push({view:{key:"style",value:{"text-align":R}},model:{key:"alignment",value:R}});return A}(x);for(const E of u)B.conversion.for("upcast").attributeToAttribute(E);const b=function(E){const A=[];for(const{name:R}of E)A.push({view:{key:"align",value:R},model:{key:"alignment",value:R}});return A}(x);for(const E of b)B.conversion.for("upcast").attributeToAttribute(E);B.commands.add("alignment",new k(B))}}var C=t(273);const w=new Map([["left",n.icons.alignLeft],["right",n.icons.alignRight],["center",n.icons.alignCenter],["justify",n.icons.alignJustify]]);class I extends n.Plugin{get localizedOptionTitles(){const B=this.editor.t;return{left:B("Align left"),right:B("Align right"),center:B("Align center"),justify:B("Justify")}}static get pluginName(){return"AlignmentUI"}init(){const B=this.editor,N=B.ui.componentFactory,D=B.t,x=p(B.config.get("alignment.options"));x.map(T=>T.name).filter(c).forEach(T=>this._addButton(T)),N.add("alignment",T=>{const u=(0,C.createDropdown)(T);(0,C.addToolbarToDropdown)(u,()=>x.map(A=>N.create(`alignment:${A.name}`)),{enableActiveItemFocusOnDropdownOpen:!0,isVertical:!0,ariaLabel:D("Text alignment toolbar")}),u.buttonView.set({label:D("Text alignment"),tooltip:!0}),u.extendTemplate({attributes:{class:"ck-alignment-dropdown"}});const b=T.contentLanguageDirection==="rtl"?w.get("right"):w.get("left"),E=B.commands.get("alignment");return u.buttonView.bind("icon").to(E,"value",A=>w.get(A)||b),u.bind("isEnabled").to(E,"isEnabled"),this.listenTo(u,"execute",()=>{B.editing.view.focus()}),u})}_addButton(B){const N=this.editor;N.ui.componentFactory.add(`alignment:${B}`,D=>{const x=N.commands.get("alignment"),T=new C.ButtonView(D);return T.set({label:this.localizedOptionTitles[B],icon:w.get(B),tooltip:!0,isToggleable:!0}),T.bind("isEnabled").to(x),T.bind("isOn").to(x,"value",u=>u===B),this.listenTo(T,"execute",()=>{N.execute("alignment",{value:B}),N.editing.view.focus()}),T})}}class F extends n.Plugin{static get requires(){return[M,I]}static get pluginName(){return"Alignment"}}})(),(window.CKEditor5=window.CKEditor5||{}).alignment=r})()},98491:()=>{/*!
 * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md.
 */(()=>{var Z={704:(n,s,a)=>{n.exports=a(79)("./src/core.js")},492:(n,s,a)=>{n.exports=a(79)("./src/engine.js")},181:(n,s,a)=>{n.exports=a(79)("./src/typing.js")},209:(n,s,a)=>{n.exports=a(79)("./src/utils.js")},79:n=>{"use strict";n.exports=CKEditor5.dll}},v={};function t(n){var s=v[n];if(s!==void 0)return s.exports;var a=v[n]={exports:{}};return Z[n](a,a.exports,t),a.exports}t.d=(n,s)=>{for(var a in s)t.o(s,a)&&!t.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:s[a]})},t.o=(n,s)=>Object.prototype.hasOwnProperty.call(n,s),t.r=n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var r={};(()=>{"use strict";t.r(r),t.d(r,{Autoformat:()=>k});var n=t(704),s=t(181),a=t(492),c=t(209);function h(C,w,I,F){let U,B=null;typeof F=="function"?U=F:(B=C.commands.get(F),U=()=>{C.execute(F)}),C.model.document.on("change:data",(N,D)=>{if(B&&!B.isEnabled||!w.isEnabled)return;const x=(0,c.first)(C.model.document.selection.getRanges());if(!x.isCollapsed||D.isUndo||!D.isLocal)return;const T=Array.from(C.model.document.differ.getChanges()),u=T[0];if(T.length!=1||u.type!=="insert"||u.name!="$text"||u.length!=1)return;const b=u.position.parent;if(b.is("element","codeBlock")||b.is("element","listItem")&&typeof F!="function"&&!["numberedList","bulletedList","todoList"].includes(F)||B&&B.value===!0)return;const E=b.getChild(0),A=C.model.createRangeOn(E);if(!A.containsRange(x)&&!x.end.isEqual(A.end))return;const R=I.exec(E.data.substr(0,x.end.offset));R&&C.model.enqueueChange(H=>{const z=H.createPositionAt(b,0),V=H.createPositionAt(b,R[0].length),$=new a.LiveRange(z,V);if(U({match:R})!==!1){H.remove($);const ee=C.model.document.selection.getFirstRange(),q=H.createRangeIn(b);!b.isEmpty||q.isEqual(ee)||q.containsRange(ee,!0)||H.remove(b)}$.detach(),C.model.enqueueChange(()=>{C.plugins.get("Delete").requestUndoOnBackspace()})})})}function p(C,w,I,F){let U,B;I instanceof RegExp?U=I:B=I,B=B||(N=>{let D;const x=[],T=[];for(;(D=U.exec(N))!==null&&!(D&&D.length<4);){let{index:u,1:b,2:E,3:A}=D;const R=b+E+A;u+=D[0].length-R.length;const H=[u,u+b.length],z=[u+b.length+E.length,u+b.length+E.length+A.length];x.push(H),x.push(z),T.push([u+b.length,u+b.length+E.length])}return{remove:x,format:T}}),C.model.document.on("change:data",(N,D)=>{if(D.isUndo||!D.isLocal||!w.isEnabled)return;const x=C.model,T=x.document.selection;if(!T.isCollapsed)return;const u=Array.from(x.document.differ.getChanges()),b=u[0];if(u.length!=1||b.type!=="insert"||b.name!="$text"||b.length!=1)return;const E=T.focus,A=E.parent,{text:R,range:H}=function(ee,q){let oe=ee.start;return{text:Array.from(ee.getItems()).reduce((pe,Ie)=>!Ie.is("$text")&&!Ie.is("$textProxy")||Ie.getAttribute("code")?(oe=q.createPositionAfter(Ie),""):pe+Ie.data,""),range:q.createRange(oe,ee.end)}}(x.createRange(x.createPositionAt(A,0),E),x),z=B(R),V=d(H.start,z.format,x),$=d(H.start,z.remove,x);V.length&&$.length&&x.enqueueChange(ee=>{if(F(ee,V)!==!1){for(const q of $.reverse())ee.remove(q);x.enqueueChange(()=>{C.plugins.get("Delete").requestUndoOnBackspace()})}})})}function d(C,w,I){return w.filter(F=>F[0]!==void 0&&F[1]!==void 0).map(F=>I.createRange(C.getShiftedBy(F[0]),C.getShiftedBy(F[1])))}class k extends n.Plugin{static get requires(){return[s.Delete]}static get pluginName(){return"Autoformat"}afterInit(){this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats()}_addListAutoformats(){const w=this.editor.commands;w.get("bulletedList")&&h(this.editor,this,/^[*-]\s$/,"bulletedList"),w.get("numberedList")&&h(this.editor,this,/^1[.|)]\s$/,"numberedList"),w.get("todoList")&&h(this.editor,this,/^\[\s?\]\s$/,"todoList"),w.get("checkTodoList")&&h(this.editor,this,/^\[\s?x\s?\]\s$/,()=>{this.editor.execute("todoList"),this.editor.execute("checkTodoList")})}_addBasicStylesAutoformats(){const w=this.editor.commands;if(w.get("bold")){const I=M(this.editor,"bold");p(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,I),p(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,I)}if(w.get("italic")){const I=M(this.editor,"italic");p(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,I),p(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,I)}if(w.get("code")){const I=M(this.editor,"code");p(this.editor,this,/(`)([^`]+)(`)$/g,I)}if(w.get("strikethrough")){const I=M(this.editor,"strikethrough");p(this.editor,this,/(~~)([^~]+)(~~)$/g,I)}}_addHeadingAutoformats(){const w=this.editor.commands.get("heading");w&&w.modelElements.filter(I=>I.match(/^heading[1-6]$/)).forEach(I=>{const F=I[7],U=new RegExp(`^(#{${F}})\\s$`);h(this.editor,this,U,()=>{if(!w.isEnabled||w.value===I)return!1;this.editor.execute("heading",{value:I})})})}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&h(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){const w=this.editor,I=w.model.document.selection;w.commands.get("codeBlock")&&h(w,this,/^```$/,()=>{if(I.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})})}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&h(this.editor,this,/^---$/,"horizontalLine")}}function M(C,w){return(I,F)=>{if(!C.commands.get(w).isEnabled)return!1;const U=C.model.schema.getValidRanges(F,w);for(const B of U)I.setAttribute(w,!0,B);I.removeSelectionAttribute(w)}}})(),(window.CKEditor5=window.CKEditor5||{}).autoformat=r})()},9922:(Z,v,t)=>{(function(r){const n=r.en=r.en||{};n.dictionary=Object.assign(n.dictionary||{},{"Saving changes":"Saving changes"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),(()=>{var r={704:(c,h,p)=>{c.exports=p(79)("./src/core.js")},209:(c,h,p)=>{c.exports=p(79)("./src/utils.js")},79:c=>{"use strict";c.exports=CKEditor5.dll}},n={};function s(c){var h=n[c];if(h!==void 0)return h.exports;var p=n[c]={exports:{}};return r[c](p,p.exports,s),p.exports}s.d=(c,h)=>{for(var p in h)s.o(h,p)&&!s.o(c,p)&&Object.defineProperty(c,p,{enumerable:!0,get:h[p]})},s.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),s.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var a={};(()=>{"use strict";s.r(a),s.d(a,{Autosave:()=>Me});var c=s(704),h=s(209);const p=function(Ce){var Ne=typeof Ce;return Ce!=null&&(Ne=="object"||Ne=="function")},d=typeof t.g=="object"&&t.g&&t.g.Object===Object&&t.g;var k=typeof self=="object"&&self&&self.Object===Object&&self;const M=d||k||Function("return this")(),C=function(){return M.Date.now()};var w=/\s/;const I=function(Ce){for(var Ne=Ce.length;Ne--&&w.test(Ce.charAt(Ne)););return Ne};var F=/^\s+/;const U=function(Ce){return Ce&&Ce.slice(0,I(Ce)+1).replace(F,"")},B=M.Symbol;var N=Object.prototype,D=N.hasOwnProperty,x=N.toString,T=B?B.toStringTag:void 0;const u=function(Ce){var Ne=D.call(Ce,T),Ye=Ce[T];try{Ce[T]=void 0;var mt=!0}catch{}var Ct=x.call(Ce);return mt&&(Ne?Ce[T]=Ye:delete Ce[T]),Ct};var b=Object.prototype.toString;const E=function(Ce){return b.call(Ce)};var A="[object Null]",R="[object Undefined]",H=B?B.toStringTag:void 0;const z=function(Ce){return Ce==null?Ce===void 0?R:A:H&&H in Object(Ce)?u(Ce):E(Ce)},V=function(Ce){return Ce!=null&&typeof Ce=="object"};var $="[object Symbol]";const ee=function(Ce){return typeof Ce=="symbol"||V(Ce)&&z(Ce)==$};var q=NaN,oe=/^[-+]0x[0-9a-f]+$/i,X=/^0b[01]+$/i,pe=/^0o[0-7]+$/i,Ie=parseInt;const se=function(Ce){if(typeof Ce=="number")return Ce;if(ee(Ce))return q;if(p(Ce)){var Ne=typeof Ce.valueOf=="function"?Ce.valueOf():Ce;Ce=p(Ne)?Ne+"":Ne}if(typeof Ce!="string")return Ce===0?Ce:+Ce;Ce=U(Ce);var Ye=X.test(Ce);return Ye||pe.test(Ce)?Ie(Ce.slice(2),Ye?2:8):oe.test(Ce)?q:+Ce};var be="Expected a function",fe=Math.max,ue=Math.min;const we=function(Ce,Ne,Ye){var mt,Ct,ln,$e,Qe,bt,It=0,mn=!1,un=!1,Be=!0;if(typeof Ce!="function")throw new TypeError(be);function je(Tn){var ht=mt,ot=Ct;return mt=Ct=void 0,It=Tn,$e=Ce.apply(ot,ht)}function $t(Tn){var ht=Tn-bt;return bt===void 0||ht>=Ne||ht<0||un&&Tn-It>=ln}function et(){var Tn=C();if($t(Tn))return Kt(Tn);Qe=setTimeout(et,function(ht){var ot=Ne-(ht-bt);return un?ue(ot,ln-(ht-It)):ot}(Tn))}function Kt(Tn){return Qe=void 0,Be&&mt?je(Tn):(mt=Ct=void 0,$e)}function kn(){var Tn=C(),ht=$t(Tn);if(mt=arguments,Ct=this,bt=Tn,ht){if(Qe===void 0)return function(ot){return It=ot,Qe=setTimeout(et,Ne),mn?je(ot):$e}(bt);if(un)return clearTimeout(Qe),Qe=setTimeout(et,Ne),je(bt)}return Qe===void 0&&(Qe=setTimeout(et,Ne)),$e}return Ne=se(Ne)||0,p(Ye)&&(mn=!!Ye.leading,ln=(un="maxWait"in Ye)?fe(se(Ye.maxWait)||0,Ne):ln,Be="trailing"in Ye?!!Ye.trailing:Be),kn.cancel=function(){Qe!==void 0&&clearTimeout(Qe),It=0,mt=bt=Ct=Qe=void 0},kn.flush=function(){return Qe===void 0?$e:Kt(C())},kn};class Me extends c.Plugin{static get pluginName(){return"Autosave"}static get requires(){return[c.PendingActions]}constructor(Ne){super(Ne);const Ye=Ne.config.get("autosave")||{},mt=Ye.waitingTime||1e3;this.set("state","synchronized"),this._debouncedSave=we(this._save.bind(this),mt),this._lastDocumentVersion=Ne.model.document.version,this._savePromise=null,this._domEmitter=Object.create(h.DomEmitterMixin),this._config=Ye,this._pendingActions=Ne.plugins.get(c.PendingActions),this._makeImmediateSave=!1}init(){const Ne=this.editor,Ye=Ne.model.document;this.listenTo(Ne,"ready",()=>{this.listenTo(Ye,"change:data",(mt,Ct)=>{this._saveCallbacks.length&&Ct.isLocal&&(this.state==="synchronized"&&(this.state="waiting",this._setPendingAction()),this.state==="waiting"&&this._debouncedSave())})}),this.listenTo(Ne,"destroy",()=>this._flush(),{priority:"highest"}),this._domEmitter.listenTo(window,"beforeunload",(mt,Ct)=>{this._pendingActions.hasAny&&(Ct.returnValue=this._pendingActions.first.message)})}destroy(){this._domEmitter.stopListening(),super.destroy()}save(){return this._debouncedSave.cancel(),this._save()}_flush(){this._debouncedSave.flush()}_save(){return this._savePromise?(this._makeImmediateSave=this.editor.model.document.version>this._lastDocumentVersion,this._savePromise):(this._setPendingAction(),this.state="saving",this._lastDocumentVersion=this.editor.model.document.version,this._savePromise=Promise.resolve().then(()=>Promise.all(this._saveCallbacks.map(Ne=>Ne(this.editor)))).finally(()=>{this._savePromise=null}).then(()=>{if(this._makeImmediateSave)return this._makeImmediateSave=!1,this._save();this.editor.model.document.version>this._lastDocumentVersion?(this.state="waiting",this._debouncedSave()):(this.state="synchronized",this._pendingActions.remove(this._action),this._action=null)}).catch(Ne=>{throw this.state="error",this.state="saving",this._debouncedSave(),Ne}),this._savePromise)}_setPendingAction(){const Ne=this.editor.t;this._action||(this._action=this._pendingActions.add(Ne("Saving changes")))}get _saveCallbacks(){const Ne=[];return this.adapter&&this.adapter.save&&Ne.push(this.adapter.save),this._config.save&&Ne.push(this._config.save),Ne}}(0,h.mix)(Me,h.ObservableMixin)})(),(window.CKEditor5=window.CKEditor5||{}).autosave=a})()},6378:()=>{(function(Z){const v=Z.en=Z.en||{};v.dictionary=Object.assign(v.dictionary||{},{Bold:"Bold",Code:"Code",Italic:"Italic",Strikethrough:"Strikethrough",Subscript:"Subscript",Superscript:"Superscript",Underline:"Underline"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),(()=>{var Z={415:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,".ck-content code{background-color:hsla(0,0%,78%,.3);border-radius:2px;padding:.15em}.ck.ck-editor__editable .ck-code_selected{background-color:hsla(0,0%,78%,.5)}",""]);const p=h},609:n=>{"use strict";n.exports=function(s){var a=[];return a.toString=function(){return this.map(function(c){var h=s(c);return c[2]?"@media ".concat(c[2]," {").concat(h,"}"):h}).join("")},a.i=function(c,h,p){typeof c=="string"&&(c=[[null,c,""]]);var d={};if(p)for(var k=0;k<this.length;k++){var M=this[k][0];M!=null&&(d[M]=!0)}for(var C=0;C<c.length;C++){var w=[].concat(c[C]);p&&d[w[0]]||(h&&(w[2]?w[2]="".concat(h," and ").concat(w[2]):w[2]=h),a.push(w))}},a}},62:(n,s,a)=>{"use strict";var c,h=function(){return c===void 0&&(c=Boolean(window&&document&&document.all&&!window.atob)),c},p=function(){var x={};return function(T){if(x[T]===void 0){var u=document.querySelector(T);if(window.HTMLIFrameElement&&u instanceof window.HTMLIFrameElement)try{u=u.contentDocument.head}catch{u=null}x[T]=u}return x[T]}}(),d=[];function k(x){for(var T=-1,u=0;u<d.length;u++)if(d[u].identifier===x){T=u;break}return T}function M(x,T){for(var u={},b=[],E=0;E<x.length;E++){var A=x[E],R=T.base?A[0]+T.base:A[0],H=u[R]||0,z="".concat(R," ").concat(H);u[R]=H+1;var V=k(z),$={css:A[1],media:A[2],sourceMap:A[3]};V!==-1?(d[V].references++,d[V].updater($)):d.push({identifier:z,updater:D($,T),references:1}),b.push(z)}return b}function C(x){var T=document.createElement("style"),u=x.attributes||{};if(u.nonce===void 0){var b=a.nc;b&&(u.nonce=b)}if(Object.keys(u).forEach(function(A){T.setAttribute(A,u[A])}),typeof x.insert=="function")x.insert(T);else{var E=p(x.insert||"head");if(!E)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");E.appendChild(T)}return T}var w,I=(w=[],function(x,T){return w[x]=T,w.filter(Boolean).join(`
`)});function F(x,T,u,b){var E=u?"":b.media?"@media ".concat(b.media," {").concat(b.css,"}"):b.css;if(x.styleSheet)x.styleSheet.cssText=I(T,E);else{var A=document.createTextNode(E),R=x.childNodes;R[T]&&x.removeChild(R[T]),R.length?x.insertBefore(A,R[T]):x.appendChild(A)}}function U(x,T,u){var b=u.css,E=u.media,A=u.sourceMap;if(E?x.setAttribute("media",E):x.removeAttribute("media"),A&&typeof btoa<"u"&&(b+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(A))))," */")),x.styleSheet)x.styleSheet.cssText=b;else{for(;x.firstChild;)x.removeChild(x.firstChild);x.appendChild(document.createTextNode(b))}}var B=null,N=0;function D(x,T){var u,b,E;if(T.singleton){var A=N++;u=B||(B=C(T)),b=F.bind(null,u,A,!1),E=F.bind(null,u,A,!0)}else u=C(T),b=U.bind(null,u,T),E=function(){(function(R){if(R.parentNode===null)return!1;R.parentNode.removeChild(R)})(u)};return b(x),function(R){if(R){if(R.css===x.css&&R.media===x.media&&R.sourceMap===x.sourceMap)return;b(x=R)}else E()}}n.exports=function(x,T){(T=T||{}).singleton||typeof T.singleton=="boolean"||(T.singleton=h());var u=M(x=x||[],T);return function(b){if(b=b||[],Object.prototype.toString.call(b)==="[object Array]"){for(var E=0;E<u.length;E++){var A=k(u[E]);d[A].references--}for(var R=M(b,T),H=0;H<u.length;H++){var z=k(u[H]);d[z].references===0&&(d[z].updater(),d.splice(z,1))}u=R}}}},704:(n,s,a)=>{n.exports=a(79)("./src/core.js")},181:(n,s,a)=>{n.exports=a(79)("./src/typing.js")},273:(n,s,a)=>{n.exports=a(79)("./src/ui.js")},79:n=>{"use strict";n.exports=CKEditor5.dll}},v={};function t(n){var s=v[n];if(s!==void 0)return s.exports;var a=v[n]={id:n,exports:{}};return Z[n](a,a.exports,t),a.exports}t.n=n=>{var s=n&&n.__esModule?()=>n.default:()=>n;return t.d(s,{a:s}),s},t.d=(n,s)=>{for(var a in s)t.o(s,a)&&!t.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:s[a]})},t.o=(n,s)=>Object.prototype.hasOwnProperty.call(n,s),t.r=n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.nc=void 0;var r={};(()=>{"use strict";t.r(r),t.d(r,{Bold:()=>k,BoldEditing:()=>c,BoldUI:()=>d,Code:()=>x,CodeEditing:()=>w,CodeUI:()=>D,Italic:()=>A,ItalicEditing:()=>u,ItalicUI:()=>E,Strikethrough:()=>$,StrikethroughEditing:()=>H,StrikethroughUI:()=>V,Subscript:()=>pe,SubscriptEditing:()=>q,SubscriptUI:()=>X,Superscript:()=>ue,SuperscriptEditing:()=>se,SuperscriptUI:()=>fe,Underline:()=>Ye,UnderlineEditing:()=>Me,UnderlineUI:()=>Ne});var n=t(704);class s extends n.Command{constructor(Ct,ln){super(Ct),this.attributeKey=ln}refresh(){const Ct=this.editor.model,ln=Ct.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=Ct.schema.checkAttributeInSelection(ln.selection,this.attributeKey)}execute(Ct={}){const ln=this.editor.model,$e=ln.document.selection,Qe=Ct.forceValue===void 0?!this.value:Ct.forceValue;ln.change(bt=>{if($e.isCollapsed)Qe?bt.setSelectionAttribute(this.attributeKey,!0):bt.removeSelectionAttribute(this.attributeKey);else{const It=ln.schema.getValidRanges($e.getRanges(),this.attributeKey);for(const mn of It)Qe?bt.setAttribute(this.attributeKey,Qe,mn):bt.removeAttribute(this.attributeKey,mn)}})}_getValueFromFirstAllowedNode(){const Ct=this.editor.model,ln=Ct.schema,$e=Ct.document.selection;if($e.isCollapsed)return $e.hasAttribute(this.attributeKey);for(const Qe of $e.getRanges())for(const bt of Qe.getItems())if(ln.checkAttribute(bt,this.attributeKey))return bt.hasAttribute(this.attributeKey);return!1}}const a="bold";class c extends n.Plugin{static get pluginName(){return"BoldEditing"}init(){const Ct=this.editor;Ct.model.schema.extend("$text",{allowAttributes:a}),Ct.model.schema.setAttributeProperties(a,{isFormatting:!0,copyOnEnter:!0}),Ct.conversion.attributeToElement({model:a,view:"strong",upcastAlso:["b",ln=>{const $e=ln.getStyle("font-weight");return $e&&($e=="bold"||Number($e)>=600)?{name:!0,styles:["font-weight"]}:null}]}),Ct.commands.add(a,new s(Ct,a)),Ct.keystrokes.set("CTRL+B",a)}}var h=t(273);const p="bold";class d extends n.Plugin{static get pluginName(){return"BoldUI"}init(){const Ct=this.editor,ln=Ct.t;Ct.ui.componentFactory.add(p,$e=>{const Qe=Ct.commands.get(p),bt=new h.ButtonView($e);return bt.set({label:ln("Bold"),icon:n.icons.bold,keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),bt.bind("isOn","isEnabled").to(Qe,"value","isEnabled"),this.listenTo(bt,"execute",()=>{Ct.execute(p),Ct.editing.view.focus()}),bt})}}class k extends n.Plugin{static get requires(){return[c,d]}static get pluginName(){return"Bold"}}var M=t(181);const C="code";class w extends n.Plugin{static get pluginName(){return"CodeEditing"}static get requires(){return[M.TwoStepCaretMovement]}init(){const Ct=this.editor;Ct.model.schema.extend("$text",{allowAttributes:C}),Ct.model.schema.setAttributeProperties(C,{isFormatting:!0,copyOnEnter:!1}),Ct.conversion.attributeToElement({model:C,view:"code",upcastAlso:{styles:{"word-wrap":"break-word"}}}),Ct.commands.add(C,new s(Ct,C)),Ct.plugins.get(M.TwoStepCaretMovement).registerAttribute(C),(0,M.inlineHighlight)(Ct,C,"code","ck-code_selected")}}var I=t(62),F=t.n(I),U=t(415),B={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};F()(U.Z,B),U.Z.locals;const N="code";class D extends n.Plugin{static get pluginName(){return"CodeUI"}init(){const Ct=this.editor,ln=Ct.t;Ct.ui.componentFactory.add(N,$e=>{const Qe=Ct.commands.get(N),bt=new h.ButtonView($e);return bt.set({label:ln("Code"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m12.5 5.7 5.2 3.9v1.3l-5.6 4c-.1.2-.3.2-.5.2-.3-.1-.6-.7-.6-1l.3-.4 4.7-3.5L11.5 7l-.2-.2c-.1-.3-.1-.6 0-.8.2-.2.5-.4.8-.4a.8.8 0 0 1 .4.1zm-5.2 0L2 9.6v1.3l5.6 4c.1.2.3.2.5.2.3-.1.7-.7.6-1 0-.1 0-.3-.2-.4l-5-3.5L8.2 7l.2-.2c.1-.3.1-.6 0-.8-.2-.2-.5-.4-.8-.4a.8.8 0 0 0-.3.1z"/></svg>',tooltip:!0,isToggleable:!0}),bt.bind("isOn","isEnabled").to(Qe,"value","isEnabled"),this.listenTo(bt,"execute",()=>{Ct.execute(N),Ct.editing.view.focus()}),bt})}}class x extends n.Plugin{static get requires(){return[w,D]}static get pluginName(){return"Code"}}const T="italic";class u extends n.Plugin{static get pluginName(){return"ItalicEditing"}init(){const Ct=this.editor;Ct.model.schema.extend("$text",{allowAttributes:T}),Ct.model.schema.setAttributeProperties(T,{isFormatting:!0,copyOnEnter:!0}),Ct.conversion.attributeToElement({model:T,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),Ct.commands.add(T,new s(Ct,T)),Ct.keystrokes.set("CTRL+I",T)}}const b="italic";class E extends n.Plugin{static get pluginName(){return"ItalicUI"}init(){const Ct=this.editor,ln=Ct.t;Ct.ui.componentFactory.add(b,$e=>{const Qe=Ct.commands.get(b),bt=new h.ButtonView($e);return bt.set({label:ln("Italic"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.586 14.633.021.004c-.036.335.095.655.393.962.082.083.173.15.274.201h1.474a.6.6 0 1 1 0 1.2H5.304a.6.6 0 0 1 0-1.2h1.15c.474-.07.809-.182 1.005-.334.157-.122.291-.32.404-.597l2.416-9.55a1.053 1.053 0 0 0-.281-.823 1.12 1.12 0 0 0-.442-.296H8.15a.6.6 0 0 1 0-1.2h6.443a.6.6 0 1 1 0 1.2h-1.195c-.376.056-.65.155-.823.296-.215.175-.423.439-.623.79l-2.366 9.347z"/></svg>',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),bt.bind("isOn","isEnabled").to(Qe,"value","isEnabled"),this.listenTo(bt,"execute",()=>{Ct.execute(b),Ct.editing.view.focus()}),bt})}}class A extends n.Plugin{static get requires(){return[u,E]}static get pluginName(){return"Italic"}}const R="strikethrough";class H extends n.Plugin{static get pluginName(){return"StrikethroughEditing"}init(){const Ct=this.editor;Ct.model.schema.extend("$text",{allowAttributes:R}),Ct.model.schema.setAttributeProperties(R,{isFormatting:!0,copyOnEnter:!0}),Ct.conversion.attributeToElement({model:R,view:"s",upcastAlso:["del","strike",{styles:{"text-decoration":"line-through"}}]}),Ct.commands.add(R,new s(Ct,R)),Ct.keystrokes.set("CTRL+SHIFT+X","strikethrough")}}const z="strikethrough";class V extends n.Plugin{static get pluginName(){return"StrikethroughUI"}init(){const Ct=this.editor,ln=Ct.t;Ct.ui.componentFactory.add(z,$e=>{const Qe=Ct.commands.get(z),bt=new h.ButtonView($e);return bt.set({label:ln("Strikethrough"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 16.4c-.8-.4-1.5-.9-2.2-1.5a.6.6 0 0 1-.2-.5l.3-.6h1c1 1.2 2.1 1.7 3.7 1.7 1 0 1.8-.3 2.3-.6.6-.4.6-1.2.6-1.3.2-1.2-.9-2.1-.9-2.1h2.1c.3.7.4 1.2.4 1.7v.8l-.6 1.2c-.6.8-1.1 1-1.6 1.2a6 6 0 0 1-2.4.6c-1 0-1.8-.3-2.5-.6zM6.8 9 6 8.3c-.4-.5-.5-.8-.5-1.6 0-.7.1-1.3.5-1.8.4-.6 1-1 1.6-1.3a6.3 6.3 0 0 1 4.7 0 4 4 0 0 1 1.7 1l.3.7c0 .1.2.4-.2.7-.4.2-.9.1-1 0a3 3 0 0 0-1.2-1c-.4-.2-1-.3-2-.4-.7 0-1.4.2-2 .6-.8.6-1 .8-1 1.5 0 .8.5 1 1.2 1.5.6.4 1.1.7 1.9 1H6.8z"/><path d="M3 10.5V9h14v1.5z"/></svg>',keystroke:"CTRL+SHIFT+X",tooltip:!0,isToggleable:!0}),bt.bind("isOn","isEnabled").to(Qe,"value","isEnabled"),this.listenTo(bt,"execute",()=>{Ct.execute(z),Ct.editing.view.focus()}),bt})}}class $ extends n.Plugin{static get requires(){return[H,V]}static get pluginName(){return"Strikethrough"}}const ee="subscript";class q extends n.Plugin{static get pluginName(){return"SubscriptEditing"}init(){const Ct=this.editor;Ct.model.schema.extend("$text",{allowAttributes:ee}),Ct.model.schema.setAttributeProperties(ee,{isFormatting:!0,copyOnEnter:!0}),Ct.conversion.attributeToElement({model:ee,view:"sub",upcastAlso:[{styles:{"vertical-align":"sub"}}]}),Ct.commands.add(ee,new s(Ct,ee))}}const oe="subscript";class X extends n.Plugin{static get pluginName(){return"SubscriptUI"}init(){const Ct=this.editor,ln=Ct.t;Ct.ui.componentFactory.add(oe,$e=>{const Qe=Ct.commands.get(oe),bt=new h.ButtonView($e);return bt.set({label:ln("Subscript"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m7.03 10.349 3.818-3.819a.8.8 0 1 1 1.132 1.132L8.16 11.48l3.819 3.818a.8.8 0 1 1-1.132 1.132L7.03 12.61l-3.818 3.82a.8.8 0 1 1-1.132-1.132L5.9 11.48 2.08 7.662A.8.8 0 1 1 3.212 6.53l3.818 3.82zm8.147 7.829h2.549c.254 0 .447.05.58.152a.49.49 0 0 1 .201.413.54.54 0 0 1-.159.393c-.105.108-.266.162-.48.162h-3.594c-.245 0-.435-.066-.572-.197a.621.621 0 0 1-.205-.463c0-.114.044-.265.132-.453a1.62 1.62 0 0 1 .288-.444c.433-.436.824-.81 1.172-1.122.348-.312.597-.517.747-.615.267-.183.49-.368.667-.553.177-.185.312-.375.405-.57.093-.194.139-.384.139-.57a1.008 1.008 0 0 0-.554-.917 1.197 1.197 0 0 0-.56-.133c-.426 0-.761.182-1.005.546a2.332 2.332 0 0 0-.164.39 1.609 1.609 0 0 1-.258.488c-.096.114-.237.17-.423.17a.558.558 0 0 1-.405-.156.568.568 0 0 1-.161-.427c0-.218.05-.446.151-.683.101-.238.252-.453.452-.646s.454-.349.762-.467a2.998 2.998 0 0 1 1.081-.178c.498 0 .923.076 1.274.228a1.916 1.916 0 0 1 1.004 1.032 1.984 1.984 0 0 1-.156 1.794c-.2.32-.405.572-.613.754-.208.182-.558.468-1.048.857-.49.39-.826.691-1.008.906a2.703 2.703 0 0 0-.24.309z"/></svg>',tooltip:!0,isToggleable:!0}),bt.bind("isOn","isEnabled").to(Qe,"value","isEnabled"),this.listenTo(bt,"execute",()=>{Ct.execute(oe),Ct.editing.view.focus()}),bt})}}class pe extends n.Plugin{static get requires(){return[q,X]}static get pluginName(){return"Subscript"}}const Ie="superscript";class se extends n.Plugin{static get pluginName(){return"SuperscriptEditing"}init(){const Ct=this.editor;Ct.model.schema.extend("$text",{allowAttributes:Ie}),Ct.model.schema.setAttributeProperties(Ie,{isFormatting:!0,copyOnEnter:!0}),Ct.conversion.attributeToElement({model:Ie,view:"sup",upcastAlso:[{styles:{"vertical-align":"super"}}]}),Ct.commands.add(Ie,new s(Ct,Ie))}}const be="superscript";class fe extends n.Plugin{static get pluginName(){return"SuperscriptUI"}init(){const Ct=this.editor,ln=Ct.t;Ct.ui.componentFactory.add(be,$e=>{const Qe=Ct.commands.get(be),bt=new h.ButtonView($e);return bt.set({label:ln("Superscript"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.677 8.678h2.549c.254 0 .447.05.58.152a.49.49 0 0 1 .201.413.54.54 0 0 1-.159.393c-.105.108-.266.162-.48.162h-3.594c-.245 0-.435-.066-.572-.197a.621.621 0 0 1-.205-.463c0-.114.044-.265.132-.453a1.62 1.62 0 0 1 .288-.444c.433-.436.824-.81 1.172-1.122.348-.312.597-.517.747-.615.267-.183.49-.368.667-.553.177-.185.312-.375.405-.57.093-.194.139-.384.139-.57a1.008 1.008 0 0 0-.554-.917 1.197 1.197 0 0 0-.56-.133c-.426 0-.761.182-1.005.546a2.332 2.332 0 0 0-.164.39 1.609 1.609 0 0 1-.258.488c-.096.114-.237.17-.423.17a.558.558 0 0 1-.405-.156.568.568 0 0 1-.161-.427c0-.218.05-.446.151-.683.101-.238.252-.453.452-.646s.454-.349.762-.467a2.998 2.998 0 0 1 1.081-.178c.498 0 .923.076 1.274.228a1.916 1.916 0 0 1 1.004 1.032 1.984 1.984 0 0 1-.156 1.794c-.2.32-.405.572-.613.754-.208.182-.558.468-1.048.857-.49.39-.826.691-1.008.906a2.703 2.703 0 0 0-.24.309zM7.03 10.349l3.818-3.819a.8.8 0 1 1 1.132 1.132L8.16 11.48l3.819 3.818a.8.8 0 1 1-1.132 1.132L7.03 12.61l-3.818 3.82a.8.8 0 1 1-1.132-1.132L5.9 11.48 2.08 7.662A.8.8 0 1 1 3.212 6.53l3.818 3.82z"/></svg>',tooltip:!0,isToggleable:!0}),bt.bind("isOn","isEnabled").to(Qe,"value","isEnabled"),this.listenTo(bt,"execute",()=>{Ct.execute(be),Ct.editing.view.focus()}),bt})}}class ue extends n.Plugin{static get requires(){return[se,fe]}static get pluginName(){return"Superscript"}}const we="underline";class Me extends n.Plugin{static get pluginName(){return"UnderlineEditing"}init(){const Ct=this.editor;Ct.model.schema.extend("$text",{allowAttributes:we}),Ct.model.schema.setAttributeProperties(we,{isFormatting:!0,copyOnEnter:!0}),Ct.conversion.attributeToElement({model:we,view:"u",upcastAlso:{styles:{"text-decoration":"underline"}}}),Ct.commands.add(we,new s(Ct,we)),Ct.keystrokes.set("CTRL+U","underline")}}const Ce="underline";class Ne extends n.Plugin{static get pluginName(){return"UnderlineUI"}init(){const Ct=this.editor,ln=Ct.t;Ct.ui.componentFactory.add(Ce,$e=>{const Qe=Ct.commands.get(Ce),bt=new h.ButtonView($e);return bt.set({label:ln("Underline"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 18v-1.5h14V18zm2.2-8V3.6c0-.4.4-.6.8-.6.3 0 .7.2.7.6v6.2c0 2 1.3 2.8 3.2 2.8 1.9 0 3.4-.9 3.4-2.9V3.6c0-.3.4-.5.8-.5.3 0 .7.2.7.5V10c0 2.7-2.2 4-4.9 4-2.6 0-4.7-1.2-4.7-4z"/></svg>',keystroke:"CTRL+U",tooltip:!0,isToggleable:!0}),bt.bind("isOn","isEnabled").to(Qe,"value","isEnabled"),this.listenTo(bt,"execute",()=>{Ct.execute(Ce),Ct.editing.view.focus()}),bt})}}class Ye extends n.Plugin{static get requires(){return[Me,Ne]}static get pluginName(){return"Underline"}}})(),(window.CKEditor5=window.CKEditor5||{}).basicStyles=r})()},67564:()=>{(function(Z){const v=Z.en=Z.en||{};v.dictionary=Object.assign(v.dictionary||{},{"Block quote":"Block quote"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),(()=>{var Z={446:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,".ck-content blockquote{border-left:5px solid #ccc;font-style:italic;margin-left:0;margin-right:0;overflow:hidden;padding-left:1.5em;padding-right:1.5em}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}",""]);const p=h},609:n=>{"use strict";n.exports=function(s){var a=[];return a.toString=function(){return this.map(function(c){var h=s(c);return c[2]?"@media ".concat(c[2]," {").concat(h,"}"):h}).join("")},a.i=function(c,h,p){typeof c=="string"&&(c=[[null,c,""]]);var d={};if(p)for(var k=0;k<this.length;k++){var M=this[k][0];M!=null&&(d[M]=!0)}for(var C=0;C<c.length;C++){var w=[].concat(c[C]);p&&d[w[0]]||(h&&(w[2]?w[2]="".concat(h," and ").concat(w[2]):w[2]=h),a.push(w))}},a}},62:(n,s,a)=>{"use strict";var c,h=function(){return c===void 0&&(c=Boolean(window&&document&&document.all&&!window.atob)),c},p=function(){var x={};return function(T){if(x[T]===void 0){var u=document.querySelector(T);if(window.HTMLIFrameElement&&u instanceof window.HTMLIFrameElement)try{u=u.contentDocument.head}catch{u=null}x[T]=u}return x[T]}}(),d=[];function k(x){for(var T=-1,u=0;u<d.length;u++)if(d[u].identifier===x){T=u;break}return T}function M(x,T){for(var u={},b=[],E=0;E<x.length;E++){var A=x[E],R=T.base?A[0]+T.base:A[0],H=u[R]||0,z="".concat(R," ").concat(H);u[R]=H+1;var V=k(z),$={css:A[1],media:A[2],sourceMap:A[3]};V!==-1?(d[V].references++,d[V].updater($)):d.push({identifier:z,updater:D($,T),references:1}),b.push(z)}return b}function C(x){var T=document.createElement("style"),u=x.attributes||{};if(u.nonce===void 0){var b=a.nc;b&&(u.nonce=b)}if(Object.keys(u).forEach(function(A){T.setAttribute(A,u[A])}),typeof x.insert=="function")x.insert(T);else{var E=p(x.insert||"head");if(!E)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");E.appendChild(T)}return T}var w,I=(w=[],function(x,T){return w[x]=T,w.filter(Boolean).join(`
`)});function F(x,T,u,b){var E=u?"":b.media?"@media ".concat(b.media," {").concat(b.css,"}"):b.css;if(x.styleSheet)x.styleSheet.cssText=I(T,E);else{var A=document.createTextNode(E),R=x.childNodes;R[T]&&x.removeChild(R[T]),R.length?x.insertBefore(A,R[T]):x.appendChild(A)}}function U(x,T,u){var b=u.css,E=u.media,A=u.sourceMap;if(E?x.setAttribute("media",E):x.removeAttribute("media"),A&&typeof btoa<"u"&&(b+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(A))))," */")),x.styleSheet)x.styleSheet.cssText=b;else{for(;x.firstChild;)x.removeChild(x.firstChild);x.appendChild(document.createTextNode(b))}}var B=null,N=0;function D(x,T){var u,b,E;if(T.singleton){var A=N++;u=B||(B=C(T)),b=F.bind(null,u,A,!1),E=F.bind(null,u,A,!0)}else u=C(T),b=U.bind(null,u,T),E=function(){(function(R){if(R.parentNode===null)return!1;R.parentNode.removeChild(R)})(u)};return b(x),function(R){if(R){if(R.css===x.css&&R.media===x.media&&R.sourceMap===x.sourceMap)return;b(x=R)}else E()}}n.exports=function(x,T){(T=T||{}).singleton||typeof T.singleton=="boolean"||(T.singleton=h());var u=M(x=x||[],T);return function(b){if(b=b||[],Object.prototype.toString.call(b)==="[object Array]"){for(var E=0;E<u.length;E++){var A=k(u[E]);d[A].references--}for(var R=M(b,T),H=0;H<u.length;H++){var z=k(u[H]);d[z].references===0&&(d[z].updater(),d.splice(z,1))}u=R}}}},704:(n,s,a)=>{n.exports=a(79)("./src/core.js")},331:(n,s,a)=>{n.exports=a(79)("./src/enter.js")},181:(n,s,a)=>{n.exports=a(79)("./src/typing.js")},273:(n,s,a)=>{n.exports=a(79)("./src/ui.js")},209:(n,s,a)=>{n.exports=a(79)("./src/utils.js")},79:n=>{"use strict";n.exports=CKEditor5.dll}},v={};function t(n){var s=v[n];if(s!==void 0)return s.exports;var a=v[n]={id:n,exports:{}};return Z[n](a,a.exports,t),a.exports}t.n=n=>{var s=n&&n.__esModule?()=>n.default:()=>n;return t.d(s,{a:s}),s},t.d=(n,s)=>{for(var a in s)t.o(s,a)&&!t.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:s[a]})},t.o=(n,s)=>Object.prototype.hasOwnProperty.call(n,s),t.r=n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.nc=void 0;var r={};(()=>{"use strict";t.r(r),t.d(r,{BlockQuote:()=>N,BlockQuoteEditing:()=>M,BlockQuoteUI:()=>B});var n=t(704),s=t(331),a=t(181),c=t(209);class h extends n.Command{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(x={}){const T=this.editor.model,u=T.schema,b=T.document.selection,E=Array.from(b.getSelectedBlocks()),A=x.forceValue===void 0?!this.value:x.forceValue;T.change(R=>{if(A){const H=E.filter(z=>p(z)||k(u,z));this._applyQuote(R,H)}else this._removeQuote(R,E.filter(p))})}_getValue(){const x=this.editor.model.document.selection,T=(0,c.first)(x.getSelectedBlocks());return!(!T||!p(T))}_checkEnabled(){if(this.value)return!0;const x=this.editor.model.document.selection,T=this.editor.model.schema,u=(0,c.first)(x.getSelectedBlocks());return!!u&&k(T,u)}_removeQuote(x,T){d(x,T).reverse().forEach(u=>{if(u.start.isAtStart&&u.end.isAtEnd)return void x.unwrap(u.start.parent);if(u.start.isAtStart){const E=x.createPositionBefore(u.start.parent);return void x.move(u,E)}u.end.isAtEnd||x.split(u.end);const b=x.createPositionAfter(u.end.parent);x.move(u,b)})}_applyQuote(x,T){const u=[];d(x,T).reverse().forEach(b=>{let E=p(b.start);E||(E=x.createElement("blockQuote"),x.wrap(b,E)),u.push(E)}),u.reverse().reduce((b,E)=>b.nextSibling==E?(x.merge(x.createPositionAfter(b)),b):E)}}function p(D){return D.parent.name=="blockQuote"?D.parent:null}function d(D,x){let T,u=0;const b=[];for(;u<x.length;){const E=x[u],A=x[u+1];T||(T=D.createPositionBefore(E)),A&&E.nextSibling==A||(b.push(D.createRange(T,D.createPositionAfter(E))),T=null),u++}return b}function k(D,x){const T=D.checkChild(x.parent,"blockQuote"),u=D.checkChild(["$root","blockQuote"],x);return T&&u}class M extends n.Plugin{static get pluginName(){return"BlockQuoteEditing"}static get requires(){return[s.Enter,a.Delete]}init(){const x=this.editor,T=x.model.schema;x.commands.add("blockQuote",new h(x)),T.register("blockQuote",{inheritAllFrom:"$container"}),x.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),x.model.document.registerPostFixer(A=>{const R=x.model.document.differ.getChanges();for(const H of R)if(H.type=="insert"){const z=H.position.nodeAfter;if(!z)continue;if(z.is("element","blockQuote")&&z.isEmpty)return A.remove(z),!0;if(z.is("element","blockQuote")&&!T.checkChild(H.position,z))return A.unwrap(z),!0;if(z.is("element")){const V=A.createRangeIn(z);for(const $ of V.getItems())if($.is("element","blockQuote")&&!T.checkChild(A.createPositionBefore($),$))return A.unwrap($),!0}}else if(H.type=="remove"){const z=H.position.parent;if(z.is("element","blockQuote")&&z.isEmpty)return A.remove(z),!0}return!1});const u=this.editor.editing.view.document,b=x.model.document.selection,E=x.commands.get("blockQuote");this.listenTo(u,"enter",(A,R)=>{!b.isCollapsed||!E.value||b.getLastPosition().parent.isEmpty&&(x.execute("blockQuote"),x.editing.view.scrollToTheSelection(),R.preventDefault(),A.stop())},{context:"blockquote"}),this.listenTo(u,"delete",(A,R)=>{if(R.direction!="backward"||!b.isCollapsed||!E.value)return;const H=b.getLastPosition().parent;H.isEmpty&&!H.previousSibling&&(x.execute("blockQuote"),x.editing.view.scrollToTheSelection(),R.preventDefault(),A.stop())},{context:"blockquote"})}}var C=t(273),w=t(62),I=t.n(w),F=t(446),U={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};I()(F.Z,U),F.Z.locals;class B extends n.Plugin{static get pluginName(){return"BlockQuoteUI"}init(){const x=this.editor,T=x.t;x.ui.componentFactory.add("blockQuote",u=>{const b=x.commands.get("blockQuote"),E=new C.ButtonView(u);return E.set({label:T("Block quote"),icon:n.icons.quote,tooltip:!0,isToggleable:!0}),E.bind("isOn","isEnabled").to(b,"value","isEnabled"),this.listenTo(E,"execute",()=>{x.execute("blockQuote"),x.editing.view.focus()}),E})}}class N extends n.Plugin{static get requires(){return[M,B]}static get pluginName(){return"BlockQuote"}}})(),(window.CKEditor5=window.CKEditor5||{}).blockQuote=r})()},15535:()=>{(function(Z){const v=Z.en=Z.en||{};v.dictionary=Object.assign(v.dictionary||{},{"Insert code block":"Insert code block","Plain text":"Plain text"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),(()=>{var Z={67:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,".ck-content pre{background:hsla(0,0%,78%,.3);border:1px solid #c4c4c4;border-radius:2px;color:#353535;direction:ltr;font-style:normal;min-width:200px;padding:1em;tab-size:4;text-align:left;white-space:pre-wrap}.ck-content pre code{background:unset;border-radius:0;padding:0}.ck.ck-editor__editable pre{position:relative}.ck.ck-editor__editable pre[data-language]:after{content:attr(data-language);position:absolute}:root{--ck-color-code-block-label-background:#757575}.ck.ck-editor__editable pre[data-language]:after{background:var(--ck-color-code-block-label-background);color:#fff;font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);right:10px;top:-1px;white-space:nowrap}.ck.ck-code-block-dropdown .ck-dropdown__panel{max-height:250px;overflow-x:hidden;overflow-y:auto}",""]);const p=h},609:n=>{"use strict";n.exports=function(s){var a=[];return a.toString=function(){return this.map(function(c){var h=s(c);return c[2]?"@media ".concat(c[2]," {").concat(h,"}"):h}).join("")},a.i=function(c,h,p){typeof c=="string"&&(c=[[null,c,""]]);var d={};if(p)for(var k=0;k<this.length;k++){var M=this[k][0];M!=null&&(d[M]=!0)}for(var C=0;C<c.length;C++){var w=[].concat(c[C]);p&&d[w[0]]||(h&&(w[2]?w[2]="".concat(h," and ").concat(w[2]):w[2]=h),a.push(w))}},a}},62:(n,s,a)=>{"use strict";var c,h=function(){return c===void 0&&(c=Boolean(window&&document&&document.all&&!window.atob)),c},p=function(){var x={};return function(T){if(x[T]===void 0){var u=document.querySelector(T);if(window.HTMLIFrameElement&&u instanceof window.HTMLIFrameElement)try{u=u.contentDocument.head}catch{u=null}x[T]=u}return x[T]}}(),d=[];function k(x){for(var T=-1,u=0;u<d.length;u++)if(d[u].identifier===x){T=u;break}return T}function M(x,T){for(var u={},b=[],E=0;E<x.length;E++){var A=x[E],R=T.base?A[0]+T.base:A[0],H=u[R]||0,z="".concat(R," ").concat(H);u[R]=H+1;var V=k(z),$={css:A[1],media:A[2],sourceMap:A[3]};V!==-1?(d[V].references++,d[V].updater($)):d.push({identifier:z,updater:D($,T),references:1}),b.push(z)}return b}function C(x){var T=document.createElement("style"),u=x.attributes||{};if(u.nonce===void 0){var b=a.nc;b&&(u.nonce=b)}if(Object.keys(u).forEach(function(A){T.setAttribute(A,u[A])}),typeof x.insert=="function")x.insert(T);else{var E=p(x.insert||"head");if(!E)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");E.appendChild(T)}return T}var w,I=(w=[],function(x,T){return w[x]=T,w.filter(Boolean).join(`
`)});function F(x,T,u,b){var E=u?"":b.media?"@media ".concat(b.media," {").concat(b.css,"}"):b.css;if(x.styleSheet)x.styleSheet.cssText=I(T,E);else{var A=document.createTextNode(E),R=x.childNodes;R[T]&&x.removeChild(R[T]),R.length?x.insertBefore(A,R[T]):x.appendChild(A)}}function U(x,T,u){var b=u.css,E=u.media,A=u.sourceMap;if(E?x.setAttribute("media",E):x.removeAttribute("media"),A&&typeof btoa<"u"&&(b+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(A))))," */")),x.styleSheet)x.styleSheet.cssText=b;else{for(;x.firstChild;)x.removeChild(x.firstChild);x.appendChild(document.createTextNode(b))}}var B=null,N=0;function D(x,T){var u,b,E;if(T.singleton){var A=N++;u=B||(B=C(T)),b=F.bind(null,u,A,!1),E=F.bind(null,u,A,!0)}else u=C(T),b=U.bind(null,u,T),E=function(){(function(R){if(R.parentNode===null)return!1;R.parentNode.removeChild(R)})(u)};return b(x),function(R){if(R){if(R.css===x.css&&R.media===x.media&&R.sourceMap===x.sourceMap)return;b(x=R)}else E()}}n.exports=function(x,T){(T=T||{}).singleton||typeof T.singleton=="boolean"||(T.singleton=h());var u=M(x=x||[],T);return function(b){if(b=b||[],Object.prototype.toString.call(b)==="[object Array]"){for(var E=0;E<u.length;E++){var A=k(u[E]);d[A].references--}for(var R=M(b,T),H=0;H<u.length;H++){var z=k(u[H]);d[z].references===0&&(d[z].updater(),d.splice(z,1))}u=R}}}},704:(n,s,a)=>{n.exports=a(79)("./src/core.js")},492:(n,s,a)=>{n.exports=a(79)("./src/engine.js")},331:(n,s,a)=>{n.exports=a(79)("./src/enter.js")},273:(n,s,a)=>{n.exports=a(79)("./src/ui.js")},209:(n,s,a)=>{n.exports=a(79)("./src/utils.js")},79:n=>{"use strict";n.exports=CKEditor5.dll}},v={};function t(n){var s=v[n];if(s!==void 0)return s.exports;var a=v[n]={id:n,exports:{}};return Z[n](a,a.exports,t),a.exports}t.n=n=>{var s=n&&n.__esModule?()=>n.default:()=>n;return t.d(s,{a:s}),s},t.d=(n,s)=>{for(var a in s)t.o(s,a)&&!t.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:s[a]})},t.o=(n,s)=>Object.prototype.hasOwnProperty.call(n,s),t.r=n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.nc=void 0;var r={};(()=>{"use strict";t.r(r),t.d(r,{CodeBlock:()=>z,CodeBlockEditing:()=>D,CodeBlockUI:()=>H});var n=t(704),s=t(331),a=t(492),c=t(209);function h(V){const $=V.t,ee=V.config.get("codeBlock.languages");for(const q of ee)q.label==="Plain text"&&(q.label=$("Plain text")),q.class===void 0&&(q.class=`language-${q.language}`);return ee}function p(V,$,ee){const q={};for(const oe of V)$==="class"?q[oe[$].split(" ").shift()]=oe[ee]:q[oe[$]]=oe[ee];return q}function d(V){return V.data.match(/^(\s*)/)[0]}function k(V){const $=V.document.selection,ee=[];if($.isCollapsed)return[$.anchor];const q=$.getFirstRange().getWalker({ignoreElementEnd:!0,direction:"backward"});for(const{item:oe}of q){if(!oe.is("$textProxy"))continue;const{parent:X,startOffset:pe}=oe.textNode;if(!X.is("element","codeBlock"))continue;const Ie=d(oe.textNode),se=V.createPositionAt(X,pe+Ie.length);ee.push(se)}return ee}function M(V){const $=(0,c.first)(V.getSelectedBlocks());return!!$&&$.is("element","codeBlock")}function C(V,$){return!$.is("rootElement")&&!V.isLimit($)&&V.checkChild($.parent,"codeBlock")}class w extends n.Command{constructor($){super($),this._lastLanguage=null}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute($={}){const ee=this.editor,q=ee.model,oe=q.document.selection,X=h(ee)[0],pe=Array.from(oe.getSelectedBlocks()),Ie=$.forceValue==null?!this.value:$.forceValue,se=function(be,fe,ue){return be.language?be.language:be.usePreviousLanguageChoice&&fe?fe:ue}($,this._lastLanguage,X.language);q.change(be=>{Ie?this._applyCodeBlock(be,pe,se):this._removeCodeBlock(be,pe)})}_getValue(){const $=this.editor.model.document.selection,ee=(0,c.first)($.getSelectedBlocks());return!(!ee||!ee.is("element","codeBlock"))&&ee.getAttribute("language")}_checkEnabled(){if(this.value)return!0;const $=this.editor.model.document.selection,ee=this.editor.model.schema,q=(0,c.first)($.getSelectedBlocks());return!!q&&C(ee,q)}_applyCodeBlock($,ee,q){this._lastLanguage=q;const oe=this.editor.model.schema,X=ee.filter(pe=>C(oe,pe));for(const pe of X)$.rename(pe,"codeBlock"),$.setAttribute("language",q,pe),oe.removeDisallowedAttributes([pe],$),Array.from(pe.getChildren()).filter(Ie=>!oe.checkChild(pe,Ie)).forEach(Ie=>$.remove(Ie));X.reverse().forEach((pe,Ie)=>{const se=X[Ie+1];pe.previousSibling===se&&($.appendElement("softBreak",se),$.merge($.createPositionBefore(pe)))})}_removeCodeBlock($,ee){const q=ee.filter(oe=>oe.is("element","codeBlock"));for(const oe of q){const X=$.createRangeOn(oe);for(const pe of Array.from(X.getItems()).reverse())if(pe.is("element","softBreak")&&pe.parent.is("element","codeBlock")){const{position:Ie}=$.split($.createPositionBefore(pe)),se=Ie.nodeAfter;$.rename(se,"paragraph"),$.removeAttribute("language",se),$.remove(pe)}$.rename(oe,"paragraph"),$.removeAttribute("language",oe)}}}class I extends n.Command{constructor($){super($),this._indentSequence=$.config.get("codeBlock.indentSequence")}refresh(){this.isEnabled=this._checkEnabled()}execute(){const $=this.editor.model;$.change(ee=>{const q=k($);for(const oe of q){const X=ee.createText(this._indentSequence);$.insertContent(X,oe)}})}_checkEnabled(){return!!this._indentSequence&&M(this.editor.model.document.selection)}}class F extends n.Command{constructor($){super($),this._indentSequence=$.config.get("codeBlock.indentSequence")}refresh(){this.isEnabled=this._checkEnabled()}execute(){const $=this.editor.model;$.change(()=>{const ee=k($);for(const q of ee){const oe=U($,q,this._indentSequence);oe&&$.deleteContent($.createSelection(oe))}})}_checkEnabled(){if(!this._indentSequence)return!1;const $=this.editor.model;return!!M($.document.selection)&&k($).some(ee=>U($,ee,this._indentSequence))}}function U(V,$,ee){const q=function(se){let be=se.parent.getChild(se.index);return be&&!be.is("element","softBreak")||(be=se.nodeBefore),!be||be.is("element","softBreak")?null:be}($);if(!q)return null;const oe=d(q),X=oe.lastIndexOf(ee);if(X+ee.length!==oe.length||X===-1)return null;const{parent:pe,startOffset:Ie}=q;return V.createRange(V.createPositionAt(pe,Ie+X),V.createPositionAt(pe,Ie+X+ee.length))}function B(V,$,ee=!1){const q=p($,"language","class"),oe=p($,"language","label");return(X,pe,Ie)=>{const{writer:se,mapper:be,consumable:fe}=Ie;if(!fe.consume(pe.item,"insert"))return;const ue=pe.item.getAttribute("language"),we=be.toViewPosition(V.createPositionBefore(pe.item)),Me={};ee&&(Me["data-language"]=oe[ue],Me.spellcheck="false");const Ce=q[ue]?{class:q[ue]}:void 0,Ne=se.createContainerElement("code",Ce),Ye=se.createContainerElement("pre",Me,Ne);se.insert(we,Ye),be.bindElements(pe.item,Ne)}}const N="paragraph";class D extends n.Plugin{static get pluginName(){return"CodeBlockEditing"}static get requires(){return[s.ShiftEnter]}constructor($){super($),$.config.define("codeBlock",{languages:[{language:"plaintext",label:"Plain text"},{language:"c",label:"C"},{language:"cs",label:"C#"},{language:"cpp",label:"C++"},{language:"css",label:"CSS"},{language:"diff",label:"Diff"},{language:"html",label:"HTML"},{language:"java",label:"Java"},{language:"javascript",label:"JavaScript"},{language:"php",label:"PHP"},{language:"python",label:"Python"},{language:"ruby",label:"Ruby"},{language:"typescript",label:"TypeScript"},{language:"xml",label:"XML"}],indentSequence:"	"})}init(){const $=this.editor,ee=$.model.schema,q=$.model,oe=$.editing.view,X=$.plugins.has("DocumentListEditing"),pe=h($);$.commands.add("codeBlock",new w($)),$.commands.add("indentCodeBlock",new I($)),$.commands.add("outdentCodeBlock",new F($)),this.listenTo(oe.document,"tab",(Ie,se)=>{const be=se.shiftKey?"outdentCodeBlock":"indentCodeBlock";$.commands.get(be).isEnabled&&($.execute(be),se.stopPropagation(),se.preventDefault(),Ie.stop())},{context:"pre"}),ee.register("codeBlock",{allowWhere:"$block",allowChildren:"$text",isBlock:!0,allowAttributes:["language"]}),ee.addAttributeCheck((Ie,se)=>{const be=Ie.endsWith("codeBlock")&&se.startsWith("list")&&se!=="list";return!(!X||!be)||!Ie.endsWith("codeBlock $text")&&void 0}),$.model.schema.addChildCheck((Ie,se)=>{if(Ie.endsWith("codeBlock")&&se.isObject)return!1}),$.editing.downcastDispatcher.on("insert:codeBlock",B(q,pe,!0)),$.data.downcastDispatcher.on("insert:codeBlock",B(q,pe)),$.data.downcastDispatcher.on("insert:softBreak",function(Ie){return(se,be,fe)=>{if(be.item.parent.name!=="codeBlock")return;const{writer:ue,mapper:we,consumable:Me}=fe;if(!Me.consume(be.item,"insert"))return;const Ce=we.toViewPosition(Ie.createPositionBefore(be.item));ue.insert(Ce,ue.createText(`
`))}}(q),{priority:"high"}),$.data.upcastDispatcher.on("element:code",function(Ie,se){const be=p(se,"class","language"),fe=se[0].language;return(ue,we,Me)=>{const Ce=we.viewItem,Ne=Ce.parent;if(!Ne||!Ne.is("element","pre")||we.modelCursor.findAncestor("codeBlock"))return;const{consumable:Ye,writer:mt}=Me;if(!Ye.test(Ce,{name:!0}))return;const Ct=mt.createElement("codeBlock"),ln=[...Ce.getClassNames()];ln.length||ln.push("");for(const $e of ln){const Qe=be[$e];if(Qe){mt.setAttribute("language",Qe,Ct);break}}Ct.hasAttribute("language")||mt.setAttribute("language",fe,Ct),Me.convertChildren(Ce,Ct),Me.safeInsert(Ct,we.modelCursor)&&(Ye.consume(Ce,{name:!0}),Me.updateConversionResult(Ct,we))}}(0,pe)),$.data.upcastDispatcher.on("text",(Ie,se,{consumable:be,writer:fe})=>{let ue=se.modelCursor;if(!be.test(se.viewItem)||!ue.findAncestor("codeBlock"))return;be.consume(se.viewItem);const we=se.viewItem.data.split(`
`).map(Ce=>fe.createText(Ce)),Me=we[we.length-1];for(const Ce of we)if(fe.insert(Ce,ue),ue=ue.getShiftedBy(Ce.offsetSize),Ce!==Me){const Ne=fe.createElement("softBreak");fe.insert(Ne,ue),ue=fe.createPositionAfter(Ne)}se.modelRange=fe.createRange(se.modelCursor,ue),se.modelCursor=ue}),$.data.upcastDispatcher.on("element:pre",(Ie,se,{consumable:be})=>{const fe=se.viewItem;if(fe.findAncestor("pre"))return;const ue=Array.from(fe.getChildren()),we=ue.find(Me=>Me.is("element","code"));if(we)for(const Me of ue)Me!==we&&Me.is("$text")&&be.consume(Me,{name:!0})},{priority:"high"}),this.listenTo($.editing.view.document,"clipboardInput",(Ie,se)=>{let be=q.createRange(q.document.selection.anchor);if(se.targetRanges&&(be=$.editing.mapper.toModelRange(se.targetRanges[0])),!be.start.parent.is("element","codeBlock"))return;const fe=se.dataTransfer.getData("text/plain"),ue=new a.UpcastWriter($.editing.view.document);se.content=function(we,Me){const Ce=we.createDocumentFragment(),Ne=Me.split(`
`),Ye=Ne.reduce((mt,Ct,ln)=>(mt.push(Ct),ln<Ne.length-1&&mt.push(we.createElement("br")),mt),[]);return we.appendChild(Ye,Ce),Ce}(ue,fe)}),this.listenTo(q,"getSelectedContent",(Ie,[se])=>{const be=se.anchor;!se.isCollapsed&&be.parent.is("element","codeBlock")&&be.hasSameParentAs(se.focus)&&q.change(fe=>{const ue=Ie.return;if(be.parent.is("element")&&(ue.childCount>1||se.containsEntireContent(be.parent))){const Me=fe.createElement("codeBlock",be.parent.getAttributes());fe.append(ue,Me);const Ce=fe.createDocumentFragment();return fe.append(Me,Ce),void(Ie.return=Ce)}const we=ue.getChild(0);ee.checkAttribute(we,"code")&&fe.setAttribute("code",!0,we)})})}afterInit(){const $=this.editor,ee=$.commands,q=ee.get("indent"),oe=ee.get("outdent");q&&q.registerChildCommand(ee.get("indentCodeBlock"),{priority:"highest"}),oe&&oe.registerChildCommand(ee.get("outdentCodeBlock")),this.listenTo($.editing.view.document,"enter",(X,pe)=>{$.model.document.selection.getLastPosition().parent.is("element","codeBlock")&&(function(Ie,se){const be=Ie.model,fe=be.document,ue=Ie.editing.view,we=fe.selection.getLastPosition(),Me=we.nodeAfter;return se||!fe.selection.isCollapsed||!we.isAtStart||!T(Me)?!1:(Ie.model.change(Ce=>{Ie.execute("enter");const Ne=fe.selection.anchor.parent.previousSibling;Ce.rename(Ne,N),Ce.setSelection(Ne,"in"),Ie.model.schema.removeDisallowedAttributes([Ne],Ce),Ce.remove(Me)}),ue.scrollToTheSelection(),!0)}($,pe.isSoft)||function(Ie,se){const be=Ie.model,fe=be.document,ue=Ie.editing.view,we=fe.selection.getLastPosition(),Me=we.nodeBefore;let Ce;if(se||!fe.selection.isCollapsed||!we.isAtEnd||!Me||!Me.previousSibling)return!1;if(T(Me)&&T(Me.previousSibling))Ce=be.createRange(be.createPositionBefore(Me.previousSibling),be.createPositionAfter(Me));else if(x(Me)&&T(Me.previousSibling)&&T(Me.previousSibling.previousSibling))Ce=be.createRange(be.createPositionBefore(Me.previousSibling.previousSibling),be.createPositionAfter(Me));else{if(!(x(Me)&&T(Me.previousSibling)&&x(Me.previousSibling.previousSibling)&&Me.previousSibling.previousSibling&&T(Me.previousSibling.previousSibling.previousSibling)))return!1;Ce=be.createRange(be.createPositionBefore(Me.previousSibling.previousSibling.previousSibling),be.createPositionAfter(Me))}return Ie.model.change(Ne=>{Ne.remove(Ce),Ie.execute("enter");const Ye=fe.selection.anchor.parent;Ne.rename(Ye,N),Ie.model.schema.removeDisallowedAttributes([Ye],Ne)}),ue.scrollToTheSelection(),!0}($,pe.isSoft)||function(Ie){const se=Ie.model,be=se.document,fe=be.selection.getLastPosition(),ue=fe.nodeBefore||fe.textNode;let we;ue&&ue.is("$text")&&(we=d(ue)),Ie.model.change(Me=>{Ie.execute("shiftEnter"),we&&Me.insertText(we,be.selection.anchor)})}($),pe.preventDefault(),X.stop())},{context:"pre"})}}function x(V){return V&&V.is("$text")&&!V.data.match(/\S/)}function T(V){return V&&V.is("element","softBreak")}var u=t(273),b=t(62),E=t.n(b),A=t(67),R={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};E()(A.Z,R),A.Z.locals;class H extends n.Plugin{static get pluginName(){return"CodeBlockUI"}init(){const $=this.editor,ee=$.t,q=$.ui.componentFactory,oe=h($);q.add("codeBlock",X=>{const pe=$.commands.get("codeBlock"),Ie=(0,u.createDropdown)(X,u.SplitButtonView),se=Ie.buttonView;return se.set({label:ee("Insert code block"),tooltip:!0,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.87 12.61a.75.75 0 0 1-.089.976l-.085.07-3.154 2.254 3.412 2.414a.75.75 0 0 1 .237.95l-.057.095a.75.75 0 0 1-.95.237l-.096-.058-4.272-3.022-.003-1.223 4.01-2.867a.75.75 0 0 1 1.047.174zm2.795-.231.095.057 4.011 2.867-.003 1.223-4.272 3.022-.095.058a.75.75 0 0 1-.88-.151l-.07-.086-.058-.095a.75.75 0 0 1 .15-.88l.087-.07 3.412-2.414-3.154-2.253-.085-.071a.75.75 0 0 1 .862-1.207zM16 0a2 2 0 0 1 2 2v9.354l-.663-.492-.837-.001V2a.5.5 0 0 0-.5-.5H2a.5.5 0 0 0-.5.5v15a.5.5 0 0 0 .5.5h3.118L7.156 19H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h14zM5.009 15l.003 1H3v-1h2.009zm2.188-2-1.471 1H5v-1h2.197zM10 11v.095L8.668 12H7v-1h3zm4-2v1H7V9h7zm0-2v1H7V7h7zm-4-2v1H5V5h5zM6 3v1H3V3h3z"/></svg>',isToggleable:!0}),se.bind("isOn").to(pe,"value",be=>!!be),se.on("execute",()=>{$.execute("codeBlock",{usePreviousLanguageChoice:!0}),$.editing.view.focus()}),Ie.on("execute",be=>{$.execute("codeBlock",{language:be.source._codeBlockLanguage,forceValue:!0}),$.editing.view.focus()}),Ie.class="ck-code-block-dropdown",Ie.bind("isEnabled").to(pe),(0,u.addListToDropdown)(Ie,()=>this._getLanguageListItemDefinitions(oe)),Ie})}_getLanguageListItemDefinitions($){const ee=this.editor.commands.get("codeBlock"),q=new c.Collection;for(const oe of $){const X={type:"button",model:new u.Model({_codeBlockLanguage:oe.language,label:oe.label,withText:!0})};X.model.bind("isOn").to(ee,"value",pe=>pe===X.model._codeBlockLanguage),q.add(X)}return q}}class z extends n.Plugin{static get requires(){return[D,H]}static get pluginName(){return"CodeBlock"}}})(),(window.CKEditor5=window.CKEditor5||{}).codeBlock=r})()},29410:()=>{/*!
 * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md.
 */(()=>{var Z={945:(n,s,a)=>{n.exports=a(79)("./src/clipboard.js")},704:(n,s,a)=>{n.exports=a(79)("./src/core.js")},331:(n,s,a)=>{n.exports=a(79)("./src/enter.js")},468:(n,s,a)=>{n.exports=a(79)("./src/select-all.js")},181:(n,s,a)=>{n.exports=a(79)("./src/typing.js")},254:(n,s,a)=>{n.exports=a(79)("./src/undo.js")},79:n=>{"use strict";n.exports=CKEditor5.dll}},v={};function t(n){var s=v[n];if(s!==void 0)return s.exports;var a=v[n]={exports:{}};return Z[n](a,a.exports,t),a.exports}t.d=(n,s)=>{for(var a in s)t.o(s,a)&&!t.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:s[a]})},t.o=(n,s)=>Object.prototype.hasOwnProperty.call(n,s),t.r=n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var r={};(()=>{"use strict";t.r(r),t.d(r,{Essentials:()=>d});var n=t(704),s=t(945),a=t(331),c=t(468),h=t(181),p=t(254);class d extends n.Plugin{static get requires(){return[s.Clipboard,a.Enter,c.SelectAll,a.ShiftEnter,h.Typing,p.Undo]}static get pluginName(){return"Essentials"}}})(),(window.CKEditor5=window.CKEditor5||{}).essentials=r})()},23330:(Z,v,t)=>{(function(r){const n=r.en=r.en||{};n.dictionary=Object.assign(n.dictionary||{},{Find:"Find","Find and replace":"Find and replace","Find in text\u2026":"Find in text\u2026","Match case":"Match case","Next result":"Next result","Previous result":"Previous result",Replace:"Replace","Replace all":"Replace all","Replace with\u2026":"Replace with\u2026","Show options":"Show options","Text to find must not be empty.":"Text to find must not be empty.","Tip: Find some text first in order to replace it.":"Tip: Find some text first in order to replace it.","Whole words only":"Whole words only"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),(()=>{var r={299:(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p(609),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck-find-result{background:var(--ck-color-highlight-background);color:var(--ck-color-text)}.ck-find-result_selected{background:#ff9633}",""]);const M=k},226:(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p(609),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck.ck-find-and-replace-form{max-width:100%}.ck.ck-find-and-replace-form fieldset{display:flex}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find .ck-results-counter{position:absolute}.ck.ck-find-and-replace-form{width:400px}.ck.ck-find-and-replace-form:focus{outline:none}.ck.ck-find-and-replace-form fieldset{align-content:stretch;align-items:center;border:0;flex-direction:row;flex-wrap:nowrap;margin:0;padding:var(--ck-spacing-large)}.ck.ck-find-and-replace-form fieldset>.ck-button{flex:0 0 auto}[dir=ltr] .ck.ck-find-and-replace-form fieldset>*+*{margin-left:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-find-and-replace-form fieldset>*+*{margin-right:var(--ck-spacing-standard)}.ck.ck-find-and-replace-form fieldset .ck-labeled-field-view{flex:1 1 auto}.ck.ck-find-and-replace-form fieldset .ck-labeled-field-view .ck-input{min-width:50px;width:100%}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find{align-items:flex-start}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find>.ck-button-find{font-weight:700}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find>.ck-button-find .ck-button__label{padding-left:var(--ck-spacing-large);padding-right:var(--ck-spacing-large)}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find>.ck-button-prev>.ck-icon{transform:rotate(90deg)}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find>.ck-button-next>.ck-icon{transform:rotate(-90deg)}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find .ck-results-counter{top:50%;transform:translateY(-50%)}[dir=ltr] .ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find .ck-results-counter{right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find .ck-results-counter{left:var(--ck-spacing-standard)}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find .ck-results-counter{color:var(--ck-color-base-border)}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__replace{flex-wrap:wrap;justify-content:flex-end;margin-top:calc(var(--ck-spacing-large)*-1)}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__replace>.ck-labeled-field-view{margin-bottom:var(--ck-spacing-large)}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__replace>.ck-options-dropdown{margin-left:0;margin-right:auto}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__replace>.ck-labeled-field-view,.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__replace>.ck-labeled-field-view .ck-input{width:100%}@media screen and (max-width:600px){.ck.ck-find-and-replace-form{width:300px}.ck.ck-find-and-replace-form fieldset{flex-wrap:wrap}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find .ck-labeled-field-view{flex:1 0 auto;margin-bottom:var(--ck-spacing-standard);width:100%}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find>.ck-button{text-align:center}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find>.ck-button:first-of-type{flex:1 1 auto}[dir=ltr] .ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find>.ck-button:first-of-type{margin-left:0}[dir=rtl] .ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find>.ck-button:first-of-type{margin-right:0}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find>.ck-button:first-of-type .ck-button__label{text-align:center;width:100%}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__replace>:not(.ck-labeled-field-view){flex:1 1 auto}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__replace>.ck-dropdown:not(.ck-labeled-field-view){flex-grow:0}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__replace>.ck-button:not(.ck-labeled-field-view)>.ck-button__label{text-align:center;width:100%}}",""]);const M=k},764:(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p(609),k=p.n(d)()(function(C){return C[1]});k.push([c.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',""]);const M=k},609:c=>{"use strict";c.exports=function(h){var p=[];return p.toString=function(){return this.map(function(d){var k=h(d);return d[2]?"@media ".concat(d[2]," {").concat(k,"}"):k}).join("")},p.i=function(d,k,M){typeof d=="string"&&(d=[[null,d,""]]);var C={};if(M)for(var w=0;w<this.length;w++){var I=this[w][0];I!=null&&(C[I]=!0)}for(var F=0;F<d.length;F++){var U=[].concat(d[F]);M&&C[U[0]]||(k&&(U[2]?U[2]="".concat(k," and ").concat(U[2]):U[2]=k),p.push(U))}},p}},62:(c,h,p)=>{"use strict";var d,k=function(){return d===void 0&&(d=Boolean(window&&document&&document.all&&!window.atob)),d},M=function(){var b={};return function(E){if(b[E]===void 0){var A=document.querySelector(E);if(window.HTMLIFrameElement&&A instanceof window.HTMLIFrameElement)try{A=A.contentDocument.head}catch{A=null}b[E]=A}return b[E]}}(),C=[];function w(b){for(var E=-1,A=0;A<C.length;A++)if(C[A].identifier===b){E=A;break}return E}function I(b,E){for(var A={},R=[],H=0;H<b.length;H++){var z=b[H],V=E.base?z[0]+E.base:z[0],$=A[V]||0,ee="".concat(V," ").concat($);A[V]=$+1;var q=w(ee),oe={css:z[1],media:z[2],sourceMap:z[3]};q!==-1?(C[q].references++,C[q].updater(oe)):C.push({identifier:ee,updater:u(oe,E),references:1}),R.push(ee)}return R}function F(b){var E=document.createElement("style"),A=b.attributes||{};if(A.nonce===void 0){var R=p.nc;R&&(A.nonce=R)}if(Object.keys(A).forEach(function(z){E.setAttribute(z,A[z])}),typeof b.insert=="function")b.insert(E);else{var H=M(b.insert||"head");if(!H)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");H.appendChild(E)}return E}var U,B=(U=[],function(b,E){return U[b]=E,U.filter(Boolean).join(`
`)});function N(b,E,A,R){var H=A?"":R.media?"@media ".concat(R.media," {").concat(R.css,"}"):R.css;if(b.styleSheet)b.styleSheet.cssText=B(E,H);else{var z=document.createTextNode(H),V=b.childNodes;V[E]&&b.removeChild(V[E]),V.length?b.insertBefore(z,V[E]):b.appendChild(z)}}function D(b,E,A){var R=A.css,H=A.media,z=A.sourceMap;if(H?b.setAttribute("media",H):b.removeAttribute("media"),z&&typeof btoa<"u"&&(R+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(z))))," */")),b.styleSheet)b.styleSheet.cssText=R;else{for(;b.firstChild;)b.removeChild(b.firstChild);b.appendChild(document.createTextNode(R))}}var x=null,T=0;function u(b,E){var A,R,H;if(E.singleton){var z=T++;A=x||(x=F(E)),R=N.bind(null,A,z,!1),H=N.bind(null,A,z,!0)}else A=F(E),R=D.bind(null,A,E),H=function(){(function(V){if(V.parentNode===null)return!1;V.parentNode.removeChild(V)})(A)};return R(b),function(V){if(V){if(V.css===b.css&&V.media===b.media&&V.sourceMap===b.sourceMap)return;R(b=V)}else H()}}c.exports=function(b,E){(E=E||{}).singleton||typeof E.singleton=="boolean"||(E.singleton=k());var A=I(b=b||[],E);return function(R){if(R=R||[],Object.prototype.toString.call(R)==="[object Array]"){for(var H=0;H<A.length;H++){var z=w(A[H]);C[z].references--}for(var V=I(R,E),$=0;$<A.length;$++){var ee=w(A[$]);C[ee].references===0&&(C[ee].updater(),C.splice(ee,1))}A=V}}}},704:(c,h,p)=>{c.exports=p(79)("./src/core.js")},273:(c,h,p)=>{c.exports=p(79)("./src/ui.js")},209:(c,h,p)=>{c.exports=p(79)("./src/utils.js")},79:c=>{"use strict";c.exports=CKEditor5.dll}},n={};function s(c){var h=n[c];if(h!==void 0)return h.exports;var p=n[c]={id:c,exports:{}};return r[c](p,p.exports,s),p.exports}s.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return s.d(h,{a:h}),h},s.d=(c,h)=>{for(var p in h)s.o(h,p)&&!s.o(c,p)&&Object.defineProperty(c,p,{enumerable:!0,get:h[p]})},s.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),s.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},s.nc=void 0;var a={};(()=>{"use strict";s.r(a),s.d(a,{FindAndReplace:()=>ri,FindAndReplaceUtils:()=>It});var c=s(704),h=s(273),p=s(209),d=s(62),k=s.n(d),M=s(764),C={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};k()(M.Z,C),M.Z.locals;var w=s(226),I={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};k()(w.Z,I),w.Z.locals;const F='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.463 5.187a.888.888 0 1 1 1.254 1.255L9.16 10l3.557 3.557a.888.888 0 1 1-1.254 1.255L7.26 10.61a.888.888 0 0 1 .16-1.382l4.043-4.042z"/></svg>';class U extends h.View{constructor(Et){super(Et);const bn=Et.t;this.set("matchCount",0),this.set("highlightOffset",0),this.set("isDirty",!1),this.set("_areCommandsEnabled",{}),this.set("_resultsCounterText",""),this.set("_matchCase",!1),this.set("_wholeWordsOnly",!1),this.bind("_searchResultsFound").to(this,"matchCount",this,"isDirty",(cn,Yn)=>cn>0&&!Yn),this._findInputView=this._createInputField(bn("Find in text\u2026")),this._replaceInputView=this._createInputField(bn("Replace with\u2026")),this._findButtonView=this._createButton({label:bn("Find"),class:"ck-button-find ck-button-action",withText:!0}),this._findPrevButtonView=this._createButton({label:bn("Previous result"),class:"ck-button-prev",icon:F,keystroke:"Shift+F3",tooltip:!0}),this._findNextButtonView=this._createButton({label:bn("Next result"),class:"ck-button-next",icon:F,keystroke:"F3",tooltip:!0}),this._optionsDropdown=this._createOptionsDropdown(),this._replaceButtonView=this._createButton({label:bn("Replace"),class:"ck-button-replace",withText:!0}),this._replaceAllButtonView=this._createButton({label:bn("Replace all"),class:"ck-button-replaceall",withText:!0}),this._findFieldsetView=this._createFindFieldset(),this._replaceFieldsetView=this._createReplaceFieldset(),this._focusTracker=new p.FocusTracker,this._keystrokes=new p.KeystrokeHandler,this._focusables=new h.ViewCollection,this._focusCycler=new h.FocusCycler({focusables:this._focusables,focusTracker:this._focusTracker,keystrokeHandler:this._keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-find-and-replace-form"],tabindex:"-1"},children:[new h.FormHeaderView(Et,{label:bn("Find and replace")}),this._findFieldsetView,this._replaceFieldsetView]}),(0,h.injectCssTransitionDisabler)(this)}render(){super.render(),(0,h.submitHandler)({view:this}),this._initFocusCycling(),this._initKeystrokeHandling()}destroy(){super.destroy(),this._focusTracker.destroy(),this._keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}reset(){this._findInputView.errorText=null,this.isDirty=!0}get _textToFind(){return this._findInputView.fieldView.element.value}get _textToReplace(){return this._replaceInputView.fieldView.element.value}_createFindFieldset(){const Et=this.locale,bn=new h.View(Et);return this._findInputView.fieldView.on("input",()=>{this.isDirty=!0}),this._findButtonView.on("execute",this._onFindButtonExecute.bind(this)),this._findPrevButtonView.delegate("execute").to(this,"findPrevious"),this._findNextButtonView.delegate("execute").to(this,"findNext"),this._findPrevButtonView.bind("isEnabled").to(this,"_areCommandsEnabled",({findPrevious:cn})=>cn),this._findNextButtonView.bind("isEnabled").to(this,"_areCommandsEnabled",({findNext:cn})=>cn),this._injectFindResultsCounter(),bn.setTemplate({tag:"fieldset",attributes:{class:["ck","ck-find-and-replace-form__find"]},children:[this._findInputView,this._findButtonView,this._findPrevButtonView,this._findNextButtonView]}),bn}_onFindButtonExecute(){if(this._textToFind)this.isDirty=!1,this.fire("findNext",{searchText:this._textToFind,matchCase:this._matchCase,wholeWords:this._wholeWordsOnly});else{const Et=this.t;this._findInputView.errorText=Et("Text to find must not be empty.")}}_injectFindResultsCounter(){const Et=this.locale,bn=Et.t,cn=this.bindTemplate,Yn=new h.View(Et);this.bind("_resultsCounterText").to(this,"highlightOffset",this,"matchCount",(ze,Le)=>bn("%0 of %1",[ze,Le])),Yn.setTemplate({tag:"span",attributes:{class:["ck","ck-results-counter",cn.if("isDirty","ck-hidden")]},children:[{text:cn.to("_resultsCounterText")}]});const on=()=>{const ze=this._findInputView.fieldView.element;if(!ze||!(0,p.isVisible)(ze))return;const Le=new p.Rect(Yn.element).width,Ht=Et.uiLanguageDirection==="ltr"?"paddingRight":"paddingLeft";ze.style[Ht]=Le?`calc( 2 * var(--ck-spacing-standard) + ${Le}px )`:null};this.on("change:_resultsCounterText",on,{priority:"low"}),this.on("change:isDirty",on,{priority:"low"}),this._findInputView.template.children[0].children.push(Yn)}_createReplaceFieldset(){const Et=this.locale,bn=Et.t,cn=new h.View(Et);return this._replaceButtonView.bind("isEnabled").to(this,"_areCommandsEnabled",this,"_searchResultsFound",({replace:Yn},on)=>Yn&&on),this._replaceAllButtonView.bind("isEnabled").to(this,"_areCommandsEnabled",this,"_searchResultsFound",({replaceAll:Yn},on)=>Yn&&on),this._replaceInputView.bind("isEnabled").to(this,"_areCommandsEnabled",this,"_searchResultsFound",({replace:Yn},on)=>Yn&&on),this._replaceInputView.bind("infoText").to(this._replaceInputView,"isEnabled",this._replaceInputView,"isFocused",(Yn,on)=>Yn||!on?"":bn("Tip: Find some text first in order to replace it.")),this._replaceButtonView.on("execute",()=>{this.fire("replace",{searchText:this._textToFind,replaceText:this._textToReplace})}),this._replaceAllButtonView.on("execute",()=>{this.fire("replaceAll",{searchText:this._textToFind,replaceText:this._textToReplace}),this.focus()}),cn.setTemplate({tag:"fieldset",attributes:{class:["ck","ck-find-and-replace-form__replace"]},children:[this._replaceInputView,this._optionsDropdown,this._replaceButtonView,this._replaceAllButtonView]}),cn}_createOptionsDropdown(){const Et=this.locale,bn=Et.t,cn=(0,h.createDropdown)(Et);cn.class="ck-options-dropdown",cn.buttonView.set({withText:!1,label:bn("Show options"),icon:c.icons.cog,tooltip:!0});const Yn=new h.Model({withText:!0,label:bn("Match case"),_isMatchCaseSwitch:!0}),on=new h.Model({withText:!0,label:bn("Whole words only")});return Yn.bind("isOn").to(this,"_matchCase"),on.bind("isOn").to(this,"_wholeWordsOnly"),cn.on("execute",ze=>{ze.source._isMatchCaseSwitch?this._matchCase=!this._matchCase:this._wholeWordsOnly=!this._wholeWordsOnly,this.isDirty=!0}),(0,h.addListToDropdown)(cn,new p.Collection([{type:"switchbutton",model:Yn},{type:"switchbutton",model:on}])),cn}_initFocusCycling(){[this._findInputView,this._findButtonView,this._findPrevButtonView,this._findNextButtonView,this._replaceInputView,this._optionsDropdown,this._replaceButtonView,this._replaceAllButtonView].forEach(Et=>{this._focusables.add(Et),this._focusTracker.add(Et.element)})}_initKeystrokeHandling(){const Et=cn=>cn.stopPropagation(),bn=cn=>{cn.stopPropagation(),cn.preventDefault()};this._keystrokes.listenTo(this.element),this._keystrokes.set("f3",cn=>{bn(cn),this._findNextButtonView.fire("execute")}),this._keystrokes.set("shift+f3",cn=>{bn(cn),this._findPrevButtonView.fire("execute")}),this._keystrokes.set("enter",cn=>{const Yn=cn.target;Yn===this._findInputView.fieldView.element?(this._areCommandsEnabled.findNext?this._findNextButtonView.fire("execute"):this._findButtonView.fire("execute"),bn(cn)):Yn!==this._replaceInputView.fieldView.element||this.isDirty||(this._replaceButtonView.fire("execute"),bn(cn))}),this._keystrokes.set("shift+enter",cn=>{cn.target===this._findInputView.fieldView.element&&(this._areCommandsEnabled.findPrevious?this._findPrevButtonView.fire("execute"):this._findButtonView.fire("execute"),bn(cn))}),this._keystrokes.set("arrowright",Et),this._keystrokes.set("arrowleft",Et),this._keystrokes.set("arrowup",Et),this._keystrokes.set("arrowdown",Et),this.listenTo(this._findInputView.element,"selectstart",(cn,Yn)=>{Yn.stopPropagation()},{priority:"high"}),this.listenTo(this._replaceInputView.element,"selectstart",(cn,Yn)=>{Yn.stopPropagation()},{priority:"high"})}_createButton(Et){const bn=new h.ButtonView(this.locale);return bn.set(Et),bn}_createInputField(Et){const bn=new h.LabeledFieldView(this.locale,h.createLabeledInputText);return bn.label=Et,bn}}class B extends c.Plugin{static get pluginName(){return"FindAndReplaceUI"}constructor(Et){super(Et),this.formView=null}init(){const Et=this.editor;Et.ui.componentFactory.add("findAndReplace",bn=>{const cn=(0,h.createDropdown)(bn);return cn.bind("isEnabled").to(Et.commands.get("find")),cn.once("change:isOpen",()=>{this.formView=new U(Et.locale),cn.panelView.children.add(this.formView),this._setupFormView(this.formView)}),cn.on("change:isOpen",(Yn,on,ze)=>{ze?(this.formView.disableCssTransitions(),this.formView.reset(),this.formView._findInputView.fieldView.select(),this.formView.enableCssTransitions()):this.fire("searchReseted")},{priority:"low"}),this._setupDropdownButton(cn),cn})}_setupDropdownButton(Et){const bn=this.editor,cn=bn.locale.t;Et.buttonView.set({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m12.87 13.786 1.532-1.286 3.857 4.596a1 1 0 1 1-1.532 1.286l-3.857-4.596z"/><path d="M16.004 8.5a6.5 6.5 0 0 1-9.216 5.905c-1.154-.53-.863-1.415-.663-1.615.194-.194.564-.592 1.635-.141a4.5 4.5 0 0 0 5.89-5.904l-.104-.227 1.332-1.331c.045-.046.196-.041.224.007a6.47 6.47 0 0 1 .902 3.306zm-3.4-5.715c.562.305.742 1.106.354 1.494-.388.388-.995.414-1.476.178a4.5 4.5 0 0 0-6.086 5.882l.114.236-1.348 1.349c-.038.037-.17.022-.198-.023a6.5 6.5 0 0 1 5.54-9.9 6.469 6.469 0 0 1 3.1.784z"/><path d="M4.001 11.93.948 8.877a.2.2 0 0 1 .141-.341h6.106a.2.2 0 0 1 .141.341L4.283 11.93a.2.2 0 0 1-.282 0zm11.083-6.789 3.053 3.053a.2.2 0 0 1-.14.342H11.89a.2.2 0 0 1-.14-.342l3.052-3.053a.2.2 0 0 1 .282 0z"/></svg>',label:cn("Find and replace"),keystroke:"CTRL+F",tooltip:!0}),bn.keystrokes.set("Ctrl+F",(Yn,on)=>{Et.isEnabled&&(Et.isOpen=!0,on())})}_setupFormView(Et){const bn=this.editor.commands,cn=this.editor.plugins.get("FindAndReplaceEditing").state,Yn={before:-1,same:0,after:1};Et.bind("highlightOffset").to(cn,"highlightedResult",on=>on?Array.from(cn.results).sort((ze,Le)=>Yn[ze.marker.getStart().compareWith(Le.marker.getStart())]).indexOf(on)+1:0),Et.listenTo(cn.results,"change",()=>{Et.matchCount=cn.results.length}),Et.bind("_areCommandsEnabled").to(bn.get("findNext"),"isEnabled",bn.get("findPrevious"),"isEnabled",bn.get("replace"),"isEnabled",bn.get("replaceAll"),"isEnabled",(on,ze,Le,Ht)=>({findNext:on,findPrevious:ze,replace:Le,replaceAll:Ht})),Et.delegate("findNext","findPrevious","replace","replaceAll").to(this),Et.on("change:isDirty",(on,ze,Le)=>{Le&&this.fire("searchReseted")})}}class N extends c.Command{constructor(Et,bn){super(Et),this.isEnabled=!0,this.affectsData=!1,this._state=bn}execute(Et,{matchCase:bn,wholeWords:cn}={}){const{editor:Yn}=this,{model:on}=Yn,ze=Yn.plugins.get("FindAndReplaceUtils");let Le;typeof Et=="string"?(Le=ze.findByTextCallback(Et,{matchCase:bn,wholeWords:cn}),this._state.searchText=Et):Le=Et;const Ht=on.document.getRootNames().reduce((Mn,tr)=>ze.updateFindResultFromRange(on.createRangeIn(on.document.getRoot(tr)),on,Le,Mn),null);return this._state.clear(on),this._state.results.addMany(Array.from(Ht)),this._state.highlightedResult=Ht.get(0),typeof Et=="string"&&(this._state.searchText=Et),this._state.matchCase=!!bn,this._state.matchWholeWords=!!cn,{results:Ht,findCallback:Le}}}class D extends c.Command{constructor(Et,bn){super(Et),this.isEnabled=!0,this._state=bn}execute(Et,bn){const{model:cn}=this.editor;cn.change(Yn=>{const on=bn.marker.getRange();if(on.root.rootName==="$graveyard")return void this._state.results.remove(bn);let ze={};for(const Le of on.getItems())if(Le.is("$text")||Le.is("$textProxy")){ze=Le.getAttributes();break}cn.insertContent(Yn.createText(Et,ze),on),this._state.results.has(bn)&&this._state.results.remove(bn)})}}class x extends D{execute(Et,bn){const{editor:cn}=this,{model:Yn}=cn,on=cn.plugins.get("FindAndReplaceUtils"),ze=bn instanceof p.Collection?bn:Yn.document.getRootNames().reduce((Le,Ht)=>on.updateFindResultFromRange(Yn.createRangeIn(Yn.document.getRoot(Ht)),Yn,on.findByTextCallback(bn,this._state),Le),null);ze.length&&Yn.change(()=>{[...ze].forEach(Le=>{super.execute(Et,Le)})})}}class T extends c.Command{constructor(Et,bn){super(Et),this.affectsData=!1,this._state=bn,this.isEnabled=!1,this.listenTo(this._state.results,"change",()=>{this.isEnabled=this._state.results.length>1})}refresh(){this.isEnabled=this._state.results.length>1}execute(){const Et=this._state.results,bn=Et.getIndex(this._state.highlightedResult),cn=bn+1>=Et.length?0:bn+1;this._state.highlightedResult=this._state.results.get(cn)}}class u extends T{execute(){const Et=this._state.results.getIndex(this._state.highlightedResult),bn=Et-1<0?this._state.results.length-1:Et-1;this._state.highlightedResult=this._state.results.get(bn)}}class b{constructor(Et){this.set("results",new p.Collection),this.set("highlightedResult",null),this.set("searchText",""),this.set("replaceText",""),this.set("matchCase",!1),this.set("matchWholeWords",!1),this.results.on("change",(bn,{removed:cn,index:Yn})=>{if((cn=Array.from(cn)).length){let on=!1;if(Et.change(ze=>{for(const Le of cn)this.highlightedResult===Le&&(on=!0),Et.markers.has(Le.marker.name)&&ze.removeMarker(Le.marker)}),on){const ze=Yn>=this.results.length?0:Yn;this.highlightedResult=this.results.get(ze)}}})}clear(Et){this.searchText="",Et.change(bn=>{if(this.highlightedResult){const cn=this.highlightedResult.marker.name.split(":")[1],Yn=Et.markers.get(`findResultHighlighted:${cn}`);Yn&&bn.removeMarker(Yn)}[...this.results].forEach(({marker:cn})=>{bn.removeMarker(cn)})}),this.results.clear()}}(0,p.mix)(b,p.ObservableMixin);const E=typeof t.g=="object"&&t.g&&t.g.Object===Object&&t.g;var A=typeof self=="object"&&self&&self.Object===Object&&self;const R=E||A||Function("return this")(),H=R.Symbol,z=function(Bt,Et){for(var bn=-1,cn=Bt==null?0:Bt.length,Yn=Array(cn);++bn<cn;)Yn[bn]=Et(Bt[bn],bn,Bt);return Yn},V=Array.isArray;var $=Object.prototype,ee=$.hasOwnProperty,q=$.toString,oe=H?H.toStringTag:void 0;const X=function(Bt){var Et=ee.call(Bt,oe),bn=Bt[oe];try{Bt[oe]=void 0;var cn=!0}catch{}var Yn=q.call(Bt);return cn&&(Et?Bt[oe]=bn:delete Bt[oe]),Yn};var pe=Object.prototype.toString;const Ie=function(Bt){return pe.call(Bt)};var se="[object Null]",be="[object Undefined]",fe=H?H.toStringTag:void 0;const ue=function(Bt){return Bt==null?Bt===void 0?be:se:fe&&fe in Object(Bt)?X(Bt):Ie(Bt)},we=function(Bt){return Bt!=null&&typeof Bt=="object"};var Me="[object Symbol]";const Ce=function(Bt){return typeof Bt=="symbol"||we(Bt)&&ue(Bt)==Me};var Ne=1/0,Ye=H?H.prototype:void 0,mt=Ye?Ye.toString:void 0;const Ct=function Bt(Et){if(typeof Et=="string")return Et;if(V(Et))return z(Et,Bt)+"";if(Ce(Et))return mt?mt.call(Et):"";var bn=Et+"";return bn=="0"&&1/Et==-Ne?"-0":bn},ln=function(Bt){return Bt==null?"":Ct(Bt)};var $e=/[\\^$.*+?()[\]{}|]/g,Qe=RegExp($e.source);const bt=function(Bt){return(Bt=ln(Bt))&&Qe.test(Bt)?Bt.replace($e,"\\$&"):Bt};class It extends c.Plugin{static get pluginName(){return"FindAndReplaceUtils"}updateFindResultFromRange(Et,bn,cn,Yn){const on=Yn||new p.Collection;return bn.change(ze=>{[...Et].forEach(({type:Le,item:Ht})=>{if(Le==="elementStart"&&bn.schema.checkChild(Ht,"$text")){const Mn=cn({item:Ht,text:this.rangeToText(bn.createRangeIn(Ht))});if(!Mn)return;Mn.forEach(tr=>{const Sr=`findResult:${(0,p.uid)()}`,Xr=ze.addMarker(Sr,{usingOperation:!1,affectsData:!1,range:ze.createRange(ze.createPositionAt(Ht,tr.start),ze.createPositionAt(Ht,tr.end))}),gi=function(Pi,ii){const vr=Pi.find(({marker:at})=>ii.getStart().isBefore(at.getStart()));return vr?Pi.getIndex(vr):Pi.length}(on,Xr);on.add({id:Sr,label:tr.label,marker:Xr},gi)})}})}),on}rangeToText(Et){return Array.from(Et.getItems()).reduce((bn,cn)=>cn.is("text")||cn.is("textProxy")?bn+cn.data:`${bn}
`,"")}findByTextCallback(Et,bn){let cn="gu";bn.matchCase||(cn+="i");let Yn=`(${bt(Et)})`;if(bn.wholeWords){const ze="[^a-zA-Z\xC0-\u024F\u1E00-\u1EFF]";new RegExp("^"+ze).test(Et)||(Yn=`(^|${ze}|_)${Yn}`),new RegExp(ze+"$").test(Et)||(Yn=`${Yn}(?=_|${ze}|$)`)}const on=new RegExp(Yn,cn);return function({text:ze}){return[...ze.matchAll(on)].map(mn)}}}function mn(Bt){const Et=Bt.length-1;let bn=Bt.index;return Bt.length===3&&(bn+=Bt[1].length),{label:Bt[Et],start:bn,end:bn+Bt[Et].length}}function un(Bt){return Object.prototype.toString.apply(Bt)=="[object Range]"}function Be(Bt){const Et=Object.prototype.toString.apply(Bt);return Et=="[object Window]"||Et=="[object global]"}function je(Bt){return Object.prototype.toString.call(Bt)=="[object Text]"}const $t=["top","right","bottom","left","width","height"];class et{constructor(Et){const bn=un(Et);if(Object.defineProperty(this,"_source",{value:Et._source||Et,writable:!0,enumerable:!1}),Tn(Et)||bn)if(bn){const cn=et.getDomRangeRects(Et);Kt(this,et.getBoundingRect(cn))}else Kt(this,Et.getBoundingClientRect());else if(Be(Et)){const{innerWidth:cn,innerHeight:Yn}=Et;Kt(this,{top:0,right:cn,bottom:Yn,left:0,width:cn,height:Yn})}else Kt(this,Et)}clone(){return new et(this)}moveTo(Et,bn){return this.top=bn,this.right=Et+this.width,this.bottom=bn+this.height,this.left=Et,this}moveBy(Et,bn){return this.top+=bn,this.right+=Et,this.left+=Et,this.bottom+=bn,this}getIntersection(Et){const bn={top:Math.max(this.top,Et.top),right:Math.min(this.right,Et.right),bottom:Math.min(this.bottom,Et.bottom),left:Math.max(this.left,Et.left),width:0,height:0};return bn.width=bn.right-bn.left,bn.height=bn.bottom-bn.top,bn.width<0||bn.height<0?null:new et(bn)}getIntersectionArea(Et){const bn=this.getIntersection(Et);return bn?bn.getArea():0}getArea(){return this.width*this.height}getVisible(){const Et=this._source;let bn=this.clone();if(!kn(Et)){let cn=Et.parentNode||Et.commonAncestorContainer;for(;cn&&!kn(cn);){const Yn=new et(cn),on=bn.getIntersection(Yn);if(!on)return null;on.getArea()<bn.getArea()&&(bn=on),cn=cn.parentNode}}return bn}isEqual(Et){for(const bn of $t)if(this[bn]!==Et[bn])return!1;return!0}contains(Et){const bn=this.getIntersection(Et);return!(!bn||!bn.isEqual(Et))}excludeScrollbarsAndBorders(){const Et=this._source;let bn,cn,Yn;if(Be(Et))bn=Et.innerWidth-Et.document.documentElement.clientWidth,cn=Et.innerHeight-Et.document.documentElement.clientHeight,Yn=Et.getComputedStyle(Et.document.documentElement).direction;else{const on=function(ze){const Le=ze.ownerDocument.defaultView.getComputedStyle(ze);return{top:parseInt(Le.borderTopWidth,10),right:parseInt(Le.borderRightWidth,10),bottom:parseInt(Le.borderBottomWidth,10),left:parseInt(Le.borderLeftWidth,10)}}(Et);bn=Et.offsetWidth-Et.clientWidth-on.left-on.right,cn=Et.offsetHeight-Et.clientHeight-on.top-on.bottom,Yn=Et.ownerDocument.defaultView.getComputedStyle(Et).direction,this.left+=on.left,this.top+=on.top,this.right-=on.right,this.bottom-=on.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=bn,Yn==="ltr"?this.right-=bn:this.left+=bn,this.height-=cn,this.bottom-=cn,this}static getDomRangeRects(Et){const bn=[],cn=Array.from(Et.getClientRects());if(cn.length)for(const Yn of cn)bn.push(new et(Yn));else{let Yn=Et.startContainer;je(Yn)&&(Yn=Yn.parentNode);const on=new et(Yn.getBoundingClientRect());on.right=on.left,on.width=0,bn.push(on)}return bn}static getBoundingRect(Et){const bn={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY,width:0,height:0};let cn=0;for(const Yn of Et)cn++,bn.left=Math.min(bn.left,Yn.left),bn.top=Math.min(bn.top,Yn.top),bn.right=Math.max(bn.right,Yn.right),bn.bottom=Math.max(bn.bottom,Yn.bottom);return cn==0?null:(bn.width=bn.right-bn.left,bn.height=bn.bottom-bn.top,new et(bn))}}function Kt(Bt,Et){for(const bn of $t)Bt[bn]=Et[bn]}function kn(Bt){return!!Tn(Bt)&&Bt===Bt.ownerDocument.body}function Tn(Bt){return Bt!==null&&typeof Bt=="object"&&Bt.nodeType===1&&typeof Bt.getBoundingClientRect=="function"}function ht(Bt,Et,bn){const cn=Et.clone().moveBy(0,bn),Yn=Et.clone().moveBy(0,-bn),on=new et(Bt).excludeScrollbarsAndBorders();if(![Yn,cn].every(ze=>on.contains(ze))){let{scrollX:ze,scrollY:Le}=Bt;wt(Yn,on)?Le-=on.top-Et.top+bn:Je(cn,on)&&(Le+=Et.bottom-on.bottom+bn),ft(Et,on)?ze-=on.left-Et.left+bn:vn(Et,on)&&(ze+=Et.right-on.right+bn),Bt.scrollTo(ze,Le)}}function ot(Bt,Et){const bn=ut(Bt);let cn,Yn;for(;Bt!=bn.document.body;)Yn=Et(),cn=new et(Bt).excludeScrollbarsAndBorders(),cn.contains(Yn)||(wt(Yn,cn)?Bt.scrollTop-=cn.top-Yn.top:Je(Yn,cn)&&(Bt.scrollTop+=Yn.bottom-cn.bottom),ft(Yn,cn)?Bt.scrollLeft-=cn.left-Yn.left:vn(Yn,cn)&&(Bt.scrollLeft+=Yn.right-cn.right)),Bt=Bt.parentNode}function Je(Bt,Et){return Bt.bottom>Et.bottom}function wt(Bt,Et){return Bt.top<Et.top}function ft(Bt,Et){return Bt.left<Et.left}function vn(Bt,Et){return Bt.right>Et.right}function ut(Bt){return un(Bt)?Bt.startContainer.ownerDocument.defaultView:Bt.ownerDocument.defaultView}function Wt(Bt){if(un(Bt)){let Et=Bt.commonAncestorContainer;return je(Et)&&(Et=Et.parentNode),Et}return Bt.parentNode}function ae(Bt,Et){const bn=ut(Bt),cn=new et(Bt);if(bn===Et)return cn;{let Yn=bn;for(;Yn!=Et;){const on=Yn.frameElement,ze=new et(on).excludeScrollbarsAndBorders();cn.moveBy(ze.left,ze.top),Yn=Yn.parent}}return cn}const ne=function(Bt){var Et=typeof Bt;return Bt!=null&&(Et=="object"||Et=="function")},ge=function(){return R.Date.now()};var ye=/\s/;const Xe=function(Bt){for(var Et=Bt.length;Et--&&ye.test(Bt.charAt(Et)););return Et};var Ze=/^\s+/;const lt=function(Bt){return Bt&&Bt.slice(0,Xe(Bt)+1).replace(Ze,"")};var _t=NaN,zt=/^[-+]0x[0-9a-f]+$/i,Vt=/^0b[01]+$/i,sn=/^0o[0-7]+$/i,yn=parseInt;const dr=function(Bt){if(typeof Bt=="number")return Bt;if(Ce(Bt))return _t;if(ne(Bt)){var Et=typeof Bt.valueOf=="function"?Bt.valueOf():Bt;Bt=ne(Et)?Et+"":Et}if(typeof Bt!="string")return Bt===0?Bt:+Bt;Bt=lt(Bt);var bn=Vt.test(Bt);return bn||sn.test(Bt)?yn(Bt.slice(2),bn?2:8):zt.test(Bt)?_t:+Bt};var hr="Expected a function",Mr=Math.max,rr=Math.min;const Cr=function(Bt,Et,bn){var cn,Yn,on,ze,Le,Ht,Mn=0,tr=!1,Sr=!1,Xr=!0;if(typeof Bt!="function")throw new TypeError(hr);function gi(it){var Re=cn,ke=Yn;return cn=Yn=void 0,Mn=it,ze=Bt.apply(ke,Re)}function Pi(it){var Re=it-Ht;return Ht===void 0||Re>=Et||Re<0||Sr&&it-Mn>=on}function ii(){var it=ge();if(Pi(it))return vr(it);Le=setTimeout(ii,function(Re){var ke=Et-(Re-Ht);return Sr?rr(ke,on-(Re-Mn)):ke}(it))}function vr(it){return Le=void 0,Xr&&cn?gi(it):(cn=Yn=void 0,ze)}function at(){var it=ge(),Re=Pi(it);if(cn=arguments,Yn=this,Ht=it,Re){if(Le===void 0)return function(ke){return Mn=ke,Le=setTimeout(ii,Et),tr?gi(ke):ze}(Ht);if(Sr)return clearTimeout(Le),Le=setTimeout(ii,Et),gi(Ht)}return Le===void 0&&(Le=setTimeout(ii,Et)),ze}return Et=dr(Et)||0,ne(bn)&&(tr=!!bn.leading,on=(Sr="maxWait"in bn)?Mr(dr(bn.maxWait)||0,Et):on,Xr="trailing"in bn?!!bn.trailing:Xr),at.cancel=function(){Le!==void 0&&clearTimeout(Le),Mn=0,cn=Ht=Yn=Le=void 0},at.flush=function(){return Le===void 0?ze:vr(ge())},at};var Ur=s(299),$r={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};k()(Ur.Z,$r),Ur.Z.locals;class li extends c.Plugin{static get requires(){return[It]}static get pluginName(){return"FindAndReplaceEditing"}init(){this._activeResults=null,this.state=new b(this.editor.model),this._defineConverters(),this._defineCommands(),this.listenTo(this.state,"change:highlightedResult",(bn,cn,Yn,on)=>{const{model:ze}=this.editor;ze.change(Le=>{if(on){const Ht=on.marker.name.split(":")[1],Mn=ze.markers.get(`findResultHighlighted:${Ht}`);Mn&&Le.removeMarker(Mn)}if(Yn){const Ht=Yn.marker.name.split(":")[1];Le.addMarker(`findResultHighlighted:${Ht}`,{usingOperation:!1,affectsData:!1,range:Yn.marker.getRange()})}})});const Et=Cr(function(bn,cn,Yn){if(Yn){const on=this.editor.editing.view.domConverter,ze=this.editor.editing.mapper.toViewRange(Yn.marker.getRange());(function({target:Le,viewportOffset:Ht=0}){const Mn=ut(Le);let tr=Mn,Sr=null;for(;tr;){let Xr;Xr=Wt(tr==Mn?Le:Sr),ot(Xr,()=>ae(Le,tr));const gi=ae(Le,tr);if(ht(tr,gi,Ht),tr.parent!=tr){if(Sr=tr.frameElement,tr=tr.parent,!Sr)return}else tr=null}})({target:on.viewRangeToDom(ze),viewportOffset:40})}}.bind(this),32);this.listenTo(this.state,"change:highlightedResult",Et,{priority:"low"}),this.listenTo(this.editor,"destroy",Et.cancel)}find(Et){const{editor:bn}=this,{model:cn}=bn,{findCallback:Yn,results:on}=bn.execute("find",Et);return this._activeResults=on,this.listenTo(cn.document,"change:data",()=>function(ze,Le,Ht){const Mn=new Set,tr=new Set,Sr=Le.model;Sr.document.differ.getChanges().forEach(Xr=>{Xr.name==="$text"||Sr.schema.isInline(Xr.position.nodeAfter)?(Mn.add(Xr.position.parent),[...Sr.markers.getMarkersAtPosition(Xr.position)].forEach(gi=>{tr.add(gi.name)})):Xr.type==="insert"&&Mn.add(Xr.position.nodeAfter)}),Sr.document.differ.getChangedMarkers().forEach(({name:Xr,data:{newRange:gi}})=>{gi&&gi.start.root.rootName==="$graveyard"&&tr.add(Xr)}),Mn.forEach(Xr=>{[...Sr.markers.getMarkersIntersectingRange(Sr.createRangeIn(Xr))].forEach(gi=>tr.add(gi.name))}),Sr.change(Xr=>{tr.forEach(gi=>{ze.has(gi)&&ze.remove(gi),Xr.removeMarker(gi)})}),Mn.forEach(Xr=>{Le.plugins.get("FindAndReplaceUtils").updateFindResultFromRange(Sr.createRangeOn(Xr),Sr,Ht,ze)})}(this._activeResults,bn,Yn)),this._activeResults}stop(){this._activeResults&&(this.stopListening(this.editor.model.document),this.state.clear(this.editor.model),this._activeResults=null)}_defineCommands(){this.editor.commands.add("find",new N(this.editor,this.state)),this.editor.commands.add("findNext",new T(this.editor,this.state)),this.editor.commands.add("findPrevious",new u(this.editor,this.state)),this.editor.commands.add("replace",new D(this.editor,this.state)),this.editor.commands.add("replaceAll",new x(this.editor,this.state))}_defineConverters(){const{editor:Et}=this;Et.conversion.for("editingDowncast").markerToHighlight({model:"findResult",view:({markerName:bn})=>{const[,cn]=bn.split(":");return{name:"span",classes:["ck-find-result"],attributes:{"data-find-result":cn}}}}),Et.conversion.for("editingDowncast").markerToHighlight({model:"findResultHighlighted",view:({markerName:bn})=>{const[,cn]=bn.split(":");return{name:"span",classes:["ck-find-result_selected"],attributes:{"data-find-result":cn}}}})}}class ri extends c.Plugin{static get requires(){return[li,B]}static get pluginName(){return"FindAndReplace"}init(){const Et=this.editor.plugins.get("FindAndReplaceUI"),bn=this.editor.plugins.get("FindAndReplaceEditing"),cn=bn.state;Et.on("findNext",(Yn,on)=>{on?(cn.searchText=on.searchText,this.editor.execute("find",on.searchText,on)):this.editor.execute("findNext")}),Et.on("findPrevious",(Yn,on)=>{on&&cn.searchText!==on.searchText?this.editor.execute("find",on.searchText):this.editor.execute("findPrevious")}),Et.on("replace",(Yn,on)=>{cn.searchText!==on.searchText&&this.editor.execute("find",on.searchText);const ze=cn.highlightedResult;ze&&this.editor.execute("replace",on.replaceText,ze)}),Et.on("replaceAll",(Yn,on)=>{cn.searchText!==on.searchText&&this.editor.execute("find",on.searchText),this.editor.execute("replaceAll",on.replaceText,cn.results)}),Et.on("searchReseted",()=>{cn.clear(this.editor.model),bn.stop()})}}})(),(window.CKEditor5=window.CKEditor5||{}).findAndReplace=a})()},60145:()=>{(function(Z){const v=Z.en=Z.en||{};v.dictionary=Object.assign(v.dictionary||{},{"Choose heading":"Choose heading",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4","Heading 5":"Heading 5","Heading 6":"Heading 6",Paragraph:"Paragraph","Type or paste your content here.":"Type or paste your content here.","Type your title":"Type your title"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),(()=>{var Z={609:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(298),h=a.n(c)()(function(d){return d[1]});h.push([n.id,".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}",""]);const p=h},298:n=>{"use strict";n.exports=function(s){var a=[];return a.toString=function(){return this.map(function(c){var h=s(c);return c[2]?"@media ".concat(c[2]," {").concat(h,"}"):h}).join("")},a.i=function(c,h,p){typeof c=="string"&&(c=[[null,c,""]]);var d={};if(p)for(var k=0;k<this.length;k++){var M=this[k][0];M!=null&&(d[M]=!0)}for(var C=0;C<c.length;C++){var w=[].concat(c[C]);p&&d[w[0]]||(h&&(w[2]?w[2]="".concat(h," and ").concat(w[2]):w[2]=h),a.push(w))}},a}},62:(n,s,a)=>{"use strict";var c,h=function(){return c===void 0&&(c=Boolean(window&&document&&document.all&&!window.atob)),c},p=function(){var x={};return function(T){if(x[T]===void 0){var u=document.querySelector(T);if(window.HTMLIFrameElement&&u instanceof window.HTMLIFrameElement)try{u=u.contentDocument.head}catch{u=null}x[T]=u}return x[T]}}(),d=[];function k(x){for(var T=-1,u=0;u<d.length;u++)if(d[u].identifier===x){T=u;break}return T}function M(x,T){for(var u={},b=[],E=0;E<x.length;E++){var A=x[E],R=T.base?A[0]+T.base:A[0],H=u[R]||0,z="".concat(R," ").concat(H);u[R]=H+1;var V=k(z),$={css:A[1],media:A[2],sourceMap:A[3]};V!==-1?(d[V].references++,d[V].updater($)):d.push({identifier:z,updater:D($,T),references:1}),b.push(z)}return b}function C(x){var T=document.createElement("style"),u=x.attributes||{};if(u.nonce===void 0){var b=a.nc;b&&(u.nonce=b)}if(Object.keys(u).forEach(function(A){T.setAttribute(A,u[A])}),typeof x.insert=="function")x.insert(T);else{var E=p(x.insert||"head");if(!E)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");E.appendChild(T)}return T}var w,I=(w=[],function(x,T){return w[x]=T,w.filter(Boolean).join(`
`)});function F(x,T,u,b){var E=u?"":b.media?"@media ".concat(b.media," {").concat(b.css,"}"):b.css;if(x.styleSheet)x.styleSheet.cssText=I(T,E);else{var A=document.createTextNode(E),R=x.childNodes;R[T]&&x.removeChild(R[T]),R.length?x.insertBefore(A,R[T]):x.appendChild(A)}}function U(x,T,u){var b=u.css,E=u.media,A=u.sourceMap;if(E?x.setAttribute("media",E):x.removeAttribute("media"),A&&typeof btoa<"u"&&(b+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(A))))," */")),x.styleSheet)x.styleSheet.cssText=b;else{for(;x.firstChild;)x.removeChild(x.firstChild);x.appendChild(document.createTextNode(b))}}var B=null,N=0;function D(x,T){var u,b,E;if(T.singleton){var A=N++;u=B||(B=C(T)),b=F.bind(null,u,A,!1),E=F.bind(null,u,A,!0)}else u=C(T),b=U.bind(null,u,T),E=function(){(function(R){if(R.parentNode===null)return!1;R.parentNode.removeChild(R)})(u)};return b(x),function(R){if(R){if(R.css===x.css&&R.media===x.media&&R.sourceMap===x.sourceMap)return;b(x=R)}else E()}}n.exports=function(x,T){(T=T||{}).singleton||typeof T.singleton=="boolean"||(T.singleton=h());var u=M(x=x||[],T);return function(b){if(b=b||[],Object.prototype.toString.call(b)==="[object Array]"){for(var E=0;E<u.length;E++){var A=k(u[E]);d[A].references--}for(var R=M(b,T),H=0;H<u.length;H++){var z=k(u[H]);d[z].references===0&&(d[z].updater(),d.splice(z,1))}u=R}}}},704:(n,s,a)=>{n.exports=a(79)("./src/core.js")},492:(n,s,a)=>{n.exports=a(79)("./src/engine.js")},747:(n,s,a)=>{n.exports=a(79)("./src/paragraph.js")},273:(n,s,a)=>{n.exports=a(79)("./src/ui.js")},209:(n,s,a)=>{n.exports=a(79)("./src/utils.js")},79:n=>{"use strict";n.exports=CKEditor5.dll}},v={};function t(n){var s=v[n];if(s!==void 0)return s.exports;var a=v[n]={id:n,exports:{}};return Z[n](a,a.exports,t),a.exports}t.n=n=>{var s=n&&n.__esModule?()=>n.default:()=>n;return t.d(s,{a:s}),s},t.d=(n,s)=>{for(var a in s)t.o(s,a)&&!t.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:s[a]})},t.o=(n,s)=>Object.prototype.hasOwnProperty.call(n,s),t.r=n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.nc=void 0;var r={};(()=>{"use strict";t.r(r),t.d(r,{Heading:()=>B,HeadingButtonsUI:()=>D,HeadingEditing:()=>d,HeadingUI:()=>U,Title:()=>u});var n=t(704),s=t(747),a=t(209);class c extends n.Command{constructor(V,$){super(V),this.modelElements=$}refresh(){const V=(0,a.first)(this.editor.model.document.selection.getSelectedBlocks());this.value=!!V&&this.modelElements.includes(V.name)&&V.name,this.isEnabled=!!V&&this.modelElements.some($=>h(V,$,this.editor.model.schema))}execute(V){const $=this.editor.model,ee=$.document,q=V.value;$.change(oe=>{const X=Array.from(ee.selection.getSelectedBlocks()).filter(pe=>h(pe,q,$.schema));for(const pe of X)pe.is("element",q)||oe.rename(pe,q)})}}function h(z,V,$){return $.checkChild(z.parent,V)&&!$.isObject(z)}const p="paragraph";class d extends n.Plugin{static get pluginName(){return"HeadingEditing"}constructor(V){super(V),V.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[s.Paragraph]}init(){const V=this.editor,$=V.config.get("heading.options"),ee=[];for(const q of $)q.model!=="paragraph"&&(V.model.schema.register(q.model,{inheritAllFrom:"$block"}),V.conversion.elementToElement(q),ee.push(q.model));this._addDefaultH1Conversion(V),V.commands.add("heading",new c(V,ee))}afterInit(){const V=this.editor,$=V.commands.get("enter"),ee=V.config.get("heading.options");$&&this.listenTo($,"afterExecute",(q,oe)=>{const X=V.model.document.selection.getFirstPosition().parent;ee.some(pe=>X.is("element",pe.model))&&!X.is("element",p)&&X.childCount===0&&oe.writer.rename(X,p)})}_addDefaultH1Conversion(V){V.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:a.priorities.get("low")+1})}}var k=t(273);function M(z){const V=z.t,$={Paragraph:V("Paragraph"),"Heading 1":V("Heading 1"),"Heading 2":V("Heading 2"),"Heading 3":V("Heading 3"),"Heading 4":V("Heading 4"),"Heading 5":V("Heading 5"),"Heading 6":V("Heading 6")};return z.config.get("heading.options").map(ee=>{const q=$[ee.title];return q&&q!=ee.title&&(ee.title=q),ee})}var C=t(62),w=t.n(C),I=t(609),F={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};w()(I.Z,F),I.Z.locals;class U extends n.Plugin{static get pluginName(){return"HeadingUI"}init(){const V=this.editor,$=V.t,ee=M(V),q=$("Choose heading"),oe=$("Heading");V.ui.componentFactory.add("heading",X=>{const pe={},Ie=new a.Collection,se=V.commands.get("heading"),be=V.commands.get("paragraph"),fe=[se];for(const we of ee){const Me={type:"button",model:new k.Model({label:we.title,class:we.class,withText:!0})};we.model==="paragraph"?(Me.model.bind("isOn").to(be,"value"),Me.model.set("commandName","paragraph"),fe.push(be)):(Me.model.bind("isOn").to(se,"value",Ce=>Ce===we.model),Me.model.set({commandName:"heading",commandValue:we.model})),Ie.add(Me),pe[we.model]=we.title}const ue=(0,k.createDropdown)(X);return(0,k.addListToDropdown)(ue,Ie),ue.buttonView.set({isOn:!1,withText:!0,tooltip:oe}),ue.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),ue.bind("isEnabled").toMany(fe,"isEnabled",(...we)=>we.some(Me=>Me)),ue.buttonView.bind("label").to(se,"value",be,"value",(we,Me)=>{const Ce=we||Me&&"paragraph";return typeof Ce=="boolean"?q:pe[Ce]?pe[Ce]:q}),this.listenTo(ue,"execute",we=>{const{commandName:Me,commandValue:Ce}=we.source;V.execute(Me,Ce?{value:Ce}:void 0),V.editing.view.focus()}),ue})}}class B extends n.Plugin{static get requires(){return[d,U]}static get pluginName(){return"Heading"}}const N={heading1:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M19 9v10h-2v-8h-2V9h4zM4 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1H10a1 1 0 0 1-1-1V11H4v4.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1H3a1 1 0 0 1 1 1v4.5z"/></svg>',heading2:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V11H3v4.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1H2a1 1 0 0 1 1 1v4.5zm16.076 8.343V18.5h-6.252c.067-.626.27-1.22.61-1.78.338-.561 1.006-1.305 2.005-2.232.804-.749 1.297-1.257 1.479-1.523.245-.368.368-.732.368-1.092 0-.398-.107-.703-.32-.917-.214-.214-.51-.32-.886-.32-.372 0-.669.111-.889.336-.22.224-.347.596-.38 1.117l-1.778-.178c.106-.982.438-1.686.997-2.114.558-.427 1.257-.64 2.095-.64.918 0 1.64.247 2.164.742.525.495.787 1.11.787 1.847 0 .419-.075.818-.225 1.197-.15.378-.388.775-.714 1.19-.216.275-.605.67-1.168 1.187-.563.516-.92.859-1.07 1.028a3.11 3.11 0 0 0-.365.495h3.542z"/></svg>',heading3:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V11H3v4.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1H2a1 1 0 0 1 1 1v4.5zm9.989 7.53 1.726-.209c.055.44.203.777.445 1.01.24.232.533.349.876.349.368 0 .678-.14.93-.42.251-.279.377-.655.377-1.13 0-.448-.12-.803-.362-1.066a1.153 1.153 0 0 0-.882-.393c-.228 0-.501.044-.819.133l.197-1.453c.482.012.85-.092 1.105-.315.253-.222.38-.517.38-.885 0-.313-.093-.563-.279-.75-.186-.185-.434-.278-.743-.278a1.07 1.07 0 0 0-.78.317c-.216.212-.347.52-.394.927l-1.644-.28c.114-.562.287-1.012.517-1.348.231-.337.553-.601.965-.794a3.24 3.24 0 0 1 1.387-.289c.876 0 1.579.28 2.108.838.436.457.653.973.653 1.549 0 .817-.446 1.468-1.339 1.955.533.114.96.37 1.28.768.319.398.478.878.478 1.441 0 .817-.298 1.513-.895 2.088-.596.576-1.339.864-2.228.864-.842 0-1.54-.243-2.094-.727-.555-.485-.876-1.118-.965-1.901z"/></svg>',heading4:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V11h-5v4.5a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v4.5zm13.55 10v-1.873h-3.81v-1.561l4.037-5.91h1.498v5.904h1.156v1.567h-1.156V18.5H17.05zm0-3.44v-3.18l-2.14 3.18h2.14z"/></svg>',heading5:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V11h-5v4.5a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v4.5zm9.578 7.607 1.777-.184c.05.402.201.72.45.955a1.223 1.223 0 0 0 1.81-.101c.258-.303.387-.759.387-1.368 0-.572-.128-1-.384-1.286-.256-.285-.59-.428-1-.428-.512 0-.971.226-1.377.679l-1.448-.21.915-4.843h4.716v1.67H15.56l-.28 1.58a2.697 2.697 0 0 1 1.219-.298 2.68 2.68 0 0 1 2.012.863c.55.576.825 1.323.825 2.241a3.36 3.36 0 0 1-.666 2.05c-.605.821-1.445 1.232-2.52 1.232-.86 0-1.56-.23-2.101-.692-.542-.461-.866-1.081-.971-1.86z"/></svg>',heading6:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V11h-5v4.5a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v4.5zm15.595 2.973-1.726.19c-.043-.355-.153-.617-.33-.787-.178-.169-.409-.253-.692-.253-.377 0-.695.169-.956.507-.26.339-.424 1.043-.492 2.114.445-.525.997-.787 1.657-.787.745 0 1.383.284 1.914.85.531.568.797 1.3.797 2.197 0 .952-.28 1.716-.838 2.291-.559.576-1.276.864-2.152.864-.94 0-1.712-.365-2.317-1.095-.605-.73-.908-1.927-.908-3.59 0-1.705.316-2.935.946-3.688.63-.753 1.45-1.13 2.457-1.13.706 0 1.291.198 1.755.594.463.395.758.97.885 1.723zm-4.043 3.891c0 .58.133 1.028.4 1.343.266.315.57.473.914.473.33 0 .605-.13.825-.388.22-.258.33-.68.33-1.27 0-.604-.118-1.047-.355-1.329a1.115 1.115 0 0 0-.89-.422c-.342 0-.632.134-.869.403s-.355.666-.355 1.19z"/></svg>'};class D extends n.Plugin{init(){M(this.editor).filter(V=>V.model!=="paragraph").map(V=>this._createButton(V))}_createButton(V){const $=this.editor;$.ui.componentFactory.add(V.model,ee=>{const q=new k.ButtonView(ee),oe=$.commands.get("heading");return q.label=V.title,q.icon=V.icon||N[V.model],q.tooltip=!0,q.isToggleable=!0,q.bind("isEnabled").to(oe),q.bind("isOn").to(oe,"value",X=>X==V.model),q.on("execute",()=>{$.execute("heading",{value:V.model}),$.editing.view.focus()}),q})}}var x=t(492);const T=new Set(["paragraph","heading1","heading2","heading3","heading4","heading5","heading6"]);class u extends n.Plugin{static get pluginName(){return"Title"}static get requires(){return["Paragraph"]}init(){const V=this.editor,$=V.model;this._bodyPlaceholder=null,$.schema.register("title",{isBlock:!0,allowIn:"$root"}),$.schema.register("title-content",{isBlock:!0,allowIn:"title",allowAttributes:["alignment"]}),$.schema.extend("$text",{allowIn:"title-content"}),$.schema.addAttributeCheck(ee=>{if(ee.endsWith("title-content $text"))return!1}),V.editing.mapper.on("modelToViewPosition",E(V.editing.view)),V.data.mapper.on("modelToViewPosition",E(V.editing.view)),V.conversion.for("downcast").elementToElement({model:"title-content",view:"h1"}),V.conversion.for("downcast").add(ee=>ee.on("insert:title",(q,oe,X)=>{X.consumable.consume(oe.item,q.name)})),V.data.upcastDispatcher.on("element:h1",b,{priority:"high"}),V.data.upcastDispatcher.on("element:h2",b,{priority:"high"}),V.data.upcastDispatcher.on("element:h3",b,{priority:"high"}),$.document.registerPostFixer(ee=>this._fixTitleContent(ee)),$.document.registerPostFixer(ee=>this._fixTitleElement(ee)),$.document.registerPostFixer(ee=>this._fixBodyElement(ee)),$.document.registerPostFixer(ee=>this._fixExtraParagraph(ee)),this._attachPlaceholders(),this._attachTabPressHandling()}getTitle(V={}){const $=this._getTitleElement().getChild(0);return this.editor.data.stringify($,V)}getBody(V={}){const $=this.editor,ee=$.data,q=$.model,oe=$.model.document.getRoot(),X=$.editing.view,pe=new x.DowncastWriter(X.document),Ie=q.createRangeIn(oe),se=pe.createDocumentFragment(),be=q.createPositionAfter(oe.getChild(0)),fe=q.createRange(be,q.createPositionAt(oe,"end")),ue=new Map;for(const we of q.markers){const Me=fe.getIntersection(we.getRange());Me&&ue.set(we.name,Me)}return ee.mapper.clearBindings(),ee.mapper.bindElements(oe,se),ee.downcastDispatcher.convert(Ie,ue,pe,V),pe.remove(pe.createRangeOn(se.getChild(0))),$.data.processor.toData(se)}_getTitleElement(){const V=this.editor.model.document.getRoot();for(const $ of V.getChildren())if(A($))return $}_fixTitleContent(V){const $=this._getTitleElement();if(!$||$.maxOffset===1)return!1;const ee=Array.from($.getChildren());ee.shift();for(const q of ee)V.move(V.createRangeOn(q),$,"after"),V.rename(q,"paragraph");return!0}_fixTitleElement(V){const $=this.editor.model,ee=$.document.getRoot(),q=Array.from(ee.getChildren()).filter(A),oe=q[0],X=ee.getChild(0);if(X.is("element","title"))return R(q,V,$);if(!oe&&!T.has(X.name)){const pe=V.createElement("title");return V.insert(pe,ee),V.insertElement("title-content",pe),!0}return T.has(X.name)?function(pe,Ie,se){const be=Ie.createElement("title");Ie.insert(be,pe,"before"),Ie.insert(pe,be,0),Ie.rename(pe,"title-content"),se.schema.removeDisallowedAttributes([pe],Ie)}(X,V,$):V.move(V.createRangeOn(oe),ee,0),R(q,V,$),!0}_fixBodyElement(V){const $=this.editor.model.document.getRoot();return $.childCount<2&&(this._bodyPlaceholder=V.createElement("paragraph"),V.insert(this._bodyPlaceholder,$,1),!0)}_fixExtraParagraph(V){const $=this.editor.model.document.getRoot(),ee=this._bodyPlaceholder;return!!function(q,oe){return!(!q||!q.is("element","paragraph")||q.childCount||oe.childCount<=2||oe.getChild(oe.childCount-1)!==q)}(ee,$)&&(this._bodyPlaceholder=null,V.remove(ee),!0)}_attachPlaceholders(){const V=this.editor,$=V.t,ee=V.editing.view,q=ee.document.getRoot(),oe=V.sourceElement,X=V.config.get("title.placeholder")||$("Type your title"),pe=V.config.get("placeholder")||oe&&oe.tagName.toLowerCase()==="textarea"&&oe.getAttribute("placeholder")||$("Type or paste your content here.");let Ie;V.editing.downcastDispatcher.on("insert:title-content",(se,be,fe)=>{(0,x.enablePlaceholder)({view:ee,element:fe.mapper.toViewElement(be.item),text:X,keepOnFocus:!0})}),ee.document.registerPostFixer(se=>{const be=q.getChild(1);let fe=!1;return be!==Ie&&(Ie&&((0,x.hidePlaceholder)(se,Ie),se.removeAttribute("data-placeholder",Ie)),se.setAttribute("data-placeholder",pe,be),Ie=be,fe=!0),fe=(0,x.needsPlaceholder)(be,!0)&&q.childCount===2&&be.name==="p"?!!(0,x.showPlaceholder)(se,be)||fe:!!(0,x.hidePlaceholder)(se,be)||fe,fe})}_attachTabPressHandling(){const V=this.editor,$=V.model;V.keystrokes.set("TAB",(ee,q)=>{$.change(oe=>{const X=$.document.selection,pe=Array.from(X.getSelectedBlocks());if(pe.length===1&&pe[0].is("element","title-content")){const Ie=$.document.getRoot().getChild(1);oe.setSelection(Ie,0),q()}})}),V.keystrokes.set("SHIFT + TAB",(ee,q)=>{$.change(oe=>{const X=$.document.selection;if(!X.isCollapsed)return;const pe=V.model.document.getRoot(),Ie=(0,a.first)(X.getSelectedBlocks()),se=X.getFirstPosition(),be=pe.getChild(0);Ie===pe.getChild(1)&&se.isAtStart&&(oe.setSelection(be.getChild(0),0),q())})})}}function b(z,V,$){const ee=V.modelCursor,q=V.viewItem;if(!ee.isAtStart||!ee.parent.is("element","$root")||!$.consumable.consume(q,{name:!0}))return;const oe=$.writer,X=oe.createElement("title"),pe=oe.createElement("title-content");oe.append(pe,X),oe.insert(X,ee),$.convertChildren(q,pe),$.updateConversionResult(X,V)}function E(z){return(V,$)=>{const ee=$.modelPosition.parent;if(!ee.is("element","title"))return;const q=ee.parent,oe=$.mapper.toViewElement(q);$.viewPosition=z.createPositionAt(oe,0),V.stop()}}function A(z){return z.is("element","title")}function R(z,V,$){let ee=!1;for(const q of z)q.index!==0&&(H(q,V,$),ee=!0);return ee}function H(z,V,$){const ee=z.getChild(0);ee.isEmpty?V.remove(z):(V.move(V.createRangeOn(ee),z,"before"),V.rename(ee,"paragraph"),V.remove(z),$.schema.removeDisallowedAttributes([ee],V))}})(),(window.CKEditor5=window.CKEditor5||{}).heading=r})()},99416:()=>{(function(Z){const v=Z.en=Z.en||{};v.dictionary=Object.assign(v.dictionary||{},{"Blue marker":"Blue marker","Green marker":"Green marker","Green pen":"Green pen",Highlight:"Highlight","Pink marker":"Pink marker","Red pen":"Red pen","Remove highlight":"Remove highlight","Text highlight toolbar":"Text highlight toolbar","Yellow marker":"Yellow marker"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),(()=>{var Z={458:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,":root{--ck-highlight-marker-yellow:#fdfd77;--ck-highlight-marker-green:#62f962;--ck-highlight-marker-pink:#fc7899;--ck-highlight-marker-blue:#72ccfd;--ck-highlight-pen-red:#e71313;--ck-highlight-pen-green:#128a00}.ck-content .marker-yellow{background-color:var(--ck-highlight-marker-yellow)}.ck-content .marker-green{background-color:var(--ck-highlight-marker-green)}.ck-content .marker-pink{background-color:var(--ck-highlight-marker-pink)}.ck-content .marker-blue{background-color:var(--ck-highlight-marker-blue)}.ck-content .pen-red{background-color:transparent;color:var(--ck-highlight-pen-red)}.ck-content .pen-green{background-color:transparent;color:var(--ck-highlight-pen-green)}",""]);const p=h},609:n=>{"use strict";n.exports=function(s){var a=[];return a.toString=function(){return this.map(function(c){var h=s(c);return c[2]?"@media ".concat(c[2]," {").concat(h,"}"):h}).join("")},a.i=function(c,h,p){typeof c=="string"&&(c=[[null,c,""]]);var d={};if(p)for(var k=0;k<this.length;k++){var M=this[k][0];M!=null&&(d[M]=!0)}for(var C=0;C<c.length;C++){var w=[].concat(c[C]);p&&d[w[0]]||(h&&(w[2]?w[2]="".concat(h," and ").concat(w[2]):w[2]=h),a.push(w))}},a}},62:(n,s,a)=>{"use strict";var c,h=function(){return c===void 0&&(c=Boolean(window&&document&&document.all&&!window.atob)),c},p=function(){var x={};return function(T){if(x[T]===void 0){var u=document.querySelector(T);if(window.HTMLIFrameElement&&u instanceof window.HTMLIFrameElement)try{u=u.contentDocument.head}catch{u=null}x[T]=u}return x[T]}}(),d=[];function k(x){for(var T=-1,u=0;u<d.length;u++)if(d[u].identifier===x){T=u;break}return T}function M(x,T){for(var u={},b=[],E=0;E<x.length;E++){var A=x[E],R=T.base?A[0]+T.base:A[0],H=u[R]||0,z="".concat(R," ").concat(H);u[R]=H+1;var V=k(z),$={css:A[1],media:A[2],sourceMap:A[3]};V!==-1?(d[V].references++,d[V].updater($)):d.push({identifier:z,updater:D($,T),references:1}),b.push(z)}return b}function C(x){var T=document.createElement("style"),u=x.attributes||{};if(u.nonce===void 0){var b=a.nc;b&&(u.nonce=b)}if(Object.keys(u).forEach(function(A){T.setAttribute(A,u[A])}),typeof x.insert=="function")x.insert(T);else{var E=p(x.insert||"head");if(!E)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");E.appendChild(T)}return T}var w,I=(w=[],function(x,T){return w[x]=T,w.filter(Boolean).join(`
`)});function F(x,T,u,b){var E=u?"":b.media?"@media ".concat(b.media," {").concat(b.css,"}"):b.css;if(x.styleSheet)x.styleSheet.cssText=I(T,E);else{var A=document.createTextNode(E),R=x.childNodes;R[T]&&x.removeChild(R[T]),R.length?x.insertBefore(A,R[T]):x.appendChild(A)}}function U(x,T,u){var b=u.css,E=u.media,A=u.sourceMap;if(E?x.setAttribute("media",E):x.removeAttribute("media"),A&&typeof btoa<"u"&&(b+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(A))))," */")),x.styleSheet)x.styleSheet.cssText=b;else{for(;x.firstChild;)x.removeChild(x.firstChild);x.appendChild(document.createTextNode(b))}}var B=null,N=0;function D(x,T){var u,b,E;if(T.singleton){var A=N++;u=B||(B=C(T)),b=F.bind(null,u,A,!1),E=F.bind(null,u,A,!0)}else u=C(T),b=U.bind(null,u,T),E=function(){(function(R){if(R.parentNode===null)return!1;R.parentNode.removeChild(R)})(u)};return b(x),function(R){if(R){if(R.css===x.css&&R.media===x.media&&R.sourceMap===x.sourceMap)return;b(x=R)}else E()}}n.exports=function(x,T){(T=T||{}).singleton||typeof T.singleton=="boolean"||(T.singleton=h());var u=M(x=x||[],T);return function(b){if(b=b||[],Object.prototype.toString.call(b)==="[object Array]"){for(var E=0;E<u.length;E++){var A=k(u[E]);d[A].references--}for(var R=M(b,T),H=0;H<u.length;H++){var z=k(u[H]);d[z].references===0&&(d[z].updater(),d.splice(z,1))}u=R}}}},704:(n,s,a)=>{n.exports=a(79)("./src/core.js")},273:(n,s,a)=>{n.exports=a(79)("./src/ui.js")},79:n=>{"use strict";n.exports=CKEditor5.dll}},v={};function t(n){var s=v[n];if(s!==void 0)return s.exports;var a=v[n]={id:n,exports:{}};return Z[n](a,a.exports,t),a.exports}t.n=n=>{var s=n&&n.__esModule?()=>n.default:()=>n;return t.d(s,{a:s}),s},t.d=(n,s)=>{for(var a in s)t.o(s,a)&&!t.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:s[a]})},t.o=(n,s)=>Object.prototype.hasOwnProperty.call(n,s),t.r=n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.nc=void 0;var r={};(()=>{"use strict";t.r(r),t.d(r,{Highlight:()=>F,HighlightEditing:()=>a,HighlightUI:()=>w});var n=t(704);class s extends n.Command{refresh(){const B=this.editor.model,N=B.document;this.value=N.selection.getAttribute("highlight"),this.isEnabled=B.schema.checkAttributeInSelection(N.selection,"highlight")}execute(B={}){const N=this.editor.model,D=N.document.selection,x=B.value;N.change(T=>{if(D.isCollapsed){const u=D.getFirstPosition();if(D.hasAttribute("highlight")){const b=H=>H.item.hasAttribute("highlight")&&H.item.getAttribute("highlight")===this.value,E=u.getLastMatchingPosition(b,{direction:"backward"}),A=u.getLastMatchingPosition(b),R=T.createRange(E,A);x&&this.value!==x?(u.isEqual(A)||T.setAttribute("highlight",x,R),T.setSelectionAttribute("highlight",x)):(u.isEqual(A)||T.removeAttribute("highlight",R),T.removeSelectionAttribute("highlight"))}else x&&T.setSelectionAttribute("highlight",x)}else{const u=N.schema.getValidRanges(D.getRanges(),"highlight");for(const b of u)x?T.setAttribute("highlight",x,b):T.removeAttribute("highlight",b)}})}}class a extends n.Plugin{static get pluginName(){return"HighlightEditing"}constructor(B){super(B),B.config.define("highlight",{options:[{model:"yellowMarker",class:"marker-yellow",title:"Yellow marker",color:"var(--ck-highlight-marker-yellow)",type:"marker"},{model:"greenMarker",class:"marker-green",title:"Green marker",color:"var(--ck-highlight-marker-green)",type:"marker"},{model:"pinkMarker",class:"marker-pink",title:"Pink marker",color:"var(--ck-highlight-marker-pink)",type:"marker"},{model:"blueMarker",class:"marker-blue",title:"Blue marker",color:"var(--ck-highlight-marker-blue)",type:"marker"},{model:"redPen",class:"pen-red",title:"Red pen",color:"var(--ck-highlight-pen-red)",type:"pen"},{model:"greenPen",class:"pen-green",title:"Green pen",color:"var(--ck-highlight-pen-green)",type:"pen"}]})}init(){const B=this.editor;B.model.schema.extend("$text",{allowAttributes:"highlight"});const N=B.config.get("highlight.options");B.conversion.attributeToElement(function(D){const x={model:{key:"highlight",values:[]},view:{}};for(const T of D)x.model.values.push(T.model),x.view[T.model]={name:"mark",classes:T.class};return x}(N)),B.commands.add("highlight",new s(B))}}var c=t(273);const h='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M10.798 1.59 3.002 12.875l1.895 1.852 2.521 1.402 6.997-12.194z"/><path d="m2.556 16.727.234-.348c-.297-.151-.462-.293-.498-.426-.036-.137.002-.416.115-.837.094-.25.15-.449.169-.595a4.495 4.495 0 0 0 0-.725c-.209-.621-.303-1.041-.284-1.26.02-.218.178-.506.475-.862l6.77-9.414c.539-.91 1.605-.85 3.199.18 1.594 1.032 2.188 1.928 1.784 2.686l-5.877 10.36c-.158.412-.333.673-.526.782-.193.108-.604.179-1.232.21-.362.131-.608.237-.738.318-.13.081-.305.238-.526.47-.293.265-.504.397-.632.397-.096 0-.27-.075-.524-.226l-.31.41-1.6-1.12zm-.279.415 1.575 1.103-.392.515H1.19l1.087-1.618zm8.1-13.656-4.953 6.9L8.75 12.57l4.247-7.574c.175-.25-.188-.647-1.092-1.192-.903-.546-1.412-.652-1.528-.32zM8.244 18.5 9.59 17h9.406v1.5H8.245z"/></svg>',p='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M10.126 2.268 2.002 13.874l1.895 1.852 2.521 1.402L14.47 5.481l-1.543-2.568-2.801-.645z"/><path d="m4.5 18.088-2.645-1.852-.04-2.95-.006-.005.006-.008v-.025l.011.008L8.73 2.97c.165-.233.356-.417.567-.557l-1.212.308L4.604 7.9l-.83-.558 3.694-5.495 2.708-.69 1.65 1.145.046.018.85-1.216 2.16 1.512-.856 1.222c.828.967 1.144 2.141.432 3.158L7.55 17.286l.006.005-3.055.797H4.5zm-.634.166-1.976.516-.026-1.918 2.002 1.402zM9.968 3.817l-.006-.004-6.123 9.184 3.277 2.294 6.108-9.162.005.003c.317-.452-.16-1.332-1.064-1.966-.891-.624-1.865-.776-2.197-.349zM8.245 18.5 9.59 17h9.406v1.5H8.245z"/></svg>';var d=t(62),k=t.n(d),M=t(458),C={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};k()(M.Z,C),M.Z.locals;class w extends n.Plugin{get localizedOptionTitles(){const B=this.editor.t;return{"Yellow marker":B("Yellow marker"),"Green marker":B("Green marker"),"Pink marker":B("Pink marker"),"Blue marker":B("Blue marker"),"Red pen":B("Red pen"),"Green pen":B("Green pen")}}static get pluginName(){return"HighlightUI"}init(){const B=this.editor.config.get("highlight.options");for(const N of B)this._addHighlighterButton(N);this._addRemoveHighlightButton(),this._addDropdown(B)}_addRemoveHighlightButton(){const B=this.editor.t,N=this.editor.commands.get("highlight");this._addButton("removeHighlight",B("Remove highlight"),n.icons.eraser,null,D=>{D.bind("isEnabled").to(N,"isEnabled")})}_addHighlighterButton(B){const N=this.editor.commands.get("highlight");this._addButton("highlight:"+B.model,B.title,I(B.type),B.model,function(D){D.bind("isEnabled").to(N,"isEnabled"),D.bind("isOn").to(N,"value",x=>x===B.model),D.iconView.fillColor=B.color,D.isToggleable=!0})}_addButton(B,N,D,x,T){const u=this.editor;u.ui.componentFactory.add(B,b=>{const E=new c.ButtonView(b),A=this.localizedOptionTitles[N]?this.localizedOptionTitles[N]:N;return E.set({label:A,icon:D,tooltip:!0}),E.on("execute",()=>{u.execute("highlight",{value:x}),u.editing.view.focus()}),T(E),E})}_addDropdown(B){const N=this.editor,D=N.t,x=N.ui.componentFactory,T=B[0],u=B.reduce((b,E)=>(b[E.model]=E,b),{});x.add("highlight",b=>{const E=N.commands.get("highlight"),A=(0,c.createDropdown)(b,c.SplitButtonView),R=A.buttonView;R.set({label:D("Highlight"),tooltip:!0,lastExecuted:T.model,commandValue:T.model,isToggleable:!0}),R.bind("icon").to(E,"value",z=>I(H(z,"type"))),R.bind("color").to(E,"value",z=>H(z,"color")),R.bind("commandValue").to(E,"value",z=>H(z,"model")),R.bind("isOn").to(E,"value",z=>!!z),R.delegate("execute").to(A);function H(z,V){const $=z&&z!==R.lastExecuted?z:R.lastExecuted;return u[$][V]}return A.bind("isEnabled").to(E,"isEnabled"),(0,c.addToolbarToDropdown)(A,()=>{const z=B.map(V=>{const $=x.create("highlight:"+V.model);return this.listenTo($,"execute",()=>{A.buttonView.set({lastExecuted:V.model})}),$});return z.push(new c.ToolbarSeparatorView),z.push(x.create("removeHighlight")),z},{enableActiveItemFocusOnDropdownOpen:!0,ariaLabel:D("Text highlight toolbar")}),function(z){z.buttonView.actionView.iconView.bind("fillColor").to(z.buttonView,"color")}(A),R.on("execute",()=>{N.execute("highlight",{value:R.commandValue})}),this.listenTo(A,"execute",()=>{N.editing.view.focus()}),A})}}function I(U){return U==="marker"?h:p}class F extends n.Plugin{static get requires(){return[a,w]}static get pluginName(){return"Highlight"}}})(),(window.CKEditor5=window.CKEditor5||{}).highlight=r})()},29781:()=>{(function(Z){const v=Z.en=Z.en||{};v.dictionary=Object.assign(v.dictionary||{},{"Horizontal line":"Horizontal line"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),(()=>{var Z={73:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,".ck-editor__editable .ck-horizontal-line{display:flow-root}.ck-content hr{background:#dedede;border:0;height:4px;margin:15px 0}",""]);const p=h},609:n=>{"use strict";n.exports=function(s){var a=[];return a.toString=function(){return this.map(function(c){var h=s(c);return c[2]?"@media ".concat(c[2]," {").concat(h,"}"):h}).join("")},a.i=function(c,h,p){typeof c=="string"&&(c=[[null,c,""]]);var d={};if(p)for(var k=0;k<this.length;k++){var M=this[k][0];M!=null&&(d[M]=!0)}for(var C=0;C<c.length;C++){var w=[].concat(c[C]);p&&d[w[0]]||(h&&(w[2]?w[2]="".concat(h," and ").concat(w[2]):w[2]=h),a.push(w))}},a}},62:(n,s,a)=>{"use strict";var c,h=function(){return c===void 0&&(c=Boolean(window&&document&&document.all&&!window.atob)),c},p=function(){var x={};return function(T){if(x[T]===void 0){var u=document.querySelector(T);if(window.HTMLIFrameElement&&u instanceof window.HTMLIFrameElement)try{u=u.contentDocument.head}catch{u=null}x[T]=u}return x[T]}}(),d=[];function k(x){for(var T=-1,u=0;u<d.length;u++)if(d[u].identifier===x){T=u;break}return T}function M(x,T){for(var u={},b=[],E=0;E<x.length;E++){var A=x[E],R=T.base?A[0]+T.base:A[0],H=u[R]||0,z="".concat(R," ").concat(H);u[R]=H+1;var V=k(z),$={css:A[1],media:A[2],sourceMap:A[3]};V!==-1?(d[V].references++,d[V].updater($)):d.push({identifier:z,updater:D($,T),references:1}),b.push(z)}return b}function C(x){var T=document.createElement("style"),u=x.attributes||{};if(u.nonce===void 0){var b=a.nc;b&&(u.nonce=b)}if(Object.keys(u).forEach(function(A){T.setAttribute(A,u[A])}),typeof x.insert=="function")x.insert(T);else{var E=p(x.insert||"head");if(!E)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");E.appendChild(T)}return T}var w,I=(w=[],function(x,T){return w[x]=T,w.filter(Boolean).join(`
`)});function F(x,T,u,b){var E=u?"":b.media?"@media ".concat(b.media," {").concat(b.css,"}"):b.css;if(x.styleSheet)x.styleSheet.cssText=I(T,E);else{var A=document.createTextNode(E),R=x.childNodes;R[T]&&x.removeChild(R[T]),R.length?x.insertBefore(A,R[T]):x.appendChild(A)}}function U(x,T,u){var b=u.css,E=u.media,A=u.sourceMap;if(E?x.setAttribute("media",E):x.removeAttribute("media"),A&&typeof btoa<"u"&&(b+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(A))))," */")),x.styleSheet)x.styleSheet.cssText=b;else{for(;x.firstChild;)x.removeChild(x.firstChild);x.appendChild(document.createTextNode(b))}}var B=null,N=0;function D(x,T){var u,b,E;if(T.singleton){var A=N++;u=B||(B=C(T)),b=F.bind(null,u,A,!1),E=F.bind(null,u,A,!0)}else u=C(T),b=U.bind(null,u,T),E=function(){(function(R){if(R.parentNode===null)return!1;R.parentNode.removeChild(R)})(u)};return b(x),function(R){if(R){if(R.css===x.css&&R.media===x.media&&R.sourceMap===x.sourceMap)return;b(x=R)}else E()}}n.exports=function(x,T){(T=T||{}).singleton||typeof T.singleton=="boolean"||(T.singleton=h());var u=M(x=x||[],T);return function(b){if(b=b||[],Object.prototype.toString.call(b)==="[object Array]"){for(var E=0;E<u.length;E++){var A=k(u[E]);d[A].references--}for(var R=M(b,T),H=0;H<u.length;H++){var z=k(u[H]);d[z].references===0&&(d[z].updater(),d.splice(z,1))}u=R}}}},704:(n,s,a)=>{n.exports=a(79)("./src/core.js")},273:(n,s,a)=>{n.exports=a(79)("./src/ui.js")},995:(n,s,a)=>{n.exports=a(79)("./src/widget.js")},79:n=>{"use strict";n.exports=CKEditor5.dll}},v={};function t(n){var s=v[n];if(s!==void 0)return s.exports;var a=v[n]={id:n,exports:{}};return Z[n](a,a.exports,t),a.exports}t.n=n=>{var s=n&&n.__esModule?()=>n.default:()=>n;return t.d(s,{a:s}),s},t.d=(n,s)=>{for(var a in s)t.o(s,a)&&!t.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:s[a]})},t.o=(n,s)=>Object.prototype.hasOwnProperty.call(n,s),t.r=n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.nc=void 0;var r={};(()=>{"use strict";t.r(r),t.d(r,{HorizontalLine:()=>w,HorizontalLineEditing:()=>k,HorizontalLineUI:()=>C});var n=t(704),s=t(995);class a extends n.Command{refresh(){const F=this.editor.model,U=F.schema,B=F.document.selection;this.isEnabled=function(N,D,x){const T=function(u,b){const E=(0,s.findOptimalInsertionRange)(u,b),A=E.start.parent;return A.isEmpty&&!A.is("element","$root")?A.parent:A}(N,x);return D.checkChild(T,"horizontalLine")}(B,U,F)}execute(){const F=this.editor.model;F.change(U=>{const B=U.createElement("horizontalLine");F.insertObject(B,null,null,{setSelection:"after"})})}}var c=t(62),h=t.n(c),p=t(73),d={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(p.Z,d),p.Z.locals;class k extends n.Plugin{static get pluginName(){return"HorizontalLineEditing"}init(){const F=this.editor,U=F.model.schema,B=F.t,N=F.conversion;U.register("horizontalLine",{inheritAllFrom:"$blockObject"}),N.for("dataDowncast").elementToElement({model:"horizontalLine",view:(D,{writer:x})=>x.createEmptyElement("hr")}),N.for("editingDowncast").elementToStructure({model:"horizontalLine",view:(D,{writer:x})=>{const T=B("Horizontal line"),u=x.createContainerElement("div",null,x.createEmptyElement("hr"));return x.addClass("ck-horizontal-line",u),x.setCustomProperty("hr",!0,u),function(b,E,A){return E.setCustomProperty("horizontalLine",!0,b),(0,s.toWidget)(b,E,{label:A})}(u,x,T)}}),N.for("upcast").elementToElement({view:"hr",model:"horizontalLine"}),F.commands.add("horizontalLine",new a(F))}}var M=t(273);class C extends n.Plugin{static get pluginName(){return"HorizontalLineUI"}init(){const F=this.editor,U=F.t;F.ui.componentFactory.add("horizontalLine",B=>{const N=F.commands.get("horizontalLine"),D=new M.ButtonView(B);return D.set({label:U("Horizontal line"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 9h16v2H2z"/></svg>',tooltip:!0}),D.bind("isEnabled").to(N,"isEnabled"),this.listenTo(D,"execute",()=>{F.execute("horizontalLine"),F.editing.view.focus()}),D})}}class w extends n.Plugin{static get requires(){return[k,C,s.Widget]}static get pluginName(){return"HorizontalLine"}}})(),(window.CKEditor5=window.CKEditor5||{}).horizontalLine=r})()},78590:()=>{(function(Z){const v=Z.en=Z.en||{};v.dictionary=Object.assign(v.dictionary||{},{"Edit source":"Edit source","Empty snippet content":"Empty snippet content","HTML snippet":"HTML snippet","Insert HTML":"Insert HTML","No preview available":"No preview available","Paste raw HTML here...":"Paste raw HTML here...","Save changes":"Save changes"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),(()=>{var Z={600:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,".ck-widget.raw-html-embed{display:flow-root;font-style:normal;margin:.9em auto;min-width:15em;position:relative}.ck-widget.raw-html-embed:before{position:absolute;z-index:1}.ck-widget.raw-html-embed .raw-html-embed__buttons-wrapper{display:flex;flex-direction:column;position:absolute}.ck-widget.raw-html-embed .raw-html-embed__preview{display:flex;overflow:hidden;position:relative}.ck-widget.raw-html-embed .raw-html-embed__preview-content{border-collapse:separate;border-spacing:7px;display:table;margin:auto;position:relative;width:100%}.ck-widget.raw-html-embed .raw-html-embed__preview-placeholder{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}:root{--ck-html-embed-content-width:calc(100% - var(--ck-icon-size)*1.5);--ck-html-embed-source-height:10em;--ck-html-embed-unfocused-outline-width:1px;--ck-html-embed-content-min-height:calc(var(--ck-icon-size) + var(--ck-spacing-standard));--ck-html-embed-source-disabled-background:var(--ck-color-base-foreground);--ck-html-embed-source-disabled-color:#737373}.ck-widget.raw-html-embed{background-color:var(--ck-color-base-foreground);font-size:var(--ck-font-size-base)}.ck-widget.raw-html-embed:not(.ck-widget_selected):not(:hover){outline:var(--ck-html-embed-unfocused-outline-width) dashed var(--ck-color-widget-blurred-border)}.ck-widget.raw-html-embed[dir=ltr]{text-align:left}.ck-widget.raw-html-embed[dir=rtl]{text-align:right}.ck-widget.raw-html-embed:before{background:#999;border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius);color:var(--ck-color-base-background);content:attr(data-html-embed-label);font-family:var(--ck-font-face);font-size:var(--ck-font-size-tiny);left:var(--ck-spacing-standard);padding:calc(var(--ck-spacing-tiny) + var(--ck-html-embed-unfocused-outline-width)) var(--ck-spacing-small) var(--ck-spacing-tiny);top:calc(var(--ck-html-embed-unfocused-outline-width)*-1);transition:background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck-widget.raw-html-embed[dir=rtl]:before{left:auto;right:var(--ck-spacing-standard)}.ck-widget.raw-html-embed[dir=ltr] .ck-widget__type-around .ck-widget__type-around__button.ck-widget__type-around__button_before{margin-left:50px}.ck.ck-editor__editable.ck-blurred .ck-widget.raw-html-embed.ck-widget_selected:before{padding:var(--ck-spacing-tiny) var(--ck-spacing-small);top:0}.ck.ck-editor__editable:not(.ck-blurred) .ck-widget.raw-html-embed.ck-widget_selected:before{background:var(--ck-color-focus-border);padding:var(--ck-spacing-tiny) var(--ck-spacing-small);top:0}.ck.ck-editor__editable .ck-widget.raw-html-embed:not(.ck-widget_selected):hover:before{padding:var(--ck-spacing-tiny) var(--ck-spacing-small);top:0}.ck-widget.raw-html-embed .raw-html-embed__content-wrapper{padding:var(--ck-spacing-standard)}.ck-widget.raw-html-embed .raw-html-embed__buttons-wrapper{right:var(--ck-spacing-standard);top:var(--ck-spacing-standard)}.ck-widget.raw-html-embed .raw-html-embed__buttons-wrapper .ck-button.raw-html-embed__save-button{color:var(--ck-color-button-save)}.ck-widget.raw-html-embed .raw-html-embed__buttons-wrapper .ck-button.raw-html-embed__cancel-button{color:var(--ck-color-button-cancel)}.ck-widget.raw-html-embed .raw-html-embed__buttons-wrapper .ck-button:not(:first-child){margin-top:var(--ck-spacing-small)}.ck-widget.raw-html-embed[dir=rtl] .raw-html-embed__buttons-wrapper{left:var(--ck-spacing-standard);right:auto}.ck-widget.raw-html-embed .raw-html-embed__source{box-sizing:border-box;direction:ltr;font-family:monospace;font-size:var(--ck-font-size-base);height:var(--ck-html-embed-source-height);min-width:0;padding:var(--ck-spacing-standard);resize:none;tab-size:4;text-align:left;white-space:pre-wrap;width:var(--ck-html-embed-content-width)}.ck-widget.raw-html-embed .raw-html-embed__source[disabled]{-webkit-text-fill-color:var(--ck-html-embed-source-disabled-color);background:var(--ck-html-embed-source-disabled-background);color:var(--ck-html-embed-source-disabled-color);opacity:1}.ck-widget.raw-html-embed .raw-html-embed__preview{min-height:var(--ck-html-embed-content-min-height);width:var(--ck-html-embed-content-width)}.ck-editor__editable:not(.ck-read-only) .ck-widget.raw-html-embed .raw-html-embed__preview{pointer-events:none}.ck-widget.raw-html-embed .raw-html-embed__preview-content{background-color:var(--ck-color-base-foreground);box-sizing:border-box}.ck-widget.raw-html-embed .raw-html-embed__preview-content>*{margin-left:auto;margin-right:auto}.ck-widget.raw-html-embed .raw-html-embed__preview-placeholder{color:var(--ck-html-embed-source-disabled-color)}",""]);const p=h},609:n=>{"use strict";n.exports=function(s){var a=[];return a.toString=function(){return this.map(function(c){var h=s(c);return c[2]?"@media ".concat(c[2]," {").concat(h,"}"):h}).join("")},a.i=function(c,h,p){typeof c=="string"&&(c=[[null,c,""]]);var d={};if(p)for(var k=0;k<this.length;k++){var M=this[k][0];M!=null&&(d[M]=!0)}for(var C=0;C<c.length;C++){var w=[].concat(c[C]);p&&d[w[0]]||(h&&(w[2]?w[2]="".concat(h," and ").concat(w[2]):w[2]=h),a.push(w))}},a}},62:(n,s,a)=>{"use strict";var c,h=function(){return c===void 0&&(c=Boolean(window&&document&&document.all&&!window.atob)),c},p=function(){var x={};return function(T){if(x[T]===void 0){var u=document.querySelector(T);if(window.HTMLIFrameElement&&u instanceof window.HTMLIFrameElement)try{u=u.contentDocument.head}catch{u=null}x[T]=u}return x[T]}}(),d=[];function k(x){for(var T=-1,u=0;u<d.length;u++)if(d[u].identifier===x){T=u;break}return T}function M(x,T){for(var u={},b=[],E=0;E<x.length;E++){var A=x[E],R=T.base?A[0]+T.base:A[0],H=u[R]||0,z="".concat(R," ").concat(H);u[R]=H+1;var V=k(z),$={css:A[1],media:A[2],sourceMap:A[3]};V!==-1?(d[V].references++,d[V].updater($)):d.push({identifier:z,updater:D($,T),references:1}),b.push(z)}return b}function C(x){var T=document.createElement("style"),u=x.attributes||{};if(u.nonce===void 0){var b=a.nc;b&&(u.nonce=b)}if(Object.keys(u).forEach(function(A){T.setAttribute(A,u[A])}),typeof x.insert=="function")x.insert(T);else{var E=p(x.insert||"head");if(!E)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");E.appendChild(T)}return T}var w,I=(w=[],function(x,T){return w[x]=T,w.filter(Boolean).join(`
`)});function F(x,T,u,b){var E=u?"":b.media?"@media ".concat(b.media," {").concat(b.css,"}"):b.css;if(x.styleSheet)x.styleSheet.cssText=I(T,E);else{var A=document.createTextNode(E),R=x.childNodes;R[T]&&x.removeChild(R[T]),R.length?x.insertBefore(A,R[T]):x.appendChild(A)}}function U(x,T,u){var b=u.css,E=u.media,A=u.sourceMap;if(E?x.setAttribute("media",E):x.removeAttribute("media"),A&&typeof btoa<"u"&&(b+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(A))))," */")),x.styleSheet)x.styleSheet.cssText=b;else{for(;x.firstChild;)x.removeChild(x.firstChild);x.appendChild(document.createTextNode(b))}}var B=null,N=0;function D(x,T){var u,b,E;if(T.singleton){var A=N++;u=B||(B=C(T)),b=F.bind(null,u,A,!1),E=F.bind(null,u,A,!0)}else u=C(T),b=U.bind(null,u,T),E=function(){(function(R){if(R.parentNode===null)return!1;R.parentNode.removeChild(R)})(u)};return b(x),function(R){if(R){if(R.css===x.css&&R.media===x.media&&R.sourceMap===x.sourceMap)return;b(x=R)}else E()}}n.exports=function(x,T){(T=T||{}).singleton||typeof T.singleton=="boolean"||(T.singleton=h());var u=M(x=x||[],T);return function(b){if(b=b||[],Object.prototype.toString.call(b)==="[object Array]"){for(var E=0;E<u.length;E++){var A=k(u[E]);d[A].references--}for(var R=M(b,T),H=0;H<u.length;H++){var z=k(u[H]);d[z].references===0&&(d[z].updater(),d.splice(z,1))}u=R}}}},704:(n,s,a)=>{n.exports=a(79)("./src/core.js")},273:(n,s,a)=>{n.exports=a(79)("./src/ui.js")},209:(n,s,a)=>{n.exports=a(79)("./src/utils.js")},995:(n,s,a)=>{n.exports=a(79)("./src/widget.js")},79:n=>{"use strict";n.exports=CKEditor5.dll}},v={};function t(n){var s=v[n];if(s!==void 0)return s.exports;var a=v[n]={id:n,exports:{}};return Z[n](a,a.exports,t),a.exports}t.n=n=>{var s=n&&n.__esModule?()=>n.default:()=>n;return t.d(s,{a:s}),s},t.d=(n,s)=>{for(var a in s)t.o(s,a)&&!t.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:s[a]})},t.o=(n,s)=>Object.prototype.hasOwnProperty.call(n,s),t.r=n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.nc=void 0;var r={};(()=>{"use strict";t.r(r),t.d(r,{HtmlEmbed:()=>U,HtmlEmbedEditing:()=>w,HtmlEmbedUI:()=>F});var n=t(704),s=t(995),a=t(273),c=t(209);class h extends n.Command{refresh(){const N=this.editor.model,D=N.schema,x=N.document.selection,T=p(x);this.isEnabled=function(u,b,E){const A=function(R,H){const z=(0,s.findOptimalInsertionRange)(R,H),V=z.start.parent;return V.isEmpty&&!V.is("element","$root")?V.parent:V}(u,E);return b.checkChild(A,"rawHtml")}(x,D,N),this.value=T?T.getAttribute("value")||"":null}execute(N){const D=this.editor.model,x=D.document.selection;D.change(T=>{let u;this.value!==null?u=p(x):(u=T.createElement("rawHtml"),D.insertObject(u,null,null,{setSelection:"on"})),T.setAttribute("value",N,u)})}}function p(B){const N=B.getSelectedElement();return N&&N.is("element","rawHtml")?N:null}var d=t(62),k=t.n(d),M=t(600),C={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};k()(M.Z,C),M.Z.locals;class w extends n.Plugin{static get pluginName(){return"HtmlEmbedEditing"}constructor(N){super(N),N.config.define("htmlEmbed",{showPreviews:!1,sanitizeHtml:D=>((0,c.logWarning)("html-embed-provide-sanitize-function"),{html:D,hasChanged:!1})}),this._widgetButtonViewReferences=new Set}init(){const N=this.editor;N.model.schema.register("rawHtml",{inheritAllFrom:"$blockObject",allowAttributes:["value"]}),N.commands.add("htmlEmbed",new h(N)),this._setupConversion()}_setupConversion(){const N=this.editor,D=N.t,x=N.editing.view,T=this._widgetButtonViewReferences,u=N.config.get("htmlEmbed");function b({domElement:A,editor:R,state:H,props:z}){A.textContent="";const V=A.ownerDocument;let $;if(H.isEditable){const q={isDisabled:!1,placeholder:z.textareaPlaceholder};$=E({domDocument:V,state:H,props:q}),A.append($)}else if(H.showPreviews){const q={sanitizeHtml:z.sanitizeHtml};A.append(function({domDocument:oe,state:X,props:pe,editor:Ie}){const se=pe.sanitizeHtml(X.getRawHtmlValue()),be=X.getRawHtmlValue().length>0?D("No preview available"):D("Empty snippet content"),fe=(0,c.createElement)(oe,"div",{class:"ck ck-reset_all raw-html-embed__preview-placeholder"},be),ue=(0,c.createElement)(oe,"div",{class:"raw-html-embed__preview-content",dir:Ie.locale.contentLanguageDirection}),we=oe.createRange(),Me=we.createContextualFragment(se.html);return ue.appendChild(Me),(0,c.createElement)(oe,"div",{class:"raw-html-embed__preview"},[fe,ue])}({domDocument:V,state:H,props:q,editor:R}))}else{const q={isDisabled:!0,placeholder:z.textareaPlaceholder};A.append(E({domDocument:V,state:H,props:q}))}const ee={onEditClick:z.onEditClick,onSaveClick:()=>{z.onSaveClick($.value)},onCancelClick:z.onCancelClick};A.prepend(function({editor:q,domDocument:oe,state:X,props:pe}){const Ie=(0,c.createElement)(oe,"div",{class:"raw-html-embed__buttons-wrapper"});if(X.isEditable){const se=I(q,"save",pe.onSaveClick),be=I(q,"cancel",pe.onCancelClick);Ie.append(se.element,be.element),T.add(se).add(be)}else{const se=I(q,"edit",pe.onEditClick);Ie.append(se.element),T.add(se)}return Ie}({editor:R,domDocument:V,state:H,props:ee}))}function E({domDocument:A,state:R,props:H}){const z=(0,c.createElement)(A,"textarea",{placeholder:H.placeholder,class:"ck ck-reset ck-input ck-input-text raw-html-embed__source"});return z.disabled=H.isDisabled,z.value=R.getRawHtmlValue(),z}this.editor.editing.view.on("render",()=>{for(const A of T){if(A.element.isConnected)return;A.destroy(),T.delete(A)}},{priority:"lowest"}),N.data.registerRawContentMatcher({name:"div",classes:"raw-html-embed"}),N.conversion.for("upcast").elementToElement({view:{name:"div",classes:"raw-html-embed"},model:(A,{writer:R})=>R.createElement("rawHtml",{value:A.getCustomProperty("$rawContent")})}),N.conversion.for("dataDowncast").elementToElement({model:"rawHtml",view:(A,{writer:R})=>R.createRawElement("div",{class:"raw-html-embed"},function(H){H.innerHTML=A.getAttribute("value")||""})}),N.conversion.for("editingDowncast").elementToStructure({model:{name:"rawHtml",attributes:["value"]},view:(A,{writer:R})=>{let H,z,V;const $=R.createRawElement("div",{class:"raw-html-embed__content-wrapper"},function(oe){H=oe,b({domElement:oe,editor:N,state:z,props:V}),H.addEventListener("mousedown",()=>{if(z.isEditable){const X=N.model;X.document.selection.getSelectedElement()!==A&&X.change(pe=>pe.setSelection(A,"on"))}},!0)}),ee={makeEditable(){z=Object.assign({},z,{isEditable:!0}),b({domElement:H,editor:N,state:z,props:V}),x.change(oe=>{oe.setAttribute("data-cke-ignore-events","true",$)}),H.querySelector("textarea").focus()},save(oe){oe!==z.getRawHtmlValue()?(N.execute("htmlEmbed",oe),N.editing.view.focus()):this.cancel()},cancel(){z=Object.assign({},z,{isEditable:!1}),b({domElement:H,editor:N,state:z,props:V}),N.editing.view.focus(),x.change(oe=>{oe.removeAttribute("data-cke-ignore-events",$)})}};z={showPreviews:u.showPreviews,isEditable:!1,getRawHtmlValue:()=>A.getAttribute("value")||""},V={sanitizeHtml:u.sanitizeHtml,textareaPlaceholder:D("Paste raw HTML here..."),onEditClick(){ee.makeEditable()},onSaveClick(oe){ee.save(oe)},onCancelClick(){ee.cancel()}};const q=R.createContainerElement("div",{class:"raw-html-embed","data-html-embed-label":D("HTML snippet"),dir:N.locale.uiLanguageDirection},$);return R.setCustomProperty("rawHtmlApi",ee,q),R.setCustomProperty("rawHtml",!0,q),(0,s.toWidget)(q,R,{widgetLabel:D("HTML snippet"),hasSelectionHandle:!0})}})}}function I(B,N,D){const x=B.locale.t,T=new a.ButtonView(B.locale),u=B.commands.get("htmlEmbed");return T.set({class:`raw-html-embed__${N}-button`,icon:n.icons.pencil,tooltip:!0,tooltipPosition:B.locale.uiLanguageDirection==="rtl"?"e":"w"}),T.render(),N==="edit"?(T.set({icon:n.icons.pencil,label:x("Edit source")}),T.bind("isEnabled").to(u)):N==="save"?(T.set({icon:n.icons.check,label:x("Save changes")}),T.bind("isEnabled").to(u)):T.set({icon:n.icons.cancel,label:x("Cancel")}),T.on("execute",D),T}class F extends n.Plugin{static get pluginName(){return"HtmlEmbedUI"}init(){const N=this.editor,D=N.t;N.ui.componentFactory.add("htmlEmbed",x=>{const T=N.commands.get("htmlEmbed"),u=new a.ButtonView(x);return u.set({label:D("Insert HTML"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M17 0a2 2 0 0 1 2 2v7a1 1 0 0 1 1 1v5a1 1 0 0 1-.883.993l-.118.006L19 17a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2l-.001-1.001-.116-.006A1 1 0 0 1 0 15v-5a1 1 0 0 1 .999-1L1 2a2 2 0 0 1 2-2h14zm.499 15.999h-15L2.5 17a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5l-.001-1.001zm-3.478-6.013-.014.014H14v.007l-1.525 1.525-1.46-1.46-.015.013V10h-1v5h1v-3.53l1.428 1.43.048.043.131-.129L14 11.421V15h1v-5h-.965l-.014-.014zM2 10H1v5h1v-2h2v2h1v-5H4v2H2v-2zm7 0H6v1h1v4h1v-4h1v-1zm8 0h-1v5h3v-1h-2v-4zm0-8.5H3a.5.5 0 0 0-.5.5l-.001 6.999h15L17.5 2a.5.5 0 0 0-.5-.5zM10 7v1H4V7h6zm3-2v1H4V5h9zm-3-2v1H4V3h6z"/></svg>',tooltip:!0}),u.bind("isEnabled").to(T,"isEnabled"),this.listenTo(u,"execute",()=>{N.execute("htmlEmbed"),N.editing.view.focus(),N.editing.view.document.selection.getSelectedElement().getCustomProperty("rawHtmlApi").makeEditable()}),u})}}class U extends n.Plugin{static get requires(){return[w,F,s.Widget]}static get pluginName(){return"HtmlEmbed"}}})(),(window.CKEditor5=window.CKEditor5||{}).htmlEmbed=r})()},80792:(Z,v,t)=>{Z=t.nmd(Z),function(r){const n=r.en=r.en||{};n.dictionary=Object.assign(n.dictionary||{},{"HTML object":"HTML object"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),(()=>{var r={142:(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p(609),k=p.n(d)()(function(C){return C[1]});k.push([c.id,":root{--ck-html-object-embed-unfocused-outline-width:1px}.ck-widget.html-object-embed{background-color:var(--ck-color-base-foreground);font-size:var(--ck-font-size-base);min-width:calc(76px + var(--ck-spacing-standard));padding:var(--ck-spacing-small);padding-top:calc(var(--ck-font-size-tiny) + var(--ck-spacing-large))}.ck-widget.html-object-embed:not(.ck-widget_selected):not(:hover){outline:var(--ck-html-object-embed-unfocused-outline-width) dashed var(--ck-color-widget-blurred-border)}.ck-widget.html-object-embed:before{background:#999;border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius);color:var(--ck-color-base-background);content:attr(data-html-object-embed-label);font-family:var(--ck-font-face);font-size:var(--ck-font-size-tiny);font-style:normal;font-weight:400;left:var(--ck-spacing-standard);padding:calc(var(--ck-spacing-tiny) + var(--ck-html-object-embed-unfocused-outline-width)) var(--ck-spacing-small) var(--ck-spacing-tiny);position:absolute;top:0;transition:background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck-widget.html-object-embed .ck-widget__type-around .ck-widget__type-around__button.ck-widget__type-around__button_before{margin-left:50px}.ck-widget.html-object-embed .html-object-embed__content{pointer-events:none}div.ck-widget.html-object-embed{margin:1em auto}span.ck-widget.html-object-embed{display:inline-block}",""]);const M=k},609:c=>{"use strict";c.exports=function(h){var p=[];return p.toString=function(){return this.map(function(d){var k=h(d);return d[2]?"@media ".concat(d[2]," {").concat(k,"}"):k}).join("")},p.i=function(d,k,M){typeof d=="string"&&(d=[[null,d,""]]);var C={};if(M)for(var w=0;w<this.length;w++){var I=this[w][0];I!=null&&(C[I]=!0)}for(var F=0;F<d.length;F++){var U=[].concat(d[F]);M&&C[U[0]]||(k&&(U[2]?U[2]="".concat(k," and ").concat(U[2]):U[2]=k),p.push(U))}},p}},62:(c,h,p)=>{"use strict";var d,k=function(){return d===void 0&&(d=Boolean(window&&document&&document.all&&!window.atob)),d},M=function(){var b={};return function(E){if(b[E]===void 0){var A=document.querySelector(E);if(window.HTMLIFrameElement&&A instanceof window.HTMLIFrameElement)try{A=A.contentDocument.head}catch{A=null}b[E]=A}return b[E]}}(),C=[];function w(b){for(var E=-1,A=0;A<C.length;A++)if(C[A].identifier===b){E=A;break}return E}function I(b,E){for(var A={},R=[],H=0;H<b.length;H++){var z=b[H],V=E.base?z[0]+E.base:z[0],$=A[V]||0,ee="".concat(V," ").concat($);A[V]=$+1;var q=w(ee),oe={css:z[1],media:z[2],sourceMap:z[3]};q!==-1?(C[q].references++,C[q].updater(oe)):C.push({identifier:ee,updater:u(oe,E),references:1}),R.push(ee)}return R}function F(b){var E=document.createElement("style"),A=b.attributes||{};if(A.nonce===void 0){var R=p.nc;R&&(A.nonce=R)}if(Object.keys(A).forEach(function(z){E.setAttribute(z,A[z])}),typeof b.insert=="function")b.insert(E);else{var H=M(b.insert||"head");if(!H)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");H.appendChild(E)}return E}var U,B=(U=[],function(b,E){return U[b]=E,U.filter(Boolean).join(`
`)});function N(b,E,A,R){var H=A?"":R.media?"@media ".concat(R.media," {").concat(R.css,"}"):R.css;if(b.styleSheet)b.styleSheet.cssText=B(E,H);else{var z=document.createTextNode(H),V=b.childNodes;V[E]&&b.removeChild(V[E]),V.length?b.insertBefore(z,V[E]):b.appendChild(z)}}function D(b,E,A){var R=A.css,H=A.media,z=A.sourceMap;if(H?b.setAttribute("media",H):b.removeAttribute("media"),z&&typeof btoa<"u"&&(R+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(z))))," */")),b.styleSheet)b.styleSheet.cssText=R;else{for(;b.firstChild;)b.removeChild(b.firstChild);b.appendChild(document.createTextNode(R))}}var x=null,T=0;function u(b,E){var A,R,H;if(E.singleton){var z=T++;A=x||(x=F(E)),R=N.bind(null,A,z,!1),H=N.bind(null,A,z,!0)}else A=F(E),R=D.bind(null,A,E),H=function(){(function(V){if(V.parentNode===null)return!1;V.parentNode.removeChild(V)})(A)};return R(b),function(V){if(V){if(V.css===b.css&&V.media===b.media&&V.sourceMap===b.sourceMap)return;R(b=V)}else H()}}c.exports=function(b,E){(E=E||{}).singleton||typeof E.singleton=="boolean"||(E.singleton=k());var A=I(b=b||[],E);return function(R){if(R=R||[],Object.prototype.toString.call(R)==="[object Array]"){for(var H=0;H<A.length;H++){var z=w(A[H]);C[z].references--}for(var V=I(R,E),$=0;$<A.length;$++){var ee=w(A[$]);C[ee].references===0&&(C[ee].updater(),C.splice(ee,1))}A=V}}}},704:(c,h,p)=>{c.exports=p(79)("./src/core.js")},492:(c,h,p)=>{c.exports=p(79)("./src/engine.js")},209:(c,h,p)=>{c.exports=p(79)("./src/utils.js")},995:(c,h,p)=>{c.exports=p(79)("./src/widget.js")},79:c=>{"use strict";c.exports=CKEditor5.dll}},n={};function s(c){var h=n[c];if(h!==void 0)return h.exports;var p=n[c]={id:c,exports:{}};return r[c](p,p.exports,s),p.exports}s.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return s.d(h,{a:h}),h},s.d=(c,h)=>{for(var p in h)s.o(h,p)&&!s.o(c,p)&&Object.defineProperty(c,p,{enumerable:!0,get:h[p]})},s.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),s.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},s.nc=void 0;var a={};(()=>{"use strict";s.r(a),s.d(a,{DataFilter:()=>Us,DataSchema:()=>Gt,FullPage:()=>Ql,GeneralHtmlSupport:()=>Nc,HtmlComment:()=>Ps,HtmlPageDataProcessor:()=>Yl});var c=s(704),h=s(209);const p=[{model:"codeBlock",view:"pre"},{model:"paragraph",view:"p"},{model:"blockQuote",view:"blockquote"},{model:"listItem",view:"li"},{model:"pageBreak",view:"div"},{model:"rawHtml",view:"div"},{model:"table",view:"table"},{model:"tableRow",view:"tr"},{model:"tableCell",view:"td"},{model:"tableCell",view:"th"},{model:"caption",view:"caption"},{model:"caption",view:"figcaption"},{model:"imageBlock",view:"img"},{model:"imageInline",view:"img"},{model:"htmlP",view:"p",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlBlockquote",view:"blockquote",modelSchema:{inheritAllFrom:"$container"}},{model:"htmlTable",view:"table",modelSchema:{allowWhere:"$block",isBlock:!0}},{model:"htmlTbody",view:"tbody",modelSchema:{allowIn:"htmlTable",isBlock:!1}},{model:"htmlThead",view:"thead",modelSchema:{allowIn:"htmlTable",isBlock:!1}},{model:"htmlTfoot",view:"tfoot",modelSchema:{allowIn:"htmlTable",isBlock:!1}},{model:"htmlCaption",view:"caption",modelSchema:{allowIn:"htmlTable",allowChildren:"$text",isBlock:!1}},{model:"htmlColgroup",view:"colgroup",modelSchema:{allowIn:"htmlTable",allowChildren:"col",isBlock:!1}},{model:"htmlCol",view:"col",modelSchema:{allowIn:"htmlColgroup",isBlock:!1}},{model:"htmlTr",view:"tr",modelSchema:{allowIn:["htmlTable","htmlThead","htmlTbody"],isLimit:!0}},{model:"htmlTd",view:"td",modelSchema:{allowIn:"htmlTr",allowContentOf:"$container",isLimit:!0,isBlock:!1}},{model:"htmlTh",view:"th",modelSchema:{allowIn:"htmlTr",allowContentOf:"$container",isLimit:!0,isBlock:!1}},{model:"htmlFigure",view:"figure",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlFigcaption",view:"figcaption",modelSchema:{allowIn:"htmlFigure",allowChildren:"$text",isBlock:!1}},{model:"htmlAddress",view:"address",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlAside",view:"aside",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlMain",view:"main",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlDetails",view:"details",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlSummary",view:"summary",modelSchema:{allowChildren:"$text",allowIn:"htmlDetails",isBlock:!1}},{model:"htmlDiv",view:"div",paragraphLikeModel:"htmlDivParagraph",modelSchema:{inheritAllFrom:"$container"}},{model:"htmlFieldset",view:"fieldset",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlLegend",view:"legend",modelSchema:{allowIn:"htmlFieldset",allowChildren:"$text"}},{model:"htmlHeader",view:"header",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlFooter",view:"footer",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlForm",view:"form",modelSchema:{inheritAllFrom:"$container",isBlock:!0}},{model:"htmlHgroup",view:"hgroup",modelSchema:{allowChildren:["htmlH1","htmlH2","htmlH3","htmlH4","htmlH5","htmlH6"],isBlock:!1}},{model:"htmlH1",view:"h1",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH2",view:"h2",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH3",view:"h3",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH4",view:"h4",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH5",view:"h5",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH6",view:"h6",modelSchema:{inheritAllFrom:"$block"}},{model:"$htmlList",modelSchema:{allowWhere:"$container",allowChildren:["$htmlList","htmlLi"],isBlock:!1}},{model:"htmlDir",view:"dir",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlMenu",view:"menu",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlUl",view:"ul",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlOl",view:"ol",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlLi",view:"li",modelSchema:{allowIn:"$htmlList",allowChildren:"$text",isBlock:!1}},{model:"htmlPre",view:"pre",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlArticle",view:"article",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlSection",view:"section",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlNav",view:"nav",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlDl",view:"dl",modelSchema:{allowWhere:"$container",allowChildren:["htmlDt","htmlDd"],isBlock:!1}},{model:"htmlDt",view:"dt",modelSchema:{allowChildren:"$block",isBlock:!1}},{model:"htmlDd",view:"dd",modelSchema:{allowChildren:"$block",isBlock:!1}},{model:"htmlCenter",view:"center",modelSchema:{inheritAllFrom:"$container",isBlock:!1}}],d=[{model:"htmlAcronym",view:"acronym",attributeProperties:{copyOnEnter:!0}},{model:"htmlTt",view:"tt",attributeProperties:{copyOnEnter:!0}},{model:"htmlFont",view:"font",attributeProperties:{copyOnEnter:!0}},{model:"htmlTime",view:"time",attributeProperties:{copyOnEnter:!0}},{model:"htmlVar",view:"var",attributeProperties:{copyOnEnter:!0}},{model:"htmlBig",view:"big",attributeProperties:{copyOnEnter:!0}},{model:"htmlSmall",view:"small",attributeProperties:{copyOnEnter:!0}},{model:"htmlSamp",view:"samp",attributeProperties:{copyOnEnter:!0}},{model:"htmlQ",view:"q",attributeProperties:{copyOnEnter:!0}},{model:"htmlOutput",view:"output",attributeProperties:{copyOnEnter:!0}},{model:"htmlKbd",view:"kbd",attributeProperties:{copyOnEnter:!0}},{model:"htmlBdi",view:"bdi",attributeProperties:{copyOnEnter:!0}},{model:"htmlBdo",view:"bdo",attributeProperties:{copyOnEnter:!0}},{model:"htmlAbbr",view:"abbr",attributeProperties:{copyOnEnter:!0}},{model:"htmlA",view:"a",priority:5,coupledAttribute:"linkHref",attributeProperties:{copyOnEnter:!0}},{model:"htmlStrong",view:"strong",coupledAttribute:"bold",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlB",view:"b",coupledAttribute:"bold",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlI",view:"i",coupledAttribute:"italic",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlEm",view:"em",coupledAttribute:"italic",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlS",view:"s",coupledAttribute:"strikethrough",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlDel",view:"del",coupledAttribute:"strikethrough",attributeProperties:{copyOnEnter:!0}},{model:"htmlIns",view:"ins",attributeProperties:{copyOnEnter:!0}},{model:"htmlU",view:"u",coupledAttribute:"underline",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSub",view:"sub",coupledAttribute:"subscript",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSup",view:"sup",coupledAttribute:"superscript",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlCode",view:"code",coupledAttribute:"code",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlMark",view:"mark",attributeProperties:{copyOnEnter:!0}},{model:"htmlSpan",view:"span",attributeProperties:{copyOnEnter:!0}},{model:"htmlCite",view:"cite",attributeProperties:{copyOnEnter:!0}},{model:"htmlLabel",view:"label",attributeProperties:{copyOnEnter:!0}},{model:"htmlDfn",view:"dfn",attributeProperties:{copyOnEnter:!0}},{model:"htmlObject",view:"object",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlIframe",view:"iframe",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlInput",view:"input",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlButton",view:"button",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlTextarea",view:"textarea",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlSelect",view:"select",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlVideo",view:"video",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlEmbed",view:"embed",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlOembed",view:"oembed",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlAudio",view:"audio",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlImg",view:"img",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlCanvas",view:"canvas",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlMeter",view:"meter",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlProgress",view:"progress",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlScript",view:"script",modelSchema:{allowWhere:["$text","$block"],isInline:!0}},{model:"htmlStyle",view:"style",modelSchema:{allowWhere:["$text","$block"],isInline:!0}},{model:"htmlCustomElement",view:"$customElement",modelSchema:{allowWhere:["$text","$block"],isInline:!0}}],k=function(){this.__data__=[],this.size=0},M=function(Pt,st){return Pt===st||Pt!=Pt&&st!=st},C=function(Pt,st){for(var nn=Pt.length;nn--;)if(M(Pt[nn][0],st))return nn;return-1};var w=Array.prototype.splice;const I=function(Pt){var st=this.__data__,nn=C(st,Pt);return!(nn<0)&&(nn==st.length-1?st.pop():w.call(st,nn,1),--this.size,!0)},F=function(Pt){var st=this.__data__,nn=C(st,Pt);return nn<0?void 0:st[nn][1]},U=function(Pt){return C(this.__data__,Pt)>-1},B=function(Pt,st){var nn=this.__data__,Un=C(nn,Pt);return Un<0?(++this.size,nn.push([Pt,st])):nn[Un][1]=st,this};function N(Pt){var st=-1,nn=Pt==null?0:Pt.length;for(this.clear();++st<nn;){var Un=Pt[st];this.set(Un[0],Un[1])}}N.prototype.clear=k,N.prototype.delete=I,N.prototype.get=F,N.prototype.has=U,N.prototype.set=B;const D=N,x=function(){this.__data__=new D,this.size=0},T=function(Pt){var st=this.__data__,nn=st.delete(Pt);return this.size=st.size,nn},u=function(Pt){return this.__data__.get(Pt)},b=function(Pt){return this.__data__.has(Pt)},E=typeof t.g=="object"&&t.g&&t.g.Object===Object&&t.g;var A=typeof self=="object"&&self&&self.Object===Object&&self;const R=E||A||Function("return this")(),H=R.Symbol;var z=Object.prototype,V=z.hasOwnProperty,$=z.toString,ee=H?H.toStringTag:void 0;const q=function(Pt){var st=V.call(Pt,ee),nn=Pt[ee];try{Pt[ee]=void 0;var Un=!0}catch{}var or=$.call(Pt);return Un&&(st?Pt[ee]=nn:delete Pt[ee]),or};var oe=Object.prototype.toString;const X=function(Pt){return oe.call(Pt)};var pe="[object Null]",Ie="[object Undefined]",se=H?H.toStringTag:void 0;const be=function(Pt){return Pt==null?Pt===void 0?Ie:pe:se&&se in Object(Pt)?q(Pt):X(Pt)},fe=function(Pt){var st=typeof Pt;return Pt!=null&&(st=="object"||st=="function")};var ue="[object AsyncFunction]",we="[object Function]",Me="[object GeneratorFunction]",Ce="[object Proxy]";const Ne=function(Pt){if(!fe(Pt))return!1;var st=be(Pt);return st==we||st==Me||st==ue||st==Ce},Ye=R["__core-js_shared__"];var mt,Ct=(mt=/[^.]+$/.exec(Ye&&Ye.keys&&Ye.keys.IE_PROTO||""))?"Symbol(src)_1."+mt:"";const ln=function(Pt){return!!Ct&&Ct in Pt};var $e=Function.prototype.toString;const Qe=function(Pt){if(Pt!=null){try{return $e.call(Pt)}catch{}try{return Pt+""}catch{}}return""};var bt=/^\[object .+?Constructor\]$/,It=Function.prototype,mn=Object.prototype,un=It.toString,Be=mn.hasOwnProperty,je=RegExp("^"+un.call(Be).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const $t=function(Pt){return!(!fe(Pt)||ln(Pt))&&(Ne(Pt)?je:bt).test(Qe(Pt))},et=function(Pt,st){return Pt?.[st]},Kt=function(Pt,st){var nn=et(Pt,st);return $t(nn)?nn:void 0},kn=Kt(R,"Map"),Tn=Kt(Object,"create"),ht=function(){this.__data__=Tn?Tn(null):{},this.size=0},ot=function(Pt){var st=this.has(Pt)&&delete this.__data__[Pt];return this.size-=st?1:0,st};var Je="__lodash_hash_undefined__",wt=Object.prototype.hasOwnProperty;const ft=function(Pt){var st=this.__data__;if(Tn){var nn=st[Pt];return nn===Je?void 0:nn}return wt.call(st,Pt)?st[Pt]:void 0};var vn=Object.prototype.hasOwnProperty;const ut=function(Pt){var st=this.__data__;return Tn?st[Pt]!==void 0:vn.call(st,Pt)};var Wt="__lodash_hash_undefined__";const ae=function(Pt,st){var nn=this.__data__;return this.size+=this.has(Pt)?0:1,nn[Pt]=Tn&&st===void 0?Wt:st,this};function ne(Pt){var st=-1,nn=Pt==null?0:Pt.length;for(this.clear();++st<nn;){var Un=Pt[st];this.set(Un[0],Un[1])}}ne.prototype.clear=ht,ne.prototype.delete=ot,ne.prototype.get=ft,ne.prototype.has=ut,ne.prototype.set=ae;const ge=ne,ye=function(){this.size=0,this.__data__={hash:new ge,map:new(kn||D),string:new ge}},Xe=function(Pt){var st=typeof Pt;return st=="string"||st=="number"||st=="symbol"||st=="boolean"?Pt!=="__proto__":Pt===null},Ze=function(Pt,st){var nn=Pt.__data__;return Xe(st)?nn[typeof st=="string"?"string":"hash"]:nn.map},lt=function(Pt){var st=Ze(this,Pt).delete(Pt);return this.size-=st?1:0,st},_t=function(Pt){return Ze(this,Pt).get(Pt)},zt=function(Pt){return Ze(this,Pt).has(Pt)},Vt=function(Pt,st){var nn=Ze(this,Pt),Un=nn.size;return nn.set(Pt,st),this.size+=nn.size==Un?0:1,this};function sn(Pt){var st=-1,nn=Pt==null?0:Pt.length;for(this.clear();++st<nn;){var Un=Pt[st];this.set(Un[0],Un[1])}}sn.prototype.clear=ye,sn.prototype.delete=lt,sn.prototype.get=_t,sn.prototype.has=zt,sn.prototype.set=Vt;const yn=sn;var dr=200;const hr=function(Pt,st){var nn=this.__data__;if(nn instanceof D){var Un=nn.__data__;if(!kn||Un.length<dr-1)return Un.push([Pt,st]),this.size=++nn.size,this;nn=this.__data__=new yn(Un)}return nn.set(Pt,st),this.size=nn.size,this};function Mr(Pt){var st=this.__data__=new D(Pt);this.size=st.size}Mr.prototype.clear=x,Mr.prototype.delete=T,Mr.prototype.get=u,Mr.prototype.has=b,Mr.prototype.set=hr;const rr=Mr,Cr=function(){try{var Pt=Kt(Object,"defineProperty");return Pt({},"",{}),Pt}catch{}}(),Ur=function(Pt,st,nn){st=="__proto__"&&Cr?Cr(Pt,st,{configurable:!0,enumerable:!0,value:nn,writable:!0}):Pt[st]=nn},$r=function(Pt,st,nn){(nn!==void 0&&!M(Pt[st],nn)||nn===void 0&&!(st in Pt))&&Ur(Pt,st,nn)},li=function(Pt){return function(st,nn,Un){for(var or=-1,lr=Object(st),jr=Un(st),Br=jr.length;Br--;){var Yr=jr[Pt?Br:++or];if(nn(lr[Yr],Yr,lr)===!1)break}return st}}();var ri=v&&!v.nodeType&&v,Bt=ri&&!0&&Z&&!Z.nodeType&&Z,Et=Bt&&Bt.exports===ri?R.Buffer:void 0,bn=Et?Et.allocUnsafe:void 0;const cn=function(Pt,st){if(st)return Pt.slice();var nn=Pt.length,Un=bn?bn(nn):new Pt.constructor(nn);return Pt.copy(Un),Un},Yn=R.Uint8Array,on=function(Pt){var st=new Pt.constructor(Pt.byteLength);return new Yn(st).set(new Yn(Pt)),st},ze=function(Pt,st){var nn=st?on(Pt.buffer):Pt.buffer;return new Pt.constructor(nn,Pt.byteOffset,Pt.length)},Le=function(Pt,st){var nn=-1,Un=Pt.length;for(st||(st=Array(Un));++nn<Un;)st[nn]=Pt[nn];return st};var Ht=Object.create;const Mn=function(){function Pt(){}return function(st){if(!fe(st))return{};if(Ht)return Ht(st);Pt.prototype=st;var nn=new Pt;return Pt.prototype=void 0,nn}}(),tr=function(Pt,st){return function(nn){return Pt(st(nn))}},Sr=tr(Object.getPrototypeOf,Object);var Xr=Object.prototype;const gi=function(Pt){var st=Pt&&Pt.constructor;return Pt===(typeof st=="function"&&st.prototype||Xr)},Pi=function(Pt){return typeof Pt.constructor!="function"||gi(Pt)?{}:Mn(Sr(Pt))},ii=function(Pt){return Pt!=null&&typeof Pt=="object"};var vr="[object Arguments]";const at=function(Pt){return ii(Pt)&&be(Pt)==vr};var it=Object.prototype,Re=it.hasOwnProperty,ke=it.propertyIsEnumerable;const Pe=at(function(){return arguments}())?at:function(Pt){return ii(Pt)&&Re.call(Pt,"callee")&&!ke.call(Pt,"callee")},Te=Array.isArray;var Mt=9007199254740991;const qt=function(Pt){return typeof Pt=="number"&&Pt>-1&&Pt%1==0&&Pt<=Mt},Rn=function(Pt){return Pt!=null&&qt(Pt.length)&&!Ne(Pt)},Qn=function(Pt){return ii(Pt)&&Rn(Pt)},ur=function(){return!1};var On=v&&!v.nodeType&&v,ct=On&&!0&&Z&&!Z.nodeType&&Z,Zt=ct&&ct.exports===On?R.Buffer:void 0;const Cn=(Zt?Zt.isBuffer:void 0)||ur;var Pn="[object Object]",Kn=Function.prototype,Rt=Object.prototype,Ke=Kn.toString,Oe=Rt.hasOwnProperty,Ge=Ke.call(Object);const Ft=function(Pt){if(!ii(Pt)||be(Pt)!=Pn)return!1;var st=Sr(Pt);if(st===null)return!0;var nn=Oe.call(st,"constructor")&&st.constructor;return typeof nn=="function"&&nn instanceof nn&&Ke.call(nn)==Ge};var Qt={};Qt["[object Float32Array]"]=Qt["[object Float64Array]"]=Qt["[object Int8Array]"]=Qt["[object Int16Array]"]=Qt["[object Int32Array]"]=Qt["[object Uint8Array]"]=Qt["[object Uint8ClampedArray]"]=Qt["[object Uint16Array]"]=Qt["[object Uint32Array]"]=!0,Qt["[object Arguments]"]=Qt["[object Array]"]=Qt["[object ArrayBuffer]"]=Qt["[object Boolean]"]=Qt["[object DataView]"]=Qt["[object Date]"]=Qt["[object Error]"]=Qt["[object Function]"]=Qt["[object Map]"]=Qt["[object Number]"]=Qt["[object Object]"]=Qt["[object RegExp]"]=Qt["[object Set]"]=Qt["[object String]"]=Qt["[object WeakMap]"]=!1;const wn=function(Pt){return ii(Pt)&&qt(Pt.length)&&!!Qt[be(Pt)]},Gn=function(Pt){return function(st){return Pt(st)}};var ir=v&&!v.nodeType&&v,br=ir&&!0&&Z&&!Z.nodeType&&Z,fr=br&&br.exports===ir&&E.process;const Er=function(){try{var Pt=br&&br.require&&br.require("util").types;return Pt||fr&&fr.binding&&fr.binding("util")}catch{}}();var Or=Er&&Er.isTypedArray;const oi=Or?Gn(Or):wn,si=function(Pt,st){if((st!=="constructor"||typeof Pt[st]!="function")&&st!="__proto__")return Pt[st]};var Fi=Object.prototype.hasOwnProperty;const $i=function(Pt,st,nn){var Un=Pt[st];Fi.call(Pt,st)&&M(Un,nn)&&(nn!==void 0||st in Pt)||Ur(Pt,st,nn)},Vi=function(Pt,st,nn,Un){var or=!nn;nn||(nn={});for(var lr=-1,jr=st.length;++lr<jr;){var Br=st[lr],Yr=Un?Un(nn[Br],Pt[Br],Br,nn,Pt):void 0;Yr===void 0&&(Yr=Pt[Br]),or?Ur(nn,Br,Yr):$i(nn,Br,Yr)}return nn},Bn=function(Pt,st){for(var nn=-1,Un=Array(Pt);++nn<Pt;)Un[nn]=st(nn);return Un};var nt=9007199254740991,ve=/^(?:0|[1-9]\d*)$/;const he=function(Pt,st){var nn=typeof Pt;return!!(st=st??nt)&&(nn=="number"||nn!="symbol"&&ve.test(Pt))&&Pt>-1&&Pt%1==0&&Pt<st};var Ae=Object.prototype.hasOwnProperty;const tt=function(Pt,st){var nn=Te(Pt),Un=!nn&&Pe(Pt),or=!nn&&!Un&&Cn(Pt),lr=!nn&&!Un&&!or&&oi(Pt),jr=nn||Un||or||lr,Br=jr?Bn(Pt.length,String):[],Yr=Br.length;for(var Oi in Pt)!st&&!Ae.call(Pt,Oi)||jr&&(Oi=="length"||or&&(Oi=="offset"||Oi=="parent")||lr&&(Oi=="buffer"||Oi=="byteLength"||Oi=="byteOffset")||he(Oi,Yr))||Br.push(Oi);return Br},St=function(Pt){var st=[];if(Pt!=null)for(var nn in Object(Pt))st.push(nn);return st};var kt=Object.prototype.hasOwnProperty;const Jt=function(Pt){if(!fe(Pt))return St(Pt);var st=gi(Pt),nn=[];for(var Un in Pt)(Un!="constructor"||!st&&kt.call(Pt,Un))&&nn.push(Un);return nn},gt=function(Pt){return Rn(Pt)?tt(Pt,!0):Jt(Pt)},dn=function(Pt){return Vi(Pt,gt(Pt))},Xt=function(Pt,st,nn,Un,or,lr,jr){var Br=si(Pt,nn),Yr=si(st,nn),Oi=jr.get(Yr);if(Oi)$r(Pt,nn,Oi);else{var Mi=lr?lr(Br,Yr,nn+"",Pt,st,jr):void 0,eo=Mi===void 0;if(eo){var Ni=Te(Yr),no=!Ni&&Cn(Yr),vo=!Ni&&!no&&oi(Yr);Mi=Yr,Ni||no||vo?Te(Br)?Mi=Br:Qn(Br)?Mi=Le(Br):no?(eo=!1,Mi=cn(Yr,!0)):vo?(eo=!1,Mi=ze(Yr,!0)):Mi=[]:Ft(Yr)||Pe(Yr)?(Mi=Br,Pe(Br)?Mi=dn(Br):fe(Br)&&!Ne(Br)||(Mi=Pi(Yr))):eo=!1}eo&&(jr.set(Yr,Mi),or(Mi,Yr,Un,lr,jr),jr.delete(Yr)),$r(Pt,nn,Mi)}},hn=function Pt(st,nn,Un,or,lr){st!==nn&&li(nn,function(jr,Br){if(lr||(lr=new rr),fe(jr))Xt(st,nn,Br,Un,Pt,or,lr);else{var Yr=or?or(si(st,Br),jr,Br+"",st,nn,lr):void 0;Yr===void 0&&(Yr=jr),$r(st,Br,Yr)}},gt)},Sn=function(Pt){return Pt},Jn=function(Pt,st,nn){switch(nn.length){case 0:return Pt.call(st);case 1:return Pt.call(st,nn[0]);case 2:return Pt.call(st,nn[0],nn[1]);case 3:return Pt.call(st,nn[0],nn[1],nn[2])}return Pt.apply(st,nn)};var Vn=Math.max;const ar=function(Pt,st,nn){return st=Vn(st===void 0?Pt.length-1:st,0),function(){for(var Un=arguments,or=-1,lr=Vn(Un.length-st,0),jr=Array(lr);++or<lr;)jr[or]=Un[st+or];or=-1;for(var Br=Array(st+1);++or<st;)Br[or]=Un[or];return Br[st]=nn(jr),Jn(Pt,this,Br)}},Vr=function(Pt){return function(){return Pt}},Jr=Cr?function(Pt,st){return Cr(Pt,"toString",{configurable:!0,enumerable:!1,value:Vr(st),writable:!0})}:Sn;var yi=800,Ii=16,ji=Date.now;const _n=function(Pt){var st=0,nn=0;return function(){var Un=ji(),or=Ii-(Un-nn);if(nn=Un,or>0){if(++st>=yi)return arguments[0]}else st=0;return Pt.apply(void 0,arguments)}}(Jr),_e=function(Pt,st){return _n(ar(Pt,st,Sn),Pt+"")},rt=function(Pt,st,nn){if(!fe(nn))return!1;var Un=typeof st;return!!(Un=="number"?Rn(nn)&&he(st,nn.length):Un=="string"&&st in nn)&&M(nn[st],Pt)},vt=function(Pt){return _e(function(st,nn){var Un=-1,or=nn.length,lr=or>1?nn[or-1]:void 0,jr=or>2?nn[2]:void 0;for(lr=Pt.length>3&&typeof lr=="function"?(or--,lr):void 0,jr&&rt(nn[0],nn[1],jr)&&(lr=or<3?void 0:lr,or=1),st=Object(st);++Un<or;){var Br=nn[Un];Br&&Pt(st,Br,Un,lr)}return st})}(function(Pt,st,nn,Un){hn(Pt,st,nn,Un)});class Gt extends c.Plugin{constructor(st){super(st),this._definitions=new Map}static get pluginName(){return"DataSchema"}init(){for(const st of p)this.registerBlockElement(st);for(const st of d)this.registerInlineElement(st)}registerBlockElement(st){this._definitions.set(st.model,{...st,isBlock:!0})}registerInlineElement(st){this._definitions.set(st.model,{...st,isInline:!0})}extendBlockElement(st){this._extendDefinition({...st,isBlock:!0})}extendInlineElement(st){this._extendDefinition({...st,isInline:!0})}getDefinitionsForView(st,nn){const Un=new Set;for(const or of this._getMatchingViewDefinitions(st)){if(nn)for(const lr of this._getReferences(or.model))Un.add(lr);Un.add(or)}return Un}_getMatchingViewDefinitions(st){return Array.from(this._definitions.values()).filter(nn=>nn.view&&function(Un,or){return typeof Un=="string"?Un===or:Un instanceof RegExp?Un.test(or):!1}(st,nn.view))}*_getReferences(st){const{modelSchema:nn}=this._definitions.get(st);if(!nn)return;const Un=["inheritAllFrom","inheritTypesFrom","allowWhere","allowContentOf","allowAttributesOf"];for(const or of Un)for(const lr of(0,h.toArray)(nn[or]||[])){const jr=this._definitions.get(lr);lr!==st&&jr&&(yield*this._getReferences(jr.model),yield jr)}}_extendDefinition(st){const nn=this._definitions.get(st.model),Un=vt({},nn,st,(or,lr)=>Array.isArray(or)?or.concat(lr):void 0);this._definitions.set(st.model,Un)}}var We=s(492),Ot=s(995);const Dt=function(Pt,st){for(var nn=-1,Un=Pt==null?0:Pt.length;++nn<Un&&st(Pt[nn],nn,Pt)!==!1;);return Pt},gn=tr(Object.keys,Object);var Hn=Object.prototype.hasOwnProperty;const nr=function(Pt){if(!gi(Pt))return gn(Pt);var st=[];for(var nn in Object(Pt))Hn.call(Pt,nn)&&nn!="constructor"&&st.push(nn);return st},_r=function(Pt){return Rn(Pt)?tt(Pt):nr(Pt)},Nr=function(Pt,st){return Pt&&Vi(st,_r(st),Pt)},Qr=function(Pt,st){return Pt&&Vi(st,gt(st),Pt)},ki=function(Pt,st){for(var nn=-1,Un=Pt==null?0:Pt.length,or=0,lr=[];++nn<Un;){var jr=Pt[nn];st(jr,nn,Pt)&&(lr[or++]=jr)}return lr},Si=function(){return[]};var Ei=Object.prototype.propertyIsEnumerable,oo=Object.getOwnPropertySymbols;const zi=oo?function(Pt){return Pt==null?[]:(Pt=Object(Pt),ki(oo(Pt),function(st){return Ei.call(Pt,st)}))}:Si,Xi=function(Pt,st){return Vi(Pt,zi(Pt),st)},uo=function(Pt,st){for(var nn=-1,Un=st.length,or=Pt.length;++nn<Un;)Pt[or+nn]=st[nn];return Pt},qi=Object.getOwnPropertySymbols?function(Pt){for(var st=[];Pt;)uo(st,zi(Pt)),Pt=Sr(Pt);return st}:Si,Ui=function(Pt,st){return Vi(Pt,qi(Pt),st)},Vo=function(Pt,st,nn){var Un=st(Pt);return Te(Pt)?Un:uo(Un,nn(Pt))},Cs=function(Pt){return Vo(Pt,_r,zi)},ra=function(Pt){return Vo(Pt,gt,qi)},Ts=Kt(R,"DataView"),Io=Kt(R,"Promise"),xr=Kt(R,"Set"),ia=Kt(R,"WeakMap");var Is="[object Map]",Gs="[object Promise]",as="[object Set]",Wo="[object WeakMap]",Ma="[object DataView]",fa=Qe(Ts),dt=Qe(kn),Fe=Qe(Io),an=Qe(xr),qn=Qe(ia),Fr=be;(Ts&&Fr(new Ts(new ArrayBuffer(1)))!=Ma||kn&&Fr(new kn)!=Is||Io&&Fr(Io.resolve())!=Gs||xr&&Fr(new xr)!=as||ia&&Fr(new ia)!=Wo)&&(Fr=function(Pt){var st=be(Pt),nn=st=="[object Object]"?Pt.constructor:void 0,Un=nn?Qe(nn):"";if(Un)switch(Un){case fa:return Ma;case dt:return Is;case Fe:return Gs;case an:return as;case qn:return Wo}return st});const ui=Fr;var Hi=Object.prototype.hasOwnProperty;const lo=function(Pt){var st=Pt.length,nn=new Pt.constructor(st);return st&&typeof Pt[0]=="string"&&Hi.call(Pt,"index")&&(nn.index=Pt.index,nn.input=Pt.input),nn},mo=function(Pt,st){var nn=st?on(Pt.buffer):Pt.buffer;return new Pt.constructor(nn,Pt.byteOffset,Pt.byteLength)};var ts=/\w*$/;const co=function(Pt){var st=new Pt.constructor(Pt.source,ts.exec(Pt));return st.lastIndex=Pt.lastIndex,st};var Oo=H?H.prototype:void 0,Po=Oo?Oo.valueOf:void 0;const Yo=function(Pt){return Po?Object(Po.call(Pt)):{}};var ns="[object Boolean]",Os="[object Date]",Lo="[object Map]",da="[object Number]",Qs="[object RegExp]",ta="[object Set]",Oa="[object String]",_l="[object Symbol]",gs="[object ArrayBuffer]",ds="[object DataView]",es="[object Float32Array]",Ga="[object Float64Array]",So="[object Int8Array]",Di="[object Int16Array]",Il="[object Int32Array]",Na="[object Uint8Array]",xl="[object Uint8ClampedArray]",Rl="[object Uint16Array]",Pa="[object Uint32Array]";const fi=function(Pt,st,nn){var Un=Pt.constructor;switch(st){case gs:return on(Pt);case ns:case Os:return new Un(+Pt);case ds:return mo(Pt,nn);case es:case Ga:case So:case Di:case Il:case Na:case xl:case Rl:case Pa:return ze(Pt,nn);case Lo:return new Un;case da:case Oa:return new Un(Pt);case Qs:return co(Pt);case ta:return new Un;case _l:return Yo(Pt)}};var rl="[object Map]";const Xn=function(Pt){return ii(Pt)&&ui(Pt)==rl};var Kr=Er&&Er.isMap;const Ln=Kr?Gn(Kr):Xn;var gr="[object Set]";const pr=function(Pt){return ii(Pt)&&ui(Pt)==gr};var Wr=Er&&Er.isSet;const Lt=Wr?Gn(Wr):pr;var re=1,me=2,Ue=4,He="[object Arguments]",At="[object Function]",Ut="[object GeneratorFunction]",en="[object Object]",Yt={};Yt[He]=Yt["[object Array]"]=Yt["[object ArrayBuffer]"]=Yt["[object DataView]"]=Yt["[object Boolean]"]=Yt["[object Date]"]=Yt["[object Float32Array]"]=Yt["[object Float64Array]"]=Yt["[object Int8Array]"]=Yt["[object Int16Array]"]=Yt["[object Int32Array]"]=Yt["[object Map]"]=Yt["[object Number]"]=Yt[en]=Yt["[object RegExp]"]=Yt["[object Set]"]=Yt["[object String]"]=Yt["[object Symbol]"]=Yt["[object Uint8Array]"]=Yt["[object Uint8ClampedArray]"]=Yt["[object Uint16Array]"]=Yt["[object Uint32Array]"]=!0,Yt["[object Error]"]=Yt[At]=Yt["[object WeakMap]"]=!1;const In=function Pt(st,nn,Un,or,lr,jr){var Br,Yr=nn&re,Oi=nn&me,Mi=nn&Ue;if(Un&&(Br=lr?Un(st,or,lr,jr):Un(st)),Br!==void 0)return Br;if(!fe(st))return st;var eo=Te(st);if(eo){if(Br=lo(st),!Yr)return Le(st,Br)}else{var Ni=ui(st),no=Ni==At||Ni==Ut;if(Cn(st))return cn(st,Yr);if(Ni==en||Ni==He||no&&!lr){if(Br=Oi||no?{}:Pi(st),!Yr)return Oi?Ui(st,Qr(Br,st)):Xi(st,Nr(Br,st))}else{if(!Yt[Ni])return lr?st:{};Br=fi(st,Ni,Yr)}}jr||(jr=new rr);var vo=jr.get(st);if(vo)return vo;jr.set(st,Br),Lt(st)?st.forEach(function(No){Br.add(Pt(No,nn,Un,No,st,jr))}):Ln(st)&&st.forEach(function(No,ps){Br.set(ps,Pt(No,nn,Un,ps,st,jr))});var Qo=eo?void 0:(Mi?Oi?ra:Cs:Oi?gt:_r)(st);return Dt(Qo||st,function(No,ps){Qo&&(No=st[ps=No]),$i(Br,ps,Pt(No,nn,Un,ps,st,jr))}),Br};var $n=1,wr=4;const Tr=function(Pt){return In(Pt,$n|wr)};function qr(Pt,st,nn,Un){st&&function(or,lr,jr){if(lr.attributes)for(const[Br]of Object.entries(lr.attributes))or.removeAttribute(Br,jr);if(lr.styles)for(const Br of Object.keys(lr.styles))or.removeStyle(Br,jr);lr.classes&&or.removeClass(lr.classes,jr)}(Pt,st,Un),nn&&di(Pt,nn,Un)}function di(Pt,st,nn){if(st.attributes)for(const[Un,or]of Object.entries(st.attributes))Pt.setAttribute(Un,or,nn);st.styles&&Pt.setStyle(st.styles,nn),st.classes&&Pt.addClass(st.classes,nn)}function ai(Pt,st){const nn=Tr(Pt);for(const Un in st)Array.isArray(st[Un])?nn[Un]=Array.from(new Set([...Pt[Un]||[],...st[Un]])):nn[Un]={...Pt[Un],...st[Un]};return nn}function Ri({model:Pt}){return(st,nn)=>nn.writer.createElement(Pt,{htmlContent:st.getCustomProperty("$rawContent")})}function Qi(Pt,{view:st,isInline:nn}){const Un=Pt.t;return(or,{writer:lr})=>{const jr=Un("HTML object"),Br=so(st,or,lr),Yr=or.getAttribute("htmlAttributes");lr.addClass("html-object-embed__content",Br),Yr&&di(lr,Yr,Br);const Oi=lr.createContainerElement(nn?"span":"div",{class:"html-object-embed","data-html-object-embed-label":jr},Br);return(0,Ot.toWidget)(Oi,lr,{widgetLabel:jr})}}function so(Pt,st,nn){return nn.createRawElement(Pt,null,(Un,or)=>{or.setContentOf(Un,st.getAttribute("htmlContent"))})}function Do({priority:Pt,view:st}){return(nn,Un)=>{if(!nn)return;const{writer:or}=Un,lr=or.createAttributeElement(st,null,{priority:Pt});return di(or,nn,lr),lr}}function Ro({view:Pt},st){return nn=>{nn.on(`element:${Pt}`,(Un,or,lr)=>{if(!or.modelRange||or.modelRange.isCollapsed)return;const jr=st.processViewAttributes(or.viewItem,lr);jr&&lr.writer.setAttribute("htmlAttributes",jr,or.modelRange)},{priority:"low"})}}function Rs({model:Pt}){return st=>{st.on(`attribute:htmlAttributes:${Pt}`,(nn,Un,or)=>{if(!or.consumable.consume(Un.item,nn.name))return;const{attributeOldValue:lr,attributeNewValue:jr}=Un;qr(or.writer,lr,jr,or.mapper.toViewElement(Un.item))})}}const Ns=function(Pt,st){for(var nn=-1,Un=Pt==null?0:Pt.length,or=Array(Un);++nn<Un;)or[nn]=st(Pt[nn],nn,Pt);return or},Ls=function(Pt,st,nn,Un){for(var or=Pt.length,lr=nn+(Un?1:-1);Un?lr--:++lr<or;)if(st(Pt[lr],lr,Pt))return lr;return-1},Ba=function(Pt){return Pt!=Pt},Da=function(Pt,st,nn){for(var Un=nn-1,or=Pt.length;++Un<or;)if(Pt[Un]===st)return Un;return-1},go=function(Pt,st,nn){return st==st?Da(Pt,st,nn):Ls(Pt,Ba,nn)},Wl=function(Pt,st,nn,Un){for(var or=nn-1,lr=Pt.length;++or<lr;)if(Un(Pt[or],st))return or;return-1};var na=Array.prototype.splice;const Eo=function(Pt,st,nn,Un){var or=Un?Wl:go,lr=-1,jr=st.length,Br=Pt;for(Pt===st&&(st=Le(st)),nn&&(Br=Ns(Pt,Gn(nn)));++lr<jr;)for(var Yr=0,Oi=st[lr],Mi=nn?nn(Oi):Oi;(Yr=or(Br,Mi,Yr,Un))>-1;)Br!==Pt&&na.call(Br,Yr,1),na.call(Pt,Yr,1);return Pt},Fs=_e(function(Pt,st){return Pt&&Pt.length&&st&&st.length?Eo(Pt,st):Pt});var _a=s(62),Ya=s.n(_a),Ss=s(142),Zl={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ya()(Ss.Z,Zl),Ss.Z.locals;class Us extends c.Plugin{constructor(st){super(st),this._dataSchema=st.plugins.get("DataSchema"),this._allowedAttributes=new We.Matcher,this._disallowedAttributes=new We.Matcher,this._allowedElements=new Set,this._disallowedElements=new Set,this._dataInitialized=!1,this._coupledAttributes=null,this._registerElementsAfterInit(),this._registerElementHandlers(),this._registerModelPostFixer()}static get pluginName(){return"DataFilter"}static get requires(){return[Gt,Ot.Widget]}loadAllowedConfig(st){for(const nn of st){const Un=nn.name||/[\s\S]+/,or=Kl(nn);this.allowElement(Un),or.forEach(lr=>this.allowAttributes(lr))}}loadDisallowedConfig(st){for(const nn of st){const Un=nn.name||/[\s\S]+/,or=Kl(nn);or.length==0?this.disallowElement(Un):or.forEach(lr=>this.disallowAttributes(lr))}}allowElement(st){for(const nn of this._dataSchema.getDefinitionsForView(st,!0))this._allowedElements.has(nn)||(this._allowedElements.add(nn),this._dataInitialized&&this.editor.data.once("set",()=>{this._fireRegisterEvent(nn)},{priority:h.priorities.get("highest")+1}),this._coupledAttributes=null)}disallowElement(st){for(const nn of this._dataSchema.getDefinitionsForView(st,!1))this._disallowedElements.add(nn.view)}allowAttributes(st){this._allowedAttributes.add(st)}disallowAttributes(st){this._disallowedAttributes.add(st)}processViewAttributes(st,nn){return Ll(st,nn,this._disallowedAttributes),Ll(st,nn,this._allowedAttributes)}_registerElementsAfterInit(){this.editor.data.on("init",()=>{this._dataInitialized=!0;for(const st of this._allowedElements)this._fireRegisterEvent(st)},{priority:h.priorities.get("highest")+1})}_registerElementHandlers(){this.on("register",(st,nn)=>{const Un=this.editor.model.schema;if(nn.isObject&&!Un.isRegistered(nn.model))this._registerObjectElement(nn);else if(nn.isBlock)this._registerBlockElement(nn);else{if(!nn.isInline)throw new h.CKEditorError("data-filter-invalid-definition",null,nn);this._registerInlineElement(nn)}st.stop()},{priority:"lowest"})}_registerModelPostFixer(){const st=this.editor.model;st.document.registerPostFixer(nn=>{const Un=st.document.differ.getChanges();let or=!1;const lr=this._getCoupledAttributesMap();for(const jr of Un){if(jr.type!="attribute"||jr.attributeNewValue!==null)continue;const Br=lr.get(jr.attributeKey);if(Br)for(const{item:Yr}of jr.range.getWalker({shallow:!0}))for(const Oi of Br)Yr.hasAttribute(Oi)&&(nn.removeAttribute(Oi,Yr),or=!0)}return or})}_getCoupledAttributesMap(){if(this._coupledAttributes)return this._coupledAttributes;this._coupledAttributes=new Map;for(const st of this._allowedElements)if(st.coupledAttribute&&st.model){const nn=this._coupledAttributes.get(st.coupledAttribute);nn?nn.push(st.model):this._coupledAttributes.set(st.coupledAttribute,[st.model])}}_fireRegisterEvent(st){st.view&&this._disallowedElements.has(st.view)||this.fire(st.view?`register:${st.view}`:"register",st)}_registerObjectElement(st){const nn=this.editor,Un=nn.model.schema,or=nn.conversion,{view:lr,model:jr}=st;Un.register(jr,st.modelSchema),lr&&(Un.extend(st.model,{allowAttributes:["htmlAttributes","htmlContent"]}),nn.data.registerRawContentMatcher({name:lr}),or.for("upcast").elementToElement({view:lr,model:Ri(st),converterPriority:h.priorities.get("low")+1}),or.for("upcast").add(Ro(st,this)),or.for("editingDowncast").elementToStructure({model:{name:jr,attributes:["htmlAttributes"]},view:Qi(nn,st)}),or.for("dataDowncast").elementToElement({model:jr,view:(Br,{writer:Yr})=>so(lr,Br,Yr)}),or.for("dataDowncast").add(Rs(st)))}_registerBlockElement(st){const nn=this.editor,Un=nn.model.schema,or=nn.conversion,{view:lr,model:jr}=st;if(!Un.isRegistered(st.model)){if(Un.register(st.model,st.modelSchema),!lr)return;or.for("upcast").elementToElement({model:jr,view:lr,converterPriority:h.priorities.get("low")+1}),or.for("downcast").elementToElement({model:jr,view:lr})}lr&&(Un.extend(st.model,{allowAttributes:"htmlAttributes"}),or.for("upcast").add(Ro(st,this)),or.for("downcast").add(Rs(st)))}_registerInlineElement(st){const nn=this.editor,Un=nn.model.schema,or=nn.conversion,lr=st.model;Un.extend("$text",{allowAttributes:lr}),st.attributeProperties&&Un.setAttributeProperties(lr,st.attributeProperties),or.for("upcast").add(function({view:jr,model:Br},Yr){return Oi=>{Oi.on(`element:${jr}`,(Mi,eo,Ni)=>{let no=Yr.processViewAttributes(eo.viewItem,Ni);if(no||Ni.consumable.test(eo.viewItem,{name:!0})){no=no||{},Ni.consumable.consume(eo.viewItem,{name:!0}),eo.modelRange||(eo=Object.assign(eo,Ni.convertChildren(eo.viewItem,eo.modelCursor)));for(const vo of eo.modelRange.getItems())if(Ni.schema.checkAttribute(vo,Br)){const Qo=ai(no,vo.getAttribute(Br)||{});Ni.writer.setAttribute(Br,Qo,vo)}}},{priority:"low"})}}(st,this)),or.for("downcast").attributeToElement({model:lr,view:Do(st)})}}function Ll(Pt,st,nn){const Un=function(Yr,{consumable:Oi},Mi){const eo=Mi.matchAll(Yr)||[],Ni=[];for(const no of eo)nc(Oi,Yr,no),delete no.match.name,Oi.consume(Yr,no.match),Ni.push(no);return Ni}(Pt,st,nn),{attributes:or,styles:lr,classes:jr}=function(Yr){const Oi={attributes:new Set,classes:new Set,styles:new Set};for(const Mi of Yr)for(const eo in Oi)(Mi.match[eo]||[]).forEach(Ni=>Oi[eo].add(Ni));return Oi}(Un),Br={};if(or.size)for(const Yr of or)Ea(Yr)||or.delete(Yr);return or.size&&(Br.attributes=Dc(or,Yr=>Pt.getAttribute(Yr))),lr.size&&(Br.styles=Dc(lr,Yr=>Pt.getStyle(Yr))),jr.size&&(Br.classes=Array.from(jr)),Object.keys(Br).length?Br:null}function nc(Pt,st,nn){for(const Un of["attributes","classes","styles"]){const or=nn.match[Un];if(or)for(const lr of Array.from(or))Pt.test(st,{[Un]:[lr]})||Fs(or,lr)}}function Dc(Pt,st){const nn={};for(const Un of Pt)st(Un)!==void 0&&(nn[Un]=st(Un));return nn}function xa(Pt,st){const{name:nn}=Pt;return Ft(Pt[st])?Object.entries(Pt[st]).map(([Un,or])=>({name:nn,[st]:{[Un]:or}})):Array.isArray(Pt[st])?Pt[st].map(Un=>({name:nn,[st]:[Un]})):[Pt]}function Kl(Pt){const{name:st,attributes:nn,classes:Un,styles:or}=Pt,lr=[];return nn&&lr.push(...xa({name:st,attributes:nn},"attributes")),Un&&lr.push(...xa({name:st,classes:Un},"classes")),or&&lr.push(...xa({name:st,styles:or},"styles")),lr}function Ea(Pt){try{document.createAttribute(Pt)}catch{return!1}return!0}class js extends c.Plugin{static get requires(){return[Us]}static get pluginName(){return"CodeBlockElementSupport"}init(){if(!this.editor.plugins.has("CodeBlockEditing"))return;const st=this.editor.plugins.get(Us);st.on("register:pre",(nn,Un)=>{if(Un.model!=="codeBlock")return;const or=this.editor,lr=or.model.schema,jr=or.conversion;lr.extend("codeBlock",{allowAttributes:["htmlAttributes","htmlContentAttributes"]}),jr.for("upcast").add(function(Br){return Yr=>{Yr.on("element:code",(Oi,Mi,eo)=>{const Ni=Mi.viewItem,no=Ni.parent;function vo(Qo,No){const ps=Br.processViewAttributes(Qo,eo);ps&&eo.writer.setAttribute(No,ps,Mi.modelRange)}no&&no.is("element","pre")&&(vo(no,"htmlAttributes"),vo(Ni,"htmlContentAttributes"))},{priority:"low"})}}(st)),jr.for("downcast").add(Br=>{Br.on("attribute:htmlAttributes:codeBlock",(Yr,Oi,Mi)=>{if(!Mi.consumable.consume(Oi.item,Yr.name))return;const{attributeOldValue:eo,attributeNewValue:Ni}=Oi,no=Mi.mapper.toViewElement(Oi.item).parent;qr(Mi.writer,eo,Ni,no)}),Br.on("attribute:htmlContentAttributes:codeBlock",(Yr,Oi,Mi)=>{if(!Mi.consumable.consume(Oi.item,Yr.name))return;const{attributeOldValue:eo,attributeNewValue:Ni}=Oi,no=Mi.mapper.toViewElement(Oi.item);qr(Mi.writer,eo,Ni,no)})}),nn.stop()})}}class jl extends c.Plugin{static get requires(){return[Us]}static get pluginName(){return"DualContentModelElementSupport"}init(){this.editor.plugins.get(Us).on("register",(st,nn)=>{const Un=this.editor,or=Un.model.schema,lr=Un.conversion;if(!nn.paragraphLikeModel||or.isRegistered(nn.model)||or.isRegistered(nn.paragraphLikeModel))return;const jr={model:nn.paragraphLikeModel,view:nn.view};or.register(nn.model,nn.modelSchema),or.register(jr.model,{inheritAllFrom:"$block"}),lr.for("upcast").elementToElement({view:nn.view,model:(Br,{writer:Yr})=>this._hasBlockContent(Br)?Yr.createElement(nn.model):Yr.createElement(jr.model),converterPriority:h.priorities.get("low")+1}),lr.for("downcast").elementToElement({view:nn.view,model:nn.model}),this._addAttributeConversion(nn),lr.for("downcast").elementToElement({view:jr.view,model:jr.model}),this._addAttributeConversion(jr),st.stop()})}_hasBlockContent(st){const nn=this.editor.editing.view,Un=nn.domConverter.blockElements;for(const or of nn.createRangeIn(st).getItems())if(or.is("element")&&Un.includes(or.name))return!0;return!1}_addAttributeConversion(st){const nn=this.editor,Un=nn.conversion,or=nn.plugins.get(Us);nn.model.schema.extend(st.model,{allowAttributes:"htmlAttributes"}),Un.for("upcast").add(Ro(st,or)),Un.for("downcast").add(Rs(st))}}class Bl extends c.Plugin{static get requires(){return[Gt]}static get pluginName(){return"HeadingElementSupport"}init(){const st=this.editor;if(!st.plugins.has("HeadingEditing"))return;const nn=st.plugins.get(Gt),Un=st.config.get("heading.options"),or=[];for(const lr of Un)"model"in lr&&"view"in lr&&(nn.registerBlockElement({view:lr.view,model:lr.model}),or.push(lr.model));nn.extendBlockElement({model:"htmlHgroup",modelSchema:{allowChildren:or}})}}class il extends c.Plugin{static get requires(){return[Us]}static get pluginName(){return"ImageElementSupport"}init(){const st=this.editor;if(!st.plugins.has("ImageInlineEditing")&&!st.plugins.has("ImageBlockEditing"))return;const nn=st.model.schema,Un=st.conversion,or=st.plugins.get(Us);or.on("register:figure",()=>{Un.for("upcast").add(function(lr){return jr=>{jr.on("element:figure",(Br,Yr,Oi)=>{const Mi=Yr.viewItem;if(!Yr.modelRange||!Mi.hasClass("image"))return;const eo=lr.processViewAttributes(Mi,Oi);eo&&Oi.writer.setAttribute("htmlFigureAttributes",eo,Yr.modelRange)},{priority:"low"})}}(or))}),or.on("register:img",(lr,jr)=>{jr.model!=="imageBlock"&&jr.model!=="imageInline"||(nn.isRegistered("imageBlock")&&nn.extend("imageBlock",{allowAttributes:["htmlAttributes","htmlFigureAttributes","htmlLinkAttributes"]}),nn.isRegistered("imageInline")&&nn.extend("imageInline",{allowAttributes:["htmlA","htmlAttributes"]}),Un.for("upcast").add(function(Br){return Yr=>{Yr.on("element:img",(Oi,Mi,eo)=>{if(!Mi.modelRange)return;const Ni=Mi.viewItem,no=Ni.parent;function vo(No,ps){const ba=Br.processViewAttributes(No,eo);ba&&eo.writer.setAttribute(ps,ba,Mi.modelRange)}function Qo(No){Mi.modelRange&&Mi.modelRange.getContainedElement().is("element","imageBlock")&&vo(No,"htmlLinkAttributes")}vo(Ni,"htmlAttributes"),no.is("element","a")&&Qo(no)},{priority:"low"})}}(or)),Un.for("downcast").add(Br=>{function Yr(Mi){Br.on(`attribute:${Mi}:imageInline`,(eo,Ni,no)=>{if(!no.consumable.consume(Ni.item,eo.name))return;const{attributeOldValue:vo,attributeNewValue:Qo}=Ni,No=no.mapper.toViewElement(Ni.item);qr(no.writer,vo,Qo,No)},{priority:"low"})}function Oi(Mi,eo){Br.on(`attribute:${eo}:imageBlock`,(Ni,no,vo)=>{if(!vo.consumable.test(no.item,Ni.name))return;const{attributeOldValue:Qo,attributeNewValue:No}=no,ps=vo.mapper.toViewElement(no.item),ba=ko(vo.writer,ps,Mi);ba&&(qr(vo.writer,Qo,No,ba),vo.consumable.consume(no.item,Ni.name))},{priority:"low"}),Mi==="a"&&Br.on("attribute:linkHref:imageBlock",(Ni,no,vo)=>{if(!vo.consumable.consume(no.item,"attribute:htmlLinkAttributes:imageBlock"))return;const Qo=vo.mapper.toViewElement(no.item),No=ko(vo.writer,Qo,"a");di(vo.writer,no.item.getAttribute("htmlLinkAttributes"),No)},{priority:"low"})}Yr("htmlAttributes"),Oi("img","htmlAttributes"),Oi("figure","htmlFigureAttributes"),Oi("a","htmlLinkAttributes")}),lr.stop())})}}function ko(Pt,st,nn){const Un=Pt.createRangeOn(st);for(const{item:or}of Un.getWalker())if(or.is("element",nn))return or}class fc extends c.Plugin{static get requires(){return[Us]}static get pluginName(){return"MediaEmbedElementSupport"}init(){const st=this.editor;if(!st.plugins.has("MediaEmbed")||st.config.get("mediaEmbed.previewsInData"))return;const nn=st.model.schema,Un=st.conversion,or=this.editor.plugins.get(Us),lr=this.editor.plugins.get(Gt),jr=st.config.get("mediaEmbed.elementName");lr.registerBlockElement({model:"media",view:jr}),or.on("register:figure",()=>{Un.for("upcast").add(function(Br){return Yr=>{Yr.on("element:figure",(Oi,Mi,eo)=>{const Ni=Mi.viewItem;if(!Mi.modelRange||!Ni.hasClass("media"))return;const no=Br.processViewAttributes(Ni,eo);no&&eo.writer.setAttribute("htmlFigureAttributes",no,Mi.modelRange)},{priority:"low"})}}(or))}),or.on(`register:${jr}`,(Br,Yr)=>{Yr.model==="media"&&(nn.extend("media",{allowAttributes:["htmlAttributes","htmlFigureAttributes"]}),Un.for("upcast").add(function(Oi,Mi){return Ni=>{Ni.on(`element:${Mi}`,eo,{priority:"low"})};function eo(Ni,no,vo){function Qo(No,ps){const ba=Oi.processViewAttributes(No,vo);ba&&vo.writer.setAttribute(ps,ba,no.modelRange)}Qo(no.viewItem,"htmlAttributes")}}(or,jr)),Un.for("dataDowncast").add(function(Oi){return Mi=>{function eo(Ni,no){Mi.on(`attribute:${no}:media`,(vo,Qo,No)=>{if(!No.consumable.consume(Qo.item,vo.name))return;const{attributeOldValue:ps,attributeNewValue:ba}=Qo,Fc=No.mapper.toViewElement(Qo.item),cl=function(Kc,lu,Ia){const Gc=Kc.createRangeOn(lu);for(const{item:Jl}of Gc.getWalker())if(Jl.is("element",Ia))return Jl}(No.writer,Fc,Ni);qr(No.writer,ps,ba,cl)})}eo(Oi,"htmlAttributes"),eo("figure","htmlFigureAttributes")}}(jr)),Br.stop())})}}class pc extends c.Plugin{static get requires(){return[Us]}static get pluginName(){return"ScriptElementSupport"}init(){const st=this.editor.plugins.get(Us);st.on("register:script",(nn,Un)=>{const or=this.editor,lr=or.model.schema,jr=or.conversion;lr.register("htmlScript",Un.modelSchema),lr.extend("htmlScript",{allowAttributes:["htmlAttributes","htmlContent"],isContent:!0}),or.data.registerRawContentMatcher({name:"script"}),jr.for("upcast").elementToElement({view:"script",model:Ri(Un)}),jr.for("upcast").add(Ro(Un,st)),jr.for("downcast").elementToElement({model:"htmlScript",view:(Br,{writer:Yr})=>so("script",Br,Yr)}),jr.for("downcast").add(Rs(Un)),nn.stop()})}}class rc extends c.Plugin{static get requires(){return[Us]}static get pluginName(){return"TableElementSupport"}init(){const st=this.editor;if(!st.plugins.has("TableEditing"))return;const nn=st.model.schema,Un=st.conversion,or=st.plugins.get(Us);or.on("register:figure",()=>{Un.for("upcast").add(function(lr){return jr=>{jr.on("element:figure",(Br,Yr,Oi)=>{const Mi=Yr.viewItem;if(!Yr.modelRange||!Mi.hasClass("table"))return;const eo=lr.processViewAttributes(Mi,Oi);eo&&Oi.writer.setAttribute("htmlFigureAttributes",eo,Yr.modelRange)},{priority:"low"})}}(or))}),or.on("register:table",(lr,jr)=>{jr.model==="table"&&(nn.extend("table",{allowAttributes:["htmlAttributes","htmlFigureAttributes","htmlTheadAttributes","htmlTbodyAttributes"]}),Un.for("upcast").add(function(Br){return Yr=>{Yr.on("element:table",(Oi,Mi,eo)=>{const Ni=Mi.viewItem;no(Ni,"htmlAttributes");for(const vo of Ni.getChildren())vo.is("element","thead")&&no(vo,"htmlTheadAttributes"),vo.is("element","tbody")&&no(vo,"htmlTbodyAttributes");function no(vo,Qo){const No=Br.processViewAttributes(vo,eo);No&&eo.writer.setAttribute(Qo,No,Mi.modelRange)}},{priority:"low"})}}(or)),Un.for("downcast").add(Br=>{function Yr(Oi,Mi){Br.on(`attribute:${Mi}:table`,(eo,Ni,no)=>{if(!no.consumable.consume(Ni.item,eo.name))return;const vo=no.mapper.toViewElement(Ni.item),Qo=function(No,ps,ba){const Fc=No.createRangeOn(ps);for(const{item:cl}of Fc.getWalker())if(cl.is("element",ba))return cl}(no.writer,vo,Oi);di(no.writer,Ni.attributeNewValue,Qo)})}Yr("table","htmlAttributes"),Yr("figure","htmlFigureAttributes"),Yr("thead","htmlTheadAttributes"),Yr("tbody","htmlTbodyAttributes")}),lr.stop())})}}class Ic extends c.Plugin{static get requires(){return[Us]}static get pluginName(){return"StyleElementSupport"}init(){const st=this.editor.plugins.get(Us);st.on("register:style",(nn,Un)=>{const or=this.editor,lr=or.model.schema,jr=or.conversion;lr.register("htmlStyle",Un.modelSchema),lr.extend("htmlStyle",{allowAttributes:["htmlAttributes","htmlContent"],isContent:!0}),or.data.registerRawContentMatcher({name:"style"}),jr.for("upcast").elementToElement({view:"style",model:Ri(Un)}),jr.for("upcast").add(Ro(Un,st)),jr.for("downcast").elementToElement({model:"htmlStyle",view:(Br,{writer:Yr})=>so("style",Br,Yr)}),jr.for("downcast").add(Rs(Un)),nn.stop()})}}var su="__lodash_hash_undefined__";const Rc=function(Pt){return this.__data__.set(Pt,su),this},El=function(Pt){return this.__data__.has(Pt)};function Nl(Pt){var st=-1,nn=Pt==null?0:Pt.length;for(this.__data__=new yn;++st<nn;)this.add(Pt[st])}Nl.prototype.add=Nl.prototype.push=Rc,Nl.prototype.has=El;const ud=Nl,au=function(Pt,st){for(var nn=-1,Un=Pt==null?0:Pt.length;++nn<Un;)if(st(Pt[nn],nn,Pt))return!0;return!1},Lc=function(Pt,st){return Pt.has(st)};var zu=1,mc=2;const ol=function(Pt,st,nn,Un,or,lr){var jr=nn&zu,Br=Pt.length,Yr=st.length;if(Br!=Yr&&!(jr&&Yr>Br))return!1;var Oi=lr.get(Pt),Mi=lr.get(st);if(Oi&&Mi)return Oi==st&&Mi==Pt;var eo=-1,Ni=!0,no=nn&mc?new ud:void 0;for(lr.set(Pt,st),lr.set(st,Pt);++eo<Br;){var vo=Pt[eo],Qo=st[eo];if(Un)var No=jr?Un(Qo,vo,eo,st,Pt,lr):Un(vo,Qo,eo,Pt,st,lr);if(No!==void 0){if(No)continue;Ni=!1;break}if(no){if(!au(st,function(ps,ba){if(!Lc(no,ba)&&(vo===ps||or(vo,ps,nn,Un,lr)))return no.push(ba)})){Ni=!1;break}}else if(vo!==Qo&&!or(vo,Qo,nn,Un,lr)){Ni=!1;break}}return lr.delete(Pt),lr.delete(st),Ni},gc=function(Pt){var st=-1,nn=Array(Pt.size);return Pt.forEach(function(Un,or){nn[++st]=[or,Un]}),nn},Fl=function(Pt){var st=-1,nn=Array(Pt.size);return Pt.forEach(function(Un){nn[++st]=Un}),nn};var jn=1,Qa=2,jc="[object Boolean]",Fa="[object Date]",Go="[object Error]",Tc="[object Map]",Zc="[object Number]",sl="[object RegExp]",$s="[object Set]",xs="[object String]",cs="[object Symbol]",hs="[object ArrayBuffer]",Gl="[object DataView]",As=H?H.prototype:void 0,fs=As?As.valueOf:void 0;const $a=function(Pt,st,nn,Un,or,lr,jr){switch(nn){case Gl:if(Pt.byteLength!=st.byteLength||Pt.byteOffset!=st.byteOffset)return!1;Pt=Pt.buffer,st=st.buffer;case hs:return!(Pt.byteLength!=st.byteLength||!lr(new Yn(Pt),new Yn(st)));case jc:case Fa:case Zc:return M(+Pt,+st);case Go:return Pt.name==st.name&&Pt.message==st.message;case sl:case xs:return Pt==st+"";case Tc:var Br=gc;case $s:var Yr=Un&jn;if(Br||(Br=Fl),Pt.size!=st.size&&!Yr)return!1;var Oi=jr.get(Pt);if(Oi)return Oi==st;Un|=Qa,jr.set(Pt,st);var Mi=ol(Br(Pt),Br(st),Un,or,lr,jr);return jr.delete(Pt),Mi;case cs:if(fs)return fs.call(Pt)==fs.call(st)}return!1};var al=1,Vs=Object.prototype.hasOwnProperty;const Hs=function(Pt,st,nn,Un,or,lr){var jr=nn&al,Br=Cs(Pt),Yr=Br.length;if(Yr!=Cs(st).length&&!jr)return!1;for(var Oi=Yr;Oi--;){var Mi=Br[Oi];if(!(jr?Mi in st:Vs.call(st,Mi)))return!1}var eo=lr.get(Pt),Ni=lr.get(st);if(eo&&Ni)return eo==st&&Ni==Pt;var no=!0;lr.set(Pt,st),lr.set(st,Pt);for(var vo=jr;++Oi<Yr;){var Qo=Pt[Mi=Br[Oi]],No=st[Mi];if(Un)var ps=jr?Un(No,Qo,Mi,st,Pt,lr):Un(Qo,No,Mi,Pt,st,lr);if(!(ps===void 0?Qo===No||or(Qo,No,nn,Un,lr):ps)){no=!1;break}vo||(vo=Mi=="constructor")}if(no&&!vo){var ba=Pt.constructor,Fc=st.constructor;ba==Fc||!("constructor"in Pt)||!("constructor"in st)||typeof ba=="function"&&ba instanceof ba&&typeof Fc=="function"&&Fc instanceof Fc||(no=!1)}return lr.delete(Pt),lr.delete(st),no};var ka=1,kl="[object Arguments]",la="[object Array]",rs="[object Object]",ic=Object.prototype.hasOwnProperty;const Mu=function(Pt,st,nn,Un,or,lr){var jr=Te(Pt),Br=Te(st),Yr=jr?la:ui(Pt),Oi=Br?la:ui(st),Mi=(Yr=Yr==kl?rs:Yr)==rs,eo=(Oi=Oi==kl?rs:Oi)==rs,Ni=Yr==Oi;if(Ni&&Cn(Pt)){if(!Cn(st))return!1;jr=!0,Mi=!1}if(Ni&&!Mi)return lr||(lr=new rr),jr||oi(Pt)?ol(Pt,st,nn,Un,or,lr):$a(Pt,st,Yr,nn,Un,or,lr);if(!(nn&ka)){var no=Mi&&ic.call(Pt,"__wrapped__"),vo=eo&&ic.call(st,"__wrapped__");if(no||vo){var Qo=no?Pt.value():Pt,No=vo?st.value():st;return lr||(lr=new rr),or(Qo,No,nn,Un,lr)}}return!!Ni&&(lr||(lr=new rr),Hs(Pt,st,nn,Un,or,lr))},Sd=function Pt(st,nn,Un,or,lr){return st===nn||(st==null||nn==null||!ii(st)&&!ii(nn)?st!=st&&nn!=nn:Mu(st,nn,Un,or,Pt,lr))},Bc=function(Pt,st){return Sd(Pt,st)};class dd extends c.Plugin{static get requires(){return[Us]}static get pluginName(){return"DocumentListElementSupport"}init(){const st=this.editor;if(!st.plugins.has("DocumentListEditing"))return;const nn=st.model.schema,Un=st.conversion,or=st.plugins.get(Us),lr=st.plugins.get("DocumentListEditing");lr.registerDowncastStrategy({scope:"item",attributeName:"htmlLiAttributes",setAttributeOnDowncast(jr,Br,Yr){di(jr,Br,Yr)}}),lr.registerDowncastStrategy({scope:"list",attributeName:"htmlListAttributes",setAttributeOnDowncast(jr,Br,Yr){di(jr,Br,Yr)}}),or.on("register",(jr,Br)=>{["ul","ol","li"].includes(Br.view)&&(jr.stop(),nn.checkAttribute("$block","htmlListAttributes")||(nn.extend("$block",{allowAttributes:["htmlListAttributes","htmlLiAttributes"]}),nn.extend("$blockObject",{allowAttributes:["htmlListAttributes","htmlLiAttributes"]}),nn.extend("$container",{allowAttributes:["htmlListAttributes","htmlLiAttributes"]}),Un.for("upcast").add(Yr=>{Yr.on("element:ul",Ha("htmlListAttributes",or),{priority:"low"}),Yr.on("element:ol",Ha("htmlListAttributes",or),{priority:"low"}),Yr.on("element:li",Ha("htmlLiAttributes",or),{priority:"low"})})))}),lr.on("postFixer",(jr,{listNodes:Br,writer:Yr})=>{const Oi=[];for(const{node:Mi,previous:eo}of Br){if(!eo)continue;const Ni=Mi.getAttribute("listIndent"),no=eo.getAttribute("listIndent");let vo=null;if(Ni>no?Oi[no]=eo:Ni<no?(vo=Oi[Ni],Oi.length=Ni):vo=eo,vo){if(vo.getAttribute("listType")==Mi.getAttribute("listType")){const Qo=vo.getAttribute("htmlListAttributes");Bc(Mi.getAttribute("htmlListAttributes"),Qo)||(Yr.setAttribute("htmlListAttributes",Qo,Mi),jr.return=!0)}if(vo.getAttribute("listItemId")==Mi.getAttribute("listItemId")){const Qo=vo.getAttribute("htmlLiAttributes");Bc(Mi.getAttribute("htmlLiAttributes"),Qo)||(Yr.setAttribute("htmlLiAttributes",Qo,Mi),jr.return=!0)}}}})}afterInit(){const st=this.editor;st.commands.get("indentList")&&this.listenTo(st.commands.get("indentList"),"afterExecute",(nn,Un)=>{st.model.change(or=>{for(const lr of Un)or.setAttribute("htmlListAttributes",{},lr)})})}}function Ha(Pt,st){return(nn,Un,or)=>{const lr=Un.viewItem;Un.modelRange||Object.assign(Un,or.convertChildren(Un.viewItem,Un.modelCursor));const jr=st.processViewAttributes(lr,or);for(const Br of Un.modelRange.getItems({shallow:!0}))Br.hasAttribute("listItemId")&&(Br.hasAttribute(Pt)||or.writer.setAttribute(Pt,jr||{},Br))}}class ll extends c.Plugin{static get requires(){return[Us,Gt]}static get pluginName(){return"CustomElementSupport"}init(){const st=this.editor.plugins.get(Us),nn=this.editor.plugins.get(Gt);st.on("register:$customElement",(Un,or)=>{Un.stop();const lr=this.editor,jr=lr.model.schema,Br=lr.conversion,Yr=lr.editing.view.domConverter.unsafeElements,Oi=lr.data.htmlProcessor.domConverter.preElements;jr.register(or.model,or.modelSchema),jr.extend(or.model,{allowAttributes:["htmlElementName","htmlAttributes","htmlContent"],isContent:!0}),Br.for("upcast").elementToElement({view:/.*/,model:(Mi,eo)=>{if(Mi.name=="$comment"||!function(No){try{document.createElement(No)}catch{return!1}return!0}(Mi.name)||nn.getDefinitionsForView(Mi.name).size)return;Yr.includes(Mi.name)||Yr.push(Mi.name),Oi.includes(Mi.name)||Oi.push(Mi.name);const Ni=eo.writer.createElement(or.model,{htmlElementName:Mi.name}),no=st.processViewAttributes(Mi,eo);no&&eo.writer.setAttribute("htmlAttributes",no,Ni);const vo=new We.UpcastWriter(Mi.document).createDocumentFragment(Mi),Qo=lr.data.processor.toData(vo);eo.writer.setAttribute("htmlContent",Qo,Ni);for(const{item:No}of lr.editing.view.createRangeIn(Mi))eo.consumable.consume(No,{name:!0});return Ni},converterPriority:"low"}),Br.for("editingDowncast").elementToElement({model:{name:or.model,attributes:["htmlElementName","htmlAttributes","htmlContent"]},view:(Mi,{writer:eo})=>{const Ni=Mi.getAttribute("htmlElementName"),no=eo.createRawElement(Ni);return Mi.hasAttribute("htmlAttributes")&&di(eo,Mi.getAttribute("htmlAttributes"),no),no}}),Br.for("dataDowncast").elementToElement({model:{name:or.model,attributes:["htmlElementName","htmlAttributes","htmlContent"]},view:(Mi,{writer:eo})=>{const Ni=Mi.getAttribute("htmlElementName"),no=Mi.getAttribute("htmlContent"),vo=eo.createRawElement(Ni,null,(Qo,No)=>{No.setContentOf(Qo,no);const ps=Qo.firstChild;for(ps.remove();ps.firstChild;)Qo.appendChild(ps.firstChild)});return Mi.hasAttribute("htmlAttributes")&&di(eo,Mi.getAttribute("htmlAttributes"),vo),vo}})})}}class Nc extends c.Plugin{static get pluginName(){return"GeneralHtmlSupport"}static get requires(){return[Us,js,jl,Bl,il,fc,pc,rc,Ic,dd,ll]}init(){const st=this.editor,nn=st.plugins.get(Us);nn.loadAllowedConfig(st.config.get("htmlSupport.allow")||[]),nn.loadDisallowedConfig(st.config.get("htmlSupport.disallow")||[])}getGhsAttributeNameForElement(st){const nn=this.editor.plugins.get("DataSchema"),Un=Array.from(nn.getDefinitionsForView(st,!1));return Un&&Un.length&&Un[0].isInline&&!Un[0].isObject?Un[0].model:"htmlAttributes"}addModelHtmlClass(st,nn,Un){const or=this.editor.model,lr=this.getGhsAttributeNameForElement(st);or.change(jr=>{for(const Br of Va(or,Un,lr))Ca(jr,Br,lr,"classes",Yr=>{for(const Oi of(0,h.toArray)(nn))Yr.add(Oi)})})}removeModelHtmlClass(st,nn,Un){const or=this.editor.model,lr=this.getGhsAttributeNameForElement(st);or.change(jr=>{for(const Br of Va(or,Un,lr))Ca(jr,Br,lr,"classes",Yr=>{for(const Oi of(0,h.toArray)(nn))Yr.delete(Oi)})})}setModelHtmlAttributes(st,nn,Un){const or=this.editor.model,lr=this.getGhsAttributeNameForElement(st);or.change(jr=>{for(const Br of Va(or,Un,lr))Ca(jr,Br,lr,"attributes",Yr=>{for(const[Oi,Mi]of Object.entries(nn))Yr.set(Oi,Mi)})})}removeModelHtmlAttributes(st,nn,Un){const or=this.editor.model,lr=this.getGhsAttributeNameForElement(st);or.change(jr=>{for(const Br of Va(or,Un,lr))Ca(jr,Br,lr,"attributes",Yr=>{for(const Oi of(0,h.toArray)(nn))Yr.delete(Oi)})})}setModelHtmlStyles(st,nn,Un){const or=this.editor.model,lr=this.getGhsAttributeNameForElement(st);or.change(jr=>{for(const Br of Va(or,Un,lr))Ca(jr,Br,lr,"styles",Yr=>{for(const[Oi,Mi]of Object.entries(nn))Yr.set(Oi,Mi)})})}removeModelHtmlStyles(st,nn,Un){const or=this.editor.model,lr=this.getGhsAttributeNameForElement(st);or.change(jr=>{for(const Br of Va(or,Un,lr))Ca(jr,Br,lr,"styles",Yr=>{for(const Oi of(0,h.toArray)(nn))Yr.delete(Oi)})})}}function*Va(Pt,st,nn){if(st.is("documentSelection")&&st.isCollapsed)Pt.schema.checkAttributeInSelection(st,nn)&&(yield st);else for(const Un of function(or,lr,jr){return lr.is("node")||lr.is("$text")||lr.is("$textProxy")?or.schema.checkAttribute(lr,jr)?[or.createRangeOn(lr)]:[]:or.schema.getValidRanges(or.createSelection(lr).getRanges(),jr)}(Pt,st,nn))yield*Un.getItems({shallow:!0})}function Ca(Pt,st,nn,Un,or){const lr=st.getAttribute(nn),jr={};for(const Br of["attributes","styles","classes"])if(Br!=Un)lr&&lr[Br]&&(jr[Br]=lr[Br]);else{const Yr=Br=="classes"?new Set(lr&&lr[Br]||[]):new Map(Object.entries(lr&&lr[Br]||{}));or(Yr),Yr.size&&(jr[Br]=Br=="classes"?Array.from(Yr):Object.fromEntries(Yr))}Object.keys(jr).length?st.is("documentSelection")?Pt.setSelectionAttribute(nn,jr):Pt.setAttribute(nn,jr,st):lr&&(st.is("documentSelection")?Pt.removeSelectionAttribute(nn):Pt.removeAttribute(nn,st))}class Ps extends c.Plugin{static get pluginName(){return"HtmlComment"}init(){const st=this.editor;st.data.processor.skipComments=!1,st.model.schema.addAttributeCheck((nn,Un)=>{if(nn.endsWith("$root")&&Un.startsWith("$comment"))return!0}),st.conversion.for("upcast").elementToMarker({view:"$comment",model:(nn,{writer:Un})=>{const or=this.editor.model.document.getRoot(),lr=nn.getCustomProperty("$rawContent"),jr=`$comment:${(0,h.uid)()}`;return Un.setAttribute(jr,lr,or),jr}}),st.conversion.for("dataDowncast").markerToElement({model:"$comment",view:(nn,{writer:Un})=>{const or=this.editor.model.document.getRoot(),lr=nn.markerName,jr=or.getAttribute(lr),Br=Un.createUIElement("$comment");return Un.setCustomProperty("$rawContent",jr,Br),Br}}),st.model.document.registerPostFixer(nn=>{const Un=st.model.document.getRoot(),or=st.model.document.differ.getChangedMarkers().filter(lr=>lr.name.startsWith("$comment")).filter(lr=>{const jr=lr.data.newRange;return jr&&jr.root.rootName==="$graveyard"});if(or.length===0)return!1;for(const lr of or)nn.removeMarker(lr.name),nn.removeAttribute(lr.name,Un);return!0}),st.data.on("set",()=>{for(const nn of st.model.markers.getMarkersGroup("$comment"))this.removeHtmlComment(nn.name)},{priority:"high"}),st.model.on("deleteContent",(nn,[Un])=>{for(const or of Un.getRanges()){const lr=st.model.schema.getLimitElement(or),jr=st.model.createPositionAt(lr,0),Br=st.model.createPositionAt(lr,"end");let Yr;Yr=jr.isTouching(or.start)&&Br.isTouching(or.end)?this.getHtmlCommentsInRange(st.model.createRange(jr,Br)):this.getHtmlCommentsInRange(or,{skipBoundaries:!0});for(const Oi of Yr)this.removeHtmlComment(Oi)}},{priority:"high"})}createHtmlComment(st,nn){const Un=(0,h.uid)(),or=this.editor.model,lr=or.document.getRoot(),jr=`$comment:${Un}`;return or.change(Br=>{const Yr=Br.createRange(st);return Br.addMarker(jr,{usingOperation:!0,affectsData:!0,range:Yr}),Br.setAttribute(jr,nn,lr),jr})}removeHtmlComment(st){const nn=this.editor,Un=nn.model.document.getRoot(),or=nn.model.markers.get(st);return!!or&&(nn.model.change(lr=>{lr.removeMarker(or),lr.removeAttribute(st,Un)}),!0)}getHtmlCommentData(st){const nn=this.editor,Un=nn.model.markers.get(st),or=nn.model.document.getRoot();return Un?{content:or.getAttribute(st),position:Un.getStart()}:null}getHtmlCommentsInRange(st,{skipBoundaries:nn=!1}={}){const Un=!nn;return Array.from(this.editor.model.markers.getMarkersGroup("$comment")).filter(or=>function(lr,jr){const Br=lr.getRange().start;return(Br.isAfter(jr.start)||Un&&Br.isEqual(jr.start))&&(Br.isBefore(jr.end)||Un&&Br.isEqual(jr.end))}(or,st)).map(or=>or.name)}}class Yl extends We.HtmlDataProcessor{toView(st){if(!st.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i))return super.toView(st);let nn="",Un="";st=(st=st.replace(/<!DOCTYPE[^>]*>/i,Br=>(nn=Br,""))).replace(/<\?xml\s[^?]*\?>/i,Br=>(Un=Br,""));const or=this._toDom(st),lr=this.domConverter.domToView(or,{skipComments:this.skipComments}),jr=new We.UpcastWriter(lr.document);return jr.setCustomProperty("$fullPageDocument",or.ownerDocument.documentElement.outerHTML,lr),nn&&jr.setCustomProperty("$fullPageDocType",nn,lr),Un&&jr.setCustomProperty("$fullPageXmlDeclaration",Un,lr),lr}toData(st){let nn=super.toData(st);const Un=st.getCustomProperty("$fullPageDocument"),or=st.getCustomProperty("$fullPageDocType"),lr=st.getCustomProperty("$fullPageXmlDeclaration");return Un&&(nn=Un.replace(/<\/body\s*>/,nn+"$&"),or&&(nn=or+`
`+nn),lr&&(nn=lr+`
`+nn)),nn}}class Ql extends c.Plugin{static get pluginName(){return"FullPage"}init(){const st=this.editor,nn=["$fullPageDocument","$fullPageDocType","$fullPageXmlDeclaration"];st.data.processor=new Yl(st.data.viewDocument),st.model.schema.extend("$root",{allowAttributes:nn}),st.data.on("toModel",(Un,[or])=>{const lr=st.model.document.getRoot();st.model.change(jr=>{for(const Br of nn){const Yr=or.getCustomProperty(Br);Yr&&jr.setAttribute(Br,Yr,lr)}})},{priority:"low"}),st.data.on("toView",(Un,[or])=>{if(!or.is("rootElement"))return;const lr=or,jr=Un.return;if(!lr.hasAttribute("$fullPageDocument"))return;const Br=new We.UpcastWriter(jr.document);for(const Yr of nn){const Oi=lr.getAttribute(Yr);Oi&&Br.setCustomProperty(Yr,Oi,jr)}},{priority:"low"}),st.data.on("set",()=>{const Un=st.model.document.getRoot();st.model.change(or=>{for(const lr of nn)Un.hasAttribute(lr)&&or.removeAttribute(lr,Un)})},{priority:"high"}),st.data.on("get",(Un,or)=>{or[0]||(or[0]={}),or[0].trim=!1},{priority:"high"})}}})(),(window.CKEditor5=window.CKEditor5||{}).htmlSupport=a})()},11093:()=>{(function(Z){const v=Z.en=Z.en||{};v.dictionary=Object.assign(v.dictionary||{},{"Break text":"Break text","Caption for image: %0":"Caption for image: %0","Caption for the image":"Caption for the image","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Enter image caption":"Enter image caption","Full size image":"Full size image","Image resize list":"Image resize list","Image toolbar":"Image toolbar","image widget":"image widget","In line":"In line",Insert:"Insert","Insert image":"Insert image","Insert image via URL":"Insert image via URL","Left aligned image":"Left aligned image",Original:"Original","Resize image":"Resize image","Resize image to %0":"Resize image to %0","Resize image to the original size":"Resize image to the original size","Right aligned image":"Right aligned image","Side image":"Side image","Text alternative":"Text alternative",Update:"Update","Update image URL":"Update image URL","Upload failed":"Upload failed","Wrap text":"Wrap text"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),(()=>{var Z={540:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,".ck-content .image{clear:both;display:table;margin:.9em auto;min-width:50px;text-align:center}.ck-content .image img{display:block;margin:0 auto;max-width:100%;min-width:100%}.ck-content .image-inline{align-items:flex-start;display:inline-flex;max-width:100%}.ck-content .image-inline picture{display:flex}.ck-content .image-inline img,.ck-content .image-inline picture{flex-grow:1;flex-shrink:1;max-width:100%}.ck.ck-editor__editable .image>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}.ck.ck-editor__editable .image-inline.ck-widget_selected,.ck.ck-editor__editable .image.ck-widget_selected{z-index:1}.ck.ck-editor__editable .image-inline.ck-widget_selected ::selection{display:none}.ck.ck-editor__editable td .image-inline img,.ck.ck-editor__editable th .image-inline img{max-width:none}",""]);const p=h},560:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,":root{--ck-color-image-caption-background:#f7f7f7;--ck-color-image-caption-text:#333;--ck-color-image-caption-highligted-background:#fd0}.ck-content .image>figcaption{background-color:var(--ck-color-image-caption-background);caption-side:bottom;color:var(--ck-color-image-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;word-break:break-word}.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:ck-image-caption-highlight .6s ease-out}@keyframes ck-image-caption-highlight{0%{background-color:var(--ck-color-image-caption-highligted-background)}to{background-color:var(--ck-color-image-caption-background)}}",""]);const p=h},91:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,".ck.ck-image-insert__panel{padding:var(--ck-spacing-large)}.ck.ck-image-insert__ck-finder-button{border:1px solid #ccc;border-radius:var(--ck-border-radius);display:block;margin:var(--ck-spacing-standard) auto;width:100%}.ck.ck-splitbutton>.ck-file-dialog-button.ck-button{border:none;margin:0;padding:0}",""]);const p=h},439:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,".ck.ck-image-insert-form:focus{outline:none}.ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-image-insert-form__action-row{margin-top:var(--ck-spacing-standard)}.ck.ck-form__row.ck-image-insert-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-image-insert-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row.ck-image-insert-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}",""]);const p=h},601:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,".ck-content .image.image_resized{box-sizing:border-box;display:block;max-width:100%}.ck-content .image.image_resized img{width:100%}.ck-content .image.image_resized>figcaption{display:block}.ck.ck-editor__editable td .image-inline.image_resized img,.ck.ck-editor__editable th .image-inline.image_resized img{max-width:100%}[dir=ltr] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-left:var(--ck-spacing-standard)}.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label{width:4em}",""]);const p=h},29:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,":root{--ck-image-style-spacing:1.5em;--ck-inline-image-style-spacing:calc(var(--ck-image-style-spacing)/2)}.ck-content .image-style-block-align-left,.ck-content .image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image-style-align-left,.ck-content .image-style-align-right{clear:none}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image-style-block-align-right{margin-left:auto;margin-right:0}.ck-content .image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content p+.image-style-align-left,.ck-content p+.image-style-align-right,.ck-content p+.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-bottom:var(--ck-inline-image-style-spacing);margin-top:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}",""]);const p=h},948:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,'.ck-image-upload-complete-icon{border-radius:50%;display:block;position:absolute;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);z-index:1}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20;--ck-image-upload-icon-width:2px;--ck-image-upload-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck-image-upload-complete-icon{animation-delay:0ms,3s;animation-duration:.5s,.5s;animation-fill-mode:forwards,forwards;animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;background:var(--ck-color-image-upload-icon-background);font-size:calc(1px*var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size));opacity:0;overflow:hidden;width:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size))}.ck-image-upload-complete-icon:after{animation-delay:.5s;animation-duration:.5s;animation-fill-mode:forwards;animation-name:ck-upload-complete-icon-check;border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);box-sizing:border-box;height:0;left:25%;opacity:0;top:50%;transform:scaleX(-1) rotate(135deg);transform-origin:left top;width:0}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{height:0;opacity:1;width:0}33%{height:0;width:.3em}to{height:.45em;opacity:1;width:.3em}}',""]);const p=h},467:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,'.ck .ck-upload-placeholder-loader{align-items:center;display:flex;justify-content:center;left:0;position:absolute;top:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px;--ck-upload-placeholder-image-aspect-ratio:2.8}.ck .ck-image-upload-placeholder{margin:0;width:100%}.ck .ck-image-upload-placeholder.image-inline{width:calc(var(--ck-upload-placeholder-loader-size)*2*var(--ck-upload-placeholder-image-aspect-ratio))}.ck .ck-image-upload-placeholder img{aspect-ratio:var(--ck-upload-placeholder-image-aspect-ratio)}.ck .ck-upload-placeholder-loader{height:100%;width:100%}.ck .ck-upload-placeholder-loader:before{animation:ck-upload-placeholder-loader 1s linear infinite;border-radius:50%;border-right:2px solid transparent;border-top:3px solid var(--ck-color-upload-placeholder-loader);height:var(--ck-upload-placeholder-loader-size);width:var(--ck-upload-placeholder-loader-size)}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}',""]);const p=h},271:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,".ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline{position:relative}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{left:0;position:absolute;top:0}.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{background:var(--ck-color-upload-bar-background);height:2px;transition:width .1s;width:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}",""]);const p=h},168:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}",""]);const p=h},764:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',""]);const p=h},609:n=>{"use strict";n.exports=function(s){var a=[];return a.toString=function(){return this.map(function(c){var h=s(c);return c[2]?"@media ".concat(c[2]," {").concat(h,"}"):h}).join("")},a.i=function(c,h,p){typeof c=="string"&&(c=[[null,c,""]]);var d={};if(p)for(var k=0;k<this.length;k++){var M=this[k][0];M!=null&&(d[M]=!0)}for(var C=0;C<c.length;C++){var w=[].concat(c[C]);p&&d[w[0]]||(h&&(w[2]?w[2]="".concat(h," and ").concat(w[2]):w[2]=h),a.push(w))}},a}},62:(n,s,a)=>{"use strict";var c,h=function(){return c===void 0&&(c=Boolean(window&&document&&document.all&&!window.atob)),c},p=function(){var x={};return function(T){if(x[T]===void 0){var u=document.querySelector(T);if(window.HTMLIFrameElement&&u instanceof window.HTMLIFrameElement)try{u=u.contentDocument.head}catch{u=null}x[T]=u}return x[T]}}(),d=[];function k(x){for(var T=-1,u=0;u<d.length;u++)if(d[u].identifier===x){T=u;break}return T}function M(x,T){for(var u={},b=[],E=0;E<x.length;E++){var A=x[E],R=T.base?A[0]+T.base:A[0],H=u[R]||0,z="".concat(R," ").concat(H);u[R]=H+1;var V=k(z),$={css:A[1],media:A[2],sourceMap:A[3]};V!==-1?(d[V].references++,d[V].updater($)):d.push({identifier:z,updater:D($,T),references:1}),b.push(z)}return b}function C(x){var T=document.createElement("style"),u=x.attributes||{};if(u.nonce===void 0){var b=a.nc;b&&(u.nonce=b)}if(Object.keys(u).forEach(function(A){T.setAttribute(A,u[A])}),typeof x.insert=="function")x.insert(T);else{var E=p(x.insert||"head");if(!E)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");E.appendChild(T)}return T}var w,I=(w=[],function(x,T){return w[x]=T,w.filter(Boolean).join(`
`)});function F(x,T,u,b){var E=u?"":b.media?"@media ".concat(b.media," {").concat(b.css,"}"):b.css;if(x.styleSheet)x.styleSheet.cssText=I(T,E);else{var A=document.createTextNode(E),R=x.childNodes;R[T]&&x.removeChild(R[T]),R.length?x.insertBefore(A,R[T]):x.appendChild(A)}}function U(x,T,u){var b=u.css,E=u.media,A=u.sourceMap;if(E?x.setAttribute("media",E):x.removeAttribute("media"),A&&typeof btoa<"u"&&(b+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(A))))," */")),x.styleSheet)x.styleSheet.cssText=b;else{for(;x.firstChild;)x.removeChild(x.firstChild);x.appendChild(document.createTextNode(b))}}var B=null,N=0;function D(x,T){var u,b,E;if(T.singleton){var A=N++;u=B||(B=C(T)),b=F.bind(null,u,A,!1),E=F.bind(null,u,A,!0)}else u=C(T),b=U.bind(null,u,T),E=function(){(function(R){if(R.parentNode===null)return!1;R.parentNode.removeChild(R)})(u)};return b(x),function(R){if(R){if(R.css===x.css&&R.media===x.media&&R.sourceMap===x.sourceMap)return;b(x=R)}else E()}}n.exports=function(x,T){(T=T||{}).singleton||typeof T.singleton=="boolean"||(T.singleton=h());var u=M(x=x||[],T);return function(b){if(b=b||[],Object.prototype.toString.call(b)==="[object Array]"){for(var E=0;E<u.length;E++){var A=k(u[E]);d[A].references--}for(var R=M(b,T),H=0;H<u.length;H++){var z=k(u[H]);d[z].references===0&&(d[z].updater(),d.splice(z,1))}u=R}}}},945:(n,s,a)=>{n.exports=a(79)("./src/clipboard.js")},704:(n,s,a)=>{n.exports=a(79)("./src/core.js")},492:(n,s,a)=>{n.exports=a(79)("./src/engine.js")},181:(n,s,a)=>{n.exports=a(79)("./src/typing.js")},273:(n,s,a)=>{n.exports=a(79)("./src/ui.js")},254:(n,s,a)=>{n.exports=a(79)("./src/undo.js")},448:(n,s,a)=>{n.exports=a(79)("./src/upload.js")},209:(n,s,a)=>{n.exports=a(79)("./src/utils.js")},995:(n,s,a)=>{n.exports=a(79)("./src/widget.js")},79:n=>{"use strict";n.exports=CKEditor5.dll}},v={};function t(n){var s=v[n];if(s!==void 0)return s.exports;var a=v[n]={id:n,exports:{}};return Z[n](a,a.exports,t),a.exports}t.n=n=>{var s=n&&n.__esModule?()=>n.default:()=>n;return t.d(s,{a:s}),s},t.d=(n,s)=>{for(var a in s)t.o(s,a)&&!t.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:s[a]})},t.o=(n,s)=>Object.prototype.hasOwnProperty.call(n,s),t.r=n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.nc=void 0;var r={};(()=>{"use strict";t.r(r),t.d(r,{AutoImage:()=>U,Image:()=>Ce,ImageCaption:()=>Qe,ImageCaptionEditing:()=>mt,ImageCaptionUtils:()=>Ne,ImageEditing:()=>pe,ImageInsert:()=>yn,ImageInsertUI:()=>Vt,ImageResize:()=>Et,ImageResizeButtons:()=>rr,ImageResizeEditing:()=>hr,ImageResizeHandles:()=>li,ImageStyle:()=>Rn,ImageStyleEditing:()=>vr,ImageStyleUI:()=>Pe,ImageTextAlternative:()=>V,ImageTextAlternativeEditing:()=>N,ImageTextAlternativeUI:()=>z,ImageToolbar:()=>Qn,ImageUpload:()=>ne,ImageUploadEditing:()=>Wt,ImageUploadProgress:()=>ht,ImageUploadUI:()=>Be,PictureEditing:()=>ur});var n=t(704),s=t(945),a=t(492),c=t(254),h=t(181),p=t(209),d=t(995);function k(On){return On.createContainerElement("figure",{class:"image"},[On.createEmptyElement("img"),On.createSlot()])}function M(On,ct){const Zt=On.plugins.get("ImageUtils"),Cn=On.plugins.has("ImageInlineEditing")&&On.plugins.has("ImageBlockEditing");return Kn=>Zt.isInlineImageView(Kn)?Cn&&(Kn.getStyle("display")=="block"||Kn.findAncestor(Zt.isBlockImageView)?"imageBlock":"imageInline")!==ct?null:Pn(Kn):null;function Pn(Kn){const Rt={name:!0};return Kn.hasAttribute("src")&&(Rt.attributes=["src"]),Rt}}function C(On,ct){const Zt=(0,p.first)(ct.getSelectedBlocks());return!Zt||On.isObject(Zt)||Zt.isEmpty&&Zt.name!="listItem"?"imageBlock":"imageInline"}class w extends n.Plugin{static get pluginName(){return"ImageUtils"}isImage(ct){return this.isInlineImage(ct)||this.isBlockImage(ct)}isInlineImageView(ct){return!!ct&&ct.is("element","img")}isBlockImageView(ct){return!!ct&&ct.is("element","figure")&&ct.hasClass("image")}insertImage(ct={},Zt=null,Cn=null){const Pn=this.editor,Kn=Pn.model,Rt=Kn.document.selection;Cn=I(Pn,Zt||Rt,Cn),ct={...Object.fromEntries(Rt.getAttributes()),...ct};for(const Ke in ct)Kn.schema.checkAttribute(Cn,Ke)||delete ct[Ke];return Kn.change(Ke=>{const Oe=Ke.createElement(Cn,ct);return Kn.insertObject(Oe,Zt,null,{setSelection:"on",findOptimalPosition:!Zt&&Cn!="imageInline"}),Oe.parent?Oe:null})}getClosestSelectedImageWidget(ct){const Zt=ct.getFirstPosition();if(!Zt)return null;const Cn=ct.getSelectedElement();if(Cn&&this.isImageWidget(Cn))return Cn;let Pn=Zt.parent;for(;Pn;){if(Pn.is("element")&&this.isImageWidget(Pn))return Pn;Pn=Pn.parent}return null}getClosestSelectedImageElement(ct){const Zt=ct.getSelectedElement();return this.isImage(Zt)?Zt:ct.getFirstPosition().findAncestor("imageBlock")}isImageAllowed(){const ct=this.editor.model.document.selection;return function(Zt,Cn){if(I(Zt,Cn)=="imageBlock"){const Kn=function(Rt,Ke){const Oe=(0,d.findOptimalInsertionRange)(Rt,Ke),Ge=Oe.start.parent;return Ge.isEmpty&&!Ge.is("element","$root")?Ge.parent:Ge}(Cn,Zt.model);if(Zt.model.schema.checkChild(Kn,"imageBlock"))return!0}else if(Zt.model.schema.checkChild(Cn.focus,"imageInline"))return!0;return!1}(this.editor,ct)&&function(Zt){return[...Zt.focus.getAncestors()].every(Cn=>!Cn.is("element","imageBlock"))}(ct)}toImageWidget(ct,Zt,Cn){return Zt.setCustomProperty("image",!0,ct),(0,d.toWidget)(ct,Zt,{label:()=>{const Pn=this.findViewImgElement(ct).getAttribute("alt");return Pn?`${Pn} ${Cn}`:Cn}})}isImageWidget(ct){return!!ct.getCustomProperty("image")&&(0,d.isWidget)(ct)}isBlockImage(ct){return!!ct&&ct.is("element","imageBlock")}isInlineImage(ct){return!!ct&&ct.is("element","imageInline")}findViewImgElement(ct){if(this.isInlineImageView(ct))return ct;const Zt=this.editor.editing.view;for(const{item:Cn}of Zt.createRangeIn(ct))if(this.isInlineImageView(Cn))return Cn}}function I(On,ct,Zt){const Cn=On.model.schema,Pn=On.config.get("image.insert.type");return On.plugins.has("ImageBlockEditing")?On.plugins.has("ImageInlineEditing")?Zt||(Pn==="inline"?"imageInline":Pn==="block"?"imageBlock":ct.is("selection")?C(Cn,ct):Cn.checkChild(ct,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}const F=new RegExp(String(/^(http(s)?:\/\/)?[\w-]+\.[\w.~:/[\]@!$&'()*+,;=%-]+/.source+/\.(jpg|jpeg|png|gif|ico|webp|JPG|JPEG|PNG|GIF|ICO|WEBP)/.source+/(\?[\w.~:/[\]@!$&'()*+,;=%-]*)?/.source+/(#[\w.~:/[\]@!$&'()*+,;=%-]*)?$/.source));class U extends n.Plugin{static get requires(){return[s.Clipboard,w,c.Undo,h.Delete]}static get pluginName(){return"AutoImage"}constructor(ct){super(ct),this._timeoutId=null,this._positionToInsert=null}init(){const ct=this.editor,Zt=ct.model.document;this.listenTo(ct.plugins.get("ClipboardPipeline"),"inputTransformation",()=>{const Cn=Zt.selection.getFirstRange(),Pn=a.LivePosition.fromPosition(Cn.start);Pn.stickiness="toPrevious";const Kn=a.LivePosition.fromPosition(Cn.end);Kn.stickiness="toNext",Zt.once("change:data",()=>{this._embedImageBetweenPositions(Pn,Kn),Pn.detach(),Kn.detach()},{priority:"high"})}),ct.commands.get("undo").on("execute",()=>{this._timeoutId&&(p.global.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedImageBetweenPositions(ct,Zt){const Cn=this.editor,Pn=new a.LiveRange(ct,Zt),Kn=Pn.getWalker({ignoreElementEnd:!0}),Rt=Object.fromEntries(Cn.model.document.selection.getAttributes()),Ke=this.editor.plugins.get("ImageUtils");let Oe="";for(const Ge of Kn)Ge.item.is("$textProxy")&&(Oe+=Ge.item.data);Oe=Oe.trim(),Oe.match(F)?(this._positionToInsert=a.LivePosition.fromPosition(ct),this._timeoutId=p.global.window.setTimeout(()=>{Cn.commands.get("insertImage").isEnabled?(Cn.model.change(Ge=>{let Ft;this._timeoutId=null,Ge.remove(Pn),Pn.detach(),this._positionToInsert.root.rootName!=="$graveyard"&&(Ft=this._positionToInsert.toPosition()),Ke.insertImage({...Rt,src:Oe},Ft),this._positionToInsert.detach(),this._positionToInsert=null}),Cn.plugins.get("Delete").requestUndoOnBackspace()):Pn.detach()},100)):Pn.detach()}}class B extends n.Command{refresh(){const ct=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!ct,this.isEnabled&&ct.hasAttribute("alt")?this.value=ct.getAttribute("alt"):this.value=!1}execute(ct){const Zt=this.editor,Cn=Zt.plugins.get("ImageUtils"),Pn=Zt.model,Kn=Cn.getClosestSelectedImageElement(Pn.document.selection);Pn.change(Rt=>{Rt.setAttribute("alt",ct.newValue,Kn)})}}class N extends n.Plugin{static get requires(){return[w]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new B(this.editor))}}var D=t(273),x=t(62),T=t.n(x),u=t(168),b={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};T()(u.Z,b),u.Z.locals;var E=t(764),A={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};T()(E.Z,A),E.Z.locals;class R extends D.View{constructor(ct){super(ct);const Zt=this.locale.t;this.focusTracker=new p.FocusTracker,this.keystrokes=new p.KeystrokeHandler,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(Zt("Save"),n.icons.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(Zt("Cancel"),n.icons.cancel,"ck-button-cancel","cancel"),this._focusables=new D.ViewCollection,this._focusCycler=new D.FocusCycler({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]}),(0,D.injectCssTransitionDisabler)(this)}render(){super.render(),this.keystrokes.listenTo(this.element),(0,D.submitHandler)({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach(ct=>{this._focusables.add(ct),this.focusTracker.add(ct.element)})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(ct,Zt,Cn,Pn){const Kn=new D.ButtonView(this.locale);return Kn.set({label:ct,icon:Zt,tooltip:!0}),Kn.extendTemplate({attributes:{class:Cn}}),Pn&&Kn.delegate("execute").to(this,Pn),Kn}_createLabeledInputView(){const ct=this.locale.t,Zt=new D.LabeledFieldView(this.locale,D.createLabeledInputText);return Zt.label=ct("Text alternative"),Zt}}function H(On){const ct=On.editing.view,Zt=D.BalloonPanelView.defaultPositions,Cn=On.plugins.get("ImageUtils");return{target:ct.domConverter.mapViewToDom(Cn.getClosestSelectedImageWidget(ct.document.selection)),positions:[Zt.northArrowSouth,Zt.northArrowSouthWest,Zt.northArrowSouthEast,Zt.southArrowNorth,Zt.southArrowNorthWest,Zt.southArrowNorthEast,Zt.viewportStickyNorth]}}class z extends n.Plugin{static get requires(){return[D.ContextualBalloon]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton()}destroy(){super.destroy(),this._form&&this._form.destroy()}_createButton(){const ct=this.editor,Zt=ct.t;ct.ui.componentFactory.add("imageTextAlternative",Cn=>{const Pn=ct.commands.get("imageTextAlternative"),Kn=new D.ButtonView(Cn);return Kn.set({label:Zt("Change image text alternative"),icon:n.icons.lowVision,tooltip:!0}),Kn.bind("isEnabled").to(Pn,"isEnabled"),Kn.bind("isOn").to(Pn,"value",Rt=>!!Rt),this.listenTo(Kn,"execute",()=>{this._showForm()}),Kn})}_createForm(){const ct=this.editor,Zt=ct.editing.view.document,Cn=ct.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new R(ct.locale),this._form.render(),this.listenTo(this._form,"submit",()=>{ct.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)}),this.listenTo(this._form,"cancel",()=>{this._hideForm(!0)}),this._form.keystrokes.set("Esc",(Pn,Kn)=>{this._hideForm(!0),Kn()}),this.listenTo(ct.ui,"update",()=>{Cn.getClosestSelectedImageWidget(Zt.selection)?this._isVisible&&function(Pn){const Kn=Pn.plugins.get("ContextualBalloon");if(Pn.plugins.get("ImageUtils").getClosestSelectedImageWidget(Pn.editing.view.document.selection)){const Rt=H(Pn);Kn.updatePosition(Rt)}}(ct):this._hideForm(!0)}),(0,D.clickOutsideHandler)({emitter:this._form,activator:()=>this._isVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;this._form||this._createForm();const ct=this.editor,Zt=ct.commands.get("imageTextAlternative"),Cn=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:H(ct)}),Cn.fieldView.value=Cn.fieldView.element.value=Zt.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(ct){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),ct&&this.editor.editing.view.focus())}get _isVisible(){return!!this._balloon&&this._balloon.visibleView===this._form}get _isInBalloon(){return!!this._balloon&&this._balloon.hasView(this._form)}}class V extends n.Plugin{static get requires(){return[N,z]}static get pluginName(){return"ImageTextAlternative"}}function $(On,ct){return Cn=>{Cn.on(`attribute:srcset:${ct}`,Zt)};function Zt(Cn,Pn,Kn){if(!Kn.consumable.consume(Pn.item,Cn.name))return;const Rt=Kn.writer,Ke=Kn.mapper.toViewElement(Pn.item),Oe=On.findViewImgElement(Ke);if(Pn.attributeNewValue===null){const Ge=Pn.attributeOldValue;Ge.data&&(Rt.removeAttribute("srcset",Oe),Rt.removeAttribute("sizes",Oe),Ge.width&&Rt.removeAttribute("width",Oe))}else{const Ge=Pn.attributeNewValue;Ge.data&&(Rt.setAttribute("srcset",Ge.data,Oe),Rt.setAttribute("sizes","100vw",Oe),Ge.width&&Rt.setAttribute("width",Ge.width,Oe))}}}function ee(On,ct,Zt){return Pn=>{Pn.on(`attribute:${Zt}:${ct}`,Cn)};function Cn(Pn,Kn,Rt){if(!Rt.consumable.consume(Kn.item,Pn.name))return;const Ke=Rt.writer,Oe=Rt.mapper.toViewElement(Kn.item),Ge=On.findViewImgElement(Oe);Ke.setAttribute(Kn.attributeKey,Kn.attributeNewValue||"",Ge)}}class q extends a.Observer{observe(ct){this.listenTo(ct,"load",(Zt,Cn)=>{const Pn=Cn.target;this.checkShouldIgnoreEventFromTarget(Pn)||Pn.tagName=="IMG"&&this._fireEvents(Cn)},{useCapture:!0})}_fireEvents(ct){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",ct))}}class oe extends n.Command{constructor(ct){super(ct);const Zt=ct.config.get("image.insert.type");ct.plugins.has("ImageBlockEditing")||Zt==="block"&&(0,p.logWarning)("image-block-plugin-required"),ct.plugins.has("ImageInlineEditing")||Zt==="inline"&&(0,p.logWarning)("image-inline-plugin-required")}refresh(){this.isEnabled=this.editor.plugins.get("ImageUtils").isImageAllowed()}execute(ct){const Zt=(0,p.toArray)(ct.source),Cn=this.editor.model.document.selection,Pn=this.editor.plugins.get("ImageUtils"),Kn=Object.fromEntries(Cn.getAttributes());Zt.forEach((Rt,Ke)=>{const Oe=Cn.getSelectedElement();if(typeof Rt=="string"&&(Rt={src:Rt}),Ke&&Oe&&Pn.isImage(Oe)){const Ge=this.editor.model.createPositionAfter(Oe);Pn.insertImage({...Rt,...Kn},Ge)}else Pn.insertImage({...Rt,...Kn})})}}class X extends n.Command{refresh(){const ct=this.editor.plugins.get("ImageUtils"),Zt=this.editor.model.document.selection.getSelectedElement();this.isEnabled=ct.isImage(Zt),this.value=this.isEnabled?Zt.getAttribute("src"):null}execute(ct){const Zt=this.editor.model.document.selection.getSelectedElement();this.editor.model.change(Cn=>{Cn.setAttribute("src",ct.source,Zt),Cn.removeAttribute("srcset",Zt),Cn.removeAttribute("sizes",Zt)})}}class pe extends n.Plugin{static get requires(){return[w]}static get pluginName(){return"ImageEditing"}init(){const ct=this.editor,Zt=ct.conversion;ct.editing.view.addObserver(q),Zt.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:Kn=>{const Rt={data:Kn.getAttribute("srcset")};return Kn.hasAttribute("width")&&(Rt.width=Kn.getAttribute("width")),Rt}}});const Cn=new oe(ct),Pn=new X(ct);ct.commands.add("insertImage",Cn),ct.commands.add("replaceImageSource",Pn),ct.commands.add("imageInsert",Cn)}}class Ie extends n.Command{constructor(ct,Zt){super(ct),this._modelElementName=Zt}refresh(){const ct=this.editor.plugins.get("ImageUtils"),Zt=ct.getClosestSelectedImageElement(this.editor.model.document.selection);this._modelElementName==="imageBlock"?this.isEnabled=ct.isInlineImage(Zt):this.isEnabled=ct.isBlockImage(Zt)}execute(){const ct=this.editor,Zt=this.editor.model,Cn=ct.plugins.get("ImageUtils"),Pn=Cn.getClosestSelectedImageElement(Zt.document.selection),Kn=Object.fromEntries(Pn.getAttributes());return Kn.src||Kn.uploadId?Zt.change(Rt=>{const Ke=Array.from(Zt.markers).filter(Ft=>Ft.getRange().containsItem(Pn)),Oe=Cn.insertImage(Kn,Zt.createSelection(Pn,"on"),this._modelElementName);if(!Oe)return null;const Ge=Rt.createRangeOn(Oe);for(const Ft of Ke){const Qt=Ft.getRange(),wn=Qt.root.rootName!="$graveyard"?Qt.getJoined(Ge,!0):Ge;Rt.updateMarker(Ft,{range:wn})}return{oldElement:Pn,newElement:Oe}}):null}}class se extends n.Plugin{static get requires(){return[pe,w,s.ClipboardPipeline]}static get pluginName(){return"ImageBlockEditing"}init(){const ct=this.editor;ct.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),ct.plugins.has("ImageInlineEditing")&&(ct.commands.add("imageTypeBlock",new Ie(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const ct=this.editor,Zt=ct.t,Cn=ct.conversion,Pn=ct.plugins.get("ImageUtils");Cn.for("dataDowncast").elementToStructure({model:"imageBlock",view:(Kn,{writer:Rt})=>k(Rt)}),Cn.for("editingDowncast").elementToStructure({model:"imageBlock",view:(Kn,{writer:Rt})=>Pn.toImageWidget(k(Rt),Rt,Zt("image widget"))}),Cn.for("downcast").add(ee(Pn,"imageBlock","src")).add(ee(Pn,"imageBlock","alt")).add($(Pn,"imageBlock")),Cn.for("upcast").elementToElement({view:M(ct,"imageBlock"),model:(Kn,{writer:Rt})=>Rt.createElement("imageBlock",Kn.hasAttribute("src")?{src:Kn.getAttribute("src")}:null)}).add(function(Kn){return Ke=>{Ke.on("element:figure",Rt)};function Rt(Ke,Oe,Ge){if(!Ge.consumable.test(Oe.viewItem,{name:!0,classes:"image"}))return;const Ft=Kn.findViewImgElement(Oe.viewItem);if(!Ft||!Ge.consumable.test(Ft,{name:!0}))return;Ge.consumable.consume(Oe.viewItem,{name:!0,classes:"image"});const Qt=Ge.convertItem(Ft,Oe.modelCursor),wn=(0,p.first)(Qt.modelRange.getItems());wn?(Ge.convertChildren(Oe.viewItem,wn),Ge.updateConversionResult(wn,Oe)):Ge.consumable.revert(Oe.viewItem,{name:!0,classes:"image"})}}(Pn))}_setupClipboardIntegration(){const ct=this.editor,Zt=ct.model,Cn=ct.editing.view,Pn=ct.plugins.get("ImageUtils");this.listenTo(ct.plugins.get("ClipboardPipeline"),"inputTransformation",(Kn,Rt)=>{const Ke=Array.from(Rt.content.getChildren());let Oe;if(!Ke.every(Pn.isInlineImageView))return;Oe=Rt.targetRanges?ct.editing.mapper.toModelRange(Rt.targetRanges[0]):Zt.document.selection.getFirstRange();const Ge=Zt.createSelection(Oe);if(C(Zt.schema,Ge)==="imageBlock"){const Ft=new a.UpcastWriter(Cn.document),Qt=Ke.map(wn=>Ft.createElement("figure",{class:"image"},wn));Rt.content=Ft.createDocumentFragment(Qt)}})}}var be=t(540),fe={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};T()(be.Z,fe),be.Z.locals;class ue extends n.Plugin{static get requires(){return[se,d.Widget,V]}static get pluginName(){return"ImageBlock"}}class we extends n.Plugin{static get requires(){return[pe,w,s.ClipboardPipeline]}static get pluginName(){return"ImageInlineEditing"}init(){const ct=this.editor,Zt=ct.model.schema;Zt.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"]}),Zt.addChildCheck((Cn,Pn)=>{if(Cn.endsWith("caption")&&Pn.name==="imageInline")return!1}),this._setupConversion(),ct.plugins.has("ImageBlockEditing")&&(ct.commands.add("imageTypeInline",new Ie(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){const ct=this.editor,Zt=ct.t,Cn=ct.conversion,Pn=ct.plugins.get("ImageUtils");Cn.for("dataDowncast").elementToElement({model:"imageInline",view:(Kn,{writer:Rt})=>Rt.createEmptyElement("img")}),Cn.for("editingDowncast").elementToStructure({model:"imageInline",view:(Kn,{writer:Rt})=>Pn.toImageWidget(function(Ke){return Ke.createContainerElement("span",{class:"image-inline"},Ke.createEmptyElement("img"))}(Rt),Rt,Zt("image widget"))}),Cn.for("downcast").add(ee(Pn,"imageInline","src")).add(ee(Pn,"imageInline","alt")).add($(Pn,"imageInline")),Cn.for("upcast").elementToElement({view:M(ct,"imageInline"),model:(Kn,{writer:Rt})=>Rt.createElement("imageInline",Kn.hasAttribute("src")?{src:Kn.getAttribute("src")}:null)})}_setupClipboardIntegration(){const ct=this.editor,Zt=ct.model,Cn=ct.editing.view,Pn=ct.plugins.get("ImageUtils");this.listenTo(ct.plugins.get("ClipboardPipeline"),"inputTransformation",(Kn,Rt)=>{const Ke=Array.from(Rt.content.getChildren());let Oe;if(!Ke.every(Pn.isBlockImageView))return;Oe=Rt.targetRanges?ct.editing.mapper.toModelRange(Rt.targetRanges[0]):Zt.document.selection.getFirstRange();const Ge=Zt.createSelection(Oe);if(C(Zt.schema,Ge)==="imageInline"){const Ft=new a.UpcastWriter(Cn.document),Qt=Ke.map(wn=>wn.childCount===1?(Array.from(wn.getAttributes()).forEach(Gn=>Ft.setAttribute(...Gn,Pn.findViewImgElement(wn))),wn.getChild(0)):wn);Rt.content=Ft.createDocumentFragment(Qt)}})}}class Me extends n.Plugin{static get requires(){return[we,d.Widget,V]}static get pluginName(){return"ImageInline"}}class Ce extends n.Plugin{static get requires(){return[ue,Me]}static get pluginName(){return"Image"}}class Ne extends n.Plugin{static get pluginName(){return"ImageCaptionUtils"}static get requires(){return[w]}getCaptionFromImageModelElement(ct){for(const Zt of ct.getChildren())if(Zt&&Zt.is("element","caption"))return Zt;return null}getCaptionFromModelSelection(ct){const Zt=this.editor.plugins.get("ImageUtils"),Cn=ct.getFirstPosition().findAncestor("caption");return Cn&&Zt.isBlockImage(Cn.parent)?Cn:null}matchImageCaptionViewElement(ct){const Zt=this.editor.plugins.get("ImageUtils");return ct.name=="figcaption"&&Zt.isBlockImageView(ct.parent)?{name:!0}:null}}class Ye extends n.Command{refresh(){const ct=this.editor,Zt=ct.plugins.get("ImageCaptionUtils");if(!ct.plugins.has(se))return this.isEnabled=!1,void(this.value=!1);const Cn=ct.model.document.selection,Pn=Cn.getSelectedElement();if(!Pn){const Kn=Zt.getCaptionFromModelSelection(Cn);return this.isEnabled=!!Kn,void(this.value=!!Kn)}this.isEnabled=this.editor.plugins.get("ImageUtils").isImage(Pn),this.isEnabled?this.value=!!Zt.getCaptionFromImageModelElement(Pn):this.value=!1}execute(ct={}){const{focusCaptionOnShow:Zt}=ct;this.editor.model.change(Cn=>{this.value?this._hideImageCaption(Cn):this._showImageCaption(Cn,Zt)})}_showImageCaption(ct,Zt){const Cn=this.editor.model.document.selection,Pn=this.editor.plugins.get("ImageCaptionEditing");let Kn=Cn.getSelectedElement();const Rt=Pn._getSavedCaption(Kn);this.editor.plugins.get("ImageUtils").isInlineImage(Kn)&&(this.editor.execute("imageTypeBlock"),Kn=Cn.getSelectedElement());const Ke=Rt||ct.createElement("caption");ct.append(Ke,Kn),Zt&&ct.setSelection(Ke,"in")}_hideImageCaption(ct){const Zt=this.editor,Cn=Zt.model.document.selection,Pn=Zt.plugins.get("ImageCaptionEditing"),Kn=Zt.plugins.get("ImageCaptionUtils");let Rt,Ke=Cn.getSelectedElement();Ke?Rt=Kn.getCaptionFromImageModelElement(Ke):(Rt=Kn.getCaptionFromModelSelection(Cn),Ke=Rt.parent),Pn._saveCaption(Ke,Rt),ct.setSelection(Ke,"on"),ct.remove(Rt)}}class mt extends n.Plugin{static get requires(){return[w,Ne]}static get pluginName(){return"ImageCaptionEditing"}constructor(ct){super(ct),this._savedCaptionsMap=new WeakMap}init(){const ct=this.editor,Zt=ct.model.schema;Zt.isRegistered("caption")?Zt.extend("caption",{allowIn:"imageBlock"}):Zt.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),ct.commands.add("toggleImageCaption",new Ye(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration(),this._registerCaptionReconversion()}_setupConversion(){const ct=this.editor,Zt=ct.editing.view,Cn=ct.plugins.get("ImageUtils"),Pn=ct.plugins.get("ImageCaptionUtils"),Kn=ct.t;ct.conversion.for("upcast").elementToElement({view:Rt=>Pn.matchImageCaptionViewElement(Rt),model:"caption"}),ct.conversion.for("dataDowncast").elementToElement({model:"caption",view:(Rt,{writer:Ke})=>Cn.isBlockImage(Rt.parent)?Ke.createContainerElement("figcaption"):null}),ct.conversion.for("editingDowncast").elementToElement({model:"caption",view:(Rt,{writer:Ke})=>{if(!Cn.isBlockImage(Rt.parent))return null;const Oe=Ke.createEditableElement("figcaption");Ke.setCustomProperty("imageCaption",!0,Oe),(0,a.enablePlaceholder)({view:Zt,element:Oe,text:Kn("Enter image caption"),keepOnFocus:!0});const Ge=Rt.parent.getAttribute("alt"),Ft=Ge?Kn("Caption for image: %0",[Ge]):Kn("Caption for the image");return(0,d.toWidgetEditable)(Oe,Ke,{label:Ft})}})}_setupImageTypeCommandsIntegration(){const ct=this.editor,Zt=ct.plugins.get("ImageUtils"),Cn=ct.plugins.get("ImageCaptionUtils"),Pn=ct.commands.get("imageTypeInline"),Kn=ct.commands.get("imageTypeBlock"),Rt=Ke=>{if(!Ke.return)return;const{oldElement:Oe,newElement:Ge}=Ke.return;if(!Oe)return;if(Zt.isBlockImage(Oe)){const Qt=Cn.getCaptionFromImageModelElement(Oe);if(Qt)return void this._saveCaption(Ge,Qt)}const Ft=this._getSavedCaption(Oe);Ft&&this._saveCaption(Ge,Ft)};Pn&&this.listenTo(Pn,"execute",Rt,{priority:"low"}),Kn&&this.listenTo(Kn,"execute",Rt,{priority:"low"})}_getSavedCaption(ct){const Zt=this._savedCaptionsMap.get(ct);return Zt?a.Element.fromJSON(Zt):null}_saveCaption(ct,Zt){this._savedCaptionsMap.set(ct,Zt.toJSON())}_registerCaptionReconversion(){const ct=this.editor,Zt=ct.model,Cn=ct.plugins.get("ImageUtils"),Pn=ct.plugins.get("ImageCaptionUtils");Zt.document.on("change:data",()=>{const Kn=Zt.document.differ.getChanges();for(const Rt of Kn){if(Rt.attributeKey!=="alt")continue;const Ke=Rt.range.start.nodeAfter;if(Cn.isBlockImage(Ke)){const Oe=Pn.getCaptionFromImageModelElement(Ke);if(!Oe)return;ct.editing.reconvertItem(Oe)}}})}}class Ct extends n.Plugin{static get requires(){return[Ne]}static get pluginName(){return"ImageCaptionUI"}init(){const ct=this.editor,Zt=ct.editing.view,Cn=ct.plugins.get("ImageCaptionUtils"),Pn=ct.t;ct.ui.componentFactory.add("toggleImageCaption",Kn=>{const Rt=ct.commands.get("toggleImageCaption"),Ke=new D.ButtonView(Kn);return Ke.set({icon:n.icons.caption,tooltip:!0,isToggleable:!0}),Ke.bind("isOn","isEnabled").to(Rt,"value","isEnabled"),Ke.bind("label").to(Rt,"value",Oe=>Pn(Oe?"Toggle caption off":"Toggle caption on")),this.listenTo(Ke,"execute",()=>{ct.execute("toggleImageCaption",{focusCaptionOnShow:!0});const Oe=Cn.getCaptionFromModelSelection(ct.model.document.selection);if(Oe){const Ge=ct.editing.mapper.toViewElement(Oe);Zt.scrollToTheSelection(),Zt.change(Ft=>{Ft.addClass("image__caption_highlighted",Ge)})}ct.editing.view.focus()}),Ke})}}var ln=t(560),$e={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};T()(ln.Z,$e),ln.Z.locals;class Qe extends n.Plugin{static get requires(){return[mt,Ct]}static get pluginName(){return"ImageCaption"}}var bt=t(448);function It(On){const ct=On.map(Zt=>Zt.replace("+","\\+"));return new RegExp(`^image\\/(${ct.join("|")})$`)}function mn(On){return new Promise((ct,Zt)=>{const Cn=On.getAttribute("src");fetch(Cn).then(Pn=>Pn.blob()).then(Pn=>{const Kn=un(Pn,Cn),Rt=Kn.replace("image/",""),Ke=new File([Pn],`image.${Rt}`,{type:Kn});ct(Ke)}).catch(Pn=>Pn&&Pn.name==="TypeError"?function(Kn){return function(Rt){return new Promise((Ke,Oe)=>{const Ge=p.global.document.createElement("img");Ge.addEventListener("load",()=>{const Ft=p.global.document.createElement("canvas");Ft.width=Ge.width,Ft.height=Ge.height,Ft.getContext("2d").drawImage(Ge,0,0),Ft.toBlob(Qt=>Qt?Ke(Qt):Oe())}),Ge.addEventListener("error",()=>Oe()),Ge.src=Rt})}(Kn).then(Rt=>{const Ke=un(Rt,Kn),Oe=Ke.replace("image/","");return new File([Rt],`image.${Oe}`,{type:Ke})})}(Cn).then(ct).catch(Zt):Zt(Pn))})}function un(On,ct){return On.type?On.type:ct.match(/data:(image\/\w+);base64/)?ct.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}class Be extends n.Plugin{static get pluginName(){return"ImageUploadUI"}init(){const ct=this.editor,Zt=ct.t,Cn=Pn=>{const Kn=new bt.FileDialogButtonView(Pn),Rt=ct.commands.get("uploadImage"),Ke=ct.config.get("image.upload.types"),Oe=It(Ke);return Kn.set({acceptedType:Ke.map(Ge=>`image/${Ge}`).join(","),allowMultipleFiles:!0}),Kn.buttonView.set({label:Zt("Insert image"),icon:n.icons.image,tooltip:!0}),Kn.buttonView.bind("isEnabled").to(Rt),Kn.on("done",(Ge,Ft)=>{const Qt=Array.from(Ft).filter(wn=>Oe.test(wn.type));Qt.length&&(ct.execute("uploadImage",{file:Qt}),ct.editing.view.focus())}),Kn};ct.ui.componentFactory.add("uploadImage",Cn),ct.ui.componentFactory.add("imageUpload",Cn)}}var je=t(271),$t={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};T()(je.Z,$t),je.Z.locals;var et=t(948),Kt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};T()(et.Z,Kt),et.Z.locals;var kn=t(467),Tn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};T()(kn.Z,Tn),kn.Z.locals;class ht extends n.Plugin{static get pluginName(){return"ImageUploadProgress"}constructor(ct){super(ct),this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}init(){const ct=this.editor;ct.plugins.has("ImageBlockEditing")&&ct.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",(...Zt)=>this.uploadStatusChange(...Zt)),ct.plugins.has("ImageInlineEditing")&&ct.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",(...Zt)=>this.uploadStatusChange(...Zt))}uploadStatusChange(ct,Zt,Cn){const Pn=this.editor,Kn=Zt.item,Rt=Kn.getAttribute("uploadId");if(!Cn.consumable.consume(Zt.item,ct.name))return;const Ke=Pn.plugins.get("ImageUtils"),Oe=Pn.plugins.get(bt.FileRepository),Ge=Rt?Zt.attributeNewValue:null,Ft=this.placeholder,Qt=Pn.editing.mapper.toViewElement(Kn),wn=Cn.writer;if(Ge=="reading")return ot(Qt,wn),void Je(Ke,Ft,Qt,wn);if(Ge=="uploading"){const Gn=Oe.loaders.get(Rt);return ot(Qt,wn),void(Gn?(wt(Qt,wn),function(ir,br,fr,Er){const Or=function(oi){const si=oi.createUIElement("div",{class:"ck-progress-bar"});return oi.setCustomProperty("progressBar",!0,si),si}(br);br.insert(br.createPositionAt(ir,"end"),Or),fr.on("change:uploadedPercent",(oi,si,Fi)=>{Er.change($i=>{$i.setStyle("width",Fi+"%",Or)})})}(Qt,wn,Gn,Pn.editing.view),function(ir,br,fr,Er){if(Er.data){const Or=ir.findViewImgElement(br);fr.setAttribute("src",Er.data,Or)}}(Ke,Qt,wn,Gn)):Je(Ke,Ft,Qt,wn))}Ge=="complete"&&Oe.loaders.get(Rt)&&function(Gn,ir,br){const fr=ir.createUIElement("div",{class:"ck-image-upload-complete-icon"});ir.insert(ir.createPositionAt(Gn,"end"),fr),setTimeout(()=>{br.change(Er=>Er.remove(Er.createRangeOn(fr)))},3e3)}(Qt,wn,Pn.editing.view),function(Gn,ir){vn(Gn,ir,"progressBar")}(Qt,wn),wt(Qt,wn),function(Gn,ir){ir.removeClass("ck-appear",Gn)}(Qt,wn)}}function ot(On,ct){On.hasClass("ck-appear")||ct.addClass("ck-appear",On)}function Je(On,ct,Zt,Cn){Zt.hasClass("ck-image-upload-placeholder")||Cn.addClass("ck-image-upload-placeholder",Zt);const Pn=On.findViewImgElement(Zt);Pn.getAttribute("src")!==ct&&Cn.setAttribute("src",ct,Pn),ft(Zt,"placeholder")||Cn.insert(Cn.createPositionAfter(Pn),function(Kn){const Rt=Kn.createUIElement("div",{class:"ck-upload-placeholder-loader"});return Kn.setCustomProperty("placeholder",!0,Rt),Rt}(Cn))}function wt(On,ct){On.hasClass("ck-image-upload-placeholder")&&ct.removeClass("ck-image-upload-placeholder",On),vn(On,ct,"placeholder")}function ft(On,ct){for(const Zt of On.getChildren())if(Zt.getCustomProperty(ct))return Zt}function vn(On,ct,Zt){const Cn=ft(On,Zt);Cn&&ct.remove(ct.createRangeOn(Cn))}class ut extends n.Command{refresh(){const ct=this.editor,Zt=ct.plugins.get("ImageUtils"),Cn=ct.model.document.selection.getSelectedElement();this.isEnabled=Zt.isImageAllowed()||Zt.isImage(Cn)}execute(ct){const Zt=(0,p.toArray)(ct.file),Cn=this.editor.model.document.selection,Pn=this.editor.plugins.get("ImageUtils"),Kn=Object.fromEntries(Cn.getAttributes());Zt.forEach((Rt,Ke)=>{const Oe=Cn.getSelectedElement();if(Ke&&Oe&&Pn.isImage(Oe)){const Ge=this.editor.model.createPositionAfter(Oe);this._uploadImage(Rt,Kn,Ge)}else this._uploadImage(Rt,Kn)})}_uploadImage(ct,Zt,Cn){const Pn=this.editor,Kn=Pn.plugins.get(bt.FileRepository).createLoader(ct),Rt=Pn.plugins.get("ImageUtils");Kn&&Rt.insertImage({...Zt,uploadId:Kn.id},Cn)}}class Wt extends n.Plugin{static get requires(){return[bt.FileRepository,D.Notification,s.ClipboardPipeline,w]}static get pluginName(){return"ImageUploadEditing"}constructor(ct){super(ct),ct.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}init(){const ct=this.editor,Zt=ct.model.document,Cn=ct.conversion,Pn=ct.plugins.get(bt.FileRepository),Kn=ct.plugins.get("ImageUtils"),Rt=It(ct.config.get("image.upload.types")),Ke=new ut(ct);ct.commands.add("uploadImage",Ke),ct.commands.add("imageUpload",Ke),Cn.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(ct.editing.view.document,"clipboardInput",(Oe,Ge)=>{if(Ft=Ge.dataTransfer,Array.from(Ft.types).includes("text/html")&&Ft.getData("text/html")!=="")return;var Ft;const Qt=Array.from(Ge.dataTransfer.files).filter(wn=>!!wn&&Rt.test(wn.type));Qt.length&&(Oe.stop(),ct.model.change(wn=>{Ge.targetRanges&&wn.setSelection(Ge.targetRanges.map(Gn=>ct.editing.mapper.toModelRange(Gn))),ct.model.enqueueChange(()=>{ct.execute("uploadImage",{file:Qt})})}))}),this.listenTo(ct.plugins.get("ClipboardPipeline"),"inputTransformation",(Oe,Ge)=>{const Ft=Array.from(ct.editing.view.createRangeIn(Ge.content)).filter(wn=>function(Gn,ir){return!(!Gn.isInlineImageView(ir)||!ir.getAttribute("src"))&&(ir.getAttribute("src").match(/^data:image\/\w+;base64,/g)||ir.getAttribute("src").match(/^blob:/g))}(Kn,wn.item)&&!wn.item.getAttribute("uploadProcessed")).map(wn=>({promise:mn(wn.item),imageElement:wn.item}));if(!Ft.length)return;const Qt=new a.UpcastWriter(ct.editing.view.document);for(const wn of Ft){Qt.setAttribute("uploadProcessed",!0,wn.imageElement);const Gn=Pn.createLoader(wn.promise);Gn&&(Qt.setAttribute("src","",wn.imageElement),Qt.setAttribute("uploadId",Gn.id,wn.imageElement))}}),ct.editing.view.document.on("dragover",(Oe,Ge)=>{Ge.preventDefault()}),Zt.on("change",()=>{const Oe=Zt.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),Ge=new Set;for(const Ft of Oe)if(Ft.type=="insert"&&Ft.name!="$text"){const Qt=Ft.position.nodeAfter,wn=Ft.position.root.rootName=="$graveyard";for(const Gn of ae(ct,Qt)){const ir=Gn.getAttribute("uploadId");if(!ir)continue;const br=Pn.loaders.get(ir);br&&(wn?Ge.has(ir)||br.abort():(Ge.add(ir),this._uploadImageElements.set(ir,Gn),br.status=="idle"&&this._readAndUpload(br)))}}}),this.on("uploadComplete",(Oe,{imageElement:Ge,data:Ft})=>{const Qt=Ft.urls?Ft.urls:Ft;this.editor.model.change(wn=>{wn.setAttribute("src",Qt.default,Ge),this._parseAndSetSrcsetAttributeOnImage(Qt,Ge,wn)})},{priority:"low"})}afterInit(){const ct=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&ct.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&ct.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]})}_readAndUpload(ct){const Zt=this.editor,Cn=Zt.model,Pn=Zt.locale.t,Kn=Zt.plugins.get(bt.FileRepository),Rt=Zt.plugins.get(D.Notification),Ke=Zt.plugins.get("ImageUtils"),Oe=this._uploadImageElements;return Cn.enqueueChange({isUndoable:!1},Ft=>{Ft.setAttribute("uploadStatus","reading",Oe.get(ct.id))}),ct.read().then(()=>{const Ft=ct.upload(),Qt=Oe.get(ct.id);if(p.env.isSafari){const wn=Zt.editing.mapper.toViewElement(Qt),Gn=Ke.findViewImgElement(wn);Zt.editing.view.once("render",()=>{if(!Gn.parent)return;const ir=Zt.editing.view.domConverter.mapViewToDom(Gn.parent);if(!ir)return;const br=ir.style.display;ir.style.display="none",ir._ckHack=ir.offsetHeight,ir.style.display=br})}return Cn.enqueueChange({isUndoable:!1},wn=>{wn.setAttribute("uploadStatus","uploading",Qt)}),Ft}).then(Ft=>{Cn.enqueueChange({isUndoable:!1},Qt=>{const wn=Oe.get(ct.id);Qt.setAttribute("uploadStatus","complete",wn),this.fire("uploadComplete",{data:Ft,imageElement:wn})}),Ge()}).catch(Ft=>{if(ct.status!=="error"&&ct.status!=="aborted")throw Ft;ct.status=="error"&&Ft&&Rt.showWarning(Ft,{title:Pn("Upload failed"),namespace:"upload"}),Cn.enqueueChange({isUndoable:!1},Qt=>{Qt.remove(Oe.get(ct.id))}),Ge()});function Ge(){Cn.enqueueChange({isUndoable:!1},Ft=>{const Qt=Oe.get(ct.id);Ft.removeAttribute("uploadId",Qt),Ft.removeAttribute("uploadStatus",Qt),Oe.delete(ct.id)}),Kn.destroyLoader(ct)}}_parseAndSetSrcsetAttributeOnImage(ct,Zt,Cn){let Pn=0;const Kn=Object.keys(ct).filter(Rt=>{const Ke=parseInt(Rt,10);if(!isNaN(Ke))return Pn=Math.max(Pn,Ke),!0}).map(Rt=>`${ct[Rt]} ${Rt}w`).join(", ");Kn!=""&&Cn.setAttribute("srcset",{data:Kn,width:Pn},Zt)}}function ae(On,ct){const Zt=On.plugins.get("ImageUtils");return Array.from(On.model.createRangeOn(ct)).filter(Cn=>Zt.isImage(Cn.item)).map(Cn=>Cn.item)}class ne extends n.Plugin{static get pluginName(){return"ImageUpload"}static get requires(){return[Wt,Be,ht]}}var ge=t(439),ye={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};T()(ge.Z,ye),ge.Z.locals;class Xe extends D.View{constructor(ct,Zt={}){super(ct);const Cn=this.bindTemplate;this.set("class",Zt.class||null),this.children=this.createCollection(),Zt.children&&Zt.children.forEach(Pn=>this.children.add(Pn)),this.set("_role",null),this.set("_ariaLabelledBy",null),Zt.labelView&&this.set({_role:"group",_ariaLabelledBy:Zt.labelView.id}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-form__row",Cn.to("class")],role:Cn.to("_role"),"aria-labelledby":Cn.to("_ariaLabelledBy")},children:this.children})}}var Ze=t(91),lt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};T()(Ze.Z,lt),Ze.Z.locals;class _t extends D.View{constructor(ct,Zt){super(ct);const{insertButtonView:Cn,cancelButtonView:Pn}=this._createActionButtons(ct);if(this.insertButtonView=Cn,this.cancelButtonView=Pn,this.set("imageURLInputValue",""),this.focusTracker=new p.FocusTracker,this.keystrokes=new p.KeystrokeHandler,this._focusables=new D.ViewCollection,this._focusCycler=new D.FocusCycler({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.set("_integrations",new p.Collection),Zt)for(const[Kn,Rt]of Object.entries(Zt))Kn==="insertImageViaUrl"&&(Rt.fieldView.bind("value").to(this,"imageURLInputValue",Ke=>Ke||""),Rt.fieldView.on("input",()=>{this.imageURLInputValue=Rt.fieldView.element.value.trim()})),Rt.name=Kn,this._integrations.add(Rt);this.setTemplate({tag:"form",attributes:{class:["ck","ck-image-insert-form"],tabindex:"-1"},children:[...this._integrations,new Xe(ct,{children:[this.insertButtonView,this.cancelButtonView],class:"ck-image-insert-form__action-row"})]})}render(){super.render(),(0,D.submitHandler)({view:this});const ct=[...this._integrations,this.insertButtonView,this.cancelButtonView];ct.forEach(Cn=>{this._focusables.add(Cn),this.focusTracker.add(Cn.element)}),this.keystrokes.listenTo(this.element);const Zt=Cn=>Cn.stopPropagation();this.keystrokes.set("arrowright",Zt),this.keystrokes.set("arrowleft",Zt),this.keystrokes.set("arrowup",Zt),this.keystrokes.set("arrowdown",Zt),this.listenTo(ct[0].element,"selectstart",(Cn,Pn)=>{Pn.stopPropagation()},{priority:"high"})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}getIntegration(ct){return this._integrations.find(Zt=>Zt.name===ct)}_createActionButtons(ct){const Zt=ct.t,Cn=new D.ButtonView(ct),Pn=new D.ButtonView(ct);return Cn.set({label:Zt("Insert"),icon:n.icons.check,class:"ck-button-save",type:"submit",withText:!0,isEnabled:this.imageURLInputValue}),Pn.set({label:Zt("Cancel"),icon:n.icons.cancel,class:"ck-button-cancel",withText:!0}),Cn.bind("isEnabled").to(this,"imageURLInputValue",Kn=>!!Kn),Cn.delegate("execute").to(this,"submit"),Pn.delegate("execute").to(this,"cancel"),{insertButtonView:Cn,cancelButtonView:Pn}}focus(){this._focusCycler.focusFirst()}}function zt(On){const ct=On.t,Zt=new D.LabeledFieldView(On,D.createLabeledInputText);return Zt.set({label:ct("Insert image via URL")}),Zt.fieldView.placeholder="https://example.com/image.png",Zt}class Vt extends n.Plugin{static get pluginName(){return"ImageInsertUI"}init(){const ct=this.editor,Zt=Cn=>this._createDropdownView(Cn);ct.ui.componentFactory.add("insertImage",Zt),ct.ui.componentFactory.add("imageInsert",Zt)}_createDropdownView(ct){const Zt=this.editor,Cn=ct.t,Pn=Zt.commands.get("uploadImage"),Kn=Zt.commands.get("insertImage");this.dropdownView=(0,D.createDropdown)(ct,Pn?D.SplitButtonView:void 0);const Rt=this.dropdownView.buttonView,Ke=this.dropdownView.panelView;if(Rt.set({label:Cn("Insert image"),icon:n.icons.image,tooltip:!0}),Ke.extendTemplate({attributes:{class:"ck-image-insert__panel"}}),Pn){const Oe=this.dropdownView.buttonView;Oe.actionView=Zt.ui.componentFactory.create("uploadImage"),Oe.actionView.extendTemplate({attributes:{class:"ck ck-button ck-splitbutton__action"}})}return this._setUpDropdown(Pn||Kn)}_setUpDropdown(ct){const Zt=this.editor,Cn=Zt.t,Pn=this.dropdownView,Kn=Pn.panelView,Rt=this.editor.plugins.get("ImageUtils"),Ke=Zt.commands.get("replaceImageSource");let Oe;function Ge(){Zt.editing.view.focus(),Pn.isOpen=!1}return Pn.bind("isEnabled").to(ct),Pn.once("change:isOpen",()=>{Oe=new _t(Zt.locale,function(Ft){const Qt=Ft.config.get("image.insert.integrations"),wn=Ft.plugins.get("ImageInsertUI"),Gn={insertImageViaUrl:zt(Ft.locale)};if(!Qt)return Gn;if(Qt.find(ir=>ir==="openCKFinder")&&Ft.ui.componentFactory.has("ckfinder")){const ir=Ft.ui.componentFactory.create("ckfinder");ir.set({withText:!0,class:"ck-image-insert__ck-finder-button"}),ir.delegate("execute").to(wn,"cancel"),Gn.openCKFinder=ir}return Qt.reduce((ir,br)=>(Gn[br]?ir[br]=Gn[br]:Ft.ui.componentFactory.has(br)&&(ir[br]=Ft.ui.componentFactory.create(br)),ir),{})}(Zt)),Oe.delegate("submit","cancel").to(Pn),Kn.children.add(Oe)}),Pn.on("change:isOpen",()=>{const Ft=Zt.model.document.selection.getSelectedElement(),Qt=Oe.insertButtonView,wn=Oe.getIntegration("insertImageViaUrl");Pn.isOpen&&(Rt.isImage(Ft)?(Oe.imageURLInputValue=Ke.value,Qt.label=Cn("Update"),wn.label=Cn("Update image URL")):(Oe.imageURLInputValue="",Qt.label=Cn("Insert"),wn.label=Cn("Insert image via URL")))},{priority:"low"}),this.delegate("cancel").to(Pn),Pn.on("submit",()=>{Ge(),function(){const Ft=Zt.model.document.selection.getSelectedElement();Rt.isImage(Ft)?Zt.execute("replaceImageSource",{source:Oe.imageURLInputValue}):Zt.execute("insertImage",{source:Oe.imageURLInputValue})}()}),Pn.on("cancel",()=>{Ge()}),Pn}}class sn extends n.Plugin{static get pluginName(){return"ImageInsertViaUrl"}static get requires(){return[Vt]}}class yn extends n.Plugin{static get pluginName(){return"ImageInsert"}static get requires(){return[ne,sn,Vt]}}class dr extends n.Command{refresh(){const ct=this.editor,Zt=ct.plugins.get("ImageUtils").getClosestSelectedImageElement(ct.model.document.selection);this.isEnabled=!!Zt,Zt&&Zt.hasAttribute("width")?this.value={width:Zt.getAttribute("width"),height:null}:this.value=null}execute(ct){const Zt=this.editor,Cn=Zt.model,Pn=Zt.plugins.get("ImageUtils").getClosestSelectedImageElement(Cn.document.selection);this.value={width:ct.width,height:null},Pn&&Cn.change(Kn=>{Kn.setAttribute("width",ct.width,Pn)})}}class hr extends n.Plugin{static get requires(){return[w]}static get pluginName(){return"ImageResizeEditing"}constructor(ct){super(ct),ct.config.define("image",{resizeUnit:"%",resizeOptions:[{name:"resizeImage:original",value:null,icon:"original"},{name:"resizeImage:25",value:"25",icon:"small"},{name:"resizeImage:50",value:"50",icon:"medium"},{name:"resizeImage:75",value:"75",icon:"large"}]})}init(){const ct=this.editor,Zt=new dr(ct);this._registerSchema(),this._registerConverters("imageBlock"),this._registerConverters("imageInline"),ct.commands.add("resizeImage",Zt),ct.commands.add("imageResize",Zt)}_registerSchema(){this.editor.plugins.has("ImageBlockEditing")&&this.editor.model.schema.extend("imageBlock",{allowAttributes:"width"}),this.editor.plugins.has("ImageInlineEditing")&&this.editor.model.schema.extend("imageInline",{allowAttributes:"width"})}_registerConverters(ct){const Zt=this.editor;Zt.conversion.for("downcast").add(Cn=>Cn.on(`attribute:width:${ct}`,(Pn,Kn,Rt)=>{if(!Rt.consumable.consume(Kn.item,Pn.name))return;const Ke=Rt.writer,Oe=Rt.mapper.toViewElement(Kn.item);Kn.attributeNewValue!==null?(Ke.setStyle("width",Kn.attributeNewValue,Oe),Ke.addClass("image_resized",Oe)):(Ke.removeStyle("width",Oe),Ke.removeClass("image_resized",Oe))})),Zt.conversion.for("upcast").attributeToAttribute({view:{name:ct==="imageBlock"?"figure":"img",styles:{width:/.+/}},model:{key:"width",value:Cn=>Cn.getStyle("width")}})}}const Mr={small:n.icons.objectSizeSmall,medium:n.icons.objectSizeMedium,large:n.icons.objectSizeLarge,original:n.icons.objectSizeFull};class rr extends n.Plugin{static get requires(){return[hr]}static get pluginName(){return"ImageResizeButtons"}constructor(ct){super(ct),this._resizeUnit=ct.config.get("image.resizeUnit")}init(){const ct=this.editor,Zt=ct.config.get("image.resizeOptions"),Cn=ct.commands.get("resizeImage");this.bind("isEnabled").to(Cn);for(const Pn of Zt)this._registerImageResizeButton(Pn);this._registerImageResizeDropdown(Zt)}_registerImageResizeButton(ct){const Zt=this.editor,{name:Cn,value:Pn,icon:Kn}=ct,Rt=Pn?Pn+this._resizeUnit:null;Zt.ui.componentFactory.add(Cn,Ke=>{const Oe=new D.ButtonView(Ke),Ge=Zt.commands.get("resizeImage"),Ft=this._getOptionLabelValue(ct,!0);if(!Mr[Kn])throw new p.CKEditorError("imageresizebuttons-missing-icon",Zt,ct);return Oe.set({label:Ft,icon:Mr[Kn],tooltip:Ft,isToggleable:!0}),Oe.bind("isEnabled").to(this),Oe.bind("isOn").to(Ge,"value",Cr(Rt)),this.listenTo(Oe,"execute",()=>{Zt.execute("resizeImage",{width:Rt})}),Oe})}_registerImageResizeDropdown(ct){const Zt=this.editor,Cn=Zt.t,Pn=ct.find(Rt=>!Rt.value),Kn=Rt=>{const Ke=Zt.commands.get("resizeImage"),Oe=(0,D.createDropdown)(Rt,D.DropdownButtonView),Ge=Oe.buttonView;return Ge.set({tooltip:Cn("Resize image"),commandValue:Pn.value,icon:Mr.medium,isToggleable:!0,label:this._getOptionLabelValue(Pn),withText:!0,class:"ck-resize-image-button"}),Ge.bind("label").to(Ke,"value",Ft=>Ft&&Ft.width?Ft.width:this._getOptionLabelValue(Pn)),Oe.bind("isOn").to(Ke),Oe.bind("isEnabled").to(this),(0,D.addListToDropdown)(Oe,()=>this._getResizeDropdownListItemDefinitions(ct,Ke),{ariaLabel:Cn("Image resize list")}),this.listenTo(Oe,"execute",Ft=>{Zt.execute(Ft.source.commandName,{width:Ft.source.commandValue}),Zt.editing.view.focus()}),Oe};Zt.ui.componentFactory.add("resizeImage",Kn),Zt.ui.componentFactory.add("imageResize",Kn)}_getOptionLabelValue(ct,Zt){const Cn=this.editor.t;return ct.label?ct.label:Zt?ct.value?Cn("Resize image to %0",ct.value+this._resizeUnit):Cn("Resize image to the original size"):ct.value?ct.value+this._resizeUnit:Cn("Original")}_getResizeDropdownListItemDefinitions(ct,Zt){const Cn=new p.Collection;return ct.map(Pn=>{const Kn=Pn.value?Pn.value+this._resizeUnit:null,Rt={type:"button",model:new D.Model({commandName:"resizeImage",commandValue:Kn,label:this._getOptionLabelValue(Pn),withText:!0,icon:null})};Rt.model.bind("isOn").to(Zt,"value",Cr(Kn)),Cn.add(Rt)}),Cn}}function Cr(On){return ct=>On===null&&ct===On||ct&&ct.width===On}const Ur=/(image|image-inline)/,$r="image_resized";class li extends n.Plugin{static get requires(){return[d.WidgetResize]}static get pluginName(){return"ImageResizeHandles"}init(){const ct=this.editor.commands.get("resizeImage");this.bind("isEnabled").to(ct),this._setupResizerCreator()}_setupResizerCreator(){const ct=this.editor,Zt=ct.editing.view;Zt.addObserver(q),this.listenTo(Zt.document,"imageLoaded",(Cn,Pn)=>{if(!Pn.target.matches("figure.image.ck-widget > img,figure.image.ck-widget > picture > img,figure.image.ck-widget > a > img,figure.image.ck-widget > a > picture > img,span.image-inline.ck-widget > img,span.image-inline.ck-widget > picture > img"))return;const Kn=ct.editing.view.domConverter,Rt=Kn.domToView(Pn.target).findAncestor({classes:Ur});let Ke=this.editor.plugins.get(d.WidgetResize).getResizerByViewElement(Rt);if(Ke)return void Ke.redraw();const Oe=ct.editing.mapper,Ge=Oe.toModelElement(Rt);Ke=ct.plugins.get(d.WidgetResize).attachTo({unit:ct.config.get("image.resizeUnit"),modelElement:Ge,viewElement:Rt,editor:ct,getHandleHost:Ft=>Ft.querySelector("img"),getResizeHost:()=>Kn.mapViewToDom(Oe.toViewElement(Ge.parent)),isCentered(){const Ft=Ge.getAttribute("imageStyle");return!Ft||Ft=="block"||Ft=="alignCenter"},onCommit(Ft){Zt.change(Qt=>{Qt.removeClass($r,Rt)}),ct.execute("resizeImage",{width:Ft})}}),Ke.on("updateSize",()=>{Rt.hasClass($r)||Zt.change(Ft=>{Ft.addClass($r,Rt)})}),Ke.bind("isEnabled").to(this)})}}var ri=t(601),Bt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};T()(ri.Z,Bt),ri.Z.locals;class Et extends n.Plugin{static get requires(){return[hr,li,rr]}static get pluginName(){return"ImageResize"}}class bn extends n.Command{constructor(ct,Zt){super(ct),this._defaultStyles={imageBlock:!1,imageInline:!1},this._styles=new Map(Zt.map(Cn=>{if(Cn.isDefault)for(const Pn of Cn.modelElements)this._defaultStyles[Pn]=Cn.name;return[Cn.name,Cn]}))}refresh(){const ct=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!ct,this.isEnabled?ct.hasAttribute("imageStyle")?this.value=ct.getAttribute("imageStyle"):this.value=this._defaultStyles[ct.name]:this.value=!1}execute(ct={}){const Zt=this.editor,Cn=Zt.model,Pn=Zt.plugins.get("ImageUtils");Cn.change(Kn=>{const Rt=ct.value;let Ke=Pn.getClosestSelectedImageElement(Cn.document.selection);Rt&&this.shouldConvertImageType(Rt,Ke)&&(this.editor.execute(Pn.isBlockImage(Ke)?"imageTypeInline":"imageTypeBlock"),Ke=Pn.getClosestSelectedImageElement(Cn.document.selection)),!Rt||this._styles.get(Rt).isDefault?Kn.removeAttribute("imageStyle",Ke):Kn.setAttribute("imageStyle",Rt,Ke)})}shouldConvertImageType(ct,Zt){return!this._styles.get(ct).modelElements.includes(Zt.name)}}const{objectFullWidth:cn,objectInline:Yn,objectLeft:on,objectRight:ze,objectCenter:Le,objectBlockLeft:Ht,objectBlockRight:Mn}=n.icons,tr={get inline(){return{name:"inline",title:"In line",icon:Yn,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:on,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:Ht,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:Le,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:ze,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:Mn,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:Le,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:ze,modelElements:["imageBlock"],className:"image-style-side"}}},Sr={full:cn,left:Ht,right:Mn,center:Le,inlineLeft:on,inlineRight:ze,inline:Yn},Xr=[{name:"imageStyle:wrapText",title:"Wrap text",defaultItem:"imageStyle:alignLeft",items:["imageStyle:alignLeft","imageStyle:alignRight"]},{name:"imageStyle:breakText",title:"Break text",defaultItem:"imageStyle:block",items:["imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"]}];function gi(On){(0,p.logWarning)("image-style-configuration-definition-invalid",On)}const Pi={normalizeStyles:function(On){return(On.configuredStyles.options||[]).map(ct=>function(Zt){return Zt=typeof Zt=="string"?tr[Zt]?{...tr[Zt]}:{name:Zt}:function(Cn,Pn){const Kn={...Pn};for(const Rt in Cn)Object.prototype.hasOwnProperty.call(Pn,Rt)||(Kn[Rt]=Cn[Rt]);return Kn}(tr[Zt.name],Zt),typeof Zt.icon=="string"&&(Zt.icon=Sr[Zt.icon]||Zt.icon),Zt}(ct)).filter(ct=>function(Zt,{isBlockPluginLoaded:Cn,isInlinePluginLoaded:Pn}){const{modelElements:Kn,name:Rt}=Zt;if(!(Kn&&Kn.length&&Rt))return gi({style:Zt}),!1;{const Ke=[Cn?"imageBlock":null,Pn?"imageInline":null];if(!Kn.some(Oe=>Ke.includes(Oe)))return(0,p.logWarning)("image-style-missing-dependency",{style:Zt,missingPlugins:Kn.map(Oe=>Oe==="imageBlock"?"ImageBlockEditing":"ImageInlineEditing")}),!1}return!0}(ct,On))},getDefaultStylesConfiguration:function(On,ct){return On&&ct?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:On?{options:["block","side"]}:ct?{options:["inline","alignLeft","alignRight"]}:{}},getDefaultDropdownDefinitions:function(On){return On.has("ImageBlockEditing")&&On.has("ImageInlineEditing")?[...Xr]:[]},warnInvalidStyle:gi,DEFAULT_OPTIONS:tr,DEFAULT_ICONS:Sr,DEFAULT_DROPDOWN_DEFINITIONS:Xr};function ii(On,ct){for(const Zt of ct)if(Zt.name===On)return Zt}class vr extends n.Plugin{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[w]}init(){const{normalizeStyles:ct,getDefaultStylesConfiguration:Zt}=Pi,Cn=this.editor,Pn=Cn.plugins.has("ImageBlockEditing"),Kn=Cn.plugins.has("ImageInlineEditing");Cn.config.define("image.styles",Zt(Pn,Kn)),this.normalizedStyles=ct({configuredStyles:Cn.config.get("image.styles"),isBlockPluginLoaded:Pn,isInlinePluginLoaded:Kn}),this._setupConversion(Pn,Kn),this._setupPostFixer(),Cn.commands.add("imageStyle",new bn(Cn,this.normalizedStyles))}_setupConversion(ct,Zt){const Cn=this.editor,Pn=Cn.model.schema,Kn=(Rt=this.normalizedStyles,(Oe,Ge,Ft)=>{if(!Ft.consumable.consume(Ge.item,Oe.name))return;const Qt=ii(Ge.attributeNewValue,Rt),wn=ii(Ge.attributeOldValue,Rt),Gn=Ft.mapper.toViewElement(Ge.item),ir=Ft.writer;wn&&ir.removeClass(wn.className,Gn),Qt&&ir.addClass(Qt.className,Gn)});var Rt;const Ke=function(Oe){const Ge={imageInline:Oe.filter(Ft=>!Ft.isDefault&&Ft.modelElements.includes("imageInline")),imageBlock:Oe.filter(Ft=>!Ft.isDefault&&Ft.modelElements.includes("imageBlock"))};return(Ft,Qt,wn)=>{if(!Qt.modelRange)return;const Gn=Qt.viewItem,ir=(0,p.first)(Qt.modelRange.getItems());if(ir&&wn.schema.checkAttribute(ir,"imageStyle"))for(const br of Ge[ir.name])wn.consumable.consume(Gn,{classes:br.className})&&wn.writer.setAttribute("imageStyle",br.name,ir)}}(this.normalizedStyles);Cn.editing.downcastDispatcher.on("attribute:imageStyle",Kn),Cn.data.downcastDispatcher.on("attribute:imageStyle",Kn),ct&&(Pn.extend("imageBlock",{allowAttributes:"imageStyle"}),Cn.data.upcastDispatcher.on("element:figure",Ke,{priority:"low"})),Zt&&(Pn.extend("imageInline",{allowAttributes:"imageStyle"}),Cn.data.upcastDispatcher.on("element:img",Ke,{priority:"low"}))}_setupPostFixer(){const ct=this.editor,Zt=ct.model.document,Cn=ct.plugins.get(w),Pn=new Map(this.normalizedStyles.map(Kn=>[Kn.name,Kn]));Zt.registerPostFixer(Kn=>{let Rt=!1;for(const Ke of Zt.differ.getChanges())if(Ke.type=="insert"||Ke.type=="attribute"&&Ke.attributeKey=="imageStyle"){let Oe=Ke.type=="insert"?Ke.position.nodeAfter:Ke.range.start.nodeAfter;if(Oe&&Oe.is("element","paragraph")&&Oe.childCount>0&&(Oe=Oe.getChild(0)),!Cn.isImage(Oe))continue;const Ge=Oe.getAttribute("imageStyle");if(!Ge)continue;const Ft=Pn.get(Ge);Ft&&Ft.modelElements.includes(Oe.name)||(Kn.removeAttribute("imageStyle",Oe),Rt=!0)}return Rt})}}const at=function(On){var ct=typeof On;return On!=null&&(ct=="object"||ct=="function")},it=function(On){return On};var Re=t(29),ke={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};T()(Re.Z,ke),Re.Z.locals;class Pe extends n.Plugin{static get requires(){return[vr]}static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const ct=this.editor.t;return{"Wrap text":ct("Wrap text"),"Break text":ct("Break text"),"In line":ct("In line"),"Full size image":ct("Full size image"),"Side image":ct("Side image"),"Left aligned image":ct("Left aligned image"),"Centered image":ct("Centered image"),"Right aligned image":ct("Right aligned image")}}init(){const ct=this.editor.plugins,Zt=this.editor.config.get("image.toolbar")||[],Cn=Te(ct.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(const Kn of Cn)this._createButton(Kn);const Pn=Te([...Zt.filter(at),...Pi.getDefaultDropdownDefinitions(ct)],this.localizedDefaultStylesTitles);for(const Kn of Pn)this._createDropdown(Kn,Cn)}_createDropdown(ct,Zt){const Cn=this.editor.ui.componentFactory;Cn.add(ct.name,Pn=>{let Kn;const{defaultItem:Rt,items:Ke,title:Oe}=ct,Ge=Ke.filter(Gn=>Zt.find(({name:ir})=>Mt(ir)===Gn)).map(Gn=>{const ir=Cn.create(Gn);return Gn===Rt&&(Kn=ir),ir});Ke.length!==Ge.length&&Pi.warnInvalidStyle({dropdown:ct});const Ft=(0,D.createDropdown)(Pn,D.SplitButtonView),Qt=Ft.buttonView,wn=Qt.arrowView;return(0,D.addToolbarToDropdown)(Ft,Ge,{enableActiveItemFocusOnDropdownOpen:!0}),Qt.set({label:qt(Oe,Kn.label),class:null,tooltip:!0}),wn.unbind("label"),wn.set({label:Oe}),Qt.bind("icon").toMany(Ge,"isOn",(...Gn)=>{const ir=Gn.findIndex(it);return ir<0?Kn.icon:Ge[ir].icon}),Qt.bind("label").toMany(Ge,"isOn",(...Gn)=>{const ir=Gn.findIndex(it);return qt(Oe,ir<0?Kn.label:Ge[ir].label)}),Qt.bind("isOn").toMany(Ge,"isOn",(...Gn)=>Gn.some(it)),Qt.bind("class").toMany(Ge,"isOn",(...Gn)=>Gn.some(it)?"ck-splitbutton_flatten":null),Qt.on("execute",()=>{Ge.some(({isOn:Gn})=>Gn)?Ft.isOpen=!Ft.isOpen:Kn.fire("execute")}),Ft.bind("isEnabled").toMany(Ge,"isEnabled",(...Gn)=>Gn.some(it)),this.listenTo(Ft,"execute",()=>{this.editor.editing.view.focus()}),Ft})}_createButton(ct){const Zt=ct.name;this.editor.ui.componentFactory.add(Mt(Zt),Cn=>{const Pn=this.editor.commands.get("imageStyle"),Kn=new D.ButtonView(Cn);return Kn.set({label:ct.title,icon:ct.icon,tooltip:!0,isToggleable:!0}),Kn.bind("isEnabled").to(Pn,"isEnabled"),Kn.bind("isOn").to(Pn,"value",Rt=>Rt===Zt),Kn.on("execute",this._executeCommand.bind(this,Zt)),Kn})}_executeCommand(ct){this.editor.execute("imageStyle",{value:ct}),this.editor.editing.view.focus()}}function Te(On,ct){for(const Zt of On)ct[Zt.title]&&(Zt.title=ct[Zt.title]);return On}function Mt(On){return`imageStyle:${On}`}function qt(On,ct){return(On?On+": ":"")+ct}class Rn extends n.Plugin{static get requires(){return[vr,Pe]}static get pluginName(){return"ImageStyle"}}class Qn extends n.Plugin{static get requires(){return[d.WidgetToolbarRepository,w]}static get pluginName(){return"ImageToolbar"}afterInit(){const ct=this.editor,Zt=ct.t,Cn=ct.plugins.get(d.WidgetToolbarRepository),Pn=ct.plugins.get("ImageUtils");var Kn;Cn.register("image",{ariaLabel:Zt("Image toolbar"),items:(Kn=ct.config.get("image.toolbar")||[],Kn.map(Rt=>at(Rt)?Rt.name:Rt)),getRelatedElement:Rt=>Pn.getClosestSelectedImageWidget(Rt)})}}class ur extends n.Plugin{static get requires(){return[pe,w]}static get pluginName(){return"PictureEditing"}afterInit(){const ct=this.editor;ct.plugins.has("ImageBlockEditing")&&ct.model.schema.extend("imageBlock",{allowAttributes:["sources"]}),ct.plugins.has("ImageInlineEditing")&&ct.model.schema.extend("imageInline",{allowAttributes:["sources"]}),this._setupConversion(),this._setupImageUploadEditingIntegration()}_setupConversion(){const ct=this.editor,Zt=ct.conversion,Cn=ct.plugins.get("ImageUtils");Zt.for("upcast").add(function(Pn){const Kn=["srcset","media","type","sizes"];return Ke=>{Ke.on("element:picture",Rt)};function Rt(Ke,Oe,Ge){const Ft=Oe.viewItem;if(!Ge.consumable.test(Ft,{name:!0}))return;const Qt=new Map;for(const ir of Ft.getChildren())if(ir.is("element","source")){const br={};for(const fr of Kn)ir.hasAttribute(fr)&&Ge.consumable.test(ir,{attributes:fr})&&(br[fr]=ir.getAttribute(fr));Object.keys(br).length&&Qt.set(ir,br)}const wn=Pn.findViewImgElement(Ft);if(!wn)return;let Gn=Oe.modelCursor.parent;if(!Gn.is("element","imageBlock")){const ir=Ge.convertItem(wn,Oe.modelCursor);Oe.modelRange=ir.modelRange,Oe.modelCursor=ir.modelCursor,Gn=(0,p.first)(ir.modelRange.getItems())}Ge.consumable.consume(Ft,{name:!0});for(const[ir,br]of Qt)Ge.consumable.consume(ir,{attributes:Object.keys(br)});Qt.size&&Ge.writer.setAttribute("sources",Array.from(Qt.values()),Gn),Ge.convertChildren(Ft,Gn)}}(Cn)),Zt.for("downcast").add(function(Pn){return Rt=>{Rt.on("attribute:sources:imageBlock",Kn),Rt.on("attribute:sources:imageInline",Kn)};function Kn(Rt,Ke,Oe){if(!Oe.consumable.consume(Ke.item,Rt.name))return;const Ge=Oe.writer,Ft=Oe.mapper.toViewElement(Ke.item),Qt=Pn.findViewImgElement(Ft);if(Ke.attributeNewValue&&Ke.attributeNewValue.length){const wn=Ge.createContainerElement("picture",null,Ke.attributeNewValue.map(br=>Ge.createEmptyElement("source",br))),Gn=[];let ir=Qt.parent;for(;ir&&ir.is("attributeElement");){const br=ir.parent;Ge.unwrap(Ge.createRangeOn(Qt),ir),Gn.unshift(ir),ir=br}Ge.insert(Ge.createPositionBefore(Qt),wn),Ge.move(Ge.createRangeOn(Qt),Ge.createPositionAt(wn,"end"));for(const br of Gn)Ge.wrap(Ge.createRangeOn(wn),br)}else if(Qt.parent.is("element","picture")){const wn=Qt.parent;Ge.move(Ge.createRangeOn(Qt),Ge.createPositionBefore(wn)),Ge.remove(wn)}}}(Cn))}_setupImageUploadEditingIntegration(){const ct=this.editor;ct.plugins.has("ImageUploadEditing")&&this.listenTo(ct.plugins.get("ImageUploadEditing"),"uploadComplete",(Zt,{imageElement:Cn,data:Pn})=>{const Kn=Pn.sources;Kn&&ct.model.change(Rt=>{Rt.setAttributes({sources:Kn},Cn)})})}}})(),(window.CKEditor5=window.CKEditor5||{}).image=r})()},64621:()=>{(function(Z){const v=Z.en=Z.en||{};v.dictionary=Object.assign(v.dictionary||{},{"Decrease indent":"Decrease indent","Increase indent":"Increase indent"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),(()=>{var Z={704:(n,s,a)=>{n.exports=a(79)("./src/core.js")},492:(n,s,a)=>{n.exports=a(79)("./src/engine.js")},273:(n,s,a)=>{n.exports=a(79)("./src/ui.js")},209:(n,s,a)=>{n.exports=a(79)("./src/utils.js")},79:n=>{"use strict";n.exports=CKEditor5.dll}},v={};function t(n){var s=v[n];if(s!==void 0)return s.exports;var a=v[n]={exports:{}};return Z[n](a,a.exports,t),a.exports}t.d=(n,s)=>{for(var a in s)t.o(s,a)&&!t.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:s[a]})},t.o=(n,s)=>Object.prototype.hasOwnProperty.call(n,s),t.r=n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var r={};(()=>{"use strict";t.r(r),t.d(r,{Indent:()=>d,IndentBlock:()=>U,IndentEditing:()=>s,IndentUI:()=>p});var n=t(704);class s extends n.Plugin{static get pluginName(){return"IndentEditing"}init(){const N=this.editor;N.commands.add("indent",new n.MultiCommand(N)),N.commands.add("outdent",new n.MultiCommand(N))}}var a=t(273);const c='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zM1.632 6.95 5.02 9.358a.4.4 0 0 1-.013.661l-3.39 2.207A.4.4 0 0 1 1 11.892V7.275a.4.4 0 0 1 .632-.326z"/></svg>',h='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zm1.618-9.55L.98 9.358a.4.4 0 0 0 .013.661l3.39 2.207A.4.4 0 0 0 5 11.892V7.275a.4.4 0 0 0-.632-.326z"/></svg>';class p extends n.Plugin{static get pluginName(){return"IndentUI"}init(){const N=this.editor,D=N.locale,x=N.t,T=D.uiLanguageDirection=="ltr"?c:h,u=D.uiLanguageDirection=="ltr"?h:c;this._defineButton("indent",x("Increase indent"),T),this._defineButton("outdent",x("Decrease indent"),u)}_defineButton(N,D,x){const T=this.editor;T.ui.componentFactory.add(N,u=>{const b=T.commands.get(N),E=new a.ButtonView(u);return E.set({label:D,icon:x,tooltip:!0}),E.bind("isOn","isEnabled").to(b,"value","isEnabled"),this.listenTo(E,"execute",()=>{T.execute(N),T.editing.view.focus()}),E})}}class d extends n.Plugin{static get pluginName(){return"Indent"}static get requires(){return[s,p]}}var k=t(492),M=t(209);class C extends n.Command{constructor(N,D){super(N),this._indentBehavior=D}refresh(){const N=this.editor.model,D=(0,M.first)(N.document.selection.getSelectedBlocks());D&&N.schema.checkAttribute(D,"blockIndent")?this.isEnabled=this._indentBehavior.checkEnabled(D.getAttribute("blockIndent")):this.isEnabled=!1}execute(){const N=this.editor.model,D=function(x){const T=x.document.selection,u=x.schema;return Array.from(T.getSelectedBlocks()).filter(b=>u.checkAttribute(b,"blockIndent"))}(N);N.change(x=>{for(const T of D){const u=T.getAttribute("blockIndent"),b=this._indentBehavior.getNextIndent(u);b?x.setAttribute("blockIndent",b,T):x.removeAttribute("blockIndent",T)}})}}class w{constructor(N){this.isForward=N.direction==="forward",this.offset=N.offset,this.unit=N.unit}checkEnabled(N){const D=parseFloat(N||0);return this.isForward||D>0}getNextIndent(N){const D=parseFloat(N||0);if(!(!N||N.endsWith(this.unit)))return this.isForward?this.offset+this.unit:void 0;const x=D+(this.isForward?this.offset:-this.offset);return x>0?x+this.unit:void 0}}class I{constructor(N){this.isForward=N.direction==="forward",this.classes=N.classes}checkEnabled(N){const D=this.classes.indexOf(N);return this.isForward?D<this.classes.length-1:D>=0}getNextIndent(N){const D=this.classes.indexOf(N),x=this.isForward?1:-1;return this.classes[D+x]}}const F=["paragraph","heading1","heading2","heading3","heading4","heading5","heading6"];class U extends n.Plugin{constructor(N){super(N),N.config.define("indentBlock",{offset:40,unit:"px"})}static get pluginName(){return"IndentBlock"}init(){const N=this.editor,D=N.config.get("indentBlock"),x=!D.classes||!D.classes.length,T=Object.assign({direction:"forward"},D),u=Object.assign({direction:"backward"},D);x?(N.data.addStyleProcessorRules(k.addMarginRules),this._setupConversionUsingOffset(N.conversion),N.commands.add("indentBlock",new C(N,new w(T))),N.commands.add("outdentBlock",new C(N,new w(u)))):(this._setupConversionUsingClasses(D.classes),N.commands.add("indentBlock",new C(N,new I(T))),N.commands.add("outdentBlock",new C(N,new I(u))))}afterInit(){const N=this.editor,D=N.model.schema,x=N.commands.get("indent"),T=N.commands.get("outdent"),u=N.config.get("heading.options");(u&&u.map(b=>b.model)||F).forEach(b=>{D.isRegistered(b)&&D.extend(b,{allowAttributes:"blockIndent"})}),D.setAttributeProperties("blockIndent",{isFormatting:!0}),x.registerChildCommand(N.commands.get("indentBlock")),T.registerChildCommand(N.commands.get("outdentBlock"))}_setupConversionUsingOffset(){const N=this.editor.conversion,D=this.editor.locale.contentLanguageDirection==="rtl"?"margin-right":"margin-left";N.for("upcast").attributeToAttribute({view:{styles:{[D]:/[\s\S]+/}},model:{key:"blockIndent",value:x=>x.getStyle(D)}}),N.for("downcast").attributeToAttribute({model:"blockIndent",view:x=>({key:"style",value:{[D]:x}})})}_setupConversionUsingClasses(N){const D={model:{key:"blockIndent",values:[]},view:{}};for(const x of N)D.model.values.push(x),D.view[x]={key:"class",value:[x]};this.editor.conversion.attributeToAttribute(D)}}})(),(window.CKEditor5=window.CKEditor5||{}).indent=r})()},2750:()=>{(function(Z){const v=Z.en=Z.en||{};v.dictionary=Object.assign(v.dictionary||{},{"Choose language":"Choose language",Language:"Language","Remove language":"Remove language"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),(()=>{var Z={176:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,".ck-content span[lang]{font-style:italic}",""]);const p=h},609:n=>{"use strict";n.exports=function(s){var a=[];return a.toString=function(){return this.map(function(c){var h=s(c);return c[2]?"@media ".concat(c[2]," {").concat(h,"}"):h}).join("")},a.i=function(c,h,p){typeof c=="string"&&(c=[[null,c,""]]);var d={};if(p)for(var k=0;k<this.length;k++){var M=this[k][0];M!=null&&(d[M]=!0)}for(var C=0;C<c.length;C++){var w=[].concat(c[C]);p&&d[w[0]]||(h&&(w[2]?w[2]="".concat(h," and ").concat(w[2]):w[2]=h),a.push(w))}},a}},62:(n,s,a)=>{"use strict";var c,h=function(){return c===void 0&&(c=Boolean(window&&document&&document.all&&!window.atob)),c},p=function(){var x={};return function(T){if(x[T]===void 0){var u=document.querySelector(T);if(window.HTMLIFrameElement&&u instanceof window.HTMLIFrameElement)try{u=u.contentDocument.head}catch{u=null}x[T]=u}return x[T]}}(),d=[];function k(x){for(var T=-1,u=0;u<d.length;u++)if(d[u].identifier===x){T=u;break}return T}function M(x,T){for(var u={},b=[],E=0;E<x.length;E++){var A=x[E],R=T.base?A[0]+T.base:A[0],H=u[R]||0,z="".concat(R," ").concat(H);u[R]=H+1;var V=k(z),$={css:A[1],media:A[2],sourceMap:A[3]};V!==-1?(d[V].references++,d[V].updater($)):d.push({identifier:z,updater:D($,T),references:1}),b.push(z)}return b}function C(x){var T=document.createElement("style"),u=x.attributes||{};if(u.nonce===void 0){var b=a.nc;b&&(u.nonce=b)}if(Object.keys(u).forEach(function(A){T.setAttribute(A,u[A])}),typeof x.insert=="function")x.insert(T);else{var E=p(x.insert||"head");if(!E)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");E.appendChild(T)}return T}var w,I=(w=[],function(x,T){return w[x]=T,w.filter(Boolean).join(`
`)});function F(x,T,u,b){var E=u?"":b.media?"@media ".concat(b.media," {").concat(b.css,"}"):b.css;if(x.styleSheet)x.styleSheet.cssText=I(T,E);else{var A=document.createTextNode(E),R=x.childNodes;R[T]&&x.removeChild(R[T]),R.length?x.insertBefore(A,R[T]):x.appendChild(A)}}function U(x,T,u){var b=u.css,E=u.media,A=u.sourceMap;if(E?x.setAttribute("media",E):x.removeAttribute("media"),A&&typeof btoa<"u"&&(b+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(A))))," */")),x.styleSheet)x.styleSheet.cssText=b;else{for(;x.firstChild;)x.removeChild(x.firstChild);x.appendChild(document.createTextNode(b))}}var B=null,N=0;function D(x,T){var u,b,E;if(T.singleton){var A=N++;u=B||(B=C(T)),b=F.bind(null,u,A,!1),E=F.bind(null,u,A,!0)}else u=C(T),b=U.bind(null,u,T),E=function(){(function(R){if(R.parentNode===null)return!1;R.parentNode.removeChild(R)})(u)};return b(x),function(R){if(R){if(R.css===x.css&&R.media===x.media&&R.sourceMap===x.sourceMap)return;b(x=R)}else E()}}n.exports=function(x,T){(T=T||{}).singleton||typeof T.singleton=="boolean"||(T.singleton=h());var u=M(x=x||[],T);return function(b){if(b=b||[],Object.prototype.toString.call(b)==="[object Array]"){for(var E=0;E<u.length;E++){var A=k(u[E]);d[A].references--}for(var R=M(b,T),H=0;H<u.length;H++){var z=k(u[H]);d[z].references===0&&(d[z].updater(),d.splice(z,1))}u=R}}}},704:(n,s,a)=>{n.exports=a(79)("./src/core.js")},273:(n,s,a)=>{n.exports=a(79)("./src/ui.js")},209:(n,s,a)=>{n.exports=a(79)("./src/utils.js")},79:n=>{"use strict";n.exports=CKEditor5.dll}},v={};function t(n){var s=v[n];if(s!==void 0)return s.exports;var a=v[n]={id:n,exports:{}};return Z[n](a,a.exports,t),a.exports}t.n=n=>{var s=n&&n.__esModule?()=>n.default:()=>n;return t.d(s,{a:s}),s},t.d=(n,s)=>{for(var a in s)t.o(s,a)&&!t.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:s[a]})},t.o=(n,s)=>Object.prototype.hasOwnProperty.call(n,s),t.r=n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.nc=void 0;var r={};(()=>{"use strict";t.r(r),t.d(r,{TextPartLanguage:()=>I,TextPartLanguageEditing:()=>h,TextPartLanguageUI:()=>w});var n=t(704),s=t(209);function a(F,U){return`${F}:${U=U||(0,s.getLanguageDirection)(F)}`}class c extends n.Command{refresh(){const U=this.editor.model,B=U.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=U.schema.checkAttributeInSelection(B.selection,"language")}execute({languageCode:U,textDirection:B}={}){const N=this.editor.model,D=N.document.selection,x=!!U&&a(U,B);N.change(T=>{if(D.isCollapsed)x?T.setSelectionAttribute("language",x):T.removeSelectionAttribute("language");else{const u=N.schema.getValidRanges(D.getRanges(),"language");for(const b of u)x?T.setAttribute("language",x,b):T.removeAttribute("language",b)}})}_getValueFromFirstAllowedNode(){const U=this.editor.model,B=U.schema,N=U.document.selection;if(N.isCollapsed)return N.getAttribute("language")||!1;for(const D of N.getRanges())for(const x of D.getItems())if(B.checkAttribute(x,"language"))return x.getAttribute("language")||!1;return!1}}class h extends n.Plugin{static get pluginName(){return"TextPartLanguageEditing"}constructor(U){super(U),U.config.define("language",{textPartLanguage:[{title:"Arabic",languageCode:"ar"},{title:"French",languageCode:"fr"},{title:"Spanish",languageCode:"es"}]})}init(){const U=this.editor;U.model.schema.extend("$text",{allowAttributes:"language"}),U.model.schema.setAttributeProperties("language",{copyOnEnter:!0}),this._defineConverters(),U.commands.add("textPartLanguage",new c(U))}_defineConverters(){const U=this.editor.conversion;U.for("upcast").elementToAttribute({model:{key:"language",value:B=>a(B.getAttribute("lang"),B.getAttribute("dir"))},view:{name:"span",attributes:{lang:/[\s\S]+/}}}),U.for("downcast").attributeToElement({model:"language",view:(B,{writer:N},D)=>{if(!B||!D.item.is("$textProxy")&&!D.item.is("documentSelection"))return;const{languageCode:x,textDirection:T}=function(u){const[b,E]=u.split(":");return{languageCode:b,textDirection:E}}(B);return N.createAttributeElement("span",{lang:x,dir:T})}})}}var p=t(273),d=t(62),k=t.n(d),M=t(176),C={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};k()(M.Z,C),M.Z.locals;class w extends n.Plugin{static get pluginName(){return"TextPartLanguageUI"}init(){const U=this.editor,B=U.t,N=U.config.get("language.textPartLanguage"),D=B("Choose language"),x=B("Remove language"),T=B("Language");U.ui.componentFactory.add("textPartLanguage",u=>{const b=new s.Collection,E={},A=U.commands.get("textPartLanguage");b.add({type:"button",model:new p.Model({label:x,languageCode:!1,withText:!0})}),b.add({type:"separator"});for(const H of N){const z={type:"button",model:new p.Model({label:H.title,languageCode:H.languageCode,textDirection:H.textDirection,withText:!0})},V=a(H.languageCode,H.textDirection);z.model.bind("isOn").to(A,"value",$=>$===V),b.add(z),E[V]=H.title}const R=(0,p.createDropdown)(u);return(0,p.addListToDropdown)(R,b),R.buttonView.set({isOn:!1,withText:!0,tooltip:T}),R.extendTemplate({attributes:{class:["ck-text-fragment-language-dropdown"]}}),R.bind("isEnabled").to(A,"isEnabled"),R.buttonView.bind("label").to(A,"value",H=>H&&E[H]||D),this.listenTo(R,"execute",H=>{A.execute({languageCode:H.source.languageCode,textDirection:H.source.textDirection}),U.editing.view.focus()}),R})}}class I extends n.Plugin{static get requires(){return[h,w]}static get pluginName(){return"TextPartLanguage"}}})(),(window.CKEditor5=window.CKEditor5||{}).language=r})()},4986:(Z,v,t)=>{(function(r){const n=r.en=r.en||{};n.dictionary=Object.assign(n.dictionary||{},{Downloadable:"Downloadable","Edit link":"Edit link",Link:"Link","Link image":"Link image","Link URL":"Link URL","Open in a new tab":"Open in a new tab","Open link in new tab":"Open link in new tab","This link has no URL":"This link has no URL",Unlink:"Unlink"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),(()=>{var r={23:(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p(609),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-link_selected span.image-inline{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}",""]);const M=k},952:(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p(609),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{color:var(--ck-color-link-default);cursor:pointer;max-width:var(--ck-input-width);min-width:3em;padding:0 var(--ck-spacing-medium);text-align:center;text-overflow:ellipsis}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{max-width:100%;min-width:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}",""]);const M=k},871:(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p(609),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{min-width:var(--ck-input-width);padding:0}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical>.ck-button{border-radius:0;margin:0;padding:var(--ck-spacing-standard);width:50%}.ck.ck-link-form_layout-vertical>.ck-button:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form_layout-vertical>.ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin:var(--ck-spacing-standard) var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}",""]);const M=k},269:(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p(609),k=p.n(d)()(function(C){return C[1]});k.push([c.id,'.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{display:block;position:absolute}:root{--ck-link-image-indicator-icon-size:20;--ck-link-image-indicator-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{background-color:rgba(0,0,0,.4);background-image:url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");background-position:50%;background-repeat:no-repeat;background-size:14px;border-radius:100%;content:"";height:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size));overflow:hidden;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);width:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size))}',""]);const M=k},764:(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p(609),k=p.n(d)()(function(C){return C[1]});k.push([c.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',""]);const M=k},609:c=>{"use strict";c.exports=function(h){var p=[];return p.toString=function(){return this.map(function(d){var k=h(d);return d[2]?"@media ".concat(d[2]," {").concat(k,"}"):k}).join("")},p.i=function(d,k,M){typeof d=="string"&&(d=[[null,d,""]]);var C={};if(M)for(var w=0;w<this.length;w++){var I=this[w][0];I!=null&&(C[I]=!0)}for(var F=0;F<d.length;F++){var U=[].concat(d[F]);M&&C[U[0]]||(k&&(U[2]?U[2]="".concat(k," and ").concat(U[2]):U[2]=k),p.push(U))}},p}},62:(c,h,p)=>{"use strict";var d,k=function(){return d===void 0&&(d=Boolean(window&&document&&document.all&&!window.atob)),d},M=function(){var b={};return function(E){if(b[E]===void 0){var A=document.querySelector(E);if(window.HTMLIFrameElement&&A instanceof window.HTMLIFrameElement)try{A=A.contentDocument.head}catch{A=null}b[E]=A}return b[E]}}(),C=[];function w(b){for(var E=-1,A=0;A<C.length;A++)if(C[A].identifier===b){E=A;break}return E}function I(b,E){for(var A={},R=[],H=0;H<b.length;H++){var z=b[H],V=E.base?z[0]+E.base:z[0],$=A[V]||0,ee="".concat(V," ").concat($);A[V]=$+1;var q=w(ee),oe={css:z[1],media:z[2],sourceMap:z[3]};q!==-1?(C[q].references++,C[q].updater(oe)):C.push({identifier:ee,updater:u(oe,E),references:1}),R.push(ee)}return R}function F(b){var E=document.createElement("style"),A=b.attributes||{};if(A.nonce===void 0){var R=p.nc;R&&(A.nonce=R)}if(Object.keys(A).forEach(function(z){E.setAttribute(z,A[z])}),typeof b.insert=="function")b.insert(E);else{var H=M(b.insert||"head");if(!H)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");H.appendChild(E)}return E}var U,B=(U=[],function(b,E){return U[b]=E,U.filter(Boolean).join(`
`)});function N(b,E,A,R){var H=A?"":R.media?"@media ".concat(R.media," {").concat(R.css,"}"):R.css;if(b.styleSheet)b.styleSheet.cssText=B(E,H);else{var z=document.createTextNode(H),V=b.childNodes;V[E]&&b.removeChild(V[E]),V.length?b.insertBefore(z,V[E]):b.appendChild(z)}}function D(b,E,A){var R=A.css,H=A.media,z=A.sourceMap;if(H?b.setAttribute("media",H):b.removeAttribute("media"),z&&typeof btoa<"u"&&(R+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(z))))," */")),b.styleSheet)b.styleSheet.cssText=R;else{for(;b.firstChild;)b.removeChild(b.firstChild);b.appendChild(document.createTextNode(R))}}var x=null,T=0;function u(b,E){var A,R,H;if(E.singleton){var z=T++;A=x||(x=F(E)),R=N.bind(null,A,z,!1),H=N.bind(null,A,z,!0)}else A=F(E),R=D.bind(null,A,E),H=function(){(function(V){if(V.parentNode===null)return!1;V.parentNode.removeChild(V)})(A)};return R(b),function(V){if(V){if(V.css===b.css&&V.media===b.media&&V.sourceMap===b.sourceMap)return;R(b=V)}else H()}}c.exports=function(b,E){(E=E||{}).singleton||typeof E.singleton=="boolean"||(E.singleton=k());var A=I(b=b||[],E);return function(R){if(R=R||[],Object.prototype.toString.call(R)==="[object Array]"){for(var H=0;H<A.length;H++){var z=w(A[H]);C[z].references--}for(var V=I(R,E),$=0;$<A.length;$++){var ee=w(A[$]);C[ee].references===0&&(C[ee].updater(),C.splice(ee,1))}A=V}}}},945:(c,h,p)=>{c.exports=p(79)("./src/clipboard.js")},704:(c,h,p)=>{c.exports=p(79)("./src/core.js")},492:(c,h,p)=>{c.exports=p(79)("./src/engine.js")},181:(c,h,p)=>{c.exports=p(79)("./src/typing.js")},273:(c,h,p)=>{c.exports=p(79)("./src/ui.js")},209:(c,h,p)=>{c.exports=p(79)("./src/utils.js")},995:(c,h,p)=>{c.exports=p(79)("./src/widget.js")},79:c=>{"use strict";c.exports=CKEditor5.dll}},n={};function s(c){var h=n[c];if(h!==void 0)return h.exports;var p=n[c]={id:c,exports:{}};return r[c](p,p.exports,s),p.exports}s.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return s.d(h,{a:h}),h},s.d=(c,h)=>{for(var p in h)s.o(h,p)&&!s.o(c,p)&&Object.defineProperty(c,p,{enumerable:!0,get:h[p]})},s.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),s.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},s.nc=void 0;var a={};(()=>{"use strict";s.r(a),s.d(a,{AutoLink:()=>ze,Link:()=>Ht,LinkEditing:()=>lt,LinkImage:()=>ii,LinkImageEditing:()=>Mn,LinkImageUI:()=>Xr,LinkUI:()=>Et});var c=s(704),h=s(492),p=s(181),d=s(945),k=s(209);class M{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(at){Array.isArray(at)?at.forEach(it=>this._definitions.add(it)):this._definitions.add(at)}getDispatcher(){return at=>{at.on("attribute:linkHref",(it,Re,ke)=>{if(!ke.consumable.test(Re.item,"attribute:linkHref")||!Re.item.is("selection")&&!ke.schema.isInline(Re.item))return;const Pe=ke.writer,Te=Pe.document.selection;for(const Mt of this._definitions){const qt=Pe.createAttributeElement("a",Mt.attributes,{priority:5});Mt.classes&&Pe.addClass(Mt.classes,qt);for(const Rn in Mt.styles)Pe.setStyle(Rn,Mt.styles[Rn],qt);Pe.setCustomProperty("link",!0,qt),Mt.callback(Re.attributeNewValue)?Re.item.is("selection")?Pe.wrap(Te.getFirstRange(),qt):Pe.wrap(ke.mapper.toViewRange(Re.range),qt):Pe.unwrap(ke.mapper.toViewRange(Re.range),qt)}},{priority:"high"})}}getDispatcherForLinkedImage(){return at=>{at.on("attribute:linkHref:imageBlock",(it,Re,{writer:ke,mapper:Pe})=>{const Te=Pe.toViewElement(Re.item),Mt=Array.from(Te.getChildren()).find(qt=>qt.name==="a");for(const qt of this._definitions){const Rn=(0,k.toMap)(qt.attributes);if(qt.callback(Re.attributeNewValue)){for(const[Qn,ur]of Rn)Qn==="class"?ke.addClass(ur,Mt):ke.setAttribute(Qn,ur,Mt);qt.classes&&ke.addClass(qt.classes,Mt);for(const Qn in qt.styles)ke.setStyle(Qn,qt.styles[Qn],Mt)}else{for(const[Qn,ur]of Rn)Qn==="class"?ke.removeClass(ur,Mt):ke.removeAttribute(Qn,Mt);qt.classes&&ke.removeClass(qt.classes,Mt);for(const Qn in qt.styles)ke.removeStyle(Qn,Mt)}}})}}}const C=function(vr,at,it){var Re=-1,ke=vr.length;at<0&&(at=-at>ke?0:ke+at),(it=it>ke?ke:it)<0&&(it+=ke),ke=at>it?0:it-at>>>0,at>>>=0;for(var Pe=Array(ke);++Re<ke;)Pe[Re]=vr[Re+at];return Pe},w=function(vr,at,it){var Re=vr.length;return it=it===void 0?Re:it,!at&&it>=Re?vr:C(vr,at,it)};var I=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const F=function(vr){return I.test(vr)},U=function(vr){return vr.split("")};var B="\\ud800-\\udfff",N="["+B+"]",D="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",x="\\ud83c[\\udffb-\\udfff]",T="[^"+B+"]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",b="[\\ud800-\\udbff][\\udc00-\\udfff]",E="(?:"+D+"|"+x+")?",A="[\\ufe0e\\ufe0f]?",R=A+E+("(?:\\u200d(?:"+[T,u,b].join("|")+")"+A+E+")*"),H="(?:"+[T+D+"?",D,u,b,N].join("|")+")",z=RegExp(x+"(?="+x+")|"+H+R,"g");const V=function(vr){return vr.match(z)||[]},$=function(vr){return F(vr)?V(vr):U(vr)},ee=typeof t.g=="object"&&t.g&&t.g.Object===Object&&t.g;var q=typeof self=="object"&&self&&self.Object===Object&&self;const oe=(ee||q||Function("return this")()).Symbol,X=function(vr,at){for(var it=-1,Re=vr==null?0:vr.length,ke=Array(Re);++it<Re;)ke[it]=at(vr[it],it,vr);return ke},pe=Array.isArray;var Ie=Object.prototype,se=Ie.hasOwnProperty,be=Ie.toString,fe=oe?oe.toStringTag:void 0;const ue=function(vr){var at=se.call(vr,fe),it=vr[fe];try{vr[fe]=void 0;var Re=!0}catch{}var ke=be.call(vr);return Re&&(at?vr[fe]=it:delete vr[fe]),ke};var we=Object.prototype.toString;const Me=function(vr){return we.call(vr)};var Ce="[object Null]",Ne="[object Undefined]",Ye=oe?oe.toStringTag:void 0;const mt=function(vr){return vr==null?vr===void 0?Ne:Ce:Ye&&Ye in Object(vr)?ue(vr):Me(vr)},Ct=function(vr){return vr!=null&&typeof vr=="object"};var ln="[object Symbol]";const $e=function(vr){return typeof vr=="symbol"||Ct(vr)&&mt(vr)==ln};var Qe=1/0,bt=oe?oe.prototype:void 0,It=bt?bt.toString:void 0;const mn=function vr(at){if(typeof at=="string")return at;if(pe(at))return X(at,vr)+"";if($e(at))return It?It.call(at):"";var it=at+"";return it=="0"&&1/at==-Qe?"-0":it},un=function(vr){return vr==null?"":mn(vr)},Be=function(vr){return function(at){at=un(at);var it=F(at)?$(at):void 0,Re=it?it[0]:at.charAt(0),ke=it?w(it,1).join(""):at.slice(1);return Re[vr]()+ke}}("toUpperCase"),je=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,$t=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,et=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,Kt=/^((\w+:(\/{2,})?)|(\W))/i,kn="Ctrl+K";function Tn(vr,{writer:at}){const it=at.createAttributeElement("a",{href:vr},{priority:5});return at.setCustomProperty("link",!0,it),it}function ht(vr){return function(at){return at.replace(je,"").match($t)}(vr=String(vr))?vr:"#"}function ot(vr,at){return!!vr&&at.checkAttribute(vr.name,"linkHref")}function Je(vr,at){const it=(Re=vr,et.test(Re)?"mailto:":at);var Re;const ke=!!it&&!wt(vr);return vr&&ke?it+vr:vr}function wt(vr){return Kt.test(vr)}function ft(vr){window.open(vr,"_blank","noopener")}class vn extends c.Command{constructor(at){super(at),this.manualDecorators=new k.Collection,this.automaticDecorators=new M}restoreManualDecoratorStates(){for(const at of this.manualDecorators)at.value=this._getDecoratorStateFromModel(at.id)}refresh(){const at=this.editor.model,it=at.document.selection,Re=it.getSelectedElement()||(0,k.first)(it.getSelectedBlocks());ot(Re,at.schema)?(this.value=Re.getAttribute("linkHref"),this.isEnabled=at.schema.checkAttribute(Re,"linkHref")):(this.value=it.getAttribute("linkHref"),this.isEnabled=at.schema.checkAttributeInSelection(it,"linkHref"));for(const ke of this.manualDecorators)ke.value=this._getDecoratorStateFromModel(ke.id)}execute(at,it={}){const Re=this.editor.model,ke=Re.document.selection,Pe=[],Te=[];for(const Mt in it)it[Mt]?Pe.push(Mt):Te.push(Mt);Re.change(Mt=>{if(ke.isCollapsed){const qt=ke.getFirstPosition();if(ke.hasAttribute("linkHref")){const Rn=(0,p.findAttributeRange)(qt,"linkHref",ke.getAttribute("linkHref"),Re);Mt.setAttribute("linkHref",at,Rn),Pe.forEach(Qn=>{Mt.setAttribute(Qn,!0,Rn)}),Te.forEach(Qn=>{Mt.removeAttribute(Qn,Rn)}),Mt.setSelection(Mt.createPositionAfter(Rn.end.nodeBefore))}else if(at!==""){const Rn=(0,k.toMap)(ke.getAttributes());Rn.set("linkHref",at),Pe.forEach(ur=>{Rn.set(ur,!0)});const{end:Qn}=Re.insertContent(Mt.createText(at,Rn),qt);Mt.setSelection(Qn)}["linkHref",...Pe,...Te].forEach(Rn=>{Mt.removeSelectionAttribute(Rn)})}else{const qt=Re.schema.getValidRanges(ke.getRanges(),"linkHref"),Rn=[];for(const ur of ke.getSelectedBlocks())Re.schema.checkAttribute(ur,"linkHref")&&Rn.push(Mt.createRangeOn(ur));const Qn=Rn.slice();for(const ur of qt)this._isRangeToUpdate(ur,Rn)&&Qn.push(ur);for(const ur of Qn)Mt.setAttribute("linkHref",at,ur),Pe.forEach(On=>{Mt.setAttribute(On,!0,ur)}),Te.forEach(On=>{Mt.removeAttribute(On,ur)})}})}_getDecoratorStateFromModel(at){const it=this.editor.model,Re=it.document.selection,ke=Re.getSelectedElement();return ot(ke,it.schema)?ke.getAttribute(at):Re.getAttribute(at)}_isRangeToUpdate(at,it){for(const Re of it)if(Re.containsRange(at))return!1;return!0}}class ut extends c.Command{refresh(){const at=this.editor.model,it=at.document.selection,Re=it.getSelectedElement();ot(Re,at.schema)?this.isEnabled=at.schema.checkAttribute(Re,"linkHref"):this.isEnabled=at.schema.checkAttributeInSelection(it,"linkHref")}execute(){const at=this.editor,it=this.editor.model,Re=it.document.selection,ke=at.commands.get("link");it.change(Pe=>{const Te=Re.isCollapsed?[(0,p.findAttributeRange)(Re.getFirstPosition(),"linkHref",Re.getAttribute("linkHref"),it)]:it.schema.getValidRanges(Re.getRanges(),"linkHref");for(const Mt of Te)if(Pe.removeAttribute("linkHref",Mt),ke)for(const qt of ke.manualDecorators)Pe.removeAttribute(qt.id,Mt)})}}class Wt{constructor({id:at,label:it,attributes:Re,classes:ke,styles:Pe,defaultValue:Te}){this.id=at,this.set("value"),this.defaultValue=Te,this.label=it,this.attributes=Re,this.classes=ke,this.styles=Pe}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}(0,k.mix)(Wt,k.ObservableMixin);var ae=s(62),ne=s.n(ae),ge=s(23),ye={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};ne()(ge.Z,ye),ge.Z.locals;const Xe="automatic",Ze=/^(https?:)?\/\//;class lt extends c.Plugin{static get pluginName(){return"LinkEditing"}static get requires(){return[p.TwoStepCaretMovement,p.Input,d.ClipboardPipeline]}constructor(at){super(at),at.config.define("link",{addTargetToExternalLinks:!1})}init(){const at=this.editor;at.model.schema.extend("$text",{allowAttributes:"linkHref"}),at.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:Tn}),at.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(Re,ke)=>Tn(ht(Re),ke)}),at.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:Re=>Re.getAttribute("href")}}),at.commands.add("link",new vn(at)),at.commands.add("unlink",new ut(at));const it=function(Re,ke){const Pe={"Open in a new tab":Re("Open in a new tab"),Downloadable:Re("Downloadable")};return ke.forEach(Te=>(Te.label&&Pe[Te.label]&&(Te.label=Pe[Te.label]),Te)),ke}(at.t,function(Re){const ke=[];if(Re)for(const[Pe,Te]of Object.entries(Re)){const Mt=Object.assign({},Te,{id:`link${Be(Pe)}`});ke.push(Mt)}return ke}(at.config.get("link.decorators")));this._enableAutomaticDecorators(it.filter(Re=>Re.mode===Xe)),this._enableManualDecorators(it.filter(Re=>Re.mode==="manual")),at.plugins.get(p.TwoStepCaretMovement).registerAttribute("linkHref"),(0,p.inlineHighlight)(at,"linkHref","a","ck-link_selected"),this._enableLinkOpen(),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink(),this._enableClipboardIntegration()}_enableAutomaticDecorators(at){const it=this.editor,Re=it.commands.get("link").automaticDecorators;it.config.get("link.addTargetToExternalLinks")&&Re.add({id:"linkIsExternal",mode:Xe,callback:ke=>Ze.test(ke),attributes:{target:"_blank",rel:"noopener noreferrer"}}),Re.add(at),Re.length&&it.conversion.for("downcast").add(Re.getDispatcher())}_enableManualDecorators(at){if(!at.length)return;const it=this.editor,Re=it.commands.get("link").manualDecorators;at.forEach(ke=>{it.model.schema.extend("$text",{allowAttributes:ke.id}),ke=new Wt(ke),Re.add(ke),it.conversion.for("downcast").attributeToElement({model:ke.id,view:(Pe,{writer:Te,schema:Mt},{item:qt})=>{if((qt.is("selection")||Mt.isInline(qt))&&Pe){const Rn=Te.createAttributeElement("a",ke.attributes,{priority:5});ke.classes&&Te.addClass(ke.classes,Rn);for(const Qn in ke.styles)Te.setStyle(Qn,ke.styles[Qn],Rn);return Te.setCustomProperty("link",!0,Rn),Rn}}}),it.conversion.for("upcast").elementToAttribute({view:{name:"a",...ke._createPattern()},model:{key:ke.id}})})}_enableLinkOpen(){const at=this.editor,it=at.editing.view.document;this.listenTo(it,"click",(Re,ke)=>{if(!(k.env.isMac?ke.domEvent.metaKey:ke.domEvent.ctrlKey))return;let Pe=ke.domTarget;if(Pe.tagName.toLowerCase()!="a"&&(Pe=Pe.closest("a")),!Pe)return;const Te=Pe.getAttribute("href");Te&&(Re.stop(),ke.preventDefault(),ft(Te))},{context:"$capture"}),this.listenTo(it,"keydown",(Re,ke)=>{const Pe=at.commands.get("link").value;Pe&&ke.keyCode===k.keyCodes.enter&&ke.altKey&&(Re.stop(),ft(Pe))})}_enableInsertContentSelectionAttributesFixer(){const at=this.editor.model,it=at.document.selection;this.listenTo(at,"insertContent",()=>{const Re=it.anchor.nodeBefore,ke=it.anchor.nodeAfter;it.hasAttribute("linkHref")&&Re&&Re.hasAttribute("linkHref")&&(ke&&ke.hasAttribute("linkHref")||at.change(Pe=>{_t(Pe,Vt(at.schema))}))},{priority:"low"})}_enableClickingAfterLink(){const at=this.editor,it=at.model;at.editing.view.addObserver(h.MouseObserver);let Re=!1;this.listenTo(at.editing.view.document,"mousedown",()=>{Re=!0}),this.listenTo(at.editing.view.document,"selectionChange",()=>{if(!Re)return;Re=!1;const ke=it.document.selection;if(!ke.isCollapsed||!ke.hasAttribute("linkHref"))return;const Pe=ke.getFirstPosition(),Te=(0,p.findAttributeRange)(Pe,"linkHref",ke.getAttribute("linkHref"),it);(Pe.isTouching(Te.start)||Pe.isTouching(Te.end))&&it.change(Mt=>{_t(Mt,Vt(it.schema))})})}_enableTypingOverLink(){const at=this.editor,it=at.editing.view;let Re,ke;this.listenTo(it.document,"delete",()=>{ke=!0},{priority:"high"}),this.listenTo(at.model,"deleteContent",()=>{const Pe=at.model.document.selection;Pe.isCollapsed||(ke?ke=!1:zt(at)&&function(Te){const Mt=Te.document.selection,qt=Mt.getFirstPosition(),Rn=Mt.getLastPosition(),Qn=qt.nodeAfter;if(!Qn||!Qn.is("$text")||!Qn.hasAttribute("linkHref"))return!1;const ur=Rn.textNode||Rn.nodeBefore;return Qn===ur?!0:(0,p.findAttributeRange)(qt,"linkHref",Qn.getAttribute("linkHref"),Te).containsRange(Te.createRange(qt,Rn),!0)}(at.model)&&(Re=Pe.getAttributes()))},{priority:"high"}),this.listenTo(at.model,"insertContent",(Pe,[Te])=>{ke=!1,zt(at)&&Re&&(at.model.change(Mt=>{for(const[qt,Rn]of Re)Mt.setAttribute(qt,Rn,Te)}),Re=null)},{priority:"high"})}_handleDeleteContentAfterLink(){const at=this.editor,it=at.model,Re=it.document.selection,ke=at.editing.view;let Pe=!1,Te=!1;this.listenTo(ke.document,"delete",(Mt,qt)=>{Te=qt.direction==="backward"},{priority:"high"}),this.listenTo(it,"deleteContent",()=>{Pe=!1;const Mt=Re.getFirstPosition(),qt=Re.getAttribute("linkHref");if(!qt)return;const Rn=(0,p.findAttributeRange)(Mt,"linkHref",qt,it);Pe=Rn.containsPosition(Mt)||Rn.end.isEqual(Mt)},{priority:"high"}),this.listenTo(it,"deleteContent",()=>{Te&&(Te=!1,Pe||at.model.enqueueChange(Mt=>{_t(Mt,Vt(it.schema))}))},{priority:"low"})}_enableClipboardIntegration(){const at=this.editor,it=at.model,Re=this.editor.config.get("link.defaultProtocol");Re&&this.listenTo(at.plugins.get("ClipboardPipeline"),"contentInsertion",(ke,Pe)=>{it.change(Te=>{const Mt=Te.createRangeIn(Pe.content);for(const qt of Mt.getItems())if(qt.hasAttribute("linkHref")){const Rn=Je(qt.getAttribute("linkHref"),Re);Te.setAttribute("linkHref",Rn,qt)}})})}}function _t(vr,at){vr.removeSelectionAttribute("linkHref");for(const it of at)vr.removeSelectionAttribute(it)}function zt(vr){return vr.model.change(at=>at.batch).isTyping}function Vt(vr){return vr.getDefinition("$text").allowAttributes.filter(at=>at.startsWith("link"))}var sn=s(273),yn=s(995),dr=s(764),hr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};ne()(dr.Z,hr),dr.Z.locals;var Mr=s(871),rr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};ne()(Mr.Z,rr),Mr.Z.locals;class Cr extends sn.View{constructor(at,it){super(at);const Re=at.t;this.focusTracker=new k.FocusTracker,this.keystrokes=new k.KeystrokeHandler,this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(Re("Save"),c.icons.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(Re("Cancel"),c.icons.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(it),this.children=this._createFormChildren(it.manualDecorators),this._focusables=new sn.ViewCollection,this._focusCycler=new sn.FocusCycler({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const ke=["ck","ck-link-form","ck-responsive-form"];it.manualDecorators.length&&ke.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:ke,tabindex:"-1"},children:this.children}),(0,sn.injectCssTransitionDisabler)(this)}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce((at,it)=>(at[it.name]=it.isOn,at),{})}render(){super.render(),(0,sn.submitHandler)({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach(at=>{this._focusables.add(at),this.focusTracker.add(at.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createUrlInput(){const at=this.locale.t,it=new sn.LabeledFieldView(this.locale,sn.createLabeledInputText);return it.label=at("Link URL"),it}_createButton(at,it,Re,ke){const Pe=new sn.ButtonView(this.locale);return Pe.set({label:at,icon:it,tooltip:!0}),Pe.extendTemplate({attributes:{class:Re}}),ke&&Pe.delegate("execute").to(this,ke),Pe}_createManualDecoratorSwitches(at){const it=this.createCollection();for(const Re of at.manualDecorators){const ke=new sn.SwitchButtonView(this.locale);ke.set({name:Re.id,label:Re.label,withText:!0}),ke.bind("isOn").toMany([Re,at],"value",(Pe,Te)=>Te===void 0&&Pe===void 0?Re.defaultValue:Pe),ke.on("execute",()=>{Re.set("value",!ke.isOn)}),it.add(ke)}return it}_createFormChildren(at){const it=this.createCollection();if(it.add(this.urlInputView),at.length){const Re=new sn.View;Re.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map(ke=>({tag:"li",children:[ke],attributes:{class:["ck","ck-list__item"]}})),attributes:{class:["ck","ck-reset","ck-list"]}}),it.add(Re)}return it.add(this.saveButtonView),it.add(this.cancelButtonView),it}}var Ur=s(952),$r={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};ne()(Ur.Z,$r),Ur.Z.locals;class li extends sn.View{constructor(at){super(at);const it=at.t;this.focusTracker=new k.FocusTracker,this.keystrokes=new k.KeystrokeHandler,this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(it("Unlink"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184zm4.919 10.562-1.414 1.414a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.061-1.06l1.414 1.414 1.414-1.415a.75.75 0 0 1 1.061 1.061l-1.414 1.414 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414z"/></svg>',"unlink"),this.editButtonView=this._createButton(it("Edit link"),c.icons.pencil,"edit"),this.set("href"),this._focusables=new sn.ViewCollection,this._focusCycler=new sn.FocusCycler({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render(),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach(at=>{this._focusables.add(at),this.focusTracker.add(at.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createButton(at,it,Re){const ke=new sn.ButtonView(this.locale);return ke.set({label:at,icon:it,tooltip:!0}),ke.delegate("execute").to(this,Re),ke}_createPreviewButton(){const at=new sn.ButtonView(this.locale),it=this.bindTemplate,Re=this.t;return at.set({withText:!0,tooltip:Re("Open link in new tab")}),at.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:it.to("href",ke=>ke&&ht(ke)),target:"_blank",rel:"noopener noreferrer"}}),at.bind("label").to(this,"href",ke=>ke||Re("This link has no URL")),at.bind("isEnabled").to(this,"href",ke=>!!ke),at.template.tag="a",at.template.eventListeners={},at}}const ri='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184z"/></svg>',Bt="link-ui";class Et extends c.Plugin{static get requires(){return[sn.ContextualBalloon]}static get pluginName(){return"LinkUI"}init(){const at=this.editor;at.editing.view.addObserver(h.ClickObserver),this.actionsView=null,this.formView=null,this._balloon=at.plugins.get(sn.ContextualBalloon),this._createToolbarLinkButton(),this._enableBalloonActivators(),at.conversion.for("editingDowncast").markerToHighlight({model:Bt,view:{classes:["ck-fake-link-selection"]}}),at.conversion.for("editingDowncast").markerToElement({model:Bt,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}destroy(){super.destroy(),this.formView&&this.formView.destroy(),this.actionsView&&this.actionsView.destroy()}_createViews(){this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._enableUserBalloonInteractions()}_createActionsView(){const at=this.editor,it=new li(at.locale),Re=at.commands.get("link"),ke=at.commands.get("unlink");return it.bind("href").to(Re,"value"),it.editButtonView.bind("isEnabled").to(Re),it.unlinkButtonView.bind("isEnabled").to(ke),this.listenTo(it,"edit",()=>{this._addFormView()}),this.listenTo(it,"unlink",()=>{at.execute("unlink"),this._hideUI()}),it.keystrokes.set("Esc",(Pe,Te)=>{this._hideUI(),Te()}),it.keystrokes.set(kn,(Pe,Te)=>{this._addFormView(),Te()}),it}_createFormView(){const at=this.editor,it=at.commands.get("link"),Re=at.config.get("link.defaultProtocol"),ke=new Cr(at.locale,it);return ke.urlInputView.fieldView.bind("value").to(it,"value"),ke.urlInputView.bind("isReadOnly").to(it,"isEnabled",Pe=>!Pe),ke.saveButtonView.bind("isEnabled").to(it),this.listenTo(ke,"submit",()=>{const{value:Pe}=ke.urlInputView.fieldView.element,Te=Je(Pe,Re);at.execute("link",Te,ke.getDecoratorSwitchesState()),this._closeFormView()}),this.listenTo(ke,"cancel",()=>{this._closeFormView()}),ke.keystrokes.set("Esc",(Pe,Te)=>{this._closeFormView(),Te()}),ke}_createToolbarLinkButton(){const at=this.editor,it=at.commands.get("link"),Re=at.t;at.ui.componentFactory.add("link",ke=>{const Pe=new sn.ButtonView(ke);return Pe.isEnabled=!0,Pe.label=Re("Link"),Pe.icon=ri,Pe.keystroke=kn,Pe.tooltip=!0,Pe.isToggleable=!0,Pe.bind("isEnabled").to(it,"isEnabled"),Pe.bind("isOn").to(it,"value",Te=>!!Te),this.listenTo(Pe,"execute",()=>this._showUI(!0)),Pe})}_enableBalloonActivators(){const at=this.editor,it=at.editing.view.document;this.listenTo(it,"click",()=>{this._getSelectedLinkElement()&&this._showUI()}),at.keystrokes.set(kn,(Re,ke)=>{ke(),at.commands.get("link").isEnabled&&this._showUI(!0)})}_enableUserBalloonInteractions(){this.editor.keystrokes.set("Tab",(at,it)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),it())},{priority:"high"}),this.editor.keystrokes.set("Esc",(at,it)=>{this._isUIVisible&&(this._hideUI(),it())}),(0,sn.clickOutsideHandler)({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this.actionsView||this._createViews(),this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this.formView||this._createViews(),this._isFormInPanel)return;const at=this.editor.commands.get("link");this.formView.disableCssTransitions(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions(),this.formView.urlInputView.fieldView.element.value=at.value||""}_closeFormView(){const at=this.editor.commands.get("link");at.restoreManualDecoratorStates(),at.value!==void 0?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(at=!1){this.formView||this._createViews(),this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),at&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),at&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const at=this.editor;this.stopListening(at.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),at.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const at=this.editor,it=at.editing.view.document;let Re=this._getSelectedLinkElement(),ke=Te();const Pe=()=>{const Mt=this._getSelectedLinkElement(),qt=Te();Re&&!Mt||!Re&&qt!==ke?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),Re=Mt,ke=qt};function Te(){return it.selection.focus.getAncestors().reverse().find(Mt=>Mt.is("element"))}this.listenTo(at.ui,"update",Pe),this.listenTo(this._balloon,"change:visibleView",Pe)}get _isFormInPanel(){return this._balloon.hasView(this.formView)}get _areActionsInPanel(){return this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){return this._balloon.visibleView==this.formView||this._areActionsVisible}_getBalloonPositionData(){const at=this.editor.editing.view,it=this.editor.model,Re=at.document;let ke=null;if(it.markers.has(Bt)){const Pe=Array.from(this.editor.editing.mapper.markerNameToElements(Bt)),Te=at.createRange(at.createPositionBefore(Pe[0]),at.createPositionAfter(Pe[Pe.length-1]));ke=at.domConverter.viewRangeToDom(Te)}else ke=()=>{const Pe=this._getSelectedLinkElement();return Pe?at.domConverter.mapViewToDom(Pe):at.domConverter.viewRangeToDom(Re.selection.getFirstRange())};return{target:ke}}_getSelectedLinkElement(){const at=this.editor.editing.view,it=at.document.selection,Re=it.getSelectedElement();if(it.isCollapsed||Re&&(0,yn.isWidget)(Re))return bn(it.getFirstPosition());{const ke=it.getFirstRange().getTrimmed(),Pe=bn(ke.start),Te=bn(ke.end);return Pe&&Pe==Te&&at.createRangeIn(Pe).getTrimmed().isEqual(ke)?Pe:null}}_showFakeVisualSelection(){const at=this.editor.model;at.change(it=>{const Re=at.document.selection.getFirstRange();if(at.markers.has(Bt))it.updateMarker(Bt,{range:Re});else if(Re.start.isAtEnd){const ke=Re.start.getLastMatchingPosition(({item:Pe})=>!at.schema.isContent(Pe),{boundaries:Re});it.addMarker(Bt,{usingOperation:!1,affectsData:!1,range:it.createRange(ke,Re.end)})}else it.addMarker(Bt,{usingOperation:!1,affectsData:!1,range:Re})})}_hideFakeVisualSelection(){const at=this.editor.model;at.markers.has(Bt)&&at.change(it=>{it.removeMarker(Bt)})}}function bn(vr){return vr.getAncestors().find(at=>{return(it=at).is("attributeElement")&&!!it.getCustomProperty("link");var it})}const cn=4,Yn=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i"),on=2;class ze extends c.Plugin{static get requires(){return[p.Delete]}static get pluginName(){return"AutoLink"}init(){const at=this.editor.model.document.selection;at.on("change:range",()=>{this.isEnabled=!at.anchor.parent.is("element","codeBlock")}),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling()}_enableTypingHandling(){const at=this.editor,it=new p.TextWatcher(at.model,Re=>{if(!function(Pe){return Pe.length>cn&&Pe[Pe.length-1]===" "&&Pe[Pe.length-2]!==" "}(Re))return;const ke=Le(Re.substr(0,Re.length-1));return ke?{url:ke}:void 0});it.on("matched:data",(Re,ke)=>{const{batch:Pe,range:Te,url:Mt}=ke;if(!Pe.isTyping)return;const qt=Te.end.getShiftedBy(-1),Rn=qt.getShiftedBy(-Mt.length),Qn=at.model.createRange(Rn,qt);this._applyAutoLink(Mt,Qn)}),it.bind("isEnabled").to(this)}_enableEnterHandling(){const at=this.editor,it=at.model,Re=at.commands.get("enter");Re&&Re.on("execute",()=>{const ke=it.document.selection.getFirstPosition();if(!ke.parent.previousSibling)return;const Pe=it.createRangeIn(ke.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(Pe)})}_enableShiftEnterHandling(){const at=this.editor,it=at.model,Re=at.commands.get("shiftEnter");Re&&Re.on("execute",()=>{const ke=it.document.selection.getFirstPosition(),Pe=it.createRange(it.createPositionAt(ke.parent,0),ke.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(Pe)})}_checkAndApplyAutoLinkOnRange(at){const it=this.editor.model,{text:Re,range:ke}=(0,p.getLastTextLine)(at,it),Pe=Le(Re);if(Pe){const Te=it.createRange(ke.end.getShiftedBy(-Pe.length),ke.end);this._applyAutoLink(Pe,Te)}}_applyAutoLink(at,it){const Re=this.editor.model,ke=Je(at,this.editor.config.get("link.defaultProtocol"));this.isEnabled&&function(Pe,Te){return Te.schema.checkAttributeInSelection(Te.createSelection(Pe),"linkHref")}(it,Re)&&wt(ke)&&!function(Pe){const Te=Pe.start.nodeAfter;return Te&&Te.hasAttribute("linkHref")}(it)&&this._persistAutoLink(ke,it)}_persistAutoLink(at,it){const Re=this.editor.model,ke=this.editor.plugins.get("Delete");Re.enqueueChange(Pe=>{Pe.setAttribute("linkHref",at,it),Re.enqueueChange(()=>{ke.requestUndoOnBackspace()})})}}function Le(vr){const at=Yn.exec(vr);return at?at[on]:null}class Ht extends c.Plugin{static get requires(){return[lt,Et,ze]}static get pluginName(){return"Link"}}class Mn extends c.Plugin{static get requires(){return["ImageEditing","ImageUtils",lt]}static get pluginName(){return"LinkImageEditing"}init(){const at=this.editor,it=at.model.schema;at.plugins.has("ImageBlockEditing")&&it.extend("imageBlock",{allowAttributes:["linkHref"]}),at.conversion.for("upcast").add(function(Re){const ke=Re.plugins.has("ImageInlineEditing"),Pe=Re.plugins.get("ImageUtils");return Te=>{Te.on("element:a",(Mt,qt,Rn)=>{const Qn=qt.viewItem,ur=Pe.findViewImgElement(Qn);if(!ur)return;const On=ur.findAncestor(Pn=>Pe.isBlockImageView(Pn));if(ke&&!On)return;const ct={attributes:["href"]};if(!Rn.consumable.consume(Qn,ct))return;const Zt=Qn.getAttribute("href");if(!Zt)return;let Cn=qt.modelCursor.parent;if(!Cn.is("element","imageBlock")){const Pn=Rn.convertItem(ur,qt.modelCursor);qt.modelRange=Pn.modelRange,qt.modelCursor=Pn.modelCursor,Cn=qt.modelCursor.nodeBefore}Cn&&Cn.is("element","imageBlock")&&Rn.writer.setAttribute("linkHref",Zt,Cn)},{priority:"high"})}}(at)),at.conversion.for("downcast").add(function(Re){const ke=Re.plugins.get("ImageUtils");return Pe=>{Pe.on("attribute:linkHref:imageBlock",(Te,Mt,qt)=>{if(!qt.consumable.consume(Mt.item,Te.name))return;const Rn=qt.mapper.toViewElement(Mt.item),Qn=qt.writer,ur=Array.from(Rn.getChildren()).find(Zt=>Zt.name==="a"),On=ke.findViewImgElement(Rn),ct=On.parent.is("element","picture")?On.parent:On;if(ur)Mt.attributeNewValue?Qn.setAttribute("href",Mt.attributeNewValue,ur):(Qn.move(Qn.createRangeOn(ct),Qn.createPositionAt(Rn,0)),Qn.remove(ur));else{const Zt=Qn.createContainerElement("a",{href:Mt.attributeNewValue});Qn.insert(Qn.createPositionAt(Rn,0),Zt),Qn.move(Qn.createRangeOn(ct),Qn.createPositionAt(Zt,0))}},{priority:"high"})}}(at)),this._enableAutomaticDecorators(),this._enableManualDecorators()}_enableAutomaticDecorators(){const at=this.editor,it=at.commands.get("link").automaticDecorators;it.length&&at.conversion.for("downcast").add(it.getDispatcherForLinkedImage())}_enableManualDecorators(){const at=this.editor,it=at.commands.get("link");for(const Re of it.manualDecorators)at.plugins.has("ImageBlockEditing")&&at.model.schema.extend("imageBlock",{allowAttributes:Re.id}),at.plugins.has("ImageInlineEditing")&&at.model.schema.extend("imageInline",{allowAttributes:Re.id}),at.conversion.for("downcast").add(tr(Re)),at.conversion.for("upcast").add(Sr(at,Re))}}function tr(vr){return at=>{at.on(`attribute:${vr.id}:imageBlock`,(it,Re,ke)=>{const Pe=ke.mapper.toViewElement(Re.item),Te=Array.from(Pe.getChildren()).find(Mt=>Mt.name==="a");if(Te){for(const[Mt,qt]of(0,k.toMap)(vr.attributes))ke.writer.setAttribute(Mt,qt,Te);vr.classes&&ke.writer.addClass(vr.classes,Te);for(const Mt in vr.styles)ke.writer.setStyle(Mt,vr.styles[Mt],Te)}})}}function Sr(vr,at){const it=vr.plugins.has("ImageInlineEditing"),Re=vr.plugins.get("ImageUtils");return ke=>{ke.on("element:a",(Pe,Te,Mt)=>{const qt=Te.viewItem,Rn=Re.findViewImgElement(qt);if(!Rn)return;const Qn=Rn.findAncestor(ct=>Re.isBlockImageView(ct));if(it&&!Qn)return;const ur=new h.Matcher(at._createPattern()).match(qt);if(!ur||!Mt.consumable.consume(qt,ur.match))return;const On=Te.modelCursor.nodeBefore||Te.modelCursor.parent;Mt.writer.setAttribute(at.id,!0,On)},{priority:"high"})}}class Xr extends c.Plugin{static get requires(){return[lt,Et,"ImageBlockEditing"]}static get pluginName(){return"LinkImageUI"}init(){const at=this.editor,it=at.editing.view.document;this.listenTo(it,"click",(Re,ke)=>{this._isSelectedLinkedImage(at.model.document.selection)&&(ke.preventDefault(),Re.stop())},{priority:"high"}),this._createToolbarLinkImageButton()}_createToolbarLinkImageButton(){const at=this.editor,it=at.t;at.ui.componentFactory.add("linkImage",Re=>{const ke=new sn.ButtonView(Re),Pe=at.plugins.get("LinkUI"),Te=at.commands.get("link");return ke.set({isEnabled:!0,label:it("Link image"),icon:ri,keystroke:kn,tooltip:!0,isToggleable:!0}),ke.bind("isEnabled").to(Te,"isEnabled"),ke.bind("isOn").to(Te,"value",Mt=>!!Mt),this.listenTo(ke,"execute",()=>{this._isSelectedLinkedImage(at.model.document.selection)?Pe._addActionsView():Pe._showUI(!0)}),ke})}_isSelectedLinkedImage(at){const it=at.getSelectedElement();return this.editor.plugins.get("ImageUtils").isImage(it)&&it.hasAttribute("linkHref")}}var gi=s(269),Pi={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};ne()(gi.Z,Pi),gi.Z.locals;class ii extends c.Plugin{static get requires(){return[Mn,Xr]}static get pluginName(){return"LinkImage"}}})(),(window.CKEditor5=window.CKEditor5||{}).link=a})()},66665:()=>{(function(Z){const v=Z.en=Z.en||{};v.dictionary=Object.assign(v.dictionary||{},{"Bulleted List":"Bulleted List","Bulleted list styles toolbar":"Bulleted list styles toolbar",Circle:"Circle",Decimal:"Decimal","Decimal with leading zero":"Decimal with leading zero",Disc:"Disc","List properties":"List properties","Lower-latin":"Lower-latin","Lower\u2013roman":"Lower\u2013roman","Numbered List":"Numbered List","Numbered list styles toolbar":"Numbered list styles toolbar","Reversed order":"Reversed order",Square:"Square","Start at":"Start at","Start index must be greater than 0.":"Start index must be greater than 0.","To-do List":"To-do List","Toggle the circle list style":"Toggle the circle list style","Toggle the decimal list style":"Toggle the decimal list style","Toggle the decimal with leading zero list style":"Toggle the decimal with leading zero list style","Toggle the disc list style":"Toggle the disc list style","Toggle the lower\u2013latin list style":"Toggle the lower\u2013latin list style","Toggle the lower\u2013roman list style":"Toggle the lower\u2013roman list style","Toggle the square list style":"Toggle the square list style","Toggle the upper\u2013latin list style":"Toggle the upper\u2013latin list style","Toggle the upper\u2013roman list style":"Toggle the upper\u2013roman list style","Upper-latin":"Upper-latin","Upper-roman":"Upper-roman"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),(()=>{var Z={389:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,".ck.ck-collapsible.ck-collapsible_collapsed>.ck-collapsible__children{display:none}:root{--ck-collapsible-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-collapsible>.ck.ck-button{border-radius:0;color:inherit;font-weight:700;padding:var(--ck-spacing-medium) var(--ck-spacing-large);width:100%}.ck.ck-collapsible>.ck.ck-button:focus{background:transparent}.ck.ck-collapsible>.ck.ck-button:active,.ck.ck-collapsible>.ck.ck-button:hover:not(:focus),.ck.ck-collapsible>.ck.ck-button:not(:focus){background:transparent;border-color:transparent;box-shadow:none}.ck.ck-collapsible>.ck.ck-button>.ck-icon{margin-right:var(--ck-spacing-medium);width:var(--ck-collapsible-arrow-size)}.ck.ck-collapsible>.ck-collapsible__children{padding:0 var(--ck-spacing-large) var(--ck-spacing-large)}.ck.ck-collapsible.ck-collapsible_collapsed>.ck.ck-button .ck-icon{transform:rotate(-90deg)}",""]);const p=h},78:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,".ck-editor__editable .ck-list-bogus-paragraph{display:block}",""]);const p=h},272:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,".ck-content ol{list-style-type:decimal}.ck-content ol ol{list-style-type:lower-latin}.ck-content ol ol ol{list-style-type:lower-roman}.ck-content ol ol ol ol{list-style-type:upper-latin}.ck-content ol ol ol ol ol{list-style-type:upper-roman}.ck-content ul{list-style-type:disc}.ck-content ul ul{list-style-type:circle}.ck-content ul ul ul,.ck-content ul ul ul ul{list-style-type:square}",""]);const p=h},543:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,".ck.ck-list-properties.ck-list-properties_without-styles{padding:var(--ck-spacing-large)}.ck.ck-list-properties.ck-list-properties_without-styles>*{min-width:14em}.ck.ck-list-properties.ck-list-properties_without-styles>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-list-styles-list{grid-template-columns:repeat(4,auto)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*{width:100%}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties .ck.ck-numbered-list-properties__start-index .ck-input{min-width:auto;width:100%}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order{background:transparent;margin-bottom:calc(var(--ck-spacing-tiny)*-1);padding-left:0;padding-right:0}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:active,.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:hover{background:none;border-color:transparent;box-shadow:none}",""]);const p=h},657:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,".ck.ck-list-styles-list{display:grid}:root{--ck-list-style-button-size:44px}.ck.ck-list-styles-list{column-gap:var(--ck-spacing-medium);grid-template-columns:repeat(3,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-list-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-list-styles-list .ck-button,.ck.ck-list-styles-list .ck-button .ck-icon{height:var(--ck-list-style-button-size);width:var(--ck-list-style-button-size)}",""]);const p=h},250:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,':root{--ck-todo-list-checkmark-size:16px}.ck-content .todo-list{list-style:none}.ck-content .todo-list li{margin-bottom:5px}.ck-content .todo-list li .todo-list{margin-top:5px}.ck-content .todo-list .todo-list__label>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-content .todo-list .todo-list__label>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out,background .25s ease-in-out,border .25s ease-in-out;width:100%}.ck-content .todo-list .todo-list__label>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-content .todo-list .todo-list__label>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-content .todo-list .todo-list__label>input[checked]:after{border-color:#fff}.ck-content .todo-list .todo-list__label .todo-list__label__description{vertical-align:middle}[dir=rtl] .todo-list .todo-list__label>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-editor__editable .todo-list .todo-list__label>input{cursor:pointer}.ck-editor__editable .todo-list .todo-list__label>input:hover:before{box-shadow:0 0 0 5px rgba(0,0,0,.1)}',""]);const p=h},609:n=>{"use strict";n.exports=function(s){var a=[];return a.toString=function(){return this.map(function(c){var h=s(c);return c[2]?"@media ".concat(c[2]," {").concat(h,"}"):h}).join("")},a.i=function(c,h,p){typeof c=="string"&&(c=[[null,c,""]]);var d={};if(p)for(var k=0;k<this.length;k++){var M=this[k][0];M!=null&&(d[M]=!0)}for(var C=0;C<c.length;C++){var w=[].concat(c[C]);p&&d[w[0]]||(h&&(w[2]?w[2]="".concat(h," and ").concat(w[2]):w[2]=h),a.push(w))}},a}},62:(n,s,a)=>{"use strict";var c,h=function(){return c===void 0&&(c=Boolean(window&&document&&document.all&&!window.atob)),c},p=function(){var x={};return function(T){if(x[T]===void 0){var u=document.querySelector(T);if(window.HTMLIFrameElement&&u instanceof window.HTMLIFrameElement)try{u=u.contentDocument.head}catch{u=null}x[T]=u}return x[T]}}(),d=[];function k(x){for(var T=-1,u=0;u<d.length;u++)if(d[u].identifier===x){T=u;break}return T}function M(x,T){for(var u={},b=[],E=0;E<x.length;E++){var A=x[E],R=T.base?A[0]+T.base:A[0],H=u[R]||0,z="".concat(R," ").concat(H);u[R]=H+1;var V=k(z),$={css:A[1],media:A[2],sourceMap:A[3]};V!==-1?(d[V].references++,d[V].updater($)):d.push({identifier:z,updater:D($,T),references:1}),b.push(z)}return b}function C(x){var T=document.createElement("style"),u=x.attributes||{};if(u.nonce===void 0){var b=a.nc;b&&(u.nonce=b)}if(Object.keys(u).forEach(function(A){T.setAttribute(A,u[A])}),typeof x.insert=="function")x.insert(T);else{var E=p(x.insert||"head");if(!E)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");E.appendChild(T)}return T}var w,I=(w=[],function(x,T){return w[x]=T,w.filter(Boolean).join(`
`)});function F(x,T,u,b){var E=u?"":b.media?"@media ".concat(b.media," {").concat(b.css,"}"):b.css;if(x.styleSheet)x.styleSheet.cssText=I(T,E);else{var A=document.createTextNode(E),R=x.childNodes;R[T]&&x.removeChild(R[T]),R.length?x.insertBefore(A,R[T]):x.appendChild(A)}}function U(x,T,u){var b=u.css,E=u.media,A=u.sourceMap;if(E?x.setAttribute("media",E):x.removeAttribute("media"),A&&typeof btoa<"u"&&(b+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(A))))," */")),x.styleSheet)x.styleSheet.cssText=b;else{for(;x.firstChild;)x.removeChild(x.firstChild);x.appendChild(document.createTextNode(b))}}var B=null,N=0;function D(x,T){var u,b,E;if(T.singleton){var A=N++;u=B||(B=C(T)),b=F.bind(null,u,A,!1),E=F.bind(null,u,A,!0)}else u=C(T),b=U.bind(null,u,T),E=function(){(function(R){if(R.parentNode===null)return!1;R.parentNode.removeChild(R)})(u)};return b(x),function(R){if(R){if(R.css===x.css&&R.media===x.media&&R.sourceMap===x.sourceMap)return;b(x=R)}else E()}}n.exports=function(x,T){(T=T||{}).singleton||typeof T.singleton=="boolean"||(T.singleton=h());var u=M(x=x||[],T);return function(b){if(b=b||[],Object.prototype.toString.call(b)==="[object Array]"){for(var E=0;E<u.length;E++){var A=k(u[E]);d[A].references--}for(var R=M(b,T),H=0;H<u.length;H++){var z=k(u[H]);d[z].references===0&&(d[z].updater(),d.splice(z,1))}u=R}}}},704:(n,s,a)=>{n.exports=a(79)("./src/core.js")},492:(n,s,a)=>{n.exports=a(79)("./src/engine.js")},331:(n,s,a)=>{n.exports=a(79)("./src/enter.js")},181:(n,s,a)=>{n.exports=a(79)("./src/typing.js")},273:(n,s,a)=>{n.exports=a(79)("./src/ui.js")},209:(n,s,a)=>{n.exports=a(79)("./src/utils.js")},79:n=>{"use strict";n.exports=CKEditor5.dll}},v={};function t(n){var s=v[n];if(s!==void 0)return s.exports;var a=v[n]={id:n,exports:{}};return Z[n](a,a.exports,t),a.exports}t.n=n=>{var s=n&&n.__esModule?()=>n.default:()=>n;return t.d(s,{a:s}),s},t.d=(n,s)=>{for(var a in s)t.o(s,a)&&!t.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:s[a]})},t.o=(n,s)=>Object.prototype.hasOwnProperty.call(n,s),t.r=n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.nc=void 0;var r={};(()=>{"use strict";t.r(r),t.d(r,{DocumentList:()=>ge,DocumentListEditing:()=>mn,DocumentListProperties:()=>Le,DocumentListPropertiesEditing:()=>Ur,DocumentListPropertiesUtils:()=>rr,DocumentListUtils:()=>q,List:()=>On,ListEditing:()=>Qn,ListProperties:()=>Qt,ListPropertiesEditing:()=>Kn,ListPropertiesUI:()=>on,ListUI:()=>ne,ListUtils:()=>Xr,TodoList:()=>Vi,TodoListEditing:()=>oi,TodoListUI:()=>si});var n=t(704),s=t(181),a=t(331),c=t(209);class h{constructor(nt,ve){this._startElement=nt,this._referenceIndent=nt.getAttribute("listIndent"),this._isForward=ve.direction=="forward",this._includeSelf=!!ve.includeSelf,this._sameAttributes=(0,c.toArray)(ve.sameAttributes||[]),this._sameIndent=!!ve.sameIndent,this._lowerIndent=!!ve.lowerIndent,this._higherIndent=!!ve.higherIndent}static first(nt,ve){const he=new this(nt,ve)[Symbol.iterator]();return(0,c.first)(he)}*[Symbol.iterator](){const nt=[];for(const{node:ve}of p(this._getStartNode(),this._isForward?"forward":"backward")){const he=ve.getAttribute("listIndent");if(he<this._referenceIndent){if(!this._lowerIndent)break;this._referenceIndent=he}else if(he>this._referenceIndent){if(!this._higherIndent)continue;if(!this._isForward){nt.push(ve);continue}}else{if(!this._sameIndent){if(this._higherIndent){nt.length&&(yield*nt,nt.length=0);break}continue}if(this._sameAttributes.some(Ae=>ve.getAttribute(Ae)!==this._startElement.getAttribute(Ae)))break}nt.length&&(yield*nt,nt.length=0),yield ve}}_getStartNode(){return this._includeSelf?this._startElement:this._isForward?this._startElement.nextSibling:this._startElement.previousSibling}}function*p(Bn,nt="forward"){const ve=nt=="forward";let he=null;for(;M(Bn);)yield{node:Bn,previous:he},he=Bn,Bn=ve?Bn.nextSibling:Bn.previousSibling}class d{constructor(nt){this._listHead=nt}[Symbol.iterator](){return p(this._listHead,"forward")}}class k{static next(){return(0,c.uid)()}}function M(Bn){return!!Bn&&Bn.is("element")&&Bn.hasAttribute("listItemId")}function C(Bn,nt={}){return[...w(Bn,{...nt,direction:"backward"}),...w(Bn,{...nt,direction:"forward"})]}function w(Bn,nt={}){const ve=nt.direction=="forward",he=Array.from(new h(Bn,{...nt,includeSelf:ve,sameIndent:!0,sameAttributes:"listItemId"}));return ve?he:he.reverse()}function I(Bn){const nt=new h(Bn,{sameIndent:!0,sameAttributes:"listType"}),ve=new h(Bn,{sameIndent:!0,sameAttributes:"listType",includeSelf:!0,direction:"forward"});return[...Array.from(nt).reverse(),...ve]}function F(Bn){return!h.first(Bn,{sameIndent:!0,sameAttributes:"listItemId"})}function U(Bn){return!h.first(Bn,{direction:"forward",sameIndent:!0,sameAttributes:"listItemId"})}function B(Bn,nt={}){Bn=(0,c.toArray)(Bn);const ve=nt.withNested!==!1,he=new Set;for(const Ae of Bn)for(const tt of C(Ae,{higherIndent:ve}))he.add(tt);return E(he)}function N(Bn){Bn=(0,c.toArray)(Bn);const nt=new Set;for(const ve of Bn)for(const he of I(ve))nt.add(he);return E(nt)}function D(Bn,nt){const ve=w(Bn,{direction:"forward"}),he=k.next();for(const Ae of ve)nt.setAttribute("listItemId",he,Ae);return ve}function x(Bn,nt,ve){const he={};for(const[tt,St]of nt.getAttributes())tt.startsWith("list")&&(he[tt]=St);const Ae=w(Bn,{direction:"forward"});for(const tt of Ae)ve.setAttributes(he,tt);return Ae}function T(Bn,nt,{expand:ve,indentBy:he=1}={}){Bn=(0,c.toArray)(Bn);const Ae=ve?B(Bn):Bn;for(const tt of Ae){const St=tt.getAttribute("listIndent")+he;St<0?u(tt,nt):nt.setAttribute("listIndent",St,tt)}return Ae}function u(Bn,nt){Bn=(0,c.toArray)(Bn);for(const ve of Bn)for(const he of ve.getAttributeKeys())he.startsWith("list")&&nt.removeAttribute(he,ve);return Bn}function b(Bn){if(!Bn.length)return!1;const nt=Bn[0].getAttribute("listItemId");return!!nt&&!Bn.some(ve=>ve.getAttribute("listItemId")!=nt)}function E(Bn){return Array.from(Bn).filter(nt=>nt.root.rootName!=="$graveyard").sort((nt,ve)=>nt.index-ve.index)}function A(Bn){const nt=Bn.document.selection.getSelectedElement();return nt&&Bn.schema.isObject(nt)&&Bn.schema.isBlock(nt)?nt:null}function R(Bn,nt,ve){return w(nt,{direction:"forward"}).pop().index>Bn.index?x(Bn,nt,ve):[]}class H extends n.Command{constructor(nt,ve){super(nt),this._direction=ve}refresh(){this.isEnabled=this._checkEnabled()}execute(){const nt=this.editor.model,ve=z(nt.document.selection);nt.change(he=>{const Ae=[];b(ve)&&!F(ve[0])?(this._direction=="forward"&&Ae.push(...T(ve,he)),Ae.push(...D(ve[0],he))):this._direction=="forward"?Ae.push(...T(ve,he,{expand:!0})):Ae.push(...function(tt,St){const kt=B(tt=(0,c.toArray)(tt)),Jt=new Set,gt=Math.min(...kt.map(Xt=>Xt.getAttribute("listIndent"))),dn=new Map;for(const Xt of kt)dn.set(Xt,h.first(Xt,{lowerIndent:!0}));for(const Xt of kt){if(Jt.has(Xt))continue;Jt.add(Xt);const hn=Xt.getAttribute("listIndent")-1;if(hn<0)u(Xt,St);else{if(Xt.getAttribute("listIndent")==gt){const Sn=R(Xt,dn.get(Xt),St);for(const Jn of Sn)Jt.add(Jn);if(Sn.length)continue}St.setAttribute("listIndent",hn,Xt)}}return E(Jt)}(ve,he));for(const tt of Ae){if(!tt.hasAttribute("listType"))continue;const St=h.first(tt,{sameIndent:!0});St&&he.setAttribute("listType",St.getAttribute("listType"),tt)}this._fireAfterExecute(Ae)})}_fireAfterExecute(nt){this.fire("afterExecute",E(new Set(nt)))}_checkEnabled(){let nt=z(this.editor.model.document.selection),ve=nt[0];if(!ve)return!1;if(this._direction=="backward"||b(nt)&&!F(nt[0]))return!0;nt=B(nt),ve=nt[0];const he=h.first(ve,{sameIndent:!0});return!!he&&he.getAttribute("listType")==ve.getAttribute("listType")}}function z(Bn){const nt=Array.from(Bn.getSelectedBlocks()),ve=nt.findIndex(he=>!M(he));return ve!=-1&&(nt.length=ve),nt}class V extends n.Command{constructor(nt,ve){super(nt),this.type=ve}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(nt={}){const ve=this.editor.model,he=ve.document,Ae=A(ve),tt=Array.from(he.selection.getSelectedBlocks()).filter(kt=>ve.schema.checkAttribute(kt,"listType")),St=nt.forceValue!==void 0?!nt.forceValue:this.value;ve.change(kt=>{if(St){const Jt=tt[tt.length-1],gt=w(Jt,{direction:"forward"}),dn=[];gt.length>1&&dn.push(...D(gt[1],kt)),dn.push(...u(tt,kt)),dn.push(...function(Xt,hn){const Sn=[];let Jn=Number.POSITIVE_INFINITY;for(const{node:Vn}of p(Xt.nextSibling,"forward")){const ar=Vn.getAttribute("listIndent");if(ar==0)break;ar<Jn&&(Jn=ar);const Vr=ar-Jn;hn.setAttribute("listIndent",Vr,Vn),Sn.push(Vn)}return Sn}(Jt,kt)),this._fireAfterExecute(dn)}else if((Ae||he.selection.isCollapsed)&&M(tt[0])){const Jt=I(Ae||tt[0]);for(const gt of Jt)kt.setAttribute("listType",this.type,gt);this._fireAfterExecute(Jt)}else{const Jt=[];for(const gt of tt)if(gt.hasAttribute("listType"))for(const dn of B(gt,{withNested:!1}))dn.getAttribute("listType")!=this.type&&(kt.setAttribute("listType",this.type,dn),Jt.push(dn));else kt.setAttributes({listIndent:0,listItemId:k.next(),listType:this.type},gt),Jt.push(gt);this._fireAfterExecute(Jt)}})}_fireAfterExecute(nt){this.fire("afterExecute",E(new Set(nt)))}_getValue(){const nt=this.editor.model.document.selection,ve=Array.from(nt.getSelectedBlocks());if(!ve.length)return!1;for(const he of ve)if(he.getAttribute("listType")!=this.type)return!1;return!0}_checkEnabled(){const nt=this.editor.model.document.selection,ve=this.editor.model.schema,he=Array.from(nt.getSelectedBlocks());if(!he.length)return!1;if(this.value)return!0;for(const Ae of he)if(ve.checkAttribute(Ae,"listType"))return!0;return!1}}class $ extends n.Command{constructor(nt,ve){super(nt),this._direction=ve}refresh(){this.isEnabled=this._checkEnabled()}execute({shouldMergeOnBlocksContentLevel:nt=!1}={}){const ve=this.editor.model,he=ve.document.selection,Ae=[];ve.change(tt=>{const{firstElement:St,lastElement:kt}=this._getMergeSubjectElements(he,nt),Jt=St.getAttribute("listIndent")||0,gt=kt.getAttribute("listIndent"),dn=kt.getAttribute("listItemId");if(Jt!=gt){const hn=(Xt=kt,Array.from(new h(Xt,{direction:"forward",higherIndent:!0})));Ae.push(...T([kt,...hn],tt,{indentBy:Jt-gt,expand:Jt<gt}))}var Xt;if(nt){let hn=he;he.isCollapsed&&(hn=tt.createSelection(tt.createRange(tt.createPositionAt(St,"end"),tt.createPositionAt(kt,0)))),ve.deleteContent(hn,{doNotResetEntireContent:he.isCollapsed});const Sn=hn.getLastPosition().parent,Jn=Sn.nextSibling;Ae.push(Sn),Jn&&Jn!==kt&&Jn.getAttribute("listItemId")==dn&&Ae.push(...x(Jn,Sn,tt))}else Ae.push(...x(kt,St,tt));this._fireAfterExecute(Ae)})}_fireAfterExecute(nt){this.fire("afterExecute",E(new Set(nt)))}_checkEnabled(){const nt=this.editor.model,ve=nt.document.selection,he=A(nt);if(ve.isCollapsed||he){const Ae=he||ve.getFirstPosition().parent;if(!M(Ae))return!1;const tt=this._direction=="backward"?Ae.previousSibling:Ae.nextSibling;if(!tt||b([Ae,tt]))return!1}else{const Ae=ve.getLastPosition(),tt=ve.getFirstPosition();if(Ae.parent===tt.parent||!M(Ae.parent))return!1}return!0}_getMergeSubjectElements(nt,ve){const he=A(this.editor.model);let Ae,tt;if(nt.isCollapsed||he){const St=he||nt.getFirstPosition().parent,kt=F(St);this._direction=="backward"?(tt=St,Ae=kt&&!ve?h.first(St,{sameIndent:!0,lowerIndent:!0}):St.previousSibling):(Ae=St,tt=St.nextSibling)}else Ae=nt.getFirstPosition().parent,tt=nt.getLastPosition().parent;return{firstElement:Ae,lastElement:tt}}}class ee extends n.Command{constructor(nt,ve){super(nt),this._direction=ve}refresh(){this.isEnabled=this._checkEnabled()}execute(){this.editor.model.change(nt=>{const ve=D(this._getStartBlock(),nt);this._fireAfterExecute(ve)})}_fireAfterExecute(nt){this.fire("afterExecute",E(new Set(nt)))}_checkEnabled(){const nt=this.editor.model.document.selection,ve=this._getStartBlock();return nt.isCollapsed&&M(ve)&&!F(ve)}_getStartBlock(){const nt=this.editor.model.document.selection.getFirstPosition().parent;return this._direction=="before"?nt:nt.nextSibling}}class q extends n.Plugin{static get pluginName(){return"DocumentListUtils"}expandListBlocksToCompleteList(nt){return N(nt)}isFirstBlockOfListItem(nt){return F(nt)}isListItemBlock(nt){return M(nt)}}var oe=t(492);function X(Bn){return Bn.is("element","ol")||Bn.is("element","ul")}function pe(Bn){return Bn.is("element","li")}function Ie(Bn){let nt=0,ve=Bn.parent;for(;ve;){if(pe(ve))nt++;else{const he=ve.previousSibling;he&&pe(he)&&nt++}ve=ve.parent}return nt}function se(Bn,nt,ve,he=ue(ve,nt)){return Bn.createAttributeElement(fe(ve),null,{priority:2*nt/100-100,id:he})}function be(Bn,nt,ve){return Bn.createAttributeElement("li",null,{priority:(2*nt+1)/100-100,id:ve})}function fe(Bn){return Bn=="numbered"?"ol":"ul"}function ue(Bn,nt){return`list-${Bn}-${nt}`}function we(Bn,nt){const ve=Bn.nodeBefore;if(M(ve)){let he=ve;for(const{node:Ae}of p(he,"backward"))if(he=Ae,nt.has(he))return;nt.set(ve,he)}else{const he=Bn.nodeAfter;M(he)&&nt.set(he,he)}}function Me(){return(Bn,nt,ve)=>{if(!ve.consumable.test(nt.viewItem,{name:!0}))return;const he=new oe.UpcastWriter(nt.viewItem.document);for(const Ae of Array.from(nt.viewItem.getChildren()))pe(Ae)||X(Ae)||he.remove(Ae)}}function Ce(Bn,nt,ve){const he=function(Ae){return(tt,St)=>{const kt=[];for(const Jt of Ae)tt.hasAttribute(Jt)&&kt.push(`attribute:${Jt}`);return!!kt.every(Jt=>St.test(tt,Jt)!==!1)&&(kt.forEach(Jt=>St.consume(tt,Jt)),!0)}}(Bn);return(Ae,tt,St)=>{const{writer:kt,mapper:Jt,consumable:gt}=St,dn=tt.item;if(!Bn.includes(tt.attributeKey)||!he(dn,gt))return;const Xt=function(hn,Sn,Jn){const Vn=Jn.createRangeOn(hn);return Sn.toViewRange(Vn).getTrimmed().getContainedElement()}(dn,Jt,ve);(function(hn,Sn){let Jn=hn.parent;for(;Jn.is("attributeElement")&&["ul","ol","li"].includes(Jn.name);){const Vn=Jn.parent;Sn.unwrap(Sn.createRangeOn(hn),Jn),Jn=Vn}})(Xt,kt),function(hn,Sn,Jn,Vn){if(!hn.hasAttribute("listIndent"))return;const ar=hn.getAttribute("listIndent");let Vr=hn;for(let Jr=ar;Jr>=0;Jr--){const yi=be(Vn,Jr,Vr.getAttribute("listItemId")),Ii=se(Vn,Jr,Vr.getAttribute("listType"));for(const ji of Jn)Vr.hasAttribute(ji.attributeName)&&ji.setAttributeOnDowncast(Vn,Vr.getAttribute(ji.attributeName),ji.scope=="list"?Ii:yi);if(Sn=Vn.wrap(Sn,yi),Sn=Vn.wrap(Sn,Ii),Jr==0||(Vr=h.first(Vr,{lowerIndent:!0}),!Vr))break}}(dn,kt.createRangeOn(Xt),nt,kt)}}function Ne(Bn,{dataPipeline:nt}={}){return(ve,{writer:he})=>{if(!Ye(ve,Bn))return null;if(!nt)return he.createContainerElement("span",{class:"ck-list-bogus-paragraph"});const Ae=he.createContainerElement("p");return he.setCustomProperty("dataPipeline:transparentRendering",!0,Ae),Ae}}function Ye(Bn,nt,ve=C(Bn)){if(!M(Bn))return!1;for(const he of Bn.getAttributeKeys())if(!he.startsWith("selection:")&&!nt.includes(he))return!1;return ve.length<2}var mt=t(62),Ct=t.n(mt),ln=t(78),$e={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ct()(ln.Z,$e),ln.Z.locals;var Qe=t(272),bt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ct()(Qe.Z,bt),Qe.Z.locals;const It=["listType","listIndent","listItemId"];class mn extends n.Plugin{constructor(){super(...arguments),this._downcastStrategies=[]}static get pluginName(){return"DocumentListEditing"}static get requires(){return[a.Enter,s.Delete,q]}init(){const nt=this.editor,ve=nt.model;if(nt.plugins.has("ListEditing"))throw new c.CKEditorError("document-list-feature-conflict",this,{conflictPlugin:"ListEditing"});ve.schema.extend("$container",{allowAttributes:It}),ve.schema.extend("$block",{allowAttributes:It}),ve.schema.extend("$blockObject",{allowAttributes:It});for(const he of It)ve.schema.setAttributeProperties(he,{copyOnReplace:!0});nt.commands.add("numberedList",new V(nt,"numbered")),nt.commands.add("bulletedList",new V(nt,"bulleted")),nt.commands.add("indentList",new H(nt,"forward")),nt.commands.add("outdentList",new H(nt,"backward")),nt.commands.add("mergeListItemBackward",new $(nt,"backward")),nt.commands.add("mergeListItemForward",new $(nt,"forward")),nt.commands.add("splitListItemBefore",new ee(nt,"before")),nt.commands.add("splitListItemAfter",new ee(nt,"after")),this._setupDeleteIntegration(),this._setupEnterIntegration(),this._setupTabIntegration(),this._setupClipboardIntegration()}afterInit(){const nt=this.editor.commands,ve=nt.get("indent"),he=nt.get("outdent");ve&&ve.registerChildCommand(nt.get("indentList"),{priority:"high"}),he&&he.registerChildCommand(nt.get("outdentList"),{priority:"lowest"}),this._setupModelPostFixing(),this._setupConversion()}registerDowncastStrategy(nt){this._downcastStrategies.push(nt)}_getListAttributeNames(){return[...It,...this._downcastStrategies.map(nt=>nt.attributeName)]}_setupDeleteIntegration(){const nt=this.editor,ve=nt.commands.get("mergeListItemBackward"),he=nt.commands.get("mergeListItemForward");this.listenTo(nt.editing.view.document,"delete",(Ae,tt)=>{const St=nt.model.document.selection;A(nt.model)||nt.model.change(()=>{const kt=St.getFirstPosition();if(St.isCollapsed&&tt.direction=="backward"){if(!kt.isAtStart)return;const Jt=kt.parent;if(!M(Jt))return;if(h.first(Jt,{sameAttributes:"listType",sameIndent:!0})||Jt.getAttribute("listIndent")!==0){if(!ve.isEnabled)return;ve.execute({shouldMergeOnBlocksContentLevel:un(nt.model,"backward")})}else U(Jt)||nt.execute("splitListItemAfter"),nt.execute("outdentList");tt.preventDefault(),Ae.stop()}else{if(St.isCollapsed&&!St.getLastPosition().isAtEnd||!he.isEnabled)return;he.execute({shouldMergeOnBlocksContentLevel:un(nt.model,"forward")}),tt.preventDefault(),Ae.stop()}})},{context:"li"})}_setupEnterIntegration(){const nt=this.editor,ve=nt.model,he=nt.commands,Ae=he.get("enter");this.listenTo(nt.editing.view.document,"enter",(tt,St)=>{const kt=ve.document,Jt=kt.selection.getFirstPosition().parent;if(kt.selection.isCollapsed&&M(Jt)&&Jt.isEmpty&&!St.isSoft){const gt=F(Jt),dn=U(Jt);gt&&dn?(nt.execute("outdentList"),St.preventDefault(),tt.stop()):gt&&!dn?(nt.execute("splitListItemAfter"),St.preventDefault(),tt.stop()):dn&&(nt.execute("splitListItemBefore"),St.preventDefault(),tt.stop())}},{context:"li"}),this.listenTo(Ae,"afterExecute",()=>{const tt=he.get("splitListItemBefore");tt.refresh(),tt.isEnabled&&C(nt.model.document.selection.getLastPosition().parent).length===2&&tt.execute()})}_setupTabIntegration(){const nt=this.editor;this.listenTo(nt.editing.view.document,"tab",(ve,he)=>{const Ae=he.shiftKey?"outdentList":"indentList";this.editor.commands.get(Ae).isEnabled&&(nt.execute(Ae),he.stopPropagation(),he.preventDefault(),ve.stop())},{context:"li"})}_setupConversion(){const nt=this.editor,ve=nt.model,he=this._getListAttributeNames();nt.conversion.for("upcast").elementToElement({view:"li",model:"paragraph"}).add(Ae=>{Ae.on("element:li",(tt,St,kt)=>{const{writer:Jt,schema:gt}=kt;if(!St.modelRange)return;const dn=Array.from(St.modelRange.getItems({shallow:!0})).filter(hn=>gt.checkAttribute(hn,"listItemId"));if(!dn.length)return;const Xt={listItemId:k.next(),listIndent:Ie(St.viewItem),listType:St.viewItem.parent&&St.viewItem.parent.is("element","ol")?"numbered":"bulleted"};for(const hn of dn)M(hn)||Jt.setAttributes(Xt,hn);dn.length>1&&dn[1].getAttribute("listItemId")!=Xt.listItemId&&kt.keepEmptyElement(dn[0])}),Ae.on("element:ul",Me(),{priority:"high"}),Ae.on("element:ol",Me(),{priority:"high"})}),nt.conversion.for("editingDowncast").elementToElement({model:"paragraph",view:Ne(he),converterPriority:"high"}),nt.conversion.for("dataDowncast").elementToElement({model:"paragraph",view:Ne(he,{dataPipeline:!0}),converterPriority:"high"}),nt.conversion.for("downcast").add(Ae=>{Ae.on("attribute",Ce(he,this._downcastStrategies,ve))}),this.listenTo(ve.document,"change:data",function(Ae,tt,St,kt){return()=>{const Xt=Ae.document.differ.getChanges(),hn=[],Sn=new Map,Jn=new Set;for(const Vn of Xt)if(Vn.type=="insert"&&Vn.name!="$text")we(Vn.position,Sn),Vn.attributes.has("listItemId")?Jn.add(Vn.position.nodeAfter):we(Vn.position.getShiftedBy(Vn.length),Sn);else if(Vn.type=="remove"&&Vn.attributes.has("listItemId"))we(Vn.position,Sn);else if(Vn.type=="attribute"){const ar=Vn.range.start.nodeAfter;St.includes(Vn.attributeKey)?(we(Vn.range.start,Sn),Vn.attributeNewValue===null?(we(Vn.range.start.getShiftedBy(1),Sn),gt(ar)&&hn.push(ar)):Jn.add(ar)):M(ar)&&gt(ar)&&hn.push(ar)}for(const Vn of Sn.values())hn.push(...Jt(Vn,Jn));for(const Vn of new Set(hn))tt.reconvertItem(Vn)};function Jt(Xt,hn){const Sn=[],Jn=new Set,Vn=[];for(const{node:ar,previous:Vr}of p(Xt,"forward")){if(Jn.has(ar))continue;const Jr=ar.getAttribute("listIndent");Vr&&Jr<Vr.getAttribute("listIndent")&&(Vn.length=Jr+1),Vn[Jr]=Object.fromEntries(Array.from(ar.getAttributes()).filter(([Ii])=>St.includes(Ii)));const yi=w(ar,{direction:"forward"});for(const Ii of yi)Jn.add(Ii),(gt(Ii,yi)||dn(Ii,Vn,hn))&&Sn.push(Ii)}return Sn}function gt(Xt,hn){if(!Xt.is("element","paragraph"))return!1;const Sn=tt.mapper.toViewElement(Xt);if(!Sn)return!1;const Jn=Ye(Xt,St,hn);return!(!Jn||!Sn.is("element","p"))||!(Jn||!Sn.is("element","span"))}function dn(Xt,hn,Sn){if(Sn.has(Xt))return!1;const Jn=tt.mapper.toViewElement(Xt);let Vn=hn.length-1;for(let ar=Jn.parent;!ar.is("editableElement");ar=ar.parent){const Vr=pe(ar),Jr=X(ar);if(!Jr&&!Vr)continue;const yi="checkAttributes:"+(Vr?"item":"list");if(kt.fire(yi,{viewElement:ar,modelAttributes:hn[Vn]}))break;if(Jr&&(Vn--,Vn<0))return!1}return!0}}(ve,nt.editing,he,this),{priority:"high"}),this.on("checkAttributes:item",(Ae,{viewElement:tt,modelAttributes:St})=>{tt.id!=St.listItemId&&(Ae.return=!0,Ae.stop())}),this.on("checkAttributes:list",(Ae,{viewElement:tt,modelAttributes:St})=>{tt.name==fe(St.listType)&&tt.id==ue(St.listType,St.listIndent)||(Ae.return=!0,Ae.stop())})}_setupModelPostFixing(){const nt=this.editor.model,ve=this._getListAttributeNames();nt.document.registerPostFixer(he=>function(Ae,tt,St,kt){const Jt=Ae.document.differ.getChanges(),gt=new Map;let dn=!1;for(const hn of Jt)if(hn.type=="insert"&&hn.name!="$text"){const Sn=hn.position.nodeAfter;if(!Ae.schema.checkAttribute(Sn,"listItemId"))for(const Jn of Array.from(Sn.getAttributeKeys()))St.includes(Jn)&&(tt.removeAttribute(Jn,Sn),dn=!0);we(hn.position,gt),hn.attributes.has("listItemId")||we(hn.position.getShiftedBy(hn.length),gt);for(const{item:Jn,previousPosition:Vn}of Ae.createRangeIn(Sn))M(Jn)&&we(Vn,gt)}else hn.type=="remove"?we(hn.position,gt):hn.type=="attribute"&&St.includes(hn.attributeKey)&&(we(hn.range.start,gt),hn.attributeNewValue===null&&we(hn.range.start.getShiftedBy(1),gt));const Xt=new Set;for(const hn of gt.values())dn=kt.fire("postFixer",{listNodes:new d(hn),listHead:hn,writer:tt,seenIds:Xt})||dn;return dn}(nt,he,ve,this)),this.on("postFixer",(he,{listNodes:Ae,writer:tt})=>{he.return=function(St,kt){let Jt=0,gt=-1,dn=null,Xt=!1;for(const{node:hn}of St){const Sn=hn.getAttribute("listIndent");if(Sn>Jt){let Jn;dn===null?(dn=Sn-Jt,Jn=Jt):(dn>Sn&&(dn=Sn),Jn=Sn-dn),Jn>gt+1&&(Jn=gt+1),kt.setAttribute("listIndent",Jn,hn),Xt=!0,gt=Jn}else dn=null,Jt=Sn+1,gt=Sn}return Xt}(Ae,tt)||he.return},{priority:"high"}),this.on("postFixer",(he,{listNodes:Ae,writer:tt,seenIds:St})=>{he.return=function(kt,Jt,gt){const dn=new Set;let Xt=!1;for(const{node:hn}of kt){if(dn.has(hn))continue;let Sn=hn.getAttribute("listType"),Jn=hn.getAttribute("listItemId");Jt.has(Jn)&&(Jn=k.next()),Jt.add(Jn);for(const Vn of w(hn,{direction:"forward"}))dn.add(Vn),Vn.getAttribute("listType")!=Sn&&(Jn=k.next(),Sn=Vn.getAttribute("listType")),Vn.getAttribute("listItemId")!=Jn&&(gt.setAttribute("listItemId",Jn,Vn),Xt=!0)}return Xt}(Ae,St,tt)||he.return},{priority:"high"})}_setupClipboardIntegration(){const nt=this.editor.model;this.listenTo(nt,"insertContent",function(ve){return(he,[Ae,tt])=>{const St=Ae.is("documentFragment")?Ae.getChild(0):Ae;if(!M(St))return;let kt;kt=tt?ve.createSelection(tt):ve.document.selection;const Jt=kt.getFirstPosition();let gt=null;if(M(Jt.parent)?gt=Jt.parent:M(Jt.nodeBefore)&&(gt=Jt.nodeBefore),!gt)return;const dn=gt.getAttribute("listIndent")-St.getAttribute("listIndent");dn<=0||ve.change(Xt=>{for(const{node:hn}of p(St,"forward"))Xt.setAttribute("listIndent",hn.getAttribute("listIndent")+dn,hn)})}}(nt),{priority:"high"}),this.listenTo(nt,"getSelectedContent",(ve,[he])=>{b(Array.from(he.getSelectedBlocks()))&&nt.change(Ae=>u(Array.from(ve.return.getChildren()),Ae))})}}function un(Bn,nt){const ve=Bn.document.selection;if(!ve.isCollapsed)return!A(Bn);if(nt==="forward")return!0;const he=ve.getFirstPosition().parent,Ae=he.previousSibling;return!Bn.schema.isObject(Ae)&&(!!Ae.isEmpty||b([he,Ae]))}var Be=t(273);function je(Bn,nt){const ve=nt.mapper,he=nt.writer,Ae=Bn.getAttribute("listType")=="numbered"?"ol":"ul",tt=function(kt){const Jt=kt.createContainerElement("li");return Jt.getFillerOffset=ut,Jt}(he),St=he.createContainerElement(Ae,null);return he.insert(he.createPositionAt(St,0),tt),ve.bindElements(Bn,tt),tt}function $t(Bn,nt,ve,he){const Ae=nt.parent,tt=ve.mapper,St=ve.writer;let kt=tt.toViewPosition(he.createPositionBefore(Bn));const Jt=kn(Bn.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:Bn.getAttribute("listIndent")}),gt=Bn.previousSibling;if(Jt&&Jt.getAttribute("listIndent")==Bn.getAttribute("listIndent")){const dn=tt.toViewElement(Jt);kt=St.breakContainer(St.createPositionAfter(dn))}else if(gt&&gt.name=="listItem"){kt=tt.toViewPosition(he.createPositionAt(gt,"end"));const dn=tt.findMappedViewAncestor(kt),Xt=ht(dn);kt=Xt?St.createPositionBefore(Xt):St.createPositionAt(dn,"end")}else kt=tt.toViewPosition(he.createPositionBefore(Bn));if(kt=Kt(kt),St.insert(kt,Ae),gt&&gt.name=="listItem"){const dn=tt.toViewElement(gt),Xt=St.createRange(St.createPositionAt(dn,0),kt).getWalker({ignoreElementEnd:!0});for(const hn of Xt)if(hn.item.is("element","li")){const Sn=St.breakContainer(St.createPositionBefore(hn.item)),Jn=hn.item.parent,Vn=St.createPositionAt(nt,"end");et(St,Vn.nodeBefore,Vn.nodeAfter),St.move(St.createRangeOn(Jn),Vn),Xt.position=Sn}}else{const dn=Ae.nextSibling;if(dn&&(dn.is("element","ul")||dn.is("element","ol"))){let Xt=null;for(const hn of dn.getChildren()){const Sn=tt.toModelElement(hn);if(!(Sn&&Sn.getAttribute("listIndent")>Bn.getAttribute("listIndent")))break;Xt=hn}Xt&&(St.breakContainer(St.createPositionAfter(Xt)),St.move(St.createRangeOn(Xt.parent),St.createPositionAt(nt,"end")))}}et(St,Ae,Ae.nextSibling),et(St,Ae.previousSibling,Ae)}function et(Bn,nt,ve){return!nt||!ve||nt.name!="ul"&&nt.name!="ol"||nt.name!=ve.name||nt.getAttribute("class")!==ve.getAttribute("class")?null:Bn.mergeContainers(Bn.createPositionAfter(nt))}function Kt(Bn){return Bn.getLastMatchingPosition(nt=>nt.item.is("uiElement"))}function kn(Bn,nt){const ve=!!nt.sameIndent,he=!!nt.smallerIndent,Ae=nt.listIndent;let tt=Bn;for(;tt&&tt.name=="listItem";){const St=tt.getAttribute("listIndent");if(ve&&Ae==St||he&&Ae>St)return tt;tt=nt.direction==="forward"?tt.nextSibling:tt.previousSibling}return null}function Tn(Bn,nt,ve,he){Bn.ui.componentFactory.add(nt,Ae=>{const tt=Bn.commands.get(nt),St=new Be.ButtonView(Ae);return St.set({label:ve,icon:he,tooltip:!0,isToggleable:!0}),St.bind("isOn","isEnabled").to(tt,"value","isEnabled"),St.on("execute",()=>{Bn.execute(nt),Bn.editing.view.focus()}),St})}function ht(Bn){for(const nt of Bn.getChildren())if(nt.name=="ul"||nt.name=="ol")return nt;return null}function ot(Bn,nt){const ve=[],he=Bn.parent,Ae={ignoreElementEnd:!1,startPosition:Bn,shallow:!0,direction:nt},tt=he.getAttribute("listIndent"),St=[...new oe.TreeWalker(Ae)].filter(kt=>kt.item.is("element")).map(kt=>kt.item);for(const kt of St){if(!kt.is("element","listItem")||kt.getAttribute("listIndent")<tt)break;if(!(kt.getAttribute("listIndent")>tt)){if(kt.getAttribute("listType")!==he.getAttribute("listType")||kt.getAttribute("listStyle")!==he.getAttribute("listStyle")||kt.getAttribute("listReversed")!==he.getAttribute("listReversed")||kt.getAttribute("listStart")!==he.getAttribute("listStart"))break;nt==="backward"?ve.unshift(kt):ve.push(kt)}}return ve}function Je(Bn){let nt=[...Bn.document.selection.getSelectedBlocks()].filter(ve=>ve.is("element","listItem")).map(ve=>{const he=Bn.change(Ae=>Ae.createPositionAt(ve,0));return[...ot(he,"backward"),...ot(he,"forward")]}).flat();return nt=[...new Set(nt)],nt}const wt=["disc","circle","square"],ft=["decimal","decimal-leading-zero","lower-roman","upper-roman","lower-latin","upper-latin"];function vn(Bn){return wt.includes(Bn)?"bulleted":ft.includes(Bn)?"numbered":null}function ut(){const Bn=!this.isEmpty&&(this.getChild(0).name=="ul"||this.getChild(0).name=="ol");return this.isEmpty||Bn?0:oe.getFillerOffset.call(this)}const Wt='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM3.5 3v5H2V3.7H1v-1h2.5V3zM.343 17.857l2.59-3.257H2.92a.6.6 0 1 0-1.04 0H.302a2 2 0 1 1 3.995 0h-.001c-.048.405-.16.734-.333.988-.175.254-.59.692-1.244 1.312H4.3v1h-4l.043-.043zM7 14.75a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>',ae='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0C1 4.784 1.777 4 2.75 4c.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75C1.784 7.5 1 6.723 1 5.75zm6 9c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0c0-.966.777-1.75 1.75-1.75.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75-.966 0-1.75-.777-1.75-1.75z"/></svg>';class ne extends n.Plugin{static get pluginName(){return"ListUI"}init(){const nt=this.editor.t;Tn(this.editor,"numberedList",nt("Numbered List"),Wt),Tn(this.editor,"bulletedList",nt("Bulleted List"),ae)}}class ge extends n.Plugin{static get requires(){return[mn,ne]}static get pluginName(){return"DocumentList"}}class ye extends n.Command{refresh(){const nt=this._getValue();this.value=nt,this.isEnabled=nt!=null}execute({startIndex:nt=1}={}){const ve=this.editor.model,he=ve.document;let Ae=Array.from(he.selection.getSelectedBlocks()).filter(tt=>M(tt)&&tt.getAttribute("listType")=="numbered");Ae=N(Ae),ve.change(tt=>{for(const St of Ae)tt.setAttribute("listStart",nt>=0?nt:1,St)})}_getValue(){const nt=this.editor.model.document,ve=(0,c.first)(nt.selection.getSelectedBlocks());return ve&&M(ve)&&ve.getAttribute("listType")=="numbered"?ve.getAttribute("listStart"):null}}const Xe={},Ze={},lt={},_t=[{listStyle:"disc",typeAttribute:"disc",listType:"bulleted"},{listStyle:"circle",typeAttribute:"circle",listType:"bulleted"},{listStyle:"square",typeAttribute:"square",listType:"bulleted"},{listStyle:"decimal",typeAttribute:"1",listType:"numbered"},{listStyle:"decimal-leading-zero",typeAttribute:null,listType:"numbered"},{listStyle:"lower-roman",typeAttribute:"i",listType:"numbered"},{listStyle:"upper-roman",typeAttribute:"I",listType:"numbered"},{listStyle:"lower-alpha",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-alpha",typeAttribute:"A",listType:"numbered"},{listStyle:"lower-latin",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-latin",typeAttribute:"A",listType:"numbered"}];for(const{listStyle:Bn,typeAttribute:nt,listType:ve}of _t)Xe[Bn]=ve,Ze[Bn]=nt,nt&&(lt[nt]=Bn);function zt(){return _t.map(Bn=>Bn.listStyle)}function Vt(Bn){return Xe[Bn]||null}function sn(Bn){return lt[Bn]||null}function yn(Bn){return Ze[Bn]||null}class dr extends n.Command{constructor(nt,ve,he){super(nt),this.defaultType=ve,this._supportedTypes=he}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(nt={}){const ve=this.editor.model,he=ve.document;ve.change(Ae=>{this._tryToConvertItemsToList(nt);let tt=Array.from(he.selection.getSelectedBlocks()).filter(St=>St.hasAttribute("listType"));if(tt.length){tt=N(tt);for(const St of tt)Ae.setAttribute("listStyle",nt.type||this.defaultType,St)}})}isStyleTypeSupported(nt){return!this._supportedTypes||this._supportedTypes.includes(nt)}_getValue(){const nt=(0,c.first)(this.editor.model.document.selection.getSelectedBlocks());return M(nt)?nt.getAttribute("listStyle"):null}_checkEnabled(){const nt=this.editor,ve=nt.commands.get("numberedList"),he=nt.commands.get("bulletedList");return ve.isEnabled||he.isEnabled}_tryToConvertItemsToList(nt){if(!nt.type)return;const ve=Vt(nt.type);if(!ve)return;const he=this.editor,Ae=`${ve}List`;he.commands.get(Ae).value||he.execute(Ae)}}class hr extends n.Command{refresh(){const nt=this._getValue();this.value=nt,this.isEnabled=nt!=null}execute(nt={}){const ve=this.editor.model,he=ve.document;let Ae=Array.from(he.selection.getSelectedBlocks()).filter(tt=>M(tt)&&tt.getAttribute("listType")=="numbered");Ae=N(Ae),ve.change(tt=>{for(const St of Ae)tt.setAttribute("listReversed",!!nt.reversed,St)})}_getValue(){const nt=this.editor.model.document,ve=(0,c.first)(nt.selection.getSelectedBlocks());return M(ve)&&ve.getAttribute("listType")=="numbered"?ve.getAttribute("listReversed"):null}}function Mr(Bn){return(nt,ve,he)=>{const{writer:Ae,schema:tt,consumable:St}=he;if(St.test(ve.viewItem,Bn.viewConsumables)===!1)return;ve.modelRange||Object.assign(ve,he.convertChildren(ve.viewItem,ve.modelCursor));let kt=!1;for(const Jt of ve.modelRange.getItems({shallow:!0}))tt.checkAttribute(Jt,Bn.attributeName)&&Bn.appliesToListItem(Jt)&&(Jt.hasAttribute(Bn.attributeName)||(Ae.setAttribute(Bn.attributeName,Bn.getAttributeOnUpcast(ve.viewItem),Jt),kt=!0));kt&&St.consume(ve.viewItem,Bn.viewConsumables)}}class rr extends n.Plugin{static get pluginName(){return"DocumentListPropertiesUtils"}getAllSupportedStyleTypes(){return zt()}getListTypeFromListStyleType(nt){return Vt(nt)}getListStyleTypeFromTypeAttribute(nt){return sn(nt)}getTypeAttributeFromListStyleType(nt){return yn(nt)}}const Cr="default";class Ur extends n.Plugin{static get requires(){return[mn,rr]}static get pluginName(){return"DocumentListPropertiesEditing"}constructor(nt){super(nt),nt.config.define("list",{properties:{styles:!0,startIndex:!1,reversed:!1}})}init(){const nt=this.editor,ve=nt.model,he=nt.plugins.get(mn),Ae=function(tt){const St=[];if(tt.styles){const kt=typeof tt.styles=="object"&&tt.styles.useAttribute;St.push({attributeName:"listStyle",defaultValue:Cr,viewConsumables:{styles:"list-style-type"},addCommand(Jt){let gt=zt();kt&&(gt=gt.filter(dn=>!!yn(dn))),Jt.commands.add("listStyle",new dr(Jt,Cr,gt))},appliesToListItem:()=>!0,hasValidAttribute(Jt){if(!Jt.hasAttribute("listStyle"))return!1;const gt=Jt.getAttribute("listStyle");return gt==Cr||Vt(gt)==Jt.getAttribute("listType")},setAttributeOnDowncast(Jt,gt,dn){if(gt&&gt!==Cr){if(!kt)return void Jt.setStyle("list-style-type",gt,dn);{const Xt=yn(gt);if(Xt)return void Jt.setAttribute("type",Xt,dn)}}Jt.removeStyle("list-style-type",dn),Jt.removeAttribute("type",dn)},getAttributeOnUpcast(Jt){const gt=Jt.getStyle("list-style-type");if(gt)return gt;const dn=Jt.getAttribute("type");return dn?sn(dn):Cr}})}return tt.reversed&&St.push({attributeName:"listReversed",defaultValue:!1,viewConsumables:{attributes:"reversed"},addCommand(kt){kt.commands.add("listReversed",new hr(kt))},appliesToListItem:kt=>kt.getAttribute("listType")=="numbered",hasValidAttribute(kt){return this.appliesToListItem(kt)==kt.hasAttribute("listReversed")},setAttributeOnDowncast(kt,Jt,gt){Jt?kt.setAttribute("reversed","reversed",gt):kt.removeAttribute("reversed",gt)},getAttributeOnUpcast:kt=>kt.hasAttribute("reversed")}),tt.startIndex&&St.push({attributeName:"listStart",defaultValue:1,viewConsumables:{attributes:"start"},addCommand(kt){kt.commands.add("listStart",new ye(kt))},appliesToListItem:kt=>kt.getAttribute("listType")=="numbered",hasValidAttribute(kt){return this.appliesToListItem(kt)==kt.hasAttribute("listStart")},setAttributeOnDowncast(kt,Jt,gt){Jt==0||Jt>1?kt.setAttribute("start",Jt,gt):kt.removeAttribute("start",gt)},getAttributeOnUpcast(kt){const Jt=kt.getAttribute("start");return Jt>=0?Jt:1}}),St}(nt.config.get("list.properties"));for(const tt of Ae)tt.addCommand(nt),ve.schema.extend("$container",{allowAttributes:tt.attributeName}),ve.schema.extend("$block",{allowAttributes:tt.attributeName}),ve.schema.extend("$blockObject",{allowAttributes:tt.attributeName}),he.registerDowncastStrategy({scope:"list",attributeName:tt.attributeName,setAttributeOnDowncast(St,kt,Jt){tt.setAttributeOnDowncast(St,kt,Jt)}});nt.conversion.for("upcast").add(tt=>{for(const St of Ae)tt.on("element:ol",Mr(St)),tt.on("element:ul",Mr(St))}),he.on("checkAttributes:list",(tt,{viewElement:St,modelAttributes:kt})=>{for(const Jt of Ae)Jt.getAttributeOnUpcast(St)!=kt[Jt.attributeName]&&(tt.return=!0,tt.stop())}),this.listenTo(nt.commands.get("indentList"),"afterExecute",(tt,St)=>{ve.change(kt=>{for(const Jt of St)for(const gt of Ae)gt.appliesToListItem(Jt)&&kt.setAttribute(gt.attributeName,gt.defaultValue,Jt)})}),he.on("postFixer",(tt,{listNodes:St,writer:kt})=>{for(const{node:Jt}of St)for(const gt of Ae)gt.hasValidAttribute(Jt)||(gt.appliesToListItem(Jt)?kt.setAttribute(gt.attributeName,gt.defaultValue,Jt):kt.removeAttribute(gt.attributeName,Jt),tt.return=!0)}),he.on("postFixer",(tt,{listNodes:St,writer:kt})=>{const Jt=[];for(const{node:gt,previous:dn}of St){if(!dn)continue;const Xt=gt.getAttribute("listIndent"),hn=dn.getAttribute("listIndent");let Sn=null;if(Xt>hn?Jt[hn]=dn:Xt<hn?(Sn=Jt[Xt],Jt.length=Xt):Sn=dn,Sn&&Sn.getAttribute("listType")==gt.getAttribute("listType"))for(const Jn of Ae){const{attributeName:Vn}=Jn;if(!Jn.appliesToListItem(gt))continue;const ar=Sn.getAttribute(Vn);gt.getAttribute(Vn)!=ar&&(kt.setAttribute(Vn,ar,gt),tt.return=!0)}}})}}var $r=t(389),li={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ct()($r.Z,li),$r.Z.locals;class ri extends Be.View{constructor(nt,ve){super(nt);const he=this.bindTemplate;this.set("isCollapsed",!1),this.set("label",""),this.buttonView=this._createButtonView(),this.children=this.createCollection(),this.set("_collapsibleAriaLabelUid",void 0),ve&&this.children.addMany(ve),this.setTemplate({tag:"div",attributes:{class:["ck","ck-collapsible",he.if("isCollapsed","ck-collapsible_collapsed")]},children:[this.buttonView,{tag:"div",attributes:{class:["ck","ck-collapsible__children"],role:"region",hidden:he.if("isCollapsed","hidden"),"aria-labelledby":he.to("_collapsibleAriaLabelUid")},children:this.children}]})}render(){super.render(),this._collapsibleAriaLabelUid=this.buttonView.labelView.element.id}_createButtonView(){const nt=new Be.ButtonView(this.locale),ve=nt.bindTemplate;return nt.set({withText:!0,icon:'<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/></svg>'}),nt.extendTemplate({attributes:{"aria-expanded":ve.to("isOn",he=>String(he))}}),nt.bind("label").to(this),nt.bind("isOn").to(this,"isCollapsed",he=>!he),nt.on("execute",()=>{this.isCollapsed=!this.isCollapsed}),nt}}var Bt=t(543),Et={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ct()(Bt.Z,Et),Bt.Z.locals;class bn extends Be.View{constructor(nt,{enabledProperties:ve,styleButtonViews:he,styleGridAriaLabel:Ae}){super(nt),this.stylesView=null,this.additionalPropertiesCollapsibleView=null,this.startIndexFieldView=null,this.reversedSwitchButtonView=null,this.focusTracker=new c.FocusTracker,this.keystrokes=new c.KeystrokeHandler,this.focusables=new Be.ViewCollection;const tt=["ck","ck-list-properties"];this.children=this.createCollection(),this.focusCycler=new Be.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),ve.styles?(this.stylesView=this._createStylesView(he,Ae),this.children.add(this.stylesView)):tt.push("ck-list-properties_without-styles"),(ve.startIndex||ve.reversed)&&(this._addNumberedListPropertyViews(ve),tt.push("ck-list-properties_with-numbered-properties")),this.setTemplate({tag:"div",attributes:{class:tt},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element),(this.startIndexFieldView||this.reversedSwitchButtonView)&&(this.focusables.add(this.children.last.buttonView),this.focusTracker.add(this.children.last.buttonView.element));for(const nt of this.stylesView.children)this.stylesView.focusTracker.add(nt.element);(0,Be.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>c.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element),this.listenTo(this.startIndexFieldView.element,"selectstart",(ve,he)=>{he.stopPropagation()},{priority:"high"});const nt=ve=>ve.stopPropagation();this.keystrokes.set("arrowright",nt),this.keystrokes.set("arrowleft",nt),this.keystrokes.set("arrowup",nt),this.keystrokes.set("arrowdown",nt)}this.reversedSwitchButtonView&&(this.focusables.add(this.reversedSwitchButtonView),this.focusTracker.add(this.reversedSwitchButtonView.element)),this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createStylesView(nt,ve){const he=new Be.View(this.locale);return he.children=he.createCollection(),he.children.addMany(nt),he.setTemplate({tag:"div",attributes:{"aria-label":ve,class:["ck","ck-list-styles-list"]},children:he.children}),he.children.delegate("execute").to(this),he.focus=function(){this.children.first.focus()},he.focusTracker=new c.FocusTracker,he.keystrokes=new c.KeystrokeHandler,he.render(),he.keystrokes.listenTo(he.element),he}_addNumberedListPropertyViews(nt){const ve=this.locale.t,he=[];nt.startIndex&&(this.startIndexFieldView=this._createStartIndexField(),he.push(this.startIndexFieldView)),nt.reversed&&(this.reversedSwitchButtonView=this._createReversedSwitchButton(),he.push(this.reversedSwitchButtonView)),nt.styles?(this.additionalPropertiesCollapsibleView=new ri(this.locale,he),this.additionalPropertiesCollapsibleView.set({label:ve("List properties"),isCollapsed:!0}),this.additionalPropertiesCollapsibleView.buttonView.bind("isEnabled").toMany(he,"isEnabled",(...Ae)=>Ae.some(tt=>tt)),this.additionalPropertiesCollapsibleView.buttonView.on("change:isEnabled",(Ae,tt,St)=>{St||(this.additionalPropertiesCollapsibleView.isCollapsed=!0)}),this.children.add(this.additionalPropertiesCollapsibleView)):this.children.addMany(he)}_createStartIndexField(){const nt=this.locale.t,ve=new Be.LabeledFieldView(this.locale,Be.createLabeledInputNumber);return ve.set({label:nt("Start at"),class:"ck-numbered-list-properties__start-index"}),ve.fieldView.set({min:0,step:1,value:1,inputMode:"numeric"}),ve.fieldView.on("input",()=>{const he=ve.fieldView.element,Ae=he.valueAsNumber;Number.isNaN(Ae)||(he.checkValidity()?this.fire("listStart",{startIndex:Ae}):ve.errorText=nt("Start index must be greater than 0."))}),ve}_createReversedSwitchButton(){const nt=this.locale.t,ve=new Be.SwitchButtonView(this.locale);return ve.set({withText:!0,label:nt("Reversed order"),class:"ck-numbered-list-properties__reversed-order"}),ve.delegate("execute").to(this,"listReversed"),ve}}var cn=t(657),Yn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ct()(cn.Z,Yn),cn.Z.locals;class on extends n.Plugin{static get pluginName(){return"ListPropertiesUI"}init(){const nt=this.editor,ve=nt.locale.t,he=nt.config.get("list.properties");he.styles&&nt.ui.componentFactory.add("bulletedList",ze({editor:nt,parentCommandName:"bulletedList",buttonLabel:ve("Bulleted List"),buttonIcon:ae,styleGridAriaLabel:ve("Bulleted list styles toolbar"),styleDefinitions:[{label:ve("Toggle the disc list style"),tooltip:ve("Disc"),type:"disc",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11 27a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0-9a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0-9a3 3 0 1 1 0 6 3 3 0 0 1 0-6z"/></svg>'},{label:ve("Toggle the circle list style"),tooltip:ve("Circle"),type:"circle",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11 27a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm0-10a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm0-10a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4z"/></svg>'},{label:ve("Toggle the square list style"),tooltip:ve("Square"),type:"square",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M14 27v6H8v-6h6zm0-9v6H8v-6h6zm0-9v6H8V9h6z"/></svg>'}]})),(he.styles||he.startIndex||he.reversed)&&nt.ui.componentFactory.add("numberedList",ze({editor:nt,parentCommandName:"numberedList",buttonLabel:ve("Numbered List"),buttonIcon:Wt,styleGridAriaLabel:ve("Numbered list styles toolbar"),styleDefinitions:[{label:ve("Toggle the decimal list style"),tooltip:ve("Decimal"),type:"decimal",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M10.29 15V8.531H9.286c-.14.393-.4.736-.778 1.03-.378.295-.728.495-1.05.6v1.121a4.257 4.257 0 0 0 1.595-.936V15h1.235zm3.343 0v-1.235h-1.235V15h1.235zM11.3 24v-1.147H8.848c.064-.111.148-.226.252-.343.104-.117.351-.354.74-.712.39-.357.66-.631.81-.821.225-.288.39-.562.494-.824.104-.263.156-.539.156-.829 0-.51-.182-.936-.545-1.279-.363-.342-.863-.514-1.499-.514-.58 0-1.063.148-1.45.444-.387.296-.617.784-.69 1.463l1.23.124c.024-.36.112-.619.264-.774.153-.155.358-.233.616-.233.26 0 .465.074.613.222.148.148.222.36.222.635 0 .25-.085.501-.255.756-.126.185-.468.536-1.024 1.055-.692.641-1.155 1.156-1.389 1.544-.234.389-.375.8-.422 1.233H11.3zm2.333 0v-1.235h-1.235V24h1.235zM9.204 34.11c.615 0 1.129-.2 1.542-.598.413-.398.62-.88.62-1.446 0-.39-.11-.722-.332-.997a1.5 1.5 0 0 0-.886-.532c.619-.337.928-.788.928-1.353 0-.399-.151-.756-.453-1.073-.366-.386-.852-.58-1.459-.58a2.25 2.25 0 0 0-.96.2 1.617 1.617 0 0 0-.668.55c-.16.232-.28.544-.358.933l1.138.194c.032-.282.123-.495.272-.642.15-.146.33-.22.54-.22.215 0 .386.065.515.194s.193.302.193.518c0 .255-.087.46-.263.613-.176.154-.43.227-.765.218l-.136 1.006c.22-.061.409-.092.567-.092.24 0 .444.09.61.272.168.182.251.428.251.739 0 .328-.087.589-.261.782a.833.833 0 0 1-.644.29.841.841 0 0 1-.607-.242c-.167-.16-.27-.394-.307-.698l-1.196.145c.062.542.285.98.668 1.316.384.335.868.503 1.45.503zm4.43-.11v-1.235h-1.236V34h1.235z"/></svg>'},{label:ve("Toggle the decimal with leading zero list style"),tooltip:ve("Decimal with leading zero"),type:"decimal-leading-zero",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M5.714 15.11c.624 0 1.11-.22 1.46-.66.421-.533.632-1.408.632-2.627 0-1.222-.21-2.096-.629-2.624-.351-.445-.839-.668-1.463-.668-.624 0-1.11.22-1.459.66-.422.533-.633 1.406-.633 2.619 0 1.236.192 2.095.576 2.577.384.482.89.723 1.516.723zm0-1.024a.614.614 0 0 1-.398-.14c-.115-.094-.211-.283-.287-.565-.077-.283-.115-.802-.115-1.558s.043-1.294.128-1.613c.064-.246.155-.417.272-.512a.617.617 0 0 1 .4-.143.61.61 0 0 1 .398.143c.116.095.211.284.288.567.076.283.114.802.114 1.558s-.043 1.292-.128 1.608c-.064.246-.155.417-.272.512a.617.617 0 0 1-.4.143zm6.078.914V8.531H10.79c-.14.393-.4.736-.778 1.03-.378.295-.728.495-1.05.6v1.121a4.257 4.257 0 0 0 1.595-.936V15h1.235zm3.344 0v-1.235h-1.235V15h1.235zm-9.422 9.11c.624 0 1.11-.22 1.46-.66.421-.533.632-1.408.632-2.627 0-1.222-.21-2.096-.629-2.624-.351-.445-.839-.668-1.463-.668-.624 0-1.11.22-1.459.66-.422.533-.633 1.406-.633 2.619 0 1.236.192 2.095.576 2.577.384.482.89.723 1.516.723zm0-1.024a.614.614 0 0 1-.398-.14c-.115-.094-.211-.283-.287-.565-.077-.283-.115-.802-.115-1.558s.043-1.294.128-1.613c.064-.246.155-.417.272-.512a.617.617 0 0 1 .4-.143.61.61 0 0 1 .398.143c.116.095.211.284.288.567.076.283.114.802.114 1.558s-.043 1.292-.128 1.608c-.064.246-.155.417-.272.512a.617.617 0 0 1-.4.143zm7.088.914v-1.147H10.35c.065-.111.149-.226.253-.343.104-.117.35-.354.74-.712.39-.357.66-.631.81-.821.225-.288.39-.562.493-.824.104-.263.156-.539.156-.829 0-.51-.181-.936-.544-1.279-.364-.342-.863-.514-1.499-.514-.58 0-1.063.148-1.45.444-.387.296-.617.784-.69 1.463l1.23.124c.024-.36.112-.619.264-.774.152-.155.357-.233.615-.233.261 0 .465.074.613.222.148.148.222.36.222.635 0 .25-.085.501-.255.756-.126.185-.467.536-1.024 1.055-.691.641-1.154 1.156-1.388 1.544-.235.389-.375.8-.422 1.233h4.328zm2.334 0v-1.235h-1.235V24h1.235zM5.714 34.11c.624 0 1.11-.22 1.46-.66.421-.533.632-1.408.632-2.627 0-1.222-.21-2.096-.629-2.624-.351-.445-.839-.668-1.463-.668-.624 0-1.11.22-1.459.66-.422.533-.633 1.406-.633 2.619 0 1.236.192 2.095.576 2.577.384.482.89.723 1.516.723zm0-1.024a.614.614 0 0 1-.398-.14c-.115-.094-.211-.283-.287-.565-.077-.283-.115-.802-.115-1.558s.043-1.294.128-1.613c.064-.246.155-.417.272-.512a.617.617 0 0 1 .4-.143.61.61 0 0 1 .398.143c.116.095.211.284.288.567.076.283.114.802.114 1.558s-.043 1.292-.128 1.608c-.064.246-.155.417-.272.512a.617.617 0 0 1-.4.143zm4.992 1.024c.616 0 1.13-.2 1.543-.598.413-.398.62-.88.62-1.446 0-.39-.111-.722-.332-.997a1.5 1.5 0 0 0-.886-.532c.618-.337.927-.788.927-1.353 0-.399-.15-.756-.452-1.073-.366-.386-.853-.58-1.46-.58a2.25 2.25 0 0 0-.96.2 1.617 1.617 0 0 0-.667.55c-.16.232-.28.544-.359.933l1.139.194c.032-.282.123-.495.272-.642.15-.146.33-.22.54-.22.214 0 .386.065.515.194s.193.302.193.518c0 .255-.088.46-.264.613-.175.154-.43.227-.764.218l-.136 1.006c.22-.061.408-.092.566-.092.24 0 .444.09.611.272.167.182.25.428.25.739 0 .328-.086.589-.26.782a.833.833 0 0 1-.644.29.841.841 0 0 1-.607-.242c-.167-.16-.27-.394-.308-.698l-1.195.145c.062.542.284.98.668 1.316.384.335.867.503 1.45.503zm4.43-.11v-1.235h-1.235V34h1.235z"/></svg>'},{label:ve("Toggle the lower\u2013roman list style"),tooltip:ve("Lower\u2013roman"),type:"lower-roman",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11.88 8.7V7.558h-1.234V8.7h1.234zm0 5.3V9.333h-1.234V14h1.234zm2.5 0v-1.235h-1.234V14h1.235zm-4.75 4.7v-1.142H8.395V18.7H9.63zm0 5.3v-4.667H8.395V24H9.63zm2.5-5.3v-1.142h-1.234V18.7h1.235zm0 5.3v-4.667h-1.234V24h1.235zm2.501 0v-1.235h-1.235V24h1.235zM7.38 28.7v-1.142H6.145V28.7H7.38zm0 5.3v-4.667H6.145V34H7.38zm2.5-5.3v-1.142H8.646V28.7H9.88zm0 5.3v-4.667H8.646V34H9.88zm2.5-5.3v-1.142h-1.234V28.7h1.235zm0 5.3v-4.667h-1.234V34h1.235zm2.501 0v-1.235h-1.235V34h1.235z"/></svg>'},{label:ve("Toggle the upper\u2013roman list style"),tooltip:ve("Upper-roman"),type:"upper-roman",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11.916 15V8.558h-1.301V15h1.3zm2.465 0v-1.235h-1.235V15h1.235zM9.665 25v-6.442h-1.3V25h1.3zm2.5 0v-6.442h-1.3V25h1.3zm2.466 0v-1.235h-1.235V25h1.235zm-7.216 9v-6.442h-1.3V34h1.3zm2.5 0v-6.442h-1.3V34h1.3zm2.501 0v-6.442h-1.3V34h1.3zm2.465 0v-1.235h-1.235V34h1.235z"/></svg>'},{label:ve("Toggle the lower\u2013latin list style"),tooltip:ve("Lower-latin"),type:"lower-latin",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M9.62 14.105c.272 0 .528-.05.768-.153s.466-.257.677-.462c.009.024.023.072.044.145.047.161.086.283.119.365h1.221a2.649 2.649 0 0 1-.222-.626c-.04-.195-.059-.498-.059-.908l.013-1.441c0-.536-.055-.905-.165-1.105-.11-.201-.3-.367-.569-.497-.27-.13-.68-.195-1.23-.195-.607 0-1.064.108-1.371.325-.308.217-.525.55-.65 1.002l1.12.202c.076-.217.176-.369.299-.455.123-.086.294-.13.514-.13.325 0 .546.05.663.152.118.101.176.27.176.508v.123c-.222.093-.622.194-1.2.303-.427.082-.755.178-.982.288-.227.11-.403.268-.53.474a1.327 1.327 0 0 0-.188.706c0 .398.138.728.415.988.277.261.656.391 1.136.391zm.368-.87a.675.675 0 0 1-.492-.189.606.606 0 0 1-.193-.448c0-.176.08-.32.241-.435.106-.07.33-.142.673-.215a7.19 7.19 0 0 0 .751-.19v.247c0 .296-.016.496-.048.602a.773.773 0 0 1-.295.409 1.07 1.07 0 0 1-.637.22zm4.645.765v-1.235h-1.235V14h1.235zM10.2 25.105c.542 0 1.003-.215 1.382-.646.38-.43.57-1.044.57-1.84 0-.771-.187-1.362-.559-1.774a1.82 1.82 0 0 0-1.41-.617c-.522 0-.973.216-1.354.65v-2.32H7.594V25h1.147v-.686a1.9 1.9 0 0 0 .67.592c.26.133.523.2.79.2zm-.299-.975c-.354 0-.638-.164-.852-.492-.153-.232-.229-.59-.229-1.073 0-.468.098-.818.295-1.048a.93.93 0 0 1 .738-.345c.302 0 .55.118.743.354.193.236.29.62.29 1.154 0 .5-.096.868-.288 1.1-.192.233-.424.35-.697.35zm4.478.87v-1.235h-1.234V25h1.234zm-4.017 9.105c.6 0 1.08-.142 1.437-.426.357-.284.599-.704.725-1.261l-1.213-.207c-.061.326-.167.555-.316.688a.832.832 0 0 1-.576.2.916.916 0 0 1-.75-.343c-.185-.228-.278-.62-.278-1.173 0-.498.091-.853.274-1.066.183-.212.429-.318.736-.318.232 0 .42.061.565.184.145.123.238.306.28.55l1.216-.22c-.146-.501-.387-.874-.722-1.119-.336-.244-.788-.366-1.356-.366-.695 0-1.245.214-1.653.643-.407.43-.61 1.03-.61 1.8 0 .762.202 1.358.608 1.788.406.431.95.646 1.633.646zM14.633 34v-1.235h-1.235V34h1.235z"/></svg>'},{label:ve("Toggle the upper\u2013latin list style"),tooltip:ve("Upper-latin"),type:"upper-latin",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="m7.88 15 .532-1.463h2.575L11.549 15h1.415l-2.58-6.442H9.01L6.5 15h1.38zm2.69-2.549H8.811l.87-2.39.887 2.39zM14.88 15v-1.235h-1.234V15h1.234zM9.352 25c.83-.006 1.352-.02 1.569-.044.346-.038.636-.14.872-.305.236-.166.422-.387.558-.664.137-.277.205-.562.205-.855 0-.372-.106-.695-.317-.97-.21-.276-.512-.471-.905-.585a1.51 1.51 0 0 0 .661-.567 1.5 1.5 0 0 0 .244-.83c0-.28-.066-.53-.197-.754a1.654 1.654 0 0 0-.495-.539 1.676 1.676 0 0 0-.672-.266c-.25-.042-.63-.063-1.14-.063H7.158V25h2.193zm.142-3.88H8.46v-1.49h.747c.612 0 .983.007 1.112.022.217.026.38.102.49.226.11.125.165.287.165.486a.68.68 0 0 1-.192.503.86.86 0 0 1-.525.23 11.47 11.47 0 0 1-.944.023h.18zm.17 2.795H8.46v-1.723h1.05c.592 0 .977.03 1.154.092.177.062.313.16.406.295a.84.84 0 0 1 .14.492c0 .228-.06.41-.181.547a.806.806 0 0 1-.473.257c-.126.026-.423.04-.892.04zM14.88 25v-1.235h-1.234V25h1.234zm-5.018 9.11c.691 0 1.262-.17 1.711-.512.45-.341.772-.864.965-1.567l-1.261-.4c-.109.472-.287.818-.536 1.037-.25.22-.547.33-.892.33-.47 0-.85-.173-1.143-.519-.293-.345-.44-.925-.44-1.74 0-.767.15-1.322.447-1.665.297-.343.684-.514 1.162-.514.346 0 .64.096.881.29.242.193.4.457.477.79l1.288-.307c-.147-.516-.367-.911-.66-1.187-.492-.465-1.132-.698-1.92-.698-.902 0-1.63.296-2.184.89-.554.593-.83 1.426-.83 2.498 0 1.014.275 1.813.825 2.397.551.585 1.254.877 2.11.877zM14.88 34v-1.235h-1.234V34h1.234z"/></svg>'}]}))}}function ze({editor:Bn,parentCommandName:nt,buttonLabel:ve,buttonIcon:he,styleGridAriaLabel:Ae,styleDefinitions:tt}){const St=Bn.commands.get(nt);return kt=>{const Jt=(0,Be.createDropdown)(kt,Be.SplitButtonView),gt=Jt.buttonView;return Jt.bind("isEnabled").to(St),Jt.class="ck-list-styles-dropdown",gt.on("execute",()=>{Bn.execute(nt),Bn.editing.view.focus()}),gt.set({label:ve,icon:he,tooltip:!0,isToggleable:!0}),gt.bind("isOn").to(St,"value",dn=>!!dn),Jt.once("change:isOpen",()=>{const dn=function({editor:Xt,dropdownView:hn,parentCommandName:Sn,styleDefinitions:Jn,styleGridAriaLabel:Vn}){const ar=Xt.locale,Vr=Xt.config.get("list.properties");let Jr=null;if(Sn!="numberedList"&&(Vr.startIndex=!1,Vr.reversed=!1),Vr.styles){const Ii=Xt.commands.get("listStyle"),ji=function({editor:_e,listStyleCommand:rt,parentCommandName:vt}){const Gt=_e.locale,We=_e.commands.get(vt);return({label:Ot,type:Dt,icon:gn,tooltip:Hn})=>{const nr=new Be.ButtonView(Gt);return nr.set({label:Ot,icon:gn,tooltip:Hn}),rt.on("change:value",()=>{nr.isOn=rt.value===Dt}),nr.on("execute",()=>{We.value?rt.value!==Dt?_e.execute("listStyle",{type:Dt}):_e.execute("listStyle",{type:rt.defaultType}):_e.model.change(()=>{_e.execute("listStyle",{type:Dt})})}),nr}}({editor:Xt,parentCommandName:Sn,listStyleCommand:Ii}),_n=typeof Ii.isStyleTypeSupported=="function"?_e=>Ii.isStyleTypeSupported(_e.type):()=>!0;Jr=Jn.filter(_n).map(ji)}const yi=new bn(ar,{styleGridAriaLabel:Vn,enabledProperties:Vr,styleButtonViews:Jr});if(Vr.styles&&(0,Be.focusChildOnDropdownOpen)(hn,()=>yi.stylesView.children.find(Ii=>Ii.isOn)),Vr.startIndex){const Ii=Xt.commands.get("listStart");yi.startIndexFieldView.bind("isEnabled").to(Ii),yi.startIndexFieldView.fieldView.bind("value").to(Ii),yi.on("listStart",(ji,_n)=>Xt.execute("listStart",_n))}if(Vr.reversed){const Ii=Xt.commands.get("listReversed");yi.reversedSwitchButtonView.bind("isEnabled").to(Ii),yi.reversedSwitchButtonView.bind("isOn").to(Ii,"value",ji=>!!ji),yi.on("listReversed",()=>{const ji=Ii.value;Xt.execute("listReversed",{reversed:!ji})})}return yi.delegate("execute").to(hn),yi}({editor:Bn,dropdownView:Jt,parentCommandName:nt,styleGridAriaLabel:Ae,styleDefinitions:tt});Jt.panelView.children.add(dn)}),Jt.on("execute",()=>{Bn.editing.view.focus()}),Jt}}class Le extends n.Plugin{static get requires(){return[Ur,on]}static get pluginName(){return"DocumentListProperties"}}class Ht extends n.Command{constructor(nt,ve){super(nt),this.type=ve}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(nt={}){const ve=this.editor.model,he=ve.document,Ae=Array.from(he.selection.getSelectedBlocks()).filter(St=>tr(St,ve.schema)),tt=nt.forceValue!==void 0?!nt.forceValue:this.value;ve.change(St=>{if(tt){let kt=Ae[Ae.length-1].nextSibling,Jt=Number.POSITIVE_INFINITY,gt=[];for(;kt&&kt.name=="listItem"&&kt.getAttribute("listIndent")!==0;){const dn=kt.getAttribute("listIndent");dn<Jt&&(Jt=dn);const Xt=dn-Jt;gt.push({element:kt,listIndent:Xt}),kt=kt.nextSibling}gt=gt.reverse();for(const dn of gt)St.setAttribute("listIndent",dn.listIndent,dn.element)}if(!tt){let kt=Number.POSITIVE_INFINITY;for(const Jt of Ae)Jt.is("element","listItem")&&Jt.getAttribute("listIndent")<kt&&(kt=Jt.getAttribute("listIndent"));kt=kt===0?1:kt,Mn(Ae,!0,kt),Mn(Ae,!1,kt)}for(const kt of Ae.reverse())tt&&kt.name=="listItem"?St.rename(kt,"paragraph"):tt||kt.name=="listItem"?tt||kt.name!="listItem"||kt.getAttribute("listType")==this.type||St.setAttribute("listType",this.type,kt):(St.setAttributes({listType:this.type,listIndent:0},kt),St.rename(kt,"listItem"));this.fire("_executeCleanup",Ae)})}_getValue(){const nt=(0,c.first)(this.editor.model.document.selection.getSelectedBlocks());return!!nt&&nt.is("element","listItem")&&nt.getAttribute("listType")==this.type}_checkEnabled(){if(this.value)return!0;const nt=this.editor.model.document.selection,ve=this.editor.model.schema,he=(0,c.first)(nt.getSelectedBlocks());return!!he&&tr(he,ve)}}function Mn(Bn,nt,ve){const he=nt?Bn[0]:Bn[Bn.length-1];if(he.is("element","listItem")){let Ae=he[nt?"previousSibling":"nextSibling"],tt=he.getAttribute("listIndent");for(;Ae&&Ae.is("element","listItem")&&Ae.getAttribute("listIndent")>=ve;)tt>Ae.getAttribute("listIndent")&&(tt=Ae.getAttribute("listIndent")),Ae.getAttribute("listIndent")==tt&&Bn[nt?"unshift":"push"](Ae),Ae=Ae[nt?"previousSibling":"nextSibling"]}}function tr(Bn,nt){return nt.checkChild(Bn.parent,"listItem")&&!nt.isObject(Bn)}class Sr extends n.Command{constructor(nt,ve){super(nt),this._indentBy=ve=="forward"?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const nt=this.editor.model,ve=nt.document;let he=Array.from(ve.selection.getSelectedBlocks());nt.change(Ae=>{const tt=he[he.length-1];let St=tt.nextSibling;for(;St&&St.name=="listItem"&&St.getAttribute("listIndent")>tt.getAttribute("listIndent");)he.push(St),St=St.nextSibling;this._indentBy<0&&(he=he.reverse());for(const kt of he){const Jt=kt.getAttribute("listIndent")+this._indentBy;Jt<0?Ae.rename(kt,"paragraph"):Ae.setAttribute("listIndent",Jt,kt)}this.fire("_executeCleanup",he)})}_checkEnabled(){const nt=(0,c.first)(this.editor.model.document.selection.getSelectedBlocks());if(!nt||!nt.is("element","listItem"))return!1;if(this._indentBy>0){const ve=nt.getAttribute("listIndent"),he=nt.getAttribute("listType");let Ae=nt.previousSibling;for(;Ae&&Ae.is("element","listItem")&&Ae.getAttribute("listIndent")>=ve;){if(Ae.getAttribute("listIndent")==ve)return Ae.getAttribute("listType")==he;Ae=Ae.previousSibling}return!1}return!0}}class Xr extends n.Plugin{static get pluginName(){return"ListUtils"}getListTypeFromListStyleType(nt){return vn(nt)}getSelectedListItems(nt){return Je(nt)}getSiblingNodes(nt,ve){return ot(nt,ve)}}function gi(Bn){return(nt,ve,he)=>{const Ae=he.consumable;if(!Ae.test(ve.item,"insert")||!Ae.test(ve.item,"attribute:listType")||!Ae.test(ve.item,"attribute:listIndent"))return;Ae.consume(ve.item,"insert"),Ae.consume(ve.item,"attribute:listType"),Ae.consume(ve.item,"attribute:listIndent");const tt=ve.item;$t(tt,je(tt,he),he,Bn)}}const Pi=(Bn,nt,ve)=>{if(!ve.consumable.test(nt.item,Bn.name))return;const he=ve.mapper.toViewElement(nt.item),Ae=ve.writer;Ae.breakContainer(Ae.createPositionBefore(he)),Ae.breakContainer(Ae.createPositionAfter(he));const tt=he.parent,St=nt.attributeNewValue=="numbered"?"ol":"ul";Ae.rename(St,tt)},ii=(Bn,nt,ve)=>{ve.consumable.consume(nt.item,Bn.name);const he=ve.mapper.toViewElement(nt.item).parent,Ae=ve.writer;et(Ae,he,he.nextSibling),et(Ae,he.previousSibling,he)},vr=(Bn,nt,ve)=>{if(ve.consumable.test(nt.item,Bn.name)&&nt.item.name!="listItem"){let he=ve.mapper.toViewPosition(nt.range.start);const Ae=ve.writer,tt=[];for(;(he.parent.name=="ul"||he.parent.name=="ol")&&(he=Ae.breakContainer(he),he.parent.name=="li");){const St=he,kt=Ae.createPositionAt(he.parent,"end");if(!St.isEqual(kt)){const Jt=Ae.remove(Ae.createRange(St,kt));tt.push(Jt)}he=Ae.createPositionAfter(he.parent)}if(tt.length>0){for(let St=0;St<tt.length;St++){const kt=he.nodeBefore;if(he=Ae.insert(he,tt[St]).end,St>0){const Jt=et(Ae,kt,kt.nextSibling);Jt&&Jt.parent==kt&&he.offset--}}et(Ae,he.nodeBefore,he.nodeAfter)}}},at=(Bn,nt,ve)=>{const he=ve.mapper.toViewPosition(nt.position),Ae=he.nodeBefore,tt=he.nodeAfter;et(ve.writer,Ae,tt)},it=(Bn,nt,ve)=>{if(ve.consumable.consume(nt.viewItem,{name:!0})){const he=ve.writer,Ae=he.createElement("listItem"),tt=function(Jt){let gt=0,dn=Jt.parent;for(;dn;){if(dn.is("element","li"))gt++;else{const Xt=dn.previousSibling;Xt&&Xt.is("element","li")&&gt++}dn=dn.parent}return gt}(nt.viewItem);he.setAttribute("listIndent",tt,Ae);const St=nt.viewItem.parent&&nt.viewItem.parent.name=="ol"?"numbered":"bulleted";if(he.setAttribute("listType",St,Ae),!ve.safeInsert(Ae,nt.modelCursor))return;const kt=function(Jt,gt,dn){const{writer:Xt,schema:hn}=dn;let Sn=Xt.createPositionAfter(Jt);for(const Jn of gt)if(Jn.name=="ul"||Jn.name=="ol")Sn=dn.convertItem(Jn,Sn).modelCursor;else{const Vn=dn.convertItem(Jn,Xt.createPositionAt(Jt,"end")),ar=Vn.modelRange.start.nodeAfter;ar&&ar.is("element")&&!hn.checkChild(Jt,ar.name)&&(Jt=Vn.modelCursor.parent.is("element","listItem")?Vn.modelCursor.parent:Mt(Vn.modelCursor),Sn=Xt.createPositionAfter(Jt))}return Sn}(Ae,nt.viewItem.getChildren(),ve);nt.modelRange=he.createRange(nt.modelCursor,kt),ve.updateConversionResult(Ae,nt)}},Re=(Bn,nt,ve)=>{if(ve.consumable.test(nt.viewItem,{name:!0})){const he=Array.from(nt.viewItem.getChildren());for(const Ae of he)!(Ae.is("element","li")||Rn(Ae))&&Ae._remove()}},ke=(Bn,nt,ve)=>{if(ve.consumable.test(nt.viewItem,{name:!0})){if(nt.viewItem.childCount===0)return;const he=[...nt.viewItem.getChildren()];let Ae=!1;for(const tt of he)Ae&&!Rn(tt)&&tt._remove(),Rn(tt)&&(Ae=!0)}};function Pe(Bn){return(nt,ve)=>{if(ve.isPhantom)return;const he=ve.modelPosition.nodeBefore;if(he&&he.is("element","listItem")){const Ae=ve.mapper.toViewElement(he),tt=Ae.getAncestors().find(Rn),St=Bn.createPositionAt(Ae,0).getWalker();for(const kt of St){if(kt.type=="elementStart"&&kt.item.is("element","li")){ve.viewPosition=kt.previousPosition;break}if(kt.type=="elementEnd"&&kt.item==tt){ve.viewPosition=kt.nextPosition;break}}}}}const Te=function(Bn,[nt,ve,he]){const Ae=this;let tt,St=nt.is("documentFragment")?nt.getChild(0):nt;if(tt=ve?Ae.createSelection(ve,he):Ae.document.selection,St&&St.is("element","listItem")){const kt=tt.getFirstPosition();let Jt=null;if(kt.parent.is("element","listItem")?Jt=kt.parent:kt.nodeBefore&&kt.nodeBefore.is("element","listItem")&&(Jt=kt.nodeBefore),Jt){const gt=Jt.getAttribute("listIndent");if(gt>0)for(;St&&St.is("element","listItem");)St._setAttribute("listIndent",St.getAttribute("listIndent")+gt),St=St.nextSibling}}};function Mt(Bn){const nt=new oe.TreeWalker({startPosition:Bn});let ve;do ve=nt.next();while(!ve.value.item.is("element","listItem"));return ve.value.item}function qt(Bn,nt,ve,he,Ae,tt){const St=kn(nt.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:Bn}),kt=Ae.mapper,Jt=Ae.writer,gt=St?St.getAttribute("listIndent"):null;let dn;if(St)if(gt==Bn){const Xt=kt.toViewElement(St).parent;dn=Jt.createPositionAfter(Xt)}else{const Xt=tt.createPositionAt(St,"end");dn=kt.toViewPosition(Xt)}else dn=ve;dn=Kt(dn);for(const Xt of[...he.getChildren()])Rn(Xt)&&(dn=Jt.move(Jt.createRangeOn(Xt),dn).end,et(Jt,Xt,Xt.nextSibling),et(Jt,Xt.previousSibling,Xt))}function Rn(Bn){return Bn.is("element","ol")||Bn.is("element","ul")}class Qn extends n.Plugin{static get pluginName(){return"ListEditing"}static get requires(){return[a.Enter,s.Delete,Xr]}init(){const nt=this.editor;nt.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const ve=nt.data,he=nt.editing;var Ae;nt.model.document.registerPostFixer(St=>function(kt,Jt){const gt=kt.document.differ.getChanges(),dn=new Map;let Xt=!1;for(const Vn of gt)if(Vn.type=="insert"&&Vn.name=="listItem")hn(Vn.position);else if(Vn.type=="insert"&&Vn.name!="listItem"){if(Vn.name!="$text"){const ar=Vn.position.nodeAfter;ar.hasAttribute("listIndent")&&(Jt.removeAttribute("listIndent",ar),Xt=!0),ar.hasAttribute("listType")&&(Jt.removeAttribute("listType",ar),Xt=!0),ar.hasAttribute("listStyle")&&(Jt.removeAttribute("listStyle",ar),Xt=!0),ar.hasAttribute("listReversed")&&(Jt.removeAttribute("listReversed",ar),Xt=!0),ar.hasAttribute("listStart")&&(Jt.removeAttribute("listStart",ar),Xt=!0);for(const Vr of Array.from(kt.createRangeIn(ar)).filter(Jr=>Jr.item.is("element","listItem")))hn(Vr.previousPosition)}hn(Vn.position.getShiftedBy(Vn.length))}else Vn.type=="remove"&&Vn.name=="listItem"?hn(Vn.position):(Vn.type=="attribute"&&Vn.attributeKey=="listIndent"||Vn.type=="attribute"&&Vn.attributeKey=="listType")&&hn(Vn.range.start);for(const Vn of dn.values())Sn(Vn),Jn(Vn);return Xt;function hn(Vn){const ar=Vn.nodeBefore;if(ar&&ar.is("element","listItem")){let Vr=ar;if(dn.has(Vr))return;for(let Jr=Vr.previousSibling;Jr&&Jr.is("element","listItem");Jr=Vr.previousSibling)if(Vr=Jr,dn.has(Vr))return;dn.set(ar,Vr)}else{const Vr=Vn.nodeAfter;Vr&&Vr.is("element","listItem")&&dn.set(Vr,Vr)}}function Sn(Vn){let ar=0,Vr=null;for(;Vn&&Vn.is("element","listItem");){const Jr=Vn.getAttribute("listIndent");if(Jr>ar){let yi;Vr===null?(Vr=Jr-ar,yi=ar):(Vr>Jr&&(Vr=Jr),yi=Jr-Vr),Jt.setAttribute("listIndent",yi,Vn),Xt=!0}else Vr=null,ar=Vn.getAttribute("listIndent")+1;Vn=Vn.nextSibling}}function Jn(Vn){let ar=[],Vr=null;for(;Vn&&Vn.is("element","listItem");){const Jr=Vn.getAttribute("listIndent");if(Vr&&Vr.getAttribute("listIndent")>Jr&&(ar=ar.slice(0,Jr+1)),Jr!=0)if(ar[Jr]){const yi=ar[Jr];Vn.getAttribute("listType")!=yi&&(Jt.setAttribute("listType",yi,Vn),Xt=!0)}else ar[Jr]=Vn.getAttribute("listType");Vr=Vn,Vn=Vn.nextSibling}}}(nt.model,St)),he.mapper.registerViewToModelLength("li",ur),ve.mapper.registerViewToModelLength("li",ur),he.mapper.on("modelToViewPosition",Pe(he.view)),he.mapper.on("viewToModelPosition",(Ae=nt.model,(St,kt)=>{const Jt=kt.viewPosition,gt=Jt.parent,dn=kt.mapper;if(gt.name=="ul"||gt.name=="ol"){if(Jt.isAtEnd){const Xt=dn.toModelElement(Jt.nodeBefore),hn=dn.getModelLength(Jt.nodeBefore);kt.modelPosition=Ae.createPositionBefore(Xt).getShiftedBy(hn)}else{const Xt=dn.toModelElement(Jt.nodeAfter);kt.modelPosition=Ae.createPositionBefore(Xt)}St.stop()}else if(gt.name=="li"&&Jt.nodeBefore&&(Jt.nodeBefore.name=="ul"||Jt.nodeBefore.name=="ol")){const Xt=dn.toModelElement(gt);let hn=1,Sn=Jt.nodeBefore;for(;Sn&&Rn(Sn);)hn+=dn.getModelLength(Sn),Sn=Sn.previousSibling;kt.modelPosition=Ae.createPositionBefore(Xt).getShiftedBy(hn),St.stop()}})),ve.mapper.on("modelToViewPosition",Pe(he.view)),nt.conversion.for("editingDowncast").add(St=>{St.on("insert",vr,{priority:"high"}),St.on("insert:listItem",gi(nt.model)),St.on("attribute:listType:listItem",Pi,{priority:"high"}),St.on("attribute:listType:listItem",ii,{priority:"low"}),St.on("attribute:listIndent:listItem",function(kt){return(Jt,gt,dn)=>{if(!dn.consumable.consume(gt.item,"attribute:listIndent"))return;const Xt=dn.mapper.toViewElement(gt.item),hn=dn.writer;hn.breakContainer(hn.createPositionBefore(Xt)),hn.breakContainer(hn.createPositionAfter(Xt));const Sn=Xt.parent,Jn=Sn.previousSibling,Vn=hn.createRangeOn(Sn);hn.remove(Vn),Jn&&Jn.nextSibling&&et(hn,Jn,Jn.nextSibling),qt(gt.attributeOldValue+1,gt.range.start,Vn.start,Xt,dn,kt),$t(gt.item,Xt,dn,kt);for(const ar of gt.item.getChildren())dn.consumable.consume(ar,"insert")}}(nt.model)),St.on("remove:listItem",function(kt){return(Jt,gt,dn)=>{const Xt=dn.mapper.toViewPosition(gt.position).getLastMatchingPosition(Vr=>!Vr.item.is("element","li")).nodeAfter,hn=dn.writer;hn.breakContainer(hn.createPositionBefore(Xt)),hn.breakContainer(hn.createPositionAfter(Xt));const Sn=Xt.parent,Jn=Sn.previousSibling,Vn=hn.createRangeOn(Sn),ar=hn.remove(Vn);Jn&&Jn.nextSibling&&et(hn,Jn,Jn.nextSibling),qt(dn.mapper.toModelElement(Xt).getAttribute("listIndent")+1,gt.position,Vn.start,Xt,dn,kt);for(const Vr of hn.createRangeIn(ar).getItems())dn.mapper.unbindViewElement(Vr);Jt.stop()}}(nt.model)),St.on("remove",at,{priority:"low"})}),nt.conversion.for("dataDowncast").add(St=>{St.on("insert",vr,{priority:"high"}),St.on("insert:listItem",gi(nt.model))}),nt.conversion.for("upcast").add(St=>{St.on("element:ul",Re,{priority:"high"}),St.on("element:ol",Re,{priority:"high"}),St.on("element:li",ke,{priority:"high"}),St.on("element:li",it)}),nt.model.on("insertContent",Te,{priority:"high"}),nt.commands.add("numberedList",new Ht(nt,"numbered")),nt.commands.add("bulletedList",new Ht(nt,"bulleted")),nt.commands.add("indentList",new Sr(nt,"forward")),nt.commands.add("outdentList",new Sr(nt,"backward"));const tt=he.view.document;this.listenTo(tt,"enter",(St,kt)=>{const Jt=this.editor.model.document,gt=Jt.selection.getLastPosition().parent;Jt.selection.isCollapsed&&gt.name=="listItem"&&gt.isEmpty&&(this.editor.execute("outdentList"),kt.preventDefault(),St.stop())},{context:"li"}),this.listenTo(tt,"delete",(St,kt)=>{if(kt.direction!=="backward")return;const Jt=this.editor.model.document.selection;if(!Jt.isCollapsed)return;const gt=Jt.getFirstPosition();if(!gt.isAtStart)return;const dn=gt.parent;dn.name==="listItem"&&(dn.previousSibling&&dn.previousSibling.name==="listItem"||(this.editor.execute("outdentList"),kt.preventDefault(),St.stop()))},{context:"li"}),this.listenTo(nt.editing.view.document,"tab",(St,kt)=>{const Jt=kt.shiftKey?"outdentList":"indentList";this.editor.commands.get(Jt).isEnabled&&(nt.execute(Jt),kt.stopPropagation(),kt.preventDefault(),St.stop())},{context:"li"})}afterInit(){const nt=this.editor.commands,ve=nt.get("indent"),he=nt.get("outdent");ve&&ve.registerChildCommand(nt.get("indentList")),he&&he.registerChildCommand(nt.get("outdentList"))}}function ur(Bn){let nt=1;for(const ve of Bn.getChildren())if(ve.name=="ul"||ve.name=="ol")for(const he of ve.getChildren())nt+=ur(he);return nt}class On extends n.Plugin{static get requires(){return[Qn,ne]}static get pluginName(){return"List"}}class ct extends n.Command{constructor(nt,ve){super(nt),this.defaultType=ve}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(nt={}){this._tryToConvertItemsToList(nt);const ve=this.editor.model,he=Je(ve);he.length&&ve.change(Ae=>{for(const tt of he)Ae.setAttribute("listStyle",nt.type||this.defaultType,tt)})}_getValue(){const nt=this.editor.model.document.selection.getFirstPosition().parent;return nt&&nt.is("element","listItem")?nt.getAttribute("listStyle"):null}_checkEnabled(){const nt=this.editor,ve=nt.commands.get("numberedList"),he=nt.commands.get("bulletedList");return ve.isEnabled||he.isEnabled}_tryToConvertItemsToList(nt){if(!nt.type)return;const ve=vn(nt.type);if(!ve)return;const he=this.editor,Ae=`${ve}List`;he.commands.get(Ae).value||he.execute(Ae)}}class Zt extends n.Command{refresh(){const nt=this._getValue();this.value=nt,this.isEnabled=nt!=null}execute(nt={}){const ve=this.editor.model,he=Je(ve).filter(Ae=>Ae.getAttribute("listType")=="numbered");ve.change(Ae=>{for(const tt of he)Ae.setAttribute("listReversed",!!nt.reversed,tt)})}_getValue(){const nt=this.editor.model.document.selection.getFirstPosition().parent;return nt&&nt.is("element","listItem")&&nt.getAttribute("listType")=="numbered"?nt.getAttribute("listReversed"):null}}class Cn extends n.Command{refresh(){const nt=this._getValue();this.value=nt,this.isEnabled=nt!=null}execute({startIndex:nt=1}={}){const ve=this.editor.model,he=Je(ve).filter(Ae=>Ae.getAttribute("listType")=="numbered");ve.change(Ae=>{for(const tt of he)Ae.setAttribute("listStart",nt>=0?nt:1,tt)})}_getValue(){const nt=this.editor.model.document.selection.getFirstPosition().parent;return nt&&nt.is("element","listItem")&&nt.getAttribute("listType")=="numbered"?nt.getAttribute("listStart"):null}}const Pn="default";class Kn extends n.Plugin{static get requires(){return[Qn]}static get pluginName(){return"ListPropertiesEditing"}constructor(nt){super(nt),nt.config.define("list",{properties:{styles:!0,startIndex:!1,reversed:!1}})}init(){const nt=this.editor,ve=nt.model,he=function(tt){const St=[];return tt.styles&&St.push({attributeName:"listStyle",defaultValue:Pn,addCommand(kt){kt.commands.add("listStyle",new ct(kt,Pn))},appliesToListItem:()=>!0,setAttributeOnDowncast(kt,Jt,gt){Jt&&Jt!==Pn?kt.setStyle("list-style-type",Jt,gt):kt.removeStyle("list-style-type",gt)},getAttributeOnUpcast:kt=>kt.getStyle("list-style-type")||Pn}),tt.reversed&&St.push({attributeName:"listReversed",defaultValue:!1,addCommand(kt){kt.commands.add("listReversed",new Zt(kt))},appliesToListItem:kt=>kt.getAttribute("listType")=="numbered",setAttributeOnDowncast(kt,Jt,gt){Jt?kt.setAttribute("reversed","reversed",gt):kt.removeAttribute("reversed",gt)},getAttributeOnUpcast:kt=>kt.hasAttribute("reversed")}),tt.startIndex&&St.push({attributeName:"listStart",defaultValue:1,addCommand(kt){kt.commands.add("listStart",new Cn(kt))},appliesToListItem:kt=>kt.getAttribute("listType")=="numbered",setAttributeOnDowncast(kt,Jt,gt){Jt==0||Jt>1?kt.setAttribute("start",Jt,gt):kt.removeAttribute("start",gt)},getAttributeOnUpcast(kt){const Jt=kt.getAttribute("start");return Jt>=0?Jt:1}}),St}(nt.config.get("list.properties"));ve.schema.extend("listItem",{allowAttributes:he.map(tt=>tt.attributeName)});for(const tt of he)tt.addCommand(nt);var Ae;this.listenTo(nt.commands.get("indentList"),"_executeCleanup",function(tt,St){return(kt,Jt)=>{const gt=Jt[0],dn=gt.getAttribute("listIndent"),Xt=Jt.filter(Sn=>Sn.getAttribute("listIndent")===dn);let hn=null;gt.previousSibling.getAttribute("listIndent")+1!==dn&&(hn=kn(gt.previousSibling,{sameIndent:!0,direction:"backward",listIndent:dn})),tt.model.change(Sn=>{for(const Jn of Xt)for(const Vn of St)if(Vn.appliesToListItem(Jn)){const ar=hn==null?Vn.defaultValue:hn.getAttribute(Vn.attributeName);Sn.setAttribute(Vn.attributeName,ar,Jn)}})}}(nt,he)),this.listenTo(nt.commands.get("outdentList"),"_executeCleanup",function(tt,St){return(kt,Jt)=>{if(!(Jt=Jt.reverse().filter(hn=>hn.is("element","listItem"))).length)return;const gt=Jt[0].getAttribute("listIndent"),dn=Jt[0].getAttribute("listType");let Xt=Jt[0].previousSibling;if(Xt.is("element","listItem"))for(;Xt.getAttribute("listIndent")!==gt;)Xt=Xt.previousSibling;else Xt=null;Xt||(Xt=Jt[Jt.length-1].nextSibling),Xt&&Xt.is("element","listItem")&&Xt.getAttribute("listType")===dn&&tt.model.change(hn=>{const Sn=Jt.filter(Jn=>Jn.getAttribute("listIndent")===gt);for(const Jn of Sn)for(const Vn of St)if(Vn.appliesToListItem(Jn)){const ar=Vn.attributeName,Vr=Xt.getAttribute(ar);hn.setAttribute(ar,Vr,Jn)}})}}(nt,he)),this.listenTo(nt.commands.get("bulletedList"),"_executeCleanup",Oe(nt)),this.listenTo(nt.commands.get("numberedList"),"_executeCleanup",Oe(nt)),ve.document.registerPostFixer(function(tt,St){return kt=>{let Jt=!1;const gt=Ge(tt.model.document.differ.getChanges()).filter(Xt=>Xt.getAttribute("listType")!=="todo");if(!gt.length)return Jt;let dn=gt[gt.length-1].nextSibling;if((!dn||!dn.is("element","listItem"))&&(dn=gt[0].previousSibling,dn)){const Xt=gt[0].getAttribute("listIndent");for(;dn.is("element","listItem")&&dn.getAttribute("listIndent")!==Xt&&(dn=dn.previousSibling,dn););}for(const Xt of St){const hn=Xt.attributeName;for(const Sn of gt)if(Xt.appliesToListItem(Sn))if(Sn.hasAttribute(hn)){const Jn=Sn.previousSibling;Ke(Jn,Sn,Xt.attributeName)&&(kt.setAttribute(hn,Jn.getAttribute(hn),Sn),Jt=!0)}else Rt(dn,Sn,Xt)?kt.setAttribute(hn,dn.getAttribute(hn),Sn):kt.setAttribute(hn,Xt.defaultValue,Sn),Jt=!0;else kt.removeAttribute(hn,Sn)}return Jt}}(nt,he)),nt.conversion.for("upcast").add((Ae=he,tt=>{tt.on("element:li",(St,kt,Jt)=>{const gt=kt.viewItem.parent,dn=kt.modelRange.start.nodeAfter||kt.modelRange.end.nodeBefore;for(const Xt of Ae)if(Xt.appliesToListItem(dn)){const hn=Xt.getAttributeOnUpcast(gt);Jt.writer.setAttribute(Xt.attributeName,hn,dn)}},{priority:"low"})})),nt.conversion.for("downcast").add(function(tt){return kt=>{for(const Jt of tt)kt.on(`attribute:${Jt.attributeName}:listItem`,(gt,dn,Xt)=>{const hn=Xt.writer,Sn=dn.item,Jn=kn(Sn.previousSibling,{sameIndent:!0,listIndent:Sn.getAttribute("listIndent"),direction:"backward"}),Vn=Xt.mapper.toViewElement(Sn);St(Sn,Jn)||hn.breakContainer(hn.createPositionBefore(Vn)),Jt.setAttributeOnDowncast(hn,dn.attributeNewValue,Vn.parent)},{priority:"low"})};function St(kt,Jt){return Jt&&kt.getAttribute("listType")===Jt.getAttribute("listType")&&kt.getAttribute("listIndent")===Jt.getAttribute("listIndent")&&kt.getAttribute("listStyle")===Jt.getAttribute("listStyle")&&kt.getAttribute("listReversed")===Jt.getAttribute("listReversed")&&kt.getAttribute("listStart")===Jt.getAttribute("listStart")}}(he)),this._mergeListAttributesWhileMergingLists(he)}afterInit(){const nt=this.editor;nt.commands.get("todoList")&&nt.model.document.registerPostFixer(function(ve){return he=>{const Ae=Ge(ve.model.document.differ.getChanges()).filter(tt=>tt.getAttribute("listType")==="todo"&&(tt.hasAttribute("listStyle")||tt.hasAttribute("listReversed")||tt.hasAttribute("listStart")));if(!Ae.length)return!1;for(const tt of Ae)he.removeAttribute("listStyle",tt),he.removeAttribute("listReversed",tt),he.removeAttribute("listStart",tt);return!0}}(nt))}_mergeListAttributesWhileMergingLists(nt){const ve=this.editor.model;let he;this.listenTo(ve,"deleteContent",(Ae,[tt])=>{const St=tt.getFirstPosition(),kt=tt.getLastPosition();if(St.parent===kt.parent||!St.parent.is("element","listItem"))return;const Jt=kt.parent.nextSibling;if(!Jt||!Jt.is("element","listItem"))return;const gt=kn(St.parent,{sameIndent:!0,listIndent:Jt.getAttribute("listIndent")});gt&&gt.getAttribute("listType")===Jt.getAttribute("listType")&&(he=gt)},{priority:"high"}),this.listenTo(ve,"deleteContent",()=>{he&&(ve.change(Ae=>{const tt=kn(he.nextSibling,{sameIndent:!0,listIndent:he.getAttribute("listIndent"),direction:"forward"});if(!tt)return void(he=null);const St=[tt,...ot(Ae.createPositionAt(tt,0),"forward")];for(const kt of St)for(const Jt of nt)if(Jt.appliesToListItem(kt)){const gt=Jt.attributeName,dn=he.getAttribute(gt);Ae.setAttribute(gt,dn,kt)}}),he=null)},{priority:"low"})}}function Rt(Bn,nt,ve){if(!Bn)return!1;const he=Bn.getAttribute(ve.attributeName);return!!he&&he!=ve.defaultValue&&Bn.getAttribute("listType")===nt.getAttribute("listType")}function Ke(Bn,nt,ve){if(!Bn||!Bn.is("element","listItem")||nt.getAttribute("listType")!==Bn.getAttribute("listType"))return!1;const he=Bn.getAttribute("listIndent");if(he<1||he!==nt.getAttribute("listIndent"))return!1;const Ae=Bn.getAttribute(ve);return!(!Ae||Ae===nt.getAttribute(ve))}function Oe(Bn){return(nt,ve)=>{ve=ve.filter(he=>he.is("element","listItem")),Bn.model.change(he=>{for(const Ae of ve)he.removeAttribute("listStyle",Ae)})}}function Ge(Bn){const nt=[];for(const ve of Bn){const he=Ft(ve);he&&he.is("element","listItem")&&nt.push(he)}return nt}function Ft(Bn){return Bn.type==="attribute"?Bn.range.start.nodeAfter:Bn.type==="insert"?Bn.position.nodeAfter:null}class Qt extends n.Plugin{static get requires(){return[Kn,on]}static get pluginName(){return"ListProperties"}}const wn="todoListChecked";class Gn extends n.Command{constructor(nt){super(nt),this._selectedElements=[],this.on("execute",()=>{this.refresh()},{priority:"highest"})}refresh(){this._selectedElements=this._getSelectedItems(),this.value=this._selectedElements.every(nt=>!!nt.getAttribute(wn)),this.isEnabled=!!this._selectedElements.length}_getSelectedItems(){const nt=this.editor.model,ve=nt.schema,he=nt.document.selection.getFirstRange(),Ae=he.start.parent,tt=[];ve.checkAttribute(Ae,wn)&&tt.push(Ae);for(const St of he.getItems())ve.checkAttribute(St,wn)&&!tt.includes(St)&&tt.push(St);return tt}execute(nt={}){this.editor.model.change(ve=>{for(const he of this._selectedElements)(nt.forceValue===void 0?!this.value:nt.forceValue)?ve.setAttribute(wn,!0,he):ve.removeAttribute(wn,he)})}}const ir=(Bn,nt,ve)=>{const he=nt.modelCursor,Ae=he.parent,tt=nt.viewItem;if(tt.getAttribute("type")!="checkbox"||Ae.name!="listItem"||!he.isAtStart||!ve.consumable.consume(tt,{name:!0}))return;const St=ve.writer;St.setAttribute("listType","todo",Ae),nt.viewItem.hasAttribute("checked")&&St.setAttribute("todoListChecked",!0,Ae),nt.modelRange=St.createRange(he)};function br(Bn){return(nt,ve)=>{const he=ve.modelPosition,Ae=he.parent;if(!Ae.is("element","listItem")||Ae.getAttribute("listType")!="todo")return;const tt=Er(ve.mapper.toViewElement(Ae),Bn);tt&&(ve.viewPosition=ve.mapper.findPositionIn(tt,he.offset))}}function fr(Bn,nt,ve,he){return nt.createUIElement("label",{class:"todo-list__label",contenteditable:!1},function(Ae){const tt=(0,c.createElement)(document,"input",{type:"checkbox",tabindex:"-1"});ve&&tt.setAttribute("checked","checked"),tt.addEventListener("change",()=>he(Bn));const St=this.toDomElement(Ae);return St.appendChild(tt),St})}function Er(Bn,nt){const ve=nt.createRangeIn(Bn);for(const he of ve)if(he.item.is("containerElement","span")&&he.item.hasClass("todo-list__label__description"))return he.item}const Or=(0,c.parseKeystroke)("Ctrl+Enter");class oi extends n.Plugin{static get pluginName(){return"TodoListEditing"}static get requires(){return[Qn]}init(){const nt=this.editor,{editing:ve,data:he,model:Ae}=nt;Ae.schema.extend("listItem",{allowAttributes:["todoListChecked"]}),Ae.schema.addAttributeCheck((gt,dn)=>{const Xt=gt.last;if(dn=="todoListChecked"&&Xt.name=="listItem"&&Xt.getAttribute("listType")!="todo")return!1}),nt.commands.add("todoList",new Ht(nt,"todo"));const tt=new Gn(nt);var St,kt;nt.commands.add("checkTodoList",tt),nt.commands.add("todoListCheck",tt),he.downcastDispatcher.on("insert:listItem",function(gt){return(dn,Xt,hn)=>{const Sn=hn.consumable;if(!Sn.test(Xt.item,"insert")||!Sn.test(Xt.item,"attribute:listType")||!Sn.test(Xt.item,"attribute:listIndent")||Xt.item.getAttribute("listType")!="todo")return;const Jn=Xt.item;Sn.consume(Jn,"insert"),Sn.consume(Jn,"attribute:listType"),Sn.consume(Jn,"attribute:listIndent"),Sn.consume(Jn,"attribute:todoListChecked");const Vn=hn.writer,ar=je(Jn,hn);Vn.addClass("todo-list",ar.parent);const Vr=Vn.createContainerElement("label",{class:"todo-list__label"}),Jr=Vn.createEmptyElement("input",{type:"checkbox",disabled:"disabled"}),yi=Vn.createContainerElement("span",{class:"todo-list__label__description"});Jn.getAttribute("todoListChecked")&&Vn.setAttribute("checked","checked",Jr),Vn.insert(Vn.createPositionAt(ar,0),Vr),Vn.insert(Vn.createPositionAt(Vr,0),Jr),Vn.insert(Vn.createPositionAfter(Jr),yi),$t(Jn,ar,hn,gt)}}(Ae),{priority:"high"}),he.upcastDispatcher.on("element:input",ir,{priority:"high"}),ve.downcastDispatcher.on("insert:listItem",function(gt,dn){return(Xt,hn,Sn)=>{const Jn=Sn.consumable;if(!Jn.test(hn.item,"insert")||!Jn.test(hn.item,"attribute:listType")||!Jn.test(hn.item,"attribute:listIndent")||hn.item.getAttribute("listType")!="todo")return;const Vn=hn.item;Jn.consume(Vn,"insert"),Jn.consume(Vn,"attribute:listType"),Jn.consume(Vn,"attribute:listIndent"),Jn.consume(Vn,"attribute:todoListChecked");const ar=Sn.writer,Vr=je(Vn,Sn),Jr=!!Vn.getAttribute("todoListChecked"),yi=fr(Vn,ar,Jr,dn),Ii=ar.createContainerElement("span",{class:"todo-list__label__description"});ar.addClass("todo-list",Vr.parent),ar.insert(ar.createPositionAt(Vr,0),yi),ar.insert(ar.createPositionAfter(yi),Ii),$t(Vn,Vr,Sn,gt)}}(Ae,gt=>this._handleCheckmarkChange(gt)),{priority:"high"}),ve.downcastDispatcher.on("attribute:listType:listItem",(St=gt=>this._handleCheckmarkChange(gt),kt=ve.view,(gt,dn,Xt)=>{if(!Xt.consumable.consume(dn.item,gt.name))return;const hn=Xt.mapper.toViewElement(dn.item),Sn=Xt.writer,Jn=function(Vn,ar){const Vr=ar.createRangeIn(Vn);for(const Jr of Vr)if(Jr.item.is("uiElement","label"))return Jr.item}(hn,kt);if(dn.attributeNewValue=="todo"){const Vn=!!dn.item.getAttribute("todoListChecked"),ar=fr(dn.item,Sn,Vn,St),Vr=Sn.createContainerElement("span",{class:"todo-list__label__description"}),Jr=Sn.createRangeIn(hn),yi=ht(hn),Ii=Kt(Jr.start),ji=yi?Sn.createPositionBefore(yi):Jr.end,_n=Sn.createRange(Ii,ji);Sn.addClass("todo-list",hn.parent),Sn.move(_n,Sn.createPositionAt(Vr,0)),Sn.insert(Sn.createPositionAt(hn,0),ar),Sn.insert(Sn.createPositionAfter(ar),Vr)}else if(dn.attributeOldValue=="todo"){const Vn=Er(hn,kt);Sn.removeClass("todo-list",hn.parent),Sn.remove(Jn),Sn.move(Sn.createRangeIn(Vn),Sn.createPositionBefore(Vn)),Sn.remove(Vn)}})),ve.downcastDispatcher.on("attribute:todoListChecked:listItem",function(gt){return(dn,Xt,hn)=>{if(Xt.item.getAttribute("listType")!="todo"||!hn.consumable.consume(Xt.item,"attribute:todoListChecked"))return;const{mapper:Sn,writer:Jn}=hn,Vn=!!Xt.item.getAttribute("todoListChecked"),ar=Sn.toViewElement(Xt.item).getChild(0),Vr=fr(Xt.item,Jn,Vn,gt);Jn.insert(Jn.createPositionAfter(ar),Vr),Jn.remove(ar)}}(gt=>this._handleCheckmarkChange(gt))),ve.mapper.on("modelToViewPosition",br(ve.view)),he.mapper.on("modelToViewPosition",br(ve.view)),this.listenTo(ve.view.document,"arrowKey",function(gt,dn){return(Xt,hn)=>{if((0,c.getLocalizedArrowKeyCodeDirection)(hn.keyCode,dn.contentLanguageDirection)!="left")return;const Sn=gt.schema,Jn=gt.document.selection;if(!Jn.isCollapsed)return;const Vn=Jn.getFirstPosition(),ar=Vn.parent;if(ar.name==="listItem"&&ar.getAttribute("listType")=="todo"&&Vn.isAtStart){const Vr=Sn.getNearestSelectionRange(gt.createPositionBefore(ar),"backward");Vr&&gt.change(Jr=>Jr.setSelection(Vr)),hn.preventDefault(),hn.stopPropagation(),Xt.stop()}}}(Ae,nt.locale),{context:"li"}),this.listenTo(ve.view.document,"keydown",(gt,dn)=>{(0,c.getCode)(dn)===Or&&(nt.execute("checkTodoList"),gt.stop())},{priority:"high"});const Jt=new Set;this.listenTo(Ae,"applyOperation",(gt,dn)=>{const Xt=dn[0];if(Xt.type=="rename"&&Xt.oldName=="listItem"){const hn=Xt.position.nodeAfter;hn.hasAttribute("todoListChecked")&&Jt.add(hn)}else if(Xt.type=="changeAttribute"&&Xt.key=="listType"&&Xt.oldValue==="todo")for(const hn of Xt.range.getItems())hn.hasAttribute("todoListChecked")&&hn.getAttribute("listType")!=="todo"&&Jt.add(hn)}),Ae.document.registerPostFixer(gt=>{let dn=!1;for(const Xt of Jt)gt.removeAttribute("todoListChecked",Xt),dn=!0;return Jt.clear(),dn})}_handleCheckmarkChange(nt){const ve=this.editor,he=ve.model,Ae=Array.from(he.document.selection.getRanges());he.change(tt=>{tt.setSelection(nt,"end"),ve.execute("checkTodoList"),tt.setSelection(Ae)})}}class si extends n.Plugin{static get pluginName(){return"TodoListUI"}init(){const nt=this.editor.t;Tn(this.editor,"todoList",nt("To-do List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m2.315 14.705 2.224-2.24a.689.689 0 0 1 .963 0 .664.664 0 0 1 0 .949L2.865 16.07a.682.682 0 0 1-.112.089.647.647 0 0 1-.852-.051L.688 14.886a.635.635 0 0 1 0-.903.647.647 0 0 1 .91 0l.717.722zm5.185.045a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75zM2.329 5.745l2.21-2.226a.689.689 0 0 1 .963 0 .664.664 0 0 1 0 .95L2.865 7.125a.685.685 0 0 1-.496.196.644.644 0 0 1-.468-.187L.688 5.912a.635.635 0 0 1 0-.903.647.647 0 0 1 .91 0l.73.736zM7.5 5.75A.75.75 0 0 1 8.25 5h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>')}}var Fi=t(250),$i={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ct()(Fi.Z,$i),Fi.Z.locals;class Vi extends n.Plugin{static get requires(){return[oi,si]}static get pluginName(){return"TodoList"}}})(),(window.CKEditor5=window.CKEditor5||{}).list=r})()},56961:()=>{(function(Z){const v=Z.en=Z.en||{};v.dictionary=Object.assign(v.dictionary||{},{"Insert media":"Insert media","Media toolbar":"Media toolbar","Media URL":"Media URL","media widget":"media widget","Open media in new tab":"Open media in new tab","Paste the media URL in the input.":"Paste the media URL in the input.","The URL must not be empty.":"The URL must not be empty.","This media URL is not supported.":"This media URL is not supported.","Tip: Paste the URL into the content to embed faster.":"Tip: Paste the URL into the content to embed faster."})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),(()=>{var Z={461:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,".ck-content .media{clear:both;display:block;margin:.9em 0;min-width:15em}",""]);const p=h},721:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,'.ck-media__wrapper .ck-media__placeholder{align-items:center;display:flex;flex-direction:column}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{display:block;overflow:hidden}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{background:var(--ck-color-base-foreground);padding:calc(var(--ck-spacing-standard)*3)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{background-position:50%;background-size:cover;height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);min-width:var(--ck-media-embed-placeholder-icon-size)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{height:100%;width:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);font-style:italic;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-height:380px;max-width:300px}.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Im0yMDYuNDc3IDI2MC45LTI4Ljk4NyAyOC45ODdhNS4yMTggNS4yMTggMCAwIDAgMy43OCAxLjYxaDQ5LjYyMWMxLjY5NCAwIDMuMTktLjc5OCA0LjE0Ni0yLjAzN3oiIGZpbGw9IiM1Yzg4YzUiLz48cGF0aCBkPSJNMjI2Ljc0MiAyMjIuOTg4Yy05LjI2NiAwLTE2Ljc3NyA3LjE3LTE2Ljc3NyAxNi4wMTQuMDA3IDIuNzYyLjY2MyA1LjQ3NCAyLjA5MyA3Ljg3NS40My43MDMuODMgMS40MDggMS4xOSAyLjEwNy4zMzMuNTAyLjY1IDEuMDA1Ljk1IDEuNTA4LjM0My40NzcuNjczLjk1Ny45ODggMS40NCAxLjMxIDEuNzY5IDIuNSAzLjUwMiAzLjYzNyA1LjE2OC43OTMgMS4yNzUgMS42ODMgMi42NCAyLjQ2NiAzLjk5IDIuMzYzIDQuMDk0IDQuMDA3IDguMDkyIDQuNiAxMy45MTR2LjAxMmMuMTgyLjQxMi41MTYuNjY2Ljg3OS42NjcuNDAzLS4wMDEuNzY4LS4zMTQuOTMtLjc5OS42MDMtNS43NTYgMi4yMzgtOS43MjkgNC41ODUtMTMuNzk0Ljc4Mi0xLjM1IDEuNjczLTIuNzE1IDIuNDY1LTMuOTkgMS4xMzctMS42NjYgMi4zMjgtMy40IDMuNjM4LTUuMTY5LjMxNS0uNDgyLjY0NS0uOTYyLjk4OC0xLjQzOS4zLS41MDMuNjE3LTEuMDA2Ljk1LTEuNTA4LjM1OS0uNy43Ni0xLjQwNCAxLjE5LTIuMTA3IDEuNDI2LTIuNDAyIDItNS4xMTQgMi4wMDQtNy44NzUgMC04Ljg0NC03LjUxMS0xNi4wMTQtMTYuNzc2LTE2LjAxNHoiIGZpbGw9IiNkZDRiM2UiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PGVsbGlwc2Ugcnk9IjUuNTY0IiByeD0iNS44MjgiIGN5PSIyMzkuMDAyIiBjeD0iMjI2Ljc0MiIgZmlsbD0iIzgwMmQyNyIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMTkwLjMwMSAyMzcuMjgzYy00LjY3IDAtOC40NTcgMy44NTMtOC40NTcgOC42MDZzMy43ODYgOC42MDcgOC40NTcgOC42MDdjMy4wNDMgMCA0LjgwNi0uOTU4IDYuMzM3LTIuNTE2IDEuNTMtMS41NTcgMi4wODctMy45MTMgMi4wODctNi4yOSAwLS4zNjItLjAyMy0uNzIyLS4wNjQtMS4wNzloLTguMjU3djMuMDQzaDQuODVjLS4xOTcuNzU5LS41MzEgMS40NS0xLjA1OCAxLjk4Ni0uOTQyLjk1OC0yLjAyOCAxLjU0OC0zLjkwMSAxLjU0OC0yLjg3NiAwLTUuMjA4LTIuMzcyLTUuMjA4LTUuMjk5IDAtMi45MjYgMi4zMzItNS4yOTkgNS4yMDgtNS4yOTkgMS4zOTkgMCAyLjYxOC40MDcgMy41ODQgMS4yOTNsMi4zODEtMi4zOGMwLS4wMDItLjAwMy0uMDA0LS4wMDQtLjAwNS0xLjU4OC0xLjUyNC0zLjYyLTIuMjE1LTUuOTU1LTIuMjE1em00LjQzIDUuNjYuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0ibTIxNS4xODQgMjUxLjkyOS03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVhNS4yMzMgNS4yMzMgMCAwIDAgLjQ0OS0yLjEyM3YtMzEuMTY1Yy0uNDY5LjY3NS0uOTM0IDEuMzQ5LTEuMzgyIDIuMDA1LS43OTIgMS4yNzUtMS42ODIgMi42NC0yLjQ2NSAzLjk5LTIuMzQ3IDQuMDY1LTMuOTgyIDguMDM4LTQuNTg1IDEzLjc5NC0uMTYyLjQ4NS0uNTI3Ljc5OC0uOTMuNzk5LS4zNjMtLjAwMS0uNjk3LS4yNTUtLjg3OS0uNjY3di0uMDEyYy0uNTkzLTUuODIyLTIuMjM3LTkuODItNC42LTEzLjkxNC0uNzgzLTEuMzUtMS42NzMtMi43MTUtMi40NjYtMy45OS0xLjEzNy0xLjY2Ni0yLjMyNy0zLjQtMy42MzctNS4xNjlsLS4wMDItLjAwM3oiIGZpbGw9IiNjM2MzYzMiLz48cGF0aCBkPSJtMjEyLjk4MyAyNDguNDk1LTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOCA1LjIzOGgxLjAxNWwzNS42NjYtMzUuNjY2YTEzNi4yNzUgMTM2LjI3NSAwIDAgMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAgMC0uOTg5LTEuNDQgMzUuMTI3IDM1LjEyNyAwIDAgMC0uOTUtMS41MDhjLS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJtMjExLjk5OCAyNjEuMDgzLTYuMTUyIDYuMTUxIDI0LjI2NCAyNC4yNjRoLjc4MWE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OVptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OVoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzNabTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1Wk00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0MDAgNDAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}',""]);const p=h},961:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,".ck.ck-media-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}",""]);const p=h},764:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',""]);const p=h},609:n=>{"use strict";n.exports=function(s){var a=[];return a.toString=function(){return this.map(function(c){var h=s(c);return c[2]?"@media ".concat(c[2]," {").concat(h,"}"):h}).join("")},a.i=function(c,h,p){typeof c=="string"&&(c=[[null,c,""]]);var d={};if(p)for(var k=0;k<this.length;k++){var M=this[k][0];M!=null&&(d[M]=!0)}for(var C=0;C<c.length;C++){var w=[].concat(c[C]);p&&d[w[0]]||(h&&(w[2]?w[2]="".concat(h," and ").concat(w[2]):w[2]=h),a.push(w))}},a}},62:(n,s,a)=>{"use strict";var c,h=function(){return c===void 0&&(c=Boolean(window&&document&&document.all&&!window.atob)),c},p=function(){var x={};return function(T){if(x[T]===void 0){var u=document.querySelector(T);if(window.HTMLIFrameElement&&u instanceof window.HTMLIFrameElement)try{u=u.contentDocument.head}catch{u=null}x[T]=u}return x[T]}}(),d=[];function k(x){for(var T=-1,u=0;u<d.length;u++)if(d[u].identifier===x){T=u;break}return T}function M(x,T){for(var u={},b=[],E=0;E<x.length;E++){var A=x[E],R=T.base?A[0]+T.base:A[0],H=u[R]||0,z="".concat(R," ").concat(H);u[R]=H+1;var V=k(z),$={css:A[1],media:A[2],sourceMap:A[3]};V!==-1?(d[V].references++,d[V].updater($)):d.push({identifier:z,updater:D($,T),references:1}),b.push(z)}return b}function C(x){var T=document.createElement("style"),u=x.attributes||{};if(u.nonce===void 0){var b=a.nc;b&&(u.nonce=b)}if(Object.keys(u).forEach(function(A){T.setAttribute(A,u[A])}),typeof x.insert=="function")x.insert(T);else{var E=p(x.insert||"head");if(!E)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");E.appendChild(T)}return T}var w,I=(w=[],function(x,T){return w[x]=T,w.filter(Boolean).join(`
`)});function F(x,T,u,b){var E=u?"":b.media?"@media ".concat(b.media," {").concat(b.css,"}"):b.css;if(x.styleSheet)x.styleSheet.cssText=I(T,E);else{var A=document.createTextNode(E),R=x.childNodes;R[T]&&x.removeChild(R[T]),R.length?x.insertBefore(A,R[T]):x.appendChild(A)}}function U(x,T,u){var b=u.css,E=u.media,A=u.sourceMap;if(E?x.setAttribute("media",E):x.removeAttribute("media"),A&&typeof btoa<"u"&&(b+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(A))))," */")),x.styleSheet)x.styleSheet.cssText=b;else{for(;x.firstChild;)x.removeChild(x.firstChild);x.appendChild(document.createTextNode(b))}}var B=null,N=0;function D(x,T){var u,b,E;if(T.singleton){var A=N++;u=B||(B=C(T)),b=F.bind(null,u,A,!1),E=F.bind(null,u,A,!0)}else u=C(T),b=U.bind(null,u,T),E=function(){(function(R){if(R.parentNode===null)return!1;R.parentNode.removeChild(R)})(u)};return b(x),function(R){if(R){if(R.css===x.css&&R.media===x.media&&R.sourceMap===x.sourceMap)return;b(x=R)}else E()}}n.exports=function(x,T){(T=T||{}).singleton||typeof T.singleton=="boolean"||(T.singleton=h());var u=M(x=x||[],T);return function(b){if(b=b||[],Object.prototype.toString.call(b)==="[object Array]"){for(var E=0;E<u.length;E++){var A=k(u[E]);d[A].references--}for(var R=M(b,T),H=0;H<u.length;H++){var z=k(u[H]);d[z].references===0&&(d[z].updater(),d.splice(z,1))}u=R}}}},945:(n,s,a)=>{n.exports=a(79)("./src/clipboard.js")},704:(n,s,a)=>{n.exports=a(79)("./src/core.js")},492:(n,s,a)=>{n.exports=a(79)("./src/engine.js")},181:(n,s,a)=>{n.exports=a(79)("./src/typing.js")},273:(n,s,a)=>{n.exports=a(79)("./src/ui.js")},254:(n,s,a)=>{n.exports=a(79)("./src/undo.js")},209:(n,s,a)=>{n.exports=a(79)("./src/utils.js")},995:(n,s,a)=>{n.exports=a(79)("./src/widget.js")},79:n=>{"use strict";n.exports=CKEditor5.dll}},v={};function t(n){var s=v[n];if(s!==void 0)return s.exports;var a=v[n]={id:n,exports:{}};return Z[n](a,a.exports,t),a.exports}t.n=n=>{var s=n&&n.__esModule?()=>n.default:()=>n;return t.d(s,{a:s}),s},t.d=(n,s)=>{for(var a in s)t.o(s,a)&&!t.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:s[a]})},t.o=(n,s)=>Object.prototype.hasOwnProperty.call(n,s),t.r=n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.nc=void 0;var r={};(()=>{"use strict";t.r(r),t.d(r,{AutoMediaEmbed:()=>A,MediaEmbed:()=>X,MediaEmbedEditing:()=>D,MediaEmbedToolbar:()=>pe,MediaEmbedUI:()=>ee});var n=t(704),s=t(995),a=t(209);function c(Ie,se){return fe=>{fe.on("attribute:url:media",be)};function be(fe,ue,we){if(!we.consumable.consume(ue.item,fe.name))return;const Me=ue.attributeNewValue,Ce=we.writer,Ne=we.mapper.toViewElement(ue.item),Ye=[...Ne.getChildren()].find(Ct=>Ct.getCustomProperty("media-content"));Ce.remove(Ye);const mt=Ie.getMediaViewElement(Ce,Me,se);Ce.insert(Ce.createPositionAt(Ne,0),mt)}}function h(Ie){const se=Ie.getSelectedElement();return se&&function(be){return!!be.getCustomProperty("media")&&(0,s.isWidget)(be)}(se)?se:null}function p(Ie,se,be,fe){return Ie.createContainerElement("figure",{class:"media"},[se.getMediaViewElement(Ie,be,fe),Ie.createSlot()])}function d(Ie){const se=Ie.getSelectedElement();return se&&se.is("element","media")?se:null}function k(Ie,se,be,fe){Ie.change(ue=>{const we=ue.createElement("media",{url:se});Ie.insertObject(we,be,null,{setSelection:"on",findOptimalPosition:fe})})}class M extends n.Command{refresh(){const se=this.editor.model,be=se.document.selection,fe=d(be);this.value=fe?fe.getAttribute("url"):null,this.isEnabled=function(ue){const we=ue.getSelectedElement();return!!we&&we.name==="media"}(be)||function(ue,we){let Ce=(0,s.findOptimalInsertionRange)(ue,we).start.parent;return Ce.isEmpty&&!we.schema.isLimit(Ce)&&(Ce=Ce.parent),we.schema.checkChild(Ce,"media")}(be,se)}execute(se){const be=this.editor.model,fe=be.document.selection,ue=d(fe);ue?be.change(we=>{we.setAttribute("url",se,ue)}):k(be,se,fe,!0)}}var C=t(273);class w{constructor(se,be){const fe=be.providers,ue=be.extraProviders||[],we=new Set(be.removeProviders),Me=fe.concat(ue).filter(Ce=>{const Ne=Ce.name;return Ne?!we.has(Ne):((0,a.logWarning)("media-embed-no-provider-name",{provider:Ce}),!1)});this.locale=se,this.providerDefinitions=Me}hasMedia(se){return!!this._getMedia(se)}getMediaViewElement(se,be,fe){return this._getMedia(be).getViewElement(se,fe)}_getMedia(se){if(!se)return new I(this.locale);se=se.trim();for(const be of this.providerDefinitions){const fe=be.html,ue=(0,a.toArray)(be.url);for(const we of ue){const Me=this._getUrlMatches(se,we);if(Me)return new I(this.locale,se,Me,fe)}}return null}_getUrlMatches(se,be){let fe=se.match(be);if(fe)return fe;let ue=se.replace(/^https?:\/\//,"");return fe=ue.match(be),fe||(ue=ue.replace(/^www\./,""),fe=ue.match(be),fe||null)}}class I{constructor(se,be,fe,ue){this.url=this._getValidUrl(be),this._locale=se,this._match=fe,this._previewRenderer=ue}getViewElement(se,be){const fe={};let ue;if(be.renderForEditingView||be.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(fe["data-oembed-url"]=this.url),be.renderForEditingView&&(fe.class="ck-media__wrapper");const we=this._getPreviewHtml(be);ue=se.createRawElement("div",fe,(Me,Ce)=>{Ce.setContentOf(Me,we)})}else this.url&&(fe.url=this.url),ue=se.createEmptyElement(be.elementName,fe);return se.setCustomProperty("media-content",!0,ue),ue}_getPreviewHtml(se){return this._previewRenderer?this._previewRenderer(this._match):this.url&&se.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const se=new C.IconView,be=this._locale.t;return se.content='<svg viewBox="0 0 64 42" xmlns="http://www.w3.org/2000/svg"><path d="M47.426 17V3.713L63.102 0v19.389h-.001l.001.272c0 1.595-2.032 3.43-4.538 4.098-2.506.668-4.538-.083-4.538-1.678 0-1.594 2.032-3.43 4.538-4.098.914-.244 2.032-.565 2.888-.603V4.516L49.076 7.447v9.556A1.014 1.014 0 0 0 49 17h-1.574zM29.5 17h-8.343a7.073 7.073 0 1 0-4.657 4.06v3.781H3.3a2.803 2.803 0 0 1-2.8-2.804V8.63a2.803 2.803 0 0 1 2.8-2.805h4.082L8.58 2.768A1.994 1.994 0 0 1 10.435 1.5h8.985c.773 0 1.477.448 1.805 1.149l1.488 3.177H26.7c1.546 0 2.8 1.256 2.8 2.805V17zm-11.637 0H17.5a1 1 0 0 0-1 1v.05A4.244 4.244 0 1 1 17.863 17zm29.684 2c.97 0 .953-.048.953.889v20.743c0 .953.016.905-.953.905H19.453c-.97 0-.953.048-.953-.905V19.89c0-.937-.016-.889.97-.889h28.077zm-4.701 19.338V22.183H24.154v16.155h18.692zM20.6 21.375v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616V37.53H20.6zm24.233-16.155v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615V37.53h-1.615zM29.485 25.283a.4.4 0 0 1 .593-.35l9.05 4.977a.4.4 0 0 1 0 .701l-9.05 4.978a.4.4 0 0 1-.593-.35v-9.956z"/></svg>',se.viewBox="0 0 64 42",new C.Template({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[se]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url,"data-cke-tooltip-text":be("Open media in new tab")},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]}]}]}).render().outerHTML}_getValidUrl(se){return se?se.match(/^https?/)?se:"https://"+se:null}}var F=t(62),U=t.n(F),B=t(721),N={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};U()(B.Z,N),B.Z.locals;class D extends n.Plugin{static get pluginName(){return"MediaEmbedEditing"}constructor(se){super(se),se.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:be=>`<div style="position: relative; padding-bottom: 100%; height: 0; "><iframe src="https://www.dailymotion.com/embed/video/${be[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" width="480" height="270" allowfullscreen allow="autoplay"></iframe></div>`},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:be=>`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 126%;"><iframe src="https://open.spotify.com/embed/${be[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe></div>`},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)(?:&t=(\d+))?/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)(?:\?t=(\d+))?/,/^youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,/^youtu\.be\/([\w-]+)(?:\?t=(\d+))?/],html:be=>{const fe=be[1],ue=be[2];return`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://www.youtube.com/embed/${fe}${ue?`?start=${ue}`:""}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>`}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:be=>`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://player.vimeo.com/video/${be[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>`},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new w(se.locale,se.config.get("mediaEmbed"))}init(){const se=this.editor,be=se.model.schema,fe=se.t,ue=se.conversion,we=se.config.get("mediaEmbed.previewsInData"),Me=se.config.get("mediaEmbed.elementName"),Ce=this.registry;se.commands.add("mediaEmbed",new M(se)),be.register("media",{inheritAllFrom:"$blockObject",allowAttributes:["url"]}),ue.for("dataDowncast").elementToStructure({model:"media",view:(Ne,{writer:Ye})=>{const mt=Ne.getAttribute("url");return p(Ye,Ce,mt,{elementName:Me,renderMediaPreview:mt&&we})}}),ue.for("dataDowncast").add(c(Ce,{elementName:Me,renderMediaPreview:we})),ue.for("editingDowncast").elementToStructure({model:"media",view:(Ne,{writer:Ye})=>{const mt=Ne.getAttribute("url");return function(Ct,ln,$e){return ln.setCustomProperty("media",!0,Ct),(0,s.toWidget)(Ct,ln,{label:$e})}(p(Ye,Ce,mt,{elementName:Me,renderForEditingView:!0}),Ye,fe("media widget"))}}),ue.for("editingDowncast").add(c(Ce,{elementName:Me,renderForEditingView:!0})),ue.for("upcast").elementToElement({view:Ne=>["oembed",Me].includes(Ne.name)&&Ne.getAttribute("url")?{name:!0}:null,model:(Ne,{writer:Ye})=>{const mt=Ne.getAttribute("url");if(Ce.hasMedia(mt))return Ye.createElement("media",{url:mt})}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(Ne,{writer:Ye})=>{const mt=Ne.getAttribute("data-oembed-url");if(Ce.hasMedia(mt))return Ye.createElement("media",{url:mt})}}).add(Ne=>{Ne.on("element:figure",function(Ye,mt,Ct){if(!Ct.consumable.consume(mt.viewItem,{name:!0,classes:"media"}))return;const{modelRange:ln,modelCursor:$e}=Ct.convertChildren(mt.viewItem,mt.modelCursor);mt.modelRange=ln,mt.modelCursor=$e,(0,a.first)(ln.getItems())||Ct.consumable.revert(mt.viewItem,{name:!0,classes:"media"})})})}}var x=t(492),T=t(945),u=t(181),b=t(254);const E=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class A extends n.Plugin{static get requires(){return[T.Clipboard,u.Delete,b.Undo]}static get pluginName(){return"AutoMediaEmbed"}constructor(se){super(se),this._timeoutId=null,this._positionToInsert=null}init(){const se=this.editor,be=se.model.document;this.listenTo(se.plugins.get("ClipboardPipeline"),"inputTransformation",()=>{const fe=be.selection.getFirstRange(),ue=x.LivePosition.fromPosition(fe.start);ue.stickiness="toPrevious";const we=x.LivePosition.fromPosition(fe.end);we.stickiness="toNext",be.once("change:data",()=>{this._embedMediaBetweenPositions(ue,we),ue.detach(),we.detach()},{priority:"high"})}),se.commands.get("undo").on("execute",()=>{this._timeoutId&&(a.global.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedMediaBetweenPositions(se,be){const fe=this.editor,ue=fe.plugins.get(D).registry,we=new x.LiveRange(se,be),Me=we.getWalker({ignoreElementEnd:!0});let Ce="";for(const Ne of Me)Ne.item.is("$textProxy")&&(Ce+=Ne.item.data);if(Ce=Ce.trim(),!Ce.match(E)||!ue.hasMedia(Ce))return void we.detach();fe.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=x.LivePosition.fromPosition(se),this._timeoutId=a.global.window.setTimeout(()=>{fe.model.change(Ne=>{let Ye;this._timeoutId=null,Ne.remove(we),we.detach(),this._positionToInsert.root.rootName!=="$graveyard"&&(Ye=this._positionToInsert),k(fe.model,Ce,Ye,!1),this._positionToInsert.detach(),this._positionToInsert=null}),fe.plugins.get("Delete").requestUndoOnBackspace()},100)):we.detach()}}var R=t(764),H={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};U()(R.Z,H),R.Z.locals;var z=t(961),V={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};U()(z.Z,V),z.Z.locals;class $ extends C.View{constructor(se,be){super(be);const fe=be.t;this.focusTracker=new a.FocusTracker,this.keystrokes=new a.KeystrokeHandler,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(fe("Save"),n.icons.check,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this,"mediaURLInputValue",ue=>!!ue),this.cancelButtonView=this._createButton(fe("Cancel"),n.icons.cancel,"ck-button-cancel","cancel"),this._focusables=new C.ViewCollection,this._focusCycler=new C.FocusCycler({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=se,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]}),(0,C.injectCssTransitionDisabler)(this)}render(){super.render(),(0,C.submitHandler)({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach(be=>{this._focusables.add(be),this.focusTracker.add(be.element)}),this.keystrokes.listenTo(this.element);const se=be=>be.stopPropagation();this.keystrokes.set("arrowright",se),this.keystrokes.set("arrowleft",se),this.keystrokes.set("arrowup",se),this.keystrokes.set("arrowdown",se),this.listenTo(this.urlInputView.element,"selectstart",(be,fe)=>{fe.stopPropagation()},{priority:"high"})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(se){this.urlInputView.fieldView.element.value=se.trim()}isValid(){this.resetFormStatus();for(const se of this._validators){const be=se(this);if(be)return this.urlInputView.errorText=be,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const se=this.locale.t,be=new C.LabeledFieldView(this.locale,C.createLabeledInputText),fe=be.fieldView;return this._urlInputViewInfoDefault=se("Paste the media URL in the input."),this._urlInputViewInfoTip=se("Tip: Paste the URL into the content to embed faster."),be.label=se("Media URL"),be.infoText=this._urlInputViewInfoDefault,fe.on("input",()=>{be.infoText=fe.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=fe.element.value.trim()}),be}_createButton(se,be,fe,ue){const we=new C.ButtonView(this.locale);return we.set({label:se,icon:be,tooltip:!0}),we.extendTemplate({attributes:{class:fe}}),ue&&we.delegate("execute").to(this,ue),we}}class ee extends n.Plugin{static get requires(){return[D]}static get pluginName(){return"MediaEmbedUI"}init(){const se=this.editor,be=se.commands.get("mediaEmbed");se.ui.componentFactory.add("mediaEmbed",fe=>{const ue=(0,C.createDropdown)(fe);return this._setUpDropdown(ue,be),ue})}_setUpDropdown(se,be){const fe=this.editor,ue=fe.t,we=se.buttonView,Me=fe.plugins.get(D).registry;se.once("change:isOpen",()=>{const Ce=new $(function(Ne,Ye){return[mt=>{if(!mt.url.length)return Ne("The URL must not be empty.")},mt=>{if(!Ye.hasMedia(mt.url))return Ne("This media URL is not supported.")}]}(fe.t,Me),fe.locale);se.panelView.children.add(Ce),we.on("open",()=>{Ce.disableCssTransitions(),Ce.url=be.value||"",Ce.urlInputView.fieldView.select(),Ce.enableCssTransitions()},{priority:"low"}),se.on("submit",()=>{Ce.isValid()&&(fe.execute("mediaEmbed",Ce.url),fe.editing.view.focus())}),se.on("change:isOpen",()=>Ce.resetFormStatus()),se.on("cancel",()=>{fe.editing.view.focus()}),Ce.delegate("submit","cancel").to(se),Ce.urlInputView.bind("value").to(be,"value"),Ce.urlInputView.bind("isReadOnly").to(be,"isEnabled",Ne=>!Ne)}),se.bind("isEnabled").to(be),we.set({label:ue("Insert media"),icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M18.68 3.03c.6 0 .59-.03.59.55v12.84c0 .59.01.56-.59.56H1.29c-.6 0-.59.03-.59-.56V3.58c0-.58-.01-.55.6-.55h17.38zM15.77 15V5H4.2v10h11.57zM2 4v1h1V4H2zm0 2v1h1V6H2zm0 2v1h1V8H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zM17 4v1h1V4h-1zm0 2v1h1V6h-1zm0 2v1h1V8h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zM7.5 7.177a.4.4 0 0 1 .593-.351l5.133 2.824a.4.4 0 0 1 0 .7l-5.133 2.824a.4.4 0 0 1-.593-.35V7.176v.001z"/></svg>',tooltip:!0})}}var q=t(461),oe={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};U()(q.Z,oe),q.Z.locals;class X extends n.Plugin{static get requires(){return[D,ee,A,s.Widget]}static get pluginName(){return"MediaEmbed"}}class pe extends n.Plugin{static get requires(){return[s.WidgetToolbarRepository]}static get pluginName(){return"MediaEmbedToolbar"}afterInit(){const se=this.editor,be=se.t;se.plugins.get(s.WidgetToolbarRepository).register("mediaEmbed",{ariaLabel:be("Media toolbar"),items:se.config.get("mediaEmbed.toolbar")||[],getRelatedElement:h})}}})(),(window.CKEditor5=window.CKEditor5||{}).mediaEmbed=r})()},91923:(Z,v,t)=>{/*!
 * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md.
 */(()=>{var r={677:(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p(609),k=p.n(d)()(function(C){return C[1]});k.push([c.id,":root{--ck-color-mention-background:rgba(153,0,48,.1);--ck-color-mention-text:#990030}.ck-content .mention{background:var(--ck-color-mention-background);color:var(--ck-color-mention-text)}",""]);const M=k},216:(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p(609),k=p.n(d)()(function(C){return C[1]});k.push([c.id,":root{--ck-mention-list-max-height:300px}.ck.ck-mentions{max-height:var(--ck-mention-list-max-height);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.ck.ck-mentions>.ck-list__item{flex-shrink:0;overflow:hidden}",""]);const M=k},609:c=>{"use strict";c.exports=function(h){var p=[];return p.toString=function(){return this.map(function(d){var k=h(d);return d[2]?"@media ".concat(d[2]," {").concat(k,"}"):k}).join("")},p.i=function(d,k,M){typeof d=="string"&&(d=[[null,d,""]]);var C={};if(M)for(var w=0;w<this.length;w++){var I=this[w][0];I!=null&&(C[I]=!0)}for(var F=0;F<d.length;F++){var U=[].concat(d[F]);M&&C[U[0]]||(k&&(U[2]?U[2]="".concat(k," and ").concat(U[2]):U[2]=k),p.push(U))}},p}},62:(c,h,p)=>{"use strict";var d,k=function(){return d===void 0&&(d=Boolean(window&&document&&document.all&&!window.atob)),d},M=function(){var b={};return function(E){if(b[E]===void 0){var A=document.querySelector(E);if(window.HTMLIFrameElement&&A instanceof window.HTMLIFrameElement)try{A=A.contentDocument.head}catch{A=null}b[E]=A}return b[E]}}(),C=[];function w(b){for(var E=-1,A=0;A<C.length;A++)if(C[A].identifier===b){E=A;break}return E}function I(b,E){for(var A={},R=[],H=0;H<b.length;H++){var z=b[H],V=E.base?z[0]+E.base:z[0],$=A[V]||0,ee="".concat(V," ").concat($);A[V]=$+1;var q=w(ee),oe={css:z[1],media:z[2],sourceMap:z[3]};q!==-1?(C[q].references++,C[q].updater(oe)):C.push({identifier:ee,updater:u(oe,E),references:1}),R.push(ee)}return R}function F(b){var E=document.createElement("style"),A=b.attributes||{};if(A.nonce===void 0){var R=p.nc;R&&(A.nonce=R)}if(Object.keys(A).forEach(function(z){E.setAttribute(z,A[z])}),typeof b.insert=="function")b.insert(E);else{var H=M(b.insert||"head");if(!H)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");H.appendChild(E)}return E}var U,B=(U=[],function(b,E){return U[b]=E,U.filter(Boolean).join(`
`)});function N(b,E,A,R){var H=A?"":R.media?"@media ".concat(R.media," {").concat(R.css,"}"):R.css;if(b.styleSheet)b.styleSheet.cssText=B(E,H);else{var z=document.createTextNode(H),V=b.childNodes;V[E]&&b.removeChild(V[E]),V.length?b.insertBefore(z,V[E]):b.appendChild(z)}}function D(b,E,A){var R=A.css,H=A.media,z=A.sourceMap;if(H?b.setAttribute("media",H):b.removeAttribute("media"),z&&typeof btoa<"u"&&(R+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(z))))," */")),b.styleSheet)b.styleSheet.cssText=R;else{for(;b.firstChild;)b.removeChild(b.firstChild);b.appendChild(document.createTextNode(R))}}var x=null,T=0;function u(b,E){var A,R,H;if(E.singleton){var z=T++;A=x||(x=F(E)),R=N.bind(null,A,z,!1),H=N.bind(null,A,z,!0)}else A=F(E),R=D.bind(null,A,E),H=function(){(function(V){if(V.parentNode===null)return!1;V.parentNode.removeChild(V)})(A)};return R(b),function(V){if(V){if(V.css===b.css&&V.media===b.media&&V.sourceMap===b.sourceMap)return;R(b=V)}else H()}}c.exports=function(b,E){(E=E||{}).singleton||typeof E.singleton=="boolean"||(E.singleton=k());var A=I(b=b||[],E);return function(R){if(R=R||[],Object.prototype.toString.call(R)==="[object Array]"){for(var H=0;H<A.length;H++){var z=w(A[H]);C[z].references--}for(var V=I(R,E),$=0;$<A.length;$++){var ee=w(A[$]);C[ee].references===0&&(C[ee].updater(),C.splice(ee,1))}A=V}}}},704:(c,h,p)=>{c.exports=p(79)("./src/core.js")},181:(c,h,p)=>{c.exports=p(79)("./src/typing.js")},273:(c,h,p)=>{c.exports=p(79)("./src/ui.js")},209:(c,h,p)=>{c.exports=p(79)("./src/utils.js")},79:c=>{"use strict";c.exports=CKEditor5.dll}},n={};function s(c){var h=n[c];if(h!==void 0)return h.exports;var p=n[c]={id:c,exports:{}};return r[c](p,p.exports,s),p.exports}s.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return s.d(h,{a:h}),h},s.d=(c,h)=>{for(var p in h)s.o(h,p)&&!s.o(c,p)&&Object.defineProperty(c,p,{enumerable:!0,get:h[p]})},s.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),s.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},s.nc=void 0;var a={};(()=>{"use strict";s.r(a),s.d(a,{Mention:()=>ne,MentionEditing:()=>d,MentionUI:()=>ht});var c=s(704),h=s(209);class p extends c.Command{refresh(){const ye=this.editor.model,Xe=ye.document;this.isEnabled=ye.schema.checkAttributeInSelection(Xe.selection,"mention")}execute(ye){const Xe=this.editor.model,Ze=Xe.document.selection,lt=typeof ye.mention=="string"?{id:ye.mention}:ye.mention,_t=lt.id,zt=ye.range||Ze.getFirstRange(),Vt=ye.text||_t,sn=k({_text:Vt,id:_t},lt);if(ye.marker.length!=1)throw new h.CKEditorError("mentioncommand-incorrect-marker",this);if(_t.charAt(0)!=ye.marker)throw new h.CKEditorError("mentioncommand-incorrect-id",this);Xe.change(yn=>{const dr=(0,h.toMap)(Ze.getAttributes()),hr=new Map(dr.entries());hr.set("mention",sn),Xe.insertContent(yn.createText(Vt,hr),zt),Xe.insertContent(yn.createText(" ",dr),zt.start.getShiftedBy(Vt.length))})}}class d extends c.Plugin{static get pluginName(){return"MentionEditing"}init(){const ye=this.editor,Xe=ye.model,Ze=Xe.document;Xe.schema.extend("$text",{allowAttributes:"mention"}),ye.conversion.for("upcast").elementToAttribute({view:{name:"span",key:"data-mention",classes:"mention"},model:{key:"mention",value:lt=>M(lt)}}),ye.conversion.for("downcast").attributeToElement({model:"mention",view:w}),ye.conversion.for("downcast").add(C),Ze.registerPostFixer(lt=>function(_t,zt,Vt){const sn=zt.differ.getChanges();let yn=!1;for(const dr of sn){if(dr.type=="attribute")continue;const hr=dr.position;if(dr.name=="$text"){const Mr=hr.textNode&&hr.textNode.nextSibling;yn=F(hr.textNode,_t)||yn,yn=F(Mr,_t)||yn,yn=F(hr.nodeBefore,_t)||yn,yn=F(hr.nodeAfter,_t)||yn}if(dr.name!="$text"&&dr.type=="insert"){const Mr=hr.nodeAfter;for(const rr of _t.createRangeIn(Mr).getItems())yn=F(rr,_t)||yn}if(dr.type=="insert"&&Vt.isInline(dr.name)){const Mr=hr.nodeAfter&&hr.nodeAfter.nextSibling;yn=F(hr.nodeBefore,_t)||yn,yn=F(Mr,_t)||yn}}return yn}(lt,Ze,Xe.schema)),Ze.registerPostFixer(lt=>function(_t,zt){const Vt=zt.differ.getChanges();let sn=!1;for(const yn of Vt)if(yn.type==="attribute"&&yn.attributeKey!="mention"){const dr=yn.range.start.nodeBefore,hr=yn.range.end.nodeAfter;for(const Mr of[dr,hr])I(Mr)&&Mr.getAttribute(yn.attributeKey)!=yn.attributeNewValue&&(_t.setAttribute(yn.attributeKey,yn.attributeNewValue,Mr),sn=!0)}return sn}(lt,Ze)),Ze.registerPostFixer(lt=>function(_t,zt){const Vt=zt.selection,sn=Vt.focus;return Vt.isCollapsed&&Vt.hasAttribute("mention")&&function(yn){const dr=yn.isAtStart;return yn.nodeBefore&&yn.nodeBefore.is("$text")||dr}(sn)?(_t.removeSelectionAttribute("mention"),!0):!1}(lt,Ze)),ye.commands.add("mention",new p(ye))}}function k(ge,ye){return Object.assign({uid:(0,h.uid)()},ge,ye||{})}function M(ge,ye){const Xe=ge.getAttribute("data-mention"),Ze=ge.getChild(0);if(Ze)return k({id:Xe,_text:Ze.data},ye)}function C(ge){ge.on("attribute:mention",(ye,Xe,Ze)=>{const lt=Xe.attributeNewValue;if(!Xe.item.is("$textProxy")||!lt)return;const _t=Xe.range.start;(_t.textNode||_t.nodeAfter).data!=lt._text&&Ze.consumable.consume(Xe.item,ye.name)},{priority:"highest"})}function w(ge,{writer:ye}){if(!ge)return;const Xe={class:"mention","data-mention":ge.id},Ze={id:ge.uid,priority:20};return ye.createAttributeElement("span",Xe,Ze)}function I(ge){return!ge||!ge.is("$text")&&!ge.is("$textProxy")||!ge.hasAttribute("mention")?!1:ge.data!=ge.getAttribute("mention")._text}function F(ge,ye){return!!I(ge)&&(ye.removeAttribute("mention",ge),!0)}var U=s(273),B=s(181);const N=function(ge){var ye=typeof ge;return ge!=null&&(ye=="object"||ye=="function")},D=typeof t.g=="object"&&t.g&&t.g.Object===Object&&t.g;var x=typeof self=="object"&&self&&self.Object===Object&&self;const T=D||x||Function("return this")(),u=function(){return T.Date.now()};var b=/\s/;const E=function(ge){for(var ye=ge.length;ye--&&b.test(ge.charAt(ye)););return ye};var A=/^\s+/;const R=function(ge){return ge&&ge.slice(0,E(ge)+1).replace(A,"")},H=T.Symbol;var z=Object.prototype,V=z.hasOwnProperty,$=z.toString,ee=H?H.toStringTag:void 0;const q=function(ge){var ye=V.call(ge,ee),Xe=ge[ee];try{ge[ee]=void 0;var Ze=!0}catch{}var lt=$.call(ge);return Ze&&(ye?ge[ee]=Xe:delete ge[ee]),lt};var oe=Object.prototype.toString;const X=function(ge){return oe.call(ge)};var pe="[object Null]",Ie="[object Undefined]",se=H?H.toStringTag:void 0;const be=function(ge){return ge==null?ge===void 0?Ie:pe:se&&se in Object(ge)?q(ge):X(ge)},fe=function(ge){return ge!=null&&typeof ge=="object"};var ue="[object Symbol]";const we=function(ge){return typeof ge=="symbol"||fe(ge)&&be(ge)==ue};var Me=NaN,Ce=/^[-+]0x[0-9a-f]+$/i,Ne=/^0b[01]+$/i,Ye=/^0o[0-7]+$/i,mt=parseInt;const Ct=function(ge){if(typeof ge=="number")return ge;if(we(ge))return Me;if(N(ge)){var ye=typeof ge.valueOf=="function"?ge.valueOf():ge;ge=N(ye)?ye+"":ye}if(typeof ge!="string")return ge===0?ge:+ge;ge=R(ge);var Xe=Ne.test(ge);return Xe||Ye.test(ge)?mt(ge.slice(2),Xe?2:8):Ce.test(ge)?Me:+ge};var ln="Expected a function",$e=Math.max,Qe=Math.min;const bt=function(ge,ye,Xe){var Ze,lt,_t,zt,Vt,sn,yn=0,dr=!1,hr=!1,Mr=!0;if(typeof ge!="function")throw new TypeError(ln);function rr(ri){var Bt=Ze,Et=lt;return Ze=lt=void 0,yn=ri,zt=ge.apply(Et,Bt)}function Cr(ri){var Bt=ri-sn;return sn===void 0||Bt>=ye||Bt<0||hr&&ri-yn>=_t}function Ur(){var ri=u();if(Cr(ri))return $r(ri);Vt=setTimeout(Ur,function(Bt){var Et=ye-(Bt-sn);return hr?Qe(Et,_t-(Bt-yn)):Et}(ri))}function $r(ri){return Vt=void 0,Mr&&Ze?rr(ri):(Ze=lt=void 0,zt)}function li(){var ri=u(),Bt=Cr(ri);if(Ze=arguments,lt=this,sn=ri,Bt){if(Vt===void 0)return function(Et){return yn=Et,Vt=setTimeout(Ur,ye),dr?rr(Et):zt}(sn);if(hr)return clearTimeout(Vt),Vt=setTimeout(Ur,ye),rr(sn)}return Vt===void 0&&(Vt=setTimeout(Ur,ye)),zt}return ye=Ct(ye)||0,N(Xe)&&(dr=!!Xe.leading,_t=(hr="maxWait"in Xe)?$e(Ct(Xe.maxWait)||0,ye):_t,Mr="trailing"in Xe?!!Xe.trailing:Mr),li.cancel=function(){Vt!==void 0&&clearTimeout(Vt),yn=0,Ze=sn=lt=Vt=void 0},li.flush=function(){return Vt===void 0?zt:$r(u())},li};var It=s(62),mn=s.n(It),un=s(216),Be={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};mn()(un.Z,Be),un.Z.locals;class je extends U.ListView{constructor(ye){super(ye),this.extendTemplate({attributes:{class:["ck-mentions"],tabindex:"-1"}})}selectFirst(){this.select(0)}selectNext(){const ye=this.selected,Xe=this.items.getIndex(ye);this.select(Xe+1)}selectPrevious(){const ye=this.selected,Xe=this.items.getIndex(ye);this.select(Xe-1)}select(ye){let Xe=0;ye>0&&ye<this.items.length?Xe=ye:ye<0&&(Xe=this.items.length-1);const Ze=this.items.get(Xe);this.selected!==Ze&&(this.selected&&this.selected.removeHighlight(),Ze.highlight(),this.selected=Ze,this._isItemVisibleInScrolledArea(Ze)||(this.element.scrollTop=Ze.element.offsetTop))}executeSelected(){this.selected.fire("execute")}_isItemVisibleInScrolledArea(ye){return new h.Rect(this.element).contains(new h.Rect(ye.element))}}class $t extends U.View{constructor(ye,Xe){super(ye),this.template=!1,this.domElement=Xe,this.domElement.classList.add("ck-button"),this.set("isOn",!1),this.on("change:isOn",(Ze,lt,_t)=>{_t?(this.domElement.classList.add("ck-on"),this.domElement.classList.remove("ck-off")):(this.domElement.classList.add("ck-off"),this.domElement.classList.remove("ck-on"))}),this.listenTo(this.domElement,"click",()=>{this.fire("execute")})}render(){super.render(),this.element=this.domElement}}class et extends U.ListItemView{highlight(){this.children.first.isOn=!0}removeHighlight(){this.children.first.isOn=!1}}const Kt=3,kn=[h.keyCodes.arrowup,h.keyCodes.arrowdown,h.keyCodes.esc],Tn=[h.keyCodes.enter,h.keyCodes.tab];class ht extends c.Plugin{static get pluginName(){return"MentionUI"}static get requires(){return[U.ContextualBalloon]}constructor(ye){super(ye),this._items=new h.Collection,this._mentionsView=this._createMentionView(),this._mentionsConfigurations=new Map,this._requestFeedDebounced=bt(this._requestFeed,100),ye.config.define("mention",{feeds:[]})}init(){const ye=this.editor,Xe=ye.config.get("mention.commitKeys")||Tn,Ze=kn.concat(Xe);this._balloon=ye.plugins.get(U.ContextualBalloon),ye.editing.view.document.on("keydown",(_t,zt)=>{var Vt;Vt=zt.keyCode,Ze.includes(Vt)&&this._isUIVisible&&(zt.preventDefault(),_t.stop(),zt.keyCode==h.keyCodes.arrowdown&&this._mentionsView.selectNext(),zt.keyCode==h.keyCodes.arrowup&&this._mentionsView.selectPrevious(),Xe.includes(zt.keyCode)&&this._mentionsView.executeSelected(),zt.keyCode==h.keyCodes.esc&&this._hideUIAndRemoveMarker())},{priority:"highest"}),(0,U.clickOutsideHandler)({emitter:this._mentionsView,activator:()=>this._isUIVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideUIAndRemoveMarker()});const lt=ye.config.get("mention.feeds");for(const _t of lt){const zt=_t.feed,Vt=_t.marker;if(!vn(Vt))throw new h.CKEditorError("mentionconfig-incorrect-marker",null,{marker:Vt});const sn={marker:Vt,feedCallback:typeof zt=="function"?zt.bind(this.editor):ft(zt),itemRenderer:_t.itemRenderer};this._mentionsConfigurations.set(Vt,sn)}this._setupTextWatcher(lt),this.listenTo(ye,"change:isReadOnly",()=>{this._hideUIAndRemoveMarker()}),this.on("requestFeed:response",(_t,zt)=>this._handleFeedResponse(zt)),this.on("requestFeed:error",()=>this._hideUIAndRemoveMarker())}destroy(){super.destroy(),this._mentionsView.destroy()}get _isUIVisible(){return this._balloon.visibleView===this._mentionsView}_createMentionView(){const ye=this.editor.locale,Xe=new je(ye);return Xe.items.bindTo(this._items).using(Ze=>{const{item:lt,marker:_t}=Ze,zt=this.editor.config.get("mention.dropdownLimit")||10;if(Xe.items.length>=zt)return null;const Vt=new et(ye),sn=this._renderItem(lt,_t);return sn.delegate("execute").to(Vt),Vt.children.add(sn),Vt.item=lt,Vt.marker=_t,Vt.on("execute",()=>{Xe.fire("execute",{item:lt,marker:_t})}),Vt}),Xe.on("execute",(Ze,lt)=>{const _t=this.editor,zt=_t.model,Vt=lt.item,sn=lt.marker,yn=_t.model.markers.get("mention"),dr=zt.createPositionAt(zt.document.selection.focus),hr=zt.createPositionAt(yn.getStart()),Mr=zt.createRange(hr,dr);this._hideUIAndRemoveMarker(),_t.execute("mention",{mention:Vt,text:Vt.text,marker:sn,range:Mr}),_t.editing.view.focus()}),Xe}_getItemRenderer(ye){const{itemRenderer:Xe}=this._mentionsConfigurations.get(ye);return Xe}_requestFeed(ye,Xe){this._lastRequested=Xe;const{feedCallback:Ze}=this._mentionsConfigurations.get(ye),lt=Ze(Xe);lt instanceof Promise?lt.then(_t=>{this._lastRequested==Xe?this.fire("requestFeed:response",{feed:_t,marker:ye,feedText:Xe}):this.fire("requestFeed:discarded",{feed:_t,marker:ye,feedText:Xe})}).catch(_t=>{this.fire("requestFeed:error",{error:_t}),(0,h.logWarning)("mention-feed-callback-error",{marker:ye})}):this.fire("requestFeed:response",{feed:lt,marker:ye,feedText:Xe})}_setupTextWatcher(ye){const Xe=this.editor,Ze=ye.map(zt=>({...zt,pattern:wt(zt.marker,zt.minimumCharacters||0)})),lt=new B.TextWatcher(Xe.model,function(zt){return sn=>{const yn=Je(zt,sn);if(!yn)return!1;let dr=0;yn.position!==0&&(dr=yn.position-1);const hr=sn.substring(dr);return yn.pattern.test(hr)}}(Ze));lt.on("matched",(zt,Vt)=>{const sn=Je(Ze,Vt.text),yn=Xe.model.document.selection.focus,dr=Xe.model.createPositionAt(yn.parent,sn.position);if(function($r){const li=$r.textNode&&$r.textNode.hasAttribute("mention"),ri=$r.nodeBefore;return li||ri&&ri.is("$text")&&ri.hasAttribute("mention")}(yn)||function($r){const li=$r.nodeAfter;return li&&li.is("$text")&&li.hasAttribute("mention")}(dr))return void this._hideUIAndRemoveMarker();const hr=function($r,li){let ri=0;$r.position!==0&&(ri=$r.position-1);const Bt=wt($r.marker,0);return li.substring(ri).match(Bt)[2]}(sn,Vt.text),Mr=sn.marker.length+hr.length,rr=yn.getShiftedBy(-Mr),Cr=yn.getShiftedBy(-hr.length),Ur=Xe.model.createRange(rr,Cr);if(ut(Xe)){const $r=Xe.model.markers.get("mention");Xe.model.change(li=>{li.updateMarker($r,{range:Ur})})}else Xe.model.change($r=>{$r.addMarker("mention",{range:Ur,usingOperation:!1,affectsData:!1})});this._requestFeedDebounced(sn.marker,hr)}),lt.on("unmatched",()=>{this._hideUIAndRemoveMarker()});const _t=Xe.commands.get("mention");return lt.bind("isEnabled").to(_t),lt}_handleFeedResponse(ye){const{feed:Xe,marker:Ze}=ye;if(!ut(this.editor))return;this._items.clear();for(const _t of Xe){const zt=typeof _t!="object"?{id:_t,text:_t}:_t;this._items.add({item:zt,marker:Ze})}const lt=this.editor.model.markers.get("mention");this._items.length?this._showOrUpdateUI(lt):this._hideUIAndRemoveMarker()}_showOrUpdateUI(ye){this._isUIVisible?this._balloon.updatePosition(this._getBalloonPanelPositionData(ye,this._mentionsView.position)):this._balloon.add({view:this._mentionsView,position:this._getBalloonPanelPositionData(ye,this._mentionsView.position),singleViewMode:!0}),this._mentionsView.position=this._balloon.view.position,this._mentionsView.selectFirst()}_hideUIAndRemoveMarker(){this._balloon.hasView(this._mentionsView)&&this._balloon.remove(this._mentionsView),ut(this.editor)&&this.editor.model.change(ye=>ye.removeMarker("mention")),this._mentionsView.position=void 0}_renderItem(ye,Xe){const Ze=this.editor;let lt,_t=ye.id;const zt=this._getItemRenderer(Xe);if(zt){const Vt=zt(ye);typeof Vt!="string"?lt=new $t(Ze.locale,Vt):_t=Vt}if(!lt){const Vt=new U.ButtonView(Ze.locale);Vt.label=_t,Vt.withText=!0,lt=Vt}return lt}_getBalloonPanelPositionData(ye,Xe){const Ze=this.editor,lt=Ze.editing,_t=lt.view.domConverter,zt=lt.mapper;return{target:()=>{let Vt=ye.getRange();Vt.start.root.rootName=="$graveyard"&&(Vt=Ze.model.document.selection.getFirstRange());const sn=zt.toViewRange(Vt);return h.Rect.getDomRangeRects(_t.viewRangeToDom(sn)).pop()},limiter:()=>{const Vt=this.editor.editing.view,sn=Vt.document.selection.editableElement;return sn?Vt.domConverter.mapViewToDom(sn.root):null},positions:ot(Xe)}}}function ot(ge){const ye={caret_se:Xe=>({top:Xe.bottom+Kt,left:Xe.right,name:"caret_se",config:{withArrow:!1}}),caret_ne:(Xe,Ze)=>({top:Xe.top-Ze.height-Kt,left:Xe.right,name:"caret_ne",config:{withArrow:!1}}),caret_sw:(Xe,Ze)=>({top:Xe.bottom+Kt,left:Xe.right-Ze.width,name:"caret_sw",config:{withArrow:!1}}),caret_nw:(Xe,Ze)=>({top:Xe.top-Ze.height-Kt,left:Xe.right-Ze.width,name:"caret_nw",config:{withArrow:!1}})};return Object.prototype.hasOwnProperty.call(ye,ge)?[ye[ge]]:[ye.caret_se,ye.caret_sw,ye.caret_ne,ye.caret_nw]}function Je(ge,ye){let Xe;for(const Ze of ge){const lt=ye.lastIndexOf(Ze.marker);lt>0&&!ye.substring(lt-1).match(Ze.pattern)||(!Xe||lt>=Xe.position)&&(Xe={marker:Ze.marker,position:lt,minimumCharacters:Ze.minimumCharacters,pattern:Ze.pattern})}return Xe}function wt(ge,ye){const Xe=ye==0?"*":`{${ye},}`,Ze=h.env.features.isRegExpUnicodePropertySupported?`\\p{Ps}\\p{Pi}"'`:`\\(\\[{"'`;return new RegExp(`(?:^|[ ${Ze}])([${ge}])(.${Xe})$`,"u")}function ft(ge){return ye=>ge.filter(Xe=>(typeof Xe=="string"?Xe:String(Xe.id)).toLowerCase().includes(ye.toLowerCase()))}function vn(ge){return ge&&ge.length==1}function ut(ge){return ge.model.markers.has("mention")}var Wt=s(677),ae={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};mn()(Wt.Z,ae),Wt.Z.locals;class ne extends c.Plugin{toMentionAttribute(ye,Xe){return M(ye,Xe)}static get pluginName(){return"Mention"}static get requires(){return[d,ht]}}})(),(window.CKEditor5=window.CKEditor5||{}).mention=a})()},32898:()=>{(function(Z){const v=Z.en=Z.en||{};v.dictionary=Object.assign(v.dictionary||{},{"Page break":"Page break"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),(()=>{var Z={587:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,'.ck-content .page-break{align-items:center;clear:both;display:flex;justify-content:center;padding:5px 0;position:relative}.ck-content .page-break:after{border-bottom:2px dashed #c4c4c4;content:"";position:absolute;width:100%}.ck-content .page-break__label{background:#fff;border:1px solid #c4c4c4;border-radius:2px;box-shadow:2px 2px 1px rgba(0,0,0,.15);color:#333;display:block;font-family:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;font-size:.75em;font-weight:700;padding:.3em .6em;position:relative;text-transform:uppercase;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1}@media print{.ck-content .page-break{padding:0}.ck-content .page-break:after{display:none}}',""]);const p=h},609:n=>{"use strict";n.exports=function(s){var a=[];return a.toString=function(){return this.map(function(c){var h=s(c);return c[2]?"@media ".concat(c[2]," {").concat(h,"}"):h}).join("")},a.i=function(c,h,p){typeof c=="string"&&(c=[[null,c,""]]);var d={};if(p)for(var k=0;k<this.length;k++){var M=this[k][0];M!=null&&(d[M]=!0)}for(var C=0;C<c.length;C++){var w=[].concat(c[C]);p&&d[w[0]]||(h&&(w[2]?w[2]="".concat(h," and ").concat(w[2]):w[2]=h),a.push(w))}},a}},62:(n,s,a)=>{"use strict";var c,h=function(){return c===void 0&&(c=Boolean(window&&document&&document.all&&!window.atob)),c},p=function(){var x={};return function(T){if(x[T]===void 0){var u=document.querySelector(T);if(window.HTMLIFrameElement&&u instanceof window.HTMLIFrameElement)try{u=u.contentDocument.head}catch{u=null}x[T]=u}return x[T]}}(),d=[];function k(x){for(var T=-1,u=0;u<d.length;u++)if(d[u].identifier===x){T=u;break}return T}function M(x,T){for(var u={},b=[],E=0;E<x.length;E++){var A=x[E],R=T.base?A[0]+T.base:A[0],H=u[R]||0,z="".concat(R," ").concat(H);u[R]=H+1;var V=k(z),$={css:A[1],media:A[2],sourceMap:A[3]};V!==-1?(d[V].references++,d[V].updater($)):d.push({identifier:z,updater:D($,T),references:1}),b.push(z)}return b}function C(x){var T=document.createElement("style"),u=x.attributes||{};if(u.nonce===void 0){var b=a.nc;b&&(u.nonce=b)}if(Object.keys(u).forEach(function(A){T.setAttribute(A,u[A])}),typeof x.insert=="function")x.insert(T);else{var E=p(x.insert||"head");if(!E)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");E.appendChild(T)}return T}var w,I=(w=[],function(x,T){return w[x]=T,w.filter(Boolean).join(`
`)});function F(x,T,u,b){var E=u?"":b.media?"@media ".concat(b.media," {").concat(b.css,"}"):b.css;if(x.styleSheet)x.styleSheet.cssText=I(T,E);else{var A=document.createTextNode(E),R=x.childNodes;R[T]&&x.removeChild(R[T]),R.length?x.insertBefore(A,R[T]):x.appendChild(A)}}function U(x,T,u){var b=u.css,E=u.media,A=u.sourceMap;if(E?x.setAttribute("media",E):x.removeAttribute("media"),A&&typeof btoa<"u"&&(b+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(A))))," */")),x.styleSheet)x.styleSheet.cssText=b;else{for(;x.firstChild;)x.removeChild(x.firstChild);x.appendChild(document.createTextNode(b))}}var B=null,N=0;function D(x,T){var u,b,E;if(T.singleton){var A=N++;u=B||(B=C(T)),b=F.bind(null,u,A,!1),E=F.bind(null,u,A,!0)}else u=C(T),b=U.bind(null,u,T),E=function(){(function(R){if(R.parentNode===null)return!1;R.parentNode.removeChild(R)})(u)};return b(x),function(R){if(R){if(R.css===x.css&&R.media===x.media&&R.sourceMap===x.sourceMap)return;b(x=R)}else E()}}n.exports=function(x,T){(T=T||{}).singleton||typeof T.singleton=="boolean"||(T.singleton=h());var u=M(x=x||[],T);return function(b){if(b=b||[],Object.prototype.toString.call(b)==="[object Array]"){for(var E=0;E<u.length;E++){var A=k(u[E]);d[A].references--}for(var R=M(b,T),H=0;H<u.length;H++){var z=k(u[H]);d[z].references===0&&(d[z].updater(),d.splice(z,1))}u=R}}}},704:(n,s,a)=>{n.exports=a(79)("./src/core.js")},273:(n,s,a)=>{n.exports=a(79)("./src/ui.js")},995:(n,s,a)=>{n.exports=a(79)("./src/widget.js")},79:n=>{"use strict";n.exports=CKEditor5.dll}},v={};function t(n){var s=v[n];if(s!==void 0)return s.exports;var a=v[n]={id:n,exports:{}};return Z[n](a,a.exports,t),a.exports}t.n=n=>{var s=n&&n.__esModule?()=>n.default:()=>n;return t.d(s,{a:s}),s},t.d=(n,s)=>{for(var a in s)t.o(s,a)&&!t.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:s[a]})},t.o=(n,s)=>Object.prototype.hasOwnProperty.call(n,s),t.r=n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.nc=void 0;var r={};(()=>{"use strict";t.r(r),t.d(r,{PageBreak:()=>w,PageBreakEditing:()=>k,PageBreakUI:()=>C});var n=t(704),s=t(995);class a extends n.Command{refresh(){const F=this.editor.model,U=F.schema,B=F.document.selection;this.isEnabled=function(N,D,x){const T=function(u,b){const E=(0,s.findOptimalInsertionRange)(u,b),A=E.start.parent;return A.isEmpty&&!A.is("element","$root")?A.parent:A}(N,x);return D.checkChild(T,"pageBreak")}(B,U,F)}execute(){const F=this.editor.model;F.change(U=>{const B=U.createElement("pageBreak");F.insertObject(B,null,null,{setSelection:"after"})})}}var c=t(62),h=t.n(c),p=t(587),d={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(p.Z,d),p.Z.locals;class k extends n.Plugin{static get pluginName(){return"PageBreakEditing"}init(){const F=this.editor,U=F.model.schema,B=F.t,N=F.conversion;U.register("pageBreak",{inheritAllFrom:"$blockObject"}),N.for("dataDowncast").elementToStructure({model:"pageBreak",view:(D,{writer:x})=>x.createContainerElement("div",{class:"page-break",style:"page-break-after: always"},x.createContainerElement("span",{style:"display: none"}))}),N.for("editingDowncast").elementToStructure({model:"pageBreak",view:(D,{writer:x})=>{const T=B("Page break"),u=x.createContainerElement("div"),b=x.createRawElement("span",{class:"page-break__label"},function(E){E.innerText=B("Page break")});return x.addClass("page-break",u),x.insert(x.createPositionAt(u,0),b),function(E,A,R){return A.setCustomProperty("pageBreak",!0,E),(0,s.toWidget)(E,A,{label:R})}(u,x,T)}}),N.for("upcast").elementToElement({view:D=>{const x=D.getStyle("page-break-before")=="always",T=D.getStyle("page-break-after")=="always";if(!x&&!T)return null;if(D.childCount==1){const u=D.getChild(0);if(!u.is("element","span")||u.getStyle("display")!="none")return null}else if(D.childCount>1)return null;return{name:!0}},model:"pageBreak",converterPriority:"high"}),F.commands.add("pageBreak",new a(F))}}var M=t(273);class C extends n.Plugin{static get pluginName(){return"PageBreakUI"}init(){const F=this.editor,U=F.t;F.ui.componentFactory.add("pageBreak",B=>{const N=F.commands.get("pageBreak"),D=new M.ButtonView(B);return D.set({label:U("Page break"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.598.687h1.5v5h-1.5zm14.5 0h1.5v5h-1.5z"/><path d="M19.598 4.187v1.5h-16v-1.5zm-16 14.569h1.5v-5h-1.5zm14.5 0h1.5v-5h-1.5z"/><path d="M19.598 15.256v-1.5h-16v1.5zM5.081 9h6v2h-6zm8 0h6v2h-6zm-9.483 1L0 12.5v-5z"/></svg>',tooltip:!0}),D.bind("isEnabled").to(N,"isEnabled"),this.listenTo(D,"execute",()=>{F.execute("pageBreak"),F.editing.view.focus()}),D})}}class w extends n.Plugin{static get requires(){return[k,C,s.Widget]}static get pluginName(){return"PageBreak"}}})(),(window.CKEditor5=window.CKEditor5||{}).pageBreak=r})()},96461:()=>{/*!
 * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md.
 */(()=>{var Z={945:(n,s,a)=>{n.exports=a(79)("./src/clipboard.js")},704:(n,s,a)=>{n.exports=a(79)("./src/core.js")},492:(n,s,a)=>{n.exports=a(79)("./src/engine.js")},79:n=>{"use strict";n.exports=CKEditor5.dll}},v={};function t(n){var s=v[n];if(s!==void 0)return s.exports;var a=v[n]={exports:{}};return Z[n](a,a.exports,t),a.exports}t.d=(n,s)=>{for(var a in s)t.o(s,a)&&!t.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:s[a]})},t.o=(n,s)=>Object.prototype.hasOwnProperty.call(n,s),t.r=n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var r={};(()=>{"use strict";t.r(r),t.d(r,{PasteFromOffice:()=>T});var n=t(704),s=t(945),a=t(492);function c(u,b,E,{blockElements:A,inlineObjectElements:R}){let H=E.createPositionAt(u,b=="forward"?"after":"before");return H=H.getLastMatchingPosition(({item:z})=>z.is("element")&&!A.includes(z.name)&&!R.includes(z.name),{direction:b}),b=="forward"?H.nodeAfter:H.nodeBefore}function h(u,b){return!!u&&u.is("element")&&b.includes(u.name)}function p(u,b){if(!u.childCount)return;const E=new a.UpcastWriter(u.document),A=function(z,V){const $=V.createRangeIn(z),ee=new a.Matcher({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),q=[];for(const oe of $)if(oe.type==="elementStart"&&ee.match(oe.item)){const X=M(oe.item);q.push({element:oe.item,id:X.id,order:X.order,indent:X.indent})}return q}(u,E);if(!A.length)return;let R=null,H=1;A.forEach((z,V)=>{const $=function(Ie,se){if(!Ie)return!0;if(Ie.id!==se.id)return se.indent-Ie.indent!=1;const be=se.element.previousSibling;if(!be)return!0;return fe=be,!(fe.is("element","ol")||fe.is("element","ul"));var fe}(A[V-1],z),ee=$?null:A[V-1],q=(X=z,(oe=ee)?X.indent-oe.indent:X.indent-1);var oe,X;if($&&(R=null,H=1),!R||q!==0){const Ie=function(se,be){const fe=new RegExp(`@list l${se.id}:level${se.indent}\\s*({[^}]*)`,"gi"),ue=/mso-level-number-format:([^;]{0,100});/gi,we=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,Me=fe.exec(be);let Ce="decimal",Ne="ol",Ye=null;if(Me&&Me[1]){const mt=ue.exec(Me[1]);if(mt&&mt[1]&&(Ce=mt[1].trim(),Ne=Ce!=="bullet"&&Ce!=="image"?"ol":"ul"),Ce==="bullet"){const Ct=function(ln){const $e=function(bt){if(bt.getChild(0).is("$text"))return null;for(const It of bt.getChildren()){if(!It.is("element","span"))continue;const mn=It.getChild(0);return mn.is("$text")?mn:mn.getChild(0)}return null}(ln);if(!$e)return null;const Qe=$e._data;return Qe==="o"?"circle":Qe==="\xB7"?"disc":Qe==="\xA7"?"square":null}(se.element);Ct&&(Ce=Ct)}else{const Ct=we.exec(Me[1]);Ct&&Ct[1]&&(Ye=parseInt(Ct[1]))}}return{type:Ne,startIndex:Ye,style:d(Ce)}}(z,b);if(R){if(z.indent>H){const se=R.getChild(R.childCount-1),be=se.getChild(se.childCount-1);R=k(Ie,be,E),H+=1}else if(z.indent<H){const se=H-z.indent;R=function(be,fe){const ue=be.getAncestors({parentFirst:!0});let we=null,Me=0;for(const Ce of ue)if((Ce.is("element","ul")||Ce.is("element","ol"))&&Me++,Me===fe){we=Ce;break}return we}(R,se),H=z.indent}}else R=k(Ie,z.element,E);z.indent<=H&&(R.is("element",Ie.type)||(R=E.rename(Ie.type,R)))}const pe=function(Ie,se){return function(be,fe){const ue=new a.Matcher({name:"span",styles:{"mso-list":"Ignore"}}),we=fe.createRangeIn(be);for(const Me of we)Me.type==="elementStart"&&ue.match(Me.item)&&fe.remove(Me.item)}(Ie,se),se.rename("li",Ie)}(z.element,E);E.appendChild(pe,R)})}function d(u){if(u.startsWith("arabic-leading-zero"))return"decimal-leading-zero";switch(u){case"alpha-upper":return"upper-alpha";case"alpha-lower":return"lower-alpha";case"roman-upper":return"upper-roman";case"roman-lower":return"lower-roman";case"circle":case"disc":case"square":return u;default:return null}}function k(u,b,E){const A=b.parent,R=E.createElement(u.type),H=A.getChildIndex(b)+1;return E.insertChild(H,R,A),u.style&&E.setStyle("list-style-type",u.style,R),u.startIndex&&u.startIndex>1&&E.setAttribute("start",u.startIndex,R),R}function M(u){const b={},E=u.getStyle("mso-list");if(E){const A=E.match(/(^|\s{1,100})l(\d+)/i),R=E.match(/\s{0,100}lfo(\d+)/i),H=E.match(/\s{0,100}level(\d+)/i);A&&R&&H&&(b.id=A[2],b.order=R[1],b.indent=parseInt(H[1]))}return b}const C=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class w{constructor(b){this.document=b}isActive(b){return C.test(b)}execute(b){const E=new a.UpcastWriter(this.document),{body:A}=b._parsedData;(function(R,H){for(const z of R.getChildren())if(z.is("element","b")&&z.getStyle("font-weight")==="normal"){const V=R.getChildIndex(z);H.remove(z),H.insertChild(V,z.getChildren(),R)}})(A,E),function(R,H){for(const z of H.createRangeIn(R)){const V=z.item;if(V.is("element","li")){const $=V.getChild(0);$&&$.is("element","p")&&H.unwrapElement($)}}}(A,E),function(R,H){const z=new a.ViewDocument(H.document.stylesProcessor),V=new a.DomConverter(z,{renderingMode:"data"}),$=V.blockElements,ee=V.inlineObjectElements,q=[];for(const oe of H.createRangeIn(R)){const X=oe.item;if(X.is("element","br")){const pe=c(X,"forward",H,{blockElements:$,inlineObjectElements:ee}),Ie=c(X,"backward",H,{blockElements:$,inlineObjectElements:ee}),se=h(pe,$);(h(Ie,$)||se)&&q.push(X)}}for(const oe of q)oe.hasClass("Apple-interchange-newline")?H.remove(oe):H.replace(oe,H.createElement("p"))}(A,E),b.content=A}}function I(u,b){if(!u.childCount)return;const E=new a.UpcastWriter(u.document),A=function(H,z){const V=z.createRangeIn(H),$=new a.Matcher({name:/v:(.+)/}),ee=[];for(const q of V){if(q.type!="elementStart")continue;const oe=q.item,X=oe.previousSibling,pe=X&&X.is("element")?X.name:null;$.match(oe)&&oe.getAttribute("o:gfxdata")&&pe!=="v:shapetype"&&ee.push(q.item.getAttribute("id"))}return ee}(u,E);(function(H,z,V){const $=V.createRangeIn(z),ee=new a.Matcher({name:"img"}),q=[];for(const oe of $)if(oe.item.is("element")&&ee.match(oe.item)){const X=oe.item,pe=X.getAttribute("v:shapes")?X.getAttribute("v:shapes").split(" "):[];pe.length&&pe.every(Ie=>H.indexOf(Ie)>-1)?q.push(X):X.getAttribute("src")||q.push(X)}for(const oe of q)V.remove(oe)})(A,u,E),function(H,z,V){const $=V.createRangeIn(z),ee=[];for(const X of $)if(X.type=="elementStart"&&X.item.is("element","v:shape")){const pe=X.item.getAttribute("id");if(H.includes(pe))continue;q(X.item.parent.getChildren(),pe)||ee.push(X.item)}for(const X of ee){const pe={src:oe(X)};X.hasAttribute("alt")&&(pe.alt=X.getAttribute("alt"));const Ie=V.createElement("img",pe);V.insertChild(X.index+1,Ie,X.parent)}function q(X,pe){for(const Ie of X)if(Ie.is("element")&&(Ie.name=="img"&&Ie.getAttribute("v:shapes")==pe||q(Ie.getChildren(),pe)))return!0;return!1}function oe(X){for(const pe of X.getChildren())if(pe.is("element")&&pe.getAttribute("src"))return pe.getAttribute("src")}}(A,u,E),function(H,z){const V=z.createRangeIn(H),$=new a.Matcher({name:/v:(.+)/}),ee=[];for(const q of V)q.type=="elementStart"&&$.match(q.item)&&ee.push(q.item);for(const q of ee)z.remove(q)}(u,E);const R=function(H,z){const V=z.createRangeIn(H),$=new a.Matcher({name:"img"}),ee=[];for(const q of V)q.item.is("element")&&$.match(q.item)&&q.item.getAttribute("src").startsWith("file://")&&ee.push(q.item);return ee}(u,E);R.length&&function(H,z,V){if(H.length===z.length)for(let $=0;$<H.length;$++){const ee=`data:${z[$].type};base64,${F(z[$].hex)}`;V.setAttribute("src",ee,H[$])}}(R,function(H){if(!H)return[];const z=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,V=new RegExp("(?:("+z.source+"))([\\da-fA-F\\s]+)\\}","g"),$=H.match(V),ee=[];if($)for(const q of $){let oe=!1;q.includes("\\pngblip")?oe="image/png":q.includes("\\jpegblip")&&(oe="image/jpeg"),oe&&ee.push({hex:q.replace(z,"").replace(/[^\da-fA-F]/g,""),type:oe})}return ee}(b),E)}function F(u){return btoa(u.match(/\w{2}/g).map(b=>String.fromCharCode(parseInt(b,16))).join(""))}const U=/<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/i,B=/xmlns:o="urn:schemas-microsoft-com/i;class N{constructor(b){this.document=b}isActive(b){return U.test(b)||B.test(b)}execute(b){const{body:E,stylesString:A}=b._parsedData;p(E,A),I(E,b.dataTransfer.getData("text/rtf")),b.content=E}}function D(u){return u.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(b,E)=>E.length===1?" ":Array(E.length+1).join("\xA0 ").substr(0,E.length))}function x(u,b){const E=new DOMParser,A=function($){return D(D($)).replace(/(<span\s+style=['"]mso-spacerun:yes['"]>[^\S\r\n]*?)[\r\n]+([^\S\r\n]*<\/span>)/g,"$1$2").replace(/<span\s+style=['"]mso-spacerun:yes['"]><\/span>/g,"").replace(/ <\//g,"\xA0</").replace(/ <o:p><\/o:p>/g,"\xA0<o:p></o:p>").replace(/<o:p>(&nbsp;|\u00A0)<\/o:p>/g,"").replace(/>([^\S\r\n]*[\r\n]\s*)</g,"><")}(function($){const ee="</body>",q="</html>",oe=$.indexOf(ee);if(oe<0)return $;const X=$.indexOf(q,oe+ee.length);return $.substring(0,oe+ee.length)+(X>=0?$.substring(X):"")}(u=u.replace(/<!--\[if gte vml 1]>/g,""))),R=E.parseFromString(A,"text/html");(function($){$.querySelectorAll("span[style*=spacerun]").forEach(ee=>{const q=ee,oe=q.innerText.length||0;q.innerText=Array(oe+1).join("\xA0 ").substr(0,oe)})})(R);const H=R.body.innerHTML,z=function($,ee){const q=new a.ViewDocument(ee),oe=new a.DomConverter(q,{renderingMode:"data"}),X=$.createDocumentFragment(),pe=$.body.childNodes;for(;pe.length>0;)X.appendChild(pe[0]);return oe.domToView(X,{skipComments:!0})}(R,b),V=function($){const ee=[],q=[],oe=Array.from($.getElementsByTagName("style"));for(const X of oe)X.sheet&&X.sheet.cssRules&&X.sheet.cssRules.length&&(ee.push(X.sheet),q.push(X.innerHTML));return{styles:ee,stylesString:q.join(" ")}}(R);return{body:z,bodyString:H,styles:V.styles,stylesString:V.stylesString}}class T extends n.Plugin{static get pluginName(){return"PasteFromOffice"}static get requires(){return[s.ClipboardPipeline]}init(){const b=this.editor,E=b.editing.view.document,A=[];A.push(new N(E)),A.push(new w(E)),b.plugins.get("ClipboardPipeline").on("inputTransformation",(R,H)=>{if(H._isTransformedWithPasteFromOffice||b.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;const z=H.dataTransfer.getData("text/html"),V=A.find($=>$.isActive(z));V&&(H._parsedData=x(z,E.stylesProcessor),V.execute(H),H._isTransformedWithPasteFromOffice=!0)},{priority:"high"})}}})(),(window.CKEditor5=window.CKEditor5||{}).pasteFromOffice=r})()},54132:()=>{(function(Z){const v=Z.en=Z.en||{};v.dictionary=Object.assign(v.dictionary||{},{"Remove Format":"Remove Format"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),(()=>{var Z={704:(n,s,a)=>{n.exports=a(79)("./src/core.js")},273:(n,s,a)=>{n.exports=a(79)("./src/ui.js")},209:(n,s,a)=>{n.exports=a(79)("./src/utils.js")},79:n=>{"use strict";n.exports=CKEditor5.dll}},v={};function t(n){var s=v[n];if(s!==void 0)return s.exports;var a=v[n]={exports:{}};return Z[n](a,a.exports,t),a.exports}t.d=(n,s)=>{for(var a in s)t.o(s,a)&&!t.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:s[a]})},t.o=(n,s)=>Object.prototype.hasOwnProperty.call(n,s),t.r=n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var r={};(()=>{"use strict";t.r(r),t.d(r,{RemoveFormat:()=>k,RemoveFormatEditing:()=>d,RemoveFormatUI:()=>c});var n=t(704),s=t(273);const a="removeFormat";class c extends n.Plugin{static get pluginName(){return"RemoveFormatUI"}init(){const C=this.editor,w=C.t;C.ui.componentFactory.add(a,I=>{const F=C.commands.get(a),U=new s.ButtonView(I);return U.set({label:w("Remove Format"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.69 14.915c.053.052.173.083.36.093a.366.366 0 0 1 .345.485l-.003.01a.738.738 0 0 1-.697.497h-2.67a.374.374 0 0 1-.353-.496l.013-.038a.681.681 0 0 1 .644-.458c.197-.012.325-.043.386-.093a.28.28 0 0 0 .072-.11L9.592 4.5H6.269c-.359-.017-.609.013-.75.09-.142.078-.289.265-.442.563-.192.29-.516.464-.864.464H4.17a.43.43 0 0 1-.407-.569L4.46 3h13.08l-.62 2.043a.81.81 0 0 1-.775.574h-.114a.486.486 0 0 1-.486-.486c.001-.284-.054-.464-.167-.54-.112-.076-.367-.106-.766-.091h-3.28l-2.68 10.257c-.006.074.007.127.038.158zM3 17h8a.5.5 0 1 1 0 1H3a.5.5 0 1 1 0-1zm11.299 1.17a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.06-1.06l1.415 1.414 1.414-1.415a.75.75 0 1 1 1.06 1.06l-1.413 1.415 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414-1.414 1.414z"/></svg>',tooltip:!0}),U.bind("isOn","isEnabled").to(F,"value","isEnabled"),this.listenTo(U,"execute",()=>{C.execute(a),C.editing.view.focus()}),U})}}var h=t(209);class p extends n.Command{refresh(){const C=this.editor.model;this.isEnabled=!!(0,h.first)(this._getFormattingItems(C.document.selection,C.schema))}execute(){const C=this.editor.model,w=C.schema;C.change(I=>{for(const F of this._getFormattingItems(C.document.selection,w))if(F.is("selection"))for(const U of this._getFormattingAttributes(F,w))I.removeSelectionAttribute(U);else{const U=I.createRangeOn(F);for(const B of this._getFormattingAttributes(F,w))I.removeAttribute(B,U)}})}*_getFormattingItems(C,w){const I=F=>!!(0,h.first)(this._getFormattingAttributes(F,w));for(const F of C.getRanges())for(const U of F.getItems())!w.isBlock(U)&&I(U)&&(yield U);for(const F of C.getSelectedBlocks())I(F)&&(yield F);I(C)&&(yield C)}*_getFormattingAttributes(C,w){for(const[I]of C.getAttributes()){const F=w.getAttributeProperties(I);F&&F.isFormatting&&(yield I)}}}class d extends n.Plugin{static get pluginName(){return"RemoveFormatEditing"}init(){const C=this.editor;C.commands.add("removeFormat",new p(C))}}class k extends n.Plugin{static get requires(){return[d,c]}static get pluginName(){return"RemoveFormat"}}})(),(window.CKEditor5=window.CKEditor5||{}).removeFormat=r})()},64181:()=>{(function(Z){const v=Z.en=Z.en||{};v.dictionary=Object.assign(v.dictionary||{},{Source:"Source"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),(()=>{var Z={821:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,'.ck-source-editing-area{overflow:hidden;position:relative}.ck-source-editing-area textarea,.ck-source-editing-area:after{border:1px solid transparent;font-family:monospace;font-size:var(--ck-font-size-normal);line-height:var(--ck-line-height-base);margin:0;padding:var(--ck-spacing-large);white-space:pre-wrap}.ck-source-editing-area:after{content:attr(data-value) " ";display:block;visibility:hidden}.ck-source-editing-area textarea{border-color:var(--ck-color-base-border);border-radius:0;box-sizing:border-box;height:100%;outline:none;overflow:hidden;position:absolute;resize:none;width:100%}.ck-rounded-corners .ck-source-editing-area textarea,.ck-source-editing-area textarea.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck-source-editing-area textarea:not([readonly]):focus{border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}',""]);const p=h},609:n=>{"use strict";n.exports=function(s){var a=[];return a.toString=function(){return this.map(function(c){var h=s(c);return c[2]?"@media ".concat(c[2]," {").concat(h,"}"):h}).join("")},a.i=function(c,h,p){typeof c=="string"&&(c=[[null,c,""]]);var d={};if(p)for(var k=0;k<this.length;k++){var M=this[k][0];M!=null&&(d[M]=!0)}for(var C=0;C<c.length;C++){var w=[].concat(c[C]);p&&d[w[0]]||(h&&(w[2]?w[2]="".concat(h," and ").concat(w[2]):w[2]=h),a.push(w))}},a}},62:(n,s,a)=>{"use strict";var c,h=function(){return c===void 0&&(c=Boolean(window&&document&&document.all&&!window.atob)),c},p=function(){var x={};return function(T){if(x[T]===void 0){var u=document.querySelector(T);if(window.HTMLIFrameElement&&u instanceof window.HTMLIFrameElement)try{u=u.contentDocument.head}catch{u=null}x[T]=u}return x[T]}}(),d=[];function k(x){for(var T=-1,u=0;u<d.length;u++)if(d[u].identifier===x){T=u;break}return T}function M(x,T){for(var u={},b=[],E=0;E<x.length;E++){var A=x[E],R=T.base?A[0]+T.base:A[0],H=u[R]||0,z="".concat(R," ").concat(H);u[R]=H+1;var V=k(z),$={css:A[1],media:A[2],sourceMap:A[3]};V!==-1?(d[V].references++,d[V].updater($)):d.push({identifier:z,updater:D($,T),references:1}),b.push(z)}return b}function C(x){var T=document.createElement("style"),u=x.attributes||{};if(u.nonce===void 0){var b=a.nc;b&&(u.nonce=b)}if(Object.keys(u).forEach(function(A){T.setAttribute(A,u[A])}),typeof x.insert=="function")x.insert(T);else{var E=p(x.insert||"head");if(!E)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");E.appendChild(T)}return T}var w,I=(w=[],function(x,T){return w[x]=T,w.filter(Boolean).join(`
`)});function F(x,T,u,b){var E=u?"":b.media?"@media ".concat(b.media," {").concat(b.css,"}"):b.css;if(x.styleSheet)x.styleSheet.cssText=I(T,E);else{var A=document.createTextNode(E),R=x.childNodes;R[T]&&x.removeChild(R[T]),R.length?x.insertBefore(A,R[T]):x.appendChild(A)}}function U(x,T,u){var b=u.css,E=u.media,A=u.sourceMap;if(E?x.setAttribute("media",E):x.removeAttribute("media"),A&&typeof btoa<"u"&&(b+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(A))))," */")),x.styleSheet)x.styleSheet.cssText=b;else{for(;x.firstChild;)x.removeChild(x.firstChild);x.appendChild(document.createTextNode(b))}}var B=null,N=0;function D(x,T){var u,b,E;if(T.singleton){var A=N++;u=B||(B=C(T)),b=F.bind(null,u,A,!1),E=F.bind(null,u,A,!0)}else u=C(T),b=U.bind(null,u,T),E=function(){(function(R){if(R.parentNode===null)return!1;R.parentNode.removeChild(R)})(u)};return b(x),function(R){if(R){if(R.css===x.css&&R.media===x.media&&R.sourceMap===x.sourceMap)return;b(x=R)}else E()}}n.exports=function(x,T){(T=T||{}).singleton||typeof T.singleton=="boolean"||(T.singleton=h());var u=M(x=x||[],T);return function(b){if(b=b||[],Object.prototype.toString.call(b)==="[object Array]"){for(var E=0;E<u.length;E++){var A=k(u[E]);d[A].references--}for(var R=M(b,T),H=0;H<u.length;H++){var z=k(u[H]);d[z].references===0&&(d[z].updater(),d.splice(z,1))}u=R}}}},704:(n,s,a)=>{n.exports=a(79)("./src/core.js")},273:(n,s,a)=>{n.exports=a(79)("./src/ui.js")},209:(n,s,a)=>{n.exports=a(79)("./src/utils.js")},79:n=>{"use strict";n.exports=CKEditor5.dll}},v={};function t(n){var s=v[n];if(s!==void 0)return s.exports;var a=v[n]={id:n,exports:{}};return Z[n](a,a.exports,t),a.exports}t.n=n=>{var s=n&&n.__esModule?()=>n.default:()=>n;return t.d(s,{a:s}),s},t.d=(n,s)=>{for(var a in s)t.o(s,a)&&!t.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:s[a]})},t.o=(n,s)=>Object.prototype.hasOwnProperty.call(n,s),t.r=n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.nc=void 0;var r={};(()=>{"use strict";t.r(r),t.d(r,{SourceEditing:()=>w});var n=t(704),s=t(273),a=t(209);function c(F){const U=[{name:"address",isVoid:!1},{name:"article",isVoid:!1},{name:"aside",isVoid:!1},{name:"blockquote",isVoid:!1},{name:"br",isVoid:!0},{name:"details",isVoid:!1},{name:"dialog",isVoid:!1},{name:"dd",isVoid:!1},{name:"div",isVoid:!1},{name:"dl",isVoid:!1},{name:"dt",isVoid:!1},{name:"fieldset",isVoid:!1},{name:"figcaption",isVoid:!1},{name:"figure",isVoid:!1},{name:"footer",isVoid:!1},{name:"form",isVoid:!1},{name:"h1",isVoid:!1},{name:"h2",isVoid:!1},{name:"h3",isVoid:!1},{name:"h4",isVoid:!1},{name:"h5",isVoid:!1},{name:"h6",isVoid:!1},{name:"header",isVoid:!1},{name:"hgroup",isVoid:!1},{name:"hr",isVoid:!0},{name:"input",isVoid:!0},{name:"li",isVoid:!1},{name:"main",isVoid:!1},{name:"nav",isVoid:!1},{name:"ol",isVoid:!1},{name:"p",isVoid:!1},{name:"section",isVoid:!1},{name:"table",isVoid:!1},{name:"tbody",isVoid:!1},{name:"td",isVoid:!1},{name:"textarea",isVoid:!1},{name:"th",isVoid:!1},{name:"thead",isVoid:!1},{name:"tr",isVoid:!1},{name:"ul",isVoid:!1}],B=U.map(x=>x.name).join("|"),N=F.replace(new RegExp(`</?(${B})( .*?)?>`,"g"),`
$&
`).split(`
`);let D=0;return N.filter(x=>x.length).map(x=>function(T,u){return u.some(b=>!b.isVoid&&!!new RegExp(`<${b.name}( .*?)?>`).test(T))}(x,U)?h(x,D++):function(T,u){return u.some(b=>new RegExp(`</${b.name}>`).test(T))}(x,U)?h(x,--D):h(x,D)).join(`
`)}function h(F,U,B="    "){return`${B.repeat(Math.max(0,U))}${F}`}var p=t(62),d=t.n(p),k=t(821),M={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};d()(k.Z,M),k.Z.locals;const C="SourceEditingMode";class w extends n.Plugin{static get pluginName(){return"SourceEditing"}static get requires(){return[n.PendingActions]}constructor(U){super(U),this.set("isSourceEditingMode",!1),this._elementReplacer=new a.ElementReplacer,this._replacedRoots=new Map,this._dataFromRoots=new Map}init(){const U=this.editor,B=U.t;U.ui.componentFactory.add("sourceEditing",N=>{const D=new s.ButtonView(N);return D.set({label:B("Source"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m12.5 0 5 4.5v15.003h-16V0h11zM3 1.5v3.25l-1.497 1-.003 8 1.5 1v3.254L7.685 18l-.001 1.504H17.5V8.002L16 9.428l-.004-4.22-4.222-3.692L3 1.5z"/><path d="M4.06 6.64a.75.75 0 0 1 .958 1.15l-.085.07L2.29 9.75l2.646 1.89c.302.216.4.62.232.951l-.058.095a.75.75 0 0 1-.951.232l-.095-.058-3.5-2.5V9.14l3.496-2.5zm4.194 6.22a.75.75 0 0 1-.958-1.149l.085-.07 2.643-1.89-2.646-1.89a.75.75 0 0 1-.232-.952l.058-.095a.75.75 0 0 1 .95-.232l.096.058 3.5 2.5v1.22l-3.496 2.5zm7.644-.836 2.122 2.122-5.825 5.809-2.125-.005.003-2.116zm2.539-1.847 1.414 1.414a.5.5 0 0 1 0 .707l-1.06 1.06-2.122-2.12 1.061-1.061a.5.5 0 0 1 .707 0z"/></svg>',tooltip:!0,withText:!0,class:"ck-source-editing-button"}),D.bind("isOn").to(this,"isSourceEditingMode"),D.bind("isEnabled").to(this,"isEnabled",U,"isReadOnly",U.plugins.get(n.PendingActions),"hasAny",(x,T,u)=>!!x&&!T&&!u),this.listenTo(D,"execute",()=>{this.isSourceEditingMode=!this.isSourceEditingMode}),D}),this._isAllowedToHandleSourceEditingMode()&&(this.on("change:isSourceEditingMode",(N,D,x)=>{x?(this._showSourceEditing(),this._disableCommands()):(this._hideSourceEditing(),this._enableCommands())}),this.on("change:isEnabled",(N,D,x)=>this._handleReadOnlyMode(!x)),this.listenTo(U,"change:isReadOnly",(N,D,x)=>this._handleReadOnlyMode(x))),U.data.on("get",()=>{this.isSourceEditingMode&&this._updateEditorData()},{priority:"high"})}afterInit(){const U=this.editor;["RealTimeCollaborativeEditing","CommentsEditing","TrackChangesEditing","RevisionHistory"].some(B=>U.plugins.has(B))&&console.warn("You initialized the editor with the source editing feature and at least one of the collaboration features. Please be advised that the source editing feature may not work, and be careful when editing document source that contains markers created by the collaboration features."),U.plugins.has("RestrictedEditingModeEditing")&&console.warn("You initialized the editor with the source editing feature and restricted editing feature. Please be advised that the source editing feature may not work, and be careful when editing document source that contains markers created by the restricted editing feature.")}_showSourceEditing(){const U=this.editor,B=U.editing.view,N=U.model;N.change(D=>{D.setSelection(null),D.removeSelectionAttribute(N.document.selection.getAttributeKeys())});for(const[D,x]of B.domRoots){const T=I(U.data.get({rootName:D})),u=(0,a.createElement)(x.ownerDocument,"textarea",{rows:"1","aria-label":"Source code editing area"}),b=(0,a.createElement)(x.ownerDocument,"div",{class:"ck-source-editing-area","data-value":T},[u]);u.value=T,u.setSelectionRange(0,0),u.addEventListener("input",()=>{b.dataset.value=u.value}),B.change(E=>{const A=B.document.getRoot(D);E.addClass("ck-hidden",A)}),U.ui.setEditableElement("sourceEditing:"+D,u),this._replacedRoots.set(D,b),this._elementReplacer.replace(x,b),this._dataFromRoots.set(D,T)}this._focusSourceEditing()}_hideSourceEditing(){const U=this.editor.editing.view;this._updateEditorData(),U.change(B=>{for(const[N]of this._replacedRoots)B.removeClass("ck-hidden",U.document.getRoot(N))}),this._elementReplacer.restore(),this._replacedRoots.clear(),this._dataFromRoots.clear(),U.focus()}_updateEditorData(){const U=this.editor,B={};for(const[N,D]of this._replacedRoots){const x=this._dataFromRoots.get(N),T=D.dataset.value;x!==T&&(B[N]=T)}Object.keys(B).length&&U.data.set(B,{batchType:{isUndoable:!0}})}_focusSourceEditing(){const U=this.editor,[B]=this._replacedRoots.values(),N=B.querySelector("textarea");U.editing.view.document.isFocused=!1,N.focus()}_disableCommands(){const U=this.editor;for(const B of U.commands.commands())B.forceDisabled(C)}_enableCommands(){const U=this.editor;for(const B of U.commands.commands())B.clearForceDisabled(C)}_handleReadOnlyMode(U){if(this.isSourceEditingMode)for(const[,B]of this._replacedRoots)B.querySelector("textarea").readOnly=U}_isAllowedToHandleSourceEditingMode(){const U=this.editor.ui.view.editable;return U&&!U._hasExternalElement}}function I(F){return function(U){return U.startsWith("<")}(F)?c(F):F}})(),(window.CKEditor5=window.CKEditor5||{}).sourceEditing=r})()},51207:()=>{(function(Z){const v=Z.en=Z.en||{};v.dictionary=Object.assign(v.dictionary||{},{All:"All","Almost equal to":"Almost equal to",Angle:"Angle","Approximately equal to":"Approximately equal to",Arrows:"Arrows","Asterisk operator":"Asterisk operator","Austral sign":"Austral sign","back with leftwards arrow above":"back with leftwards arrow above","Bitcoin sign":"Bitcoin sign","Cedi sign":"Cedi sign","Cent sign":"Cent sign","Character categories":"Character categories","Colon sign":"Colon sign","Contains as member":"Contains as member","Copyright sign":"Copyright sign","Cruzeiro sign":"Cruzeiro sign",Currency:"Currency","Currency sign":"Currency sign","Degree sign":"Degree sign","Division sign":"Division sign","Dollar sign":"Dollar sign","Dong sign":"Dong sign","Double dagger":"Double dagger","Double exclamation mark":"Double exclamation mark","Double low-9 quotation mark":"Double low-9 quotation mark","Double question mark":"Double question mark","downwards arrow to bar":"downwards arrow to bar","downwards dashed arrow":"downwards dashed arrow","downwards double arrow":"downwards double arrow","downwards simple arrow":"downwards simple arrow","Drachma sign":"Drachma sign","Element of":"Element of","Em dash":"Em dash","Empty set":"Empty set","En dash":"En dash","end with leftwards arrow above":"end with leftwards arrow above","Euro sign":"Euro sign","Euro-currency sign":"Euro-currency sign","Exclamation question mark":"Exclamation question mark","For all":"For all","Fraction slash":"Fraction slash","French franc sign":"French franc sign","German penny sign":"German penny sign","Greater-than or equal to":"Greater-than or equal to","Greater-than sign":"Greater-than sign","Guarani sign":"Guarani sign","Horizontal ellipsis":"Horizontal ellipsis","Hryvnia sign":"Hryvnia sign","Identical to":"Identical to","Indian rupee sign":"Indian rupee sign",Infinity:"Infinity",Integral:"Integral",Intersection:"Intersection","Inverted exclamation mark":"Inverted exclamation mark","Inverted question mark":"Inverted question mark","Kip sign":"Kip sign",Latin:"Latin","Latin capital letter a with breve":"Latin capital letter a with breve","Latin capital letter a with macron":"Latin capital letter a with macron","Latin capital letter a with ogonek":"Latin capital letter a with ogonek","Latin capital letter c with acute":"Latin capital letter c with acute","Latin capital letter c with caron":"Latin capital letter c with caron","Latin capital letter c with circumflex":"Latin capital letter c with circumflex","Latin capital letter c with dot above":"Latin capital letter c with dot above","Latin capital letter d with caron":"Latin capital letter d with caron","Latin capital letter d with stroke":"Latin capital letter d with stroke","Latin capital letter e with breve":"Latin capital letter e with breve","Latin capital letter e with caron":"Latin capital letter e with caron","Latin capital letter e with dot above":"Latin capital letter e with dot above","Latin capital letter e with macron":"Latin capital letter e with macron","Latin capital letter e with ogonek":"Latin capital letter e with ogonek","Latin capital letter eng":"Latin capital letter eng","Latin capital letter g with breve":"Latin capital letter g with breve","Latin capital letter g with cedilla":"Latin capital letter g with cedilla","Latin capital letter g with circumflex":"Latin capital letter g with circumflex","Latin capital letter g with dot above":"Latin capital letter g with dot above","Latin capital letter h with circumflex":"Latin capital letter h with circumflex","Latin capital letter h with stroke":"Latin capital letter h with stroke","Latin capital letter i with breve":"Latin capital letter i with breve","Latin capital letter i with dot above":"Latin capital letter i with dot above","Latin capital letter i with macron":"Latin capital letter i with macron","Latin capital letter i with ogonek":"Latin capital letter i with ogonek","Latin capital letter i with tilde":"Latin capital letter i with tilde","Latin capital letter j with circumflex":"Latin capital letter j with circumflex","Latin capital letter k with cedilla":"Latin capital letter k with cedilla","Latin capital letter l with acute":"Latin capital letter l with acute","Latin capital letter l with caron":"Latin capital letter l with caron","Latin capital letter l with cedilla":"Latin capital letter l with cedilla","Latin capital letter l with middle dot":"Latin capital letter l with middle dot","Latin capital letter l with stroke":"Latin capital letter l with stroke","Latin capital letter n with acute":"Latin capital letter n with acute","Latin capital letter n with caron":"Latin capital letter n with caron","Latin capital letter n with cedilla":"Latin capital letter n with cedilla","Latin capital letter o with breve":"Latin capital letter o with breve","Latin capital letter o with double acute":"Latin capital letter o with double acute","Latin capital letter o with macron":"Latin capital letter o with macron","Latin capital letter r with acute":"Latin capital letter r with acute","Latin capital letter r with caron":"Latin capital letter r with caron","Latin capital letter r with cedilla":"Latin capital letter r with cedilla","Latin capital letter s with acute":"Latin capital letter s with acute","Latin capital letter s with caron":"Latin capital letter s with caron","Latin capital letter s with cedilla":"Latin capital letter s with cedilla","Latin capital letter s with circumflex":"Latin capital letter s with circumflex","Latin capital letter t with caron":"Latin capital letter t with caron","Latin capital letter t with cedilla":"Latin capital letter t with cedilla","Latin capital letter t with stroke":"Latin capital letter t with stroke","Latin capital letter u with breve":"Latin capital letter u with breve","Latin capital letter u with double acute":"Latin capital letter u with double acute","Latin capital letter u with macron":"Latin capital letter u with macron","Latin capital letter u with ogonek":"Latin capital letter u with ogonek","Latin capital letter u with ring above":"Latin capital letter u with ring above","Latin capital letter u with tilde":"Latin capital letter u with tilde","Latin capital letter w with circumflex":"Latin capital letter w with circumflex","Latin capital letter y with circumflex":"Latin capital letter y with circumflex","Latin capital letter y with diaeresis":"Latin capital letter y with diaeresis","Latin capital letter z with acute":"Latin capital letter z with acute","Latin capital letter z with caron":"Latin capital letter z with caron","Latin capital letter z with dot above":"Latin capital letter z with dot above","Latin capital ligature ij":"Latin capital ligature ij","Latin capital ligature oe":"Latin capital ligature oe","Latin small letter a with breve":"Latin small letter a with breve","Latin small letter a with macron":"Latin small letter a with macron","Latin small letter a with ogonek":"Latin small letter a with ogonek","Latin small letter c with acute":"Latin small letter c with acute","Latin small letter c with caron":"Latin small letter c with caron","Latin small letter c with circumflex":"Latin small letter c with circumflex","Latin small letter c with dot above":"Latin small letter c with dot above","Latin small letter d with caron":"Latin small letter d with caron","Latin small letter d with stroke":"Latin small letter d with stroke","Latin small letter dotless i":"Latin small letter dotless i","Latin small letter e with breve":"Latin small letter e with breve","Latin small letter e with caron":"Latin small letter e with caron","Latin small letter e with dot above":"Latin small letter e with dot above","Latin small letter e with macron":"Latin small letter e with macron","Latin small letter e with ogonek":"Latin small letter e with ogonek","Latin small letter eng":"Latin small letter eng","Latin small letter f with hook":"Latin small letter f with hook","Latin small letter g with breve":"Latin small letter g with breve","Latin small letter g with cedilla":"Latin small letter g with cedilla","Latin small letter g with circumflex":"Latin small letter g with circumflex","Latin small letter g with dot above":"Latin small letter g with dot above","Latin small letter h with circumflex":"Latin small letter h with circumflex","Latin small letter h with stroke":"Latin small letter h with stroke","Latin small letter i with breve":"Latin small letter i with breve","Latin small letter i with macron":"Latin small letter i with macron","Latin small letter i with ogonek":"Latin small letter i with ogonek","Latin small letter i with tilde":"Latin small letter i with tilde","Latin small letter j with circumflex":"Latin small letter j with circumflex","Latin small letter k with cedilla":"Latin small letter k with cedilla","Latin small letter kra":"Latin small letter kra","Latin small letter l with acute":"Latin small letter l with acute","Latin small letter l with caron":"Latin small letter l with caron","Latin small letter l with cedilla":"Latin small letter l with cedilla","Latin small letter l with middle dot":"Latin small letter l with middle dot","Latin small letter l with stroke":"Latin small letter l with stroke","Latin small letter long s":"Latin small letter long s","Latin small letter n preceded by apostrophe":"Latin small letter n preceded by apostrophe","Latin small letter n with acute":"Latin small letter n with acute","Latin small letter n with caron":"Latin small letter n with caron","Latin small letter n with cedilla":"Latin small letter n with cedilla","Latin small letter o with breve":"Latin small letter o with breve","Latin small letter o with double acute":"Latin small letter o with double acute","Latin small letter o with macron":"Latin small letter o with macron","Latin small letter r with acute":"Latin small letter r with acute","Latin small letter r with caron":"Latin small letter r with caron","Latin small letter r with cedilla":"Latin small letter r with cedilla","Latin small letter s with acute":"Latin small letter s with acute","Latin small letter s with caron":"Latin small letter s with caron","Latin small letter s with cedilla":"Latin small letter s with cedilla","Latin small letter s with circumflex":"Latin small letter s with circumflex","Latin small letter t with caron":"Latin small letter t with caron","Latin small letter t with cedilla":"Latin small letter t with cedilla","Latin small letter t with stroke":"Latin small letter t with stroke","Latin small letter u with breve":"Latin small letter u with breve","Latin small letter u with double acute":"Latin small letter u with double acute","Latin small letter u with macron":"Latin small letter u with macron","Latin small letter u with ogonek":"Latin small letter u with ogonek","Latin small letter u with ring above":"Latin small letter u with ring above","Latin small letter u with tilde":"Latin small letter u with tilde","Latin small letter w with circumflex":"Latin small letter w with circumflex","Latin small letter y with circumflex":"Latin small letter y with circumflex","Latin small letter z with acute":"Latin small letter z with acute","Latin small letter z with caron":"Latin small letter z with caron","Latin small letter z with dot above":"Latin small letter z with dot above","Latin small ligature ij":"Latin small ligature ij","Latin small ligature oe":"Latin small ligature oe","Left double quotation mark":"Left double quotation mark","Left single quotation mark":"Left single quotation mark","Left-pointing double angle quotation mark":"Left-pointing double angle quotation mark","leftwards arrow to bar":"leftwards arrow to bar","leftwards dashed arrow":"leftwards dashed arrow","leftwards double arrow":"leftwards double arrow","leftwards simple arrow":"leftwards simple arrow","Less-than or equal to":"Less-than or equal to","Less-than sign":"Less-than sign","Lira sign":"Lira sign","Livre tournois sign":"Livre tournois sign","Logical and":"Logical and","Logical or":"Logical or",Macron:"Macron","Manat sign":"Manat sign",Mathematical:"Mathematical","Mill sign":"Mill sign","Minus sign":"Minus sign","Multiplication sign":"Multiplication sign","N-ary product":"N-ary product","N-ary summation":"N-ary summation",Nabla:"Nabla","Naira sign":"Naira sign","New sheqel sign":"New sheqel sign","Nordic mark sign":"Nordic mark sign","Not an element of":"Not an element of","Not equal to":"Not equal to","Not sign":"Not sign","on with exclamation mark with left right arrow above":"on with exclamation mark with left right arrow above",Overline:"Overline","Paragraph sign":"Paragraph sign","Partial differential":"Partial differential","Per mille sign":"Per mille sign","Per ten thousand sign":"Per ten thousand sign","Peseta sign":"Peseta sign","Peso sign":"Peso sign","Plus-minus sign":"Plus-minus sign","Pound sign":"Pound sign","Proportional to":"Proportional to","Question exclamation mark":"Question exclamation mark","Registered sign":"Registered sign","Reversed paragraph sign":"Reversed paragraph sign","Right double quotation mark":"Right double quotation mark","Right single quotation mark":"Right single quotation mark","Right-pointing double angle quotation mark":"Right-pointing double angle quotation mark","rightwards arrow to bar":"rightwards arrow to bar","rightwards dashed arrow":"rightwards dashed arrow","rightwards double arrow":"rightwards double arrow","rightwards simple arrow":"rightwards simple arrow","Ruble sign":"Ruble sign","Rupee sign":"Rupee sign","Section sign":"Section sign","Single left-pointing angle quotation mark":"Single left-pointing angle quotation mark","Single low-9 quotation mark":"Single low-9 quotation mark","Single right-pointing angle quotation mark":"Single right-pointing angle quotation mark","soon with rightwards arrow above":"soon with rightwards arrow above","Special characters":"Special characters","Spesmilo sign":"Spesmilo sign","Square root":"Square root","Tenge sign":"Tenge sign",Text:"Text","There exists":"There exists","Tilde operator":"Tilde operator","top with upwards arrow above":"top with upwards arrow above","Trade mark sign":"Trade mark sign","Tugrik sign":"Tugrik sign","Turkish lira sign":"Turkish lira sign","Two dot leader":"Two dot leader",Union:"Union","up down arrow with base":"up down arrow with base","upwards arrow to bar":"upwards arrow to bar","upwards dashed arrow":"upwards dashed arrow","upwards double arrow":"upwards double arrow","upwards simple arrow":"upwards simple arrow","Vulgar fraction one half":"Vulgar fraction one half","Vulgar fraction one quarter":"Vulgar fraction one quarter","Vulgar fraction three quarters":"Vulgar fraction three quarters","Won sign":"Won sign","Yen sign":"Yen sign"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),(()=>{var Z={395:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,".ck.ck-character-grid{max-width:100%}.ck.ck-character-grid .ck-character-grid__tiles{display:grid}:root{--ck-character-grid-tile-size:24px}.ck.ck-character-grid{max-height:200px;overflow-x:hidden;overflow-y:auto;width:350px}@media screen and (max-width:600px){.ck.ck-character-grid{width:190px}}.ck.ck-character-grid .ck-character-grid__tiles{grid-gap:var(--ck-spacing-standard);grid-template-columns:repeat(10,1fr);margin:var(--ck-spacing-standard) var(--ck-spacing-large)}@media screen and (max-width:600px){.ck.ck-character-grid .ck-character-grid__tiles{grid-template-columns:repeat(5,1fr)}}.ck.ck-character-grid .ck-character-grid__tile{border:0;font-size:1.2em;height:var(--ck-character-grid-tile-size);min-height:var(--ck-character-grid-tile-size);min-width:var(--ck-character-grid-tile-size);padding:0;transition:box-shadow .2s ease;width:var(--ck-character-grid-tile-size)}.ck.ck-character-grid .ck-character-grid__tile:focus:not(.ck-disabled),.ck.ck-character-grid .ck-character-grid__tile:hover:not(.ck-disabled){border:0;box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-character-grid .ck-character-grid__tile .ck-button__label{line-height:var(--ck-character-grid-tile-size);text-align:center;width:100%}",""]);const p=h},198:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,".ck.ck-character-info{border-top:1px solid var(--ck-color-base-border);display:flex;justify-content:space-between;padding:var(--ck-spacing-small) var(--ck-spacing-large)}.ck.ck-character-info>*{font-size:var(--ck-font-size-small);text-transform:uppercase}.ck.ck-character-info .ck-character-info__name{max-width:280px;overflow:hidden;text-overflow:ellipsis}.ck.ck-character-info .ck-character-info__code{opacity:.6}@media screen and (max-width:600px){.ck.ck-character-info{max-width:190px}}",""]);const p=h},454:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,".ck.ck-special-characters-navigation>.ck-label{max-width:160px;overflow:hidden;text-overflow:ellipsis}.ck.ck-special-characters-navigation>.ck-dropdown .ck-dropdown__panel{max-height:250px;overflow-x:hidden;overflow-y:auto}@media screen and (max-width:600px){.ck.ck-special-characters-navigation{max-width:190px}.ck.ck-special-characters-navigation>.ck-form__header__label{overflow:hidden;text-overflow:ellipsis}}",""]);const p=h},609:n=>{"use strict";n.exports=function(s){var a=[];return a.toString=function(){return this.map(function(c){var h=s(c);return c[2]?"@media ".concat(c[2]," {").concat(h,"}"):h}).join("")},a.i=function(c,h,p){typeof c=="string"&&(c=[[null,c,""]]);var d={};if(p)for(var k=0;k<this.length;k++){var M=this[k][0];M!=null&&(d[M]=!0)}for(var C=0;C<c.length;C++){var w=[].concat(c[C]);p&&d[w[0]]||(h&&(w[2]?w[2]="".concat(h," and ").concat(w[2]):w[2]=h),a.push(w))}},a}},62:(n,s,a)=>{"use strict";var c,h=function(){return c===void 0&&(c=Boolean(window&&document&&document.all&&!window.atob)),c},p=function(){var x={};return function(T){if(x[T]===void 0){var u=document.querySelector(T);if(window.HTMLIFrameElement&&u instanceof window.HTMLIFrameElement)try{u=u.contentDocument.head}catch{u=null}x[T]=u}return x[T]}}(),d=[];function k(x){for(var T=-1,u=0;u<d.length;u++)if(d[u].identifier===x){T=u;break}return T}function M(x,T){for(var u={},b=[],E=0;E<x.length;E++){var A=x[E],R=T.base?A[0]+T.base:A[0],H=u[R]||0,z="".concat(R," ").concat(H);u[R]=H+1;var V=k(z),$={css:A[1],media:A[2],sourceMap:A[3]};V!==-1?(d[V].references++,d[V].updater($)):d.push({identifier:z,updater:D($,T),references:1}),b.push(z)}return b}function C(x){var T=document.createElement("style"),u=x.attributes||{};if(u.nonce===void 0){var b=a.nc;b&&(u.nonce=b)}if(Object.keys(u).forEach(function(A){T.setAttribute(A,u[A])}),typeof x.insert=="function")x.insert(T);else{var E=p(x.insert||"head");if(!E)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");E.appendChild(T)}return T}var w,I=(w=[],function(x,T){return w[x]=T,w.filter(Boolean).join(`
`)});function F(x,T,u,b){var E=u?"":b.media?"@media ".concat(b.media," {").concat(b.css,"}"):b.css;if(x.styleSheet)x.styleSheet.cssText=I(T,E);else{var A=document.createTextNode(E),R=x.childNodes;R[T]&&x.removeChild(R[T]),R.length?x.insertBefore(A,R[T]):x.appendChild(A)}}function U(x,T,u){var b=u.css,E=u.media,A=u.sourceMap;if(E?x.setAttribute("media",E):x.removeAttribute("media"),A&&typeof btoa<"u"&&(b+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(A))))," */")),x.styleSheet)x.styleSheet.cssText=b;else{for(;x.firstChild;)x.removeChild(x.firstChild);x.appendChild(document.createTextNode(b))}}var B=null,N=0;function D(x,T){var u,b,E;if(T.singleton){var A=N++;u=B||(B=C(T)),b=F.bind(null,u,A,!1),E=F.bind(null,u,A,!0)}else u=C(T),b=U.bind(null,u,T),E=function(){(function(R){if(R.parentNode===null)return!1;R.parentNode.removeChild(R)})(u)};return b(x),function(R){if(R){if(R.css===x.css&&R.media===x.media&&R.sourceMap===x.sourceMap)return;b(x=R)}else E()}}n.exports=function(x,T){(T=T||{}).singleton||typeof T.singleton=="boolean"||(T.singleton=h());var u=M(x=x||[],T);return function(b){if(b=b||[],Object.prototype.toString.call(b)==="[object Array]"){for(var E=0;E<u.length;E++){var A=k(u[E]);d[A].references--}for(var R=M(b,T),H=0;H<u.length;H++){var z=k(u[H]);d[z].references===0&&(d[z].updater(),d.splice(z,1))}u=R}}}},704:(n,s,a)=>{n.exports=a(79)("./src/core.js")},181:(n,s,a)=>{n.exports=a(79)("./src/typing.js")},273:(n,s,a)=>{n.exports=a(79)("./src/ui.js")},209:(n,s,a)=>{n.exports=a(79)("./src/utils.js")},79:n=>{"use strict";n.exports=CKEditor5.dll}},v={};function t(n){var s=v[n];if(s!==void 0)return s.exports;var a=v[n]={id:n,exports:{}};return Z[n](a,a.exports,t),a.exports}t.n=n=>{var s=n&&n.__esModule?()=>n.default:()=>n;return t.d(s,{a:s}),s},t.d=(n,s)=>{for(var a in s)t.o(s,a)&&!t.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:s[a]})},t.o=(n,s)=>Object.prototype.hasOwnProperty.call(n,s),t.r=n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.nc=void 0;var r={};(()=>{"use strict";t.r(r),t.d(r,{SpecialCharacters:()=>T,SpecialCharactersArrows:()=>u,SpecialCharactersCurrency:()=>R,SpecialCharactersEssentials:()=>H,SpecialCharactersLatin:()=>A,SpecialCharactersMathematical:()=>E,SpecialCharactersText:()=>b});var n=t(704),s=t(181),a=t(273),c=t(209);class h extends a.FormHeaderView{constructor(V,$){super(V);const ee=V.t;this.set("class","ck-special-characters-navigation"),this.groupDropdownView=this._createGroupDropdown($),this.groupDropdownView.panelPosition=V.uiLanguageDirection==="rtl"?"se":"sw",this.label=ee("Special characters"),this.children.add(this.groupDropdownView)}get currentGroupName(){return this.groupDropdownView.value}focus(){this.groupDropdownView.focus()}_createGroupDropdown(V){const $=this.locale,ee=$.t,q=(0,a.createDropdown)($),oe=this._getCharacterGroupListItemDefinitions(q,V);return q.set("value",oe.first.model.name),q.buttonView.bind("label").to(q,"value",X=>V.get(X)),q.buttonView.set({isOn:!1,withText:!0,tooltip:ee("Character categories"),class:["ck-dropdown__button_label-width_auto"]}),q.on("execute",X=>{q.value=X.source.name}),q.delegate("execute").to(this),(0,a.addListToDropdown)(q,oe),q}_getCharacterGroupListItemDefinitions(V,$){const ee=new c.Collection;for(const[q,oe]of $){const X={type:"button",model:new a.Model({name:q,label:oe,withText:!0})};X.model.bind("isOn").to(V,"value",pe=>pe===X.model.name),ee.add(X)}return ee}}var p=t(62),d=t.n(p),k=t(395),M={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};d()(k.Z,M),k.Z.locals;class C extends a.View{constructor(V){super(V),this.tiles=this.createCollection(),this.setTemplate({tag:"div",children:[{tag:"div",attributes:{class:["ck","ck-character-grid__tiles"]},children:this.tiles}],attributes:{class:["ck","ck-character-grid"]}}),this.focusTracker=new c.FocusTracker,this.keystrokes=new c.KeystrokeHandler,(0,a.addKeyboardHandlingForGrid)({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.tiles,numberOfColumns:()=>c.global.window.getComputedStyle(this.element.firstChild).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}createTile(V,$){const ee=new a.ButtonView(this.locale);return ee.set({label:V,withText:!0,class:"ck-character-grid__tile"}),ee.extendTemplate({attributes:{title:$},on:{mouseover:ee.bindTemplate.to("mouseover"),focus:ee.bindTemplate.to("focus")}}),ee.on("mouseover",()=>{this.fire("tileHover",{name:$,character:V})}),ee.on("focus",()=>{this.fire("tileFocus",{name:$,character:V})}),ee.on("execute",()=>{this.fire("execute",{name:$,character:V})}),ee}render(){super.render();for(const V of this.tiles)this.focusTracker.add(V.element);this.tiles.on("change",(V,{added:$,removed:ee})=>{if($.length>0)for(const q of $)this.focusTracker.add(q.element);if(ee.length>0)for(const q of ee)this.focusTracker.remove(q.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.keystrokes.destroy()}focus(){this.tiles.get(0).focus()}}var w=t(198),I={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};d()(w.Z,I),w.Z.locals;class F extends a.View{constructor(V){super(V);const $=this.bindTemplate;this.set("character",null),this.set("name",null),this.bind("code").to(this,"character",U),this.setTemplate({tag:"div",children:[{tag:"span",attributes:{class:["ck-character-info__name"]},children:[{text:$.to("name",ee=>ee||"\u200B")}]},{tag:"span",attributes:{class:["ck-character-info__code"]},children:[{text:$.to("code")}]}],attributes:{class:["ck","ck-character-info"]}})}}function U(z){return z===null?"":"U+"+("0000"+z.codePointAt(0).toString(16)).slice(-4)}class B extends a.View{constructor(V,$,ee,q){super(V),this.items=this.createCollection(),this.focusTracker=new c.FocusTracker,this.keystrokes=new c.KeystrokeHandler,this._focusCycler=new a.FocusCycler({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.navigationView=$,this.gridView=ee,this.infoView=q,this.setTemplate({tag:"div",children:[this.navigationView,this.gridView,this.infoView],attributes:{tabindex:"-1"}}),this.items.add(this.navigationView.groupDropdownView.buttonView),this.items.add(this.gridView)}render(){super.render(),this.focusTracker.add(this.navigationView.groupDropdownView.buttonView.element),this.focusTracker.add(this.gridView.element),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.navigationView.focus()}}var N=t(454),D={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};d()(N.Z,D),N.Z.locals;const x="All";class T extends n.Plugin{static get requires(){return[s.Typing]}static get pluginName(){return"SpecialCharacters"}constructor(V){super(V);const $=V.t;this._characters=new Map,this._groups=new Map,this._allSpecialCharactersGroupLabel=$("All")}init(){const V=this.editor,$=V.t,ee=V.commands.get("input");V.ui.componentFactory.add("specialCharacters",q=>{const oe=(0,a.createDropdown)(q);let X;return oe.buttonView.set({label:$("Special characters"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 2.5a7.47 7.47 0 0 1 4.231 1.31 7.268 7.268 0 0 1 2.703 3.454 7.128 7.128 0 0 1 .199 4.353c-.39 1.436-1.475 2.72-2.633 3.677h2.013c0-.226.092-.443.254-.603a.876.876 0 0 1 1.229 0c.163.16.254.377.254.603v.853c0 .209-.078.41-.22.567a.873.873 0 0 1-.547.28l-.101.006h-4.695a.517.517 0 0 1-.516-.518v-1.265c0-.21.128-.398.317-.489a5.601 5.601 0 0 0 2.492-2.371 5.459 5.459 0 0 0 .552-3.693 5.53 5.53 0 0 0-1.955-3.2A5.71 5.71 0 0 0 10 4.206 5.708 5.708 0 0 0 6.419 5.46 5.527 5.527 0 0 0 4.46 8.663a5.457 5.457 0 0 0 .554 3.695 5.6 5.6 0 0 0 2.497 2.37.55.55 0 0 1 .317.49v1.264c0 .286-.23.518-.516.518H2.618a.877.877 0 0 1-.614-.25.845.845 0 0 1-.254-.603v-.853c0-.226.091-.443.254-.603a.876.876 0 0 1 1.228 0c.163.16.255.377.255.603h1.925c-1.158-.958-2.155-2.241-2.545-3.678a7.128 7.128 0 0 1 .199-4.352 7.268 7.268 0 0 1 2.703-3.455A7.475 7.475 0 0 1 10 2.5z"/></svg>',tooltip:!0}),oe.bind("isEnabled").to(ee),oe.on("execute",(pe,Ie)=>{V.execute("insertText",{text:Ie.character}),V.editing.view.focus()}),oe.on("change:isOpen",()=>{if(!X){X=this._createDropdownPanelContent(q,oe);const pe=new B(q,X.navigationView,X.gridView,X.infoView);oe.panelView.children.add(pe)}X.infoView.set({character:null,name:null})}),oe})}addItems(V,$,ee={label:V}){if(V===x)throw new c.CKEditorError("special-character-invalid-group-name",null);const q=this._getGroup(V,ee.label);for(const oe of $)q.items.add(oe.title),this._characters.set(oe.title,oe.character)}getGroups(){const V=Array.from(this._groups.keys()),$=this.editor.config.get("specialCharacters.order")||[],ee=$.find(q=>!V.includes(q));if(ee)throw new c.CKEditorError("special-character-invalid-order-group-name",null,{invalidGroup:ee});return new Set([...$,...V])}getCharactersForGroup(V){if(V===x)return new Set(this._characters.keys());const $=this._groups.get(V);return $?$.items:void 0}getCharacter(V){return this._characters.get(V)}_getGroup(V,$){return this._groups.has(V)||this._groups.set(V,{items:new Set,label:$}),this._groups.get(V)}_updateGrid(V,$){$.tiles.clear();const ee=this.getCharactersForGroup(V);for(const q of ee){const oe=this.getCharacter(q);$.tiles.add($.createTile(oe,q))}}_createDropdownPanelContent(V,$){const ee=new Map([[x,this._allSpecialCharactersGroupLabel],...Array.from(this.getGroups()).map(pe=>[pe,this._groups.get(pe).label])]),q=new h(V,ee),oe=new C(V),X=new F(V);return oe.delegate("execute").to($),oe.on("tileHover",(pe,Ie)=>{X.set(Ie)}),oe.on("tileFocus",(pe,Ie)=>{X.set(Ie)}),q.on("execute",()=>{this._updateGrid(q.currentGroupName,oe)}),this._updateGrid(q.currentGroupName,oe),{navigationView:q,gridView:oe,infoView:X}}}class u extends n.Plugin{static get pluginName(){return"SpecialCharactersArrows"}init(){const V=this.editor,$=V.t;V.plugins.get("SpecialCharacters").addItems("Arrows",[{title:$("leftwards simple arrow"),character:"\u2190"},{title:$("rightwards simple arrow"),character:"\u2192"},{title:$("upwards simple arrow"),character:"\u2191"},{title:$("downwards simple arrow"),character:"\u2193"},{title:$("leftwards double arrow"),character:"\u21D0"},{title:$("rightwards double arrow"),character:"\u21D2"},{title:$("upwards double arrow"),character:"\u21D1"},{title:$("downwards double arrow"),character:"\u21D3"},{title:$("leftwards dashed arrow"),character:"\u21E0"},{title:$("rightwards dashed arrow"),character:"\u21E2"},{title:$("upwards dashed arrow"),character:"\u21E1"},{title:$("downwards dashed arrow"),character:"\u21E3"},{title:$("leftwards arrow to bar"),character:"\u21E4"},{title:$("rightwards arrow to bar"),character:"\u21E5"},{title:$("upwards arrow to bar"),character:"\u2912"},{title:$("downwards arrow to bar"),character:"\u2913"},{title:$("up down arrow with base"),character:"\u21A8"},{title:$("back with leftwards arrow above"),character:"\u{1F519}"},{title:$("end with leftwards arrow above"),character:"\u{1F51A}"},{title:$("on with exclamation mark with left right arrow above"),character:"\u{1F51B}"},{title:$("soon with rightwards arrow above"),character:"\u{1F51C}"},{title:$("top with upwards arrow above"),character:"\u{1F51D}"}],{label:$("Arrows")})}}class b extends n.Plugin{static get pluginName(){return"SpecialCharactersText"}init(){const V=this.editor,$=V.t;V.plugins.get("SpecialCharacters").addItems("Text",[{character:"\u2039",title:$("Single left-pointing angle quotation mark")},{character:"\u203A",title:$("Single right-pointing angle quotation mark")},{character:"\xAB",title:$("Left-pointing double angle quotation mark")},{character:"\xBB",title:$("Right-pointing double angle quotation mark")},{character:"\u2018",title:$("Left single quotation mark")},{character:"\u2019",title:$("Right single quotation mark")},{character:"\u201C",title:$("Left double quotation mark")},{character:"\u201D",title:$("Right double quotation mark")},{character:"\u201A",title:$("Single low-9 quotation mark")},{character:"\u201E",title:$("Double low-9 quotation mark")},{character:"\xA1",title:$("Inverted exclamation mark")},{character:"\xBF",title:$("Inverted question mark")},{character:"\u2025",title:$("Two dot leader")},{character:"\u2026",title:$("Horizontal ellipsis")},{character:"\u2021",title:$("Double dagger")},{character:"\u2030",title:$("Per mille sign")},{character:"\u2031",title:$("Per ten thousand sign")},{character:"\u203C",title:$("Double exclamation mark")},{character:"\u2048",title:$("Question exclamation mark")},{character:"\u2049",title:$("Exclamation question mark")},{character:"\u2047",title:$("Double question mark")},{character:"\xA9",title:$("Copyright sign")},{character:"\xAE",title:$("Registered sign")},{character:"\u2122",title:$("Trade mark sign")},{character:"\xA7",title:$("Section sign")},{character:"\xB6",title:$("Paragraph sign")},{character:"\u204B",title:$("Reversed paragraph sign")}],{label:$("Text")})}}class E extends n.Plugin{static get pluginName(){return"SpecialCharactersMathematical"}init(){const V=this.editor,$=V.t;V.plugins.get("SpecialCharacters").addItems("Mathematical",[{character:"<",title:$("Less-than sign")},{character:">",title:$("Greater-than sign")},{character:"\u2264",title:$("Less-than or equal to")},{character:"\u2265",title:$("Greater-than or equal to")},{character:"\u2013",title:$("En dash")},{character:"\u2014",title:$("Em dash")},{character:"\xAF",title:$("Macron")},{character:"\u203E",title:$("Overline")},{character:"\xB0",title:$("Degree sign")},{character:"\u2212",title:$("Minus sign")},{character:"\xB1",title:$("Plus-minus sign")},{character:"\xF7",title:$("Division sign")},{character:"\u2044",title:$("Fraction slash")},{character:"\xD7",title:$("Multiplication sign")},{character:"\u0192",title:$("Latin small letter f with hook")},{character:"\u222B",title:$("Integral")},{character:"\u2211",title:$("N-ary summation")},{character:"\u221E",title:$("Infinity")},{character:"\u221A",title:$("Square root")},{character:"\u223C",title:$("Tilde operator")},{character:"\u2245",title:$("Approximately equal to")},{character:"\u2248",title:$("Almost equal to")},{character:"\u2260",title:$("Not equal to")},{character:"\u2261",title:$("Identical to")},{character:"\u2208",title:$("Element of")},{character:"\u2209",title:$("Not an element of")},{character:"\u220B",title:$("Contains as member")},{character:"\u220F",title:$("N-ary product")},{character:"\u2227",title:$("Logical and")},{character:"\u2228",title:$("Logical or")},{character:"\xAC",title:$("Not sign")},{character:"\u2229",title:$("Intersection")},{character:"\u222A",title:$("Union")},{character:"\u2202",title:$("Partial differential")},{character:"\u2200",title:$("For all")},{character:"\u2203",title:$("There exists")},{character:"\u2205",title:$("Empty set")},{character:"\u2207",title:$("Nabla")},{character:"\u2217",title:$("Asterisk operator")},{character:"\u221D",title:$("Proportional to")},{character:"\u2220",title:$("Angle")},{character:"\xBC",title:$("Vulgar fraction one quarter")},{character:"\xBD",title:$("Vulgar fraction one half")},{character:"\xBE",title:$("Vulgar fraction three quarters")}],{label:$("Mathematical")})}}class A extends n.Plugin{static get pluginName(){return"SpecialCharactersLatin"}init(){const V=this.editor,$=V.t;V.plugins.get("SpecialCharacters").addItems("Latin",[{character:"\u0100",title:$("Latin capital letter a with macron")},{character:"\u0101",title:$("Latin small letter a with macron")},{character:"\u0102",title:$("Latin capital letter a with breve")},{character:"\u0103",title:$("Latin small letter a with breve")},{character:"\u0104",title:$("Latin capital letter a with ogonek")},{character:"\u0105",title:$("Latin small letter a with ogonek")},{character:"\u0106",title:$("Latin capital letter c with acute")},{character:"\u0107",title:$("Latin small letter c with acute")},{character:"\u0108",title:$("Latin capital letter c with circumflex")},{character:"\u0109",title:$("Latin small letter c with circumflex")},{character:"\u010A",title:$("Latin capital letter c with dot above")},{character:"\u010B",title:$("Latin small letter c with dot above")},{character:"\u010C",title:$("Latin capital letter c with caron")},{character:"\u010D",title:$("Latin small letter c with caron")},{character:"\u010E",title:$("Latin capital letter d with caron")},{character:"\u010F",title:$("Latin small letter d with caron")},{character:"\u0110",title:$("Latin capital letter d with stroke")},{character:"\u0111",title:$("Latin small letter d with stroke")},{character:"\u0112",title:$("Latin capital letter e with macron")},{character:"\u0113",title:$("Latin small letter e with macron")},{character:"\u0114",title:$("Latin capital letter e with breve")},{character:"\u0115",title:$("Latin small letter e with breve")},{character:"\u0116",title:$("Latin capital letter e with dot above")},{character:"\u0117",title:$("Latin small letter e with dot above")},{character:"\u0118",title:$("Latin capital letter e with ogonek")},{character:"\u0119",title:$("Latin small letter e with ogonek")},{character:"\u011A",title:$("Latin capital letter e with caron")},{character:"\u011B",title:$("Latin small letter e with caron")},{character:"\u011C",title:$("Latin capital letter g with circumflex")},{character:"\u011D",title:$("Latin small letter g with circumflex")},{character:"\u011E",title:$("Latin capital letter g with breve")},{character:"\u011F",title:$("Latin small letter g with breve")},{character:"\u0120",title:$("Latin capital letter g with dot above")},{character:"\u0121",title:$("Latin small letter g with dot above")},{character:"\u0122",title:$("Latin capital letter g with cedilla")},{character:"\u0123",title:$("Latin small letter g with cedilla")},{character:"\u0124",title:$("Latin capital letter h with circumflex")},{character:"\u0125",title:$("Latin small letter h with circumflex")},{character:"\u0126",title:$("Latin capital letter h with stroke")},{character:"\u0127",title:$("Latin small letter h with stroke")},{character:"\u0128",title:$("Latin capital letter i with tilde")},{character:"\u0129",title:$("Latin small letter i with tilde")},{character:"\u012A",title:$("Latin capital letter i with macron")},{character:"\u012B",title:$("Latin small letter i with macron")},{character:"\u012C",title:$("Latin capital letter i with breve")},{character:"\u012D",title:$("Latin small letter i with breve")},{character:"\u012E",title:$("Latin capital letter i with ogonek")},{character:"\u012F",title:$("Latin small letter i with ogonek")},{character:"\u0130",title:$("Latin capital letter i with dot above")},{character:"\u0131",title:$("Latin small letter dotless i")},{character:"\u0132",title:$("Latin capital ligature ij")},{character:"\u0133",title:$("Latin small ligature ij")},{character:"\u0134",title:$("Latin capital letter j with circumflex")},{character:"\u0135",title:$("Latin small letter j with circumflex")},{character:"\u0136",title:$("Latin capital letter k with cedilla")},{character:"\u0137",title:$("Latin small letter k with cedilla")},{character:"\u0138",title:$("Latin small letter kra")},{character:"\u0139",title:$("Latin capital letter l with acute")},{character:"\u013A",title:$("Latin small letter l with acute")},{character:"\u013B",title:$("Latin capital letter l with cedilla")},{character:"\u013C",title:$("Latin small letter l with cedilla")},{character:"\u013D",title:$("Latin capital letter l with caron")},{character:"\u013E",title:$("Latin small letter l with caron")},{character:"\u013F",title:$("Latin capital letter l with middle dot")},{character:"\u0140",title:$("Latin small letter l with middle dot")},{character:"\u0141",title:$("Latin capital letter l with stroke")},{character:"\u0142",title:$("Latin small letter l with stroke")},{character:"\u0143",title:$("Latin capital letter n with acute")},{character:"\u0144",title:$("Latin small letter n with acute")},{character:"\u0145",title:$("Latin capital letter n with cedilla")},{character:"\u0146",title:$("Latin small letter n with cedilla")},{character:"\u0147",title:$("Latin capital letter n with caron")},{character:"\u0148",title:$("Latin small letter n with caron")},{character:"\u0149",title:$("Latin small letter n preceded by apostrophe")},{character:"\u014A",title:$("Latin capital letter eng")},{character:"\u014B",title:$("Latin small letter eng")},{character:"\u014C",title:$("Latin capital letter o with macron")},{character:"\u014D",title:$("Latin small letter o with macron")},{character:"\u014E",title:$("Latin capital letter o with breve")},{character:"\u014F",title:$("Latin small letter o with breve")},{character:"\u0150",title:$("Latin capital letter o with double acute")},{character:"\u0151",title:$("Latin small letter o with double acute")},{character:"\u0152",title:$("Latin capital ligature oe")},{character:"\u0153",title:$("Latin small ligature oe")},{character:"\u0154",title:$("Latin capital letter r with acute")},{character:"\u0155",title:$("Latin small letter r with acute")},{character:"\u0156",title:$("Latin capital letter r with cedilla")},{character:"\u0157",title:$("Latin small letter r with cedilla")},{character:"\u0158",title:$("Latin capital letter r with caron")},{character:"\u0159",title:$("Latin small letter r with caron")},{character:"\u015A",title:$("Latin capital letter s with acute")},{character:"\u015B",title:$("Latin small letter s with acute")},{character:"\u015C",title:$("Latin capital letter s with circumflex")},{character:"\u015D",title:$("Latin small letter s with circumflex")},{character:"\u015E",title:$("Latin capital letter s with cedilla")},{character:"\u015F",title:$("Latin small letter s with cedilla")},{character:"\u0160",title:$("Latin capital letter s with caron")},{character:"\u0161",title:$("Latin small letter s with caron")},{character:"\u0162",title:$("Latin capital letter t with cedilla")},{character:"\u0163",title:$("Latin small letter t with cedilla")},{character:"\u0164",title:$("Latin capital letter t with caron")},{character:"\u0165",title:$("Latin small letter t with caron")},{character:"\u0166",title:$("Latin capital letter t with stroke")},{character:"\u0167",title:$("Latin small letter t with stroke")},{character:"\u0168",title:$("Latin capital letter u with tilde")},{character:"\u0169",title:$("Latin small letter u with tilde")},{character:"\u016A",title:$("Latin capital letter u with macron")},{character:"\u016B",title:$("Latin small letter u with macron")},{character:"\u016C",title:$("Latin capital letter u with breve")},{character:"\u016D",title:$("Latin small letter u with breve")},{character:"\u016E",title:$("Latin capital letter u with ring above")},{character:"\u016F",title:$("Latin small letter u with ring above")},{character:"\u0170",title:$("Latin capital letter u with double acute")},{character:"\u0171",title:$("Latin small letter u with double acute")},{character:"\u0172",title:$("Latin capital letter u with ogonek")},{character:"\u0173",title:$("Latin small letter u with ogonek")},{character:"\u0174",title:$("Latin capital letter w with circumflex")},{character:"\u0175",title:$("Latin small letter w with circumflex")},{character:"\u0176",title:$("Latin capital letter y with circumflex")},{character:"\u0177",title:$("Latin small letter y with circumflex")},{character:"\u0178",title:$("Latin capital letter y with diaeresis")},{character:"\u0179",title:$("Latin capital letter z with acute")},{character:"\u017A",title:$("Latin small letter z with acute")},{character:"\u017B",title:$("Latin capital letter z with dot above")},{character:"\u017C",title:$("Latin small letter z with dot above")},{character:"\u017D",title:$("Latin capital letter z with caron")},{character:"\u017E",title:$("Latin small letter z with caron")},{character:"\u017F",title:$("Latin small letter long s")}],{label:$("Latin")})}}class R extends n.Plugin{static get pluginName(){return"SpecialCharactersCurrency"}init(){const V=this.editor,$=V.t;V.plugins.get("SpecialCharacters").addItems("Currency",[{character:"$",title:$("Dollar sign")},{character:"\u20AC",title:$("Euro sign")},{character:"\xA5",title:$("Yen sign")},{character:"\xA3",title:$("Pound sign")},{character:"\xA2",title:$("Cent sign")},{character:"\u20A0",title:$("Euro-currency sign")},{character:"\u20A1",title:$("Colon sign")},{character:"\u20A2",title:$("Cruzeiro sign")},{character:"\u20A3",title:$("French franc sign")},{character:"\u20A4",title:$("Lira sign")},{character:"\xA4",title:$("Currency sign")},{character:"\u20BF",title:$("Bitcoin sign")},{character:"\u20A5",title:$("Mill sign")},{character:"\u20A6",title:$("Naira sign")},{character:"\u20A7",title:$("Peseta sign")},{character:"\u20A8",title:$("Rupee sign")},{character:"\u20A9",title:$("Won sign")},{character:"\u20AA",title:$("New sheqel sign")},{character:"\u20AB",title:$("Dong sign")},{character:"\u20AD",title:$("Kip sign")},{character:"\u20AE",title:$("Tugrik sign")},{character:"\u20AF",title:$("Drachma sign")},{character:"\u20B0",title:$("German penny sign")},{character:"\u20B1",title:$("Peso sign")},{character:"\u20B2",title:$("Guarani sign")},{character:"\u20B3",title:$("Austral sign")},{character:"\u20B4",title:$("Hryvnia sign")},{character:"\u20B5",title:$("Cedi sign")},{character:"\u20B6",title:$("Livre tournois sign")},{character:"\u20B7",title:$("Spesmilo sign")},{character:"\u20B8",title:$("Tenge sign")},{character:"\u20B9",title:$("Indian rupee sign")},{character:"\u20BA",title:$("Turkish lira sign")},{character:"\u20BB",title:$("Nordic mark sign")},{character:"\u20BC",title:$("Manat sign")},{character:"\u20BD",title:$("Ruble sign")}],{label:$("Currency")})}}class H extends n.Plugin{static get requires(){return[R,b,E,u,A]}}})(),(window.CKEditor5=window.CKEditor5||{}).specialCharacters=r})()},9958:()=>{(function(Z){const v=Z.en=Z.en||{};v.dictionary=Object.assign(v.dictionary||{},{"Block styles":"Block styles","Multiple styles":"Multiple styles",Styles:"Styles","Text styles":"Text styles"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),(()=>{var Z={529:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,".ck.ck-dropdown.ck-style-dropdown.ck-style-dropdown_multiple-active>.ck-button>.ck-button__label{font-style:italic}",""]);const p=h},945:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,":root{--ck-style-panel-columns:3}.ck.ck-style-panel .ck-style-grid{display:grid;grid-template-columns:repeat(var(--ck-style-panel-columns),auto);justify-content:start}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button{display:flex;flex-direction:column;justify-content:space-between}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button .ck-style-grid__button__preview{align-content:center;align-items:center;display:flex;flex-basis:100%;flex-grow:1;justify-content:flex-start}:root{--ck-style-panel-button-width:120px;--ck-style-panel-button-height:80px;--ck-style-panel-button-label-background:#f0f0f0;--ck-style-panel-button-hover-label-background:#ebebeb;--ck-style-panel-button-hover-border-color:#b3b3b3}.ck.ck-style-panel .ck-style-grid{column-gap:var(--ck-spacing-large);row-gap:var(--ck-spacing-large)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button{--ck-color-button-default-hover-background:var(--ck-color-base-background);--ck-color-button-default-active-background:var(--ck-color-base-background);height:var(--ck-style-panel-button-height);padding:0;width:var(--ck-style-panel-button-width)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button .ck-button__label{flex-shrink:0;height:22px;line-height:22px;overflow:hidden;padding:0 var(--ck-spacing-medium);text-overflow:ellipsis;width:100%}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button .ck-style-grid__button__preview{background:var(--ck-color-base-background);border:2px solid var(--ck-color-base-background);opacity:.9;overflow:hidden;padding:var(--ck-spacing-medium);width:100%}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-disabled{--ck-color-button-default-disabled-background:var(--ck-color-base-foreground)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-disabled:not(:focus){border-color:var(--ck-style-panel-button-label-background)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-disabled .ck-style-grid__button__preview{border-color:var(--ck-color-base-foreground);filter:saturate(.3);opacity:.4}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-on{border-color:var(--ck-color-base-active)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-on .ck-button__label{box-shadow:0 -1px 0 var(--ck-color-base-active);z-index:1}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-on:hover{border-color:var(--ck-color-base-active-focus)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:not(.ck-on) .ck-button__label{background:var(--ck-style-panel-button-label-background)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:not(.ck-on):hover .ck-button__label{background:var(--ck-style-panel-button-hover-label-background)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:hover:not(.ck-disabled):not(.ck-on){border-color:var(--ck-style-panel-button-hover-border-color)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:hover:not(.ck-disabled):not(.ck-on) .ck-style-grid__button__preview{opacity:1}",""]);const p=h},561:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,".ck.ck-style-panel .ck-style-panel__style-group>.ck-label{margin:var(--ck-spacing-large) 0}.ck.ck-style-panel .ck-style-panel__style-group:first-child>.ck-label{margin-top:0}",""]);const p=h},662:(n,s,a)=>{"use strict";a.d(s,{Z:()=>p});var c=a(609),h=a.n(c)()(function(d){return d[1]});h.push([n.id,":root{--ck-style-panel-max-height:470px}.ck.ck-style-panel{max-height:var(--ck-style-panel-max-height);overflow-y:auto;padding:var(--ck-spacing-large)}",""]);const p=h},609:n=>{"use strict";n.exports=function(s){var a=[];return a.toString=function(){return this.map(function(c){var h=s(c);return c[2]?"@media ".concat(c[2]," {").concat(h,"}"):h}).join("")},a.i=function(c,h,p){typeof c=="string"&&(c=[[null,c,""]]);var d={};if(p)for(var k=0;k<this.length;k++){var M=this[k][0];M!=null&&(d[M]=!0)}for(var C=0;C<c.length;C++){var w=[].concat(c[C]);p&&d[w[0]]||(h&&(w[2]?w[2]="".concat(h," and ").concat(w[2]):w[2]=h),a.push(w))}},a}},62:(n,s,a)=>{"use strict";var c,h=function(){return c===void 0&&(c=Boolean(window&&document&&document.all&&!window.atob)),c},p=function(){var x={};return function(T){if(x[T]===void 0){var u=document.querySelector(T);if(window.HTMLIFrameElement&&u instanceof window.HTMLIFrameElement)try{u=u.contentDocument.head}catch{u=null}x[T]=u}return x[T]}}(),d=[];function k(x){for(var T=-1,u=0;u<d.length;u++)if(d[u].identifier===x){T=u;break}return T}function M(x,T){for(var u={},b=[],E=0;E<x.length;E++){var A=x[E],R=T.base?A[0]+T.base:A[0],H=u[R]||0,z="".concat(R," ").concat(H);u[R]=H+1;var V=k(z),$={css:A[1],media:A[2],sourceMap:A[3]};V!==-1?(d[V].references++,d[V].updater($)):d.push({identifier:z,updater:D($,T),references:1}),b.push(z)}return b}function C(x){var T=document.createElement("style"),u=x.attributes||{};if(u.nonce===void 0){var b=a.nc;b&&(u.nonce=b)}if(Object.keys(u).forEach(function(A){T.setAttribute(A,u[A])}),typeof x.insert=="function")x.insert(T);else{var E=p(x.insert||"head");if(!E)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");E.appendChild(T)}return T}var w,I=(w=[],function(x,T){return w[x]=T,w.filter(Boolean).join(`
`)});function F(x,T,u,b){var E=u?"":b.media?"@media ".concat(b.media," {").concat(b.css,"}"):b.css;if(x.styleSheet)x.styleSheet.cssText=I(T,E);else{var A=document.createTextNode(E),R=x.childNodes;R[T]&&x.removeChild(R[T]),R.length?x.insertBefore(A,R[T]):x.appendChild(A)}}function U(x,T,u){var b=u.css,E=u.media,A=u.sourceMap;if(E?x.setAttribute("media",E):x.removeAttribute("media"),A&&typeof btoa<"u"&&(b+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(A))))," */")),x.styleSheet)x.styleSheet.cssText=b;else{for(;x.firstChild;)x.removeChild(x.firstChild);x.appendChild(document.createTextNode(b))}}var B=null,N=0;function D(x,T){var u,b,E;if(T.singleton){var A=N++;u=B||(B=C(T)),b=F.bind(null,u,A,!1),E=F.bind(null,u,A,!0)}else u=C(T),b=U.bind(null,u,T),E=function(){(function(R){if(R.parentNode===null)return!1;R.parentNode.removeChild(R)})(u)};return b(x),function(R){if(R){if(R.css===x.css&&R.media===x.media&&R.sourceMap===x.sourceMap)return;b(x=R)}else E()}}n.exports=function(x,T){(T=T||{}).singleton||typeof T.singleton=="boolean"||(T.singleton=h());var u=M(x=x||[],T);return function(b){if(b=b||[],Object.prototype.toString.call(b)==="[object Array]"){for(var E=0;E<u.length;E++){var A=k(u[E]);d[A].references--}for(var R=M(b,T),H=0;H<u.length;H++){var z=k(u[H]);d[z].references===0&&(d[z].updater(),d.splice(z,1))}u=R}}}},704:(n,s,a)=>{n.exports=a(79)("./src/core.js")},273:(n,s,a)=>{n.exports=a(79)("./src/ui.js")},209:(n,s,a)=>{n.exports=a(79)("./src/utils.js")},79:n=>{"use strict";n.exports=CKEditor5.dll}},v={};function t(n){var s=v[n];if(s!==void 0)return s.exports;var a=v[n]={id:n,exports:{}};return Z[n](a,a.exports,t),a.exports}t.n=n=>{var s=n&&n.__esModule?()=>n.default:()=>n;return t.d(s,{a:s}),s},t.d=(n,s)=>{for(var a in s)t.o(s,a)&&!t.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:s[a]})},t.o=(n,s)=>Object.prototype.hasOwnProperty.call(n,s),t.r=n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.nc=void 0;var r={};(()=>{"use strict";t.r(r),t.d(r,{Style:()=>H,StyleEditing:()=>A,StyleUI:()=>u});var n=t(704),s=t(273),a=t(209);const c=["caption","colgroup","dd","dt","figcaption","legend","li","optgroup","option","rp","rt","summary","tbody","td","tfoot","th","thead","tr"];class h extends s.ButtonView{constructor(V,$){super(V),this.styleDefinition=$,this.previewView=this._createPreview(),this.set({label:$.name,class:"ck-style-grid__button",withText:!0}),this.extendTemplate({attributes:{role:"option"}}),this.children.add(this.previewView,0)}_createPreview(){const{element:V,classes:$}=this.styleDefinition,ee=new s.View(this.locale);return ee.setTemplate({tag:"div",attributes:{class:["ck","ck-reset_all-excluded","ck-style-grid__button__preview","ck-content"],"aria-hidden":"true"},children:[{tag:this._isPreviewable(V)?V:"div",attributes:{class:$},children:[{text:"AaBbCcDdEeFfGgHhIiJj"}]}]}),ee}_isPreviewable(V){return!c.includes(V)}}var p=t(62),d=t.n(p),k=t(945),M={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};d()(k.Z,M),k.Z.locals;class C extends s.View{constructor(V,$){super(V),this.focusTracker=new a.FocusTracker,this.keystrokes=new a.KeystrokeHandler,this.set("activeStyles",[]),this.set("enabledStyles",[]),this.children=this.createCollection(),this.children.delegate("execute").to(this);for(const ee of $){const q=new h(V,ee);this.children.add(q)}this.on("change:activeStyles",()=>{for(const ee of this.children)ee.isOn=this.activeStyles.includes(ee.styleDefinition.name)}),this.on("change:enabledStyles",()=>{for(const ee of this.children)ee.isEnabled=this.enabledStyles.includes(ee.styleDefinition.name)}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-style-grid"],role:"listbox"},children:this.children})}render(){super.render();for(const V of this.children)this.focusTracker.add(V.element);(0,s.addKeyboardHandlingForGrid)({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.children,numberOfColumns:3,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection}),this.keystrokes.listenTo(this.element)}focus(){this.children.first.focus()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}}var w=t(561),I={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};d()(w.Z,I),w.Z.locals;class F extends s.View{constructor(V,$,ee){super(V),this.labelView=new s.LabelView(V),this.labelView.text=$,this.gridView=new C(V,ee),this.setTemplate({tag:"div",attributes:{class:["ck","ck-style-panel__style-group"],role:"group","aria-labelledby":this.labelView.id},children:[this.labelView,this.gridView]})}}var U=t(662),B={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};d()(U.Z,B),U.Z.locals;class N extends s.View{constructor(V,$){super(V);const ee=V.t;this.focusTracker=new a.FocusTracker,this.keystrokes=new a.KeystrokeHandler,this.children=this.createCollection(),this.blockStylesGroupView=new F(V,ee("Block styles"),$.block),this.inlineStylesGroupView=new F(V,ee("Text styles"),$.inline),this.set("activeStyles",[]),this.set("enabledStyles",[]),this._focusables=new s.ViewCollection,this._focusCycler=new s.FocusCycler({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:["shift + tab"],focusNext:["tab"]}}),$.block.length&&this.children.add(this.blockStylesGroupView),$.inline.length&&this.children.add(this.inlineStylesGroupView),this.blockStylesGroupView.gridView.delegate("execute").to(this),this.inlineStylesGroupView.gridView.delegate("execute").to(this),this.blockStylesGroupView.gridView.bind("activeStyles","enabledStyles").to(this),this.inlineStylesGroupView.gridView.bind("activeStyles","enabledStyles").to(this),this.setTemplate({tag:"div",attributes:{class:["ck","ck-style-panel"]},children:this.children})}render(){super.render(),this._focusables.add(this.blockStylesGroupView.gridView),this._focusables.add(this.inlineStylesGroupView.gridView),this.focusTracker.add(this.blockStylesGroupView.gridView.element),this.focusTracker.add(this.inlineStylesGroupView.gridView.element),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}function D(z,V=[]){const $={block:[],inline:[]};for(const ee of V){const q=[],oe=[];for(const X of z.getDefinitionsForView(ee.element))X.isBlock?q.push(X.model):oe.push(X.model);q.length?$.block.push({...ee,modelElements:q,isBlock:!0}):$.inline.push({...ee,ghsAttributes:oe})}return $}var x=t(529),T={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};d()(x.Z,T),x.Z.locals;class u extends n.Plugin{static get pluginName(){return"StyleUI"}init(){const V=this.editor,$=D(V.plugins.get("DataSchema"),V.config.get("style.definitions"));V.ui.componentFactory.add("style",ee=>{const q=ee.t,oe=(0,s.createDropdown)(ee),X=V.commands.get("style");return oe.once("change:isOpen",()=>{const pe=new N(ee,$);oe.panelView.children.add(pe),pe.delegate("execute").to(oe),pe.bind("activeStyles").to(X,"value"),pe.bind("enabledStyles").to(X,"enabledStyles")}),oe.bind("isEnabled").to(X),oe.buttonView.withText=!0,oe.buttonView.bind("label").to(X,"value",pe=>pe.length>1?q("Multiple styles"):pe.length===1?pe[0]:q("Styles")),oe.bind("class").to(X,"value",pe=>{const Ie=["ck-style-dropdown"];return pe.length>1&&Ie.push("ck-style-dropdown_multiple-active"),Ie.join(" ")}),oe.on("execute",pe=>{V.execute("style",{styleName:pe.source.styleDefinition.name}),V.editing.view.focus()}),oe})}}class b extends n.Command{constructor(V,$){super(V),this.set("value",[]),this.set("enabledStyles",[]),this._styleDefinitions=$}refresh(){const V=this.editor.model,$=V.document.selection,ee=new Set,q=new Set;for(const X of this._styleDefinitions.inline)for(const pe of X.ghsAttributes)V.schema.checkAttributeInSelection($,pe)&&q.add(X.name),E(this._getValueFromFirstAllowedNode(pe),X.classes)&&ee.add(X.name);const oe=(0,a.first)($.getSelectedBlocks());if(oe){const X=oe.getAncestors({includeSelf:!0,parentFirst:!0});for(const pe of X){if(V.schema.isLimit(pe))break;if(V.schema.checkAttribute(pe,"htmlAttributes"))for(const Ie of this._styleDefinitions.block)Ie.modelElements.includes(pe.name)&&(q.add(Ie.name),E(pe.getAttribute("htmlAttributes"),Ie.classes)&&ee.add(Ie.name))}}this.enabledStyles=Array.from(q).sort(),this.isEnabled=this.enabledStyles.length>0,this.value=this.isEnabled?Array.from(ee).sort():[]}execute({styleName:V,forceValue:$}){if(!this.enabledStyles.includes(V))return void(0,a.logWarning)("style-command-executed-with-incorrect-style-name");const ee=this.editor.model,q=ee.document.selection,oe=this.editor.plugins.get("GeneralHtmlSupport"),X=[...this._styleDefinitions.inline,...this._styleDefinitions.block].find(({name:Ie})=>Ie==V),pe=$===void 0?!this.value.includes(X.name):$;ee.change(()=>{let Ie;Ie=X.isBlock?function(se,be,fe){const ue=new Set;for(const we of se){const Me=we.getAncestors({includeSelf:!0,parentFirst:!0});for(const Ce of Me){if(fe.isLimit(Ce))break;if(be.includes(Ce.name)){ue.add(Ce);break}}}return ue}(q.getSelectedBlocks(),X.modelElements,ee.schema):[q];for(const se of Ie)pe?oe.addModelHtmlClass(X.element,X.classes,se):oe.removeModelHtmlClass(X.element,X.classes,se)})}_getValueFromFirstAllowedNode(V){const $=this.editor.model,ee=$.schema,q=$.document.selection;if(q.isCollapsed)return q.getAttribute(V);for(const oe of q.getRanges())for(const X of oe.getItems())if(ee.checkAttribute(X,V))return X.getAttribute(V);return null}}function E(z,V){return!(!z||!z.classes)&&V.every($=>z.classes.includes($))}class A extends n.Plugin{static get pluginName(){return"StyleEditing"}static get requires(){return["GeneralHtmlSupport"]}init(){const V=this.editor,$=D(V.plugins.get("DataSchema"),V.config.get("style.definitions"));V.commands.add("style",new b(V,$)),this._configureGHSDataFilter($)}_configureGHSDataFilter({block:V,inline:$}){const ee=this.editor.plugins.get("DataFilter");ee.loadAllowedConfig(V.map(R)),ee.loadAllowedConfig($.map(R))}}function R({element:z,classes:V}){return{name:z,classes:V}}class H extends n.Plugin{static get pluginName(){return"Style"}static get requires(){return[A,u]}}})(),(window.CKEditor5=window.CKEditor5||{}).style=r})()},58174:(Z,v,t)=>{(function(r){const n=r.en=r.en||{};n.dictionary=Object.assign(n.dictionary||{},{"Align cell text to the bottom":"Align cell text to the bottom","Align cell text to the center":"Align cell text to the center","Align cell text to the left":"Align cell text to the left","Align cell text to the middle":"Align cell text to the middle","Align cell text to the right":"Align cell text to the right","Align cell text to the top":"Align cell text to the top","Align table to the left":"Align table to the left","Align table to the right":"Align table to the right",Alignment:"Alignment",Background:"Background",Border:"Border","Cell properties":"Cell properties","Center table":"Center table",Color:"Color","Color picker":"Color picker",Column:"Column",Dashed:"Dashed","Delete column":"Delete column","Delete row":"Delete row",Dimensions:"Dimensions",Dotted:"Dotted",Double:"Double","Enter table caption":"Enter table caption",Groove:"Groove","Header column":"Header column","Header row":"Header row",Height:"Height","Horizontal text alignment toolbar":"Horizontal text alignment toolbar","Insert column left":"Insert column left","Insert column right":"Insert column right","Insert row above":"Insert row above","Insert row below":"Insert row below","Insert table":"Insert table",Inset:"Inset","Justify cell text":"Justify cell text","Merge cell down":"Merge cell down","Merge cell left":"Merge cell left","Merge cell right":"Merge cell right","Merge cell up":"Merge cell up","Merge cells":"Merge cells",None:"None",Outset:"Outset",Padding:"Padding",Ridge:"Ridge",Row:"Row","Select column":"Select column","Select row":"Select row",Solid:"Solid","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically",Style:"Style","Table alignment toolbar":"Table alignment toolbar","Table cell text alignment":"Table cell text alignment","Table properties":"Table properties","Table toolbar":"Table toolbar",'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".':'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".','The value is invalid. Try "10px" or "2em" or simply "2".':'The value is invalid. Try "10px" or "2em" or simply "2".',"Toggle caption off":"Toggle caption off","Toggle caption on":"Toggle caption on","Vertical text alignment toolbar":"Vertical text alignment toolbar",Width:"Width"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),(()=>{var r={252:(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p(609),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck.ck-input-color{display:flex;flex-direction:row-reverse;width:100%}.ck.ck-input-color>input.ck.ck-input-text{flex-grow:1;min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown{min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown>.ck-input-color__button .ck-dropdown__arrow{display:none}.ck.ck-input-color .ck.ck-input-color__button{display:flex}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview{overflow:hidden;position:relative}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{display:block;position:absolute}[dir=ltr] .ck.ck-input-color>.ck.ck-input-text{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-input-text{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-input-color>.ck.ck-input-text:focus{z-index:0}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{padding:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-left-radius:0;border-top-left-radius:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-left:1px solid transparent}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-right:1px solid transparent}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button.ck-disabled{background:var(--ck-color-input-disabled-background)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border-radius:0}.ck-rounded-corners .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview,.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border:1px solid var(--ck-color-input-border);height:20px;width:20px}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{background:red;border-radius:2px;height:150%;left:50%;top:-30%;transform:rotate(45deg);transform-origin:50%;width:8%}.ck.ck-input-color .ck.ck-input-color__remove-color{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);width:100%}.ck.ck-input-color .ck.ck-input-color__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-input-border)}[dir=ltr] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-right-radius:0}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-left-radius:0}.ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard);margin-right:0}",""]);const M=k},934:(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p(609),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck.ck-form{padding:0 0 var(--ck-spacing-large)}.ck.ck-form:focus{outline:none}.ck.ck-form .ck.ck-input-text{min-width:100%;width:0}.ck.ck-form .ck.ck-dropdown{min-width:100%}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button .ck-button__label{width:100%}",""]);const M=k},333:(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p(609),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-table-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-table-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row{padding:var(--ck-spacing-standard) var(--ck-spacing-large) 0}[dir=ltr] .ck.ck-form__row>:not(.ck-label)+*{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-form__row>:not(.ck-label)+*{margin-right:var(--ck-spacing-large)}.ck.ck-form__row>.ck-label{min-width:100%;width:100%}.ck.ck-form__row.ck-table-form__action-row{margin-top:var(--ck-spacing-large)}.ck.ck-form__row.ck-table-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}",""]);const M=k},272:(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p(609),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2)}.ck .ck-insert-table-dropdown__label,.ck[dir=rtl] .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{border:1px solid var(--ck-color-base-border);border-radius:1px;margin:var(--ck-insert-table-dropdown-box-margin);min-height:var(--ck-insert-table-dropdown-box-height);min-width:var(--ck-insert-table-dropdown-box-width);outline:none;transition:none}.ck .ck-insert-table-dropdown-grid-box:focus{box-shadow:none}.ck .ck-insert-table-dropdown-grid-box.ck-on{background:var(--ck-color-focus-outer-shadow);border-color:var(--ck-color-focus-border)}",""]);const M=k},660:(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p(609),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck-content .table{display:table;margin:.9em auto}.ck-content .table table{border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;height:100%;width:100%}.ck-content .table table td,.ck-content .table table th{border:1px solid #bfbfbf;min-width:2em;padding:.4em}.ck-content .table table th{background:rgba(0,0,0,.05);font-weight:700}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}",""]);const M=k},665:(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p(609),k=p.n(d)()(function(C){return C[1]});k.push([c.id,":root{--ck-color-table-caption-background:#f7f7f7;--ck-color-table-caption-text:#333;--ck-color-table-caption-highlighted-background:#fd0}.ck-content .table>figcaption{background-color:var(--ck-color-table-caption-background);caption-side:top;color:var(--ck-color-table-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;text-align:center;word-break:break-word}.ck.ck-editor__editable .table>figcaption.table__caption_highlighted{animation:ck-table-caption-highlight .6s ease-out}.ck.ck-editor__editable .table>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}@keyframes ck-table-caption-highlight{0%{background-color:var(--ck-color-table-caption-highlighted-background)}to{background-color:var(--ck-color-table-caption-background)}}",""]);const M=k},773:(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p(609),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row{flex-wrap:wrap}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:first-of-type{flex-grow:0.57}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:last-of-type{flex-grow:0.43}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar .ck-button{flex-grow:1}.ck.ck-table-cell-properties-form{width:320px}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__padding-row{align-self:flex-end;padding:0;width:25%}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}",""]);const M=k},975:(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p(609),k=p.n(d)()(function(C){return C[1]});k.push([c.id,":root{--ck-color-table-column-resizer-hover:var(--ck-color-base-active);--ck-table-column-resizer-width:7px;--ck-table-column-resizer-position-offset:calc(var(--ck-table-column-resizer-width)*-0.5 - 0.5px)}.ck-content .table .ck-table-resized{table-layout:fixed}.ck-content .table table{overflow:hidden}.ck-content .table td,.ck-content .table th{position:relative}.ck.ck-editor__editable .table .ck-table-column-resizer{bottom:-999999px;cursor:col-resize;position:absolute;right:var(--ck-table-column-resizer-position-offset);top:-999999px;user-select:none;width:var(--ck-table-column-resizer-width);z-index:var(--ck-z-default)}.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer,.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer{display:none}.ck.ck-editor__editable .table .ck-table-column-resizer:hover,.ck.ck-editor__editable .table .ck-table-column-resizer__active{background-color:var(--ck-color-table-column-resizer-hover);opacity:.25}.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer{left:var(--ck-table-column-resizer-position-offset);right:unset}",""]);const M=k},482:(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p(609),k=p.n(d)()(function(C){return C[1]});k.push([c.id,":root{--ck-color-table-focused-cell-background:rgba(158,201,250,.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-table-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}",""]);const M=k},686:(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p(609),k=p.n(d)()(function(C){return C[1]});k.push([c.id,'.ck.ck-table-form .ck-form__row.ck-table-form__background-row,.ck.ck-table-form .ck-form__row.ck-table-form__border-row{flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{align-items:center;flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view{align-items:center;display:flex;flex-direction:column-reverse}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view .ck.ck-dropdown,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{flex-grow:0}.ck.ck-table-form .ck.ck-labeled-field-view{position:relative}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{bottom:calc(var(--ck-table-properties-error-arrow-size)*-1);left:50%;position:absolute;transform:translate(-50%,100%);z-index:1}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{content:"";left:50%;position:absolute;top:calc(var(--ck-table-properties-error-arrow-size)*-1);transform:translateX(-50%)}:root{--ck-table-properties-error-arrow-size:6px;--ck-table-properties-min-error-width:150px}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-labeled-field-view>.ck-label{font-size:var(--ck-font-size-tiny);text-align:center}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-style,.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-width{max-width:80px;min-width:80px;width:80px}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{padding:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__height,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__width{margin:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{align-self:flex-end;display:inline-block;height:var(--ck-ui-component-min-height);line-height:var(--ck-ui-component-min-height);margin:0 var(--ck-spacing-small)}.ck.ck-table-form .ck.ck-labeled-field-view{padding-top:var(--ck-spacing-standard)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{border-radius:0}.ck-rounded-corners .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status,.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{background:var(--ck-color-base-error);color:var(--ck-color-base-background);min-width:var(--ck-table-properties-min-error-width);padding:var(--ck-spacing-small) var(--ck-spacing-medium);text-align:center}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{border-color:transparent transparent var(--ck-color-base-error) transparent;border-style:solid;border-width:0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:ck-table-form-labeled-view-status-appear .15s ease both}.ck.ck-table-form .ck.ck-labeled-field-view .ck-input.ck-error:not(:focus)+.ck.ck-labeled-field-view__status{display:none}@keyframes ck-table-form-labeled-view-status-appear{0%{opacity:0}to{opacity:1}}',""]);const M=k},99:(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p(609),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-content:baseline;flex-basis:0;flex-wrap:wrap}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items{flex-wrap:nowrap}.ck.ck-table-properties-form{width:320px}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-self:flex-end;padding:0}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items>*{width:40px}",""]);const M=k},475:(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p(609),k=p.n(d)()(function(C){return C[1]});k.push([c.id,':root{--ck-table-selected-cell-background:rgba(158,207,250,.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{box-shadow:unset;caret-color:transparent;outline:unset;position:relative}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{background-color:var(--ck-table-selected-cell-background);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget{outline:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle{display:none}',""]);const M=k},609:c=>{"use strict";c.exports=function(h){var p=[];return p.toString=function(){return this.map(function(d){var k=h(d);return d[2]?"@media ".concat(d[2]," {").concat(k,"}"):k}).join("")},p.i=function(d,k,M){typeof d=="string"&&(d=[[null,d,""]]);var C={};if(M)for(var w=0;w<this.length;w++){var I=this[w][0];I!=null&&(C[I]=!0)}for(var F=0;F<d.length;F++){var U=[].concat(d[F]);M&&C[U[0]]||(k&&(U[2]?U[2]="".concat(k," and ").concat(U[2]):U[2]=k),p.push(U))}},p}},62:(c,h,p)=>{"use strict";var d,k=function(){return d===void 0&&(d=Boolean(window&&document&&document.all&&!window.atob)),d},M=function(){var b={};return function(E){if(b[E]===void 0){var A=document.querySelector(E);if(window.HTMLIFrameElement&&A instanceof window.HTMLIFrameElement)try{A=A.contentDocument.head}catch{A=null}b[E]=A}return b[E]}}(),C=[];function w(b){for(var E=-1,A=0;A<C.length;A++)if(C[A].identifier===b){E=A;break}return E}function I(b,E){for(var A={},R=[],H=0;H<b.length;H++){var z=b[H],V=E.base?z[0]+E.base:z[0],$=A[V]||0,ee="".concat(V," ").concat($);A[V]=$+1;var q=w(ee),oe={css:z[1],media:z[2],sourceMap:z[3]};q!==-1?(C[q].references++,C[q].updater(oe)):C.push({identifier:ee,updater:u(oe,E),references:1}),R.push(ee)}return R}function F(b){var E=document.createElement("style"),A=b.attributes||{};if(A.nonce===void 0){var R=p.nc;R&&(A.nonce=R)}if(Object.keys(A).forEach(function(z){E.setAttribute(z,A[z])}),typeof b.insert=="function")b.insert(E);else{var H=M(b.insert||"head");if(!H)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");H.appendChild(E)}return E}var U,B=(U=[],function(b,E){return U[b]=E,U.filter(Boolean).join(`
`)});function N(b,E,A,R){var H=A?"":R.media?"@media ".concat(R.media," {").concat(R.css,"}"):R.css;if(b.styleSheet)b.styleSheet.cssText=B(E,H);else{var z=document.createTextNode(H),V=b.childNodes;V[E]&&b.removeChild(V[E]),V.length?b.insertBefore(z,V[E]):b.appendChild(z)}}function D(b,E,A){var R=A.css,H=A.media,z=A.sourceMap;if(H?b.setAttribute("media",H):b.removeAttribute("media"),z&&typeof btoa<"u"&&(R+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(z))))," */")),b.styleSheet)b.styleSheet.cssText=R;else{for(;b.firstChild;)b.removeChild(b.firstChild);b.appendChild(document.createTextNode(R))}}var x=null,T=0;function u(b,E){var A,R,H;if(E.singleton){var z=T++;A=x||(x=F(E)),R=N.bind(null,A,z,!1),H=N.bind(null,A,z,!0)}else A=F(E),R=D.bind(null,A,E),H=function(){(function(V){if(V.parentNode===null)return!1;V.parentNode.removeChild(V)})(A)};return R(b),function(V){if(V){if(V.css===b.css&&V.media===b.media&&V.sourceMap===b.sourceMap)return;R(b=V)}else H()}}c.exports=function(b,E){(E=E||{}).singleton||typeof E.singleton=="boolean"||(E.singleton=k());var A=I(b=b||[],E);return function(R){if(R=R||[],Object.prototype.toString.call(R)==="[object Array]"){for(var H=0;H<A.length;H++){var z=w(A[H]);C[z].references--}for(var V=I(R,E),$=0;$<A.length;$++){var ee=w(A[$]);C[ee].references===0&&(C[ee].updater(),C.splice(ee,1))}A=V}}}},704:(c,h,p)=>{c.exports=p(79)("./src/core.js")},492:(c,h,p)=>{c.exports=p(79)("./src/engine.js")},273:(c,h,p)=>{c.exports=p(79)("./src/ui.js")},209:(c,h,p)=>{c.exports=p(79)("./src/utils.js")},995:(c,h,p)=>{c.exports=p(79)("./src/widget.js")},79:c=>{"use strict";c.exports=CKEditor5.dll}},n={};function s(c){var h=n[c];if(h!==void 0)return h.exports;var p=n[c]={id:c,exports:{}};return r[c](p,p.exports,s),p.exports}s.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return s.d(h,{a:h}),h},s.d=(c,h)=>{for(var p in h)s.o(h,p)&&!s.o(c,p)&&Object.defineProperty(c,p,{enumerable:!0,get:h[p]})},s.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),s.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},s.nc=void 0;var a={};(()=>{"use strict";s.r(a),s.d(a,{PlainTableOutput:()=>ze,Table:()=>on,TableCaption:()=>Oa,TableCaptionEditing:()=>Lo,TableCaptionUI:()=>da,TableCellProperties:()=>ra,TableCellPropertiesEditing:()=>Cs,TableCellPropertiesUI:()=>nr,TableCellWidthEditing:()=>Qr,TableClipboard:()=>Mr,TableColumnResize:()=>Wr,TableColumnResizeEditing:()=>Ln,TableEditing:()=>ye,TableKeyboard:()=>li,TableMouse:()=>Et,TableProperties:()=>ts,TablePropertiesEditing:()=>dt,TablePropertiesUI:()=>mo,TableSelection:()=>hr,TableToolbar:()=>Sr,TableUI:()=>Vt,TableUtils:()=>ln});var c=s(704),h=s(995);function p(Lt,re){const{viewElement:me,defaultValue:Ue,modelAttribute:He,styleName:At,reduceBoxSides:Ut=!1,shouldUpcast:en=()=>!0}=re;Lt.for("upcast").attributeToAttribute({view:{name:me,styles:{[At]:/[\s\S]+/}},model:{key:He,value:Yt=>{if(!en(Yt))return;const In=Yt.getNormalizedStyle(At),$n=Ut?C(In):In;return Ue!==$n?$n:void 0}}})}function d(Lt,re,me,Ue){Lt.for("upcast").add(He=>He.on("element:"+re,(At,Ut,en)=>{if(!Ut.modelRange)return;const Yt=["border-top-width","border-top-color","border-top-style","border-bottom-width","border-bottom-color","border-bottom-style","border-right-width","border-right-color","border-right-style","border-left-width","border-left-color","border-left-style"].filter(qr=>Ut.viewItem.hasStyle(qr));if(!Yt.length)return;const In={styles:Yt};if(!en.consumable.test(Ut.viewItem,In))return;const $n=[...Ut.modelRange.getItems({shallow:!0})].pop();en.consumable.consume(Ut.viewItem,In);const wr={style:Ut.viewItem.getNormalizedStyle("border-style"),color:Ut.viewItem.getNormalizedStyle("border-color"),width:Ut.viewItem.getNormalizedStyle("border-width")},Tr={style:C(wr.style),color:C(wr.color),width:C(wr.width)};Tr.style!==Ue.style&&en.writer.setAttribute(me.style,Tr.style,$n),Tr.color!==Ue.color&&en.writer.setAttribute(me.color,Tr.color,$n),Tr.width!==Ue.width&&en.writer.setAttribute(me.width,Tr.width,$n)}))}function k(Lt,{modelElement:re,modelAttribute:me,styleName:Ue}){Lt.for("downcast").attributeToAttribute({model:{name:re,key:me},view:He=>({key:"style",value:{[Ue]:He}})})}function M(Lt,{modelAttribute:re,styleName:me}){Lt.for("downcast").add(Ue=>Ue.on(`attribute:${re}:table`,(He,At,Ut)=>{const{item:en,attributeNewValue:Yt}=At,{mapper:In,writer:$n}=Ut;if(!Ut.consumable.consume(At.item,He.name))return;const wr=[...In.toViewElement(en).getChildren()].find(Tr=>Tr.is("element","table"));Yt?$n.setStyle(me,Yt,wr):$n.removeStyle(me,wr)}))}function C(Lt){if(Lt)return["top","right","bottom","left"].map(re=>Lt[re]).reduce((re,me)=>re==me?re:null)||Lt}function w(Lt,re,me,Ue,He=1){re>He?Ue.setAttribute(Lt,re,me):Ue.removeAttribute(Lt,me)}function I(Lt,re,me={}){const Ue=Lt.createElement("tableCell",me);return Lt.insertElement("paragraph",Ue),Lt.insert(Ue,re),Ue}function F(Lt,re){const me=re.parent.parent,Ue=parseInt(me.getAttribute("headingColumns")||0),{column:He}=Lt.getCellLocation(re);return!!Ue&&He<Ue}function U(Lt,re,me){const{modelAttribute:Ue}=me;Lt.extend("tableCell",{allowAttributes:[Ue]}),p(re,{viewElement:/^(td|th)$/,...me}),k(re,{modelElement:"tableCell",...me})}var B=s(209);function N(){return Lt=>{Lt.on("element:table",(re,me,Ue)=>{const He=me.viewItem;if(!Ue.consumable.test(He,{name:!0}))return;const{rows:At,headingRows:Ut,headingColumns:en}=function($n){const wr={headingRows:0,headingColumns:0},Tr=[],qr=[];let di;for(const ai of Array.from($n.getChildren()))if(ai.name==="tbody"||ai.name==="thead"||ai.name==="tfoot"){ai.name!=="thead"||di||(di=ai);const Ri=Array.from(ai.getChildren()).filter(Qi=>Qi.is("element","tr"));for(const Qi of Ri)if(Qi.parent.name==="thead"&&Qi.parent===di)wr.headingRows++,Tr.push(Qi);else{qr.push(Qi);const so=x(Qi);so>wr.headingColumns&&(wr.headingColumns=so)}}return wr.rows=[...Tr,...qr],wr}(He),Yt={};en&&(Yt.headingColumns=en),Ut&&(Yt.headingRows=Ut);const In=Ue.writer.createElement("table",Yt);if(Ue.safeInsert(In,me.modelCursor)){if(Ue.consumable.consume(He,{name:!0}),At.forEach($n=>Ue.convertItem($n,Ue.writer.createPositionAt(In,"end"))),Ue.convertChildren(He,Ue.writer.createPositionAt(In,"end")),In.isEmpty){const $n=Ue.writer.createElement("tableRow");Ue.writer.insert($n,Ue.writer.createPositionAt(In,"end")),I(Ue.writer,Ue.writer.createPositionAt($n,"end"))}Ue.updateConversionResult(In,me)}})}}function D(Lt){return re=>{re.on(`element:${Lt}`,(me,Ue,{writer:He})=>{if(!Ue.modelRange)return;const At=Ue.modelRange.start.nodeAfter,Ut=He.createPositionAt(At,0);if(Ue.viewItem.isEmpty)return void He.insertElement("paragraph",Ut);const en=Array.from(At.getChildren());if(en.every(Yt=>Yt.is("element","$marker"))){const Yt=He.createElement("paragraph");He.insert(Yt,He.createPositionAt(At,0));for(const In of en)He.move(He.createRangeOn(In),He.createPositionAt(Yt,"end"))}},{priority:"low"})}}function x(Lt){let re=0,me=0;const Ue=Array.from(Lt.getChildren()).filter(He=>He.name==="th"||He.name==="td");for(;me<Ue.length&&Ue[me].name==="th";){const He=Ue[me];re+=parseInt(He.getAttribute("colspan")||1),me++}return re}class T{constructor(re,me={}){this._table=re,this._startRow=me.row!==void 0?me.row:me.startRow||0,this._endRow=me.row!==void 0?me.row:me.endRow,this._startColumn=me.column!==void 0?me.column:me.startColumn||0,this._endColumn=me.column!==void 0?me.column:me.endColumn,this._includeAllSlots=!!me.includeAllSlots,this._skipRows=new Set,this._row=0,this._rowIndex=0,this._column=0,this._cellIndex=0,this._spannedCells=new Map,this._nextCellAtColumn=-1}[Symbol.iterator](){return this}next(){const re=this._table.getChild(this._rowIndex);if(!re||this._isOverEndRow())return{done:!0};if(!re.is("element","tableRow"))return this._rowIndex++,this.next();if(this._isOverEndColumn())return this._advanceToNextRow();let me=null;const Ue=this._getSpanned();if(Ue)this._includeAllSlots&&!this._shouldSkipSlot()&&(me=this._formatOutValue(Ue.cell,Ue.row,Ue.column));else{const He=re.getChild(this._cellIndex);if(!He)return this._advanceToNextRow();const At=parseInt(He.getAttribute("colspan")||1),Ut=parseInt(He.getAttribute("rowspan")||1);(At>1||Ut>1)&&this._recordSpans(He,Ut,At),this._shouldSkipSlot()||(me=this._formatOutValue(He)),this._nextCellAtColumn=this._column+At}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,me||this.next()}skipRow(re){this._skipRows.add(re)}_advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return this._endRow!==void 0&&this._row>this._endRow}_isOverEndColumn(){return this._endColumn!==void 0&&this._column>this._endColumn}_formatOutValue(re,me=this._row,Ue=this._column){return{done:!1,value:new u(this,re,me,Ue)}}_shouldSkipSlot(){const re=this._skipRows.has(this._row),me=this._row<this._startRow,Ue=this._column<this._startColumn,He=this._endColumn!==void 0&&this._column>this._endColumn;return re||me||Ue||He}_getSpanned(){const re=this._spannedCells.get(this._row);return re&&re.get(this._column)||null}_recordSpans(re,me,Ue){const He={cell:re,row:this._row,column:this._column};for(let At=this._row;At<this._row+me;At++)for(let Ut=this._column;Ut<this._column+Ue;Ut++)At==this._row&&Ut==this._column||this._markSpannedCell(At,Ut,He)}_markSpannedCell(re,me,Ue){this._spannedCells.has(re)||this._spannedCells.set(re,new Map),this._spannedCells.get(re).set(me,Ue)}}class u{constructor(re,me,Ue,He){this.cell=me,this.row=re._row,this.column=re._column,this.cellAnchorRow=Ue,this.cellAnchorColumn=He,this._cellIndex=re._cellIndex,this._rowIndex=re._rowIndex,this._table=re._table}get isAnchor(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}get cellWidth(){return parseInt(this.cell.getAttribute("colspan")||1)}get cellHeight(){return parseInt(this.cell.getAttribute("rowspan")||1)}get rowIndex(){return this._rowIndex}getPositionBefore(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}}function b(Lt,re={}){return(me,{writer:Ue})=>{const He=me.getAttribute("headingRows")||0,At=[];He>0&&At.push(Ue.createContainerElement("thead",null,Ue.createSlot(en=>en.is("element","tableRow")&&en.index<He))),He<Lt.getRows(me)&&At.push(Ue.createContainerElement("tbody",null,Ue.createSlot(en=>en.is("element","tableRow")&&en.index>=He)));const Ut=Ue.createContainerElement("figure",{class:"table"},[Ue.createContainerElement("table",null,At),Ue.createSlot(en=>!en.is("element","tableRow"))]);return re.asWidget?function(en,Yt){return Yt.setCustomProperty("table",!0,en),(0,h.toWidget)(en,Yt,{hasSelectionHandle:!0})}(Ut,Ue):Ut}}function E(Lt={}){return(re,{writer:me})=>{const Ue=re.parent,He=Ue.parent,At=He.getChildIndex(Ue),Ut=new T(He,{row:At}),en=He.getAttribute("headingRows")||0,Yt=He.getAttribute("headingColumns")||0;for(const In of Ut)if(In.cell==re){const $n=In.row<en||In.column<Yt?"th":"td";return Lt.asWidget?(0,h.toWidgetEditable)(me.createEditableElement($n),me):me.createContainerElement($n)}}}function A(Lt={}){return(re,{writer:me})=>{if(re.parent.is("element","tableCell")&&R(re)){if(Lt.asWidget)return me.createContainerElement("span",{class:"ck-table-bogus-paragraph"});{const Ue=me.createContainerElement("p");return me.setCustomProperty("dataPipeline:transparentRendering",!0,Ue),Ue}}}}function R(Lt){return Lt.parent.childCount==1&&![...Lt.getAttributeKeys()].length}class H extends c.Command{refresh(){const re=this.editor.model,me=re.document.selection,Ue=re.schema;this.isEnabled=function(He,At){const Ut=He.getFirstPosition().parent,en=Ut===Ut.root?Ut:Ut.parent;return At.checkChild(en,"table")}(me,Ue)}execute(re={}){const me=this.editor.model,Ue=this.editor.plugins.get("TableUtils"),He=this.editor.config.get("table"),At=He.defaultHeadings.rows,Ut=He.defaultHeadings.columns;re.headingRows===void 0&&At&&(re.headingRows=At),re.headingColumns===void 0&&Ut&&(re.headingColumns=Ut),me.change(en=>{const Yt=Ue.createTable(en,re);me.insertObject(Yt,null,null,{findOptimalPosition:"auto"}),en.setSelection(en.createPositionAt(Yt.getNodeByPath([0,0,0]),0))})}}class z extends c.Command{constructor(re,me={}){super(re),this.order=me.order||"below"}refresh(){const re=this.editor.model.document.selection,me=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(re).length;this.isEnabled=me}execute(){const re=this.editor,me=re.model.document.selection,Ue=re.plugins.get("TableUtils"),He=this.order==="above",At=Ue.getSelectionAffectedTableCells(me),Ut=Ue.getRowIndexes(At),en=He?Ut.first:Ut.last,Yt=At[0].findAncestor("table");Ue.insertRows(Yt,{at:He?en:en+1,copyStructureFromAbove:!He})}}class V extends c.Command{constructor(re,me={}){super(re),this.order=me.order||"right"}refresh(){const re=this.editor.model.document.selection,me=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(re).length;this.isEnabled=me}execute(){const re=this.editor,me=re.model.document.selection,Ue=re.plugins.get("TableUtils"),He=this.order==="left",At=Ue.getSelectionAffectedTableCells(me),Ut=Ue.getColumnIndexes(At),en=He?Ut.first:Ut.last,Yt=At[0].findAncestor("table");Ue.insertColumns(Yt,{columns:1,at:He?en:en+1})}}class $ extends c.Command{constructor(re,me={}){super(re),this.direction=me.direction||"horizontally"}refresh(){const re=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=re.length===1}execute(){const re=this.editor.plugins.get("TableUtils"),me=re.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];this.direction==="horizontally"?re.splitCellHorizontally(me,2):re.splitCellVertically(me,2)}}function ee(Lt,re,me){const{startRow:Ue,startColumn:He,endRow:At,endColumn:Ut}=re,en=me.createElement("table"),Yt=At-Ue+1;for(let $n=0;$n<Yt;$n++)me.insertElement("tableRow",en,"end");const In=[...new T(Lt,{startRow:Ue,endRow:At,startColumn:He,endColumn:Ut,includeAllSlots:!0})];for(const{row:$n,column:wr,cell:Tr,isAnchor:qr,cellAnchorRow:di,cellAnchorColumn:ai}of In){const Ri=$n-Ue,Qi=en.getChild(Ri);if(qr){const so=me.cloneElement(Tr);me.append(so,Qi),Ie(so,$n,wr,At,Ut,me)}else(di<Ue||ai<He)&&I(me,me.createPositionAt(Qi,"end"))}return function($n,wr,Tr,qr,di){const ai=parseInt(wr.getAttribute("headingRows")||0);ai>0&&w("headingRows",ai-Tr,$n,di,0);const Ri=parseInt(wr.getAttribute("headingColumns")||0);Ri>0&&w("headingColumns",Ri-qr,$n,di,0)}(en,Lt,Ue,He,me),en}function q(Lt,re,me=0){const Ue=[],He=new T(Lt,{startRow:me,endRow:re-1});for(const At of He){const{row:Ut,cellHeight:en}=At;Ut<re&&re<=Ut+en-1&&Ue.push(At)}return Ue}function oe(Lt,re,me){const Ue=Lt.parent,He=Ue.parent,At=Ue.index,Ut=re-At,en={},Yt=parseInt(Lt.getAttribute("rowspan"))-Ut;Yt>1&&(en.rowspan=Yt);const In=parseInt(Lt.getAttribute("colspan")||1);In>1&&(en.colspan=In);const $n=At+Ut,wr=[...new T(He,{startRow:At,endRow:$n,includeAllSlots:!0})];let Tr,qr=null;for(const di of wr){const{row:ai,column:Ri,cell:Qi}=di;Qi===Lt&&Tr===void 0&&(Tr=Ri),Tr!==void 0&&Tr===Ri&&ai===$n&&(qr=I(me,di.getPositionBefore(),en))}return w("rowspan",Ut,Lt,me),qr}function X(Lt,re){const me=[],Ue=new T(Lt);for(const He of Ue){const{column:At,cellWidth:Ut}=He;At<re&&re<=At+Ut-1&&me.push(He)}return me}function pe(Lt,re,me,Ue){const He=me-re,At={},Ut=parseInt(Lt.getAttribute("colspan"))-He;Ut>1&&(At.colspan=Ut);const en=parseInt(Lt.getAttribute("rowspan")||1);en>1&&(At.rowspan=en);const Yt=I(Ue,Ue.createPositionAfter(Lt),At);return w("colspan",He,Lt,Ue),Yt}function Ie(Lt,re,me,Ue,He,At){const Ut=parseInt(Lt.getAttribute("colspan")||1),en=parseInt(Lt.getAttribute("rowspan")||1);me+Ut-1>He&&w("colspan",He-me+1,Lt,At,1),re+en-1>Ue&&w("rowspan",Ue-re+1,Lt,At,1)}function se(Lt,re){const me=re.getColumns(Lt),Ue=new Array(me).fill(0);for(const{column:At}of new T(Lt))Ue[At]++;const He=Ue.reduce((At,Ut,en)=>Ut?At:[...At,en],[]);if(He.length>0){const At=He[He.length-1];return re.removeColumns(Lt,{at:At}),!0}return!1}function be(Lt,re){const me=[],Ue=re.getRows(Lt);for(let He=0;He<Ue;He++)Lt.getChild(He).isEmpty&&me.push(He);if(me.length>0){const He=me[me.length-1];return re.removeRows(Lt,{at:He}),!0}return!1}function fe(Lt,re){se(Lt,re)||be(Lt,re)}function ue(Lt,re){const me=Array.from(new T(Lt,{startColumn:re.firstColumn,endColumn:re.lastColumn,row:re.lastRow}));if(me.every(({cellHeight:He})=>He===1))return re.lastRow;const Ue=me[0].cellHeight-1;return re.lastRow+Ue}function we(Lt,re){const me=Array.from(new T(Lt,{startRow:re.firstRow,endRow:re.lastRow,column:re.lastColumn}));if(me.every(({cellWidth:He})=>He===1))return re.lastColumn;const Ue=me[0].cellWidth-1;return re.lastColumn+Ue}class Me extends c.Command{constructor(re,me){super(re),this.direction=me.direction,this.isHorizontal=this.direction=="right"||this.direction=="left"}refresh(){const re=this._getMergeableCell();this.value=re,this.isEnabled=!!re}execute(){const re=this.editor.model,me=re.document,Ue=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(me.selection)[0],He=this.value,At=this.direction;re.change(Ut=>{const en=At=="right"||At=="down",Yt=en?Ue:He,In=en?He:Ue,$n=In.parent;(function(ai,Ri,Qi){Ce(ai)||(Ce(Ri)&&Qi.remove(Qi.createRangeIn(Ri)),Qi.move(Qi.createRangeIn(ai),Qi.createPositionAt(Ri,"end"))),Qi.remove(ai)})(In,Yt,Ut);const wr=this.isHorizontal?"colspan":"rowspan",Tr=parseInt(Ue.getAttribute(wr)||1),qr=parseInt(He.getAttribute(wr)||1);Ut.setAttribute(wr,Tr+qr,Yt),Ut.setSelection(Ut.createRangeIn(Yt));const di=this.editor.plugins.get("TableUtils");fe($n.findAncestor("table"),di)})}_getMergeableCell(){const re=this.editor.model.document,me=this.editor.plugins.get("TableUtils"),Ue=me.getTableCellsContainingSelection(re.selection)[0];if(!Ue)return;const He=this.isHorizontal?function(en,Yt,In){const $n=en.parent,wr=$n.parent,Tr=Yt=="right"?en.nextSibling:en.previousSibling,qr=(wr.getAttribute("headingColumns")||0)>0;if(!Tr)return;const di=Yt=="right"?en:Tr,ai=Yt=="right"?Tr:en,{column:Ri}=In.getCellLocation(di),{column:Qi}=In.getCellLocation(ai),so=parseInt(di.getAttribute("colspan")||1),Do=F(In,di),Ro=F(In,ai);if(!(qr&&Do!=Ro))return Ri+so===Qi?Tr:void 0}(Ue,this.direction,me):function(en,Yt,In){const $n=en.parent,wr=$n.parent,Tr=wr.getChildIndex($n);if(Yt=="down"&&Tr===In.getRows(wr)-1||Yt=="up"&&Tr===0)return;const qr=parseInt(en.getAttribute("rowspan")||1),di=wr.getAttribute("headingRows")||0,ai=Yt=="down"&&Tr+qr===di,Ri=Yt=="up"&&Tr===di;if(di&&(ai||Ri))return;const Qi=parseInt(en.getAttribute("rowspan")||1),so=Yt=="down"?Tr+Qi:Tr,Do=[...new T(wr,{endRow:so})],Ro=Do.find(Ls=>Ls.cell===en),Rs=Ro.column,Ns=Do.find(({row:Ls,cellHeight:Ba,column:Da})=>Da===Rs&&(Yt=="down"?Ls===so:so===Ls+Ba));return Ns&&Ns.cell}(Ue,this.direction,me);if(!He)return;const At=this.isHorizontal?"rowspan":"colspan",Ut=parseInt(Ue.getAttribute(At)||1);return parseInt(He.getAttribute(At)||1)===Ut?He:void 0}}function Ce(Lt){return Lt.childCount==1&&Lt.getChild(0).is("element","paragraph")&&Lt.getChild(0).isEmpty}class Ne extends c.Command{refresh(){const re=this.editor.plugins.get("TableUtils"),me=re.getSelectionAffectedTableCells(this.editor.model.document.selection),Ue=me[0];if(Ue){const He=Ue.findAncestor("table"),At=this.editor.plugins.get("TableUtils").getRows(He)-1,Ut=re.getRowIndexes(me),en=Ut.first===0&&Ut.last===At;this.isEnabled=!en}else this.isEnabled=!1}execute(){const re=this.editor.model,me=this.editor.plugins.get("TableUtils"),Ue=me.getSelectionAffectedTableCells(re.document.selection),He=me.getRowIndexes(Ue),At=Ue[0],Ut=At.findAncestor("table"),en=me.getCellLocation(At).column;re.change(Yt=>{const In=He.last-He.first+1;me.removeRows(Ut,{at:He.first,rows:In});const $n=function(wr,Tr,qr,di){const ai=wr.getChild(Math.min(Tr,di-1));let Ri=ai.getChild(0),Qi=0;for(const so of ai.getChildren()){if(Qi>qr)return Ri;Ri=so,Qi+=parseInt(so.getAttribute("colspan")||1)}return Ri}(Ut,He.first,en,me.getRows(Ut));Yt.setSelection(Yt.createPositionAt($n,0))})}}class Ye extends c.Command{refresh(){const re=this.editor.plugins.get("TableUtils"),me=re.getSelectionAffectedTableCells(this.editor.model.document.selection),Ue=me[0];if(Ue){const He=Ue.findAncestor("table"),At=re.getColumns(He),{first:Ut,last:en}=re.getColumnIndexes(me);this.isEnabled=en-Ut<At-1}else this.isEnabled=!1}execute(){const re=this.editor.plugins.get("TableUtils"),[me,Ue]=function(Yt,In){const $n=In.getSelectionAffectedTableCells(Yt),wr=$n[0],Tr=$n.pop(),qr=[wr,Tr];return wr.isBefore(Tr)?qr:qr.reverse()}(this.editor.model.document.selection,re),He=me.parent.parent,At=[...new T(He)],Ut={first:At.find(Yt=>Yt.cell===me).column,last:At.find(Yt=>Yt.cell===Ue).column},en=function(Yt,In,$n,wr){return parseInt($n.getAttribute("colspan")||1)>1?$n:In.previousSibling||$n.nextSibling?$n.nextSibling||In.previousSibling:wr.first?Yt.reverse().find(({column:qr})=>qr<wr.first).cell:Yt.reverse().find(({column:qr})=>qr>wr.last).cell}(At,me,Ue,Ut);this.editor.model.change(Yt=>{const In=Ut.last-Ut.first+1;this.editor.plugins.get("TableUtils").removeColumns(He,{at:Ut.first,columns:In}),Yt.setSelection(Yt.createPositionAt(en,0))})}}class mt extends c.Command{refresh(){const re=this.editor.plugins.get("TableUtils"),me=this.editor.model,Ue=re.getSelectionAffectedTableCells(me.document.selection),He=Ue.length>0;this.isEnabled=He,this.value=He&&Ue.every(At=>this._isInHeading(At,At.parent.parent))}execute(re={}){if(re.forceValue===this.value)return;const me=this.editor.plugins.get("TableUtils"),Ue=this.editor.model,He=me.getSelectionAffectedTableCells(Ue.document.selection),At=He[0].findAncestor("table"),{first:Ut,last:en}=me.getRowIndexes(He),Yt=this.value?Ut:en+1,In=At.getAttribute("headingRows")||0;Ue.change($n=>{if(Yt){const wr=q(At,Yt,Yt>In?In:0);for(const{cell:Tr}of wr)oe(Tr,Yt,$n)}w("headingRows",Yt,At,$n,0)})}_isInHeading(re,me){const Ue=parseInt(me.getAttribute("headingRows")||0);return!!Ue&&re.parent.index<Ue}}class Ct extends c.Command{refresh(){const re=this.editor.model,me=this.editor.plugins.get("TableUtils"),Ue=me.getSelectionAffectedTableCells(re.document.selection),He=Ue.length>0;this.isEnabled=He,this.value=He&&Ue.every(At=>F(me,At))}execute(re={}){if(re.forceValue===this.value)return;const me=this.editor.plugins.get("TableUtils"),Ue=this.editor.model,He=me.getSelectionAffectedTableCells(Ue.document.selection),At=He[0].findAncestor("table"),{first:Ut,last:en}=me.getColumnIndexes(He),Yt=this.value?Ut:en+1;Ue.change(In=>{if(Yt){const $n=X(At,Yt);for(const{cell:wr,column:Tr}of $n)pe(wr,Tr,Yt,In)}w("headingColumns",Yt,At,In,0)})}}class ln extends c.Plugin{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(re){const me=re.parent,Ue=me.parent,He=Ue.getChildIndex(me),At=new T(Ue,{row:He});for(const{cell:Ut,row:en,column:Yt}of At)if(Ut===re)return{row:en,column:Yt}}createTable(re,me){const Ue=re.createElement("table"),He=parseInt(me.rows)||2,At=parseInt(me.columns)||2;return $e(re,Ue,0,He,At),me.headingRows&&w("headingRows",Math.min(me.headingRows,He),Ue,re,0),me.headingColumns&&w("headingColumns",Math.min(me.headingColumns,At),Ue,re,0),Ue}insertRows(re,me={}){const Ue=this.editor.model,He=me.at||0,At=me.rows||1,Ut=me.copyStructureFromAbove!==void 0,en=me.copyStructureFromAbove?He-1:He,Yt=this.getRows(re),In=this.getColumns(re);if(He>Yt)throw new B.CKEditorError("tableutils-insertrows-insert-out-of-range",this,{options:me});Ue.change($n=>{const wr=re.getAttribute("headingRows")||0;if(wr>He&&w("headingRows",wr+At,re,$n,0),!Ut&&(He===0||He===Yt))return void $e($n,re,He,At,In);const Tr=Ut?Math.max(He,en):He,qr=new T(re,{endRow:Tr}),di=new Array(In).fill(1);for(const{row:ai,column:Ri,cellHeight:Qi,cellWidth:so,cell:Do}of qr){const Ro=ai+Qi-1,Rs=ai<=en&&en<=Ro;ai<He&&He<=Ro?($n.setAttribute("rowspan",Qi+At,Do),di[Ri]=-so):Ut&&Rs&&(di[Ri]=so)}for(let ai=0;ai<At;ai++){const Ri=$n.createElement("tableRow");$n.insert(Ri,re,He);for(let Qi=0;Qi<di.length;Qi++){const so=di[Qi],Do=$n.createPositionAt(Ri,"end");so>0&&I($n,Do,so>1?{colspan:so}:null),Qi+=Math.abs(so)-1}}})}insertColumns(re,me={}){const Ue=this.editor.model,He=me.at||0,At=me.columns||1;Ue.change(Ut=>{const en=re.getAttribute("headingColumns");He<en&&Ut.setAttribute("headingColumns",en+At,re);const Yt=this.getColumns(re);if(He===0||Yt===He){for(const $n of re.getChildren())$n.is("element","tableRow")&&Qe(At,Ut,Ut.createPositionAt($n,He?"end":0));return}const In=new T(re,{column:He,includeAllSlots:!0});for(const $n of In){const{row:wr,cell:Tr,cellAnchorColumn:qr,cellAnchorRow:di,cellWidth:ai,cellHeight:Ri}=$n;if(qr<He){Ut.setAttribute("colspan",ai+At,Tr);const Qi=di+Ri-1;for(let so=wr;so<=Qi;so++)In.skipRow(so)}else Qe(At,Ut,$n.getPositionBefore())}})}removeRows(re,me){const Ue=this.editor.model,He=me.rows||1,At=this.getRows(re),Ut=me.at,en=Ut+He-1;if(en>At-1)throw new B.CKEditorError("tableutils-removerows-row-index-out-of-range",this,{table:re,options:me});Ue.change(Yt=>{const{cellsToMove:In,cellsToTrim:$n}=function(wr,Tr,qr){const di=new Map,ai=[];for(const{row:Ri,column:Qi,cellHeight:so,cell:Do}of new T(wr,{endRow:qr})){const Ro=Ri+so-1;if(Ri>=Tr&&Ri<=qr&&Ro>qr){const Rs=so-(qr-Ri+1);di.set(Qi,{cell:Do,rowspan:Rs})}if(Ri<Tr&&Ro>=Tr){let Rs;Rs=Ro>=qr?qr-Tr+1:Ro-Tr+1,ai.push({cell:Do,rowspan:so-Rs})}}return{cellsToMove:di,cellsToTrim:ai}}(re,Ut,en);In.size&&function(wr,Tr,qr,di){const ai=new T(wr,{includeAllSlots:!0,row:Tr}),Ri=[...ai],Qi=wr.getChild(Tr);let so;for(const{column:Do,cell:Ro,isAnchor:Rs}of Ri)if(qr.has(Do)){const{cell:Ns,rowspan:Ls}=qr.get(Do),Ba=so?di.createPositionAfter(so):di.createPositionAt(Qi,0);di.move(di.createRangeOn(Ns),Ba),w("rowspan",Ls,Ns,di),so=Ns}else Rs&&(so=Ro)}(re,en+1,In,Yt);for(let wr=en;wr>=Ut;wr--)Yt.remove(re.getChild(wr));for(const{rowspan:wr,cell:Tr}of $n)w("rowspan",wr,Tr,Yt);(function(wr,Tr,qr,di){const ai=wr.getAttribute("headingRows")||0;Tr<ai&&w("headingRows",qr<ai?ai-(qr-Tr+1):Tr,wr,di,0)})(re,Ut,en,Yt),se(re,this)||be(re,this)})}removeColumns(re,me){const Ue=this.editor.model,He=me.at,At=me.columns||1,Ut=me.at+At-1;Ue.change(en=>{(function(Yt,In,$n){const wr=Yt.getAttribute("headingColumns")||0;if(wr&&In.first<wr){const Tr=Math.min(wr-1,In.last)-In.first+1;$n.setAttribute("headingColumns",wr-Tr,Yt)}})(re,{first:He,last:Ut},en);for(let Yt=Ut;Yt>=He;Yt--)for(const{cell:In,column:$n,cellWidth:wr}of[...new T(re)])$n<=Yt&&wr>1&&$n+wr>Yt?w("colspan",wr-1,In,en):$n===Yt&&en.remove(In);be(re,this)||se(re,this)})}splitCellVertically(re,me=2){const Ue=this.editor.model,He=re.parent.parent,At=parseInt(re.getAttribute("rowspan")||1),Ut=parseInt(re.getAttribute("colspan")||1);Ue.change(en=>{if(Ut>1){const{newCellsSpan:Yt,updatedSpan:In}=bt(Ut,me);w("colspan",In,re,en);const $n={};Yt>1&&($n.colspan=Yt),At>1&&($n.rowspan=At),Qe(Ut>me?me-1:Ut-1,en,en.createPositionAfter(re),$n)}if(Ut<me){const Yt=me-Ut,In=[...new T(He)],{column:$n}=In.find(({cell:di})=>di===re),wr=In.filter(({cell:di,cellWidth:ai,column:Ri})=>di!==re&&Ri===$n||Ri<$n&&Ri+ai>$n);for(const{cell:di,cellWidth:ai}of wr)en.setAttribute("colspan",ai+Yt,di);const Tr={};At>1&&(Tr.rowspan=At),Qe(Yt,en,en.createPositionAfter(re),Tr);const qr=He.getAttribute("headingColumns")||0;qr>$n&&w("headingColumns",qr+Yt,He,en)}})}splitCellHorizontally(re,me=2){const Ue=this.editor.model,He=re.parent,At=He.parent,Ut=At.getChildIndex(He),en=parseInt(re.getAttribute("rowspan")||1),Yt=parseInt(re.getAttribute("colspan")||1);Ue.change(In=>{if(en>1){const $n=[...new T(At,{startRow:Ut,endRow:Ut+en-1,includeAllSlots:!0})],{newCellsSpan:wr,updatedSpan:Tr}=bt(en,me);w("rowspan",Tr,re,In);const{column:qr}=$n.find(({cell:ai})=>ai===re),di={};wr>1&&(di.rowspan=wr),Yt>1&&(di.colspan=Yt);for(const ai of $n){const{column:Ri,row:Qi}=ai;Qi>=Ut+Tr&&Ri===qr&&(Qi+Ut+Tr)%wr==0&&Qe(1,In,ai.getPositionBefore(),di)}}if(en<me){const $n=me-en,wr=[...new T(At,{startRow:0,endRow:Ut})];for(const{cell:di,cellHeight:ai,row:Ri}of wr)if(di!==re&&Ri+ai>Ut){const Qi=ai+$n;In.setAttribute("rowspan",Qi,di)}const Tr={};Yt>1&&(Tr.colspan=Yt),$e(In,At,Ut+1,$n,1,Tr);const qr=At.getAttribute("headingRows")||0;qr>Ut&&w("headingRows",qr+$n,At,In)}})}getColumns(re){return[...re.getChild(0).getChildren()].reduce((me,Ue)=>me+parseInt(Ue.getAttribute("colspan")||1),0)}getRows(re){return Array.from(re.getChildren()).reduce((me,Ue)=>Ue.is("element","tableRow")?me+1:me,0)}createTableWalker(re,me={}){return new T(re,me)}getSelectedTableCells(re){const me=[];for(const Ue of this.sortRanges(re.getRanges())){const He=Ue.getContainedElement();He&&He.is("element","tableCell")&&me.push(He)}return me}getTableCellsContainingSelection(re){const me=[];for(const Ue of re.getRanges()){const He=Ue.start.findAncestor("tableCell");He&&me.push(He)}return me}getSelectionAffectedTableCells(re){const me=this.getSelectedTableCells(re);return me.length?me:this.getTableCellsContainingSelection(re)}getRowIndexes(re){const me=re.map(Ue=>Ue.parent.index);return this._getFirstLastIndexesObject(me)}getColumnIndexes(re){const me=re[0].findAncestor("table"),Ue=[...new T(me)].filter(He=>re.includes(He.cell)).map(He=>He.column);return this._getFirstLastIndexesObject(Ue)}isSelectionRectangular(re){if(re.length<2||!this._areCellInTheSameTableSection(re))return!1;const me=new Set,Ue=new Set;let He=0;for(const Ut of re){const{row:en,column:Yt}=this.getCellLocation(Ut),In=parseInt(Ut.getAttribute("rowspan")||1),$n=parseInt(Ut.getAttribute("colspan")||1);me.add(en),Ue.add(Yt),In>1&&me.add(en+In-1),$n>1&&Ue.add(Yt+$n-1),He+=In*$n}return function(Ut,en){const Yt=Array.from(Ut.values()),In=Array.from(en.values()),$n=Math.max(...Yt),wr=Math.min(...Yt),Tr=Math.max(...In),qr=Math.min(...In);return($n-wr+1)*(Tr-qr+1)}(me,Ue)==He}sortRanges(re){return Array.from(re).sort(It)}_getFirstLastIndexesObject(re){const me=re.sort((Ue,He)=>Ue-He);return{first:me[0],last:me[me.length-1]}}_areCellInTheSameTableSection(re){const me=re[0].findAncestor("table"),Ue=this.getRowIndexes(re),He=parseInt(me.getAttribute("headingRows")||0);if(!this._areIndexesInSameSection(Ue,He))return!1;const At=parseInt(me.getAttribute("headingColumns")||0),Ut=this.getColumnIndexes(re);return this._areIndexesInSameSection(Ut,At)}_areIndexesInSameSection({first:re,last:me},Ue){return re<Ue==me<Ue}}function $e(Lt,re,me,Ue,He,At={}){for(let Ut=0;Ut<Ue;Ut++){const en=Lt.createElement("tableRow");Lt.insert(en,re,me),Qe(He,Lt,Lt.createPositionAt(en,"end"),At)}}function Qe(Lt,re,me,Ue={}){for(let He=0;He<Lt;He++)I(re,me,Ue)}function bt(Lt,re){if(Lt<re)return{newCellsSpan:1,updatedSpan:1};const me=Math.floor(Lt/re);return{newCellsSpan:me,updatedSpan:Lt-me*re+me}}function It(Lt,re){const me=Lt.start,Ue=re.start;return me.isBefore(Ue)?-1:1}class mn extends c.Command{refresh(){const re=this.editor.plugins.get(ln),me=re.getSelectedTableCells(this.editor.model.document.selection);this.isEnabled=re.isSelectionRectangular(me,this.editor.plugins.get(ln))}execute(){const re=this.editor.model,me=this.editor.plugins.get(ln);re.change(Ue=>{const He=me.getSelectedTableCells(re.document.selection),At=He.shift(),{mergeWidth:Ut,mergeHeight:en}=function(Yt,In,$n){let wr=0,Tr=0;for(const Qi of In){const{row:so,column:Do}=$n.getCellLocation(Qi);wr=je(Qi,Do,wr,"colspan"),Tr=je(Qi,so,Tr,"rowspan")}const{row:qr,column:di}=$n.getCellLocation(Yt),ai=wr-di,Ri=Tr-qr;return{mergeWidth:ai,mergeHeight:Ri}}(At,He,me);w("colspan",Ut,At,Ue),w("rowspan",en,At,Ue);for(const Yt of He)un(Yt,At,Ue);fe(At.findAncestor("table"),me),Ue.setSelection(At,"in")})}}function un(Lt,re,me){Be(Lt)||(Be(re)&&me.remove(me.createRangeIn(re)),me.move(me.createRangeIn(Lt),me.createPositionAt(re,"end"))),me.remove(Lt)}function Be(Lt){return Lt.childCount==1&&Lt.getChild(0).is("element","paragraph")&&Lt.getChild(0).isEmpty}function je(Lt,re,me,Ue){const He=parseInt(Lt.getAttribute(Ue)||1);return Math.max(me,re+He)}class $t extends c.Command{constructor(re){super(re),this.affectsData=!1}refresh(){const re=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=re.length>0}execute(){const re=this.editor.model,me=this.editor.plugins.get("TableUtils"),Ue=me.getSelectionAffectedTableCells(re.document.selection),He=me.getRowIndexes(Ue),At=Ue[0].findAncestor("table"),Ut=[];for(let en=He.first;en<=He.last;en++)for(const Yt of At.getChild(en).getChildren())Ut.push(re.createRangeOn(Yt));re.change(en=>{en.setSelection(Ut)})}}class et extends c.Command{constructor(re){super(re),this.affectsData=!1}refresh(){const re=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=re.length>0}execute(){const re=this.editor.plugins.get("TableUtils"),me=this.editor.model,Ue=re.getSelectionAffectedTableCells(me.document.selection),He=Ue[0],At=Ue.pop(),Ut=He.findAncestor("table"),en=re.getCellLocation(He),Yt=re.getCellLocation(At),In=Math.min(en.column,Yt.column),$n=Math.max(en.column,Yt.column),wr=[];for(const Tr of new T(Ut,{startColumn:In,endColumn:$n}))wr.push(me.createRangeOn(Tr.cell));me.change(Tr=>{Tr.setSelection(wr)})}}function Kt(Lt){Lt.document.registerPostFixer(re=>function(me,Ue){const He=Ue.document.differ.getChanges();let At=!1;const Ut=new Set;for(const en of He){let Yt;en.name=="table"&&en.type=="insert"&&(Yt=en.position.nodeAfter),en.name!="tableRow"&&en.name!="tableCell"||(Yt=en.position.findAncestor("table")),ht(en)&&(Yt=en.range.start.findAncestor("table")),Yt&&!Ut.has(Yt)&&(At=kn(Yt,me)||At,At=Tn(Yt,me)||At,Ut.add(Yt))}return At}(re,Lt))}function kn(Lt,re){let me=!1;const Ue=function(He){const At=parseInt(He.getAttribute("headingRows")||0),Ut=Array.from(He.getChildren()).reduce((Yt,In)=>In.is("element","tableRow")?Yt+1:Yt,0),en=[];for(const{row:Yt,cell:In,cellHeight:$n}of new T(He)){if($n<2)continue;const wr=Yt<At?At:Ut;if(Yt+$n>wr){const Tr=wr-Yt;en.push({cell:In,rowspan:Tr})}}return en}(Lt);if(Ue.length){me=!0;for(const He of Ue)w("rowspan",He.rowspan,He.cell,re,1)}return me}function Tn(Lt,re){let me=!1;const Ue=function(en){const Yt=new Array(en.childCount).fill(0);for(const{rowIndex:In}of new T(en,{includeAllSlots:!0}))Yt[In]++;return Yt}(Lt),He=[];for(const[en,Yt]of Ue.entries())!Yt&&Lt.getChild(en).is("element","tableRow")&&He.push(en);if(He.length){me=!0;for(const en of He.reverse())re.remove(Lt.getChild(en)),Ue.splice(en,1)}const At=Ue.filter((en,Yt)=>Lt.getChild(Yt).is("element","tableRow")),Ut=At[0];if(!At.every(en=>en===Ut)){const en=At.reduce((Yt,In)=>In>Yt?In:Yt,0);for(const[Yt,In]of At.entries()){const $n=en-In;if($n){for(let wr=0;wr<$n;wr++)I(re,re.createPositionAt(Lt.getChild(Yt),"end"));me=!0}}}return me}function ht(Lt){const re=Lt.type==="attribute",me=Lt.attributeKey;return re&&(me==="headingRows"||me==="colspan"||me==="rowspan")}function ot(Lt){Lt.document.registerPostFixer(re=>function(me,Ue){const He=Ue.document.differ.getChanges();let At=!1;for(const Ut of He)Ut.type=="insert"&&Ut.name=="table"&&(At=Je(Ut.position.nodeAfter,me)||At),Ut.type=="insert"&&Ut.name=="tableRow"&&(At=wt(Ut.position.nodeAfter,me)||At),Ut.type=="insert"&&Ut.name=="tableCell"&&(At=ft(Ut.position.nodeAfter,me)||At),vn(Ut)&&(At=ft(Ut.position.parent,me)||At);return At}(re,Lt))}function Je(Lt,re){let me=!1;for(const Ue of Lt.getChildren())Ue.is("element","tableRow")&&(me=wt(Ue,re)||me);return me}function wt(Lt,re){let me=!1;for(const Ue of Lt.getChildren())me=ft(Ue,re)||me;return me}function ft(Lt,re){if(Lt.childCount==0)return re.insertElement("paragraph",Lt),!0;const me=Array.from(Lt.getChildren()).filter(Ue=>Ue.is("$text"));for(const Ue of me)re.wrap(re.createRangeOn(Ue),"paragraph");return!!me.length}function vn(Lt){return!(!Lt.position||!Lt.position.parent.is("element","tableCell"))&&(Lt.type=="insert"&&Lt.name=="$text"||Lt.type=="remove")}function ut(Lt,re){if(!Lt.is("element","paragraph"))return!1;const me=re.toViewElement(Lt);return!!me&&R(Lt)!==me.is("element","span")}var Wt=s(62),ae=s.n(Wt),ne=s(482),ge={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};ae()(ne.Z,ge),ne.Z.locals;class ye extends c.Plugin{static get pluginName(){return"TableEditing"}static get requires(){return[ln]}init(){const re=this.editor,me=re.model,Ue=me.schema,He=re.conversion,At=re.plugins.get(ln);Ue.register("table",{inheritAllFrom:"$blockObject",allowAttributes:["headingRows","headingColumns"]}),Ue.register("tableRow",{allowIn:"table",isLimit:!0}),Ue.register("tableCell",{allowContentOf:"$container",allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),He.for("upcast").add(Ut=>{Ut.on("element:figure",(en,Yt,In)=>{if(!In.consumable.test(Yt.viewItem,{name:!0,classes:"table"}))return;const $n=function(qr){for(const di of qr.getChildren())if(di.is("element","table"))return di}(Yt.viewItem);if(!$n||!In.consumable.test($n,{name:!0}))return;In.consumable.consume(Yt.viewItem,{name:!0,classes:"table"});const wr=In.convertItem($n,Yt.modelCursor),Tr=(0,B.first)(wr.modelRange.getItems());Tr?(In.convertChildren(Yt.viewItem,In.writer.createPositionAt(Tr,"end")),In.updateConversionResult(Tr,Yt)):In.consumable.revert(Yt.viewItem,{name:!0,classes:"table"})})}),He.for("upcast").add(N()),He.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:b(At,{asWidget:!0})}),He.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:b(At)}),He.for("upcast").elementToElement({model:"tableRow",view:"tr"}),He.for("upcast").add(Ut=>{Ut.on("element:tr",(en,Yt)=>{Yt.viewItem.isEmpty&&Yt.modelCursor.index==0&&en.stop()},{priority:"high"})}),He.for("downcast").elementToElement({model:"tableRow",view:(Ut,{writer:en})=>Ut.isEmpty?en.createEmptyElement("tr"):en.createContainerElement("tr")}),He.for("upcast").elementToElement({model:"tableCell",view:"td"}),He.for("upcast").elementToElement({model:"tableCell",view:"th"}),He.for("upcast").add(D("td")),He.for("upcast").add(D("th")),He.for("editingDowncast").elementToElement({model:"tableCell",view:E({asWidget:!0})}),He.for("dataDowncast").elementToElement({model:"tableCell",view:E()}),He.for("editingDowncast").elementToElement({model:"paragraph",view:A({asWidget:!0}),converterPriority:"high"}),He.for("dataDowncast").elementToElement({model:"paragraph",view:A(),converterPriority:"high"}),He.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),He.for("upcast").attributeToAttribute({model:{key:"colspan",value:Xe("colspan")},view:"colspan"}),He.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),He.for("upcast").attributeToAttribute({model:{key:"rowspan",value:Xe("rowspan")},view:"rowspan"}),re.config.define("table.defaultHeadings.rows",0),re.config.define("table.defaultHeadings.columns",0),re.commands.add("insertTable",new H(re)),re.commands.add("insertTableRowAbove",new z(re,{order:"above"})),re.commands.add("insertTableRowBelow",new z(re,{order:"below"})),re.commands.add("insertTableColumnLeft",new V(re,{order:"left"})),re.commands.add("insertTableColumnRight",new V(re,{order:"right"})),re.commands.add("removeTableRow",new Ne(re)),re.commands.add("removeTableColumn",new Ye(re)),re.commands.add("splitTableCellVertically",new $(re,{direction:"vertically"})),re.commands.add("splitTableCellHorizontally",new $(re,{direction:"horizontally"})),re.commands.add("mergeTableCells",new mn(re)),re.commands.add("mergeTableCellRight",new Me(re,{direction:"right"})),re.commands.add("mergeTableCellLeft",new Me(re,{direction:"left"})),re.commands.add("mergeTableCellDown",new Me(re,{direction:"down"})),re.commands.add("mergeTableCellUp",new Me(re,{direction:"up"})),re.commands.add("setTableColumnHeader",new Ct(re)),re.commands.add("setTableRowHeader",new mt(re)),re.commands.add("selectTableRow",new $t(re)),re.commands.add("selectTableColumn",new et(re)),Kt(me),ot(me),this.listenTo(me.document,"change:data",()=>{(function(Ut,en){const Yt=Ut.document.differ;for(const In of Yt.getChanges()){let $n,wr=!1;if(In.type=="attribute"){const ai=In.range.start.nodeAfter;if(!ai||!ai.is("element","table")||In.attributeKey!="headingRows"&&In.attributeKey!="headingColumns")continue;$n=ai,wr=In.attributeKey=="headingRows"}else In.name!="tableRow"&&In.name!="tableCell"||($n=In.position.findAncestor("table"),wr=In.name=="tableRow");if(!$n)continue;const Tr=$n.getAttribute("headingRows")||0,qr=$n.getAttribute("headingColumns")||0,di=new T($n);for(const ai of di){const Ri=ai.row<Tr||ai.column<qr?"th":"td",Qi=en.mapper.toViewElement(ai.cell);Qi&&Qi.is("element")&&Qi.name!=Ri&&en.reconvertItem(wr?ai.cell.parent:ai.cell)}}})(me,re.editing),function(Ut,en){const Yt=Ut.document.differ,In=new Set;for(const $n of Yt.getChanges()){const wr=$n.type=="attribute"?$n.range.start.parent:$n.position.parent;wr.is("element","tableCell")&&In.add(wr)}for(const $n of In.values()){const wr=Array.from($n.getChildren()).filter(Tr=>ut(Tr,en.mapper));for(const Tr of wr)en.reconvertItem(Tr)}}(me,re.editing)})}}function Xe(Lt){return re=>{const me=parseInt(re.getAttribute(Lt));return Number.isNaN(me)||me<=0?null:me}}var Ze=s(273),lt=s(272),_t={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};ae()(lt.Z,_t),lt.Z.locals;class zt extends Ze.View{constructor(re){super(re);const me=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new B.KeystrokeHandler,this.focusTracker=new B.FocusTracker,this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",(Ue,He)=>`${He} \xD7 ${Ue}`),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":me.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck","ck-insert-table-dropdown__label"],"aria-hidden":!0},children:[{text:me.to("label")}]}],on:{mousedown:me.to(Ue=>{Ue.preventDefault()}),click:me.to(()=>{this.fire("execute")})}}),this.on("boxover",(Ue,He)=>{const{row:At,column:Ut}=He.target.dataset;this.items.get(10*(parseInt(At,10)-1)+(parseInt(Ut,10)-1)).focus()}),this.focusTracker.on("change:focusedElement",(Ue,He,At)=>{if(!At)return;const{row:Ut,column:en}=At.dataset;this.set({rows:parseInt(Ut),columns:parseInt(en)})}),this.on("change:columns",()=>this._highlightGridBoxes()),this.on("change:rows",()=>this._highlightGridBoxes())}render(){super.render(),(0,Ze.addKeyboardHandlingForGrid)({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:10,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection});for(const re of this.items)this.focusTracker.add(re.element);this.keystrokes.listenTo(this.element)}focus(){this.items.get(0).focus()}focusLast(){this.items.get(0).focus()}_highlightGridBoxes(){const re=this.rows,me=this.columns;this.items.map((Ue,He)=>{const At=Math.floor(He/10)<re&&He%10<me;Ue.set("isOn",At)})}_createGridButton(re,me,Ue,He){const At=new Ze.ButtonView(re);return At.set({label:He,class:"ck-insert-table-dropdown-grid-box"}),At.extendTemplate({attributes:{"data-row":me,"data-column":Ue}}),At}_createGridCollection(){const re=[];for(let me=0;me<100;me++){const Ue=Math.floor(me/10),He=me%10,At=`${Ue+1} \xD7 ${He+1}`;re.push(this._createGridButton(this.locale,Ue+1,He+1,At))}return this.createCollection(re)}}class Vt extends c.Plugin{static get pluginName(){return"TableUI"}init(){const re=this.editor,me=this.editor.t,Ue=re.locale.contentLanguageDirection==="ltr";re.ui.componentFactory.add("insertTable",He=>{const At=re.commands.get("insertTable"),Ut=(0,Ze.createDropdown)(He);let en;return Ut.bind("isEnabled").to(At),Ut.buttonView.set({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 6v3h4V6H3zm0 4v3h4v-3H3zm0 4v3h4v-3H3zm5 3h4v-3H8v3zm5 0h4v-3h-4v3zm4-4v-3h-4v3h4zm0-4V6h-4v3h4zm1.5 8a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 17V4c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13zM12 13v-3H8v3h4zm0-4V6H8v3h4z"/></svg>',label:me("Insert table"),tooltip:!0}),Ut.on("change:isOpen",()=>{en||(en=new zt(He),Ut.panelView.children.add(en),en.delegate("execute").to(Ut),Ut.on("execute",()=>{re.execute("insertTable",{rows:en.rows,columns:en.columns}),re.editing.view.focus()}))}),Ut}),re.ui.componentFactory.add("tableColumn",He=>{const At=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:me("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:Ue?"insertTableColumnLeft":"insertTableColumnRight",label:me("Insert column left")}},{type:"button",model:{commandName:Ue?"insertTableColumnRight":"insertTableColumnLeft",label:me("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:me("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:me("Select column")}}];return this._prepareDropdown(me("Column"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M18 7v1H2V7h16zm0 5v1H2v-1h16z" opacity=".6"/><path d="M14 1v18a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1zm-2 1H8v4h4V2zm0 6H8v4h4V8zm0 6H8v4h4v-4z"/></svg>',At,He)}),re.ui.componentFactory.add("tableRow",He=>{const At=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:me("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:me("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:me("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:me("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:me("Select row")}}];return this._prepareDropdown(me("Row"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v16h-1V2z" opacity=".6"/><path d="M1 6h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1 2v4h4V8H2zm6 0v4h4V8H8zm6 0v4h4V8h-4z"/></svg>',At,He)}),re.ui.componentFactory.add("mergeTableCells",He=>{const At=[{type:"button",model:{commandName:"mergeTableCellUp",label:me("Merge cell up")}},{type:"button",model:{commandName:Ue?"mergeTableCellRight":"mergeTableCellLeft",label:me("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:me("Merge cell down")}},{type:"button",model:{commandName:Ue?"mergeTableCellLeft":"mergeTableCellRight",label:me("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:me("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:me("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(me("Merge cells"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v7h-1V2zm6 5v1H2V7h16zM8 12v1H2v-1h6z" opacity=".6"/><path d="M7 7h12a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm1 2v9h10V9H8z"/></svg>',At,He)})}_prepareDropdown(re,me,Ue,He){const At=this.editor,Ut=(0,Ze.createDropdown)(He),en=this._fillDropdownWithListOptions(Ut,Ue);return Ut.buttonView.set({label:re,icon:me,tooltip:!0}),Ut.bind("isEnabled").toMany(en,"isEnabled",(...Yt)=>Yt.some(In=>In)),this.listenTo(Ut,"execute",Yt=>{At.execute(Yt.source.commandName),Yt.source instanceof Ze.SwitchButtonView||At.editing.view.focus()}),Ut}_prepareMergeSplitButtonDropdown(re,me,Ue,He){const At=this.editor,Ut=(0,Ze.createDropdown)(He,Ze.SplitButtonView),en="mergeTableCells",Yt=At.commands.get(en),In=this._fillDropdownWithListOptions(Ut,Ue);return Ut.buttonView.set({label:re,icon:me,tooltip:!0,isEnabled:!0}),Ut.bind("isEnabled").toMany([Yt,...In],"isEnabled",(...$n)=>$n.some(wr=>wr)),this.listenTo(Ut.buttonView,"execute",()=>{At.execute(en),At.editing.view.focus()}),this.listenTo(Ut,"execute",$n=>{At.execute($n.source.commandName),At.editing.view.focus()}),Ut}_fillDropdownWithListOptions(re,me){const Ue=this.editor,He=[],At=new B.Collection;for(const Ut of me)sn(Ut,Ue,He,At);return(0,Ze.addListToDropdown)(re,At),He}}function sn(Lt,re,me,Ue){const He=Lt.model=new Ze.Model(Lt.model),{commandName:At,bindIsOn:Ut}=Lt.model;if(Lt.type==="button"||Lt.type==="switchbutton"){const en=re.commands.get(At);me.push(en),He.set({commandName:At}),He.bind("isEnabled").to(en),Ut&&He.bind("isOn").to(en,"value")}He.set({withText:!0}),Ue.add(Lt)}var yn=s(475),dr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};ae()(yn.Z,dr),yn.Z.locals;class hr extends c.Plugin{static get pluginName(){return"TableSelection"}static get requires(){return[ln,ln]}init(){const re=this.editor,me=re.model,Ue=re.editing.view;this.listenTo(me,"deleteContent",(He,At)=>this._handleDeleteContent(He,At),{priority:"high"}),this.listenTo(Ue.document,"insertText",(He,At)=>this._handleInsertTextEvent(He,At),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const re=this.editor.plugins.get(ln),me=this.editor.model.document.selection,Ue=re.getSelectedTableCells(me);return Ue.length==0?null:Ue}getSelectionAsFragment(){const re=this.editor.plugins.get(ln),me=this.getSelectedTableCells();return me?this.editor.model.change(Ue=>{const He=Ue.createDocumentFragment(),{first:At,last:Ut}=re.getColumnIndexes(me),{first:en,last:Yt}=re.getRowIndexes(me),In=me[0].findAncestor("table");let $n=Yt,wr=Ut;if(re.isSelectionRectangular(me)){const qr={firstColumn:At,lastColumn:Ut,firstRow:en,lastRow:Yt};$n=ue(In,qr),wr=we(In,qr)}const Tr=ee(In,{startRow:en,startColumn:At,endRow:$n,endColumn:wr},Ue);return Ue.insert(Tr,He,0),He}):null}setCellSelection(re,me){const Ue=this._getCellsToSelect(re,me);this.editor.model.change(He=>{He.setSelection(Ue.cells.map(At=>He.createRangeOn(At)),{backward:Ue.backward})})}getFocusCell(){const re=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return re&&re.is("element","tableCell")?re:null}getAnchorCell(){const re=this.editor.model.document.selection,me=(0,B.first)(re.getRanges()).getContainedElement();return me&&me.is("element","tableCell")?me:null}_defineSelectionConverter(){const re=this.editor,me=new Set;re.conversion.for("editingDowncast").add(Ue=>Ue.on("selection",(He,At,Ut)=>{const en=Ut.writer;(function($n){for(const wr of me)$n.removeClass("ck-editor__editable_selected",wr);me.clear()})(en);const Yt=this.getSelectedTableCells();if(!Yt)return;for(const $n of Yt){const wr=Ut.mapper.toViewElement($n);en.addClass("ck-editor__editable_selected",wr),me.add(wr)}const In=Ut.mapper.toViewElement(Yt[Yt.length-1]);en.setSelection(In,0)},{priority:"lowest"}))}_enablePluginDisabling(){const re=this.editor;this.on("change:isEnabled",()=>{if(!this.isEnabled){const me=this.getSelectedTableCells();if(!me)return;re.model.change(Ue=>{const He=Ue.createPositionAt(me[0],0),At=re.model.schema.getNearestSelectionRange(He);Ue.setSelection(At)})}})}_handleDeleteContent(re,me){const Ue=this.editor.plugins.get(ln),[He,At]=me,Ut=this.editor.model,en=!At||At.direction=="backward",Yt=Ue.getSelectedTableCells(He);Yt.length&&(re.stop(),Ut.change(In=>{const $n=Yt[en?Yt.length-1:0];Ut.change(Tr=>{for(const qr of Yt)Ut.deleteContent(Tr.createSelection(qr,"in"))});const wr=Ut.schema.getNearestSelectionRange(In.createPositionAt($n,0));He.is("documentSelection")?In.setSelection(wr):He.setTo(wr)}))}_handleInsertTextEvent(re,me){const Ue=this.editor,He=Ue.model.document.selection,At=this.getSelectedTableCells(He);if(!At)return;const Ut=Ue.editing.view,en=Ue.editing.mapper,Yt=At.map(In=>Ut.createRangeOn(en.toViewElement(In)));me.selection=Ut.createSelection(Yt)}_getCellsToSelect(re,me){const Ue=this.editor.plugins.get("TableUtils"),He=Ue.getCellLocation(re),At=Ue.getCellLocation(me),Ut=Math.min(He.row,At.row),en=Math.max(He.row,At.row),Yt=Math.min(He.column,At.column),In=Math.max(He.column,At.column),$n=new Array(en-Ut+1).fill(null).map(()=>[]),wr={startRow:Ut,endRow:en,startColumn:Yt,endColumn:In};for(const{row:di,cell:ai}of new T(re.findAncestor("table"),wr))$n[di-Ut].push(ai);const Tr=At.row<He.row,qr=At.column<He.column;return Tr&&$n.reverse(),qr&&$n.forEach(di=>di.reverse()),{cells:$n.flat(),backward:Tr||qr}}}class Mr extends c.Plugin{static get pluginName(){return"TableClipboard"}static get requires(){return[hr,ln]}init(){const re=this.editor,me=re.editing.view.document;this.listenTo(me,"copy",(Ue,He)=>this._onCopyCut(Ue,He)),this.listenTo(me,"cut",(Ue,He)=>this._onCopyCut(Ue,He)),this.listenTo(re.model,"insertContent",(Ue,He)=>this._onInsertContent(Ue,...He),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(re,me){const Ue=this.editor.plugins.get(hr);if(!Ue.getSelectedTableCells()||re.name=="cut"&&this.editor.isReadOnly)return;me.preventDefault(),re.stop();const He=this.editor.data,At=this.editor.editing.view.document,Ut=He.toView(Ue.getSelectionAsFragment());At.fire("clipboardOutput",{dataTransfer:me.dataTransfer,content:Ut,method:re.name})}_onInsertContent(re,me,Ue){if(Ue&&!Ue.is("documentSelection"))return;const He=this.editor.model,At=this.editor.plugins.get(ln);let Ut=rr(me,He);if(!Ut)return;const en=At.getSelectionAffectedTableCells(He.document.selection);en.length?(re.stop(),He.change(Yt=>{const In={width:At.getColumns(Ut),height:At.getRows(Ut)},$n=function(Ri,Qi,so,Do){const Ro=Ri[0].findAncestor("table"),Rs=Do.getColumnIndexes(Ri),Ns=Do.getRowIndexes(Ri),Ls={firstColumn:Rs.first,lastColumn:Rs.last,firstRow:Ns.first,lastRow:Ns.last},Ba=Ri.length===1;return Ba&&(Ls.lastRow+=Qi.height-1,Ls.lastColumn+=Qi.width-1,function(Da,go,Wl,na){const Eo=na.getColumns(Da),Fs=na.getRows(Da);Wl>Eo&&na.insertColumns(Da,{at:Eo,columns:Wl-Eo}),go>Fs&&na.insertRows(Da,{at:Fs,rows:go-Fs})}(Ro,Ls.lastRow+1,Ls.lastColumn+1,Do)),Ba||!Do.isSelectionRectangular(Ri)?function(Da,go,Wl){const{firstRow:na,lastRow:Eo,firstColumn:Fs,lastColumn:_a}=go,Ya={first:na,last:Eo},Ss={first:Fs,last:_a};Ur(Da,Fs,Ya,Wl),Ur(Da,_a+1,Ya,Wl),Cr(Da,na,Ss,Wl),Cr(Da,Eo+1,Ss,Wl,na)}(Ro,Ls,so):(Ls.lastRow=ue(Ro,Ls),Ls.lastColumn=we(Ro,Ls)),Ls}(en,In,Yt,At),wr=$n.lastRow-$n.firstRow+1,Tr=$n.lastColumn-$n.firstColumn+1,qr={startRow:0,startColumn:0,endRow:Math.min(wr,In.height)-1,endColumn:Math.min(Tr,In.width)-1};Ut=ee(Ut,qr,Yt);const di=en[0].findAncestor("table"),ai=this._replaceSelectedCellsWithPasted(Ut,In,di,$n,Yt);if(this.editor.plugins.get("TableSelection").isEnabled){const Ri=At.sortRanges(ai.map(Qi=>Yt.createRangeOn(Qi)));Yt.setSelection(Ri)}else Yt.setSelection(ai[0],0)})):fe(Ut,At)}_replaceSelectedCellsWithPasted(re,me,Ue,He,At){const{width:Ut,height:en}=me,Yt=function(Ri,Qi,so){const Do=new Array(so).fill(null).map(()=>new Array(Qi).fill(null));for(const{column:Ro,row:Rs,cell:Ns}of new T(Ri))Do[Rs][Ro]=Ns;return Do}(re,Ut,en),In=[...new T(Ue,{startRow:He.firstRow,endRow:He.lastRow,startColumn:He.firstColumn,endColumn:He.lastColumn,includeAllSlots:!0})],$n=[];let wr;for(const Ri of In){const{row:Qi,column:so}=Ri;so===He.firstColumn&&(wr=Ri.getPositionBefore());const Do=Qi-He.firstRow,Ro=so-He.firstColumn,Rs=Yt[Do%en][Ro%Ut],Ns=Rs?At.cloneElement(Rs):null,Ls=this._replaceTableSlotCell(Ri,Ns,wr,At);Ls&&(Ie(Ls,Qi,so,He.lastRow,He.lastColumn,At),$n.push(Ls),wr=At.createPositionAfter(Ls))}const Tr=parseInt(Ue.getAttribute("headingRows")||0),qr=parseInt(Ue.getAttribute("headingColumns")||0),di=He.firstRow<Tr&&Tr<=He.lastRow,ai=He.firstColumn<qr&&qr<=He.lastColumn;if(di){const Ri=Cr(Ue,Tr,{first:He.firstColumn,last:He.lastColumn},At,He.firstRow);$n.push(...Ri)}if(ai){const Ri=Ur(Ue,qr,{first:He.firstRow,last:He.lastRow},At);$n.push(...Ri)}return $n}_replaceTableSlotCell(re,me,Ue,He){const{cell:At,isAnchor:Ut}=re;return Ut&&He.remove(At),me?(He.insert(me,Ue),me):null}getTableIfOnlyTableInContent(re,me){return rr(re,me)}}function rr(Lt,re){if(!Lt.is("documentFragment")&&!Lt.is("element"))return null;if(Lt.is("element","table"))return Lt;if(Lt.childCount==1&&Lt.getChild(0).is("element","table"))return Lt.getChild(0);const me=re.createRangeIn(Lt);for(const Ue of me.getItems())if(Ue.is("element","table")){const He=re.createRange(me.start,re.createPositionBefore(Ue));if(re.hasContent(He,{ignoreWhitespaces:!0}))return null;const At=re.createRange(re.createPositionAfter(Ue),me.end);return re.hasContent(At,{ignoreWhitespaces:!0})?null:Ue}return null}function Cr(Lt,re,me,Ue,He=0){if(!(re<1))return q(Lt,re,He).filter(({column:At,cellWidth:Ut})=>$r(At,Ut,me)).map(({cell:At})=>oe(At,re,Ue))}function Ur(Lt,re,me,Ue){if(!(re<1))return X(Lt,re).filter(({row:He,cellHeight:At})=>$r(He,At,me)).map(({cell:He,column:At})=>pe(He,At,re,Ue))}function $r(Lt,re,me){const Ue=Lt+re-1,{first:He,last:At}=me;return Lt>=He&&Lt<=At||Lt<He&&Ue>=He}class li extends c.Plugin{static get pluginName(){return"TableKeyboard"}static get requires(){return[hr,ln]}init(){const re=this.editor.editing.view.document;this.listenTo(re,"arrowKey",(...me)=>this._onArrowKey(...me),{context:"table"}),this.listenTo(re,"tab",(...me)=>this._handleTabOnSelectedTable(...me),{context:"figure"}),this.listenTo(re,"tab",(...me)=>this._handleTab(...me),{context:["th","td"]})}_handleTabOnSelectedTable(re,me){const Ue=this.editor,He=Ue.model.document.selection.getSelectedElement();He&&He.is("element","table")&&(me.preventDefault(),me.stopPropagation(),re.stop(),Ue.model.change(At=>{At.setSelection(At.createRangeIn(He.getChild(0).getChild(0)))}))}_handleTab(re,me){const Ue=this.editor,He=this.editor.plugins.get(ln),At=Ue.model.document.selection,Ut=!me.shiftKey;let en=He.getTableCellsContainingSelection(At)[0];if(en||(en=this.editor.plugins.get("TableSelection").getFocusCell()),!en)return;me.preventDefault(),me.stopPropagation(),re.stop();const Yt=en.parent,In=Yt.parent,$n=In.getChildIndex(Yt),wr=Yt.getChildIndex(en),Tr=wr===0;if(!Ut&&Tr&&$n===0)return void Ue.model.change(Ri=>{Ri.setSelection(Ri.createRangeOn(In))});const qr=wr===Yt.childCount-1,di=$n===He.getRows(In)-1;if(Ut&&di&&qr&&(Ue.execute("insertTableRowBelow"),$n===He.getRows(In)-1))return void Ue.model.change(Ri=>{Ri.setSelection(Ri.createRangeOn(In))});let ai;if(Ut&&qr)ai=In.getChild($n+1).getChild(0);else if(!Ut&&Tr){const Ri=In.getChild($n-1);ai=Ri.getChild(Ri.childCount-1)}else ai=Yt.getChild(wr+(Ut?1:-1));Ue.model.change(Ri=>{Ri.setSelection(Ri.createRangeIn(ai))})}_onArrowKey(re,me){const Ue=this.editor,He=me.keyCode,At=(0,B.getLocalizedArrowKeyCodeDirection)(He,Ue.locale.contentLanguageDirection);this._handleArrowKeys(At,me.shiftKey)&&(me.preventDefault(),me.stopPropagation(),re.stop())}_handleArrowKeys(re,me){const Ue=this.editor.plugins.get(ln),He=this.editor.model,At=He.document.selection,Ut=["right","down"].includes(re),en=Ue.getSelectedTableCells(At);if(en.length){let In;return In=me?this.editor.plugins.get("TableSelection").getFocusCell():Ut?en[en.length-1]:en[0],this._navigateFromCellInDirection(In,re,me),!0}const Yt=At.focus.findAncestor("tableCell");if(!Yt)return!1;if(!At.isCollapsed)if(me){if(At.isBackward==Ut&&!At.containsEntireContent(Yt))return!1}else{const In=At.getSelectedElement();if(!In||!He.schema.isObject(In))return!1}return!!this._isSelectionAtCellEdge(At,Yt,Ut)&&(this._navigateFromCellInDirection(Yt,re,me),!0)}_isSelectionAtCellEdge(re,me,Ue){const He=this.editor.model,At=this.editor.model.schema,Ut=Ue?re.getLastPosition():re.getFirstPosition();if(!At.getLimitElement(Ut).is("element","tableCell"))return He.createPositionAt(me,Ue?"end":0).isTouching(Ut);const en=He.createSelection(Ut);return He.modifySelection(en,{direction:Ue?"forward":"backward"}),Ut.isEqual(en.focus)}_navigateFromCellInDirection(re,me,Ue=!1){const He=this.editor.model,At=re.findAncestor("table"),Ut=[...new T(At,{includeAllSlots:!0})],{row:en,column:Yt}=Ut[Ut.length-1],In=Ut.find(({cell:ai})=>ai==re);let{row:$n,column:wr}=In;switch(me){case"left":wr--;break;case"up":$n--;break;case"right":wr+=In.cellWidth;break;case"down":$n+=In.cellHeight}if($n<0||$n>en||wr<0&&$n<=0||wr>Yt&&$n>=en)return void He.change(ai=>{ai.setSelection(ai.createRangeOn(At))});wr<0?(wr=Ue?0:Yt,$n--):wr>Yt&&(wr=Ue?Yt:0,$n++);const Tr=Ut.find(ai=>ai.row==$n&&ai.column==wr).cell,qr=["right","down"].includes(me),di=this.editor.plugins.get("TableSelection");if(Ue&&di.isEnabled){const ai=di.getAnchorCell()||re;di.setCellSelection(ai,Tr)}else{const ai=He.createPositionAt(Tr,qr?0:"end");He.change(Ri=>{Ri.setSelection(ai)})}}}var ri=s(492);class Bt extends ri.DomEventObserver{constructor(re){super(re),this.domEventType=["mousemove","mouseleave"]}onDomEvent(re){this.fire(re.type,re)}}class Et extends c.Plugin{static get pluginName(){return"TableMouse"}static get requires(){return[hr,ln]}init(){this.editor.editing.view.addObserver(Bt),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const re=this.editor,me=re.plugins.get(ln);let Ue=!1;const He=re.plugins.get(hr);this.listenTo(re.editing.view.document,"mousedown",(At,Ut)=>{const en=re.model.document.selection;if(!this.isEnabled||!He.isEnabled||!Ut.domEvent.shiftKey)return;const Yt=He.getAnchorCell()||me.getTableCellsContainingSelection(en)[0];if(!Yt)return;const In=this._getModelTableCellFromDomEvent(Ut);In&&bn(Yt,In)&&(Ue=!0,He.setCellSelection(Yt,In),Ut.preventDefault())}),this.listenTo(re.editing.view.document,"mouseup",()=>{Ue=!1}),this.listenTo(re.editing.view.document,"selectionChange",At=>{Ue&&At.stop()},{priority:"highest"})}_enableMouseDragSelection(){const re=this.editor;let me,Ue,He=!1,At=!1;const Ut=re.plugins.get(hr);this.listenTo(re.editing.view.document,"mousedown",(en,Yt)=>{this.isEnabled&&Ut.isEnabled&&(Yt.domEvent.shiftKey||Yt.domEvent.ctrlKey||Yt.domEvent.altKey||(me=this._getModelTableCellFromDomEvent(Yt)))}),this.listenTo(re.editing.view.document,"mousemove",(en,Yt)=>{if(!Yt.domEvent.buttons||!me)return;const In=this._getModelTableCellFromDomEvent(Yt);In&&bn(me,In)&&(Ue=In,He||Ue==me||(He=!0)),He&&(At=!0,Ut.setCellSelection(me,Ue),Yt.preventDefault())}),this.listenTo(re.editing.view.document,"mouseup",()=>{He=!1,At=!1,me=null,Ue=null}),this.listenTo(re.editing.view.document,"selectionChange",en=>{At&&en.stop()},{priority:"highest"})}_getModelTableCellFromDomEvent(re){const me=re.target,Ue=this.editor.editing.view.createPositionAt(me,0);return this.editor.editing.mapper.toModelPosition(Ue).parent.findAncestor("tableCell",{includeSelf:!0})}}function bn(Lt,re){return Lt.parent.parent==re.parent.parent}var cn=s(660),Yn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};ae()(cn.Z,Yn),cn.Z.locals;class on extends c.Plugin{static get requires(){return[ye,Vt,hr,Et,li,Mr,h.Widget]}static get pluginName(){return"Table"}}class ze extends c.Plugin{static get pluginName(){return"PlainTableOutput"}static get requires(){return[on]}init(){const re=this.editor;re.conversion.for("dataDowncast").elementToStructure({model:"table",view:Le,converterPriority:"high"}),re.plugins.has("TableCaption")&&re.conversion.for("dataDowncast").elementToElement({model:"caption",view:(me,{writer:Ue})=>{if(me.parent.name==="table")return Ue.createContainerElement("caption")},converterPriority:"high"}),re.plugins.has("TableProperties")&&function(me){const Ue={"border-width":"tableBorderWidth","border-color":"tableBorderColor","border-style":"tableBorderStyle","background-color":"tableBackgroundColor"};for(const[He,At]of Object.entries(Ue))me.conversion.for("dataDowncast").add(Ut=>Ut.on(`attribute:${At}:table`,(en,Yt,In)=>{const{item:$n,attributeNewValue:wr}=Yt,{mapper:Tr,writer:qr}=In;if(!In.consumable.consume($n,en.name))return;const di=Tr.toViewElement($n);wr?qr.setStyle(He,wr,di):qr.removeStyle(He,di)},{priority:"high"}))}(re)}}function Le(Lt,{writer:re}){const me=Lt.getAttribute("headingRows")||0,Ue=re.createSlot(In=>In.is("element","tableRow")&&In.index<me),He=re.createSlot(In=>In.is("element","tableRow")&&In.index>=me),At=re.createSlot(In=>!In.is("element","tableRow")),Ut=re.createContainerElement("thead",null,Ue),en=re.createContainerElement("tbody",null,He),Yt=[];return me&&Yt.push(Ut),me<Lt.childCount&&Yt.push(en),re.createContainerElement("table",null,[At,...Yt])}function Ht(Lt){const re=Lt.getSelectedElement();return re&&tr(re)?re:null}function Mn(Lt){const re=Lt.getFirstPosition();if(!re)return null;let me=re.parent;for(;me;){if(me.is("element")&&tr(me))return me;me=me.parent}return null}function tr(Lt){return!!Lt.getCustomProperty("table")&&(0,h.isWidget)(Lt)}class Sr extends c.Plugin{static get requires(){return[h.WidgetToolbarRepository]}static get pluginName(){return"TableToolbar"}afterInit(){const re=this.editor,me=re.t,Ue=re.plugins.get(h.WidgetToolbarRepository),He=re.config.get("table.contentToolbar"),At=re.config.get("table.tableToolbar");He&&Ue.register("tableContent",{ariaLabel:me("Table toolbar"),items:He,getRelatedElement:Mn}),At&&Ue.register("table",{ariaLabel:me("Table toolbar"),items:At,getRelatedElement:Ht})}}var Xr=s(252),gi={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};ae()(Xr.Z,gi),Xr.Z.locals;class Pi extends Ze.View{constructor(re,me){super(re),this.set("value",""),this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isEmpty",!0),this.options=me,this.focusTracker=new B.FocusTracker,this._focusables=new Ze.ViewCollection,this.dropdownView=this._createDropdownView(),this.inputView=this._createInputTextView(),this.keystrokes=new B.KeystrokeHandler,this._stillTyping=!1,this._focusCycler=new Ze.FocusCycler({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-input-color"]},children:[this.dropdownView,this.inputView]}),this.on("change:value",(Ue,He,At)=>this._setInputValue(At))}render(){super.render(),this.keystrokes.listenTo(this.dropdownView.panelView.element)}focus(){this.inputView.focus()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createDropdownView(){const re=this.locale,me=re.t,Ue=this.bindTemplate,He=this._createColorGrid(re),At=(0,Ze.createDropdown)(re),Ut=new Ze.View,en=this._createRemoveColorButton();return Ut.setTemplate({tag:"span",attributes:{class:["ck","ck-input-color__button__preview"],style:{backgroundColor:Ue.to("value")}},children:[{tag:"span",attributes:{class:["ck","ck-input-color__button__preview__no-color-indicator",Ue.if("value","ck-hidden",Yt=>Yt!="")]}}]}),At.buttonView.extendTemplate({attributes:{class:"ck-input-color__button"}}),At.buttonView.children.add(Ut),At.buttonView.label=me("Color picker"),At.buttonView.tooltip=!0,At.panelPosition=re.uiLanguageDirection==="rtl"?"se":"sw",At.panelView.children.add(en),At.panelView.children.add(He),At.bind("isEnabled").to(this,"isReadOnly",Yt=>!Yt),this._focusables.add(en),this._focusables.add(He),this.focusTracker.add(en.element),this.focusTracker.add(He.element),At}_createInputTextView(){const re=this.locale,me=new Ze.InputTextView(re);return me.extendTemplate({on:{blur:me.bindTemplate.to("blur")}}),me.value=this.value,me.bind("isReadOnly","hasError").to(this),this.bind("isFocused","isEmpty").to(me),me.on("input",()=>{const Ue=me.element.value,He=this.options.colorDefinitions.find(At=>Ue===At.label);this._stillTyping=!0,this.value=He&&He.color||Ue}),me.on("blur",()=>{this._stillTyping=!1,this._setInputValue(me.element.value)}),me.delegate("input").to(this),me}_createRemoveColorButton(){const re=this.locale,me=re.t,Ue=new Ze.ButtonView(re),He=this.options.defaultColorValue||"",At=me(He?"Restore default":"Remove color");return Ue.class="ck-input-color__remove-color",Ue.withText=!0,Ue.icon=c.icons.eraser,Ue.label=At,Ue.on("execute",()=>{this.value=He,this.dropdownView.isOpen=!1,this.fire("input")}),Ue}_createColorGrid(re){const me=new Ze.ColorGridView(re,{colorDefinitions:this.options.colorDefinitions,columns:this.options.columns});return me.on("execute",(Ue,He)=>{this.value=He.value,this.dropdownView.isOpen=!1,this.fire("input")}),me.bind("selectedColor").to(this,"value"),me}_setInputValue(re){if(!this._stillTyping){const me=ii(re),Ue=this.options.colorDefinitions.find(He=>me===ii(He.color));this.inputView.value=Ue?Ue.label:re||""}}}function ii(Lt){return Lt.replace(/([(,])\s+/g,"$1").replace(/^\s+|\s+(?=[),\s]|$)/g,"").replace(/,|\s/g," ")}const vr=Lt=>Lt==="";function at(Lt){return{none:Lt("None"),solid:Lt("Solid"),dotted:Lt("Dotted"),dashed:Lt("Dashed"),double:Lt("Double"),groove:Lt("Groove"),ridge:Lt("Ridge"),inset:Lt("Inset"),outset:Lt("Outset")}}function it(Lt){return Lt('The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".')}function Re(Lt){return Lt('The value is invalid. Try "10px" or "2em" or simply "2".')}function ke(Lt){return Lt=Lt.trim(),vr(Lt)||(0,ri.isColor)(Lt)}function Pe(Lt){return Lt=Lt.trim(),vr(Lt)||ur(Lt)||(0,ri.isLength)(Lt)||(0,ri.isPercentage)(Lt)}function Te(Lt){return Lt=Lt.trim(),vr(Lt)||ur(Lt)||(0,ri.isLength)(Lt)}function Mt(Lt,re){const me=new B.Collection,Ue=at(Lt.t);for(const He in Ue){const At={type:"button",model:new Ze.Model({_borderStyleValue:He,label:Ue[He],withText:!0})};He==="none"?At.model.bind("isOn").to(Lt,"borderStyle",Ut=>re==="none"?!Ut:Ut===He):At.model.bind("isOn").to(Lt,"borderStyle",Ut=>Ut===He),me.add(At)}return me}function qt(Lt){const{view:re,icons:me,toolbar:Ue,labels:He,propertyName:At,nameToValue:Ut,defaultValue:en}=Lt;for(const Yt in He){const In=new Ze.ButtonView(re.locale);In.set({label:He[Yt],icon:me[Yt],tooltip:He[Yt]});const $n=Ut?Ut(Yt):Yt;In.bind("isOn").to(re,At,wr=>{let Tr=wr;return wr===""&&en&&(Tr=en),$n===Tr}),In.on("execute",()=>{re[At]=$n}),Ue.items.add(In)}}const Rn=[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}];function Qn(Lt){return(re,me,Ue)=>{const He=new Pi(re.locale,{colorDefinitions:(At=Lt.colorConfig,At.map(Ut=>({color:Ut.model,label:Ut.label,options:{hasBorder:Ut.hasBorder}}))),columns:Lt.columns,defaultColorValue:Lt.defaultColorValue});var At;return He.inputView.set({id:me,ariaDescribedById:Ue}),He.bind("isReadOnly").to(re,"isEnabled",Ut=>!Ut),He.bind("hasError").to(re,"errorText",Ut=>!!Ut),He.on("input",()=>{re.errorText=null}),re.bind("isEmpty","isFocused").to(He),He}}function ur(Lt){const re=parseFloat(Lt);return!Number.isNaN(re)&&Lt===String(re)}var On=s(333),ct={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};ae()(On.Z,ct),On.Z.locals;class Zt extends Ze.View{constructor(re,me={}){super(re);const Ue=this.bindTemplate;this.set("class",me.class||null),this.children=this.createCollection(),me.children&&me.children.forEach(He=>this.children.add(He)),this.set("_role",null),this.set("_ariaLabelledBy",null),me.labelView&&this.set({_role:"group",_ariaLabelledBy:me.labelView.id}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-form__row",Ue.to("class")],role:Ue.to("_role"),"aria-labelledby":Ue.to("_ariaLabelledBy")},children:this.children})}}var Cn=s(934),Pn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};ae()(Cn.Z,Pn),Cn.Z.locals;var Kn=s(686),Rt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};ae()(Kn.Z,Rt),Kn.Z.locals;var Ke=s(773),Oe={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};ae()(Ke.Z,Oe),Ke.Z.locals;const Ge={left:c.icons.alignLeft,center:c.icons.alignCenter,right:c.icons.alignRight,justify:c.icons.alignJustify,top:c.icons.alignTop,middle:c.icons.alignMiddle,bottom:c.icons.alignBottom};class Ft extends Ze.View{constructor(re,me){super(re),this.set({borderStyle:"",borderWidth:"",borderColor:"",padding:"",backgroundColor:"",width:"",height:"",horizontalAlignment:"",verticalAlignment:""}),this.options=me;const{borderStyleDropdown:Ue,borderWidthInput:He,borderColorInput:At,borderRowLabel:Ut}=this._createBorderFields(),{backgroundRowLabel:en,backgroundInput:Yt}=this._createBackgroundFields(),{widthInput:In,operatorLabel:$n,heightInput:wr,dimensionsLabel:Tr}=this._createDimensionFields(),{horizontalAlignmentToolbar:qr,verticalAlignmentToolbar:di,alignmentLabel:ai}=this._createAlignmentFields();this.focusTracker=new B.FocusTracker,this.keystrokes=new B.KeystrokeHandler,this.children=this.createCollection(),this.borderStyleDropdown=Ue,this.borderWidthInput=He,this.borderColorInput=At,this.backgroundInput=Yt,this.paddingInput=this._createPaddingField(),this.widthInput=In,this.heightInput=wr,this.horizontalAlignmentToolbar=qr,this.verticalAlignmentToolbar=di;const{saveButtonView:Ri,cancelButtonView:Qi}=this._createActionButtons();this.saveButtonView=Ri,this.cancelButtonView=Qi,this._focusables=new Ze.ViewCollection,this._focusCycler=new Ze.FocusCycler({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children.add(new Ze.FormHeaderView(re,{label:this.t("Cell properties")})),this.children.add(new Zt(re,{labelView:Ut,children:[Ut,Ue,At,He],class:"ck-table-form__border-row"})),this.children.add(new Zt(re,{labelView:en,children:[en,Yt],class:"ck-table-form__background-row"})),this.children.add(new Zt(re,{children:[new Zt(re,{labelView:Tr,children:[Tr,In,$n,wr],class:"ck-table-form__dimensions-row"}),new Zt(re,{children:[this.paddingInput],class:"ck-table-cell-properties-form__padding-row"})]})),this.children.add(new Zt(re,{labelView:ai,children:[ai,qr,di],class:"ck-table-cell-properties-form__alignment-row"})),this.children.add(new Zt(re,{children:[this.saveButtonView,this.cancelButtonView],class:"ck-table-form__action-row"})),this.setTemplate({tag:"form",attributes:{class:["ck","ck-form","ck-table-form","ck-table-cell-properties-form"],tabindex:"-1"},children:this.children})}render(){super.render(),(0,Ze.submitHandler)({view:this}),[this.borderStyleDropdown,this.borderColorInput,this.borderColorInput.fieldView.dropdownView.buttonView,this.borderWidthInput,this.backgroundInput,this.backgroundInput.fieldView.dropdownView.buttonView,this.widthInput,this.heightInput,this.paddingInput,this.horizontalAlignmentToolbar,this.verticalAlignmentToolbar,this.saveButtonView,this.cancelButtonView].forEach(re=>{this._focusables.add(re),this.focusTracker.add(re.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createBorderFields(){const re=this.options.defaultTableCellProperties,me={style:re.borderStyle,width:re.borderWidth,color:re.borderColor},Ue=Qn({colorConfig:this.options.borderColors,columns:5,defaultColorValue:me.color}),He=this.locale,At=this.t,Ut=new Ze.LabelView(He);Ut.text=At("Border");const en=at(At),Yt=new Ze.LabeledFieldView(He,Ze.createLabeledDropdown);Yt.set({label:At("Style"),class:"ck-table-form__border-style"}),Yt.fieldView.buttonView.set({isOn:!1,withText:!0,tooltip:At("Style")}),Yt.fieldView.buttonView.bind("label").to(this,"borderStyle",wr=>en[wr||"none"]),Yt.fieldView.on("execute",wr=>{this.borderStyle=wr.source._borderStyleValue}),Yt.bind("isEmpty").to(this,"borderStyle",wr=>!wr),(0,Ze.addListToDropdown)(Yt.fieldView,Mt(this,me.style));const In=new Ze.LabeledFieldView(He,Ze.createLabeledInputText);In.set({label:At("Width"),class:"ck-table-form__border-width"}),In.fieldView.bind("value").to(this,"borderWidth"),In.bind("isEnabled").to(this,"borderStyle",Qt),In.fieldView.on("input",()=>{this.borderWidth=In.fieldView.element.value});const $n=new Ze.LabeledFieldView(He,Ue);return $n.set({label:At("Color"),class:"ck-table-form__border-color"}),$n.fieldView.bind("value").to(this,"borderColor"),$n.bind("isEnabled").to(this,"borderStyle",Qt),$n.fieldView.on("input",()=>{this.borderColor=$n.fieldView.value}),this.on("change:borderStyle",(wr,Tr,qr,di)=>{Qt(qr)||(this.borderColor="",this.borderWidth=""),Qt(di)||(this.borderColor=me.color,this.borderWidth=me.width)}),{borderRowLabel:Ut,borderStyleDropdown:Yt,borderColorInput:$n,borderWidthInput:In}}_createBackgroundFields(){const re=this.locale,me=this.t,Ue=new Ze.LabelView(re);Ue.text=me("Background");const He=Qn({colorConfig:this.options.backgroundColors,columns:5,defaultColorValue:this.options.defaultTableCellProperties.backgroundColor}),At=new Ze.LabeledFieldView(re,He);return At.set({label:me("Color"),class:"ck-table-cell-properties-form__background"}),At.fieldView.bind("value").to(this,"backgroundColor"),At.fieldView.on("input",()=>{this.backgroundColor=At.fieldView.value}),{backgroundRowLabel:Ue,backgroundInput:At}}_createDimensionFields(){const re=this.locale,me=this.t,Ue=new Ze.LabelView(re);Ue.text=me("Dimensions");const He=new Ze.LabeledFieldView(re,Ze.createLabeledInputText);He.set({label:me("Width"),class:"ck-table-form__dimensions-row__width"}),He.fieldView.bind("value").to(this,"width"),He.fieldView.on("input",()=>{this.width=He.fieldView.element.value});const At=new Ze.View(re);At.setTemplate({tag:"span",attributes:{class:["ck-table-form__dimension-operator"]},children:[{text:"\xD7"}]});const Ut=new Ze.LabeledFieldView(re,Ze.createLabeledInputText);return Ut.set({label:me("Height"),class:"ck-table-form__dimensions-row__height"}),Ut.fieldView.bind("value").to(this,"height"),Ut.fieldView.on("input",()=>{this.height=Ut.fieldView.element.value}),{dimensionsLabel:Ue,widthInput:He,operatorLabel:At,heightInput:Ut}}_createPaddingField(){const re=this.locale,me=this.t,Ue=new Ze.LabeledFieldView(re,Ze.createLabeledInputText);return Ue.set({label:me("Padding"),class:"ck-table-cell-properties-form__padding"}),Ue.fieldView.bind("value").to(this,"padding"),Ue.fieldView.on("input",()=>{this.padding=Ue.fieldView.element.value}),Ue}_createAlignmentFields(){const re=this.locale,me=this.t,Ue=new Ze.LabelView(re);Ue.text=me("Table cell text alignment");const He=new Ze.ToolbarView(re),At=this.locale.contentLanguageDirection==="rtl";He.set({isCompact:!0,ariaLabel:me("Horizontal text alignment toolbar")}),qt({view:this,icons:Ge,toolbar:He,labels:this._horizontalAlignmentLabels,propertyName:"horizontalAlignment",nameToValue:en=>{if(At){if(en==="left")return"right";if(en==="right")return"left"}return en},defaultValue:this.options.defaultTableCellProperties.horizontalAlignment});const Ut=new Ze.ToolbarView(re);return Ut.set({isCompact:!0,ariaLabel:me("Vertical text alignment toolbar")}),qt({view:this,icons:Ge,toolbar:Ut,labels:this._verticalAlignmentLabels,propertyName:"verticalAlignment",defaultValue:this.options.defaultTableCellProperties.verticalAlignment}),{horizontalAlignmentToolbar:He,verticalAlignmentToolbar:Ut,alignmentLabel:Ue}}_createActionButtons(){const re=this.locale,me=this.t,Ue=new Ze.ButtonView(re),He=new Ze.ButtonView(re),At=[this.borderWidthInput,this.borderColorInput,this.backgroundInput,this.paddingInput];return Ue.set({label:me("Save"),icon:c.icons.check,class:"ck-button-save",type:"submit",withText:!0}),Ue.bind("isEnabled").toMany(At,"errorText",(...Ut)=>Ut.every(en=>!en)),He.set({label:me("Cancel"),icon:c.icons.cancel,class:"ck-button-cancel",withText:!0}),He.delegate("execute").to(this,"cancel"),{saveButtonView:Ue,cancelButtonView:He}}get _horizontalAlignmentLabels(){const re=this.locale,me=this.t,Ue=me("Align cell text to the left"),He=me("Align cell text to the center"),At=me("Align cell text to the right"),Ut=me("Justify cell text");return re.uiLanguageDirection==="rtl"?{right:At,center:He,left:Ue,justify:Ut}:{left:Ue,center:He,right:At,justify:Ut}}get _verticalAlignmentLabels(){const re=this.t;return{top:re("Align cell text to the top"),middle:re("Align cell text to the middle"),bottom:re("Align cell text to the bottom")}}}function Qt(Lt){return Lt!=="none"}const wn=function(Lt){var re=typeof Lt;return Lt!=null&&(re=="object"||re=="function")},Gn=typeof t.g=="object"&&t.g&&t.g.Object===Object&&t.g;var ir=typeof self=="object"&&self&&self.Object===Object&&self;const br=Gn||ir||Function("return this")(),fr=function(){return br.Date.now()};var Er=/\s/;const Or=function(Lt){for(var re=Lt.length;re--&&Er.test(Lt.charAt(re)););return re};var oi=/^\s+/;const si=function(Lt){return Lt&&Lt.slice(0,Or(Lt)+1).replace(oi,"")},Fi=br.Symbol;var $i=Object.prototype,Vi=$i.hasOwnProperty,Bn=$i.toString,nt=Fi?Fi.toStringTag:void 0;const ve=function(Lt){var re=Vi.call(Lt,nt),me=Lt[nt];try{Lt[nt]=void 0;var Ue=!0}catch{}var He=Bn.call(Lt);return Ue&&(re?Lt[nt]=me:delete Lt[nt]),He};var he=Object.prototype.toString;const Ae=function(Lt){return he.call(Lt)};var tt="[object Null]",St="[object Undefined]",kt=Fi?Fi.toStringTag:void 0;const Jt=function(Lt){return Lt==null?Lt===void 0?St:tt:kt&&kt in Object(Lt)?ve(Lt):Ae(Lt)},gt=function(Lt){return Lt!=null&&typeof Lt=="object"};var dn="[object Symbol]";const Xt=function(Lt){return typeof Lt=="symbol"||gt(Lt)&&Jt(Lt)==dn};var hn=NaN,Sn=/^[-+]0x[0-9a-f]+$/i,Jn=/^0b[01]+$/i,Vn=/^0o[0-7]+$/i,ar=parseInt;const Vr=function(Lt){if(typeof Lt=="number")return Lt;if(Xt(Lt))return hn;if(wn(Lt)){var re=typeof Lt.valueOf=="function"?Lt.valueOf():Lt;Lt=wn(re)?re+"":re}if(typeof Lt!="string")return Lt===0?Lt:+Lt;Lt=si(Lt);var me=Jn.test(Lt);return me||Vn.test(Lt)?ar(Lt.slice(2),me?2:8):Sn.test(Lt)?hn:+Lt};var Jr="Expected a function",yi=Math.max,Ii=Math.min;const ji=function(Lt,re,me){var Ue,He,At,Ut,en,Yt,In=0,$n=!1,wr=!1,Tr=!0;if(typeof Lt!="function")throw new TypeError(Jr);function qr(so){var Do=Ue,Ro=He;return Ue=He=void 0,In=so,Ut=Lt.apply(Ro,Do)}function di(so){var Do=so-Yt;return Yt===void 0||Do>=re||Do<0||wr&&so-In>=At}function ai(){var so=fr();if(di(so))return Ri(so);en=setTimeout(ai,function(Do){var Ro=re-(Do-Yt);return wr?Ii(Ro,At-(Do-In)):Ro}(so))}function Ri(so){return en=void 0,Tr&&Ue?qr(so):(Ue=He=void 0,Ut)}function Qi(){var so=fr(),Do=di(so);if(Ue=arguments,He=this,Yt=so,Do){if(en===void 0)return function(Ro){return In=Ro,en=setTimeout(ai,re),$n?qr(Ro):Ut}(Yt);if(wr)return clearTimeout(en),en=setTimeout(ai,re),qr(Yt)}return en===void 0&&(en=setTimeout(ai,re)),Ut}return re=Vr(re)||0,wn(me)&&($n=!!me.leading,At=(wr="maxWait"in me)?yi(Vr(me.maxWait)||0,re):At,Tr="trailing"in me?!!me.trailing:Tr),Qi.cancel=function(){en!==void 0&&clearTimeout(en),In=0,Ue=Yt=He=en=void 0},Qi.flush=function(){return en===void 0?Ut:Ri(fr())},Qi},_n=Ze.BalloonPanelView.defaultPositions,_e=[_n.northArrowSouth,_n.northArrowSouthWest,_n.northArrowSouthEast,_n.southArrowNorth,_n.southArrowNorthWest,_n.southArrowNorthEast,_n.viewportStickyNorth];function rt(Lt,re){const me=Lt.plugins.get("ContextualBalloon");if(Mn(Lt.editing.view.document.selection)){let Ue;Ue=re==="cell"?Gt(Lt):vt(Lt),me.updatePosition(Ue)}}function vt(Lt){const re=Lt.model.document.selection.getFirstPosition().findAncestor("table"),me=Lt.editing.mapper.toViewElement(re);return{target:Lt.editing.view.domConverter.mapViewToDom(me),positions:_e}}function Gt(Lt){const re=Lt.editing.mapper,me=Lt.editing.view.domConverter,Ue=Lt.model.document.selection;if(Ue.rangeCount>1)return{target:()=>function(Ut,en){const Yt=en.editing.mapper,In=en.editing.view.domConverter,$n=Array.from(Ut).map(wr=>{const Tr=We(wr.start),qr=Yt.toViewElement(Tr);return new B.Rect(In.mapViewToDom(qr))});return B.Rect.getBoundingRect($n)}(Ue.getRanges(),Lt),positions:_e};const He=We(Ue.getFirstPosition()),At=re.toViewElement(He);return{target:me.mapViewToDom(At),positions:_e}}function We(Lt){return Lt.nodeAfter&&Lt.nodeAfter.is("element","tableCell")?Lt.nodeAfter:Lt.findAncestor("tableCell")}function Ot(Lt){if(!Lt||!wn(Lt))return Lt;const{top:re,right:me,bottom:Ue,left:He}=Lt;return re==me&&me==Ue&&Ue==He?re:void 0}function Dt(Lt,re){const me=parseFloat(Lt);return Number.isNaN(me)||String(me)!==String(Lt)?Lt:`${me}${re}`}function gn(Lt,re={}){const me=Object.assign({borderStyle:"none",borderWidth:"",borderColor:"",backgroundColor:"",width:"",height:""},Lt);return re.includeAlignmentProperty&&!me.alignment&&(me.alignment="center"),re.includePaddingProperty&&!me.padding&&(me.padding=""),re.includeVerticalAlignmentProperty&&!me.verticalAlignment&&(me.verticalAlignment="middle"),re.includeHorizontalAlignmentProperty&&!me.horizontalAlignment&&(me.horizontalAlignment=re.isRightToLeftContent?"right":"left"),me}const Hn={borderStyle:"tableCellBorderStyle",borderColor:"tableCellBorderColor",borderWidth:"tableCellBorderWidth",height:"tableCellHeight",width:"tableCellWidth",padding:"tableCellPadding",backgroundColor:"tableCellBackgroundColor",horizontalAlignment:"tableCellHorizontalAlignment",verticalAlignment:"tableCellVerticalAlignment"};class nr extends c.Plugin{static get requires(){return[Ze.ContextualBalloon]}static get pluginName(){return"TableCellPropertiesUI"}constructor(re){super(re),re.config.define("table.tableCellProperties",{borderColors:Rn,backgroundColors:Rn})}init(){const re=this.editor,me=re.t;this._defaultTableCellProperties=gn(re.config.get("table.tableCellProperties.defaultProperties"),{includeVerticalAlignmentProperty:!0,includeHorizontalAlignmentProperty:!0,includePaddingProperty:!0,isRightToLeftContent:re.locale.contentLanguageDirection==="rtl"}),this._balloon=re.plugins.get(Ze.ContextualBalloon),this.view=null,this._undoStepBatch=null,this._isReady=!1,re.ui.componentFactory.add("tableCellProperties",Ue=>{const He=new Ze.ButtonView(Ue);He.set({label:me("Cell properties"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.105 18-.17 1H2.5A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1h15A1.5 1.5 0 0 1 19 2.5v9.975l-.85-.124-.15-.302V8h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5h3.105zM2 12h5V8H2v4zm10-4H8v4h4V8zM2 2v5h5V2H2zm0 16h5v-5H2v5zM13 7h5V2h-5v5zM8 2v5h4V2H8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM13 6a1 1 0 0 1 1 1v3.172a2.047 2.047 0 0 0-.293.443l-.858 1.736-1.916.28-.151.027A1.976 1.976 0 0 0 9.315 14H7a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm-1 2H8v4h4V8z"/></svg>',tooltip:!0}),this.listenTo(He,"execute",()=>this._showView());const At=Object.values(Hn).map(Ut=>re.commands.get(Ut));return He.bind("isEnabled").toMany(At,"isEnabled",(...Ut)=>Ut.some(en=>en)),He})}destroy(){super.destroy(),this.view&&this.view.destroy()}_createPropertiesView(){const re=this.editor,me=re.config.get("table.tableCellProperties"),Ue=(0,Ze.normalizeColorOptions)(me.borderColors),He=(0,Ze.getLocalizedColorOptions)(re.locale,Ue),At=(0,Ze.normalizeColorOptions)(me.backgroundColors),Ut=(0,Ze.getLocalizedColorOptions)(re.locale,At),en=new Ft(re.locale,{borderColors:He,backgroundColors:Ut,defaultTableCellProperties:this._defaultTableCellProperties}),Yt=re.t;en.render(),this.listenTo(en,"submit",()=>{this._hideView()}),this.listenTo(en,"cancel",()=>{this._undoStepBatch.operations.length&&re.execute("undo",this._undoStepBatch),this._hideView()}),en.keystrokes.set("Esc",(wr,Tr)=>{this._hideView(),Tr()}),(0,Ze.clickOutsideHandler)({emitter:en,activator:()=>this._isViewInBalloon,contextElements:[this._balloon.view.element],callback:()=>this._hideView()});const In=it(Yt),$n=Re(Yt);return en.on("change:borderStyle",this._getPropertyChangeCallback("tableCellBorderStyle",this._defaultTableCellProperties.borderStyle)),en.on("change:borderColor",this._getValidatedPropertyChangeCallback({viewField:en.borderColorInput,commandName:"tableCellBorderColor",errorText:In,validator:ke,defaultValue:this._defaultTableCellProperties.borderColor})),en.on("change:borderWidth",this._getValidatedPropertyChangeCallback({viewField:en.borderWidthInput,commandName:"tableCellBorderWidth",errorText:$n,validator:Te,defaultValue:this._defaultTableCellProperties.borderWidth})),en.on("change:padding",this._getValidatedPropertyChangeCallback({viewField:en.paddingInput,commandName:"tableCellPadding",errorText:$n,validator:Pe,defaultValue:this._defaultTableCellProperties.padding})),en.on("change:width",this._getValidatedPropertyChangeCallback({viewField:en.widthInput,commandName:"tableCellWidth",errorText:$n,validator:Pe,defaultValue:this._defaultTableCellProperties.width})),en.on("change:height",this._getValidatedPropertyChangeCallback({viewField:en.heightInput,commandName:"tableCellHeight",errorText:$n,validator:Pe,defaultValue:this._defaultTableCellProperties.height})),en.on("change:backgroundColor",this._getValidatedPropertyChangeCallback({viewField:en.backgroundInput,commandName:"tableCellBackgroundColor",errorText:In,validator:ke,defaultValue:this._defaultTableCellProperties.backgroundColor})),en.on("change:horizontalAlignment",this._getPropertyChangeCallback("tableCellHorizontalAlignment",this._defaultTableCellProperties.horizontalAlignment)),en.on("change:verticalAlignment",this._getPropertyChangeCallback("tableCellVerticalAlignment",this._defaultTableCellProperties.verticalAlignment)),en}_fillViewFormFromCommandValues(){const re=this.editor.commands,me=re.get("tableCellBorderStyle");Object.entries(Hn).map(([Ue,He])=>{const At=this._defaultTableCellProperties[Ue]||"";return[Ue,re.get(He).value||At]}).forEach(([Ue,He])=>{(Ue!=="borderColor"&&Ue!=="borderWidth"||me.value!=="none")&&this.view.set(Ue,He)}),this._isReady=!0}_showView(){const re=this.editor;this.view||(this.view=this._createPropertiesView()),this.listenTo(re.ui,"update",()=>{this._updateView()}),this._fillViewFormFromCommandValues(),this._balloon.add({view:this.view,position:Gt(re)}),this._undoStepBatch=re.model.createBatch(),this.view.focus()}_hideView(){const re=this.editor;this.stopListening(re.ui,"update"),this._isReady=!1,this.view.saveButtonView.focus(),this._balloon.remove(this.view),this.editor.editing.view.focus()}_updateView(){const re=this.editor;Mn(re.editing.view.document.selection)?this._isViewVisible&&rt(re,"cell"):this._hideView()}get _isViewVisible(){return!!this.view&&this._balloon.visibleView===this.view}get _isViewInBalloon(){return!!this.view&&this._balloon.hasView(this.view)}_getPropertyChangeCallback(re){return(me,Ue,He)=>{this._isReady&&this.editor.execute(re,{value:He,batch:this._undoStepBatch})}}_getValidatedPropertyChangeCallback(re){const{commandName:me,viewField:Ue,validator:He,errorText:At}=re,Ut=ji(()=>{Ue.errorText=At},500);return(en,Yt,In)=>{Ut.cancel(),this._isReady&&(He(In)?(this.editor.execute(me,{value:In,batch:this._undoStepBatch}),Ue.errorText=null):Ut())}}}class _r extends c.Command{constructor(re,me,Ue){super(re),this.attributeName=me,this._defaultValue=Ue}refresh(){const re=this.editor,me=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(re.model.document.selection);this.isEnabled=!!me.length,this.value=this._getSingleValue(me)}execute(re={}){const{value:me,batch:Ue}=re,He=this.editor.model,At=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(He.document.selection),Ut=this._getValueToSet(me);He.enqueueChange(Ue,en=>{Ut?At.forEach(Yt=>en.setAttribute(this.attributeName,Ut,Yt)):At.forEach(Yt=>en.removeAttribute(this.attributeName,Yt))})}_getAttribute(re){if(!re)return;const me=re.getAttribute(this.attributeName);return me!==this._defaultValue?me:void 0}_getValueToSet(re){if(re!==this._defaultValue)return re}_getSingleValue(re){const me=this._getAttribute(re[0]);return re.every(Ue=>this._getAttribute(Ue)===me)?me:void 0}}class Nr extends _r{constructor(re,me){super(re,"tableCellWidth",me)}_getValueToSet(re){if((re=Dt(re,"px"))!==this._defaultValue)return re}}class Qr extends c.Plugin{static get pluginName(){return"TableCellWidthEditing"}static get requires(){return[ye]}init(){const re=this.editor,me=gn(re.config.get("table.tableCellProperties.defaultProperties"));U(re.model.schema,re.conversion,{modelAttribute:"tableCellWidth",styleName:"width",defaultValue:me.width}),re.commands.add("tableCellWidth",new Nr(re,me.width))}}class ki extends _r{constructor(re,me){super(re,"tableCellPadding",me)}_getAttribute(re){if(!re)return;const me=Ot(re.getAttribute(this.attributeName));return me!==this._defaultValue?me:void 0}_getValueToSet(re){if((re=Dt(re,"px"))!==this._defaultValue)return re}}class Si extends _r{constructor(re,me){super(re,"tableCellHeight",me)}_getValueToSet(re){return(re=Dt(re,"px"))===this._defaultValue?null:re}}class Ei extends _r{constructor(re,me){super(re,"tableCellBackgroundColor",me)}}class oo extends _r{constructor(re,me){super(re,"tableCellVerticalAlignment",me)}}class zi extends _r{constructor(re,me){super(re,"tableCellHorizontalAlignment",me)}}class Xi extends _r{constructor(re,me){super(re,"tableCellBorderStyle",me)}_getAttribute(re){if(!re)return;const me=Ot(re.getAttribute(this.attributeName));return me!==this._defaultValue?me:void 0}}class uo extends _r{constructor(re,me){super(re,"tableCellBorderColor",me)}_getAttribute(re){if(!re)return;const me=Ot(re.getAttribute(this.attributeName));return me!==this._defaultValue?me:void 0}}class qi extends _r{constructor(re,me){super(re,"tableCellBorderWidth",me)}_getAttribute(re){if(!re)return;const me=Ot(re.getAttribute(this.attributeName));return me!==this._defaultValue?me:void 0}_getValueToSet(re){if((re=Dt(re,"px"))!==this._defaultValue)return re}}const Ui=/^(top|middle|bottom)$/,Vo=/^(left|center|right|justify)$/;class Cs extends c.Plugin{static get pluginName(){return"TableCellPropertiesEditing"}static get requires(){return[ye,Qr]}init(){const re=this.editor,me=re.model.schema,Ue=re.conversion;re.config.define("table.tableCellProperties.defaultProperties",{});const He=gn(re.config.get("table.tableCellProperties.defaultProperties"),{includeVerticalAlignmentProperty:!0,includeHorizontalAlignmentProperty:!0,includePaddingProperty:!0,isRightToLeftContent:re.locale.contentLanguageDirection==="rtl"});re.data.addStyleProcessorRules(ri.addBorderRules),function(At,Ut,en){const Yt={width:"tableCellBorderWidth",color:"tableCellBorderColor",style:"tableCellBorderStyle"};At.extend("tableCell",{allowAttributes:Object.values(Yt)}),d(Ut,"td",Yt,en),d(Ut,"th",Yt,en),k(Ut,{modelElement:"tableCell",modelAttribute:Yt.style,styleName:"border-style"}),k(Ut,{modelElement:"tableCell",modelAttribute:Yt.color,styleName:"border-color"}),k(Ut,{modelElement:"tableCell",modelAttribute:Yt.width,styleName:"border-width"})}(me,Ue,{color:He.borderColor,style:He.borderStyle,width:He.borderWidth}),re.commands.add("tableCellBorderStyle",new Xi(re,He.borderStyle)),re.commands.add("tableCellBorderColor",new uo(re,He.borderColor)),re.commands.add("tableCellBorderWidth",new qi(re,He.borderWidth)),U(me,Ue,{modelAttribute:"tableCellHeight",styleName:"height",defaultValue:He.height}),re.commands.add("tableCellHeight",new Si(re,He.height)),re.data.addStyleProcessorRules(ri.addPaddingRules),U(me,Ue,{modelAttribute:"tableCellPadding",styleName:"padding",reduceBoxSides:!0,defaultValue:He.padding}),re.commands.add("tableCellPadding",new ki(re,He.padding)),re.data.addStyleProcessorRules(ri.addBackgroundRules),U(me,Ue,{modelAttribute:"tableCellBackgroundColor",styleName:"background-color",defaultValue:He.backgroundColor}),re.commands.add("tableCellBackgroundColor",new Ei(re,He.backgroundColor)),function(At,Ut,en){At.extend("tableCell",{allowAttributes:["tableCellHorizontalAlignment"]}),Ut.for("downcast").attributeToAttribute({model:{name:"tableCell",key:"tableCellHorizontalAlignment"},view:Yt=>({key:"style",value:{"text-align":Yt}})}),Ut.for("upcast").attributeToAttribute({view:{name:/^(td|th)$/,styles:{"text-align":Vo}},model:{key:"tableCellHorizontalAlignment",value:Yt=>{const In=Yt.getStyle("text-align");return In===en?null:In}}}).attributeToAttribute({view:{name:/^(td|th)$/,attributes:{align:Vo}},model:{key:"tableCellHorizontalAlignment",value:Yt=>{const In=Yt.getAttribute("align");return In===en?null:In}}})}(me,Ue,He.horizontalAlignment),re.commands.add("tableCellHorizontalAlignment",new zi(re,He.horizontalAlignment)),function(At,Ut,en){At.extend("tableCell",{allowAttributes:["tableCellVerticalAlignment"]}),Ut.for("downcast").attributeToAttribute({model:{name:"tableCell",key:"tableCellVerticalAlignment"},view:Yt=>({key:"style",value:{"vertical-align":Yt}})}),Ut.for("upcast").attributeToAttribute({view:{name:/^(td|th)$/,styles:{"vertical-align":Ui}},model:{key:"tableCellVerticalAlignment",value:Yt=>{const In=Yt.getStyle("vertical-align");return In===en?null:In}}}).attributeToAttribute({view:{name:/^(td|th)$/,attributes:{valign:Ui}},model:{key:"tableCellVerticalAlignment",value:Yt=>{const In=Yt.getAttribute("valign");return In===en?null:In}}})}(me,Ue,He.verticalAlignment),re.commands.add("tableCellVerticalAlignment",new oo(re,He.verticalAlignment))}}class ra extends c.Plugin{static get pluginName(){return"TableCellProperties"}static get requires(){return[Cs,nr]}}class Ts extends c.Command{constructor(re,me,Ue){super(re),this.attributeName=me,this._defaultValue=Ue}refresh(){const re=this.editor.model.document.selection.getFirstPosition().findAncestor("table");this.isEnabled=!!re,this.value=this._getValue(re)}execute(re={}){const me=this.editor.model,Ue=me.document.selection,{value:He,batch:At}=re,Ut=Ue.getFirstPosition().findAncestor("table"),en=this._getValueToSet(He);me.enqueueChange(At,Yt=>{en?Yt.setAttribute(this.attributeName,en,Ut):Yt.removeAttribute(this.attributeName,Ut)})}_getValue(re){if(!re)return;const me=re.getAttribute(this.attributeName);return me!==this._defaultValue?me:void 0}_getValueToSet(re){if(re!==this._defaultValue)return re}}class Io extends Ts{constructor(re,me){super(re,"tableBackgroundColor",me)}}class xr extends Ts{constructor(re,me){super(re,"tableBorderColor",me)}_getValue(re){if(!re)return;const me=Ot(re.getAttribute(this.attributeName));return me!==this._defaultValue?me:void 0}}class ia extends Ts{constructor(re,me){super(re,"tableBorderStyle",me)}_getValue(re){if(!re)return;const me=Ot(re.getAttribute(this.attributeName));return me!==this._defaultValue?me:void 0}}class Is extends Ts{constructor(re,me){super(re,"tableBorderWidth",me)}_getValue(re){if(!re)return;const me=Ot(re.getAttribute(this.attributeName));return me!==this._defaultValue?me:void 0}_getValueToSet(re){if((re=Dt(re,"px"))!==this._defaultValue)return re}}class Gs extends Ts{constructor(re,me){super(re,"tableWidth",me)}_getValueToSet(re){if((re=Dt(re,"px"))!==this._defaultValue)return re}}class as extends Ts{constructor(re,me){super(re,"tableHeight",me)}_getValueToSet(re){return(re=Dt(re,"px"))===this._defaultValue?null:re}}class Wo extends Ts{constructor(re,me){super(re,"tableAlignment",me)}}const Ma=/^(left|center|right)$/,fa=/^(left|none|right)$/;class dt extends c.Plugin{static get pluginName(){return"TablePropertiesEditing"}static get requires(){return[ye]}init(){const re=this.editor,me=re.model.schema,Ue=re.conversion;re.config.define("table.tableProperties.defaultProperties",{});const He=gn(re.config.get("table.tableProperties.defaultProperties"),{includeAlignmentProperty:!0});re.data.addStyleProcessorRules(ri.addBorderRules),function(At,Ut,en){const Yt={width:"tableBorderWidth",color:"tableBorderColor",style:"tableBorderStyle"};At.extend("table",{allowAttributes:Object.values(Yt)}),d(Ut,"table",Yt,en),M(Ut,{modelAttribute:Yt.color,styleName:"border-color"}),M(Ut,{modelAttribute:Yt.style,styleName:"border-style"}),M(Ut,{modelAttribute:Yt.width,styleName:"border-width"})}(me,Ue,{color:He.borderColor,style:He.borderStyle,width:He.borderWidth}),re.commands.add("tableBorderColor",new xr(re,He.borderColor)),re.commands.add("tableBorderStyle",new ia(re,He.borderStyle)),re.commands.add("tableBorderWidth",new Is(re,He.borderWidth)),function(At,Ut,en){At.extend("table",{allowAttributes:["tableAlignment"]}),Ut.for("downcast").attributeToAttribute({model:{name:"table",key:"tableAlignment"},view:Yt=>({key:"style",value:{float:Yt==="center"?"none":Yt}}),converterPriority:"high"}),Ut.for("upcast").attributeToAttribute({view:{name:/^(table|figure)$/,styles:{float:fa}},model:{key:"tableAlignment",value:Yt=>{let In=Yt.getStyle("float");return In==="none"&&(In="center"),In===en?null:In}}}).attributeToAttribute({view:{attributes:{align:Ma}},model:{name:"table",key:"tableAlignment",value:Yt=>{const In=Yt.getAttribute("align");return In===en?null:In}}})}(me,Ue,He.alignment),re.commands.add("tableAlignment",new Wo(re,He.alignment)),Fe(me,Ue,{modelAttribute:"tableWidth",styleName:"width",defaultValue:He.width}),re.commands.add("tableWidth",new Gs(re,He.width)),Fe(me,Ue,{modelAttribute:"tableHeight",styleName:"height",defaultValue:He.height}),re.commands.add("tableHeight",new as(re,He.height)),re.data.addStyleProcessorRules(ri.addBackgroundRules),function(At,Ut,en){const{modelAttribute:Yt}=en;At.extend("table",{allowAttributes:[Yt]}),p(Ut,{viewElement:"table",...en}),M(Ut,en)}(me,Ue,{modelAttribute:"tableBackgroundColor",styleName:"background-color",defaultValue:He.backgroundColor}),re.commands.add("tableBackgroundColor",new Io(re,He.backgroundColor))}}function Fe(Lt,re,me){const{modelAttribute:Ue}=me;Lt.extend("table",{allowAttributes:[Ue]}),p(re,{viewElement:/^(table|figure)$/,shouldUpcast:He=>!(He.name=="table"&&He.parent.name=="figure"),...me}),k(re,{modelElement:"table",...me})}var an=s(99),qn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};ae()(an.Z,qn),an.Z.locals;const Fr={left:c.icons.objectLeft,center:c.icons.objectCenter,right:c.icons.objectRight};class ui extends Ze.View{constructor(re,me){super(re),this.set({borderStyle:"",borderWidth:"",borderColor:"",backgroundColor:"",width:"",height:"",alignment:""}),this.options=me;const{borderStyleDropdown:Ue,borderWidthInput:He,borderColorInput:At,borderRowLabel:Ut}=this._createBorderFields(),{backgroundRowLabel:en,backgroundInput:Yt}=this._createBackgroundFields(),{widthInput:In,operatorLabel:$n,heightInput:wr,dimensionsLabel:Tr}=this._createDimensionFields(),{alignmentToolbar:qr,alignmentLabel:di}=this._createAlignmentFields();this.focusTracker=new B.FocusTracker,this.keystrokes=new B.KeystrokeHandler,this.children=this.createCollection(),this.borderStyleDropdown=Ue,this.borderWidthInput=He,this.borderColorInput=At,this.backgroundInput=Yt,this.widthInput=In,this.heightInput=wr,this.alignmentToolbar=qr;const{saveButtonView:ai,cancelButtonView:Ri}=this._createActionButtons();this.saveButtonView=ai,this.cancelButtonView=Ri,this._focusables=new Ze.ViewCollection,this._focusCycler=new Ze.FocusCycler({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children.add(new Ze.FormHeaderView(re,{label:this.t("Table properties")})),this.children.add(new Zt(re,{labelView:Ut,children:[Ut,Ue,At,He],class:"ck-table-form__border-row"})),this.children.add(new Zt(re,{labelView:en,children:[en,Yt],class:"ck-table-form__background-row"})),this.children.add(new Zt(re,{children:[new Zt(re,{labelView:Tr,children:[Tr,In,$n,wr],class:"ck-table-form__dimensions-row"}),new Zt(re,{labelView:di,children:[di,qr],class:"ck-table-properties-form__alignment-row"})]})),this.children.add(new Zt(re,{children:[this.saveButtonView,this.cancelButtonView],class:"ck-table-form__action-row"})),this.setTemplate({tag:"form",attributes:{class:["ck","ck-form","ck-table-form","ck-table-properties-form"],tabindex:"-1"},children:this.children})}render(){super.render(),(0,Ze.submitHandler)({view:this}),[this.borderStyleDropdown,this.borderColorInput,this.borderColorInput.fieldView.dropdownView.buttonView,this.borderWidthInput,this.backgroundInput,this.backgroundInput.fieldView.dropdownView.buttonView,this.widthInput,this.heightInput,this.alignmentToolbar,this.saveButtonView,this.cancelButtonView].forEach(re=>{this._focusables.add(re),this.focusTracker.add(re.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createBorderFields(){const re=this.options.defaultTableProperties,me={style:re.borderStyle,width:re.borderWidth,color:re.borderColor},Ue=Qn({colorConfig:this.options.borderColors,columns:5,defaultColorValue:me.color}),He=this.locale,At=this.t,Ut=new Ze.LabelView(He);Ut.text=At("Border");const en=at(this.t),Yt=new Ze.LabeledFieldView(He,Ze.createLabeledDropdown);Yt.set({label:At("Style"),class:"ck-table-form__border-style"}),Yt.fieldView.buttonView.set({isOn:!1,withText:!0,tooltip:At("Style")}),Yt.fieldView.buttonView.bind("label").to(this,"borderStyle",wr=>en[wr||"none"]),Yt.fieldView.on("execute",wr=>{this.borderStyle=wr.source._borderStyleValue}),Yt.bind("isEmpty").to(this,"borderStyle",wr=>!wr),(0,Ze.addListToDropdown)(Yt.fieldView,Mt(this,me.style));const In=new Ze.LabeledFieldView(He,Ze.createLabeledInputText);In.set({label:At("Width"),class:"ck-table-form__border-width"}),In.fieldView.bind("value").to(this,"borderWidth"),In.bind("isEnabled").to(this,"borderStyle",Hi),In.fieldView.on("input",()=>{this.borderWidth=In.fieldView.element.value});const $n=new Ze.LabeledFieldView(He,Ue);return $n.set({label:At("Color"),class:"ck-table-form__border-color"}),$n.fieldView.bind("value").to(this,"borderColor"),$n.bind("isEnabled").to(this,"borderStyle",Hi),$n.fieldView.on("input",()=>{this.borderColor=$n.fieldView.value}),this.on("change:borderStyle",(wr,Tr,qr,di)=>{Hi(qr)||(this.borderColor="",this.borderWidth=""),Hi(di)||(this.borderColor=me.color,this.borderWidth=me.width)}),{borderRowLabel:Ut,borderStyleDropdown:Yt,borderColorInput:$n,borderWidthInput:In}}_createBackgroundFields(){const re=this.locale,me=this.t,Ue=new Ze.LabelView(re);Ue.text=me("Background");const He=Qn({colorConfig:this.options.backgroundColors,columns:5,defaultColorValue:this.options.defaultTableProperties.backgroundColor}),At=new Ze.LabeledFieldView(re,He);return At.set({label:me("Color"),class:"ck-table-properties-form__background"}),At.fieldView.bind("value").to(this,"backgroundColor"),At.fieldView.on("input",()=>{this.backgroundColor=At.fieldView.value}),{backgroundRowLabel:Ue,backgroundInput:At}}_createDimensionFields(){const re=this.locale,me=this.t,Ue=new Ze.LabelView(re);Ue.text=me("Dimensions");const He=new Ze.LabeledFieldView(re,Ze.createLabeledInputText);He.set({label:me("Width"),class:"ck-table-form__dimensions-row__width"}),He.fieldView.bind("value").to(this,"width"),He.fieldView.on("input",()=>{this.width=He.fieldView.element.value});const At=new Ze.View(re);At.setTemplate({tag:"span",attributes:{class:["ck-table-form__dimension-operator"]},children:[{text:"\xD7"}]});const Ut=new Ze.LabeledFieldView(re,Ze.createLabeledInputText);return Ut.set({label:me("Height"),class:"ck-table-form__dimensions-row__height"}),Ut.fieldView.bind("value").to(this,"height"),Ut.fieldView.on("input",()=>{this.height=Ut.fieldView.element.value}),{dimensionsLabel:Ue,widthInput:He,operatorLabel:At,heightInput:Ut}}_createAlignmentFields(){const re=this.locale,me=this.t,Ue=new Ze.LabelView(re);Ue.text=me("Alignment");const He=new Ze.ToolbarView(re);return He.set({isCompact:!0,ariaLabel:me("Table alignment toolbar")}),qt({view:this,icons:Fr,toolbar:He,labels:this._alignmentLabels,propertyName:"alignment",defaultValue:this.options.defaultTableProperties.alignment}),{alignmentLabel:Ue,alignmentToolbar:He}}_createActionButtons(){const re=this.locale,me=this.t,Ue=new Ze.ButtonView(re),He=new Ze.ButtonView(re),At=[this.borderWidthInput,this.borderColorInput,this.backgroundInput,this.widthInput,this.heightInput];return Ue.set({label:me("Save"),icon:c.icons.check,class:"ck-button-save",type:"submit",withText:!0}),Ue.bind("isEnabled").toMany(At,"errorText",(...Ut)=>Ut.every(en=>!en)),He.set({label:me("Cancel"),icon:c.icons.cancel,class:"ck-button-cancel",withText:!0}),He.delegate("execute").to(this,"cancel"),{saveButtonView:Ue,cancelButtonView:He}}get _alignmentLabels(){const re=this.locale,me=this.t,Ue=me("Align table to the left"),He=me("Center table"),At=me("Align table to the right");return re.uiLanguageDirection==="rtl"?{right:At,center:He,left:Ue}:{left:Ue,center:He,right:At}}}function Hi(Lt){return Lt!=="none"}const lo={borderStyle:"tableBorderStyle",borderColor:"tableBorderColor",borderWidth:"tableBorderWidth",backgroundColor:"tableBackgroundColor",width:"tableWidth",height:"tableHeight",alignment:"tableAlignment"};class mo extends c.Plugin{static get requires(){return[Ze.ContextualBalloon]}static get pluginName(){return"TablePropertiesUI"}constructor(re){super(re),re.config.define("table.tableProperties",{borderColors:Rn,backgroundColors:Rn})}init(){const re=this.editor,me=re.t;this._defaultTableProperties=gn(re.config.get("table.tableProperties.defaultProperties"),{includeAlignmentProperty:!0}),this._balloon=re.plugins.get(Ze.ContextualBalloon),this.view=null,this._undoStepBatch=null,this._isReady=!1,re.ui.componentFactory.add("tableProperties",Ue=>{const He=new Ze.ButtonView(Ue);He.set({label:me("Table properties"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8 2v5h4V2h1v5h5v1h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5H7v-5H2v-1h5V8H2V7h5V2h1zm4 6H8v4h4V8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM17 1a2 2 0 0 1 2 2v9.475l-.85-.124-.857-1.736a2.048 2.048 0 0 0-.292-.44L17 3H3v14h7.808l.402.392L10.935 19H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14z"/></svg>',tooltip:!0}),this.listenTo(He,"execute",()=>this._showView());const At=Object.values(lo).map(Ut=>re.commands.get(Ut));return He.bind("isEnabled").toMany(At,"isEnabled",(...Ut)=>Ut.some(en=>en)),He})}destroy(){super.destroy(),this.view&&this.view.destroy()}_createPropertiesView(){const re=this.editor,me=re.config.get("table.tableProperties"),Ue=(0,Ze.normalizeColorOptions)(me.borderColors),He=(0,Ze.getLocalizedColorOptions)(re.locale,Ue),At=(0,Ze.normalizeColorOptions)(me.backgroundColors),Ut=(0,Ze.getLocalizedColorOptions)(re.locale,At),en=new ui(re.locale,{borderColors:He,backgroundColors:Ut,defaultTableProperties:this._defaultTableProperties}),Yt=re.t;en.render(),this.listenTo(en,"submit",()=>{this._hideView()}),this.listenTo(en,"cancel",()=>{this._undoStepBatch.operations.length&&re.execute("undo",this._undoStepBatch),this._hideView()}),en.keystrokes.set("Esc",(wr,Tr)=>{this._hideView(),Tr()}),(0,Ze.clickOutsideHandler)({emitter:en,activator:()=>this._isViewInBalloon,contextElements:[this._balloon.view.element],callback:()=>this._hideView()});const In=it(Yt),$n=Re(Yt);return en.on("change:borderStyle",this._getPropertyChangeCallback("tableBorderStyle",this._defaultTableProperties.borderStyle)),en.on("change:borderColor",this._getValidatedPropertyChangeCallback({viewField:en.borderColorInput,commandName:"tableBorderColor",errorText:In,validator:ke,defaultValue:this._defaultTableProperties.borderColor})),en.on("change:borderWidth",this._getValidatedPropertyChangeCallback({viewField:en.borderWidthInput,commandName:"tableBorderWidth",errorText:$n,validator:Te,defaultValue:this._defaultTableProperties.borderWidth})),en.on("change:backgroundColor",this._getValidatedPropertyChangeCallback({viewField:en.backgroundInput,commandName:"tableBackgroundColor",errorText:In,validator:ke,defaultValue:this._defaultTableProperties.backgroundColor})),en.on("change:width",this._getValidatedPropertyChangeCallback({viewField:en.widthInput,commandName:"tableWidth",errorText:$n,validator:Pe,defaultValue:this._defaultTableProperties.width})),en.on("change:height",this._getValidatedPropertyChangeCallback({viewField:en.heightInput,commandName:"tableHeight",errorText:$n,validator:Pe,defaultValue:this._defaultTableProperties.height})),en.on("change:alignment",this._getPropertyChangeCallback("tableAlignment",this._defaultTableProperties.alignment)),en}_fillViewFormFromCommandValues(){const re=this.editor.commands,me=re.get("tableBorderStyle");Object.entries(lo).map(([Ue,He])=>{const At=this._defaultTableProperties[Ue]||"";return[Ue,re.get(He).value||At]}).forEach(([Ue,He])=>{(Ue!=="borderColor"&&Ue!=="borderWidth"||me.value!=="none")&&this.view.set(Ue,He)}),this._isReady=!0}_showView(){const re=this.editor;this.view||(this.view=this._createPropertiesView()),this.listenTo(re.ui,"update",()=>{this._updateView()}),this._fillViewFormFromCommandValues(),this._balloon.add({view:this.view,position:vt(re)}),this._undoStepBatch=re.model.createBatch(),this.view.focus()}_hideView(){const re=this.editor;this.stopListening(re.ui,"update"),this._isReady=!1,this.view.saveButtonView.focus(),this._balloon.remove(this.view),this.editor.editing.view.focus()}_updateView(){const re=this.editor;Mn(re.editing.view.document.selection)?this._isViewVisible&&rt(re,"table"):this._hideView()}get _isViewVisible(){return!!this.view&&this._balloon.visibleView===this.view}get _isViewInBalloon(){return!!this.view&&this._balloon.hasView(this.view)}_getPropertyChangeCallback(re){return(me,Ue,He)=>{this._isReady&&this.editor.execute(re,{value:He,batch:this._undoStepBatch})}}_getValidatedPropertyChangeCallback(re){const{commandName:me,viewField:Ue,validator:He,errorText:At}=re,Ut=ji(()=>{Ue.errorText=At},500);return(en,Yt,In)=>{Ut.cancel(),this._isReady&&(He(In)?(this.editor.execute(me,{value:In,batch:this._undoStepBatch}),Ue.errorText=null):Ut())}}}class ts extends c.Plugin{static get pluginName(){return"TableProperties"}static get requires(){return[dt,mo]}}function co(Lt){Lt.document.registerPostFixer(re=>function(me,Ue){const He=Ue.document.differ.getChanges();let At=!1;for(const Ut of He)if(Ut.type=="insert"&&(Ut.position.parent.is("element","table")||Ut.name=="table")){const en=Ut.name=="table"?Ut.position.nodeAfter:Ut.position.parent,Yt=Array.from(en.getChildren()).filter($n=>$n.is("element","caption")),In=Yt.shift();if(!In)continue;for(const $n of Yt)me.move(me.createRangeIn($n),In,"end"),me.remove($n);In.nextSibling&&(me.move(me.createRangeOn(In),en,"end"),At=!0),At=!!Yt.length||At}return At}(re,Lt))}function Oo(Lt){return!!Lt&&Lt.is("element","table")}function Po(Lt){for(const re of Lt.getChildren())if(re.is("element","caption"))return re;return null}function Yo(Lt){const re=Lt.parent;return Lt.name=="figcaption"&&re&&re.name=="figure"&&re.hasClass("table")||Lt.name=="caption"&&re&&re.name=="table"?{name:!0}:null}function ns(Lt){const re=Lt.getSelectedElement();return re&&re.is("element","table")?re:Lt.getFirstPosition().findAncestor("table")}class Os extends c.Command{refresh(){const re=ns(this.editor.model.document.selection);this.isEnabled=!!re,this.isEnabled?this.value=!!Po(re):this.value=!1}execute(re={}){const{focusCaptionOnShow:me}=re;this.editor.model.change(Ue=>{this.value?this._hideTableCaption(Ue):this._showTableCaption(Ue,me)})}_showTableCaption(re,me){const Ue=this.editor.model,He=ns(Ue.document.selection),At=this.editor.plugins.get("TableCaptionEditing")._getSavedCaption(He)||re.createElement("caption");Ue.insertContent(At,He,"end"),me&&re.setSelection(At,"in")}_hideTableCaption(re){const me=this.editor.model,Ue=ns(me.document.selection),He=this.editor.plugins.get("TableCaptionEditing"),At=Po(Ue);He._saveCaption(Ue,At),me.deleteContent(re.createSelection(At,"on"))}}class Lo extends c.Plugin{static get pluginName(){return"TableCaptionEditing"}constructor(re){super(re),this._savedCaptionsMap=new WeakMap}init(){const re=this.editor,me=re.model.schema,Ue=re.editing.view,He=re.t;me.isRegistered("caption")?me.extend("caption",{allowIn:"table"}):me.register("caption",{allowIn:"table",allowContentOf:"$block",isLimit:!0}),re.commands.add("toggleTableCaption",new Os(this.editor)),re.conversion.for("upcast").elementToElement({view:Yo,model:"caption"}),re.conversion.for("dataDowncast").elementToElement({model:"caption",view:(At,{writer:Ut})=>Oo(At.parent)?Ut.createContainerElement("figcaption"):null}),re.conversion.for("editingDowncast").elementToElement({model:"caption",view:(At,{writer:Ut})=>{if(!Oo(At.parent))return null;const en=Ut.createEditableElement("figcaption");return Ut.setCustomProperty("tableCaption",!0,en),(0,ri.enablePlaceholder)({view:Ue,element:en,text:He("Enter table caption"),keepOnFocus:!0}),(0,h.toWidgetEditable)(en,Ut)}}),co(re.model)}_getSavedCaption(re){const me=this._savedCaptionsMap.get(re);return me?ri.Element.fromJSON(me):null}_saveCaption(re,me){this._savedCaptionsMap.set(re,me.toJSON())}}class da extends c.Plugin{static get pluginName(){return"TableCaptionUI"}init(){const re=this.editor,me=re.editing.view,Ue=re.t;re.ui.componentFactory.add("toggleTableCaption",He=>{const At=re.commands.get("toggleTableCaption"),Ut=new Ze.ButtonView(He);return Ut.set({icon:c.icons.caption,tooltip:!0,isToggleable:!0}),Ut.bind("isOn","isEnabled").to(At,"value","isEnabled"),Ut.bind("label").to(At,"value",en=>Ue(en?"Toggle caption off":"Toggle caption on")),this.listenTo(Ut,"execute",()=>{if(re.execute("toggleTableCaption",{focusCaptionOnShow:!0}),At.value){const en=function(In){const $n=ns(In);return $n?Po($n):null}(re.model.document.selection),Yt=re.editing.mapper.toViewElement(en);if(!Yt)return;me.scrollToTheSelection(),me.change(In=>{In.addClass("table__caption_highlighted",Yt)})}re.editing.view.focus()}),Ut})}}var Qs=s(665),ta={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};ae()(Qs.Z,ta),Qs.Z.locals;class Oa extends c.Plugin{static get pluginName(){return"TableCaption"}static get requires(){return[Lo,da]}}var _l="Expected a function";const gs=function(Lt,re,me){var Ue=!0,He=!0;if(typeof Lt!="function")throw new TypeError(_l);return wn(me)&&(Ue="leading"in me?!!me.leading:Ue,He="trailing"in me?!!me.trailing:He),ji(Lt,re,{leading:Ue,maxWait:re,trailing:He})};class ds extends Ts{constructor(re,me){super(re,"tableWidth",me)}refresh(){this.isEnabled=!0}execute(re={}){const me=this.editor.model,Ue=re.table||me.document.selection.getSelectedElement(),{tableWidth:He,columnWidths:At}=re;me.change(Ut=>{He?Ut.setAttribute(this.attributeName,He,Ue):Ut.removeAttribute(this.attributeName,Ue),At?Ut.setAttribute("columnWidths",At,Ue):Ut.removeAttribute("columnWidths",Ue)})}}class es extends Ts{constructor(re,me){super(re,"columnWidths",me)}refresh(){this.isEnabled=!0}execute(re={}){const me=this.editor.model,Ue=re.table||me.document.selection.getSelectedElement(),{columnWidths:He}=re;me.change(At=>{He?At.setAttribute(this.attributeName,He,Ue):At.removeAttribute(this.attributeName,Ue)})}}const Ga=5,So=40,Di=2;function Il(Lt,re){return 100*So/Na(Lt,re)}function Na(Lt,re){const me=xl(Lt,"tbody",re)||xl(Lt,"thead",re);return Rl(re.editing.view.domConverter.mapViewToDom(me))}function xl(Lt,re,me){return[...[...me.editing.mapper.toViewElement(Lt).getChildren()].find(Ue=>Ue.is("element","table")).getChildren()].find(Ue=>Ue.is("element",re))}function Rl(Lt){const re=B.global.window.getComputedStyle(Lt);return re.boxSizing==="border-box"?parseFloat(re.width)-parseFloat(re.paddingLeft)-parseFloat(re.paddingRight)-parseFloat(re.borderLeftWidth)-parseFloat(re.borderRightWidth):parseFloat(re.width)}function Pa(Lt){const re=Math.pow(10,Di),me=parseFloat(Lt);return Math.round(me*re)/re}function fi(Lt){return Lt.map(re=>parseFloat(re)).filter(re=>!Number.isNaN(re)).reduce((re,me)=>re+me,0)}function rl(Lt){Lt=function(me){const Ue=me.filter(Ut=>Ut==="auto").length;if(Ue===0)return me.map(Ut=>Pa(Ut));const He=fi(me),At=Math.max((100-He)/Ue,Ga);return me.map(Ut=>Ut==="auto"?At:Ut).map(Ut=>Pa(Ut))}(Lt);const re=fi(Lt);return re===100?Lt:Lt.map(me=>Pa(100*me/re)).map((me,Ue,He)=>Ue!==He.length-1?me:Pa(me+100-fi(He)))}function Xn(Lt){const re=B.global.window.getComputedStyle(Lt);return re.boxSizing==="border-box"?parseInt(re.width):parseFloat(re.width)+parseFloat(re.paddingLeft)+parseFloat(re.paddingRight)+parseFloat(re.borderWidth)}function Kr(){return Lt=>Lt.on("attribute:columnWidths:table",(re,me,Ue)=>{const He=Ue.writer,At=me.item,Ut=Ue.mapper.toViewElement(At),en=Ut.is("element","table")?Ut:Array.from(Ut.getChildren()).find(Yt=>Yt.is("element","table"));me.attributeNewValue?(function(Yt,In,$n){const wr=$n.split(",");let Tr=[...In.getChildren()].find(qr=>qr.is("element","colgroup"));if(Tr)for(const qr of[...Tr.getChildren()])Yt.remove(qr);else Tr=Yt.createContainerElement("colgroup");for(const qr of Array(wr.length).keys()){const di=Yt.createEmptyElement("col");Yt.setStyle("width",wr[qr],di),Yt.insert(Yt.createPositionAt(Tr,"end"),di)}Yt.insert(Yt.createPositionAt(In,"start"),Tr)}(He,en,me.attributeNewValue),He.addClass("ck-table-resized",en)):(function(Yt,In){const $n=[...In.getChildren()].find(wr=>wr.is("element","colgroup"));Yt.remove($n)}(He,en),He.removeClass("ck-table-resized",en))})}class Ln extends c.Plugin{static get requires(){return[ye,ln]}static get pluginName(){return"TableColumnResizeEditing"}constructor(re){super(re),this._isResizingActive=!1,this.set("_isResizingAllowed",!0),this._resizingData=null,this._domEmitter=Object.create(B.DomEmitterMixin),this._tableUtilsPlugin=re.plugins.get("TableUtils"),this.on("change:_isResizingAllowed",(me,Ue,He)=>{re.editing.view.change(At=>{At[He?"removeClass":"addClass"]("ck-column-resize_disabled",re.editing.view.document.getRoot())})})}init(){this._extendSchema(),this._registerPostFixer(),this._registerConverters(),this._registerResizingListeners(),this._registerColgroupFixer(),this._registerResizerInserter();const re=this.editor,me=re.plugins.get("TableColumnResize");re.commands.add("resizeTableWidth",new ds(re)),re.commands.add("resizeColumnWidths",new es(re));const Ue=re.commands.get("resizeTableWidth"),He=re.commands.get("resizeColumnWidths");this.bind("_isResizingAllowed").to(re,"isReadOnly",me,"isEnabled",Ue,"isEnabled",He,"isEnabled",(At,Ut,en,Yt)=>!At&&Ut&&en&&Yt)}destroy(){this._domEmitter.stopListening(),super.destroy()}_extendSchema(){this.editor.model.schema.extend("table",{allowAttributes:["tableWidth","columnWidths"]})}_registerPostFixer(){const re=this.editor.model;function me(Ue,He,At){const Ut=At._tableUtilsPlugin.getColumns(He);if(Ut-Ue.length===0)return;const en=function(In,$n){const wr=new Set;for(const Tr of In.getChanges())if(Tr.type=="insert"&&Tr.position.nodeAfter&&Tr.position.nodeAfter.name=="tableCell"&&Tr.position.nodeAfter.getAncestors().includes($n))wr.add(Tr.position.nodeAfter);else if(Tr.type=="remove"){const qr=Tr.position.nodeBefore||Tr.position.nodeAfter;qr.name=="tableCell"&&qr.getAncestors().includes($n)&&wr.add(qr)}return wr}(At.editor.model.document.differ,He);for(const In of en){const $n=Ut-Ue.length;if($n===0)continue;const wr=$n>0,Tr=At._tableUtilsPlugin.getCellLocation(In).column;if(wr){const qr=Il(He,At.editor),di=(Yt=qr,Array($n).fill(Yt));Ue.splice(Tr,0,...di)}else{const qr=Ue.splice(Tr,Math.abs($n));Ue[Tr]+=fi(qr)}}var Yt}re.document.registerPostFixer(Ue=>{let He=!1;for(const At of function(Ut){const en=new Set;for(const Yt of Ut.document.differ.getChanges()){let In=null;switch(Yt.type){case"insert":In=["table","tableRow","tableCell"].includes(Yt.name)?Yt.position:null;break;case"remove":In=["tableRow","tableCell"].includes(Yt.name)?Yt.position:null;break;case"attribute":Yt.range.start.nodeAfter&&(In=["table","tableRow","tableCell"].includes(Yt.range.start.nodeAfter.name)?Yt.range.start:null)}if(!In)continue;const $n=In.nodeAfter&&In.nodeAfter.name==="table"?In.nodeAfter:In.findAncestor("table");for(const wr of Ut.createRangeOn($n).getItems())wr.is("element")&&wr.name==="table"&&wr.hasAttribute("columnWidths")&&en.add(wr)}return en}(re)){const Ut=rl(At.getAttribute("columnWidths").split(","));me(Ut,At,this);const en=Ut.map(Yt=>`${Yt}%`).join(",");At.getAttribute("columnWidths")!==en&&(Ue.setAttribute("columnWidths",en,At),He=!0)}return He})}_registerConverters(){const re=this.editor.conversion;var me;re.for("upcast").attributeToAttribute({view:{name:"figure",key:"style",value:{width:/[\s\S]+/}},model:{name:"table",key:"tableWidth",value:Ue=>Ue.getStyle("width")}}),re.for("upcast").add((me=this._tableUtilsPlugin,Ue=>Ue.on("element:colgroup",(He,At,Ut)=>{const en=At.viewItem;if(!Ut.consumable.test(en,{name:!0}))return;Ut.consumable.consume(en,{name:!0});const Yt=At.modelCursor.findAncestor("table"),In=me.getColumns(Yt);let $n=[...Array(In).keys()].map(wr=>{const Tr=en.getChild(wr);if(!Tr||!Tr.is("element","col"))return"auto";const qr=Tr.getStyle("width");return qr&&qr.endsWith("%")?qr:"auto"});$n.includes("auto")&&($n=rl($n).map(wr=>wr+"%")),Ut.writer.setAttribute("columnWidths",$n.join(","),Yt)}))),re.for("downcast").attributeToAttribute({model:{name:"table",key:"tableWidth"},view:Ue=>({name:"figure",key:"style",value:{width:Ue}})}),re.for("downcast").add(Kr())}_registerResizingListeners(){const re=this.editor.editing.view;re.addObserver(Bt),re.document.on("mousedown",this._onMouseDownHandler.bind(this),{priority:"high"}),this._domEmitter.listenTo(B.global.window.document,"mousemove",gs(this._onMouseMoveHandler.bind(this),50)),this._domEmitter.listenTo(B.global.window.document,"mouseup",this._onMouseUpHandler.bind(this))}_onMouseDownHandler(re,me){const Ue=me.target;if(!Ue.hasClass("ck-table-column-resizer")||!this._isResizingAllowed)return;me.preventDefault(),re.stop();const He=this.editor,At=function(Yt,In,$n){const wr=Array(In.getColumns(Yt)),Tr=new T(Yt);for(const qr of Tr){const di=$n.editing.mapper.toViewElement(qr.cell),ai=Xn($n.editing.view.domConverter.mapViewToDom(di));(!wr[qr.column]||ai<wr[qr.column])&&(wr[qr.column]=Pa(ai))}return wr}(He.editing.mapper.toModelElement(Ue.findAncestor("figure")),this._tableUtilsPlugin,He),Ut=Ue.findAncestor("table"),en=He.editing.view;[...Ut.getChildren()].find(Yt=>Yt.is("element","colgroup"))||en.change(Yt=>{(function(In,$n,wr){const Tr=In.createContainerElement("colgroup");for(let qr=0;qr<$n.length;qr++){const di=In.createEmptyElement("col"),ai=`${Pa($n[qr]/fi($n)*100)}%`;In.setStyle("width",ai,di),In.insert(In.createPositionAt(Tr,"end"),di)}In.insert(In.createPositionAt(wr,"start"),Tr)})(Yt,At,Ut)}),this._isResizingActive=!0,this._resizingData=this._getResizingData(me,At),en.change(Yt=>function(In,$n,wr){const Tr=wr.widths.viewFigureWidth/wr.widths.viewFigureParentWidth;In.addClass("ck-table-resized",$n),In.addClass("ck-table-column-resizer__active",wr.elements.viewResizer),In.setStyle("width",`${Pa(100*Tr)}%`,$n.findAncestor("figure"))}(Yt,Ut,this._resizingData))}_onMouseMoveHandler(re,me){if(!this._isResizingActive)return;if(!this._isResizingAllowed)return void this._onMouseUpHandler();const{columnPosition:Ue,flags:{isRightEdge:He,isTableCentered:At,isLtrContent:Ut},elements:{viewFigure:en,viewLeftColumn:Yt,viewRightColumn:In},widths:{viewFigureParentWidth:$n,tableWidth:wr,leftColumnWidth:Tr,rightColumnWidth:qr}}=this._resizingData,di=-Tr+So,ai=He?$n-wr:qr-So,Ri=(Ut?1:-1)*(He&&At?2:1),Qi=(so=(me.clientX-Ue)*Ri,Do=Math.min(di,0),Ro=Math.max(ai,0),Pa(so<=Do?Do:so>=Ro?Ro:so));var so,Do,Ro;Qi!==0&&this.editor.editing.view.change(Rs=>{const Ns=Pa(100*(Tr+Qi)/wr);if(Rs.setStyle("width",`${Ns}%`,Yt),He){const Ls=Pa(100*(wr+Qi)/$n);Rs.setStyle("width",`${Ls}%`,en)}else{const Ls=Pa(100*(qr-Qi)/wr);Rs.setStyle("width",`${Ls}%`,In)}})}_onMouseUpHandler(){if(!this._isResizingActive)return;const{viewResizer:re,modelTable:me,viewFigure:Ue,viewColgroup:He}=this._resizingData.elements,At=this.editor,Ut=At.editing.view,en=me.getAttribute("columnWidths"),Yt=[...He.getChildren()].map(qr=>qr.getStyle("width")).join(","),In=en!==Yt,$n=me.getAttribute("tableWidth"),wr=Ue.getStyle("width"),Tr=$n!==wr;(In||Tr)&&(this._isResizingAllowed?Tr?At.execute("resizeTableWidth",{table:me,tableWidth:`${Pa(wr)}%`,columnWidths:Yt}):At.execute("resizeColumnWidths",{columnWidths:Yt,table:me}):Ut.change(qr=>{if(en){const di=en.split(",");for(const ai of He.getChildren())qr.setStyle("width",di.shift(),ai)}else qr.remove(He);Tr&&($n?qr.setStyle("width",$n,Ue):qr.removeStyle("width",Ue)),en||$n||qr.removeClass("ck-table-resized",[...Ue.getChildren()].find(di=>di.name==="table"))})),Ut.change(qr=>{qr.removeClass("ck-table-column-resizer__active",re)}),this._isResizingActive=!1,this._resizingData=null}_getResizingData(re,me){const Ue=this.editor,He=re.domEvent.clientX,At=re.target,Ut=At.findAncestor("td")||At.findAncestor("th"),en=Ue.editing.mapper.toModelElement(Ut),Yt=en.findAncestor("table"),In=function(so,Do){const Ro=Do.getCellLocation(so).column;return{leftEdge:Ro,rightEdge:Ro+(so.getAttribute("colspan")||1)-1}}(en,this._tableUtilsPlugin).rightEdge,$n=In===this._tableUtilsPlugin.getColumns(Yt)-1,wr=!Yt.hasAttribute("tableAlignment"),Tr=Ue.locale.contentLanguageDirection!=="rtl",qr=Ut.findAncestor("table"),di=qr.findAncestor("figure"),ai=[...qr.getChildren()].find(so=>so.is("element","colgroup")),Ri=ai.getChild(In),Qi=$n?void 0:ai.getChild(In+1);return{columnPosition:He,flags:{isRightEdge:$n,isTableCentered:wr,isLtrContent:Tr},elements:{viewResizer:At,modelTable:Yt,viewFigure:di,viewColgroup:ai,viewLeftColumn:Ri,viewRightColumn:Qi},widths:{viewFigureParentWidth:Rl(Ue.editing.view.domConverter.mapViewToDom(di.parent)),viewFigureWidth:Rl(Ue.editing.view.domConverter.mapViewToDom(di)),tableWidth:Na(Yt,Ue),leftColumnWidth:me[In],rightColumnWidth:$n?void 0:me[In+1]}}}_registerColgroupFixer(){const re=this.editor;this.listenTo(re.editing.view.document,"layoutChanged",()=>{const me=re.editing.view.document.selection.getFirstPosition().getAncestors().reverse().find(At=>At.name==="table"),Ue=me&&[...me.getChildren()].find(At=>At.is("element","colgroup")),He=re.model.document.selection.getFirstPosition().findAncestor("table");He&&He.hasAttribute("columnWidths")&&me&&!Ue&&re.editing.reconvertItem(He)},{priority:"low"})}_registerResizerInserter(){this.editor.conversion.for("editingDowncast").add(re=>{re.on("insert:tableCell",(me,Ue,He)=>{const At=Ue.item,Ut=He.mapper.toViewElement(At),en=He.writer;en.insert(en.createPositionAt(Ut,"end"),en.createUIElement("div",{class:"ck-table-column-resizer"}))},{priority:"lowest"})})}}var gr=s(975),pr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};ae()(gr.Z,pr),gr.Z.locals;class Wr extends c.Plugin{static get requires(){return[Ln,Qr]}static get pluginName(){return"TableColumnResize"}}})(),(window.CKEditor5=window.CKEditor5||{}).table=a})()},6653:(Z,v,t)=>{(function(r){const n=r.en=r.en||{};n.dictionary=Object.assign(n.dictionary||{},{"Characters: %0":"Characters: %0","Words: %0":"Words: %0"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),(()=>{var r={704:(c,h,p)=>{c.exports=p(79)("./src/core.js")},273:(c,h,p)=>{c.exports=p(79)("./src/ui.js")},209:(c,h,p)=>{c.exports=p(79)("./src/utils.js")},79:c=>{"use strict";c.exports=CKEditor5.dll}},n={};function s(c){var h=n[c];if(h!==void 0)return h.exports;var p=n[c]={exports:{}};return r[c](p,p.exports,s),p.exports}s.d=(c,h)=>{for(var p in h)s.o(h,p)&&!s.o(c,p)&&Object.defineProperty(c,p,{enumerable:!0,get:h[p]})},s.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),s.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var a={};(()=>{"use strict";s.r(a),s.d(a,{WordCount:()=>Be});var c=s(704),h=s(273),p=s(209);function d(je){if(je.is("$text")||je.is("$textProxy"))return je.data;const $t=je;let et="",Kt=null;for(const kn of $t.getChildren()){const Tn=d(kn);Kt&&Kt.is("element")&&(et+=`
`),et+=Tn,Kt=kn}return et}const k=function(je){var $t=typeof je;return je!=null&&($t=="object"||$t=="function")},M=typeof t.g=="object"&&t.g&&t.g.Object===Object&&t.g;var C=typeof self=="object"&&self&&self.Object===Object&&self;const w=M||C||Function("return this")(),I=function(){return w.Date.now()};var F=/\s/;const U=function(je){for(var $t=je.length;$t--&&F.test(je.charAt($t)););return $t};var B=/^\s+/;const N=function(je){return je&&je.slice(0,U(je)+1).replace(B,"")},D=w.Symbol;var x=Object.prototype,T=x.hasOwnProperty,u=x.toString,b=D?D.toStringTag:void 0;const E=function(je){var $t=T.call(je,b),et=je[b];try{je[b]=void 0;var Kt=!0}catch{}var kn=u.call(je);return Kt&&($t?je[b]=et:delete je[b]),kn};var A=Object.prototype.toString;const R=function(je){return A.call(je)};var H="[object Null]",z="[object Undefined]",V=D?D.toStringTag:void 0;const $=function(je){return je==null?je===void 0?z:H:V&&V in Object(je)?E(je):R(je)},ee=function(je){return je!=null&&typeof je=="object"};var q="[object Symbol]";const oe=function(je){return typeof je=="symbol"||ee(je)&&$(je)==q};var X=NaN,pe=/^[-+]0x[0-9a-f]+$/i,Ie=/^0b[01]+$/i,se=/^0o[0-7]+$/i,be=parseInt;const fe=function(je){if(typeof je=="number")return je;if(oe(je))return X;if(k(je)){var $t=typeof je.valueOf=="function"?je.valueOf():je;je=k($t)?$t+"":$t}if(typeof je!="string")return je===0?je:+je;je=N(je);var et=Ie.test(je);return et||se.test(je)?be(je.slice(2),et?2:8):pe.test(je)?X:+je};var ue="Expected a function",we=Math.max,Me=Math.min;const Ce=function(je,$t,et){var Kt,kn,Tn,ht,ot,Je,wt=0,ft=!1,vn=!1,ut=!0;if(typeof je!="function")throw new TypeError(ue);function Wt(Xe){var Ze=Kt,lt=kn;return Kt=kn=void 0,wt=Xe,ht=je.apply(lt,Ze)}function ae(Xe){var Ze=Xe-Je;return Je===void 0||Ze>=$t||Ze<0||vn&&Xe-wt>=Tn}function ne(){var Xe=I();if(ae(Xe))return ge(Xe);ot=setTimeout(ne,function(Ze){var lt=$t-(Ze-Je);return vn?Me(lt,Tn-(Ze-wt)):lt}(Xe))}function ge(Xe){return ot=void 0,ut&&Kt?Wt(Xe):(Kt=kn=void 0,ht)}function ye(){var Xe=I(),Ze=ae(Xe);if(Kt=arguments,kn=this,Je=Xe,Ze){if(ot===void 0)return function(lt){return wt=lt,ot=setTimeout(ne,$t),ft?Wt(lt):ht}(Je);if(vn)return clearTimeout(ot),ot=setTimeout(ne,$t),Wt(Je)}return ot===void 0&&(ot=setTimeout(ne,$t)),ht}return $t=fe($t)||0,k(et)&&(ft=!!et.leading,Tn=(vn="maxWait"in et)?we(fe(et.maxWait)||0,$t):Tn,ut="trailing"in et?!!et.trailing:ut),ye.cancel=function(){ot!==void 0&&clearTimeout(ot),wt=0,Kt=Je=kn=ot=void 0},ye.flush=function(){return ot===void 0?ht:ge(I())},ye};var Ne="Expected a function";const Ye=function(je,$t,et){var Kt=!0,kn=!0;if(typeof je!="function")throw new TypeError(Ne);return k(et)&&(Kt="leading"in et?!!et.leading:Kt,kn="trailing"in et?!!et.trailing:kn),Ce(je,$t,{leading:Kt,maxWait:$t,trailing:kn})},mt=function(je,$t){return function(et){return je($t(et))}}(Object.getPrototypeOf,Object);var Ct="[object Object]",ln=Function.prototype,$e=Object.prototype,Qe=ln.toString,bt=$e.hasOwnProperty,It=Qe.call(Object);const mn=function(je){if(!ee(je)||$(je)!=Ct)return!1;var $t=mt(je);if($t===null)return!0;var et=bt.call($t,"constructor")&&$t.constructor;return typeof et=="function"&&et instanceof et&&Qe.call(et)==It},un=function(je){return ee(je)&&je.nodeType===1&&!mn(je)};class Be extends c.Plugin{constructor($t){super($t),this.set("characters",0),this.set("words",0),Object.defineProperties(this,{characters:{get(){return this.characters=this._getCharacters()}},words:{get(){return this.words=this._getWords()}}}),this.set("_wordsLabel",void 0),this.set("_charactersLabel",void 0),this._config=$t.config.get("wordCount")||{},this._outputView=void 0,this._wordsMatchRegExp=p.env.features.isRegExpUnicodePropertySupported?new RegExp("([\\p{L}\\p{N}]+\\S?)+","gu"):/([a-zA-Z0-9À-ž]+\S?)+/gu}static get pluginName(){return"WordCount"}init(){this.editor.model.document.on("change:data",Ye(this._refreshStats.bind(this),250)),typeof this._config.onUpdate=="function"&&this.on("update",($t,et)=>{this._config.onUpdate(et)}),un(this._config.container)&&this._config.container.appendChild(this.wordCountContainer)}destroy(){this._outputView&&(this._outputView.element.remove(),this._outputView.destroy()),super.destroy()}get wordCountContainer(){const $t=this.editor,et=$t.t,Kt=$t.config.get("wordCount.displayWords"),kn=$t.config.get("wordCount.displayCharacters"),Tn=h.Template.bind(this,this),ht=[];return this._outputView||(this._outputView=new h.View,(Kt||Kt===void 0)&&(this.bind("_wordsLabel").to(this,"words",ot=>et("Words: %0",ot)),ht.push({tag:"div",children:[{text:[Tn.to("_wordsLabel")]}],attributes:{class:"ck-word-count__words"}})),(kn||kn===void 0)&&(this.bind("_charactersLabel").to(this,"characters",ot=>et("Characters: %0",ot)),ht.push({tag:"div",children:[{text:[Tn.to("_charactersLabel")]}],attributes:{class:"ck-word-count__characters"}})),this._outputView.setTemplate({tag:"div",attributes:{class:["ck","ck-word-count"]},children:ht}),this._outputView.render()),this._outputView.element}_getCharacters(){return d(this.editor.model.document.getRoot()).replace(/\n/g,"").length}_getWords(){return(d(this.editor.model.document.getRoot()).match(this._wordsMatchRegExp)||[]).length}_refreshStats(){const $t=this.words=this._getWords(),et=this.characters=this._getCharacters();this.fire("update",{words:$t,characters:et})}}})(),(window.CKEditor5=window.CKEditor5||{}).wordCount=a})()},66751:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>ri});function r(Bt){if(Bt.sheet)return Bt.sheet;for(var Et=0;Et<document.styleSheets.length;Et++)if(document.styleSheets[Et].ownerNode===Bt)return document.styleSheets[Et]}function n(Bt){var Et=document.createElement("style");return Et.setAttribute("data-emotion",Bt.key),Bt.nonce!==void 0&&Et.setAttribute("nonce",Bt.nonce),Et.appendChild(document.createTextNode("")),Et.setAttribute("data-s",""),Et}var s=function(){function Bt(bn){var cn=this;this._insertTag=function(Yn){var on;cn.tags.length===0?cn.insertionPoint?on=cn.insertionPoint.nextSibling:cn.prepend?on=cn.container.firstChild:on=cn.before:on=cn.tags[cn.tags.length-1].nextSibling,cn.container.insertBefore(Yn,on),cn.tags.push(Yn)},this.isSpeedy=bn.speedy===void 0?!0:bn.speedy,this.tags=[],this.ctr=0,this.nonce=bn.nonce,this.key=bn.key,this.container=bn.container,this.prepend=bn.prepend,this.insertionPoint=bn.insertionPoint,this.before=null}var Et=Bt.prototype;return Et.hydrate=function(cn){cn.forEach(this._insertTag)},Et.insert=function(cn){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(n(this));var Yn=this.tags[this.tags.length-1];if(!1)var on;if(this.isSpeedy){var ze=r(Yn);try{ze.insertRule(cn,ze.cssRules.length)}catch{}}else Yn.appendChild(document.createTextNode(cn));this.ctr++},Et.flush=function(){this.tags.forEach(function(cn){return cn.parentNode&&cn.parentNode.removeChild(cn)}),this.tags=[],this.ctr=0},Bt}(),a=Math.abs,c=String.fromCharCode,h=Object.assign;function p(Bt,Et){return w(Bt,0)^45?(((Et<<2^w(Bt,0))<<2^w(Bt,1))<<2^w(Bt,2))<<2^w(Bt,3):0}function d(Bt){return Bt.trim()}function k(Bt,Et){return(Bt=Et.exec(Bt))?Bt[0]:Bt}function M(Bt,Et,bn){return Bt.replace(Et,bn)}function C(Bt,Et){return Bt.indexOf(Et)}function w(Bt,Et){return Bt.charCodeAt(Et)|0}function I(Bt,Et,bn){return Bt.slice(Et,bn)}function F(Bt){return Bt.length}function U(Bt){return Bt.length}function B(Bt,Et){return Et.push(Bt),Bt}function N(Bt,Et){return Bt.map(Et).join("")}var D=1,x=1,T=0,u=0,b=0,E="";function A(Bt,Et,bn,cn,Yn,on,ze){return{value:Bt,root:Et,parent:bn,type:cn,props:Yn,children:on,line:D,column:x,length:ze,return:""}}function R(Bt,Et){return h(A("",null,null,"",null,null,0),Bt,{length:-Bt.length},Et)}function H(){return b}function z(){return b=u>0?w(E,--u):0,x--,b===10&&(x=1,D--),b}function V(){return b=u<T?w(E,u++):0,x++,b===10&&(x=1,D++),b}function $(){return w(E,u)}function ee(){return u}function q(Bt,Et){return I(E,Bt,Et)}function oe(Bt){switch(Bt){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function X(Bt){return D=x=1,T=F(E=Bt),u=0,[]}function pe(Bt){return E="",Bt}function Ie(Bt){return d(q(u-1,we(Bt===91?Bt+2:Bt===40?Bt+1:Bt)))}function se(Bt){return pe(fe(X(Bt)))}function be(Bt){for(;(b=$())&&b<33;)V();return oe(Bt)>2||oe(b)>3?"":" "}function fe(Bt){for(;V();)switch(oe(b)){case 0:append(Ce(u-1),Bt);break;case 2:append(Ie(b),Bt);break;default:append(from(b),Bt)}return Bt}function ue(Bt,Et){for(;--Et&&V()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return q(Bt,ee()+(Et<6&&$()==32&&V()==32))}function we(Bt){for(;V();)switch(b){case Bt:return u;case 34:case 39:Bt!==34&&Bt!==39&&we(b);break;case 40:Bt===41&&we(Bt);break;case 92:V();break}return u}function Me(Bt,Et){for(;V()&&Bt+b!==47+10;)if(Bt+b===42+42&&$()===47)break;return"/*"+q(Et,u-1)+"*"+c(Bt===47?Bt:V())}function Ce(Bt){for(;!oe($());)V();return q(Bt,u)}var Ne="-ms-",Ye="-moz-",mt="-webkit-",Ct="comm",ln="rule",$e="decl",Qe="@page",bt="@media",It="@import",mn="@charset",un="@viewport",Be="@supports",je="@document",$t="@namespace",et="@keyframes",Kt="@font-face",kn="@counter-style",Tn="@font-feature-values",ht="@layer";function ot(Bt,Et){for(var bn="",cn=U(Bt),Yn=0;Yn<cn;Yn++)bn+=Et(Bt[Yn],Yn,Bt,Et)||"";return bn}function Je(Bt,Et,bn,cn){switch(Bt.type){case ht:if(Bt.children.length)break;case It:case $e:return Bt.return=Bt.return||Bt.value;case Ct:return"";case et:return Bt.return=Bt.value+"{"+ot(Bt.children,cn)+"}";case ln:Bt.value=Bt.props.join(",")}return F(bn=ot(Bt.children,cn))?Bt.return=Bt.value+"{"+bn+"}":""}function wt(Bt){var Et=U(Bt);return function(bn,cn,Yn,on){for(var ze="",Le=0;Le<Et;Le++)ze+=Bt[Le](bn,cn,Yn,on)||"";return ze}}function ft(Bt){return function(Et){Et.root||(Et=Et.return)&&Bt(Et)}}function vn(Bt,Et,bn,cn){if(Bt.length>-1&&!Bt.return)switch(Bt.type){case DECLARATION:Bt.return=prefix(Bt.value,Bt.length,bn);return;case KEYFRAMES:return serialize([copy(Bt,{value:replace(Bt.value,"@","@"+WEBKIT)})],cn);case RULESET:if(Bt.length)return combine(Bt.props,function(Yn){switch(match(Yn,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(Bt,{props:[replace(Yn,/:(read-\w+)/,":"+MOZ+"$1")]})],cn);case"::placeholder":return serialize([copy(Bt,{props:[replace(Yn,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(Bt,{props:[replace(Yn,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(Bt,{props:[replace(Yn,/:(plac\w+)/,MS+"input-$1")]})],cn)}return""})}}function ut(Bt){switch(Bt.type){case RULESET:Bt.props=Bt.props.map(function(Et){return combine(tokenize(Et),function(bn,cn,Yn){switch(charat(bn,0)){case 12:return substr(bn,1,strlen(bn));case 0:case 40:case 43:case 62:case 126:return bn;case 58:Yn[++cn]==="global"&&(Yn[cn]="",Yn[++cn]="\f"+substr(Yn[cn],cn=1,-1));case 32:return cn===1?"":bn;default:switch(cn){case 0:return Bt=bn,sizeof(Yn)>1?"":bn;case(cn=sizeof(Yn)-1):case 2:return cn===2?bn+Bt+Bt:bn+Bt;default:return bn}}})})}}function Wt(Bt){return pe(ae("",null,null,null,[""],Bt=X(Bt),0,[0],Bt))}function ae(Bt,Et,bn,cn,Yn,on,ze,Le,Ht){for(var Mn=0,tr=0,Sr=ze,Xr=0,gi=0,Pi=0,ii=1,vr=1,at=1,it=0,Re="",ke=Yn,Pe=on,Te=cn,Mt=Re;vr;)switch(Pi=it,it=V()){case 40:if(Pi!=108&&w(Mt,Sr-1)==58){C(Mt+=M(Ie(it),"&","&\f"),"&\f")!=-1&&(at=-1);break}case 34:case 39:case 91:Mt+=Ie(it);break;case 9:case 10:case 13:case 32:Mt+=be(Pi);break;case 92:Mt+=ue(ee()-1,7);continue;case 47:switch($()){case 42:case 47:B(ge(Me(V(),ee()),Et,bn),Ht);break;default:Mt+="/"}break;case 123*ii:Le[Mn++]=F(Mt)*at;case 125*ii:case 59:case 0:switch(it){case 0:case 125:vr=0;case 59+tr:at==-1&&(Mt=M(Mt,/\f/g,"")),gi>0&&F(Mt)-Sr&&B(gi>32?ye(Mt+";",cn,bn,Sr-1):ye(M(Mt," ","")+";",cn,bn,Sr-2),Ht);break;case 59:Mt+=";";default:if(B(Te=ne(Mt,Et,bn,Mn,tr,Yn,Le,Re,ke=[],Pe=[],Sr),on),it===123)if(tr===0)ae(Mt,Et,Te,Te,ke,on,Sr,Le,Pe);else switch(Xr===99&&w(Mt,3)===110?100:Xr){case 100:case 108:case 109:case 115:ae(Bt,Te,Te,cn&&B(ne(Bt,Te,Te,0,0,Yn,Le,Re,Yn,ke=[],Sr),Pe),Yn,Pe,Sr,Le,cn?ke:Pe);break;default:ae(Mt,Te,Te,Te,[""],Pe,0,Le,Pe)}}Mn=tr=gi=0,ii=at=1,Re=Mt="",Sr=ze;break;case 58:Sr=1+F(Mt),gi=Pi;default:if(ii<1){if(it==123)--ii;else if(it==125&&ii++==0&&z()==125)continue}switch(Mt+=c(it),it*ii){case 38:at=tr>0?1:(Mt+="\f",-1);break;case 44:Le[Mn++]=(F(Mt)-1)*at,at=1;break;case 64:$()===45&&(Mt+=Ie(V())),Xr=$(),tr=Sr=F(Re=Mt+=Ce(ee())),it++;break;case 45:Pi===45&&F(Mt)==2&&(ii=0)}}return on}function ne(Bt,Et,bn,cn,Yn,on,ze,Le,Ht,Mn,tr){for(var Sr=Yn-1,Xr=Yn===0?on:[""],gi=U(Xr),Pi=0,ii=0,vr=0;Pi<cn;++Pi)for(var at=0,it=I(Bt,Sr+1,Sr=a(ii=ze[Pi])),Re=Bt;at<gi;++at)(Re=d(ii>0?Xr[at]+" "+it:M(it,/&\f/g,Xr[at])))&&(Ht[vr++]=Re);return A(Bt,Et,bn,Yn===0?ln:Le,Ht,Mn,tr)}function ge(Bt,Et,bn){return A(Bt,Et,bn,Ct,c(H()),I(Bt,2,-2),0)}function ye(Bt,Et,bn,cn){return A(Bt,Et,bn,$e,I(Bt,0,cn),I(Bt,cn+1,-1),cn)}var Xe=function(Et,bn,cn){for(var Yn=0,on=0;Yn=on,on=$(),Yn===38&&on===12&&(bn[cn]=1),!oe(on);)V();return q(Et,u)},Ze=function(Et,bn){var cn=-1,Yn=44;do switch(oe(Yn)){case 0:Yn===38&&$()===12&&(bn[cn]=1),Et[cn]+=Xe(u-1,bn,cn);break;case 2:Et[cn]+=Ie(Yn);break;case 4:if(Yn===44){Et[++cn]=$()===58?"&\f":"",bn[cn]=Et[cn].length;break}default:Et[cn]+=c(Yn)}while(Yn=V());return Et},lt=function(Et,bn){return pe(Ze(X(Et),bn))},_t=new WeakMap,zt=function(Et){if(!(Et.type!=="rule"||!Et.parent||Et.length<1)){for(var bn=Et.value,cn=Et.parent,Yn=Et.column===cn.column&&Et.line===cn.line;cn.type!=="rule";)if(cn=cn.parent,!cn)return;if(!(Et.props.length===1&&bn.charCodeAt(0)!==58&&!_t.get(cn))&&!Yn){_t.set(Et,!0);for(var on=[],ze=lt(bn,on),Le=cn.props,Ht=0,Mn=0;Ht<ze.length;Ht++)for(var tr=0;tr<Le.length;tr++,Mn++)Et.props[Mn]=on[Ht]?ze[Ht].replace(/&\f/g,Le[tr]):Le[tr]+" "+ze[Ht]}}},Vt=function(Et){if(Et.type==="decl"){var bn=Et.value;bn.charCodeAt(0)===108&&bn.charCodeAt(2)===98&&(Et.return="",Et.value="")}},sn="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",yn=function(Et){return Et.type==="comm"&&Et.children.indexOf(sn)>-1},dr=function(Et){return function(bn,cn,Yn){if(!(bn.type!=="rule"||Et.compat)){var on=bn.value.match(/(:first|:nth|:nth-last)-child/g);if(on){for(var ze=!!bn.parent,Le=ze?bn.parent.children:Yn,Ht=Le.length-1;Ht>=0;Ht--){var Mn=Le[Ht];if(Mn.line<bn.line)break;if(Mn.column<bn.column){if(yn(Mn))return;break}}on.forEach(function(tr){console.error('The pseudo class "'+tr+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+tr.split("-child")[0]+'-of-type".')})}}}},hr=function(Et){return Et.type.charCodeAt(1)===105&&Et.type.charCodeAt(0)===64},Mr=function(Et,bn){for(var cn=Et-1;cn>=0;cn--)if(!hr(bn[cn]))return!0;return!1},rr=function(Et){Et.type="",Et.value="",Et.return="",Et.children="",Et.props=""},Cr=function(Et,bn,cn){hr(Et)&&(Et.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),rr(Et)):Mr(bn,cn)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),rr(Et)))};function Ur(Bt,Et){switch(p(Bt,Et)){case 5103:return mt+"print-"+Bt+Bt;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return mt+Bt+Bt;case 5349:case 4246:case 4810:case 6968:case 2756:return mt+Bt+Ye+Bt+Ne+Bt+Bt;case 6828:case 4268:return mt+Bt+Ne+Bt+Bt;case 6165:return mt+Bt+Ne+"flex-"+Bt+Bt;case 5187:return mt+Bt+M(Bt,/(\w+).+(:[^]+)/,mt+"box-$1$2"+Ne+"flex-$1$2")+Bt;case 5443:return mt+Bt+Ne+"flex-item-"+M(Bt,/flex-|-self/,"")+Bt;case 4675:return mt+Bt+Ne+"flex-line-pack"+M(Bt,/align-content|flex-|-self/,"")+Bt;case 5548:return mt+Bt+Ne+M(Bt,"shrink","negative")+Bt;case 5292:return mt+Bt+Ne+M(Bt,"basis","preferred-size")+Bt;case 6060:return mt+"box-"+M(Bt,"-grow","")+mt+Bt+Ne+M(Bt,"grow","positive")+Bt;case 4554:return mt+M(Bt,/([^-])(transform)/g,"$1"+mt+"$2")+Bt;case 6187:return M(M(M(Bt,/(zoom-|grab)/,mt+"$1"),/(image-set)/,mt+"$1"),Bt,"")+Bt;case 5495:case 3959:return M(Bt,/(image-set\([^]*)/,mt+"$1$`$1");case 4968:return M(M(Bt,/(.+:)(flex-)?(.*)/,mt+"box-pack:$3"+Ne+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+mt+Bt+Bt;case 4095:case 3583:case 4068:case 2532:return M(Bt,/(.+)-inline(.+)/,mt+"$1$2")+Bt;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(F(Bt)-1-Et>6)switch(w(Bt,Et+1)){case 109:if(w(Bt,Et+4)!==45)break;case 102:return M(Bt,/(.+:)(.+)-([^]+)/,"$1"+mt+"$2-$3$1"+Ye+(w(Bt,Et+3)==108?"$3":"$2-$3"))+Bt;case 115:return~C(Bt,"stretch")?Ur(M(Bt,"stretch","fill-available"),Et)+Bt:Bt}break;case 4949:if(w(Bt,Et+1)!==115)break;case 6444:switch(w(Bt,F(Bt)-3-(~C(Bt,"!important")&&10))){case 107:return M(Bt,":",":"+mt)+Bt;case 101:return M(Bt,/(.+:)([^;!]+)(;|!.+)?/,"$1"+mt+(w(Bt,14)===45?"inline-":"")+"box$3$1"+mt+"$2$3$1"+Ne+"$2box$3")+Bt}break;case 5936:switch(w(Bt,Et+11)){case 114:return mt+Bt+Ne+M(Bt,/[svh]\w+-[tblr]{2}/,"tb")+Bt;case 108:return mt+Bt+Ne+M(Bt,/[svh]\w+-[tblr]{2}/,"tb-rl")+Bt;case 45:return mt+Bt+Ne+M(Bt,/[svh]\w+-[tblr]{2}/,"lr")+Bt}return mt+Bt+Ne+Bt+Bt}return Bt}var $r=function(Et,bn,cn,Yn){if(Et.length>-1&&!Et.return)switch(Et.type){case $e:Et.return=Ur(Et.value,Et.length);break;case et:return ot([R(Et,{value:M(Et.value,"@","@"+mt)})],Yn);case ln:if(Et.length)return N(Et.props,function(on){switch(k(on,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ot([R(Et,{props:[M(on,/:(read-\w+)/,":"+Ye+"$1")]})],Yn);case"::placeholder":return ot([R(Et,{props:[M(on,/:(plac\w+)/,":"+mt+"input-$1")]}),R(Et,{props:[M(on,/:(plac\w+)/,":"+Ye+"$1")]}),R(Et,{props:[M(on,/:(plac\w+)/,Ne+"input-$1")]})],Yn)}return""})}},li=[$r],ri=function(Et){var bn=Et.key;if(bn==="css"){var cn=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(cn,function(ii){var vr=ii.getAttribute("data-emotion");vr.indexOf(" ")!==-1&&(document.head.appendChild(ii),ii.setAttribute("data-s",""))})}var Yn=Et.stylisPlugins||li,on={},ze,Le=[];ze=Et.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+bn+' "]'),function(ii){for(var vr=ii.getAttribute("data-emotion").split(" "),at=1;at<vr.length;at++)on[vr[at]]=!0;Le.push(ii)});var Ht,Mn=[zt,Vt];{var tr,Sr=[Je,ft(function(ii){tr.insert(ii)})],Xr=wt(Mn.concat(Yn,Sr)),gi=function(vr){return ot(Wt(vr),Xr)};Ht=function(vr,at,it,Re){tr=it,gi(vr?vr+"{"+at.styles+"}":at.styles),Re&&(Pi.inserted[at.name]=!0)}}var Pi={key:bn,sheet:new s({key:bn,container:ze,nonce:Et.nonce,speedy:Et.speedy,prepend:Et.prepend,insertionPoint:Et.insertionPoint}),nonce:Et.nonce,inserted:on,registered:{},insert:Ht};return Pi.sheet.hydrate(Le),Pi}},2003:(Z,v,t)=>{"use strict";t.d(v,{iv:()=>wt,tZ:()=>ht,F4:()=>ft});var r=t(67294),n=t.t(r,2),s=t(66751),a=!0;function c(Ze,lt,_t){var zt="";return _t.split(" ").forEach(function(Vt){Ze[Vt]!==void 0?lt.push(Ze[Vt]+";"):zt+=Vt+" "}),zt}var h=function(lt,_t,zt){var Vt=lt.key+"-"+_t.name;(zt===!1||a===!1)&&lt.registered[Vt]===void 0&&(lt.registered[Vt]=_t.styles)},p=function(lt,_t,zt){h(lt,_t,zt);var Vt=lt.key+"-"+_t.name;if(lt.inserted[_t.name]===void 0){var sn=_t;do lt.insert(_t===sn?"."+Vt:"",sn,lt.sheet,!0),sn=sn.next;while(sn!==void 0)}};function d(Ze){for(var lt=0,_t,zt=0,Vt=Ze.length;Vt>=4;++zt,Vt-=4)_t=Ze.charCodeAt(zt)&255|(Ze.charCodeAt(++zt)&255)<<8|(Ze.charCodeAt(++zt)&255)<<16|(Ze.charCodeAt(++zt)&255)<<24,_t=(_t&65535)*1540483477+((_t>>>16)*59797<<16),_t^=_t>>>24,lt=(_t&65535)*1540483477+((_t>>>16)*59797<<16)^(lt&65535)*1540483477+((lt>>>16)*59797<<16);switch(Vt){case 3:lt^=(Ze.charCodeAt(zt+2)&255)<<16;case 2:lt^=(Ze.charCodeAt(zt+1)&255)<<8;case 1:lt^=Ze.charCodeAt(zt)&255,lt=(lt&65535)*1540483477+((lt>>>16)*59797<<16)}return lt^=lt>>>13,lt=(lt&65535)*1540483477+((lt>>>16)*59797<<16),((lt^lt>>>15)>>>0).toString(36)}var k={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function M(Ze){var lt=Object.create(null);return function(_t){return lt[_t]===void 0&&(lt[_t]=Ze(_t)),lt[_t]}}var C=`You have illegal escape sequence in your template literal, most likely inside content's property value.
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
You can read more about this here:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,w="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",I=/[A-Z]|^ms/g,F=/_EMO_([^_]+?)_([^]*?)_EMO_/g,U=function(lt){return lt.charCodeAt(1)===45},B=function(lt){return lt!=null&&typeof lt!="boolean"},N=M(function(Ze){return U(Ze)?Ze:Ze.replace(I,"-$&").toLowerCase()}),D=function(lt,_t){switch(lt){case"animation":case"animationName":if(typeof _t=="string")return _t.replace(F,function(zt,Vt,sn){return ee={name:Vt,styles:sn,next:ee},Vt})}return k[lt]!==1&&!U(lt)&&typeof _t=="number"&&_t!==0?_t+"px":_t};if(!1)var x,T,u,b,E,A;var R=null;function H(Ze,lt,_t){if(_t==null)return"";if(_t.__emotion_styles!==void 0)return _t;switch(typeof _t){case"boolean":return"";case"object":{if(_t.anim===1)return ee={name:_t.name,styles:_t.styles,next:ee},_t.name;if(_t.styles!==void 0){var zt=_t.next;if(zt!==void 0)for(;zt!==void 0;)ee={name:zt.name,styles:zt.styles,next:ee},zt=zt.next;var Vt=_t.styles+";";return Vt}return z(Ze,lt,_t)}case"function":{if(Ze!==void 0){var sn=ee,yn=_t(Ze);return ee=sn,H(Ze,lt,yn)}break}case"string":if(!1)var dr,hr;break}if(lt==null)return _t;var Mr=lt[_t];return Mr!==void 0?Mr:_t}function z(Ze,lt,_t){var zt="";if(Array.isArray(_t))for(var Vt=0;Vt<_t.length;Vt++)zt+=H(Ze,lt,_t[Vt])+";";else for(var sn in _t){var yn=_t[sn];if(typeof yn!="object")lt!=null&&lt[yn]!==void 0?zt+=sn+"{"+lt[yn]+"}":B(yn)&&(zt+=N(sn)+":"+D(sn,yn)+";");else if(Array.isArray(yn)&&typeof yn[0]=="string"&&(lt==null||lt[yn[0]]===void 0))for(var dr=0;dr<yn.length;dr++)B(yn[dr])&&(zt+=N(sn)+":"+D(sn,yn[dr])+";");else{var hr=H(Ze,lt,yn);switch(sn){case"animation":case"animationName":{zt+=N(sn)+":"+hr+";";break}default:zt+=sn+"{"+hr+"}"}}}return zt}var V=/label:\s*([^\s;\n{]+)\s*(;|$)/g,$,ee,q=function(lt,_t,zt){if(lt.length===1&&typeof lt[0]=="object"&&lt[0]!==null&&lt[0].styles!==void 0)return lt[0];var Vt=!0,sn="";ee=void 0;var yn=lt[0];yn==null||yn.raw===void 0?(Vt=!1,sn+=H(zt,_t,yn)):sn+=yn[0];for(var dr=1;dr<lt.length;dr++)sn+=H(zt,_t,lt[dr]),Vt&&(sn+=yn[dr]);var hr;V.lastIndex=0;for(var Mr="",rr;(rr=V.exec(sn))!==null;)Mr+="-"+rr[1];var Cr=d(sn)+Mr;return{name:Cr,styles:sn,next:ee}},oe=function(lt){return lt()},X=n["useInsertionEffect"]?n["useInsertionEffect"]:!1,pe=X||oe,Ie=X||r.useLayoutEffect,se=!0,be={}.hasOwnProperty,fe=r.createContext(typeof HTMLElement<"u"?(0,s.Z)({key:"css"}):null),ue=fe.Provider,we=function(){return useContext(fe)},Me=function(lt){return(0,r.forwardRef)(function(_t,zt){var Vt=(0,r.useContext)(fe);return lt(_t,Vt,zt)})};se||(Me=function(lt){return function(_t){var zt=(0,r.useContext)(fe);return zt===null?(zt=(0,s.Z)({key:"css"}),r.createElement(fe.Provider,{value:zt},lt(_t,zt))):lt(_t,zt)}});var Ce=r.createContext({}),Ne=function(){return React.useContext(Ce)},Ye=function(lt,_t){if(typeof _t=="function"){var zt=_t(lt);return zt}return _extends({},lt,_t)},mt=null,Ct=function(lt){var _t=React.useContext(Ce);return lt.theme!==_t&&(_t=mt(_t)(lt.theme)),React.createElement(Ce.Provider,{value:_t},lt.children)};function ln(Ze){var lt=Ze.displayName||Ze.name||"Component",_t=function(sn,yn){var dr=React.useContext(Ce);return React.createElement(Ze,_extends({theme:dr,ref:yn},sn))},zt=React.forwardRef(_t);return zt.displayName="WithTheme("+lt+")",hoistNonReactStatics(zt,Ze)}var $e=function(lt){var _t=lt.split(".");return _t[_t.length-1]},Qe=function(lt){var _t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(lt);if(_t||(_t=/^([A-Za-z0-9$.]+)@/.exec(lt),_t))return $e(_t[1])},bt=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),It=function(lt){return lt.replace(/\$/g,"-")},mn=function(lt){if(lt)for(var _t=lt.split(`
`),zt=0;zt<_t.length;zt++){var Vt=Qe(_t[zt]);if(Vt){if(bt.has(Vt))break;if(/^[A-Z]/.test(Vt))return It(Vt)}}},un="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Be="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",je=function(lt,_t){var zt={};for(var Vt in _t)be.call(_t,Vt)&&(zt[Vt]=_t[Vt]);if(zt[un]=lt,!1)var sn;return zt},$t=function(lt){var _t=lt.cache,zt=lt.serialized,Vt=lt.isStringTag;return h(_t,zt,Vt),pe(function(){return p(_t,zt,Vt)}),null},et=Me(function(Ze,lt,_t){var zt=Ze.css;typeof zt=="string"&&lt.registered[zt]!==void 0&&(zt=lt.registered[zt]);var Vt=Ze[un],sn=[zt],yn="";typeof Ze.className=="string"?yn=c(lt.registered,sn,Ze.className):Ze.className!=null&&(yn=Ze.className+" ");var dr=q(sn,void 0,r.useContext(Ce));if(!1)var hr;yn+=lt.key+"-"+dr.name;var Mr={};for(var rr in Ze)be.call(Ze,rr)&&rr!=="css"&&rr!==un&&(Mr[rr]=Ze[rr]);return Mr.ref=_t,Mr.className=yn,r.createElement(r.Fragment,null,r.createElement($t,{cache:lt,serialized:dr,isStringTag:typeof Vt=="string"}),r.createElement(Vt,Mr))}),Kt=et,kn=t(8679),Tn={name:"@emotion/react",version:"11.11.1",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.2","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.0","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},ht=function(lt,_t){var zt=arguments;if(_t==null||!be.call(_t,"css"))return r.createElement.apply(void 0,zt);var Vt=zt.length,sn=new Array(Vt);sn[0]=Kt,sn[1]=je(lt,_t);for(var yn=2;yn<Vt;yn++)sn[yn]=zt[yn];return r.createElement.apply(null,sn)},ot=!1,Je=null;function wt(){for(var Ze=arguments.length,lt=new Array(Ze),_t=0;_t<Ze;_t++)lt[_t]=arguments[_t];return q(lt)}var ft=function(){var lt=wt.apply(void 0,arguments),_t="animation-"+lt.name;return{name:_t,styles:"@keyframes "+_t+"{"+lt.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},vn=function Ze(lt){for(var _t=lt.length,zt=0,Vt="";zt<_t;zt++){var sn=lt[zt];if(sn!=null){var yn=void 0;switch(typeof sn){case"boolean":break;case"object":{if(Array.isArray(sn))yn=Ze(sn);else{yn="";for(var dr in sn)sn[dr]&&dr&&(yn&&(yn+=" "),yn+=dr)}break}default:yn=sn}yn&&(Vt&&(Vt+=" "),Vt+=yn)}}return Vt};function ut(Ze,lt,_t){var zt=[],Vt=getRegisteredStyles(Ze,zt,_t);return zt.length<2?_t:Vt+lt(zt)}var Wt=function(lt){var _t=lt.cache,zt=lt.serializedArr;return useInsertionEffectAlwaysWithSyncFallback(function(){for(var Vt=0;Vt<zt.length;Vt++)insertStyles(_t,zt[Vt],!1)}),null},ae=null;if(!1)var ne,ge,ye,Xe},25687:(Z,v,t)=>{"use strict";t.d(v,{kG:()=>M});function r(C){return Math.floor(Math.log(C)*Math.LOG10E)}function n(C,w){if(typeof C.repeat=="function")return C.repeat(w);for(var I=new Array(w),F=0;F<I.length;F++)I[F]=C;return I.join("")}function s(C,w,I,F){C.get(w)||C.set(w,Object.create(null));var U=C.get(w);U[I]=F}function a(C,w,I){for(var F=0,U=Object.keys(I);F<U.length;F++){var B=U[F];s(C,w,B,I[B])}}function c(C,w,I){return h(C,w,I)[I]}function h(C,w){for(var I=[],F=2;F<arguments.length;F++)I[F-2]=arguments[F];var U=C.get(w);if(!U)throw new TypeError("".concat(w," InternalSlot has not been initialized"));return I.reduce(function(B,N){return B[N]=U[N],B},Object.create(null))}function p(C){return C.type==="literal"}function d(C,w,I){var F=I.value;Object.defineProperty(C,w,{configurable:!0,enumerable:!1,writable:!0,value:F})}var k=/-u(?:-[0-9a-z]{2,8})+/gi;function M(C,w,I){if(I===void 0&&(I=Error),!C)throw new I(w)}},95957:(Z,v,t)=>{"use strict";t.d(v,{A:()=>w,H:()=>r});function r(I,F){var U=F&&F.cache?F.cache:C,B=F&&F.serializer?F.serializer:k,N=F&&F.strategy?F.strategy:h;return N(I,{cache:U,serializer:B})}function n(I){return I==null||typeof I=="number"||typeof I=="boolean"}function s(I,F,U,B){var N=n(B)?B:U(B),D=F.get(N);return typeof D>"u"&&(D=I.call(this,B),F.set(N,D)),D}function a(I,F,U){var B=Array.prototype.slice.call(arguments,3),N=U(B),D=F.get(N);return typeof D>"u"&&(D=I.apply(this,B),F.set(N,D)),D}function c(I,F,U,B,N){return U.bind(F,I,B,N)}function h(I,F){var U=I.length===1?s:a;return c(I,this,U,F.cache.create(),F.serializer)}function p(I,F){return c(I,this,a,F.cache.create(),F.serializer)}function d(I,F){return c(I,this,s,F.cache.create(),F.serializer)}var k=function(){return JSON.stringify(arguments)};function M(){this.cache=Object.create(null)}M.prototype.get=function(I){return this.cache[I]},M.prototype.set=function(I,F){this.cache[I]=F};var C={create:function(){return new M}},w={variadic:p,monadic:d}},39943:(Z,v,t)=>{"use strict";t.d(v,{wD:()=>s,VG:()=>h,rp:()=>d,Ii:()=>U,O4:()=>c,uf:()=>p,Wh:()=>F,Jo:()=>C,yx:()=>w,Wi:()=>M,HI:()=>I,pe:()=>k,Qc:()=>ut});var r=t(97582),n;(function(ae){ae[ae.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",ae[ae.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",ae[ae.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",ae[ae.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",ae[ae.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",ae[ae.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",ae[ae.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",ae[ae.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",ae[ae.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",ae[ae.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",ae[ae.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",ae[ae.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",ae[ae.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",ae[ae.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",ae[ae.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",ae[ae.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",ae[ae.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",ae[ae.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",ae[ae.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",ae[ae.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",ae[ae.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",ae[ae.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",ae[ae.INVALID_TAG=23]="INVALID_TAG",ae[ae.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",ae[ae.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",ae[ae.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(n||(n={}));var s;(function(ae){ae[ae.literal=0]="literal",ae[ae.argument=1]="argument",ae[ae.number=2]="number",ae[ae.date=3]="date",ae[ae.time=4]="time",ae[ae.select=5]="select",ae[ae.plural=6]="plural",ae[ae.pound=7]="pound",ae[ae.tag=8]="tag"})(s||(s={}));var a;(function(ae){ae[ae.number=0]="number",ae[ae.dateTime=1]="dateTime"})(a||(a={}));function c(ae){return ae.type===s.literal}function h(ae){return ae.type===s.argument}function p(ae){return ae.type===s.number}function d(ae){return ae.type===s.date}function k(ae){return ae.type===s.time}function M(ae){return ae.type===s.select}function C(ae){return ae.type===s.plural}function w(ae){return ae.type===s.pound}function I(ae){return ae.type===s.tag}function F(ae){return!!(ae&&typeof ae=="object"&&ae.type===a.number)}function U(ae){return!!(ae&&typeof ae=="object"&&ae.type===a.dateTime)}function B(ae){return{type:s.literal,value:ae}}function N(ae,ne){return{type:s.number,value:ae,style:ne}}var D=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,x=/[\t-\r \x85\u200E\u200F\u2028\u2029]/,T=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function u(ae){var ne={};return ae.replace(T,function(ge){var ye=ge.length;switch(ge[0]){case"G":ne.era=ye===4?"long":ye===5?"narrow":"short";break;case"y":ne.year=ye===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":ne.month=["numeric","2-digit","short","long","narrow"][ye-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":ne.day=["numeric","2-digit"][ye-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":ne.weekday=ye===4?"short":ye===5?"narrow":"short";break;case"e":if(ye<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");ne.weekday=["short","long","narrow","short"][ye-4];break;case"c":if(ye<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");ne.weekday=["short","long","narrow","short"][ye-4];break;case"a":ne.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":ne.hourCycle="h12",ne.hour=["numeric","2-digit"][ye-1];break;case"H":ne.hourCycle="h23",ne.hour=["numeric","2-digit"][ye-1];break;case"K":ne.hourCycle="h11",ne.hour=["numeric","2-digit"][ye-1];break;case"k":ne.hourCycle="h24",ne.hour=["numeric","2-digit"][ye-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":ne.minute=["numeric","2-digit"][ye-1];break;case"s":ne.second=["numeric","2-digit"][ye-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":ne.timeZoneName=ye<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),ne}var b=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function E(ae){if(ae.length===0)throw new Error("Number skeleton cannot be empty");for(var ne=ae.split(b).filter(function(dr){return dr.length>0}),ge=[],ye=0,Xe=ne;ye<Xe.length;ye++){var Ze=Xe[ye],lt=Ze.split("/");if(lt.length===0)throw new Error("Invalid number skeleton");for(var _t=lt[0],zt=lt.slice(1),Vt=0,sn=zt;Vt<sn.length;Vt++){var yn=sn[Vt];if(yn.length===0)throw new Error("Invalid number skeleton")}ge.push({stem:_t,options:zt})}return ge}function A(ae){return ae.replace(/^(.*?)-/,"")}var R=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,H=/^(@+)?(\+|#+)?[rs]?$/g,z=/(\*)(0+)|(#+)(0+)|(0+)/g,V=/^(0+)$/;function $(ae){var ne={};return ae[ae.length-1]==="r"?ne.roundingPriority="morePrecision":ae[ae.length-1]==="s"&&(ne.roundingPriority="lessPrecision"),ae.replace(H,function(ge,ye,Xe){return typeof Xe!="string"?(ne.minimumSignificantDigits=ye.length,ne.maximumSignificantDigits=ye.length):Xe==="+"?ne.minimumSignificantDigits=ye.length:ye[0]==="#"?ne.maximumSignificantDigits=ye.length:(ne.minimumSignificantDigits=ye.length,ne.maximumSignificantDigits=ye.length+(typeof Xe=="string"?Xe.length:0)),""}),ne}function ee(ae){switch(ae){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function q(ae){var ne;if(ae[0]==="E"&&ae[1]==="E"?(ne={notation:"engineering"},ae=ae.slice(2)):ae[0]==="E"&&(ne={notation:"scientific"},ae=ae.slice(1)),ne){var ge=ae.slice(0,2);if(ge==="+!"?(ne.signDisplay="always",ae=ae.slice(2)):ge==="+?"&&(ne.signDisplay="exceptZero",ae=ae.slice(2)),!V.test(ae))throw new Error("Malformed concise eng/scientific notation");ne.minimumIntegerDigits=ae.length}return ne}function oe(ae){var ne={},ge=ee(ae);return ge||ne}function X(ae){for(var ne={},ge=0,ye=ae;ge<ye.length;ge++){var Xe=ye[ge];switch(Xe.stem){case"percent":case"%":ne.style="percent";continue;case"%x100":ne.style="percent",ne.scale=100;continue;case"currency":ne.style="currency",ne.currency=Xe.options[0];continue;case"group-off":case",_":ne.useGrouping=!1;continue;case"precision-integer":case".":ne.maximumFractionDigits=0;continue;case"measure-unit":case"unit":ne.style="unit",ne.unit=A(Xe.options[0]);continue;case"compact-short":case"K":ne.notation="compact",ne.compactDisplay="short";continue;case"compact-long":case"KK":ne.notation="compact",ne.compactDisplay="long";continue;case"scientific":ne=(0,r.pi)((0,r.pi)((0,r.pi)({},ne),{notation:"scientific"}),Xe.options.reduce(function(zt,Vt){return(0,r.pi)((0,r.pi)({},zt),oe(Vt))},{}));continue;case"engineering":ne=(0,r.pi)((0,r.pi)((0,r.pi)({},ne),{notation:"engineering"}),Xe.options.reduce(function(zt,Vt){return(0,r.pi)((0,r.pi)({},zt),oe(Vt))},{}));continue;case"notation-simple":ne.notation="standard";continue;case"unit-width-narrow":ne.currencyDisplay="narrowSymbol",ne.unitDisplay="narrow";continue;case"unit-width-short":ne.currencyDisplay="code",ne.unitDisplay="short";continue;case"unit-width-full-name":ne.currencyDisplay="name",ne.unitDisplay="long";continue;case"unit-width-iso-code":ne.currencyDisplay="symbol";continue;case"scale":ne.scale=parseFloat(Xe.options[0]);continue;case"integer-width":if(Xe.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");Xe.options[0].replace(z,function(zt,Vt,sn,yn,dr,hr){if(Vt)ne.minimumIntegerDigits=sn.length;else{if(yn&&dr)throw new Error("We currently do not support maximum integer digits");if(hr)throw new Error("We currently do not support exact integer digits")}return""});continue}if(V.test(Xe.stem)){ne.minimumIntegerDigits=Xe.stem.length;continue}if(R.test(Xe.stem)){if(Xe.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");Xe.stem.replace(R,function(zt,Vt,sn,yn,dr,hr){return sn==="*"?ne.minimumFractionDigits=Vt.length:yn&&yn[0]==="#"?ne.maximumFractionDigits=yn.length:dr&&hr?(ne.minimumFractionDigits=dr.length,ne.maximumFractionDigits=dr.length+hr.length):(ne.minimumFractionDigits=Vt.length,ne.maximumFractionDigits=Vt.length),""});var Ze=Xe.options[0];Ze==="w"?ne=(0,r.pi)((0,r.pi)({},ne),{trailingZeroDisplay:"stripIfInteger"}):Ze&&(ne=(0,r.pi)((0,r.pi)({},ne),$(Ze)));continue}if(H.test(Xe.stem)){ne=(0,r.pi)((0,r.pi)({},ne),$(Xe.stem));continue}var lt=ee(Xe.stem);lt&&(ne=(0,r.pi)((0,r.pi)({},ne),lt));var _t=q(Xe.stem);_t&&(ne=(0,r.pi)((0,r.pi)({},ne),_t))}return ne}var pe={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function Ie(ae,ne){for(var ge="",ye=0;ye<ae.length;ye++){var Xe=ae.charAt(ye);if(Xe==="j"){for(var Ze=0;ye+1<ae.length&&ae.charAt(ye+1)===Xe;)Ze++,ye++;var lt=1+(Ze&1),_t=Ze<2?1:3+(Ze>>1),zt="a",Vt=se(ne);for((Vt=="H"||Vt=="k")&&(_t=0);_t-- >0;)ge+=zt;for(;lt-- >0;)ge=Vt+ge}else Xe==="J"?ge+="H":ge+=Xe}return ge}function se(ae){var ne=ae.hourCycle;if(ne===void 0&&ae.hourCycles&&ae.hourCycles.length&&(ne=ae.hourCycles[0]),ne)switch(ne){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var ge=ae.language,ye;ge!=="root"&&(ye=ae.maximize().region);var Xe=pe[ye||""]||pe[ge||""]||pe["".concat(ge,"-001")]||pe["001"];return Xe[0]}var be,fe=new RegExp("^".concat(D.source,"*")),ue=new RegExp("".concat(D.source,"*$"));function we(ae,ne){return{start:ae,end:ne}}var Me=!!String.prototype.startsWith,Ce=!!String.fromCodePoint,Ne=!!Object.fromEntries,Ye=!!String.prototype.codePointAt,mt=!!String.prototype.trimStart,Ct=!!String.prototype.trimEnd,ln=!!Number.isSafeInteger,$e=ln?Number.isSafeInteger:function(ae){return typeof ae=="number"&&isFinite(ae)&&Math.floor(ae)===ae&&Math.abs(ae)<=9007199254740991},Qe=!0;try{var bt=et("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Qe=((be=bt.exec("a"))===null||be===void 0?void 0:be[0])==="a"}catch{Qe=!1}var It=Me?function(ne,ge,ye){return ne.startsWith(ge,ye)}:function(ne,ge,ye){return ne.slice(ye,ye+ge.length)===ge},mn=Ce?String.fromCodePoint:function(){for(var ne=[],ge=0;ge<arguments.length;ge++)ne[ge]=arguments[ge];for(var ye="",Xe=ne.length,Ze=0,lt;Xe>Ze;){if(lt=ne[Ze++],lt>1114111)throw RangeError(lt+" is not a valid code point");ye+=lt<65536?String.fromCharCode(lt):String.fromCharCode(((lt-=65536)>>10)+55296,lt%1024+56320)}return ye},un=Ne?Object.fromEntries:function(ne){for(var ge={},ye=0,Xe=ne;ye<Xe.length;ye++){var Ze=Xe[ye],lt=Ze[0],_t=Ze[1];ge[lt]=_t}return ge},Be=Ye?function(ne,ge){return ne.codePointAt(ge)}:function(ne,ge){var ye=ne.length;if(!(ge<0||ge>=ye)){var Xe=ne.charCodeAt(ge),Ze;return Xe<55296||Xe>56319||ge+1===ye||(Ze=ne.charCodeAt(ge+1))<56320||Ze>57343?Xe:(Xe-55296<<10)+(Ze-56320)+65536}},je=mt?function(ne){return ne.trimStart()}:function(ne){return ne.replace(fe,"")},$t=Ct?function(ne){return ne.trimEnd()}:function(ne){return ne.replace(ue,"")};function et(ae,ne){return new RegExp(ae,ne)}var Kt;if(Qe){var kn=et("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Kt=function(ne,ge){var ye;kn.lastIndex=ge;var Xe=kn.exec(ne);return(ye=Xe[1])!==null&&ye!==void 0?ye:""}}else Kt=function(ne,ge){for(var ye=[];;){var Xe=Be(ne,ge);if(Xe===void 0||wt(Xe)||ft(Xe))break;ye.push(Xe),ge+=Xe>=65536?2:1}return mn.apply(void 0,ye)};var Tn=function(){function ae(ne,ge){ge===void 0&&(ge={}),this.message=ne,this.position={offset:0,line:1,column:1},this.ignoreTag=!!ge.ignoreTag,this.locale=ge.locale,this.requiresOtherClause=!!ge.requiresOtherClause,this.shouldParseSkeletons=!!ge.shouldParseSkeletons}return ae.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},ae.prototype.parseMessage=function(ne,ge,ye){for(var Xe=[];!this.isEOF();){var Ze=this.char();if(Ze===123){var lt=this.parseArgument(ne,ye);if(lt.err)return lt;Xe.push(lt.val)}else{if(Ze===125&&ne>0)break;if(Ze===35&&(ge==="plural"||ge==="selectordinal")){var _t=this.clonePosition();this.bump(),Xe.push({type:s.pound,location:we(_t,this.clonePosition())})}else if(Ze===60&&!this.ignoreTag&&this.peek()===47){if(ye)break;return this.error(n.UNMATCHED_CLOSING_TAG,we(this.clonePosition(),this.clonePosition()))}else if(Ze===60&&!this.ignoreTag&&ht(this.peek()||0)){var lt=this.parseTag(ne,ge);if(lt.err)return lt;Xe.push(lt.val)}else{var lt=this.parseLiteral(ne,ge);if(lt.err)return lt;Xe.push(lt.val)}}}return{val:Xe,err:null}},ae.prototype.parseTag=function(ne,ge){var ye=this.clonePosition();this.bump();var Xe=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:s.literal,value:"<".concat(Xe,"/>"),location:we(ye,this.clonePosition())},err:null};if(this.bumpIf(">")){var Ze=this.parseMessage(ne+1,ge,!0);if(Ze.err)return Ze;var lt=Ze.val,_t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ht(this.char()))return this.error(n.INVALID_TAG,we(_t,this.clonePosition()));var zt=this.clonePosition(),Vt=this.parseTagName();return Xe!==Vt?this.error(n.UNMATCHED_CLOSING_TAG,we(zt,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:s.tag,value:Xe,children:lt,location:we(ye,this.clonePosition())},err:null}:this.error(n.INVALID_TAG,we(_t,this.clonePosition())))}else return this.error(n.UNCLOSED_TAG,we(ye,this.clonePosition()))}else return this.error(n.INVALID_TAG,we(ye,this.clonePosition()))},ae.prototype.parseTagName=function(){var ne=this.offset();for(this.bump();!this.isEOF()&&Je(this.char());)this.bump();return this.message.slice(ne,this.offset())},ae.prototype.parseLiteral=function(ne,ge){for(var ye=this.clonePosition(),Xe="";;){var Ze=this.tryParseQuote(ge);if(Ze){Xe+=Ze;continue}var lt=this.tryParseUnquoted(ne,ge);if(lt){Xe+=lt;continue}var _t=this.tryParseLeftAngleBracket();if(_t){Xe+=_t;continue}break}var zt=we(ye,this.clonePosition());return{val:{type:s.literal,value:Xe,location:zt},err:null}},ae.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!ot(this.peek()||0))?(this.bump(),"<"):null},ae.prototype.tryParseQuote=function(ne){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(ne==="plural"||ne==="selectordinal")break;return null;default:return null}this.bump();var ge=[this.char()];for(this.bump();!this.isEOF();){var ye=this.char();if(ye===39)if(this.peek()===39)ge.push(39),this.bump();else{this.bump();break}else ge.push(ye);this.bump()}return mn.apply(void 0,ge)},ae.prototype.tryParseUnquoted=function(ne,ge){if(this.isEOF())return null;var ye=this.char();return ye===60||ye===123||ye===35&&(ge==="plural"||ge==="selectordinal")||ye===125&&ne>0?null:(this.bump(),mn(ye))},ae.prototype.parseArgument=function(ne,ge){var ye=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,we(ye,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(n.EMPTY_ARGUMENT,we(ye,this.clonePosition()));var Xe=this.parseIdentifierIfPossible().value;if(!Xe)return this.error(n.MALFORMED_ARGUMENT,we(ye,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,we(ye,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:s.argument,value:Xe,location:we(ye,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,we(ye,this.clonePosition())):this.parseArgumentOptions(ne,ge,Xe,ye);default:return this.error(n.MALFORMED_ARGUMENT,we(ye,this.clonePosition()))}},ae.prototype.parseIdentifierIfPossible=function(){var ne=this.clonePosition(),ge=this.offset(),ye=Kt(this.message,ge),Xe=ge+ye.length;this.bumpTo(Xe);var Ze=this.clonePosition(),lt=we(ne,Ze);return{value:ye,location:lt}},ae.prototype.parseArgumentOptions=function(ne,ge,ye,Xe){var Ze,lt=this.clonePosition(),_t=this.parseIdentifierIfPossible().value,zt=this.clonePosition();switch(_t){case"":return this.error(n.EXPECT_ARGUMENT_TYPE,we(lt,zt));case"number":case"date":case"time":{this.bumpSpace();var Vt=null;if(this.bumpIf(",")){this.bumpSpace();var sn=this.clonePosition(),yn=this.parseSimpleArgStyleIfPossible();if(yn.err)return yn;var dr=$t(yn.val);if(dr.length===0)return this.error(n.EXPECT_ARGUMENT_STYLE,we(this.clonePosition(),this.clonePosition()));var hr=we(sn,this.clonePosition());Vt={style:dr,styleLocation:hr}}var Mr=this.tryParseArgumentClose(Xe);if(Mr.err)return Mr;var rr=we(Xe,this.clonePosition());if(Vt&&It(Vt?.style,"::",0)){var Cr=je(Vt.style.slice(2));if(_t==="number"){var yn=this.parseNumberSkeletonFromString(Cr,Vt.styleLocation);return yn.err?yn:{val:{type:s.number,value:ye,location:rr,style:yn.val},err:null}}else{if(Cr.length===0)return this.error(n.EXPECT_DATE_TIME_SKELETON,rr);var Ur=Cr;this.locale&&(Ur=Ie(Cr,this.locale));var dr={type:a.dateTime,pattern:Ur,location:Vt.styleLocation,parsedOptions:this.shouldParseSkeletons?u(Ur):{}},$r=_t==="date"?s.date:s.time;return{val:{type:$r,value:ye,location:rr,style:dr},err:null}}}return{val:{type:_t==="number"?s.number:_t==="date"?s.date:s.time,value:ye,location:rr,style:(Ze=Vt?.style)!==null&&Ze!==void 0?Ze:null},err:null}}case"plural":case"selectordinal":case"select":{var li=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(n.EXPECT_SELECT_ARGUMENT_OPTIONS,we(li,(0,r.pi)({},li)));this.bumpSpace();var ri=this.parseIdentifierIfPossible(),Bt=0;if(_t!=="select"&&ri.value==="offset"){if(!this.bumpIf(":"))return this.error(n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,we(this.clonePosition(),this.clonePosition()));this.bumpSpace();var yn=this.tryParseDecimalInteger(n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(yn.err)return yn;this.bumpSpace(),ri=this.parseIdentifierIfPossible(),Bt=yn.val}var Et=this.tryParsePluralOrSelectOptions(ne,_t,ge,ri);if(Et.err)return Et;var Mr=this.tryParseArgumentClose(Xe);if(Mr.err)return Mr;var bn=we(Xe,this.clonePosition());return _t==="select"?{val:{type:s.select,value:ye,options:un(Et.val),location:bn},err:null}:{val:{type:s.plural,value:ye,options:un(Et.val),offset:Bt,pluralType:_t==="plural"?"cardinal":"ordinal",location:bn},err:null}}default:return this.error(n.INVALID_ARGUMENT_TYPE,we(lt,zt))}},ae.prototype.tryParseArgumentClose=function(ne){return this.isEOF()||this.char()!==125?this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,we(ne,this.clonePosition())):(this.bump(),{val:!0,err:null})},ae.prototype.parseSimpleArgStyleIfPossible=function(){for(var ne=0,ge=this.clonePosition();!this.isEOF();){var ye=this.char();switch(ye){case 39:{this.bump();var Xe=this.clonePosition();if(!this.bumpUntil("'"))return this.error(n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,we(Xe,this.clonePosition()));this.bump();break}case 123:{ne+=1,this.bump();break}case 125:{if(ne>0)ne-=1;else return{val:this.message.slice(ge.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(ge.offset,this.offset()),err:null}},ae.prototype.parseNumberSkeletonFromString=function(ne,ge){var ye=[];try{ye=E(ne)}catch{return this.error(n.INVALID_NUMBER_SKELETON,ge)}return{val:{type:a.number,tokens:ye,location:ge,parsedOptions:this.shouldParseSkeletons?X(ye):{}},err:null}},ae.prototype.tryParsePluralOrSelectOptions=function(ne,ge,ye,Xe){for(var Ze,lt=!1,_t=[],zt=new Set,Vt=Xe.value,sn=Xe.location;;){if(Vt.length===0){var yn=this.clonePosition();if(ge!=="select"&&this.bumpIf("=")){var dr=this.tryParseDecimalInteger(n.EXPECT_PLURAL_ARGUMENT_SELECTOR,n.INVALID_PLURAL_ARGUMENT_SELECTOR);if(dr.err)return dr;sn=we(yn,this.clonePosition()),Vt=this.message.slice(yn.offset,this.offset())}else break}if(zt.has(Vt))return this.error(ge==="select"?n.DUPLICATE_SELECT_ARGUMENT_SELECTOR:n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,sn);Vt==="other"&&(lt=!0),this.bumpSpace();var hr=this.clonePosition();if(!this.bumpIf("{"))return this.error(ge==="select"?n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,we(this.clonePosition(),this.clonePosition()));var Mr=this.parseMessage(ne+1,ge,ye);if(Mr.err)return Mr;var rr=this.tryParseArgumentClose(hr);if(rr.err)return rr;_t.push([Vt,{value:Mr.val,location:we(hr,this.clonePosition())}]),zt.add(Vt),this.bumpSpace(),Ze=this.parseIdentifierIfPossible(),Vt=Ze.value,sn=Ze.location}return _t.length===0?this.error(ge==="select"?n.EXPECT_SELECT_ARGUMENT_SELECTOR:n.EXPECT_PLURAL_ARGUMENT_SELECTOR,we(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!lt?this.error(n.MISSING_OTHER_CLAUSE,we(this.clonePosition(),this.clonePosition())):{val:_t,err:null}},ae.prototype.tryParseDecimalInteger=function(ne,ge){var ye=1,Xe=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(ye=-1);for(var Ze=!1,lt=0;!this.isEOF();){var _t=this.char();if(_t>=48&&_t<=57)Ze=!0,lt=lt*10+(_t-48),this.bump();else break}var zt=we(Xe,this.clonePosition());return Ze?(lt*=ye,$e(lt)?{val:lt,err:null}:this.error(ge,zt)):this.error(ne,zt)},ae.prototype.offset=function(){return this.position.offset},ae.prototype.isEOF=function(){return this.offset()===this.message.length},ae.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},ae.prototype.char=function(){var ne=this.position.offset;if(ne>=this.message.length)throw Error("out of bound");var ge=Be(this.message,ne);if(ge===void 0)throw Error("Offset ".concat(ne," is at invalid UTF-16 code unit boundary"));return ge},ae.prototype.error=function(ne,ge){return{val:null,err:{kind:ne,message:this.message,location:ge}}},ae.prototype.bump=function(){if(!this.isEOF()){var ne=this.char();ne===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=ne<65536?1:2)}},ae.prototype.bumpIf=function(ne){if(It(this.message,ne,this.offset())){for(var ge=0;ge<ne.length;ge++)this.bump();return!0}return!1},ae.prototype.bumpUntil=function(ne){var ge=this.offset(),ye=this.message.indexOf(ne,ge);return ye>=0?(this.bumpTo(ye),!0):(this.bumpTo(this.message.length),!1)},ae.prototype.bumpTo=function(ne){if(this.offset()>ne)throw Error("targetOffset ".concat(ne," must be greater than or equal to the current offset ").concat(this.offset()));for(ne=Math.min(ne,this.message.length);;){var ge=this.offset();if(ge===ne)break;if(ge>ne)throw Error("targetOffset ".concat(ne," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},ae.prototype.bumpSpace=function(){for(;!this.isEOF()&&wt(this.char());)this.bump()},ae.prototype.peek=function(){if(this.isEOF())return null;var ne=this.char(),ge=this.offset(),ye=this.message.charCodeAt(ge+(ne>=65536?2:1));return ye??null},ae}();function ht(ae){return ae>=97&&ae<=122||ae>=65&&ae<=90}function ot(ae){return ht(ae)||ae===47}function Je(ae){return ae===45||ae===46||ae>=48&&ae<=57||ae===95||ae>=97&&ae<=122||ae>=65&&ae<=90||ae==183||ae>=192&&ae<=214||ae>=216&&ae<=246||ae>=248&&ae<=893||ae>=895&&ae<=8191||ae>=8204&&ae<=8205||ae>=8255&&ae<=8256||ae>=8304&&ae<=8591||ae>=11264&&ae<=12271||ae>=12289&&ae<=55295||ae>=63744&&ae<=64975||ae>=65008&&ae<=65533||ae>=65536&&ae<=983039}function wt(ae){return ae>=9&&ae<=13||ae===32||ae===133||ae>=8206&&ae<=8207||ae===8232||ae===8233}function ft(ae){return ae>=33&&ae<=35||ae===36||ae>=37&&ae<=39||ae===40||ae===41||ae===42||ae===43||ae===44||ae===45||ae>=46&&ae<=47||ae>=58&&ae<=59||ae>=60&&ae<=62||ae>=63&&ae<=64||ae===91||ae===92||ae===93||ae===94||ae===96||ae===123||ae===124||ae===125||ae===126||ae===161||ae>=162&&ae<=165||ae===166||ae===167||ae===169||ae===171||ae===172||ae===174||ae===176||ae===177||ae===182||ae===187||ae===191||ae===215||ae===247||ae>=8208&&ae<=8213||ae>=8214&&ae<=8215||ae===8216||ae===8217||ae===8218||ae>=8219&&ae<=8220||ae===8221||ae===8222||ae===8223||ae>=8224&&ae<=8231||ae>=8240&&ae<=8248||ae===8249||ae===8250||ae>=8251&&ae<=8254||ae>=8257&&ae<=8259||ae===8260||ae===8261||ae===8262||ae>=8263&&ae<=8273||ae===8274||ae===8275||ae>=8277&&ae<=8286||ae>=8592&&ae<=8596||ae>=8597&&ae<=8601||ae>=8602&&ae<=8603||ae>=8604&&ae<=8607||ae===8608||ae>=8609&&ae<=8610||ae===8611||ae>=8612&&ae<=8613||ae===8614||ae>=8615&&ae<=8621||ae===8622||ae>=8623&&ae<=8653||ae>=8654&&ae<=8655||ae>=8656&&ae<=8657||ae===8658||ae===8659||ae===8660||ae>=8661&&ae<=8691||ae>=8692&&ae<=8959||ae>=8960&&ae<=8967||ae===8968||ae===8969||ae===8970||ae===8971||ae>=8972&&ae<=8991||ae>=8992&&ae<=8993||ae>=8994&&ae<=9e3||ae===9001||ae===9002||ae>=9003&&ae<=9083||ae===9084||ae>=9085&&ae<=9114||ae>=9115&&ae<=9139||ae>=9140&&ae<=9179||ae>=9180&&ae<=9185||ae>=9186&&ae<=9254||ae>=9255&&ae<=9279||ae>=9280&&ae<=9290||ae>=9291&&ae<=9311||ae>=9472&&ae<=9654||ae===9655||ae>=9656&&ae<=9664||ae===9665||ae>=9666&&ae<=9719||ae>=9720&&ae<=9727||ae>=9728&&ae<=9838||ae===9839||ae>=9840&&ae<=10087||ae===10088||ae===10089||ae===10090||ae===10091||ae===10092||ae===10093||ae===10094||ae===10095||ae===10096||ae===10097||ae===10098||ae===10099||ae===10100||ae===10101||ae>=10132&&ae<=10175||ae>=10176&&ae<=10180||ae===10181||ae===10182||ae>=10183&&ae<=10213||ae===10214||ae===10215||ae===10216||ae===10217||ae===10218||ae===10219||ae===10220||ae===10221||ae===10222||ae===10223||ae>=10224&&ae<=10239||ae>=10240&&ae<=10495||ae>=10496&&ae<=10626||ae===10627||ae===10628||ae===10629||ae===10630||ae===10631||ae===10632||ae===10633||ae===10634||ae===10635||ae===10636||ae===10637||ae===10638||ae===10639||ae===10640||ae===10641||ae===10642||ae===10643||ae===10644||ae===10645||ae===10646||ae===10647||ae===10648||ae>=10649&&ae<=10711||ae===10712||ae===10713||ae===10714||ae===10715||ae>=10716&&ae<=10747||ae===10748||ae===10749||ae>=10750&&ae<=11007||ae>=11008&&ae<=11055||ae>=11056&&ae<=11076||ae>=11077&&ae<=11078||ae>=11079&&ae<=11084||ae>=11085&&ae<=11123||ae>=11124&&ae<=11125||ae>=11126&&ae<=11157||ae===11158||ae>=11159&&ae<=11263||ae>=11776&&ae<=11777||ae===11778||ae===11779||ae===11780||ae===11781||ae>=11782&&ae<=11784||ae===11785||ae===11786||ae===11787||ae===11788||ae===11789||ae>=11790&&ae<=11798||ae===11799||ae>=11800&&ae<=11801||ae===11802||ae===11803||ae===11804||ae===11805||ae>=11806&&ae<=11807||ae===11808||ae===11809||ae===11810||ae===11811||ae===11812||ae===11813||ae===11814||ae===11815||ae===11816||ae===11817||ae>=11818&&ae<=11822||ae===11823||ae>=11824&&ae<=11833||ae>=11834&&ae<=11835||ae>=11836&&ae<=11839||ae===11840||ae===11841||ae===11842||ae>=11843&&ae<=11855||ae>=11856&&ae<=11857||ae===11858||ae>=11859&&ae<=11903||ae>=12289&&ae<=12291||ae===12296||ae===12297||ae===12298||ae===12299||ae===12300||ae===12301||ae===12302||ae===12303||ae===12304||ae===12305||ae>=12306&&ae<=12307||ae===12308||ae===12309||ae===12310||ae===12311||ae===12312||ae===12313||ae===12314||ae===12315||ae===12316||ae===12317||ae>=12318&&ae<=12319||ae===12320||ae===12336||ae===64830||ae===64831||ae>=65093&&ae<=65094}function vn(ae){ae.forEach(function(ne){if(delete ne.location,M(ne)||C(ne))for(var ge in ne.options)delete ne.options[ge].location,vn(ne.options[ge].value);else p(ne)&&F(ne.style)||(d(ne)||k(ne))&&U(ne.style)?delete ne.style.location:I(ne)&&vn(ne.children)})}function ut(ae,ne){ne===void 0&&(ne={}),ne=(0,r.pi)({shouldParseSkeletons:!0,requiresOtherClause:!0},ne);var ge=new Tn(ae,ne).parse();if(ge.err){var ye=SyntaxError(n[ge.err.kind]);throw ye.location=ge.err.location,ye.originalMessage=ge.err.message,ye}return ne?.captureLocation||vn(ge.val),ge.val}var Wt=null},88222:(Z,v,t)=>{"use strict";t.d(v,{$6:()=>k,OV:()=>c,Qe:()=>p,X9:()=>d,gb:()=>h,wI:()=>a});var r=t(97582),n;(function(M){M.FORMAT_ERROR="FORMAT_ERROR",M.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",M.INVALID_CONFIG="INVALID_CONFIG",M.MISSING_DATA="MISSING_DATA",M.MISSING_TRANSLATION="MISSING_TRANSLATION"})(n||(n={}));var s=function(M){(0,r.ZT)(C,M);function C(w,I,F){var U=this,B=F?F instanceof Error?F:new Error(String(F)):void 0;return U=M.call(this,"[@formatjs/intl Error ".concat(w,"] ").concat(I,`
`).concat(B?`
`.concat(B.message,`
`).concat(B.stack):""))||this,U.code=w,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(U,C),U}return C}(Error),a=function(M){(0,r.ZT)(C,M);function C(w,I){return M.call(this,n.UNSUPPORTED_FORMATTER,w,I)||this}return C}(s),c=function(M){(0,r.ZT)(C,M);function C(w,I){return M.call(this,n.INVALID_CONFIG,w,I)||this}return C}(s),h=function(M){(0,r.ZT)(C,M);function C(w,I){return M.call(this,n.MISSING_DATA,w,I)||this}return C}(s),p=function(M){(0,r.ZT)(C,M);function C(w,I,F){var U=M.call(this,n.FORMAT_ERROR,"".concat(w,`
Locale: `).concat(I,`
`),F)||this;return U.locale=I,U}return C}(s),d=function(M){(0,r.ZT)(C,M);function C(w,I,F,U){var B=M.call(this,"".concat(w,`
MessageID: `).concat(F?.id,`
Default Message: `).concat(F?.defaultMessage,`
Description: `).concat(F?.description,`
`),I,U)||this;return B.descriptor=F,B.locale=I,B}return C}(p),k=function(M){(0,r.ZT)(C,M);function C(w,I){var F=M.call(this,n.MISSING_TRANSLATION,'Missing message: "'.concat(w.id,'" for locale "').concat(I,'", using ').concat(w.defaultMessage?"default message (".concat(typeof w.defaultMessage=="string"?w.defaultMessage:w.defaultMessage.map(function(U){var B;return(B=U.value)!==null&&B!==void 0?B:JSON.stringify(U)}).join(),")"):"id"," as fallback."))||this;return F.descriptor=w,F}return C}(s)},82644:(Z,v,t)=>{"use strict";t.d(v,{L6:()=>c,Sn:()=>k,TB:()=>w,Z0:()=>d,ax:()=>C});var r=t(97582),n=t(16284),s=t(95957),a=t(88222);function c(I,F,U){return U===void 0&&(U={}),F.reduce(function(B,N){return N in I?B[N]=I[N]:N in U&&(B[N]=U[N]),B},{})}var h=function(I){},p=function(I){},d={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:h,onWarn:p};function k(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function M(I){return{create:function(){return{get:function(F){return I[F]},set:function(F,U){I[F]=U}}}}}function C(I){I===void 0&&(I=k());var F=Intl.RelativeTimeFormat,U=Intl.ListFormat,B=Intl.DisplayNames,N=(0,s.H)(function(){for(var T,u=[],b=0;b<arguments.length;b++)u[b]=arguments[b];return new((T=Intl.DateTimeFormat).bind.apply(T,(0,r.ev)([void 0],u,!1)))},{cache:M(I.dateTime),strategy:s.A.variadic}),D=(0,s.H)(function(){for(var T,u=[],b=0;b<arguments.length;b++)u[b]=arguments[b];return new((T=Intl.NumberFormat).bind.apply(T,(0,r.ev)([void 0],u,!1)))},{cache:M(I.number),strategy:s.A.variadic}),x=(0,s.H)(function(){for(var T,u=[],b=0;b<arguments.length;b++)u[b]=arguments[b];return new((T=Intl.PluralRules).bind.apply(T,(0,r.ev)([void 0],u,!1)))},{cache:M(I.pluralRules),strategy:s.A.variadic});return{getDateTimeFormat:N,getNumberFormat:D,getMessageFormat:(0,s.H)(function(T,u,b,E){return new n.C(T,u,b,(0,r.pi)({formatters:{getNumberFormat:D,getDateTimeFormat:N,getPluralRules:x}},E||{}))},{cache:M(I.message),strategy:s.A.variadic}),getRelativeTimeFormat:(0,s.H)(function(){for(var T=[],u=0;u<arguments.length;u++)T[u]=arguments[u];return new(F.bind.apply(F,(0,r.ev)([void 0],T,!1)))},{cache:M(I.relativeTime),strategy:s.A.variadic}),getPluralRules:x,getListFormat:(0,s.H)(function(){for(var T=[],u=0;u<arguments.length;u++)T[u]=arguments[u];return new(U.bind.apply(U,(0,r.ev)([void 0],T,!1)))},{cache:M(I.list),strategy:s.A.variadic}),getDisplayNames:(0,s.H)(function(){for(var T=[],u=0;u<arguments.length;u++)T[u]=arguments[u];return new(B.bind.apply(B,(0,r.ev)([void 0],T,!1)))},{cache:M(I.displayNames),strategy:s.A.variadic})}}function w(I,F,U,B){var N=I&&I[F],D;if(N&&(D=N[U]),D)return D;B(new a.wI("No ".concat(F," format named: ").concat(U)))}},71775:Z=>{function v(r,n,s,a){Object.defineProperty(r,n,{get:s,set:a,enumerable:!0,configurable:!0})}v(Z.exports,"composeEventHandlers",()=>t);function t(r,n,{checkForDefaultPrevented:s=!0}={}){return function(c){if(r?.(c),s===!1||!c.defaultPrevented)return n?.(c)}}},20261:(Z,v,t)=>{var r=t(67294);function n(h,p,d,k){Object.defineProperty(h,p,{get:d,set:k,enumerable:!0,configurable:!0})}n(Z.exports,"composeRefs",()=>a),n(Z.exports,"useComposedRefs",()=>c);function s(h,p){typeof h=="function"?h(p):h!=null&&(h.current=p)}function a(...h){return p=>h.forEach(d=>s(d,p))}function c(...h){return r.useCallback(a(...h),h)}},8685:(Z,v,t)=>{var r=t(10434),n=t(67294),s=t(71775),a=t(61570),c=t(20261),h=t(98402),p=t(85385);function d(R,H,z,V){Object.defineProperty(R,H,{get:z,set:V,enumerable:!0,configurable:!0})}function k(R){return R&&R.__esModule?R.default:R}d(Z.exports,"DismissableLayer",()=>B),d(Z.exports,"DismissableLayerBranch",()=>D),d(Z.exports,"Root",()=>E),d(Z.exports,"Branch",()=>A);const M="DismissableLayer",C="dismissableLayer.update",w="dismissableLayer.pointerDownOutside",I="dismissableLayer.focusOutside";let F;const U=n.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),B=n.forwardRef((R,H)=>{var z;const{disableOutsidePointerEvents:V=!1,onEscapeKeyDown:$,onPointerDownOutside:ee,onFocusOutside:q,onInteractOutside:oe,onDismiss:X,...pe}=R,Ie=n.useContext(U),[se,be]=n.useState(null),fe=(z=se?.ownerDocument)!==null&&z!==void 0?z:globalThis?.document,[,ue]=n.useState({}),we=c.useComposedRefs(H,Qe=>be(Qe)),Me=Array.from(Ie.layers),[Ce]=[...Ie.layersWithOutsidePointerEventsDisabled].slice(-1),Ne=Me.indexOf(Ce),Ye=se?Me.indexOf(se):-1,mt=Ie.layersWithOutsidePointerEventsDisabled.size>0,Ct=Ye>=Ne,ln=x(Qe=>{const bt=Qe.target,It=[...Ie.branches].some(mn=>mn.contains(bt));!Ct||It||(ee?.(Qe),oe?.(Qe),Qe.defaultPrevented||X?.())},fe),$e=T(Qe=>{const bt=Qe.target;[...Ie.branches].some(mn=>mn.contains(bt))||(q?.(Qe),oe?.(Qe),Qe.defaultPrevented||X?.())},fe);return p.useEscapeKeydown(Qe=>{Ye===Ie.layers.size-1&&($?.(Qe),!Qe.defaultPrevented&&X&&(Qe.preventDefault(),X()))},fe),n.useEffect(()=>{if(se)return V&&(Ie.layersWithOutsidePointerEventsDisabled.size===0&&(F=fe.body.style.pointerEvents,fe.body.style.pointerEvents="none"),Ie.layersWithOutsidePointerEventsDisabled.add(se)),Ie.layers.add(se),u(),()=>{V&&Ie.layersWithOutsidePointerEventsDisabled.size===1&&(fe.body.style.pointerEvents=F)}},[se,fe,V,Ie]),n.useEffect(()=>()=>{se&&(Ie.layers.delete(se),Ie.layersWithOutsidePointerEventsDisabled.delete(se),u())},[se,Ie]),n.useEffect(()=>{const Qe=()=>ue({});return document.addEventListener(C,Qe),()=>document.removeEventListener(C,Qe)},[]),n.createElement(a.Primitive.div,k(r)({},pe,{ref:we,style:{pointerEvents:mt?Ct?"auto":"none":void 0,...R.style},onFocusCapture:s.composeEventHandlers(R.onFocusCapture,$e.onFocusCapture),onBlurCapture:s.composeEventHandlers(R.onBlurCapture,$e.onBlurCapture),onPointerDownCapture:s.composeEventHandlers(R.onPointerDownCapture,ln.onPointerDownCapture)}))}),N="DismissableLayerBranch",D=n.forwardRef((R,H)=>{const z=n.useContext(U),V=n.useRef(null),$=c.useComposedRefs(H,V);return n.useEffect(()=>{const ee=V.current;if(ee)return z.branches.add(ee),()=>{z.branches.delete(ee)}},[z.branches]),n.createElement(a.Primitive.div,k(r)({},R,{ref:$}))});function x(R,H=globalThis?.document){const z=h.useCallbackRef(R),V=n.useRef(!1),$=n.useRef(()=>{});return n.useEffect(()=>{const ee=oe=>{if(oe.target&&!V.current){let Ie=function(){b(w,z,pe,{discrete:!0})};var X=Ie;const pe={originalEvent:oe};oe.pointerType==="touch"?(H.removeEventListener("click",$.current),$.current=Ie,H.addEventListener("click",$.current,{once:!0})):Ie()}else H.removeEventListener("click",$.current);V.current=!1},q=window.setTimeout(()=>{H.addEventListener("pointerdown",ee)},0);return()=>{window.clearTimeout(q),H.removeEventListener("pointerdown",ee),H.removeEventListener("click",$.current)}},[H,z]),{onPointerDownCapture:()=>V.current=!0}}function T(R,H=globalThis?.document){const z=h.useCallbackRef(R),V=n.useRef(!1);return n.useEffect(()=>{const $=ee=>{ee.target&&!V.current&&b(I,z,{originalEvent:ee},{discrete:!1})};return H.addEventListener("focusin",$),()=>H.removeEventListener("focusin",$)},[H,z]),{onFocusCapture:()=>V.current=!0,onBlurCapture:()=>V.current=!1}}function u(){const R=new CustomEvent(C);document.dispatchEvent(R)}function b(R,H,z,{discrete:V}){const $=z.originalEvent.target,ee=new CustomEvent(R,{bubbles:!1,cancelable:!0,detail:z});H&&$.addEventListener(R,H,{once:!0}),V?a.dispatchDiscreteCustomEvent($,ee):$.dispatchEvent(ee)}const E=B,A=D},61570:(Z,v,t)=>{var r=t(10434),n=t(67294),s=t(73935),a=t(83089);function c(C,w,I,F){Object.defineProperty(C,w,{get:I,set:F,enumerable:!0,configurable:!0})}function h(C){return C&&C.__esModule?C.default:C}c(Z.exports,"Primitive",()=>d),c(Z.exports,"Root",()=>M),c(Z.exports,"dispatchDiscreteCustomEvent",()=>k);const d=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((C,w)=>{const I=n.forwardRef((F,U)=>{const{asChild:B,...N}=F,D=B?a.Slot:w;return n.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),n.createElement(D,h(r)({},N,{ref:U}))});return I.displayName=`Primitive.${w}`,{...C,[w]:I}},{});function k(C,w){C&&s.flushSync(()=>C.dispatchEvent(w))}const M=d},83089:(Z,v,t)=>{var r=t(10434),n=t(67294),s=t(20261);function a(w,I,F,U){Object.defineProperty(w,I,{get:F,set:U,enumerable:!0,configurable:!0})}function c(w){return w&&w.__esModule?w.default:w}a(Z.exports,"Slot",()=>h),a(Z.exports,"Slottable",()=>d),a(Z.exports,"Root",()=>C);const h=n.forwardRef((w,I)=>{const{children:F,...U}=w,B=n.Children.toArray(F),N=B.find(k);if(N){const D=N.props.children,x=B.map(T=>T===N?n.Children.count(D)>1?n.Children.only(null):n.isValidElement(D)?D.props.children:null:T);return n.createElement(p,c(r)({},U,{ref:I}),n.isValidElement(D)?n.cloneElement(D,void 0,x):null)}return n.createElement(p,c(r)({},U,{ref:I}),F)});h.displayName="Slot";const p=n.forwardRef((w,I)=>{const{children:F,...U}=w;return n.isValidElement(F)?n.cloneElement(F,{...M(U,F.props),ref:I?s.composeRefs(I,F.ref):F.ref}):n.Children.count(F)>1?n.Children.only(null):null});p.displayName="SlotClone";const d=({children:w})=>n.createElement(n.Fragment,null,w);function k(w){return n.isValidElement(w)&&w.type===d}function M(w,I){const F={...I};for(const U in I){const B=w[U],N=I[U];/^on[A-Z]/.test(U)?B&&N?F[U]=(...x)=>{N(...x),B(...x)}:B&&(F[U]=B):U==="style"?F[U]={...B,...N}:U==="className"&&(F[U]=[B,N].filter(Boolean).join(" "))}return{...w,...F}}const C=h},98402:(Z,v,t)=>{var r=t(67294);function n(a,c,h,p){Object.defineProperty(a,c,{get:h,set:p,enumerable:!0,configurable:!0})}n(Z.exports,"useCallbackRef",()=>s);function s(a){const c=r.useRef(a);return r.useEffect(()=>{c.current=a}),r.useMemo(()=>(...h)=>{var p;return(p=c.current)===null||p===void 0?void 0:p.call(c,...h)},[])}},85385:(Z,v,t)=>{var r=t(67294),n=t(98402);function s(c,h,p,d){Object.defineProperty(c,h,{get:p,set:d,enumerable:!0,configurable:!0})}s(Z.exports,"useEscapeKeydown",()=>a);function a(c,h=globalThis?.document){const p=n.useCallbackRef(c);r.useEffect(()=>{const d=k=>{k.key==="Escape"&&p(k)};return h.addEventListener("keydown",d),()=>h.removeEventListener("keydown",d)},[p,h])}},74998:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});var r=t(55530);class n{enqueueTask(a){const{queue:c,requestFlush:h}=this;c.length||(h(),this.flushing=!0),c[c.length]=a}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:a}=this;for(;this.index<a.length;){const c=this.index;if(this.index++,a[c].call(),this.index>this.capacity){for(let h=0,p=a.length-this.index;h<p;h++)a[h]=a[h+this.index];a.length-=this.index,this.index=0}}a.length=0,this.index=0,this.flushing=!1},this.registerPendingError=a=>{this.pendingErrors.push(a),this.requestErrorThrow()},this.requestFlush=r.makeRequestCall(this.flush),this.requestErrorThrow=r.makeRequestCallFromTimer(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}v.AsapQueue=n},52482:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});class t{call(){try{this.task&&this.task()}catch(n){this.onError(n)}finally{this.task=null,this.release(this)}}constructor(n,s){this.onError=n,this.release=s,this.task=null}}v.RawTask=t},44985:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});var r=t(52482);class n{create(a){const c=this.freeTasks,h=c.length?c.pop():new r.RawTask(this.onError,p=>c[c.length]=p);return h.task=a,h}constructor(a){this.onError=a,this.freeTasks=[]}}v.TaskFactory=n},1729:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.asap=c;var r=t(74998),n=t(44985);const s=new r.AsapQueue,a=new n.TaskFactory(s.registerPendingError);function c(h){s.enqueueTask(a.create(h))}},68280:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});var r={},n=h(t(1729));Object.keys(n).forEach(function(p){p==="default"||p==="__esModule"||Object.prototype.hasOwnProperty.call(r,p)||p in v&&v[p]===n[p]||Object.defineProperty(v,p,{enumerable:!0,get:function(){return n[p]}})});var s=h(t(35661));Object.keys(s).forEach(function(p){p==="default"||p==="__esModule"||Object.prototype.hasOwnProperty.call(r,p)||p in v&&v[p]===s[p]||Object.defineProperty(v,p,{enumerable:!0,get:function(){return s[p]}})});var a=h(t(74998));Object.keys(a).forEach(function(p){p==="default"||p==="__esModule"||Object.prototype.hasOwnProperty.call(r,p)||p in v&&v[p]===a[p]||Object.defineProperty(v,p,{enumerable:!0,get:function(){return a[p]}})});var c=h(t(44985));Object.keys(c).forEach(function(p){p==="default"||p==="__esModule"||Object.prototype.hasOwnProperty.call(r,p)||p in v&&v[p]===c[p]||Object.defineProperty(v,p,{enumerable:!0,get:function(){return c[p]}})});function h(p){if(p&&p.__esModule)return p;var d={};if(p!=null){for(var k in p)if(Object.prototype.hasOwnProperty.call(p,k)){var M=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(p,k):{};M.get||M.set?Object.defineProperty(d,k,M):d[k]=p[k]}}return d.default=p,d}},55530:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.makeRequestCallFromTimer=s,v.makeRequestCallFromMutationObserver=a,v.makeRequestCall=void 0;const r=typeof t.g<"u"?t.g:self,n=r.MutationObserver||r.WebKitMutationObserver;function s(h){return function(){const d=setTimeout(M,0),k=setInterval(M,50);function M(){clearTimeout(d),clearInterval(k),h()}}}function a(h){let p=1;const d=new n(h),k=document.createTextNode("");return d.observe(k,{characterData:!0}),function(){p=-p,k.data=p}}const c=typeof n=="function"?a:s;v.makeRequestCall=c},35661:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0})},56278:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.invariant=t;function t(n,s,...a){if(r()&&s===void 0)throw new Error("invariant requires an error message argument");if(!n){let c;if(s===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let h=0;c=new Error(s.replace(/%s/g,function(){return a[h++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}function r(){return typeof process<"u"&&!0}},83984:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.shallowEqual=t;function t(r,n,s,a){let c=s?s.call(a,r,n):void 0;if(c!==void 0)return!!c;if(r===n)return!0;if(typeof r!="object"||!r||typeof n!="object"||!n)return!1;const h=Object.keys(r),p=Object.keys(n);if(h.length!==p.length)return!1;const d=Object.prototype.hasOwnProperty.bind(n);for(let k=0;k<h.length;k++){const M=h[k];if(!d(M))return!1;const C=r[M],w=n[M];if(c=s?s.call(a,C,w,M):void 0,c===!1||c===void 0&&C!==w)return!1}return!0}},46831:(Z,v,t)=>{"use strict";const r=t(28808),n=t(73535),s=t(73126),a=d=>d.replace(/([A-Z]{2,})(\d+)/g,"$1 $2").replace(/([a-z\d]+)([A-Z]{2,})/g,"$1 $2").replace(/([a-z\d])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1 $2"),c=(d,k)=>{const M=r(k);return d.replace(new RegExp(`${M}{2,}`,"g"),k).replace(new RegExp(`^${M}|${M}$`,"g"),"")},h=(d,k)=>{if(typeof d!="string")throw new TypeError(`Expected a string, got \`${typeof d}\``);k={separator:"-",lowercase:!0,decamelize:!0,customReplacements:[],preserveLeadingUnderscore:!1,...k};const M=k.preserveLeadingUnderscore&&d.startsWith("_"),C=new Map([...s,...k.customReplacements]);d=n(d,{customReplacements:C}),k.decamelize&&(d=a(d));let w=/[^a-zA-Z\d]+/g;return k.lowercase&&(d=d.toLowerCase(),w=/[^a-z\d]+/g),d=d.replace(w,k.separator),d=d.replace(/\\/g,""),k.separator&&(d=c(d,k.separator)),M&&(d=`_${d}`),d},p=()=>{const d=new Map,k=(M,C)=>{if(M=h(M,C),!M)return"";const w=M.toLowerCase(),I=d.get(w.replace(/(?:-\d+?)+?$/,""))||0,F=d.get(w);d.set(w,typeof F=="number"?F+1:1);const U=d.get(w)||2;return(U>=2||I>2)&&(M=`${M}-${U}`),M};return k.reset=()=>{d.clear()},k};Z.exports=h,Z.exports.counter=p},28808:Z=>{"use strict";Z.exports=v=>{if(typeof v!="string")throw new TypeError("Expected a string");return v.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},73126:Z=>{"use strict";Z.exports=[["&"," and "],["\u{1F984}"," unicorn "],["\u2665"," love "]]},73535:(Z,v,t)=>{"use strict";const r=t(66688),n=t(84826),s=t(26724),a=(c,h)=>{for(const[p,d]of h)c=c.replace(new RegExp(n(p),"g"),d);return c};Z.exports=(c,h)=>{if(typeof c!="string")throw new TypeError(`Expected a string, got \`${typeof c}\``);h={customReplacements:[],...h};const p=new Map([...s,...h.customReplacements]);return c=c.normalize(),c=a(c,p),c=r(c),c}},84826:Z=>{"use strict";const v=/[|\\{}()[\]^$+*?.-]/g;Z.exports=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(v,"\\$&")}},26724:Z=>{"use strict";Z.exports=[["\xDF","ss"],["\xE4","ae"],["\xC4","Ae"],["\xF6","oe"],["\xD6","Oe"],["\xFC","ue"],["\xDC","Ue"],["\xC0","A"],["\xC1","A"],["\xC2","A"],["\xC3","A"],["\xC4","Ae"],["\xC5","A"],["\xC6","AE"],["\xC7","C"],["\xC8","E"],["\xC9","E"],["\xCA","E"],["\xCB","E"],["\xCC","I"],["\xCD","I"],["\xCE","I"],["\xCF","I"],["\xD0","D"],["\xD1","N"],["\xD2","O"],["\xD3","O"],["\xD4","O"],["\xD5","O"],["\xD6","Oe"],["\u0150","O"],["\xD8","O"],["\xD9","U"],["\xDA","U"],["\xDB","U"],["\xDC","Ue"],["\u0170","U"],["\xDD","Y"],["\xDE","TH"],["\xDF","ss"],["\xE0","a"],["\xE1","a"],["\xE2","a"],["\xE3","a"],["\xE4","ae"],["\xE5","a"],["\xE6","ae"],["\xE7","c"],["\xE8","e"],["\xE9","e"],["\xEA","e"],["\xEB","e"],["\xEC","i"],["\xED","i"],["\xEE","i"],["\xEF","i"],["\xF0","d"],["\xF1","n"],["\xF2","o"],["\xF3","o"],["\xF4","o"],["\xF5","o"],["\xF6","oe"],["\u0151","o"],["\xF8","o"],["\xF9","u"],["\xFA","u"],["\xFB","u"],["\xFC","ue"],["\u0171","u"],["\xFD","y"],["\xFE","th"],["\xFF","y"],["\u1E9E","SS"],["\xE0","a"],["\xC0","A"],["\xE1","a"],["\xC1","A"],["\xE2","a"],["\xC2","A"],["\xE3","a"],["\xC3","A"],["\xE8","e"],["\xC8","E"],["\xE9","e"],["\xC9","E"],["\xEA","e"],["\xCA","E"],["\xEC","i"],["\xCC","I"],["\xED","i"],["\xCD","I"],["\xF2","o"],["\xD2","O"],["\xF3","o"],["\xD3","O"],["\xF4","o"],["\xD4","O"],["\xF5","o"],["\xD5","O"],["\xF9","u"],["\xD9","U"],["\xFA","u"],["\xDA","U"],["\xFD","y"],["\xDD","Y"],["\u0103","a"],["\u0102","A"],["\u0110","D"],["\u0111","d"],["\u0129","i"],["\u0128","I"],["\u0169","u"],["\u0168","U"],["\u01A1","o"],["\u01A0","O"],["\u01B0","u"],["\u01AF","U"],["\u1EA1","a"],["\u1EA0","A"],["\u1EA3","a"],["\u1EA2","A"],["\u1EA5","a"],["\u1EA4","A"],["\u1EA7","a"],["\u1EA6","A"],["\u1EA9","a"],["\u1EA8","A"],["\u1EAB","a"],["\u1EAA","A"],["\u1EAD","a"],["\u1EAC","A"],["\u1EAF","a"],["\u1EAE","A"],["\u1EB1","a"],["\u1EB0","A"],["\u1EB3","a"],["\u1EB2","A"],["\u1EB5","a"],["\u1EB4","A"],["\u1EB7","a"],["\u1EB6","A"],["\u1EB9","e"],["\u1EB8","E"],["\u1EBB","e"],["\u1EBA","E"],["\u1EBD","e"],["\u1EBC","E"],["\u1EBF","e"],["\u1EBE","E"],["\u1EC1","e"],["\u1EC0","E"],["\u1EC3","e"],["\u1EC2","E"],["\u1EC5","e"],["\u1EC4","E"],["\u1EC7","e"],["\u1EC6","E"],["\u1EC9","i"],["\u1EC8","I"],["\u1ECB","i"],["\u1ECA","I"],["\u1ECD","o"],["\u1ECC","O"],["\u1ECF","o"],["\u1ECE","O"],["\u1ED1","o"],["\u1ED0","O"],["\u1ED3","o"],["\u1ED2","O"],["\u1ED5","o"],["\u1ED4","O"],["\u1ED7","o"],["\u1ED6","O"],["\u1ED9","o"],["\u1ED8","O"],["\u1EDB","o"],["\u1EDA","O"],["\u1EDD","o"],["\u1EDC","O"],["\u1EDF","o"],["\u1EDE","O"],["\u1EE1","o"],["\u1EE0","O"],["\u1EE3","o"],["\u1EE2","O"],["\u1EE5","u"],["\u1EE4","U"],["\u1EE7","u"],["\u1EE6","U"],["\u1EE9","u"],["\u1EE8","U"],["\u1EEB","u"],["\u1EEA","U"],["\u1EED","u"],["\u1EEC","U"],["\u1EEF","u"],["\u1EEE","U"],["\u1EF1","u"],["\u1EF0","U"],["\u1EF3","y"],["\u1EF2","Y"],["\u1EF5","y"],["\u1EF4","Y"],["\u1EF7","y"],["\u1EF6","Y"],["\u1EF9","y"],["\u1EF8","Y"],["\u0621","e"],["\u0622","a"],["\u0623","a"],["\u0624","w"],["\u0625","i"],["\u0626","y"],["\u0627","a"],["\u0628","b"],["\u0629","t"],["\u062A","t"],["\u062B","th"],["\u062C","j"],["\u062D","h"],["\u062E","kh"],["\u062F","d"],["\u0630","dh"],["\u0631","r"],["\u0632","z"],["\u0633","s"],["\u0634","sh"],["\u0635","s"],["\u0636","d"],["\u0637","t"],["\u0638","z"],["\u0639","e"],["\u063A","gh"],["\u0640","_"],["\u0641","f"],["\u0642","q"],["\u0643","k"],["\u0644","l"],["\u0645","m"],["\u0646","n"],["\u0647","h"],["\u0648","w"],["\u0649","a"],["\u064A","y"],["\u064E\u200E","a"],["\u064F","u"],["\u0650\u200E","i"],["\u0660","0"],["\u0661","1"],["\u0662","2"],["\u0663","3"],["\u0664","4"],["\u0665","5"],["\u0666","6"],["\u0667","7"],["\u0668","8"],["\u0669","9"],["\u0686","ch"],["\u06A9","k"],["\u06AF","g"],["\u067E","p"],["\u0698","zh"],["\u06CC","y"],["\u06F0","0"],["\u06F1","1"],["\u06F2","2"],["\u06F3","3"],["\u06F4","4"],["\u06F5","5"],["\u06F6","6"],["\u06F7","7"],["\u06F8","8"],["\u06F9","9"],["\u067C","p"],["\u0681","z"],["\u0685","c"],["\u0689","d"],["\uFEAB","d"],["\uFEAD","r"],["\u0693","r"],["\uFEAF","z"],["\u0696","g"],["\u069A","x"],["\u06AB","g"],["\u06BC","n"],["\u06C0","e"],["\u06D0","e"],["\u06CD","ai"],["\u0679","t"],["\u0688","d"],["\u0691","r"],["\u06BA","n"],["\u06C1","h"],["\u06BE","h"],["\u06D2","e"],["\u0410","A"],["\u0430","a"],["\u0411","B"],["\u0431","b"],["\u0412","V"],["\u0432","v"],["\u0413","G"],["\u0433","g"],["\u0414","D"],["\u0434","d"],["\u0415","E"],["\u0435","e"],["\u0416","Zh"],["\u0436","zh"],["\u0417","Z"],["\u0437","z"],["\u0418","I"],["\u0438","i"],["\u0419","J"],["\u0439","j"],["\u041A","K"],["\u043A","k"],["\u041B","L"],["\u043B","l"],["\u041C","M"],["\u043C","m"],["\u041D","N"],["\u043D","n"],["\u041E","O"],["\u043E","o"],["\u041F","P"],["\u043F","p"],["\u0420","R"],["\u0440","r"],["\u0421","S"],["\u0441","s"],["\u0422","T"],["\u0442","t"],["\u0423","U"],["\u0443","u"],["\u0424","F"],["\u0444","f"],["\u0425","H"],["\u0445","h"],["\u0426","Cz"],["\u0446","cz"],["\u0427","Ch"],["\u0447","ch"],["\u0428","Sh"],["\u0448","sh"],["\u0429","Shh"],["\u0449","shh"],["\u042A",""],["\u044A",""],["\u042B","Y"],["\u044B","y"],["\u042C",""],["\u044C",""],["\u042D","E"],["\u044D","e"],["\u042E","Yu"],["\u044E","yu"],["\u042F","Ya"],["\u044F","ya"],["\u0401","Yo"],["\u0451","yo"],["\u0103","a"],["\u0102","A"],["\u0219","s"],["\u0218","S"],["\u021B","t"],["\u021A","T"],["\u0163","t"],["\u0162","T"],["\u015F","s"],["\u015E","S"],["\xE7","c"],["\xC7","C"],["\u011F","g"],["\u011E","G"],["\u0131","i"],["\u0130","I"],["\u0561","a"],["\u0531","A"],["\u0562","b"],["\u0532","B"],["\u0563","g"],["\u0533","G"],["\u0564","d"],["\u0534","D"],["\u0565","ye"],["\u0535","Ye"],["\u0566","z"],["\u0536","Z"],["\u0567","e"],["\u0537","E"],["\u0568","y"],["\u0538","Y"],["\u0569","t"],["\u0539","T"],["\u056A","zh"],["\u053A","Zh"],["\u056B","i"],["\u053B","I"],["\u056C","l"],["\u053C","L"],["\u056D","kh"],["\u053D","Kh"],["\u056E","ts"],["\u053E","Ts"],["\u056F","k"],["\u053F","K"],["\u0570","h"],["\u0540","H"],["\u0571","dz"],["\u0541","Dz"],["\u0572","gh"],["\u0542","Gh"],["\u0573","tch"],["\u0543","Tch"],["\u0574","m"],["\u0544","M"],["\u0575","y"],["\u0545","Y"],["\u0576","n"],["\u0546","N"],["\u0577","sh"],["\u0547","Sh"],["\u0578","vo"],["\u0548","Vo"],["\u0579","ch"],["\u0549","Ch"],["\u057A","p"],["\u054A","P"],["\u057B","j"],["\u054B","J"],["\u057C","r"],["\u054C","R"],["\u057D","s"],["\u054D","S"],["\u057E","v"],["\u054E","V"],["\u057F","t"],["\u054F","T"],["\u0580","r"],["\u0550","R"],["\u0581","c"],["\u0551","C"],["\u0578\u0582","u"],["\u0548\u0552","U"],["\u0548\u0582","U"],["\u0583","p"],["\u0553","P"],["\u0584","q"],["\u0554","Q"],["\u0585","o"],["\u0555","O"],["\u0586","f"],["\u0556","F"],["\u0587","yev"],["\u10D0","a"],["\u10D1","b"],["\u10D2","g"],["\u10D3","d"],["\u10D4","e"],["\u10D5","v"],["\u10D6","z"],["\u10D7","t"],["\u10D8","i"],["\u10D9","k"],["\u10DA","l"],["\u10DB","m"],["\u10DC","n"],["\u10DD","o"],["\u10DE","p"],["\u10DF","zh"],["\u10E0","r"],["\u10E1","s"],["\u10E2","t"],["\u10E3","u"],["\u10E4","ph"],["\u10E5","q"],["\u10E6","gh"],["\u10E7","k"],["\u10E8","sh"],["\u10E9","ch"],["\u10EA","ts"],["\u10EB","dz"],["\u10EC","ts"],["\u10ED","tch"],["\u10EE","kh"],["\u10EF","j"],["\u10F0","h"],["\u010D","c"],["\u010F","d"],["\u011B","e"],["\u0148","n"],["\u0159","r"],["\u0161","s"],["\u0165","t"],["\u016F","u"],["\u017E","z"],["\u010C","C"],["\u010E","D"],["\u011A","E"],["\u0147","N"],["\u0158","R"],["\u0160","S"],["\u0164","T"],["\u016E","U"],["\u017D","Z"],["\u0780","h"],["\u0781","sh"],["\u0782","n"],["\u0783","r"],["\u0784","b"],["\u0785","lh"],["\u0786","k"],["\u0787","a"],["\u0788","v"],["\u0789","m"],["\u078A","f"],["\u078B","dh"],["\u078C","th"],["\u078D","l"],["\u078E","g"],["\u078F","gn"],["\u0790","s"],["\u0791","d"],["\u0792","z"],["\u0793","t"],["\u0794","y"],["\u0795","p"],["\u0796","j"],["\u0797","ch"],["\u0798","tt"],["\u0799","hh"],["\u079A","kh"],["\u079B","th"],["\u079C","z"],["\u079D","sh"],["\u079E","s"],["\u079F","d"],["\u07A0","t"],["\u07A1","z"],["\u07A2","a"],["\u07A3","gh"],["\u07A4","q"],["\u07A5","w"],["\u07A6","a"],["\u07A7","aa"],["\u07A8","i"],["\u07A9","ee"],["\u07AA","u"],["\u07AB","oo"],["\u07AC","e"],["\u07AD","ey"],["\u07AE","o"],["\u07AF","oa"],["\u07B0",""],["\u03B1","a"],["\u03B2","v"],["\u03B3","g"],["\u03B4","d"],["\u03B5","e"],["\u03B6","z"],["\u03B7","i"],["\u03B8","th"],["\u03B9","i"],["\u03BA","k"],["\u03BB","l"],["\u03BC","m"],["\u03BD","n"],["\u03BE","ks"],["\u03BF","o"],["\u03C0","p"],["\u03C1","r"],["\u03C3","s"],["\u03C4","t"],["\u03C5","y"],["\u03C6","f"],["\u03C7","x"],["\u03C8","ps"],["\u03C9","o"],["\u03AC","a"],["\u03AD","e"],["\u03AF","i"],["\u03CC","o"],["\u03CD","y"],["\u03AE","i"],["\u03CE","o"],["\u03C2","s"],["\u03CA","i"],["\u03B0","y"],["\u03CB","y"],["\u0390","i"],["\u0391","A"],["\u0392","B"],["\u0393","G"],["\u0394","D"],["\u0395","E"],["\u0396","Z"],["\u0397","I"],["\u0398","TH"],["\u0399","I"],["\u039A","K"],["\u039B","L"],["\u039C","M"],["\u039D","N"],["\u039E","KS"],["\u039F","O"],["\u03A0","P"],["\u03A1","R"],["\u03A3","S"],["\u03A4","T"],["\u03A5","Y"],["\u03A6","F"],["\u03A7","X"],["\u03A8","PS"],["\u03A9","O"],["\u0386","A"],["\u0388","E"],["\u038A","I"],["\u038C","O"],["\u038E","Y"],["\u0389","I"],["\u038F","O"],["\u03AA","I"],["\u03AB","Y"],["\u0101","a"],["\u0113","e"],["\u0123","g"],["\u012B","i"],["\u0137","k"],["\u013C","l"],["\u0146","n"],["\u016B","u"],["\u0100","A"],["\u0112","E"],["\u0122","G"],["\u012A","I"],["\u0136","K"],["\u013B","L"],["\u0145","N"],["\u016A","U"],["\u010D","c"],["\u0161","s"],["\u017E","z"],["\u010C","C"],["\u0160","S"],["\u017D","Z"],["\u0105","a"],["\u010D","c"],["\u0119","e"],["\u0117","e"],["\u012F","i"],["\u0161","s"],["\u0173","u"],["\u016B","u"],["\u017E","z"],["\u0104","A"],["\u010C","C"],["\u0118","E"],["\u0116","E"],["\u012E","I"],["\u0160","S"],["\u0172","U"],["\u016A","U"],["\u040C","Kj"],["\u045C","kj"],["\u0409","Lj"],["\u0459","lj"],["\u040A","Nj"],["\u045A","nj"],["\u0422\u0441","Ts"],["\u0442\u0441","ts"],["\u0105","a"],["\u0107","c"],["\u0119","e"],["\u0142","l"],["\u0144","n"],["\u015B","s"],["\u017A","z"],["\u017C","z"],["\u0104","A"],["\u0106","C"],["\u0118","E"],["\u0141","L"],["\u0143","N"],["\u015A","S"],["\u0179","Z"],["\u017B","Z"],["\u0404","Ye"],["\u0406","I"],["\u0407","Yi"],["\u0490","G"],["\u0454","ye"],["\u0456","i"],["\u0457","yi"],["\u0491","g"]]},2806:(Z,v)=>{"use strict";/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),h=Symbol.for("react.context"),p=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),F;F=Symbol.for("react.module.reference");function U(B){if(typeof B=="object"&&B!==null){var N=B.$$typeof;switch(N){case t:switch(B=B.type,B){case n:case a:case s:case k:case M:return B;default:switch(B=B&&B.$$typeof,B){case p:case h:case d:case w:case C:case c:return B;default:return N}}case r:return N}}}v.ContextConsumer=h,v.ContextProvider=c,v.Element=t,v.ForwardRef=d,v.Fragment=n,v.Lazy=w,v.Memo=C,v.Portal=r,v.Profiler=a,v.StrictMode=s,v.Suspense=k,v.SuspenseList=M,v.isAsyncMode=function(){return!1},v.isConcurrentMode=function(){return!1},v.isContextConsumer=function(B){return U(B)===h},v.isContextProvider=function(B){return U(B)===c},v.isElement=function(B){return typeof B=="object"&&B!==null&&B.$$typeof===t},v.isForwardRef=function(B){return U(B)===d},v.isFragment=function(B){return U(B)===n},v.isLazy=function(B){return U(B)===w},v.isMemo=function(B){return U(B)===C},v.isPortal=function(B){return U(B)===r},v.isProfiler=function(B){return U(B)===a},v.isStrictMode=function(B){return U(B)===s},v.isSuspense=function(B){return U(B)===k},v.isSuspenseList=function(B){return U(B)===M},v.isValidElementType=function(B){return typeof B=="string"||typeof B=="function"||B===n||B===a||B===s||B===k||B===M||B===I||typeof B=="object"&&B!==null&&(B.$$typeof===w||B.$$typeof===C||B.$$typeof===c||B.$$typeof===h||B.$$typeof===d||B.$$typeof===F||B.getModuleId!==void 0)},v.typeOf=U},90015:(Z,v,t)=>{"use strict";Z.exports=t(2806)},46449:(Z,v,t)=>{"use strict";t.r(v),t.d(v,{ServerStyleSheet:()=>Xr,StyleSheetConsumer:()=>Je,StyleSheetContext:()=>ot,StyleSheetManager:()=>ae,ThemeConsumer:()=>Yn,ThemeContext:()=>cn,ThemeProvider:()=>on,__PRIVATE__:()=>ii,createGlobalStyle:()=>tr,css:()=>sn,default:()=>vr,isStyledComponent:()=>E,keyframes:()=>Sr,useTheme:()=>Pi,version:()=>R,withTheme:()=>gi});var r=t(90015),n=t(67294),s=t(96774),a=t.n(s);function c(at){function it(he,Ae,tt,St,kt){for(var Jt=0,gt=0,dn=0,Xt=0,hn,Sn,Jn=0,Vn=0,ar,Vr=ar=hn=0,Jr=0,yi=0,Ii=0,ji=0,_n=tt.length,_e=_n-1,rt,vt="",Gt="",We="",Ot="",Dt;Jr<_n;){if(Sn=tt.charCodeAt(Jr),Jr===_e&&gt+Xt+dn+Jt!==0&&(gt!==0&&(Sn=gt===47?10:47),Xt=dn=Jt=0,_n++,_e++),gt+Xt+dn+Jt===0){if(Jr===_e&&(0<yi&&(vt=vt.replace(ct,"")),0<vt.trim().length)){switch(Sn){case 32:case 9:case 59:case 13:case 10:break;default:vt+=tt.charAt(Jr)}Sn=59}switch(Sn){case 123:for(vt=vt.trim(),hn=vt.charCodeAt(0),ar=1,ji=++Jr;Jr<_n;){switch(Sn=tt.charCodeAt(Jr)){case 123:ar++;break;case 125:ar--;break;case 47:switch(Sn=tt.charCodeAt(Jr+1)){case 42:case 47:e:{for(Vr=Jr+1;Vr<_e;++Vr)switch(tt.charCodeAt(Vr)){case 47:if(Sn===42&&tt.charCodeAt(Vr-1)===42&&Jr+2!==Vr){Jr=Vr+1;break e}break;case 10:if(Sn===47){Jr=Vr+1;break e}}Jr=Vr}}break;case 91:Sn++;case 40:Sn++;case 34:case 39:for(;Jr++<_e&&tt.charCodeAt(Jr)!==Sn;);}if(ar===0)break;Jr++}switch(ar=tt.substring(ji,Jr),hn===0&&(hn=(vt=vt.replace(On,"").trim()).charCodeAt(0)),hn){case 64:switch(0<yi&&(vt=vt.replace(ct,"")),Sn=vt.charCodeAt(1),Sn){case 100:case 109:case 115:case 45:yi=Ae;break;default:yi=Fi}if(ar=it(Ae,yi,ar,Sn,kt+1),ji=ar.length,0<Vi&&(yi=Re(Fi,vt,Ii),Dt=qt(3,ar,yi,Ae,Or,Er,ji,Sn,kt,St),vt=yi.join(""),Dt!==void 0&&(ji=(ar=Dt.trim()).length)===0&&(Sn=0,ar="")),0<ji)switch(Sn){case 115:vt=vt.replace(Qt,Mt);case 100:case 109:case 45:ar=vt+"{"+ar+"}";break;case 107:vt=vt.replace(Ke,"$1 $2"),ar=vt+"{"+ar+"}",ar=si===1||si===2&&Te("@"+ar,3)?"@-webkit-"+ar+"@"+ar:"@"+ar;break;default:ar=vt+ar,St===112&&(ar=(Gt+=ar,""))}else ar="";break;default:ar=it(Ae,Re(Ae,vt,Ii),ar,St,kt+1)}We+=ar,ar=Ii=yi=Vr=hn=0,vt="",Sn=tt.charCodeAt(++Jr);break;case 125:case 59:if(vt=(0<yi?vt.replace(ct,""):vt).trim(),1<(ji=vt.length))switch(Vr===0&&(hn=vt.charCodeAt(0),hn===45||96<hn&&123>hn)&&(ji=(vt=vt.replace(" ",":")).length),0<Vi&&(Dt=qt(1,vt,Ae,he,Or,Er,Gt.length,St,kt,St))!==void 0&&(ji=(vt=Dt.trim()).length)===0&&(vt="\0\0"),hn=vt.charCodeAt(0),Sn=vt.charCodeAt(1),hn){case 0:break;case 64:if(Sn===105||Sn===99){Ot+=vt+tt.charAt(Jr);break}default:vt.charCodeAt(ji-1)!==58&&(Gt+=Pe(vt,hn,Sn,vt.charCodeAt(2)))}Ii=yi=Vr=hn=0,vt="",Sn=tt.charCodeAt(++Jr)}}switch(Sn){case 13:case 10:gt===47?gt=0:1+hn===0&&St!==107&&0<vt.length&&(yi=1,vt+="\0"),0<Vi*nt&&qt(0,vt,Ae,he,Or,Er,Gt.length,St,kt,St),Er=1,Or++;break;case 59:case 125:if(gt+Xt+dn+Jt===0){Er++;break}default:switch(Er++,rt=tt.charAt(Jr),Sn){case 9:case 32:if(Xt+Jt+gt===0)switch(Jn){case 44:case 58:case 9:case 32:rt="";break;default:Sn!==32&&(rt=" ")}break;case 0:rt="\\0";break;case 12:rt="\\f";break;case 11:rt="\\v";break;case 38:Xt+gt+Jt===0&&(yi=Ii=1,rt="\f"+rt);break;case 108:if(Xt+gt+Jt+oi===0&&0<Vr)switch(Jr-Vr){case 2:Jn===112&&tt.charCodeAt(Jr-3)===58&&(oi=Jn);case 8:Vn===111&&(oi=Vn)}break;case 58:Xt+gt+Jt===0&&(Vr=Jr);break;case 44:gt+dn+Xt+Jt===0&&(yi=1,rt+="\r");break;case 34:case 39:gt===0&&(Xt=Xt===Sn?0:Xt===0?Sn:Xt);break;case 91:Xt+gt+dn===0&&Jt++;break;case 93:Xt+gt+dn===0&&Jt--;break;case 41:Xt+gt+Jt===0&&dn--;break;case 40:if(Xt+gt+Jt===0){if(hn===0)switch(2*Jn+3*Vn){case 533:break;default:hn=1}dn++}break;case 64:gt+dn+Xt+Jt+Vr+ar===0&&(ar=1);break;case 42:case 47:if(!(0<Xt+Jt+dn))switch(gt){case 0:switch(2*Sn+3*tt.charCodeAt(Jr+1)){case 235:gt=47;break;case 220:ji=Jr,gt=42}break;case 42:Sn===47&&Jn===42&&ji+2!==Jr&&(tt.charCodeAt(ji+2)===33&&(Gt+=tt.substring(ji,Jr+1)),rt="",gt=0)}}gt===0&&(vt+=rt)}Vn=Jn,Jn=Sn,Jr++}if(ji=Gt.length,0<ji){if(yi=Ae,0<Vi&&(Dt=qt(2,Gt,yi,he,Or,Er,ji,St,kt,St),Dt!==void 0&&(Gt=Dt).length===0))return Ot+Gt+We;if(Gt=yi.join(",")+"{"+Gt+"}",si*oi!==0){switch(si!==2||Te(Gt,2)||(oi=0),oi){case 111:Gt=Gt.replace(Ge,":-moz-$1")+Gt;break;case 112:Gt=Gt.replace(Oe,"::-webkit-input-$1")+Gt.replace(Oe,"::-moz-$1")+Gt.replace(Oe,":-ms-input-$1")+Gt}oi=0}}return Ot+Gt+We}function Re(he,Ae,tt){var St=Ae.trim().split(Kn);Ae=St;var kt=St.length,Jt=he.length;switch(Jt){case 0:case 1:var gt=0;for(he=Jt===0?"":he[0]+" ";gt<kt;++gt)Ae[gt]=ke(he,Ae[gt],tt).trim();break;default:var dn=gt=0;for(Ae=[];gt<kt;++gt)for(var Xt=0;Xt<Jt;++Xt)Ae[dn++]=ke(he[Xt]+" ",St[gt],tt).trim()}return Ae}function ke(he,Ae,tt){var St=Ae.charCodeAt(0);switch(33>St&&(St=(Ae=Ae.trim()).charCodeAt(0)),St){case 38:return Ae.replace(Rt,"$1"+he.trim());case 58:return he.trim()+Ae.replace(Rt,"$1"+he.trim());default:if(0<1*tt&&0<Ae.indexOf("\f"))return Ae.replace(Rt,(he.charCodeAt(0)===58?"":"$1")+he.trim())}return he+Ae}function Pe(he,Ae,tt,St){var kt=he+";",Jt=2*Ae+3*tt+4*St;if(Jt===944){he=kt.indexOf(":",9)+1;var gt=kt.substring(he,kt.length-1).trim();return gt=kt.substring(0,he).trim()+gt+";",si===1||si===2&&Te(gt,1)?"-webkit-"+gt+gt:gt}if(si===0||si===2&&!Te(kt,1))return kt;switch(Jt){case 1015:return kt.charCodeAt(10)===97?"-webkit-"+kt+kt:kt;case 951:return kt.charCodeAt(3)===116?"-webkit-"+kt+kt:kt;case 963:return kt.charCodeAt(5)===110?"-webkit-"+kt+kt:kt;case 1009:if(kt.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+kt+kt;case 978:return"-webkit-"+kt+"-moz-"+kt+kt;case 1019:case 983:return"-webkit-"+kt+"-moz-"+kt+"-ms-"+kt+kt;case 883:if(kt.charCodeAt(8)===45)return"-webkit-"+kt+kt;if(0<kt.indexOf("image-set(",11))return kt.replace(fr,"$1-webkit-$2")+kt;break;case 932:if(kt.charCodeAt(4)===45)switch(kt.charCodeAt(5)){case 103:return"-webkit-box-"+kt.replace("-grow","")+"-webkit-"+kt+"-ms-"+kt.replace("grow","positive")+kt;case 115:return"-webkit-"+kt+"-ms-"+kt.replace("shrink","negative")+kt;case 98:return"-webkit-"+kt+"-ms-"+kt.replace("basis","preferred-size")+kt}return"-webkit-"+kt+"-ms-"+kt+kt;case 964:return"-webkit-"+kt+"-ms-flex-"+kt+kt;case 1023:if(kt.charCodeAt(8)!==99)break;return gt=kt.substring(kt.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+gt+"-webkit-"+kt+"-ms-flex-pack"+gt+kt;case 1005:return Cn.test(kt)?kt.replace(Zt,":-webkit-")+kt.replace(Zt,":-moz-")+kt:kt;case 1e3:switch(gt=kt.substring(13).trim(),Ae=gt.indexOf("-")+1,gt.charCodeAt(0)+gt.charCodeAt(Ae)){case 226:gt=kt.replace(Ft,"tb");break;case 232:gt=kt.replace(Ft,"tb-rl");break;case 220:gt=kt.replace(Ft,"lr");break;default:return kt}return"-webkit-"+kt+"-ms-"+gt+kt;case 1017:if(kt.indexOf("sticky",9)===-1)break;case 975:switch(Ae=(kt=he).length-10,gt=(kt.charCodeAt(Ae)===33?kt.substring(0,Ae):kt).substring(he.indexOf(":",7)+1).trim(),Jt=gt.charCodeAt(0)+(gt.charCodeAt(7)|0)){case 203:if(111>gt.charCodeAt(8))break;case 115:kt=kt.replace(gt,"-webkit-"+gt)+";"+kt;break;case 207:case 102:kt=kt.replace(gt,"-webkit-"+(102<Jt?"inline-":"")+"box")+";"+kt.replace(gt,"-webkit-"+gt)+";"+kt.replace(gt,"-ms-"+gt+"box")+";"+kt}return kt+";";case 938:if(kt.charCodeAt(5)===45)switch(kt.charCodeAt(6)){case 105:return gt=kt.replace("-items",""),"-webkit-"+kt+"-webkit-box-"+gt+"-ms-flex-"+gt+kt;case 115:return"-webkit-"+kt+"-ms-flex-item-"+kt.replace(Gn,"")+kt;default:return"-webkit-"+kt+"-ms-flex-line-pack"+kt.replace("align-content","").replace(Gn,"")+kt}break;case 973:case 989:if(kt.charCodeAt(3)!==45||kt.charCodeAt(4)===122)break;case 931:case 953:if(br.test(he)===!0)return(gt=he.substring(he.indexOf(":")+1)).charCodeAt(0)===115?Pe(he.replace("stretch","fill-available"),Ae,tt,St).replace(":fill-available",":stretch"):kt.replace(gt,"-webkit-"+gt)+kt.replace(gt,"-moz-"+gt.replace("fill-",""))+kt;break;case 962:if(kt="-webkit-"+kt+(kt.charCodeAt(5)===102?"-ms-"+kt:"")+kt,tt+St===211&&kt.charCodeAt(13)===105&&0<kt.indexOf("transform",10))return kt.substring(0,kt.indexOf(";",27)+1).replace(Pn,"$1-webkit-$2")+kt}return kt}function Te(he,Ae){var tt=he.indexOf(Ae===1?":":"{"),St=he.substring(0,Ae!==3?tt:10);return tt=he.substring(tt+1,he.length-1),Bn(Ae!==2?St:St.replace(ir,"$1"),tt,Ae)}function Mt(he,Ae){var tt=Pe(Ae,Ae.charCodeAt(0),Ae.charCodeAt(1),Ae.charCodeAt(2));return tt!==Ae+";"?tt.replace(wn," or ($1)").substring(4):"("+Ae+")"}function qt(he,Ae,tt,St,kt,Jt,gt,dn,Xt,hn){for(var Sn=0,Jn=Ae,Vn;Sn<Vi;++Sn)switch(Vn=$i[Sn].call(ur,he,Jn,tt,St,kt,Jt,gt,dn,Xt,hn)){case void 0:case!1:case!0:case null:break;default:Jn=Vn}if(Jn!==Ae)return Jn}function Rn(he){switch(he){case void 0:case null:Vi=$i.length=0;break;default:if(typeof he=="function")$i[Vi++]=he;else if(typeof he=="object")for(var Ae=0,tt=he.length;Ae<tt;++Ae)Rn(he[Ae]);else nt=!!he|0}return Rn}function Qn(he){return he=he.prefix,he!==void 0&&(Bn=null,he?typeof he!="function"?si=1:(si=2,Bn=he):si=0),Qn}function ur(he,Ae){var tt=he;if(33>tt.charCodeAt(0)&&(tt=tt.trim()),ve=tt,tt=[ve],0<Vi){var St=qt(-1,Ae,tt,tt,Or,Er,0,0,0,0);St!==void 0&&typeof St=="string"&&(Ae=St)}var kt=it(Fi,tt,Ae,0,0);return 0<Vi&&(St=qt(-2,kt,tt,tt,Or,Er,kt.length,0,0,0),St!==void 0&&(kt=St)),ve="",oi=0,Er=Or=1,kt}var On=/^\0+/g,ct=/[\0\r\f]/g,Zt=/: */g,Cn=/zoo|gra/,Pn=/([,: ])(transform)/g,Kn=/,\r+?/g,Rt=/([\t\r\n ])*\f?&/g,Ke=/@(k\w+)\s*(\S*)\s*/,Oe=/::(place)/g,Ge=/:(read-only)/g,Ft=/[svh]\w+-[tblr]{2}/,Qt=/\(\s*(.*)\s*\)/g,wn=/([\s\S]*?);/g,Gn=/-self|flex-/g,ir=/[^]*?(:[rp][el]a[\w-]+)[^]*/,br=/stretch|:\s*\w+\-(?:conte|avail)/,fr=/([^-])(image-set\()/,Er=1,Or=1,oi=0,si=1,Fi=[],$i=[],Vi=0,Bn=null,nt=0,ve="";return ur.use=Rn,ur.set=Qn,at!==void 0&&Qn(at),ur}const h=c;var p={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};const d=p;function k(at){var it={};return function(Re){return it[Re]===void 0&&(it[Re]=at(Re)),it[Re]}}const M=k;var C=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,w=M(function(at){return C.test(at)||at.charCodeAt(0)===111&&at.charCodeAt(1)===110&&at.charCodeAt(2)<91});const I=w;var F=t(8679),U=t.n(F);function B(){return(B=Object.assign||function(at){for(var it=1;it<arguments.length;it++){var Re=arguments[it];for(var ke in Re)Object.prototype.hasOwnProperty.call(Re,ke)&&(at[ke]=Re[ke])}return at}).apply(this,arguments)}var N=function(at,it){for(var Re=[at[0]],ke=0,Pe=it.length;ke<Pe;ke+=1)Re.push(it[ke],at[ke+1]);return Re},D=function(at){return at!==null&&typeof at=="object"&&(at.toString?at.toString():Object.prototype.toString.call(at))==="[object Object]"&&!(0,r.typeOf)(at)},x=Object.freeze([]),T=Object.freeze({});function u(at){return typeof at=="function"}function b(at){return at.displayName||at.name||"Component"}function E(at){return at&&typeof at.styledComponentId=="string"}var A=typeof process<"u"&&({ADMIN_PATH:"/admin/",NODE_ENV:"production",STRAPI_ADMIN_BACKEND_URL:"",STRAPI_TELEMETRY_DISABLED:void 0}.REACT_APP_SC_ATTR||{ADMIN_PATH:"/admin/",NODE_ENV:"production",STRAPI_ADMIN_BACKEND_URL:"",STRAPI_TELEMETRY_DISABLED:void 0}.SC_ATTR)||"data-styled",R="5.3.3",H=typeof window<"u"&&"HTMLElement"in window,z=Boolean(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&{ADMIN_PATH:"/admin/",NODE_ENV:"production",STRAPI_ADMIN_BACKEND_URL:"",STRAPI_TELEMETRY_DISABLED:void 0}.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&{ADMIN_PATH:"/admin/",NODE_ENV:"production",STRAPI_ADMIN_BACKEND_URL:"",STRAPI_TELEMETRY_DISABLED:void 0}.REACT_APP_SC_DISABLE_SPEEDY!==""?{ADMIN_PATH:"/admin/",NODE_ENV:"production",STRAPI_ADMIN_BACKEND_URL:"",STRAPI_TELEMETRY_DISABLED:void 0}.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&{ADMIN_PATH:"/admin/",NODE_ENV:"production",STRAPI_ADMIN_BACKEND_URL:"",STRAPI_TELEMETRY_DISABLED:void 0}.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&{ADMIN_PATH:"/admin/",NODE_ENV:"production",STRAPI_ADMIN_BACKEND_URL:"",STRAPI_TELEMETRY_DISABLED:void 0}.SC_DISABLE_SPEEDY!==void 0&&{ADMIN_PATH:"/admin/",NODE_ENV:"production",STRAPI_ADMIN_BACKEND_URL:"",STRAPI_TELEMETRY_DISABLED:void 0}.SC_DISABLE_SPEEDY!==""?{ADMIN_PATH:"/admin/",NODE_ENV:"production",STRAPI_ADMIN_BACKEND_URL:"",STRAPI_TELEMETRY_DISABLED:void 0}.SC_DISABLE_SPEEDY!=="false"&&{ADMIN_PATH:"/admin/",NODE_ENV:"production",STRAPI_ADMIN_BACKEND_URL:"",STRAPI_TELEMETRY_DISABLED:void 0}.SC_DISABLE_SPEEDY:!1),V={},$={};function ee(){for(var at=arguments.length<=0?void 0:arguments[0],it=[],Re=1,ke=arguments.length;Re<ke;Re+=1)it.push(Re<0||arguments.length<=Re?void 0:arguments[Re]);return it.forEach(function(Pe){at=at.replace(/%[a-z]/,Pe)}),at}function q(at){for(var it=arguments.length,Re=new Array(it>1?it-1:0),ke=1;ke<it;ke++)Re[ke-1]=arguments[ke];throw new Error("An error occurred. See https://git.io/JUIaE#"+at+" for more information."+(Re.length>0?" Args: "+Re.join(", "):""))}var oe=function(){function at(Re){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=Re}var it=at.prototype;return it.indexOfGroup=function(Re){for(var ke=0,Pe=0;Pe<Re;Pe++)ke+=this.groupSizes[Pe];return ke},it.insertRules=function(Re,ke){if(Re>=this.groupSizes.length){for(var Pe=this.groupSizes,Te=Pe.length,Mt=Te;Re>=Mt;)(Mt<<=1)<0&&q(16,""+Re);this.groupSizes=new Uint32Array(Mt),this.groupSizes.set(Pe),this.length=Mt;for(var qt=Te;qt<Mt;qt++)this.groupSizes[qt]=0}for(var Rn=this.indexOfGroup(Re+1),Qn=0,ur=ke.length;Qn<ur;Qn++)this.tag.insertRule(Rn,ke[Qn])&&(this.groupSizes[Re]++,Rn++)},it.clearGroup=function(Re){if(Re<this.length){var ke=this.groupSizes[Re],Pe=this.indexOfGroup(Re),Te=Pe+ke;this.groupSizes[Re]=0;for(var Mt=Pe;Mt<Te;Mt++)this.tag.deleteRule(Pe)}},it.getGroup=function(Re){var ke="";if(Re>=this.length||this.groupSizes[Re]===0)return ke;for(var Pe=this.groupSizes[Re],Te=this.indexOfGroup(Re),Mt=Te+Pe,qt=Te;qt<Mt;qt++)ke+=this.tag.getRule(qt)+`/*!sc*/
`;return ke},at}(),X=new Map,pe=new Map,Ie=1,se=function(at){if(X.has(at))return X.get(at);for(;pe.has(Ie);)Ie++;var it=Ie++;return X.set(at,it),pe.set(it,at),it},be=function(at){return pe.get(at)},fe=function(at,it){it>=Ie&&(Ie=it+1),X.set(at,it),pe.set(it,at)},ue="style["+A+'][data-styled-version="5.3.3"]',we=new RegExp("^"+A+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Me=function(at,it,Re){for(var ke,Pe=Re.split(","),Te=0,Mt=Pe.length;Te<Mt;Te++)(ke=Pe[Te])&&at.registerName(it,ke)},Ce=function(at,it){for(var Re=(it.textContent||"").split(`/*!sc*/
`),ke=[],Pe=0,Te=Re.length;Pe<Te;Pe++){var Mt=Re[Pe].trim();if(Mt){var qt=Mt.match(we);if(qt){var Rn=0|parseInt(qt[1],10),Qn=qt[2];Rn!==0&&(fe(Qn,Rn),Me(at,Qn,qt[3]),at.getTag().insertRules(Rn,ke)),ke.length=0}else ke.push(Mt)}}},Ne=function(){return typeof window<"u"&&window.__webpack_nonce__!==void 0?window.__webpack_nonce__:null},Ye=function(at){var it=document.head,Re=at||it,ke=document.createElement("style"),Pe=function(qt){for(var Rn=qt.childNodes,Qn=Rn.length;Qn>=0;Qn--){var ur=Rn[Qn];if(ur&&ur.nodeType===1&&ur.hasAttribute(A))return ur}}(Re),Te=Pe!==void 0?Pe.nextSibling:null;ke.setAttribute(A,"active"),ke.setAttribute("data-styled-version","5.3.3");var Mt=Ne();return Mt&&ke.setAttribute("nonce",Mt),Re.insertBefore(ke,Te),ke},mt=function(){function at(Re){var ke=this.element=Ye(Re);ke.appendChild(document.createTextNode("")),this.sheet=function(Pe){if(Pe.sheet)return Pe.sheet;for(var Te=document.styleSheets,Mt=0,qt=Te.length;Mt<qt;Mt++){var Rn=Te[Mt];if(Rn.ownerNode===Pe)return Rn}q(17)}(ke),this.length=0}var it=at.prototype;return it.insertRule=function(Re,ke){try{return this.sheet.insertRule(ke,Re),this.length++,!0}catch{return!1}},it.deleteRule=function(Re){this.sheet.deleteRule(Re),this.length--},it.getRule=function(Re){var ke=this.sheet.cssRules[Re];return ke!==void 0&&typeof ke.cssText=="string"?ke.cssText:""},at}(),Ct=function(){function at(Re){var ke=this.element=Ye(Re);this.nodes=ke.childNodes,this.length=0}var it=at.prototype;return it.insertRule=function(Re,ke){if(Re<=this.length&&Re>=0){var Pe=document.createTextNode(ke),Te=this.nodes[Re];return this.element.insertBefore(Pe,Te||null),this.length++,!0}return!1},it.deleteRule=function(Re){this.element.removeChild(this.nodes[Re]),this.length--},it.getRule=function(Re){return Re<this.length?this.nodes[Re].textContent:""},at}(),ln=function(){function at(Re){this.rules=[],this.length=0}var it=at.prototype;return it.insertRule=function(Re,ke){return Re<=this.length&&(this.rules.splice(Re,0,ke),this.length++,!0)},it.deleteRule=function(Re){this.rules.splice(Re,1),this.length--},it.getRule=function(Re){return Re<this.length?this.rules[Re]:""},at}(),$e=H,Qe={isServer:!H,useCSSOMInjection:!z},bt=function(){function at(Re,ke,Pe){Re===void 0&&(Re=T),ke===void 0&&(ke={}),this.options=B({},Qe,{},Re),this.gs=ke,this.names=new Map(Pe),this.server=!!Re.isServer,!this.server&&H&&$e&&($e=!1,function(Te){for(var Mt=document.querySelectorAll(ue),qt=0,Rn=Mt.length;qt<Rn;qt++){var Qn=Mt[qt];Qn&&Qn.getAttribute(A)!=="active"&&(Ce(Te,Qn),Qn.parentNode&&Qn.parentNode.removeChild(Qn))}}(this))}at.registerId=function(Re){return se(Re)};var it=at.prototype;return it.reconstructWithOptions=function(Re,ke){return ke===void 0&&(ke=!0),new at(B({},this.options,{},Re),this.gs,ke&&this.names||void 0)},it.allocateGSInstance=function(Re){return this.gs[Re]=(this.gs[Re]||0)+1},it.getTag=function(){return this.tag||(this.tag=(Pe=(ke=this.options).isServer,Te=ke.useCSSOMInjection,Mt=ke.target,Re=Pe?new ln(Mt):Te?new mt(Mt):new Ct(Mt),new oe(Re)));var Re,ke,Pe,Te,Mt},it.hasNameForId=function(Re,ke){return this.names.has(Re)&&this.names.get(Re).has(ke)},it.registerName=function(Re,ke){if(se(Re),this.names.has(Re))this.names.get(Re).add(ke);else{var Pe=new Set;Pe.add(ke),this.names.set(Re,Pe)}},it.insertRules=function(Re,ke,Pe){this.registerName(Re,ke),this.getTag().insertRules(se(Re),Pe)},it.clearNames=function(Re){this.names.has(Re)&&this.names.get(Re).clear()},it.clearRules=function(Re){this.getTag().clearGroup(se(Re)),this.clearNames(Re)},it.clearTag=function(){this.tag=void 0},it.toString=function(){return function(Re){for(var ke=Re.getTag(),Pe=ke.length,Te="",Mt=0;Mt<Pe;Mt++){var qt=be(Mt);if(qt!==void 0){var Rn=Re.names.get(qt),Qn=ke.getGroup(Mt);if(Rn&&Qn&&Rn.size){var ur=A+".g"+Mt+'[id="'+qt+'"]',On="";Rn!==void 0&&Rn.forEach(function(ct){ct.length>0&&(On+=ct+",")}),Te+=""+Qn+ur+'{content:"'+On+`"}/*!sc*/
`}}}return Te}(this)},at}(),It=/(a)(d)/gi,mn=function(at){return String.fromCharCode(at+(at>25?39:97))};function un(at){var it,Re="";for(it=Math.abs(at);it>52;it=it/52|0)Re=mn(it%52)+Re;return(mn(it%52)+Re).replace(It,"$1-$2")}var Be=function(at,it){for(var Re=it.length;Re;)at=33*at^it.charCodeAt(--Re);return at},je=function(at){return Be(5381,at)};function $t(at){for(var it=0;it<at.length;it+=1){var Re=at[it];if(u(Re)&&!E(Re))return!1}return!0}var et=je("5.3.3"),Kt=function(){function at(it,Re,ke){this.rules=it,this.staticRulesId="",this.isStatic=(ke===void 0||ke.isStatic)&&$t(it),this.componentId=Re,this.baseHash=Be(et,Re),this.baseStyle=ke,bt.registerId(Re)}return at.prototype.generateAndInjectStyles=function(it,Re,ke){var Pe=this.componentId,Te=[];if(this.baseStyle&&Te.push(this.baseStyle.generateAndInjectStyles(it,Re,ke)),this.isStatic&&!ke.hash)if(this.staticRulesId&&Re.hasNameForId(Pe,this.staticRulesId))Te.push(this.staticRulesId);else{var Mt=zt(this.rules,it,Re,ke).join(""),qt=un(Be(this.baseHash,Mt)>>>0);if(!Re.hasNameForId(Pe,qt)){var Rn=ke(Mt,"."+qt,void 0,Pe);Re.insertRules(Pe,qt,Rn)}Te.push(qt),this.staticRulesId=qt}else{for(var Qn=this.rules.length,ur=Be(this.baseHash,ke.hash),On="",ct=0;ct<Qn;ct++){var Zt=this.rules[ct];if(typeof Zt=="string")On+=Zt;else if(Zt){var Cn=zt(Zt,it,Re,ke),Pn=Array.isArray(Cn)?Cn.join(""):Cn;ur=Be(ur,Pn+ct),On+=Pn}}if(On){var Kn=un(ur>>>0);if(!Re.hasNameForId(Pe,Kn)){var Rt=ke(On,"."+Kn,void 0,Pe);Re.insertRules(Pe,Kn,Rt)}Te.push(Kn)}}return Te.join(" ")},at}(),kn=/^\s*\/\/.*$/gm,Tn=[":","[",".","#"];function ht(at){var it,Re,ke,Pe,Te=at===void 0?T:at,Mt=Te.options,qt=Mt===void 0?T:Mt,Rn=Te.plugins,Qn=Rn===void 0?x:Rn,ur=new h(qt),On=[],ct=function(Pn){function Kn(Rt){if(Rt)try{Pn(Rt+"}")}catch{}}return function(Rt,Ke,Oe,Ge,Ft,Qt,wn,Gn,ir,br){switch(Rt){case 1:if(ir===0&&Ke.charCodeAt(0)===64)return Pn(Ke+";"),"";break;case 2:if(Gn===0)return Ke+"/*|*/";break;case 3:switch(Gn){case 102:case 112:return Pn(Oe[0]+Ke),"";default:return Ke+(br===0?"/*|*/":"")}case-2:Ke.split("/*|*/}").forEach(Kn)}}}(function(Pn){On.push(Pn)}),Zt=function(Pn,Kn,Rt){return Kn===0&&Tn.indexOf(Rt[Re.length])!==-1||Rt.match(Pe)?Pn:"."+it};function Cn(Pn,Kn,Rt,Ke){Ke===void 0&&(Ke="&");var Oe=Pn.replace(kn,""),Ge=Kn&&Rt?Rt+" "+Kn+" { "+Oe+" }":Oe;return it=Ke,Re=Kn,ke=new RegExp("\\"+Re+"\\b","g"),Pe=new RegExp("(\\"+Re+"\\b){2,}"),ur(Rt||!Kn?"":Kn,Ge)}return ur.use([].concat(Qn,[function(Pn,Kn,Rt){Pn===2&&Rt.length&&Rt[0].lastIndexOf(Re)>0&&(Rt[0]=Rt[0].replace(ke,Zt))},ct,function(Pn){if(Pn===-2){var Kn=On;return On=[],Kn}}])),Cn.hash=Qn.length?Qn.reduce(function(Pn,Kn){return Kn.name||q(15),Be(Pn,Kn.name)},5381).toString():"",Cn}var ot=n.createContext(),Je=ot.Consumer,wt=n.createContext(),ft=(wt.Consumer,new bt),vn=ht();function ut(){return(0,n.useContext)(ot)||ft}function Wt(){return(0,n.useContext)(wt)||vn}function ae(at){var it=(0,n.useState)(at.stylisPlugins),Re=it[0],ke=it[1],Pe=ut(),Te=(0,n.useMemo)(function(){var qt=Pe;return at.sheet?qt=at.sheet:at.target&&(qt=qt.reconstructWithOptions({target:at.target},!1)),at.disableCSSOMInjection&&(qt=qt.reconstructWithOptions({useCSSOMInjection:!1})),qt},[at.disableCSSOMInjection,at.sheet,at.target]),Mt=(0,n.useMemo)(function(){return ht({options:{prefix:!at.disableVendorPrefixes},plugins:Re})},[at.disableVendorPrefixes,Re]);return(0,n.useEffect)(function(){a()(Re,at.stylisPlugins)||ke(at.stylisPlugins)},[at.stylisPlugins]),n.createElement(ot.Provider,{value:Te},n.createElement(wt.Provider,{value:Mt},at.children))}var ne=function(){function at(it,Re){var ke=this;this.inject=function(Pe,Te){Te===void 0&&(Te=vn);var Mt=ke.name+Te.hash;Pe.hasNameForId(ke.id,Mt)||Pe.insertRules(ke.id,Mt,Te(ke.rules,Mt,"@keyframes"))},this.toString=function(){return q(12,String(ke.name))},this.name=it,this.id="sc-keyframes-"+it,this.rules=Re}return at.prototype.getName=function(it){return it===void 0&&(it=vn),this.name+it.hash},at}(),ge=/([A-Z])/,ye=/([A-Z])/g,Xe=/^ms-/,Ze=function(at){return"-"+at.toLowerCase()};function lt(at){return ge.test(at)?at.replace(ye,Ze).replace(Xe,"-ms-"):at}var _t=function(at){return at==null||at===!1||at===""};function zt(at,it,Re,ke){if(Array.isArray(at)){for(var Pe,Te=[],Mt=0,qt=at.length;Mt<qt;Mt+=1)(Pe=zt(at[Mt],it,Re,ke))!==""&&(Array.isArray(Pe)?Te.push.apply(Te,Pe):Te.push(Pe));return Te}if(_t(at))return"";if(E(at))return"."+at.styledComponentId;if(u(at)){if(typeof(Qn=at)!="function"||Qn.prototype&&Qn.prototype.isReactComponent||!it)return at;var Rn=at(it);return zt(Rn,it,Re,ke)}var Qn;return at instanceof ne?Re?(at.inject(Re,ke),at.getName(ke)):at:D(at)?function ur(On,ct){var Zt,Cn,Pn=[];for(var Kn in On)On.hasOwnProperty(Kn)&&!_t(On[Kn])&&(Array.isArray(On[Kn])&&On[Kn].isCss||u(On[Kn])?Pn.push(lt(Kn)+":",On[Kn],";"):D(On[Kn])?Pn.push.apply(Pn,ur(On[Kn],Kn)):Pn.push(lt(Kn)+": "+(Zt=Kn,(Cn=On[Kn])==null||typeof Cn=="boolean"||Cn===""?"":typeof Cn!="number"||Cn===0||Zt in d?String(Cn).trim():Cn+"px")+";"));return ct?[ct+" {"].concat(Pn,["}"]):Pn}(at):at.toString()}var Vt=function(at){return Array.isArray(at)&&(at.isCss=!0),at};function sn(at){for(var it=arguments.length,Re=new Array(it>1?it-1:0),ke=1;ke<it;ke++)Re[ke-1]=arguments[ke];return u(at)||D(at)?Vt(zt(N(x,[at].concat(Re)))):Re.length===0&&at.length===1&&typeof at[0]=="string"?at:Vt(zt(N(at,Re)))}var yn=/invalid hook call/i,dr=new Set,hr=function(at,it){if(!1)var Re,ke,Pe},Mr=function(at,it,Re){return Re===void 0&&(Re=T),at.theme!==Re.theme&&at.theme||it||Re.theme},rr=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Cr=/(^-|-$)/g;function Ur(at){return at.replace(rr,"-").replace(Cr,"")}var $r=function(at){return un(je(at)>>>0)};function li(at){return typeof at=="string"&&!0}var ri=function(at){return typeof at=="function"||typeof at=="object"&&at!==null&&!Array.isArray(at)},Bt=function(at){return at!=="__proto__"&&at!=="constructor"&&at!=="prototype"};function Et(at,it,Re){var ke=at[Re];ri(it)&&ri(ke)?bn(ke,it):at[Re]=it}function bn(at){for(var it=arguments.length,Re=new Array(it>1?it-1:0),ke=1;ke<it;ke++)Re[ke-1]=arguments[ke];for(var Pe=0,Te=Re;Pe<Te.length;Pe++){var Mt=Te[Pe];if(ri(Mt))for(var qt in Mt)Bt(qt)&&Et(at,Mt[qt],qt)}return at}var cn=n.createContext(),Yn=cn.Consumer;function on(at){var it=(0,n.useContext)(cn),Re=(0,n.useMemo)(function(){return function(ke,Pe){if(!ke)return q(14);if(u(ke)){var Te=ke(Pe);return Te}return Array.isArray(ke)||typeof ke!="object"?q(8):Pe?B({},Pe,{},ke):ke}(at.theme,it)},[at.theme,it]);return at.children?n.createElement(cn.Provider,{value:Re},at.children):null}var ze={};function Le(at,it,Re){var ke=E(at),Pe=!li(at),Te=it.attrs,Mt=Te===void 0?x:Te,qt=it.componentId,Rn=qt===void 0?function(Ke,Oe){var Ge=typeof Ke!="string"?"sc":Ur(Ke);ze[Ge]=(ze[Ge]||0)+1;var Ft=Ge+"-"+$r("5.3.3"+Ge+ze[Ge]);return Oe?Oe+"-"+Ft:Ft}(it.displayName,it.parentComponentId):qt,Qn=it.displayName,ur=Qn===void 0?function(Ke){return li(Ke)?"styled."+Ke:"Styled("+b(Ke)+")"}(at):Qn,On=it.displayName&&it.componentId?Ur(it.displayName)+"-"+it.componentId:it.componentId||Rn,ct=ke&&at.attrs?Array.prototype.concat(at.attrs,Mt).filter(Boolean):Mt,Zt=it.shouldForwardProp;ke&&at.shouldForwardProp&&(Zt=it.shouldForwardProp?function(Ke,Oe,Ge){return at.shouldForwardProp(Ke,Oe,Ge)&&it.shouldForwardProp(Ke,Oe,Ge)}:at.shouldForwardProp);var Cn,Pn=new Kt(Re,On,ke?at.componentStyle:void 0),Kn=Pn.isStatic&&Mt.length===0,Rt=function(Ke,Oe){return function(Ge,Ft,Qt,wn){var Gn=Ge.attrs,ir=Ge.componentStyle,br=Ge.defaultProps,fr=Ge.foldedComponentIds,Er=Ge.shouldForwardProp,Or=Ge.styledComponentId,oi=Ge.target,si=function(St,kt,Jt){St===void 0&&(St=T);var gt=B({},kt,{theme:St}),dn={};return Jt.forEach(function(Xt){var hn,Sn,Jn,Vn=Xt;for(hn in u(Vn)&&(Vn=Vn(gt)),Vn)gt[hn]=dn[hn]=hn==="className"?(Sn=dn[hn],Jn=Vn[hn],Sn&&Jn?Sn+" "+Jn:Sn||Jn):Vn[hn]}),[gt,dn]}(Mr(Ft,(0,n.useContext)(cn),br)||T,Ft,Gn),Fi=si[0],$i=si[1],Vi=function(St,kt,Jt,gt){var dn=ut(),Xt=Wt(),hn=kt?St.generateAndInjectStyles(T,dn,Xt):St.generateAndInjectStyles(Jt,dn,Xt);return hn}(ir,wn,Fi,void 0),Bn=Qt,nt=$i.$as||Ft.$as||$i.as||Ft.as||oi,ve=li(nt),he=$i!==Ft?B({},Ft,{},$i):Ft,Ae={};for(var tt in he)tt[0]!=="$"&&tt!=="as"&&(tt==="forwardedAs"?Ae.as=he[tt]:(Er?Er(tt,I,nt):!ve||I(tt))&&(Ae[tt]=he[tt]));return Ft.style&&$i.style!==Ft.style&&(Ae.style=B({},Ft.style,{},$i.style)),Ae.className=Array.prototype.concat(fr,Or,Vi!==Or?Vi:null,Ft.className,$i.className).filter(Boolean).join(" "),Ae.ref=Bn,(0,n.createElement)(nt,Ae)}(Cn,Ke,Oe,Kn)};return Rt.displayName=ur,(Cn=n.forwardRef(Rt)).attrs=ct,Cn.componentStyle=Pn,Cn.displayName=ur,Cn.shouldForwardProp=Zt,Cn.foldedComponentIds=ke?Array.prototype.concat(at.foldedComponentIds,at.styledComponentId):x,Cn.styledComponentId=On,Cn.target=ke?at.target:at,Cn.withComponent=function(Ke){var Oe=it.componentId,Ge=function(Qt,wn){if(Qt==null)return{};var Gn,ir,br={},fr=Object.keys(Qt);for(ir=0;ir<fr.length;ir++)Gn=fr[ir],wn.indexOf(Gn)>=0||(br[Gn]=Qt[Gn]);return br}(it,["componentId"]),Ft=Oe&&Oe+"-"+(li(Ke)?Ke:Ur(b(Ke)));return Le(Ke,B({},Ge,{attrs:ct,componentId:Ft}),Re)},Object.defineProperty(Cn,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(Ke){this._foldedDefaultProps=ke?bn({},at.defaultProps,Ke):Ke}}),Cn.toString=function(){return"."+Cn.styledComponentId},Pe&&U()(Cn,at,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),Cn}var Ht=function(at){return function it(Re,ke,Pe){if(Pe===void 0&&(Pe=T),!(0,r.isValidElementType)(ke))return q(1,String(ke));var Te=function(){return Re(ke,Pe,sn.apply(void 0,arguments))};return Te.withConfig=function(Mt){return it(Re,ke,B({},Pe,{},Mt))},Te.attrs=function(Mt){return it(Re,ke,B({},Pe,{attrs:Array.prototype.concat(Pe.attrs,Mt).filter(Boolean)}))},Te}(Le,at)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(at){Ht[at]=Ht(at)});var Mn=function(){function at(Re,ke){this.rules=Re,this.componentId=ke,this.isStatic=$t(Re),bt.registerId(this.componentId+1)}var it=at.prototype;return it.createStyles=function(Re,ke,Pe,Te){var Mt=Te(zt(this.rules,ke,Pe,Te).join(""),""),qt=this.componentId+Re;Pe.insertRules(qt,qt,Mt)},it.removeStyles=function(Re,ke){ke.clearRules(this.componentId+Re)},it.renderStyles=function(Re,ke,Pe,Te){Re>2&&bt.registerId(this.componentId+Re),this.removeStyles(Re,Pe),this.createStyles(Re,ke,Pe,Te)},at}();function tr(at){for(var it=arguments.length,Re=new Array(it>1?it-1:0),ke=1;ke<it;ke++)Re[ke-1]=arguments[ke];var Pe=sn.apply(void 0,[at].concat(Re)),Te="sc-global-"+$r(JSON.stringify(Pe)),Mt=new Mn(Pe,Te);function qt(Qn){var ur=ut(),On=Wt(),ct=(0,n.useContext)(cn),Zt=(0,n.useRef)(ur.allocateGSInstance(Te)).current;return ur.server&&Rn(Zt,Qn,ur,ct,On),(0,n.useLayoutEffect)(function(){if(!ur.server)return Rn(Zt,Qn,ur,ct,On),function(){return Mt.removeStyles(Zt,ur)}},[Zt,Qn,ur,ct,On]),null}function Rn(Qn,ur,On,ct,Zt){if(Mt.isStatic)Mt.renderStyles(Qn,V,On,Zt);else{var Cn=B({},ur,{theme:Mr(ur,ct,qt.defaultProps)});Mt.renderStyles(Qn,Cn,On,Zt)}}return n.memo(qt)}function Sr(at){for(var it=arguments.length,Re=new Array(it>1?it-1:0),ke=1;ke<it;ke++)Re[ke-1]=arguments[ke];var Pe=sn.apply(void 0,[at].concat(Re)).join(""),Te=$r(Pe);return new ne(Te,Pe)}var Xr=function(){function at(){var Re=this;this._emitSheetCSS=function(){var ke=Re.instance.toString();if(!ke)return"";var Pe=Ne();return"<style "+[Pe&&'nonce="'+Pe+'"',A+'="true"','data-styled-version="5.3.3"'].filter(Boolean).join(" ")+">"+ke+"</style>"},this.getStyleTags=function(){return Re.sealed?q(2):Re._emitSheetCSS()},this.getStyleElement=function(){var ke;if(Re.sealed)return q(2);var Pe=((ke={})[A]="",ke["data-styled-version"]="5.3.3",ke.dangerouslySetInnerHTML={__html:Re.instance.toString()},ke),Te=Ne();return Te&&(Pe.nonce=Te),[n.createElement("style",B({},Pe,{key:"sc-0-0"}))]},this.seal=function(){Re.sealed=!0},this.instance=new bt({isServer:!0}),this.sealed=!1}var it=at.prototype;return it.collectStyles=function(Re){return this.sealed?q(2):n.createElement(ae,{sheet:this.instance},Re)},it.interleaveWithNodeStream=function(Re){return q(3)},at}(),gi=function(at){var it=n.forwardRef(function(Re,ke){var Pe=(0,n.useContext)(cn),Te=at.defaultProps,Mt=Mr(Re,Pe,Te);return n.createElement(at,B({},Re,{theme:Mt,ref:ke}))});return U()(it,at),it.displayName="WithTheme("+b(at)+")",it},Pi=function(){return(0,n.useContext)(cn)},ii={StyleSheet:bt,masterSheet:ft};const vr=Ht},65917:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(85893),n=t(67294),s=t(46449),a=t(12763),c=t(24414),h=t(4583),p=t(90291),d=t(60665),k=N=>N&&N.__esModule?N:{default:N};function M(N){if(N&&N.__esModule)return N;const D=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(N){for(const x in N)if(x!=="default"){const T=Object.getOwnPropertyDescriptor(N,x);Object.defineProperty(D,x,T.get?T:{enumerable:!0,get:()=>N[x]})}}return D.default=N,Object.freeze(D)}const C=M(n),w=k(s),I=({theme:N,expanded:D,variant:x,disabled:T,error:u})=>u?`1px solid ${N.colors.danger600} !important`:T?`1px solid ${N.colors.neutral150}`:D?`1px solid ${N.colors.primary600}`:x==="primary"?`1px solid ${N.colors.neutral0}`:`1px solid ${N.colors.neutral100}`,F=w.default(h.Typography)``,U=w.default(d.Box)`
  border: ${I};

  &:hover:not([aria-disabled='true']) {
    border: 1px solid ${({theme:N})=>N.colors.primary600};

    ${F} {
      color: ${({theme:N,expanded:D})=>D?void 0:N.colors.primary700};
    }

    ${h.Typography} {
      color: ${({theme:N,expanded:D})=>D?void 0:N.colors.primary600};
    }

    & > ${p.Flex} {
      background: ${({theme:N})=>N.colors.primary100};
    }

    [data-strapi-dropdown='true'] {
      background: ${({theme:N})=>N.colors.primary200};
    }
  }
`,B=({children:N,disabled:D=!1,error:x,expanded:T=!1,hasErrorMessage:u=!0,id:b,onToggle:E,toggle:A,size:R="M",variant:H="primary",shadow:z})=>{const V=c.useId(b),$=C.useMemo(()=>({expanded:T,onToggle:E,toggle:A,id:V,size:R,variant:H,disabled:D}),[D,T,V,E,R,A,H]);return r.jsxs(a.AccordionContext.Provider,{value:$,children:[r.jsx(U,{"data-strapi-expanded":T,disabled:D,"aria-disabled":D,expanded:T,hasRadius:!0,variant:H,error:x,shadow:z,children:N}),x&&u&&r.jsx(d.Box,{paddingTop:1,children:r.jsx(h.Typography,{variant:"pi",textColor:"danger600",children:x})})]})};v.Accordion=B,v.AccordionTypography=F},51762:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(85893),n=t(12763),s=t(60665),a=({children:c,...h})=>{const{expanded:p,id:d}=n.useAccordion();if(!p)return null;const k=`accordion-content-${d}`,M=`accordion-label-${d}`,C=`accordion-desc-${d}`;return r.jsx(s.Box,{role:"region",id:k,"aria-labelledby":M,"aria-describedby":C,...h,children:c})};v.AccordionContent=a},12763:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(67294),n=r.createContext({disabled:!1,expanded:!1,id:"",size:"M",variant:"primary"}),s=()=>r.useContext(n);v.AccordionContext=n,v.useAccordion=s},87327:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(85893),n=t(67294),s=t(46449),a=t(37277),c=t(60665),h=t(90291),p=t(4583),d=B=>B&&B.__esModule?B:{default:B};function k(B){if(B&&B.__esModule)return B;const N=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(B){for(const D in B)if(D!=="default"){const x=Object.getOwnPropertyDescriptor(B,D);Object.defineProperty(N,D,x.get?x:{enumerable:!0,get:()=>B[D]})}}return N.default=B,Object.freeze(N)}const M=k(n),C=d(s),w=C.default(c.Box)`
  border-bottom: 1px solid ${({theme:B})=>B.colors.neutral200};
  border-right: 1px solid ${({theme:B})=>B.colors.neutral200};
  border-left: 1px solid ${({theme:B})=>B.colors.neutral200};
  border-radius: 0 0 ${({theme:B})=>B.borderRadius} ${({theme:B})=>B.borderRadius};
`,I=C.default(c.Box)`
  & > * {
    & > * {
      border-radius: unset;
    }
  }

  & > * {
    border-radius: unset;
    border-right: 1px solid ${({theme:B})=>B.colors.neutral200};
    border-left: 1px solid ${({theme:B})=>B.colors.neutral200};
    border-bottom: 1px solid ${({theme:B})=>B.colors.neutral200};
  }

  & > *:first-of-type {
    border-top: 1px solid ${({theme:B})=>B.colors.neutral200};
    border-radius: ${({theme:B})=>B.borderRadius} ${({theme:B})=>B.borderRadius} 0 0;
    & > * {
      border-radius: ${({theme:B})=>B.borderRadius} ${({theme:B})=>B.borderRadius} 0 0;
    }

    &:hover {
      border-top: 1px solid ${({theme:B})=>B.colors.primary600};
    }
  }

  & [data-strapi-expanded='true'] {
    border: 1px solid ${({theme:B})=>B.colors.primary600};
  }

  ${({theme:B,footer:N})=>`
    &:not(${N}) {
      & > *:last-of-type {
        border-radius: 0 0 ${B.borderRadius} ${B.borderRadius};
      }
    }
  `}
`,F=C.default(c.Box)`
  svg path {
    fill: ${({theme:B})=>B.colors.neutral500};
  }
`,U=({children:B,footer:N,label:D,labelAction:x,error:T})=>{const u=M.Children.toArray(B).map(b=>M.cloneElement(b,{hasErrorMessage:!1}));return r.jsxs(a.KeyboardNavigable,{attributeName:"data-strapi-accordion-toggle",children:[D&&r.jsxs(h.Flex,{paddingBottom:1,children:[r.jsx(p.Typography,{variant:"pi",as:"label",textColor:"neutral800",fontWeight:"bold",children:D}),x&&r.jsx(F,{paddingLeft:1,children:x})]}),r.jsx(I,{footer:N,children:u}),N&&r.jsx(w,{children:N}),T&&r.jsx(c.Box,{paddingTop:1,children:r.jsx(p.Typography,{variant:"pi",textColor:"danger600",children:T})})]})};v.AccordionGroup=U},46558:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(85893),n=t(89952),s=t(46449),a=t(65917),c=t(12763),h=t(20173),p=t(1179),d=t(23869),k=t(90291),M=t(4583),w=(B=>B&&B.__esModule?B:{default:B})(s),I=w.default(p.TextButton)`
  text-align: left;

  // necessary to make the ellipsis prop work on the title
  > span {
    max-width: 100%;
  }

  svg {
    width: ${14/16}rem;
    height: ${14/16}rem;

    path {
      fill: ${({theme:B,expanded:N})=>N?B.colors.primary600:B.colors.neutral500};
    }
  }
`,F=w.default(k.Flex)`
  min-height: ${({theme:B,size:N})=>B.sizes.accordions[N]};
  border-radius: ${({theme:B,expanded:N})=>N?`${B.borderRadius} ${B.borderRadius} 0 0`:B.borderRadius};

  &:hover {
    svg {
      path {
        fill: ${({theme:B})=>B.colors.primary600};
      }
    }
  }
`,U=({title:B,description:N,as:D="span",togglePosition:x="right",action:T,...u})=>{const{onToggle:b,toggle:E,expanded:A,id:R,size:H,variant:z,disabled:V}=c.useAccordion(),$=`accordion-content-${R}`,ee=`accordion-label-${R}`,q=`accordion-desc-${R}`,oe=H==="M"?6:4,X=H==="M"?oe:oe-2,pe=h.getBackground({expanded:A,disabled:V,variant:z}),se={as:D,fontWeight:H==="S"?"bold":void 0,id:ee,textColor:A?"primary600":"neutral700",ellipsis:!0,variant:H==="M"?"delta":void 0},be=A?"primary600":"neutral600",fe=A?"primary200":"neutral200",ue=H==="M"?`${32/16}rem`:`${24/16}rem`,we=()=>{V||(E&&!b?(console.warn('Deprecation warning: Usage of "toggle" prop in Accordion component is deprecated. This is discouraged and will be removed in the next major release. Please use "onToggle" instead'),E()):b&&b())},Me=r.jsx(k.Flex,{justifyContent:"center",borderRadius:"50%",height:ue,width:ue,transform:A?"rotate(180deg)":void 0,"data-strapi-dropdown":!0,"aria-hidden":!0,as:"span",background:fe,cursor:V?"not-allowed":"pointer",onClick:we,shrink:0,children:r.jsx(d.Icon,{as:n.CarretDown,width:H==="M"?`${11/16}rem`:`${8/16}rem`,color:A?"primary600":"neutral600"})});return r.jsx(F,{paddingBottom:X,paddingLeft:oe,paddingRight:oe,paddingTop:X,background:pe,expanded:A,size:H,justifyContent:"space-between",cursor:V?"not-allowed":"",children:r.jsxs(k.Flex,{gap:3,flex:1,maxWidth:"100%",children:[x==="left"&&Me,r.jsx(I,{onClick:we,"aria-disabled":V,"aria-expanded":A,"aria-controls":$,"aria-labelledby":ee,"data-strapi-accordion-toggle":!0,expanded:A,type:"button",flex:1,minWidth:0,...u,children:r.jsxs(r.Fragment,{children:[r.jsx(a.AccordionTypography,{...se,children:B}),N&&r.jsx(M.Typography,{as:"p",id:q,textColor:be,children:N})]})}),x==="right"&&r.jsxs(k.Flex,{gap:3,children:[Me,T]}),x==="left"&&T]})})};v.AccordionToggle=U},32767:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(65917),n=t(51762),s=t(46558),a=t(87327);v.Accordion=r.Accordion,v.AccordionTypography=r.AccordionTypography,v.AccordionContent=n.AccordionContent,v.AccordionToggle=s.AccordionToggle,v.AccordionGroup=a.AccordionGroup},20173:(Z,v)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const t=({expanded:r,disabled:n,variant:s})=>{let a="neutral100";return r?a="primary100":n?a="neutral150":s==="primary"&&(a="neutral0"),a};v.getBackground=t},33906:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(85893),n=t(89952),s=t(46449),a=t(16427),c=t(69186),h=t(60665),p=t(90291),d=t(4583),M=(B=>B&&B.__esModule?B:{default:B})(s),C=M.default(h.Box)`
  svg {
    height: 100%;
    width: 100%;

    path {
      fill: ${({theme:B})=>B.colors.neutral700};
    }
  }

  ${c.buttonFocusStyle};
`,w=M.default(p.Flex)`
  svg {
    height: 100%;
    width: 100%;

    path {
      fill: ${a.handleIconColor};
    }
  }
`,I=({variant:B,...N})=>B==="success"?r.jsx(n.CheckCircle,{...N}):B==="danger"||B==="warning"?r.jsx(n.ExclamationMarkCircle,{...N}):r.jsx(n.Information,{...N}),F=M.default(h.Box)`
  & a > span {
    color: ${a.handleIconColor};
  }

  svg path {
    fill: ${a.handleIconColor};
  }
`,U=({title:B,children:N,variant:D="default",onClose:x,closeLabel:T,titleAs:u="p",action:b,...E})=>r.jsxs(p.Flex,{alignItems:"flex-start",background:a.handleBackgroundColor(D),borderColor:a.handleBorderColor(D),boxShadow:"filterShadow",gap:3,hasRadius:!0,padding:5,paddingRight:6,variant:D,...E,children:[r.jsx(w,{height:`${20/16}rem`,shrink:0,variant:D,width:`${20/16}rem`,children:r.jsx(I,{"aria-hidden":!0,variant:D})}),r.jsxs(p.Flex,{alignItems:"start",gap:b?2:1,wrap:"wrap",role:D==="danger"?"alert":"status",width:"100%",children:[r.jsx(d.Typography,{fontWeight:"bold",textColor:"neutral800",as:u,children:B}),r.jsx(d.Typography,{as:"p",textColor:"neutral800",children:N}),b&&r.jsx(F,{variant:D,children:b})]}),r.jsx(C,{as:"button",background:"transparent",borderColor:void 0,height:`${12/16}rem`,marginTop:1,onClick:x,width:`${12/16}rem`,"aria-label":T,children:r.jsx(n.Cross,{"aria-hidden":!0})})]});v.Alert=U},36516:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(33906);v.Alert=r.Alert},16427:(Z,v)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const t=s=>{switch(s){case"danger":return"danger100";case"success":return"success100";case"warning":return"warning100";default:return"primary100"}},r=s=>t(s).replace("100","200"),n=({theme:s,variant:a})=>a==="danger"?s.colors.danger700:a==="success"?s.colors.success700:a==="warning"?s.colors.warning700:s.colors.primary700;v.handleBackgroundColor=t,v.handleBorderColor=r,v.handleIconColor=n},46092:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(85893),n=t(46449),s=t(90291),a=t(4583),p=(k=>k&&k.__esModule?k:{default:k})(n).default(s.Flex)`
  border-radius: ${({theme:k,size:M})=>M==="S"?"2px":k.borderRadius};
  height: ${({size:k,theme:M})=>M.sizes.badge[k]};
`,d=({active:k=!1,size:M="M",textColor:C="neutral600",backgroundColor:w="neutral150",children:I,minWidth:F=5,...U})=>{const B=M==="S"?1:2;return r.jsx(p,{inline:!0,alignItem:"center",justifyContent:"center",minWidth:F,paddingLeft:B,paddingRight:B,background:k?"primary200":w,size:M,...U,children:r.jsx(a.Typography,{variant:"sigma",textColor:k?"primary600":C,children:I})})};v.Badge=d},53409:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(46092);v.Badge=r.Badge},4322:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(85893),n=t(67294),s=t(46449),a=t(69186),c=t(90291),h=w=>w&&w.__esModule?w:{default:w};function p(w){if(w&&w.__esModule)return w;const I=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(w){for(const F in w)if(F!=="default"){const U=Object.getOwnPropertyDescriptor(w,F);Object.defineProperty(I,F,U.get?U:{enumerable:!0,get:()=>w[F]})}}return I.default=w,Object.freeze(I)}const d=p(n),M=h(s).default(c.Flex)`
  > svg {
    height: ${({theme:w})=>w.spaces[3]};
    width: ${({theme:w})=>w.spaces[3]};

    > g,
    path {
      fill: ${({theme:w})=>w.colors.neutral0};
    }
  }

  &[aria-disabled='true'] {
    pointer-events: none;
  }

  ${a.buttonFocusStyle}
`,C=d.forwardRef(({disabled:w,children:I,background:F="neutral0",...U},B)=>r.jsx(M,{ref:B,"aria-disabled":w,as:"button",type:"button",disabled:w,padding:2,hasRadius:!0,background:F,borderColor:"neutral200",cursor:"pointer",...U,children:I}));C.displayName="BaseButton",v.BaseButton=C,v.BaseButtonWrapper=M},60665:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(46449),n=t(91554),s=t(60468),c=(d=>d&&d.__esModule?d:{default:d})(r),h={color:!0,cursor:!0,height:!0,width:!0},p=c.default.div.withConfig({shouldForwardProp:(d,k)=>!h[d]&&k(d)})`
  // Font
  font-size: ${({fontSize:d,theme:k})=>s.extractStyleFromTheme(k.fontSizes,d,d)};

  // Colors
  background: ${({theme:d,background:k})=>s.extractStyleFromTheme(d.colors,k,k)};
  color: ${({theme:d,color:k})=>s.extractStyleFromTheme(d.colors,k,void 0)};

  // Spaces
  ${({theme:d,padding:k})=>n("padding",k,d)}
  ${({theme:d,paddingTop:k})=>n("padding-top",k,d)}
  ${({theme:d,paddingRight:k})=>n("padding-right",k,d)}
  ${({theme:d,paddingBottom:k})=>n("padding-bottom",k,d)}
  ${({theme:d,paddingLeft:k})=>n("padding-left",k,d)}
  ${({theme:d,marginLeft:k})=>n("margin-left",k,d)}
  ${({theme:d,marginRight:k})=>n("margin-right",k,d)}
  ${({theme:d,marginTop:k})=>n("margin-top",k,d)}
  ${({theme:d,marginBottom:k})=>n("margin-bottom",k,d)}

  // Responsive hiding
  ${({theme:d,hiddenS:k})=>k?`${d.mediaQueries.tablet} { display: none; }`:void 0}
  ${({theme:d,hiddenXS:k})=>k?`${d.mediaQueries.mobile} { display: none; }`:void 0}
  

  // Borders
  border-radius: ${({theme:d,hasRadius:k,borderRadius:M})=>k?d.borderRadius:M};
  border-style: ${({borderStyle:d})=>d};
  border-width: ${({borderWidth:d})=>d};
  border-color: ${({borderColor:d,theme:k})=>s.extractStyleFromTheme(k.colors,d,void 0)};
  border: ${({theme:d,borderColor:k,borderStyle:M,borderWidth:C})=>{if(k&&!M&&typeof C>"u")return`1px solid ${d.colors[k]}`}};

  // Shadows
  box-shadow: ${({theme:d,shadow:k})=>s.extractStyleFromTheme(d.shadows,k,void 0)};

  // Handlers
  pointer-events: ${({pointerEvents:d})=>d};
  &:hover {
    ${({_hover:d,theme:k})=>d?d(k):void 0}
  }

  // Display
  display: ${({display:d})=>d};

  // Position
  position: ${({position:d})=>d};
  left: ${({left:d,theme:k})=>s.extractStyleFromTheme(k.spaces,d,d)};
  right: ${({right:d,theme:k})=>s.extractStyleFromTheme(k.spaces,d,d)};
  top: ${({top:d,theme:k})=>s.extractStyleFromTheme(k.spaces,d,d)};
  bottom: ${({bottom:d,theme:k})=>s.extractStyleFromTheme(k.spaces,d,d)};
  z-index: ${({zIndex:d})=>d};
  overflow: ${({overflow:d})=>d};

  // Size
  width: ${({width:d,theme:k})=>s.extractStyleFromTheme(k.spaces,d,d)};
  max-width: ${({maxWidth:d,theme:k})=>s.extractStyleFromTheme(k.spaces,d,d)};
  min-width: ${({minWidth:d,theme:k})=>s.extractStyleFromTheme(k.spaces,d,d)};
  height: ${({height:d,theme:k})=>s.extractStyleFromTheme(k.spaces,d,d)};
  max-height: ${({maxHeight:d,theme:k})=>s.extractStyleFromTheme(k.spaces,d,d)};
  min-height: ${({minHeight:d,theme:k})=>s.extractStyleFromTheme(k.spaces,d,d)};

  // Animation
  transition: ${({transition:d})=>d};
  transform: ${({transform:d})=>d};
  animation: ${({animation:d})=>d};

  //Flexbox children props
  flex-shrink: ${({shrink:d})=>d};
  flex-grow: ${({grow:d})=>d};
  flex-basis: ${({basis:d})=>d};
  flex: ${({flex:d})=>d};

  // Text
  text-align: ${({textAlign:d})=>d};
  text-transform: ${({textTransform:d})=>d};
  line-height: ${({theme:d,lineHeight:k})=>s.extractStyleFromTheme(d.lineHeights,k,k)};

  // Cursor
  cursor: ${({cursor:d})=>d};
`;v.Box=p},93289:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(60665);v.Box=r.Box},70959:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(85893),n=t(67294),s=t(89952),a=t(46449),c=t(30240),h=t(60892),p=t(4322),d=t(60665),k=t(4583),M=t(90291),C=D=>D&&D.__esModule?D:{default:D},w=C(n),I=C(a),F=a.keyframes`
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
`,U=I.default(s.Loader)`
  animation: ${F} 2s infinite linear;
  will-change: transform;
`,B=I.default(p.BaseButton)`
  height: ${({theme:D,size:x})=>D.sizes.button[x]};

  svg {
    height: ${12/16}rem;
    width: auto;
  }

  &[aria-disabled='true'] {
    ${h.getDisabledStyle}

    &:active {
      ${h.getDisabledStyle}
    }
  }

  &:hover {
    ${h.getHoverStyle}
  }

  &:active {
    ${h.getActiveStyle}
  }

  ${h.getVariantStyle}
`,N=w.default.forwardRef(({variant:D=c.DEFAULT,startIcon:x,endIcon:T,disabled:u=!1,children:b,onClick:E,size:A=c.BUTTON_SIZES[0],loading:R=!1,fullWidth:H=!1,...z},V)=>{const $=u||R,ee=q=>{!$&&E&&E(q)};return r.jsxs(B,{ref:V,"aria-disabled":$,disabled:$,size:A,variant:D,onClick:ee,fullWidth:H,alignItems:"center",background:"buttonPrimary600",borderColor:"buttonPrimary600",gap:2,inline:H,justifyContent:H?"center":void 0,paddingLeft:4,paddingRight:4,width:H?"100%":void 0,...z,children:[(x||R)&&r.jsx(d.Box,{"aria-hidden":!0,children:R?r.jsx(U,{}):x}),r.jsx(k.Typography,{variant:A==="S"?"pi":void 0,fontWeight:"bold",textColor:"buttonNeutral0",children:b}),T&&r.jsx(M.Flex,{"aria-hidden":!0,children:T})]})});N.displayName="Button",v.Button=N,v.ButtonWrapper=B},30240:(Z,v)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const t="success-light",r="danger-light",n="default",s="tertiary",a="secondary",c="danger",h="success",p="ghost",d=[t,r],k=[n,s,a,c,h,p,...d],M=["S","M","L"];v.BUTTON_SIZES=M,v.DANGER=c,v.DANGER_LIGHT=r,v.DEFAULT=n,v.GHOST=p,v.LIGHT_VARIANTS=d,v.SECONDARY=a,v.SUCCESS=h,v.SUCCESS_LIGHT=t,v.TERTIARY=s,v.VARIANTS=k},35163:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(70959);v.Button=r.Button,v.ButtonWrapper=r.ButtonWrapper},60892:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(30240),n=t(4583),s=d=>d===r.SUCCESS_LIGHT||d===r.DANGER_LIGHT?`${d.substring(0,d.lastIndexOf("-"))}`:d===r.TERTIARY?"neutral":d===r.DEFAULT||d===r.SECONDARY||r.VARIANTS.every(k=>k!==d)?"primary":`${d}`,a=({theme:d})=>`
    border: 1px solid ${d.colors.neutral200};
    background: ${d.colors.neutral150};
    ${n.Typography} {
      color: ${d.colors.neutral600};
    }
    svg {
      > g, path {
        fill: ${d.colors.neutral600};
      }
    }
  `,c=({theme:d,variant:k})=>[...r.LIGHT_VARIANTS,r.SECONDARY].includes(k)?`
      background-color: ${d.colors.neutral0};
    `:k===r.TERTIARY?`
      background-color: ${d.colors.neutral100};
    `:k===r.GHOST?`
      background-color: ${d.colors.neutral100};
    `:k===r.DEFAULT?`
      border: 1px solid ${d.colors.buttonPrimary500};
      background: ${d.colors.buttonPrimary500};
    `:`
    border: 1px solid ${d.colors[`${s(k)}500`]};
    background: ${d.colors[`${s(k)}500`]};
  `,h=({theme:d,variant:k})=>[...r.LIGHT_VARIANTS,r.SECONDARY].includes(k)?`
      background-color: ${d.colors.neutral0};
      border: 1px solid ${d.colors[`${s(k)}600`]};
      ${n.Typography} {
        color: ${d.colors[`${s(k)}600`]};
      }
      svg {
        > g, path {
          fill: ${d.colors[`${s(k)}600`]};
        }
      }
    `:k===r.TERTIARY?`
      background-color: ${d.colors.neutral150};
    `:`
    border: 1px solid ${d.colors[`${s(k)}600`]};
    background: ${d.colors[`${s(k)}600`]};
  `,p=({theme:d,variant:k})=>{switch(k){case r.DANGER_LIGHT:case r.SUCCESS_LIGHT:case r.SECONDARY:return`
          border: 1px solid ${d.colors[`${s(k)}200`]};
          background: ${d.colors[`${s(k)}100`]};
          ${n.Typography} {
            color: ${d.colors[`${s(k)}700`]};
          }
          svg {
            > g, path {
              fill: ${d.colors[`${s(k)}700`]};
            }
          }
        `;case r.TERTIARY:return`
          border: 1px solid ${d.colors.neutral200};
          background: ${d.colors.neutral0};
          ${n.Typography} {
            color: ${d.colors.neutral800};
          }
          svg {
            > g, path {
              fill: ${d.colors.neutral800};
            }
          }
        `;case r.GHOST:return`
        border: 1px solid transparent;
        background: transparent;

        ${n.Typography} {
          color: ${d.colors.neutral800};
        }

        svg {
          > g, path {
            fill: ${d.colors.neutral500};
          }
        }
      `;case r.SUCCESS:case r.DANGER:return`
          border: 1px solid ${d.colors[`${s(k)}600`]};
          background: ${d.colors[`${s(k)}600`]};
          ${n.Typography} {
            color: ${d.colors.neutral0};
          }
        `;default:return`
          svg {
            > g, path {
              fill: ${d.colors.buttonNeutral0};
            }
          }
        `}};v.getActiveStyle=h,v.getDisabledStyle=a,v.getHoverStyle=c,v.getVariantColorName=s,v.getVariantStyle=p},13020:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(8685);function n(c){if(c&&c.__esModule)return c;const h=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(c){for(const p in c)if(p!=="default"){const d=Object.getOwnPropertyDescriptor(c,p);Object.defineProperty(h,p,d.get?d:{enumerable:!0,get:()=>c[p]})}}return h.default=c,Object.freeze(h)}const a=n(r).Root;v.DismissibleLayer=a},27906:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(85893),n=t(46449),s=t(60665),h=(d=>d&&d.__esModule?d:{default:d})(n).default(s.Box)`
  height: 1px;
  border: none;
  /* If contained in a Flex parent we want to prevent the Divider to shink */
  flex-shrink: 0;
  ${({unsetMargin:d})=>d?"margin: 0;":""}
`,p=({unsetMargin:d=!0,...k})=>r.jsx(h,{...k,background:"neutral150",as:"hr",unsetMargin:d});v.Divider=p},50423:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(27906);v.Divider=r.Divider},66096:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(85893),n=t(46449),s=t(60665),a=t(90291),c=t(4583),d=(M=>M&&M.__esModule?M:{default:M})(n).default(s.Box)`
  svg {
    height: ${88/16}rem;
  }
`,k=({icon:M,content:C,action:w,hasRadius:I=!0,shadow:F="tableShadow"})=>r.jsxs(a.Flex,{alignItems:"center",direction:"column",padding:11,background:"neutral0",hasRadius:I,shadow:F,children:[r.jsx(d,{paddingBottom:6,"aria-hidden":!0,children:M}),r.jsx(s.Box,{paddingBottom:4,children:r.jsx(c.Typography,{variant:"delta",as:"p",textAlign:"center",textColor:"neutral600",children:C})}),w]});v.EmptyStateLayout=k},66342:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(66096);v.EmptyStateLayout=r.EmptyStateLayout},90291:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(46449),n=t(91554),s=t(60665),c=(d=>d&&d.__esModule?d:{default:d})(r),h={direction:!0},p=c.default(s.Box).withConfig({shouldForwardProp:(d,k)=>!h[d]&&k(d)})`
  align-items: ${({alignItems:d="center"})=>d};
  display: ${({display:d="flex",inline:k})=>k?"inline-flex":d};
  flex-direction: ${({direction:d="row"})=>d};
  flex-shrink: ${({shrink:d})=>d};
  flex-wrap: ${({wrap:d})=>d};
  ${({gap:d,theme:k})=>n("gap",d,k)};
  justify-content: ${({justifyContent:d})=>d};
`;v.Flex=p},86931:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(90291);v.Flex=r.Flex},80189:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(85893),n=t(67294),s=t(15809),a=t(13270),c=({onEscape:h,restoreFocus:p=!0,...d})=>{const k=n.useRef(null);n.useEffect(()=>{let C=null;return p&&(C=document.activeElement),()=>{C&&C.focus()}},[p]),n.useEffect(()=>{if(!k.current)return;const C=s.getFocusableNodes(k.current);C.length>0?C[0].focus():console.warn("[FocusTrap]: it seems there are no focusable elements in the focus trap tree. Make sure there s at least one.")},[]);const M=C=>{if(C.key===a.KeyboardKeys.ESCAPE&&h){h();return}if(C.key!==a.KeyboardKeys.TAB)return;const w=s.getFocusableNodes(k.current);if(w.length>0){const I=w[0],F=w[w.length-1];C.shiftKey?I===document.activeElement&&(C.preventDefault(),F.focus()):F===document.activeElement&&(C.preventDefault(),I.focus())}};return r.jsx("div",{ref:k,onKeyDown:M,...d})};v.FocusTrap=c},23869:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(85893),n=t(67294),s=t(46449),a=t(60468),c=t(60665),h=C=>C&&C.__esModule?C:{default:C},p=h(n),k=h(s).default(c.Box)`
  path {
    fill: ${({color:C,theme:w})=>a.extractStyleFromTheme(w.colors,C,void 0)};
  }
  ${({theme:C,colors:w})=>w(C)}
`,M=p.default.forwardRef(({color:C="neutral600",colors:w=()=>"",...I},F)=>r.jsx(k,{ref:F,color:C,colors:w,...I}));M.displayName="Icon",v.Icon=M},35314:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(23869);v.Icon=r.Icon},24272:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(85893),n=t(67294),s=t(46449),a=t(98365),c=t(70252),h=t(4322),p=t(90291),d=x=>x&&x.__esModule?x:{default:x};function k(x){if(x&&x.__esModule)return x;const T=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(x){for(const u in x)if(u!=="default"){const b=Object.getOwnPropertyDescriptor(x,u);Object.defineProperty(T,u,b.get?b:{enumerable:!0,get:()=>x[u]})}}return T.default=x,Object.freeze(T)}const M=k(n),C=d(s),w="tertiary",I="secondary",F=["S","M","L"],U=[w,I],B=M.forwardRef(({label:x,background:T,borderWidth:u,noBorder:b=!1,children:E,icon:A,disabled:R=!1,onClick:H,size:z=F[0],"aria-label":V,variant:$=U[0],...ee},q)=>{const oe=pe=>{!R&&H&&H(pe)},X=r.jsxs(N,{"aria-disabled":R,background:R?"neutral150":T,borderWidth:b?0:u,justifyContent:"center",...ee,ref:q,size:z,onClick:oe,variant:$,children:[r.jsx(a.VisuallyHidden,{as:"span",children:x??V}),M.cloneElement(A||E,{"aria-hidden":!0,focusable:!1})]});return x?r.jsx(c.Tooltip,{label:x,children:X}):X}),N=C.default(h.BaseButton)`
  background-color: ${({theme:x,variant:T})=>{if(T===I)return x.colors.primary100}};
  border-color: ${({theme:x,variant:T})=>T===I?x.colors.primary200:x.colors.neutral200};
  height: ${({theme:x,size:T})=>x.sizes.button[T]};
  width: ${({theme:x,size:T})=>x.sizes.button[T]};

  svg {
    g,
    path {
      fill: ${({theme:x,variant:T})=>T===I?x.colors.primary500:x.colors.neutral500};
    }
  }

  :hover,
  :focus {
    svg {
      g,
      path {
        fill: ${({theme:x,variant:T})=>T===I?x.colors.primary600:x.colors.neutral600};
      }
    }
  }

  &[aria-disabled='true'] {
    svg {
      path {
        fill: ${({theme:x})=>x.colors.neutral600};
      }
    }
  }
`,D=C.default(p.Flex)`
  & span:first-child button {
    border-left: 1px solid ${({theme:x})=>x.colors.neutral200};
    border-radius: ${({theme:x})=>`${x.borderRadius} 0 0 ${x.borderRadius}`};
  }

  & span:last-child button {
    border-radius: ${({theme:x})=>`0 ${x.borderRadius} ${x.borderRadius} 0`};
  }

  & ${N} {
    border-radius: 0;
    border-left: none;

    svg {
      path {
        fill: ${({theme:x})=>x.colors.neutral700};
      }
    }

    &:hover {
      background-color: ${({theme:x})=>x.colors.neutral100};

      svg {
        path {
          fill: ${({theme:x})=>x.colors.neutral800};
        }
      }
    }

    &:active {
      background-color: ${({theme:x})=>x.colors.neutral150};
      svg {
        path {
          fill: ${({theme:x})=>x.colors.neutral900};
        }
      }
    }

    &[aria-disabled='true'] {
      svg {
        path {
          fill: ${({theme:x})=>x.colors.neutral600};
        }
      }
    }
  }
`;v.IconButton=B,v.IconButtonGroup=D},20338:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(24272);v.IconButton=r.IconButton,v.IconButtonGroup=r.IconButtonGroup},37277:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(85893),n=t(13270),s=t(60665),a=({tagName:c,attributeName:h="",...p})=>{const d=()=>{const C=document.activeElement;return C?c?C.tagName.toLowerCase()===c:C.hasAttribute(h):!1},k=C=>c?C.querySelectorAll(c):C.querySelectorAll(`[${h}]`),M=C=>{switch(C.key){case n.KeyboardKeys.RIGHT:case n.KeyboardKeys.DOWN:{if(d()){C.preventDefault();const w=document.activeElement,I=[...k(C.currentTarget)],F=I.findIndex(B=>B===w),U=F+1<I.length?F+1:0;I[U].focus()}break}case n.KeyboardKeys.LEFT:case n.KeyboardKeys.UP:{if(d()){C.preventDefault();const w=document.activeElement,I=[...k(C.currentTarget)],F=I.findIndex(B=>B===w),U=F-1>-1?F-1:I.length-1;I[U].focus()}break}case n.KeyboardKeys.HOME:{d()&&(C.preventDefault(),k(C.currentTarget).item(0).focus());break}case n.KeyboardKeys.END:{if(d()){C.preventDefault();const w=k(C.currentTarget);w.item(w.length-1).focus()}break}}};return r.jsx(s.Box,{onKeyDown:M,...p})};v.KeyboardNavigable=a},54143:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(85893),n=t(46449),s=t(60665),h=(d=>d&&d.__esModule?d:{default:d})(n).default(s.Box)`
  overflow: auto;
  max-height: 60vh;
`,p=d=>r.jsx(h,{padding:7,...d});v.ModalBody=p},93063:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(67294),n=r.createContext(()=>{}),s=()=>r.useContext(n);v.ModalContext=n,v.useModal=s},35246:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(85893),n=t(46449),s=t(60665),a=t(90291),p=(k=>k&&k.__esModule?k:{default:k})(n).default(s.Box)`
  border-radius: 0 0 ${({theme:k})=>k.borderRadius} ${({theme:k})=>k.borderRadius};
  border-top: 1px solid ${({theme:k})=>k.colors.neutral150};
`,d=({startActions:k,endActions:M})=>r.jsx(p,{paddingTop:4,paddingBottom:4,paddingLeft:5,paddingRight:5,background:"neutral100",children:r.jsxs(a.Flex,{justifyContent:"space-between",children:[r.jsx(a.Flex,{gap:2,children:k}),r.jsx(a.Flex,{gap:2,children:M})]})});v.ModalFooter=d},45187:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(85893),n=t(89952),s=t(46449),a=t(93063),c=t(24272),h=t(60665),p=t(90291),M=(w=>w&&w.__esModule?w:{default:w})(s).default(h.Box)`
  border-radius: ${({theme:w})=>w.borderRadius} ${({theme:w})=>w.borderRadius} 0 0;
  border-bottom: 1px solid ${({theme:w})=>w.colors.neutral150};
`,C=({children:w,closeLabel:I="Close the modal"})=>{const F=a.useModal();return r.jsx(M,{paddingTop:4,paddingBottom:4,paddingLeft:5,paddingRight:5,background:"neutral100",children:r.jsxs(p.Flex,{justifyContent:"space-between",children:[w,r.jsx(c.IconButton,{onClick:F,"aria-label":I,icon:r.jsx(n.Cross,{})})]})})};v.ModalHeader=C},25422:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(85893),n=t(46449),s=t(93063),a=t(13020),c=t(8621),h=t(90291),p=t(7480),d=t(80189),k=t(60665),w=(F=>F&&F.__esModule?F:{default:F})(n).default(h.Flex)`
  background: ${({theme:F})=>`${F.colors.neutral800}1F`};
  inset: 0;
`,I=({onClose:F,labelledBy:U,...B})=>(c(!0),r.jsx(p.Portal,{children:r.jsx(s.ModalContext.Provider,{value:F,children:r.jsx(w,{justifyContent:"center",paddingLeft:8,paddingRight:8,position:"fixed",zIndex:4,children:r.jsx(d.FocusTrap,{children:r.jsx(a.DismissibleLayer,{onEscapeKeyDown:F,onPointerDownOutside:F,children:r.jsx(k.Box,{"aria-labelledby":U,"aria-modal":!0,onClick:N=>N.stopPropagation(),background:"neutral0",hasRadius:!0,role:"dialog",shadow:"popupShadow",width:`${830/16}rem`,...B})})})})})}));v.ModalLayout=I},91874:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(25422),n=t(45187),s=t(35246),a=t(54143);v.ModalLayout=r.ModalLayout,v.ModalHeader=n.ModalHeader,v.ModalFooter=s.ModalFooter,v.ModalBody=a.ModalBody},7480:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(85893),n=t(67294),s=t(73935),a=t(60665);function c(d){if(d&&d.__esModule)return d;const k=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(d){for(const M in d)if(M!=="default"){const C=Object.getOwnPropertyDescriptor(d,M);Object.defineProperty(k,M,C.get?C:{enumerable:!0,get:()=>d[M]})}}return k.default=d,Object.freeze(k)}const p=c(n).forwardRef(({container:d=globalThis?.document?.body,...k},M)=>d?s.createPortal(r.jsx(a.Box,{ref:M,...k}),d):null);p.displayName="Portal",v.Portal=p},29382:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(85893),n=t(67294),s=t(46449),a=t(60468),c=t(90291),p=(w=>w&&w.__esModule?w:{default:w})(s),d={size:!0,spacing:!0},k=p.default(c.Flex).withConfig({shouldForwardProp:(w,I)=>!d[w]&&I(w)})`
  & > * {
    margin-top: 0;
    margin-bottom: 0;
  }

  & > * + * {
    margin-top: ${({theme:w,spacing:I})=>a.extractStyleFromTheme(w.spaces,I,void 0)};
  }
`,M=p.default(c.Flex).withConfig({shouldForwardProp:(w,I)=>!d[w]&&I(w)})`
  & > * {
    margin-left: 0;
    margin-right: 0;
  }

  & > * + * {
    margin-left: ${({theme:w,spacing:I})=>a.extractStyleFromTheme(w.spaces,I,void 0)};
  }
`,C=n.forwardRef(({horizontal:w=!1,spacing:I,size:F,...U},B)=>(F&&console.warn('Deprecation warning: Usage of "size" prop in Stack component is deprecated. This is discouraged and will be removed in the next major release. Please use "spacing" instead'),w?r.jsx(M,{ref:B,spacing:I||F,...U}):r.jsx(k,{direction:"column",alignItems:"stretch",ref:B,spacing:I||F,...U})));C.displayName="Stack",v.Stack=C},42919:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(29382);v.Stack=r.Stack},80361:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(85893),n=t(67294),s=t(46449),a=t(90291),c=t(60665),h=w=>w&&w.__esModule?w:{default:w},p=h(n),d=h(s),k=d.default.div`
  background: ${({theme:w})=>w.colors.danger500};
  border: none;
  border-radius: 16px;
  position: relative;
  height: ${24/16}rem;
  width: ${40/16}rem;

  & span {
    font-size: ${({visibleLabels:w})=>w?"1rem":0};
  }

  &:before {
    content: '';
    background: ${({theme:w})=>w.colors.neutral0};
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    position: absolute;
    transition: all 0.5s;
    left: ${({theme:w})=>w.spaces[1]};
    top: ${({theme:w})=>w.spaces[1]};
  }

  @media (prefers-reduced-motion: reduce) {
    &:before {
      transition: none;
    }
  }
`,M=d.default.button`
  background: transparent;
  padding: 0;
  border: none;

  &[aria-checked='true'] ${k} {
    background: ${({theme:w})=>w.colors.success500};
  }

  &[aria-checked='true'] ${k}:before {
    transform: translateX(1rem);
  }
`,C=p.default.forwardRef(({label:w,onChange:I,onLabel:F="On",offLabel:U="Off",selected:B,visibleLabels:N=!1,...D},x)=>r.jsx(M,{ref:x,role:"switch","aria-checked":B,"aria-label":w,onClick:I,visibleLabels:N,type:"button",...D,children:r.jsxs(a.Flex,{children:[r.jsxs(k,{children:[r.jsx("span",{children:F}),r.jsx("span",{children:U})]}),N&&r.jsx(c.Box,{as:"span","aria-hidden":!0,paddingLeft:2,color:B?"success600":"danger600",children:B?F:U})]})}));v.Switch=C},37307:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(80361);v.Switch=r.Switch},58405:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(85893),n=t(67294),s=t(81405),a=t(24414);function c(d){if(d&&d.__esModule)return d;const k=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(d){for(const M in d)if(M!=="default"){const C=Object.getOwnPropertyDescriptor(d,M);Object.defineProperty(k,M,C.get?C:{enumerable:!0,get:()=>d[M]})}}return k.default=d,Object.freeze(k)}const h=c(n),p=h.forwardRef(({id:d,initialSelectedTabIndex:k=0,label:M,onTabChange:C,variant:w,...I},F)=>{const U=a.useId(d),[B,N]=h.useState(k);h.useImperativeHandle(F,()=>({_handlers:{setSelectedTabIndex:N}}));const D=h.useMemo(()=>({id:U,selectedTabIndex:B,selectTabIndex:N,label:M,variant:w,onTabChange:C}),[M,C,B,U,w]);return r.jsx(s.TabsContext.Provider,{value:D,children:r.jsx("div",{...I})})});p.displayName="TabGroup",v.TabGroup=p},41556:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(85893),n=t(67294),s=t(81405),a=({children:h,...p})=>{const{id:d,selectedTabIndex:k}=s.useTabs(),M=n.Children.toArray(h).map((C,w)=>n.cloneElement(C,{id:`${d}-${w}`})).filter((C,w)=>w===k);return r.jsx("div",{...p,children:M})},c=({id:h,...p})=>{const d=`${h}-tab`,k=`${h}-tabpanel`;return r.jsx("div",{id:k,role:"tabpanel",tabIndex:0,"aria-labelledby":d,...p})};v.TabPanel=c,v.TabPanels=a},10438:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(85893),n=t(67294),s=t(61299),a=t(46449),c=t(19708),h=t(81405),p=t(13270),d=t(4583),M=(U=>U&&U.__esModule?U:{default:U})(a),C=(U,B)=>{const N=n.useRef(null),D=n.useRef(!1),x=s.useCallbackRef(B);return n.useEffect(()=>{if(N.current){if(D.current){const T=N.current.querySelector('[tabindex="0"]');T&&(T.focus(),x(U))}D.current||(D.current=!0)}},[U,x]),N},w=M.default.button`
  &[aria-disabled='true'] {
    cursor: not-allowed;
  }
`,I=({children:U,...B})=>{const{id:N,selectedTabIndex:D,selectTabIndex:x,label:T,variant:u,onTabChange:b}=h.useTabs(),E=C(D,b),A=n.Children.toArray(U).map((H,z)=>n.cloneElement(H,{id:`${N}-${z}`,index:z,selectedTabIndex:D,onTabClick:()=>x(z),variant:u})),R=H=>{if(!A.every(V=>V.props.disabled))switch(H.key){case p.KeyboardKeys.RIGHT:{const V=D+1,$=q=>A[q].props.disabled?q===A.length-1?$(0):$(q+1):q,ee=$(V>=A.length?0:V);x(ee);break}case p.KeyboardKeys.LEFT:{const V=D-1,$=q=>A[q].props.disabled?$(q===0?A.length-1:q-1):q,ee=$(V<0?A.length-1:V);x(ee);break}case p.KeyboardKeys.HOME:{const V=A.findIndex($=>!$.props.disabled);x(V);break}case p.KeyboardKeys.END:{const $=A.map((ee,q)=>({isDisabled:ee.props.disabled,index:q})).reverse().find(({isDisabled:ee})=>!ee);$&&x($.index);break}}};return u==="simple"?r.jsx("div",{ref:E,role:"tablist","aria-label":T,onKeyDown:R,...B,children:A}):r.jsx(c.DefaultTabsRow,{ref:E,role:"tablist",alignItems:"flex-end","aria-label":T,onKeyDown:R,...B,children:A})},F=({disabled:U=!1,id:B,children:N,variant:D,hasError:x=!1,index:T,selectedTabIndex:u,onTabClick:b,...E})=>{const A=`${B}-tab`,R=`${B}-tabpanel`,H=T===u,z=()=>{U||b&&b()};if(D==="simple"){let $;return x?$="danger600":H?$="primary600":$="neutral600",r.jsx(w,{id:A,role:"tab","aria-controls":H?R:void 0,tabIndex:H?0:-1,"aria-selected":H,type:"button",onClick:z,"aria-disabled":U,...E,children:r.jsx(c.SimpleTabBox,{padding:4,selected:H,hasError:x,children:r.jsx(d.Typography,{variant:"sigma",textColor:$,children:N})})})}x&&console.warn('The "hasError" prop is only available for the "simple" variant.');const V=u&&u-1===T;return r.jsx(c.DefaultTabButton,{id:A,role:"tab",type:"button","aria-controls":H?R:void 0,tabIndex:H?0:-1,"aria-selected":H,onClick:z,"aria-disabled":U,showRightBorder:Boolean(V),...E,children:r.jsx(c.DefaultTabBox,{padding:H?4:3,background:H?"neutral0":"neutral100",selected:H,children:r.jsx(d.Typography,{fontWeight:"bold",textColor:H?"primary700":"neutral600",children:N})})})};v.Tab=F,v.Tabs=I},81405:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(67294),n=r.createContext({id:"",label:"",selectedTabIndex:0,selectTabIndex(){throw new Error("TabsContext.selectTabIndex is not implemented.")}}),s=()=>r.useContext(n);v.TabsContext=n,v.useTabs=s},19708:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(46449),n=t(60665),s=t(90291),c=(M=>M&&M.__esModule?M:{default:M})(r),h=c.default(n.Box)`
  border-bottom: 2px solid
    ${({theme:M,selected:C,hasError:w})=>C?w?M.colors.danger600:M.colors.primary600:"transparent"};
`,p=c.default(n.Box)`
  border-bottom: 1px solid ${({theme:M,selected:C})=>C?M.colors.neutral0:M.colors.neutral150};
`,d=c.default.button`
  border: none;
  background: transparent;
  padding: 0;

  & + & > ${p} {
    border-left: 1px solid ${({theme:M})=>M.colors.neutral150};
  }

  ${p} {
    border-right: ${({theme:M,showRightBorder:C})=>C?`1px solid ${M.colors.neutral150}`:"none"};
  }

  // Hack preventing the outline from being overflow by the following tab
  outline-offset: -2px;

  &[aria-disabled='true'] {
    cursor: not-allowed;
  }
`,k=c.default(s.Flex)`
  & > * {
    flex: 1;
  }

  & ${d}:first-of-type ${p} {
    border-radius: ${({theme:M})=>`${M.borderRadius} 0 0 0`};
  }

  & ${d}:last-of-type ${p} {
    border-radius: ${({theme:M})=>`0 ${M.borderRadius} 0 0`};
  }

  & ${d}[aria-selected="true"] ${p} {
    border-radius: ${({theme:M})=>`${M.borderRadius} ${M.borderRadius} 0 0`};
    border-left: none;
    border-right: none;
  }
`;v.DefaultTabBox=p,v.DefaultTabButton=d,v.DefaultTabsRow=k,v.SimpleTabBox=h},63038:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(10438),n=t(41556),s=t(58405);v.Tab=r.Tab,v.Tabs=r.Tabs,v.TabPanel=n.TabPanel,v.TabPanels=n.TabPanels,v.TabGroup=s.TabGroup},1179:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(85893),n=t(67294),s=t(89952),a=t(46449),c=t(69186),h=t(90291),p=t(4583),d=B=>B&&B.__esModule?B:{default:B};function k(B){if(B&&B.__esModule)return B;const N=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(B){for(const D in B)if(D!=="default"){const x=Object.getOwnPropertyDescriptor(B,D);Object.defineProperty(N,D,x.get?x:{enumerable:!0,get:()=>B[D]})}}return N.default=B,Object.freeze(N)}const M=k(n),C=d(a),w=a.keyframes`
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
`,I=C.default.div`
  animation: ${w} 2s infinite linear;
  will-change: transform;
`,F=C.default(h.Flex)`
  border: none;

  &[aria-disabled='true'] {
    pointer-events: none;
    svg path {
      fill: ${({theme:B})=>B.colors.neutral600};
    }
  }

  svg path {
    fill: ${({theme:B})=>B.colors.primary600};
  }

  ${c.buttonFocusStyle}
`,U=M.forwardRef(({children:B,startIcon:N,endIcon:D,onClick:x,disabled:T=!1,loading:u=!1,...b},E)=>{const A=x&&!T?x:void 0,R=T||u;return r.jsxs(F,{ref:E,"aria-disabled":R,onClick:A,as:"button",type:"button",background:"transparent",gap:2,...b,children:[u?r.jsx(I,{"aria-hidden":!0,children:r.jsx(s.Loader,{})}):N,r.jsx(p.Typography,{variant:"pi",textColor:R?"neutral600":"primary600",children:B}),D]})});U.displayName="TextButton",v.TextButton=U},38546:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(1179);v.TextButton=r.TextButton},70252:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(85893),n=t(67294),s=t(46449),a=t(73184),c=t(93251),h=t(24414),p=t(7480),d=t(60665),k=t(98365),M=t(4583),C=N=>N&&N.__esModule?N:{default:N};function w(N){if(N&&N.__esModule)return N;const D=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(N){for(const x in N)if(x!=="default"){const T=Object.getOwnPropertyDescriptor(N,x);Object.defineProperty(D,x,T.get?T:{enumerable:!0,get:()=>N[x]})}}return D.default=N,Object.freeze(D)}const I=w(n),U=C(s).default(d.Box)`
  /* z-index exist because of its position inside Modals */
  z-index: 4;
  display: ${({visible:N})=>N?"revert":"none"};
`,B=({children:N,label:D,description:x,delay:T=500,position:u="top",id:b,...E})=>{const A=h.useId(b),R=h.useId(),{visible:H,...z}=a.useTooltipHandlers(T),{tooltipWrapperRef:V,toggleSourceRef:$}=c.useTooltipLayout(H,u),ee=I.cloneElement(N,{tabIndex:0,"aria-labelledby":D?A:void 0,"aria-describedby":x?A:void 0,...z});return r.jsxs(r.Fragment,{children:[r.jsx(p.Portal,{children:r.jsxs(U,{id:A,background:"neutral900",hasRadius:!0,padding:2,role:"tooltip",ref:V,visible:H,position:"absolute",...E,children:[H&&r.jsx(k.VisuallyHidden,{id:R,children:x}),r.jsx(M.Typography,{as:"p",variant:"pi",fontWeight:"bold",textColor:"neutral0",children:D||x})]})}),r.jsx("span",{ref:$,children:ee})]})};v.Tooltip=B},73184:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(67294),n=s=>{const[a,c]=r.useState(!1),h=r.useRef(null),p=()=>{typeof h.current=="number"&&(clearTimeout(h.current),h.current=null)};return r.useEffect(()=>()=>{p()},[]),{visible:a,onFocus:()=>{c(!0)},onBlur:()=>{c(!1)},onMouseEnter:()=>{h.current=setTimeout(()=>{c(!0)},s)},onMouseLeave:()=>{p(),c(!1)}}};v.useTooltipHandlers=n},93251:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(67294),n=t(43293),s=(a,c)=>{const h=r.useRef(null),p=r.useRef(null);return r.useLayoutEffect(()=>{if(a){const d=h.current,k=p.current;if(d&&k){const M=n.positionTooltip(d,k,c);d.style.left=`${M.left}px`,d.style.top=`${M.top}px`}}},[c,a]),{tooltipWrapperRef:h,toggleSourceRef:p}};v.useTooltipLayout=s},43293:(Z,v)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const t=8,r=(h,p)=>{const d=(h.width-p.width)/2,k=p.left-d,M=p.top+p.height+t+window.pageYOffset;return{left:k,top:M}},n=(h,p)=>{const d=(h.height-p.height)/2,k=p.left+p.width+t,M=p.top-d+window.pageYOffset;return{left:k,top:M}},s=(h,p)=>{const d=(h.height-p.height)/2,k=p.left-h.width-t,M=p.top-d+window.pageYOffset;return{left:k,top:M}},a=(h,p)=>{const d=(h.width-p.width)/2;let k=p.left-d,M=p.top-h.height-t+window.pageYOffset;const C=window.innerWidth-p.right;return p.left+h.width-C>window.innerWidth?(k=p.left-h.width-t,M=p.top+window.scrollY-p.height/2):k<0?(k=p.width+p.left+t,M=p.top+window.scrollY-h.height/2+t):M<0&&k>0&&(M=p.top+p.height+t),{left:k,top:M}},c=(h,p,d)=>{const k=h.getBoundingClientRect(),M=p.getBoundingClientRect();return d==="bottom"?r(k,M):d==="right"?n(k,M):d==="left"?s(k,M):a(k,M)};v.positionTooltip=c},4583:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(46449),n=t(50933),s=t(60468),c=(d=>d&&d.__esModule?d:{default:d})(r),h={fontSize:!0,fontWeight:!0},p=c.default.span.withConfig({shouldForwardProp:(d,k)=>!h[d]&&k(d)})`
  ${n.variantStyle}
  ${n.ellipsisStyle}

  // These properties need to come after {variantStyle}, because they might
  // overwrite a variant attribute
  font-weight: ${({theme:d,fontWeight:k})=>s.extractStyleFromTheme(d.fontWeights,k,void 0)};
  font-size: ${({theme:d,fontSize:k})=>s.extractStyleFromTheme(d.fontSizes,k,void 0)};
  line-height: ${({theme:d,lineHeight:k})=>s.extractStyleFromTheme(d.lineHeights,k,k)};
  color: ${({theme:d,textColor:k})=>d.colors[k||"neutral800"]};
  text-align: ${({textAlign:d})=>d};
  text-decoration: ${({textDecoration:d})=>d};
  text-transform: ${({textTransform:d})=>d};
`;v.Typography=p},24866:(Z,v)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const t="alpha",r="beta",n="delta",s="epsilon",a="omega",c="pi",h="sigma",p=[t,r,n,s,a,c,h];v.ALPHA=t,v.BETA=r,v.DELTA=n,v.EPSILON=s,v.OMEGA=a,v.PI=c,v.SIGMA=h,v.TEXT_VARIANTS=p},84704:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(4583);v.Typography=r.Typography},50933:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(24866),n=({ellipsis:a=!1})=>a&&`
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  `,s=({variant:a=r.OMEGA,theme:c})=>{switch(a){case r.ALPHA:return`
        font-weight: ${c.fontWeights.bold};
        font-size: ${c.fontSizes[5]};
        line-height: ${c.lineHeights[2]};
      `;case r.BETA:return`
        font-weight: ${c.fontWeights.bold};
        font-size: ${c.fontSizes[4]};
        line-height: ${c.lineHeights[1]};
      `;case r.DELTA:return`
        font-weight: ${c.fontWeights.semiBold};
        font-size: ${c.fontSizes[3]};
        line-height: ${c.lineHeights[2]};
      `;case r.EPSILON:return`
        font-size: ${c.fontSizes[3]};
        line-height: ${c.lineHeights[6]};
      `;case r.OMEGA:return`
        font-size: ${c.fontSizes[2]};
        line-height: ${c.lineHeights[4]};
      `;case r.PI:return`
        font-size: ${c.fontSizes[1]};
        line-height: ${c.lineHeights[3]};
      `;case r.SIGMA:return`
        font-weight: ${c.fontWeights.bold};
        font-size: ${c.fontSizes[0]};
        line-height: ${c.lineHeights[5]};
        text-transform: uppercase;
      `;default:return`
        font-size: ${c.fontSizes[2]};
      `}};v.ellipsisStyle=n,v.variantStyle=s},98365:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(46449),a=(c=>c&&c.__esModule?c:{default:c})(r).default.div`
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
`;v.VisuallyHidden=a},15809:(Z,v)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const t=(n,s)=>[...n.querySelectorAll('a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])')].filter(h=>h.hasAttribute("disabled")?!1:s?!0:h.getAttribute("tabindex")!=="-1"),r=n=>n.filter(s=>s.tagName==="INPUT"?s.type!=="checkbox"&&s.type!=="radio":!1);v.getFocusableNodes=t,v.getFocusableNodesWithKeyboardNav=r},91554:Z=>{"use strict";const v=(t,r,n)=>{if(!r)return;let s=Array.isArray(r)?r:[];if(!Array.isArray(r)&&typeof r=="object"&&(s=[r?.desktop,r?.tablet,r?.mobile]),s.length>0)return s.reduce((h,p,d)=>{if(p)switch(d){case 0:return`${h}${t}: ${n.spaces[p]};`;case 1:return`${h}${n.mediaQueries.tablet}{${t}: ${n.spaces[p]};}`;case 2:return`${h}${n.mediaQueries.mobile}{${t}: ${n.spaces[p]};}`;default:return h}return h},"");const a=n.spaces[r]||r;return`${t}: ${a};`};Z.exports=v},13270:(Z,v)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const t={DOWN:"ArrowDown",UP:"ArrowUp",RIGHT:"ArrowRight",LEFT:"ArrowLeft",ESCAPE:"Escape",ENTER:"Enter",SPACE:" ",TAB:"Tab",END:"End",HOME:"Home",DELETE:"Delete",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",BACKSPACE:"Backspace",CLEAR:"Clear"};v.KeyboardKeys=t},79511:(Z,v)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});function t(n,s){return typeof n=="string"?!1:s in n}function r(n){return n&&typeof n=="object"&&!Array.isArray(n)}v.isKeyOf=t,v.isObject=r},60468:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(79511);function n(s,a,c){return a&&r.isKeyOf(s,a)?s[a]:c}v.extractStyleFromTheme=n},24414:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(67294),a=(p=>p&&p.__esModule?p:{default:p})(r).default["useId".toString()]||(()=>{});let c=0;const h=p=>{const[d,k]=r.useState(a());return r.useLayoutEffect(()=>{p||k(M=>M??String(c++))},[p]),p?.toString()??(d||"")};v.useId=h},8621:(Z,v,t)=>{"use strict";const r=t(67294),n=s=>{r.useEffect(()=>(s&&document.body.classList.add("lock-body-scroll"),()=>{document.body.classList.remove("lock-body-scroll")}),[s])};Z.exports=n},69186:(Z,v,t)=>{"use strict";Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});const r=t(46449),n=c=>({theme:h,size:p})=>h.sizes[c][p],s=(c="&")=>({theme:h,hasError:p=!1})=>r.css`
    outline: none;
    box-shadow: 0;
    transition-property: border-color, box-shadow, fill;
    transition-duration: 0.2s;

    ${c}:focus-within {
      border: 1px solid ${p?h.colors.danger600:h.colors.primary600};
      box-shadow: ${p?h.colors.danger600:h.colors.primary600} 0px 0px 0px 2px;
    }
  `,a=({theme:c})=>r.css`
  position: relative;
  outline: none;

  &:after {
    transition-property: all;
    transition-duration: 0.2s;
    border-radius: 8px;
    content: '';
    position: absolute;
    top: -4px;
    bottom: -4px;
    left: -4px;
    right: -4px;
    border: 2px solid transparent;
  }

  &:focus-visible {
    outline: none;
    &:after {
      border-radius: 8px;
      content: '';
      position: absolute;
      top: -5px;
      bottom: -5px;
      left: -5px;
      right: -5px;
      border: 2px solid ${c.colors.primary600};
    }
  }
`;v.buttonFocusStyle=a,v.getThemeSize=n,v.inputFocusStyle=s},98836:(Z,v,t)=>{"use strict";const r=t(85893),n=a=>r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:r.jsx("path",{fill:"#212134",d:"M0 10.7c0-.11.09-.2.2-.2h18.06l-8.239-8.239a.2.2 0 0 1 0-.282L11.86.14a.2.2 0 0 1 .282 0L23.86 11.86a.2.2 0 0 1 0 .282L12.14 23.86a.2.2 0 0 1-.282 0L10.02 22.02a.2.2 0 0 1 0-.282L18.26 13.5H.2a.2.2 0 0 1-.2-.2v-2.6Z"})}),s=n;Z.exports=s},24581:(Z,v,t)=>{"use strict";const r=t(85893),n=a=>r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 4 4",...a,children:r.jsx("rect",{width:4,height:4,fill:"#A5A5BA",rx:2})}),s=n;Z.exports=s},77292:(Z,v,t)=>{"use strict";const r=t(85893),n=a=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:[r.jsx("path",{fill:"#212134",d:"M15.2 12a3.2 3.2 0 1 1-6.399 0 3.2 3.2 0 0 1 6.4 0Z"}),r.jsx("path",{fill:"#212134",fillRule:"evenodd",d:"M18.78 6.103c1.923 1.243 3.64 2.981 4.963 5.027a1.61 1.61 0 0 1 .005 1.738c-1.318 2.063-3.031 3.807-4.954 5.046-2.12 1.364-4.475 2.086-6.81 2.086-2.388 0-4.683-.7-6.816-2.082-1.894-1.225-3.593-2.966-4.914-5.032a1.596 1.596 0 0 1 .032-1.777C1.89 8.811 3.734 7.027 5.77 5.805 7.767 4.608 9.858 4 11.984 4c2.317 0 4.667.728 6.795 2.103Zm-9.446 9.888a4.8 4.8 0 1 0 5.334-7.982 4.8 4.8 0 0 0-5.334 7.982Z",clipRule:"evenodd"})]}),s=n;Z.exports=s},78016:(Z,v,t)=>{"use strict";const r=t(85893),n=a=>r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:r.jsx("path",{fill:"#212134",d:"M12 0C5.383 0 0 5.383 0 12s5.383 12 12 12 12-5.383 12-12S18.617 0 12 0Zm0 4.92a1.56 1.56 0 1 1 0 3.12 1.56 1.56 0 0 1 0-3.12Zm3.84 13.06a.5.5 0 0 1-.5.5h-6.2a.5.5 0 0 1-.5-.5v-.92a.5.5 0 0 1 .5-.5h2.14v-5.28H9.86a.5.5 0 0 1-.5-.5v-.92a.5.5 0 0 1 .5-.5h2.84a.5.5 0 0 1 .5.5v6.7h2.14a.5.5 0 0 1 .5.5v.92Z"})}),s=n;Z.exports=s},54285:(Z,v,t)=>{"use strict";const r=t(85893),n=a=>r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:r.jsx("path",{fill:"#32324D",fillRule:"evenodd",d:"m23.813 20.163-5.3-5.367a9.792 9.792 0 0 0 1.312-4.867C19.825 4.455 15.375 0 9.913 0 4.45 0 0 4.455 0 9.929c0 5.473 4.45 9.928 9.912 9.928a9.757 9.757 0 0 0 5.007-1.4l5.275 5.35a.634.634 0 0 0 .913 0l2.706-2.737a.641.641 0 0 0 0-.907ZM9.91 3.867c3.338 0 6.05 2.718 6.05 6.061s-2.712 6.061-6.05 6.061c-3.337 0-6.05-2.718-6.05-6.06 0-3.344 2.713-6.062 6.05-6.062Z",clipRule:"evenodd"})}),s=n;Z.exports=s},59842:(Z,v,t)=>{var r={"./ar.json":[3377,9511],"./cs.json":[83515,2657],"./de.json":[55177,7155],"./dk.json":[50345,2246],"./en.json":[3225,931],"./es.json":[70771,8342],"./fr.json":[7478,8965],"./id.json":[23363,2151],"./it.json":[35816,1023],"./ja.json":[8390,8907],"./ko.json":[89642,2567],"./ms.json":[49280,3964],"./nl.json":[6019,1001],"./pl.json":[7611,3948],"./pt-BR.json":[31403,5906],"./pt.json":[2366,7934],"./ru.json":[91297,7186],"./sk.json":[17220,7997],"./sv.json":[58076,8329],"./th.json":[7759,742],"./tr.json":[41329,3304],"./uk.json":[76316,8573],"./zh-Hans.json":[14515,46],"./zh.json":[23651,4302]};function n(s){if(!t.o(r,s))return Promise.resolve().then(()=>{var h=new Error("Cannot find module '"+s+"'");throw h.code="MODULE_NOT_FOUND",h});var a=r[s],c=a[0];return t.e(a[1]).then(()=>t.t(c,19))}n.keys=()=>Object.keys(r),n.id=59842,Z.exports=n},10980:(Z,v,t)=>{var r={"./ar.json":[96551,2648],"./cs.json":[79892,744],"./de.json":[84288,96],"./dk.json":[42676,3825],"./en.json":[76113,2603],"./es.json":[10365,5751],"./fr.json":[49349,4693],"./id.json":[98472,7663],"./it.json":[46955,435],"./ja.json":[31617,8178],"./ko.json":[28119,1018],"./ms.json":[73559,6784],"./nl.json":[41215,3206],"./pl.json":[3957,8481],"./pt-BR.json":[58489,1157],"./pt.json":[18210,3166],"./ru.json":[52553,5388],"./sk.json":[43117,9412],"./th.json":[97264,4587],"./tr.json":[45442,2411],"./uk.json":[2961,6745],"./vi.json":[99862,7327],"./zh-Hans.json":[19354,3043],"./zh.json":[57005,6848]};function n(s){if(!t.o(r,s))return Promise.resolve().then(()=>{var h=new Error("Cannot find module '"+s+"'");throw h.code="MODULE_NOT_FOUND",h});var a=r[s],c=a[0];return t.e(a[1]).then(()=>t.t(c,19))}n.keys=()=>Object.keys(r),n.id=10980,Z.exports=n},18570:(Z,v,t)=>{var r={"./de.json":[19734,90],"./dk.json":[1177,5296],"./en.json":[17042,8175],"./es.json":[26715,129],"./fr.json":[92111,2137],"./ko.json":[30107,6280],"./pl.json":[50460,9366],"./ru.json":[18350,9737],"./tr.json":[33849,1180],"./zh-Hans.json":[91098,9762],"./zh.json":[88562,7808]};function n(s){if(!t.o(r,s))return Promise.resolve().then(()=>{var h=new Error("Cannot find module '"+s+"'");throw h.code="MODULE_NOT_FOUND",h});var a=r[s],c=a[0];return t.e(a[1]).then(()=>t.t(c,19))}n.keys=()=>Object.keys(r),n.id=18570,Z.exports=n},14326:(Z,v,t)=>{var r={"./en.json":[14765,4765],"./fr.json":[97556,7556],"./pt-BR.json":[44752,4752]};function n(s){if(!t.o(r,s))return Promise.resolve().then(()=>{var h=new Error("Cannot find module '"+s+"'");throw h.code="MODULE_NOT_FOUND",h});var a=r[s],c=a[0];return t.e(a[1]).then(()=>t.t(c,19))}n.keys=()=>Object.keys(r),n.id=14326,Z.exports=n},98143:(Z,v,t)=>{var r={"./ca.json":[4102,8423],"./de.json":[24167,4021],"./dk.json":[73076,7465],"./en.json":[28794,6434],"./es.json":[40674,1331],"./fr.json":[44388,7833],"./he.json":[83900,9797],"./it.json":[19816,5222],"./ja.json":[15342,5880],"./ko.json":[22620,2489],"./ms.json":[85391,1009],"./pl.json":[46471,4987],"./pt-BR.json":[79732,1375],"./pt.json":[44625,585],"./ru.json":[58517,4804],"./sk.json":[16120,3038],"./th.json":[58351,6232],"./tr.json":[5384,1056],"./uk.json":[96768,615],"./zh-Hans.json":[217,6831],"./zh.json":[82122,5053]};function n(s){if(!t.o(r,s))return Promise.resolve().then(()=>{var h=new Error("Cannot find module '"+s+"'");throw h.code="MODULE_NOT_FOUND",h});var a=r[s],c=a[0];return t.e(a[1]).then(()=>t.t(c,19))}n.keys=()=>Object.keys(r),n.id=98143,Z.exports=n},98795:(Z,v,t)=>{var r={"./ar.json":[21379,7094],"./cs.json":[4683,1442],"./de.json":[13863,2464],"./dk.json":[64046,6377],"./en.json":[63490,6460],"./es.json":[41914,7817],"./fr.json":[54357,3098],"./id.json":[44057,4179],"./it.json":[27359,9905],"./ja.json":[42157,9502],"./ko.json":[75266,1167],"./ms.json":[54366,9220],"./nl.json":[46284,7048],"./pl.json":[56735,3702],"./pt-BR.json":[22302,8736],"./pt.json":[17105,1930],"./ru.json":[95221,1674],"./sk.json":[35011,3095],"./sv.json":[72811,8467],"./th.json":[57891,7828],"./tr.json":[55297,2380],"./uk.json":[87113,6836],"./vi.json":[95814,3530],"./zh-Hans.json":[93131,2742],"./zh.json":[14598,5396]};function n(s){if(!t.o(r,s))return Promise.resolve().then(()=>{var h=new Error("Cannot find module '"+s+"'");throw h.code="MODULE_NOT_FOUND",h});var a=r[s],c=a[0];return t.e(a[1]).then(()=>t.t(c,19))}n.keys=()=>Object.keys(r),n.id=98795,Z.exports=n},23541:(Z,v,t)=>{"use strict";t.d(v,{Ry:()=>k});var r=function(I){if(typeof document>"u")return null;var F=Array.isArray(I)?I[0]:I;return F.ownerDocument.body},n=new WeakMap,s=new WeakMap,a={},c=0,h=function(I){return I&&(I.host||h(I.parentNode))},p=function(I,F){return F.map(function(U){if(I.contains(U))return U;var B=h(U);return B&&I.contains(B)?B:(console.error("aria-hidden",U,"in not contained inside",I,". Doing nothing"),null)}).filter(function(U){return Boolean(U)})},d=function(I,F,U,B){var N=p(F,Array.isArray(I)?I:[I]);a[U]||(a[U]=new WeakMap);var D=a[U],x=[],T=new Set,u=new Set(N),b=function(A){!A||T.has(A)||(T.add(A),b(A.parentNode))};N.forEach(b);var E=function(A){!A||u.has(A)||Array.prototype.forEach.call(A.children,function(R){if(T.has(R))E(R);else{var H=R.getAttribute(B),z=H!==null&&H!=="false",V=(n.get(R)||0)+1,$=(D.get(R)||0)+1;n.set(R,V),D.set(R,$),x.push(R),V===1&&z&&s.set(R,!0),$===1&&R.setAttribute(U,"true"),z||R.setAttribute(B,"true")}})};return E(F),T.clear(),c++,function(){x.forEach(function(A){var R=n.get(A)-1,H=D.get(A)-1;n.set(A,R),D.set(A,H),R||(s.has(A)||A.removeAttribute(B),s.delete(A)),H||A.removeAttribute(U)}),c--,c||(n=new WeakMap,n=new WeakMap,s=new WeakMap,a={})}},k=function(I,F,U){U===void 0&&(U="data-aria-hidden");var B=Array.from(Array.isArray(I)?I:[I]),N=F||r(I);return N?(B.push.apply(B,Array.from(N.querySelectorAll("[aria-live]"))),d(B,N,U,"aria-hidden")):function(){return null}},M=function(I,F,U){U===void 0&&(U="data-inert-ed");var B=F||r(I);return B?d(I,B,U,"inert"):function(){return null}},C=function(){return typeof HTMLElement<"u"&&HTMLElement.prototype.hasOwnProperty("inert")},w=function(I,F,U){return U===void 0&&(U="data-suppressed"),(C()?M:k)(I,F,U)}},93035:function(Z){(function(v,t){Z.exports=t()})(this,function(){"use strict";let v={};const t=new WeakMap;class r{constructor(a,c){c=Object.assign({units:"metric",precision:1},v,c),t.set(this,c);const h={metric:[{from:0,to:1e3,unit:"B",long:"bytes"},{from:1e3,to:1e6,unit:"kB",long:"kilobytes"},{from:1e6,to:1e9,unit:"MB",long:"megabytes"},{from:1e9,to:1e12,unit:"GB",long:"gigabytes"},{from:1e12,to:1e15,unit:"TB",long:"terabytes"},{from:1e15,to:1e18,unit:"PB",long:"petabytes"},{from:1e18,to:1e21,unit:"EB",long:"exabytes"},{from:1e21,to:1e24,unit:"ZB",long:"zettabytes"},{from:1e24,to:1e27,unit:"YB",long:"yottabytes"}],metric_octet:[{from:0,to:1e3,unit:"o",long:"octets"},{from:1e3,to:1e6,unit:"ko",long:"kilooctets"},{from:1e6,to:1e9,unit:"Mo",long:"megaoctets"},{from:1e9,to:1e12,unit:"Go",long:"gigaoctets"},{from:1e12,to:1e15,unit:"To",long:"teraoctets"},{from:1e15,to:1e18,unit:"Po",long:"petaoctets"},{from:1e18,to:1e21,unit:"Eo",long:"exaoctets"},{from:1e21,to:1e24,unit:"Zo",long:"zettaoctets"},{from:1e24,to:1e27,unit:"Yo",long:"yottaoctets"}],iec:[{from:0,to:Math.pow(1024,1),unit:"B",long:"bytes"},{from:Math.pow(1024,1),to:Math.pow(1024,2),unit:"KiB",long:"kibibytes"},{from:Math.pow(1024,2),to:Math.pow(1024,3),unit:"MiB",long:"mebibytes"},{from:Math.pow(1024,3),to:Math.pow(1024,4),unit:"GiB",long:"gibibytes"},{from:Math.pow(1024,4),to:Math.pow(1024,5),unit:"TiB",long:"tebibytes"},{from:Math.pow(1024,5),to:Math.pow(1024,6),unit:"PiB",long:"pebibytes"},{from:Math.pow(1024,6),to:Math.pow(1024,7),unit:"EiB",long:"exbibytes"},{from:Math.pow(1024,7),to:Math.pow(1024,8),unit:"ZiB",long:"zebibytes"},{from:Math.pow(1024,8),to:Math.pow(1024,9),unit:"YiB",long:"yobibytes"}],iec_octet:[{from:0,to:Math.pow(1024,1),unit:"o",long:"octets"},{from:Math.pow(1024,1),to:Math.pow(1024,2),unit:"Kio",long:"kibioctets"},{from:Math.pow(1024,2),to:Math.pow(1024,3),unit:"Mio",long:"mebioctets"},{from:Math.pow(1024,3),to:Math.pow(1024,4),unit:"Gio",long:"gibioctets"},{from:Math.pow(1024,4),to:Math.pow(1024,5),unit:"Tio",long:"tebioctets"},{from:Math.pow(1024,5),to:Math.pow(1024,6),unit:"Pio",long:"pebioctets"},{from:Math.pow(1024,6),to:Math.pow(1024,7),unit:"Eio",long:"exbioctets"},{from:Math.pow(1024,7),to:Math.pow(1024,8),unit:"Zio",long:"zebioctets"},{from:Math.pow(1024,8),to:Math.pow(1024,9),unit:"Yio",long:"yobioctets"}]};Object.assign(h,c.customUnits);const p=a<0?"-":"";a=Math.abs(a);const d=h[c.units];if(d){const k=d.find(M=>a>=M.from&&a<M.to);if(k){const M=k.from===0?p+a:p+(a/k.from).toFixed(c.precision);this.value=M,this.unit=k.unit,this.long=k.long}else this.value=p+a,this.unit="",this.long=""}else throw new Error(`Invalid units specified: ${c.units}`)}toString(){const a=t.get(this);return a.toStringFn?a.toStringFn.bind(this)():`${this.value} ${this.unit}`}}function n(s,a){return new r(s,a)}return n.defaultOptions=function(s){v=s},n})},21924:(Z,v,t)=>{"use strict";var r=t(40210),n=t(55559),s=n(r("String.prototype.indexOf"));Z.exports=function(c,h){var p=r(c,!!h);return typeof p=="function"&&s(c,".prototype.")>-1?n(p):p}},55559:(Z,v,t)=>{"use strict";var r=t(58612),n=t(40210),s=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),c=n("%Reflect.apply%",!0)||r.call(a,s),h=n("%Object.getOwnPropertyDescriptor%",!0),p=n("%Object.defineProperty%",!0),d=n("%Math.max%");if(p)try{p({},"a",{value:1})}catch{p=null}Z.exports=function(C){var w=c(r,a,arguments);if(h&&p){var I=h(w,"length");I.configurable&&p(w,"length",{value:1+d(0,C.length-(arguments.length-1))})}return w};var k=function(){return c(r,s,arguments)};p?p(Z.exports,"apply",{value:k}):Z.exports.apply=k},77868:(Z,v,t)=>{Z=t.nmd(Z),function(r){const n=r.en=r.en||{};n.dictionary=Object.assign(n.dictionary||{},{"%0 of %1":"%0 of %1",Aquamarine:"Aquamarine",Black:"Black",Blue:"Blue",Cancel:"Cancel","Cannot upload file:":"Cannot upload file:","Dim grey":"Dim grey","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Editor block content toolbar":"Editor block content toolbar","Editor contextual toolbar":"Editor contextual toolbar","Editor editing area: %0":"Editor editing area: %0","Editor toolbar":"Editor toolbar",Green:"Green",Grey:"Grey","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Next:"Next",Orange:"Orange","Press Enter to type after or press Shift + Enter to type before the widget":"Press Enter to type after or press Shift + Enter to type before the widget",Previous:"Previous",Purple:"Purple",Red:"Red",Redo:"Redo","Remove color":"Remove color","Restore default":"Restore default","Rich Text Editor":"Rich Text Editor","Rich Text Editor. Editing area: %0":"Rich Text Editor. Editing area: %0",Save:"Save","Select all":"Select all","Show more items":"Show more items",Turquoise:"Turquoise",Undo:"Undo","Upload in progress":"Upload in progress",White:"White","Widget toolbar":"Widget toolbar",Yellow:"Yellow"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),(()=>{var r={"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-clipboard/theme/clipboard.css":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/css-loader/dist/runtime/api.js"),k=p.n(d)()(function(C){return C[1]});k.push([c.id,'.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;pointer-events:none;position:relative}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);margin-left:-1px;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{border-color:var(--ck-clipboard-drop-target-color) transparent transparent transparent;border-style:solid;border-width:calc(var(--ck-clipboard-drop-target-dot-height)) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5);content:"";display:block;height:0;left:50%;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);transform:translateX(-50%);width:0}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}',""]);const M=k},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-engine/theme/placeholder.css":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/css-loader/dist/runtime/api.js"),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck .ck-placeholder,.ck.ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{content:attr(data-placeholder);left:0;pointer-events:none;position:absolute;right:0}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-reset_all .ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{color:var(--ck-color-engine-placeholder-text);cursor:text}",""]);const M=k},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-engine/theme/renderer.css":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/css-loader/dist/runtime/api.js"),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}",""]);const M=k},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/button/button.css":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/css-loader/dist/runtime/api.js"),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck.ck-button,a.ck.ck-button{align-items:center;display:inline-flex;justify-content:left;position:relative;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{-webkit-appearance:none;border:1px solid transparent;cursor:default;font-size:inherit;line-height:1;min-height:var(--ck-ui-component-min-height);min-width:var(--ck-ui-component-min-height);padding:var(--ck-spacing-tiny);text-align:center;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;vertical-align:middle;white-space:nowrap}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{color:inherit;cursor:inherit;font-size:inherit;font-weight:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:var(--ck-spacing-small);margin-right:calc(var(--ck-spacing-small)*-1)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{color:var(--ck-color-button-on-color)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}",""]);const M=k},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/button/switchbutton.css":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/css-loader/dist/runtime/api.js"),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:calc(1.07692em + 1px);--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2px);--ck-switch-button-inner-hover-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton,.ck.ck-button.ck-switchbutton.ck-on:active,.ck.ck-button.ck-switchbutton.ck-on:focus,.ck.ck-button.ck-switchbutton.ck-on:hover,.ck.ck-button.ck-switchbutton:active,.ck.ck-button.ck-switchbutton:focus,.ck.ck-button.ck-switchbutton:hover{background:transparent;color:inherit}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{background:var(--ck-color-switch-button-off-background);border:1px solid transparent;transition:background .4s ease,box-shadow .2s ease-in-out,outline .2s ease-in-out;width:var(--ck-switch-button-toggle-width)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{background:var(--ck-color-switch-button-inner-background);height:var(--ck-switch-button-toggle-inner-size);transition:all .3s ease;width:var(--ck-switch-button-toggle-inner-size)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:var(--ck-switch-button-inner-hover-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton:focus{border-color:transparent;box-shadow:none;outline:none}.ck.ck-button.ck-switchbutton:focus .ck-button__toggle{box-shadow:0 0 0 1px var(--ck-color-base-background),0 0 0 5px var(--ck-color-focus-outer-shadow);outline:var(--ck-focus-ring);outline-offset:1px}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var( --ck-switch-button-translation ))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var( --ck-switch-button-translation )*-1))}",""]);const M=k},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/colorgrid/colorgrid.css":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/css-loader/dist/runtime/api.js"),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#166fd4}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{border:0;height:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;width:var(--ck-color-grid-tile-size)}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-table__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile .ck.ck-icon{color:var(--ck-color-color-grid-check-icon);display:none}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}",""]);const M=k},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/dropdown/dropdown.css":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/css-loader/dist/runtime/api.js"),k=p.n(d)()(function(C){return C[1]});k.push([c.id,":root{--ck-dropdown-max-width:75vw}.ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-dropdown__panel{display:none;max-width:var(--ck-dropdown-max-width);position:absolute;z-index:var(--ck-z-modal)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{bottom:auto;top:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-modal) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{overflow:hidden;text-overflow:ellipsis;width:7em}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}",""]);const M=k},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/dropdown/listdropdown.css":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/css-loader/dist/runtime/api.js"),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}",""]);const M=k},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/dropdown/splitbutton.css":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/css-loader/dist/runtime/api.js"),k=p.n(d)()(function(C){return C[1]});k.push([c.id,'.ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-right-radius:unset;border-top-right-radius:unset}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-left-radius:unset;border-top-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-left-radius:unset;border-top-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-right-radius:unset;border-top-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton>.ck-splitbutton__arrow:not(:focus){border-bottom-width:0;border-top-width:0}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{background-color:var(--ck-color-split-button-hover-border);content:"";height:100%;position:absolute;width:1px}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:focus:after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:focus:after{--ck-color-split-button-hover-border:var(--ck-color-focus-border)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{left:-1px}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{right:-1px}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}',""]);const M=k},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/dropdown/toolbardropdown.css":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/css-loader/dist/runtime/api.js"),k=p.n(d)()(function(C){return C[1]});k.push([c.id,":root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{max-width:var(--ck-toolbar-dropdown-max-width);width:max-content}.ck.ck-toolbar-dropdown>.ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}",""]);const M=k},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/editorui/editorui.css":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/css-loader/dist/runtime/api.js"),k=p.n(d)()(function(C){return C[1]});k.push([c.id,":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable.ck-rounded-corners:not(.ck-editor__nested-editable){border-radius:var(--ck-border-radius)}.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck.ck-editor__editable_inline{border:1px solid transparent;overflow:auto;padding:0 var(--ck-spacing-standard)}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-base-foreground)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-base-foreground)}",""]);const M=k},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/formheader/formheader.css":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/css-loader/dist/runtime/api.js"),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck.ck-form__header{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}:root{--ck-form-header-height:38px}.ck.ck-form__header{border-bottom:1px solid var(--ck-color-base-border);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);padding:var(--ck-spacing-small) var(--ck-spacing-large)}.ck.ck-form__header .ck-form__header__label{font-weight:700}",""]);const M=k},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/icon/icon.css":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/css-loader/dist/runtime/api.js"),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{font-size:.8333350694em;height:var(--ck-icon-size);width:var(--ck-icon-size);will-change:transform}.ck.ck-icon,.ck.ck-icon *{cursor:inherit}.ck.ck-icon.ck-icon_inherit-color,.ck.ck-icon.ck-icon_inherit-color *{color:inherit}.ck.ck-icon.ck-icon_inherit-color :not([fill]){fill:currentColor}",""]);const M=k},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/input/input.css":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/css-loader/dist/runtime/api.js"),k=p.n(d)()(function(C){return C[1]});k.push([c.id,":root{--ck-input-width:18em;--ck-input-text-width:var(--ck-input-width)}.ck.ck-input{border-radius:0}.ck-rounded-corners .ck.ck-input,.ck.ck-input.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);min-height:var(--ck-ui-component-min-height);min-width:var(--ck-input-width);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}.ck.ck-input:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-input[readonly]{background:var(--ck-color-input-disabled-background);border:1px solid var(--ck-color-input-disabled-border);color:var(--ck-color-input-disabled-text)}.ck.ck-input[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input.ck-error{animation:ck-input-shake .3s ease both;border-color:var(--ck-color-input-error-border)}.ck.ck-input.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}",""]);const M=k},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/label/label.css":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/css-loader/dist/runtime/api.js"),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}",""]);const M=k},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/css-loader/dist/runtime/api.js"),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-labeled-field-label-default-position-x:var(--ck-spacing-medium);--ck-labeled-field-label-default-position-y:calc(var(--ck-font-size-base)*0.6);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{top:0}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:var(--ck-color-labeled-field-label-background);font-weight:400;line-height:normal;max-width:100%;overflow:hidden;padding:0 calc(var(--ck-font-size-tiny)*.5);pointer-events:none;text-overflow:ellipsis;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);transform-origin:0 0;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-labeled-field-label-default-position-x),var(--ck-labeled-field-label-default-position-y)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-labeled-field-label-default-position-x)*-1),var(--ck-labeled-field-label-default-position-y)) scale(1)}.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:transparent;max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}",""]);const M=k},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/list/list.css":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/css-loader/dist/runtime/api.js"),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck.ck-list{display:flex;flex-direction:column;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{background:var(--ck-color-list-background);list-style-type:none}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{border-radius:0;min-height:unset;padding:calc(var(--ck-line-height-base)*.2*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*.4*var(--ck-font-size-base));text-align:left;width:100%}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(var(--ck-line-height-base)*1.2*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-switchbutton):not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck.ck-list__separator{background:var(--ck-color-base-border);height:1px;width:100%}",""]);const M=k},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/panel/balloonpanel.css":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/css-loader/dist/runtime/api.js"),k=p.n(d)()(function(C){return C[1]});k.push([c.id,':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-border-width:1px;--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{background:var(--ck-color-panel-background);border:var(--ck-balloon-border-width) solid var(--ck-color-panel-border);box-shadow:var(--ck-drop-shadow),0 0;min-height:15px}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{border-style:solid;height:0;width:0}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-width:0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_n]:before{border-color:transparent transparent var(--ck-color-panel-border) transparent;margin-top:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_n]:after{border-color:transparent transparent var(--ck-color-panel-background) transparent;margin-top:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-width:var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-color:var(--ck-color-panel-border) transparent transparent;filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow));margin-bottom:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_s]:after{border-color:var(--ck-color-panel-background) transparent transparent transparent;margin-bottom:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_e]:after,.ck.ck-balloon-panel[class*=arrow_e]:before{border-width:var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_e]:before{border-color:transparent transparent transparent var(--ck-color-panel-border);margin-right:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_e]:after{border-color:transparent transparent transparent var(--ck-color-panel-background);margin-right:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_w]:after,.ck.ck-balloon-panel[class*=arrow_w]:before{border-width:var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0}.ck.ck-balloon-panel[class*=arrow_w]:before{border-color:transparent var(--ck-color-panel-border) transparent transparent;margin-left:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_w]:after{border-color:transparent var(--ck-color-panel-background) transparent transparent;margin-left:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);right:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%;top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:before{margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);right:calc(var(--ck-balloon-arrow-height)*-1);top:50%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:before{left:calc(var(--ck-balloon-arrow-height)*-1);margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);top:50%}',""]);const M=k},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/panel/balloonrotator.css":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/css-loader/dist/runtime/api.js"),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck .ck-balloon-rotator__navigation{align-items:center;display:flex;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-left:var(--ck-spacing-small);margin-right:var(--ck-spacing-standard)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}",""]);const M=k},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/panel/fakepanel.css":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/css-loader/dist/runtime/api.js"),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);box-shadow:var(--ck-drop-shadow),0 0;height:100%;min-height:15px;width:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}",""]);const M=k},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/panel/stickypanel.css":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/css-loader/dist/runtime/api.js"),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{position:fixed;top:0;z-index:var(--ck-z-modal)}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{position:absolute;top:auto}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{border-top-left-radius:0;border-top-right-radius:0;border-width:0 1px 1px;box-shadow:var(--ck-drop-shadow),0 0}",""]);const M=k},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/toolbar/blocktoolbar.css":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/css-loader/dist/runtime/api.js"),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck.ck-block-toolbar-button{position:absolute;z-index:var(--ck-z-default)}:root{--ck-color-block-toolbar-button:var(--ck-color-text);--ck-block-toolbar-button-size:var(--ck-font-size-normal)}.ck.ck-block-toolbar-button{color:var(--ck-color-block-toolbar-button);font-size:var(--ck-block-toolbar-size)}",""]);const M=k},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/toolbar/toolbar.css":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/css-loader/dist/runtime/api.js"),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck.ck-toolbar{align-items:center;display:flex;flex-flow:row nowrap;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-toolbar>.ck-toolbar__items{align-items:center;display:flex;flex-flow:row wrap;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar .ck-toolbar__line-break{flex-basis:100%}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);border:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;background:var(--ck-color-toolbar-border);margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);min-width:1px;width:1px}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{border-radius:0;margin:0;width:100%}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-dropdown__panel{min-width:auto}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-button>.ck-button__label{max-width:7em;width:auto}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=rtl]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=ltr]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}",""]);const M=k},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/tooltip/tooltip.css":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/css-loader/dist/runtime/api.js"),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck.ck-balloon-panel.ck-tooltip{--ck-balloon-border-width:0px;--ck-balloon-arrow-offset:0px;--ck-balloon-arrow-half-width:4px;--ck-balloon-arrow-height:4px;--ck-color-panel-background:var(--ck-color-tooltip-background);padding:0 var(--ck-spacing-medium);pointer-events:none;z-index:calc(var(--ck-z-modal) + 100)}.ck.ck-balloon-panel.ck-tooltip .ck-tooltip__text{color:var(--ck-color-tooltip-text);font-size:.9em;line-height:1.5}.ck.ck-balloon-panel.ck-tooltip{box-shadow:none}.ck.ck-balloon-panel.ck-tooltip:before{display:none}",""]);const M=k},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/globals/globals.css":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/css-loader/dist/runtime/api.js"),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck-hidden{display:none!important}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{box-sizing:border-box;height:auto;position:static;width:auto}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999)}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#ccced1;--ck-color-base-action:#53a336;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#2977ff;--ck-color-base-active-focus:#0d65ff;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:218,81.8%,56.9%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#cae1fc;--ck-color-focus-disabled-shadow:rgba(119,186,248,.3);--ck-color-focus-error-shadow:rgba(255,64,31,.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,.15);--ck-color-shadow-drop-active:rgba(0,0,0,.2);--ck-color-shadow-inner:rgba(0,0,0,.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#f0f0f0;--ck-color-button-default-active-background:#f0f0f0;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#f0f7ff;--ck-color-button-on-hover-background:#dbecff;--ck-color-button-on-active-background:#dbecff;--ck-color-button-on-disabled-background:#f0f2f4;--ck-color-button-on-color:#2977ff;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#4d9d30;--ck-color-button-action-active-background:#4d9d30;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#939393;--ck-color-switch-button-off-hover-background:#7d7d7d;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#4d9d30;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:var(--ck-color-base-border);--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:var(--ck-color-base-border);--ck-color-input-disabled-text:#757575;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-button-on-color);--ck-color-list-button-on-background-focus:var(--ck-color-button-on-color);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-background);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,176,255,.1);--ck-color-link-fake-selection:rgba(31,176,255,.3);--ck-color-highlight-background:#ff0;--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{word-wrap:break-word;background:transparent;border:0;margin:0;padding:0;text-decoration:none;transition:none;vertical-align:middle}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset_all{border-collapse:collapse;color:var(--ck-color-text);cursor:auto;float:none;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);text-align:left;white-space:nowrap}.ck-reset_all .ck-rtl :not(.ck-reset_all-excluded *){text-align:right}.ck-reset_all iframe:not(.ck-reset_all-excluded *){vertical-align:inherit}.ck-reset_all textarea:not(.ck-reset_all-excluded *){white-space:pre-wrap}.ck-reset_all input[type=password]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text]:not(.ck-reset_all-excluded *),.ck-reset_all textarea:not(.ck-reset_all-excluded *){cursor:text}.ck-reset_all input[type=password][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all textarea[disabled]:not(.ck-reset_all-excluded *){cursor:default}.ck-reset_all fieldset:not(.ck-reset_all-excluded *){border:2px groove #dfdee3;padding:10px}.ck-reset_all button:not(.ck-reset_all-excluded *)::-moz-focus-inner{border:0;padding:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}",""]);const M=k},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-widget/theme/widget.css":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/css-loader/dist/runtime/api.js"),k=p.n(d)()(function(C){return C[1]});k.push([c.id,":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px;--ck-resizer-tooltip-height:calc(var(--ck-spacing-small)*2 + 10px)}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);color:var(--ck-color-resizer-tooltip-text);display:block;font-size:var(--ck-font-size-tiny);height:var(--ck-resizer-tooltip-height);line-height:var(--ck-resizer-tooltip-height);padding:0 var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-above-center,.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{left:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{right:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-above-center{left:50%;top:calc(var(--ck-resizer-tooltip-height)*-1);transform:translate(-50%)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-color:transparent;outline-style:solid;outline-width:var(--ck-widget-outline-thickness);transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{background-color:var(--ck-color-widget-editable-focus-background);border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{background-color:transparent;border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;box-sizing:border-box;left:calc(0px - var(--ck-widget-outline-thickness));opacity:0;padding:4px;top:0;transform:translateY(-100%);transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{color:var(--ck-color-widget-drag-handler-icon-color);height:var(--ck-widget-handler-icon-size);width:var(--ck-widget-handler-icon-size)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{background-color:var(--ck-color-widget-hover-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{background-color:var(--ck-color-focus-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}",""]);const M=k},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-widget/theme/widgetresize.css":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/css-loader/dist/runtime/api.js"),k=p.n(d)()(function(C){return C[1]});k.push([c.id,".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;left:0;pointer-events:none;position:absolute;top:0}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{pointer-events:all;position:absolute}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{cursor:nesw-resize}:root{--ck-resizer-size:10px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-border-width:1px}.ck .ck-widget__resizer{outline:1px solid var(--ck-color-resizer)}.ck .ck-widget__resizer__handle{background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius);height:var(--ck-resizer-size);width:var(--ck-resizer-size)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{left:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{right:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}",""]);const M=k},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-widget/theme/widgettypearound.css":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/css-loader/dist/runtime/api.js"),k=p.n(d)()(function(C){return C[1]});k.push([c.id,'.ck .ck-widget .ck-widget__type-around__button{display:block;overflow:hidden;position:absolute;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{left:50%;position:absolute;top:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{left:min(10%,30px);top:calc(var(--ck-widget-outline-thickness)*-.5);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;left:1px;position:absolute;top:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;left:0;position:absolute;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:block;top:calc(var(--ck-widget-outline-thickness)*-1 - 1px)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button);border-radius:100px;height:var(--ck-widget-type-around-button-size);opacity:0;pointer-events:none;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);width:var(--ck-widget-type-around-button-size)}.ck .ck-widget .ck-widget__type-around__button svg{height:8px;margin-top:1px;transform:translate(-50%,-50%);transition:transform .5s ease;width:10px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3));border-radius:100px;height:calc(var(--ck-widget-type-around-button-size) - 2px);width:calc(var(--ck-widget-type-around-button-size) - 2px)}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;background:var(--ck-color-base-text);height:1px;outline:1px solid hsla(0,0%,100%,.5);pointer-events:none}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}',""]);const M=k},"./node_modules/css-loader/dist/runtime/api.js":c=>{"use strict";c.exports=function(h){var p=[];return p.toString=function(){return this.map(function(d){var k=h(d);return d[2]?"@media ".concat(d[2]," {").concat(k,"}"):k}).join("")},p.i=function(d,k,M){typeof d=="string"&&(d=[[null,d,""]]);var C={};if(M)for(var w=0;w<this.length;w++){var I=this[w][0];I!=null&&(C[I]=!0)}for(var F=0;F<d.length;F++){var U=[].concat(d[F]);M&&C[U[0]]||(k&&(U[2]?U[2]="".concat(k," and ").concat(U[2]):U[2]=k),p.push(U))}},p}},"./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":(c,h,p)=>{"use strict";var d,k=function(){return d===void 0&&(d=Boolean(window&&document&&document.all&&!window.atob)),d},M=function(){var b={};return function(E){if(b[E]===void 0){var A=document.querySelector(E);if(window.HTMLIFrameElement&&A instanceof window.HTMLIFrameElement)try{A=A.contentDocument.head}catch{A=null}b[E]=A}return b[E]}}(),C=[];function w(b){for(var E=-1,A=0;A<C.length;A++)if(C[A].identifier===b){E=A;break}return E}function I(b,E){for(var A={},R=[],H=0;H<b.length;H++){var z=b[H],V=E.base?z[0]+E.base:z[0],$=A[V]||0,ee="".concat(V," ").concat($);A[V]=$+1;var q=w(ee),oe={css:z[1],media:z[2],sourceMap:z[3]};q!==-1?(C[q].references++,C[q].updater(oe)):C.push({identifier:ee,updater:u(oe,E),references:1}),R.push(ee)}return R}function F(b){var E=document.createElement("style"),A=b.attributes||{};if(A.nonce===void 0){var R=p.nc;R&&(A.nonce=R)}if(Object.keys(A).forEach(function(z){E.setAttribute(z,A[z])}),typeof b.insert=="function")b.insert(E);else{var H=M(b.insert||"head");if(!H)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");H.appendChild(E)}return E}var U,B=(U=[],function(b,E){return U[b]=E,U.filter(Boolean).join(`
`)});function N(b,E,A,R){var H=A?"":R.media?"@media ".concat(R.media," {").concat(R.css,"}"):R.css;if(b.styleSheet)b.styleSheet.cssText=B(E,H);else{var z=document.createTextNode(H),V=b.childNodes;V[E]&&b.removeChild(V[E]),V.length?b.insertBefore(z,V[E]):b.appendChild(z)}}function D(b,E,A){var R=A.css,H=A.media,z=A.sourceMap;if(H?b.setAttribute("media",H):b.removeAttribute("media"),z&&typeof btoa<"u"&&(R+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(z))))," */")),b.styleSheet)b.styleSheet.cssText=R;else{for(;b.firstChild;)b.removeChild(b.firstChild);b.appendChild(document.createTextNode(R))}}var x=null,T=0;function u(b,E){var A,R,H;if(E.singleton){var z=T++;A=x||(x=F(E)),R=N.bind(null,A,z,!1),H=N.bind(null,A,z,!0)}else A=F(E),R=D.bind(null,A,E),H=function(){(function(V){if(V.parentNode===null)return!1;V.parentNode.removeChild(V)})(A)};return R(b),function(V){if(V){if(V.css===b.css&&V.media===b.media&&V.sourceMap===b.sourceMap)return;R(b=V)}else H()}}c.exports=function(b,E){(E=E||{}).singleton||typeof E.singleton=="boolean"||(E.singleton=k());var A=I(b=b||[],E);return function(R){if(R=R||[],Object.prototype.toString.call(R)==="[object Array]"){for(var H=0;H<A.length;H++){var z=w(A[H]);C[z].references--}for(var V=I(R,E),$=0;$<A.length;$++){var ee=w(A[$]);C[ee].references===0&&(C[ee].updater(),C.splice(ee,1))}A=V}}}},"./packages/ckeditor5-core/src/index.ts":(c,h,p)=>{"use strict";p.d(h,{mY:()=>C,_y:()=>U,eO:()=>B,W9:()=>E,ML:()=>T,xK:()=>A,AJ:()=>I,lR:()=>H,Sy:()=>k,P$:()=>b,ci:()=>z,Nu:()=>R});var d=p("./packages/ckeditor5-utils/src/index.ts");class k extends(0,d.Re)(){constructor($){super(),this.editor=$,this.set("isEnabled",!0),this._disableStack=new Set}forceDisabled($){this._disableStack.add($),this._disableStack.size==1&&(this.on("set:isEnabled",M,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled($){this._disableStack.delete($),this._disableStack.size==0&&(this.off("set:isEnabled",M),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function M(V){V.return=!1,V.stop()}class C extends(0,d.Re)(){constructor($){super(),this.editor=$,this.set("value",void 0),this.set("isEnabled",!1),this._affectsData=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",()=>{this.refresh()}),this.on("execute",ee=>{this.isEnabled||ee.stop()},{priority:"high"}),this.listenTo($,"change:isReadOnly",(ee,q,oe)=>{oe&&this.affectsData?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")})}get affectsData(){return this._affectsData}set affectsData($){this._affectsData=$}refresh(){this.isEnabled=!0}forceDisabled($){this._disableStack.add($),this._disableStack.size==1&&(this.on("set:isEnabled",w,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled($){this._disableStack.delete($),this._disableStack.size==0&&(this.off("set:isEnabled",w),this.refresh())}execute(...$){}destroy(){this.stopListening()}}function w(V){V.return=!1,V.stop()}class I extends C{constructor($){super($),this._childCommandsDefinitions=[]}refresh(){}execute(...$){const ee=this._getFirstEnabledCommand();return!!ee&&ee.execute($)}registerChildCommand($,ee={}){(0,d.VG)(this._childCommandsDefinitions,{command:$,priority:ee.priority||"normal"}),$.on("change:isEnabled",()=>this._checkEnabled()),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){const $=this._childCommandsDefinitions.find(({command:ee})=>ee.isEnabled);return $&&$.command}}class F extends(0,d.ln)(){constructor($,ee=[],q=[]){super(),this._context=$,this._plugins=new Map,this._availablePlugins=new Map;for(const oe of ee)oe.pluginName&&this._availablePlugins.set(oe.pluginName,oe);this._contextPlugins=new Map;for(const[oe,X]of q)this._contextPlugins.set(oe,X),this._contextPlugins.set(X,oe),oe.pluginName&&this._availablePlugins.set(oe.pluginName,oe)}*[Symbol.iterator](){for(const $ of this._plugins)typeof $[0]=="function"&&(yield $)}get($){const ee=this._plugins.get($);if(!ee){let q=$;throw typeof $=="function"&&(q=$.pluginName||$.name),new d.Bb("plugincollection-plugin-not-loaded",this._context,{plugin:q})}return ee}has($){return this._plugins.has($)}init($,ee=[],q=[]){const oe=this,X=this._context;(function Ce(Ne,Ye=new Set){Ne.forEach(mt=>{se(mt)&&(Ye.has(mt)||(Ye.add(mt),mt.pluginName&&!oe._availablePlugins.has(mt.pluginName)&&oe._availablePlugins.set(mt.pluginName,mt),mt.requires&&Ce(mt.requires,Ye)))})})($),we($);const pe=[...function Ce(Ne,Ye=new Set){return Ne.map(mt=>se(mt)?mt:oe._availablePlugins.get(mt)).reduce((mt,Ct)=>Ye.has(Ct)?mt:(Ye.add(Ct),Ct.requires&&(we(Ct.requires,Ct),Ce(Ct.requires,Ye).forEach(ln=>mt.add(ln))),mt.add(Ct)),new Set)}($.filter(Ce=>!fe(Ce,ee)))];(function(Ce,Ne){for(const Ye of Ne){if(typeof Ye!="function")throw new d.Bb("plugincollection-replace-plugin-invalid-type",null,{pluginItem:Ye});const mt=Ye.pluginName;if(!mt)throw new d.Bb("plugincollection-replace-plugin-missing-name",null,{pluginItem:Ye});if(Ye.requires&&Ye.requires.length)throw new d.Bb("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:mt});const Ct=oe._availablePlugins.get(mt);if(!Ct)throw new d.Bb("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:mt});const ln=Ce.indexOf(Ct);if(ln===-1){if(oe._contextPlugins.has(Ct))return;throw new d.Bb("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:mt})}if(Ct.requires&&Ct.requires.length)throw new d.Bb("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:mt});Ce.splice(ln,1,Ye),oe._availablePlugins.set(mt,Ye)}})(pe,q);const Ie=function(Ce){return Ce.map(Ne=>{let Ye=oe._contextPlugins.get(Ne);return Ye=Ye||new Ne(X),oe._add(Ne,Ye),Ye})}(pe);return Me(Ie,"init").then(()=>Me(Ie,"afterInit")).then(()=>Ie);function se(Ce){return typeof Ce=="function"}function be(Ce){return se(Ce)&&Ce.isContextPlugin}function fe(Ce,Ne){return Ne.some(Ye=>Ye===Ce||ue(Ce)===Ye||ue(Ye)===Ce)}function ue(Ce){return se(Ce)?Ce.pluginName||Ce.name:Ce}function we(Ce,Ne=null){Ce.map(Ye=>se(Ye)?Ye:oe._availablePlugins.get(Ye)||Ye).forEach(Ye=>{(function(mt,Ct){if(!se(mt))throw Ct?new d.Bb("plugincollection-soft-required",X,{missingPlugin:mt,requiredBy:ue(Ct)}):new d.Bb("plugincollection-plugin-not-found",X,{plugin:mt})})(Ye,Ne),function(mt,Ct){if(be(Ct)&&!be(mt))throw new d.Bb("plugincollection-context-required",X,{plugin:ue(mt),requiredBy:ue(Ct)})}(Ye,Ne),function(mt,Ct){if(Ct&&fe(mt,ee))throw new d.Bb("plugincollection-required",X,{plugin:ue(mt),requiredBy:ue(Ct)})}(Ye,Ne)})}function Me(Ce,Ne){return Ce.reduce((Ye,mt)=>mt[Ne]?oe._contextPlugins.has(mt)?Ye:Ye.then(mt[Ne].bind(mt)):Ye,Promise.resolve())}}destroy(){const $=[];for(const[,ee]of this)typeof ee.destroy!="function"||this._contextPlugins.has(ee)||$.push(ee.destroy());return Promise.all($)}_add($,ee){this._plugins.set($,ee);const q=$.pluginName;if(q){if(this._plugins.has(q))throw new d.Bb("plugincollection-plugin-name-conflict",null,{pluginName:q,plugin1:this._plugins.get(q).constructor,plugin2:$});this._plugins.set(q,ee)}}}class U{constructor($){this.config=new d.De($,this.constructor.defaultConfig);const ee=this.constructor.builtinPlugins;this.config.define("plugins",ee),this.plugins=new F(this,ee);const q=this.config.get("language")||{};this.locale=new d.go({uiLanguage:typeof q=="string"?q:q.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new d.FE,this._contextOwner=null}initPlugins(){const $=this.config.get("plugins")||[],ee=this.config.get("substitutePlugins")||[];for(const q of $.concat(ee)){if(typeof q!="function")throw new d.Bb("context-initplugins-constructor-only",null,{Plugin:q});if(q.isContextPlugin!==!0)throw new d.Bb("context-initplugins-invalid-plugin",null,{Plugin:q})}return this.plugins.init($,[],ee)}destroy(){return Promise.all(Array.from(this.editors,$=>$.destroy())).then(()=>this.plugins.destroy())}_addEditor($,ee){if(this._contextOwner)throw new d.Bb("context-addeditor-private-context");this.editors.add($),ee&&(this._contextOwner=$)}_removeEditor($){return this.editors.has($)&&this.editors.remove($),this._contextOwner===$?this.destroy():Promise.resolve()}_getEditorConfig(){const $={};for(const ee of this.config.names())["plugins","removePlugins","extraPlugins"].includes(ee)||($[ee]=this.config.get(ee));return $}static create($){return new Promise(ee=>{const q=new this($);ee(q.initPlugins().then(()=>q))})}}class B extends(0,d.Re)(){constructor($){super(),this.context=$}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}var N=p("./packages/ckeditor5-engine/src/index.ts");class D{constructor(){this._commands=new Map}add($,ee){this._commands.set($,ee)}get($){return this._commands.get($)}execute($,...ee){const q=this.get($);if(!q)throw new d.Bb("commandcollection-command-not-found",this,{commandName:$});return q.execute(...ee)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const $ of this.commands())$.destroy()}}class x extends d.VD{constructor($){super(),this.editor=$}set($,ee,q={}){if(typeof ee=="string"){const oe=ee;ee=(X,pe)=>{this.editor.execute(oe),pe()}}super.set($,ee,q)}}class T extends(0,d.Re)(){constructor($={}){super();const ee=this.constructor,q=$.language||ee.defaultConfig&&ee.defaultConfig.language;this._context=$.context||new U({language:q}),this._context._addEditor(this,!$.context);const oe=Array.from(ee.builtinPlugins||[]);this.config=new d.De($,ee.defaultConfig),this.config.define("plugins",oe),this.config.define(this._context._getEditorConfig()),this.plugins=new F(this,oe,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new D,this.set("state","initializing"),this.once("ready",()=>this.state="ready",{priority:"high"}),this.once("destroy",()=>this.state="destroyed",{priority:"high"}),this.model=new N.Hn;const X=new N.A_;this.data=new N.Yc(this.model,X),this.editing=new N.jH(this.model,X),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new N.uz([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new x(this),this.keystrokes.listenTo(this.editing.view.document)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly($){throw new d.Bb("editor-isreadonly-has-no-setter")}enableReadOnlyMode($){if(typeof $!="string"&&typeof $!="symbol")throw new d.Bb("editor-read-only-lock-id-invalid",null,{lockId:$});this._readOnlyLocks.has($)||(this._readOnlyLocks.add($),this._readOnlyLocks.size===1&&this.fire("change:isReadOnly","isReadOnly",!0,!1))}disableReadOnlyMode($){if(typeof $!="string"&&typeof $!="symbol")throw new d.Bb("editor-read-only-lock-id-invalid",null,{lockId:$});this._readOnlyLocks.has($)&&(this._readOnlyLocks.delete($),this._readOnlyLocks.size===0&&this.fire("change:isReadOnly","isReadOnly",!1,!0))}initPlugins(){const $=this.config,ee=$.get("plugins"),q=$.get("removePlugins")||[],oe=$.get("extraPlugins")||[],X=$.get("substitutePlugins")||[];return this.plugins.init(ee.concat(oe),q,X)}destroy(){let $=Promise.resolve();return this.state=="initializing"&&($=new Promise(ee=>this.once("ready",ee))),$.then(()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()}).then(()=>this.plugins.destroy()).then(()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()}).then(()=>this._context._removeEditor(this))}execute($,...ee){try{return this.commands.execute($,...ee)}catch(q){d.Bb.rethrowUnexpectedError(q,this)}}focus(){this.editing.view.focus()}}var u=p("./node_modules/lodash-es/isFunction.js");function b(V){if(!(0,u.Z)(V.updateSourceElement))throw new d.Bb("attachtoform-missing-elementapi-interface",V);const $=V.sourceElement;if(function(ee){return!!ee&&ee.tagName.toLowerCase()==="textarea"}($)&&$.form){let ee;const q=$.form,oe=()=>V.updateSourceElement();(0,u.Z)(q.submit)&&(ee=q.submit,q.submit=()=>{oe(),ee.apply(q)}),q.addEventListener("submit",oe),V.on("destroy",()=>{q.removeEventListener("submit",oe),ee&&(q.submit=ee)})}}function E(V){return class extends V{setData($){this.data.set($)}getData($){return this.data.get($)}}}{const V=E(Object);E.setData=V.prototype.setData,E.getData=V.prototype.getData}function A(V){return class extends V{updateSourceElement($=this.data.get()){if(!this.sourceElement)throw new d.Bb("editor-missing-sourceelement",this);const ee=this.config.get("updateSourceElementOnDestroy"),q=this.sourceElement instanceof HTMLTextAreaElement;ee||q?(0,d.jS)(this.sourceElement,$):(0,d.jS)(this.sourceElement,"")}}}function R(V){const $=V.sourceElement;if($){if($.ckeditorInstance)throw new d.Bb("editor-source-element-already-used",V);$.ckeditorInstance=V,V.once("destroy",()=>{delete $.ckeditorInstance})}}A.updateSourceElement=A(Object).prototype.updateSourceElement;class H extends B{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new d.FE({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add($){if(typeof $!="string")throw new d.Bb("pendingactions-add-invalid-message",this);const ee=new((0,d.Re)());return ee.set("message",$),this._actions.add(ee),this.hasAny=!0,ee}remove($){this._actions.remove($),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}const z={bold:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.187 17H5.773c-.637 0-1.092-.138-1.364-.415-.273-.277-.409-.718-.409-1.323V4.738c0-.617.14-1.062.419-1.332.279-.27.73-.406 1.354-.406h4.68c.69 0 1.288.041 1.793.124.506.083.96.242 1.36.478.341.197.644.447.906.75a3.262 3.262 0 0 1 .808 2.162c0 1.401-.722 2.426-2.167 3.075C15.05 10.175 16 11.315 16 13.01a3.756 3.756 0 0 1-2.296 3.504 6.1 6.1 0 0 1-1.517.377c-.571.073-1.238.11-2 .11zm-.217-6.217H7v4.087h3.069c1.977 0 2.965-.69 2.965-2.072 0-.707-.256-1.22-.768-1.537-.512-.319-1.277-.478-2.296-.478zM7 5.13v3.619h2.606c.729 0 1.292-.067 1.69-.2a1.6 1.6 0 0 0 .91-.765c.165-.267.247-.566.247-.897 0-.707-.26-1.176-.778-1.409-.519-.232-1.31-.348-2.375-.348H7z"/></svg>',cancel:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.591 10.177 4.243 4.242a1 1 0 0 1-1.415 1.415l-4.242-4.243-4.243 4.243a1 1 0 0 1-1.414-1.415l4.243-4.242L4.52 5.934A1 1 0 0 1 5.934 4.52l4.243 4.243 4.242-4.243a1 1 0 1 1 1.415 1.414l-4.243 4.243z"/></svg>',caption:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 16h9a1 1 0 0 1 0 2H2a1 1 0 0 1 0-2z"/><path d="M17 1a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14zm0 1.5H3a.5.5 0 0 0-.492.41L2.5 3v9a.5.5 0 0 0 .41.492L3 12.5h14a.5.5 0 0 0 .492-.41L17.5 12V3a.5.5 0 0 0-.41-.492L17 2.5z" fill-opacity=".6"/></svg>',check:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.972 16.615a.997.997 0 0 1-.744-.292l-4.596-4.596a1 1 0 1 1 1.414-1.414l3.926 3.926 9.937-9.937a1 1 0 0 1 1.414 1.415L7.717 16.323a.997.997 0 0 1-.745.292z"/></svg>',cog:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.333 2 .19 2.263a5.899 5.899 0 0 1 1.458.604L14.714 3.4 16.6 5.286l-1.467 1.733c.263.452.468.942.605 1.46L18 8.666v2.666l-2.263.19a5.899 5.899 0 0 1-.604 1.458l1.467 1.733-1.886 1.886-1.733-1.467a5.899 5.899 0 0 1-1.46.605L11.334 18H8.667l-.19-2.263a5.899 5.899 0 0 1-1.458-.604L5.286 16.6 3.4 14.714l1.467-1.733a5.899 5.899 0 0 1-.604-1.458L2 11.333V8.667l2.262-.189a5.899 5.899 0 0 1 .605-1.459L3.4 5.286 5.286 3.4l1.733 1.467a5.899 5.899 0 0 1 1.46-.605L8.666 2h2.666zM10 6.267a3.733 3.733 0 1 0 0 7.466 3.733 3.733 0 0 0 0-7.466z"/></svg>',eraser:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m8.636 9.531-2.758 3.94a.5.5 0 0 0 .122.696l3.224 2.284h1.314l2.636-3.736L8.636 9.53zm.288 8.451L5.14 15.396a2 2 0 0 1-.491-2.786l6.673-9.53a2 2 0 0 1 2.785-.49l3.742 2.62a2 2 0 0 1 .491 2.785l-7.269 10.053-2.147-.066z"/><path d="M4 18h5.523v-1H4zm-2 0h1v-1H2z"/></svg>',image:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.91 10.54c.26-.23.64-.21.88.03l3.36 3.14 2.23-2.06a.64.64 0 0 1 .87 0l2.52 2.97V4.5H3.2v10.12l3.71-4.08zm10.27-7.51c.6 0 1.09.47 1.09 1.05v11.84c0 .59-.49 1.06-1.09 1.06H2.79c-.6 0-1.09-.47-1.09-1.06V4.08c0-.58.49-1.05 1.1-1.05h14.38zm-5.22 5.56a1.96 1.96 0 1 1 3.4-1.96 1.96 1.96 0 0 1-3.4 1.96z"/></svg>',lowVision:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.085 6.22 2.943 4.078a.75.75 0 1 1 1.06-1.06l2.592 2.59A11.094 11.094 0 0 1 10 5.068c4.738 0 8.578 3.101 8.578 5.083 0 1.197-1.401 2.803-3.555 3.887l1.714 1.713a.75.75 0 0 1-.09 1.138.488.488 0 0 1-.15.084.75.75 0 0 1-.821-.16L6.17 7.304c-.258.11-.51.233-.757.365l6.239 6.24-.006.005.78.78c-.388.094-.78.166-1.174.215l-1.11-1.11h.011L4.55 8.197a7.2 7.2 0 0 0-.665.514l-.112.098 4.897 4.897-.005.006 1.276 1.276a10.164 10.164 0 0 1-1.477-.117l-.479-.479-.009.009-4.863-4.863-.022.031a2.563 2.563 0 0 0-.124.2c-.043.077-.08.158-.108.241a.534.534 0 0 0-.028.133.29.29 0 0 0 .008.072.927.927 0 0 0 .082.226c.067.133.145.26.234.379l3.242 3.365.025.01.59.623c-3.265-.918-5.59-3.155-5.59-4.668 0-1.194 1.448-2.838 3.663-3.93zm7.07.531a4.632 4.632 0 0 1 1.108 5.992l.345.344.046-.018a9.313 9.313 0 0 0 2-1.112c.256-.187.5-.392.727-.613.137-.134.27-.277.392-.431.072-.091.141-.185.203-.286.057-.093.107-.19.148-.292a.72.72 0 0 0 .036-.12.29.29 0 0 0 .008-.072.492.492 0 0 0-.028-.133.999.999 0 0 0-.036-.096 2.165 2.165 0 0 0-.071-.145 2.917 2.917 0 0 0-.125-.2 3.592 3.592 0 0 0-.263-.335 5.444 5.444 0 0 0-.53-.523 7.955 7.955 0 0 0-1.054-.768 9.766 9.766 0 0 0-1.879-.891c-.337-.118-.68-.219-1.027-.301zm-2.85.21-.069.002a.508.508 0 0 0-.254.097.496.496 0 0 0-.104.679.498.498 0 0 0 .326.199l.045.005c.091.003.181.003.272.012a2.45 2.45 0 0 1 2.017 1.513c.024.061.043.125.069.185a.494.494 0 0 0 .45.287h.008a.496.496 0 0 0 .35-.158.482.482 0 0 0 .13-.335.638.638 0 0 0-.048-.219 3.379 3.379 0 0 0-.36-.723 3.438 3.438 0 0 0-2.791-1.543l-.028-.001h-.013z"/></svg>',importExport:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path clip-rule="evenodd" d="M19 4.5 14 0H3v12.673l.868-1.041c.185-.222.4-.402.632-.54V1.5h8v5h5v7.626a2.24 2.24 0 0 1 1.5.822V4.5ZM14 5V2l3.3 3H14Zm-3.692 12.5c.062.105.133.206.213.303L11.52 19H8v-.876a2.243 2.243 0 0 0 1.82-.624h.488Zm7.518-.657a.75.75 0 0 0-1.152-.96L15.5 17.29V12H14v5.29l-1.174-1.408a.75.75 0 0 0-1.152.96l2.346 2.816a.95.95 0 0 0 1.46 0l2.346-2.815Zm-15.056-.38a.75.75 0 0 1-.096-1.056l2.346-2.815a.95.95 0 0 1 1.46 0l2.346 2.815a.75.75 0 1 1-1.152.96L6.5 14.96V20H5v-5.04l-1.174 1.408a.75.75 0 0 1-1.056.096Z"/></g><defs><clipPath id="a"><path d="M0 0h20v20H0z"/></clipPath></defs></svg>',paragraph:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.5 5.5H7v5h3.5a2.5 2.5 0 1 0 0-5zM5 3h6.5v.025a5 5 0 0 1 0 9.95V13H7v4a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"/></svg>',plus:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 2a1 1 0 0 0-1 1v6H3a1 1 0 1 0 0 2h6v6a1 1 0 1 0 2 0v-6h6a1 1 0 1 0 0-2h-6V3a1 1 0 0 0-1-1Z"/></svg>',text:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path d="M9.816 11.5 7.038 4.785 4.261 11.5h5.555Zm.62 1.5H3.641l-1.666 4.028H.312l5.789-14h1.875l5.789 14h-1.663L10.436 13Z"/><path clip-rule="evenodd" d="m12.09 17-.534-1.292.848-1.971.545 1.319L12.113 17h-.023Zm1.142-5.187.545 1.319L15.5 9.13l1.858 4.316h-3.45l.398.965h3.467L18.887 17H20l-3.873-9h-1.254l-1.641 3.813Z"/></g><defs><clipPath id="a"><path d="M0 0h20v20H0z"/></clipPath></defs></svg>',alignBottom:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.239 13.938-2.88-1.663a.75.75 0 0 1 .75-1.3L9 12.067V4.75a.75.75 0 1 1 1.5 0v7.318l1.89-1.093a.75.75 0 0 1 .75 1.3l-2.879 1.663a.752.752 0 0 1-.511.187.752.752 0 0 1-.511-.187zM4.25 17a.75.75 0 1 1 0-1.5h10.5a.75.75 0 0 1 0 1.5H4.25z"/></svg>',alignMiddle:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.75 11.875a.752.752 0 0 1 .508.184l2.883 1.666a.75.75 0 0 1-.659 1.344l-.091-.044-1.892-1.093.001 4.318a.75.75 0 1 1-1.5 0v-4.317l-1.89 1.092a.75.75 0 0 1-.75-1.3l2.879-1.663a.752.752 0 0 1 .51-.187zM15.25 9a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM9.75.375a.75.75 0 0 1 .75.75v4.318l1.89-1.093.092-.045a.75.75 0 0 1 .659 1.344l-2.883 1.667a.752.752 0 0 1-.508.184.752.752 0 0 1-.511-.187L6.359 5.65a.75.75 0 0 1 .75-1.299L9 5.442V1.125a.75.75 0 0 1 .75-.75z"/></svg>',alignTop:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m10.261 7.062 2.88 1.663a.75.75 0 0 1-.75 1.3L10.5 8.933v7.317a.75.75 0 1 1-1.5 0V8.932l-1.89 1.093a.75.75 0 0 1-.75-1.3l2.879-1.663a.752.752 0 0 1 .511-.187.752.752 0 0 1 .511.187zM15.25 4a.75.75 0 1 1 0 1.5H4.75a.75.75 0 0 1 0-1.5h10.5z"/></svg>',alignLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',alignCenter:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm2.286 4c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75z"/></svg>',alignRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M18 3.75a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 8a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 4a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75zm0-8a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75z"/></svg>',alignJustify:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',objectLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zm0-3H18v1.5h-4.5zm0-3H18v1.5h-4.5zM2 15h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectCenter:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M15.003 7v5.5a1 1 0 0 1-1 1H5.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H6.5V12h6.997V7.5z"/></svg>',objectRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2zm0-9h5v1.5H2zm0 3h5v1.5H2zm0 3h5v1.5H2z"/><path d="M18.003 7v5.5a1 1 0 0 1-1 1H8.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H9.5V12h6.997V7.5z"/></svg>',objectFullWidth:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M18 7v5.5a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1zm-1.505.5H3.504V12h12.991V7.5z"/></svg>',objectInline:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zM2 15h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectBlockLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectBlockRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M18.003 7v5.5a1 1 0 0 1-1 1H8.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H9.5V12h6.997V7.5z"/></svg>',objectSizeFull:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M18.095 2H1.905C.853 2 0 2.895 0 4v12c0 1.105.853 2 1.905 2h16.19C19.147 18 20 17.105 20 16V4c0-1.105-.853-2-1.905-2zm0 1.5c.263 0 .476.224.476.5v12c0 .276-.213.5-.476.5H1.905a.489.489 0 0 1-.476-.5V4c0-.276.213-.5.476-.5h16.19z"/></svg>',objectSizeLarge:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M13 6H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5h11z"/></svg>',objectSizeSmall:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M7 10H2a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5h5z"/></svg>',objectSizeMedium:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M10 8H2a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-6a.5.5 0 0 1 .5-.5h8z"/></svg>',pencil:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m7.3 17.37-.061.088a1.518 1.518 0 0 1-.934.535l-4.178.663-.806-4.153a1.495 1.495 0 0 1 .187-1.058l.056-.086L8.77 2.639c.958-1.351 2.803-1.076 4.296-.03 1.497 1.047 2.387 2.693 1.433 4.055L7.3 17.37zM9.14 4.728l-5.545 8.346 3.277 2.294 5.544-8.346L9.14 4.728zM6.07 16.512l-3.276-2.295.53 2.73 2.746-.435zM9.994 3.506 13.271 5.8c.316-.452-.16-1.333-1.065-1.966-.905-.634-1.895-.78-2.212-.328zM8 18.5 9.375 17H19v1.5H8z"/></svg>',pilcrow:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.999 2H15a1 1 0 0 1 0 2h-1.004v13a1 1 0 1 1-2 0V4H8.999v13a1 1 0 1 1-2 0v-7A4 4 0 0 1 3 6a4 4 0 0 1 3.999-4z"/></svg>',quote:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 10.423a6.5 6.5 0 0 1 6.056-6.408l.038.67C6.448 5.423 5.354 7.663 5.22 10H9c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574zm8 0a6.5 6.5 0 0 1 6.056-6.408l.038.67c-2.646.739-3.74 2.979-3.873 5.315H17c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574z"/></svg>',threeVerticalDots:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="9.5" cy="4.5" r="1.5"/><circle cx="9.5" cy="10.5" r="1.5"/><circle cx="9.5" cy="16.5" r="1.5"/></svg>'}},"./packages/ckeditor5-engine/src/index.ts":(c,h,p)=>{"use strict";p.d(h,{kW:()=>ke,r7:()=>Xr,KU:()=>Md,uz:()=>gc,Yc:()=>ol,tn:()=>Yo,f4:()=>Ni,uj:()=>Yt,pG:()=>hn,dK:()=>Jr,qZ:()=>yi,qD:()=>Cn,jH:()=>Dc,W_:()=>es,Ay:()=>or,X5:()=>mc,IZ:()=>cs,jP:()=>Ca,iE:()=>He,zj:()=>hs,xO:()=>ee,Hn:()=>sc,dM:()=>Od,Qj:()=>ar,Bz:()=>kl,Ly:()=>Di,e6:()=>fi,Th:()=>nt,A_:()=>Ur,aY:()=>da,xv:()=>gs,Po:()=>Ga,yj:()=>Wd,G7:()=>Qs,m1:()=>ke,By:()=>Et,Ux:()=>Re,y_:()=>Zt,W2:()=>cn,y9:()=>ri,pc:()=>Mt,wx:()=>On,Xj:()=>z,dq:()=>Rn,QR:()=>md,sI:()=>vs,vt:()=>dl,J8:()=>wc,DA:()=>F,ID:()=>I,KT:()=>gl,I8:()=>Ta,mq:()=>Sc,oz:()=>Ru,YG:()=>bn,m0:()=>hu,uT:()=>pd,$_:()=>B,SB:()=>bc,D5:()=>ph,G9:()=>vc,IT:()=>Jc,zz:()=>Hu,WK:()=>Wu,Zb:()=>Iu,PX:()=>du,Q7:()=>N,NJ:()=>U,Rf:()=>Sd});var d=p("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),k=p.n(d),M=p("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-engine/theme/placeholder.css"),C={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};k()(M.Z,C),M.Z.locals;const w=new WeakMap;function I(W){const{view:o,element:g,text:P,isDirectHost:K=!0,keepOnFocus:ie=!1}=W,xe=o.document;w.has(xe)||(w.set(xe,new Map),xe.registerPostFixer(jt=>D(xe,jt)),xe.on("change:isComposing",()=>{o.change(jt=>D(xe,jt))},{priority:"high"})),w.get(xe).set(g,{text:P,isDirectHost:K,keepOnFocus:ie,hostElement:K?g:null}),o.change(jt=>D(xe,jt))}function F(W,o){const g=o.document;W.change(P=>{if(!w.has(g))return;const K=w.get(g),ie=K.get(o);P.removeAttribute("data-placeholder",ie.hostElement),B(P,ie.hostElement),K.delete(o)})}function U(W,o){return!o.hasClass("ck-placeholder")&&(W.addClass("ck-placeholder",o),!0)}function B(W,o){return!!o.hasClass("ck-placeholder")&&(W.removeClass("ck-placeholder",o),!0)}function N(W,o){if(!W.isAttached()||Array.from(W.getChildren()).some(ie=>!ie.is("uiElement")))return!1;const P=W.document,K=P.selection.anchor;return(!P.isComposing||!K||K.parent!==W)&&(!!o||!P.isFocused||!!K&&K.parent!==W)}function D(W,o){const g=w.get(W),P=[];let K=!1;for(const[ie,xe]of g)xe.isDirectHost&&(P.push(ie),x(o,ie,xe)&&(K=!0));for(const[ie,xe]of g){if(xe.isDirectHost)continue;const jt=T(ie);jt&&(P.includes(jt)||(xe.hostElement=jt,x(o,ie,xe)&&(K=!0)))}return K}function x(W,o,g){const{text:P,isDirectHost:K,hostElement:ie}=g;let xe=!1;return ie.getAttribute("data-placeholder")!==P&&(W.setAttribute("data-placeholder",P,ie),xe=!0),(K||o.childCount==1)&&N(ie,g.keepOnFocus)?U(W,ie)&&(xe=!0):B(W,ie)&&(xe=!0),xe}function T(W){if(W.childCount){const o=W.getChild(0);if(o.is("element")&&!o.is("uiElement")&&!o.is("attributeElement"))return o}return null}var u=p("./packages/ckeditor5-utils/src/index.ts");class b{is(){throw new Error("is() method is abstract")}}var E=p("./node_modules/lodash-es/_baseClone.js"),A=4;const R=function(W){return(0,E.Z)(W,A)};p("./packages/ckeditor5-utils/src/version.ts");class H extends(0,u.ln)(b){constructor(o){super(),this.document=o,this.parent=null}get index(){let o;if(!this.parent)return null;if((o=this.parent.getChildIndex(this))==-1)throw new u.Bb("view-node-not-found-in-parent",this);return o}get nextSibling(){const o=this.index;return o!==null&&this.parent.getChild(o+1)||null}get previousSibling(){const o=this.index;return o!==null&&this.parent.getChild(o-1)||null}get root(){let o=this;for(;o.parent;)o=o.parent;return o}isAttached(){return this.root.is("rootElement")}getPath(){const o=[];let g=this;for(;g.parent;)o.unshift(g.index),g=g.parent;return o}getAncestors(o={}){const g=[];let P=o.includeSelf?this:this.parent;for(;P;)g[o.parentFirst?"push":"unshift"](P),P=P.parent;return g}getCommonAncestor(o,g={}){const P=this.getAncestors(g),K=o.getAncestors(g);let ie=0;for(;P[ie]==K[ie]&&P[ie];)ie++;return ie===0?null:P[ie-1]}isBefore(o){if(this==o||this.root!==o.root)return!1;const g=this.getPath(),P=o.getPath(),K=(0,u.Rt)(g,P);switch(K){case"prefix":return!0;case"extension":return!1;default:return g[K]<P[K]}}isAfter(o){return this!=o&&this.root===o.root&&!this.isBefore(o)}_remove(){this.parent._removeChildren(this.index)}_fireChange(o,g){this.fire(`change:${o}`,g),this.parent&&this.parent._fireChange(o,g)}toJSON(){const o=R(this);return delete o.parent,o}}H.prototype.is=function(W){return W==="node"||W==="view:node"};class z extends H{constructor(o,g){super(o),this._textData=g}get data(){return this._textData}get _data(){return this.data}set _data(o){this._fireChange("text",this),this._textData=o}isSimilar(o){return o instanceof z&&(this===o||this.data===o.data)}_clone(){return new z(this.document,this.data)}}z.prototype.is=function(W){return W==="$text"||W==="view:$text"||W==="text"||W==="view:text"||W==="node"||W==="view:node"};class V extends b{constructor(o,g,P){if(super(),this.textNode=o,g<0||g>o.data.length)throw new u.Bb("view-textproxy-wrong-offsetintext",this);if(P<0||g+P>o.data.length)throw new u.Bb("view-textproxy-wrong-length",this);this.data=o.data.substring(g,g+P),this.offsetInText=g}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}getAncestors(o={}){const g=[];let P=o.includeSelf?this.textNode:this.parent;for(;P!==null;)g[o.parentFirst?"push":"unshift"](P),P=P.parent;return g}}V.prototype.is=function(W){return W==="$textProxy"||W==="view:$textProxy"||W==="textProxy"||W==="view:textProxy"};var $=p("./node_modules/lodash-es/isPlainObject.js");class ee{constructor(...o){this._patterns=[],this.add(...o)}add(...o){for(let g of o)(typeof g=="string"||g instanceof RegExp)&&(g={name:g}),this._patterns.push(g)}match(...o){for(const g of o)for(const P of this._patterns){const K=q(g,P);if(K)return{element:g,pattern:P,match:K}}return null}matchAll(...o){const g=[];for(const P of o)for(const K of this._patterns){const ie=q(P,K);ie&&g.push({element:P,pattern:K,match:ie})}return g.length>0?g:null}getElementName(){if(this._patterns.length!==1)return null;const o=this._patterns[0],g=o.name;return typeof o=="function"||!g||g instanceof RegExp?null:g}}function q(W,o){if(typeof o=="function")return o(W);const g={};return o.name&&(g.name=function(P,K){return P instanceof RegExp?!!K.match(P):P===K}(o.name,W.name),!g.name)||o.attributes&&(g.attributes=function(P,K){const ie=new Set(K.getAttributeKeys());return(0,$.Z)(P)?(P.style!==void 0&&(0,u.KE)("matcher-pattern-deprecated-attributes-style-key",P),P.class!==void 0&&(0,u.KE)("matcher-pattern-deprecated-attributes-class-key",P)):(ie.delete("style"),ie.delete("class")),oe(P,ie,xe=>K.getAttribute(xe))}(o.attributes,W),!g.attributes)||o.classes&&(g.classes=function(P,K){return oe(P,K.getClassNames(),()=>{})}(o.classes,W),!g.classes)||o.styles&&(g.styles=function(P,K){return oe(P,K.getStyleNames(!0),ie=>K.getStyle(ie))}(o.styles,W),!g.styles)?null:g}function oe(W,o,g){const P=function(xe){return Array.isArray(xe)?xe.map(jt=>(0,$.Z)(jt)?(jt.key!==void 0&&jt.value!==void 0||(0,u.KE)("matcher-pattern-missing-key-or-value",jt),[jt.key,jt.value]):[jt,!0]):(0,$.Z)(xe)?Object.entries(xe):[[xe,!0]]}(W),K=Array.from(o),ie=[];if(P.forEach(([xe,jt])=>{K.forEach(tn=>{(function(xn,Fn){return xn===!0||xn===Fn||xn instanceof RegExp&&Fn.match(xn)})(xe,tn)&&function(xn,Fn,mr){if(xn===!0)return!0;const Pr=mr(Fn);return xn===Pr||xn instanceof RegExp&&!!String(Pr).match(xn)}(jt,tn,g)&&ie.push(tn)})}),P.length&&!(ie.length<P.length))return ie}var X=p("./node_modules/lodash-es/isObject.js"),pe=p("./node_modules/lodash-es/isArray.js"),Ie=p("./node_modules/lodash-es/isSymbol.js"),se=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,be=/^\w*$/;const fe=function(W,o){if((0,pe.Z)(W))return!1;var g=typeof W;return!(g!="number"&&g!="symbol"&&g!="boolean"&&W!=null&&!(0,Ie.Z)(W))||be.test(W)||!se.test(W)||o!=null&&W in Object(o)};var ue=p("./node_modules/lodash-es/_MapCache.js"),we="Expected a function";function Me(W,o){if(typeof W!="function"||o!=null&&typeof o!="function")throw new TypeError(we);var g=function(){var P=arguments,K=o?o.apply(this,P):P[0],ie=g.cache;if(ie.has(K))return ie.get(K);var xe=W.apply(this,P);return g.cache=ie.set(K,xe)||ie,xe};return g.cache=new(Me.Cache||ue.Z),g}Me.Cache=ue.Z;const Ce=Me;var Ne=500,Ye=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mt=/\\(\\)?/g;const Ct=function(W){var o=Ce(W,function(P){return g.size===Ne&&g.clear(),P}),g=o.cache;return o}(function(W){var o=[];return W.charCodeAt(0)===46&&o.push(""),W.replace(Ye,function(g,P,K,ie){o.push(K?ie.replace(mt,"$1"):P||g)}),o});var ln=p("./node_modules/lodash-es/toString.js");const $e=function(W,o){return(0,pe.Z)(W)?W:fe(W,o)?[W]:Ct((0,ln.Z)(W))},Qe=function(W){var o=W==null?0:W.length;return o?W[o-1]:void 0};var bt=1/0;const It=function(W){if(typeof W=="string"||(0,Ie.Z)(W))return W;var o=W+"";return o=="0"&&1/W==-bt?"-0":o},mn=function(W,o){for(var g=0,P=(o=$e(o,W)).length;W!=null&&g<P;)W=W[It(o[g++])];return g&&g==P?W:void 0},un=function(W,o,g){var P=-1,K=W.length;o<0&&(o=-o>K?0:K+o),(g=g>K?K:g)<0&&(g+=K),K=o>g?0:g-o>>>0,o>>>=0;for(var ie=Array(K);++P<K;)ie[P]=W[P+o];return ie},Be=function(W,o){return o.length<2?W:mn(W,un(o,0,-1))},je=function(W,o){return o=$e(o,W),(W=Be(W,o))==null||delete W[It(Qe(o))]},$t=function(W,o){return W==null||je(W,o)},et=function(W,o,g){var P=W==null?void 0:mn(W,o);return P===void 0?g:P};var Kt=p("./node_modules/lodash-es/_Stack.js"),kn=p("./node_modules/lodash-es/_baseAssignValue.js"),Tn=p("./node_modules/lodash-es/eq.js");const ht=function(W,o,g){(g!==void 0&&!(0,Tn.Z)(W[o],g)||g===void 0&&!(o in W))&&(0,kn.Z)(W,o,g)},ot=function(W){return function(o,g,P){for(var K=-1,ie=Object(o),xe=P(o),jt=xe.length;jt--;){var tn=xe[W?jt:++K];if(g(ie[tn],tn,ie)===!1)break}return o}}();var Je=p("./node_modules/lodash-es/_cloneBuffer.js"),wt=p("./node_modules/lodash-es/_cloneTypedArray.js"),ft=p("./node_modules/lodash-es/_copyArray.js"),vn=p("./node_modules/lodash-es/_initCloneObject.js"),ut=p("./node_modules/lodash-es/isArguments.js"),Wt=p("./node_modules/lodash-es/isArrayLike.js"),ae=p("./node_modules/lodash-es/isObjectLike.js");const ne=function(W){return(0,ae.Z)(W)&&(0,Wt.Z)(W)};var ge=p("./node_modules/lodash-es/isBuffer.js"),ye=p("./node_modules/lodash-es/isFunction.js"),Xe=p("./node_modules/lodash-es/isTypedArray.js");const Ze=function(W,o){if((o!=="constructor"||typeof W[o]!="function")&&o!="__proto__")return W[o]};var lt=p("./node_modules/lodash-es/_copyObject.js"),_t=p("./node_modules/lodash-es/keysIn.js");const zt=function(W){return(0,lt.Z)(W,(0,_t.Z)(W))},Vt=function(W,o,g,P,K,ie,xe){var jt=Ze(W,g),tn=Ze(o,g),xn=xe.get(tn);if(xn)ht(W,g,xn);else{var Fn=ie?ie(jt,tn,g+"",W,o,xe):void 0,mr=Fn===void 0;if(mr){var Pr=(0,pe.Z)(tn),ti=!Pr&&(0,ge.Z)(tn),Ci=!Pr&&!ti&&(0,Xe.Z)(tn);Fn=tn,Pr||ti||Ci?(0,pe.Z)(jt)?Fn=jt:ne(jt)?Fn=(0,ft.Z)(jt):ti?(mr=!1,Fn=(0,Je.Z)(tn,!0)):Ci?(mr=!1,Fn=(0,wt.Z)(tn,!0)):Fn=[]:(0,$.Z)(tn)||(0,ut.Z)(tn)?(Fn=jt,(0,ut.Z)(jt)?Fn=zt(jt):(0,X.Z)(jt)&&!(0,ye.Z)(jt)||(Fn=(0,vn.Z)(tn))):mr=!1}mr&&(xe.set(tn,Fn),K(Fn,tn,P,ie,xe),xe.delete(tn)),ht(W,g,Fn)}},sn=function W(o,g,P,K,ie){o!==g&&ot(g,function(xe,jt){if(ie||(ie=new Kt.Z),(0,X.Z)(xe))Vt(o,g,jt,P,W,K,ie);else{var tn=K?K(Ze(o,jt),xe,jt+"",o,g,ie):void 0;tn===void 0&&(tn=xe),ht(o,jt,tn)}},_t.Z)},yn=(0,p("./node_modules/lodash-es/_createAssigner.js").Z)(function(W,o,g){sn(W,o,g)});var dr=p("./node_modules/lodash-es/_assignValue.js"),hr=p("./node_modules/lodash-es/_isIndex.js");const Mr=function(W,o,g,P){if(!(0,X.Z)(W))return W;for(var K=-1,ie=(o=$e(o,W)).length,xe=ie-1,jt=W;jt!=null&&++K<ie;){var tn=It(o[K]),xn=g;if(tn==="__proto__"||tn==="constructor"||tn==="prototype")return W;if(K!=xe){var Fn=jt[tn];(xn=P?P(Fn,tn,jt):void 0)===void 0&&(xn=(0,X.Z)(Fn)?Fn:(0,hr.Z)(o[K+1])?[]:{})}(0,dr.Z)(jt,tn,xn),jt=jt[tn]}return W},rr=function(W,o,g){return W==null?W:Mr(W,o,g)};class Cr{constructor(o){this._styles={},this._styleProcessor=o}get isEmpty(){const o=Object.entries(this._styles);return!Array.from(o).length}get size(){return this.isEmpty?0:this.getStyleNames().length}setTo(o){this.clear();const g=Array.from(function(P){let K=null,ie=0,xe=0,jt=null;const tn=new Map;if(P==="")return tn;P.charAt(P.length-1)!=";"&&(P+=";");for(let xn=0;xn<P.length;xn++){const Fn=P.charAt(xn);if(K===null)switch(Fn){case":":jt||(jt=P.substr(ie,xn-ie),xe=xn+1);break;case'"':case"'":K=Fn;break;case";":{const mr=P.substr(xe,xn-xe);jt&&tn.set(jt.trim(),mr.trim()),jt=null,ie=xn+1;break}}else Fn===K&&(K=null)}return tn}(o).entries());for(const[P,K]of g)this._styleProcessor.toNormalizedForm(P,K,this._styles)}has(o){if(this.isEmpty)return!1;const g=this._styleProcessor.getReducedForm(o,this._styles).find(([P])=>P===o);return Array.isArray(g)}set(o,g){if((0,X.Z)(o))for(const[P,K]of Object.entries(o))this._styleProcessor.toNormalizedForm(P,K,this._styles);else this._styleProcessor.toNormalizedForm(o,g,this._styles)}remove(o){const g=$r(o);$t(this._styles,g),delete this._styles[o],this._cleanEmptyObjectsOnPath(g)}getNormalized(o){return this._styleProcessor.getNormalized(o,this._styles)}toString(){return this.isEmpty?"":this._getStylesEntries().map(o=>o.join(":")).sort().join(";")+";"}getAsString(o){if(this.isEmpty)return;if(this._styles[o]&&!(0,X.Z)(this._styles[o]))return this._styles[o];const g=this._styleProcessor.getReducedForm(o,this._styles).find(([P])=>P===o);return Array.isArray(g)?g[1]:void 0}getStyleNames(o=!1){return this.isEmpty?[]:o?this._styleProcessor.getStyleNames(this._styles):this._getStylesEntries().map(([g])=>g)}clear(){this._styles={}}_getStylesEntries(){const o=[],g=Object.keys(this._styles);for(const P of g)o.push(...this._styleProcessor.getReducedForm(P,this._styles));return o}_cleanEmptyObjectsOnPath(o){const g=o.split(".");if(!(g.length>1))return;const P=g.splice(0,g.length-1).join("."),K=et(this._styles,P);K&&!Array.from(Object.keys(K)).length&&this.remove(P)}}class Ur{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(o,g,P){if((0,X.Z)(g))li(P,$r(o),g);else if(this._normalizers.has(o)){const K=this._normalizers.get(o),{path:ie,value:xe}=K(g);li(P,ie,xe)}else li(P,o,g)}getNormalized(o,g){if(!o)return yn({},g);if(g[o]!==void 0)return g[o];if(this._extractors.has(o)){const P=this._extractors.get(o);if(typeof P=="string")return et(g,P);const K=P(o,g);if(K)return K}return et(g,$r(o))}getReducedForm(o,g){const P=this.getNormalized(o,g);return P===void 0?[]:this._reducers.has(o)?this._reducers.get(o)(P):[[o,P]]}getStyleNames(o){const g=Array.from(this._consumables.keys()).filter(K=>{const ie=this.getNormalized(K,o);return ie&&typeof ie=="object"?Object.keys(ie).length:ie}),P=new Set([...g,...Object.keys(o)]);return Array.from(P.values())}getRelatedStyles(o){return this._consumables.get(o)||[]}setNormalizer(o,g){this._normalizers.set(o,g)}setExtractor(o,g){this._extractors.set(o,g)}setReducer(o,g){this._reducers.set(o,g)}setStyleRelation(o,g){this._mapStyleNames(o,g);for(const P of g)this._mapStyleNames(P,[o])}_mapStyleNames(o,g){this._consumables.has(o)||this._consumables.set(o,[]),this._consumables.get(o).push(...g)}}function $r(W){return W.replace("-",".")}function li(W,o,g){let P=g;(0,X.Z)(g)&&(P=yn({},et(W,o),g)),rr(W,o,P)}class ri extends H{constructor(o,g,P,K){if(super(o),this.name=g,this._attrs=function(ie){const xe=(0,u.qL)(ie);for(const[jt,tn]of xe)tn===null?xe.delete(jt):typeof tn!="string"&&xe.set(jt,String(tn));return xe}(P),this._children=[],K&&this._insertChild(0,K),this._classes=new Set,this._attrs.has("class")){const ie=this._attrs.get("class");Bt(this._classes,ie),this._attrs.delete("class")}this._styles=new Cr(this.document.stylesProcessor),this._attrs.has("style")&&(this._styles.setTo(this._attrs.get("style")),this._attrs.delete("style")),this._customProperties=new Map,this._unsafeAttributesToRender=[]}get childCount(){return this._children.length}get isEmpty(){return this._children.length===0}getChild(o){return this._children[o]}getChildIndex(o){return this._children.indexOf(o)}getChildren(){return this._children[Symbol.iterator]()}*getAttributeKeys(){this._classes.size>0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(o){if(o=="class")return this._classes.size>0?[...this._classes].join(" "):void 0;if(o=="style"){const g=this._styles.toString();return g==""?void 0:g}return this._attrs.get(o)}hasAttribute(o){return o=="class"?this._classes.size>0:o=="style"?!this._styles.isEmpty:this._attrs.has(o)}isSimilar(o){if(!(o instanceof ri))return!1;if(this===o)return!0;if(this.name!=o.name||this._attrs.size!==o._attrs.size||this._classes.size!==o._classes.size||this._styles.size!==o._styles.size)return!1;for(const[g,P]of this._attrs)if(!o._attrs.has(g)||o._attrs.get(g)!==P)return!1;for(const g of this._classes)if(!o._classes.has(g))return!1;for(const g of this._styles.getStyleNames())if(!o._styles.has(g)||o._styles.getAsString(g)!==this._styles.getAsString(g))return!1;return!0}hasClass(...o){for(const g of o)if(!this._classes.has(g))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(o){return this._styles.getAsString(o)}getNormalizedStyle(o){return this._styles.getNormalized(o)}getStyleNames(o){return this._styles.getStyleNames(o)}hasStyle(...o){for(const g of o)if(!this._styles.has(g))return!1;return!0}findAncestor(...o){const g=new ee(...o);let P=this.parent;for(;P&&!P.is("documentFragment");){if(g.match(P))return P;P=P.parent}return null}getCustomProperty(o){return this._customProperties.get(o)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const o=Array.from(this._classes).sort().join(","),g=this._styles.toString(),P=Array.from(this._attrs).map(K=>`${K[0]}="${K[1]}"`).sort().join(" ");return this.name+(o==""?"":` class="${o}"`)+(g?` style="${g}"`:"")+(P==""?"":` ${P}`)}shouldRenderUnsafeAttribute(o){return this._unsafeAttributesToRender.includes(o)}_clone(o=!1){const g=[];if(o)for(const K of this.getChildren())g.push(K._clone(o));const P=new this.constructor(this.document,this.name,this._attrs,g);return P._classes=new Set(this._classes),P._styles.set(this._styles.getNormalized()),P._customProperties=new Map(this._customProperties),P.getFillerOffset=this.getFillerOffset,P._unsafeAttributesToRender=this._unsafeAttributesToRender,P}_appendChild(o){return this._insertChild(this.childCount,o)}_insertChild(o,g){this._fireChange("children",this);let P=0;const K=function(ie,xe){return typeof xe=="string"?[new z(ie,xe)]:((0,u.TW)(xe)||(xe=[xe]),Array.from(xe).map(jt=>typeof jt=="string"?new z(ie,jt):jt instanceof V?new z(ie,jt.data):jt))}(this.document,g);for(const ie of K)ie.parent!==null&&ie._remove(),ie.parent=this,ie.document=this.document,this._children.splice(o,0,ie),o++,P++;return P}_removeChildren(o,g=1){this._fireChange("children",this);for(let P=o;P<o+g;P++)this._children[P].parent=null;return this._children.splice(o,g)}_setAttribute(o,g){const P=String(g);this._fireChange("attributes",this),o=="class"?Bt(this._classes,P):o=="style"?this._styles.setTo(P):this._attrs.set(o,P)}_removeAttribute(o){return this._fireChange("attributes",this),o=="class"?this._classes.size>0&&(this._classes.clear(),!0):o=="style"?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(o)}_addClass(o){this._fireChange("attributes",this);for(const g of(0,u.qo)(o))this._classes.add(g)}_removeClass(o){this._fireChange("attributes",this);for(const g of(0,u.qo)(o))this._classes.delete(g)}_setStyle(o,g){this._fireChange("attributes",this),(0,$.Z)(o)?this._styles.set(o):this._styles.set(o,g)}_removeStyle(o){this._fireChange("attributes",this);for(const g of(0,u.qo)(o))this._styles.remove(g)}_setCustomProperty(o,g){this._customProperties.set(o,g)}_removeCustomProperty(o){return this._customProperties.delete(o)}}function Bt(W,o){const g=o.split(/\s+/);W.clear(),g.forEach(P=>W.add(P))}ri.prototype.is=function(W,o){return o?o===this.name&&(W==="element"||W==="view:element"):W==="element"||W==="view:element"||W==="node"||W==="view:node"};class Et extends ri{constructor(...o){super(...o),this.getFillerOffset=bn}}function bn(){const W=[...this.getChildren()],o=W[this.childCount-1];if(o&&o.is("element","br"))return this.childCount;for(const g of W)if(!g.is("uiElement"))return null;return this.childCount}Et.prototype.is=function(W,o){return o?o===this.name&&(W==="containerElement"||W==="view:containerElement"||W==="element"||W==="view:element"):W==="containerElement"||W==="view:containerElement"||W==="element"||W==="view:element"||W==="node"||W==="view:node"};class cn extends(0,u.Re)(Et){constructor(...o){super(...o);const g=o[0];this.set("isReadOnly",!1),this.set("isFocused",!1),this.bind("isReadOnly").to(g),this.bind("isFocused").to(g,"isFocused",P=>P&&g.selection.editableElement==this),this.listenTo(g.selection,"change",()=>{this.isFocused=g.isFocused&&g.selection.editableElement==this})}destroy(){this.stopListening()}}cn.prototype.is=function(W,o){return o?o===this.name&&(W==="editableElement"||W==="view:editableElement"||W==="containerElement"||W==="view:containerElement"||W==="element"||W==="view:element"):W==="editableElement"||W==="view:editableElement"||W==="containerElement"||W==="view:containerElement"||W==="element"||W==="view:element"||W==="node"||W==="view:node"};const Yn=Symbol("rootName");class on extends cn{constructor(o,g){super(o,g),this.rootName="main"}get rootName(){return this.getCustomProperty(Yn)}set rootName(o){this._setCustomProperty(Yn,o)}set _name(o){this.name=o}}on.prototype.is=function(W,o){return o?o===this.name&&(W==="rootElement"||W==="view:rootElement"||W==="editableElement"||W==="view:editableElement"||W==="containerElement"||W==="view:containerElement"||W==="element"||W==="view:element"):W==="rootElement"||W==="view:rootElement"||W==="editableElement"||W==="view:editableElement"||W==="containerElement"||W==="view:containerElement"||W==="element"||W==="view:element"||W==="node"||W==="view:node"};class ze{constructor(o={}){if(!o.boundaries&&!o.startPosition)throw new u.Bb("view-tree-walker-no-start-position",null);if(o.direction&&o.direction!="forward"&&o.direction!="backward")throw new u.Bb("view-tree-walker-unknown-direction",o.startPosition,{direction:o.direction});this.boundaries=o.boundaries||null,o.startPosition?this.position=Le._createAt(o.startPosition):this.position=Le._createAt(o.boundaries[o.direction=="backward"?"end":"start"]),this.direction=o.direction||"forward",this.singleCharacters=!!o.singleCharacters,this.shallow=!!o.shallow,this.ignoreElementEnd=!!o.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}skip(o){let g,P,K;do K=this.position,{done:g,value:P}=this.next();while(!g&&o(P));g||(this.position=K)}next(){return this.direction=="forward"?this._next():this._previous()}_next(){let o=this.position.clone();const g=this.position,P=o.parent;if(P.parent===null&&o.offset===P.childCount)return{done:!0,value:void 0};if(P===this._boundaryEndParent&&o.offset==this.boundaries.end.offset)return{done:!0,value:void 0};let K;if(P instanceof z){if(o.isAtEnd)return this.position=Le._createAfter(P),this._next();K=P.data[o.offset]}else K=P.getChild(o.offset);if(K instanceof ri)return this.shallow?o.offset++:o=new Le(K,0),this.position=o,this._formatReturnValue("elementStart",K,g,o,1);if(K instanceof z){if(this.singleCharacters)return o=new Le(K,0),this.position=o,this._next();{let ie,xe=K.data.length;return K==this._boundaryEndParent?(xe=this.boundaries.end.offset,ie=new V(K,0,xe),o=Le._createAfter(ie)):(ie=new V(K,0,K.data.length),o.offset++),this.position=o,this._formatReturnValue("text",ie,g,o,xe)}}if(typeof K=="string"){let ie;this.singleCharacters?ie=1:ie=(P===this._boundaryEndParent?this.boundaries.end.offset:P.data.length)-o.offset;const xe=new V(P,o.offset,ie);return o.offset+=ie,this.position=o,this._formatReturnValue("text",xe,g,o,ie)}return o=Le._createAfter(P),this.position=o,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",P,g,o)}_previous(){let o=this.position.clone();const g=this.position,P=o.parent;if(P.parent===null&&o.offset===0)return{done:!0,value:void 0};if(P==this._boundaryStartParent&&o.offset==this.boundaries.start.offset)return{done:!0,value:void 0};let K;if(P instanceof z){if(o.isAtStart)return this.position=Le._createBefore(P),this._previous();K=P.data[o.offset-1]}else K=P.getChild(o.offset-1);if(K instanceof ri)return this.shallow?(o.offset--,this.position=o,this._formatReturnValue("elementStart",K,g,o,1)):(o=new Le(K,K.childCount),this.position=o,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",K,g,o));if(K instanceof z){if(this.singleCharacters)return o=new Le(K,K.data.length),this.position=o,this._previous();{let ie,xe=K.data.length;if(K==this._boundaryStartParent){const jt=this.boundaries.start.offset;ie=new V(K,jt,K.data.length-jt),xe=ie.data.length,o=Le._createBefore(ie)}else ie=new V(K,0,K.data.length),o.offset--;return this.position=o,this._formatReturnValue("text",ie,g,o,xe)}}if(typeof K=="string"){let ie;if(this.singleCharacters)ie=1;else{const jt=P===this._boundaryStartParent?this.boundaries.start.offset:0;ie=o.offset-jt}o.offset-=ie;const xe=new V(P,o.offset,ie);return this.position=o,this._formatReturnValue("text",xe,g,o,ie)}return o=Le._createBefore(P),this.position=o,this._formatReturnValue("elementStart",P,g,o,1)}_formatReturnValue(o,g,P,K,ie){return g instanceof V&&(g.offsetInText+g.data.length==g.textNode.data.length&&(this.direction!="forward"||this.boundaries&&this.boundaries.end.isEqual(this.position)?P=Le._createAfter(g.textNode):(K=Le._createAfter(g.textNode),this.position=K)),g.offsetInText===0&&(this.direction!="backward"||this.boundaries&&this.boundaries.start.isEqual(this.position)?P=Le._createBefore(g.textNode):(K=Le._createBefore(g.textNode),this.position=K))),{done:!1,value:{type:o,item:g,previousPosition:P,nextPosition:K,length:ie}}}}class Le extends b{constructor(o,g){super(),this.parent=o,this.offset=g}get nodeAfter(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return this.offset===0}get isAtEnd(){const o=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===o}get root(){return this.parent.root}get editableElement(){let o=this.parent;for(;!(o instanceof cn);){if(!o.parent)return null;o=o.parent}return o}getShiftedBy(o){const g=Le._createAt(this),P=g.offset+o;return g.offset=P<0?0:P,g}getLastMatchingPosition(o,g={}){g.startPosition=this;const P=new ze(g);return P.skip(o),P.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(o){const g=this.getAncestors(),P=o.getAncestors();let K=0;for(;g[K]==P[K]&&g[K];)K++;return K===0?null:g[K-1]}isEqual(o){return this.parent==o.parent&&this.offset==o.offset}isBefore(o){return this.compareWith(o)=="before"}isAfter(o){return this.compareWith(o)=="after"}compareWith(o){if(this.root!==o.root)return"different";if(this.isEqual(o))return"same";const g=this.parent.is("node")?this.parent.getPath():[],P=o.parent.is("node")?o.parent.getPath():[];g.push(this.offset),P.push(o.offset);const K=(0,u.Rt)(g,P);switch(K){case"prefix":return"before";case"extension":return"after";default:return g[K]<P[K]?"before":"after"}}getWalker(o={}){return o.startPosition=this,new ze(o)}clone(){return new Le(this.parent,this.offset)}static _createAt(o,g){if(o instanceof Le)return new this(o.parent,o.offset);{const P=o;if(g=="end")g=P.is("$text")?P.data.length:P.childCount;else{if(g=="before")return this._createBefore(P);if(g=="after")return this._createAfter(P);if(g!==0&&!g)throw new u.Bb("view-createpositionat-offset-required",P)}return new Le(P,g)}}static _createAfter(o){if(o.is("$textProxy"))return new Le(o.textNode,o.offsetInText+o.data.length);if(!o.parent)throw new u.Bb("view-position-after-root",o,{root:o});return new Le(o.parent,o.index+1)}static _createBefore(o){if(o.is("$textProxy"))return new Le(o.textNode,o.offsetInText);if(!o.parent)throw new u.Bb("view-position-before-root",o,{root:o});return new Le(o.parent,o.index)}}Le.prototype.is=function(W){return W==="position"||W==="view:position"};class Ht extends b{constructor(o,g=null){super(),this.start=o.clone(),this.end=g?g.clone():o.clone()}*[Symbol.iterator](){yield*new ze({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return this.start.parent===this.end.parent}get root(){return this.start.root}getEnlarged(){let o=this.start.getLastMatchingPosition(Mn,{direction:"backward"}),g=this.end.getLastMatchingPosition(Mn);return o.parent.is("$text")&&o.isAtStart&&(o=Le._createBefore(o.parent)),g.parent.is("$text")&&g.isAtEnd&&(g=Le._createAfter(g.parent)),new Ht(o,g)}getTrimmed(){let o=this.start.getLastMatchingPosition(Mn);if(o.isAfter(this.end)||o.isEqual(this.end))return new Ht(o,o);let g=this.end.getLastMatchingPosition(Mn,{direction:"backward"});const P=o.nodeAfter,K=g.nodeBefore;return P&&P.is("$text")&&(o=new Le(P,0)),K&&K.is("$text")&&(g=new Le(K,K.data.length)),new Ht(o,g)}isEqual(o){return this==o||this.start.isEqual(o.start)&&this.end.isEqual(o.end)}containsPosition(o){return o.isAfter(this.start)&&o.isBefore(this.end)}containsRange(o,g=!1){o.isCollapsed&&(g=!1);const P=this.containsPosition(o.start)||g&&this.start.isEqual(o.start),K=this.containsPosition(o.end)||g&&this.end.isEqual(o.end);return P&&K}getDifference(o){const g=[];return this.isIntersecting(o)?(this.containsPosition(o.start)&&g.push(new Ht(this.start,o.start)),this.containsPosition(o.end)&&g.push(new Ht(o.end,this.end))):g.push(this.clone()),g}getIntersection(o){if(this.isIntersecting(o)){let g=this.start,P=this.end;return this.containsPosition(o.start)&&(g=o.start),this.containsPosition(o.end)&&(P=o.end),new Ht(g,P)}return null}getWalker(o={}){return o.boundaries=this,new ze(o)}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;let o=this.start.nodeAfter,g=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(o=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(g=this.end.parent.previousSibling),o&&o.is("element")&&o===g?o:null}clone(){return new Ht(this.start,this.end)}*getItems(o={}){o.boundaries=this,o.ignoreElementEnd=!0;const g=new ze(o);for(const P of g)yield P.item}*getPositions(o={}){o.boundaries=this;const g=new ze(o);yield g.position;for(const P of g)yield P.nextPosition}isIntersecting(o){return this.start.isBefore(o.end)&&this.end.isAfter(o.start)}static _createFromParentsAndOffsets(o,g,P,K){return new this(new Le(o,g),new Le(P,K))}static _createFromPositionAndShift(o,g){const P=o,K=o.getShiftedBy(g);return g>0?new this(P,K):new this(K,P)}static _createIn(o){return this._createFromParentsAndOffsets(o,0,o,o.childCount)}static _createOn(o){const g=o.is("$textProxy")?o.offsetSize:1;return this._createFromPositionAndShift(Le._createBefore(o),g)}}function Mn(W){return!(!W.item.is("attributeElement")&&!W.item.is("uiElement"))}Ht.prototype.is=function(W){return W==="range"||W==="view:range"};class tr extends(0,u.ln)(b){constructor(...o){super(),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",o.length&&this.setTo(...o)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const o=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?o.end:o.start).clone()}get focus(){if(!this._ranges.length)return null;const o=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?o.start:o.end).clone()}get isCollapsed(){return this.rangeCount===1&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const o of this._ranges)yield o.clone()}getFirstRange(){let o=null;for(const g of this._ranges)o&&!g.start.isBefore(o.start)||(o=g);return o?o.clone():null}getLastRange(){let o=null;for(const g of this._ranges)o&&!g.end.isAfter(o.end)||(o=g);return o?o.clone():null}getFirstPosition(){const o=this.getFirstRange();return o?o.start.clone():null}getLastPosition(){const o=this.getLastRange();return o?o.end.clone():null}isEqual(o){if(this.isFake!=o.isFake||this.isFake&&this.fakeSelectionLabel!=o.fakeSelectionLabel||this.rangeCount!=o.rangeCount)return!1;if(this.rangeCount===0)return!0;if(!this.anchor.isEqual(o.anchor)||!this.focus.isEqual(o.focus))return!1;for(const g of this._ranges){let P=!1;for(const K of o._ranges)if(g.isEqual(K)){P=!0;break}if(!P)return!1}return!0}isSimilar(o){if(this.isBackward!=o.isBackward)return!1;const g=(0,u.QX)(this.getRanges());if(g!=(0,u.QX)(o.getRanges()))return!1;if(g==0)return!0;for(let P of this.getRanges()){P=P.getTrimmed();let K=!1;for(let ie of o.getRanges())if(ie=ie.getTrimmed(),P.start.isEqual(ie.start)&&P.end.isEqual(ie.end)){K=!0;break}if(!K)return!1}return!0}getSelectedElement(){return this.rangeCount!==1?null:this.getFirstRange().getContainedElement()}setTo(...o){let[g,P,K]=o;if(typeof P=="object"&&(K=P,P=void 0),g===null)this._setRanges([]),this._setFakeOptions(K);else if(g instanceof tr||g instanceof Sr)this._setRanges(g.getRanges(),g.isBackward),this._setFakeOptions({fake:g.isFake,label:g.fakeSelectionLabel});else if(g instanceof Ht)this._setRanges([g],K&&K.backward),this._setFakeOptions(K);else if(g instanceof Le)this._setRanges([new Ht(g)]),this._setFakeOptions(K);else if(g instanceof H){const ie=!!K&&!!K.backward;let xe;if(P===void 0)throw new u.Bb("view-selection-setto-required-second-parameter",this);xe=P=="in"?Ht._createIn(g):P=="on"?Ht._createOn(g):new Ht(Le._createAt(g,P)),this._setRanges([xe],ie),this._setFakeOptions(K)}else{if(!(0,u.TW)(g))throw new u.Bb("view-selection-setto-not-selectable",this);this._setRanges(g,K&&K.backward),this._setFakeOptions(K)}this.fire("change")}setFocus(o,g){if(this.anchor===null)throw new u.Bb("view-selection-setfocus-no-ranges",this);const P=Le._createAt(o,g);if(P.compareWith(this.focus)=="same")return;const K=this.anchor;this._ranges.pop(),P.compareWith(K)=="before"?this._addRange(new Ht(P,K),!0):this._addRange(new Ht(K,P)),this.fire("change")}_setRanges(o,g=!1){o=Array.from(o),this._ranges=[];for(const P of o)this._addRange(P);this._lastRangeBackward=!!g}_setFakeOptions(o={}){this._isFake=!!o.fake,this._fakeSelectionLabel=o.fake&&o.label||""}_addRange(o,g=!1){if(!(o instanceof Ht))throw new u.Bb("view-selection-add-range-not-range",this);this._pushRange(o),this._lastRangeBackward=!!g}_pushRange(o){for(const g of this._ranges)if(o.isIntersecting(g))throw new u.Bb("view-selection-range-intersects",this,{addedRange:o,intersectingRange:g});this._ranges.push(new Ht(o.start,o.end))}}tr.prototype.is=function(W){return W==="selection"||W==="view:selection"};class Sr extends(0,u.ln)(b){constructor(...o){super(),this._selection=new tr,this._selection.delegate("change").to(this),o.length&&this._selection.setTo(...o)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(o){return this._selection.isEqual(o)}isSimilar(o){return this._selection.isSimilar(o)}_setTo(...o){this._selection.setTo(...o)}_setFocus(o,g){this._selection.setFocus(o,g)}}Sr.prototype.is=function(W){return W==="selection"||W=="documentSelection"||W=="view:selection"||W=="view:documentSelection"};class Xr extends u.M3{constructor(o,g,P){super(o,g),this.startRange=P,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}const gi=Symbol("bubbling contexts");function Pi(W){return class extends W{fire(o,...g){try{const P=o instanceof u.M3?o:new u.M3(this,o),K=it(this);if(!K.size)return;if(ii(P,"capturing",this),vr(K,"$capture",P,...g))return P.return;const ie=P.startRange||this.selection.getFirstRange(),xe=ie?ie.getContainedElement():null,jt=!!xe&&Boolean(at(K,xe));let tn=xe||function(xn){if(!xn)return null;const Fn=xn.start.parent,mr=xn.end.parent,Pr=Fn.getPath(),ti=mr.getPath();return Pr.length>ti.length?Fn:mr}(ie);if(ii(P,"atTarget",tn),!jt){if(vr(K,"$text",P,...g))return P.return;ii(P,"bubbling",tn)}for(;tn;){if(tn.is("rootElement")){if(vr(K,"$root",P,...g))return P.return}else if(tn.is("element")&&vr(K,tn.name,P,...g))return P.return;if(vr(K,tn,P,...g))return P.return;tn=tn.parent,ii(P,"bubbling",tn)}return ii(P,"bubbling",this),vr(K,"$document",P,...g),P.return}catch(P){u.Bb.rethrowUnexpectedError(P,this)}}_addEventListener(o,g,P){const K=(0,u.qo)(P.context||"$document"),ie=it(this);for(const xe of K){let jt=ie.get(xe);jt||(jt=new((0,u.ln)()),ie.set(xe,jt)),this.listenTo(jt,o,g,P)}}_removeEventListener(o,g){const P=it(this);for(const K of P.values())this.stopListening(K,o,g)}}}{const W=Pi(Object);["fire","_addEventListener","_removeEventListener"].forEach(o=>{Pi[o]=W.prototype[o]})}function ii(W,o,g){W instanceof Xr&&(W._eventPhase=o,W._currentTarget=g)}function vr(W,o,g,...P){const K=typeof o=="string"?W.get(o):at(W,o);return!!K&&(K.fire(g,...P),g.stop.called)}function at(W,o){for(const[g,P]of W)if(typeof g=="function"&&g(o))return P;return null}function it(W){return W[gi]||(W[gi]=new Map),W[gi]}class Re extends Pi((0,u.Re)()){constructor(o){super(),this.selection=new Sr,this.roots=new u.FE({idProperty:"rootName"}),this.stylesProcessor=o,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1),this._postFixers=new Set}getRoot(o="main"){return this.roots.get(o)}registerPostFixer(o){this._postFixers.add(o)}destroy(){this.roots.map(o=>o.destroy()),this.stopListening()}_callPostFixers(o){let g=!1;do for(const P of this._postFixers)if(g=P(o),g)break;while(g)}}class ke extends ri{constructor(...o){super(...o),this.getFillerOffset=Pe,this._priority=10,this._id=null,this._clonesGroup=null}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(this.id===null)throw new u.Bb("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}isSimilar(o){return this.id!==null||o.id!==null?this.id===o.id:super.isSimilar(o)&&this.priority==o.priority}_clone(o=!1){const g=super._clone(o);return g._priority=this._priority,g._id=this._id,g}}function Pe(){if(Te(this))return null;let W=this.parent;for(;W&&W.is("attributeElement");){if(Te(W)>1)return null;W=W.parent}return!W||Te(W)>1?null:this.childCount}function Te(W){return Array.from(W.getChildren()).filter(o=>!o.is("uiElement")).length}ke.DEFAULT_PRIORITY=10,ke.prototype.is=function(W,o){return o?o===this.name&&(W==="attributeElement"||W==="view:attributeElement"||W==="element"||W==="view:element"):W==="attributeElement"||W==="view:attributeElement"||W==="element"||W==="view:element"||W==="node"||W==="view:node"};class Mt extends ri{constructor(o,g,P,K){super(o,g,P,K),this.getFillerOffset=qt}_insertChild(o,g){if(g&&(g instanceof H||Array.from(g).length>0))throw new u.Bb("view-emptyelement-cannot-add",[this,g]);return 0}}function qt(){return null}Mt.prototype.is=function(W,o){return o?o===this.name&&(W==="emptyElement"||W==="view:emptyElement"||W==="element"||W==="view:element"):W==="emptyElement"||W==="view:emptyElement"||W==="element"||W==="view:element"||W==="node"||W==="view:node"};class Rn extends ri{constructor(...o){super(...o),this.getFillerOffset=ur}_insertChild(o,g){if(g&&(g instanceof H||Array.from(g).length>0))throw new u.Bb("view-uielement-cannot-add",[this,g]);return 0}render(o,g){return this.toDomElement(o)}toDomElement(o){const g=o.createElement(this.name);for(const P of this.getAttributeKeys())g.setAttribute(P,this.getAttribute(P));return g}}function Qn(W){W.document.on("arrowKey",(o,g)=>function(P,K,ie){if(K.keyCode==u.Do.arrowright){const xe=K.domTarget.ownerDocument.defaultView.getSelection(),jt=xe.rangeCount==1&&xe.getRangeAt(0).collapsed;if(jt||K.shiftKey){const tn=xe.focusNode,xn=xe.focusOffset,Fn=ie.domPositionToView(tn,xn);if(Fn===null)return;let mr=!1;const Pr=Fn.getLastMatchingPosition(ti=>(ti.item.is("uiElement")&&(mr=!0),!(!ti.item.is("uiElement")&&!ti.item.is("attributeElement"))));if(mr){const ti=ie.viewPositionToDom(Pr);jt?xe.collapse(ti.parent,ti.offset):xe.extend(ti.parent,ti.offset)}}}}(0,g,W.domConverter),{priority:"low"})}function ur(){return null}Rn.prototype.is=function(W,o){return o?o===this.name&&(W==="uiElement"||W==="view:uiElement"||W==="element"||W==="view:element"):W==="uiElement"||W==="view:uiElement"||W==="element"||W==="view:element"||W==="node"||W==="view:node"};class On extends ri{constructor(...o){super(...o),this.getFillerOffset=ct}_insertChild(o,g){if(g&&(g instanceof H||Array.from(g).length>0))throw new u.Bb("view-rawelement-cannot-add",[this,g]);return 0}render(){}}function ct(){return null}On.prototype.is=function(W,o){return o?o===this.name&&(W==="rawElement"||W==="view:rawElement"||W==="element"||W==="view:element"):W==="rawElement"||W==="view:rawElement"||W===this.name||W==="view:"+this.name||W==="element"||W==="view:element"||W==="node"||W==="view:node"};class Zt extends(0,u.ln)(b){constructor(o,g){super(),this.document=o,this._children=[],g&&this._insertChild(0,g),this._customProperties=new Map}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return this.childCount===0}get root(){return this}get parent(){return null}getCustomProperty(o){return this._customProperties.get(o)}*getCustomProperties(){yield*this._customProperties.entries()}_appendChild(o){return this._insertChild(this.childCount,o)}getChild(o){return this._children[o]}getChildIndex(o){return this._children.indexOf(o)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(o,g){this._fireChange("children",this);let P=0;const K=function(ie,xe){return typeof xe=="string"?[new z(ie,xe)]:((0,u.TW)(xe)||(xe=[xe]),Array.from(xe).map(jt=>typeof jt=="string"?new z(ie,jt):jt instanceof V?new z(ie,jt.data):jt))}(this.document,g);for(const ie of K)ie.parent!==null&&ie._remove(),ie.parent=this,this._children.splice(o,0,ie),o++,P++;return P}_removeChildren(o,g=1){this._fireChange("children",this);for(let P=o;P<o+g;P++)this._children[P].parent=null;return this._children.splice(o,g)}_fireChange(o,g){this.fire("change:"+o,g)}_setCustomProperty(o,g){this._customProperties.set(o,g)}_removeCustomProperty(o){return this._customProperties.delete(o)}}Zt.prototype.is=function(W){return W==="documentFragment"||W==="view:documentFragment"};class Cn{constructor(o){this.document=o,this._cloneGroups=new Map,this._slotFactory=null}setSelection(...o){this.document.selection._setTo(...o)}setSelectionFocus(...o){this.document.selection._setFocus(...o)}createDocumentFragment(o){return new Zt(this.document,o)}createText(o){return new z(this.document,o)}createAttributeElement(o,g,P={}){const K=new ke(this.document,o,g);return typeof P.priority=="number"&&(K._priority=P.priority),P.id&&(K._id=P.id),P.renderUnsafeAttributes&&K._unsafeAttributesToRender.push(...P.renderUnsafeAttributes),K}createContainerElement(o,g,P={},K={}){let ie=null;(0,$.Z)(P)?K=P:ie=P;const xe=new Et(this.document,o,g,ie);return K.renderUnsafeAttributes&&xe._unsafeAttributesToRender.push(...K.renderUnsafeAttributes),xe}createEditableElement(o,g,P={}){const K=new cn(this.document,o,g);return P.renderUnsafeAttributes&&K._unsafeAttributesToRender.push(...P.renderUnsafeAttributes),K}createEmptyElement(o,g,P={}){const K=new Mt(this.document,o,g);return P.renderUnsafeAttributes&&K._unsafeAttributesToRender.push(...P.renderUnsafeAttributes),K}createUIElement(o,g,P){const K=new Rn(this.document,o,g);return P&&(K.render=P),K}createRawElement(o,g,P,K={}){const ie=new On(this.document,o,g);return P&&(ie.render=P),K.renderUnsafeAttributes&&ie._unsafeAttributesToRender.push(...K.renderUnsafeAttributes),ie}setAttribute(o,g,P){P._setAttribute(o,g)}removeAttribute(o,g){g._removeAttribute(o)}addClass(o,g){g._addClass(o)}removeClass(o,g){g._removeClass(o)}setStyle(o,g,P){(0,$.Z)(o)&&P===void 0?g._setStyle(o):P._setStyle(o,g)}removeStyle(o,g){g._removeStyle(o)}setCustomProperty(o,g,P){P._setCustomProperty(o,g)}removeCustomProperty(o,g){return g._removeCustomProperty(o)}breakAttributes(o){return o instanceof Le?this._breakAttributes(o):this._breakAttributesRange(o)}breakContainer(o){const g=o.parent;if(!g.is("containerElement"))throw new u.Bb("view-writer-break-non-container-element",this.document);if(!g.parent)throw new u.Bb("view-writer-break-root",this.document);if(o.isAtStart)return Le._createBefore(g);if(!o.isAtEnd){const P=g._clone(!1);this.insert(Le._createAfter(g),P);const K=new Ht(o,Le._createAt(g,"end")),ie=new Le(P,0);this.move(K,ie)}return Le._createAfter(g)}mergeAttributes(o){const g=o.offset,P=o.parent;if(P.is("$text"))return o;if(P.is("attributeElement")&&P.childCount===0){const xe=P.parent,jt=P.index;return P._remove(),this._removeFromClonedElementsGroup(P),this.mergeAttributes(new Le(xe,jt))}const K=P.getChild(g-1),ie=P.getChild(g);if(!K||!ie)return o;if(K.is("$text")&&ie.is("$text"))return Oe(K,ie);if(K.is("attributeElement")&&ie.is("attributeElement")&&K.isSimilar(ie)){const xe=K.childCount;return K._appendChild(ie.getChildren()),ie._remove(),this._removeFromClonedElementsGroup(ie),this.mergeAttributes(new Le(K,xe))}return o}mergeContainers(o){const g=o.nodeBefore,P=o.nodeAfter;if(!(g&&P&&g.is("containerElement")&&P.is("containerElement")))throw new u.Bb("view-writer-merge-containers-invalid-position",this.document);const K=g.getChild(g.childCount-1),ie=K instanceof z?Le._createAt(K,"end"):Le._createAt(g,"end");return this.move(Ht._createIn(P),Le._createAt(g,"end")),this.remove(Ht._createOn(P)),ie}insert(o,g){Ft(g=(0,u.TW)(g)?[...g]:[g],this.document);const P=g.reduce((xe,jt)=>{const tn=xe[xe.length-1],xn=!jt.is("uiElement");return tn&&tn.breakAttributes==xn?tn.nodes.push(jt):xe.push({breakAttributes:xn,nodes:[jt]}),xe},[]);let K=null,ie=o;for(const{nodes:xe,breakAttributes:jt}of P){const tn=this._insertNodes(ie,xe,jt);K||(K=tn.start),ie=tn.end}return K?new Ht(K,ie):new Ht(o)}remove(o){const g=o instanceof Ht?o:Ht._createOn(o);if(wn(g,this.document),g.isCollapsed)return new Zt(this.document);const{start:P,end:K}=this._breakAttributesRange(g,!0),ie=P.parent,xe=K.offset-P.offset,jt=ie._removeChildren(P.offset,xe);for(const xn of jt)this._removeFromClonedElementsGroup(xn);const tn=this.mergeAttributes(P);return g.start=tn,g.end=tn.clone(),new Zt(this.document,jt)}clear(o,g){wn(o,this.document);const P=o.getWalker({direction:"backward",ignoreElementEnd:!0});for(const K of P){const ie=K.item;let xe;if(ie.is("element")&&g.isSimilar(ie))xe=Ht._createOn(ie);else if(!K.nextPosition.isAfter(o.start)&&ie.is("$textProxy")){const jt=ie.getAncestors().find(tn=>tn.is("element")&&g.isSimilar(tn));jt&&(xe=Ht._createIn(jt))}xe&&(xe.end.isAfter(o.end)&&(xe.end=o.end),xe.start.isBefore(o.start)&&(xe.start=o.start),this.remove(xe))}}move(o,g){let P;if(g.isAfter(o.end)){const K=(g=this._breakAttributes(g,!0)).parent,ie=K.childCount;o=this._breakAttributesRange(o,!0),P=this.remove(o),g.offset+=K.childCount-ie}else P=this.remove(o);return this.insert(g,P)}wrap(o,g){if(!(g instanceof ke))throw new u.Bb("view-writer-wrap-invalid-attribute",this.document);if(wn(o,this.document),o.isCollapsed){let K=o.start;K.parent.is("element")&&(P=K.parent,!Array.from(P.getChildren()).some(xe=>!xe.is("uiElement")))&&(K=K.getLastMatchingPosition(xe=>xe.item.is("uiElement"))),K=this._wrapPosition(K,g);const ie=this.document.selection;return ie.isCollapsed&&ie.getFirstPosition().isEqual(o.start)&&this.setSelection(K),new Ht(K)}return this._wrapRange(o,g);var P}unwrap(o,g){if(!(g instanceof ke))throw new u.Bb("view-writer-unwrap-invalid-attribute",this.document);if(wn(o,this.document),o.isCollapsed)return o;const{start:P,end:K}=this._breakAttributesRange(o,!0),ie=P.parent,xe=this._unwrapChildren(ie,P.offset,K.offset,g),jt=this.mergeAttributes(xe.start);jt.isEqual(xe.start)||xe.end.offset--;const tn=this.mergeAttributes(xe.end);return new Ht(jt,tn)}rename(o,g){const P=new Et(this.document,o,g.getAttributes());return this.insert(Le._createAfter(g),P),this.move(Ht._createIn(g),Le._createAt(P,0)),this.remove(Ht._createOn(g)),P}clearClonedElementsGroup(o){this._cloneGroups.delete(o)}createPositionAt(o,g){return Le._createAt(o,g)}createPositionAfter(o){return Le._createAfter(o)}createPositionBefore(o){return Le._createBefore(o)}createRange(...o){return new Ht(...o)}createRangeOn(o){return Ht._createOn(o)}createRangeIn(o){return Ht._createIn(o)}createSelection(...o){return new tr(...o)}createSlot(o){if(!this._slotFactory)throw new u.Bb("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,o)}_registerSlotFactory(o){this._slotFactory=o}_clearSlotFactory(){this._slotFactory=null}_insertNodes(o,g,P){let K,ie;if(K=P?Pn(o):o.parent.is("$text")?o.parent.parent:o.parent,!K)throw new u.Bb("view-writer-invalid-position-container",this.document);ie=P?this._breakAttributes(o,!0):o.parent.is("$text")?Ke(o):o;const xe=K._insertChild(ie.offset,g);for(const Fn of g)this._addToClonedElementsGroup(Fn);const jt=ie.getShiftedBy(xe),tn=this.mergeAttributes(ie);tn.isEqual(ie)||jt.offset--;const xn=this.mergeAttributes(jt);return new Ht(tn,xn)}_wrapChildren(o,g,P,K){let ie=g;const xe=[];for(;ie<P;){const tn=o.getChild(ie),xn=tn.is("$text"),Fn=tn.is("attributeElement");if(Fn&&this._wrapAttributeElement(K,tn))xe.push(new Le(o,ie));else if(xn||!Fn||Kn(K,tn)){const mr=K._clone();tn._remove(),mr._appendChild(tn),o._insertChild(ie,mr),this._addToClonedElementsGroup(mr),xe.push(new Le(o,ie))}else this._wrapChildren(tn,0,tn.childCount,K);ie++}let jt=0;for(const tn of xe)tn.offset-=jt,tn.offset!=g&&(this.mergeAttributes(tn).isEqual(tn)||(jt++,P--));return Ht._createFromParentsAndOffsets(o,g,o,P)}_unwrapChildren(o,g,P,K){let ie=g;const xe=[];for(;ie<P;){const tn=o.getChild(ie);if(tn.is("attributeElement"))if(tn.isSimilar(K)){const xn=tn.getChildren(),Fn=tn.childCount;tn._remove(),o._insertChild(ie,xn),this._removeFromClonedElementsGroup(tn),xe.push(new Le(o,ie),new Le(o,ie+Fn)),ie+=Fn,P+=Fn-1}else this._unwrapAttributeElement(K,tn)?(xe.push(new Le(o,ie),new Le(o,ie+1)),ie++):(this._unwrapChildren(tn,0,tn.childCount,K),ie++);else ie++}let jt=0;for(const tn of xe)tn.offset-=jt,!(tn.offset==g||tn.offset==P)&&(this.mergeAttributes(tn).isEqual(tn)||(jt++,P--));return Ht._createFromParentsAndOffsets(o,g,o,P)}_wrapRange(o,g){const{start:P,end:K}=this._breakAttributesRange(o,!0),ie=P.parent,xe=this._wrapChildren(ie,P.offset,K.offset,g),jt=this.mergeAttributes(xe.start);jt.isEqual(xe.start)||xe.end.offset--;const tn=this.mergeAttributes(xe.end);return new Ht(jt,tn)}_wrapPosition(o,g){if(g.isSimilar(o.parent))return Rt(o.clone());o.parent.is("$text")&&(o=Ke(o));const P=this.createAttributeElement("_wrapPosition-fake-element");P._priority=Number.POSITIVE_INFINITY,P.isSimilar=()=>!1,o.parent._insertChild(o.offset,P);const K=new Ht(o,o.getShiftedBy(1));this.wrap(K,g);const ie=new Le(P.parent,P.index);P._remove();const xe=ie.nodeBefore,jt=ie.nodeAfter;return xe instanceof z&&jt instanceof z?Oe(xe,jt):Rt(ie)}_wrapAttributeElement(o,g){if(!Gn(o,g)||o.name!==g.name||o.priority!==g.priority)return!1;for(const P of o.getAttributeKeys())if(P!=="class"&&P!=="style"&&g.hasAttribute(P)&&g.getAttribute(P)!==o.getAttribute(P))return!1;for(const P of o.getStyleNames())if(g.hasStyle(P)&&g.getStyle(P)!==o.getStyle(P))return!1;for(const P of o.getAttributeKeys())P!=="class"&&P!=="style"&&(g.hasAttribute(P)||this.setAttribute(P,o.getAttribute(P),g));for(const P of o.getStyleNames())g.hasStyle(P)||this.setStyle(P,o.getStyle(P),g);for(const P of o.getClassNames())g.hasClass(P)||this.addClass(P,g);return!0}_unwrapAttributeElement(o,g){if(!Gn(o,g)||o.name!==g.name||o.priority!==g.priority)return!1;for(const P of o.getAttributeKeys())if(P!=="class"&&P!=="style"&&(!g.hasAttribute(P)||g.getAttribute(P)!==o.getAttribute(P)))return!1;if(!g.hasClass(...o.getClassNames()))return!1;for(const P of o.getStyleNames())if(!g.hasStyle(P)||g.getStyle(P)!==o.getStyle(P))return!1;for(const P of o.getAttributeKeys())P!=="class"&&P!=="style"&&this.removeAttribute(P,g);return this.removeClass(Array.from(o.getClassNames()),g),this.removeStyle(Array.from(o.getStyleNames()),g),!0}_breakAttributesRange(o,g=!1){const P=o.start,K=o.end;if(wn(o,this.document),o.isCollapsed){const tn=this._breakAttributes(o.start,g);return new Ht(tn,tn)}const ie=this._breakAttributes(K,g),xe=ie.parent.childCount,jt=this._breakAttributes(P,g);return ie.offset+=ie.parent.childCount-xe,new Ht(jt,ie)}_breakAttributes(o,g=!1){const P=o.offset,K=o.parent;if(o.parent.is("emptyElement"))throw new u.Bb("view-writer-cannot-break-empty-element",this.document);if(o.parent.is("uiElement"))throw new u.Bb("view-writer-cannot-break-ui-element",this.document);if(o.parent.is("rawElement"))throw new u.Bb("view-writer-cannot-break-raw-element",this.document);if(!g&&K.is("$text")&&Qt(K.parent)||Qt(K))return o.clone();if(K.is("$text"))return this._breakAttributes(Ke(o),g);if(P==K.childCount){const ie=new Le(K.parent,K.index+1);return this._breakAttributes(ie,g)}if(P===0){const ie=new Le(K.parent,K.index);return this._breakAttributes(ie,g)}{const ie=K.index+1,xe=K._clone();K.parent._insertChild(ie,xe),this._addToClonedElementsGroup(xe);const jt=K.childCount-P,tn=K._removeChildren(P,jt);xe._appendChild(tn);const xn=new Le(K.parent,ie);return this._breakAttributes(xn,g)}}_addToClonedElementsGroup(o){if(!o.root.is("rootElement"))return;if(o.is("element"))for(const K of o.getChildren())this._addToClonedElementsGroup(K);const g=o.id;if(!g)return;let P=this._cloneGroups.get(g);P||(P=new Set,this._cloneGroups.set(g,P)),P.add(o),o._clonesGroup=P}_removeFromClonedElementsGroup(o){if(o.is("element"))for(const K of o.getChildren())this._removeFromClonedElementsGroup(K);const g=o.id;if(!g)return;const P=this._cloneGroups.get(g);P&&P.delete(o)}}function Pn(W){let o=W.parent;for(;!Qt(o);){if(!o)return;o=o.parent}return o}function Kn(W,o){return W.priority<o.priority||!(W.priority>o.priority)&&W.getIdentity()<o.getIdentity()}function Rt(W){const o=W.nodeBefore;if(o&&o.is("$text"))return new Le(o,o.data.length);const g=W.nodeAfter;return g&&g.is("$text")?new Le(g,0):W}function Ke(W){if(W.offset==W.parent.data.length)return new Le(W.parent.parent,W.parent.index+1);if(W.offset===0)return new Le(W.parent.parent,W.parent.index);const o=W.parent.data.slice(W.offset);return W.parent._data=W.parent.data.slice(0,W.offset),W.parent.parent._insertChild(W.parent.index+1,new z(W.root.document,o)),new Le(W.parent.parent,W.parent.index+1)}function Oe(W,o){const g=W.data.length;return W._data+=o.data,o._remove(),new Le(W,g)}const Ge=[z,ke,Et,Mt,On,Rn];function Ft(W,o){for(const g of W){if(!Ge.some(P=>g instanceof P))throw new u.Bb("view-writer-insert-invalid-node-type",o);g.is("$text")||Ft(g.getChildren(),o)}}function Qt(W){return W&&(W.is("containerElement")||W.is("documentFragment"))}function wn(W,o){const g=Pn(W.start),P=Pn(W.end);if(!g||!P||g!==P)throw new u.Bb("view-writer-invalid-range-container",o)}function Gn(W,o){return W.id===null&&o.id===null}const ir=W=>W.createTextNode("\xA0"),br=W=>{const o=W.createElement("span");return o.dataset.ckeFiller="true",o.innerText="\xA0",o},fr=W=>{const o=W.createElement("br");return o.dataset.ckeFiller="true",o},Er=7,Or="\u2060".repeat(Er);function oi(W){return(0,u.Gs)(W)&&W.data.substr(0,Er)===Or}function si(W){return W.data.length==Er&&oi(W)}function Fi(W){return oi(W)?W.data.slice(Er):W.data}function $i(W,o){if(o.keyCode==u.Do.arrowleft){const g=o.domTarget.ownerDocument.defaultView.getSelection();if(g.rangeCount==1&&g.getRangeAt(0).collapsed){const P=g.getRangeAt(0).startContainer,K=g.getRangeAt(0).startOffset;oi(P)&&K<=Er&&g.collapse(P,0)}}}var Vi=p("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-engine/theme/renderer.css"),Bn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};k()(Vi.Z,Bn),Vi.Z.locals;class nt extends(0,u.Re)(){constructor(o,g){super(),this.domDocuments=new Set,this.domConverter=o,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this.selection=g,this.set("isFocused",!1),this.set("isSelecting",!1),u.OB.isBlink&&!u.OB.isAndroid&&this.on("change:isSelecting",()=>{this.isSelecting||this.render()}),this.set("isComposing",!1),this.on("change:isComposing",()=>{this.isComposing||this.render()}),this._inlineFiller=null,this._fakeSelectionContainer=null}markToSync(o,g){if(o==="text")this.domConverter.mapViewToDom(g.parent)&&this.markedTexts.add(g);else{if(!this.domConverter.mapViewToDom(g))return;if(o==="attributes")this.markedAttributes.add(g);else{if(o!=="children")throw new u.Bb("view-renderer-unknown-type",this);this.markedChildren.add(g)}}}render(){if(this.isComposing&&!u.OB.isAndroid)return;let o=null;const g=!(u.OB.isBlink&&!u.OB.isAndroid)||!this.isSelecting;for(const P of this.markedChildren)this._updateChildrenMappings(P);g?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?o=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(o=this.selection.getFirstPosition(),this.markedChildren.add(o.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&(o=this.domConverter.domPositionToView(this._inlineFiller),o&&o.parent.is("$text")&&(o=Le._createBefore(o.parent)));for(const P of this.markedAttributes)this._updateAttrs(P);for(const P of this.markedChildren)this._updateChildren(P,{inlineFillerPosition:o});for(const P of this.markedTexts)!this.markedChildren.has(P.parent)&&this.domConverter.mapViewToDom(P.parent)&&this._updateText(P,{inlineFillerPosition:o});if(g)if(o){const P=this.domConverter.viewPositionToDom(o),K=P.parent.ownerDocument;oi(P.parent)?this._inlineFiller=P.parent:this._inlineFiller=ve(K,P.parent,P.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(o){if(!this.domConverter.mapViewToDom(o))return;const g=Array.from(this.domConverter.mapViewToDom(o).childNodes),P=Array.from(this.domConverter.viewChildrenToDom(o,{withChildren:!1})),K=this._diffNodeLists(g,P),ie=this._findReplaceActions(K,g,P);if(ie.indexOf("replace")!==-1){const xe={equal:0,insert:0,delete:0};for(const jt of ie)if(jt==="replace"){const tn=xe.equal+xe.insert,xn=xe.equal+xe.delete,Fn=o.getChild(tn);!Fn||Fn.is("uiElement")||Fn.is("rawElement")||this._updateElementMappings(Fn,g[xn]),(0,u.Od)(P[tn]),xe.equal++}else xe[jt]++}}_updateElementMappings(o,g){this.domConverter.unbindDomElement(g),this.domConverter.bindElements(g,o),this.markedChildren.add(o),this.markedAttributes.add(o)}_getInlineFillerPosition(){const o=this.selection.getFirstPosition();return o.parent.is("$text")?Le._createBefore(o.parent):o}_isSelectionInInlineFiller(){if(this.selection.rangeCount!=1||!this.selection.isCollapsed)return!1;const o=this.selection.getFirstPosition(),g=this.domConverter.viewPositionToDom(o);return!!(g&&(0,u.Gs)(g.parent)&&oi(g.parent))}_removeInlineFiller(){const o=this._inlineFiller;if(!oi(o))throw new u.Bb("view-renderer-filler-was-lost",this);si(o)?o.remove():o.data=o.data.substr(Er),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(this.selection.rangeCount!=1||!this.selection.isCollapsed)return!1;const o=this.selection.getFirstPosition(),g=o.parent,P=o.offset;if(!this.domConverter.mapViewToDom(g.root)||!g.is("element")||!function(xe){if(xe.getAttribute("contenteditable")=="false")return!1;const jt=xe.findAncestor(tn=>tn.hasAttribute("contenteditable"));return!jt||jt.getAttribute("contenteditable")=="true"}(g)||P===g.getFillerOffset())return!1;const K=o.nodeBefore,ie=o.nodeAfter;return!(K instanceof z||ie instanceof z)&&(!u.OB.isAndroid||!K&&!ie)}_updateText(o,g){const P=this.domConverter.findCorrespondingDomText(o);let K=this.domConverter.viewToDom(o).data;const ie=g.inlineFillerPosition;ie&&ie.parent==o.parent&&ie.offset==o.index&&(K=Or+K),St(P,K)}_updateAttrs(o){const g=this.domConverter.mapViewToDom(o);if(!g)return;const P=Array.from(g.attributes).map(ie=>ie.name),K=o.getAttributeKeys();for(const ie of K)this.domConverter.setDomElementAttribute(g,ie,o.getAttribute(ie),o);for(const ie of P)o.hasAttribute(ie)||this.domConverter.removeDomElementAttribute(g,ie)}_updateChildren(o,g){const P=this.domConverter.mapViewToDom(o);if(!P)return;if(u.OB.isAndroid){let mr=null;for(const Pr of Array.from(P.childNodes)){if(mr&&(0,u.Gs)(mr)&&(0,u.Gs)(Pr)){P.normalize();break}mr=Pr}}const K=g.inlineFillerPosition,ie=P.childNodes,xe=Array.from(this.domConverter.viewChildrenToDom(o,{bind:!0}));K&&K.parent===o&&ve(P.ownerDocument,xe,K.offset);const jt=this._diffNodeLists(ie,xe),tn=u.OB.isAndroid?this._findReplaceActions(jt,ie,xe,{replaceText:!0}):jt;let xn=0;const Fn=new Set;for(const mr of tn)mr==="delete"?(Fn.add(ie[xn]),(0,u.Od)(ie[xn])):mr!=="equal"&&mr!=="replace"||xn++;xn=0;for(const mr of tn)mr==="insert"?((0,u.ZQ)(P,xn,xe[xn]),xn++):mr==="replace"?(St(ie[xn],xe[xn].data),xn++):mr==="equal"&&(this._markDescendantTextToSync(this.domConverter.domToView(xe[xn])),xn++);for(const mr of Fn)mr.parentNode||this.domConverter.unbindDomElement(mr)}_diffNodeLists(o,g){return o=function(P,K){const ie=Array.from(P);return ie.length==0||!K||ie[ie.length-1]==K&&ie.pop(),ie}(o,this._fakeSelectionContainer),(0,u.Hg)(o,g,tt.bind(null,this.domConverter))}_findReplaceActions(o,g,P,K={}){if(o.indexOf("insert")===-1||o.indexOf("delete")===-1)return o;let ie=[],xe=[],jt=[];const tn={equal:0,insert:0,delete:0};for(const xn of o)xn==="insert"?jt.push(P[tn.equal+tn.insert]):xn==="delete"?xe.push(g[tn.equal+tn.delete]):(ie=ie.concat((0,u.Hg)(xe,jt,K.replaceText?Ae:he).map(Fn=>Fn==="equal"?"replace":Fn)),ie.push("equal"),xe=[],jt=[]),tn[xn]++;return ie.concat((0,u.Hg)(xe,jt,K.replaceText?Ae:he).map(xn=>xn==="equal"?"replace":xn))}_markDescendantTextToSync(o){if(o){if(o.is("$text"))this.markedTexts.add(o);else if(o.is("element"))for(const g of o.getChildren())this._markDescendantTextToSync(g)}}_updateSelection(){if(u.OB.isBlink&&!u.OB.isAndroid&&this.isSelecting&&!this.markedChildren.size)return;if(this.selection.rangeCount===0)return this._removeDomSelection(),void this._removeFakeSelection();const o=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&o&&(this.selection.isFake?this._updateFakeSelection(o):this._fakeSelectionContainer&&this._fakeSelectionContainer.isConnected?(this._removeFakeSelection(),this._updateDomSelection(o)):this.isComposing&&u.OB.isAndroid||this._updateDomSelection(o))}_updateFakeSelection(o){const g=o.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(xe){const jt=xe.createElement("div");return jt.className="ck-fake-selection-container",Object.assign(jt.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),jt.textContent="\xA0",jt}(g));const P=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(P,this.selection),!this._fakeSelectionNeedsUpdate(o))return;P.parentElement&&P.parentElement==o||o.appendChild(P),P.textContent=this.selection.fakeSelectionLabel||"\xA0";const K=g.getSelection(),ie=g.createRange();K.removeAllRanges(),ie.selectNodeContents(P),K.addRange(ie)}_updateDomSelection(o){const g=o.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(g))return;const P=this.domConverter.viewPositionToDom(this.selection.anchor),K=this.domConverter.viewPositionToDom(this.selection.focus);g.collapse(P.parent,P.offset),g.extend(K.parent,K.offset),u.OB.isGecko&&function(ie,xe){const jt=ie.parent;if(jt.nodeType!=Node.ELEMENT_NODE||ie.offset!=jt.childNodes.length-1)return;const tn=jt.childNodes[ie.offset];tn&&tn.tagName=="BR"&&xe.addRange(xe.getRangeAt(0))}(K,g)}_domSelectionNeedsUpdate(o){if(!this.domConverter.isDomSelectionCorrect(o))return!0;const g=o&&this.domConverter.domSelectionToView(o);return(!g||!this.selection.isEqual(g))&&!(!this.selection.isCollapsed&&this.selection.isSimilar(g))}_fakeSelectionNeedsUpdate(o){const g=this._fakeSelectionContainer,P=o.ownerDocument.getSelection();return!g||g.parentElement!==o||P.anchorNode!==g&&!g.contains(P.anchorNode)||g.textContent!==this.selection.fakeSelectionLabel}_removeDomSelection(){for(const o of this.domDocuments){const g=o.getSelection();if(g.rangeCount){const P=o.activeElement,K=this.domConverter.mapDomToView(P);P&&K&&g.removeAllRanges()}}}_removeFakeSelection(){const o=this._fakeSelectionContainer;o&&o.remove()}_updateFocus(){if(this.isFocused){const o=this.selection.editableElement;o&&this.domConverter.focus(o)}}}function ve(W,o,g){const P=o instanceof Array?o:o.childNodes,K=P[g];if((0,u.Gs)(K))return K.data=Or+K.data,K;{const ie=W.createTextNode(Or);return Array.isArray(o)?P.splice(g,0,ie):(0,u.ZQ)(o,g,ie),ie}}function he(W,o){return(0,u.UG)(W)&&(0,u.UG)(o)&&!(0,u.Gs)(W)&&!(0,u.Gs)(o)&&!(0,u.C3)(W)&&!(0,u.C3)(o)&&W.tagName.toLowerCase()===o.tagName.toLowerCase()}function Ae(W,o){return(0,u.UG)(W)&&(0,u.UG)(o)&&(0,u.Gs)(W)&&(0,u.Gs)(o)}function tt(W,o,g){return o===g||((0,u.Gs)(o)&&(0,u.Gs)(g)?o.data===g.data:!(!W.isBlockFiller(o)||!W.isBlockFiller(g)))}function St(W,o){const g=W.data;if(g==o)return;const P=(0,u.HZ)(g,o);for(const K of P)K.type==="insert"?W.insertData(K.index,K.values.join("")):W.deleteData(K.index,K.howMany)}const kt=fr(u.CO.document),Jt=ir(u.CO.document),gt=br(u.CO.document),dn="data-ck-unsafe-attribute-",Xt="data-ck-unsafe-element";class hn{constructor(o,g={}){this.document=o,this.renderingMode=g.renderingMode||"editing",this.blockFillerMode=g.blockFillerMode||(this.renderingMode==="editing"?"br":"nbsp"),this.preElements=["pre"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this.unsafeElements=["script","style"],this._domDocument=this.renderingMode==="editing"?u.CO.document:u.CO.document.implementation.createHTMLDocument(""),this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new ee,this._encounteredRawContentDomNodes=new WeakSet}bindFakeSelection(o,g){this._fakeSelectionMapping.set(o,new tr(g))}fakeSelectionToView(o){return this._fakeSelectionMapping.get(o)}bindElements(o,g){this._domToViewMapping.set(o,g),this._viewToDomMapping.set(g,o)}unbindDomElement(o){const g=this._domToViewMapping.get(o);if(g){this._domToViewMapping.delete(o),this._viewToDomMapping.delete(g);for(const P of Array.from(o.children))this.unbindDomElement(P)}}bindDocumentFragments(o,g){this._domToViewMapping.set(o,g),this._viewToDomMapping.set(g,o)}shouldRenderAttribute(o,g,P){return this.renderingMode==="data"||!(o=o.toLowerCase()).startsWith("on")&&(o!=="srcdoc"||!g.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&(P==="img"&&(o==="src"||o==="srcset")||P==="source"&&o==="srcset"||!g.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))}setContentOf(o,g){if(this.renderingMode==="data")return void(o.innerHTML=g);const P=new DOMParser().parseFromString(g,"text/html"),K=P.createDocumentFragment(),ie=P.body.childNodes;for(;ie.length>0;)K.appendChild(ie[0]);const xe=P.createTreeWalker(K,NodeFilter.SHOW_ELEMENT),jt=[];let tn;for(;tn=xe.nextNode();)jt.push(tn);for(const xn of jt){for(const mr of xn.getAttributeNames())this.setDomElementAttribute(xn,mr,xn.getAttribute(mr));const Fn=xn.tagName.toLowerCase();this._shouldRenameElement(Fn)&&(Vn(Fn),xn.replaceWith(this._createReplacementDomElement(Fn,xn)))}for(;o.firstChild;)o.firstChild.remove();o.append(K)}viewToDom(o,g={}){if(o.is("$text")){const P=this._processDataFromViewText(o);return this._domDocument.createTextNode(P)}{if(this.mapViewToDom(o))return this.mapViewToDom(o);let P;if(o.is("documentFragment"))P=this._domDocument.createDocumentFragment(),g.bind&&this.bindDocumentFragments(P,o);else{if(o.is("uiElement"))return P=o.name==="$comment"?this._domDocument.createComment(o.getCustomProperty("$rawContent")):o.render(this._domDocument,this),g.bind&&this.bindElements(P,o),P;this._shouldRenameElement(o.name)?(Vn(o.name),P=this._createReplacementDomElement(o.name)):P=o.hasAttribute("xmlns")?this._domDocument.createElementNS(o.getAttribute("xmlns"),o.name):this._domDocument.createElement(o.name),o.is("rawElement")&&o.render(P,this),g.bind&&this.bindElements(P,o);for(const K of o.getAttributeKeys())this.setDomElementAttribute(P,K,o.getAttribute(K),o)}if(g.withChildren!==!1)for(const K of this.viewChildrenToDom(o,g))P.appendChild(K);return P}}setDomElementAttribute(o,g,P,K){const ie=this.shouldRenderAttribute(g,P,o.tagName.toLowerCase())||K&&K.shouldRenderUnsafeAttribute(g);ie||(0,u.KE)("domconverter-unsafe-attribute-detected",{domElement:o,key:g,value:P}),o.hasAttribute(g)&&!ie?o.removeAttribute(g):o.hasAttribute(dn+g)&&ie&&o.removeAttribute(dn+g),o.setAttribute(ie?g:dn+g,P)}removeDomElementAttribute(o,g){g!=Xt&&(o.removeAttribute(g),o.removeAttribute(dn+g))}*viewChildrenToDom(o,g={}){const P=o.getFillerOffset&&o.getFillerOffset();let K=0;for(const ie of o.getChildren()){P===K&&(yield this._getBlockFiller());const xe=ie.is("element")&&!!ie.getCustomProperty("dataPipeline:transparentRendering")&&!(0,u.Ps)(ie.getAttributes());xe&&this.renderingMode=="data"?yield*this.viewChildrenToDom(ie,g):(xe&&(0,u.KE)("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:ie}),yield this.viewToDom(ie,g)),K++}P===K&&(yield this._getBlockFiller())}viewRangeToDom(o){const g=this.viewPositionToDom(o.start),P=this.viewPositionToDom(o.end),K=this._domDocument.createRange();return K.setStart(g.parent,g.offset),K.setEnd(P.parent,P.offset),K}viewPositionToDom(o){const g=o.parent;if(g.is("$text")){const P=this.findCorrespondingDomText(g);if(!P)return null;let K=o.offset;return oi(P)&&(K+=Er),{parent:P,offset:K}}{let P,K,ie;if(o.offset===0){if(P=this.mapViewToDom(g),!P)return null;ie=P.childNodes[0]}else{const xe=o.nodeBefore;if(K=xe.is("$text")?this.findCorrespondingDomText(xe):this.mapViewToDom(xe),!K)return null;P=K.parentNode,ie=K.nextSibling}return(0,u.Gs)(ie)&&oi(ie)?{parent:ie,offset:Er}:{parent:P,offset:K?(0,u.cq)(K)+1:0}}}domToView(o,g={}){if(this.isBlockFiller(o))return null;const P=this.getHostViewElement(o);if(P)return P;if((0,u.C3)(o)&&g.skipComments)return null;if((0,u.Gs)(o)){if(si(o))return null;{const K=this._processDataFromDomText(o);return K===""?null:new z(this.document,K)}}{if(this.mapDomToView(o))return this.mapDomToView(o);let K;if(this.isDocumentFragment(o))K=new Zt(this.document),g.bind&&this.bindDocumentFragments(o,K);else{K=this._createViewElement(o,g),g.bind&&this.bindElements(o,K);const ie=o.attributes;if(ie)for(let xe=ie.length,jt=0;jt<xe;jt++)K._setAttribute(ie[jt].name,ie[jt].value);if(this._isViewElementWithRawContent(K,g)||(0,u.C3)(o)){const xe=(0,u.C3)(o)?o.data:o.innerHTML;return K._setCustomProperty("$rawContent",xe),this._encounteredRawContentDomNodes.add(o),K}}if(g.withChildren!==!1)for(const ie of this.domChildrenToView(o,g))K._appendChild(ie);return K}}*domChildrenToView(o,g){for(let P=0;P<o.childNodes.length;P++){const K=o.childNodes[P],ie=this.domToView(K,g);ie!==null&&(yield ie)}}domSelectionToView(o){if(o.rangeCount===1){let K=o.getRangeAt(0).startContainer;(0,u.Gs)(K)&&(K=K.parentNode);const ie=this.fakeSelectionToView(K);if(ie)return ie}const g=this.isDomSelectionBackward(o),P=[];for(let K=0;K<o.rangeCount;K++){const ie=o.getRangeAt(K),xe=this.domRangeToView(ie);xe&&P.push(xe)}return new tr(P,{backward:g})}domRangeToView(o){const g=this.domPositionToView(o.startContainer,o.startOffset),P=this.domPositionToView(o.endContainer,o.endOffset);return g&&P?new Ht(g,P):null}domPositionToView(o,g=0){if(this.isBlockFiller(o))return this.domPositionToView(o.parentNode,(0,u.cq)(o));const P=this.mapDomToView(o);if(P&&(P.is("uiElement")||P.is("rawElement")))return Le._createBefore(P);if((0,u.Gs)(o)){if(si(o))return this.domPositionToView(o.parentNode,(0,u.cq)(o));const K=this.findCorrespondingViewText(o);let ie=g;return K?(oi(o)&&(ie-=Er,ie=ie<0?0:ie),new Le(K,ie)):null}if(g===0){const K=this.mapDomToView(o);if(K)return new Le(K,0)}else{const K=o.childNodes[g-1];if((0,u.Gs)(K)&&si(K))return this.domPositionToView(K.parentNode,(0,u.cq)(K));const ie=(0,u.Gs)(K)?this.findCorrespondingViewText(K):this.mapDomToView(K);if(ie&&ie.parent)return new Le(ie.parent,ie.index+1)}return null}mapDomToView(o){return this.getHostViewElement(o)||this._domToViewMapping.get(o)}findCorrespondingViewText(o){if(si(o))return null;const g=this.getHostViewElement(o);if(g)return g;const P=o.previousSibling;if(P){if(!this.isElement(P))return null;const K=this.mapDomToView(P);if(K){const ie=K.nextSibling;return ie instanceof z?ie:null}}else{const K=this.mapDomToView(o.parentNode);if(K){const ie=K.getChild(0);return ie instanceof z?ie:null}}return null}mapViewToDom(o){return this._viewToDomMapping.get(o)}findCorrespondingDomText(o){const g=o.previousSibling;return g&&this.mapViewToDom(g)?this.mapViewToDom(g).nextSibling:!g&&o.parent&&this.mapViewToDom(o.parent)?this.mapViewToDom(o.parent).childNodes[0]:null}focus(o){const g=this.mapViewToDom(o);if(g&&g.ownerDocument.activeElement!==g){const{scrollX:P,scrollY:K}=u.CO.window,ie=[];Sn(g,xe=>{const{scrollLeft:jt,scrollTop:tn}=xe;ie.push([jt,tn])}),g.focus(),Sn(g,xe=>{const[jt,tn]=ie.shift();xe.scrollLeft=jt,xe.scrollTop=tn}),u.CO.window.scrollTo(P,K)}}isElement(o){return o&&o.nodeType==Node.ELEMENT_NODE}isDocumentFragment(o){return o&&o.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isBlockFiller(o){return this.blockFillerMode=="br"?o.isEqualNode(kt):!(o.tagName!=="BR"||!Jn(o,this.blockElements)||o.parentNode.childNodes.length!==1)||o.isEqualNode(gt)||function(g,P){return g.isEqualNode(Jt)&&Jn(g,P)&&g.parentNode.childNodes.length===1}(o,this.blockElements)}isDomSelectionBackward(o){if(o.isCollapsed)return!1;const g=this._domDocument.createRange();try{g.setStart(o.anchorNode,o.anchorOffset),g.setEnd(o.focusNode,o.focusOffset)}catch{return!1}const P=g.collapsed;return g.detach(),P}getHostViewElement(o){const g=(0,u.dk)(o);for(g.pop();g.length;){const P=g.pop(),K=this._domToViewMapping.get(P);if(K&&(K.is("uiElement")||K.is("rawElement")))return K}return null}isDomSelectionCorrect(o){return this._isDomSelectionPositionCorrect(o.anchorNode,o.anchorOffset)&&this._isDomSelectionPositionCorrect(o.focusNode,o.focusOffset)}registerRawContentMatcher(o){this._rawContentElementMatcher.add(o)}_getBlockFiller(){switch(this.blockFillerMode){case"nbsp":return ir(this._domDocument);case"markedNbsp":return br(this._domDocument);case"br":return fr(this._domDocument)}}_isDomSelectionPositionCorrect(o,g){if((0,u.Gs)(o)&&oi(o)&&g<Er||this.isElement(o)&&oi(o.childNodes[g]))return!1;const P=this.mapDomToView(o);return!P||!P.is("uiElement")&&!P.is("rawElement")}_processDataFromViewText(o){let g=o.data;if(o.getAncestors().some(P=>this.preElements.includes(P.name)))return g;if(g.charAt(0)==" "){const P=this._getTouchingInlineViewNode(o,!1);!(P&&P.is("$textProxy")&&this._nodeEndsWithSpace(P))&&P||(g="\xA0"+g.substr(1))}if(g.charAt(g.length-1)==" "){const P=this._getTouchingInlineViewNode(o,!0),K=P&&P.is("$textProxy")&&P.data.charAt(0)==" ";g.charAt(g.length-2)!=" "&&P&&!K||(g=g.substr(0,g.length-1)+"\xA0")}return g.replace(/ {2}/g," \xA0")}_nodeEndsWithSpace(o){if(o.getAncestors().some(P=>this.preElements.includes(P.name)))return!1;const g=this._processDataFromViewText(o);return g.charAt(g.length-1)==" "}_processDataFromDomText(o){let g=o.data;if(function(xn,Fn){return(0,u.dk)(xn).some(Pr=>Pr.tagName&&Fn.includes(Pr.tagName.toLowerCase()))}(o,this.preElements))return Fi(o);g=g.replace(/[ \n\t\r]{1,}/g," ");const P=this._getTouchingInlineDomNode(o,!1),K=this._getTouchingInlineDomNode(o,!0),ie=this._checkShouldLeftTrimDomText(o,P),xe=this._checkShouldRightTrimDomText(o,K);ie&&(g=g.replace(/^ /,"")),xe&&(g=g.replace(/ $/,"")),g=Fi(new Text(g)),g=g.replace(/ \u00A0/g,"  ");const jt=K&&this.isElement(K)&&K.tagName!="BR",tn=K&&(0,u.Gs)(K)&&K.data.charAt(0)==" ";return(/( |\u00A0)\u00A0$/.test(g)||!K||jt||tn)&&(g=g.replace(/\u00A0$/," ")),(ie||P&&this.isElement(P)&&P.tagName!="BR")&&(g=g.replace(/^\u00A0/," ")),g}_checkShouldLeftTrimDomText(o,g){return!g||(this.isElement(g)?g.tagName==="BR":!this._encounteredRawContentDomNodes.has(o.previousSibling)&&/[^\S\u00A0]/.test(g.data.charAt(g.data.length-1)))}_checkShouldRightTrimDomText(o,g){return!g&&!oi(o)}_getTouchingInlineViewNode(o,g){const P=new ze({startPosition:g?Le._createAfter(o):Le._createBefore(o),direction:g?"forward":"backward"});for(const K of P){if(K.item.is("element")&&this.inlineObjectElements.includes(K.item.name))return K.item;if(K.item.is("containerElement")||K.item.is("element","br"))return null;if(K.item.is("$textProxy"))return K.item}return null}_getTouchingInlineDomNode(o,g){if(!o.parentNode)return null;const P=g?"firstChild":"lastChild",K=g?"nextSibling":"previousSibling";let ie=!0,xe=o;do if(!ie&&xe[P]?xe=xe[P]:xe[K]?(xe=xe[K],ie=!1):(xe=xe.parentNode,ie=!0),!xe||this._isBlockElement(xe))return null;while(!(0,u.Gs)(xe)&&xe.tagName!="BR"&&!this._isInlineObjectElement(xe));return xe}_isBlockElement(o){return this.isElement(o)&&this.blockElements.includes(o.tagName.toLowerCase())}_isInlineObjectElement(o){return this.isElement(o)&&this.inlineObjectElements.includes(o.tagName.toLowerCase())}_createViewElement(o,g){if((0,u.C3)(o))return new Rn(this.document,"$comment");const P=g.keepOriginalCase?o.tagName:o.tagName.toLowerCase();return new ri(this.document,P)}_isViewElementWithRawContent(o,g){return g.withChildren!==!1&&!!this._rawContentElementMatcher.match(o)}_shouldRenameElement(o){const g=o.toLowerCase();return this.renderingMode==="editing"&&this.unsafeElements.includes(g)}_createReplacementDomElement(o,g){const P=this._domDocument.createElement("span");if(P.setAttribute(Xt,o),g){for(;g.firstChild;)P.appendChild(g.firstChild);for(const K of g.getAttributeNames())P.setAttribute(K,g.getAttribute(K))}return P}}function Sn(W,o){let g=W;for(;g;)o(g),g=g.parentElement}function Jn(W,o){const g=W.parentNode;return!!g&&!!g.tagName&&o.includes(g.tagName.toLowerCase())}function Vn(W){W==="script"&&(0,u.KE)("domconverter-unsafe-script-element-detected"),W==="style"&&(0,u.KE)("domconverter-unsafe-style-element-detected")}class ar extends(0,u.Xu)(){constructor(o){super(),this.view=o,this.document=o.document,this.isEnabled=!1}enable(){this.isEnabled=!0}disable(){this.isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(o){return o&&o.nodeType===3&&(o=o.parentNode),!(!o||o.nodeType!==1)&&o.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}var Vr=p("./node_modules/lodash-es/assignIn.js");class Jr{constructor(o,g,P){this.view=o,this.document=o.document,this.domEvent=g,this.domTarget=g.target,(0,Vr.Z)(this,P)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class yi extends ar{constructor(o){super(o),this.useCapture=!1}observe(o){(typeof this.domEventType=="string"?[this.domEventType]:this.domEventType).forEach(g=>{this.listenTo(o,g,(P,K)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(K.target)&&this.onDomEvent(K)},{useCapture:this.useCapture})})}fire(o,g,P){this.isEnabled&&this.document.fire(o,new Jr(this.view,g,P))}}class Ii extends yi{constructor(o){super(o),this.domEventType=["keydown","keyup"]}onDomEvent(o){const g={keyCode:o.keyCode,altKey:o.altKey,ctrlKey:o.ctrlKey,shiftKey:o.shiftKey,metaKey:o.metaKey,get keystroke(){return(0,u.Cq)(this)}};this.fire(o.type,o,g)}}var ji=p("./node_modules/lodash-es/debounce.js");class _n extends ar{constructor(o){super(o),this._fireSelectionChangeDoneDebounced=(0,ji.Z)(g=>{this.document.fire("selectionChangeDone",g)},200)}observe(){const o=this.document;o.on("arrowKey",(g,P)=>{o.selection.isFake&&this.isEnabled&&P.preventDefault()},{context:"$capture"}),o.on("arrowKey",(g,P)=>{o.selection.isFake&&this.isEnabled&&this._handleSelectionMove(P.keyCode)},{priority:"lowest"})}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(o){const g=this.document.selection,P=new tr(g.getRanges(),{backward:g.isBackward,fake:!1});o!=u.Do.arrowleft&&o!=u.Do.arrowup||P.setTo(P.getFirstPosition()),o!=u.Do.arrowright&&o!=u.Do.arrowdown||P.setTo(P.getLastPosition());const K={oldSelection:g,newSelection:P,domSelection:null};this.document.fire("selectionChange",K),this._fireSelectionChangeDoneDebounced(K)}}var _e="__lodash_hash_undefined__";const rt=function(W){return this.__data__.set(W,_e),this},vt=function(W){return this.__data__.has(W)};function Gt(W){var o=-1,g=W==null?0:W.length;for(this.__data__=new ue.Z;++o<g;)this.add(W[o])}Gt.prototype.add=Gt.prototype.push=rt,Gt.prototype.has=vt;const We=Gt,Ot=function(W,o){for(var g=-1,P=W==null?0:W.length;++g<P;)if(o(W[g],g,W))return!0;return!1},Dt=function(W,o){return W.has(o)};var gn=1,Hn=2;const nr=function(W,o,g,P,K,ie){var xe=g&gn,jt=W.length,tn=o.length;if(jt!=tn&&!(xe&&tn>jt))return!1;var xn=ie.get(W),Fn=ie.get(o);if(xn&&Fn)return xn==o&&Fn==W;var mr=-1,Pr=!0,ti=g&Hn?new We:void 0;for(ie.set(W,o),ie.set(o,W);++mr<jt;){var Ci=W[mr],Ji=o[mr];if(P)var ho=xe?P(Ji,Ci,mr,o,W,ie):P(Ci,Ji,mr,W,o,ie);if(ho!==void 0){if(ho)continue;Pr=!1;break}if(ti){if(!Ot(o,function(is,Fo){if(!Dt(ti,Fo)&&(Ci===is||K(Ci,is,g,P,ie)))return ti.push(Fo)})){Pr=!1;break}}else if(Ci!==Ji&&!K(Ci,Ji,g,P,ie)){Pr=!1;break}}return ie.delete(W),ie.delete(o),Pr};var _r=p("./node_modules/lodash-es/_Symbol.js"),Nr=p("./node_modules/lodash-es/_Uint8Array.js");const Qr=function(W){var o=-1,g=Array(W.size);return W.forEach(function(P,K){g[++o]=[K,P]}),g},ki=function(W){var o=-1,g=Array(W.size);return W.forEach(function(P){g[++o]=P}),g};var Si=1,Ei=2,oo="[object Boolean]",zi="[object Date]",Xi="[object Error]",uo="[object Map]",qi="[object Number]",Ui="[object RegExp]",Vo="[object Set]",Cs="[object String]",ra="[object Symbol]",Ts="[object ArrayBuffer]",Io="[object DataView]",xr=_r.Z?_r.Z.prototype:void 0,ia=xr?xr.valueOf:void 0;const Is=function(W,o,g,P,K,ie,xe){switch(g){case Io:if(W.byteLength!=o.byteLength||W.byteOffset!=o.byteOffset)return!1;W=W.buffer,o=o.buffer;case Ts:return!(W.byteLength!=o.byteLength||!ie(new Nr.Z(W),new Nr.Z(o)));case oo:case zi:case qi:return(0,Tn.Z)(+W,+o);case Xi:return W.name==o.name&&W.message==o.message;case Ui:case Cs:return W==o+"";case uo:var jt=Qr;case Vo:var tn=P&Si;if(jt||(jt=ki),W.size!=o.size&&!tn)return!1;var xn=xe.get(W);if(xn)return xn==o;P|=Ei,xe.set(W,o);var Fn=nr(jt(W),jt(o),P,K,ie,xe);return xe.delete(W),Fn;case ra:if(ia)return ia.call(W)==ia.call(o)}return!1};var Gs=p("./node_modules/lodash-es/_getAllKeys.js"),as=1,Wo=Object.prototype.hasOwnProperty;const Ma=function(W,o,g,P,K,ie){var xe=g&as,jt=(0,Gs.Z)(W),tn=jt.length;if(tn!=(0,Gs.Z)(o).length&&!xe)return!1;for(var xn=tn;xn--;){var Fn=jt[xn];if(!(xe?Fn in o:Wo.call(o,Fn)))return!1}var mr=ie.get(W),Pr=ie.get(o);if(mr&&Pr)return mr==o&&Pr==W;var ti=!0;ie.set(W,o),ie.set(o,W);for(var Ci=xe;++xn<tn;){var Ji=W[Fn=jt[xn]],ho=o[Fn];if(P)var is=xe?P(ho,Ji,Fn,o,W,ie):P(Ji,ho,Fn,W,o,ie);if(!(is===void 0?Ji===ho||K(Ji,ho,g,P,ie):is)){ti=!1;break}Ci||(Ci=Fn=="constructor")}if(ti&&!Ci){var Fo=W.constructor,Ds=o.constructor;Fo==Ds||!("constructor"in W)||!("constructor"in o)||typeof Fo=="function"&&Fo instanceof Fo&&typeof Ds=="function"&&Ds instanceof Ds||(ti=!1)}return ie.delete(W),ie.delete(o),ti};var fa=p("./node_modules/lodash-es/_getTag.js"),dt=1,Fe="[object Arguments]",an="[object Array]",qn="[object Object]",Fr=Object.prototype.hasOwnProperty;const ui=function(W,o,g,P,K,ie){var xe=(0,pe.Z)(W),jt=(0,pe.Z)(o),tn=xe?an:(0,fa.Z)(W),xn=jt?an:(0,fa.Z)(o),Fn=(tn=tn==Fe?qn:tn)==qn,mr=(xn=xn==Fe?qn:xn)==qn,Pr=tn==xn;if(Pr&&(0,ge.Z)(W)){if(!(0,ge.Z)(o))return!1;xe=!0,Fn=!1}if(Pr&&!Fn)return ie||(ie=new Kt.Z),xe||(0,Xe.Z)(W)?nr(W,o,g,P,K,ie):Is(W,o,tn,g,P,K,ie);if(!(g&dt)){var ti=Fn&&Fr.call(W,"__wrapped__"),Ci=mr&&Fr.call(o,"__wrapped__");if(ti||Ci){var Ji=ti?W.value():W,ho=Ci?o.value():o;return ie||(ie=new Kt.Z),K(Ji,ho,g,P,ie)}}return!!Pr&&(ie||(ie=new Kt.Z),Ma(W,o,g,P,K,ie))},Hi=function W(o,g,P,K,ie){return o===g||(o==null||g==null||!(0,ae.Z)(o)&&!(0,ae.Z)(g)?o!=o&&g!=g:ui(o,g,P,K,W,ie))},lo=function(W,o,g){var P=(g=typeof g=="function"?g:void 0)?g(W,o):void 0;return P===void 0?Hi(W,o,void 0,g):!!P};class mo extends ar{constructor(o){super(o),this._config={childList:!0,characterData:!0,subtree:!0},this.domConverter=o.domConverter,this.renderer=o._renderer,this._domElements=[],this._mutationObserver=new window.MutationObserver(this._onMutations.bind(this))}flush(){this._onMutations(this._mutationObserver.takeRecords())}observe(o){this._domElements.push(o),this.isEnabled&&this._mutationObserver.observe(o,this._config)}enable(){super.enable();for(const o of this._domElements)this._mutationObserver.observe(o,this._config)}disable(){super.disable(),this._mutationObserver.disconnect()}destroy(){super.destroy(),this._mutationObserver.disconnect()}_onMutations(o){if(o.length===0)return;const g=this.domConverter,P=new Set,K=new Set;for(const xe of o){const jt=g.mapDomToView(xe.target);jt&&(jt.is("uiElement")||jt.is("rawElement")||xe.type!=="childList"||this._isBogusBrMutation(xe)||K.add(jt))}for(const xe of o){const jt=g.mapDomToView(xe.target);if((!jt||!jt.is("uiElement")&&!jt.is("rawElement"))&&xe.type==="characterData"){const tn=g.findCorrespondingViewText(xe.target);tn&&!K.has(tn.parent)?P.add(tn):!tn&&oi(xe.target)&&K.add(g.mapDomToView(xe.target.parentNode))}}let ie=!1;for(const xe of P)ie=!0,this.renderer.markToSync("text",xe);for(const xe of K){const jt=g.mapViewToDom(xe),tn=Array.from(xe.getChildren()),xn=Array.from(g.domChildrenToView(jt,{withChildren:!1}));lo(tn,xn,ts)||(ie=!0,this.renderer.markToSync("children",xe))}ie&&this.view.forceRender()}_isBogusBrMutation(o){let g=null;return o.nextSibling===null&&o.removedNodes.length===0&&o.addedNodes.length==1&&(g=this.domConverter.domToView(o.addedNodes[0],{withChildren:!1})),g&&g.is("element","br")}}function ts(W,o){if(!Array.isArray(W))return W===o||!(!W.is("$text")||!o.is("$text"))&&W.data===o.data}class co extends yi{constructor(o){super(o),this._isFocusChanging=!1,this.domEventType=["focus","blur"],this.useCapture=!0;const g=this.document;g.on("focus",()=>{this._isFocusChanging=!0,this._renderTimeoutId=setTimeout(()=>{this.flush(),o.change(()=>{})},50)}),g.on("blur",(P,K)=>{const ie=g.selection.editableElement;ie!==null&&ie!==K.target||(g.isFocused=!1,this._isFocusChanging=!1,o.change(()=>{}))})}flush(){this._isFocusChanging&&(this._isFocusChanging=!1,this.document.isFocused=!0)}onDomEvent(o){this.fire(o.type,o)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class Oo extends ar{constructor(o){super(o),this.mutationObserver=o.getObserver(mo),this.focusObserver=o.getObserver(co),this.selection=this.document.selection,this.domConverter=o.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=(0,ji.Z)(g=>{this.document.fire("selectionChangeDone",g)},200),this._clearInfiniteLoopInterval=setInterval(()=>this._clearInfiniteLoop(),1e3),this._documentIsSelectingInactivityTimeoutDebounced=(0,ji.Z)(()=>this.document.isSelecting=!1,5e3),this._loopbackCounter=0}observe(o){const g=o.ownerDocument,P=()=>{this.document.isSelecting&&(this._handleSelectionChange(null,g),this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel())};this.listenTo(o,"selectstart",()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()},{priority:"highest"}),this.listenTo(o,"keydown",P,{priority:"highest",useCapture:!0}),this.listenTo(o,"keyup",P,{priority:"highest",useCapture:!0}),this._documents.has(g)||(this.listenTo(g,"mouseup",P,{priority:"highest",useCapture:!0}),this.listenTo(g,"selectionchange",(K,ie)=>{this.document.isComposing&&!u.OB.isAndroid||(this._handleSelectionChange(ie,g),this._documentIsSelectingInactivityTimeoutDebounced())}),this._documents.add(g))}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_handleSelectionChange(o,g){if(!this.isEnabled)return;const P=g.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(P.anchorNode))return;this.mutationObserver.flush();const K=this.domConverter.domSelectionToView(P);if(K.rangeCount!=0){if(this.view.hasDomSelection=!0,!(this.selection.isEqual(K)&&this.domConverter.isDomSelectionCorrect(P)||++this._loopbackCounter>60))if(this.focusObserver.flush(),this.selection.isSimilar(K))this.view.forceRender();else{const ie={oldSelection:this.selection,newSelection:K,domSelection:P};this.document.fire("selectionChange",ie),this._fireSelectionChangeDoneDebounced(ie)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class Po extends yi{constructor(o){super(o),this.domEventType=["compositionstart","compositionupdate","compositionend"];const g=this.document;g.on("compositionstart",()=>{g.isComposing=!0},{priority:"low"}),g.on("compositionend",()=>{g.isComposing=!1},{priority:"low"})}onDomEvent(o){this.fire(o.type,o,{data:o.data})}}class Yo{constructor(o,g={}){this._files=g.cacheFiles?ns(o):null,this._native=o}get files(){return this._files||(this._files=ns(this._native)),this._files}get types(){return this._native.types}getData(o){return this._native.getData(o)}setData(o,g){this._native.setData(o,g)}set effectAllowed(o){this._native.effectAllowed=o}get effectAllowed(){return this._native.effectAllowed}set dropEffect(o){this._native.dropEffect=o}get dropEffect(){return this._native.dropEffect}get isCanceled(){return this._native.dropEffect=="none"||!!this._native.mozUserCancelled}}function ns(W){const o=Array.from(W.files||[]),g=Array.from(W.items||[]);return o.length?o:g.filter(P=>P.kind==="file").map(P=>P.getAsFile())}class Os extends yi{constructor(o){super(o),this.domEventType=["beforeinput"]}onDomEvent(o){const g=o.getTargetRanges(),P=this.view,K=P.document;let ie=null,xe=null,jt=[];if(o.dataTransfer&&(ie=new Yo(o.dataTransfer)),o.data!==null?xe=o.data:ie&&(xe=ie.getData("text/plain")),K.selection.isFake)jt=Array.from(K.selection.getRanges());else if(g.length)jt=g.map(tn=>P.domConverter.domRangeToView(tn));else if(u.OB.isAndroid){const tn=o.target.ownerDocument.defaultView.getSelection();jt=Array.from(P.domConverter.domSelectionToView(tn).getRanges())}if(u.OB.isAndroid&&o.inputType=="insertCompositionText"&&xe&&xe.endsWith(`
`))this.fire(o.type,o,{inputType:"insertParagraph",targetRanges:[P.createRange(jt[0].end)]});else if(o.inputType=="insertText"&&xe&&xe.includes(`
`)){const tn=xe.split(/\n{1,2}/g);let xn=jt;for(let Fn=0;Fn<tn.length;Fn++){const mr=tn[Fn];mr!=""&&(this.fire(o.type,o,{data:mr,dataTransfer:ie,targetRanges:xn,inputType:o.inputType,isComposing:o.isComposing}),xn=[K.selection.getFirstRange()]),Fn+1<tn.length&&(this.fire(o.type,o,{inputType:"insertParagraph",targetRanges:xn}),xn=[K.selection.getFirstRange()])}}else this.fire(o.type,o,{data:xe,dataTransfer:ie,targetRanges:jt,inputType:o.inputType,isComposing:o.isComposing})}}class Lo extends ar{constructor(o){super(o),this.document.on("keydown",(g,P)=>{if(this.isEnabled&&(0,u.dj)(P.keyCode)){const K=new Xr(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(K,P),K.stop.called&&g.stop()}})}observe(){}}class da extends ar{constructor(o){super(o);const g=this.document;g.on("keydown",(P,K)=>{if(!this.isEnabled||K.keyCode!=u.Do.tab||K.ctrlKey)return;const ie=new Xr(g,"tab",g.selection.getFirstRange());g.fire(ie,K),ie.stop.called&&P.stop()})}observe(){}}class Qs extends(0,u.Re)(){constructor(o){super(),this.document=new Re(o),this.domConverter=new hn(this.document),this.domRoots=new Map,this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new nt(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting","isComposing").to(this.document,"isFocused","isSelecting","isComposing"),this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this._writer=new Cn(this.document),this.addObserver(mo),this.addObserver(co),this.addObserver(Oo),this.addObserver(Ii),this.addObserver(_n),this.addObserver(Po),this.addObserver(Lo),this.addObserver(Os),this.addObserver(da),this.document.on("arrowKey",$i,{priority:"low"}),Qn(this),this.on("render",()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1}),this.listenTo(this.document.selection,"change",()=>{this._hasChangedSinceTheLastRendering=!0}),this.listenTo(this.document,"change:isFocused",()=>{this._hasChangedSinceTheLastRendering=!0})}attachDomRoot(o,g="main"){const P=this.document.getRoot(g);P._name=o.tagName.toLowerCase();const K={};for(const{name:xe,value:jt}of Array.from(o.attributes))K[xe]=jt,xe==="class"?this._writer.addClass(jt.split(" "),P):this._writer.setAttribute(xe,jt,P);this._initialDomRootAttributes.set(o,K);const ie=()=>{this._writer.setAttribute("contenteditable",(!P.isReadOnly).toString(),P),P.isReadOnly?this._writer.addClass("ck-read-only",P):this._writer.removeClass("ck-read-only",P)};ie(),this.domRoots.set(g,o),this.domConverter.bindElements(o,P),this._renderer.markToSync("children",P),this._renderer.markToSync("attributes",P),this._renderer.domDocuments.add(o.ownerDocument),P.on("change:children",(xe,jt)=>this._renderer.markToSync("children",jt)),P.on("change:attributes",(xe,jt)=>this._renderer.markToSync("attributes",jt)),P.on("change:text",(xe,jt)=>this._renderer.markToSync("text",jt)),P.on("change:isReadOnly",()=>this.change(ie)),P.on("change",()=>{this._hasChangedSinceTheLastRendering=!0});for(const xe of this._observers.values())xe.observe(o,g)}detachDomRoot(o){const g=this.domRoots.get(o);Array.from(g.attributes).forEach(({name:K})=>g.removeAttribute(K));const P=this._initialDomRootAttributes.get(g);for(const K in P)g.setAttribute(K,P[K]);this.domRoots.delete(o),this.domConverter.unbindDomElement(g)}getDomRoot(o="main"){return this.domRoots.get(o)}addObserver(o){let g=this._observers.get(o);if(g)return g;g=new o(this),this._observers.set(o,g);for(const[P,K]of this.domRoots)g.observe(K,P);return g.enable(),g}getObserver(o){return this._observers.get(o)}disableObservers(){for(const o of this._observers.values())o.disable()}enableObservers(){for(const o of this._observers.values())o.enable()}scrollToTheSelection(){const o=this.document.selection.getFirstRange();o&&(0,u.mR)({target:this.domConverter.viewRangeToDom(o),viewportOffset:20})}focus(){if(!this.document.isFocused){const o=this.document.selection.editableElement;o&&(this.domConverter.focus(o),this.forceRender())}}change(o){if(this.isRenderingInProgress||this._postFixersInProgress)throw new u.Bb("cannot-change-view-tree",this);try{if(this._ongoingChange)return o(this._writer);this._ongoingChange=!0;const g=o(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),g}catch(g){u.Bb.rethrowUnexpectedError(g,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.getObserver(co).flush(),this.change(()=>{})}destroy(){for(const o of this._observers.values())o.destroy();this.document.destroy(),this.stopListening()}createPositionAt(o,g){return Le._createAt(o,g)}createPositionAfter(o){return Le._createAfter(o)}createPositionBefore(o){return Le._createBefore(o)}createRange(...o){return new Ht(...o)}createRangeOn(o){return Ht._createOn(o)}createRangeIn(o){return Ht._createIn(o)}createSelection(...o){return new tr(...o)}_disableRendering(o){this._renderingDisabled=o,o==0&&this.change(()=>{})}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}class ta{is(){throw new Error("is() method is abstract")}}class Oa extends ta{constructor(o){super(),this.parent=null,this._attrs=(0,u.qL)(o)}get document(){return null}get index(){let o;if(!this.parent)return null;if((o=this.parent.getChildIndex(this))===null)throw new u.Bb("model-node-not-found-in-parent",this);return o}get startOffset(){let o;if(!this.parent)return null;if((o=this.parent.getChildStartOffset(this))===null)throw new u.Bb("model-node-not-found-in-parent",this);return o}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const o=this.index;return o!==null&&this.parent.getChild(o+1)||null}get previousSibling(){const o=this.index;return o!==null&&this.parent.getChild(o-1)||null}get root(){let o=this;for(;o.parent;)o=o.parent;return o}isAttached(){return this.root.is("rootElement")}getPath(){const o=[];let g=this;for(;g.parent;)o.unshift(g.startOffset),g=g.parent;return o}getAncestors(o={}){const g=[];let P=o.includeSelf?this:this.parent;for(;P;)g[o.parentFirst?"push":"unshift"](P),P=P.parent;return g}getCommonAncestor(o,g={}){const P=this.getAncestors(g),K=o.getAncestors(g);let ie=0;for(;P[ie]==K[ie]&&P[ie];)ie++;return ie===0?null:P[ie-1]}isBefore(o){if(this==o||this.root!==o.root)return!1;const g=this.getPath(),P=o.getPath(),K=(0,u.Rt)(g,P);switch(K){case"prefix":return!0;case"extension":return!1;default:return g[K]<P[K]}}isAfter(o){return this!=o&&this.root===o.root&&!this.isBefore(o)}hasAttribute(o){return this._attrs.has(o)}getAttribute(o){return this._attrs.get(o)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}toJSON(){const o={};return this._attrs.size&&(o.attributes=Array.from(this._attrs).reduce((g,P)=>(g[P[0]]=P[1],g),{})),o}_clone(o){return new this.constructor(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(o,g){this._attrs.set(o,g)}_setAttributesTo(o){this._attrs=(0,u.qL)(o)}_removeAttribute(o){return this._attrs.delete(o)}_clearAttributes(){this._attrs.clear()}}Oa.prototype.is=function(W){return W==="node"||W==="model:node"};class _l{constructor(o){this._nodes=[],o&&this._insertNodes(0,o)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce((o,g)=>o+g.offsetSize,0)}getNode(o){return this._nodes[o]||null}getNodeIndex(o){const g=this._nodes.indexOf(o);return g==-1?null:g}getNodeStartOffset(o){const g=this.getNodeIndex(o);return g===null?null:this._nodes.slice(0,g).reduce((P,K)=>P+K.offsetSize,0)}indexToOffset(o){if(o==this._nodes.length)return this.maxOffset;const g=this._nodes[o];if(!g)throw new u.Bb("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(g)}offsetToIndex(o){let g=0;for(const P of this._nodes){if(o>=g&&o<g+P.offsetSize)return this.getNodeIndex(P);g+=P.offsetSize}if(g!=o)throw new u.Bb("model-nodelist-offset-out-of-bounds",this,{offset:o,nodeList:this});return this.length}_insertNodes(o,g){for(const P of g)if(!(P instanceof Oa))throw new u.Bb("model-nodelist-insertnodes-not-node",this);this._nodes=(0,u.x)(this._nodes,Array.from(g),o,0)}_removeNodes(o,g=1){return this._nodes.splice(o,g)}toJSON(){return this._nodes.map(o=>o.toJSON())}}class gs extends Oa{constructor(o,g){super(g),this._data=o||""}get offsetSize(){return this.data.length}get data(){return this._data}toJSON(){const o=super.toJSON();return o.data=this.data,o}_clone(){return new gs(this.data,this.getAttributes())}static fromJSON(o){return new gs(o.data,o.attributes)}}gs.prototype.is=function(W){return W==="$text"||W==="model:$text"||W==="text"||W==="model:text"||W==="node"||W==="model:node"};class ds extends ta{constructor(o,g,P){if(super(),this.textNode=o,g<0||g>o.offsetSize)throw new u.Bb("model-textproxy-wrong-offsetintext",this);if(P<0||g+P>o.offsetSize)throw new u.Bb("model-textproxy-wrong-length",this);this.data=o.data.substring(g,g+P),this.offsetInText=g}get startOffset(){return this.textNode.startOffset!==null?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return this.startOffset!==null?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}getPath(){const o=this.textNode.getPath();return o.length>0&&(o[o.length-1]+=this.offsetInText),o}getAncestors(o={}){const g=[];let P=o.includeSelf?this:this.parent;for(;P;)g[o.parentFirst?"push":"unshift"](P),P=P.parent;return g}hasAttribute(o){return this.textNode.hasAttribute(o)}getAttribute(o){return this.textNode.getAttribute(o)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}ds.prototype.is=function(W){return W==="$textProxy"||W==="model:$textProxy"||W==="textProxy"||W==="model:textProxy"};class es extends Oa{constructor(o,g,P){super(g),this._children=new _l,this.name=o,P&&this._insertChild(0,P)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return this.childCount===0}getChild(o){return this._children.getNode(o)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(o){return this._children.getNodeIndex(o)}getChildStartOffset(o){return this._children.getNodeStartOffset(o)}offsetToIndex(o){return this._children.offsetToIndex(o)}getNodeByPath(o){let g=this;for(const P of o)g=g.getChild(g.offsetToIndex(P));return g}findAncestor(o,g={}){let P=g.includeSelf?this:this.parent;for(;P;){if(P.name===o)return P;P=P.parent}return null}toJSON(){const o=super.toJSON();if(o.name=this.name,this._children.length>0){o.children=[];for(const g of this._children)o.children.push(g.toJSON())}return o}_clone(o=!1){const g=o?Array.from(this._children).map(P=>P._clone(!0)):void 0;return new es(this.name,this.getAttributes(),g)}_appendChild(o){this._insertChild(this.childCount,o)}_insertChild(o,g){const P=function(K){return typeof K=="string"?[new gs(K)]:((0,u.TW)(K)||(K=[K]),Array.from(K).map(ie=>typeof ie=="string"?new gs(ie):ie instanceof ds?new gs(ie.data,ie.getAttributes()):ie))}(g);for(const K of P)K.parent!==null&&K._remove(),K.parent=this;this._children._insertNodes(o,P)}_removeChildren(o,g=1){const P=this._children._removeNodes(o,g);for(const K of P)K.parent=null;return P}static fromJSON(o){let g;if(o.children){g=[];for(const P of o.children)P.name?g.push(es.fromJSON(P)):g.push(gs.fromJSON(P))}return new es(o.name,o.attributes,g)}}es.prototype.is=function(W,o){return o?o===this.name&&(W==="element"||W==="model:element"):W==="element"||W==="model:element"||W==="node"||W==="model:node"};class Ga{constructor(o){if(!o||!o.boundaries&&!o.startPosition)throw new u.Bb("model-tree-walker-no-start-position",null);const g=o.direction||"forward";if(g!="forward"&&g!="backward")throw new u.Bb("model-tree-walker-unknown-direction",o,{direction:g});this.direction=g,this.boundaries=o.boundaries||null,o.startPosition?this.position=o.startPosition.clone():this.position=Di._createAt(this.boundaries[this.direction=="backward"?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!o.singleCharacters,this.shallow=!!o.shallow,this.ignoreElementEnd=!!o.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}skip(o){let g,P,K,ie;do K=this.position,ie=this._visitedParent,{done:g,value:P}=this.next();while(!g&&o(P));g||(this.position=K,this._visitedParent=ie)}next(){return this.direction=="forward"?this._next():this._previous()}_next(){const o=this.position,g=this.position.clone(),P=this._visitedParent;if(P.parent===null&&g.offset===P.maxOffset)return{done:!0,value:void 0};if(P===this._boundaryEndParent&&g.offset==this.boundaries.end.offset)return{done:!0,value:void 0};const K=Il(g,P),ie=K||Na(g,P,K);if(ie instanceof es)return this.shallow?g.offset++:(g.path.push(0),this._visitedParent=ie),this.position=g,So("elementStart",ie,o,g,1);if(ie instanceof gs){let xe;if(this.singleCharacters)xe=1;else{let xn=ie.endOffset;this._boundaryEndParent==P&&this.boundaries.end.offset<xn&&(xn=this.boundaries.end.offset),xe=xn-g.offset}const jt=g.offset-ie.startOffset,tn=new ds(ie,jt,xe);return g.offset+=xe,this.position=g,So("text",tn,o,g,xe)}return g.path.pop(),g.offset++,this.position=g,this._visitedParent=P.parent,this.ignoreElementEnd?this._next():So("elementEnd",P,o,g)}_previous(){const o=this.position,g=this.position.clone(),P=this._visitedParent;if(P.parent===null&&g.offset===0)return{done:!0,value:void 0};if(P==this._boundaryStartParent&&g.offset==this.boundaries.start.offset)return{done:!0,value:void 0};const K=g.parent,ie=Il(g,K),xe=ie||xl(g,K,ie);if(xe instanceof es)return g.offset--,this.shallow?(this.position=g,So("elementStart",xe,o,g,1)):(g.path.push(xe.maxOffset),this.position=g,this._visitedParent=xe,this.ignoreElementEnd?this._previous():So("elementEnd",xe,o,g));if(xe instanceof gs){let jt;if(this.singleCharacters)jt=1;else{let Fn=xe.startOffset;this._boundaryStartParent==P&&this.boundaries.start.offset>Fn&&(Fn=this.boundaries.start.offset),jt=g.offset-Fn}const tn=g.offset-xe.startOffset,xn=new ds(xe,tn-jt,jt);return g.offset-=jt,this.position=g,So("text",xn,o,g,jt)}return g.path.pop(),this.position=g,this._visitedParent=P.parent,So("elementStart",P,o,g,1)}}function So(W,o,g,P,K){return{done:!1,value:{type:W,item:o,previousPosition:g,nextPosition:P,length:K}}}class Di extends ta{constructor(o,g,P="toNone"){if(super(),!o.is("element")&&!o.is("documentFragment"))throw new u.Bb("model-position-root-invalid",o);if(!(g instanceof Array)||g.length===0)throw new u.Bb("model-position-path-incorrect-format",o,{path:g});o.is("rootElement")?g=g.slice():(g=[...o.getPath(),...g],o=o.root),this.root=o,this.path=g,this.stickiness=P}get offset(){return this.path[this.path.length-1]}set offset(o){this.path[this.path.length-1]=o}get parent(){let o=this.root;for(let g=0;g<this.path.length-1;g++)if(o=o.getChild(o.offsetToIndex(this.path[g])),!o)throw new u.Bb("model-position-path-incorrect",this,{position:this});if(o.is("$text"))throw new u.Bb("model-position-path-incorrect",this,{position:this});return o}get index(){return this.parent.offsetToIndex(this.offset)}get textNode(){return Il(this,this.parent)}get nodeAfter(){const o=this.parent;return Na(this,o,Il(this,o))}get nodeBefore(){const o=this.parent;return xl(this,o,Il(this,o))}get isAtStart(){return this.offset===0}get isAtEnd(){return this.offset==this.parent.maxOffset}compareWith(o){if(this.root!=o.root)return"different";const g=(0,u.Rt)(this.path,o.path);switch(g){case"same":return"same";case"prefix":return"before";case"extension":return"after";default:return this.path[g]<o.path[g]?"before":"after"}}getLastMatchingPosition(o,g={}){g.startPosition=this;const P=new Ga(g);return P.skip(o),P.position}getParentPath(){return this.path.slice(0,-1)}getAncestors(){const o=this.parent;return o.is("documentFragment")?[o]:o.getAncestors({includeSelf:!0})}findAncestor(o){const g=this.parent;return g.is("element")?g.findAncestor(o,{includeSelf:!0}):null}getCommonPath(o){if(this.root!=o.root)return[];const g=(0,u.Rt)(this.path,o.path),P=typeof g=="string"?Math.min(this.path.length,o.path.length):g;return this.path.slice(0,P)}getCommonAncestor(o){const g=this.getAncestors(),P=o.getAncestors();let K=0;for(;g[K]==P[K]&&g[K];)K++;return K===0?null:g[K-1]}getShiftedBy(o){const g=this.clone(),P=g.offset+o;return g.offset=P<0?0:P,g}isAfter(o){return this.compareWith(o)=="after"}isBefore(o){return this.compareWith(o)=="before"}isEqual(o){return this.compareWith(o)=="same"}isTouching(o){if(this.root!==o.root)return!1;const g=Math.min(this.path.length,o.path.length);for(let P=0;P<g;P++){const K=this.path[P]-o.path[P];if(K<-1||K>1)return!1;if(K===1)return Rl(o,this,P);if(K===-1)return Rl(this,o,P)}return this.path.length===o.path.length||(this.path.length>o.path.length?Pa(this.path,g):Pa(o.path,g))}hasSameParentAs(o){if(this.root!==o.root)return!1;const g=this.getParentPath(),P=o.getParentPath();return(0,u.Rt)(g,P)=="same"}getTransformedByOperation(o){let g;switch(o.type){case"insert":g=this._getTransformedByInsertOperation(o);break;case"move":case"remove":case"reinsert":g=this._getTransformedByMoveOperation(o);break;case"split":g=this._getTransformedBySplitOperation(o);break;case"merge":g=this._getTransformedByMergeOperation(o);break;default:g=Di._createAt(this)}return g}_getTransformedByInsertOperation(o){return this._getTransformedByInsertion(o.position,o.howMany)}_getTransformedByMoveOperation(o){return this._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany)}_getTransformedBySplitOperation(o){const g=o.movedRange;return g.containsPosition(this)||g.start.isEqual(this)&&this.stickiness=="toNext"?this._getCombined(o.splitPosition,o.moveTargetPosition):o.graveyardPosition?this._getTransformedByMove(o.graveyardPosition,o.insertionPosition,1):this._getTransformedByInsertion(o.insertionPosition,1)}_getTransformedByMergeOperation(o){const g=o.movedRange;let P;return g.containsPosition(this)||g.start.isEqual(this)?(P=this._getCombined(o.sourcePosition,o.targetPosition),o.sourcePosition.isBefore(o.targetPosition)&&(P=P._getTransformedByDeletion(o.deletionPosition,1))):P=this.isEqual(o.deletionPosition)?Di._createAt(o.deletionPosition):this._getTransformedByMove(o.deletionPosition,o.graveyardPosition,1),P}_getTransformedByDeletion(o,g){const P=Di._createAt(this);if(this.root!=o.root)return P;if((0,u.Rt)(o.getParentPath(),this.getParentPath())=="same"){if(o.offset<this.offset){if(o.offset+g>this.offset)return null;P.offset-=g}}else if((0,u.Rt)(o.getParentPath(),this.getParentPath())=="prefix"){const K=o.path.length-1;if(o.offset<=this.path[K]){if(o.offset+g>this.path[K])return null;P.path[K]-=g}}return P}_getTransformedByInsertion(o,g){const P=Di._createAt(this);if(this.root!=o.root)return P;if((0,u.Rt)(o.getParentPath(),this.getParentPath())=="same")(o.offset<this.offset||o.offset==this.offset&&this.stickiness!="toPrevious")&&(P.offset+=g);else if((0,u.Rt)(o.getParentPath(),this.getParentPath())=="prefix"){const K=o.path.length-1;o.offset<=this.path[K]&&(P.path[K]+=g)}return P}_getTransformedByMove(o,g,P){if(g=g._getTransformedByDeletion(o,P),o.isEqual(g))return Di._createAt(this);const K=this._getTransformedByDeletion(o,P);return K===null||o.isEqual(this)&&this.stickiness=="toNext"||o.getShiftedBy(P).isEqual(this)&&this.stickiness=="toPrevious"?this._getCombined(o,g):K._getTransformedByInsertion(g,P)}_getCombined(o,g){const P=o.path.length-1,K=Di._createAt(g);return K.stickiness=this.stickiness,K.offset=K.offset+this.path[P]-o.offset,K.path=[...K.path,...this.path.slice(P+1)],K}toJSON(){return{root:this.root.toJSON(),path:Array.from(this.path),stickiness:this.stickiness}}clone(){return new this.constructor(this.root,this.path,this.stickiness)}static _createAt(o,g,P="toNone"){if(o instanceof Di)return new Di(o.root,o.path,o.stickiness);{const K=o;if(g=="end")g=K.maxOffset;else{if(g=="before")return this._createBefore(K,P);if(g=="after")return this._createAfter(K,P);if(g!==0&&!g)throw new u.Bb("model-createpositionat-offset-required",[this,o])}if(!K.is("element")&&!K.is("documentFragment"))throw new u.Bb("model-position-parent-incorrect",[this,o]);const ie=K.getPath();return ie.push(g),new this(K.root,ie,P)}}static _createAfter(o,g){if(!o.parent)throw new u.Bb("model-position-after-root",[this,o],{root:o});return this._createAt(o.parent,o.endOffset,g)}static _createBefore(o,g){if(!o.parent)throw new u.Bb("model-position-before-root",o,{root:o});return this._createAt(o.parent,o.startOffset,g)}static fromJSON(o,g){if(o.root==="$graveyard"){const P=new Di(g.graveyard,o.path);return P.stickiness=o.stickiness,P}if(!g.getRoot(o.root))throw new u.Bb("model-position-fromjson-no-root",g,{rootName:o.root});return new Di(g.getRoot(o.root),o.path,o.stickiness)}}function Il(W,o){const g=o.getChild(o.offsetToIndex(W.offset));return g&&g.is("$text")&&g.startOffset<W.offset?g:null}function Na(W,o,g){return g!==null?null:o.getChild(o.offsetToIndex(W.offset))}function xl(W,o,g){return g!==null?null:o.getChild(o.offsetToIndex(W.offset)-1)}function Rl(W,o,g){return g+1!==W.path.length&&!!Pa(o.path,g+1)&&!!function(P,K){let ie=P.parent,xe=P.path.length-1,jt=0;for(;xe>=K;){if(P.path[xe]+jt!==ie.maxOffset)return!1;jt=1,xe--,ie=ie.parent}return!0}(W,g+1)}function Pa(W,o){for(;o<W.length;){if(W[o]!==0)return!1;o++}return!0}Di.prototype.is=function(W){return W==="position"||W==="model:position"};class fi extends ta{constructor(o,g){super(),this.start=Di._createAt(o),this.end=g?Di._createAt(g):Di._createAt(o),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}*[Symbol.iterator](){yield*new Ga({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){const o=this.start.getParentPath(),g=this.end.getParentPath();return(0,u.Rt)(o,g)=="same"}get root(){return this.start.root}containsPosition(o){return o.isAfter(this.start)&&o.isBefore(this.end)}containsRange(o,g=!1){o.isCollapsed&&(g=!1);const P=this.containsPosition(o.start)||g&&this.start.isEqual(o.start),K=this.containsPosition(o.end)||g&&this.end.isEqual(o.end);return P&&K}containsItem(o){const g=Di._createBefore(o);return this.containsPosition(g)||this.start.isEqual(g)}isEqual(o){return this.start.isEqual(o.start)&&this.end.isEqual(o.end)}isIntersecting(o){return this.start.isBefore(o.end)&&this.end.isAfter(o.start)}getDifference(o){const g=[];return this.isIntersecting(o)?(this.containsPosition(o.start)&&g.push(new fi(this.start,o.start)),this.containsPosition(o.end)&&g.push(new fi(o.end,this.end))):g.push(new fi(this.start,this.end)),g}getIntersection(o){if(this.isIntersecting(o)){let g=this.start,P=this.end;return this.containsPosition(o.start)&&(g=o.start),this.containsPosition(o.end)&&(P=o.end),new fi(g,P)}return null}getJoined(o,g=!1){let P=this.isIntersecting(o);if(P||(P=this.start.isBefore(o.start)?g?this.end.isTouching(o.start):this.end.isEqual(o.start):g?o.end.isTouching(this.start):o.end.isEqual(this.start)),!P)return null;let K=this.start,ie=this.end;return o.start.isBefore(K)&&(K=o.start),o.end.isAfter(ie)&&(ie=o.end),new fi(K,ie)}getMinimalFlatRanges(){const o=[],g=this.start.getCommonPath(this.end).length,P=Di._createAt(this.start);let K=P.parent;for(;P.path.length>g+1;){const ie=K.maxOffset-P.offset;ie!==0&&o.push(new fi(P,P.getShiftedBy(ie))),P.path=P.path.slice(0,-1),P.offset++,K=K.parent}for(;P.path.length<=this.end.path.length;){const ie=this.end.path[P.path.length-1],xe=ie-P.offset;xe!==0&&o.push(new fi(P,P.getShiftedBy(xe))),P.offset=ie,P.path.push(0)}return o}getWalker(o={}){return o.boundaries=this,new Ga(o)}*getItems(o={}){o.boundaries=this,o.ignoreElementEnd=!0;const g=new Ga(o);for(const P of g)yield P.item}*getPositions(o={}){o.boundaries=this;const g=new Ga(o);yield g.position;for(const P of g)yield P.nextPosition}getTransformedByOperation(o){switch(o.type){case"insert":return this._getTransformedByInsertOperation(o);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(o);case"split":return[this._getTransformedBySplitOperation(o)];case"merge":return[this._getTransformedByMergeOperation(o)]}return[new fi(this.start,this.end)]}getTransformedByOperations(o){const g=[new fi(this.start,this.end)];for(const P of o)for(let K=0;K<g.length;K++){const ie=g[K].getTransformedByOperation(P);g.splice(K,1,...ie),K+=ie.length-1}for(let P=0;P<g.length;P++){const K=g[P];for(let ie=P+1;ie<g.length;ie++){const xe=g[ie];(K.containsRange(xe)||xe.containsRange(K)||K.isEqual(xe))&&g.splice(ie,1)}}return g}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;const o=this.start.nodeAfter,g=this.end.nodeBefore;return o&&o.is("element")&&o===g?o:null}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}clone(){return new this.constructor(this.start,this.end)}_getTransformedByInsertOperation(o,g=!1){return this._getTransformedByInsertion(o.position,o.howMany,g)}_getTransformedByMoveOperation(o,g=!1){const P=o.sourcePosition,K=o.howMany,ie=o.targetPosition;return this._getTransformedByMove(P,ie,K,g)}_getTransformedBySplitOperation(o){const g=this.start._getTransformedBySplitOperation(o);let P=this.end._getTransformedBySplitOperation(o);return this.end.isEqual(o.insertionPosition)&&(P=this.end.getShiftedBy(1)),g.root!=P.root&&(P=this.end.getShiftedBy(-1)),new fi(g,P)}_getTransformedByMergeOperation(o){if(this.start.isEqual(o.targetPosition)&&this.end.isEqual(o.deletionPosition))return new fi(this.start);let g=this.start._getTransformedByMergeOperation(o),P=this.end._getTransformedByMergeOperation(o);return g.root!=P.root&&(P=this.end.getShiftedBy(-1)),g.isAfter(P)?(o.sourcePosition.isBefore(o.targetPosition)?(g=Di._createAt(P),g.offset=0):(o.deletionPosition.isEqual(g)||(P=o.deletionPosition),g=o.targetPosition),new fi(g,P)):new fi(g,P)}_getTransformedByInsertion(o,g,P=!1){if(P&&this.containsPosition(o))return[new fi(this.start,o),new fi(o.getShiftedBy(g),this.end._getTransformedByInsertion(o,g))];{const K=new fi(this.start,this.end);return K.start=K.start._getTransformedByInsertion(o,g),K.end=K.end._getTransformedByInsertion(o,g),[K]}}_getTransformedByMove(o,g,P,K=!1){if(this.isCollapsed){const mr=this.start._getTransformedByMove(o,g,P);return[new fi(mr)]}const ie=fi._createFromPositionAndShift(o,P),xe=g._getTransformedByDeletion(o,P);if(this.containsPosition(g)&&!K&&(ie.containsPosition(this.start)||ie.containsPosition(this.end))){const mr=this.start._getTransformedByMove(o,g,P),Pr=this.end._getTransformedByMove(o,g,P);return[new fi(mr,Pr)]}let jt;const tn=this.getDifference(ie);let xn=null;const Fn=this.getIntersection(ie);if(tn.length==1?xn=new fi(tn[0].start._getTransformedByDeletion(o,P),tn[0].end._getTransformedByDeletion(o,P)):tn.length==2&&(xn=new fi(this.start,this.end._getTransformedByDeletion(o,P))),jt=xn?xn._getTransformedByInsertion(xe,P,Fn!==null||K):[],Fn){const mr=new fi(Fn.start._getCombined(ie.start,xe),Fn.end._getCombined(ie.start,xe));jt.length==2?jt.splice(1,0,mr):jt.push(mr)}return jt}_getTransformedByDeletion(o,g){let P=this.start._getTransformedByDeletion(o,g),K=this.end._getTransformedByDeletion(o,g);return P==null&&K==null?null:(P==null&&(P=o),K==null&&(K=o),new fi(P,K))}static _createFromPositionAndShift(o,g){const P=o,K=o.getShiftedBy(g);return g>0?new this(P,K):new this(K,P)}static _createIn(o){return new this(Di._createAt(o,0),Di._createAt(o,o.maxOffset))}static _createOn(o){return this._createFromPositionAndShift(Di._createBefore(o),o.offsetSize)}static _createFromRanges(o){if(o.length===0)throw new u.Bb("range-create-from-ranges-empty-array",null);if(o.length==1)return o[0].clone();const g=o[0];o.sort((ie,xe)=>ie.start.isAfter(xe.start)?1:-1);const P=o.indexOf(g),K=new this(g.start,g.end);if(P>0)for(let ie=P-1;o[ie].end.isEqual(K.start);ie++)K.start=Di._createAt(o[ie].start);for(let ie=P+1;ie<o.length&&o[ie].start.isEqual(K.end);ie++)K.end=Di._createAt(o[ie].end);return K}static fromJSON(o,g){return new this(Di.fromJSON(o.start,g),Di.fromJSON(o.end,g))}}fi.prototype.is=function(W){return W==="range"||W==="model:range"};class rl extends(0,u.ln)(){constructor(){super(),this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._viewToModelLengthCallbacks=new Map,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._deferredBindingRemovals=new Map,this._unboundMarkerNames=new Set,this.on("modelToViewPosition",(o,g)=>{if(g.viewPosition)return;const P=this._modelToViewMapping.get(g.modelPosition.parent);if(!P)throw new u.Bb("mapping-model-position-view-parent-not-found",this,{modelPosition:g.modelPosition});g.viewPosition=this.findPositionIn(P,g.modelPosition.offset)},{priority:"low"}),this.on("viewToModelPosition",(o,g)=>{if(g.modelPosition)return;const P=this.findMappedViewAncestor(g.viewPosition),K=this._viewToModelMapping.get(P),ie=this._toModelOffset(g.viewPosition.parent,g.viewPosition.offset,P);g.modelPosition=Di._createAt(K,ie)},{priority:"low"})}bindElements(o,g){this._modelToViewMapping.set(o,g),this._viewToModelMapping.set(g,o)}unbindViewElement(o,g={}){const P=this.toModelElement(o);if(this._elementToMarkerNames.has(o))for(const K of this._elementToMarkerNames.get(o))this._unboundMarkerNames.add(K);g.defer?this._deferredBindingRemovals.set(o,o.root):(this._viewToModelMapping.delete(o),this._modelToViewMapping.get(P)==o&&this._modelToViewMapping.delete(P))}unbindModelElement(o){const g=this.toViewElement(o);this._modelToViewMapping.delete(o),this._viewToModelMapping.get(g)==o&&this._viewToModelMapping.delete(g)}bindElementToMarker(o,g){const P=this._markerNameToElements.get(g)||new Set;P.add(o);const K=this._elementToMarkerNames.get(o)||new Set;K.add(g),this._markerNameToElements.set(g,P),this._elementToMarkerNames.set(o,K)}unbindElementFromMarkerName(o,g){const P=this._markerNameToElements.get(g);P&&(P.delete(o),P.size==0&&this._markerNameToElements.delete(g));const K=this._elementToMarkerNames.get(o);K&&(K.delete(g),K.size==0&&this._elementToMarkerNames.delete(o))}flushUnboundMarkerNames(){const o=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),o}flushDeferredBindings(){for(const[o,g]of this._deferredBindingRemovals)o.root==g&&this.unbindViewElement(o);this._deferredBindingRemovals=new Map}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this._deferredBindingRemovals=new Map}toModelElement(o){return this._viewToModelMapping.get(o)}toViewElement(o){return this._modelToViewMapping.get(o)}toModelRange(o){return new fi(this.toModelPosition(o.start),this.toModelPosition(o.end))}toViewRange(o){return new Ht(this.toViewPosition(o.start),this.toViewPosition(o.end))}toModelPosition(o){const g={viewPosition:o,mapper:this};return this.fire("viewToModelPosition",g),g.modelPosition}toViewPosition(o,g={}){const P={modelPosition:o,mapper:this,isPhantom:g.isPhantom};return this.fire("modelToViewPosition",P),P.viewPosition}markerNameToElements(o){const g=this._markerNameToElements.get(o);if(!g)return null;const P=new Set;for(const K of g)if(K.is("attributeElement"))for(const ie of K.getElementsWithSameId())P.add(ie);else P.add(K);return P}registerViewToModelLength(o,g){this._viewToModelLengthCallbacks.set(o,g)}findMappedViewAncestor(o){let g=o.parent;for(;!this._viewToModelMapping.has(g);)g=g.parent;return g}_toModelOffset(o,g,P){if(P!=o)return this._toModelOffset(o.parent,o.index,P)+this._toModelOffset(o,g,o);if(o.is("$text"))return g;let K=0;for(let ie=0;ie<g;ie++)K+=this.getModelLength(o.getChild(ie));return K}getModelLength(o){if(this._viewToModelLengthCallbacks.get(o.name))return this._viewToModelLengthCallbacks.get(o.name)(o);if(this._viewToModelMapping.has(o))return 1;if(o.is("$text"))return o.data.length;if(o.is("uiElement"))return 0;{let g=0;for(const P of o.getChildren())g+=this.getModelLength(P);return g}}findPositionIn(o,g){let P,K=0,ie=0,xe=0;if(o.is("$text"))return new Le(o,g);for(;ie<g;)P=o.getChild(xe),K=this.getModelLength(P),ie+=K,xe++;return ie==g?this._moveViewPositionToTextNode(new Le(o,xe)):this.findPositionIn(P,g-(ie-K))}_moveViewPositionToTextNode(o){const g=o.nodeBefore,P=o.nodeAfter;return g instanceof z?new Le(g,g.data.length):P instanceof z?new Le(P,0):o}}class Xn{constructor(){this._consumable=new Map,this._textProxyRegistry=new Map}add(o,g){g=Kr(g),o instanceof ds&&(o=this._getSymbolForTextProxy(o)),this._consumable.has(o)||this._consumable.set(o,new Map),this._consumable.get(o).set(g,!0)}consume(o,g){return g=Kr(g),o instanceof ds&&(o=this._getSymbolForTextProxy(o)),!!this.test(o,g)&&(this._consumable.get(o).set(g,!1),!0)}test(o,g){g=Kr(g),o instanceof ds&&(o=this._getSymbolForTextProxy(o));const P=this._consumable.get(o);if(P===void 0)return null;const K=P.get(g);return K===void 0?null:K}revert(o,g){g=Kr(g),o instanceof ds&&(o=this._getSymbolForTextProxy(o));const P=this.test(o,g);return P===!1?(this._consumable.get(o).set(g,!0),!0):P!==!0&&null}verifyAllConsumed(o){const g=[];for(const[P,K]of this._consumable)for(const[ie,xe]of K){const jt=ie.split(":")[0];xe&&o==jt&&g.push({event:ie,item:P.name||P.description})}if(g.length)throw new u.Bb("conversion-model-consumable-not-consumed",null,{items:g})}_getSymbolForTextProxy(o){let g=null;const P=this._textProxyRegistry.get(o.startOffset);if(P){const K=P.get(o.endOffset);K&&(g=K.get(o.parent))}return g||(g=this._addSymbolForTextProxy(o)),g}_addSymbolForTextProxy(o){const g=o.startOffset,P=o.endOffset,K=o.parent,ie=Symbol("$textProxy:"+o.data);let xe,jt;return xe=this._textProxyRegistry.get(g),xe||(xe=new Map,this._textProxyRegistry.set(g,xe)),jt=xe.get(P),jt||(jt=new Map,xe.set(P,jt)),jt.set(K,ie),ie}}function Kr(W){const o=W.split(":");return o[0]=="insert"?o[0]:o[0]=="addMarker"||o[0]=="removeMarker"?W:o.length>1?o[0]+":"+o[1]:o[0]}class Ln extends(0,u.ln)(){constructor(o){super(),this._conversionApi={dispatcher:this,...o},this._firedEventsMap=new WeakMap}convertChanges(o,g,P){const K=this._createConversionApi(P,o.getRefreshedItems());for(const xe of o.getMarkersToRemove())this._convertMarkerRemove(xe.name,xe.range,K);const ie=this._reduceChanges(o.getChanges());for(const xe of ie)xe.type==="insert"?this._convertInsert(fi._createFromPositionAndShift(xe.position,xe.length),K):xe.type==="reinsert"?this._convertReinsert(fi._createFromPositionAndShift(xe.position,xe.length),K):xe.type==="remove"?this._convertRemove(xe.position,xe.length,xe.name,K):this._convertAttribute(xe.range,xe.attributeKey,xe.attributeOldValue,xe.attributeNewValue,K);for(const xe of K.mapper.flushUnboundMarkerNames()){const jt=g.get(xe).getRange();this._convertMarkerRemove(xe,jt,K),this._convertMarkerAdd(xe,jt,K)}for(const xe of o.getMarkersToAdd())this._convertMarkerAdd(xe.name,xe.range,K);K.mapper.flushDeferredBindings(),K.consumable.verifyAllConsumed("insert")}convert(o,g,P,K={}){const ie=this._createConversionApi(P,void 0,K);this._convertInsert(o,ie);for(const[xe,jt]of g)this._convertMarkerAdd(xe,jt,ie);ie.consumable.verifyAllConsumed("insert")}convertSelection(o,g,P){const K=Array.from(g.getMarkersAtPosition(o.getFirstPosition())),ie=this._createConversionApi(P);if(this._addConsumablesForSelection(ie.consumable,o,K),this.fire("selection",{selection:o},ie),o.isCollapsed){for(const xe of K){const jt=xe.getRange();if(!gr(o.getFirstPosition(),xe,ie.mapper))continue;const tn={item:o,markerName:xe.name,markerRange:jt};ie.consumable.test(o,"addMarker:"+xe.name)&&this.fire(`addMarker:${xe.name}`,tn,ie)}for(const xe of o.getAttributeKeys()){const jt={item:o,range:o.getFirstRange(),attributeKey:xe,attributeOldValue:null,attributeNewValue:o.getAttribute(xe)};ie.consumable.test(o,"attribute:"+jt.attributeKey)&&this.fire(`attribute:${jt.attributeKey}:$text`,jt,ie)}}}_convertInsert(o,g,P={}){P.doNotAddConsumables||this._addConsumablesForInsert(g.consumable,Array.from(o));for(const K of Array.from(o.getWalker({shallow:!0})).map(pr))this._testAndFire("insert",K,g)}_convertRemove(o,g,P,K){this.fire(`remove:${P}`,{position:o,length:g},K)}_convertAttribute(o,g,P,K,ie){this._addConsumablesForRange(ie.consumable,o,`attribute:${g}`);for(const xe of o){const jt={item:xe.item,range:fi._createFromPositionAndShift(xe.previousPosition,xe.length),attributeKey:g,attributeOldValue:P,attributeNewValue:K};this._testAndFire(`attribute:${g}`,jt,ie)}}_convertReinsert(o,g){const P=Array.from(o.getWalker({shallow:!0}));this._addConsumablesForInsert(g.consumable,P);for(const K of P.map(pr))this._testAndFire("insert",{...K,reconversion:!0},g)}_convertMarkerAdd(o,g,P){if(g.root.rootName=="$graveyard")return;const K=`addMarker:${o}`;if(P.consumable.add(g,K),this.fire(K,{markerName:o,markerRange:g},P),P.consumable.consume(g,K)){this._addConsumablesForRange(P.consumable,g,K);for(const ie of g.getItems()){if(!P.consumable.test(ie,K))continue;const xe={item:ie,range:fi._createOn(ie),markerName:o,markerRange:g};this.fire(K,xe,P)}}}_convertMarkerRemove(o,g,P){g.root.rootName!="$graveyard"&&this.fire(`removeMarker:${o}`,{markerName:o,markerRange:g},P)}_reduceChanges(o){const g={changes:o};return this.fire("reduceChanges",g),g.changes}_addConsumablesForInsert(o,g){for(const P of g){const K=P.item;if(o.test(K,"insert")===null){o.add(K,"insert");for(const ie of K.getAttributeKeys())o.add(K,"attribute:"+ie)}}return o}_addConsumablesForRange(o,g,P){for(const K of g.getItems())o.add(K,P);return o}_addConsumablesForSelection(o,g,P){o.add(g,"selection");for(const K of P)o.add(g,"addMarker:"+K.name);for(const K of g.getAttributeKeys())o.add(g,"attribute:"+K);return o}_testAndFire(o,g,P){const K=function(tn,xn){const Fn=xn.item.is("element")?xn.item.name:"$text";return`${tn}:${Fn}`}(o,g),ie=g.item.is("$textProxy")?P.consumable._getSymbolForTextProxy(g.item):g.item,xe=this._firedEventsMap.get(P),jt=xe.get(ie);if(jt){if(jt.has(K))return;jt.add(K)}else xe.set(ie,new Set([K]));this.fire(K,g,P)}_testAndFireAddAttributes(o,g){const P={item:o,range:fi._createOn(o)};for(const K of P.item.getAttributeKeys())P.attributeKey=K,P.attributeOldValue=null,P.attributeNewValue=P.item.getAttribute(K),this._testAndFire(`attribute:${K}`,P,g)}_createConversionApi(o,g=new Set,P={}){const K={...this._conversionApi,consumable:new Xn,writer:o,options:P,convertItem:ie=>this._convertInsert(fi._createOn(ie),K),convertChildren:ie=>this._convertInsert(fi._createIn(ie),K,{doNotAddConsumables:!0}),convertAttributes:ie=>this._testAndFireAddAttributes(ie,K),canReuseView:ie=>!g.has(K.mapper.toModelElement(ie))};return this._firedEventsMap.set(K,new Map),K}}function gr(W,o,g){const P=o.getRange(),K=Array.from(W.getAncestors());return K.shift(),K.reverse(),!K.some(ie=>{if(P.containsItem(ie))return!!g.toViewElement(ie).getCustomProperty("addHighlight")})}function pr(W){return{item:W.item,range:fi._createFromPositionAndShift(W.previousPosition,W.length)}}class Wr extends(0,u.ln)(ta){constructor(...o){super(),this._lastRangeBackward=!1,this._attrs=new Map,this._ranges=[],o.length&&this.setTo(...o)}get anchor(){if(this._ranges.length>0){const o=this._ranges[this._ranges.length-1];return this._lastRangeBackward?o.end:o.start}return null}get focus(){if(this._ranges.length>0){const o=this._ranges[this._ranges.length-1];return this._lastRangeBackward?o.start:o.end}return null}get isCollapsed(){return this._ranges.length===1&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(o){if(this.rangeCount!=o.rangeCount)return!1;if(this.rangeCount===0)return!0;if(!this.anchor.isEqual(o.anchor)||!this.focus.isEqual(o.focus))return!1;for(const g of this._ranges){let P=!1;for(const K of o._ranges)if(g.isEqual(K)){P=!0;break}if(!P)return!1}return!0}*getRanges(){for(const o of this._ranges)yield new fi(o.start,o.end)}getFirstRange(){let o=null;for(const g of this._ranges)o&&!g.start.isBefore(o.start)||(o=g);return o?new fi(o.start,o.end):null}getLastRange(){let o=null;for(const g of this._ranges)o&&!g.end.isAfter(o.end)||(o=g);return o?new fi(o.start,o.end):null}getFirstPosition(){const o=this.getFirstRange();return o?o.start.clone():null}getLastPosition(){const o=this.getLastRange();return o?o.end.clone():null}setTo(...o){let[g,P,K]=o;if(typeof P=="object"&&(K=P,P=void 0),g===null)this._setRanges([]);else if(g instanceof Wr)this._setRanges(g.getRanges(),g.isBackward);else if(g&&typeof g.getRanges=="function")this._setRanges(g.getRanges(),g.isBackward);else if(g instanceof fi)this._setRanges([g],!!K&&!!K.backward);else if(g instanceof Di)this._setRanges([new fi(g)]);else if(g instanceof Oa){const ie=!!K&&!!K.backward;let xe;if(P=="in")xe=fi._createIn(g);else if(P=="on")xe=fi._createOn(g);else{if(P===void 0)throw new u.Bb("model-selection-setto-required-second-parameter",[this,g]);xe=new fi(Di._createAt(g,P))}this._setRanges([xe],ie)}else{if(!(0,u.TW)(g))throw new u.Bb("model-selection-setto-not-selectable",[this,g]);this._setRanges(g,K&&!!K.backward)}}_setRanges(o,g=!1){const P=Array.from(o),K=P.some(ie=>{if(!(ie instanceof fi))throw new u.Bb("model-selection-set-ranges-not-range",[this,o]);return this._ranges.every(xe=>!xe.isEqual(ie))});(P.length!==this._ranges.length||K)&&(this._replaceAllRanges(P),this._lastRangeBackward=!!g,this.fire("change:range",{directChange:!0}))}setFocus(o,g){if(this.anchor===null)throw new u.Bb("model-selection-setfocus-no-ranges",[this,o]);const P=Di._createAt(o,g);if(P.compareWith(this.focus)=="same")return;const K=this.anchor;this._ranges.length&&this._popRange(),P.compareWith(K)=="before"?(this._pushRange(new fi(P,K)),this._lastRangeBackward=!0):(this._pushRange(new fi(K,P)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(o){return this._attrs.get(o)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(o){return this._attrs.has(o)}removeAttribute(o){this.hasAttribute(o)&&(this._attrs.delete(o),this.fire("change:attribute",{attributeKeys:[o],directChange:!0}))}setAttribute(o,g){this.getAttribute(o)!==g&&(this._attrs.set(o,g),this.fire("change:attribute",{attributeKeys:[o],directChange:!0}))}getSelectedElement(){return this.rangeCount!==1?null:this.getFirstRange().getContainedElement()}*getSelectedBlocks(){const o=new WeakSet;for(const g of this.getRanges()){const P=me(g.start,o);P&&Ue(P,g)&&(yield P);for(const ie of g.getWalker()){const xe=ie.item;ie.type=="elementEnd"&&re(xe,o,g)&&(yield xe)}const K=me(g.end,o);K&&!g.end.isTouching(Di._createAt(K,0))&&Ue(K,g)&&(yield K)}}containsEntireContent(o=this.anchor.root){const g=Di._createAt(o,0),P=Di._createAt(o,"end");return g.isTouching(this.getFirstPosition())&&P.isTouching(this.getLastPosition())}_pushRange(o){this._checkRange(o),this._ranges.push(new fi(o.start,o.end))}_checkRange(o){for(let g=0;g<this._ranges.length;g++)if(o.isIntersecting(this._ranges[g]))throw new u.Bb("model-selection-range-intersects",[this,o],{addedRange:o,intersectingRange:this._ranges[g]})}_replaceAllRanges(o){this._removeAllRanges();for(const g of o)this._pushRange(g)}_removeAllRanges(){for(;this._ranges.length>0;)this._popRange()}_popRange(){this._ranges.pop()}}function Lt(W,o){return!o.has(W)&&(o.add(W),W.root.document.model.schema.isBlock(W)&&!!W.parent)}function re(W,o,g){return Lt(W,o)&&Ue(W,g)}function me(W,o){const g=W.parent.root.document.model.schema,P=W.parent.getAncestors({parentFirst:!0,includeSelf:!0});let K=!1;const ie=P.find(xe=>!K&&(K=g.isLimit(xe),!K&&Lt(xe,o)));return P.forEach(xe=>o.add(xe)),ie}function Ue(W,o){const g=function(P){const K=P.root.document.model.schema;let ie=P.parent;for(;ie;){if(K.isBlock(ie))return ie;ie=ie.parent}}(W);return g?!o.containsRange(fi._createOn(g),!0):!0}Wr.prototype.is=function(W){return W==="selection"||W==="model:selection"};class He extends(0,u.ln)(fi){constructor(o,g){super(o,g),At.call(this)}detach(){this.stopListening()}toRange(){return new fi(this.start,this.end)}static fromRange(o){return new He(o.start,o.end)}}function At(){this.listenTo(this.root.document.model,"applyOperation",(W,o)=>{const g=o[0];g.isDocumentOperation&&Ut.call(this,g)},{priority:"low"})}function Ut(W){const o=this.getTransformedByOperation(W),g=fi._createFromRanges(o),P=!g.isEqual(this),K=function(xe,jt){switch(jt.type){case"insert":return xe.containsPosition(jt.position);case"move":case"remove":case"reinsert":case"merge":return xe.containsPosition(jt.sourcePosition)||xe.start.isEqual(jt.sourcePosition)||xe.containsPosition(jt.targetPosition);case"split":return xe.containsPosition(jt.splitPosition)||xe.containsPosition(jt.insertionPosition)}return!1}(this,W);let ie=null;if(P){g.root.rootName=="$graveyard"&&(ie=W.type=="remove"?W.sourcePosition:W.deletionPosition);const xe=this.toRange();this.start=g.start,this.end=g.end,this.fire("change:range",xe,{deletionPosition:ie})}else K&&this.fire("change:content",this.toRange(),{deletionPosition:ie})}He.prototype.is=function(W){return W==="liveRange"||W==="model:liveRange"||W=="range"||W==="model:range"};const en="selection:";class Yt extends(0,u.ln)(ta){constructor(o){super(),this._selection=new In(o),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(o){return this._selection.containsEntireContent(o)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(o){return this._selection.getAttribute(o)}hasAttribute(o){return this._selection.hasAttribute(o)}refresh(){this._selection.updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(o){this._selection.observeMarkers(o)}_setFocus(o,g){this._selection.setFocus(o,g)}_setTo(...o){this._selection.setTo(...o)}_setAttribute(o,g){this._selection.setAttribute(o,g)}_removeAttribute(o){this._selection.removeAttribute(o)}_getStoredAttributes(){return this._selection.getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(o){this._selection.restoreGravity(o)}static _getStoreAttributeKey(o){return en+o}static _isStoreAttributeKey(o){return o.startsWith(en)}}Yt.prototype.is=function(W){return W==="selection"||W=="model:selection"||W=="documentSelection"||W=="model:documentSelection"};class In extends Wr{constructor(o){super(),this.markers=new u.FE({idProperty:"name"}),this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this._model=o.model,this._document=o,this.listenTo(this._model,"applyOperation",(g,P)=>{const K=P[0];K.isDocumentOperation&&K.type!="marker"&&K.type!="rename"&&K.type!="noop"&&(this._ranges.length==0&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))},{priority:"lowest"}),this.on("change:range",()=>{this._validateSelectionRanges(this.getRanges())}),this.listenTo(this._model.markers,"update",(g,P,K,ie)=>{this._updateMarker(P,ie)}),this.listenTo(this._document,"change",(g,P)=>{(function(K,ie){const xe=K.document.differ;for(const jt of xe.getChanges()){if(jt.type!="insert")continue;const tn=jt.position.parent;jt.length===tn.maxOffset&&K.enqueueChange(ie,xn=>{const Fn=Array.from(tn.getAttributeKeys()).filter(mr=>mr.startsWith(en));for(const mr of Fn)xn.removeAttribute(mr,tn)})}})(this._model,P)})}get isCollapsed(){return this._ranges.length===0?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let o=0;o<this._ranges.length;o++)this._ranges[o].detach();this.stopListening()}*getRanges(){this._ranges.length?yield*super.getRanges():yield this._document._getDefaultRange()}getFirstRange(){return super.getFirstRange()||this._document._getDefaultRange()}getLastRange(){return super.getLastRange()||this._document._getDefaultRange()}setTo(...o){super.setTo(...o),this._updateAttributes(!0),this.updateMarkers()}setFocus(o,g){super.setFocus(o,g),this._updateAttributes(!0),this.updateMarkers()}setAttribute(o,g){if(this._setAttribute(o,g)){const P=[o];this.fire("change:attribute",{attributeKeys:P,directChange:!0})}}removeAttribute(o){if(this._removeAttribute(o)){const g=[o];this.fire("change:attribute",{attributeKeys:g,directChange:!0})}}overrideGravity(){const o=(0,u.hQ)();return this._overriddenGravityRegister.add(o),this._overriddenGravityRegister.size===1&&this._updateAttributes(!0),o}restoreGravity(o){if(!this._overriddenGravityRegister.has(o))throw new u.Bb("document-selection-gravity-wrong-restore",this,{uid:o});this._overriddenGravityRegister.delete(o),this.isGravityOverridden||this._updateAttributes(!0)}observeMarkers(o){this._observedMarkers.add(o),this.updateMarkers()}_replaceAllRanges(o){this._validateSelectionRanges(o),super._replaceAllRanges(o)}_popRange(){this._ranges.pop().detach()}_pushRange(o){const g=this._prepareRange(o);g&&this._ranges.push(g)}_validateSelectionRanges(o){for(const g of o)if(!this._document._validateSelectionRange(g))throw new u.Bb("document-selection-wrong-position",this,{range:g})}_prepareRange(o){if(this._checkRange(o),o.root==this._document.graveyard)return;const g=He.fromRange(o);return g.on("change:range",(P,K,ie)=>{if(this._hasChangedRange=!0,g.root==this._document.graveyard){this._selectionRestorePosition=ie.deletionPosition;const xe=this._ranges.indexOf(g);this._ranges.splice(xe,1),g.detach()}}),g}updateMarkers(){if(!this._observedMarkers.size)return;const o=[];let g=!1;for(const K of this._model.markers){const ie=K.name.split(":",1)[0];if(!this._observedMarkers.has(ie))continue;const xe=K.getRange();for(const jt of this.getRanges())xe.containsRange(jt,!jt.isCollapsed)&&o.push(K)}const P=Array.from(this.markers);for(const K of o)this.markers.has(K)||(this.markers.add(K),g=!0);for(const K of Array.from(this.markers))o.includes(K)||(this.markers.remove(K),g=!0);g&&this.fire("change:marker",{oldMarkers:P,directChange:!1})}_updateMarker(o,g){const P=o.name.split(":",1)[0];if(!this._observedMarkers.has(P))return;let K=!1;const ie=Array.from(this.markers),xe=this.markers.has(o);if(g){let jt=!1;for(const tn of this.getRanges())if(g.containsRange(tn,!tn.isCollapsed)){jt=!0;break}jt&&!xe?(this.markers.add(o),K=!0):!jt&&xe&&(this.markers.remove(o),K=!0)}else xe&&(this.markers.remove(o),K=!0);K&&this.fire("change:marker",{oldMarkers:ie,directChange:!1})}_updateAttributes(o){const g=(0,u.qL)(this._getSurroundingAttributes()),P=(0,u.qL)(this.getAttributes());if(o)this._attributePriority=new Map,this._attrs=new Map;else for(const[ie,xe]of this._attributePriority)xe=="low"&&(this._attrs.delete(ie),this._attributePriority.delete(ie));this._setAttributesTo(g);const K=[];for(const[ie,xe]of this.getAttributes())P.has(ie)&&P.get(ie)===xe||K.push(ie);for(const[ie]of P)this.hasAttribute(ie)||K.push(ie);K.length>0&&this.fire("change:attribute",{attributeKeys:K,directChange:!1})}_setAttribute(o,g,P=!0){const K=P?"normal":"low";return K=="low"&&this._attributePriority.get(o)=="normal"?!1:super.getAttribute(o)!==g&&(this._attrs.set(o,g),this._attributePriority.set(o,K),!0)}_removeAttribute(o,g=!0){const P=g?"normal":"low";return(P!="low"||this._attributePriority.get(o)!="normal")&&(this._attributePriority.set(o,P),!!super.hasAttribute(o)&&(this._attrs.delete(o),!0))}_setAttributesTo(o){const g=new Set;for(const[P,K]of this.getAttributes())o.get(P)!==K&&this._removeAttribute(P,!1);for(const[P,K]of o)this._setAttribute(P,K,!1)&&g.add(P);return g}*getStoredAttributes(){const o=this.getFirstPosition().parent;if(this.isCollapsed&&o.isEmpty)for(const g of o.getAttributeKeys())g.startsWith(en)&&(yield[g.substr(en.length),o.getAttribute(g)])}_getSurroundingAttributes(){const o=this.getFirstPosition(),g=this._model.schema;let P=null;if(this.isCollapsed){const K=o.textNode?o.textNode:o.nodeBefore,ie=o.textNode?o.textNode:o.nodeAfter;if(this.isGravityOverridden||(P=$n(K)),P||(P=$n(ie)),!this.isGravityOverridden&&!P){let xe=K;for(;xe&&!g.isInline(xe)&&!P;)xe=xe.previousSibling,P=$n(xe)}if(!P){let xe=ie;for(;xe&&!g.isInline(xe)&&!P;)xe=xe.nextSibling,P=$n(xe)}P||(P=this.getStoredAttributes())}else{const K=this.getFirstRange();for(const ie of K){if(ie.item.is("element")&&g.isObject(ie.item))break;if(ie.type=="text"){P=ie.item.getAttributes();break}}}return P}_fixGraveyardSelection(o){const g=this._model.schema.getNearestSelectionRange(o);g&&this._pushRange(g)}}function $n(W){return W instanceof ds||W instanceof gs?W.getAttributes():null}class wr{constructor(o){this._dispatchers=o}add(o){for(const g of this._dispatchers)o(g);return this}}var Tr=1,qr=4;const di=function(W){return(0,E.Z)(W,Tr|qr)};class ai extends wr{elementToElement(o){return this.add(function(g){const P=so(g.model),K=Do(g.view,"container");return P.attributes.length&&(P.children=!0),ie=>{ie.on(`insert:${P.name}`,function(xe,jt=Wl){return(tn,xn,Fn)=>{if(!jt(xn.item,Fn.consumable,{preflight:!0}))return;const mr=xe(xn.item,Fn,xn);if(!mr)return;jt(xn.item,Fn.consumable);const Pr=Fn.mapper.toViewPosition(xn.range.start);Fn.mapper.bindElements(xn.item,mr),Fn.writer.insert(Pr,mr),Fn.convertAttributes(xn.item),Da(mr,xn.item.getChildren(),Fn,{reconversion:xn.reconversion})}}(K,Ba(P)),{priority:g.converterPriority||"normal"}),(P.children||P.attributes.length)&&ie.on("reduceChanges",Ls(P),{priority:"low"})}}(o))}elementToStructure(o){return this.add(function(g){const P=so(g.model),K=Do(g.view,"container");return P.children=!0,ie=>{if(ie._conversionApi.schema.checkChild(P.name,"$text"))throw new u.Bb("conversion-element-to-structure-disallowed-text",ie,{elementName:P.name});var xe,jt;ie.on(`insert:${P.name}`,(xe=K,jt=Ba(P),(tn,xn,Fn)=>{if(!jt(xn.item,Fn.consumable,{preflight:!0}))return;const mr=new Map;Fn.writer._registerSlotFactory(function(Ci,Ji,ho){return(is,Fo="children")=>{const Ds=is.createContainerElement("$slot");let qo=null;if(Fo==="children")qo=Array.from(Ci.getChildren());else{if(typeof Fo!="function")throw new u.Bb("conversion-slot-mode-unknown",ho.dispatcher,{modeOrFilter:Fo});qo=Array.from(Ci.getChildren()).filter($c=>Fo($c))}return Ji.set(Ds,qo),Ds}}(xn.item,mr,Fn));const Pr=xe(xn.item,Fn,xn);if(Fn.writer._clearSlotFactory(),!Pr)return;(function(Ci,Ji,ho){const is=Array.from(Ji.values()).flat(),Fo=new Set(is);if(Fo.size!=is.length)throw new u.Bb("conversion-slot-filter-overlap",ho.dispatcher,{element:Ci});if(Fo.size!=Ci.childCount)throw new u.Bb("conversion-slot-filter-incomplete",ho.dispatcher,{element:Ci})})(xn.item,mr,Fn),jt(xn.item,Fn.consumable);const ti=Fn.mapper.toViewPosition(xn.range.start);Fn.mapper.bindElements(xn.item,Pr),Fn.writer.insert(ti,Pr),Fn.convertAttributes(xn.item),function(Ci,Ji,ho,is){ho.mapper.on("modelToViewPosition",qo,{priority:"highest"});let Fo=null,Ds=null;for([Fo,Ds]of Ji)Da(Ci,Ds,ho,is),ho.writer.move(ho.writer.createRangeIn(Fo),ho.writer.createPositionBefore(Fo)),ho.writer.remove(Fo);function qo($c,Za){const Yd=Za.modelPosition.nodeAfter,mu=Ds.indexOf(Yd);mu<0||(Za.viewPosition=Za.mapper.findPositionIn(Fo,mu))}ho.mapper.off("modelToViewPosition",qo)}(Pr,mr,Fn,{reconversion:xn.reconversion})}),{priority:g.converterPriority||"normal"}),ie.on("reduceChanges",Ls(P),{priority:"low"})}}(o))}attributeToElement(o){return this.add(function(g){g=di(g);let P=g.model;typeof P=="string"&&(P={key:P});let K=`attribute:${P.key}`;if(P.name&&(K+=":"+P.name),P.values)for(const xe of P.values)g.view[xe]=Do(g.view[xe],"attribute");else g.view=Do(g.view,"attribute");const ie=Ro(g);return xe=>{xe.on(K,function(jt){return(tn,xn,Fn)=>{if(!Fn.consumable.test(xn.item,tn.name))return;const mr=jt(xn.attributeOldValue,Fn,xn),Pr=jt(xn.attributeNewValue,Fn,xn);if(!mr&&!Pr)return;Fn.consumable.consume(xn.item,tn.name);const ti=Fn.writer,Ci=ti.document.selection;if(xn.item instanceof Wr||xn.item instanceof Yt)ti.wrap(Ci.getFirstRange(),Pr);else{let Ji=Fn.mapper.toViewRange(xn.range);xn.attributeOldValue!==null&&mr&&(Ji=ti.unwrap(Ji,mr)),xn.attributeNewValue!==null&&Pr&&ti.wrap(Ji,Pr)}}}(ie),{priority:g.converterPriority||"normal"})}}(o))}attributeToAttribute(o){return this.add(function(g){g=di(g);let P=g.model;typeof P=="string"&&(P={key:P});let K=`attribute:${P.key}`;if(P.name&&(K+=":"+P.name),P.values)for(const xe of P.values)g.view[xe]=Rs(g.view[xe]);else g.view=Rs(g.view);const ie=Ro(g);return xe=>{var jt;xe.on(K,(jt=ie,(tn,xn,Fn)=>{if(!Fn.consumable.test(xn.item,tn.name))return;const mr=jt(xn.attributeOldValue,Fn,xn),Pr=jt(xn.attributeNewValue,Fn,xn);if(!mr&&!Pr)return;Fn.consumable.consume(xn.item,tn.name);const ti=Fn.mapper.toViewElement(xn.item),Ci=Fn.writer;if(!ti)throw new u.Bb("conversion-attribute-to-attribute-on-text",Fn.dispatcher,xn);if(xn.attributeOldValue!==null&&mr)if(mr.key=="class"){const Ji=(0,u.qo)(mr.value);for(const ho of Ji)Ci.removeClass(ho,ti)}else if(mr.key=="style"){const Ji=Object.keys(mr.value);for(const ho of Ji)Ci.removeStyle(ho,ti)}else Ci.removeAttribute(mr.key,ti);if(xn.attributeNewValue!==null&&Pr)if(Pr.key=="class"){const Ji=(0,u.qo)(Pr.value);for(const ho of Ji)Ci.addClass(ho,ti)}else if(Pr.key=="style"){const Ji=Object.keys(Pr.value);for(const ho of Ji)Ci.setStyle(ho,Pr.value[ho],ti)}else Ci.setAttribute(Pr.key,Pr.value,ti)}),{priority:g.converterPriority||"normal"})}}(o))}markerToElement(o){return this.add(function(g){const P=Do(g.view,"ui");return K=>{var ie;K.on(`addMarker:${g.model}`,(ie=P,(xe,jt,tn)=>{jt.isOpening=!0;const xn=ie(jt,tn);jt.isOpening=!1;const Fn=ie(jt,tn);if(!xn||!Fn)return;const mr=jt.markerRange;if(mr.isCollapsed&&!tn.consumable.consume(mr,xe.name))return;for(const Ci of mr)if(!tn.consumable.consume(Ci.item,xe.name))return;const Pr=tn.mapper,ti=tn.writer;ti.insert(Pr.toViewPosition(mr.start),xn),tn.mapper.bindElementToMarker(xn,jt.markerName),mr.isCollapsed||(ti.insert(Pr.toViewPosition(mr.end),Fn),tn.mapper.bindElementToMarker(Fn,jt.markerName)),xe.stop()}),{priority:g.converterPriority||"normal"}),K.on(`removeMarker:${g.model}`,(xe,jt,tn)=>{const xn=tn.mapper.markerNameToElements(jt.markerName);if(xn){for(const Fn of xn)tn.mapper.unbindElementFromMarkerName(Fn,jt.markerName),tn.writer.clear(tn.writer.createRangeOn(Fn),Fn);tn.writer.clearClonedElementsGroup(jt.markerName),xe.stop()}},{priority:g.converterPriority||"normal"})}}(o))}markerToHighlight(o){return this.add(function(g){return P=>{var K;P.on(`addMarker:${g.model}`,(K=g.view,(ie,xe,jt)=>{if(!xe.item||!(xe.item instanceof Wr||xe.item instanceof Yt||xe.item.is("$textProxy")))return;const tn=Ns(K,xe,jt);if(!tn||!jt.consumable.consume(xe.item,ie.name))return;const xn=jt.writer,Fn=Ri(xn,tn),mr=xn.document.selection;if(xe.item instanceof Wr||xe.item instanceof Yt)xn.wrap(mr.getFirstRange(),Fn);else{const Pr=jt.mapper.toViewRange(xe.range),ti=xn.wrap(Pr,Fn);for(const Ci of ti.getItems())if(Ci.is("attributeElement")&&Ci.isSimilar(Fn)){jt.mapper.bindElementToMarker(Ci,xe.markerName);break}}}),{priority:g.converterPriority||"normal"}),P.on(`addMarker:${g.model}`,function(ie){return(xe,jt,tn)=>{if(!jt.item||!(jt.item instanceof es))return;const xn=Ns(ie,jt,tn);if(!xn||!tn.consumable.test(jt.item,xe.name))return;const Fn=tn.mapper.toViewElement(jt.item);if(Fn&&Fn.getCustomProperty("addHighlight")){tn.consumable.consume(jt.item,xe.name);for(const mr of fi._createIn(jt.item))tn.consumable.consume(mr.item,xe.name);Fn.getCustomProperty("addHighlight")(Fn,xn,tn.writer),tn.mapper.bindElementToMarker(Fn,jt.markerName)}}}(g.view),{priority:g.converterPriority||"normal"}),P.on(`removeMarker:${g.model}`,function(ie){return(xe,jt,tn)=>{if(jt.markerRange.isCollapsed)return;const xn=Ns(ie,jt,tn);if(!xn)return;const Fn=Ri(tn.writer,xn),mr=tn.mapper.markerNameToElements(jt.markerName);if(mr){for(const Pr of mr)tn.mapper.unbindElementFromMarkerName(Pr,jt.markerName),Pr.is("attributeElement")?tn.writer.unwrap(tn.writer.createRangeOn(Pr),Fn):Pr.getCustomProperty("removeHighlight")(Pr,xn.id,tn.writer);tn.writer.clearClonedElementsGroup(jt.markerName),xe.stop()}}}(g.view),{priority:g.converterPriority||"normal"})}}(o))}markerToData(o){return this.add(function(g){g=di(g);const P=g.model;let K=g.view;return K||(K=ie=>({group:P,name:ie.substr(g.model.length+1)})),ie=>{var xe;ie.on(`addMarker:${P}`,(xe=K,(jt,tn,xn)=>{const Fn=xe(tn.markerName,xn);if(!Fn)return;const mr=tn.markerRange;xn.consumable.consume(mr,jt.name)&&(Qi(mr,!1,xn,tn,Fn),Qi(mr,!0,xn,tn,Fn),jt.stop())}),{priority:g.converterPriority||"normal"}),ie.on(`removeMarker:${P}`,function(jt){return(tn,xn,Fn)=>{const mr=jt(xn.markerName,Fn);if(!mr)return;const Pr=Fn.mapper.markerNameToElements(xn.markerName);if(Pr){for(const Ci of Pr)Fn.mapper.unbindElementFromMarkerName(Ci,xn.markerName),Ci.is("containerElement")?(ti(`data-${mr.group}-start-before`,Ci),ti(`data-${mr.group}-start-after`,Ci),ti(`data-${mr.group}-end-before`,Ci),ti(`data-${mr.group}-end-after`,Ci)):Fn.writer.clear(Fn.writer.createRangeOn(Ci),Ci);Fn.writer.clearClonedElementsGroup(xn.markerName),tn.stop()}function ti(Ci,Ji){if(Ji.hasAttribute(Ci)){const ho=new Set(Ji.getAttribute(Ci).split(","));ho.delete(mr.name),ho.size==0?Fn.writer.removeAttribute(Ci,Ji):Fn.writer.setAttribute(Ci,Array.from(ho).join(","),Ji)}}}}(K),{priority:g.converterPriority||"normal"})}}(o))}}function Ri(W,o){const g=W.createAttributeElement("span",o.attributes);return o.classes&&g._addClass(o.classes),typeof o.priority=="number"&&(g._priority=o.priority),g._id=o.id,g}function Qi(W,o,g,P,K){const ie=o?W.start:W.end,xe=ie.nodeAfter&&ie.nodeAfter.is("element")?ie.nodeAfter:null,jt=ie.nodeBefore&&ie.nodeBefore.is("element")?ie.nodeBefore:null;if(xe||jt){let tn,xn;o&&xe||!o&&!jt?(tn=xe,xn=!0):(tn=jt,xn=!1);const Fn=g.mapper.toViewElement(tn);if(Fn)return void function(mr,Pr,ti,Ci,Ji,ho){const is=`data-${ho.group}-${Pr?"start":"end"}-${ti?"before":"after"}`,Fo=mr.hasAttribute(is)?mr.getAttribute(is).split(","):[];Fo.unshift(ho.name),Ci.writer.setAttribute(is,Fo.join(","),mr),Ci.mapper.bindElementToMarker(mr,Ji.markerName)}(Fn,o,xn,g,P,K)}(function(tn,xn,Fn,mr,Pr){const ti=`${Pr.group}-${xn?"start":"end"}`,Ci=Pr.name?{name:Pr.name}:null,Ji=Fn.writer.createUIElement(ti,Ci);Fn.writer.insert(tn,Ji),Fn.mapper.bindElementToMarker(Ji,mr.markerName)})(g.mapper.toViewPosition(ie),o,g,P,K)}function so(W){return typeof W=="string"&&(W={name:W}),W.attributes?Array.isArray(W.attributes)||(W.attributes=[W.attributes]):W.attributes=[],W.children=!!W.children,W}function Do(W,o){return typeof W=="function"?W:(g,P)=>function(K,ie,xe){typeof K=="string"&&(K={name:K});let jt;const tn=ie.writer,xn=Object.assign({},K.attributes);if(xe=="container")jt=tn.createContainerElement(K.name,xn);else if(xe=="attribute"){const Fn={priority:K.priority||ke.DEFAULT_PRIORITY};jt=tn.createAttributeElement(K.name,xn,Fn)}else jt=tn.createUIElement(K.name,xn);if(K.styles){const Fn=Object.keys(K.styles);for(const mr of Fn)tn.setStyle(mr,K.styles[mr],jt)}if(K.classes){const Fn=K.classes;if(typeof Fn=="string")tn.addClass(Fn,jt);else for(const mr of Fn)tn.addClass(mr,jt)}return jt}(W,P,o)}function Ro(W){return W.model.values?(o,g,P)=>{const K=W.view[o];return K?K(o,g,P):null}:W.view}function Rs(W){return typeof W=="string"?o=>({key:W,value:o}):typeof W=="object"?W.value?()=>W:o=>({key:W.key,value:o}):W}function Ns(W,o,g){const P=typeof W=="function"?W(o,g):W;return P?(P.priority||(P.priority=10),P.id||(P.id=o.markerName),P):null}function Ls(W){const o=function(g){return(P,K)=>{if(!P.is("element",g.name))return!1;if(K.type=="attribute"){if(g.attributes.includes(K.attributeKey))return!0}else if(g.children)return!0;return!1}}(W);return(g,P)=>{const K=[];P.reconvertedElements||(P.reconvertedElements=new Set);for(const ie of P.changes){const xe=ie.type=="attribute"?ie.range.start.nodeAfter:ie.position.parent;if(xe&&o(xe,ie)){if(!P.reconvertedElements.has(xe)){P.reconvertedElements.add(xe);const jt=Di._createBefore(xe);K.push({type:"remove",name:xe.name,position:jt,length:1},{type:"reinsert",name:xe.name,position:jt,length:1})}}else K.push(ie)}P.changes=K}}function Ba(W){return(o,g,P={})=>{const K=["insert"];for(const ie of W.attributes)o.hasAttribute(ie)&&K.push(`attribute:${ie}`);return!!K.every(ie=>g.test(o,ie))&&(P.preflight||K.forEach(ie=>g.consume(o,ie)),!0)}}function Da(W,o,g,P){for(const K of o)go(W.root,K,g,P)||g.convertItem(K)}function go(W,o,g,P){const{writer:K,mapper:ie}=g;if(!P.reconversion)return!1;const xe=ie.toViewElement(o);return!(!xe||xe.root==W)&&!!g.canReuseView(xe)&&(K.move(K.createRangeOn(xe),ie.toViewPosition(Di._createBefore(o))),!0)}function Wl(W,o,{preflight:g}={}){return g?o.test(W,"insert"):o.consume(W,"insert")}function na(W){const{schema:o,document:g}=W.model;for(const P of g.getRootNames()){const K=g.getRoot(P);if(K.isEmpty&&!o.checkChild(K,"$text")&&o.checkChild(K,"paragraph"))return W.insertElement("paragraph",K),!0}return!1}function Eo(W,o,g){const P=g.createContext(W);return!!g.checkChild(P,"paragraph")&&!!g.checkChild(P.push("paragraph"),o)}function Fs(W,o){const g=o.createElement("paragraph");return o.insert(g,W),o.createPositionAt(g,0)}class _a extends wr{elementToElement(o){return this.add(Ya(o))}elementToAttribute(o){return this.add(function(g){g=di(g),Us(g);const P=Ll(g,!1),K=Ss(g.view),ie=K?`element:${K}`:"element";return xe=>{xe.on(ie,P,{priority:g.converterPriority||"low"})}}(o))}attributeToAttribute(o){return this.add(function(g){g=di(g);let P=null;(typeof g.view=="string"||g.view.key)&&(P=function(ie){typeof ie.view=="string"&&(ie.view={key:ie.view});const xe=ie.view.key;let jt;return xe=="class"||xe=="style"?jt={[xe=="class"?"classes":"styles"]:ie.view.value}:jt={attributes:{[xe]:ie.view.value===void 0?/[\s\S]*/:ie.view.value}},ie.view.name&&(jt.name=ie.view.name),ie.view=jt,xe}(g)),Us(g,P);const K=Ll(g,!0);return ie=>{ie.on("element",K,{priority:g.converterPriority||"low"})}}(o))}elementToMarker(o){return this.add(function(g){const P=function(K){return(ie,xe)=>{const jt=typeof K=="string"?K:K(ie,xe);return xe.writer.createElement("$marker",{"data-name":jt})}}(g.model);return Ya({...g,model:P})}(o))}dataToMarker(o){return this.add(function(g){g=di(g),g.model||(g.model=xe=>xe?g.view+":"+xe:g.view);const P={view:g.view,model:g.model},K=Zl(nc(P,"start")),ie=Zl(nc(P,"end"));return xe=>{xe.on(`element:${g.view}-start`,K,{priority:g.converterPriority||"normal"}),xe.on(`element:${g.view}-end`,ie,{priority:g.converterPriority||"normal"});const jt=u.tA.get("low"),tn=u.tA.get("highest"),xn=u.tA.get(g.converterPriority)/tn;xe.on("element",function(Fn){return(mr,Pr,ti)=>{const Ci=`data-${Fn.view}`;function Ji(ho,is){for(const Fo of is){const Ds=Fn.model(Fo,ti),qo=ti.writer.createElement("$marker",{"data-name":Ds});ti.writer.insert(qo,ho),Pr.modelCursor.isEqual(ho)?Pr.modelCursor=Pr.modelCursor.getShiftedBy(1):Pr.modelCursor=Pr.modelCursor._getTransformedByInsertion(ho,1),Pr.modelRange=Pr.modelRange._getTransformedByInsertion(ho,1)[0]}}(ti.consumable.test(Pr.viewItem,{attributes:Ci+"-end-after"})||ti.consumable.test(Pr.viewItem,{attributes:Ci+"-start-after"})||ti.consumable.test(Pr.viewItem,{attributes:Ci+"-end-before"})||ti.consumable.test(Pr.viewItem,{attributes:Ci+"-start-before"}))&&(Pr.modelRange||Object.assign(Pr,ti.convertChildren(Pr.viewItem,Pr.modelCursor)),ti.consumable.consume(Pr.viewItem,{attributes:Ci+"-end-after"})&&Ji(Pr.modelRange.end,Pr.viewItem.getAttribute(Ci+"-end-after").split(",")),ti.consumable.consume(Pr.viewItem,{attributes:Ci+"-start-after"})&&Ji(Pr.modelRange.end,Pr.viewItem.getAttribute(Ci+"-start-after").split(",")),ti.consumable.consume(Pr.viewItem,{attributes:Ci+"-end-before"})&&Ji(Pr.modelRange.start,Pr.viewItem.getAttribute(Ci+"-end-before").split(",")),ti.consumable.consume(Pr.viewItem,{attributes:Ci+"-start-before"})&&Ji(Pr.modelRange.start,Pr.viewItem.getAttribute(Ci+"-start-before").split(",")))}}(P),{priority:jt+xn})}}(o))}}function Ya(W){const o=Zl(W=di(W)),g=Ss(W.view),P=g?`element:${g}`:"element";return K=>{K.on(P,o,{priority:W.converterPriority||"normal"})}}function Ss(W){return typeof W=="string"?W:typeof W=="object"&&typeof W.name=="string"?W.name:null}function Zl(W){const o=new ee(W.view);return(g,P,K)=>{const ie=o.match(P.viewItem);if(!ie)return;const xe=ie.match;if(xe.name=!0,!K.consumable.test(P.viewItem,xe))return;const jt=function(tn,xn,Fn){return tn instanceof Function?tn(xn,Fn):Fn.writer.createElement(tn)}(W.model,P.viewItem,K);jt&&K.safeInsert(jt,P.modelCursor)&&(K.consumable.consume(P.viewItem,xe),K.convertChildren(P.viewItem,jt),K.updateConversionResult(jt,P))}}function Us(W,o=null){const g=o===null||(ie=>ie.getAttribute(o)),P=typeof W.model!="object"?W.model:W.model.key,K=typeof W.model!="object"||W.model.value===void 0?g:W.model.value;W.model={key:P,value:K}}function Ll(W,o){const g=new ee(W.view);return(P,K,ie)=>{if(!K.modelRange&&o)return;const xe=g.match(K.viewItem);if(!xe||(function(Fn,mr){const Pr=typeof Fn=="function"?Fn(mr):Fn;return typeof Pr=="object"&&!Ss(Pr)?!1:!Pr.classes&&!Pr.attributes&&!Pr.styles}(W.view,K.viewItem)?xe.match.name=!0:delete xe.match.name,!ie.consumable.test(K.viewItem,xe.match)))return;const jt=W.model.key,tn=typeof W.model.value=="function"?W.model.value(K.viewItem,ie):W.model.value;if(tn===null)return;K.modelRange||Object.assign(K,ie.convertChildren(K.viewItem,K.modelCursor)),function(Fn,mr,Pr,ti){let Ci=!1;for(const Ji of Array.from(Fn.getItems({shallow:Pr})))ti.schema.checkAttribute(Ji,mr.key)&&(Ci=!0,Ji.hasAttribute(mr.key)||ti.writer.setAttribute(mr.key,mr.value,Ji));return Ci}(K.modelRange,{key:jt,value:tn},o,ie)&&(ie.consumable.test(K.viewItem,{name:!0})&&(xe.match.name=!0),ie.consumable.consume(K.viewItem,xe.match))}}function nc(W,o){return{view:`${W.view}-${o}`,model:(g,P)=>{const K=g.getAttribute("name"),ie=W.model(K,P);return P.writer.createElement("$marker",{"data-name":ie})}}}class Dc extends(0,u.Re)(){constructor(o,g){super(),this.model=o,this.view=new Qs(g),this.mapper=new rl,this.downcastDispatcher=new Ln({mapper:this.mapper,schema:o.schema});const P=this.model.document,K=P.selection,ie=this.model.markers;this.listenTo(this.model,"_beforeChanges",()=>{this.view._disableRendering(!0)},{priority:"highest"}),this.listenTo(this.model,"_afterChanges",()=>{this.view._disableRendering(!1)},{priority:"lowest"}),this.listenTo(P,"change",()=>{this.view.change(xe=>{this.downcastDispatcher.convertChanges(P.differ,ie,xe),this.downcastDispatcher.convertSelection(K,ie,xe)})},{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(xe,jt){return(tn,xn)=>{const Fn=xn.newSelection,mr=[];for(const ti of Fn.getRanges())mr.push(jt.toModelRange(ti));const Pr=xe.createSelection(mr,{backward:Fn.isBackward});Pr.isEqual(xe.document.selection)||xe.change(ti=>{ti.setSelection(Pr)})}}(this.model,this.mapper)),this.downcastDispatcher.on("insert:$text",(xe,jt,tn)=>{if(!tn.consumable.consume(jt.item,xe.name))return;const xn=tn.writer,Fn=tn.mapper.toViewPosition(jt.range.start),mr=xn.createText(jt.item.data);xn.insert(Fn,mr)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(xe,jt,tn)=>{tn.convertAttributes(jt.item),jt.reconversion||!jt.item.is("element")||jt.item.isEmpty||tn.convertChildren(jt.item)},{priority:"lowest"}),this.downcastDispatcher.on("remove",(xe,jt,tn)=>{const xn=tn.mapper.toViewPosition(jt.position),Fn=jt.position.getShiftedBy(jt.length),mr=tn.mapper.toViewPosition(Fn,{isPhantom:!0}),Pr=tn.writer.createRange(xn,mr),ti=tn.writer.remove(Pr.getTrimmed());for(const Ci of tn.writer.createRangeIn(ti).getItems())tn.mapper.unbindViewElement(Ci,{defer:!0})},{priority:"low"}),this.downcastDispatcher.on("selection",(xe,jt,tn)=>{const xn=tn.writer,Fn=xn.document.selection;for(const mr of Fn.getRanges())mr.isCollapsed&&mr.end.parent.isAttached()&&tn.writer.mergeAttributes(mr.start);xn.setSelection(null)},{priority:"high"}),this.downcastDispatcher.on("selection",(xe,jt,tn)=>{const xn=jt.selection;if(xn.isCollapsed||!tn.consumable.consume(xn,"selection"))return;const Fn=[];for(const mr of xn.getRanges())Fn.push(tn.mapper.toViewRange(mr));tn.writer.setSelection(Fn,{backward:xn.isBackward})},{priority:"low"}),this.downcastDispatcher.on("selection",(xe,jt,tn)=>{const xn=jt.selection;if(!xn.isCollapsed||!tn.consumable.consume(xn,"selection"))return;const Fn=tn.writer,mr=xn.getFirstPosition(),Pr=tn.mapper.toViewPosition(mr),ti=Fn.breakAttributes(Pr);Fn.setSelection(ti)},{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using(xe=>{if(xe.rootName=="$graveyard")return null;const jt=new on(this.view.document,xe.name);return jt.rootName=xe.rootName,this.mapper.bindElements(xe,jt),jt})}destroy(){this.view.destroy(),this.stopListening()}reconvertMarker(o){const g=typeof o=="string"?o:o.name,P=this.model.markers.get(g);if(!P)throw new u.Bb("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:g});this.model.change(()=>{this.model.markers._refresh(P)})}reconvertItem(o){this.model.change(()=>{this.model.document.differ._refreshItem(o)})}}class xa{constructor(){this._consumables=new Map}add(o,g){let P;o.is("$text")||o.is("documentFragment")?this._consumables.set(o,!0):(this._consumables.has(o)?P=this._consumables.get(o):(P=new Ea(o),this._consumables.set(o,P)),P.add(g))}test(o,g){const P=this._consumables.get(o);return P===void 0?null:o.is("$text")||o.is("documentFragment")?P:P.test(g)}consume(o,g){return!!this.test(o,g)&&(o.is("$text")||o.is("documentFragment")?this._consumables.set(o,!1):this._consumables.get(o).consume(g),!0)}revert(o,g){const P=this._consumables.get(o);P!==void 0&&(o.is("$text")||o.is("documentFragment")?this._consumables.set(o,!0):P.revert(g))}static consumablesFromElement(o){const g={element:o,name:!0,attributes:[],classes:[],styles:[]},P=o.getAttributeKeys();for(const xe of P)xe!="style"&&xe!="class"&&g.attributes.push(xe);const K=o.getClassNames();for(const xe of K)g.classes.push(xe);const ie=o.getStyleNames();for(const xe of ie)g.styles.push(xe);return g}static createFrom(o,g){if(g||(g=new xa),o.is("$text"))return g.add(o),g;o.is("element")&&g.add(o,xa.consumablesFromElement(o)),o.is("documentFragment")&&g.add(o);for(const P of o.getChildren())g=xa.createFrom(P,g);return g}}const Kl=["attributes","classes","styles"];class Ea{constructor(o){this.element=o,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(o){o.name&&(this._canConsumeName=!0);for(const g of Kl)g in o&&this._add(g,o[g])}test(o){if(o.name&&!this._canConsumeName)return this._canConsumeName;for(const g of Kl)if(g in o){const P=this._test(g,o[g]);if(P!==!0)return P}return!0}consume(o){o.name&&(this._canConsumeName=!1);for(const g of Kl)g in o&&this._consume(g,o[g])}revert(o){o.name&&(this._canConsumeName=!0);for(const g of Kl)g in o&&this._revert(g,o[g])}_add(o,g){const P=(0,pe.Z)(g)?g:[g],K=this._consumables[o];for(const ie of P){if(o==="attributes"&&(ie==="class"||ie==="style"))throw new u.Bb("viewconsumable-invalid-attribute",this);if(K.set(ie,!0),o==="styles")for(const xe of this.element.document.stylesProcessor.getRelatedStyles(ie))K.set(xe,!0)}}_test(o,g){const P=(0,pe.Z)(g)?g:[g],K=this._consumables[o];for(const ie of P)if(o!=="attributes"||ie!=="class"&&ie!=="style"){const xe=K.get(ie);if(xe===void 0)return null;if(!xe)return!1}else{const xe=ie=="class"?"classes":"styles",jt=this._test(xe,[...this._consumables[xe].keys()]);if(jt!==!0)return jt}return!0}_consume(o,g){const P=(0,pe.Z)(g)?g:[g],K=this._consumables[o];for(const ie of P)if(o!=="attributes"||ie!=="class"&&ie!=="style"){if(K.set(ie,!1),o=="styles")for(const xe of this.element.document.stylesProcessor.getRelatedStyles(ie))K.set(xe,!1)}else{const xe=ie=="class"?"classes":"styles";this._consume(xe,[...this._consumables[xe].keys()])}}_revert(o,g){const P=(0,pe.Z)(g)?g:[g],K=this._consumables[o];for(const ie of P)if(o!=="attributes"||ie!=="class"&&ie!=="style")K.get(ie)===!1&&K.set(ie,!0);else{const xe=ie=="class"?"classes":"styles";this._revert(xe,[...this._consumables[xe].keys()])}}}class js extends(0,u.Re)(){constructor(){super(),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(o,g)=>{g[0]=new jl(g[0])},{priority:"highest"}),this.on("checkChild",(o,g)=>{g[0]=new jl(g[0]),g[1]=this.getDefinition(g[1])},{priority:"highest"})}register(o,g){if(this._sourceDefinitions[o])throw new u.Bb("schema-cannot-register-item-twice",this,{itemName:o});this._sourceDefinitions[o]=[Object.assign({},g)],this._clearCache()}extend(o,g){if(!this._sourceDefinitions[o])throw new u.Bb("schema-cannot-extend-missing-item",this,{itemName:o});this._sourceDefinitions[o].push(Object.assign({},g)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(o){let g;return g=typeof o=="string"?o:"is"in o&&(o.is("$text")||o.is("$textProxy"))?"$text":o.name,this.getDefinitions()[g]}isRegistered(o){return!!this.getDefinition(o)}isBlock(o){const g=this.getDefinition(o);return!(!g||!g.isBlock)}isLimit(o){const g=this.getDefinition(o);return!!g&&!(!g.isLimit&&!g.isObject)}isObject(o){const g=this.getDefinition(o);return!!g&&!!(g.isObject||g.isLimit&&g.isSelectable&&g.isContent)}isInline(o){const g=this.getDefinition(o);return!(!g||!g.isInline)}isSelectable(o){const g=this.getDefinition(o);return!!g&&!(!g.isSelectable&&!g.isObject)}isContent(o){const g=this.getDefinition(o);return!!g&&!(!g.isContent&&!g.isObject)}checkChild(o,g){return!!g&&this._checkContextMatch(g,o)}checkAttribute(o,g){const P=this.getDefinition(o.last);return!!P&&P.allowAttributes.includes(g)}checkMerge(o,g){if(o instanceof Di){const P=o.nodeBefore,K=o.nodeAfter;if(!(P instanceof es))throw new u.Bb("schema-check-merge-no-element-before",this);if(!(K instanceof es))throw new u.Bb("schema-check-merge-no-element-after",this);return this.checkMerge(P,K)}for(const P of g.getChildren())if(!this.checkChild(o,P))return!1;return!0}addChildCheck(o){this.on("checkChild",(g,[P,K])=>{if(!K)return;const ie=o(P,K);typeof ie=="boolean"&&(g.stop(),g.return=ie)},{priority:"high"})}addAttributeCheck(o){this.on("checkAttribute",(g,[P,K])=>{const ie=o(P,K);typeof ie=="boolean"&&(g.stop(),g.return=ie)},{priority:"high"})}setAttributeProperties(o,g){this._attributeProperties[o]=Object.assign(this.getAttributeProperties(o),g)}getAttributeProperties(o){return this._attributeProperties[o]||{}}getLimitElement(o){let g;for(o instanceof Di?g=o.parent:g=(o instanceof fi?[o]:Array.from(o.getRanges())).reduce((P,K)=>{const ie=K.getCommonAncestor();return P?P.getCommonAncestor(ie,{includeSelf:!0}):ie},null);!this.isLimit(g)&&g.parent;)g=g.parent;return g}checkAttributeInSelection(o,g){if(o.isCollapsed){const P=[...o.getFirstPosition().getAncestors(),new gs("",o.getAttributes())];return this.checkAttribute(P,g)}{const P=o.getRanges();for(const K of P)for(const ie of K)if(this.checkAttribute(ie.item,g))return!0}return!1}*getValidRanges(o,g){o=function*(P){for(const K of P)yield*K.getMinimalFlatRanges()}(o);for(const P of o)yield*this._getValidRangesForRange(P,g)}getNearestSelectionRange(o,g="both"){if(this.checkChild(o,"$text"))return new fi(o);let P,K;const ie=o.getAncestors().reverse().find(xe=>this.isLimit(xe))||o.root;g!="both"&&g!="backward"||(P=new Ga({boundaries:fi._createIn(ie),startPosition:o,direction:"backward"})),g!="both"&&g!="forward"||(K=new Ga({boundaries:fi._createIn(ie),startPosition:o}));for(const xe of function*(jt,tn){let xn=!1;for(;!xn;){if(xn=!0,jt){const Fn=jt.next();Fn.done||(xn=!1,yield{walker:jt,value:Fn.value})}if(tn){const Fn=tn.next();Fn.done||(xn=!1,yield{walker:tn,value:Fn.value})}}}(P,K)){const jt=xe.walker==P?"elementEnd":"elementStart",tn=xe.value;if(tn.type==jt&&this.isObject(tn.item))return fi._createOn(tn.item);if(this.checkChild(tn.nextPosition,"$text"))return new fi(tn.nextPosition)}return null}findAllowedParent(o,g){let P=o.parent;for(;P;){if(this.checkChild(P,g))return P;if(this.isLimit(P))return null;P=P.parent}return null}setAllowedAttributes(o,g,P){const K=P.model;for(const[ie,xe]of Object.entries(g))K.schema.checkAttribute(o,ie)&&P.setAttribute(ie,xe,o)}removeDisallowedAttributes(o,g){for(const P of o)if(P.is("$text"))au(this,P,g);else{const K=fi._createIn(P).getPositions();for(const ie of K)au(this,ie.nodeBefore||ie.parent,g)}}getAttributesWithProperty(o,g,P){const K={};for(const[ie,xe]of o.getAttributes()){const jt=this.getAttributeProperties(ie);jt[g]!==void 0&&(P!==void 0&&P!==jt[g]||(K[ie]=xe))}return K}createContext(o){return new jl(o)}_clearCache(){this._compiledDefinitions=null}_compile(){const o={},g=this._sourceDefinitions,P=Object.keys(g);for(const K of P)o[K]=Bl(g[K],K);for(const K of P)il(o,K);for(const K of P)ko(o,K);for(const K of P)fc(o,K);for(const K of P)pc(o,K),rc(o,K);for(const K of P)Ic(o,K),su(o,K),Rc(o,K);this._compiledDefinitions=o}_checkContextMatch(o,g,P=g.length-1){const K=g.getItem(P);if(o.allowIn.includes(K.name)){if(P==0)return!0;{const ie=this.getDefinition(K);return this._checkContextMatch(ie,g,P-1)}}return!1}*_getValidRangesForRange(o,g){let P=o.start,K=o.start;for(const ie of o.getItems({shallow:!0}))ie.is("element")&&(yield*this._getValidRangesForRange(fi._createIn(ie),g)),this.checkAttribute(ie,g)||(P.isEqual(K)||(yield new fi(P,K)),P=Di._createAfter(ie)),K=Di._createAfter(ie);P.isEqual(K)||(yield new fi(P,K))}}class jl{constructor(o){if(o instanceof jl)return o;let g;g=typeof o=="string"?[o]:Array.isArray(o)?o:o.getAncestors({includeSelf:!0}),this._items=g.map(ud)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(o){const g=new jl([o]);return g._items=[...this._items,...g._items],g}getItem(o){return this._items[o]}*getNames(){yield*this._items.map(o=>o.name)}endsWith(o){return Array.from(this.getNames()).join(" ").endsWith(o)}startsWith(o){return Array.from(this.getNames()).join(" ").startsWith(o)}}function Bl(W,o){const g={name:o,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(P,K){for(const ie of P){const xe=Object.keys(ie).filter(jt=>jt.startsWith("is"));for(const jt of xe)K[jt]=!!ie[jt]}}(W,g),El(W,g,"allowIn"),El(W,g,"allowContentOf"),El(W,g,"allowWhere"),El(W,g,"allowAttributes"),El(W,g,"allowAttributesOf"),El(W,g,"allowChildren"),El(W,g,"inheritTypesFrom"),function(P,K){for(const ie of P){const xe=ie.inheritAllFrom;xe&&(K.allowContentOf.push(xe),K.allowWhere.push(xe),K.allowAttributesOf.push(xe),K.inheritTypesFrom.push(xe))}}(W,g),g}function il(W,o){const g=W[o];for(const P of g.allowChildren){const K=W[P];K&&K.allowIn.push(o)}g.allowChildren.length=0}function ko(W,o){for(const g of W[o].allowContentOf)W[g]&&Nl(W,g).forEach(P=>{P.allowIn.push(o)});delete W[o].allowContentOf}function fc(W,o){for(const g of W[o].allowWhere){const P=W[g];if(P){const K=P.allowIn;W[o].allowIn.push(...K)}}delete W[o].allowWhere}function pc(W,o){for(const g of W[o].allowAttributesOf){const P=W[g];if(P){const K=P.allowAttributes;W[o].allowAttributes.push(...K)}}delete W[o].allowAttributesOf}function rc(W,o){const g=W[o];for(const P of g.inheritTypesFrom){const K=W[P];if(K){const ie=Object.keys(K).filter(xe=>xe.startsWith("is"));for(const xe of ie)xe in g||(g[xe]=K[xe])}}delete g.inheritTypesFrom}function Ic(W,o){const g=W[o],P=g.allowIn.filter(K=>W[K]);g.allowIn=Array.from(new Set(P))}function su(W,o){const g=W[o];for(const P of g.allowIn)W[P].allowChildren.push(o)}function Rc(W,o){const g=W[o];g.allowAttributes=Array.from(new Set(g.allowAttributes))}function El(W,o,g){for(const P of W){const K=P[g];typeof K=="string"?o[g].push(K):Array.isArray(K)&&o[g].push(...K)}}function Nl(W,o){const g=W[o];return(P=W,Object.keys(P).map(K=>P[K])).filter(K=>K.allowIn.includes(g.name));var P}function ud(W){return typeof W=="string"||W.is("documentFragment")?{name:typeof W=="string"?W:"$documentFragment",*getAttributeKeys(){},getAttribute(){}}:{name:W.is("element")?W.name:"$text",*getAttributeKeys(){yield*W.getAttributeKeys()},getAttribute:o=>W.getAttribute(o)}}function au(W,o,g){for(const P of o.getAttributeKeys())W.checkAttribute(o,P)||g.removeAttribute(P,o)}class Lc extends(0,u.ln)(){constructor(o){super(),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this._emptyElementsToKeep=new Set,this.conversionApi={...o,consumable:null,writer:null,store:null,convertItem:(g,P)=>this._convertItem(g,P),convertChildren:(g,P)=>this._convertChildren(g,P),safeInsert:(g,P)=>this._safeInsert(g,P),updateConversionResult:(g,P)=>this._updateConversionResult(g,P),splitToAllowedParent:(g,P)=>this._splitToAllowedParent(g,P),getSplitParts:g=>this._getSplitParts(g),keepEmptyElement:g=>this._keepEmptyElement(g)}}convert(o,g,P=["$root"]){this.fire("viewCleanup",o),this._modelCursor=function(xe,jt){let tn;for(const xn of new jl(xe)){const Fn={};for(const Pr of xn.getAttributeKeys())Fn[Pr]=xn.getAttribute(Pr);const mr=jt.createElement(xn.name,Fn);tn&&jt.insert(mr,tn),tn=Di._createAt(mr,0)}return tn}(P,g),this.conversionApi.writer=g,this.conversionApi.consumable=xa.createFrom(o),this.conversionApi.store={};const{modelRange:K}=this._convertItem(o,this._modelCursor),ie=g.createDocumentFragment();if(K){this._removeEmptyElements();for(const xe of Array.from(this._modelCursor.parent.getChildren()))g.append(xe,ie);ie.markers=function(xe,jt){const tn=new Set,xn=new Map,Fn=fi._createIn(xe).getItems();for(const mr of Fn)mr.is("element","$marker")&&tn.add(mr);for(const mr of tn){const Pr=mr.getAttribute("data-name"),ti=jt.createPositionBefore(mr);xn.has(Pr)?xn.get(Pr).end=ti.clone():xn.set(Pr,new fi(ti.clone())),jt.remove(mr)}return xn}(ie,g)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,ie}_convertItem(o,g){const P={viewItem:o,modelCursor:g,modelRange:null};if(o.is("element")?this.fire(`element:${o.name}`,P,this.conversionApi):o.is("$text")?this.fire("text",P,this.conversionApi):this.fire("documentFragment",P,this.conversionApi),P.modelRange&&!(P.modelRange instanceof fi))throw new u.Bb("view-conversion-dispatcher-incorrect-result",this);return{modelRange:P.modelRange,modelCursor:P.modelCursor}}_convertChildren(o,g){let P=g.is("position")?g:Di._createAt(g,0);const K=new fi(P);for(const ie of Array.from(o.getChildren())){const xe=this._convertItem(ie,P);xe.modelRange instanceof fi&&(K.end=xe.modelRange.end,P=xe.modelCursor)}return{modelRange:K,modelCursor:P}}_safeInsert(o,g){const P=this._splitToAllowedParent(o,g);return!!P&&(this.conversionApi.writer.insert(o,P.position),!0)}_updateConversionResult(o,g){const P=this._getSplitParts(o),K=this.conversionApi.writer;g.modelRange||(g.modelRange=K.createRange(K.createPositionBefore(o),K.createPositionAfter(P[P.length-1])));const ie=this._cursorParents.get(o);g.modelCursor=ie?K.createPositionAt(ie,0):g.modelRange.end}_splitToAllowedParent(o,g){const{schema:P,writer:K}=this.conversionApi;let ie=P.findAllowedParent(g,o);if(ie){if(ie===g.parent)return{position:g};this._modelCursor.parent.getAncestors().includes(ie)&&(ie=null)}if(!ie)return Eo(g,o,P)?{position:Fs(g,K)}:null;const xe=this.conversionApi.writer.split(g,ie),jt=[];for(const xn of xe.range.getWalker())if(xn.type=="elementEnd")jt.push(xn.item);else{const Fn=jt.pop(),mr=xn.item;this._registerSplitPair(Fn,mr)}const tn=xe.range.end.parent;return this._cursorParents.set(o,tn),{position:xe.position,cursorParent:tn}}_registerSplitPair(o,g){this._splitParts.has(o)||this._splitParts.set(o,[o]);const P=this._splitParts.get(o);this._splitParts.set(g,P),P.push(g)}_getSplitParts(o){let g;return g=this._splitParts.has(o)?this._splitParts.get(o):[o],g}_keepEmptyElement(o){this._emptyElementsToKeep.add(o)}_removeEmptyElements(){let o=!1;for(const g of this._splitParts.keys())g.isEmpty&&!this._emptyElementsToKeep.has(g)&&(this.conversionApi.writer.remove(g),this._splitParts.delete(g),o=!0);o&&this._removeEmptyElements()}}class zu{getHtml(o){const g=document.implementation.createHTMLDocument("").createElement("div");return g.appendChild(o),g.innerHTML}}class mc{constructor(o){this.skipComments=!0,this.domParser=new DOMParser,this.domConverter=new hn(o,{renderingMode:"data"}),this.htmlWriter=new zu}toData(o){const g=this.domConverter.viewToDom(o);return this.htmlWriter.getHtml(g)}toView(o){const g=this._toDom(o);return this.domConverter.domToView(g,{skipComments:this.skipComments})}registerRawContentMatcher(o){this.domConverter.registerRawContentMatcher(o)}useFillerType(o){this.domConverter.blockFillerMode=o=="marked"?"markedNbsp":"nbsp"}_toDom(o){o.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i)||(o=`<body>${o}</body>`);const g=this.domParser.parseFromString(o,"text/html"),P=g.createDocumentFragment(),K=g.body.childNodes;for(;K.length>0;)P.appendChild(K[0]);return P}}class ol extends(0,u.ln)(){constructor(o,g){super(),this.model=o,this.mapper=new rl,this.downcastDispatcher=new Ln({mapper:this.mapper,schema:o.schema}),this.downcastDispatcher.on("insert:$text",(P,K,ie)=>{if(!ie.consumable.consume(K.item,P.name))return;const xe=ie.writer,jt=ie.mapper.toViewPosition(K.range.start),tn=xe.createText(K.item.data);xe.insert(jt,tn)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(P,K,ie)=>{ie.convertAttributes(K.item),K.reconversion||!K.item.is("element")||K.item.isEmpty||ie.convertChildren(K.item)},{priority:"lowest"}),this.upcastDispatcher=new Lc({schema:o.schema}),this.viewDocument=new Re(g),this.stylesProcessor=g,this.htmlProcessor=new mc(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new Cn(this.viewDocument),this.upcastDispatcher.on("text",(P,K,{schema:ie,consumable:xe,writer:jt})=>{let tn=K.modelCursor;if(!xe.test(K.viewItem))return;if(!ie.checkChild(tn,"$text")){if(!Eo(tn,"$text",ie)||K.viewItem.data.trim().length==0)return;const Fn=tn.nodeBefore;tn=Fs(tn,jt),Fn&&Fn.is("element","$marker")&&(jt.move(jt.createRangeOn(Fn),tn),tn=jt.createPositionAfter(Fn))}xe.consume(K.viewItem);const xn=jt.createText(K.viewItem.data);jt.insert(xn,tn),K.modelRange=jt.createRange(tn,tn.getShiftedBy(xn.offsetSize)),K.modelCursor=K.modelRange.end},{priority:"lowest"}),this.upcastDispatcher.on("element",(P,K,ie)=>{if(!K.modelRange&&ie.consumable.consume(K.viewItem,{name:!0})){const{modelRange:xe,modelCursor:jt}=ie.convertChildren(K.viewItem,K.modelCursor);K.modelRange=xe,K.modelCursor=jt}},{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(P,K,ie)=>{if(!K.modelRange&&ie.consumable.consume(K.viewItem,{name:!0})){const{modelRange:xe,modelCursor:jt}=ie.convertChildren(K.viewItem,K.modelCursor);K.modelRange=xe,K.modelCursor=jt}},{priority:"lowest"}),(0,u.Re)().prototype.decorate.call(this,"init"),(0,u.Re)().prototype.decorate.call(this,"set"),(0,u.Re)().prototype.decorate.call(this,"get"),(0,u.Re)().prototype.decorate.call(this,"toView"),(0,u.Re)().prototype.decorate.call(this,"toModel"),this.on("init",()=>{this.fire("ready")},{priority:"lowest"}),this.on("ready",()=>{this.model.enqueueChange({isUndoable:!1},na)},{priority:"lowest"})}get(o={}){const{rootName:g="main",trim:P="empty"}=o;if(!this._checkIfRootsExists([g]))throw new u.Bb("datacontroller-get-non-existent-root",this);const K=this.model.document.getRoot(g);return P!=="empty"||this.model.hasContent(K,{ignoreWhitespaces:!0})?this.stringify(K,o):""}stringify(o,g={}){const P=this.toView(o,g);return this.processor.toData(P)}toView(o,g={}){const P=this.viewDocument,K=this._viewWriter;this.mapper.clearBindings();const ie=fi._createIn(o),xe=new Zt(P);this.mapper.bindElements(o,xe);const jt=o.is("documentFragment")?o.markers:function(tn){const xn=[],Fn=tn.root.document;if(!Fn)return new Map;const mr=fi._createIn(tn);for(const Pr of Fn.model.markers){const ti=Pr.getRange(),Ci=ti.isCollapsed,Ji=ti.start.isEqual(mr.start)||ti.end.isEqual(mr.end);if(Ci&&Ji)xn.push([Pr.name,ti]);else{const ho=mr.getIntersection(ti);ho&&xn.push([Pr.name,ho])}}return xn.sort(([Pr,ti],[Ci,Ji])=>{if(ti.end.compareWith(Ji.start)!=="after")return 1;if(ti.start.compareWith(Ji.end)!=="before")return-1;switch(ti.start.compareWith(Ji.start)){case"before":return 1;case"after":return-1;default:switch(ti.end.compareWith(Ji.end)){case"before":return 1;case"after":return-1;default:return Ci.localeCompare(Pr)}}}),new Map(xn)}(o);return this.downcastDispatcher.convert(ie,jt,K,g),xe}init(o){if(this.model.document.version)throw new u.Bb("datacontroller-init-document-not-empty",this);let g={};if(typeof o=="string"?g.main=o:g=o,!this._checkIfRootsExists(Object.keys(g)))throw new u.Bb("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},P=>{for(const K of Object.keys(g)){const ie=this.model.document.getRoot(K);P.insert(this.parse(g[K],ie),ie,0)}}),Promise.resolve()}set(o,g={}){let P={};if(typeof o=="string"?P.main=o:P=o,!this._checkIfRootsExists(Object.keys(P)))throw new u.Bb("datacontroller-set-non-existent-root",this);this.model.enqueueChange(g.batchType||{},K=>{K.setSelection(null),K.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const ie of Object.keys(P)){const xe=this.model.document.getRoot(ie);K.remove(K.createRangeIn(xe)),K.insert(this.parse(P[ie],xe),xe,0)}})}parse(o,g="$root"){const P=this.processor.toView(o);return this.toModel(P,g)}toModel(o,g="$root"){return this.model.change(P=>this.upcastDispatcher.convert(o,P,g))}addStyleProcessorRules(o){o(this.stylesProcessor)}registerRawContentMatcher(o){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(o),this.htmlProcessor.registerRawContentMatcher(o)}destroy(){this.stopListening()}_checkIfRootsExists(o){for(const g of o)if(!this.model.document.getRootNames().includes(g))return!1;return!0}}class gc{constructor(o,g){this._helpers=new Map,this._downcast=(0,u.qo)(o),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=(0,u.qo)(g),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(o,g){const P=this._downcast.includes(g);if(!this._upcast.includes(g)&&!P)throw new u.Bb("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:o,dispatchers:[g],isDowncast:P})}for(o){if(!this._helpers.has(o))throw new u.Bb("conversion-for-unknown-group",this);return this._helpers.get(o)}elementToElement(o){this.for("downcast").elementToElement(o);for(const{model:g,view:P}of Fl(o))this.for("upcast").elementToElement({model:g,view:P,converterPriority:o.converterPriority})}attributeToElement(o){this.for("downcast").attributeToElement(o);for(const{model:g,view:P}of Fl(o))this.for("upcast").elementToAttribute({view:P,model:g,converterPriority:o.converterPriority})}attributeToAttribute(o){this.for("downcast").attributeToAttribute(o);for(const{model:g,view:P}of Fl(o))this.for("upcast").attributeToAttribute({view:P,model:g})}_createConversionHelpers({name:o,dispatchers:g,isDowncast:P}){if(this._helpers.has(o))throw new u.Bb("conversion-group-exists",this);const K=P?new ai(g):new _a(g);this._helpers.set(o,K)}}function*Fl(W){if(W.model.values)for(const o of W.model.values){const g={key:W.model.key,value:o},P=W.view[o],K=W.upcastAlso?W.upcastAlso[o]:void 0;yield*jn(g,P,K)}else yield*jn(W.model,W.view,W.upcastAlso)}function*jn(W,o,g){if(yield{model:W,view:o},g)for(const P of(0,u.qo)(g))yield{model:W,view:P}}class Qa{constructor(o){this.baseVersion=o,this.isDocumentOperation=this.baseVersion!==null,this.batch=null}_validate(){}toJSON(){const o=Object.assign({},this);return o.__className=this.constructor.className,delete o.batch,delete o.isDocumentOperation,o}static get className(){return"Operation"}static fromJSON(o,g){return new this(o.baseVersion)}}function jc(W,o){const g=Tc(o),P=g.reduce((xe,jt)=>xe+jt.offsetSize,0),K=W.parent;sl(W);const ie=W.index;return K._insertChild(ie,g),Zc(K,ie+g.length),Zc(K,ie),new fi(W,W.getShiftedBy(P))}function Fa(W){if(!W.isFlat)throw new u.Bb("operation-utils-remove-range-not-flat",this);const o=W.start.parent;sl(W.start),sl(W.end);const g=o._removeChildren(W.start.index,W.end.index-W.start.index);return Zc(o,W.start.index),g}function Go(W,o){if(!W.isFlat)throw new u.Bb("operation-utils-move-range-not-flat",this);const g=Fa(W);return jc(o=o._getTransformedByDeletion(W.start,W.end.offset-W.start.offset),g)}function Tc(W){const o=[];(function g(P){if(typeof P=="string")o.push(new gs(P));else if(P instanceof ds)o.push(new gs(P.data,P.getAttributes()));else if(P instanceof Oa)o.push(P);else if((0,u.TW)(P))for(const K of P)g(K)})(W);for(let g=1;g<o.length;g++){const P=o[g],K=o[g-1];P instanceof gs&&K instanceof gs&&$s(P,K)&&(o.splice(g-1,2,new gs(K.data+P.data,K.getAttributes())),g--)}return o}function Zc(W,o){const g=W.getChild(o-1),P=W.getChild(o);if(g&&P&&g.is("$text")&&P.is("$text")&&$s(g,P)){const K=new gs(g.data+P.data,g.getAttributes());W._removeChildren(o-1,2),W._insertChild(o-1,K)}}function sl(W){const o=W.textNode,g=W.parent;if(o){const P=W.offset-o.startOffset,K=o.index;g._removeChildren(K,1);const ie=new gs(o.data.substr(0,P),o.getAttributes()),xe=new gs(o.data.substr(P),o.getAttributes());g._insertChild(K,[ie,xe])}}function $s(W,o){const g=W.getAttributes(),P=o.getAttributes();for(const K of g){if(K[1]!==o.getAttribute(K[0]))return!1;P.next()}return P.next().done}class xs extends Qa{constructor(o,g,P,K){super(K),this.sourcePosition=o.clone(),this.sourcePosition.stickiness="toNext",this.howMany=g,this.targetPosition=P.clone(),this.targetPosition.stickiness="toNone"}get type(){return this.targetPosition.root.rootName=="$graveyard"?"remove":this.sourcePosition.root.rootName=="$graveyard"?"reinsert":"move"}clone(){return new xs(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}getMovedRangeStart(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}getReversed(){const o=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new xs(this.getMovedRangeStart(),this.howMany,o,this.baseVersion+1)}_validate(){const o=this.sourcePosition.parent,g=this.targetPosition.parent,P=this.sourcePosition.offset,K=this.targetPosition.offset;if(P+this.howMany>o.maxOffset)throw new u.Bb("move-operation-nodes-do-not-exist",this);if(o===g&&P<K&&K<P+this.howMany)throw new u.Bb("move-operation-range-into-itself",this);if(this.sourcePosition.root==this.targetPosition.root&&(0,u.Rt)(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())=="prefix"){const ie=this.sourcePosition.path.length-1;if(this.targetPosition.path[ie]>=P&&this.targetPosition.path[ie]<P+this.howMany)throw new u.Bb("move-operation-node-into-itself",this)}}_execute(){Go(fi._createFromPositionAndShift(this.sourcePosition,this.howMany),this.targetPosition)}toJSON(){const o=super.toJSON();return o.sourcePosition=this.sourcePosition.toJSON(),o.targetPosition=this.targetPosition.toJSON(),o}static get className(){return"MoveOperation"}static fromJSON(o,g){const P=Di.fromJSON(o.sourcePosition,g),K=Di.fromJSON(o.targetPosition,g);return new this(P,o.howMany,K,o.baseVersion)}}class cs extends Qa{constructor(o,g,P){super(P),this.position=o.clone(),this.position.stickiness="toNone",this.nodes=new _l(Tc(g)),this.shouldReceiveAttributes=!1}get type(){return"insert"}get howMany(){return this.nodes.maxOffset}clone(){const o=new _l([...this.nodes].map(P=>P._clone(!0))),g=new cs(this.position,o,this.baseVersion);return g.shouldReceiveAttributes=this.shouldReceiveAttributes,g}getReversed(){const o=this.position.root.document.graveyard,g=new Di(o,[0]);return new xs(this.position,this.nodes.maxOffset,g,this.baseVersion+1)}_validate(){const o=this.position.parent;if(!o||o.maxOffset<this.position.offset)throw new u.Bb("insert-operation-position-invalid",this)}_execute(){const o=this.nodes;this.nodes=new _l([...o].map(g=>g._clone(!0))),jc(this.position,o)}toJSON(){const o=super.toJSON();return o.position=this.position.toJSON(),o.nodes=this.nodes.toJSON(),o}static get className(){return"InsertOperation"}static fromJSON(o,g){const P=[];for(const ie of o.nodes)ie.name?P.push(es.fromJSON(ie)):P.push(gs.fromJSON(ie));const K=new cs(Di.fromJSON(o.position,g),P,o.baseVersion);return K.shouldReceiveAttributes=o.shouldReceiveAttributes,K}}class hs extends Qa{constructor(o,g,P,K,ie,xe){super(xe),this.name=o,this.oldRange=g?g.clone():null,this.newRange=P?P.clone():null,this.affectsData=ie,this._markers=K}get type(){return"marker"}clone(){return new hs(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new hs(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}_execute(){this.newRange?this._markers._set(this.name,this.newRange,!0,this.affectsData):this._markers._remove(this.name)}toJSON(){const o=super.toJSON();return this.oldRange&&(o.oldRange=this.oldRange.toJSON()),this.newRange&&(o.newRange=this.newRange.toJSON()),delete o._markers,o}static get className(){return"MarkerOperation"}static fromJSON(o,g){return new hs(o.name,o.oldRange?fi.fromJSON(o.oldRange,g):null,o.newRange?fi.fromJSON(o.newRange,g):null,g.model.markers,o.affectsData,o.baseVersion)}}const Gl=function(W,o){return Hi(W,o)};class As extends Qa{constructor(o,g,P,K,ie){super(ie),this.range=o.clone(),this.key=g,this.oldValue=P===void 0?null:P,this.newValue=K===void 0?null:K}get type(){return this.oldValue===null?"addAttribute":this.newValue===null?"removeAttribute":"changeAttribute"}clone(){return new As(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new As(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}toJSON(){const o=super.toJSON();return o.range=this.range.toJSON(),o}_validate(){if(!this.range.isFlat)throw new u.Bb("attribute-operation-range-not-flat",this);for(const o of this.range.getItems({shallow:!0})){if(this.oldValue!==null&&!Gl(o.getAttribute(this.key),this.oldValue))throw new u.Bb("attribute-operation-wrong-old-value",this,{item:o,key:this.key,value:this.oldValue});if(this.oldValue===null&&this.newValue!==null&&o.hasAttribute(this.key))throw new u.Bb("attribute-operation-attribute-exists",this,{node:o,key:this.key})}}_execute(){Gl(this.oldValue,this.newValue)||function(o,g,P){sl(o.start),sl(o.end);for(const K of o.getItems({shallow:!0})){const ie=K.is("$textProxy")?K.textNode:K;P!==null?ie._setAttribute(g,P):ie._removeAttribute(g),Zc(ie.parent,ie.index)}Zc(o.end.parent,o.end.index)}(this.range,this.key,this.newValue)}static get className(){return"AttributeOperation"}static fromJSON(o,g){return new As(fi.fromJSON(o.range,g),o.key,o.oldValue,o.newValue,o.baseVersion)}}class fs extends Qa{get type(){return"noop"}clone(){return new fs(this.baseVersion)}getReversed(){return new fs(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}class $a extends Qa{constructor(o,g,P,K){super(K),this.position=o,this.position.stickiness="toNext",this.oldName=g,this.newName=P}get type(){return"rename"}clone(){return new $a(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new $a(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const o=this.position.nodeAfter;if(!(o instanceof es))throw new u.Bb("rename-operation-wrong-position",this);if(o.name!==this.oldName)throw new u.Bb("rename-operation-wrong-name",this)}_execute(){this.position.nodeAfter.name=this.newName}toJSON(){const o=super.toJSON();return o.position=this.position.toJSON(),o}static get className(){return"RenameOperation"}static fromJSON(o,g){return new $a(Di.fromJSON(o.position,g),o.oldName,o.newName,o.baseVersion)}}class al extends Qa{constructor(o,g,P,K,ie){super(ie),this.root=o,this.key=g,this.oldValue=P,this.newValue=K}get type(){return this.oldValue===null?"addRootAttribute":this.newValue===null?"removeRootAttribute":"changeRootAttribute"}clone(){return new al(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new al(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new u.Bb("rootattribute-operation-not-a-root",this,{root:this.root,key:this.key});if(this.oldValue!==null&&this.root.getAttribute(this.key)!==this.oldValue)throw new u.Bb("rootattribute-operation-wrong-old-value",this,{root:this.root,key:this.key});if(this.oldValue===null&&this.newValue!==null&&this.root.hasAttribute(this.key))throw new u.Bb("rootattribute-operation-attribute-exists",this,{root:this.root,key:this.key})}_execute(){this.newValue!==null?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}toJSON(){const o=super.toJSON();return o.root=this.root.toJSON(),o}static get className(){return"RootAttributeOperation"}static fromJSON(o,g){if(!g.getRoot(o.root))throw new u.Bb("rootattribute-operation-fromjson-no-root",this,{rootName:o.root});return new al(g.getRoot(o.root),o.key,o.oldValue,o.newValue,o.baseVersion)}}class Vs extends Qa{constructor(o,g,P,K,ie){super(ie),this.sourcePosition=o.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=g,this.targetPosition=P.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=K.clone()}get type(){return"merge"}get deletionPosition(){return new Di(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const o=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new fi(this.sourcePosition,o)}clone(){return new Vs(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const o=this.targetPosition._getTransformedByMergeOperation(this),g=this.sourcePosition.path.slice(0,-1),P=new Di(this.sourcePosition.root,g)._getTransformedByMergeOperation(this);return new Hs(o,this.howMany,P,this.graveyardPosition,this.baseVersion+1)}_validate(){const o=this.sourcePosition.parent,g=this.targetPosition.parent;if(!o.parent)throw new u.Bb("merge-operation-source-position-invalid",this);if(!g.parent)throw new u.Bb("merge-operation-target-position-invalid",this);if(this.howMany!=o.maxOffset)throw new u.Bb("merge-operation-how-many-invalid",this)}_execute(){const o=this.sourcePosition.parent;Go(fi._createIn(o),this.targetPosition),Go(fi._createOn(o),this.graveyardPosition)}toJSON(){const o=super.toJSON();return o.sourcePosition=o.sourcePosition.toJSON(),o.targetPosition=o.targetPosition.toJSON(),o.graveyardPosition=o.graveyardPosition.toJSON(),o}static get className(){return"MergeOperation"}static fromJSON(o,g){const P=Di.fromJSON(o.sourcePosition,g),K=Di.fromJSON(o.targetPosition,g),ie=Di.fromJSON(o.graveyardPosition,g);return new this(P,o.howMany,K,ie,o.baseVersion)}}class Hs extends Qa{constructor(o,g,P,K,ie){super(ie),this.splitPosition=o.clone(),this.splitPosition.stickiness="toNext",this.howMany=g,this.insertionPosition=P,this.graveyardPosition=K?K.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const o=this.insertionPosition.path.slice();return o.push(0),new Di(this.insertionPosition.root,o)}get movedRange(){const o=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new fi(this.splitPosition,o)}clone(){return new Hs(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const o=this.splitPosition.root.document.graveyard,g=new Di(o,[0]);return new Vs(this.moveTargetPosition,this.howMany,this.splitPosition,g,this.baseVersion+1)}_validate(){const o=this.splitPosition.parent,g=this.splitPosition.offset;if(!o||o.maxOffset<g)throw new u.Bb("split-operation-position-invalid",this);if(!o.parent)throw new u.Bb("split-operation-split-in-root",this);if(this.howMany!=o.maxOffset-this.splitPosition.offset)throw new u.Bb("split-operation-how-many-invalid",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new u.Bb("split-operation-graveyard-position-invalid",this)}_execute(){const o=this.splitPosition.parent;if(this.graveyardPosition)Go(fi._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{const g=o._clone();jc(this.insertionPosition,g)}Go(new fi(Di._createAt(o,this.splitPosition.offset),Di._createAt(o,o.maxOffset)),this.moveTargetPosition)}toJSON(){const o=super.toJSON();return o.splitPosition=this.splitPosition.toJSON(),o.insertionPosition=this.insertionPosition.toJSON(),this.graveyardPosition&&(o.graveyardPosition=this.graveyardPosition.toJSON()),o}static get className(){return"SplitOperation"}static getInsertionPosition(o){const g=o.path.slice(0,-1);return g[g.length-1]++,new Di(o.root,g,"toPrevious")}static fromJSON(o,g){const P=Di.fromJSON(o.splitPosition,g),K=Di.fromJSON(o.insertionPosition,g),ie=o.graveyardPosition?Di.fromJSON(o.graveyardPosition,g):null;return new this(P,o.howMany,K,ie,o.baseVersion)}}const ka={};ka[As.className]=As,ka[cs.className]=cs,ka[hs.className]=hs,ka[xs.className]=xs,ka[fs.className]=fs,ka[Qa.className]=Qa,ka[$a.className]=$a,ka[al.className]=al,ka[Hs.className]=Hs,ka[Vs.className]=Vs;class kl{static fromJSON(o,g){return ka[o.__className].fromJSON(o,g)}}const la=new Map;function rs(W,o,g){let P=la.get(W);P||(P=new Map,la.set(W,P)),P.set(o,g)}function ic(W){return[W]}function Mu(W,o,g={}){const P=function(K,ie){const xe=la.get(K);return xe&&xe.has(ie)?xe.get(ie):ic}(W.constructor,o.constructor);try{return P(W=W.clone(),o,g)}catch(K){throw K}}function Sd(W,o,g){W=W.slice(),o=o.slice();const P=new Bc(g.document,g.useRelations,g.forceWeakRemove);P.setOriginalOperations(W),P.setOriginalOperations(o);const K=P.originalOperations;if(W.length==0||o.length==0)return{operationsA:W,operationsB:o,originalOperations:K};const ie=new WeakMap;for(const tn of W)ie.set(tn,0);const xe={nextBaseVersionA:W[W.length-1].baseVersion+1,nextBaseVersionB:o[o.length-1].baseVersion+1,originalOperationsACount:W.length,originalOperationsBCount:o.length};let jt=0;for(;jt<W.length;){const tn=W[jt],xn=ie.get(tn);if(xn==o.length){jt++;continue}const Fn=o[xn],mr=Mu(tn,Fn,P.getContext(tn,Fn,!0)),Pr=Mu(Fn,tn,P.getContext(Fn,tn,!1));P.updateRelation(tn,Fn),P.setOriginalOperations(mr,tn),P.setOriginalOperations(Pr,Fn);for(const ti of mr)ie.set(ti,xn+Pr.length);W.splice(jt,1,...mr),o.splice(xn,1,...Pr)}if(g.padWithNoOps){const tn=W.length-xe.originalOperationsACount,xn=o.length-xe.originalOperationsBCount;Ha(W,xn-tn),Ha(o,tn-xn)}return dd(W,xe.nextBaseVersionB),dd(o,xe.nextBaseVersionA),{operationsA:W,operationsB:o,originalOperations:K}}class Bc{constructor(o,g,P=!1){this.originalOperations=new Map,this._history=o.history,this._useRelations=g,this._forceWeakRemove=!!P,this._relations=new Map}setOriginalOperations(o,g=null){const P=g?this.originalOperations.get(g):null;for(const K of o)this.originalOperations.set(K,P||K)}updateRelation(o,g){if(o instanceof xs)g instanceof Vs?o.targetPosition.isEqual(g.sourcePosition)||g.movedRange.containsPosition(o.targetPosition)?this._setRelation(o,g,"insertAtSource"):o.targetPosition.isEqual(g.deletionPosition)?this._setRelation(o,g,"insertBetween"):o.targetPosition.isAfter(g.sourcePosition)&&this._setRelation(o,g,"moveTargetAfter"):g instanceof xs&&(o.targetPosition.isEqual(g.sourcePosition)||o.targetPosition.isBefore(g.sourcePosition)?this._setRelation(o,g,"insertBefore"):this._setRelation(o,g,"insertAfter"));else if(o instanceof Hs){if(g instanceof Vs)o.splitPosition.isBefore(g.sourcePosition)&&this._setRelation(o,g,"splitBefore");else if(g instanceof xs)if(o.splitPosition.isEqual(g.sourcePosition)||o.splitPosition.isBefore(g.sourcePosition))this._setRelation(o,g,"splitBefore");else{const P=fi._createFromPositionAndShift(g.sourcePosition,g.howMany);if(o.splitPosition.hasSameParentAs(g.sourcePosition)&&P.containsPosition(o.splitPosition)){const K=P.end.offset-o.splitPosition.offset,ie=o.splitPosition.offset-P.start.offset;this._setRelation(o,g,{howMany:K,offset:ie})}}}else if(o instanceof Vs)g instanceof Vs?(o.targetPosition.isEqual(g.sourcePosition)||this._setRelation(o,g,"mergeTargetNotMoved"),o.sourcePosition.isEqual(g.targetPosition)&&this._setRelation(o,g,"mergeSourceNotMoved"),o.sourcePosition.isEqual(g.sourcePosition)&&this._setRelation(o,g,"mergeSameElement")):g instanceof Hs&&o.sourcePosition.isEqual(g.splitPosition)&&this._setRelation(o,g,"splitAtSource");else if(o instanceof hs){const P=o.newRange;if(!P)return;if(g instanceof xs){const K=fi._createFromPositionAndShift(g.sourcePosition,g.howMany),ie=K.containsPosition(P.start)||K.start.isEqual(P.start),xe=K.containsPosition(P.end)||K.end.isEqual(P.end);!ie&&!xe||K.containsRange(P)||this._setRelation(o,g,{side:ie?"left":"right",path:ie?P.start.path.slice():P.end.path.slice()})}else if(g instanceof Vs){const K=P.start.isEqual(g.targetPosition),ie=P.start.isEqual(g.deletionPosition),xe=P.end.isEqual(g.deletionPosition),jt=P.end.isEqual(g.sourcePosition);(K||ie||xe||jt)&&this._setRelation(o,g,{wasInLeftElement:K,wasStartBeforeMergedElement:ie,wasEndBeforeMergedElement:xe,wasInRightElement:jt})}}}getContext(o,g,P){return{aIsStrong:P,aWasUndone:this._wasUndone(o),bWasUndone:this._wasUndone(g),abRelation:this._useRelations?this._getRelation(o,g):null,baRelation:this._useRelations?this._getRelation(g,o):null,forceWeakRemove:this._forceWeakRemove}}_wasUndone(o){const g=this.originalOperations.get(o);return g.wasUndone||this._history.isUndoneOperation(g)}_getRelation(o,g){const P=this.originalOperations.get(g),K=this._history.getUndoneOperation(P);if(!K)return null;const ie=this.originalOperations.get(o),xe=this._relations.get(ie);return xe&&xe.get(K)||null}_setRelation(o,g,P){const K=this.originalOperations.get(o),ie=this.originalOperations.get(g);let xe=this._relations.get(K);xe||(xe=new Map,this._relations.set(K,xe)),xe.set(ie,P)}}function dd(W,o){for(const g of W)g.baseVersion=o++}function Ha(W,o){for(let g=0;g<o;g++)W.push(new fs(0))}function ll(W,o,g){const P=W.nodes.getNode(0).getAttribute(o);if(P==g)return null;const K=new fi(W.position,W.position.getShiftedBy(W.howMany));return new As(K,o,P,g,0)}function Nc(W,o){return W.targetPosition._getTransformedByDeletion(o.sourcePosition,o.howMany)===null}function Va(W,o){const g=[];for(let P=0;P<W.length;P++){const K=W[P],ie=new xs(K.start,K.end.offset-K.start.offset,o,0);g.push(ie);for(let xe=P+1;xe<W.length;xe++)W[xe]=W[xe]._getTransformedByMove(ie.sourcePosition,ie.targetPosition,ie.howMany)[0];o=o._getTransformedByMove(ie.sourcePosition,ie.targetPosition,ie.howMany)}return g}rs(As,As,(W,o,g)=>{if(W.key===o.key&&W.range.start.hasSameParentAs(o.range.start)){const P=W.range.getDifference(o.range).map(ie=>new As(ie,W.key,W.oldValue,W.newValue,0)),K=W.range.getIntersection(o.range);return K&&g.aIsStrong&&P.push(new As(K,o.key,o.newValue,W.newValue,0)),P.length==0?[new fs(0)]:P}return[W]}),rs(As,cs,(W,o)=>{if(W.range.start.hasSameParentAs(o.position)&&W.range.containsPosition(o.position)){const g=W.range._getTransformedByInsertion(o.position,o.howMany,!o.shouldReceiveAttributes).map(P=>new As(P,W.key,W.oldValue,W.newValue,W.baseVersion));if(o.shouldReceiveAttributes){const P=ll(o,W.key,W.oldValue);P&&g.unshift(P)}return g}return W.range=W.range._getTransformedByInsertion(o.position,o.howMany,!1)[0],[W]}),rs(As,Vs,(W,o)=>{const g=[];W.range.start.hasSameParentAs(o.deletionPosition)&&(W.range.containsPosition(o.deletionPosition)||W.range.start.isEqual(o.deletionPosition))&&g.push(fi._createFromPositionAndShift(o.graveyardPosition,1));const P=W.range._getTransformedByMergeOperation(o);return P.isCollapsed||g.push(P),g.map(K=>new As(K,W.key,W.oldValue,W.newValue,W.baseVersion))}),rs(As,xs,(W,o)=>function(g,P){const K=fi._createFromPositionAndShift(P.sourcePosition,P.howMany);let ie=null,xe=[];K.containsRange(g,!0)?ie=g:g.start.hasSameParentAs(K.start)?(xe=g.getDifference(K),ie=g.getIntersection(K)):xe=[g];const jt=[];for(let tn of xe){tn=tn._getTransformedByDeletion(P.sourcePosition,P.howMany);const xn=P.getMovedRangeStart(),Fn=tn.start.hasSameParentAs(xn),mr=tn._getTransformedByInsertion(xn,P.howMany,Fn);jt.push(...mr)}return ie&&jt.push(ie._getTransformedByMove(P.sourcePosition,P.targetPosition,P.howMany,!1)[0]),jt}(W.range,o).map(g=>new As(g,W.key,W.oldValue,W.newValue,W.baseVersion))),rs(As,Hs,(W,o)=>{if(W.range.end.isEqual(o.insertionPosition))return o.graveyardPosition||W.range.end.offset++,[W];if(W.range.start.hasSameParentAs(o.splitPosition)&&W.range.containsPosition(o.splitPosition)){const g=W.clone();return g.range=new fi(o.moveTargetPosition.clone(),W.range.end._getCombined(o.splitPosition,o.moveTargetPosition)),W.range.end=o.splitPosition.clone(),W.range.end.stickiness="toPrevious",[W,g]}return W.range=W.range._getTransformedBySplitOperation(o),[W]}),rs(cs,As,(W,o)=>{const g=[W];if(W.shouldReceiveAttributes&&W.position.hasSameParentAs(o.range.start)&&o.range.containsPosition(W.position)){const P=ll(W,o.key,o.newValue);P&&g.push(P)}return g}),rs(cs,cs,(W,o,g)=>(W.position.isEqual(o.position)&&g.aIsStrong||(W.position=W.position._getTransformedByInsertOperation(o)),[W])),rs(cs,xs,(W,o)=>(W.position=W.position._getTransformedByMoveOperation(o),[W])),rs(cs,Hs,(W,o)=>(W.position=W.position._getTransformedBySplitOperation(o),[W])),rs(cs,Vs,(W,o)=>(W.position=W.position._getTransformedByMergeOperation(o),[W])),rs(hs,cs,(W,o)=>(W.oldRange&&(W.oldRange=W.oldRange._getTransformedByInsertOperation(o)[0]),W.newRange&&(W.newRange=W.newRange._getTransformedByInsertOperation(o)[0]),[W])),rs(hs,hs,(W,o,g)=>{if(W.name==o.name){if(!g.aIsStrong)return[new fs(0)];W.oldRange=o.newRange?o.newRange.clone():null}return[W]}),rs(hs,Vs,(W,o)=>(W.oldRange&&(W.oldRange=W.oldRange._getTransformedByMergeOperation(o)),W.newRange&&(W.newRange=W.newRange._getTransformedByMergeOperation(o)),[W])),rs(hs,xs,(W,o,g)=>{if(W.oldRange&&(W.oldRange=fi._createFromRanges(W.oldRange._getTransformedByMoveOperation(o))),W.newRange){if(g.abRelation){const P=fi._createFromRanges(W.newRange._getTransformedByMoveOperation(o));if(g.abRelation.side=="left"&&o.targetPosition.isEqual(W.newRange.start))return W.newRange.end=P.end,W.newRange.start.path=g.abRelation.path,[W];if(g.abRelation.side=="right"&&o.targetPosition.isEqual(W.newRange.end))return W.newRange.start=P.start,W.newRange.end.path=g.abRelation.path,[W]}W.newRange=fi._createFromRanges(W.newRange._getTransformedByMoveOperation(o))}return[W]}),rs(hs,Hs,(W,o,g)=>{if(W.oldRange&&(W.oldRange=W.oldRange._getTransformedBySplitOperation(o)),W.newRange){if(g.abRelation){const P=W.newRange._getTransformedBySplitOperation(o);return W.newRange.start.isEqual(o.splitPosition)&&g.abRelation.wasStartBeforeMergedElement?W.newRange.start=Di._createAt(o.insertionPosition):W.newRange.start.isEqual(o.splitPosition)&&!g.abRelation.wasInLeftElement&&(W.newRange.start=Di._createAt(o.moveTargetPosition)),W.newRange.end.isEqual(o.splitPosition)&&g.abRelation.wasInRightElement?W.newRange.end=Di._createAt(o.moveTargetPosition):W.newRange.end.isEqual(o.splitPosition)&&g.abRelation.wasEndBeforeMergedElement?W.newRange.end=Di._createAt(o.insertionPosition):W.newRange.end=P.end,[W]}W.newRange=W.newRange._getTransformedBySplitOperation(o)}return[W]}),rs(Vs,cs,(W,o)=>(W.sourcePosition.hasSameParentAs(o.position)&&(W.howMany+=o.howMany),W.sourcePosition=W.sourcePosition._getTransformedByInsertOperation(o),W.targetPosition=W.targetPosition._getTransformedByInsertOperation(o),[W])),rs(Vs,Vs,(W,o,g)=>{if(W.sourcePosition.isEqual(o.sourcePosition)&&W.targetPosition.isEqual(o.targetPosition)){if(g.bWasUndone){const P=o.graveyardPosition.path.slice();return P.push(0),W.sourcePosition=new Di(o.graveyardPosition.root,P),W.howMany=0,[W]}return[new fs(0)]}if(W.sourcePosition.isEqual(o.sourcePosition)&&!W.targetPosition.isEqual(o.targetPosition)&&!g.bWasUndone&&g.abRelation!="splitAtSource"){const P=W.targetPosition.root.rootName=="$graveyard",K=o.targetPosition.root.rootName=="$graveyard";if(K&&!P||!(P&&!K)&&g.aIsStrong){const ie=o.targetPosition._getTransformedByMergeOperation(o),xe=W.targetPosition._getTransformedByMergeOperation(o);return[new xs(ie,W.howMany,xe,0)]}return[new fs(0)]}return W.sourcePosition.hasSameParentAs(o.targetPosition)&&(W.howMany+=o.howMany),W.sourcePosition=W.sourcePosition._getTransformedByMergeOperation(o),W.targetPosition=W.targetPosition._getTransformedByMergeOperation(o),W.graveyardPosition.isEqual(o.graveyardPosition)&&g.aIsStrong||(W.graveyardPosition=W.graveyardPosition._getTransformedByMergeOperation(o)),[W]}),rs(Vs,xs,(W,o,g)=>{const P=fi._createFromPositionAndShift(o.sourcePosition,o.howMany);return o.type=="remove"&&!g.bWasUndone&&!g.forceWeakRemove&&W.deletionPosition.hasSameParentAs(o.sourcePosition)&&P.containsPosition(W.sourcePosition)?[new fs(0)]:(W.sourcePosition.hasSameParentAs(o.targetPosition)&&(W.howMany+=o.howMany),W.sourcePosition.hasSameParentAs(o.sourcePosition)&&(W.howMany-=o.howMany),W.sourcePosition=W.sourcePosition._getTransformedByMoveOperation(o),W.targetPosition=W.targetPosition._getTransformedByMoveOperation(o),W.graveyardPosition.isEqual(o.targetPosition)||(W.graveyardPosition=W.graveyardPosition._getTransformedByMoveOperation(o)),[W])}),rs(Vs,Hs,(W,o,g)=>{if(o.graveyardPosition&&(W.graveyardPosition=W.graveyardPosition._getTransformedByDeletion(o.graveyardPosition,1),W.deletionPosition.isEqual(o.graveyardPosition)&&(W.howMany=o.howMany)),W.targetPosition.isEqual(o.splitPosition)){const P=o.howMany!=0,K=o.graveyardPosition&&W.deletionPosition.isEqual(o.graveyardPosition);if(P||K||g.abRelation=="mergeTargetNotMoved")return W.sourcePosition=W.sourcePosition._getTransformedBySplitOperation(o),[W]}if(W.sourcePosition.isEqual(o.splitPosition)){if(g.abRelation=="mergeSourceNotMoved")return W.howMany=0,W.targetPosition=W.targetPosition._getTransformedBySplitOperation(o),[W];if(g.abRelation=="mergeSameElement"||W.sourcePosition.offset>0)return W.sourcePosition=o.moveTargetPosition.clone(),W.targetPosition=W.targetPosition._getTransformedBySplitOperation(o),[W]}return W.sourcePosition.hasSameParentAs(o.splitPosition)&&(W.howMany=o.splitPosition.offset),W.sourcePosition=W.sourcePosition._getTransformedBySplitOperation(o),W.targetPosition=W.targetPosition._getTransformedBySplitOperation(o),[W]}),rs(xs,cs,(W,o)=>{const g=fi._createFromPositionAndShift(W.sourcePosition,W.howMany)._getTransformedByInsertOperation(o,!1)[0];return W.sourcePosition=g.start,W.howMany=g.end.offset-g.start.offset,W.targetPosition.isEqual(o.position)||(W.targetPosition=W.targetPosition._getTransformedByInsertOperation(o)),[W]}),rs(xs,xs,(W,o,g)=>{const P=fi._createFromPositionAndShift(W.sourcePosition,W.howMany),K=fi._createFromPositionAndShift(o.sourcePosition,o.howMany);let ie,xe=g.aIsStrong,jt=!g.aIsStrong;if(g.abRelation=="insertBefore"||g.baRelation=="insertAfter"?jt=!0:g.abRelation!="insertAfter"&&g.baRelation!="insertBefore"||(jt=!1),ie=W.targetPosition.isEqual(o.targetPosition)&&jt?W.targetPosition._getTransformedByDeletion(o.sourcePosition,o.howMany):W.targetPosition._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany),Nc(W,o)&&Nc(o,W))return[o.getReversed()];if(P.containsPosition(o.targetPosition)&&P.containsRange(K,!0))return P.start=P.start._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany),P.end=P.end._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany),Va([P],ie);if(K.containsPosition(W.targetPosition)&&K.containsRange(P,!0))return P.start=P.start._getCombined(o.sourcePosition,o.getMovedRangeStart()),P.end=P.end._getCombined(o.sourcePosition,o.getMovedRangeStart()),Va([P],ie);const tn=(0,u.Rt)(W.sourcePosition.getParentPath(),o.sourcePosition.getParentPath());if(tn=="prefix"||tn=="extension")return P.start=P.start._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany),P.end=P.end._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany),Va([P],ie);W.type!="remove"||o.type=="remove"||g.aWasUndone||g.forceWeakRemove?W.type=="remove"||o.type!="remove"||g.bWasUndone||g.forceWeakRemove||(xe=!1):xe=!0;const xn=[],Fn=P.getDifference(K);for(const Pr of Fn){Pr.start=Pr.start._getTransformedByDeletion(o.sourcePosition,o.howMany),Pr.end=Pr.end._getTransformedByDeletion(o.sourcePosition,o.howMany);const ti=(0,u.Rt)(Pr.start.getParentPath(),o.getMovedRangeStart().getParentPath())=="same",Ci=Pr._getTransformedByInsertion(o.getMovedRangeStart(),o.howMany,ti);xn.push(...Ci)}const mr=P.getIntersection(K);return mr!==null&&xe&&(mr.start=mr.start._getCombined(o.sourcePosition,o.getMovedRangeStart()),mr.end=mr.end._getCombined(o.sourcePosition,o.getMovedRangeStart()),xn.length===0?xn.push(mr):xn.length==1?K.start.isBefore(P.start)||K.start.isEqual(P.start)?xn.unshift(mr):xn.push(mr):xn.splice(1,0,mr)),xn.length===0?[new fs(W.baseVersion)]:Va(xn,ie)}),rs(xs,Hs,(W,o,g)=>{let P=W.targetPosition.clone();W.targetPosition.isEqual(o.insertionPosition)&&o.graveyardPosition&&g.abRelation!="moveTargetAfter"||(P=W.targetPosition._getTransformedBySplitOperation(o));const K=fi._createFromPositionAndShift(W.sourcePosition,W.howMany);if(K.end.isEqual(o.insertionPosition))return o.graveyardPosition||W.howMany++,W.targetPosition=P,[W];if(K.start.hasSameParentAs(o.splitPosition)&&K.containsPosition(o.splitPosition)){let xe=new fi(o.splitPosition,K.end);return xe=xe._getTransformedBySplitOperation(o),Va([new fi(K.start,o.splitPosition),xe],P)}W.targetPosition.isEqual(o.splitPosition)&&g.abRelation=="insertAtSource"&&(P=o.moveTargetPosition),W.targetPosition.isEqual(o.insertionPosition)&&g.abRelation=="insertBetween"&&(P=W.targetPosition);const ie=[K._getTransformedBySplitOperation(o)];if(o.graveyardPosition){const xe=K.start.isEqual(o.graveyardPosition)||K.containsPosition(o.graveyardPosition);W.howMany>1&&xe&&!g.aWasUndone&&ie.push(fi._createFromPositionAndShift(o.insertionPosition,1))}return Va(ie,P)}),rs(xs,Vs,(W,o,g)=>{const P=fi._createFromPositionAndShift(W.sourcePosition,W.howMany);if(o.deletionPosition.hasSameParentAs(W.sourcePosition)&&P.containsPosition(o.sourcePosition)){if(W.type!="remove"||g.forceWeakRemove){if(W.howMany==1)return g.bWasUndone?(W.sourcePosition=o.graveyardPosition.clone(),W.targetPosition=W.targetPosition._getTransformedByMergeOperation(o),[W]):[new fs(0)]}else if(!g.aWasUndone){const ie=[];let xe=o.graveyardPosition.clone(),jt=o.targetPosition._getTransformedByMergeOperation(o);W.howMany>1&&(ie.push(new xs(W.sourcePosition,W.howMany-1,W.targetPosition,0)),xe=xe._getTransformedByMove(W.sourcePosition,W.targetPosition,W.howMany-1),jt=jt._getTransformedByMove(W.sourcePosition,W.targetPosition,W.howMany-1));const tn=o.deletionPosition._getCombined(W.sourcePosition,W.targetPosition),xn=new xs(xe,1,tn,0),Fn=xn.getMovedRangeStart().path.slice();Fn.push(0);const mr=new Di(xn.targetPosition.root,Fn);jt=jt._getTransformedByMove(xe,tn,1);const Pr=new xs(jt,o.howMany,mr,0);return ie.push(xn),ie.push(Pr),ie}}const K=fi._createFromPositionAndShift(W.sourcePosition,W.howMany)._getTransformedByMergeOperation(o);return W.sourcePosition=K.start,W.howMany=K.end.offset-K.start.offset,W.targetPosition=W.targetPosition._getTransformedByMergeOperation(o),[W]}),rs($a,cs,(W,o)=>(W.position=W.position._getTransformedByInsertOperation(o),[W])),rs($a,Vs,(W,o)=>W.position.isEqual(o.deletionPosition)?(W.position=o.graveyardPosition.clone(),W.position.stickiness="toNext",[W]):(W.position=W.position._getTransformedByMergeOperation(o),[W])),rs($a,xs,(W,o)=>(W.position=W.position._getTransformedByMoveOperation(o),[W])),rs($a,$a,(W,o,g)=>{if(W.position.isEqual(o.position)){if(!g.aIsStrong)return[new fs(0)];W.oldName=o.newName}return[W]}),rs($a,Hs,(W,o)=>{const g=W.position.path,P=o.splitPosition.getParentPath();if((0,u.Rt)(g,P)=="same"&&!o.graveyardPosition){const K=new $a(W.position.getShiftedBy(1),W.oldName,W.newName,0);return[W,K]}return W.position=W.position._getTransformedBySplitOperation(o),[W]}),rs(al,al,(W,o,g)=>{if(W.root===o.root&&W.key===o.key){if(!g.aIsStrong||W.newValue===o.newValue)return[new fs(0)];W.oldValue=o.newValue}return[W]}),rs(Hs,cs,(W,o)=>(W.splitPosition.hasSameParentAs(o.position)&&W.splitPosition.offset<o.position.offset&&(W.howMany+=o.howMany),W.splitPosition=W.splitPosition._getTransformedByInsertOperation(o),W.insertionPosition=W.insertionPosition._getTransformedByInsertOperation(o),[W])),rs(Hs,Vs,(W,o,g)=>{if(!W.graveyardPosition&&!g.bWasUndone&&W.splitPosition.hasSameParentAs(o.sourcePosition)){const P=o.graveyardPosition.path.slice();P.push(0);const K=new Di(o.graveyardPosition.root,P),ie=Hs.getInsertionPosition(new Di(o.graveyardPosition.root,P)),xe=new Hs(K,0,ie,null,0);return W.splitPosition=W.splitPosition._getTransformedByMergeOperation(o),W.insertionPosition=Hs.getInsertionPosition(W.splitPosition),W.graveyardPosition=xe.insertionPosition.clone(),W.graveyardPosition.stickiness="toNext",[xe,W]}return W.splitPosition.hasSameParentAs(o.deletionPosition)&&!W.splitPosition.isAfter(o.deletionPosition)&&W.howMany--,W.splitPosition.hasSameParentAs(o.targetPosition)&&(W.howMany+=o.howMany),W.splitPosition=W.splitPosition._getTransformedByMergeOperation(o),W.insertionPosition=Hs.getInsertionPosition(W.splitPosition),W.graveyardPosition&&(W.graveyardPosition=W.graveyardPosition._getTransformedByMergeOperation(o)),[W]}),rs(Hs,xs,(W,o,g)=>{const P=fi._createFromPositionAndShift(o.sourcePosition,o.howMany);if(W.graveyardPosition){const ie=P.start.isEqual(W.graveyardPosition)||P.containsPosition(W.graveyardPosition);if(!g.bWasUndone&&ie){const xe=W.splitPosition._getTransformedByMoveOperation(o),jt=W.graveyardPosition._getTransformedByMoveOperation(o),tn=jt.path.slice();tn.push(0);const xn=new Di(jt.root,tn);return[new xs(xe,W.howMany,xn,0)]}W.graveyardPosition=W.graveyardPosition._getTransformedByMoveOperation(o)}const K=W.splitPosition.isEqual(o.targetPosition);if(K&&(g.baRelation=="insertAtSource"||g.abRelation=="splitBefore"))return W.howMany+=o.howMany,W.splitPosition=W.splitPosition._getTransformedByDeletion(o.sourcePosition,o.howMany),W.insertionPosition=Hs.getInsertionPosition(W.splitPosition),[W];if(K&&g.abRelation&&g.abRelation.howMany){const{howMany:ie,offset:xe}=g.abRelation;return W.howMany+=ie,W.splitPosition=W.splitPosition.getShiftedBy(xe),[W]}if(W.splitPosition.hasSameParentAs(o.sourcePosition)&&P.containsPosition(W.splitPosition)){const ie=o.howMany-(W.splitPosition.offset-o.sourcePosition.offset);return W.howMany-=ie,W.splitPosition.hasSameParentAs(o.targetPosition)&&W.splitPosition.offset<o.targetPosition.offset&&(W.howMany+=o.howMany),W.splitPosition=o.sourcePosition.clone(),W.insertionPosition=Hs.getInsertionPosition(W.splitPosition),[W]}return o.sourcePosition.isEqual(o.targetPosition)||(W.splitPosition.hasSameParentAs(o.sourcePosition)&&W.splitPosition.offset<=o.sourcePosition.offset&&(W.howMany-=o.howMany),W.splitPosition.hasSameParentAs(o.targetPosition)&&W.splitPosition.offset<o.targetPosition.offset&&(W.howMany+=o.howMany)),W.splitPosition.stickiness="toNone",W.splitPosition=W.splitPosition._getTransformedByMoveOperation(o),W.splitPosition.stickiness="toNext",W.graveyardPosition?W.insertionPosition=W.insertionPosition._getTransformedByMoveOperation(o):W.insertionPosition=Hs.getInsertionPosition(W.splitPosition),[W]}),rs(Hs,Hs,(W,o,g)=>{if(W.splitPosition.isEqual(o.splitPosition)){if(!W.graveyardPosition&&!o.graveyardPosition)return[new fs(0)];if(W.graveyardPosition&&o.graveyardPosition&&W.graveyardPosition.isEqual(o.graveyardPosition))return[new fs(0)];if(g.abRelation=="splitBefore")return W.howMany=0,W.graveyardPosition=W.graveyardPosition._getTransformedBySplitOperation(o),[W]}if(W.graveyardPosition&&o.graveyardPosition&&W.graveyardPosition.isEqual(o.graveyardPosition)){const P=W.splitPosition.root.rootName=="$graveyard",K=o.splitPosition.root.rootName=="$graveyard";if(K&&!P||!(P&&!K)&&g.aIsStrong){const ie=[];return o.howMany&&ie.push(new xs(o.moveTargetPosition,o.howMany,o.splitPosition,0)),W.howMany&&ie.push(new xs(W.splitPosition,W.howMany,W.moveTargetPosition,0)),ie}return[new fs(0)]}if(W.graveyardPosition&&(W.graveyardPosition=W.graveyardPosition._getTransformedBySplitOperation(o)),W.splitPosition.isEqual(o.insertionPosition)&&g.abRelation=="splitBefore")return W.howMany++,[W];if(o.splitPosition.isEqual(W.insertionPosition)&&g.baRelation=="splitBefore"){const P=o.insertionPosition.path.slice();P.push(0);const K=new Di(o.insertionPosition.root,P);return[W,new xs(W.insertionPosition,1,K,0)]}return W.splitPosition.hasSameParentAs(o.splitPosition)&&W.splitPosition.offset<o.splitPosition.offset&&(W.howMany-=o.howMany),W.splitPosition=W.splitPosition._getTransformedBySplitOperation(o),W.insertionPosition=Hs.getInsertionPosition(W.splitPosition),[W]});class Ca extends(0,u.ln)(Di){constructor(o,g,P="toNone"){if(super(o,g,P),!this.root.is("rootElement"))throw new u.Bb("model-liveposition-root-not-rootelement",o);Ps.call(this)}detach(){this.stopListening()}toPosition(){return new Di(this.root,this.path.slice(),this.stickiness)}static fromPosition(o,g){return new this(o.root,o.path.slice(),g||o.stickiness)}}function Ps(){this.listenTo(this.root.document.model,"applyOperation",(W,o)=>{const g=o[0];g.isDocumentOperation&&Yl.call(this,g)},{priority:"low"})}function Yl(W){const o=this.getTransformedByOperation(W);if(!this.isEqual(o)){const g=this.toPosition();this.path=o.path,this.root=o.root,this.fire("change",g)}}Ca.prototype.is=function(W){return W==="livePosition"||W==="model:livePosition"||W=="position"||W==="model:position"};class Ql{constructor(o={}){typeof o=="string"&&(o=o==="transparent"?{isUndoable:!1}:{},(0,u.KE)("batch-constructor-deprecated-string-type"));const{isUndoable:g=!0,isLocal:P=!0,isUndo:K=!1,isTyping:ie=!1}=o;this.operations=[],this.isUndoable=g,this.isLocal=P,this.isUndo=K,this.isTyping=ie}get type(){return(0,u.KE)("batch-type-deprecated"),"default"}get baseVersion(){for(const o of this.operations)if(o.baseVersion!==null)return o.baseVersion;return null}addOperation(o){return o.batch=this,this.operations.push(o),o}}class Pt{constructor(o){this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null,this._refreshedItems=new Set,this._markerCollection=o}get isEmpty(){return this._changesInElement.size==0&&this._changedMarkers.size==0}bufferOperation(o){const g=o;switch(g.type){case"insert":if(this._isInInsertedElement(g.position.parent))return;this._markInsert(g.position.parent,g.position.offset,g.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const P of g.range.getItems({shallow:!0}))this._isInInsertedElement(P.parent)||this._markAttribute(P);break;case"remove":case"move":case"reinsert":{if(g.sourcePosition.isEqual(g.targetPosition)||g.sourcePosition.getShiftedBy(g.howMany).isEqual(g.targetPosition))return;const P=this._isInInsertedElement(g.sourcePosition.parent),K=this._isInInsertedElement(g.targetPosition.parent);P||this._markRemove(g.sourcePosition.parent,g.sourcePosition.offset,g.howMany),K||this._markInsert(g.targetPosition.parent,g.getMovedRangeStart().offset,g.howMany);break}case"rename":{if(this._isInInsertedElement(g.position.parent))return;this._markRemove(g.position.parent,g.position.offset,1),this._markInsert(g.position.parent,g.position.offset,1);const P=fi._createFromPositionAndShift(g.position,1);for(const K of this._markerCollection.getMarkersIntersectingRange(P)){const ie=K.getData();this.bufferMarkerChange(K.name,ie,ie)}break}case"split":{const P=g.splitPosition.parent;this._isInInsertedElement(P)||this._markRemove(P,g.splitPosition.offset,g.howMany),this._isInInsertedElement(g.insertionPosition.parent)||this._markInsert(g.insertionPosition.parent,g.insertionPosition.offset,1),g.graveyardPosition&&this._markRemove(g.graveyardPosition.parent,g.graveyardPosition.offset,1);break}case"merge":{const P=g.sourcePosition.parent;this._isInInsertedElement(P.parent)||this._markRemove(P.parent,P.startOffset,1);const K=g.graveyardPosition.parent;this._markInsert(K,g.graveyardPosition.offset,1);const ie=g.targetPosition.parent;this._isInInsertedElement(ie)||this._markInsert(ie,g.targetPosition.offset,P.maxOffset);break}}this._cachedChanges=null}bufferMarkerChange(o,g,P){const K=this._changedMarkers.get(o);K?(K.newMarkerData=P,K.oldMarkerData.range==null&&P.range==null&&this._changedMarkers.delete(o)):this._changedMarkers.set(o,{newMarkerData:P,oldMarkerData:g})}getMarkersToRemove(){const o=[];for(const[g,P]of this._changedMarkers)P.oldMarkerData.range!=null&&o.push({name:g,range:P.oldMarkerData.range});return o}getMarkersToAdd(){const o=[];for(const[g,P]of this._changedMarkers)P.newMarkerData.range!=null&&o.push({name:g,range:P.newMarkerData.range});return o}getChangedMarkers(){return Array.from(this._changedMarkers).map(([o,g])=>({name:o,data:{oldRange:g.oldMarkerData.range,newRange:g.newMarkerData.range}}))}hasDataChanges(){if(this._changesInElement.size>0)return!0;for(const{newMarkerData:o,oldMarkerData:g}of this._changedMarkers.values()){if(o.affectsData!==g.affectsData)return!0;if(o.affectsData){const P=o.range&&!g.range,K=!o.range&&g.range,ie=o.range&&g.range&&!o.range.isEqual(g.range);if(P||K||ie)return!0}}return!1}getChanges(o={}){if(this._cachedChanges)return o.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let g=[];for(const P of this._changesInElement.keys()){const K=this._changesInElement.get(P).sort((Fn,mr)=>Fn.offset===mr.offset?Fn.type!=mr.type?Fn.type=="remove"?-1:1:0:Fn.offset<mr.offset?-1:1),ie=this._elementSnapshots.get(P),xe=st(P.getChildren()),jt=nn(ie.length,K);let tn=0,xn=0;for(const Fn of jt)if(Fn==="i")g.push(this._getInsertDiff(P,tn,xe[tn])),tn++;else if(Fn==="r")g.push(this._getRemoveDiff(P,tn,ie[xn])),xn++;else if(Fn==="a"){const mr=xe[tn].attributes,Pr=ie[xn].attributes;let ti;if(xe[tn].name=="$text")ti=new fi(Di._createAt(P,tn),Di._createAt(P,tn+1));else{const Ci=P.offsetToIndex(tn);ti=new fi(Di._createAt(P,tn),Di._createAt(P.getChild(Ci),0))}g.push(...this._getAttributesDiff(ti,Pr,mr)),tn++,xn++}else tn++,xn++}g.sort((P,K)=>P.position.root!=K.position.root?P.position.root.rootName<K.position.root.rootName?-1:1:P.position.isEqual(K.position)?P.changeCount-K.changeCount:P.position.isBefore(K.position)?-1:1);for(let P=1,K=0;P<g.length;P++){const ie=g[K],xe=g[P],jt=ie.type=="remove"&&xe.type=="remove"&&ie.name=="$text"&&xe.name=="$text"&&ie.position.isEqual(xe.position),tn=ie.type=="insert"&&xe.type=="insert"&&ie.name=="$text"&&xe.name=="$text"&&ie.position.parent==xe.position.parent&&ie.position.offset+ie.length==xe.position.offset,xn=ie.type=="attribute"&&xe.type=="attribute"&&ie.position.parent==xe.position.parent&&ie.range.isFlat&&xe.range.isFlat&&ie.position.offset+ie.length==xe.position.offset&&ie.attributeKey==xe.attributeKey&&ie.attributeOldValue==xe.attributeOldValue&&ie.attributeNewValue==xe.attributeNewValue;jt||tn||xn?(ie.length++,xn&&(ie.range.end=ie.range.end.getShiftedBy(1)),g[P]=null):K=P}g=g.filter(P=>P);for(const P of g)delete P.changeCount,P.type=="attribute"&&(delete P.position,delete P.length);return this._changeCount=0,this._cachedChangesWithGraveyard=g,this._cachedChanges=g.filter(Un),o.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}getRefreshedItems(){return new Set(this._refreshedItems)}reset(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._refreshedItems=new Set,this._cachedChanges=null}_refreshItem(o){if(this._isInInsertedElement(o.parent))return;this._markRemove(o.parent,o.startOffset,o.offsetSize),this._markInsert(o.parent,o.startOffset,o.offsetSize),this._refreshedItems.add(o);const g=fi._createOn(o);for(const P of this._markerCollection.getMarkersIntersectingRange(g)){const K=P.getData();this.bufferMarkerChange(P.name,K,K)}this._cachedChanges=null}_markInsert(o,g,P){const K={type:"insert",offset:g,howMany:P,count:this._changeCount++};this._markChange(o,K)}_markRemove(o,g,P){const K={type:"remove",offset:g,howMany:P,count:this._changeCount++};this._markChange(o,K),this._removeAllNestedChanges(o,g,P)}_markAttribute(o){const g={type:"attribute",offset:o.startOffset,howMany:o.offsetSize,count:this._changeCount++};this._markChange(o.parent,g)}_markChange(o,g){this._makeSnapshot(o);const P=this._getChangesForElement(o);this._handleChange(g,P),P.push(g);for(let K=0;K<P.length;K++)P[K].howMany<1&&(P.splice(K,1),K--)}_getChangesForElement(o){let g;return this._changesInElement.has(o)?g=this._changesInElement.get(o):(g=[],this._changesInElement.set(o,g)),g}_makeSnapshot(o){this._elementSnapshots.has(o)||this._elementSnapshots.set(o,st(o.getChildren()))}_handleChange(o,g){o.nodesToHandle=o.howMany;for(const P of g){const K=o.offset+o.howMany,ie=P.offset+P.howMany;if(o.type=="insert"&&(P.type=="insert"&&(o.offset<=P.offset?P.offset+=o.howMany:o.offset<ie&&(P.howMany+=o.nodesToHandle,o.nodesToHandle=0)),P.type=="remove"&&o.offset<P.offset&&(P.offset+=o.howMany),P.type=="attribute")){if(o.offset<=P.offset)P.offset+=o.howMany;else if(o.offset<ie){const xe=P.howMany;P.howMany=o.offset-P.offset,g.unshift({type:"attribute",offset:K,howMany:xe-P.howMany,count:this._changeCount++})}}if(o.type=="remove"){if(P.type=="insert"){if(K<=P.offset)P.offset-=o.howMany;else if(K<=ie)if(o.offset<P.offset){const xe=K-P.offset;P.offset=o.offset,P.howMany-=xe,o.nodesToHandle-=xe}else P.howMany-=o.nodesToHandle,o.nodesToHandle=0;else if(o.offset<=P.offset)o.nodesToHandle-=P.howMany,P.howMany=0;else if(o.offset<ie){const xe=ie-o.offset;P.howMany-=xe,o.nodesToHandle-=xe}}if(P.type=="remove"&&(K<=P.offset?P.offset-=o.howMany:o.offset<P.offset&&(o.nodesToHandle+=P.howMany,P.howMany=0)),P.type=="attribute"){if(K<=P.offset)P.offset-=o.howMany;else if(o.offset<P.offset){const xe=K-P.offset;P.offset=o.offset,P.howMany-=xe}else if(o.offset<ie)if(K<=ie){const xe=P.howMany;P.howMany=o.offset-P.offset;const jt=xe-P.howMany-o.nodesToHandle;g.unshift({type:"attribute",offset:o.offset,howMany:jt,count:this._changeCount++})}else P.howMany-=ie-o.offset}}if(o.type=="attribute"){if(P.type=="insert")if(o.offset<P.offset&&K>P.offset){if(K>ie){const xe={type:"attribute",offset:ie,howMany:K-ie,count:this._changeCount++};this._handleChange(xe,g),g.push(xe)}o.nodesToHandle=P.offset-o.offset,o.howMany=o.nodesToHandle}else o.offset>=P.offset&&o.offset<ie&&(K>ie?(o.nodesToHandle=K-ie,o.offset=ie):o.nodesToHandle=0);if(P.type=="remove"&&o.offset<P.offset&&K>P.offset){const xe={type:"attribute",offset:P.offset,howMany:K-P.offset,count:this._changeCount++};this._handleChange(xe,g),g.push(xe),o.nodesToHandle=P.offset-o.offset,o.howMany=o.nodesToHandle}P.type=="attribute"&&(o.offset>=P.offset&&K<=ie?(o.nodesToHandle=0,o.howMany=0,o.offset=0):o.offset<=P.offset&&K>=ie&&(P.howMany=0))}}o.howMany=o.nodesToHandle,delete o.nodesToHandle}_getInsertDiff(o,g,P){return{type:"insert",position:Di._createAt(o,g),name:P.name,attributes:new Map(P.attributes),length:1,changeCount:this._changeCount++}}_getRemoveDiff(o,g,P){return{type:"remove",position:Di._createAt(o,g),name:P.name,attributes:new Map(P.attributes),length:1,changeCount:this._changeCount++}}_getAttributesDiff(o,g,P){const K=[];P=new Map(P);for(const[ie,xe]of g){const jt=P.has(ie)?P.get(ie):null;jt!==xe&&K.push({type:"attribute",position:o.start,range:o.clone(),length:1,attributeKey:ie,attributeOldValue:xe,attributeNewValue:jt,changeCount:this._changeCount++}),P.delete(ie)}for(const[ie,xe]of P)K.push({type:"attribute",position:o.start,range:o.clone(),length:1,attributeKey:ie,attributeOldValue:null,attributeNewValue:xe,changeCount:this._changeCount++});return K}_isInInsertedElement(o){const g=o.parent;if(!g)return!1;const P=this._changesInElement.get(g),K=o.startOffset;if(P){for(const ie of P)if(ie.type=="insert"&&K>=ie.offset&&K<ie.offset+ie.howMany)return!0}return this._isInInsertedElement(g)}_removeAllNestedChanges(o,g,P){const K=new fi(Di._createAt(o,g),Di._createAt(o,g+P));for(const ie of K.getItems({shallow:!0}))ie.is("element")&&(this._elementSnapshots.delete(ie),this._changesInElement.delete(ie),this._removeAllNestedChanges(ie,0,ie.maxOffset))}}function st(W){const o=[];for(const g of W)if(g.is("$text"))for(let P=0;P<g.data.length;P++)o.push({name:"$text",attributes:new Map(g.getAttributes())});else o.push({name:g.name,attributes:new Map(g.getAttributes())});return o}function nn(W,o){const g=[];let P=0,K=0;for(const ie of o){if(ie.offset>P){for(let xe=0;xe<ie.offset-P;xe++)g.push("e");K+=ie.offset-P}if(ie.type=="insert"){for(let xe=0;xe<ie.howMany;xe++)g.push("i");P=ie.offset+ie.howMany}else if(ie.type=="remove"){for(let xe=0;xe<ie.howMany;xe++)g.push("r");P=ie.offset,K+=ie.howMany}else g.push(..."a".repeat(ie.howMany).split("")),P=ie.offset+ie.howMany,K+=ie.howMany}if(K<W)for(let ie=0;ie<W-K-P;ie++)g.push("e");return g}function Un(W){const o="position"in W&&W.position.root.rootName=="$graveyard",g="range"in W&&W.range.root.rootName=="$graveyard";return!o&&!g}class or{constructor(){this._operations=[],this._undoPairs=new Map,this._undoneOperations=new Set,this._baseVersionToOperationIndex=new Map,this._version=0,this._gaps=new Map}get version(){return this._version}set version(o){this._operations.length&&o>this._version+1&&this._gaps.set(this._version,o),this._version=o}get lastOperation(){return this._operations[this._operations.length-1]}addOperation(o){if(o.baseVersion!==this.version)throw new u.Bb("model-document-history-addoperation-incorrect-version",this,{operation:o,historyVersion:this.version});this._operations.push(o),this._version++,this._baseVersionToOperationIndex.set(o.baseVersion,this._operations.length-1)}getOperations(o,g=this.version){if(!this._operations.length)return[];const P=this._operations[0];o===void 0&&(o=P.baseVersion);let K=g-1;for(const[jt,tn]of this._gaps)o>jt&&o<tn&&(o=tn),K>jt&&K<tn&&(K=jt-1);if(K<P.baseVersion||o>this.lastOperation.baseVersion)return[];let ie=this._baseVersionToOperationIndex.get(o);ie===void 0&&(ie=0);let xe=this._baseVersionToOperationIndex.get(K);return xe===void 0&&(xe=this._operations.length-1),this._operations.slice(ie,xe+1)}getOperation(o){const g=this._baseVersionToOperationIndex.get(o);if(g!==void 0)return this._operations[g]}setOperationAsUndone(o,g){this._undoPairs.set(g,o),this._undoneOperations.add(o)}isUndoingOperation(o){return this._undoPairs.has(o)}isUndoneOperation(o){return this._undoneOperations.has(o)}getUndoneOperation(o){return this._undoPairs.get(o)}reset(){this._version=0,this._undoPairs=new Map,this._operations=[],this._undoneOperations=new Set,this._gaps=new Map,this._baseVersionToOperationIndex=new Map}}class lr extends es{constructor(o,g,P="main"){super(g),this._document=o,this.rootName=P}get document(){return this._document}toJSON(){return this.rootName}}lr.prototype.is=function(W,o){return o?o===this.name&&(W==="rootElement"||W==="model:rootElement"||W==="element"||W==="model:element"):W==="rootElement"||W==="model:rootElement"||W==="element"||W==="model:element"||W==="node"||W==="model:node"};const jr="$graveyard";class Br extends(0,u.ln)(){constructor(o){super(),this.model=o,this.history=new or,this.selection=new Yt(this),this.roots=new u.FE({idProperty:"rootName"}),this.differ=new Pt(o.markers),this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",jr),this.listenTo(o,"applyOperation",(g,P)=>{const K=P[0];K.isDocumentOperation&&this.differ.bufferOperation(K)},{priority:"high"}),this.listenTo(o,"applyOperation",(g,P)=>{const K=P[0];K.isDocumentOperation&&this.history.addOperation(K)},{priority:"low"}),this.listenTo(this.selection,"change",()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0}),this.listenTo(o.markers,"update",(g,P,K,ie,xe)=>{const jt={...P.getData(),range:ie};this.differ.bufferMarkerChange(P.name,xe,jt),K===null&&P.on("change",(tn,xn)=>{const Fn=P.getData();this.differ.bufferMarkerChange(P.name,{...Fn,range:xn},Fn)})})}get version(){return this.history.version}set version(o){this.history.version=o}get graveyard(){return this.getRoot(jr)}createRoot(o="$root",g="main"){if(this.roots.get(g))throw new u.Bb("model-document-createroot-name-exists",this,{name:g});const P=new lr(this,o,g);return this.roots.add(P),P}destroy(){this.selection.destroy(),this.stopListening()}getRoot(o="main"){return this.roots.get(o)}getRootNames(){return Array.from(this.roots,o=>o.rootName).filter(o=>o!=jr)}registerPostFixer(o){this._postFixers.add(o)}toJSON(){const o=R(this);return o.selection="[engine.model.DocumentSelection]",o.model="[engine.model.Model]",o}_handleChangeBlock(o){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(o),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",o.batch):this.fire("change",o.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){for(const o of this.roots)if(o!==this.graveyard)return o;return this.graveyard}_getDefaultRange(){const o=this._getDefaultRoot(),g=this.model,P=g.schema,K=g.createPositionFromPath(o,[0]);return P.getNearestSelectionRange(K)||g.createRange(K)}_validateSelectionRange(o){return Yr(o.start)&&Yr(o.end)}_callPostFixers(o){let g=!1;do for(const P of this._postFixers)if(this.selection.refresh(),g=P(o),g)break;while(g)}}function Yr(W){const o=W.textNode;if(o){const g=o.data,P=W.offset-o.startOffset;return!(0,u.to)(g,P)&&!(0,u.pp)(g,P)}return!0}class Oi extends(0,u.ln)(){constructor(){super(...arguments),this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(o){const g=o instanceof Mi?o.name:o;return this._markers.has(g)}get(o){return this._markers.get(o)||null}_set(o,g,P=!1,K=!1){const ie=o instanceof Mi?o.name:o;if(ie.includes(","))throw new u.Bb("markercollection-incorrect-marker-name",this);const xe=this._markers.get(ie);if(xe){const xn=xe.getData(),Fn=xe.getRange();let mr=!1;return Fn.isEqual(g)||(xe._attachLiveRange(He.fromRange(g)),mr=!0),P!=xe.managedUsingOperations&&(xe._managedUsingOperations=P,mr=!0),typeof K=="boolean"&&K!=xe.affectsData&&(xe._affectsData=K,mr=!0),mr&&this.fire(`update:${ie}`,xe,Fn,g,xn),xe}const jt=He.fromRange(g),tn=new Mi(ie,jt,P,K);return this._markers.set(ie,tn),this.fire(`update:${ie}`,tn,null,g,{...tn.getData(),range:null}),tn}_remove(o){const g=o instanceof Mi?o.name:o,P=this._markers.get(g);return!!P&&(this._markers.delete(g),this.fire(`update:${g}`,P,P.getRange(),null,P.getData()),this._destroyMarker(P),!0)}_refresh(o){const g=o instanceof Mi?o.name:o,P=this._markers.get(g);if(!P)throw new u.Bb("markercollection-refresh-marker-not-exists",this);const K=P.getRange();this.fire(`update:${g}`,P,K,K,P.getData())}*getMarkersAtPosition(o){for(const g of this)g.getRange().containsPosition(o)&&(yield g)}*getMarkersIntersectingRange(o){for(const g of this)g.getRange().getIntersection(o)!==null&&(yield g)}destroy(){for(const o of this._markers.values())this._destroyMarker(o);this._markers=null,this.stopListening()}*getMarkersGroup(o){for(const g of this._markers.values())g.name.startsWith(o+":")&&(yield g)}_destroyMarker(o){o.stopListening(),o._detachLiveRange()}}class Mi extends(0,u.ln)(ta){constructor(o,g,P,K){super(),this.name=o,this._liveRange=this._attachLiveRange(g),this._managedUsingOperations=P,this._affectsData=K}get managedUsingOperations(){if(!this._liveRange)throw new u.Bb("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new u.Bb("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new u.Bb("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new u.Bb("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new u.Bb("marker-destroyed",this);return this._liveRange.toRange()}_attachLiveRange(o){return this._liveRange&&this._detachLiveRange(),o.delegate("change:range").to(this),o.delegate("change:content").to(this),this._liveRange=o,o}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}Mi.prototype.is=function(W){return W==="marker"||W==="model:marker"};class eo extends Qa{constructor(o,g){super(null),this.sourcePosition=o.clone(),this.howMany=g}get type(){return"detach"}toJSON(){const o=super.toJSON();return o.sourcePosition=this.sourcePosition.toJSON(),o}_validate(){if(this.sourcePosition.root.document)throw new u.Bb("detach-operation-on-document-node",this)}_execute(){Fa(fi._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class Ni extends ta{constructor(o){super(),this.markers=new Map,this._children=new _l,o&&this._insertChild(0,o)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return this.childCount===0}get nextSibling(){return null}get previousSibling(){return null}get root(){return this}get parent(){return null}get document(){return null}getAncestors(){return[]}getChild(o){return this._children.getNode(o)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(o){return this._children.getNodeIndex(o)}getChildStartOffset(o){return this._children.getNodeStartOffset(o)}getPath(){return[]}getNodeByPath(o){let g=this;for(const P of o)g=g.getChild(g.offsetToIndex(P));return g}offsetToIndex(o){return this._children.offsetToIndex(o)}toJSON(){const o=[];for(const g of this._children)o.push(g.toJSON());return o}static fromJSON(o){const g=[];for(const P of o)P.name?g.push(es.fromJSON(P)):g.push(gs.fromJSON(P));return new Ni(g)}_appendChild(o){this._insertChild(this.childCount,o)}_insertChild(o,g){const P=function(K){return typeof K=="string"?[new gs(K)]:((0,u.TW)(K)||(K=[K]),Array.from(K).map(ie=>typeof ie=="string"?new gs(ie):ie instanceof ds?new gs(ie.data,ie.getAttributes()):ie))}(g);for(const K of P)K.parent!==null&&K._remove(),K.parent=this;this._children._insertNodes(o,P)}_removeChildren(o,g=1){const P=this._children._removeNodes(o,g);for(const K of P)K.parent=null;return P}}Ni.prototype.is=function(W){return W==="documentFragment"||W==="model:documentFragment"};class no{constructor(o,g){this.model=o,this.batch=g}createText(o,g){return new gs(o,g)}createElement(o,g){return new es(o,g)}createDocumentFragment(){return new Ni}cloneElement(o,g=!0){return o._clone(g)}insert(o,g,P=0){if(this._assertWriterUsedCorrectly(),o instanceof gs&&o.data=="")return;const K=Di._createAt(g,P);if(o.parent){if(ba(o.root,K.root))return void this.move(fi._createOn(o),K);if(o.root.document)throw new u.Bb("model-writer-insert-forbidden-move",this);this.remove(o)}const ie=K.root.document?K.root.document.version:null,xe=new cs(K,o,ie);if(o instanceof gs&&(xe.shouldReceiveAttributes=!0),this.batch.addOperation(xe),this.model.applyOperation(xe),o instanceof Ni)for(const[jt,tn]of o.markers){const xn=Di._createAt(tn.root,0),Fn={range:new fi(tn.start._getCombined(xn,K),tn.end._getCombined(xn,K)),usingOperation:!0,affectsData:!0};this.model.markers.has(jt)?this.updateMarker(jt,Fn):this.addMarker(jt,Fn)}}insertText(o,g,P,K){g instanceof Ni||g instanceof es||g instanceof Di?this.insert(this.createText(o),g,P):this.insert(this.createText(o,g),P,K)}insertElement(o,g,P,K){g instanceof Ni||g instanceof es||g instanceof Di?this.insert(this.createElement(o),g,P):this.insert(this.createElement(o,g),P,K)}append(o,g){this.insert(o,g,"end")}appendText(o,g,P){g instanceof Ni||g instanceof es?this.insert(this.createText(o),g,"end"):this.insert(this.createText(o,g),P,"end")}appendElement(o,g,P){g instanceof Ni||g instanceof es?this.insert(this.createElement(o),g,"end"):this.insert(this.createElement(o,g),P,"end")}setAttribute(o,g,P){if(this._assertWriterUsedCorrectly(),P instanceof fi){const K=P.getMinimalFlatRanges();for(const ie of K)vo(this,o,g,ie)}else Qo(this,o,g,P)}setAttributes(o,g){for(const[P,K]of(0,u.qL)(o))this.setAttribute(P,K,g)}removeAttribute(o,g){if(this._assertWriterUsedCorrectly(),g instanceof fi){const P=g.getMinimalFlatRanges();for(const K of P)vo(this,o,null,K)}else Qo(this,o,null,g)}clearAttributes(o){this._assertWriterUsedCorrectly();const g=P=>{for(const K of P.getAttributeKeys())this.removeAttribute(K,P)};if(o instanceof fi)for(const P of o.getItems())g(P);else g(o)}move(o,g,P){if(this._assertWriterUsedCorrectly(),!(o instanceof fi))throw new u.Bb("writer-move-invalid-range",this);if(!o.isFlat)throw new u.Bb("writer-move-range-not-flat",this);const K=Di._createAt(g,P);if(K.isEqual(o.start))return;if(this._addOperationForAffectedMarkers("move",o),!ba(o.root,K.root))throw new u.Bb("writer-move-different-document",this);const ie=o.root.document?o.root.document.version:null,xe=new xs(o.start,o.end.offset-o.start.offset,K,ie);this.batch.addOperation(xe),this.model.applyOperation(xe)}remove(o){this._assertWriterUsedCorrectly();const g=(o instanceof fi?o:fi._createOn(o)).getMinimalFlatRanges().reverse();for(const P of g)this._addOperationForAffectedMarkers("move",P),ps(P.start,P.end.offset-P.start.offset,this.batch,this.model)}merge(o){this._assertWriterUsedCorrectly();const g=o.nodeBefore,P=o.nodeAfter;if(this._addOperationForAffectedMarkers("merge",o),!(g instanceof es))throw new u.Bb("writer-merge-no-element-before",this);if(!(P instanceof es))throw new u.Bb("writer-merge-no-element-after",this);o.root.document?this._merge(o):this._mergeDetached(o)}createPositionFromPath(o,g,P){return this.model.createPositionFromPath(o,g,P)}createPositionAt(o,g){return this.model.createPositionAt(o,g)}createPositionAfter(o){return this.model.createPositionAfter(o)}createPositionBefore(o){return this.model.createPositionBefore(o)}createRange(o,g){return this.model.createRange(o,g)}createRangeIn(o){return this.model.createRangeIn(o)}createRangeOn(o){return this.model.createRangeOn(o)}createSelection(...o){return this.model.createSelection(...o)}_mergeDetached(o){const g=o.nodeBefore,P=o.nodeAfter;this.move(fi._createIn(P),Di._createAt(g,"end")),this.remove(P)}_merge(o){const g=Di._createAt(o.nodeBefore,"end"),P=Di._createAt(o.nodeAfter,0),K=o.root.document.graveyard,ie=new Di(K,[0]),xe=o.root.document.version,jt=new Vs(P,o.nodeAfter.maxOffset,g,ie,xe);this.batch.addOperation(jt),this.model.applyOperation(jt)}rename(o,g){if(this._assertWriterUsedCorrectly(),!(o instanceof es))throw new u.Bb("writer-rename-not-element-instance",this);const P=o.root.document?o.root.document.version:null,K=new $a(Di._createBefore(o),o.name,g,P);this.batch.addOperation(K),this.model.applyOperation(K)}split(o,g){this._assertWriterUsedCorrectly();let P,K,ie=o.parent;if(!ie.parent)throw new u.Bb("writer-split-element-no-parent",this);if(g||(g=ie.parent),!o.parent.getAncestors({includeSelf:!0}).includes(g))throw new u.Bb("writer-split-invalid-limit-element",this);do{const xe=ie.root.document?ie.root.document.version:null,jt=ie.maxOffset-o.offset,tn=Hs.getInsertionPosition(o),xn=new Hs(o,jt,tn,null,xe);this.batch.addOperation(xn),this.model.applyOperation(xn),P||K||(P=ie,K=o.parent.nextSibling),ie=(o=this.createPositionAfter(o.parent)).parent}while(ie!==g);return{position:o,range:new fi(Di._createAt(P,"end"),Di._createAt(K,0))}}wrap(o,g){if(this._assertWriterUsedCorrectly(),!o.isFlat)throw new u.Bb("writer-wrap-range-not-flat",this);const P=g instanceof es?g:new es(g);if(P.childCount>0)throw new u.Bb("writer-wrap-element-not-empty",this);if(P.parent!==null)throw new u.Bb("writer-wrap-element-attached",this);this.insert(P,o.start);const K=new fi(o.start.getShiftedBy(1),o.end.getShiftedBy(1));this.move(K,Di._createAt(P,0))}unwrap(o){if(this._assertWriterUsedCorrectly(),o.parent===null)throw new u.Bb("writer-unwrap-element-no-parent",this);this.move(fi._createIn(o),this.createPositionAfter(o)),this.remove(o)}addMarker(o,g){if(this._assertWriterUsedCorrectly(),!g||typeof g.usingOperation!="boolean")throw new u.Bb("writer-addmarker-no-usingoperation",this);const P=g.usingOperation,K=g.range,ie=g.affectsData!==void 0&&g.affectsData;if(this.model.markers.has(o))throw new u.Bb("writer-addmarker-marker-exists",this);if(!K)throw new u.Bb("writer-addmarker-no-range",this);return P?(No(this,o,null,K,ie),this.model.markers.get(o)):this.model.markers._set(o,K,P,ie)}updateMarker(o,g){this._assertWriterUsedCorrectly();const P=typeof o=="string"?o:o.name,K=this.model.markers.get(P);if(!K)throw new u.Bb("writer-updatemarker-marker-not-exists",this);if(!g)return(0,u.KE)("writer-updatemarker-reconvert-using-editingcontroller",{markerName:P}),void this.model.markers._refresh(K);const ie=typeof g.usingOperation=="boolean",xe=typeof g.affectsData=="boolean",jt=xe?g.affectsData:K.affectsData;if(!ie&&!g.range&&!xe)throw new u.Bb("writer-updatemarker-wrong-options",this);const tn=K.getRange(),xn=g.range?g.range:tn;ie&&g.usingOperation!==K.managedUsingOperations?g.usingOperation?No(this,P,null,xn,jt):(No(this,P,tn,null,jt),this.model.markers._set(P,xn,void 0,jt)):K.managedUsingOperations?No(this,P,tn,xn,jt):this.model.markers._set(P,xn,void 0,jt)}removeMarker(o){this._assertWriterUsedCorrectly();const g=typeof o=="string"?o:o.name;if(!this.model.markers.has(g))throw new u.Bb("writer-removemarker-no-marker",this);const P=this.model.markers.get(g);if(!P.managedUsingOperations)return void this.model.markers._remove(g);No(this,g,P.getRange(),null,P.affectsData)}setSelection(...o){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(...o)}setSelectionFocus(o,g){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(o,g)}setSelectionAttribute(o,g){if(this._assertWriterUsedCorrectly(),typeof o=="string")this._setSelectionAttribute(o,g);else for(const[P,K]of(0,u.qL)(o))this._setSelectionAttribute(P,K)}removeSelectionAttribute(o){if(this._assertWriterUsedCorrectly(),typeof o=="string")this._removeSelectionAttribute(o);else for(const g of o)this._removeSelectionAttribute(g)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(o){this.model.document.selection._restoreGravity(o)}_setSelectionAttribute(o,g){const P=this.model.document.selection;if(P.isCollapsed&&P.anchor.parent.isEmpty){const K=Yt._getStoreAttributeKey(o);this.setAttribute(K,g,P.anchor.parent)}P._setAttribute(o,g)}_removeSelectionAttribute(o){const g=this.model.document.selection;if(g.isCollapsed&&g.anchor.parent.isEmpty){const P=Yt._getStoreAttributeKey(o);this.removeAttribute(P,g.anchor.parent)}g._removeAttribute(o)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new u.Bb("writer-incorrect-use",this)}_addOperationForAffectedMarkers(o,g){for(const P of this.model.markers){if(!P.managedUsingOperations)continue;const K=P.getRange();let ie=!1;if(o==="move"){const xe=g;ie=xe.containsPosition(K.start)||xe.start.isEqual(K.start)||xe.containsPosition(K.end)||xe.end.isEqual(K.end)}else{const xe=g,jt=xe.nodeBefore,tn=xe.nodeAfter,xn=K.start.parent==jt&&K.start.isAtEnd,Fn=K.end.parent==tn&&K.end.offset==0,mr=K.end.nodeAfter==tn,Pr=K.start.nodeAfter==tn;ie=xn||Fn||mr||Pr}ie&&this.updateMarker(P.name,{range:K})}}}function vo(W,o,g,P){const K=W.model,ie=K.document;let xe,jt,tn,xn=P.start;for(const mr of P.getWalker({shallow:!0}))tn=mr.item.getAttribute(o),xe&&jt!=tn&&(jt!=g&&Fn(),xn=xe),xe=mr.nextPosition,jt=tn;function Fn(){const mr=new fi(xn,xe),Pr=mr.root.document?ie.version:null,ti=new As(mr,o,jt,g,Pr);W.batch.addOperation(ti),K.applyOperation(ti)}xe instanceof Di&&xe!=xn&&jt!=g&&Fn()}function Qo(W,o,g,P){const K=W.model,ie=K.document,xe=P.getAttribute(o);let jt,tn;if(xe!=g){if(P.root===P){const xn=P.document?ie.version:null;tn=new al(P,o,xe,g,xn)}else{jt=new fi(Di._createBefore(P),W.createPositionAfter(P));const xn=jt.root.document?ie.version:null;tn=new As(jt,o,xe,g,xn)}W.batch.addOperation(tn),K.applyOperation(tn)}}function No(W,o,g,P,K){const ie=W.model,xe=ie.document,jt=new hs(o,g,P,ie.markers,!!K,xe.version);W.batch.addOperation(jt),ie.applyOperation(jt)}function ps(W,o,g,P){let K;if(W.root.document){const ie=P.document,xe=new Di(ie.graveyard,[0]);K=new xs(W,o,xe,ie.version)}else K=new eo(W,o);g.addOperation(K),P.applyOperation(K)}function ba(W,o){return W===o||W instanceof lr&&o instanceof lr}function Fc(W){W.document.registerPostFixer(o=>function(g,P){const K=P.document.selection,ie=P.schema,xe=[];let jt=!1;for(const tn of K.getRanges()){const xn=cl(tn,ie);xn&&!xn.isEqual(tn)?(xe.push(xn),jt=!0):xe.push(tn)}return jt&&g.setSelection(function(tn){const xn=[...tn],Fn=new Set;let mr=1;for(;mr<xn.length;){const Pr=xn[mr],ti=xn.slice(0,mr);for(const[Ci,Ji]of ti.entries())if(!Fn.has(Ci)){if(Pr.isEqual(Ji))Fn.add(Ci);else if(Pr.isIntersecting(Ji)){Fn.add(Ci),Fn.add(mr);const ho=Pr.getJoined(Ji);xn.push(ho)}}mr++}return xn.filter((Pr,ti)=>!Fn.has(ti))}(xe),{backward:K.isBackward}),!1}(o,W))}function cl(W,o){return W.isCollapsed?function(g,P){const K=g.start,ie=P.getNearestSelectionRange(K);if(!ie){const jt=K.getAncestors().reverse().find(tn=>P.isObject(tn));return jt?fi._createOn(jt):null}if(!ie.isCollapsed)return ie;const xe=ie.start;return K.isEqual(xe)?null:new fi(xe)}(W,o):function(g,P){const{start:K,end:ie}=g,xe=P.checkChild(K,"$text"),jt=P.checkChild(ie,"$text"),tn=P.getLimitElement(K),xn=P.getLimitElement(ie);if(tn===xn){if(xe&&jt)return null;if(function(Pr,ti,Ci){const Ji=Pr.nodeAfter&&!Ci.isLimit(Pr.nodeAfter)||Ci.checkChild(Pr,"$text"),ho=ti.nodeBefore&&!Ci.isLimit(ti.nodeBefore)||Ci.checkChild(ti,"$text");return Ji||ho}(K,ie,P)){const Pr=K.nodeAfter&&P.isSelectable(K.nodeAfter)?null:P.getNearestSelectionRange(K,"forward"),ti=ie.nodeBefore&&P.isSelectable(ie.nodeBefore)?null:P.getNearestSelectionRange(ie,"backward"),Ci=Pr?Pr.start:K,Ji=ti?ti.end:ie;return new fi(Ci,Ji)}}const Fn=tn&&!tn.is("rootElement"),mr=xn&&!xn.is("rootElement");if(Fn||mr){const Pr=K.nodeAfter&&ie.nodeBefore&&K.nodeAfter.parent===ie.nodeBefore.parent,ti=Fn&&(!Pr||!lu(K.nodeAfter,P)),Ci=mr&&(!Pr||!lu(ie.nodeBefore,P));let Ji=K,ho=ie;return ti&&(Ji=Di._createBefore(Kc(tn,P))),Ci&&(ho=Di._createAfter(Kc(xn,P))),new fi(Ji,ho)}return null}(W,o)}function Kc(W,o){let g=W,P=g;for(;o.isLimit(P)&&P.parent;)g=P,P=P.parent;return g}function lu(W,o){return W&&o.isSelectable(W)}function Ia(W,o,g={}){if(o.isCollapsed)return;const P=o.getFirstRange();if(P.root.rootName=="$graveyard")return;const K=W.schema;W.change(ie=>{if(!g.doNotResetEntireContent&&function(xn,Fn){const mr=xn.getLimitElement(Fn);if(!Fn.containsEntireContent(mr))return!1;const Pr=Fn.getFirstRange();return Pr.start.parent==Pr.end.parent?!1:xn.checkChild(mr,"paragraph")}(K,o))return void function(xn,Fn){const mr=xn.model.schema.getLimitElement(Fn);xn.remove(xn.createRangeIn(mr)),Ou(xn,xn.createPositionAt(mr,0),Fn)}(ie,o);const xe={};if(!g.doNotAutoparagraph){const xn=o.getSelectedElement();xn&&Object.assign(xe,K.getAttributesWithProperty(xn,"copyOnReplace",!0))}const[jt,tn]=function(xn){const Fn=xn.root.document.model,mr=xn.start;let Pr=xn.end;if(Fn.hasContent(xn,{ignoreMarkers:!0})){const ti=function(Ci){const Ji=Ci.parent,ho=Ji.root.document.model.schema,is=Ji.getAncestors({parentFirst:!0,includeSelf:!0});for(const Fo of is){if(ho.isLimit(Fo))return null;if(ho.isBlock(Fo))return Fo}}(Pr);if(ti&&Pr.isTouching(Fn.createPositionAt(ti,0))){const Ci=Fn.createSelection(xn);Fn.modifySelection(Ci,{direction:"backward"});const Ji=Ci.getLastPosition(),ho=Fn.createRange(Ji,Pr);Fn.hasContent(ho,{ignoreMarkers:!0})||(Pr=Ji)}}return[Ca.fromPosition(mr,"toPrevious"),Ca.fromPosition(Pr,"toNext")]}(P);jt.isTouching(tn)||ie.remove(ie.createRange(jt,tn)),g.leaveUnmerged||(function(xn,Fn,mr){const Pr=xn.model;if(!$l(xn.model.schema,Fn,mr))return;const[ti,Ci]=function(Ji,ho){const is=Ji.getAncestors(),Fo=ho.getAncestors();let Ds=0;for(;is[Ds]&&is[Ds]==Fo[Ds];)Ds++;return[is[Ds],Fo[Ds]]}(Fn,mr);!ti||!Ci||(!Pr.hasContent(ti,{ignoreMarkers:!0})&&Pr.hasContent(Ci,{ignoreMarkers:!0})?Jl(xn,Fn,mr,ti.parent):Gc(xn,Fn,mr,ti.parent))}(ie,jt,tn),K.removeDisallowedAttributes(jt.parent.getChildren(),ie)),oc(ie,o,jt),!g.doNotAutoparagraph&&function(xn,Fn){const mr=xn.checkChild(Fn,"$text"),Pr=xn.checkChild(Fn,"paragraph");return!mr&&Pr}(K,jt)&&Ou(ie,jt,o,xe),jt.detach(),tn.detach()})}function Gc(W,o,g,P){const K=o.parent,ie=g.parent;if(K!=P&&ie!=P){for(o=W.createPositionAfter(K),(g=W.createPositionBefore(ie)).isEqual(o)||W.insert(ie,o),W.merge(o);g.parent.isEmpty;){const xe=g.parent;g=W.createPositionBefore(xe),W.remove(xe)}$l(W.model.schema,o,g)&&Gc(W,o,g,P)}}function Jl(W,o,g,P){const K=o.parent,ie=g.parent;if(K!=P&&ie!=P){for(o=W.createPositionAfter(K),(g=W.createPositionBefore(ie)).isEqual(o)||W.insert(K,g);o.parent.isEmpty;){const xe=o.parent;o=W.createPositionBefore(xe),W.remove(xe)}g=W.createPositionBefore(ie),function(xe,jt){const tn=jt.nodeBefore,xn=jt.nodeAfter;tn.name!=xn.name&&xe.rename(tn,xn.name),xe.clearAttributes(tn),xe.setAttributes(Object.fromEntries(xn.getAttributes()),tn),xe.merge(jt)}(W,g),$l(W.model.schema,o,g)&&Jl(W,o,g,P)}}function $l(W,o,g){const P=o.parent,K=g.parent;return P!=K&&!W.isLimit(P)&&!W.isLimit(K)&&function(ie,xe,jt){const tn=new fi(ie,xe);for(const xn of tn.getWalker())if(jt.isLimit(xn.item))return!1;return!0}(o,g,W)}function Ou(W,o,g,P={}){const K=W.createElement("paragraph");W.model.schema.setAllowedAttributes(K,P,W),W.insert(K,o),oc(W,g,W.createPositionAt(K,0))}function oc(W,o,g){o instanceof Yt?W.setSelection(g):o.setTo(g)}function ul(W,o){const g=[];Array.from(W.getItems({direction:"backward"})).map(P=>o.createRangeOn(P)).filter(P=>(P.start.isAfter(W.start)||P.start.isEqual(W.start))&&(P.end.isBefore(W.end)||P.end.isEqual(W.end))).forEach(P=>{g.push(P.start.parent),o.remove(P)}),g.forEach(P=>{let K=P;for(;K.parent&&K.isEmpty;){const ie=o.createRangeOn(K);K=K.parent,o.remove(ie)}})}class Yc{constructor(o,g,P){this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null,this._nodeToSelect=null,this.model=o,this.writer=g,this.position=P,this.canMergeWith=new Set([this.position.parent]),this.schema=o.schema,this._documentFragment=g.createDocumentFragment(),this._documentFragmentPosition=g.createPositionAt(this._documentFragment,0)}handleNodes(o){for(const g of Array.from(o))this._handleNode(g);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}_updateLastNodeFromAutoParagraph(o){const g=this.writer.createPositionAfter(this._lastNode),P=this.writer.createPositionAfter(o);if(P.isAfter(g)){if(this._lastNode=o,this.position.parent!=o||!this.position.isAtEnd)throw new u.Bb("insertcontent-invalid-insertion-position",this);this.position=P,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this._nodeToSelect?fi._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new fi(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(o){if(this.schema.isObject(o))return void this._handleObject(o);let g=this._checkAndAutoParagraphToAllowedPosition(o);g||(g=this._checkAndSplitToAllowedPosition(o),g)?(this._appendToFragment(o),this._firstNode||(this._firstNode=o),this._lastNode=o):this._handleDisallowedNode(o)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const o=Ca.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=o.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=o.toPosition(),o.detach()}_handleObject(o){this._checkAndSplitToAllowedPosition(o)?this._appendToFragment(o):this._tryAutoparagraphing(o)}_handleDisallowedNode(o){o.is("element")?this.handleNodes(o.getChildren()):this._tryAutoparagraphing(o)}_appendToFragment(o){if(!this.schema.checkChild(this.position,o))throw new u.Bb("insertcontent-wrong-position",this,{node:o,position:this.position});this.writer.insert(o,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(o.offsetSize),this.schema.isObject(o)&&!this.schema.checkChild(this.position,"$text")?this._nodeToSelect=o:this._nodeToSelect=null,this._filterAttributesOf.push(o)}_setAffectedBoundaries(o){this._affectedStart||(this._affectedStart=Ca.fromPosition(o,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(o)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=Ca.fromPosition(o,"toNext"))}_mergeOnLeft(){const o=this._firstNode;if(!(o instanceof es)||!this._canMergeLeft(o))return;const g=Ca._createBefore(o);g.stickiness="toNext";const P=Ca.fromPosition(this.position,"toNext");this._affectedStart.isEqual(g)&&(this._affectedStart.detach(),this._affectedStart=Ca._createAt(g.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=g.nodeBefore,this._lastNode=g.nodeBefore),this.writer.merge(g),g.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=Ca._createAt(g.nodeBefore,"end","toNext")),this.position=P.toPosition(),P.detach(),this._filterAttributesOf.push(this.position.parent),g.detach()}_mergeOnRight(){const o=this._lastNode;if(!(o instanceof es)||!this._canMergeRight(o))return;const g=Ca._createAfter(o);if(g.stickiness="toNext",!this.position.isEqual(g))throw new u.Bb("insertcontent-invalid-insertion-position",this);this.position=Di._createAt(g.nodeBefore,"end");const P=Ca.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(g)&&(this._affectedEnd.detach(),this._affectedEnd=Ca._createAt(g.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=g.nodeBefore,this._lastNode=g.nodeBefore),this.writer.merge(g),g.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=Ca._createAt(g.nodeBefore,0,"toPrevious")),this.position=P.toPosition(),P.detach(),this._filterAttributesOf.push(this.position.parent),g.detach()}_canMergeLeft(o){const g=o.previousSibling;return g instanceof es&&this.canMergeWith.has(g)&&this.model.schema.checkMerge(g,o)}_canMergeRight(o){const g=o.nextSibling;return g instanceof es&&this.canMergeWith.has(g)&&this.model.schema.checkMerge(o,g)}_tryAutoparagraphing(o){const g=this.writer.createElement("paragraph");this._getAllowedIn(this.position.parent,g)&&this.schema.checkChild(g,o)&&(g._appendChild(o),this._handleNode(g))}_checkAndAutoParagraphToAllowedPosition(o){if(this.schema.checkChild(this.position.parent,o))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",o))return!1;this._insertPartialFragment();const g=this.writer.createElement("paragraph");return this.writer.insert(g,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=g,this.position=this.writer.createPositionAt(g,0),!0}_checkAndSplitToAllowedPosition(o){const g=this._getAllowedIn(this.position.parent,o);if(!g)return!1;for(g!=this.position.parent&&this._insertPartialFragment();g!=this.position.parent;)if(this.position.isAtStart){const P=this.position.parent;this.position=this.writer.createPositionBefore(P),P.isEmpty&&P.parent===g&&this.writer.remove(P)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const P=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=P,this.canMergeWith.add(this.position.nodeAfter)}return!0}_getAllowedIn(o,g){return this.schema.checkChild(o,g)?o:this.schema.isLimit(o)?null:this._getAllowedIn(o.parent,g)}}function gl(W,o,g="auto"){const P=W.getSelectedElement();if(P&&o.schema.isObject(P)&&!o.schema.isInline(P))return g=="before"||g=="after"?o.createRange(o.createPositionAt(P,g)):o.createRangeOn(P);const K=(0,u.Ps)(W.getSelectedBlocks());if(!K)return o.createRange(W.focus);if(K.isEmpty)return o.createRange(o.createPositionAt(K,0));const ie=o.createPositionAfter(K);return W.focus.isTouching(ie)?o.createRange(ie):o.createRange(o.createPositionBefore(K))}function Ad(W,o,g,P,K={}){if(!W.schema.isObject(o))throw new u.Bb("insertobject-element-not-an-object",W,{object:o});let ie;ie=g?g instanceof Wr||g instanceof Yt?g:W.createSelection(g,P):W.document.selection;let xe=ie;K.findOptimalPosition&&W.schema.isBlock(o)&&(xe=W.createSelection(gl(ie,W,K.findOptimalPosition)));const jt=(0,u.Ps)(ie.getSelectedBlocks()),tn={};return jt&&Object.assign(tn,W.schema.getAttributesWithProperty(jt,"copyOnReplace",!0)),W.change(xn=>{xe.isCollapsed||W.deleteContent(xe,{doNotAutoparagraph:!0});let Fn=o;const mr=xe.anchor.parent;!W.schema.checkChild(mr,o)&&W.schema.checkChild(mr,"paragraph")&&W.schema.checkChild("paragraph",o)&&(Fn=xn.createElement("paragraph"),xn.insert(o,Fn)),W.schema.setAllowedAttributes(Fn,tn,xn);const Pr=W.insertContent(Fn,xe);return Pr.isCollapsed||K.setSelection&&function(ti,Ci,Ji,ho){const is=ti.model;if(Ji=="on")return void ti.setSelection(Ci,"on");if(Ji!="after")throw new u.Bb("insertobject-invalid-place-parameter-value",is);let Fo=Ci.nextSibling;if(is.schema.isInline(Ci))return void ti.setSelection(Ci,"after");!(Fo&&is.schema.checkChild(Fo,"$text"))&&is.schema.checkChild(Ci.parent,"paragraph")&&(Fo=ti.createElement("paragraph"),is.schema.setAllowedAttributes(Fo,ho,ti),is.insertContent(Fo,ti.createPositionAfter(Ci))),Fo&&ti.setSelection(Fo,0)}(xn,o,K.setSelection,tn),Pr})}const Qc=' ,.?!:;"-()';function cu(W,o){const{isForward:g,walker:P,unit:K,schema:ie,treatEmojiAsSingleUnit:xe}=W,{type:jt,item:tn,nextPosition:xn}=o;if(jt=="text")return W.unit==="word"?function(Fn,mr){let Pr=Fn.position.textNode;for(Pr||(Pr=mr?Fn.position.nodeAfter:Fn.position.nodeBefore);Pr&&Pr.is("$text");){const ti=Fn.position.offset-Pr.startOffset;if(uu(Pr,ti,mr))Pr=mr?Fn.position.nodeAfter:Fn.position.nodeBefore;else{if(Uu(Pr.data,ti,mr))break;Fn.next()}}return Fn.position}(P,g):function(Fn,mr,Pr){const ti=Fn.position.textNode;if(ti){const Ci=ti.data;let Ji=Fn.position.offset-ti.startOffset;for(;(0,u.to)(Ci,Ji)||mr=="character"&&(0,u.pp)(Ci,Ji)||Pr&&(0,u.YK)(Ci,Ji);)Fn.next(),Ji=Fn.position.offset-ti.startOffset}return Fn.position}(P,K,xe);if(jt==(g?"elementStart":"elementEnd")){if(ie.isSelectable(tn))return Di._createAt(tn,g?"after":"before");if(ie.checkChild(xn,"$text"))return xn}else{if(ie.isLimit(tn))return void P.skip(()=>!0);if(ie.checkChild(xn,"$text"))return xn}}function hd(W,o){const g=W.root,P=Di._createAt(g,o?"end":0);return o?new fi(W,P):new fi(P,W)}function Uu(W,o,g){const P=o+(g?0:-1);return Qc.includes(W.charAt(P))}function uu(W,o,g){return o===(g?W.offsetSize:0)}class sc extends(0,u.Re)(){constructor(){super(),this.markers=new Oi,this.document=new Br(this),this.schema=new js,this._pendingChanges=[],this._currentWriter=null,["insertContent","insertObject","deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach(o=>this.decorate(o)),this.on("applyOperation",(o,g)=>{g[0]._validate()},{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$container",{allowIn:["$root","$container"]}),this.schema.register("$block",{allowIn:["$root","$container"],isBlock:!0}),this.schema.register("$blockObject",{allowWhere:"$block",isBlock:!0,isObject:!0}),this.schema.register("$inlineObject",{allowWhere:"$text",allowAttributesOf:"$text",isInline:!0,isObject:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck((o,g)=>{if(g.name==="$marker")return!0}),Fc(this),this.document.registerPostFixer(na)}change(o){try{return this._pendingChanges.length===0?(this._pendingChanges.push({batch:new Ql,callback:o}),this._runPendingChanges()[0]):o(this._currentWriter)}catch(g){u.Bb.rethrowUnexpectedError(g,this)}}enqueueChange(o,g){try{o?typeof o=="function"?(g=o,o=new Ql):o instanceof Ql||(o=new Ql(o)):o=new Ql,this._pendingChanges.push({batch:o,callback:g}),this._pendingChanges.length==1&&this._runPendingChanges()}catch(P){u.Bb.rethrowUnexpectedError(P,this)}}applyOperation(o){o._execute()}insertContent(o,g,P){return function(K,ie,xe,jt){return K.change(tn=>{let xn;xn=xe?xe instanceof Wr||xe instanceof Yt?xe:tn.createSelection(xe,jt):K.document.selection,xn.isCollapsed||K.deleteContent(xn,{doNotAutoparagraph:!0});const Fn=new Yc(K,tn,xn.anchor),mr=[];let Pr;if(ie.is("documentFragment")){if(ie.markers.size){const Ji=[];for(const[ho,is]of ie.markers){const{start:Fo,end:Ds}=is,qo=Fo.isEqual(Ds);Ji.push({position:Fo,name:ho,isCollapsed:qo},{position:Ds,name:ho,isCollapsed:qo})}Ji.sort(({position:ho},{position:is})=>ho.isBefore(is)?1:-1);for(const{position:ho,name:is,isCollapsed:Fo}of Ji){let Ds=null,qo=null;const $c=ho.parent===ie&&ho.isAtStart,Za=ho.parent===ie&&ho.isAtEnd;$c||Za?Fo&&(qo=$c?"start":"end"):(Ds=tn.createElement("$marker"),tn.insert(Ds,ho)),mr.push({name:is,element:Ds,collapsed:qo})}}Pr=ie.getChildren()}else Pr=[ie];Fn.handleNodes(Pr);let ti=Fn.getSelectionRange();if(ie.is("documentFragment")&&mr.length){const Ji=ti?He.fromRange(ti):null,ho={};for(let is=mr.length-1;is>=0;is--){const{name:Fo,element:Ds,collapsed:qo}=mr[is],$c=!ho[Fo];if($c&&(ho[Fo]=[]),Ds){const Za=tn.createPositionAt(Ds,"before");ho[Fo].push(Za),tn.remove(Ds)}else{const Za=Fn.getAffectedRange();if(!Za){qo&&ho[Fo].push(Fn.position);continue}qo?ho[Fo].push(Za[qo]):ho[Fo].push($c?Za.start:Za.end)}}for(const[is,[Fo,Ds]]of Object.entries(ho))Fo&&Ds&&Fo.root===Ds.root&&tn.addMarker(is,{usingOperation:!0,affectsData:!0,range:new fi(Fo,Ds)});Ji&&(ti=Ji.toRange(),Ji.detach())}ti&&(xn instanceof Yt?tn.setSelection(ti):xn.setTo(ti));const Ci=Fn.getAffectedRange()||K.createRange(xn.anchor);return Fn.destroy(),Ci})}(this,o,g,P)}insertObject(o,g,P,K){return Ad(this,o,g,P,K)}deleteContent(o,g){Ia(this,o,g)}modifySelection(o,g){(function(P,K,ie={}){const xe=P.schema,jt=ie.direction!="backward",tn=ie.unit?ie.unit:"character",xn=!!ie.treatEmojiAsSingleUnit,Fn=K.focus,mr=new Ga({boundaries:hd(Fn,jt),singleCharacters:!0,direction:jt?"forward":"backward"}),Pr={walker:mr,schema:xe,isForward:jt,unit:tn,treatEmojiAsSingleUnit:xn};let ti;for(;ti=mr.next();){if(ti.done)return;const Ci=cu(Pr,ti.value);if(Ci)return void(K instanceof Yt?P.change(Ji=>{Ji.setSelectionFocus(Ci)}):K.setFocus(Ci))}})(this,o,g)}getSelectedContent(o){return function(g,P){return g.change(K=>{const ie=K.createDocumentFragment(),xe=P.getFirstRange();if(!xe||xe.isCollapsed)return ie;const jt=xe.start.root,tn=xe.start.getCommonPath(xe.end),xn=jt.getNodeByPath(tn);let Fn;Fn=xe.start.parent==xe.end.parent?xe:K.createRange(K.createPositionAt(xn,xe.start.path[tn.length]),K.createPositionAt(xn,xe.end.path[tn.length]+1));const mr=Fn.end.offset-Fn.start.offset;for(const Pr of Fn.getItems({shallow:!0}))Pr.is("$textProxy")?K.appendText(Pr.data,Pr.getAttributes(),ie):K.append(K.cloneElement(Pr,!0),ie);if(Fn!=xe){const Pr=xe._getTransformedByMove(Fn.start,K.createPositionAt(ie,0),mr)[0],ti=K.createRange(K.createPositionAt(ie,0),Pr.start);ul(K.createRange(Pr.end,K.createPositionAt(ie,"end")),K),ul(ti,K)}return ie})}(this,o)}hasContent(o,g={}){const P=o instanceof fi?o:fi._createIn(o);if(P.isCollapsed)return!1;const{ignoreWhitespaces:K=!1,ignoreMarkers:ie=!1}=g;if(!ie){for(const xe of this.markers.getMarkersIntersectingRange(P))if(xe.affectsData)return!0}for(const xe of P.getItems())if(this.schema.isContent(xe)&&(!xe.is("$textProxy")||!K||xe.data.search(/\S/)!==-1))return!0;return!1}createPositionFromPath(o,g,P){return new Di(o,g,P)}createPositionAt(o,g){return Di._createAt(o,g)}createPositionAfter(o){return Di._createAfter(o)}createPositionBefore(o){return Di._createBefore(o)}createRange(o,g){return new fi(o,g)}createRangeIn(o){return fi._createIn(o)}createRangeOn(o){return fi._createOn(o)}createSelection(...o){return new Wr(...o)}createBatch(o){return new Ql(o)}createOperationFromJSON(o){return kl.fromJSON(o,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const o=[];this.fire("_beforeChanges");try{for(;this._pendingChanges.length;){const g=this._pendingChanges[0].batch;this._currentWriter=new no(this,g);const P=this._pendingChanges[0].callback(this._currentWriter);o.push(P),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}}finally{this._pendingChanges.length=0,this._currentWriter=null,this.fire("_afterChanges")}return o}}class Md extends yi{constructor(o){super(o),this.domEventType="click"}onDomEvent(o){this.fire(o.type,o)}}class Od extends yi{constructor(o){super(o),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(o){this.fire(o.type,o)}}class Wd{constructor(o){this.document=o}createDocumentFragment(o){return new Zt(this.document,o)}createElement(o,g,P){return new ri(this.document,o,g,P)}createText(o){return new z(this.document,o)}clone(o,g=!1){return o._clone(g)}appendChild(o,g){return g._appendChild(o)}insertChild(o,g,P){return P._insertChild(o,g)}removeChildren(o,g,P){return P._removeChildren(o,g)}remove(o){const g=o.parent;return g?this.removeChildren(g.getChildIndex(o),1,g):[]}replace(o,g){const P=o.parent;if(P){const K=P.getChildIndex(o);return this.removeChildren(K,1,P),this.insertChild(K,g,P),!0}return!1}unwrapElement(o){const g=o.parent;if(g){const P=g.getChildIndex(o);this.remove(o),this.insertChild(P,o.getChildren(),g)}}rename(o,g){const P=new ri(this.document,o,g.getAttributes(),g.getChildren());return this.replace(g,P)?P:null}setAttribute(o,g,P){P._setAttribute(o,g)}removeAttribute(o,g){g._removeAttribute(o)}addClass(o,g){g._addClass(o)}removeClass(o,g){g._removeClass(o)}setStyle(o,g,P){(0,$.Z)(o)&&P===void 0?g._setStyle(o):P._setStyle(o,g)}removeStyle(o,g){g._removeStyle(o)}setCustomProperty(o,g,P){P._setCustomProperty(o,g)}removeCustomProperty(o,g){return g._removeCustomProperty(o)}createPositionAt(o,g){return Le._createAt(o,g)}createPositionAfter(o){return Le._createAfter(o)}createPositionBefore(o){return Le._createBefore(o)}createRange(o,g){return new Ht(o,g)}createRangeOn(o){return Ht._createOn(o)}createRangeIn(o){return Ht._createIn(o)}createSelection(...o){return new tr(...o)}}const Cl=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,Pd=/^rgb\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}[0-9]{1,3}[ %]?\)$/i,fd=/^rgba\([ ]?([0-9]{1,3}[ %]?,[ ]?){3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,Pu=/^hsl\([ ]?([0-9]{1,3}[ %]?[,]?[ ]*){3}(1|[0-9]+%|[0]?\.?[0-9]+)?\)$/i,fh=/^hsla\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,Dh=new Set(["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","orange","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","activeborder","activecaption","appworkspace","background","buttonface","buttonhighlight","buttonshadow","buttontext","captiontext","graytext","highlight","highlighttext","inactiveborder","inactivecaption","inactivecaptiontext","infobackground","infotext","menu","menutext","scrollbar","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","window","windowframe","windowtext","rebeccapurple","currentcolor","transparent"]);function ph(W){return W.startsWith("#")?Cl.test(W):W.startsWith("rgb")?Pd.test(W)||fd.test(W):W.startsWith("hsl")?Pu.test(W)||fh.test(W):Dh.has(W.toLowerCase())}const Zd=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function Jc(W){return Zd.includes(W)}const Xl=/^([+-]?[0-9]*([.][0-9]+)?(px|cm|mm|in|pc|pt|ch|em|ex|rem|vh|vw|vmin|vmax)|0)$/;function vc(W){return Xl.test(W)}const Du=/^[+-]?[0-9]*([.][0-9]+)?%$/;function Hu(W){return Du.test(W)}const Kd=["repeat-x","repeat-y","repeat","space","round","no-repeat"];function Iu(W){return Kd.includes(W)}const ac=["center","top","bottom","left","right"];function Wu(W){return ac.includes(W)}const ca=["fixed","scroll","local"];function bc(W){return ca.includes(W)}const Gd=/^url\(/;function du(W){return Gd.test(W)}function Ru(W=""){if(W==="")return{top:void 0,right:void 0,bottom:void 0,left:void 0};const o=pd(W),g=o[0],P=o[2]||g,K=o[1]||g;return{top:g,bottom:P,right:K,left:o[3]||K}}function Sc(W){return o=>{const{top:g,right:P,bottom:K,left:ie}=o,xe=[];return[g,P,ie,K].every(jt=>!!jt)?xe.push([W,Ta(o)]):(g&&xe.push([W+"-top",g]),P&&xe.push([W+"-right",P]),K&&xe.push([W+"-bottom",K]),ie&&xe.push([W+"-left",ie])),xe}}function Ta({top:W,right:o,bottom:g,left:P}){const K=[];return P!==o?K.push(W,o,g,P):g!==W?K.push(W,o,g):o!==W?K.push(W,o):K.push(W),K.join(" ")}function hu(W){return o=>({path:W,value:Ru(o)})}function pd(W){return W.replace(/, /g,",").split(" ").map(o=>o.replace(/,/g,", "))}function md(W){W.setNormalizer("background",o=>{const g={},P=pd(o);for(const K of P)Iu(K)?(g.repeat=g.repeat||[],g.repeat.push(K)):Wu(K)?(g.position=g.position||[],g.position.push(K)):bc(K)?g.attachment=K:ph(K)?g.color=K:du(K)&&(g.image=K);return{path:"background",value:g}}),W.setNormalizer("background-color",o=>({path:"background.color",value:o})),W.setReducer("background",o=>{const g=[];return g.push(["background-color",o.color]),g}),W.setStyleRelation("background",["background-color"])}function vs(W){W.setNormalizer("border",o=>{const{color:g,style:P,width:K}=Tl(o);return{path:"border",value:{color:Ru(g),style:Ru(P),width:Ru(K)}}}),W.setNormalizer("border-top",gd("top")),W.setNormalizer("border-right",gd("right")),W.setNormalizer("border-bottom",gd("bottom")),W.setNormalizer("border-left",gd("left")),W.setNormalizer("border-color",yc("color")),W.setNormalizer("border-width",yc("width")),W.setNormalizer("border-style",yc("style")),W.setNormalizer("border-top-color",oa("color","top")),W.setNormalizer("border-top-style",oa("style","top")),W.setNormalizer("border-top-width",oa("width","top")),W.setNormalizer("border-right-color",oa("color","right")),W.setNormalizer("border-right-style",oa("style","right")),W.setNormalizer("border-right-width",oa("width","right")),W.setNormalizer("border-bottom-color",oa("color","bottom")),W.setNormalizer("border-bottom-style",oa("style","bottom")),W.setNormalizer("border-bottom-width",oa("width","bottom")),W.setNormalizer("border-left-color",oa("color","left")),W.setNormalizer("border-left-style",oa("style","left")),W.setNormalizer("border-left-width",oa("width","left")),W.setExtractor("border-top",Wa("top")),W.setExtractor("border-right",Wa("right")),W.setExtractor("border-bottom",Wa("bottom")),W.setExtractor("border-left",Wa("left")),W.setExtractor("border-top-color","border.color.top"),W.setExtractor("border-right-color","border.color.right"),W.setExtractor("border-bottom-color","border.color.bottom"),W.setExtractor("border-left-color","border.color.left"),W.setExtractor("border-top-width","border.width.top"),W.setExtractor("border-right-width","border.width.right"),W.setExtractor("border-bottom-width","border.width.bottom"),W.setExtractor("border-left-width","border.width.left"),W.setExtractor("border-top-style","border.style.top"),W.setExtractor("border-right-style","border.style.right"),W.setExtractor("border-bottom-style","border.style.bottom"),W.setExtractor("border-left-style","border.style.left"),W.setReducer("border-color",Sc("border-color")),W.setReducer("border-style",Sc("border-style")),W.setReducer("border-width",Sc("border-width")),W.setReducer("border-top",pu("top")),W.setReducer("border-right",pu("right")),W.setReducer("border-bottom",pu("bottom")),W.setReducer("border-left",pu("left")),W.setReducer("border",function(){return g=>{const P=fu(g,"top"),K=fu(g,"right"),ie=fu(g,"bottom"),xe=fu(g,"left"),jt=[P,K,ie,xe],tn={width:o(jt,"width"),style:o(jt,"style"),color:o(jt,"color")},xn=Xc(tn,"all");return xn.length?xn:[...Object.entries(tn).reduce((mr,[Pr,ti])=>(ti&&(mr.push([`border-${Pr}`,ti]),jt.forEach(Ci=>delete Ci[Pr])),mr),[]),...Xc(P,"top"),...Xc(K,"right"),...Xc(ie,"bottom"),...Xc(xe,"left")]};function o(g,P){return g.map(K=>K[P]).reduce((K,ie)=>K==ie?K:null)}}()),W.setStyleRelation("border",["border-color","border-style","border-width","border-top","border-right","border-bottom","border-left","border-top-color","border-right-color","border-bottom-color","border-left-color","border-top-style","border-right-style","border-bottom-style","border-left-style","border-top-width","border-right-width","border-bottom-width","border-left-width"]),W.setStyleRelation("border-color",["border-top-color","border-right-color","border-bottom-color","border-left-color"]),W.setStyleRelation("border-style",["border-top-style","border-right-style","border-bottom-style","border-left-style"]),W.setStyleRelation("border-width",["border-top-width","border-right-width","border-bottom-width","border-left-width"]),W.setStyleRelation("border-top",["border-top-color","border-top-style","border-top-width"]),W.setStyleRelation("border-right",["border-right-color","border-right-style","border-right-width"]),W.setStyleRelation("border-bottom",["border-bottom-color","border-bottom-style","border-bottom-width"]),W.setStyleRelation("border-left",["border-left-color","border-left-style","border-left-width"])}function gd(W){return o=>{const{color:g,style:P,width:K}=Tl(o),ie={};return g!==void 0&&(ie.color={[W]:g}),P!==void 0&&(ie.style={[W]:P}),K!==void 0&&(ie.width={[W]:K}),{path:"border",value:ie}}}function yc(W){return o=>({path:"border",value:ma(o,W)})}function ma(W,o){return{[o]:Ru(W)}}function oa(W,o){return g=>({path:"border",value:{[W]:{[o]:g}}})}function Wa(W){return(o,g)=>{if(g.border)return fu(g.border,W)}}function fu(W,o){const g={};return W.width&&W.width[o]&&(g.width=W.width[o]),W.style&&W.style[o]&&(g.style=W.style[o]),W.color&&W.color[o]&&(g.color=W.color[o]),g}function Tl(W){const o={},g=pd(W);for(const P of g)vc(P)||/thin|medium|thick/.test(P)?o.width=P:Jc(P)?o.style=P:o.color=P;return o}function pu(W){return o=>Xc(o,W)}function Xc(W,o){const g=[];if(W&&W.width&&g.push("width"),W&&W.style&&g.push("style"),W&&W.color&&g.push("color"),g.length==3){const P=g.map(K=>W[K]).join(" ");return[o=="all"?["border",P]:[`border-${o}`,P]]}return o=="all"?[]:g.map(P=>[`border-${o}-${P}`,W[P]])}function dl(W){W.setNormalizer("margin",hu("margin")),W.setNormalizer("margin-top",o=>({path:"margin.top",value:o})),W.setNormalizer("margin-right",o=>({path:"margin.right",value:o})),W.setNormalizer("margin-bottom",o=>({path:"margin.bottom",value:o})),W.setNormalizer("margin-left",o=>({path:"margin.left",value:o})),W.setReducer("margin",Sc("margin")),W.setStyleRelation("margin",["margin-top","margin-right","margin-bottom","margin-left"])}function wc(W){W.setNormalizer("padding",hu("padding")),W.setNormalizer("padding-top",o=>({path:"padding.top",value:o})),W.setNormalizer("padding-right",o=>({path:"padding.right",value:o})),W.setNormalizer("padding-bottom",o=>({path:"padding.bottom",value:o})),W.setNormalizer("padding-left",o=>({path:"padding.left",value:o})),W.setReducer("padding",Sc("padding")),W.setStyleRelation("padding",["padding-top","padding-right","padding-bottom","padding-left"])}},"./packages/ckeditor5-enter/src/index.ts":(c,h,p)=>{"use strict";p.d(h,{C:()=>U,G:()=>x});var d=p("./packages/ckeditor5-core/src/index.ts");function*k(T,u){for(const b of u)b&&T.getAttributeProperties(b[0]).copyOnEnter&&(yield b)}class M extends d.mY{execute(){this.editor.model.change(u=>{this.enterBlock(u),this.fire("afterExecute",{writer:u})})}enterBlock(u){const b=this.editor.model,E=b.document.selection,A=b.schema,R=E.isCollapsed,H=E.getFirstRange(),z=H.start.parent,V=H.end.parent;if(A.isLimit(z)||A.isLimit(V))return R||z!=V||b.deleteContent(E),!1;if(R){const $=k(u.model.schema,E.getAttributes());return C(u,H.start),u.setSelectionAttribute($),!0}{const $=!(H.start.isAtStart&&H.end.isAtEnd),ee=z==V;if(b.deleteContent(E,{leaveUnmerged:$}),$){if(ee)return C(u,E.focus),!0;u.setSelection(V,0)}}return!1}}function C(T,u){T.split(u),T.setSelection(u.parent.nextSibling,0)}var w=p("./packages/ckeditor5-engine/src/index.ts");const I={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class F extends w.Qj{constructor(u){super(u);const b=this.document;b.on("beforeinput",(E,A)=>{if(!this.isEnabled)return;const R=A.domEvent,H=I[A.inputType];if(!H)return;const z=new w.r7(b,"enter",A.targetRanges[0]);b.fire(z,new w.dK(u,R,{isSoft:H.isSoft})),z.stop.called&&E.stop()})}observe(){}}class U extends d.Sy{static get pluginName(){return"Enter"}init(){const u=this.editor,b=u.editing.view,E=b.document;b.addObserver(F),u.commands.add("enter",new M(u)),this.listenTo(E,"enter",(A,R)=>{E.isComposing||R.preventDefault(),R.isSoft||(u.execute("enter"),b.scrollToTheSelection())},{priority:"low"})}}class B extends d.mY{execute(){const u=this.editor.model,b=u.document;u.change(E=>{(function(A,R,H){const z=H.isCollapsed,V=H.getFirstRange(),$=V.start.parent,ee=V.end.parent,q=$==ee;if(z){const oe=k(A.schema,H.getAttributes());N(A,R,V.end),R.removeSelectionAttribute(H.getAttributeKeys()),R.setSelectionAttribute(oe)}else{const oe=!(V.start.isAtStart&&V.end.isAtEnd);A.deleteContent(H,{leaveUnmerged:oe}),q?N(A,R,H.focus):oe&&R.setSelection(ee,0)}})(u,E,b.selection),this.fire("afterExecute",{writer:E})})}refresh(){const u=this.editor.model,b=u.document;this.isEnabled=function(E,A){if(A.rangeCount>1)return!1;const R=A.anchor;if(!R||!E.checkChild(R,"softBreak"))return!1;const H=A.getFirstRange(),z=H.start.parent,V=H.end.parent;return!((D(z,E)||D(V,E))&&z!==V)}(u.schema,b.selection)}}function N(T,u,b){const E=u.createElement("softBreak");T.insertContent(E,b),u.setSelection(E,"after")}function D(T,u){return!T.is("rootElement")&&(u.isLimit(T)||D(T.parent,u))}class x extends d.Sy{static get pluginName(){return"ShiftEnter"}init(){const u=this.editor,b=u.model.schema,E=u.conversion,A=u.editing.view,R=A.document;b.register("softBreak",{allowWhere:"$text",isInline:!0}),E.for("upcast").elementToElement({model:"softBreak",view:"br"}),E.for("downcast").elementToElement({model:"softBreak",view:(H,{writer:z})=>z.createEmptyElement("br")}),A.addObserver(F),u.commands.add("shiftEnter",new B(u)),this.listenTo(R,"enter",(H,z)=>{R.isComposing||z.preventDefault(),z.isSoft&&(u.execute("shiftEnter"),A.scrollToTheSelection())},{priority:"low"})}}},"./packages/ckeditor5-typing/src/index.ts":(c,h,p)=>{"use strict";p.d(h,{HG:()=>A,II:()=>U,cL:()=>we,uL:()=>z,mh:()=>V,Mq:()=>R,VD:()=>mt,Up:()=>H,Im:()=>ln});var d=p("./packages/ckeditor5-core/src/index.ts"),k=p("./packages/ckeditor5-utils/src/index.ts");class M{constructor(Qe,bt=20){this._batch=null,this.model=Qe,this._size=0,this.limit=bt,this._isLocked=!1,this._changeCallback=(It,mn)=>{mn.isLocal&&mn.isUndoable&&mn!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch({isTyping:!0})),this._batch}get size(){return this._size}input(Qe){this._size+=Qe,this._size>=this.limit&&this._reset(!0)}get isLocked(){return this._isLocked}lock(){this._isLocked=!0}unlock(){this._isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(Qe=!1){this.isLocked&&!Qe||(this._batch=null,this._size=0)}}class C extends d.mY{constructor(Qe,bt){super(Qe),this._buffer=new M(Qe.model,bt)}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(Qe={}){const bt=this.editor.model,It=bt.document,mn=Qe.text||"",un=mn.length;let Be=It.selection;Qe.selection?Be=Qe.selection:Qe.range&&(Be=bt.createSelection(Qe.range));const je=Qe.resultRange;bt.enqueueChange(this._buffer.batch,$t=>{this._buffer.lock(),bt.deleteContent(Be),mn&&bt.insertContent($t.createText(mn,It.selection.getAttributes()),Be),je?$t.setSelection(je):Be.is("documentSelection")||$t.setSelection(Be),this._buffer.unlock(),this._buffer.input(un)})}}var w=p("./packages/ckeditor5-engine/src/index.ts");const I=["insertText","insertReplacementText"];class F extends w.Qj{constructor(Qe){super(Qe),k.OB.isAndroid&&I.push("insertCompositionText");const bt=Qe.document;bt.on("beforeinput",(It,mn)=>{if(!this.isEnabled)return;const{data:un,targetRanges:Be,inputType:je,domEvent:$t}=mn;if(!I.includes(je))return;const et=new k.M3(bt,"insertText");bt.fire(et,new w.dK(Qe,$t,{text:un,selection:Qe.createSelection(Be)})),et.stop.called&&It.stop()}),bt.on("compositionend",(It,{data:mn,domEvent:un})=>{this.isEnabled&&!k.OB.isAndroid&&mn&&bt.fire("insertText",new w.dK(Qe,un,{text:mn,selection:bt.selection}))},{priority:"lowest"})}observe(){}}class U extends d.Sy{static get pluginName(){return"Input"}init(){const Qe=this.editor,bt=Qe.model,It=Qe.editing.view,mn=bt.document.selection;It.addObserver(F);const un=new C(Qe,Qe.config.get("typing.undoStep")||20);Qe.commands.add("insertText",un),Qe.commands.add("input",un),this.listenTo(It.document,"insertText",(Be,je)=>{It.document.isComposing||je.preventDefault();const{text:$t,selection:et,resultRange:Kt}=je,kn=Array.from(et.getRanges()).map(ot=>Qe.editing.mapper.toModelRange(ot));let Tn=$t;if(k.OB.isAndroid){const ot=Array.from(kn[0].getItems()).reduce((Je,wt)=>Je+(wt.is("$textProxy")?wt.data:""),"");ot&&(ot.length<=Tn.length?Tn.startsWith(ot)&&(Tn=Tn.substring(ot.length),kn[0].start=kn[0].start.getShiftedBy(ot.length)):ot.startsWith(Tn)&&(kn[0].start=kn[0].start.getShiftedBy(Tn.length),Tn=""))}const ht={text:Tn,selection:bt.createSelection(kn)};Kt&&(ht.resultRange=Qe.editing.mapper.toModelRange(Kt)),Qe.execute("insertText",ht)}),k.OB.isAndroid?this.listenTo(It.document,"keydown",(Be,je)=>{!mn.isCollapsed&&je.keyCode==229&&It.document.isComposing&&B(bt,un)}):this.listenTo(It.document,"compositionstart",()=>{mn.isCollapsed||B(bt,un)})}}function B($e,Qe){if(!Qe.isEnabled)return;const bt=Qe.buffer;bt.lock(),$e.enqueueChange(bt.batch,()=>{$e.deleteContent($e.document.selection)}),bt.unlock()}class N extends d.mY{constructor(Qe,bt){super(Qe),this.direction=bt,this._buffer=new M(Qe.model,Qe.config.get("typing.undoStep"))}get buffer(){return this._buffer}execute(Qe={}){const bt=this.editor.model,It=bt.document;bt.enqueueChange(this._buffer.batch,mn=>{this._buffer.lock();const un=mn.createSelection(Qe.selection||It.selection),Be=Qe.sequence||1,je=un.isCollapsed;if(un.isCollapsed&&bt.modifySelection(un,{direction:this.direction,unit:Qe.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(Be))return void this._replaceEntireContentWithParagraph(mn);if(this._shouldReplaceFirstBlockWithParagraph(un,Be))return void this.editor.execute("paragraph",{selection:un});if(un.isCollapsed)return;let $t=0;un.getFirstRange().getMinimalFlatRanges().forEach(et=>{$t+=(0,k.QX)(et.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),bt.deleteContent(un,{doNotResetEntireContent:je,direction:this.direction}),this._buffer.input($t),mn.setSelection(un),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(Qe){if(Qe>1)return!1;const bt=this.editor.model,It=bt.document.selection,mn=bt.schema.getLimitElement(It);if(!(It.isCollapsed&&It.containsEntireContent(mn))||!bt.schema.checkChild(mn,"paragraph"))return!1;const un=mn.getChild(0);return!un||!un.is("element","paragraph")}_replaceEntireContentWithParagraph(Qe){const bt=this.editor.model,It=bt.document.selection,mn=bt.schema.getLimitElement(It),un=Qe.createElement("paragraph");Qe.remove(Qe.createRangeIn(mn)),Qe.insert(un,mn),Qe.setSelection(un,0)}_shouldReplaceFirstBlockWithParagraph(Qe,bt){const It=this.editor.model;if(bt>1||this.direction!="backward"||!Qe.isCollapsed)return!1;const mn=Qe.getFirstPosition(),un=It.schema.getLimitElement(mn),Be=un.getChild(0);return mn.parent==Be&&!!Qe.containsEntireContent(Be)&&!!It.schema.checkChild(un,"paragraph")&&Be.name!="paragraph"}}const D="word",x="selection",T="backward",u="forward",b={deleteContent:{unit:x,direction:T},deleteContentBackward:{unit:"codePoint",direction:T},deleteWordBackward:{unit:D,direction:T},deleteHardLineBackward:{unit:x,direction:T},deleteSoftLineBackward:{unit:x,direction:T},deleteContentForward:{unit:"character",direction:u},deleteWordForward:{unit:D,direction:u},deleteHardLineForward:{unit:x,direction:u},deleteSoftLineForward:{unit:x,direction:u}};class E extends w.Qj{constructor(Qe){super(Qe);const bt=Qe.document;let It=0;bt.on("keydown",()=>{It++}),bt.on("keyup",()=>{It=0}),bt.on("beforeinput",(mn,un)=>{if(!this.isEnabled)return;const{targetRanges:Be,domEvent:je,inputType:$t}=un,et=b[$t];if(!et)return;const Kt={direction:et.direction,unit:et.unit,sequence:It};Kt.unit==x&&(Kt.selectionToRemove=Qe.createSelection(Be[0])),k.OB.isAndroid&&$t==="deleteContentBackward"&&(Kt.sequence=1,Be.length!=1||Be[0].start.parent==Be[0].end.parent&&Be[0].start.offset+1==Be[0].end.offset||(Kt.unit=x,Kt.selectionToRemove=Qe.createSelection(Be)));const kn=new w.r7(bt,"delete",Be[0]);bt.fire(kn,new w.dK(Qe,je,Kt)),kn.stop.called&&mn.stop()}),k.OB.isBlink&&function(mn){const un=mn.view,Be=un.document;let je=null,$t=!1;function et(kn){return kn==k.Do.backspace||kn==k.Do.delete}function Kt(kn){return kn==k.Do.backspace?T:u}Be.on("keydown",(kn,{keyCode:Tn})=>{je=Tn,$t=!1}),Be.on("keyup",(kn,{keyCode:Tn,domEvent:ht})=>{const ot=Be.selection,Je=mn.isEnabled&&Tn==je&&et(Tn)&&!ot.isCollapsed&&!$t;if(je=null,Je){const wt=ot.getFirstRange(),ft=new w.r7(Be,"delete",wt),vn={unit:x,direction:Kt(Tn),selectionToRemove:ot};Be.fire(ft,new w.dK(un,ht,vn))}}),Be.on("beforeinput",(kn,{inputType:Tn})=>{const ht=b[Tn];et(je)&&ht&&ht.direction==Kt(je)&&($t=!0)},{priority:"high"}),Be.on("beforeinput",(kn,{inputType:Tn,data:ht})=>{je==k.Do.delete&&Tn=="insertText"&&ht=="\x7F"&&kn.stop()},{priority:"high"})}(this)}observe(){}}class A extends d.Sy{static get pluginName(){return"Delete"}init(){const Qe=this.editor,bt=Qe.editing.view,It=bt.document,mn=Qe.model.document;bt.addObserver(E),this._undoOnBackspace=!1;const un=new N(Qe,"forward");Qe.commands.add("deleteForward",un),Qe.commands.add("forwardDelete",un),Qe.commands.add("delete",new N(Qe,"backward")),this.listenTo(It,"delete",(Be,je)=>{It.isComposing||je.preventDefault();const{direction:$t,sequence:et,selectionToRemove:Kt,unit:kn}=je,Tn=$t==="forward"?"deleteForward":"delete",ht={sequence:et};if(kn=="selection"){const ot=Array.from(Kt.getRanges()).map(Je=>Qe.editing.mapper.toModelRange(Je));ht.selection=Qe.model.createSelection(ot)}else ht.unit=kn;Qe.execute(Tn,ht),bt.scrollToTheSelection()},{priority:"low"}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(It,"delete",(Be,je)=>{this._undoOnBackspace&&je.direction=="backward"&&je.sequence==1&&je.unit=="codePoint"&&(this._undoOnBackspace=!1,Qe.execute("undo"),je.preventDefault(),Be.stop())},{context:"$capture"}),this.listenTo(mn,"change",()=>{this._undoOnBackspace=!1}))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class R extends d.Sy{static get requires(){return[U,A]}static get pluginName(){return"Typing"}}function H($e,Qe){let bt=$e.start;return{text:Array.from($e.getItems()).reduce((It,mn)=>mn.is("$text")||mn.is("$textProxy")?It+mn.data:(bt=Qe.createPositionAfter(mn),""),""),range:Qe.createRange(bt,$e.end)}}class z extends(0,k.Re)(){constructor(Qe,bt){super(),this.model=Qe,this.testCallback=bt,this._hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",()=>{this.isEnabled?this._startListening():(this.stopListening(Qe.document.selection),this.stopListening(Qe.document))}),this._startListening()}get hasMatch(){return this._hasMatch}_startListening(){const Qe=this.model.document;this.listenTo(Qe.selection,"change:range",(bt,{directChange:It})=>{It&&(Qe.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this._hasMatch=!1))}),this.listenTo(Qe,"change:data",(bt,It)=>{!It.isUndo&&It.isLocal&&this._evaluateTextBeforeSelection("data",{batch:It})})}_evaluateTextBeforeSelection(Qe,bt={}){const It=this.model,mn=It.document.selection,un=It.createRange(It.createPositionAt(mn.focus.parent,0),mn.focus),{text:Be,range:je}=H(un,It),$t=this.testCallback(Be);if(!$t&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!$t,$t){const et=Object.assign(bt,{text:Be,range:je});typeof $t=="object"&&Object.assign(et,$t),this.fire(`matched:${Qe}`,et)}}}class V extends d.Sy{static get pluginName(){return"TwoStepCaretMovement"}constructor(Qe){super(Qe),this.attributes=new Set,this._overrideUid=null}init(){const Qe=this.editor,bt=Qe.model,It=Qe.editing.view,mn=Qe.locale,un=bt.document.selection;this.listenTo(It.document,"arrowKey",(Be,je)=>{if(!un.isCollapsed||je.shiftKey||je.altKey||je.ctrlKey)return;const $t=je.keyCode==k.Do.arrowright,et=je.keyCode==k.Do.arrowleft;if(!$t&&!et)return;const Kt=mn.contentLanguageDirection;let kn=!1;kn=Kt==="ltr"&&$t||Kt==="rtl"&&et?this._handleForwardMovement(je):this._handleBackwardMovement(je),kn===!0&&Be.stop()},{context:"$text",priority:"highest"}),this._isNextGravityRestorationSkipped=!1,this.listenTo(un,"change:range",(Be,je)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!je.directChange&&oe(un.getFirstPosition(),this.attributes)||this._restoreGravity())})}registerAttribute(Qe){this.attributes.add(Qe)}_handleForwardMovement(Qe){const bt=this.attributes,It=this.editor.model.document.selection,mn=It.getFirstPosition();return!this._isGravityOverridden&&(!mn.isAtStart||!$(It,bt))&&!!oe(mn,bt)&&(q(Qe),this._overrideGravity(),!0)}_handleBackwardMovement(Qe){const bt=this.attributes,It=this.editor.model,mn=It.document.selection,un=mn.getFirstPosition();return this._isGravityOverridden?(q(Qe),this._restoreGravity(),ee(It,bt,un),!0):un.isAtStart?!!$(mn,bt)&&(q(Qe),ee(It,bt,un),!0):!!function(Be,je){const $t=Be.getShiftedBy(-1);return oe($t,je)}(un,bt)&&(un.isAtEnd&&!$(mn,bt)&&oe(un,bt)?(q(Qe),ee(It,bt,un),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1))}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change(Qe=>Qe.overrideSelectionGravity())}_restoreGravity(){this.editor.model.change(Qe=>{Qe.restoreSelectionGravity(this._overrideUid),this._overrideUid=null})}}function $($e,Qe){for(const bt of Qe)if($e.hasAttribute(bt))return!0;return!1}function ee($e,Qe,bt){const It=bt.nodeBefore;$e.change(mn=>{It?mn.setSelectionAttribute(It.getAttributes()):mn.removeSelectionAttribute(Qe)})}function q($e){$e.preventDefault()}function oe($e,Qe){const{nodeBefore:bt,nodeAfter:It}=$e;for(const mn of Qe){const un=bt?bt.getAttribute(mn):void 0;if((It?It.getAttribute(mn):void 0)!==un)return!0}return!1}var X=p("./node_modules/lodash-es/toString.js"),pe=/[\\^$.*+?()[\]{}|]/g,Ie=RegExp(pe.source);const se=function($e){return($e=(0,X.Z)($e))&&Ie.test($e)?$e.replace(pe,"\\$&"):$e},be={copyright:{from:"(c)",to:"\xA9"},registeredTrademark:{from:"(r)",to:"\xAE"},trademark:{from:"(tm)",to:"\u2122"},oneHalf:{from:/(^|[^/a-z0-9])(1\/2)([^/a-z0-9])$/i,to:[null,"\xBD",null]},oneThird:{from:/(^|[^/a-z0-9])(1\/3)([^/a-z0-9])$/i,to:[null,"\u2153",null]},twoThirds:{from:/(^|[^/a-z0-9])(2\/3)([^/a-z0-9])$/i,to:[null,"\u2154",null]},oneForth:{from:/(^|[^/a-z0-9])(1\/4)([^/a-z0-9])$/i,to:[null,"\xBC",null]},threeQuarters:{from:/(^|[^/a-z0-9])(3\/4)([^/a-z0-9])$/i,to:[null,"\xBE",null]},lessThanOrEqual:{from:"<=",to:"\u2264"},greaterThanOrEqual:{from:">=",to:"\u2265"},notEqual:{from:"!=",to:"\u2260"},arrowLeft:{from:"<-",to:"\u2190"},arrowRight:{from:"->",to:"\u2192"},horizontalEllipsis:{from:"...",to:"\u2026"},enDash:{from:/(^| )(--)( )$/,to:[null,"\u2013",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"\u2014",null]},quotesPrimary:{from:Ye('"'),to:[null,"\u201C",null,"\u201D"]},quotesSecondary:{from:Ye("'"),to:[null,"\u2018",null,"\u2019"]},quotesPrimaryEnGb:{from:Ye("'"),to:[null,"\u2018",null,"\u2019"]},quotesSecondaryEnGb:{from:Ye('"'),to:[null,"\u201C",null,"\u201D"]},quotesPrimaryPl:{from:Ye('"'),to:[null,"\u201E",null,"\u201D"]},quotesSecondaryPl:{from:Ye("'"),to:[null,"\u201A",null,"\u2019"]}},fe={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},ue=["symbols","mathematical","typography","quotes"];class we extends d.Sy{static get requires(){return["Delete","Input"]}static get pluginName(){return"TextTransformation"}constructor(Qe){super(Qe),Qe.config.define("typing",{transformations:{include:ue}})}init(){const Qe=this.editor.model.document.selection;Qe.on("change:range",()=>{this.isEnabled=!Qe.anchor.parent.is("element","codeBlock")}),this._enableTransformationWatchers()}_enableTransformationWatchers(){const Qe=this.editor,bt=Qe.model,It=Qe.plugins.get("Delete"),mn=function(Be){const je=Be.extra||[],$t=Be.remove||[],et=Kt=>!$t.includes(Kt);return function(Kt){const kn=new Set;for(const Tn of Kt)if(typeof Tn=="string"&&fe[Tn])for(const ht of fe[Tn])kn.add(ht);else kn.add(Tn);return Array.from(kn)}(Be.include.concat(je).filter(et)).filter(et).map(Kt=>typeof Kt=="string"&&be[Kt]?be[Kt]:Kt).filter(Kt=>typeof Kt=="object").map(Kt=>({from:Me(Kt.from),to:Ce(Kt.to)}))}(Qe.config.get("typing.transformations")),un=new z(Qe.model,Be=>{for(const je of mn)if(je.from.test(Be))return{normalizedTransformation:je}});un.on("matched:data",(Be,je)=>{if(!je.batch.isTyping)return;const{from:$t,to:et}=je.normalizedTransformation,Kt=$t.exec(je.text),kn=et(Kt.slice(1)),Tn=je.range;let ht=Kt.index;bt.enqueueChange(ot=>{for(let Je=1;Je<Kt.length;Je++){const wt=Kt[Je],ft=kn[Je-1];if(ft==null){ht+=wt.length;continue}const vn=Tn.start.getShiftedBy(ht),ut=bt.createRange(vn,vn.getShiftedBy(wt.length)),Wt=Ne(vn);bt.insertContent(ot.createText(ft,Wt),ut),ht+=ft.length}bt.enqueueChange(()=>{It.requestUndoOnBackspace()})})}),un.bind("isEnabled").to(this)}}function Me($e){return typeof $e=="string"?new RegExp(`(${se($e)})$`):$e}function Ce($e){return typeof $e=="string"?()=>[$e]:$e instanceof Array?()=>$e:$e}function Ne($e){return($e.textNode?$e.textNode:$e.nodeAfter).getAttributes()}function Ye($e){return new RegExp(`(^|\\s)(${$e})([^${$e}]*)(${$e})$`)}function mt($e,Qe,bt,It){return It.createRange(Ct($e,Qe,bt,!0,It),Ct($e,Qe,bt,!1,It))}function Ct($e,Qe,bt,It,mn){let un=$e.textNode||(It?$e.nodeBefore:$e.nodeAfter),Be=null;for(;un&&un.getAttribute(Qe)==bt;)Be=un,un=It?un.previousSibling:un.nextSibling;return Be?mn.createPositionAt(Be,It?"before":"after"):$e}function ln($e,Qe,bt,It){const mn=$e.editing.view,un=new Set;mn.document.registerPostFixer(Be=>{const je=$e.model.document.selection;let $t=!1;if(je.hasAttribute(Qe)){const et=mt(je.getFirstPosition(),Qe,je.getAttribute(Qe),$e.model),Kt=$e.editing.mapper.toViewRange(et);for(const kn of Kt.getItems())kn.is("element",bt)&&!kn.hasClass(It)&&(Be.addClass(It,kn),un.add(kn),$t=!0)}return $t}),$e.conversion.for("editingDowncast").add(Be=>{function je(){mn.change($t=>{for(const et of un.values())$t.removeClass(It,et),un.delete(et)})}Be.on("insert",je,{priority:"highest"}),Be.on("remove",je,{priority:"highest"}),Be.on("attribute",je,{priority:"highest"}),Be.on("selection",je,{priority:"highest"})})}},"./packages/ckeditor5-ui/src/index.ts":(c,h,p)=>{"use strict";function d({emitter:_n,activator:_e,callback:rt,contextElements:vt}){_n.listenTo(document,"mousedown",(Gt,We)=>{if(!_e())return;const Ot=typeof We.composedPath=="function"?We.composedPath():[],Dt=typeof vt=="function"?vt():vt;for(const gn of Dt)if(gn.contains(We.target)||Ot.includes(gn))return;rt()})}function k(_n){const _e=_n;_e.set("_isCssTransitionsDisabled",!1),_e.disableCssTransitions=()=>{_e._isCssTransitionsDisabled=!0},_e.enableCssTransitions=()=>{_e._isCssTransitionsDisabled=!1},_e.extendTemplate({attributes:{class:[_e.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}function M({view:_n}){_n.listenTo(_n.element,"submit",(_e,rt)=>{rt.preventDefault(),_n.fire("submit")},{useCapture:!0})}function C({keystrokeHandler:_n,focusTracker:_e,gridItems:rt,numberOfColumns:vt,uiLanguageDirection:Gt}){const We=typeof vt=="number"?()=>vt:vt;function Ot(Hn){return nr=>{const _r=rt.find(ki=>ki.element===_e.focusedElement),Nr=rt.getIndex(_r),Qr=Hn(Nr,rt);rt.get(Qr).focus(),nr.stopPropagation(),nr.preventDefault()}}function Dt(Hn,nr){return Hn===nr-1?0:Hn+1}function gn(Hn,nr){return Hn===0?nr-1:Hn-1}_n.set("arrowright",Ot((Hn,nr)=>Gt==="rtl"?gn(Hn,nr.length):Dt(Hn,nr.length))),_n.set("arrowleft",Ot((Hn,nr)=>Gt==="rtl"?Dt(Hn,nr.length):gn(Hn,nr.length))),_n.set("arrowup",Ot((Hn,nr)=>{let _r=Hn-We();return _r<0&&(_r=Hn+We()*Math.floor(nr.length/We()),_r>nr.length-1&&(_r-=We())),_r})),_n.set("arrowdown",Ot((Hn,nr)=>{let _r=Hn+We();return _r>nr.length-1&&(_r=Hn%We()),_r}))}p.d(h,{no:()=>ii,Jf:()=>Jn,ee:()=>ji,BK:()=>Ce,py:()=>Pn,r5:()=>$e,J6:()=>kn,_9:()=>je,_Y:()=>Tn,WB:()=>St,J0:()=>vn,_n:()=>wt,S8:()=>qt,fF:()=>On,I0:()=>ge,Gp:()=>Ge,mO:()=>mt,VY:()=>br,r1:()=>Rt,Xs:()=>ir,pq:()=>Gn,Em:()=>wn,Dn:()=>Cn,KP:()=>Or,dn:()=>li,Bv:()=>$r,Hn:()=>Bn,P_:()=>$i,Rm:()=>ae,lp:()=>hn,BM:()=>It,YS:()=>u,$y:()=>Xe,jB:()=>dr,gE:()=>Te,G7:()=>D,vX:()=>I,IJ:()=>C,Pm:()=>Le,up:()=>on,eC:()=>d,t9:()=>Yn,FH:()=>Fi,sh:()=>si,R:()=>oi,Mh:()=>Mn,k6:()=>mn,fe:()=>k,S1:()=>un,jY:()=>Be,iw:()=>lt,GI:()=>M});var w=p("./packages/ckeditor5-utils/src/index.ts");class I extends w.FE{constructor(_e=[]){super(_e,{idProperty:"viewUid"}),this.on("add",(rt,vt,Gt)=>{this._renderViewIntoCollectionParent(vt,Gt)}),this.on("remove",(rt,vt)=>{vt.element&&this._parentElement&&vt.element.remove()}),this._parentElement=null}destroy(){this.map(_e=>_e.destroy())}setParent(_e){this._parentElement=_e;for(const rt of this)this._renderViewIntoCollectionParent(rt)}delegate(..._e){if(!_e.length||!_e.every(rt=>typeof rt=="string"))throw new w.Bb("ui-viewcollection-delegate-wrong-events",this);return{to:rt=>{for(const vt of this)for(const Gt of _e)vt.delegate(Gt).to(rt);this.on("add",(vt,Gt)=>{for(const We of _e)Gt.delegate(We).to(rt)}),this.on("remove",(vt,Gt)=>{for(const We of _e)Gt.stopDelegating(We,rt)})}}}_renderViewIntoCollectionParent(_e,rt){_e.isRendered||_e.render(),_e.element&&this._parentElement&&this._parentElement.insertBefore(_e.element,this._parentElement.children[rt])}}var F=p("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),U=p.n(F),B=p("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/globals/globals.css"),N={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};U()(B.Z,N),B.Z.locals;class D extends(0,w.Xu)((0,w.Re)()){constructor(_e){super(),this.element=null,this.isRendered=!1,this.locale=_e,this.t=_e&&_e.t,this._viewCollections=new w.FE,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(rt,vt)=>{vt.locale=_e,vt.t=_e&&_e.t}),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=u.bind(this,this)}createCollection(_e){const rt=new I(_e);return this._viewCollections.add(rt),rt}registerChild(_e){(0,w.TW)(_e)||(_e=[_e]);for(const rt of _e)this._unboundChildren.add(rt)}deregisterChild(_e){(0,w.TW)(_e)||(_e=[_e]);for(const rt of _e)this._unboundChildren.remove(rt)}setTemplate(_e){this.template=new u(_e)}extendTemplate(_e){u.extend(this.template,_e)}render(){if(this.isRendered)throw new w.Bb("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map(_e=>_e.destroy()),this.template&&this.template._revertData&&this.template.revert(this.element)}}var x=p("./node_modules/lodash-es/cloneDeepWith.js"),T=p("./node_modules/lodash-es/isObject.js");class u extends(0,w.ln)(){constructor(_e){super(),Object.assign(this,q(ee(_e))),this._isRendered=!1,this._revertData=null}render(){const _e=this._renderNode({intoFragment:!0});return this._isRendered=!0,_e}apply(_e){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:_e,intoFragment:!1,isApplying:!0,revertData:this._revertData}),_e}revert(_e){if(!this._revertData)throw new w.Bb("ui-template-revert-not-applied",[this,_e]);this._revertTemplateFromNode(_e,this._revertData)}*getViews(){yield*function*_e(rt){if(rt.children)for(const vt of rt.children)be(vt)?yield vt:fe(vt)&&(yield*_e(vt))}(this)}static bind(_e,rt){return{to:(vt,Gt)=>new E({eventNameOrFunction:vt,attribute:vt,observable:_e,emitter:rt,callback:Gt}),if:(vt,Gt,We)=>new A({observable:_e,emitter:rt,attribute:vt,valueIfTrue:Gt,callback:We})}}static extend(_e,rt){if(_e._isRendered)throw new w.Bb("template-extend-render",[this,_e]);Ie(_e,q(ee(rt)))}_renderNode(_e){let rt;if(rt=_e.node?this.tag&&this.text:this.tag?this.text:!this.text,rt)throw new w.Bb("ui-template-wrong-syntax",this);return this.text?this._renderText(_e):this._renderElement(_e)}_renderElement(_e){let rt=_e.node;return rt||(rt=_e.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(_e),this._renderElementChildren(_e),this._setUpListeners(_e),rt}_renderText(_e){let rt=_e.node;return rt?_e.revertData.text=rt.textContent:rt=_e.node=document.createTextNode(""),R(this.text)?this._bindToObservable({schema:this.text,updater:z(rt),data:_e}):rt.textContent=this.text.join(""),rt}_renderAttributes(_e){if(!this.attributes)return;const rt=_e.node,vt=_e.revertData;for(const Gt in this.attributes){const We=rt.getAttribute(Gt),Ot=this.attributes[Gt];vt&&(vt.attributes[Gt]=We);const Dt=we(Ot)?Ot[0].ns:null;if(R(Ot)){const gn=we(Ot)?Ot[0].value:Ot;vt&&Me(Gt)&&gn.unshift(We),this._bindToObservable({schema:gn,updater:V(rt,Gt,Dt),data:_e})}else if(Gt=="style"&&typeof Ot[0]!="string")this._renderStyleAttribute(Ot[0],_e);else{vt&&We&&Me(Gt)&&Ot.unshift(We);const gn=Ot.map(Hn=>Hn&&Hn.value||Hn).reduce((Hn,nr)=>Hn.concat(nr),[]).reduce(X,"");se(gn)||rt.setAttributeNS(Dt,Gt,gn)}}}_renderStyleAttribute(_e,rt){const vt=rt.node;for(const Gt in _e){const We=_e[Gt];R(We)?this._bindToObservable({schema:[We],updater:$(vt,Gt),data:rt}):vt.style[Gt]=We}}_renderElementChildren(_e){const rt=_e.node,vt=_e.intoFragment?document.createDocumentFragment():rt,Gt=_e.isApplying;let We=0;for(const Ot of this.children)if(ue(Ot)){if(!Gt){Ot.setParent(rt);for(const Dt of Ot)vt.appendChild(Dt.element)}}else if(be(Ot))Gt||(Ot.isRendered||Ot.render(),vt.appendChild(Ot.element));else if((0,w.UG)(Ot))vt.appendChild(Ot);else if(Gt){const Dt={children:[],bindings:[],attributes:{}};_e.revertData.children.push(Dt),Ot._renderNode({intoFragment:!1,node:vt.childNodes[We++],isApplying:!0,revertData:Dt})}else vt.appendChild(Ot.render());_e.intoFragment&&rt.appendChild(vt)}_setUpListeners(_e){if(this.eventListeners)for(const rt in this.eventListeners){const vt=this.eventListeners[rt].map(Gt=>{const[We,Ot]=rt.split("@");return Gt.activateDomEventListener(We,Ot,_e)});_e.revertData&&_e.revertData.bindings.push(vt)}}_bindToObservable({schema:_e,updater:rt,data:vt}){const Gt=vt.revertData;H(_e,rt,vt);const We=_e.filter(Ot=>!se(Ot)).filter(Ot=>Ot.observable).map(Ot=>Ot.activateAttributeListener(_e,rt,vt));Gt&&Gt.bindings.push(We)}_revertTemplateFromNode(_e,rt){for(const Gt of rt.bindings)for(const We of Gt)We();if(rt.text)return void(_e.textContent=rt.text);const vt=_e;for(const Gt in rt.attributes){const We=rt.attributes[Gt];We===null?vt.removeAttribute(Gt):vt.setAttribute(Gt,We)}for(let Gt=0;Gt<rt.children.length;++Gt)this._revertTemplateFromNode(vt.childNodes[Gt],rt.children[Gt])}}class b{constructor(_e){this.attribute=_e.attribute,this.observable=_e.observable,this.emitter=_e.emitter,this.callback=_e.callback}getValue(_e){const rt=this.observable[this.attribute];return this.callback?this.callback(rt,_e):rt}activateAttributeListener(_e,rt,vt){const Gt=()=>H(_e,rt,vt);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,Gt),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,Gt)}}}class E extends b{constructor(_e){super(_e),this.eventNameOrFunction=_e.eventNameOrFunction}activateDomEventListener(_e,rt,vt){const Gt=(We,Ot)=>{rt&&!Ot.target.matches(rt)||(typeof this.eventNameOrFunction=="function"?this.eventNameOrFunction(Ot):this.observable.fire(this.eventNameOrFunction,Ot))};return this.emitter.listenTo(vt.node,_e,Gt),()=>{this.emitter.stopListening(vt.node,_e,Gt)}}}class A extends b{constructor(_e){super(_e),this.valueIfTrue=_e.valueIfTrue}getValue(_e){return!se(super.getValue(_e))&&(this.valueIfTrue||!0)}}function R(_n){return!!_n&&(_n.value&&(_n=_n.value),Array.isArray(_n)?_n.some(R):_n instanceof b)}function H(_n,_e,{node:rt}){const vt=function(We,Ot){return We.map(Dt=>Dt instanceof b?Dt.getValue(Ot):Dt)}(_n,rt);let Gt;Gt=_n.length==1&&_n[0]instanceof A?vt[0]:vt.reduce(X,""),se(Gt)?_e.remove():_e.set(Gt)}function z(_n){return{set(_e){_n.textContent=_e},remove(){_n.textContent=""}}}function V(_n,_e,rt){return{set(vt){_n.setAttributeNS(rt,_e,vt)},remove(){_n.removeAttributeNS(rt,_e)}}}function $(_n,_e){return{set(rt){_n.style[_e]=rt},remove(){_n.style[_e]=null}}}function ee(_n){return(0,x.Z)(_n,_e=>{if(_e&&(_e instanceof b||fe(_e)||be(_e)||ue(_e)))return _e})}function q(_n){if(typeof _n=="string"?_n=function(_e){return{text:[_e]}}(_n):_n.text&&function(_e){_e.text=(0,w.qo)(_e.text)}(_n),_n.on&&(_n.eventListeners=function(_e){for(const rt in _e)oe(_e,rt);return _e}(_n.on),delete _n.on),!_n.text){_n.attributes&&function(rt){for(const vt in rt)rt[vt].value&&(rt[vt].value=(0,w.qo)(rt[vt].value)),oe(rt,vt)}(_n.attributes);const _e=[];if(_n.children)if(ue(_n.children))_e.push(_n.children);else for(const rt of _n.children)fe(rt)||be(rt)||(0,w.UG)(rt)?_e.push(rt):_e.push(new u(rt));_n.children=_e}return _n}function oe(_n,_e){_n[_e]=(0,w.qo)(_n[_e])}function X(_n,_e){return se(_e)?_n:se(_n)?_e:`${_n} ${_e}`}function pe(_n,_e){for(const rt in _e)_n[rt]?_n[rt].push(..._e[rt]):_n[rt]=_e[rt]}function Ie(_n,_e){if(_e.attributes&&(_n.attributes||(_n.attributes={}),pe(_n.attributes,_e.attributes)),_e.eventListeners&&(_n.eventListeners||(_n.eventListeners={}),pe(_n.eventListeners,_e.eventListeners)),_e.text&&_n.text.push(..._e.text),_e.children&&_e.children.length){if(_n.children.length!=_e.children.length)throw new w.Bb("ui-template-extend-children-mismatch",_n);let rt=0;for(const vt of _e.children)Ie(_n.children[rt++],vt)}}function se(_n){return!_n&&_n!==0}function be(_n){return _n instanceof D}function fe(_n){return _n instanceof u}function ue(_n){return _n instanceof I}function we(_n){return(0,T.Z)(_n[0])&&_n[0].ns}function Me(_n){return _n=="class"||_n=="style"}class Ce extends I{constructor(_e,rt=[]){super(rt),this.locale=_e}attachToDom(){this._bodyCollectionContainer=new u({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let _e=document.querySelector(".ck-body-wrapper");_e||(_e=(0,w.az)(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(_e)),_e.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const _e=document.querySelector(".ck-body-wrapper");_e&&_e.childElementCount==0&&_e.remove()}}var Ne=p("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/icon/icon.css"),Ye={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};U()(Ne.Z,Ye),Ne.Z.locals;class mt extends D{constructor(){super();const _e=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.set("isColorInherited",!0),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon","ck-reset_all-excluded",_e.if("isColorInherited","ck-icon_inherit-color")],viewBox:_e.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",()=>{this._updateXMLContent(),this._colorFillPaths()}),this.on("change:fillColor",()=>{this._colorFillPaths()})}_updateXMLContent(){if(this.content){const _e=new DOMParser().parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),rt=_e.getAttribute("viewBox");rt&&(this.viewBox=rt);for(const{name:vt,value:Gt}of Array.from(_e.attributes))mt.presentationalAttributeNames.includes(vt)&&this.element.setAttribute(vt,Gt);for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(;_e.childNodes.length>0;)this.element.appendChild(_e.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach(_e=>{_e.style.fill=this.fillColor})}}mt.presentationalAttributeNames=["alignment-baseline","baseline-shift","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-rendering","cursor","direction","display","dominant-baseline","fill","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-overflow","text-rendering","transform","unicode-bidi","vector-effect","visibility","white-space","word-spacing","writing-mode"];var Ct=p("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/button/button.css"),ln={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};U()(Ct.Z,ln),Ct.Z.locals;class $e extends D{constructor(_e){super(_e);const rt=this.bindTemplate,vt=(0,w.hQ)();this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke",void 0),this.set("label",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.labelView=this._createLabelView(vt),this.iconView=new mt,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this));const Gt={tag:"button",attributes:{class:["ck","ck-button",rt.to("class"),rt.if("isEnabled","ck-disabled",We=>!We),rt.if("isVisible","ck-hidden",We=>!We),rt.to("isOn",We=>We?"ck-on":"ck-off"),rt.if("withText","ck-button_with-text"),rt.if("withKeystroke","ck-button_with-keystroke")],type:rt.to("type",We=>We||"button"),tabindex:rt.to("tabindex"),"aria-labelledby":`ck-editor__aria-label_${vt}`,"aria-disabled":rt.if("isEnabled",!0,We=>!We),"aria-pressed":rt.to("isOn",We=>!!this.isToggleable&&String(!!We)),"data-cke-tooltip-text":rt.to("_tooltipString"),"data-cke-tooltip-position":rt.to("tooltipPosition")},children:this.children,on:{click:rt.to(We=>{this.isEnabled?this.fire("execute"):We.preventDefault()})}};w.OB.isSafari&&(Gt.on.mousedown=rt.to(We=>{this.focus(),We.preventDefault()})),this.setTemplate(Gt)}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}_createLabelView(_e){const rt=new D,vt=this.bindTemplate;return rt.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:vt.to("labelStyle"),id:`ck-editor__aria-label_${_e}`},children:[{text:this.bindTemplate.to("label")}]}),rt}_createKeystrokeView(){const _e=new D;return _e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",rt=>(0,w.XU)(rt))}]}),_e}_getTooltipString(_e,rt,vt){return _e?typeof _e=="string"?_e:(vt&&(vt=(0,w.XU)(vt)),_e instanceof Function?_e(rt,vt):`${rt}${vt?` (${vt})`:""}`):""}}var Qe=p("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/button/switchbutton.css"),bt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};U()(Qe.Z,bt),Qe.Z.locals;class It extends $e{constructor(_e){super(_e),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const _e=new D;return _e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),_e}}function mn(_n,_e){const rt=_n.t,vt={Black:rt("Black"),"Dim grey":rt("Dim grey"),Grey:rt("Grey"),"Light grey":rt("Light grey"),White:rt("White"),Red:rt("Red"),Orange:rt("Orange"),Yellow:rt("Yellow"),"Light green":rt("Light green"),Green:rt("Green"),Aquamarine:rt("Aquamarine"),Turquoise:rt("Turquoise"),"Light blue":rt("Light blue"),Blue:rt("Blue"),Purple:rt("Purple")};return _e.map(Gt=>{const We=vt[Gt.label];return We&&We!=Gt.label&&(Gt.label=We),Gt})}function un(_n){return _n.map(Be).filter(_e=>!!_e)}function Be(_n){return typeof _n=="string"?{model:_n,label:_n,hasBorder:!1,view:{name:"span",styles:{color:_n}}}:{model:_n.color,label:_n.label||_n.color,hasBorder:_n.hasBorder!==void 0&&_n.hasBorder,view:{name:"span",styles:{color:`${_n.color}`}}}}class je extends $e{constructor(_e){super(_e);const rt=this.bindTemplate;this.set("color",void 0),this.set("hasBorder",!1),this.icon='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M16.935 5.328a2 2 0 0 1 0 2.829l-7.778 7.778a2 2 0 0 1-2.829 0L3.5 13.107a1.999 1.999 0 1 1 2.828-2.829l.707.707a1 1 0 0 0 1.414 0l5.658-5.657a2 2 0 0 1 2.828 0z"/><path d="M14.814 6.035 8.448 12.4a1 1 0 0 1-1.414 0l-1.413-1.415A1 1 0 1 0 4.207 12.4l2.829 2.829a1 1 0 0 0 1.414 0l7.778-7.778a1 1 0 1 0-1.414-1.415z"/></svg>',this.extendTemplate({attributes:{style:{backgroundColor:rt.to("color")},class:["ck","ck-color-grid__tile",rt.if("hasBorder","ck-color-table__color-tile_bordered")]}})}render(){super.render(),this.iconView.fillColor="hsl(0, 0%, 100%)"}}var $t=p("./packages/ckeditor5-utils/src/keystrokehandler.ts"),et=p("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/colorgrid/colorgrid.css"),Kt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};U()(et.Z,Kt),et.Z.locals;class kn extends D{constructor(_e,rt){super(_e);const vt=rt&&rt.colorDefinitions||[];this.columns=rt&&rt.columns?rt.columns:5;const Gt={gridTemplateColumns:`repeat( ${this.columns}, 1fr)`};this.set("selectedColor",void 0),this.items=this.createCollection(),this.focusTracker=new w.Rh,this.keystrokes=new $t.Z,this.items.on("add",(We,Ot)=>{Ot.isOn=Ot.color===this.selectedColor}),vt.forEach(We=>{const Ot=new je;Ot.set({color:We.color,label:We.label,tooltip:!0,hasBorder:We.options.hasBorder}),Ot.on("execute",()=>{this.fire("execute",{value:We.color,hasBorder:We.options.hasBorder,label:We.label})}),this.items.add(Ot)}),this.setTemplate({tag:"div",children:this.items,attributes:{class:["ck","ck-color-grid"],style:Gt}}),this.on("change:selectedColor",(We,Ot,Dt)=>{for(const gn of this.items)gn.isOn=gn.color===Dt})}focus(){this.items.length&&this.items.first.focus()}focusLast(){this.items.length&&this.items.last.focus()}render(){super.render();for(const _e of this.items)this.focusTracker.add(_e.element);this.items.on("add",(_e,rt)=>{this.focusTracker.add(rt.element)}),this.items.on("remove",(_e,rt)=>{this.focusTracker.remove(rt.element)}),this.keystrokes.listenTo(this.element),C({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:this.columns,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}}class Tn{constructor(_e){this.editor=_e,this._components=new Map}*names(){for(const _e of this._components.values())yield _e.originalName}add(_e,rt){this._components.set(ht(_e),{callback:rt,originalName:_e})}create(_e){if(!this.has(_e))throw new w.Bb("componentfactory-item-missing",this,{name:_e});return this._components.get(ht(_e)).callback(this.editor.locale)}has(_e){return this._components.has(ht(_e))}}function ht(_n){return String(_n).toLowerCase()}var ot=p("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/dropdown/dropdown.css"),Je={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};U()(ot.Z,Je),ot.Z.locals;class wt extends D{constructor(_e,rt,vt){super(_e);const Gt=this.bindTemplate;this.buttonView=rt,this.panelView=vt,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class",void 0),this.set("id",void 0),this.set("panelPosition","auto"),this.keystrokes=new w.VD,this.focusTracker=new w.Rh,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",Gt.to("class"),Gt.if("isEnabled","ck-disabled",We=>!We)],id:Gt.to("id"),"aria-describedby":Gt.to("ariaDescribedById")},children:[rt,vt]}),rt.extendTemplate({attributes:{class:["ck-dropdown__button"],"data-cke-tooltip-disabled":Gt.to("isOpen")}})}render(){super.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.listenTo(this.buttonView,"open",()=>{this.isOpen=!this.isOpen}),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(rt,vt,Gt)=>{Gt&&(this.panelPosition==="auto"?this.panelView.position=wt._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions}).name:this.panelView.position=this.panelPosition)}),this.keystrokes.listenTo(this.element);const _e=(rt,vt)=>{this.isOpen&&(this.isOpen=!1,vt())};this.keystrokes.set("arrowdown",(rt,vt)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,vt())}),this.keystrokes.set("arrowright",(rt,vt)=>{this.isOpen&&vt()}),this.keystrokes.set("arrowleft",_e),this.keystrokes.set("esc",_e)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:_e,north:rt,southEast:vt,southWest:Gt,northEast:We,northWest:Ot,southMiddleEast:Dt,southMiddleWest:gn,northMiddleEast:Hn,northMiddleWest:nr}=wt.defaultPanelPositions;return this.locale.uiLanguageDirection!=="rtl"?[vt,Gt,Dt,gn,_e,We,Ot,Hn,nr,rt]:[Gt,vt,gn,Dt,_e,Ot,We,nr,Hn,rt]}}wt.defaultPanelPositions={south:(_n,_e)=>({top:_n.bottom,left:_n.left-(_e.width-_n.width)/2,name:"s"}),southEast:_n=>({top:_n.bottom,left:_n.left,name:"se"}),southWest:(_n,_e)=>({top:_n.bottom,left:_n.left-_e.width+_n.width,name:"sw"}),southMiddleEast:(_n,_e)=>({top:_n.bottom,left:_n.left-(_e.width-_n.width)/4,name:"sme"}),southMiddleWest:(_n,_e)=>({top:_n.bottom,left:_n.left-3*(_e.width-_n.width)/4,name:"smw"}),north:(_n,_e)=>({top:_n.top-_e.height,left:_n.left-(_e.width-_n.width)/2,name:"n"}),northEast:(_n,_e)=>({top:_n.top-_e.height,left:_n.left,name:"ne"}),northWest:(_n,_e)=>({top:_n.top-_e.height,left:_n.left-_e.width+_n.width,name:"nw"}),northMiddleEast:(_n,_e)=>({top:_n.top-_e.height,left:_n.left-(_e.width-_n.width)/4,name:"nme"}),northMiddleWest:(_n,_e)=>({top:_n.top-_e.height,left:_n.left-3*(_e.width-_n.width)/4,name:"nmw"})},wt._getOptimalPosition=w.xZ;const ft='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/></svg>';class vn extends $e{constructor(_e){super(_e),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0,"aria-expanded":this.bindTemplate.to("isOn",rt=>String(rt))}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const _e=new mt;return _e.content=ft,_e.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),_e}}var ut=p("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/dropdown/splitbutton.css"),Wt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};U()(ut.Z,Wt),ut.Z.locals;class ae extends D{constructor(_e){super(_e);const rt=this.bindTemplate;this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke",void 0),this.set("withKeystroke",!1),this.set("label",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(),this.arrowView=this._createArrowView(),this.keystrokes=new w.VD,this.focusTracker=new w.Rh,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",rt.to("class"),rt.if("isVisible","ck-hidden",vt=>!vt),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",(_e,rt)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),rt())}),this.keystrokes.set("arrowleft",(_e,rt)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),rt())})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(){const _e=new $e;return _e.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),_e.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),_e.delegate("execute").to(this),_e}_createArrowView(){const _e=new $e,rt=_e.bindTemplate;return _e.icon=ft,_e.extendTemplate({attributes:{class:["ck-splitbutton__arrow"],"data-cke-tooltip-disabled":rt.to("isOn"),"aria-haspopup":!0,"aria-expanded":rt.to("isOn",vt=>String(vt))}}),_e.bind("isEnabled").to(this),_e.bind("label").to(this),_e.bind("tooltip").to(this),_e.delegate("execute").to(this,"open"),_e}}class ne extends D{constructor(_e){super(_e);const rt=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",rt.to("position",vt=>`ck-dropdown__panel_${vt}`),rt.if("isVisible","ck-dropdown__panel-visible")]},children:this.children,on:{selectstart:rt.to(vt=>vt.preventDefault())}})}focus(){if(this.children.length){const _e=this.children.first;typeof _e.focus=="function"?_e.focus():(0,w.KE)("ui-dropdown-panel-focus-child-missing-focus",{childView:this.children.first,dropdownPanel:this})}}focusLast(){if(this.children.length){const _e=this.children.last;typeof _e.focusLast=="function"?_e.focusLast():_e.focus()}}}class ge{constructor(_e){if(this.focusables=_e.focusables,this.focusTracker=_e.focusTracker,this.keystrokeHandler=_e.keystrokeHandler,this.actions=_e.actions,_e.actions&&_e.keystrokeHandler)for(const rt in _e.actions){let vt=_e.actions[rt];typeof vt=="string"&&(vt=[vt]);for(const Gt of vt)_e.keystrokeHandler.set(Gt,(We,Ot)=>{this[rt](),Ot()})}}get first(){return this.focusables.find(ye)||null}get last(){return this.focusables.filter(ye).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let _e=null;return this.focusTracker.focusedElement===null?null:(this.focusables.find((rt,vt)=>{const Gt=rt.element===this.focusTracker.focusedElement;return Gt&&(_e=vt),Gt}),_e)}focusFirst(){this._focus(this.first)}focusLast(){this._focus(this.last)}focusNext(){this._focus(this.next)}focusPrevious(){this._focus(this.previous)}_focus(_e){_e&&_e.focus()}_getFocusableItem(_e){const rt=this.current,vt=this.focusables.length;if(!vt)return null;if(rt===null)return this[_e===1?"first":"last"];let Gt=(rt+vt+_e)%vt;do{const We=this.focusables.get(Gt);if(ye(We))return We;Gt=(Gt+vt+_e)%vt}while(Gt!==rt);return null}}function ye(_n){return!(!_n.focus||!(0,w.pn)(_n.element))}class Xe extends D{constructor(_e){super(_e),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class Ze extends D{constructor(_e){super(_e),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}function lt(_n){return Array.isArray(_n)?{items:_n,removeItems:[]}:_n?Object.assign({items:[],removeItems:[]},_n):{items:[],removeItems:[]}}var _t=p("./packages/ckeditor5-core/src/index.ts"),zt=p("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/toolbar/toolbar.css"),Vt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};U()(zt.Z,Vt),zt.Z.locals;const{threeVerticalDots:sn}=_t.ci,yn={alignLeft:_t.ci.alignLeft,bold:_t.ci.bold,importExport:_t.ci.importExport,paragraph:_t.ci.paragraph,plus:_t.ci.plus,text:_t.ci.text,threeVerticalDots:_t.ci.threeVerticalDots};class dr extends D{constructor(_e,rt){super(_e);const vt=this.bindTemplate,Gt=this.t;this.options=rt||{},this.set("ariaLabel",Gt("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new w.Rh,this.keystrokes=new w.VD,this.set("class",void 0),this.set("isCompact",!1),this.itemsView=new hr(_e),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const We=_e.uiLanguageDirection==="rtl";this._focusCycler=new ge({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[We?"arrowright":"arrowleft","arrowup"],focusNext:[We?"arrowleft":"arrowright","arrowdown"]}});const Ot=["ck","ck-toolbar",vt.to("class"),vt.if("isCompact","ck-toolbar_compact")];var Dt;this.options.shouldGroupWhenFull&&this.options.isFloating&&Ot.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:Ot,role:"toolbar","aria-label":vt.to("ariaLabel"),style:{maxWidth:vt.to("maxWidth")}},children:this.children,on:{mousedown:(Dt=this,Dt.bindTemplate.to(gn=>{gn.target===Dt.element&&gn.preventDefault()}))}}),this._behavior=this.options.shouldGroupWhenFull?new rr(this):new Mr(this)}render(){super.render();for(const _e of this.items)this.focusTracker.add(_e.element);this.items.on("add",(_e,rt)=>{this.focusTracker.add(rt.element)}),this.items.on("remove",(_e,rt)=>{this.focusTracker.remove(rt.element)}),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(_e,rt,vt){this.items.addMany(this._buildItemsFromConfig(_e,rt,vt))}_buildItemsFromConfig(_e,rt,vt){const Gt=lt(_e),We=vt||Gt.removeItems;return this._cleanItemsConfiguration(Gt.items,rt,We).map(Ot=>(0,T.Z)(Ot)?this._createNestedToolbarDropdown(Ot,rt,We):Ot==="|"?new Xe:Ot==="-"?new Ze:rt.create(Ot)).filter(Ot=>!!Ot)}_cleanItemsConfiguration(_e,rt,vt){const Gt=_e.filter((We,Ot,Dt)=>We==="|"||vt.indexOf(We)===-1&&(We==="-"?!this.options.shouldGroupWhenFull||((0,w.KE)("toolbarview-line-break-ignored-when-grouping-items",Dt),!1):!(!(0,T.Z)(We)&&!rt.has(We))||((0,w.KE)("toolbarview-item-unavailable",{item:We}),!1)));return this._cleanSeparatorsAndLineBreaks(Gt)}_cleanSeparatorsAndLineBreaks(_e){const rt=Ot=>Ot!=="-"&&Ot!=="|",vt=_e.length,Gt=_e.findIndex(rt);if(Gt===-1)return[];const We=vt-_e.slice().reverse().findIndex(rt);return _e.slice(Gt,We).filter((Ot,Dt,gn)=>rt(Ot)?!0:!(Dt>0&&gn[Dt-1]===Ot))}_createNestedToolbarDropdown(_e,rt,vt){let{label:Gt,icon:We,items:Ot,tooltip:Dt=!0,withText:gn=!1}=_e;if(Ot=this._cleanItemsConfiguration(Ot,rt,vt),!Ot.length)return null;const Hn=Yn(this.locale);return Gt||(0,w.KE)("toolbarview-nested-toolbar-dropdown-missing-label",_e),Hn.class="ck-toolbar__nested-toolbar-dropdown",Hn.buttonView.set({label:Gt,tooltip:Dt,withText:!!gn}),We!==!1?Hn.buttonView.icon=yn[We]||We||sn:Hn.buttonView.withText=!0,on(Hn,()=>Hn.toolbarView._buildItemsFromConfig(Ot,rt,vt)),Hn}}class hr extends D{constructor(_e){super(_e),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class Mr{constructor(_e){const rt=_e.bindTemplate;_e.set("isVertical",!1),_e.itemsView.children.bindTo(_e.items).using(vt=>vt),_e.focusables.bindTo(_e.items).using(vt=>vt),_e.extendTemplate({attributes:{class:[rt.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class rr{constructor(_e){this.view=_e,this.viewChildren=_e.children,this.viewFocusables=_e.focusables,this.viewItemsView=_e.itemsView,this.viewFocusTracker=_e.focusTracker,this.viewLocale=_e.locale,this.ungroupedItems=_e.createCollection(),this.groupedItems=_e.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,_e.itemsView.children.bindTo(this.ungroupedItems).using(rt=>rt),this.ungroupedItems.on("change",this._updateFocusCycleableItems.bind(this)),_e.children.on("change",this._updateFocusCycleableItems.bind(this)),_e.items.on("change",(rt,vt)=>{const Gt=vt.index,We=Array.from(vt.added);for(const Ot of vt.removed)Gt>=this.ungroupedItems.length?this.groupedItems.remove(Ot):this.ungroupedItems.remove(Ot);for(let Ot=Gt;Ot<Gt+We.length;Ot++){const Dt=We[Ot-Gt];Ot>this.ungroupedItems.length?this.groupedItems.add(Dt,Ot-this.ungroupedItems.length):this.ungroupedItems.add(Dt,Ot)}this._updateGrouping()}),_e.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(_e){this.viewElement=_e.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(_e)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!(0,w.pn)(this.viewElement))return void(this.shouldUpdateGroupingOnNextResize=!0);const _e=this.groupedItems.length;let rt;for(;this._areItemsOverflowing;)this._groupLastItem(),rt=!0;if(!rt&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==_e&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const _e=this.viewElement,rt=this.viewLocale.uiLanguageDirection,vt=new w.UL(_e.lastChild),Gt=new w.UL(_e);if(!this.cachedPadding){const We=w.CO.window.getComputedStyle(_e),Ot=rt==="ltr"?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(We[Ot])}return rt==="ltr"?vt.right>Gt.right-this.cachedPadding:vt.left<Gt.left+this.cachedPadding}_enableGroupingOnResize(){let _e;this.resizeObserver=new w.do(this.viewElement,rt=>{_e&&_e===rt.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),_e=rt.contentRect.width)}),this._updateGrouping()}_enableGroupingOnMaxWidthChange(_e){_e.on("change:maxWidth",()=>{this._updateGrouping()})}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new Xe),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const _e=this.viewLocale,rt=_e.t,vt=Yn(_e);return vt.class="ck-toolbar__grouped-dropdown",vt.panelPosition=_e.uiLanguageDirection==="ltr"?"sw":"se",on(vt,this.groupedItems),vt.buttonView.set({label:rt("Show more items"),tooltip:!0,tooltipPosition:_e.uiLanguageDirection==="rtl"?"se":"sw",icon:sn}),vt}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map(_e=>{this.viewFocusables.add(_e)}),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}var Cr=p("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/list/list.css"),Ur={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};U()(Cr.Z,Ur),Cr.Z.locals;class $r extends D{constructor(_e){super(_e);const rt=this.bindTemplate;this.items=this.createCollection(),this.focusTracker=new w.Rh,this.keystrokes=new w.VD,this._focusCycler=new ge({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.set("ariaLabel",void 0),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"],"aria-label":rt.to("ariaLabel")},children:this.items})}render(){super.render();for(const _e of this.items)this.focusTracker.add(_e.element);this.items.on("add",(_e,rt)=>{this.focusTracker.add(rt.element)}),this.items.on("remove",(_e,rt)=>{this.focusTracker.remove(rt.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}class li extends D{constructor(_e){super(_e);const rt=this.bindTemplate;this.set("isVisible",!0),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item",rt.if("isVisible","ck-hidden",vt=>!vt)]},children:this.children})}focus(){this.children.first.focus()}}class ri extends D{constructor(_e){super(_e),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}var Bt=p("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/dropdown/toolbardropdown.css"),Et={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};U()(Bt.Z,Et),Bt.Z.locals;var bn=p("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/dropdown/listdropdown.css"),cn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};U()(bn.Z,cn),bn.Z.locals;function Yn(_n,_e=vn){const rt=new _e(_n),vt=new ne(_n),Gt=new wt(_n,rt,vt);return rt.bind("isEnabled").to(Gt),rt instanceof ae?rt.arrowView.bind("isOn").to(Gt,"isOpen"):rt.bind("isOn").to(Gt,"isOpen"),function(We){(function(Ot){Ot.on("render",()=>{d({emitter:Ot,activator:()=>Ot.isOpen,callback:()=>{Ot.isOpen=!1},contextElements:[Ot.element]})})})(We),function(Ot){Ot.on("execute",Dt=>{Dt.source instanceof It||(Ot.isOpen=!1)})}(We),function(Ot){Ot.focusTracker.on("change:isFocused",(Dt,gn,Hn)=>{Ot.isOpen&&!Hn&&(Ot.isOpen=!1)})}(We),function(Ot){Ot.keystrokes.set("arrowdown",(Dt,gn)=>{Ot.isOpen&&(Ot.panelView.focus(),gn())}),Ot.keystrokes.set("arrowup",(Dt,gn)=>{Ot.isOpen&&(Ot.panelView.focusLast(),gn())})}(We),function(Ot){Ot.on("change:isOpen",(Dt,gn,Hn)=>{if(Hn)return;const nr=Ot.panelView.element;nr&&nr.contains(w.CO.document.activeElement)&&Ot.buttonView.focus()})}(We),function(Ot){Ot.on("change:isOpen",(Dt,gn,Hn)=>{Hn&&Ot.panelView.focus()},{priority:"low"})}(We)}(Gt),Gt}function on(_n,_e,rt={}){_n.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),_n.isOpen?ze(_n,_e,rt):_n.once("change:isOpen",()=>ze(_n,_e,rt),{priority:"highest"}),rt.enableActiveItemFocusOnDropdownOpen&&Mn(_n,()=>_n.toolbarView.items.find(vt=>vt.isOn))}function ze(_n,_e,rt){const vt=_n.locale,Gt=vt.t,We=_n.toolbarView=new dr(vt),Ot=typeof _e=="function"?_e():_e;We.ariaLabel=rt.ariaLabel||Gt("Dropdown toolbar"),rt.maxWidth&&(We.maxWidth=rt.maxWidth),rt.class&&(We.class=rt.class),rt.isCompact&&(We.isCompact=rt.isCompact),rt.isVertical&&(We.isVertical=!0),Ot instanceof I?We.items.bindTo(Ot).using(Dt=>Dt):We.items.addMany(Ot),_n.panelView.children.add(We),We.items.delegate("execute").to(_n)}function Le(_n,_e,rt={}){_n.isOpen?Ht(_n,_e,rt):_n.once("change:isOpen",()=>Ht(_n,_e,rt),{priority:"highest"}),Mn(_n,()=>_n.listView.items.find(vt=>vt instanceof li&&vt.children.first.isOn))}function Ht(_n,_e,rt){const vt=_n.locale,Gt=_n.listView=new $r(vt),We=typeof _e=="function"?_e():_e;Gt.ariaLabel=rt.ariaLabel,Gt.items.bindTo(We).using(Ot=>{if(Ot.type==="separator")return new ri(vt);if(Ot.type==="button"||Ot.type==="switchbutton"){const Dt=new li(vt);let gn;return gn=Ot.type==="button"?new $e(vt):new It(vt),gn.bind(...Object.keys(Ot.model)).to(Ot.model),gn.delegate("execute").to(Dt),Dt.children.add(gn),Dt}return null}),_n.panelView.children.add(Gt),Gt.items.delegate("execute").to(_n)}function Mn(_n,_e){_n.on("change:isOpen",()=>{if(!_n.isOpen)return;const rt=_e();rt&&(typeof rt.focus=="function"?rt.focus():(0,w.KE)("ui-dropdown-focus-child-on-open-child-missing-focus",{view:rt}))},{priority:w.tA.low-10})}var tr=p("./node_modules/lodash-es/isElement.js"),Sr=p("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/panel/balloonpanel.css"),Xr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};U()(Sr.Z,Xr),Sr.Z.locals;const gi=(0,w.nn)("px"),Pi=w.CO.document.body;class ii extends D{constructor(_e){super(_e);const rt=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class",void 0),this._pinWhenIsVisibleCallback=null,this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",rt.to("position",vt=>`ck-balloon-panel_${vt}`),rt.if("isVisible","ck-balloon-panel_visible"),rt.if("withArrow","ck-balloon-panel_with-arrow"),rt.to("class")],style:{top:rt.to("top",gi),left:rt.to("left",gi)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(_e){this.show();const rt=ii.defaultPositions,vt=Object.assign({},{element:this.element,positions:[rt.southArrowNorth,rt.southArrowNorthMiddleWest,rt.southArrowNorthMiddleEast,rt.southArrowNorthWest,rt.southArrowNorthEast,rt.northArrowSouth,rt.northArrowSouthMiddleWest,rt.northArrowSouthMiddleEast,rt.northArrowSouthWest,rt.northArrowSouthEast,rt.viewportStickyNorth],limiter:Pi,fitInViewport:!0},_e),Gt=ii._getOptimalPosition(vt),We=parseInt(Gt.left),Ot=parseInt(Gt.top),Dt=Gt.name,gn=Gt.config||{},{withArrow:Hn=!0}=gn;this.top=Ot,this.left=We,this.position=Dt,this.withArrow=Hn}pin(_e){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(_e):this._stopPinning()},this._startPinning(_e),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(_e){this.attachTo(_e);const rt=vr(_e.target),vt=_e.limiter?vr(_e.limiter):Pi;this.listenTo(w.CO.document,"scroll",(Gt,We)=>{const Ot=We.target,Dt=rt&&Ot.contains(rt),gn=vt&&Ot.contains(vt);!Dt&&!gn&&rt&&vt||this.attachTo(_e)},{useCapture:!0}),this.listenTo(w.CO.window,"resize",()=>{this.attachTo(_e)})}_stopPinning(){this.stopListening(w.CO.document,"scroll"),this.stopListening(w.CO.window,"resize")}}function vr(_n){return(0,tr.Z)(_n)?_n:(0,w.bR)(_n)?_n.commonAncestorContainer:typeof _n=="function"?vr(_n()):null}function at(_n={}){const{sideOffset:_e=ii.arrowSideOffset,heightOffset:rt=ii.arrowHeightOffset,stickyVerticalOffset:vt=ii.stickyVerticalOffset,config:Gt}=_n;return{northWestArrowSouthWest:(Dt,gn)=>({top:We(Dt,gn),left:Dt.left-_e,name:"arrow_sw",...Gt&&{config:Gt}}),northWestArrowSouthMiddleWest:(Dt,gn)=>({top:We(Dt,gn),left:Dt.left-.25*gn.width-_e,name:"arrow_smw",...Gt&&{config:Gt}}),northWestArrowSouth:(Dt,gn)=>({top:We(Dt,gn),left:Dt.left-gn.width/2,name:"arrow_s",...Gt&&{config:Gt}}),northWestArrowSouthMiddleEast:(Dt,gn)=>({top:We(Dt,gn),left:Dt.left-.75*gn.width+_e,name:"arrow_sme",...Gt&&{config:Gt}}),northWestArrowSouthEast:(Dt,gn)=>({top:We(Dt,gn),left:Dt.left-gn.width+_e,name:"arrow_se",...Gt&&{config:Gt}}),northArrowSouthWest:(Dt,gn)=>({top:We(Dt,gn),left:Dt.left+Dt.width/2-_e,name:"arrow_sw",...Gt&&{config:Gt}}),northArrowSouthMiddleWest:(Dt,gn)=>({top:We(Dt,gn),left:Dt.left+Dt.width/2-.25*gn.width-_e,name:"arrow_smw",...Gt&&{config:Gt}}),northArrowSouth:(Dt,gn)=>({top:We(Dt,gn),left:Dt.left+Dt.width/2-gn.width/2,name:"arrow_s",...Gt&&{config:Gt}}),northArrowSouthMiddleEast:(Dt,gn)=>({top:We(Dt,gn),left:Dt.left+Dt.width/2-.75*gn.width+_e,name:"arrow_sme",...Gt&&{config:Gt}}),northArrowSouthEast:(Dt,gn)=>({top:We(Dt,gn),left:Dt.left+Dt.width/2-gn.width+_e,name:"arrow_se",...Gt&&{config:Gt}}),northEastArrowSouthWest:(Dt,gn)=>({top:We(Dt,gn),left:Dt.right-_e,name:"arrow_sw",...Gt&&{config:Gt}}),northEastArrowSouthMiddleWest:(Dt,gn)=>({top:We(Dt,gn),left:Dt.right-.25*gn.width-_e,name:"arrow_smw",...Gt&&{config:Gt}}),northEastArrowSouth:(Dt,gn)=>({top:We(Dt,gn),left:Dt.right-gn.width/2,name:"arrow_s",...Gt&&{config:Gt}}),northEastArrowSouthMiddleEast:(Dt,gn)=>({top:We(Dt,gn),left:Dt.right-.75*gn.width+_e,name:"arrow_sme",...Gt&&{config:Gt}}),northEastArrowSouthEast:(Dt,gn)=>({top:We(Dt,gn),left:Dt.right-gn.width+_e,name:"arrow_se",...Gt&&{config:Gt}}),southWestArrowNorthWest:Dt=>({top:Ot(Dt),left:Dt.left-_e,name:"arrow_nw",...Gt&&{config:Gt}}),southWestArrowNorthMiddleWest:(Dt,gn)=>({top:Ot(Dt),left:Dt.left-.25*gn.width-_e,name:"arrow_nmw",...Gt&&{config:Gt}}),southWestArrowNorth:(Dt,gn)=>({top:Ot(Dt),left:Dt.left-gn.width/2,name:"arrow_n",...Gt&&{config:Gt}}),southWestArrowNorthMiddleEast:(Dt,gn)=>({top:Ot(Dt),left:Dt.left-.75*gn.width+_e,name:"arrow_nme",...Gt&&{config:Gt}}),southWestArrowNorthEast:(Dt,gn)=>({top:Ot(Dt),left:Dt.left-gn.width+_e,name:"arrow_ne",...Gt&&{config:Gt}}),southArrowNorthWest:Dt=>({top:Ot(Dt),left:Dt.left+Dt.width/2-_e,name:"arrow_nw",...Gt&&{config:Gt}}),southArrowNorthMiddleWest:(Dt,gn)=>({top:Ot(Dt),left:Dt.left+Dt.width/2-.25*gn.width-_e,name:"arrow_nmw",...Gt&&{config:Gt}}),southArrowNorth:(Dt,gn)=>({top:Ot(Dt),left:Dt.left+Dt.width/2-gn.width/2,name:"arrow_n",...Gt&&{config:Gt}}),southArrowNorthMiddleEast:(Dt,gn)=>({top:Ot(Dt),left:Dt.left+Dt.width/2-.75*gn.width+_e,name:"arrow_nme",...Gt&&{config:Gt}}),southArrowNorthEast:(Dt,gn)=>({top:Ot(Dt),left:Dt.left+Dt.width/2-gn.width+_e,name:"arrow_ne",...Gt&&{config:Gt}}),southEastArrowNorthWest:Dt=>({top:Ot(Dt),left:Dt.right-_e,name:"arrow_nw",...Gt&&{config:Gt}}),southEastArrowNorthMiddleWest:(Dt,gn)=>({top:Ot(Dt),left:Dt.right-.25*gn.width-_e,name:"arrow_nmw",...Gt&&{config:Gt}}),southEastArrowNorth:(Dt,gn)=>({top:Ot(Dt),left:Dt.right-gn.width/2,name:"arrow_n",...Gt&&{config:Gt}}),southEastArrowNorthMiddleEast:(Dt,gn)=>({top:Ot(Dt),left:Dt.right-.75*gn.width+_e,name:"arrow_nme",...Gt&&{config:Gt}}),southEastArrowNorthEast:(Dt,gn)=>({top:Ot(Dt),left:Dt.right-gn.width+_e,name:"arrow_ne",...Gt&&{config:Gt}}),westArrowEast:(Dt,gn)=>({top:Dt.top+Dt.height/2-gn.height/2,left:Dt.left-gn.width-rt,name:"arrow_e",...Gt&&{config:Gt}}),eastArrowWest:(Dt,gn)=>({top:Dt.top+Dt.height/2-gn.height/2,left:Dt.right+rt,name:"arrow_w",...Gt&&{config:Gt}}),viewportStickyNorth:(Dt,gn,Hn)=>Dt.getIntersection(Hn)?{top:Hn.top+vt,left:Dt.left+Dt.width/2-gn.width/2,name:"arrowless",config:{withArrow:!1,...Gt}}:null};function We(Dt,gn){return Dt.top-gn.height-rt}function Ot(Dt){return Dt.bottom+rt}}ii.arrowSideOffset=25,ii.arrowHeightOffset=10,ii.stickyVerticalOffset=20,ii._getOptimalPosition=w.xZ,ii.defaultPositions=at();var it=p("./node_modules/lodash-es/debounce.js"),Re=p("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/tooltip/tooltip.css"),ke={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};U()(Re.Z,ke),Re.Z.locals;const Pe="ck-tooltip";class Te extends(0,w.Xu)(){constructor(_e){if(super(),Te._editors.add(_e),Te._instance)return Te._instance;Te._instance=this,this.tooltipTextView=new D(_e.locale),this.tooltipTextView.set("text",""),this.tooltipTextView.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:this.tooltipTextView.bindTemplate.to("text")}]}),this.balloonPanelView=new ii(_e.locale),this.balloonPanelView.class=Pe,this.balloonPanelView.content.add(this.tooltipTextView),this._resizeObserver=null,this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._pinTooltipDebounced=(0,it.Z)(this._pinTooltip,600),this.listenTo(w.CO.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(w.CO.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(w.CO.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(w.CO.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(w.CO.document,"scroll",this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}destroy(_e){const rt=_e.ui.view&&_e.ui.view.body;Te._editors.delete(_e),this.stopListening(_e.ui),rt&&rt.has(this.balloonPanelView)&&rt.remove(this.balloonPanelView),Te._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),Te._instance=null)}static getPositioningFunctions(_e){const rt=Te.defaultBalloonPositions;return{s:[rt.southArrowNorth,rt.southArrowNorthEast,rt.southArrowNorthWest],n:[rt.northArrowSouth],e:[rt.eastArrowWest],w:[rt.westArrowEast],sw:[rt.southArrowNorthEast],se:[rt.southArrowNorthWest]}[_e]}_onEnterOrFocus(_e,{target:rt}){const vt=Mt(rt);var Gt;vt&&vt!==this._currentElementWithTooltip&&(this._unpinTooltip(),this._pinTooltipDebounced(vt,{text:(Gt=vt).dataset.ckeTooltipText,position:Gt.dataset.ckeTooltipPosition||"s",cssClass:Gt.dataset.ckeTooltipClass||""}))}_onLeaveOrBlur(_e,{target:rt,relatedTarget:vt}){if(_e.name==="mouseleave"){if(!(0,tr.Z)(rt)||this._currentElementWithTooltip&&rt!==this._currentElementWithTooltip)return;const Gt=Mt(rt),We=Mt(vt);Gt&&Gt!==We&&this._unpinTooltip()}else{if(this._currentElementWithTooltip&&rt!==this._currentElementWithTooltip)return;this._unpinTooltip()}}_onScroll(_e,{target:rt}){this._currentElementWithTooltip&&(rt.contains(this.balloonPanelView.element)&&rt.contains(this._currentElementWithTooltip)||this._unpinTooltip())}_pinTooltip(_e,{text:rt,position:vt,cssClass:Gt}){const We=(0,w.Ps)(Te._editors.values()).ui.view.body;We.has(this.balloonPanelView)||We.add(this.balloonPanelView),this.tooltipTextView.text=rt,this.balloonPanelView.pin({target:_e,positions:Te.getPositioningFunctions(vt)}),this._resizeObserver=new w.do(_e,()=>{(0,w.pn)(_e)||this._unpinTooltip()}),this.balloonPanelView.class=[Pe,Gt].filter(Ot=>Ot).join(" ");for(const Ot of Te._editors)this.listenTo(Ot.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"});this._currentElementWithTooltip=_e,this._currentTooltipPosition=vt}_unpinTooltip(){this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();for(const _e of Te._editors)this.stopListening(_e.ui,"update");this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver&&this._resizeObserver.destroy()}_updateTooltipPosition(){(0,w.pn)(this._currentElementWithTooltip)?this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:Te.getPositioningFunctions(this._currentTooltipPosition)}):this._unpinTooltip()}}function Mt(_n){return(0,tr.Z)(_n)?_n.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}Te.defaultBalloonPositions=at({heightOffset:5,sideOffset:13}),Te._editors=new Set,Te._instance=null;class qt extends(0,w.Re)(){constructor(_e){super(),this.editor=_e,this.componentFactory=new Tn(_e),this.focusTracker=new w.Rh,this.tooltipManager=new Te(_e),this.set("viewportOffset",this._readViewportOffsetFromConfig()),this.isReady=!1,this.once("ready",()=>{this.isReady=!0}),this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[],this.listenTo(_e.editing.view.document,"layoutChanged",()=>this.update()),this._initFocusTracking()}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy(),this.tooltipManager.destroy(this.editor);for(const _e of this._editableElementsMap.values())_e.ckeditorInstance=null;this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[]}setEditableElement(_e,rt){this._editableElementsMap.set(_e,rt),rt.ckeditorInstance||(rt.ckeditorInstance=this.editor),this.focusTracker.add(rt);const vt=()=>{this.editor.editing.view.getDomRoot(_e)||this.editor.keystrokes.listenTo(rt)};this.isReady?vt():this.once("ready",vt)}getEditableElement(_e="main"){return this._editableElementsMap.get(_e)}getEditableElementsNames(){return this._editableElementsMap.keys()}addToolbar(_e,rt={}){_e.isRendered?(this.focusTracker.add(_e.element),this.editor.keystrokes.listenTo(_e.element)):_e.once("render",()=>{this.focusTracker.add(_e.element),this.editor.keystrokes.listenTo(_e.element)}),this._focusableToolbarDefinitions.push({toolbarView:_e,options:rt})}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}_readViewportOffsetFromConfig(){const _e=this.editor,rt=_e.config.get("ui.viewportOffset");if(rt)return rt;const vt=_e.config.get("toolbar.viewportTopOffset");return vt?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:vt}):{top:0}}_initFocusTracking(){const _e=this.editor,rt=_e.editing.view;let vt,Gt;_e.keystrokes.set("Alt+F10",(We,Ot)=>{const Dt=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(Dt)&&!Array.from(rt.domRoots.values()).includes(Dt)&&(vt=Dt);const gn=this._getCurrentFocusedToolbarDefinition();gn&&Gt||(Gt=this._getFocusableCandidateToolbarDefinitions());for(let Hn=0;Hn<Gt.length;Hn++){const nr=Gt.shift();if(Gt.push(nr),nr!==gn&&this._focusFocusableCandidateToolbar(nr)){gn&&gn.options.afterBlur&&gn.options.afterBlur();break}}Ot()}),_e.keystrokes.set("Esc",(We,Ot)=>{const Dt=this._getCurrentFocusedToolbarDefinition();Dt&&(vt?(vt.focus(),vt=null):_e.editing.view.focus(),Dt.options.afterBlur&&Dt.options.afterBlur(),Ot())})}_getFocusableCandidateToolbarDefinitions(){const _e=[];for(const rt of this._focusableToolbarDefinitions){const{toolbarView:vt,options:Gt}=rt;((0,w.pn)(vt.element)||Gt.beforeFocus)&&_e.push(rt)}return _e.sort((rt,vt)=>Rn(rt)-Rn(vt)),_e}_getCurrentFocusedToolbarDefinition(){for(const _e of this._focusableToolbarDefinitions)if(_e.toolbarView.element&&_e.toolbarView.element.contains(this.focusTracker.focusedElement))return _e;return null}_focusFocusableCandidateToolbar(_e){const{toolbarView:rt,options:{beforeFocus:vt}}=_e;return vt&&vt(),!!(0,w.pn)(rt.element)&&(rt.focus(),!0)}}function Rn(_n){const{toolbarView:_e,options:rt}=_n;let vt=10;return(0,w.pn)(_e.element)&&vt--,rt.isContextual&&vt--,vt}var Qn=p("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/editorui/editorui.css"),ur={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};U()(Qn.Z,ur),Qn.Z.locals;class On extends D{constructor(_e){super(_e),this.body=new Ce(_e)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}var ct=p("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/label/label.css"),Zt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};U()(ct.Z,Zt),ct.Z.locals;class Cn extends D{constructor(_e){super(_e),this.set("text",void 0),this.set("for",void 0),this.id=`ck-editor__label_${(0,w.hQ)()}`;const rt=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:rt.to("for")},children:[{text:rt.to("text")}]})}}class Pn extends On{constructor(_e){super(_e),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:_e.uiLanguageDirection,lang:_e.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const _e=this.t,rt=new Cn;return rt.text=_e("Rich Text Editor"),rt.extendTemplate({attributes:{class:"ck-voice-label"}}),rt}}class Kn extends D{constructor(_e,rt,vt){super(_e),this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:_e.contentLanguage,dir:_e.contentLanguageDirection}}),this.name=null,this.set("isFocused",!1),this._editableElement=vt,this._hasExternalElement=!!this._editableElement,this._editingView=rt}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",()=>this._updateIsFocusedClasses()),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}_updateIsFocusedClasses(){const _e=this._editingView;function rt(vt){_e.change(Gt=>{const We=_e.document.getRoot(vt.name);Gt.addClass(vt.isFocused?"ck-focused":"ck-blurred",We),Gt.removeClass(vt.isFocused?"ck-blurred":"ck-focused",We)})}_e.isRenderingInProgress?function vt(Gt){_e.once("change:isRenderingInProgress",(We,Ot,Dt)=>{Dt?vt(Gt):rt(Gt)})}(this):rt(this)}}class Rt extends Kn{constructor(_e,rt,vt,Gt={}){super(_e,rt,vt);const We=_e.t;this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),this._generateLabel=Gt.label||(()=>We("Editor editing area: %0",this.name))}render(){super.render();const _e=this._editingView;_e.change(rt=>{const vt=_e.document.getRoot(this.name);rt.setAttribute("aria-label",this._generateLabel(this),vt)})}}var Ke=p("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/formheader/formheader.css"),Oe={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};U()(Ke.Z,Oe),Ke.Z.locals;class Ge extends D{constructor(_e,rt={}){super(_e);const vt=this.bindTemplate;this.set("label",rt.label||""),this.set("class",rt.class||null),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-form__header",vt.to("class")]},children:this.children});const Gt=new D(_e);Gt.setTemplate({tag:"h2",attributes:{class:["ck","ck-form__header__label"]},children:[{text:vt.to("label")}]}),this.children.add(Gt)}}var Ft=p("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/input/input.css"),Qt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};U()(Ft.Z,Qt),Ft.Z.locals;class wn extends D{constructor(_e){super(_e),this.set("value",void 0),this.set("id",void 0),this.set("placeholder",void 0),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById",void 0),this.focusTracker=new w.Rh,this.bind("isFocused").to(this.focusTracker),this.set("isEmpty",!0),this.set("inputMode","text");const rt=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck","ck-input",rt.if("isFocused","ck-input_focused"),rt.if("isEmpty","ck-input-text_empty"),rt.if("hasError","ck-error")],id:rt.to("id"),placeholder:rt.to("placeholder"),readonly:rt.to("isReadOnly"),inputmode:rt.to("inputMode"),"aria-invalid":rt.if("hasError",!0),"aria-describedby":rt.to("ariaDescribedById")},on:{input:rt.to((...vt)=>{this.fire("input",...vt),this._updateIsEmpty()}),change:rt.to(this._updateIsEmpty.bind(this))}})}render(){super.render(),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",(_e,rt,vt)=>{this._setDomElementValue(vt),this._updateIsEmpty()})}destroy(){super.destroy(),this.focusTracker.destroy()}select(){this.element.select()}focus(){this.element.focus()}_updateIsEmpty(){this.isEmpty=!this.element.value}_setDomElementValue(_e){this.element.value=_e||_e===0?_e:""}}class Gn extends wn{constructor(_e){super(_e),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}class ir extends wn{constructor(_e,{min:rt,max:vt,step:Gt}={}){super(_e);const We=this.bindTemplate;this.set("min",rt),this.set("max",vt),this.set("step",Gt),this.extendTemplate({attributes:{type:"number",class:["ck-input-number"],min:We.to("min"),max:We.to("max"),step:We.to("step")}})}}class br extends D{constructor(_e){super(_e);const rt=this.bindTemplate;this.setTemplate({tag:"iframe",attributes:{class:["ck","ck-reset_all"],sandbox:"allow-same-origin allow-scripts"},on:{load:rt.to("loaded")}})}render(){return new Promise(_e=>(this.on("loaded",_e),super.render()))}}var fr=p("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css"),Er={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};U()(fr.Z,Er),fr.Z.locals;class Or extends D{constructor(_e,rt){super(_e);const vt=`ck-labeled-field-view-${(0,w.hQ)()}`,Gt=`ck-labeled-field-view-status-${(0,w.hQ)()}`;this.fieldView=rt(this,vt,Gt),this.set("label",void 0),this.set("isEnabled",!0),this.set("isEmpty",!0),this.set("isFocused",!1),this.set("errorText",null),this.set("infoText",null),this.set("class",void 0),this.set("placeholder",void 0),this.labelView=this._createLabelView(vt),this.statusView=this._createStatusView(Gt),this.fieldWrapperChildren=this.createCollection([this.fieldView,this.labelView]),this.bind("_statusText").to(this,"errorText",this,"infoText",(Ot,Dt)=>Ot||Dt);const We=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",We.to("class"),We.if("isEnabled","ck-disabled",Ot=>!Ot),We.if("isEmpty","ck-labeled-field-view_empty"),We.if("isFocused","ck-labeled-field-view_focused"),We.if("placeholder","ck-labeled-field-view_placeholder"),We.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:this.fieldWrapperChildren},this.statusView]})}_createLabelView(_e){const rt=new Cn(this.locale);return rt.for=_e,rt.bind("text").to(this,"label"),rt}_createStatusView(_e){const rt=new D(this.locale),vt=this.bindTemplate;return rt.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",vt.if("errorText","ck-labeled-field-view__status_error"),vt.if("_statusText","ck-hidden",Gt=>!Gt)],id:_e,role:vt.if("errorText","alert")},children:[{text:vt.to("_statusText")}]}),rt}focus(){this.fieldView.focus()}}function oi(_n,_e,rt){const vt=new Gn(_n.locale);return vt.set({id:_e,ariaDescribedById:rt}),vt.bind("isReadOnly").to(_n,"isEnabled",Gt=>!Gt),vt.bind("hasError").to(_n,"errorText",Gt=>!!Gt),vt.on("input",()=>{_n.errorText=null}),_n.bind("isEmpty","isFocused","placeholder").to(vt),vt}function si(_n,_e,rt){const vt=new ir(_n.locale);return vt.set({id:_e,ariaDescribedById:rt,inputMode:"numeric"}),vt.bind("isReadOnly").to(_n,"isEnabled",Gt=>!Gt),vt.bind("hasError").to(_n,"errorText",Gt=>!!Gt),vt.on("input",()=>{_n.errorText=null}),_n.bind("isEmpty","isFocused","placeholder").to(vt),vt}function Fi(_n,_e,rt){const vt=Yn(_n.locale);return vt.set({id:_e,ariaDescribedById:rt}),vt.bind("isEnabled").to(_n),vt}class $i extends _t.eO{static get pluginName(){return"Notification"}init(){this.on("show:warning",(_e,rt)=>{window.alert(rt.message)},{priority:"lowest"})}showSuccess(_e,rt={}){this._showNotification({message:_e,type:"success",namespace:rt.namespace,title:rt.title})}showInfo(_e,rt={}){this._showNotification({message:_e,type:"info",namespace:rt.namespace,title:rt.title})}showWarning(_e,rt={}){this._showNotification({message:_e,type:"warning",namespace:rt.namespace,title:rt.title})}_showNotification(_e){const rt=_e.namespace?`show:${_e.type}:${_e.namespace}`:`show:${_e.type}`;this.fire(rt,{message:_e.message,type:_e.type,title:_e.title||""})}}var Vi=p("./node_modules/lodash-es/assignIn.js");class Bn extends(0,w.Re)(){constructor(_e,rt){super(),rt&&(0,Vi.Z)(this,rt),_e&&this.set(_e)}}var nt=p("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/panel/balloonrotator.css"),ve={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};U()(nt.Z,ve),nt.Z.locals;var he=p("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/panel/fakepanel.css"),Ae={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};U()(he.Z,Ae),he.Z.locals;const tt=(0,w.nn)("px");class St extends _t.Sy{static get pluginName(){return"ContextualBalloon"}constructor(_e){super(_e),this._view=null,this._rotatorView=null,this._fakePanelsView=null,this.positionLimiter=()=>{const rt=this.editor.editing.view,vt=rt.document.selection.editableElement;return vt?rt.domConverter.mapViewToDom(vt.root):null},this.set("visibleView",null),this._viewToStack=new Map,this._idToStack=new Map,this.set("_numberOfStacks",0),this.set("_singleViewMode",!1),this._rotatorView=null,this._fakePanelsView=null}destroy(){super.destroy(),this._view&&this._view.destroy(),this._rotatorView&&this._rotatorView.destroy(),this._fakePanelsView&&this._fakePanelsView.destroy()}get view(){return this._view||this._createPanelView(),this._view}hasView(_e){return Array.from(this._viewToStack.keys()).includes(_e)}add(_e){if(this._view||this._createPanelView(),this.hasView(_e.view))throw new w.Bb("contextualballoon-add-view-exist",[this,_e]);const rt=_e.stackId||"main";if(!this._idToStack.has(rt))return this._idToStack.set(rt,new Map([[_e.view,_e]])),this._viewToStack.set(_e.view,this._idToStack.get(rt)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!_e.singleViewMode||this.showStack(rt));const vt=this._idToStack.get(rt);_e.singleViewMode&&this.showStack(rt),vt.set(_e.view,_e),this._viewToStack.set(_e.view,vt),vt===this._visibleStack&&this._showView(_e)}remove(_e){if(!this.hasView(_e))throw new w.Bb("contextualballoon-remove-view-not-exist",[this,_e]);const rt=this._viewToStack.get(_e);this._singleViewMode&&this.visibleView===_e&&(this._singleViewMode=!1),this.visibleView===_e&&(rt.size===1?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(rt.values())[rt.size-2])),rt.size===1?(this._idToStack.delete(this._getStackId(rt)),this._numberOfStacks=this._idToStack.size):rt.delete(_e),this._viewToStack.delete(_e)}updatePosition(_e){_e&&(this._visibleStack.get(this.visibleView).position=_e),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(_e){this.visibleStack=_e;const rt=this._idToStack.get(_e);if(!rt)throw new w.Bb("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==rt&&this._showView(Array.from(rt.values()).pop())}_createPanelView(){this._view=new ii(this.editor.locale),this.editor.ui.view.body.add(this._view),this.editor.ui.focusTracker.add(this._view.element),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(_e){return Array.from(this._idToStack.entries()).find(rt=>rt[1]===_e)[0]}_showNextStack(){const _e=Array.from(this._idToStack.values());let rt=_e.indexOf(this._visibleStack)+1;_e[rt]||(rt=0),this.showStack(this._getStackId(_e[rt]))}_showPrevStack(){const _e=Array.from(this._idToStack.values());let rt=_e.indexOf(this._visibleStack)-1;_e[rt]||(rt=_e.length-1),this.showStack(this._getStackId(_e[rt]))}_createRotatorView(){const _e=new kt(this.editor.locale),rt=this.editor.locale.t;return this.view.content.add(_e),_e.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(vt,Gt)=>!Gt&&vt>1),_e.on("change:isNavigationVisible",()=>this.updatePosition(),{priority:"low"}),_e.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(vt,Gt)=>{if(Gt<2)return"";const We=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return rt("%0 of %1",[We,Gt])}),_e.buttonNextView.on("execute",()=>{_e.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()}),_e.buttonPrevView.on("execute",()=>{_e.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()}),_e}_createFakePanelsView(){const _e=new Jt(this.editor.locale,this.view);return _e.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(rt,vt)=>!vt&&rt>=2?Math.min(rt-1,2):0),_e.listenTo(this.view,"change:top",()=>_e.updatePosition()),_e.listenTo(this.view,"change:left",()=>_e.updatePosition()),this.editor.ui.view.body.add(_e),_e}_showView({view:_e,balloonClassName:rt="",withArrow:vt=!0,singleViewMode:Gt=!1}){this.view.class=rt,this.view.withArrow=vt,this._rotatorView.showView(_e),this.visibleView=_e,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),Gt&&(this._singleViewMode=!0)}_getBalloonPosition(){let _e=Array.from(this._visibleStack.values()).pop().position;return _e&&(_e.limiter||(_e=Object.assign({},_e,{limiter:this.positionLimiter})),_e=Object.assign({},_e,{viewportOffsetConfig:this.editor.ui.viewportOffset})),_e}}class kt extends D{constructor(_e){super(_e);const rt=_e.t,vt=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new w.Rh,this.buttonPrevView=this._createButtonView(rt("Previous"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.463 5.187a.888.888 0 1 1 1.254 1.255L9.16 10l3.557 3.557a.888.888 0 1 1-1.254 1.255L7.26 10.61a.888.888 0 0 1 .16-1.382l4.043-4.042z"/></svg>'),this.buttonNextView=this._createButtonView(rt("Next"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.537 14.813a.888.888 0 1 1-1.254-1.255L10.84 10 7.283 6.442a.888.888 0 1 1 1.254-1.255L12.74 9.39a.888.888 0 0 1-.16 1.382l-4.043 4.042z"/></svg>'),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",vt.to("isNavigationVisible",Gt=>Gt?"":"ck-hidden")]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:vt.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(_e){this.hideView(),this.content.add(_e)}hideView(){this.content.clear()}_createButtonView(_e,rt){const vt=new $e(this.locale);return vt.set({label:_e,icon:rt,tooltip:!0}),vt}}class Jt extends D{constructor(_e,rt){super(_e);const vt=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=rt,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",vt.to("numberOfPanels",Gt=>Gt?"":"ck-hidden")],style:{top:vt.to("top",tt),left:vt.to("left",tt),width:vt.to("width",tt),height:vt.to("height",tt)}},children:this.content}),this.on("change:numberOfPanels",(Gt,We,Ot,Dt)=>{Ot>Dt?this._addPanels(Ot-Dt):this._removePanels(Dt-Ot),this.updatePosition()})}_addPanels(_e){for(;_e--;){const rt=new D;rt.setTemplate({tag:"div"}),this.content.add(rt),this.registerChild(rt)}}_removePanels(_e){for(;_e--;){const rt=this.content.last;this.content.remove(rt),this.deregisterChild(rt),rt.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:_e,left:rt}=this._balloonPanelView,{width:vt,height:Gt}=new w.UL(this._balloonPanelView.element);Object.assign(this,{top:_e,left:rt,width:vt,height:Gt})}}}var gt=p("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/panel/stickypanel.css"),dn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};U()(gt.Z,dn),gt.Z.locals;const Xt=(0,w.nn)("px");class hn extends D{constructor(_e){super(_e);const rt=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheLimiter",!1),this.set("_hasViewportTopOffset",!1),this.content=this.createCollection(),this._contentPanelPlaceholder=new u({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:rt.to("isSticky",vt=>vt?"block":"none"),height:rt.to("isSticky",vt=>vt?Xt(this._panelRect.height):null)}}}).render(),this._contentPanel=new u({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",rt.if("isSticky","ck-sticky-panel__content_sticky"),rt.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:rt.to("isSticky",vt=>vt?Xt(this._contentPanelPlaceholder.getBoundingClientRect().width):null),top:rt.to("_hasViewportTopOffset",vt=>vt?Xt(this.viewportTopOffset):null),bottom:rt.to("_isStickyToTheLimiter",vt=>vt?Xt(this.limiterBottomOffset):null),marginLeft:rt.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this._contentPanel]})}render(){super.render(),this._checkIfShouldBeSticky(),this.listenTo(w.CO.window,"scroll",()=>{this._checkIfShouldBeSticky()}),this.listenTo(this,"change:isActive",()=>{this._checkIfShouldBeSticky()})}_checkIfShouldBeSticky(){const _e=this._panelRect=this._contentPanel.getBoundingClientRect();let rt;this.limiterElement?(rt=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&rt.top<this.viewportTopOffset&&this._panelRect.height+this.limiterBottomOffset<rt.height):this.isSticky=!1,this.isSticky?(this._isStickyToTheLimiter=rt.bottom<_e.height+this.limiterBottomOffset+this.viewportTopOffset,this._hasViewportTopOffset=!this._isStickyToTheLimiter&&!!this.viewportTopOffset,this._marginLeft=this._isStickyToTheLimiter?null:Xt(-w.CO.window.scrollX)):(this._isStickyToTheLimiter=!1,this._hasViewportTopOffset=!1,this._marginLeft=null)}}const Sn=(0,w.nn)("px");class Jn extends _t.Sy{static get pluginName(){return"BalloonToolbar"}static get requires(){return[St]}constructor(_e){super(_e),this._balloonConfig=lt(_e.config.get("balloonToolbar")),this.toolbarView=this._createToolbarView(),this.focusTracker=new w.Rh,_e.ui.once("ready",()=>{this.focusTracker.add(_e.ui.getEditableElement()),this.focusTracker.add(this.toolbarView.element)}),_e.ui.addToolbar(this.toolbarView,{beforeFocus:()=>this.show(!0),afterBlur:()=>this.hide(),isContextual:!0}),this._resizeObserver=null,this._balloon=_e.plugins.get(St),this._fireSelectionChangeDebounced=(0,it.Z)(()=>this.fire("_selectionChangeDebounced"),200),this.decorate("show")}init(){const _e=this.editor,rt=_e.model.document.selection;this.listenTo(this.focusTracker,"change:isFocused",(vt,Gt,We)=>{const Ot=this._balloon.visibleView===this.toolbarView;!We&&Ot?this.hide():We&&this.show()}),this.listenTo(rt,"change:range",(vt,Gt)=>{(Gt.directChange||rt.isCollapsed)&&this.hide(),this._fireSelectionChangeDebounced()}),this.listenTo(this,"_selectionChangeDebounced",()=>{this.editor.editing.view.document.isFocused&&this.show()}),this._balloonConfig.shouldNotGroupWhenFull||this.listenTo(_e,"ready",()=>{const vt=_e.ui.view.editable.element;this._resizeObserver=new w.do(vt,Gt=>{this.toolbarView.maxWidth=Sn(.9*Gt.contentRect.width)})}),this.listenTo(this.toolbarView,"groupedItemsUpdate",()=>{this._updatePosition()})}afterInit(){const _e=this.editor.ui.componentFactory;this.toolbarView.fillFromConfig(this._balloonConfig,_e)}_createToolbarView(){const _e=this.editor.locale.t,rt=!this._balloonConfig.shouldNotGroupWhenFull,vt=new dr(this.editor.locale,{shouldGroupWhenFull:rt,isFloating:!0});return vt.ariaLabel=_e("Editor contextual toolbar"),vt.render(),vt}show(_e=!1){const rt=this.editor,vt=rt.model.document.selection,Gt=rt.model.schema;this._balloon.hasView(this.toolbarView)||vt.isCollapsed&&!_e||function(We,Ot){return We.rangeCount===1?!1:[...We.getRanges()].every(Dt=>{const gn=Dt.getContainedElement();return gn&&Ot.isSelectable(gn)})}(vt,Gt)||Array.from(this.toolbarView.items).every(We=>We.isEnabled!==void 0&&!We.isEnabled)||(this.listenTo(this.editor.ui,"update",()=>{this._updatePosition()}),this._balloon.add({view:this.toolbarView,position:this._getBalloonPositionData(),balloonClassName:"ck-toolbar-container"}))}hide(){this._balloon.hasView(this.toolbarView)&&(this.stopListening(this.editor.ui,"update"),this._balloon.remove(this.toolbarView))}_getBalloonPositionData(){const _e=this.editor.editing.view,rt=_e.document,vt=rt.selection,Gt=rt.selection.isBackward;return{target:()=>{const We=Gt?vt.getFirstRange():vt.getLastRange(),Ot=w.UL.getDomRangeRects(_e.domConverter.viewRangeToDom(We));return Gt?Ot[0]:(Ot.length>1&&Ot[Ot.length-1].width===0&&Ot.pop(),Ot[Ot.length-1])},positions:this._getBalloonPositions(Gt)}}_updatePosition(){this._balloon.updatePosition(this._getBalloonPositionData())}destroy(){super.destroy(),this.stopListening(),this._fireSelectionChangeDebounced.cancel(),this.toolbarView.destroy(),this.focusTracker.destroy(),this._resizeObserver&&this._resizeObserver.destroy()}_getBalloonPositions(_e){const rt=w.OB.isSafari&&w.OB.isiOS?at({heightOffset:Math.max(ii.arrowHeightOffset,Math.round(20/w.CO.window.visualViewport.scale))}):ii.defaultPositions;return _e?[rt.northWestArrowSouth,rt.northWestArrowSouthWest,rt.northWestArrowSouthEast,rt.northWestArrowSouthMiddleEast,rt.northWestArrowSouthMiddleWest,rt.southWestArrowNorth,rt.southWestArrowNorthWest,rt.southWestArrowNorthEast,rt.southWestArrowNorthMiddleWest,rt.southWestArrowNorthMiddleEast]:[rt.southEastArrowNorth,rt.southEastArrowNorthEast,rt.southEastArrowNorthWest,rt.southEastArrowNorthMiddleEast,rt.southEastArrowNorthMiddleWest,rt.northEastArrowSouth,rt.northEastArrowSouthEast,rt.northEastArrowSouthWest,rt.northEastArrowSouthMiddleEast,rt.northEastArrowSouthMiddleWest]}}var Vn=p("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/toolbar/blocktoolbar.css"),ar={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};U()(Vn.Z,ar),Vn.Z.locals;const Vr=(0,w.nn)("px");class Jr extends $e{constructor(_e){super(_e);const rt=this.bindTemplate;this.isVisible=!1,this.isToggleable=!0,this.set("top",0),this.set("left",0),this.extendTemplate({attributes:{class:"ck-block-toolbar-button",style:{top:rt.to("top",vt=>Vr(vt)),left:rt.to("left",vt=>Vr(vt))}}})}}const yi=(0,w.nn)("px"),{pilcrow:Ii}=_t.ci;class ji extends _t.Sy{static get pluginName(){return"BlockToolbar"}constructor(_e){super(_e),this._blockToolbarConfig=lt(this.editor.config.get("blockToolbar")),this.toolbarView=this._createToolbarView(),this.panelView=this._createPanelView(),this.buttonView=this._createButtonView(),this._resizeObserver=null,d({emitter:this.panelView,contextElements:[this.panelView.element,this.buttonView.element],activator:()=>this.panelView.isVisible,callback:()=>this._hidePanel()})}init(){const _e=this.editor;this.listenTo(_e.model.document.selection,"change:range",(rt,vt)=>{vt.directChange&&this._hidePanel()}),this.listenTo(_e.ui,"update",()=>this._updateButton()),this.listenTo(_e,"change:isReadOnly",()=>this._updateButton(),{priority:"low"}),this.listenTo(_e.ui.focusTracker,"change:isFocused",()=>this._updateButton()),this.listenTo(this.buttonView,"change:isVisible",(rt,vt,Gt)=>{Gt?this.buttonView.listenTo(window,"resize",()=>this._updateButton()):(this.buttonView.stopListening(window,"resize"),this._hidePanel())}),_e.ui.addToolbar(this.toolbarView,{beforeFocus:()=>this._showPanel(),afterBlur:()=>this._hidePanel()})}afterInit(){const _e=this.editor.ui.componentFactory,rt=this._blockToolbarConfig;this.toolbarView.fillFromConfig(rt,_e);for(const vt of this.toolbarView.items)vt.on("execute",()=>this._hidePanel(!0),{priority:"high"});rt.shouldNotGroupWhenFull||this.listenTo(this.editor,"ready",()=>{const vt=this.editor.ui.view.editable.element;this._resizeObserver=new w.do(vt,()=>{this.toolbarView.maxWidth=this._getToolbarMaxWidth()})})}destroy(){super.destroy(),this.panelView.destroy(),this.buttonView.destroy(),this.toolbarView.destroy(),this._resizeObserver&&this._resizeObserver.destroy()}_createToolbarView(){const _e=this.editor.locale.t,rt=!this._blockToolbarConfig.shouldNotGroupWhenFull,vt=new dr(this.editor.locale,{shouldGroupWhenFull:rt,isFloating:!0});return vt.ariaLabel=_e("Editor block content toolbar"),vt.focusTracker.on("change:isFocused",(Gt,We,Ot)=>{Ot||this._hidePanel()}),vt}_createPanelView(){const _e=this.editor,rt=new ii(_e.locale);return rt.content.add(this.toolbarView),rt.class="ck-toolbar-container",_e.ui.view.body.add(rt),_e.ui.focusTracker.add(rt.element),this.toolbarView.keystrokes.set("Esc",(vt,Gt)=>{this._hidePanel(!0),Gt()}),rt}_createButtonView(){const _e=this.editor,rt=_e.t,vt=new Jr(_e.locale),Gt=vt.bindTemplate;return vt.set({label:rt("Edit block"),icon:Ii,withText:!1}),vt.extendTemplate({on:{mousedown:Gt.to(We=>{w.OB.isSafari&&this.panelView.isVisible&&this.toolbarView.focus(),We.preventDefault()})}}),vt.bind("isOn").to(this.panelView,"isVisible"),vt.bind("tooltip").to(this.panelView,"isVisible",We=>!We),this.listenTo(vt,"execute",()=>{this.panelView.isVisible?this._hidePanel(!0):this._showPanel()}),_e.ui.view.body.add(vt),_e.ui.focusTracker.add(vt.element),vt}_updateButton(){const _e=this.editor,rt=_e.model,vt=_e.editing.view;if(!_e.ui.focusTracker.isFocused)return void this._hideButton();if(_e.isReadOnly)return void this._hideButton();const Gt=Array.from(rt.document.selection.getSelectedBlocks())[0];if(!Gt||Array.from(this.toolbarView.items).every(Ot=>!Ot.isEnabled))return void this._hideButton();const We=vt.domConverter.mapViewToDom(_e.editing.mapper.toViewElement(Gt));this.buttonView.isVisible=!0,this._attachButtonToElement(We),this.panelView.isVisible&&this._showPanel()}_hideButton(){this.buttonView.isVisible=!1}_showPanel(){if(!this.buttonView.isVisible)return;const _e=this.panelView.isVisible;this.panelView.show(),this.toolbarView.maxWidth=this._getToolbarMaxWidth(),this.panelView.pin({target:this.buttonView.element,limiter:this.editor.ui.getEditableElement()}),_e||this.toolbarView.items.get(0).focus()}_hidePanel(_e){this.panelView.isVisible=!1,_e&&this.editor.editing.view.focus()}_attachButtonToElement(_e){const rt=window.getComputedStyle(_e),vt=new w.UL(this.editor.ui.getEditableElement()),Gt=parseInt(rt.paddingTop,10),We=parseInt(rt.lineHeight,10)||1.2*parseInt(rt.fontSize,10),Ot=(0,w.xZ)({element:this.buttonView.element,target:_e,positions:[(Dt,gn)=>{let Hn;return Hn=this.editor.locale.uiLanguageDirection==="ltr"?vt.left-gn.width:vt.right,{top:Dt.top+Gt+(We-gn.height)/2,left:Hn}}]});this.buttonView.top=Ot.top,this.buttonView.left=Ot.left}_getToolbarMaxWidth(){const _e=this.editor.ui.view.editable.element,rt=new w.UL(_e),vt=new w.UL(this.buttonView.element),Gt=this.editor.locale.uiLanguageDirection==="rtl"?vt.left-rt.right+vt.width:rt.left-vt.left;return yi(rt.width+Gt)}}},"./packages/ckeditor5-utils/src/ckeditorerror.ts":(c,h,p)=>{"use strict";p.d(h,{H:()=>C,KE:()=>M,ZP:()=>k});const d="https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html";class k extends Error{constructor(U,B,N){super(function(D,x){const T=new WeakSet,u=(A,R)=>{if(typeof R=="object"&&R!==null){if(T.has(R))return`[object ${R.constructor.name}]`;T.add(R)}return R},b=x?` ${JSON.stringify(x,u)}`:"",E=w(D);return D+b+E}(U,N)),this.name="CKEditorError",this.context=B,this.data=N}is(U){return U==="CKEditorError"}static rethrowUnexpectedError(U,B){if(U.is&&U.is("CKEditorError"))throw U;const N=new k(U.message,B);throw N.stack=U.stack,N}}function M(F,U){console.warn(...I(F,U))}function C(F,U){console.error(...I(F,U))}function w(F){return`
Read more: ${d}#error-${F}`}function I(F,U){const B=w(F);return U?[F,U,B]:[F,B]}},"./packages/ckeditor5-utils/src/dom/emittermixin.ts":(c,h,p)=>{"use strict";p.d(h,{Z:()=>I});var d=p("./packages/ckeditor5-utils/src/emittermixin.ts"),k=p("./packages/ckeditor5-utils/src/uid.ts"),M=p("./packages/ckeditor5-utils/src/dom/isnode.ts"),C=p("./packages/ckeditor5-utils/src/dom/iswindow.ts");const w=I((0,d.ZP)());function I(B){return B?class extends B{listenTo(N,D,x,T={}){if((0,M.Z)(N)||(0,C.Z)(N)){const u={capture:!!T.useCapture,passive:!!T.usePassive},b=this._getProxyEmitter(N,u)||new F(N,u);this.listenTo(b,D,x,T)}else super.listenTo(N,D,x,T)}stopListening(N,D,x){if((0,M.Z)(N)||(0,C.Z)(N)){const T=this._getAllProxyEmitters(N);for(const u of T)this.stopListening(u,D,x)}else super.stopListening(N,D,x)}_getProxyEmitter(N,D){return(0,d.Rl)(this,U(N,D))}_getAllProxyEmitters(N){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map(D=>this._getProxyEmitter(N,D)).filter(D=>!!D)}}:w}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(B=>{I[B]=w.prototype[B]});class F extends(0,d.ZP)(){constructor(N,D){super(),(0,d.Hv)(this,U(N,D)),this._domNode=N,this._options=D}attach(N){if(this._domListeners&&this._domListeners[N])return;const D=this._createDomListener(N);this._domNode.addEventListener(N,D,this._options),this._domListeners||(this._domListeners={}),this._domListeners[N]=D}detach(N){let D;!this._domListeners[N]||(D=this._events[N])&&D.callbacks.length||this._domListeners[N].removeListener()}_addEventListener(N,D,x){this.attach(N),(0,d.ZP)().prototype._addEventListener.call(this,N,D,x)}_removeEventListener(N,D){(0,d.ZP)().prototype._removeEventListener.call(this,N,D),this.detach(N)}_createDomListener(N){const D=x=>{this.fire(N,x)};return D.removeListener=()=>{this._domNode.removeEventListener(N,D,this._options),delete this._domListeners[N]},D}}function U(B,N){let D=function(x){return x["data-ck-expando"]||(x["data-ck-expando"]=(0,k.Z)())}(B);for(const x of Object.keys(N).sort())N[x]&&(D+="-"+x);return D}},"./packages/ckeditor5-utils/src/dom/isnode.ts":(c,h,p)=>{"use strict";function d(k){if(k){if(k.defaultView)return k instanceof k.defaultView.Document;if(k.ownerDocument&&k.ownerDocument.defaultView)return k instanceof k.ownerDocument.defaultView.Node}return!1}p.d(h,{Z:()=>d})},"./packages/ckeditor5-utils/src/dom/iswindow.ts":(c,h,p)=>{"use strict";function d(k){const M=Object.prototype.toString.apply(k);return M=="[object Window]"||M=="[object global]"}p.d(h,{Z:()=>d})},"./packages/ckeditor5-utils/src/emittermixin.ts":(c,h,p)=>{"use strict";p.d(h,{Hv:()=>x,Rl:()=>D,ZP:()=>N});var d=p("./packages/ckeditor5-utils/src/eventinfo.ts"),k=p("./packages/ckeditor5-utils/src/uid.ts"),M=p("./packages/ckeditor5-utils/src/priorities.ts"),C=p("./packages/ckeditor5-utils/src/inserttopriorityarray.ts"),w=(p("./packages/ckeditor5-utils/src/version.ts"),p("./packages/ckeditor5-utils/src/ckeditorerror.ts"));const I=Symbol("listeningTo"),F=Symbol("emitterId"),U=Symbol("delegations"),B=N(Object);function N(H){return H?class extends H{on(z,V,$){this.listenTo(this,z,V,$)}once(z,V,$){let ee=!1;this.listenTo(this,z,(q,...oe)=>{ee||(ee=!0,q.off(),V.call(this,q,...oe))},$)}off(z,V){this.stopListening(this,z,V)}listenTo(z,V,$,ee={}){let q,oe;this[I]||(this[I]={});const X=this[I];T(z)||x(z);const pe=T(z);(q=X[pe])||(q=X[pe]={emitter:z,callbacks:{}}),(oe=q.callbacks[V])||(oe=q.callbacks[V]=[]),oe.push($),function(Ie,se,be,fe,ue){se._addEventListener?se._addEventListener(be,fe,ue):Ie._addEventListener.call(se,be,fe,ue)}(this,z,V,$,ee)}stopListening(z,V,$){const ee=this[I];let q=z&&T(z);const oe=ee&&q?ee[q]:void 0,X=oe&&V?oe.callbacks[V]:void 0;if(!(!ee||z&&!oe||V&&!X))if($)R(this,z,V,$),X.indexOf($)!==-1&&(X.length===1?delete oe.callbacks[V]:R(this,z,V,$));else if(X){for(;$=X.pop();)R(this,z,V,$);delete oe.callbacks[V]}else if(oe){for(V in oe.callbacks)this.stopListening(z,V);delete ee[q]}else{for(q in ee)this.stopListening(ee[q].emitter);delete this[I]}}fire(z,...V){try{const $=z instanceof d.Z?z:new d.Z(this,z),ee=$.name;let q=E(this,ee);if($.path.push(this),q){const X=[$,...V];q=Array.from(q);for(let pe=0;pe<q.length&&(q[pe].callback.apply(this,X),$.off.called&&(delete $.off.called,this._removeEventListener(ee,q[pe].callback)),!$.stop.called);pe++);}const oe=this[U];if(oe){const X=oe.get(ee),pe=oe.get("*");X&&A(X,$,V),pe&&A(pe,$,V)}return $.return}catch($){w.ZP.rethrowUnexpectedError($,this)}}delegate(...z){return{to:(V,$)=>{this[U]||(this[U]=new Map),z.forEach(ee=>{const q=this[U].get(ee);q?q.set(V,$):this[U].set(ee,new Map([[V,$]]))})}}}stopDelegating(z,V){if(this[U])if(z)if(V){const $=this[U].get(z);$&&$.delete(V)}else this[U].delete(z);else this[U].clear()}_addEventListener(z,V,$){(function(oe,X){const pe=u(oe);if(pe[X])return;let Ie=X,se=null;const be=[];for(;Ie!==""&&!pe[Ie];)pe[Ie]={callbacks:[],childEvents:[]},be.push(pe[Ie]),se&&pe[Ie].childEvents.push(se),se=Ie,Ie=Ie.substr(0,Ie.lastIndexOf(":"));if(Ie!==""){for(const fe of be)fe.callbacks=pe[Ie].callbacks.slice();pe[Ie].childEvents.push(se)}})(this,z);const ee=b(this,z),q={callback:V,priority:M.Z.get($.priority)};for(const oe of ee)(0,C.Z)(oe,q)}_removeEventListener(z,V){const $=b(this,z);for(const ee of $)for(let q=0;q<ee.length;q++)ee[q].callback==V&&(ee.splice(q,1),q--)}}:B}function D(H,z){const V=H[I];return V&&V[z]?V[z].emitter:null}function x(H,z){H[F]||(H[F]=z||(0,k.Z)())}function T(H){return H[F]}function u(H){return H._events||Object.defineProperty(H,"_events",{value:{}}),H._events}function b(H,z){const V=u(H)[z];if(!V)return[];let $=[V.callbacks];for(let ee=0;ee<V.childEvents.length;ee++){const q=b(H,V.childEvents[ee]);$=$.concat(q)}return $}function E(H,z){let V;return H._events&&(V=H._events[z])&&V.callbacks.length?V.callbacks:z.indexOf(":")>-1?E(H,z.substr(0,z.lastIndexOf(":"))):null}function A(H,z,V){for(let[$,ee]of H){ee?typeof ee=="function"&&(ee=ee(z.name)):ee=z.name;const q=new d.Z(z.source,ee);q.path=[...z.path],$.fire(q,...V)}}function R(H,z,V,$){z._removeEventListener?z._removeEventListener(V,$):H._removeEventListener.call(z,V,$)}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(H=>{N[H]=B.prototype[H]})},"./packages/ckeditor5-utils/src/env.ts":(c,h,p)=>{"use strict";p.d(h,{ZP:()=>M});const d=function(){try{return navigator.userAgent.toLowerCase()}catch{return""}}(),k={isMac:C(d),isWindows:function(w){return w.indexOf("windows")>-1}(d),isGecko:function(w){return!!w.match(/gecko\/\d+/)}(d),isSafari:function(w){return w.indexOf(" applewebkit/")>-1&&w.indexOf("chrome")===-1}(d),isiOS:function(w){return!!w.match(/iphone|ipad/i)||C(w)&&navigator.maxTouchPoints>0}(d),isAndroid:function(w){return w.indexOf("android")>-1}(d),isBlink:function(w){return w.indexOf("chrome/")>-1&&w.indexOf("edge/")<0}(d),features:{isRegExpUnicodePropertySupported:function(){let w=!1;try{w="\u0107".search(new RegExp("[\\p{L}]","u"))===0}catch{}return w}()}},M=k;function C(w){return w.indexOf("macintosh")>-1}},"./packages/ckeditor5-utils/src/eventinfo.ts":(c,h,p)=>{"use strict";p.d(h,{Z:()=>k});const d=function(){return function M(){M.called=!0}};class k{constructor(C,w){this.source=C,this.name=w,this.path=[],this.stop=d(),this.off=d()}}},"./packages/ckeditor5-utils/src/index.ts":(c,h,p)=>{"use strict";p.d(h,{Bb:()=>B.ZP,FE:()=>bn,De:()=>Ne,Xu:()=>Ct.Z,a6:()=>ee,ln:()=>F.ZP,M3:()=>U.Z,Rh:()=>Yn,VD:()=>on.Z,go:()=>Bt,Re:()=>A,UL:()=>et,do:()=>ht,Rt:()=>oe,QX:()=>q,az:()=>ue,Hg:()=>w,OB:()=>d.ZP,HZ:()=>k,wm:()=>ln,Ps:()=>cn,dk:()=>bt,Cq:()=>Cr.Cq,yy:()=>It,XU:()=>Cr.XU,j9:()=>$r,mA:()=>Cr.mA,xZ:()=>ne,CO:()=>Qe,cq:()=>wt,ZQ:()=>ft,VG:()=>Ht.Z,dj:()=>Cr.dj,tO:()=>Sr,C3:()=>vn,Zt:()=>Cr.Zt,Cb:()=>Xr,pp:()=>ii,YK:()=>at,to:()=>Pi,TW:()=>X,nA:()=>gi,UG:()=>ut.Z,bR:()=>un,Gs:()=>mn,pn:()=>Wt,Do:()=>Cr.Do,H:()=>B.H,KE:()=>B.KE,CD:()=>I,Zz:()=>Cr.Zz,tA:()=>Le.Z,Od:()=>Xe,F0:()=>lt,mR:()=>Ze,jS:()=>ot,x:()=>tr,qo:()=>li,qL:()=>ze,nn:()=>Je,hQ:()=>Et.Z,i8:()=>it.Z});var d=p("./packages/ckeditor5-utils/src/env.ts");function k(Re,ke,Pe,Te){Pe=Pe||function(ur,On){return ur===On};const Mt=Array.isArray(Re)?Re:Array.prototype.slice.call(Re),qt=Array.isArray(ke)?ke:Array.prototype.slice.call(ke),Rn=function(ur,On,ct){const Zt=M(ur,On,ct);if(Zt===-1)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const Cn=C(ur,Zt),Pn=C(On,Zt),Kn=M(Cn,Pn,ct),Rt=ur.length-Kn,Ke=On.length-Kn;return{firstIndex:Zt,lastIndexOld:Rt,lastIndexNew:Ke}}(Mt,qt,Pe);return Te?function(ur,On){const{firstIndex:ct,lastIndexOld:Zt,lastIndexNew:Cn}=ur;if(ct===-1)return Array(On).fill("equal");let Pn=[];return ct>0&&(Pn=Pn.concat(Array(ct).fill("equal"))),Cn-ct>0&&(Pn=Pn.concat(Array(Cn-ct).fill("insert"))),Zt-ct>0&&(Pn=Pn.concat(Array(Zt-ct).fill("delete"))),Cn<On&&(Pn=Pn.concat(Array(On-Cn).fill("equal"))),Pn}(Rn,qt.length):function(ur,On){const ct=[],{firstIndex:Zt,lastIndexOld:Cn,lastIndexNew:Pn}=On;return Pn-Zt>0&&ct.push({index:Zt,type:"insert",values:ur.slice(Zt,Pn)}),Cn-Zt>0&&ct.push({index:Zt+(Pn-Zt),type:"delete",howMany:Cn-Zt}),ct}(qt,Rn)}function M(Re,ke,Pe){for(let Te=0;Te<Math.max(Re.length,ke.length);Te++)if(Re[Te]===void 0||ke[Te]===void 0||!Pe(Re[Te],ke[Te]))return Te;return-1}function C(Re,ke){return Re.slice(ke).reverse()}function w(Re,ke,Pe){Pe=Pe||function(Rt,Ke){return Rt===Ke};const Te=Re.length,Mt=ke.length;if(Te>200||Mt>200||Te+Mt>300)return w.fastDiff(Re,ke,Pe,!0);let qt,Rn;if(Mt<Te){const Rt=Re;Re=ke,ke=Rt,qt="delete",Rn="insert"}else qt="insert",Rn="delete";const Qn=Re.length,ur=ke.length,On=ur-Qn,ct={},Zt={};function Cn(Rt){const Ke=(Zt[Rt-1]!==void 0?Zt[Rt-1]:-1)+1,Oe=Zt[Rt+1]!==void 0?Zt[Rt+1]:-1,Ge=Ke>Oe?-1:1;ct[Rt+Ge]&&(ct[Rt]=ct[Rt+Ge].slice(0)),ct[Rt]||(ct[Rt]=[]),ct[Rt].push(Ke>Oe?qt:Rn);let Ft=Math.max(Ke,Oe),Qt=Ft-Rt;for(;Qt<Qn&&Ft<ur&&Pe(Re[Qt],ke[Ft]);)Qt++,Ft++,ct[Rt].push("equal");return Ft}let Pn,Kn=0;do{for(Pn=-Kn;Pn<On;Pn++)Zt[Pn]=Cn(Pn);for(Pn=On+Kn;Pn>On;Pn--)Zt[Pn]=Cn(Pn);Zt[On]=Cn(On),Kn++}while(Zt[On]!==ur);return ct[On].slice(1)}function I(Re,...ke){ke.forEach(Pe=>{const Te=Object.getOwnPropertyNames(Pe),Mt=Object.getOwnPropertySymbols(Pe);Te.concat(Mt).forEach(qt=>{if(qt in Re.prototype||typeof Pe=="function"&&(qt=="length"||qt=="name"||qt=="prototype"))return;const Rn=Object.getOwnPropertyDescriptor(Pe,qt);Rn.enumerable=!1,Object.defineProperty(Re.prototype,qt,Rn)})})}w.fastDiff=k;var F=p("./packages/ckeditor5-utils/src/emittermixin.ts"),U=p("./packages/ckeditor5-utils/src/eventinfo.ts"),B=p("./packages/ckeditor5-utils/src/ckeditorerror.ts"),N=p("./node_modules/lodash-es/isObject.js");const D=Symbol("observableProperties"),x=Symbol("boundObservables"),T=Symbol("boundProperties"),u=Symbol("decoratedMethods"),b=Symbol("decoratedOriginal"),E=A((0,F.ZP)());function A(Re){return Re?class extends Re{set(ke,Pe){if((0,N.Z)(ke))return void Object.keys(ke).forEach(Mt=>{this.set(Mt,ke[Mt])},this);R(this);const Te=this[D];if(ke in this&&!Te.has(ke))throw new B.ZP("observable-set-cannot-override",this);Object.defineProperty(this,ke,{enumerable:!0,configurable:!0,get:()=>Te.get(ke),set(Mt){const qt=Te.get(ke);let Rn=this.fire(`set:${ke}`,ke,Mt,qt);Rn===void 0&&(Rn=Mt),qt===Rn&&Te.has(ke)||(Te.set(ke,Rn),this.fire(`change:${ke}`,ke,Rn,qt))}}),this[ke]=Pe}bind(...ke){if(!ke.length||!V(ke))throw new B.ZP("observable-bind-wrong-properties",this);if(new Set(ke).size!==ke.length)throw new B.ZP("observable-bind-duplicate-properties",this);R(this);const Pe=this[T];ke.forEach(Mt=>{if(Pe.has(Mt))throw new B.ZP("observable-bind-rebind",this)});const Te=new Map;return ke.forEach(Mt=>{const qt={property:Mt,to:[]};Pe.set(Mt,qt),Te.set(Mt,qt)}),{to:H,toMany:z,_observable:this,_bindProperties:ke,_to:[],_bindings:Te}}unbind(...ke){if(!this[D])return;const Pe=this[T],Te=this[x];if(ke.length){if(!V(ke))throw new B.ZP("observable-unbind-wrong-properties",this);ke.forEach(Mt=>{const qt=Pe.get(Mt);qt&&(qt.to.forEach(([Rn,Qn])=>{const ur=Te.get(Rn),On=ur[Qn];On.delete(qt),On.size||delete ur[Qn],Object.keys(ur).length||(Te.delete(Rn),this.stopListening(Rn,"change"))}),Pe.delete(Mt))})}else Te.forEach((Mt,qt)=>{this.stopListening(qt,"change")}),Te.clear(),Pe.clear()}decorate(ke){R(this);const Pe=this[ke];if(!Pe)throw new B.ZP("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:ke});this.on(ke,(Te,Mt)=>{Te.return=Pe.apply(this,Mt)}),this[ke]=function(...Te){return this.fire(ke,Te)},this[ke][b]=Pe,this[u]||(this[u]=[]),this[u].push(ke)}stopListening(ke,Pe,Te){if(!ke&&this[u]){for(const Mt of this[u])this[Mt]=this[Mt][b];delete this[u]}super.stopListening(ke,Pe,Te)}}:E}function R(Re){Re[D]||(Object.defineProperty(Re,D,{value:new Map}),Object.defineProperty(Re,x,{value:new Map}),Object.defineProperty(Re,T,{value:new Map}))}function H(...Re){const ke=function(...qt){if(!qt.length)throw new B.ZP("observable-bind-to-parse-error",null);const Rn={to:[]};let Qn;return typeof qt[qt.length-1]=="function"&&(Rn.callback=qt.pop()),qt.forEach(ur=>{if(typeof ur=="string")Qn.properties.push(ur);else{if(typeof ur!="object")throw new B.ZP("observable-bind-to-parse-error",null);Qn={observable:ur,properties:[]},Rn.to.push(Qn)}}),Rn}(...Re),Pe=Array.from(this._bindings.keys()),Te=Pe.length;if(!ke.callback&&ke.to.length>1)throw new B.ZP("observable-bind-to-no-callback",this);if(Te>1&&ke.callback)throw new B.ZP("observable-bind-to-extra-callback",this);var Mt;ke.to.forEach(qt=>{if(qt.properties.length&&qt.properties.length!==Te)throw new B.ZP("observable-bind-to-properties-length",this);qt.properties.length||(qt.properties=this._bindProperties)}),this._to=ke.to,ke.callback&&(this._bindings.get(Pe[0]).callback=ke.callback),Mt=this._observable,this._to.forEach(qt=>{const Rn=Mt[x];let Qn;Rn.get(qt.observable)||Mt.listenTo(qt.observable,"change",(ur,On)=>{Qn=Rn.get(qt.observable)[On],Qn&&Qn.forEach(ct=>{$(Mt,ct.property)})})}),function(qt){let Rn;qt._bindings.forEach((Qn,ur)=>{qt._to.forEach(On=>{Rn=On.properties[Qn.callback?0:qt._bindProperties.indexOf(ur)],Qn.to.push([On.observable,Rn]),function(ct,Zt,Cn,Pn){const Kn=ct[x],Rt=Kn.get(Cn),Ke=Rt||{};Ke[Pn]||(Ke[Pn]=new Set),Ke[Pn].add(Zt),Rt||Kn.set(Cn,Ke)}(qt._observable,Qn,On.observable,Rn)})})}(this),this._bindProperties.forEach(qt=>{$(this._observable,qt)})}function z(Re,ke,Pe){if(this._bindings.size>1)throw new B.ZP("observable-bind-to-many-not-one-binding",this);this.to(...function(Te,Mt){const qt=Te.map(Rn=>[Rn,Mt]);return Array.prototype.concat.apply([],qt)}(Re,ke),Pe)}function V(Re){return Re.every(ke=>typeof ke=="string")}function $(Re,ke){const Pe=Re[T].get(ke);let Te;Pe.callback?Te=Pe.callback.apply(Re,Pe.to.map(Mt=>Mt[0][Mt[1]])):(Te=Pe.to[0],Te=Te[0][Te[1]]),Object.prototype.hasOwnProperty.call(Re,ke)?Re[ke]=Te:Re.set(ke,Te)}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(Re=>{A[Re]=E.prototype[Re]});class ee{constructor(){this._replacedElements=[]}replace(ke,Pe){this._replacedElements.push({element:ke,newElement:Pe}),ke.style.display="none",Pe&&ke.parentNode.insertBefore(Pe,ke.nextSibling)}restore(){this._replacedElements.forEach(({element:ke,newElement:Pe})=>{ke.style.display="",Pe&&Pe.remove()}),this._replacedElements=[]}}function q(Re){let ke=0;for(const Pe of Re)ke++;return ke}function oe(Re,ke){const Pe=Math.min(Re.length,ke.length);for(let Te=0;Te<Pe;Te++)if(Re[Te]!=ke[Te])return Te;return Re.length==ke.length?"same":Re.length<ke.length?"prefix":"extension"}function X(Re){return!(!Re||!Re[Symbol.iterator])}var pe=p("./node_modules/lodash-es/_baseGetTag.js"),Ie=p("./node_modules/lodash-es/isArray.js"),se=p("./node_modules/lodash-es/isObjectLike.js"),be="[object String]";const fe=function(Re){return typeof Re=="string"||!(0,Ie.Z)(Re)&&(0,se.Z)(Re)&&(0,pe.Z)(Re)==be};function ue(Re,ke,Pe={},Te=[]){const Mt=Pe&&Pe.xmlns,qt=Mt?Re.createElementNS(Mt,ke):Re.createElement(ke);for(const Rn in Pe)qt.setAttribute(Rn,Pe[Rn]);!fe(Te)&&X(Te)||(Te=[Te]);for(let Rn of Te)fe(Rn)&&(Rn=Re.createTextNode(Rn)),qt.appendChild(Rn);return qt}var we=p("./node_modules/lodash-es/isPlainObject.js"),Me=p("./node_modules/lodash-es/cloneDeepWith.js"),Ce=p("./node_modules/lodash-es/isElement.js");class Ne{constructor(ke,Pe){this._config={},Pe&&this.define(Ye(Pe)),ke&&this._setObjectToTarget(this._config,ke)}set(ke,Pe){this._setToTarget(this._config,ke,Pe)}define(ke,Pe){this._setToTarget(this._config,ke,Pe,!0)}get(ke){return this._getFromSource(this._config,ke)}*names(){for(const ke of Object.keys(this._config))yield ke}_setToTarget(ke,Pe,Te,Mt=!1){if((0,we.Z)(Pe))return void this._setObjectToTarget(ke,Pe,Mt);const qt=Pe.split(".");Pe=qt.pop();for(const Rn of qt)(0,we.Z)(ke[Rn])||(ke[Rn]={}),ke=ke[Rn];if((0,we.Z)(Te))return(0,we.Z)(ke[Pe])||(ke[Pe]={}),ke=ke[Pe],void this._setObjectToTarget(ke,Te,Mt);Mt&&ke[Pe]!==void 0||(ke[Pe]=Te)}_getFromSource(ke,Pe){const Te=Pe.split(".");Pe=Te.pop();for(const Mt of Te){if(!(0,we.Z)(ke[Mt])){ke=null;break}ke=ke[Mt]}return ke?Ye(ke[Pe]):void 0}_setObjectToTarget(ke,Pe,Te){Object.keys(Pe).forEach(Mt=>{this._setToTarget(ke,Mt,Pe[Mt],Te)})}}function Ye(Re){return(0,Me.Z)(Re,mt)}function mt(Re){return(0,Ce.Z)(Re)?Re:void 0}var Ct=p("./packages/ckeditor5-utils/src/dom/emittermixin.ts");function ln(Re){let ke=Re.parentElement;if(!ke)return null;for(;ke.tagName!="BODY";){const Pe=ke.style.overflowY||p.g.window.getComputedStyle(ke).overflowY;if(Pe==="auto"||Pe==="scroll")break;if(ke=ke.parentElement,!ke)return null}return ke}let $e;try{$e={window,document}}catch{$e={window:{},document:{}}}const Qe=$e;function bt(Re){const ke=[];let Pe=Re;for(;Pe&&Pe.nodeType!=Node.DOCUMENT_NODE;)ke.unshift(Pe),Pe=Pe.parentNode;return ke}function It(Re){return Re instanceof HTMLTextAreaElement?Re.value:Re.innerHTML}function mn(Re){return Object.prototype.toString.call(Re)=="[object Text]"}function un(Re){return Object.prototype.toString.apply(Re)=="[object Range]"}var Be=p("./packages/ckeditor5-utils/src/dom/iswindow.ts");function je(Re){const ke=Re.ownerDocument.defaultView.getComputedStyle(Re);return{top:parseInt(ke.borderTopWidth,10),right:parseInt(ke.borderRightWidth,10),bottom:parseInt(ke.borderBottomWidth,10),left:parseInt(ke.borderLeftWidth,10)}}const $t=["top","right","bottom","left","width","height"];class et{constructor(ke){const Pe=un(ke);if(Object.defineProperty(this,"_source",{value:ke._source||ke,writable:!0,enumerable:!1}),Tn(ke)||Pe)if(Pe){const Te=et.getDomRangeRects(ke);Kt(this,et.getBoundingRect(Te))}else Kt(this,ke.getBoundingClientRect());else if((0,Be.Z)(ke)){const{innerWidth:Te,innerHeight:Mt}=ke;Kt(this,{top:0,right:Te,bottom:Mt,left:0,width:Te,height:Mt})}else Kt(this,ke)}clone(){return new et(this)}moveTo(ke,Pe){return this.top=Pe,this.right=ke+this.width,this.bottom=Pe+this.height,this.left=ke,this}moveBy(ke,Pe){return this.top+=Pe,this.right+=ke,this.left+=ke,this.bottom+=Pe,this}getIntersection(ke){const Pe={top:Math.max(this.top,ke.top),right:Math.min(this.right,ke.right),bottom:Math.min(this.bottom,ke.bottom),left:Math.max(this.left,ke.left),width:0,height:0};return Pe.width=Pe.right-Pe.left,Pe.height=Pe.bottom-Pe.top,Pe.width<0||Pe.height<0?null:new et(Pe)}getIntersectionArea(ke){const Pe=this.getIntersection(ke);return Pe?Pe.getArea():0}getArea(){return this.width*this.height}getVisible(){const ke=this._source;let Pe=this.clone();if(!kn(ke)){let Te=ke.parentNode||ke.commonAncestorContainer;for(;Te&&!kn(Te);){const Mt=new et(Te),qt=Pe.getIntersection(Mt);if(!qt)return null;qt.getArea()<Pe.getArea()&&(Pe=qt),Te=Te.parentNode}}return Pe}isEqual(ke){for(const Pe of $t)if(this[Pe]!==ke[Pe])return!1;return!0}contains(ke){const Pe=this.getIntersection(ke);return!(!Pe||!Pe.isEqual(ke))}excludeScrollbarsAndBorders(){const ke=this._source;let Pe,Te,Mt;if((0,Be.Z)(ke))Pe=ke.innerWidth-ke.document.documentElement.clientWidth,Te=ke.innerHeight-ke.document.documentElement.clientHeight,Mt=ke.getComputedStyle(ke.document.documentElement).direction;else{const qt=je(ke);Pe=ke.offsetWidth-ke.clientWidth-qt.left-qt.right,Te=ke.offsetHeight-ke.clientHeight-qt.top-qt.bottom,Mt=ke.ownerDocument.defaultView.getComputedStyle(ke).direction,this.left+=qt.left,this.top+=qt.top,this.right-=qt.right,this.bottom-=qt.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=Pe,Mt==="ltr"?this.right-=Pe:this.left+=Pe,this.height-=Te,this.bottom-=Te,this}static getDomRangeRects(ke){const Pe=[],Te=Array.from(ke.getClientRects());if(Te.length)for(const Mt of Te)Pe.push(new et(Mt));else{let Mt=ke.startContainer;mn(Mt)&&(Mt=Mt.parentNode);const qt=new et(Mt.getBoundingClientRect());qt.right=qt.left,qt.width=0,Pe.push(qt)}return Pe}static getBoundingRect(ke){const Pe={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY,width:0,height:0};let Te=0;for(const Mt of ke)Te++,Pe.left=Math.min(Pe.left,Mt.left),Pe.top=Math.min(Pe.top,Mt.top),Pe.right=Math.max(Pe.right,Mt.right),Pe.bottom=Math.max(Pe.bottom,Mt.bottom);return Te==0?null:(Pe.width=Pe.right-Pe.left,Pe.height=Pe.bottom-Pe.top,new et(Pe))}}function Kt(Re,ke){for(const Pe of $t)Re[Pe]=ke[Pe]}function kn(Re){return!!Tn(Re)&&Re===Re.ownerDocument.body}function Tn(Re){return Re!==null&&typeof Re=="object"&&Re.nodeType===1&&typeof Re.getBoundingClientRect=="function"}class ht{constructor(ke,Pe){ht._observerInstance||ht._createObserver(),this._element=ke,this._callback=Pe,ht._addElementCallback(ke,Pe),ht._observerInstance.observe(ke)}destroy(){ht._deleteElementCallback(this._element,this._callback)}static _addElementCallback(ke,Pe){ht._elementCallbacks||(ht._elementCallbacks=new Map);let Te=ht._elementCallbacks.get(ke);Te||(Te=new Set,ht._elementCallbacks.set(ke,Te)),Te.add(Pe)}static _deleteElementCallback(ke,Pe){const Te=ht._getElementCallbacks(ke);Te&&(Te.delete(Pe),Te.size||(ht._elementCallbacks.delete(ke),ht._observerInstance.unobserve(ke))),ht._elementCallbacks&&!ht._elementCallbacks.size&&(ht._observerInstance=null,ht._elementCallbacks=null)}static _getElementCallbacks(ke){return ht._elementCallbacks?ht._elementCallbacks.get(ke):null}static _createObserver(){ht._observerInstance=new Qe.window.ResizeObserver(ke=>{for(const Pe of ke){const Te=ht._getElementCallbacks(Pe.target);if(Te)for(const Mt of Te)Mt(Pe)}})}}function ot(Re,ke){Re instanceof HTMLTextAreaElement&&(Re.value=ke),Re.innerHTML=ke}function Je(Re){return ke=>ke+Re}function wt(Re){let ke=0;for(;Re.previousSibling;)Re=Re.previousSibling,ke++;return ke}function ft(Re,ke,Pe){Re.insertBefore(Pe,Re.childNodes[ke]||null)}function vn(Re){return Re&&Re.nodeType===Node.COMMENT_NODE}ht._observerInstance=null,ht._elementCallbacks=null;var ut=p("./packages/ckeditor5-utils/src/dom/isnode.ts");function Wt(Re){return!!(Re&&Re.getClientRects&&Re.getClientRects().length)}var ae=p("./node_modules/lodash-es/isFunction.js");function ne({element:Re,target:ke,positions:Pe,limiter:Te,fitInViewport:Mt,viewportOffsetConfig:qt}){(0,ae.Z)(ke)&&(ke=ke()),(0,ae.Z)(Te)&&(Te=Te());const Rn=function(Cn){return Cn&&Cn.parentNode?Cn.offsetParent===Qe.document.body?null:Cn.offsetParent:null}(Re),Qn=new et(Re),ur=new et(ke);let On;const ct=Mt&&function(Cn){Cn=Object.assign({top:0,bottom:0,left:0,right:0},Cn);const Pn=new et(Qe.window);return Pn.top+=Cn.top,Pn.height-=Cn.top,Pn.bottom-=Cn.bottom,Pn.height-=Cn.bottom,Pn}(qt)||null,Zt={targetRect:ur,elementRect:Qn,positionedElementAncestor:Rn,viewportRect:ct};if(Te||Mt){const Cn=Te&&new et(Te).getVisible();Object.assign(Zt,{limiterRect:Cn,viewportRect:ct}),On=function(Pn,Kn){const{elementRect:Rt}=Kn,Ke=Rt.getArea(),Oe=Pn.map(Qt=>new ye(Qt,Kn)).filter(Qt=>!!Qt.name);let Ge=0,Ft=null;for(const Qt of Oe){const{limiterIntersectionArea:wn,viewportIntersectionArea:Gn}=Qt;if(wn===Ke)return Qt;const ir=Gn**2+wn**2;ir>Ge&&(Ge=ir,Ft=Qt)}return Ft}(Pe,Zt)||new ye(Pe[0],Zt)}else On=new ye(Pe[0],Zt);return On}function ge(Re){const{scrollX:ke,scrollY:Pe}=Qe.window;return Re.clone().moveBy(ke,Pe)}class ye{constructor(ke,Pe){const Te=ke(Pe.targetRect,Pe.elementRect,Pe.viewportRect);if(!Te)return;const{left:Mt,top:qt,name:Rn,config:Qn}=Te;this.name=Rn,this.config=Qn,this._positioningFunctionCorrdinates={left:Mt,top:qt},this._options=Pe}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){const ke=this._options.limiterRect;if(ke){const Pe=this._options.viewportRect;if(!Pe)return ke.getIntersectionArea(this._rect);{const Te=ke.getIntersection(Pe);if(Te)return Te.getIntersectionArea(this._rect)}}return 0}get viewportIntersectionArea(){const ke=this._options.viewportRect;return ke?ke.getIntersectionArea(this._rect):0}get _rect(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCorrdinates.left,this._positioningFunctionCorrdinates.top)),this._cachedRect}get _absoluteRect(){return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=ge(this._rect),this._options.positionedElementAncestor&&function(ke,Pe){const Te=ge(new et(Pe)),Mt=je(Pe);let qt=0,Rn=0;qt-=Te.left,Rn-=Te.top,qt+=Pe.scrollLeft,Rn+=Pe.scrollTop,qt-=Mt.left,Rn-=Mt.top,ke.moveBy(qt,Rn)}(this._cachedAbsoluteRect,this._options.positionedElementAncestor)),this._cachedAbsoluteRect}}function Xe(Re){const ke=Re.parentNode;ke&&ke.removeChild(Re)}function Ze({target:Re,viewportOffset:ke=0}){const Pe=hr(Re);let Te=Pe,Mt=null;for(;Te;){let qt;qt=Mr(Te==Pe?Re:Mt),zt(qt,()=>rr(Re,Te));const Rn=rr(Re,Te);if(_t(Te,Rn,ke),Te.parent!=Te){if(Mt=Te.frameElement,Te=Te.parent,!Mt)return}else Te=null}}function lt(Re){zt(Mr(Re),()=>new et(Re))}function _t(Re,ke,Pe){const Te=ke.clone().moveBy(0,Pe),Mt=ke.clone().moveBy(0,-Pe),qt=new et(Re).excludeScrollbarsAndBorders();if(![Mt,Te].every(Rn=>qt.contains(Rn))){let{scrollX:Rn,scrollY:Qn}=Re;sn(Mt,qt)?Qn-=qt.top-ke.top+Pe:Vt(Te,qt)&&(Qn+=ke.bottom-qt.bottom+Pe),yn(ke,qt)?Rn-=qt.left-ke.left+Pe:dr(ke,qt)&&(Rn+=ke.right-qt.right+Pe),Re.scrollTo(Rn,Qn)}}function zt(Re,ke){const Pe=hr(Re);let Te,Mt;for(;Re!=Pe.document.body;)Mt=ke(),Te=new et(Re).excludeScrollbarsAndBorders(),Te.contains(Mt)||(sn(Mt,Te)?Re.scrollTop-=Te.top-Mt.top:Vt(Mt,Te)&&(Re.scrollTop+=Mt.bottom-Te.bottom),yn(Mt,Te)?Re.scrollLeft-=Te.left-Mt.left:dr(Mt,Te)&&(Re.scrollLeft+=Mt.right-Te.right)),Re=Re.parentNode}function Vt(Re,ke){return Re.bottom>ke.bottom}function sn(Re,ke){return Re.top<ke.top}function yn(Re,ke){return Re.left<ke.left}function dr(Re,ke){return Re.right>ke.right}function hr(Re){return un(Re)?Re.startContainer.ownerDocument.defaultView:Re.ownerDocument.defaultView}function Mr(Re){if(un(Re)){let ke=Re.commonAncestorContainer;return mn(ke)&&(ke=ke.parentNode),ke}return Re.parentNode}function rr(Re,ke){const Pe=hr(Re),Te=new et(Re);if(Pe===ke)return Te;{let Mt=Pe;for(;Mt!=ke;){const qt=Mt.frameElement,Rn=new et(qt).excludeScrollbarsAndBorders();Te.moveBy(Rn.left,Rn.top),Mt=Mt.parent}}return Te}var Cr=p("./packages/ckeditor5-utils/src/keyboard.ts");const Ur=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function $r(Re){return Ur.includes(Re)?"rtl":"ltr"}function li(Re){return Array.isArray(Re)?Re:[Re]}function ri(Re,ke,Pe=1){if(typeof Pe!="number")throw new B.ZP("translation-service-quantity-not-a-number",null,{quantity:Pe});const Te=Object.keys(Qe.window.CKEDITOR_TRANSLATIONS).length;Te===1&&(Re=Object.keys(Qe.window.CKEDITOR_TRANSLATIONS)[0]);const Mt=ke.id||ke.string;if(Te===0||!function(ur,On){return!!Qe.window.CKEDITOR_TRANSLATIONS[ur]&&!!Qe.window.CKEDITOR_TRANSLATIONS[ur].dictionary[On]}(Re,Mt))return Pe!==1?ke.plural:ke.string;const qt=Qe.window.CKEDITOR_TRANSLATIONS[Re].dictionary,Rn=Qe.window.CKEDITOR_TRANSLATIONS[Re].getPluralForm||(ur=>ur===1?0:1),Qn=qt[Mt];return typeof Qn=="string"?Qn:Qn[Number(Rn(Pe))]}Qe.window.CKEDITOR_TRANSLATIONS||(Qe.window.CKEDITOR_TRANSLATIONS={});class Bt{constructor({uiLanguage:ke="en",contentLanguage:Pe}={}){this.uiLanguage=ke,this.contentLanguage=Pe||this.uiLanguage,this.uiLanguageDirection=$r(this.uiLanguage),this.contentLanguageDirection=$r(this.contentLanguage),this.t=(Te,Mt)=>this._t(Te,Mt)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(ke,Pe=[]){Pe=li(Pe),typeof ke=="string"&&(ke={string:ke});const Te=ke.plural?Pe[0]:1;return function(Mt,qt){return Mt.replace(/%(\d+)/g,(Rn,Qn)=>Qn<qt.length?qt[Qn]:Rn)}(ri(this.uiLanguage,ke,Te),Pe)}}var Et=p("./packages/ckeditor5-utils/src/uid.ts");class bn extends(0,F.ZP)(){constructor(ke={},Pe={}){super();const Te=X(ke);if(Te||(Pe=ke),this._items=[],this._itemMap=new Map,this._idProperty=Pe.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],Te)for(const Mt of ke)this._items.push(Mt),this._itemMap.set(this._getItemIdBeforeAdding(Mt),Mt)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(ke,Pe){return this.addMany([ke],Pe)}addMany(ke,Pe){if(Pe===void 0)Pe=this._items.length;else if(Pe>this._items.length||Pe<0)throw new B.ZP("collection-add-item-invalid-index",this);let Te=0;for(const Mt of ke){const qt=this._getItemIdBeforeAdding(Mt),Rn=Pe+Te;this._items.splice(Rn,0,Mt),this._itemMap.set(qt,Mt),this.fire("add",Mt,Rn),Te++}return this.fire("change",{added:ke,removed:[],index:Pe}),this}get(ke){let Pe;if(typeof ke=="string")Pe=this._itemMap.get(ke);else{if(typeof ke!="number")throw new B.ZP("collection-get-invalid-arg",this);Pe=this._items[ke]}return Pe||null}has(ke){if(typeof ke=="string")return this._itemMap.has(ke);{const Pe=ke[this._idProperty];return Pe&&this._itemMap.has(Pe)}}getIndex(ke){let Pe;return Pe=typeof ke=="string"?this._itemMap.get(ke):ke,Pe?this._items.indexOf(Pe):-1}remove(ke){const[Pe,Te]=this._remove(ke);return this.fire("change",{added:[],removed:[Pe],index:Te}),Pe}map(ke,Pe){return this._items.map(ke,Pe)}find(ke,Pe){return this._items.find(ke,Pe)}filter(ke,Pe){return this._items.filter(ke,Pe)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const ke=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:ke,index:0})}bindTo(ke){if(this._bindToCollection)throw new B.ZP("collection-bind-to-rebind",this);return this._bindToCollection=ke,{as:Pe=>{this._setUpBindToBinding(Te=>new Pe(Te))},using:Pe=>{typeof Pe=="function"?this._setUpBindToBinding(Pe):this._setUpBindToBinding(Te=>Te[Pe])}}}_setUpBindToBinding(ke){const Pe=this._bindToCollection,Te=(Mt,qt,Rn)=>{const Qn=Pe._bindToCollection==this,ur=Pe._bindToInternalToExternalMap.get(qt);if(Qn&&ur)this._bindToExternalToInternalMap.set(qt,ur),this._bindToInternalToExternalMap.set(ur,qt);else{const On=ke(qt);if(!On)return void this._skippedIndexesFromExternal.push(Rn);let ct=Rn;for(const Zt of this._skippedIndexesFromExternal)Rn>Zt&&ct--;for(const Zt of Pe._skippedIndexesFromExternal)ct>=Zt&&ct++;this._bindToExternalToInternalMap.set(qt,On),this._bindToInternalToExternalMap.set(On,qt),this.add(On,ct);for(let Zt=0;Zt<Pe._skippedIndexesFromExternal.length;Zt++)ct<=Pe._skippedIndexesFromExternal[Zt]&&Pe._skippedIndexesFromExternal[Zt]++}};for(const Mt of Pe)Te(0,Mt,Pe.getIndex(Mt));this.listenTo(Pe,"add",Te),this.listenTo(Pe,"remove",(Mt,qt,Rn)=>{const Qn=this._bindToExternalToInternalMap.get(qt);Qn&&this.remove(Qn),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((ur,On)=>(Rn<On&&ur.push(On-1),Rn>On&&ur.push(On),ur),[])})}_getItemIdBeforeAdding(ke){const Pe=this._idProperty;let Te;if(Pe in ke){if(Te=ke[Pe],typeof Te!="string")throw new B.ZP("collection-add-invalid-id",this);if(this.get(Te))throw new B.ZP("collection-add-item-already-exists",this)}else ke[Pe]=Te=(0,Et.Z)();return Te}_remove(ke){let Pe,Te,Mt,qt=!1;const Rn=this._idProperty;if(typeof ke=="string"?(Te=ke,Mt=this._itemMap.get(Te),qt=!Mt,Mt&&(Pe=this._items.indexOf(Mt))):typeof ke=="number"?(Pe=ke,Mt=this._items[Pe],qt=!Mt,Mt&&(Te=Mt[Rn])):(Mt=ke,Te=Mt[Rn],Pe=this._items.indexOf(Mt),qt=Pe==-1||!this._itemMap.get(Te)),qt)throw new B.ZP("collection-remove-404",this);this._items.splice(Pe,1),this._itemMap.delete(Te);const Qn=this._bindToInternalToExternalMap.get(Mt);return this._bindToInternalToExternalMap.delete(Mt),this._bindToExternalToInternalMap.delete(Qn),this.fire("remove",Mt,Pe),[Mt,Pe]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}function cn(Re){const ke=Re.next();return ke.done?null:ke.value}class Yn extends(0,Ct.Z)(A()){constructor(){super(),this._elements=new Set,this._nextEventLoopTimeout=null,this.set("isFocused",!1),this.set("focusedElement",null)}add(ke){if(this._elements.has(ke))throw new B.ZP("focustracker-add-element-already-exist",this);this.listenTo(ke,"focus",()=>this._focus(ke),{useCapture:!0}),this.listenTo(ke,"blur",()=>this._blur(),{useCapture:!0}),this._elements.add(ke)}remove(ke){ke===this.focusedElement&&this._blur(),this._elements.has(ke)&&(this.stopListening(ke),this._elements.delete(ke))}destroy(){this.stopListening()}_focus(ke){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=ke,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0)}}var on=p("./packages/ckeditor5-utils/src/keystrokehandler.ts");function ze(Re){return X(Re)?new Map(Re):function(ke){const Pe=new Map;for(const Te in ke)Pe.set(Te,ke[Te]);return Pe}(Re)}var Le=p("./packages/ckeditor5-utils/src/priorities.ts"),Ht=p("./packages/ckeditor5-utils/src/inserttopriorityarray.ts");const Mn=1e4;function tr(Re,ke,Pe,Te){if(Math.max(ke.length,Re.length)>Mn)return Re.slice(0,Pe).concat(ke).concat(Re.slice(Pe+Te,Re.length));{const Mt=Array.from(Re);return Mt.splice(Pe,Te,...ke),Mt}}function Sr(Re){return!!Re&&Re.length==1&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(Re)}function Xr(Re){return!!Re&&Re.length==1&&/[\ud800-\udbff]/.test(Re)}function gi(Re){return!!Re&&Re.length==1&&/[\udc00-\udfff]/.test(Re)}function Pi(Re,ke){return Xr(Re.charAt(ke-1))&&gi(Re.charAt(ke))}function ii(Re,ke){return Sr(Re.charAt(ke))}const vr=function(){const Re=/\p{Regional_Indicator}{2}/u.source,ke="(?:"+[/\p{Emoji}[\u{E0020}-\u{E007E}]+\u{E007F}/u,/\p{Emoji}\u{FE0F}?\u{20E3}/u,/\p{Emoji}\u{FE0F}/u,/(?=\p{General_Category=Other_Symbol})\p{Emoji}\p{Emoji_Modifier}*/u].map(Pe=>Pe.source).join("|")+")";return new RegExp(`${Re}|${ke}(?:\u200D${ke})*`,"ug")}();function at(Re,ke){const Pe=String(Re).matchAll(vr);return Array.from(Pe).some(Te=>Te.index<ke&&ke<Te.index+Te[0].length)}var it=p("./packages/ckeditor5-utils/src/version.ts")},"./packages/ckeditor5-utils/src/inserttopriorityarray.ts":(c,h,p)=>{"use strict";p.d(h,{Z:()=>k});var d=p("./packages/ckeditor5-utils/src/priorities.ts");function k(M,C){const w=d.Z.get(C.priority);for(let I=0;I<M.length;I++)if(d.Z.get(M[I].priority)<w)return void M.splice(I,0,C);M.push(C)}},"./packages/ckeditor5-utils/src/keyboard.ts":(c,h,p)=>{"use strict";p.d(h,{Cq:()=>F,Do:()=>w,XU:()=>B,Zt:()=>x,Zz:()=>U,dj:()=>N,mA:()=>D});var d=p("./packages/ckeditor5-utils/src/ckeditorerror.ts"),k=p("./packages/ckeditor5-utils/src/env.ts");const M={ctrl:"\u2303",cmd:"\u2318",alt:"\u2325",shift:"\u21E7"},C={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},w=function(){const T={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let u=65;u<=90;u++)T[String.fromCharCode(u).toLowerCase()]=u;for(let u=48;u<=57;u++)T[u-48]=u;for(let u=112;u<=123;u++)T["f"+(u-111)]=u;for(const u of"`-=[];',./\\")T[u]=u.charCodeAt(0);return T}(),I=Object.fromEntries(Object.entries(w).map(([T,u])=>[u,T.charAt(0).toUpperCase()+T.slice(1)]));function F(T){let u;if(typeof T=="string"){if(u=w[T.toLowerCase()],!u)throw new d.ZP("keyboard-unknown-key",null,{key:T})}else u=T.keyCode+(T.altKey?w.alt:0)+(T.ctrlKey?w.ctrl:0)+(T.shiftKey?w.shift:0)+(T.metaKey?w.cmd:0);return u}function U(T){return typeof T=="string"&&(T=function(u){return u.split("+").map(b=>b.trim())}(T)),T.map(u=>typeof u=="string"?function(b){if(b.endsWith("!"))return F(b.slice(0,-1));const E=F(b);return k.ZP.isMac&&E==w.ctrl?w.cmd:E}(u):u).reduce((u,b)=>b+u,0)}function B(T){let u=U(T);return Object.entries(k.ZP.isMac?M:C).reduce((b,[E,A])=>(u&w[E]&&(u&=~w[E],b+=A),b),"")+(u?I[u]:"")}function N(T){return T==w.arrowright||T==w.arrowleft||T==w.arrowup||T==w.arrowdown}function D(T,u){const b=u==="ltr";switch(T){case w.arrowleft:return b?"left":"right";case w.arrowright:return b?"right":"left";case w.arrowup:return"up";case w.arrowdown:return"down"}}function x(T,u){const b=D(T,u);return b==="down"||b==="right"}},"./packages/ckeditor5-utils/src/keystrokehandler.ts":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./packages/ckeditor5-utils/src/dom/emittermixin.ts"),k=p("./packages/ckeditor5-utils/src/keyboard.ts");class M{constructor(){this._listener=new((0,d.Z)())}listenTo(w){this._listener.listenTo(w,"keydown",(I,F)=>{this._listener.fire("_keydown:"+(0,k.Cq)(F),F)})}set(w,I,F={}){const U=(0,k.Zz)(w),B=F.priority;this._listener.listenTo(this._listener,"_keydown:"+U,(N,D)=>{I(D,()=>{D.preventDefault(),D.stopPropagation(),N.stop()}),N.return=!0},{priority:B})}press(w){return!!this._listener.fire("_keydown:"+(0,k.Cq)(w),w)}destroy(){this._listener.stopListening()}}},"./packages/ckeditor5-utils/src/priorities.ts":(c,h,p)=>{"use strict";p.d(h,{Z:()=>d});const d={get(k="normal"){return typeof k!="number"?this[k]||this.normal:k},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5}},"./packages/ckeditor5-utils/src/uid.ts":(c,h,p)=>{"use strict";p.d(h,{Z:()=>k});const d=new Array(256).fill("").map((M,C)=>("0"+C.toString(16)).slice(-2));function k(){const M=4294967296*Math.random()>>>0,C=4294967296*Math.random()>>>0,w=4294967296*Math.random()>>>0,I=4294967296*Math.random()>>>0;return"e"+d[M>>0&255]+d[M>>8&255]+d[M>>16&255]+d[M>>24&255]+d[C>>0&255]+d[C>>8&255]+d[C>>16&255]+d[C>>24&255]+d[w>>0&255]+d[w>>8&255]+d[w>>16&255]+d[w>>24&255]+d[I>>0&255]+d[I>>8&255]+d[I>>16&255]+d[I>>24&255]}},"./packages/ckeditor5-utils/src/version.ts":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./packages/ckeditor5-utils/src/ckeditorerror.ts");const k="36.0.1",M=k,C=typeof window=="object"?window:p.g;if(C.CKEDITOR_VERSION)throw new d.ZP("ckeditor-duplicated-modules",null);C.CKEDITOR_VERSION=k},"./packages/ckeditor5-widget/src/index.ts":(c,h,p)=>{"use strict";p.d(h,{s4:()=>x,Uo:()=>T,$L:()=>$e,WR:()=>Tn,e8:()=>bt,Ww:()=>Ce,KT:()=>$,id:()=>z,Qd:()=>u,em:()=>R,l6:()=>H,XC:()=>b,sC:()=>V,$n:()=>ee});var d=p("./packages/ckeditor5-core/src/index.ts"),k=p("./packages/ckeditor5-engine/src/index.ts"),M=p("./packages/ckeditor5-typing/src/index.ts"),C=p("./packages/ckeditor5-utils/src/index.ts"),w=p("./packages/ckeditor5-ui/src/index.ts"),I=p("./packages/ckeditor5-enter/src/index.ts");class F extends(0,C.ln)(){constructor(){super(),this._stack=[]}add(ot,Je){const wt=this._stack,ft=wt[0];this._insertDescriptor(ot);const vn=wt[0];ft===vn||U(ft,vn)||this.fire("change:top",{oldDescriptor:ft,newDescriptor:vn,writer:Je})}remove(ot,Je){const wt=this._stack,ft=wt[0];this._removeDescriptor(ot);const vn=wt[0];ft===vn||U(ft,vn)||this.fire("change:top",{oldDescriptor:ft,newDescriptor:vn,writer:Je})}_insertDescriptor(ot){const Je=this._stack,wt=Je.findIndex(vn=>vn.id===ot.id);if(U(ot,Je[wt]))return;wt>-1&&Je.splice(wt,1);let ft=0;for(;Je[ft]&&B(Je[ft],ot);)ft++;Je.splice(ft,0,ot)}_removeDescriptor(ot){const Je=this._stack,wt=Je.findIndex(ft=>ft.id===ot);wt>-1&&Je.splice(wt,1)}}function U(ht,ot){return ht&&ot&&ht.priority==ot.priority&&N(ht.classes)==N(ot.classes)}function B(ht,ot){return ht.priority>ot.priority||!(ht.priority<ot.priority)&&N(ht.classes)>N(ot.classes)}function N(ht){return Array.isArray(ht)?ht.sort().join(","):ht}const D='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M4 0v1H1v3H0V.5A.5.5 0 0 1 .5 0H4zm8 0h3.5a.5.5 0 0 1 .5.5V4h-1V1h-3V0zM4 16H.5a.5.5 0 0 1-.5-.5V12h1v3h3v1zm8 0v-1h3v-3h1v3.5a.5.5 0 0 1-.5.5H12z"/><path fill-opacity=".256" d="M1 1h14v14H1z"/><g class="ck-icon__selected-indicator"><path d="M7 0h2v1H7V0zM0 7h1v2H0V7zm15 0h1v2h-1V7zm-8 8h2v1H7v-1z"/><path fill-opacity=".254" d="M1 1h14v14H1z"/></g></svg>',x="ck-widget",T="ck-widget_selected";function u(ht){return!!ht.is("element")&&!!ht.getCustomProperty("widget")}function b(ht,ot,Je={}){if(!ht.is("containerElement"))throw new C.Bb("widget-to-widget-wrong-element-type",null,{element:ht});return ot.setAttribute("contenteditable","false",ht),ot.addClass(x,ht),ot.setCustomProperty("widget",!0,ht),ht.getFillerOffset=q,ot.setCustomProperty("widgetLabel",[],ht),Je.label&&H(ht,Je.label),Je.hasSelectionHandle&&function(wt,ft){const vn=ft.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(ut){const Wt=this.toDomElement(ut),ae=new w.mO;return ae.set("content",D),ae.render(),Wt.appendChild(ae.element),Wt});ft.insert(ft.createPositionAt(wt,0),vn),ft.addClass(["ck-widget_with-selection-handle"],wt)}(ht,ot),R(ht,ot),ht}function E(ht,ot,Je){if(ot.classes&&Je.addClass((0,C.qo)(ot.classes),ht),ot.attributes)for(const wt in ot.attributes)Je.setAttribute(wt,ot.attributes[wt],ht)}function A(ht,ot,Je){if(ot.classes&&Je.removeClass((0,C.qo)(ot.classes),ht),ot.attributes)for(const wt in ot.attributes)Je.removeAttribute(wt,ht)}function R(ht,ot,Je=E,wt=A){const ft=new F;ft.on("change:top",(vn,ut)=>{ut.oldDescriptor&&wt(ht,ut.oldDescriptor,ut.writer),ut.newDescriptor&&Je(ht,ut.newDescriptor,ut.writer)}),ot.setCustomProperty("addHighlight",(vn,ut,Wt)=>ft.add(ut,Wt),ht),ot.setCustomProperty("removeHighlight",(vn,ut,Wt)=>ft.remove(ut,Wt),ht)}function H(ht,ot){ht.getCustomProperty("widgetLabel").push(ot)}function z(ht){return ht.getCustomProperty("widgetLabel").reduce((ot,Je)=>typeof Je=="function"?ot?ot+". "+Je():Je():ot?ot+". "+Je:Je,"")}function V(ht,ot,Je={}){return ot.addClass(["ck-editor__editable","ck-editor__nested-editable"],ht),ot.setAttribute("role","textbox",ht),Je.label&&ot.setAttribute("aria-label",Je.label,ht),ot.setAttribute("contenteditable",ht.isReadOnly?"false":"true",ht),ht.on("change:isReadOnly",(wt,ft,vn)=>{ot.setAttribute("contenteditable",vn?"false":"true",ht)}),ht.on("change:isFocused",(wt,ft,vn)=>{vn?ot.addClass("ck-editor__nested-editable_focused",ht):ot.removeClass("ck-editor__nested-editable_focused",ht)}),R(ht,ot),ht}function $(ht,ot){const Je=ht.getSelectedElement();if(Je){const wt=pe(ht);if(wt)return ot.createRange(ot.createPositionAt(Je,wt))}return(0,k.KT)(ht,ot)}function ee(ht,ot){return(Je,wt)=>{const{mapper:ft,viewPosition:vn}=wt,ut=ft.findMappedViewAncestor(vn);if(!ot(ut))return;const Wt=ft.toModelElement(ut);wt.modelPosition=ht.createPositionAt(Wt,vn.isAtStart?"before":"after")}}function q(){return null}const oe="widget-type-around";function X(ht,ot,Je){return!!ht&&u(ht)&&!Je.isInline(ot)}function pe(ht){return ht.getAttribute(oe)}var Ie=p("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),se=p.n(Ie),be=p("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-widget/theme/widgettypearound.css"),fe={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};se()(be.Z,fe),be.Z.locals;const ue=["before","after"],we=new DOMParser().parseFromString('<svg viewBox="0 0 10 8" xmlns="http://www.w3.org/2000/svg"><path d="M9.055.263v3.972h-6.77M1 4.216l2-2.038m-2 2 2 2.038"/></svg>',"image/svg+xml").firstChild,Me="ck-widget__type-around_disabled";class Ce extends d.Sy{static get pluginName(){return"WidgetTypeAround"}static get requires(){return[I.C,M.HG]}constructor(ot){super(ot),this._currentFakeCaretModelElement=null}init(){const ot=this.editor,Je=ot.editing.view;this.on("change:isEnabled",(wt,ft,vn)=>{Je.change(ut=>{for(const Wt of Je.document.roots)vn?ut.removeClass(Me,Wt):ut.addClass(Me,Wt)}),vn||ot.model.change(ut=>{ut.removeSelectionAttribute(oe)})}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){super.destroy(),this._currentFakeCaretModelElement=null}_insertParagraph(ot,Je){const wt=this.editor,ft=wt.editing.view,vn=wt.model.schema.getAttributesWithProperty(ot,"copyOnReplace",!0);wt.execute("insertParagraph",{position:wt.model.createPositionAt(ot,Je),attributes:vn}),ft.focus(),ft.scrollToTheSelection()}_listenToIfEnabled(ot,Je,wt,ft){this.listenTo(ot,Je,(...vn)=>{this.isEnabled&&wt(...vn)},ft)}_insertParagraphAccordingToFakeCaretPosition(){const ot=this.editor.model.document.selection,Je=pe(ot);if(!Je)return!1;const wt=ot.getSelectedElement();return this._insertParagraph(wt,Je),!0}_enableTypeAroundUIInjection(){const ot=this.editor,Je=ot.model.schema,wt=ot.locale.t,ft={before:wt("Insert paragraph before block"),after:wt("Insert paragraph after block")};ot.editing.downcastDispatcher.on("insert",(vn,ut,Wt)=>{const ae=Wt.mapper.toViewElement(ut.item);ae&&X(ae,ut.item,Je)&&(function(ne,ge,ye){const Xe=ne.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(Ze){const lt=this.toDomElement(Ze);return function(_t,zt){for(const Vt of ue){const sn=new w.YS({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${Vt}`],title:zt[Vt],"aria-hidden":"true"},children:[_t.ownerDocument.importNode(we,!0)]});_t.appendChild(sn.render())}}(lt,ge),function(_t){const zt=new w.YS({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});_t.appendChild(zt.render())}(lt),lt});ne.insert(ne.createPositionAt(ye,"end"),Xe)}(Wt.writer,ft,ae),ae.getCustomProperty("widgetLabel").push(()=>this.isEnabled?wt("Press Enter to type after or press Shift + Enter to type before the widget"):""))},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const ot=this.editor,Je=ot.model,wt=Je.document.selection,ft=Je.schema,vn=ot.editing.view;function ut(Wt){return`ck-widget_type-around_show-fake-caret_${Wt}`}this._listenToIfEnabled(vn.document,"arrowKey",(Wt,ae)=>{this._handleArrowKeyPress(Wt,ae)},{context:[u,"$text"],priority:"high"}),this._listenToIfEnabled(wt,"change:range",(Wt,ae)=>{ae.directChange&&ot.model.change(ne=>{ne.removeSelectionAttribute(oe)})}),this._listenToIfEnabled(Je.document,"change:data",()=>{const Wt=wt.getSelectedElement();Wt&&X(ot.editing.mapper.toViewElement(Wt),Wt,ft)||ot.model.change(ae=>{ae.removeSelectionAttribute(oe)})}),this._listenToIfEnabled(ot.editing.downcastDispatcher,"selection",(Wt,ae,ne)=>{const ge=ne.writer;if(this._currentFakeCaretModelElement){const lt=ne.mapper.toViewElement(this._currentFakeCaretModelElement);lt&&(ge.removeClass(ue.map(ut),lt),this._currentFakeCaretModelElement=null)}const ye=ae.selection.getSelectedElement();if(!ye)return;const Xe=ne.mapper.toViewElement(ye);if(!X(Xe,ye,ft))return;const Ze=pe(ae.selection);Ze&&(ge.addClass(ut(Ze),Xe),this._currentFakeCaretModelElement=ye)}),this._listenToIfEnabled(ot.ui.focusTracker,"change:isFocused",(Wt,ae,ne)=>{ne||ot.model.change(ge=>{ge.removeSelectionAttribute(oe)})})}_handleArrowKeyPress(ot,Je){const wt=this.editor,ft=wt.model,vn=ft.document.selection,ut=ft.schema,Wt=wt.editing.view,ae=Je.keyCode,ne=(0,C.Zt)(ae,wt.locale.contentLanguageDirection),ge=Wt.document.selection.getSelectedElement();let ye;X(ge,wt.editing.mapper.toModelElement(ge),ut)?ye=this._handleArrowKeyPressOnSelectedWidget(ne):vn.isCollapsed?ye=this._handleArrowKeyPressWhenSelectionNextToAWidget(ne):Je.shiftKey||(ye=this._handleArrowKeyPressWhenNonCollapsedSelection(ne)),ye&&(Je.preventDefault(),ot.stop())}_handleArrowKeyPressOnSelectedWidget(ot){const Je=this.editor.model,wt=pe(Je.document.selection);return Je.change(ft=>wt?wt!==(ot?"after":"before")?(ft.removeSelectionAttribute(oe),!0):!1:(ft.setSelectionAttribute(oe,ot?"after":"before"),!0))}_handleArrowKeyPressWhenSelectionNextToAWidget(ot){const Je=this.editor,wt=Je.model,ft=wt.schema,vn=Je.plugins.get("Widget"),ut=vn._getObjectElementNextToSelection(ot);return!!X(Je.editing.mapper.toViewElement(ut),ut,ft)&&(wt.change(Wt=>{vn._setSelectionOverElement(ut),Wt.setSelectionAttribute(oe,ot?"before":"after")}),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(ot){const Je=this.editor,wt=Je.model,ft=wt.schema,vn=Je.editing.mapper,ut=wt.document.selection,Wt=ot?ut.getLastPosition().nodeBefore:ut.getFirstPosition().nodeAfter;return!!X(vn.toViewElement(Wt),Wt,ft)&&(wt.change(ae=>{ae.setSelection(Wt,"on"),ae.setSelectionAttribute(oe,ot?"after":"before")}),!0)}_enableInsertingParagraphsOnButtonClick(){const ot=this.editor,Je=ot.editing.view;this._listenToIfEnabled(Je.document,"mousedown",(wt,ft)=>{const vn=ft.domTarget.closest(".ck-widget__type-around__button");if(!vn)return;const ut=function(ne){return ne.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(vn),Wt=function(ne,ge){const ye=ne.closest(".ck-widget");return ge.mapDomToView(ye)}(vn,Je.domConverter),ae=ot.editing.mapper.toModelElement(Wt);this._insertParagraph(ae,ut),ft.preventDefault(),wt.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const ot=this.editor,Je=ot.model.document.selection,wt=ot.editing.view;this._listenToIfEnabled(wt.document,"enter",(ft,vn)=>{if(ft.eventPhase!="atTarget")return;const ut=Je.getSelectedElement(),Wt=ot.editing.mapper.toViewElement(ut),ae=ot.model.schema;let ne;this._insertParagraphAccordingToFakeCaretPosition()?ne=!0:X(Wt,ut,ae)&&(this._insertParagraph(ut,vn.isSoft?"before":"after"),ne=!0),ne&&(vn.preventDefault(),ft.stop())},{context:u})}_enableInsertingParagraphsOnTypingKeystroke(){const ot=this.editor.editing.view.document;this._listenToIfEnabled(ot,"insertText",(Je,wt)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(wt.selection=ot.selection)},{priority:"high"}),C.OB.isAndroid?this._listenToIfEnabled(ot,"keydown",(Je,wt)=>{wt.keyCode==229&&this._insertParagraphAccordingToFakeCaretPosition()}):this._listenToIfEnabled(ot,"compositionstart",()=>{this._insertParagraphAccordingToFakeCaretPosition()},{priority:"high"})}_enableDeleteIntegration(){const ot=this.editor,Je=ot.editing.view,wt=ot.model,ft=wt.schema;this._listenToIfEnabled(Je.document,"delete",(vn,ut)=>{if(vn.eventPhase!="atTarget")return;const Wt=pe(wt.document.selection);if(!Wt)return;const ae=ut.direction,ne=wt.document.selection.getSelectedElement(),ge=ae=="forward";if(Wt==="before"===ge)ot.execute("delete",{selection:wt.createSelection(ne,"on")});else{const ye=ft.getNearestSelectionRange(wt.createPositionAt(ne,Wt),ae);if(ye)if(ye.isCollapsed){const Xe=wt.createSelection(ye.start);if(wt.modifySelection(Xe,{direction:ae}),Xe.focus.isEqual(ye.start)){const Ze=function(lt,_t){let zt=_t;for(const Vt of _t.getAncestors({parentFirst:!0})){if(Vt.childCount>1||lt.isLimit(Vt))break;zt=Vt}return zt}(ft,ye.start.parent);wt.deleteContent(wt.createSelection(Ze,"on"),{doNotAutoparagraph:!0})}else wt.change(Ze=>{Ze.setSelection(ye),ot.execute(ge?"deleteForward":"delete")})}else wt.change(Xe=>{Xe.setSelection(ye),ot.execute(ge?"deleteForward":"delete")})}ut.preventDefault(),vn.stop()},{context:u})}_enableInsertContentIntegration(){const ot=this.editor,Je=this.editor.model,wt=Je.document.selection;this._listenToIfEnabled(ot.model,"insertContent",(ft,[vn,ut])=>{if(ut&&!ut.is("documentSelection"))return;const Wt=pe(wt);return Wt?(ft.stop(),Je.change(ae=>{const ne=wt.getSelectedElement(),ge=Je.createPositionAt(ne,Wt),ye=ae.createSelection(ge),Xe=Je.insertContent(vn,ye);return ae.setSelection(ye),Xe})):void 0},{priority:"high"})}_enableInsertObjectIntegration(){const ot=this.editor,Je=this.editor.model.document.selection;this._listenToIfEnabled(ot.model,"insertObject",(wt,ft)=>{const[,vn,,ut={}]=ft;if(vn&&!vn.is("documentSelection"))return;const Wt=pe(Je);Wt&&(ut.findOptimalPosition=Wt,ft[3]=ut)},{priority:"high"})}_enableDeleteContentIntegration(){const ot=this.editor,Je=this.editor.model.document.selection;this._listenToIfEnabled(ot.model,"deleteContent",(wt,[ft])=>{ft&&!ft.is("documentSelection")||pe(Je)&&wt.stop()},{priority:"high"})}}function Ne(ht){const ot=ht.model;return(Je,wt)=>{const ft=wt.keyCode==C.Do.arrowup,vn=wt.keyCode==C.Do.arrowdown,ut=wt.shiftKey,Wt=ot.document.selection;if(!ft&&!vn)return;const ae=vn;if(ut&&function(ge,ye){return!ge.isCollapsed&&ge.isBackward==ye}(Wt,ae))return;const ne=function(ge,ye,Xe){const Ze=ge.model;if(Xe){const lt=ye.isCollapsed?ye.focus:ye.getLastPosition(),_t=Ye(Ze,lt,"forward");if(!_t)return null;const zt=Ze.createRange(lt,_t),Vt=mt(Ze.schema,zt,"backward");return Vt?Ze.createRange(lt,Vt):null}{const lt=ye.isCollapsed?ye.focus:ye.getFirstPosition(),_t=Ye(Ze,lt,"backward");if(!_t)return null;const zt=Ze.createRange(_t,lt),Vt=mt(Ze.schema,zt,"forward");return Vt?Ze.createRange(Vt,lt):null}}(ht,Wt,ae);if(ne){if(ne.isCollapsed&&(Wt.isCollapsed||ut))return;(ne.isCollapsed||function(ge,ye,Xe){const Ze=ge.model,lt=ge.view.domConverter;if(Xe){const yn=Ze.createSelection(ye.start);Ze.modifySelection(yn),yn.focus.isAtEnd||ye.start.isEqual(yn.focus)||(ye=Ze.createRange(yn.focus,ye.end))}const _t=ge.mapper.toViewRange(ye),zt=lt.viewRangeToDom(_t),Vt=C.UL.getDomRangeRects(zt);let sn;for(const yn of Vt)if(sn!==void 0){if(Math.round(yn.top)>=sn)return!1;sn=Math.max(sn,Math.round(yn.bottom))}else sn=Math.round(yn.bottom);return!0}(ht,ne,ae))&&(ot.change(ge=>{const ye=ae?ne.end:ne.start;if(ut){const Xe=ot.createSelection(Wt.anchor);Xe.setFocus(ye),ge.setSelection(Xe)}else ge.setSelection(ye)}),Je.stop(),wt.preventDefault(),wt.stopPropagation())}}}function Ye(ht,ot,Je){const wt=ht.schema,ft=ht.createRangeIn(ot.root),vn=Je=="forward"?"elementStart":"elementEnd";for(const{previousPosition:ut,item:Wt,type:ae}of ft.getWalker({startPosition:ot,direction:Je})){if(wt.isLimit(Wt)&&!wt.isInline(Wt))return ut;if(ae==vn&&wt.isBlock(Wt))return null}return null}function mt(ht,ot,Je){const wt=Je=="backward"?ot.end:ot.start;if(ht.checkChild(wt,"$text"))return wt;for(const{nextPosition:ft}of ot.getWalker({direction:Je}))if(ht.checkChild(ft,"$text"))return ft;return null}var Ct=p("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-widget/theme/widget.css"),ln={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};se()(Ct.Z,ln),Ct.Z.locals;class $e extends d.Sy{static get pluginName(){return"Widget"}static get requires(){return[Ce,M.HG]}init(){const ot=this.editor,Je=ot.editing.view,wt=Je.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",(ft,vn,ut)=>{const Wt=ut.writer,ae=vn.selection;if(ae.isCollapsed)return;const ne=ae.getSelectedElement();if(!ne)return;const ge=ot.editing.mapper.toViewElement(ne);u(ge)&&ut.consumable.consume(ae,"selection")&&Wt.setSelection(Wt.createRangeOn(ge),{fake:!0,label:z(ge)})}),this.editor.editing.downcastDispatcher.on("selection",(ft,vn,ut)=>{this._clearPreviouslySelectedWidgets(ut.writer);const Wt=ut.writer,ae=Wt.document.selection;let ne=null;for(const ge of ae.getRanges())for(const ye of ge){const Xe=ye.item;u(Xe)&&!Qe(Xe,ne)&&(Wt.addClass(T,Xe),this._previouslySelected.add(Xe),ne=Xe)}},{priority:"low"}),Je.addObserver(k.dM),this.listenTo(wt,"mousedown",(...ft)=>this._onMousedown(...ft)),this.listenTo(wt,"arrowKey",(...ft)=>{this._handleSelectionChangeOnArrowKeyPress(...ft)},{context:[u,"$text"]}),this.listenTo(wt,"arrowKey",(...ft)=>{this._preventDefaultOnArrowKeyPress(...ft)},{context:"$root"}),this.listenTo(wt,"arrowKey",Ne(this.editor.editing),{context:"$text"}),this.listenTo(wt,"delete",(ft,vn)=>{this._handleDelete(vn.direction=="forward")&&(vn.preventDefault(),ft.stop())},{context:"$root"})}_onMousedown(ot,Je){const wt=this.editor,ft=wt.editing.view,vn=ft.document;let ut=Je.target;if(function(ae){let ne=ae;for(;ne;){if(ne.is("editableElement")&&!ne.is("rootElement"))return!0;if(u(ne))return!1;ne=ne.parent}return!1}(ut)){if((C.OB.isSafari||C.OB.isGecko)&&Je.domEvent.detail>=3){const ae=wt.editing.mapper,ne=ut.is("attributeElement")?ut.findAncestor(ye=>!ye.is("attributeElement")):ut,ge=ae.toModelElement(ne);Je.preventDefault(),this.editor.model.change(ye=>{ye.setSelection(ge,"in")})}return}if(!u(ut)&&(ut=ut.findAncestor(u),!ut))return;C.OB.isAndroid&&Je.preventDefault(),vn.isFocused||ft.focus();const Wt=wt.editing.mapper.toModelElement(ut);this._setSelectionOverElement(Wt)}_handleSelectionChangeOnArrowKeyPress(ot,Je){const wt=Je.keyCode,ft=this.editor.model,vn=ft.schema,ut=ft.document.selection,Wt=ut.getSelectedElement(),ae=(0,C.mA)(wt,this.editor.locale.contentLanguageDirection),ne=ae=="down"||ae=="right",ge=ae=="up"||ae=="down";if(Wt&&vn.isObject(Wt)){const Xe=ne?ut.getLastPosition():ut.getFirstPosition(),Ze=vn.getNearestSelectionRange(Xe,ne?"forward":"backward");return void(Ze&&(ft.change(lt=>{lt.setSelection(Ze)}),Je.preventDefault(),ot.stop()))}if(!ut.isCollapsed&&!Je.shiftKey){const Xe=ut.getFirstPosition(),Ze=ut.getLastPosition(),lt=Xe.nodeAfter,_t=Ze.nodeBefore;return void((lt&&vn.isObject(lt)||_t&&vn.isObject(_t))&&(ft.change(zt=>{zt.setSelection(ne?Ze:Xe)}),Je.preventDefault(),ot.stop()))}if(!ut.isCollapsed)return;const ye=this._getObjectElementNextToSelection(ne);if(ye&&vn.isObject(ye)){if(vn.isInline(ye)&&ge)return;this._setSelectionOverElement(ye),Je.preventDefault(),ot.stop()}}_preventDefaultOnArrowKeyPress(ot,Je){const wt=this.editor.model,ft=wt.schema,vn=wt.document.selection.getSelectedElement();vn&&ft.isObject(vn)&&(Je.preventDefault(),ot.stop())}_handleDelete(ot){if(this.editor.isReadOnly)return;const Je=this.editor.model.document.selection;if(!Je.isCollapsed)return;const wt=this._getObjectElementNextToSelection(ot);return wt?(this.editor.model.change(ft=>{let vn=Je.anchor.parent;for(;vn.isEmpty;){const ut=vn;vn=ut.parent,ft.remove(ut)}this._setSelectionOverElement(wt)}),!0):void 0}_setSelectionOverElement(ot){this.editor.model.change(Je=>{Je.setSelection(Je.createRangeOn(ot))})}_getObjectElementNextToSelection(ot){const Je=this.editor.model,wt=Je.schema,ft=Je.document.selection,vn=Je.createSelection(ft);if(Je.modifySelection(vn,{direction:ot?"forward":"backward"}),vn.isEqual(ft))return null;const ut=ot?vn.focus.nodeBefore:vn.focus.nodeAfter;return ut&&wt.isObject(ut)?ut:null}_clearPreviouslySelectedWidgets(ot){for(const Je of this._previouslySelected)ot.removeClass(T,Je);this._previouslySelected.clear()}}function Qe(ht,ot){return!!ot&&Array.from(ht.getAncestors()).includes(ot)}class bt extends d.Sy{static get requires(){return[w.WB]}static get pluginName(){return"WidgetToolbarRepository"}init(){const ot=this.editor;if(ot.plugins.has("BalloonToolbar")){const Je=ot.plugins.get("BalloonToolbar");this.listenTo(Je,"show",wt=>{(function(ft){const vn=ft.getSelectedElement();return!(!vn||!u(vn))})(ot.editing.view.document.selection)&&wt.stop()},{priority:"high"})}this._toolbarDefinitions=new Map,this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",()=>{this._updateToolbarsVisibility()}),this.listenTo(ot.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(ot.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){super.destroy();for(const ot of this._toolbarDefinitions.values())ot.view.destroy()}register(ot,{ariaLabel:Je,items:wt,getRelatedElement:ft,balloonClassName:vn="ck-toolbar-container"}){if(!wt.length)return void(0,C.KE)("widget-toolbar-no-items",{toolbarId:ot});const ut=this.editor,Wt=ut.t,ae=new w.jB(ut.locale);if(ae.ariaLabel=Je||Wt("Widget toolbar"),this._toolbarDefinitions.has(ot))throw new C.Bb("widget-toolbar-duplicated",this,{toolbarId:ot});const ne={view:ae,getRelatedElement:ft,balloonClassName:vn,itemsConfig:wt,initialized:!1};ut.ui.addToolbar(ae,{isContextual:!0,beforeFocus:()=>{const ge=ft(ut.editing.view.document.selection);ge&&this._showToolbar(ne,ge)},afterBlur:()=>{this._hideToolbar(ne)}}),this._toolbarDefinitions.set(ot,ne)}_updateToolbarsVisibility(){let ot=0,Je=null,wt=null;for(const ft of this._toolbarDefinitions.values()){const vn=ft.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&vn)if(this.editor.ui.focusTracker.isFocused){const ut=vn.getAncestors().length;ut>ot&&(ot=ut,Je=vn,wt=ft)}else this._isToolbarVisible(ft)&&this._hideToolbar(ft);else this._isToolbarInBalloon(ft)&&this._hideToolbar(ft)}wt&&this._showToolbar(wt,Je)}_hideToolbar(ot){this._balloon.remove(ot.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(ot,Je){this._isToolbarVisible(ot)?It(this.editor,Je):this._isToolbarInBalloon(ot)||(ot.initialized||(ot.initialized=!0,ot.view.fillFromConfig(ot.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:ot.view,position:mn(this.editor,Je),balloonClassName:ot.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const wt of this._toolbarDefinitions.values())if(this._isToolbarVisible(wt)){const ft=wt.getRelatedElement(this.editor.editing.view.document.selection);It(this.editor,ft)}}))}_isToolbarVisible(ot){return this._balloon.visibleView===ot.view}_isToolbarInBalloon(ot){return this._balloon.hasView(ot.view)}}function It(ht,ot){const Je=ht.plugins.get("ContextualBalloon"),wt=mn(ht,ot);Je.updatePosition(wt)}function mn(ht,ot){const Je=ht.editing.view,wt=w.no.defaultPositions;return{target:Je.domConverter.mapViewToDom(ot),positions:[wt.northArrowSouth,wt.northArrowSouthWest,wt.northArrowSouthEast,wt.southArrowNorth,wt.southArrowNorthWest,wt.southArrowNorthEast,wt.viewportStickyNorth]}}class un extends(0,C.Re)(){constructor(ot){super(),this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=ot,this._referenceCoordinates=null}get originalWidth(){return this._originalWidth}get originalHeight(){return this._originalHeight}get originalWidthPercents(){return this._originalWidthPercents}get aspectRatio(){return this._aspectRatio}begin(ot,Je,wt){const ft=new C.UL(Je);this.activeHandlePosition=function(ut){const Wt=["top-left","top-right","bottom-right","bottom-left"];for(const ae of Wt)if(ut.classList.contains(Be(ae)))return ae}(ot),this._referenceCoordinates=function(ut,Wt){const ae=new C.UL(ut),ne=Wt.split("-"),ge={x:ne[1]=="right"?ae.right:ae.left,y:ne[0]=="bottom"?ae.bottom:ae.top};return ge.x+=ut.ownerDocument.defaultView.scrollX,ge.y+=ut.ownerDocument.defaultView.scrollY,ge}(Je,function(ut){const Wt=ut.split("-"),ae={top:"bottom",bottom:"top",left:"right",right:"left"};return`${ae[Wt[0]]}-${ae[Wt[1]]}`}(this.activeHandlePosition)),this._originalWidth=ft.width,this._originalHeight=ft.height,this._aspectRatio=ft.width/ft.height;const vn=wt.style.width;vn&&vn.match(/^\d+(\.\d*)?%$/)?this._originalWidthPercents=parseFloat(vn):this._originalWidthPercents=function(ut,Wt){const ae=ut.parentElement,ne=parseFloat(ae.ownerDocument.defaultView.getComputedStyle(ae).width);return Wt.width/ne*100}(wt,ft)}update(ot){this.proposedWidth=ot.width,this.proposedHeight=ot.height,this.proposedWidthPercents=ot.widthPercents,this.proposedHandleHostWidth=ot.handleHostWidth,this.proposedHandleHostHeight=ot.handleHostHeight}}function Be(ht){return`ck-widget__resizer__handle-${ht}`}class je extends w.G7{constructor(){super();const ot=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",ot.to("_viewPosition",Je=>Je?`ck-orientation-${Je}`:"")],style:{display:ot.if("_isVisible","none",Je=>!Je)}},children:[{text:ot.to("_label")}]})}_bindToState(ot,Je){this.bind("_isVisible").to(Je,"proposedWidth",Je,"proposedHeight",(wt,ft)=>wt!==null&&ft!==null),this.bind("_label").to(Je,"proposedHandleHostWidth",Je,"proposedHandleHostHeight",Je,"proposedWidthPercents",(wt,ft,vn)=>ot.unit==="px"?`${wt}\xD7${ft}`:`${vn}%`),this.bind("_viewPosition").to(Je,"activeHandlePosition",Je,"proposedHandleHostWidth",Je,"proposedHandleHostHeight",(wt,ft,vn)=>ft<50||vn<50?"above-center":wt)}_dismiss(){this.unbind(),this._isVisible=!1}}class $t extends(0,C.Re)(){constructor(ot){super(),this._options=ot,this._viewResizerWrapper=null,this.set("isEnabled",!0),this.set("isSelected",!1),this.bind("isVisible").to(this,"isEnabled",this,"isSelected",(Je,wt)=>Je&&wt),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",Je=>{this.state.proposedWidth||this.state.proposedWidthPercents||(this._cleanup(),Je.stop())},{priority:"high"})}get state(){return this._state}show(){this._options.editor.editing.view.change(ot=>{ot.removeClass("ck-hidden",this._viewResizerWrapper)})}hide(){this._options.editor.editing.view.change(ot=>{ot.addClass("ck-hidden",this._viewResizerWrapper)})}attach(){const ot=this,Je=this._options.viewElement;this._options.editor.editing.view.change(wt=>{const ft=wt.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},function(vn){const ut=this.toDomElement(vn);return ot._appendHandles(ut),ot._appendSizeUI(ut),ut});wt.insert(wt.createPositionAt(Je,"end"),ft),wt.addClass("ck-widget_with-resizer",Je),this._viewResizerWrapper=ft,this.isVisible||this.hide()}),this.on("change:isVisible",()=>{this.isVisible?(this.show(),this.redraw()):this.hide()})}begin(ot){this._state=new un(this._options),this._sizeView._bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(ot,this._getHandleHost(),this._getResizeHost())}updateSize(ot){const Je=this._proposeNewSize(ot);this._options.editor.editing.view.change(ae=>{const ne=this._options.unit||"%",ge=(ne==="%"?Je.widthPercents:Je.width)+ne;ae.setStyle("width",ge,this._options.viewElement)});const wt=this._getHandleHost(),ft=new C.UL(wt),vn=Math.round(ft.width),ut=Math.round(ft.height),Wt=new C.UL(wt);Je.width=Math.round(Wt.width),Je.height=Math.round(Wt.height),this.redraw(ft),this.state.update({...Je,handleHostWidth:vn,handleHostHeight:ut})}commit(){const ot=this._options.unit||"%",Je=(ot==="%"?this.state.proposedWidthPercents:this.state.proposedWidth)+ot;this._options.editor.editing.view.change(()=>{this._cleanup(),this._options.onCommit(Je)})}cancel(){this._cleanup()}destroy(){this.cancel()}redraw(ot){const Je=this._domResizerWrapper;if(!((wt=Je)&&wt.ownerDocument&&wt.ownerDocument.contains(wt)))return;var wt;const ft=Je.parentElement,vn=this._getHandleHost(),ut=this._viewResizerWrapper,Wt=[ut.getStyle("width"),ut.getStyle("height"),ut.getStyle("left"),ut.getStyle("top")];let ae;if(ft.isSameNode(vn)){const ne=ot||new C.UL(vn);ae=[ne.width+"px",ne.height+"px",void 0,void 0]}else ae=[vn.offsetWidth+"px",vn.offsetHeight+"px",vn.offsetLeft+"px",vn.offsetTop+"px"];(0,C.Rt)(Wt,ae)!=="same"&&this._options.editor.editing.view.change(ne=>{ne.setStyle({width:ae[0],height:ae[1],left:ae[2],top:ae[3]},ut)})}containsHandle(ot){return this._domResizerWrapper.contains(ot)}static isResizeHandle(ot){return ot.classList.contains("ck-widget__resizer__handle")}_cleanup(){this._sizeView._dismiss(),this._options.editor.editing.view.change(ot=>{ot.setStyle("width",this._initialViewWidth,this._options.viewElement)})}_proposeNewSize(ot){const Je=this.state,wt={x:(ft=ot).pageX,y:ft.pageY};var ft;const vn=!this._options.isCentered||this._options.isCentered(this),ut={x:Je._referenceCoordinates.x-(wt.x+Je.originalWidth),y:wt.y-Je.originalHeight-Je._referenceCoordinates.y};vn&&Je.activeHandlePosition.endsWith("-right")&&(ut.x=wt.x-(Je._referenceCoordinates.x+Je.originalWidth)),vn&&(ut.x*=2);let Wt=Math.abs(Je.originalWidth+ut.x),ae=Math.abs(Je.originalHeight+ut.y);return(Wt/Je.aspectRatio>ae?"width":"height")=="width"?ae=Wt/Je.aspectRatio:Wt=ae*Je.aspectRatio,{width:Math.round(Wt),height:Math.round(ae),widthPercents:Math.min(Math.round(Je.originalWidthPercents/Je.originalWidth*Wt*100)/100,100)}}_getResizeHost(){const ot=this._domResizerWrapper.parentElement;return this._options.getResizeHost(ot)}_getHandleHost(){const ot=this._domResizerWrapper.parentElement;return this._options.getHandleHost(ot)}get _domResizerWrapper(){return this._options.editor.editing.view.domConverter.mapViewToDom(this._viewResizerWrapper)}_appendHandles(ot){const Je=["top-left","top-right","bottom-right","bottom-left"];for(const ft of Je)ot.appendChild(new w.YS({tag:"div",attributes:{class:"ck-widget__resizer__handle "+(wt=ft,`ck-widget__resizer__handle-${wt}`)}}).render());var wt}_appendSizeUI(ot){this._sizeView=new je,this._sizeView.render(),ot.appendChild(this._sizeView.element)}}var et=p("./node_modules/lodash-es/throttle.js"),Kt=p("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-widget/theme/widgetresize.css"),kn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};se()(Kt.Z,kn),Kt.Z.locals;class Tn extends d.Sy{static get pluginName(){return"WidgetResize"}init(){const ot=this.editor.editing,Je=C.CO.window.document;this.set("selectedResizer",null),this.set("_activeResizer",null),this._resizers=new Map,ot.view.addObserver(k.dM),this._observer=new((0,C.Xu)()),this.listenTo(ot.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(Je,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(Je,"mouseup",this._mouseUpListener.bind(this)),this._redrawSelectedResizerThrottled=(0,et.Z)(()=>this.redrawSelectedResizer(),200),this.editor.ui.on("update",this._redrawSelectedResizerThrottled),this.editor.model.document.on("change",()=>{for(const[ft,vn]of this._resizers)ft.isAttached()||(this._resizers.delete(ft),vn.destroy())},{priority:"lowest"}),this._observer.listenTo(C.CO.window,"resize",this._redrawSelectedResizerThrottled);const wt=this.editor.editing.view.document.selection;wt.on("change",()=>{const ft=wt.getSelectedElement(),vn=this.getResizerByViewElement(ft)||null;vn?this.select(vn):this.deselect()})}redrawSelectedResizer(){this.selectedResizer&&this.selectedResizer.isVisible&&this.selectedResizer.redraw()}destroy(){super.destroy(),this._observer.stopListening();for(const ot of this._resizers.values())ot.destroy();this._redrawSelectedResizerThrottled.cancel()}select(ot){this.deselect(),this.selectedResizer=ot,this.selectedResizer.isSelected=!0}deselect(){this.selectedResizer&&(this.selectedResizer.isSelected=!1),this.selectedResizer=null}attachTo(ot){const Je=new $t(ot),wt=this.editor.plugins;if(Je.attach(),wt.has("WidgetToolbarRepository")){const vn=wt.get("WidgetToolbarRepository");Je.on("begin",()=>{vn.forceDisabled("resize")},{priority:"lowest"}),Je.on("cancel",()=>{vn.clearForceDisabled("resize")},{priority:"highest"}),Je.on("commit",()=>{vn.clearForceDisabled("resize")},{priority:"highest"})}this._resizers.set(ot.viewElement,Je);const ft=this.editor.editing.view.document.selection.getSelectedElement();return this.getResizerByViewElement(ft)==Je&&this.select(Je),Je}getResizerByViewElement(ot){return this._resizers.get(ot)}_getResizerByHandle(ot){for(const Je of this._resizers.values())if(Je.containsHandle(ot))return Je}_mouseDownListener(ot,Je){const wt=Je.domTarget;$t.isResizeHandle(wt)&&(this._activeResizer=this._getResizerByHandle(wt)||null,this._activeResizer&&(this._activeResizer.begin(wt),ot.stop(),Je.preventDefault()))}_mouseMoveListener(ot,Je){this._activeResizer&&this._activeResizer.updateSize(Je)}_mouseUpListener(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}},"./src/clipboard.js":(c,h,p)=>{"use strict";p.r(h),p.d(h,{Clipboard:()=>z,ClipboardPipeline:()=>F,DragDrop:()=>u,PastePlainText:()=>H});var d=p("./packages/ckeditor5-core/src/index.ts"),k=p("./packages/ckeditor5-utils/src/index.ts"),M=p("./packages/ckeditor5-engine/src/index.ts");class C extends M.qZ{constructor($){super($);const ee=this.document;function q(oe){return(X,pe)=>{pe.preventDefault();const Ie=pe.dropRange?[pe.dropRange]:null,se=new k.M3(ee,oe);ee.fire(se,{dataTransfer:pe.dataTransfer,method:X.name,targetRanges:Ie,target:pe.target}),se.stop.called&&pe.stopPropagation()}}this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"],this.listenTo(ee,"paste",q("clipboardInput"),{priority:"low"}),this.listenTo(ee,"drop",q("clipboardInput"),{priority:"low"}),this.listenTo(ee,"dragover",q("dragging"),{priority:"low"})}onDomEvent($){const ee="clipboardData"in $?$.clipboardData:$.dataTransfer,q=$.type=="drop"||$.type=="paste",oe={dataTransfer:new M.tn(ee,{cacheFiles:q})};$.type!="drop"&&$.type!="dragover"||(oe.dropRange=function(X,pe){const Ie=pe.target.ownerDocument,se=pe.clientX,be=pe.clientY;let fe;return Ie.caretRangeFromPoint&&Ie.caretRangeFromPoint(se,be)?fe=Ie.caretRangeFromPoint(se,be):pe.rangeParent&&(fe=Ie.createRange(),fe.setStart(pe.rangeParent,pe.rangeOffset),fe.collapse(!0)),fe?X.domConverter.domRangeToView(fe):null}(this.view,$)),this.fire($.type,$,oe)}}const w=["figcaption","li"];function I(V){let $="";if(V.is("$text")||V.is("$textProxy"))$=V.data;else if(V.is("element","img")&&V.hasAttribute("alt"))$=V.getAttribute("alt");else if(V.is("element","br"))$=`
`;else{let ee=null;for(const q of V.getChildren()){const oe=I(q);ee&&(ee.is("containerElement")||q.is("containerElement"))&&(w.includes(ee.name)||w.includes(q.name)?$+=`
`:$+=`

`),$+=oe,ee=q}}return $}class F extends d.Sy{static get pluginName(){return"ClipboardPipeline"}init(){this.editor.editing.view.addObserver(C),this._setupPasteDrop(),this._setupCopyCut()}_setupPasteDrop(){const $=this.editor,ee=$.model,q=$.editing.view,oe=q.document;this.listenTo(oe,"clipboardInput",X=>{$.isReadOnly&&X.stop()},{priority:"highest"}),this.listenTo(oe,"clipboardInput",(X,pe)=>{const Ie=pe.dataTransfer;let se;if(pe.content)se=pe.content;else{let ue="";Ie.getData("text/html")?ue=function(we){return we.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(Me,Ce)=>Ce.length==1?" ":Ce).replace(/<!--[\s\S]*?-->/g,"")}(Ie.getData("text/html")):Ie.getData("text/plain")&&(((be=(be=Ie.getData("text/plain")).replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r?\n\r?\n/g,"</p><p>").replace(/\r?\n/g,"<br>").replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/^\s/,"&nbsp;").replace(/\s$/,"&nbsp;").replace(/\s\s/g," &nbsp;")).includes("</p><p>")||be.includes("<br>"))&&(be=`<p>${be}</p>`),ue=be),se=this.editor.data.htmlProcessor.toView(ue)}var be;const fe=new k.M3(this,"inputTransformation");this.fire(fe,{content:se,dataTransfer:Ie,targetRanges:pe.targetRanges,method:pe.method}),fe.stop.called&&X.stop(),q.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(X,pe)=>{if(pe.content.isEmpty)return;const Ie=this.editor.data.toModel(pe.content,"$clipboardHolder");Ie.childCount!=0&&(X.stop(),ee.change(()=>{this.fire("contentInsertion",{content:Ie,method:pe.method,dataTransfer:pe.dataTransfer,targetRanges:pe.targetRanges})}))},{priority:"low"}),this.listenTo(this,"contentInsertion",(X,pe)=>{pe.resultRange=ee.insertContent(pe.content)},{priority:"low"})}_setupCopyCut(){const $=this.editor,ee=$.model.document,q=$.editing.view.document,oe=(X,pe)=>{const Ie=pe.dataTransfer;pe.preventDefault();const se=$.data.toView($.model.getSelectedContent(ee.selection));q.fire("clipboardOutput",{dataTransfer:Ie,content:se,method:X.name})};this.listenTo(q,"copy",oe,{priority:"low"}),this.listenTo(q,"cut",(X,pe)=>{$.isReadOnly?pe.preventDefault():oe(X,pe)},{priority:"low"}),this.listenTo(q,"clipboardOutput",(X,pe)=>{pe.content.isEmpty||(pe.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(pe.content)),pe.dataTransfer.setData("text/plain",I(pe.content))),pe.method=="cut"&&$.model.deleteContent(ee.selection)},{priority:"low"})}}var U=p("./packages/ckeditor5-widget/src/index.ts"),B=p("./node_modules/lodash-es/throttle.js"),N=p("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),D=p.n(N),x=p("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-clipboard/theme/clipboard.css"),T={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};D()(x.Z,T),x.Z.locals;class u extends d.Sy{static get pluginName(){return"DragDrop"}static get requires(){return[F,U.$L]}init(){const $=this.editor,ee=$.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,this._updateDropMarkerThrottled=(0,B.Z)(q=>this._updateDropMarker(q),40),this._removeDropMarkerDelayed=A(()=>this._removeDropMarker(),40),this._clearDraggableAttributesDelayed=A(()=>this._clearDraggableAttributes(),40),ee.addObserver(C),ee.addObserver(M.dM),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDropMarker(),this._setupDraggableAttributeHandling(),this.listenTo($,"change:isReadOnly",(q,oe,X)=>{X?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}),this.on("change:isEnabled",(q,oe,X)=>{X||this._finalizeDragging(!1)}),k.OB.isAndroid&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._updateDropMarkerThrottled.cancel(),this._removeDropMarkerDelayed.cancel(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const $=this.editor,ee=$.model,q=ee.document,oe=$.editing.view,X=oe.document;this.listenTo(X,"dragstart",(pe,Ie)=>{const se=q.selection;if(Ie.target&&Ie.target.is("editableElement"))return void Ie.preventDefault();const be=Ie.target?R(Ie.target):null;if(be){const we=$.editing.mapper.toModelElement(be);this._draggedRange=M.iE.fromRange(ee.createRangeOn(we)),$.plugins.has("WidgetToolbarRepository")&&$.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop")}else if(!X.selection.isCollapsed){const we=X.selection.getSelectedElement();we&&(0,U.Qd)(we)||(this._draggedRange=M.iE.fromRange(se.getFirstRange()))}if(!this._draggedRange)return void Ie.preventDefault();this._draggingUid=(0,k.hQ)(),Ie.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",Ie.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const fe=ee.createSelection(this._draggedRange.toRange()),ue=$.data.toView(ee.getSelectedContent(fe));X.fire("clipboardOutput",{dataTransfer:Ie.dataTransfer,content:ue,method:"dragstart"}),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")},{priority:"low"}),this.listenTo(X,"dragend",(pe,Ie)=>{this._finalizeDragging(!Ie.dataTransfer.isCanceled&&Ie.dataTransfer.dropEffect=="move")},{priority:"low"}),this.listenTo(X,"dragenter",()=>{this.isEnabled&&oe.focus()}),this.listenTo(X,"dragleave",()=>{this._removeDropMarkerDelayed()}),this.listenTo(X,"dragging",(pe,Ie)=>{if(!this.isEnabled)return void(Ie.dataTransfer.dropEffect="none");this._removeDropMarkerDelayed.cancel();const se=b($,Ie.targetRanges,Ie.target);this._draggedRange||(Ie.dataTransfer.dropEffect="copy"),k.OB.isGecko||(Ie.dataTransfer.effectAllowed=="copy"?Ie.dataTransfer.dropEffect="copy":["all","copyMove"].includes(Ie.dataTransfer.effectAllowed)&&(Ie.dataTransfer.dropEffect="move")),se&&this._updateDropMarkerThrottled(se)},{priority:"low"})}_setupClipboardInputIntegration(){const $=this.editor,ee=$.editing.view.document;this.listenTo(ee,"clipboardInput",(q,oe)=>{if(oe.method!="drop")return;const X=b($,oe.targetRanges,oe.target);if(this._removeDropMarker(),!X)return this._finalizeDragging(!1),void q.stop();if(this._draggedRange&&this._draggingUid!=oe.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid=""),E(oe.dataTransfer)=="move"&&this._draggedRange&&this._draggedRange.containsRange(X,!0))return this._finalizeDragging(!1),void q.stop();oe.targetRanges=[$.editing.mapper.toViewRange(X)]},{priority:"high"})}_setupContentInsertionIntegration(){const $=this.editor.plugins.get(F);$.on("contentInsertion",(ee,q)=>{if(!this.isEnabled||q.method!=="drop")return;const oe=q.targetRanges.map(X=>this.editor.editing.mapper.toModelRange(X));this.editor.model.change(X=>X.setSelection(oe))},{priority:"high"}),$.on("contentInsertion",(ee,q)=>{if(!this.isEnabled||q.method!=="drop")return;const oe=E(q.dataTransfer)=="move",X=!q.resultRange||!q.resultRange.isCollapsed;this._finalizeDragging(X&&oe)},{priority:"lowest"})}_setupDraggableAttributeHandling(){const $=this.editor,ee=$.editing.view,q=ee.document;this.listenTo(q,"mousedown",(oe,X)=>{if(k.OB.isAndroid||!X)return;this._clearDraggableAttributesDelayed.cancel();let pe=R(X.target);if(k.OB.isBlink&&!$.isReadOnly&&!pe&&!q.selection.isCollapsed){const Ie=q.selection.getSelectedElement();Ie&&(0,U.Qd)(Ie)||(pe=q.selection.editableElement)}pe&&(ee.change(Ie=>{Ie.setAttribute("draggable","true",pe)}),this._draggableElement=$.editing.mapper.toModelElement(pe))}),this.listenTo(q,"mouseup",()=>{k.OB.isAndroid||this._clearDraggableAttributesDelayed()})}_clearDraggableAttributes(){const $=this.editor.editing;$.view.change(ee=>{this._draggableElement&&this._draggableElement.root.rootName!="$graveyard"&&ee.removeAttribute("draggable",$.mapper.toViewElement(this._draggableElement)),this._draggableElement=null})}_setupDropMarker(){const $=this.editor;$.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),$.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(ee,{writer:q})=>{if($.model.schema.checkChild(ee.markerRange.start,"$text"))return q.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},function(oe){const X=this.toDomElement(oe);return X.append("\u2060",oe.createElement("span"),"\u2060"),X})}})}_updateDropMarker($){const ee=this.editor,q=ee.model.markers;ee.model.change(oe=>{q.has("drop-target")?q.get("drop-target").getRange().isEqual($)||oe.updateMarker("drop-target",{range:$}):oe.addMarker("drop-target",{range:$,usingOperation:!1,affectsData:!1})})}_removeDropMarker(){const $=this.editor.model;this._removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),$.markers.has("drop-target")&&$.change(ee=>{ee.removeMarker("drop-target")})}_finalizeDragging($){const ee=this.editor,q=ee.model;this._removeDropMarker(),this._clearDraggableAttributes(),ee.plugins.has("WidgetToolbarRepository")&&ee.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop"),this._draggingUid="",this._draggedRange&&($&&this.isEnabled&&q.deleteContent(q.createSelection(this._draggedRange),{doNotAutoparagraph:!0}),this._draggedRange.detach(),this._draggedRange=null)}}function b(V,$,ee){const q=V.model,oe=V.editing.mapper;let X=null;const pe=$?$[0].start:null;if(ee.is("uiElement")&&(ee=ee.parent),X=function(be,fe){const ue=be.model,we=be.editing.mapper;if((0,U.Qd)(fe))return ue.createRangeOn(we.toModelElement(fe));if(!fe.is("editableElement")){const Me=fe.findAncestor(Ce=>(0,U.Qd)(Ce)||Ce.is("editableElement"));if((0,U.Qd)(Me))return ue.createRangeOn(we.toModelElement(Me))}return null}(V,ee),X)return X;const Ie=function(be,fe){const ue=be.editing.mapper,we=be.editing.view,Me=ue.toModelElement(fe);if(Me)return Me;const Ce=we.createPositionBefore(fe),Ne=ue.findMappedViewAncestor(Ce);return ue.toModelElement(Ne)}(V,ee),se=pe?oe.toModelPosition(pe):null;return se?(X=function(be,fe,ue){const we=be.model;if(!we.schema.checkChild(ue,"$block"))return null;const Me=we.createPositionAt(ue,0),Ce=fe.path.slice(0,Me.path.length),Ne=we.createPositionFromPath(fe.root,Ce),Ye=Ne.nodeAfter;return Ye&&we.schema.isObject(Ye)?we.createRangeOn(Ye):null}(V,se,Ie),X||(X=q.schema.getNearestSelectionRange(se,k.OB.isGecko?"forward":"backward"),X||function(be,fe){const ue=be.model;let we=fe;for(;we;){if(ue.schema.isObject(we))return ue.createRangeOn(we);we=we.parent}return null}(V,se.parent))):function(be,fe){const ue=be.model,we=ue.schema,Me=ue.createPositionAt(fe,0);return we.getNearestSelectionRange(Me,"forward")}(V,Ie)}function E(V){return k.OB.isGecko?V.dropEffect:["all","copyMove"].includes(V.effectAllowed)?"move":"copy"}function A(V,$){let ee;function q(...oe){q.cancel(),ee=setTimeout(()=>V(...oe),$)}return q.cancel=()=>{clearTimeout(ee)},q}function R(V){if(V.is("editableElement"))return null;if(V.hasClass("ck-widget__selection-handle"))return V.findAncestor(U.Qd);if((0,U.Qd)(V))return V;const $=V.findAncestor(ee=>(0,U.Qd)(ee)||ee.is("editableElement"));return(0,U.Qd)($)?$:null}class H extends d.Sy{static get pluginName(){return"PastePlainText"}static get requires(){return[F]}init(){const $=this.editor,ee=$.model,q=$.editing.view,oe=q.document,X=ee.document.selection;let pe=!1;q.addObserver(C),this.listenTo(oe,"keydown",(Ie,se)=>{pe=se.shiftKey}),$.plugins.get(F).on("contentInsertion",(Ie,se)=>{(pe||function(be,fe){if(be.childCount>1)return!1;const ue=be.getChild(0);return fe.isObject(ue)?!1:Array.from(ue.getAttributeKeys()).length==0}(se.content,ee.schema))&&ee.change(be=>{const fe=Array.from(X.getAttributes()).filter(([we])=>ee.schema.getAttributeProperties(we).isFormatting);X.isCollapsed||ee.deleteContent(X,{doNotAutoparagraph:!0}),fe.push(...X.getAttributes());const ue=be.createRangeIn(se.content);for(const we of ue.getItems())we.is("$textProxy")&&be.setAttributes(fe,we)})})}}class z extends d.Sy{static get pluginName(){return"Clipboard"}static get requires(){return[F,u,H]}}},"./src/core.js":(c,h,p)=>{"use strict";p.r(h),p.d(h,{Command:()=>d.mY,Context:()=>d._y,ContextPlugin:()=>d.eO,DataApiMixin:()=>d.W9,Editor:()=>d.ML,ElementApiMixin:()=>d.xK,MultiCommand:()=>d.AJ,PendingActions:()=>d.lR,Plugin:()=>d.Sy,attachToForm:()=>d.P$,icons:()=>d.ci,secureSourceElement:()=>d.Nu});var d=p("./packages/ckeditor5-core/src/index.ts")},"./src/engine.js":(c,h,p)=>{"use strict";p.r(h),p.d(h,{AttributeElement:()=>d.kW,BubblingEventInfo:()=>d.r7,ClickObserver:()=>d.KU,Conversion:()=>d.uz,DataController:()=>d.Yc,DataTransfer:()=>d.tn,DocumentFragment:()=>d.f4,DocumentSelection:()=>d.uj,DomConverter:()=>d.pG,DomEventData:()=>d.dK,DomEventObserver:()=>d.qZ,DowncastWriter:()=>d.qD,EditingController:()=>d.jH,Element:()=>d.W_,History:()=>d.Ay,HtmlDataProcessor:()=>d.X5,InsertOperation:()=>d.IZ,LivePosition:()=>d.jP,LiveRange:()=>d.iE,MarkerOperation:()=>d.zj,Matcher:()=>d.xO,Model:()=>d.Hn,MouseObserver:()=>d.dM,Observer:()=>d.Qj,OperationFactory:()=>d.Bz,Position:()=>d.Ly,Range:()=>d.e6,Renderer:()=>d.Th,StylesProcessor:()=>d.A_,TabObserver:()=>d.aY,Text:()=>d.xv,TreeWalker:()=>d.Po,UpcastWriter:()=>d.yj,View:()=>d.G7,ViewAttributeElement:()=>d.m1,ViewContainerElement:()=>d.By,ViewDocument:()=>d.Ux,ViewDocumentFragment:()=>d.y_,ViewEditableElement:()=>d.W2,ViewElement:()=>d.y9,ViewEmptyElement:()=>d.pc,ViewRawElement:()=>d.wx,ViewText:()=>d.Xj,ViewUIElement:()=>d.dq,addBackgroundRules:()=>d.QR,addBorderRules:()=>d.sI,addMarginRules:()=>d.vt,addPaddingRules:()=>d.J8,disablePlaceholder:()=>d.DA,enablePlaceholder:()=>d.ID,findOptimalInsertionRange:()=>d.KT,getBoxSidesShorthandValue:()=>d.I8,getBoxSidesValueReducer:()=>d.mq,getBoxSidesValues:()=>d.oz,getFillerOffset:()=>d.YG,getPositionShorthandNormalizer:()=>d.m0,getShorthandValues:()=>d.uT,hidePlaceholder:()=>d.$_,isAttachment:()=>d.SB,isColor:()=>d.D5,isLength:()=>d.G9,isLineStyle:()=>d.IT,isPercentage:()=>d.zz,isPosition:()=>d.WK,isRepeat:()=>d.Zb,isURL:()=>d.PX,needsPlaceholder:()=>d.Q7,showPlaceholder:()=>d.NJ,transformSets:()=>d.Rf});var d=p("./packages/ckeditor5-engine/src/index.ts")},"./src/enter.js":(c,h,p)=>{"use strict";p.r(h),p.d(h,{Enter:()=>d.C,ShiftEnter:()=>d.G});var d=p("./packages/ckeditor5-enter/src/index.ts")},"./src/paragraph.js":(c,h,p)=>{"use strict";p.r(h),p.d(h,{Paragraph:()=>I,ParagraphButtonUI:()=>B});var d=p("./packages/ckeditor5-core/src/index.ts"),k=p("./packages/ckeditor5-utils/src/index.ts");class M extends d.mY{refresh(){const D=this.editor.model,x=D.document,T=(0,k.Ps)(x.selection.getSelectedBlocks());this.value=!!T&&T.is("element","paragraph"),this.isEnabled=!!T&&C(T,D.schema)}execute(D={}){const x=this.editor.model,T=x.document;x.change(u=>{const b=(D.selection||T.selection).getSelectedBlocks();for(const E of b)!E.is("element","paragraph")&&C(E,x.schema)&&u.rename(E,"paragraph")})}}function C(N,D){return D.checkChild(N.parent,"paragraph")&&!D.isObject(N)}class w extends d.mY{execute(D){const x=this.editor.model,T=D.attributes;let u=D.position;x.change(b=>{const E=b.createElement("paragraph");if(T&&x.schema.setAllowedAttributes(E,T,b),!x.schema.checkChild(u.parent,E)){const A=x.schema.findAllowedParent(u,E);if(!A)return;u=b.split(u,A).position}x.insertContent(E,u),b.setSelection(E,"in")})}}class I extends d.Sy{static get pluginName(){return"Paragraph"}init(){const D=this.editor,x=D.model;D.commands.add("paragraph",new M(D)),D.commands.add("insertParagraph",new w(D)),x.schema.register("paragraph",{inheritAllFrom:"$block"}),D.conversion.elementToElement({model:"paragraph",view:"p"}),D.conversion.for("upcast").elementToElement({model:(T,{writer:u})=>I.paragraphLikeElements.has(T.name)?T.isEmpty?null:u.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}}I.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);var F=p("./packages/ckeditor5-ui/src/index.ts");const U=d.ci.paragraph;class B extends d.Sy{static get requires(){return[I]}init(){const D=this.editor,x=D.t;D.ui.componentFactory.add("paragraph",T=>{const u=new F.r5(T),b=D.commands.get("paragraph");return u.label=x("Paragraph"),u.icon=U,u.tooltip=!0,u.isToggleable=!0,u.bind("isEnabled").to(b),u.bind("isOn").to(b,"value"),u.on("execute",()=>{D.execute("paragraph")}),u})}}},"./src/select-all.js":(c,h,p)=>{"use strict";p.r(h),p.d(h,{SelectAll:()=>B,SelectAllEditing:()=>I,SelectAllUI:()=>U});var d=p("./packages/ckeditor5-core/src/index.ts"),k=p("./packages/ckeditor5-utils/src/index.ts");class M extends d.mY{constructor(D){super(D),this.affectsData=!1}execute(){const D=this.editor.model,x=D.document.selection;let T=D.schema.getLimitElement(x);if(x.containsEntireContent(T)||!C(D.schema,T))do if(T=T.parent,!T)return;while(!C(D.schema,T));D.change(u=>{u.setSelection(T,"in")})}}function C(N,D){return N.isLimit(D)&&(N.checkChild(D,"$text")||N.checkChild(D,"paragraph"))}const w=(0,k.Zz)("Ctrl+A");class I extends d.Sy{static get pluginName(){return"SelectAllEditing"}init(){const D=this.editor,x=D.editing.view.document;D.commands.add("selectAll",new M(D)),this.listenTo(x,"keydown",(T,u)=>{(0,k.Cq)(u)===w&&(D.execute("selectAll"),u.preventDefault())})}}var F=p("./packages/ckeditor5-ui/src/index.ts");class U extends d.Sy{static get pluginName(){return"SelectAllUI"}init(){const D=this.editor;D.ui.componentFactory.add("selectAll",x=>{const T=D.commands.get("selectAll"),u=new F.r5(x),b=x.t;return u.set({label:b("Select all"),icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M.75 15.5a.75.75 0 0 1 .75.75V18l.008.09A.5.5 0 0 0 2 18.5h1.75a.75.75 0 1 1 0 1.5H1.5l-.144-.007a1.5 1.5 0 0 1-1.35-1.349L0 18.5v-2.25a.75.75 0 0 1 .75-.75zm18.5 0a.75.75 0 0 1 .75.75v2.25l-.007.144a1.5 1.5 0 0 1-1.349 1.35L18.5 20h-2.25a.75.75 0 1 1 0-1.5H18a.5.5 0 0 0 .492-.41L18.5 18v-1.75a.75.75 0 0 1 .75-.75zm-10.45 3c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm.45-5.5a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 1 1 0-1.5h8.5zM1.3 11c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM1.3 7c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5h-2.5a.75.75 0 1 1 0-1.5h2.5zm-5 0a.75.75 0 1 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5h5.5zm-6.5-5a.75.75 0 0 1 0 1.5H2a.5.5 0 0 0-.492.41L1.5 2v1.75a.75.75 0 0 1-1.5 0V1.5l.007-.144A1.5 1.5 0 0 1 1.356.006L1.5 0h2.25zM18.5 0l.144.007a1.5 1.5 0 0 1 1.35 1.349L20 1.5v2.25a.75.75 0 1 1-1.5 0V2l-.008-.09A.5.5 0 0 0 18 1.5h-1.75a.75.75 0 1 1 0-1.5h2.25zM8.8 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6z"/></svg>',keystroke:"Ctrl+A",tooltip:!0}),u.bind("isEnabled").to(T,"isEnabled"),this.listenTo(u,"execute",()=>{D.execute("selectAll"),D.editing.view.focus()}),u})}}class B extends d.Sy{static get requires(){return[I,U]}static get pluginName(){return"SelectAll"}}},"./src/typing.js":(c,h,p)=>{"use strict";p.r(h),p.d(h,{Delete:()=>d.HG,Input:()=>d.II,TextTransformation:()=>d.cL,TextWatcher:()=>d.uL,TwoStepCaretMovement:()=>d.mh,Typing:()=>d.Mq,findAttributeRange:()=>d.VD,getLastTextLine:()=>d.Up,inlineHighlight:()=>d.Im});var d=p("./packages/ckeditor5-typing/src/index.ts")},"./src/ui.js":(c,h,p)=>{"use strict";p.r(h),p.d(h,{BalloonPanelView:()=>d.no,BalloonToolbar:()=>d.Jf,BlockToolbar:()=>d.ee,BodyCollection:()=>d.BK,BoxedEditorUIView:()=>d.py,ButtonView:()=>d.r5,ColorGridView:()=>d.J6,ColorTileView:()=>d._9,ComponentFactory:()=>d._Y,ContextualBalloon:()=>d.WB,DropdownButtonView:()=>d.J0,DropdownView:()=>d._n,EditorUI:()=>d.S8,EditorUIView:()=>d.fF,FocusCycler:()=>d.I0,FormHeaderView:()=>d.Gp,IconView:()=>d.mO,IframeView:()=>d.VY,InlineEditableUIView:()=>d.r1,InputNumberView:()=>d.Xs,InputTextView:()=>d.pq,InputView:()=>d.Em,LabelView:()=>d.Dn,LabeledFieldView:()=>d.KP,ListItemView:()=>d.dn,ListView:()=>d.Bv,Model:()=>d.Hn,Notification:()=>d.P_,SplitButtonView:()=>d.Rm,StickyPanelView:()=>d.lp,SwitchButtonView:()=>d.BM,Template:()=>d.YS,ToolbarSeparatorView:()=>d.$y,ToolbarView:()=>d.jB,TooltipManager:()=>d.gE,View:()=>d.G7,ViewCollection:()=>d.vX,addKeyboardHandlingForGrid:()=>d.IJ,addListToDropdown:()=>d.Pm,addToolbarToDropdown:()=>d.up,clickOutsideHandler:()=>d.eC,createDropdown:()=>d.t9,createLabeledDropdown:()=>d.FH,createLabeledInputNumber:()=>d.sh,createLabeledInputText:()=>d.R,focusChildOnDropdownOpen:()=>d.Mh,getLocalizedColorOptions:()=>d.k6,injectCssTransitionDisabler:()=>d.fe,normalizeColorOptions:()=>d.S1,normalizeSingleColorDefinition:()=>d.jY,normalizeToolbarConfig:()=>d.iw,submitHandler:()=>d.GI});var d=p("./packages/ckeditor5-ui/src/index.ts")},"./src/undo.js":(c,h,p)=>{"use strict";p.r(h),p.d(h,{Undo:()=>T,UndoEditing:()=>U,UndoUi:()=>x});var d=p("./packages/ckeditor5-core/src/index.ts"),k=p("./packages/ckeditor5-engine/src/index.ts");class M extends d.mY{constructor(b){super(b),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this.listenTo(b.data,"set",(E,A)=>{A[1]={...A[1]};const R=A[1];R.batchType||(R.batchType={isUndoable:!1})},{priority:"high"}),this.listenTo(b.data,"set",(E,A)=>{A[1].batchType.isUndoable||this.clearStack()})}refresh(){this.isEnabled=this._stack.length>0}addBatch(b){const E=this.editor.model.document.selection,A={ranges:E.hasOwnRange?Array.from(E.getRanges()):[],isBackward:E.isBackward};this._stack.push({batch:b,selection:A}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(b,E,A){const R=this.editor.model,H=R.document,z=[],V=b.map(ee=>ee.getTransformedByOperations(A)),$=V.flat();for(const ee of V){const q=ee.filter(oe=>oe.root!=H.graveyard).filter(oe=>!w(oe,$));q.length&&(C(q),z.push(q[0]))}z.length&&R.change(ee=>{ee.setSelection(z,{backward:E})})}_undo(b,E){const A=this.editor.model,R=A.document;this._createdBatches.add(E);const H=b.operations.slice().filter(z=>z.isDocumentOperation);H.reverse();for(const z of H){const V=z.baseVersion+1,$=Array.from(R.history.getOperations(V)),ee=(0,k.Rf)([z.getReversed()],$,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(const q of ee)E.addOperation(q),A.applyOperation(q),R.history.setOperationAsUndone(z,q)}}}function C(u){u.sort((b,E)=>b.start.isBefore(E.start)?-1:1);for(let b=1;b<u.length;b++){const E=u[b-1].getJoined(u[b],!0);E&&(b--,u.splice(b,2,E))}}function w(u,b){return b.some(E=>E!==u&&E.containsRange(u,!0))}class I extends M{execute(b=null){const E=b?this._stack.findIndex(H=>H.batch==b):this._stack.length-1,A=this._stack.splice(E,1)[0],R=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(R,()=>{this._undo(A.batch,R);const H=this.editor.model.document.history.getOperations(A.batch.baseVersion);this._restoreSelection(A.selection.ranges,A.selection.isBackward,H),this.fire("revert",A.batch,R)}),this.refresh()}}class F extends M{execute(){const b=this._stack.pop(),E=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(E,()=>{const A=b.batch.operations[b.batch.operations.length-1].baseVersion+1,R=this.editor.model.document.history.getOperations(A);this._restoreSelection(b.selection.ranges,b.selection.isBackward,R),this._undo(b.batch,E)}),this.refresh()}}class U extends d.Sy{static get pluginName(){return"UndoEditing"}constructor(b){super(b),this._batchRegistry=new WeakSet}init(){const b=this.editor;this._undoCommand=new I(b),this._redoCommand=new F(b),b.commands.add("undo",this._undoCommand),b.commands.add("redo",this._redoCommand),this.listenTo(b.model,"applyOperation",(E,A)=>{const R=A[0];if(!R.isDocumentOperation)return;const H=R.batch,z=this._redoCommand._createdBatches.has(H),V=this._undoCommand._createdBatches.has(H);this._batchRegistry.has(H)||(this._batchRegistry.add(H),H.isUndoable&&(z?this._undoCommand.addBatch(H):V||(this._undoCommand.addBatch(H),this._redoCommand.clearStack())))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(E,A,R)=>{this._redoCommand.addBatch(R)}),b.keystrokes.set("CTRL+Z","undo"),b.keystrokes.set("CTRL+Y","redo"),b.keystrokes.set("CTRL+SHIFT+Z","redo")}}var B=p("./packages/ckeditor5-ui/src/index.ts");const N='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m5.042 9.367 2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>',D='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m14.958 9.367-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>';class x extends d.Sy{static get pluginName(){return"UndoUI"}init(){const b=this.editor,E=b.locale,A=b.t,R=E.uiLanguageDirection=="ltr"?N:D,H=E.uiLanguageDirection=="ltr"?D:N;this._addButton("undo",A("Undo"),"CTRL+Z",R),this._addButton("redo",A("Redo"),"CTRL+Y",H)}_addButton(b,E,A,R){const H=this.editor;H.ui.componentFactory.add(b,z=>{const V=H.commands.get(b),$=new B.r5(z);return $.set({label:E,icon:R,keystroke:A,tooltip:!0}),$.bind("isEnabled").to(V,"isEnabled"),this.listenTo($,"execute",()=>{H.execute(b),H.editing.view.focus()}),$})}}class T extends d.Sy{static get requires(){return[U,x]}static get pluginName(){return"Undo"}}},"./src/upload.js":(c,h,p)=>{"use strict";p.r(h),p.d(h,{Base64UploadAdapter:()=>B,FileDialogButtonView:()=>F,FileRepository:()=>C,SimpleUploadAdapter:()=>D});var d=p("./packages/ckeditor5-core/src/index.ts"),k=p("./packages/ckeditor5-utils/src/index.ts");class M extends(0,k.Re)(){constructor(){super();const u=new window.FileReader;this._reader=u,this._data=void 0,this.set("loaded",0),u.onprogress=b=>{this.loaded=b.loaded}}get error(){return this._reader.error}get data(){return this._data}read(u){const b=this._reader;return this.total=u.size,new Promise((E,A)=>{b.onload=()=>{const R=b.result;this._data=R,E(R)},b.onerror=()=>{A("error")},b.onabort=()=>{A("aborted")},this._reader.readAsDataURL(u)})}abort(){this._reader.abort()}}class C extends d.Sy{static get pluginName(){return"FileRepository"}static get requires(){return[d.lR]}init(){this.loaders=new k.FE,this.loaders.on("change",()=>this._updatePendingAction()),this._loadersMap=new Map,this._pendingAction=null,this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(u,b)=>b?u/b*100:0)}getLoader(u){return this._loadersMap.get(u)||null}createLoader(u){if(!this.createUploadAdapter)return(0,k.KE)("filerepository-no-upload-adapter"),null;const b=new w(Promise.resolve(u),this.createUploadAdapter);return this.loaders.add(b),this._loadersMap.set(u,b),u instanceof Promise&&b.file.then(E=>{this._loadersMap.set(E,b)}).catch(()=>{}),b.on("change:uploaded",()=>{let E=0;for(const A of this.loaders)E+=A.uploaded;this.uploaded=E}),b.on("change:uploadTotal",()=>{let E=0;for(const A of this.loaders)A.uploadTotal&&(E+=A.uploadTotal);this.uploadTotal=E}),b}destroyLoader(u){const b=u instanceof w?u:this.getLoader(u);b._destroy(),this.loaders.remove(b),this._loadersMap.forEach((E,A)=>{E===b&&this._loadersMap.delete(A)})}_updatePendingAction(){const u=this.editor.plugins.get(d.lR);if(this.loaders.length){if(!this._pendingAction){const b=this.editor.t,E=A=>`${b("Upload in progress")} ${parseInt(A)}%.`;this._pendingAction=u.add(E(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",E)}}else u.remove(this._pendingAction),this._pendingAction=null}}class w extends(0,k.Re)(){constructor(u,b){super(),this.id=(0,k.hQ)(),this._filePromiseWrapper=this._createFilePromiseWrapper(u),this._adapter=b(this),this._reader=new M,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(E,A)=>A?E/A*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(u=>this._filePromiseWrapper?u:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if(this.status!="idle")throw new k.Bb("filerepository-read-wrong-status",this);return this.status="reading",this.file.then(u=>this._reader.read(u)).then(u=>{if(this.status!=="reading")throw this.status;return this.status="idle",u}).catch(u=>{throw u==="aborted"?(this.status="aborted","aborted"):(this.status="error",this._reader.error?this._reader.error:u)})}upload(){if(this.status!="idle")throw new k.Bb("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(u=>(this.uploadResponse=u,this.status="idle",u)).catch(u=>{throw this.status==="aborted"?"aborted":(this.status="error",u)})}abort(){const u=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?u=="reading"?this._reader.abort():u=="uploading"&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(()=>{}),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(u){const b={};return b.promise=new Promise((E,A)=>{b.rejecter=A,b.isFulfilled=!1,u.then(R=>{b.isFulfilled=!0,E(R)}).catch(R=>{b.isFulfilled=!0,A(R)})}),b}}var I=p("./packages/ckeditor5-ui/src/index.ts");class F extends I.G7{constructor(u){super(u),this.buttonView=new I.r5(u),this._fileInputView=new U(u),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[this.buttonView,this._fileInputView]}),this.buttonView.on("execute",()=>{this._fileInputView.open()})}focus(){this.buttonView.focus()}}class U extends I.G7{constructor(u){super(u),this.set("acceptedType",void 0),this.set("allowMultipleFiles",!1);const b=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:b.to("acceptedType"),multiple:b.to("allowMultipleFiles")},on:{change:b.to(()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""})}})}open(){this.element.click()}}class B extends d.Sy{static get requires(){return[C]}static get pluginName(){return"Base64UploadAdapter"}init(){this.editor.plugins.get(C).createUploadAdapter=u=>new N(u)}}class N{constructor(u){this.loader=u}upload(){return new Promise((u,b)=>{const E=this.reader=new window.FileReader;E.addEventListener("load",()=>{u({default:E.result})}),E.addEventListener("error",A=>{b(A)}),E.addEventListener("abort",()=>{b()}),this.loader.file.then(A=>{E.readAsDataURL(A)})})}abort(){this.reader.abort()}}class D extends d.Sy{static get requires(){return[C]}static get pluginName(){return"SimpleUploadAdapter"}init(){const u=this.editor.config.get("simpleUpload");u&&(u.uploadUrl?this.editor.plugins.get(C).createUploadAdapter=b=>new x(b,u):(0,k.KE)("simple-upload-adapter-missing-uploadurl"))}}class x{constructor(u,b){this.loader=u,this.options=b}upload(){return this.loader.file.then(u=>new Promise((b,E)=>{this._initRequest(),this._initListeners(b,E,u),this._sendRequest(u)}))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const u=this.xhr=new XMLHttpRequest;u.open("POST",this.options.uploadUrl,!0),u.responseType="json"}_initListeners(u,b,E){const A=this.xhr,R=this.loader,H=`Couldn't upload file: ${E.name}.`;A.addEventListener("error",()=>b(H)),A.addEventListener("abort",()=>b()),A.addEventListener("load",()=>{const z=A.response;if(!z||z.error)return b(z&&z.error&&z.error.message?z.error.message:H);const V=z.url?{default:z.url}:z.urls;u({...z,urls:V})}),A.upload&&A.upload.addEventListener("progress",z=>{z.lengthComputable&&(R.uploadTotal=z.total,R.uploaded=z.loaded)})}_sendRequest(u){const b=this.options.headers||{},E=this.options.withCredentials||!1;for(const R of Object.keys(b))this.xhr.setRequestHeader(R,b[R]);this.xhr.withCredentials=E;const A=new FormData;A.append("upload",u),this.xhr.send(A)}}},"./src/utils.js":(c,h,p)=>{"use strict";p.r(h),p.d(h,{CKEditorError:()=>d.Bb,Collection:()=>d.FE,Config:()=>d.De,DomEmitterMixin:()=>d.Xu,ElementReplacer:()=>d.a6,EmitterMixin:()=>d.ln,EventInfo:()=>d.M3,FocusTracker:()=>d.Rh,KeystrokeHandler:()=>d.VD,Locale:()=>d.go,ObservableMixin:()=>d.Re,Rect:()=>d.UL,ResizeObserver:()=>d.do,compareArrays:()=>d.Rt,count:()=>d.QX,createElement:()=>d.az,diff:()=>d.Hg,env:()=>d.OB,fastDiff:()=>d.HZ,findClosestScrollableAncestor:()=>d.wm,first:()=>d.Ps,getAncestors:()=>d.dk,getCode:()=>d.Cq,getDataFromElement:()=>d.yy,getEnvKeystrokeText:()=>d.XU,getLanguageDirection:()=>d.j9,getLocalizedArrowKeyCodeDirection:()=>d.mA,getOptimalPosition:()=>d.xZ,global:()=>d.CO,indexOf:()=>d.cq,insertAt:()=>d.ZQ,insertToPriorityArray:()=>d.VG,isArrowKeyCode:()=>d.dj,isCombiningMark:()=>d.tO,isComment:()=>d.C3,isForwardArrowKeyCode:()=>d.Zt,isHighSurrogateHalf:()=>d.Cb,isInsideCombinedSymbol:()=>d.pp,isInsideEmojiSequence:()=>d.YK,isInsideSurrogatePair:()=>d.to,isIterable:()=>d.TW,isLowSurrogateHalf:()=>d.nA,isNode:()=>d.UG,isRange:()=>d.bR,isText:()=>d.Gs,isVisible:()=>d.pn,keyCodes:()=>d.Do,logError:()=>d.H,logWarning:()=>d.KE,mix:()=>d.CD,parseKeystroke:()=>d.Zz,priorities:()=>d.tA,remove:()=>d.Od,scrollAncestorsToShowTarget:()=>d.F0,scrollViewportToShowTarget:()=>d.mR,setDataInElement:()=>d.jS,spliceArray:()=>d.x,toArray:()=>d.qo,toMap:()=>d.qL,toUnit:()=>d.nn,uid:()=>d.hQ,version:()=>d.i8});var d=p("./packages/ckeditor5-utils/src/index.ts")},"./src/widget.js":(c,h,p)=>{"use strict";p.r(h),p.d(h,{WIDGET_CLASS_NAME:()=>d.s4,WIDGET_SELECTED_CLASS_NAME:()=>d.Uo,Widget:()=>d.$L,WidgetResize:()=>d.WR,WidgetToolbarRepository:()=>d.e8,WidgetTypeAround:()=>d.Ww,findOptimalInsertionRange:()=>d.KT,getLabel:()=>d.id,isWidget:()=>d.Qd,setHighlightHandling:()=>d.em,setLabel:()=>d.l6,toWidget:()=>d.XC,toWidgetEditable:()=>d.sC,viewToModelPositionOutsideModelElement:()=>d.$n});var d=p("./packages/ckeditor5-widget/src/index.ts")},"?7cdd":(c,h,p)=>{c.exports=p},"./node_modules/lodash-es/_ListCache.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>N});const d=function(){this.__data__=[],this.size=0};var k=p("./node_modules/lodash-es/eq.js");const M=function(D,x){for(var T=D.length;T--;)if((0,k.Z)(D[T][0],x))return T;return-1};var C=Array.prototype.splice;const w=function(D){var x=this.__data__,T=M(x,D);return!(T<0)&&(T==x.length-1?x.pop():C.call(x,T,1),--this.size,!0)},I=function(D){var x=this.__data__,T=M(x,D);return T<0?void 0:x[T][1]},F=function(D){return M(this.__data__,D)>-1},U=function(D,x){var T=this.__data__,u=M(T,D);return u<0?(++this.size,T.push([D,x])):T[u][1]=x,this};function B(D){var x=-1,T=D==null?0:D.length;for(this.clear();++x<T;){var u=D[x];this.set(u[0],u[1])}}B.prototype.clear=d,B.prototype.delete=w,B.prototype.get=I,B.prototype.has=F,B.prototype.set=U;const N=B},"./node_modules/lodash-es/_Map.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/lodash-es/_getNative.js"),k=p("./node_modules/lodash-es/_root.js");const M=(0,d.Z)(k.Z,"Map")},"./node_modules/lodash-es/_MapCache.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>ee});const d=(0,p("./node_modules/lodash-es/_getNative.js").Z)(Object,"create"),k=function(){this.__data__=d?d(null):{},this.size=0},M=function(q){var oe=this.has(q)&&delete this.__data__[q];return this.size-=oe?1:0,oe};var C="__lodash_hash_undefined__",w=Object.prototype.hasOwnProperty;const I=function(q){var oe=this.__data__;if(d){var X=oe[q];return X===C?void 0:X}return w.call(oe,q)?oe[q]:void 0};var F=Object.prototype.hasOwnProperty;const U=function(q){var oe=this.__data__;return d?oe[q]!==void 0:F.call(oe,q)};var B="__lodash_hash_undefined__";const N=function(q,oe){var X=this.__data__;return this.size+=this.has(q)?0:1,X[q]=d&&oe===void 0?B:oe,this};function D(q){var oe=-1,X=q==null?0:q.length;for(this.clear();++oe<X;){var pe=q[oe];this.set(pe[0],pe[1])}}D.prototype.clear=k,D.prototype.delete=M,D.prototype.get=I,D.prototype.has=U,D.prototype.set=N;const x=D;var T=p("./node_modules/lodash-es/_ListCache.js"),u=p("./node_modules/lodash-es/_Map.js");const b=function(){this.size=0,this.__data__={hash:new x,map:new(u.Z||T.Z),string:new x}},E=function(q){var oe=typeof q;return oe=="string"||oe=="number"||oe=="symbol"||oe=="boolean"?q!=="__proto__":q===null},A=function(q,oe){var X=q.__data__;return E(oe)?X[typeof oe=="string"?"string":"hash"]:X.map},R=function(q){var oe=A(this,q).delete(q);return this.size-=oe?1:0,oe},H=function(q){return A(this,q).get(q)},z=function(q){return A(this,q).has(q)},V=function(q,oe){var X=A(this,q),pe=X.size;return X.set(q,oe),this.size+=X.size==pe?0:1,this};function $(q){var oe=-1,X=q==null?0:q.length;for(this.clear();++oe<X;){var pe=q[oe];this.set(pe[0],pe[1])}}$.prototype.clear=b,$.prototype.delete=R,$.prototype.get=H,$.prototype.has=z,$.prototype.set=V;const ee=$},"./node_modules/lodash-es/_Stack.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>D});var d=p("./node_modules/lodash-es/_ListCache.js");const k=function(){this.__data__=new d.Z,this.size=0},M=function(x){var T=this.__data__,u=T.delete(x);return this.size=T.size,u},C=function(x){return this.__data__.get(x)},w=function(x){return this.__data__.has(x)};var I=p("./node_modules/lodash-es/_Map.js"),F=p("./node_modules/lodash-es/_MapCache.js"),U=200;const B=function(x,T){var u=this.__data__;if(u instanceof d.Z){var b=u.__data__;if(!I.Z||b.length<U-1)return b.push([x,T]),this.size=++u.size,this;u=this.__data__=new F.Z(b)}return u.set(x,T),this.size=u.size,this};function N(x){var T=this.__data__=new d.Z(x);this.size=T.size}N.prototype.clear=k,N.prototype.delete=M,N.prototype.get=C,N.prototype.has=w,N.prototype.set=B;const D=N},"./node_modules/lodash-es/_Symbol.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>d});const d=p("./node_modules/lodash-es/_root.js").Z.Symbol},"./node_modules/lodash-es/_Uint8Array.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>d});const d=p("./node_modules/lodash-es/_root.js").Z.Uint8Array},"./node_modules/lodash-es/_arrayLikeKeys.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>U});const d=function(B,N){for(var D=-1,x=Array(B);++D<B;)x[D]=N(D);return x};var k=p("./node_modules/lodash-es/isArguments.js"),M=p("./node_modules/lodash-es/isArray.js"),C=p("./node_modules/lodash-es/isBuffer.js"),w=p("./node_modules/lodash-es/_isIndex.js"),I=p("./node_modules/lodash-es/isTypedArray.js"),F=Object.prototype.hasOwnProperty;const U=function(B,N){var D=(0,M.Z)(B),x=!D&&(0,k.Z)(B),T=!D&&!x&&(0,C.Z)(B),u=!D&&!x&&!T&&(0,I.Z)(B),b=D||x||T||u,E=b?d(B.length,String):[],A=E.length;for(var R in B)!N&&!F.call(B,R)||b&&(R=="length"||T&&(R=="offset"||R=="parent")||u&&(R=="buffer"||R=="byteLength"||R=="byteOffset")||(0,w.Z)(R,A))||E.push(R);return E}},"./node_modules/lodash-es/_arrayPush.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>d});const d=function(k,M){for(var C=-1,w=M.length,I=k.length;++C<w;)k[I+C]=M[C];return k}},"./node_modules/lodash-es/_assignValue.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>C});var d=p("./node_modules/lodash-es/_baseAssignValue.js"),k=p("./node_modules/lodash-es/eq.js"),M=Object.prototype.hasOwnProperty;const C=function(w,I,F){var U=w[I];M.call(w,I)&&(0,k.Z)(U,F)&&(F!==void 0||I in w)||(0,d.Z)(w,I,F)}},"./node_modules/lodash-es/_baseAssignValue.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>k});var d=p("./node_modules/lodash-es/_defineProperty.js");const k=function(M,C,w){C=="__proto__"&&d.Z?(0,d.Z)(M,C,{configurable:!0,enumerable:!0,value:w,writable:!0}):M[C]=w}},"./node_modules/lodash-es/_baseClone.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>Mr});var d=p("./node_modules/lodash-es/_Stack.js");const k=function(rr,Cr){for(var Ur=-1,$r=rr==null?0:rr.length;++Ur<$r&&Cr(rr[Ur],Ur,rr)!==!1;);return rr};var M=p("./node_modules/lodash-es/_assignValue.js"),C=p("./node_modules/lodash-es/_copyObject.js"),w=p("./node_modules/lodash-es/keys.js");const I=function(rr,Cr){return rr&&(0,C.Z)(Cr,(0,w.Z)(Cr),rr)};var F=p("./node_modules/lodash-es/keysIn.js");const U=function(rr,Cr){return rr&&(0,C.Z)(Cr,(0,F.Z)(Cr),rr)};var B=p("./node_modules/lodash-es/_cloneBuffer.js"),N=p("./node_modules/lodash-es/_copyArray.js"),D=p("./node_modules/lodash-es/_getSymbols.js");const x=function(rr,Cr){return(0,C.Z)(rr,(0,D.Z)(rr),Cr)};var T=p("./node_modules/lodash-es/_arrayPush.js"),u=p("./node_modules/lodash-es/_getPrototype.js"),b=p("./node_modules/lodash-es/stubArray.js");const E=Object.getOwnPropertySymbols?function(rr){for(var Cr=[];rr;)(0,T.Z)(Cr,(0,D.Z)(rr)),rr=(0,u.Z)(rr);return Cr}:b.Z,A=function(rr,Cr){return(0,C.Z)(rr,E(rr),Cr)};var R=p("./node_modules/lodash-es/_getAllKeys.js"),H=p("./node_modules/lodash-es/_baseGetAllKeys.js");const z=function(rr){return(0,H.Z)(rr,F.Z,E)};var V=p("./node_modules/lodash-es/_getTag.js"),$=Object.prototype.hasOwnProperty;const ee=function(rr){var Cr=rr.length,Ur=new rr.constructor(Cr);return Cr&&typeof rr[0]=="string"&&$.call(rr,"index")&&(Ur.index=rr.index,Ur.input=rr.input),Ur};var q=p("./node_modules/lodash-es/_cloneArrayBuffer.js");const oe=function(rr,Cr){var Ur=Cr?(0,q.Z)(rr.buffer):rr.buffer;return new rr.constructor(Ur,rr.byteOffset,rr.byteLength)};var X=/\w*$/;const pe=function(rr){var Cr=new rr.constructor(rr.source,X.exec(rr));return Cr.lastIndex=rr.lastIndex,Cr};var Ie=p("./node_modules/lodash-es/_Symbol.js"),se=Ie.Z?Ie.Z.prototype:void 0,be=se?se.valueOf:void 0;const fe=function(rr){return be?Object(be.call(rr)):{}};var ue=p("./node_modules/lodash-es/_cloneTypedArray.js"),we="[object Boolean]",Me="[object Date]",Ce="[object Map]",Ne="[object Number]",Ye="[object RegExp]",mt="[object Set]",Ct="[object String]",ln="[object Symbol]",$e="[object ArrayBuffer]",Qe="[object DataView]",bt="[object Float32Array]",It="[object Float64Array]",mn="[object Int8Array]",un="[object Int16Array]",Be="[object Int32Array]",je="[object Uint8Array]",$t="[object Uint8ClampedArray]",et="[object Uint16Array]",Kt="[object Uint32Array]";const kn=function(rr,Cr,Ur){var $r=rr.constructor;switch(Cr){case $e:return(0,q.Z)(rr);case we:case Me:return new $r(+rr);case Qe:return oe(rr,Ur);case bt:case It:case mn:case un:case Be:case je:case $t:case et:case Kt:return(0,ue.Z)(rr,Ur);case Ce:return new $r;case Ne:case Ct:return new $r(rr);case Ye:return pe(rr);case mt:return new $r;case ln:return fe(rr)}};var Tn=p("./node_modules/lodash-es/_initCloneObject.js"),ht=p("./node_modules/lodash-es/isArray.js"),ot=p("./node_modules/lodash-es/isBuffer.js"),Je=p("./node_modules/lodash-es/isObjectLike.js"),wt="[object Map]";const ft=function(rr){return(0,Je.Z)(rr)&&(0,V.Z)(rr)==wt};var vn=p("./node_modules/lodash-es/_baseUnary.js"),ut=p("./node_modules/lodash-es/_nodeUtil.js"),Wt=ut.Z&&ut.Z.isMap;const ae=Wt?(0,vn.Z)(Wt):ft;var ne=p("./node_modules/lodash-es/isObject.js"),ge="[object Set]";const ye=function(rr){return(0,Je.Z)(rr)&&(0,V.Z)(rr)==ge};var Xe=ut.Z&&ut.Z.isSet;const Ze=Xe?(0,vn.Z)(Xe):ye;var lt=1,_t=2,zt=4,Vt="[object Arguments]",sn="[object Function]",yn="[object GeneratorFunction]",dr="[object Object]",hr={};hr[Vt]=hr["[object Array]"]=hr["[object ArrayBuffer]"]=hr["[object DataView]"]=hr["[object Boolean]"]=hr["[object Date]"]=hr["[object Float32Array]"]=hr["[object Float64Array]"]=hr["[object Int8Array]"]=hr["[object Int16Array]"]=hr["[object Int32Array]"]=hr["[object Map]"]=hr["[object Number]"]=hr[dr]=hr["[object RegExp]"]=hr["[object Set]"]=hr["[object String]"]=hr["[object Symbol]"]=hr["[object Uint8Array]"]=hr["[object Uint8ClampedArray]"]=hr["[object Uint16Array]"]=hr["[object Uint32Array]"]=!0,hr["[object Error]"]=hr[sn]=hr["[object WeakMap]"]=!1;const Mr=function rr(Cr,Ur,$r,li,ri,Bt){var Et,bn=Ur&lt,cn=Ur&_t,Yn=Ur&zt;if($r&&(Et=ri?$r(Cr,li,ri,Bt):$r(Cr)),Et!==void 0)return Et;if(!(0,ne.Z)(Cr))return Cr;var on=(0,ht.Z)(Cr);if(on){if(Et=ee(Cr),!bn)return(0,N.Z)(Cr,Et)}else{var ze=(0,V.Z)(Cr),Le=ze==sn||ze==yn;if((0,ot.Z)(Cr))return(0,B.Z)(Cr,bn);if(ze==dr||ze==Vt||Le&&!ri){if(Et=cn||Le?{}:(0,Tn.Z)(Cr),!bn)return cn?A(Cr,U(Et,Cr)):x(Cr,I(Et,Cr))}else{if(!hr[ze])return ri?Cr:{};Et=kn(Cr,ze,bn)}}Bt||(Bt=new d.Z);var Ht=Bt.get(Cr);if(Ht)return Ht;Bt.set(Cr,Et),Ze(Cr)?Cr.forEach(function(Sr){Et.add(rr(Sr,Ur,$r,Sr,Cr,Bt))}):ae(Cr)&&Cr.forEach(function(Sr,Xr){Et.set(Xr,rr(Sr,Ur,$r,Xr,Cr,Bt))});var Mn=Yn?cn?z:R.Z:cn?F.Z:w.Z,tr=on?void 0:Mn(Cr);return k(tr||Cr,function(Sr,Xr){tr&&(Sr=Cr[Xr=Sr]),(0,M.Z)(Et,Xr,rr(Sr,Ur,$r,Xr,Cr,Bt))}),Et}},"./node_modules/lodash-es/_baseGetAllKeys.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/lodash-es/_arrayPush.js"),k=p("./node_modules/lodash-es/isArray.js");const M=function(C,w,I){var F=w(C);return(0,k.Z)(C)?F:(0,d.Z)(F,I(C))}},"./node_modules/lodash-es/_baseGetTag.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>x});var d=p("./node_modules/lodash-es/_Symbol.js"),k=Object.prototype,M=k.hasOwnProperty,C=k.toString,w=d.Z?d.Z.toStringTag:void 0;const I=function(T){var u=M.call(T,w),b=T[w];try{T[w]=void 0;var E=!0}catch{}var A=C.call(T);return E&&(u?T[w]=b:delete T[w]),A};var F=Object.prototype.toString;const U=function(T){return F.call(T)};var B="[object Null]",N="[object Undefined]",D=d.Z?d.Z.toStringTag:void 0;const x=function(T){return T==null?T===void 0?N:B:D&&D in Object(T)?I(T):U(T)}},"./node_modules/lodash-es/_baseUnary.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>d});const d=function(k){return function(M){return k(M)}}},"./node_modules/lodash-es/_cloneArrayBuffer.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>k});var d=p("./node_modules/lodash-es/_Uint8Array.js");const k=function(M){var C=new M.constructor(M.byteLength);return new d.Z(C).set(new d.Z(M)),C}},"./node_modules/lodash-es/_cloneBuffer.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>I});var d=p("./node_modules/lodash-es/_root.js"),k=v&&!v.nodeType&&v,M=k&&!0&&Z&&!Z.nodeType&&Z,C=M&&M.exports===k?d.Z.Buffer:void 0,w=C?C.allocUnsafe:void 0;const I=function(F,U){if(U)return F.slice();var B=F.length,N=w?w(B):new F.constructor(B);return F.copy(N),N}},"./node_modules/lodash-es/_cloneTypedArray.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>k});var d=p("./node_modules/lodash-es/_cloneArrayBuffer.js");const k=function(M,C){var w=C?(0,d.Z)(M.buffer):M.buffer;return new M.constructor(w,M.byteOffset,M.length)}},"./node_modules/lodash-es/_copyArray.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>d});const d=function(k,M){var C=-1,w=k.length;for(M||(M=Array(w));++C<w;)M[C]=k[C];return M}},"./node_modules/lodash-es/_copyObject.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/lodash-es/_assignValue.js"),k=p("./node_modules/lodash-es/_baseAssignValue.js");const M=function(C,w,I,F){var U=!I;I||(I={});for(var B=-1,N=w.length;++B<N;){var D=w[B],x=F?F(I[D],C[D],D,I,C):void 0;x===void 0&&(x=C[D]),U?(0,k.Z)(I,D,x):(0,d.Z)(I,D,x)}return I}},"./node_modules/lodash-es/_createAssigner.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>R});const d=function(H){return H},k=function(H,z,V){switch(V.length){case 0:return H.call(z);case 1:return H.call(z,V[0]);case 2:return H.call(z,V[0],V[1]);case 3:return H.call(z,V[0],V[1],V[2])}return H.apply(z,V)};var M=Math.max;const C=function(H,z,V){return z=M(z===void 0?H.length-1:z,0),function(){for(var $=arguments,ee=-1,q=M($.length-z,0),oe=Array(q);++ee<q;)oe[ee]=$[z+ee];ee=-1;for(var X=Array(z+1);++ee<z;)X[ee]=$[ee];return X[z]=V(oe),k(H,this,X)}},w=function(H){return function(){return H}};var I=p("./node_modules/lodash-es/_defineProperty.js");const F=I.Z?function(H,z){return(0,I.Z)(H,"toString",{configurable:!0,enumerable:!1,value:w(z),writable:!0})}:d;var U=800,B=16,N=Date.now;const D=function(H){var z=0,V=0;return function(){var $=N(),ee=B-($-V);if(V=$,ee>0){if(++z>=U)return arguments[0]}else z=0;return H.apply(void 0,arguments)}}(F),x=function(H,z){return D(C(H,z,d),H+"")};var T=p("./node_modules/lodash-es/eq.js"),u=p("./node_modules/lodash-es/isArrayLike.js"),b=p("./node_modules/lodash-es/_isIndex.js"),E=p("./node_modules/lodash-es/isObject.js");const A=function(H,z,V){if(!(0,E.Z)(V))return!1;var $=typeof z;return!!($=="number"?(0,u.Z)(V)&&(0,b.Z)(z,V.length):$=="string"&&z in V)&&(0,T.Z)(V[z],H)},R=function(H){return x(function(z,V){var $=-1,ee=V.length,q=ee>1?V[ee-1]:void 0,oe=ee>2?V[2]:void 0;for(q=H.length>3&&typeof q=="function"?(ee--,q):void 0,oe&&A(V[0],V[1],oe)&&(q=ee<3?void 0:q,ee=1),z=Object(z);++$<ee;){var X=V[$];X&&H(z,X,$,q)}return z})}},"./node_modules/lodash-es/_defineProperty.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>k});var d=p("./node_modules/lodash-es/_getNative.js");const k=function(){try{var M=(0,d.Z)(Object,"defineProperty");return M({},"",{}),M}catch{}}()},"./node_modules/lodash-es/_freeGlobal.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>d});const d=typeof t.g=="object"&&t.g&&t.g.Object===Object&&t.g},"./node_modules/lodash-es/_getAllKeys.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>C});var d=p("./node_modules/lodash-es/_baseGetAllKeys.js"),k=p("./node_modules/lodash-es/_getSymbols.js"),M=p("./node_modules/lodash-es/keys.js");const C=function(w){return(0,d.Z)(w,M.Z,k.Z)}},"./node_modules/lodash-es/_getNative.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>E});var d=p("./node_modules/lodash-es/isFunction.js");const k=p("./node_modules/lodash-es/_root.js").Z["__core-js_shared__"];var M,C=(M=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(src)_1."+M:"";const w=function(A){return!!C&&C in A};var I=p("./node_modules/lodash-es/isObject.js"),F=p("./node_modules/lodash-es/_toSource.js"),U=/^\[object .+?Constructor\]$/,B=Function.prototype,N=Object.prototype,D=B.toString,x=N.hasOwnProperty,T=RegExp("^"+D.call(x).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const u=function(A){return!(!(0,I.Z)(A)||w(A))&&((0,d.Z)(A)?T:U).test((0,F.Z)(A))},b=function(A,R){return A?.[R]},E=function(A,R){var H=b(A,R);return u(H)?H:void 0}},"./node_modules/lodash-es/_getPrototype.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>d});const d=(0,p("./node_modules/lodash-es/_overArg.js").Z)(Object.getPrototypeOf,Object)},"./node_modules/lodash-es/_getSymbols.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>w});const d=function(I,F){for(var U=-1,B=I==null?0:I.length,N=0,D=[];++U<B;){var x=I[U];F(x,U,I)&&(D[N++]=x)}return D};var k=p("./node_modules/lodash-es/stubArray.js"),M=Object.prototype.propertyIsEnumerable,C=Object.getOwnPropertySymbols;const w=C?function(I){return I==null?[]:(I=Object(I),d(C(I),function(F){return M.call(I,F)}))}:k.Z},"./node_modules/lodash-es/_getTag.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>V});var d=p("./node_modules/lodash-es/_getNative.js"),k=p("./node_modules/lodash-es/_root.js");const M=(0,d.Z)(k.Z,"DataView");var C=p("./node_modules/lodash-es/_Map.js");const w=(0,d.Z)(k.Z,"Promise"),I=(0,d.Z)(k.Z,"Set"),F=(0,d.Z)(k.Z,"WeakMap");var U=p("./node_modules/lodash-es/_baseGetTag.js"),B=p("./node_modules/lodash-es/_toSource.js"),N="[object Map]",D="[object Promise]",x="[object Set]",T="[object WeakMap]",u="[object DataView]",b=(0,B.Z)(M),E=(0,B.Z)(C.Z),A=(0,B.Z)(w),R=(0,B.Z)(I),H=(0,B.Z)(F),z=U.Z;(M&&z(new M(new ArrayBuffer(1)))!=u||C.Z&&z(new C.Z)!=N||w&&z(w.resolve())!=D||I&&z(new I)!=x||F&&z(new F)!=T)&&(z=function($){var ee=(0,U.Z)($),q=ee=="[object Object]"?$.constructor:void 0,oe=q?(0,B.Z)(q):"";if(oe)switch(oe){case b:return u;case E:return N;case A:return D;case R:return x;case H:return T}return ee});const V=z},"./node_modules/lodash-es/_initCloneObject.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>I});var d=p("./node_modules/lodash-es/isObject.js"),k=Object.create;const M=function(){function F(){}return function(U){if(!(0,d.Z)(U))return{};if(k)return k(U);F.prototype=U;var B=new F;return F.prototype=void 0,B}}();var C=p("./node_modules/lodash-es/_getPrototype.js"),w=p("./node_modules/lodash-es/_isPrototype.js");const I=function(F){return typeof F.constructor!="function"||(0,w.Z)(F)?{}:M((0,C.Z)(F))}},"./node_modules/lodash-es/_isIndex.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=9007199254740991,k=/^(?:0|[1-9]\d*)$/;const M=function(C,w){var I=typeof C;return!!(w=w??d)&&(I=="number"||I!="symbol"&&k.test(C))&&C>-1&&C%1==0&&C<w}},"./node_modules/lodash-es/_isPrototype.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>k});var d=Object.prototype;const k=function(M){var C=M&&M.constructor;return M===(typeof C=="function"&&C.prototype||d)}},"./node_modules/lodash-es/_nodeUtil.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>w});var d=p("./node_modules/lodash-es/_freeGlobal.js"),k=v&&!v.nodeType&&v,M=k&&!0&&Z&&!Z.nodeType&&Z,C=M&&M.exports===k&&d.Z.process;const w=function(){try{var I=M&&M.require&&M.require("util").types;return I||C&&C.binding&&C.binding("util")}catch{}}()},"./node_modules/lodash-es/_overArg.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>d});const d=function(k,M){return function(C){return k(M(C))}}},"./node_modules/lodash-es/_root.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/lodash-es/_freeGlobal.js"),k=typeof self=="object"&&self&&self.Object===Object&&self;const M=d.Z||k||Function("return this")()},"./node_modules/lodash-es/_toSource.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>k});var d=Function.prototype.toString;const k=function(M){if(M!=null){try{return d.call(M)}catch{}try{return M+""}catch{}}return""}},"./node_modules/lodash-es/assignIn.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>C});var d=p("./node_modules/lodash-es/_copyObject.js"),k=p("./node_modules/lodash-es/_createAssigner.js"),M=p("./node_modules/lodash-es/keysIn.js");const C=(0,k.Z)(function(w,I){(0,d.Z)(I,(0,M.Z)(I),w)})},"./node_modules/lodash-es/cloneDeepWith.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>C});var d=p("./node_modules/lodash-es/_baseClone.js"),k=1,M=4;const C=function(w,I){return I=typeof I=="function"?I:void 0,(0,d.Z)(w,k|M,I)}},"./node_modules/lodash-es/debounce.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>R});var d=p("./node_modules/lodash-es/isObject.js"),k=p("./node_modules/lodash-es/_root.js");const M=function(){return k.Z.Date.now()};var C=/\s/;const w=function(H){for(var z=H.length;z--&&C.test(H.charAt(z)););return z};var I=/^\s+/;const F=function(H){return H&&H.slice(0,w(H)+1).replace(I,"")};var U=p("./node_modules/lodash-es/isSymbol.js"),B=NaN,N=/^[-+]0x[0-9a-f]+$/i,D=/^0b[01]+$/i,x=/^0o[0-7]+$/i,T=parseInt;const u=function(H){if(typeof H=="number")return H;if((0,U.Z)(H))return B;if((0,d.Z)(H)){var z=typeof H.valueOf=="function"?H.valueOf():H;H=(0,d.Z)(z)?z+"":z}if(typeof H!="string")return H===0?H:+H;H=F(H);var V=D.test(H);return V||x.test(H)?T(H.slice(2),V?2:8):N.test(H)?B:+H};var b="Expected a function",E=Math.max,A=Math.min;const R=function(H,z,V){var $,ee,q,oe,X,pe,Ie=0,se=!1,be=!1,fe=!0;if(typeof H!="function")throw new TypeError(b);function ue(Ye){var mt=$,Ct=ee;return $=ee=void 0,Ie=Ye,oe=H.apply(Ct,mt)}function we(Ye){var mt=Ye-pe;return pe===void 0||mt>=z||mt<0||be&&Ye-Ie>=q}function Me(){var Ye=M();if(we(Ye))return Ce(Ye);X=setTimeout(Me,function(mt){var Ct=z-(mt-pe);return be?A(Ct,q-(mt-Ie)):Ct}(Ye))}function Ce(Ye){return X=void 0,fe&&$?ue(Ye):($=ee=void 0,oe)}function Ne(){var Ye=M(),mt=we(Ye);if($=arguments,ee=this,pe=Ye,mt){if(X===void 0)return function(Ct){return Ie=Ct,X=setTimeout(Me,z),se?ue(Ct):oe}(pe);if(be)return clearTimeout(X),X=setTimeout(Me,z),ue(pe)}return X===void 0&&(X=setTimeout(Me,z)),oe}return z=u(z)||0,(0,d.Z)(V)&&(se=!!V.leading,q=(be="maxWait"in V)?E(u(V.maxWait)||0,z):q,fe="trailing"in V?!!V.trailing:fe),Ne.cancel=function(){X!==void 0&&clearTimeout(X),Ie=0,$=pe=ee=X=void 0},Ne.flush=function(){return X===void 0?oe:Ce(M())},Ne}},"./node_modules/lodash-es/eq.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>d});const d=function(k,M){return k===M||k!=k&&M!=M}},"./node_modules/lodash-es/isArguments.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>U});var d=p("./node_modules/lodash-es/_baseGetTag.js"),k=p("./node_modules/lodash-es/isObjectLike.js"),M="[object Arguments]";const C=function(B){return(0,k.Z)(B)&&(0,d.Z)(B)==M};var w=Object.prototype,I=w.hasOwnProperty,F=w.propertyIsEnumerable;const U=C(function(){return arguments}())?C:function(B){return(0,k.Z)(B)&&I.call(B,"callee")&&!F.call(B,"callee")}},"./node_modules/lodash-es/isArray.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>d});const d=Array.isArray},"./node_modules/lodash-es/isArrayLike.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/lodash-es/isFunction.js"),k=p("./node_modules/lodash-es/isLength.js");const M=function(C){return C!=null&&(0,k.Z)(C.length)&&!(0,d.Z)(C)}},"./node_modules/lodash-es/isBuffer.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>I});var d=p("./node_modules/lodash-es/_root.js");const k=function(){return!1};var M=v&&!v.nodeType&&v,C=M&&!0&&Z&&!Z.nodeType&&Z,w=C&&C.exports===M?d.Z.Buffer:void 0;const I=(w?w.isBuffer:void 0)||k},"./node_modules/lodash-es/isElement.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>M});var d=p("./node_modules/lodash-es/isObjectLike.js"),k=p("./node_modules/lodash-es/isPlainObject.js");const M=function(C){return(0,d.Z)(C)&&C.nodeType===1&&!(0,k.Z)(C)}},"./node_modules/lodash-es/isFunction.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>F});var d=p("./node_modules/lodash-es/_baseGetTag.js"),k=p("./node_modules/lodash-es/isObject.js"),M="[object AsyncFunction]",C="[object Function]",w="[object GeneratorFunction]",I="[object Proxy]";const F=function(U){if(!(0,k.Z)(U))return!1;var B=(0,d.Z)(U);return B==C||B==w||B==M||B==I}},"./node_modules/lodash-es/isLength.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>k});var d=9007199254740991;const k=function(M){return typeof M=="number"&&M>-1&&M%1==0&&M<=d}},"./node_modules/lodash-es/isObject.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>d});const d=function(k){var M=typeof k;return k!=null&&(M=="object"||M=="function")}},"./node_modules/lodash-es/isObjectLike.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>d});const d=function(k){return k!=null&&typeof k=="object"}},"./node_modules/lodash-es/isPlainObject.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>N});var d=p("./node_modules/lodash-es/_baseGetTag.js"),k=p("./node_modules/lodash-es/_getPrototype.js"),M=p("./node_modules/lodash-es/isObjectLike.js"),C="[object Object]",w=Function.prototype,I=Object.prototype,F=w.toString,U=I.hasOwnProperty,B=F.call(Object);const N=function(D){if(!(0,M.Z)(D)||(0,d.Z)(D)!=C)return!1;var x=(0,k.Z)(D);if(x===null)return!0;var T=U.call(x,"constructor")&&x.constructor;return typeof T=="function"&&T instanceof T&&F.call(T)==B}},"./node_modules/lodash-es/isSymbol.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>C});var d=p("./node_modules/lodash-es/_baseGetTag.js"),k=p("./node_modules/lodash-es/isObjectLike.js"),M="[object Symbol]";const C=function(w){return typeof w=="symbol"||(0,k.Z)(w)&&(0,d.Z)(w)==M}},"./node_modules/lodash-es/isTypedArray.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>B});var d=p("./node_modules/lodash-es/_baseGetTag.js"),k=p("./node_modules/lodash-es/isLength.js"),M=p("./node_modules/lodash-es/isObjectLike.js"),C={};C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C["[object Arguments]"]=C["[object Array]"]=C["[object ArrayBuffer]"]=C["[object Boolean]"]=C["[object DataView]"]=C["[object Date]"]=C["[object Error]"]=C["[object Function]"]=C["[object Map]"]=C["[object Number]"]=C["[object Object]"]=C["[object RegExp]"]=C["[object Set]"]=C["[object String]"]=C["[object WeakMap]"]=!1;const w=function(N){return(0,M.Z)(N)&&(0,k.Z)(N.length)&&!!C[(0,d.Z)(N)]};var I=p("./node_modules/lodash-es/_baseUnary.js"),F=p("./node_modules/lodash-es/_nodeUtil.js"),U=F.Z&&F.Z.isTypedArray;const B=U?(0,I.Z)(U):w},"./node_modules/lodash-es/keys.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>F});var d=p("./node_modules/lodash-es/_arrayLikeKeys.js"),k=p("./node_modules/lodash-es/_isPrototype.js");const M=(0,p("./node_modules/lodash-es/_overArg.js").Z)(Object.keys,Object);var C=Object.prototype.hasOwnProperty;const w=function(U){if(!(0,k.Z)(U))return M(U);var B=[];for(var N in Object(U))C.call(U,N)&&N!="constructor"&&B.push(N);return B};var I=p("./node_modules/lodash-es/isArrayLike.js");const F=function(U){return(0,I.Z)(U)?(0,d.Z)(U):w(U)}},"./node_modules/lodash-es/keysIn.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>U});var d=p("./node_modules/lodash-es/_arrayLikeKeys.js"),k=p("./node_modules/lodash-es/isObject.js"),M=p("./node_modules/lodash-es/_isPrototype.js");const C=function(B){var N=[];if(B!=null)for(var D in Object(B))N.push(D);return N};var w=Object.prototype.hasOwnProperty;const I=function(B){if(!(0,k.Z)(B))return C(B);var N=(0,M.Z)(B),D=[];for(var x in B)(x!="constructor"||!N&&w.call(B,x))&&D.push(x);return D};var F=p("./node_modules/lodash-es/isArrayLike.js");const U=function(B){return(0,F.Z)(B)?(0,d.Z)(B,!0):I(B)}},"./node_modules/lodash-es/stubArray.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>d});const d=function(){return[]}},"./node_modules/lodash-es/throttle.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>C});var d=p("./node_modules/lodash-es/debounce.js"),k=p("./node_modules/lodash-es/isObject.js"),M="Expected a function";const C=function(w,I,F){var U=!0,B=!0;if(typeof w!="function")throw new TypeError(M);return(0,k.Z)(F)&&(U="leading"in F?!!F.leading:U,B="trailing"in F?!!F.trailing:B),(0,d.Z)(w,I,{leading:U,maxWait:I,trailing:B})}},"./node_modules/lodash-es/toString.js":(c,h,p)=>{"use strict";p.d(h,{Z:()=>B});var d=p("./node_modules/lodash-es/_Symbol.js");const k=function(N,D){for(var x=-1,T=N==null?0:N.length,u=Array(T);++x<T;)u[x]=D(N[x],x,N);return u};var M=p("./node_modules/lodash-es/isArray.js"),C=p("./node_modules/lodash-es/isSymbol.js"),w=1/0,I=d.Z?d.Z.prototype:void 0,F=I?I.toString:void 0;const U=function N(D){if(typeof D=="string")return D;if((0,M.Z)(D))return k(D,N)+"";if((0,C.Z)(D))return F?F.call(D):"";var x=D+"";return x=="0"&&1/D==-w?"-0":x},B=function(N){return N==null?"":U(N)}}},n={};function s(c){var h=n[c];if(h!==void 0)return h.exports;var p=n[c]={id:c,exports:{}};return r[c](p,p.exports,s),p.exports}s.n=c=>{var h=c&&c.__esModule?()=>c.default:()=>c;return s.d(h,{a:h}),h},s.d=(c,h)=>{for(var p in h)s.o(h,p)&&!s.o(c,p)&&Object.defineProperty(c,p,{enumerable:!0,get:h[p]})},s.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),s.o=(c,h)=>Object.prototype.hasOwnProperty.call(c,h),s.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},s.nc=void 0;var a=s("?7cdd");(window.CKEditor5=window.CKEditor5||{}).dll=a})(),function(r){r.CKEditor5=r.CKEditor5||{};const n=["utils","core","engine","ui","clipboard","enter","paragraph","select-all","typing","undo","upload","widget"];for(const s of n){const a=s.replace(/-([a-z])/g,(c,h)=>h.toUpperCase());r.CKEditor5[a]=r.CKEditor5.dll(`./src/${s}.js`)}}(window)},33129:function(Z){/*!
 * Cropper.js v1.6.0
 * https://fengyuanchen.github.io/cropperjs
 *
 * Copyright 2015-present Chen Fengyuan
 * Released under the MIT license
 *
 * Date: 2023-08-26T08:14:27.943Z
 */(function(v,t){Z.exports=t()})(this,function(){"use strict";function v(Rt,Ke){var Oe=Object.keys(Rt);if(Object.getOwnPropertySymbols){var Ge=Object.getOwnPropertySymbols(Rt);Ke&&(Ge=Ge.filter(function(Ft){return Object.getOwnPropertyDescriptor(Rt,Ft).enumerable})),Oe.push.apply(Oe,Ge)}return Oe}function t(Rt){for(var Ke=1;Ke<arguments.length;Ke++){var Oe=arguments[Ke]!=null?arguments[Ke]:{};Ke%2?v(Object(Oe),!0).forEach(function(Ge){c(Rt,Ge,Oe[Ge])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Rt,Object.getOwnPropertyDescriptors(Oe)):v(Object(Oe)).forEach(function(Ge){Object.defineProperty(Rt,Ge,Object.getOwnPropertyDescriptor(Oe,Ge))})}return Rt}function r(Rt){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ke){return typeof Ke}:function(Ke){return Ke&&typeof Symbol=="function"&&Ke.constructor===Symbol&&Ke!==Symbol.prototype?"symbol":typeof Ke},r(Rt)}function n(Rt,Ke){if(!(Rt instanceof Ke))throw new TypeError("Cannot call a class as a function")}function s(Rt,Ke){for(var Oe=0;Oe<Ke.length;Oe++){var Ge=Ke[Oe];Ge.enumerable=Ge.enumerable||!1,Ge.configurable=!0,"value"in Ge&&(Ge.writable=!0),Object.defineProperty(Rt,I(Ge.key),Ge)}}function a(Rt,Ke,Oe){return Ke&&s(Rt.prototype,Ke),Oe&&s(Rt,Oe),Object.defineProperty(Rt,"prototype",{writable:!1}),Rt}function c(Rt,Ke,Oe){return Ke=I(Ke),Ke in Rt?Object.defineProperty(Rt,Ke,{value:Oe,enumerable:!0,configurable:!0,writable:!0}):Rt[Ke]=Oe,Rt}function h(Rt){return p(Rt)||d(Rt)||k(Rt)||C()}function p(Rt){if(Array.isArray(Rt))return M(Rt)}function d(Rt){if(typeof Symbol<"u"&&Rt[Symbol.iterator]!=null||Rt["@@iterator"]!=null)return Array.from(Rt)}function k(Rt,Ke){if(Rt){if(typeof Rt=="string")return M(Rt,Ke);var Oe=Object.prototype.toString.call(Rt).slice(8,-1);if(Oe==="Object"&&Rt.constructor&&(Oe=Rt.constructor.name),Oe==="Map"||Oe==="Set")return Array.from(Rt);if(Oe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Oe))return M(Rt,Ke)}}function M(Rt,Ke){(Ke==null||Ke>Rt.length)&&(Ke=Rt.length);for(var Oe=0,Ge=new Array(Ke);Oe<Ke;Oe++)Ge[Oe]=Rt[Oe];return Ge}function C(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w(Rt,Ke){if(typeof Rt!="object"||Rt===null)return Rt;var Oe=Rt[Symbol.toPrimitive];if(Oe!==void 0){var Ge=Oe.call(Rt,Ke||"default");if(typeof Ge!="object")return Ge;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ke==="string"?String:Number)(Rt)}function I(Rt){var Ke=w(Rt,"string");return typeof Ke=="symbol"?Ke:String(Ke)}var F=typeof window<"u"&&typeof window.document<"u",U=F?window:{},B=F&&U.document.documentElement?"ontouchstart"in U.document.documentElement:!1,N=F?"PointerEvent"in U:!1,D="cropper",x="all",T="crop",u="move",b="zoom",E="e",A="w",R="s",H="n",z="ne",V="nw",$="se",ee="sw",q="".concat(D,"-crop"),oe="".concat(D,"-disabled"),X="".concat(D,"-hidden"),pe="".concat(D,"-hide"),Ie="".concat(D,"-invisible"),se="".concat(D,"-modal"),be="".concat(D,"-move"),fe="".concat(D,"Action"),ue="".concat(D,"Preview"),we="crop",Me="move",Ce="none",Ne="crop",Ye="cropend",mt="cropmove",Ct="cropstart",ln="dblclick",$e=B?"touchstart":"mousedown",Qe=B?"touchmove":"mousemove",bt=B?"touchend touchcancel":"mouseup",It=N?"pointerdown":$e,mn=N?"pointermove":Qe,un=N?"pointerup pointercancel":bt,Be="ready",je="resize",$t="wheel",et="zoom",Kt="image/jpeg",kn=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,Tn=/^data:/,ht=/^data:image\/jpeg;base64,/,ot=/^img|canvas$/i,Je=200,wt=100,ft={viewMode:0,dragMode:we,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:Je,minContainerHeight:wt,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},vn='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',ut=Number.isNaN||U.isNaN;function Wt(Rt){return typeof Rt=="number"&&!ut(Rt)}var ae=function(Ke){return Ke>0&&Ke<1/0};function ne(Rt){return typeof Rt>"u"}function ge(Rt){return r(Rt)==="object"&&Rt!==null}var ye=Object.prototype.hasOwnProperty;function Xe(Rt){if(!ge(Rt))return!1;try{var Ke=Rt.constructor,Oe=Ke.prototype;return Ke&&Oe&&ye.call(Oe,"isPrototypeOf")}catch{return!1}}function Ze(Rt){return typeof Rt=="function"}var lt=Array.prototype.slice;function _t(Rt){return Array.from?Array.from(Rt):lt.call(Rt)}function zt(Rt,Ke){return Rt&&Ze(Ke)&&(Array.isArray(Rt)||Wt(Rt.length)?_t(Rt).forEach(function(Oe,Ge){Ke.call(Rt,Oe,Ge,Rt)}):ge(Rt)&&Object.keys(Rt).forEach(function(Oe){Ke.call(Rt,Rt[Oe],Oe,Rt)})),Rt}var Vt=Object.assign||function(Ke){for(var Oe=arguments.length,Ge=new Array(Oe>1?Oe-1:0),Ft=1;Ft<Oe;Ft++)Ge[Ft-1]=arguments[Ft];return ge(Ke)&&Ge.length>0&&Ge.forEach(function(Qt){ge(Qt)&&Object.keys(Qt).forEach(function(wn){Ke[wn]=Qt[wn]})}),Ke},sn=/\.\d*(?:0|9){12}\d*$/;function yn(Rt){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return sn.test(Rt)?Math.round(Rt*Ke)/Ke:Rt}var dr=/^width|height|left|top|marginLeft|marginTop$/;function hr(Rt,Ke){var Oe=Rt.style;zt(Ke,function(Ge,Ft){dr.test(Ft)&&Wt(Ge)&&(Ge="".concat(Ge,"px")),Oe[Ft]=Ge})}function Mr(Rt,Ke){return Rt.classList?Rt.classList.contains(Ke):Rt.className.indexOf(Ke)>-1}function rr(Rt,Ke){if(Ke){if(Wt(Rt.length)){zt(Rt,function(Ge){rr(Ge,Ke)});return}if(Rt.classList){Rt.classList.add(Ke);return}var Oe=Rt.className.trim();Oe?Oe.indexOf(Ke)<0&&(Rt.className="".concat(Oe," ").concat(Ke)):Rt.className=Ke}}function Cr(Rt,Ke){if(Ke){if(Wt(Rt.length)){zt(Rt,function(Oe){Cr(Oe,Ke)});return}if(Rt.classList){Rt.classList.remove(Ke);return}Rt.className.indexOf(Ke)>=0&&(Rt.className=Rt.className.replace(Ke,""))}}function Ur(Rt,Ke,Oe){if(Ke){if(Wt(Rt.length)){zt(Rt,function(Ge){Ur(Ge,Ke,Oe)});return}Oe?rr(Rt,Ke):Cr(Rt,Ke)}}var $r=/([a-z\d])([A-Z])/g;function li(Rt){return Rt.replace($r,"$1-$2").toLowerCase()}function ri(Rt,Ke){return ge(Rt[Ke])?Rt[Ke]:Rt.dataset?Rt.dataset[Ke]:Rt.getAttribute("data-".concat(li(Ke)))}function Bt(Rt,Ke,Oe){ge(Oe)?Rt[Ke]=Oe:Rt.dataset?Rt.dataset[Ke]=Oe:Rt.setAttribute("data-".concat(li(Ke)),Oe)}function Et(Rt,Ke){if(ge(Rt[Ke]))try{delete Rt[Ke]}catch{Rt[Ke]=void 0}else if(Rt.dataset)try{delete Rt.dataset[Ke]}catch{Rt.dataset[Ke]=void 0}else Rt.removeAttribute("data-".concat(li(Ke)))}var bn=/\s\s*/,cn=function(){var Rt=!1;if(F){var Ke=!1,Oe=function(){},Ge=Object.defineProperty({},"once",{get:function(){return Rt=!0,Ke},set:function(Qt){Ke=Qt}});U.addEventListener("test",Oe,Ge),U.removeEventListener("test",Oe,Ge)}return Rt}();function Yn(Rt,Ke,Oe){var Ge=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Ft=Oe;Ke.trim().split(bn).forEach(function(Qt){if(!cn){var wn=Rt.listeners;wn&&wn[Qt]&&wn[Qt][Oe]&&(Ft=wn[Qt][Oe],delete wn[Qt][Oe],Object.keys(wn[Qt]).length===0&&delete wn[Qt],Object.keys(wn).length===0&&delete Rt.listeners)}Rt.removeEventListener(Qt,Ft,Ge)})}function on(Rt,Ke,Oe){var Ge=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Ft=Oe;Ke.trim().split(bn).forEach(function(Qt){if(Ge.once&&!cn){var wn=Rt.listeners,Gn=wn===void 0?{}:wn;Ft=function(){delete Gn[Qt][Oe],Rt.removeEventListener(Qt,Ft,Ge);for(var br=arguments.length,fr=new Array(br),Er=0;Er<br;Er++)fr[Er]=arguments[Er];Oe.apply(Rt,fr)},Gn[Qt]||(Gn[Qt]={}),Gn[Qt][Oe]&&Rt.removeEventListener(Qt,Gn[Qt][Oe],Ge),Gn[Qt][Oe]=Ft,Rt.listeners=Gn}Rt.addEventListener(Qt,Ft,Ge)})}function ze(Rt,Ke,Oe){var Ge;return Ze(Event)&&Ze(CustomEvent)?Ge=new CustomEvent(Ke,{detail:Oe,bubbles:!0,cancelable:!0}):(Ge=document.createEvent("CustomEvent"),Ge.initCustomEvent(Ke,!0,!0,Oe)),Rt.dispatchEvent(Ge)}function Le(Rt){var Ke=Rt.getBoundingClientRect();return{left:Ke.left+(window.pageXOffset-document.documentElement.clientLeft),top:Ke.top+(window.pageYOffset-document.documentElement.clientTop)}}var Ht=U.location,Mn=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function tr(Rt){var Ke=Rt.match(Mn);return Ke!==null&&(Ke[1]!==Ht.protocol||Ke[2]!==Ht.hostname||Ke[3]!==Ht.port)}function Sr(Rt){var Ke="timestamp=".concat(new Date().getTime());return Rt+(Rt.indexOf("?")===-1?"?":"&")+Ke}function Xr(Rt){var Ke=Rt.rotate,Oe=Rt.scaleX,Ge=Rt.scaleY,Ft=Rt.translateX,Qt=Rt.translateY,wn=[];Wt(Ft)&&Ft!==0&&wn.push("translateX(".concat(Ft,"px)")),Wt(Qt)&&Qt!==0&&wn.push("translateY(".concat(Qt,"px)")),Wt(Ke)&&Ke!==0&&wn.push("rotate(".concat(Ke,"deg)")),Wt(Oe)&&Oe!==1&&wn.push("scaleX(".concat(Oe,")")),Wt(Ge)&&Ge!==1&&wn.push("scaleY(".concat(Ge,")"));var Gn=wn.length?wn.join(" "):"none";return{WebkitTransform:Gn,msTransform:Gn,transform:Gn}}function gi(Rt){var Ke=t({},Rt),Oe=0;return zt(Rt,function(Ge,Ft){delete Ke[Ft],zt(Ke,function(Qt){var wn=Math.abs(Ge.startX-Qt.startX),Gn=Math.abs(Ge.startY-Qt.startY),ir=Math.abs(Ge.endX-Qt.endX),br=Math.abs(Ge.endY-Qt.endY),fr=Math.sqrt(wn*wn+Gn*Gn),Er=Math.sqrt(ir*ir+br*br),Or=(Er-fr)/fr;Math.abs(Or)>Math.abs(Oe)&&(Oe=Or)})}),Oe}function Pi(Rt,Ke){var Oe=Rt.pageX,Ge=Rt.pageY,Ft={endX:Oe,endY:Ge};return Ke?Ft:t({startX:Oe,startY:Ge},Ft)}function ii(Rt){var Ke=0,Oe=0,Ge=0;return zt(Rt,function(Ft){var Qt=Ft.startX,wn=Ft.startY;Ke+=Qt,Oe+=wn,Ge+=1}),Ke/=Ge,Oe/=Ge,{pageX:Ke,pageY:Oe}}function vr(Rt){var Ke=Rt.aspectRatio,Oe=Rt.height,Ge=Rt.width,Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",Qt=ae(Ge),wn=ae(Oe);if(Qt&&wn){var Gn=Oe*Ke;Ft==="contain"&&Gn>Ge||Ft==="cover"&&Gn<Ge?Oe=Ge/Ke:Ge=Oe*Ke}else Qt?Oe=Ge/Ke:wn&&(Ge=Oe*Ke);return{width:Ge,height:Oe}}function at(Rt){var Ke=Rt.width,Oe=Rt.height,Ge=Rt.degree;if(Ge=Math.abs(Ge)%180,Ge===90)return{width:Oe,height:Ke};var Ft=Ge%90*Math.PI/180,Qt=Math.sin(Ft),wn=Math.cos(Ft),Gn=Ke*wn+Oe*Qt,ir=Ke*Qt+Oe*wn;return Ge>90?{width:ir,height:Gn}:{width:Gn,height:ir}}function it(Rt,Ke,Oe,Ge){var Ft=Ke.aspectRatio,Qt=Ke.naturalWidth,wn=Ke.naturalHeight,Gn=Ke.rotate,ir=Gn===void 0?0:Gn,br=Ke.scaleX,fr=br===void 0?1:br,Er=Ke.scaleY,Or=Er===void 0?1:Er,oi=Oe.aspectRatio,si=Oe.naturalWidth,Fi=Oe.naturalHeight,$i=Ge.fillColor,Vi=$i===void 0?"transparent":$i,Bn=Ge.imageSmoothingEnabled,nt=Bn===void 0?!0:Bn,ve=Ge.imageSmoothingQuality,he=ve===void 0?"low":ve,Ae=Ge.maxWidth,tt=Ae===void 0?1/0:Ae,St=Ge.maxHeight,kt=St===void 0?1/0:St,Jt=Ge.minWidth,gt=Jt===void 0?0:Jt,dn=Ge.minHeight,Xt=dn===void 0?0:dn,hn=document.createElement("canvas"),Sn=hn.getContext("2d"),Jn=vr({aspectRatio:oi,width:tt,height:kt}),Vn=vr({aspectRatio:oi,width:gt,height:Xt},"cover"),ar=Math.min(Jn.width,Math.max(Vn.width,si)),Vr=Math.min(Jn.height,Math.max(Vn.height,Fi)),Jr=vr({aspectRatio:Ft,width:tt,height:kt}),yi=vr({aspectRatio:Ft,width:gt,height:Xt},"cover"),Ii=Math.min(Jr.width,Math.max(yi.width,Qt)),ji=Math.min(Jr.height,Math.max(yi.height,wn)),_n=[-Ii/2,-ji/2,Ii,ji];return hn.width=yn(ar),hn.height=yn(Vr),Sn.fillStyle=Vi,Sn.fillRect(0,0,ar,Vr),Sn.save(),Sn.translate(ar/2,Vr/2),Sn.rotate(ir*Math.PI/180),Sn.scale(fr,Or),Sn.imageSmoothingEnabled=nt,Sn.imageSmoothingQuality=he,Sn.drawImage.apply(Sn,[Rt].concat(h(_n.map(function(_e){return Math.floor(yn(_e))})))),Sn.restore(),hn}var Re=String.fromCharCode;function ke(Rt,Ke,Oe){var Ge="";Oe+=Ke;for(var Ft=Ke;Ft<Oe;Ft+=1)Ge+=Re(Rt.getUint8(Ft));return Ge}var Pe=/^data:.*,/;function Te(Rt){var Ke=Rt.replace(Pe,""),Oe=atob(Ke),Ge=new ArrayBuffer(Oe.length),Ft=new Uint8Array(Ge);return zt(Ft,function(Qt,wn){Ft[wn]=Oe.charCodeAt(wn)}),Ge}function Mt(Rt,Ke){for(var Oe=[],Ge=8192,Ft=new Uint8Array(Rt);Ft.length>0;)Oe.push(Re.apply(null,_t(Ft.subarray(0,Ge)))),Ft=Ft.subarray(Ge);return"data:".concat(Ke,";base64,").concat(btoa(Oe.join("")))}function qt(Rt){var Ke=new DataView(Rt),Oe;try{var Ge,Ft,Qt;if(Ke.getUint8(0)===255&&Ke.getUint8(1)===216)for(var wn=Ke.byteLength,Gn=2;Gn+1<wn;){if(Ke.getUint8(Gn)===255&&Ke.getUint8(Gn+1)===225){Ft=Gn;break}Gn+=1}if(Ft){var ir=Ft+4,br=Ft+10;if(ke(Ke,ir,4)==="Exif"){var fr=Ke.getUint16(br);if(Ge=fr===18761,(Ge||fr===19789)&&Ke.getUint16(br+2,Ge)===42){var Er=Ke.getUint32(br+4,Ge);Er>=8&&(Qt=br+Er)}}}if(Qt){var Or=Ke.getUint16(Qt,Ge),oi,si;for(si=0;si<Or;si+=1)if(oi=Qt+si*12+2,Ke.getUint16(oi,Ge)===274){oi+=8,Oe=Ke.getUint16(oi,Ge),Ke.setUint16(oi,1,Ge);break}}}catch{Oe=1}return Oe}function Rn(Rt){var Ke=0,Oe=1,Ge=1;switch(Rt){case 2:Oe=-1;break;case 3:Ke=-180;break;case 4:Ge=-1;break;case 5:Ke=90,Ge=-1;break;case 6:Ke=90;break;case 7:Ke=90,Oe=-1;break;case 8:Ke=-90;break}return{rotate:Ke,scaleX:Oe,scaleY:Ge}}var Qn={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var Ke=this.element,Oe=this.options,Ge=this.container,Ft=this.cropper,Qt=Number(Oe.minContainerWidth),wn=Number(Oe.minContainerHeight);rr(Ft,X),Cr(Ke,X);var Gn={width:Math.max(Ge.offsetWidth,Qt>=0?Qt:Je),height:Math.max(Ge.offsetHeight,wn>=0?wn:wt)};this.containerData=Gn,hr(Ft,{width:Gn.width,height:Gn.height}),rr(Ke,X),Cr(Ft,X)},initCanvas:function(){var Ke=this.containerData,Oe=this.imageData,Ge=this.options.viewMode,Ft=Math.abs(Oe.rotate)%180===90,Qt=Ft?Oe.naturalHeight:Oe.naturalWidth,wn=Ft?Oe.naturalWidth:Oe.naturalHeight,Gn=Qt/wn,ir=Ke.width,br=Ke.height;Ke.height*Gn>Ke.width?Ge===3?ir=Ke.height*Gn:br=Ke.width/Gn:Ge===3?br=Ke.width/Gn:ir=Ke.height*Gn;var fr={aspectRatio:Gn,naturalWidth:Qt,naturalHeight:wn,width:ir,height:br};this.canvasData=fr,this.limited=Ge===1||Ge===2,this.limitCanvas(!0,!0),fr.width=Math.min(Math.max(fr.width,fr.minWidth),fr.maxWidth),fr.height=Math.min(Math.max(fr.height,fr.minHeight),fr.maxHeight),fr.left=(Ke.width-fr.width)/2,fr.top=(Ke.height-fr.height)/2,fr.oldLeft=fr.left,fr.oldTop=fr.top,this.initialCanvasData=Vt({},fr)},limitCanvas:function(Ke,Oe){var Ge=this.options,Ft=this.containerData,Qt=this.canvasData,wn=this.cropBoxData,Gn=Ge.viewMode,ir=Qt.aspectRatio,br=this.cropped&&wn;if(Ke){var fr=Number(Ge.minCanvasWidth)||0,Er=Number(Ge.minCanvasHeight)||0;Gn>1?(fr=Math.max(fr,Ft.width),Er=Math.max(Er,Ft.height),Gn===3&&(Er*ir>fr?fr=Er*ir:Er=fr/ir)):Gn>0&&(fr?fr=Math.max(fr,br?wn.width:0):Er?Er=Math.max(Er,br?wn.height:0):br&&(fr=wn.width,Er=wn.height,Er*ir>fr?fr=Er*ir:Er=fr/ir));var Or=vr({aspectRatio:ir,width:fr,height:Er});fr=Or.width,Er=Or.height,Qt.minWidth=fr,Qt.minHeight=Er,Qt.maxWidth=1/0,Qt.maxHeight=1/0}if(Oe)if(Gn>(br?0:1)){var oi=Ft.width-Qt.width,si=Ft.height-Qt.height;Qt.minLeft=Math.min(0,oi),Qt.minTop=Math.min(0,si),Qt.maxLeft=Math.max(0,oi),Qt.maxTop=Math.max(0,si),br&&this.limited&&(Qt.minLeft=Math.min(wn.left,wn.left+(wn.width-Qt.width)),Qt.minTop=Math.min(wn.top,wn.top+(wn.height-Qt.height)),Qt.maxLeft=wn.left,Qt.maxTop=wn.top,Gn===2&&(Qt.width>=Ft.width&&(Qt.minLeft=Math.min(0,oi),Qt.maxLeft=Math.max(0,oi)),Qt.height>=Ft.height&&(Qt.minTop=Math.min(0,si),Qt.maxTop=Math.max(0,si))))}else Qt.minLeft=-Qt.width,Qt.minTop=-Qt.height,Qt.maxLeft=Ft.width,Qt.maxTop=Ft.height},renderCanvas:function(Ke,Oe){var Ge=this.canvasData,Ft=this.imageData;if(Oe){var Qt=at({width:Ft.naturalWidth*Math.abs(Ft.scaleX||1),height:Ft.naturalHeight*Math.abs(Ft.scaleY||1),degree:Ft.rotate||0}),wn=Qt.width,Gn=Qt.height,ir=Ge.width*(wn/Ge.naturalWidth),br=Ge.height*(Gn/Ge.naturalHeight);Ge.left-=(ir-Ge.width)/2,Ge.top-=(br-Ge.height)/2,Ge.width=ir,Ge.height=br,Ge.aspectRatio=wn/Gn,Ge.naturalWidth=wn,Ge.naturalHeight=Gn,this.limitCanvas(!0,!1)}(Ge.width>Ge.maxWidth||Ge.width<Ge.minWidth)&&(Ge.left=Ge.oldLeft),(Ge.height>Ge.maxHeight||Ge.height<Ge.minHeight)&&(Ge.top=Ge.oldTop),Ge.width=Math.min(Math.max(Ge.width,Ge.minWidth),Ge.maxWidth),Ge.height=Math.min(Math.max(Ge.height,Ge.minHeight),Ge.maxHeight),this.limitCanvas(!1,!0),Ge.left=Math.min(Math.max(Ge.left,Ge.minLeft),Ge.maxLeft),Ge.top=Math.min(Math.max(Ge.top,Ge.minTop),Ge.maxTop),Ge.oldLeft=Ge.left,Ge.oldTop=Ge.top,hr(this.canvas,Vt({width:Ge.width,height:Ge.height},Xr({translateX:Ge.left,translateY:Ge.top}))),this.renderImage(Ke),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(Ke){var Oe=this.canvasData,Ge=this.imageData,Ft=Ge.naturalWidth*(Oe.width/Oe.naturalWidth),Qt=Ge.naturalHeight*(Oe.height/Oe.naturalHeight);Vt(Ge,{width:Ft,height:Qt,left:(Oe.width-Ft)/2,top:(Oe.height-Qt)/2}),hr(this.image,Vt({width:Ge.width,height:Ge.height},Xr(Vt({translateX:Ge.left,translateY:Ge.top},Ge)))),Ke&&this.output()},initCropBox:function(){var Ke=this.options,Oe=this.canvasData,Ge=Ke.aspectRatio||Ke.initialAspectRatio,Ft=Number(Ke.autoCropArea)||.8,Qt={width:Oe.width,height:Oe.height};Ge&&(Oe.height*Ge>Oe.width?Qt.height=Qt.width/Ge:Qt.width=Qt.height*Ge),this.cropBoxData=Qt,this.limitCropBox(!0,!0),Qt.width=Math.min(Math.max(Qt.width,Qt.minWidth),Qt.maxWidth),Qt.height=Math.min(Math.max(Qt.height,Qt.minHeight),Qt.maxHeight),Qt.width=Math.max(Qt.minWidth,Qt.width*Ft),Qt.height=Math.max(Qt.minHeight,Qt.height*Ft),Qt.left=Oe.left+(Oe.width-Qt.width)/2,Qt.top=Oe.top+(Oe.height-Qt.height)/2,Qt.oldLeft=Qt.left,Qt.oldTop=Qt.top,this.initialCropBoxData=Vt({},Qt)},limitCropBox:function(Ke,Oe){var Ge=this.options,Ft=this.containerData,Qt=this.canvasData,wn=this.cropBoxData,Gn=this.limited,ir=Ge.aspectRatio;if(Ke){var br=Number(Ge.minCropBoxWidth)||0,fr=Number(Ge.minCropBoxHeight)||0,Er=Gn?Math.min(Ft.width,Qt.width,Qt.width+Qt.left,Ft.width-Qt.left):Ft.width,Or=Gn?Math.min(Ft.height,Qt.height,Qt.height+Qt.top,Ft.height-Qt.top):Ft.height;br=Math.min(br,Ft.width),fr=Math.min(fr,Ft.height),ir&&(br&&fr?fr*ir>br?fr=br/ir:br=fr*ir:br?fr=br/ir:fr&&(br=fr*ir),Or*ir>Er?Or=Er/ir:Er=Or*ir),wn.minWidth=Math.min(br,Er),wn.minHeight=Math.min(fr,Or),wn.maxWidth=Er,wn.maxHeight=Or}Oe&&(Gn?(wn.minLeft=Math.max(0,Qt.left),wn.minTop=Math.max(0,Qt.top),wn.maxLeft=Math.min(Ft.width,Qt.left+Qt.width)-wn.width,wn.maxTop=Math.min(Ft.height,Qt.top+Qt.height)-wn.height):(wn.minLeft=0,wn.minTop=0,wn.maxLeft=Ft.width-wn.width,wn.maxTop=Ft.height-wn.height))},renderCropBox:function(){var Ke=this.options,Oe=this.containerData,Ge=this.cropBoxData;(Ge.width>Ge.maxWidth||Ge.width<Ge.minWidth)&&(Ge.left=Ge.oldLeft),(Ge.height>Ge.maxHeight||Ge.height<Ge.minHeight)&&(Ge.top=Ge.oldTop),Ge.width=Math.min(Math.max(Ge.width,Ge.minWidth),Ge.maxWidth),Ge.height=Math.min(Math.max(Ge.height,Ge.minHeight),Ge.maxHeight),this.limitCropBox(!1,!0),Ge.left=Math.min(Math.max(Ge.left,Ge.minLeft),Ge.maxLeft),Ge.top=Math.min(Math.max(Ge.top,Ge.minTop),Ge.maxTop),Ge.oldLeft=Ge.left,Ge.oldTop=Ge.top,Ke.movable&&Ke.cropBoxMovable&&Bt(this.face,fe,Ge.width>=Oe.width&&Ge.height>=Oe.height?u:x),hr(this.cropBox,Vt({width:Ge.width,height:Ge.height},Xr({translateX:Ge.left,translateY:Ge.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),ze(this.element,Ne,this.getData())}},ur={initPreview:function(){var Ke=this.element,Oe=this.crossOrigin,Ge=this.options.preview,Ft=Oe?this.crossOriginUrl:this.url,Qt=Ke.alt||"The image to preview",wn=document.createElement("img");if(Oe&&(wn.crossOrigin=Oe),wn.src=Ft,wn.alt=Qt,this.viewBox.appendChild(wn),this.viewBoxImage=wn,!!Ge){var Gn=Ge;typeof Ge=="string"?Gn=Ke.ownerDocument.querySelectorAll(Ge):Ge.querySelector&&(Gn=[Ge]),this.previews=Gn,zt(Gn,function(ir){var br=document.createElement("img");Bt(ir,ue,{width:ir.offsetWidth,height:ir.offsetHeight,html:ir.innerHTML}),Oe&&(br.crossOrigin=Oe),br.src=Ft,br.alt=Qt,br.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',ir.innerHTML="",ir.appendChild(br)})}},resetPreview:function(){zt(this.previews,function(Ke){var Oe=ri(Ke,ue);hr(Ke,{width:Oe.width,height:Oe.height}),Ke.innerHTML=Oe.html,Et(Ke,ue)})},preview:function(){var Ke=this.imageData,Oe=this.canvasData,Ge=this.cropBoxData,Ft=Ge.width,Qt=Ge.height,wn=Ke.width,Gn=Ke.height,ir=Ge.left-Oe.left-Ke.left,br=Ge.top-Oe.top-Ke.top;!this.cropped||this.disabled||(hr(this.viewBoxImage,Vt({width:wn,height:Gn},Xr(Vt({translateX:-ir,translateY:-br},Ke)))),zt(this.previews,function(fr){var Er=ri(fr,ue),Or=Er.width,oi=Er.height,si=Or,Fi=oi,$i=1;Ft&&($i=Or/Ft,Fi=Qt*$i),Qt&&Fi>oi&&($i=oi/Qt,si=Ft*$i,Fi=oi),hr(fr,{width:si,height:Fi}),hr(fr.getElementsByTagName("img")[0],Vt({width:wn*$i,height:Gn*$i},Xr(Vt({translateX:-ir*$i,translateY:-br*$i},Ke))))}))}},On={bind:function(){var Ke=this.element,Oe=this.options,Ge=this.cropper;Ze(Oe.cropstart)&&on(Ke,Ct,Oe.cropstart),Ze(Oe.cropmove)&&on(Ke,mt,Oe.cropmove),Ze(Oe.cropend)&&on(Ke,Ye,Oe.cropend),Ze(Oe.crop)&&on(Ke,Ne,Oe.crop),Ze(Oe.zoom)&&on(Ke,et,Oe.zoom),on(Ge,It,this.onCropStart=this.cropStart.bind(this)),Oe.zoomable&&Oe.zoomOnWheel&&on(Ge,$t,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),Oe.toggleDragModeOnDblclick&&on(Ge,ln,this.onDblclick=this.dblclick.bind(this)),on(Ke.ownerDocument,mn,this.onCropMove=this.cropMove.bind(this)),on(Ke.ownerDocument,un,this.onCropEnd=this.cropEnd.bind(this)),Oe.responsive&&on(window,je,this.onResize=this.resize.bind(this))},unbind:function(){var Ke=this.element,Oe=this.options,Ge=this.cropper;Ze(Oe.cropstart)&&Yn(Ke,Ct,Oe.cropstart),Ze(Oe.cropmove)&&Yn(Ke,mt,Oe.cropmove),Ze(Oe.cropend)&&Yn(Ke,Ye,Oe.cropend),Ze(Oe.crop)&&Yn(Ke,Ne,Oe.crop),Ze(Oe.zoom)&&Yn(Ke,et,Oe.zoom),Yn(Ge,It,this.onCropStart),Oe.zoomable&&Oe.zoomOnWheel&&Yn(Ge,$t,this.onWheel,{passive:!1,capture:!0}),Oe.toggleDragModeOnDblclick&&Yn(Ge,ln,this.onDblclick),Yn(Ke.ownerDocument,mn,this.onCropMove),Yn(Ke.ownerDocument,un,this.onCropEnd),Oe.responsive&&Yn(window,je,this.onResize)}},ct={resize:function(){if(!this.disabled){var Ke=this.options,Oe=this.container,Ge=this.containerData,Ft=Oe.offsetWidth/Ge.width,Qt=Oe.offsetHeight/Ge.height,wn=Math.abs(Ft-1)>Math.abs(Qt-1)?Ft:Qt;if(wn!==1){var Gn,ir;Ke.restore&&(Gn=this.getCanvasData(),ir=this.getCropBoxData()),this.render(),Ke.restore&&(this.setCanvasData(zt(Gn,function(br,fr){Gn[fr]=br*wn})),this.setCropBoxData(zt(ir,function(br,fr){ir[fr]=br*wn})))}}},dblclick:function(){this.disabled||this.options.dragMode===Ce||this.setDragMode(Mr(this.dragBox,q)?Me:we)},wheel:function(Ke){var Oe=this,Ge=Number(this.options.wheelZoomRatio)||.1,Ft=1;this.disabled||(Ke.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){Oe.wheeling=!1},50),Ke.deltaY?Ft=Ke.deltaY>0?1:-1:Ke.wheelDelta?Ft=-Ke.wheelDelta/120:Ke.detail&&(Ft=Ke.detail>0?1:-1),this.zoom(-Ft*Ge,Ke)))},cropStart:function(Ke){var Oe=Ke.buttons,Ge=Ke.button;if(!(this.disabled||(Ke.type==="mousedown"||Ke.type==="pointerdown"&&Ke.pointerType==="mouse")&&(Wt(Oe)&&Oe!==1||Wt(Ge)&&Ge!==0||Ke.ctrlKey))){var Ft=this.options,Qt=this.pointers,wn;Ke.changedTouches?zt(Ke.changedTouches,function(Gn){Qt[Gn.identifier]=Pi(Gn)}):Qt[Ke.pointerId||0]=Pi(Ke),Object.keys(Qt).length>1&&Ft.zoomable&&Ft.zoomOnTouch?wn=b:wn=ri(Ke.target,fe),kn.test(wn)&&ze(this.element,Ct,{originalEvent:Ke,action:wn})!==!1&&(Ke.preventDefault(),this.action=wn,this.cropping=!1,wn===T&&(this.cropping=!0,rr(this.dragBox,se)))}},cropMove:function(Ke){var Oe=this.action;if(!(this.disabled||!Oe)){var Ge=this.pointers;Ke.preventDefault(),ze(this.element,mt,{originalEvent:Ke,action:Oe})!==!1&&(Ke.changedTouches?zt(Ke.changedTouches,function(Ft){Vt(Ge[Ft.identifier]||{},Pi(Ft,!0))}):Vt(Ge[Ke.pointerId||0]||{},Pi(Ke,!0)),this.change(Ke))}},cropEnd:function(Ke){if(!this.disabled){var Oe=this.action,Ge=this.pointers;Ke.changedTouches?zt(Ke.changedTouches,function(Ft){delete Ge[Ft.identifier]}):delete Ge[Ke.pointerId||0],Oe&&(Ke.preventDefault(),Object.keys(Ge).length||(this.action=""),this.cropping&&(this.cropping=!1,Ur(this.dragBox,se,this.cropped&&this.options.modal)),ze(this.element,Ye,{originalEvent:Ke,action:Oe}))}}},Zt={change:function(Ke){var Oe=this.options,Ge=this.canvasData,Ft=this.containerData,Qt=this.cropBoxData,wn=this.pointers,Gn=this.action,ir=Oe.aspectRatio,br=Qt.left,fr=Qt.top,Er=Qt.width,Or=Qt.height,oi=br+Er,si=fr+Or,Fi=0,$i=0,Vi=Ft.width,Bn=Ft.height,nt=!0,ve;!ir&&Ke.shiftKey&&(ir=Er&&Or?Er/Or:1),this.limited&&(Fi=Qt.minLeft,$i=Qt.minTop,Vi=Fi+Math.min(Ft.width,Ge.width,Ge.left+Ge.width),Bn=$i+Math.min(Ft.height,Ge.height,Ge.top+Ge.height));var he=wn[Object.keys(wn)[0]],Ae={x:he.endX-he.startX,y:he.endY-he.startY},tt=function(kt){switch(kt){case E:oi+Ae.x>Vi&&(Ae.x=Vi-oi);break;case A:br+Ae.x<Fi&&(Ae.x=Fi-br);break;case H:fr+Ae.y<$i&&(Ae.y=$i-fr);break;case R:si+Ae.y>Bn&&(Ae.y=Bn-si);break}};switch(Gn){case x:br+=Ae.x,fr+=Ae.y;break;case E:if(Ae.x>=0&&(oi>=Vi||ir&&(fr<=$i||si>=Bn))){nt=!1;break}tt(E),Er+=Ae.x,Er<0&&(Gn=A,Er=-Er,br-=Er),ir&&(Or=Er/ir,fr+=(Qt.height-Or)/2);break;case H:if(Ae.y<=0&&(fr<=$i||ir&&(br<=Fi||oi>=Vi))){nt=!1;break}tt(H),Or-=Ae.y,fr+=Ae.y,Or<0&&(Gn=R,Or=-Or,fr-=Or),ir&&(Er=Or*ir,br+=(Qt.width-Er)/2);break;case A:if(Ae.x<=0&&(br<=Fi||ir&&(fr<=$i||si>=Bn))){nt=!1;break}tt(A),Er-=Ae.x,br+=Ae.x,Er<0&&(Gn=E,Er=-Er,br-=Er),ir&&(Or=Er/ir,fr+=(Qt.height-Or)/2);break;case R:if(Ae.y>=0&&(si>=Bn||ir&&(br<=Fi||oi>=Vi))){nt=!1;break}tt(R),Or+=Ae.y,Or<0&&(Gn=H,Or=-Or,fr-=Or),ir&&(Er=Or*ir,br+=(Qt.width-Er)/2);break;case z:if(ir){if(Ae.y<=0&&(fr<=$i||oi>=Vi)){nt=!1;break}tt(H),Or-=Ae.y,fr+=Ae.y,Er=Or*ir}else tt(H),tt(E),Ae.x>=0?oi<Vi?Er+=Ae.x:Ae.y<=0&&fr<=$i&&(nt=!1):Er+=Ae.x,Ae.y<=0?fr>$i&&(Or-=Ae.y,fr+=Ae.y):(Or-=Ae.y,fr+=Ae.y);Er<0&&Or<0?(Gn=ee,Or=-Or,Er=-Er,fr-=Or,br-=Er):Er<0?(Gn=V,Er=-Er,br-=Er):Or<0&&(Gn=$,Or=-Or,fr-=Or);break;case V:if(ir){if(Ae.y<=0&&(fr<=$i||br<=Fi)){nt=!1;break}tt(H),Or-=Ae.y,fr+=Ae.y,Er=Or*ir,br+=Qt.width-Er}else tt(H),tt(A),Ae.x<=0?br>Fi?(Er-=Ae.x,br+=Ae.x):Ae.y<=0&&fr<=$i&&(nt=!1):(Er-=Ae.x,br+=Ae.x),Ae.y<=0?fr>$i&&(Or-=Ae.y,fr+=Ae.y):(Or-=Ae.y,fr+=Ae.y);Er<0&&Or<0?(Gn=$,Or=-Or,Er=-Er,fr-=Or,br-=Er):Er<0?(Gn=z,Er=-Er,br-=Er):Or<0&&(Gn=ee,Or=-Or,fr-=Or);break;case ee:if(ir){if(Ae.x<=0&&(br<=Fi||si>=Bn)){nt=!1;break}tt(A),Er-=Ae.x,br+=Ae.x,Or=Er/ir}else tt(R),tt(A),Ae.x<=0?br>Fi?(Er-=Ae.x,br+=Ae.x):Ae.y>=0&&si>=Bn&&(nt=!1):(Er-=Ae.x,br+=Ae.x),Ae.y>=0?si<Bn&&(Or+=Ae.y):Or+=Ae.y;Er<0&&Or<0?(Gn=z,Or=-Or,Er=-Er,fr-=Or,br-=Er):Er<0?(Gn=$,Er=-Er,br-=Er):Or<0&&(Gn=V,Or=-Or,fr-=Or);break;case $:if(ir){if(Ae.x>=0&&(oi>=Vi||si>=Bn)){nt=!1;break}tt(E),Er+=Ae.x,Or=Er/ir}else tt(R),tt(E),Ae.x>=0?oi<Vi?Er+=Ae.x:Ae.y>=0&&si>=Bn&&(nt=!1):Er+=Ae.x,Ae.y>=0?si<Bn&&(Or+=Ae.y):Or+=Ae.y;Er<0&&Or<0?(Gn=V,Or=-Or,Er=-Er,fr-=Or,br-=Er):Er<0?(Gn=ee,Er=-Er,br-=Er):Or<0&&(Gn=z,Or=-Or,fr-=Or);break;case u:this.move(Ae.x,Ae.y),nt=!1;break;case b:this.zoom(gi(wn),Ke),nt=!1;break;case T:if(!Ae.x||!Ae.y){nt=!1;break}ve=Le(this.cropper),br=he.startX-ve.left,fr=he.startY-ve.top,Er=Qt.minWidth,Or=Qt.minHeight,Ae.x>0?Gn=Ae.y>0?$:z:Ae.x<0&&(br-=Er,Gn=Ae.y>0?ee:V),Ae.y<0&&(fr-=Or),this.cropped||(Cr(this.cropBox,X),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}nt&&(Qt.width=Er,Qt.height=Or,Qt.left=br,Qt.top=fr,this.action=Gn,this.renderCropBox()),zt(wn,function(St){St.startX=St.endX,St.startY=St.endY})}},Cn={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&rr(this.dragBox,se),Cr(this.cropBox,X),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=Vt({},this.initialImageData),this.canvasData=Vt({},this.initialCanvasData),this.cropBoxData=Vt({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(Vt(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Cr(this.dragBox,se),rr(this.cropBox,X)),this},replace:function(Ke){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&Ke&&(this.isImg&&(this.element.src=Ke),Oe?(this.url=Ke,this.image.src=Ke,this.ready&&(this.viewBoxImage.src=Ke,zt(this.previews,function(Ge){Ge.getElementsByTagName("img")[0].src=Ke}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(Ke))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,Cr(this.cropper,oe)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,rr(this.cropper,oe)),this},destroy:function(){var Ke=this.element;return Ke[D]?(Ke[D]=void 0,this.isImg&&this.replaced&&(Ke.src=this.originalUrl),this.uncreate(),this):this},move:function(Ke){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ke,Ge=this.canvasData,Ft=Ge.left,Qt=Ge.top;return this.moveTo(ne(Ke)?Ke:Ft+Number(Ke),ne(Oe)?Oe:Qt+Number(Oe))},moveTo:function(Ke){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ke,Ge=this.canvasData,Ft=!1;return Ke=Number(Ke),Oe=Number(Oe),this.ready&&!this.disabled&&this.options.movable&&(Wt(Ke)&&(Ge.left=Ke,Ft=!0),Wt(Oe)&&(Ge.top=Oe,Ft=!0),Ft&&this.renderCanvas(!0)),this},zoom:function(Ke,Oe){var Ge=this.canvasData;return Ke=Number(Ke),Ke<0?Ke=1/(1-Ke):Ke=1+Ke,this.zoomTo(Ge.width*Ke/Ge.naturalWidth,null,Oe)},zoomTo:function(Ke,Oe,Ge){var Ft=this.options,Qt=this.canvasData,wn=Qt.width,Gn=Qt.height,ir=Qt.naturalWidth,br=Qt.naturalHeight;if(Ke=Number(Ke),Ke>=0&&this.ready&&!this.disabled&&Ft.zoomable){var fr=ir*Ke,Er=br*Ke;if(ze(this.element,et,{ratio:Ke,oldRatio:wn/ir,originalEvent:Ge})===!1)return this;if(Ge){var Or=this.pointers,oi=Le(this.cropper),si=Or&&Object.keys(Or).length?ii(Or):{pageX:Ge.pageX,pageY:Ge.pageY};Qt.left-=(fr-wn)*((si.pageX-oi.left-Qt.left)/wn),Qt.top-=(Er-Gn)*((si.pageY-oi.top-Qt.top)/Gn)}else Xe(Oe)&&Wt(Oe.x)&&Wt(Oe.y)?(Qt.left-=(fr-wn)*((Oe.x-Qt.left)/wn),Qt.top-=(Er-Gn)*((Oe.y-Qt.top)/Gn)):(Qt.left-=(fr-wn)/2,Qt.top-=(Er-Gn)/2);Qt.width=fr,Qt.height=Er,this.renderCanvas(!0)}return this},rotate:function(Ke){return this.rotateTo((this.imageData.rotate||0)+Number(Ke))},rotateTo:function(Ke){return Ke=Number(Ke),Wt(Ke)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=Ke%360,this.renderCanvas(!0,!0)),this},scaleX:function(Ke){var Oe=this.imageData.scaleY;return this.scale(Ke,Wt(Oe)?Oe:1)},scaleY:function(Ke){var Oe=this.imageData.scaleX;return this.scale(Wt(Oe)?Oe:1,Ke)},scale:function(Ke){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ke,Ge=this.imageData,Ft=!1;return Ke=Number(Ke),Oe=Number(Oe),this.ready&&!this.disabled&&this.options.scalable&&(Wt(Ke)&&(Ge.scaleX=Ke,Ft=!0),Wt(Oe)&&(Ge.scaleY=Oe,Ft=!0),Ft&&this.renderCanvas(!0,!0)),this},getData:function(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Oe=this.options,Ge=this.imageData,Ft=this.canvasData,Qt=this.cropBoxData,wn;if(this.ready&&this.cropped){wn={x:Qt.left-Ft.left,y:Qt.top-Ft.top,width:Qt.width,height:Qt.height};var Gn=Ge.width/Ge.naturalWidth;if(zt(wn,function(fr,Er){wn[Er]=fr/Gn}),Ke){var ir=Math.round(wn.y+wn.height),br=Math.round(wn.x+wn.width);wn.x=Math.round(wn.x),wn.y=Math.round(wn.y),wn.width=br-wn.x,wn.height=ir-wn.y}}else wn={x:0,y:0,width:0,height:0};return Oe.rotatable&&(wn.rotate=Ge.rotate||0),Oe.scalable&&(wn.scaleX=Ge.scaleX||1,wn.scaleY=Ge.scaleY||1),wn},setData:function(Ke){var Oe=this.options,Ge=this.imageData,Ft=this.canvasData,Qt={};if(this.ready&&!this.disabled&&Xe(Ke)){var wn=!1;Oe.rotatable&&Wt(Ke.rotate)&&Ke.rotate!==Ge.rotate&&(Ge.rotate=Ke.rotate,wn=!0),Oe.scalable&&(Wt(Ke.scaleX)&&Ke.scaleX!==Ge.scaleX&&(Ge.scaleX=Ke.scaleX,wn=!0),Wt(Ke.scaleY)&&Ke.scaleY!==Ge.scaleY&&(Ge.scaleY=Ke.scaleY,wn=!0)),wn&&this.renderCanvas(!0,!0);var Gn=Ge.width/Ge.naturalWidth;Wt(Ke.x)&&(Qt.left=Ke.x*Gn+Ft.left),Wt(Ke.y)&&(Qt.top=Ke.y*Gn+Ft.top),Wt(Ke.width)&&(Qt.width=Ke.width*Gn),Wt(Ke.height)&&(Qt.height=Ke.height*Gn),this.setCropBoxData(Qt)}return this},getContainerData:function(){return this.ready?Vt({},this.containerData):{}},getImageData:function(){return this.sized?Vt({},this.imageData):{}},getCanvasData:function(){var Ke=this.canvasData,Oe={};return this.ready&&zt(["left","top","width","height","naturalWidth","naturalHeight"],function(Ge){Oe[Ge]=Ke[Ge]}),Oe},setCanvasData:function(Ke){var Oe=this.canvasData,Ge=Oe.aspectRatio;return this.ready&&!this.disabled&&Xe(Ke)&&(Wt(Ke.left)&&(Oe.left=Ke.left),Wt(Ke.top)&&(Oe.top=Ke.top),Wt(Ke.width)?(Oe.width=Ke.width,Oe.height=Ke.width/Ge):Wt(Ke.height)&&(Oe.height=Ke.height,Oe.width=Ke.height*Ge),this.renderCanvas(!0)),this},getCropBoxData:function(){var Ke=this.cropBoxData,Oe;return this.ready&&this.cropped&&(Oe={left:Ke.left,top:Ke.top,width:Ke.width,height:Ke.height}),Oe||{}},setCropBoxData:function(Ke){var Oe=this.cropBoxData,Ge=this.options.aspectRatio,Ft,Qt;return this.ready&&this.cropped&&!this.disabled&&Xe(Ke)&&(Wt(Ke.left)&&(Oe.left=Ke.left),Wt(Ke.top)&&(Oe.top=Ke.top),Wt(Ke.width)&&Ke.width!==Oe.width&&(Ft=!0,Oe.width=Ke.width),Wt(Ke.height)&&Ke.height!==Oe.height&&(Qt=!0,Oe.height=Ke.height),Ge&&(Ft?Oe.height=Oe.width/Ge:Qt&&(Oe.width=Oe.height*Ge)),this.renderCropBox()),this},getCroppedCanvas:function(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var Oe=this.canvasData,Ge=it(this.image,this.imageData,Oe,Ke);if(!this.cropped)return Ge;var Ft=this.getData(Ke.rounded),Qt=Ft.x,wn=Ft.y,Gn=Ft.width,ir=Ft.height,br=Ge.width/Math.floor(Oe.naturalWidth);br!==1&&(Qt*=br,wn*=br,Gn*=br,ir*=br);var fr=Gn/ir,Er=vr({aspectRatio:fr,width:Ke.maxWidth||1/0,height:Ke.maxHeight||1/0}),Or=vr({aspectRatio:fr,width:Ke.minWidth||0,height:Ke.minHeight||0},"cover"),oi=vr({aspectRatio:fr,width:Ke.width||(br!==1?Ge.width:Gn),height:Ke.height||(br!==1?Ge.height:ir)}),si=oi.width,Fi=oi.height;si=Math.min(Er.width,Math.max(Or.width,si)),Fi=Math.min(Er.height,Math.max(Or.height,Fi));var $i=document.createElement("canvas"),Vi=$i.getContext("2d");$i.width=yn(si),$i.height=yn(Fi),Vi.fillStyle=Ke.fillColor||"transparent",Vi.fillRect(0,0,si,Fi);var Bn=Ke.imageSmoothingEnabled,nt=Bn===void 0?!0:Bn,ve=Ke.imageSmoothingQuality;Vi.imageSmoothingEnabled=nt,ve&&(Vi.imageSmoothingQuality=ve);var he=Ge.width,Ae=Ge.height,tt=Qt,St=wn,kt,Jt,gt,dn,Xt,hn;tt<=-Gn||tt>he?(tt=0,kt=0,gt=0,Xt=0):tt<=0?(gt=-tt,tt=0,kt=Math.min(he,Gn+tt),Xt=kt):tt<=he&&(gt=0,kt=Math.min(Gn,he-tt),Xt=kt),kt<=0||St<=-ir||St>Ae?(St=0,Jt=0,dn=0,hn=0):St<=0?(dn=-St,St=0,Jt=Math.min(Ae,ir+St),hn=Jt):St<=Ae&&(dn=0,Jt=Math.min(ir,Ae-St),hn=Jt);var Sn=[tt,St,kt,Jt];if(Xt>0&&hn>0){var Jn=si/Gn;Sn.push(gt*Jn,dn*Jn,Xt*Jn,hn*Jn)}return Vi.drawImage.apply(Vi,[Ge].concat(h(Sn.map(function(Vn){return Math.floor(yn(Vn))})))),$i},setAspectRatio:function(Ke){var Oe=this.options;return!this.disabled&&!ne(Ke)&&(Oe.aspectRatio=Math.max(0,Ke)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(Ke){var Oe=this.options,Ge=this.dragBox,Ft=this.face;if(this.ready&&!this.disabled){var Qt=Ke===we,wn=Oe.movable&&Ke===Me;Ke=Qt||wn?Ke:Ce,Oe.dragMode=Ke,Bt(Ge,fe,Ke),Ur(Ge,q,Qt),Ur(Ge,be,wn),Oe.cropBoxMovable||(Bt(Ft,fe,Ke),Ur(Ft,q,Qt),Ur(Ft,be,wn))}return this}},Pn=U.Cropper,Kn=function(){function Rt(Ke){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(n(this,Rt),!Ke||!ot.test(Ke.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=Ke,this.options=Vt({},ft,Xe(Oe)&&Oe),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return a(Rt,[{key:"init",value:function(){var Oe=this.element,Ge=Oe.tagName.toLowerCase(),Ft;if(!Oe[D]){if(Oe[D]=this,Ge==="img"){if(this.isImg=!0,Ft=Oe.getAttribute("src")||"",this.originalUrl=Ft,!Ft)return;Ft=Oe.src}else Ge==="canvas"&&window.HTMLCanvasElement&&(Ft=Oe.toDataURL());this.load(Ft)}}},{key:"load",value:function(Oe){var Ge=this;if(Oe){this.url=Oe,this.imageData={};var Ft=this.element,Qt=this.options;if(!Qt.rotatable&&!Qt.scalable&&(Qt.checkOrientation=!1),!Qt.checkOrientation||!window.ArrayBuffer){this.clone();return}if(Tn.test(Oe)){ht.test(Oe)?this.read(Te(Oe)):this.clone();return}var wn=new XMLHttpRequest,Gn=this.clone.bind(this);this.reloading=!0,this.xhr=wn,wn.onabort=Gn,wn.onerror=Gn,wn.ontimeout=Gn,wn.onprogress=function(){wn.getResponseHeader("content-type")!==Kt&&wn.abort()},wn.onload=function(){Ge.read(wn.response)},wn.onloadend=function(){Ge.reloading=!1,Ge.xhr=null},Qt.checkCrossOrigin&&tr(Oe)&&Ft.crossOrigin&&(Oe=Sr(Oe)),wn.open("GET",Oe,!0),wn.responseType="arraybuffer",wn.withCredentials=Ft.crossOrigin==="use-credentials",wn.send()}}},{key:"read",value:function(Oe){var Ge=this.options,Ft=this.imageData,Qt=qt(Oe),wn=0,Gn=1,ir=1;if(Qt>1){this.url=Mt(Oe,Kt);var br=Rn(Qt);wn=br.rotate,Gn=br.scaleX,ir=br.scaleY}Ge.rotatable&&(Ft.rotate=wn),Ge.scalable&&(Ft.scaleX=Gn,Ft.scaleY=ir),this.clone()}},{key:"clone",value:function(){var Oe=this.element,Ge=this.url,Ft=Oe.crossOrigin,Qt=Ge;this.options.checkCrossOrigin&&tr(Ge)&&(Ft||(Ft="anonymous"),Qt=Sr(Ge)),this.crossOrigin=Ft,this.crossOriginUrl=Qt;var wn=document.createElement("img");Ft&&(wn.crossOrigin=Ft),wn.src=Qt||Ge,wn.alt=Oe.alt||"The image to crop",this.image=wn,wn.onload=this.start.bind(this),wn.onerror=this.stop.bind(this),rr(wn,pe),Oe.parentNode.insertBefore(wn,Oe.nextSibling)}},{key:"start",value:function(){var Oe=this,Ge=this.image;Ge.onload=null,Ge.onerror=null,this.sizing=!0;var Ft=U.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(U.navigator.userAgent),Qt=function(br,fr){Vt(Oe.imageData,{naturalWidth:br,naturalHeight:fr,aspectRatio:br/fr}),Oe.initialImageData=Vt({},Oe.imageData),Oe.sizing=!1,Oe.sized=!0,Oe.build()};if(Ge.naturalWidth&&!Ft){Qt(Ge.naturalWidth,Ge.naturalHeight);return}var wn=document.createElement("img"),Gn=document.body||document.documentElement;this.sizingImage=wn,wn.onload=function(){Qt(wn.width,wn.height),Ft||Gn.removeChild(wn)},wn.src=Ge.src,Ft||(wn.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",Gn.appendChild(wn))}},{key:"stop",value:function(){var Oe=this.image;Oe.onload=null,Oe.onerror=null,Oe.parentNode.removeChild(Oe),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var Oe=this.element,Ge=this.options,Ft=this.image,Qt=Oe.parentNode,wn=document.createElement("div");wn.innerHTML=vn;var Gn=wn.querySelector(".".concat(D,"-container")),ir=Gn.querySelector(".".concat(D,"-canvas")),br=Gn.querySelector(".".concat(D,"-drag-box")),fr=Gn.querySelector(".".concat(D,"-crop-box")),Er=fr.querySelector(".".concat(D,"-face"));this.container=Qt,this.cropper=Gn,this.canvas=ir,this.dragBox=br,this.cropBox=fr,this.viewBox=Gn.querySelector(".".concat(D,"-view-box")),this.face=Er,ir.appendChild(Ft),rr(Oe,X),Qt.insertBefore(Gn,Oe.nextSibling),Cr(Ft,pe),this.initPreview(),this.bind(),Ge.initialAspectRatio=Math.max(0,Ge.initialAspectRatio)||NaN,Ge.aspectRatio=Math.max(0,Ge.aspectRatio)||NaN,Ge.viewMode=Math.max(0,Math.min(3,Math.round(Ge.viewMode)))||0,rr(fr,X),Ge.guides||rr(fr.getElementsByClassName("".concat(D,"-dashed")),X),Ge.center||rr(fr.getElementsByClassName("".concat(D,"-center")),X),Ge.background&&rr(Gn,"".concat(D,"-bg")),Ge.highlight||rr(Er,Ie),Ge.cropBoxMovable&&(rr(Er,be),Bt(Er,fe,x)),Ge.cropBoxResizable||(rr(fr.getElementsByClassName("".concat(D,"-line")),X),rr(fr.getElementsByClassName("".concat(D,"-point")),X)),this.render(),this.ready=!0,this.setDragMode(Ge.dragMode),Ge.autoCrop&&this.crop(),this.setData(Ge.data),Ze(Ge.ready)&&on(Oe,Be,Ge.ready,{once:!0}),ze(Oe,Be)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var Oe=this.cropper.parentNode;Oe&&Oe.removeChild(this.cropper),Cr(this.element,X)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=Pn,Rt}},{key:"setDefaults",value:function(Oe){Vt(ft,Xe(Oe)&&Oe)}}]),Rt}();return Vt(Kn.prototype,Qn,ur,On,ct,Zt,Cn),Kn})},46277:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>h});var r=t(8081),n=t.n(r),s=t(23645),a=t.n(s),c=a()(n());c.push([Z.id,`.hiRENg {
  width: 600px;
  display: block;
  text-align: left;
  font-family: Arial, sans-serif;
}


h3 {
  font-weight: 300;
}

.gQjSOK {
  word-wrap: break-word;
  display: block;
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  padding: 0;
  text-align: left;
  color: rgb(30, 15, 190);
  line-height: 21.6px;
  overflow-wrap: break-word;
  overflow-x: hidden;
  overflow-y: hidden;
  text-overflow: ellipsis;
  text-rendering: optimizelegibility;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  margin-top: 0px;
  margin-right: 0px;
  margin-bottom: 0px;
  margin-left: 0px;
  padding-top: 0px;
  padding-right: 0px;
  padding-bottom: 0px;
  padding-left: 0px;
}

.fJUNil {
  margin: 1px 0 0 2px;
  word-wrap: break-word;
  overflow: hidden;
  display: block;
  color: rgb(0, 102, 33);
  font-size: 13px;
  font-weight: 400;
  margin-top: 1px;
  margin-right: 0px;
  margin-bottom: 0px;
  margin-left: 2px;
  line-height: 1.6rem;
  overflow-wrap: break-word;
  text-rendering: optimizelegibility;
  font-family: Arial, sans-serif;
  text-align: left;
  width: 320px;
  white-space: nowrap;
  overflow-x: hidden;
  overflow-y: hidden;
  text-overflow: ellipsis;
}

.fJDKvR {
  word-wrap: break-word;
  margin: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  color: rgb(84, 84, 84);
  font-size: 13px;
  line-height: 18.2px;
  font-weight: 400;
  overflow-wrap: break-word;
  text-rendering: optimizelegibility;
  font-family: Arial, sans-serif;
  margin-top: 0px;
  margin-right: 0px;
  margin-bottom: 0px;
  margin-left: 0px;
  padding-top: 0px;
  padding-right: 0px;
  padding-bottom: 0px;
  padding-left: 0px;
  display: -webkit-box;
  overflow-x: hidden;
  overflow-y: hidden;
  text-overflow: ellipsis;
}

.ckmTcA {
  color: rgb(128, 128, 128);
  font-size: 13px;
  line-height: 18.2px;
}
`,""]);const h=c},82466:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>h});var r=t(8081),n=t.n(r),s=t(23645),a=t.n(s),c=a()(n());c.push([Z.id,`@media all {
  .google-snippet-preview {
    font-family: arial, sans-serif;
    word-break: break-all;
  }
}

@media all {
  .wrap {
    margin: 10px 20px 0 2px;
  }
}

@media all {
  .wrap-snippet {
    margin: 0 0 10px 0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 10px;
    margin-left: 0px;
    box-shadow: rgba(32, 33, 36, 0.28) 0px 1px 6px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
  }
}

@media all {
  .wrap-m-icon-permalink {
    display: none;
  }
}

@media all {
  .wrap-m-icon-permalink {
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 12px;
    display: flex;
  }
}

@media all {
  .snippet-title {
    color: rgb(26, 13, 171);
    font-size: 18px;
    font-weight: 400;
    line-height: 21.6px;
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 12px;
  }
}

@media all {
  .snippet-title-custom {
    color: rgb(26, 13, 171);
    font-size: 18px;
    font-weight: 400;
    line-height: 21.6px;
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 12px;
  }
}

@media all {
  .snippet-title-default {
    color: rgb(26, 13, 171);
    font-size: 18px;
    font-weight: 400;
    line-height: 21.6px;
  }
}

@media all {
  .snippet-title-default {
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 12px;
  }
}

@media all {
  .snippet-permalink {
    overflow: hidden;
    color: rgb(0, 102, 33);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    overflow-x: hidden;
    overflow-y: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media all {
  .snippet-permalink {
    display: none;
  }
}

@media all {
  .snippet-description {
    color: rgb(84, 84, 84);
    font-size: 14px;
    font-weight: 400;
    line-height: 18.2px;
    display: inline;
  }
}

@media all {
  .snippet-description-custom {
    color: rgb(84, 84, 84);
    font-size: 14px;
    font-weight: 400;
    line-height: 18.2px;
    display: inline;
  }
}


@media all {
  .snippet-description-default {
    color: rgb(84, 84, 84);
    font-size: 14px;
    font-weight: 400;
    line-height: 18.2px;
    display: inline;
  }
}


@media all {
  .snippet-favicon {
    margin-right: 12px;
    vertical-align: middle;
    margin-right: 12px;
    vertical-align: middle;
  }
}

@media all {
  .wrap-m-icon-permalink .snippet-permalink {
    display: block;
    color: #3c4043;
    font-size: 12px;
    display: block;
    color: rgb(60, 64, 67);
    font-size: 12px;
  }
}

@media all {
  .snippet-favicon img {
    width: 16px;
    height: 16px;
    width: 16px;
    height: 16px;
  }
}
`,""]);const h=c},4334:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>h});var r=t(8081),n=t.n(r),s=t(23645),a=t.n(s),c=a()(n());c.push([Z.id,`@media all {
  .facebook-snippet-box {
    color: rgb(75, 79, 86);
    font-size: 14px;
    width: 524px;
    max-width: 100%;
  }
}

@media all {
  .facebook-snippet-box .facebook-snippet-text {
    border: 1px solid #dadde1;
    padding: 10px 12px;
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    border-top-color: rgb(218, 221, 225);
    border-right-color: rgb(218, 221, 225);
    border-bottom-color: rgb(218, 221, 225);
    border-left-color: rgb(218, 221, 225);
    border-image-source: initial;
    border-image-slice: initial;
    border-image-width: initial;
    border-image-outset: initial;
    border-image-repeat: initial;
    background-color: rgb(242, 243, 245);
  }
}

@media all {
  .facebook-snippet-box .notice {
    padding: 10px 14px;
    margin: 0 0 10px 0;
    width: 100%;
    padding-top: 10px;
    padding-right: 14px;
    padding-bottom: 10px;
    padding-left: 14px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 10px;
    margin-left: 0px;
    width: 100%;
  }
}

@media all {
  img {
    border: 0;
    border-top-width: 0px;
    border-right-width: 0px;
    border-bottom-width: 0px;
    border-left-width: 0px;
    border-top-style: initial;
    border-right-style: initial;
    border-bottom-style: initial;
    border-left-style: initial;
    border-top-color: initial;
    border-right-color: initial;
    border-bottom-color: initial;
    border-left-color: initial;
    border-image-source: initial;
    border-image-slice: initial;
    border-image-width: initial;
    border-image-outset: initial;
    border-image-repeat: initial;
  }
}

@media all {
  img {
    border: none;
    border-top-width: initial;
    border-right-width: initial;
    border-bottom-width: initial;
    border-left-width: initial;
    border-top-style: none;
    border-right-style: none;
    border-bottom-style: none;
    border-left-style: none;
    border-top-color: initial;
    border-right-color: initial;
    border-bottom-color: initial;
    border-left-color: initial;
    border-image-source: initial;
    border-image-slice: initial;
    border-image-width: initial;
    border-image-outset: initial;
    border-image-repeat: initial;
  }
}

@media all {
  .facebook-snippet-box img {
    border-bottom: none;
    display: block;
    height: 274px;
    width: 524px;
    object-fit: cover;
    background-color: rgb(240, 240, 240);
    text-align: center;
    border-bottom-width: initial;
    border-bottom-style: none;
    border-bottom-color: initial;
  }
}

@media all {
  .snippet-meta {
    overflow: hidden;
    display: flex;
    max-height: 12px;
  }
}

@media all {
  .facebook-snippet-box .title-desc {
    overflow: hidden;
    max-height: 46px;
  }
}

@media all {
  strong {
    font-weight: 600;
  }
}

@media all {
  .facebook-snippet-box .notice span {
    font-weight: 700;
  }
}

@media all {
  .snippet-fb-url {
    color: rgb(96, 103, 112);
    font-size: 12px;
    white-space: normal;
    line-height: 11px;
    text-transform: uppercase;
    display: -webkit-box;
    text-overflow: ellipsis;
  }
}

@media all {
  .fb-sep {
    padding-left: 5px;
    padding-right: 5px;
    color: rgb(96, 103, 112);
    line-height: 11px;
    font-size: 12px;
  }
}

@media all {
  .fb-by {
    color: rgb(96, 103, 112);
    font-size: 12px;
    white-space: normal;
    line-height: 11px;
    text-transform: uppercase;
    display: -webkit-box;
    text-overflow: ellipsis;
  }
}

@media all {
  .snippet-fb-site-name {
    color: rgb(96, 103, 112);
    font-size: 12px;
    white-space: normal;
    line-height: 11px;
    text-transform: uppercase;
    display: -webkit-box;
    text-overflow: ellipsis;
  }
}

@media all {
  .facebook-snippet-box .snippet-fb-title {
    margin: 3px 0 0;
    overflow: hidden;
    font-size: 16px;
    line-height: 20px;
    padding-top: 2px;
    color: rgb(29, 33, 41);
    font-weight: 700;
    display: -webkit-box;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
    max-height: 22px;
  }
}

@media all {
  .facebook-snippet-box .snippet-fb-title-custom {
    margin: 3px 0 0;
    overflow: hidden;
    font-size: 16px;
    line-height: 20px;
    padding-top: 2px;
    color: rgb(29, 33, 41);
    font-weight: 700;
    display: -webkit-box;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
    max-height: 22px;
  }
}

@media all {
  .facebook-snippet-box .snippet-fb-title-default {
    margin: 3px 0 0;
    overflow: hidden;
    font-size: 16px;
    line-height: 20px;
    padding-top: 2px;
    color: rgb(29, 33, 41);
    font-weight: 700;
    display: -webkit-box;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
    max-height: 22px;
  }
}

@media all {
  .facebook-snippet-box .snippet-fb-description {
    overflow: hidden;
    font-size: 14px;
    line-height: 20px;
    word-break: break-word;
    font-family: Helvetica, Arial, sans-serif;
    max-height: 80px;
    display: -webkit-box;
    text-overflow: ellipsis;
    white-space: normal;
    width: 100%;
  }
}

@media all {
  .facebook-snippet-box .snippet-fb-description-custom {
    overflow: hidden;
    font-size: 14px;
    line-height: 20px;
    word-break: break-word;
    font-family: Helvetica, Arial, sans-serif;
    max-height: 80px;
    display: -webkit-box;
    text-overflow: ellipsis;
    white-space: normal;
    width: 100%;
  }
}

@media all {
  .facebook-snippet-box .snippet-fb-description-default {
    overflow: hidden;
    font-size: 14px;
    line-height: 20px;
    word-break: break-word;
    font-family: Helvetica, Arial, sans-serif;
    max-height: 80px;
    display: -webkit-box;
    text-overflow: ellipsis;
    white-space: normal;
    width: 100%;
  }
}
`,""]);const h=c},22194:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>h});var r=t(8081),n=t.n(r),s=t(23645),a=t.n(s),c=a()(n());c.push([Z.id,`@media all {
  .twitter-snippet-box {
    color: rgb(75, 79, 86);
    font-size: 14px;
  }
}

@media all {
  .twitter-snippet-box .snippet-twitter-img {
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
    overflow-x: hidden;
    overflow-y: hidden;
  }
}

@media all {
  .twitter-snippet-box .twitter-snippet-text {
    border: 1px solid #dadde1;
    background-color: #fff;
    padding: 10px 12px;
    border-radius: 0 0 10px 10px;
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    border-top-color: rgb(218, 221, 225);
    border-right-color: rgb(218, 221, 225);
    border-bottom-color: rgb(218, 221, 225);
    border-left-color: rgb(218, 221, 225);
    border-image-source: initial;
    border-image-slice: initial;
    border-image-width: initial;
    border-image-outset: initial;
    border-image-repeat: initial;
    background-color: rgb(255, 255, 255);
    padding-top: 10px;
    padding-right: 12px;
    padding-bottom: 10px;
    padding-left: 12px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    max-width: 436px;
    height: 100px;
  }
}

@media all {
  img {
    border: 0;
    border-top-width: 0px;
    border-right-width: 0px;
    border-bottom-width: 0px;
    border-left-width: 0px;
    border-top-style: initial;
    border-right-style: initial;
    border-bottom-style: initial;
    border-left-style: initial;
    border-top-color: initial;
    border-right-color: initial;
    border-bottom-color: initial;
    border-left-color: initial;
    border-image-source: initial;
    border-image-slice: initial;
    border-image-width: initial;
    border-image-outset: initial;
    border-image-repeat: initial;
  }
}

@media all {
  img {
    border: none;
    border-top-width: initial;
    border-right-width: initial;
    border-bottom-width: initial;
    border-left-width: initial;
    border-top-style: none;
    border-right-style: none;
    border-bottom-style: none;
    border-left-style: none;
    border-top-color: initial;
    border-right-color: initial;
    border-bottom-color: initial;
    border-left-color: initial;
    border-image-source: initial;
    border-image-slice: initial;
    border-image-width: initial;
    border-image-outset: initial;
    border-image-repeat: initial;
  }
}

@media all {
  .twitter-snippet-box img {
    display: block;
    border-bottom: none;
    height: 200px;
    width: 436px;
    object-fit: cover;
    background-color: rgb(240, 240, 240);
    text-align: center;
    border-bottom-width: initial;
    border-bottom-style: none;
    border-bottom-color: initial;
  }
}

@media all {
  .twitter-snippet-box .title-desc {
    overflow: hidden;
    margin-bottom: 5px;
    max-height: 65px;
    overflow-x: hidden;
    overflow-y: hidden;
  }
}

@media all {
  .snippet-meta {
    display: flex;
    overflow: hidden;
    max-height: 19px;
    display: flex;
  }
}

@media all {
  strong {
    font-weight: 600;
    font-weight: 600;
  }
}

@media all {
  .twitter-snippet-box .snippet-twitter-title {
    overflow: hidden;
    font-size: 1em;
    line-height: 20px;
    margin-bottom: 5px;
    max-height: 1.3em;
    color: rgb(0, 0, 0);
    font-weight: 700;
    overflow-x: hidden;
    overflow-y: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
  }
}

@media all {
  .twitter-snippet-box .snippet-twitter-description {
    color: #000;
    line-height: 20px;
    font-family: Helvetica, Arial, sans-serif;
    max-height: 200px;
    white-space: normal;
    color: rgb(0, 0, 0);
    font-size: 14px;
    line-height: 20px;
    word-break: break-word;
    display: -webkit-box;
    white-space: normal;
    width: 100%;
  }
}

@media all {
  .snippet-twitter-url {
    color: rgb(136, 153, 166);
    font-size: 14px;
    white-space: normal;
    display: -webkit-box;
    text-overflow: ellipsis;
  }
}

@media all {
  .twitter-snippet-box .snippet-twitter-img-custom {
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
    overflow-x: hidden;
    overflow-y: hidden;
  }
}

@media all {
  .twitter-snippet-box .snippet-twitter-img-default {
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
    overflow-x: hidden;
    overflow-y: hidden;
  }
}
`,""]);const h=c},95073:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>M});var r=t(8081),n=t.n(r),s=t(23645),a=t.n(s),c=t(61667),h=t.n(c),p=new URL(t(8738),t.b),d=a()(n()),k=h()(p);d.push([Z.id,`/*!
 * Cropper.js v1.6.0
 * https://fengyuanchen.github.io/cropperjs
 *
 * Copyright 2015-present Chen Fengyuan
 * Released under the MIT license
 *
 * Date: 2023-08-26T08:14:25.104Z
 */

.cropper-container {
  direction: ltr;
  font-size: 0;
  line-height: 0;
  position: relative;
  -ms-touch-action: none;
      touch-action: none;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.cropper-container img {
    backface-visibility: hidden;
    display: block;
    height: 100%;
    image-orientation: 0deg;
    max-height: none !important;
    max-width: none !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: 100%;
  }

.cropper-wrap-box,
.cropper-canvas,
.cropper-drag-box,
.cropper-crop-box,
.cropper-modal {
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.cropper-wrap-box,
.cropper-canvas {
  overflow: hidden;
}

.cropper-drag-box {
  background-color: #fff;
  opacity: 0;
}

.cropper-modal {
  background-color: #000;
  opacity: 0.5;
}

.cropper-view-box {
  display: block;
  height: 100%;
  outline: 1px solid #39f;
  outline-color: rgba(51, 153, 255, 75%);
  overflow: hidden;
  width: 100%;
}

.cropper-dashed {
  border: 0 dashed #eee;
  display: block;
  opacity: 0.5;
  position: absolute;
}

.cropper-dashed.dashed-h {
    border-bottom-width: 1px;
    border-top-width: 1px;
    height: calc(100% / 3);
    left: 0;
    top: calc(100% / 3);
    width: 100%;
  }

.cropper-dashed.dashed-v {
    border-left-width: 1px;
    border-right-width: 1px;
    height: 100%;
    left: calc(100% / 3);
    top: 0;
    width: calc(100% / 3);
  }

.cropper-center {
  display: block;
  height: 0;
  left: 50%;
  opacity: 0.75;
  position: absolute;
  top: 50%;
  width: 0;
}

.cropper-center::before,
  .cropper-center::after {
    background-color: #eee;
    content: " ";
    display: block;
    position: absolute;
  }

.cropper-center::before {
    height: 1px;
    left: -3px;
    top: 0;
    width: 7px;
  }

.cropper-center::after {
    height: 7px;
    left: 0;
    top: -3px;
    width: 1px;
  }

.cropper-face,
.cropper-line,
.cropper-point {
  display: block;
  height: 100%;
  opacity: 0.1;
  position: absolute;
  width: 100%;
}

.cropper-face {
  background-color: #fff;
  left: 0;
  top: 0;
}

.cropper-line {
  background-color: #39f;
}

.cropper-line.line-e {
    cursor: ew-resize;
    right: -3px;
    top: 0;
    width: 5px;
  }

.cropper-line.line-n {
    cursor: ns-resize;
    height: 5px;
    left: 0;
    top: -3px;
  }

.cropper-line.line-w {
    cursor: ew-resize;
    left: -3px;
    top: 0;
    width: 5px;
  }

.cropper-line.line-s {
    bottom: -3px;
    cursor: ns-resize;
    height: 5px;
    left: 0;
  }

.cropper-point {
  background-color: #39f;
  height: 5px;
  opacity: 0.75;
  width: 5px;
}

.cropper-point.point-e {
    cursor: ew-resize;
    margin-top: -3px;
    right: -3px;
    top: 50%;
  }

.cropper-point.point-n {
    cursor: ns-resize;
    left: 50%;
    margin-left: -3px;
    top: -3px;
  }

.cropper-point.point-w {
    cursor: ew-resize;
    left: -3px;
    margin-top: -3px;
    top: 50%;
  }

.cropper-point.point-s {
    bottom: -3px;
    cursor: s-resize;
    left: 50%;
    margin-left: -3px;
  }

.cropper-point.point-ne {
    cursor: nesw-resize;
    right: -3px;
    top: -3px;
  }

.cropper-point.point-nw {
    cursor: nwse-resize;
    left: -3px;
    top: -3px;
  }

.cropper-point.point-sw {
    bottom: -3px;
    cursor: nesw-resize;
    left: -3px;
  }

.cropper-point.point-se {
    bottom: -3px;
    cursor: nwse-resize;
    height: 20px;
    opacity: 1;
    right: -3px;
    width: 20px;
  }

@media (min-width: 768px) {

.cropper-point.point-se {
      height: 15px;
      width: 15px;
  }
    }

@media (min-width: 992px) {

.cropper-point.point-se {
      height: 10px;
      width: 10px;
  }
    }

@media (min-width: 1200px) {

.cropper-point.point-se {
      height: 5px;
      opacity: 0.75;
      width: 5px;
  }
    }

.cropper-point.point-se::before {
    background-color: #39f;
    bottom: -50%;
    content: " ";
    display: block;
    height: 200%;
    opacity: 0;
    position: absolute;
    right: -50%;
    width: 200%;
  }

.cropper-invisible {
  opacity: 0;
}

.cropper-bg {
  background-image: url(${k});
}

.cropper-hide {
  display: block;
  height: 0;
  position: absolute;
  width: 0;
}

.cropper-hidden {
  display: none !important;
}

.cropper-move {
  cursor: move;
}

.cropper-crop {
  cursor: crosshair;
}

.cropper-disabled .cropper-drag-box,
.cropper-disabled .cropper-face,
.cropper-disabled .cropper-line,
.cropper-disabled .cropper-point {
  cursor: not-allowed;
}
`,""]);const M=d},23645:Z=>{"use strict";Z.exports=function(v){var t=[];return t.toString=function(){return this.map(function(n){var s="",a=typeof n[5]<"u";return n[4]&&(s+="@supports (".concat(n[4],") {")),n[2]&&(s+="@media ".concat(n[2]," {")),a&&(s+="@layer".concat(n[5].length>0?" ".concat(n[5]):""," {")),s+=v(n),a&&(s+="}"),n[2]&&(s+="}"),n[4]&&(s+="}"),s}).join("")},t.i=function(n,s,a,c,h){typeof n=="string"&&(n=[[null,n,void 0]]);var p={};if(a)for(var d=0;d<this.length;d++){var k=this[d][0];k!=null&&(p[k]=!0)}for(var M=0;M<n.length;M++){var C=[].concat(n[M]);a&&p[C[0]]||(typeof h<"u"&&(typeof C[5]>"u"||(C[1]="@layer".concat(C[5].length>0?" ".concat(C[5]):""," {").concat(C[1],"}")),C[5]=h),s&&(C[2]&&(C[1]="@media ".concat(C[2]," {").concat(C[1],"}")),C[2]=s),c&&(C[4]?(C[1]="@supports (".concat(C[4],") {").concat(C[1],"}"),C[4]=c):C[4]="".concat(c)),t.push(C))}},t}},61667:Z=>{"use strict";Z.exports=function(v,t){return t||(t={}),v&&(v=String(v.__esModule?v.default:v),/^['"].*['"]$/.test(v)&&(v=v.slice(1,-1)),t.hash&&(v+=t.hash),/["'() \t\n]|(%20)/.test(v)||t.needQuotes?'"'.concat(v.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):v)}},8081:Z=>{"use strict";Z.exports=function(v){return v[1]}},44941:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>n});var r=t(21224);const n=r.Z},84314:(Z,v,t)=>{"use strict";t.d(v,{j:()=>n});var r={};function n(){return r}function s(a){r=a}},24262:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>r});function r(n){var s=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return s.setUTCFullYear(n.getFullYear()),n.getTime()-s.getTime()}},13882:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>r});function r(n,s){if(s.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+s.length+" present")}},93645:(Z,v,t)=>{"use strict";t.d(v,{u:()=>s});var r={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(c){return c<0?Math.ceil(c):Math.floor(c)}},n="trunc";function s(a){return a?r[a]:r[n]}},83946:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>r});function r(n){if(n===null||n===!0||n===!1)return NaN;var s=Number(n);return isNaN(s)?s:s<0?Math.ceil(s):Math.floor(s)}},77349:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>a});var r=t(83946),n=t(19013),s=t(13882);function a(c,h){(0,s.Z)(2,arguments);var p=(0,n.Z)(c),d=(0,r.Z)(h);return isNaN(d)?new Date(NaN):(d&&p.setDate(p.getDate()+d),p)}},49474:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(19013),n=t(13882);function s(a,c){(0,n.Z)(2,arguments);var h=(0,r.Z)(a),p=(0,r.Z)(c),d=h.getTime()-p.getTime();return d<0?-1:d>0?1:d}},36948:(Z,v,t)=>{"use strict";t.d(v,{vh:()=>c,yJ:()=>a});var r=7,n=365.2425,s=Math.pow(10,8)*24*60*60*1e3,a=6e4,c=36e5,h=1e3,p=-s,d=60,k=3,M=12,C=4,w=3600,I=60,F=w*24,U=F*7,B=F*n,N=B/12,D=N*3},59910:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(19013),n=t(13882);function s(a,c){return(0,n.Z)(2,arguments),(0,r.Z)(a).getTime()-(0,r.Z)(c).getTime()}},83918:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>d});var r=t(19013),n=t(13882);function s(k,M){(0,n.Z)(2,arguments);var C=(0,r.Z)(k),w=(0,r.Z)(M),I=C.getFullYear()-w.getFullYear(),F=C.getMonth()-w.getMonth();return I*12+F}var a=t(49474);function c(k){(0,n.Z)(1,arguments);var M=(0,r.Z)(k);return M.setHours(23,59,59,999),M}function h(k){(0,n.Z)(1,arguments);var M=(0,r.Z)(k),C=M.getMonth();return M.setFullYear(M.getFullYear(),C+1,0),M.setHours(23,59,59,999),M}function p(k){(0,n.Z)(1,arguments);var M=(0,r.Z)(k);return c(M).getTime()===h(M).getTime()}function d(k,M){(0,n.Z)(2,arguments);var C=(0,r.Z)(k),w=(0,r.Z)(M),I=(0,a.Z)(C,w),F=Math.abs(s(C,w)),U;if(F<1)U=0;else{C.getMonth()===1&&C.getDate()>27&&C.setDate(30),C.setMonth(C.getMonth()-I*F);var B=(0,a.Z)(C,w)===-I;p((0,r.Z)(k))&&F===1&&(0,a.Z)(k,w)===1&&(B=!1),U=I*(F-Number(B))}return U===0?0:U}},11699:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>a});var r=t(59910),n=t(13882),s=t(93645);function a(c,h,p){(0,n.Z)(2,arguments);var d=(0,r.Z)(c,h)/1e3;return(0,s.u)(p?.roundingMethod)(d)}},35978:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>A});var r=t(49474),n=t(71002),s=t(77349),a=t(83946),c=t(19013),h=t(13882);function p(R,H){(0,h.Z)(2,arguments);var z=(0,c.Z)(R),V=(0,a.Z)(H);if(isNaN(V))return new Date(NaN);if(!V)return z;var $=z.getDate(),ee=new Date(z.getTime());ee.setMonth(z.getMonth()+V+1,0);var q=ee.getDate();return $>=q?ee:(z.setFullYear(ee.getFullYear(),ee.getMonth(),$),z)}function d(R,H){if((0,h.Z)(2,arguments),!H||(0,n.Z)(H)!=="object")return new Date(NaN);var z=H.years?(0,a.Z)(H.years):0,V=H.months?(0,a.Z)(H.months):0,$=H.weeks?(0,a.Z)(H.weeks):0,ee=H.days?(0,a.Z)(H.days):0,q=H.hours?(0,a.Z)(H.hours):0,oe=H.minutes?(0,a.Z)(H.minutes):0,X=H.seconds?(0,a.Z)(H.seconds):0,pe=(0,c.Z)(R),Ie=V||z?p(pe,V+z*12):pe,se=ee||$?(0,s.Z)(Ie,ee+$*7):Ie,be=oe+q*60,fe=X+be*60,ue=fe*1e3,we=new Date(se.getTime()+ue);return we}var k=t(24262);function M(R){(0,h.Z)(1,arguments);var H=(0,c.Z)(R);return H.setHours(0,0,0,0),H}var C=864e5;function w(R,H){(0,h.Z)(2,arguments);var z=M(R),V=M(H),$=z.getTime()-(0,k.Z)(z),ee=V.getTime()-(0,k.Z)(V);return Math.round(($-ee)/C)}function I(R,H){var z=R.getFullYear()-H.getFullYear()||R.getMonth()-H.getMonth()||R.getDate()-H.getDate()||R.getHours()-H.getHours()||R.getMinutes()-H.getMinutes()||R.getSeconds()-H.getSeconds()||R.getMilliseconds()-H.getMilliseconds();return z<0?-1:z>0?1:z}function F(R,H){(0,h.Z)(2,arguments);var z=(0,c.Z)(R),V=(0,c.Z)(H),$=I(z,V),ee=Math.abs(w(z,V));z.setDate(z.getDate()-$*ee);var q=Number(I(z,V)===-$),oe=$*(ee-q);return oe===0?0:oe}var U=t(36948),B=t(59910),N=t(93645);function D(R,H,z){(0,h.Z)(2,arguments);var V=(0,B.Z)(R,H)/U.vh;return(0,N.u)(z?.roundingMethod)(V)}function x(R,H,z){(0,h.Z)(2,arguments);var V=(0,B.Z)(R,H)/U.yJ;return(0,N.u)(z?.roundingMethod)(V)}var T=t(83918),u=t(11699);function b(R,H){(0,h.Z)(2,arguments);var z=(0,c.Z)(R),V=(0,c.Z)(H);return z.getFullYear()-V.getFullYear()}function E(R,H){(0,h.Z)(2,arguments);var z=(0,c.Z)(R),V=(0,c.Z)(H),$=(0,r.Z)(z,V),ee=Math.abs(b(z,V));z.setFullYear(1584),V.setFullYear(1584);var q=(0,r.Z)(z,V)===-$,oe=$*(ee-Number(q));return oe===0?0:oe}function A(R){(0,h.Z)(1,arguments);var H=(0,c.Z)(R.start),z=(0,c.Z)(R.end);if(isNaN(H.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(z.getTime()))throw new RangeError("End Date is invalid");var V={};V.years=Math.abs(E(z,H));var $=(0,r.Z)(z,H),ee=d(H,{years:$*V.years});V.months=Math.abs((0,T.Z)(z,ee));var q=d(ee,{months:$*V.months});V.days=Math.abs(F(z,q));var oe=d(q,{days:$*V.days});V.hours=Math.abs(D(z,oe));var X=d(oe,{hours:$*V.hours});V.minutes=Math.abs(x(z,X));var pe=d(X,{minutes:$*V.minutes});return V.seconds=Math.abs((0,u.Z)(z,pe)),V}},49526:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>r});function r(n){return function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=s.width?String(s.width):n.defaultWidth,c=n.formats[a]||n.formats[n.defaultWidth];return c}}},88486:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>r});function r(n){return function(s,a){var c=a!=null&&a.context?String(a.context):"standalone",h;if(c==="formatting"&&n.formattingValues){var p=n.defaultFormattingWidth||n.defaultWidth,d=a!=null&&a.width?String(a.width):p;h=n.formattingValues[d]||n.formattingValues[p]}else{var k=n.defaultWidth,M=a!=null&&a.width?String(a.width):n.defaultWidth;h=n.values[M]||n.values[k]}var C=n.argumentCallback?n.argumentCallback(s):s;return h[C]}}},76723:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>r});function r(a){return function(c){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=h.width,d=p&&a.matchPatterns[p]||a.matchPatterns[a.defaultMatchWidth],k=c.match(d);if(!k)return null;var M=k[0],C=p&&a.parsePatterns[p]||a.parsePatterns[a.defaultParseWidth],w=Array.isArray(C)?s(C,function(U){return U.test(M)}):n(C,function(U){return U.test(M)}),I;I=a.valueCallback?a.valueCallback(w):w,I=h.valueCallback?h.valueCallback(I):I;var F=c.slice(M.length);return{value:I,rest:F}}}function n(a,c){for(var h in a)if(a.hasOwnProperty(h)&&c(a[h]))return h}function s(a,c){for(var h=0;h<a.length;h++)if(c(a[h]))return h}},60974:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>r});function r(n){return function(s){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=s.match(n.matchPattern);if(!c)return null;var h=c[0],p=s.match(n.parsePattern);if(!p)return null;var d=n.valueCallback?n.valueCallback(p[0]):p[0];d=a.valueCallback?a.valueCallback(d):d;var k=s.slice(h.length);return{value:d,rest:k}}}},81991:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},n=function(c,h,p){var d,k=r[c];return typeof k=="string"?d=k:h===1?d=k.one:d=k.other.replace("{{count}}",h.toString()),p!=null&&p.addSuffix?p.comparison&&p.comparison>0?"in "+d:d+" ago":d};const s=n},21865:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},n=function(c,h,p,d){return r[c]};const s=n},11950:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>M});var r=t(88486),n={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},s={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},a={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},c={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},h={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},p={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},d=function(w,I){var F=Number(w),U=F%100;if(U>20||U<10)switch(U%10){case 1:return F+"st";case 2:return F+"nd";case 3:return F+"rd"}return F+"th"},k={ordinalNumber:d,era:(0,r.Z)({values:n,defaultWidth:"wide"}),quarter:(0,r.Z)({values:s,defaultWidth:"wide",argumentCallback:function(w){return w-1}}),month:(0,r.Z)({values:a,defaultWidth:"wide"}),day:(0,r.Z)({values:c,defaultWidth:"wide"}),dayPeriod:(0,r.Z)({values:h,defaultWidth:"wide",formattingValues:p,defaultFormattingWidth:"wide"})};const M=k},7219:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>B});var r=t(76723),n=t(60974),s=/^(\d+)(th|st|nd|rd)?/i,a=/\d+/i,c={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},h={any:[/^b/i,/^(a|c)/i]},p={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},d={any:[/1/i,/2/i,/3/i,/4/i]},k={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},M={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},C={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},w={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},I={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},F={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},U={ordinalNumber:(0,n.Z)({matchPattern:s,parsePattern:a,valueCallback:function(D){return parseInt(D,10)}}),era:(0,r.Z)({matchPatterns:c,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any"}),quarter:(0,r.Z)({matchPatterns:p,defaultMatchWidth:"wide",parsePatterns:d,defaultParseWidth:"any",valueCallback:function(D){return D+1}}),month:(0,r.Z)({matchPatterns:k,defaultMatchWidth:"wide",parsePatterns:M,defaultParseWidth:"any"}),day:(0,r.Z)({matchPatterns:C,defaultMatchWidth:"wide",parsePatterns:w,defaultParseWidth:"any"}),dayPeriod:(0,r.Z)({matchPatterns:I,defaultMatchWidth:"any",parsePatterns:F,defaultParseWidth:"any"})};const B=U},21224:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>w});var r=t(81991),n=t(49526),s={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},a={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},c={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},h={date:(0,n.Z)({formats:s,defaultWidth:"full"}),time:(0,n.Z)({formats:a,defaultWidth:"full"}),dateTime:(0,n.Z)({formats:c,defaultWidth:"full"})};const p=h;var d=t(21865),k=t(11950),M=t(7219),C={code:"en-US",formatDistance:r.Z,formatLong:p,formatRelative:d.Z,localize:k.Z,match:M.Z,options:{weekStartsOn:0,firstWeekContainsDate:1}};const w=C},23855:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>a});var r=t(36948),n=t(13882),s=t(83946);function a(A,R){var H;(0,n.Z)(1,arguments);var z=(0,s.Z)((H=R?.additionalDigits)!==null&&H!==void 0?H:2);if(z!==2&&z!==1&&z!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof A=="string"||Object.prototype.toString.call(A)==="[object String]"))return new Date(NaN);var V=k(A),$;if(V.date){var ee=M(V.date,z);$=C(ee.restDateString,ee.year)}if(!$||isNaN($.getTime()))return new Date(NaN);var q=$.getTime(),oe=0,X;if(V.time&&(oe=I(V.time),isNaN(oe)))return new Date(NaN);if(V.timezone){if(X=U(V.timezone),isNaN(X))return new Date(NaN)}else{var pe=new Date(q+oe),Ie=new Date(0);return Ie.setFullYear(pe.getUTCFullYear(),pe.getUTCMonth(),pe.getUTCDate()),Ie.setHours(pe.getUTCHours(),pe.getUTCMinutes(),pe.getUTCSeconds(),pe.getUTCMilliseconds()),Ie}return new Date(q+oe+X)}var c={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},h=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,p=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,d=/^([+-])(\d{2})(?::?(\d{2}))?$/;function k(A){var R={},H=A.split(c.dateTimeDelimiter),z;if(H.length>2)return R;if(/:/.test(H[0])?z=H[0]:(R.date=H[0],z=H[1],c.timeZoneDelimiter.test(R.date)&&(R.date=A.split(c.timeZoneDelimiter)[0],z=A.substr(R.date.length,A.length))),z){var V=c.timezone.exec(z);V?(R.time=z.replace(V[1],""),R.timezone=V[1]):R.time=z}return R}function M(A,R){var H=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+R)+"})|(\\d{2}|[+-]\\d{"+(2+R)+"})$)"),z=A.match(H);if(!z)return{year:NaN,restDateString:""};var V=z[1]?parseInt(z[1]):null,$=z[2]?parseInt(z[2]):null;return{year:$===null?V:$*100,restDateString:A.slice((z[1]||z[2]).length)}}function C(A,R){if(R===null)return new Date(NaN);var H=A.match(h);if(!H)return new Date(NaN);var z=!!H[4],V=w(H[1]),$=w(H[2])-1,ee=w(H[3]),q=w(H[4]),oe=w(H[5])-1;if(z)return u(R,q,oe)?B(R,q,oe):new Date(NaN);var X=new Date(0);return!x(R,$,ee)||!T(R,V)?new Date(NaN):(X.setUTCFullYear(R,$,Math.max(V,ee)),X)}function w(A){return A?parseInt(A):1}function I(A){var R=A.match(p);if(!R)return NaN;var H=F(R[1]),z=F(R[2]),V=F(R[3]);return b(H,z,V)?H*r.vh+z*r.yJ+V*1e3:NaN}function F(A){return A&&parseFloat(A.replace(",","."))||0}function U(A){if(A==="Z")return 0;var R=A.match(d);if(!R)return 0;var H=R[1]==="+"?-1:1,z=parseInt(R[2]),V=R[3]&&parseInt(R[3])||0;return E(z,V)?H*(z*r.vh+V*r.yJ):NaN}function B(A,R,H){var z=new Date(0);z.setUTCFullYear(A,0,4);var V=z.getUTCDay()||7,$=(R-1)*7+H+1-V;return z.setUTCDate(z.getUTCDate()+$),z}var N=[31,null,31,30,31,30,31,31,30,31,30,31];function D(A){return A%400===0||A%4===0&&A%100!==0}function x(A,R,H){return R>=0&&R<=11&&H>=1&&H<=(N[R]||(D(A)?29:28))}function T(A,R){return R>=1&&R<=(D(A)?366:365)}function u(A,R,H){return R>=1&&R<=53&&H>=0&&H<=6}function b(A,R,H){return A===24?R===0&&H===0:H>=0&&H<60&&R>=0&&R<60&&A>=0&&A<25}function E(A,R){return R>=0&&R<=59}},19013:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(71002),n=t(13882);function s(a){(0,n.Z)(1,arguments);var c=Object.prototype.toString.call(a);return a instanceof Date||(0,r.Z)(a)==="object"&&c==="[object Date]"?new Date(a.getTime()):typeof a=="number"||c==="[object Number]"?new Date(a):((typeof a=="string"||c==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}},9996:Z=>{"use strict";var v=function(N){return t(N)&&!r(N)};function t(B){return!!B&&typeof B=="object"}function r(B){var N=Object.prototype.toString.call(B);return N==="[object RegExp]"||N==="[object Date]"||a(B)}var n=typeof Symbol=="function"&&Symbol.for,s=n?Symbol.for("react.element"):60103;function a(B){return B.$$typeof===s}function c(B){return Array.isArray(B)?[]:{}}function h(B,N){return N.clone!==!1&&N.isMergeableObject(B)?F(c(B),B,N):B}function p(B,N,D){return B.concat(N).map(function(x){return h(x,D)})}function d(B,N){if(!N.customMerge)return F;var D=N.customMerge(B);return typeof D=="function"?D:F}function k(B){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(B).filter(function(N){return Object.propertyIsEnumerable.call(B,N)}):[]}function M(B){return Object.keys(B).concat(k(B))}function C(B,N){try{return N in B}catch{return!1}}function w(B,N){return C(B,N)&&!(Object.hasOwnProperty.call(B,N)&&Object.propertyIsEnumerable.call(B,N))}function I(B,N,D){var x={};return D.isMergeableObject(B)&&M(B).forEach(function(T){x[T]=h(B[T],D)}),M(N).forEach(function(T){w(B,T)||(C(B,T)&&D.isMergeableObject(N[T])?x[T]=d(T,D)(B[T],N[T],D):x[T]=h(N[T],D))}),x}function F(B,N,D){D=D||{},D.arrayMerge=D.arrayMerge||p,D.isMergeableObject=D.isMergeableObject||v,D.cloneUnlessOtherwiseSpecified=h;var x=Array.isArray(N),T=Array.isArray(B),u=x===T;return u?x?D.arrayMerge(B,N,D):I(B,N,D):h(N,D)}F.all=function(N,D){if(!Array.isArray(N))throw new Error("first argument should be an array");return N.reduce(function(x,T){return F(x,T,D)},{})};var U=F;Z.exports=U},83352:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.createBeginDrag=h;var r=t(56278),n=t(23735),s=t(26695),a=t(4758);const c={type:a.INIT_COORDS,payload:{clientOffset:null,sourceClientOffset:null}};function h(C){return function(I=[],F={publishSource:!0}){const{publishSource:U=!0,clientOffset:B,getSourceClientOffset:N}=F,D=C.getMonitor(),x=C.getRegistry();C.dispatch(n.setClientOffset(B)),p(I,D,x);const T=M(I,D);if(T==null){C.dispatch(c);return}let u=null;if(B){if(!N)throw new Error("getSourceClientOffset must be defined");d(N),u=N(T)}C.dispatch(n.setClientOffset(B,u));const E=x.getSource(T).beginDrag(D,T);if(E==null)return;k(E),x.pinSource(T);const A=x.getSourceType(T);return{type:a.BEGIN_DRAG,payload:{itemType:A,item:E,sourceId:T,clientOffset:B||null,sourceClientOffset:u||null,isSourcePublic:!!U}}}}function p(C,w,I){r.invariant(!w.isDragging(),"Cannot call beginDrag while dragging."),C.forEach(function(F){r.invariant(I.getSource(F),"Expected sourceIds to be registered.")})}function d(C){r.invariant(typeof C=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function k(C){r.invariant(s.isObject(C),"Item must be an object.")}function M(C,w){let I=null;for(let F=C.length-1;F>=0;F--)if(w.canDragSource(C[F])){I=C[F];break}return I}},20436:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.createDrop=h;var r=t(56278),n=t(4758),s=t(26695);function a(C,w,I){return w in C?Object.defineProperty(C,w,{value:I,enumerable:!0,configurable:!0,writable:!0}):C[w]=I,C}function c(C){for(var w=1;w<arguments.length;w++){var I=arguments[w]!=null?arguments[w]:{},F=Object.keys(I);typeof Object.getOwnPropertySymbols=="function"&&(F=F.concat(Object.getOwnPropertySymbols(I).filter(function(U){return Object.getOwnPropertyDescriptor(I,U).enumerable}))),F.forEach(function(U){a(C,U,I[U])})}return C}function h(C){return function(I={}){const F=C.getMonitor(),U=C.getRegistry();p(F),M(F).forEach((N,D)=>{const x=d(N,D,U,F),T={type:n.DROP,payload:{dropResult:c({},I,x)}};C.dispatch(T)})}}function p(C){r.invariant(C.isDragging(),"Cannot call drop while not dragging."),r.invariant(!C.didDrop(),"Cannot call drop twice during one drag operation.")}function d(C,w,I,F){const U=I.getTarget(C);let B=U?U.drop(F,C):void 0;return k(B),typeof B>"u"&&(B=w===0?{}:F.getDropResult()),B}function k(C){r.invariant(typeof C>"u"||s.isObject(C),"Drop result must either be an object or undefined.")}function M(C){const w=C.getTargetIds().filter(C.canDropOnTarget,C);return w.reverse(),w}},37849:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.createEndDrag=s;var r=t(56278),n=t(4758);function s(c){return function(){const p=c.getMonitor(),d=c.getRegistry();a(p);const k=p.getSourceId();return k!=null&&(d.getSource(k,!0).endDrag(p,k),d.unpinSource()),{type:n.END_DRAG}}}function a(c){r.invariant(c.isDragging(),"Cannot call endDrag while not dragging.")}},25677:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.createHover=a;var r=t(56278),n=t(74209),s=t(4758);function a(k){return function(C,{clientOffset:w}={}){c(C);const I=C.slice(0),F=k.getMonitor(),U=k.getRegistry();h(I,F,U);const B=F.getItemType();return p(I,U,B),d(I,F,U),{type:s.HOVER,payload:{targetIds:I,clientOffset:w||null}}}}function c(k){r.invariant(Array.isArray(k),"Expected targetIds to be an array.")}function h(k,M,C){r.invariant(M.isDragging(),"Cannot call hover while not dragging."),r.invariant(!M.didDrop(),"Cannot call hover after drop.");for(let w=0;w<k.length;w++){const I=k[w];r.invariant(k.lastIndexOf(I)===w,"Expected targetIds to be unique in the passed array.");const F=C.getTarget(I);r.invariant(F,"Expected targetIds to be registered.")}}function p(k,M,C){for(let w=k.length-1;w>=0;w--){const I=k[w],F=M.getTargetType(I);n.matchesType(F,C)||k.splice(w,1)}}function d(k,M,C){k.forEach(function(w){C.getTarget(w).hover(M,w)})}},38674:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});var r={createDragDropActions:!0,manager:!0};v.createDragDropActions=k;var n=t(83352),s=t(50643),a=t(25677),c=t(20436),h=t(37849),p=d(t(4758));Object.keys(p).forEach(function(M){M==="default"||M==="__esModule"||Object.prototype.hasOwnProperty.call(r,M)||M in v&&v[M]===p[M]||Object.defineProperty(v,M,{enumerable:!0,get:function(){return p[M]}})});function d(M){if(M&&M.__esModule)return M;var C={};if(M!=null){for(var w in M)if(Object.prototype.hasOwnProperty.call(M,w)){var I=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(M,w):{};I.get||I.set?Object.defineProperty(C,w,I):C[w]=M[w]}}return C.default=M,C}function k(M){return{beginDrag:n.createBeginDrag(M),publishDragSource:s.createPublishDragSource(M),hover:a.createHover(M),drop:c.createDrop(M),endDrag:h.createEndDrag(M)}}},23735:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.setClientOffset=n;var r=t(4758);function n(s,a){return{type:r.INIT_COORDS,payload:{sourceClientOffset:a||null,clientOffset:s||null}}}},50643:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.createPublishDragSource=n;var r=t(4758);function n(s){return function(){if(s.getMonitor().isDragging())return{type:r.PUBLISH_DRAG_SOURCE}}}},4758:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.END_DRAG=v.DROP=v.HOVER=v.PUBLISH_DRAG_SOURCE=v.BEGIN_DRAG=v.INIT_COORDS=void 0;const t="dnd-core/INIT_COORDS";v.INIT_COORDS=t;const r="dnd-core/BEGIN_DRAG";v.BEGIN_DRAG=r;const n="dnd-core/PUBLISH_DRAG_SOURCE";v.PUBLISH_DRAG_SOURCE=n;const s="dnd-core/HOVER";v.HOVER=s;const a="dnd-core/DROP";v.DROP=a;const c="dnd-core/END_DRAG";v.END_DRAG=c},80700:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.addSource=a,v.addTarget=c,v.removeSource=h,v.removeTarget=p,v.REMOVE_TARGET=v.REMOVE_SOURCE=v.ADD_TARGET=v.ADD_SOURCE=void 0;const t="dnd-core/ADD_SOURCE";v.ADD_SOURCE=t;const r="dnd-core/ADD_TARGET";v.ADD_TARGET=r;const n="dnd-core/REMOVE_SOURCE";v.REMOVE_SOURCE=n;const s="dnd-core/REMOVE_TARGET";v.REMOVE_TARGET=s;function a(d){return{type:t,payload:{sourceId:d}}}function c(d){return{type:r,payload:{targetId:d}}}function h(d){return{type:n,payload:{sourceId:d}}}function p(d){return{type:s,payload:{targetId:d}}}},56982:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});var r=t(38674);class n{receiveBackend(a){this.backend=a}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const a=this,{dispatch:c}=this.store;function h(d){return(...k)=>{const M=d.apply(a,k);typeof M<"u"&&c(M)}}const p=r.createDragDropActions(this);return Object.keys(p).reduce((d,k)=>{const M=p[k];return d[k]=h(M),d},{})}dispatch(a){this.store.dispatch(a)}constructor(a,c){this.isSetUp=!1,this.handleRefCountChange=()=>{const h=this.store.getState().refCount>0;this.backend&&(h&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!h&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=a,this.monitor=c,a.subscribe(this.handleRefCountChange)}}v.DragDropManagerImpl=n},97953:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});var r=t(56278),n=t(74209),s=t(66010),a=t(41558);class c{subscribeToStateChange(p,d={}){const{handlerIds:k}=d;r.invariant(typeof p=="function","listener must be a function."),r.invariant(typeof k>"u"||Array.isArray(k),"handlerIds, when specified, must be an array of strings.");let M=this.store.getState().stateId;const C=()=>{const w=this.store.getState(),I=w.stateId;try{I===M||I===M+1&&!a.areDirty(w.dirtyHandlerIds,k)||p()}finally{M=I}};return this.store.subscribe(C)}subscribeToOffsetChange(p){r.invariant(typeof p=="function","listener must be a function.");let d=this.store.getState().dragOffset;const k=()=>{const M=this.store.getState().dragOffset;M!==d&&(d=M,p())};return this.store.subscribe(k)}canDragSource(p){if(!p)return!1;const d=this.registry.getSource(p);return r.invariant(d,`Expected to find a valid source. sourceId=${p}`),this.isDragging()?!1:d.canDrag(this,p)}canDropOnTarget(p){if(!p)return!1;const d=this.registry.getTarget(p);if(r.invariant(d,`Expected to find a valid target. targetId=${p}`),!this.isDragging()||this.didDrop())return!1;const k=this.registry.getTargetType(p),M=this.getItemType();return n.matchesType(k,M)&&d.canDrop(this,p)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(p){if(!p)return!1;const d=this.registry.getSource(p,!0);if(r.invariant(d,`Expected to find a valid source. sourceId=${p}`),!this.isDragging()||!this.isSourcePublic())return!1;const k=this.registry.getSourceType(p),M=this.getItemType();return k!==M?!1:d.isDragging(this,p)}isOverTarget(p,d={shallow:!1}){if(!p)return!1;const{shallow:k}=d;if(!this.isDragging())return!1;const M=this.registry.getTargetType(p),C=this.getItemType();if(C&&!n.matchesType(M,C))return!1;const w=this.getTargetIds();if(!w.length)return!1;const I=w.indexOf(p);return k?I===w.length-1:I>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return s.getSourceClientOffset(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return s.getDifferenceFromInitialOffset(this.store.getState().dragOffset)}constructor(p,d){this.store=p,this.registry=d}}v.DragDropMonitorImpl=c},4224:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});var r=t(56278),n=t(80700),s=t(9938),a=t(64279),c=t(59770),h=t(68280);function p(C){const w=s.getNextUniqueId().toString();switch(C){case a.HandlerRole.SOURCE:return`S${w}`;case a.HandlerRole.TARGET:return`T${w}`;default:throw new Error(`Unknown Handler Role: ${C}`)}}function d(C){switch(C[0]){case"S":return a.HandlerRole.SOURCE;case"T":return a.HandlerRole.TARGET;default:throw new Error(`Cannot parse handler ID: ${C}`)}}function k(C,w){const I=C.entries();let F=!1;do{const{done:U,value:[,B]}=I.next();if(B===w)return!0;F=!!U}while(!F);return!1}class M{addSource(w,I){c.validateType(w),c.validateSourceContract(I);const F=this.addHandler(a.HandlerRole.SOURCE,w,I);return this.store.dispatch(n.addSource(F)),F}addTarget(w,I){c.validateType(w,!0),c.validateTargetContract(I);const F=this.addHandler(a.HandlerRole.TARGET,w,I);return this.store.dispatch(n.addTarget(F)),F}containsHandler(w){return k(this.dragSources,w)||k(this.dropTargets,w)}getSource(w,I=!1){return r.invariant(this.isSourceId(w),"Expected a valid source ID."),I&&w===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(w)}getTarget(w){return r.invariant(this.isTargetId(w),"Expected a valid target ID."),this.dropTargets.get(w)}getSourceType(w){return r.invariant(this.isSourceId(w),"Expected a valid source ID."),this.types.get(w)}getTargetType(w){return r.invariant(this.isTargetId(w),"Expected a valid target ID."),this.types.get(w)}isSourceId(w){return d(w)===a.HandlerRole.SOURCE}isTargetId(w){return d(w)===a.HandlerRole.TARGET}removeSource(w){r.invariant(this.getSource(w),"Expected an existing source."),this.store.dispatch(n.removeSource(w)),h.asap(()=>{this.dragSources.delete(w),this.types.delete(w)})}removeTarget(w){r.invariant(this.getTarget(w),"Expected an existing target."),this.store.dispatch(n.removeTarget(w)),this.dropTargets.delete(w),this.types.delete(w)}pinSource(w){const I=this.getSource(w);r.invariant(I,"Expected an existing source."),this.pinnedSourceId=w,this.pinnedSource=I}unpinSource(){r.invariant(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(w,I,F){const U=p(w);return this.types.set(U,I),w===a.HandlerRole.SOURCE?this.dragSources.set(U,F):w===a.HandlerRole.TARGET&&this.dropTargets.set(U,F),U}constructor(w){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=w}}v.HandlerRegistryImpl=M},59770:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.validateSourceContract=n,v.validateTargetContract=s,v.validateType=a;var r=t(56278);function n(c){r.invariant(typeof c.canDrag=="function","Expected canDrag to be a function."),r.invariant(typeof c.beginDrag=="function","Expected beginDrag to be a function."),r.invariant(typeof c.endDrag=="function","Expected endDrag to be a function.")}function s(c){r.invariant(typeof c.canDrop=="function","Expected canDrop to be a function."),r.invariant(typeof c.hover=="function","Expected hover to be a function."),r.invariant(typeof c.drop=="function","Expected beginDrag to be a function.")}function a(c,h){if(h&&Array.isArray(c)){c.forEach(p=>a(p,!1));return}r.invariant(typeof c=="string"||typeof c=="symbol",h?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}},64784:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.createDragDropManager=h;var r=t(56982),n=t(14890),s=t(63048),a=t(97953),c=t(4224);function h(d,k=void 0,M={},C=!1){const w=p(C),I=new a.DragDropMonitorImpl(w,new c.HandlerRegistryImpl(w)),F=new r.DragDropManagerImpl(w,I),U=d(F,k,M);return F.receiveBackend(U),F}function p(d){const k=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return n.createStore(s.reduce,d&&k&&k({name:"dnd-core",instanceId:"dnd-core"}))}},94556:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});var r={},n=a(t(64279));Object.keys(n).forEach(function(c){c==="default"||c==="__esModule"||Object.prototype.hasOwnProperty.call(r,c)||c in v&&v[c]===n[c]||Object.defineProperty(v,c,{enumerable:!0,get:function(){return n[c]}})});var s=a(t(64784));Object.keys(s).forEach(function(c){c==="default"||c==="__esModule"||Object.prototype.hasOwnProperty.call(r,c)||c in v&&v[c]===s[c]||Object.defineProperty(v,c,{enumerable:!0,get:function(){return s[c]}})});function a(c){if(c&&c.__esModule)return c;var h={};if(c!=null){for(var p in c)if(Object.prototype.hasOwnProperty.call(c,p)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(c,p):{};d.get||d.set?Object.defineProperty(h,p,d):h[p]=c[p]}}return h.default=c,h}},64279:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.HandlerRole=void 0;var t;v.HandlerRole=t,function(r){r.SOURCE="SOURCE",r.TARGET="TARGET"}(t||(v.HandlerRole=t={}))},26678:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.reduce=h;var r=t(38674),n=t(80700),s=t(31435),a=t(41558),c=t(26695);function h(p=a.NONE,d){switch(d.type){case r.HOVER:break;case n.ADD_SOURCE:case n.ADD_TARGET:case n.REMOVE_TARGET:case n.REMOVE_SOURCE:return a.NONE;case r.BEGIN_DRAG:case r.PUBLISH_DRAG_SOURCE:case r.END_DRAG:case r.DROP:default:return a.ALL}const{targetIds:k=[],prevTargetIds:M=[]}=d.payload,C=c.xor(k,M);if(!(C.length>0||!s.areArraysEqual(k,M)))return a.NONE;const I=M[M.length-1],F=k[k.length-1];return I!==F&&(I&&C.push(I),F&&C.push(F)),C}},1270:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.reduce=h;var r=t(38674),n=t(31435);function s(p,d,k){return d in p?Object.defineProperty(p,d,{value:k,enumerable:!0,configurable:!0,writable:!0}):p[d]=k,p}function a(p){for(var d=1;d<arguments.length;d++){var k=arguments[d]!=null?arguments[d]:{},M=Object.keys(k);typeof Object.getOwnPropertySymbols=="function"&&(M=M.concat(Object.getOwnPropertySymbols(k).filter(function(C){return Object.getOwnPropertyDescriptor(k,C).enumerable}))),M.forEach(function(C){s(p,C,k[C])})}return p}const c={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function h(p=c,d){const{payload:k}=d;switch(d.type){case r.INIT_COORDS:case r.BEGIN_DRAG:return{initialSourceClientOffset:k.sourceClientOffset,initialClientOffset:k.clientOffset,clientOffset:k.clientOffset};case r.HOVER:return n.areCoordsEqual(p.clientOffset,k.clientOffset)?p:a({},p,{clientOffset:k.clientOffset});case r.END_DRAG:case r.DROP:return c;default:return p}}},96478:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.reduce=p;var r=t(38674),n=t(80700),s=t(26695);function a(d,k,M){return k in d?Object.defineProperty(d,k,{value:M,enumerable:!0,configurable:!0,writable:!0}):d[k]=M,d}function c(d){for(var k=1;k<arguments.length;k++){var M=arguments[k]!=null?arguments[k]:{},C=Object.keys(M);typeof Object.getOwnPropertySymbols=="function"&&(C=C.concat(Object.getOwnPropertySymbols(M).filter(function(w){return Object.getOwnPropertyDescriptor(M,w).enumerable}))),C.forEach(function(w){a(d,w,M[w])})}return d}const h={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function p(d=h,k){const{payload:M}=k;switch(k.type){case r.BEGIN_DRAG:return c({},d,{itemType:M.itemType,item:M.item,sourceId:M.sourceId,isSourcePublic:M.isSourcePublic,dropResult:null,didDrop:!1});case r.PUBLISH_DRAG_SOURCE:return c({},d,{isSourcePublic:!0});case r.HOVER:return c({},d,{targetIds:M.targetIds});case n.REMOVE_TARGET:return d.targetIds.indexOf(M.targetId)===-1?d:c({},d,{targetIds:s.without(d.targetIds,M.targetId)});case r.DROP:return c({},d,{dropResult:M.dropResult,didDrop:!0,targetIds:[]});case r.END_DRAG:return c({},d,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return d}}},63048:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.reduce=k;var r=t(1270),n=t(96478),s=t(60802),a=t(26678),c=t(72552),h=t(26695);function p(M,C,w){return C in M?Object.defineProperty(M,C,{value:w,enumerable:!0,configurable:!0,writable:!0}):M[C]=w,M}function d(M){for(var C=1;C<arguments.length;C++){var w=arguments[C]!=null?arguments[C]:{},I=Object.keys(w);typeof Object.getOwnPropertySymbols=="function"&&(I=I.concat(Object.getOwnPropertySymbols(w).filter(function(F){return Object.getOwnPropertyDescriptor(w,F).enumerable}))),I.forEach(function(F){p(M,F,w[F])})}return M}function k(M={},C){return{dirtyHandlerIds:a.reduce(M.dirtyHandlerIds,{type:C.type,payload:d({},C.payload,{prevTargetIds:h.get(M,"dragOperation.targetIds",[])})}),dragOffset:r.reduce(M.dragOffset,C),refCount:s.reduce(M.refCount,C),dragOperation:n.reduce(M.dragOperation,C),stateId:c.reduce(M.stateId)}}},60802:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.reduce=n;var r=t(80700);function n(s=0,a){switch(a.type){case r.ADD_SOURCE:case r.ADD_TARGET:return s+1;case r.REMOVE_SOURCE:case r.REMOVE_TARGET:return s-1;default:return s}}},72552:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.reduce=t;function t(r=0){return r+1}},66010:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.add=t,v.subtract=r,v.getSourceClientOffset=n,v.getDifferenceFromInitialOffset=s;function t(a,c){return{x:a.x+c.x,y:a.y+c.y}}function r(a,c){return{x:a.x-c.x,y:a.y-c.y}}function n(a){const{clientOffset:c,initialClientOffset:h,initialSourceClientOffset:p}=a;return!c||!h||!p?null:r(t(c,p),h)}function s(a){const{clientOffset:c,initialClientOffset:h}=a;return!c||!h?null:r(c,h)}},41558:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.areDirty=a,v.ALL=v.NONE=void 0;var r=t(26695);const n=[];v.NONE=n;const s=[];v.ALL=s,n.__IS_NONE__=!0,s.__IS_ALL__=!0;function a(c,h){return c===n?!1:c===s||typeof h>"u"?!0:r.intersection(h,c).length>0}},31435:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.areCoordsEqual=r,v.areArraysEqual=n,v.strictEquality=void 0;const t=(s,a)=>s===a;v.strictEquality=t;function r(s,a){return!s&&!a?!0:!s||!a?!1:s.x===a.x&&s.y===a.y}function n(s,a,c=t){if(s.length!==a.length)return!1;for(let h=0;h<s.length;++h)if(!c(s[h],a[h]))return!1;return!0}},9938:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.getNextUniqueId=r;let t=0;function r(){return t++}},26695:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.get=t,v.without=r,v.isString=n,v.isObject=s,v.xor=a,v.intersection=c;function t(h,p,d){return p.split(".").reduce((k,M)=>k&&k[M]?k[M]:d||null,h)}function r(h,p){return h.filter(d=>d!==p)}function n(h){return typeof h=="string"}function s(h){return typeof h=="object"}function a(h,p){const d=new Map,k=C=>{d.set(C,d.has(C)?d.get(C)+1:1)};h.forEach(k),p.forEach(k);const M=[];return d.forEach((C,w)=>{C===1&&M.push(w)}),M}function c(h,p){return h.filter(d=>p.indexOf(d)>-1)}},74209:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.matchesType=t;function t(r,n){return n===null?r===null:Array.isArray(r)?r.some(s=>s===n):r===n}},99960:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.Doctype=v.CDATA=v.Tag=v.Style=v.Script=v.Comment=v.Directive=v.Text=v.Root=v.isTag=v.ElementType=void 0;var t;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(t=v.ElementType||(v.ElementType={}));function r(n){return n.type===t.Tag||n.type===t.Script||n.type===t.Style}v.isTag=r,v.Root=t.Root,v.Text=t.Text,v.Directive=t.Directive,v.Comment=t.Comment,v.Script=t.Script,v.Style=t.Style,v.Tag=t.Tag,v.CDATA=t.CDATA,v.Doctype=t.Doctype},44076:function(Z,v,t){"use strict";var r=this&&this.__createBinding||(Object.create?function(z,V,$,ee){ee===void 0&&(ee=$);var q=Object.getOwnPropertyDescriptor(V,$);(!q||("get"in q?!V.__esModule:q.writable||q.configurable))&&(q={enumerable:!0,get:function(){return V[$]}}),Object.defineProperty(z,ee,q)}:function(z,V,$,ee){ee===void 0&&(ee=$),z[ee]=V[$]}),n=this&&this.__setModuleDefault||(Object.create?function(z,V){Object.defineProperty(z,"default",{enumerable:!0,value:V})}:function(z,V){z.default=V}),s=this&&this.__importStar||function(z){if(z&&z.__esModule)return z;var V={};if(z!=null)for(var $ in z)$!=="default"&&Object.prototype.hasOwnProperty.call(z,$)&&r(V,z,$);return n(V,z),V},a=this&&this.__importDefault||function(z){return z&&z.__esModule?z:{default:z}};Object.defineProperty(v,"__esModule",{value:!0}),v.decodeXML=v.decodeHTMLStrict=v.decodeHTMLAttribute=v.decodeHTML=v.determineBranch=v.EntityDecoder=v.DecodingMode=v.BinTrieFlags=v.fromCodePoint=v.replaceCodePoint=v.decodeCodePoint=v.xmlDecodeTree=v.htmlDecodeTree=void 0;var c=a(t(63704));v.htmlDecodeTree=c.default;var h=a(t(22060));v.xmlDecodeTree=h.default;var p=s(t(26));v.decodeCodePoint=p.default;var d=t(26);Object.defineProperty(v,"replaceCodePoint",{enumerable:!0,get:function(){return d.replaceCodePoint}}),Object.defineProperty(v,"fromCodePoint",{enumerable:!0,get:function(){return d.fromCodePoint}});var k;(function(z){z[z.NUM=35]="NUM",z[z.SEMI=59]="SEMI",z[z.EQUALS=61]="EQUALS",z[z.ZERO=48]="ZERO",z[z.NINE=57]="NINE",z[z.LOWER_A=97]="LOWER_A",z[z.LOWER_F=102]="LOWER_F",z[z.LOWER_X=120]="LOWER_X",z[z.LOWER_Z=122]="LOWER_Z",z[z.UPPER_A=65]="UPPER_A",z[z.UPPER_F=70]="UPPER_F",z[z.UPPER_Z=90]="UPPER_Z"})(k||(k={}));var M=32,C;(function(z){z[z.VALUE_LENGTH=49152]="VALUE_LENGTH",z[z.BRANCH_LENGTH=16256]="BRANCH_LENGTH",z[z.JUMP_TABLE=127]="JUMP_TABLE"})(C=v.BinTrieFlags||(v.BinTrieFlags={}));function w(z){return z>=k.ZERO&&z<=k.NINE}function I(z){return z>=k.UPPER_A&&z<=k.UPPER_F||z>=k.LOWER_A&&z<=k.LOWER_F}function F(z){return z>=k.UPPER_A&&z<=k.UPPER_Z||z>=k.LOWER_A&&z<=k.LOWER_Z||w(z)}function U(z){return z===k.EQUALS||F(z)}var B;(function(z){z[z.EntityStart=0]="EntityStart",z[z.NumericStart=1]="NumericStart",z[z.NumericDecimal=2]="NumericDecimal",z[z.NumericHex=3]="NumericHex",z[z.NamedEntity=4]="NamedEntity"})(B||(B={}));var N;(function(z){z[z.Legacy=0]="Legacy",z[z.Strict=1]="Strict",z[z.Attribute=2]="Attribute"})(N=v.DecodingMode||(v.DecodingMode={}));var D=function(){function z(V,$,ee){this.decodeTree=V,this.emitCodePoint=$,this.errors=ee,this.state=B.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=N.Strict}return z.prototype.startEntity=function(V){this.decodeMode=V,this.state=B.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},z.prototype.write=function(V,$){switch(this.state){case B.EntityStart:return V.charCodeAt($)===k.NUM?(this.state=B.NumericStart,this.consumed+=1,this.stateNumericStart(V,$+1)):(this.state=B.NamedEntity,this.stateNamedEntity(V,$));case B.NumericStart:return this.stateNumericStart(V,$);case B.NumericDecimal:return this.stateNumericDecimal(V,$);case B.NumericHex:return this.stateNumericHex(V,$);case B.NamedEntity:return this.stateNamedEntity(V,$)}},z.prototype.stateNumericStart=function(V,$){return $>=V.length?-1:(V.charCodeAt($)|M)===k.LOWER_X?(this.state=B.NumericHex,this.consumed+=1,this.stateNumericHex(V,$+1)):(this.state=B.NumericDecimal,this.stateNumericDecimal(V,$))},z.prototype.addToNumericResult=function(V,$,ee,q){if($!==ee){var oe=ee-$;this.result=this.result*Math.pow(q,oe)+parseInt(V.substr($,oe),q),this.consumed+=oe}},z.prototype.stateNumericHex=function(V,$){for(var ee=$;$<V.length;){var q=V.charCodeAt($);if(w(q)||I(q))$+=1;else return this.addToNumericResult(V,ee,$,16),this.emitNumericEntity(q,3)}return this.addToNumericResult(V,ee,$,16),-1},z.prototype.stateNumericDecimal=function(V,$){for(var ee=$;$<V.length;){var q=V.charCodeAt($);if(w(q))$+=1;else return this.addToNumericResult(V,ee,$,10),this.emitNumericEntity(q,2)}return this.addToNumericResult(V,ee,$,10),-1},z.prototype.emitNumericEntity=function(V,$){var ee;if(this.consumed<=$)return(ee=this.errors)===null||ee===void 0||ee.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(V===k.SEMI)this.consumed+=1;else if(this.decodeMode===N.Strict)return 0;return this.emitCodePoint((0,p.replaceCodePoint)(this.result),this.consumed),this.errors&&(V!==k.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},z.prototype.stateNamedEntity=function(V,$){for(var ee=this.decodeTree,q=ee[this.treeIndex],oe=(q&C.VALUE_LENGTH)>>14;$<V.length;$++,this.excess++){var X=V.charCodeAt($);if(this.treeIndex=T(ee,q,this.treeIndex+Math.max(1,oe),X),this.treeIndex<0)return this.result===0||this.decodeMode===N.Attribute&&(oe===0||U(X))?0:this.emitNotTerminatedNamedEntity();if(q=ee[this.treeIndex],oe=(q&C.VALUE_LENGTH)>>14,oe!==0){if(X===k.SEMI)return this.emitNamedEntityData(this.treeIndex,oe,this.consumed+this.excess);this.decodeMode!==N.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},z.prototype.emitNotTerminatedNamedEntity=function(){var V,$=this,ee=$.result,q=$.decodeTree,oe=(q[ee]&C.VALUE_LENGTH)>>14;return this.emitNamedEntityData(ee,oe,this.consumed),(V=this.errors)===null||V===void 0||V.missingSemicolonAfterCharacterReference(),this.consumed},z.prototype.emitNamedEntityData=function(V,$,ee){var q=this.decodeTree;return this.emitCodePoint($===1?q[V]&~C.VALUE_LENGTH:q[V+1],ee),$===3&&this.emitCodePoint(q[V+2],ee),ee},z.prototype.end=function(){var V;switch(this.state){case B.NamedEntity:return this.result!==0&&(this.decodeMode!==N.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case B.NumericDecimal:return this.emitNumericEntity(0,2);case B.NumericHex:return this.emitNumericEntity(0,3);case B.NumericStart:return(V=this.errors)===null||V===void 0||V.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case B.EntityStart:return 0}},z}();v.EntityDecoder=D;function x(z){var V="",$=new D(z,function(ee){return V+=(0,p.fromCodePoint)(ee)});return function(q,oe){for(var X=0,pe=0;(pe=q.indexOf("&",pe))>=0;){V+=q.slice(X,pe),$.startEntity(oe);var Ie=$.write(q,pe+1);if(Ie<0){X=pe+$.end();break}X=pe+Ie,pe=Ie===0?X+1:X}var se=V+q.slice(X);return V="",se}}function T(z,V,$,ee){var q=(V&C.BRANCH_LENGTH)>>7,oe=V&C.JUMP_TABLE;if(q===0)return oe!==0&&ee===oe?$:-1;if(oe){var X=ee-oe;return X<0||X>=q?-1:z[$+X]-1}for(var pe=$,Ie=pe+q-1;pe<=Ie;){var se=pe+Ie>>>1,be=z[se];if(be<ee)pe=se+1;else if(be>ee)Ie=se-1;else return z[se+q]}return-1}v.determineBranch=T;var u=x(c.default),b=x(h.default);function E(z,V){return V===void 0&&(V=N.Legacy),u(z,V)}v.decodeHTML=E;function A(z){return u(z,N.Attribute)}v.decodeHTMLAttribute=A;function R(z){return u(z,N.Strict)}v.decodeHTMLStrict=R;function H(z){return b(z,N.Strict)}v.decodeXML=H},26:(Z,v)=>{"use strict";var t;Object.defineProperty(v,"__esModule",{value:!0}),v.replaceCodePoint=v.fromCodePoint=void 0;var r=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);v.fromCodePoint=(t=String.fromCodePoint)!==null&&t!==void 0?t:function(a){var c="";return a>65535&&(a-=65536,c+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023),c+=String.fromCharCode(a),c};function n(a){var c;return a>=55296&&a<=57343||a>1114111?65533:(c=r.get(a))!==null&&c!==void 0?c:a}v.replaceCodePoint=n;function s(a){return(0,v.fromCodePoint)(n(a))}v.default=s},87322:function(Z,v,t){"use strict";var r=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(v,"__esModule",{value:!0}),v.encodeNonAsciiHTML=v.encodeHTML=void 0;var n=r(t(94021)),s=t(24625),a=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function c(d){return p(a,d)}v.encodeHTML=c;function h(d){return p(s.xmlReplacer,d)}v.encodeNonAsciiHTML=h;function p(d,k){for(var M="",C=0,w;(w=d.exec(k))!==null;){var I=w.index;M+=k.substring(C,I);var F=k.charCodeAt(I),U=n.default.get(F);if(typeof U=="object"){if(I+1<k.length){var B=k.charCodeAt(I+1),N=typeof U.n=="number"?U.n===B?U.o:void 0:U.n.get(B);if(N!==void 0){M+=N,C=d.lastIndex+=1;continue}}U=U.v}if(U!==void 0)M+=U,C=I+1;else{var D=(0,s.getCodePoint)(k,I);M+="&#x".concat(D.toString(16),";"),C=d.lastIndex+=Number(D!==F)}}return M+k.substr(C)}},24625:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.escapeText=v.escapeAttribute=v.escapeUTF8=v.escape=v.encodeXML=v.getCodePoint=v.xmlReplacer=void 0,v.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var t=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);v.getCodePoint=String.prototype.codePointAt!=null?function(s,a){return s.codePointAt(a)}:function(s,a){return(s.charCodeAt(a)&64512)===55296?(s.charCodeAt(a)-55296)*1024+s.charCodeAt(a+1)-56320+65536:s.charCodeAt(a)};function r(s){for(var a="",c=0,h;(h=v.xmlReplacer.exec(s))!==null;){var p=h.index,d=s.charCodeAt(p),k=t.get(d);k!==void 0?(a+=s.substring(c,p)+k,c=p+1):(a+="".concat(s.substring(c,p),"&#x").concat((0,v.getCodePoint)(s,p).toString(16),";"),c=v.xmlReplacer.lastIndex+=Number((d&64512)===55296))}return a+s.substr(c)}v.encodeXML=r,v.escape=r;function n(s,a){return function(h){for(var p,d=0,k="";p=s.exec(h);)d!==p.index&&(k+=h.substring(d,p.index)),k+=a.get(p[0].charCodeAt(0)),d=p.index+1;return k+h.substring(d)}}v.escapeUTF8=n(/[&<>'"]/g,t),v.escapeAttribute=n(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),v.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))},63704:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(function(t){return t.charCodeAt(0)}))},22060:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=new Uint16Array("\u0200aglq	\x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(function(t){return t.charCodeAt(0)}))},94021:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});function t(r){for(var n=1;n<r.length;n++)r[n][0]+=r[n-1][0]+1;return r}v.default=new Map(t([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(t([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(t([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(t([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]))},45863:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.decodeXMLStrict=v.decodeHTML5Strict=v.decodeHTML4Strict=v.decodeHTML5=v.decodeHTML4=v.decodeHTMLAttribute=v.decodeHTMLStrict=v.decodeHTML=v.decodeXML=v.DecodingMode=v.EntityDecoder=v.encodeHTML5=v.encodeHTML4=v.encodeNonAsciiHTML=v.encodeHTML=v.escapeText=v.escapeAttribute=v.escapeUTF8=v.escape=v.encodeXML=v.encode=v.decodeStrict=v.decode=v.EncodingMode=v.EntityLevel=void 0;var r=t(44076),n=t(87322),s=t(24625),a;(function(w){w[w.XML=0]="XML",w[w.HTML=1]="HTML"})(a=v.EntityLevel||(v.EntityLevel={}));var c;(function(w){w[w.UTF8=0]="UTF8",w[w.ASCII=1]="ASCII",w[w.Extensive=2]="Extensive",w[w.Attribute=3]="Attribute",w[w.Text=4]="Text"})(c=v.EncodingMode||(v.EncodingMode={}));function h(w,I){I===void 0&&(I=a.XML);var F=typeof I=="number"?I:I.level;if(F===a.HTML){var U=typeof I=="object"?I.mode:void 0;return(0,r.decodeHTML)(w,U)}return(0,r.decodeXML)(w)}v.decode=h;function p(w,I){var F;I===void 0&&(I=a.XML);var U=typeof I=="number"?{level:I}:I;return(F=U.mode)!==null&&F!==void 0||(U.mode=r.DecodingMode.Strict),h(w,U)}v.decodeStrict=p;function d(w,I){I===void 0&&(I=a.XML);var F=typeof I=="number"?{level:I}:I;return F.mode===c.UTF8?(0,s.escapeUTF8)(w):F.mode===c.Attribute?(0,s.escapeAttribute)(w):F.mode===c.Text?(0,s.escapeText)(w):F.level===a.HTML?F.mode===c.ASCII?(0,n.encodeNonAsciiHTML)(w):(0,n.encodeHTML)(w):(0,s.encodeXML)(w)}v.encode=d;var k=t(24625);Object.defineProperty(v,"encodeXML",{enumerable:!0,get:function(){return k.encodeXML}}),Object.defineProperty(v,"escape",{enumerable:!0,get:function(){return k.escape}}),Object.defineProperty(v,"escapeUTF8",{enumerable:!0,get:function(){return k.escapeUTF8}}),Object.defineProperty(v,"escapeAttribute",{enumerable:!0,get:function(){return k.escapeAttribute}}),Object.defineProperty(v,"escapeText",{enumerable:!0,get:function(){return k.escapeText}});var M=t(87322);Object.defineProperty(v,"encodeHTML",{enumerable:!0,get:function(){return M.encodeHTML}}),Object.defineProperty(v,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return M.encodeNonAsciiHTML}}),Object.defineProperty(v,"encodeHTML4",{enumerable:!0,get:function(){return M.encodeHTML}}),Object.defineProperty(v,"encodeHTML5",{enumerable:!0,get:function(){return M.encodeHTML}});var C=t(44076);Object.defineProperty(v,"EntityDecoder",{enumerable:!0,get:function(){return C.EntityDecoder}}),Object.defineProperty(v,"DecodingMode",{enumerable:!0,get:function(){return C.DecodingMode}}),Object.defineProperty(v,"decodeXML",{enumerable:!0,get:function(){return C.decodeXML}}),Object.defineProperty(v,"decodeHTML",{enumerable:!0,get:function(){return C.decodeHTML}}),Object.defineProperty(v,"decodeHTMLStrict",{enumerable:!0,get:function(){return C.decodeHTMLStrict}}),Object.defineProperty(v,"decodeHTMLAttribute",{enumerable:!0,get:function(){return C.decodeHTMLAttribute}}),Object.defineProperty(v,"decodeHTML4",{enumerable:!0,get:function(){return C.decodeHTML}}),Object.defineProperty(v,"decodeHTML5",{enumerable:!0,get:function(){return C.decodeHTML}}),Object.defineProperty(v,"decodeHTML4Strict",{enumerable:!0,get:function(){return C.decodeHTMLStrict}}),Object.defineProperty(v,"decodeHTML5Strict",{enumerable:!0,get:function(){return C.decodeHTMLStrict}}),Object.defineProperty(v,"decodeXMLStrict",{enumerable:!0,get:function(){return C.decodeXML}})},58633:(Z,v,t)=>{"use strict";t.d(v,{l:()=>r,m:()=>n});const r="StrapiAdmin/RBACProvider/RESET_STORE",n="StrapiAdmin/RBACProvider/SET_PERMISSIONS"},14996:(Z,v,t)=>{"use strict";t.d(v,{Q:()=>n,m:()=>r});const r="ContentManager/RBACManager/SET_PERMISSIONS",n="ContentManager/RBACManager/RESET_PERMISSIONS"},86041:(Z,v,t)=>{"use strict";t.d(v,{IX:()=>s,fn:()=>r,sZ:()=>n});const r="ContentManager/App/GET_INIT_DATA",n="ContentManager/App/RESET_INIT_DATA",s="ContentManager/App/SET_INIT_DATA"},23301:(Z,v,t)=>{"use strict";t.d(v,{E:()=>s,Z:()=>c});var r=t(18172),n=t(86041);const s={components:[],status:"loading",models:[],collectionTypeLinks:[],singleTypeLinks:[]},c=(h=s,p)=>(0,r.ZP)(h,d=>{switch(p.type){case n.fn:{d.status="loading";break}case n.sZ:return s;case n.IX:{d.collectionTypeLinks=p.data.authorizedCollectionTypeLinks.filter(({isDisplayed:k})=>k),d.singleTypeLinks=p.data.authorizedSingleTypeLinks.filter(({isDisplayed:k})=>k),d.components=p.data.components,d.models=p.data.contentTypeSchemas,d.fieldSizes=p.data.fieldSizes,d.status="resolved";break}default:return d}})},88848:(Z,v,t)=>{"use strict";t.d(v,{O:()=>r,c:()=>n});const r="ContentManager/EditViewLayoutManager/SET_LAYOUT",n="ContentManager/EditViewLayoutManager/RESET_PROPS"},9144:(Z,v,t)=>{"use strict";t.d(v,{Id:()=>n,MP:()=>c,Rp:()=>a,ZA:()=>r,Zz:()=>h,c2:()=>s});const r="ContentManager/ListView/GET_DATA",n="ContentManager/ListView/GET_DATA_SUCCEEDED",s="ContentManager/ListView/RESET_PROPS",a="ContentManager/ListView/ON_CHANGE_LIST_HEADERS ",c="ContentManager/ListView/ON_RESET_LIST_HEADERS ",h="ContentManager/ListView/SET_LIST_LAYOUT "},52212:(Z,v,t)=>{"use strict";t.d(v,{E:()=>c,Z:()=>p});var r=t(18172),n=t(27361),s=t.n(n),a=t(9144);const c={data:[],isLoading:!0,contentType:{},components:[],initialDisplayedHeaders:[],displayedHeaders:[],pagination:{total:0}},p=(d=c,k)=>(0,r.ZP)(d,M=>{switch(k.type){case a.ZA:return{...c,contentType:d.contentType,components:d.components,initialDisplayedHeaders:d.initialDisplayedHeaders,displayedHeaders:d.displayedHeaders};case a.Id:{M.pagination=k.pagination,M.data=k.data,M.isLoading=!1;break}case a.Rp:{const{target:{name:C,value:w}}=k;if(w)M.displayedHeaders=d.displayedHeaders.filter(I=>I.name!==C);else{const{metadatas:I,attributes:F,uid:U}=d.contentType,B=I[C].list,N={name:C,fieldSchema:F[C],metadatas:B,key:`__${C}_key__`};switch(F[C].type){case"component":{const D=F[C].component,x=s()(d,["components",D,"settings","mainField"],null),T=s()(d,["components",D,"attributes",x]);M.displayedHeaders.push({...N,metadatas:{...B,mainField:{...T,name:x}}});break}case"relation":M.displayedHeaders.push({...N,queryInfos:{defaultParams:{},endPoint:`collection-types/${U}`}});break;default:M.displayedHeaders.push(N)}}break}case a.MP:{M.displayedHeaders=d.initialDisplayedHeaders;break}case a.c2:return c;case a.Zz:{const{contentType:C,components:w,displayedHeaders:I}=k;M.contentType=C,M.components=w,M.displayedHeaders=I,M.initialDisplayedHeaders=I;break}default:return M}})},93192:(Z,v,t)=>{"use strict";t.d(v,{Id:()=>n,TP:()=>s,ZA:()=>r,c2:()=>a,d0:()=>h,t9:()=>p,tE:()=>d,w7:()=>c});const r="ContentManager/CrudReducer/GET_DATA",n="ContentManager/CrudReducer/GET_DATA_SUCCEEDED",s="ContentManager/CrudReducer/INIT_FORM",a="ContentManager/CrudReducer/RESET_PROPS",c="ContentManager/CrudReducer/SET_DATA_STRUCTURES",h="ContentManager/CrudReducer/SET_STATUS",p="ContentManager/CrudReducer/SUBMIT_SUCCEEDED",d="ContentManager/CrudReducer/CLEAR_SET_MODIFIED_DATA_ONLY"},91543:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>c,q:()=>s});var r=t(18172),n=t(93192);const s={componentsDataStructure:{},contentTypeDataStructure:{},isLoading:!0,data:null,status:"resolved",setModifiedDataOnly:!1},c=(h=s,p)=>(0,r.ZP)(h,d=>{switch(p.type){case n.ZA:{d.isLoading=!0,d.data=null;break}case n.Id:{d.isLoading=!1,d.data=p.data,d.setModifiedDataOnly=p.setModifiedDataOnly??!1;break}case n.TP:{if(p.data){d.isLoading=!1,d.data=p.data;break}d.isLoading=!1,d.data=h.contentTypeDataStructure;break}case n.c2:return s;case n.w7:{d.componentsDataStructure=p.componentsDataStructure,d.contentTypeDataStructure=p.contentTypeDataStructure;break}case n.d0:{d.status=p.status;break}case n.t9:{d.data=p.data;break}case n.tE:{d.setModifiedDataOnly=!1;break}default:return d}})},48198:(Z,v,t)=>{"use strict";t.d(v,{z8:()=>a,Iv:()=>C,lt:()=>I,Sy:()=>U,qr:()=>N,rh:()=>k});var r=t(41143),n=t.n(r);class s{constructor(){this.components={}}add(x){const{name:T,Component:u}=x;n()(u,"A Component must be provided"),n()(T,"A name must be provided"),n()(this.components[T]===void 0,"A similar field already exists"),this.components[T]=u}}const a=()=>new s,c=["biginteger","boolean","date","datetime","decimal","email","enumeration","float","integer","json","password","richtext","string","text","time","uid"],h=["min","minLength","max","maxLength","required","regex","enum","unique","private","default"],p=(D,x)=>x.items?x.items.reduce(p,D):(x.name?D.push({isValidOptionPath:h.includes(x.name)||x.name.startsWith("options"),errorMessage:`'${x.name}' must be prefixed with 'options.'`}):D.push({isValidOptionPath:!1,errorMessage:"The 'name' property is required on an options object"}),D);class d{constructor(){this.customFields={}}register(x){if(Array.isArray(x))x.forEach(T=>{this.register(T)});else{const{name:T,pluginId:u,type:b,intlLabel:E,intlDescription:A,components:R,options:H}=x;n()(T,"A name must be provided"),n()(b,"A type must be provided"),n()(E,"An intlLabel must be provided"),n()(A,"An intlDescription must be provided"),n()(R,"A components object must be provided"),n()(R.Input,"An Input component must be provided"),n()(c.includes(b),`Custom field type: '${b}' is not a valid Strapi type or it can't be used with a Custom Field`);const z=/^(?![0-9])[a-zA-Z0-9$_-]+$/g;n()(z.test(T),`Custom field name: '${T}' is not a valid object key`);const V=[...H?.base||[],...H?.advanced||[]];V.length&&V.reduce(p,[]).forEach(({isValidOptionPath:oe,errorMessage:X})=>{n()(oe,X)});const $=u?`plugin::${u}.${T}`:`global::${T}`,ee=Object.prototype.hasOwnProperty.call(this.customFields,$);n()(!ee,`Custom field: '${$}' has already been registered`),this.customFields[$]=x}}getAll(){return this.customFields}get(x){return this.customFields[x]}}const k=new d;class M{constructor(){this.fields={}}add(x){const{type:T,Component:u}=x;n()(u,"A Component must be provided"),n()(T,"A type must be provided"),this.fields[T]=u}}const C=()=>new M;class w{constructor(){this.middlewares=[]}add(x){this.middlewares.push(x)}}const I=()=>new w;class F{constructor(x){this.apis=x.apis||{},this.initializer=x.initializer||null,this.injectionZones=x.injectionZones||{},this.isReady=x.isReady!==void 0?x.isReady:!0,this.name=x.name,this.pluginId=x.id}getInjectedComponents(x,T){try{return this.injectionZones[x][T]||{}}catch(u){return console.error("Cannot get injected component",u),u}}injectComponent(x,T,u){try{this.injectionZones[x][T].push(u)}catch(b){console.error("Cannot inject component",b)}}}const U=D=>new F(D);class B{constructor({appReducers:x}){this.reducers={...x}}add(x,T){this.reducers[x]=T}}const N=({appReducers:D})=>new B({appReducers:D})},17955:(Z,v,t)=>{"use strict";var r=t(30972),n=t(20745);const c={config:{locales:["fr"]},bootstrap:()=>{}};var h=t(48198),p=t(70916),d=t.n(p),k=t(47275),M=t.n(k),C=t(94525),w=t.n(C),I=t(50838),F=t.n(I),U=t(75318),B=t.n(U),N=t(83128),D=t(67294),x=t(18643),T=t.n(x),u=t(12643),b=t.n(u);const A={"content-type-builder":d(),email:M(),upload:w(),seo:F(),ckeditor5:B(),"color-picker":N.i,i18n:T(),"users-permissions":b()};var R=t(18172),H=t(58633);const z={allPermissions:null,collectionTypesRelatedPermissions:{}},$=(It=z,mn)=>(0,R.ZP)(It,un=>{switch(mn.type){case H.m:{un.allPermissions=mn.permissions,un.collectionTypesRelatedPermissions=mn.permissions.filter(Be=>Be.subject).reduce((Be,je)=>{const{subject:$t,action:et}=je;return Be[$t]||(Be[$t]={}),Be[$t]=Be[$t][et]?{...Be[$t],[et]:[...Be[$t][et],je]}:{...Be[$t],[et]:[je]},Be},{});break}case H.l:return z;default:return It}});var ee=t(14996);const q={permissions:null},X=(It=q,mn)=>(0,R.ZP)(It,un=>{switch(mn.type){case ee.m:{un.permissions=Object.entries(mn.permissions).reduce((Be,je)=>[...Be,...je[1]],[]);break}case ee.Q:{un.permissions=null;break}default:return un}});var pe=t(23301),Ie=t(88848);const se={currentLayout:null},fe=(It=se,mn)=>(0,R.ZP)(It,un=>{switch(mn.type){case Ie.c:{un.currentLayout=null;break}case Ie.O:{un.currentLayout=mn.layout;break}default:return un}});var ue=t(52212),we=t(91543),Me=t(8539);const Ce={"content-manager_app":pe.Z,"content-manager_listView":ue.Z,"content-manager_rbacManager":X,"content-manager_editViewLayoutManager":fe,"content-manager_editViewCrudReducer":we.Z},Ye={admin_app:Me.Z,rbacProvider:$,...Ce};window.strapi={backendURL:window.location.origin,isEE:!1,telemetryDisabled:!1,features:{SSO:"sso",AUDIT_LOGS:"audit-logs",REVIEW_WORKFLOWS:"review-workflows"},projectType:"Community"};const mt=c,Ct={components:(0,h.z8)(),fields:(0,h.Iv)()},ln=(0,h.lt)(),$e=(0,h.qr)({appReducers:Ye}),Qe=document.getElementById("app");(async()=>{const{get:It}=(0,r.tg)();try{const{data:{data:{isEE:je,features:$t}}}=await It("/admin/project-type");window.strapi.isEE=je,window.strapi.features={...window.strapi.features,isEnabled:et=>$t.some(Kt=>Kt.name===et)},window.strapi.projectType=je?"Enterprise":"Community"}catch(je){console.error(je)}const un=(await Promise.all([t.e(5788),t.e(5538)]).then(t.bind(t,78880))).default({appPlugins:A,library:Ct,adminConfig:mt,bootstrap:mt,middlewares:ln,reducers:$e});await un.bootstrapAdmin(),await un.initialize(),await un.bootstrap(),await un.loadTrads(),(0,n.s)(Qe).render(un.render())})()},63128:(Z,v,t)=>{"use strict";t.d(v,{XS:()=>n,eb:()=>r,y3:()=>s});const r="StrapiAdmin/APP/SET_APP_RUNTIME_STATUS",n="StrapiAdmin/App/SET_ADMIN_PERMISSIONS",s=[]},8539:(Z,v,t)=>{"use strict";t.d(v,{E:()=>s,Z:()=>c});var r=t(18172),n=t(63128);const s={permissions:{},status:"init"},c=(h=s,p)=>(0,r.ZP)(h,d=>{switch(p.type){case n.eb:{d.status="runtime";break}case n.XS:{d.permissions=p.payload;break}default:return d}})},39642:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>un});var r={};t.r(r),t.d(r,{StrapiMediaLib:()=>be,StrapiUploadAdapter:()=>we});var n=t(77868),s=t(53844),a=t(98491),c=t(9922),h=t(6378),p=t(67564),d=t(15535),k=t(29410),M=t(60145),C=t(78590),w=t(80792),I=t(29781),F=t(56961),U=t(11093),B=t(64621),N=t(4986),D=t(66665),x=t(96461),T=t(54132),u=t(58174),b=t(6653),E=t(23330),A=t(51207),R=t(32898),H=t(64181),z=t(2750),V=t(99416),$=t(9958),ee=t(91923),q=t(61764),oe=t(91036),X=t.n(oe);const pe=window.CKEditor5.core.Plugin,Ie=window.CKEditor5.ui.ButtonView,se='<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.3.6a.9.9 0 100 1.8h15.311a.9.9 0 100-1.8H4.301zm17.1 3.7A1.6 1.6 0 0123 5.9v15.5a1.6 1.6 0 01-1.6 1.6H2.6A1.601 1.601 0 011 21.4V8 5.915C1 5.03 1.716 4.3 2.6 4.3h18.8zM5.032 19.18h14.336l-3.136-3.205-1.792 1.831-4.032-4.12-5.376 5.494zm13.44-8.697c0 1.282-.985 2.289-2.24 2.289-1.254 0-2.24-1.007-2.24-2.29 0-1.281.986-2.288 2.24-2.288 1.255 0 2.24 1.007 2.24 2.289z"></path></svg>';class be extends pe{strapiToggle=null;static get pluginName(){return"StrapiMediaLib"}init(){const je=this.editor,$t=je.config.get("strapiMediaLib");je.ui.componentFactory.add("strapiMediaLib",()=>{const et=new Ie;return et.set({label:"Media Library",icon:se,tooltip:!0}),et.on("execute",$t.toggle.bind(this)),et})}}const fe=window.CKEditor5.core.Plugin,ue=window.CKEditor5.upload.FileRepository;class we extends fe{static get requires(){return[ue]}static get pluginName(){return"StrapiUploadAdapter"}init(){const je=this.editor.config.get("strapiUploadAdapter");if(je){if(!je.uploadUrl){console.warn('strapi-upload-adapter-missing-uploadUrl: Missing the "uploadUrl" property in the "strapiUploadAdapter" editor configuration.');return}this.editor.plugins.get(ue).createUploadAdapter=$t=>new Me($t,je)}}}class Me{constructor(je,$t){this.loader=je,this.options=$t}upload(){return this.loader.file.then(je=>new Promise(($t,et)=>{this._initRequest(),this._initListeners($t,et,je),this._sendRequest(je)}))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const je=this.xhr=new XMLHttpRequest;je.open("POST",this.options.uploadUrl,!0),je.responseType="json"}_initListeners(je,$t,et){const Kt=this.xhr,kn=this.loader,Tn=`Couldn't upload file: ${et.name}.`;Kt.addEventListener("error",()=>$t(Tn)),Kt.addEventListener("abort",()=>$t()),Kt.addEventListener("load",()=>{const ht=Kt.response;if(!Array.isArray(ht)||ht.error||ht.length!==1)return $t(ht&&ht.error&&ht.error.message?ht.error.message:Tn);const{backendUrl:ot,responsive:Je}=this.options||{},{name:wt,url:ft,alternativeText:vn,formats:ut,provider:Wt}=ht[0],ae=Wt!=="local"?ft:ot+ft;if(ut&&Je){let ne={default:ae};Object.keys(ut).sort((ye,Xe)=>ut[ye].width-ut[Xe].width).map(ye=>ne[ut[ye].width]=ot+ut[ye].url),je({alt:vn||wt,urls:ne})}else je(ft?{alt:vn||wt,urls:{default:ae}}:null)}),Kt.upload&&Kt.upload.addEventListener("progress",ht=>{ht.lengthComputable&&(kn.uploadTotal=ht.total,kn.uploaded=ht.loaded)})}_sendRequest(je){const $t=this.options.headers||{},et=this.options.withCredentials||!1;for(const kn of Object.keys($t))this.xhr.setRequestHeader(kn,$t[kn]);this.xhr.withCredentials=et;const Kt=new FormData;Kt.append("files",je),this.xhr.send(Kt)}}window.CKEditor5.strapiPlugins=r;const Ce={Alignment:window.CKEditor5.alignment.Alignment,Autoformat:window.CKEditor5.autoformat.Autoformat,AutoImage:window.CKEditor5.image.AutoImage,AutoLink:window.CKEditor5.link.AutoLink,Autosave:window.CKEditor5.autosave.Autosave,BalloonToolbar:window.CKEditor5.ui.BalloonToolbar,BlockQuote:window.CKEditor5.blockQuote.BlockQuote,BlockToolbar:window.CKEditor5.ui.BlockToolbar,Bold:window.CKEditor5.basicStyles.Bold,Code:window.CKEditor5.basicStyles.Code,CodeBlock:window.CKEditor5.codeBlock.CodeBlock,DataFilter:window.CKEditor5.htmlSupport.DataFilter,DataSchema:window.CKEditor5.htmlSupport.DataSchema,DocumentList:window.CKEditor5.list.DocumentList,DocumentListProperties:window.CKEditor5.list.DocumentListProperties,Essentials:window.CKEditor5.essentials.Essentials,FindAndReplace:window.CKEditor5.findAndReplace.FindAndReplace,FontBackgroundColor:window.CKEditor5.fontWithPicker.FontBackgroundColor,FontColor:window.CKEditor5.fontWithPicker.FontColor,FontFamily:window.CKEditor5.fontWithPicker.FontFamily,FontSize:window.CKEditor5.fontWithPicker.FontSize,GeneralHtmlSupport:window.CKEditor5.htmlSupport.GeneralHtmlSupport,Heading:window.CKEditor5.heading.Heading,Highlight:window.CKEditor5.highlight.Highlight,HorizontalLine:window.CKEditor5.horizontalLine.HorizontalLine,HtmlComment:window.CKEditor5.htmlSupport.HtmlComment,HtmlEmbed:window.CKEditor5.htmlEmbed.HtmlEmbed,Image:window.CKEditor5.image.Image,ImageCaption:window.CKEditor5.image.ImageCaption,ImageInsert:window.CKEditor5.image.ImageInsert,ImageResize:window.CKEditor5.image.ImageResize,ImageStyle:window.CKEditor5.image.ImageStyle,ImageToolbar:window.CKEditor5.image.ImageToolbar,ImageUpload:window.CKEditor5.image.ImageUpload,Indent:window.CKEditor5.indent.Indent,IndentBlock:window.CKEditor5.indent.IndentBlock,Italic:window.CKEditor5.basicStyles.Italic,Link:window.CKEditor5.link.Link,LinkImage:window.CKEditor5.link.LinkImage,List:window.CKEditor5.list.List,ListProperties:window.CKEditor5.list.ListProperties,MediaEmbed:window.CKEditor5.mediaEmbed.MediaEmbed,MediaEmbedToolbar:window.CKEditor5.mediaEmbed.MediaEmbedToolbar,Mention:window.CKEditor5.mention.Mention,PageBreak:window.CKEditor5.pageBreak.PageBreak,Paragraph:window.CKEditor5.paragraph.Paragraph,PasteFromOffice:window.CKEditor5.pasteFromOffice.PasteFromOffice,RemoveFormat:window.CKEditor5.removeFormat.RemoveFormat,SourceEditing:window.CKEditor5.sourceEditing.SourceEditing,SpecialCharacters:window.CKEditor5.specialCharacters.SpecialCharacters,SpecialCharactersArrows:window.CKEditor5.specialCharacters.SpecialCharactersArrows,SpecialCharactersCurrency:window.CKEditor5.specialCharacters.SpecialCharactersCurrency,SpecialCharactersLatin:window.CKEditor5.specialCharacters.SpecialCharactersLatin,SpecialCharactersMathematical:window.CKEditor5.specialCharacters.SpecialCharactersMathematical,SpecialCharactersText:window.CKEditor5.specialCharacters.SpecialCharactersText,StrapiMediaLib:window.CKEditor5.strapiPlugins.StrapiMediaLib,StrapiUploadAdapter:window.CKEditor5.strapiPlugins.StrapiUploadAdapter,Strikethrough:window.CKEditor5.basicStyles.Strikethrough,Style:window.CKEditor5.style.Style,Subscript:window.CKEditor5.basicStyles.Subscript,Superscript:window.CKEditor5.basicStyles.Superscript,Table:window.CKEditor5.table.Table,TableCaption:window.CKEditor5.table.TableCaption,TableCellProperties:window.CKEditor5.table.TableCellProperties,TableColumnResize:window.CKEditor5.table.TableColumnResize,TableProperties:window.CKEditor5.table.TableProperties,TableToolbar:window.CKEditor5.table.TableToolbar,TextPartLanguage:window.CKEditor5.language.TextPartLanguage,TodoList:window.CKEditor5.list.TodoList,Underline:window.CKEditor5.basicStyles.Underline,WordCount:window.CKEditor5.wordCount.WordCount},Ne=[{label:"Red 50",color:"#ffebee"},{label:"Purple 50",color:"#f3e5f5"},{label:"Indigo 50",color:"#e8eaf6"},{label:"Blue 50",color:"#e3f2fd"},{label:"Cyan 50",color:"#e0f7fa"},{label:"Teal 50",color:"#e0f2f1"},{label:"Light green 50",color:"#f1f8e9"},{label:"Lime 50",color:"#f9fbe7"},{label:"Amber 50",color:"#fff8e1"},{label:"Orange 50",color:"#fff3e0"},{label:"Grey 50",color:"#fafafa"},{label:"Blue grey 50",color:"#eceff1"},{label:"Red 100",color:"#ffcdd2"},{label:"Purple 100",color:"#e1bee7"},{label:"Indigo 100",color:"#c5cae9"},{label:"Blue 100",color:"#bbdefb"},{label:"Cyan 100",color:"#b2ebf2"},{label:"Teal 100",color:"#b2dfdb"},{label:"Light green 100",color:"#dcedc8"},{label:"Lime 100",color:"#f0f4c3"},{label:"Amber 100",color:"#ffecb3"},{label:"Orange 100",color:"#ffe0b2"},{label:"Grey 100",color:"#f5f5f5"},{label:"Blue grey 100",color:"#cfd8dc"},{label:"Red 200",color:"#ef9a9a"},{label:"Purple 200",color:"#ce93d8"},{label:"Indigo 200",color:"#9fa8da"},{label:"Blue 200",color:"#90caf9"},{label:"Cyan 200",color:"#80deea"},{label:"Teal 200",color:"#80cbc4"},{label:"Light green 200",color:"#c5e1a5"},{label:"Lime 200",color:"#e6ee9c"},{label:"Amber 200",color:"#ffe082"},{label:"Orange 200",color:"#ffcc80"},{label:"Grey 200",color:"#eeeeee"},{label:"Blue grey 200",color:"#b0bec5"},{label:"Red 300",color:"#e57373"},{label:"Purple 300",color:"#ba68c8"},{label:"Indigo 300",color:"#7986cb"},{label:"Blue 300",color:"#64b5f6"},{label:"Cyan 300",color:"#4dd0e1"},{label:"Teal 300",color:"#4db6ac"},{label:"Light green 300",color:"#aed581"},{label:"Lime 300",color:"#dce775"},{label:"Amber 300",color:"#ffd54f"},{label:"Orange 300",color:"#ffb74d"},{label:"Grey 300",color:"#e0e0e0"},{label:"Blue grey 300",color:"#90a4ae"},{label:"Red 400",color:"#ef5350"},{label:"Purple 400",color:"#ab47bc"},{label:"Indigo 400",color:"#5c6bc0"},{label:"Blue 400",color:"#42a5f5"},{label:"Cyan 400",color:"#26c6da"},{label:"Teal 400",color:"#26a69a"},{label:"Light green 400",color:"#9ccc65"},{label:"Lime 400",color:"#d4e157"},{label:"Amber 400",color:"#ffca28"},{label:"Orange 400",color:"#ffa726"},{label:"Grey 400",color:"#bdbdbd"},{label:"Blue grey 400",color:"#78909c"},{label:"Red 500",color:"#f44336"},{label:"Purple 500",color:"#9c27b0"},{label:"Indigo 500",color:"#3f51b5"},{label:"Blue 500",color:"#2196f3"},{label:"Cyan 500",color:"#00bcd4"},{label:"Teal 500",color:"#009688"},{label:"Light green 500",color:"#8bc34a"},{label:"Lime 500",color:"#cddc39"},{label:"Amber 500",color:"#ffc107"},{label:"Orange 500",color:"#ff9800"},{label:"Grey 500",color:"#9e9e9e"},{label:"Blue grey 500",color:"#607d8b"},{label:"Red 600",color:"#e53935"},{label:"Purple 600",color:"#8e24aa"},{label:"Indigo 600",color:"#3949ab"},{label:"Blue 600",color:"#1e88e5"},{label:"Cyan 600",color:"#00acc1"},{label:"Teal 600",color:"#00897b"},{label:"Light green 600",color:"#7cb342"},{label:"Lime 600",color:"#c0ca33"},{label:"Amber 600",color:"#ffb300"},{label:"Orange 600",color:"#fb8c00"},{label:"Grey 600",color:"#757575"},{label:"Blue grey 600",color:"#546e7a"},{label:"Red 700",color:"#d32f2f"},{label:"Purple 700",color:"#7b1fa2"},{label:"Indigo 700",color:"#303f9f"},{label:"Blue 700",color:"#1976d2"},{label:"Cyan 700",color:"#0097a7"},{label:"Teal 700",color:"#00796b"},{label:"Light green 700",color:"#689f38"},{label:"Lime 700",color:"#afb42b"},{label:"Amber 700",color:"#ffa000"},{label:"Orange 700",color:"#f57c00"},{label:"Grey 700",color:"#616161"},{label:"Blue grey 700",color:"#455a64"},{label:"Red 800",color:"#c62828"},{label:"Purple 800",color:"#6a1b9a"},{label:"Indigo 800",color:"#283593"},{label:"Blue 800",color:"#1565c0"},{label:"Cyan 800",color:"#00838f"},{label:"Teal 800",color:"#00695c"},{label:"Light green 800",color:"#558b2f"},{label:"Lime 800",color:"#9e9d24"},{label:"Amber 800",color:"#ff8f00"},{label:"Orange 800",color:"#ef6c00"},{label:"Grey 800",color:"#424242"},{label:"Blue grey 800",color:"#37474f"},{label:"Red 900",color:"#b71c1c"},{label:"Purple 900",color:"#4a148c"},{label:"Indigo 900",color:"#1a237e"},{label:"Blue 900",color:"#0d47a1"},{label:"Cyan 900",color:"#006064"},{label:"Teal 900",color:"#004d40"},{label:"Light green 900",color:"#33691e"},{label:"Lime 900",color:"#827717"},{label:"Amber 900",color:"#ff6f00"},{label:"Orange 900",color:"#e65100"},{label:"Grey 900",color:"#212121"},{label:"Blue grey 900",color:"#263238"}],Ye={fontFamily:{supportAllValues:!0},fontSize:{options:[10,12,14,"default",18,20,22],supportAllValues:!0},fontColor:{columns:12,documentColors:12,colors:Ne},fontBackgroundColor:{columns:12,documentColors:12,colors:Ne},heading:{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h1",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h2",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h3",title:"Heading 3",class:"ck-heading_heading3"},{model:"heading4",view:"h4",title:"Heading 4",class:"ck-heading_heading4"},{model:"heading5",view:"h5",title:"Heading 5",class:"ck-heading_heading5"},{model:"heading6",view:"h6",title:"Heading 6",class:"ck-heading_heading6"}]},htmlSupport:{allow:[{name:/.*/,attributes:!0,classes:!0,styles:!0}],disallow:[{attributes:[{key:/^on(.*)/i,value:!0},{key:/.*/,value:/(\b)(on\S+)(\s*)=|javascript:|(<\s*)(\/*)script/i},{key:/.*/,value:/data:(?!image\/(png|jpeg|gif|webp))/i}]},{name:"script"}]},htmlEmbed:{showPreviews:!0,sanitizeHtml:Be=>({html:X()(Be),hasChanged:!0})},list:{properties:{styles:!0,startIndex:!0,reversed:!0}},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells","tableProperties","tableCellProperties","toggleTableCaption"]},image:{styles:{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]},resizeOptions:[{name:"resizeImage:original",label:"Default image width",value:null},{name:"resizeImage:50",label:"50% page width",value:"50"},{name:"resizeImage:75",label:"75% page width",value:"75"}],toolbar:["imageTextAlternative","toggleImageCaption","linkImage","|","imageStyle:inline","imageStyle:wrapText","imageStyle:breakText","imageStyle:side","|","resizeImage"],insert:{integrations:["insertImageViaUrl"]}},link:{decorators:{openInNewTab:{mode:"manual",label:"Open in a new tab",defaultValue:!0,attributes:{target:"_blank",rel:"noopener noreferrer"}},toggleDownloadable:{mode:"manual",label:"Downloadable",attributes:{download:"file"}}},addTargetToExternalLinks:!0,defaultProtocol:"https://"},style:{definitions:[{name:"Title",element:"h1",classes:["document-title"]},{name:"Subtitle",element:"h2",classes:["document-subtitle"]},{name:"Callout",element:"p",classes:["callout"]},{name:"Side quote",element:"blockquote",classes:["side-quote"]},{name:"Needs clarification",element:"span",classes:["needs-clarification"]},{name:"Wide spacing",element:"span",classes:["wide-spacing"]},{name:"Small caps",element:"span",classes:["small-caps"]},{name:"Code (dark)",element:"pre",classes:["stylish-code","stylish-code-dark"]},{name:"Code (bright)",element:"pre",classes:["stylish-code","stylish-code-bright"]}]}},mt=[Ce.Alignment,Ce.Autoformat,Ce.AutoImage,Ce.BlockQuote,Ce.Bold,Ce.Code,Ce.CodeBlock,Ce.DocumentList,Ce.DocumentListProperties,Ce.Essentials,Ce.FontBackgroundColor,Ce.FontColor,Ce.FontFamily,Ce.FontSize,Ce.GeneralHtmlSupport,Ce.Heading,Ce.HorizontalLine,Ce.HtmlEmbed,Ce.Image,Ce.ImageCaption,Ce.ImageInsert,Ce.ImageResize,Ce.ImageStyle,Ce.ImageToolbar,Ce.ImageUpload,Ce.Indent,Ce.IndentBlock,Ce.Italic,Ce.Link,Ce.LinkImage,Ce.LinkImage,Ce.MediaEmbed,Ce.PageBreak,Ce.Paragraph,Ce.PasteFromOffice,Ce.RemoveFormat,Ce.SourceEditing,Ce.SpecialCharacters,Ce.SpecialCharactersArrows,Ce.SpecialCharactersCurrency,Ce.SpecialCharactersLatin,Ce.SpecialCharactersMathematical,Ce.SpecialCharactersText,Ce.StrapiMediaLib,Ce.StrapiUploadAdapter,Ce.Strikethrough,Ce.Style,Ce.Subscript,Ce.Superscript,Ce.Table,Ce.TableCaption,Ce.TableCellProperties,Ce.TableColumnResize,Ce.TableProperties,Ce.TableToolbar,Ce.Underline,Ce.WordCount],Ct={plugins:mt,...Ye,toolbar:[{label:" ",tooltip:null,icon:"paragraph",items:["heading","style","SourceEditing"]},"|",{label:" ",tooltip:null,icon:"text",items:["bold","italic","fontSize","fontFamily","fontColor","fontBackgroundColor"]},{label:" ",tooltip:null,icon:`
      <svg width="800px" height="800px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
      <rect x="0" fill="none" width="24" height="24"/>
      <g>
      <path d="M14.348 12H21v2h-4.613c.24.515.368 1.094.368 1.748 0 1.317-.474 2.355-1.423 3.114-.947.76-2.266 1.138-3.956 1.138-1.557 0-2.934-.293-4.132-.878v-2.874c.985.44 1.818.75 2.5.928.682.18 1.306.27 1.872.27.68 0 1.2-.13 1.562-.39.363-.26.545-.644.545-1.158 0-.285-.08-.54-.24-.763-.16-.222-.394-.437-.704-.643-.18-.12-.483-.287-.88-.49H3v-2H14.347zm-3.528-2c-.073-.077-.143-.155-.193-.235-.126-.202-.19-.44-.19-.713 0-.44.157-.795.47-1.068.313-.273.762-.41 1.348-.41.492 0 .993.064 1.502.19.51.127 1.153.35 1.93.67l1-2.405c-.753-.327-1.473-.58-2.16-.76-.69-.18-1.414-.27-2.173-.27-1.544 0-2.753.37-3.628 1.108-.874.738-1.312 1.753-1.312 3.044 0 .302.036.58.088.848h3.318z"/>
      </g>
      </svg>`,items:["underline","strikethrough","superscript","subscript"]},"removeFormat","|","alignment","outdent","indent","|","bulletedList","numberedList","|","insertImage","mediaEmbed","strapiMediaLib","link","blockquote","insertTable","specialCharacters","htmlEmbed","codeBlock","|","horizontalLine","pageBreak","|","|","undo","redo","|"]},ln={plugins:[...mt,Ce.BalloonToolbar],...Ye,toolbar:[{label:" ",tooltip:null,icon:"paragraph",items:["heading","style"]},"|","alignment","outdent","indent","|","bulletedList","numberedList","|","insertImage","mediaEmbed","strapiMediaLib","link","blockquote","insertTable","specialCharacters","htmlEmbed","codeBlock","|","horizontalLine","pageBreak","|","SourceEditing","|","undo","redo","|"],balloonToolbar:["bold","italic","fontSize","fontFamily","fontColor","fontBackgroundColor",{label:" ",tooltip:null,icon:`
      <svg width="800px" height="800px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
      <rect x="0" fill="none" width="24" height="24"/>
      <g>
      <path d="M14.348 12H21v2h-4.613c.24.515.368 1.094.368 1.748 0 1.317-.474 2.355-1.423 3.114-.947.76-2.266 1.138-3.956 1.138-1.557 0-2.934-.293-4.132-.878v-2.874c.985.44 1.818.75 2.5.928.682.18 1.306.27 1.872.27.68 0 1.2-.13 1.562-.39.363-.26.545-.644.545-1.158 0-.285-.08-.54-.24-.763-.16-.222-.394-.437-.704-.643-.18-.12-.483-.287-.88-.49H3v-2H14.347zm-3.528-2c-.073-.077-.143-.155-.193-.235-.126-.202-.19-.44-.19-.713 0-.44.157-.795.47-1.068.313-.273.762-.41 1.348-.41.492 0 .993.064 1.502.19.51.127 1.153.35 1.93.67l1-2.405c-.753-.327-1.473-.58-2.16-.76-.69-.18-1.414-.27-2.173-.27-1.544 0-2.753.37-3.628 1.108-.874.738-1.312 1.753-1.312 3.044 0 .302.036.58.088.848h3.318z"/>
      </g>
      </svg>`,items:["underline","strikethrough","superscript","subscript"]},"|","removeFormat"]},$e={plugins:[...mt.filter(({pluginName:Be})=>Be!=="SourceEditing"&&Be!=="SpecialCharacters"&&Be!=="SpecialCharactersArrows"&&Be!=="SpecialCharactersCurrency"&&Be!=="SpecialCharactersEssentials"&&Be!=="SpecialCharactersLatin"&&Be!=="SpecialCharactersMathematical"&&Be!=="SpecialCharactersText"&&Be!=="PageBreak"&&Be!=="HorizontalLine"&&Be!=="MediaEmbed"&&Be!=="HtmlEmbed"&&Be!=="Code"&&Be!=="CodeBlock"),Ce.BlockToolbar,Ce.BalloonToolbar],...Ye,blockToolbar:[{label:" ",tooltip:null,icon:"paragraph",items:["heading","style"]},"|","bulletedList","numberedList","|","alignment","outdent","indent","|","insertImage","strapiMediaLib","link","blockquote","insertTable","|","undo","redo","|"],balloonToolbar:["bold","italic","fontSize","fontFamily","fontColor","fontBackgroundColor",{label:" ",tooltip:null,icon:`
      <svg width="800px" height="800px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
      <rect x="0" fill="none" width="24" height="24"/>
      <g>
      <path d="M14.348 12H21v2h-4.613c.24.515.368 1.094.368 1.748 0 1.317-.474 2.355-1.423 3.114-.947.76-2.266 1.138-3.956 1.138-1.557 0-2.934-.293-4.132-.878v-2.874c.985.44 1.818.75 2.5.928.682.18 1.306.27 1.872.27.68 0 1.2-.13 1.562-.39.363-.26.545-.644.545-1.158 0-.285-.08-.54-.24-.763-.16-.222-.394-.437-.704-.643-.18-.12-.483-.287-.88-.49H3v-2H14.347zm-3.528-2c-.073-.077-.143-.155-.193-.235-.126-.202-.19-.44-.19-.713 0-.44.157-.795.47-1.068.313-.273.762-.41 1.348-.41.492 0 .993.064 1.502.19.51.127 1.153.35 1.93.67l1-2.405c-.753-.327-1.473-.58-2.16-.76-.69-.18-1.414-.27-2.173-.27-1.544 0-2.753.37-3.628 1.108-.874.738-1.312 1.753-1.312 3.044 0 .302.036.58.088.848h3.318z"/>
      </g>
      </svg>`,items:["underline","strikethrough","superscript","subscript"]},"|","removeFormat"]},un={...{toolbar:{field:{key:"toolbar",value:"toolbar",metadatas:{intlLabel:{id:"ckeditor.preset.toolbar.label",defaultMessage:"Toolbar version"}}},editorConfig:Ct}},...{toolbarBaloon:{field:{key:"toolbarBaloon",value:"toolbarBaloon",metadatas:{intlLabel:{id:"ckeditor.preset.toolbarBaloon.label",defaultMessage:"Toolbar baloon version"}}},editorConfig:ln}},...{blockBaloon:{styles:`
          .ck-content{
            border-radius:4px !important;
          }
          .ck-sticky-panel{
            display:none !important;
          }
        `,field:{key:"blockBaloon",value:"blockBaloon",metadatas:{intlLabel:{id:"ckeditor.preset.blockBaloon.label",defaultMessage:"Block baloon version"}}},editorConfig:$e}}}},72846:(Z,v,t)=>{"use strict";t.d(v,{default:()=>N});var r=t(67294),n=t(87561),s=t(39642),a=t(95046),c=t.n(a);const h=()=>{const D=strapi.backendURL!=="/"?`${strapi.backendURL}/${c()}/ckeditor-config`:`/${c()}/ckeditor-config`;var x=document.createElement("script");x.id="ckeditor-config",x.src=D,document.body.appendChild(x)},p=async()=>new Promise(D=>{(function x(){typeof globalThis.CKEditorConfig<"u"?D(globalThis.CKEditorConfig):setTimeout(x,5)})()}),k=async()=>{h();const D=await p();return D||null};var M=t(46449),C=t(35314),w=t(86931);const I=(0,M.default)(w.Flex)`
  background-color: #f0f0ff; /* primary100 */
  border: 1px solid #d9d8ff; /* primary200 */
  svg > path {
    fill: #4945ff; /* primary600 */
  }
  `,F=()=>r.createElement("svg",{width:"68",height:"64",viewBox:"-20 -14 98 94",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{fill:"none","fill-rule":"evenodd"},r.createElement("path",{d:"M43.71 11.025a11.508 11.508 0 0 0-1.213 5.159c0 6.42 5.244 11.625 11.713 11.625.083 0 .167 0 .25-.002v16.282a5.464 5.464 0 0 1-2.756 4.739L30.986 60.7a5.548 5.548 0 0 1-5.512 0L4.756 48.828A5.464 5.464 0 0 1 2 44.089V20.344c0-1.955 1.05-3.76 2.756-4.738L25.474 3.733a5.548 5.548 0 0 1 5.512 0l12.724 7.292z",fill:"#FFF"}),r.createElement("path",{d:"M45.684 8.79a12.604 12.604 0 0 0-1.329 5.65c0 7.032 5.744 12.733 12.829 12.733.091 0 .183-.001.274-.003v17.834a5.987 5.987 0 0 1-3.019 5.19L31.747 63.196a6.076 6.076 0 0 1-6.037 0L3.02 50.193A5.984 5.984 0 0 1 0 45.003V18.997c0-2.14 1.15-4.119 3.019-5.19L25.71.804a6.076 6.076 0 0 1 6.037 0L45.684 8.79zm-29.44 11.89c-.834 0-1.51.671-1.51 1.498v.715c0 .828.676 1.498 1.51 1.498h25.489c.833 0 1.51-.67 1.51-1.498v-.715c0-.827-.677-1.498-1.51-1.498h-25.49.001zm0 9.227c-.834 0-1.51.671-1.51 1.498v.715c0 .828.676 1.498 1.51 1.498h18.479c.833 0 1.509-.67 1.509-1.498v-.715c0-.827-.676-1.498-1.51-1.498H16.244zm0 9.227c-.834 0-1.51.671-1.51 1.498v.715c0 .828.676 1.498 1.51 1.498h25.489c.833 0 1.51-.67 1.51-1.498v-.715c0-.827-.677-1.498-1.51-1.498h-25.49.001zm41.191-14.459c-5.835 0-10.565-4.695-10.565-10.486 0-5.792 4.73-10.487 10.565-10.487C63.27 3.703 68 8.398 68 14.19c0 5.791-4.73 10.486-10.565 10.486v-.001z",fill:"#1EBC61","fill-rule":"nonzero"}),r.createElement("path",{d:"M60.857 15.995c0-.467-.084-.875-.251-1.225a2.547 2.547 0 0 0-.686-.88 2.888 2.888 0 0 0-1.026-.531 4.418 4.418 0 0 0-1.259-.175c-.134 0-.283.006-.447.018-.15.01-.3.034-.446.07l.075-1.4h3.587v-1.8h-5.462l-.214 5.06c.319-.116.682-.21 1.089-.28.406-.071.77-.107 1.088-.107.218 0 .437.021.655.063.218.041.413.114.585.218s.313.244.422.419c.109.175.163.391.163.65 0 .424-.132.745-.396.961a1.434 1.434 0 0 1-.938.325c-.352 0-.656-.1-.912-.3-.256-.2-.43-.453-.523-.762l-1.925.588c.1.35.258.664.472.943.214.279.47.514.767.706.298.191.63.339.995.443.365.104.749.156 1.151.156.437 0 .86-.064 1.272-.193.41-.13.778-.323 1.1-.581a2.8 2.8 0 0 0 .775-.981c.193-.396.29-.864.29-1.405h-.001z",fill:"#FFF","fill-rule":"nonzero"}))),B=()=>r.createElement(I,{justifyContent:"center",alignItems:"center",width:7,height:6,hasRadius:!0,"aria-hidden":!0},r.createElement(C.Icon,{as:F})),N={async register(D){const{configs:x=s.Z,configsOverwrite:T}=await k()||{},u=()=>{let b={};return T?b=x:(b=s.Z,x&&Object.keys(x).map(A=>{s.Z.hasOwnProperty(A)?b[A].field={...s.Z[A].field,...x[A].field}:b[A]=x[A]})),[...Object.keys(b).map(A=>b[A].field)]};D.customFields.register({name:"CKEditor",type:"richtext",pluginId:c(),icon:B,intlLabel:{id:c()+".label",defaultMessage:"CKEditor 5"},intlDescription:{id:c()+".description",defaultMessage:"The rich text editor for every use case"},components:{Input:async()=>Promise.all([t.e(4512),t.e(7707)]).then(t.bind(t,34512))},options:{base:[{intlLabel:{id:c()+".preset.label",defaultMessage:"Choose editor version"},description:{id:c()+".preset.description",defaultMessage:" "},name:"options.preset",type:"select",options:u()}],advanced:[{sectionTitle:null,items:[{name:"required",type:"checkbox",intlLabel:{id:c()+".required.label",defaultMessage:"Required field"},description:{id:c()+"required.description",defaultMessage:"You won't be able to create an entry if this field is empty"}},{name:"options.maxLengthCharacters",type:"checkbox-with-number-field",intlLabel:{id:c()+".maxLength.label",defaultMessage:"Maximum length (characters)"}}]}],validator:b=>({preset:n.Z_().required({id:c()+".preset.error.required",defaultMessage:"Editor preset is required"})})}})}}},95046:(Z,v,t)=>{const r=t(50530),n=r.strapi.name||r.name.replace(/^(@_sh\/strapi-)plugin-/i,"");Z.exports=n},75318:(Z,v,t)=>{"use strict";Z.exports=t(72846).default},97699:(Z,v,t)=>{"use strict";t.d(v,{Ap:()=>p,Id:()=>M,Ir:()=>n,JO:()=>d,Ly:()=>k,NG:()=>I,Sh:()=>c,Uu:()=>s,VR:()=>h,Zl:()=>C,ai:()=>F,bi:()=>B,gz:()=>r,lw:()=>w,o_:()=>a,xx:()=>U});const r="ContentTypeBuilder/DataManagerProvider/ADD_ATTRIBUTE",n="ContentTypeBuilder/DataManagerProvider/ADD_CUSTOM_FIELD_ATTRIBUTE",s="ContentTypeBuilder/DataManagerProvider/ADD_CREATED_COMPONENT_TO_DYNAMIC_ZONE",a="ContentTypeBuilder/DataManagerProvider/CHANGE_DYNAMIC_ZONE_COMPONENTS",c="ContentTypeBuilder/DataManagerProvider/CREATE_SCHEMA",h="ContentTypeBuilder/DataManagerProvider/CREATE_COMPONENT_SCHEMA",p="ContentTypeBuilder/DataManagerProvider/DELETE_NOT_SAVED_TYPE",d="ContentTypeBuilder/DataManagerProvider/EDIT_ATTRIBUTE",k="ContentTypeBuilder/DataManagerProvider/EDIT_CUSTOM_FIELD_ATTRIBUTE",M="ContentTypeBuilder/DataManagerProvider/GET_DATA_SUCCEEDED",C="ContentTypeBuilder/DataManagerProvider/RELOAD_PLUGIN",w="ContentTypeBuilder/DataManagerProvider/REMOVE_FIELD_FROM_DISPLAYED_COMPONENT",I="ContentTypeBuilder/DataManagerProvider/REMOVE_COMPONENT_FROM_DYNAMIC_ZONE",F="ContentTypeBuilder/DataManagerProvider/REMOVE_FIELD",U="ContentTypeBuilder/DataManagerProvider/SET_MODIFIED_DATA",B="ContentTypeBuilder/DataManagerProvider/UPDATE_SCHEMA"},21957:(Z,v,t)=>{"use strict";t.d(v,{E:()=>M,Z:()=>U});var r=t(18172),n=t(27361),s=t.n(n),a=t(36968),c=t.n(a),h=t(82534),p=t(12670),d=t(97699),k=t(26223);const M={components:{},contentTypes:{},initialComponents:{},initialContentTypes:{},initialData:{},modifiedData:{},reservedNames:{},isLoading:!0,isLoadingForDataToBeSet:!0},C=["oneWay","manyWay"],w=B=>B==="manyToOne"?"oneToMany":B==="oneToMany"?"manyToOne":B,I=(B,N)=>B.schema.attributes.findIndex(({name:D})=>D===N),U=(B=M,N)=>(0,r.ZP)(B,D=>{switch(N.type){case d.gz:{const{attributeToSet:{name:x,...T},forTarget:u,targetUid:b}=N;delete T.createComponent;const E=["component","contentType"].includes(u)?[u]:[u,b],R=[...s()(B,["modifiedData",...E,"schema","attributes"],[]).slice(),{...T,name:x}];if(c()(D,["modifiedData",...E,"schema","attributes"],R),N.shouldAddComponentToData){const z=T.component,V=B.components[z],$=V.isTemporary,ee=B.modifiedData.components[z]!==void 0;if($||ee)break;D.modifiedData.components[z]=V,(0,k.Z)(V.schema.attributes,B.components).filter(X=>s()(B,["modifiedData","components",X])===void 0).forEach(X=>{const pe=s()(B,["components",X],{});pe.isTemporary||!1||(D.modifiedData.components[X]=pe)});break}if(T.type==="relation"){const z=T.target,V=T.targetAttribute||null,$=T.relation,ee=(0,h.Z)($,V),q=s()(B,["modifiedData",...E,"uid"]);if(T.type==="relation"&&ee!=="oneWay"&&ee!=="manyWay"&&z===q){const oe={name:V,relation:w(ee),target:z,targetAttribute:x,type:"relation"};T.private&&(oe.private=T.private);const X=[...R,oe];c()(D,["modifiedData",...E,"schema","attributes"],X)}}break}case d.Uu:{const{dynamicZoneTarget:x,componentsToAdd:T}=N,u=I(B.modifiedData.contentType,x);T.forEach(b=>{D.modifiedData.contentType.schema.attributes[u].components.push(b)});break}case d.Ir:{const{attributeToSet:{name:x,...T},forTarget:u,targetUid:b}=N,E=["component","contentType"].includes(u)?[u]:[u,b],R=[...s()(B,["modifiedData",...E,"schema","attributes"],[]).slice(),{...T,name:x}];c()(D,["modifiedData",...E,"schema","attributes"],R);break}case d.o_:{const{dynamicZoneTarget:x,newComponents:T}=N,u=I(B.modifiedData.contentType,x),b=B.modifiedData.contentType.schema.attributes[u].components,E=(0,p.Z)([...b,...T]);D.modifiedData.contentType.schema.attributes[u].components=E,(0,k.Z)((0,r.Vk)(D.modifiedData.contentType.schema.attributes),B.components).filter(H=>s()(B,["modifiedData","components",H])===void 0).forEach(H=>{const z=s()(B,["components",H],{});z.isTemporary||!1||(D.modifiedData.components[H]=z)});break}case d.VR:{const x={uid:N.uid,isTemporary:!0,category:N.componentCategory,schema:{...N.data,attributes:[]}};D.components[N.uid]=x,N.shouldAddComponentToData&&(D.modifiedData.components[N.uid]=x);break}case d.Sh:{const x={uid:N.uid,isTemporary:!0,schema:{...N.data,attributes:[]}};D.contentTypes[N.uid]=x;break}case d.JO:{const{attributeToSet:{name:x,...T},forTarget:u,targetUid:b,initialAttribute:E}=N,A=E.name,R=["component","contentType"].includes(u)?[u]:[u,b],H=I(s()(B,["modifiedData",...R]),A),z=T.type==="relation";if(!z){c()(D,["modifiedData",...R,"schema","attributes",H],N.attributeToSet);break}const V=s()(B,["modifiedData",...R,"schema","attributes"]).slice(),$={name:x,relation:T.relation,target:T.target,targetAttribute:T.targetAttribute,type:"relation"};T.private&&($.private=T.private),T.pluginOptions&&($.pluginOptions=T.pluginOptions);const ee=V.findIndex(({name:ln})=>ln===E.name);ee!==-1&&V.splice(ee,1,$);let q=null,oe=null,X=null,pe=null;const Ie=s()(B,["modifiedData",...R,"uid"]),se=E.target!==T.target,be=T.target===Ie,fe=(0,h.Z)(T.relation,T.targetAttribute),ue=(0,h.Z)(E.relation,E.targetAttribute),we=E.target===Ie,Me=ue!==fe,Ce=se&&!be&&we&&z,Ne=Me&&we&&["oneWay","manyWay"].includes(fe)&&z,Ye=!C.includes(ue)&&!C.includes(fe)&&we&&be&&z,mt=C.includes(ue)&&!C.includes(fe)&&we&&be&&z,Ct=se&&be&&!C.includes(fe);if((Ce||Ne)&&(q=E.targetAttribute),q){const ln=V.findIndex(({name:$e})=>$e===q);V.splice(ln,1)}if(!Ce){const ln=s()(B,["initialContentTypes",E.target]);if(ln){const $e=I(ln,E.targetAttribute);pe=s()(B,["initialContentTypes",E.target,"schema","attributes",$e])}}if(mt||Ct){X={name:T.targetAttribute,relation:w(fe),target:T.target,targetAttribute:x,type:"relation"},T.private&&(X.private=T.private),pe&&pe.pluginOptions&&(X.pluginOptions=pe.pluginOptions);const ln=V.findIndex(({name:bt})=>bt===E.name),$e=V.findIndex(({name:bt})=>x===bt),Qe=(ln===-1?$e:ln)+1;V.splice(Qe,0,X)}if(Ye&&(oe=E.targetAttribute,X={name:T.targetAttribute,relation:w(fe),target:T.target,targetAttribute:x,type:"relation"},T.private&&(X.private=T.private),pe&&pe.pluginOptions&&(X.pluginOptions=pe.pluginOptions),oe)){const ln=V.findIndex(({name:$e})=>$e===oe);V.splice(ln,1,X)}c()(D,["modifiedData",...R,"schema","attributes"],V);break}case d.Ly:{const{forTarget:x,targetUid:T,initialAttribute:u,attributeToSet:b}=N,E=u.name,A=["component","contentType"].includes(x)?[x]:[x,T],R=I(s()(B,["modifiedData",...A]),E);c()(D,["modifiedData",...A,"schema","attributes",R],b);break}case d.Id:{D.components=N.components,D.initialComponents=N.components,D.initialContentTypes=N.contentTypes,D.contentTypes=N.contentTypes,D.reservedNames=N.reservedNames,D.isLoading=!1;break}case d.Ap:{D.contentTypes=B.initialContentTypes,D.components=B.initialComponents;break}case d.Zl:return M;case d.NG:{const x=I(B.modifiedData.contentType,N.dzName);D.modifiedData.contentType.schema.attributes[x].components.splice(N.componentToRemoveIndex,1);break}case d.ai:{const{mainDataKey:x,attributeToRemoveName:T}=N,u=["modifiedData",x,"schema","attributes"],b=I(B.modifiedData[x],T),E=[...u,b],A=s()(B,E);if(A.type==="relation"&&x==="contentType"){const{target:V,relation:$,targetAttribute:ee}=A,q=(0,h.Z)($,ee),oe=B.modifiedData.contentType.uid;if(V===oe&&!C.includes(q)){const Ie=B.modifiedData[x].schema.attributes.slice().filter(se=>!(se.name===T||se.target===oe&&se.targetAttribute===T));D.modifiedData[x].schema.attributes=Ie;break}}B.modifiedData[x].schema.attributes.slice().reduce((V,$)=>($.type!=="uid"||$.targetField!==T||V.push($.name),V),[]).forEach(V=>{const $=I(B.modifiedData[x],V);delete D.modifiedData[x].schema.attributes[$].targetField}),D.modifiedData[x].schema.attributes.splice(b,1);break}case d.lw:{const{attributeToRemoveName:x,componentUid:T}=N,u=I(B.modifiedData.components[T],x);D.modifiedData.components[T].schema.attributes.splice(u,1);break}case d.xx:{D.isLoadingForDataToBeSet=!1,D.initialData=N.schemaToSet,D.modifiedData=N.schemaToSet,N.hasJustCreatedSchema||(D.components=B.initialComponents,D.contentTypes=B.initialContentTypes);break}case d.bi:{const{data:{displayName:x,category:T,icon:u,kind:b},schemaType:E,uid:A}=N;if(D.modifiedData[E].schema.displayName=x,N.schemaType==="component"){D.modifiedData.component.category=T,D.modifiedData.component.schema.icon=u;const R=(0,r.Vk)(D.modifiedData.component);D.components[A]=R;break}D.modifiedData.contentType.schema.kind=b;break}default:return D}})},26223:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>c});var r=t(27361),n=t.n(r),s=t(12670);const a=(h,p)=>{const d=h.reduce((k,M)=>{const C=M.type;if(C==="component"){const w=M.component;k.push(w);const I=n()(p,[w,"schema","attributes"],[]);k.push(...a(I,p))}if(C==="dynamiczone"){const w=M.components,I=w.reduce((F,U)=>{const B=n()(p,[U,"schema","attributes"],[]);return[...F,...a(B,p)]},[]);return[...k,...w,...I]}return k},[]);return(0,s.Z)(d)},c=a},28861:(Z,v,t)=>{"use strict";t.d(v,{Ey:()=>w,I:()=>p,OY:()=>M,P0:()=>r,QQ:()=>s,S0:()=>k,VZ:()=>C,_H:()=>d,aG:()=>n,c2:()=>a,oF:()=>h,yC:()=>c});const r="ContentTypeBuilder/FormModal/ON_CHANGE",n="ContentTypeBuilder/FormModal/ON_CHANGE_RELATION_TARGET",s="ContentTypeBuilder/FormModal/ON_CHANGE_RELATION_TYPE",a="ContentTypeBuilder/FormModal/RESET_PROPS",c="ContentTypeBuilder/FormModal/RESET_PROPS_AND_SET_FORM_FOR_ADDING_AN_EXISTING_COMPO",h="ContentTypeBuilder/FormModal/RESET_PROPS_AND_SAVE_CURRENT_DATA",p="ContentTypeBuilder/FormModal/RESET_PROPS_AND_SET_THE_FORM_FOR_ADDING_A_COMPO_TO_A_DZ",d="ContentTypeBuilder/FormModal/SET_DATA_TO_EDIT",k="ContentTypeBuilder/FormModal/SET_ATTRIBUTE_DATA_SCHEMA",M="ContentTypeBuilder/FormModal/SET_CUSTOM_FIELD_DATA_SCHEMA",C="ContentTypeBuilder/FormModal/SET_DYNAMIC_ZONE_DATA_SCHEMA",w="ContentTypeBuilder/FormModal/SET_ERRORS"},87777:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>N,E:()=>U});var r=t(18172),n=t(36968),s=t.n(n),a=t(11865),c=t.n(a),h=t(23450),p=t.n(h),d=t(82534),k=t(50478),M=t(28861),C=t(9816);const w=(D,x)=>{if(x.items)return x.items.reduce(w,D);if("defaultValue"in x){const{name:T,defaultValue:u}=x;D.push({name:T,defaultValue:u})}return D},I=D=>["manyToMany","oneToMany","manyWay"].includes(D)?2:1,F=D=>["manyToMany","manyToOne"].includes(D)?2:1,U={formErrors:{},modifiedData:{},initialData:{},componentToCreate:{},isCreatingComponentWhileAddingAField:!1},N=(D=U,x)=>(0,r.ZP)(D,T=>{switch(x.type){case M.P0:{const{keys:u,value:b}=x,E=D.modifiedData;if(Boolean(E.default)&&u.length===1&&u.includes("type")){const R=E.type;R&&["date","datetime","time"].includes(R)&&delete T.modifiedData.default}s()(T,["modifiedData",...u],b);break}case M.aG:{const{target:{oneThatIsCreatingARelationWithAnother:u,selectedContentTypeFriendlyName:b,targetContentTypeAllowedRelations:E,value:A}}=x;let R=!1,H=null;s()(T,["modifiedData","target"],A);const z=D.modifiedData;if(Array.isArray(E)){const q=(0,d.Z)(z.relation,z.targetAttribute);if(!E.includes(q)){const oe=E[0];R=!0,H=oe,oe==="oneWay"?s()(T,["modifiedData","relation"],"oneToOne"):oe==="manyWay"?s()(T,["modifiedData","relation"],"oneToMany"):s()(T,["modifiedData","relation"],oe)}}let V;if(R?V=p()(c()((0,k.Z)(b)),I(H)):V=p()(c()((0,k.Z)(b)),I(z.relation)),s()(T,["modifiedData","name"],V),D.modifiedData.targetAttribute===null)break;if(R&&["oneWay","manyWay"].includes(H)){s()(T,["modifiedData","targetAttribute"],null);break}const ee=p()(c()((0,k.Z)(u)),F(z.relation));s()(T,["modifiedData","targetAttribute"],ee);break}case M.QQ:{const{target:{oneThatIsCreatingARelationWithAnother:u,value:b}}=x,E=D.modifiedData.name;if(!["oneWay","manyWay"].includes(b)){s()(T,["modifiedData","relation"],b);const A=D.modifiedData.targetAttribute;s()(T,["modifiedData","name"],p()(c()((0,k.Z)(E)),I(b))),s()(T,["modifiedData","targetAttribute"],p()(A||c()((0,k.Z)(u)),F(b)));break}if(b==="oneWay"){s()(T,["modifiedData","relation"],"oneToOne"),s()(T,["modifiedData","targetAttribute"],null),s()(T,["modifiedData","name"],p()(c()(E),1));break}s()(T,["modifiedData","relation"],"oneToMany"),s()(T,["modifiedData","targetAttribute"],null),s()(T,["modifiedData","name"],p()(c()(E),2));break}case M.c2:return U;case M.yC:return{...U,modifiedData:{type:"component",repeatable:!0,...x.options}};case M.oF:{const u=D.modifiedData.componentToCreate,b={displayName:u.displayName,type:"component",repeatable:!1,...x.options,component:(0,C.N)(u.displayName,u.category)};return{...U,componentToCreate:u,modifiedData:b,isCreatingComponentWhileAddingAField:D.modifiedData.createComponent}}case M.I:{const b={...D.modifiedData,createComponent:!0,componentToCreate:{type:"component"}};return{...U,modifiedData:b}}case M._H:{T.modifiedData=x.data,T.initialData=x.data;break}case M.S0:{const{attributeType:u,isEditing:b,modifiedDataToSetForEditing:E,nameToSetForRelation:A,targetUid:R,step:H,options:z={}}=x;if(b){T.modifiedData=E,T.initialData=E;break}let V;u==="component"?H==="1"?V={type:"component",createComponent:!0,componentToCreate:{type:"component"}}:V={...z,type:"component",repeatable:!0}:u==="dynamiczone"?V={...z,type:"dynamiczone",components:[]}:u==="text"?V={...z,type:"string"}:u==="number"||u==="date"?V=z:u==="media"?V={allowedTypes:["images","files","videos","audios"],type:"media",multiple:!0,...z}:u==="enumeration"?V={...z,type:"enumeration",enum:[]}:u==="relation"?V={name:c()(A),relation:"oneToOne",targetAttribute:null,target:R,type:"relation"}:V={...z,type:u,default:null},T.modifiedData=V;break}case M.OY:{const{customField:u,isEditing:b,modifiedDataToSetForEditing:E,options:A={}}=x;if(b){T.modifiedData=E,T.initialData=E;break}T.modifiedData={...A,type:u.type};const H=[...u?.options?.base||[],...u?.options?.advanced||[]].reduce(w,[]);H.length&&H.forEach(({name:z,defaultValue:V})=>s()(T.modifiedData,z,V));break}case M.VZ:{T.modifiedData=x.attributeToEdit,T.initialData=x.attributeToEdit;break}case M.Ey:{T.formErrors=x.errors;break}default:return T}})},9816:(Z,v,t)=>{"use strict";t.d(v,{E:()=>n,N:()=>s});var r=t(50478);const n=a=>{const c=(0,r.Z)(a);return`api::${c}.${c}`},s=(a,c)=>`${(0,r.Z)(c)}.${(0,r.Z)(a)}`},5391:(Z,v,t)=>{"use strict";t.d(v,{_:()=>r});const r={main:[{action:"plugin::content-type-builder.read",subject:null}]}},44426:(Z,v,t)=>{"use strict";t.d(v,{default:()=>u});var r=t(30972),n=t(98699),s=t(67294),a=t(5702);const h=()=>s.createElement(a.Z,null);var p=t(5391),d=t(72966),k=t(21957),M=t(87777);const w={[`${d.Z}_formModal`]:M.Z,[`${d.Z}_dataManagerProvider`]:k.Z};var I=t(50361),F=t.n(I),U=t(27361),B=t.n(U),N=t(87561);const x={components:{inputs:{},add({id:b,component:E}){this.inputs[b]||(this.inputs[b]=E)}},types:{attribute:{},contentType:{validators:[],form:{advanced:[],base:[]}},component:{validators:[],form:{advanced:[],base:[]}}},contentTypeSchemaMutations:[],addContentTypeSchemaMutation(b){this.contentTypeSchemaMutations.push(b)},extendContentType({validator:b,form:{advanced:E,base:A}}){const{contentType:R}=this.types;R.validators.push(b),R.form.advanced.push(E),R.form.base.push(A)},extendFields(b,{validator:E,form:{advanced:A,base:R}}){const H=this.types.attribute;b.forEach(z=>{H[z]||(H[z]={validators:[],form:{advanced:[],base:[]}}),H[z].validators.push(E),H[z].form.advanced.push(A),H[z].form.base.push(R)})},getAdvancedForm(b,E=null){return B()(this.types,[...b,"form","advanced"],[]).reduce((R,H)=>{const z=H(E);return[...R,...z]},[])},makeCustomFieldValidator(b,E,...A){return E?b.shape({options:N.Ry().shape(E(A))}):b},makeValidator(b,E,...A){const H=B()(this.types,[...b,"validators"],[]).reduce((z,V)=>{const $=V(A);return{...z,...$}},{});return E.shape({pluginOptions:N.Ry().shape(H)})},mutateContentTypeSchema(b,E){let A=F()(b);const R=F()(E);return this.contentTypeSchemaMutations.forEach(H=>{A=H(A,R)}),A}},T=n.s1.u2,u={register(b){b.addReducers(w),b.addMenuLink({to:`/plugins/${d.Z}`,icon:h,intlLabel:{id:`${d.Z}.plugin.name`,defaultMessage:"Content Types Builder"},permissions:p._.main,async Component(){return await Promise.all([t.e(1481),t.e(8880)]).then(t.bind(t,60347))}}),b.registerPlugin({id:d.Z,name:T,apis:{forms:x}})},bootstrap(){},async registerTrads({locales:b}){const E=await Promise.all(b.map(A=>t(59842)(`./${A}.json`).then(({default:R})=>({data:(0,r.jV)(R,d.Z),locale:A})).catch(()=>({data:{},locale:A}))));return Promise.resolve(E)}}},72966:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(98699);const s=r.u2.replace(/^@strapi\/plugin-/i,"")},82534:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>n});const n=(s,a)=>{const c=a==null;return s==="oneToOne"&&c?"oneWay":s==="oneToMany"&&c?"manyWay":s}},12670:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>n});const n=s=>[...new Set(s)]},50478:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>a});var r=t(46831),n=t.n(r);const a=c=>n()(c,{separator:"-"})},70916:(Z,v,t)=>{"use strict";Z.exports=t(44426).default},31350:(Z,v,t)=>{"use strict";t.d(v,{_:()=>r});const r={settings:[{action:"plugin::email.settings.read",subject:null}]}},96099:(Z,v,t)=>{"use strict";t.d(v,{default:()=>s});var r=t(30972),n=t(31350);const s={register(a){a.createSettingSection({id:"email",intlLabel:{id:"email.SettingsNav.section-label",defaultMessage:"Email Plugin"}},[{intlLabel:{id:"email.Settings.email.plugin.title",defaultMessage:"Settings"},id:"settings",to:"/settings/email",async Component(){return await t.e(1495).then(t.bind(t,91043))},permissions:n._.settings}]),a.registerPlugin({id:"email",name:"email"})},bootstrap(){},async registerTrads({locales:a}){const c=await Promise.all(a.map(h=>t(10980)(`./${h}.json`).then(({default:p})=>({data:(0,r.jV)(p,"email"),locale:h})).catch(()=>({data:{},locale:h}))));return Promise.resolve(c)}}},47275:(Z,v,t)=>{"use strict";Z.exports=t(96099).default},39510:(Z,v,t)=>{"use strict";t.d(v,{_:()=>r});const r={accessMain:[{action:"plugin::i18n.locale.read",subject:null}],create:[{action:"plugin::i18n.locale.create",subject:null}],delete:[{action:"plugin::i18n.locale.delete",subject:null}],update:[{action:"plugin::i18n.locale.update",subject:null}],read:[{action:"plugin::i18n.locale.read",subject:null}]}},70437:(Z,v,t)=>{"use strict";t.d(v,{HC:()=>a,I4:()=>n,OT:()=>c,xz:()=>s});var r=t(5490);const n=`${r.Z}/locales/resolve-locales`,s=`${r.Z}/locales/add`,a=`${r.Z}/locales/delete`,c=`${r.Z}/locales/update`},47235:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>h});var r=t(67294),n=t(30972),s=t(86706),a=t(70437);const h=()=>{const p=(0,s.I0)(),d=(0,n.lm)(),k=(0,s.v9)(w=>w.i18n_locales.locales),M=(0,s.v9)(w=>w.i18n_locales.isLoading),{get:C}=(0,n.kY)();return(0,r.useEffect)(()=>{C("/i18n/locales").then(({data:w})=>p({type:a.I4,locales:w})).catch(w=>{"code"in w&&w?.code==="ERR_CANCELED"||d({type:"warning",message:{id:"notification.error"}})})},[p,C,d]),{locales:k,isLoading:M}}},85411:(Z,v,t)=>{"use strict";t.d(v,{default:()=>Jt});var r=t(30972),n=t(27361),s=t.n(n),a=t(87561),c=t(21381),h=t(67294),p=t(10574),d=t(22546),k=t(27848),M=t(32123),C=t(96987),w=t(81982),I=t(12473),F=t(94417),U=t(45697),B=t.n(U),N=t(86896),D=t(46449),x=t(3804);const T=(0,D.default)(p.Z)`
  text-align: center;
`,u=({description:gt,isCreating:dn,intlLabel:Xt,name:hn,onChange:Sn,value:Jn})=>{const{formatMessage:Vn}=(0,N.Z)(),[ar,Vr]=(0,h.useState)(!1),Jr=_e=>dn||_e?Sn({target:{name:hn,value:_e,type:"checkbox"}}):_e?null:Vr(!0),yi=()=>{Sn({target:{name:hn,value:!1,type:"checkbox"}}),Vr(!1)},Ii=()=>Vr(_e=>!_e),ji=Xt.id?Vn({id:Xt.id,defaultMessage:Xt.defaultMessage},{...Xt.values}):hn,_n=gt?Vn({id:gt.id,defaultMessage:gt.defaultMessage},{...gt.values}):"";return h.createElement(h.Fragment,null,h.createElement(d.X,{hint:_n,id:hn,name:hn,onValueChange:Jr,value:Jn,type:"checkbox"},ji),ar&&h.createElement(k.V,{onClose:Ii,title:"Confirmation",isOpen:ar},h.createElement(M.a,{icon:h.createElement(F.Z,null)},h.createElement(C.k,{direction:"column",alignItems:"stretch",gap:2},h.createElement(C.k,{justifyContent:"center"},h.createElement(T,{id:"confirm-description"},Vn({id:(0,x.O)("CheckboxConfirmation.Modal.content"),defaultMessage:"Disabling localization will engender the deletion of all your content but the one associated to your default locale (if existing)."}))),h.createElement(C.k,{justifyContent:"center"},h.createElement(p.Z,{fontWeight:"semiBold",id:"confirm-description"},Vn({id:(0,x.O)("CheckboxConfirmation.Modal.body"),defaultMessage:"Do you want to disable it?"}))))),h.createElement(w.c,{startAction:h.createElement(I.z,{onClick:Ii,variant:"tertiary"},Vn({id:"components.popUpWarning.button.cancel",defaultMessage:"No, cancel"})),endAction:h.createElement(I.z,{variant:"danger-light",onClick:yi},Vn({id:(0,x.O)("CheckboxConfirmation.Modal.button-confirm"),defaultMessage:"Yes, disable"}))})))};u.defaultProps={description:null,isCreating:!1},u.propTypes={description:B().shape({id:B().string.isRequired,defaultMessage:B().string.isRequired,values:B().object}),intlLabel:B().shape({id:B().string.isRequired,defaultMessage:B().string.isRequired,values:B().object}).isRequired,isCreating:B().bool,name:B().string.isRequired,onChange:B().func.isRequired,value:B().bool.isRequired};const b=u;var E=t(18721),A=t.n(E),R=t(86706),H=t(16550);const V=gt=>gt.rbacProvider.collectionTypesRelatedPermissions,ee=gt=>{const Xt=(0,R.v9)(V)[gt],hn=Xt["plugin::content-manager.explorer.read"]||[];return{createPermissions:Xt["plugin::content-manager.explorer.create"]||[],readPermissions:hn}},oe=gt=>gt.i18n_locales.locales;var X=t(16607),pe=t(26910),Ie=t(59586),se=t(40933),be=t(80129),fe=t(43838);const we=(gt,dn,Xt)=>{const hn=(Sn,Jn)=>Object.keys(Sn).reduce((Vn,ar)=>{const Vr=(0,r.UN)(Jn,ar),Jr=s()(Sn,ar),yi=(0,r.k2)(Jn,[ar,"component"]),Ii=(0,r.k2)(Jn,[ar,"repeatable"]);return Vr==="dynamiczone"?(Vn[ar]=Jr.map(ji=>hn(ji,Xt[ji.__component])),Vn):Vr==="component"?(Ii?Vn[ar]=Jr&&Jr.map(ji=>hn(ji,Xt[yi])):Vn[ar]=Jr&&hn(Jr,Xt[yi]),Vn):(Vr!=="password"&&Vr!=="relation"&&(Vn[ar]=Jr),Vn)},{});return hn(gt,dn)},Ce=(gt,{contentType:dn,components:Xt},hn)=>{const Sn=we(gt,dn,Xt);Sn.localizations=hn;const Jn=["createdBy","updatedBy","publishedAt","id","updatedAt","createdAt"],Vn=(0,r.w6)(Sn,dn,Xt,Jn);return(0,r.dU)(Vn,dn,Xt)},Ye=(gt,dn,Xt,hn)=>gt.filter(({code:Sn})=>Sn!==dn&&(Xt||[]).findIndex(({locale:Jn})=>Jn===Sn)!==-1).filter(({code:Sn})=>hn.some(({properties:Jn})=>s()(Jn,"locales",[]).includes(Sn))).map(Sn=>({label:Sn.name,value:Xt.find(Jn=>Sn.code===Jn.locale).id})),mt=(0,D.default)(p.Z)`
  svg {
    margin-right: ${({theme:gt})=>gt.spaces[2]};
    fill: none;
    > g,
    path {
      fill: ${({theme:gt})=>gt.colors.primary600};
    }
  }
`,Ct=(0,D.default)(p.Z)`
  text-align: center;
`,ln=gt=>gt.localizations.length?h.createElement($e,{...gt}):null,$e=({appLocales:gt,currentLocale:dn,localizations:Xt,readPermissions:hn})=>{const Sn=Ye(gt,dn,Xt,hn),Jn=(0,r.lm)(),{formatMessage:Vn}=(0,N.Z)(),ar=(0,R.I0)(),{allLayoutData:Vr,initialData:Jr,slug:yi}=(0,r.Wq)(),[Ii,ji]=(0,h.useState)(!1),[_n,_e]=(0,h.useState)(!1),[rt,vt]=(0,h.useState)(Sn[0]?.value||""),{get:Gt}=(0,r.kY)(),We=async()=>{if(!rt){Dt();return}const gn=`/content-manager/collection-types/${yi}/${rt}`;ji(!0);try{const{data:Hn}=await Gt(gn),nr=Ce(Hn,Vr,Xt);["createdBy","updatedBy","publishedAt","id","createdAt"].forEach(_r=>{Jr[_r]&&(nr[_r]=Jr[_r])}),ar({type:"ContentManager/CrudReducer/GET_DATA_SUCCEEDED",data:nr,setModifiedDataOnly:!0}),Jn({type:"success",message:{id:(0,x.O)("CMEditViewCopyLocale.copy-success"),defaultMessage:"Locale copied!"}})}catch(Hn){console.error(Hn),Jn({type:"warning",message:{id:(0,x.O)("CMEditViewCopyLocale.copy-failure"),defaultMessage:"Failed to copy locale"}})}finally{ji(!1),Dt()}},Ot=gn=>{vt(gn)},Dt=()=>{_e(gn=>!gn)};return h.createElement(h.Fragment,null,h.createElement(mt,{fontSize:2,textColor:"primary600",as:"button",type:"button",onClick:Dt},h.createElement(C.k,null,h.createElement(fe.Z,{width:"12px",height:"12px"}),Vn({id:(0,x.O)("CMEditViewCopyLocale.copy-text"),defaultMessage:"Fill in from another locale"}))),_n&&h.createElement(k.V,{onClose:Dt,title:"Confirmation",isOpen:_n},h.createElement(M.a,{icon:h.createElement(F.Z,null)},h.createElement(C.k,{direction:"column",alignItems:"stretch",gap:2},h.createElement(C.k,{justifyContent:"center"},h.createElement(Ct,{id:"confirm-description"},Vn({id:(0,x.O)("CMEditViewCopyLocale.ModalConfirm.content"),defaultMessage:"Your current content will be erased and filled by the content of the selected locale:"}))),h.createElement(X.x,null,h.createElement(Ie.P,{label:Vn({id:(0,x.O)("Settings.locales.modal.locales.label")}),onChange:Ot,value:rt},Sn.map(({label:gn,value:Hn})=>h.createElement(se.W,{key:Hn,value:Hn},gn)))))),h.createElement(w.c,{startAction:h.createElement(I.z,{onClick:Dt,variant:"tertiary"},Vn({id:"popUpWarning.button.cancel",defaultMessage:"No, cancel"})),endAction:h.createElement(I.z,{variant:"success",onClick:We,loading:Ii},Vn({id:(0,x.O)("CMEditViewCopyLocale.submit-text"),defaultMessage:"Yes, fill in"}))})))};ln.propTypes={localizations:B().array.isRequired},$e.propTypes={appLocales:B().arrayOf(B().shape({code:B().string.isRequired,name:B().string})).isRequired,currentLocale:B().string.isRequired,localizations:B().array.isRequired,readPermissions:B().array.isRequired};const Qe=ln,bt={"did-not-create-locale":{backgroundColor:"neutral0",borderColor:"neutral500"},draft:{backgroundColor:"secondary700"},published:{backgroundColor:"success700"}},It={draft:"content-manager.components.Select.draft-info-title",published:"content-manager.components.Select.publish-info-title","did-not-create-locale":(0,x.O)("components.Select.locales.not-available")},mn=D.default.div`
  width: ${(0,r.Q1)(6)};
  height: ${(0,r.Q1)(6)};
  border: ${({theme:gt,status:dn})=>`1px solid ${gt.colors[bt[dn].borderColor]}`};
  background: ${({theme:gt,status:dn})=>gt.colors[bt[dn].backgroundColor]};
  border-radius: 50%;
  cursor: pointer;
`,un=({status:gt})=>{const{formatMessage:dn}=(0,N.Z)();return h.createElement(mn,{status:gt,title:dn({id:It[gt]})})};un.propTypes={status:B().oneOf(["draft","published","did-not-create-locale"]).isRequired};const Be=un,$t=(gt,dn)=>gt.map(({name:Xt,code:hn})=>{const Sn=dn.find(({locale:Vn})=>Vn===hn);let Jn="did-not-create-locale";return Sn&&(Jn=Sn.publishedAt===null?"draft":"published"),{id:Sn?Sn.id:null,label:Xt,value:hn,status:Jn}}),et=({appLocales:gt,createPermissions:dn,currentEntityId:Xt,currentLocaleStatus:hn,hasDraftAndPublishEnabled:Sn,isSingleType:Jn,localizations:Vn,query:ar,readPermissions:Vr,setQuery:Jr,slug:yi})=>{const{formatMessage:Ii}=(0,N.Z)(),ji=s()(ar,"plugins.i18n.locale",!1),{push:_n}=(0,H.k6)(),_e=Ot=>{if(Ot===ji)return;const Dt=rt.find(_r=>_r.value===Ot),{status:gn,id:Hn}=Dt;let nr={plugins:{...ar.plugins,i18n:{...ar.plugins.i18n,locale:Ot}}};if(Xt&&(nr.plugins.i18n.relatedEntityId=Xt),Jn){Jr(nr);return}if(gn==="did-not-create-locale"){_n({pathname:`/content-manager/collectionType/${yi}/create`,search:(0,be.stringify)(nr,{encode:!1})});return}_n({pathname:`/content-manager/collectionType/${yi}/${Hn}`,search:(0,be.stringify)(nr,{encode:!1})})},rt=$t(gt,Vn).filter(({status:Ot,value:Dt})=>Ot==="did-not-create-locale"?dn.find(({properties:gn})=>s()(gn,"locales",[]).includes(Dt)):Vr.find(({properties:gn})=>s()(gn,"locales",[]).includes(Dt))),vt=rt.filter(({value:Ot})=>Ot!==ji),Gt=gt.find(({code:Ot})=>Ot===ji),We=rt.find(({value:Ot})=>Ot===ji)||{value:Gt.code,label:Gt.name};return ji?h.createElement(X.x,{paddingTop:6},h.createElement(p.Z,{variant:"sigma",textColor:"neutral600"},Ii({id:(0,x.O)("plugin.name"),defaultMessage:"Internationalization"})),h.createElement(pe.i,{unsetMargin:!1,marginTop:2,marginBottom:6}),h.createElement(C.k,{direction:"column",alignItems:"stretch",gap:2},h.createElement(Ie.P,{label:Ii({id:(0,x.O)("Settings.locales.modal.locales.label")}),onChange:_e,value:We?.value},h.createElement(se.W,{value:We?.value,disabled:!0,startIcon:Sn?h.createElement(Be,{status:hn}):null},We?.label),vt.map(Ot=>h.createElement(se.W,{key:Ot.value,value:Ot.value,startIcon:Sn?h.createElement(Be,{status:Ot.status}):null},Ot.label))),h.createElement(Qe,{appLocales:gt,currentLocale:ji,localizations:Vn,readPermissions:Vr}))):null};et.defaultProps={createPermissions:[],currentEntityId:null,currentLocaleStatus:"did-not-create-locale",isSingleType:!1,localizations:[],query:{},readPermissions:[]},et.propTypes={appLocales:B().array.isRequired,createPermissions:B().array,currentEntityId:B().oneOfType([B().string,B().number]),currentLocaleStatus:B().string,hasDraftAndPublishEnabled:B().bool.isRequired,isSingleType:B().bool,localizations:B().array,query:B().object,readPermissions:B().array,setQuery:B().func.isRequired,slug:B().string.isRequired};const Kt=et,Tn=()=>{const{layout:gt,modifiedData:dn,initialData:Xt,slug:hn,isSingleType:Sn}=(0,r.Wq)(),{createPermissions:Jn,readPermissions:Vn}=ee(hn),ar=(0,R.v9)(oe),Vr=(0,H.UO)(),[{query:Jr},yi]=(0,r.Kx)(),ji=s()(Vr,"id",null),_n=ar.find(Dt=>Dt.isDefault),_e=s()(Jr,"plugins.i18n.locale",_n.code),rt=s()(gt,["pluginOptions","i18n","localized"],!1),vt=s()(gt,["options","draftAndPublish"],!1),Gt=(0,h.useMemo)(()=>Jr||{plugins:{i18n:{locale:_e}}},[Jr,_e]);if(!rt||!_e)return null;const We=s()(dn,"localizations",[]);let Ot="did-not-create-locale";return A()(Xt,"publishedAt")&&(Ot=Xt.publishedAt?"published":"draft"),h.createElement(Kt,{appLocales:ar,currentEntityId:ji,createPermissions:Jn,currentLocaleStatus:Ot,hasDraftAndPublishEnabled:vt,localizations:We,isSingleType:Sn,query:Gt,readPermissions:Vn,setQuery:yi,slug:hn})},ht=gt=>gt["content-manager_listView"].contentType.pluginOptions,Je=()=>{const gt=(0,R.v9)(ht);return s()(gt,"i18n.localized",!1)},wt=gt=>h.createElement(p.Z,{fontWeight:"semiBold",textColor:"danger500"},gt),vn=()=>{const gt=Je(),{formatMessage:dn}=(0,N.Z)();return gt?h.createElement(p.Z,{textColor:"danger500"},dn({id:(0,x.O)("Settings.list.actions.deleteAdditionalInfos"),defaultMessage:"This will delete the active locale versions <em>(from Internationalization)</em>"},{em:wt})):null},ut=gt=>h.createElement(p.Z,{fontWeight:"semiBold",textColor:"danger500"},gt),ae=()=>{const gt=Je(),{formatMessage:dn}=(0,N.Z)();return gt?h.createElement(p.Z,{textColor:"danger500"},dn({id:(0,x.O)("Settings.list.actions.publishAdditionalInfos"),defaultMessage:"This will publish the active locale versions <em>(from Internationalization)</em>"},{em:ut})):null},ne=gt=>h.createElement(p.Z,{fontWeight:"semiBold",textColor:"danger500"},gt),ye=()=>{const gt=Je(),{formatMessage:dn}=(0,N.Z)();return gt?h.createElement(p.Z,{textColor:"danger500"},dn({id:(0,x.O)("Settings.list.actions.unpublishAdditionalInfos"),defaultMessage:"This will unpublish the active locale versions <em>(from Internationalization)</em>"},{em:ne})):null};var Xe=t(47235),Ze=t(5490);const lt=({setPlugin:gt})=>{const{isLoading:dn,locales:Xt}=(0,Xe.Z)(),hn=(0,h.useRef)();return hn.current=gt,(0,h.useEffect)(()=>{!dn&&Xt.length>0&&hn.current(Ze.Z)},[dn,Xt]),null};lt.propTypes={setPlugin:B().func.isRequired};const _t=lt,Vt=gt=>s()(gt,"plugins.i18n.locale",void 0),yn=(gt,dn=[])=>{const Xt=Vt(gt);return Xt?dn.find(hn=>hn.code===Xt):dn.find(hn=>hn.isDefault)};var dr=t(4925);const Mr=()=>{const{formatMessage:gt}=(0,N.Z)(),dn=(0,R.I0)(),Xt=(0,R.v9)(oe),[{query:hn},Sn]=(0,r.Kx)(),{params:{slug:Jn}}=(0,H.$B)("/content-manager/collectionType/:slug"),Vn=Je(),{createPermissions:ar,readPermissions:Vr}=ee(Jn),Jr=yn(hn,Xt),[yi,Ii]=(0,h.useState)(Jr?.code||"");if(!Vn||!Xt||Xt.length===0)return null;const ji=Xt.filter(_e=>{const rt=ar.find(({properties:Gt})=>s()(Gt,"locales",[]).includes(_e.code)),vt=Vr.find(({properties:Gt})=>s()(Gt,"locales",[]).includes(_e.code));return rt||vt}),_n=_e=>{_e!==yi&&(Ii(_e),setTimeout(()=>{dn({type:"ContentManager/RBACManager/RESET_PERMISSIONS"}),Sn({page:1,plugins:{...hn.plugins,i18n:{locale:_e}}})}))};return h.createElement(Ie.P,{size:"S","aria-label":gt({id:(0,dr.Z)("actions.select-locale"),defaultMessage:""}),value:yi,onChange:_n},ji.map(_e=>h.createElement(se.W,{key:_e.id,id:`menu-item${_e.name||_e.code}`,value:_e.code},_e.name)))};var rr=t(39510),Cr=t(81315),Ur=t(59604);const $r=D.default.button`
  svg {
    > g,
    path {
      fill: ${({theme:gt})=>gt.colors.neutral500};
    }
  }
  &:hover {
    svg {
      > g,
      path {
        fill: ${({theme:gt})=>gt.colors.neutral600};
      }
    }
  }
  &:active {
    svg {
      > g,
      path {
        fill: ${({theme:gt})=>gt.colors.neutral400};
      }
    }
  }
`,li=D.default.div`
  display: flex;
  align-items: center;
  justify-content: center;
  height: ${32/16}rem;
  width: ${32/16}rem;
  svg {
    height: ${4/16}rem;
  }
`,ri=(gt,dn)=>s()(gt.find(({code:Xt})=>Xt===dn),"name",dn),Bt=({localizations:gt,locale:dn,id:Xt})=>{const hn=(0,R.v9)(oe),Jn=[{locale:dn},...gt].map(vt=>vt.locale),Vn=hn.find(vt=>vt.isDefault),ar=Jn.includes(Vn.code),[Vr,Jr]=(0,h.useState)(!1),yi=(0,h.useRef)(),{formatMessage:Ii}=(0,N.Z)();let ji=[];if(ar){const Gt=Jn.filter(Ot=>Ot!==Vn.code).map(Ot=>ri(hn,Ot));Gt.sort(),ji=[`${Vn.name} (default)`,...Gt]}else{const vt=Jn.map(Gt=>ri(hn,Gt));vt.sort(),ji=vt}const _n=()=>Jr(vt=>!vt),_e=`entry-${Xt}__locale`,rt=ji.join(", ");return h.createElement(C.k,{...r.UW},h.createElement(Cr.u,{label:Ii({id:(0,x.O)("CMListView.popover.display-locales.label"),defaultMessage:"Display translated locales"})},h.createElement($r,{type:"button",onClick:_n,ref:yi},h.createElement(C.k,null,h.createElement(p.Z,{style:{maxWidth:"252px",cursor:"pointer"},"data-for":_e,"data-tip":rt,textColor:"neutral800",ellipsis:!0},rt),h.createElement(li,null,h.createElement(r.fz,null),Vr&&h.createElement(Ur.J2,{onDismiss:_n,source:yi,spacing:16,centered:!0},h.createElement("ul",null,ji.map(vt=>h.createElement(X.x,{key:vt,padding:3,as:"li"},h.createElement(p.Z,null,vt))))))))))};Bt.propTypes={id:B().number.isRequired,localizations:B().arrayOf(B().shape({locale:B().string.isRequired})).isRequired,locale:B().string.isRequired};const Et=Bt,cn=({displayedHeaders:gt,layout:dn})=>s()(dn,"contentType.pluginOptions.i18n.localized",!1)?{displayedHeaders:[...gt,{key:"__locale_key__",fieldSchema:{type:"string"},metadatas:{label:"Content available in",searchable:!1,sortable:!1},name:"locales",cellFormatter:hn=>h.createElement(Et,{...hn})}],layout:dn}:{displayedHeaders:gt,layout:dn},Yn=(gt,dn)=>!!(gt&&gt.some(hn=>s()(hn,"properties.locales",[]).includes(dn))),on=gt=>{if(gt&&gt.length>0){const dn=s()(gt,[0,"properties","locales",0],null);if(dn)return dn}return null},Le=(gt,dn=[])=>{const Xt=dn.find(Vn=>Vn.isDefault);if(!Xt)return null;const hn=gt["plugin::content-manager.explorer.read"],Sn=gt["plugin::content-manager.explorer.create"];if(Yn(hn,Xt.code)||Yn(Sn,Xt.code))return Xt.code;const Jn=on(hn);return Jn||on(Sn)},Mn=(gt,dn,Xt,hn,Sn)=>gt.map(Jn=>{const Vn=Jn.to.split(`/${dn}/`)[1],ar=Xt.find(({uid:vt})=>vt===Vn);if(!s()(ar,"pluginOptions.i18n.localized",!1))return Jn;const Jr=Sn[Vn],yi=dn==="collectionType"?["plugin::content-manager.explorer.read","plugin::content-manager.explorer.create"]:["plugin::content-manager.explorer.read"],Ii=Object.keys(Jr).reduce((vt,Gt)=>yi.includes(Gt)?(vt[Gt]=Jr[Gt],vt):(vt[Gt]=[],vt),{}),ji=Le(Ii,hn);if(!ji)return{...Jn,isDisplayed:!1};const _n=Jn.search?(0,be.parse)(Jn.search):{},_e=_n?{..._n,plugins:{..._n.plugins,i18n:{locale:ji}}}:{plugins:{i18n:{locale:ji}}},rt=(0,be.stringify)(_e,{encode:!1});return{...Jn,search:rt}}),Sr=({ctLinks:gt,models:dn},Xt)=>{if(!gt.length)return{ctLinks:gt,models:dn};const hn=Xt.getState(),{locales:Sn}=hn.i18n_locales,{collectionTypesRelatedPermissions:Jn}=hn.rbacProvider;return{ctLinks:Mn(gt,"collectionType",dn,Sn,Jn),models:dn}},gi=({stLinks:gt,models:dn},Xt)=>{if(!gt.length)return{stLinks:gt,models:dn};const hn=Xt.getState(),{locales:Sn}=hn.i18n_locales,{collectionTypesRelatedPermissions:Jn}=hn.rbacProvider;return{stLinks:Mn(gt,"singleType",dn,Sn,Jn),models:dn}};var Pi=t(34675),ii=t(44850);const vr=D.default.button`
  border: none;
  padding: 0;
  background: transparent;
  svg {
    width: 12px;
    height: 12px;
    fill: ${({theme:gt})=>gt.colors.neutral500};
    path {
      fill: ${({theme:gt})=>gt.colors.neutral500};
    }
  }
`,at=({title:gt,icon:dn})=>{const{formatMessage:Xt}=(0,N.Z)();return h.createElement(Cr.u,{description:Xt(gt)},h.createElement(vr,{"aria-label":Xt(gt),type:"button"},dn))};at.propTypes={icon:B().element.isRequired,title:B().shape({id:B().string.isRequired,defaultMessage:B().string.isRequired}).isRequired};const it=at,Re=(gt,dn)=>({queryInfos:{...gt.queryInfos,defaultParams:{...gt.queryInfos.defaultParams,locale:dn},paramsToKeep:["plugins.i18n.locale"]}}),ke=gt=>gt?.fieldSchema?.type==="relation"&&gt?.targetModelPluginOptions?.i18n?.localized,Pe=(gt,dn)=>gt.map(Xt=>Xt.reduce((Sn,Jn)=>{const Vn=Jn?.fieldSchema?.type??null,ar=Jn?.fieldSchema?.pluginOptions?.i18n?.localized??["uid","relation"].includes(Vn),Vr={title:{id:ar?(0,x.O)("Field.localized"):(0,x.O)("Field.not-localized"),defaultMessage:ar?"This value is unique for the selected locale":"This value is common to all locales"},icon:ar?h.createElement(Pi.Z,{"aria-hidden":!0}):h.createElement(ii.Z,{"aria-hidden":!0})},Jr=h.createElement(it,{...Vr});return ke(Jn)?(Sn.push({...Jn,labelAction:Jr,...Re(Jn,dn)}),Sn):(Sn.push({...Jn,labelAction:Jr}),Sn)},[])),Te=(gt,dn)=>Object.keys(gt).reduce((Xt,hn)=>{const Sn=gt[hn],Jn=Mt(Sn.layouts.edit,dn);return Xt[hn]={...Sn,layouts:{...Sn.layouts,edit:Jn}},Xt},{}),Mt=(gt,dn)=>gt.map(Xt=>Xt.reduce((Sn,Jn)=>ke(Jn)?(Sn.push({...Jn,...Re(Jn,dn)}),Sn):(Sn.push(Jn),Sn),[])),qt=gt=>["contentType",...gt],Qn=({layout:gt,query:dn})=>{if(!s()(gt,qt(["pluginOptions","i18n","localized"]),!1))return{layout:gt,query:dn};const hn=s()(dn,["plugins","i18n","locale"],null);if(!hn)return{layout:gt,query:dn};const Sn=qt(["layouts","edit"]),Jn=s()(gt,Sn),Vn=Pe(Jn,hn),ar={...gt.contentType.layouts,edit:Vn},Vr=Te(gt.components,hn);return{query:dn,layout:{...gt,contentType:{...gt.contentType,layouts:ar},components:Vr}}};var ur=t(18172),On=t(36968),ct=t.n(On),Zt=t(70437);const Cn={isLoading:!0,locales:[]},Pn=(0,ur.ZP)((gt=Cn,dn={})=>{switch(dn.type){case Zt.I4:{gt.isLoading=!1,gt.locales=dn.locales;break}case Zt.xz:{dn.newLocale.isDefault&&gt.locales.forEach(Xt=>{Xt.isDefault=!1}),gt.locales.push(dn.newLocale);break}case Zt.HC:{const Xt=gt.locales.filter(hn=>hn.id!==dn.id);ct()(gt,"locales",Xt);break}case Zt.OT:{dn.editedLocale.isDefault&&gt.locales.forEach(hn=>{hn.isDefault=!1});const Xt=gt.locales.findIndex(hn=>hn.id===dn.editedLocale.id);ct()(gt.locales,Xt,dn.editedLocale);break}default:return gt}return gt}),Rt={[`${Ze.Z}_locales`]:Pn};var Ke=t(50361),Oe=t.n(Ke),Ge=t(82492),Ft=t.n(Ge);const wn=()=>({getState:gt,dispatch:dn})=>Xt=>hn=>{if(hn.type!=="ContentManager/CrudReducer/INIT_FORM"||!hn.rawQuery)return Xt(hn);const Sn=hn.rawQuery.substring(1),Jn=(0,be.parse)(Sn),Vn=s()(Jn,"plugins.i18n.relatedEntityId",null),ar=s()(Jn,"plugins.i18n.locale",null),Vr=hn.isSingleType;if(!Vn&&!Vr)return Xt(hn);const Jr=gt(),yi=Jr["content-manager_editViewCrudReducer"],Ii=Jr["content-manager_editViewLayoutManager"],{contentTypeDataStructure:ji}=yi,{currentLayout:_n}=Ii;return(async()=>{dn({type:"ContentManager/CrudReducer/GET_DATA"});const rt=Oe()(ji);try{const{data:vt}=await(0,r.tg)().post(`/${Ze.Z}/content-manager/actions/get-non-localized-fields`,{model:_n.contentType.uid,id:Vn,locale:ar}),{nonLocalizedFields:Gt,localizations:We}=vt,Ot=Ft()(rt,Gt),Dt=["createdBy","updatedBy","publishedAt","id","_id","updatedAt","createdAt"],gn=(0,r.w6)(Ot,_n.contentType,_n.components,Dt);gn.localizations=We,hn.data=(0,r.dU)(gn,_n.contentType,_n.components)}catch{}return Xt(hn)})()},ir=()=>({getState:gt})=>dn=>Xt=>{const hn=()=>{try{const Sn=gt();if(s()(Sn,["content-type-builder_dataManagerProvider","modifiedData","contentType","schema","pluginOptions","i18n","localized"],!1)){const Vn=Xt.options?{...Xt.options.pluginOptions,i18n:{localized:!0}}:{i18n:{localized:!0}};return dn({...Xt,options:{pluginOptions:Vn}})}return dn(Xt)}catch{return dn(Xt)}};return Xt.type==="ContentTypeBuilder/FormModal/SET_ATTRIBUTE_DATA_SCHEMA"&&Xt.forTarget==="contentType"&&!["relation","component"].includes(Xt.attributeType)&&!Xt.isEditing||Xt.type==="ContentTypeBuilder/FormModal/SET_CUSTOM_FIELD_DATA_SCHEMA"&&Xt.forTarget==="contentType"&&!Xt.isEditing||(Xt.type==="ContentTypeBuilder/FormModal/RESET_PROPS_AND_SET_FORM_FOR_ADDING_AN_EXISTING_COMPO"||Xt.type==="ContentTypeBuilder/FormModal/RESET_PROPS_AND_SAVE_CURRENT_DATA")&&Xt.forTarget==="contentType"?hn():dn(Xt)},fr=()=>()=>gt=>dn=>{if(dn.type==="ContentTypeBuilder/FormModal/SET_DATA_TO_EDIT"&&dn.modalType==="contentType"){const Xt={localized:!1},hn=dn.data.pluginOptions?{...dn.data.pluginOptions,i18n:Xt}:{i18n:Xt},Sn={...dn.data,pluginOptions:hn};if(dn.actionType==="create")return gt({...dn,data:Sn});if(!dn.data.pluginOptions?.i18n?.localized)return gt({...dn,data:Sn})}return gt(dn)},Er=gt=>dn=>s()(dn,"properties.locales",[]).indexOf(gt)!==-1,Fi=[wn,fr,ir,()=>()=>gt=>dn=>{if(dn.type!=="ContentManager/RBACManager/SET_PERMISSIONS")return gt(dn);const Xt=s()(dn,"__meta__.containerName",null);if(!["editView","listView"].includes(Xt))return gt(dn);const hn=s()(dn,"__meta__.plugins.i18n.locale",null);if(!hn)return gt(dn);const Sn=dn.permissions,Jn=Object.keys(Sn).reduce((Vn,ar)=>{const Jr=Sn[ar].filter(Er(hn));return Jr.length&&(Vn[ar]=Jr),Vn},{});return gt({...dn,permissions:Jn})}],Vi=["biginteger","boolean","component","date","datetime","decimal","dynamiczone","email","enumeration","float","integer","json","media","number","password","richtext","blocks","string","text","time"];var Bn=t(57557),nt=t.n(Bn);const ve=["pluginOptions","i18n","localized"],he=gt=>Object.keys(gt).reduce((dn,Xt)=>{const hn=gt[Xt];if(Vi.includes(hn.type)){const Sn={localized:!0},Jn=hn.pluginOptions?{...hn.pluginOptions,i18n:Sn}:{i18n:Sn};return dn[Xt]={...hn,pluginOptions:Jn},dn}return dn[Xt]=hn,dn},{}),Ae=gt=>Object.keys(gt).reduce((dn,Xt)=>(dn[Xt]=nt()(gt[Xt],"pluginOptions.i18n"),dn),{}),St=(gt,dn)=>{if(!A()(gt,ve))return gt;const Xt=s()(gt,ve,!1),hn=s()(dn,["schema",...ve],!1);if(Xt&&hn)return gt;if(Xt){const Sn=he(gt.attributes);return{...gt,attributes:Sn}}if(!Xt){const Sn=nt()(gt.pluginOptions,"i18n"),Jn=Ae(gt.attributes);return{...gt,pluginOptions:Sn,attributes:Jn}}return gt},kt=c.s1.u2,Jt={register(gt){gt.addMiddlewares(Fi),gt.addReducers(Rt),gt.registerPlugin({id:Ze.Z,initializer:_t,isReady:!1,name:kt})},bootstrap(gt){gt.registerHook("Admin/CM/pages/App/mutate-collection-types-links",Sr),gt.registerHook("Admin/CM/pages/App/mutate-single-types-links",gi),gt.registerHook("Admin/CM/pages/ListView/inject-column-in-table",cn),gt.registerHook("Admin/CM/pages/EditView/mutate-edit-view-layout",Qn),gt.addSettingsLink("global",{intlLabel:{id:(0,x.O)("plugin.name"),defaultMessage:"Internationalization"},id:"internationalization",to:"/settings/internationalization",async Component(){return await t.e(3552).then(t.bind(t,31701))},permissions:rr._.accessMain}),gt.injectContentManagerComponent("editView","informations",{name:"i18n-locale-filter-edit-view",Component:Tn}),gt.injectContentManagerComponent("listView","actions",{name:"i18n-locale-filter",Component:Mr}),gt.injectContentManagerComponent("listView","deleteModalAdditionalInfos",{name:"i18n-delete-bullets-in-modal",Component:vn}),gt.injectContentManagerComponent("listView","publishModalAdditionalInfos",{name:"i18n-publish-bullets-in-modal",Component:ae}),gt.injectContentManagerComponent("listView","unpublishModalAdditionalInfos",{name:"i18n-unpublish-bullets-in-modal",Component:ye});const dn=gt.getPlugin("content-type-builder");if(dn){const Xt=dn.apis.forms;Xt.addContentTypeSchemaMutation(St),Xt.components.add({id:"checkboxConfirmation",component:b}),Xt.extendContentType({validator:()=>({i18n:a.Ry().shape({localized:a.Xg()})}),form:{advanced(){return[{name:"pluginOptions.i18n.localized",description:{id:(0,x.O)("plugin.schema.i18n.localized.description-content-type"),defaultMessage:"Allows translating an entry into different languages"},type:"checkboxConfirmation",intlLabel:{id:(0,x.O)("plugin.schema.i18n.localized.label-content-type"),defaultMessage:"Localization"}}]}}}),Xt.extendFields(Vi,{validator:hn=>({i18n:a.Ry().shape({localized:a.Xg().test({name:"ensure-unique-localization",message:(0,x.O)("plugin.schema.i18n.ensure-unique-localization"),test(Sn){return Sn===void 0||Sn?!0:!(s()(hn,["3","modifiedData","unique"],null)&&!Sn)}})})}),form:{advanced({contentTypeSchema:hn,forTarget:Sn,type:Jn,step:Vn}){return Sn!=="contentType"?[]:s()(hn,["schema","pluginOptions","i18n","localized"],!1)?Jn==="component"&&Vn==="1"?[]:[{name:"pluginOptions.i18n.localized",description:{id:(0,x.O)("plugin.schema.i18n.localized.description-field"),defaultMessage:"The field can have different values in each locale"},type:"checkbox",intlLabel:{id:(0,x.O)("plugin.schema.i18n.localized.label-field"),defaultMessage:"Enable localization for this field"}}]:[]}}})}},async registerTrads({locales:gt}){const dn=await Promise.all(gt.map(Xt=>t(18570)(`./${Xt}.json`).then(({default:hn})=>({data:(0,r.jV)(hn,Ze.Z),locale:Xt})).catch(()=>({data:{},locale:Xt}))));return Promise.resolve(dn)}}},5490:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(21381);const s=r.u2.replace(/^@strapi\/plugin-/i,"")},4925:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(5490);const s=a=>`${r.Z}.${a}`},3804:(Z,v,t)=>{"use strict";t.d(v,{O:()=>r.Z});var r=t(4925)},18643:(Z,v,t)=>{"use strict";Z.exports=t(85411).default},97585:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(30972);const s={get:async()=>await(0,r.WY)("/seo/settings",{method:"GET"}),set:async a=>await(0,r.WY)("/seo/settings",{method:"POST",body:a})}},27589:(Z,v,t)=>{"use strict";t.d(v,{w:()=>n});var r=t(67294);const n=()=>r.createElement("svg",{width:"159",height:"88",viewBox:"0 0 159 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M134.933 17.417C137.768 17.417 140.067 19.7153 140.067 22.5503C140.067 25.3854 137.768 27.6837 134.933 27.6837H105.6C108.435 27.6837 110.733 29.9819 110.733 32.817C110.733 35.6521 108.435 37.9503 105.6 37.9503H121.733C124.568 37.9503 126.867 40.2486 126.867 43.0837C126.867 45.9187 124.568 48.217 121.733 48.217H114.272C110.698 48.217 107.8 50.5153 107.8 53.3503C107.8 55.2404 109.267 56.9515 112.2 58.4837C115.035 58.4837 117.333 60.7819 117.333 63.617C117.333 66.4521 115.035 68.7503 112.2 68.7503H51.3333C48.4982 68.7503 46.2 66.4521 46.2 63.617C46.2 60.7819 48.4982 58.4837 51.3333 58.4837H22.7333C19.8982 58.4837 17.6 56.1854 17.6 53.3503C17.6 50.5153 19.8982 48.217 22.7333 48.217H52.0666C54.9017 48.217 57.2 45.9187 57.2 43.0837C57.2 40.2486 54.9017 37.9503 52.0666 37.9503H33.7333C30.8982 37.9503 28.6 35.6521 28.6 32.817C28.6 29.9819 30.8982 27.6837 33.7333 27.6837H63.0666C60.2316 27.6837 57.9333 25.3854 57.9333 22.5503C57.9333 19.7153 60.2316 17.417 63.0666 17.417H134.933ZM134.933 37.9503C137.768 37.9503 140.067 40.2486 140.067 43.0837C140.067 45.9187 137.768 48.217 134.933 48.217C132.098 48.217 129.8 45.9187 129.8 43.0837C129.8 40.2486 132.098 37.9503 134.933 37.9503Z",fill:"#DBDBFA"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M95.826 16.6834L102.647 66.4348L103.26 71.4261C103.458 73.034 102.314 74.4976 100.706 74.695L57.7621 79.9679C56.1542 80.1653 54.6906 79.0219 54.4932 77.4139L47.8816 23.5671C47.7829 22.7631 48.3546 22.0313 49.1586 21.9326C49.1637 21.932 49.1688 21.9313 49.1739 21.9307L52.7367 21.5311L95.826 16.6834ZM55.6176 21.208L58.9814 20.8306Z",fill:"white"}),r.createElement("path",{d:"M55.6176 21.208L58.9814 20.8306M95.826 16.6834L102.647 66.4348L103.26 71.4261C103.458 73.034 102.314 74.4976 100.706 74.695L57.7621 79.9679C56.1542 80.1653 54.6906 79.0219 54.4932 77.4139L47.8816 23.5671C47.7829 22.7631 48.3546 22.0313 49.1586 21.9326C49.1637 21.932 49.1688 21.9313 49.1739 21.9307L52.7367 21.5311L95.826 16.6834Z",stroke:"#7E7BF6",strokeWidth:"2.5"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M93.9695 19.8144L100.144 64.9025L100.699 69.4258C100.878 70.8831 99.8559 72.2077 98.416 72.3845L59.9585 77.1065C58.5185 77.2833 57.2062 76.2453 57.0272 74.7881L51.0506 26.112C50.9519 25.308 51.5236 24.5762 52.3276 24.4775L57.0851 23.8934",fill:"#F0F0FF"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M97.701 7.33301H64.2927C63.7358 7.33301 63.2316 7.55873 62.8667 7.92368C62.5017 8.28862 62.276 8.79279 62.276 9.34967V65.083C62.276 65.6399 62.5017 66.1441 62.8667 66.509C63.2316 66.874 63.7358 67.0997 64.2927 67.0997H107.559C108.116 67.0997 108.62 66.874 108.985 66.509C109.35 66.1441 109.576 65.6399 109.576 65.083V19.202C109.576 18.6669 109.363 18.1537 108.985 17.7755L99.1265 7.92324C98.7484 7.54531 98.2356 7.33301 97.701 7.33301Z",fill:"white",stroke:"#7F7CFA",strokeWidth:"2.5"}),r.createElement("path",{d:"M98.026 8.17871V16.6833C98.026 17.8983 99.011 18.8833 100.226 18.8833H106.044",stroke:"#807EFA",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M70.1594 56.2838H89.2261M70.1594 18.8838H89.2261H70.1594ZM70.1594 27.6838H101.693H70.1594ZM70.1594 37.2171H101.693H70.1594ZM70.1594 46.7505H101.693H70.1594Z",stroke:"#817FFA",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"}))},87398:(Z,v,t)=>{"use strict";t.d(v,{default:()=>Gt});var r=t(30972),n=t(81746),s=t(53603),a=t.n(s),c=t(67294),h=t(45697),p=t.n(h);const d=({setPlugin:We})=>{const Ot=(0,c.useRef)();return Ot.current=We,(0,c.useEffect)(()=>{Ot.current(a())},[]),null};d.propTypes={setPlugin:p().func.isRequired};const k=d;var M=t(54285),C=t.n(M);const I=()=>c.createElement(C(),null);var F=t(32141),U=t(93289),B=t(35163),N=t(50423),D=t(84704),x=t(38546),T=t(91874),u=t(66342),b=t(27589),E=t(96486),A=t.n(E),R=t(86896),H=t(29759),z=t(33764),V=t(35314),$=t(42919),ee=t(24581),q=t.n(ee),oe=t(32767),X=t(20338),pe=t(78016),Ie=t.n(pe),se=t(46449);const fe=({title:We,status:Ot,component:Dt,label:gn})=>{const[Hn,nr]=(0,c.useState)(!1),_r=(0,se.default)(oe.AccordionToggle)`
    z-index: auto;
  `;return c.createElement(oe.AccordionGroup,null,c.createElement(oe.Accordion,{expanded:Hn,toggle:()=>nr(Nr=>!Nr),id:"acc-1",size:"S"},c.createElement(_r,{title:We,togglePosition:"left",startIcon:c.createElement(V.Icon,{"aria-hidden":!0,colors:Nr=>({rect:{fill:_.get(Nr,`colors.${Ot?.color}600`)}}),as:q()}),action:c.createElement(X.IconButton,{label:gn,icon:c.createElement(Ie(),null)})}),c.createElement(oe.AccordionContent,null,c.createElement(U.Box,{paddingLeft:4,paddingTop:4},c.createElement(D.Typography,{variant:"omega"},Ot?.message))),Dt&&c.createElement(oe.AccordionContent,null,Dt)))},ue=[{name:"noindex",message:"Search engines will index this page."},{name:"nofollow",message:"Search engines will follow links from this page"},{name:"noarchive",message:"Search engines will cache your page."},{name:"nosnippet",message:"Search engines will show a snippet of this page in search results."},{name:"noimageindex",message:"Google will index the images on this page."},{name:"nositelinkssearchbox",message:"Google will show the search box in search results."}],Me=({metaRobots:We,checks:Ot})=>{const{formatMessage:Dt}=(0,R.Z)(),gn=(0,c.useContext)(Ii);let Hn={message:Dt({id:(0,H.O)("SEOChecks.metaRobotsCheck.default"),defaultMessage:"Robot meta tags have been found!"}),color:"success"};const[nr,_r]=(0,c.useState)([]);return(0,c.useEffect)(()=>{A().isNull(We)||A().isEmpty(We)?Hn={message:Dt({id:(0,H.O)("SEOChecks.metaRobotsCheck.not-found"),defaultMessage:"No Robot meta tags have been found."}),color:"success"}:_r(We.split(",")),A().isEqual(Hn,Ot.metaRobots)||gn({type:"UPDATE_PONCTUAL",value:{...Hn,entity:"metaRobots"}})},[]),c.createElement(fe,{title:Dt({id:(0,H.O)("SEOModal.summary-title.meta-robots"),defaultMessage:"Meta Robots"}),status:Ot.metaRobots,label:Dt({id:(0,H.O)("SEOChecks.metaRobotsCheck.label"),defaultMessage:"The robots meta tag informs search engines which pages on your site should be indexed and more."}),component:c.createElement(U.Box,{padding:2},ue.map((Nr,Qr)=>c.createElement($.Stack,{spacing:2,key:Qr,horizontal:!0,background:"neutral0",padding:2},c.createElement(V.Icon,{"aria-hidden":!0,colors:ki=>({rect:{fill:A().get(ki,`colors.${nr.find(Si=>Si.trim()===Nr.name)?"warning":"success"}600`)}}),as:q()}),c.createElement(D.Typography,null,nr.find(ki=>ki.trim()===Nr.name)?`${Nr.name} is activated:
          ${Nr.message.replace("will","will not")}`:`${Nr.name} is disabled: ${Nr.message}`))),c.createElement($.Stack,{spacing:2,paddingTop:4,paddingLeft:2,paddingRight:2,paddingBottom:4},c.createElement(z.q,{variant:"secondary",showBullet:!1},c.createElement(D.Typography,null,c.createElement(D.Typography,{fontWeight:"bold"},"Notice: "),"In order to not index your entry and no follow, your MetaRobots field should contain the following:",c.createElement(D.Typography,{fontWeight:"bold"}," noindex, nofollow "),'. The rest should be handled by your front-end code logic. "If the field contains noindex, then you need to create the corresponding meta tag etc..."'))))})},Ne=({wordCount:We,checks:Ot})=>{const{formatMessage:Dt}=(0,R.Z)(),gn=(0,c.useContext)(Ii);let Hn={message:Dt({id:(0,H.O)("SEOChecks.wordCountCheck.default"),defaultMessage:"You have more than 300 words. The word counter is not a direct ranking factor. But your content should be as high quality as possible, with relevant and unique information. To meet these conditions, your content requires a minimum of paragraphs, and therefore of words."}),color:"success"};return(0,c.useEffect)(()=>{if(A().isNull(We)){Hn={message:Dt({id:(0,H.O)("SEOChecks.wordCountCheck.not-found"),defaultMessage:"No Richtext content have been found."}),color:"danger"};return}else We<300&&(Hn={message:Dt({id:(0,H.O)("SEOChecks.wordCountCheck.300"),defaultMessage:"Your 1st level Richtext contents have less than 300 words."}),color:"danger"});A().isEqual(Hn,Ot.wordCount)||gn({type:"UPDATE_PONCTUAL",value:{...Hn,entity:"wordCount"}})},[]),c.createElement(fe,{title:Dt({id:(0,H.O)("SEOModal.summary-title.word-counter"),defaultMessage:"Word Counter"}),status:Ot.wordCount,label:Dt({id:(0,H.O)("SEOChecks.wordCountCheck.label"),defaultMessage:"Your content should be as high quality as possible, with relevant and unique information. You entry requires a minimum of paragraphs, and therefore of words."}),component:A().isNumber(We)&&c.createElement(U.Box,{padding:4},c.createElement(D.Typography,{variant:"omega",fontWeight:"semiBold"},Dt({id:(0,H.O)("SEOChecks.wordCountCheck.words"),defaultMessage:"Words:"})," ",We))})};var Ye=t(84623);const Ct=({metaTitle:We,checks:Ot})=>{const{formatMessage:Dt}=(0,R.Z)(),gn=(0,c.useContext)(Ii),Hn=60;let nr={message:Dt({id:(0,H.O)("SEOChecks.metaTitleCheck.default"),defaultMessage:"A Meta Title has been found!"}),color:"success"};return(0,c.useEffect)(()=>{A().isNull(We)||A().isEmpty(We)?nr={message:Dt({id:(0,H.O)("SEOChecks.metaTitleCheck.not-found"),defaultMessage:"No Meta Description has been found."}),color:"danger"}:We.length>Hn&&(nr={message:Dt({id:(0,H.O)("Title-settings.metaTitle-too-long"),defaultMessage:"Meta Title is too long"}),color:"warning"}),A().isEqual(nr,Ot.metaTitle)||gn({type:"UPDATE_PONCTUAL",value:{...nr,entity:"metaTitle"}})},[]),c.createElement(c.Fragment,null,c.createElement(fe,{title:Dt({id:(0,H.O)("SEOModal.summary-title.meta-title"),defaultMessage:"Meta title"}),status:Ot.metaTitle,label:Dt({id:(0,H.O)("Title-settings.metaTitle-tooltip"),defaultMessage:`The title tag is the clickable title of a webpage that appears with the result on the SERP (search engine page results page).
 You should aim to make your SEO titles around 60 characters long. Clear title tags will go a long way towards making your website easy to read and understand.`}),component:We&&c.createElement(U.Box,{padding:4,background:"neutral100",marginTop:4},c.createElement(D.Typography,{variant:"omega",fontWeight:"semiBold"},We),c.createElement(U.Box,{paddingTop:2},c.createElement($.Stack,{horizontal:!0,spacing:2},c.createElement(Ye.k,{value:We.length*100/Hn>100?100:We.length*100/Hn}),c.createElement(D.Typography,{variant:"pi",padding:2},"(",We.length,"/",Hn,")"))))}))};var ln=t(53409),$e=t(86931);const bt=({metaSocial:We,checks:Ot})=>{const{formatMessage:Dt}=(0,R.Z)(),gn=(0,c.useContext)(Ii);let Hn={message:"",color:""};return(0,c.useEffect)(()=>{if(A().isNull(We)||We===void 0)Hn={message:Dt({id:(0,H.O)("SEOChecks.metaSocialCheck.not-found"),defaultMessage:"No Meta Social tags have been found."}),color:"danger"};else{const nr=We.filter(_r=>!A().isNull(_r.id)).length;nr===0?Hn={message:Dt({id:(0,H.O)("SEOChecks.metaSocialCheck.not-found"),defaultMessage:"No Meta Social tags have been found."}),color:"danger"}:nr==1?Hn={message:Dt({id:(0,H.O)("SEOChecks.metaSocialCheck.one"),defaultMessage:"Only one Meta Social tag is being used."}),color:"warning"}:Hn={message:`${nr} ${Dt({id:(0,H.O)("SEOChecks.metaSocialCheck.configured"),defaultMessage:" Meta Social tags are configured"})}`,color:"success"}}A().isEqual(Hn,Ot.metaSocial)||gn({type:"UPDATE_PONCTUAL",value:{...Hn,entity:"metaSocial"}})},[]),c.createElement(fe,{title:Dt({id:(0,H.O)("SEOModal.summary-title.meta-social"),defaultMessage:"Meta Social Tags"}),status:Ot.metaSocial,label:Dt({id:(0,H.O)("SEOChecks.metaSocialCheck.label"),defaultMessage:"Meta social tags allow you to manage the title, description & image of your posts."}),component:We&&!A().isEmpty(We)&&c.createElement(U.Box,{padding:2},c.createElement($e.Flex,null,We.map((nr,_r)=>c.createElement(U.Box,{padding:2,key:_r},c.createElement(ln.Badge,null,nr.socialNetwork)))))})},mn=({canonicalUrl:We,checks:Ot})=>{const{formatMessage:Dt}=(0,R.Z)(),gn=(0,c.useContext)(Ii);let Hn={message:Dt({id:(0,H.O)("SEOChecks.canonicalUrlCheck.found"),defaultMessage:"A canonical URL has been found."}),color:"success"};return(0,c.useEffect)(()=>{A().isNull(We)&&(Hn={message:Dt({id:(0,H.O)("SEOChecks.canonicalUrlCheck.default"),defaultMessage:"No Canonical URL has been found."}),color:"warning"}),A().isEqual(Hn,Ot.canonicalUrl)||gn({type:"UPDATE_PONCTUAL",value:{...Hn,entity:"canonicalUrl"}})},[]),c.createElement(fe,{title:Dt({id:(0,H.O)("SEOModal.summary-title.canonical-url"),defaultMessage:"Canonical URL"}),status:Ot.canonicalUrl,label:Dt({id:(0,H.O)("SEOChecks.canonicalUrlCheck.label"),defaultMessage:"This will check if you have a canonical URL."}),component:c.createElement(U.Box,{padding:We?4:2},We&&c.createElement(D.Typography,{variant:"omega",fontWeight:"bold"},We))})};var un=t(84314),Be=t(49474),je=t(83918),$t=t(11699),et=t(44941),Kt=t(19013);function kn(We,Ot){if(We==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var Dt in Ot)Object.prototype.hasOwnProperty.call(Ot,Dt)&&(We[Dt]=Ot[Dt]);return We}function Tn(We){return kn({},We)}var ht=t(24262),ot=t(13882),Je=1440,wt=2520,ft=43200,vn=86400;function ut(We,Ot,Dt){var gn,Hn;(0,ot.Z)(2,arguments);var nr=(0,un.j)(),_r=(gn=(Hn=Dt?.locale)!==null&&Hn!==void 0?Hn:nr.locale)!==null&&gn!==void 0?gn:et.Z;if(!_r.formatDistance)throw new RangeError("locale must contain formatDistance property");var Nr=(0,Be.Z)(We,Ot);if(isNaN(Nr))throw new RangeError("Invalid time value");var Qr=kn(Tn(Dt),{addSuffix:Boolean(Dt?.addSuffix),comparison:Nr}),ki,Si;Nr>0?(ki=(0,Kt.Z)(Ot),Si=(0,Kt.Z)(We)):(ki=(0,Kt.Z)(We),Si=(0,Kt.Z)(Ot));var Ei=(0,$t.Z)(Si,ki),oo=((0,ht.Z)(Si)-(0,ht.Z)(ki))/1e3,zi=Math.round((Ei-oo)/60),Xi;if(zi<2)return Dt!=null&&Dt.includeSeconds?Ei<5?_r.formatDistance("lessThanXSeconds",5,Qr):Ei<10?_r.formatDistance("lessThanXSeconds",10,Qr):Ei<20?_r.formatDistance("lessThanXSeconds",20,Qr):Ei<40?_r.formatDistance("halfAMinute",0,Qr):Ei<60?_r.formatDistance("lessThanXMinutes",1,Qr):_r.formatDistance("xMinutes",1,Qr):zi===0?_r.formatDistance("lessThanXMinutes",1,Qr):_r.formatDistance("xMinutes",zi,Qr);if(zi<45)return _r.formatDistance("xMinutes",zi,Qr);if(zi<90)return _r.formatDistance("aboutXHours",1,Qr);if(zi<Je){var uo=Math.round(zi/60);return _r.formatDistance("aboutXHours",uo,Qr)}else{if(zi<wt)return _r.formatDistance("xDays",1,Qr);if(zi<ft){var qi=Math.round(zi/Je);return _r.formatDistance("xDays",qi,Qr)}else if(zi<vn)return Xi=Math.round(zi/ft),_r.formatDistance("aboutXMonths",Xi,Qr)}if(Xi=(0,je.Z)(Si,ki),Xi<12){var Ui=Math.round(zi/ft);return _r.formatDistance("xMonths",Ui,Qr)}else{var Vo=Xi%12,Cs=Math.floor(Xi/12);return Vo<3?_r.formatDistance("aboutXYears",Cs,Qr):Vo<9?_r.formatDistance("overXYears",Cs,Qr):_r.formatDistance("almostXYears",Cs+1,Qr)}}const ae=({updatedAt:We,checks:Ot})=>{const{formatMessage:Dt}=(0,R.Z)(),gn=(0,c.useContext)(Ii);let Hn={message:Dt({id:(0,H.O)("SSEOChecks.lastUpdatedAtCheck.default"),defaultMessage:"This content was modified over a year ago! Search engines love fresh content."}),color:"danger"};return(0,c.useEffect)(()=>{if(A().isNull(We))Hn={message:Dt({id:(0,H.O)("SEOChecks.lastUpdatedAtCheck.save-content"),defaultMessage:"You must save this entry first."}),color:"warning"};else{const nr=Date.parse(new Date(new Date().setFullYear(new Date().getFullYear()-1)));Date.parse(We)>=nr&&(Hn={message:Dt({id:(0,H.O)("SEOChecks.lastUpdatedAtCheck.success"),defaultMessage:"Awesome! This content was last modified in less than an year ago!"}),color:"success"})}A().isEqual(Hn,Ot.lastUpdatedAt)||gn({type:"UPDATE_PONCTUAL",value:{...Hn,entity:"lastUpdatedAt"}})},[]),c.createElement(fe,{title:Dt({id:(0,H.O)("SEOModal.summary-title.last-updated-at"),defaultMessage:"Last updated at"}),label:Dt({id:(0,H.O)("SEOChecks.lastUpdatedAtCheck.label"),defaultMessage:"Search engines love fresh content. This will check if your entry was last modified in less than an year ago."}),status:Ot.lastUpdatedAt,component:We&&c.createElement(U.Box,{padding:4},c.createElement(D.Typography,{variant:"omega"},Dt({id:(0,H.O)('SEOChecks.lastUpdatedAtCheck.last"'),defaultMessage:"Last updated at:"})," ",c.createElement(D.Typography,{variant:"omega",fontWeight:"bold"}," ",ut(new Date(We),new Date,{addSuffix:!0}))))})},ge=({keywordsDensity:We,checks:Ot})=>{const{formatMessage:Dt}=(0,R.Z)(),gn=(0,c.useContext)(Ii);let Hn={message:Dt({id:(0,H.O)("SEOChecks.keywordsDensityCheck.default"),defaultMessage:"Every keywords are used more than 2 times."}),color:"success"};return(0,c.useEffect)(()=>{A().isEmpty(We)?Hn={message:Dt({id:(0,H.O)("SEOChecks.keywordsDensityCheck.no-keywords"),defaultMessage:"No keywords were found in your SEO component."}),color:"danger"}:Object.keys(We).map(nr=>{A().get(We[nr],"count",0)===0?Hn={message:Dt({id:(0,H.O)("SEOChecks.keywordsDensityCheck.one-not-used"),defaultMessage:"One keyword is not being used in your content."}),color:"danger"}:A().get(We[nr],"count",0)<=1&&(Hn={message:Dt({id:(0,H.O)("SEOChecks.keywordsDensityCheck.one-used-once"),defaultMessage:"One keyword is only used once in your content."}),color:"warning"})}),A().isEqual(Hn,Ot.keywordsDensity)||gn({type:"UPDATE_PONCTUAL",value:{...Hn,entity:"keywordsDensity"}})},[]),c.createElement(fe,{title:Dt({id:(0,H.O)("SEOModal.summary-title.word-densisty"),defaultMessage:"Keyword Density"}),status:Ot.keywordsDensity,label:Dt({id:(0,H.O)("SEOChecks.keywordsDensityCheck.label"),defaultMessage:"Define keywords you want to rank for in your SEO component. This will analyse the density of your keywords in your 1st level richtext editors."}),component:We&&!A().isEmpty(We)&&c.createElement(U.Box,{padding:2},c.createElement($e.Flex,{wrap:"wrap"},Object.keys(We).map(nr=>c.createElement(U.Box,{padding:2,key:nr},c.createElement(ln.Badge,null,`${nr}:
                      ${A().get(We[nr],"count",0).toString()}`)))))})},Xe=({structuredData:We,checks:Ot})=>{const{formatMessage:Dt}=(0,R.Z)(),gn=(0,c.useContext)(Ii);let Hn={message:Dt({id:(0,H.O)("SEOChecks.structuredDataCheck.default"),defaultMessage:"A Structured Data json has been found! However we can validate the accuracy of its content."}),color:"success"};return(0,c.useEffect)(()=>{A().isEmpty(We)&&(Hn={message:Dt({id:(0,H.O)("SEOChecks.structuredDataCheck.not-found"),defaultMessage:"No Structured Data json has been found."}),color:"warning"}),A().isEqual(Hn,Ot.structuredData)||gn({type:"UPDATE_PONCTUAL",value:{...Hn,entity:"structuredData"}})},[]),c.createElement(fe,{title:Dt({id:(0,H.O)("SEOModal.summary-title.structured-data"),defaultMessage:"JSON Structured Data"}),status:Ot.structuredData,label:Dt({id:(0,H.O)("SEOChecks.structuredDataCheck.label"),defaultMessage:"Structured data is a standardized format for providing information about a page and classifying the page content."}),component:c.createElement(U.Box,{padding:2})})},lt=({metaDescription:We,checks:Ot})=>{const{formatMessage:Dt}=(0,R.Z)(),gn=(0,c.useContext)(Ii),Hn=160,nr=50;let _r={message:Dt({id:(0,H.O)("SEOChecks.metaDescriptionCheck.default"),defaultMessage:"A Meta Description has been found!"}),color:"success"};return(0,c.useEffect)(()=>{A().isNull(We)||A().isEmpty(We)?_r={message:Dt({id:(0,H.O)("SEOChecks.metaDescriptionCheck.not-found"),defaultMessage:"No Meta Description has been found."}),color:"danger"}:We.length>Hn?_r={message:Dt({id:(0,H.O)("Title-settings.metaDescription-too-long"),defaultMessage:"Meta Description is too long"}),color:"warning"}:We.length<nr&&(_r={message:Dt({id:(0,H.O)("Title-settings.metaDescription-too-short"),defaultMessage:"Meta Description is too short"}),color:"warning"}),A().isEqual(_r,Ot.metaDescription)||gn({type:"UPDATE_PONCTUAL",value:{..._r,entity:"metaDescription"}})},[]),c.createElement(fe,{title:Dt({id:(0,H.O)("SEOModal.summary-title.meta-description"),defaultMessage:"Meta description"}),status:Ot.metaDescription,label:Dt({id:(0,H.O)("Title-settings.metaDescription-tooltip"),defaultMessage:`A meta description is an HTML tag used to describe the content of a web page.
 This description appears below the title and URL of your page as it appears in search engine results.
 For it to remain visible in Google, it must not exceed 140-${Hn} characters.`}),component:We&&c.createElement(U.Box,{padding:4,background:"neutral100",marginTop:4},c.createElement(D.Typography,{variant:"omega",fontWeight:"semiBold"},We),c.createElement(U.Box,{paddingTop:2},c.createElement($.Stack,{horizontal:!0,spacing:2},c.createElement(Ye.k,{value:We.length*100/Hn>100?100:We.length*100/Hn}),c.createElement(D.Typography,{variant:"pi",padding:2},"(",We.length,"/",Hn,")"))))})},zt=({intersections:We,richTextAlts:Ot,altTexts:Dt,checks:gn})=>{const{formatMessage:Hn}=(0,R.Z)(),nr=(0,c.useContext)(Ii);let _r={message:Hn({id:(0,H.O)("SEOChecks.alternativeTextCheck.default"),defaultMessage:"All your images contain an alt attribute! Congrats!"}),color:"success"};return(0,c.useEffect)(()=>{const Nr=Ot.filter(Qr=>Qr.occurences!=0).length;We===0?_r={message:Hn({id:(0,H.O)("SEOChecks.alternativeTextCheck.intersection-zero"),defaultMessage:"The name and the alternative text of your images are all the same. Strapi automatically generate the alt attribute from the name by default if the field was empty during the media upload. Having alt attribute clearly describing images is a very good practice."}),color:"warning"}:Dt.includes("")?_r={message:`${Dt.filter(ki=>ki==="").length} ${Hn({id:(0,H.O)("SEOChecks.alternativeTextCheck.intersection-negative"),defaultMessage:"Some images from a media field are missing an alt attribute."})}`,color:"danger"}:Nr>=1&&(_r={message:Hn({id:(0,H.O)("SEOChecks.alternativeTextCheck.richtext-missing-one"),defaultMessage:"At least one image in any 1st level richtext editor is missing an alt attribute."}),color:"danger"}),A().isEqual(_r,gn.alternativeText)||nr({type:"UPDATE_PONCTUAL",value:{..._r,entity:"alternativeText"}})},[]),c.createElement(fe,{title:Hn({id:(0,H.O)("SEOModal.summary-title.alt-attributes"),defaultMessage:"Alternative Text"}),status:gn.alternativeText,label:Hn({id:(0,H.O)("SEOChecks.alternativeTextCheck.label"),defaultMessage:"This will check if you have any missing alternative text for your images (media fields) and in your 1st level richtext editors."}),component:c.createElement(U.Box,{padding:2},Ot.map((Nr,Qr)=>c.createElement($.Stack,{key:Qr,spacing:2,horizontal:!0,background:"neutral0",padding:2},c.createElement(V.Icon,{"aria-hidden":!0,colors:ki=>({rect:{fill:A().get(ki,`colors.${Nr.occurences===0?"success":"danger"}600`)}}),as:q()}),c.createElement(D.Typography,null,c.createElement(D.Typography,{fontWeight:"bold"},Nr.occurences," "),Hn({id:(0,H.O)("SEOChecks.alternativeTextCheck.missing-text"),defaultMessage:"missing alt in the following richtext field:"}),c.createElement(D.Typography,{fontWeight:"bold"}," ",Nr.field)))),c.createElement($.Stack,{spacing:2,paddingTop:4,paddingLeft:2,paddingRight:2,paddingBottom:4},c.createElement(z.q,{variant:"secondary",showBullet:!1},c.createElement(D.Typography,null,c.createElement(D.Typography,{fontWeight:"bold"},"Tip: "),"Implement a rule in your front-end code that uses the name of your images if the",c.createElement(D.Typography,{fontWeight:"bold"}," alternativeText "),"field is empty to further reduce the risk of an empty alt attribute on your website."))))})},sn=(We,Ot,Dt)=>{let gn=[],Hn=[];return Object.values(Dt).map((nr,_r)=>{A().isArray(nr)&&nr.find(Qr=>Object.keys(Qr).includes("__component"))&&gn.push(Object.keys(Dt)[_r])}),Object.keys(We.attributes).map(nr=>{We.attributes[nr].type==="richtext"&&Hn.push({name:nr,field:null})}),Object.keys(Ot).map(nr=>{Object.keys(Ot[nr].attributes).map(_r=>{Ot[nr].attributes[_r].type==="richtext"&&Hn.push({name:nr,field:_r})})}),Hn.map((nr,_r)=>{const Nr=nr.name.split("."),Qr=A().last(Nr);A().get(Dt,Qr,null)||Object.keys(Ot).map(Si=>{Ot[Si].isComponent&&Object.keys(Ot[Si].attributes).map(Ei=>{if(Ot[Si].attributes[Ei].component&&Ot[Si].attributes[Ei].component===nr.name){const oo=gn.find(Xi=>Xi===Si.split(".")[0]),zi={name:Si,field:nr.field,inDz:oo};Hn[_r]=zi}})})}),gn.map(nr=>{const _r=A().get(Dt,nr,[]);Hn.map((Nr,Qr)=>{const ki=_r.find(Si=>Si.__component===Nr.name);!A().isEmpty(ki)&&!Nr.inDz&&(Hn[Qr]={...Nr,inDz:nr}),A().isEmpty(ki)&&Nr.inDz&&A().pull(Hn,Nr)})}),Hn},yn=(We,Ot,Dt,gn=[],Hn=[])=>{const nr=gn,_r=Hn;return Object.keys(We).forEach(Nr=>{const Qr=We[Nr];Nr===Ot&&typeof Qr!="object"?(nr.push(Qr),_r.push(We.name)):typeof Qr=="object"&&!Dt.includes(Nr)&&!A().isNull(Qr)&&yn(Qr,Ot,Dt,nr,_r)}),{alternativeTexts:nr,imageNames:_r}},hr=(We,Ot)=>{let Dt=["localizations"];Object.keys(We.attributes).map(Nr=>{We.attributes[Nr].type==="relation"&&Dt.push(Nr)});const{alternativeTexts:gn,imageNames:Hn}=yn(Ot,"alternativeText",Dt),nr=gn.length;return{intersections:gn.filter(Nr=>Hn.includes(Nr)).length-nr,altTexts:gn}},Mr=t(53787),rr=new Mr.Converter;let Cr={};const Ur=(We,Ot)=>{if(We){let Dt=0;const Hn=We.split(`
`).filter(_r=>_r.includes("![](")).length,nr=We.match(/<img[^>]*\/?>/g);return nr&&(Dt+=nr.filter(_r=>!_r.includes("alt=")).length),{field:Ot,occurences:Hn+Dt}}return{field:Ot,occurences:0}},$r=(We,Ot)=>{const Dt=A().get(We,Ot,""),gn=Ur(Dt,Ot);if(Dt){const _r=rr.makeHtml(Dt).replace(/<\/?[^>]+(>|$)/g,"").replace(`
`," ").toLowerCase().split(" ").filter(Nr=>Nr!==""&&Nr!==`
`);return{words:_r,length:_r.length,emptyAlts:gn}}else return{words:[],length:0,emptyAlts:gn}},li=(We,Ot)=>{We.map(Dt=>{if(!A().isEmpty(Dt)){const gn=Dt.trim(),Hn=new RegExp(gn.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),nr=(Ot.join(" ").match(Hn)||[]).length;Cr[gn]===void 0?Cr[gn]={count:nr}:Cr[gn].count+=nr}})},ri=(We,Ot,Dt)=>{const gn=sn(Dt,Ot,We),{intersections:Hn,altTexts:nr}=hr(Dt,We);let _r={intersections:Hn,richTextAlts:[],altTexts:nr},Nr=0,Qr=[];const ki=A().get(We,"seo.keywords",null);return ki&&(Qr=ki.toLowerCase().split(",")),Cr={},gn.map(Si=>{if(A().isNull(Si.field)){const{words:Ei,length:oo,emptyAlts:zi}=$r(We,Si.name);Nr+=oo,_r.richTextAlts.push(zi),li(Qr,Ei)}else if(Si.inDz){const Ei=A().get(We,Si.inDz,[]);A().isEmpty(Ei)||Ei.filter(zi=>zi.__component===Si.name).map(zi=>{const Xi=A().get(zi,Si.field,[]);if(A().isArray(Xi))A().get(zi,A().last(Si.name.split(".")),[]).map(Ui=>{const{words:Vo,length:Cs,emptyAlts:ra}=$r(Ui,Si.field);Nr+=Cs,_r.richTextAlts.push(ra),li(Qr,Vo)});else{const{words:qi,length:Ui,emptyAlts:Vo}=$r(zi,Si.field);Nr+=Ui,_r.richTextAlts.push(Vo),li(Qr,qi)}})}else{const Ei=A().get(We,A().last(Si.name.split(".")),"");if(Ei)if(A().isArray(Ei))Ei.map(zi=>{const{words:Xi,length:uo,emptyAlts:qi}=$r(zi,Si.field);Nr+=uo,_r.richTextAlts.push(qi),li(Qr,Xi)});else{const{words:zi,length:Xi,emptyAlts:uo}=$r(Ei,Si.field);Nr+=Xi,_r.richTextAlts.push(uo),li(Qr,zi)}}}),{wordCount:Nr,keywordsDensity:Cr,emptyAltCount:_r}},Et=({modifiedData:We,components:Ot,contentType:Dt,checks:gn,setIsVisible:Hn})=>{const{formatMessage:nr}=(0,R.Z)(),{wordCount:_r,keywordsDensity:Nr,emptyAltCount:Qr}=ri(We,Ot,Dt),ki=A().get(We,"seo",null);return c.createElement(T.ModalLayout,{onClose:()=>Hn(Si=>!Si),labelledBy:"title"},c.createElement(T.ModalHeader,null,c.createElement(D.Typography,{fontWeight:"bold",textColor:"neutral800",as:"h2",id:"title"},nr({id:(0,H.O)("Plugin.name"),defaultMessage:"SEO Plugin"}))),c.createElement(T.ModalBody,null,c.createElement(U.Box,{paddingTop:2,paddingBottom:4,paddingLeft:4},c.createElement(D.Typography,{variant:"beta"},nr({id:(0,H.O)("Button.seo-analyze"),defaultMessage:"SEO Analyze"}))),ki?c.createElement(U.Box,{padding:4},gn?.metaTitle&&c.createElement(Ct,{metaTitle:A().get(We,"seo.metaTitle",null),checks:gn}),gn?.metaDescription&&c.createElement(lt,{metaDescription:A().get(We,"seo.metaDescription",null),checks:gn}),gn?.wordCount&&c.createElement(Ne,{wordCount:_r,checks:gn}),gn?.keywordsDensity&&c.createElement(ge,{keywordsDensity:Nr,checks:gn}),gn?.metaSocial&&c.createElement(bt,{metaSocial:A().get(We,"seo.metaSocial",null),checks:gn}),gn?.canonicalUrl&&c.createElement(mn,{canonicalUrl:A().get(We,"seo.canonicalURL",null),checks:gn}),gn?.structuredData&&c.createElement(Xe,{structuredData:A().get(We,"seo.structuredData",null),checks:gn}),gn?.metaRobots&&c.createElement(Me,{metaRobots:A().get(We,"seo.metaRobots",null),checks:gn}),gn?.alternativeText&&c.createElement(zt,{intersections:A().get(Qr,"intersections",null),richTextAlts:A().get(Qr,"richTextAlts",null),altTexts:A().get(Qr,"altTexts",null),checks:gn}),gn?.lastUpdatedAt&&c.createElement(ae,{updatedAt:A().get(We,"updatedAt",null),checks:gn})):c.createElement(U.Box,{paddingLeft:4},c.createElement(u.EmptyStateLayout,{icon:c.createElement(b.w,null),content:nr({id:(0,H.O)("Modal.seo-component-empy"),defaultMessage:"Your SEO component is empty..."})}))),c.createElement(T.ModalFooter,{startActions:c.createElement(B.Button,{onClick:()=>Hn(Si=>!Si),variant:"tertiary"},nr({id:(0,H.O)("Modal.cancel"),defaultMessage:"Cancel"}))}))};var bn=t(63038),cn=t(36516),Yn=t(93379),on=t.n(Yn),ze=t(7795),Le=t.n(ze),Ht=t(90569),Mn=t.n(Ht),tr=t(3565),Sr=t.n(tr),Xr=t(19216),gi=t.n(Xr),Pi=t(44589),ii=t.n(Pi),vr=t(4334),at={};at.styleTagTransform=ii(),at.setAttributes=Sr(),at.insert=Mn().bind(null,"head"),at.domAPI=Le(),at.insertStyleElement=gi();var it=on()(vr.Z,at);const Re=vr.Z&&vr.Z.locals?vr.Z.locals:void 0,Pe=({title:We,description:Ot,image:Dt})=>{const{formatMessage:gn}=(0,R.Z)();return c.createElement("div",{className:"box-right snipcss-9tU8S snip-div"},c.createElement("div",{className:"facebook-snippet-preview snip-div"},c.createElement("div",{className:"facebook-snippet-box snip-div"},c.createElement("div",{className:"snippet-fb-img-custom snip-div"},c.createElement("img",{src:Dt.url,width:"524",height:"274",alt:"","aria-label":"",className:"snip-img"})),c.createElement("div",{className:"facebook-snippet-text snip-div"},c.createElement("div",{className:"snippet-meta snip-div"},c.createElement("div",{className:"snippet-fb-url snip-div"},gn({id:(0,H.O)("SEOSocialPreview.website-url"),defaultMessage:"url-of-your-website.io"}))),c.createElement("div",{className:"title-desc snip-div"},c.createElement("div",{className:"snippet-fb-title-default snip-div"},We&&We.length>60?`${We.substring(0,57)}...`:We),c.createElement("div",{className:"snippet-fb-description snip-div"},Ot&&Ot.length>65?`${Ot.substring(0,62)}...`:Ot))))))};var Te=t(22194),Mt={};Mt.styleTagTransform=ii(),Mt.setAttributes=Sr(),Mt.insert=Mn().bind(null,"head"),Mt.domAPI=Le(),Mt.insertStyleElement=gi();var qt=on()(Te.Z,Mt);const Rn=Te.Z&&Te.Z.locals?Te.Z.locals:void 0,ur=({title:We,description:Ot,image:Dt})=>{const{formatMessage:gn}=(0,R.Z)();return c.createElement("div",{className:"box-right snipcss-lxedG snip-div"},c.createElement("div",{className:"twitter-snippet-preview snip-div"},c.createElement("div",{className:"twitter-snippet-box snip-div"},c.createElement("div",{className:"snippet-twitter-img-custom snip-div"},c.createElement("img",{src:Dt.url,width:"600",height:"314",alt:"","aria-label":"",className:"snip-img"})),c.createElement("div",{className:"twitter-snippet-text snip-div"},c.createElement("div",{className:"title-desc snip-div"},c.createElement("div",{className:"snippet-twitter-title snip-div"},We.length>60?`${We.substring(0,57)}...`:We),c.createElement("div",{className:"snippet-twitter-description snip-div"},Ot.length>125?`${Ot.substring(0,123)}...`:Ot)),c.createElement("div",{className:"snippet-meta snip-div"},c.createElement("div",{className:"snippet-twitter-url snip-div"},gn({id:(0,H.O)("SEOSocialPreview.website-url"),defaultMessage:"url-of-your-website"})))))))},ct=({item:We,max:Ot,label:Dt,minLimit:gn=!1})=>c.createElement($.Stack,{spacing:1,horizontal:!0},c.createElement(V.Icon,{"aria-hidden":!0,colors:Hn=>({rect:{fill:A().get(Hn,`colors.${We.length>=Ot||Dt==="title"&&We.length===0||gn&&Dt==="description"&&We.length<=50?"danger":"success"}600`)}}),as:q()}),c.createElement(D.Typography,null,`Your ${Dt} is ${We.length||0} characters long (max ${Ot})`)),Cn=({item:We,keywords:Ot,label:Dt})=>{const Hn=Ot.split(",").filter(nr=>We.toLowerCase().includes(nr.toLowerCase().trim()));return c.createElement($.Stack,{spacing:1,horizontal:!0},c.createElement(V.Icon,{"aria-hidden":!0,colors:nr=>({rect:{fill:A().get(nr,`colors.${Hn.length===0?"warning":"success"}600`)}}),as:q()}),c.createElement(D.Typography,null,`You use ${Hn.length} keyword${Hn.length>1?"s":""} in your ${Dt} (${Hn.join(", ").trim()})`))},Kn=({item:We,keywords:Ot,defaultMetaImage:Dt})=>c.createElement(bn.TabPanel,null,c.createElement($.Stack,{spacing:2},c.createElement(U.Box,{paddingTop:6,paddingBottom:6},We&&c.createElement($e.Flex,{alignItems:"center",justifyContent:"center"},We.socialNetwork==="Facebook"?c.createElement(Pe,{title:We.title,description:We.description,image:We.image||Dt}):c.createElement(ur,{title:We.title,description:We.description,image:We.image||Dt})),c.createElement(U.Box,{paddingTop:8},c.createElement(N.Divider,null))),c.createElement(ct,{item:We.title,max:60,label:"title"}),c.createElement(ct,{item:We.description,max:We.socialNetwork==="Facebook"?65:125,label:"description"}),Ot&&c.createElement(c.Fragment,null,We.title&&c.createElement(Cn,{item:We.title,keywords:Ot,label:"title"}),We.description&&c.createElement(Cn,{item:We.description,keywords:Ot,label:"description"})))),Ke=({modifiedData:We,setIsVisible:Ot})=>{const{formatMessage:Dt}=(0,R.Z)(),gn=A().get(We,"seo",null),Hn=A().get(gn,"metaSocial",[]),nr=A().get(gn,"keywords",null);return c.createElement(T.ModalLayout,{onClose:()=>Ot(_r=>!_r),labelledBy:"title"},c.createElement(T.ModalHeader,null,c.createElement(D.Typography,{fontWeight:"bold",textColor:"neutral800",as:"h2",id:"title"},Dt({id:(0,H.O)("Plugin.name"),defaultMessage:"SEO Plugin"}))),c.createElement(T.ModalBody,null,c.createElement(U.Box,{paddingTop:2,paddingBottom:4,paddingLeft:4},c.createElement(D.Typography,{variant:"beta"},Dt({id:(0,H.O)("Button.social-preview"),defaultMessage:"Social Preview"})),c.createElement(U.Box,{paddingTop:4},c.createElement(N.Divider,null))),gn?c.createElement(U.Box,{padding:4},c.createElement(bn.TabGroup,{label:"Some stuff for the label",id:"tabs",variant:"simple"},c.createElement(bn.Tabs,null,Hn&&Hn.map((_r,Nr)=>{if(_r.socialNetwork)return c.createElement(bn.Tab,{key:Nr},_r.socialNetwork)})),c.createElement(bn.TabPanels,null,Hn&&Hn.map((_r,Nr)=>_r.socialNetwork&&_r.title&&_r.description?c.createElement(Kn,{key:Nr,item:_r,keywords:nr,defaultMetaImage:gn?.metaImage}):c.createElement(U.Box,{paddingTop:4,key:Nr},c.createElement(cn.Alert,{closeLabel:"Close alert",title:"Notice"},Dt({id:(0,H.O)("Social-preview.alert"),defaultMessage:"Complete you social component to see the preview"}))))))):c.createElement(U.Box,{paddingLeft:4},c.createElement(u.EmptyStateLayout,{icon:c.createElement(b.w,null),content:Dt({id:(0,H.O)("Modal.seo-component-empy"),defaultMessage:"Your SEO component is empty..."})}))),c.createElement(T.ModalFooter,null))},Ge=({checks:We})=>{const{formatMessage:Ot}=(0,R.Z)(),Dt=Object.values(We).filter(nr=>nr.color==="success").length,gn=Object.values(We).filter(nr=>nr.color==="warning").length,Hn=Object.values(We).filter(nr=>nr.color==="danger").length;return c.createElement(U.Box,{paddingTop:4},c.createElement(D.Typography,{variant:"omega",fontWeight:"semiBold"},Ot({id:(0,H.O)("SEORightLinks.summary-title"),defaultMessage:"SEO Summary"})),c.createElement(U.Box,{paddingTop:4},c.createElement($.Stack,{spacing:2,key:"good",horizontal:!0,background:"neutral0"},c.createElement(V.Icon,{"aria-hidden":!0,colors:nr=>({rect:{fill:A().get(nr,"colors.success600")}}),as:q()}),c.createElement(D.Typography,null,Ot({id:(0,H.O)("Good"),defaultMessage:"Good"}),": ",Dt)),c.createElement($.Stack,{spacing:2,key:"improvements",horizontal:!0,background:"neutral0"},c.createElement(V.Icon,{"aria-hidden":!0,colors:nr=>({rect:{fill:A().get(nr,"colors.warning600")}}),as:q()}),c.createElement(D.Typography,null,Ot({id:(0,H.O)("Improvements"),defaultMessage:"Improvements"}),": ",gn)),c.createElement($.Stack,{spacing:2,key:"bad",horizontal:!0,background:"neutral0"},c.createElement(V.Icon,{"aria-hidden":!0,colors:nr=>({rect:{fill:A().get(nr,"colors.danger600")}}),as:q()}),c.createElement(D.Typography,null,Ot({id:(0,H.O)("Bad"),defaultMessage:"Bad"}),": ",Hn))))};var Ft=t(37307),Qt=t(46277),wn={};wn.styleTagTransform=ii(),wn.setAttributes=Sr(),wn.insert=Mn().bind(null,"head"),wn.domAPI=Le(),wn.insertStyleElement=gi();var Gn=on()(Qt.Z,wn);const ir=Qt.Z&&Qt.Z.locals?Qt.Z.locals:void 0,fr=({metaTitle:We,metaDescription:Ot})=>c.createElement("div",null,c.createElement("div",{className:"hiRENg"},c.createElement("h3",{className:"gQjSOK"},We&&We.length>60?`${We.substring(0,57)}...`:We),c.createElement("span",{className:"fJUNil"},"https://url-of-your-website.io"),c.createElement("p",{className:"fJDKvR"},c.createElement("span",{className:"ckmTcA"},"Mar 16, 2019 - "),Ot&&Ot.length>160?`${Ot.substring(0,157)}...`:Ot)));var Er=t(82466),Or={};Or.styleTagTransform=ii(),Or.setAttributes=Sr(),Or.insert=Mn().bind(null,"head"),Or.domAPI=Le(),Or.insertStyleElement=gi();var oi=on()(Er.Z,Or);const si=Er.Z&&Er.Z.locals?Er.Z.locals:void 0,$i=({metaTitle:We,metaDescription:Ot})=>c.createElement("div",{className:"google-snippet-preview"},c.createElement("div",{className:"wrap-snippet snipcss-N3O8b snip-div"},c.createElement("div",{className:"wrap-m-icon-permalink snip-div"},c.createElement("div",{className:"snippet-permalink snip-div"},"https://url-of-your-website.io")),c.createElement("div",{className:"snippet-title-custom snip-div"},We&&We.length>60?`${We.substring(0,60)}...`:We),c.createElement("div",{className:"snippet-description-default snip-div"},Ot&&Ot.length>160?`${Ot.substring(0,160)}...`:Ot))),Bn=({modifiedData:We,setIsVisible:Ot})=>{const{formatMessage:Dt}=(0,R.Z)(),[gn,Hn]=(0,c.useState)(!1),nr=A().get(We,"seo",null),_r=A().get(nr,"metaTitle",null),Nr=A().get(nr,"metaDescription",null),Qr=A().get(nr,"keywords",null);return c.createElement(T.ModalLayout,{onClose:()=>Ot(ki=>!ki),labelledBy:"title"},c.createElement(T.ModalHeader,null,c.createElement(D.Typography,{fontWeight:"bold",textColor:"neutral800",as:"h2",id:"title"},Dt({id:(0,H.O)("Plugin.name"),defaultMessage:"SEO Plugin"}))),c.createElement(T.ModalBody,null,c.createElement(U.Box,{paddingTop:2,paddingBottom:4,paddingLeft:4},c.createElement(D.Typography,{variant:"beta"},Dt({id:(0,H.O)("Button.browser-preview"),defaultMessage:"Browser Preview"})),c.createElement(U.Box,{paddingTop:4},c.createElement(N.Divider,null))),nr?c.createElement($.Stack,{spacing:2,padding:4},c.createElement(U.Box,{paddingBottom:6},c.createElement(U.Box,{paddingBottom:4},c.createElement(Ft.Switch,{label:"Preview",offLabel:"Web",onLabel:"Mobile",selected:gn,onChange:()=>Hn(ki=>!ki),visibleLabels:!0})),gn?c.createElement($i,{metaTitle:_r,metaDescription:Nr}):c.createElement(fr,{metaTitle:_r,metaDescription:Nr})),c.createElement(U.Box,{paddingBottom:6},c.createElement(N.Divider,null)),_r&&c.createElement(ct,{item:_r,max:60,label:"title"}),Nr&&c.createElement(ct,{item:Nr,max:160,label:"description",minLimit:!0}),Qr&&c.createElement(c.Fragment,null,_r&&c.createElement(Cn,{item:_r,keywords:Qr,label:"title"}),Nr&&c.createElement(Cn,{item:Nr,keywords:Qr,label:"description"}))):c.createElement(U.Box,{paddingLeft:4},c.createElement(u.EmptyStateLayout,{icon:c.createElement(b.w,null),content:Dt({id:(0,H.O)("Modal.seo-component-empy"),defaultMessage:"Your SEO component is empty..."})}))),c.createElement(T.ModalFooter,null))};var nt=t(77292),ve=t.n(nt),he=t(98836),Ae=t.n(he);const tt=t(97585).Z,St=We=>{const Ot=A().get(We,"seo.metaTitle");let Dt={message:"",color:"success"};return A().isNull(Ot)||A().isEmpty(Ot)?Dt={message:"",color:"danger"}:Ot.length>60&&(Dt={message:"",color:"warning"}),Dt},kt=We=>{const Ot=A().get(We,"seo.metaDescription");let Dt={message:"",color:"success"};return A().isNull(Ot)||A().isEmpty(Ot)?Dt={message:"",color:"danger"}:Ot.length>160?Dt={message:"",color:"warning"}:Ot.length<50&&(Dt={message:"",color:"warning"}),Dt},Jt=We=>{const Ot=A().get(We,"intersections",null),Dt=A().get(We,"richTextAlts",null),gn=A().get(We,"altTexts",null);let Hn={message:"",color:"success"};const nr=Dt.filter(_r=>_r.occurences!=0).length;return Ot===0?Hn={message:"",color:"warning"}:gn.includes("")?Hn={message:"",color:"danger"}:nr>=1&&(Hn={message:"",color:"danger"}),Hn},gt=We=>{let Ot={message:"",color:"success"};if(A().isNull(We)){Ot={message:"",color:"danger"};return}else We<300&&(Ot={message:"",color:"danger"});return Ot},dn=We=>{let Ot={message:"",color:"success"};return A().isEmpty(We)?(Ot={message:"",color:"danger"},Ot):(Object.keys(We).map(Dt=>{A().get(We[Dt],"count",0)===0?Ot={message:"",color:"danger"}:A().get(We[Dt],"count",0)<=1&&(Ot={message:"",color:"warning"})}),Ot)},Xt=We=>{const Ot=A().get(We,"seo.canonicalURL");let Dt={message:"",color:"success"};return A().isNull(Ot)&&(Dt={message:"",color:"warning"}),Dt},hn=We=>{const Ot=A().get(We,"updatedAt");let Dt={message:"",color:"danger"};if(A().isNull(Ot))Dt={message:"",color:"warning"};else{const gn=Date.parse(new Date(new Date().setFullYear(new Date().getFullYear()-1)));Date.parse(Ot)>=gn&&(Dt={message:"",color:"success"})}return Dt},Sn=We=>{const Ot=A().get(We,"seo.metaRobots");let Dt={message:"",color:"success"};return(A().isNull(Ot)||A().isEmpty(Ot))&&(Dt={message:"",color:"success"}),Dt},Jn=We=>{const Ot=A().get(We,"seo.metaSocial");let Dt={message:"",color:""};if(A().isNull(Ot)||Ot===void 0)return Dt={message:"",color:"danger"},Dt;const gn=Ot.filter(Hn=>!A().isNull(Hn.id)).length;return gn===0?Dt={message:"",color:"danger"}:gn==1?Dt={message:"",color:"warning"}:Dt={message:"",color:"success"},Dt},Vn=We=>{const Ot=A().get(We,"seo.structuredData");let Dt={message:"",color:"success"};return A().isEmpty(Ot)&&(Dt={message:"",color:"warning"}),Dt},ar=async(We,Ot,Dt,gn)=>{const Hn=await tt.get(),{wordCount:nr,keywordsDensity:_r,emptyAltCount:Nr}=ri(Ot,Dt,gn);return{...Hn[We?.uid]?.seoChecks?.metaTitle&&{metaTitle:St(Ot)},...Hn[We?.uid]?.seoChecks?.wordCount&&{wordCount:gt(nr)},...Hn[We?.uid]?.seoChecks?.metaRobots&&{metaRobots:Sn(Ot)},...Hn[We?.uid]?.seoChecks?.metaSocial&&{metaSocial:Jn(Ot)},...Hn[We?.uid]?.seoChecks?.canonicalUrl&&{canonicalUrl:Xt(Ot)},...Hn[We?.uid]?.seoChecks?.lastUpdatedAt&&{lastUpdatedAt:hn(Ot)},...Hn[We?.uid]?.seoChecks?.structuredData&&{structuredData:Vn(Ot)},...Hn[We?.uid]?.seoChecks?.metaDescription&&{metaDescription:kt(Ot)},...Hn[We?.uid]?.seoChecks?.alternativeText&&{alternativeText:Jt(Nr)},...Hn[We?.uid]?.seoChecks?.keywordDensity&&{keywordsDensity:dn(_r)}}};function Vr(We,Ot){switch(Ot.type){case"UPDATE_PONCTUAL":return{...We,[Ot.value.entity]:{color:Ot.value?.color,message:Ot.value?.message}};case"UPDATE_FOR_PREVIEW":return Ot.value;default:throw new Error}}const Jr=Vr,yi={preview:!0},Ii=(0,c.createContext)(null),_n=()=>{const{formatMessage:We}=(0,R.Z)(),[Ot,Dt]=(0,c.useState)(!0),[gn,Hn]=(0,c.useState)(!1),[nr,_r]=(0,c.useState)(!1),[Nr,Qr]=(0,c.useState)(!1),[ki,Si]=(0,c.useState)({}),[Ei,oo]=(0,c.useReducer)(Jr,yi),{allLayoutData:zi,layout:Xi,modifiedData:uo}=(0,r.Wq)(),{contentType:qi,components:Ui}=zi;return(0,c.useEffect)(()=>{(async()=>{if(JSON.stringify(ki)!==JSON.stringify(Ei)){if(Ei?.preview){const Cs=await ar(Xi,uo,Ui,qi);oo({type:"UPDATE_FOR_PREVIEW",value:Cs})}else oo({type:"UPDATE_FOR_PREVIEW",value:Ei});Si(Ei)}})().then(()=>{Dt(!1)})},[Ei]),c.createElement(Ii.Provider,{value:oo},c.createElement(U.Box,null,c.createElement(D.Typography,{variant:"sigma",textColor:"neutral600",id:"seo"},We({id:(0,H.O)("Plugin.name"),defaultMessage:"SEO Plugin"})),c.createElement(U.Box,{paddingTop:2,paddingBottom:6},c.createElement(N.Divider,null)),c.createElement(U.Box,{paddingTop:1},c.createElement(B.Button,{fullWidth:!0,variant:"secondary",startIcon:c.createElement(ve(),null),onClick:()=>Hn(Vo=>!Vo)},We({id:(0,H.O)("Button.browser-preview"),defaultMessage:"Browser Preview"}))),c.createElement(U.Box,{paddingTop:2},c.createElement(B.Button,{fullWidth:!0,variant:"secondary",startIcon:c.createElement(ve(),null),onClick:()=>_r(Vo=>!Vo)},We({id:(0,H.O)("Button.social-preview"),defaultMessage:"Social Preview"}))),!Ot&&c.createElement(Ge,{checks:Ei}),c.createElement(U.Box,{paddingTop:4},c.createElement(x.TextButton,{startIcon:c.createElement(Ae(),null),onClick:()=>Qr(Vo=>!Vo)},We({id:(0,H.O)("Button.see-details"),defaultMessage:"SEE DETAILS"}))),gn&&c.createElement(Bn,{modifiedData:uo,setIsVisible:Hn}),nr&&c.createElement(Ke,{modifiedData:uo,setIsVisible:_r}),Nr&&c.createElement(Et,{modifiedData:uo,components:Ui,contentType:qi,checks:Ei,setIsVisible:Qr})))},rt=()=>{const{modifiedData:We}=(0,r.Wq)();return We.hasOwnProperty("seo")?c.createElement(U.Box,{background:"neutral0",borderColor:"neutral150",hasRadius:!0,paddingBottom:4,paddingLeft:4,paddingRight:4,paddingTop:6,shadow:"tableShadow"},c.createElement(_n,null)):c.createElement(c.Fragment,null)},vt=n.strapi.name,Gt={register(We){We.addMenuLink({to:`/plugins/${a()}`,icon:I,permissions:F.Z.main,intlLabel:{id:`${a()}.plugin.name`,defaultMessage:"SEO"},Component:async()=>await t.e(3214).then(t.bind(t,13214))}),We.registerPlugin({id:a(),initializer:k,isReady:!1,name:vt})},bootstrap(We){We.injectContentManagerComponent("editView","right-links",{name:"SeoChecker",Component:rt})},async registerTrads({locales:We}){const Ot=await Promise.all(We.map(Dt=>t(14326)(`./${Dt}.json`).then(({default:gn})=>({data:(0,r.jV)(gn,a()),locale:Dt})).catch(()=>({data:{},locale:Dt}))));return Promise.resolve(Ot)}}},32141:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>n});const n={main:[{action:"plugin::seo.read",subject:null}]}},53603:(Z,v,t)=>{const n=t(81746).name.replace(/^@strapi\/plugin-/i,"");Z.exports=n},29759:(Z,v,t)=>{"use strict";t.d(v,{O:()=>a});var r=t(53603),n=t.n(r);const a=c=>`${n()}.${c}`},50838:(Z,v,t)=>{"use strict";Z.exports=t(87398).default},33332:(Z,v,t)=>{"use strict";t.d(v,{J:()=>Ye});var r=t(67294),n=t(30972),s=t(45697),a=t.n(s),c=t(11727),h=t(63955),p=t(16607),d=t(26611),k=t(46449),M=t(9053),C=t(16244),w=t(60909),I=t(85893),F=t(33986),U=t(12803);const B=mt=>{const{id:Ct}=(0,F.n)();return(0,I.jsx)(M.l,{position:"start",children:(0,I.jsx)(U.C,{"aria-labelledby":`${Ct}-title`,...mt})})};var N=t(96208),D=t(37255),x=t(19700),T=t(56457),u=t(96987),b=t(1136),E=t(54425),A=t(2382),R=t(86896);const H=k.default.span`
  text-transform: uppercase;
`,z=(0,k.default)(M.l)`
  opacity: 0;

  &:focus-within {
    opacity: 1;
  }
`,V=(0,k.default)(C.Z)`
  cursor: pointer;

  &:hover {
    ${z} {
      opacity: 1;
    }
  }
`,$=({children:mt,extension:Ct,isSelectable:ln,name:$e,onSelect:Qe,onRemove:bt,onEdit:It,selected:mn,subtitle:un,variant:Be})=>{const{formatMessage:je}=(0,R.Z)(),$t=Kt=>{It&&It(Kt)},et=Kt=>{Kt.stopPropagation()};return r.createElement(V,{role:"button",height:"100%",tabIndex:-1,onClick:$t},r.createElement(w.O,null,ln&&r.createElement("div",{onClick:et},r.createElement(B,{value:mn,onValueChange:Qe})),(bt||It)&&r.createElement(z,{onClick:et,position:"end"},bt&&r.createElement(N.h,{label:je({id:(0,h.OB)("control-card.remove-selection"),defaultMessage:"Remove from selection"}),icon:r.createElement(E.Z,null),onClick:bt}),It&&r.createElement(N.h,{label:je({id:(0,h.OB)("control-card.edit"),defaultMessage:"Edit"}),icon:r.createElement(A.Z,null),onClick:It})),mt),r.createElement(D.e,null,r.createElement(x.a,null,r.createElement(p.x,{paddingTop:1},r.createElement(T.l,{as:"h2"},$e)),r.createElement(T._,null,r.createElement(H,null,Ct),un)),r.createElement(u.k,{paddingTop:1,grow:1},r.createElement(b.E,null,je({id:(0,h.OB)(`settings.section.${Be.toLowerCase()}.label`),defaultMessage:Be})))))};$.defaultProps={children:void 0,isSelectable:!0,onEdit:void 0,onSelect:void 0,onRemove:void 0,selected:!1,subtitle:"",variant:"Image"},$.propTypes={children:a().node,extension:a().string.isRequired,isSelectable:a().bool,name:a().string.isRequired,onEdit:a().func,onSelect:a().func,onRemove:a().func,selected:a().bool,subtitle:a().string,variant:a().oneOf(["Image","Video","Audio","Doc"])};var ee=t(84809);const q=(0,k.default)(p.x)`
  canvas,
  audio {
    display: block;
    max-width: 100%;
    max-height: ${({size:mt})=>mt==="M"?164/16:88/16}rem;
  }
`,oe=({name:mt,url:Ct,size:ln,...$e})=>r.createElement($,{name:mt,...$e,variant:"Audio"},r.createElement(d.H,{size:ln},r.createElement(q,{size:ln},r.createElement(ee.N,{url:Ct,alt:mt}))));oe.defaultProps={onSelect:void 0,onEdit:void 0,onRemove:void 0,selected:!1,size:"M"},oe.propTypes={extension:a().string.isRequired,name:a().string.isRequired,onSelect:a().func,onEdit:a().func,onRemove:a().func,url:a().string.isRequired,selected:a().bool,size:a().oneOf(["S","M"])};var X=t(54607),pe=t(6876);const Ie=k.default.span`
  svg {
    font-size: 3rem;
  }
`,se=(0,k.default)(u.k)`
  border-radius: ${({theme:mt})=>mt.borderRadius} ${({theme:mt})=>mt.borderRadius} 0 0;
  background: linear-gradient(180deg, #ffffff 0%, #f6f6f9 121.48%);
`,be=({name:mt,extension:Ct,size:ln,...$e})=>r.createElement($,{name:mt,extension:Ct,...$e,variant:"Doc"},r.createElement(se,{width:"100%",height:ln==="S"?(0,n.Q1)(88):(0,n.Q1)(164),justifyContent:"center"},r.createElement(Ie,null,Ct==="pdf"?r.createElement(X.Z,{"aria-label":mt}):r.createElement(pe.Z,{"aria-label":mt}))));be.defaultProps={selected:!1,onEdit:void 0,onSelect:void 0,onRemove:void 0,size:"M"},be.propTypes={extension:a().string.isRequired,onEdit:a().func,onSelect:a().func,onRemove:a().func,selected:a().bool,name:a().string.isRequired,size:a().oneOf(["S","M"])};const fe=({height:mt,width:Ct,thumbnail:ln,size:$e,alt:Qe,...bt})=>{const It=(0,h.ih)({url:ln,params:{updatedAt:bt.updatedAt}});return r.createElement($,{...bt,subtitle:mt&&Ct&&` - ${Ct}\u2715${mt}`,variant:"Image"},r.createElement(d.H,{src:It,size:$e,alt:Qe}))};fe.defaultProps={height:void 0,width:void 0,selected:!1,onEdit:void 0,onSelect:void 0,onRemove:void 0,size:"M",updatedAt:void 0},fe.propTypes={alt:a().string.isRequired,extension:a().string.isRequired,height:a().number,name:a().string.isRequired,onEdit:a().func,onSelect:a().func,onRemove:a().func,width:a().number,thumbnail:a().string.isRequired,selected:a().bool,size:a().oneOf(["S","M"]),updatedAt:a().string};var ue=t(10574);const we=({children:mt,...Ct})=>(0,I.jsx)(p.x,{as:"time",background:"neutral800",bottom:1,right:1,color:"neutral0",hasRadius:!0,position:"absolute",padding:1,...Ct,children:(0,I.jsx)(ue.Z,{variant:"pi",textColor:"neutral0",children:mt})});var Me=t(72160);const Ce=(0,k.default)(p.x)`
  canvas,
  video {
    display: block;
    pointer-events: none;
    max-width: 100%;
    max-height: ${({size:mt})=>mt==="M"?164/16:88/16}rem;
  }
`,Ne=({name:mt,url:Ct,mime:ln,size:$e,...Qe})=>{const[bt,It]=(0,r.useState)(),mn=bt&&(0,h.LU)(bt);return r.createElement($,{name:mt,...Qe,variant:"Video"},r.createElement(d.H,{size:$e},r.createElement(Ce,{size:$e},r.createElement(Me.F,{url:Ct,mime:ln,onLoadDuration:It,alt:mt}))),r.createElement(we,null,mn||"..."))};Ne.defaultProps={onSelect:void 0,onEdit:void 0,onRemove:void 0,selected:!1,size:"M"},Ne.propTypes={extension:a().string.isRequired,mime:a().string.isRequired,name:a().string.isRequired,onSelect:a().func,onEdit:a().func,onRemove:a().func,url:a().string.isRequired,selected:a().bool,size:a().oneOf(["S","M"])};const Ye=({asset:mt,isSelected:Ct,onSelect:ln,onEdit:$e,onRemove:Qe,size:bt,local:It})=>{const mn=ln?()=>ln(mt):void 0,un={id:mt.id,isSelectable:mt.isSelectable,extension:(0,n.mD)(mt.ext),key:mt.id,name:mt.name,url:It?mt.url:(0,h.eM)(mt,!0),mime:mt.mime,onEdit:$e?()=>$e(mt):void 0,onSelect:mn,onRemove:Qe?()=>Qe(mt):void 0,selected:Ct,size:bt};return mt.mime.includes(c.h3.Video)?r.createElement(Ne,{...un}):mt.mime.includes(c.h3.Image)?r.createElement(fe,{...un,alt:mt.alternativeText||mt.name,height:mt.height,thumbnail:(0,n.CR)(mt?.formats?.thumbnail?.url||mt.url),width:mt.width,updatedAt:mt.updatedAt}):mt.mime.includes(c.h3.Audio)?r.createElement(oe,{...un}):r.createElement(be,{...un})};Ye.defaultProps={isSelected:!1,local:!1,onSelect:void 0,onEdit:void 0,onRemove:void 0,size:"M"},Ye.propTypes={asset:c.pw.isRequired,local:a().bool,onSelect:a().func,onEdit:a().func,onRemove:a().func,isSelected:a().bool,size:a().oneOf(["S","M"])}},84809:(Z,v,t)=>{"use strict";t.d(v,{N:()=>c});var r=t(67294),n=t(16607),s=t(45697),a=t.n(s);const c=({url:h,alt:p})=>r.createElement(n.x,null,r.createElement("audio",{controls:!0,src:h},p));c.defaultProps={},c.propTypes={alt:a().string.isRequired,url:a().string.isRequired}},72160:(Z,v,t)=>{"use strict";t.d(v,{F:()=>p});var r=t(67294),n=t(16607),s=t(22304),a=t(45697),c=t.n(a);const h=3,p=({url:d,mime:k,onLoadDuration:M,alt:C,...w})=>{const I=U=>{if(U.target.currentTime>0){const B=U.target,N=document.createElement("canvas");N.height=B.videoHeight,N.width=B.videoWidth,N.getContext("2d").drawImage(B,0,0,B.videoWidth,B.videoHeight),B.replaceWith(N),M(B.duration)}},F=U=>{const B=U.target;B.readyState<h||B.play()};return r.createElement(n.x,{as:"figure",...w,key:d},r.createElement("video",{muted:!0,onLoadedData:F,src:d,crossOrigin:"anonymous",onTimeUpdate:I},r.createElement("source",{type:k})),r.createElement(s.T,{as:"figcaption"},C))};p.defaultProps={onLoadDuration(){},size:"M"},p.propTypes={alt:c().string.isRequired,url:c().string.isRequired,mime:c().string.isRequired,onLoadDuration:c().func,size:c().oneOf(["S","M"])}},70572:(Z,v,t)=>{"use strict";t.d(v,{r:()=>w});var r=t(67294),n=t(52953),s=t(16607),a=t(10574),c=t(31988),h=t(6498),p=t(45697),d=t.n(p),k=t(33332),M=t(99168);const C=({children:I,id:F,index:U,moveItem:B})=>{const N=(0,r.useRef)(null),[,D]=(0,M.useDrop)({accept:"draggable",hover(b){N.current&&b.id!==F&&(B(b.index,U),b.index=U)}}),[{isDragging:x},T]=(0,M.useDrag)({type:"draggable",item(){return{index:U,id:F}},collect:b=>({isDragging:b.isDragging()})}),u=x?.2:1;return T(D(N)),r.createElement("div",{ref:N,style:{opacity:u,cursor:"move"}},I)};C.propTypes={id:d().oneOfType([d().string,d().number]).isRequired,index:d().number.isRequired,children:d().node.isRequired,moveItem:d().func.isRequired};const w=({allowedTypes:I,assets:F,onEditAsset:U,onSelectAsset:B,selectedAssets:N,size:D,onReorderAsset:x,title:T})=>r.createElement(n.k,{tagName:"article"},T&&r.createElement(s.x,{paddingTop:2,paddingBottom:2},r.createElement(a.Z,{as:"h2",variant:"delta",fontWeight:"semiBold"},T)),r.createElement(c.r,{gap:4},F.map((u,b)=>{const E=!!N.find(A=>A.id===u.id);return x?r.createElement(h.P,{key:u.id,col:3,height:"100%"},r.createElement(C,{index:b,moveItem:x,id:u.id},r.createElement(k.J,{allowedTypes:I,asset:u,isSelected:E,onEdit:U?()=>U(u):void 0,onSelect:()=>B(u),size:D}))):r.createElement(h.P,{col:3,key:u.id,height:"100%"},r.createElement(k.J,{key:u.id,allowedTypes:I,asset:u,isSelected:E,onEdit:U?()=>U(u):void 0,onSelect:()=>B(u),size:D}))})));w.defaultProps={allowedTypes:["images","files","videos","audios"],onEditAsset:void 0,size:"M",onReorderAsset:void 0,title:null},w.propTypes={allowedTypes:d().arrayOf(d().string),assets:d().arrayOf(d().shape({})).isRequired,onEditAsset:d().func,onSelectAsset:d().func.isRequired,selectedAssets:d().arrayOf(d().shape({})).isRequired,size:d().oneOf(["S","M"]),onReorderAsset:d().func,title:d().string}},25514:(Z,v,t)=>{"use strict";t.d(v,{O:()=>A});var r=t(67294),n=t(82392),s=t(85893),a=t(46449),c=t(53342);const h=(0,a.default)(c.f)`
  border-radius: ${({theme:R})=>R.borderRadius};
  color: ${({theme:R})=>R.colors.neutral600};
  font-size: ${({theme:R})=>R.fontSizes[1]};
  line-height: ${({theme:R})=>R.lineHeights[4]};
  padding: ${({theme:R})=>`${R.spaces[1]} ${R.spaces[2]}`};
  text-decoration: none;

  :hover,
  :focus {
    background-color: ${({theme:R})=>R.colors.neutral200};
    color: ${({theme:R})=>R.colors.neutral700};
  }
`,p=({children:R,...H})=>(0,s.jsx)(h,{...H,children:R});p.displayName="CrumbLink";var d=t(75071),k=t(45697),M=t.n(k),C=t(86896),w=t(73727),I=t(11727),F=t(74863),U=t(52575),B=t(12473);const N=(0,a.default)(B.z)`
  padding: ${({theme:R})=>`${R.spaces[1]} ${R.spaces[2]}`};
  height: unset;

  :hover,
  :focus {
    background-color: ${({theme:R})=>R.colors.neutral200};
  }
`,D=({children:R,...H})=>(0,s.jsx)(U.O2,{endIcon:null,as:N,size:"S",...H,children:R});D.displayName="CrumbSimpleMenu";var x=t(30972),T=t(16550),u=t(81138),b=t(63955);const E=({parentsToOmit:R,currentFolderId:H,onChangeFolder:z})=>{const[V,$]=(0,r.useState)(!1),{data:ee,isLoading:q}=(0,u.v)({enabled:V}),{pathname:oe}=(0,T.TH)(),[{query:X}]=(0,x.Kx)(),{formatMessage:pe}=(0,C.Z)(),Ie=ee&&(0,b.om)(ee,H),se=Ie&&Ie.filter(be=>!R.includes(be.id)&&be.id!==null);return r.createElement(D,{onOpen:()=>$(!0),onClose:()=>$(!1),"aria-label":pe({id:(0,b.OB)("header.breadcrumbs.menu.label"),defaultMessage:"Get more ascendants folders"}),label:"..."},q&&r.createElement(U.sN,null,r.createElement(F.a,{small:!0},pe({id:(0,b.OB)("content.isLoading"),defaultMessage:"Content is loading."}))),se&&se.map(be=>{if(z)return r.createElement(U.sN,{as:"button",type:"button",onClick:()=>z(be.id,be.path),key:be.id},be.label);const fe=(0,b.Km)(oe,X,{folder:be?.id,folderPath:be?.path});return r.createElement(U.sN,{isLink:!0,as:w.OL,to:fe,key:be.id},be.label)}))};E.defaultProps={currentFolderId:void 0,onChangeFolder:void 0,parentsToOmit:[]},E.propTypes={currentFolderId:M().number,onChangeFolder:M().func,parentsToOmit:M().arrayOf(M().number)};const A=({breadcrumbs:R,onChangeFolder:H,currentFolderId:z,...V})=>{const{formatMessage:$}=(0,C.Z)();return r.createElement(n.O,{...V},R.map((ee,q)=>{if(Array.isArray(ee))return r.createElement(E,{parentsToOmit:[...R].splice(q+1,R.length-1).map(X=>X.id),key:`breadcrumb-${ee?.id??"menu"}`,currentFolderId:z,onChangeFolder:H});const oe=ee.id===null&&z===void 0;return z!==ee.id&&!oe?r.createElement(p,{key:`breadcrumb-${ee?.id??"root"}`,as:H?"button":w.OL,type:H&&"button",to:H?void 0:ee.href,onClick:H&&(()=>H(ee.id,ee.path))},ee.label?.id?$(ee.label):ee.label):r.createElement(d.$,{key:`breadcrumb-${ee?.id??"root"}`,isCurrent:q+1===R.length},ee.label?.id?$(ee.label):ee.label)}))};A.defaultProps={currentFolderId:void 0,onChangeFolder:void 0},A.propTypes={breadcrumbs:I.Fv.isRequired,currentFolderId:M().number,onChangeFolder:M().func}},27902:(Z,v,t)=>{"use strict";t.d(v,{r:()=>k});var r=t(67294),n=t(16607),s=t(31988),a=t(6498),c=t(96987),h=t(10574),p=t(45697),d=t.n(p);const k=({blocks:M})=>r.createElement(n.x,{hasRadius:!0,paddingLeft:6,paddingRight:6,paddingTop:4,paddingBottom:4,background:"neutral100"},r.createElement(s.r,{gap:4},M.map(({label:C,value:w})=>r.createElement(a.P,{col:6,xs:12,key:C},r.createElement(c.k,{direction:"column",alignItems:"stretch",gap:1},r.createElement(h.Z,{variant:"sigma",textColor:"neutral600"},C),r.createElement(h.Z,{variant:"pi",textColor:"neutral700"},w))))));k.propTypes={blocks:d().arrayOf(d().shape({label:d().string,value:d().oneOfType([d().string,d().number])})).isRequired}},85621:(Z,v,t)=>{"use strict";t.d(v,{u:()=>k});var r=t(67294),n=t(96208),s=t(30972),a=t(36544),c=t(45697),h=t.n(c),p=t(86896),d=t(93593);const k=({url:M})=>{const C=(0,s.lm)(),{formatMessage:w}=(0,p.Z)(),{copy:I}=(0,s.VP)(),F=async()=>{await I(M)&&C({type:"success",message:{id:"notification.link-copied",defaultMessage:"Link copied into the clipboard"}})};return r.createElement(n.h,{label:w({id:(0,d.Z)("control-card.copy-link"),defaultMessage:"Copy link"}),onClick:F},r.createElement(a.Z,null))};k.propTypes={url:h().string.isRequired}},21050:(Z,v,t)=>{"use strict";t.d(v,{s:()=>Bt});var r=t(67294),n=t(96987),s=t(74622),a=t(74863),c=t(37022),h=t(12473),p=t(71543),d=t(31988),k=t(6498),M=t(38670),C=t(17734),w=t(22304),I=t(30972),F=t(41054),U=t(18446),B=t.n(U),N=t(45697),D=t.n(N),x=t(86896),T=t(46449),u=t(87561),b=t(11727),E=t(52861),A=t(88767),R=t(18206),H=t(63955);const z=(Et,bn,cn,Yn,on)=>{const ze=`/${R.Z}?id=${Et.id}`,Le=new FormData;return bn&&Le.append("files",bn),Le.append("fileInfo",JSON.stringify({alternativeText:Et.alternativeText,caption:Et.caption,folder:Et.folder,name:Et.name})),on(ze,Le,{cancelToken:cn.token,onUploadProgress({total:Ht,loaded:Mn}){Yn(Mn/Ht*100)},headers:{"Content-Type":"multipart/form-data"}}).then(Ht=>Ht.data)},V=()=>{const[Et,bn]=(0,r.useState)(0),{formatMessage:cn}=(0,x.Z)(),Yn=(0,I.lm)(),on=(0,A.useQueryClient)(),ze=(0,r.useRef)(E.default.CancelToken.source()),{post:Le}=(0,I.kY)(),Ht=(0,A.useMutation)(({asset:Sr,file:Xr})=>z(Sr,Xr,ze.current,bn,Le),{onSuccess(){on.refetchQueries([R.Z,"assets"],{active:!0}),on.refetchQueries([R.Z,"asset-count"],{active:!0}),on.refetchQueries([R.Z,"folders"],{active:!0})},onError(Sr){Sr.response.status===403?Yn({type:"info",message:{id:(0,H.OB)("permissions.not-allowed.update")}}):Yn({type:"warning",message:Sr.message})}});return{...Ht,cancel:()=>ze.current.cancel(cn({id:(0,H.OB)("modal.upload.cancelled"),defaultMessage:""})),editAsset:(Sr,Xr)=>Ht.mutateAsync({asset:Sr,file:Xr}),progress:Et,status:Ht.status}};var $=t(81138),ee=t(55124),q=t(27902),oe=t(71381),X=t(36854),pe=t(10574);const Ie=()=>{const{formatMessage:Et}=(0,x.Z)();return r.createElement(X.x,null,r.createElement(pe.Z,{fontWeight:"bold",textColor:"neutral800",as:"h2",id:"title"},Et({id:"global.details",defaultMessage:"Details"})))};var se=t(96208),be=t(54425),fe=t(95998),ue=t(1578),we=t(33129),Me=t.n(we);const Ce=1,Ne=()=>{const Et=(0,r.useRef)(),[bn,cn]=(0,r.useState)(!1),[Yn,on]=(0,r.useState)({width:void 0,height:void 0});(0,r.useEffect)(()=>()=>{Et.current&&Et.current.destroy()},[]);const ze=({detail:{height:tr,width:Sr}})=>{const Xr=Math.round(Sr),gi=Math.round(tr);on({width:Xr,height:gi})};return{crop:tr=>{Et.current||(Et.current=new(Me())(tr,{modal:!0,initialAspectRatio:16/9,movable:!0,zoomable:!1,cropBoxResizable:!0,background:!1,crop:ze}),cn(!0))},produceFile:(tr,Sr,Xr)=>new Promise((gi,Pi)=>{Et.current?Et.current.getCroppedCanvas().toBlob(vr=>{gi(new File([vr],tr,{type:Sr,lastModifiedDate:Xr}))},Sr,Ce):Pi(new Error("The cropper has not been instantiated: make sure to call the crop() function before calling produceFile()."))}),stopCropping:()=>{Et.current&&(Et.current.destroy(),Et.current=void 0,cn(!1))},isCropping:bn,isCropperReady:Boolean(Et.current),...Yn}};var Ye=t(33745);const mt=async(Et,bn)=>{const cn=await fetch(Et).then(ze=>ze.blob()),Yn=window.URL.createObjectURL(cn),on=document.createElement("a");on.href=Yn,on.setAttribute("download",bn),on.click()};var Ct=t(93593),ln=t(85621),$e=t(11429);const Qe=(Et,bn)=>{const{del:cn}=(0,I.tg)();return cn(`/upload/${Et}/${bn}`)},bt=Et=>{const bn=(0,I.lm)(),cn=(0,A.useQueryClient)(),Yn=(0,A.useMutation)(ze=>Qe("files",ze),{onSuccess(){cn.refetchQueries([R.Z,"assets"],{active:!0}),cn.refetchQueries([R.Z,"asset-count"],{active:!0}),bn({type:"success",message:{id:"modal.remove.success-label",defaultMessage:"Elements have been successfully deleted."}}),Et()},onError(ze){bn({type:"warning",message:ze.message})}});return{...Yn,removeAsset:ze=>Yn.mutate(ze)}},It=({onClose:Et,asset:bn})=>{const{isLoading:cn,removeAsset:Yn}=bt(()=>Et(null)),on=()=>{Yn(bn.id)};return r.createElement(I.QH,{isConfirmButtonLoading:cn,isOpen:!0,onToggleDialog:Et,onConfirm:on})};It.propTypes={onClose:D().func.isRequired,asset:D().shape({id:D().number,height:D().number,width:D().number,size:D().number,createdAt:D().string,ext:D().string,name:D().string,url:D().string}).isRequired};var mn=t(54607),un=t(6876);const Be=(0,T.default)(n.k)`
  border-radius: ${({theme:Et})=>Et.borderRadius} ${({theme:Et})=>Et.borderRadius} 0 0;
  background: linear-gradient(180deg, #ffffff 0%, #f6f6f9 121.48%);
`,je=(0,r.forwardRef)(({mime:Et,url:bn,name:cn,...Yn},on)=>{const[ze]=(0,I.Yw)("strapi-admin-language","en");return Et.includes(b.h3.Image)?r.createElement("img",{ref:on,src:bn,alt:cn,...Yn}):Et.includes(b.h3.Video)?r.createElement("video",{controls:!0,src:bn,ref:on,...Yn},r.createElement("track",{label:cn,default:!0,kind:"captions",srcLang:ze,src:""})):Et.includes(b.h3.Audio)?r.createElement("audio",{controls:!0,src:bn,ref:on,...Yn},cn):Et.includes("pdf")?r.createElement(Be,{justifyContent:"center",...Yn},r.createElement(mn.Z,{"aria-label":cn})):r.createElement(Be,{justifyContent:"center",...Yn},r.createElement(un.Z,{"aria-label":cn}))});je.displayName="AssetPreview",je.propTypes={mime:D().string.isRequired,name:D().string.isRequired,url:D().string.isRequired};var $t=t(16607),et=t(18787);const Kt=(0,T.default)($t.x)`
  position: relative;
`,kn=T.default.div`
  position: relative;
  text-align: center;
  background: repeating-conic-gradient(
      ${({theme:Et})=>Et.colors.neutral100} 0% 25%,
      transparent 0% 50%
    )
    50% / 20px 20px;

  svg {
    font-size: 3rem;
    height: ${264/16}rem;
  }

  img,
  video {
    margin: 0;
    padding: 0;
    max-height: ${264/16}rem;
    max-width: 100%;
  }
`,Tn=(0,T.default)(n.k)`
  height: ${52/16}rem;
  background-color: ${({blurry:Et})=>Et?"rgba(33, 33, 52, 0.4)":void 0};
`,ht=(0,T.default)(n.k)`
  z-index: 1;
  height: ${52/16}rem;
  position: absolute;
  background-color: rgba(33, 33, 52, 0.4);
  width: 100%;
`,ot=(0,T.default)(et.C)`
  span {
    color: inherit;
    font-weight: ${({theme:Et})=>Et.fontWeights.regular};
  }
`,Je=T.default.div`
  position: absolute;
  z-index: 2;
  height: 100%;
  width: 100%;
`;var wt=t(52624),ft=t(40563),vn=t(35771),ut=t(18226);const Wt=({onCancel:Et,onValidate:bn,onDuplicate:cn})=>{const{formatMessage:Yn}=(0,x.Z)();return r.createElement(wt.i,{onEscape:Et},r.createElement(ht,{justifyContent:"flex-end",paddingLeft:3,paddingRight:3},r.createElement(n.k,{gap:1},r.createElement(se.h,{label:Yn({id:(0,Ct.Z)("control-card.stop-crop"),defaultMessage:"Stop cropping"}),icon:r.createElement(vn.Z,null),onClick:Et}),r.createElement(ft.fC,null,r.createElement(ae,{variant:"tertiary",paddingLeft:2,paddingRight:2,endIcon:null},r.createElement(w.T,{as:"span"},Yn({id:(0,Ct.Z)("control-card.crop"),defaultMessage:"Crop"})),r.createElement(ut.Z,{"aria-hidden":!0,focusable:!1,style:{position:"relative",top:2},fill:"#C0C0D0"})),r.createElement(ft.VY,{zIndex:5},r.createElement(ft.ck,{onSelect:bn},Yn({id:(0,Ct.Z)("checkControl.crop-original"),defaultMessage:"Crop the original asset"})),cn&&r.createElement(ft.ck,{onSelect:cn},Yn({id:(0,Ct.Z)("checkControl.crop-duplicate"),defaultMessage:"Duplicate & crop the asset"})))))))},ae=(0,T.default)(ft.xz)`
  svg {
    > g,
    path {
      fill: ${({theme:Et})=>Et.colors.neutral500};
    }
  }

  &:hover {
    svg {
      > g,
      path {
        fill: ${({theme:Et})=>Et.colors.neutral600};
      }
    }
  }

  &:active {
    svg {
      > g,
      path {
        fill: ${({theme:Et})=>Et.colors.neutral400};
      }
    }
  }
`;Wt.defaultProps={onDuplicate:void 0},Wt.propTypes={onCancel:D().func.isRequired,onDuplicate:D().func,onValidate:D().func.isRequired};var ne=t(93379),ge=t.n(ne),ye=t(7795),Xe=t.n(ye),Ze=t(90569),lt=t.n(Ze),_t=t(3565),zt=t.n(_t),Vt=t(19216),sn=t.n(Vt),yn=t(44589),dr=t.n(yn),hr=t(95073),Mr={};Mr.styleTagTransform=dr(),Mr.setAttributes=zt(),Mr.insert=lt().bind(null,"head"),Mr.domAPI=Xe(),Mr.insertStyleElement=sn();var rr=ge()(hr.Z,Mr);const Cr=hr.Z&&hr.Z.locals?hr.Z.locals:void 0,Ur=({asset:Et,canUpdate:bn,canCopyLink:cn,canDownload:Yn,onDelete:on,onCropFinish:ze,onCropStart:Le,onCropCancel:Ht,replacementFile:Mn,trackedLocation:tr})=>{const{trackUsage:Sr}=(0,I.rS)(),Xr=(0,r.useRef)(null),[gi,Pi]=(0,r.useState)(!1),[ii,vr]=(0,r.useState)(null),[at,it]=(0,r.useState)((0,H.eM)(Et,!1)),[Re,ke]=(0,r.useState)((0,H.eM)(Et,!0)),{formatMessage:Pe}=(0,x.Z)(),[Te,Mt]=(0,r.useState)(!1),{crop:qt,produceFile:Rn,stopCropping:Qn,isCropping:ur,isCropperReady:On,width:ct,height:Zt}=Ne(),{editAsset:Cn,error:Pn,isLoading:Kn,progress:Rt,cancel:Ke}=V(),{upload:Oe,isLoading:Ge,cancel:Ft,error:Qt,progress:wn}=(0,Ye.V)();(0,r.useEffect)(()=>{if(Mn){const Or=URL.createObjectURL(Mn);Et.isLocal&&(Et.url=Or),it(Or),ke(Or)}},[Mn,Et]),(0,r.useEffect)(()=>{ii===!1&&(Qn(),Ht())},[ii,Qn,Ht,ze]),(0,r.useEffect)(()=>{ii&&gi&&(qt(Xr.current),Le())},[gi,ii,Le,qt]);const Gn=async()=>{const Or={...Et,width:ct,height:Zt,folder:Et.folder?.id},oi=await Rn(Or.name,Or.mime,Or.updatedAt);let si,Fi;if(Et.isLocal)si=URL.createObjectURL(oi),Fi=si,Et.url=si,Et.rawFile=oi,Sr("didCropFile",{duplicatedFile:null,location:tr});else{const $i=await Cn(Or,oi);si=(0,H.eM)($i,!1),Fi=(0,H.eM)($i,!0),Sr("didCropFile",{duplicatedFile:!1,location:tr})}it(si),ke(Fi),vr(!1)},ir=ur&&!Kn,br=async()=>{const Or={...Et,width:ct,height:Zt},oi=await Rn(Or.name,Or.mime,Or.updatedAt);await Oe({name:oi.name,rawFile:oi},Et.folder?.id),Sr("didCropFile",{duplicatedFile:!0,location:tr}),vr(!1),ze()},fr=()=>{vr(!1)},Er=()=>{vr(!0)};return r.createElement(r.Fragment,null,r.createElement(Kt,{hasRadius:!0,background:"neutral150",borderColor:"neutral200"},On&&ir&&r.createElement(Wt,{onValidate:Gn,onDuplicate:Et.isLocal?void 0:br,onCancel:fr}),r.createElement(Tn,{paddingLeft:3,paddingRight:3,justifyContent:"flex-end"},r.createElement(n.k,{gap:1},bn&&!Et.isLocal&&r.createElement(se.h,{label:Pe({id:"global.delete",defaultMessage:"Delete"}),icon:r.createElement(be.Z,null),onClick:()=>Mt(!0)}),Yn&&r.createElement(se.h,{label:Pe({id:(0,Ct.Z)("control-card.download"),defaultMessage:"Download"}),icon:r.createElement(fe.Z,null),onClick:()=>mt(at,Et.name)}),cn&&r.createElement(ln.u,{url:at}),bn&&Et.mime.includes(b.h3.Image)&&r.createElement(se.h,{label:Pe({id:(0,Ct.Z)("control-card.crop"),defaultMessage:"Crop"}),icon:r.createElement(ue.Z,null),onClick:Er}))),r.createElement(kn,null,Kn&&r.createElement(Je,null,r.createElement($e.t,{error:Pn,onCancel:Ke,progress:Rt})),Ge&&r.createElement(Je,null,r.createElement($e.t,{error:Qt,onCancel:Ft,progress:wn})),r.createElement(je,{ref:Xr,mime:Et.mime,name:Et.name,url:ii?at:Re,onLoad:()=>{(Et.isLocal||ii)&&Pi(!0)}})),r.createElement(Tn,{paddingLeft:2,paddingRight:2,justifyContent:"flex-end",blurry:ir},ir&&ct&&Zt&&r.createElement(ot,{background:"neutral900",color:"neutral0"},ct&&Zt?`${Zt}\u2715${ct}`:"N/A"))),Te&&r.createElement(It,{onClose:()=>{Mt(!1),on(null)},asset:Et}))};Ur.defaultProps={replacementFile:void 0,trackedLocation:void 0},Ur.propTypes={canUpdate:D().bool.isRequired,canCopyLink:D().bool.isRequired,canDownload:D().bool.isRequired,replacementFile:D().instanceOf(File),asset:b.pw.isRequired,onDelete:D().func.isRequired,onCropFinish:D().func.isRequired,onCropStart:D().func.isRequired,onCropCancel:D().func.isRequired,trackedLocation:D().string};const $r=({onSelectMedia:Et,acceptedMime:bn,trackedLocation:cn,...Yn})=>{const{formatMessage:on}=(0,x.Z)(),ze=(0,r.useRef)(null),{trackUsage:Le}=(0,I.rS)(),Ht=tr=>{tr.preventDefault(),cn&&Le("didReplaceMedia",{location:cn}),ze.current.click()},Mn=()=>{const tr=ze.current.files[0];Et(tr)};return r.createElement(r.Fragment,null,r.createElement(h.z,{variant:"secondary",onClick:Ht,...Yn},on({id:(0,H.OB)("control-card.replace-media"),defaultMessage:"Replace media"})),r.createElement(w.T,null,r.createElement("input",{accept:bn,type:"file",name:"file",tabIndex:-1,ref:ze,onChange:Mn,"aria-hidden":!0})))};$r.defaultProps={trackedLocation:void 0},$r.propTypes={acceptedMime:D().string.isRequired,onSelectMedia:D().func.isRequired,trackedLocation:D().string};const li=(0,T.default)(n.k)`
  /* 80px are coming from the Tabs component that is not included in the ModalBody */
  min-height: ${()=>`calc(60vh + ${(0,I.Q1)(80)})`};
`,ri=u.Ry({name:u.Z_().required(),alternativeText:u.Z_(),caption:u.Z_(),folder:u.Rx()}),Bt=({onClose:Et,asset:bn,canUpdate:cn,canCopyLink:Yn,canDownload:on,trackedLocation:ze})=>{const{formatMessage:Le,formatDate:Ht}=(0,x.Z)(),{trackUsage:Mn}=(0,I.rS)(),tr=(0,r.useRef)(null),[Sr,Xr]=(0,r.useState)(!1),[gi,Pi]=(0,r.useState)(),{editAsset:ii,isLoading:vr}=V(),{data:at,isLoading:it}=(0,$.v)({enabled:!0}),Re=async On=>{const ct={...bn,...On,folder:On.parent.value};if(bn.isLocal)Et(ct);else{const Zt=await ii(ct,gi),Cn=bn?.mime.split("/")[0],Pn=bn?.folder?.id?bn.folder.id!==On.parent.value:bn.folder===null&&!!On.parent.value;Mn("didEditMediaLibraryElements",{location:ze,type:Cn,changeLocation:Pn}),Et(Zt)}},ke=()=>{Xr(!0)},Pe=()=>{Xr(!1)},Te=()=>{Xr(!1),Et()},Mt=!cn||Sr,qt=()=>{window.confirm(Le({id:"window.confirm.close-modal.file",defaultMessage:"Are you sure? Your changes will be lost."}))&&Et()},Rn=bn?.folder?.id,Qn=!it&&{name:bn.name,alternativeText:bn.alternativeText??void 0,caption:bn.caption??void 0,parent:{value:Rn??void 0,label:(0,H.d3)(at,Rn)?.label??at[0].label}},ur=On=>{B()(Qn,On)?Et():qt()};return it?r.createElement(s.P,{onClose:()=>ur(),labelledBy:"title"},r.createElement(Ie,null),r.createElement(li,{minHeight:"60vh",justifyContent:"center",paddingTop:4,paddingBottom:4},r.createElement(a.a,null,Le({id:(0,H.OB)("content.isLoading"),defaultMessage:"Content is loading."}))),r.createElement(c.m,{startActions:r.createElement(h.z,{onClick:()=>ur(),variant:"tertiary"},Le({id:"cancel",defaultMessage:"Cancel"}))})):r.createElement(F.J9,{validationSchema:ri,validateOnChange:!1,onSubmit:Re,initialValues:Qn},({values:On,errors:ct,handleChange:Zt,setFieldValue:Cn})=>r.createElement(s.P,{onClose:()=>ur(On),labelledBy:"title"},r.createElement(Ie,null),r.createElement(p.f,null,r.createElement(d.r,{gap:4},r.createElement(k.P,{xs:12,col:6},r.createElement(Ur,{asset:bn,canUpdate:cn,canCopyLink:Yn,canDownload:on,onDelete:Et,onCropFinish:Te,onCropStart:ke,onCropCancel:Pe,replacementFile:gi,trackedLocation:ze})),r.createElement(k.P,{xs:12,col:6},r.createElement(I.l0,{noValidate:!0},r.createElement(n.k,{direction:"column",alignItems:"stretch",gap:3},r.createElement(q.r,{blocks:[{label:Le({id:(0,H.OB)("modal.file-details.size"),defaultMessage:"Size"}),value:(0,ee.Z)(bn.size)},{label:Le({id:(0,H.OB)("modal.file-details.dimensions"),defaultMessage:"Dimensions"}),value:bn.height&&bn.width?`${bn.width}\u2715${bn.height}`:null},{label:Le({id:(0,H.OB)("modal.file-details.date"),defaultMessage:"Date"}),value:Ht(new Date(bn.createdAt))},{label:Le({id:(0,H.OB)("modal.file-details.extension"),defaultMessage:"Extension"}),value:(0,I.mD)(bn.ext)},{label:Le({id:(0,H.OB)("modal.file-details.id"),defaultMessage:"Asset ID"}),value:bn.id}]}),r.createElement(M.o,{label:Le({id:(0,H.OB)("form.input.label.file-name"),defaultMessage:"File name"}),name:"name",value:On.name,error:ct.name,onChange:Zt,disabled:Mt}),r.createElement(M.o,{label:Le({id:(0,H.OB)("form.input.label.file-alt"),defaultMessage:"Alternative text"}),name:"alternativeText",hint:Le({id:(0,H.OB)("form.input.decription.file-alt"),defaultMessage:"This text will be displayed if the asset can\u2019t be shown."}),value:On.alternativeText,error:ct.alternativeText,onChange:Zt,disabled:Mt}),r.createElement(M.o,{label:Le({id:(0,H.OB)("form.input.label.file-caption"),defaultMessage:"Caption"}),name:"caption",value:On.caption,error:ct.caption,onChange:Zt,disabled:Mt}),r.createElement(n.k,{direction:"column",alignItems:"stretch",gap:1},r.createElement(C.Q,{htmlFor:"asset-folder"},Le({id:(0,H.OB)("form.input.label.file-location"),defaultMessage:"Location"})),r.createElement(oe.Z,{name:"parent",defaultValue:On.parent,options:at,onChange:Pn=>{Cn("parent",Pn)},menuPortalTarget:document.querySelector("body"),inputId:"asset-folder",isDisabled:Mt,error:ct?.parent,ariaErrorMessage:"folder-parent-error"}))),r.createElement(w.T,null,r.createElement("button",{type:"submit",tabIndex:-1,ref:tr,disabled:Mt},Le({id:"submit",defaultMessage:"Submit"}))))))),r.createElement(c.m,{startActions:r.createElement(h.z,{onClick:()=>ur(On),variant:"tertiary"},Le({id:"global.cancel",defaultMessage:"Cancel"})),endActions:r.createElement(r.Fragment,null,r.createElement($r,{onSelectMedia:Pi,acceptedMime:bn.mime,disabled:Mt,trackedLocation:ze}),r.createElement(h.z,{onClick:()=>tr.current.click(),loading:vr,disabled:Mt},Le({id:"global.finish",defaultMessage:"Finish"})))})))};Bt.defaultProps={trackedLocation:void 0},Bt.propTypes={asset:b.pw.isRequired,canUpdate:D().bool.isRequired,canCopyLink:D().bool.isRequired,canDownload:D().bool.isRequired,onClose:D().func.isRequired,trackedLocation:D().string}},4114:(Z,v,t)=>{"use strict";t.d(v,{f:()=>be});var r=t(67294),n=t(74622),s=t(71543),a=t(96987),c=t(74863),h=t(31988),p=t(6498),d=t(38670),k=t(17734),M=t(10574),C=t(37022),w=t(12473),I=t(30972),F=t(41054),U=t(41609),B=t.n(U),N=t(45697),D=t.n(N),x=t(86896),T=t(87561),u=t(11727),b=t(29731),E=t(88767),A=t(18206);const R=(fe,ue,{attrs:we,id:Me})=>(!!Me?fe:ue)(`/upload/folders/${Me??""}`,we).then(Ye=>Ye.data),H=()=>{const fe=(0,E.useQueryClient)(),{put:ue,post:we}=(0,I.kY)(),Me=(0,E.useMutation)((...Ne)=>R(ue,we,...Ne),{onSuccess(){fe.refetchQueries([A.Z,"folders"],{active:!0}),fe.refetchQueries([A.Z,"folder","structure"],{active:!0})}});return{...Me,editFolder:(Ne,Ye)=>Me.mutateAsync({attrs:Ne,id:Ye}),status:Me.status}};var z=t(81138),V=t(60269),$=t(63955),ee=t(27902),q=t(71381),oe=t(36854);const X=({isEditing:fe})=>{const{formatMessage:ue}=(0,x.Z)();return r.createElement(oe.x,null,r.createElement(M.Z,{fontWeight:"bold",textColor:"neutral800",as:"h2",id:"title"},ue(fe?{id:(0,$.OB)("modal.folder.edit.title"),defaultMessage:"Edit folder"}:{id:(0,$.OB)("modal.folder.create.title"),defaultMessage:"Add new folder"})))};X.defaultProps={isEditing:!1},X.propTypes={isEditing:D().bool};const pe=({onClose:fe,onConfirm:ue})=>r.createElement(I.QH,{isConfirmButtonLoading:!1,isOpen:!0,onToggleDialog:fe,onConfirm:ue});pe.propTypes={onClose:D().func.isRequired,onConfirm:D().func.isRequired};const Ie=pe,se=T.Ry({name:T.Z_().required(),parent:T.Ry({label:T.Z_(),value:T.Rx().nullable(!0)}).nullable(!0)}),be=({onClose:fe,folder:ue,location:we,parentFolderId:Me})=>{const{data:Ce,isLoading:Ne}=(0,z.v)({enabled:!0}),{canCreate:Ye,isLoading:mt,canUpdate:Ct}=(0,V.y)(),[ln,$e]=(0,r.useState)(!1),{formatMessage:Qe,formatDate:bt}=(0,x.Z)(),{trackUsage:It}=(0,I.rS)(),{editFolder:mn,isLoading:un}=H(),{remove:Be}=(0,b.K)(),je=(0,I.lm)(),$t=mt||Ne,et=!!ue,Kt=ue&&!Ct||!ue&&!Ye,kn=!Ne&&{name:ue?.name??"",parent:{value:Me?parseInt(Me,10):void 0,label:Me?(0,$.d3)(Ce,parseInt(Me,10))?.label:Ce[0].label}},Tn=async(ot,{setErrors:Je})=>{try{if(await mn({...ot,parent:ot.parent.value??null},ue?.id),je({type:"success",message:Qe(et?{id:(0,$.OB)("modal.folder-notification-edited-success"),defaultMessage:"Folder successfully edited"}:{id:(0,$.OB)("modal.folder-notification-created-success"),defaultMessage:"Folder successfully created"})}),et){const wt=Me?parseInt(Me,10)!==ot.parent.value:Me===null&&!!ot.parent.value;It("didEditMediaLibraryElements",{location:we,type:"folder",changeLocation:wt})}else It("didAddMediaLibraryFolders",{location:we});fe({created:!0})}catch(wt){const ft=(0,I.nn)(wt,{getTrad:$.OB}),vn=Object.entries(ft).reduce((ut,[Wt,ae])=>(ut[Wt]=ae.defaultMessage,ut),{});B()(vn)||Je(vn)}},ht=async()=>{await Be([ue]),$e(!1),fe()};return $t?r.createElement(n.P,{onClose:()=>fe(),labelledBy:"title"},r.createElement(X,{isEditing:et}),r.createElement(s.f,null,r.createElement(a.k,{justifyContent:"center",paddingTop:4,paddingBottom:4},r.createElement(c.a,null,Qe({id:(0,$.OB)("content.isLoading"),defaultMessage:"Content is loading."}))))):r.createElement(n.P,{onClose:()=>fe(),labelledBy:"title"},r.createElement(F.J9,{validationSchema:se,validateOnChange:!1,onSubmit:Tn,initialValues:kn},({values:ot,errors:Je,handleChange:wt,setFieldValue:ft})=>r.createElement(I.l0,{noValidate:!0},r.createElement(X,{isEditing:et}),r.createElement(s.f,null,r.createElement(h.r,{gap:4},et&&r.createElement(p.P,{xs:12,col:12},r.createElement(ee.r,{blocks:[{label:Qe({id:(0,$.OB)("modal.folder.create.elements"),defaultMessage:"Elements"}),value:Qe({id:(0,$.OB)("modal.folder.elements.count"),defaultMessage:"{folderCount} folders, {assetCount} assets"},{assetCount:ue?.files?.count??0,folderCount:ue?.children?.count??0})},{label:Qe({id:(0,$.OB)("modal.folder.create.creation-date"),defaultMessage:"Creation Date"}),value:bt(new Date(ue.createdAt))}]})),r.createElement(p.P,{xs:12,col:6},r.createElement(d.o,{label:Qe({id:(0,$.OB)("form.input.label.folder-name"),defaultMessage:"Name"}),name:"name",value:ot.name,error:Je.name,onChange:wt,disabled:Kt})),r.createElement(p.P,{xs:12,col:6},r.createElement(a.k,{direction:"column",alignItems:"stretch",gap:1},r.createElement(k.Q,{htmlFor:"folder-parent"},Qe({id:(0,$.OB)("form.input.label.folder-location"),defaultMessage:"Location"})),r.createElement(q.Z,{options:Ce,onChange:vn=>{ft("parent",vn)},isDisabled:Kt,defaultValue:ot.parent,name:"parent",menuPortalTarget:document.querySelector("body"),inputId:"folder-parent",disabled:Kt,error:Je?.parent,ariaErrorMessage:"folder-parent-error"}),Je.parent&&r.createElement(M.Z,{variant:"pi",as:"p",id:"folder-parent-error",textColor:"danger600"},Je.parent))))),r.createElement(C.m,{startActions:r.createElement(w.z,{onClick:()=>fe(),variant:"tertiary",name:"cancel"},Qe({id:"cancel",defaultMessage:"Cancel"})),endActions:r.createElement(a.k,{gap:2},et&&Ct&&r.createElement(w.z,{type:"button",variant:"danger-light",onClick:()=>$e(!0),name:"delete",disabled:!Ct||un},Qe({id:(0,$.OB)("modal.folder.create.delete"),defaultMessage:"Delete folder"})),r.createElement(w.z,{name:"submit",loading:un,disabled:Kt,type:"submit"},Qe(et?{id:(0,$.OB)("modal.folder.edit.submit"),defaultMessage:"Save"}:{id:(0,$.OB)("modal.folder.create.submit"),defaultMessage:"Create"})))}))),ln&&r.createElement(Ie,{onClose:()=>$e(!1),onConfirm:ht}))};be.defaultProps={folder:void 0,location:void 0,parentFolderId:null},be.propTypes={folder:u.nx,location:D().string,onClose:D().func.isRequired,parentFolderId:D().oneOfType([D().string,D().number])}},54053:(Z,v,t)=>{"use strict";t.d(v,{i:()=>U});var r=t(67294),n=t(16607),s=t(96987),a=t(85200),c=t(10574),h=t(94355),p=t(45697),d=t.n(p),k=t(46449);const M=(0,k.default)(n.x)`
  background: linear-gradient(
    180deg,
    rgba(234, 234, 239, 0) 0%,
    ${({theme:B})=>B.colors.neutral200} 100%
  );
  opacity: 0.33;
`,C={S:180,M:250},w={S:138,M:234},I=(0,k.default)(n.x)`
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(${({size:B})=>`${C[B]}px`}, 1fr));
  grid-gap: ${({theme:B})=>B.spaces[4]};
`,F=({count:B,size:N})=>r.createElement(I,{size:N},Array(B).fill(null).map((D,x)=>r.createElement(M,{key:`empty-asset-card-${x}`,height:`${w[N]}px`,hasRadius:!0})));F.propTypes={count:d().number.isRequired,size:d().string.isRequired};const U=({icon:B,content:N,action:D,size:x,count:T})=>r.createElement(n.x,{position:"relative"},r.createElement(F,{size:x,count:T}),r.createElement(n.x,{position:"absolute",top:11,width:"100%"},r.createElement(s.k,{direction:"column",alignItems:"center",gap:4,textAlign:"center"},r.createElement(s.k,{direction:"column",alignItems:"center",gap:6},r.createElement(a.J,{as:B||h.Z,color:"",width:"160px",height:"88px"}),r.createElement(c.Z,{variant:"delta",as:"p",textColor:"neutral600"},N)),D)));U.defaultProps={action:void 0,icon:void 0,size:"M",count:12},U.propTypes={action:d().node,icon:d().func,content:d().string.isRequired,size:d().string,count:d().number}},99398:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>C});var r=t(67294),n=t(45697),s=t.n(n),a=t(16607),c=t(96724),h=t(35771),p=t(86896);const d=({attribute:w,filter:I,onClick:F,operator:U,value:B})=>{const{formatMessage:N,formatDate:D,formatTime:x}=(0,p.Z)(),T=()=>{F(I)},{fieldSchema:u}=w,b=u.type;let E=B;if(b==="date"&&(E=D(B,{dateStyle:"full"})),b==="datetime"&&(E=D(B,{dateStyle:"full",timeStyle:"short"})),b==="time"){const[R,H]=B.split(":"),z=new Date;z.setHours(R),z.setMinutes(H),E=x(z,{numeric:"auto",style:"short"})}const A=`${w.metadatas.label} ${N({id:`components.FilterOptions.FILTER_TYPES.${U}`,defaultMessage:U})} ${E}`;return r.createElement(a.x,{padding:1},r.createElement(c.V,{onClick:T,icon:r.createElement(h.Z,null)},A))};d.propTypes={attribute:s().shape({name:s().string.isRequired,fieldSchema:s().object.isRequired,metadatas:s().shape({label:s().string.isRequired}).isRequired}).isRequired,filter:s().object.isRequired,onClick:s().func.isRequired,operator:s().string.isRequired,value:s().string.isRequired};const k=d,M=({appliedFilters:w,filtersSchema:I,onRemoveFilter:F})=>{const U=B=>{const N=w.filter(D=>{const x=Object.keys(B)[0],T=Object.keys(B[x])[0],u=B[x][T];return D[x]?.[T]!==u});F(N)};return w.map((B,N)=>{const D=Object.keys(B)[0],x=I.find(({name:A})=>A===D),T=B[D],u=Object.keys(T)[0];let b=T[u],E=u;return x.name==="mime"&&(E=u==="$contains"?"$eq":"$ne",u==="$not"&&(b="file",E="$eq"),["image","video"].includes(b[0])&&["image","video"].includes(b[1])&&(b="file",E="$ne")),r.createElement(k,{key:`${D}-${N}`,attribute:x,filter:B,onClick:U,operator:E,value:b})})};M.defaultProps={filtersSchema:[]},M.propTypes={appliedFilters:s().array.isRequired,filtersSchema:s().arrayOf(s().shape({name:s().string.isRequired,metadatas:s().shape({label:s().string}),fieldSchema:s().shape({type:s().string,mainField:s().shape({name:s().string,type:s().string})})})),onRemoveFilter:s().func.isRequired};const C=M},32269:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>D});var r=t(67294),n=t(59604),s=t(96987),a=t(16607),c=t(59586),h=t(40933),p=t(12473),d=t(83598),k=t(45697),M=t.n(k),C=t(86896),w=t(97062);const I=({label:x,onChange:T,options:u,type:b,value:E})=>{const{formatMessage:A}=(0,C.Z)();return b==="date"?r.createElement(w.x,{clearLabel:A({id:"clearLabel",defaultMessage:"Clear"}),ariaLabel:x,name:"datetimepicker",onChange:R=>{const H=R?new Date(R).toISOString():"";T(H)},onClear:()=>T(""),value:E?new Date(E):void 0,selectedDateLabel:R=>`Date picker, current is ${R}`,selectButtonTitle:A({id:"selectButtonTitle",defaultMessage:"Select"})}):r.createElement(c.P,{"aria-label":x,onChange:T,value:E},u.map(R=>r.createElement(h.W,{key:R.value,value:R.value},R.label)))};I.defaultProps={label:"",options:[],value:""},I.propTypes={label:M().string,onChange:M().func.isRequired,options:M().arrayOf(M().shape({label:M().string.isRequired,value:M().string.isRequired})),type:M().string.isRequired,value:M().any};const F=I,B=({fieldSchema:{type:x,mainField:T}})=>{switch(T?.schema.type?T.schema.type:x){case"enumeration":return[{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$eq",defaultMessage:"is"},value:"$contains"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$ne",defaultMessage:"is not"},value:"$notContains"}];case"date":return[{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$eq",defaultMessage:"is"},value:"$eq"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$ne",defaultMessage:"is not"},value:"$ne"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$gt",defaultMessage:"is greater than"},value:"$gt"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$gte",defaultMessage:"is greater than or equal to"},value:"$gte"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$lt",defaultMessage:"is less than"},value:"$lt"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$lte",defaultMessage:"is less than or equal to"},value:"$lte"}];default:return[{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$eq",defaultMessage:"is"},value:"$eq"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$eqi",defaultMessage:"is (case insensitive)"},value:"$eqi"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$ne",defaultMessage:"is not"},value:"$ne"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$null",defaultMessage:"is null"},value:"$null"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$notNull",defaultMessage:"is not null"},value:"$notNull"}]}},N=({displayedFilters:x,filters:T,onSubmit:u,onToggle:b,source:E})=>{const{formatMessage:A}=(0,C.Z)(),[R,H]=(0,r.useState)({name:"createdAt",filter:"$eq",value:""}),z=q=>{const oe=x.find(be=>be.name===q),{fieldSchema:{type:X,options:pe}}=oe;let Ie="";X==="enumeration"&&(Ie=pe[0].value);const se=B(oe)[0].value;H({name:q,filter:se,value:Ie})},V=q=>{R.name==="mime"?H(oe=>({...oe,filter:q,value:"image"})):H(oe=>({...oe,filter:q,value:""}))},$=q=>{if(q.preventDefault(),q.stopPropagation(),R.value){if(R.name==="mime"){const X=T.filter(we=>Object.keys(we)[0]==="mime");if(R.value==="file"){const we=T.filter(Ye=>Object.keys(Ye)[0]!=="mime");let Me=!1,Ce;if(R.filter==="$contains"?(Me=X.find(Ye=>Ye.mime?.$not?.$contains!==void 0)!==void 0,Ce={mime:{$not:{$contains:["image","video"]}}}):(Me=X.find(Ye=>Array.isArray(Ye.mime?.$contains))!==void 0,Ce={mime:{$contains:["image","video"]}}),Me){b();return}const Ne=[...we,Ce];u(Ne),b();return}if(X.find(we=>we.mime[R.filter]===R.value)!==void 0){b();return}const Ie=T.filter(we=>Object.keys(we)[0]!=="mime"?!0:!(we.mime?.$not?.$contains!==void 0||Array.isArray(we?.mime?.$contains))),se=R.filter==="$contains"?"$notContains":"$contains",be=Ie.findIndex(we=>we.mime?.[se]===R.value),fe=be!==-1;let ue={[R.name]:{[R.filter]:R.value}};if(!fe){const we=[...Ie,ue];u(we),b();return}if(fe){const we=Ie.slice();we.splice(be,1,ue),u(we),b()}return}if(!(T.find(X=>X[R.name]&&X[R.name]?.[R.filter]===R.value)!==void 0)){let X={[R.name]:{[R.filter]:R.value}};const pe=[...T,X];u(pe)}}b()},ee=x.find(q=>q.name===R.name);return r.createElement(n.J2,{onDismiss:b,source:E,padding:3,spacing:4},r.createElement("form",{onSubmit:$},r.createElement(s.k,{direction:"column",alignItems:"stretch",gap:1,style:{minWidth:184}},r.createElement(a.x,null,r.createElement(c.P,{"aria-label":A({id:"app.utils.select-field",defaultMessage:"Select field"}),name:"name",size:"M",onChange:z,value:R.name},x.map(q=>r.createElement(h.W,{key:q.name,value:q.name},q.metadatas.label)))),r.createElement(a.x,null,r.createElement(c.P,{"aria-label":A({id:"app.utils.select-filter",defaultMessage:"Select filter"}),name:"filter",size:"M",value:R.filter,onChange:V},B(ee).map(q=>r.createElement(h.W,{key:q.value,value:q.value},A(q.intlLabel))))),r.createElement(a.x,null,r.createElement(F,{...ee.metadatas,...ee.fieldSchema,value:R.value,onChange:q=>H(oe=>({...oe,value:q}))})),r.createElement(a.x,null,r.createElement(p.z,{size:"L",variant:"secondary",startIcon:r.createElement(d.Z,null),type:"submit",fullWidth:!0},A({id:"app.utils.add-filter",defaultMessage:"Add filter"}))))))};N.propTypes={displayedFilters:M().arrayOf(M().shape({name:M().string.isRequired,metadatas:M().shape({label:M().string}),fieldSchema:M().shape({type:M().string})})).isRequired,filters:M().array.isRequired,onSubmit:M().func.isRequired,onToggle:M().func.isRequired,source:M().shape({current:M().instanceOf(Element)}).isRequired};const D=N},28742:(Z,v,t)=>{"use strict";t.d(v,{Ac:()=>u,Bu:()=>E,u6:()=>H,MM:()=>V});var r=t(67294),n=t(16607),s=t(96987),a=t(9053),c=t(30972),h=t(18053),p=t(45697),d=t.n(p),k=t(73727),M=t(46449);const C=(0,r.createContext)({});function w(){return(0,r.useContext)(C)}let I=0;const F=()=>++I,B=$=>(0,r.useRef)(`${$}-${F()}`).current,N=M.default.button`
  height: 100%;
  left: 0;
  position: absolute;
  opacity: 0;
  top: 0;
  width: 100%;

  &:hover,
  &:focus {
    text-decoration: none;
  }
`,D=(0,M.default)(h.Z)`
  path {
    fill: currentColor;
  }
`,x=(0,M.default)(n.x)`
  display: none;
`,T=(0,M.default)(n.x)`
  &:hover,
  &:focus-within {
    ${x} {
      display: ${({isCardActions:$})=>$?"block":""};
    }
  }
`,u=(0,r.forwardRef)(({children:$,id:ee,startAction:q,cardActions:oe,ariaLabel:X,onClick:pe,to:Ie,...se},be)=>{const fe=B(ee),ue=(0,r.useMemo)(()=>({id:fe}),[fe]);return r.createElement(C.Provider,{value:ue},r.createElement(T,{position:"relative",tabIndex:0,isCardActions:!!oe,ref:be,...se},r.createElement(N,{to:Ie||void 0,as:Ie?k.OL:"button",type:Ie?void 0:"button",onClick:pe,tabIndex:-1,"aria-label":X,"aria-hidden":!0}),r.createElement(s.k,{hasRadius:!0,borderStyle:"solid",borderWidth:"1px",borderColor:"neutral150",background:"neutral0",shadow:"tableShadow",padding:3,gap:2,cursor:"pointer"},q,r.createElement(n.x,{hasRadius:!0,background:"secondary100",color:"secondary500",paddingBottom:2,paddingLeft:3,paddingRight:3,paddingTop:2},r.createElement(D,{width:(0,c.Q1)(24),height:(0,c.Q1)(24)})),$,r.createElement(x,null,r.createElement(a.l,{right:4},oe)))))});u.defaultProps={id:void 0,cardActions:null,startAction:null,to:void 0,onClick:void 0},u.propTypes={ariaLabel:d().string.isRequired,children:d().node.isRequired,id:d().string,onClick:d().func,startAction:d().element,cardActions:d().element,to:d().string};const b=(0,M.default)(s.k)`
  user-select: none;
`,E=$=>{const{id:ee}=w();return r.createElement(b,{...$,id:`${ee}-title`,alignItems:"flex-start",direction:"column",maxWidth:"100%",overflow:"hidden",position:"relative"})},A=(0,M.default)(n.x)`
  &:focus {
    outline: 2px solid ${({theme:$})=>$.colors.primary600};
    outline-offset: -2px;
  }
`,R=(0,M.default)(A)`
  text-decoration: none;
`,H=({to:$,...ee})=>$?r.createElement(R,{padding:1,as:k.OL,maxWidth:"100%",to:$,...ee}):r.createElement(A,{padding:1,as:"button",type:"button",maxWidth:"100%",...ee});H.defaultProps={to:void 0},H.propTypes={to:d().string};var z=t(12803);const V=$=>{const{id:ee}=w();return r.createElement(n.x,{position:"relative",zIndex:2},r.createElement(z.C,{"aria-labelledby":`${ee}-title`,...$}))}},52805:(Z,v,t)=>{"use strict";t.d(v,{a:()=>d});var r=t(67294),n=t(52953),s=t(16607),a=t(10574),c=t(31988),h=t(45697),p=t.n(h);const d=({title:k,children:M})=>r.createElement(n.k,{tagName:"article"},k&&r.createElement(s.x,{paddingBottom:2},r.createElement(a.Z,{as:"h2",variant:"delta",fontWeight:"semiBold"},k)),r.createElement(c.r,{gap:4},M));d.defaultProps={title:null},d.propTypes={children:p().node.isRequired,title:p().string}},71381:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>R});var r=t(67294),n=t(30972),s=t(45697),a=t.n(s),c=t(96987),h=t(10574),p=t(85200),d=t(73924),k=t(14981),M=t(86896),C=t(5079),w=t(46449);const I=(0,w.default)(c.k)`
  align-self: flex-end;
  height: ${(0,n.Q1)(22)};
  width: ${(0,n.Q1)(28)};

  &:hover,
  &:focus {
    background-color: ${({theme:H})=>H.colors.primary200};
  }
`,F=({children:H,data:z,selectProps:V,...$})=>{const{formatMessage:ee}=(0,M.Z)(),{depth:q,value:oe,children:X}=z,{maxDisplayDepth:pe,openValues:Ie,onOptionToggle:se}=V,be=Ie.includes(oe);return r.createElement(C.c.Option,{...$},r.createElement(c.k,{alignItems:"start"},r.createElement(h.Z,{textColor:"neutral800",ellipsis:!0},r.createElement("span",{style:{paddingLeft:`${Math.min(q,pe)*14}px`}},H)),X?.length>0&&r.createElement(I,{"aria-label":ee({id:"app.utils.toggle",defaultMessage:"Toggle"}),as:"button",alignItems:"center",hasRadius:!0,justifyContent:"center",marginLeft:"auto",onClick:fe=>{fe.preventDefault(),fe.stopPropagation(),se(oe)}},r.createElement(p.J,{width:(0,n.Q1)(14),color:"neutral500",as:be?d.Z:k.Z}))))};F.propTypes={children:a().node.isRequired,data:a().object.isRequired,onToggle:a().func.isRequired,selectProps:a().shape({maxDisplayDepth:a().number,openValues:a().arrayOf(a().oneOfType([a().string,a().number])),onOptionToggle:a().func}).isRequired};const U=F;var B=t(56618);function N(H,z={}){let V=[];const{value:$}=z,ee=H.find(oe=>oe.value===$);if(!ee)return V;V.push(ee.value);let{parent:q}=ee;for(;q!==void 0;){const oe=H.find(({value:X})=>X===q);V.push(oe.value),q=oe.parent}return V.reverse()}const D=N;function x(H,z){const V=H.find($=>$.value===z);return H.filter($=>$.depth>=V.depth).map($=>$.value)}const T=x,u=H=>!H.parent,b=({options:H,maxDisplayDepth:z,defaultValue:V,...$})=>{const ee=(0,r.useMemo)(()=>(0,B.Z)(H),[H]),q=(0,r.useMemo)(()=>ee.filter(u),[ee]),[oe,X]=(0,r.useState)(q),[pe,Ie]=(0,r.useState)(D(ee,V));(0,r.useEffect)(()=>{if(pe.length===0)X(ee.filter(be=>be.parent===void 0));else{const be=pe.reduce((ue,we)=>(ee.filter(Ce=>Ce.value===we||Ce.parent===we).forEach(Ce=>{const Ne=D(ee,Ce);ue=[...ue,...Ne]}),ue),[]),fe=ee.filter(ue=>be.includes(ue.value));X(fe)}},[pe,ee,q]);const se=be=>{if(pe.includes(be)){const fe=T(ee,be);Ie(ue=>ue.filter(we=>!fe.includes(we)))}else Ie(fe=>[...fe,be])};return r.createElement(n.JV,{components:{Option:U},options:oe,defaultValue:V,isSearchable:!1,maxDisplayDepth:z,openValues:pe,onOptionToggle:se,...$})},E=a().shape({value:a().oneOfType([a().number,a().string]),label:a().string.isRequired,children:a().array});E.children=a().arrayOf(a().shape(E)),E.defaultProps={children:void 0},b.defaultProps={defaultValue:void 0,maxDisplayDepth:5},b.propTypes={defaultValue:a().shape({value:a().oneOfType([a().number,a().string])}),maxDisplayDepth:a().number,options:a().arrayOf(E).isRequired};const R=b},56618:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>r});function r(n,s,a=0){return n.flatMap(c=>c.children?[{...c,parent:s?.value,depth:a},...r(c.children,c,a+1)]:{...c,depth:a,parent:s?.value})}},45687:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>k});var r=t(67294),n=t(90090),s=t(45697),a=t.n(s),c=t(86896),h=t(11727),p=t(63955);const d=({onChangeSort:M,value:C})=>{const{formatMessage:w}=(0,c.Z)();return r.createElement(n.q4,{size:"S",value:C,onChange:I=>M(I),"aria-label":w({id:(0,p.OB)("sort.label"),defaultMessage:"Sort by"}),placeholder:w({id:(0,p.OB)("sort.label"),defaultMessage:"Sort by"})},h.Fo.map(I=>r.createElement(n.ag,{key:I.key,value:I.value},w({id:(0,p.OB)(I.key),defaultMessage:`${I.value}`}))))};d.defaultProps={value:void 0},d.propTypes={onChangeSort:a().func.isRequired,value:a().string};const k=d},93184:(Z,v,t)=>{"use strict";t.d(v,{b:()=>Ie});var r=t(67294),n=t(5923),s=t(3547),a=t(29299),c=t(69398),h=t(12803),p=t(96208),d=t(81315),k=t(10574),M=t(22304),C=t(88392),w=t(58471),I=t(45697),F=t.n(I),U=t(86896),B=t(11727),N=t(63955),D=t(35752),x=t(96987),T=t(30972),u=t(81851),b=t(2382),E=t(73727),A=t(23855),R=t(16607),H=t(52544),z=t(85200),V=t(18053),$=t(46449),ee=t(72160);const q=(0,$.default)(R.x)`
  figure {
    width: ${({theme:se})=>se.spaces[7]};
    height: ${({theme:se})=>se.spaces[7]};
  }

  canvas,
  video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }
`,oe=({type:se,content:be})=>{if(se==="folder")return r.createElement(H.L,{background:"secondary100",textColor:"secondary600"},r.createElement(z.J,{color:"secondary500",width:(0,T.Q1)(16),height:(0,T.Q1)(16),as:V.Z}));const{alternativeText:fe,ext:ue,formats:we,mime:Me,name:Ce,url:Ne}=be;if(Me.includes(B.h3.Image)){const Ye=(0,T.CR)(we?.thumbnail?.url)??(0,T.CR)(Ne);return r.createElement(H.q,{src:Ye,alt:fe,preview:!0})}return Me.includes(B.h3.Video)?r.createElement(q,null,r.createElement(ee.F,{url:(0,N.eM)(be,!0),mime:Me,alt:fe??Ce})):r.createElement(H.L,{background:"secondary100",textColor:"secondary600"},(0,T.mD)(ue))};oe.propTypes={content:F().shape({alternativeText:F().string,ext:F().string,formats:F().shape({thumbnail:F().shape({url:F().string})}),mime:F().string,name:F().string,url:F().string}).isRequired,type:F().string.isRequired};const X=({cellType:se,contentType:be,content:fe,name:ue})=>{const{formatDate:we,formatMessage:Me}=(0,U.Z)();switch(se){case"image":return r.createElement(oe,{type:be,content:fe});case"date":return r.createElement(k.Z,null,we((0,A.Z)(fe[ue]),{dateStyle:"full"}));case"size":return be==="folder"?r.createElement(k.Z,{"aria-label":Me({id:"list.table.content.empty-label",defaultMessage:"This field is empty"})},"-"):r.createElement(k.Z,null,(0,N.td)(fe[ue]));case"ext":return be==="folder"?r.createElement(k.Z,{"aria-label":Me({id:"list.table.content.empty-label",defaultMessage:"This field is empty"})},"-"):r.createElement(k.Z,null,(0,T.mD)(fe[ue]).toUpperCase());case"text":return r.createElement(k.Z,null,fe[ue]);default:return r.createElement(k.Z,{"aria-label":Me({id:"list.table.content.empty-label",defaultMessage:"This field is empty"})},"-")}};X.propTypes={cellType:F().string.isRequired,contentType:F().string.isRequired,content:F().shape({alternativeText:F().string,ext:F().string,formats:F().shape({thumbnail:F().shape({url:F().string})}),mime:F().string,url:F().string}).isRequired,name:F().string.isRequired};const pe=({onChangeFolder:se,onEditAsset:be,onEditFolder:fe,onSelectOne:ue,rows:we,selected:Me})=>{const{formatMessage:Ce}=(0,U.Z)(),Ne=(Ye,mt,Ct,ln)=>{mt==="asset"?be(Ye):se(Ct,ln)};return r.createElement(D.p,null,we.map(Ye=>{const{path:mt,id:Ct,isSelectable:ln,name:$e,folderURL:Qe,type:bt}=Ye,It=!!Me.find(mn=>mn.id===Ct&&mn.type===bt);return r.createElement(a.Tr,{key:Ct,...(0,T.X7)({fn:()=>Ne(Ye,bt,Ct,mt)})},r.createElement(c.Td,{onClick:mn=>mn.stopPropagation()},r.createElement(h.C,{"aria-label":Ce({id:bt==="asset"?"list-assets-select":"list.folder.select",defaultMessage:bt==="asset"?"Select {name} asset":"Select {name} folder"},{name:$e}),disabled:!ln,onValueChange:()=>ue(Ye),checked:It})),B.HR.map(({name:mn,type:un})=>r.createElement(c.Td,{key:mn},r.createElement(X,{content:Ye,cellType:un,contentType:bt,name:mn}))),r.createElement(c.Td,{...T.UW},r.createElement(x.k,{justifyContent:"flex-end"},bt==="folder"&&r.createElement(p.h,{as:Qe?E.rU:void 0,label:Ce({id:(0,N.OB)("list.folders.link-label"),defaultMessage:"Access folder"}),to:Qe,onClick:()=>!Qe&&se(Ct),noBorder:!0},r.createElement(u.Z,null)),r.createElement(p.h,{label:Ce({id:(0,N.OB)("control-card.edit"),defaultMessage:"Edit"}),onClick:()=>bt==="asset"?be(Ye):fe(Ye),noBorder:!0},r.createElement(b.Z,null)))))}))};pe.defaultProps={onChangeFolder:null,rows:[],selected:[]},pe.propTypes={onChangeFolder:F().func,onEditAsset:F().func.isRequired,onEditFolder:F().func.isRequired,onSelectOne:F().func.isRequired,rows:F().arrayOf(B.pw,B.nx),selected:F().arrayOf(B.pw,B.nx)};const Ie=({assetCount:se,folderCount:be,indeterminate:fe,onChangeSort:ue,onChangeFolder:we,onEditAsset:Me,onEditFolder:Ce,onSelectAll:Ne,onSelectOne:Ye,rows:mt,selected:Ct,shouldDisableBulkSelect:ln,sortQuery:$e})=>{const{formatMessage:Qe}=(0,U.Z)(),[bt,It]=$e.split(":"),mn=(un,Be)=>{const $t=`${Be}:${un&&It==="ASC"?"DESC":"ASC"}`;ue($t)};return r.createElement(n.i,{colCount:B.HR.length+2,rowCount:se+be+1},r.createElement(s.h,null,r.createElement(a.Tr,null,r.createElement(c.Th,null,r.createElement(h.C,{"aria-label":Qe({id:(0,N.OB)("bulk.select.label"),defaultMessage:"Select all folders & assets"}),disabled:ln,indeterminate:fe&&!ln,onChange:un=>Ne(un,mt),value:(se>0||be>0)&&Ct.length===se+be})),B.HR.map(({metadatas:{label:un,isSortable:Be},name:je,key:$t})=>{const et=bt===je,Kt=It==="ASC",kn=Qe(un),Tn=Qe({id:"list.table.header.sort",defaultMessage:"Sort on {label}"},{label:kn});return r.createElement(c.Th,{action:et&&r.createElement(p.h,{label:Tn,onClick:()=>mn(et,je),noBorder:!0},Kt?r.createElement(C.Z,null):r.createElement(w.Z,null)),key:$t},r.createElement(d.u,{label:Be?Tn:kn},Be?r.createElement(k.Z,{onClick:()=>mn(et,je),as:et?"span":"button",label:et?"":Tn,textColor:"neutral600",variant:"sigma"},kn):r.createElement(k.Z,{textColor:"neutral600",variant:"sigma"},kn)))}),r.createElement(c.Th,null,r.createElement(M.T,null,Qe({id:(0,N.OB)("list.table.header.actions"),defaultMessage:"actions"}))))),r.createElement(pe,{onChangeFolder:we,onEditAsset:Me,onEditFolder:Ce,rows:mt,onSelectOne:Ye,selected:Ct}))};Ie.defaultProps={assetCount:0,folderCount:0,indeterminate:!1,onChangeSort:null,onChangeFolder:null,onEditAsset:null,onEditFolder:null,rows:[],selected:[],shouldDisableBulkSelect:!1,sortQuery:""},Ie.propTypes={assetCount:F().number,folderCount:F().number,indeterminate:F().bool,onChangeSort:F().func,onChangeFolder:F().func,onEditAsset:F().func,onEditFolder:F().func,onSelectAll:F().func.isRequired,onSelectOne:F().func.isRequired,rows:F().arrayOf(B.pw,B.nx),selected:F().arrayOf(B.pw,B.nx),shouldDisableBulkSelect:F().bool,sortQuery:F().string}},19839:(Z,v,t)=>{"use strict";t.d(v,{x:()=>et});var r=t(67294),n=t(74622),s=t(45697),a=t.n(s),c=t(86896),h=t(11727),p=t(21050),d=t(36854),k=t(10574),M=t(98948),C=t(16607),w=t(91788),I=t(26910),F=t(94955),U=t(93593),B=t(96987),N=t(12473),D=t(37022),x=t(30972),T=t(73734),u=t(46449),b=t(91265);const E=(0,u.default)(B.k)`
  flex-direction: column;
`,A=u.default.div`
  font-size: ${60/16}rem;

  svg path {
    fill: ${({theme:Kt})=>Kt.colors.primary600};
  }
`,R=(0,u.default)(C.x)`
  border-style: dashed;
`,H=(0,u.default)(C.x)`
  opacity: 0;
  cursor: pointer;
`,z=({onClose:Kt,onAddAssets:kn,trackedLocation:Tn})=>{const{formatMessage:ht}=(0,c.Z)(),[ot,Je]=(0,r.useState)(!1),wt=(0,r.useRef)(null),{trackUsage:ft}=(0,x.rS)(),vn=ye=>{ye.preventDefault()},ut=ye=>{ye.preventDefault(),Je(!0)},Wt=()=>Je(!1),ae=ye=>{ye.preventDefault(),wt.current.click()},ne=()=>{const ye=wt.current.files,Xe=[];for(let Ze=0;Ze<ye.length;Ze++){const lt=ye.item(Ze),_t=(0,b.j)(lt,h._S.Computer);Xe.push(_t)}Tn&&ft("didSelectFile",{source:"computer",location:Tn}),kn(Xe)},ge=ye=>{if(ye.preventDefault(),ye?.dataTransfer?.files){const Xe=ye.dataTransfer.files,Ze=[];for(let lt=0;lt<Xe.length;lt++){const _t=Xe.item(lt),zt=(0,b.j)(_t,h._S.Computer);Ze.push(zt)}kn(Ze)}Je(!1)};return r.createElement("form",null,r.createElement(C.x,{paddingLeft:8,paddingRight:8,paddingTop:6,paddingBottom:6},r.createElement("label",null,r.createElement(R,{paddingTop:11,paddingBottom:11,hasRadius:!0,justifyContent:"center",borderColor:ot?"primary500":"neutral300",background:ot?"primary100":"neutral100",position:"relative",onDragEnter:ut,onDragLeave:Wt,onDragOver:vn,onDrop:ge},r.createElement(B.k,{justifyContent:"center"},r.createElement(E,null,r.createElement(A,null,r.createElement(T.Z,{"aria-hidden":!0})),r.createElement(C.x,{paddingTop:3,paddingBottom:5},r.createElement(k.Z,{variant:"delta",textColor:"neutral600",as:"span"},ht({id:(0,U.Z)("input.label"),defaultMessage:"Drag & Drop here or"}))),r.createElement(H,{as:"input",position:"absolute",left:0,right:0,bottom:0,top:0,width:"100%",type:"file",multiple:!0,name:"files",tabIndex:-1,ref:wt,zIndex:1,onChange:ne}),r.createElement(C.x,{position:"relative"},r.createElement(N.z,{type:"button",onClick:ae},ht({id:(0,U.Z)("input.button.label"),defaultMessage:"Browse files"})))))))),r.createElement(D.m,{startActions:r.createElement(N.z,{onClick:Kt,variant:"tertiary"},ht({id:"app.components.Button.cancel",defaultMessage:"cancel"}))}))};z.defaultProps={trackedLocation:void 0},z.propTypes={onClose:a().func.isRequired,onAddAssets:a().func.isRequired,trackedLocation:a().string};var V=t(457),$=t(41054),ee=t(1629);function q(Kt){return new URL(Kt).pathname.split("/").pop()}const oe=async Kt=>{const kn=Kt.map(ot=>fetch(ot).then(async Je=>{const wt=await Je.blob(),ft=new File([wt],q(Je.url),{type:Je.headers.get("content-type")});return{name:ft.name,url:Je.url,mime:Je.headers.get("content-type"),rawFile:ft}}));return(await Promise.all(kn)).map(ot=>({source:h._S.Url,name:ot.name,type:(0,ee.Z)(ot.mime),url:ot.url,ext:ot.url.split(".").pop(),mime:ot.mime,rawFile:ot.rawFile}))};var X=t(87561);const pe=X.Ry().shape({urls:X.Z_().test({name:"isUrlValid",message:"${path}",test(Kt=""){const kn=Kt.split(/\r?\n/);if(kn.length===0)return this.createError({path:this.path,message:x.I0.min});if(kn.length>20)return this.createError({path:this.path,message:x.I0.max});const Tn=kn.filter(Je=>{try{return new URL(Je),!1}catch{return!0}}),ht=Tn.length;if(ht===0)return!0;const ot=ht>1?"form.upload-url.error.url.invalids":"form.upload-url.error.url.invalid";return this.createError({path:this.path,message:(0,U.Z)(ot),params:{number:Tn.length}})}})}),Ie=({onClose:Kt,onAddAsset:kn,trackedLocation:Tn})=>{const[ht,ot]=(0,r.useState)(!1),[Je,wt]=(0,r.useState)(void 0),{formatMessage:ft}=(0,c.Z)(),{trackUsage:vn}=(0,x.rS)(),ut=async({urls:Wt})=>{ot(!0);const ae=Wt.split(/\r?\n/);try{const ne=await oe(ae);Tn&&vn("didSelectFile",{source:"url",location:Tn}),kn(ne)}catch(ne){wt(ne),ot(!1)}};return r.createElement($.J9,{enableReinitialize:!0,initialValues:{urls:""},onSubmit:ut,validationSchema:pe,validateOnChange:!1},({values:Wt,errors:ae,handleChange:ne})=>r.createElement(x.l0,{noValidate:!0},r.createElement(C.x,{paddingLeft:8,paddingRight:8,paddingBottom:6,paddingTop:6},r.createElement(V.g,{label:ft({id:(0,U.Z)("input.url.label"),defaultMessage:"URL"}),id:"urls",hint:ft({id:(0,U.Z)("input.url.description"),defaultMessage:"Separate your URL links by a carriage return."}),error:Je?.message||(ae.urls?ft({id:ae.urls,defaultMessage:"An error occured"}):void 0),onChange:ne,value:Wt.urls})),r.createElement(D.m,{startActions:r.createElement(N.z,{onClick:Kt,variant:"tertiary"},ft({id:"app.components.Button.cancel",defaultMessage:"cancel"})),endActions:r.createElement(N.z,{type:"submit",loading:ht},ft({id:(0,U.Z)("button.next"),defaultMessage:"Next"}))})))};Ie.defaultProps={trackedLocation:void 0},Ie.propTypes={onClose:a().func.isRequired,onAddAsset:a().func.isRequired,trackedLocation:a().string};const se=({onClose:Kt,onAddAsset:kn,trackedLocation:Tn})=>{const{formatMessage:ht}=(0,c.Z)();return r.createElement(r.Fragment,null,r.createElement(d.x,null,r.createElement(k.Z,{fontWeight:"bold",textColor:"neutral800",as:"h2",id:"title"},ht({id:(0,U.Z)("header.actions.add-assets"),defaultMessage:"Add new assets"}))),r.createElement(M.v,{label:ht({id:(0,U.Z)("tabs.title"),defaultMessage:"How do you want to upload your assets?"}),variant:"simple"},r.createElement(C.x,{paddingLeft:8,paddingRight:8,paddingTop:6},r.createElement(w.m,null,r.createElement(w.O,null,ht({id:(0,U.Z)("modal.nav.computer"),defaultMessage:"From computer"})),r.createElement(w.O,null,ht({id:(0,U.Z)("modal.nav.url"),defaultMessage:"From URL"}))),r.createElement(I.i,null)),r.createElement(F.n,null,r.createElement(F.x,null,r.createElement(z,{onClose:Kt,onAddAssets:kn,trackedLocation:Tn})),r.createElement(F.x,null,r.createElement(Ie,{onClose:Kt,onAddAsset:kn,trackedLocation:Tn})))))};se.defaultProps={trackedLocation:void 0},se.propTypes={onClose:a().func.isRequired,onAddAsset:a().func.isRequired,trackedLocation:a().string};var be=t(71543),fe=t(52953),ue=t(31988),we=t(6498),Me=t(33332),Ce=t(16244),Ne=t(60909),Ye=t(37255),mt=t(19700),Ct=t(56457),ln=t(1136),$e=t(33745),Qe=t(63955),bt=t(11429);const It=u.default.div`
  height: ${88/16}rem;
  width: 100%;
`,mn=u.default.span`
  text-transform: uppercase;
`,un=({asset:Kt,onCancel:kn,onStatusChange:Tn,addUploadedFiles:ht,folderId:ot})=>{const{upload:Je,cancel:wt,error:ft,progress:vn,status:ut}=(0,$e.V)(),{formatMessage:Wt}=(0,c.Z)();let ae=Wt({id:(0,Qe.OB)("settings.section.doc.label"),defaultMessage:"Doc"});Kt.type===h.h3.Image?ae=Wt({id:(0,Qe.OB)("settings.section.image.label"),defaultMessage:"Image"}):Kt.type===h.h3.Video?ae=Wt({id:(0,Qe.OB)("settings.section.video.label"),defaultMessage:"Video"}):Kt.type===h.h3.Audio&&(ae=Wt({id:(0,Qe.OB)("settings.section.audio.label"),defaultMessage:"Audio"})),(0,r.useEffect)(()=>{(async()=>{const ye=await Je(Kt,ot);ht&&ht(ye)})()},[]),(0,r.useEffect)(()=>{Tn(ut)},[ut,Tn]);const ne=()=>{wt(),kn(Kt.rawFile)};return r.createElement(B.k,{direction:"column",alignItems:"stretch",gap:1},r.createElement(Ce.Z,{borderColor:ft?"danger600":"neutral150"},r.createElement(Ne.O,null,r.createElement(It,null,r.createElement(bt.t,{error:ft,onCancel:ne,progress:vn}))),r.createElement(Ye.e,null,r.createElement(mt.a,null,r.createElement(C.x,{paddingTop:1},r.createElement(Ct.l,{as:"h2"},Kt.name)),r.createElement(Ct._,null,r.createElement(mn,null,Kt.ext))),r.createElement(B.k,{paddingTop:1,grow:1},r.createElement(ln.E,null,ae)))),ft?r.createElement(k.Z,{variant:"pi",fontWeight:"bold",textColor:"danger600"},Wt(ft?.response?.data?.error?.message?{id:(0,Qe.OB)(`apiError.${ft.response.data.error.message}`),defaultMessage:ft.response.data.error.message}:{id:(0,Qe.OB)("upload.generic-error"),defaultMessage:"An error occured while uploading the file."})):void 0)};un.defaultProps={addUploadedFiles:void 0,folderId:null},un.propTypes={addUploadedFiles:a().func,asset:a().shape({name:a().string,ext:a().string,rawFile:a().instanceOf(File),type:a().oneOf(Object.values(h.h3))}).isRequired,folderId:a().oneOfType([a().number,a().string]),onCancel:a().func.isRequired,onStatusChange:a().func.isRequired};const Be={Idle:"IDLE",Uploading:"UPLOADING",Intermediate:"INTERMEDIATE"},je=({addUploadedFiles:Kt,folderId:kn,onClose:Tn,onEditAsset:ht,onRemoveAsset:ot,assets:Je,onClickAddAsset:wt,onCancelUpload:ft,onUploadSucceed:vn,trackedLocation:ut})=>{const Wt=(0,r.useRef)(0),{formatMessage:ae}=(0,c.Z)(),{trackUsage:ne}=(0,x.rS)(),[ge,ye]=(0,r.useState)(Be.Idle),Xe=async lt=>{lt.preventDefault(),lt.stopPropagation();const _t=Je.reduce((zt,Vt)=>{const{type:sn}=Vt;return zt[sn]||(zt[sn]=0),zt[sn]=`${parseInt(zt[sn],10)+1}`,zt},{});ne("willAddMediaLibraryAssets",{location:ut,..._t}),ye(Be.Uploading)},Ze=(lt,_t)=>{(lt==="success"||lt==="error")&&(Wt.current++,Wt.current===Je.length&&(Wt.current=0,ye(Be.Intermediate))),lt==="success"&&vn(_t)};return r.createElement("form",{onSubmit:Xe},r.createElement(d.x,null,r.createElement(k.Z,{fontWeight:"bold",textColor:"neutral800",as:"h2",id:"title"},ae({id:(0,U.Z)("header.actions.add-assets"),defaultMessage:"Add new assets"}))),r.createElement(be.f,null,r.createElement(B.k,{direction:"column",alignItems:"stretch",gap:7},r.createElement(B.k,{justifyContent:"space-between"},r.createElement(B.k,{direction:"column",alignItems:"stretch",gap:0},r.createElement(k.Z,{variant:"pi",fontWeight:"bold",textColor:"neutral800"},ae({id:(0,U.Z)("list.assets.to-upload"),defaultMessage:"{number, plural, =0 {No asset} one {1 asset} other {# assets}} ready to upload"},{number:Je.length})),r.createElement(k.Z,{variant:"pi",textColor:"neutral600"},ae({id:(0,U.Z)("modal.upload-list.sub-header-subtitle"),defaultMessage:"Manage the assets before adding them to the Media Library"}))),r.createElement(N.z,{size:"S",onClick:wt},ae({id:(0,U.Z)("header.actions.add-assets"),defaultMessage:"Add new assets"}))),r.createElement(fe.k,{tagName:"article"},r.createElement(ue.r,{gap:4},Je.map(lt=>{const _t=lt.url;return ge===Be.Uploading||ge===Be.Intermediate?r.createElement(we.P,{col:4,key:_t},r.createElement(un,{addUploadedFiles:Kt,asset:lt,id:_t,onCancel:ft,onStatusChange:zt=>Ze(zt,lt.rawFile),size:"S",folderId:kn})):r.createElement(we.P,{col:4,key:_t},r.createElement(Me.J,{asset:lt,size:"S",key:_t,local:!0,alt:lt.name,onEdit:ht,onRemove:ot}))}))))),r.createElement(D.m,{startActions:r.createElement(N.z,{onClick:Tn,variant:"tertiary"},ae({id:"app.components.Button.cancel",defaultMessage:"cancel"})),endActions:r.createElement(N.z,{type:"submit",loading:ge===Be.Uploading},ae({id:(0,U.Z)("modal.upload-list.footer.button"),defaultMessage:"Upload {number, plural, one {# asset} other {# assets}} to the library"},{number:Je.length}))}))};je.defaultProps={addUploadedFiles:void 0,folderId:null,trackedLocation:void 0},je.propTypes={addUploadedFiles:a().func,assets:a().arrayOf(h.pw).isRequired,folderId:a().oneOfType([a().number,a().string]),onClose:a().func.isRequired,onEditAsset:a().func.isRequired,onRemoveAsset:a().func.isRequired,onClickAddAsset:a().func.isRequired,onUploadSucceed:a().func.isRequired,onCancelUpload:a().func.isRequired,trackedLocation:a().string};const $t={AddAsset:"AddAsset",PendingAsset:"PendingAsset"},et=({initialAssetsToAdd:Kt,folderId:kn,onClose:Tn,addUploadedFiles:ht,trackedLocation:ot,validateAssetsTypes:Je=(wt,ft)=>ft()})=>{const{formatMessage:wt}=(0,c.Z)(),[ft,vn]=(0,r.useState)(Kt?$t.PendingAsset:$t.AddAsset),[ut,Wt]=(0,r.useState)(Kt||[]),[ae,ne]=(0,r.useState)(void 0),ge=Vt=>{Je(Vt,()=>{Wt(sn=>sn.concat(Vt)),vn($t.PendingAsset)})},ye=()=>{vn($t.AddAsset)},Xe=Vt=>{const sn=ut.filter(yn=>yn.rawFile!==Vt);Wt(sn),sn.length===0&&ye()},Ze=Vt=>{const sn=ut.filter(yn=>yn.rawFile!==Vt);Wt(sn),sn.length===0&&Tn()},lt=Vt=>{if(Vt){const sn=ut.map(yn=>yn===ae?Vt:yn);Wt(sn)}ne(void 0)},_t=()=>{ft===$t.PendingAsset&&ut.length>0?window.confirm(wt({id:"window.confirm.close-modal.files",defaultMessage:"Are you sure? You have some files that have not been uploaded yet."}))&&Tn():Tn()},zt=Vt=>{const sn=ut.filter(yn=>yn!==Vt);Wt(sn)};return r.createElement(n.P,{onClose:_t,labelledBy:"title"},ft===$t.AddAsset&&r.createElement(se,{onClose:Tn,onAddAsset:ge,trackedLocation:ot}),ft===$t.PendingAsset&&r.createElement(je,{onClose:_t,assets:ut,onEditAsset:ne,onRemoveAsset:zt,onClickAddAsset:ye,onCancelUpload:Xe,onUploadSucceed:Ze,initialAssetsToAdd:Kt,addUploadedFiles:ht,folderId:kn,trackedLocation:ot}),ae&&r.createElement(p.s,{onClose:lt,asset:ae,canUpdate:!0,canCopyLink:!1,canDownload:!1,trackedLocation:ot}))};et.defaultProps={addUploadedFiles:void 0,folderId:null,initialAssetsToAdd:void 0,onClose(){},trackedLocation:void 0,validateAssetsTypes:void 0},et.propTypes={addUploadedFiles:a().func,folderId:a().oneOfType([a().number,a().string]),initialAssetsToAdd:a().arrayOf(h.pw),onClose:a().func,trackedLocation:a().string,validateAssetsTypes:a().func}},11429:(Z,v,t)=>{"use strict";t.d(v,{t:()=>w});var r=t(67294),n=t(96987),s=t(84623),a=t(10574),c=t(35771),h=t(45697),p=t.n(h),d=t(86896),k=t(46449);const M=(0,k.default)(n.k)`
  border-radius: ${({theme:I})=>`${I.borderRadius} ${I.borderRadius} 0 0`};
  width: 100%;
  height: 100%;

  svg {
    path {
      fill: ${({theme:I,error:F})=>F?I.colors.danger600:void 0};
    }
  }
`,C=k.default.button`
  border: none;
  background: none;
  width: min-content;
  color: ${({theme:I})=>I.colors.neutral600};

  &:hover,
  &:focus {
    color: ${({theme:I})=>I.colors.neutral700};
  }

  svg {
    height: 10px;
    width: 10px;

    path {
      fill: currentColor;
    }
  }
`,w=({onCancel:I,progress:F,error:U})=>{const{formatMessage:B}=(0,d.Z)();return r.createElement(M,{alignItems:"center",background:U?"danger100":"neutral150",error:U},U?r.createElement(c.Z,{"aria-label":U?.message}):r.createElement(n.k,{direction:"column",alignItems:"center",gap:2,width:"100%"},r.createElement(s.k,{value:F},`${F}/100%`),r.createElement(C,{type:"button",onClick:I},r.createElement(n.k,{gap:2},r.createElement(a.Z,{variant:"pi",as:"span",textColor:"inherit"},B({id:"app.components.Button.cancel",defaultMessage:"Cancel"})),r.createElement(c.Z,{"aria-hidden":!0})))))};w.defaultProps={error:void 0,progress:0},w.propTypes={error:p().instanceOf(Error),onCancel:p().func.isRequired,progress:p().number}},11727:(Z,v,t)=>{"use strict";t.d(v,{Fo:()=>D,Fv:()=>F,HR:()=>B,Uk:()=>U,_I:()=>T,_S:()=>c,ay:()=>N,h3:()=>a,nx:()=>d,pw:()=>C,uf:()=>x});var r=t(45697),n=t.n(r),s=t(63955);const a={Video:"video",Image:"image",Document:"doc",Audio:"audio"},c={Url:"url",Computer:"computer"},h={id:n().number.isRequired,createdAt:n().string.isRequired,name:n().string.isRequired,updatedAt:n().string.isRequired,pathId:n().number.isRequired,path:n().string.isRequired};h.parent=n().shape(h);const p={id:n().number.isRequired,children:n().shape({count:n().number.isRequired}),createdAt:n().string.isRequired,createdBy:n().shape(),files:n().shape({count:n().number.isRequired}),name:n().string.isRequired,updatedAt:n().string.isRequired,updatedBy:n().shape(),pathId:n().number.isRequired,path:n().string.isRequired};p.parent=n().shape(h);const d=n().shape(p),k=n().shape({value:n().oneOfType([n().number,n().string]),label:n().string.isRequired,children:n().array});k.children=n().arrayOf(n().shape(k)),k.defaultProps={children:void 0};const M=n().arrayOf(k),C=n().shape({id:n().number,height:n().number,width:n().number,size:n().number,createdAt:n().string,ext:n().string,mime:n().string,name:n().string,url:n().string,updatedAt:n().string,alternativeText:n().string,caption:n().string,folder:n().shape(d),formats:n().shape({thumbnail:n().shape({url:n().string})})}),w=n().shape({id:n().number,label:n().oneOfType([n().string,n().shape({id:n().string.isRequired,defaultMessage:n().string.isRequired})]).isRequired,href:n().string}),I=n().arrayOf(w),F=n().arrayOf(n().oneOfType([w,I])),U={GRID:0,LIST:1},B=[{name:"preview",key:"preview",metadatas:{label:{id:(0,s.OB)("list.table.header.preview"),defaultMessage:"preview"},isSortable:!1},type:"image"},{name:"name",key:"name",metadatas:{label:{id:(0,s.OB)("list.table.header.name"),defaultMessage:"name"},isSortable:!0},type:"text"},{name:"ext",key:"extension",metadatas:{label:{id:(0,s.OB)("list.table.header.ext"),defaultMessage:"extension"},isSortable:!1},type:"ext"},{name:"size",key:"size",metadatas:{label:{id:(0,s.OB)("list.table.header.size"),defaultMessage:"size"},isSortable:!1},type:"size"},{name:"createdAt",key:"createdAt",metadatas:{label:{id:(0,s.OB)("list.table.header.createdAt"),defaultMessage:"created"},isSortable:!0},type:"date"},{name:"updatedAt",key:"updatedAt",metadatas:{label:{id:(0,s.OB)("list.table.header.updatedAt"),defaultMessage:"last update"},isSortable:!0},type:"date"}],N=[10,20,50,100],D=[{key:"sort.created_at_desc",value:"createdAt:DESC"},{key:"sort.created_at_asc",value:"createdAt:ASC"},{key:"sort.name_asc",value:"name:ASC"},{key:"sort.name_desc",value:"name:DESC"},{key:"sort.updated_at_desc",value:"updatedAt:DESC"},{key:"sort.updated_at_asc",value:"updatedAt:ASC"}],x={modalView:"STRAPI_UPLOAD_MODAL_VIEW",view:"STRAPI_UPLOAD_LIBRARY_VIEW"},T={main:[{action:"plugin::upload.read",subject:null},{action:"plugin::upload.assets.create",subject:null},{action:"plugin::upload.assets.update",subject:null}],copyLink:[{action:"plugin::upload.assets.copy-link",subject:null}],create:[{action:"plugin::upload.assets.create",subject:null}],download:[{action:"plugin::upload.assets.download",subject:null}],read:[{action:"plugin::upload.read",subject:null}],configureView:[{action:"plugin::upload.configure-view",subject:null}],settings:[{action:"plugin::upload.settings.read",subject:null}],update:[{action:"plugin::upload.assets.update",subject:null,fields:null}]}},54314:(Z,v,t)=>{"use strict";t.d(v,{L:()=>p});var r=t(67294),n=t(334),s=t(30972),a=t(86896),c=t(88767),h=t(18206);const p=({skipWhen:d=!1,query:k={}}={})=>{const{formatMessage:M}=(0,a.Z)(),C=(0,s.lm)(),{notifyStatus:w}=(0,n.G)(),{get:I}=(0,s.kY)(),{folderPath:F,_q:U,...B}=k;let N;U?N={...B,_q:encodeURIComponent(U)}:N={...B,filters:{$and:[...B?.filters?.$and??[],{folderPath:{$eq:F??"/"}}]}};const{data:D,error:x,isLoading:T}=(0,c.useQuery)([h.Z,"assets",N],async()=>{const{data:u}=await I("/upload/files",{params:N});return u},{enabled:!d,staleTime:0,cacheTime:0,select(u){return u?.results&&Array.isArray(u.results)?{...u,results:u.results.filter(b=>b.name).map(b=>({...b,mime:b.mime??"",ext:b.ext??""}))}:u}});return(0,r.useEffect)(()=>{D&&w(M({id:"list.asset.at.finished",defaultMessage:"The assets have finished loading."}))},[D,M,w]),(0,r.useEffect)(()=>{x&&C({type:"warning",message:{id:"notification.error"}})},[x,C]),{data:D,error:x,isLoading:T}}},29731:(Z,v,t)=>{"use strict";t.d(v,{K:()=>c});var r=t(30972),n=t(88767),s=t(18206),a=t(63955);const c=()=>{const h=(0,r.lm)(),p=(0,n.useQueryClient)(),{post:d}=(0,r.kY)(),k=w=>{const I=w.reduce((F,U)=>{const{id:B,type:N}=U,D=N==="asset"?"fileIds":"folderIds";return F[D]||(F[D]=[]),F[D].push(B),F},{});return d("/upload/actions/bulk-delete",I)},M=(0,n.useMutation)(k,{onSuccess(w){const{data:{data:I}}=w;I?.files?.length>0&&(p.refetchQueries([s.Z,"assets"],{active:!0}),p.refetchQueries([s.Z,"asset-count"],{active:!0})),I?.folders?.length>0&&p.refetchQueries([s.Z,"folders"],{active:!0}),h({type:"success",message:{id:(0,a.OB)("modal.remove.success-label"),defaultMessage:"Elements have been successfully deleted."}})},onError(w){h({type:"warning",message:w.message})}});return{...M,remove:(...w)=>M.mutateAsync(...w)}}},4396:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>h});var r=t(30972),n=t(88767),s=t(18206);const a=`/${s.Z}/configuration`,c=[s.Z,"configuration"],h=()=>{const{trackUsage:p}=(0,r.rS)(),d=(0,r.lm)(),{get:k,put:M}=(0,r.kY)(),C=(0,n.useQuery)(c,async()=>(await k(a)).data.data,{onError(){return d({type:"warning",message:{id:"notification.error"}})},select:I=>I||{}}),w=(0,n.useMutation)(async I=>{await M(a,I)},{onSuccess(){p("didEditMediaLibraryConfig"),C.refetch()},onError(){return d({type:"warning",message:{id:"notification.error"}})}});return{config:C,mutateConfig:w}}},40426:(Z,v,t)=>{"use strict";t.d(v,{W:()=>c});var r=t(30972),n=t(88767),s=t(18206),a=t(63955);const c=(h,{enabled:p=!0}={})=>{const d=(0,r.lm)(),{get:k}=(0,r.kY)(),{data:M,error:C,isLoading:w}=(0,n.useQuery)([s.Z,"folder",h],async()=>{const{data:{data:I}}=await k(`/upload/folders/${h}`,{params:{populate:{parent:{populate:{parent:"*"}}}}});return I},{retry:!1,enabled:p,staleTime:0,cacheTime:0,onError(){d({type:"warning",message:{id:(0,a.OB)("notification.warning.404"),defaultMessage:"Not found"}})}});return{data:M,error:C,isLoading:w}}},81138:(Z,v,t)=>{"use strict";t.d(v,{v:()=>d});var r=t(30972),n=t(86896),s=t(88767),a=t(18206),c=t(63955);const h=(k,M)=>Object.fromEntries(Object.entries(k).map(([C,w])=>{const I=F=>typeof F=="object"&&F!==null?h(F,M):F;return[M(C),Array.isArray(w)?w.map(F=>I(F)):I(w)]})),p={name:"label",id:"value"},d=({enabled:k=!0}={})=>{const{formatMessage:M}=(0,n.Z)(),{get:C}=(0,r.kY)(),w=async()=>{const{data:{data:B}}=await C("/upload/folder-structure"),N=B.map(D=>h(D,x=>p?.[x]??x));return[{value:null,label:M({id:(0,c.OB)("form.input.label.folder-location-default-label"),defaultMessage:"Media Library"}),children:N}]},{data:I,error:F,isLoading:U}=(0,s.useQuery)([a.Z,"folder","structure"],w,{enabled:k,staleTime:0,cacheTime:0});return{data:I,error:F,isLoading:U}}},41801:(Z,v,t)=>{"use strict";t.d(v,{j:()=>k});var r=t(67294),n=t(334),s=t(30972),a=t(80129),c=t.n(a),h=t(86896),p=t(88767),d=t(18206);const k=({enabled:M=!0,query:C={}}={})=>{const{formatMessage:w}=(0,h.Z)(),I=(0,s.lm)(),{notifyStatus:F}=(0,n.G)(),{folder:U,_q:B,...N}=C,{get:D}=(0,s.kY)();let x;B?x={...N,pagination:{pageSize:-1},_q:B}:x={...N,pagination:{pageSize:-1},filters:{$and:[...N?.filters?.$and??[],{parent:{id:U??{$null:!0}}}]}};const{data:T,error:u,isLoading:b}=(0,p.useQuery)([d.Z,"folders",(0,a.stringify)(x)],async()=>{const{data:{data:E}}=await D("/upload/folders",{params:x});return E},{enabled:M,staleTime:0,cacheTime:0,onError(){I({type:"warning",message:{id:"notification.error"}})}});return r.useEffect(()=>{T&&F(w({id:"list.asset.at.finished",defaultMessage:"The folders have finished loading."}))},[T,w,F]),{data:T,error:u,isLoading:b}}},60269:(Z,v,t)=>{"use strict";t.d(v,{y:()=>c});var r=t(30972),n=t(11727);const{main:s,...a}=n._I,c=()=>{const{allowedActions:h,isLoading:p}=(0,r.ss)(a);return{...h,isLoading:p}}},33745:(Z,v,t)=>{"use strict";t.d(v,{V:()=>M});var r=t(67294),n=t(30972),s=t(52861),a=t(86896),c=t(88767),h=t(18206),p=t(63955);const d=`/${h.Z}`,k=(C,w,I,F,U)=>{const{rawFile:B,caption:N,name:D,alternativeText:x}=C,T=new FormData;return T.append("files",B),T.append("fileInfo",JSON.stringify({name:D,caption:N,alternativeText:x,folder:w})),U(d,T,{headers:{"Content-Type":"multipart/form-data"},cancelToken:I.token,onUploadProgress({total:u,loaded:b}){F(b/u*100)}}).then(u=>u.data)},M=()=>{const[C,w]=(0,r.useState)(0),{formatMessage:I}=(0,a.Z)(),F=(0,c.useQueryClient)(),U=(0,r.useRef)(s.default.CancelToken.source()),{post:B}=(0,n.kY)(),N=(0,c.useMutation)(({asset:T,folderId:u})=>k(T,u,U.current,w,B),{onSuccess(){F.refetchQueries([h.Z,"assets"],{active:!0}),F.refetchQueries([h.Z,"asset-count"],{active:!0})}});return{upload:(T,u)=>N.mutateAsync({asset:T,folderId:u}),cancel:()=>U.current.cancel(I({id:(0,p.OB)("modal.upload.cancelled"),defaultMessage:""})),error:N.error,progress:C,status:N.status}}},13008:(Z,v,t)=>{"use strict";t.d(v,{default:()=>Ke});var r=t(30972),n=t(64262),s=t(67294),a=t(45697),c=t.n(a),h=t(96987),p=t(74622),d=t(36854),k=t(10574),M=t(74863),C=t(98948),w=t(91788),I=t(18787),F=t(12473),U=t(26910),B=t(94955),N=t(71543),D=t(86896),x=t(46449),T=t(11727),u=t(54314),b=t(41801),E=t(60269),A=t(80129),R=t(4396);const z=Oe=>{const{trackUsage:Ge}=(0,r.rS)(),{config:{data:Ft}}=(0,R.Z)(),[Qt,wn]=(0,s.useState)({page:1,sort:"updatedAt:DESC",pageSize:10,filters:{$and:[]},...Oe});(0,s.useEffect)(()=>{Ft&&wn(oi=>({...oi,sort:Ft.sort,pageSize:Ft.pageSize}))},[Ft]);const Gn=oi=>{Ge("didFilterMediaLibraryElements",{location:"content-manager",filter:Object.keys(oi[oi.length-1])[0]}),wn(si=>({...si,page:1,filters:{$and:oi}}))},ir=oi=>{wn(si=>({...si,pageSize:parseInt(oi,10),page:1}))},br=oi=>{wn(si=>({...si,page:oi}))},fr=oi=>{Ge("didSortMediaLibraryElements",{location:"content-manager",sort:oi}),wn(si=>({...si,sort:oi}))},Er=oi=>{if(oi)wn(si=>({...si,_q:oi,page:1}));else{const si={page:1};Object.keys(Qt).forEach(Fi=>{["page","_q"].includes(Fi)||(si[Fi]=Qt[Fi])}),wn(si)}},Or=(oi,si)=>{wn(Fi=>({...Fi,folder:oi??null,folderPath:si}))};return[{queryObject:Qt,rawQuery:(0,A.stringify)(Qt,{encode:!1})},{onChangeFilters:Gn,onChangeFolder:Or,onChangePage:br,onChangePageSize:ir,onChangeSort:fr,onChangeSearch:Er}]};var V=t(63955),$=t(23208);const q=(Oe,Ge)=>{const Ft=(0,$.Z)(Oe);return Ge.filter(wn=>{const Gn=wn.mime.split("/")[0];return Ft.includes("file")&&!["video","image","audio"].includes(Gn)?!0:Ft.includes(Gn)})},oe=(Oe,Ge,Ft)=>(Ft>=Oe.length&&(Ft=Oe.length-1),Oe.splice(Ft,0,Oe.splice(Ge,1)[0]),Oe),X=(Oe,Ge,Ft)=>{const Qt=Ge+Ft;return oe(Oe,Ge,Qt)};var pe=t(21050),Ie=t(4114),se=t(16607),be=t(12803),fe=t(96208),ue=t(6498),we=t(22304),Me=t(96869),Ce=t(25373),Ne=t(83598),Ye=t(2382),mt=t(40426),Ct=t(93593),ln=t(70572),$e=t(25514),Qe=t(54053),bt=t(28742),It=t(52805),mn=t(45687),un=t(93184),Be=t(52933),je=t(62082),$t=t(99398),et=t(32269);const Kt=({appliedFilters:Oe,onChangeFilters:Ge})=>{const Ft=(0,s.useRef)(null),[Qt,wn]=(0,s.useState)(!1),{formatMessage:Gn}=(0,D.Z)(),ir=()=>wn(br=>!br);return s.createElement(s.Fragment,null,s.createElement(F.z,{variant:"tertiary",ref:Ft,startIcon:s.createElement(Be.Z,null),onClick:ir,size:"S"},Gn({id:"app.utils.filters",defaultMessage:"Filters"})),Qt&&s.createElement(et.Z,{displayedFilters:je.Z,filters:Oe,onSubmit:Ge,onToggle:ir,source:Ft}),Oe&&s.createElement($t.Z,{appliedFilters:Oe,filtersSchema:je.Z,onRemoveFilter:Ge}))};Kt.propTypes={appliedFilters:c().array.isRequired,onChangeFilters:c().func.isRequired};var kn=t(59586),Tn=t(40933);const ht=({onChangePageSize:Oe,pageSize:Ge})=>{const{formatMessage:Ft}=(0,D.Z)(),Qt=wn=>{Oe(wn)};return s.createElement(h.k,null,s.createElement(kn.P,{size:"S","aria-label":Ft({id:"components.PageFooter.select",defaultMessage:"Entries per page"}),onChange:Qt,value:Ge.toString()},s.createElement(Tn.W,{value:"10"},"10"),s.createElement(Tn.W,{value:"20"},"20"),s.createElement(Tn.W,{value:"50"},"50"),s.createElement(Tn.W,{value:"100"},"100")),s.createElement(se.x,{paddingLeft:2},s.createElement(k.Z,{textColor:"neutral600",as:"label",htmlFor:"page-size"},Ft({id:"components.PageFooter.select",defaultMessage:"Entries per page"}))))};ht.propTypes={onChangePageSize:c().func.isRequired,pageSize:c().number.isRequired};const ot=ht;var Je=t(66362),wt=t(23463),ft=t(33255);const vn=(0,s.createContext)({activePage:1,pageCount:1}),ut=()=>(0,s.useContext)(vn),Wt=(0,x.default)(k.Z)`
  line-height: revert;
`,ae=x.default.button`
  padding: ${({theme:Oe})=>Oe.spaces[3]};
  border-radius: ${({theme:Oe})=>Oe.borderRadius};
  box-shadow: ${({active:Oe,theme:Ge})=>Oe?Ge.shadows.filterShadow:void 0};
  text-decoration: none;
  display: flex;

  ${Je.BF}
`;ae.defaultProps={type:"button"};const ne=(0,x.default)(ae)`
  color: ${({theme:Oe,active:Ge})=>Ge?Oe.colors.primary700:Oe.colors.neutral800};
  background: ${({theme:Oe,active:Ge})=>Ge?Oe.colors.neutral0:void 0};

  &:hover {
    box-shadow: ${({theme:Oe})=>Oe.shadows.filterShadow};
  }
`,ge=(0,x.default)(ae)`
  font-size: 0.7rem;
  svg path {
    fill: ${Oe=>Oe["aria-disabled"]?Oe.theme.colors.neutral300:Oe.theme.colors.neutral600};
  }

  &:focus,
  &:hover {
    svg path {
      fill: ${Oe=>Oe["aria-disabled"]?Oe.theme.colors.neutral300:Oe.theme.colors.neutral700};
    }
  }

  ${Oe=>Oe["aria-disabled"]?`
  pointer-events: none;
    `:void 0}
`,ye=(0,x.default)(ae)`
  color: ${({theme:Oe})=>Oe.colors.neutral800};
`,Xe=({children:Oe,...Ge})=>{const{activePage:Ft}=ut(),Qt=Ft===1;return s.createElement("li",null,s.createElement(ge,{"aria-disabled":Qt,tabIndex:Qt?-1:void 0,...Ge},s.createElement(we.T,null,Oe),s.createElement(wt.Z,{"aria-hidden":!0})))},Ze=({children:Oe,...Ge})=>{const{activePage:Ft,pageCount:Qt}=ut(),wn=Ft===Qt;return s.createElement("li",null,s.createElement(ge,{"aria-disabled":wn,tabIndex:wn?-1:void 0,...Ge},s.createElement(we.T,null,Oe),s.createElement(ft.Z,{"aria-hidden":!0})))},lt=({number:Oe,children:Ge,...Ft})=>{const{activePage:Qt}=ut(),wn=Qt===Oe;return s.createElement("li",null,s.createElement(ne,{...Ft,active:wn},s.createElement(we.T,null,Ge),s.createElement(Wt,{"aria-hidden":!0,variant:"pi",fontWeight:wn?"bold":""},Oe)))},_t=({children:Oe,...Ge})=>s.createElement("li",null,s.createElement(ye,{...Ge,as:"div"},s.createElement(we.T,null,Oe),s.createElement(Wt,{"aria-hidden":!0,small:!0},"\u2026")));lt.propTypes={children:c().node.isRequired,number:c().number.isRequired};const zt={children:c().node.isRequired};Ze.propTypes=zt,Xe.propTypes=zt,_t.propTypes={children:c().node.isRequired};const Vt=({children:Oe,label:Ge,activePage:Ft,pageCount:Qt})=>{const wn=(0,s.useMemo)(()=>({activePage:Ft,pageCount:Qt}),[Ft,Qt]);return s.createElement(vn.Provider,{value:wn},s.createElement(se.x,{as:"nav","aria-label":Ge},s.createElement(h.k,{as:"ul",gap:1},Oe)))};Vt.defaultProps={label:"pagination"},Vt.propTypes={activePage:c().number.isRequired,children:c().node.isRequired,label:c().string,pageCount:c().number.isRequired};const sn=({activePage:Oe,onChangePage:Ge,pagination:{pageCount:Ft}})=>{const{formatMessage:Qt}=(0,D.Z)(),wn=Oe-1,Gn=Oe+1,ir=[s.createElement(lt,{key:1,number:1,onClick:()=>{Ge(1)}},Qt({id:"components.pagination.go-to",defaultMessage:"Go to page {page}"},{page:1}))];if(Ft<=4){const Vi=Array.from({length:Ft}).map((Bn,nt)=>nt+1).map(Bn=>s.createElement(lt,{key:Bn,number:Bn,onClick:()=>Ge(Bn)},Qt({id:"components.pagination.go-to",defaultMessage:"Go to page {page}"},{page:Bn})));return s.createElement(Vt,{activePage:Oe,pageCount:Ft},s.createElement(Xe,{onClick:()=>Ge(wn)},Qt({id:"components.pagination.go-to-previous",defaultMessage:"Go to previous page"})),Vi,s.createElement(Ze,{onClick:()=>Ge(Gn)},Qt({id:"components.pagination.go-to-next",defaultMessage:"Go to next page"})))}let br=[],fr=[],Er=[];const Or=[];Ft>1&&fr.push(s.createElement(lt,{key:Ft,number:Ft,onClick:()=>Ge(Ft)},Qt({id:"components.pagination.go-to",defaultMessage:"Go to page {page}"},{page:Ft}))),Oe===1&&Ft>=3&&(br=[2]),Oe===2&&Ft>=3&&(Ft===5?br=[2,3,4]:Ft===3?br=[2]:br=[2,3]),Oe===4&&Ft>=3&&(br=[2]),Oe===Ft&&Ft>=3&&(Er=[Ft-1]),Oe===Ft-2&&Ft>3&&(Er=[Oe+1,Oe,Oe-1]),Oe===Ft-3&&Ft>3&&Oe>5&&(Er=[Oe+2,Oe+1,Oe,Oe-1]),Oe===Ft-1&&Ft>3&&(Er=[Oe,Oe-1]),Er.forEach(Vi=>{fr.unshift(s.createElement(lt,{key:Vi,number:Vi,onClick:()=>Ge(Vi)},"Go to page ",Vi))}),br.forEach(Vi=>{ir.push(s.createElement(lt,{key:Vi,number:Vi,onClick:()=>Ge(Vi)},Qt({id:"components.pagination.go-to",defaultMessage:"Go to page {page}"},{page:Vi})))}),![1,2].includes(Oe)&&Oe<=Ft-3&&ir.length+fr.length<6&&[Oe-1,Oe,Oe+1].forEach(Bn=>{Or.push(s.createElement(lt,{key:Bn,number:Bn,onClick:()=>Ge(Bn)},Qt({id:"components.pagination.go-to",defaultMessage:"Go to page {page}"},{page:Bn})))});const oi=Ft>5||Ft===5&&(Oe===1||Oe===5),si=Or.length>2&&Oe>4&&Ft>5,Fi=si?Ft-Oe-1:Ft-ir.length-fr.length,$i=si?Ft-ir.length-fr.length:Ft-Oe-1;return s.createElement(Vt,{activePage:Oe,pageCount:Ft},s.createElement(Xe,{onClick:()=>Ge(wn)},Qt({id:"components.pagination.go-to-previous",defaultMessage:"Go to previous page"})),ir,si&&s.createElement(_t,null,Qt({id:"components.pagination.remaining-links",defaultMessage:"And {number} other links"},{number:Fi})),Or,oi&&s.createElement(_t,null,Qt({id:"components.pagination.remaining-links",defaultMessage:"And {number} other links"},{number:$i})),fr,s.createElement(Ze,{onClick:()=>Ge(Gn)},Qt({id:"components.pagination.go-to-next",defaultMessage:"Go to next page"})))};sn.propTypes={activePage:c().number.isRequired,onChangePage:c().func.isRequired,pagination:c().shape({pageCount:c().number.isRequired}).isRequired};const yn=sn;var dr=t(49185),hr=t(35987),Mr=t(90272);const rr=({onChangeSearch:Oe,queryValue:Ge})=>{const{formatMessage:Ft}=(0,D.Z)(),{trackUsage:Qt}=(0,r.rS)(),[wn,Gn]=(0,s.useState)(!!Ge),[ir,br]=(0,s.useState)(Ge||""),fr=(0,s.useRef)(null);(0,s.useLayoutEffect)(()=>{wn&&setTimeout(()=>{fr.current.querySelector("input").focus()},0)},[wn]);const Er=()=>{Gn(si=>!si)},Or=()=>{Er(),Oe(null)},oi=si=>{si.preventDefault(),si.stopPropagation(),Qt("didSearchMediaLibraryElements",{location:"content-manager"}),Oe(ir)};return wn?s.createElement("div",{ref:fr},s.createElement(dr.U,{onSubmit:oi},s.createElement(hr.w,{name:"search",onClear:Or,onChange:si=>br(si.target.value),clearLabel:Ft({id:(0,Ct.Z)("search.clear.label"),defaultMessage:"Clear the search"}),size:"S",value:ir,placeholder:Ft({id:(0,Ct.Z)("search.placeholder"),defaultMessage:"e.g: the first dog on the moon"})},Ft({id:(0,Ct.Z)("search.label"),defaultMessage:"Search for an asset"})))):s.createElement(fe.h,{icon:s.createElement(Mr.Z,null),label:"Search",onClick:Er})};rr.defaultProps={queryValue:null},rr.propTypes={onChangeSearch:c().func.isRequired,queryValue:c().string};const Cr=rr,Ur=(Oe,Ge="")=>{if(!Ge)return!1;const Ft=Ge.split("/")[0];return Oe.includes(Ft)||Oe.includes("file")&&!["video","image","audio"].includes(Ft)},$r=(0,x.default)(k.Z)`
  max-width: 100%;
`,li=(0,x.default)(se.x)`
  svg {
    path {
      fill: ${({theme:Oe})=>Oe.colors.neutral500};
    }
  }
`,ri=({allowedTypes:Oe,assets:Ge,canCreate:Ft,canRead:Qt,folders:wn,multiple:Gn,onAddAsset:ir,onChangeFilters:br,onChangePage:fr,onChangePageSize:Er,onChangeSearch:Or,onChangeSort:oi,onChangeFolder:si,onEditAsset:Fi,onEditFolder:$i,onSelectAllAsset:Vi,onSelectAsset:Bn,pagination:nt,queryObject:ve,selectedAssets:he})=>{const{formatMessage:Ae}=(0,D.Z)(),[tt,St]=(0,r.Yw)(T.uf.modalView,T.Uk.GRID),kt=tt===T.Uk.GRID,{data:Jt,isLoading:gt}=(0,mt.W)(ve?.folder,{enabled:Qt&&!!ve?.folder}),dn=(0,V.Pl)(Oe),Xt=Ge.map(_n=>({..._n,isSelectable:Ur(dn,_n?.mime),type:"asset"})),hn=!gt&&(0,V.bw)(Jt),Sn=q(Oe,Xt),Jn=Sn.length>0&&he.length>0&&Sn.every(_n=>he.findIndex(_e=>_e.id===_n.id)!==-1),Vn=Sn.some(_n=>he.findIndex(_e=>_e.id===_n.id)!==-1),ar=!!ve?._q,Vr=ve?.filters?.$and?.length>0,Jr=ar||Vr,yi=Xt.length,Ii=wn.length,ji=(..._n)=>{Or(""),si(..._n)};return s.createElement(se.x,null,Vi&&s.createElement(se.x,{paddingBottom:4},s.createElement(h.k,{justifyContent:"space-between",alignItems:"flex-start"},(yi>0||Ii>0||Vr)&&s.createElement(h.k,{gap:2,wrap:"wrap"},Gn&&kt&&s.createElement(h.k,{paddingLeft:2,paddingRight:2,background:"neutral0",hasRadius:!0,borderColor:"neutral200",height:`${32/16}rem`},s.createElement(be.C,{"aria-label":Ae({id:(0,Ct.Z)("bulk.select.label"),defaultMessage:"Select all assets"}),indeterminate:!Jn&&Vn,value:Jn,onChange:Vi})),kt&&s.createElement(mn.Z,{onChangeSort:oi,value:ve?.sort}),s.createElement(Kt,{appliedFilters:ve?.filters?.$and,onChangeFilters:br})),(yi>0||Ii>0||ar)&&s.createElement(h.k,{marginLeft:"auto",shrink:0},s.createElement(li,{paddingTop:1,paddingBottom:1},s.createElement(fe.h,{icon:kt?s.createElement(Me.Z,null):s.createElement(Ce.Z,null),label:Ae(kt?{id:"view-switch.list",defaultMessage:"List View"}:{id:"view-switch.grid",defaultMessage:"Grid View"}),onClick:()=>St(kt?T.Uk.LIST:T.Uk.GRID)})),s.createElement(Cr,{onChangeSearch:Or,queryValue:ve._q||""})))),Qt&&hn?.length>0&&Jt&&s.createElement(se.x,{paddingTop:3},s.createElement($e.O,{onChangeFolder:si,as:"nav",label:Ae({id:(0,Ct.Z)("header.breadcrumbs.nav.label"),defaultMessage:"Folders navigation"}),breadcrumbs:hn,currentFolderId:ve?.folder})),yi===0&&Ii===0&&s.createElement(se.x,{paddingBottom:6},s.createElement(Qe.i,{size:"S",count:6,action:Ft&&!Vr&&!ar&&s.createElement(F.z,{variant:"secondary",startIcon:s.createElement(Ne.Z,null),onClick:ir},Ae({id:(0,Ct.Z)("header.actions.add-assets"),defaultMessage:"Add new assets"})),content:Ae(Jr?{id:(0,Ct.Z)("list.assets-empty.title-withSearch"),defaultMessage:"There are no assets with the applied filters"}:Ft&&!ar?{id:(0,Ct.Z)("list.assets.empty"),defaultMessage:"Upload your first assets..."}:{id:(0,Ct.Z)("list.assets.empty.no-permissions"),defaultMessage:"The asset list is empty"})})),!kt&&(Ii>0||yi>0)&&s.createElement(un.b,{allowedTypes:Oe,assetCount:yi,folderCount:Ii,indeterminate:!Jn&&Vn,isFolderSelectionAllowed:!1,onChangeSort:oi,onChangeFolder:ji,onEditAsset:Fi,onEditFolder:$i,onSelectOne:Bn,onSelectAll:Vi,rows:[...wn.map(_n=>({..._n,type:"folder"})),...Xt],selected:he,shouldDisableBulkSelect:!Gn,sortQuery:ve?.sort??""}),kt&&s.createElement(s.Fragment,null,Ii>0&&s.createElement(It.a,{title:(Jr&&yi>0||!Jr)&&Ae({id:(0,Ct.Z)("list.folders.title"),defaultMessage:"Folders ({count})"},{count:Ii})||""},wn.map(_n=>s.createElement(ue.P,{col:3,key:`folder-${_n.id}`},s.createElement(bt.Ac,{ariaLabel:_n.name,id:`folder-${_n.id}`,onClick:()=>ji(_n.id,_n.path),cardActions:$i&&s.createElement(fe.h,{icon:s.createElement(Ye.Z,null),"aria-label":Ae({id:(0,Ct.Z)("list.folder.edit"),defaultMessage:"Edit folder"}),onClick:()=>$i(_n)})},s.createElement(bt.Bu,null,s.createElement(bt.u6,{onClick:()=>ji(_n.id,_n.path)},s.createElement(h.k,{as:"h2",direction:"column",alignItems:"start",maxWidth:"100%"},s.createElement($r,{fontWeight:"semiBold",ellipsis:!0},_n.name,s.createElement(we.T,null,"-")),s.createElement($r,{as:"span",textColor:"neutral600",variant:"pi",ellipsis:!0},Ae({id:(0,Ct.Z)("list.folder.subtitle"),defaultMessage:"{folderCount, plural, =0 {# folder} one {# folder} other {# folders}}, {filesCount, plural, =0 {# asset} one {# asset} other {# assets}}"},{folderCount:_n.children.count,filesCount:_n.files.count}))))))))),yi>0&&Ii>0&&s.createElement(se.x,{paddingTop:6},s.createElement(U.i,null)),yi>0&&s.createElement(se.x,{paddingTop:6},s.createElement(ln.r,{allowedTypes:Oe,size:"S",assets:Xt,onSelectAsset:Bn,selectedAssets:he,onEditAsset:Fi,title:(!Jr||Jr&&Ii>0)&&ve.page===1&&Ae({id:(0,Ct.Z)("list.assets.title"),defaultMessage:"Assets ({count})"},{count:yi})||""}))),nt.pageCount>0&&s.createElement(h.k,{justifyContent:"space-between",paddingTop:4},s.createElement(ot,{pageSize:ve.pageSize,onChangePageSize:Er}),s.createElement(yn,{activePage:ve.page,onChangePage:fr,pagination:nt})))};ri.defaultProps={allowedTypes:[],folders:[],multiple:!1,onSelectAllAsset:void 0},ri.propTypes={allowedTypes:c().arrayOf(c().string),assets:c().arrayOf(T.pw).isRequired,canCreate:c().bool.isRequired,canRead:c().bool.isRequired,folders:c().arrayOf(T.nx),multiple:c().bool,onAddAsset:c().func.isRequired,onChangeFilters:c().func.isRequired,onChangeFolder:c().func.isRequired,onChangePage:c().func.isRequired,onChangePageSize:c().func.isRequired,onChangeSort:c().func.isRequired,onChangeSearch:c().func.isRequired,onEditAsset:c().func.isRequired,onEditFolder:c().func.isRequired,onSelectAsset:c().func.isRequired,onSelectAllAsset:c().func,queryObject:c().shape({filters:c().object,page:c().number.isRequired,pageSize:c().number.isRequired,_q:c().string,sort:c().string,folder:c().number}).isRequired,pagination:c().shape({pageCount:c().number.isRequired}).isRequired,selectedAssets:c().arrayOf(c().shape({})).isRequired};var Bt=t(37022);const Et=({onClose:Oe,onValidate:Ge})=>{const{formatMessage:Ft}=(0,D.Z)();return s.createElement(Bt.m,{startActions:s.createElement(F.z,{onClick:Oe,variant:"tertiary"},Ft({id:"app.components.Button.cancel",defaultMessage:"Cancel"})),endActions:Ge&&s.createElement(F.z,{onClick:Ge},Ft({id:"global.finish",defaultMessage:"Finish"}))})};Et.defaultProps={onValidate:void 0},Et.propTypes={onClose:c().func.isRequired,onValidate:c().func};const bn=({selectedAssets:Oe,onSelectAsset:Ge,onReorderAsset:Ft})=>{const{formatMessage:Qt}=(0,D.Z)();return s.createElement(h.k,{direction:"column",alignItems:"stretch",gap:4},s.createElement(h.k,{gap:0},s.createElement(k.Z,{variant:"pi",fontWeight:"bold",textColor:"neutral800"},Qt({id:(0,Ct.Z)("list.assets.to-upload"),defaultMessage:"{number, plural, =0 {No asset} one {1 asset} other {# assets}} ready to upload"},{number:Oe.length})),s.createElement(k.Z,{variant:"pi",textColor:"neutral600"},Qt({id:(0,Ct.Z)("modal.upload-list.sub-header-subtitle"),defaultMessage:"Manage the assets before adding them to the Media Library"}))),s.createElement(ln.r,{size:"S",assets:Oe,onSelectAsset:Ge,selectedAssets:Oe,onReorderAsset:Ft}))};bn.defaultProps={onReorderAsset:void 0},bn.propTypes={onSelectAsset:c().func.isRequired,selectedAssets:c().arrayOf(c().shape({})).isRequired,onReorderAsset:c().func};const cn=(0,x.default)(h.k)`
  /* 80px are coming from the Tabs component that is not included in the ModalBody */
  min-height: ${()=>`calc(60vh + ${(0,r.Q1)(80)})`};
`,Yn=({allowedTypes:Oe,folderId:Ge,onClose:Ft,onAddAsset:Qt,onAddFolder:wn,onChangeFolder:Gn,onValidate:ir,multiple:br,initiallySelectedAssets:fr,trackedLocation:Er})=>{const[Or,oi]=(0,s.useState)(void 0),[si,Fi]=(0,s.useState)(void 0),{formatMessage:$i}=(0,D.Z)(),{canRead:Vi,canCreate:Bn,isLoading:nt,canUpdate:ve,canCopyLink:he,canDownload:Ae}=(0,E.y)(),[{queryObject:tt},{onChangeFilters:St,onChangePage:kt,onChangePageSize:Jt,onChangeSort:gt,onChangeSearch:dn,onChangeFolder:Xt}]=z({folder:Ge}),{data:{pagination:hn,results:Sn}={},isLoading:Jn,error:Vn}=(0,u.L)({skipWhen:!Vi,query:tt}),{data:ar,isLoading:Vr,error:Jr}=(0,b.j)({enabled:Vi&&!(0,V.rV)(tt)&&hn?.page===1,query:tt}),[yi,{selectOne:Ii,selectOnly:ji,setSelections:_n,selectMultiple:_e,deselectMultiple:rt}]=(0,r.Uq)(["id"],fr),[vt,Gt]=(0,s.useState)(yi.length>0?1:0),We=()=>{const _r=q(Oe,Sn);if(!br)return;const Nr=_r.filter(Qr=>yi.findIndex(ki=>ki.id===Qr.id)!==-1);Nr.length>0?rt(Nr):_e(_r)},Ot=_r=>br?Ii(_r):ji(_r),Dt=nt||Jn||Vr,gn=Vn||Jr;if(Dt)return s.createElement(p.P,{onClose:Ft,labelledBy:"asset-dialog-title","aria-busy":!0},s.createElement(d.x,null,s.createElement(k.Z,{fontWeight:"bold"},$i({id:(0,V.OB)("header.actions.add-assets"),defaultMessage:"Add new assets"}))),s.createElement(cn,{justifyContent:"center",paddingTop:4,paddingBottom:4},s.createElement(M.a,null,$i({id:(0,V.OB)("content.isLoading"),defaultMessage:"Content is loading."}))),s.createElement(Et,{onClose:Ft}));if(gn)return s.createElement(p.P,{onClose:Ft,labelledBy:"asset-dialog-title"},s.createElement(d.x,null,s.createElement(k.Z,{fontWeight:"bold"},$i({id:(0,V.OB)("header.actions.add-assets"),defaultMessage:"Add new assets"}))),s.createElement(r.Hn,null),s.createElement(Et,{onClose:Ft}));if(!Vi)return s.createElement(p.P,{onClose:Ft,labelledBy:"asset-dialog-title"},s.createElement(d.x,{fontWeight:"bold"},s.createElement(k.Z,null,$i({id:(0,V.OB)("header.actions.add-assets"),defaultMessage:"Add new assets"}))),s.createElement(r.ZF,null),s.createElement(Et,{onClose:Ft}));if(Or)return s.createElement(pe.s,{onClose:()=>oi(void 0),asset:Or,canUpdate:ve,canCopyLink:he,canDownload:Ae,trackedLocation:Er});if(si)return s.createElement(Ie.f,{folder:si,onClose:()=>Fi(void 0),location:"content-manager",parentFolderId:tt?.folder});const Hn=(_r,Nr)=>{const Qr=Nr-_r,ki=yi.slice(),Si=X(ki,_r,Qr);_n(Si)},nr=(_r,Nr)=>{Gn(_r),Xt(_r,Nr)};return s.createElement(p.P,{onClose:Ft,labelledBy:"asset-dialog-title","aria-busy":Dt},s.createElement(d.x,null,s.createElement(k.Z,{fontWeight:"bold"},$i({id:(0,V.OB)("header.actions.add-assets"),defaultMessage:"Add new assets"}))),s.createElement(C.v,{label:$i({id:(0,V.OB)("tabs.title"),defaultMessage:"How do you want to upload your assets?"}),variant:"simple",initialSelectedTabIndex:vt,onTabChange:()=>Gt(0)},s.createElement(h.k,{paddingLeft:8,paddingRight:8,paddingTop:6,justifyContent:"space-between"},s.createElement(w.m,null,s.createElement(w.O,null,$i({id:(0,V.OB)("modal.nav.browse"),defaultMessage:"Browse"})),s.createElement(w.O,null,$i({id:(0,V.OB)("modal.header.select-files"),defaultMessage:"Selected files"}),s.createElement(I.C,{marginLeft:2},yi.length))),s.createElement(h.k,{gap:2},s.createElement(F.z,{variant:"secondary",onClick:()=>wn({folderId:tt?.folder})},$i({id:(0,V.OB)("modal.upload-list.sub-header.add-folder"),defaultMessage:"Add folder"})),s.createElement(F.z,{onClick:()=>Qt({folderId:tt?.folder})},$i({id:(0,V.OB)("modal.upload-list.sub-header.button"),defaultMessage:"Add more assets"})))),s.createElement(U.i,null),s.createElement(B.n,null,s.createElement(B.x,null,s.createElement(N.f,null,s.createElement(ri,{allowedTypes:Oe,assets:Sn,canCreate:Bn,canRead:Vi,folders:ar,onSelectAsset:Ot,selectedAssets:yi,multiple:br,onSelectAllAsset:We,onEditAsset:oi,onEditFolder:Fi,pagination:hn,queryObject:tt,onAddAsset:Qt,onChangeFilters:St,onChangeFolder:nr,onChangePage:kt,onChangePageSize:Jt,onChangeSort:gt,onChangeSearch:dn}))),s.createElement(B.x,null,s.createElement(N.f,null,s.createElement(bn,{selectedAssets:yi,onSelectAsset:Ot,onReorderAsset:Hn}))))),s.createElement(Et,{onClose:Ft,onValidate:()=>ir(yi)}))};Yn.defaultProps={allowedTypes:[],folderId:null,initiallySelectedAssets:[],multiple:!1,trackedLocation:void 0},Yn.propTypes={allowedTypes:c().arrayOf(c().string),folderId:c().number,initiallySelectedAssets:c().arrayOf(T.pw),multiple:c().bool,onAddAsset:c().func.isRequired,onAddFolder:c().func.isRequired,onChangeFolder:c().func.isRequired,onClose:c().func.isRequired,onValidate:c().func.isRequired,trackedLocation:c().string};var on=t(19839);const ze={AssetSelect:"SelectAsset",AssetUpload:"UploadAsset",FolderCreate:"FolderCreate"},Le=({onClose:Oe,onSelectAssets:Ge,allowedTypes:Ft})=>{const[Qt,wn]=(0,s.useState)(ze.AssetSelect),[Gn,ir]=(0,s.useState)(null);switch(Qt){case ze.AssetSelect:return s.createElement(Yn,{allowedTypes:Ft,folderId:Gn,onClose:()=>{wn(void 0),ir(null),Oe()},onValidate:Ge,onAddAsset:()=>wn(ze.AssetUpload),onAddFolder:()=>wn(ze.FolderCreate),onChangeFolder:br=>ir(br),multiple:!0});case ze.FolderCreate:return s.createElement(Ie.f,{onClose:()=>wn(ze.AssetSelect),parentFolderId:Gn});default:return s.createElement(on.x,{onClose:()=>wn(ze.AssetSelect),folderId:Gn})}};Le.defaultProps={allowedTypes:["files","images","videos","audios"]},Le.propTypes={allowedTypes:c().arrayOf(c().string),onClose:c().func.isRequired,onSelectAssets:c().func.isRequired};var Ht=t(87385),Mn=t(68020),tr=t(54607),Sr=t(6876),Xr=t(84809),gi=t(72160);const Pi=(0,x.default)(h.k)`
  background: linear-gradient(180deg, #ffffff 0%, #f6f6f9 121.48%);
`,ii=(0,x.default)(se.x)`
  canvas,
  video {
    max-width: 100%;
    height: 124px;
  }
`,vr=(0,x.default)(se.x)`
  canvas,
  audio {
    max-width: 100%;
  }
`,at=({asset:Oe})=>Oe.mime.includes(T.h3.Video)?s.createElement(ii,{height:"100%"},s.createElement(gi.F,{url:(0,V.eM)(Oe,!0),mime:Oe.mime,alt:Oe.alternativeText||Oe.name})):Oe.mime.includes(T.h3.Audio)?s.createElement(vr,null,s.createElement(Xr.N,{url:(0,V.eM)(Oe,!0),alt:Oe.alternativeText||Oe.name})):Oe.mime.includes(T.h3.Image)?s.createElement(se.x,{as:"img",maxHeight:"100%",maxWidth:"100%",src:(0,V.eM)(Oe,!0),alt:Oe.alternativeText||Oe.name}):s.createElement(Pi,{width:"100%",height:"100%",justifyContent:"center",hasRadius:!0},Oe.ext.includes("pdf")?s.createElement(tr.Z,{"aria-label":Oe.alternativeText||Oe.name,width:"24px",height:"32px"}):s.createElement(Sr.Z,{"aria-label":Oe.alternativeText||Oe.name,width:"24px",height:"32px"}));at.propTypes={asset:T.pw.isRequired};var it=t(7677),Re=t(54425),ke=t(85621);const Pe=({asset:Oe,onDeleteAsset:Ge,onAddAsset:Ft,onEditAsset:Qt})=>{const{formatMessage:wn}=(0,D.Z)();return s.createElement(it.b,null,Ft&&s.createElement(fe.h,{label:wn({id:(0,Ct.Z)("control-card.add"),defaultMessage:"Add"}),icon:s.createElement(Ne.Z,null),onClick:()=>Ft(Oe)}),s.createElement(ke.u,{url:(0,r.CR)(Oe.url)}),Ge&&s.createElement(fe.h,{label:wn({id:"global.delete",defaultMessage:"Delete"}),icon:s.createElement(Re.Z,null),onClick:()=>Ge(Oe)}),Qt&&s.createElement(fe.h,{label:wn({id:(0,Ct.Z)("control-card.edit"),defaultMessage:"edit"}),icon:s.createElement(Ye.Z,null),onClick:Qt}))};Pe.defaultProps={onAddAsset:void 0,onDeleteAsset:void 0,onEditAsset:void 0},Pe.propTypes={asset:T.pw.isRequired,onAddAsset:c().func,onEditAsset:c().func,onDeleteAsset:c().func};var Te=t(85200),Mt=t(73734),qt=t(91265);const Rn=(0,x.default)(k.Z)`
  align-items: center;
`,Qn=({disabled:Oe,onClick:Ge,onDropAsset:Ft})=>{const{formatMessage:Qt}=(0,D.Z)(),[wn,Gn]=(0,s.useState)(!1),ir=Or=>{Or.preventDefault(),Gn(!0)},br=Or=>{Or.currentTarget.contains(Or.relatedTarget)||Gn(!1)},fr=Or=>{Or.preventDefault()},Er=Or=>{if(Or.preventDefault(),Or?.dataTransfer?.files){const oi=Or.dataTransfer.files,si=[];for(let Fi=0;Fi<oi.length;Fi++){const $i=oi.item(Fi),Vi=(0,qt.j)($i,T._S.Computer);si.push(Vi)}Ft(si)}Gn(!1)};return s.createElement(h.k,{borderStyle:wn?"dashed":void 0,borderWidth:wn?"1px":void 0,borderColor:wn?"primary600":void 0,direction:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",as:"button",type:"button",disabled:Oe,onClick:Ge,onDragEnter:ir,onDragLeave:br,onDragOver:fr,onDrop:Er,style:{cursor:Oe?"not-allowed":"pointer"}},s.createElement(Te.J,{as:Mt.Z,"aria-hidden":!0,width:"30px",height:"24px",color:Oe?"neutral400":"primary600",marginBottom:3}),s.createElement(Rn,{variant:"pi",fontWeight:"bold",textColor:"neutral600",style:{textAlign:"center"},as:"span"},Qt({id:(0,Ct.Z)("mediaLibraryInput.placeholder"),defaultMessage:"Click to add an asset or drag and drop one in this area"})))};Qn.defaultProps={disabled:!1,onDropAsset:void 0},Qn.propTypes={disabled:c().bool,onClick:c().func.isRequired,onDropAsset:c().func};const ur=(0,s.forwardRef)(({assets:Oe,disabled:Ge,error:Ft,hint:Qt,label:wn,labelAction:Gn,onAddAsset:ir,onDeleteAsset:br,onDeleteAssetFromMediaLibrary:fr,onDropAsset:Er,onEditAsset:Or,onNext:oi,onPrevious:si,required:Fi,selectedAssetIndex:$i,trackedLocation:Vi},Bn)=>{const{formatMessage:nt}=(0,D.Z)(),[ve,he]=(0,s.useState)(!1),Ae=Oe[$i];return s.createElement(s.Fragment,null,s.createElement(Ht.F,{ref:Bn,label:wn,labelAction:Gn,secondaryLabel:Ae?.name,selectedSlide:$i,previousLabel:nt({id:(0,Ct.Z)("mediaLibraryInput.actions.previousSlide"),defaultMessage:"Previous slide"}),nextLabel:nt({id:(0,Ct.Z)("mediaLibraryInput.actions.nextSlide"),defaultMessage:"Next slide"}),onNext:oi,onPrevious:si,hint:Qt,error:Ft,required:Fi,actions:Ae?s.createElement(Pe,{asset:Ae,onDeleteAsset:Ge?void 0:br,onAddAsset:Ge?void 0:ir,onEditAsset:Or?()=>he(!0):void 0}):void 0},Oe.length===0?s.createElement(Mn.q,{label:nt({id:(0,Ct.Z)("mediaLibraryInput.slideCount"),defaultMessage:"{n} of {m} slides"},{n:1,m:1})},s.createElement(Qn,{disabled:Ge,onClick:ir,onDropAsset:Er})):Oe.map((tt,St)=>s.createElement(Mn.q,{key:tt.id,label:nt({id:(0,Ct.Z)("mediaLibraryInput.slideCount"),defaultMessage:"{n} of {m} slides"},{n:St+1,m:Oe.length})},s.createElement(at,{asset:tt})))),ve&&s.createElement(pe.s,{onClose:tt=>{he(!1),tt===null&&fr(),tt&&Or(tt)},asset:Ae,canUpdate:!0,canCopyLink:!0,canDownload:!0,trackedLocation:Vi}))});ur.defaultProps={disabled:!1,error:void 0,hint:void 0,labelAction:void 0,onDropAsset:void 0,required:!1,trackedLocation:void 0},ur.propTypes={assets:c().arrayOf(T.pw).isRequired,disabled:c().bool,error:c().string,hint:c().string,label:c().string.isRequired,labelAction:c().node,onAddAsset:c().func.isRequired,onDeleteAsset:c().func.isRequired,onDeleteAssetFromMediaLibrary:c().func.isRequired,onDropAsset:c().func,onEditAsset:c().func.isRequired,onNext:c().func.isRequired,onPrevious:c().func.isRequired,required:c().bool,selectedAssetIndex:c().number.isRequired,trackedLocation:c().string};const On={AssetSelect:"SelectAsset",AssetUpload:"UploadAsset",FolderCreate:"FolderCreate"},ct=(0,s.forwardRef)(({attribute:{allowedTypes:Oe},intlLabel:Ge,description:Ft,disabled:Qt,error:wn,labelAction:Gn,multiple:ir,name:br,onChange:fr,value:Er,required:Or},oi)=>{const si=Oe||["files","images","videos","audios"],[Fi,$i]=(0,s.useState)([]),[Vi,Bn]=(0,s.useState)(void 0),[nt,ve]=(0,s.useState)(0),[he,Ae]=(0,s.useState)(),[tt,St]=(0,s.useState)(null),{formatMessage:kt}=(0,D.Z)(),Jt=(0,r.lm)();(0,s.useEffect)(()=>{Vi===void 0&&$i([])},[Vi]);const gt=Array.isArray(Er)?Er:[Er],dn=_n=>{fr({target:{name:br,value:ir?_n:_n[0]}}),Bn(void 0)},Xt=()=>{let _n;if(ir){const _e=gt.filter((rt,vt)=>vt!==nt);_n=_e.length>0?_e:null}else _n=null;fr({target:{name:br,value:_n}}),ve(0)},hn=_n=>{let _e;if(ir){const rt=gt.filter(vt=>vt.id!==_n.id);_e=rt.length>0?rt:null}else _e=null;fr({target:{name:br,value:_e}}),ve(0)},Sn=_n=>{const _e=gt.map(rt=>rt.id===_n.id?_n:rt);fr({target:{name:br,value:ir?_e:_e[0]}})},Jn=(_n,_e)=>{const rt=q(si,_n);rt.length>0?_e(rt):Jt({type:"warning",timeout:4e3,message:{id:(0,Ct.Z)("input.notification.not-supported"),defaultMessage:"You can't upload this type of file.",values:{fileTypes:si.join(",")}}})},Vn=_n=>{Jn(_n,_e=>{Ae(_e),Bn(On.AssetUpload)})};let ar=Ge.id?kt(Ge):"";ir&&gt.length>0&&(ar=`${ar} (${nt+1} / ${gt.length})`);const Vr=()=>{ve(_n=>_n<gt.length-1?_n+1:0)},Jr=()=>{ve(_n=>_n>0?_n-1:gt.length-1)},yi=_n=>{$i(_e=>[..._e,..._n])},Ii=Ft?kt({id:Ft.id,defaultMessage:Ft.defaultMessage},{...Ft.values}):"";let ji=gt;if(Fi.length>0){const _n=q(si,Fi);ji=ir?[..._n,...gt]:[_n[0]]}return s.createElement(s.Fragment,null,s.createElement(ur,{ref:oi,assets:gt,disabled:Qt,label:ar,labelAction:Gn,onDeleteAsset:hn,onDeleteAssetFromMediaLibrary:Xt,onAddAsset:()=>Bn(On.AssetSelect),onDropAsset:Vn,onEditAsset:Sn,onNext:Vr,onPrevious:Jr,error:wn,hint:Ii,required:Or,selectedAssetIndex:nt,trackedLocation:"content-manager"}),Vi===On.AssetSelect&&s.createElement(Yn,{allowedTypes:si,initiallySelectedAssets:ji,folderId:tt,onClose:()=>{Bn(void 0),St(null)},onValidate:dn,multiple:ir,onAddAsset:()=>Bn(On.AssetUpload),onAddFolder:()=>Bn(On.FolderCreate),onChangeFolder:_n=>St(_n),trackedLocation:"content-manager"}),Vi===On.AssetUpload&&s.createElement(on.x,{onClose:()=>Bn(On.AssetSelect),initialAssetsToAdd:he,addUploadedFiles:yi,trackedLocation:"content-manager",folderId:tt,validateAssetsTypes:Jn}),Vi===On.FolderCreate&&s.createElement(Ie.f,{onClose:()=>Bn(On.AssetSelect),parentFolderId:tt}))});ct.defaultProps={attribute:{allowedTypes:["videos","files","images","audios"]},disabled:!1,description:void 0,error:void 0,intlLabel:void 0,labelAction:void 0,multiple:!1,required:!1,value:[]},ct.propTypes={attribute:c().shape({allowedTypes:c().arrayOf(c().string)}),disabled:c().bool,description:c().shape({id:c().string,defaultMessage:c().string,values:c().shape({})}),error:c().string,intlLabel:c().shape({id:c().string,defaultMessage:c().string}),labelAction:c().node,multiple:c().bool,onChange:c().func.isRequired,name:c().string.isRequired,required:c().bool,value:c().oneOfType([c().arrayOf(T.pw),T.pw])};var Zt=t(45241);const Pn=()=>s.createElement(Zt.Z,null);var Kn=t(18206);const Rt=n.s1.u2,Ke={register(Oe){Oe.addMenuLink({to:`/plugins/${Kn.Z}`,icon:Pn,intlLabel:{id:`${Kn.Z}.plugin.name`,defaultMessage:"Media Library"},permissions:T._I.main,async Component(){return await t.e(3650).then(t.bind(t,60648))}}),Oe.addFields({type:"media",Component:ct}),Oe.addComponents([{name:"media-library",Component:Le}]),Oe.registerPlugin({id:Kn.Z,name:Rt})},bootstrap(Oe){Oe.addSettingsLink("global",{id:"media-library-settings",intlLabel:{id:(0,Ct.Z)("plugin.name"),defaultMessage:"Media Library"},to:"/settings/media-library",async Component(){return await t.e(695).then(t.bind(t,56752))},permissions:T._I.settings})},async registerTrads({locales:Oe}){const Ge=await Promise.all(Oe.map(Ft=>t(98143)(`./${Ft}.json`).then(({default:Qt})=>({data:(0,r.jV)(Qt,Kn.Z),locale:Ft})).catch(()=>({data:{},locale:Ft}))));return Promise.resolve(Ge)}}},18206:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(64262);const s=r.u2.replace(/^@strapi\/plugin-/i,"")},62082:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>n});const n=[{name:"createdAt",fieldSchema:{type:"date"},metadatas:{label:"createdAt"}},{name:"updatedAt",fieldSchema:{type:"date"},metadatas:{label:"updatedAt"}},{name:"mime",fieldSchema:{type:"enumeration",options:[{label:"audio",value:"audio"},{label:"file",value:"file"},{label:"image",value:"image"},{label:"video",value:"video"}]},metadatas:{label:"type"}}]},55124:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>a});var r=t(93035),n=t.n(r);function s(c,h=0){const{value:p,unit:d}=n()(c*1e3,{precision:h});return d?`${p}${d.toUpperCase()}`:"0B"}const a=s},93593:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(18206);const s=a=>`${r.Z}.${a}`},63955:(Z,v,t)=>{"use strict";t.d(v,{ih:()=>r,rV:()=>a,eM:()=>p,d3:()=>d,td:()=>k.Z,LU:()=>w,bw:()=>U,M4:()=>T,om:()=>E,Km:()=>D,OB:()=>I.Z,Pl:()=>A.Z});const r=({url:R,params:H})=>{if(R===void 0||typeof H!="object")return R;const z=new URL(R,window.strapi.backendURL);return Object.entries(H).forEach(([V,$])=>{$!==void 0&&z.searchParams.append(V,$)}),z.toString()},n=R=>{const H=R?.filters?.$and;return H?!!H.find(V=>Object.keys(V).includes("mime")):!1},a=R=>n(R);var c=t(30972);const p=(R,H=!0)=>{if(R.isLocal)return R.url;const z=H&&R?.formats?.thumbnail?.url||R.url;return(0,c.CR)(z)};function d(R,H){let z;function V($){return $.value===H?(z=$,!0):Array.isArray($.children)&&$.children.some(V)}return R.some(V),z}var k=t(55124),M=t(35978);const C=R=>String(R).padStart(2,"0"),w=R=>{const H=(0,M.Z)({start:0,end:R*1e3});return`${C(H.hours)}:${C(H.minutes)}:${C(H.seconds)}`};var I=t(93593);const U=R=>{let H=[{id:null,label:{id:(0,I.Z)("plugin.name"),defaultMessage:"Media Library"}}];return R?.parent?.parent&&H.push([]),R?.parent&&H.push({id:R.parent.id,label:R.parent.name,path:R.parent.path}),R&&H.push({id:R.id,label:R.name,path:R.path}),H};var B=t(80129);const D=(R,H,{folder:z,folderPath:V}={})=>{const{_q:$,...ee}=H,q=(0,B.stringify)({...ee,folder:z,folderPath:V},{encode:!1});return`${R}${q?`?${q}`:""}`},T=(R,{pathname:H,query:z})=>{let V=[{id:null,label:{id:(0,I.Z)("plugin.name"),defaultMessage:"Media Library"},href:R?D(H,z):void 0}];return R?.parent?.parent&&V.push([]),R?.parent&&V.push({id:R.parent.id,label:R.parent.name,href:D(H,z,{folder:R.parent.id,folderPath:R.parent.path})}),R&&V.push({id:R.id,label:R.name}),V};var u=t(56618);const E=(R,H)=>{const z=[],V=(0,u.Z)(R),$=V.find(q=>q.value===H);if(!$)return[];let{parent:ee}=$;for(;ee!==void 0;){let q=V.find(({value:oe})=>oe===ee);z.push({id:q.value,label:q.label}),ee=q.parent}return z.reverse()};var A=t(23208)},91265:(Z,v,t)=>{"use strict";t.d(v,{j:()=>n});var r=t(1629);const n=(s,a)=>({size:s.size/1e3,createdAt:new Date(s.lastModified).toISOString(),name:s.name,source:a,type:(0,r.Z)(s.type),url:URL.createObjectURL(s),ext:s.name.split(".").pop(),mime:s.type,rawFile:s,isLocal:!0})},23208:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>n});const n=s=>s?s.map(a=>a.substring(0,a.length-1)):[]},1629:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>n});var r=t(11727);const n=s=>s.includes(r.h3.Image)?r.h3.Image:s.includes(r.h3.Video)?r.h3.Video:s.includes(r.h3.Audio)?r.h3.Audio:r.h3.Document},94525:(Z,v,t)=>{"use strict";Z.exports=t(13008).default},84419:(Z,v,t)=>{"use strict";t.d(v,{_:()=>r});const r={accessRoles:[{action:"plugin::users-permissions.roles.create",subject:null},{action:"plugin::users-permissions.roles.read",subject:null}],createRole:[{action:"plugin::users-permissions.roles.create",subject:null}],deleteRole:[{action:"plugin::users-permissions.roles.delete",subject:null}],readRoles:[{action:"plugin::users-permissions.roles.read",subject:null}],updateRole:[{action:"plugin::users-permissions.roles.update",subject:null}],readAdvancedSettings:[{action:"plugin::users-permissions.advanced-settings.read",subject:null}],updateAdvancedSettings:[{action:"plugin::users-permissions.advanced-settings.update",subject:null}],readEmailTemplates:[{action:"plugin::users-permissions.email-templates.read",subject:null}],updateEmailTemplates:[{action:"plugin::users-permissions.email-templates.update",subject:null}],readProviders:[{action:"plugin::users-permissions.providers.read",subject:null}],updateProviders:[{action:"plugin::users-permissions.providers.update",subject:null}]}},78915:(Z,v,t)=>{"use strict";t.d(v,{default:()=>h});var r=t(30972),n=t(40657),s=t(84419),a=t(58655);const c=n.s1.u2,h={register(p){p.createSettingSection({id:"users-permissions",intlLabel:{id:(0,a.Z)("Settings.section-label"),defaultMessage:"Users & Permissions plugin"}},[{intlLabel:{id:"global.roles",defaultMessage:"Roles"},id:"roles",to:"/settings/users-permissions/roles",async Component(){return await t.e(8853).then(t.bind(t,26302))},permissions:s._.accessRoles},{intlLabel:{id:(0,a.Z)("HeaderNav.link.providers"),defaultMessage:"Providers"},id:"providers",to:"/settings/users-permissions/providers",async Component(){return await t.e(2282).then(t.bind(t,1431))},permissions:s._.readProviders},{intlLabel:{id:(0,a.Z)("HeaderNav.link.emailTemplates"),defaultMessage:"Email templates"},id:"email-templates",to:"/settings/users-permissions/email-templates",async Component(){return await t.e(8418).then(t.bind(t,38977))},permissions:s._.readEmailTemplates},{intlLabel:{id:(0,a.Z)("HeaderNav.link.advancedSettings"),defaultMessage:"Advanced Settings"},id:"advanced-settings",to:"/settings/users-permissions/advanced-settings",async Component(){return await t.e(9460).then(t.bind(t,58350))},permissions:s._.readAdvancedSettings}]),p.registerPlugin({id:"users-permissions",name:c})},bootstrap(){},async registerTrads({locales:p}){const d=await Promise.all(p.map(k=>t(98795)(`./${k}.json`).then(({default:M})=>({data:(0,r.jV)(M,"users-permissions"),locale:k})).catch(()=>({data:{},locale:k}))));return Promise.resolve(d)}}},58655:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>c});var r=t(40657);const s=r.u2.replace(/^@strapi\/plugin-/i,""),c=h=>`${s}.${h}`},12643:(Z,v,t)=>{"use strict";Z.exports=t(78915).default},64063:Z=>{"use strict";Z.exports=function v(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,s,a;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(s=n;s--!==0;)if(!v(t[s],r[s]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(a=Object.keys(t),n=a.length,n!==Object.keys(r).length)return!1;for(s=n;s--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[s]))return!1;for(s=n;s--!==0;){var c=a[s];if(!v(t[c],r[c]))return!1}return!0}return t!==t&&r!==r}},41054:(Z,v,t)=>{"use strict";t.d(v,{gN:()=>Nh,F2:()=>Ku,l0:()=>Ld,J9:()=>gh,Hy:()=>Lh,U$:()=>Rd,TA:()=>Xd,u6:()=>hl});var r=t(67294),n=t(69590),s=t.n(n),a=function(Dn){return c(Dn)&&!h(Dn)};function c(xt){return!!xt&&typeof xt=="object"}function h(xt){var Dn=Object.prototype.toString.call(xt);return Dn==="[object RegExp]"||Dn==="[object Date]"||k(xt)}var p=typeof Symbol=="function"&&Symbol.for,d=p?Symbol.for("react.element"):60103;function k(xt){return xt.$$typeof===d}function M(xt){return Array.isArray(xt)?[]:{}}function C(xt,Dn){return Dn.clone!==!1&&Dn.isMergeableObject(xt)?F(M(xt),xt,Dn):xt}function w(xt,Dn,er){return xt.concat(Dn).map(function(Ar){return C(Ar,er)})}function I(xt,Dn,er){var Ar={};return er.isMergeableObject(xt)&&Object.keys(xt).forEach(function(Rr){Ar[Rr]=C(xt[Rr],er)}),Object.keys(Dn).forEach(function(Rr){!er.isMergeableObject(Dn[Rr])||!xt[Rr]?Ar[Rr]=C(Dn[Rr],er):Ar[Rr]=F(xt[Rr],Dn[Rr],er)}),Ar}function F(xt,Dn,er){er=er||{},er.arrayMerge=er.arrayMerge||w,er.isMergeableObject=er.isMergeableObject||a;var Ar=Array.isArray(Dn),Rr=Array.isArray(xt),hi=Ar===Rr;return hi?Ar?er.arrayMerge(xt,Dn,er):I(xt,Dn,er):C(Dn,er)}F.all=function(Dn,er){if(!Array.isArray(Dn))throw new Error("first argument should be an array");return Dn.reduce(function(Ar,Rr){return F(Ar,Rr,er)},{})};var U=F;const B=U;var N=typeof global=="object"&&global&&global.Object===Object&&global;const D=N;var x=typeof self=="object"&&self&&self.Object===Object&&self,T=D||x||Function("return this")();const u=T;var b=u.Symbol;const E=b;var A=Object.prototype,R=A.hasOwnProperty,H=A.toString,z=E?E.toStringTag:void 0;function V(xt){var Dn=R.call(xt,z),er=xt[z];try{xt[z]=void 0;var Ar=!0}catch{}var Rr=H.call(xt);return Ar&&(Dn?xt[z]=er:delete xt[z]),Rr}const $=V;var ee=Object.prototype,q=ee.toString;function oe(xt){return q.call(xt)}const X=oe;var pe="[object Null]",Ie="[object Undefined]",se=E?E.toStringTag:void 0;function be(xt){return xt==null?xt===void 0?Ie:pe:se&&se in Object(xt)?$(xt):X(xt)}const fe=be;function ue(xt,Dn){return function(er){return xt(Dn(er))}}const we=ue;var Me=we(Object.getPrototypeOf,Object);const Ce=Me;function Ne(xt){return xt!=null&&typeof xt=="object"}const Ye=Ne;var mt="[object Object]",Ct=Function.prototype,ln=Object.prototype,$e=Ct.toString,Qe=ln.hasOwnProperty,bt=$e.call(Object);function It(xt){if(!Ye(xt)||fe(xt)!=mt)return!1;var Dn=Ce(xt);if(Dn===null)return!0;var er=Qe.call(Dn,"constructor")&&Dn.constructor;return typeof er=="function"&&er instanceof er&&$e.call(er)==bt}const mn=It;function un(){this.__data__=[],this.size=0}const Be=un;function je(xt,Dn){return xt===Dn||xt!==xt&&Dn!==Dn}const $t=je;function et(xt,Dn){for(var er=xt.length;er--;)if($t(xt[er][0],Dn))return er;return-1}const Kt=et;var kn=Array.prototype,Tn=kn.splice;function ht(xt){var Dn=this.__data__,er=Kt(Dn,xt);if(er<0)return!1;var Ar=Dn.length-1;return er==Ar?Dn.pop():Tn.call(Dn,er,1),--this.size,!0}const ot=ht;function Je(xt){var Dn=this.__data__,er=Kt(Dn,xt);return er<0?void 0:Dn[er][1]}const wt=Je;function ft(xt){return Kt(this.__data__,xt)>-1}const vn=ft;function ut(xt,Dn){var er=this.__data__,Ar=Kt(er,xt);return Ar<0?(++this.size,er.push([xt,Dn])):er[Ar][1]=Dn,this}const Wt=ut;function ae(xt){var Dn=-1,er=xt==null?0:xt.length;for(this.clear();++Dn<er;){var Ar=xt[Dn];this.set(Ar[0],Ar[1])}}ae.prototype.clear=Be,ae.prototype.delete=ot,ae.prototype.get=wt,ae.prototype.has=vn,ae.prototype.set=Wt;const ne=ae;function ge(){this.__data__=new ne,this.size=0}const ye=ge;function Xe(xt){var Dn=this.__data__,er=Dn.delete(xt);return this.size=Dn.size,er}const Ze=Xe;function lt(xt){return this.__data__.get(xt)}const _t=lt;function zt(xt){return this.__data__.has(xt)}const Vt=zt;function sn(xt){var Dn=typeof xt;return xt!=null&&(Dn=="object"||Dn=="function")}const yn=sn;var dr="[object AsyncFunction]",hr="[object Function]",Mr="[object GeneratorFunction]",rr="[object Proxy]";function Cr(xt){if(!yn(xt))return!1;var Dn=fe(xt);return Dn==hr||Dn==Mr||Dn==dr||Dn==rr}const Ur=Cr;var $r=u["__core-js_shared__"];const li=$r;var ri=function(){var xt=/[^.]+$/.exec(li&&li.keys&&li.keys.IE_PROTO||"");return xt?"Symbol(src)_1."+xt:""}();function Bt(xt){return!!ri&&ri in xt}const Et=Bt;var bn=Function.prototype,cn=bn.toString;function Yn(xt){if(xt!=null){try{return cn.call(xt)}catch{}try{return xt+""}catch{}}return""}const on=Yn;var ze=/[\\^$.*+?()[\]{}|]/g,Le=/^\[object .+?Constructor\]$/,Ht=Function.prototype,Mn=Object.prototype,tr=Ht.toString,Sr=Mn.hasOwnProperty,Xr=RegExp("^"+tr.call(Sr).replace(ze,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function gi(xt){if(!yn(xt)||Et(xt))return!1;var Dn=Ur(xt)?Xr:Le;return Dn.test(on(xt))}const Pi=gi;function ii(xt,Dn){return xt?.[Dn]}const vr=ii;function at(xt,Dn){var er=vr(xt,Dn);return Pi(er)?er:void 0}const it=at;var Re=it(u,"Map");const ke=Re;var Pe=it(Object,"create");const Te=Pe;function Mt(){this.__data__=Te?Te(null):{},this.size=0}const qt=Mt;function Rn(xt){var Dn=this.has(xt)&&delete this.__data__[xt];return this.size-=Dn?1:0,Dn}const Qn=Rn;var ur="__lodash_hash_undefined__",On=Object.prototype,ct=On.hasOwnProperty;function Zt(xt){var Dn=this.__data__;if(Te){var er=Dn[xt];return er===ur?void 0:er}return ct.call(Dn,xt)?Dn[xt]:void 0}const Cn=Zt;var Pn=Object.prototype,Kn=Pn.hasOwnProperty;function Rt(xt){var Dn=this.__data__;return Te?Dn[xt]!==void 0:Kn.call(Dn,xt)}const Ke=Rt;var Oe="__lodash_hash_undefined__";function Ge(xt,Dn){var er=this.__data__;return this.size+=this.has(xt)?0:1,er[xt]=Te&&Dn===void 0?Oe:Dn,this}const Ft=Ge;function Qt(xt){var Dn=-1,er=xt==null?0:xt.length;for(this.clear();++Dn<er;){var Ar=xt[Dn];this.set(Ar[0],Ar[1])}}Qt.prototype.clear=qt,Qt.prototype.delete=Qn,Qt.prototype.get=Cn,Qt.prototype.has=Ke,Qt.prototype.set=Ft;const wn=Qt;function Gn(){this.size=0,this.__data__={hash:new wn,map:new(ke||ne),string:new wn}}const ir=Gn;function br(xt){var Dn=typeof xt;return Dn=="string"||Dn=="number"||Dn=="symbol"||Dn=="boolean"?xt!=="__proto__":xt===null}const fr=br;function Er(xt,Dn){var er=xt.__data__;return fr(Dn)?er[typeof Dn=="string"?"string":"hash"]:er.map}const Or=Er;function oi(xt){var Dn=Or(this,xt).delete(xt);return this.size-=Dn?1:0,Dn}const si=oi;function Fi(xt){return Or(this,xt).get(xt)}const $i=Fi;function Vi(xt){return Or(this,xt).has(xt)}const Bn=Vi;function nt(xt,Dn){var er=Or(this,xt),Ar=er.size;return er.set(xt,Dn),this.size+=er.size==Ar?0:1,this}const ve=nt;function he(xt){var Dn=-1,er=xt==null?0:xt.length;for(this.clear();++Dn<er;){var Ar=xt[Dn];this.set(Ar[0],Ar[1])}}he.prototype.clear=ir,he.prototype.delete=si,he.prototype.get=$i,he.prototype.has=Bn,he.prototype.set=ve;const Ae=he;var tt=200;function St(xt,Dn){var er=this.__data__;if(er instanceof ne){var Ar=er.__data__;if(!ke||Ar.length<tt-1)return Ar.push([xt,Dn]),this.size=++er.size,this;er=this.__data__=new Ae(Ar)}return er.set(xt,Dn),this.size=er.size,this}const kt=St;function Jt(xt){var Dn=this.__data__=new ne(xt);this.size=Dn.size}Jt.prototype.clear=ye,Jt.prototype.delete=Ze,Jt.prototype.get=_t,Jt.prototype.has=Vt,Jt.prototype.set=kt;const gt=Jt;function dn(xt,Dn){for(var er=-1,Ar=xt==null?0:xt.length;++er<Ar&&Dn(xt[er],er,xt)!==!1;);return xt}const Xt=dn;var hn=function(){try{var xt=it(Object,"defineProperty");return xt({},"",{}),xt}catch{}}();const Sn=hn;function Jn(xt,Dn,er){Dn=="__proto__"&&Sn?Sn(xt,Dn,{configurable:!0,enumerable:!0,value:er,writable:!0}):xt[Dn]=er}const Vn=Jn;var ar=Object.prototype,Vr=ar.hasOwnProperty;function Jr(xt,Dn,er){var Ar=xt[Dn];(!(Vr.call(xt,Dn)&&$t(Ar,er))||er===void 0&&!(Dn in xt))&&Vn(xt,Dn,er)}const yi=Jr;function Ii(xt,Dn,er,Ar){var Rr=!er;er||(er={});for(var hi=-1,Ti=Dn.length;++hi<Ti;){var ao=Dn[hi],$o=Ar?Ar(er[ao],xt[ao],ao,er,xt):void 0;$o===void 0&&($o=xt[ao]),Rr?Vn(er,ao,$o):yi(er,ao,$o)}return er}const ji=Ii;function _n(xt,Dn){for(var er=-1,Ar=Array(xt);++er<xt;)Ar[er]=Dn(er);return Ar}const _e=_n;var rt="[object Arguments]";function vt(xt){return Ye(xt)&&fe(xt)==rt}const Gt=vt;var We=Object.prototype,Ot=We.hasOwnProperty,Dt=We.propertyIsEnumerable,gn=Gt(function(){return arguments}())?Gt:function(xt){return Ye(xt)&&Ot.call(xt,"callee")&&!Dt.call(xt,"callee")};const Hn=gn;var nr=Array.isArray;const _r=nr;function Nr(){return!1}const Qr=Nr;var ki=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Si=ki&&typeof module=="object"&&module&&!module.nodeType&&module,Ei=Si&&Si.exports===ki,oo=Ei?u.Buffer:void 0,zi=oo?oo.isBuffer:void 0,Xi=zi||Qr;const uo=Xi;var qi=9007199254740991,Ui=/^(?:0|[1-9]\d*)$/;function Vo(xt,Dn){var er=typeof xt;return Dn=Dn??qi,!!Dn&&(er=="number"||er!="symbol"&&Ui.test(xt))&&xt>-1&&xt%1==0&&xt<Dn}const Cs=Vo;var ra=9007199254740991;function Ts(xt){return typeof xt=="number"&&xt>-1&&xt%1==0&&xt<=ra}const Io=Ts;var xr="[object Arguments]",ia="[object Array]",Is="[object Boolean]",Gs="[object Date]",as="[object Error]",Wo="[object Function]",Ma="[object Map]",fa="[object Number]",dt="[object Object]",Fe="[object RegExp]",an="[object Set]",qn="[object String]",Fr="[object WeakMap]",ui="[object ArrayBuffer]",Hi="[object DataView]",lo="[object Float32Array]",mo="[object Float64Array]",ts="[object Int8Array]",co="[object Int16Array]",Oo="[object Int32Array]",Po="[object Uint8Array]",Yo="[object Uint8ClampedArray]",ns="[object Uint16Array]",Os="[object Uint32Array]",Lo={};Lo[lo]=Lo[mo]=Lo[ts]=Lo[co]=Lo[Oo]=Lo[Po]=Lo[Yo]=Lo[ns]=Lo[Os]=!0,Lo[xr]=Lo[ia]=Lo[ui]=Lo[Is]=Lo[Hi]=Lo[Gs]=Lo[as]=Lo[Wo]=Lo[Ma]=Lo[fa]=Lo[dt]=Lo[Fe]=Lo[an]=Lo[qn]=Lo[Fr]=!1;function da(xt){return Ye(xt)&&Io(xt.length)&&!!Lo[fe(xt)]}const Qs=da;function ta(xt){return function(Dn){return xt(Dn)}}const Oa=ta;var _l=typeof exports=="object"&&exports&&!exports.nodeType&&exports,gs=_l&&typeof module=="object"&&module&&!module.nodeType&&module,ds=gs&&gs.exports===_l,es=ds&&D.process,Ga=function(){try{var xt=gs&&gs.require&&gs.require("util").types;return xt||es&&es.binding&&es.binding("util")}catch{}}();const So=Ga;var Di=So&&So.isTypedArray,Il=Di?Oa(Di):Qs;const Na=Il;var xl=Object.prototype,Rl=xl.hasOwnProperty;function Pa(xt,Dn){var er=_r(xt),Ar=!er&&Hn(xt),Rr=!er&&!Ar&&uo(xt),hi=!er&&!Ar&&!Rr&&Na(xt),Ti=er||Ar||Rr||hi,ao=Ti?_e(xt.length,String):[],$o=ao.length;for(var wo in xt)(Dn||Rl.call(xt,wo))&&!(Ti&&(wo=="length"||Rr&&(wo=="offset"||wo=="parent")||hi&&(wo=="buffer"||wo=="byteLength"||wo=="byteOffset")||Cs(wo,$o)))&&ao.push(wo);return ao}const fi=Pa;var rl=Object.prototype;function Xn(xt){var Dn=xt&&xt.constructor,er=typeof Dn=="function"&&Dn.prototype||rl;return xt===er}const Kr=Xn;var Ln=we(Object.keys,Object);const gr=Ln;var pr=Object.prototype,Wr=pr.hasOwnProperty;function Lt(xt){if(!Kr(xt))return gr(xt);var Dn=[];for(var er in Object(xt))Wr.call(xt,er)&&er!="constructor"&&Dn.push(er);return Dn}const re=Lt;function me(xt){return xt!=null&&Io(xt.length)&&!Ur(xt)}const Ue=me;function He(xt){return Ue(xt)?fi(xt):re(xt)}const At=He;function Ut(xt,Dn){return xt&&ji(Dn,At(Dn),xt)}const en=Ut;function Yt(xt){var Dn=[];if(xt!=null)for(var er in Object(xt))Dn.push(er);return Dn}const In=Yt;var $n=Object.prototype,wr=$n.hasOwnProperty;function Tr(xt){if(!yn(xt))return In(xt);var Dn=Kr(xt),er=[];for(var Ar in xt)Ar=="constructor"&&(Dn||!wr.call(xt,Ar))||er.push(Ar);return er}const qr=Tr;function di(xt){return Ue(xt)?fi(xt,!0):qr(xt)}const ai=di;function Ri(xt,Dn){return xt&&ji(Dn,ai(Dn),xt)}const Qi=Ri;var so=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Do=so&&typeof module=="object"&&module&&!module.nodeType&&module,Ro=Do&&Do.exports===so,Rs=Ro?u.Buffer:void 0,Ns=Rs?Rs.allocUnsafe:void 0;function Ls(xt,Dn){if(Dn)return xt.slice();var er=xt.length,Ar=Ns?Ns(er):new xt.constructor(er);return xt.copy(Ar),Ar}const Ba=Ls;function Da(xt,Dn){var er=-1,Ar=xt.length;for(Dn||(Dn=Array(Ar));++er<Ar;)Dn[er]=xt[er];return Dn}const go=Da;function Wl(xt,Dn){for(var er=-1,Ar=xt==null?0:xt.length,Rr=0,hi=[];++er<Ar;){var Ti=xt[er];Dn(Ti,er,xt)&&(hi[Rr++]=Ti)}return hi}const na=Wl;function Eo(){return[]}const Fs=Eo;var _a=Object.prototype,Ya=_a.propertyIsEnumerable,Ss=Object.getOwnPropertySymbols,Zl=Ss?function(xt){return xt==null?[]:(xt=Object(xt),na(Ss(xt),function(Dn){return Ya.call(xt,Dn)}))}:Fs;const Us=Zl;function Ll(xt,Dn){return ji(xt,Us(xt),Dn)}const nc=Ll;function Dc(xt,Dn){for(var er=-1,Ar=Dn.length,Rr=xt.length;++er<Ar;)xt[Rr+er]=Dn[er];return xt}const xa=Dc;var Kl=Object.getOwnPropertySymbols,Ea=Kl?function(xt){for(var Dn=[];xt;)xa(Dn,Us(xt)),xt=Ce(xt);return Dn}:Fs;const js=Ea;function jl(xt,Dn){return ji(xt,js(xt),Dn)}const Bl=jl;function il(xt,Dn,er){var Ar=Dn(xt);return _r(xt)?Ar:xa(Ar,er(xt))}const ko=il;function fc(xt){return ko(xt,At,Us)}const pc=fc;function rc(xt){return ko(xt,ai,js)}const Ic=rc;var su=it(u,"DataView");const Rc=su;var El=it(u,"Promise");const Nl=El;var ud=it(u,"Set");const au=ud;var Lc=it(u,"WeakMap");const zu=Lc;var mc="[object Map]",ol="[object Object]",gc="[object Promise]",Fl="[object Set]",jn="[object WeakMap]",Qa="[object DataView]",jc=on(Rc),Fa=on(ke),Go=on(Nl),Tc=on(au),Zc=on(zu),sl=fe;(Rc&&sl(new Rc(new ArrayBuffer(1)))!=Qa||ke&&sl(new ke)!=mc||Nl&&sl(Nl.resolve())!=gc||au&&sl(new au)!=Fl||zu&&sl(new zu)!=jn)&&(sl=function(xt){var Dn=fe(xt),er=Dn==ol?xt.constructor:void 0,Ar=er?on(er):"";if(Ar)switch(Ar){case jc:return Qa;case Fa:return mc;case Go:return gc;case Tc:return Fl;case Zc:return jn}return Dn});const $s=sl;var xs=Object.prototype,cs=xs.hasOwnProperty;function hs(xt){var Dn=xt.length,er=new xt.constructor(Dn);return Dn&&typeof xt[0]=="string"&&cs.call(xt,"index")&&(er.index=xt.index,er.input=xt.input),er}const Gl=hs;var As=u.Uint8Array;const fs=As;function $a(xt){var Dn=new xt.constructor(xt.byteLength);return new fs(Dn).set(new fs(xt)),Dn}const al=$a;function Vs(xt,Dn){var er=Dn?al(xt.buffer):xt.buffer;return new xt.constructor(er,xt.byteOffset,xt.byteLength)}const Hs=Vs;var ka=/\w*$/;function kl(xt){var Dn=new xt.constructor(xt.source,ka.exec(xt));return Dn.lastIndex=xt.lastIndex,Dn}const la=kl;var rs=E?E.prototype:void 0,ic=rs?rs.valueOf:void 0;function Mu(xt){return ic?Object(ic.call(xt)):{}}const Sd=Mu;function Bc(xt,Dn){var er=Dn?al(xt.buffer):xt.buffer;return new xt.constructor(er,xt.byteOffset,xt.length)}const dd=Bc;var Ha="[object Boolean]",ll="[object Date]",Nc="[object Map]",Va="[object Number]",Ca="[object RegExp]",Ps="[object Set]",Yl="[object String]",Ql="[object Symbol]",Pt="[object ArrayBuffer]",st="[object DataView]",nn="[object Float32Array]",Un="[object Float64Array]",or="[object Int8Array]",lr="[object Int16Array]",jr="[object Int32Array]",Br="[object Uint8Array]",Yr="[object Uint8ClampedArray]",Oi="[object Uint16Array]",Mi="[object Uint32Array]";function eo(xt,Dn,er){var Ar=xt.constructor;switch(Dn){case Pt:return al(xt);case Ha:case ll:return new Ar(+xt);case st:return Hs(xt,er);case nn:case Un:case or:case lr:case jr:case Br:case Yr:case Oi:case Mi:return dd(xt,er);case Nc:return new Ar;case Va:case Yl:return new Ar(xt);case Ca:return la(xt);case Ps:return new Ar;case Ql:return Sd(xt)}}const Ni=eo;var no=Object.create,vo=function(){function xt(){}return function(Dn){if(!yn(Dn))return{};if(no)return no(Dn);xt.prototype=Dn;var er=new xt;return xt.prototype=void 0,er}}();const Qo=vo;function No(xt){return typeof xt.constructor=="function"&&!Kr(xt)?Qo(Ce(xt)):{}}const ps=No;var ba="[object Map]";function Fc(xt){return Ye(xt)&&$s(xt)==ba}const cl=Fc;var Kc=So&&So.isMap,lu=Kc?Oa(Kc):cl;const Ia=lu;var Gc="[object Set]";function Jl(xt){return Ye(xt)&&$s(xt)==Gc}const $l=Jl;var Ou=So&&So.isSet,oc=Ou?Oa(Ou):$l;const ul=oc;var Yc=1,gl=2,Ad=4,Qc="[object Arguments]",cu="[object Array]",hd="[object Boolean]",Uu="[object Date]",uu="[object Error]",sc="[object Function]",Md="[object GeneratorFunction]",Od="[object Map]",Wd="[object Number]",Cl="[object Object]",Pd="[object RegExp]",fd="[object Set]",Pu="[object String]",fh="[object Symbol]",Dh="[object WeakMap]",ph="[object ArrayBuffer]",Zd="[object DataView]",Jc="[object Float32Array]",Xl="[object Float64Array]",vc="[object Int8Array]",Du="[object Int16Array]",Hu="[object Int32Array]",Kd="[object Uint8Array]",Iu="[object Uint8ClampedArray]",ac="[object Uint16Array]",Wu="[object Uint32Array]",ca={};ca[Qc]=ca[cu]=ca[ph]=ca[Zd]=ca[hd]=ca[Uu]=ca[Jc]=ca[Xl]=ca[vc]=ca[Du]=ca[Hu]=ca[Od]=ca[Wd]=ca[Cl]=ca[Pd]=ca[fd]=ca[Pu]=ca[fh]=ca[Kd]=ca[Iu]=ca[ac]=ca[Wu]=!0,ca[uu]=ca[sc]=ca[Dh]=!1;function bc(xt,Dn,er,Ar,Rr,hi){var Ti,ao=Dn&Yc,$o=Dn&gl,wo=Dn&Ad;if(er&&(Ti=Rr?er(xt,Ar,Rr,hi):er(xt)),Ti!==void 0)return Ti;if(!yn(xt))return xt;var Js=_r(xt);if(Js){if(Ti=Gl(xt),!ao)return go(xt,Ti)}else{var Bs=$s(xt),mi=Bs==sc||Bs==Md;if(uo(xt))return Ba(xt,ao);if(Bs==Cl||Bs==Qc||mi&&!Rr){if(Ti=$o||mi?{}:ps(xt),!ao)return $o?Bl(xt,Qi(Ti,xt)):nc(xt,en(Ti,xt))}else{if(!ca[Bs])return Rr?xt:{};Ti=Ni(xt,Bs,ao)}}hi||(hi=new gt);var Sa=hi.get(xt);if(Sa)return Sa;hi.set(xt,Ti),ul(xt)?xt.forEach(function(qa){Ti.add(bc(qa,Dn,er,qa,xt,hi))}):Ia(xt)&&xt.forEach(function(qa,ga){Ti.set(ga,bc(qa,Dn,er,ga,xt,hi))});var uc=wo?$o?Ic:pc:$o?ai:At,Xa=Js?void 0:uc(xt);return Xt(Xa||xt,function(qa,ga){Xa&&(ga=qa,qa=xt[ga]),yi(Ti,ga,bc(qa,Dn,er,ga,xt,hi))}),Ti}const Gd=bc;var du=4;function Ru(xt){return Gd(xt,du)}const Sc=Ru;function Ta(xt,Dn){for(var er=-1,Ar=xt==null?0:xt.length,Rr=Array(Ar);++er<Ar;)Rr[er]=Dn(xt[er],er,xt);return Rr}const hu=Ta;var pd="[object Symbol]";function md(xt){return typeof xt=="symbol"||Ye(xt)&&fe(xt)==pd}const vs=md;var gd="Expected a function";function yc(xt,Dn){if(typeof xt!="function"||Dn!=null&&typeof Dn!="function")throw new TypeError(gd);var er=function(){var Ar=arguments,Rr=Dn?Dn.apply(this,Ar):Ar[0],hi=er.cache;if(hi.has(Rr))return hi.get(Rr);var Ti=xt.apply(this,Ar);return er.cache=hi.set(Rr,Ti)||hi,Ti};return er.cache=new(yc.Cache||Ae),er}yc.Cache=Ae;const ma=yc;var oa=500;function Wa(xt){var Dn=ma(xt,function(Ar){return er.size===oa&&er.clear(),Ar}),er=Dn.cache;return Dn}const fu=Wa;var Tl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pu=/\\(\\)?/g,Xc=fu(function(xt){var Dn=[];return xt.charCodeAt(0)===46&&Dn.push(""),xt.replace(Tl,function(er,Ar,Rr,hi){Dn.push(Rr?hi.replace(pu,"$1"):Ar||er)}),Dn});const dl=Xc;var wc=1/0;function W(xt){if(typeof xt=="string"||vs(xt))return xt;var Dn=xt+"";return Dn=="0"&&1/xt==-wc?"-0":Dn}const o=W;var g=1/0,P=E?E.prototype:void 0,K=P?P.toString:void 0;function ie(xt){if(typeof xt=="string")return xt;if(_r(xt))return hu(xt,ie)+"";if(vs(xt))return K?K.call(xt):"";var Dn=xt+"";return Dn=="0"&&1/xt==-g?"-0":Dn}const xe=ie;function jt(xt){return xt==null?"":xe(xt)}const tn=jt;function xn(xt){return _r(xt)?hu(xt,o):vs(xt)?[xt]:go(dl(tn(xt)))}const Fn=xn;var mr=!0;function Pr(xt,Dn){if(!mr){if(xt)return;var er="Warning: "+Dn;typeof console<"u"&&console.warn(er);try{throw Error(er)}catch{}}}const ti=Pr;var Ci=t(8679),Ji=t.n(Ci),ho=1,is=4;function Fo(xt){return Gd(xt,ho|is)}const Ds=Fo;function qo(){return qo=Object.assign||function(xt){for(var Dn=1;Dn<arguments.length;Dn++){var er=arguments[Dn];for(var Ar in er)Object.prototype.hasOwnProperty.call(er,Ar)&&(xt[Ar]=er[Ar])}return xt},qo.apply(this,arguments)}function $c(xt,Dn){xt.prototype=Object.create(Dn.prototype),xt.prototype.constructor=xt,xt.__proto__=Dn}function Za(xt,Dn){if(xt==null)return{};var er={},Ar=Object.keys(xt),Rr,hi;for(hi=0;hi<Ar.length;hi++)Rr=Ar[hi],!(Dn.indexOf(Rr)>=0)&&(er[Rr]=xt[Rr]);return er}function Yd(xt){if(xt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return xt}var mu=function(Dn){return Array.isArray(Dn)&&Dn.length===0},sa=function(Dn){return typeof Dn=="function"},vl=function(Dn){return Dn!==null&&typeof Dn=="object"},Ih=function(Dn){return String(Math.floor(Number(Dn)))===Dn},mh=function(Dn){return Object.prototype.toString.call(Dn)==="[object String]"},Rh=function(Dn){return Dn!==Dn},Lu=function(Dn){return r.Children.count(Dn)===0},Zu=function(Dn){return vl(Dn)&&sa(Dn.then)},ef=function(Dn){return Dn&&vl(Dn)&&vl(Dn.target)};function Qd(xt){if(xt=xt||(typeof document<"u"?document:void 0),typeof xt>"u")return null;try{return xt.activeElement||xt.body}catch{return xt.body}}function Ra(xt,Dn,er,Ar){Ar===void 0&&(Ar=0);for(var Rr=Fn(Dn);xt&&Ar<Rr.length;)xt=xt[Rr[Ar++]];return Ar!==Rr.length&&!xt||xt===void 0?er:xt}function ql(xt,Dn,er){for(var Ar=Sc(xt),Rr=Ar,hi=0,Ti=Fn(Dn);hi<Ti.length-1;hi++){var ao=Ti[hi],$o=Ra(xt,Ti.slice(0,hi+1));if($o&&(vl($o)||Array.isArray($o)))Rr=Rr[ao]=Sc($o);else{var wo=Ti[hi+1];Rr=Rr[ao]=Ih(wo)&&Number(wo)>=0?[]:{}}}return(hi===0?xt:Rr)[Ti[hi]]===er?xt:(er===void 0?delete Rr[Ti[hi]]:Rr[Ti[hi]]=er,hi===0&&er===void 0&&delete Ar[Ti[hi]],Ar)}function gu(xt,Dn,er,Ar){er===void 0&&(er=new WeakMap),Ar===void 0&&(Ar={});for(var Rr=0,hi=Object.keys(xt);Rr<hi.length;Rr++){var Ti=hi[Rr],ao=xt[Ti];vl(ao)?er.get(ao)||(er.set(ao,!0),Ar[Ti]=Array.isArray(ao)?[]:{},gu(ao,Dn,er,Ar[Ti])):Ar[Ti]=Dn}return Ar}var Jd=(0,r.createContext)(void 0);Jd.displayName="FormikContext";var Lh=Jd.Provider,jh=Jd.Consumer;function hl(){var xt=(0,r.useContext)(Jd);return xt||ti(!1),xt}function za(xt,Dn){switch(Dn.type){case"SET_VALUES":return qo({},xt,{values:Dn.payload});case"SET_TOUCHED":return qo({},xt,{touched:Dn.payload});case"SET_ERRORS":return s()(xt.errors,Dn.payload)?xt:qo({},xt,{errors:Dn.payload});case"SET_STATUS":return qo({},xt,{status:Dn.payload});case"SET_ISSUBMITTING":return qo({},xt,{isSubmitting:Dn.payload});case"SET_ISVALIDATING":return qo({},xt,{isValidating:Dn.payload});case"SET_FIELD_VALUE":return qo({},xt,{values:ql(xt.values,Dn.payload.field,Dn.payload.value)});case"SET_FIELD_TOUCHED":return qo({},xt,{touched:ql(xt.touched,Dn.payload.field,Dn.payload.value)});case"SET_FIELD_ERROR":return qo({},xt,{errors:ql(xt.errors,Dn.payload.field,Dn.payload.value)});case"RESET_FORM":return qo({},xt,Dn.payload);case"SET_FORMIK_STATE":return Dn.payload(xt);case"SUBMIT_ATTEMPT":return qo({},xt,{touched:gu(xt.values,!0),isSubmitting:!0,submitCount:xt.submitCount+1});case"SUBMIT_FAILURE":return qo({},xt,{isSubmitting:!1});case"SUBMIT_SUCCESS":return qo({},xt,{isSubmitting:!1});default:return xt}}var vu={},ju={};function Xd(xt){var Dn=xt.validateOnChange,er=Dn===void 0?!0:Dn,Ar=xt.validateOnBlur,Rr=Ar===void 0?!0:Ar,hi=xt.validateOnMount,Ti=hi===void 0?!1:hi,ao=xt.isInitialValid,$o=xt.enableReinitialize,wo=$o===void 0?!1:$o,Js=xt.onSubmit,Bs=Za(xt,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),mi=qo({validateOnChange:er,validateOnBlur:Rr,validateOnMount:Ti,onSubmit:Js},Bs),Sa=(0,r.useRef)(mi.initialValues),uc=(0,r.useRef)(mi.initialErrors||vu),Xa=(0,r.useRef)(mi.initialTouched||ju),qa=(0,r.useRef)(mi.initialStatus),ga=(0,r.useRef)(!1),_c=(0,r.useRef)({});(0,r.useEffect)(function(){return ga.current=!0,function(){ga.current=!1}},[]);var eh=(0,r.useReducer)(za,{values:mi.initialValues,errors:mi.initialErrors||vu,touched:mi.initialTouched||ju,status:mi.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),ya=eh[0],va=eh[1],of=(0,r.useCallback)(function(vi,bo){return new Promise(function(jo,os){var ys=mi.validate(vi,bo);ys==null?jo(vu):Zu(ys)?ys.then(function(Ms){jo(Ms||vu)},function(Ms){os(Ms)}):jo(ys)})},[mi.validate]),yd=(0,r.useCallback)(function(vi,bo){var jo=Dd(mi.validationSchema),os=bo&&jo.validateAt?jo.validateAt(bo,vi):yo(vi,jo);return new Promise(function(ys,Ms){os.then(function(){ys(vu)},function(La){La.name==="ValidationError"?ys(Bh(La)):Ms(La)})})},[mi.validationSchema]),$h=(0,r.useCallback)(function(vi,bo){return new Promise(function(jo){return jo(_c.current[vi].validate(bo))})},[]),fl=(0,r.useCallback)(function(vi){var bo=Object.keys(_c.current).filter(function(os){return sa(_c.current[os].validate)}),jo=bo.length>0?bo.map(function(os){return $h(os,Ra(vi,os))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(jo).then(function(os){return os.reduce(function(ys,Ms,La){return Ms==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Ms&&(ys=ql(ys,bo[La],Ms)),ys},{})})},[$h]),Uc=(0,r.useCallback)(function(vi){return Promise.all([fl(vi),mi.validationSchema?yd(vi):{},mi.validate?of(vi):{}]).then(function(bo){var jo=bo[0],os=bo[1],ys=bo[2],Ms=B.all([jo,os,ys],{arrayMerge:Sl});return Ms})},[mi.validate,mi.validationSchema,fl,of,yd]),Ka=zc(function(vi){return vi===void 0&&(vi=ya.values),va({type:"SET_ISVALIDATING",payload:!0}),Uc(vi).then(function(bo){return ga.current&&(va({type:"SET_ISVALIDATING",payload:!1}),va({type:"SET_ERRORS",payload:bo})),bo})});(0,r.useEffect)(function(){Ti&&ga.current===!0&&s()(Sa.current,mi.initialValues)&&Ka(Sa.current)},[Ti,Ka]);var Gu=(0,r.useCallback)(function(vi){var bo=vi&&vi.values?vi.values:Sa.current,jo=vi&&vi.errors?vi.errors:uc.current?uc.current:mi.initialErrors||{},os=vi&&vi.touched?vi.touched:Xa.current?Xa.current:mi.initialTouched||{},ys=vi&&vi.status?vi.status:qa.current?qa.current:mi.initialStatus;Sa.current=bo,uc.current=jo,Xa.current=os,qa.current=ys;var Ms=function(){va({type:"RESET_FORM",payload:{isSubmitting:!!vi&&!!vi.isSubmitting,errors:jo,touched:os,status:ys,values:bo,isValidating:!!vi&&!!vi.isValidating,submitCount:vi&&vi.submitCount&&typeof vi.submitCount=="number"?vi.submitCount:0}})};if(mi.onReset){var La=mi.onReset(ya.values,Ju);Zu(La)?La.then(Ms):Ms()}else Ms()},[mi.initialErrors,mi.initialStatus,mi.initialTouched]);(0,r.useEffect)(function(){ga.current===!0&&!s()(Sa.current,mi.initialValues)&&wo&&(Sa.current=mi.initialValues,Gu(),Ti&&Ka(Sa.current))},[wo,mi.initialValues,Gu,Ti,Ka]),(0,r.useEffect)(function(){wo&&ga.current===!0&&!s()(uc.current,mi.initialErrors)&&(uc.current=mi.initialErrors||vu,va({type:"SET_ERRORS",payload:mi.initialErrors||vu}))},[wo,mi.initialErrors]),(0,r.useEffect)(function(){wo&&ga.current===!0&&!s()(Xa.current,mi.initialTouched)&&(Xa.current=mi.initialTouched||ju,va({type:"SET_TOUCHED",payload:mi.initialTouched||ju}))},[wo,mi.initialTouched]),(0,r.useEffect)(function(){wo&&ga.current===!0&&!s()(qa.current,mi.initialStatus)&&(qa.current=mi.initialStatus,va({type:"SET_STATUS",payload:mi.initialStatus}))},[wo,mi.initialStatus,mi.initialTouched]);var Vh=zc(function(vi){if(_c.current[vi]&&sa(_c.current[vi].validate)){var bo=Ra(ya.values,vi),jo=_c.current[vi].validate(bo);return Zu(jo)?(va({type:"SET_ISVALIDATING",payload:!0}),jo.then(function(os){return os}).then(function(os){va({type:"SET_FIELD_ERROR",payload:{field:vi,value:os}}),va({type:"SET_ISVALIDATING",payload:!1})})):(va({type:"SET_FIELD_ERROR",payload:{field:vi,value:jo}}),Promise.resolve(jo))}else if(mi.validationSchema)return va({type:"SET_ISVALIDATING",payload:!0}),yd(ya.values,vi).then(function(os){return os}).then(function(os){va({type:"SET_FIELD_ERROR",payload:{field:vi,value:Ra(os,vi)}}),va({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),Al=(0,r.useCallback)(function(vi,bo){var jo=bo.validate;_c.current[vi]={validate:jo}},[]),jd=(0,r.useCallback)(function(vi){delete _c.current[vi]},[]),yu=zc(function(vi,bo){va({type:"SET_TOUCHED",payload:vi});var jo=bo===void 0?Rr:bo;return jo?Ka(ya.values):Promise.resolve()}),wu=(0,r.useCallback)(function(vi){va({type:"SET_ERRORS",payload:vi})},[]),Yu=zc(function(vi,bo){var jo=sa(vi)?vi(ya.values):vi;va({type:"SET_VALUES",payload:jo});var os=bo===void 0?er:bo;return os?Ka(jo):Promise.resolve()}),Bd=(0,r.useCallback)(function(vi,bo){va({type:"SET_FIELD_ERROR",payload:{field:vi,value:bo}})},[]),wd=zc(function(vi,bo,jo){va({type:"SET_FIELD_VALUE",payload:{field:vi,value:bo}});var os=jo===void 0?er:jo;return os?Ka(ql(ya.values,vi,bo)):Promise.resolve()}),sf=(0,r.useCallback)(function(vi,bo){var jo=bo,os=vi,ys;if(!mh(vi)){vi.persist&&vi.persist();var Ms=vi.target?vi.target:vi.currentTarget,La=Ms.type,xd=Ms.name,Ed=Ms.id,xh=Ms.value,Uh=Ms.checked,mf=Ms.outerHTML,Ec=Ms.options,_u=Ms.multiple;jo=bo||xd||Ed,os=/number|range/.test(La)?(ys=parseFloat(xh),isNaN(ys)?"":ys):/checkbox/.test(La)?vh(Ra(ya.values,jo),Uh,xh):Ec&&_u?Vc(Ec):xh}jo&&wd(jo,os)},[wd,ya.values]),yh=zc(function(vi){if(mh(vi))return function(bo){return sf(bo,vi)};sf(vi)}),Qu=zc(function(vi,bo,jo){bo===void 0&&(bo=!0),va({type:"SET_FIELD_TOUCHED",payload:{field:vi,value:bo}});var os=jo===void 0?Rr:jo;return os?Ka(ya.values):Promise.resolve()}),wh=(0,r.useCallback)(function(vi,bo){vi.persist&&vi.persist();var jo=vi.target,os=jo.name,ys=jo.id,Ms=jo.outerHTML,La=bo||os||ys;Qu(La,!0)},[Qu]),dc=zc(function(vi){if(mh(vi))return function(bo){return wh(bo,vi)};wh(vi)}),bs=(0,r.useCallback)(function(vi){sa(vi)?va({type:"SET_FORMIK_STATE",payload:vi}):va({type:"SET_FORMIK_STATE",payload:function(){return vi}})},[]),Ml=(0,r.useCallback)(function(vi){va({type:"SET_STATUS",payload:vi})},[]),el=(0,r.useCallback)(function(vi){va({type:"SET_ISSUBMITTING",payload:vi})},[]),Ol=zc(function(){return va({type:"SUBMIT_ATTEMPT"}),Ka().then(function(vi){var bo=vi instanceof Error,jo=!bo&&Object.keys(vi).length===0;if(jo){var os;try{if(os=pl(),os===void 0)return}catch(ys){throw ys}return Promise.resolve(os).then(function(ys){return ga.current&&va({type:"SUBMIT_SUCCESS"}),ys}).catch(function(ys){if(ga.current)throw va({type:"SUBMIT_FAILURE"}),ys})}else if(ga.current&&(va({type:"SUBMIT_FAILURE"}),bo))throw vi})}),Ac=zc(function(vi){if(vi&&vi.preventDefault&&sa(vi.preventDefault)&&vi.preventDefault(),vi&&vi.stopPropagation&&sa(vi.stopPropagation)&&vi.stopPropagation(),!1)var bo;Ol().catch(function(jo){console.warn("Warning: An unhandled error was caught from submitForm()",jo)})}),Ju={resetForm:Gu,validateForm:Ka,validateField:Vh,setErrors:wu,setFieldError:Bd,setFieldTouched:Qu,setFieldValue:wd,setStatus:Ml,setSubmitting:el,setTouched:yu,setValues:Yu,setFormikState:bs,submitForm:Ol},pl=zc(function(){var vi=Dd(mi.validationSchema),bo=vi&&vi.cast?vi.cast(ya.values):ya.values;return Js(bo,Ju)}),_h=zc(function(vi){vi&&vi.preventDefault&&sa(vi.preventDefault)&&vi.preventDefault(),vi&&vi.stopPropagation&&sa(vi.stopPropagation)&&vi.stopPropagation(),Gu()}),_d=(0,r.useCallback)(function(vi){return{value:Ra(ya.values,vi),error:Ra(ya.errors,vi),touched:!!Ra(ya.touched,vi),initialValue:Ra(Sa.current,vi),initialTouched:!!Ra(Xa.current,vi),initialError:Ra(uc.current,vi)}},[ya.errors,ya.touched,ya.values]),th=(0,r.useCallback)(function(vi){return{setValue:function(jo,os){return wd(vi,jo,os)},setTouched:function(jo,os){return Qu(vi,jo,os)},setError:function(jo){return Bd(vi,jo)}}},[wd,Qu,Bd]),zh=(0,r.useCallback)(function(vi){var bo=vl(vi),jo=bo?vi.name:vi,os=Ra(ya.values,jo),ys={name:jo,value:os,onChange:yh,onBlur:dc};if(bo){var Ms=vi.type,La=vi.value,xd=vi.as,Ed=vi.multiple;Ms==="checkbox"?La===void 0?ys.checked=!!os:(ys.checked=!!(Array.isArray(os)&&~os.indexOf(La)),ys.value=La):Ms==="radio"?(ys.checked=os===La,ys.value=La):xd==="select"&&Ed&&(ys.value=ys.value||[],ys.multiple=!0)}return ys},[dc,yh,ya.values]),Xu=(0,r.useMemo)(function(){return!s()(Sa.current,ya.values)},[Sa.current,ya.values]),xc=(0,r.useMemo)(function(){return typeof ao<"u"?Xu?ya.errors&&Object.keys(ya.errors).length===0:ao!==!1&&sa(ao)?ao(mi):ao:ya.errors&&Object.keys(ya.errors).length===0},[ao,Xu,ya.errors,mi]),af=qo({},ya,{initialValues:Sa.current,initialErrors:uc.current,initialTouched:Xa.current,initialStatus:qa.current,handleBlur:dc,handleChange:yh,handleReset:_h,handleSubmit:Ac,resetForm:Gu,setErrors:wu,setFormikState:bs,setFieldTouched:Qu,setFieldValue:wd,setFieldError:Bd,setStatus:Ml,setSubmitting:el,setTouched:yu,setValues:Yu,submitForm:Ol,validateForm:Ka,validateField:Vh,isValid:xc,dirty:Xu,unregisterField:jd,registerField:Al,getFieldProps:zh,getFieldMeta:_d,getFieldHelpers:th,validateOnBlur:Rr,validateOnChange:er,validateOnMount:Ti});return af}function gh(xt){var Dn=Xd(xt),er=xt.component,Ar=xt.children,Rr=xt.render,hi=xt.innerRef;return(0,r.useImperativeHandle)(hi,function(){return Dn}),(0,r.createElement)(Lh,{value:Dn},er?(0,r.createElement)(er,Dn):Rr?Rr(Dn):Ar?sa(Ar)?Ar(Dn):Lu(Ar)?null:r.Children.only(Ar):null)}function Dd(xt){if(xt)return sa(xt)?xt():xt}function Id(xt){var Dn=xt.htmlContent,er=xt.documentationAnchorLink,Ar=xt.handlerName;console.warn("Warning: Formik called `"+Ar+"`, but you forgot to pass an `id` or `name` attribute to your input:\n    "+Dn+`
    Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#`+er+`
  `)}function Bh(xt){var Dn={};if(xt.inner){if(xt.inner.length===0)return ql(Dn,xt.path,xt.message);for(var Rr=xt.inner,er=Array.isArray(Rr),Ar=0,Rr=er?Rr:Rr[Symbol.iterator]();;){var hi;if(er){if(Ar>=Rr.length)break;hi=Rr[Ar++]}else{if(Ar=Rr.next(),Ar.done)break;hi=Ar.value}var Ti=hi;Ra(Dn,Ti.path)||(Dn=ql(Dn,Ti.path,Ti.message))}}return Dn}function yo(xt,Dn,er,Ar){er===void 0&&(er=!1);var Rr=lc(xt);return Dn[er?"validateSync":"validate"](Rr,{abortEarly:!1,context:Ar||Rr})}function lc(xt){var Dn=Array.isArray(xt)?[]:{};for(var er in xt)if(Object.prototype.hasOwnProperty.call(xt,er)){var Ar=String(er);Array.isArray(xt[Ar])===!0?Dn[Ar]=xt[Ar].map(function(Rr){return Array.isArray(Rr)===!0||mn(Rr)?lc(Rr):Rr!==""?Rr:void 0}):mn(xt[Ar])?Dn[Ar]=lc(xt[Ar]):Dn[Ar]=xt[Ar]!==""?xt[Ar]:void 0}return Dn}function Sl(xt,Dn,er){var Ar=xt.slice();return Dn.forEach(function(hi,Ti){if(typeof Ar[Ti]>"u"){var ao=er.clone!==!1,$o=ao&&er.isMergeableObject(hi);Ar[Ti]=$o?B(Array.isArray(hi)?[]:{},hi,er):hi}else er.isMergeableObject(hi)?Ar[Ti]=B(xt[Ti],hi,er):xt.indexOf(hi)===-1&&Ar.push(hi)}),Ar}function Vc(xt){return Array.from(xt).filter(function(Dn){return Dn.selected}).map(function(Dn){return Dn.value})}function vh(xt,Dn,er){if(typeof xt=="boolean")return Boolean(Dn);var Ar=[],Rr=!1,hi=-1;if(Array.isArray(xt))Ar=xt,hi=xt.indexOf(er),Rr=hi>=0;else if(!er||er=="true"||er=="false")return Boolean(Dn);return Dn&&er&&!Rr?Ar.concat(er):Rr?Ar.slice(0,hi).concat(Ar.slice(hi+1)):Ar}var tf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?r.useLayoutEffect:r.useEffect;function zc(xt){var Dn=(0,r.useRef)(xt);return tf(function(){Dn.current=xt}),(0,r.useCallback)(function(){for(var er=arguments.length,Ar=new Array(er),Rr=0;Rr<er;Rr++)Ar[Rr]=arguments[Rr];return Dn.current.apply(void 0,Ar)},[])}function Rd(xt){var Dn=hl(),er=Dn.getFieldProps,Ar=Dn.getFieldMeta,Rr=Dn.getFieldHelpers,hi=Dn.registerField,Ti=Dn.unregisterField,ao=vl(xt),$o=ao?xt:{name:xt},wo=$o.name,Js=$o.validate;(0,r.useEffect)(function(){return wo&&hi(wo,{validate:Js}),function(){wo&&Ti(wo)}},[hi,Ti,wo,Js]),wo||ti(!1);var Bs=(0,r.useMemo)(function(){return Rr(wo)},[Rr,wo]);return[er($o),Ar(wo),Bs]}function Nh(xt){var Dn=xt.validate,er=xt.name,Ar=xt.render,Rr=xt.children,hi=xt.as,Ti=xt.component,ao=Za(xt,["validate","name","render","children","as","component"]),$o=hl(),wo=Za($o,["validate","validationSchema"]),Js=wo.registerField,Bs=wo.unregisterField;(0,r.useEffect)(function(){return Js(er,{validate:Dn}),function(){Bs(er)}},[Js,Bs,er,Dn]);var mi=wo.getFieldProps(qo({name:er},ao)),Sa=wo.getFieldMeta(er),uc={field:mi,form:wo};if(Ar)return Ar(qo({},uc,{meta:Sa}));if(sa(Rr))return Rr(qo({},uc,{meta:Sa}));if(Ti){if(typeof Ti=="string"){var Xa=ao.innerRef,qa=Za(ao,["innerRef"]);return(0,r.createElement)(Ti,qo({ref:Xa},mi,qa),Rr)}return(0,r.createElement)(Ti,qo({field:mi,form:wo},ao),Rr)}var ga=hi||"input";if(typeof ga=="string"){var _c=ao.innerRef,eh=Za(ao,["innerRef"]);return(0,r.createElement)(ga,qo({ref:_c},mi,eh),Rr)}return(0,r.createElement)(ga,qo({},mi,ao),Rr)}var Ld=(0,r.forwardRef)(function(xt,Dn){var er=xt.action,Ar=Za(xt,["action"]),Rr=er??"#",hi=hl(),Ti=hi.handleReset,ao=hi.handleSubmit;return(0,r.createElement)("form",Object.assign({onSubmit:ao,ref:Dn,onReset:Ti,action:Rr},Ar))});Ld.displayName="Form";function cc(xt){var Dn=xt.mapPropsToValues,er=Dn===void 0?function(Rr){var hi={};for(var Ti in Rr)Rr.hasOwnProperty(Ti)&&typeof Rr[Ti]!="function"&&(hi[Ti]=Rr[Ti]);return hi}:Dn,Ar=Za(xt,["mapPropsToValues"]);return function(hi){var Ti=hi.displayName||hi.name||hi.constructor&&hi.constructor.name||"Component",ao=function($o){$c(wo,$o);function wo(){var Bs;return Bs=$o.apply(this,arguments)||this,Bs.validate=function(mi){return Ar.validate(mi,Bs.props)},Bs.validationSchema=function(){return sa(Ar.validationSchema)?Ar.validationSchema(Bs.props):Ar.validationSchema},Bs.handleSubmit=function(mi,Sa){return Ar.handleSubmit(mi,qo({},Sa,{props:Bs.props}))},Bs.renderFormComponent=function(mi){return createElement(hi,Object.assign({},Bs.props,mi))},Bs}var Js=wo.prototype;return Js.render=function(){var mi=this.props,Sa=Za(mi,["children"]);return createElement(gh,Object.assign({},Sa,Ar,{validate:Ar.validate&&this.validate,validationSchema:Ar.validationSchema&&this.validationSchema,initialValues:er(this.props),initialStatus:Ar.mapPropsToStatus&&Ar.mapPropsToStatus(this.props),initialErrors:Ar.mapPropsToErrors&&Ar.mapPropsToErrors(this.props),initialTouched:Ar.mapPropsToTouched&&Ar.mapPropsToTouched(this.props),onSubmit:this.handleSubmit,children:this.renderFormComponent}))},wo}(Component);return ao.displayName="WithFormik("+Ti+")",hoistNonReactStatics(ao,hi)}}function bh(xt){var Dn=function(Rr){return(0,r.createElement)(jh,null,function(hi){return hi||ti(!1),(0,r.createElement)(xt,Object.assign({},Rr,{formik:hi}))})},er=xt.displayName||xt.name||xt.constructor&&xt.constructor.name||"Component";return Dn.WrappedComponent=xt,Dn.displayName="FormikConnect("+er+")",Ji()(Dn,xt)}var Fh=function(Dn,er,Ar){var Rr=Zo(Dn),hi=Rr[er];return Rr.splice(er,1),Rr.splice(Ar,0,hi),Rr},qc=function(Dn,er,Ar){var Rr=Zo(Dn),hi=Rr[er];return Rr[er]=Rr[Ar],Rr[Ar]=hi,Rr},vd=function(Dn,er,Ar){var Rr=Zo(Dn);return Rr.splice(er,0,Ar),Rr},bd=function(Dn,er,Ar){var Rr=Zo(Dn);return Rr[er]=Ar,Rr},Zo=function(Dn){if(Dn){if(Array.isArray(Dn))return[].concat(Dn);var er=Object.keys(Dn).map(function(Ar){return parseInt(Ar)}).reduce(function(Ar,Rr){return Rr>Ar?Rr:Ar},0);return Array.from(qo({},Dn,{length:er+1}))}else return[]},bu=function(Dn,er){var Ar=typeof Dn=="function"?Dn:er;return function(Rr){if(Array.isArray(Rr)||vl(Rr)){var hi=Zo(Rr);return Ar(hi)}return Rr}},qd=function(xt){$c(Dn,xt);function Dn(Ar){var Rr;return Rr=xt.call(this,Ar)||this,Rr.updateArrayField=function(hi,Ti,ao){var $o=Rr.props,wo=$o.name,Js=$o.formik.setFormikState;Js(function(Bs){var mi=bu(ao,hi),Sa=bu(Ti,hi),uc=ql(Bs.values,wo,hi(Ra(Bs.values,wo))),Xa=ao?mi(Ra(Bs.errors,wo)):void 0,qa=Ti?Sa(Ra(Bs.touched,wo)):void 0;return mu(Xa)&&(Xa=void 0),mu(qa)&&(qa=void 0),qo({},Bs,{values:uc,errors:ao?ql(Bs.errors,wo,Xa):Bs.errors,touched:Ti?ql(Bs.touched,wo,qa):Bs.touched})})},Rr.push=function(hi){return Rr.updateArrayField(function(Ti){return[].concat(Zo(Ti),[Ds(hi)])},!1,!1)},Rr.handlePush=function(hi){return function(){return Rr.push(hi)}},Rr.swap=function(hi,Ti){return Rr.updateArrayField(function(ao){return qc(ao,hi,Ti)},!0,!0)},Rr.handleSwap=function(hi,Ti){return function(){return Rr.swap(hi,Ti)}},Rr.move=function(hi,Ti){return Rr.updateArrayField(function(ao){return Fh(ao,hi,Ti)},!0,!0)},Rr.handleMove=function(hi,Ti){return function(){return Rr.move(hi,Ti)}},Rr.insert=function(hi,Ti){return Rr.updateArrayField(function(ao){return vd(ao,hi,Ti)},function(ao){return vd(ao,hi,null)},function(ao){return vd(ao,hi,null)})},Rr.handleInsert=function(hi,Ti){return function(){return Rr.insert(hi,Ti)}},Rr.replace=function(hi,Ti){return Rr.updateArrayField(function(ao){return bd(ao,hi,Ti)},!1,!1)},Rr.handleReplace=function(hi,Ti){return function(){return Rr.replace(hi,Ti)}},Rr.unshift=function(hi){var Ti=-1;return Rr.updateArrayField(function(ao){var $o=ao?[hi].concat(ao):[hi];return Ti<0&&(Ti=$o.length),$o},function(ao){var $o=ao?[null].concat(ao):[null];return Ti<0&&(Ti=$o.length),$o},function(ao){var $o=ao?[null].concat(ao):[null];return Ti<0&&(Ti=$o.length),$o}),Ti},Rr.handleUnshift=function(hi){return function(){return Rr.unshift(hi)}},Rr.handleRemove=function(hi){return function(){return Rr.remove(hi)}},Rr.handlePop=function(){return function(){return Rr.pop()}},Rr.remove=Rr.remove.bind(Yd(Rr)),Rr.pop=Rr.pop.bind(Yd(Rr)),Rr}var er=Dn.prototype;return er.shouldComponentUpdate=function(Rr){return this.props.shouldUpdate?this.props.shouldUpdate(Rr,this.props):Rr.name!==this.props.name||Ra(Rr.formik.values,this.props.name)!==Ra(this.props.formik.values,this.props.name)||Ra(Rr.formik.errors,this.props.name)!==Ra(this.props.formik.errors,this.props.name)||Ra(Rr.formik.touched,this.props.name)!==Ra(this.props.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(Rr).length||Rr.formik.isSubmitting!==this.props.formik.isSubmitting},er.componentDidUpdate=function(Rr){this.props.validateOnChange&&this.props.formik.validateOnChange&&!s()(Ra(Rr.formik.values,Rr.name),Ra(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},er.remove=function(Rr){var hi;return this.updateArrayField(function(Ti){var ao=Ti?Zo(Ti):[];return hi||(hi=ao[Rr]),sa(ao.splice)&&ao.splice(Rr,1),sa(ao.every)&&ao.every(function($o){return $o===void 0})?[]:ao},!0,!0),hi},er.pop=function(){var Rr;return this.updateArrayField(function(hi){var Ti=hi.slice();return Rr||(Rr=Ti&&Ti.pop&&Ti.pop()),Ti},!0,!0),Rr},er.render=function(){var Rr={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},hi=this.props,Ti=hi.component,ao=hi.render,$o=hi.children,wo=hi.name,Js=hi.formik,Bs=Za(Js,["validate","validationSchema"]),mi=qo({},Rr,{form:Bs,name:wo});return Ti?(0,r.createElement)(Ti,mi):ao?ao(mi):$o?typeof $o=="function"?$o(mi):Lu($o)?null:r.Children.only($o):null},Dn}(r.Component);qd.defaultProps={validateOnChange:!0};var Ku=bh(qd),nf=null,pf=null,rf=null,Ua=null},17648:Z=>{"use strict";var v="Function.prototype.bind called on incompatible ",t=Array.prototype.slice,r=Object.prototype.toString,n="[object Function]";Z.exports=function(a){var c=this;if(typeof c!="function"||r.call(c)!==n)throw new TypeError(v+c);for(var h=t.call(arguments,1),p,d=function(){if(this instanceof p){var I=c.apply(this,h.concat(t.call(arguments)));return Object(I)===I?I:this}else return c.apply(a,h.concat(t.call(arguments)))},k=Math.max(0,c.length-h.length),M=[],C=0;C<k;C++)M.push("$"+C);if(p=Function("binder","return function ("+M.join(",")+"){ return binder.apply(this,arguments); }")(d),c.prototype){var w=function(){};w.prototype=c.prototype,p.prototype=new w,w.prototype=null}return p}},58612:(Z,v,t)=>{"use strict";var r=t(17648);Z.exports=Function.prototype.bind||r},40210:(Z,v,t)=>{"use strict";var r,n=SyntaxError,s=Function,a=TypeError,c=function($){try{return s('"use strict"; return ('+$+").constructor;")()}catch{}},h=Object.getOwnPropertyDescriptor;if(h)try{h({},"")}catch{h=null}var p=function(){throw new a},d=h?function(){try{return arguments.callee,p}catch{try{return h(arguments,"callee").get}catch{return p}}}():p,k=t(41405)(),M=t(28185)(),C=Object.getPrototypeOf||(M?function($){return $.__proto__}:null),w={},I=typeof Uint8Array>"u"||!C?r:C(Uint8Array),F={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":k&&C?C([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":w,"%AsyncGenerator%":w,"%AsyncGeneratorFunction%":w,"%AsyncIteratorPrototype%":w,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":w,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":k&&C?C(C([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!k||!C?r:C(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!k||!C?r:C(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k&&C?C(""[Symbol.iterator]()):r,"%Symbol%":k?Symbol:r,"%SyntaxError%":n,"%ThrowTypeError%":d,"%TypedArray%":I,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet};if(C)try{null.error}catch($){var U=C(C($));F["%Error.prototype%"]=U}var B=function $(ee){var q;if(ee==="%AsyncFunction%")q=c("async function () {}");else if(ee==="%GeneratorFunction%")q=c("function* () {}");else if(ee==="%AsyncGeneratorFunction%")q=c("async function* () {}");else if(ee==="%AsyncGenerator%"){var oe=$("%AsyncGeneratorFunction%");oe&&(q=oe.prototype)}else if(ee==="%AsyncIteratorPrototype%"){var X=$("%AsyncGenerator%");X&&C&&(q=C(X.prototype))}return F[ee]=q,q},N={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},D=t(58612),x=t(17642),T=D.call(Function.call,Array.prototype.concat),u=D.call(Function.apply,Array.prototype.splice),b=D.call(Function.call,String.prototype.replace),E=D.call(Function.call,String.prototype.slice),A=D.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,z=function(ee){var q=E(ee,0,1),oe=E(ee,-1);if(q==="%"&&oe!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(oe==="%"&&q!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var X=[];return b(ee,R,function(pe,Ie,se,be){X[X.length]=se?b(be,H,"$1"):Ie||pe}),X},V=function(ee,q){var oe=ee,X;if(x(N,oe)&&(X=N[oe],oe="%"+X[0]+"%"),x(F,oe)){var pe=F[oe];if(pe===w&&(pe=B(oe)),typeof pe>"u"&&!q)throw new a("intrinsic "+ee+" exists, but is not available. Please file an issue!");return{alias:X,name:oe,value:pe}}throw new n("intrinsic "+ee+" does not exist!")};Z.exports=function(ee,q){if(typeof ee!="string"||ee.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof q!="boolean")throw new a('"allowMissing" argument must be a boolean');if(A(/^%?[^%]*%?$/,ee)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var oe=z(ee),X=oe.length>0?oe[0]:"",pe=V("%"+X+"%",q),Ie=pe.name,se=pe.value,be=!1,fe=pe.alias;fe&&(X=fe[0],u(oe,T([0,1],fe)));for(var ue=1,we=!0;ue<oe.length;ue+=1){var Me=oe[ue],Ce=E(Me,0,1),Ne=E(Me,-1);if((Ce==='"'||Ce==="'"||Ce==="`"||Ne==='"'||Ne==="'"||Ne==="`")&&Ce!==Ne)throw new n("property names with quotes must have matching quotes");if((Me==="constructor"||!we)&&(be=!0),X+="."+Me,Ie="%"+X+"%",x(F,Ie))se=F[Ie];else if(se!=null){if(!(Me in se)){if(!q)throw new a("base intrinsic for "+ee+" exists, but the property is not available.");return}if(h&&ue+1>=oe.length){var Ye=h(se,Me);we=!!Ye,we&&"get"in Ye&&!("originalValue"in Ye.get)?se=Ye.get:se=se[Me]}else we=x(se,Me),se=se[Me];we&&!be&&(F[Ie]=se)}}return se}},28185:Z=>{"use strict";var v={foo:{}},t=Object;Z.exports=function(){return{__proto__:v}.foo===v.foo&&!({__proto__:null}instanceof t)}},41405:(Z,v,t)=>{"use strict";var r=typeof Symbol<"u"&&Symbol,n=t(55419);Z.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}},55419:Z=>{"use strict";Z.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var s=42;t[r]=s;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(t,r);if(c.value!==s||c.enumerable!==!0)return!1}return!0}},17642:Z=>{"use strict";var v={}.hasOwnProperty,t=Function.prototype.call;Z.exports=t.bind?t.bind(v):function(r,n){return t.call(v,r,n)}},90071:(Z,v,t)=>{"use strict";t.d(v,{lX:()=>$,q_:()=>se,ob:()=>N,PP:()=>fe,Ep:()=>B,Hp:()=>D});var r=t(87462);function n(ue){return ue.charAt(0)==="/"}function s(ue,we){for(var Me=we,Ce=Me+1,Ne=ue.length;Ce<Ne;Me+=1,Ce+=1)ue[Me]=ue[Ce];ue.pop()}function a(ue,we){we===void 0&&(we="");var Me=ue&&ue.split("/")||[],Ce=we&&we.split("/")||[],Ne=ue&&n(ue),Ye=we&&n(we),mt=Ne||Ye;if(ue&&n(ue)?Ce=Me:Me.length&&(Ce.pop(),Ce=Ce.concat(Me)),!Ce.length)return"/";var Ct;if(Ce.length){var ln=Ce[Ce.length-1];Ct=ln==="."||ln===".."||ln===""}else Ct=!1;for(var $e=0,Qe=Ce.length;Qe>=0;Qe--){var bt=Ce[Qe];bt==="."?s(Ce,Qe):bt===".."?(s(Ce,Qe),$e++):$e&&(s(Ce,Qe),$e--)}if(!mt)for(;$e--;$e)Ce.unshift("..");mt&&Ce[0]!==""&&(!Ce[0]||!n(Ce[0]))&&Ce.unshift("");var It=Ce.join("/");return Ct&&It.substr(-1)!=="/"&&(It+="/"),It}const c=a;function h(ue){return ue.valueOf?ue.valueOf():Object.prototype.valueOf.call(ue)}function p(ue,we){if(ue===we)return!0;if(ue==null||we==null)return!1;if(Array.isArray(ue))return Array.isArray(we)&&ue.length===we.length&&ue.every(function(Ne,Ye){return p(Ne,we[Ye])});if(typeof ue=="object"||typeof we=="object"){var Me=h(ue),Ce=h(we);return Me!==ue||Ce!==we?p(Me,Ce):Object.keys(Object.assign({},ue,we)).every(function(Ne){return p(ue[Ne],we[Ne])})}return!1}const d=p;var k=t(38776);function M(ue){return ue.charAt(0)==="/"?ue:"/"+ue}function C(ue){return ue.charAt(0)==="/"?ue.substr(1):ue}function w(ue,we){return ue.toLowerCase().indexOf(we.toLowerCase())===0&&"/?#".indexOf(ue.charAt(we.length))!==-1}function I(ue,we){return w(ue,we)?ue.substr(we.length):ue}function F(ue){return ue.charAt(ue.length-1)==="/"?ue.slice(0,-1):ue}function U(ue){var we=ue||"/",Me="",Ce="",Ne=we.indexOf("#");Ne!==-1&&(Ce=we.substr(Ne),we=we.substr(0,Ne));var Ye=we.indexOf("?");return Ye!==-1&&(Me=we.substr(Ye),we=we.substr(0,Ye)),{pathname:we,search:Me==="?"?"":Me,hash:Ce==="#"?"":Ce}}function B(ue){var we=ue.pathname,Me=ue.search,Ce=ue.hash,Ne=we||"/";return Me&&Me!=="?"&&(Ne+=Me.charAt(0)==="?"?Me:"?"+Me),Ce&&Ce!=="#"&&(Ne+=Ce.charAt(0)==="#"?Ce:"#"+Ce),Ne}function N(ue,we,Me,Ce){var Ne;typeof ue=="string"?(Ne=U(ue),Ne.state=we):(Ne=(0,r.Z)({},ue),Ne.pathname===void 0&&(Ne.pathname=""),Ne.search?Ne.search.charAt(0)!=="?"&&(Ne.search="?"+Ne.search):Ne.search="",Ne.hash?Ne.hash.charAt(0)!=="#"&&(Ne.hash="#"+Ne.hash):Ne.hash="",we!==void 0&&Ne.state===void 0&&(Ne.state=we));try{Ne.pathname=decodeURI(Ne.pathname)}catch(Ye){throw Ye instanceof URIError?new URIError('Pathname "'+Ne.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):Ye}return Me&&(Ne.key=Me),Ce?Ne.pathname?Ne.pathname.charAt(0)!=="/"&&(Ne.pathname=c(Ne.pathname,Ce.pathname)):Ne.pathname=Ce.pathname:Ne.pathname||(Ne.pathname="/"),Ne}function D(ue,we){return ue.pathname===we.pathname&&ue.search===we.search&&ue.hash===we.hash&&ue.key===we.key&&d(ue.state,we.state)}function x(){var ue=null;function we(mt){return ue=mt,function(){ue===mt&&(ue=null)}}function Me(mt,Ct,ln,$e){if(ue!=null){var Qe=typeof ue=="function"?ue(mt,Ct):ue;typeof Qe=="string"?typeof ln=="function"?ln(Qe,$e):$e(!0):$e(Qe!==!1)}else $e(!0)}var Ce=[];function Ne(mt){var Ct=!0;function ln(){Ct&&mt.apply(void 0,arguments)}return Ce.push(ln),function(){Ct=!1,Ce=Ce.filter(function($e){return $e!==ln})}}function Ye(){for(var mt=arguments.length,Ct=new Array(mt),ln=0;ln<mt;ln++)Ct[ln]=arguments[ln];Ce.forEach(function($e){return $e.apply(void 0,Ct)})}return{setPrompt:we,confirmTransitionTo:Me,appendListener:Ne,notifyListeners:Ye}}var T=!!(typeof window<"u"&&window.document&&window.document.createElement);function u(ue,we){we(window.confirm(ue))}function b(){var ue=window.navigator.userAgent;return(ue.indexOf("Android 2.")!==-1||ue.indexOf("Android 4.0")!==-1)&&ue.indexOf("Mobile Safari")!==-1&&ue.indexOf("Chrome")===-1&&ue.indexOf("Windows Phone")===-1?!1:window.history&&"pushState"in window.history}function E(){return window.navigator.userAgent.indexOf("Trident")===-1}function A(){return window.navigator.userAgent.indexOf("Firefox")===-1}function R(ue){return ue.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var H="popstate",z="hashchange";function V(){try{return window.history.state||{}}catch{return{}}}function $(ue){ue===void 0&&(ue={}),T||(0,k.Z)(!1);var we=window.history,Me=b(),Ce=!E(),Ne=ue,Ye=Ne.forceRefresh,mt=Ye===void 0?!1:Ye,Ct=Ne.getUserConfirmation,ln=Ct===void 0?u:Ct,$e=Ne.keyLength,Qe=$e===void 0?6:$e,bt=ue.basename?F(M(ue.basename)):"";function It(Ze){var lt=Ze||{},_t=lt.key,zt=lt.state,Vt=window.location,sn=Vt.pathname,yn=Vt.search,dr=Vt.hash,hr=sn+yn+dr;return bt&&(hr=I(hr,bt)),N(hr,zt,_t)}function mn(){return Math.random().toString(36).substr(2,Qe)}var un=x();function Be(Ze){(0,r.Z)(Xe,Ze),Xe.length=we.length,un.notifyListeners(Xe.location,Xe.action)}function je(Ze){R(Ze)||Kt(It(Ze.state))}function $t(){Kt(It(V()))}var et=!1;function Kt(Ze){if(et)et=!1,Be();else{var lt="POP";un.confirmTransitionTo(Ze,lt,ln,function(_t){_t?Be({action:lt,location:Ze}):kn(Ze)})}}function kn(Ze){var lt=Xe.location,_t=ht.indexOf(lt.key);_t===-1&&(_t=0);var zt=ht.indexOf(Ze.key);zt===-1&&(zt=0);var Vt=_t-zt;Vt&&(et=!0,ft(Vt))}var Tn=It(V()),ht=[Tn.key];function ot(Ze){return bt+B(Ze)}function Je(Ze,lt){var _t="PUSH",zt=N(Ze,lt,mn(),Xe.location);un.confirmTransitionTo(zt,_t,ln,function(Vt){if(Vt){var sn=ot(zt),yn=zt.key,dr=zt.state;if(Me)if(we.pushState({key:yn,state:dr},null,sn),mt)window.location.href=sn;else{var hr=ht.indexOf(Xe.location.key),Mr=ht.slice(0,hr+1);Mr.push(zt.key),ht=Mr,Be({action:_t,location:zt})}else window.location.href=sn}})}function wt(Ze,lt){var _t="REPLACE",zt=N(Ze,lt,mn(),Xe.location);un.confirmTransitionTo(zt,_t,ln,function(Vt){if(Vt){var sn=ot(zt),yn=zt.key,dr=zt.state;if(Me)if(we.replaceState({key:yn,state:dr},null,sn),mt)window.location.replace(sn);else{var hr=ht.indexOf(Xe.location.key);hr!==-1&&(ht[hr]=zt.key),Be({action:_t,location:zt})}else window.location.replace(sn)}})}function ft(Ze){we.go(Ze)}function vn(){ft(-1)}function ut(){ft(1)}var Wt=0;function ae(Ze){Wt+=Ze,Wt===1&&Ze===1?(window.addEventListener(H,je),Ce&&window.addEventListener(z,$t)):Wt===0&&(window.removeEventListener(H,je),Ce&&window.removeEventListener(z,$t))}var ne=!1;function ge(Ze){Ze===void 0&&(Ze=!1);var lt=un.setPrompt(Ze);return ne||(ae(1),ne=!0),function(){return ne&&(ne=!1,ae(-1)),lt()}}function ye(Ze){var lt=un.appendListener(Ze);return ae(1),function(){ae(-1),lt()}}var Xe={length:we.length,action:"POP",location:Tn,createHref:ot,push:Je,replace:wt,go:ft,goBack:vn,goForward:ut,block:ge,listen:ye};return Xe}var ee="hashchange",q={hashbang:{encodePath:function(we){return we.charAt(0)==="!"?we:"!/"+C(we)},decodePath:function(we){return we.charAt(0)==="!"?we.substr(1):we}},noslash:{encodePath:C,decodePath:M},slash:{encodePath:M,decodePath:M}};function oe(ue){var we=ue.indexOf("#");return we===-1?ue:ue.slice(0,we)}function X(){var ue=window.location.href,we=ue.indexOf("#");return we===-1?"":ue.substring(we+1)}function pe(ue){window.location.hash=ue}function Ie(ue){window.location.replace(oe(window.location.href)+"#"+ue)}function se(ue){ue===void 0&&(ue={}),T||(0,k.Z)(!1);var we=window.history,Me=A(),Ce=ue,Ne=Ce.getUserConfirmation,Ye=Ne===void 0?u:Ne,mt=Ce.hashType,Ct=mt===void 0?"slash":mt,ln=ue.basename?F(M(ue.basename)):"",$e=q[Ct],Qe=$e.encodePath,bt=$e.decodePath;function It(){var _t=bt(X());return ln&&(_t=I(_t,ln)),N(_t)}var mn=x();function un(_t){(0,r.Z)(lt,_t),lt.length=we.length,mn.notifyListeners(lt.location,lt.action)}var Be=!1,je=null;function $t(_t,zt){return _t.pathname===zt.pathname&&_t.search===zt.search&&_t.hash===zt.hash}function et(){var _t=X(),zt=Qe(_t);if(_t!==zt)Ie(zt);else{var Vt=It(),sn=lt.location;if(!Be&&$t(sn,Vt)||je===B(Vt))return;je=null,Kt(Vt)}}function Kt(_t){if(Be)Be=!1,un();else{var zt="POP";mn.confirmTransitionTo(_t,zt,Ye,function(Vt){Vt?un({action:zt,location:_t}):kn(_t)})}}function kn(_t){var zt=lt.location,Vt=Je.lastIndexOf(B(zt));Vt===-1&&(Vt=0);var sn=Je.lastIndexOf(B(_t));sn===-1&&(sn=0);var yn=Vt-sn;yn&&(Be=!0,ut(yn))}var Tn=X(),ht=Qe(Tn);Tn!==ht&&Ie(ht);var ot=It(),Je=[B(ot)];function wt(_t){var zt=document.querySelector("base"),Vt="";return zt&&zt.getAttribute("href")&&(Vt=oe(window.location.href)),Vt+"#"+Qe(ln+B(_t))}function ft(_t,zt){var Vt="PUSH",sn=N(_t,void 0,void 0,lt.location);mn.confirmTransitionTo(sn,Vt,Ye,function(yn){if(yn){var dr=B(sn),hr=Qe(ln+dr),Mr=X()!==hr;if(Mr){je=dr,pe(hr);var rr=Je.lastIndexOf(B(lt.location)),Cr=Je.slice(0,rr+1);Cr.push(dr),Je=Cr,un({action:Vt,location:sn})}else un()}})}function vn(_t,zt){var Vt="REPLACE",sn=N(_t,void 0,void 0,lt.location);mn.confirmTransitionTo(sn,Vt,Ye,function(yn){if(yn){var dr=B(sn),hr=Qe(ln+dr),Mr=X()!==hr;Mr&&(je=dr,Ie(hr));var rr=Je.indexOf(B(lt.location));rr!==-1&&(Je[rr]=dr),un({action:Vt,location:sn})}})}function ut(_t){we.go(_t)}function Wt(){ut(-1)}function ae(){ut(1)}var ne=0;function ge(_t){ne+=_t,ne===1&&_t===1?window.addEventListener(ee,et):ne===0&&window.removeEventListener(ee,et)}var ye=!1;function Xe(_t){_t===void 0&&(_t=!1);var zt=mn.setPrompt(_t);return ye||(ge(1),ye=!0),function(){return ye&&(ye=!1,ge(-1)),zt()}}function Ze(_t){var zt=mn.appendListener(_t);return ge(1),function(){ge(-1),zt()}}var lt={length:we.length,action:"POP",location:ot,createHref:wt,push:ft,replace:vn,go:ut,goBack:Wt,goForward:ae,block:Xe,listen:Ze};return lt}function be(ue,we,Me){return Math.min(Math.max(ue,we),Me)}function fe(ue){ue===void 0&&(ue={});var we=ue,Me=we.getUserConfirmation,Ce=we.initialEntries,Ne=Ce===void 0?["/"]:Ce,Ye=we.initialIndex,mt=Ye===void 0?0:Ye,Ct=we.keyLength,ln=Ct===void 0?6:Ct,$e=x();function Qe(Je){(0,r.Z)(ot,Je),ot.length=ot.entries.length,$e.notifyListeners(ot.location,ot.action)}function bt(){return Math.random().toString(36).substr(2,ln)}var It=be(mt,0,Ne.length-1),mn=Ne.map(function(Je){return typeof Je=="string"?N(Je,void 0,bt()):N(Je,void 0,Je.key||bt())}),un=B;function Be(Je,wt){var ft="PUSH",vn=N(Je,wt,bt(),ot.location);$e.confirmTransitionTo(vn,ft,Me,function(ut){if(ut){var Wt=ot.index,ae=Wt+1,ne=ot.entries.slice(0);ne.length>ae?ne.splice(ae,ne.length-ae,vn):ne.push(vn),Qe({action:ft,location:vn,index:ae,entries:ne})}})}function je(Je,wt){var ft="REPLACE",vn=N(Je,wt,bt(),ot.location);$e.confirmTransitionTo(vn,ft,Me,function(ut){ut&&(ot.entries[ot.index]=vn,Qe({action:ft,location:vn}))})}function $t(Je){var wt=be(ot.index+Je,0,ot.entries.length-1),ft="POP",vn=ot.entries[wt];$e.confirmTransitionTo(vn,ft,Me,function(ut){ut?Qe({action:ft,location:vn,index:wt}):Qe()})}function et(){$t(-1)}function Kt(){$t(1)}function kn(Je){var wt=ot.index+Je;return wt>=0&&wt<ot.entries.length}function Tn(Je){return Je===void 0&&(Je=!1),$e.setPrompt(Je)}function ht(Je){return $e.appendListener(Je)}var ot={length:mn.length,action:"POP",location:mn[It],index:It,entries:mn,createHref:un,push:Be,replace:je,go:$t,goBack:et,goForward:Kt,canGo:kn,block:Tn,listen:ht};return ot}},8679:(Z,v,t)=>{"use strict";var r=t(90015),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},h={};h[r.ForwardRef]=a,h[r.Memo]=c;function p(U){return r.isMemo(U)?c:h[U.$$typeof]||n}var d=Object.defineProperty,k=Object.getOwnPropertyNames,M=Object.getOwnPropertySymbols,C=Object.getOwnPropertyDescriptor,w=Object.getPrototypeOf,I=Object.prototype;function F(U,B,N){if(typeof B!="string"){if(I){var D=w(B);D&&D!==I&&F(U,D,N)}var x=k(B);M&&(x=x.concat(M(B)));for(var T=p(U),u=p(B),b=0;b<x.length;++b){var E=x[b];if(!s[E]&&!(N&&N[E])&&!(u&&u[E])&&!(T&&T[E])){var A=C(B,E);try{d(U,E,A)}catch{}}}}return U}Z.exports=F},50763:function(Z,v,t){"use strict";var r=this&&this.__createBinding||(Object.create?function(N,D,x,T){T===void 0&&(T=x);var u=Object.getOwnPropertyDescriptor(D,x);(!u||("get"in u?!D.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return D[x]}}),Object.defineProperty(N,T,u)}:function(N,D,x,T){T===void 0&&(T=x),N[T]=D[x]}),n=this&&this.__setModuleDefault||(Object.create?function(N,D){Object.defineProperty(N,"default",{enumerable:!0,value:D})}:function(N,D){N.default=D}),s=this&&this.__importStar||function(N){if(N&&N.__esModule)return N;var D={};if(N!=null)for(var x in N)x!=="default"&&Object.prototype.hasOwnProperty.call(N,x)&&r(D,N,x);return n(D,N),D};Object.defineProperty(v,"__esModule",{value:!0}),v.Parser=void 0;var a=s(t(39889)),c=t(44076),h=new Set(["input","option","optgroup","select","button","datalist","textarea"]),p=new Set(["p"]),d=new Set(["thead","tbody"]),k=new Set(["dd","dt"]),M=new Set(["rt","rp"]),C=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",p],["h1",p],["h2",p],["h3",p],["h4",p],["h5",p],["h6",p],["select",h],["input",h],["output",h],["button",h],["datalist",h],["textarea",h],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",k],["dt",k],["address",p],["article",p],["aside",p],["blockquote",p],["details",p],["div",p],["dl",p],["fieldset",p],["figcaption",p],["figure",p],["footer",p],["form",p],["header",p],["hr",p],["main",p],["nav",p],["ol",p],["pre",p],["section",p],["table",p],["ul",p],["rt",M],["rp",M],["tbody",d],["tfoot",d]]),w=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),I=new Set(["math","svg"]),F=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),U=/\s|\//,B=function(){function N(D,x){x===void 0&&(x={});var T,u,b,E,A;this.options=x,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=D??{},this.lowerCaseTagNames=(T=x.lowerCaseTags)!==null&&T!==void 0?T:!x.xmlMode,this.lowerCaseAttributeNames=(u=x.lowerCaseAttributeNames)!==null&&u!==void 0?u:!x.xmlMode,this.tokenizer=new((b=x.Tokenizer)!==null&&b!==void 0?b:a.default)(this.options,this),(A=(E=this.cbs).onparserinit)===null||A===void 0||A.call(E,this)}return N.prototype.ontext=function(D,x){var T,u,b=this.getSlice(D,x);this.endIndex=x-1,(u=(T=this.cbs).ontext)===null||u===void 0||u.call(T,b),this.startIndex=x},N.prototype.ontextentity=function(D){var x,T,u=this.tokenizer.getSectionStart();this.endIndex=u-1,(T=(x=this.cbs).ontext)===null||T===void 0||T.call(x,(0,c.fromCodePoint)(D)),this.startIndex=u},N.prototype.isVoidElement=function(D){return!this.options.xmlMode&&w.has(D)},N.prototype.onopentagname=function(D,x){this.endIndex=x;var T=this.getSlice(D,x);this.lowerCaseTagNames&&(T=T.toLowerCase()),this.emitOpenTag(T)},N.prototype.emitOpenTag=function(D){var x,T,u,b;this.openTagStart=this.startIndex,this.tagname=D;var E=!this.options.xmlMode&&C.get(D);if(E)for(;this.stack.length>0&&E.has(this.stack[this.stack.length-1]);){var A=this.stack.pop();(T=(x=this.cbs).onclosetag)===null||T===void 0||T.call(x,A,!0)}this.isVoidElement(D)||(this.stack.push(D),I.has(D)?this.foreignContext.push(!0):F.has(D)&&this.foreignContext.push(!1)),(b=(u=this.cbs).onopentagname)===null||b===void 0||b.call(u,D),this.cbs.onopentag&&(this.attribs={})},N.prototype.endOpenTag=function(D){var x,T;this.startIndex=this.openTagStart,this.attribs&&((T=(x=this.cbs).onopentag)===null||T===void 0||T.call(x,this.tagname,this.attribs,D),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},N.prototype.onopentagend=function(D){this.endIndex=D,this.endOpenTag(!1),this.startIndex=D+1},N.prototype.onclosetag=function(D,x){var T,u,b,E,A,R;this.endIndex=x;var H=this.getSlice(D,x);if(this.lowerCaseTagNames&&(H=H.toLowerCase()),(I.has(H)||F.has(H))&&this.foreignContext.pop(),this.isVoidElement(H))!this.options.xmlMode&&H==="br"&&((u=(T=this.cbs).onopentagname)===null||u===void 0||u.call(T,"br"),(E=(b=this.cbs).onopentag)===null||E===void 0||E.call(b,"br",{},!0),(R=(A=this.cbs).onclosetag)===null||R===void 0||R.call(A,"br",!1));else{var z=this.stack.lastIndexOf(H);if(z!==-1)if(this.cbs.onclosetag)for(var V=this.stack.length-z;V--;)this.cbs.onclosetag(this.stack.pop(),V!==0);else this.stack.length=z;else!this.options.xmlMode&&H==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=x+1},N.prototype.onselfclosingtag=function(D){this.endIndex=D,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=D+1):this.onopentagend(D)},N.prototype.closeCurrentTag=function(D){var x,T,u=this.tagname;this.endOpenTag(D),this.stack[this.stack.length-1]===u&&((T=(x=this.cbs).onclosetag)===null||T===void 0||T.call(x,u,!D),this.stack.pop())},N.prototype.onattribname=function(D,x){this.startIndex=D;var T=this.getSlice(D,x);this.attribname=this.lowerCaseAttributeNames?T.toLowerCase():T},N.prototype.onattribdata=function(D,x){this.attribvalue+=this.getSlice(D,x)},N.prototype.onattribentity=function(D){this.attribvalue+=(0,c.fromCodePoint)(D)},N.prototype.onattribend=function(D,x){var T,u;this.endIndex=x,(u=(T=this.cbs).onattribute)===null||u===void 0||u.call(T,this.attribname,this.attribvalue,D===a.QuoteType.Double?'"':D===a.QuoteType.Single?"'":D===a.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},N.prototype.getInstructionName=function(D){var x=D.search(U),T=x<0?D:D.substr(0,x);return this.lowerCaseTagNames&&(T=T.toLowerCase()),T},N.prototype.ondeclaration=function(D,x){this.endIndex=x;var T=this.getSlice(D,x);if(this.cbs.onprocessinginstruction){var u=this.getInstructionName(T);this.cbs.onprocessinginstruction("!".concat(u),"!".concat(T))}this.startIndex=x+1},N.prototype.onprocessinginstruction=function(D,x){this.endIndex=x;var T=this.getSlice(D,x);if(this.cbs.onprocessinginstruction){var u=this.getInstructionName(T);this.cbs.onprocessinginstruction("?".concat(u),"?".concat(T))}this.startIndex=x+1},N.prototype.oncomment=function(D,x,T){var u,b,E,A;this.endIndex=x,(b=(u=this.cbs).oncomment)===null||b===void 0||b.call(u,this.getSlice(D,x-T)),(A=(E=this.cbs).oncommentend)===null||A===void 0||A.call(E),this.startIndex=x+1},N.prototype.oncdata=function(D,x,T){var u,b,E,A,R,H,z,V,$,ee;this.endIndex=x;var q=this.getSlice(D,x-T);this.options.xmlMode||this.options.recognizeCDATA?((b=(u=this.cbs).oncdatastart)===null||b===void 0||b.call(u),(A=(E=this.cbs).ontext)===null||A===void 0||A.call(E,q),(H=(R=this.cbs).oncdataend)===null||H===void 0||H.call(R)):((V=(z=this.cbs).oncomment)===null||V===void 0||V.call(z,"[CDATA[".concat(q,"]]")),(ee=($=this.cbs).oncommentend)===null||ee===void 0||ee.call($)),this.startIndex=x+1},N.prototype.onend=function(){var D,x;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var T=this.stack.length;T>0;this.cbs.onclosetag(this.stack[--T],!0));}(x=(D=this.cbs).onend)===null||x===void 0||x.call(D)},N.prototype.reset=function(){var D,x,T,u;(x=(D=this.cbs).onreset)===null||x===void 0||x.call(D),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(u=(T=this.cbs).onparserinit)===null||u===void 0||u.call(T,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},N.prototype.parseComplete=function(D){this.reset(),this.end(D)},N.prototype.getSlice=function(D,x){for(;D-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var T=this.buffers[0].slice(D-this.bufferOffset,x-this.bufferOffset);x-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),T+=this.buffers[0].slice(0,x-this.bufferOffset);return T},N.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},N.prototype.write=function(D){var x,T;if(this.ended){(T=(x=this.cbs).onerror)===null||T===void 0||T.call(x,new Error(".write() after done!"));return}this.buffers.push(D),this.tokenizer.running&&(this.tokenizer.write(D),this.writeIndex++)},N.prototype.end=function(D){var x,T;if(this.ended){(T=(x=this.cbs).onerror)===null||T===void 0||T.call(x,new Error(".end() after done!"));return}D&&this.write(D),this.ended=!0,this.tokenizer.end()},N.prototype.pause=function(){this.tokenizer.pause()},N.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},N.prototype.parseChunk=function(D){this.write(D)},N.prototype.done=function(D){this.end(D)},N}();v.Parser=B},39889:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.QuoteType=void 0;var r=t(44076),n;(function(w){w[w.Tab=9]="Tab",w[w.NewLine=10]="NewLine",w[w.FormFeed=12]="FormFeed",w[w.CarriageReturn=13]="CarriageReturn",w[w.Space=32]="Space",w[w.ExclamationMark=33]="ExclamationMark",w[w.Number=35]="Number",w[w.Amp=38]="Amp",w[w.SingleQuote=39]="SingleQuote",w[w.DoubleQuote=34]="DoubleQuote",w[w.Dash=45]="Dash",w[w.Slash=47]="Slash",w[w.Zero=48]="Zero",w[w.Nine=57]="Nine",w[w.Semi=59]="Semi",w[w.Lt=60]="Lt",w[w.Eq=61]="Eq",w[w.Gt=62]="Gt",w[w.Questionmark=63]="Questionmark",w[w.UpperA=65]="UpperA",w[w.LowerA=97]="LowerA",w[w.UpperF=70]="UpperF",w[w.LowerF=102]="LowerF",w[w.UpperZ=90]="UpperZ",w[w.LowerZ=122]="LowerZ",w[w.LowerX=120]="LowerX",w[w.OpeningSquareBracket=91]="OpeningSquareBracket"})(n||(n={}));var s;(function(w){w[w.Text=1]="Text",w[w.BeforeTagName=2]="BeforeTagName",w[w.InTagName=3]="InTagName",w[w.InSelfClosingTag=4]="InSelfClosingTag",w[w.BeforeClosingTagName=5]="BeforeClosingTagName",w[w.InClosingTagName=6]="InClosingTagName",w[w.AfterClosingTagName=7]="AfterClosingTagName",w[w.BeforeAttributeName=8]="BeforeAttributeName",w[w.InAttributeName=9]="InAttributeName",w[w.AfterAttributeName=10]="AfterAttributeName",w[w.BeforeAttributeValue=11]="BeforeAttributeValue",w[w.InAttributeValueDq=12]="InAttributeValueDq",w[w.InAttributeValueSq=13]="InAttributeValueSq",w[w.InAttributeValueNq=14]="InAttributeValueNq",w[w.BeforeDeclaration=15]="BeforeDeclaration",w[w.InDeclaration=16]="InDeclaration",w[w.InProcessingInstruction=17]="InProcessingInstruction",w[w.BeforeComment=18]="BeforeComment",w[w.CDATASequence=19]="CDATASequence",w[w.InSpecialComment=20]="InSpecialComment",w[w.InCommentLike=21]="InCommentLike",w[w.BeforeSpecialS=22]="BeforeSpecialS",w[w.SpecialStartSequence=23]="SpecialStartSequence",w[w.InSpecialTag=24]="InSpecialTag",w[w.BeforeEntity=25]="BeforeEntity",w[w.BeforeNumericEntity=26]="BeforeNumericEntity",w[w.InNamedEntity=27]="InNamedEntity",w[w.InNumericEntity=28]="InNumericEntity",w[w.InHexEntity=29]="InHexEntity"})(s||(s={}));function a(w){return w===n.Space||w===n.NewLine||w===n.Tab||w===n.FormFeed||w===n.CarriageReturn}function c(w){return w===n.Slash||w===n.Gt||a(w)}function h(w){return w>=n.Zero&&w<=n.Nine}function p(w){return w>=n.LowerA&&w<=n.LowerZ||w>=n.UpperA&&w<=n.UpperZ}function d(w){return w>=n.UpperA&&w<=n.UpperF||w>=n.LowerA&&w<=n.LowerF}var k;(function(w){w[w.NoValue=0]="NoValue",w[w.Unquoted=1]="Unquoted",w[w.Single=2]="Single",w[w.Double=3]="Double"})(k=v.QuoteType||(v.QuoteType={}));var M={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},C=function(){function w(I,F){var U=I.xmlMode,B=U===void 0?!1:U,N=I.decodeEntities,D=N===void 0?!0:N;this.cbs=F,this.state=s.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=s.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=B,this.decodeEntities=D,this.entityTrie=B?r.xmlDecodeTree:r.htmlDecodeTree}return w.prototype.reset=function(){this.state=s.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=s.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},w.prototype.write=function(I){this.offset+=this.buffer.length,this.buffer=I,this.parse()},w.prototype.end=function(){this.running&&this.finish()},w.prototype.pause=function(){this.running=!1},w.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},w.prototype.getIndex=function(){return this.index},w.prototype.getSectionStart=function(){return this.sectionStart},w.prototype.stateText=function(I){I===n.Lt||!this.decodeEntities&&this.fastForwardTo(n.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=s.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&I===n.Amp&&(this.state=s.BeforeEntity)},w.prototype.stateSpecialStartSequence=function(I){var F=this.sequenceIndex===this.currentSequence.length,U=F?c(I):(I|32)===this.currentSequence[this.sequenceIndex];if(!U)this.isSpecial=!1;else if(!F){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=s.InTagName,this.stateInTagName(I)},w.prototype.stateInSpecialTag=function(I){if(this.sequenceIndex===this.currentSequence.length){if(I===n.Gt||a(I)){var F=this.index-this.currentSequence.length;if(this.sectionStart<F){var U=this.index;this.index=F,this.cbs.ontext(this.sectionStart,F),this.index=U}this.isSpecial=!1,this.sectionStart=F+2,this.stateInClosingTagName(I);return}this.sequenceIndex=0}(I|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===M.TitleEnd?this.decodeEntities&&I===n.Amp&&(this.state=s.BeforeEntity):this.fastForwardTo(n.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(I===n.Lt)},w.prototype.stateCDATASequence=function(I){I===M.Cdata[this.sequenceIndex]?++this.sequenceIndex===M.Cdata.length&&(this.state=s.InCommentLike,this.currentSequence=M.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=s.InDeclaration,this.stateInDeclaration(I))},w.prototype.fastForwardTo=function(I){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===I)return!0;return this.index=this.buffer.length+this.offset-1,!1},w.prototype.stateInCommentLike=function(I){I===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===M.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=s.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):I!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},w.prototype.isTagStartChar=function(I){return this.xmlMode?!c(I):p(I)},w.prototype.startSpecial=function(I,F){this.isSpecial=!0,this.currentSequence=I,this.sequenceIndex=F,this.state=s.SpecialStartSequence},w.prototype.stateBeforeTagName=function(I){if(I===n.ExclamationMark)this.state=s.BeforeDeclaration,this.sectionStart=this.index+1;else if(I===n.Questionmark)this.state=s.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(I)){var F=I|32;this.sectionStart=this.index,!this.xmlMode&&F===M.TitleEnd[2]?this.startSpecial(M.TitleEnd,3):this.state=!this.xmlMode&&F===M.ScriptEnd[2]?s.BeforeSpecialS:s.InTagName}else I===n.Slash?this.state=s.BeforeClosingTagName:(this.state=s.Text,this.stateText(I))},w.prototype.stateInTagName=function(I){c(I)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=s.BeforeAttributeName,this.stateBeforeAttributeName(I))},w.prototype.stateBeforeClosingTagName=function(I){a(I)||(I===n.Gt?this.state=s.Text:(this.state=this.isTagStartChar(I)?s.InClosingTagName:s.InSpecialComment,this.sectionStart=this.index))},w.prototype.stateInClosingTagName=function(I){(I===n.Gt||a(I))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=s.AfterClosingTagName,this.stateAfterClosingTagName(I))},w.prototype.stateAfterClosingTagName=function(I){(I===n.Gt||this.fastForwardTo(n.Gt))&&(this.state=s.Text,this.baseState=s.Text,this.sectionStart=this.index+1)},w.prototype.stateBeforeAttributeName=function(I){I===n.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=s.InSpecialTag,this.sequenceIndex=0):this.state=s.Text,this.baseState=this.state,this.sectionStart=this.index+1):I===n.Slash?this.state=s.InSelfClosingTag:a(I)||(this.state=s.InAttributeName,this.sectionStart=this.index)},w.prototype.stateInSelfClosingTag=function(I){I===n.Gt?(this.cbs.onselfclosingtag(this.index),this.state=s.Text,this.baseState=s.Text,this.sectionStart=this.index+1,this.isSpecial=!1):a(I)||(this.state=s.BeforeAttributeName,this.stateBeforeAttributeName(I))},w.prototype.stateInAttributeName=function(I){(I===n.Eq||c(I))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=s.AfterAttributeName,this.stateAfterAttributeName(I))},w.prototype.stateAfterAttributeName=function(I){I===n.Eq?this.state=s.BeforeAttributeValue:I===n.Slash||I===n.Gt?(this.cbs.onattribend(k.NoValue,this.index),this.state=s.BeforeAttributeName,this.stateBeforeAttributeName(I)):a(I)||(this.cbs.onattribend(k.NoValue,this.index),this.state=s.InAttributeName,this.sectionStart=this.index)},w.prototype.stateBeforeAttributeValue=function(I){I===n.DoubleQuote?(this.state=s.InAttributeValueDq,this.sectionStart=this.index+1):I===n.SingleQuote?(this.state=s.InAttributeValueSq,this.sectionStart=this.index+1):a(I)||(this.sectionStart=this.index,this.state=s.InAttributeValueNq,this.stateInAttributeValueNoQuotes(I))},w.prototype.handleInAttributeValue=function(I,F){I===F||!this.decodeEntities&&this.fastForwardTo(F)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(F===n.DoubleQuote?k.Double:k.Single,this.index),this.state=s.BeforeAttributeName):this.decodeEntities&&I===n.Amp&&(this.baseState=this.state,this.state=s.BeforeEntity)},w.prototype.stateInAttributeValueDoubleQuotes=function(I){this.handleInAttributeValue(I,n.DoubleQuote)},w.prototype.stateInAttributeValueSingleQuotes=function(I){this.handleInAttributeValue(I,n.SingleQuote)},w.prototype.stateInAttributeValueNoQuotes=function(I){a(I)||I===n.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(k.Unquoted,this.index),this.state=s.BeforeAttributeName,this.stateBeforeAttributeName(I)):this.decodeEntities&&I===n.Amp&&(this.baseState=this.state,this.state=s.BeforeEntity)},w.prototype.stateBeforeDeclaration=function(I){I===n.OpeningSquareBracket?(this.state=s.CDATASequence,this.sequenceIndex=0):this.state=I===n.Dash?s.BeforeComment:s.InDeclaration},w.prototype.stateInDeclaration=function(I){(I===n.Gt||this.fastForwardTo(n.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=s.Text,this.sectionStart=this.index+1)},w.prototype.stateInProcessingInstruction=function(I){(I===n.Gt||this.fastForwardTo(n.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=s.Text,this.sectionStart=this.index+1)},w.prototype.stateBeforeComment=function(I){I===n.Dash?(this.state=s.InCommentLike,this.currentSequence=M.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=s.InDeclaration},w.prototype.stateInSpecialComment=function(I){(I===n.Gt||this.fastForwardTo(n.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=s.Text,this.sectionStart=this.index+1)},w.prototype.stateBeforeSpecialS=function(I){var F=I|32;F===M.ScriptEnd[3]?this.startSpecial(M.ScriptEnd,4):F===M.StyleEnd[3]?this.startSpecial(M.StyleEnd,4):(this.state=s.InTagName,this.stateInTagName(I))},w.prototype.stateBeforeEntity=function(I){this.entityExcess=1,this.entityResult=0,I===n.Number?this.state=s.BeforeNumericEntity:I===n.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=s.InNamedEntity,this.stateInNamedEntity(I))},w.prototype.stateInNamedEntity=function(I){if(this.entityExcess+=1,this.trieIndex=(0,r.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,I),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var F=this.trieCurrent&r.BinTrieFlags.VALUE_LENGTH;if(F){var U=(F>>14)-1;if(!this.allowLegacyEntity()&&I!==n.Semi)this.trieIndex+=U;else{var B=this.index-this.entityExcess+1;B>this.sectionStart&&this.emitPartial(this.sectionStart,B),this.entityResult=this.trieIndex,this.trieIndex+=U,this.entityExcess=0,this.sectionStart=this.index+1,U===0&&this.emitNamedEntity()}}},w.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var I=(this.entityTrie[this.entityResult]&r.BinTrieFlags.VALUE_LENGTH)>>14;switch(I){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~r.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},w.prototype.stateBeforeNumericEntity=function(I){(I|32)===n.LowerX?(this.entityExcess++,this.state=s.InHexEntity):(this.state=s.InNumericEntity,this.stateInNumericEntity(I))},w.prototype.emitNumericEntity=function(I){var F=this.index-this.entityExcess-1,U=F+2+Number(this.state===s.InHexEntity);U!==this.index&&(F>this.sectionStart&&this.emitPartial(this.sectionStart,F),this.sectionStart=this.index+Number(I),this.emitCodePoint((0,r.replaceCodePoint)(this.entityResult))),this.state=this.baseState},w.prototype.stateInNumericEntity=function(I){I===n.Semi?this.emitNumericEntity(!0):h(I)?(this.entityResult=this.entityResult*10+(I-n.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},w.prototype.stateInHexEntity=function(I){I===n.Semi?this.emitNumericEntity(!0):h(I)?(this.entityResult=this.entityResult*16+(I-n.Zero),this.entityExcess++):d(I)?(this.entityResult=this.entityResult*16+((I|32)-n.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},w.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===s.Text||this.baseState===s.InSpecialTag)},w.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===s.Text||this.state===s.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===s.InAttributeValueDq||this.state===s.InAttributeValueSq||this.state===s.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},w.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},w.prototype.parse=function(){for(;this.shouldContinue();){var I=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case s.Text:{this.stateText(I);break}case s.SpecialStartSequence:{this.stateSpecialStartSequence(I);break}case s.InSpecialTag:{this.stateInSpecialTag(I);break}case s.CDATASequence:{this.stateCDATASequence(I);break}case s.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(I);break}case s.InAttributeName:{this.stateInAttributeName(I);break}case s.InCommentLike:{this.stateInCommentLike(I);break}case s.InSpecialComment:{this.stateInSpecialComment(I);break}case s.BeforeAttributeName:{this.stateBeforeAttributeName(I);break}case s.InTagName:{this.stateInTagName(I);break}case s.InClosingTagName:{this.stateInClosingTagName(I);break}case s.BeforeTagName:{this.stateBeforeTagName(I);break}case s.AfterAttributeName:{this.stateAfterAttributeName(I);break}case s.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(I);break}case s.BeforeAttributeValue:{this.stateBeforeAttributeValue(I);break}case s.BeforeClosingTagName:{this.stateBeforeClosingTagName(I);break}case s.AfterClosingTagName:{this.stateAfterClosingTagName(I);break}case s.BeforeSpecialS:{this.stateBeforeSpecialS(I);break}case s.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(I);break}case s.InSelfClosingTag:{this.stateInSelfClosingTag(I);break}case s.InDeclaration:{this.stateInDeclaration(I);break}case s.BeforeDeclaration:{this.stateBeforeDeclaration(I);break}case s.BeforeComment:{this.stateBeforeComment(I);break}case s.InProcessingInstruction:{this.stateInProcessingInstruction(I);break}case s.InNamedEntity:{this.stateInNamedEntity(I);break}case s.BeforeEntity:{this.stateBeforeEntity(I);break}case s.InHexEntity:{this.stateInHexEntity(I);break}case s.InNumericEntity:{this.stateInNumericEntity(I);break}default:this.stateBeforeNumericEntity(I)}this.index++}this.cleanup()},w.prototype.finish=function(){this.state===s.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},w.prototype.handleTrailingData=function(){var I=this.buffer.length+this.offset;this.state===s.InCommentLike?this.currentSequence===M.CdataEnd?this.cbs.oncdata(this.sectionStart,I,0):this.cbs.oncomment(this.sectionStart,I,0):this.state===s.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===s.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===s.InTagName||this.state===s.BeforeAttributeName||this.state===s.BeforeAttributeValue||this.state===s.AfterAttributeName||this.state===s.InAttributeName||this.state===s.InAttributeValueSq||this.state===s.InAttributeValueDq||this.state===s.InAttributeValueNq||this.state===s.InClosingTagName||this.cbs.ontext(this.sectionStart,I)},w.prototype.emitPartial=function(I,F){this.baseState!==s.Text&&this.baseState!==s.InSpecialTag?this.cbs.onattribdata(I,F):this.cbs.ontext(I,F)},w.prototype.emitCodePoint=function(I){this.baseState!==s.Text&&this.baseState!==s.InSpecialTag?this.cbs.onattribentity(I):this.cbs.ontextentity(I)},w}();v.default=C},23719:function(Z,v,t){"use strict";var r=this&&this.__createBinding||(Object.create?function(N,D,x,T){T===void 0&&(T=x);var u=Object.getOwnPropertyDescriptor(D,x);(!u||("get"in u?!D.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return D[x]}}),Object.defineProperty(N,T,u)}:function(N,D,x,T){T===void 0&&(T=x),N[T]=D[x]}),n=this&&this.__setModuleDefault||(Object.create?function(N,D){Object.defineProperty(N,"default",{enumerable:!0,value:D})}:function(N,D){N.default=D}),s=this&&this.__importStar||function(N){if(N&&N.__esModule)return N;var D={};if(N!=null)for(var x in N)x!=="default"&&Object.prototype.hasOwnProperty.call(N,x)&&r(D,N,x);return n(D,N),D},a=this&&this.__importDefault||function(N){return N&&N.__esModule?N:{default:N}};Object.defineProperty(v,"__esModule",{value:!0}),v.DomUtils=v.parseFeed=v.getFeed=v.ElementType=v.Tokenizer=v.createDomStream=v.parseDOM=v.parseDocument=v.DefaultHandler=v.DomHandler=v.Parser=void 0;var c=t(50763),h=t(50763);Object.defineProperty(v,"Parser",{enumerable:!0,get:function(){return h.Parser}});var p=t(16102),d=t(16102);Object.defineProperty(v,"DomHandler",{enumerable:!0,get:function(){return d.DomHandler}}),Object.defineProperty(v,"DefaultHandler",{enumerable:!0,get:function(){return d.DomHandler}});function k(N,D){var x=new p.DomHandler(void 0,D);return new c.Parser(x,D).end(N),x.root}v.parseDocument=k;function M(N,D){return k(N,D).children}v.parseDOM=M;function C(N,D,x){var T=new p.DomHandler(N,D,x);return new c.Parser(T,D)}v.createDomStream=C;var w=t(39889);Object.defineProperty(v,"Tokenizer",{enumerable:!0,get:function(){return a(w).default}}),v.ElementType=s(t(99960));var I=t(43992),F=t(43992);Object.defineProperty(v,"getFeed",{enumerable:!0,get:function(){return F.getFeed}});var U={xmlMode:!0};function B(N,D){return D===void 0&&(D=U),(0,I.getFeed)(M(N,D))}v.parseFeed=B,v.DomUtils=s(t(43992))},34028:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.attributeNames=v.elementNames=void 0,v.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(t){return[t.toLowerCase(),t]})),v.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(t){return[t.toLowerCase(),t]}))},91203:function(Z,v,t){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(u){for(var b,E=1,A=arguments.length;E<A;E++){b=arguments[E];for(var R in b)Object.prototype.hasOwnProperty.call(b,R)&&(u[R]=b[R])}return u},r.apply(this,arguments)},n=this&&this.__createBinding||(Object.create?function(u,b,E,A){A===void 0&&(A=E);var R=Object.getOwnPropertyDescriptor(b,E);(!R||("get"in R?!b.__esModule:R.writable||R.configurable))&&(R={enumerable:!0,get:function(){return b[E]}}),Object.defineProperty(u,A,R)}:function(u,b,E,A){A===void 0&&(A=E),u[A]=b[E]}),s=this&&this.__setModuleDefault||(Object.create?function(u,b){Object.defineProperty(u,"default",{enumerable:!0,value:b})}:function(u,b){u.default=b}),a=this&&this.__importStar||function(u){if(u&&u.__esModule)return u;var b={};if(u!=null)for(var E in u)E!=="default"&&Object.prototype.hasOwnProperty.call(u,E)&&n(b,u,E);return s(b,u),b};Object.defineProperty(v,"__esModule",{value:!0}),v.render=void 0;var c=a(t(99960)),h=t(45863),p=t(34028),d=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function k(u){return u.replace(/"/g,"&quot;")}function M(u,b){var E;if(u){var A=((E=b.encodeEntities)!==null&&E!==void 0?E:b.decodeEntities)===!1?k:b.xmlMode||b.encodeEntities!=="utf8"?h.encodeXML:h.escapeAttribute;return Object.keys(u).map(function(R){var H,z,V=(H=u[R])!==null&&H!==void 0?H:"";return b.xmlMode==="foreign"&&(R=(z=p.attributeNames.get(R))!==null&&z!==void 0?z:R),!b.emptyAttrs&&!b.xmlMode&&V===""?R:"".concat(R,'="').concat(A(V),'"')}).join(" ")}}var C=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function w(u,b){b===void 0&&(b={});for(var E=("length"in u)?u:[u],A="",R=0;R<E.length;R++)A+=I(E[R],b);return A}v.render=w,v.default=w;function I(u,b){switch(u.type){case c.Root:return w(u.children,b);case c.Doctype:case c.Directive:return N(u);case c.Comment:return T(u);case c.CDATA:return x(u);case c.Script:case c.Style:case c.Tag:return B(u,b);case c.Text:return D(u,b)}}var F=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),U=new Set(["svg","math"]);function B(u,b){var E;b.xmlMode==="foreign"&&(u.name=(E=p.elementNames.get(u.name))!==null&&E!==void 0?E:u.name,u.parent&&F.has(u.parent.name)&&(b=r(r({},b),{xmlMode:!1}))),!b.xmlMode&&U.has(u.name)&&(b=r(r({},b),{xmlMode:"foreign"}));var A="<".concat(u.name),R=M(u.attribs,b);return R&&(A+=" ".concat(R)),u.children.length===0&&(b.xmlMode?b.selfClosingTags!==!1:b.selfClosingTags&&C.has(u.name))?(b.xmlMode||(A+=" "),A+="/>"):(A+=">",u.children.length>0&&(A+=w(u.children,b)),(b.xmlMode||!C.has(u.name))&&(A+="</".concat(u.name,">"))),A}function N(u){return"<".concat(u.data,">")}function D(u,b){var E,A=u.data||"";return((E=b.encodeEntities)!==null&&E!==void 0?E:b.decodeEntities)!==!1&&!(!b.xmlMode&&u.parent&&d.has(u.parent.name))&&(A=b.xmlMode||b.encodeEntities!=="utf8"?(0,h.encodeXML)(A):(0,h.escapeText)(A)),A}function x(u){return"<![CDATA[".concat(u.children[0].data,"]]>")}function T(u){return"<!--".concat(u.data,"-->")}},16102:function(Z,v,t){"use strict";var r=this&&this.__createBinding||(Object.create?function(p,d,k,M){M===void 0&&(M=k);var C=Object.getOwnPropertyDescriptor(d,k);(!C||("get"in C?!d.__esModule:C.writable||C.configurable))&&(C={enumerable:!0,get:function(){return d[k]}}),Object.defineProperty(p,M,C)}:function(p,d,k,M){M===void 0&&(M=k),p[M]=d[k]}),n=this&&this.__exportStar||function(p,d){for(var k in p)k!=="default"&&!Object.prototype.hasOwnProperty.call(d,k)&&r(d,p,k)};Object.defineProperty(v,"__esModule",{value:!0}),v.DomHandler=void 0;var s=t(99960),a=t(16805);n(t(16805),v);var c={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},h=function(){function p(d,k,M){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof k=="function"&&(M=k,k=c),typeof d=="object"&&(k=d,d=void 0),this.callback=d??null,this.options=k??c,this.elementCB=M??null}return p.prototype.onparserinit=function(d){this.parser=d},p.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},p.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},p.prototype.onerror=function(d){this.handleCallback(d)},p.prototype.onclosetag=function(){this.lastNode=null;var d=this.tagStack.pop();this.options.withEndIndices&&(d.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(d)},p.prototype.onopentag=function(d,k){var M=this.options.xmlMode?s.ElementType.Tag:void 0,C=new a.Element(d,k,void 0,M);this.addNode(C),this.tagStack.push(C)},p.prototype.ontext=function(d){var k=this.lastNode;if(k&&k.type===s.ElementType.Text)k.data+=d,this.options.withEndIndices&&(k.endIndex=this.parser.endIndex);else{var M=new a.Text(d);this.addNode(M),this.lastNode=M}},p.prototype.oncomment=function(d){if(this.lastNode&&this.lastNode.type===s.ElementType.Comment){this.lastNode.data+=d;return}var k=new a.Comment(d);this.addNode(k),this.lastNode=k},p.prototype.oncommentend=function(){this.lastNode=null},p.prototype.oncdatastart=function(){var d=new a.Text(""),k=new a.CDATA([d]);this.addNode(k),d.parent=k,this.lastNode=d},p.prototype.oncdataend=function(){this.lastNode=null},p.prototype.onprocessinginstruction=function(d,k){var M=new a.ProcessingInstruction(d,k);this.addNode(M)},p.prototype.handleCallback=function(d){if(typeof this.callback=="function")this.callback(d,this.dom);else if(d)throw d},p.prototype.addNode=function(d){var k=this.tagStack[this.tagStack.length-1],M=k.children[k.children.length-1];this.options.withStartIndices&&(d.startIndex=this.parser.startIndex),this.options.withEndIndices&&(d.endIndex=this.parser.endIndex),k.children.push(d),M&&(d.prev=M,M.next=d),d.parent=k,this.lastNode=null},p}();v.DomHandler=h,v.default=h},16805:function(Z,v,t){"use strict";var r=this&&this.__extends||function(){var b=function(E,A){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,H){R.__proto__=H}||function(R,H){for(var z in H)Object.prototype.hasOwnProperty.call(H,z)&&(R[z]=H[z])},b(E,A)};return function(E,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");b(E,A);function R(){this.constructor=E}E.prototype=A===null?Object.create(A):(R.prototype=A.prototype,new R)}}(),n=this&&this.__assign||function(){return n=Object.assign||function(b){for(var E,A=1,R=arguments.length;A<R;A++){E=arguments[A];for(var H in E)Object.prototype.hasOwnProperty.call(E,H)&&(b[H]=E[H])}return b},n.apply(this,arguments)};Object.defineProperty(v,"__esModule",{value:!0}),v.cloneNode=v.hasChildren=v.isDocument=v.isDirective=v.isComment=v.isText=v.isCDATA=v.isTag=v.Element=v.Document=v.CDATA=v.NodeWithChildren=v.ProcessingInstruction=v.Comment=v.Text=v.DataNode=v.Node=void 0;var s=t(99960),a=function(){function b(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(b.prototype,"parentNode",{get:function(){return this.parent},set:function(E){this.parent=E},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"previousSibling",{get:function(){return this.prev},set:function(E){this.prev=E},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"nextSibling",{get:function(){return this.next},set:function(E){this.next=E},enumerable:!1,configurable:!0}),b.prototype.cloneNode=function(E){return E===void 0&&(E=!1),T(this,E)},b}();v.Node=a;var c=function(b){r(E,b);function E(A){var R=b.call(this)||this;return R.data=A,R}return Object.defineProperty(E.prototype,"nodeValue",{get:function(){return this.data},set:function(A){this.data=A},enumerable:!1,configurable:!0}),E}(a);v.DataNode=c;var h=function(b){r(E,b);function E(){var A=b!==null&&b.apply(this,arguments)||this;return A.type=s.ElementType.Text,A}return Object.defineProperty(E.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),E}(c);v.Text=h;var p=function(b){r(E,b);function E(){var A=b!==null&&b.apply(this,arguments)||this;return A.type=s.ElementType.Comment,A}return Object.defineProperty(E.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),E}(c);v.Comment=p;var d=function(b){r(E,b);function E(A,R){var H=b.call(this,R)||this;return H.name=A,H.type=s.ElementType.Directive,H}return Object.defineProperty(E.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),E}(c);v.ProcessingInstruction=d;var k=function(b){r(E,b);function E(A){var R=b.call(this)||this;return R.children=A,R}return Object.defineProperty(E.prototype,"firstChild",{get:function(){var A;return(A=this.children[0])!==null&&A!==void 0?A:null},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"childNodes",{get:function(){return this.children},set:function(A){this.children=A},enumerable:!1,configurable:!0}),E}(a);v.NodeWithChildren=k;var M=function(b){r(E,b);function E(){var A=b!==null&&b.apply(this,arguments)||this;return A.type=s.ElementType.CDATA,A}return Object.defineProperty(E.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),E}(k);v.CDATA=M;var C=function(b){r(E,b);function E(){var A=b!==null&&b.apply(this,arguments)||this;return A.type=s.ElementType.Root,A}return Object.defineProperty(E.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),E}(k);v.Document=C;var w=function(b){r(E,b);function E(A,R,H,z){H===void 0&&(H=[]),z===void 0&&(z=A==="script"?s.ElementType.Script:A==="style"?s.ElementType.Style:s.ElementType.Tag);var V=b.call(this,H)||this;return V.name=A,V.attribs=R,V.type=z,V}return Object.defineProperty(E.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"tagName",{get:function(){return this.name},set:function(A){this.name=A},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"attributes",{get:function(){var A=this;return Object.keys(this.attribs).map(function(R){var H,z;return{name:R,value:A.attribs[R],namespace:(H=A["x-attribsNamespace"])===null||H===void 0?void 0:H[R],prefix:(z=A["x-attribsPrefix"])===null||z===void 0?void 0:z[R]}})},enumerable:!1,configurable:!0}),E}(k);v.Element=w;function I(b){return(0,s.isTag)(b)}v.isTag=I;function F(b){return b.type===s.ElementType.CDATA}v.isCDATA=F;function U(b){return b.type===s.ElementType.Text}v.isText=U;function B(b){return b.type===s.ElementType.Comment}v.isComment=B;function N(b){return b.type===s.ElementType.Directive}v.isDirective=N;function D(b){return b.type===s.ElementType.Root}v.isDocument=D;function x(b){return Object.prototype.hasOwnProperty.call(b,"children")}v.hasChildren=x;function T(b,E){E===void 0&&(E=!1);var A;if(U(b))A=new h(b.data);else if(B(b))A=new p(b.data);else if(I(b)){var R=E?u(b.children):[],H=new w(b.name,n({},b.attribs),R);R.forEach(function(ee){return ee.parent=H}),b.namespace!=null&&(H.namespace=b.namespace),b["x-attribsNamespace"]&&(H["x-attribsNamespace"]=n({},b["x-attribsNamespace"])),b["x-attribsPrefix"]&&(H["x-attribsPrefix"]=n({},b["x-attribsPrefix"])),A=H}else if(F(b)){var R=E?u(b.children):[],z=new M(R);R.forEach(function(q){return q.parent=z}),A=z}else if(D(b)){var R=E?u(b.children):[],V=new C(R);R.forEach(function(q){return q.parent=V}),b["x-mode"]&&(V["x-mode"]=b["x-mode"]),A=V}else if(N(b)){var $=new d(b.name,b.data);b["x-name"]!=null&&($["x-name"]=b["x-name"],$["x-publicId"]=b["x-publicId"],$["x-systemId"]=b["x-systemId"]),A=$}else throw new Error("Not implemented yet: ".concat(b.type));return A.startIndex=b.startIndex,A.endIndex=b.endIndex,b.sourceCodeLocation!=null&&(A.sourceCodeLocation=b.sourceCodeLocation),A}v.cloneNode=T;function u(b){for(var E=b.map(function(R){return T(R,!0)}),A=1;A<E.length;A++)E[A].prev=E[A-1],E[A-1].next=E[A];return E}},34921:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.getFeed=void 0;var r=t(72178),n=t(55355);function s(I){var F=k(w,I);return F?F.name==="feed"?a(F):c(F):null}v.getFeed=s;function a(I){var F,U=I.children,B={type:"atom",items:(0,n.getElementsByTagName)("entry",U).map(function(x){var T,u=x.children,b={media:d(u)};C(b,"id","id",u),C(b,"title","title",u);var E=(T=k("link",u))===null||T===void 0?void 0:T.attribs.href;E&&(b.link=E);var A=M("summary",u)||M("content",u);A&&(b.description=A);var R=M("updated",u);return R&&(b.pubDate=new Date(R)),b})};C(B,"id","id",U),C(B,"title","title",U);var N=(F=k("link",U))===null||F===void 0?void 0:F.attribs.href;N&&(B.link=N),C(B,"description","subtitle",U);var D=M("updated",U);return D&&(B.updated=new Date(D)),C(B,"author","email",U,!0),B}function c(I){var F,U,B=(U=(F=k("channel",I.children))===null||F===void 0?void 0:F.children)!==null&&U!==void 0?U:[],N={type:I.name.substr(0,3),id:"",items:(0,n.getElementsByTagName)("item",I.children).map(function(x){var T=x.children,u={media:d(T)};C(u,"id","guid",T),C(u,"title","title",T),C(u,"link","link",T),C(u,"description","description",T);var b=M("pubDate",T)||M("dc:date",T);return b&&(u.pubDate=new Date(b)),u})};C(N,"title","title",B),C(N,"link","link",B),C(N,"description","description",B);var D=M("lastBuildDate",B);return D&&(N.updated=new Date(D)),C(N,"author","managingEditor",B,!0),N}var h=["url","type","lang"],p=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function d(I){return(0,n.getElementsByTagName)("media:content",I).map(function(F){for(var U=F.attribs,B={medium:U.medium,isDefault:!!U.isDefault},N=0,D=h;N<D.length;N++){var x=D[N];U[x]&&(B[x]=U[x])}for(var T=0,u=p;T<u.length;T++){var x=u[T];U[x]&&(B[x]=parseInt(U[x],10))}return U.expression&&(B.expression=U.expression),B})}function k(I,F){return(0,n.getElementsByTagName)(I,F,!0,1)[0]}function M(I,F,U){return U===void 0&&(U=!1),(0,r.textContent)((0,n.getElementsByTagName)(I,F,U,1)).trim()}function C(I,F,U,B,N){N===void 0&&(N=!1);var D=M(U,B,N);D&&(I[F]=D)}function w(I){return I==="rss"||I==="feed"||I==="rdf:RDF"}},99256:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.uniqueSort=v.compareDocumentPosition=v.DocumentPosition=v.removeSubsets=void 0;var r=t(16102);function n(h){for(var p=h.length;--p>=0;){var d=h[p];if(p>0&&h.lastIndexOf(d,p-1)>=0){h.splice(p,1);continue}for(var k=d.parent;k;k=k.parent)if(h.includes(k)){h.splice(p,1);break}}return h}v.removeSubsets=n;var s;(function(h){h[h.DISCONNECTED=1]="DISCONNECTED",h[h.PRECEDING=2]="PRECEDING",h[h.FOLLOWING=4]="FOLLOWING",h[h.CONTAINS=8]="CONTAINS",h[h.CONTAINED_BY=16]="CONTAINED_BY"})(s=v.DocumentPosition||(v.DocumentPosition={}));function a(h,p){var d=[],k=[];if(h===p)return 0;for(var M=(0,r.hasChildren)(h)?h:h.parent;M;)d.unshift(M),M=M.parent;for(M=(0,r.hasChildren)(p)?p:p.parent;M;)k.unshift(M),M=M.parent;for(var C=Math.min(d.length,k.length),w=0;w<C&&d[w]===k[w];)w++;if(w===0)return s.DISCONNECTED;var I=d[w-1],F=I.children,U=d[w],B=k[w];return F.indexOf(U)>F.indexOf(B)?I===p?s.FOLLOWING|s.CONTAINED_BY:s.FOLLOWING:I===h?s.PRECEDING|s.CONTAINS:s.PRECEDING}v.compareDocumentPosition=a;function c(h){return h=h.filter(function(p,d,k){return!k.includes(p,d+1)}),h.sort(function(p,d){var k=a(p,d);return k&s.PRECEDING?-1:k&s.FOLLOWING?1:0}),h}v.uniqueSort=c},43992:function(Z,v,t){"use strict";var r=this&&this.__createBinding||(Object.create?function(a,c,h,p){p===void 0&&(p=h);var d=Object.getOwnPropertyDescriptor(c,h);(!d||("get"in d?!c.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return c[h]}}),Object.defineProperty(a,p,d)}:function(a,c,h,p){p===void 0&&(p=h),a[p]=c[h]}),n=this&&this.__exportStar||function(a,c){for(var h in a)h!=="default"&&!Object.prototype.hasOwnProperty.call(c,h)&&r(c,a,h)};Object.defineProperty(v,"__esModule",{value:!0}),v.hasChildren=v.isDocument=v.isComment=v.isText=v.isCDATA=v.isTag=void 0,n(t(72178),v),n(t(61699),v),n(t(26167),v),n(t(90400),v),n(t(55355),v),n(t(99256),v),n(t(34921),v);var s=t(16102);Object.defineProperty(v,"isTag",{enumerable:!0,get:function(){return s.isTag}}),Object.defineProperty(v,"isCDATA",{enumerable:!0,get:function(){return s.isCDATA}}),Object.defineProperty(v,"isText",{enumerable:!0,get:function(){return s.isText}}),Object.defineProperty(v,"isComment",{enumerable:!0,get:function(){return s.isComment}}),Object.defineProperty(v,"isDocument",{enumerable:!0,get:function(){return s.isDocument}}),Object.defineProperty(v,"hasChildren",{enumerable:!0,get:function(){return s.hasChildren}})},55355:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.getElementsByTagType=v.getElementsByTagName=v.getElementById=v.getElements=v.testElement=void 0;var r=t(16102),n=t(90400),s={tag_name:function(w){return typeof w=="function"?function(I){return(0,r.isTag)(I)&&w(I.name)}:w==="*"?r.isTag:function(I){return(0,r.isTag)(I)&&I.name===w}},tag_type:function(w){return typeof w=="function"?function(I){return w(I.type)}:function(I){return I.type===w}},tag_contains:function(w){return typeof w=="function"?function(I){return(0,r.isText)(I)&&w(I.data)}:function(I){return(0,r.isText)(I)&&I.data===w}}};function a(w,I){return typeof I=="function"?function(F){return(0,r.isTag)(F)&&I(F.attribs[w])}:function(F){return(0,r.isTag)(F)&&F.attribs[w]===I}}function c(w,I){return function(F){return w(F)||I(F)}}function h(w){var I=Object.keys(w).map(function(F){var U=w[F];return Object.prototype.hasOwnProperty.call(s,F)?s[F](U):a(F,U)});return I.length===0?null:I.reduce(c)}function p(w,I){var F=h(w);return F?F(I):!0}v.testElement=p;function d(w,I,F,U){U===void 0&&(U=1/0);var B=h(w);return B?(0,n.filter)(B,I,F,U):[]}v.getElements=d;function k(w,I,F){return F===void 0&&(F=!0),Array.isArray(I)||(I=[I]),(0,n.findOne)(a("id",w),I,F)}v.getElementById=k;function M(w,I,F,U){return F===void 0&&(F=!0),U===void 0&&(U=1/0),(0,n.filter)(s.tag_name(w),I,F,U)}v.getElementsByTagName=M;function C(w,I,F,U){return F===void 0&&(F=!0),U===void 0&&(U=1/0),(0,n.filter)(s.tag_type(w),I,F,U)}v.getElementsByTagType=C},26167:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.prepend=v.prependChild=v.append=v.appendChild=v.replaceElement=v.removeElement=void 0;function t(h){if(h.prev&&(h.prev.next=h.next),h.next&&(h.next.prev=h.prev),h.parent){var p=h.parent.children,d=p.lastIndexOf(h);d>=0&&p.splice(d,1)}h.next=null,h.prev=null,h.parent=null}v.removeElement=t;function r(h,p){var d=p.prev=h.prev;d&&(d.next=p);var k=p.next=h.next;k&&(k.prev=p);var M=p.parent=h.parent;if(M){var C=M.children;C[C.lastIndexOf(h)]=p,h.parent=null}}v.replaceElement=r;function n(h,p){if(t(p),p.next=null,p.parent=h,h.children.push(p)>1){var d=h.children[h.children.length-2];d.next=p,p.prev=d}else p.prev=null}v.appendChild=n;function s(h,p){t(p);var d=h.parent,k=h.next;if(p.next=k,p.prev=h,h.next=p,p.parent=d,k){if(k.prev=p,d){var M=d.children;M.splice(M.lastIndexOf(k),0,p)}}else d&&d.children.push(p)}v.append=s;function a(h,p){if(t(p),p.parent=h,p.prev=null,h.children.unshift(p)!==1){var d=h.children[1];d.prev=p,p.next=d}else p.next=null}v.prependChild=a;function c(h,p){t(p);var d=h.parent;if(d){var k=d.children;k.splice(k.indexOf(h),0,p)}h.prev&&(h.prev.next=p),p.parent=d,p.prev=h.prev,p.next=h,h.prev=p}v.prepend=c},90400:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.findAll=v.existsOne=v.findOne=v.findOneChild=v.find=v.filter=void 0;var r=t(16102);function n(d,k,M,C){return M===void 0&&(M=!0),C===void 0&&(C=1/0),s(d,Array.isArray(k)?k:[k],M,C)}v.filter=n;function s(d,k,M,C){for(var w=[],I=[k],F=[0];;){if(F[0]>=I[0].length){if(F.length===1)return w;I.shift(),F.shift();continue}var U=I[0][F[0]++];if(d(U)&&(w.push(U),--C<=0))return w;M&&(0,r.hasChildren)(U)&&U.children.length>0&&(F.unshift(0),I.unshift(U.children))}}v.find=s;function a(d,k){return k.find(d)}v.findOneChild=a;function c(d,k,M){M===void 0&&(M=!0);for(var C=null,w=0;w<k.length&&!C;w++){var I=k[w];if((0,r.isTag)(I))d(I)?C=I:M&&I.children.length>0&&(C=c(d,I.children,!0));else continue}return C}v.findOne=c;function h(d,k){return k.some(function(M){return(0,r.isTag)(M)&&(d(M)||h(d,M.children))})}v.existsOne=h;function p(d,k){for(var M=[],C=[k],w=[0];;){if(w[0]>=C[0].length){if(C.length===1)return M;C.shift(),w.shift();continue}var I=C[0][w[0]++];(0,r.isTag)(I)&&(d(I)&&M.push(I),I.children.length>0&&(w.unshift(0),C.unshift(I.children)))}}v.findAll=p},72178:function(Z,v,t){"use strict";var r=this&&this.__importDefault||function(M){return M&&M.__esModule?M:{default:M}};Object.defineProperty(v,"__esModule",{value:!0}),v.innerText=v.textContent=v.getText=v.getInnerHTML=v.getOuterHTML=void 0;var n=t(16102),s=r(t(91203)),a=t(99960);function c(M,C){return(0,s.default)(M,C)}v.getOuterHTML=c;function h(M,C){return(0,n.hasChildren)(M)?M.children.map(function(w){return c(w,C)}).join(""):""}v.getInnerHTML=h;function p(M){return Array.isArray(M)?M.map(p).join(""):(0,n.isTag)(M)?M.name==="br"?`
`:p(M.children):(0,n.isCDATA)(M)?p(M.children):(0,n.isText)(M)?M.data:""}v.getText=p;function d(M){return Array.isArray(M)?M.map(d).join(""):(0,n.hasChildren)(M)&&!(0,n.isComment)(M)?d(M.children):(0,n.isText)(M)?M.data:""}v.textContent=d;function k(M){return Array.isArray(M)?M.map(k).join(""):(0,n.hasChildren)(M)&&(M.type===a.ElementType.Tag||(0,n.isCDATA)(M))?k(M.children):(0,n.isText)(M)?M.data:""}v.innerText=k},61699:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.prevElementSibling=v.nextElementSibling=v.getName=v.hasAttrib=v.getAttributeValue=v.getSiblings=v.getParent=v.getChildren=void 0;var r=t(16102);function n(M){return(0,r.hasChildren)(M)?M.children:[]}v.getChildren=n;function s(M){return M.parent||null}v.getParent=s;function a(M){var C,w,I=s(M);if(I!=null)return n(I);for(var F=[M],U=M.prev,B=M.next;U!=null;)F.unshift(U),C=U,U=C.prev;for(;B!=null;)F.push(B),w=B,B=w.next;return F}v.getSiblings=a;function c(M,C){var w;return(w=M.attribs)===null||w===void 0?void 0:w[C]}v.getAttributeValue=c;function h(M,C){return M.attribs!=null&&Object.prototype.hasOwnProperty.call(M.attribs,C)&&M.attribs[C]!=null}v.hasAttrib=h;function p(M){return M.name}v.getName=p;function d(M){for(var C,w=M.next;w!==null&&!(0,r.isTag)(w);)C=w,w=C.next;return w}v.nextElementSibling=d;function k(M){for(var C,w=M.prev;w!==null&&!(0,r.isTag)(w);)C=w,w=C.prev;return w}v.prevElementSibling=k},18172:(Z,v,t)=>{"use strict";t.d(v,{P2:()=>ut,Uy:()=>ot,Vk:()=>Ie,ZP:()=>ae,_x:()=>Wt,mv:()=>n});function r(ne){for(var ge=arguments.length,ye=Array(ge>1?ge-1:0),Xe=1;Xe<ge;Xe++)ye[Xe-1]=arguments[Xe];if(!1)var Ze,lt;throw Error("[Immer] minified error nr: "+ne+(ye.length?" "+ye.map(function(_t){return"'"+_t+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function n(ne){return!!ne&&!!ne[It]}function s(ne){var ge;return!!ne&&(function(ye){if(!ye||typeof ye!="object")return!1;var Xe=Object.getPrototypeOf(ye);if(Xe===null)return!0;var Ze=Object.hasOwnProperty.call(Xe,"constructor")&&Xe.constructor;return Ze===Object||typeof Ze=="function"&&Function.toString.call(Ze)===Be}(ne)||Array.isArray(ne)||!!ne[bt]||!!(!((ge=ne.constructor)===null||ge===void 0)&&ge[bt])||C(ne)||w(ne))}function a(ne){return n(ne)||r(23,ne),ne[It].t}function c(ne,ge,ye){ye===void 0&&(ye=!1),h(ne)===0?(ye?Object.keys:je)(ne).forEach(function(Xe){ye&&typeof Xe=="symbol"||ge(Xe,ne[Xe],ne)}):ne.forEach(function(Xe,Ze){return ge(Ze,Xe,ne)})}function h(ne){var ge=ne[It];return ge?ge.i>3?ge.i-4:ge.i:Array.isArray(ne)?1:C(ne)?2:w(ne)?3:0}function p(ne,ge){return h(ne)===2?ne.has(ge):Object.prototype.hasOwnProperty.call(ne,ge)}function d(ne,ge){return h(ne)===2?ne.get(ge):ne[ge]}function k(ne,ge,ye){var Xe=h(ne);Xe===2?ne.set(ge,ye):Xe===3?ne.add(ye):ne[ge]=ye}function M(ne,ge){return ne===ge?ne!==0||1/ne==1/ge:ne!=ne&&ge!=ge}function C(ne){return Ct&&ne instanceof Map}function w(ne){return ln&&ne instanceof Set}function I(ne){return ne.o||ne.t}function F(ne){if(Array.isArray(ne))return Array.prototype.slice.call(ne);var ge=$t(ne);delete ge[It];for(var ye=je(ge),Xe=0;Xe<ye.length;Xe++){var Ze=ye[Xe],lt=ge[Ze];lt.writable===!1&&(lt.writable=!0,lt.configurable=!0),(lt.get||lt.set)&&(ge[Ze]={configurable:!0,writable:!0,enumerable:lt.enumerable,value:ne[Ze]})}return Object.create(Object.getPrototypeOf(ne),ge)}function U(ne,ge){return ge===void 0&&(ge=!1),N(ne)||n(ne)||!s(ne)||(h(ne)>1&&(ne.set=ne.add=ne.clear=ne.delete=B),Object.freeze(ne),ge&&c(ne,function(ye,Xe){return U(Xe,!0)},!0)),ne}function B(){r(2)}function N(ne){return ne==null||typeof ne!="object"||Object.isFrozen(ne)}function D(ne){var ge=et[ne];return ge||r(18,ne),ge}function x(ne,ge){et[ne]||(et[ne]=ge)}function T(){return Ye}function u(ne,ge){ge&&(D("Patches"),ne.u=[],ne.s=[],ne.v=ge)}function b(ne){E(ne),ne.p.forEach(R),ne.p=null}function E(ne){ne===Ye&&(Ye=ne.l)}function A(ne){return Ye={p:[],l:Ye,h:ne,m:!0,_:0}}function R(ne){var ge=ne[It];ge.i===0||ge.i===1?ge.j():ge.O=!0}function H(ne,ge){ge._=ge.p.length;var ye=ge.p[0],Xe=ne!==void 0&&ne!==ye;return ge.h.g||D("ES5").S(ge,ne,Xe),Xe?(ye[It].P&&(b(ge),r(4)),s(ne)&&(ne=z(ge,ne),ge.l||$(ge,ne)),ge.u&&D("Patches").M(ye[It].t,ne,ge.u,ge.s)):ne=z(ge,ye,[]),b(ge),ge.u&&ge.v(ge.u,ge.s),ne!==Qe?ne:void 0}function z(ne,ge,ye){if(N(ge))return ge;var Xe=ge[It];if(!Xe)return c(ge,function(zt,Vt){return V(ne,Xe,ge,zt,Vt,ye)},!0),ge;if(Xe.A!==ne)return ge;if(!Xe.P)return $(ne,Xe.t,!0),Xe.t;if(!Xe.I){Xe.I=!0,Xe.A._--;var Ze=Xe.i===4||Xe.i===5?Xe.o=F(Xe.k):Xe.o,lt=Ze,_t=!1;Xe.i===3&&(lt=new Set(Ze),Ze.clear(),_t=!0),c(lt,function(zt,Vt){return V(ne,Xe,Ze,zt,Vt,ye,_t)}),$(ne,Ze,!1),ye&&ne.u&&D("Patches").N(Xe,ye,ne.u,ne.s)}return Xe.o}function V(ne,ge,ye,Xe,Ze,lt,_t){if(n(Ze)){var zt=z(ne,Ze,lt&&ge&&ge.i!==3&&!p(ge.R,Xe)?lt.concat(Xe):void 0);if(k(ye,Xe,zt),!n(zt))return;ne.m=!1}else _t&&ye.add(Ze);if(s(Ze)&&!N(Ze)){if(!ne.h.D&&ne._<1)return;z(ne,Ze),ge&&ge.A.l||$(ne,Ze)}}function $(ne,ge,ye){ye===void 0&&(ye=!1),!ne.l&&ne.h.D&&ne.m&&U(ge,ye)}function ee(ne,ge){var ye=ne[It];return(ye?I(ye):ne)[ge]}function q(ne,ge){if(ge in ne)for(var ye=Object.getPrototypeOf(ne);ye;){var Xe=Object.getOwnPropertyDescriptor(ye,ge);if(Xe)return Xe;ye=Object.getPrototypeOf(ye)}}function oe(ne){ne.P||(ne.P=!0,ne.l&&oe(ne.l))}function X(ne){ne.o||(ne.o=F(ne.t))}function pe(ne,ge,ye){var Xe=C(ge)?D("MapSet").F(ge,ye):w(ge)?D("MapSet").T(ge,ye):ne.g?function(Ze,lt){var _t=Array.isArray(Ze),zt={i:_t?1:0,A:lt?lt.A:T(),P:!1,I:!1,R:{},l:lt,t:Ze,k:null,o:null,j:null,C:!1},Vt=zt,sn=Kt;_t&&(Vt=[zt],sn=kn);var yn=Proxy.revocable(Vt,sn),dr=yn.revoke,hr=yn.proxy;return zt.k=hr,zt.j=dr,hr}(ge,ye):D("ES5").J(ge,ye);return(ye?ye.A:T()).p.push(Xe),Xe}function Ie(ne){return n(ne)||r(22,ne),function ge(ye){if(!s(ye))return ye;var Xe,Ze=ye[It],lt=h(ye);if(Ze){if(!Ze.P&&(Ze.i<4||!D("ES5").K(Ze)))return Ze.t;Ze.I=!0,Xe=se(ye,lt),Ze.I=!1}else Xe=se(ye,lt);return c(Xe,function(_t,zt){Ze&&d(Ze.t,_t)===zt||k(Xe,_t,ge(zt))}),lt===3?new Set(Xe):Xe}(ne)}function se(ne,ge){switch(ge){case 2:return new Map(ne);case 3:return Array.from(ne)}return F(ne)}function be(){function ne(_t,zt){var Vt=lt[_t];return Vt?Vt.enumerable=zt:lt[_t]=Vt={configurable:!0,enumerable:zt,get:function(){var sn=this[It];return Kt.get(sn,_t)},set:function(sn){var yn=this[It];Kt.set(yn,_t,sn)}},Vt}function ge(_t){for(var zt=_t.length-1;zt>=0;zt--){var Vt=_t[zt][It];if(!Vt.P)switch(Vt.i){case 5:Xe(Vt)&&oe(Vt);break;case 4:ye(Vt)&&oe(Vt)}}}function ye(_t){for(var zt=_t.t,Vt=_t.k,sn=je(Vt),yn=sn.length-1;yn>=0;yn--){var dr=sn[yn];if(dr!==It){var hr=zt[dr];if(hr===void 0&&!p(zt,dr))return!0;var Mr=Vt[dr],rr=Mr&&Mr[It];if(rr?rr.t!==hr:!M(Mr,hr))return!0}}var Cr=!!zt[It];return sn.length!==je(zt).length+(Cr?0:1)}function Xe(_t){var zt=_t.k;if(zt.length!==_t.t.length)return!0;var Vt=Object.getOwnPropertyDescriptor(zt,zt.length-1);if(Vt&&!Vt.get)return!0;for(var sn=0;sn<zt.length;sn++)if(!zt.hasOwnProperty(sn))return!0;return!1}function Ze(_t){_t.O&&r(3,JSON.stringify(I(_t)))}var lt={};x("ES5",{J:function(_t,zt){var Vt=Array.isArray(_t),sn=function(dr,hr){if(dr){for(var Mr=Array(hr.length),rr=0;rr<hr.length;rr++)Object.defineProperty(Mr,""+rr,ne(rr,!0));return Mr}var Cr=$t(hr);delete Cr[It];for(var Ur=je(Cr),$r=0;$r<Ur.length;$r++){var li=Ur[$r];Cr[li]=ne(li,dr||!!Cr[li].enumerable)}return Object.create(Object.getPrototypeOf(hr),Cr)}(Vt,_t),yn={i:Vt?5:4,A:zt?zt.A:T(),P:!1,I:!1,R:{},l:zt,t:_t,k:sn,o:null,O:!1,C:!1};return Object.defineProperty(sn,It,{value:yn,writable:!0}),sn},S:function(_t,zt,Vt){Vt?n(zt)&&zt[It].A===_t&&ge(_t.p):(_t.u&&function sn(yn){if(yn&&typeof yn=="object"){var dr=yn[It];if(dr){var hr=dr.t,Mr=dr.k,rr=dr.R,Cr=dr.i;if(Cr===4)c(Mr,function(Bt){Bt!==It&&(hr[Bt]!==void 0||p(hr,Bt)?rr[Bt]||sn(Mr[Bt]):(rr[Bt]=!0,oe(dr)))}),c(hr,function(Bt){Mr[Bt]!==void 0||p(Mr,Bt)||(rr[Bt]=!1,oe(dr))});else if(Cr===5){if(Xe(dr)&&(oe(dr),rr.length=!0),Mr.length<hr.length)for(var Ur=Mr.length;Ur<hr.length;Ur++)rr[Ur]=!1;else for(var $r=hr.length;$r<Mr.length;$r++)rr[$r]=!0;for(var li=Math.min(Mr.length,hr.length),ri=0;ri<li;ri++)Mr.hasOwnProperty(ri)||(rr[ri]=!0),rr[ri]===void 0&&sn(Mr[ri])}}}}(_t.p[0]),ge(_t.p))},K:function(_t){return _t.i===4?ye(_t):Xe(_t)}})}function fe(){function ne(Xe){if(!s(Xe))return Xe;if(Array.isArray(Xe))return Xe.map(ne);if(C(Xe))return new Map(Array.from(Xe.entries()).map(function(_t){return[_t[0],ne(_t[1])]}));if(w(Xe))return new Set(Array.from(Xe).map(ne));var Ze=Object.create(Object.getPrototypeOf(Xe));for(var lt in Xe)Ze[lt]=ne(Xe[lt]);return p(Xe,bt)&&(Ze[bt]=Xe[bt]),Ze}function ge(Xe){return n(Xe)?ne(Xe):Xe}var ye="add";x("Patches",{$:function(Xe,Ze){return Ze.forEach(function(lt){for(var _t=lt.path,zt=lt.op,Vt=Xe,sn=0;sn<_t.length-1;sn++){var yn=h(Vt),dr=""+_t[sn];yn!==0&&yn!==1||dr!=="__proto__"&&dr!=="constructor"||r(24),typeof Vt=="function"&&dr==="prototype"&&r(24),typeof(Vt=d(Vt,dr))!="object"&&r(15,_t.join("/"))}var hr=h(Vt),Mr=ne(lt.value),rr=_t[_t.length-1];switch(zt){case"replace":switch(hr){case 2:return Vt.set(rr,Mr);case 3:r(16);default:return Vt[rr]=Mr}case ye:switch(hr){case 1:return rr==="-"?Vt.push(Mr):Vt.splice(rr,0,Mr);case 2:return Vt.set(rr,Mr);case 3:return Vt.add(Mr);default:return Vt[rr]=Mr}case"remove":switch(hr){case 1:return Vt.splice(rr,1);case 2:return Vt.delete(rr);case 3:return Vt.delete(lt.value);default:return delete Vt[rr]}default:r(17,zt)}}),Xe},N:function(Xe,Ze,lt,_t){switch(Xe.i){case 0:case 4:case 2:return function(zt,Vt,sn,yn){var dr=zt.t,hr=zt.o;c(zt.R,function(Mr,rr){var Cr=d(dr,Mr),Ur=d(hr,Mr),$r=rr?p(dr,Mr)?"replace":ye:"remove";if(Cr!==Ur||$r!=="replace"){var li=Vt.concat(Mr);sn.push($r==="remove"?{op:$r,path:li}:{op:$r,path:li,value:Ur}),yn.push($r===ye?{op:"remove",path:li}:$r==="remove"?{op:ye,path:li,value:ge(Cr)}:{op:"replace",path:li,value:ge(Cr)})}})}(Xe,Ze,lt,_t);case 5:case 1:return function(zt,Vt,sn,yn){var dr=zt.t,hr=zt.R,Mr=zt.o;if(Mr.length<dr.length){var rr=[Mr,dr];dr=rr[0],Mr=rr[1];var Cr=[yn,sn];sn=Cr[0],yn=Cr[1]}for(var Ur=0;Ur<dr.length;Ur++)if(hr[Ur]&&Mr[Ur]!==dr[Ur]){var $r=Vt.concat([Ur]);sn.push({op:"replace",path:$r,value:ge(Mr[Ur])}),yn.push({op:"replace",path:$r,value:ge(dr[Ur])})}for(var li=dr.length;li<Mr.length;li++){var ri=Vt.concat([li]);sn.push({op:ye,path:ri,value:ge(Mr[li])})}dr.length<Mr.length&&yn.push({op:"replace",path:Vt.concat(["length"]),value:dr.length})}(Xe,Ze,lt,_t);case 3:return function(zt,Vt,sn,yn){var dr=zt.t,hr=zt.o,Mr=0;dr.forEach(function(rr){if(!hr.has(rr)){var Cr=Vt.concat([Mr]);sn.push({op:"remove",path:Cr,value:rr}),yn.unshift({op:ye,path:Cr,value:rr})}Mr++}),Mr=0,hr.forEach(function(rr){if(!dr.has(rr)){var Cr=Vt.concat([Mr]);sn.push({op:ye,path:Cr,value:rr}),yn.unshift({op:"remove",path:Cr,value:rr})}Mr++})}(Xe,Ze,lt,_t)}},M:function(Xe,Ze,lt,_t){lt.push({op:"replace",path:[],value:Ze===Qe?void 0:Ze}),_t.push({op:"replace",path:[],value:Xe})}})}function ue(){function ne(zt,Vt){function sn(){this.constructor=zt}Ze(zt,Vt),zt.prototype=(sn.prototype=Vt.prototype,new sn)}function ge(zt){zt.o||(zt.R=new Map,zt.o=new Map(zt.t))}function ye(zt){zt.o||(zt.o=new Set,zt.t.forEach(function(Vt){if(s(Vt)){var sn=pe(zt.A.h,Vt,zt);zt.p.set(Vt,sn),zt.o.add(sn)}else zt.o.add(Vt)}))}function Xe(zt){zt.O&&r(3,JSON.stringify(I(zt)))}var Ze=function(zt,Vt){return(Ze=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(sn,yn){sn.__proto__=yn}||function(sn,yn){for(var dr in yn)yn.hasOwnProperty(dr)&&(sn[dr]=yn[dr])})(zt,Vt)},lt=function(){function zt(sn,yn){return this[It]={i:2,l:yn,A:yn?yn.A:T(),P:!1,I:!1,o:void 0,R:void 0,t:sn,k:this,C:!1,O:!1},this}ne(zt,Map);var Vt=zt.prototype;return Object.defineProperty(Vt,"size",{get:function(){return I(this[It]).size}}),Vt.has=function(sn){return I(this[It]).has(sn)},Vt.set=function(sn,yn){var dr=this[It];return Xe(dr),I(dr).has(sn)&&I(dr).get(sn)===yn||(ge(dr),oe(dr),dr.R.set(sn,!0),dr.o.set(sn,yn),dr.R.set(sn,!0)),this},Vt.delete=function(sn){if(!this.has(sn))return!1;var yn=this[It];return Xe(yn),ge(yn),oe(yn),yn.t.has(sn)?yn.R.set(sn,!1):yn.R.delete(sn),yn.o.delete(sn),!0},Vt.clear=function(){var sn=this[It];Xe(sn),I(sn).size&&(ge(sn),oe(sn),sn.R=new Map,c(sn.t,function(yn){sn.R.set(yn,!1)}),sn.o.clear())},Vt.forEach=function(sn,yn){var dr=this;I(this[It]).forEach(function(hr,Mr){sn.call(yn,dr.get(Mr),Mr,dr)})},Vt.get=function(sn){var yn=this[It];Xe(yn);var dr=I(yn).get(sn);if(yn.I||!s(dr)||dr!==yn.t.get(sn))return dr;var hr=pe(yn.A.h,dr,yn);return ge(yn),yn.o.set(sn,hr),hr},Vt.keys=function(){return I(this[It]).keys()},Vt.values=function(){var sn,yn=this,dr=this.keys();return(sn={})[mn]=function(){return yn.values()},sn.next=function(){var hr=dr.next();return hr.done?hr:{done:!1,value:yn.get(hr.value)}},sn},Vt.entries=function(){var sn,yn=this,dr=this.keys();return(sn={})[mn]=function(){return yn.entries()},sn.next=function(){var hr=dr.next();if(hr.done)return hr;var Mr=yn.get(hr.value);return{done:!1,value:[hr.value,Mr]}},sn},Vt[mn]=function(){return this.entries()},zt}(),_t=function(){function zt(sn,yn){return this[It]={i:3,l:yn,A:yn?yn.A:T(),P:!1,I:!1,o:void 0,t:sn,k:this,p:new Map,O:!1,C:!1},this}ne(zt,Set);var Vt=zt.prototype;return Object.defineProperty(Vt,"size",{get:function(){return I(this[It]).size}}),Vt.has=function(sn){var yn=this[It];return Xe(yn),yn.o?!!yn.o.has(sn)||!(!yn.p.has(sn)||!yn.o.has(yn.p.get(sn))):yn.t.has(sn)},Vt.add=function(sn){var yn=this[It];return Xe(yn),this.has(sn)||(ye(yn),oe(yn),yn.o.add(sn)),this},Vt.delete=function(sn){if(!this.has(sn))return!1;var yn=this[It];return Xe(yn),ye(yn),oe(yn),yn.o.delete(sn)||!!yn.p.has(sn)&&yn.o.delete(yn.p.get(sn))},Vt.clear=function(){var sn=this[It];Xe(sn),I(sn).size&&(ye(sn),oe(sn),sn.o.clear())},Vt.values=function(){var sn=this[It];return Xe(sn),ye(sn),sn.o.values()},Vt.entries=function(){var sn=this[It];return Xe(sn),ye(sn),sn.o.entries()},Vt.keys=function(){return this.values()},Vt[mn]=function(){return this.values()},Vt.forEach=function(sn,yn){for(var dr=this.values(),hr=dr.next();!hr.done;)sn.call(yn,hr.value,hr.value,this),hr=dr.next()},zt}();x("MapSet",{F:function(zt,Vt){return new lt(zt,Vt)},T:function(zt,Vt){return new _t(zt,Vt)}})}function we(){be(),ue(),fe()}function Me(ne){return ne}function Ce(ne){return ne}var Ne,Ye,mt=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ct=typeof Map<"u",ln=typeof Set<"u",$e=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Qe=mt?Symbol.for("immer-nothing"):((Ne={})["immer-nothing"]=!0,Ne),bt=mt?Symbol.for("immer-draftable"):"__$immer_draftable",It=mt?Symbol.for("immer-state"):"__$immer_state",mn=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",un={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(ne){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+ne},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(ne){return"Cannot apply patch, path doesn't resolve: "+ne},16:'Sets cannot have "replace" patches.',17:function(ne){return"Unsupported patch operation: "+ne},18:function(ne){return"The plugin for '"+ne+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+ne+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(ne){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+ne+"'"},22:function(ne){return"'current' expects a draft, got: "+ne},23:function(ne){return"'original' expects a draft, got: "+ne},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Be=""+Object.prototype.constructor,je=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(ne){return Object.getOwnPropertyNames(ne).concat(Object.getOwnPropertySymbols(ne))}:Object.getOwnPropertyNames,$t=Object.getOwnPropertyDescriptors||function(ne){var ge={};return je(ne).forEach(function(ye){ge[ye]=Object.getOwnPropertyDescriptor(ne,ye)}),ge},et={},Kt={get:function(ne,ge){if(ge===It)return ne;var ye=I(ne);if(!p(ye,ge))return function(Ze,lt,_t){var zt,Vt=q(lt,_t);return Vt?"value"in Vt?Vt.value:(zt=Vt.get)===null||zt===void 0?void 0:zt.call(Ze.k):void 0}(ne,ye,ge);var Xe=ye[ge];return ne.I||!s(Xe)?Xe:Xe===ee(ne.t,ge)?(X(ne),ne.o[ge]=pe(ne.A.h,Xe,ne)):Xe},has:function(ne,ge){return ge in I(ne)},ownKeys:function(ne){return Reflect.ownKeys(I(ne))},set:function(ne,ge,ye){var Xe=q(I(ne),ge);if(Xe?.set)return Xe.set.call(ne.k,ye),!0;if(!ne.P){var Ze=ee(I(ne),ge),lt=Ze?.[It];if(lt&&lt.t===ye)return ne.o[ge]=ye,ne.R[ge]=!1,!0;if(M(ye,Ze)&&(ye!==void 0||p(ne.t,ge)))return!0;X(ne),oe(ne)}return ne.o[ge]===ye&&(ye!==void 0||ge in ne.o)||Number.isNaN(ye)&&Number.isNaN(ne.o[ge])||(ne.o[ge]=ye,ne.R[ge]=!0),!0},deleteProperty:function(ne,ge){return ee(ne.t,ge)!==void 0||ge in ne.t?(ne.R[ge]=!1,X(ne),oe(ne)):delete ne.R[ge],ne.o&&delete ne.o[ge],!0},getOwnPropertyDescriptor:function(ne,ge){var ye=I(ne),Xe=Reflect.getOwnPropertyDescriptor(ye,ge);return Xe&&{writable:!0,configurable:ne.i!==1||ge!=="length",enumerable:Xe.enumerable,value:ye[ge]}},defineProperty:function(){r(11)},getPrototypeOf:function(ne){return Object.getPrototypeOf(ne.t)},setPrototypeOf:function(){r(12)}},kn={};c(Kt,function(ne,ge){kn[ne]=function(){return arguments[0]=arguments[0][0],ge.apply(this,arguments)}}),kn.deleteProperty=function(ne,ge){return kn.set.call(this,ne,ge,void 0)},kn.set=function(ne,ge,ye){return Kt.set.call(this,ne[0],ge,ye,ne[0])};var Tn=function(){function ne(ye){var Xe=this;this.g=$e,this.D=!0,this.produce=function(Ze,lt,_t){if(typeof Ze=="function"&&typeof lt!="function"){var zt=lt;lt=Ze;var Vt=Xe;return function(Cr){var Ur=this;Cr===void 0&&(Cr=zt);for(var $r=arguments.length,li=Array($r>1?$r-1:0),ri=1;ri<$r;ri++)li[ri-1]=arguments[ri];return Vt.produce(Cr,function(Bt){var Et;return(Et=lt).call.apply(Et,[Ur,Bt].concat(li))})}}var sn;if(typeof lt!="function"&&r(6),_t!==void 0&&typeof _t!="function"&&r(7),s(Ze)){var yn=A(Xe),dr=pe(Xe,Ze,void 0),hr=!0;try{sn=lt(dr),hr=!1}finally{hr?b(yn):E(yn)}return typeof Promise<"u"&&sn instanceof Promise?sn.then(function(Cr){return u(yn,_t),H(Cr,yn)},function(Cr){throw b(yn),Cr}):(u(yn,_t),H(sn,yn))}if(!Ze||typeof Ze!="object"){if((sn=lt(Ze))===void 0&&(sn=Ze),sn===Qe&&(sn=void 0),Xe.D&&U(sn,!0),_t){var Mr=[],rr=[];D("Patches").M(Ze,sn,Mr,rr),_t(Mr,rr)}return sn}r(21,Ze)},this.produceWithPatches=function(Ze,lt){if(typeof Ze=="function")return function(sn){for(var yn=arguments.length,dr=Array(yn>1?yn-1:0),hr=1;hr<yn;hr++)dr[hr-1]=arguments[hr];return Xe.produceWithPatches(sn,function(Mr){return Ze.apply(void 0,[Mr].concat(dr))})};var _t,zt,Vt=Xe.produce(Ze,lt,function(sn,yn){_t=sn,zt=yn});return typeof Promise<"u"&&Vt instanceof Promise?Vt.then(function(sn){return[sn,_t,zt]}):[Vt,_t,zt]},typeof ye?.useProxies=="boolean"&&this.setUseProxies(ye.useProxies),typeof ye?.autoFreeze=="boolean"&&this.setAutoFreeze(ye.autoFreeze)}var ge=ne.prototype;return ge.createDraft=function(ye){s(ye)||r(8),n(ye)&&(ye=Ie(ye));var Xe=A(this),Ze=pe(this,ye,void 0);return Ze[It].C=!0,E(Xe),Ze},ge.finishDraft=function(ye,Xe){var Ze=ye&&ye[It],lt=Ze.A;return u(lt,Xe),H(void 0,lt)},ge.setAutoFreeze=function(ye){this.D=ye},ge.setUseProxies=function(ye){ye&&!$e&&r(20),this.g=ye},ge.applyPatches=function(ye,Xe){var Ze;for(Ze=Xe.length-1;Ze>=0;Ze--){var lt=Xe[Ze];if(lt.path.length===0&&lt.op==="replace"){ye=lt.value;break}}Ze>-1&&(Xe=Xe.slice(Ze+1));var _t=D("Patches").$;return n(ye)?_t(ye,Xe):this.produce(ye,function(zt){return _t(zt,Xe)})},ne}(),ht=new Tn,ot=ht.produce,Je=ht.produceWithPatches.bind(ht),wt=ht.setAutoFreeze.bind(ht),ft=ht.setUseProxies.bind(ht),vn=ht.applyPatches.bind(ht),ut=ht.createDraft.bind(ht),Wt=ht.finishDraft.bind(ht);const ae=ot},16284:(Z,v,t)=>{"use strict";t.d(v,{C:()=>k});var r=t(97582),n=t(39943),s=t(95957),a=t(61092);function c(M,C){return C?(0,r.pi)((0,r.pi)((0,r.pi)({},M||{}),C||{}),Object.keys(M).reduce(function(w,I){return w[I]=(0,r.pi)((0,r.pi)({},M[I]),C[I]||{}),w},{})):M}function h(M,C){return C?Object.keys(M).reduce(function(w,I){return w[I]=c(M[I],C[I]),w},(0,r.pi)({},M)):M}function p(M){return{create:function(){return{get:function(C){return M[C]},set:function(C,w){M[C]=w}}}}}function d(M){return M===void 0&&(M={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,s.H)(function(){for(var C,w=[],I=0;I<arguments.length;I++)w[I]=arguments[I];return new((C=Intl.NumberFormat).bind.apply(C,(0,r.ev)([void 0],w,!1)))},{cache:p(M.number),strategy:s.A.variadic}),getDateTimeFormat:(0,s.H)(function(){for(var C,w=[],I=0;I<arguments.length;I++)w[I]=arguments[I];return new((C=Intl.DateTimeFormat).bind.apply(C,(0,r.ev)([void 0],w,!1)))},{cache:p(M.dateTime),strategy:s.A.variadic}),getPluralRules:(0,s.H)(function(){for(var C,w=[],I=0;I<arguments.length;I++)w[I]=arguments[I];return new((C=Intl.PluralRules).bind.apply(C,(0,r.ev)([void 0],w,!1)))},{cache:p(M.pluralRules),strategy:s.A.variadic})}}var k=function(){function M(C,w,I,F){w===void 0&&(w=M.defaultLocale);var U=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(x){var T=U.formatToParts(x);if(T.length===1)return T[0].value;var u=T.reduce(function(b,E){return!b.length||E.type!==a.du.literal||typeof b[b.length-1]!="string"?b.push(E.value):b[b.length-1]+=E.value,b},[]);return u.length<=1?u[0]||"":u},this.formatToParts=function(x){return(0,a.FK)(U.ast,U.locales,U.formatters,U.formats,x,void 0,U.message)},this.resolvedOptions=function(){var x;return{locale:((x=U.resolvedLocale)===null||x===void 0?void 0:x.toString())||Intl.NumberFormat.supportedLocalesOf(U.locales)[0]}},this.getAst=function(){return U.ast},this.locales=w,this.resolvedLocale=M.resolveLocale(w),typeof C=="string"){if(this.message=C,!M.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var B=F||{},N=B.formatters,D=(0,r._T)(B,["formatters"]);this.ast=M.__parse(C,(0,r.pi)((0,r.pi)({},D),{locale:this.resolvedLocale}))}else this.ast=C;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=h(M.formats,I),this.formatters=F&&F.formatters||d(this.formatterCache)}return Object.defineProperty(M,"defaultLocale",{get:function(){return M.memoizedDefaultLocale||(M.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),M.memoizedDefaultLocale},enumerable:!1,configurable:!0}),M.memoizedDefaultLocale=null,M.resolveLocale=function(C){if(!(typeof Intl.Locale>"u")){var w=Intl.NumberFormat.supportedLocalesOf(C);return w.length>0?new Intl.Locale(w[0]):new Intl.Locale(typeof C=="string"?C:C[0])}},M.__parse=n.Qc,M.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},M}()},11050:(Z,v,t)=>{"use strict";t.d(v,{C8:()=>a,HR:()=>h,YR:()=>c,jK:()=>n,u_:()=>s});var r=t(97582),n;(function(p){p.MISSING_VALUE="MISSING_VALUE",p.INVALID_VALUE="INVALID_VALUE",p.MISSING_INTL_API="MISSING_INTL_API"})(n||(n={}));var s=function(p){(0,r.ZT)(d,p);function d(k,M,C){var w=p.call(this,k)||this;return w.code=M,w.originalMessage=C,w}return d.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},d}(Error),a=function(p){(0,r.ZT)(d,p);function d(k,M,C,w){return p.call(this,'Invalid values for "'.concat(k,'": "').concat(M,'". Options are "').concat(Object.keys(C).join('", "'),'"'),n.INVALID_VALUE,w)||this}return d}(s),c=function(p){(0,r.ZT)(d,p);function d(k,M,C){return p.call(this,'Value for "'.concat(k,'" must be of type ').concat(M),n.INVALID_VALUE,C)||this}return d}(s),h=function(p){(0,r.ZT)(d,p);function d(k,M){return p.call(this,'The intl string context variable "'.concat(k,'" was not provided to the string "').concat(M,'"'),n.MISSING_VALUE,M)||this}return d}(s)},61092:(Z,v,t)=>{"use strict";t.d(v,{FK:()=>h,Gt:()=>c,du:()=>s});var r=t(39943),n=t(11050),s;(function(p){p[p.literal=0]="literal",p[p.object=1]="object"})(s||(s={}));function a(p){return p.length<2?p:p.reduce(function(d,k){var M=d[d.length-1];return!M||M.type!==s.literal||k.type!==s.literal?d.push(k):M.value+=k.value,d},[])}function c(p){return typeof p=="function"}function h(p,d,k,M,C,w,I){if(p.length===1&&(0,r.O4)(p[0]))return[{type:s.literal,value:p[0].value}];for(var F=[],U=0,B=p;U<B.length;U++){var N=B[U];if((0,r.O4)(N)){F.push({type:s.literal,value:N.value});continue}if((0,r.yx)(N)){typeof w=="number"&&F.push({type:s.literal,value:k.getNumberFormat(d).format(w)});continue}var D=N.value;if(!(C&&D in C))throw new n.HR(D,I);var x=C[D];if((0,r.VG)(N)){(!x||typeof x=="string"||typeof x=="number")&&(x=typeof x=="string"||typeof x=="number"?String(x):""),F.push({type:typeof x=="string"?s.literal:s.object,value:x});continue}if((0,r.rp)(N)){var T=typeof N.style=="string"?M.date[N.style]:(0,r.Ii)(N.style)?N.style.parsedOptions:void 0;F.push({type:s.literal,value:k.getDateTimeFormat(d,T).format(x)});continue}if((0,r.pe)(N)){var T=typeof N.style=="string"?M.time[N.style]:(0,r.Ii)(N.style)?N.style.parsedOptions:M.time.medium;F.push({type:s.literal,value:k.getDateTimeFormat(d,T).format(x)});continue}if((0,r.uf)(N)){var T=typeof N.style=="string"?M.number[N.style]:(0,r.Wh)(N.style)?N.style.parsedOptions:void 0;T&&T.scale&&(x=x*(T.scale||1)),F.push({type:s.literal,value:k.getNumberFormat(d,T).format(x)});continue}if((0,r.HI)(N)){var u=N.children,b=N.value,E=C[b];if(!c(E))throw new n.YR(b,"function",I);var A=h(u,d,k,M,C,w),R=E(A.map(function(V){return V.value}));Array.isArray(R)||(R=[R]),F.push.apply(F,R.map(function(V){return{type:typeof V=="string"?s.literal:s.object,value:V}}))}if((0,r.Wi)(N)){var H=N.options[x]||N.options.other;if(!H)throw new n.C8(N.value,x,Object.keys(N.options),I);F.push.apply(F,h(H.value,d,k,M,C));continue}if((0,r.Jo)(N)){var H=N.options["=".concat(x)];if(!H){if(!Intl.PluralRules)throw new n.u_(`Intl.PluralRules is not available in this environment.
Try polyfilling it using "@formatjs/intl-pluralrules"
`,n.jK.MISSING_INTL_API,I);var z=k.getPluralRules(d,{type:N.pluralType}).select(x-(N.offset||0));H=N.options[z]||N.options.other}if(!H)throw new n.C8(N.value,x,Object.keys(N.options),I);F.push.apply(F,h(H.value,d,k,M,C,x-(N.offset||0)));continue}}return a(F)}},41143:Z=>{"use strict";var v=function(t,r,n,s,a,c,h,p){if(!t){var d;if(r===void 0)d=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var k=[n,s,a,c,h,p],M=0;d=new Error(r.replace(/%s/g,function(){return k[M++]})),d.name="Invariant Violation"}throw d.framesToPop=1,d}};Z.exports=v},66688:(Z,v,t)=>{var r=1/0,n="[object Symbol]",s=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a="\\u0300-\\u036f\\ufe20-\\ufe23",c="\\u20d0-\\u20f0",h="["+a+c+"]",p=RegExp(h,"g"),d={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"ss"},k=typeof t.g=="object"&&t.g&&t.g.Object===Object&&t.g,M=typeof self=="object"&&self&&self.Object===Object&&self,C=k||M||Function("return this")();function w(A){return function(R){return A?.[R]}}var I=w(d),F=Object.prototype,U=F.toString,B=C.Symbol,N=B?B.prototype:void 0,D=N?N.toString:void 0;function x(A){if(typeof A=="string")return A;if(u(A))return D?D.call(A):"";var R=A+"";return R=="0"&&1/A==-r?"-0":R}function T(A){return!!A&&typeof A=="object"}function u(A){return typeof A=="symbol"||T(A)&&U.call(A)==n}function b(A){return A==null?"":x(A)}function E(A){return A=b(A),A&&A.replace(s,I).replace(p,"")}Z.exports=E},18552:(Z,v,t)=>{var r=t(10852),n=t(55639),s=r(n,"DataView");Z.exports=s},1989:(Z,v,t)=>{var r=t(51789),n=t(80401),s=t(57667),a=t(21327),c=t(81866);function h(p){var d=-1,k=p==null?0:p.length;for(this.clear();++d<k;){var M=p[d];this.set(M[0],M[1])}}h.prototype.clear=r,h.prototype.delete=n,h.prototype.get=s,h.prototype.has=a,h.prototype.set=c,Z.exports=h},38407:(Z,v,t)=>{var r=t(27040),n=t(14125),s=t(82117),a=t(67518),c=t(54705);function h(p){var d=-1,k=p==null?0:p.length;for(this.clear();++d<k;){var M=p[d];this.set(M[0],M[1])}}h.prototype.clear=r,h.prototype.delete=n,h.prototype.get=s,h.prototype.has=a,h.prototype.set=c,Z.exports=h},57071:(Z,v,t)=>{var r=t(10852),n=t(55639),s=r(n,"Map");Z.exports=s},83369:(Z,v,t)=>{var r=t(24785),n=t(11285),s=t(96e3),a=t(49916),c=t(95265);function h(p){var d=-1,k=p==null?0:p.length;for(this.clear();++d<k;){var M=p[d];this.set(M[0],M[1])}}h.prototype.clear=r,h.prototype.delete=n,h.prototype.get=s,h.prototype.has=a,h.prototype.set=c,Z.exports=h},53818:(Z,v,t)=>{var r=t(10852),n=t(55639),s=r(n,"Promise");Z.exports=s},58525:(Z,v,t)=>{var r=t(10852),n=t(55639),s=r(n,"Set");Z.exports=s},88668:(Z,v,t)=>{var r=t(83369),n=t(90619),s=t(72385);function a(c){var h=-1,p=c==null?0:c.length;for(this.__data__=new r;++h<p;)this.add(c[h])}a.prototype.add=a.prototype.push=n,a.prototype.has=s,Z.exports=a},46384:(Z,v,t)=>{var r=t(38407),n=t(37465),s=t(63779),a=t(67599),c=t(44758),h=t(34309);function p(d){var k=this.__data__=new r(d);this.size=k.size}p.prototype.clear=n,p.prototype.delete=s,p.prototype.get=a,p.prototype.has=c,p.prototype.set=h,Z.exports=p},62705:(Z,v,t)=>{var r=t(55639),n=r.Symbol;Z.exports=n},11149:(Z,v,t)=>{var r=t(55639),n=r.Uint8Array;Z.exports=n},70577:(Z,v,t)=>{var r=t(10852),n=t(55639),s=r(n,"WeakMap");Z.exports=s},96874:Z=>{function v(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}Z.exports=v},77412:Z=>{function v(t,r){for(var n=-1,s=t==null?0:t.length;++n<s&&r(t[n],n,t)!==!1;);return t}Z.exports=v},34963:Z=>{function v(t,r){for(var n=-1,s=t==null?0:t.length,a=0,c=[];++n<s;){var h=t[n];r(h,n,t)&&(c[a++]=h)}return c}Z.exports=v},14636:(Z,v,t)=>{var r=t(22545),n=t(35694),s=t(1469),a=t(44144),c=t(65776),h=t(36719),p=Object.prototype,d=p.hasOwnProperty;function k(M,C){var w=s(M),I=!w&&n(M),F=!w&&!I&&a(M),U=!w&&!I&&!F&&h(M),B=w||I||F||U,N=B?r(M.length,String):[],D=N.length;for(var x in M)(C||d.call(M,x))&&!(B&&(x=="length"||F&&(x=="offset"||x=="parent")||U&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||c(x,D)))&&N.push(x);return N}Z.exports=k},29932:Z=>{function v(t,r){for(var n=-1,s=t==null?0:t.length,a=Array(s);++n<s;)a[n]=r(t[n],n,t);return a}Z.exports=v},62488:Z=>{function v(t,r){for(var n=-1,s=r.length,a=t.length;++n<s;)t[a+n]=r[n];return t}Z.exports=v},62663:Z=>{function v(t,r,n,s){var a=-1,c=t==null?0:t.length;for(s&&c&&(n=t[++a]);++a<c;)n=r(n,t[a],a,t);return n}Z.exports=v},82908:Z=>{function v(t,r){for(var n=-1,s=t==null?0:t.length;++n<s;)if(r(t[n],n,t))return!0;return!1}Z.exports=v},44286:Z=>{function v(t){return t.split("")}Z.exports=v},49029:Z=>{var v=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(r){return r.match(v)||[]}Z.exports=t},86556:(Z,v,t)=>{var r=t(89465),n=t(77813);function s(a,c,h){(h!==void 0&&!n(a[c],h)||h===void 0&&!(c in a))&&r(a,c,h)}Z.exports=s},34865:(Z,v,t)=>{var r=t(89465),n=t(77813),s=Object.prototype,a=s.hasOwnProperty;function c(h,p,d){var k=h[p];(!(a.call(h,p)&&n(k,d))||d===void 0&&!(p in h))&&r(h,p,d)}Z.exports=c},18470:(Z,v,t)=>{var r=t(77813);function n(s,a){for(var c=s.length;c--;)if(r(s[c][0],a))return c;return-1}Z.exports=n},44037:(Z,v,t)=>{var r=t(98363),n=t(3674);function s(a,c){return a&&r(c,n(c),a)}Z.exports=s},63886:(Z,v,t)=>{var r=t(98363),n=t(81704);function s(a,c){return a&&r(c,n(c),a)}Z.exports=s},89465:(Z,v,t)=>{var r=t(38777);function n(s,a,c){a=="__proto__"&&r?r(s,a,{configurable:!0,enumerable:!0,value:c,writable:!0}):s[a]=c}Z.exports=n},85990:(Z,v,t)=>{var r=t(46384),n=t(77412),s=t(34865),a=t(44037),c=t(63886),h=t(64626),p=t(278),d=t(18805),k=t(1911),M=t(58234),C=t(46904),w=t(64160),I=t(43824),F=t(29148),U=t(38517),B=t(1469),N=t(44144),D=t(56688),x=t(13218),T=t(72928),u=t(3674),b=t(81704),E=1,A=2,R=4,H="[object Arguments]",z="[object Array]",V="[object Boolean]",$="[object Date]",ee="[object Error]",q="[object Function]",oe="[object GeneratorFunction]",X="[object Map]",pe="[object Number]",Ie="[object Object]",se="[object RegExp]",be="[object Set]",fe="[object String]",ue="[object Symbol]",we="[object WeakMap]",Me="[object ArrayBuffer]",Ce="[object DataView]",Ne="[object Float32Array]",Ye="[object Float64Array]",mt="[object Int8Array]",Ct="[object Int16Array]",ln="[object Int32Array]",$e="[object Uint8Array]",Qe="[object Uint8ClampedArray]",bt="[object Uint16Array]",It="[object Uint32Array]",mn={};mn[H]=mn[z]=mn[Me]=mn[Ce]=mn[V]=mn[$]=mn[Ne]=mn[Ye]=mn[mt]=mn[Ct]=mn[ln]=mn[X]=mn[pe]=mn[Ie]=mn[se]=mn[be]=mn[fe]=mn[ue]=mn[$e]=mn[Qe]=mn[bt]=mn[It]=!0,mn[ee]=mn[q]=mn[we]=!1;function un(Be,je,$t,et,Kt,kn){var Tn,ht=je&E,ot=je&A,Je=je&R;if($t&&(Tn=Kt?$t(Be,et,Kt,kn):$t(Be)),Tn!==void 0)return Tn;if(!x(Be))return Be;var wt=B(Be);if(wt){if(Tn=I(Be),!ht)return p(Be,Tn)}else{var ft=w(Be),vn=ft==q||ft==oe;if(N(Be))return h(Be,ht);if(ft==Ie||ft==H||vn&&!Kt){if(Tn=ot||vn?{}:U(Be),!ht)return ot?k(Be,c(Tn,Be)):d(Be,a(Tn,Be))}else{if(!mn[ft])return Kt?Be:{};Tn=F(Be,ft,ht)}}kn||(kn=new r);var ut=kn.get(Be);if(ut)return ut;kn.set(Be,Tn),T(Be)?Be.forEach(function(ne){Tn.add(un(ne,je,$t,ne,Be,kn))}):D(Be)&&Be.forEach(function(ne,ge){Tn.set(ge,un(ne,je,$t,ge,Be,kn))});var Wt=Je?ot?C:M:ot?b:u,ae=wt?void 0:Wt(Be);return n(ae||Be,function(ne,ge){ae&&(ge=ne,ne=Be[ge]),s(Tn,ge,un(ne,je,$t,ge,Be,kn))}),Tn}Z.exports=un},3118:(Z,v,t)=>{var r=t(13218),n=Object.create,s=function(){function a(){}return function(c){if(!r(c))return{};if(n)return n(c);a.prototype=c;var h=new a;return a.prototype=void 0,h}}();Z.exports=s},21078:(Z,v,t)=>{var r=t(62488),n=t(37285);function s(a,c,h,p,d){var k=-1,M=a.length;for(h||(h=n),d||(d=[]);++k<M;){var C=a[k];c>0&&h(C)?c>1?s(C,c-1,h,p,d):r(d,C):p||(d[d.length]=C)}return d}Z.exports=s},28483:(Z,v,t)=>{var r=t(25063),n=r();Z.exports=n},47816:(Z,v,t)=>{var r=t(28483),n=t(3674);function s(a,c){return a&&r(a,c,n)}Z.exports=s},97786:(Z,v,t)=>{var r=t(71811),n=t(40327);function s(a,c){c=r(c,a);for(var h=0,p=c.length;a!=null&&h<p;)a=a[n(c[h++])];return h&&h==p?a:void 0}Z.exports=s},68866:(Z,v,t)=>{var r=t(62488),n=t(1469);function s(a,c,h){var p=c(a);return n(a)?p:r(p,h(a))}Z.exports=s},44239:(Z,v,t)=>{var r=t(62705),n=t(89607),s=t(2333),a="[object Null]",c="[object Undefined]",h=r?r.toStringTag:void 0;function p(d){return d==null?d===void 0?c:a:h&&h in Object(d)?n(d):s(d)}Z.exports=p},78565:Z=>{var v=Object.prototype,t=v.hasOwnProperty;function r(n,s){return n!=null&&t.call(n,s)}Z.exports=r},13:Z=>{function v(t,r){return t!=null&&r in Object(t)}Z.exports=v},9454:(Z,v,t)=>{var r=t(44239),n=t(37005),s="[object Arguments]";function a(c){return n(c)&&r(c)==s}Z.exports=a},90939:(Z,v,t)=>{var r=t(2492),n=t(37005);function s(a,c,h,p,d){return a===c?!0:a==null||c==null||!n(a)&&!n(c)?a!==a&&c!==c:r(a,c,h,p,s,d)}Z.exports=s},2492:(Z,v,t)=>{var r=t(46384),n=t(67114),s=t(18351),a=t(16096),c=t(64160),h=t(1469),p=t(44144),d=t(36719),k=1,M="[object Arguments]",C="[object Array]",w="[object Object]",I=Object.prototype,F=I.hasOwnProperty;function U(B,N,D,x,T,u){var b=h(B),E=h(N),A=b?C:c(B),R=E?C:c(N);A=A==M?w:A,R=R==M?w:R;var H=A==w,z=R==w,V=A==R;if(V&&p(B)){if(!p(N))return!1;b=!0,H=!1}if(V&&!H)return u||(u=new r),b||d(B)?n(B,N,D,x,T,u):s(B,N,A,D,x,T,u);if(!(D&k)){var $=H&&F.call(B,"__wrapped__"),ee=z&&F.call(N,"__wrapped__");if($||ee){var q=$?B.value():B,oe=ee?N.value():N;return u||(u=new r),T(q,oe,D,x,u)}}return V?(u||(u=new r),a(B,N,D,x,T,u)):!1}Z.exports=U},25588:(Z,v,t)=>{var r=t(64160),n=t(37005),s="[object Map]";function a(c){return n(c)&&r(c)==s}Z.exports=a},2958:(Z,v,t)=>{var r=t(46384),n=t(90939),s=1,a=2;function c(h,p,d,k){var M=d.length,C=M,w=!k;if(h==null)return!C;for(h=Object(h);M--;){var I=d[M];if(w&&I[2]?I[1]!==h[I[0]]:!(I[0]in h))return!1}for(;++M<C;){I=d[M];var F=I[0],U=h[F],B=I[1];if(w&&I[2]){if(U===void 0&&!(F in h))return!1}else{var N=new r;if(k)var D=k(U,B,F,h,p,N);if(!(D===void 0?n(B,U,s|a,k,N):D))return!1}}return!0}Z.exports=c},28458:(Z,v,t)=>{var r=t(23560),n=t(15346),s=t(13218),a=t(80346),c=/[\\^$.*+?()[\]{}|]/g,h=/^\[object .+?Constructor\]$/,p=Function.prototype,d=Object.prototype,k=p.toString,M=d.hasOwnProperty,C=RegExp("^"+k.call(M).replace(c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function w(I){if(!s(I)||n(I))return!1;var F=r(I)?C:h;return F.test(a(I))}Z.exports=w},29221:(Z,v,t)=>{var r=t(64160),n=t(37005),s="[object Set]";function a(c){return n(c)&&r(c)==s}Z.exports=a},38749:(Z,v,t)=>{var r=t(44239),n=t(41780),s=t(37005),a="[object Arguments]",c="[object Array]",h="[object Boolean]",p="[object Date]",d="[object Error]",k="[object Function]",M="[object Map]",C="[object Number]",w="[object Object]",I="[object RegExp]",F="[object Set]",U="[object String]",B="[object WeakMap]",N="[object ArrayBuffer]",D="[object DataView]",x="[object Float32Array]",T="[object Float64Array]",u="[object Int8Array]",b="[object Int16Array]",E="[object Int32Array]",A="[object Uint8Array]",R="[object Uint8ClampedArray]",H="[object Uint16Array]",z="[object Uint32Array]",V={};V[x]=V[T]=V[u]=V[b]=V[E]=V[A]=V[R]=V[H]=V[z]=!0,V[a]=V[c]=V[N]=V[h]=V[D]=V[p]=V[d]=V[k]=V[M]=V[C]=V[w]=V[I]=V[F]=V[U]=V[B]=!1;function $(ee){return s(ee)&&n(ee.length)&&!!V[r(ee)]}Z.exports=$},67206:(Z,v,t)=>{var r=t(91573),n=t(16432),s=t(6557),a=t(1469),c=t(39601);function h(p){return typeof p=="function"?p:p==null?s:typeof p=="object"?a(p)?n(p[0],p[1]):r(p):c(p)}Z.exports=h},280:(Z,v,t)=>{var r=t(25726),n=t(86916),s=Object.prototype,a=s.hasOwnProperty;function c(h){if(!r(h))return n(h);var p=[];for(var d in Object(h))a.call(h,d)&&d!="constructor"&&p.push(d);return p}Z.exports=c},10313:(Z,v,t)=>{var r=t(13218),n=t(25726),s=t(33498),a=Object.prototype,c=a.hasOwnProperty;function h(p){if(!r(p))return s(p);var d=n(p),k=[];for(var M in p)M=="constructor"&&(d||!c.call(p,M))||k.push(M);return k}Z.exports=h},91573:(Z,v,t)=>{var r=t(2958),n=t(1499),s=t(42634);function a(c){var h=n(c);return h.length==1&&h[0][2]?s(h[0][0],h[0][1]):function(p){return p===c||r(p,c,h)}}Z.exports=a},16432:(Z,v,t)=>{var r=t(90939),n=t(27361),s=t(79095),a=t(15403),c=t(89162),h=t(42634),p=t(40327),d=1,k=2;function M(C,w){return a(C)&&c(w)?h(p(C),w):function(I){var F=n(I,C);return F===void 0&&F===w?s(I,C):r(w,F,d|k)}}Z.exports=M},42980:(Z,v,t)=>{var r=t(46384),n=t(86556),s=t(28483),a=t(59783),c=t(13218),h=t(81704),p=t(36390);function d(k,M,C,w,I){k!==M&&s(M,function(F,U){if(I||(I=new r),c(F))a(k,M,U,C,d,w,I);else{var B=w?w(p(k,U),F,U+"",k,M,I):void 0;B===void 0&&(B=F),n(k,U,B)}},h)}Z.exports=d},59783:(Z,v,t)=>{var r=t(86556),n=t(64626),s=t(77133),a=t(278),c=t(38517),h=t(35694),p=t(1469),d=t(29246),k=t(44144),M=t(23560),C=t(13218),w=t(68630),I=t(36719),F=t(36390),U=t(59881);function B(N,D,x,T,u,b,E){var A=F(N,x),R=F(D,x),H=E.get(R);if(H){r(N,x,H);return}var z=b?b(A,R,x+"",N,D,E):void 0,V=z===void 0;if(V){var $=p(R),ee=!$&&k(R),q=!$&&!ee&&I(R);z=R,$||ee||q?p(A)?z=A:d(A)?z=a(A):ee?(V=!1,z=n(R,!0)):q?(V=!1,z=s(R,!0)):z=[]:w(R)||h(R)?(z=A,h(A)?z=U(A):(!C(A)||M(A))&&(z=c(R))):V=!1}V&&(E.set(R,z),u(z,R,T,b,E),E.delete(R)),r(N,x,z)}Z.exports=B},40371:Z=>{function v(t){return function(r){return r?.[t]}}Z.exports=v},79152:(Z,v,t)=>{var r=t(97786);function n(s){return function(a){return r(a,s)}}Z.exports=n},18674:Z=>{function v(t){return function(r){return t?.[r]}}Z.exports=v},5976:(Z,v,t)=>{var r=t(6557),n=t(45357),s=t(30061);function a(c,h){return s(n(c,h,r),c+"")}Z.exports=a},10611:(Z,v,t)=>{var r=t(34865),n=t(71811),s=t(65776),a=t(13218),c=t(40327);function h(p,d,k,M){if(!a(p))return p;d=n(d,p);for(var C=-1,w=d.length,I=w-1,F=p;F!=null&&++C<w;){var U=c(d[C]),B=k;if(U==="__proto__"||U==="constructor"||U==="prototype")return p;if(C!=I){var N=F[U];B=M?M(N,U,F):void 0,B===void 0&&(B=a(N)?N:s(d[C+1])?[]:{})}r(F,U,B),F=F[U]}return p}Z.exports=h},56560:(Z,v,t)=>{var r=t(75703),n=t(38777),s=t(6557),a=n?function(c,h){return n(c,"toString",{configurable:!0,enumerable:!1,value:r(h),writable:!0})}:s;Z.exports=a},14259:Z=>{function v(t,r,n){var s=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var c=Array(a);++s<a;)c[s]=t[s+r];return c}Z.exports=v},22545:Z=>{function v(t,r){for(var n=-1,s=Array(t);++n<t;)s[n]=r(n);return s}Z.exports=v},80531:(Z,v,t)=>{var r=t(62705),n=t(29932),s=t(1469),a=t(33448),c=1/0,h=r?r.prototype:void 0,p=h?h.toString:void 0;function d(k){if(typeof k=="string")return k;if(s(k))return n(k,d)+"";if(a(k))return p?p.call(k):"";var M=k+"";return M=="0"&&1/k==-c?"-0":M}Z.exports=d},7518:Z=>{function v(t){return function(r){return t(r)}}Z.exports=v},57406:(Z,v,t)=>{var r=t(71811),n=t(10928),s=t(40292),a=t(40327);function c(h,p){return p=r(p,h),h=s(h,p),h==null||delete h[a(n(p))]}Z.exports=c},74757:Z=>{function v(t,r){return t.has(r)}Z.exports=v},71811:(Z,v,t)=>{var r=t(1469),n=t(15403),s=t(55514),a=t(79833);function c(h,p){return r(h)?h:n(h,p)?[h]:s(a(h))}Z.exports=c},40180:(Z,v,t)=>{var r=t(14259);function n(s,a,c){var h=s.length;return c=c===void 0?h:c,!a&&c>=h?s:r(s,a,c)}Z.exports=n},74318:(Z,v,t)=>{var r=t(11149);function n(s){var a=new s.constructor(s.byteLength);return new r(a).set(new r(s)),a}Z.exports=n},64626:(Z,v,t)=>{Z=t.nmd(Z);var r=t(55639),n=v&&!v.nodeType&&v,s=n&&!0&&Z&&!Z.nodeType&&Z,a=s&&s.exports===n,c=a?r.Buffer:void 0,h=c?c.allocUnsafe:void 0;function p(d,k){if(k)return d.slice();var M=d.length,C=h?h(M):new d.constructor(M);return d.copy(C),C}Z.exports=p},57157:(Z,v,t)=>{var r=t(74318);function n(s,a){var c=a?r(s.buffer):s.buffer;return new s.constructor(c,s.byteOffset,s.byteLength)}Z.exports=n},93147:Z=>{var v=/\w*$/;function t(r){var n=new r.constructor(r.source,v.exec(r));return n.lastIndex=r.lastIndex,n}Z.exports=t},40419:(Z,v,t)=>{var r=t(62705),n=r?r.prototype:void 0,s=n?n.valueOf:void 0;function a(c){return s?Object(s.call(c)):{}}Z.exports=a},77133:(Z,v,t)=>{var r=t(74318);function n(s,a){var c=a?r(s.buffer):s.buffer;return new s.constructor(c,s.byteOffset,s.length)}Z.exports=n},278:Z=>{function v(t,r){var n=-1,s=t.length;for(r||(r=Array(s));++n<s;)r[n]=t[n];return r}Z.exports=v},98363:(Z,v,t)=>{var r=t(34865),n=t(89465);function s(a,c,h,p){var d=!h;h||(h={});for(var k=-1,M=c.length;++k<M;){var C=c[k],w=p?p(h[C],a[C],C,h,a):void 0;w===void 0&&(w=a[C]),d?n(h,C,w):r(h,C,w)}return h}Z.exports=s},18805:(Z,v,t)=>{var r=t(98363),n=t(99551);function s(a,c){return r(a,n(a),c)}Z.exports=s},1911:(Z,v,t)=>{var r=t(98363),n=t(51442);function s(a,c){return r(a,n(a),c)}Z.exports=s},14429:(Z,v,t)=>{var r=t(55639),n=r["__core-js_shared__"];Z.exports=n},21463:(Z,v,t)=>{var r=t(5976),n=t(16612);function s(a){return r(function(c,h){var p=-1,d=h.length,k=d>1?h[d-1]:void 0,M=d>2?h[2]:void 0;for(k=a.length>3&&typeof k=="function"?(d--,k):void 0,M&&n(h[0],h[1],M)&&(k=d<3?void 0:k,d=1),c=Object(c);++p<d;){var C=h[p];C&&a(c,C,p,k)}return c})}Z.exports=s},25063:Z=>{function v(t){return function(r,n,s){for(var a=-1,c=Object(r),h=s(r),p=h.length;p--;){var d=h[t?p:++a];if(n(c[d],d,c)===!1)break}return r}}Z.exports=v},98805:(Z,v,t)=>{var r=t(40180),n=t(62689),s=t(83140),a=t(79833);function c(h){return function(p){p=a(p);var d=n(p)?s(p):void 0,k=d?d[0]:p.charAt(0),M=d?r(d,1).join(""):p.slice(1);return k[h]()+M}}Z.exports=c},35393:(Z,v,t)=>{var r=t(62663),n=t(53816),s=t(58748),a="['\u2019]",c=RegExp(a,"g");function h(p){return function(d){return r(s(n(d).replace(c,"")),p,"")}}Z.exports=h},60696:(Z,v,t)=>{var r=t(68630);function n(s){return r(s)?void 0:s}Z.exports=n},69389:(Z,v,t)=>{var r=t(18674),n={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},s=r(n);Z.exports=s},38777:(Z,v,t)=>{var r=t(10852),n=function(){try{var s=r(Object,"defineProperty");return s({},"",{}),s}catch{}}();Z.exports=n},67114:(Z,v,t)=>{var r=t(88668),n=t(82908),s=t(74757),a=1,c=2;function h(p,d,k,M,C,w){var I=k&a,F=p.length,U=d.length;if(F!=U&&!(I&&U>F))return!1;var B=w.get(p),N=w.get(d);if(B&&N)return B==d&&N==p;var D=-1,x=!0,T=k&c?new r:void 0;for(w.set(p,d),w.set(d,p);++D<F;){var u=p[D],b=d[D];if(M)var E=I?M(b,u,D,d,p,w):M(u,b,D,p,d,w);if(E!==void 0){if(E)continue;x=!1;break}if(T){if(!n(d,function(A,R){if(!s(T,R)&&(u===A||C(u,A,k,M,w)))return T.push(R)})){x=!1;break}}else if(!(u===b||C(u,b,k,M,w))){x=!1;break}}return w.delete(p),w.delete(d),x}Z.exports=h},18351:(Z,v,t)=>{var r=t(62705),n=t(11149),s=t(77813),a=t(67114),c=t(68776),h=t(21814),p=1,d=2,k="[object Boolean]",M="[object Date]",C="[object Error]",w="[object Map]",I="[object Number]",F="[object RegExp]",U="[object Set]",B="[object String]",N="[object Symbol]",D="[object ArrayBuffer]",x="[object DataView]",T=r?r.prototype:void 0,u=T?T.valueOf:void 0;function b(E,A,R,H,z,V,$){switch(R){case x:if(E.byteLength!=A.byteLength||E.byteOffset!=A.byteOffset)return!1;E=E.buffer,A=A.buffer;case D:return!(E.byteLength!=A.byteLength||!V(new n(E),new n(A)));case k:case M:case I:return s(+E,+A);case C:return E.name==A.name&&E.message==A.message;case F:case B:return E==A+"";case w:var ee=c;case U:var q=H&p;if(ee||(ee=h),E.size!=A.size&&!q)return!1;var oe=$.get(E);if(oe)return oe==A;H|=d,$.set(E,A);var X=a(ee(E),ee(A),H,z,V,$);return $.delete(E),X;case N:if(u)return u.call(E)==u.call(A)}return!1}Z.exports=b},16096:(Z,v,t)=>{var r=t(58234),n=1,s=Object.prototype,a=s.hasOwnProperty;function c(h,p,d,k,M,C){var w=d&n,I=r(h),F=I.length,U=r(p),B=U.length;if(F!=B&&!w)return!1;for(var N=F;N--;){var D=I[N];if(!(w?D in p:a.call(p,D)))return!1}var x=C.get(h),T=C.get(p);if(x&&T)return x==p&&T==h;var u=!0;C.set(h,p),C.set(p,h);for(var b=w;++N<F;){D=I[N];var E=h[D],A=p[D];if(k)var R=w?k(A,E,D,p,h,C):k(E,A,D,h,p,C);if(!(R===void 0?E===A||M(E,A,d,k,C):R)){u=!1;break}b||(b=D=="constructor")}if(u&&!b){var H=h.constructor,z=p.constructor;H!=z&&"constructor"in h&&"constructor"in p&&!(typeof H=="function"&&H instanceof H&&typeof z=="function"&&z instanceof z)&&(u=!1)}return C.delete(h),C.delete(p),u}Z.exports=c},99021:(Z,v,t)=>{var r=t(85564),n=t(45357),s=t(30061);function a(c){return s(n(c,void 0,r),c+"")}Z.exports=a},31957:(Z,v,t)=>{var r=typeof t.g=="object"&&t.g&&t.g.Object===Object&&t.g;Z.exports=r},58234:(Z,v,t)=>{var r=t(68866),n=t(99551),s=t(3674);function a(c){return r(c,s,n)}Z.exports=a},46904:(Z,v,t)=>{var r=t(68866),n=t(51442),s=t(81704);function a(c){return r(c,s,n)}Z.exports=a},45050:(Z,v,t)=>{var r=t(37019);function n(s,a){var c=s.__data__;return r(a)?c[typeof a=="string"?"string":"hash"]:c.map}Z.exports=n},1499:(Z,v,t)=>{var r=t(89162),n=t(3674);function s(a){for(var c=n(a),h=c.length;h--;){var p=c[h],d=a[p];c[h]=[p,d,r(d)]}return c}Z.exports=s},10852:(Z,v,t)=>{var r=t(28458),n=t(47801);function s(a,c){var h=n(a,c);return r(h)?h:void 0}Z.exports=s},85924:(Z,v,t)=>{var r=t(5569),n=r(Object.getPrototypeOf,Object);Z.exports=n},89607:(Z,v,t)=>{var r=t(62705),n=Object.prototype,s=n.hasOwnProperty,a=n.toString,c=r?r.toStringTag:void 0;function h(p){var d=s.call(p,c),k=p[c];try{p[c]=void 0;var M=!0}catch{}var C=a.call(p);return M&&(d?p[c]=k:delete p[c]),C}Z.exports=h},99551:(Z,v,t)=>{var r=t(34963),n=t(70479),s=Object.prototype,a=s.propertyIsEnumerable,c=Object.getOwnPropertySymbols,h=c?function(p){return p==null?[]:(p=Object(p),r(c(p),function(d){return a.call(p,d)}))}:n;Z.exports=h},51442:(Z,v,t)=>{var r=t(62488),n=t(85924),s=t(99551),a=t(70479),c=Object.getOwnPropertySymbols,h=c?function(p){for(var d=[];p;)r(d,s(p)),p=n(p);return d}:a;Z.exports=h},64160:(Z,v,t)=>{var r=t(18552),n=t(57071),s=t(53818),a=t(58525),c=t(70577),h=t(44239),p=t(80346),d="[object Map]",k="[object Object]",M="[object Promise]",C="[object Set]",w="[object WeakMap]",I="[object DataView]",F=p(r),U=p(n),B=p(s),N=p(a),D=p(c),x=h;(r&&x(new r(new ArrayBuffer(1)))!=I||n&&x(new n)!=d||s&&x(s.resolve())!=M||a&&x(new a)!=C||c&&x(new c)!=w)&&(x=function(T){var u=h(T),b=u==k?T.constructor:void 0,E=b?p(b):"";if(E)switch(E){case F:return I;case U:return d;case B:return M;case N:return C;case D:return w}return u}),Z.exports=x},47801:Z=>{function v(t,r){return t?.[r]}Z.exports=v},222:(Z,v,t)=>{var r=t(71811),n=t(35694),s=t(1469),a=t(65776),c=t(41780),h=t(40327);function p(d,k,M){k=r(k,d);for(var C=-1,w=k.length,I=!1;++C<w;){var F=h(k[C]);if(!(I=d!=null&&M(d,F)))break;d=d[F]}return I||++C!=w?I:(w=d==null?0:d.length,!!w&&c(w)&&a(F,w)&&(s(d)||n(d)))}Z.exports=p},62689:Z=>{var v="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",s=t+r+n,a="\\ufe0e\\ufe0f",c="\\u200d",h=RegExp("["+c+v+s+a+"]");function p(d){return h.test(d)}Z.exports=p},93157:Z=>{var v=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function t(r){return v.test(r)}Z.exports=t},51789:(Z,v,t)=>{var r=t(94536);function n(){this.__data__=r?r(null):{},this.size=0}Z.exports=n},80401:Z=>{function v(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}Z.exports=v},57667:(Z,v,t)=>{var r=t(94536),n="__lodash_hash_undefined__",s=Object.prototype,a=s.hasOwnProperty;function c(h){var p=this.__data__;if(r){var d=p[h];return d===n?void 0:d}return a.call(p,h)?p[h]:void 0}Z.exports=c},21327:(Z,v,t)=>{var r=t(94536),n=Object.prototype,s=n.hasOwnProperty;function a(c){var h=this.__data__;return r?h[c]!==void 0:s.call(h,c)}Z.exports=a},81866:(Z,v,t)=>{var r=t(94536),n="__lodash_hash_undefined__";function s(a,c){var h=this.__data__;return this.size+=this.has(a)?0:1,h[a]=r&&c===void 0?n:c,this}Z.exports=s},43824:Z=>{var v=Object.prototype,t=v.hasOwnProperty;function r(n){var s=n.length,a=new n.constructor(s);return s&&typeof n[0]=="string"&&t.call(n,"index")&&(a.index=n.index,a.input=n.input),a}Z.exports=r},29148:(Z,v,t)=>{var r=t(74318),n=t(57157),s=t(93147),a=t(40419),c=t(77133),h="[object Boolean]",p="[object Date]",d="[object Map]",k="[object Number]",M="[object RegExp]",C="[object Set]",w="[object String]",I="[object Symbol]",F="[object ArrayBuffer]",U="[object DataView]",B="[object Float32Array]",N="[object Float64Array]",D="[object Int8Array]",x="[object Int16Array]",T="[object Int32Array]",u="[object Uint8Array]",b="[object Uint8ClampedArray]",E="[object Uint16Array]",A="[object Uint32Array]";function R(H,z,V){var $=H.constructor;switch(z){case F:return r(H);case h:case p:return new $(+H);case U:return n(H,V);case B:case N:case D:case x:case T:case u:case b:case E:case A:return c(H,V);case d:return new $;case k:case w:return new $(H);case M:return s(H);case C:return new $;case I:return a(H)}}Z.exports=R},38517:(Z,v,t)=>{var r=t(3118),n=t(85924),s=t(25726);function a(c){return typeof c.constructor=="function"&&!s(c)?r(n(c)):{}}Z.exports=a},37285:(Z,v,t)=>{var r=t(62705),n=t(35694),s=t(1469),a=r?r.isConcatSpreadable:void 0;function c(h){return s(h)||n(h)||!!(a&&h&&h[a])}Z.exports=c},65776:Z=>{var v=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,s){var a=typeof n;return s=s??v,!!s&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<s}Z.exports=r},16612:(Z,v,t)=>{var r=t(77813),n=t(98612),s=t(65776),a=t(13218);function c(h,p,d){if(!a(d))return!1;var k=typeof p;return(k=="number"?n(d)&&s(p,d.length):k=="string"&&p in d)?r(d[p],h):!1}Z.exports=c},15403:(Z,v,t)=>{var r=t(1469),n=t(33448),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function c(h,p){if(r(h))return!1;var d=typeof h;return d=="number"||d=="symbol"||d=="boolean"||h==null||n(h)?!0:a.test(h)||!s.test(h)||p!=null&&h in Object(p)}Z.exports=c},37019:Z=>{function v(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}Z.exports=v},15346:(Z,v,t)=>{var r=t(14429),n=function(){var a=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}();function s(a){return!!n&&n in a}Z.exports=s},25726:Z=>{var v=Object.prototype;function t(r){var n=r&&r.constructor,s=typeof n=="function"&&n.prototype||v;return r===s}Z.exports=t},89162:(Z,v,t)=>{var r=t(13218);function n(s){return s===s&&!r(s)}Z.exports=n},27040:Z=>{function v(){this.__data__=[],this.size=0}Z.exports=v},14125:(Z,v,t)=>{var r=t(18470),n=Array.prototype,s=n.splice;function a(c){var h=this.__data__,p=r(h,c);if(p<0)return!1;var d=h.length-1;return p==d?h.pop():s.call(h,p,1),--this.size,!0}Z.exports=a},82117:(Z,v,t)=>{var r=t(18470);function n(s){var a=this.__data__,c=r(a,s);return c<0?void 0:a[c][1]}Z.exports=n},67518:(Z,v,t)=>{var r=t(18470);function n(s){return r(this.__data__,s)>-1}Z.exports=n},54705:(Z,v,t)=>{var r=t(18470);function n(s,a){var c=this.__data__,h=r(c,s);return h<0?(++this.size,c.push([s,a])):c[h][1]=a,this}Z.exports=n},24785:(Z,v,t)=>{var r=t(1989),n=t(38407),s=t(57071);function a(){this.size=0,this.__data__={hash:new r,map:new(s||n),string:new r}}Z.exports=a},11285:(Z,v,t)=>{var r=t(45050);function n(s){var a=r(this,s).delete(s);return this.size-=a?1:0,a}Z.exports=n},96e3:(Z,v,t)=>{var r=t(45050);function n(s){return r(this,s).get(s)}Z.exports=n},49916:(Z,v,t)=>{var r=t(45050);function n(s){return r(this,s).has(s)}Z.exports=n},95265:(Z,v,t)=>{var r=t(45050);function n(s,a){var c=r(this,s),h=c.size;return c.set(s,a),this.size+=c.size==h?0:1,this}Z.exports=n},68776:Z=>{function v(t){var r=-1,n=Array(t.size);return t.forEach(function(s,a){n[++r]=[a,s]}),n}Z.exports=v},42634:Z=>{function v(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}Z.exports=v},24523:(Z,v,t)=>{var r=t(88306),n=500;function s(a){var c=r(a,function(p){return h.size===n&&h.clear(),p}),h=c.cache;return c}Z.exports=s},94536:(Z,v,t)=>{var r=t(10852),n=r(Object,"create");Z.exports=n},86916:(Z,v,t)=>{var r=t(5569),n=r(Object.keys,Object);Z.exports=n},33498:Z=>{function v(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}Z.exports=v},31167:(Z,v,t)=>{Z=t.nmd(Z);var r=t(31957),n=v&&!v.nodeType&&v,s=n&&!0&&Z&&!Z.nodeType&&Z,a=s&&s.exports===n,c=a&&r.process,h=function(){try{var p=s&&s.require&&s.require("util").types;return p||c&&c.binding&&c.binding("util")}catch{}}();Z.exports=h},2333:Z=>{var v=Object.prototype,t=v.toString;function r(n){return t.call(n)}Z.exports=r},5569:Z=>{function v(t,r){return function(n){return t(r(n))}}Z.exports=v},45357:(Z,v,t)=>{var r=t(96874),n=Math.max;function s(a,c,h){return c=n(c===void 0?a.length-1:c,0),function(){for(var p=arguments,d=-1,k=n(p.length-c,0),M=Array(k);++d<k;)M[d]=p[c+d];d=-1;for(var C=Array(c+1);++d<c;)C[d]=p[d];return C[c]=h(M),r(a,this,C)}}Z.exports=s},40292:(Z,v,t)=>{var r=t(97786),n=t(14259);function s(a,c){return c.length<2?a:r(a,n(c,0,-1))}Z.exports=s},55639:(Z,v,t)=>{var r=t(31957),n=typeof self=="object"&&self&&self.Object===Object&&self,s=r||n||Function("return this")();Z.exports=s},36390:Z=>{function v(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}Z.exports=v},90619:Z=>{var v="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,v),this}Z.exports=t},72385:Z=>{function v(t){return this.__data__.has(t)}Z.exports=v},21814:Z=>{function v(t){var r=-1,n=Array(t.size);return t.forEach(function(s){n[++r]=s}),n}Z.exports=v},30061:(Z,v,t)=>{var r=t(56560),n=t(21275),s=n(r);Z.exports=s},21275:Z=>{var v=800,t=16,r=Date.now;function n(s){var a=0,c=0;return function(){var h=r(),p=t-(h-c);if(c=h,p>0){if(++a>=v)return arguments[0]}else a=0;return s.apply(void 0,arguments)}}Z.exports=n},37465:(Z,v,t)=>{var r=t(38407);function n(){this.__data__=new r,this.size=0}Z.exports=n},63779:Z=>{function v(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}Z.exports=v},67599:Z=>{function v(t){return this.__data__.get(t)}Z.exports=v},44758:Z=>{function v(t){return this.__data__.has(t)}Z.exports=v},34309:(Z,v,t)=>{var r=t(38407),n=t(57071),s=t(83369),a=200;function c(h,p){var d=this.__data__;if(d instanceof r){var k=d.__data__;if(!n||k.length<a-1)return k.push([h,p]),this.size=++d.size,this;d=this.__data__=new s(k)}return d.set(h,p),this.size=d.size,this}Z.exports=c},83140:(Z,v,t)=>{var r=t(44286),n=t(62689),s=t(676);function a(c){return n(c)?s(c):r(c)}Z.exports=a},55514:(Z,v,t)=>{var r=t(24523),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,a=r(function(c){var h=[];return c.charCodeAt(0)===46&&h.push(""),c.replace(n,function(p,d,k,M){h.push(k?M.replace(s,"$1"):d||p)}),h});Z.exports=a},40327:(Z,v,t)=>{var r=t(33448),n=1/0;function s(a){if(typeof a=="string"||r(a))return a;var c=a+"";return c=="0"&&1/a==-n?"-0":c}Z.exports=s},80346:Z=>{var v=Function.prototype,t=v.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}Z.exports=r},676:Z=>{var v="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",s=t+r+n,a="\\ufe0e\\ufe0f",c="["+v+"]",h="["+s+"]",p="\\ud83c[\\udffb-\\udfff]",d="(?:"+h+"|"+p+")",k="[^"+v+"]",M="(?:\\ud83c[\\udde6-\\uddff]){2}",C="[\\ud800-\\udbff][\\udc00-\\udfff]",w="\\u200d",I=d+"?",F="["+a+"]?",U="(?:"+w+"(?:"+[k,M,C].join("|")+")"+F+I+")*",B=F+I+U,N="(?:"+[k+h+"?",h,M,C,c].join("|")+")",D=RegExp(p+"(?="+p+")|"+N+B,"g");function x(T){return T.match(D)||[]}Z.exports=x},2757:Z=>{var v="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",s=t+r+n,a="\\u2700-\\u27bf",c="a-z\\xdf-\\xf6\\xf8-\\xff",h="\\xac\\xb1\\xd7\\xf7",p="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",d="\\u2000-\\u206f",k=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",M="A-Z\\xc0-\\xd6\\xd8-\\xde",C="\\ufe0e\\ufe0f",w=h+p+d+k,I="['\u2019]",F="["+w+"]",U="["+s+"]",B="\\d+",N="["+a+"]",D="["+c+"]",x="[^"+v+w+B+a+c+M+"]",T="\\ud83c[\\udffb-\\udfff]",u="(?:"+U+"|"+T+")",b="[^"+v+"]",E="(?:\\ud83c[\\udde6-\\uddff]){2}",A="[\\ud800-\\udbff][\\udc00-\\udfff]",R="["+M+"]",H="\\u200d",z="(?:"+D+"|"+x+")",V="(?:"+R+"|"+x+")",$="(?:"+I+"(?:d|ll|m|re|s|t|ve))?",ee="(?:"+I+"(?:D|LL|M|RE|S|T|VE))?",q=u+"?",oe="["+C+"]?",X="(?:"+H+"(?:"+[b,E,A].join("|")+")"+oe+q+")*",pe="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ie="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",se=oe+q+X,be="(?:"+[N,E,A].join("|")+")"+se,fe=RegExp([R+"?"+D+"+"+$+"(?="+[F,R,"$"].join("|")+")",V+"+"+ee+"(?="+[F,R+z,"$"].join("|")+")",R+"?"+z+"+"+$,R+"+"+ee,Ie,pe,B,be].join("|"),"g");function ue(we){return we.match(fe)||[]}Z.exports=ue},68929:(Z,v,t)=>{var r=t(48403),n=t(35393),s=n(function(a,c,h){return c=c.toLowerCase(),a+(h?r(c):c)});Z.exports=s},48403:(Z,v,t)=>{var r=t(79833),n=t(11700);function s(a){return n(r(a).toLowerCase())}Z.exports=s},50361:(Z,v,t)=>{var r=t(85990),n=1,s=4;function a(c){return r(c,n|s)}Z.exports=a},75703:Z=>{function v(t){return function(){return t}}Z.exports=v},53816:(Z,v,t)=>{var r=t(69389),n=t(79833),s=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a="\\u0300-\\u036f",c="\\ufe20-\\ufe2f",h="\\u20d0-\\u20ff",p=a+c+h,d="["+p+"]",k=RegExp(d,"g");function M(C){return C=n(C),C&&C.replace(s,r).replace(k,"")}Z.exports=M},77813:Z=>{function v(t,r){return t===r||t!==t&&r!==r}Z.exports=v},85564:(Z,v,t)=>{var r=t(21078);function n(s){var a=s==null?0:s.length;return a?r(s,1):[]}Z.exports=n},27361:(Z,v,t)=>{var r=t(97786);function n(s,a,c){var h=s==null?void 0:r(s,a);return h===void 0?c:h}Z.exports=n},18721:(Z,v,t)=>{var r=t(78565),n=t(222);function s(a,c){return a!=null&&n(a,c,r)}Z.exports=s},79095:(Z,v,t)=>{var r=t(13),n=t(222);function s(a,c){return a!=null&&n(a,c,r)}Z.exports=s},6557:Z=>{function v(t){return t}Z.exports=v},35694:(Z,v,t)=>{var r=t(9454),n=t(37005),s=Object.prototype,a=s.hasOwnProperty,c=s.propertyIsEnumerable,h=r(function(){return arguments}())?r:function(p){return n(p)&&a.call(p,"callee")&&!c.call(p,"callee")};Z.exports=h},1469:Z=>{var v=Array.isArray;Z.exports=v},98612:(Z,v,t)=>{var r=t(23560),n=t(41780);function s(a){return a!=null&&n(a.length)&&!r(a)}Z.exports=s},29246:(Z,v,t)=>{var r=t(98612),n=t(37005);function s(a){return n(a)&&r(a)}Z.exports=s},44144:(Z,v,t)=>{Z=t.nmd(Z);var r=t(55639),n=t(95062),s=v&&!v.nodeType&&v,a=s&&!0&&Z&&!Z.nodeType&&Z,c=a&&a.exports===s,h=c?r.Buffer:void 0,p=h?h.isBuffer:void 0,d=p||n;Z.exports=d},41609:(Z,v,t)=>{var r=t(280),n=t(64160),s=t(35694),a=t(1469),c=t(98612),h=t(44144),p=t(25726),d=t(36719),k="[object Map]",M="[object Set]",C=Object.prototype,w=C.hasOwnProperty;function I(F){if(F==null)return!0;if(c(F)&&(a(F)||typeof F=="string"||typeof F.splice=="function"||h(F)||d(F)||s(F)))return!F.length;var U=n(F);if(U==k||U==M)return!F.size;if(p(F))return!r(F).length;for(var B in F)if(w.call(F,B))return!1;return!0}Z.exports=I},18446:(Z,v,t)=>{var r=t(90939);function n(s,a){return r(s,a)}Z.exports=n},23560:(Z,v,t)=>{var r=t(44239),n=t(13218),s="[object AsyncFunction]",a="[object Function]",c="[object GeneratorFunction]",h="[object Proxy]";function p(d){if(!n(d))return!1;var k=r(d);return k==a||k==c||k==s||k==h}Z.exports=p},41780:Z=>{var v=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=v}Z.exports=t},56688:(Z,v,t)=>{var r=t(25588),n=t(7518),s=t(31167),a=s&&s.isMap,c=a?n(a):r;Z.exports=c},13218:Z=>{function v(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}Z.exports=v},37005:Z=>{function v(t){return t!=null&&typeof t=="object"}Z.exports=v},68630:(Z,v,t)=>{var r=t(44239),n=t(85924),s=t(37005),a="[object Object]",c=Function.prototype,h=Object.prototype,p=c.toString,d=h.hasOwnProperty,k=p.call(Object);function M(C){if(!s(C)||r(C)!=a)return!1;var w=n(C);if(w===null)return!0;var I=d.call(w,"constructor")&&w.constructor;return typeof I=="function"&&I instanceof I&&p.call(I)==k}Z.exports=M},72928:(Z,v,t)=>{var r=t(29221),n=t(7518),s=t(31167),a=s&&s.isSet,c=a?n(a):r;Z.exports=c},33448:(Z,v,t)=>{var r=t(44239),n=t(37005),s="[object Symbol]";function a(c){return typeof c=="symbol"||n(c)&&r(c)==s}Z.exports=a},36719:(Z,v,t)=>{var r=t(38749),n=t(7518),s=t(31167),a=s&&s.isTypedArray,c=a?n(a):r;Z.exports=c},3674:(Z,v,t)=>{var r=t(14636),n=t(280),s=t(98612);function a(c){return s(c)?r(c):n(c)}Z.exports=a},81704:(Z,v,t)=>{var r=t(14636),n=t(10313),s=t(98612);function a(c){return s(c)?r(c,!0):n(c)}Z.exports=a},10928:Z=>{function v(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}Z.exports=v},96486:function(Z,v,t){Z=t.nmd(Z);var r;/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/(function(){var n,s="4.17.21",a=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",p="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",k=500,M="__lodash_placeholder__",C=1,w=2,I=4,F=1,U=2,B=1,N=2,D=4,x=8,T=16,u=32,b=64,E=128,A=256,R=512,H=30,z="...",V=800,$=16,ee=1,q=2,oe=3,X=1/0,pe=9007199254740991,Ie=17976931348623157e292,se=0/0,be=4294967295,fe=be-1,ue=be>>>1,we=[["ary",E],["bind",B],["bindKey",N],["curry",x],["curryRight",T],["flip",R],["partial",u],["partialRight",b],["rearg",A]],Me="[object Arguments]",Ce="[object Array]",Ne="[object AsyncFunction]",Ye="[object Boolean]",mt="[object Date]",Ct="[object DOMException]",ln="[object Error]",$e="[object Function]",Qe="[object GeneratorFunction]",bt="[object Map]",It="[object Number]",mn="[object Null]",un="[object Object]",Be="[object Promise]",je="[object Proxy]",$t="[object RegExp]",et="[object Set]",Kt="[object String]",kn="[object Symbol]",Tn="[object Undefined]",ht="[object WeakMap]",ot="[object WeakSet]",Je="[object ArrayBuffer]",wt="[object DataView]",ft="[object Float32Array]",vn="[object Float64Array]",ut="[object Int8Array]",Wt="[object Int16Array]",ae="[object Int32Array]",ne="[object Uint8Array]",ge="[object Uint8ClampedArray]",ye="[object Uint16Array]",Xe="[object Uint32Array]",Ze=/\b__p \+= '';/g,lt=/\b(__p \+=) '' \+/g,_t=/(__e\(.*?\)|\b__t\)) \+\n'';/g,zt=/&(?:amp|lt|gt|quot|#39);/g,Vt=/[&<>"']/g,sn=RegExp(zt.source),yn=RegExp(Vt.source),dr=/<%-([\s\S]+?)%>/g,hr=/<%([\s\S]+?)%>/g,Mr=/<%=([\s\S]+?)%>/g,rr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Cr=/^\w*$/,Ur=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$r=/[\\^$.*+?()[\]{}|]/g,li=RegExp($r.source),ri=/^\s+/,Bt=/\s/,Et=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,bn=/\{\n\/\* \[wrapped with (.+)\] \*/,cn=/,? & /,Yn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,on=/[()=,{}\[\]\/\s]/,ze=/\\(\\)?/g,Le=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ht=/\w*$/,Mn=/^[-+]0x[0-9a-f]+$/i,tr=/^0b[01]+$/i,Sr=/^\[object .+?Constructor\]$/,Xr=/^0o[0-7]+$/i,gi=/^(?:0|[1-9]\d*)$/,Pi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ii=/($^)/,vr=/['\n\r\u2028\u2029\\]/g,at="\\ud800-\\udfff",it="\\u0300-\\u036f",Re="\\ufe20-\\ufe2f",ke="\\u20d0-\\u20ff",Pe=it+Re+ke,Te="\\u2700-\\u27bf",Mt="a-z\\xdf-\\xf6\\xf8-\\xff",qt="\\xac\\xb1\\xd7\\xf7",Rn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Qn="\\u2000-\\u206f",ur=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",On="A-Z\\xc0-\\xd6\\xd8-\\xde",ct="\\ufe0e\\ufe0f",Zt=qt+Rn+Qn+ur,Cn="['\u2019]",Pn="["+at+"]",Kn="["+Zt+"]",Rt="["+Pe+"]",Ke="\\d+",Oe="["+Te+"]",Ge="["+Mt+"]",Ft="[^"+at+Zt+Ke+Te+Mt+On+"]",Qt="\\ud83c[\\udffb-\\udfff]",wn="(?:"+Rt+"|"+Qt+")",Gn="[^"+at+"]",ir="(?:\\ud83c[\\udde6-\\uddff]){2}",br="[\\ud800-\\udbff][\\udc00-\\udfff]",fr="["+On+"]",Er="\\u200d",Or="(?:"+Ge+"|"+Ft+")",oi="(?:"+fr+"|"+Ft+")",si="(?:"+Cn+"(?:d|ll|m|re|s|t|ve))?",Fi="(?:"+Cn+"(?:D|LL|M|RE|S|T|VE))?",$i=wn+"?",Vi="["+ct+"]?",Bn="(?:"+Er+"(?:"+[Gn,ir,br].join("|")+")"+Vi+$i+")*",nt="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ve="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",he=Vi+$i+Bn,Ae="(?:"+[Oe,ir,br].join("|")+")"+he,tt="(?:"+[Gn+Rt+"?",Rt,ir,br,Pn].join("|")+")",St=RegExp(Cn,"g"),kt=RegExp(Rt,"g"),Jt=RegExp(Qt+"(?="+Qt+")|"+tt+he,"g"),gt=RegExp([fr+"?"+Ge+"+"+si+"(?="+[Kn,fr,"$"].join("|")+")",oi+"+"+Fi+"(?="+[Kn,fr+Or,"$"].join("|")+")",fr+"?"+Or+"+"+si,fr+"+"+Fi,ve,nt,Ke,Ae].join("|"),"g"),dn=RegExp("["+Er+at+Pe+ct+"]"),Xt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,hn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Sn=-1,Jn={};Jn[ft]=Jn[vn]=Jn[ut]=Jn[Wt]=Jn[ae]=Jn[ne]=Jn[ge]=Jn[ye]=Jn[Xe]=!0,Jn[Me]=Jn[Ce]=Jn[Je]=Jn[Ye]=Jn[wt]=Jn[mt]=Jn[ln]=Jn[$e]=Jn[bt]=Jn[It]=Jn[un]=Jn[$t]=Jn[et]=Jn[Kt]=Jn[ht]=!1;var Vn={};Vn[Me]=Vn[Ce]=Vn[Je]=Vn[wt]=Vn[Ye]=Vn[mt]=Vn[ft]=Vn[vn]=Vn[ut]=Vn[Wt]=Vn[ae]=Vn[bt]=Vn[It]=Vn[un]=Vn[$t]=Vn[et]=Vn[Kt]=Vn[kn]=Vn[ne]=Vn[ge]=Vn[ye]=Vn[Xe]=!0,Vn[ln]=Vn[$e]=Vn[ht]=!1;var ar={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Vr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Jr={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},yi={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ii=parseFloat,ji=parseInt,_n=typeof t.g=="object"&&t.g&&t.g.Object===Object&&t.g,_e=typeof self=="object"&&self&&self.Object===Object&&self,rt=_n||_e||Function("return this")(),vt=v&&!v.nodeType&&v,Gt=vt&&!0&&Z&&!Z.nodeType&&Z,We=Gt&&Gt.exports===vt,Ot=We&&_n.process,Dt=function(){try{var Ln=Gt&&Gt.require&&Gt.require("util").types;return Ln||Ot&&Ot.binding&&Ot.binding("util")}catch{}}(),gn=Dt&&Dt.isArrayBuffer,Hn=Dt&&Dt.isDate,nr=Dt&&Dt.isMap,_r=Dt&&Dt.isRegExp,Nr=Dt&&Dt.isSet,Qr=Dt&&Dt.isTypedArray;function ki(Ln,gr,pr){switch(pr.length){case 0:return Ln.call(gr);case 1:return Ln.call(gr,pr[0]);case 2:return Ln.call(gr,pr[0],pr[1]);case 3:return Ln.call(gr,pr[0],pr[1],pr[2])}return Ln.apply(gr,pr)}function Si(Ln,gr,pr,Wr){for(var Lt=-1,re=Ln==null?0:Ln.length;++Lt<re;){var me=Ln[Lt];gr(Wr,me,pr(me),Ln)}return Wr}function Ei(Ln,gr){for(var pr=-1,Wr=Ln==null?0:Ln.length;++pr<Wr&&gr(Ln[pr],pr,Ln)!==!1;);return Ln}function oo(Ln,gr){for(var pr=Ln==null?0:Ln.length;pr--&&gr(Ln[pr],pr,Ln)!==!1;);return Ln}function zi(Ln,gr){for(var pr=-1,Wr=Ln==null?0:Ln.length;++pr<Wr;)if(!gr(Ln[pr],pr,Ln))return!1;return!0}function Xi(Ln,gr){for(var pr=-1,Wr=Ln==null?0:Ln.length,Lt=0,re=[];++pr<Wr;){var me=Ln[pr];gr(me,pr,Ln)&&(re[Lt++]=me)}return re}function uo(Ln,gr){var pr=Ln==null?0:Ln.length;return!!pr&&as(Ln,gr,0)>-1}function qi(Ln,gr,pr){for(var Wr=-1,Lt=Ln==null?0:Ln.length;++Wr<Lt;)if(pr(gr,Ln[Wr]))return!0;return!1}function Ui(Ln,gr){for(var pr=-1,Wr=Ln==null?0:Ln.length,Lt=Array(Wr);++pr<Wr;)Lt[pr]=gr(Ln[pr],pr,Ln);return Lt}function Vo(Ln,gr){for(var pr=-1,Wr=gr.length,Lt=Ln.length;++pr<Wr;)Ln[Lt+pr]=gr[pr];return Ln}function Cs(Ln,gr,pr,Wr){var Lt=-1,re=Ln==null?0:Ln.length;for(Wr&&re&&(pr=Ln[++Lt]);++Lt<re;)pr=gr(pr,Ln[Lt],Lt,Ln);return pr}function ra(Ln,gr,pr,Wr){var Lt=Ln==null?0:Ln.length;for(Wr&&Lt&&(pr=Ln[--Lt]);Lt--;)pr=gr(pr,Ln[Lt],Lt,Ln);return pr}function Ts(Ln,gr){for(var pr=-1,Wr=Ln==null?0:Ln.length;++pr<Wr;)if(gr(Ln[pr],pr,Ln))return!0;return!1}var Io=dt("length");function xr(Ln){return Ln.split("")}function ia(Ln){return Ln.match(Yn)||[]}function Is(Ln,gr,pr){var Wr;return pr(Ln,function(Lt,re,me){if(gr(Lt,re,me))return Wr=re,!1}),Wr}function Gs(Ln,gr,pr,Wr){for(var Lt=Ln.length,re=pr+(Wr?1:-1);Wr?re--:++re<Lt;)if(gr(Ln[re],re,Ln))return re;return-1}function as(Ln,gr,pr){return gr===gr?So(Ln,gr,pr):Gs(Ln,Ma,pr)}function Wo(Ln,gr,pr,Wr){for(var Lt=pr-1,re=Ln.length;++Lt<re;)if(Wr(Ln[Lt],gr))return Lt;return-1}function Ma(Ln){return Ln!==Ln}function fa(Ln,gr){var pr=Ln==null?0:Ln.length;return pr?Fr(Ln,gr)/pr:se}function dt(Ln){return function(gr){return gr==null?n:gr[Ln]}}function Fe(Ln){return function(gr){return Ln==null?n:Ln[gr]}}function an(Ln,gr,pr,Wr,Lt){return Lt(Ln,function(re,me,Ue){pr=Wr?(Wr=!1,re):gr(pr,re,me,Ue)}),pr}function qn(Ln,gr){var pr=Ln.length;for(Ln.sort(gr);pr--;)Ln[pr]=Ln[pr].value;return Ln}function Fr(Ln,gr){for(var pr,Wr=-1,Lt=Ln.length;++Wr<Lt;){var re=gr(Ln[Wr]);re!==n&&(pr=pr===n?re:pr+re)}return pr}function ui(Ln,gr){for(var pr=-1,Wr=Array(Ln);++pr<Ln;)Wr[pr]=gr(pr);return Wr}function Hi(Ln,gr){return Ui(gr,function(pr){return[pr,Ln[pr]]})}function lo(Ln){return Ln&&Ln.slice(0,xl(Ln)+1).replace(ri,"")}function mo(Ln){return function(gr){return Ln(gr)}}function ts(Ln,gr){return Ui(gr,function(pr){return Ln[pr]})}function co(Ln,gr){return Ln.has(gr)}function Oo(Ln,gr){for(var pr=-1,Wr=Ln.length;++pr<Wr&&as(gr,Ln[pr],0)>-1;);return pr}function Po(Ln,gr){for(var pr=Ln.length;pr--&&as(gr,Ln[pr],0)>-1;);return pr}function Yo(Ln,gr){for(var pr=Ln.length,Wr=0;pr--;)Ln[pr]===gr&&++Wr;return Wr}var ns=Fe(ar),Os=Fe(Vr);function Lo(Ln){return"\\"+yi[Ln]}function da(Ln,gr){return Ln==null?n:Ln[gr]}function Qs(Ln){return dn.test(Ln)}function ta(Ln){return Xt.test(Ln)}function Oa(Ln){for(var gr,pr=[];!(gr=Ln.next()).done;)pr.push(gr.value);return pr}function _l(Ln){var gr=-1,pr=Array(Ln.size);return Ln.forEach(function(Wr,Lt){pr[++gr]=[Lt,Wr]}),pr}function gs(Ln,gr){return function(pr){return Ln(gr(pr))}}function ds(Ln,gr){for(var pr=-1,Wr=Ln.length,Lt=0,re=[];++pr<Wr;){var me=Ln[pr];(me===gr||me===M)&&(Ln[pr]=M,re[Lt++]=pr)}return re}function es(Ln){var gr=-1,pr=Array(Ln.size);return Ln.forEach(function(Wr){pr[++gr]=Wr}),pr}function Ga(Ln){var gr=-1,pr=Array(Ln.size);return Ln.forEach(function(Wr){pr[++gr]=[Wr,Wr]}),pr}function So(Ln,gr,pr){for(var Wr=pr-1,Lt=Ln.length;++Wr<Lt;)if(Ln[Wr]===gr)return Wr;return-1}function Di(Ln,gr,pr){for(var Wr=pr+1;Wr--;)if(Ln[Wr]===gr)return Wr;return Wr}function Il(Ln){return Qs(Ln)?Pa(Ln):Io(Ln)}function Na(Ln){return Qs(Ln)?fi(Ln):xr(Ln)}function xl(Ln){for(var gr=Ln.length;gr--&&Bt.test(Ln.charAt(gr)););return gr}var Rl=Fe(Jr);function Pa(Ln){for(var gr=Jt.lastIndex=0;Jt.test(Ln);)++gr;return gr}function fi(Ln){return Ln.match(Jt)||[]}function rl(Ln){return Ln.match(gt)||[]}var Xn=function Ln(gr){gr=gr==null?rt:Kr.defaults(rt.Object(),gr,Kr.pick(rt,hn));var pr=gr.Array,Wr=gr.Date,Lt=gr.Error,re=gr.Function,me=gr.Math,Ue=gr.Object,He=gr.RegExp,At=gr.String,Ut=gr.TypeError,en=pr.prototype,Yt=re.prototype,In=Ue.prototype,$n=gr["__core-js_shared__"],wr=Yt.toString,Tr=In.hasOwnProperty,qr=0,di=function(){var L=/[^.]+$/.exec($n&&$n.keys&&$n.keys.IE_PROTO||"");return L?"Symbol(src)_1."+L:""}(),ai=In.toString,Ri=wr.call(Ue),Qi=rt._,so=He("^"+wr.call(Tr).replace($r,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Do=We?gr.Buffer:n,Ro=gr.Symbol,Rs=gr.Uint8Array,Ns=Do?Do.allocUnsafe:n,Ls=gs(Ue.getPrototypeOf,Ue),Ba=Ue.create,Da=In.propertyIsEnumerable,go=en.splice,Wl=Ro?Ro.isConcatSpreadable:n,na=Ro?Ro.iterator:n,Eo=Ro?Ro.toStringTag:n,Fs=function(){try{var L=Ku(Ue,"defineProperty");return L({},"",{}),L}catch{}}(),_a=gr.clearTimeout!==rt.clearTimeout&&gr.clearTimeout,Ya=Wr&&Wr.now!==rt.Date.now&&Wr.now,Ss=gr.setTimeout!==rt.setTimeout&&gr.setTimeout,Zl=me.ceil,Us=me.floor,Ll=Ue.getOwnPropertySymbols,nc=Do?Do.isBuffer:n,Dc=gr.isFinite,xa=en.join,Kl=gs(Ue.keys,Ue),Ea=me.max,js=me.min,jl=Wr.now,Bl=gr.parseInt,il=me.random,ko=en.reverse,fc=Ku(gr,"DataView"),pc=Ku(gr,"Map"),rc=Ku(gr,"Promise"),Ic=Ku(gr,"Set"),su=Ku(gr,"WeakMap"),Rc=Ku(Ue,"create"),El=su&&new su,Nl={},ud=Yu(fc),au=Yu(pc),Lc=Yu(rc),zu=Yu(Ic),mc=Yu(su),ol=Ro?Ro.prototype:n,gc=ol?ol.valueOf:n,Fl=ol?ol.toString:n;function jn(L){if(tl(L)&&!Ws(L)&&!(L instanceof Go)){if(L instanceof Fa)return L;if(Tr.call(L,"__wrapped__"))return wd(L)}return new Fa(L)}var Qa=function(){function L(){}return function(G){if(!wl(G))return{};if(Ba)return Ba(G);L.prototype=G;var de=new L;return L.prototype=n,de}}();function jc(){}function Fa(L,G){this.__wrapped__=L,this.__actions__=[],this.__chain__=!!G,this.__index__=0,this.__values__=n}jn.templateSettings={escape:dr,evaluate:hr,interpolate:Mr,variable:"",imports:{_:jn}},jn.prototype=jc.prototype,jn.prototype.constructor=jn,Fa.prototype=Qa(jc.prototype),Fa.prototype.constructor=Fa;function Go(L){this.__wrapped__=L,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=be,this.__views__=[]}function Tc(){var L=new Go(this.__wrapped__);return L.__actions__=sa(this.__actions__),L.__dir__=this.__dir__,L.__filtered__=this.__filtered__,L.__iteratees__=sa(this.__iteratees__),L.__takeCount__=this.__takeCount__,L.__views__=sa(this.__views__),L}function Zc(){if(this.__filtered__){var L=new Go(this);L.__dir__=-1,L.__filtered__=!0}else L=this.clone(),L.__dir__*=-1;return L}function sl(){var L=this.__wrapped__.value(),G=this.__dir__,de=Ws(L),yt=G<0,pn=de?L.length:0,Wn=xt(0,pn,this.__views__),kr=Wn.start,Lr=Wn.end,ei=Lr-kr,Li=yt?Lr:kr-1,Bi=this.__iteratees__,Yi=Bi.length,Co=0,Jo=js(ei,this.__takeCount__);if(!de||!yt&&pn==ei&&Jo==ei)return xe(L,this.__actions__);var ws=[];e:for(;ei--&&Co<Jo;){Li+=G;for(var Xs=-1,_s=L[Li];++Xs<Yi;){var aa=Bi[Xs],qs=aa.iteratee,tu=aa.type,nu=qs(_s);if(tu==q)_s=nu;else if(!nu){if(tu==ee)continue e;break e}}ws[Co++]=_s}return ws}Go.prototype=Qa(jc.prototype),Go.prototype.constructor=Go;function $s(L){var G=-1,de=L==null?0:L.length;for(this.clear();++G<de;){var yt=L[G];this.set(yt[0],yt[1])}}function xs(){this.__data__=Rc?Rc(null):{},this.size=0}function cs(L){var G=this.has(L)&&delete this.__data__[L];return this.size-=G?1:0,G}function hs(L){var G=this.__data__;if(Rc){var de=G[L];return de===d?n:de}return Tr.call(G,L)?G[L]:n}function Gl(L){var G=this.__data__;return Rc?G[L]!==n:Tr.call(G,L)}function As(L,G){var de=this.__data__;return this.size+=this.has(L)?0:1,de[L]=Rc&&G===n?d:G,this}$s.prototype.clear=xs,$s.prototype.delete=cs,$s.prototype.get=hs,$s.prototype.has=Gl,$s.prototype.set=As;function fs(L){var G=-1,de=L==null?0:L.length;for(this.clear();++G<de;){var yt=L[G];this.set(yt[0],yt[1])}}function $a(){this.__data__=[],this.size=0}function al(L){var G=this.__data__,de=lr(G,L);if(de<0)return!1;var yt=G.length-1;return de==yt?G.pop():go.call(G,de,1),--this.size,!0}function Vs(L){var G=this.__data__,de=lr(G,L);return de<0?n:G[de][1]}function Hs(L){return lr(this.__data__,L)>-1}function ka(L,G){var de=this.__data__,yt=lr(de,L);return yt<0?(++this.size,de.push([L,G])):de[yt][1]=G,this}fs.prototype.clear=$a,fs.prototype.delete=al,fs.prototype.get=Vs,fs.prototype.has=Hs,fs.prototype.set=ka;function kl(L){var G=-1,de=L==null?0:L.length;for(this.clear();++G<de;){var yt=L[G];this.set(yt[0],yt[1])}}function la(){this.size=0,this.__data__={hash:new $s,map:new(pc||fs),string:new $s}}function rs(L){var G=bu(this,L).delete(L);return this.size-=G?1:0,G}function ic(L){return bu(this,L).get(L)}function Mu(L){return bu(this,L).has(L)}function Sd(L,G){var de=bu(this,L),yt=de.size;return de.set(L,G),this.size+=de.size==yt?0:1,this}kl.prototype.clear=la,kl.prototype.delete=rs,kl.prototype.get=ic,kl.prototype.has=Mu,kl.prototype.set=Sd;function Bc(L){var G=-1,de=L==null?0:L.length;for(this.__data__=new kl;++G<de;)this.add(L[G])}function dd(L){return this.__data__.set(L,d),this}function Ha(L){return this.__data__.has(L)}Bc.prototype.add=Bc.prototype.push=dd,Bc.prototype.has=Ha;function ll(L){var G=this.__data__=new fs(L);this.size=G.size}function Nc(){this.__data__=new fs,this.size=0}function Va(L){var G=this.__data__,de=G.delete(L);return this.size=G.size,de}function Ca(L){return this.__data__.get(L)}function Ps(L){return this.__data__.has(L)}function Yl(L,G){var de=this.__data__;if(de instanceof fs){var yt=de.__data__;if(!pc||yt.length<a-1)return yt.push([L,G]),this.size=++de.size,this;de=this.__data__=new kl(yt)}return de.set(L,G),this.size=de.size,this}ll.prototype.clear=Nc,ll.prototype.delete=Va,ll.prototype.get=Ca,ll.prototype.has=Ps,ll.prototype.set=Yl;function Ql(L,G){var de=Ws(L),yt=!de&&Mh(L),pn=!de&&!yt&&ah(L),Wn=!de&&!yt&&!pn&&kf(L),kr=de||yt||pn||Wn,Lr=kr?ui(L.length,At):[],ei=Lr.length;for(var Li in L)(G||Tr.call(L,Li))&&!(kr&&(Li=="length"||pn&&(Li=="offset"||Li=="parent")||Wn&&(Li=="buffer"||Li=="byteLength"||Li=="byteOffset")||$o(Li,ei)))&&Lr.push(Li);return Lr}function Pt(L){var G=L.length;return G?L[hu(0,G-1)]:n}function st(L,G){return jd(sa(L),eo(G,0,L.length))}function nn(L){return jd(sa(L))}function Un(L,G,de){(de!==n&&!nd(L[G],de)||de===n&&!(G in L))&&Oi(L,G,de)}function or(L,G,de){var yt=L[G];(!(Tr.call(L,G)&&nd(yt,de))||de===n&&!(G in L))&&Oi(L,G,de)}function lr(L,G){for(var de=L.length;de--;)if(nd(L[de][0],G))return de;return-1}function jr(L,G,de,yt){return ps(L,function(pn,Wn,kr){G(yt,pn,de(pn),kr)}),yt}function Br(L,G){return L&&vl(G,Cc(G),L)}function Yr(L,G){return L&&vl(G,od(G),L)}function Oi(L,G,de){G=="__proto__"&&Fs?Fs(L,G,{configurable:!0,enumerable:!0,value:de,writable:!0}):L[G]=de}function Mi(L,G){for(var de=-1,yt=G.length,pn=pr(yt),Wn=L==null;++de<yt;)pn[de]=Wn?n:dp(L,G[de]);return pn}function eo(L,G,de){return L===L&&(de!==n&&(L=L<=de?L:de),G!==n&&(L=L>=G?L:G)),L}function Ni(L,G,de,yt,pn,Wn){var kr,Lr=G&C,ei=G&w,Li=G&I;if(de&&(kr=pn?de(L,yt,pn,Wn):de(L)),kr!==n)return kr;if(!wl(L))return L;var Bi=Ws(L);if(Bi){if(kr=Ar(L),!Lr)return sa(L,kr)}else{var Yi=Ua(L),Co=Yi==$e||Yi==Qe;if(ah(L))return Ji(L,Lr);if(Yi==un||Yi==Me||Co&&!pn){if(kr=ei||Co?{}:Rr(L),!Lr)return ei?mh(L,Yr(kr,L)):Ih(L,Br(kr,L))}else{if(!Vn[Yi])return pn?L:{};kr=hi(L,Yi,Lr)}}Wn||(Wn=new ll);var Jo=Wn.get(L);if(Jo)return Jo;Wn.set(L,kr),Fp(L)?L.forEach(function(_s){kr.add(Ni(_s,G,de,_s,L,Wn))}):lp(L)&&L.forEach(function(_s,aa){kr.set(aa,Ni(_s,G,de,aa,L,Wn))});var ws=Li?ei?Fh:bh:ei?od:Cc,Xs=Bi?n:ws(L);return Ei(Xs||L,function(_s,aa){Xs&&(aa=_s,_s=L[aa]),or(kr,aa,Ni(_s,G,de,aa,L,Wn))}),kr}function no(L){var G=Cc(L);return function(de){return vo(de,L,G)}}function vo(L,G,de){var yt=de.length;if(L==null)return!yt;for(L=Ue(L);yt--;){var pn=de[yt],Wn=G[pn],kr=L[pn];if(kr===n&&!(pn in L)||!Wn(kr))return!1}return!0}function Qo(L,G,de){if(typeof L!="function")throw new Ut(h);return Ka(function(){L.apply(n,de)},G)}function No(L,G,de,yt){var pn=-1,Wn=uo,kr=!0,Lr=L.length,ei=[],Li=G.length;if(!Lr)return ei;de&&(G=Ui(G,mo(de))),yt?(Wn=qi,kr=!1):G.length>=a&&(Wn=co,kr=!1,G=new Bc(G));e:for(;++pn<Lr;){var Bi=L[pn],Yi=de==null?Bi:de(Bi);if(Bi=yt||Bi!==0?Bi:0,kr&&Yi===Yi){for(var Co=Li;Co--;)if(G[Co]===Yi)continue e;ei.push(Bi)}else Wn(G,Yi,yt)||ei.push(Bi)}return ei}var ps=Zu($l),ba=Zu(Ou,!0);function Fc(L,G){var de=!0;return ps(L,function(yt,pn,Wn){return de=!!G(yt,pn,Wn),de}),de}function cl(L,G,de){for(var yt=-1,pn=L.length;++yt<pn;){var Wn=L[yt],kr=G(Wn);if(kr!=null&&(Lr===n?kr===kr&&!id(kr):de(kr,Lr)))var Lr=kr,ei=Wn}return ei}function Kc(L,G,de,yt){var pn=L.length;for(de=Zs(de),de<0&&(de=-de>pn?0:pn+de),yt=yt===n||yt>pn?pn:Zs(yt),yt<0&&(yt+=pn),yt=de>yt?0:Cf(yt);de<yt;)L[de++]=G;return L}function lu(L,G){var de=[];return ps(L,function(yt,pn,Wn){G(yt,pn,Wn)&&de.push(yt)}),de}function Ia(L,G,de,yt,pn){var Wn=-1,kr=L.length;for(de||(de=ao),pn||(pn=[]);++Wn<kr;){var Lr=L[Wn];G>0&&de(Lr)?G>1?Ia(Lr,G-1,de,yt,pn):Vo(pn,Lr):yt||(pn[pn.length]=Lr)}return pn}var Gc=ef(),Jl=ef(!0);function $l(L,G){return L&&Gc(L,G,Cc)}function Ou(L,G){return L&&Jl(L,G,Cc)}function oc(L,G){return Xi(G,function(de){return Oh(L[de])})}function ul(L,G){G=mr(G,L);for(var de=0,yt=G.length;L!=null&&de<yt;)L=L[wu(G[de++])];return de&&de==yt?L:n}function Yc(L,G,de){var yt=G(L);return Ws(L)?yt:Vo(yt,de(L))}function gl(L){return L==null?L===n?Tn:mn:Eo&&Eo in Ue(L)?nf(L):va(L)}function Ad(L,G){return L>G}function Qc(L,G){return L!=null&&Tr.call(L,G)}function cu(L,G){return L!=null&&G in Ue(L)}function hd(L,G,de){return L>=js(G,de)&&L<Ea(G,de)}function Uu(L,G,de){for(var yt=de?qi:uo,pn=L[0].length,Wn=L.length,kr=Wn,Lr=pr(Wn),ei=1/0,Li=[];kr--;){var Bi=L[kr];kr&&G&&(Bi=Ui(Bi,mo(G))),ei=js(Bi.length,ei),Lr[kr]=!de&&(G||pn>=120&&Bi.length>=120)?new Bc(kr&&Bi):n}Bi=L[0];var Yi=-1,Co=Lr[0];e:for(;++Yi<pn&&Li.length<ei;){var Jo=Bi[Yi],ws=G?G(Jo):Jo;if(Jo=de||Jo!==0?Jo:0,!(Co?co(Co,ws):yt(Li,ws,de))){for(kr=Wn;--kr;){var Xs=Lr[kr];if(!(Xs?co(Xs,ws):yt(L[kr],ws,de)))continue e}Co&&Co.push(ws),Li.push(Jo)}}return Li}function uu(L,G,de,yt){return $l(L,function(pn,Wn,kr){G(yt,de(pn),Wn,kr)}),yt}function sc(L,G,de){G=mr(G,L),L=yd(L,G);var yt=L==null?L:L[wu(Ms(G))];return yt==null?n:ki(yt,L,de)}function Md(L){return tl(L)&&gl(L)==Me}function Od(L){return tl(L)&&gl(L)==Je}function Wd(L){return tl(L)&&gl(L)==mt}function Cl(L,G,de,yt,pn){return L===G?!0:L==null||G==null||!tl(L)&&!tl(G)?L!==L&&G!==G:Pd(L,G,de,yt,Cl,pn)}function Pd(L,G,de,yt,pn,Wn){var kr=Ws(L),Lr=Ws(G),ei=kr?Ce:Ua(L),Li=Lr?Ce:Ua(G);ei=ei==Me?un:ei,Li=Li==Me?un:Li;var Bi=ei==un,Yi=Li==un,Co=ei==Li;if(Co&&ah(L)){if(!ah(G))return!1;kr=!0,Bi=!1}if(Co&&!Bi)return Wn||(Wn=new ll),kr||kf(L)?Rd(L,G,de,yt,pn,Wn):Nh(L,G,ei,de,yt,pn,Wn);if(!(de&F)){var Jo=Bi&&Tr.call(L,"__wrapped__"),ws=Yi&&Tr.call(G,"__wrapped__");if(Jo||ws){var Xs=Jo?L.value():L,_s=ws?G.value():G;return Wn||(Wn=new ll),pn(Xs,_s,de,yt,Wn)}}return Co?(Wn||(Wn=new ll),Ld(L,G,de,yt,pn,Wn)):!1}function fd(L){return tl(L)&&Ua(L)==bt}function Pu(L,G,de,yt){var pn=de.length,Wn=pn,kr=!yt;if(L==null)return!Wn;for(L=Ue(L);pn--;){var Lr=de[pn];if(kr&&Lr[2]?Lr[1]!==L[Lr[0]]:!(Lr[0]in L))return!1}for(;++pn<Wn;){Lr=de[pn];var ei=Lr[0],Li=L[ei],Bi=Lr[1];if(kr&&Lr[2]){if(Li===n&&!(ei in L))return!1}else{var Yi=new ll;if(yt)var Co=yt(Li,Bi,ei,L,G,Yi);if(!(Co===n?Cl(Bi,Li,F|U,yt,Yi):Co))return!1}}return!0}function fh(L){if(!wl(L)||Sa(L))return!1;var G=Oh(L)?so:Sr;return G.test(Yu(L))}function Dh(L){return tl(L)&&gl(L)==$t}function ph(L){return tl(L)&&Ua(L)==et}function Zd(L){return tl(L)&&xf(L.length)&&!!Jn[gl(L)]}function Jc(L){return typeof L=="function"?L:L==null?ad:typeof L=="object"?Ws(L)?Iu(L[0],L[1]):Kd(L):e0(L)}function Xl(L){if(!Xa(L))return Kl(L);var G=[];for(var de in Ue(L))Tr.call(L,de)&&de!="constructor"&&G.push(de);return G}function vc(L){if(!wl(L))return ya(L);var G=Xa(L),de=[];for(var yt in L)yt=="constructor"&&(G||!Tr.call(L,yt))||de.push(yt);return de}function Du(L,G){return L<G}function Hu(L,G){var de=-1,yt=rd(L)?pr(L.length):[];return ps(L,function(pn,Wn,kr){yt[++de]=G(pn,Wn,kr)}),yt}function Kd(L){var G=qd(L);return G.length==1&&G[0][2]?ga(G[0][0],G[0][1]):function(de){return de===L||Pu(de,L,G)}}function Iu(L,G){return Js(L)&&qa(G)?ga(wu(L),G):function(de){var yt=dp(de,L);return yt===n&&yt===G?Kp(de,L):Cl(G,yt,F|U)}}function ac(L,G,de,yt,pn){L!==G&&Gc(G,function(Wn,kr){if(pn||(pn=new ll),wl(Wn))Wu(L,G,kr,de,ac,yt,pn);else{var Lr=yt?yt(fl(L,kr),Wn,kr+"",L,G,pn):n;Lr===n&&(Lr=Wn),Un(L,kr,Lr)}},od)}function Wu(L,G,de,yt,pn,Wn,kr){var Lr=fl(L,de),ei=fl(G,de),Li=kr.get(ei);if(Li){Un(L,de,Li);return}var Bi=Wn?Wn(Lr,ei,de+"",L,G,kr):n,Yi=Bi===n;if(Yi){var Co=Ws(ei),Jo=!Co&&ah(ei),ws=!Co&&!Jo&&kf(ei);Bi=ei,Co||Jo||ws?Ws(Lr)?Bi=Lr:ec(Lr)?Bi=sa(Lr):Jo?(Yi=!1,Bi=Ji(ei,!0)):ws?(Yi=!1,Bi=qo(ei,!0)):Bi=[]:Ef(ei)||Mh(ei)?(Bi=Lr,Mh(Lr)?Bi=hf(Lr):(!wl(Lr)||Oh(Lr))&&(Bi=Rr(ei))):Yi=!1}Yi&&(kr.set(ei,Bi),pn(Bi,ei,yt,Wn,kr),kr.delete(ei)),Un(L,de,Bi)}function ca(L,G){var de=L.length;if(de)return G+=G<0?de:0,$o(G,de)?L[G]:n}function bc(L,G,de){G.length?G=Ui(G,function(Wn){return Ws(Wn)?function(kr){return ul(kr,Wn.length===1?Wn[0]:Wn)}:Wn}):G=[ad];var yt=-1;G=Ui(G,mo(Zo()));var pn=Hu(L,function(Wn,kr,Lr){var ei=Ui(G,function(Li){return Li(Wn)});return{criteria:ei,index:++yt,value:Wn}});return qn(pn,function(Wn,kr){return Za(Wn,kr,de)})}function Gd(L,G){return du(L,G,function(de,yt){return Kp(L,yt)})}function du(L,G,de){for(var yt=-1,pn=G.length,Wn={};++yt<pn;){var kr=G[yt],Lr=ul(L,kr);de(Lr,kr)&&ma(Wn,mr(kr,L),Lr)}return Wn}function Ru(L){return function(G){return ul(G,L)}}function Sc(L,G,de,yt){var pn=yt?Wo:as,Wn=-1,kr=G.length,Lr=L;for(L===G&&(G=sa(G)),de&&(Lr=Ui(L,mo(de)));++Wn<kr;)for(var ei=0,Li=G[Wn],Bi=de?de(Li):Li;(ei=pn(Lr,Bi,ei,yt))>-1;)Lr!==L&&go.call(Lr,ei,1),go.call(L,ei,1);return L}function Ta(L,G){for(var de=L?G.length:0,yt=de-1;de--;){var pn=G[de];if(de==yt||pn!==Wn){var Wn=pn;$o(pn)?go.call(L,pn,1):P(L,pn)}}return L}function hu(L,G){return L+Us(il()*(G-L+1))}function pd(L,G,de,yt){for(var pn=-1,Wn=Ea(Zl((G-L)/(de||1)),0),kr=pr(Wn);Wn--;)kr[yt?Wn:++pn]=L,L+=de;return kr}function md(L,G){var de="";if(!L||G<1||G>pe)return de;do G%2&&(de+=L),G=Us(G/2),G&&(L+=L);while(G);return de}function vs(L,G){return Gu(of(L,G,ad),L+"")}function gd(L){return Pt(Af(L))}function yc(L,G){var de=Af(L);return jd(de,eo(G,0,de.length))}function ma(L,G,de,yt){if(!wl(L))return L;G=mr(G,L);for(var pn=-1,Wn=G.length,kr=Wn-1,Lr=L;Lr!=null&&++pn<Wn;){var ei=wu(G[pn]),Li=de;if(ei==="__proto__"||ei==="constructor"||ei==="prototype")return L;if(pn!=kr){var Bi=Lr[ei];Li=yt?yt(Bi,ei,Lr):n,Li===n&&(Li=wl(Bi)?Bi:$o(G[pn+1])?[]:{})}or(Lr,ei,Li),Lr=Lr[ei]}return L}var oa=El?function(L,G){return El.set(L,G),L}:ad,Wa=Fs?function(L,G){return Fs(L,"toString",{configurable:!0,enumerable:!1,value:vp(G),writable:!0})}:ad;function fu(L){return jd(Af(L))}function Tl(L,G,de){var yt=-1,pn=L.length;G<0&&(G=-G>pn?0:pn+G),de=de>pn?pn:de,de<0&&(de+=pn),pn=G>de?0:de-G>>>0,G>>>=0;for(var Wn=pr(pn);++yt<pn;)Wn[yt]=L[yt+G];return Wn}function pu(L,G){var de;return ps(L,function(yt,pn,Wn){return de=G(yt,pn,Wn),!de}),!!de}function Xc(L,G,de){var yt=0,pn=L==null?yt:L.length;if(typeof G=="number"&&G===G&&pn<=ue){for(;yt<pn;){var Wn=yt+pn>>>1,kr=L[Wn];kr!==null&&!id(kr)&&(de?kr<=G:kr<G)?yt=Wn+1:pn=Wn}return pn}return dl(L,G,ad,de)}function dl(L,G,de,yt){var pn=0,Wn=L==null?0:L.length;if(Wn===0)return 0;G=de(G);for(var kr=G!==G,Lr=G===null,ei=id(G),Li=G===n;pn<Wn;){var Bi=Us((pn+Wn)/2),Yi=de(L[Bi]),Co=Yi!==n,Jo=Yi===null,ws=Yi===Yi,Xs=id(Yi);if(kr)var _s=yt||ws;else Li?_s=ws&&(yt||Co):Lr?_s=ws&&Co&&(yt||!Jo):ei?_s=ws&&Co&&!Jo&&(yt||!Xs):Jo||Xs?_s=!1:_s=yt?Yi<=G:Yi<G;_s?pn=Bi+1:Wn=Bi}return js(Wn,fe)}function wc(L,G){for(var de=-1,yt=L.length,pn=0,Wn=[];++de<yt;){var kr=L[de],Lr=G?G(kr):kr;if(!de||!nd(Lr,ei)){var ei=Lr;Wn[pn++]=kr===0?0:kr}}return Wn}function W(L){return typeof L=="number"?L:id(L)?se:+L}function o(L){if(typeof L=="string")return L;if(Ws(L))return Ui(L,o)+"";if(id(L))return Fl?Fl.call(L):"";var G=L+"";return G=="0"&&1/L==-X?"-0":G}function g(L,G,de){var yt=-1,pn=uo,Wn=L.length,kr=!0,Lr=[],ei=Lr;if(de)kr=!1,pn=qi;else if(Wn>=a){var Li=G?null:lc(L);if(Li)return es(Li);kr=!1,pn=co,ei=new Bc}else ei=G?[]:Lr;e:for(;++yt<Wn;){var Bi=L[yt],Yi=G?G(Bi):Bi;if(Bi=de||Bi!==0?Bi:0,kr&&Yi===Yi){for(var Co=ei.length;Co--;)if(ei[Co]===Yi)continue e;G&&ei.push(Yi),Lr.push(Bi)}else pn(ei,Yi,de)||(ei!==Lr&&ei.push(Yi),Lr.push(Bi))}return Lr}function P(L,G){return G=mr(G,L),L=yd(L,G),L==null||delete L[wu(Ms(G))]}function K(L,G,de,yt){return ma(L,G,de(ul(L,G)),yt)}function ie(L,G,de,yt){for(var pn=L.length,Wn=yt?pn:-1;(yt?Wn--:++Wn<pn)&&G(L[Wn],Wn,L););return de?Tl(L,yt?0:Wn,yt?Wn+1:pn):Tl(L,yt?Wn+1:0,yt?pn:Wn)}function xe(L,G){var de=L;return de instanceof Go&&(de=de.value()),Cs(G,function(yt,pn){return pn.func.apply(pn.thisArg,Vo([yt],pn.args))},de)}function jt(L,G,de){var yt=L.length;if(yt<2)return yt?g(L[0]):[];for(var pn=-1,Wn=pr(yt);++pn<yt;)for(var kr=L[pn],Lr=-1;++Lr<yt;)Lr!=pn&&(Wn[pn]=No(Wn[pn]||kr,L[Lr],G,de));return g(Ia(Wn,1),G,de)}function tn(L,G,de){for(var yt=-1,pn=L.length,Wn=G.length,kr={};++yt<pn;){var Lr=yt<Wn?G[yt]:n;de(kr,L[yt],Lr)}return kr}function xn(L){return ec(L)?L:[]}function Fn(L){return typeof L=="function"?L:ad}function mr(L,G){return Ws(L)?L:Js(L,G)?[L]:yu(Aa(L))}var Pr=vs;function ti(L,G,de){var yt=L.length;return de=de===n?yt:de,!G&&de>=yt?L:Tl(L,G,de)}var Ci=_a||function(L){return rt.clearTimeout(L)};function Ji(L,G){if(G)return L.slice();var de=L.length,yt=Ns?Ns(de):new L.constructor(de);return L.copy(yt),yt}function ho(L){var G=new L.constructor(L.byteLength);return new Rs(G).set(new Rs(L)),G}function is(L,G){var de=G?ho(L.buffer):L.buffer;return new L.constructor(de,L.byteOffset,L.byteLength)}function Fo(L){var G=new L.constructor(L.source,Ht.exec(L));return G.lastIndex=L.lastIndex,G}function Ds(L){return gc?Ue(gc.call(L)):{}}function qo(L,G){var de=G?ho(L.buffer):L.buffer;return new L.constructor(de,L.byteOffset,L.length)}function $c(L,G){if(L!==G){var de=L!==n,yt=L===null,pn=L===L,Wn=id(L),kr=G!==n,Lr=G===null,ei=G===G,Li=id(G);if(!Lr&&!Li&&!Wn&&L>G||Wn&&kr&&ei&&!Lr&&!Li||yt&&kr&&ei||!de&&ei||!pn)return 1;if(!yt&&!Wn&&!Li&&L<G||Li&&de&&pn&&!yt&&!Wn||Lr&&de&&pn||!kr&&pn||!ei)return-1}return 0}function Za(L,G,de){for(var yt=-1,pn=L.criteria,Wn=G.criteria,kr=pn.length,Lr=de.length;++yt<kr;){var ei=$c(pn[yt],Wn[yt]);if(ei){if(yt>=Lr)return ei;var Li=de[yt];return ei*(Li=="desc"?-1:1)}}return L.index-G.index}function Yd(L,G,de,yt){for(var pn=-1,Wn=L.length,kr=de.length,Lr=-1,ei=G.length,Li=Ea(Wn-kr,0),Bi=pr(ei+Li),Yi=!yt;++Lr<ei;)Bi[Lr]=G[Lr];for(;++pn<kr;)(Yi||pn<Wn)&&(Bi[de[pn]]=L[pn]);for(;Li--;)Bi[Lr++]=L[pn++];return Bi}function mu(L,G,de,yt){for(var pn=-1,Wn=L.length,kr=-1,Lr=de.length,ei=-1,Li=G.length,Bi=Ea(Wn-Lr,0),Yi=pr(Bi+Li),Co=!yt;++pn<Bi;)Yi[pn]=L[pn];for(var Jo=pn;++ei<Li;)Yi[Jo+ei]=G[ei];for(;++kr<Lr;)(Co||pn<Wn)&&(Yi[Jo+de[kr]]=L[pn++]);return Yi}function sa(L,G){var de=-1,yt=L.length;for(G||(G=pr(yt));++de<yt;)G[de]=L[de];return G}function vl(L,G,de,yt){var pn=!de;de||(de={});for(var Wn=-1,kr=G.length;++Wn<kr;){var Lr=G[Wn],ei=yt?yt(de[Lr],L[Lr],Lr,de,L):n;ei===n&&(ei=L[Lr]),pn?Oi(de,Lr,ei):or(de,Lr,ei)}return de}function Ih(L,G){return vl(L,pf(L),G)}function mh(L,G){return vl(L,rf(L),G)}function Rh(L,G){return function(de,yt){var pn=Ws(de)?Si:jr,Wn=G?G():{};return pn(de,L,Zo(yt,2),Wn)}}function Lu(L){return vs(function(G,de){var yt=-1,pn=de.length,Wn=pn>1?de[pn-1]:n,kr=pn>2?de[2]:n;for(Wn=L.length>3&&typeof Wn=="function"?(pn--,Wn):n,kr&&wo(de[0],de[1],kr)&&(Wn=pn<3?n:Wn,pn=1),G=Ue(G);++yt<pn;){var Lr=de[yt];Lr&&L(G,Lr,yt,Wn)}return G})}function Zu(L,G){return function(de,yt){if(de==null)return de;if(!rd(de))return L(de,yt);for(var pn=de.length,Wn=G?pn:-1,kr=Ue(de);(G?Wn--:++Wn<pn)&&yt(kr[Wn],Wn,kr)!==!1;);return de}}function ef(L){return function(G,de,yt){for(var pn=-1,Wn=Ue(G),kr=yt(G),Lr=kr.length;Lr--;){var ei=kr[L?Lr:++pn];if(de(Wn[ei],ei,Wn)===!1)break}return G}}function Qd(L,G,de){var yt=G&B,pn=gu(L);function Wn(){var kr=this&&this!==rt&&this instanceof Wn?pn:L;return kr.apply(yt?de:this,arguments)}return Wn}function Ra(L){return function(G){G=Aa(G);var de=Qs(G)?Na(G):n,yt=de?de[0]:G.charAt(0),pn=de?ti(de,1).join(""):G.slice(1);return yt[L]()+pn}}function ql(L){return function(G){return Cs(Wf(Um(G).replace(St,"")),L,"")}}function gu(L){return function(){var G=arguments;switch(G.length){case 0:return new L;case 1:return new L(G[0]);case 2:return new L(G[0],G[1]);case 3:return new L(G[0],G[1],G[2]);case 4:return new L(G[0],G[1],G[2],G[3]);case 5:return new L(G[0],G[1],G[2],G[3],G[4]);case 6:return new L(G[0],G[1],G[2],G[3],G[4],G[5]);case 7:return new L(G[0],G[1],G[2],G[3],G[4],G[5],G[6])}var de=Qa(L.prototype),yt=L.apply(de,G);return wl(yt)?yt:de}}function Jd(L,G,de){var yt=gu(L);function pn(){for(var Wn=arguments.length,kr=pr(Wn),Lr=Wn,ei=bd(pn);Lr--;)kr[Lr]=arguments[Lr];var Li=Wn<3&&kr[0]!==ei&&kr[Wn-1]!==ei?[]:ds(kr,ei);if(Wn-=Li.length,Wn<de)return Bh(L,G,hl,pn.placeholder,n,kr,Li,n,n,de-Wn);var Bi=this&&this!==rt&&this instanceof pn?yt:L;return ki(Bi,this,kr)}return pn}function Lh(L){return function(G,de,yt){var pn=Ue(G);if(!rd(G)){var Wn=Zo(de,3);G=Cc(G),de=function(Lr){return Wn(pn[Lr],Lr,pn)}}var kr=L(G,de,yt);return kr>-1?pn[Wn?G[kr]:kr]:n}}function jh(L){return cc(function(G){var de=G.length,yt=de,pn=Fa.prototype.thru;for(L&&G.reverse();yt--;){var Wn=G[yt];if(typeof Wn!="function")throw new Ut(h);if(pn&&!kr&&vd(Wn)=="wrapper")var kr=new Fa([],!0)}for(yt=kr?yt:de;++yt<de;){Wn=G[yt];var Lr=vd(Wn),ei=Lr=="wrapper"?qc(Wn):n;ei&&mi(ei[0])&&ei[1]==(E|x|u|A)&&!ei[4].length&&ei[9]==1?kr=kr[vd(ei[0])].apply(kr,ei[3]):kr=Wn.length==1&&mi(Wn)?kr[Lr]():kr.thru(Wn)}return function(){var Li=arguments,Bi=Li[0];if(kr&&Li.length==1&&Ws(Bi))return kr.plant(Bi).value();for(var Yi=0,Co=de?G[Yi].apply(this,Li):Bi;++Yi<de;)Co=G[Yi].call(this,Co);return Co}})}function hl(L,G,de,yt,pn,Wn,kr,Lr,ei,Li){var Bi=G&E,Yi=G&B,Co=G&N,Jo=G&(x|T),ws=G&R,Xs=Co?n:gu(L);function _s(){for(var aa=arguments.length,qs=pr(aa),tu=aa;tu--;)qs[tu]=arguments[tu];if(Jo)var nu=bd(_s),ku=Yo(qs,nu);if(yt&&(qs=Yd(qs,yt,pn,Jo)),Wn&&(qs=mu(qs,Wn,kr,Jo)),aa-=ku,Jo&&aa<Li){var zl=ds(qs,nu);return Bh(L,G,hl,_s.placeholder,de,qs,zl,Lr,ei,Li-aa)}var Cd=Yi?de:this,dh=Co?Cd[L]:L;return aa=qs.length,Lr?qs=$h(qs,Lr):ws&&aa>1&&qs.reverse(),Bi&&ei<aa&&(qs.length=ei),this&&this!==rt&&this instanceof _s&&(dh=Xs||gu(dh)),dh.apply(Cd,qs)}return _s}function za(L,G){return function(de,yt){return uu(de,L,G(yt),{})}}function vu(L,G){return function(de,yt){var pn;if(de===n&&yt===n)return G;if(de!==n&&(pn=de),yt!==n){if(pn===n)return yt;typeof de=="string"||typeof yt=="string"?(de=o(de),yt=o(yt)):(de=W(de),yt=W(yt)),pn=L(de,yt)}return pn}}function ju(L){return cc(function(G){return G=Ui(G,mo(Zo())),vs(function(de){var yt=this;return L(G,function(pn){return ki(pn,yt,de)})})})}function Xd(L,G){G=G===n?" ":o(G);var de=G.length;if(de<2)return de?md(G,L):G;var yt=md(G,Zl(L/Il(G)));return Qs(G)?ti(Na(yt),0,L).join(""):yt.slice(0,L)}function gh(L,G,de,yt){var pn=G&B,Wn=gu(L);function kr(){for(var Lr=-1,ei=arguments.length,Li=-1,Bi=yt.length,Yi=pr(Bi+ei),Co=this&&this!==rt&&this instanceof kr?Wn:L;++Li<Bi;)Yi[Li]=yt[Li];for(;ei--;)Yi[Li++]=arguments[++Lr];return ki(Co,pn?de:this,Yi)}return kr}function Dd(L){return function(G,de,yt){return yt&&typeof yt!="number"&&wo(G,de,yt)&&(de=yt=n),G=ch(G),de===n?(de=G,G=0):de=ch(de),yt=yt===n?G<de?1:-1:ch(yt),pd(G,de,yt,L)}}function Id(L){return function(G,de){return typeof G=="string"&&typeof de=="string"||(G=Fu(G),de=Fu(de)),L(G,de)}}function Bh(L,G,de,yt,pn,Wn,kr,Lr,ei,Li){var Bi=G&x,Yi=Bi?kr:n,Co=Bi?n:kr,Jo=Bi?Wn:n,ws=Bi?n:Wn;G|=Bi?u:b,G&=~(Bi?b:u),G&D||(G&=~(B|N));var Xs=[L,G,pn,Jo,Yi,ws,Co,Lr,ei,Li],_s=de.apply(n,Xs);return mi(L)&&Uc(_s,Xs),_s.placeholder=yt,Vh(_s,L,G)}function yo(L){var G=me[L];return function(de,yt){if(de=Fu(de),yt=yt==null?0:js(Zs(yt),292),yt&&Dc(de)){var pn=(Aa(de)+"e").split("e"),Wn=G(pn[0]+"e"+(+pn[1]+yt));return pn=(Aa(Wn)+"e").split("e"),+(pn[0]+"e"+(+pn[1]-yt))}return G(de)}}var lc=Ic&&1/es(new Ic([,-0]))[1]==X?function(L){return new Ic(L)}:wp;function Sl(L){return function(G){var de=Ua(G);return de==bt?_l(G):de==et?Ga(G):Hi(G,L(G))}}function Vc(L,G,de,yt,pn,Wn,kr,Lr){var ei=G&N;if(!ei&&typeof L!="function")throw new Ut(h);var Li=yt?yt.length:0;if(Li||(G&=~(u|b),yt=pn=n),kr=kr===n?kr:Ea(Zs(kr),0),Lr=Lr===n?Lr:Zs(Lr),Li-=pn?pn.length:0,G&b){var Bi=yt,Yi=pn;yt=pn=n}var Co=ei?n:qc(L),Jo=[L,G,de,yt,pn,Bi,Yi,Wn,kr,Lr];if(Co&&eh(Jo,Co),L=Jo[0],G=Jo[1],de=Jo[2],yt=Jo[3],pn=Jo[4],Lr=Jo[9]=Jo[9]===n?ei?0:L.length:Ea(Jo[9]-Li,0),!Lr&&G&(x|T)&&(G&=~(x|T)),!G||G==B)var ws=Qd(L,G,de);else G==x||G==T?ws=Jd(L,G,Lr):(G==u||G==(B|u))&&!pn.length?ws=gh(L,G,de,yt):ws=hl.apply(n,Jo);var Xs=Co?oa:Uc;return Vh(Xs(ws,Jo),L,G)}function vh(L,G,de,yt){return L===n||nd(L,In[de])&&!Tr.call(yt,de)?G:L}function tf(L,G,de,yt,pn,Wn){return wl(L)&&wl(G)&&(Wn.set(G,L),ac(L,G,n,tf,Wn),Wn.delete(G)),L}function zc(L){return Ef(L)?n:L}function Rd(L,G,de,yt,pn,Wn){var kr=de&F,Lr=L.length,ei=G.length;if(Lr!=ei&&!(kr&&ei>Lr))return!1;var Li=Wn.get(L),Bi=Wn.get(G);if(Li&&Bi)return Li==G&&Bi==L;var Yi=-1,Co=!0,Jo=de&U?new Bc:n;for(Wn.set(L,G),Wn.set(G,L);++Yi<Lr;){var ws=L[Yi],Xs=G[Yi];if(yt)var _s=kr?yt(Xs,ws,Yi,G,L,Wn):yt(ws,Xs,Yi,L,G,Wn);if(_s!==n){if(_s)continue;Co=!1;break}if(Jo){if(!Ts(G,function(aa,qs){if(!co(Jo,qs)&&(ws===aa||pn(ws,aa,de,yt,Wn)))return Jo.push(qs)})){Co=!1;break}}else if(!(ws===Xs||pn(ws,Xs,de,yt,Wn))){Co=!1;break}}return Wn.delete(L),Wn.delete(G),Co}function Nh(L,G,de,yt,pn,Wn,kr){switch(de){case wt:if(L.byteLength!=G.byteLength||L.byteOffset!=G.byteOffset)return!1;L=L.buffer,G=G.buffer;case Je:return!(L.byteLength!=G.byteLength||!Wn(new Rs(L),new Rs(G)));case Ye:case mt:case It:return nd(+L,+G);case ln:return L.name==G.name&&L.message==G.message;case $t:case Kt:return L==G+"";case bt:var Lr=_l;case et:var ei=yt&F;if(Lr||(Lr=es),L.size!=G.size&&!ei)return!1;var Li=kr.get(L);if(Li)return Li==G;yt|=U,kr.set(L,G);var Bi=Rd(Lr(L),Lr(G),yt,pn,Wn,kr);return kr.delete(L),Bi;case kn:if(gc)return gc.call(L)==gc.call(G)}return!1}function Ld(L,G,de,yt,pn,Wn){var kr=de&F,Lr=bh(L),ei=Lr.length,Li=bh(G),Bi=Li.length;if(ei!=Bi&&!kr)return!1;for(var Yi=ei;Yi--;){var Co=Lr[Yi];if(!(kr?Co in G:Tr.call(G,Co)))return!1}var Jo=Wn.get(L),ws=Wn.get(G);if(Jo&&ws)return Jo==G&&ws==L;var Xs=!0;Wn.set(L,G),Wn.set(G,L);for(var _s=kr;++Yi<ei;){Co=Lr[Yi];var aa=L[Co],qs=G[Co];if(yt)var tu=kr?yt(qs,aa,Co,G,L,Wn):yt(aa,qs,Co,L,G,Wn);if(!(tu===n?aa===qs||pn(aa,qs,de,yt,Wn):tu)){Xs=!1;break}_s||(_s=Co=="constructor")}if(Xs&&!_s){var nu=L.constructor,ku=G.constructor;nu!=ku&&"constructor"in L&&"constructor"in G&&!(typeof nu=="function"&&nu instanceof nu&&typeof ku=="function"&&ku instanceof ku)&&(Xs=!1)}return Wn.delete(L),Wn.delete(G),Xs}function cc(L){return Gu(of(L,n,_d),L+"")}function bh(L){return Yc(L,Cc,pf)}function Fh(L){return Yc(L,od,rf)}var qc=El?function(L){return El.get(L)}:wp;function vd(L){for(var G=L.name+"",de=Nl[G],yt=Tr.call(Nl,G)?de.length:0;yt--;){var pn=de[yt],Wn=pn.func;if(Wn==null||Wn==L)return pn.name}return G}function bd(L){var G=Tr.call(jn,"placeholder")?jn:L;return G.placeholder}function Zo(){var L=jn.iteratee||Xp;return L=L===Xp?Jc:L,arguments.length?L(arguments[0],arguments[1]):L}function bu(L,G){var de=L.__data__;return Bs(G)?de[typeof G=="string"?"string":"hash"]:de.map}function qd(L){for(var G=Cc(L),de=G.length;de--;){var yt=G[de],pn=L[yt];G[de]=[yt,pn,qa(pn)]}return G}function Ku(L,G){var de=da(L,G);return fh(de)?de:n}function nf(L){var G=Tr.call(L,Eo),de=L[Eo];try{L[Eo]=n;var yt=!0}catch{}var pn=ai.call(L);return yt&&(G?L[Eo]=de:delete L[Eo]),pn}var pf=Ll?function(L){return L==null?[]:(L=Ue(L),Xi(Ll(L),function(G){return Da.call(L,G)}))}:t0,rf=Ll?function(L){for(var G=[];L;)Vo(G,pf(L)),L=Ls(L);return G}:t0,Ua=gl;(fc&&Ua(new fc(new ArrayBuffer(1)))!=wt||pc&&Ua(new pc)!=bt||rc&&Ua(rc.resolve())!=Be||Ic&&Ua(new Ic)!=et||su&&Ua(new su)!=ht)&&(Ua=function(L){var G=gl(L),de=G==un?L.constructor:n,yt=de?Yu(de):"";if(yt)switch(yt){case ud:return wt;case au:return bt;case Lc:return Be;case zu:return et;case mc:return ht}return G});function xt(L,G,de){for(var yt=-1,pn=de.length;++yt<pn;){var Wn=de[yt],kr=Wn.size;switch(Wn.type){case"drop":L+=kr;break;case"dropRight":G-=kr;break;case"take":G=js(G,L+kr);break;case"takeRight":L=Ea(L,G-kr);break}}return{start:L,end:G}}function Dn(L){var G=L.match(bn);return G?G[1].split(cn):[]}function er(L,G,de){G=mr(G,L);for(var yt=-1,pn=G.length,Wn=!1;++yt<pn;){var kr=wu(G[yt]);if(!(Wn=L!=null&&de(L,kr)))break;L=L[kr]}return Wn||++yt!=pn?Wn:(pn=L==null?0:L.length,!!pn&&xf(pn)&&$o(kr,pn)&&(Ws(L)||Mh(L)))}function Ar(L){var G=L.length,de=new L.constructor(G);return G&&typeof L[0]=="string"&&Tr.call(L,"index")&&(de.index=L.index,de.input=L.input),de}function Rr(L){return typeof L.constructor=="function"&&!Xa(L)?Qa(Ls(L)):{}}function hi(L,G,de){var yt=L.constructor;switch(G){case Je:return ho(L);case Ye:case mt:return new yt(+L);case wt:return is(L,de);case ft:case vn:case ut:case Wt:case ae:case ne:case ge:case ye:case Xe:return qo(L,de);case bt:return new yt;case It:case Kt:return new yt(L);case $t:return Fo(L);case et:return new yt;case kn:return Ds(L)}}function Ti(L,G){var de=G.length;if(!de)return L;var yt=de-1;return G[yt]=(de>1?"& ":"")+G[yt],G=G.join(de>2?", ":" "),L.replace(Et,`{
/* [wrapped with `+G+`] */
`)}function ao(L){return Ws(L)||Mh(L)||!!(Wl&&L&&L[Wl])}function $o(L,G){var de=typeof L;return G=G??pe,!!G&&(de=="number"||de!="symbol"&&gi.test(L))&&L>-1&&L%1==0&&L<G}function wo(L,G,de){if(!wl(de))return!1;var yt=typeof G;return(yt=="number"?rd(de)&&$o(G,de.length):yt=="string"&&G in de)?nd(de[G],L):!1}function Js(L,G){if(Ws(L))return!1;var de=typeof L;return de=="number"||de=="symbol"||de=="boolean"||L==null||id(L)?!0:Cr.test(L)||!rr.test(L)||G!=null&&L in Ue(G)}function Bs(L){var G=typeof L;return G=="string"||G=="number"||G=="symbol"||G=="boolean"?L!=="__proto__":L===null}function mi(L){var G=vd(L),de=jn[G];if(typeof de!="function"||!(G in Go.prototype))return!1;if(L===de)return!0;var yt=qc(de);return!!yt&&L===yt[0]}function Sa(L){return!!di&&di in L}var uc=$n?Oh:n0;function Xa(L){var G=L&&L.constructor,de=typeof G=="function"&&G.prototype||In;return L===de}function qa(L){return L===L&&!wl(L)}function ga(L,G){return function(de){return de==null?!1:de[L]===G&&(G!==n||L in Ue(de))}}function _c(L){var G=ni(L,function(yt){return de.size===k&&de.clear(),yt}),de=G.cache;return G}function eh(L,G){var de=L[1],yt=G[1],pn=de|yt,Wn=pn<(B|N|E),kr=yt==E&&de==x||yt==E&&de==A&&L[7].length<=G[8]||yt==(E|A)&&G[7].length<=G[8]&&de==x;if(!(Wn||kr))return L;yt&B&&(L[2]=G[2],pn|=de&B?0:D);var Lr=G[3];if(Lr){var ei=L[3];L[3]=ei?Yd(ei,Lr,G[4]):Lr,L[4]=ei?ds(L[3],M):G[4]}return Lr=G[5],Lr&&(ei=L[5],L[5]=ei?mu(ei,Lr,G[6]):Lr,L[6]=ei?ds(L[5],M):G[6]),Lr=G[7],Lr&&(L[7]=Lr),yt&E&&(L[8]=L[8]==null?G[8]:js(L[8],G[8])),L[9]==null&&(L[9]=G[9]),L[0]=G[0],L[1]=pn,L}function ya(L){var G=[];if(L!=null)for(var de in Ue(L))G.push(de);return G}function va(L){return ai.call(L)}function of(L,G,de){return G=Ea(G===n?L.length-1:G,0),function(){for(var yt=arguments,pn=-1,Wn=Ea(yt.length-G,0),kr=pr(Wn);++pn<Wn;)kr[pn]=yt[G+pn];pn=-1;for(var Lr=pr(G+1);++pn<G;)Lr[pn]=yt[pn];return Lr[G]=de(kr),ki(L,this,Lr)}}function yd(L,G){return G.length<2?L:ul(L,Tl(G,0,-1))}function $h(L,G){for(var de=L.length,yt=js(G.length,de),pn=sa(L);yt--;){var Wn=G[yt];L[yt]=$o(Wn,de)?pn[Wn]:n}return L}function fl(L,G){if(!(G==="constructor"&&typeof L[G]=="function")&&G!="__proto__")return L[G]}var Uc=Al(oa),Ka=Ss||function(L,G){return rt.setTimeout(L,G)},Gu=Al(Wa);function Vh(L,G,de){var yt=G+"";return Gu(L,Ti(yt,Bd(Dn(yt),de)))}function Al(L){var G=0,de=0;return function(){var yt=jl(),pn=$-(yt-de);if(de=yt,pn>0){if(++G>=V)return arguments[0]}else G=0;return L.apply(n,arguments)}}function jd(L,G){var de=-1,yt=L.length,pn=yt-1;for(G=G===n?yt:G;++de<G;){var Wn=hu(de,pn),kr=L[Wn];L[Wn]=L[de],L[de]=kr}return L.length=G,L}var yu=_c(function(L){var G=[];return L.charCodeAt(0)===46&&G.push(""),L.replace(Ur,function(de,yt,pn,Wn){G.push(pn?Wn.replace(ze,"$1"):yt||de)}),G});function wu(L){if(typeof L=="string"||id(L))return L;var G=L+"";return G=="0"&&1/L==-X?"-0":G}function Yu(L){if(L!=null){try{return wr.call(L)}catch{}try{return L+""}catch{}}return""}function Bd(L,G){return Ei(we,function(de){var yt="_."+de[0];G&de[1]&&!uo(L,yt)&&L.push(yt)}),L.sort()}function wd(L){if(L instanceof Go)return L.clone();var G=new Fa(L.__wrapped__,L.__chain__);return G.__actions__=sa(L.__actions__),G.__index__=L.__index__,G.__values__=L.__values__,G}function sf(L,G,de){(de?wo(L,G,de):G===n)?G=1:G=Ea(Zs(G),0);var yt=L==null?0:L.length;if(!yt||G<1)return[];for(var pn=0,Wn=0,kr=pr(Zl(yt/G));pn<yt;)kr[Wn++]=Tl(L,pn,pn+=G);return kr}function yh(L){for(var G=-1,de=L==null?0:L.length,yt=0,pn=[];++G<de;){var Wn=L[G];Wn&&(pn[yt++]=Wn)}return pn}function Qu(){var L=arguments.length;if(!L)return[];for(var G=pr(L-1),de=arguments[0],yt=L;yt--;)G[yt-1]=arguments[yt];return Vo(Ws(de)?sa(de):[de],Ia(G,1))}var wh=vs(function(L,G){return ec(L)?No(L,Ia(G,1,ec,!0)):[]}),dc=vs(function(L,G){var de=Ms(G);return ec(de)&&(de=n),ec(L)?No(L,Ia(G,1,ec,!0),Zo(de,2)):[]}),bs=vs(function(L,G){var de=Ms(G);return ec(de)&&(de=n),ec(L)?No(L,Ia(G,1,ec,!0),n,de):[]});function Ml(L,G,de){var yt=L==null?0:L.length;return yt?(G=de||G===n?1:Zs(G),Tl(L,G<0?0:G,yt)):[]}function el(L,G,de){var yt=L==null?0:L.length;return yt?(G=de||G===n?1:Zs(G),G=yt-G,Tl(L,0,G<0?0:G)):[]}function Ol(L,G){return L&&L.length?ie(L,Zo(G,3),!0,!0):[]}function Ac(L,G){return L&&L.length?ie(L,Zo(G,3),!0):[]}function Ju(L,G,de,yt){var pn=L==null?0:L.length;return pn?(de&&typeof de!="number"&&wo(L,G,de)&&(de=0,yt=pn),Kc(L,G,de,yt)):[]}function pl(L,G,de){var yt=L==null?0:L.length;if(!yt)return-1;var pn=de==null?0:Zs(de);return pn<0&&(pn=Ea(yt+pn,0)),Gs(L,Zo(G,3),pn)}function _h(L,G,de){var yt=L==null?0:L.length;if(!yt)return-1;var pn=yt-1;return de!==n&&(pn=Zs(de),pn=de<0?Ea(yt+pn,0):js(pn,yt-1)),Gs(L,Zo(G,3),pn,!0)}function _d(L){var G=L==null?0:L.length;return G?Ia(L,1):[]}function th(L){var G=L==null?0:L.length;return G?Ia(L,X):[]}function zh(L,G){var de=L==null?0:L.length;return de?(G=G===n?1:Zs(G),Ia(L,G)):[]}function Xu(L){for(var G=-1,de=L==null?0:L.length,yt={};++G<de;){var pn=L[G];yt[pn[0]]=pn[1]}return yt}function xc(L){return L&&L.length?L[0]:n}function af(L,G,de){var yt=L==null?0:L.length;if(!yt)return-1;var pn=de==null?0:Zs(de);return pn<0&&(pn=Ea(yt+pn,0)),as(L,G,pn)}function vi(L){var G=L==null?0:L.length;return G?Tl(L,0,-1):[]}var bo=vs(function(L){var G=Ui(L,xn);return G.length&&G[0]===L[0]?Uu(G):[]}),jo=vs(function(L){var G=Ms(L),de=Ui(L,xn);return G===Ms(de)?G=n:de.pop(),de.length&&de[0]===L[0]?Uu(de,Zo(G,2)):[]}),os=vs(function(L){var G=Ms(L),de=Ui(L,xn);return G=typeof G=="function"?G:n,G&&de.pop(),de.length&&de[0]===L[0]?Uu(de,n,G):[]});function ys(L,G){return L==null?"":xa.call(L,G)}function Ms(L){var G=L==null?0:L.length;return G?L[G-1]:n}function La(L,G,de){var yt=L==null?0:L.length;if(!yt)return-1;var pn=yt;return de!==n&&(pn=Zs(de),pn=pn<0?Ea(yt+pn,0):js(pn,yt-1)),G===G?Di(L,G,pn):Gs(L,Ma,pn,!0)}function xd(L,G){return L&&L.length?ca(L,Zs(G)):n}var Ed=vs(xh);function xh(L,G){return L&&L.length&&G&&G.length?Sc(L,G):L}function Uh(L,G,de){return L&&L.length&&G&&G.length?Sc(L,G,Zo(de,2)):L}function mf(L,G,de){return L&&L.length&&G&&G.length?Sc(L,G,n,de):L}var Ec=cc(function(L,G){var de=L==null?0:L.length,yt=Mi(L,G);return Ta(L,Ui(G,function(pn){return $o(pn,de)?+pn:pn}).sort($c)),yt});function _u(L,G){var de=[];if(!(L&&L.length))return de;var yt=-1,pn=[],Wn=L.length;for(G=Zo(G,3);++yt<Wn;){var kr=L[yt];G(kr,yt,L)&&(de.push(kr),pn.push(yt))}return Ta(L,pn),de}function Bu(L){return L==null?L:ko.call(L)}function hc(L,G,de){var yt=L==null?0:L.length;return yt?(de&&typeof de!="number"&&wo(L,G,de)?(G=0,de=yt):(G=G==null?0:Zs(G),de=de===n?yt:Zs(de)),Tl(L,G,de)):[]}function If(L,G){return Xc(L,G)}function Hh(L,G,de){return dl(L,G,Zo(de,2))}function gf(L,G){var de=L==null?0:L.length;if(de){var yt=Xc(L,G);if(yt<de&&nd(L[yt],G))return yt}return-1}function nh(L,G){return Xc(L,G,!0)}function kc(L,G,de){return dl(L,G,Zo(de,2),!0)}function lf(L,G){var de=L==null?0:L.length;if(de){var yt=Xc(L,G,!0)-1;if(nd(L[yt],G))return yt}return-1}function Rf(L){return L&&L.length?wc(L):[]}function qu(L,G){return L&&L.length?wc(L,Zo(G,2)):[]}function vf(L){var G=L==null?0:L.length;return G?Tl(L,1,G):[]}function ed(L,G,de){return L&&L.length?(G=de||G===n?1:Zs(G),Tl(L,0,G<0?0:G)):[]}function Lf(L,G,de){var yt=L==null?0:L.length;return yt?(G=de||G===n?1:Zs(G),G=yt-G,Tl(L,G<0?0:G,yt)):[]}function Jf(L,G){return L&&L.length?ie(L,Zo(G,3),!1,!0):[]}function Eh(L,G){return L&&L.length?ie(L,Zo(G,3)):[]}var kh=vs(function(L){return g(Ia(L,1,ec,!0))}),Op=vs(function(L){var G=Ms(L);return ec(G)&&(G=n),g(Ia(L,1,ec,!0),Zo(G,2))}),Xf=vs(function(L){var G=Ms(L);return G=typeof G=="function"?G:n,g(Ia(L,1,ec,!0),n,G)});function jf(L){return L&&L.length?g(L):[]}function qf(L,G){return L&&L.length?g(L,Zo(G,2)):[]}function Ch(L,G){return G=typeof G=="function"?G:n,L&&L.length?g(L,n,G):[]}function rh(L){if(!(L&&L.length))return[];var G=0;return L=Xi(L,function(de){if(ec(de))return G=Ea(de.length,G),!0}),ui(G,function(de){return Ui(L,dt(de))})}function Nd(L,G){if(!(L&&L.length))return[];var de=rh(L);return G==null?de:Ui(de,function(yt){return ki(G,n,yt)})}var bf=vs(function(L,G){return ec(L)?No(L,G):[]}),bl=vs(function(L){return jt(Xi(L,ec))}),Pp=vs(function(L){var G=Ms(L);return ec(G)&&(G=n),jt(Xi(L,ec),Zo(G,2))}),Bf=vs(function(L){var G=Ms(L);return G=typeof G=="function"?G:n,jt(Xi(L,ec),n,G)}),Dp=vs(rh);function Ip(L,G){return tn(L||[],G||[],or)}function ep(L,G){return tn(L||[],G||[],ma)}var Nf=vs(function(L){var G=L.length,de=G>1?L[G-1]:n;return de=typeof de=="function"?(L.pop(),de):n,Nd(L,de)});function tp(L){var G=jn(L);return G.__chain__=!0,G}function xu(L,G){return G(L),L}function Wh(L,G){return G(L)}var u0=cc(function(L){var G=L.length,de=G?L[0]:0,yt=this.__wrapped__,pn=function(Wn){return Mi(Wn,L)};return G>1||this.__actions__.length||!(yt instanceof Go)||!$o(de)?this.thru(pn):(yt=yt.slice(de,+de+(G?1:0)),yt.__actions__.push({func:Wh,args:[pn],thisArg:n}),new Fa(yt,this.__chain__).thru(function(Wn){return G&&!Wn.length&&Wn.push(n),Wn}))});function ih(){return tp(this)}function Ff(){return new Fa(this.value(),this.__chain__)}function Zh(){this.__values__===n&&(this.__values__=w0(this.value()));var L=this.__index__>=this.__values__.length,G=L?n:this.__values__[this.__index__++];return{done:L,value:G}}function Kh(){return this}function Fd(L){for(var G,de=this;de instanceof jc;){var yt=wd(de);yt.__index__=0,yt.__values__=n,G?pn.__wrapped__=yt:G=yt;var pn=yt;de=de.__wrapped__}return pn.__wrapped__=L,G}function $d(){var L=this.__wrapped__;if(L instanceof Go){var G=L;return this.__actions__.length&&(G=new Go(this)),G=G.reverse(),G.__actions__.push({func:Wh,args:[Bu],thisArg:n}),new Fa(G,this.__chain__)}return this.thru(Bu)}function Rp(){return xe(this.__wrapped__,this.__actions__)}var Hc=Rh(function(L,G,de){Tr.call(L,de)?++L[de]:Oi(L,de,1)});function np(L,G,de){var yt=Ws(L)?zi:Fc;return de&&wo(L,G,de)&&(G=n),yt(L,Zo(G,3))}function cf(L,G){var de=Ws(L)?Xi:lu;return de(L,Zo(G,3))}var Vl=Lh(pl),yf=Lh(_h);function $f(L,G){return Ia(Sh(L,G),1)}function wf(L,G){return Ia(Sh(L,G),X)}function rp(L,G,de){return de=de===n?1:Zs(de),Ia(Sh(L,G),de)}function ip(L,G){var de=Ws(L)?Ei:ps;return de(L,Zo(G,3))}function Th(L,G){var de=Ws(L)?oo:ba;return de(L,Zo(G,3))}var oh=Rh(function(L,G,de){Tr.call(L,de)?L[de].push(G):Oi(L,de,[G])});function uf(L,G,de,yt){L=rd(L)?L:Af(L),de=de&&!yt?Zs(de):0;var pn=L.length;return de<0&&(de=Ea(pn+de,0)),$p(L)?de<=pn&&L.indexOf(G,de)>-1:!!pn&&as(L,G,de)>-1}var sh=vs(function(L,G,de){var yt=-1,pn=typeof G=="function",Wn=rd(L)?pr(L.length):[];return ps(L,function(kr){Wn[++yt]=pn?ki(G,kr,de):sc(kr,G,de)}),Wn}),df=Rh(function(L,G,de){Oi(L,de,G)});function Sh(L,G){var de=Ws(L)?Ui:Hu;return de(L,Zo(G,3))}function op(L,G,de,yt){return L==null?[]:(Ws(G)||(G=G==null?[]:[G]),de=yt?n:de,Ws(de)||(de=de==null?[]:[de]),bc(L,G,de))}var td=Rh(function(L,G,de){L[de?0:1].push(G)},function(){return[[],[]]});function Lp(L,G,de){var yt=Ws(L)?Cs:an,pn=arguments.length<3;return yt(L,Zo(G,4),de,pn,ps)}function Gh(L,G,de){var yt=Ws(L)?ra:an,pn=arguments.length<3;return yt(L,Zo(G,4),de,pn,ba)}function sp(L,G){var de=Ws(L)?Xi:lu;return de(L,zr(Zo(G,3)))}function Ah(L){var G=Ws(L)?Pt:gd;return G(L)}function y(L,G,de){(de?wo(L,G,de):G===n)?G=1:G=Zs(G);var yt=Ws(L)?st:yc;return yt(L,G)}function O(L){var G=Ws(L)?nn:fu;return G(L)}function Q(L){if(L==null)return 0;if(rd(L))return $p(L)?Il(L):L.length;var G=Ua(L);return G==bt||G==et?L.size:Xl(L).length}function le(L,G,de){var yt=Ws(L)?Ts:pu;return de&&wo(L,G,de)&&(G=n),yt(L,Zo(G,3))}var De=vs(function(L,G){if(L==null)return[];var de=G.length;return de>1&&wo(L,G[0],G[1])?G=[]:de>2&&wo(G[0],G[1],G[2])&&(G=[G[0]]),bc(L,Ia(G,1),[])}),pt=Ya||function(){return rt.Date.now()};function En(L,G){if(typeof G!="function")throw new Ut(h);return L=Zs(L),function(){if(--L<1)return G.apply(this,arguments)}}function yr(L,G,de){return G=de?n:G,G=L&&G==null?L.length:G,Vc(L,E,n,n,n,n,G)}function Ir(L,G){var de;if(typeof G!="function")throw new Ut(h);return L=Zs(L),function(){return--L>0&&(de=G.apply(this,arguments)),L<=1&&(G=n),de}}var bi=vs(function(L,G,de){var yt=B;if(de.length){var pn=ds(de,bd(bi));yt|=u}return Vc(L,yt,G,de,pn)}),Gi=vs(function(L,G,de){var yt=B|N;if(de.length){var pn=ds(de,bd(Gi));yt|=u}return Vc(G,yt,L,de,pn)});function to(L,G,de){G=de?n:G;var yt=Vc(L,x,n,n,n,n,n,G);return yt.placeholder=to.placeholder,yt}function Ki(L,G,de){G=de?n:G;var yt=Vc(L,T,n,n,n,n,n,G);return yt.placeholder=Ki.placeholder,yt}function Ao(L,G,de){var yt,pn,Wn,kr,Lr,ei,Li=0,Bi=!1,Yi=!1,Co=!0;if(typeof L!="function")throw new Ut(h);G=Fu(G)||0,wl(de)&&(Bi=!!de.leading,Yi="maxWait"in de,Wn=Yi?Ea(Fu(de.maxWait)||0,G):Wn,Co="trailing"in de?!!de.trailing:Co);function Jo(zl){var Cd=yt,dh=pn;return yt=pn=n,Li=zl,kr=L.apply(dh,Cd),kr}function ws(zl){return Li=zl,Lr=Ka(aa,G),Bi?Jo(zl):kr}function Xs(zl){var Cd=zl-ei,dh=zl-Li,q0=G-Cd;return Yi?js(q0,Wn-dh):q0}function _s(zl){var Cd=zl-ei,dh=zl-Li;return ei===n||Cd>=G||Cd<0||Yi&&dh>=Wn}function aa(){var zl=pt();if(_s(zl))return qs(zl);Lr=Ka(aa,Xs(zl))}function qs(zl){return Lr=n,Co&&yt?Jo(zl):(yt=pn=n,kr)}function tu(){Lr!==n&&Ci(Lr),Li=0,yt=ei=pn=Lr=n}function nu(){return Lr===n?kr:qs(pt())}function ku(){var zl=pt(),Cd=_s(zl);if(yt=arguments,pn=this,ei=zl,Cd){if(Lr===n)return ws(ei);if(Yi)return Ci(Lr),Lr=Ka(aa,G),Jo(ei)}return Lr===n&&(Lr=Ka(aa,G)),kr}return ku.cancel=tu,ku.flush=nu,ku}var zo=vs(function(L,G){return Qo(L,1,G)}),Uo=vs(function(L,G,de){return Qo(L,Fu(G)||0,de)});function ml(L){return Vc(L,R)}function ni(L,G){if(typeof L!="function"||G!=null&&typeof G!="function")throw new Ut(h);var de=function(){var yt=arguments,pn=G?G.apply(this,yt):yt[0],Wn=de.cache;if(Wn.has(pn))return Wn.get(pn);var kr=L.apply(this,yt);return de.cache=Wn.set(pn,kr)||Wn,kr};return de.cache=new(ni.Cache||kl),de}ni.Cache=kl;function zr(L){if(typeof L!="function")throw new Ut(h);return function(){var G=arguments;switch(G.length){case 0:return!L.call(this);case 1:return!L.call(this,G[0]);case 2:return!L.call(this,G[0],G[1]);case 3:return!L.call(this,G[0],G[1],G[2])}return!L.apply(this,G)}}function ci(L){return Ir(2,L)}var fo=Pr(function(L,G){G=G.length==1&&Ws(G[0])?Ui(G[0],mo(Zo())):Ui(Ia(G,1),mo(Zo()));var de=G.length;return vs(function(yt){for(var pn=-1,Wn=js(yt.length,de);++pn<Wn;)yt[pn]=G[pn].call(this,yt[pn]);return ki(L,this,yt)})}),Ho=vs(function(L,G){var de=ds(G,bd(Ho));return Vc(L,u,n,G,de)}),ss=vs(function(L,G){var de=ds(G,bd(ss));return Vc(L,b,n,G,de)}),ls=cc(function(L,G){return Vc(L,A,n,n,n,G)});function Es(L,G){if(typeof L!="function")throw new Ut(h);return G=G===n?G:Zs(G),vs(L,G)}function yl(L,G){if(typeof L!="function")throw new Ut(h);return G=G==null?0:Ea(Zs(G),0),vs(function(de){var yt=de[G],pn=ti(de,0,G);return yt&&Vo(pn,yt),ki(L,this,pn)})}function pa(L,G,de){var yt=!0,pn=!0;if(typeof L!="function")throw new Ut(h);return wl(de)&&(yt="leading"in de?!!de.leading:yt,pn="trailing"in de?!!de.trailing:pn),Ao(L,G,{leading:yt,maxWait:G,trailing:pn})}function Nu(L){return yr(L,1)}function Yh(L,G){return Ho(Fn(G),L)}function jp(){if(!arguments.length)return[];var L=arguments[0];return Ws(L)?L:[L]}function Qh(L){return Ni(L,I)}function Mg(L,G){return G=typeof G=="function"?G:n,Ni(L,I,G)}function Vf(L){return Ni(L,C|I)}function ym(L,G){return G=typeof G=="function"?G:n,Ni(L,C|I,G)}function Jh(L,G){return G==null||vo(L,G,Cc(G))}function nd(L,G){return L===G||L!==L&&G!==G}var d0=Id(Ad),ap=Id(function(L,G){return L>=G}),Mh=Md(function(){return arguments}())?Md:function(L){return tl(L)&&Tr.call(L,"callee")&&!Da.call(L,"callee")},Ws=pr.isArray,wm=gn?mo(gn):Od;function rd(L){return L!=null&&xf(L.length)&&!Oh(L)}function ec(L){return tl(L)&&rd(L)}function _m(L){return L===!0||L===!1||tl(L)&&gl(L)==Ye}var ah=nc||n0,h0=Hn?mo(Hn):Wd;function f0(L){return tl(L)&&L.nodeType===1&&!Ef(L)}function p0(L){if(L==null)return!0;if(rd(L)&&(Ws(L)||typeof L=="string"||typeof L.splice=="function"||ah(L)||kf(L)||Mh(L)))return!L.length;var G=Ua(L);if(G==bt||G==et)return!L.size;if(Xa(L))return!Xl(L).length;for(var de in L)if(Tr.call(L,de))return!1;return!0}function xm(L,G){return Cl(L,G)}function Em(L,G,de){de=typeof de=="function"?de:n;var yt=de?de(L,G):n;return yt===n?Cl(L,G,n,de):!!yt}function zf(L){if(!tl(L))return!1;var G=gl(L);return G==ln||G==Ct||typeof L.message=="string"&&typeof L.name=="string"&&!Ef(L)}function m0(L){return typeof L=="number"&&Dc(L)}function Oh(L){if(!wl(L))return!1;var G=gl(L);return G==$e||G==Qe||G==Ne||G==je}function _f(L){return typeof L=="number"&&L==Zs(L)}function xf(L){return typeof L=="number"&&L>-1&&L%1==0&&L<=pe}function wl(L){var G=typeof L;return L!=null&&(G=="object"||G=="function")}function tl(L){return L!=null&&typeof L=="object"}var lp=nr?mo(nr):fd;function km(L,G){return L===G||Pu(L,G,qd(G))}function g0(L,G,de){return de=typeof de=="function"?de:n,Pu(L,G,qd(G),de)}function Cm(L){return Bp(L)&&L!=+L}function Tm(L){if(uc(L))throw new Lt(c);return fh(L)}function v0(L){return L===null}function b0(L){return L==null}function Bp(L){return typeof L=="number"||tl(L)&&gl(L)==It}function Ef(L){if(!tl(L)||gl(L)!=un)return!1;var G=Ls(L);if(G===null)return!0;var de=Tr.call(G,"constructor")&&G.constructor;return typeof de=="function"&&de instanceof de&&wr.call(de)==Ri}var Np=_r?mo(_r):Dh;function Sm(L){return _f(L)&&L>=-pe&&L<=pe}var Fp=Nr?mo(Nr):ph;function $p(L){return typeof L=="string"||!Ws(L)&&tl(L)&&gl(L)==Kt}function id(L){return typeof L=="symbol"||tl(L)&&gl(L)==kn}var kf=Qr?mo(Qr):Zd;function cp(L){return L===n}function Vp(L){return tl(L)&&Ua(L)==ht}function zp(L){return tl(L)&&gl(L)==ot}var lh=Id(Du),y0=Id(function(L,G){return L<=G});function w0(L){if(!L)return[];if(rd(L))return $p(L)?Na(L):sa(L);if(na&&L[na])return Oa(L[na]());var G=Ua(L),de=G==bt?_l:G==et?es:Af;return de(L)}function ch(L){if(!L)return L===0?L:0;if(L=Fu(L),L===X||L===-X){var G=L<0?-1:1;return G*Ie}return L===L?L:0}function Zs(L){var G=ch(L),de=G%1;return G===G?de?G-de:G:0}function Cf(L){return L?eo(Zs(L),0,be):0}function Fu(L){if(typeof L=="number")return L;if(id(L))return se;if(wl(L)){var G=typeof L.valueOf=="function"?L.valueOf():L;L=wl(G)?G+"":G}if(typeof L!="string")return L===0?L:+L;L=lo(L);var de=tr.test(L);return de||Xr.test(L)?ji(L.slice(2),de?2:8):Mn.test(L)?se:+L}function hf(L){return vl(L,od(L))}function Up(L){return L?eo(Zs(L),-pe,pe):L===0?L:0}function Aa(L){return L==null?"":o(L)}var _0=Lu(function(L,G){if(Xa(G)||rd(G)){vl(G,Cc(G),L);return}for(var de in G)Tr.call(G,de)&&or(L,de,G[de])}),x0=Lu(function(L,G){vl(G,od(G),L)}),up=Lu(function(L,G,de,yt){vl(G,od(G),L,yt)}),E0=Lu(function(L,G,de,yt){vl(G,Cc(G),L,yt)}),Hp=cc(Mi);function Tf(L,G){var de=Qa(L);return G==null?de:Br(de,G)}var Am=vs(function(L,G){L=Ue(L);var de=-1,yt=G.length,pn=yt>2?G[2]:n;for(pn&&wo(G[0],G[1],pn)&&(yt=1);++de<yt;)for(var Wn=G[de],kr=od(Wn),Lr=-1,ei=kr.length;++Lr<ei;){var Li=kr[Lr],Bi=L[Li];(Bi===n||nd(Bi,In[Li])&&!Tr.call(L,Li))&&(L[Li]=Wn[Li])}return L}),Wp=vs(function(L){return L.push(n,tf),ki(Lm,n,L)});function k0(L,G){return Is(L,Zo(G,3),$l)}function C0(L,G){return Is(L,Zo(G,3),Ou)}function T0(L,G){return L==null?L:Gc(L,Zo(G,3),od)}function Zp(L,G){return L==null?L:Jl(L,Zo(G,3),od)}function S0(L,G){return L&&$l(L,Zo(G,3))}function A0(L,G){return L&&Ou(L,Zo(G,3))}function Mm(L){return L==null?[]:oc(L,Cc(L))}function Om(L){return L==null?[]:oc(L,od(L))}function dp(L,G,de){var yt=L==null?n:ul(L,G);return yt===n?de:yt}function Pm(L,G){return L!=null&&er(L,G,Qc)}function Kp(L,G){return L!=null&&er(L,G,cu)}var Dm=za(function(L,G,de){G!=null&&typeof G.toString!="function"&&(G=ai.call(G)),L[G]=de},vp(ad)),Im=za(function(L,G,de){G!=null&&typeof G.toString!="function"&&(G=ai.call(G)),Tr.call(L,G)?L[G].push(de):L[G]=[de]},Zo),hp=vs(sc);function Cc(L){return rd(L)?Ql(L):Xl(L)}function od(L){return rd(L)?Ql(L,!0):vc(L)}function M0(L,G){var de={};return G=Zo(G,3),$l(L,function(yt,pn,Wn){Oi(de,G(yt,pn,Wn),yt)}),de}function Rm(L,G){var de={};return G=Zo(G,3),$l(L,function(yt,pn,Wn){Oi(de,pn,G(yt,pn,Wn))}),de}var Og=Lu(function(L,G,de){ac(L,G,de)}),Lm=Lu(function(L,G,de,yt){ac(L,G,de,yt)}),jm=cc(function(L,G){var de={};if(L==null)return de;var yt=!1;G=Ui(G,function(Wn){return Wn=mr(Wn,L),yt||(yt=Wn.length>1),Wn}),vl(L,Fh(L),de),yt&&(de=Ni(de,C|w|I,zc));for(var pn=G.length;pn--;)P(de,G[pn]);return de});function Uf(L,G){return Gp(L,zr(Zo(G)))}var Sf=cc(function(L,G){return L==null?{}:Gd(L,G)});function Gp(L,G){if(L==null)return{};var de=Ui(Fh(L),function(yt){return[yt]});return G=Zo(G),du(L,de,function(yt,pn){return G(yt,pn[0])})}function Bm(L,G,de){G=mr(G,L);var yt=-1,pn=G.length;for(pn||(pn=1,L=n);++yt<pn;){var Wn=L==null?n:L[wu(G[yt])];Wn===n&&(yt=pn,Wn=de),L=Oh(Wn)?Wn.call(L):Wn}return L}function O0(L,G,de){return L==null?L:ma(L,G,de)}function Nm(L,G,de,yt){return yt=typeof yt=="function"?yt:n,L==null?L:ma(L,G,de,yt)}var fp=Sl(Cc),P0=Sl(od);function Fm(L,G,de){var yt=Ws(L),pn=yt||ah(L)||kf(L);if(G=Zo(G,4),de==null){var Wn=L&&L.constructor;pn?de=yt?new Wn:[]:wl(L)?de=Oh(Wn)?Qa(Ls(L)):{}:de={}}return(pn?Ei:$l)(L,function(kr,Lr,ei){return G(de,kr,Lr,ei)}),de}function D0(L,G){return L==null?!0:P(L,G)}function $m(L,G,de){return L==null?L:K(L,G,Fn(de))}function Yp(L,G,de,yt){return yt=typeof yt=="function"?yt:n,L==null?L:K(L,G,Fn(de),yt)}function Af(L){return L==null?[]:ts(L,Cc(L))}function Pg(L){return L==null?[]:ts(L,od(L))}function pp(L,G,de){return de===n&&(de=G,G=n),de!==n&&(de=Fu(de),de=de===de?de:0),G!==n&&(G=Fu(G),G=G===G?G:0),eo(Fu(L),G,de)}function Vm(L,G,de){return G=ch(G),de===n?(de=G,G=0):de=ch(de),L=Fu(L),hd(L,G,de)}function Qp(L,G,de){if(de&&typeof de!="boolean"&&wo(L,G,de)&&(G=de=n),de===n&&(typeof G=="boolean"?(de=G,G=n):typeof L=="boolean"&&(de=L,L=n)),L===n&&G===n?(L=0,G=1):(L=ch(L),G===n?(G=L,L=0):G=ch(G)),L>G){var yt=L;L=G,G=yt}if(de||L%1||G%1){var pn=il();return js(L+pn*(G-L+Ii("1e-"+((pn+"").length-1))),G)}return hu(L,G)}var zm=ql(function(L,G,de){return G=G.toLowerCase(),L+(de?I0(G):G)});function I0(L){return N0(Aa(L).toLowerCase())}function Um(L){return L=Aa(L),L&&L.replace(Pi,ns).replace(kt,"")}function Dg(L,G,de){L=Aa(L),G=o(G);var yt=L.length;de=de===n?yt:eo(Zs(de),0,yt);var pn=de;return de-=G.length,de>=0&&L.slice(de,pn)==G}function Ig(L){return L=Aa(L),L&&yn.test(L)?L.replace(Vt,Os):L}function $u(L){return L=Aa(L),L&&li.test(L)?L.replace($r,"\\$&"):L}var mp=ql(function(L,G,de){return L+(de?"-":"")+G.toLowerCase()}),Hm=ql(function(L,G,de){return L+(de?" ":"")+G.toLowerCase()}),Wm=Ra("toLowerCase");function R0(L,G,de){L=Aa(L),G=Zs(G);var yt=G?Il(L):0;if(!G||yt>=G)return L;var pn=(G-yt)/2;return Xd(Us(pn),de)+L+Xd(Zl(pn),de)}function kd(L,G,de){L=Aa(L),G=Zs(G);var yt=G?Il(L):0;return G&&yt<G?L+Xd(G-yt,de):L}function Zm(L,G,de){L=Aa(L),G=Zs(G);var yt=G?Il(L):0;return G&&yt<G?Xd(G-yt,de)+L:L}function L0(L,G,de){return de||G==null?G=0:G&&(G=+G),Bl(Aa(L).replace(ri,""),G||0)}function Km(L,G,de){return(de?wo(L,G,de):G===n)?G=1:G=Zs(G),md(Aa(L),G)}function Jp(){var L=arguments,G=Aa(L[0]);return L.length<3?G:G.replace(L[1],L[2])}var Gm=ql(function(L,G,de){return L+(de?"_":"")+G.toLowerCase()});function Ym(L,G,de){return de&&typeof de!="number"&&wo(L,G,de)&&(G=de=n),de=de===n?be:de>>>0,de?(L=Aa(L),L&&(typeof G=="string"||G!=null&&!Np(G))&&(G=o(G),!G&&Qs(L))?ti(Na(L),0,de):L.split(G,de)):[]}var uh=ql(function(L,G,de){return L+(de?" ":"")+N0(G)});function Qm(L,G,de){return L=Aa(L),de=de==null?0:eo(Zs(de),0,L.length),G=o(G),L.slice(de,de+G.length)==G}function Mf(L,G,de){var yt=jn.templateSettings;de&&wo(L,G,de)&&(G=n),L=Aa(L),G=up({},G,yt,vh);var pn=up({},G.imports,yt.imports,vh),Wn=Cc(pn),kr=ts(pn,Wn),Lr,ei,Li=0,Bi=G.interpolate||ii,Yi="__p += '",Co=He((G.escape||ii).source+"|"+Bi.source+"|"+(Bi===Mr?Le:ii).source+"|"+(G.evaluate||ii).source+"|$","g"),Jo="//# sourceURL="+(Tr.call(G,"sourceURL")?(G.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Sn+"]")+`
`;L.replace(Co,function(_s,aa,qs,tu,nu,ku){return qs||(qs=tu),Yi+=L.slice(Li,ku).replace(vr,Lo),aa&&(Lr=!0,Yi+=`' +
__e(`+aa+`) +
'`),nu&&(ei=!0,Yi+=`';
`+nu+`;
__p += '`),qs&&(Yi+=`' +
((__t = (`+qs+`)) == null ? '' : __t) +
'`),Li=ku+_s.length,_s}),Yi+=`';
`;var ws=Tr.call(G,"variable")&&G.variable;if(!ws)Yi=`with (obj) {
`+Yi+`
}
`;else if(on.test(ws))throw new Lt(p);Yi=(ei?Yi.replace(Ze,""):Yi).replace(lt,"$1").replace(_t,"$1;"),Yi="function("+(ws||"obj")+`) {
`+(ws?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Lr?", __e = _.escape":"")+(ei?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Yi+`return __p
}`;var Xs=Zf(function(){return re(Wn,Jo+"return "+Yi).apply(n,kr)});if(Xs.source=Yi,zf(Xs))throw Xs;return Xs}function Eu(L){return Aa(L).toLowerCase()}function sd(L){return Aa(L).toUpperCase()}function Hf(L,G,de){if(L=Aa(L),L&&(de||G===n))return lo(L);if(!L||!(G=o(G)))return L;var yt=Na(L),pn=Na(G),Wn=Oo(yt,pn),kr=Po(yt,pn)+1;return ti(yt,Wn,kr).join("")}function gp(L,G,de){if(L=Aa(L),L&&(de||G===n))return L.slice(0,xl(L)+1);if(!L||!(G=o(G)))return L;var yt=Na(L),pn=Po(yt,Na(G))+1;return ti(yt,0,pn).join("")}function eu(L,G,de){if(L=Aa(L),L&&(de||G===n))return L.replace(ri,"");if(!L||!(G=o(G)))return L;var yt=Na(L),pn=Oo(yt,Na(G));return ti(yt,pn).join("")}function j0(L,G){var de=H,yt=z;if(wl(G)){var pn="separator"in G?G.separator:pn;de="length"in G?Zs(G.length):de,yt="omission"in G?o(G.omission):yt}L=Aa(L);var Wn=L.length;if(Qs(L)){var kr=Na(L);Wn=kr.length}if(de>=Wn)return L;var Lr=de-Il(yt);if(Lr<1)return yt;var ei=kr?ti(kr,0,Lr).join(""):L.slice(0,Lr);if(pn===n)return ei+yt;if(kr&&(Lr+=ei.length-Lr),Np(pn)){if(L.slice(Lr).search(pn)){var Li,Bi=ei;for(pn.global||(pn=He(pn.source,Aa(Ht.exec(pn))+"g")),pn.lastIndex=0;Li=pn.exec(Bi);)var Yi=Li.index;ei=ei.slice(0,Yi===n?Lr:Yi)}}else if(L.indexOf(o(pn),Lr)!=Lr){var Co=ei.lastIndexOf(pn);Co>-1&&(ei=ei.slice(0,Co))}return ei+yt}function B0(L){return L=Aa(L),L&&sn.test(L)?L.replace(zt,Rl):L}var Rg=ql(function(L,G,de){return L+(de?" ":"")+G.toUpperCase()}),N0=Ra("toUpperCase");function Wf(L,G,de){return L=Aa(L),G=de?n:G,G===n?ta(L)?rl(L):ia(L):L.match(G)||[]}var Zf=vs(function(L,G){try{return ki(L,n,G)}catch(de){return zf(de)?de:new Lt(de)}}),Jm=cc(function(L,G){return Ei(G,function(de){de=wu(de),Oi(L,de,bi(L[de],L))}),L});function Lg(L){var G=L==null?0:L.length,de=Zo();return L=G?Ui(L,function(yt){if(typeof yt[1]!="function")throw new Ut(h);return[de(yt[0]),yt[1]]}):[],vs(function(yt){for(var pn=-1;++pn<G;){var Wn=L[pn];if(ki(Wn[0],this,yt))return ki(Wn[1],this,yt)}})}function jg(L){return no(Ni(L,C))}function vp(L){return function(){return L}}function F0(L,G){return L==null||L!==L?G:L}var $0=jh(),Bg=jh(!0);function ad(L){return L}function Xp(L){return Jc(typeof L=="function"?L:Ni(L,C))}function bp(L){return Kd(Ni(L,C))}function Xm(L,G){return Iu(L,Ni(G,C))}var V0=vs(function(L,G){return function(de){return sc(de,L,G)}}),z0=vs(function(L,G){return function(de){return sc(L,de,G)}});function yp(L,G,de){var yt=Cc(G),pn=oc(G,yt);de==null&&!(wl(G)&&(pn.length||!yt.length))&&(de=G,G=L,L=this,pn=oc(G,Cc(G)));var Wn=!(wl(de)&&"chain"in de)||!!de.chain,kr=Oh(L);return Ei(pn,function(Lr){var ei=G[Lr];L[Lr]=ei,kr&&(L.prototype[Lr]=function(){var Li=this.__chain__;if(Wn||Li){var Bi=L(this.__wrapped__),Yi=Bi.__actions__=sa(this.__actions__);return Yi.push({func:ei,args:arguments,thisArg:L}),Bi.__chain__=Li,Bi}return ei.apply(L,Vo([this.value()],arguments))})}),L}function U0(){return rt._===this&&(rt._=Qi),this}function wp(){}function H0(L){return L=Zs(L),vs(function(G){return ca(G,L)})}var W0=ju(Ui),qp=ju(zi),Ph=ju(Ts);function e0(L){return Js(L)?dt(wu(L)):Ru(L)}function qm(L){return function(G){return L==null?n:ul(L,G)}}var eg=Dd(),tg=Dd(!0);function t0(){return[]}function n0(){return!1}function Z0(){return{}}function ng(){return""}function Ng(){return!0}function ld(L,G){if(L=Zs(L),L<1||L>pe)return[];var de=be,yt=js(L,be);G=Zo(G),L-=be;for(var pn=ui(yt,G);++de<L;)G(de);return pn}function _p(L){return Ws(L)?Ui(L,wu):id(L)?[L]:sa(yu(Aa(L)))}function K0(L){var G=++qr;return Aa(L)+G}var G0=vu(function(L,G){return L+G},0),Fg=yo("ceil"),$g=vu(function(L,G){return L/G},1),xp=yo("floor");function rg(L){return L&&L.length?cl(L,ad,Ad):n}function ig(L,G){return L&&L.length?cl(L,Zo(G,2),Ad):n}function og(L){return fa(L,ad)}function Y0(L,G){return fa(L,Zo(G,2))}function Q0(L){return L&&L.length?cl(L,ad,Du):n}function Vg(L,G){return L&&L.length?cl(L,Zo(G,2),Du):n}var zg=vu(function(L,G){return L*G},1),sg=yo("round"),ag=vu(function(L,G){return L-G},0);function J0(L){return L&&L.length?Fr(L,ad):0}function X0(L,G){return L&&L.length?Fr(L,Zo(G,2)):0}return jn.after=En,jn.ary=yr,jn.assign=_0,jn.assignIn=x0,jn.assignInWith=up,jn.assignWith=E0,jn.at=Hp,jn.before=Ir,jn.bind=bi,jn.bindAll=Jm,jn.bindKey=Gi,jn.castArray=jp,jn.chain=tp,jn.chunk=sf,jn.compact=yh,jn.concat=Qu,jn.cond=Lg,jn.conforms=jg,jn.constant=vp,jn.countBy=Hc,jn.create=Tf,jn.curry=to,jn.curryRight=Ki,jn.debounce=Ao,jn.defaults=Am,jn.defaultsDeep=Wp,jn.defer=zo,jn.delay=Uo,jn.difference=wh,jn.differenceBy=dc,jn.differenceWith=bs,jn.drop=Ml,jn.dropRight=el,jn.dropRightWhile=Ol,jn.dropWhile=Ac,jn.fill=Ju,jn.filter=cf,jn.flatMap=$f,jn.flatMapDeep=wf,jn.flatMapDepth=rp,jn.flatten=_d,jn.flattenDeep=th,jn.flattenDepth=zh,jn.flip=ml,jn.flow=$0,jn.flowRight=Bg,jn.fromPairs=Xu,jn.functions=Mm,jn.functionsIn=Om,jn.groupBy=oh,jn.initial=vi,jn.intersection=bo,jn.intersectionBy=jo,jn.intersectionWith=os,jn.invert=Dm,jn.invertBy=Im,jn.invokeMap=sh,jn.iteratee=Xp,jn.keyBy=df,jn.keys=Cc,jn.keysIn=od,jn.map=Sh,jn.mapKeys=M0,jn.mapValues=Rm,jn.matches=bp,jn.matchesProperty=Xm,jn.memoize=ni,jn.merge=Og,jn.mergeWith=Lm,jn.method=V0,jn.methodOf=z0,jn.mixin=yp,jn.negate=zr,jn.nthArg=H0,jn.omit=jm,jn.omitBy=Uf,jn.once=ci,jn.orderBy=op,jn.over=W0,jn.overArgs=fo,jn.overEvery=qp,jn.overSome=Ph,jn.partial=Ho,jn.partialRight=ss,jn.partition=td,jn.pick=Sf,jn.pickBy=Gp,jn.property=e0,jn.propertyOf=qm,jn.pull=Ed,jn.pullAll=xh,jn.pullAllBy=Uh,jn.pullAllWith=mf,jn.pullAt=Ec,jn.range=eg,jn.rangeRight=tg,jn.rearg=ls,jn.reject=sp,jn.remove=_u,jn.rest=Es,jn.reverse=Bu,jn.sampleSize=y,jn.set=O0,jn.setWith=Nm,jn.shuffle=O,jn.slice=hc,jn.sortBy=De,jn.sortedUniq=Rf,jn.sortedUniqBy=qu,jn.split=Ym,jn.spread=yl,jn.tail=vf,jn.take=ed,jn.takeRight=Lf,jn.takeRightWhile=Jf,jn.takeWhile=Eh,jn.tap=xu,jn.throttle=pa,jn.thru=Wh,jn.toArray=w0,jn.toPairs=fp,jn.toPairsIn=P0,jn.toPath=_p,jn.toPlainObject=hf,jn.transform=Fm,jn.unary=Nu,jn.union=kh,jn.unionBy=Op,jn.unionWith=Xf,jn.uniq=jf,jn.uniqBy=qf,jn.uniqWith=Ch,jn.unset=D0,jn.unzip=rh,jn.unzipWith=Nd,jn.update=$m,jn.updateWith=Yp,jn.values=Af,jn.valuesIn=Pg,jn.without=bf,jn.words=Wf,jn.wrap=Yh,jn.xor=bl,jn.xorBy=Pp,jn.xorWith=Bf,jn.zip=Dp,jn.zipObject=Ip,jn.zipObjectDeep=ep,jn.zipWith=Nf,jn.entries=fp,jn.entriesIn=P0,jn.extend=x0,jn.extendWith=up,yp(jn,jn),jn.add=G0,jn.attempt=Zf,jn.camelCase=zm,jn.capitalize=I0,jn.ceil=Fg,jn.clamp=pp,jn.clone=Qh,jn.cloneDeep=Vf,jn.cloneDeepWith=ym,jn.cloneWith=Mg,jn.conformsTo=Jh,jn.deburr=Um,jn.defaultTo=F0,jn.divide=$g,jn.endsWith=Dg,jn.eq=nd,jn.escape=Ig,jn.escapeRegExp=$u,jn.every=np,jn.find=Vl,jn.findIndex=pl,jn.findKey=k0,jn.findLast=yf,jn.findLastIndex=_h,jn.findLastKey=C0,jn.floor=xp,jn.forEach=ip,jn.forEachRight=Th,jn.forIn=T0,jn.forInRight=Zp,jn.forOwn=S0,jn.forOwnRight=A0,jn.get=dp,jn.gt=d0,jn.gte=ap,jn.has=Pm,jn.hasIn=Kp,jn.head=xc,jn.identity=ad,jn.includes=uf,jn.indexOf=af,jn.inRange=Vm,jn.invoke=hp,jn.isArguments=Mh,jn.isArray=Ws,jn.isArrayBuffer=wm,jn.isArrayLike=rd,jn.isArrayLikeObject=ec,jn.isBoolean=_m,jn.isBuffer=ah,jn.isDate=h0,jn.isElement=f0,jn.isEmpty=p0,jn.isEqual=xm,jn.isEqualWith=Em,jn.isError=zf,jn.isFinite=m0,jn.isFunction=Oh,jn.isInteger=_f,jn.isLength=xf,jn.isMap=lp,jn.isMatch=km,jn.isMatchWith=g0,jn.isNaN=Cm,jn.isNative=Tm,jn.isNil=b0,jn.isNull=v0,jn.isNumber=Bp,jn.isObject=wl,jn.isObjectLike=tl,jn.isPlainObject=Ef,jn.isRegExp=Np,jn.isSafeInteger=Sm,jn.isSet=Fp,jn.isString=$p,jn.isSymbol=id,jn.isTypedArray=kf,jn.isUndefined=cp,jn.isWeakMap=Vp,jn.isWeakSet=zp,jn.join=ys,jn.kebabCase=mp,jn.last=Ms,jn.lastIndexOf=La,jn.lowerCase=Hm,jn.lowerFirst=Wm,jn.lt=lh,jn.lte=y0,jn.max=rg,jn.maxBy=ig,jn.mean=og,jn.meanBy=Y0,jn.min=Q0,jn.minBy=Vg,jn.stubArray=t0,jn.stubFalse=n0,jn.stubObject=Z0,jn.stubString=ng,jn.stubTrue=Ng,jn.multiply=zg,jn.nth=xd,jn.noConflict=U0,jn.noop=wp,jn.now=pt,jn.pad=R0,jn.padEnd=kd,jn.padStart=Zm,jn.parseInt=L0,jn.random=Qp,jn.reduce=Lp,jn.reduceRight=Gh,jn.repeat=Km,jn.replace=Jp,jn.result=Bm,jn.round=sg,jn.runInContext=Ln,jn.sample=Ah,jn.size=Q,jn.snakeCase=Gm,jn.some=le,jn.sortedIndex=If,jn.sortedIndexBy=Hh,jn.sortedIndexOf=gf,jn.sortedLastIndex=nh,jn.sortedLastIndexBy=kc,jn.sortedLastIndexOf=lf,jn.startCase=uh,jn.startsWith=Qm,jn.subtract=ag,jn.sum=J0,jn.sumBy=X0,jn.template=Mf,jn.times=ld,jn.toFinite=ch,jn.toInteger=Zs,jn.toLength=Cf,jn.toLower=Eu,jn.toNumber=Fu,jn.toSafeInteger=Up,jn.toString=Aa,jn.toUpper=sd,jn.trim=Hf,jn.trimEnd=gp,jn.trimStart=eu,jn.truncate=j0,jn.unescape=B0,jn.uniqueId=K0,jn.upperCase=Rg,jn.upperFirst=N0,jn.each=ip,jn.eachRight=Th,jn.first=xc,yp(jn,function(){var L={};return $l(jn,function(G,de){Tr.call(jn.prototype,de)||(L[de]=G)}),L}(),{chain:!1}),jn.VERSION=s,Ei(["bind","bindKey","curry","curryRight","partial","partialRight"],function(L){jn[L].placeholder=jn}),Ei(["drop","take"],function(L,G){Go.prototype[L]=function(de){de=de===n?1:Ea(Zs(de),0);var yt=this.__filtered__&&!G?new Go(this):this.clone();return yt.__filtered__?yt.__takeCount__=js(de,yt.__takeCount__):yt.__views__.push({size:js(de,be),type:L+(yt.__dir__<0?"Right":"")}),yt},Go.prototype[L+"Right"]=function(de){return this.reverse()[L](de).reverse()}}),Ei(["filter","map","takeWhile"],function(L,G){var de=G+1,yt=de==ee||de==oe;Go.prototype[L]=function(pn){var Wn=this.clone();return Wn.__iteratees__.push({iteratee:Zo(pn,3),type:de}),Wn.__filtered__=Wn.__filtered__||yt,Wn}}),Ei(["head","last"],function(L,G){var de="take"+(G?"Right":"");Go.prototype[L]=function(){return this[de](1).value()[0]}}),Ei(["initial","tail"],function(L,G){var de="drop"+(G?"":"Right");Go.prototype[L]=function(){return this.__filtered__?new Go(this):this[de](1)}}),Go.prototype.compact=function(){return this.filter(ad)},Go.prototype.find=function(L){return this.filter(L).head()},Go.prototype.findLast=function(L){return this.reverse().find(L)},Go.prototype.invokeMap=vs(function(L,G){return typeof L=="function"?new Go(this):this.map(function(de){return sc(de,L,G)})}),Go.prototype.reject=function(L){return this.filter(zr(Zo(L)))},Go.prototype.slice=function(L,G){L=Zs(L);var de=this;return de.__filtered__&&(L>0||G<0)?new Go(de):(L<0?de=de.takeRight(-L):L&&(de=de.drop(L)),G!==n&&(G=Zs(G),de=G<0?de.dropRight(-G):de.take(G-L)),de)},Go.prototype.takeRightWhile=function(L){return this.reverse().takeWhile(L).reverse()},Go.prototype.toArray=function(){return this.take(be)},$l(Go.prototype,function(L,G){var de=/^(?:filter|find|map|reject)|While$/.test(G),yt=/^(?:head|last)$/.test(G),pn=jn[yt?"take"+(G=="last"?"Right":""):G],Wn=yt||/^find/.test(G);pn&&(jn.prototype[G]=function(){var kr=this.__wrapped__,Lr=yt?[1]:arguments,ei=kr instanceof Go,Li=Lr[0],Bi=ei||Ws(kr),Yi=function(aa){var qs=pn.apply(jn,Vo([aa],Lr));return yt&&Co?qs[0]:qs};Bi&&de&&typeof Li=="function"&&Li.length!=1&&(ei=Bi=!1);var Co=this.__chain__,Jo=!!this.__actions__.length,ws=Wn&&!Co,Xs=ei&&!Jo;if(!Wn&&Bi){kr=Xs?kr:new Go(this);var _s=L.apply(kr,Lr);return _s.__actions__.push({func:Wh,args:[Yi],thisArg:n}),new Fa(_s,Co)}return ws&&Xs?L.apply(this,Lr):(_s=this.thru(Yi),ws?yt?_s.value()[0]:_s.value():_s)})}),Ei(["pop","push","shift","sort","splice","unshift"],function(L){var G=en[L],de=/^(?:push|sort|unshift)$/.test(L)?"tap":"thru",yt=/^(?:pop|shift)$/.test(L);jn.prototype[L]=function(){var pn=arguments;if(yt&&!this.__chain__){var Wn=this.value();return G.apply(Ws(Wn)?Wn:[],pn)}return this[de](function(kr){return G.apply(Ws(kr)?kr:[],pn)})}}),$l(Go.prototype,function(L,G){var de=jn[G];if(de){var yt=de.name+"";Tr.call(Nl,yt)||(Nl[yt]=[]),Nl[yt].push({name:G,func:de})}}),Nl[hl(n,N).name]=[{name:"wrapper",func:n}],Go.prototype.clone=Tc,Go.prototype.reverse=Zc,Go.prototype.value=sl,jn.prototype.at=u0,jn.prototype.chain=ih,jn.prototype.commit=Ff,jn.prototype.next=Zh,jn.prototype.plant=Fd,jn.prototype.reverse=$d,jn.prototype.toJSON=jn.prototype.valueOf=jn.prototype.value=Rp,jn.prototype.first=jn.prototype.head,na&&(jn.prototype[na]=Kh),jn},Kr=Xn();rt._=Kr,r=function(){return Kr}.call(v,t,v,Z),r!==n&&(Z.exports=r)}).call(this)},67523:(Z,v,t)=>{var r=t(89465),n=t(47816),s=t(67206);function a(c,h){var p={};return h=s(h,3),n(c,function(d,k,M){r(p,h(d,k,M),d)}),p}Z.exports=a},66604:(Z,v,t)=>{var r=t(89465),n=t(47816),s=t(67206);function a(c,h){var p={};return h=s(h,3),n(c,function(d,k,M){r(p,k,h(d,k,M))}),p}Z.exports=a},88306:(Z,v,t)=>{var r=t(83369),n="Expected a function";function s(a,c){if(typeof a!="function"||c!=null&&typeof c!="function")throw new TypeError(n);var h=function(){var p=arguments,d=c?c.apply(this,p):p[0],k=h.cache;if(k.has(d))return k.get(d);var M=a.apply(this,p);return h.cache=k.set(d,M)||k,M};return h.cache=new(s.Cache||r),h}s.Cache=r,Z.exports=s},82492:(Z,v,t)=>{var r=t(42980),n=t(21463),s=n(function(a,c,h){r(a,c,h)});Z.exports=s},57557:(Z,v,t)=>{var r=t(29932),n=t(85990),s=t(57406),a=t(71811),c=t(98363),h=t(60696),p=t(99021),d=t(46904),k=1,M=2,C=4,w=p(function(I,F){var U={};if(I==null)return U;var B=!1;F=r(F,function(D){return D=a(D,I),B||(B=D.length>1),D}),c(I,d(I),U),B&&(U=n(U,k|M|C,h));for(var N=F.length;N--;)s(U,F[N]);return U});Z.exports=w},39601:(Z,v,t)=>{var r=t(40371),n=t(79152),s=t(15403),a=t(40327);function c(h){return s(h)?r(a(h)):n(h)}Z.exports=c},36968:(Z,v,t)=>{var r=t(10611);function n(s,a,c){return s==null?s:r(s,a,c)}Z.exports=n},11865:(Z,v,t)=>{var r=t(35393),n=r(function(s,a,c){return s+(c?"_":"")+a.toLowerCase()});Z.exports=n},70479:Z=>{function v(){return[]}Z.exports=v},95062:Z=>{function v(){return!1}Z.exports=v},59881:(Z,v,t)=>{var r=t(98363),n=t(81704);function s(a){return r(a,n(a))}Z.exports=s},79833:(Z,v,t)=>{var r=t(80531);function n(s){return s==null?"":r(s)}Z.exports=n},11700:(Z,v,t)=>{var r=t(98805),n=r("toUpperCase");Z.exports=n},58748:(Z,v,t)=>{var r=t(49029),n=t(93157),s=t(79833),a=t(2757);function c(h,p,d){return h=s(h),p=d?void 0:p,p===void 0?n(h)?a(h):r(h):h.match(p)||[]}Z.exports=c},27418:Z=>{"use strict";/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var v=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function s(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var c={},h=0;h<10;h++)c["_"+String.fromCharCode(h)]=h;var p=Object.getOwnPropertyNames(c).map(function(k){return c[k]});if(p.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(k){d[k]=k}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}Z.exports=s()?Object.assign:function(a,c){for(var h,p=n(a),d,k=1;k<arguments.length;k++){h=Object(arguments[k]);for(var M in h)t.call(h,M)&&(p[M]=h[M]);if(v){d=v(h);for(var C=0;C<d.length;C++)r.call(h,d[C])&&(p[d[C]]=h[d[C]])}}return p}},70631:(Z,v,t)=>{var r=typeof Map=="function"&&Map.prototype,n=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,s=r&&n&&typeof n.get=="function"?n.get:null,a=r&&Map.prototype.forEach,c=typeof Set=="function"&&Set.prototype,h=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,p=c&&h&&typeof h.get=="function"?h.get:null,d=c&&Set.prototype.forEach,k=typeof WeakMap=="function"&&WeakMap.prototype,M=k?WeakMap.prototype.has:null,C=typeof WeakSet=="function"&&WeakSet.prototype,w=C?WeakSet.prototype.has:null,I=typeof WeakRef=="function"&&WeakRef.prototype,F=I?WeakRef.prototype.deref:null,U=Boolean.prototype.valueOf,B=Object.prototype.toString,N=Function.prototype.toString,D=String.prototype.match,x=String.prototype.slice,T=String.prototype.replace,u=String.prototype.toUpperCase,b=String.prototype.toLowerCase,E=RegExp.prototype.test,A=Array.prototype.concat,R=Array.prototype.join,H=Array.prototype.slice,z=Math.floor,V=typeof BigInt=="function"?BigInt.prototype.valueOf:null,$=Object.getOwnPropertySymbols,ee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,q=typeof Symbol=="function"&&typeof Symbol.iterator=="object",oe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===q||"symbol")?Symbol.toStringTag:null,X=Object.prototype.propertyIsEnumerable,pe=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ne){return ne.__proto__}:null);function Ie(ne,ge){if(ne===1/0||ne===-1/0||ne!==ne||ne&&ne>-1e3&&ne<1e3||E.call(/e/,ge))return ge;var ye=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ne=="number"){var Xe=ne<0?-z(-ne):z(ne);if(Xe!==ne){var Ze=String(Xe),lt=x.call(ge,Ze.length+1);return T.call(Ze,ye,"$&_")+"."+T.call(T.call(lt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return T.call(ge,ye,"$&_")}var se=t(24654),be=se.custom,fe=$e(be)?be:null;Z.exports=function ne(ge,ye,Xe,Ze){var lt=ye||{};if(It(lt,"quoteStyle")&&lt.quoteStyle!=="single"&&lt.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(It(lt,"maxStringLength")&&(typeof lt.maxStringLength=="number"?lt.maxStringLength<0&&lt.maxStringLength!==1/0:lt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var _t=It(lt,"customInspect")?lt.customInspect:!0;if(typeof _t!="boolean"&&_t!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(It(lt,"indent")&&lt.indent!==null&&lt.indent!=="	"&&!(parseInt(lt.indent,10)===lt.indent&&lt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(It(lt,"numericSeparator")&&typeof lt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var zt=lt.numericSeparator;if(typeof ge>"u")return"undefined";if(ge===null)return"null";if(typeof ge=="boolean")return ge?"true":"false";if(typeof ge=="string")return ht(ge,lt);if(typeof ge=="number"){if(ge===0)return 1/0/ge>0?"0":"-0";var Vt=String(ge);return zt?Ie(ge,Vt):Vt}if(typeof ge=="bigint"){var sn=String(ge)+"n";return zt?Ie(ge,sn):sn}var yn=typeof lt.depth>"u"?5:lt.depth;if(typeof Xe>"u"&&(Xe=0),Xe>=yn&&yn>0&&typeof ge=="object")return Me(ge)?"[Array]":"[Object]";var dr=ut(lt,Xe);if(typeof Ze>"u")Ze=[];else if(Be(Ze,ge)>=0)return"[Circular]";function hr(Mn,tr,Sr){if(tr&&(Ze=H.call(Ze),Ze.push(tr)),Sr){var Xr={depth:lt.depth};return It(lt,"quoteStyle")&&(Xr.quoteStyle=lt.quoteStyle),ne(Mn,Xr,Xe+1,Ze)}return ne(Mn,lt,Xe+1,Ze)}if(typeof ge=="function"&&!Ne(ge)){var Mr=un(ge),rr=ae(ge,hr);return"[Function"+(Mr?": "+Mr:" (anonymous)")+"]"+(rr.length>0?" { "+R.call(rr,", ")+" }":"")}if($e(ge)){var Cr=q?T.call(String(ge),/^(Symbol\(.*\))_[^)]*$/,"$1"):ee.call(ge);return typeof ge=="object"&&!q?Je(Cr):Cr}if(Tn(ge)){for(var Ur="<"+b.call(String(ge.nodeName)),$r=ge.attributes||[],li=0;li<$r.length;li++)Ur+=" "+$r[li].name+"="+ue(we($r[li].value),"double",lt);return Ur+=">",ge.childNodes&&ge.childNodes.length&&(Ur+="..."),Ur+="</"+b.call(String(ge.nodeName))+">",Ur}if(Me(ge)){if(ge.length===0)return"[]";var ri=ae(ge,hr);return dr&&!vn(ri)?"["+Wt(ri,dr)+"]":"[ "+R.call(ri,", ")+" ]"}if(Ye(ge)){var Bt=ae(ge,hr);return!("cause"in Error.prototype)&&"cause"in ge&&!X.call(ge,"cause")?"{ ["+String(ge)+"] "+R.call(A.call("[cause]: "+hr(ge.cause),Bt),", ")+" }":Bt.length===0?"["+String(ge)+"]":"{ ["+String(ge)+"] "+R.call(Bt,", ")+" }"}if(typeof ge=="object"&&_t){if(fe&&typeof ge[fe]=="function"&&se)return se(ge,{depth:yn-Xe});if(_t!=="symbol"&&typeof ge.inspect=="function")return ge.inspect()}if(je(ge)){var Et=[];return a&&a.call(ge,function(Mn,tr){Et.push(hr(tr,ge,!0)+" => "+hr(Mn,ge))}),ft("Map",s.call(ge),Et,dr)}if(Kt(ge)){var bn=[];return d&&d.call(ge,function(Mn){bn.push(hr(Mn,ge))}),ft("Set",p.call(ge),bn,dr)}if($t(ge))return wt("WeakMap");if(kn(ge))return wt("WeakSet");if(et(ge))return wt("WeakRef");if(Ct(ge))return Je(hr(Number(ge)));if(Qe(ge))return Je(hr(V.call(ge)));if(ln(ge))return Je(U.call(ge));if(mt(ge))return Je(hr(String(ge)));if(!Ce(ge)&&!Ne(ge)){var cn=ae(ge,hr),Yn=pe?pe(ge)===Object.prototype:ge instanceof Object||ge.constructor===Object,on=ge instanceof Object?"":"null prototype",ze=!Yn&&oe&&Object(ge)===ge&&oe in ge?x.call(mn(ge),8,-1):on?"Object":"",Le=Yn||typeof ge.constructor!="function"?"":ge.constructor.name?ge.constructor.name+" ":"",Ht=Le+(ze||on?"["+R.call(A.call([],ze||[],on||[]),": ")+"] ":"");return cn.length===0?Ht+"{}":dr?Ht+"{"+Wt(cn,dr)+"}":Ht+"{ "+R.call(cn,", ")+" }"}return String(ge)};function ue(ne,ge,ye){var Xe=(ye.quoteStyle||ge)==="double"?'"':"'";return Xe+ne+Xe}function we(ne){return T.call(String(ne),/"/g,"&quot;")}function Me(ne){return mn(ne)==="[object Array]"&&(!oe||!(typeof ne=="object"&&oe in ne))}function Ce(ne){return mn(ne)==="[object Date]"&&(!oe||!(typeof ne=="object"&&oe in ne))}function Ne(ne){return mn(ne)==="[object RegExp]"&&(!oe||!(typeof ne=="object"&&oe in ne))}function Ye(ne){return mn(ne)==="[object Error]"&&(!oe||!(typeof ne=="object"&&oe in ne))}function mt(ne){return mn(ne)==="[object String]"&&(!oe||!(typeof ne=="object"&&oe in ne))}function Ct(ne){return mn(ne)==="[object Number]"&&(!oe||!(typeof ne=="object"&&oe in ne))}function ln(ne){return mn(ne)==="[object Boolean]"&&(!oe||!(typeof ne=="object"&&oe in ne))}function $e(ne){if(q)return ne&&typeof ne=="object"&&ne instanceof Symbol;if(typeof ne=="symbol")return!0;if(!ne||typeof ne!="object"||!ee)return!1;try{return ee.call(ne),!0}catch{}return!1}function Qe(ne){if(!ne||typeof ne!="object"||!V)return!1;try{return V.call(ne),!0}catch{}return!1}var bt=Object.prototype.hasOwnProperty||function(ne){return ne in this};function It(ne,ge){return bt.call(ne,ge)}function mn(ne){return B.call(ne)}function un(ne){if(ne.name)return ne.name;var ge=D.call(N.call(ne),/^function\s*([\w$]+)/);return ge?ge[1]:null}function Be(ne,ge){if(ne.indexOf)return ne.indexOf(ge);for(var ye=0,Xe=ne.length;ye<Xe;ye++)if(ne[ye]===ge)return ye;return-1}function je(ne){if(!s||!ne||typeof ne!="object")return!1;try{s.call(ne);try{p.call(ne)}catch{return!0}return ne instanceof Map}catch{}return!1}function $t(ne){if(!M||!ne||typeof ne!="object")return!1;try{M.call(ne,M);try{w.call(ne,w)}catch{return!0}return ne instanceof WeakMap}catch{}return!1}function et(ne){if(!F||!ne||typeof ne!="object")return!1;try{return F.call(ne),!0}catch{}return!1}function Kt(ne){if(!p||!ne||typeof ne!="object")return!1;try{p.call(ne);try{s.call(ne)}catch{return!0}return ne instanceof Set}catch{}return!1}function kn(ne){if(!w||!ne||typeof ne!="object")return!1;try{w.call(ne,w);try{M.call(ne,M)}catch{return!0}return ne instanceof WeakSet}catch{}return!1}function Tn(ne){return!ne||typeof ne!="object"?!1:typeof HTMLElement<"u"&&ne instanceof HTMLElement?!0:typeof ne.nodeName=="string"&&typeof ne.getAttribute=="function"}function ht(ne,ge){if(ne.length>ge.maxStringLength){var ye=ne.length-ge.maxStringLength,Xe="... "+ye+" more character"+(ye>1?"s":"");return ht(x.call(ne,0,ge.maxStringLength),ge)+Xe}var Ze=T.call(T.call(ne,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ot);return ue(Ze,"single",ge)}function ot(ne){var ge=ne.charCodeAt(0),ye={8:"b",9:"t",10:"n",12:"f",13:"r"}[ge];return ye?"\\"+ye:"\\x"+(ge<16?"0":"")+u.call(ge.toString(16))}function Je(ne){return"Object("+ne+")"}function wt(ne){return ne+" { ? }"}function ft(ne,ge,ye,Xe){var Ze=Xe?Wt(ye,Xe):R.call(ye,", ");return ne+" ("+ge+") {"+Ze+"}"}function vn(ne){for(var ge=0;ge<ne.length;ge++)if(Be(ne[ge],`
`)>=0)return!1;return!0}function ut(ne,ge){var ye;if(ne.indent==="	")ye="	";else if(typeof ne.indent=="number"&&ne.indent>0)ye=R.call(Array(ne.indent+1)," ");else return null;return{base:ye,prev:R.call(Array(ge+1),ye)}}function Wt(ne,ge){if(ne.length===0)return"";var ye=`
`+ge.prev+ge.base;return ye+R.call(ne,","+ye)+`
`+ge.prev}function ae(ne,ge){var ye=Me(ne),Xe=[];if(ye){Xe.length=ne.length;for(var Ze=0;Ze<ne.length;Ze++)Xe[Ze]=It(ne,Ze)?ge(ne[Ze],ne):""}var lt=typeof $=="function"?$(ne):[],_t;if(q){_t={};for(var zt=0;zt<lt.length;zt++)_t["$"+lt[zt]]=lt[zt]}for(var Vt in ne)It(ne,Vt)&&(ye&&String(Number(Vt))===Vt&&Vt<ne.length||q&&_t["$"+Vt]instanceof Symbol||(E.call(/[^\w$]/,Vt)?Xe.push(ge(Vt,ne)+": "+ge(ne[Vt],ne)):Xe.push(Vt+": "+ge(ne[Vt],ne))));if(typeof $=="function")for(var sn=0;sn<lt.length;sn++)X.call(ne,lt[sn])&&Xe.push("["+ge(lt[sn])+"]: "+ge(ne[lt[sn]],ne));return Xe}},79430:function(Z,v){var t,r,n;(function(s,a){r=[],t=a,n=typeof t=="function"?t.apply(v,r):t,n!==void 0&&(Z.exports=n)})(this,function(){return function(s){function a(b){return b===" "||b==="	"||b===`
`||b==="\f"||b==="\r"}function c(b){var E,A=b.exec(s.substring(D));if(A)return E=A[0],D+=E.length,E}for(var h=s.length,p=/^[ \t\n\r\u000c]+/,d=/^[, \t\n\r\u000c]+/,k=/^[^ \t\n\r\u000c]+/,M=/[,]+$/,C=/^\d+$/,w=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,I,F,U,B,N,D=0,x=[];;){if(c(d),D>=h)return x;I=c(k),F=[],I.slice(-1)===","?(I=I.replace(M,""),u()):T()}function T(){for(c(p),U="",B="in descriptor";;){if(N=s.charAt(D),B==="in descriptor")if(a(N))U&&(F.push(U),U="",B="after descriptor");else if(N===","){D+=1,U&&F.push(U),u();return}else if(N==="(")U=U+N,B="in parens";else if(N===""){U&&F.push(U),u();return}else U=U+N;else if(B==="in parens")if(N===")")U=U+N,B="in descriptor";else if(N===""){F.push(U),u();return}else U=U+N;else if(B==="after descriptor"&&!a(N))if(N===""){u();return}else B="in descriptor",D-=1;D+=1}}function u(){var b=!1,E,A,R,H,z={},V,$,ee,q,oe;for(H=0;H<F.length;H++)V=F[H],$=V[V.length-1],ee=V.substring(0,V.length-1),q=parseInt(ee,10),oe=parseFloat(ee),C.test(ee)&&$==="w"?((E||A)&&(b=!0),q===0?b=!0:E=q):w.test(ee)&&$==="x"?((E||A||R)&&(b=!0),oe<0?b=!0:A=oe):C.test(ee)&&$==="h"?((R||A)&&(b=!0),q===0?b=!0:R=q):b=!0;b?console&&console.log&&console.log("Invalid srcset descriptor found in '"+s+"' at '"+V+"'."):(z.url=I,E&&(z.w=E),A&&(z.d=A),R&&(z.h=R),x.push(z))}}})},74241:Z=>{var v=String,t=function(){return{isColorSupported:!1,reset:v,bold:v,dim:v,italic:v,underline:v,inverse:v,hidden:v,strikethrough:v,black:v,red:v,green:v,yellow:v,blue:v,magenta:v,cyan:v,white:v,gray:v,bgBlack:v,bgRed:v,bgGreen:v,bgYellow:v,bgBlue:v,bgMagenta:v,bgCyan:v,bgWhite:v}};Z.exports=t(),Z.exports.createColors=t},23450:function(Z){(function(v,t){Z.exports=t()})(this,function(){var v=[],t=[],r={},n={},s={};function a(w){return typeof w=="string"?new RegExp("^"+w+"$","i"):w}function c(w,I){return w===I?I:w===w.toLowerCase()?I.toLowerCase():w===w.toUpperCase()?I.toUpperCase():w[0]===w[0].toUpperCase()?I.charAt(0).toUpperCase()+I.substr(1).toLowerCase():I.toLowerCase()}function h(w,I){return w.replace(/\$(\d{1,2})/g,function(F,U){return I[U]||""})}function p(w,I){return w.replace(I[0],function(F,U){var B=h(I[1],arguments);return c(F===""?w[U-1]:F,B)})}function d(w,I,F){if(!w.length||r.hasOwnProperty(w))return I;for(var U=F.length;U--;){var B=F[U];if(B[0].test(I))return p(I,B)}return I}function k(w,I,F){return function(U){var B=U.toLowerCase();return I.hasOwnProperty(B)?c(U,B):w.hasOwnProperty(B)?c(U,w[B]):d(B,U,F)}}function M(w,I,F,U){return function(B){var N=B.toLowerCase();return I.hasOwnProperty(N)?!0:w.hasOwnProperty(N)?!1:d(N,N,F)===N}}function C(w,I,F){var U=I===1?C.singular(w):C.plural(w);return(F?I+" ":"")+U}return C.plural=k(s,n,v),C.isPlural=M(s,n,v),C.singular=k(n,s,t),C.isSingular=M(n,s,t),C.addPluralRule=function(w,I){v.push([a(w),I])},C.addSingularRule=function(w,I){t.push([a(w),I])},C.addUncountableRule=function(w){if(typeof w=="string"){r[w.toLowerCase()]=!0;return}C.addPluralRule(w,"$0"),C.addSingularRule(w,"$0")},C.addIrregularRule=function(w,I){I=I.toLowerCase(),w=w.toLowerCase(),s[w]=I,n[I]=w},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(w){return C.addIrregularRule(w[0],w[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(w){return C.addPluralRule(w[0],w[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(w){return C.addSingularRule(w[0],w[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(C.addUncountableRule),C})},41353:(Z,v,t)=>{"use strict";let r=t(21019);class n extends r{constructor(a){super(a),this.type="atrule"}append(...a){return this.proxyOf.nodes||(this.nodes=[]),super.append(...a)}prepend(...a){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...a)}}Z.exports=n,n.default=n,r.registerAtRule(n)},69932:(Z,v,t)=>{"use strict";let r=t(65631);class n extends r{constructor(a){super(a),this.type="comment"}}Z.exports=n,n.default=n},21019:(Z,v,t)=>{"use strict";let{isClean:r,my:n}=t(65513),s=t(94258),a=t(69932),c=t(65631),h,p,d,k;function M(I){return I.map(F=>(F.nodes&&(F.nodes=M(F.nodes)),delete F.source,F))}function C(I){if(I[r]=!1,I.proxyOf.nodes)for(let F of I.proxyOf.nodes)C(F)}class w extends c{append(...F){for(let U of F){let B=this.normalize(U,this.last);for(let N of B)this.proxyOf.nodes.push(N)}return this.markDirty(),this}cleanRaws(F){if(super.cleanRaws(F),this.nodes)for(let U of this.nodes)U.cleanRaws(F)}each(F){if(!this.proxyOf.nodes)return;let U=this.getIterator(),B,N;for(;this.indexes[U]<this.proxyOf.nodes.length&&(B=this.indexes[U],N=F(this.proxyOf.nodes[B],B),N!==!1);)this.indexes[U]+=1;return delete this.indexes[U],N}every(F){return this.nodes.every(F)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let F=this.lastEach;return this.indexes[F]=0,F}getProxyProcessor(){return{get(F,U){return U==="proxyOf"?F:F[U]?U==="each"||typeof U=="string"&&U.startsWith("walk")?(...B)=>F[U](...B.map(N=>typeof N=="function"?(D,x)=>N(D.toProxy(),x):N)):U==="every"||U==="some"?B=>F[U]((N,...D)=>B(N.toProxy(),...D)):U==="root"?()=>F.root().toProxy():U==="nodes"?F.nodes.map(B=>B.toProxy()):U==="first"||U==="last"?F[U].toProxy():F[U]:F[U]},set(F,U,B){return F[U]===B||(F[U]=B,(U==="name"||U==="params"||U==="selector")&&F.markDirty()),!0}}}index(F){return typeof F=="number"?F:(F.proxyOf&&(F=F.proxyOf),this.proxyOf.nodes.indexOf(F))}insertAfter(F,U){let B=this.index(F),N=this.normalize(U,this.proxyOf.nodes[B]).reverse();B=this.index(F);for(let x of N)this.proxyOf.nodes.splice(B+1,0,x);let D;for(let x in this.indexes)D=this.indexes[x],B<D&&(this.indexes[x]=D+N.length);return this.markDirty(),this}insertBefore(F,U){let B=this.index(F),N=B===0?"prepend":!1,D=this.normalize(U,this.proxyOf.nodes[B],N).reverse();B=this.index(F);for(let T of D)this.proxyOf.nodes.splice(B,0,T);let x;for(let T in this.indexes)x=this.indexes[T],B<=x&&(this.indexes[T]=x+D.length);return this.markDirty(),this}normalize(F,U){if(typeof F=="string")F=M(h(F).nodes);else if(Array.isArray(F)){F=F.slice(0);for(let N of F)N.parent&&N.parent.removeChild(N,"ignore")}else if(F.type==="root"&&this.type!=="document"){F=F.nodes.slice(0);for(let N of F)N.parent&&N.parent.removeChild(N,"ignore")}else if(F.type)F=[F];else if(F.prop){if(typeof F.value>"u")throw new Error("Value field is missed in node creation");typeof F.value!="string"&&(F.value=String(F.value)),F=[new s(F)]}else if(F.selector)F=[new p(F)];else if(F.name)F=[new d(F)];else if(F.text)F=[new a(F)];else throw new Error("Unknown node type in node creation");return F.map(N=>(N[n]||w.rebuild(N),N=N.proxyOf,N.parent&&N.parent.removeChild(N),N[r]&&C(N),typeof N.raws.before>"u"&&U&&typeof U.raws.before<"u"&&(N.raws.before=U.raws.before.replace(/\S/g,"")),N.parent=this.proxyOf,N))}prepend(...F){F=F.reverse();for(let U of F){let B=this.normalize(U,this.first,"prepend").reverse();for(let N of B)this.proxyOf.nodes.unshift(N);for(let N in this.indexes)this.indexes[N]=this.indexes[N]+B.length}return this.markDirty(),this}push(F){return F.parent=this,this.proxyOf.nodes.push(F),this}removeAll(){for(let F of this.proxyOf.nodes)F.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(F){F=this.index(F),this.proxyOf.nodes[F].parent=void 0,this.proxyOf.nodes.splice(F,1);let U;for(let B in this.indexes)U=this.indexes[B],U>=F&&(this.indexes[B]=U-1);return this.markDirty(),this}replaceValues(F,U,B){return B||(B=U,U={}),this.walkDecls(N=>{U.props&&!U.props.includes(N.prop)||U.fast&&!N.value.includes(U.fast)||(N.value=N.value.replace(F,B))}),this.markDirty(),this}some(F){return this.nodes.some(F)}walk(F){return this.each((U,B)=>{let N;try{N=F(U,B)}catch(D){throw U.addToError(D)}return N!==!1&&U.walk&&(N=U.walk(F)),N})}walkAtRules(F,U){return U?F instanceof RegExp?this.walk((B,N)=>{if(B.type==="atrule"&&F.test(B.name))return U(B,N)}):this.walk((B,N)=>{if(B.type==="atrule"&&B.name===F)return U(B,N)}):(U=F,this.walk((B,N)=>{if(B.type==="atrule")return U(B,N)}))}walkComments(F){return this.walk((U,B)=>{if(U.type==="comment")return F(U,B)})}walkDecls(F,U){return U?F instanceof RegExp?this.walk((B,N)=>{if(B.type==="decl"&&F.test(B.prop))return U(B,N)}):this.walk((B,N)=>{if(B.type==="decl"&&B.prop===F)return U(B,N)}):(U=F,this.walk((B,N)=>{if(B.type==="decl")return U(B,N)}))}walkRules(F,U){return U?F instanceof RegExp?this.walk((B,N)=>{if(B.type==="rule"&&F.test(B.selector))return U(B,N)}):this.walk((B,N)=>{if(B.type==="rule"&&B.selector===F)return U(B,N)}):(U=F,this.walk((B,N)=>{if(B.type==="rule")return U(B,N)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}w.registerParse=I=>{h=I},w.registerRule=I=>{p=I},w.registerAtRule=I=>{d=I},w.registerRoot=I=>{k=I},Z.exports=w,w.default=w,w.rebuild=I=>{I.type==="atrule"?Object.setPrototypeOf(I,d.prototype):I.type==="rule"?Object.setPrototypeOf(I,p.prototype):I.type==="decl"?Object.setPrototypeOf(I,s.prototype):I.type==="comment"?Object.setPrototypeOf(I,a.prototype):I.type==="root"&&Object.setPrototypeOf(I,k.prototype),I[n]=!0,I.nodes&&I.nodes.forEach(F=>{w.rebuild(F)})}},42671:(Z,v,t)=>{"use strict";let r=t(74241),n=t(22868);class s extends Error{constructor(c,h,p,d,k,M){super(c),this.name="CssSyntaxError",this.reason=c,k&&(this.file=k),d&&(this.source=d),M&&(this.plugin=M),typeof h<"u"&&typeof p<"u"&&(typeof h=="number"?(this.line=h,this.column=p):(this.line=h.line,this.column=h.column,this.endLine=p.line,this.endColumn=p.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,s)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(c){if(!this.source)return"";let h=this.source;c==null&&(c=r.isColorSupported),n&&c&&(h=n(h));let p=h.split(/\r?\n/),d=Math.max(this.line-3,0),k=Math.min(this.line+2,p.length),M=String(k).length,C,w;if(c){let{bold:I,gray:F,red:U}=r.createColors(!0);C=B=>I(U(B)),w=B=>F(B)}else C=w=I=>I;return p.slice(d,k).map((I,F)=>{let U=d+1+F,B=" "+(" "+U).slice(-M)+" | ";if(U===this.line){let N=w(B.replace(/\d/g," "))+I.slice(0,this.column-1).replace(/[^\t]/g," ");return C(">")+w(B)+I+`
 `+N+C("^")}return" "+w(B)+I}).join(`
`)}toString(){let c=this.showSourceCode();return c&&(c=`

`+c+`
`),this.name+": "+this.message+c}}Z.exports=s,s.default=s},94258:(Z,v,t)=>{"use strict";let r=t(65631);class n extends r{constructor(a){a&&typeof a.value<"u"&&typeof a.value!="string"&&(a={...a,value:String(a.value)}),super(a),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}Z.exports=n,n.default=n},26461:(Z,v,t)=>{"use strict";let r=t(21019),n,s;class a extends r{constructor(h){super({type:"document",...h}),this.nodes||(this.nodes=[])}toResult(h={}){return new n(new s,this,h).stringify()}}a.registerLazyResult=c=>{n=c},a.registerProcessor=c=>{s=c},Z.exports=a,a.default=a},50250:(Z,v,t)=>{"use strict";let r=t(94258),n=t(47981),s=t(69932),a=t(41353),c=t(5995),h=t(41025),p=t(31675);function d(k,M){if(Array.isArray(k))return k.map(I=>d(I));let{inputs:C,...w}=k;if(C){M=[];for(let I of C){let F={...I,__proto__:c.prototype};F.map&&(F.map={...F.map,__proto__:n.prototype}),M.push(F)}}if(w.nodes&&(w.nodes=k.nodes.map(I=>d(I,M))),w.source){let{inputId:I,...F}=w.source;w.source=F,I!=null&&(w.source.input=M[I])}if(w.type==="root")return new h(w);if(w.type==="decl")return new r(w);if(w.type==="rule")return new p(w);if(w.type==="comment")return new s(w);if(w.type==="atrule")return new a(w);throw new Error("Unknown node type: "+k.type)}Z.exports=d,d.default=d},5995:(Z,v,t)=>{"use strict";let{SourceMapConsumer:r,SourceMapGenerator:n}=t(70209),{fileURLToPath:s,pathToFileURL:a}=t(87414),{isAbsolute:c,resolve:h}=t(99830),{nanoid:p}=t(62961),d=t(22868),k=t(42671),M=t(47981),C=Symbol("fromOffsetCache"),w=Boolean(r&&n),I=Boolean(h&&c);class F{constructor(B,N={}){if(B===null||typeof B>"u"||typeof B=="object"&&!B.toString)throw new Error(`PostCSS received ${B} instead of CSS string`);if(this.css=B.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,N.from&&(!I||/^\w+:\/\//.test(N.from)||c(N.from)?this.file=N.from:this.file=h(N.from)),I&&w){let D=new M(this.css,N);if(D.text){this.map=D;let x=D.consumer().file;!this.file&&x&&(this.file=this.mapResolve(x))}}this.file||(this.id="<input css "+p(6)+">"),this.map&&(this.map.file=this.from)}error(B,N,D,x={}){let T,u,b;if(N&&typeof N=="object"){let A=N,R=D;if(typeof A.offset=="number"){let H=this.fromOffset(A.offset);N=H.line,D=H.col}else N=A.line,D=A.column;if(typeof R.offset=="number"){let H=this.fromOffset(R.offset);u=H.line,b=H.col}else u=R.line,b=R.column}else if(!D){let A=this.fromOffset(N);N=A.line,D=A.col}let E=this.origin(N,D,u,b);return E?T=new k(B,E.endLine===void 0?E.line:{column:E.column,line:E.line},E.endLine===void 0?E.column:{column:E.endColumn,line:E.endLine},E.source,E.file,x.plugin):T=new k(B,u===void 0?N:{column:D,line:N},u===void 0?D:{column:b,line:u},this.css,this.file,x.plugin),T.input={column:D,endColumn:b,endLine:u,line:N,source:this.css},this.file&&(a&&(T.input.url=a(this.file).toString()),T.input.file=this.file),T}fromOffset(B){let N,D;if(this[C])D=this[C];else{let T=this.css.split(`
`);D=new Array(T.length);let u=0;for(let b=0,E=T.length;b<E;b++)D[b]=u,u+=T[b].length+1;this[C]=D}N=D[D.length-1];let x=0;if(B>=N)x=D.length-1;else{let T=D.length-2,u;for(;x<T;)if(u=x+(T-x>>1),B<D[u])T=u-1;else if(B>=D[u+1])x=u+1;else{x=u;break}}return{col:B-D[x]+1,line:x+1}}mapResolve(B){return/^\w+:\/\//.test(B)?B:h(this.map.consumer().sourceRoot||this.map.root||".",B)}origin(B,N,D,x){if(!this.map)return!1;let T=this.map.consumer(),u=T.originalPositionFor({column:N,line:B});if(!u.source)return!1;let b;typeof D=="number"&&(b=T.originalPositionFor({column:x,line:D}));let E;c(u.source)?E=a(u.source):E=new URL(u.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let A={column:u.column,endColumn:b&&b.column,endLine:b&&b.line,line:u.line,url:E.toString()};if(E.protocol==="file:")if(s)A.file=s(E);else throw new Error("file: protocol is not available in this PostCSS build");let R=T.sourceContentFor(u.source);return R&&(A.source=R),A}toJSON(){let B={};for(let N of["hasBOM","css","file","id"])this[N]!=null&&(B[N]=this[N]);return this.map&&(B.map={...this.map},B.map.consumerCache&&(B.map.consumerCache=void 0)),B}get from(){return this.file||this.id}}Z.exports=F,F.default=F,d&&d.registerInput&&d.registerInput(F)},21939:(Z,v,t)=>{"use strict";let{isClean:r,my:n}=t(65513),s=t(48505),a=t(67088),c=t(21019),h=t(26461),p=t(72448),d=t(83632),k=t(66939),M=t(41025);const C={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},w={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},I={Once:!0,postcssPlugin:!0,prepare:!0},F=0;function U(u){return typeof u=="object"&&typeof u.then=="function"}function B(u){let b=!1,E=C[u.type];return u.type==="decl"?b=u.prop.toLowerCase():u.type==="atrule"&&(b=u.name.toLowerCase()),b&&u.append?[E,E+"-"+b,F,E+"Exit",E+"Exit-"+b]:b?[E,E+"-"+b,E+"Exit",E+"Exit-"+b]:u.append?[E,F,E+"Exit"]:[E,E+"Exit"]}function N(u){let b;return u.type==="document"?b=["Document",F,"DocumentExit"]:u.type==="root"?b=["Root",F,"RootExit"]:b=B(u),{eventIndex:0,events:b,iterator:0,node:u,visitorIndex:0,visitors:[]}}function D(u){return u[r]=!1,u.nodes&&u.nodes.forEach(b=>D(b)),u}let x={};class T{constructor(b,E,A){this.stringified=!1,this.processed=!1;let R;if(typeof E=="object"&&E!==null&&(E.type==="root"||E.type==="document"))R=D(E);else if(E instanceof T||E instanceof d)R=D(E.root),E.map&&(typeof A.map>"u"&&(A.map={}),A.map.inline||(A.map.inline=!1),A.map.prev=E.map);else{let H=k;A.syntax&&(H=A.syntax.parse),A.parser&&(H=A.parser),H.parse&&(H=H.parse);try{R=H(E,A)}catch(z){this.processed=!0,this.error=z}R&&!R[n]&&c.rebuild(R)}this.result=new d(b,R,A),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(H=>typeof H=="object"&&H.prepare?{...H,...H.prepare(this.result)}:H)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(b){return this.async().catch(b)}finally(b){return this.async().then(b,b)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(b,E){let A=this.result.lastPlugin;try{E&&E.addToError(b),this.error=b,b.name==="CssSyntaxError"&&!b.plugin?(b.plugin=A.postcssPlugin,b.setMessage()):A.postcssVersion}catch(R){console&&console.error&&console.error(R)}return b}prepareVisitors(){this.listeners={};let b=(E,A,R)=>{this.listeners[A]||(this.listeners[A]=[]),this.listeners[A].push([E,R])};for(let E of this.plugins)if(typeof E=="object")for(let A in E){if(!w[A]&&/^[A-Z]/.test(A))throw new Error(`Unknown event ${A} in ${E.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!I[A])if(typeof E[A]=="object")for(let R in E[A])R==="*"?b(E,A,E[A][R]):b(E,A+"-"+R.toLowerCase(),E[A][R]);else typeof E[A]=="function"&&b(E,A,E[A])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let b=0;b<this.plugins.length;b++){let E=this.plugins[b],A=this.runOnRoot(E);if(U(A))try{await A}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[r];){b[r]=!0;let E=[N(b)];for(;E.length>0;){let A=this.visitTick(E);if(U(A))try{await A}catch(R){let H=E[E.length-1].node;throw this.handleError(R,H)}}}if(this.listeners.OnceExit)for(let[E,A]of this.listeners.OnceExit){this.result.lastPlugin=E;try{if(b.type==="document"){let R=b.nodes.map(H=>A(H,this.helpers));await Promise.all(R)}else await A(b,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(b){this.result.lastPlugin=b;try{if(typeof b=="object"&&b.Once){if(this.result.root.type==="document"){let E=this.result.root.nodes.map(A=>b.Once(A,this.helpers));return U(E[0])?Promise.all(E):E}return b.Once(this.result.root,this.helpers)}else if(typeof b=="function")return b(this.result.root,this.result)}catch(E){throw this.handleError(E)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let b=this.result.opts,E=a;b.syntax&&(E=b.syntax.stringify),b.stringifier&&(E=b.stringifier),E.stringify&&(E=E.stringify);let R=new s(E,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let b of this.plugins){let E=this.runOnRoot(b);if(U(E))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[r];)b[r]=!0,this.walkSync(b);if(this.listeners.OnceExit)if(b.type==="document")for(let E of b.nodes)this.visitSync(this.listeners.OnceExit,E);else this.visitSync(this.listeners.OnceExit,b)}return this.result}then(b,E){return this.async().then(b,E)}toString(){return this.css}visitSync(b,E){for(let[A,R]of b){this.result.lastPlugin=A;let H;try{H=R(E,this.helpers)}catch(z){throw this.handleError(z,E.proxyOf)}if(E.type!=="root"&&E.type!=="document"&&!E.parent)return!0;if(U(H))throw this.getAsyncError()}}visitTick(b){let E=b[b.length-1],{node:A,visitors:R}=E;if(A.type!=="root"&&A.type!=="document"&&!A.parent){b.pop();return}if(R.length>0&&E.visitorIndex<R.length){let[z,V]=R[E.visitorIndex];E.visitorIndex+=1,E.visitorIndex===R.length&&(E.visitors=[],E.visitorIndex=0),this.result.lastPlugin=z;try{return V(A.toProxy(),this.helpers)}catch($){throw this.handleError($,A)}}if(E.iterator!==0){let z=E.iterator,V;for(;V=A.nodes[A.indexes[z]];)if(A.indexes[z]+=1,!V[r]){V[r]=!0,b.push(N(V));return}E.iterator=0,delete A.indexes[z]}let H=E.events;for(;E.eventIndex<H.length;){let z=H[E.eventIndex];if(E.eventIndex+=1,z===F){A.nodes&&A.nodes.length&&(A[r]=!0,E.iterator=A.getIterator());return}else if(this.listeners[z]){E.visitors=this.listeners[z];return}}b.pop()}walkSync(b){b[r]=!0;let E=B(b);for(let A of E)if(A===F)b.nodes&&b.each(R=>{R[r]||this.walkSync(R)});else{let R=this.listeners[A];if(R&&this.visitSync(R,b.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}T.registerPostcss=u=>{x=u},Z.exports=T,T.default=T,M.registerLazyResult(T),h.registerLazyResult(T)},54715:Z=>{"use strict";let v={comma(t){return v.split(t,[","],!0)},space(t){let r=[" ",`
`,"	"];return v.split(t,r)},split(t,r,n){let s=[],a="",c=!1,h=0,p=!1,d="",k=!1;for(let M of t)k?k=!1:M==="\\"?k=!0:p?M===d&&(p=!1):M==='"'||M==="'"?(p=!0,d=M):M==="("?h+=1:M===")"?h>0&&(h-=1):h===0&&r.includes(M)&&(c=!0),c?(a!==""&&s.push(a.trim()),a="",c=!1):a+=M;return(n||a!=="")&&s.push(a.trim()),s}};Z.exports=v,v.default=v},48505:(Z,v,t)=>{"use strict";let{SourceMapConsumer:r,SourceMapGenerator:n}=t(70209),{dirname:s,relative:a,resolve:c,sep:h}=t(99830),{pathToFileURL:p}=t(87414),d=t(5995),k=Boolean(r&&n),M=Boolean(s&&c&&a&&h);class C{constructor(I,F,U,B){this.stringify=I,this.mapOpts=U.map||{},this.root=F,this.opts=U,this.css=B,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let I;this.isInline()?I="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?I=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?I=this.mapOpts.annotation(this.opts.to,this.root):I=this.outputFile()+".map";let F=`
`;this.css.includes(`\r
`)&&(F=`\r
`),this.css+=F+"/*# sourceMappingURL="+I+" */"}applyPrevMaps(){for(let I of this.previous()){let F=this.toUrl(this.path(I.file)),U=I.root||s(I.file),B;this.mapOpts.sourcesContent===!1?(B=new r(I.text),B.sourcesContent&&(B.sourcesContent=B.sourcesContent.map(()=>null))):B=I.consumer(),this.map.applySourceMap(B,F,this.toUrl(this.path(U)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let I;for(let F=this.root.nodes.length-1;F>=0;F--)I=this.root.nodes[F],I.type==="comment"&&I.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(F)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),M&&k&&this.isMap())return this.generateMap();{let I="";return this.stringify(this.root,F=>{I+=F}),[I]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let I=this.previous()[0].consumer();I.file=this.outputFile(),this.map=n.fromSourceMap(I)}else this.map=new n({file:this.outputFile()}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new n({file:this.outputFile()});let I=1,F=1,U="<no source>",B={generated:{column:0,line:0},original:{column:0,line:0},source:""},N,D;this.stringify(this.root,(x,T,u)=>{if(this.css+=x,T&&u!=="end"&&(B.generated.line=I,B.generated.column=F-1,T.source&&T.source.start?(B.source=this.sourcePath(T),B.original.line=T.source.start.line,B.original.column=T.source.start.column-1,this.map.addMapping(B)):(B.source=U,B.original.line=1,B.original.column=0,this.map.addMapping(B))),N=x.match(/\n/g),N?(I+=N.length,D=x.lastIndexOf(`
`),F=x.length-D):F+=x.length,T&&u!=="start"){let b=T.parent||{raws:{}};(!(T.type==="decl"||T.type==="atrule"&&!T.nodes)||T!==b.last||b.raws.semicolon)&&(T.source&&T.source.end?(B.source=this.sourcePath(T),B.original.line=T.source.end.line,B.original.column=T.source.end.column-1,B.generated.line=I,B.generated.column=F-2,this.map.addMapping(B)):(B.source=U,B.original.line=1,B.original.column=0,B.generated.line=I,B.generated.column=F-1,this.map.addMapping(B)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(I=>I.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let I=this.mapOpts.annotation;return typeof I<"u"&&I!==!0?!1:this.previous().length?this.previous().some(F=>F.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(I=>I.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(I){if(this.mapOpts.absolute||I.charCodeAt(0)===60||/^\w+:\/\//.test(I))return I;let F=this.memoizedPaths.get(I);if(F)return F;let U=this.opts.to?s(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(U=s(c(U,this.mapOpts.annotation)));let B=a(U,I);return this.memoizedPaths.set(I,B),B}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(I=>{if(I.source&&I.source.input.map){let F=I.source.input.map;this.previousMaps.includes(F)||this.previousMaps.push(F)}});else{let I=new d(this.css,this.opts);I.map&&this.previousMaps.push(I.map)}return this.previousMaps}setSourcesContent(){let I={};if(this.root)this.root.walk(F=>{if(F.source){let U=F.source.input.from;if(U&&!I[U]){I[U]=!0;let B=this.usesFileUrls?this.toFileUrl(U):this.toUrl(this.path(U));this.map.setSourceContent(B,F.source.input.css)}}});else if(this.css){let F=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(F,this.css)}}sourcePath(I){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(I.source.input.from):this.toUrl(this.path(I.source.input.from))}toBase64(I){return Buffer?Buffer.from(I).toString("base64"):window.btoa(unescape(encodeURIComponent(I)))}toFileUrl(I){let F=this.memoizedFileURLs.get(I);if(F)return F;if(p){let U=p(I).toString();return this.memoizedFileURLs.set(I,U),U}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(I){let F=this.memoizedURLs.get(I);if(F)return F;h==="\\"&&(I=I.replace(/\\/g,"/"));let U=encodeURI(I).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(I,U),U}}Z.exports=C},47647:(Z,v,t)=>{"use strict";let r=t(48505),n=t(67088),s=t(72448),a=t(66939);const c=t(83632);class h{constructor(d,k,M){k=k.toString(),this.stringified=!1,this._processor=d,this._css=k,this._opts=M,this._map=void 0;let C,w=n;this.result=new c(this._processor,C,this._opts),this.result.css=k;let I=this;Object.defineProperty(this.result,"root",{get(){return I.root}});let F=new r(w,C,this._opts,k);if(F.isMap()){let[U,B]=F.generate();U&&(this.result.css=U),B&&(this.result.map=B)}}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(d){return this.async().catch(d)}finally(d){return this.async().then(d,d)}sync(){if(this.error)throw this.error;return this.result}then(d,k){return this.async().then(d,k)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let d,k=a;try{d=k(this._css,this._opts)}catch(M){this.error=M}if(this.error)throw this.error;return this._root=d,d}get[Symbol.toStringTag](){return"NoWorkResult"}}Z.exports=h,h.default=h},65631:(Z,v,t)=>{"use strict";let{isClean:r,my:n}=t(65513),s=t(42671),a=t(1062),c=t(67088);function h(d,k){let M=new d.constructor;for(let C in d){if(!Object.prototype.hasOwnProperty.call(d,C)||C==="proxyCache")continue;let w=d[C],I=typeof w;C==="parent"&&I==="object"?k&&(M[C]=k):C==="source"?M[C]=w:Array.isArray(w)?M[C]=w.map(F=>h(F,M)):(I==="object"&&w!==null&&(w=h(w)),M[C]=w)}return M}class p{constructor(k={}){this.raws={},this[r]=!1,this[n]=!0;for(let M in k)if(M==="nodes"){this.nodes=[];for(let C of k[M])typeof C.clone=="function"?this.append(C.clone()):this.append(C)}else this[M]=k[M]}addToError(k){if(k.postcssNode=this,k.stack&&this.source&&/\n\s{4}at /.test(k.stack)){let M=this.source;k.stack=k.stack.replace(/\n\s{4}at /,`$&${M.input.from}:${M.start.line}:${M.start.column}$&`)}return k}after(k){return this.parent.insertAfter(this,k),this}assign(k={}){for(let M in k)this[M]=k[M];return this}before(k){return this.parent.insertBefore(this,k),this}cleanRaws(k){delete this.raws.before,delete this.raws.after,k||delete this.raws.between}clone(k={}){let M=h(this);for(let C in k)M[C]=k[C];return M}cloneAfter(k={}){let M=this.clone(k);return this.parent.insertAfter(this,M),M}cloneBefore(k={}){let M=this.clone(k);return this.parent.insertBefore(this,M),M}error(k,M={}){if(this.source){let{end:C,start:w}=this.rangeBy(M);return this.source.input.error(k,{column:w.column,line:w.line},{column:C.column,line:C.line},M)}return new s(k)}getProxyProcessor(){return{get(k,M){return M==="proxyOf"?k:M==="root"?()=>k.root().toProxy():k[M]},set(k,M,C){return k[M]===C||(k[M]=C,(M==="prop"||M==="value"||M==="name"||M==="params"||M==="important"||M==="text")&&k.markDirty()),!0}}}markDirty(){if(this[r]){this[r]=!1;let k=this;for(;k=k.parent;)k[r]=!1}}next(){if(!this.parent)return;let k=this.parent.index(this);return this.parent.nodes[k+1]}positionBy(k,M){let C=this.source.start;if(k.index)C=this.positionInside(k.index,M);else if(k.word){M=this.toString();let w=M.indexOf(k.word);w!==-1&&(C=this.positionInside(w,M))}return C}positionInside(k,M){let C=M||this.toString(),w=this.source.start.column,I=this.source.start.line;for(let F=0;F<k;F++)C[F]===`
`?(w=1,I+=1):w+=1;return{column:w,line:I}}prev(){if(!this.parent)return;let k=this.parent.index(this);return this.parent.nodes[k-1]}rangeBy(k){let M={column:this.source.start.column,line:this.source.start.line},C=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:M.column+1,line:M.line};if(k.word){let w=this.toString(),I=w.indexOf(k.word);I!==-1&&(M=this.positionInside(I,w),C=this.positionInside(I+k.word.length,w))}else k.start?M={column:k.start.column,line:k.start.line}:k.index&&(M=this.positionInside(k.index)),k.end?C={column:k.end.column,line:k.end.line}:k.endIndex?C=this.positionInside(k.endIndex):k.index&&(C=this.positionInside(k.index+1));return(C.line<M.line||C.line===M.line&&C.column<=M.column)&&(C={column:M.column+1,line:M.line}),{end:C,start:M}}raw(k,M){return new a().raw(this,k,M)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...k){if(this.parent){let M=this,C=!1;for(let w of k)w===this?C=!0:C?(this.parent.insertAfter(M,w),M=w):this.parent.insertBefore(M,w);C||this.remove()}return this}root(){let k=this;for(;k.parent&&k.parent.type!=="document";)k=k.parent;return k}toJSON(k,M){let C={},w=M==null;M=M||new Map;let I=0;for(let F in this){if(!Object.prototype.hasOwnProperty.call(this,F)||F==="parent"||F==="proxyCache")continue;let U=this[F];if(Array.isArray(U))C[F]=U.map(B=>typeof B=="object"&&B.toJSON?B.toJSON(null,M):B);else if(typeof U=="object"&&U.toJSON)C[F]=U.toJSON(null,M);else if(F==="source"){let B=M.get(U.input);B==null&&(B=I,M.set(U.input,I),I++),C[F]={end:U.end,inputId:B,start:U.start}}else C[F]=U}return w&&(C.inputs=[...M.keys()].map(F=>F.toJSON())),C}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(k=c){k.stringify&&(k=k.stringify);let M="";return k(this,C=>{M+=C}),M}warn(k,M,C){let w={node:this};for(let I in C)w[I]=C[I];return k.warn(M,w)}get proxyOf(){return this}}Z.exports=p,p.default=p},66939:(Z,v,t)=>{"use strict";let r=t(21019),n=t(68867),s=t(5995);function a(c,h){let p=new s(c,h),d=new n(p);try{d.parse()}catch(k){throw k}return d.root}Z.exports=a,a.default=a,r.registerParse(a)},68867:(Z,v,t)=>{"use strict";let r=t(94258),n=t(83852),s=t(69932),a=t(41353),c=t(41025),h=t(31675);const p={empty:!0,space:!0};function d(M){for(let C=M.length-1;C>=0;C--){let w=M[C],I=w[3]||w[2];if(I)return I}}class k{constructor(C){this.input=C,this.root=new c,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:C,start:{column:1,line:1,offset:0}}}atrule(C){let w=new a;w.name=C[1].slice(1),w.name===""&&this.unnamedAtrule(w,C),this.init(w,C[2]);let I,F,U,B=!1,N=!1,D=[],x=[];for(;!this.tokenizer.endOfFile();){if(C=this.tokenizer.nextToken(),I=C[0],I==="("||I==="["?x.push(I==="("?")":"]"):I==="{"&&x.length>0?x.push("}"):I===x[x.length-1]&&x.pop(),x.length===0)if(I===";"){w.source.end=this.getPosition(C[2]),w.source.end.offset++,this.semicolon=!0;break}else if(I==="{"){N=!0;break}else if(I==="}"){if(D.length>0){for(U=D.length-1,F=D[U];F&&F[0]==="space";)F=D[--U];F&&(w.source.end=this.getPosition(F[3]||F[2]),w.source.end.offset++)}this.end(C);break}else D.push(C);else D.push(C);if(this.tokenizer.endOfFile()){B=!0;break}}w.raws.between=this.spacesAndCommentsFromEnd(D),D.length?(w.raws.afterName=this.spacesAndCommentsFromStart(D),this.raw(w,"params",D),B&&(C=D[D.length-1],w.source.end=this.getPosition(C[3]||C[2]),w.source.end.offset++,this.spaces=w.raws.between,w.raws.between="")):(w.raws.afterName="",w.params=""),N&&(w.nodes=[],this.current=w)}checkMissedSemicolon(C){let w=this.colon(C);if(w===!1)return;let I=0,F;for(let U=w-1;U>=0&&(F=C[U],!(F[0]!=="space"&&(I+=1,I===2)));U--);throw this.input.error("Missed semicolon",F[0]==="word"?F[3]+1:F[2])}colon(C){let w=0,I,F,U;for(let[B,N]of C.entries()){if(I=N,F=I[0],F==="("&&(w+=1),F===")"&&(w-=1),w===0&&F===":")if(!U)this.doubleColon(I);else{if(U[0]==="word"&&U[1]==="progid")continue;return B}U=I}return!1}comment(C){let w=new s;this.init(w,C[2]),w.source.end=this.getPosition(C[3]||C[2]),w.source.end.offset++;let I=C[1].slice(2,-2);if(/^\s*$/.test(I))w.text="",w.raws.left=I,w.raws.right="";else{let F=I.match(/^(\s*)([^]*\S)(\s*)$/);w.text=F[2],w.raws.left=F[1],w.raws.right=F[3]}}createTokenizer(){this.tokenizer=n(this.input)}decl(C,w){let I=new r;this.init(I,C[0][2]);let F=C[C.length-1];for(F[0]===";"&&(this.semicolon=!0,C.pop()),I.source.end=this.getPosition(F[3]||F[2]||d(C)),I.source.end.offset++;C[0][0]!=="word";)C.length===1&&this.unknownWord(C),I.raws.before+=C.shift()[1];for(I.source.start=this.getPosition(C[0][2]),I.prop="";C.length;){let x=C[0][0];if(x===":"||x==="space"||x==="comment")break;I.prop+=C.shift()[1]}I.raws.between="";let U;for(;C.length;)if(U=C.shift(),U[0]===":"){I.raws.between+=U[1];break}else U[0]==="word"&&/\w/.test(U[1])&&this.unknownWord([U]),I.raws.between+=U[1];(I.prop[0]==="_"||I.prop[0]==="*")&&(I.raws.before+=I.prop[0],I.prop=I.prop.slice(1));let B=[],N;for(;C.length&&(N=C[0][0],!(N!=="space"&&N!=="comment"));)B.push(C.shift());this.precheckMissedSemicolon(C);for(let x=C.length-1;x>=0;x--){if(U=C[x],U[1].toLowerCase()==="!important"){I.important=!0;let T=this.stringFrom(C,x);T=this.spacesFromEnd(C)+T,T!==" !important"&&(I.raws.important=T);break}else if(U[1].toLowerCase()==="important"){let T=C.slice(0),u="";for(let b=x;b>0;b--){let E=T[b][0];if(u.trim().indexOf("!")===0&&E!=="space")break;u=T.pop()[1]+u}u.trim().indexOf("!")===0&&(I.important=!0,I.raws.important=u,C=T)}if(U[0]!=="space"&&U[0]!=="comment")break}C.some(x=>x[0]!=="space"&&x[0]!=="comment")&&(I.raws.between+=B.map(x=>x[1]).join(""),B=[]),this.raw(I,"value",B.concat(C),w),I.value.includes(":")&&!w&&this.checkMissedSemicolon(C)}doubleColon(C){throw this.input.error("Double colon",{offset:C[2]},{offset:C[2]+C[1].length})}emptyRule(C){let w=new h;this.init(w,C[2]),w.selector="",w.raws.between="",this.current=w}end(C){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(C[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(C)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(C){if(this.spaces+=C[1],this.current.nodes){let w=this.current.nodes[this.current.nodes.length-1];w&&w.type==="rule"&&!w.raws.ownSemicolon&&(w.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(C){let w=this.input.fromOffset(C);return{column:w.col,line:w.line,offset:C}}init(C,w){this.current.push(C),C.source={input:this.input,start:this.getPosition(w)},C.raws.before=this.spaces,this.spaces="",C.type!=="comment"&&(this.semicolon=!1)}other(C){let w=!1,I=null,F=!1,U=null,B=[],N=C[1].startsWith("--"),D=[],x=C;for(;x;){if(I=x[0],D.push(x),I==="("||I==="[")U||(U=x),B.push(I==="("?")":"]");else if(N&&F&&I==="{")U||(U=x),B.push("}");else if(B.length===0)if(I===";")if(F){this.decl(D,N);return}else break;else if(I==="{"){this.rule(D);return}else if(I==="}"){this.tokenizer.back(D.pop()),w=!0;break}else I===":"&&(F=!0);else I===B[B.length-1]&&(B.pop(),B.length===0&&(U=null));x=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(w=!0),B.length>0&&this.unclosedBracket(U),w&&F){if(!N)for(;D.length&&(x=D[D.length-1][0],!(x!=="space"&&x!=="comment"));)this.tokenizer.back(D.pop());this.decl(D,N)}else this.unknownWord(D)}parse(){let C;for(;!this.tokenizer.endOfFile();)switch(C=this.tokenizer.nextToken(),C[0]){case"space":this.spaces+=C[1];break;case";":this.freeSemicolon(C);break;case"}":this.end(C);break;case"comment":this.comment(C);break;case"at-word":this.atrule(C);break;case"{":this.emptyRule(C);break;default:this.other(C);break}this.endFile()}precheckMissedSemicolon(){}raw(C,w,I,F){let U,B,N=I.length,D="",x=!0,T,u;for(let b=0;b<N;b+=1)U=I[b],B=U[0],B==="space"&&b===N-1&&!F?x=!1:B==="comment"?(u=I[b-1]?I[b-1][0]:"empty",T=I[b+1]?I[b+1][0]:"empty",!p[u]&&!p[T]?D.slice(-1)===","?x=!1:D+=U[1]:x=!1):D+=U[1];if(!x){let b=I.reduce((E,A)=>E+A[1],"");C.raws[w]={raw:b,value:D}}C[w]=D}rule(C){C.pop();let w=new h;this.init(w,C[0][2]),w.raws.between=this.spacesAndCommentsFromEnd(C),this.raw(w,"selector",C),this.current=w}spacesAndCommentsFromEnd(C){let w,I="";for(;C.length&&(w=C[C.length-1][0],!(w!=="space"&&w!=="comment"));)I=C.pop()[1]+I;return I}spacesAndCommentsFromStart(C){let w,I="";for(;C.length&&(w=C[0][0],!(w!=="space"&&w!=="comment"));)I+=C.shift()[1];return I}spacesFromEnd(C){let w,I="";for(;C.length&&(w=C[C.length-1][0],w==="space");)I=C.pop()[1]+I;return I}stringFrom(C,w){let I="";for(let F=w;F<C.length;F++)I+=C[F][1];return C.splice(w,C.length-w),I}unclosedBlock(){let C=this.current.source.start;throw this.input.error("Unclosed block",C.line,C.column)}unclosedBracket(C){throw this.input.error("Unclosed bracket",{offset:C[2]},{offset:C[2]+1})}unexpectedClose(C){throw this.input.error("Unexpected }",{offset:C[2]},{offset:C[2]+1})}unknownWord(C){throw this.input.error("Unknown word",{offset:C[0][2]},{offset:C[0][2]+C[0][1].length})}unnamedAtrule(C,w){throw this.input.error("At-rule without name",{offset:w[2]},{offset:w[2]+w[1].length})}}Z.exports=k},50020:(Z,v,t)=>{"use strict";let r=t(42671),n=t(94258),s=t(21939),a=t(21019),c=t(71723),h=t(67088),p=t(50250),d=t(26461),k=t(11728),M=t(69932),C=t(41353),w=t(83632),I=t(5995),F=t(66939),U=t(54715),B=t(31675),N=t(41025),D=t(65631);function x(...T){return T.length===1&&Array.isArray(T[0])&&(T=T[0]),new c(T)}x.plugin=function(u,b){let E=!1;function A(...H){console&&console.warn&&!E&&(E=!0,console.warn(u+`: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),{ADMIN_PATH:"/admin/",NODE_ENV:"production",STRAPI_ADMIN_BACKEND_URL:"",STRAPI_TELEMETRY_DISABLED:void 0}.LANG&&{ADMIN_PATH:"/admin/",NODE_ENV:"production",STRAPI_ADMIN_BACKEND_URL:"",STRAPI_TELEMETRY_DISABLED:void 0}.LANG.startsWith("cn")&&console.warn(u+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
https://www.w3ctech.com/topic/2226`));let z=b(...H);return z.postcssPlugin=u,z.postcssVersion=new c().version,z}let R;return Object.defineProperty(A,"postcss",{get(){return R||(R=A()),R}}),A.process=function(H,z,V){return x([A(V)]).process(H,z)},A},x.stringify=h,x.parse=F,x.fromJSON=p,x.list=U,x.comment=T=>new M(T),x.atRule=T=>new C(T),x.decl=T=>new n(T),x.rule=T=>new B(T),x.root=T=>new N(T),x.document=T=>new d(T),x.CssSyntaxError=r,x.Declaration=n,x.Container=a,x.Processor=c,x.Document=d,x.Comment=M,x.Warning=k,x.AtRule=C,x.Result=w,x.Input=I,x.Rule=B,x.Root=N,x.Node=D,s.registerPostcss(x),Z.exports=x,x.default=x},47981:(Z,v,t)=>{"use strict";let{SourceMapConsumer:r,SourceMapGenerator:n}=t(70209),{existsSync:s,readFileSync:a}=t(14777),{dirname:c,join:h}=t(99830);function p(k){return Buffer?Buffer.from(k,"base64").toString():window.atob(k)}class d{constructor(M,C){if(C.map===!1)return;this.loadAnnotation(M),this.inline=this.startWith(this.annotation,"data:");let w=C.map?C.map.prev:void 0,I=this.loadMap(C.from,w);!this.mapFile&&C.from&&(this.mapFile=C.from),this.mapFile&&(this.root=c(this.mapFile)),I&&(this.text=I)}consumer(){return this.consumerCache||(this.consumerCache=new r(this.text)),this.consumerCache}decodeInline(M){let C=/^data:application\/json;charset=utf-?8;base64,/,w=/^data:application\/json;base64,/,I=/^data:application\/json;charset=utf-?8,/,F=/^data:application\/json,/;if(I.test(M)||F.test(M))return decodeURIComponent(M.substr(RegExp.lastMatch.length));if(C.test(M)||w.test(M))return p(M.substr(RegExp.lastMatch.length));let U=M.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+U)}getAnnotationURL(M){return M.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(M){return typeof M!="object"?!1:typeof M.mappings=="string"||typeof M._mappings=="string"||Array.isArray(M.sections)}loadAnnotation(M){let C=M.match(/\/\*\s*# sourceMappingURL=/gm);if(!C)return;let w=M.lastIndexOf(C.pop()),I=M.indexOf("*/",w);w>-1&&I>-1&&(this.annotation=this.getAnnotationURL(M.substring(w,I)))}loadFile(M){if(this.root=c(M),s(M))return this.mapFile=M,a(M,"utf-8").toString().trim()}loadMap(M,C){if(C===!1)return!1;if(C){if(typeof C=="string")return C;if(typeof C=="function"){let w=C(M);if(w){let I=this.loadFile(w);if(!I)throw new Error("Unable to load previous source map: "+w.toString());return I}}else{if(C instanceof r)return n.fromSourceMap(C).toString();if(C instanceof n)return C.toString();if(this.isMap(C))return JSON.stringify(C);throw new Error("Unsupported previous source map format: "+C.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let w=this.annotation;return M&&(w=h(c(M),w)),this.loadFile(w)}}}startWith(M,C){return M?M.substr(0,C.length)===C:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}Z.exports=d,d.default=d},71723:(Z,v,t)=>{"use strict";let r=t(47647),n=t(21939),s=t(26461),a=t(41025);class c{constructor(p=[]){this.version="8.4.31",this.plugins=this.normalize(p)}normalize(p){let d=[];for(let k of p)if(k.postcss===!0?k=k():k.postcss&&(k=k.postcss),typeof k=="object"&&Array.isArray(k.plugins))d=d.concat(k.plugins);else if(typeof k=="object"&&k.postcssPlugin)d.push(k);else if(typeof k=="function")d.push(k);else if(!(typeof k=="object"&&(k.parse||k.stringify)))throw new Error(k+" is not a PostCSS plugin");return d}process(p,d={}){return this.plugins.length===0&&typeof d.parser>"u"&&typeof d.stringifier>"u"&&typeof d.syntax>"u"?new r(this,p,d):new n(this,p,d)}use(p){return this.plugins=this.plugins.concat(this.normalize([p])),this}}Z.exports=c,c.default=c,a.registerProcessor(c),s.registerProcessor(c)},83632:(Z,v,t)=>{"use strict";let r=t(11728);class n{constructor(a,c,h){this.processor=a,this.messages=[],this.root=c,this.opts=h,this.css=void 0,this.map=void 0}toString(){return this.css}warn(a,c={}){c.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(c.plugin=this.lastPlugin.postcssPlugin);let h=new r(a,c);return this.messages.push(h),h}warnings(){return this.messages.filter(a=>a.type==="warning")}get content(){return this.css}}Z.exports=n,n.default=n},41025:(Z,v,t)=>{"use strict";let r=t(21019),n,s;class a extends r{constructor(h){super(h),this.type="root",this.nodes||(this.nodes=[])}normalize(h,p,d){let k=super.normalize(h);if(p){if(d==="prepend")this.nodes.length>1?p.raws.before=this.nodes[1].raws.before:delete p.raws.before;else if(this.first!==p)for(let M of k)M.raws.before=p.raws.before}return k}removeChild(h,p){let d=this.index(h);return!p&&d===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[d].raws.before),super.removeChild(h)}toResult(h={}){return new n(new s,this,h).stringify()}}a.registerLazyResult=c=>{n=c},a.registerProcessor=c=>{s=c},Z.exports=a,a.default=a,r.registerRoot(a)},31675:(Z,v,t)=>{"use strict";let r=t(21019),n=t(54715);class s extends r{constructor(c){super(c),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return n.comma(this.selector)}set selectors(c){let h=this.selector?this.selector.match(/,\s*/):null,p=h?h[0]:","+this.raw("between","beforeOpen");this.selector=c.join(p)}}Z.exports=s,s.default=s,r.registerRule(s)},1062:Z=>{"use strict";const v={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1};function t(n){return n[0].toUpperCase()+n.slice(1)}class r{constructor(s){this.builder=s}atrule(s,a){let c="@"+s.name,h=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName<"u"?c+=s.raws.afterName:h&&(c+=" "),s.nodes)this.block(s,c+h);else{let p=(s.raws.between||"")+(a?";":"");this.builder(c+h+p,s)}}beforeAfter(s,a){let c;s.type==="decl"?c=this.raw(s,null,"beforeDecl"):s.type==="comment"?c=this.raw(s,null,"beforeComment"):a==="before"?c=this.raw(s,null,"beforeRule"):c=this.raw(s,null,"beforeClose");let h=s.parent,p=0;for(;h&&h.type!=="root";)p+=1,h=h.parent;if(c.includes(`
`)){let d=this.raw(s,null,"indent");if(d.length)for(let k=0;k<p;k++)c+=d}return c}block(s,a){let c=this.raw(s,"between","beforeOpen");this.builder(a+c+"{",s,"start");let h;s.nodes&&s.nodes.length?(this.body(s),h=this.raw(s,"after")):h=this.raw(s,"after","emptyBody"),h&&this.builder(h),this.builder("}",s,"end")}body(s){let a=s.nodes.length-1;for(;a>0&&s.nodes[a].type==="comment";)a-=1;let c=this.raw(s,"semicolon");for(let h=0;h<s.nodes.length;h++){let p=s.nodes[h],d=this.raw(p,"before");d&&this.builder(d),this.stringify(p,a!==h||c)}}comment(s){let a=this.raw(s,"left","commentLeft"),c=this.raw(s,"right","commentRight");this.builder("/*"+a+s.text+c+"*/",s)}decl(s,a){let c=this.raw(s,"between","colon"),h=s.prop+c+this.rawValue(s,"value");s.important&&(h+=s.raws.important||" !important"),a&&(h+=";"),this.builder(h,s)}document(s){this.body(s)}raw(s,a,c){let h;if(c||(c=a),a&&(h=s.raws[a],typeof h<"u"))return h;let p=s.parent;if(c==="before"&&(!p||p.type==="root"&&p.first===s||p&&p.type==="document"))return"";if(!p)return v[c];let d=s.root();if(d.rawCache||(d.rawCache={}),typeof d.rawCache[c]<"u")return d.rawCache[c];if(c==="before"||c==="after")return this.beforeAfter(s,c);{let k="raw"+t(c);this[k]?h=this[k](d,s):d.walk(M=>{if(h=M.raws[a],typeof h<"u")return!1})}return typeof h>"u"&&(h=v[c]),d.rawCache[c]=h,h}rawBeforeClose(s){let a;return s.walk(c=>{if(c.nodes&&c.nodes.length>0&&typeof c.raws.after<"u")return a=c.raws.after,a.includes(`
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawBeforeComment(s,a){let c;return s.walkComments(h=>{if(typeof h.raws.before<"u")return c=h.raws.before,c.includes(`
`)&&(c=c.replace(/[^\n]+$/,"")),!1}),typeof c>"u"?c=this.raw(a,null,"beforeDecl"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeDecl(s,a){let c;return s.walkDecls(h=>{if(typeof h.raws.before<"u")return c=h.raws.before,c.includes(`
`)&&(c=c.replace(/[^\n]+$/,"")),!1}),typeof c>"u"?c=this.raw(a,null,"beforeRule"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeOpen(s){let a;return s.walk(c=>{if(c.type!=="decl"&&(a=c.raws.between,typeof a<"u"))return!1}),a}rawBeforeRule(s){let a;return s.walk(c=>{if(c.nodes&&(c.parent!==s||s.first!==c)&&typeof c.raws.before<"u")return a=c.raws.before,a.includes(`
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawColon(s){let a;return s.walkDecls(c=>{if(typeof c.raws.between<"u")return a=c.raws.between.replace(/[^\s:]/g,""),!1}),a}rawEmptyBody(s){let a;return s.walk(c=>{if(c.nodes&&c.nodes.length===0&&(a=c.raws.after,typeof a<"u"))return!1}),a}rawIndent(s){if(s.raws.indent)return s.raws.indent;let a;return s.walk(c=>{let h=c.parent;if(h&&h!==s&&h.parent&&h.parent===s&&typeof c.raws.before<"u"){let p=c.raws.before.split(`
`);return a=p[p.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(s){let a;return s.walk(c=>{if(c.nodes&&c.nodes.length&&c.last.type==="decl"&&(a=c.raws.semicolon,typeof a<"u"))return!1}),a}rawValue(s,a){let c=s[a],h=s.raws[a];return h&&h.value===c?h.raw:c}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,a){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,a)}}Z.exports=r,r.default=r},67088:(Z,v,t)=>{"use strict";let r=t(1062);function n(s,a){new r(a).stringify(s)}Z.exports=n,n.default=n},65513:Z=>{"use strict";Z.exports.isClean=Symbol("isClean"),Z.exports.my=Symbol("my")},83852:Z=>{"use strict";const v="'".charCodeAt(0),t='"'.charCodeAt(0),r="\\".charCodeAt(0),n="/".charCodeAt(0),s=`
`.charCodeAt(0),a=" ".charCodeAt(0),c="\f".charCodeAt(0),h="	".charCodeAt(0),p="\r".charCodeAt(0),d="[".charCodeAt(0),k="]".charCodeAt(0),M="(".charCodeAt(0),C=")".charCodeAt(0),w="{".charCodeAt(0),I="}".charCodeAt(0),F=";".charCodeAt(0),U="*".charCodeAt(0),B=":".charCodeAt(0),N="@".charCodeAt(0),D=/[\t\n\f\r "#'()/;[\\\]{}]/g,x=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,T=/.[\r\n"'(/\\]/,u=/[\da-f]/i;Z.exports=function(E,A={}){let R=E.css.valueOf(),H=A.ignoreErrors,z,V,$,ee,q,oe,X,pe,Ie,se,be=R.length,fe=0,ue=[],we=[];function Me(){return fe}function Ce(Ct){throw E.error("Unclosed "+Ct,fe)}function Ne(){return we.length===0&&fe>=be}function Ye(Ct){if(we.length)return we.pop();if(fe>=be)return;let ln=Ct?Ct.ignoreUnclosed:!1;switch(z=R.charCodeAt(fe),z){case s:case a:case h:case p:case c:{V=fe;do V+=1,z=R.charCodeAt(V);while(z===a||z===s||z===h||z===p||z===c);se=["space",R.slice(fe,V)],fe=V-1;break}case d:case k:case w:case I:case B:case F:case C:{let $e=String.fromCharCode(z);se=[$e,$e,fe];break}case M:{if(pe=ue.length?ue.pop()[1]:"",Ie=R.charCodeAt(fe+1),pe==="url"&&Ie!==v&&Ie!==t&&Ie!==a&&Ie!==s&&Ie!==h&&Ie!==c&&Ie!==p){V=fe;do{if(oe=!1,V=R.indexOf(")",V+1),V===-1)if(H||ln){V=fe;break}else Ce("bracket");for(X=V;R.charCodeAt(X-1)===r;)X-=1,oe=!oe}while(oe);se=["brackets",R.slice(fe,V+1),fe,V],fe=V}else V=R.indexOf(")",fe+1),ee=R.slice(fe,V+1),V===-1||T.test(ee)?se=["(","(",fe]:(se=["brackets",ee,fe,V],fe=V);break}case v:case t:{$=z===v?"'":'"',V=fe;do{if(oe=!1,V=R.indexOf($,V+1),V===-1)if(H||ln){V=fe+1;break}else Ce("string");for(X=V;R.charCodeAt(X-1)===r;)X-=1,oe=!oe}while(oe);se=["string",R.slice(fe,V+1),fe,V],fe=V;break}case N:{D.lastIndex=fe+1,D.test(R),D.lastIndex===0?V=R.length-1:V=D.lastIndex-2,se=["at-word",R.slice(fe,V+1),fe,V],fe=V;break}case r:{for(V=fe,q=!0;R.charCodeAt(V+1)===r;)V+=1,q=!q;if(z=R.charCodeAt(V+1),q&&z!==n&&z!==a&&z!==s&&z!==h&&z!==p&&z!==c&&(V+=1,u.test(R.charAt(V)))){for(;u.test(R.charAt(V+1));)V+=1;R.charCodeAt(V+1)===a&&(V+=1)}se=["word",R.slice(fe,V+1),fe,V],fe=V;break}default:{z===n&&R.charCodeAt(fe+1)===U?(V=R.indexOf("*/",fe+2)+1,V===0&&(H||ln?V=R.length:Ce("comment")),se=["comment",R.slice(fe,V+1),fe,V],fe=V):(x.lastIndex=fe+1,x.test(R),x.lastIndex===0?V=R.length-1:V=x.lastIndex-2,se=["word",R.slice(fe,V+1),fe,V],ue.push(se),fe=V);break}}return fe++,se}function mt(Ct){we.push(Ct)}return{back:mt,endOfFile:Ne,nextToken:Ye,position:Me}}},72448:Z=>{"use strict";let v={};Z.exports=function(r){v[r]||(v[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))}},11728:Z=>{"use strict";class v{constructor(r,n={}){if(this.type="warning",this.text=r,n.node&&n.node.source){let s=n.node.rangeBy(n);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in n)this[s]=n[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}Z.exports=v,v.default=v},92703:(Z,v,t)=>{"use strict";var r=t(50414);function n(){}function s(){}s.resetWarningCache=n,Z.exports=function(){function a(p,d,k,M,C,w){if(w!==r){var I=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw I.name="Invariant Violation",I}}a.isRequired=a;function c(){return a}var h={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:c,element:a,elementType:a,instanceOf:c,node:a,objectOf:c,oneOf:c,oneOfType:c,shape:c,exact:c,checkPropTypes:s,resetWarningCache:n};return h.PropTypes=h,h}},45697:(Z,v,t)=>{if(!1)var r,n;else Z.exports=t(92703)()},50414:Z=>{"use strict";var v="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Z.exports=v},55760:Z=>{"use strict";function v(N){this._maxSize=N,this.clear()}v.prototype.clear=function(){this._size=0,this._values=Object.create(null)},v.prototype.get=function(N){return this._values[N]},v.prototype.set=function(N,D){return this._size>=this._maxSize&&this.clear(),N in this._values||this._size++,this._values[N]=D};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,n=/^\d/,s=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,c=512,h=new v(c),p=new v(c),d=new v(c),k;Z.exports={Cache:v,split:C,normalizePath:M,setter:function(N){var D=M(N);return p.get(N)||p.set(N,function(T,u){for(var b=0,E=D.length,A=T;b<E-1;){var R=D[b];if(R==="__proto__"||R==="constructor"||R==="prototype")return T;A=A[D[b++]]}A[D[b]]=u})},getter:function(N,D){var x=M(N);return d.get(N)||d.set(N,function(u){for(var b=0,E=x.length;b<E;)if(u!=null||!D)u=u[x[b++]];else return;return u})},join:function(N){return N.reduce(function(D,x){return D+(I(x)||r.test(x)?"["+x+"]":(D?".":"")+x)},"")},forEach:function(N,D,x){w(Array.isArray(N)?N:C(N),D,x)}};function M(N){return h.get(N)||h.set(N,C(N).map(function(D){return D.replace(a,"$2")}))}function C(N){return N.match(t)||[""]}function w(N,D,x){var T=N.length,u,b,E,A;for(b=0;b<T;b++)u=N[b],u&&(B(u)&&(u='"'+u+'"'),A=I(u),E=!A&&/^\d+$/.test(u),D.call(x,u,A,E,b,N))}function I(N){return typeof N=="string"&&N&&["'",'"'].indexOf(N.charAt(0))!==-1}function F(N){return N.match(n)&&!N.match(r)}function U(N){return s.test(N)}function B(N){return!I(N)&&(F(N)||U(N))}},55798:Z=>{"use strict";var v=String.prototype.replace,t=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};Z.exports={default:r.RFC3986,formatters:{RFC1738:function(n){return v.call(n,t,"+")},RFC3986:function(n){return String(n)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986}},80129:(Z,v,t)=>{"use strict";var r=t(58261),n=t(55235),s=t(55798);Z.exports={formats:s,parse:n,stringify:r}},55235:(Z,v,t)=>{"use strict";var r=t(12769),n=Object.prototype.hasOwnProperty,s=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(I){return I.replace(/&#(\d+);/g,function(F,U){return String.fromCharCode(parseInt(U,10))})},h=function(I,F){return I&&typeof I=="string"&&F.comma&&I.indexOf(",")>-1?I.split(","):I},p="utf8=%26%2310003%3B",d="utf8=%E2%9C%93",k=function(F,U){var B={},N=U.ignoreQueryPrefix?F.replace(/^\?/,""):F,D=U.parameterLimit===1/0?void 0:U.parameterLimit,x=N.split(U.delimiter,D),T=-1,u,b=U.charset;if(U.charsetSentinel)for(u=0;u<x.length;++u)x[u].indexOf("utf8=")===0&&(x[u]===d?b="utf-8":x[u]===p&&(b="iso-8859-1"),T=u,u=x.length);for(u=0;u<x.length;++u)if(u!==T){var E=x[u],A=E.indexOf("]="),R=A===-1?E.indexOf("="):A+1,H,z;R===-1?(H=U.decoder(E,a.decoder,b,"key"),z=U.strictNullHandling?null:""):(H=U.decoder(E.slice(0,R),a.decoder,b,"key"),z=r.maybeMap(h(E.slice(R+1),U),function(V){return U.decoder(V,a.decoder,b,"value")})),z&&U.interpretNumericEntities&&b==="iso-8859-1"&&(z=c(z)),E.indexOf("[]=")>-1&&(z=s(z)?[z]:z),n.call(B,H)?B[H]=r.combine(B[H],z):B[H]=z}return B},M=function(I,F,U,B){for(var N=B?F:h(F,U),D=I.length-1;D>=0;--D){var x,T=I[D];if(T==="[]"&&U.parseArrays)x=[].concat(N);else{x=U.plainObjects?Object.create(null):{};var u=T.charAt(0)==="["&&T.charAt(T.length-1)==="]"?T.slice(1,-1):T,b=parseInt(u,10);!U.parseArrays&&u===""?x={0:N}:!isNaN(b)&&T!==u&&String(b)===u&&b>=0&&U.parseArrays&&b<=U.arrayLimit?(x=[],x[b]=N):u!=="__proto__"&&(x[u]=N)}N=x}return N},C=function(F,U,B,N){if(F){var D=B.allowDots?F.replace(/\.([^.[]+)/g,"[$1]"):F,x=/(\[[^[\]]*])/,T=/(\[[^[\]]*])/g,u=B.depth>0&&x.exec(D),b=u?D.slice(0,u.index):D,E=[];if(b){if(!B.plainObjects&&n.call(Object.prototype,b)&&!B.allowPrototypes)return;E.push(b)}for(var A=0;B.depth>0&&(u=T.exec(D))!==null&&A<B.depth;){if(A+=1,!B.plainObjects&&n.call(Object.prototype,u[1].slice(1,-1))&&!B.allowPrototypes)return;E.push(u[1])}return u&&E.push("["+D.slice(u.index)+"]"),M(E,U,B,N)}},w=function(F){if(!F)return a;if(F.decoder!==null&&F.decoder!==void 0&&typeof F.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof F.charset<"u"&&F.charset!=="utf-8"&&F.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var U=typeof F.charset>"u"?a.charset:F.charset;return{allowDots:typeof F.allowDots>"u"?a.allowDots:!!F.allowDots,allowPrototypes:typeof F.allowPrototypes=="boolean"?F.allowPrototypes:a.allowPrototypes,allowSparse:typeof F.allowSparse=="boolean"?F.allowSparse:a.allowSparse,arrayLimit:typeof F.arrayLimit=="number"?F.arrayLimit:a.arrayLimit,charset:U,charsetSentinel:typeof F.charsetSentinel=="boolean"?F.charsetSentinel:a.charsetSentinel,comma:typeof F.comma=="boolean"?F.comma:a.comma,decoder:typeof F.decoder=="function"?F.decoder:a.decoder,delimiter:typeof F.delimiter=="string"||r.isRegExp(F.delimiter)?F.delimiter:a.delimiter,depth:typeof F.depth=="number"||F.depth===!1?+F.depth:a.depth,ignoreQueryPrefix:F.ignoreQueryPrefix===!0,interpretNumericEntities:typeof F.interpretNumericEntities=="boolean"?F.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof F.parameterLimit=="number"?F.parameterLimit:a.parameterLimit,parseArrays:F.parseArrays!==!1,plainObjects:typeof F.plainObjects=="boolean"?F.plainObjects:a.plainObjects,strictNullHandling:typeof F.strictNullHandling=="boolean"?F.strictNullHandling:a.strictNullHandling}};Z.exports=function(I,F){var U=w(F);if(I===""||I===null||typeof I>"u")return U.plainObjects?Object.create(null):{};for(var B=typeof I=="string"?k(I,U):I,N=U.plainObjects?Object.create(null):{},D=Object.keys(B),x=0;x<D.length;++x){var T=D[x],u=C(T,B[T],U,typeof I=="string");N=r.merge(N,u,U)}return U.allowSparse===!0?N:r.compact(N)}},58261:(Z,v,t)=>{"use strict";var r=t(37478),n=t(12769),s=t(55798),a=Object.prototype.hasOwnProperty,c={brackets:function(N){return N+"[]"},comma:"comma",indices:function(N,D){return N+"["+D+"]"},repeat:function(N){return N}},h=Array.isArray,p=Array.prototype.push,d=function(B,N){p.apply(B,h(N)?N:[N])},k=Date.prototype.toISOString,M=s.default,C={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:M,formatter:s.formatters[M],indices:!1,serializeDate:function(N){return k.call(N)},skipNulls:!1,strictNullHandling:!1},w=function(N){return typeof N=="string"||typeof N=="number"||typeof N=="boolean"||typeof N=="symbol"||typeof N=="bigint"},I={},F=function B(N,D,x,T,u,b,E,A,R,H,z,V,$,ee,q,oe){for(var X=N,pe=oe,Ie=0,se=!1;(pe=pe.get(I))!==void 0&&!se;){var be=pe.get(N);if(Ie+=1,typeof be<"u"){if(be===Ie)throw new RangeError("Cyclic object value");se=!0}typeof pe.get(I)>"u"&&(Ie=0)}if(typeof A=="function"?X=A(D,X):X instanceof Date?X=z(X):x==="comma"&&h(X)&&(X=n.maybeMap(X,function($e){return $e instanceof Date?z($e):$e})),X===null){if(u)return E&&!ee?E(D,C.encoder,q,"key",V):D;X=""}if(w(X)||n.isBuffer(X)){if(E){var fe=ee?D:E(D,C.encoder,q,"key",V);return[$(fe)+"="+$(E(X,C.encoder,q,"value",V))]}return[$(D)+"="+$(String(X))]}var ue=[];if(typeof X>"u")return ue;var we;if(x==="comma"&&h(X))ee&&E&&(X=n.maybeMap(X,E)),we=[{value:X.length>0?X.join(",")||null:void 0}];else if(h(A))we=A;else{var Me=Object.keys(X);we=R?Me.sort(R):Me}for(var Ce=T&&h(X)&&X.length===1?D+"[]":D,Ne=0;Ne<we.length;++Ne){var Ye=we[Ne],mt=typeof Ye=="object"&&typeof Ye.value<"u"?Ye.value:X[Ye];if(!(b&&mt===null)){var Ct=h(X)?typeof x=="function"?x(Ce,Ye):Ce:Ce+(H?"."+Ye:"["+Ye+"]");oe.set(N,Ie);var ln=r();ln.set(I,oe),d(ue,B(mt,Ct,x,T,u,b,x==="comma"&&ee&&h(X)?null:E,A,R,H,z,V,$,ee,q,ln))}}return ue},U=function(N){if(!N)return C;if(N.encoder!==null&&typeof N.encoder<"u"&&typeof N.encoder!="function")throw new TypeError("Encoder has to be a function.");var D=N.charset||C.charset;if(typeof N.charset<"u"&&N.charset!=="utf-8"&&N.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var x=s.default;if(typeof N.format<"u"){if(!a.call(s.formatters,N.format))throw new TypeError("Unknown format option provided.");x=N.format}var T=s.formatters[x],u=C.filter;return(typeof N.filter=="function"||h(N.filter))&&(u=N.filter),{addQueryPrefix:typeof N.addQueryPrefix=="boolean"?N.addQueryPrefix:C.addQueryPrefix,allowDots:typeof N.allowDots>"u"?C.allowDots:!!N.allowDots,charset:D,charsetSentinel:typeof N.charsetSentinel=="boolean"?N.charsetSentinel:C.charsetSentinel,delimiter:typeof N.delimiter>"u"?C.delimiter:N.delimiter,encode:typeof N.encode=="boolean"?N.encode:C.encode,encoder:typeof N.encoder=="function"?N.encoder:C.encoder,encodeValuesOnly:typeof N.encodeValuesOnly=="boolean"?N.encodeValuesOnly:C.encodeValuesOnly,filter:u,format:x,formatter:T,serializeDate:typeof N.serializeDate=="function"?N.serializeDate:C.serializeDate,skipNulls:typeof N.skipNulls=="boolean"?N.skipNulls:C.skipNulls,sort:typeof N.sort=="function"?N.sort:null,strictNullHandling:typeof N.strictNullHandling=="boolean"?N.strictNullHandling:C.strictNullHandling}};Z.exports=function(B,N){var D=B,x=U(N),T,u;typeof x.filter=="function"?(u=x.filter,D=u("",D)):h(x.filter)&&(u=x.filter,T=u);var b=[];if(typeof D!="object"||D===null)return"";var E;N&&N.arrayFormat in c?E=N.arrayFormat:N&&"indices"in N?E=N.indices?"indices":"repeat":E="indices";var A=c[E];if(N&&"commaRoundTrip"in N&&typeof N.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var R=A==="comma"&&N&&N.commaRoundTrip;T||(T=Object.keys(D)),x.sort&&T.sort(x.sort);for(var H=r(),z=0;z<T.length;++z){var V=T[z];x.skipNulls&&D[V]===null||d(b,F(D[V],V,A,R,x.strictNullHandling,x.skipNulls,x.encode?x.encoder:null,x.filter,x.sort,x.allowDots,x.serializeDate,x.format,x.formatter,x.encodeValuesOnly,x.charset,H))}var $=b.join(x.delimiter),ee=x.addQueryPrefix===!0?"?":"";return x.charsetSentinel&&(x.charset==="iso-8859-1"?ee+="utf8=%26%2310003%3B&":ee+="utf8=%E2%9C%93&"),$.length>0?ee+$:""}},12769:(Z,v,t)=>{"use strict";var r=t(55798),n=Object.prototype.hasOwnProperty,s=Array.isArray,a=function(){for(var B=[],N=0;N<256;++N)B.push("%"+((N<16?"0":"")+N.toString(16)).toUpperCase());return B}(),c=function(N){for(;N.length>1;){var D=N.pop(),x=D.obj[D.prop];if(s(x)){for(var T=[],u=0;u<x.length;++u)typeof x[u]<"u"&&T.push(x[u]);D.obj[D.prop]=T}}},h=function(N,D){for(var x=D&&D.plainObjects?Object.create(null):{},T=0;T<N.length;++T)typeof N[T]<"u"&&(x[T]=N[T]);return x},p=function B(N,D,x){if(!D)return N;if(typeof D!="object"){if(s(N))N.push(D);else if(N&&typeof N=="object")(x&&(x.plainObjects||x.allowPrototypes)||!n.call(Object.prototype,D))&&(N[D]=!0);else return[N,D];return N}if(!N||typeof N!="object")return[N].concat(D);var T=N;return s(N)&&!s(D)&&(T=h(N,x)),s(N)&&s(D)?(D.forEach(function(u,b){if(n.call(N,b)){var E=N[b];E&&typeof E=="object"&&u&&typeof u=="object"?N[b]=B(E,u,x):N.push(u)}else N[b]=u}),N):Object.keys(D).reduce(function(u,b){var E=D[b];return n.call(u,b)?u[b]=B(u[b],E,x):u[b]=E,u},T)},d=function(N,D){return Object.keys(D).reduce(function(x,T){return x[T]=D[T],x},N)},k=function(B,N,D){var x=B.replace(/\+/g," ");if(D==="iso-8859-1")return x.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(x)}catch{return x}},M=function(N,D,x,T,u){if(N.length===0)return N;var b=N;if(typeof N=="symbol"?b=Symbol.prototype.toString.call(N):typeof N!="string"&&(b=String(N)),x==="iso-8859-1")return escape(b).replace(/%u[0-9a-f]{4}/gi,function(H){return"%26%23"+parseInt(H.slice(2),16)+"%3B"});for(var E="",A=0;A<b.length;++A){var R=b.charCodeAt(A);if(R===45||R===46||R===95||R===126||R>=48&&R<=57||R>=65&&R<=90||R>=97&&R<=122||u===r.RFC1738&&(R===40||R===41)){E+=b.charAt(A);continue}if(R<128){E=E+a[R];continue}if(R<2048){E=E+(a[192|R>>6]+a[128|R&63]);continue}if(R<55296||R>=57344){E=E+(a[224|R>>12]+a[128|R>>6&63]+a[128|R&63]);continue}A+=1,R=65536+((R&1023)<<10|b.charCodeAt(A)&1023),E+=a[240|R>>18]+a[128|R>>12&63]+a[128|R>>6&63]+a[128|R&63]}return E},C=function(N){for(var D=[{obj:{o:N},prop:"o"}],x=[],T=0;T<D.length;++T)for(var u=D[T],b=u.obj[u.prop],E=Object.keys(b),A=0;A<E.length;++A){var R=E[A],H=b[R];typeof H=="object"&&H!==null&&x.indexOf(H)===-1&&(D.push({obj:b,prop:R}),x.push(H))}return c(D),N},w=function(N){return Object.prototype.toString.call(N)==="[object RegExp]"},I=function(N){return!N||typeof N!="object"?!1:!!(N.constructor&&N.constructor.isBuffer&&N.constructor.isBuffer(N))},F=function(N,D){return[].concat(N,D)},U=function(N,D){if(s(N)){for(var x=[],T=0;T<N.length;T+=1)x.push(D(N[T]));return x}return D(N)};Z.exports={arrayToObject:h,assign:d,combine:F,compact:C,decode:k,encode:M,isBuffer:I,isRegExp:w,maybeMap:U,merge:p}},88292:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.DndContext=void 0;var r=t(67294);const n=r.createContext({dragDropManager:void 0});v.DndContext=n},97668:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.DndProvider=void 0;var r=t(85893),n=t(67294),s=t(94556),a=t(88292);function c(I,F){if(I==null)return{};var U=h(I,F),B,N;if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(I);for(N=0;N<D.length;N++)B=D[N],!(F.indexOf(B)>=0)&&Object.prototype.propertyIsEnumerable.call(I,B)&&(U[B]=I[B])}return U}function h(I,F){if(I==null)return{};var U={},B=Object.keys(I),N,D;for(D=0;D<B.length;D++)N=B[D],!(F.indexOf(N)>=0)&&(U[N]=I[N]);return U}let p=0;const d=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var k=n.memo(function(F){var{children:U}=F,B=c(F,["children"]);const[N,D]=M(B);return n.useEffect(()=>{if(D){const x=w();return++p,()=>{--p===0&&(x[d]=null)}}},[]),r.jsx(a.DndContext.Provider,{value:N,children:U})});v.DndProvider=k;function M(I){if("manager"in I)return[{dragDropManager:I.manager},!1];const F=C(I.backend,I.context,I.options,I.debugMode),U=!I.context;return[F,U]}function C(I,F=w(),U,B){const N=F;return N[d]||(N[d]={dragDropManager:s.createDragDropManager(I,F,U,B)}),N[d]}function w(){return typeof t.g<"u"?t.g:window}},18727:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.DragPreviewImage=void 0;var r=t(67294);const n=r.memo(function({connect:a,src:c}){return r.useEffect(()=>{if(typeof Image>"u")return;let h=!1;const p=new Image;return p.src=c,p.onload=()=>{a(p),h=!0},()=>{h&&a(null)}}),null});v.DragPreviewImage=n},91147:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});var r={},n=c(t(88292));Object.keys(n).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(r,h)||h in v&&v[h]===n[h]||Object.defineProperty(v,h,{enumerable:!0,get:function(){return n[h]}})});var s=c(t(97668));Object.keys(s).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(r,h)||h in v&&v[h]===s[h]||Object.defineProperty(v,h,{enumerable:!0,get:function(){return s[h]}})});var a=c(t(18727));Object.keys(a).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(r,h)||h in v&&v[h]===a[h]||Object.defineProperty(v,h,{enumerable:!0,get:function(){return a[h]}})});function c(h){if(h&&h.__esModule)return h;var p={};if(h!=null){for(var d in h)if(Object.prototype.hasOwnProperty.call(h,d)){var k=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(h,d):{};k.get||k.set?Object.defineProperty(p,d,k):p[d]=h[d]}}return p.default=h,p}},6190:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});var r={},n=p(t(77338));Object.keys(n).forEach(function(d){d==="default"||d==="__esModule"||Object.prototype.hasOwnProperty.call(r,d)||d in v&&v[d]===n[d]||Object.defineProperty(v,d,{enumerable:!0,get:function(){return n[d]}})});var s=p(t(82239));Object.keys(s).forEach(function(d){d==="default"||d==="__esModule"||Object.prototype.hasOwnProperty.call(r,d)||d in v&&v[d]===s[d]||Object.defineProperty(v,d,{enumerable:!0,get:function(){return s[d]}})});var a=p(t(51114));Object.keys(a).forEach(function(d){d==="default"||d==="__esModule"||Object.prototype.hasOwnProperty.call(r,d)||d in v&&v[d]===a[d]||Object.defineProperty(v,d,{enumerable:!0,get:function(){return a[d]}})});var c=p(t(34761));Object.keys(c).forEach(function(d){d==="default"||d==="__esModule"||Object.prototype.hasOwnProperty.call(r,d)||d in v&&v[d]===c[d]||Object.defineProperty(v,d,{enumerable:!0,get:function(){return c[d]}})});var h=p(t(99770));Object.keys(h).forEach(function(d){d==="default"||d==="__esModule"||Object.prototype.hasOwnProperty.call(r,d)||d in v&&v[d]===h[d]||Object.defineProperty(v,d,{enumerable:!0,get:function(){return h[d]}})});function p(d){if(d&&d.__esModule)return d;var k={};if(d!=null){for(var M in d)if(Object.prototype.hasOwnProperty.call(d,M)){var C=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(d,M):{};C.get||C.set?Object.defineProperty(k,M,C):k[M]=d[M]}}return k.default=d,k}},99770:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0})},67819:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.useCollectedProps=n;var r=t(41028);function n(s,a,c){return r.useMonitorOutput(a,s||(()=>({})),()=>c.reconnect())}},78569:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.useCollector=c;var r=a(t(64063)),n=t(67294),s=t(90697);function a(h){return h&&h.__esModule?h:{default:h}}function c(h,p,d){const[k,M]=n.useState(()=>p(h)),C=n.useCallback(()=>{const w=p(h);r.default(k,w)||(M(w),d&&d())},[k,h,d]);return s.useIsomorphicLayoutEffect(C),[k,C]}},92376:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});class t{beginDrag(){const n=this.spec,s=this.monitor;let a=null;return typeof n.item=="object"?a=n.item:typeof n.item=="function"?a=n.item(s):a={},a??null}canDrag(){const n=this.spec,s=this.monitor;return typeof n.canDrag=="boolean"?n.canDrag:typeof n.canDrag=="function"?n.canDrag(s):!0}isDragging(n,s){const a=this.spec,c=this.monitor,{isDragging:h}=a;return h?h(c):s===n.getSourceId()}endDrag(){const n=this.spec,s=this.monitor,a=this.connector,{end:c}=n;c&&c(s.getItem(),s),a.reconnect()}constructor(n,s,a){this.spec=n,this.monitor=s,this.connector=a}}v.DragSourceImpl=t},13175:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.useConnectDragSource=n,v.useConnectDragPreview=s;var r=t(67294);function n(a){return r.useMemo(()=>a.hooks.dragSource(),[a])}function s(a){return r.useMemo(()=>a.hooks.dragPreview(),[a])}},77338:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});var r=n(t(30093));Object.keys(r).forEach(function(s){s==="default"||s==="__esModule"||s in v&&v[s]===r[s]||Object.defineProperty(v,s,{enumerable:!0,get:function(){return r[s]}})});function n(s){if(s&&s.__esModule)return s;var a={};if(s!=null){for(var c in s)if(Object.prototype.hasOwnProperty.call(s,c)){var h=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(s,c):{};h.get||h.set?Object.defineProperty(a,c,h):a[c]=s[c]}}return a.default=s,a}},30093:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.useDrag=d;var r=t(69321),n=t(65130),s=t(34370),a=t(67474),c=t(67819),h=t(13175),p=t(56278);function d(k,M){const C=n.useOptionalFactory(k,M);p.invariant(!C.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const w=s.useDragSourceMonitor(),I=a.useDragSourceConnector(C.options,C.previewOptions);return r.useRegisteredDragSource(C,w,I),[c.useCollectedProps(C.collect,w,I),h.useConnectDragSource(I),h.useConnectDragPreview(I)]}},83135:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.useDragSource=s;var r=t(67294),n=t(92376);function s(a,c,h){const p=r.useMemo(()=>new n.DragSourceImpl(a,c,h),[c,h]);return r.useEffect(()=>{p.spec=a},[a]),p}},67474:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.useDragSourceConnector=c;var r=t(67294),n=t(69566),s=t(34761),a=t(90697);function c(h,p){const d=s.useDragDropManager(),k=r.useMemo(()=>new n.SourceConnector(d.getBackend()),[d]);return a.useIsomorphicLayoutEffect(()=>(k.dragSourceOptions=h||null,k.reconnect(),()=>k.disconnectDragSource()),[k,h]),a.useIsomorphicLayoutEffect(()=>(k.dragPreviewOptions=p||null,k.reconnect(),()=>k.disconnectDragPreview()),[k,p]),k}},34370:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.useDragSourceMonitor=a;var r=t(67294),n=t(69566),s=t(34761);function a(){const c=s.useDragDropManager();return r.useMemo(()=>new n.DragSourceMonitorImpl(c),[c])}},48658:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.useDragType=s;var r=t(56278),n=t(67294);function s(a){return n.useMemo(()=>{const c=a.type;return r.invariant(c!=null,"spec.type must be defined"),c},[a])}},69321:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.useRegisteredDragSource=h;var r=t(69566),n=t(90697),s=t(83135),a=t(34761),c=t(48658);function h(p,d,k){const M=a.useDragDropManager(),C=s.useDragSource(p,d,k),w=c.useDragType(p);n.useIsomorphicLayoutEffect(function(){if(w!=null){const[F,U]=r.registerSource(w,C,M);return d.receiveHandlerId(F),k.receiveHandlerId(F),U}},[M,d,k,C,w])}},34761:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.useDragDropManager=a;var r=t(67294),n=t(56278),s=t(91147);function a(){const{dragDropManager:c}=r.useContext(s.DndContext);return n.invariant(c!=null,"Expected drag drop context"),c}},51114:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.useDragLayer=a;var r=t(67294),n=t(34761),s=t(78569);function a(c){const p=n.useDragDropManager().getMonitor(),[d,k]=s.useCollector(p,c);return r.useEffect(()=>p.subscribeToOffsetChange(k)),r.useEffect(()=>p.subscribeToStateChange(k)),d}},38788:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});class t{canDrop(){const n=this.spec,s=this.monitor;return n.canDrop?n.canDrop(s.getItem(),s):!0}hover(){const n=this.spec,s=this.monitor;n.hover&&n.hover(s.getItem(),s)}drop(){const n=this.spec,s=this.monitor;if(n.drop)return n.drop(s.getItem(),s)}constructor(n,s){this.spec=n,this.monitor=s}}v.DropTargetImpl=t},69513:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.useConnectDropTarget=n;var r=t(67294);function n(s){return r.useMemo(()=>s.hooks.dropTarget(),[s])}},82239:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});var r=n(t(15916));Object.keys(r).forEach(function(s){s==="default"||s==="__esModule"||s in v&&v[s]===r[s]||Object.defineProperty(v,s,{enumerable:!0,get:function(){return r[s]}})});function n(s){if(s&&s.__esModule)return s;var a={};if(s!=null){for(var c in s)if(Object.prototype.hasOwnProperty.call(s,c)){var h=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(s,c):{};h.get||h.set?Object.defineProperty(a,c,h):a[c]=s[c]}}return a.default=s,a}},69500:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.useAccept=s;var r=t(56278),n=t(67294);function s(a){const{accept:c}=a;return n.useMemo(()=>(r.invariant(a.accept!=null,"accept must be defined"),Array.isArray(c)?c:[c]),[c])}},15916:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.useDrop=p;var r=t(21259),n=t(65130),s=t(79807),a=t(6244),c=t(67819),h=t(69513);function p(d,k){const M=n.useOptionalFactory(d,k),C=s.useDropTargetMonitor(),w=a.useDropTargetConnector(M.options);return r.useRegisteredDropTarget(M,C,w),[c.useCollectedProps(M.collect,C,w),h.useConnectDropTarget(w)]}},53118:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.useDropTarget=s;var r=t(67294),n=t(38788);function s(a,c){const h=r.useMemo(()=>new n.DropTargetImpl(a,c),[c]);return r.useEffect(()=>{h.spec=a},[a]),h}},6244:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.useDropTargetConnector=c;var r=t(67294),n=t(69566),s=t(34761),a=t(90697);function c(h){const p=s.useDragDropManager(),d=r.useMemo(()=>new n.TargetConnector(p.getBackend()),[p]);return a.useIsomorphicLayoutEffect(()=>(d.dropTargetOptions=h||null,d.reconnect(),()=>d.disconnectDropTarget()),[h]),d}},79807:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.useDropTargetMonitor=a;var r=t(67294),n=t(69566),s=t(34761);function a(){const c=s.useDragDropManager();return r.useMemo(()=>new n.DropTargetMonitorImpl(c),[c])}},21259:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.useRegisteredDropTarget=h;var r=t(69566),n=t(34761),s=t(90697),a=t(69500),c=t(53118);function h(p,d,k){const M=n.useDragDropManager(),C=c.useDropTarget(p,d),w=a.useAccept(p);s.useIsomorphicLayoutEffect(function(){const[F,U]=r.registerTarget(w,C,M);return d.receiveHandlerId(F),k.receiveHandlerId(F),U},[M,d,C,k,w.map(I=>I.toString()).join("|")])}},90697:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.useIsomorphicLayoutEffect=void 0;var r=t(67294);const n=typeof window<"u"?r.useLayoutEffect:r.useEffect;v.useIsomorphicLayoutEffect=n},41028:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.useMonitorOutput=s;var r=t(90697),n=t(78569);function s(a,c,h){const[p,d]=n.useCollector(a,c,h);return r.useIsomorphicLayoutEffect(function(){const M=a.getHandlerId();if(M!=null)return a.subscribeToStateChange(d,{handlerIds:[M]})},[a,d]),p}},65130:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.useOptionalFactory=n;var r=t(67294);function n(s,a){const c=[...a||[]];return a==null&&typeof s!="function"&&c.push(s),r.useMemo(()=>typeof s=="function"?s():s,c)}},99168:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});var r={},n=c(t(68052));Object.keys(n).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(r,h)||h in v&&v[h]===n[h]||Object.defineProperty(v,h,{enumerable:!0,get:function(){return n[h]}})});var s=c(t(91147));Object.keys(s).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(r,h)||h in v&&v[h]===s[h]||Object.defineProperty(v,h,{enumerable:!0,get:function(){return s[h]}})});var a=c(t(6190));Object.keys(a).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(r,h)||h in v&&v[h]===a[h]||Object.defineProperty(v,h,{enumerable:!0,get:function(){return a[h]}})});function c(h){if(h&&h.__esModule)return h;var p={};if(h!=null){for(var d in h)if(Object.prototype.hasOwnProperty.call(h,d)){var k=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(h,d):{};k.get||k.set?Object.defineProperty(p,d,k):p[d]=h[d]}}return p.default=h,p}},53794:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});var r=t(56278);let n=!1,s=!1;class a{receiveHandlerId(h){this.sourceId=h}getHandlerId(){return this.sourceId}canDrag(){r.invariant(!n,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return n=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{n=!1}}isDragging(){if(!this.sourceId)return!1;r.invariant(!s,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return s=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{s=!1}}subscribeToStateChange(h,p){return this.internalMonitor.subscribeToStateChange(h,p)}isDraggingSource(h){return this.internalMonitor.isDraggingSource(h)}isOverTarget(h,p){return this.internalMonitor.isOverTarget(h,p)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(h){return this.internalMonitor.subscribeToOffsetChange(h)}canDragSource(h){return this.internalMonitor.canDragSource(h)}canDropOnTarget(h){return this.internalMonitor.canDropOnTarget(h)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(h){this.sourceId=null,this.internalMonitor=h.getMonitor()}}v.DragSourceMonitorImpl=a},23203:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});var r=t(56278);let n=!1;class s{receiveHandlerId(c){this.targetId=c}getHandlerId(){return this.targetId}subscribeToStateChange(c,h){return this.internalMonitor.subscribeToStateChange(c,h)}canDrop(){if(!this.targetId)return!1;r.invariant(!n,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return n=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{n=!1}}isOver(c){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,c):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(c){this.targetId=null,this.internalMonitor=c.getMonitor()}}v.DropTargetMonitorImpl=s},82649:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});var r=t(20407),n=t(58155),s=t(83984);class a{receiveHandlerId(h){this.handlerId!==h&&(this.handlerId=h,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(h){this.dragSourceOptionsInternal=h}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(h){this.dragPreviewOptionsInternal=h}reconnect(){const h=this.reconnectDragSource();this.reconnectDragPreview(h)}reconnectDragSource(){const h=this.dragSource,p=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return p&&this.disconnectDragSource(),this.handlerId?h?(p&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=h,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,h,this.dragSourceOptions)),p):(this.lastConnectedDragSource=h,p):p}reconnectDragPreview(h=!1){const p=this.dragPreview,d=h||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(d&&this.disconnectDragPreview(),!!this.handlerId){if(!p){this.lastConnectedDragPreview=p;return}d&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=p,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,p,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!s.shallowEqual(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!s.shallowEqual(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(h){this.hooks=r.wrapConnectorHooks({dragSource:(p,d)=>{this.clearDragSource(),this.dragSourceOptions=d||null,n.isRef(p)?this.dragSourceRef=p:this.dragSourceNode=p,this.reconnectDragSource()},dragPreview:(p,d)=>{this.clearDragPreview(),this.dragPreviewOptions=d||null,n.isRef(p)?this.dragPreviewRef=p:this.dragPreviewNode=p,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=h}}v.SourceConnector=a},7442:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});var r=t(83984),n=t(20407),s=t(58155);class a{get connectTarget(){return this.dropTarget}reconnect(){const h=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();h&&this.disconnectDropTarget();const p=this.dropTarget;if(this.handlerId){if(!p){this.lastConnectedDropTarget=p;return}h&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=p,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,p,this.dropTargetOptions))}}receiveHandlerId(h){h!==this.handlerId&&(this.handlerId=h,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(h){this.dropTargetOptionsInternal=h}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!r.shallowEqual(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(h){this.hooks=n.wrapConnectorHooks({dropTarget:(p,d)=>{this.clearDropTarget(),this.dropTargetOptions=d,s.isRef(p)?this.dropTargetRef=p:this.dropTargetNode=p,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=h}}v.TargetConnector=a},69566:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});var r={},n=p(t(53794));Object.keys(n).forEach(function(d){d==="default"||d==="__esModule"||Object.prototype.hasOwnProperty.call(r,d)||d in v&&v[d]===n[d]||Object.defineProperty(v,d,{enumerable:!0,get:function(){return n[d]}})});var s=p(t(23203));Object.keys(s).forEach(function(d){d==="default"||d==="__esModule"||Object.prototype.hasOwnProperty.call(r,d)||d in v&&v[d]===s[d]||Object.defineProperty(v,d,{enumerable:!0,get:function(){return s[d]}})});var a=p(t(82649));Object.keys(a).forEach(function(d){d==="default"||d==="__esModule"||Object.prototype.hasOwnProperty.call(r,d)||d in v&&v[d]===a[d]||Object.defineProperty(v,d,{enumerable:!0,get:function(){return a[d]}})});var c=p(t(7442));Object.keys(c).forEach(function(d){d==="default"||d==="__esModule"||Object.prototype.hasOwnProperty.call(r,d)||d in v&&v[d]===c[d]||Object.defineProperty(v,d,{enumerable:!0,get:function(){return c[d]}})});var h=p(t(1190));Object.keys(h).forEach(function(d){d==="default"||d==="__esModule"||Object.prototype.hasOwnProperty.call(r,d)||d in v&&v[d]===h[d]||Object.defineProperty(v,d,{enumerable:!0,get:function(){return h[d]}})});function p(d){if(d&&d.__esModule)return d;var k={};if(d!=null){for(var M in d)if(Object.prototype.hasOwnProperty.call(d,M)){var C=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(d,M):{};C.get||C.set?Object.defineProperty(k,M,C):k[M]=d[M]}}return k.default=d,k}},58155:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.isRef=t;function t(r){return r!==null&&typeof r=="object"&&Object.prototype.hasOwnProperty.call(r,"current")}},1190:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.registerTarget=t,v.registerSource=r;function t(n,s,a){const c=a.getRegistry(),h=c.addTarget(n,s);return[h,()=>c.removeTarget(h)]}function r(n,s,a){const c=a.getRegistry(),h=c.addSource(n,s);return[h,()=>c.removeSource(h)]}},20407:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.wrapConnectorHooks=c;var r=t(56278),n=t(67294);function s(d){if(typeof d.type=="string")return;const k=d.type.displayName||d.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${k} into a <div>, or turn it into a drag source or a drop target itself.`)}function a(d){return(k=null,M=null)=>{if(!n.isValidElement(k)){const I=k;return d(I,M),I}const C=k;return s(C),p(C,M?I=>d(I,M):d)}}function c(d){const k={};return Object.keys(d).forEach(M=>{const C=d[M];if(M.endsWith("Ref"))k[M]=d[M];else{const w=a(C);k[M]=()=>w}}),k}function h(d,k){typeof d=="function"?d(k):d.current=k}function p(d,k){const M=d.ref;return r.invariant(typeof M!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),M?n.cloneElement(d,{ref:C=>{h(M,C),h(k,C)}}):n.cloneElement(d,{ref:k})}},83754:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0})},68052:(Z,v,t)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});var r={},n=c(t(53739));Object.keys(n).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(r,h)||h in v&&v[h]===n[h]||Object.defineProperty(v,h,{enumerable:!0,get:function(){return n[h]}})});var s=c(t(97098));Object.keys(s).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(r,h)||h in v&&v[h]===s[h]||Object.defineProperty(v,h,{enumerable:!0,get:function(){return s[h]}})});var a=c(t(83754));Object.keys(a).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(r,h)||h in v&&v[h]===a[h]||Object.defineProperty(v,h,{enumerable:!0,get:function(){return a[h]}})});function c(h){if(h&&h.__esModule)return h;var p={};if(h!=null){for(var d in h)if(Object.prototype.hasOwnProperty.call(h,d)){var k=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(h,d):{};k.get||k.set?Object.defineProperty(p,d,k):p[d]=h[d]}}return p.default=h,p}},53739:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0})},97098:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0})},64448:(Z,v,t)=>{"use strict";/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=t(67294),n=t(63840);function s(y){for(var O="https://reactjs.org/docs/error-decoder.html?invariant="+y,Q=1;Q<arguments.length;Q++)O+="&args[]="+encodeURIComponent(arguments[Q]);return"Minified React error #"+y+"; visit "+O+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,c={};function h(y,O){p(y,O),p(y+"Capture",O)}function p(y,O){for(c[y]=O,y=0;y<O.length;y++)a.add(O[y])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),k=Object.prototype.hasOwnProperty,M=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,C={},w={};function I(y){return k.call(w,y)?!0:k.call(C,y)?!1:M.test(y)?w[y]=!0:(C[y]=!0,!1)}function F(y,O,Q,le){if(Q!==null&&Q.type===0)return!1;switch(typeof O){case"function":case"symbol":return!0;case"boolean":return le?!1:Q!==null?!Q.acceptsBooleans:(y=y.toLowerCase().slice(0,5),y!=="data-"&&y!=="aria-");default:return!1}}function U(y,O,Q,le){if(O===null||typeof O>"u"||F(y,O,Q,le))return!0;if(le)return!1;if(Q!==null)switch(Q.type){case 3:return!O;case 4:return O===!1;case 5:return isNaN(O);case 6:return isNaN(O)||1>O}return!1}function B(y,O,Q,le,De,pt,En){this.acceptsBooleans=O===2||O===3||O===4,this.attributeName=le,this.attributeNamespace=De,this.mustUseProperty=Q,this.propertyName=y,this.type=O,this.sanitizeURL=pt,this.removeEmptyString=En}var N={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(y){N[y]=new B(y,0,!1,y,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(y){var O=y[0];N[O]=new B(O,1,!1,y[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(y){N[y]=new B(y,2,!1,y.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(y){N[y]=new B(y,2,!1,y,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(y){N[y]=new B(y,3,!1,y.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(y){N[y]=new B(y,3,!0,y,null,!1,!1)}),["capture","download"].forEach(function(y){N[y]=new B(y,4,!1,y,null,!1,!1)}),["cols","rows","size","span"].forEach(function(y){N[y]=new B(y,6,!1,y,null,!1,!1)}),["rowSpan","start"].forEach(function(y){N[y]=new B(y,5,!1,y.toLowerCase(),null,!1,!1)});var D=/[\-:]([a-z])/g;function x(y){return y[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(y){var O=y.replace(D,x);N[O]=new B(O,1,!1,y,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(y){var O=y.replace(D,x);N[O]=new B(O,1,!1,y,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(y){var O=y.replace(D,x);N[O]=new B(O,1,!1,y,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(y){N[y]=new B(y,1,!1,y.toLowerCase(),null,!1,!1)}),N.xlinkHref=new B("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(y){N[y]=new B(y,1,!1,y.toLowerCase(),null,!0,!0)});function T(y,O,Q,le){var De=N.hasOwnProperty(O)?N[O]:null;(De!==null?De.type!==0:le||!(2<O.length)||O[0]!=="o"&&O[0]!=="O"||O[1]!=="n"&&O[1]!=="N")&&(U(O,Q,De,le)&&(Q=null),le||De===null?I(O)&&(Q===null?y.removeAttribute(O):y.setAttribute(O,""+Q)):De.mustUseProperty?y[De.propertyName]=Q===null?De.type===3?!1:"":Q:(O=De.attributeName,le=De.attributeNamespace,Q===null?y.removeAttribute(O):(De=De.type,Q=De===3||De===4&&Q===!0?"":""+Q,le?y.setAttributeNS(le,O,Q):y.setAttribute(O,Q))))}var u=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=Symbol.for("react.element"),E=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),z=Symbol.for("react.provider"),V=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),oe=Symbol.for("react.memo"),X=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var pe=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var Ie=Symbol.iterator;function se(y){return y===null||typeof y!="object"?null:(y=Ie&&y[Ie]||y["@@iterator"],typeof y=="function"?y:null)}var be=Object.assign,fe;function ue(y){if(fe===void 0)try{throw Error()}catch(Q){var O=Q.stack.trim().match(/\n( *(at )?)/);fe=O&&O[1]||""}return`
`+fe+y}var we=!1;function Me(y,O){if(!y||we)return"";we=!0;var Q=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(O)if(O=function(){throw Error()},Object.defineProperty(O.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(O,[])}catch(bi){var le=bi}Reflect.construct(y,[],O)}else{try{O.call()}catch(bi){le=bi}y.call(O.prototype)}else{try{throw Error()}catch(bi){le=bi}y()}}catch(bi){if(bi&&le&&typeof bi.stack=="string"){for(var De=bi.stack.split(`
`),pt=le.stack.split(`
`),En=De.length-1,yr=pt.length-1;1<=En&&0<=yr&&De[En]!==pt[yr];)yr--;for(;1<=En&&0<=yr;En--,yr--)if(De[En]!==pt[yr]){if(En!==1||yr!==1)do if(En--,yr--,0>yr||De[En]!==pt[yr]){var Ir=`
`+De[En].replace(" at new "," at ");return y.displayName&&Ir.includes("<anonymous>")&&(Ir=Ir.replace("<anonymous>",y.displayName)),Ir}while(1<=En&&0<=yr);break}}}finally{we=!1,Error.prepareStackTrace=Q}return(y=y?y.displayName||y.name:"")?ue(y):""}function Ce(y){switch(y.tag){case 5:return ue(y.type);case 16:return ue("Lazy");case 13:return ue("Suspense");case 19:return ue("SuspenseList");case 0:case 2:case 15:return y=Me(y.type,!1),y;case 11:return y=Me(y.type.render,!1),y;case 1:return y=Me(y.type,!0),y;default:return""}}function Ne(y){if(y==null)return null;if(typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case A:return"Fragment";case E:return"Portal";case H:return"Profiler";case R:return"StrictMode";case ee:return"Suspense";case q:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case V:return(y.displayName||"Context")+".Consumer";case z:return(y._context.displayName||"Context")+".Provider";case $:var O=y.render;return y=y.displayName,y||(y=O.displayName||O.name||"",y=y!==""?"ForwardRef("+y+")":"ForwardRef"),y;case oe:return O=y.displayName||null,O!==null?O:Ne(y.type)||"Memo";case X:O=y._payload,y=y._init;try{return Ne(y(O))}catch{}}return null}function Ye(y){var O=y.type;switch(y.tag){case 24:return"Cache";case 9:return(O.displayName||"Context")+".Consumer";case 10:return(O._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return y=O.render,y=y.displayName||y.name||"",O.displayName||(y!==""?"ForwardRef("+y+")":"ForwardRef");case 7:return"Fragment";case 5:return O;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ne(O);case 8:return O===R?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof O=="function")return O.displayName||O.name||null;if(typeof O=="string")return O}return null}function mt(y){switch(typeof y){case"boolean":case"number":case"string":case"undefined":return y;case"object":return y;default:return""}}function Ct(y){var O=y.type;return(y=y.nodeName)&&y.toLowerCase()==="input"&&(O==="checkbox"||O==="radio")}function ln(y){var O=Ct(y)?"checked":"value",Q=Object.getOwnPropertyDescriptor(y.constructor.prototype,O),le=""+y[O];if(!y.hasOwnProperty(O)&&typeof Q<"u"&&typeof Q.get=="function"&&typeof Q.set=="function"){var De=Q.get,pt=Q.set;return Object.defineProperty(y,O,{configurable:!0,get:function(){return De.call(this)},set:function(En){le=""+En,pt.call(this,En)}}),Object.defineProperty(y,O,{enumerable:Q.enumerable}),{getValue:function(){return le},setValue:function(En){le=""+En},stopTracking:function(){y._valueTracker=null,delete y[O]}}}}function $e(y){y._valueTracker||(y._valueTracker=ln(y))}function Qe(y){if(!y)return!1;var O=y._valueTracker;if(!O)return!0;var Q=O.getValue(),le="";return y&&(le=Ct(y)?y.checked?"true":"false":y.value),y=le,y!==Q?(O.setValue(y),!0):!1}function bt(y){if(y=y||(typeof document<"u"?document:void 0),typeof y>"u")return null;try{return y.activeElement||y.body}catch{return y.body}}function It(y,O){var Q=O.checked;return be({},O,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:Q??y._wrapperState.initialChecked})}function mn(y,O){var Q=O.defaultValue==null?"":O.defaultValue,le=O.checked!=null?O.checked:O.defaultChecked;Q=mt(O.value!=null?O.value:Q),y._wrapperState={initialChecked:le,initialValue:Q,controlled:O.type==="checkbox"||O.type==="radio"?O.checked!=null:O.value!=null}}function un(y,O){O=O.checked,O!=null&&T(y,"checked",O,!1)}function Be(y,O){un(y,O);var Q=mt(O.value),le=O.type;if(Q!=null)le==="number"?(Q===0&&y.value===""||y.value!=Q)&&(y.value=""+Q):y.value!==""+Q&&(y.value=""+Q);else if(le==="submit"||le==="reset"){y.removeAttribute("value");return}O.hasOwnProperty("value")?$t(y,O.type,Q):O.hasOwnProperty("defaultValue")&&$t(y,O.type,mt(O.defaultValue)),O.checked==null&&O.defaultChecked!=null&&(y.defaultChecked=!!O.defaultChecked)}function je(y,O,Q){if(O.hasOwnProperty("value")||O.hasOwnProperty("defaultValue")){var le=O.type;if(!(le!=="submit"&&le!=="reset"||O.value!==void 0&&O.value!==null))return;O=""+y._wrapperState.initialValue,Q||O===y.value||(y.value=O),y.defaultValue=O}Q=y.name,Q!==""&&(y.name=""),y.defaultChecked=!!y._wrapperState.initialChecked,Q!==""&&(y.name=Q)}function $t(y,O,Q){(O!=="number"||bt(y.ownerDocument)!==y)&&(Q==null?y.defaultValue=""+y._wrapperState.initialValue:y.defaultValue!==""+Q&&(y.defaultValue=""+Q))}var et=Array.isArray;function Kt(y,O,Q,le){if(y=y.options,O){O={};for(var De=0;De<Q.length;De++)O["$"+Q[De]]=!0;for(Q=0;Q<y.length;Q++)De=O.hasOwnProperty("$"+y[Q].value),y[Q].selected!==De&&(y[Q].selected=De),De&&le&&(y[Q].defaultSelected=!0)}else{for(Q=""+mt(Q),O=null,De=0;De<y.length;De++){if(y[De].value===Q){y[De].selected=!0,le&&(y[De].defaultSelected=!0);return}O!==null||y[De].disabled||(O=y[De])}O!==null&&(O.selected=!0)}}function kn(y,O){if(O.dangerouslySetInnerHTML!=null)throw Error(s(91));return be({},O,{value:void 0,defaultValue:void 0,children:""+y._wrapperState.initialValue})}function Tn(y,O){var Q=O.value;if(Q==null){if(Q=O.children,O=O.defaultValue,Q!=null){if(O!=null)throw Error(s(92));if(et(Q)){if(1<Q.length)throw Error(s(93));Q=Q[0]}O=Q}O==null&&(O=""),Q=O}y._wrapperState={initialValue:mt(Q)}}function ht(y,O){var Q=mt(O.value),le=mt(O.defaultValue);Q!=null&&(Q=""+Q,Q!==y.value&&(y.value=Q),O.defaultValue==null&&y.defaultValue!==Q&&(y.defaultValue=Q)),le!=null&&(y.defaultValue=""+le)}function ot(y){var O=y.textContent;O===y._wrapperState.initialValue&&O!==""&&O!==null&&(y.value=O)}function Je(y){switch(y){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function wt(y,O){return y==null||y==="http://www.w3.org/1999/xhtml"?Je(O):y==="http://www.w3.org/2000/svg"&&O==="foreignObject"?"http://www.w3.org/1999/xhtml":y}var ft,vn=function(y){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(O,Q,le,De){MSApp.execUnsafeLocalFunction(function(){return y(O,Q,le,De)})}:y}(function(y,O){if(y.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in y)y.innerHTML=O;else{for(ft=ft||document.createElement("div"),ft.innerHTML="<svg>"+O.valueOf().toString()+"</svg>",O=ft.firstChild;y.firstChild;)y.removeChild(y.firstChild);for(;O.firstChild;)y.appendChild(O.firstChild)}});function ut(y,O){if(O){var Q=y.firstChild;if(Q&&Q===y.lastChild&&Q.nodeType===3){Q.nodeValue=O;return}}y.textContent=O}var Wt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ae=["Webkit","ms","Moz","O"];Object.keys(Wt).forEach(function(y){ae.forEach(function(O){O=O+y.charAt(0).toUpperCase()+y.substring(1),Wt[O]=Wt[y]})});function ne(y,O,Q){return O==null||typeof O=="boolean"||O===""?"":Q||typeof O!="number"||O===0||Wt.hasOwnProperty(y)&&Wt[y]?(""+O).trim():O+"px"}function ge(y,O){y=y.style;for(var Q in O)if(O.hasOwnProperty(Q)){var le=Q.indexOf("--")===0,De=ne(Q,O[Q],le);Q==="float"&&(Q="cssFloat"),le?y.setProperty(Q,De):y[Q]=De}}var ye=be({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Xe(y,O){if(O){if(ye[y]&&(O.children!=null||O.dangerouslySetInnerHTML!=null))throw Error(s(137,y));if(O.dangerouslySetInnerHTML!=null){if(O.children!=null)throw Error(s(60));if(typeof O.dangerouslySetInnerHTML!="object"||!("__html"in O.dangerouslySetInnerHTML))throw Error(s(61))}if(O.style!=null&&typeof O.style!="object")throw Error(s(62))}}function Ze(y,O){if(y.indexOf("-")===-1)return typeof O.is=="string";switch(y){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var lt=null;function _t(y){return y=y.target||y.srcElement||window,y.correspondingUseElement&&(y=y.correspondingUseElement),y.nodeType===3?y.parentNode:y}var zt=null,Vt=null,sn=null;function yn(y){if(y=Go(y)){if(typeof zt!="function")throw Error(s(280));var O=y.stateNode;O&&(O=Zc(O),zt(y.stateNode,y.type,O))}}function dr(y){Vt?sn?sn.push(y):sn=[y]:Vt=y}function hr(){if(Vt){var y=Vt,O=sn;if(sn=Vt=null,yn(y),O)for(y=0;y<O.length;y++)yn(O[y])}}function Mr(y,O){return y(O)}function rr(){}var Cr=!1;function Ur(y,O,Q){if(Cr)return y(O,Q);Cr=!0;try{return Mr(y,O,Q)}finally{Cr=!1,(Vt!==null||sn!==null)&&(rr(),hr())}}function $r(y,O){var Q=y.stateNode;if(Q===null)return null;var le=Zc(Q);if(le===null)return null;Q=le[O];e:switch(O){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(le=!le.disabled)||(y=y.type,le=!(y==="button"||y==="input"||y==="select"||y==="textarea")),y=!le;break e;default:y=!1}if(y)return null;if(Q&&typeof Q!="function")throw Error(s(231,O,typeof Q));return Q}var li=!1;if(d)try{var ri={};Object.defineProperty(ri,"passive",{get:function(){li=!0}}),window.addEventListener("test",ri,ri),window.removeEventListener("test",ri,ri)}catch{li=!1}function Bt(y,O,Q,le,De,pt,En,yr,Ir){var bi=Array.prototype.slice.call(arguments,3);try{O.apply(Q,bi)}catch(Gi){this.onError(Gi)}}var Et=!1,bn=null,cn=!1,Yn=null,on={onError:function(y){Et=!0,bn=y}};function ze(y,O,Q,le,De,pt,En,yr,Ir){Et=!1,bn=null,Bt.apply(on,arguments)}function Le(y,O,Q,le,De,pt,En,yr,Ir){if(ze.apply(this,arguments),Et){if(Et){var bi=bn;Et=!1,bn=null}else throw Error(s(198));cn||(cn=!0,Yn=bi)}}function Ht(y){var O=y,Q=y;if(y.alternate)for(;O.return;)O=O.return;else{y=O;do O=y,O.flags&4098&&(Q=O.return),y=O.return;while(y)}return O.tag===3?Q:null}function Mn(y){if(y.tag===13){var O=y.memoizedState;if(O===null&&(y=y.alternate,y!==null&&(O=y.memoizedState)),O!==null)return O.dehydrated}return null}function tr(y){if(Ht(y)!==y)throw Error(s(188))}function Sr(y){var O=y.alternate;if(!O){if(O=Ht(y),O===null)throw Error(s(188));return O!==y?null:y}for(var Q=y,le=O;;){var De=Q.return;if(De===null)break;var pt=De.alternate;if(pt===null){if(le=De.return,le!==null){Q=le;continue}break}if(De.child===pt.child){for(pt=De.child;pt;){if(pt===Q)return tr(De),y;if(pt===le)return tr(De),O;pt=pt.sibling}throw Error(s(188))}if(Q.return!==le.return)Q=De,le=pt;else{for(var En=!1,yr=De.child;yr;){if(yr===Q){En=!0,Q=De,le=pt;break}if(yr===le){En=!0,le=De,Q=pt;break}yr=yr.sibling}if(!En){for(yr=pt.child;yr;){if(yr===Q){En=!0,Q=pt,le=De;break}if(yr===le){En=!0,le=pt,Q=De;break}yr=yr.sibling}if(!En)throw Error(s(189))}}if(Q.alternate!==le)throw Error(s(190))}if(Q.tag!==3)throw Error(s(188));return Q.stateNode.current===Q?y:O}function Xr(y){return y=Sr(y),y!==null?gi(y):null}function gi(y){if(y.tag===5||y.tag===6)return y;for(y=y.child;y!==null;){var O=gi(y);if(O!==null)return O;y=y.sibling}return null}var Pi=n.unstable_scheduleCallback,ii=n.unstable_cancelCallback,vr=n.unstable_shouldYield,at=n.unstable_requestPaint,it=n.unstable_now,Re=n.unstable_getCurrentPriorityLevel,ke=n.unstable_ImmediatePriority,Pe=n.unstable_UserBlockingPriority,Te=n.unstable_NormalPriority,Mt=n.unstable_LowPriority,qt=n.unstable_IdlePriority,Rn=null,Qn=null;function ur(y){if(Qn&&typeof Qn.onCommitFiberRoot=="function")try{Qn.onCommitFiberRoot(Rn,y,void 0,(y.current.flags&128)===128)}catch{}}var On=Math.clz32?Math.clz32:Cn,ct=Math.log,Zt=Math.LN2;function Cn(y){return y>>>=0,y===0?32:31-(ct(y)/Zt|0)|0}var Pn=64,Kn=4194304;function Rt(y){switch(y&-y){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return y&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return y&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return y}}function Ke(y,O){var Q=y.pendingLanes;if(Q===0)return 0;var le=0,De=y.suspendedLanes,pt=y.pingedLanes,En=Q&268435455;if(En!==0){var yr=En&~De;yr!==0?le=Rt(yr):(pt&=En,pt!==0&&(le=Rt(pt)))}else En=Q&~De,En!==0?le=Rt(En):pt!==0&&(le=Rt(pt));if(le===0)return 0;if(O!==0&&O!==le&&!(O&De)&&(De=le&-le,pt=O&-O,De>=pt||De===16&&(pt&4194240)!==0))return O;if(le&4&&(le|=Q&16),O=y.entangledLanes,O!==0)for(y=y.entanglements,O&=le;0<O;)Q=31-On(O),De=1<<Q,le|=y[Q],O&=~De;return le}function Oe(y,O){switch(y){case 1:case 2:case 4:return O+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return O+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ge(y,O){for(var Q=y.suspendedLanes,le=y.pingedLanes,De=y.expirationTimes,pt=y.pendingLanes;0<pt;){var En=31-On(pt),yr=1<<En,Ir=De[En];Ir===-1?(!(yr&Q)||yr&le)&&(De[En]=Oe(yr,O)):Ir<=O&&(y.expiredLanes|=yr),pt&=~yr}}function Ft(y){return y=y.pendingLanes&-1073741825,y!==0?y:y&1073741824?1073741824:0}function Qt(){var y=Pn;return Pn<<=1,!(Pn&4194240)&&(Pn=64),y}function wn(y){for(var O=[],Q=0;31>Q;Q++)O.push(y);return O}function Gn(y,O,Q){y.pendingLanes|=O,O!==536870912&&(y.suspendedLanes=0,y.pingedLanes=0),y=y.eventTimes,O=31-On(O),y[O]=Q}function ir(y,O){var Q=y.pendingLanes&~O;y.pendingLanes=O,y.suspendedLanes=0,y.pingedLanes=0,y.expiredLanes&=O,y.mutableReadLanes&=O,y.entangledLanes&=O,O=y.entanglements;var le=y.eventTimes;for(y=y.expirationTimes;0<Q;){var De=31-On(Q),pt=1<<De;O[De]=0,le[De]=-1,y[De]=-1,Q&=~pt}}function br(y,O){var Q=y.entangledLanes|=O;for(y=y.entanglements;Q;){var le=31-On(Q),De=1<<le;De&O|y[le]&O&&(y[le]|=O),Q&=~De}}var fr=0;function Er(y){return y&=-y,1<y?4<y?y&268435455?16:536870912:4:1}var Or,oi,si,Fi,$i,Vi=!1,Bn=[],nt=null,ve=null,he=null,Ae=new Map,tt=new Map,St=[],kt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Jt(y,O){switch(y){case"focusin":case"focusout":nt=null;break;case"dragenter":case"dragleave":ve=null;break;case"mouseover":case"mouseout":he=null;break;case"pointerover":case"pointerout":Ae.delete(O.pointerId);break;case"gotpointercapture":case"lostpointercapture":tt.delete(O.pointerId)}}function gt(y,O,Q,le,De,pt){return y===null||y.nativeEvent!==pt?(y={blockedOn:O,domEventName:Q,eventSystemFlags:le,nativeEvent:pt,targetContainers:[De]},O!==null&&(O=Go(O),O!==null&&oi(O)),y):(y.eventSystemFlags|=le,O=y.targetContainers,De!==null&&O.indexOf(De)===-1&&O.push(De),y)}function dn(y,O,Q,le,De){switch(O){case"focusin":return nt=gt(nt,y,O,Q,le,De),!0;case"dragenter":return ve=gt(ve,y,O,Q,le,De),!0;case"mouseover":return he=gt(he,y,O,Q,le,De),!0;case"pointerover":var pt=De.pointerId;return Ae.set(pt,gt(Ae.get(pt)||null,y,O,Q,le,De)),!0;case"gotpointercapture":return pt=De.pointerId,tt.set(pt,gt(tt.get(pt)||null,y,O,Q,le,De)),!0}return!1}function Xt(y){var O=Fa(y.target);if(O!==null){var Q=Ht(O);if(Q!==null){if(O=Q.tag,O===13){if(O=Mn(Q),O!==null){y.blockedOn=O,$i(y.priority,function(){si(Q)});return}}else if(O===3&&Q.stateNode.current.memoizedState.isDehydrated){y.blockedOn=Q.tag===3?Q.stateNode.containerInfo:null;return}}}y.blockedOn=null}function hn(y){if(y.blockedOn!==null)return!1;for(var O=y.targetContainers;0<O.length;){var Q=_e(y.domEventName,y.eventSystemFlags,O[0],y.nativeEvent);if(Q===null){Q=y.nativeEvent;var le=new Q.constructor(Q.type,Q);lt=le,Q.target.dispatchEvent(le),lt=null}else return O=Go(Q),O!==null&&oi(O),y.blockedOn=Q,!1;O.shift()}return!0}function Sn(y,O,Q){hn(y)&&Q.delete(O)}function Jn(){Vi=!1,nt!==null&&hn(nt)&&(nt=null),ve!==null&&hn(ve)&&(ve=null),he!==null&&hn(he)&&(he=null),Ae.forEach(Sn),tt.forEach(Sn)}function Vn(y,O){y.blockedOn===O&&(y.blockedOn=null,Vi||(Vi=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Jn)))}function ar(y){function O(De){return Vn(De,y)}if(0<Bn.length){Vn(Bn[0],y);for(var Q=1;Q<Bn.length;Q++){var le=Bn[Q];le.blockedOn===y&&(le.blockedOn=null)}}for(nt!==null&&Vn(nt,y),ve!==null&&Vn(ve,y),he!==null&&Vn(he,y),Ae.forEach(O),tt.forEach(O),Q=0;Q<St.length;Q++)le=St[Q],le.blockedOn===y&&(le.blockedOn=null);for(;0<St.length&&(Q=St[0],Q.blockedOn===null);)Xt(Q),Q.blockedOn===null&&St.shift()}var Vr=u.ReactCurrentBatchConfig,Jr=!0;function yi(y,O,Q,le){var De=fr,pt=Vr.transition;Vr.transition=null;try{fr=1,ji(y,O,Q,le)}finally{fr=De,Vr.transition=pt}}function Ii(y,O,Q,le){var De=fr,pt=Vr.transition;Vr.transition=null;try{fr=4,ji(y,O,Q,le)}finally{fr=De,Vr.transition=pt}}function ji(y,O,Q,le){if(Jr){var De=_e(y,O,Q,le);if(De===null)Dc(y,O,le,_n,Q),Jt(y,le);else if(dn(De,y,O,Q,le))le.stopPropagation();else if(Jt(y,le),O&4&&-1<kt.indexOf(y)){for(;De!==null;){var pt=Go(De);if(pt!==null&&Or(pt),pt=_e(y,O,Q,le),pt===null&&Dc(y,O,le,_n,Q),pt===De)break;De=pt}De!==null&&le.stopPropagation()}else Dc(y,O,le,null,Q)}}var _n=null;function _e(y,O,Q,le){if(_n=null,y=_t(le),y=Fa(y),y!==null)if(O=Ht(y),O===null)y=null;else if(Q=O.tag,Q===13){if(y=Mn(O),y!==null)return y;y=null}else if(Q===3){if(O.stateNode.current.memoizedState.isDehydrated)return O.tag===3?O.stateNode.containerInfo:null;y=null}else O!==y&&(y=null);return _n=y,null}function rt(y){switch(y){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Re()){case ke:return 1;case Pe:return 4;case Te:case Mt:return 16;case qt:return 536870912;default:return 16}default:return 16}}var vt=null,Gt=null,We=null;function Ot(){if(We)return We;var y,O=Gt,Q=O.length,le,De="value"in vt?vt.value:vt.textContent,pt=De.length;for(y=0;y<Q&&O[y]===De[y];y++);var En=Q-y;for(le=1;le<=En&&O[Q-le]===De[pt-le];le++);return We=De.slice(y,1<le?1-le:void 0)}function Dt(y){var O=y.keyCode;return"charCode"in y?(y=y.charCode,y===0&&O===13&&(y=13)):y=O,y===10&&(y=13),32<=y||y===13?y:0}function gn(){return!0}function Hn(){return!1}function nr(y){function O(Q,le,De,pt,En){this._reactName=Q,this._targetInst=De,this.type=le,this.nativeEvent=pt,this.target=En,this.currentTarget=null;for(var yr in y)y.hasOwnProperty(yr)&&(Q=y[yr],this[yr]=Q?Q(pt):pt[yr]);return this.isDefaultPrevented=(pt.defaultPrevented!=null?pt.defaultPrevented:pt.returnValue===!1)?gn:Hn,this.isPropagationStopped=Hn,this}return be(O.prototype,{preventDefault:function(){this.defaultPrevented=!0;var Q=this.nativeEvent;Q&&(Q.preventDefault?Q.preventDefault():typeof Q.returnValue!="unknown"&&(Q.returnValue=!1),this.isDefaultPrevented=gn)},stopPropagation:function(){var Q=this.nativeEvent;Q&&(Q.stopPropagation?Q.stopPropagation():typeof Q.cancelBubble!="unknown"&&(Q.cancelBubble=!0),this.isPropagationStopped=gn)},persist:function(){},isPersistent:gn}),O}var _r={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(y){return y.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nr=nr(_r),Qr=be({},_r,{view:0,detail:0}),ki=nr(Qr),Si,Ei,oo,zi=be({},Qr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ma,button:0,buttons:0,relatedTarget:function(y){return y.relatedTarget===void 0?y.fromElement===y.srcElement?y.toElement:y.fromElement:y.relatedTarget},movementX:function(y){return"movementX"in y?y.movementX:(y!==oo&&(oo&&y.type==="mousemove"?(Si=y.screenX-oo.screenX,Ei=y.screenY-oo.screenY):Ei=Si=0,oo=y),Si)},movementY:function(y){return"movementY"in y?y.movementY:Ei}}),Xi=nr(zi),uo=be({},zi,{dataTransfer:0}),qi=nr(uo),Ui=be({},Qr,{relatedTarget:0}),Vo=nr(Ui),Cs=be({},_r,{animationName:0,elapsedTime:0,pseudoElement:0}),ra=nr(Cs),Ts=be({},_r,{clipboardData:function(y){return"clipboardData"in y?y.clipboardData:window.clipboardData}}),Io=nr(Ts),xr=be({},_r,{data:0}),ia=nr(xr),Is={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Gs={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},as={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wo(y){var O=this.nativeEvent;return O.getModifierState?O.getModifierState(y):(y=as[y])?!!O[y]:!1}function Ma(){return Wo}var fa=be({},Qr,{key:function(y){if(y.key){var O=Is[y.key]||y.key;if(O!=="Unidentified")return O}return y.type==="keypress"?(y=Dt(y),y===13?"Enter":String.fromCharCode(y)):y.type==="keydown"||y.type==="keyup"?Gs[y.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ma,charCode:function(y){return y.type==="keypress"?Dt(y):0},keyCode:function(y){return y.type==="keydown"||y.type==="keyup"?y.keyCode:0},which:function(y){return y.type==="keypress"?Dt(y):y.type==="keydown"||y.type==="keyup"?y.keyCode:0}}),dt=nr(fa),Fe=be({},zi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),an=nr(Fe),qn=be({},Qr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ma}),Fr=nr(qn),ui=be({},_r,{propertyName:0,elapsedTime:0,pseudoElement:0}),Hi=nr(ui),lo=be({},zi,{deltaX:function(y){return"deltaX"in y?y.deltaX:"wheelDeltaX"in y?-y.wheelDeltaX:0},deltaY:function(y){return"deltaY"in y?y.deltaY:"wheelDeltaY"in y?-y.wheelDeltaY:"wheelDelta"in y?-y.wheelDelta:0},deltaZ:0,deltaMode:0}),mo=nr(lo),ts=[9,13,27,32],co=d&&"CompositionEvent"in window,Oo=null;d&&"documentMode"in document&&(Oo=document.documentMode);var Po=d&&"TextEvent"in window&&!Oo,Yo=d&&(!co||Oo&&8<Oo&&11>=Oo),ns=String.fromCharCode(32),Os=!1;function Lo(y,O){switch(y){case"keyup":return ts.indexOf(O.keyCode)!==-1;case"keydown":return O.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function da(y){return y=y.detail,typeof y=="object"&&"data"in y?y.data:null}var Qs=!1;function ta(y,O){switch(y){case"compositionend":return da(O);case"keypress":return O.which!==32?null:(Os=!0,ns);case"textInput":return y=O.data,y===ns&&Os?null:y;default:return null}}function Oa(y,O){if(Qs)return y==="compositionend"||!co&&Lo(y,O)?(y=Ot(),We=Gt=vt=null,Qs=!1,y):null;switch(y){case"paste":return null;case"keypress":if(!(O.ctrlKey||O.altKey||O.metaKey)||O.ctrlKey&&O.altKey){if(O.char&&1<O.char.length)return O.char;if(O.which)return String.fromCharCode(O.which)}return null;case"compositionend":return Yo&&O.locale!=="ko"?null:O.data;default:return null}}var _l={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function gs(y){var O=y&&y.nodeName&&y.nodeName.toLowerCase();return O==="input"?!!_l[y.type]:O==="textarea"}function ds(y,O,Q,le){dr(le),O=Kl(O,"onChange"),0<O.length&&(Q=new Nr("onChange","change",null,Q,le),y.push({event:Q,listeners:O}))}var es=null,Ga=null;function So(y){Ya(y,0)}function Di(y){var O=Tc(y);if(Qe(O))return y}function Il(y,O){if(y==="change")return O}var Na=!1;if(d){var xl;if(d){var Rl="oninput"in document;if(!Rl){var Pa=document.createElement("div");Pa.setAttribute("oninput","return;"),Rl=typeof Pa.oninput=="function"}xl=Rl}else xl=!1;Na=xl&&(!document.documentMode||9<document.documentMode)}function fi(){es&&(es.detachEvent("onpropertychange",rl),Ga=es=null)}function rl(y){if(y.propertyName==="value"&&Di(Ga)){var O=[];ds(O,Ga,y,_t(y)),Ur(So,O)}}function Xn(y,O,Q){y==="focusin"?(fi(),es=O,Ga=Q,es.attachEvent("onpropertychange",rl)):y==="focusout"&&fi()}function Kr(y){if(y==="selectionchange"||y==="keyup"||y==="keydown")return Di(Ga)}function Ln(y,O){if(y==="click")return Di(O)}function gr(y,O){if(y==="input"||y==="change")return Di(O)}function pr(y,O){return y===O&&(y!==0||1/y===1/O)||y!==y&&O!==O}var Wr=typeof Object.is=="function"?Object.is:pr;function Lt(y,O){if(Wr(y,O))return!0;if(typeof y!="object"||y===null||typeof O!="object"||O===null)return!1;var Q=Object.keys(y),le=Object.keys(O);if(Q.length!==le.length)return!1;for(le=0;le<Q.length;le++){var De=Q[le];if(!k.call(O,De)||!Wr(y[De],O[De]))return!1}return!0}function re(y){for(;y&&y.firstChild;)y=y.firstChild;return y}function me(y,O){var Q=re(y);y=0;for(var le;Q;){if(Q.nodeType===3){if(le=y+Q.textContent.length,y<=O&&le>=O)return{node:Q,offset:O-y};y=le}e:{for(;Q;){if(Q.nextSibling){Q=Q.nextSibling;break e}Q=Q.parentNode}Q=void 0}Q=re(Q)}}function Ue(y,O){return y&&O?y===O?!0:y&&y.nodeType===3?!1:O&&O.nodeType===3?Ue(y,O.parentNode):"contains"in y?y.contains(O):y.compareDocumentPosition?!!(y.compareDocumentPosition(O)&16):!1:!1}function He(){for(var y=window,O=bt();O instanceof y.HTMLIFrameElement;){try{var Q=typeof O.contentWindow.location.href=="string"}catch{Q=!1}if(Q)y=O.contentWindow;else break;O=bt(y.document)}return O}function At(y){var O=y&&y.nodeName&&y.nodeName.toLowerCase();return O&&(O==="input"&&(y.type==="text"||y.type==="search"||y.type==="tel"||y.type==="url"||y.type==="password")||O==="textarea"||y.contentEditable==="true")}function Ut(y){var O=He(),Q=y.focusedElem,le=y.selectionRange;if(O!==Q&&Q&&Q.ownerDocument&&Ue(Q.ownerDocument.documentElement,Q)){if(le!==null&&At(Q)){if(O=le.start,y=le.end,y===void 0&&(y=O),"selectionStart"in Q)Q.selectionStart=O,Q.selectionEnd=Math.min(y,Q.value.length);else if(y=(O=Q.ownerDocument||document)&&O.defaultView||window,y.getSelection){y=y.getSelection();var De=Q.textContent.length,pt=Math.min(le.start,De);le=le.end===void 0?pt:Math.min(le.end,De),!y.extend&&pt>le&&(De=le,le=pt,pt=De),De=me(Q,pt);var En=me(Q,le);De&&En&&(y.rangeCount!==1||y.anchorNode!==De.node||y.anchorOffset!==De.offset||y.focusNode!==En.node||y.focusOffset!==En.offset)&&(O=O.createRange(),O.setStart(De.node,De.offset),y.removeAllRanges(),pt>le?(y.addRange(O),y.extend(En.node,En.offset)):(O.setEnd(En.node,En.offset),y.addRange(O)))}}for(O=[],y=Q;y=y.parentNode;)y.nodeType===1&&O.push({element:y,left:y.scrollLeft,top:y.scrollTop});for(typeof Q.focus=="function"&&Q.focus(),Q=0;Q<O.length;Q++)y=O[Q],y.element.scrollLeft=y.left,y.element.scrollTop=y.top}}var en=d&&"documentMode"in document&&11>=document.documentMode,Yt=null,In=null,$n=null,wr=!1;function Tr(y,O,Q){var le=Q.window===Q?Q.document:Q.nodeType===9?Q:Q.ownerDocument;wr||Yt==null||Yt!==bt(le)||(le=Yt,"selectionStart"in le&&At(le)?le={start:le.selectionStart,end:le.selectionEnd}:(le=(le.ownerDocument&&le.ownerDocument.defaultView||window).getSelection(),le={anchorNode:le.anchorNode,anchorOffset:le.anchorOffset,focusNode:le.focusNode,focusOffset:le.focusOffset}),$n&&Lt($n,le)||($n=le,le=Kl(In,"onSelect"),0<le.length&&(O=new Nr("onSelect","select",null,O,Q),y.push({event:O,listeners:le}),O.target=Yt)))}function qr(y,O){var Q={};return Q[y.toLowerCase()]=O.toLowerCase(),Q["Webkit"+y]="webkit"+O,Q["Moz"+y]="moz"+O,Q}var di={animationend:qr("Animation","AnimationEnd"),animationiteration:qr("Animation","AnimationIteration"),animationstart:qr("Animation","AnimationStart"),transitionend:qr("Transition","TransitionEnd")},ai={},Ri={};d&&(Ri=document.createElement("div").style,"AnimationEvent"in window||(delete di.animationend.animation,delete di.animationiteration.animation,delete di.animationstart.animation),"TransitionEvent"in window||delete di.transitionend.transition);function Qi(y){if(ai[y])return ai[y];if(!di[y])return y;var O=di[y],Q;for(Q in O)if(O.hasOwnProperty(Q)&&Q in Ri)return ai[y]=O[Q];return y}var so=Qi("animationend"),Do=Qi("animationiteration"),Ro=Qi("animationstart"),Rs=Qi("transitionend"),Ns=new Map,Ls="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ba(y,O){Ns.set(y,O),h(O,[y])}for(var Da=0;Da<Ls.length;Da++){var go=Ls[Da],Wl=go.toLowerCase(),na=go[0].toUpperCase()+go.slice(1);Ba(Wl,"on"+na)}Ba(so,"onAnimationEnd"),Ba(Do,"onAnimationIteration"),Ba(Ro,"onAnimationStart"),Ba("dblclick","onDoubleClick"),Ba("focusin","onFocus"),Ba("focusout","onBlur"),Ba(Rs,"onTransitionEnd"),p("onMouseEnter",["mouseout","mouseover"]),p("onMouseLeave",["mouseout","mouseover"]),p("onPointerEnter",["pointerout","pointerover"]),p("onPointerLeave",["pointerout","pointerover"]),h("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),h("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),h("onBeforeInput",["compositionend","keypress","textInput","paste"]),h("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Eo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Fs=new Set("cancel close invalid load scroll toggle".split(" ").concat(Eo));function _a(y,O,Q){var le=y.type||"unknown-event";y.currentTarget=Q,Le(le,O,void 0,y),y.currentTarget=null}function Ya(y,O){O=(O&4)!==0;for(var Q=0;Q<y.length;Q++){var le=y[Q],De=le.event;le=le.listeners;e:{var pt=void 0;if(O)for(var En=le.length-1;0<=En;En--){var yr=le[En],Ir=yr.instance,bi=yr.currentTarget;if(yr=yr.listener,Ir!==pt&&De.isPropagationStopped())break e;_a(De,yr,bi),pt=Ir}else for(En=0;En<le.length;En++){if(yr=le[En],Ir=yr.instance,bi=yr.currentTarget,yr=yr.listener,Ir!==pt&&De.isPropagationStopped())break e;_a(De,yr,bi),pt=Ir}}}if(cn)throw y=Yn,cn=!1,Yn=null,y}function Ss(y,O){var Q=O[jn];Q===void 0&&(Q=O[jn]=new Set);var le=y+"__bubble";Q.has(le)||(nc(O,y,2,!1),Q.add(le))}function Zl(y,O,Q){var le=0;O&&(le|=4),nc(Q,y,le,O)}var Us="_reactListening"+Math.random().toString(36).slice(2);function Ll(y){if(!y[Us]){y[Us]=!0,a.forEach(function(Q){Q!=="selectionchange"&&(Fs.has(Q)||Zl(Q,!1,y),Zl(Q,!0,y))});var O=y.nodeType===9?y:y.ownerDocument;O===null||O[Us]||(O[Us]=!0,Zl("selectionchange",!1,O))}}function nc(y,O,Q,le){switch(rt(O)){case 1:var De=yi;break;case 4:De=Ii;break;default:De=ji}Q=De.bind(null,O,Q,y),De=void 0,!li||O!=="touchstart"&&O!=="touchmove"&&O!=="wheel"||(De=!0),le?De!==void 0?y.addEventListener(O,Q,{capture:!0,passive:De}):y.addEventListener(O,Q,!0):De!==void 0?y.addEventListener(O,Q,{passive:De}):y.addEventListener(O,Q,!1)}function Dc(y,O,Q,le,De){var pt=le;if(!(O&1)&&!(O&2)&&le!==null)e:for(;;){if(le===null)return;var En=le.tag;if(En===3||En===4){var yr=le.stateNode.containerInfo;if(yr===De||yr.nodeType===8&&yr.parentNode===De)break;if(En===4)for(En=le.return;En!==null;){var Ir=En.tag;if((Ir===3||Ir===4)&&(Ir=En.stateNode.containerInfo,Ir===De||Ir.nodeType===8&&Ir.parentNode===De))return;En=En.return}for(;yr!==null;){if(En=Fa(yr),En===null)return;if(Ir=En.tag,Ir===5||Ir===6){le=pt=En;continue e}yr=yr.parentNode}}le=le.return}Ur(function(){var bi=pt,Gi=_t(Q),to=[];e:{var Ki=Ns.get(y);if(Ki!==void 0){var Ao=Nr,zo=y;switch(y){case"keypress":if(Dt(Q)===0)break e;case"keydown":case"keyup":Ao=dt;break;case"focusin":zo="focus",Ao=Vo;break;case"focusout":zo="blur",Ao=Vo;break;case"beforeblur":case"afterblur":Ao=Vo;break;case"click":if(Q.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ao=Xi;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ao=qi;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ao=Fr;break;case so:case Do:case Ro:Ao=ra;break;case Rs:Ao=Hi;break;case"scroll":Ao=ki;break;case"wheel":Ao=mo;break;case"copy":case"cut":case"paste":Ao=Io;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ao=an}var Uo=(O&4)!==0,ml=!Uo&&y==="scroll",ni=Uo?Ki!==null?Ki+"Capture":null:Ki;Uo=[];for(var zr=bi,ci;zr!==null;){ci=zr;var fo=ci.stateNode;if(ci.tag===5&&fo!==null&&(ci=fo,ni!==null&&(fo=$r(zr,ni),fo!=null&&Uo.push(xa(zr,fo,ci)))),ml)break;zr=zr.return}0<Uo.length&&(Ki=new Ao(Ki,zo,null,Q,Gi),to.push({event:Ki,listeners:Uo}))}}if(!(O&7)){e:{if(Ki=y==="mouseover"||y==="pointerover",Ao=y==="mouseout"||y==="pointerout",Ki&&Q!==lt&&(zo=Q.relatedTarget||Q.fromElement)&&(Fa(zo)||zo[Fl]))break e;if((Ao||Ki)&&(Ki=Gi.window===Gi?Gi:(Ki=Gi.ownerDocument)?Ki.defaultView||Ki.parentWindow:window,Ao?(zo=Q.relatedTarget||Q.toElement,Ao=bi,zo=zo?Fa(zo):null,zo!==null&&(ml=Ht(zo),zo!==ml||zo.tag!==5&&zo.tag!==6)&&(zo=null)):(Ao=null,zo=bi),Ao!==zo)){if(Uo=Xi,fo="onMouseLeave",ni="onMouseEnter",zr="mouse",(y==="pointerout"||y==="pointerover")&&(Uo=an,fo="onPointerLeave",ni="onPointerEnter",zr="pointer"),ml=Ao==null?Ki:Tc(Ao),ci=zo==null?Ki:Tc(zo),Ki=new Uo(fo,zr+"leave",Ao,Q,Gi),Ki.target=ml,Ki.relatedTarget=ci,fo=null,Fa(Gi)===bi&&(Uo=new Uo(ni,zr+"enter",zo,Q,Gi),Uo.target=ci,Uo.relatedTarget=ml,fo=Uo),ml=fo,Ao&&zo)t:{for(Uo=Ao,ni=zo,zr=0,ci=Uo;ci;ci=Ea(ci))zr++;for(ci=0,fo=ni;fo;fo=Ea(fo))ci++;for(;0<zr-ci;)Uo=Ea(Uo),zr--;for(;0<ci-zr;)ni=Ea(ni),ci--;for(;zr--;){if(Uo===ni||ni!==null&&Uo===ni.alternate)break t;Uo=Ea(Uo),ni=Ea(ni)}Uo=null}else Uo=null;Ao!==null&&js(to,Ki,Ao,Uo,!1),zo!==null&&ml!==null&&js(to,ml,zo,Uo,!0)}}e:{if(Ki=bi?Tc(bi):window,Ao=Ki.nodeName&&Ki.nodeName.toLowerCase(),Ao==="select"||Ao==="input"&&Ki.type==="file")var Ho=Il;else if(gs(Ki))if(Na)Ho=gr;else{Ho=Kr;var ss=Xn}else(Ao=Ki.nodeName)&&Ao.toLowerCase()==="input"&&(Ki.type==="checkbox"||Ki.type==="radio")&&(Ho=Ln);if(Ho&&(Ho=Ho(y,bi))){ds(to,Ho,Q,Gi);break e}ss&&ss(y,Ki,bi),y==="focusout"&&(ss=Ki._wrapperState)&&ss.controlled&&Ki.type==="number"&&$t(Ki,"number",Ki.value)}switch(ss=bi?Tc(bi):window,y){case"focusin":(gs(ss)||ss.contentEditable==="true")&&(Yt=ss,In=bi,$n=null);break;case"focusout":$n=In=Yt=null;break;case"mousedown":wr=!0;break;case"contextmenu":case"mouseup":case"dragend":wr=!1,Tr(to,Q,Gi);break;case"selectionchange":if(en)break;case"keydown":case"keyup":Tr(to,Q,Gi)}var ls;if(co)e:{switch(y){case"compositionstart":var Es="onCompositionStart";break e;case"compositionend":Es="onCompositionEnd";break e;case"compositionupdate":Es="onCompositionUpdate";break e}Es=void 0}else Qs?Lo(y,Q)&&(Es="onCompositionEnd"):y==="keydown"&&Q.keyCode===229&&(Es="onCompositionStart");Es&&(Yo&&Q.locale!=="ko"&&(Qs||Es!=="onCompositionStart"?Es==="onCompositionEnd"&&Qs&&(ls=Ot()):(vt=Gi,Gt="value"in vt?vt.value:vt.textContent,Qs=!0)),ss=Kl(bi,Es),0<ss.length&&(Es=new ia(Es,y,null,Q,Gi),to.push({event:Es,listeners:ss}),ls?Es.data=ls:(ls=da(Q),ls!==null&&(Es.data=ls)))),(ls=Po?ta(y,Q):Oa(y,Q))&&(bi=Kl(bi,"onBeforeInput"),0<bi.length&&(Gi=new ia("onBeforeInput","beforeinput",null,Q,Gi),to.push({event:Gi,listeners:bi}),Gi.data=ls))}Ya(to,O)})}function xa(y,O,Q){return{instance:y,listener:O,currentTarget:Q}}function Kl(y,O){for(var Q=O+"Capture",le=[];y!==null;){var De=y,pt=De.stateNode;De.tag===5&&pt!==null&&(De=pt,pt=$r(y,Q),pt!=null&&le.unshift(xa(y,pt,De)),pt=$r(y,O),pt!=null&&le.push(xa(y,pt,De))),y=y.return}return le}function Ea(y){if(y===null)return null;do y=y.return;while(y&&y.tag!==5);return y||null}function js(y,O,Q,le,De){for(var pt=O._reactName,En=[];Q!==null&&Q!==le;){var yr=Q,Ir=yr.alternate,bi=yr.stateNode;if(Ir!==null&&Ir===le)break;yr.tag===5&&bi!==null&&(yr=bi,De?(Ir=$r(Q,pt),Ir!=null&&En.unshift(xa(Q,Ir,yr))):De||(Ir=$r(Q,pt),Ir!=null&&En.push(xa(Q,Ir,yr)))),Q=Q.return}En.length!==0&&y.push({event:O,listeners:En})}var jl=/\r\n?/g,Bl=/\u0000|\uFFFD/g;function il(y){return(typeof y=="string"?y:""+y).replace(jl,`
`).replace(Bl,"")}function ko(y,O,Q){if(O=il(O),il(y)!==O&&Q)throw Error(s(425))}function fc(){}var pc=null,rc=null;function Ic(y,O){return y==="textarea"||y==="noscript"||typeof O.children=="string"||typeof O.children=="number"||typeof O.dangerouslySetInnerHTML=="object"&&O.dangerouslySetInnerHTML!==null&&O.dangerouslySetInnerHTML.__html!=null}var su=typeof setTimeout=="function"?setTimeout:void 0,Rc=typeof clearTimeout=="function"?clearTimeout:void 0,El=typeof Promise=="function"?Promise:void 0,Nl=typeof queueMicrotask=="function"?queueMicrotask:typeof El<"u"?function(y){return El.resolve(null).then(y).catch(ud)}:su;function ud(y){setTimeout(function(){throw y})}function au(y,O){var Q=O,le=0;do{var De=Q.nextSibling;if(y.removeChild(Q),De&&De.nodeType===8)if(Q=De.data,Q==="/$"){if(le===0){y.removeChild(De),ar(O);return}le--}else Q!=="$"&&Q!=="$?"&&Q!=="$!"||le++;Q=De}while(Q);ar(O)}function Lc(y){for(;y!=null;y=y.nextSibling){var O=y.nodeType;if(O===1||O===3)break;if(O===8){if(O=y.data,O==="$"||O==="$!"||O==="$?")break;if(O==="/$")return null}}return y}function zu(y){y=y.previousSibling;for(var O=0;y;){if(y.nodeType===8){var Q=y.data;if(Q==="$"||Q==="$!"||Q==="$?"){if(O===0)return y;O--}else Q==="/$"&&O++}y=y.previousSibling}return null}var mc=Math.random().toString(36).slice(2),ol="__reactFiber$"+mc,gc="__reactProps$"+mc,Fl="__reactContainer$"+mc,jn="__reactEvents$"+mc,Qa="__reactListeners$"+mc,jc="__reactHandles$"+mc;function Fa(y){var O=y[ol];if(O)return O;for(var Q=y.parentNode;Q;){if(O=Q[Fl]||Q[ol]){if(Q=O.alternate,O.child!==null||Q!==null&&Q.child!==null)for(y=zu(y);y!==null;){if(Q=y[ol])return Q;y=zu(y)}return O}y=Q,Q=y.parentNode}return null}function Go(y){return y=y[ol]||y[Fl],!y||y.tag!==5&&y.tag!==6&&y.tag!==13&&y.tag!==3?null:y}function Tc(y){if(y.tag===5||y.tag===6)return y.stateNode;throw Error(s(33))}function Zc(y){return y[gc]||null}var sl=[],$s=-1;function xs(y){return{current:y}}function cs(y){0>$s||(y.current=sl[$s],sl[$s]=null,$s--)}function hs(y,O){$s++,sl[$s]=y.current,y.current=O}var Gl={},As=xs(Gl),fs=xs(!1),$a=Gl;function al(y,O){var Q=y.type.contextTypes;if(!Q)return Gl;var le=y.stateNode;if(le&&le.__reactInternalMemoizedUnmaskedChildContext===O)return le.__reactInternalMemoizedMaskedChildContext;var De={},pt;for(pt in Q)De[pt]=O[pt];return le&&(y=y.stateNode,y.__reactInternalMemoizedUnmaskedChildContext=O,y.__reactInternalMemoizedMaskedChildContext=De),De}function Vs(y){return y=y.childContextTypes,y!=null}function Hs(){cs(fs),cs(As)}function ka(y,O,Q){if(As.current!==Gl)throw Error(s(168));hs(As,O),hs(fs,Q)}function kl(y,O,Q){var le=y.stateNode;if(O=O.childContextTypes,typeof le.getChildContext!="function")return Q;le=le.getChildContext();for(var De in le)if(!(De in O))throw Error(s(108,Ye(y)||"Unknown",De));return be({},Q,le)}function la(y){return y=(y=y.stateNode)&&y.__reactInternalMemoizedMergedChildContext||Gl,$a=As.current,hs(As,y),hs(fs,fs.current),!0}function rs(y,O,Q){var le=y.stateNode;if(!le)throw Error(s(169));Q?(y=kl(y,O,$a),le.__reactInternalMemoizedMergedChildContext=y,cs(fs),cs(As),hs(As,y)):cs(fs),hs(fs,Q)}var ic=null,Mu=!1,Sd=!1;function Bc(y){ic===null?ic=[y]:ic.push(y)}function dd(y){Mu=!0,Bc(y)}function Ha(){if(!Sd&&ic!==null){Sd=!0;var y=0,O=fr;try{var Q=ic;for(fr=1;y<Q.length;y++){var le=Q[y];do le=le(!0);while(le!==null)}ic=null,Mu=!1}catch(De){throw ic!==null&&(ic=ic.slice(y+1)),Pi(ke,Ha),De}finally{fr=O,Sd=!1}}return null}var ll=[],Nc=0,Va=null,Ca=0,Ps=[],Yl=0,Ql=null,Pt=1,st="";function nn(y,O){ll[Nc++]=Ca,ll[Nc++]=Va,Va=y,Ca=O}function Un(y,O,Q){Ps[Yl++]=Pt,Ps[Yl++]=st,Ps[Yl++]=Ql,Ql=y;var le=Pt;y=st;var De=32-On(le)-1;le&=~(1<<De),Q+=1;var pt=32-On(O)+De;if(30<pt){var En=De-De%5;pt=(le&(1<<En)-1).toString(32),le>>=En,De-=En,Pt=1<<32-On(O)+De|Q<<De|le,st=pt+y}else Pt=1<<pt|Q<<De|le,st=y}function or(y){y.return!==null&&(nn(y,1),Un(y,1,0))}function lr(y){for(;y===Va;)Va=ll[--Nc],ll[Nc]=null,Ca=ll[--Nc],ll[Nc]=null;for(;y===Ql;)Ql=Ps[--Yl],Ps[Yl]=null,st=Ps[--Yl],Ps[Yl]=null,Pt=Ps[--Yl],Ps[Yl]=null}var jr=null,Br=null,Yr=!1,Oi=null;function Mi(y,O){var Q=xu(5,null,null,0);Q.elementType="DELETED",Q.stateNode=O,Q.return=y,O=y.deletions,O===null?(y.deletions=[Q],y.flags|=16):O.push(Q)}function eo(y,O){switch(y.tag){case 5:var Q=y.type;return O=O.nodeType!==1||Q.toLowerCase()!==O.nodeName.toLowerCase()?null:O,O!==null?(y.stateNode=O,jr=y,Br=Lc(O.firstChild),!0):!1;case 6:return O=y.pendingProps===""||O.nodeType!==3?null:O,O!==null?(y.stateNode=O,jr=y,Br=null,!0):!1;case 13:return O=O.nodeType!==8?null:O,O!==null?(Q=Ql!==null?{id:Pt,overflow:st}:null,y.memoizedState={dehydrated:O,treeContext:Q,retryLane:1073741824},Q=xu(18,null,null,0),Q.stateNode=O,Q.return=y,y.child=Q,jr=y,Br=null,!0):!1;default:return!1}}function Ni(y){return(y.mode&1)!==0&&(y.flags&128)===0}function no(y){if(Yr){var O=Br;if(O){var Q=O;if(!eo(y,O)){if(Ni(y))throw Error(s(418));O=Lc(Q.nextSibling);var le=jr;O&&eo(y,O)?Mi(le,Q):(y.flags=y.flags&-4097|2,Yr=!1,jr=y)}}else{if(Ni(y))throw Error(s(418));y.flags=y.flags&-4097|2,Yr=!1,jr=y}}}function vo(y){for(y=y.return;y!==null&&y.tag!==5&&y.tag!==3&&y.tag!==13;)y=y.return;jr=y}function Qo(y){if(y!==jr)return!1;if(!Yr)return vo(y),Yr=!0,!1;var O;if((O=y.tag!==3)&&!(O=y.tag!==5)&&(O=y.type,O=O!=="head"&&O!=="body"&&!Ic(y.type,y.memoizedProps)),O&&(O=Br)){if(Ni(y))throw No(),Error(s(418));for(;O;)Mi(y,O),O=Lc(O.nextSibling)}if(vo(y),y.tag===13){if(y=y.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(s(317));e:{for(y=y.nextSibling,O=0;y;){if(y.nodeType===8){var Q=y.data;if(Q==="/$"){if(O===0){Br=Lc(y.nextSibling);break e}O--}else Q!=="$"&&Q!=="$!"&&Q!=="$?"||O++}y=y.nextSibling}Br=null}}else Br=jr?Lc(y.stateNode.nextSibling):null;return!0}function No(){for(var y=Br;y;)y=Lc(y.nextSibling)}function ps(){Br=jr=null,Yr=!1}function ba(y){Oi===null?Oi=[y]:Oi.push(y)}var Fc=u.ReactCurrentBatchConfig;function cl(y,O){if(y&&y.defaultProps){O=be({},O),y=y.defaultProps;for(var Q in y)O[Q]===void 0&&(O[Q]=y[Q]);return O}return O}var Kc=xs(null),lu=null,Ia=null,Gc=null;function Jl(){Gc=Ia=lu=null}function $l(y){var O=Kc.current;cs(Kc),y._currentValue=O}function Ou(y,O,Q){for(;y!==null;){var le=y.alternate;if((y.childLanes&O)!==O?(y.childLanes|=O,le!==null&&(le.childLanes|=O)):le!==null&&(le.childLanes&O)!==O&&(le.childLanes|=O),y===Q)break;y=y.return}}function oc(y,O){lu=y,Gc=Ia=null,y=y.dependencies,y!==null&&y.firstContext!==null&&(y.lanes&O&&(lc=!0),y.firstContext=null)}function ul(y){var O=y._currentValue;if(Gc!==y)if(y={context:y,memoizedValue:O,next:null},Ia===null){if(lu===null)throw Error(s(308));Ia=y,lu.dependencies={lanes:0,firstContext:y}}else Ia=Ia.next=y;return O}var Yc=null;function gl(y){Yc===null?Yc=[y]:Yc.push(y)}function Ad(y,O,Q,le){var De=O.interleaved;return De===null?(Q.next=Q,gl(O)):(Q.next=De.next,De.next=Q),O.interleaved=Q,Qc(y,le)}function Qc(y,O){y.lanes|=O;var Q=y.alternate;for(Q!==null&&(Q.lanes|=O),Q=y,y=y.return;y!==null;)y.childLanes|=O,Q=y.alternate,Q!==null&&(Q.childLanes|=O),Q=y,y=y.return;return Q.tag===3?Q.stateNode:null}var cu=!1;function hd(y){y.updateQueue={baseState:y.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Uu(y,O){y=y.updateQueue,O.updateQueue===y&&(O.updateQueue={baseState:y.baseState,firstBaseUpdate:y.firstBaseUpdate,lastBaseUpdate:y.lastBaseUpdate,shared:y.shared,effects:y.effects})}function uu(y,O){return{eventTime:y,lane:O,tag:0,payload:null,callback:null,next:null}}function sc(y,O,Q){var le=y.updateQueue;if(le===null)return null;if(le=le.shared,bs&2){var De=le.pending;return De===null?O.next=O:(O.next=De.next,De.next=O),le.pending=O,Qc(y,Q)}return De=le.interleaved,De===null?(O.next=O,gl(le)):(O.next=De.next,De.next=O),le.interleaved=O,Qc(y,Q)}function Md(y,O,Q){if(O=O.updateQueue,O!==null&&(O=O.shared,(Q&4194240)!==0)){var le=O.lanes;le&=y.pendingLanes,Q|=le,O.lanes=Q,br(y,Q)}}function Od(y,O){var Q=y.updateQueue,le=y.alternate;if(le!==null&&(le=le.updateQueue,Q===le)){var De=null,pt=null;if(Q=Q.firstBaseUpdate,Q!==null){do{var En={eventTime:Q.eventTime,lane:Q.lane,tag:Q.tag,payload:Q.payload,callback:Q.callback,next:null};pt===null?De=pt=En:pt=pt.next=En,Q=Q.next}while(Q!==null);pt===null?De=pt=O:pt=pt.next=O}else De=pt=O;Q={baseState:le.baseState,firstBaseUpdate:De,lastBaseUpdate:pt,shared:le.shared,effects:le.effects},y.updateQueue=Q;return}y=Q.lastBaseUpdate,y===null?Q.firstBaseUpdate=O:y.next=O,Q.lastBaseUpdate=O}function Wd(y,O,Q,le){var De=y.updateQueue;cu=!1;var pt=De.firstBaseUpdate,En=De.lastBaseUpdate,yr=De.shared.pending;if(yr!==null){De.shared.pending=null;var Ir=yr,bi=Ir.next;Ir.next=null,En===null?pt=bi:En.next=bi,En=Ir;var Gi=y.alternate;Gi!==null&&(Gi=Gi.updateQueue,yr=Gi.lastBaseUpdate,yr!==En&&(yr===null?Gi.firstBaseUpdate=bi:yr.next=bi,Gi.lastBaseUpdate=Ir))}if(pt!==null){var to=De.baseState;En=0,Gi=bi=Ir=null,yr=pt;do{var Ki=yr.lane,Ao=yr.eventTime;if((le&Ki)===Ki){Gi!==null&&(Gi=Gi.next={eventTime:Ao,lane:0,tag:yr.tag,payload:yr.payload,callback:yr.callback,next:null});e:{var zo=y,Uo=yr;switch(Ki=O,Ao=Q,Uo.tag){case 1:if(zo=Uo.payload,typeof zo=="function"){to=zo.call(Ao,to,Ki);break e}to=zo;break e;case 3:zo.flags=zo.flags&-65537|128;case 0:if(zo=Uo.payload,Ki=typeof zo=="function"?zo.call(Ao,to,Ki):zo,Ki==null)break e;to=be({},to,Ki);break e;case 2:cu=!0}}yr.callback!==null&&yr.lane!==0&&(y.flags|=64,Ki=De.effects,Ki===null?De.effects=[yr]:Ki.push(yr))}else Ao={eventTime:Ao,lane:Ki,tag:yr.tag,payload:yr.payload,callback:yr.callback,next:null},Gi===null?(bi=Gi=Ao,Ir=to):Gi=Gi.next=Ao,En|=Ki;if(yr=yr.next,yr===null){if(yr=De.shared.pending,yr===null)break;Ki=yr,yr=Ki.next,Ki.next=null,De.lastBaseUpdate=Ki,De.shared.pending=null}}while(1);if(Gi===null&&(Ir=to),De.baseState=Ir,De.firstBaseUpdate=bi,De.lastBaseUpdate=Gi,O=De.shared.interleaved,O!==null){De=O;do En|=De.lane,De=De.next;while(De!==O)}else pt===null&&(De.shared.lanes=0);_d|=En,y.lanes=En,y.memoizedState=to}}function Cl(y,O,Q){if(y=O.effects,O.effects=null,y!==null)for(O=0;O<y.length;O++){var le=y[O],De=le.callback;if(De!==null){if(le.callback=null,le=Q,typeof De!="function")throw Error(s(191,De));De.call(le)}}}var Pd=new r.Component().refs;function fd(y,O,Q,le){O=y.memoizedState,Q=Q(le,O),Q=Q==null?O:be({},O,Q),y.memoizedState=Q,y.lanes===0&&(y.updateQueue.baseState=Q)}var Pu={isMounted:function(y){return(y=y._reactInternals)?Ht(y)===y:!1},enqueueSetState:function(y,O,Q){y=y._reactInternals;var le=Ec(),De=_u(y),pt=uu(le,De);pt.payload=O,Q!=null&&(pt.callback=Q),O=sc(y,pt,De),O!==null&&(Bu(O,y,De,le),Md(O,y,De))},enqueueReplaceState:function(y,O,Q){y=y._reactInternals;var le=Ec(),De=_u(y),pt=uu(le,De);pt.tag=1,pt.payload=O,Q!=null&&(pt.callback=Q),O=sc(y,pt,De),O!==null&&(Bu(O,y,De,le),Md(O,y,De))},enqueueForceUpdate:function(y,O){y=y._reactInternals;var Q=Ec(),le=_u(y),De=uu(Q,le);De.tag=2,O!=null&&(De.callback=O),O=sc(y,De,le),O!==null&&(Bu(O,y,le,Q),Md(O,y,le))}};function fh(y,O,Q,le,De,pt,En){return y=y.stateNode,typeof y.shouldComponentUpdate=="function"?y.shouldComponentUpdate(le,pt,En):O.prototype&&O.prototype.isPureReactComponent?!Lt(Q,le)||!Lt(De,pt):!0}function Dh(y,O,Q){var le=!1,De=Gl,pt=O.contextType;return typeof pt=="object"&&pt!==null?pt=ul(pt):(De=Vs(O)?$a:As.current,le=O.contextTypes,pt=(le=le!=null)?al(y,De):Gl),O=new O(Q,pt),y.memoizedState=O.state!==null&&O.state!==void 0?O.state:null,O.updater=Pu,y.stateNode=O,O._reactInternals=y,le&&(y=y.stateNode,y.__reactInternalMemoizedUnmaskedChildContext=De,y.__reactInternalMemoizedMaskedChildContext=pt),O}function ph(y,O,Q,le){y=O.state,typeof O.componentWillReceiveProps=="function"&&O.componentWillReceiveProps(Q,le),typeof O.UNSAFE_componentWillReceiveProps=="function"&&O.UNSAFE_componentWillReceiveProps(Q,le),O.state!==y&&Pu.enqueueReplaceState(O,O.state,null)}function Zd(y,O,Q,le){var De=y.stateNode;De.props=Q,De.state=y.memoizedState,De.refs=Pd,hd(y);var pt=O.contextType;typeof pt=="object"&&pt!==null?De.context=ul(pt):(pt=Vs(O)?$a:As.current,De.context=al(y,pt)),De.state=y.memoizedState,pt=O.getDerivedStateFromProps,typeof pt=="function"&&(fd(y,O,pt,Q),De.state=y.memoizedState),typeof O.getDerivedStateFromProps=="function"||typeof De.getSnapshotBeforeUpdate=="function"||typeof De.UNSAFE_componentWillMount!="function"&&typeof De.componentWillMount!="function"||(O=De.state,typeof De.componentWillMount=="function"&&De.componentWillMount(),typeof De.UNSAFE_componentWillMount=="function"&&De.UNSAFE_componentWillMount(),O!==De.state&&Pu.enqueueReplaceState(De,De.state,null),Wd(y,Q,De,le),De.state=y.memoizedState),typeof De.componentDidMount=="function"&&(y.flags|=4194308)}function Jc(y,O,Q){if(y=Q.ref,y!==null&&typeof y!="function"&&typeof y!="object"){if(Q._owner){if(Q=Q._owner,Q){if(Q.tag!==1)throw Error(s(309));var le=Q.stateNode}if(!le)throw Error(s(147,y));var De=le,pt=""+y;return O!==null&&O.ref!==null&&typeof O.ref=="function"&&O.ref._stringRef===pt?O.ref:(O=function(En){var yr=De.refs;yr===Pd&&(yr=De.refs={}),En===null?delete yr[pt]:yr[pt]=En},O._stringRef=pt,O)}if(typeof y!="string")throw Error(s(284));if(!Q._owner)throw Error(s(290,y))}return y}function Xl(y,O){throw y=Object.prototype.toString.call(O),Error(s(31,y==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":y))}function vc(y){var O=y._init;return O(y._payload)}function Du(y){function O(ni,zr){if(y){var ci=ni.deletions;ci===null?(ni.deletions=[zr],ni.flags|=16):ci.push(zr)}}function Q(ni,zr){if(!y)return null;for(;zr!==null;)O(ni,zr),zr=zr.sibling;return null}function le(ni,zr){for(ni=new Map;zr!==null;)zr.key!==null?ni.set(zr.key,zr):ni.set(zr.index,zr),zr=zr.sibling;return ni}function De(ni,zr){return ni=ih(ni,zr),ni.index=0,ni.sibling=null,ni}function pt(ni,zr,ci){return ni.index=ci,y?(ci=ni.alternate,ci!==null?(ci=ci.index,ci<zr?(ni.flags|=2,zr):ci):(ni.flags|=2,zr)):(ni.flags|=1048576,zr)}function En(ni){return y&&ni.alternate===null&&(ni.flags|=2),ni}function yr(ni,zr,ci,fo){return zr===null||zr.tag!==6?(zr=Fd(ci,ni.mode,fo),zr.return=ni,zr):(zr=De(zr,ci),zr.return=ni,zr)}function Ir(ni,zr,ci,fo){var Ho=ci.type;return Ho===A?Gi(ni,zr,ci.props.children,fo,ci.key):zr!==null&&(zr.elementType===Ho||typeof Ho=="object"&&Ho!==null&&Ho.$$typeof===X&&vc(Ho)===zr.type)?(fo=De(zr,ci.props),fo.ref=Jc(ni,zr,ci),fo.return=ni,fo):(fo=Ff(ci.type,ci.key,ci.props,null,ni.mode,fo),fo.ref=Jc(ni,zr,ci),fo.return=ni,fo)}function bi(ni,zr,ci,fo){return zr===null||zr.tag!==4||zr.stateNode.containerInfo!==ci.containerInfo||zr.stateNode.implementation!==ci.implementation?(zr=$d(ci,ni.mode,fo),zr.return=ni,zr):(zr=De(zr,ci.children||[]),zr.return=ni,zr)}function Gi(ni,zr,ci,fo,Ho){return zr===null||zr.tag!==7?(zr=Zh(ci,ni.mode,fo,Ho),zr.return=ni,zr):(zr=De(zr,ci),zr.return=ni,zr)}function to(ni,zr,ci){if(typeof zr=="string"&&zr!==""||typeof zr=="number")return zr=Fd(""+zr,ni.mode,ci),zr.return=ni,zr;if(typeof zr=="object"&&zr!==null){switch(zr.$$typeof){case b:return ci=Ff(zr.type,zr.key,zr.props,null,ni.mode,ci),ci.ref=Jc(ni,null,zr),ci.return=ni,ci;case E:return zr=$d(zr,ni.mode,ci),zr.return=ni,zr;case X:var fo=zr._init;return to(ni,fo(zr._payload),ci)}if(et(zr)||se(zr))return zr=Zh(zr,ni.mode,ci,null),zr.return=ni,zr;Xl(ni,zr)}return null}function Ki(ni,zr,ci,fo){var Ho=zr!==null?zr.key:null;if(typeof ci=="string"&&ci!==""||typeof ci=="number")return Ho!==null?null:yr(ni,zr,""+ci,fo);if(typeof ci=="object"&&ci!==null){switch(ci.$$typeof){case b:return ci.key===Ho?Ir(ni,zr,ci,fo):null;case E:return ci.key===Ho?bi(ni,zr,ci,fo):null;case X:return Ho=ci._init,Ki(ni,zr,Ho(ci._payload),fo)}if(et(ci)||se(ci))return Ho!==null?null:Gi(ni,zr,ci,fo,null);Xl(ni,ci)}return null}function Ao(ni,zr,ci,fo,Ho){if(typeof fo=="string"&&fo!==""||typeof fo=="number")return ni=ni.get(ci)||null,yr(zr,ni,""+fo,Ho);if(typeof fo=="object"&&fo!==null){switch(fo.$$typeof){case b:return ni=ni.get(fo.key===null?ci:fo.key)||null,Ir(zr,ni,fo,Ho);case E:return ni=ni.get(fo.key===null?ci:fo.key)||null,bi(zr,ni,fo,Ho);case X:var ss=fo._init;return Ao(ni,zr,ci,ss(fo._payload),Ho)}if(et(fo)||se(fo))return ni=ni.get(ci)||null,Gi(zr,ni,fo,Ho,null);Xl(zr,fo)}return null}function zo(ni,zr,ci,fo){for(var Ho=null,ss=null,ls=zr,Es=zr=0,yl=null;ls!==null&&Es<ci.length;Es++){ls.index>Es?(yl=ls,ls=null):yl=ls.sibling;var pa=Ki(ni,ls,ci[Es],fo);if(pa===null){ls===null&&(ls=yl);break}y&&ls&&pa.alternate===null&&O(ni,ls),zr=pt(pa,zr,Es),ss===null?Ho=pa:ss.sibling=pa,ss=pa,ls=yl}if(Es===ci.length)return Q(ni,ls),Yr&&nn(ni,Es),Ho;if(ls===null){for(;Es<ci.length;Es++)ls=to(ni,ci[Es],fo),ls!==null&&(zr=pt(ls,zr,Es),ss===null?Ho=ls:ss.sibling=ls,ss=ls);return Yr&&nn(ni,Es),Ho}for(ls=le(ni,ls);Es<ci.length;Es++)yl=Ao(ls,ni,Es,ci[Es],fo),yl!==null&&(y&&yl.alternate!==null&&ls.delete(yl.key===null?Es:yl.key),zr=pt(yl,zr,Es),ss===null?Ho=yl:ss.sibling=yl,ss=yl);return y&&ls.forEach(function(Nu){return O(ni,Nu)}),Yr&&nn(ni,Es),Ho}function Uo(ni,zr,ci,fo){var Ho=se(ci);if(typeof Ho!="function")throw Error(s(150));if(ci=Ho.call(ci),ci==null)throw Error(s(151));for(var ss=Ho=null,ls=zr,Es=zr=0,yl=null,pa=ci.next();ls!==null&&!pa.done;Es++,pa=ci.next()){ls.index>Es?(yl=ls,ls=null):yl=ls.sibling;var Nu=Ki(ni,ls,pa.value,fo);if(Nu===null){ls===null&&(ls=yl);break}y&&ls&&Nu.alternate===null&&O(ni,ls),zr=pt(Nu,zr,Es),ss===null?Ho=Nu:ss.sibling=Nu,ss=Nu,ls=yl}if(pa.done)return Q(ni,ls),Yr&&nn(ni,Es),Ho;if(ls===null){for(;!pa.done;Es++,pa=ci.next())pa=to(ni,pa.value,fo),pa!==null&&(zr=pt(pa,zr,Es),ss===null?Ho=pa:ss.sibling=pa,ss=pa);return Yr&&nn(ni,Es),Ho}for(ls=le(ni,ls);!pa.done;Es++,pa=ci.next())pa=Ao(ls,ni,Es,pa.value,fo),pa!==null&&(y&&pa.alternate!==null&&ls.delete(pa.key===null?Es:pa.key),zr=pt(pa,zr,Es),ss===null?Ho=pa:ss.sibling=pa,ss=pa);return y&&ls.forEach(function(Yh){return O(ni,Yh)}),Yr&&nn(ni,Es),Ho}function ml(ni,zr,ci,fo){if(typeof ci=="object"&&ci!==null&&ci.type===A&&ci.key===null&&(ci=ci.props.children),typeof ci=="object"&&ci!==null){switch(ci.$$typeof){case b:e:{for(var Ho=ci.key,ss=zr;ss!==null;){if(ss.key===Ho){if(Ho=ci.type,Ho===A){if(ss.tag===7){Q(ni,ss.sibling),zr=De(ss,ci.props.children),zr.return=ni,ni=zr;break e}}else if(ss.elementType===Ho||typeof Ho=="object"&&Ho!==null&&Ho.$$typeof===X&&vc(Ho)===ss.type){Q(ni,ss.sibling),zr=De(ss,ci.props),zr.ref=Jc(ni,ss,ci),zr.return=ni,ni=zr;break e}Q(ni,ss);break}else O(ni,ss);ss=ss.sibling}ci.type===A?(zr=Zh(ci.props.children,ni.mode,fo,ci.key),zr.return=ni,ni=zr):(fo=Ff(ci.type,ci.key,ci.props,null,ni.mode,fo),fo.ref=Jc(ni,zr,ci),fo.return=ni,ni=fo)}return En(ni);case E:e:{for(ss=ci.key;zr!==null;){if(zr.key===ss)if(zr.tag===4&&zr.stateNode.containerInfo===ci.containerInfo&&zr.stateNode.implementation===ci.implementation){Q(ni,zr.sibling),zr=De(zr,ci.children||[]),zr.return=ni,ni=zr;break e}else{Q(ni,zr);break}else O(ni,zr);zr=zr.sibling}zr=$d(ci,ni.mode,fo),zr.return=ni,ni=zr}return En(ni);case X:return ss=ci._init,ml(ni,zr,ss(ci._payload),fo)}if(et(ci))return zo(ni,zr,ci,fo);if(se(ci))return Uo(ni,zr,ci,fo);Xl(ni,ci)}return typeof ci=="string"&&ci!==""||typeof ci=="number"?(ci=""+ci,zr!==null&&zr.tag===6?(Q(ni,zr.sibling),zr=De(zr,ci),zr.return=ni,ni=zr):(Q(ni,zr),zr=Fd(ci,ni.mode,fo),zr.return=ni,ni=zr),En(ni)):Q(ni,zr)}return ml}var Hu=Du(!0),Kd=Du(!1),Iu={},ac=xs(Iu),Wu=xs(Iu),ca=xs(Iu);function bc(y){if(y===Iu)throw Error(s(174));return y}function Gd(y,O){switch(hs(ca,O),hs(Wu,y),hs(ac,Iu),y=O.nodeType,y){case 9:case 11:O=(O=O.documentElement)?O.namespaceURI:wt(null,"");break;default:y=y===8?O.parentNode:O,O=y.namespaceURI||null,y=y.tagName,O=wt(O,y)}cs(ac),hs(ac,O)}function du(){cs(ac),cs(Wu),cs(ca)}function Ru(y){bc(ca.current);var O=bc(ac.current),Q=wt(O,y.type);O!==Q&&(hs(Wu,y),hs(ac,Q))}function Sc(y){Wu.current===y&&(cs(ac),cs(Wu))}var Ta=xs(0);function hu(y){for(var O=y;O!==null;){if(O.tag===13){var Q=O.memoizedState;if(Q!==null&&(Q=Q.dehydrated,Q===null||Q.data==="$?"||Q.data==="$!"))return O}else if(O.tag===19&&O.memoizedProps.revealOrder!==void 0){if(O.flags&128)return O}else if(O.child!==null){O.child.return=O,O=O.child;continue}if(O===y)break;for(;O.sibling===null;){if(O.return===null||O.return===y)return null;O=O.return}O.sibling.return=O.return,O=O.sibling}return null}var pd=[];function md(){for(var y=0;y<pd.length;y++)pd[y]._workInProgressVersionPrimary=null;pd.length=0}var vs=u.ReactCurrentDispatcher,gd=u.ReactCurrentBatchConfig,yc=0,ma=null,oa=null,Wa=null,fu=!1,Tl=!1,pu=0,Xc=0;function dl(){throw Error(s(321))}function wc(y,O){if(O===null)return!1;for(var Q=0;Q<O.length&&Q<y.length;Q++)if(!Wr(y[Q],O[Q]))return!1;return!0}function W(y,O,Q,le,De,pt){if(yc=pt,ma=O,O.memoizedState=null,O.updateQueue=null,O.lanes=0,vs.current=y===null||y.memoizedState===null?Jd:Lh,y=Q(le,De),Tl){pt=0;do{if(Tl=!1,pu=0,25<=pt)throw Error(s(301));pt+=1,Wa=oa=null,O.updateQueue=null,vs.current=jh,y=Q(le,De)}while(Tl)}if(vs.current=gu,O=oa!==null&&oa.next!==null,yc=0,Wa=oa=ma=null,fu=!1,O)throw Error(s(300));return y}function o(){var y=pu!==0;return pu=0,y}function g(){var y={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Wa===null?ma.memoizedState=Wa=y:Wa=Wa.next=y,Wa}function P(){if(oa===null){var y=ma.alternate;y=y!==null?y.memoizedState:null}else y=oa.next;var O=Wa===null?ma.memoizedState:Wa.next;if(O!==null)Wa=O,oa=y;else{if(y===null)throw Error(s(310));oa=y,y={memoizedState:oa.memoizedState,baseState:oa.baseState,baseQueue:oa.baseQueue,queue:oa.queue,next:null},Wa===null?ma.memoizedState=Wa=y:Wa=Wa.next=y}return Wa}function K(y,O){return typeof O=="function"?O(y):O}function ie(y){var O=P(),Q=O.queue;if(Q===null)throw Error(s(311));Q.lastRenderedReducer=y;var le=oa,De=le.baseQueue,pt=Q.pending;if(pt!==null){if(De!==null){var En=De.next;De.next=pt.next,pt.next=En}le.baseQueue=De=pt,Q.pending=null}if(De!==null){pt=De.next,le=le.baseState;var yr=En=null,Ir=null,bi=pt;do{var Gi=bi.lane;if((yc&Gi)===Gi)Ir!==null&&(Ir=Ir.next={lane:0,action:bi.action,hasEagerState:bi.hasEagerState,eagerState:bi.eagerState,next:null}),le=bi.hasEagerState?bi.eagerState:y(le,bi.action);else{var to={lane:Gi,action:bi.action,hasEagerState:bi.hasEagerState,eagerState:bi.eagerState,next:null};Ir===null?(yr=Ir=to,En=le):Ir=Ir.next=to,ma.lanes|=Gi,_d|=Gi}bi=bi.next}while(bi!==null&&bi!==pt);Ir===null?En=le:Ir.next=yr,Wr(le,O.memoizedState)||(lc=!0),O.memoizedState=le,O.baseState=En,O.baseQueue=Ir,Q.lastRenderedState=le}if(y=Q.interleaved,y!==null){De=y;do pt=De.lane,ma.lanes|=pt,_d|=pt,De=De.next;while(De!==y)}else De===null&&(Q.lanes=0);return[O.memoizedState,Q.dispatch]}function xe(y){var O=P(),Q=O.queue;if(Q===null)throw Error(s(311));Q.lastRenderedReducer=y;var le=Q.dispatch,De=Q.pending,pt=O.memoizedState;if(De!==null){Q.pending=null;var En=De=De.next;do pt=y(pt,En.action),En=En.next;while(En!==De);Wr(pt,O.memoizedState)||(lc=!0),O.memoizedState=pt,O.baseQueue===null&&(O.baseState=pt),Q.lastRenderedState=pt}return[pt,le]}function jt(){}function tn(y,O){var Q=ma,le=P(),De=O(),pt=!Wr(le.memoizedState,De);if(pt&&(le.memoizedState=De,lc=!0),le=le.queue,qo(mr.bind(null,Q,le,y),[y]),le.getSnapshot!==O||pt||Wa!==null&&Wa.memoizedState.tag&1){if(Q.flags|=2048,Ji(9,Fn.bind(null,Q,le,De,O),void 0,null),Ml===null)throw Error(s(349));yc&30||xn(Q,O,De)}return De}function xn(y,O,Q){y.flags|=16384,y={getSnapshot:O,value:Q},O=ma.updateQueue,O===null?(O={lastEffect:null,stores:null},ma.updateQueue=O,O.stores=[y]):(Q=O.stores,Q===null?O.stores=[y]:Q.push(y))}function Fn(y,O,Q,le){O.value=Q,O.getSnapshot=le,Pr(O)&&ti(y)}function mr(y,O,Q){return Q(function(){Pr(O)&&ti(y)})}function Pr(y){var O=y.getSnapshot;y=y.value;try{var Q=O();return!Wr(y,Q)}catch{return!0}}function ti(y){var O=Qc(y,1);O!==null&&Bu(O,y,1,-1)}function Ci(y){var O=g();return typeof y=="function"&&(y=y()),O.memoizedState=O.baseState=y,y={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:K,lastRenderedState:y},O.queue=y,y=y.dispatch=ef.bind(null,ma,y),[O.memoizedState,y]}function Ji(y,O,Q,le){return y={tag:y,create:O,destroy:Q,deps:le,next:null},O=ma.updateQueue,O===null?(O={lastEffect:null,stores:null},ma.updateQueue=O,O.lastEffect=y.next=y):(Q=O.lastEffect,Q===null?O.lastEffect=y.next=y:(le=Q.next,Q.next=y,y.next=le,O.lastEffect=y)),y}function ho(){return P().memoizedState}function is(y,O,Q,le){var De=g();ma.flags|=y,De.memoizedState=Ji(1|O,Q,void 0,le===void 0?null:le)}function Fo(y,O,Q,le){var De=P();le=le===void 0?null:le;var pt=void 0;if(oa!==null){var En=oa.memoizedState;if(pt=En.destroy,le!==null&&wc(le,En.deps)){De.memoizedState=Ji(O,Q,pt,le);return}}ma.flags|=y,De.memoizedState=Ji(1|O,Q,pt,le)}function Ds(y,O){return is(8390656,8,y,O)}function qo(y,O){return Fo(2048,8,y,O)}function $c(y,O){return Fo(4,2,y,O)}function Za(y,O){return Fo(4,4,y,O)}function Yd(y,O){if(typeof O=="function")return y=y(),O(y),function(){O(null)};if(O!=null)return y=y(),O.current=y,function(){O.current=null}}function mu(y,O,Q){return Q=Q!=null?Q.concat([y]):null,Fo(4,4,Yd.bind(null,O,y),Q)}function sa(){}function vl(y,O){var Q=P();O=O===void 0?null:O;var le=Q.memoizedState;return le!==null&&O!==null&&wc(O,le[1])?le[0]:(Q.memoizedState=[y,O],y)}function Ih(y,O){var Q=P();O=O===void 0?null:O;var le=Q.memoizedState;return le!==null&&O!==null&&wc(O,le[1])?le[0]:(y=y(),Q.memoizedState=[y,O],y)}function mh(y,O,Q){return yc&21?(Wr(Q,O)||(Q=Qt(),ma.lanes|=Q,_d|=Q,y.baseState=!0),O):(y.baseState&&(y.baseState=!1,lc=!0),y.memoizedState=Q)}function Rh(y,O){var Q=fr;fr=Q!==0&&4>Q?Q:4,y(!0);var le=gd.transition;gd.transition={};try{y(!1),O()}finally{fr=Q,gd.transition=le}}function Lu(){return P().memoizedState}function Zu(y,O,Q){var le=_u(y);if(Q={lane:le,action:Q,hasEagerState:!1,eagerState:null,next:null},Qd(y))Ra(O,Q);else if(Q=Ad(y,O,Q,le),Q!==null){var De=Ec();Bu(Q,y,le,De),ql(Q,O,le)}}function ef(y,O,Q){var le=_u(y),De={lane:le,action:Q,hasEagerState:!1,eagerState:null,next:null};if(Qd(y))Ra(O,De);else{var pt=y.alternate;if(y.lanes===0&&(pt===null||pt.lanes===0)&&(pt=O.lastRenderedReducer,pt!==null))try{var En=O.lastRenderedState,yr=pt(En,Q);if(De.hasEagerState=!0,De.eagerState=yr,Wr(yr,En)){var Ir=O.interleaved;Ir===null?(De.next=De,gl(O)):(De.next=Ir.next,Ir.next=De),O.interleaved=De;return}}catch{}finally{}Q=Ad(y,O,De,le),Q!==null&&(De=Ec(),Bu(Q,y,le,De),ql(Q,O,le))}}function Qd(y){var O=y.alternate;return y===ma||O!==null&&O===ma}function Ra(y,O){Tl=fu=!0;var Q=y.pending;Q===null?O.next=O:(O.next=Q.next,Q.next=O),y.pending=O}function ql(y,O,Q){if(Q&4194240){var le=O.lanes;le&=y.pendingLanes,Q|=le,O.lanes=Q,br(y,Q)}}var gu={readContext:ul,useCallback:dl,useContext:dl,useEffect:dl,useImperativeHandle:dl,useInsertionEffect:dl,useLayoutEffect:dl,useMemo:dl,useReducer:dl,useRef:dl,useState:dl,useDebugValue:dl,useDeferredValue:dl,useTransition:dl,useMutableSource:dl,useSyncExternalStore:dl,useId:dl,unstable_isNewReconciler:!1},Jd={readContext:ul,useCallback:function(y,O){return g().memoizedState=[y,O===void 0?null:O],y},useContext:ul,useEffect:Ds,useImperativeHandle:function(y,O,Q){return Q=Q!=null?Q.concat([y]):null,is(4194308,4,Yd.bind(null,O,y),Q)},useLayoutEffect:function(y,O){return is(4194308,4,y,O)},useInsertionEffect:function(y,O){return is(4,2,y,O)},useMemo:function(y,O){var Q=g();return O=O===void 0?null:O,y=y(),Q.memoizedState=[y,O],y},useReducer:function(y,O,Q){var le=g();return O=Q!==void 0?Q(O):O,le.memoizedState=le.baseState=O,y={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:y,lastRenderedState:O},le.queue=y,y=y.dispatch=Zu.bind(null,ma,y),[le.memoizedState,y]},useRef:function(y){var O=g();return y={current:y},O.memoizedState=y},useState:Ci,useDebugValue:sa,useDeferredValue:function(y){return g().memoizedState=y},useTransition:function(){var y=Ci(!1),O=y[0];return y=Rh.bind(null,y[1]),g().memoizedState=y,[O,y]},useMutableSource:function(){},useSyncExternalStore:function(y,O,Q){var le=ma,De=g();if(Yr){if(Q===void 0)throw Error(s(407));Q=Q()}else{if(Q=O(),Ml===null)throw Error(s(349));yc&30||xn(le,O,Q)}De.memoizedState=Q;var pt={value:Q,getSnapshot:O};return De.queue=pt,Ds(mr.bind(null,le,pt,y),[y]),le.flags|=2048,Ji(9,Fn.bind(null,le,pt,Q,O),void 0,null),Q},useId:function(){var y=g(),O=Ml.identifierPrefix;if(Yr){var Q=st,le=Pt;Q=(le&~(1<<32-On(le)-1)).toString(32)+Q,O=":"+O+"R"+Q,Q=pu++,0<Q&&(O+="H"+Q.toString(32)),O+=":"}else Q=Xc++,O=":"+O+"r"+Q.toString(32)+":";return y.memoizedState=O},unstable_isNewReconciler:!1},Lh={readContext:ul,useCallback:vl,useContext:ul,useEffect:qo,useImperativeHandle:mu,useInsertionEffect:$c,useLayoutEffect:Za,useMemo:Ih,useReducer:ie,useRef:ho,useState:function(){return ie(K)},useDebugValue:sa,useDeferredValue:function(y){var O=P();return mh(O,oa.memoizedState,y)},useTransition:function(){var y=ie(K)[0],O=P().memoizedState;return[y,O]},useMutableSource:jt,useSyncExternalStore:tn,useId:Lu,unstable_isNewReconciler:!1},jh={readContext:ul,useCallback:vl,useContext:ul,useEffect:qo,useImperativeHandle:mu,useInsertionEffect:$c,useLayoutEffect:Za,useMemo:Ih,useReducer:xe,useRef:ho,useState:function(){return xe(K)},useDebugValue:sa,useDeferredValue:function(y){var O=P();return oa===null?O.memoizedState=y:mh(O,oa.memoizedState,y)},useTransition:function(){var y=xe(K)[0],O=P().memoizedState;return[y,O]},useMutableSource:jt,useSyncExternalStore:tn,useId:Lu,unstable_isNewReconciler:!1};function hl(y,O){try{var Q="",le=O;do Q+=Ce(le),le=le.return;while(le);var De=Q}catch(pt){De=`
Error generating stack: `+pt.message+`
`+pt.stack}return{value:y,source:O,stack:De,digest:null}}function za(y,O,Q){return{value:y,source:null,stack:Q??null,digest:O??null}}function vu(y,O){try{console.error(O.value)}catch(Q){setTimeout(function(){throw Q})}}var ju=typeof WeakMap=="function"?WeakMap:Map;function Xd(y,O,Q){Q=uu(-1,Q),Q.tag=3,Q.payload={element:null};var le=O.value;return Q.callback=function(){jo||(jo=!0,os=le),vu(y,O)},Q}function gh(y,O,Q){Q=uu(-1,Q),Q.tag=3;var le=y.type.getDerivedStateFromError;if(typeof le=="function"){var De=O.value;Q.payload=function(){return le(De)},Q.callback=function(){vu(y,O)}}var pt=y.stateNode;return pt!==null&&typeof pt.componentDidCatch=="function"&&(Q.callback=function(){vu(y,O),typeof le!="function"&&(ys===null?ys=new Set([this]):ys.add(this));var En=O.stack;this.componentDidCatch(O.value,{componentStack:En!==null?En:""})}),Q}function Dd(y,O,Q){var le=y.pingCache;if(le===null){le=y.pingCache=new ju;var De=new Set;le.set(O,De)}else De=le.get(O),De===void 0&&(De=new Set,le.set(O,De));De.has(Q)||(De.add(Q),y=Pp.bind(null,y,O,Q),O.then(y,y))}function Id(y){do{var O;if((O=y.tag===13)&&(O=y.memoizedState,O=O!==null?O.dehydrated!==null:!0),O)return y;y=y.return}while(y!==null);return null}function Bh(y,O,Q,le,De){return y.mode&1?(y.flags|=65536,y.lanes=De,y):(y===O?y.flags|=65536:(y.flags|=128,Q.flags|=131072,Q.flags&=-52805,Q.tag===1&&(Q.alternate===null?Q.tag=17:(O=uu(-1,1),O.tag=2,sc(Q,O,1))),Q.lanes|=1),y)}var yo=u.ReactCurrentOwner,lc=!1;function Sl(y,O,Q,le){O.child=y===null?Kd(O,null,Q,le):Hu(O,y.child,Q,le)}function Vc(y,O,Q,le,De){Q=Q.render;var pt=O.ref;return oc(O,De),le=W(y,O,Q,le,pt,De),Q=o(),y!==null&&!lc?(O.updateQueue=y.updateQueue,O.flags&=-2053,y.lanes&=~De,Ua(y,O,De)):(Yr&&Q&&or(O),O.flags|=1,Sl(y,O,le,De),O.child)}function vh(y,O,Q,le,De){if(y===null){var pt=Q.type;return typeof pt=="function"&&!Wh(pt)&&pt.defaultProps===void 0&&Q.compare===null&&Q.defaultProps===void 0?(O.tag=15,O.type=pt,tf(y,O,pt,le,De)):(y=Ff(Q.type,null,le,O,O.mode,De),y.ref=O.ref,y.return=O,O.child=y)}if(pt=y.child,!(y.lanes&De)){var En=pt.memoizedProps;if(Q=Q.compare,Q=Q!==null?Q:Lt,Q(En,le)&&y.ref===O.ref)return Ua(y,O,De)}return O.flags|=1,y=ih(pt,le),y.ref=O.ref,y.return=O,O.child=y}function tf(y,O,Q,le,De){if(y!==null){var pt=y.memoizedProps;if(Lt(pt,le)&&y.ref===O.ref)if(lc=!1,O.pendingProps=le=pt,(y.lanes&De)!==0)y.flags&131072&&(lc=!0);else return O.lanes=y.lanes,Ua(y,O,De)}return Nh(y,O,Q,le,De)}function zc(y,O,Q){var le=O.pendingProps,De=le.children,pt=y!==null?y.memoizedState:null;if(le.mode==="hidden")if(!(O.mode&1))O.memoizedState={baseLanes:0,cachePool:null,transitions:null},hs(Ju,Ac),Ac|=Q;else{if(!(Q&1073741824))return y=pt!==null?pt.baseLanes|Q:Q,O.lanes=O.childLanes=1073741824,O.memoizedState={baseLanes:y,cachePool:null,transitions:null},O.updateQueue=null,hs(Ju,Ac),Ac|=y,null;O.memoizedState={baseLanes:0,cachePool:null,transitions:null},le=pt!==null?pt.baseLanes:Q,hs(Ju,Ac),Ac|=le}else pt!==null?(le=pt.baseLanes|Q,O.memoizedState=null):le=Q,hs(Ju,Ac),Ac|=le;return Sl(y,O,De,Q),O.child}function Rd(y,O){var Q=O.ref;(y===null&&Q!==null||y!==null&&y.ref!==Q)&&(O.flags|=512,O.flags|=2097152)}function Nh(y,O,Q,le,De){var pt=Vs(Q)?$a:As.current;return pt=al(O,pt),oc(O,De),Q=W(y,O,Q,le,pt,De),le=o(),y!==null&&!lc?(O.updateQueue=y.updateQueue,O.flags&=-2053,y.lanes&=~De,Ua(y,O,De)):(Yr&&le&&or(O),O.flags|=1,Sl(y,O,Q,De),O.child)}function Ld(y,O,Q,le,De){if(Vs(Q)){var pt=!0;la(O)}else pt=!1;if(oc(O,De),O.stateNode===null)rf(y,O),Dh(O,Q,le),Zd(O,Q,le,De),le=!0;else if(y===null){var En=O.stateNode,yr=O.memoizedProps;En.props=yr;var Ir=En.context,bi=Q.contextType;typeof bi=="object"&&bi!==null?bi=ul(bi):(bi=Vs(Q)?$a:As.current,bi=al(O,bi));var Gi=Q.getDerivedStateFromProps,to=typeof Gi=="function"||typeof En.getSnapshotBeforeUpdate=="function";to||typeof En.UNSAFE_componentWillReceiveProps!="function"&&typeof En.componentWillReceiveProps!="function"||(yr!==le||Ir!==bi)&&ph(O,En,le,bi),cu=!1;var Ki=O.memoizedState;En.state=Ki,Wd(O,le,En,De),Ir=O.memoizedState,yr!==le||Ki!==Ir||fs.current||cu?(typeof Gi=="function"&&(fd(O,Q,Gi,le),Ir=O.memoizedState),(yr=cu||fh(O,Q,yr,le,Ki,Ir,bi))?(to||typeof En.UNSAFE_componentWillMount!="function"&&typeof En.componentWillMount!="function"||(typeof En.componentWillMount=="function"&&En.componentWillMount(),typeof En.UNSAFE_componentWillMount=="function"&&En.UNSAFE_componentWillMount()),typeof En.componentDidMount=="function"&&(O.flags|=4194308)):(typeof En.componentDidMount=="function"&&(O.flags|=4194308),O.memoizedProps=le,O.memoizedState=Ir),En.props=le,En.state=Ir,En.context=bi,le=yr):(typeof En.componentDidMount=="function"&&(O.flags|=4194308),le=!1)}else{En=O.stateNode,Uu(y,O),yr=O.memoizedProps,bi=O.type===O.elementType?yr:cl(O.type,yr),En.props=bi,to=O.pendingProps,Ki=En.context,Ir=Q.contextType,typeof Ir=="object"&&Ir!==null?Ir=ul(Ir):(Ir=Vs(Q)?$a:As.current,Ir=al(O,Ir));var Ao=Q.getDerivedStateFromProps;(Gi=typeof Ao=="function"||typeof En.getSnapshotBeforeUpdate=="function")||typeof En.UNSAFE_componentWillReceiveProps!="function"&&typeof En.componentWillReceiveProps!="function"||(yr!==to||Ki!==Ir)&&ph(O,En,le,Ir),cu=!1,Ki=O.memoizedState,En.state=Ki,Wd(O,le,En,De);var zo=O.memoizedState;yr!==to||Ki!==zo||fs.current||cu?(typeof Ao=="function"&&(fd(O,Q,Ao,le),zo=O.memoizedState),(bi=cu||fh(O,Q,bi,le,Ki,zo,Ir)||!1)?(Gi||typeof En.UNSAFE_componentWillUpdate!="function"&&typeof En.componentWillUpdate!="function"||(typeof En.componentWillUpdate=="function"&&En.componentWillUpdate(le,zo,Ir),typeof En.UNSAFE_componentWillUpdate=="function"&&En.UNSAFE_componentWillUpdate(le,zo,Ir)),typeof En.componentDidUpdate=="function"&&(O.flags|=4),typeof En.getSnapshotBeforeUpdate=="function"&&(O.flags|=1024)):(typeof En.componentDidUpdate!="function"||yr===y.memoizedProps&&Ki===y.memoizedState||(O.flags|=4),typeof En.getSnapshotBeforeUpdate!="function"||yr===y.memoizedProps&&Ki===y.memoizedState||(O.flags|=1024),O.memoizedProps=le,O.memoizedState=zo),En.props=le,En.state=zo,En.context=Ir,le=bi):(typeof En.componentDidUpdate!="function"||yr===y.memoizedProps&&Ki===y.memoizedState||(O.flags|=4),typeof En.getSnapshotBeforeUpdate!="function"||yr===y.memoizedProps&&Ki===y.memoizedState||(O.flags|=1024),le=!1)}return cc(y,O,Q,le,pt,De)}function cc(y,O,Q,le,De,pt){Rd(y,O);var En=(O.flags&128)!==0;if(!le&&!En)return De&&rs(O,Q,!1),Ua(y,O,pt);le=O.stateNode,yo.current=O;var yr=En&&typeof Q.getDerivedStateFromError!="function"?null:le.render();return O.flags|=1,y!==null&&En?(O.child=Hu(O,y.child,null,pt),O.child=Hu(O,null,yr,pt)):Sl(y,O,yr,pt),O.memoizedState=le.state,De&&rs(O,Q,!0),O.child}function bh(y){var O=y.stateNode;O.pendingContext?ka(y,O.pendingContext,O.pendingContext!==O.context):O.context&&ka(y,O.context,!1),Gd(y,O.containerInfo)}function Fh(y,O,Q,le,De){return ps(),ba(De),O.flags|=256,Sl(y,O,Q,le),O.child}var qc={dehydrated:null,treeContext:null,retryLane:0};function vd(y){return{baseLanes:y,cachePool:null,transitions:null}}function bd(y,O,Q){var le=O.pendingProps,De=Ta.current,pt=!1,En=(O.flags&128)!==0,yr;if((yr=En)||(yr=y!==null&&y.memoizedState===null?!1:(De&2)!==0),yr?(pt=!0,O.flags&=-129):(y===null||y.memoizedState!==null)&&(De|=1),hs(Ta,De&1),y===null)return no(O),y=O.memoizedState,y!==null&&(y=y.dehydrated,y!==null)?(O.mode&1?y.data==="$!"?O.lanes=8:O.lanes=1073741824:O.lanes=1,null):(En=le.children,y=le.fallback,pt?(le=O.mode,pt=O.child,En={mode:"hidden",children:En},!(le&1)&&pt!==null?(pt.childLanes=0,pt.pendingProps=En):pt=Kh(En,le,0,null),y=Zh(y,le,Q,null),pt.return=O,y.return=O,pt.sibling=y,O.child=pt,O.child.memoizedState=vd(Q),O.memoizedState=qc,y):Zo(O,En));if(De=y.memoizedState,De!==null&&(yr=De.dehydrated,yr!==null))return qd(y,O,En,le,yr,De,Q);if(pt){pt=le.fallback,En=O.mode,De=y.child,yr=De.sibling;var Ir={mode:"hidden",children:le.children};return!(En&1)&&O.child!==De?(le=O.child,le.childLanes=0,le.pendingProps=Ir,O.deletions=null):(le=ih(De,Ir),le.subtreeFlags=De.subtreeFlags&14680064),yr!==null?pt=ih(yr,pt):(pt=Zh(pt,En,Q,null),pt.flags|=2),pt.return=O,le.return=O,le.sibling=pt,O.child=le,le=pt,pt=O.child,En=y.child.memoizedState,En=En===null?vd(Q):{baseLanes:En.baseLanes|Q,cachePool:null,transitions:En.transitions},pt.memoizedState=En,pt.childLanes=y.childLanes&~Q,O.memoizedState=qc,le}return pt=y.child,y=pt.sibling,le=ih(pt,{mode:"visible",children:le.children}),!(O.mode&1)&&(le.lanes=Q),le.return=O,le.sibling=null,y!==null&&(Q=O.deletions,Q===null?(O.deletions=[y],O.flags|=16):Q.push(y)),O.child=le,O.memoizedState=null,le}function Zo(y,O){return O=Kh({mode:"visible",children:O},y.mode,0,null),O.return=y,y.child=O}function bu(y,O,Q,le){return le!==null&&ba(le),Hu(O,y.child,null,Q),y=Zo(O,O.pendingProps.children),y.flags|=2,O.memoizedState=null,y}function qd(y,O,Q,le,De,pt,En){if(Q)return O.flags&256?(O.flags&=-257,le=za(Error(s(422))),bu(y,O,En,le)):O.memoizedState!==null?(O.child=y.child,O.flags|=128,null):(pt=le.fallback,De=O.mode,le=Kh({mode:"visible",children:le.children},De,0,null),pt=Zh(pt,De,En,null),pt.flags|=2,le.return=O,pt.return=O,le.sibling=pt,O.child=le,O.mode&1&&Hu(O,y.child,null,En),O.child.memoizedState=vd(En),O.memoizedState=qc,pt);if(!(O.mode&1))return bu(y,O,En,null);if(De.data==="$!"){if(le=De.nextSibling&&De.nextSibling.dataset,le)var yr=le.dgst;return le=yr,pt=Error(s(419)),le=za(pt,le,void 0),bu(y,O,En,le)}if(yr=(En&y.childLanes)!==0,lc||yr){if(le=Ml,le!==null){switch(En&-En){case 4:De=2;break;case 16:De=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:De=32;break;case 536870912:De=268435456;break;default:De=0}De=De&(le.suspendedLanes|En)?0:De,De!==0&&De!==pt.retryLane&&(pt.retryLane=De,Qc(y,De),Bu(le,y,De,-1))}return Eh(),le=za(Error(s(421))),bu(y,O,En,le)}return De.data==="$?"?(O.flags|=128,O.child=y.child,O=Dp.bind(null,y),De._reactRetry=O,null):(y=pt.treeContext,Br=Lc(De.nextSibling),jr=O,Yr=!0,Oi=null,y!==null&&(Ps[Yl++]=Pt,Ps[Yl++]=st,Ps[Yl++]=Ql,Pt=y.id,st=y.overflow,Ql=O),O=Zo(O,le.children),O.flags|=4096,O)}function Ku(y,O,Q){y.lanes|=O;var le=y.alternate;le!==null&&(le.lanes|=O),Ou(y.return,O,Q)}function nf(y,O,Q,le,De){var pt=y.memoizedState;pt===null?y.memoizedState={isBackwards:O,rendering:null,renderingStartTime:0,last:le,tail:Q,tailMode:De}:(pt.isBackwards=O,pt.rendering=null,pt.renderingStartTime=0,pt.last=le,pt.tail=Q,pt.tailMode=De)}function pf(y,O,Q){var le=O.pendingProps,De=le.revealOrder,pt=le.tail;if(Sl(y,O,le.children,Q),le=Ta.current,le&2)le=le&1|2,O.flags|=128;else{if(y!==null&&y.flags&128)e:for(y=O.child;y!==null;){if(y.tag===13)y.memoizedState!==null&&Ku(y,Q,O);else if(y.tag===19)Ku(y,Q,O);else if(y.child!==null){y.child.return=y,y=y.child;continue}if(y===O)break e;for(;y.sibling===null;){if(y.return===null||y.return===O)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}le&=1}if(hs(Ta,le),!(O.mode&1))O.memoizedState=null;else switch(De){case"forwards":for(Q=O.child,De=null;Q!==null;)y=Q.alternate,y!==null&&hu(y)===null&&(De=Q),Q=Q.sibling;Q=De,Q===null?(De=O.child,O.child=null):(De=Q.sibling,Q.sibling=null),nf(O,!1,De,Q,pt);break;case"backwards":for(Q=null,De=O.child,O.child=null;De!==null;){if(y=De.alternate,y!==null&&hu(y)===null){O.child=De;break}y=De.sibling,De.sibling=Q,Q=De,De=y}nf(O,!0,Q,null,pt);break;case"together":nf(O,!1,null,null,void 0);break;default:O.memoizedState=null}return O.child}function rf(y,O){!(O.mode&1)&&y!==null&&(y.alternate=null,O.alternate=null,O.flags|=2)}function Ua(y,O,Q){if(y!==null&&(O.dependencies=y.dependencies),_d|=O.lanes,!(Q&O.childLanes))return null;if(y!==null&&O.child!==y.child)throw Error(s(153));if(O.child!==null){for(y=O.child,Q=ih(y,y.pendingProps),O.child=Q,Q.return=O;y.sibling!==null;)y=y.sibling,Q=Q.sibling=ih(y,y.pendingProps),Q.return=O;Q.sibling=null}return O.child}function xt(y,O,Q){switch(O.tag){case 3:bh(O),ps();break;case 5:Ru(O);break;case 1:Vs(O.type)&&la(O);break;case 4:Gd(O,O.stateNode.containerInfo);break;case 10:var le=O.type._context,De=O.memoizedProps.value;hs(Kc,le._currentValue),le._currentValue=De;break;case 13:if(le=O.memoizedState,le!==null)return le.dehydrated!==null?(hs(Ta,Ta.current&1),O.flags|=128,null):Q&O.child.childLanes?bd(y,O,Q):(hs(Ta,Ta.current&1),y=Ua(y,O,Q),y!==null?y.sibling:null);hs(Ta,Ta.current&1);break;case 19:if(le=(Q&O.childLanes)!==0,y.flags&128){if(le)return pf(y,O,Q);O.flags|=128}if(De=O.memoizedState,De!==null&&(De.rendering=null,De.tail=null,De.lastEffect=null),hs(Ta,Ta.current),le)break;return null;case 22:case 23:return O.lanes=0,zc(y,O,Q)}return Ua(y,O,Q)}var Dn,er,Ar,Rr;Dn=function(y,O){for(var Q=O.child;Q!==null;){if(Q.tag===5||Q.tag===6)y.appendChild(Q.stateNode);else if(Q.tag!==4&&Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===O)break;for(;Q.sibling===null;){if(Q.return===null||Q.return===O)return;Q=Q.return}Q.sibling.return=Q.return,Q=Q.sibling}},er=function(){},Ar=function(y,O,Q,le){var De=y.memoizedProps;if(De!==le){y=O.stateNode,bc(ac.current);var pt=null;switch(Q){case"input":De=It(y,De),le=It(y,le),pt=[];break;case"select":De=be({},De,{value:void 0}),le=be({},le,{value:void 0}),pt=[];break;case"textarea":De=kn(y,De),le=kn(y,le),pt=[];break;default:typeof De.onClick!="function"&&typeof le.onClick=="function"&&(y.onclick=fc)}Xe(Q,le);var En;Q=null;for(bi in De)if(!le.hasOwnProperty(bi)&&De.hasOwnProperty(bi)&&De[bi]!=null)if(bi==="style"){var yr=De[bi];for(En in yr)yr.hasOwnProperty(En)&&(Q||(Q={}),Q[En]="")}else bi!=="dangerouslySetInnerHTML"&&bi!=="children"&&bi!=="suppressContentEditableWarning"&&bi!=="suppressHydrationWarning"&&bi!=="autoFocus"&&(c.hasOwnProperty(bi)?pt||(pt=[]):(pt=pt||[]).push(bi,null));for(bi in le){var Ir=le[bi];if(yr=De?.[bi],le.hasOwnProperty(bi)&&Ir!==yr&&(Ir!=null||yr!=null))if(bi==="style")if(yr){for(En in yr)!yr.hasOwnProperty(En)||Ir&&Ir.hasOwnProperty(En)||(Q||(Q={}),Q[En]="");for(En in Ir)Ir.hasOwnProperty(En)&&yr[En]!==Ir[En]&&(Q||(Q={}),Q[En]=Ir[En])}else Q||(pt||(pt=[]),pt.push(bi,Q)),Q=Ir;else bi==="dangerouslySetInnerHTML"?(Ir=Ir?Ir.__html:void 0,yr=yr?yr.__html:void 0,Ir!=null&&yr!==Ir&&(pt=pt||[]).push(bi,Ir)):bi==="children"?typeof Ir!="string"&&typeof Ir!="number"||(pt=pt||[]).push(bi,""+Ir):bi!=="suppressContentEditableWarning"&&bi!=="suppressHydrationWarning"&&(c.hasOwnProperty(bi)?(Ir!=null&&bi==="onScroll"&&Ss("scroll",y),pt||yr===Ir||(pt=[])):(pt=pt||[]).push(bi,Ir))}Q&&(pt=pt||[]).push("style",Q);var bi=pt;(O.updateQueue=bi)&&(O.flags|=4)}},Rr=function(y,O,Q,le){Q!==le&&(O.flags|=4)};function hi(y,O){if(!Yr)switch(y.tailMode){case"hidden":O=y.tail;for(var Q=null;O!==null;)O.alternate!==null&&(Q=O),O=O.sibling;Q===null?y.tail=null:Q.sibling=null;break;case"collapsed":Q=y.tail;for(var le=null;Q!==null;)Q.alternate!==null&&(le=Q),Q=Q.sibling;le===null?O||y.tail===null?y.tail=null:y.tail.sibling=null:le.sibling=null}}function Ti(y){var O=y.alternate!==null&&y.alternate.child===y.child,Q=0,le=0;if(O)for(var De=y.child;De!==null;)Q|=De.lanes|De.childLanes,le|=De.subtreeFlags&14680064,le|=De.flags&14680064,De.return=y,De=De.sibling;else for(De=y.child;De!==null;)Q|=De.lanes|De.childLanes,le|=De.subtreeFlags,le|=De.flags,De.return=y,De=De.sibling;return y.subtreeFlags|=le,y.childLanes=Q,O}function ao(y,O,Q){var le=O.pendingProps;switch(lr(O),O.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ti(O),null;case 1:return Vs(O.type)&&Hs(),Ti(O),null;case 3:return le=O.stateNode,du(),cs(fs),cs(As),md(),le.pendingContext&&(le.context=le.pendingContext,le.pendingContext=null),(y===null||y.child===null)&&(Qo(O)?O.flags|=4:y===null||y.memoizedState.isDehydrated&&!(O.flags&256)||(O.flags|=1024,Oi!==null&&(gf(Oi),Oi=null))),er(y,O),Ti(O),null;case 5:Sc(O);var De=bc(ca.current);if(Q=O.type,y!==null&&O.stateNode!=null)Ar(y,O,Q,le,De),y.ref!==O.ref&&(O.flags|=512,O.flags|=2097152);else{if(!le){if(O.stateNode===null)throw Error(s(166));return Ti(O),null}if(y=bc(ac.current),Qo(O)){le=O.stateNode,Q=O.type;var pt=O.memoizedProps;switch(le[ol]=O,le[gc]=pt,y=(O.mode&1)!==0,Q){case"dialog":Ss("cancel",le),Ss("close",le);break;case"iframe":case"object":case"embed":Ss("load",le);break;case"video":case"audio":for(De=0;De<Eo.length;De++)Ss(Eo[De],le);break;case"source":Ss("error",le);break;case"img":case"image":case"link":Ss("error",le),Ss("load",le);break;case"details":Ss("toggle",le);break;case"input":mn(le,pt),Ss("invalid",le);break;case"select":le._wrapperState={wasMultiple:!!pt.multiple},Ss("invalid",le);break;case"textarea":Tn(le,pt),Ss("invalid",le)}Xe(Q,pt),De=null;for(var En in pt)if(pt.hasOwnProperty(En)){var yr=pt[En];En==="children"?typeof yr=="string"?le.textContent!==yr&&(pt.suppressHydrationWarning!==!0&&ko(le.textContent,yr,y),De=["children",yr]):typeof yr=="number"&&le.textContent!==""+yr&&(pt.suppressHydrationWarning!==!0&&ko(le.textContent,yr,y),De=["children",""+yr]):c.hasOwnProperty(En)&&yr!=null&&En==="onScroll"&&Ss("scroll",le)}switch(Q){case"input":$e(le),je(le,pt,!0);break;case"textarea":$e(le),ot(le);break;case"select":case"option":break;default:typeof pt.onClick=="function"&&(le.onclick=fc)}le=De,O.updateQueue=le,le!==null&&(O.flags|=4)}else{En=De.nodeType===9?De:De.ownerDocument,y==="http://www.w3.org/1999/xhtml"&&(y=Je(Q)),y==="http://www.w3.org/1999/xhtml"?Q==="script"?(y=En.createElement("div"),y.innerHTML="<script><\/script>",y=y.removeChild(y.firstChild)):typeof le.is=="string"?y=En.createElement(Q,{is:le.is}):(y=En.createElement(Q),Q==="select"&&(En=y,le.multiple?En.multiple=!0:le.size&&(En.size=le.size))):y=En.createElementNS(y,Q),y[ol]=O,y[gc]=le,Dn(y,O,!1,!1),O.stateNode=y;e:{switch(En=Ze(Q,le),Q){case"dialog":Ss("cancel",y),Ss("close",y),De=le;break;case"iframe":case"object":case"embed":Ss("load",y),De=le;break;case"video":case"audio":for(De=0;De<Eo.length;De++)Ss(Eo[De],y);De=le;break;case"source":Ss("error",y),De=le;break;case"img":case"image":case"link":Ss("error",y),Ss("load",y),De=le;break;case"details":Ss("toggle",y),De=le;break;case"input":mn(y,le),De=It(y,le),Ss("invalid",y);break;case"option":De=le;break;case"select":y._wrapperState={wasMultiple:!!le.multiple},De=be({},le,{value:void 0}),Ss("invalid",y);break;case"textarea":Tn(y,le),De=kn(y,le),Ss("invalid",y);break;default:De=le}Xe(Q,De),yr=De;for(pt in yr)if(yr.hasOwnProperty(pt)){var Ir=yr[pt];pt==="style"?ge(y,Ir):pt==="dangerouslySetInnerHTML"?(Ir=Ir?Ir.__html:void 0,Ir!=null&&vn(y,Ir)):pt==="children"?typeof Ir=="string"?(Q!=="textarea"||Ir!=="")&&ut(y,Ir):typeof Ir=="number"&&ut(y,""+Ir):pt!=="suppressContentEditableWarning"&&pt!=="suppressHydrationWarning"&&pt!=="autoFocus"&&(c.hasOwnProperty(pt)?Ir!=null&&pt==="onScroll"&&Ss("scroll",y):Ir!=null&&T(y,pt,Ir,En))}switch(Q){case"input":$e(y),je(y,le,!1);break;case"textarea":$e(y),ot(y);break;case"option":le.value!=null&&y.setAttribute("value",""+mt(le.value));break;case"select":y.multiple=!!le.multiple,pt=le.value,pt!=null?Kt(y,!!le.multiple,pt,!1):le.defaultValue!=null&&Kt(y,!!le.multiple,le.defaultValue,!0);break;default:typeof De.onClick=="function"&&(y.onclick=fc)}switch(Q){case"button":case"input":case"select":case"textarea":le=!!le.autoFocus;break e;case"img":le=!0;break e;default:le=!1}}le&&(O.flags|=4)}O.ref!==null&&(O.flags|=512,O.flags|=2097152)}return Ti(O),null;case 6:if(y&&O.stateNode!=null)Rr(y,O,y.memoizedProps,le);else{if(typeof le!="string"&&O.stateNode===null)throw Error(s(166));if(Q=bc(ca.current),bc(ac.current),Qo(O)){if(le=O.stateNode,Q=O.memoizedProps,le[ol]=O,(pt=le.nodeValue!==Q)&&(y=jr,y!==null))switch(y.tag){case 3:ko(le.nodeValue,Q,(y.mode&1)!==0);break;case 5:y.memoizedProps.suppressHydrationWarning!==!0&&ko(le.nodeValue,Q,(y.mode&1)!==0)}pt&&(O.flags|=4)}else le=(Q.nodeType===9?Q:Q.ownerDocument).createTextNode(le),le[ol]=O,O.stateNode=le}return Ti(O),null;case 13:if(cs(Ta),le=O.memoizedState,y===null||y.memoizedState!==null&&y.memoizedState.dehydrated!==null){if(Yr&&Br!==null&&O.mode&1&&!(O.flags&128))No(),ps(),O.flags|=98560,pt=!1;else if(pt=Qo(O),le!==null&&le.dehydrated!==null){if(y===null){if(!pt)throw Error(s(318));if(pt=O.memoizedState,pt=pt!==null?pt.dehydrated:null,!pt)throw Error(s(317));pt[ol]=O}else ps(),!(O.flags&128)&&(O.memoizedState=null),O.flags|=4;Ti(O),pt=!1}else Oi!==null&&(gf(Oi),Oi=null),pt=!0;if(!pt)return O.flags&65536?O:null}return O.flags&128?(O.lanes=Q,O):(le=le!==null,le!==(y!==null&&y.memoizedState!==null)&&le&&(O.child.flags|=8192,O.mode&1&&(y===null||Ta.current&1?pl===0&&(pl=3):Eh())),O.updateQueue!==null&&(O.flags|=4),Ti(O),null);case 4:return du(),er(y,O),y===null&&Ll(O.stateNode.containerInfo),Ti(O),null;case 10:return $l(O.type._context),Ti(O),null;case 17:return Vs(O.type)&&Hs(),Ti(O),null;case 19:if(cs(Ta),pt=O.memoizedState,pt===null)return Ti(O),null;if(le=(O.flags&128)!==0,En=pt.rendering,En===null)if(le)hi(pt,!1);else{if(pl!==0||y!==null&&y.flags&128)for(y=O.child;y!==null;){if(En=hu(y),En!==null){for(O.flags|=128,hi(pt,!1),le=En.updateQueue,le!==null&&(O.updateQueue=le,O.flags|=4),O.subtreeFlags=0,le=Q,Q=O.child;Q!==null;)pt=Q,y=le,pt.flags&=14680066,En=pt.alternate,En===null?(pt.childLanes=0,pt.lanes=y,pt.child=null,pt.subtreeFlags=0,pt.memoizedProps=null,pt.memoizedState=null,pt.updateQueue=null,pt.dependencies=null,pt.stateNode=null):(pt.childLanes=En.childLanes,pt.lanes=En.lanes,pt.child=En.child,pt.subtreeFlags=0,pt.deletions=null,pt.memoizedProps=En.memoizedProps,pt.memoizedState=En.memoizedState,pt.updateQueue=En.updateQueue,pt.type=En.type,y=En.dependencies,pt.dependencies=y===null?null:{lanes:y.lanes,firstContext:y.firstContext}),Q=Q.sibling;return hs(Ta,Ta.current&1|2),O.child}y=y.sibling}pt.tail!==null&&it()>vi&&(O.flags|=128,le=!0,hi(pt,!1),O.lanes=4194304)}else{if(!le)if(y=hu(En),y!==null){if(O.flags|=128,le=!0,Q=y.updateQueue,Q!==null&&(O.updateQueue=Q,O.flags|=4),hi(pt,!0),pt.tail===null&&pt.tailMode==="hidden"&&!En.alternate&&!Yr)return Ti(O),null}else 2*it()-pt.renderingStartTime>vi&&Q!==1073741824&&(O.flags|=128,le=!0,hi(pt,!1),O.lanes=4194304);pt.isBackwards?(En.sibling=O.child,O.child=En):(Q=pt.last,Q!==null?Q.sibling=En:O.child=En,pt.last=En)}return pt.tail!==null?(O=pt.tail,pt.rendering=O,pt.tail=O.sibling,pt.renderingStartTime=it(),O.sibling=null,Q=Ta.current,hs(Ta,le?Q&1|2:Q&1),O):(Ti(O),null);case 22:case 23:return vf(),le=O.memoizedState!==null,y!==null&&y.memoizedState!==null!==le&&(O.flags|=8192),le&&O.mode&1?Ac&1073741824&&(Ti(O),O.subtreeFlags&6&&(O.flags|=8192)):Ti(O),null;case 24:return null;case 25:return null}throw Error(s(156,O.tag))}function $o(y,O){switch(lr(O),O.tag){case 1:return Vs(O.type)&&Hs(),y=O.flags,y&65536?(O.flags=y&-65537|128,O):null;case 3:return du(),cs(fs),cs(As),md(),y=O.flags,y&65536&&!(y&128)?(O.flags=y&-65537|128,O):null;case 5:return Sc(O),null;case 13:if(cs(Ta),y=O.memoizedState,y!==null&&y.dehydrated!==null){if(O.alternate===null)throw Error(s(340));ps()}return y=O.flags,y&65536?(O.flags=y&-65537|128,O):null;case 19:return cs(Ta),null;case 4:return du(),null;case 10:return $l(O.type._context),null;case 22:case 23:return vf(),null;case 24:return null;default:return null}}var wo=!1,Js=!1,Bs=typeof WeakSet=="function"?WeakSet:Set,mi=null;function Sa(y,O){var Q=y.ref;if(Q!==null)if(typeof Q=="function")try{Q(null)}catch(le){bl(y,O,le)}else Q.current=null}function uc(y,O,Q){try{Q()}catch(le){bl(y,O,le)}}var Xa=!1;function qa(y,O){if(pc=Jr,y=He(),At(y)){if("selectionStart"in y)var Q={start:y.selectionStart,end:y.selectionEnd};else e:{Q=(Q=y.ownerDocument)&&Q.defaultView||window;var le=Q.getSelection&&Q.getSelection();if(le&&le.rangeCount!==0){Q=le.anchorNode;var De=le.anchorOffset,pt=le.focusNode;le=le.focusOffset;try{Q.nodeType,pt.nodeType}catch{Q=null;break e}var En=0,yr=-1,Ir=-1,bi=0,Gi=0,to=y,Ki=null;t:for(;;){for(var Ao;to!==Q||De!==0&&to.nodeType!==3||(yr=En+De),to!==pt||le!==0&&to.nodeType!==3||(Ir=En+le),to.nodeType===3&&(En+=to.nodeValue.length),(Ao=to.firstChild)!==null;)Ki=to,to=Ao;for(;;){if(to===y)break t;if(Ki===Q&&++bi===De&&(yr=En),Ki===pt&&++Gi===le&&(Ir=En),(Ao=to.nextSibling)!==null)break;to=Ki,Ki=to.parentNode}to=Ao}Q=yr===-1||Ir===-1?null:{start:yr,end:Ir}}else Q=null}Q=Q||{start:0,end:0}}else Q=null;for(rc={focusedElem:y,selectionRange:Q},Jr=!1,mi=O;mi!==null;)if(O=mi,y=O.child,(O.subtreeFlags&1028)!==0&&y!==null)y.return=O,mi=y;else for(;mi!==null;){O=mi;try{var zo=O.alternate;if(O.flags&1024)switch(O.tag){case 0:case 11:case 15:break;case 1:if(zo!==null){var Uo=zo.memoizedProps,ml=zo.memoizedState,ni=O.stateNode,zr=ni.getSnapshotBeforeUpdate(O.elementType===O.type?Uo:cl(O.type,Uo),ml);ni.__reactInternalSnapshotBeforeUpdate=zr}break;case 3:var ci=O.stateNode.containerInfo;ci.nodeType===1?ci.textContent="":ci.nodeType===9&&ci.documentElement&&ci.removeChild(ci.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(fo){bl(O,O.return,fo)}if(y=O.sibling,y!==null){y.return=O.return,mi=y;break}mi=O.return}return zo=Xa,Xa=!1,zo}function ga(y,O,Q){var le=O.updateQueue;if(le=le!==null?le.lastEffect:null,le!==null){var De=le=le.next;do{if((De.tag&y)===y){var pt=De.destroy;De.destroy=void 0,pt!==void 0&&uc(O,Q,pt)}De=De.next}while(De!==le)}}function _c(y,O){if(O=O.updateQueue,O=O!==null?O.lastEffect:null,O!==null){var Q=O=O.next;do{if((Q.tag&y)===y){var le=Q.create;Q.destroy=le()}Q=Q.next}while(Q!==O)}}function eh(y){var O=y.ref;if(O!==null){var Q=y.stateNode;switch(y.tag){case 5:y=Q;break;default:y=Q}typeof O=="function"?O(y):O.current=y}}function ya(y){var O=y.alternate;O!==null&&(y.alternate=null,ya(O)),y.child=null,y.deletions=null,y.sibling=null,y.tag===5&&(O=y.stateNode,O!==null&&(delete O[ol],delete O[gc],delete O[jn],delete O[Qa],delete O[jc])),y.stateNode=null,y.return=null,y.dependencies=null,y.memoizedProps=null,y.memoizedState=null,y.pendingProps=null,y.stateNode=null,y.updateQueue=null}function va(y){return y.tag===5||y.tag===3||y.tag===4}function of(y){e:for(;;){for(;y.sibling===null;){if(y.return===null||va(y.return))return null;y=y.return}for(y.sibling.return=y.return,y=y.sibling;y.tag!==5&&y.tag!==6&&y.tag!==18;){if(y.flags&2||y.child===null||y.tag===4)continue e;y.child.return=y,y=y.child}if(!(y.flags&2))return y.stateNode}}function yd(y,O,Q){var le=y.tag;if(le===5||le===6)y=y.stateNode,O?Q.nodeType===8?Q.parentNode.insertBefore(y,O):Q.insertBefore(y,O):(Q.nodeType===8?(O=Q.parentNode,O.insertBefore(y,Q)):(O=Q,O.appendChild(y)),Q=Q._reactRootContainer,Q!=null||O.onclick!==null||(O.onclick=fc));else if(le!==4&&(y=y.child,y!==null))for(yd(y,O,Q),y=y.sibling;y!==null;)yd(y,O,Q),y=y.sibling}function $h(y,O,Q){var le=y.tag;if(le===5||le===6)y=y.stateNode,O?Q.insertBefore(y,O):Q.appendChild(y);else if(le!==4&&(y=y.child,y!==null))for($h(y,O,Q),y=y.sibling;y!==null;)$h(y,O,Q),y=y.sibling}var fl=null,Uc=!1;function Ka(y,O,Q){for(Q=Q.child;Q!==null;)Gu(y,O,Q),Q=Q.sibling}function Gu(y,O,Q){if(Qn&&typeof Qn.onCommitFiberUnmount=="function")try{Qn.onCommitFiberUnmount(Rn,Q)}catch{}switch(Q.tag){case 5:Js||Sa(Q,O);case 6:var le=fl,De=Uc;fl=null,Ka(y,O,Q),fl=le,Uc=De,fl!==null&&(Uc?(y=fl,Q=Q.stateNode,y.nodeType===8?y.parentNode.removeChild(Q):y.removeChild(Q)):fl.removeChild(Q.stateNode));break;case 18:fl!==null&&(Uc?(y=fl,Q=Q.stateNode,y.nodeType===8?au(y.parentNode,Q):y.nodeType===1&&au(y,Q),ar(y)):au(fl,Q.stateNode));break;case 4:le=fl,De=Uc,fl=Q.stateNode.containerInfo,Uc=!0,Ka(y,O,Q),fl=le,Uc=De;break;case 0:case 11:case 14:case 15:if(!Js&&(le=Q.updateQueue,le!==null&&(le=le.lastEffect,le!==null))){De=le=le.next;do{var pt=De,En=pt.destroy;pt=pt.tag,En!==void 0&&(pt&2||pt&4)&&uc(Q,O,En),De=De.next}while(De!==le)}Ka(y,O,Q);break;case 1:if(!Js&&(Sa(Q,O),le=Q.stateNode,typeof le.componentWillUnmount=="function"))try{le.props=Q.memoizedProps,le.state=Q.memoizedState,le.componentWillUnmount()}catch(yr){bl(Q,O,yr)}Ka(y,O,Q);break;case 21:Ka(y,O,Q);break;case 22:Q.mode&1?(Js=(le=Js)||Q.memoizedState!==null,Ka(y,O,Q),Js=le):Ka(y,O,Q);break;default:Ka(y,O,Q)}}function Vh(y){var O=y.updateQueue;if(O!==null){y.updateQueue=null;var Q=y.stateNode;Q===null&&(Q=y.stateNode=new Bs),O.forEach(function(le){var De=Ip.bind(null,y,le);Q.has(le)||(Q.add(le),le.then(De,De))})}}function Al(y,O){var Q=O.deletions;if(Q!==null)for(var le=0;le<Q.length;le++){var De=Q[le];try{var pt=y,En=O,yr=En;e:for(;yr!==null;){switch(yr.tag){case 5:fl=yr.stateNode,Uc=!1;break e;case 3:fl=yr.stateNode.containerInfo,Uc=!0;break e;case 4:fl=yr.stateNode.containerInfo,Uc=!0;break e}yr=yr.return}if(fl===null)throw Error(s(160));Gu(pt,En,De),fl=null,Uc=!1;var Ir=De.alternate;Ir!==null&&(Ir.return=null),De.return=null}catch(bi){bl(De,O,bi)}}if(O.subtreeFlags&12854)for(O=O.child;O!==null;)jd(O,y),O=O.sibling}function jd(y,O){var Q=y.alternate,le=y.flags;switch(y.tag){case 0:case 11:case 14:case 15:if(Al(O,y),yu(y),le&4){try{ga(3,y,y.return),_c(3,y)}catch(Uo){bl(y,y.return,Uo)}try{ga(5,y,y.return)}catch(Uo){bl(y,y.return,Uo)}}break;case 1:Al(O,y),yu(y),le&512&&Q!==null&&Sa(Q,Q.return);break;case 5:if(Al(O,y),yu(y),le&512&&Q!==null&&Sa(Q,Q.return),y.flags&32){var De=y.stateNode;try{ut(De,"")}catch(Uo){bl(y,y.return,Uo)}}if(le&4&&(De=y.stateNode,De!=null)){var pt=y.memoizedProps,En=Q!==null?Q.memoizedProps:pt,yr=y.type,Ir=y.updateQueue;if(y.updateQueue=null,Ir!==null)try{yr==="input"&&pt.type==="radio"&&pt.name!=null&&un(De,pt),Ze(yr,En);var bi=Ze(yr,pt);for(En=0;En<Ir.length;En+=2){var Gi=Ir[En],to=Ir[En+1];Gi==="style"?ge(De,to):Gi==="dangerouslySetInnerHTML"?vn(De,to):Gi==="children"?ut(De,to):T(De,Gi,to,bi)}switch(yr){case"input":Be(De,pt);break;case"textarea":ht(De,pt);break;case"select":var Ki=De._wrapperState.wasMultiple;De._wrapperState.wasMultiple=!!pt.multiple;var Ao=pt.value;Ao!=null?Kt(De,!!pt.multiple,Ao,!1):Ki!==!!pt.multiple&&(pt.defaultValue!=null?Kt(De,!!pt.multiple,pt.defaultValue,!0):Kt(De,!!pt.multiple,pt.multiple?[]:"",!1))}De[gc]=pt}catch(Uo){bl(y,y.return,Uo)}}break;case 6:if(Al(O,y),yu(y),le&4){if(y.stateNode===null)throw Error(s(162));De=y.stateNode,pt=y.memoizedProps;try{De.nodeValue=pt}catch(Uo){bl(y,y.return,Uo)}}break;case 3:if(Al(O,y),yu(y),le&4&&Q!==null&&Q.memoizedState.isDehydrated)try{ar(O.containerInfo)}catch(Uo){bl(y,y.return,Uo)}break;case 4:Al(O,y),yu(y);break;case 13:Al(O,y),yu(y),De=y.child,De.flags&8192&&(pt=De.memoizedState!==null,De.stateNode.isHidden=pt,!pt||De.alternate!==null&&De.alternate.memoizedState!==null||(af=it())),le&4&&Vh(y);break;case 22:if(Gi=Q!==null&&Q.memoizedState!==null,y.mode&1?(Js=(bi=Js)||Gi,Al(O,y),Js=bi):Al(O,y),yu(y),le&8192){if(bi=y.memoizedState!==null,(y.stateNode.isHidden=bi)&&!Gi&&y.mode&1)for(mi=y,Gi=y.child;Gi!==null;){for(to=mi=Gi;mi!==null;){switch(Ki=mi,Ao=Ki.child,Ki.tag){case 0:case 11:case 14:case 15:ga(4,Ki,Ki.return);break;case 1:Sa(Ki,Ki.return);var zo=Ki.stateNode;if(typeof zo.componentWillUnmount=="function"){le=Ki,Q=Ki.return;try{O=le,zo.props=O.memoizedProps,zo.state=O.memoizedState,zo.componentWillUnmount()}catch(Uo){bl(le,Q,Uo)}}break;case 5:Sa(Ki,Ki.return);break;case 22:if(Ki.memoizedState!==null){wd(to);continue}}Ao!==null?(Ao.return=Ki,mi=Ao):wd(to)}Gi=Gi.sibling}e:for(Gi=null,to=y;;){if(to.tag===5){if(Gi===null){Gi=to;try{De=to.stateNode,bi?(pt=De.style,typeof pt.setProperty=="function"?pt.setProperty("display","none","important"):pt.display="none"):(yr=to.stateNode,Ir=to.memoizedProps.style,En=Ir!=null&&Ir.hasOwnProperty("display")?Ir.display:null,yr.style.display=ne("display",En))}catch(Uo){bl(y,y.return,Uo)}}}else if(to.tag===6){if(Gi===null)try{to.stateNode.nodeValue=bi?"":to.memoizedProps}catch(Uo){bl(y,y.return,Uo)}}else if((to.tag!==22&&to.tag!==23||to.memoizedState===null||to===y)&&to.child!==null){to.child.return=to,to=to.child;continue}if(to===y)break e;for(;to.sibling===null;){if(to.return===null||to.return===y)break e;Gi===to&&(Gi=null),to=to.return}Gi===to&&(Gi=null),to.sibling.return=to.return,to=to.sibling}}break;case 19:Al(O,y),yu(y),le&4&&Vh(y);break;case 21:break;default:Al(O,y),yu(y)}}function yu(y){var O=y.flags;if(O&2){try{e:{for(var Q=y.return;Q!==null;){if(va(Q)){var le=Q;break e}Q=Q.return}throw Error(s(160))}switch(le.tag){case 5:var De=le.stateNode;le.flags&32&&(ut(De,""),le.flags&=-33);var pt=of(y);$h(y,pt,De);break;case 3:case 4:var En=le.stateNode.containerInfo,yr=of(y);yd(y,yr,En);break;default:throw Error(s(161))}}catch(Ir){bl(y,y.return,Ir)}y.flags&=-3}O&4096&&(y.flags&=-4097)}function wu(y,O,Q){mi=y,Yu(y,O,Q)}function Yu(y,O,Q){for(var le=(y.mode&1)!==0;mi!==null;){var De=mi,pt=De.child;if(De.tag===22&&le){var En=De.memoizedState!==null||wo;if(!En){var yr=De.alternate,Ir=yr!==null&&yr.memoizedState!==null||Js;yr=wo;var bi=Js;if(wo=En,(Js=Ir)&&!bi)for(mi=De;mi!==null;)En=mi,Ir=En.child,En.tag===22&&En.memoizedState!==null?sf(De):Ir!==null?(Ir.return=En,mi=Ir):sf(De);for(;pt!==null;)mi=pt,Yu(pt,O,Q),pt=pt.sibling;mi=De,wo=yr,Js=bi}Bd(y,O,Q)}else De.subtreeFlags&8772&&pt!==null?(pt.return=De,mi=pt):Bd(y,O,Q)}}function Bd(y){for(;mi!==null;){var O=mi;if(O.flags&8772){var Q=O.alternate;try{if(O.flags&8772)switch(O.tag){case 0:case 11:case 15:Js||_c(5,O);break;case 1:var le=O.stateNode;if(O.flags&4&&!Js)if(Q===null)le.componentDidMount();else{var De=O.elementType===O.type?Q.memoizedProps:cl(O.type,Q.memoizedProps);le.componentDidUpdate(De,Q.memoizedState,le.__reactInternalSnapshotBeforeUpdate)}var pt=O.updateQueue;pt!==null&&Cl(O,pt,le);break;case 3:var En=O.updateQueue;if(En!==null){if(Q=null,O.child!==null)switch(O.child.tag){case 5:Q=O.child.stateNode;break;case 1:Q=O.child.stateNode}Cl(O,En,Q)}break;case 5:var yr=O.stateNode;if(Q===null&&O.flags&4){Q=yr;var Ir=O.memoizedProps;switch(O.type){case"button":case"input":case"select":case"textarea":Ir.autoFocus&&Q.focus();break;case"img":Ir.src&&(Q.src=Ir.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(O.memoizedState===null){var bi=O.alternate;if(bi!==null){var Gi=bi.memoizedState;if(Gi!==null){var to=Gi.dehydrated;to!==null&&ar(to)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(s(163))}Js||O.flags&512&&eh(O)}catch(Ki){bl(O,O.return,Ki)}}if(O===y){mi=null;break}if(Q=O.sibling,Q!==null){Q.return=O.return,mi=Q;break}mi=O.return}}function wd(y){for(;mi!==null;){var O=mi;if(O===y){mi=null;break}var Q=O.sibling;if(Q!==null){Q.return=O.return,mi=Q;break}mi=O.return}}function sf(y){for(;mi!==null;){var O=mi;try{switch(O.tag){case 0:case 11:case 15:var Q=O.return;try{_c(4,O)}catch(Ir){bl(O,Q,Ir)}break;case 1:var le=O.stateNode;if(typeof le.componentDidMount=="function"){var De=O.return;try{le.componentDidMount()}catch(Ir){bl(O,De,Ir)}}var pt=O.return;try{eh(O)}catch(Ir){bl(O,pt,Ir)}break;case 5:var En=O.return;try{eh(O)}catch(Ir){bl(O,En,Ir)}}}catch(Ir){bl(O,O.return,Ir)}if(O===y){mi=null;break}var yr=O.sibling;if(yr!==null){yr.return=O.return,mi=yr;break}mi=O.return}}var yh=Math.ceil,Qu=u.ReactCurrentDispatcher,wh=u.ReactCurrentOwner,dc=u.ReactCurrentBatchConfig,bs=0,Ml=null,el=null,Ol=0,Ac=0,Ju=xs(0),pl=0,_h=null,_d=0,th=0,zh=0,Xu=null,xc=null,af=0,vi=1/0,bo=null,jo=!1,os=null,ys=null,Ms=!1,La=null,xd=0,Ed=0,xh=null,Uh=-1,mf=0;function Ec(){return bs&6?it():Uh!==-1?Uh:Uh=it()}function _u(y){return y.mode&1?bs&2&&Ol!==0?Ol&-Ol:Fc.transition!==null?(mf===0&&(mf=Qt()),mf):(y=fr,y!==0||(y=window.event,y=y===void 0?16:rt(y.type)),y):1}function Bu(y,O,Q,le){if(50<Ed)throw Ed=0,xh=null,Error(s(185));Gn(y,Q,le),(!(bs&2)||y!==Ml)&&(y===Ml&&(!(bs&2)&&(th|=Q),pl===4&&kc(y,Ol)),hc(y,le),Q===1&&bs===0&&!(O.mode&1)&&(vi=it()+500,Mu&&Ha()))}function hc(y,O){var Q=y.callbackNode;Ge(y,O);var le=Ke(y,y===Ml?Ol:0);if(le===0)Q!==null&&ii(Q),y.callbackNode=null,y.callbackPriority=0;else if(O=le&-le,y.callbackPriority!==O){if(Q!=null&&ii(Q),O===1)y.tag===0?dd(lf.bind(null,y)):Bc(lf.bind(null,y)),Nl(function(){!(bs&6)&&Ha()}),Q=null;else{switch(Er(le)){case 1:Q=ke;break;case 4:Q=Pe;break;case 16:Q=Te;break;case 536870912:Q=qt;break;default:Q=Te}Q=Nf(Q,If.bind(null,y))}y.callbackPriority=O,y.callbackNode=Q}}function If(y,O){if(Uh=-1,mf=0,bs&6)throw Error(s(327));var Q=y.callbackNode;if(Nd()&&y.callbackNode!==Q)return null;var le=Ke(y,y===Ml?Ol:0);if(le===0)return null;if(le&30||le&y.expiredLanes||O)O=kh(y,le);else{O=le;var De=bs;bs|=2;var pt=Jf();(Ml!==y||Ol!==O)&&(bo=null,vi=it()+500,ed(y,O));do try{Xf();break}catch(yr){Lf(y,yr)}while(1);Jl(),Qu.current=pt,bs=De,el!==null?O=0:(Ml=null,Ol=0,O=pl)}if(O!==0){if(O===2&&(De=Ft(y),De!==0&&(le=De,O=Hh(y,De))),O===1)throw Q=_h,ed(y,0),kc(y,le),hc(y,it()),Q;if(O===6)kc(y,le);else{if(De=y.current.alternate,!(le&30)&&!nh(De)&&(O=kh(y,le),O===2&&(pt=Ft(y),pt!==0&&(le=pt,O=Hh(y,pt))),O===1))throw Q=_h,ed(y,0),kc(y,le),hc(y,it()),Q;switch(y.finishedWork=De,y.finishedLanes=le,O){case 0:case 1:throw Error(s(345));case 2:Ch(y,xc,bo);break;case 3:if(kc(y,le),(le&130023424)===le&&(O=af+500-it(),10<O)){if(Ke(y,0)!==0)break;if(De=y.suspendedLanes,(De&le)!==le){Ec(),y.pingedLanes|=y.suspendedLanes&De;break}y.timeoutHandle=su(Ch.bind(null,y,xc,bo),O);break}Ch(y,xc,bo);break;case 4:if(kc(y,le),(le&4194240)===le)break;for(O=y.eventTimes,De=-1;0<le;){var En=31-On(le);pt=1<<En,En=O[En],En>De&&(De=En),le&=~pt}if(le=De,le=it()-le,le=(120>le?120:480>le?480:1080>le?1080:1920>le?1920:3e3>le?3e3:4320>le?4320:1960*yh(le/1960))-le,10<le){y.timeoutHandle=su(Ch.bind(null,y,xc,bo),le);break}Ch(y,xc,bo);break;case 5:Ch(y,xc,bo);break;default:throw Error(s(329))}}}return hc(y,it()),y.callbackNode===Q?If.bind(null,y):null}function Hh(y,O){var Q=Xu;return y.current.memoizedState.isDehydrated&&(ed(y,O).flags|=256),y=kh(y,O),y!==2&&(O=xc,xc=Q,O!==null&&gf(O)),y}function gf(y){xc===null?xc=y:xc.push.apply(xc,y)}function nh(y){for(var O=y;;){if(O.flags&16384){var Q=O.updateQueue;if(Q!==null&&(Q=Q.stores,Q!==null))for(var le=0;le<Q.length;le++){var De=Q[le],pt=De.getSnapshot;De=De.value;try{if(!Wr(pt(),De))return!1}catch{return!1}}}if(Q=O.child,O.subtreeFlags&16384&&Q!==null)Q.return=O,O=Q;else{if(O===y)break;for(;O.sibling===null;){if(O.return===null||O.return===y)return!0;O=O.return}O.sibling.return=O.return,O=O.sibling}}return!0}function kc(y,O){for(O&=~zh,O&=~th,y.suspendedLanes|=O,y.pingedLanes&=~O,y=y.expirationTimes;0<O;){var Q=31-On(O),le=1<<Q;y[Q]=-1,O&=~le}}function lf(y){if(bs&6)throw Error(s(327));Nd();var O=Ke(y,0);if(!(O&1))return hc(y,it()),null;var Q=kh(y,O);if(y.tag!==0&&Q===2){var le=Ft(y);le!==0&&(O=le,Q=Hh(y,le))}if(Q===1)throw Q=_h,ed(y,0),kc(y,O),hc(y,it()),Q;if(Q===6)throw Error(s(345));return y.finishedWork=y.current.alternate,y.finishedLanes=O,Ch(y,xc,bo),hc(y,it()),null}function Rf(y,O){var Q=bs;bs|=1;try{return y(O)}finally{bs=Q,bs===0&&(vi=it()+500,Mu&&Ha())}}function qu(y){La!==null&&La.tag===0&&!(bs&6)&&Nd();var O=bs;bs|=1;var Q=dc.transition,le=fr;try{if(dc.transition=null,fr=1,y)return y()}finally{fr=le,dc.transition=Q,bs=O,!(bs&6)&&Ha()}}function vf(){Ac=Ju.current,cs(Ju)}function ed(y,O){y.finishedWork=null,y.finishedLanes=0;var Q=y.timeoutHandle;if(Q!==-1&&(y.timeoutHandle=-1,Rc(Q)),el!==null)for(Q=el.return;Q!==null;){var le=Q;switch(lr(le),le.tag){case 1:le=le.type.childContextTypes,le!=null&&Hs();break;case 3:du(),cs(fs),cs(As),md();break;case 5:Sc(le);break;case 4:du();break;case 13:cs(Ta);break;case 19:cs(Ta);break;case 10:$l(le.type._context);break;case 22:case 23:vf()}Q=Q.return}if(Ml=y,el=y=ih(y.current,null),Ol=Ac=O,pl=0,_h=null,zh=th=_d=0,xc=Xu=null,Yc!==null){for(O=0;O<Yc.length;O++)if(Q=Yc[O],le=Q.interleaved,le!==null){Q.interleaved=null;var De=le.next,pt=Q.pending;if(pt!==null){var En=pt.next;pt.next=De,le.next=En}Q.pending=le}Yc=null}return y}function Lf(y,O){do{var Q=el;try{if(Jl(),vs.current=gu,fu){for(var le=ma.memoizedState;le!==null;){var De=le.queue;De!==null&&(De.pending=null),le=le.next}fu=!1}if(yc=0,Wa=oa=ma=null,Tl=!1,pu=0,wh.current=null,Q===null||Q.return===null){pl=1,_h=O,el=null;break}e:{var pt=y,En=Q.return,yr=Q,Ir=O;if(O=Ol,yr.flags|=32768,Ir!==null&&typeof Ir=="object"&&typeof Ir.then=="function"){var bi=Ir,Gi=yr,to=Gi.tag;if(!(Gi.mode&1)&&(to===0||to===11||to===15)){var Ki=Gi.alternate;Ki?(Gi.updateQueue=Ki.updateQueue,Gi.memoizedState=Ki.memoizedState,Gi.lanes=Ki.lanes):(Gi.updateQueue=null,Gi.memoizedState=null)}var Ao=Id(En);if(Ao!==null){Ao.flags&=-257,Bh(Ao,En,yr,pt,O),Ao.mode&1&&Dd(pt,bi,O),O=Ao,Ir=bi;var zo=O.updateQueue;if(zo===null){var Uo=new Set;Uo.add(Ir),O.updateQueue=Uo}else zo.add(Ir);break e}else{if(!(O&1)){Dd(pt,bi,O),Eh();break e}Ir=Error(s(426))}}else if(Yr&&yr.mode&1){var ml=Id(En);if(ml!==null){!(ml.flags&65536)&&(ml.flags|=256),Bh(ml,En,yr,pt,O),ba(hl(Ir,yr));break e}}pt=Ir=hl(Ir,yr),pl!==4&&(pl=2),Xu===null?Xu=[pt]:Xu.push(pt),pt=En;do{switch(pt.tag){case 3:pt.flags|=65536,O&=-O,pt.lanes|=O;var ni=Xd(pt,Ir,O);Od(pt,ni);break e;case 1:yr=Ir;var zr=pt.type,ci=pt.stateNode;if(!(pt.flags&128)&&(typeof zr.getDerivedStateFromError=="function"||ci!==null&&typeof ci.componentDidCatch=="function"&&(ys===null||!ys.has(ci)))){pt.flags|=65536,O&=-O,pt.lanes|=O;var fo=gh(pt,yr,O);Od(pt,fo);break e}}pt=pt.return}while(pt!==null)}qf(Q)}catch(Ho){O=Ho,el===Q&&Q!==null&&(el=Q=Q.return);continue}break}while(1)}function Jf(){var y=Qu.current;return Qu.current=gu,y===null?gu:y}function Eh(){(pl===0||pl===3||pl===2)&&(pl=4),Ml===null||!(_d&268435455)&&!(th&268435455)||kc(Ml,Ol)}function kh(y,O){var Q=bs;bs|=2;var le=Jf();(Ml!==y||Ol!==O)&&(bo=null,ed(y,O));do try{Op();break}catch(De){Lf(y,De)}while(1);if(Jl(),bs=Q,Qu.current=le,el!==null)throw Error(s(261));return Ml=null,Ol=0,pl}function Op(){for(;el!==null;)jf(el)}function Xf(){for(;el!==null&&!vr();)jf(el)}function jf(y){var O=ep(y.alternate,y,Ac);y.memoizedProps=y.pendingProps,O===null?qf(y):el=O,wh.current=null}function qf(y){var O=y;do{var Q=O.alternate;if(y=O.return,O.flags&32768){if(Q=$o(Q,O),Q!==null){Q.flags&=32767,el=Q;return}if(y!==null)y.flags|=32768,y.subtreeFlags=0,y.deletions=null;else{pl=6,el=null;return}}else if(Q=ao(Q,O,Ac),Q!==null){el=Q;return}if(O=O.sibling,O!==null){el=O;return}el=O=y}while(O!==null);pl===0&&(pl=5)}function Ch(y,O,Q){var le=fr,De=dc.transition;try{dc.transition=null,fr=1,rh(y,O,Q,le)}finally{dc.transition=De,fr=le}return null}function rh(y,O,Q,le){do Nd();while(La!==null);if(bs&6)throw Error(s(327));Q=y.finishedWork;var De=y.finishedLanes;if(Q===null)return null;if(y.finishedWork=null,y.finishedLanes=0,Q===y.current)throw Error(s(177));y.callbackNode=null,y.callbackPriority=0;var pt=Q.lanes|Q.childLanes;if(ir(y,pt),y===Ml&&(el=Ml=null,Ol=0),!(Q.subtreeFlags&2064)&&!(Q.flags&2064)||Ms||(Ms=!0,Nf(Te,function(){return Nd(),null})),pt=(Q.flags&15990)!==0,Q.subtreeFlags&15990||pt){pt=dc.transition,dc.transition=null;var En=fr;fr=1;var yr=bs;bs|=4,wh.current=null,qa(y,Q),jd(Q,y),Ut(rc),Jr=!!pc,rc=pc=null,y.current=Q,wu(Q,y,De),at(),bs=yr,fr=En,dc.transition=pt}else y.current=Q;if(Ms&&(Ms=!1,La=y,xd=De),pt=y.pendingLanes,pt===0&&(ys=null),ur(Q.stateNode,le),hc(y,it()),O!==null)for(le=y.onRecoverableError,Q=0;Q<O.length;Q++)De=O[Q],le(De.value,{componentStack:De.stack,digest:De.digest});if(jo)throw jo=!1,y=os,os=null,y;return xd&1&&y.tag!==0&&Nd(),pt=y.pendingLanes,pt&1?y===xh?Ed++:(Ed=0,xh=y):Ed=0,Ha(),null}function Nd(){if(La!==null){var y=Er(xd),O=dc.transition,Q=fr;try{if(dc.transition=null,fr=16>y?16:y,La===null)var le=!1;else{if(y=La,La=null,xd=0,bs&6)throw Error(s(331));var De=bs;for(bs|=4,mi=y.current;mi!==null;){var pt=mi,En=pt.child;if(mi.flags&16){var yr=pt.deletions;if(yr!==null){for(var Ir=0;Ir<yr.length;Ir++){var bi=yr[Ir];for(mi=bi;mi!==null;){var Gi=mi;switch(Gi.tag){case 0:case 11:case 15:ga(8,Gi,pt)}var to=Gi.child;if(to!==null)to.return=Gi,mi=to;else for(;mi!==null;){Gi=mi;var Ki=Gi.sibling,Ao=Gi.return;if(ya(Gi),Gi===bi){mi=null;break}if(Ki!==null){Ki.return=Ao,mi=Ki;break}mi=Ao}}}var zo=pt.alternate;if(zo!==null){var Uo=zo.child;if(Uo!==null){zo.child=null;do{var ml=Uo.sibling;Uo.sibling=null,Uo=ml}while(Uo!==null)}}mi=pt}}if(pt.subtreeFlags&2064&&En!==null)En.return=pt,mi=En;else e:for(;mi!==null;){if(pt=mi,pt.flags&2048)switch(pt.tag){case 0:case 11:case 15:ga(9,pt,pt.return)}var ni=pt.sibling;if(ni!==null){ni.return=pt.return,mi=ni;break e}mi=pt.return}}var zr=y.current;for(mi=zr;mi!==null;){En=mi;var ci=En.child;if(En.subtreeFlags&2064&&ci!==null)ci.return=En,mi=ci;else e:for(En=zr;mi!==null;){if(yr=mi,yr.flags&2048)try{switch(yr.tag){case 0:case 11:case 15:_c(9,yr)}}catch(Ho){bl(yr,yr.return,Ho)}if(yr===En){mi=null;break e}var fo=yr.sibling;if(fo!==null){fo.return=yr.return,mi=fo;break e}mi=yr.return}}if(bs=De,Ha(),Qn&&typeof Qn.onPostCommitFiberRoot=="function")try{Qn.onPostCommitFiberRoot(Rn,y)}catch{}le=!0}return le}finally{fr=Q,dc.transition=O}}return!1}function bf(y,O,Q){O=hl(Q,O),O=Xd(y,O,1),y=sc(y,O,1),O=Ec(),y!==null&&(Gn(y,1,O),hc(y,O))}function bl(y,O,Q){if(y.tag===3)bf(y,y,Q);else for(;O!==null;){if(O.tag===3){bf(O,y,Q);break}else if(O.tag===1){var le=O.stateNode;if(typeof O.type.getDerivedStateFromError=="function"||typeof le.componentDidCatch=="function"&&(ys===null||!ys.has(le))){y=hl(Q,y),y=gh(O,y,1),O=sc(O,y,1),y=Ec(),O!==null&&(Gn(O,1,y),hc(O,y));break}}O=O.return}}function Pp(y,O,Q){var le=y.pingCache;le!==null&&le.delete(O),O=Ec(),y.pingedLanes|=y.suspendedLanes&Q,Ml===y&&(Ol&Q)===Q&&(pl===4||pl===3&&(Ol&130023424)===Ol&&500>it()-af?ed(y,0):zh|=Q),hc(y,O)}function Bf(y,O){O===0&&(y.mode&1?(O=Kn,Kn<<=1,!(Kn&130023424)&&(Kn=4194304)):O=1);var Q=Ec();y=Qc(y,O),y!==null&&(Gn(y,O,Q),hc(y,Q))}function Dp(y){var O=y.memoizedState,Q=0;O!==null&&(Q=O.retryLane),Bf(y,Q)}function Ip(y,O){var Q=0;switch(y.tag){case 13:var le=y.stateNode,De=y.memoizedState;De!==null&&(Q=De.retryLane);break;case 19:le=y.stateNode;break;default:throw Error(s(314))}le!==null&&le.delete(O),Bf(y,Q)}var ep;ep=function(y,O,Q){if(y!==null)if(y.memoizedProps!==O.pendingProps||fs.current)lc=!0;else{if(!(y.lanes&Q)&&!(O.flags&128))return lc=!1,xt(y,O,Q);lc=!!(y.flags&131072)}else lc=!1,Yr&&O.flags&1048576&&Un(O,Ca,O.index);switch(O.lanes=0,O.tag){case 2:var le=O.type;rf(y,O),y=O.pendingProps;var De=al(O,As.current);oc(O,Q),De=W(null,O,le,y,De,Q);var pt=o();return O.flags|=1,typeof De=="object"&&De!==null&&typeof De.render=="function"&&De.$$typeof===void 0?(O.tag=1,O.memoizedState=null,O.updateQueue=null,Vs(le)?(pt=!0,la(O)):pt=!1,O.memoizedState=De.state!==null&&De.state!==void 0?De.state:null,hd(O),De.updater=Pu,O.stateNode=De,De._reactInternals=O,Zd(O,le,y,Q),O=cc(null,O,le,!0,pt,Q)):(O.tag=0,Yr&&pt&&or(O),Sl(null,O,De,Q),O=O.child),O;case 16:le=O.elementType;e:{switch(rf(y,O),y=O.pendingProps,De=le._init,le=De(le._payload),O.type=le,De=O.tag=u0(le),y=cl(le,y),De){case 0:O=Nh(null,O,le,y,Q);break e;case 1:O=Ld(null,O,le,y,Q);break e;case 11:O=Vc(null,O,le,y,Q);break e;case 14:O=vh(null,O,le,cl(le.type,y),Q);break e}throw Error(s(306,le,""))}return O;case 0:return le=O.type,De=O.pendingProps,De=O.elementType===le?De:cl(le,De),Nh(y,O,le,De,Q);case 1:return le=O.type,De=O.pendingProps,De=O.elementType===le?De:cl(le,De),Ld(y,O,le,De,Q);case 3:e:{if(bh(O),y===null)throw Error(s(387));le=O.pendingProps,pt=O.memoizedState,De=pt.element,Uu(y,O),Wd(O,le,null,Q);var En=O.memoizedState;if(le=En.element,pt.isDehydrated)if(pt={element:le,isDehydrated:!1,cache:En.cache,pendingSuspenseBoundaries:En.pendingSuspenseBoundaries,transitions:En.transitions},O.updateQueue.baseState=pt,O.memoizedState=pt,O.flags&256){De=hl(Error(s(423)),O),O=Fh(y,O,le,Q,De);break e}else if(le!==De){De=hl(Error(s(424)),O),O=Fh(y,O,le,Q,De);break e}else for(Br=Lc(O.stateNode.containerInfo.firstChild),jr=O,Yr=!0,Oi=null,Q=Kd(O,null,le,Q),O.child=Q;Q;)Q.flags=Q.flags&-3|4096,Q=Q.sibling;else{if(ps(),le===De){O=Ua(y,O,Q);break e}Sl(y,O,le,Q)}O=O.child}return O;case 5:return Ru(O),y===null&&no(O),le=O.type,De=O.pendingProps,pt=y!==null?y.memoizedProps:null,En=De.children,Ic(le,De)?En=null:pt!==null&&Ic(le,pt)&&(O.flags|=32),Rd(y,O),Sl(y,O,En,Q),O.child;case 6:return y===null&&no(O),null;case 13:return bd(y,O,Q);case 4:return Gd(O,O.stateNode.containerInfo),le=O.pendingProps,y===null?O.child=Hu(O,null,le,Q):Sl(y,O,le,Q),O.child;case 11:return le=O.type,De=O.pendingProps,De=O.elementType===le?De:cl(le,De),Vc(y,O,le,De,Q);case 7:return Sl(y,O,O.pendingProps,Q),O.child;case 8:return Sl(y,O,O.pendingProps.children,Q),O.child;case 12:return Sl(y,O,O.pendingProps.children,Q),O.child;case 10:e:{if(le=O.type._context,De=O.pendingProps,pt=O.memoizedProps,En=De.value,hs(Kc,le._currentValue),le._currentValue=En,pt!==null)if(Wr(pt.value,En)){if(pt.children===De.children&&!fs.current){O=Ua(y,O,Q);break e}}else for(pt=O.child,pt!==null&&(pt.return=O);pt!==null;){var yr=pt.dependencies;if(yr!==null){En=pt.child;for(var Ir=yr.firstContext;Ir!==null;){if(Ir.context===le){if(pt.tag===1){Ir=uu(-1,Q&-Q),Ir.tag=2;var bi=pt.updateQueue;if(bi!==null){bi=bi.shared;var Gi=bi.pending;Gi===null?Ir.next=Ir:(Ir.next=Gi.next,Gi.next=Ir),bi.pending=Ir}}pt.lanes|=Q,Ir=pt.alternate,Ir!==null&&(Ir.lanes|=Q),Ou(pt.return,Q,O),yr.lanes|=Q;break}Ir=Ir.next}}else if(pt.tag===10)En=pt.type===O.type?null:pt.child;else if(pt.tag===18){if(En=pt.return,En===null)throw Error(s(341));En.lanes|=Q,yr=En.alternate,yr!==null&&(yr.lanes|=Q),Ou(En,Q,O),En=pt.sibling}else En=pt.child;if(En!==null)En.return=pt;else for(En=pt;En!==null;){if(En===O){En=null;break}if(pt=En.sibling,pt!==null){pt.return=En.return,En=pt;break}En=En.return}pt=En}Sl(y,O,De.children,Q),O=O.child}return O;case 9:return De=O.type,le=O.pendingProps.children,oc(O,Q),De=ul(De),le=le(De),O.flags|=1,Sl(y,O,le,Q),O.child;case 14:return le=O.type,De=cl(le,O.pendingProps),De=cl(le.type,De),vh(y,O,le,De,Q);case 15:return tf(y,O,O.type,O.pendingProps,Q);case 17:return le=O.type,De=O.pendingProps,De=O.elementType===le?De:cl(le,De),rf(y,O),O.tag=1,Vs(le)?(y=!0,la(O)):y=!1,oc(O,Q),Dh(O,le,De),Zd(O,le,De,Q),cc(null,O,le,!0,y,Q);case 19:return pf(y,O,Q);case 22:return zc(y,O,Q)}throw Error(s(156,O.tag))};function Nf(y,O){return Pi(y,O)}function tp(y,O,Q,le){this.tag=y,this.key=Q,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=O,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=le,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xu(y,O,Q,le){return new tp(y,O,Q,le)}function Wh(y){return y=y.prototype,!(!y||!y.isReactComponent)}function u0(y){if(typeof y=="function")return Wh(y)?1:0;if(y!=null){if(y=y.$$typeof,y===$)return 11;if(y===oe)return 14}return 2}function ih(y,O){var Q=y.alternate;return Q===null?(Q=xu(y.tag,O,y.key,y.mode),Q.elementType=y.elementType,Q.type=y.type,Q.stateNode=y.stateNode,Q.alternate=y,y.alternate=Q):(Q.pendingProps=O,Q.type=y.type,Q.flags=0,Q.subtreeFlags=0,Q.deletions=null),Q.flags=y.flags&14680064,Q.childLanes=y.childLanes,Q.lanes=y.lanes,Q.child=y.child,Q.memoizedProps=y.memoizedProps,Q.memoizedState=y.memoizedState,Q.updateQueue=y.updateQueue,O=y.dependencies,Q.dependencies=O===null?null:{lanes:O.lanes,firstContext:O.firstContext},Q.sibling=y.sibling,Q.index=y.index,Q.ref=y.ref,Q}function Ff(y,O,Q,le,De,pt){var En=2;if(le=y,typeof y=="function")Wh(y)&&(En=1);else if(typeof y=="string")En=5;else e:switch(y){case A:return Zh(Q.children,De,pt,O);case R:En=8,De|=8;break;case H:return y=xu(12,Q,O,De|2),y.elementType=H,y.lanes=pt,y;case ee:return y=xu(13,Q,O,De),y.elementType=ee,y.lanes=pt,y;case q:return y=xu(19,Q,O,De),y.elementType=q,y.lanes=pt,y;case pe:return Kh(Q,De,pt,O);default:if(typeof y=="object"&&y!==null)switch(y.$$typeof){case z:En=10;break e;case V:En=9;break e;case $:En=11;break e;case oe:En=14;break e;case X:En=16,le=null;break e}throw Error(s(130,y==null?y:typeof y,""))}return O=xu(En,Q,O,De),O.elementType=y,O.type=le,O.lanes=pt,O}function Zh(y,O,Q,le){return y=xu(7,y,le,O),y.lanes=Q,y}function Kh(y,O,Q,le){return y=xu(22,y,le,O),y.elementType=pe,y.lanes=Q,y.stateNode={isHidden:!1},y}function Fd(y,O,Q){return y=xu(6,y,null,O),y.lanes=Q,y}function $d(y,O,Q){return O=xu(4,y.children!==null?y.children:[],y.key,O),O.lanes=Q,O.stateNode={containerInfo:y.containerInfo,pendingChildren:null,implementation:y.implementation},O}function Rp(y,O,Q,le,De){this.tag=O,this.containerInfo=y,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=wn(0),this.expirationTimes=wn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wn(0),this.identifierPrefix=le,this.onRecoverableError=De,this.mutableSourceEagerHydrationData=null}function Hc(y,O,Q,le,De,pt,En,yr,Ir){return y=new Rp(y,O,Q,yr,Ir),O===1?(O=1,pt===!0&&(O|=8)):O=0,pt=xu(3,null,null,O),y.current=pt,pt.stateNode=y,pt.memoizedState={element:le,isDehydrated:Q,cache:null,transitions:null,pendingSuspenseBoundaries:null},hd(pt),y}function np(y,O,Q){var le=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:E,key:le==null?null:""+le,children:y,containerInfo:O,implementation:Q}}function cf(y){if(!y)return Gl;y=y._reactInternals;e:{if(Ht(y)!==y||y.tag!==1)throw Error(s(170));var O=y;do{switch(O.tag){case 3:O=O.stateNode.context;break e;case 1:if(Vs(O.type)){O=O.stateNode.__reactInternalMemoizedMergedChildContext;break e}}O=O.return}while(O!==null);throw Error(s(171))}if(y.tag===1){var Q=y.type;if(Vs(Q))return kl(y,Q,O)}return O}function Vl(y,O,Q,le,De,pt,En,yr,Ir){return y=Hc(Q,le,!0,y,De,pt,En,yr,Ir),y.context=cf(null),Q=y.current,le=Ec(),De=_u(Q),pt=uu(le,De),pt.callback=O??null,sc(Q,pt,De),y.current.lanes=De,Gn(y,De,le),hc(y,le),y}function yf(y,O,Q,le){var De=O.current,pt=Ec(),En=_u(De);return Q=cf(Q),O.context===null?O.context=Q:O.pendingContext=Q,O=uu(pt,En),O.payload={element:y},le=le===void 0?null:le,le!==null&&(O.callback=le),y=sc(De,O,En),y!==null&&(Bu(y,De,En,pt),Md(y,De,En)),En}function $f(y){if(y=y.current,!y.child)return null;switch(y.child.tag){case 5:return y.child.stateNode;default:return y.child.stateNode}}function wf(y,O){if(y=y.memoizedState,y!==null&&y.dehydrated!==null){var Q=y.retryLane;y.retryLane=Q!==0&&Q<O?Q:O}}function rp(y,O){wf(y,O),(y=y.alternate)&&wf(y,O)}function ip(){return null}var Th=typeof reportError=="function"?reportError:function(y){console.error(y)};function oh(y){this._internalRoot=y}uf.prototype.render=oh.prototype.render=function(y){var O=this._internalRoot;if(O===null)throw Error(s(409));yf(y,O,null,null)},uf.prototype.unmount=oh.prototype.unmount=function(){var y=this._internalRoot;if(y!==null){this._internalRoot=null;var O=y.containerInfo;qu(function(){yf(null,y,null,null)}),O[Fl]=null}};function uf(y){this._internalRoot=y}uf.prototype.unstable_scheduleHydration=function(y){if(y){var O=Fi();y={blockedOn:null,target:y,priority:O};for(var Q=0;Q<St.length&&O!==0&&O<St[Q].priority;Q++);St.splice(Q,0,y),Q===0&&Xt(y)}};function sh(y){return!(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)}function df(y){return!(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11&&(y.nodeType!==8||y.nodeValue!==" react-mount-point-unstable "))}function Sh(){}function op(y,O,Q,le,De){if(De){if(typeof le=="function"){var pt=le;le=function(){var bi=$f(En);pt.call(bi)}}var En=Vl(O,le,y,0,null,!1,!1,"",Sh);return y._reactRootContainer=En,y[Fl]=En.current,Ll(y.nodeType===8?y.parentNode:y),qu(),En}for(;De=y.lastChild;)y.removeChild(De);if(typeof le=="function"){var yr=le;le=function(){var bi=$f(Ir);yr.call(bi)}}var Ir=Hc(y,0,!1,null,null,!1,!1,"",Sh);return y._reactRootContainer=Ir,y[Fl]=Ir.current,Ll(y.nodeType===8?y.parentNode:y),qu(function(){yf(O,Ir,Q,le)}),Ir}function td(y,O,Q,le,De){var pt=Q._reactRootContainer;if(pt){var En=pt;if(typeof De=="function"){var yr=De;De=function(){var Ir=$f(En);yr.call(Ir)}}yf(O,En,y,De)}else En=op(Q,O,y,De,le);return $f(En)}Or=function(y){switch(y.tag){case 3:var O=y.stateNode;if(O.current.memoizedState.isDehydrated){var Q=Rt(O.pendingLanes);Q!==0&&(br(O,Q|1),hc(O,it()),!(bs&6)&&(vi=it()+500,Ha()))}break;case 13:qu(function(){var le=Qc(y,1);if(le!==null){var De=Ec();Bu(le,y,1,De)}}),rp(y,1)}},oi=function(y){if(y.tag===13){var O=Qc(y,134217728);if(O!==null){var Q=Ec();Bu(O,y,134217728,Q)}rp(y,134217728)}},si=function(y){if(y.tag===13){var O=_u(y),Q=Qc(y,O);if(Q!==null){var le=Ec();Bu(Q,y,O,le)}rp(y,O)}},Fi=function(){return fr},$i=function(y,O){var Q=fr;try{return fr=y,O()}finally{fr=Q}},zt=function(y,O,Q){switch(O){case"input":if(Be(y,Q),O=Q.name,Q.type==="radio"&&O!=null){for(Q=y;Q.parentNode;)Q=Q.parentNode;for(Q=Q.querySelectorAll("input[name="+JSON.stringify(""+O)+'][type="radio"]'),O=0;O<Q.length;O++){var le=Q[O];if(le!==y&&le.form===y.form){var De=Zc(le);if(!De)throw Error(s(90));Qe(le),Be(le,De)}}}break;case"textarea":ht(y,Q);break;case"select":O=Q.value,O!=null&&Kt(y,!!Q.multiple,O,!1)}},Mr=Rf,rr=qu;var Lp={usingClientEntryPoint:!1,Events:[Go,Tc,Zc,dr,hr,Rf]},Gh={findFiberByHostInstance:Fa,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},sp={bundleType:Gh.bundleType,version:Gh.version,rendererPackageName:Gh.rendererPackageName,rendererConfig:Gh.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:u.ReactCurrentDispatcher,findHostInstanceByFiber:function(y){return y=Xr(y),y===null?null:y.stateNode},findFiberByHostInstance:Gh.findFiberByHostInstance||ip,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ah=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ah.isDisabled&&Ah.supportsFiber)try{Rn=Ah.inject(sp),Qn=Ah}catch{}}v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Lp,v.createPortal=function(y,O){var Q=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!sh(O))throw Error(s(200));return np(y,O,null,Q)},v.createRoot=function(y,O){if(!sh(y))throw Error(s(299));var Q=!1,le="",De=Th;return O!=null&&(O.unstable_strictMode===!0&&(Q=!0),O.identifierPrefix!==void 0&&(le=O.identifierPrefix),O.onRecoverableError!==void 0&&(De=O.onRecoverableError)),O=Hc(y,1,!1,null,null,Q,!1,le,De),y[Fl]=O.current,Ll(y.nodeType===8?y.parentNode:y),new oh(O)},v.findDOMNode=function(y){if(y==null)return null;if(y.nodeType===1)return y;var O=y._reactInternals;if(O===void 0)throw typeof y.render=="function"?Error(s(188)):(y=Object.keys(y).join(","),Error(s(268,y)));return y=Xr(O),y=y===null?null:y.stateNode,y},v.flushSync=function(y){return qu(y)},v.hydrate=function(y,O,Q){if(!df(O))throw Error(s(200));return td(null,y,O,!0,Q)},v.hydrateRoot=function(y,O,Q){if(!sh(y))throw Error(s(405));var le=Q!=null&&Q.hydratedSources||null,De=!1,pt="",En=Th;if(Q!=null&&(Q.unstable_strictMode===!0&&(De=!0),Q.identifierPrefix!==void 0&&(pt=Q.identifierPrefix),Q.onRecoverableError!==void 0&&(En=Q.onRecoverableError)),O=Vl(O,null,y,1,Q??null,De,!1,pt,En),y[Fl]=O.current,Ll(y),le)for(y=0;y<le.length;y++)Q=le[y],De=Q._getVersion,De=De(Q._source),O.mutableSourceEagerHydrationData==null?O.mutableSourceEagerHydrationData=[Q,De]:O.mutableSourceEagerHydrationData.push(Q,De);return new uf(O)},v.render=function(y,O,Q){if(!df(O))throw Error(s(200));return td(null,y,O,!1,Q)},v.unmountComponentAtNode=function(y){if(!df(y))throw Error(s(40));return y._reactRootContainer?(qu(function(){td(null,null,y,!1,function(){y._reactRootContainer=null,y[Fl]=null})}),!0):!1},v.unstable_batchedUpdates=Rf,v.unstable_renderSubtreeIntoContainer=function(y,O,Q,le){if(!df(Q))throw Error(s(200));if(y==null||y._reactInternals===void 0)throw Error(s(38));return td(y,O,Q,!1,le)},v.version="18.2.0-next-9e3b772b8-20220608"},20745:(Z,v,t)=>{"use strict";var r,n=t(73935);if(!0)v.s=n.createRoot,r=n.hydrateRoot;else var s},73935:(Z,v,t)=>{"use strict";function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(n){console.error(n)}}r(),Z.exports=t(64448)},69590:Z=>{"use strict";var v=Array.isArray,t=Object.keys,r=Object.prototype.hasOwnProperty,n=typeof Element<"u";function s(a,c){if(a===c)return!0;if(a&&c&&typeof a=="object"&&typeof c=="object"){var h=v(a),p=v(c),d,k,M;if(h&&p){if(k=a.length,k!=c.length)return!1;for(d=k;d--!==0;)if(!s(a[d],c[d]))return!1;return!0}if(h!=p)return!1;var C=a instanceof Date,w=c instanceof Date;if(C!=w)return!1;if(C&&w)return a.getTime()==c.getTime();var I=a instanceof RegExp,F=c instanceof RegExp;if(I!=F)return!1;if(I&&F)return a.toString()==c.toString();var U=t(a);if(k=U.length,k!==t(c).length)return!1;for(d=k;d--!==0;)if(!r.call(c,U[d]))return!1;if(n&&a instanceof Element&&c instanceof Element)return a===c;for(d=k;d--!==0;)if(M=U[d],!(M==="_owner"&&a.$$typeof)&&!s(a[M],c[M]))return!1;return!0}return a!==a&&c!==c}Z.exports=function(c,h){try{return s(c,h)}catch(p){if(p.message&&p.message.match(/stack|recursion/i)||p.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",p.name,p.message),!1;throw p}}},64593:(Z,v,t)=>{"use strict";t.d(v,{q:()=>Kt});var r=t(45697),n=t.n(r),s=t(83524),a=t.n(s),c=t(96909),h=t.n(c),p=t(67294),d=t(27418),k=t.n(d),M={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},C={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},w=Object.keys(C).map(function(Tn){return C[Tn]}),I={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},F={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},U={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},B=Object.keys(F).reduce(function(Tn,ht){return Tn[F[ht]]=ht,Tn},{}),N=[C.NOSCRIPT,C.SCRIPT,C.STYLE],D="data-react-helmet",x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Tn){return typeof Tn}:function(Tn){return Tn&&typeof Symbol=="function"&&Tn.constructor===Symbol&&Tn!==Symbol.prototype?"symbol":typeof Tn},T=function(Tn,ht){if(!(Tn instanceof ht))throw new TypeError("Cannot call a class as a function")},u=function(){function Tn(ht,ot){for(var Je=0;Je<ot.length;Je++){var wt=ot[Je];wt.enumerable=wt.enumerable||!1,wt.configurable=!0,"value"in wt&&(wt.writable=!0),Object.defineProperty(ht,wt.key,wt)}}return function(ht,ot,Je){return ot&&Tn(ht.prototype,ot),Je&&Tn(ht,Je),ht}}(),b=Object.assign||function(Tn){for(var ht=1;ht<arguments.length;ht++){var ot=arguments[ht];for(var Je in ot)Object.prototype.hasOwnProperty.call(ot,Je)&&(Tn[Je]=ot[Je])}return Tn},E=function(Tn,ht){if(typeof ht!="function"&&ht!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ht);Tn.prototype=Object.create(ht&&ht.prototype,{constructor:{value:Tn,enumerable:!1,writable:!0,configurable:!0}}),ht&&(Object.setPrototypeOf?Object.setPrototypeOf(Tn,ht):Tn.__proto__=ht)},A=function(Tn,ht){var ot={};for(var Je in Tn)ht.indexOf(Je)>=0||Object.prototype.hasOwnProperty.call(Tn,Je)&&(ot[Je]=Tn[Je]);return ot},R=function(Tn,ht){if(!Tn)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ht&&(typeof ht=="object"||typeof ht=="function")?ht:Tn},H=function(ht){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return ot===!1?String(ht):String(ht).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},z=function(ht){var ot=oe(ht,C.TITLE),Je=oe(ht,U.TITLE_TEMPLATE);if(Je&&ot)return Je.replace(/%s/g,function(){return Array.isArray(ot)?ot.join(""):ot});var wt=oe(ht,U.DEFAULT_TITLE);return ot||wt||void 0},V=function(ht){return oe(ht,U.ON_CHANGE_CLIENT_STATE)||function(){}},$=function(ht,ot){return ot.filter(function(Je){return typeof Je[ht]<"u"}).map(function(Je){return Je[ht]}).reduce(function(Je,wt){return b({},Je,wt)},{})},ee=function(ht,ot){return ot.filter(function(Je){return typeof Je[C.BASE]<"u"}).map(function(Je){return Je[C.BASE]}).reverse().reduce(function(Je,wt){if(!Je.length)for(var ft=Object.keys(wt),vn=0;vn<ft.length;vn++){var ut=ft[vn],Wt=ut.toLowerCase();if(ht.indexOf(Wt)!==-1&&wt[Wt])return Je.concat(wt)}return Je},[])},q=function(ht,ot,Je){var wt={};return Je.filter(function(ft){return Array.isArray(ft[ht])?!0:(typeof ft[ht]<"u"&&fe("Helmet: "+ht+' should be of type "Array". Instead found type "'+x(ft[ht])+'"'),!1)}).map(function(ft){return ft[ht]}).reverse().reduce(function(ft,vn){var ut={};vn.filter(function(ye){for(var Xe=void 0,Ze=Object.keys(ye),lt=0;lt<Ze.length;lt++){var _t=Ze[lt],zt=_t.toLowerCase();ot.indexOf(zt)!==-1&&!(Xe===I.REL&&ye[Xe].toLowerCase()==="canonical")&&!(zt===I.REL&&ye[zt].toLowerCase()==="stylesheet")&&(Xe=zt),ot.indexOf(_t)!==-1&&(_t===I.INNER_HTML||_t===I.CSS_TEXT||_t===I.ITEM_PROP)&&(Xe=_t)}if(!Xe||!ye[Xe])return!1;var Vt=ye[Xe].toLowerCase();return wt[Xe]||(wt[Xe]={}),ut[Xe]||(ut[Xe]={}),wt[Xe][Vt]?!1:(ut[Xe][Vt]=!0,!0)}).reverse().forEach(function(ye){return ft.push(ye)});for(var Wt=Object.keys(ut),ae=0;ae<Wt.length;ae++){var ne=Wt[ae],ge=k()({},wt[ne],ut[ne]);wt[ne]=ge}return ft},[]).reverse()},oe=function(ht,ot){for(var Je=ht.length-1;Je>=0;Je--){var wt=ht[Je];if(wt.hasOwnProperty(ot))return wt[ot]}return null},X=function(ht){return{baseTag:ee([I.HREF,I.TARGET],ht),bodyAttributes:$(M.BODY,ht),defer:oe(ht,U.DEFER),encode:oe(ht,U.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:$(M.HTML,ht),linkTags:q(C.LINK,[I.REL,I.HREF],ht),metaTags:q(C.META,[I.NAME,I.CHARSET,I.HTTPEQUIV,I.PROPERTY,I.ITEM_PROP],ht),noscriptTags:q(C.NOSCRIPT,[I.INNER_HTML],ht),onChangeClientState:V(ht),scriptTags:q(C.SCRIPT,[I.SRC,I.INNER_HTML],ht),styleTags:q(C.STYLE,[I.CSS_TEXT],ht),title:z(ht),titleAttributes:$(M.TITLE,ht)}},pe=function(){var Tn=Date.now();return function(ht){var ot=Date.now();ot-Tn>16?(Tn=ot,ht(ot)):setTimeout(function(){pe(ht)},0)}}(),Ie=function(ht){return clearTimeout(ht)},se=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||pe:t.g.requestAnimationFrame||pe,be=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Ie:t.g.cancelAnimationFrame||Ie,fe=function(ht){return console&&typeof console.warn=="function"&&console.warn(ht)},ue=null,we=function(ht){ue&&be(ue),ht.defer?ue=se(function(){Me(ht,function(){ue=null})}):(Me(ht),ue=null)},Me=function(ht,ot){var Je=ht.baseTag,wt=ht.bodyAttributes,ft=ht.htmlAttributes,vn=ht.linkTags,ut=ht.metaTags,Wt=ht.noscriptTags,ae=ht.onChangeClientState,ne=ht.scriptTags,ge=ht.styleTags,ye=ht.title,Xe=ht.titleAttributes;Ye(C.BODY,wt),Ye(C.HTML,ft),Ne(ye,Xe);var Ze={baseTag:mt(C.BASE,Je),linkTags:mt(C.LINK,vn),metaTags:mt(C.META,ut),noscriptTags:mt(C.NOSCRIPT,Wt),scriptTags:mt(C.SCRIPT,ne),styleTags:mt(C.STYLE,ge)},lt={},_t={};Object.keys(Ze).forEach(function(zt){var Vt=Ze[zt],sn=Vt.newTags,yn=Vt.oldTags;sn.length&&(lt[zt]=sn),yn.length&&(_t[zt]=Ze[zt].oldTags)}),ot&&ot(),ae(ht,lt,_t)},Ce=function(ht){return Array.isArray(ht)?ht.join(""):ht},Ne=function(ht,ot){typeof ht<"u"&&document.title!==ht&&(document.title=Ce(ht)),Ye(C.TITLE,ot)},Ye=function(ht,ot){var Je=document.getElementsByTagName(ht)[0];if(Je){for(var wt=Je.getAttribute(D),ft=wt?wt.split(","):[],vn=[].concat(ft),ut=Object.keys(ot),Wt=0;Wt<ut.length;Wt++){var ae=ut[Wt],ne=ot[ae]||"";Je.getAttribute(ae)!==ne&&Je.setAttribute(ae,ne),ft.indexOf(ae)===-1&&ft.push(ae);var ge=vn.indexOf(ae);ge!==-1&&vn.splice(ge,1)}for(var ye=vn.length-1;ye>=0;ye--)Je.removeAttribute(vn[ye]);ft.length===vn.length?Je.removeAttribute(D):Je.getAttribute(D)!==ut.join(",")&&Je.setAttribute(D,ut.join(","))}},mt=function(ht,ot){var Je=document.head||document.querySelector(C.HEAD),wt=Je.querySelectorAll(ht+"["+D+"]"),ft=Array.prototype.slice.call(wt),vn=[],ut=void 0;return ot&&ot.length&&ot.forEach(function(Wt){var ae=document.createElement(ht);for(var ne in Wt)if(Wt.hasOwnProperty(ne))if(ne===I.INNER_HTML)ae.innerHTML=Wt.innerHTML;else if(ne===I.CSS_TEXT)ae.styleSheet?ae.styleSheet.cssText=Wt.cssText:ae.appendChild(document.createTextNode(Wt.cssText));else{var ge=typeof Wt[ne]>"u"?"":Wt[ne];ae.setAttribute(ne,ge)}ae.setAttribute(D,"true"),ft.some(function(ye,Xe){return ut=Xe,ae.isEqualNode(ye)})?ft.splice(ut,1):vn.push(ae)}),ft.forEach(function(Wt){return Wt.parentNode.removeChild(Wt)}),vn.forEach(function(Wt){return Je.appendChild(Wt)}),{oldTags:ft,newTags:vn}},Ct=function(ht){return Object.keys(ht).reduce(function(ot,Je){var wt=typeof ht[Je]<"u"?Je+'="'+ht[Je]+'"':""+Je;return ot?ot+" "+wt:wt},"")},ln=function(ht,ot,Je,wt){var ft=Ct(Je),vn=Ce(ot);return ft?"<"+ht+" "+D+'="true" '+ft+">"+H(vn,wt)+"</"+ht+">":"<"+ht+" "+D+'="true">'+H(vn,wt)+"</"+ht+">"},$e=function(ht,ot,Je){return ot.reduce(function(wt,ft){var vn=Object.keys(ft).filter(function(ae){return!(ae===I.INNER_HTML||ae===I.CSS_TEXT)}).reduce(function(ae,ne){var ge=typeof ft[ne]>"u"?ne:ne+'="'+H(ft[ne],Je)+'"';return ae?ae+" "+ge:ge},""),ut=ft.innerHTML||ft.cssText||"",Wt=N.indexOf(ht)===-1;return wt+"<"+ht+" "+D+'="true" '+vn+(Wt?"/>":">"+ut+"</"+ht+">")},"")},Qe=function(ht){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(ht).reduce(function(Je,wt){return Je[F[wt]||wt]=ht[wt],Je},ot)},bt=function(ht){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(ht).reduce(function(Je,wt){return Je[B[wt]||wt]=ht[wt],Je},ot)},It=function(ht,ot,Je){var wt,ft=(wt={key:ot},wt[D]=!0,wt),vn=Qe(Je,ft);return[p.createElement(C.TITLE,vn,ot)]},mn=function(ht,ot){return ot.map(function(Je,wt){var ft,vn=(ft={key:wt},ft[D]=!0,ft);return Object.keys(Je).forEach(function(ut){var Wt=F[ut]||ut;if(Wt===I.INNER_HTML||Wt===I.CSS_TEXT){var ae=Je.innerHTML||Je.cssText;vn.dangerouslySetInnerHTML={__html:ae}}else vn[Wt]=Je[ut]}),p.createElement(ht,vn)})},un=function(ht,ot,Je){switch(ht){case C.TITLE:return{toComponent:function(){return It(ht,ot.title,ot.titleAttributes,Je)},toString:function(){return ln(ht,ot.title,ot.titleAttributes,Je)}};case M.BODY:case M.HTML:return{toComponent:function(){return Qe(ot)},toString:function(){return Ct(ot)}};default:return{toComponent:function(){return mn(ht,ot)},toString:function(){return $e(ht,ot,Je)}}}},Be=function(ht){var ot=ht.baseTag,Je=ht.bodyAttributes,wt=ht.encode,ft=ht.htmlAttributes,vn=ht.linkTags,ut=ht.metaTags,Wt=ht.noscriptTags,ae=ht.scriptTags,ne=ht.styleTags,ge=ht.title,ye=ge===void 0?"":ge,Xe=ht.titleAttributes;return{base:un(C.BASE,ot,wt),bodyAttributes:un(M.BODY,Je,wt),htmlAttributes:un(M.HTML,ft,wt),link:un(C.LINK,vn,wt),meta:un(C.META,ut,wt),noscript:un(C.NOSCRIPT,Wt,wt),script:un(C.SCRIPT,ae,wt),style:un(C.STYLE,ne,wt),title:un(C.TITLE,{title:ye,titleAttributes:Xe},wt)}},je=function(ht){var ot,Je;return Je=ot=function(wt){E(ft,wt);function ft(){return T(this,ft),R(this,wt.apply(this,arguments))}return ft.prototype.shouldComponentUpdate=function(ut){return!h()(this.props,ut)},ft.prototype.mapNestedChildrenToProps=function(ut,Wt){if(!Wt)return null;switch(ut.type){case C.SCRIPT:case C.NOSCRIPT:return{innerHTML:Wt};case C.STYLE:return{cssText:Wt}}throw new Error("<"+ut.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},ft.prototype.flattenArrayTypeChildren=function(ut){var Wt,ae=ut.child,ne=ut.arrayTypeChildren,ge=ut.newChildProps,ye=ut.nestedChildren;return b({},ne,(Wt={},Wt[ae.type]=[].concat(ne[ae.type]||[],[b({},ge,this.mapNestedChildrenToProps(ae,ye))]),Wt))},ft.prototype.mapObjectTypeChildren=function(ut){var Wt,ae,ne=ut.child,ge=ut.newProps,ye=ut.newChildProps,Xe=ut.nestedChildren;switch(ne.type){case C.TITLE:return b({},ge,(Wt={},Wt[ne.type]=Xe,Wt.titleAttributes=b({},ye),Wt));case C.BODY:return b({},ge,{bodyAttributes:b({},ye)});case C.HTML:return b({},ge,{htmlAttributes:b({},ye)})}return b({},ge,(ae={},ae[ne.type]=b({},ye),ae))},ft.prototype.mapArrayTypeChildrenToProps=function(ut,Wt){var ae=b({},Wt);return Object.keys(ut).forEach(function(ne){var ge;ae=b({},ae,(ge={},ge[ne]=ut[ne],ge))}),ae},ft.prototype.warnOnInvalidChildren=function(ut,Wt){return!0},ft.prototype.mapChildrenToProps=function(ut,Wt){var ae=this,ne={};return p.Children.forEach(ut,function(ge){if(!(!ge||!ge.props)){var ye=ge.props,Xe=ye.children,Ze=A(ye,["children"]),lt=bt(Ze);switch(ae.warnOnInvalidChildren(ge,Xe),ge.type){case C.LINK:case C.META:case C.NOSCRIPT:case C.SCRIPT:case C.STYLE:ne=ae.flattenArrayTypeChildren({child:ge,arrayTypeChildren:ne,newChildProps:lt,nestedChildren:Xe});break;default:Wt=ae.mapObjectTypeChildren({child:ge,newProps:Wt,newChildProps:lt,nestedChildren:Xe});break}}}),Wt=this.mapArrayTypeChildrenToProps(ne,Wt),Wt},ft.prototype.render=function(){var ut=this.props,Wt=ut.children,ae=A(ut,["children"]),ne=b({},ae);return Wt&&(ne=this.mapChildrenToProps(Wt,ne)),p.createElement(ht,ne)},u(ft,null,[{key:"canUseDOM",set:function(ut){ht.canUseDOM=ut}}]),ft}(p.Component),ot.propTypes={base:n().object,bodyAttributes:n().object,children:n().oneOfType([n().arrayOf(n().node),n().node]),defaultTitle:n().string,defer:n().bool,encodeSpecialCharacters:n().bool,htmlAttributes:n().object,link:n().arrayOf(n().object),meta:n().arrayOf(n().object),noscript:n().arrayOf(n().object),onChangeClientState:n().func,script:n().arrayOf(n().object),style:n().arrayOf(n().object),title:n().string,titleAttributes:n().object,titleTemplate:n().string},ot.defaultProps={defer:!0,encodeSpecialCharacters:!0},ot.peek=ht.peek,ot.rewind=function(){var wt=ht.rewind();return wt||(wt=Be({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),wt},Je},$t=function(){return null},et=a()(X,we,Be)($t),Kt=je(et);Kt.renderStatic=Kt.rewind;var kn=null},96909:Z=>{var v=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function s(a,c){if(a===c)return!0;if(a&&c&&typeof a=="object"&&typeof c=="object"){if(a.constructor!==c.constructor)return!1;var h,p,d;if(Array.isArray(a)){if(h=a.length,h!=c.length)return!1;for(p=h;p--!==0;)if(!s(a[p],c[p]))return!1;return!0}var k;if(t&&a instanceof Map&&c instanceof Map){if(a.size!==c.size)return!1;for(k=a.entries();!(p=k.next()).done;)if(!c.has(p.value[0]))return!1;for(k=a.entries();!(p=k.next()).done;)if(!s(p.value[1],c.get(p.value[0])))return!1;return!0}if(r&&a instanceof Set&&c instanceof Set){if(a.size!==c.size)return!1;for(k=a.entries();!(p=k.next()).done;)if(!c.has(p.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(c)){if(h=a.length,h!=c.length)return!1;for(p=h;p--!==0;)if(a[p]!==c[p])return!1;return!0}if(a.constructor===RegExp)return a.source===c.source&&a.flags===c.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof c.valueOf=="function")return a.valueOf()===c.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof c.toString=="function")return a.toString()===c.toString();if(d=Object.keys(a),h=d.length,h!==Object.keys(c).length)return!1;for(p=h;p--!==0;)if(!Object.prototype.hasOwnProperty.call(c,d[p]))return!1;if(v&&a instanceof Element)return!1;for(p=h;p--!==0;)if(!((d[p]==="_owner"||d[p]==="__v"||d[p]==="__o")&&a.$$typeof)&&!s(a[d[p]],c[d[p]]))return!1;return!0}return a!==a&&c!==c}Z.exports=function(c,h){try{return s(c,h)}catch(p){if((p.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw p}}},74806:(Z,v,t)=>{"use strict";t.d(v,{_y:()=>k,zt:()=>d});var r=t(67294),n=t(8679),s=t.n(n);function a(C){return C.displayName||C.name||"Component"}var c=typeof window<"u"?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=r.createContext(null)):r.createContext(null),h=c.Consumer,p=c.Provider,d=p,k=c;function M(C,w){var I=w||{},F=I.intlPropName,U=F===void 0?"intl":F,B=I.forwardRef,N=B===void 0?!1:B,D=I.enforceContext,x=D===void 0?!0:D,T=function(u){return React.createElement(h,null,function(b){var E;x&&invariantIntlContext(b);var A=(E={},E[U]=b,E);return React.createElement(C,__assign({},u,A,{ref:N?u.forwardedRef:null}))})};return T.displayName="injectIntl(".concat(a(C),")"),T.WrappedComponent=C,N?hoistNonReactStatics(React.forwardRef(function(u,b){return React.createElement(T,__assign({},u,{forwardedRef:b}))}),C):hoistNonReactStatics(T,C)}},86896:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>a});var r=t(67294),n=t(74806),s=t(680);function a(){var c=r.useContext(n._y);return(0,s.lq)(c),c}},680:(Z,v,t)=>{"use strict";t.d(v,{Z0:()=>h,dt:()=>p,lq:()=>c,wU:()=>d});var r=t(97582),n=t(67294),s=t(25687),a=t(82644);function c(k){(0,s.kG)(k,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var h=(0,r.pi)((0,r.pi)({},a.Z0),{textComponent:n.Fragment});function p(k){return function(M){return k(n.Children.toArray(M))}}function d(k,M){if(k===M)return!0;if(!k||!M)return!1;var C=Object.keys(k),w=Object.keys(M),I=C.length;if(w.length!==I)return!1;for(var F=0;F<I;F++){var U=C[F];if(k[U]!==M[U]||!Object.prototype.hasOwnProperty.call(M,U))return!1}return!0}},59852:(Z,v,t)=>{"use strict";t.d(v,{j:()=>c});var r=t(94578),n=t(52943),s=t(52288),a=function(h){(0,r.Z)(p,h);function p(){var k;return k=h.call(this)||this,k.setup=function(M){var C;if(!s.sk&&((C=window)!=null&&C.addEventListener)){var w=function(){return M()};return window.addEventListener("visibilitychange",w,!1),window.addEventListener("focus",w,!1),function(){window.removeEventListener("visibilitychange",w),window.removeEventListener("focus",w)}}},k}var d=p.prototype;return d.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},d.onUnsubscribe=function(){if(!this.hasListeners()){var M;(M=this.cleanup)==null||M.call(this),this.cleanup=void 0}},d.setEventListener=function(M){var C,w=this;this.setup=M,(C=this.cleanup)==null||C.call(this),this.cleanup=M(function(I){typeof I=="boolean"?w.setFocused(I):w.onFocus()})},d.setFocused=function(M){this.focused=M,M&&this.onFocus()},d.onFocus=function(){this.listeners.forEach(function(M){M()})},d.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},p}(n.l),c=new a},46747:(Z,v,t)=>{"use strict";t.d(v,{QueryClient:()=>r.S});var r=t(64195),n=t(86755),s=t.n(n);t.o(n,"QueryClientProvider")&&t.d(v,{QueryClientProvider:function(){return n.QueryClientProvider}}),t.o(n,"useInfiniteQuery")&&t.d(v,{useInfiniteQuery:function(){return n.useInfiniteQuery}}),t.o(n,"useMutation")&&t.d(v,{useMutation:function(){return n.useMutation}}),t.o(n,"useQueries")&&t.d(v,{useQueries:function(){return n.useQueries}}),t.o(n,"useQuery")&&t.d(v,{useQuery:function(){return n.useQuery}}),t.o(n,"useQueryClient")&&t.d(v,{useQueryClient:function(){return n.useQueryClient}})},36997:(Z,v,t)=>{"use strict";t.d(v,{Gm:()=>s,Qy:()=>h,ZF:()=>p});var r=t(21216),n=t(52288);function s(){return{onFetch:function(k){k.fetchFn=function(){var M,C,w,I,F,U,B=(M=k.fetchOptions)==null||(C=M.meta)==null?void 0:C.refetchPage,N=(w=k.fetchOptions)==null||(I=w.meta)==null?void 0:I.fetchMore,D=N?.pageParam,x=N?.direction==="forward",T=N?.direction==="backward",u=((F=k.state.data)==null?void 0:F.pages)||[],b=((U=k.state.data)==null?void 0:U.pageParams)||[],E=(0,n.G9)(),A=E?.signal,R=b,H=!1,z=k.options.queryFn||function(){return Promise.reject("Missing queryFn")},V=function(fe,ue,we,Me){return R=Me?[ue].concat(R):[].concat(R,[ue]),Me?[we].concat(fe):[].concat(fe,[we])},$=function(fe,ue,we,Me){if(H)return Promise.reject("Cancelled");if(typeof we>"u"&&!ue&&fe.length)return Promise.resolve(fe);var Ce={queryKey:k.queryKey,signal:A,pageParam:we,meta:k.meta},Ne=z(Ce),Ye=Promise.resolve(Ne).then(function(Ct){return V(fe,we,Ct,Me)});if((0,r.LE)(Ne)){var mt=Ye;mt.cancel=Ne.cancel}return Ye},ee;if(!u.length)ee=$([]);else if(x){var q=typeof D<"u",oe=q?D:a(k.options,u);ee=$(u,q,oe)}else if(T){var X=typeof D<"u",pe=X?D:c(k.options,u);ee=$(u,X,pe,!0)}else(function(){R=[];var be=typeof k.options.getNextPageParam>"u",fe=B&&u[0]?B(u[0],0,u):!0;ee=fe?$([],be,b[0]):Promise.resolve(V([],b[0],u[0]));for(var ue=function(Ce){ee=ee.then(function(Ne){var Ye=B&&u[Ce]?B(u[Ce],Ce,u):!0;if(Ye){var mt=be?b[Ce]:a(k.options,Ne);return $(Ne,be,mt)}return Promise.resolve(V(Ne,b[Ce],u[Ce]))})},we=1;we<u.length;we++)ue(we)})();var Ie=ee.then(function(be){return{pages:be,pageParams:R}}),se=Ie;return se.cancel=function(){H=!0,E?.abort(),(0,r.LE)(ee)&&ee.cancel()},Ie}}}}function a(d,k){return d.getNextPageParam==null?void 0:d.getNextPageParam(k[k.length-1],k)}function c(d,k){return d.getPreviousPageParam==null?void 0:d.getPreviousPageParam(k[0],k)}function h(d,k){if(d.getNextPageParam&&Array.isArray(k)){var M=a(d,k);return typeof M<"u"&&M!==null&&M!==!1}}function p(d,k){if(d.getPreviousPageParam&&Array.isArray(k)){var M=c(d,k);return typeof M<"u"&&M!==null&&M!==!1}}},41909:(Z,v,t)=>{"use strict";t.d(v,{E:()=>s,j:()=>n});var r=console;function n(){return r}function s(a){r=a}},81262:(Z,v,t)=>{"use strict";t.d(v,{R:()=>p,m:()=>h});var r=t(87462),n=t(41909),s=t(101),a=t(21216),c=t(52288),h=function(){function k(C){this.options=(0,r.Z)({},C.defaultOptions,C.options),this.mutationId=C.mutationId,this.mutationCache=C.mutationCache,this.observers=[],this.state=C.state||p(),this.meta=C.meta}var M=k.prototype;return M.setState=function(w){this.dispatch({type:"setState",state:w})},M.addObserver=function(w){this.observers.indexOf(w)===-1&&this.observers.push(w)},M.removeObserver=function(w){this.observers=this.observers.filter(function(I){return I!==w})},M.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(c.ZT).catch(c.ZT)):Promise.resolve()},M.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},M.execute=function(){var w=this,I,F=this.state.status==="loading",U=Promise.resolve();return F||(this.dispatch({type:"loading",variables:this.options.variables}),U=U.then(function(){w.mutationCache.config.onMutate==null||w.mutationCache.config.onMutate(w.state.variables,w)}).then(function(){return w.options.onMutate==null?void 0:w.options.onMutate(w.state.variables)}).then(function(B){B!==w.state.context&&w.dispatch({type:"loading",context:B,variables:w.state.variables})})),U.then(function(){return w.executeMutation()}).then(function(B){I=B,w.mutationCache.config.onSuccess==null||w.mutationCache.config.onSuccess(I,w.state.variables,w.state.context,w)}).then(function(){return w.options.onSuccess==null?void 0:w.options.onSuccess(I,w.state.variables,w.state.context)}).then(function(){return w.options.onSettled==null?void 0:w.options.onSettled(I,null,w.state.variables,w.state.context)}).then(function(){return w.dispatch({type:"success",data:I}),I}).catch(function(B){return w.mutationCache.config.onError==null||w.mutationCache.config.onError(B,w.state.variables,w.state.context,w),(0,n.j)().error(B),Promise.resolve().then(function(){return w.options.onError==null?void 0:w.options.onError(B,w.state.variables,w.state.context)}).then(function(){return w.options.onSettled==null?void 0:w.options.onSettled(void 0,B,w.state.variables,w.state.context)}).then(function(){throw w.dispatch({type:"error",error:B}),B})})},M.executeMutation=function(){var w=this,I;return this.retryer=new a.m4({fn:function(){return w.options.mutationFn?w.options.mutationFn(w.state.variables):Promise.reject("No mutationFn found")},onFail:function(){w.dispatch({type:"failed"})},onPause:function(){w.dispatch({type:"pause"})},onContinue:function(){w.dispatch({type:"continue"})},retry:(I=this.options.retry)!=null?I:0,retryDelay:this.options.retryDelay}),this.retryer.promise},M.dispatch=function(w){var I=this;this.state=d(this.state,w),s.V.batch(function(){I.observers.forEach(function(F){F.onMutationUpdate(w)}),I.mutationCache.notify(I)})},k}();function p(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function d(k,M){switch(M.type){case"failed":return(0,r.Z)({},k,{failureCount:k.failureCount+1});case"pause":return(0,r.Z)({},k,{isPaused:!0});case"continue":return(0,r.Z)({},k,{isPaused:!1});case"loading":return(0,r.Z)({},k,{context:M.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:M.variables});case"success":return(0,r.Z)({},k,{data:M.data,error:null,status:"success",isPaused:!1});case"error":return(0,r.Z)({},k,{data:void 0,error:M.error,failureCount:k.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,r.Z)({},k,M.state);default:return k}}},101:(Z,v,t)=>{"use strict";t.d(v,{V:()=>s});var r=t(52288),n=function(){function a(){this.queue=[],this.transactions=0,this.notifyFn=function(h){h()},this.batchNotifyFn=function(h){h()}}var c=a.prototype;return c.batch=function(p){var d;this.transactions++;try{d=p()}finally{this.transactions--,this.transactions||this.flush()}return d},c.schedule=function(p){var d=this;this.transactions?this.queue.push(p):(0,r.A4)(function(){d.notifyFn(p)})},c.batchCalls=function(p){var d=this;return function(){for(var k=arguments.length,M=new Array(k),C=0;C<k;C++)M[C]=arguments[C];d.schedule(function(){p.apply(void 0,M)})}},c.flush=function(){var p=this,d=this.queue;this.queue=[],d.length&&(0,r.A4)(function(){p.batchNotifyFn(function(){d.forEach(function(k){p.notifyFn(k)})})})},c.setNotifyFunction=function(p){this.notifyFn=p},c.setBatchNotifyFunction=function(p){this.batchNotifyFn=p},a}(),s=new n},40068:(Z,v,t)=>{"use strict";t.d(v,{N:()=>c});var r=t(94578),n=t(52943),s=t(52288),a=function(h){(0,r.Z)(p,h);function p(){var k;return k=h.call(this)||this,k.setup=function(M){var C;if(!s.sk&&((C=window)!=null&&C.addEventListener)){var w=function(){return M()};return window.addEventListener("online",w,!1),window.addEventListener("offline",w,!1),function(){window.removeEventListener("online",w),window.removeEventListener("offline",w)}}},k}var d=p.prototype;return d.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},d.onUnsubscribe=function(){if(!this.hasListeners()){var M;(M=this.cleanup)==null||M.call(this),this.cleanup=void 0}},d.setEventListener=function(M){var C,w=this;this.setup=M,(C=this.cleanup)==null||C.call(this),this.cleanup=M(function(I){typeof I=="boolean"?w.setOnline(I):w.onOnline()})},d.setOnline=function(M){this.online=M,M&&this.onOnline()},d.onOnline=function(){this.listeners.forEach(function(M){M()})},d.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},p}(n.l),c=new a},64195:(Z,v,t)=>{"use strict";t.d(v,{S:()=>U});var r=t(87462),n=t(52288),s=t(94578),a=t(101),c=t(41909),h=t(21216),p=function(){function B(D){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=D.defaultOptions,this.setOptions(D.options),this.observers=[],this.cache=D.cache,this.queryKey=D.queryKey,this.queryHash=D.queryHash,this.initialState=D.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=D.meta,this.scheduleGc()}var N=B.prototype;return N.setOptions=function(x){var T;this.options=(0,r.Z)({},this.defaultOptions,x),this.meta=x?.meta,this.cacheTime=Math.max(this.cacheTime||0,(T=this.options.cacheTime)!=null?T:5*60*1e3)},N.setDefaultOptions=function(x){this.defaultOptions=x},N.scheduleGc=function(){var x=this;this.clearGcTimeout(),(0,n.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){x.optionalRemove()},this.cacheTime))},N.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},N.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},N.setData=function(x,T){var u,b,E=this.state.data,A=(0,n.SE)(x,E);return(u=(b=this.options).isDataEqual)!=null&&u.call(b,E,A)?A=E:this.options.structuralSharing!==!1&&(A=(0,n.Q$)(E,A)),this.dispatch({data:A,type:"success",dataUpdatedAt:T?.updatedAt}),A},N.setState=function(x,T){this.dispatch({type:"setState",state:x,setStateOptions:T})},N.cancel=function(x){var T,u=this.promise;return(T=this.retryer)==null||T.cancel(x),u?u.then(n.ZT).catch(n.ZT):Promise.resolve()},N.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},N.reset=function(){this.destroy(),this.setState(this.initialState)},N.isActive=function(){return this.observers.some(function(x){return x.options.enabled!==!1})},N.isFetching=function(){return this.state.isFetching},N.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(x){return x.getCurrentResult().isStale})},N.isStaleByTime=function(x){return x===void 0&&(x=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,n.Kp)(this.state.dataUpdatedAt,x)},N.onFocus=function(){var x,T=this.observers.find(function(u){return u.shouldFetchOnWindowFocus()});T&&T.refetch(),(x=this.retryer)==null||x.continue()},N.onOnline=function(){var x,T=this.observers.find(function(u){return u.shouldFetchOnReconnect()});T&&T.refetch(),(x=this.retryer)==null||x.continue()},N.addObserver=function(x){this.observers.indexOf(x)===-1&&(this.observers.push(x),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:x}))},N.removeObserver=function(x){this.observers.indexOf(x)!==-1&&(this.observers=this.observers.filter(function(T){return T!==x}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:x}))},N.getObserversCount=function(){return this.observers.length},N.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},N.fetch=function(x,T){var u=this,b,E,A;if(this.state.isFetching){if(this.state.dataUpdatedAt&&T?.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var R;return(R=this.retryer)==null||R.continueRetry(),this.promise}}if(x&&this.setOptions(x),!this.options.queryFn){var H=this.observers.find(function(pe){return pe.options.queryFn});H&&this.setOptions(H.options)}var z=(0,n.mc)(this.queryKey),V=(0,n.G9)(),$={queryKey:z,pageParam:void 0,meta:this.meta};Object.defineProperty($,"signal",{enumerable:!0,get:function(){if(V)return u.abortSignalConsumed=!0,V.signal}});var ee=function(){return u.options.queryFn?(u.abortSignalConsumed=!1,u.options.queryFn($)):Promise.reject("Missing queryFn")},q={fetchOptions:T,options:this.options,queryKey:z,state:this.state,fetchFn:ee,meta:this.meta};if((b=this.options.behavior)!=null&&b.onFetch){var oe;(oe=this.options.behavior)==null||oe.onFetch(q)}if(this.revertState=this.state,!this.state.isFetching||this.state.fetchMeta!==((E=q.fetchOptions)==null?void 0:E.meta)){var X;this.dispatch({type:"fetch",meta:(X=q.fetchOptions)==null?void 0:X.meta})}return this.retryer=new h.m4({fn:q.fetchFn,abort:V==null||(A=V.abort)==null?void 0:A.bind(V),onSuccess:function(Ie){u.setData(Ie),u.cache.config.onSuccess==null||u.cache.config.onSuccess(Ie,u),u.cacheTime===0&&u.optionalRemove()},onError:function(Ie){(0,h.DV)(Ie)&&Ie.silent||u.dispatch({type:"error",error:Ie}),(0,h.DV)(Ie)||(u.cache.config.onError==null||u.cache.config.onError(Ie,u),(0,c.j)().error(Ie)),u.cacheTime===0&&u.optionalRemove()},onFail:function(){u.dispatch({type:"failed"})},onPause:function(){u.dispatch({type:"pause"})},onContinue:function(){u.dispatch({type:"continue"})},retry:q.options.retry,retryDelay:q.options.retryDelay}),this.promise=this.retryer.promise,this.promise},N.dispatch=function(x){var T=this;this.state=this.reducer(this.state,x),a.V.batch(function(){T.observers.forEach(function(u){u.onQueryUpdate(x)}),T.cache.notify({query:T,type:"queryUpdated",action:x})})},N.getDefaultState=function(x){var T=typeof x.initialData=="function"?x.initialData():x.initialData,u=typeof x.initialData<"u",b=u?typeof x.initialDataUpdatedAt=="function"?x.initialDataUpdatedAt():x.initialDataUpdatedAt:0,E=typeof T<"u";return{data:T,dataUpdateCount:0,dataUpdatedAt:E?b??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:E?"success":"idle"}},N.reducer=function(x,T){var u,b;switch(T.type){case"failed":return(0,r.Z)({},x,{fetchFailureCount:x.fetchFailureCount+1});case"pause":return(0,r.Z)({},x,{isPaused:!0});case"continue":return(0,r.Z)({},x,{isPaused:!1});case"fetch":return(0,r.Z)({},x,{fetchFailureCount:0,fetchMeta:(u=T.meta)!=null?u:null,isFetching:!0,isPaused:!1},!x.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,r.Z)({},x,{data:T.data,dataUpdateCount:x.dataUpdateCount+1,dataUpdatedAt:(b=T.dataUpdatedAt)!=null?b:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var E=T.error;return(0,h.DV)(E)&&E.revert&&this.revertState?(0,r.Z)({},this.revertState):(0,r.Z)({},x,{error:E,errorUpdateCount:x.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:x.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,r.Z)({},x,{isInvalidated:!0});case"setState":return(0,r.Z)({},x,T.state);default:return x}},B}(),d=t(52943),k=function(B){(0,s.Z)(N,B);function N(x){var T;return T=B.call(this)||this,T.config=x||{},T.queries=[],T.queriesMap={},T}var D=N.prototype;return D.build=function(T,u,b){var E,A=u.queryKey,R=(E=u.queryHash)!=null?E:(0,n.Rm)(A,u),H=this.get(R);return H||(H=new p({cache:this,queryKey:A,queryHash:R,options:T.defaultQueryOptions(u),state:b,defaultOptions:T.getQueryDefaults(A),meta:u.meta}),this.add(H)),H},D.add=function(T){this.queriesMap[T.queryHash]||(this.queriesMap[T.queryHash]=T,this.queries.push(T),this.notify({type:"queryAdded",query:T}))},D.remove=function(T){var u=this.queriesMap[T.queryHash];u&&(T.destroy(),this.queries=this.queries.filter(function(b){return b!==T}),u===T&&delete this.queriesMap[T.queryHash],this.notify({type:"queryRemoved",query:T}))},D.clear=function(){var T=this;a.V.batch(function(){T.queries.forEach(function(u){T.remove(u)})})},D.get=function(T){return this.queriesMap[T]},D.getAll=function(){return this.queries},D.find=function(T,u){var b=(0,n.I6)(T,u),E=b[0];return typeof E.exact>"u"&&(E.exact=!0),this.queries.find(function(A){return(0,n._x)(E,A)})},D.findAll=function(T,u){var b=(0,n.I6)(T,u),E=b[0];return Object.keys(E).length>0?this.queries.filter(function(A){return(0,n._x)(E,A)}):this.queries},D.notify=function(T){var u=this;a.V.batch(function(){u.listeners.forEach(function(b){b(T)})})},D.onFocus=function(){var T=this;a.V.batch(function(){T.queries.forEach(function(u){u.onFocus()})})},D.onOnline=function(){var T=this;a.V.batch(function(){T.queries.forEach(function(u){u.onOnline()})})},N}(d.l),M=t(81262),C=function(B){(0,s.Z)(N,B);function N(x){var T;return T=B.call(this)||this,T.config=x||{},T.mutations=[],T.mutationId=0,T}var D=N.prototype;return D.build=function(T,u,b){var E=new M.m({mutationCache:this,mutationId:++this.mutationId,options:T.defaultMutationOptions(u),state:b,defaultOptions:u.mutationKey?T.getMutationDefaults(u.mutationKey):void 0,meta:u.meta});return this.add(E),E},D.add=function(T){this.mutations.push(T),this.notify(T)},D.remove=function(T){this.mutations=this.mutations.filter(function(u){return u!==T}),T.cancel(),this.notify(T)},D.clear=function(){var T=this;a.V.batch(function(){T.mutations.forEach(function(u){T.remove(u)})})},D.getAll=function(){return this.mutations},D.find=function(T){return typeof T.exact>"u"&&(T.exact=!0),this.mutations.find(function(u){return(0,n.X7)(T,u)})},D.findAll=function(T){return this.mutations.filter(function(u){return(0,n.X7)(T,u)})},D.notify=function(T){var u=this;a.V.batch(function(){u.listeners.forEach(function(b){b(T)})})},D.onFocus=function(){this.resumePausedMutations()},D.onOnline=function(){this.resumePausedMutations()},D.resumePausedMutations=function(){var T=this.mutations.filter(function(u){return u.state.isPaused});return a.V.batch(function(){return T.reduce(function(u,b){return u.then(function(){return b.continue().catch(n.ZT)})},Promise.resolve())})},N}(d.l),w=t(59852),I=t(40068),F=t(36997),U=function(){function B(D){D===void 0&&(D={}),this.queryCache=D.queryCache||new k,this.mutationCache=D.mutationCache||new C,this.defaultOptions=D.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var N=B.prototype;return N.mount=function(){var x=this;this.unsubscribeFocus=w.j.subscribe(function(){w.j.isFocused()&&I.N.isOnline()&&(x.mutationCache.onFocus(),x.queryCache.onFocus())}),this.unsubscribeOnline=I.N.subscribe(function(){w.j.isFocused()&&I.N.isOnline()&&(x.mutationCache.onOnline(),x.queryCache.onOnline())})},N.unmount=function(){var x,T;(x=this.unsubscribeFocus)==null||x.call(this),(T=this.unsubscribeOnline)==null||T.call(this)},N.isFetching=function(x,T){var u=(0,n.I6)(x,T),b=u[0];return b.fetching=!0,this.queryCache.findAll(b).length},N.isMutating=function(x){return this.mutationCache.findAll((0,r.Z)({},x,{fetching:!0})).length},N.getQueryData=function(x,T){var u;return(u=this.queryCache.find(x,T))==null?void 0:u.state.data},N.getQueriesData=function(x){return this.getQueryCache().findAll(x).map(function(T){var u=T.queryKey,b=T.state,E=b.data;return[u,E]})},N.setQueryData=function(x,T,u){var b=(0,n._v)(x),E=this.defaultQueryOptions(b);return this.queryCache.build(this,E).setData(T,u)},N.setQueriesData=function(x,T,u){var b=this;return a.V.batch(function(){return b.getQueryCache().findAll(x).map(function(E){var A=E.queryKey;return[A,b.setQueryData(A,T,u)]})})},N.getQueryState=function(x,T){var u;return(u=this.queryCache.find(x,T))==null?void 0:u.state},N.removeQueries=function(x,T){var u=(0,n.I6)(x,T),b=u[0],E=this.queryCache;a.V.batch(function(){E.findAll(b).forEach(function(A){E.remove(A)})})},N.resetQueries=function(x,T,u){var b=this,E=(0,n.I6)(x,T,u),A=E[0],R=E[1],H=this.queryCache,z=(0,r.Z)({},A,{active:!0});return a.V.batch(function(){return H.findAll(A).forEach(function(V){V.reset()}),b.refetchQueries(z,R)})},N.cancelQueries=function(x,T,u){var b=this,E=(0,n.I6)(x,T,u),A=E[0],R=E[1],H=R===void 0?{}:R;typeof H.revert>"u"&&(H.revert=!0);var z=a.V.batch(function(){return b.queryCache.findAll(A).map(function(V){return V.cancel(H)})});return Promise.all(z).then(n.ZT).catch(n.ZT)},N.invalidateQueries=function(x,T,u){var b,E,A,R=this,H=(0,n.I6)(x,T,u),z=H[0],V=H[1],$=(0,r.Z)({},z,{active:(b=(E=z.refetchActive)!=null?E:z.active)!=null?b:!0,inactive:(A=z.refetchInactive)!=null?A:!1});return a.V.batch(function(){return R.queryCache.findAll(z).forEach(function(ee){ee.invalidate()}),R.refetchQueries($,V)})},N.refetchQueries=function(x,T,u){var b=this,E=(0,n.I6)(x,T,u),A=E[0],R=E[1],H=a.V.batch(function(){return b.queryCache.findAll(A).map(function(V){return V.fetch(void 0,(0,r.Z)({},R,{meta:{refetchPage:A?.refetchPage}}))})}),z=Promise.all(H).then(n.ZT);return R?.throwOnError||(z=z.catch(n.ZT)),z},N.fetchQuery=function(x,T,u){var b=(0,n._v)(x,T,u),E=this.defaultQueryOptions(b);typeof E.retry>"u"&&(E.retry=!1);var A=this.queryCache.build(this,E);return A.isStaleByTime(E.staleTime)?A.fetch(E):Promise.resolve(A.state.data)},N.prefetchQuery=function(x,T,u){return this.fetchQuery(x,T,u).then(n.ZT).catch(n.ZT)},N.fetchInfiniteQuery=function(x,T,u){var b=(0,n._v)(x,T,u);return b.behavior=(0,F.Gm)(),this.fetchQuery(b)},N.prefetchInfiniteQuery=function(x,T,u){return this.fetchInfiniteQuery(x,T,u).then(n.ZT).catch(n.ZT)},N.cancelMutations=function(){var x=this,T=a.V.batch(function(){return x.mutationCache.getAll().map(function(u){return u.cancel()})});return Promise.all(T).then(n.ZT).catch(n.ZT)},N.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},N.executeMutation=function(x){return this.mutationCache.build(this,x).execute()},N.getQueryCache=function(){return this.queryCache},N.getMutationCache=function(){return this.mutationCache},N.getDefaultOptions=function(){return this.defaultOptions},N.setDefaultOptions=function(x){this.defaultOptions=x},N.setQueryDefaults=function(x,T){var u=this.queryDefaults.find(function(b){return(0,n.yF)(x)===(0,n.yF)(b.queryKey)});u?u.defaultOptions=T:this.queryDefaults.push({queryKey:x,defaultOptions:T})},N.getQueryDefaults=function(x){var T;return x?(T=this.queryDefaults.find(function(u){return(0,n.to)(x,u.queryKey)}))==null?void 0:T.defaultOptions:void 0},N.setMutationDefaults=function(x,T){var u=this.mutationDefaults.find(function(b){return(0,n.yF)(x)===(0,n.yF)(b.mutationKey)});u?u.defaultOptions=T:this.mutationDefaults.push({mutationKey:x,defaultOptions:T})},N.getMutationDefaults=function(x){var T;return x?(T=this.mutationDefaults.find(function(u){return(0,n.to)(x,u.mutationKey)}))==null?void 0:T.defaultOptions:void 0},N.defaultQueryOptions=function(x){if(x?._defaulted)return x;var T=(0,r.Z)({},this.defaultOptions.queries,this.getQueryDefaults(x?.queryKey),x,{_defaulted:!0});return!T.queryHash&&T.queryKey&&(T.queryHash=(0,n.Rm)(T.queryKey,T)),T},N.defaultQueryObserverOptions=function(x){return this.defaultQueryOptions(x)},N.defaultMutationOptions=function(x){return x?._defaulted?x:(0,r.Z)({},this.defaultOptions.mutations,this.getMutationDefaults(x?.mutationKey),x,{_defaulted:!0})},N.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},B}()},21216:(Z,v,t)=>{"use strict";t.d(v,{DV:()=>p,LE:()=>c,m4:()=>d});var r=t(59852),n=t(40068),s=t(52288);function a(k){return Math.min(1e3*Math.pow(2,k),3e4)}function c(k){return typeof k?.cancel=="function"}var h=function(M){this.revert=M?.revert,this.silent=M?.silent};function p(k){return k instanceof h}var d=function(M){var C=this,w=!1,I,F,U,B;this.abort=M.abort,this.cancel=function(u){return I?.(u)},this.cancelRetry=function(){w=!0},this.continueRetry=function(){w=!1},this.continue=function(){return F?.()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(u,b){U=u,B=b});var N=function(b){C.isResolved||(C.isResolved=!0,M.onSuccess==null||M.onSuccess(b),F?.(),U(b))},D=function(b){C.isResolved||(C.isResolved=!0,M.onError==null||M.onError(b),F?.(),B(b))},x=function(){return new Promise(function(b){F=b,C.isPaused=!0,M.onPause==null||M.onPause()}).then(function(){F=void 0,C.isPaused=!1,M.onContinue==null||M.onContinue()})},T=function u(){if(!C.isResolved){var b;try{b=M.fn()}catch(E){b=Promise.reject(E)}I=function(A){if(!C.isResolved&&(D(new h(A)),C.abort==null||C.abort(),c(b)))try{b.cancel()}catch{}},C.isTransportCancelable=c(b),Promise.resolve(b).then(N).catch(function(E){var A,R;if(!C.isResolved){var H=(A=M.retry)!=null?A:3,z=(R=M.retryDelay)!=null?R:a,V=typeof z=="function"?z(C.failureCount,E):z,$=H===!0||typeof H=="number"&&C.failureCount<H||typeof H=="function"&&H(C.failureCount,E);if(w||!$){D(E);return}C.failureCount++,M.onFail==null||M.onFail(C.failureCount,E),(0,s.Gh)(V).then(function(){if(!r.j.isFocused()||!n.N.isOnline())return x()}).then(function(){w?D(E):u()})}})}};T()}},52943:(Z,v,t)=>{"use strict";t.d(v,{l:()=>r});var r=function(){function n(){this.listeners=[]}var s=n.prototype;return s.subscribe=function(c){var h=this,p=c||function(){};return this.listeners.push(p),this.onSubscribe(),function(){h.listeners=h.listeners.filter(function(d){return d!==p}),h.onUnsubscribe()}},s.hasListeners=function(){return this.listeners.length>0},s.onSubscribe=function(){},s.onUnsubscribe=function(){},n}()},86755:()=>{},52288:(Z,v,t)=>{"use strict";t.d(v,{A4:()=>$,G9:()=>ee,Gh:()=>V,I6:()=>w,Kp:()=>k,PN:()=>c,Q$:()=>b,Rc:()=>d,Rm:()=>N,SE:()=>a,VS:()=>E,X7:()=>B,ZT:()=>s,_v:()=>M,_x:()=>U,e5:()=>p,lV:()=>C,mc:()=>h,sk:()=>n,to:()=>T,yF:()=>D});var r=t(87462),n=typeof window>"u";function s(){}function a(q,oe){return typeof q=="function"?q(oe):q}function c(q){return typeof q=="number"&&q>=0&&q!==1/0}function h(q){return Array.isArray(q)?q:[q]}function p(q,oe){return q.filter(function(X){return oe.indexOf(X)===-1})}function d(q,oe,X){var pe=q.slice(0);return pe[oe]=X,pe}function k(q,oe){return Math.max(q+(oe||0)-Date.now(),0)}function M(q,oe,X){return H(q)?typeof oe=="function"?(0,r.Z)({},X,{queryKey:q,queryFn:oe}):(0,r.Z)({},oe,{queryKey:q}):q}function C(q,oe,X){return H(q)?typeof oe=="function"?(0,r.Z)({},X,{mutationKey:q,mutationFn:oe}):(0,r.Z)({},oe,{mutationKey:q}):typeof q=="function"?(0,r.Z)({},oe,{mutationFn:q}):(0,r.Z)({},q)}function w(q,oe,X){return H(q)?[(0,r.Z)({},oe,{queryKey:q}),X]:[q||{},oe]}function I(q,oe){return H(q)?_extends({},oe,{mutationKey:q}):q}function F(q,oe){if(q===!0&&oe===!0||q==null&&oe==null)return"all";if(q===!1&&oe===!1)return"none";var X=q??!oe;return X?"active":"inactive"}function U(q,oe){var X=q.active,pe=q.exact,Ie=q.fetching,se=q.inactive,be=q.predicate,fe=q.queryKey,ue=q.stale;if(H(fe)){if(pe){if(oe.queryHash!==N(fe,oe.options))return!1}else if(!T(oe.queryKey,fe))return!1}var we=F(X,se);if(we==="none")return!1;if(we!=="all"){var Me=oe.isActive();if(we==="active"&&!Me||we==="inactive"&&Me)return!1}return!(typeof ue=="boolean"&&oe.isStale()!==ue||typeof Ie=="boolean"&&oe.isFetching()!==Ie||be&&!be(oe))}function B(q,oe){var X=q.exact,pe=q.fetching,Ie=q.predicate,se=q.mutationKey;if(H(se)){if(!oe.options.mutationKey)return!1;if(X){if(D(oe.options.mutationKey)!==D(se))return!1}else if(!T(oe.options.mutationKey,se))return!1}return!(typeof pe=="boolean"&&oe.state.status==="loading"!==pe||Ie&&!Ie(oe))}function N(q,oe){var X=oe?.queryKeyHashFn||D;return X(q)}function D(q){var oe=h(q);return x(oe)}function x(q){return JSON.stringify(q,function(oe,X){return A(X)?Object.keys(X).sort().reduce(function(pe,Ie){return pe[Ie]=X[Ie],pe},{}):X})}function T(q,oe){return u(h(q),h(oe))}function u(q,oe){return q===oe?!0:typeof q!=typeof oe?!1:q&&oe&&typeof q=="object"&&typeof oe=="object"?!Object.keys(oe).some(function(X){return!u(q[X],oe[X])}):!1}function b(q,oe){if(q===oe)return q;var X=Array.isArray(q)&&Array.isArray(oe);if(X||A(q)&&A(oe)){for(var pe=X?q.length:Object.keys(q).length,Ie=X?oe:Object.keys(oe),se=Ie.length,be=X?[]:{},fe=0,ue=0;ue<se;ue++){var we=X?ue:Ie[ue];be[we]=b(q[we],oe[we]),be[we]===q[we]&&fe++}return pe===se&&fe===pe?q:be}return oe}function E(q,oe){if(q&&!oe||oe&&!q)return!1;for(var X in q)if(q[X]!==oe[X])return!1;return!0}function A(q){if(!R(q))return!1;var oe=q.constructor;if(typeof oe>"u")return!0;var X=oe.prototype;return!(!R(X)||!X.hasOwnProperty("isPrototypeOf"))}function R(q){return Object.prototype.toString.call(q)==="[object Object]"}function H(q){return typeof q=="string"||Array.isArray(q)}function z(q){return q instanceof Error}function V(q){return new Promise(function(oe){setTimeout(oe,q)})}function $(q){Promise.resolve().then(q).catch(function(oe){return setTimeout(function(){throw oe})})}function ee(){if(typeof AbortController=="function")return new AbortController}},88767:(Z,v,t)=>{"use strict";t.d(v,{QueryClient:()=>r.QueryClient,QueryClientProvider:()=>n.QueryClientProvider,useInfiniteQuery:()=>n.useInfiniteQuery,useMutation:()=>n.useMutation,useQueries:()=>n.useQueries,useQuery:()=>n.useQuery,useQueryClient:()=>n.useQueryClient});var r=t(46747);t.o(r,"QueryClientProvider")&&t.d(v,{QueryClientProvider:function(){return r.QueryClientProvider}}),t.o(r,"useInfiniteQuery")&&t.d(v,{useInfiniteQuery:function(){return r.useInfiniteQuery}}),t.o(r,"useMutation")&&t.d(v,{useMutation:function(){return r.useMutation}}),t.o(r,"useQueries")&&t.d(v,{useQueries:function(){return r.useQueries}}),t.o(r,"useQuery")&&t.d(v,{useQuery:function(){return r.useQuery}}),t.o(r,"useQueryClient")&&t.d(v,{useQueryClient:function(){return r.useQueryClient}});var n=t(20464)},20464:(Z,v,t)=>{"use strict";t.d(v,{QueryClientProvider:()=>C,useInfiniteQuery:()=>fe,useMutation:()=>x,useQueries:()=>Ie,useQuery:()=>X,useQueryClient:()=>M});var r=t(101),n=t(73935),s=n.unstable_batchedUpdates;r.V.setBatchNotifyFunction(s);var a=t(41909),c=console;(0,a.E)(c);var h=t(67294),p=h.createContext(void 0),d=h.createContext(!1);function k(ue){return ue&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=p),window.ReactQueryClientContext):p}var M=function(){var we=h.useContext(k(h.useContext(d)));if(!we)throw new Error("No QueryClient set, use QueryClientProvider to set one");return we},C=function(we){var Me=we.client,Ce=we.contextSharing,Ne=Ce===void 0?!1:Ce,Ye=we.children;h.useEffect(function(){return Me.mount(),function(){Me.unmount()}},[Me]);var mt=k(Ne);return h.createElement(d.Provider,{value:Ne},h.createElement(mt.Provider,{value:Me},Ye))},w=t(87462),I=t(52288),F=t(94578),U=t(81262),B=t(52943),N=function(ue){(0,F.Z)(we,ue);function we(Ce,Ne){var Ye;return Ye=ue.call(this)||this,Ye.client=Ce,Ye.setOptions(Ne),Ye.bindMethods(),Ye.updateResult(),Ye}var Me=we.prototype;return Me.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},Me.setOptions=function(Ne){this.options=this.client.defaultMutationOptions(Ne)},Me.onUnsubscribe=function(){if(!this.listeners.length){var Ne;(Ne=this.currentMutation)==null||Ne.removeObserver(this)}},Me.onMutationUpdate=function(Ne){this.updateResult();var Ye={listeners:!0};Ne.type==="success"?Ye.onSuccess=!0:Ne.type==="error"&&(Ye.onError=!0),this.notify(Ye)},Me.getCurrentResult=function(){return this.currentResult},Me.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},Me.mutate=function(Ne,Ye){return this.mutateOptions=Ye,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,(0,w.Z)({},this.options,{variables:typeof Ne<"u"?Ne:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},Me.updateResult=function(){var Ne=this.currentMutation?this.currentMutation.state:(0,U.R)(),Ye=(0,w.Z)({},Ne,{isLoading:Ne.status==="loading",isSuccess:Ne.status==="success",isError:Ne.status==="error",isIdle:Ne.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=Ye},Me.notify=function(Ne){var Ye=this;r.V.batch(function(){Ye.mutateOptions&&(Ne.onSuccess?(Ye.mutateOptions.onSuccess==null||Ye.mutateOptions.onSuccess(Ye.currentResult.data,Ye.currentResult.variables,Ye.currentResult.context),Ye.mutateOptions.onSettled==null||Ye.mutateOptions.onSettled(Ye.currentResult.data,null,Ye.currentResult.variables,Ye.currentResult.context)):Ne.onError&&(Ye.mutateOptions.onError==null||Ye.mutateOptions.onError(Ye.currentResult.error,Ye.currentResult.variables,Ye.currentResult.context),Ye.mutateOptions.onSettled==null||Ye.mutateOptions.onSettled(void 0,Ye.currentResult.error,Ye.currentResult.variables,Ye.currentResult.context))),Ne.listeners&&Ye.listeners.forEach(function(mt){mt(Ye.currentResult)})})},we}(B.l);function D(ue,we,Me){return typeof we=="function"?we.apply(void 0,Me):typeof we=="boolean"?we:!!ue}function x(ue,we,Me){var Ce=h.useRef(!1),Ne=h.useState(0),Ye=Ne[1],mt=(0,I.lV)(ue,we,Me),Ct=M(),ln=h.useRef();ln.current?ln.current.setOptions(mt):ln.current=new N(Ct,mt);var $e=ln.current.getCurrentResult();h.useEffect(function(){Ce.current=!0;var bt=ln.current.subscribe(r.V.batchCalls(function(){Ce.current&&Ye(function(It){return It+1})}));return function(){Ce.current=!1,bt()}},[]);var Qe=h.useCallback(function(bt,It){ln.current.mutate(bt,It).catch(I.ZT)},[]);if($e.error&&D(void 0,ln.current.options.useErrorBoundary,[$e.error]))throw $e.error;return(0,w.Z)({},$e,{mutate:Qe,mutateAsync:$e.mutate})}var T=t(59852),u=t(21216),b=function(ue){(0,F.Z)(we,ue);function we(Ce,Ne){var Ye;return Ye=ue.call(this)||this,Ye.client=Ce,Ye.options=Ne,Ye.trackedProps=[],Ye.selectError=null,Ye.bindMethods(),Ye.setOptions(Ne),Ye}var Me=we.prototype;return Me.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},Me.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),A(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},Me.onUnsubscribe=function(){this.listeners.length||this.destroy()},Me.shouldFetchOnReconnect=function(){return R(this.currentQuery,this.options,this.options.refetchOnReconnect)},Me.shouldFetchOnWindowFocus=function(){return R(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},Me.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},Me.setOptions=function(Ne,Ye){var mt=this.options,Ct=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(Ne),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=mt.queryKey),this.updateQuery();var ln=this.hasListeners();ln&&H(this.currentQuery,Ct,this.options,mt)&&this.executeFetch(),this.updateResult(Ye),ln&&(this.currentQuery!==Ct||this.options.enabled!==mt.enabled||this.options.staleTime!==mt.staleTime)&&this.updateStaleTimeout();var $e=this.computeRefetchInterval();ln&&(this.currentQuery!==Ct||this.options.enabled!==mt.enabled||$e!==this.currentRefetchInterval)&&this.updateRefetchInterval($e)},Me.getOptimisticResult=function(Ne){var Ye=this.client.defaultQueryObserverOptions(Ne),mt=this.client.getQueryCache().build(this.client,Ye);return this.createResult(mt,Ye)},Me.getCurrentResult=function(){return this.currentResult},Me.trackResult=function(Ne,Ye){var mt=this,Ct={},ln=function(Qe){mt.trackedProps.includes(Qe)||mt.trackedProps.push(Qe)};return Object.keys(Ne).forEach(function($e){Object.defineProperty(Ct,$e,{configurable:!1,enumerable:!0,get:function(){return ln($e),Ne[$e]}})}),(Ye.useErrorBoundary||Ye.suspense)&&ln("error"),Ct},Me.getNextResult=function(Ne){var Ye=this;return new Promise(function(mt,Ct){var ln=Ye.subscribe(function($e){$e.isFetching||(ln(),$e.isError&&Ne?.throwOnError?Ct($e.error):mt($e))})})},Me.getCurrentQuery=function(){return this.currentQuery},Me.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},Me.refetch=function(Ne){return this.fetch((0,w.Z)({},Ne,{meta:{refetchPage:Ne?.refetchPage}}))},Me.fetchOptimistic=function(Ne){var Ye=this,mt=this.client.defaultQueryObserverOptions(Ne),Ct=this.client.getQueryCache().build(this.client,mt);return Ct.fetch().then(function(){return Ye.createResult(Ct,mt)})},Me.fetch=function(Ne){var Ye=this;return this.executeFetch(Ne).then(function(){return Ye.updateResult(),Ye.currentResult})},Me.executeFetch=function(Ne){this.updateQuery();var Ye=this.currentQuery.fetch(this.options,Ne);return Ne?.throwOnError||(Ye=Ye.catch(I.ZT)),Ye},Me.updateStaleTimeout=function(){var Ne=this;if(this.clearStaleTimeout(),!(I.sk||this.currentResult.isStale||!(0,I.PN)(this.options.staleTime))){var Ye=(0,I.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime),mt=Ye+1;this.staleTimeoutId=setTimeout(function(){Ne.currentResult.isStale||Ne.updateResult()},mt)}},Me.computeRefetchInterval=function(){var Ne;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(Ne=this.options.refetchInterval)!=null?Ne:!1},Me.updateRefetchInterval=function(Ne){var Ye=this;this.clearRefetchInterval(),this.currentRefetchInterval=Ne,!(I.sk||this.options.enabled===!1||!(0,I.PN)(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(Ye.options.refetchIntervalInBackground||T.j.isFocused())&&Ye.executeFetch()},this.currentRefetchInterval))},Me.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},Me.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},Me.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},Me.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},Me.createResult=function(Ne,Ye){var mt=this.currentQuery,Ct=this.options,ln=this.currentResult,$e=this.currentResultState,Qe=this.currentResultOptions,bt=Ne!==mt,It=bt?Ne.state:this.currentQueryInitialState,mn=bt?this.currentResult:this.previousQueryResult,un=Ne.state,Be=un.dataUpdatedAt,je=un.error,$t=un.errorUpdatedAt,et=un.isFetching,Kt=un.status,kn=!1,Tn=!1,ht;if(Ye.optimisticResults){var ot=this.hasListeners(),Je=!ot&&A(Ne,Ye),wt=ot&&H(Ne,mt,Ye,Ct);(Je||wt)&&(et=!0,Be||(Kt="loading"))}if(Ye.keepPreviousData&&!un.dataUpdateCount&&mn?.isSuccess&&Kt!=="error")ht=mn.data,Be=mn.dataUpdatedAt,Kt=mn.status,kn=!0;else if(Ye.select&&typeof un.data<"u")if(ln&&un.data===$e?.data&&Ye.select===this.selectFn)ht=this.selectResult;else try{this.selectFn=Ye.select,ht=Ye.select(un.data),Ye.structuralSharing!==!1&&(ht=(0,I.Q$)(ln?.data,ht)),this.selectResult=ht,this.selectError=null}catch(ut){(0,a.j)().error(ut),this.selectError=ut}else ht=un.data;if(typeof Ye.placeholderData<"u"&&typeof ht>"u"&&(Kt==="loading"||Kt==="idle")){var ft;if(ln?.isPlaceholderData&&Ye.placeholderData===Qe?.placeholderData)ft=ln.data;else if(ft=typeof Ye.placeholderData=="function"?Ye.placeholderData():Ye.placeholderData,Ye.select&&typeof ft<"u")try{ft=Ye.select(ft),Ye.structuralSharing!==!1&&(ft=(0,I.Q$)(ln?.data,ft)),this.selectError=null}catch(ut){(0,a.j)().error(ut),this.selectError=ut}typeof ft<"u"&&(Kt="success",ht=ft,Tn=!0)}this.selectError&&(je=this.selectError,ht=this.selectResult,$t=Date.now(),Kt="error");var vn={status:Kt,isLoading:Kt==="loading",isSuccess:Kt==="success",isError:Kt==="error",isIdle:Kt==="idle",data:ht,dataUpdatedAt:Be,error:je,errorUpdatedAt:$t,failureCount:un.fetchFailureCount,errorUpdateCount:un.errorUpdateCount,isFetched:un.dataUpdateCount>0||un.errorUpdateCount>0,isFetchedAfterMount:un.dataUpdateCount>It.dataUpdateCount||un.errorUpdateCount>It.errorUpdateCount,isFetching:et,isRefetching:et&&Kt!=="loading",isLoadingError:Kt==="error"&&un.dataUpdatedAt===0,isPlaceholderData:Tn,isPreviousData:kn,isRefetchError:Kt==="error"&&un.dataUpdatedAt!==0,isStale:z(Ne,Ye),refetch:this.refetch,remove:this.remove};return vn},Me.shouldNotifyListeners=function(Ne,Ye){if(!Ye)return!0;var mt=this.options,Ct=mt.notifyOnChangeProps,ln=mt.notifyOnChangePropsExclusions;if(!Ct&&!ln||Ct==="tracked"&&!this.trackedProps.length)return!0;var $e=Ct==="tracked"?this.trackedProps:Ct;return Object.keys(Ne).some(function(Qe){var bt=Qe,It=Ne[bt]!==Ye[bt],mn=$e?.some(function(Be){return Be===Qe}),un=ln?.some(function(Be){return Be===Qe});return It&&!un&&(!$e||mn)})},Me.updateResult=function(Ne){var Ye=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,I.VS)(this.currentResult,Ye)){var mt={cache:!0};Ne?.listeners!==!1&&this.shouldNotifyListeners(this.currentResult,Ye)&&(mt.listeners=!0),this.notify((0,w.Z)({},mt,Ne))}},Me.updateQuery=function(){var Ne=this.client.getQueryCache().build(this.client,this.options);if(Ne!==this.currentQuery){var Ye=this.currentQuery;this.currentQuery=Ne,this.currentQueryInitialState=Ne.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(Ye?.removeObserver(this),Ne.addObserver(this))}},Me.onQueryUpdate=function(Ne){var Ye={};Ne.type==="success"?Ye.onSuccess=!0:Ne.type==="error"&&!(0,u.DV)(Ne.error)&&(Ye.onError=!0),this.updateResult(Ye),this.hasListeners()&&this.updateTimers()},Me.notify=function(Ne){var Ye=this;r.V.batch(function(){Ne.onSuccess?(Ye.options.onSuccess==null||Ye.options.onSuccess(Ye.currentResult.data),Ye.options.onSettled==null||Ye.options.onSettled(Ye.currentResult.data,null)):Ne.onError&&(Ye.options.onError==null||Ye.options.onError(Ye.currentResult.error),Ye.options.onSettled==null||Ye.options.onSettled(void 0,Ye.currentResult.error)),Ne.listeners&&Ye.listeners.forEach(function(mt){mt(Ye.currentResult)}),Ne.cache&&Ye.client.getQueryCache().notify({query:Ye.currentQuery,type:"observerResultsUpdated"})})},we}(B.l);function E(ue,we){return we.enabled!==!1&&!ue.state.dataUpdatedAt&&!(ue.state.status==="error"&&we.retryOnMount===!1)}function A(ue,we){return E(ue,we)||ue.state.dataUpdatedAt>0&&R(ue,we,we.refetchOnMount)}function R(ue,we,Me){if(we.enabled!==!1){var Ce=typeof Me=="function"?Me(ue):Me;return Ce==="always"||Ce!==!1&&z(ue,we)}return!1}function H(ue,we,Me,Ce){return Me.enabled!==!1&&(ue!==we||Ce.enabled===!1)&&(!Me.suspense||ue.state.status!=="error")&&z(ue,Me)}function z(ue,we){return ue.isStaleByTime(we.staleTime)}function V(){var ue=!1;return{clearReset:function(){ue=!1},reset:function(){ue=!0},isReset:function(){return ue}}}var $=h.createContext(V()),ee=function(){return h.useContext($)},q=function(we){var Me=we.children,Ce=React.useMemo(function(){return V()},[]);return React.createElement($.Provider,{value:Ce},typeof Me=="function"?Me(Ce):Me)};function oe(ue,we){var Me=h.useRef(!1),Ce=h.useState(0),Ne=Ce[1],Ye=M(),mt=ee(),Ct=Ye.defaultQueryObserverOptions(ue);Ct.optimisticResults=!0,Ct.onError&&(Ct.onError=r.V.batchCalls(Ct.onError)),Ct.onSuccess&&(Ct.onSuccess=r.V.batchCalls(Ct.onSuccess)),Ct.onSettled&&(Ct.onSettled=r.V.batchCalls(Ct.onSettled)),Ct.suspense&&(typeof Ct.staleTime!="number"&&(Ct.staleTime=1e3),Ct.cacheTime===0&&(Ct.cacheTime=1)),(Ct.suspense||Ct.useErrorBoundary)&&(mt.isReset()||(Ct.retryOnMount=!1));var ln=h.useState(function(){return new we(Ye,Ct)}),$e=ln[0],Qe=$e.getOptimisticResult(Ct);if(h.useEffect(function(){Me.current=!0,mt.clearReset();var bt=$e.subscribe(r.V.batchCalls(function(){Me.current&&Ne(function(It){return It+1})}));return $e.updateResult(),function(){Me.current=!1,bt()}},[mt,$e]),h.useEffect(function(){$e.setOptions(Ct,{listeners:!1})},[Ct,$e]),Ct.suspense&&Qe.isLoading)throw $e.fetchOptimistic(Ct).then(function(bt){var It=bt.data;Ct.onSuccess==null||Ct.onSuccess(It),Ct.onSettled==null||Ct.onSettled(It,null)}).catch(function(bt){mt.clearReset(),Ct.onError==null||Ct.onError(bt),Ct.onSettled==null||Ct.onSettled(void 0,bt)});if(Qe.isError&&!mt.isReset()&&!Qe.isFetching&&D(Ct.suspense,Ct.useErrorBoundary,[Qe.error,$e.getCurrentQuery()]))throw Qe.error;return Ct.notifyOnChangeProps==="tracked"&&(Qe=$e.trackResult(Qe,Ct)),Qe}function X(ue,we,Me){var Ce=(0,I._v)(ue,we,Me);return oe(Ce,b)}var pe=function(ue){(0,F.Z)(we,ue);function we(Ce,Ne){var Ye;return Ye=ue.call(this)||this,Ye.client=Ce,Ye.queries=[],Ye.result=[],Ye.observers=[],Ye.observersMap={},Ne&&Ye.setQueries(Ne),Ye}var Me=we.prototype;return Me.onSubscribe=function(){var Ne=this;this.listeners.length===1&&this.observers.forEach(function(Ye){Ye.subscribe(function(mt){Ne.onUpdate(Ye,mt)})})},Me.onUnsubscribe=function(){this.listeners.length||this.destroy()},Me.destroy=function(){this.listeners=[],this.observers.forEach(function(Ne){Ne.destroy()})},Me.setQueries=function(Ne,Ye){this.queries=Ne,this.updateObservers(Ye)},Me.getCurrentResult=function(){return this.result},Me.getOptimisticResult=function(Ne){return this.findMatchingObservers(Ne).map(function(Ye){return Ye.observer.getOptimisticResult(Ye.defaultedQueryOptions)})},Me.findMatchingObservers=function(Ne){var Ye=this,mt=this.observers,Ct=Ne.map(function(un){return Ye.client.defaultQueryObserverOptions(un)}),ln=Ct.flatMap(function(un){var Be=mt.find(function(je){return je.options.queryHash===un.queryHash});return Be!=null?[{defaultedQueryOptions:un,observer:Be}]:[]}),$e=ln.map(function(un){return un.defaultedQueryOptions.queryHash}),Qe=Ct.filter(function(un){return!$e.includes(un.queryHash)}),bt=mt.filter(function(un){return!ln.some(function(Be){return Be.observer===un})}),It=Qe.map(function(un,Be){if(un.keepPreviousData){var je=bt[Be];if(je!==void 0)return{defaultedQueryOptions:un,observer:je}}return{defaultedQueryOptions:un,observer:Ye.getObserver(un)}}),mn=function(Be,je){return Ct.indexOf(Be.defaultedQueryOptions)-Ct.indexOf(je.defaultedQueryOptions)};return ln.concat(It).sort(mn)},Me.getObserver=function(Ne){var Ye=this.client.defaultQueryObserverOptions(Ne),mt=this.observersMap[Ye.queryHash];return mt??new b(this.client,Ye)},Me.updateObservers=function(Ne){var Ye=this;r.V.batch(function(){var mt=Ye.observers,Ct=Ye.findMatchingObservers(Ye.queries);Ct.forEach(function(It){return It.observer.setOptions(It.defaultedQueryOptions,Ne)});var ln=Ct.map(function(It){return It.observer}),$e=Object.fromEntries(ln.map(function(It){return[It.options.queryHash,It]})),Qe=ln.map(function(It){return It.getCurrentResult()}),bt=ln.some(function(It,mn){return It!==mt[mn]});mt.length===ln.length&&!bt||(Ye.observers=ln,Ye.observersMap=$e,Ye.result=Qe,Ye.hasListeners()&&((0,I.e5)(mt,ln).forEach(function(It){It.destroy()}),(0,I.e5)(ln,mt).forEach(function(It){It.subscribe(function(mn){Ye.onUpdate(It,mn)})}),Ye.notify()))})},Me.onUpdate=function(Ne,Ye){var mt=this.observers.indexOf(Ne);mt!==-1&&(this.result=(0,I.Rc)(this.result,mt,Ye),this.notify())},Me.notify=function(){var Ne=this;r.V.batch(function(){Ne.listeners.forEach(function(Ye){Ye(Ne.result)})})},we}(B.l);function Ie(ue){var we=h.useRef(!1),Me=h.useState(0),Ce=Me[1],Ne=M(),Ye=(0,h.useMemo)(function(){return ue.map(function($e){var Qe=Ne.defaultQueryObserverOptions($e);return Qe.optimisticResults=!0,Qe})},[ue,Ne]),mt=h.useState(function(){return new pe(Ne,Ye)}),Ct=mt[0],ln=Ct.getOptimisticResult(Ye);return h.useEffect(function(){we.current=!0;var $e=Ct.subscribe(r.V.batchCalls(function(){we.current&&Ce(function(Qe){return Qe+1})}));return function(){we.current=!1,$e()}},[Ct]),h.useEffect(function(){Ct.setQueries(Ye,{listeners:!1})},[Ye,Ct]),ln}var se=t(36997),be=function(ue){(0,F.Z)(we,ue);function we(Ce,Ne){return ue.call(this,Ce,Ne)||this}var Me=we.prototype;return Me.bindMethods=function(){ue.prototype.bindMethods.call(this),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)},Me.setOptions=function(Ne,Ye){ue.prototype.setOptions.call(this,(0,w.Z)({},Ne,{behavior:(0,se.Gm)()}),Ye)},Me.getOptimisticResult=function(Ne){return Ne.behavior=(0,se.Gm)(),ue.prototype.getOptimisticResult.call(this,Ne)},Me.fetchNextPage=function(Ne){var Ye;return this.fetch({cancelRefetch:(Ye=Ne?.cancelRefetch)!=null?Ye:!0,throwOnError:Ne?.throwOnError,meta:{fetchMore:{direction:"forward",pageParam:Ne?.pageParam}}})},Me.fetchPreviousPage=function(Ne){var Ye;return this.fetch({cancelRefetch:(Ye=Ne?.cancelRefetch)!=null?Ye:!0,throwOnError:Ne?.throwOnError,meta:{fetchMore:{direction:"backward",pageParam:Ne?.pageParam}}})},Me.createResult=function(Ne,Ye){var mt,Ct,ln,$e,Qe,bt,It=Ne.state,mn=ue.prototype.createResult.call(this,Ne,Ye);return(0,w.Z)({},mn,{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,se.Qy)(Ye,(mt=It.data)==null?void 0:mt.pages),hasPreviousPage:(0,se.ZF)(Ye,(Ct=It.data)==null?void 0:Ct.pages),isFetchingNextPage:It.isFetching&&((ln=It.fetchMeta)==null||($e=ln.fetchMore)==null?void 0:$e.direction)==="forward",isFetchingPreviousPage:It.isFetching&&((Qe=It.fetchMeta)==null||(bt=Qe.fetchMore)==null?void 0:bt.direction)==="backward"})},we}(b);function fe(ue,we,Me){var Ce=(0,I._v)(ue,we,Me);return oe(Ce,be)}},86706:(Z,v,t)=>{"use strict";t.d(v,{zt:()=>ot,$j:()=>Tn,wU:()=>Ct,I0:()=>vn,v9:()=>u,oR:()=>wt});var r=t(61688),n=t(52798),s=t(73935);function a(ut){ut()}let c=a;const h=ut=>c=ut,p=()=>c;var d=t(67294);const k=Symbol.for(`react-redux-context-${d.version}`),M=globalThis;function C(){let ut=M[k];return ut||(ut=(0,d.createContext)(null),M[k]=ut),ut}const w=new Proxy({},new Proxy({},{get(ut,Wt){const ae=C();return(ne,...ge)=>Reflect[Wt](ae,...ge)}})),I=null;function F(ut=w){return function(){return(0,d.useContext)(ut)}}const U=F(),B=()=>{throw new Error("uSES not initialized!")};let N=B;const D=ut=>{N=ut},x=(ut,Wt)=>ut===Wt;function T(ut=w){const Wt=ut===w?U:F(ut);return function(ne,ge={}){const{equalityFn:ye=x,stabilityCheck:Xe=void 0,noopCheck:Ze=void 0}=typeof ge=="function"?{equalityFn:ge}:ge,{store:lt,subscription:_t,getServerState:zt,stabilityCheck:Vt,noopCheck:sn}=Wt(),yn=(0,d.useRef)(!0),dr=(0,d.useCallback)({[ne.name](Mr){return ne(Mr)}}[ne.name],[ne,Vt,Xe]),hr=N(_t.addNestedSub,lt.getState,zt||lt.getState,dr,ye);return(0,d.useDebugValue)(hr),hr}}const u=T();var b=t(87462),E=t(63366),A=t(8679),R=t.n(A),H=t(90015);const z=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function V(ut,Wt,ae,ne,{areStatesEqual:ge,areOwnPropsEqual:ye,areStatePropsEqual:Xe}){let Ze=!1,lt,_t,zt,Vt,sn;function yn(Cr,Ur){return lt=Cr,_t=Ur,zt=ut(lt,_t),Vt=Wt(ne,_t),sn=ae(zt,Vt,_t),Ze=!0,sn}function dr(){return zt=ut(lt,_t),Wt.dependsOnOwnProps&&(Vt=Wt(ne,_t)),sn=ae(zt,Vt,_t),sn}function hr(){return ut.dependsOnOwnProps&&(zt=ut(lt,_t)),Wt.dependsOnOwnProps&&(Vt=Wt(ne,_t)),sn=ae(zt,Vt,_t),sn}function Mr(){const Cr=ut(lt,_t),Ur=!Xe(Cr,zt);return zt=Cr,Ur&&(sn=ae(zt,Vt,_t)),sn}function rr(Cr,Ur){const $r=!ye(Ur,_t),li=!ge(Cr,lt,Ur,_t);return lt=Cr,_t=Ur,$r&&li?dr():$r?hr():li?Mr():sn}return function(Ur,$r){return Ze?rr(Ur,$r):yn(Ur,$r)}}function $(ut,Wt){let{initMapStateToProps:ae,initMapDispatchToProps:ne,initMergeProps:ge}=Wt,ye=(0,E.Z)(Wt,z);const Xe=ae(ut,ye),Ze=ne(ut,ye),lt=ge(ut,ye);return V(Xe,Ze,lt,ut,ye)}function ee(ut,Wt){const ae={};for(const ne in ut){const ge=ut[ne];typeof ge=="function"&&(ae[ne]=(...ye)=>Wt(ge(...ye)))}return ae}function q(ut){return function(ae){const ne=ut(ae);function ge(){return ne}return ge.dependsOnOwnProps=!1,ge}}function oe(ut){return ut.dependsOnOwnProps?Boolean(ut.dependsOnOwnProps):ut.length!==1}function X(ut,Wt){return function(ne,{displayName:ge}){const ye=function(Ze,lt){return ye.dependsOnOwnProps?ye.mapToProps(Ze,lt):ye.mapToProps(Ze,void 0)};return ye.dependsOnOwnProps=!0,ye.mapToProps=function(Ze,lt){ye.mapToProps=ut,ye.dependsOnOwnProps=oe(ut);let _t=ye(Ze,lt);return typeof _t=="function"&&(ye.mapToProps=_t,ye.dependsOnOwnProps=oe(_t),_t=ye(Ze,lt)),_t},ye}}function pe(ut,Wt){return(ae,ne)=>{throw new Error(`Invalid value of type ${typeof ut} for ${Wt} argument when connecting component ${ne.wrappedComponentName}.`)}}function Ie(ut){return ut&&typeof ut=="object"?q(Wt=>ee(ut,Wt)):ut?typeof ut=="function"?X(ut,"mapDispatchToProps"):pe(ut,"mapDispatchToProps"):q(Wt=>({dispatch:Wt}))}function se(ut){return ut?typeof ut=="function"?X(ut,"mapStateToProps"):pe(ut,"mapStateToProps"):q(()=>({}))}function be(ut,Wt,ae){return(0,b.Z)({},ae,ut,Wt)}function fe(ut){return function(ae,{displayName:ne,areMergedPropsEqual:ge}){let ye=!1,Xe;return function(lt,_t,zt){const Vt=ut(lt,_t,zt);return ye?ge(Vt,Xe)||(Xe=Vt):(ye=!0,Xe=Vt),Xe}}}function ue(ut){return ut?typeof ut=="function"?fe(ut):pe(ut,"mergeProps"):()=>be}function we(){const ut=p();let Wt=null,ae=null;return{clear(){Wt=null,ae=null},notify(){ut(()=>{let ne=Wt;for(;ne;)ne.callback(),ne=ne.next})},get(){let ne=[],ge=Wt;for(;ge;)ne.push(ge),ge=ge.next;return ne},subscribe(ne){let ge=!0,ye=ae={callback:ne,next:null,prev:ae};return ye.prev?ye.prev.next=ye:Wt=ye,function(){!ge||Wt===null||(ge=!1,ye.next?ye.next.prev=ye.prev:ae=ye.prev,ye.prev?ye.prev.next=ye.next:Wt=ye.next)}}}}const Me={notify(){},get:()=>[]};function Ce(ut,Wt){let ae,ne=Me;function ge(Vt){return lt(),ne.subscribe(Vt)}function ye(){ne.notify()}function Xe(){zt.onStateChange&&zt.onStateChange()}function Ze(){return Boolean(ae)}function lt(){ae||(ae=Wt?Wt.addNestedSub(Xe):ut.subscribe(Xe),ne=we())}function _t(){ae&&(ae(),ae=void 0,ne.clear(),ne=Me)}const zt={addNestedSub:ge,notifyNestedSubs:ye,handleChangeWrapper:Xe,isSubscribed:Ze,trySubscribe:lt,tryUnsubscribe:_t,getListeners:()=>ne};return zt}const Ye=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?d.useLayoutEffect:d.useEffect;function mt(ut,Wt){return ut===Wt?ut!==0||Wt!==0||1/ut===1/Wt:ut!==ut&&Wt!==Wt}function Ct(ut,Wt){if(mt(ut,Wt))return!0;if(typeof ut!="object"||ut===null||typeof Wt!="object"||Wt===null)return!1;const ae=Object.keys(ut),ne=Object.keys(Wt);if(ae.length!==ne.length)return!1;for(let ge=0;ge<ae.length;ge++)if(!Object.prototype.hasOwnProperty.call(Wt,ae[ge])||!mt(ut[ae[ge]],Wt[ae[ge]]))return!1;return!0}const ln=["reactReduxForwardedRef"];let $e=B;const Qe=ut=>{$e=ut},bt=null,It=[null,null],mn=ut=>{try{return JSON.stringify(ut)}catch{return String(ut)}};function un(ut,Wt,ae){Ye(()=>ut(...Wt),ae)}function Be(ut,Wt,ae,ne,ge,ye){ut.current=ne,ae.current=!1,ge.current&&(ge.current=null,ye())}function je(ut,Wt,ae,ne,ge,ye,Xe,Ze,lt,_t,zt){if(!ut)return()=>{};let Vt=!1,sn=null;const yn=()=>{if(Vt||!Ze.current)return;const hr=Wt.getState();let Mr,rr;try{Mr=ne(hr,ge.current)}catch(Cr){rr=Cr,sn=Cr}rr||(sn=null),Mr===ye.current?Xe.current||_t():(ye.current=Mr,lt.current=Mr,Xe.current=!0,zt())};return ae.onStateChange=yn,ae.trySubscribe(),yn(),()=>{if(Vt=!0,ae.tryUnsubscribe(),ae.onStateChange=null,sn)throw sn}}const $t=()=>bt;function et(ut,Wt){return ut===Wt}let Kt=!1;function kn(ut,Wt,ae,{pure:ne,areStatesEqual:ge=et,areOwnPropsEqual:ye=Ct,areStatePropsEqual:Xe=Ct,areMergedPropsEqual:Ze=Ct,forwardRef:lt=!1,context:_t=w}={}){const zt=_t,Vt=se(ut),sn=Ie(Wt),yn=ue(ae),dr=Boolean(ut);return Mr=>{const rr=Mr.displayName||Mr.name||"Component",Cr=`Connect(${rr})`,Ur={shouldHandleStateChanges:dr,displayName:Cr,wrappedComponentName:rr,WrappedComponent:Mr,initMapStateToProps:Vt,initMapDispatchToProps:sn,initMergeProps:yn,areStatesEqual:ge,areStatePropsEqual:Xe,areOwnPropsEqual:ye,areMergedPropsEqual:Ze};function $r(Bt){const[Et,bn,cn]=(0,d.useMemo)(()=>{const{reactReduxForwardedRef:Qn}=Bt,ur=(0,E.Z)(Bt,ln);return[Bt.context,Qn,ur]},[Bt]),Yn=(0,d.useMemo)(()=>Et&&Et.Consumer&&(0,H.isContextConsumer)(d.createElement(Et.Consumer,null))?Et:zt,[Et,zt]),on=(0,d.useContext)(Yn),ze=Boolean(Bt.store)&&Boolean(Bt.store.getState)&&Boolean(Bt.store.dispatch),Le=Boolean(on)&&Boolean(on.store),Ht=ze?Bt.store:on.store,Mn=Le?on.getServerState:Ht.getState,tr=(0,d.useMemo)(()=>$(Ht.dispatch,Ur),[Ht]),[Sr,Xr]=(0,d.useMemo)(()=>{if(!dr)return It;const Qn=Ce(Ht,ze?void 0:on.subscription),ur=Qn.notifyNestedSubs.bind(Qn);return[Qn,ur]},[Ht,ze,on]),gi=(0,d.useMemo)(()=>ze?on:(0,b.Z)({},on,{subscription:Sr}),[ze,on,Sr]),Pi=(0,d.useRef)(),ii=(0,d.useRef)(cn),vr=(0,d.useRef)(),at=(0,d.useRef)(!1),it=(0,d.useRef)(!1),Re=(0,d.useRef)(!1),ke=(0,d.useRef)();Ye(()=>(Re.current=!0,()=>{Re.current=!1}),[]);const Pe=(0,d.useMemo)(()=>()=>vr.current&&cn===ii.current?vr.current:tr(Ht.getState(),cn),[Ht,cn]),Te=(0,d.useMemo)(()=>ur=>Sr?je(dr,Ht,Sr,tr,ii,Pi,at,Re,vr,Xr,ur):()=>{},[Sr]);un(Be,[ii,Pi,at,cn,vr,Xr]);let Mt;try{Mt=$e(Te,Pe,Mn?()=>tr(Mn(),cn):Pe)}catch(Qn){throw ke.current&&(Qn.message+=`
The error may be correlated with this previous error:
${ke.current.stack}

`),Qn}Ye(()=>{ke.current=void 0,vr.current=void 0,Pi.current=Mt});const qt=(0,d.useMemo)(()=>d.createElement(Mr,(0,b.Z)({},Mt,{ref:bn})),[bn,Mr,Mt]);return(0,d.useMemo)(()=>dr?d.createElement(Yn.Provider,{value:gi},qt):qt,[Yn,qt,gi])}const ri=d.memo($r);if(ri.WrappedComponent=Mr,ri.displayName=$r.displayName=Cr,lt){const Et=d.forwardRef(function(cn,Yn){return d.createElement(ri,(0,b.Z)({},cn,{reactReduxForwardedRef:Yn}))});return Et.displayName=Cr,Et.WrappedComponent=Mr,R()(Et,Mr)}return R()(ri,Mr)}}const Tn=kn;function ht({store:ut,context:Wt,children:ae,serverState:ne,stabilityCheck:ge="once",noopCheck:ye="once"}){const Xe=(0,d.useMemo)(()=>{const _t=Ce(ut);return{store:ut,subscription:_t,getServerState:ne?()=>ne:void 0,stabilityCheck:ge,noopCheck:ye}},[ut,ne,ge,ye]),Ze=(0,d.useMemo)(()=>ut.getState(),[ut]);Ye(()=>{const{subscription:_t}=Xe;return _t.onStateChange=_t.notifyNestedSubs,_t.trySubscribe(),Ze!==ut.getState()&&_t.notifyNestedSubs(),()=>{_t.tryUnsubscribe(),_t.onStateChange=void 0}},[Xe,Ze]);const lt=Wt||w;return d.createElement(lt.Provider,{value:Xe},ae)}const ot=ht;function Je(ut=w){const Wt=ut===w?U:F(ut);return function(){const{store:ne}=Wt();return ne}}const wt=Je();function ft(ut=w){const Wt=ut===w?wt:Je(ut);return function(){return Wt().dispatch}}const vn=ft();D(n.useSyncExternalStoreWithSelector),Qe(r.useSyncExternalStore),h(s.unstable_batchedUpdates)},71642:(Z,v,t)=>{"use strict";t.d(v,{Av:()=>a,pF:()=>r,xv:()=>s,zi:()=>n});var r="right-scroll-bar-position",n="width-before-scroll-bar",s="with-scroll-bars-hidden",a="--removed-body-scroll-bar-size"},32506:(Z,v,t)=>{"use strict";t.d(v,{jp:()=>M});var r=t(67294),n=t(78232),s=t(71642),a={left:0,top:0,right:0,gap:0},c=function(C){return parseInt(C||"",10)||0},h=function(C){var w=window.getComputedStyle(document.body),I=w[C==="padding"?"paddingLeft":"marginLeft"],F=w[C==="padding"?"paddingTop":"marginTop"],U=w[C==="padding"?"paddingRight":"marginRight"];return[c(I),c(F),c(U)]},p=function(C){if(C===void 0&&(C="margin"),typeof window>"u")return a;var w=h(C),I=document.documentElement.clientWidth,F=window.innerWidth;return{left:w[0],top:w[1],right:w[2],gap:Math.max(0,F-I+w[2]-w[0])}},d=(0,n.Ws)(),k=function(C,w,I,F){var U=C.left,B=C.top,N=C.right,D=C.gap;return I===void 0&&(I="margin"),`
  .`.concat(s.xv,` {
   overflow: hidden `).concat(F,`;
   padding-right: `).concat(D,"px ").concat(F,`;
  }
  body {
    overflow: hidden `).concat(F,`;
    overscroll-behavior: contain;
    `).concat([w&&"position: relative ".concat(F,";"),I==="margin"&&`
    padding-left: `.concat(U,`px;
    padding-top: `).concat(B,`px;
    padding-right: `).concat(N,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(D,"px ").concat(F,`;
    `),I==="padding"&&"padding-right: ".concat(D,"px ").concat(F,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(s.pF,` {
    right: `).concat(D,"px ").concat(F,`;
  }
  
  .`).concat(s.zi,` {
    margin-right: `).concat(D,"px ").concat(F,`;
  }
  
  .`).concat(s.pF," .").concat(s.pF,` {
    right: 0 `).concat(F,`;
  }
  
  .`).concat(s.zi," .").concat(s.zi,` {
    margin-right: 0 `).concat(F,`;
  }
  
  body {
    `).concat(s.Av,": ").concat(D,`px;
  }
`)},M=function(C){var w=C.noRelative,I=C.noImportant,F=C.gapMode,U=F===void 0?"margin":F,B=r.useMemo(function(){return p(U)},[U]);return r.createElement(d,{styles:k(B,!w,U,I?"":"!important")})}},18204:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>be});var r=t(97582),n=t(67294),s=t(71642),a=t(7916),c=t(87122),h=(0,c._)(),p=function(){},d=n.forwardRef(function(fe,ue){var we=n.useRef(null),Me=n.useState({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:p}),Ce=Me[0],Ne=Me[1],Ye=fe.forwardProps,mt=fe.children,Ct=fe.className,ln=fe.removeScrollBar,$e=fe.enabled,Qe=fe.shards,bt=fe.sideCar,It=fe.noIsolation,mn=fe.inert,un=fe.allowPinchZoom,Be=fe.as,je=Be===void 0?"div":Be,$t=fe.gapMode,et=(0,r._T)(fe,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),Kt=bt,kn=(0,a.q)([we,ue]),Tn=(0,r.pi)((0,r.pi)({},et),Ce);return n.createElement(n.Fragment,null,$e&&n.createElement(Kt,{sideCar:h,removeScrollBar:ln,shards:Qe,noIsolation:It,inert:mn,setCallbacks:Ne,allowPinchZoom:!!un,lockRef:we,gapMode:$t}),Ye?n.cloneElement(n.Children.only(mt),(0,r.pi)((0,r.pi)({},Tn),{ref:kn})):n.createElement(je,(0,r.pi)({},Tn,{className:Ct,ref:kn}),mt))});d.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},d.classNames={fullWidth:s.zi,zeroRight:s.pF};var k=t(66781),M=t(32506),C=t(78232),w=!1;if(typeof window<"u")try{var I=Object.defineProperty({},"passive",{get:function(){return w=!0,!0}});window.addEventListener("test",I,I),window.removeEventListener("test",I,I)}catch{w=!1}var F=w?{passive:!1}:!1,U=function(fe){return fe.tagName==="TEXTAREA"},B=function(fe,ue){var we=window.getComputedStyle(fe);return we[ue]!=="hidden"&&!(we.overflowY===we.overflowX&&!U(fe)&&we[ue]==="visible")},N=function(fe){return B(fe,"overflowY")},D=function(fe){return B(fe,"overflowX")},x=function(fe,ue){var we=ue.ownerDocument,Me=ue;do{typeof ShadowRoot<"u"&&Me instanceof ShadowRoot&&(Me=Me.host);var Ce=b(fe,Me);if(Ce){var Ne=E(fe,Me),Ye=Ne[1],mt=Ne[2];if(Ye>mt)return!0}Me=Me.parentNode}while(Me&&Me!==we.body);return!1},T=function(fe){var ue=fe.scrollTop,we=fe.scrollHeight,Me=fe.clientHeight;return[ue,we,Me]},u=function(fe){var ue=fe.scrollLeft,we=fe.scrollWidth,Me=fe.clientWidth;return[ue,we,Me]},b=function(fe,ue){return fe==="v"?N(ue):D(ue)},E=function(fe,ue){return fe==="v"?T(ue):u(ue)},A=function(fe,ue){return fe==="h"&&ue==="rtl"?-1:1},R=function(fe,ue,we,Me,Ce){var Ne=A(fe,window.getComputedStyle(ue).direction),Ye=Ne*Me,mt=we.target,Ct=ue.contains(mt),ln=!1,$e=Ye>0,Qe=0,bt=0;do{var It=E(fe,mt),mn=It[0],un=It[1],Be=It[2],je=un-Be-Ne*mn;(mn||je)&&b(fe,mt)&&(Qe+=je,bt+=mn),mt instanceof ShadowRoot?mt=mt.host:mt=mt.parentNode}while(!Ct&&mt!==document.body||Ct&&(ue.contains(mt)||ue===mt));return($e&&(Ce&&Math.abs(Qe)<1||!Ce&&Ye>Qe)||!$e&&(Ce&&Math.abs(bt)<1||!Ce&&-Ye>bt))&&(ln=!0),ln},H=function(fe){return"changedTouches"in fe?[fe.changedTouches[0].clientX,fe.changedTouches[0].clientY]:[0,0]},z=function(fe){return[fe.deltaX,fe.deltaY]},V=function(fe){return fe&&"current"in fe?fe.current:fe},$=function(fe,ue){return fe[0]===ue[0]&&fe[1]===ue[1]},ee=function(fe){return`
  .block-interactivity-`.concat(fe,` {pointer-events: none;}
  .allow-interactivity-`).concat(fe,` {pointer-events: all;}
`)},q=0,oe=[];function X(fe){var ue=n.useRef([]),we=n.useRef([0,0]),Me=n.useRef(),Ce=n.useState(q++)[0],Ne=n.useState(C.Ws)[0],Ye=n.useRef(fe);n.useEffect(function(){Ye.current=fe},[fe]),n.useEffect(function(){if(fe.inert){document.body.classList.add("block-interactivity-".concat(Ce));var un=(0,r.ev)([fe.lockRef.current],(fe.shards||[]).map(V),!0).filter(Boolean);return un.forEach(function(Be){return Be.classList.add("allow-interactivity-".concat(Ce))}),function(){document.body.classList.remove("block-interactivity-".concat(Ce)),un.forEach(function(Be){return Be.classList.remove("allow-interactivity-".concat(Ce))})}}},[fe.inert,fe.lockRef.current,fe.shards]);var mt=n.useCallback(function(un,Be){if("touches"in un&&un.touches.length===2)return!Ye.current.allowPinchZoom;var je=H(un),$t=we.current,et="deltaX"in un?un.deltaX:$t[0]-je[0],Kt="deltaY"in un?un.deltaY:$t[1]-je[1],kn,Tn=un.target,ht=Math.abs(et)>Math.abs(Kt)?"h":"v";if("touches"in un&&ht==="h"&&Tn.type==="range")return!1;var ot=x(ht,Tn);if(!ot)return!0;if(ot?kn=ht:(kn=ht==="v"?"h":"v",ot=x(ht,Tn)),!ot)return!1;if(!Me.current&&"changedTouches"in un&&(et||Kt)&&(Me.current=kn),!kn)return!0;var Je=Me.current||kn;return R(Je,Be,un,Je==="h"?et:Kt,!0)},[]),Ct=n.useCallback(function(un){var Be=un;if(!(!oe.length||oe[oe.length-1]!==Ne)){var je="deltaY"in Be?z(Be):H(Be),$t=ue.current.filter(function(kn){return kn.name===Be.type&&(kn.target===Be.target||Be.target===kn.shadowParent)&&$(kn.delta,je)})[0];if($t&&$t.should){Be.cancelable&&Be.preventDefault();return}if(!$t){var et=(Ye.current.shards||[]).map(V).filter(Boolean).filter(function(kn){return kn.contains(Be.target)}),Kt=et.length>0?mt(Be,et[0]):!Ye.current.noIsolation;Kt&&Be.cancelable&&Be.preventDefault()}}},[]),ln=n.useCallback(function(un,Be,je,$t){var et={name:un,delta:Be,target:je,should:$t,shadowParent:pe(je)};ue.current.push(et),setTimeout(function(){ue.current=ue.current.filter(function(Kt){return Kt!==et})},1)},[]),$e=n.useCallback(function(un){we.current=H(un),Me.current=void 0},[]),Qe=n.useCallback(function(un){ln(un.type,z(un),un.target,mt(un,fe.lockRef.current))},[]),bt=n.useCallback(function(un){ln(un.type,H(un),un.target,mt(un,fe.lockRef.current))},[]);n.useEffect(function(){return oe.push(Ne),fe.setCallbacks({onScrollCapture:Qe,onWheelCapture:Qe,onTouchMoveCapture:bt}),document.addEventListener("wheel",Ct,F),document.addEventListener("touchmove",Ct,F),document.addEventListener("touchstart",$e,F),function(){oe=oe.filter(function(un){return un!==Ne}),document.removeEventListener("wheel",Ct,F),document.removeEventListener("touchmove",Ct,F),document.removeEventListener("touchstart",$e,F)}},[]);var It=fe.removeScrollBar,mn=fe.inert;return n.createElement(n.Fragment,null,mn?n.createElement(Ne,{styles:ee(Ce)}):null,It?n.createElement(M.jp,{gapMode:fe.gapMode}):null)}function pe(fe){for(var ue=null;fe!==null;)fe instanceof ShadowRoot&&(ue=fe.host,fe=fe.host),fe=fe.parentNode;return ue}const Ie=(0,k.L)(h,X);var se=n.forwardRef(function(fe,ue){return n.createElement(d,(0,r.pi)({},fe,{ref:ue,sideCar:Ie}))});se.classNames=d.classNames;const be=se},73727:(Z,v,t)=>{"use strict";t.d(v,{OL:()=>b,VK:()=>d,rU:()=>B});var r=t(16550),n=t(94578),s=t(67294),a=t(90071),c=t(87462),h=t(63366),p=t(38776),d=function(A){(0,n.Z)(R,A);function R(){for(var z,V=arguments.length,$=new Array(V),ee=0;ee<V;ee++)$[ee]=arguments[ee];return z=A.call.apply(A,[this].concat($))||this,z.history=(0,a.lX)(z.props),z}var H=R.prototype;return H.render=function(){return s.createElement(r.F0,{history:this.history,children:this.props.children})},R}(s.Component),k=function(A){(0,n.Z)(R,A);function R(){for(var z,V=arguments.length,$=new Array(V),ee=0;ee<V;ee++)$[ee]=arguments[ee];return z=A.call.apply(A,[this].concat($))||this,z.history=(0,a.q_)(z.props),z}var H=R.prototype;return H.render=function(){return s.createElement(r.F0,{history:this.history,children:this.props.children})},R}(s.Component),M=function(R,H){return typeof R=="function"?R(H):R},C=function(R,H){return typeof R=="string"?(0,a.ob)(R,null,null,H):R},w=function(R){return R},I=s.forwardRef;typeof I>"u"&&(I=w);function F(A){return!!(A.metaKey||A.altKey||A.ctrlKey||A.shiftKey)}var U=I(function(A,R){var H=A.innerRef,z=A.navigate,V=A.onClick,$=(0,h.Z)(A,["innerRef","navigate","onClick"]),ee=$.target,q=(0,c.Z)({},$,{onClick:function(X){try{V&&V(X)}catch(pe){throw X.preventDefault(),pe}!X.defaultPrevented&&X.button===0&&(!ee||ee==="_self")&&!F(X)&&(X.preventDefault(),z())}});return w!==I?q.ref=R||H:q.ref=H,s.createElement("a",q)}),B=I(function(A,R){var H=A.component,z=H===void 0?U:H,V=A.replace,$=A.to,ee=A.innerRef,q=(0,h.Z)(A,["component","replace","to","innerRef"]);return s.createElement(r.s6.Consumer,null,function(oe){oe||(0,p.Z)(!1);var X=oe.history,pe=C(M($,oe.location),oe.location),Ie=pe?X.createHref(pe):"",se=(0,c.Z)({},q,{href:Ie,navigate:function(){var fe=M($,oe.location),ue=(0,a.Ep)(oe.location)===(0,a.Ep)(C(fe)),we=V||ue?X.replace:X.push;we(fe)}});return w!==I?se.ref=R||ee:se.innerRef=ee,s.createElement(z,se)})});if(!1)var N,D;var x=function(R){return R},T=s.forwardRef;typeof T>"u"&&(T=x);function u(){for(var A=arguments.length,R=new Array(A),H=0;H<A;H++)R[H]=arguments[H];return R.filter(function(z){return z}).join(" ")}var b=T(function(A,R){var H=A["aria-current"],z=H===void 0?"page":H,V=A.activeClassName,$=V===void 0?"active":V,ee=A.activeStyle,q=A.className,oe=A.exact,X=A.isActive,pe=A.location,Ie=A.sensitive,se=A.strict,be=A.style,fe=A.to,ue=A.innerRef,we=(0,h.Z)(A,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return s.createElement(r.s6.Consumer,null,function(Me){Me||(0,p.Z)(!1);var Ce=pe||Me.location,Ne=C(M(fe,Ce),Ce),Ye=Ne.pathname,mt=Ye&&Ye.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),Ct=mt?(0,r.LX)(Ce.pathname,{path:mt,exact:oe,sensitive:Ie,strict:se}):null,ln=!!(X?X(Ct,Ce):Ct),$e=typeof q=="function"?q(ln):q,Qe=typeof be=="function"?be(ln):be;ln&&($e=u($e,$),Qe=(0,c.Z)({},Qe,ee));var bt=(0,c.Z)({"aria-current":ln&&z||null,className:$e,style:Qe,to:Ne},we);return x!==T?bt.ref=R||ue:bt.innerRef=ue,s.createElement(B,bt)})});if(!1)var E},16550:(Z,v,t)=>{"use strict";t.d(v,{$B:()=>et,AW:()=>Ne,F0:()=>R,LX:()=>we,NL:()=>V,TH:()=>je,UO:()=>$t,k6:()=>Be,l_:()=>Ie,rs:()=>It,s6:()=>A});var r=t(94578),n=t(67294),s=t(45697),a=t.n(s),c=t(90071),h=t(38776),p=t(87462),d=t(39658),k=t.n(d),M=t(90015),C=t(63366),w=t(8679),I=t.n(w),F=1073741823,U=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof t.g<"u"?t.g:{};function B(){var Je="__global_unique_id__";return U[Je]=(U[Je]||0)+1}function N(Je,wt){return Je===wt?Je!==0||1/Je===1/wt:Je!==Je&&wt!==wt}function D(Je){var wt=[];return{on:function(vn){wt.push(vn)},off:function(vn){wt=wt.filter(function(ut){return ut!==vn})},get:function(){return Je},set:function(vn,ut){Je=vn,wt.forEach(function(Wt){return Wt(Je,ut)})}}}function x(Je){return Array.isArray(Je)?Je[0]:Je}function T(Je,wt){var ft,vn,ut="__create-react-context-"+B()+"__",Wt=function(ne){(0,r.Z)(ge,ne);function ge(){for(var Xe,Ze=arguments.length,lt=new Array(Ze),_t=0;_t<Ze;_t++)lt[_t]=arguments[_t];return Xe=ne.call.apply(ne,[this].concat(lt))||this,Xe.emitter=D(Xe.props.value),Xe}var ye=ge.prototype;return ye.getChildContext=function(){var Ze;return Ze={},Ze[ut]=this.emitter,Ze},ye.componentWillReceiveProps=function(Ze){if(this.props.value!==Ze.value){var lt=this.props.value,_t=Ze.value,zt;N(lt,_t)?zt=0:(zt=typeof wt=="function"?wt(lt,_t):F,zt|=0,zt!==0&&this.emitter.set(Ze.value,zt))}},ye.render=function(){return this.props.children},ge}(n.Component);Wt.childContextTypes=(ft={},ft[ut]=a().object.isRequired,ft);var ae=function(ne){(0,r.Z)(ge,ne);function ge(){for(var Xe,Ze=arguments.length,lt=new Array(Ze),_t=0;_t<Ze;_t++)lt[_t]=arguments[_t];return Xe=ne.call.apply(ne,[this].concat(lt))||this,Xe.observedBits=void 0,Xe.state={value:Xe.getValue()},Xe.onUpdate=function(zt,Vt){var sn=Xe.observedBits|0;sn&Vt&&Xe.setState({value:Xe.getValue()})},Xe}var ye=ge.prototype;return ye.componentWillReceiveProps=function(Ze){var lt=Ze.observedBits;this.observedBits=lt??F},ye.componentDidMount=function(){this.context[ut]&&this.context[ut].on(this.onUpdate);var Ze=this.props.observedBits;this.observedBits=Ze??F},ye.componentWillUnmount=function(){this.context[ut]&&this.context[ut].off(this.onUpdate)},ye.getValue=function(){return this.context[ut]?this.context[ut].get():Je},ye.render=function(){return x(this.props.children)(this.state.value)},ge}(n.Component);return ae.contextTypes=(vn={},vn[ut]=a().object,vn),{Provider:Wt,Consumer:ae}}var u=n.createContext||T,b=function(wt){var ft=u();return ft.displayName=wt,ft},E=b("Router-History"),A=b("Router"),R=function(Je){(0,r.Z)(wt,Je),wt.computeRootMatch=function(ut){return{path:"/",url:"/",params:{},isExact:ut==="/"}};function wt(vn){var ut;return ut=Je.call(this,vn)||this,ut.state={location:vn.history.location},ut._isMounted=!1,ut._pendingLocation=null,vn.staticContext||(ut.unlisten=vn.history.listen(function(Wt){ut._pendingLocation=Wt})),ut}var ft=wt.prototype;return ft.componentDidMount=function(){var ut=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(Wt){ut._isMounted&&ut.setState({location:Wt})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},ft.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},ft.render=function(){return n.createElement(A.Provider,{value:{history:this.props.history,location:this.state.location,match:wt.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},n.createElement(E.Provider,{children:this.props.children||null,value:this.props.history}))},wt}(n.Component),H=function(Je){(0,r.Z)(wt,Je);function wt(){for(var vn,ut=arguments.length,Wt=new Array(ut),ae=0;ae<ut;ae++)Wt[ae]=arguments[ae];return vn=Je.call.apply(Je,[this].concat(Wt))||this,vn.history=(0,c.PP)(vn.props),vn}var ft=wt.prototype;return ft.render=function(){return n.createElement(R,{history:this.history,children:this.props.children})},wt}(n.Component),z=function(Je){(0,r.Z)(wt,Je);function wt(){return Je.apply(this,arguments)||this}var ft=wt.prototype;return ft.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},ft.componentDidUpdate=function(ut){this.props.onUpdate&&this.props.onUpdate.call(this,this,ut)},ft.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},ft.render=function(){return null},wt}(n.Component);function V(Je){var wt=Je.message,ft=Je.when,vn=ft===void 0?!0:ft;return n.createElement(A.Consumer,null,function(ut){if(ut||(0,h.Z)(!1),!vn||ut.staticContext)return null;var Wt=ut.history.block;return n.createElement(z,{onMount:function(ne){ne.release=Wt(wt)},onUpdate:function(ne,ge){ge.message!==wt&&(ne.release(),ne.release=Wt(wt))},onUnmount:function(ne){ne.release()},message:wt})})}if(!1)var $;var ee={},q=1e4,oe=0;function X(Je){if(ee[Je])return ee[Je];var wt=k().compile(Je);return oe<q&&(ee[Je]=wt,oe++),wt}function pe(Je,wt){return Je===void 0&&(Je="/"),wt===void 0&&(wt={}),Je==="/"?Je:X(Je)(wt,{pretty:!0})}function Ie(Je){var wt=Je.computedMatch,ft=Je.to,vn=Je.push,ut=vn===void 0?!1:vn;return n.createElement(A.Consumer,null,function(Wt){Wt||(0,h.Z)(!1);var ae=Wt.history,ne=Wt.staticContext,ge=ut?ae.push:ae.replace,ye=(0,c.ob)(wt?typeof ft=="string"?pe(ft,wt.params):(0,p.Z)({},ft,{pathname:pe(ft.pathname,wt.params)}):ft);return ne?(ge(ye),null):n.createElement(z,{onMount:function(){ge(ye)},onUpdate:function(Ze,lt){var _t=(0,c.ob)(lt.to);(0,c.Hp)(_t,(0,p.Z)({},ye,{key:_t.key}))||ge(ye)},to:ft})})}var se={},be=1e4,fe=0;function ue(Je,wt){var ft=""+wt.end+wt.strict+wt.sensitive,vn=se[ft]||(se[ft]={});if(vn[Je])return vn[Je];var ut=[],Wt=k()(Je,ut,wt),ae={regexp:Wt,keys:ut};return fe<be&&(vn[Je]=ae,fe++),ae}function we(Je,wt){wt===void 0&&(wt={}),(typeof wt=="string"||Array.isArray(wt))&&(wt={path:wt});var ft=wt,vn=ft.path,ut=ft.exact,Wt=ut===void 0?!1:ut,ae=ft.strict,ne=ae===void 0?!1:ae,ge=ft.sensitive,ye=ge===void 0?!1:ge,Xe=[].concat(vn);return Xe.reduce(function(Ze,lt){if(!lt&&lt!=="")return null;if(Ze)return Ze;var _t=ue(lt,{end:Wt,strict:ne,sensitive:ye}),zt=_t.regexp,Vt=_t.keys,sn=zt.exec(Je);if(!sn)return null;var yn=sn[0],dr=sn.slice(1),hr=Je===yn;return Wt&&!hr?null:{path:lt,url:lt==="/"&&yn===""?"/":yn,isExact:hr,params:Vt.reduce(function(Mr,rr,Cr){return Mr[rr.name]=dr[Cr],Mr},{})}},null)}function Me(Je){return n.Children.count(Je)===0}function Ce(Je,wt,ft){var vn=Je(wt);return vn||null}var Ne=function(Je){(0,r.Z)(wt,Je);function wt(){return Je.apply(this,arguments)||this}var ft=wt.prototype;return ft.render=function(){var ut=this;return n.createElement(A.Consumer,null,function(Wt){Wt||(0,h.Z)(!1);var ae=ut.props.location||Wt.location,ne=ut.props.computedMatch?ut.props.computedMatch:ut.props.path?we(ae.pathname,ut.props):Wt.match,ge=(0,p.Z)({},Wt,{location:ae,match:ne}),ye=ut.props,Xe=ye.children,Ze=ye.component,lt=ye.render;return Array.isArray(Xe)&&Me(Xe)&&(Xe=null),n.createElement(A.Provider,{value:ge},ge.match?Xe?typeof Xe=="function"?Xe(ge):Xe:Ze?n.createElement(Ze,ge):lt?lt(ge):null:typeof Xe=="function"?Xe(ge):null)})},wt}(n.Component);function Ye(Je){return Je.charAt(0)==="/"?Je:"/"+Je}function mt(Je,wt){return Je?(0,p.Z)({},wt,{pathname:Ye(Je)+wt.pathname}):wt}function Ct(Je,wt){if(!Je)return wt;var ft=Ye(Je);return wt.pathname.indexOf(ft)!==0?wt:(0,p.Z)({},wt,{pathname:wt.pathname.substr(ft.length)})}function ln(Je){return typeof Je=="string"?Je:(0,c.Ep)(Je)}function $e(Je){return function(){(0,h.Z)(!1)}}function Qe(){}var bt=function(Je){(0,r.Z)(wt,Je);function wt(){for(var vn,ut=arguments.length,Wt=new Array(ut),ae=0;ae<ut;ae++)Wt[ae]=arguments[ae];return vn=Je.call.apply(Je,[this].concat(Wt))||this,vn.handlePush=function(ne){return vn.navigateTo(ne,"PUSH")},vn.handleReplace=function(ne){return vn.navigateTo(ne,"REPLACE")},vn.handleListen=function(){return Qe},vn.handleBlock=function(){return Qe},vn}var ft=wt.prototype;return ft.navigateTo=function(ut,Wt){var ae=this.props,ne=ae.basename,ge=ne===void 0?"":ne,ye=ae.context,Xe=ye===void 0?{}:ye;Xe.action=Wt,Xe.location=mt(ge,(0,c.ob)(ut)),Xe.url=ln(Xe.location)},ft.render=function(){var ut=this.props,Wt=ut.basename,ae=Wt===void 0?"":Wt,ne=ut.context,ge=ne===void 0?{}:ne,ye=ut.location,Xe=ye===void 0?"/":ye,Ze=(0,C.Z)(ut,["basename","context","location"]),lt={createHref:function(zt){return Ye(ae+ln(zt))},action:"POP",location:Ct(ae,(0,c.ob)(Xe)),push:this.handlePush,replace:this.handleReplace,go:$e("go"),goBack:$e("goBack"),goForward:$e("goForward"),listen:this.handleListen,block:this.handleBlock};return n.createElement(R,(0,p.Z)({},Ze,{history:lt,staticContext:ge}))},wt}(n.Component),It=function(Je){(0,r.Z)(wt,Je);function wt(){return Je.apply(this,arguments)||this}var ft=wt.prototype;return ft.render=function(){var ut=this;return n.createElement(A.Consumer,null,function(Wt){Wt||(0,h.Z)(!1);var ae=ut.props.location||Wt.location,ne,ge;return n.Children.forEach(ut.props.children,function(ye){if(ge==null&&n.isValidElement(ye)){ne=ye;var Xe=ye.props.path||ye.props.from;ge=Xe?we(ae.pathname,(0,p.Z)({},ye.props,{path:Xe})):Wt.match}}),ge?n.cloneElement(ne,{location:ae,computedMatch:ge}):null})},wt}(n.Component);function mn(Je){var wt="withRouter("+(Je.displayName||Je.name)+")",ft=function(ut){var Wt=ut.wrappedComponentRef,ae=_objectWithoutPropertiesLoose(ut,["wrappedComponentRef"]);return React.createElement(A.Consumer,null,function(ne){return ne||invariant(!1),React.createElement(Je,_extends({},ae,ne,{ref:Wt}))})};return ft.displayName=wt,ft.WrappedComponent=Je,hoistStatics(ft,Je)}var un=n.useContext;function Be(){return un(E)}function je(){return un(A).location}function $t(){var Je=un(A).match;return Je?Je.params:{}}function et(Je){var wt=je(),ft=un(A).match;return Je?we(wt.pathname,Je):ft}if(!1)var Kt,kn,Tn,ht,ot},76585:Z=>{Z.exports=Array.isArray||function(v){return Object.prototype.toString.call(v)=="[object Array]"}},39658:(Z,v,t)=>{var r=t(76585);Z.exports=B,Z.exports.parse=s,Z.exports.compile=a,Z.exports.tokensToFunction=p,Z.exports.tokensToRegExp=U;var n=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function s(N,D){for(var x=[],T=0,u=0,b="",E=D&&D.delimiter||"/",A;(A=n.exec(N))!=null;){var R=A[0],H=A[1],z=A.index;if(b+=N.slice(u,z),u=z+R.length,H){b+=H[1];continue}var V=N[u],$=A[2],ee=A[3],q=A[4],oe=A[5],X=A[6],pe=A[7];b&&(x.push(b),b="");var Ie=$!=null&&V!=null&&V!==$,se=X==="+"||X==="*",be=X==="?"||X==="*",fe=A[2]||E,ue=q||oe;x.push({name:ee||T++,prefix:$||"",delimiter:fe,optional:be,repeat:se,partial:Ie,asterisk:!!pe,pattern:ue?k(ue):pe?".*":"[^"+d(fe)+"]+?"})}return u<N.length&&(b+=N.substr(u)),b&&x.push(b),x}function a(N,D){return p(s(N,D),D)}function c(N){return encodeURI(N).replace(/[\/?#]/g,function(D){return"%"+D.charCodeAt(0).toString(16).toUpperCase()})}function h(N){return encodeURI(N).replace(/[?#]/g,function(D){return"%"+D.charCodeAt(0).toString(16).toUpperCase()})}function p(N,D){for(var x=new Array(N.length),T=0;T<N.length;T++)typeof N[T]=="object"&&(x[T]=new RegExp("^(?:"+N[T].pattern+")$",C(D)));return function(u,b){for(var E="",A=u||{},R=b||{},H=R.pretty?c:encodeURIComponent,z=0;z<N.length;z++){var V=N[z];if(typeof V=="string"){E+=V;continue}var $=A[V.name],ee;if($==null)if(V.optional){V.partial&&(E+=V.prefix);continue}else throw new TypeError('Expected "'+V.name+'" to be defined');if(r($)){if(!V.repeat)throw new TypeError('Expected "'+V.name+'" to not repeat, but received `'+JSON.stringify($)+"`");if($.length===0){if(V.optional)continue;throw new TypeError('Expected "'+V.name+'" to not be empty')}for(var q=0;q<$.length;q++){if(ee=H($[q]),!x[z].test(ee))throw new TypeError('Expected all "'+V.name+'" to match "'+V.pattern+'", but received `'+JSON.stringify(ee)+"`");E+=(q===0?V.prefix:V.delimiter)+ee}continue}if(ee=V.asterisk?h($):H($),!x[z].test(ee))throw new TypeError('Expected "'+V.name+'" to match "'+V.pattern+'", but received "'+ee+'"');E+=V.prefix+ee}return E}}function d(N){return N.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function k(N){return N.replace(/([=!:$\/()])/g,"\\$1")}function M(N,D){return N.keys=D,N}function C(N){return N&&N.sensitive?"":"i"}function w(N,D){var x=N.source.match(/\((?!\?)/g);if(x)for(var T=0;T<x.length;T++)D.push({name:T,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return M(N,D)}function I(N,D,x){for(var T=[],u=0;u<N.length;u++)T.push(B(N[u],D,x).source);var b=new RegExp("(?:"+T.join("|")+")",C(x));return M(b,D)}function F(N,D,x){return U(s(N,x),D,x)}function U(N,D,x){r(D)||(x=D||x,D=[]),x=x||{};for(var T=x.strict,u=x.end!==!1,b="",E=0;E<N.length;E++){var A=N[E];if(typeof A=="string")b+=d(A);else{var R=d(A.prefix),H="(?:"+A.pattern+")";D.push(A),A.repeat&&(H+="(?:"+R+H+")*"),A.optional?A.partial?H=R+"("+H+")?":H="(?:"+R+"("+H+"))?":H=R+"("+H+")",b+=H}}var z=d(x.delimiter||"/"),V=b.slice(-z.length)===z;return T||(b=(V?b.slice(0,-z.length):b)+"(?:"+z+"(?=$))?"),u?b+="$":b+=T&&V?"":"(?="+z+"|$)",M(new RegExp("^"+b,C(x)),D)}function B(N,D,x){return r(D)||(x=D||x,D=[]),x=x||{},N instanceof RegExp?w(N,D):r(N)?I(N,D,x):F(N,D,x)}},5079:(Z,v,t)=>{"use strict";t.d(v,{A:()=>q,B:()=>we,C:()=>ue,D:()=>fe,E:()=>B,F:()=>ke,G:()=>se,H:()=>u,I:()=>N,J:()=>V,K:()=>F,M:()=>ln,a:()=>Ze,b:()=>Kt,c:()=>Re,d:()=>hr,e:()=>ye,f:()=>$r,g:()=>Cr,h:()=>_t,i:()=>ot,j:()=>Bt,k:()=>un,l:()=>sn,m:()=>mt,n:()=>Qe,o:()=>$t,p:()=>on,q:()=>ze,r:()=>Me,s:()=>Ie,t:()=>Le,u:()=>mn,v:()=>gi,w:()=>ii,x:()=>at,y:()=>Tn,z:()=>ee});var r=t(1413),n=t(87462),s=t(2003),a=t(70885),c=t(45987),h=t(71002);function p(Pe,Te){return Te||(Te=Pe.slice(0)),Object.freeze(Object.defineProperties(Pe,{raw:{value:Object.freeze(Te)}}))}var d=t(4942),k=t(67294),M=t(73935),C=t(76200),w=t(73469),I=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],F=function(){};function U(Pe,Te){return Te?Te[0]==="-"?Pe+Te:Pe+"__"+Te:Pe}function B(Pe,Te){for(var Mt=arguments.length,qt=new Array(Mt>2?Mt-2:0),Rn=2;Rn<Mt;Rn++)qt[Rn-2]=arguments[Rn];var Qn=[].concat(qt);if(Te&&Pe)for(var ur in Te)Te.hasOwnProperty(ur)&&Te[ur]&&Qn.push("".concat(U(Pe,ur)));return Qn.filter(function(On){return On}).map(function(On){return String(On).trim()}).join(" ")}var N=function(Te){return be(Te)?Te.filter(Boolean):(0,h.Z)(Te)==="object"&&Te!==null?[Te]:[]},D=function(Te){Te.className,Te.clearValue,Te.cx,Te.getStyles,Te.getClassNames,Te.getValue,Te.hasValue,Te.isMulti,Te.isRtl,Te.options,Te.selectOption,Te.selectProps,Te.setValue,Te.theme;var Mt=(0,c.Z)(Te,I);return(0,r.Z)({},Mt)},x=function(Te,Mt,qt){var Rn=Te.cx,Qn=Te.getStyles,ur=Te.getClassNames,On=Te.className;return{css:Qn(Mt,Te),className:Rn(qt??{},ur(Mt,Te),On)}};function T(Pe,Te,Mt){if(Mt){var qt=Mt(Pe,Te);if(typeof qt=="string")return qt}return Pe}function u(Pe){return[document.documentElement,document.body,window].indexOf(Pe)>-1}function b(Pe){return u(Pe)?window.innerHeight:Pe.clientHeight}function E(Pe){return u(Pe)?window.pageYOffset:Pe.scrollTop}function A(Pe,Te){if(u(Pe)){window.scrollTo(0,Te);return}Pe.scrollTop=Te}function R(Pe){var Te=getComputedStyle(Pe),Mt=Te.position==="absolute",qt=/(auto|scroll)/;if(Te.position==="fixed")return document.documentElement;for(var Rn=Pe;Rn=Rn.parentElement;)if(Te=getComputedStyle(Rn),!(Mt&&Te.position==="static")&&qt.test(Te.overflow+Te.overflowY+Te.overflowX))return Rn;return document.documentElement}function H(Pe,Te,Mt,qt){return Mt*((Pe=Pe/qt-1)*Pe*Pe+1)+Te}function z(Pe,Te){var Mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,qt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:F,Rn=E(Pe),Qn=Te-Rn,ur=10,On=0;function ct(){On+=ur;var Zt=H(On,Rn,Qn,Mt);A(Pe,Zt),On<Mt?window.requestAnimationFrame(ct):qt(Pe)}ct()}function V(Pe,Te){var Mt=Pe.getBoundingClientRect(),qt=Te.getBoundingClientRect(),Rn=Te.offsetHeight/3;qt.bottom+Rn>Mt.bottom?A(Pe,Math.min(Te.offsetTop+Te.clientHeight-Pe.offsetHeight+Rn,Pe.scrollHeight)):qt.top-Rn<Mt.top&&A(Pe,Math.max(Te.offsetTop-Rn,0))}function $(Pe){var Te=Pe.getBoundingClientRect();return{bottom:Te.bottom,height:Te.height,left:Te.left,right:Te.right,top:Te.top,width:Te.width}}function ee(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function q(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var oe=!1,X={get passive(){return oe=!0}},pe=typeof window<"u"?window:{};pe.addEventListener&&pe.removeEventListener&&(pe.addEventListener("p",F,X),pe.removeEventListener("p",F,!1));var Ie=oe;function se(Pe){return Pe!=null}function be(Pe){return Array.isArray(Pe)}function fe(Pe,Te,Mt){return Pe?Te:Mt}function ue(Pe){return Pe}function we(Pe){return Pe}var Me=function(Te){for(var Mt=arguments.length,qt=new Array(Mt>1?Mt-1:0),Rn=1;Rn<Mt;Rn++)qt[Rn-1]=arguments[Rn];var Qn=Object.entries(Te).filter(function(ur){var On=(0,a.Z)(ur,1),ct=On[0];return!qt.includes(ct)});return Qn.reduce(function(ur,On){var ct=(0,a.Z)(On,2),Zt=ct[0],Cn=ct[1];return ur[Zt]=Cn,ur},{})};function Ce(Pe){var Te=Pe.maxHeight,Mt=Pe.menuEl,qt=Pe.minHeight,Rn=Pe.placement,Qn=Pe.shouldScroll,ur=Pe.isFixedPosition,On=Pe.controlHeight,ct=R(Mt),Zt={placement:"bottom",maxHeight:Te};if(!Mt||!Mt.offsetParent)return Zt;var Cn=ct.getBoundingClientRect(),Pn=Cn.height,Kn=Mt.getBoundingClientRect(),Rt=Kn.bottom,Ke=Kn.height,Oe=Kn.top,Ge=Mt.offsetParent.getBoundingClientRect(),Ft=Ge.top,Qt=ur?window.innerHeight:b(ct),wn=E(ct),Gn=parseInt(getComputedStyle(Mt).marginBottom,10),ir=parseInt(getComputedStyle(Mt).marginTop,10),br=Ft-ir,fr=Qt-Oe,Er=br+wn,Or=Pn-wn-Oe,oi=Rt-Qt+wn+Gn,si=wn+Oe-ir,Fi=160;switch(Rn){case"auto":case"bottom":if(fr>=Ke)return{placement:"bottom",maxHeight:Te};if(Or>=Ke&&!ur)return Qn&&z(ct,oi,Fi),{placement:"bottom",maxHeight:Te};if(!ur&&Or>=qt||ur&&fr>=qt){Qn&&z(ct,oi,Fi);var $i=ur?fr-Gn:Or-Gn;return{placement:"bottom",maxHeight:$i}}if(Rn==="auto"||ur){var Vi=Te,Bn=ur?br:Er;return Bn>=qt&&(Vi=Math.min(Bn-Gn-On,Te)),{placement:"top",maxHeight:Vi}}if(Rn==="bottom")return Qn&&A(ct,oi),{placement:"bottom",maxHeight:Te};break;case"top":if(br>=Ke)return{placement:"top",maxHeight:Te};if(Er>=Ke&&!ur)return Qn&&z(ct,si,Fi),{placement:"top",maxHeight:Te};if(!ur&&Er>=qt||ur&&br>=qt){var nt=Te;return(!ur&&Er>=qt||ur&&br>=qt)&&(nt=ur?br-ir:Er-ir),Qn&&z(ct,si,Fi),{placement:"top",maxHeight:nt}}return{placement:"bottom",maxHeight:Te};default:throw new Error('Invalid placement provided "'.concat(Rn,'".'))}return Zt}function Ne(Pe){var Te={bottom:"top",top:"bottom"};return Pe?Te[Pe]:"bottom"}var Ye=function(Te){return Te==="auto"?"bottom":Te},mt=function(Te,Mt){var qt,Rn=Te.placement,Qn=Te.theme,ur=Qn.borderRadius,On=Qn.spacing,ct=Qn.colors;return(0,r.Z)((qt={label:"menu"},(0,d.Z)(qt,Ne(Rn),"100%"),(0,d.Z)(qt,"position","absolute"),(0,d.Z)(qt,"width","100%"),(0,d.Z)(qt,"zIndex",1),qt),Mt?{}:{backgroundColor:ct.neutral0,borderRadius:ur,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:On.menuGutter,marginTop:On.menuGutter})},Ct=(0,k.createContext)(null),ln=function(Te){var Mt=Te.children,qt=Te.minMenuHeight,Rn=Te.maxMenuHeight,Qn=Te.menuPlacement,ur=Te.menuPosition,On=Te.menuShouldScrollIntoView,ct=Te.theme,Zt=(0,k.useContext)(Ct)||{},Cn=Zt.setPortalPlacement,Pn=(0,k.useRef)(null),Kn=(0,k.useState)(Rn),Rt=(0,a.Z)(Kn,2),Ke=Rt[0],Oe=Rt[1],Ge=(0,k.useState)(null),Ft=(0,a.Z)(Ge,2),Qt=Ft[0],wn=Ft[1],Gn=ct.spacing.controlHeight;return(0,w.Z)(function(){var ir=Pn.current;if(ir){var br=ur==="fixed",fr=On&&!br,Er=Ce({maxHeight:Rn,menuEl:ir,minHeight:qt,placement:Qn,shouldScroll:fr,isFixedPosition:br,controlHeight:Gn});Oe(Er.maxHeight),wn(Er.placement),Cn?.(Er.placement)}},[Rn,Qn,ur,On,qt,Cn,Gn]),Mt({ref:Pn,placerProps:(0,r.Z)((0,r.Z)({},Te),{},{placement:Qt||Ye(Qn),maxHeight:Ke})})},$e=function(Te){var Mt=Te.children,qt=Te.innerRef,Rn=Te.innerProps;return(0,s.tZ)("div",(0,n.Z)({},x(Te,"menu",{menu:!0}),{ref:qt},Rn),Mt)},Qe=function(Te,Mt){var qt=Te.maxHeight,Rn=Te.theme.spacing.baseUnit;return(0,r.Z)({maxHeight:qt,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},Mt?{}:{paddingBottom:Rn,paddingTop:Rn})},bt=function(Te){var Mt=Te.children,qt=Te.innerProps,Rn=Te.innerRef,Qn=Te.isMulti;return(0,s.tZ)("div",(0,n.Z)({},x(Te,"menuList",{"menu-list":!0,"menu-list--is-multi":Qn}),{ref:Rn},qt),Mt)},It=function(Te,Mt){var qt=Te.theme,Rn=qt.spacing.baseUnit,Qn=qt.colors;return(0,r.Z)({textAlign:"center"},Mt?{}:{color:Qn.neutral40,padding:"".concat(Rn*2,"px ").concat(Rn*3,"px")})},mn=It,un=It,Be=function(Te){var Mt=Te.children,qt=Te.innerProps;return(0,s.tZ)("div",(0,n.Z)({},x(Te,"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),qt),Mt)};Be.defaultProps={children:"No options"};var je=function(Te){var Mt=Te.children,qt=Te.innerProps;return(0,s.tZ)("div",(0,n.Z)({},x(Te,"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),qt),Mt)};je.defaultProps={children:"Loading..."};var $t=function(Te){var Mt=Te.rect,qt=Te.offset,Rn=Te.position;return{left:Mt.left,position:Rn,top:qt,width:Mt.width,zIndex:1}},et=function(Te){var Mt=Te.appendTo,qt=Te.children,Rn=Te.controlElement,Qn=Te.innerProps,ur=Te.menuPlacement,On=Te.menuPosition,ct=(0,k.useRef)(null),Zt=(0,k.useRef)(null),Cn=(0,k.useState)(Ye(ur)),Pn=(0,a.Z)(Cn,2),Kn=Pn[0],Rt=Pn[1],Ke=(0,k.useMemo)(function(){return{setPortalPlacement:Rt}},[]),Oe=(0,k.useState)(null),Ge=(0,a.Z)(Oe,2),Ft=Ge[0],Qt=Ge[1],wn=(0,k.useCallback)(function(){if(Rn){var fr=$(Rn),Er=On==="fixed"?0:window.pageYOffset,Or=fr[Kn]+Er;(Or!==Ft?.offset||fr.left!==Ft?.rect.left||fr.width!==Ft?.rect.width)&&Qt({offset:Or,rect:fr})}},[Rn,On,Kn,Ft?.offset,Ft?.rect.left,Ft?.rect.width]);(0,w.Z)(function(){wn()},[wn]);var Gn=(0,k.useCallback)(function(){typeof Zt.current=="function"&&(Zt.current(),Zt.current=null),Rn&&ct.current&&(Zt.current=(0,C.Me)(Rn,ct.current,wn,{elementResize:"ResizeObserver"in window}))},[Rn,wn]);(0,w.Z)(function(){Gn()},[Gn]);var ir=(0,k.useCallback)(function(fr){ct.current=fr,Gn()},[Gn]);if(!Mt&&On!=="fixed"||!Ft)return null;var br=(0,s.tZ)("div",(0,n.Z)({ref:ir},x((0,r.Z)((0,r.Z)({},Te),{},{offset:Ft.offset,position:On,rect:Ft.rect}),"menuPortal",{"menu-portal":!0}),Qn),qt);return(0,s.tZ)(Ct.Provider,{value:Ke},Mt?(0,M.createPortal)(br,Mt):br)},Kt=function(Te){var Mt=Te.isDisabled,qt=Te.isRtl;return{label:"container",direction:qt?"rtl":void 0,pointerEvents:Mt?"none":void 0,position:"relative"}},kn=function(Te){var Mt=Te.children,qt=Te.innerProps,Rn=Te.isDisabled,Qn=Te.isRtl;return(0,s.tZ)("div",(0,n.Z)({},x(Te,"container",{"--is-disabled":Rn,"--is-rtl":Qn}),qt),Mt)},Tn=function(Te,Mt){var qt=Te.theme.spacing,Rn=Te.isMulti,Qn=Te.hasValue,ur=Te.selectProps.controlShouldRenderValue;return(0,r.Z)({alignItems:"center",display:Rn&&Qn&&ur?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},Mt?{}:{padding:"".concat(qt.baseUnit/2,"px ").concat(qt.baseUnit*2,"px")})},ht=function(Te){var Mt=Te.children,qt=Te.innerProps,Rn=Te.isMulti,Qn=Te.hasValue;return(0,s.tZ)("div",(0,n.Z)({},x(Te,"valueContainer",{"value-container":!0,"value-container--is-multi":Rn,"value-container--has-value":Qn}),qt),Mt)},ot=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Je=function(Te){var Mt=Te.children,qt=Te.innerProps;return(0,s.tZ)("div",(0,n.Z)({},x(Te,"indicatorsContainer",{indicators:!0}),qt),Mt)},wt,ft=["size"];function vn(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var ut={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Wt=function(Te){var Mt=Te.size,qt=(0,c.Z)(Te,ft);return(0,s.tZ)("svg",(0,n.Z)({height:Mt,width:Mt,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ut},qt))},ae=function(Te){return(0,s.tZ)(Wt,(0,n.Z)({size:20},Te),(0,s.tZ)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},ne=function(Te){return(0,s.tZ)(Wt,(0,n.Z)({size:20},Te),(0,s.tZ)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},ge=function(Te,Mt){var qt=Te.isFocused,Rn=Te.theme,Qn=Rn.spacing.baseUnit,ur=Rn.colors;return(0,r.Z)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},Mt?{}:{color:qt?ur.neutral60:ur.neutral20,padding:Qn*2,":hover":{color:qt?ur.neutral80:ur.neutral40}})},ye=ge,Xe=function(Te){var Mt=Te.children,qt=Te.innerProps;return(0,s.tZ)("div",(0,n.Z)({},x(Te,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),qt),Mt||(0,s.tZ)(ne,null))},Ze=ge,lt=function(Te){var Mt=Te.children,qt=Te.innerProps;return(0,s.tZ)("div",(0,n.Z)({},x(Te,"clearIndicator",{indicator:!0,"clear-indicator":!0}),qt),Mt||(0,s.tZ)(ae,null))},_t=function(Te,Mt){var qt=Te.isDisabled,Rn=Te.theme,Qn=Rn.spacing.baseUnit,ur=Rn.colors;return(0,r.Z)({label:"indicatorSeparator",alignSelf:"stretch",width:1},Mt?{}:{backgroundColor:qt?ur.neutral10:ur.neutral20,marginBottom:Qn*2,marginTop:Qn*2})},zt=function(Te){var Mt=Te.innerProps;return(0,s.tZ)("span",(0,n.Z)({},Mt,x(Te,"indicatorSeparator",{"indicator-separator":!0})))},Vt=(0,s.F4)(wt||(wt=p([`
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
`]))),sn=function(Te,Mt){var qt=Te.isFocused,Rn=Te.size,Qn=Te.theme,ur=Qn.colors,On=Qn.spacing.baseUnit;return(0,r.Z)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:Rn,lineHeight:1,marginRight:Rn,textAlign:"center",verticalAlign:"middle"},Mt?{}:{color:qt?ur.neutral60:ur.neutral20,padding:On*2})},yn=function(Te){var Mt=Te.delay,qt=Te.offset;return(0,s.tZ)("span",{css:(0,s.iv)({animation:"".concat(Vt," 1s ease-in-out ").concat(Mt,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:qt?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},dr=function(Te){var Mt=Te.innerProps,qt=Te.isRtl;return(0,s.tZ)("div",(0,n.Z)({},x(Te,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),Mt),(0,s.tZ)(yn,{delay:0,offset:qt}),(0,s.tZ)(yn,{delay:160,offset:!0}),(0,s.tZ)(yn,{delay:320,offset:!qt}))};dr.defaultProps={size:4};var hr=function(Te,Mt){var qt=Te.isDisabled,Rn=Te.isFocused,Qn=Te.theme,ur=Qn.colors,On=Qn.borderRadius,ct=Qn.spacing;return(0,r.Z)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:ct.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},Mt?{}:{backgroundColor:qt?ur.neutral5:ur.neutral0,borderColor:qt?ur.neutral10:Rn?ur.primary:ur.neutral20,borderRadius:On,borderStyle:"solid",borderWidth:1,boxShadow:Rn?"0 0 0 1px ".concat(ur.primary):void 0,"&:hover":{borderColor:Rn?ur.primary:ur.neutral30}})},Mr=function(Te){var Mt=Te.children,qt=Te.isDisabled,Rn=Te.isFocused,Qn=Te.innerRef,ur=Te.innerProps,On=Te.menuIsOpen;return(0,s.tZ)("div",(0,n.Z)({ref:Qn},x(Te,"control",{control:!0,"control--is-disabled":qt,"control--is-focused":Rn,"control--menu-is-open":On}),ur),Mt)},rr=["data"],Cr=function(Te,Mt){var qt=Te.theme.spacing;return Mt?{}:{paddingBottom:qt.baseUnit*2,paddingTop:qt.baseUnit*2}},Ur=function(Te){var Mt=Te.children,qt=Te.cx,Rn=Te.getStyles,Qn=Te.getClassNames,ur=Te.Heading,On=Te.headingProps,ct=Te.innerProps,Zt=Te.label,Cn=Te.theme,Pn=Te.selectProps;return(0,s.tZ)("div",(0,n.Z)({},x(Te,"group",{group:!0}),ct),(0,s.tZ)(ur,(0,n.Z)({},On,{selectProps:Pn,theme:Cn,getStyles:Rn,getClassNames:Qn,cx:qt}),Zt),(0,s.tZ)("div",null,Mt))},$r=function(Te,Mt){var qt=Te.theme,Rn=qt.colors,Qn=qt.spacing;return(0,r.Z)({label:"group",cursor:"default",display:"block"},Mt?{}:{color:Rn.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:Qn.baseUnit*3,paddingRight:Qn.baseUnit*3,textTransform:"uppercase"})},li=function(Te){var Mt=D(Te);Mt.data;var qt=(0,c.Z)(Mt,rr);return(0,s.tZ)("div",(0,n.Z)({},x(Te,"groupHeading",{"group-heading":!0}),qt))},ri=["innerRef","isDisabled","isHidden","inputClassName"],Bt=function(Te,Mt){var qt=Te.isDisabled,Rn=Te.value,Qn=Te.theme,ur=Qn.spacing,On=Qn.colors;return(0,r.Z)((0,r.Z)({visibility:qt?"hidden":"visible",transform:Rn?"translateZ(0)":""},bn),Mt?{}:{margin:ur.baseUnit/2,paddingBottom:ur.baseUnit/2,paddingTop:ur.baseUnit/2,color:On.neutral80})},Et={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},bn={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,r.Z)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Et)},cn=function(Te){return(0,r.Z)({label:"input",color:"inherit",background:0,opacity:Te?0:1,width:"100%"},Et)},Yn=function(Te){var Mt=Te.cx,qt=Te.value,Rn=D(Te),Qn=Rn.innerRef,ur=Rn.isDisabled,On=Rn.isHidden,ct=Rn.inputClassName,Zt=(0,c.Z)(Rn,ri);return(0,s.tZ)("div",(0,n.Z)({},x(Te,"input",{"input-container":!0}),{"data-value":qt||""}),(0,s.tZ)("input",(0,n.Z)({className:Mt({input:!0},ct),ref:Qn,style:cn(On),disabled:ur},Zt)))},on=function(Te,Mt){var qt=Te.theme,Rn=qt.spacing,Qn=qt.borderRadius,ur=qt.colors;return(0,r.Z)({label:"multiValue",display:"flex",minWidth:0},Mt?{}:{backgroundColor:ur.neutral10,borderRadius:Qn/2,margin:Rn.baseUnit/2})},ze=function(Te,Mt){var qt=Te.theme,Rn=qt.borderRadius,Qn=qt.colors,ur=Te.cropWithEllipsis;return(0,r.Z)({overflow:"hidden",textOverflow:ur||ur===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},Mt?{}:{borderRadius:Rn/2,color:Qn.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Le=function(Te,Mt){var qt=Te.theme,Rn=qt.spacing,Qn=qt.borderRadius,ur=qt.colors,On=Te.isFocused;return(0,r.Z)({alignItems:"center",display:"flex"},Mt?{}:{borderRadius:Qn/2,backgroundColor:On?ur.dangerLight:void 0,paddingLeft:Rn.baseUnit,paddingRight:Rn.baseUnit,":hover":{backgroundColor:ur.dangerLight,color:ur.danger}})},Ht=function(Te){var Mt=Te.children,qt=Te.innerProps;return(0,s.tZ)("div",qt,Mt)},Mn=Ht,tr=Ht;function Sr(Pe){var Te=Pe.children,Mt=Pe.innerProps;return(0,s.tZ)("div",(0,n.Z)({role:"button"},Mt),Te||(0,s.tZ)(ae,{size:14}))}var Xr=function(Te){var Mt=Te.children,qt=Te.components,Rn=Te.data,Qn=Te.innerProps,ur=Te.isDisabled,On=Te.removeProps,ct=Te.selectProps,Zt=qt.Container,Cn=qt.Label,Pn=qt.Remove;return(0,s.tZ)(Zt,{data:Rn,innerProps:(0,r.Z)((0,r.Z)({},x(Te,"multiValue",{"multi-value":!0,"multi-value--is-disabled":ur})),Qn),selectProps:ct},(0,s.tZ)(Cn,{data:Rn,innerProps:(0,r.Z)({},x(Te,"multiValueLabel",{"multi-value__label":!0})),selectProps:ct},Mt),(0,s.tZ)(Pn,{data:Rn,innerProps:(0,r.Z)((0,r.Z)({},x(Te,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(Mt||"option")},On),selectProps:ct}))},gi=function(Te,Mt){var qt=Te.isDisabled,Rn=Te.isFocused,Qn=Te.isSelected,ur=Te.theme,On=ur.spacing,ct=ur.colors;return(0,r.Z)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},Mt?{}:{backgroundColor:Qn?ct.primary:Rn?ct.primary25:"transparent",color:qt?ct.neutral20:Qn?ct.neutral0:"inherit",padding:"".concat(On.baseUnit*2,"px ").concat(On.baseUnit*3,"px"),":active":{backgroundColor:qt?void 0:Qn?ct.primary:ct.primary50}})},Pi=function(Te){var Mt=Te.children,qt=Te.isDisabled,Rn=Te.isFocused,Qn=Te.isSelected,ur=Te.innerRef,On=Te.innerProps;return(0,s.tZ)("div",(0,n.Z)({},x(Te,"option",{option:!0,"option--is-disabled":qt,"option--is-focused":Rn,"option--is-selected":Qn}),{ref:ur,"aria-disabled":qt},On),Mt)},ii=function(Te,Mt){var qt=Te.theme,Rn=qt.spacing,Qn=qt.colors;return(0,r.Z)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},Mt?{}:{color:Qn.neutral50,marginLeft:Rn.baseUnit/2,marginRight:Rn.baseUnit/2})},vr=function(Te){var Mt=Te.children,qt=Te.innerProps;return(0,s.tZ)("div",(0,n.Z)({},x(Te,"placeholder",{placeholder:!0}),qt),Mt)},at=function(Te,Mt){var qt=Te.isDisabled,Rn=Te.theme,Qn=Rn.spacing,ur=Rn.colors;return(0,r.Z)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Mt?{}:{color:qt?ur.neutral40:ur.neutral80,marginLeft:Qn.baseUnit/2,marginRight:Qn.baseUnit/2})},it=function(Te){var Mt=Te.children,qt=Te.isDisabled,Rn=Te.innerProps;return(0,s.tZ)("div",(0,n.Z)({},x(Te,"singleValue",{"single-value":!0,"single-value--is-disabled":qt}),Rn),Mt)},Re={ClearIndicator:lt,Control:Mr,DropdownIndicator:Xe,DownChevron:ne,CrossIcon:ae,Group:Ur,GroupHeading:li,IndicatorsContainer:Je,IndicatorSeparator:zt,Input:Yn,LoadingIndicator:dr,Menu:$e,MenuList:bt,MenuPortal:et,LoadingMessage:je,NoOptionsMessage:Be,MultiValue:Xr,MultiValueContainer:Mn,MultiValueLabel:tr,MultiValueRemove:Sr,Option:Pi,Placeholder:vr,SelectContainer:kn,SingleValue:it,ValueContainer:ht},ke=function(Te){return(0,r.Z)((0,r.Z)({},Re),Te.components)}},83524:(Z,v,t)=>{"use strict";function r(d){return d&&typeof d=="object"&&"default"in d?d.default:d}var n=t(67294),s=r(n);function a(d,k,M){return k in d?Object.defineProperty(d,k,{value:M,enumerable:!0,configurable:!0,writable:!0}):d[k]=M,d}function c(d,k){d.prototype=Object.create(k.prototype),d.prototype.constructor=d,d.__proto__=k}var h=!!(typeof window<"u"&&window.document&&window.document.createElement);function p(d,k,M){if(typeof d!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof k!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof M<"u"&&typeof M!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function C(w){return w.displayName||w.name||"Component"}return function(I){if(typeof I!="function")throw new Error("Expected WrappedComponent to be a React component.");var F=[],U;function B(){U=d(F.map(function(D){return D.props})),N.canUseDOM?k(U):M&&(U=M(U))}var N=function(D){c(x,D);function x(){return D.apply(this,arguments)||this}x.peek=function(){return U},x.rewind=function(){if(x.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var b=U;return U=void 0,F=[],b};var T=x.prototype;return T.UNSAFE_componentWillMount=function(){F.push(this),B()},T.componentDidUpdate=function(){B()},T.componentWillUnmount=function(){var b=F.indexOf(this);F.splice(b,1),B()},T.render=function(){return s.createElement(I,this.props)},x}(n.PureComponent);return a(N,"displayName","SideEffect("+C(I)+")"),a(N,"canUseDOM",h),N}}Z.exports=p},78232:(Z,v,t)=>{"use strict";t.d(v,{Ws:()=>M});var r=t(67294),n,s=function(C){n=C},a=function(){return n||t.nc};function c(){if(!document)return null;var C=document.createElement("style");C.type="text/css";var w=a();return w&&C.setAttribute("nonce",w),C}function h(C,w){C.styleSheet?C.styleSheet.cssText=w:C.appendChild(document.createTextNode(w))}function p(C){var w=document.head||document.getElementsByTagName("head")[0];w.appendChild(C)}var d=function(){var C=0,w=null;return{add:function(I){C==0&&(w=c())&&(h(w,I),p(w)),C++},remove:function(){C--,!C&&w&&(w.parentNode&&w.parentNode.removeChild(w),w=null)}}},k=function(){var C=d();return function(w,I){r.useEffect(function(){return C.add(w),function(){C.remove()}},[w&&I])}},M=function(){var C=k(),w=function(I){var F=I.styles,U=I.dynamic;return C(F,U),null};return w}},75251:(Z,v,t)=>{"use strict";/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=t(67294),n=Symbol.for("react.element"),s=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function p(d,k,M){var C,w={},I=null,F=null;M!==void 0&&(I=""+M),k.key!==void 0&&(I=""+k.key),k.ref!==void 0&&(F=k.ref);for(C in k)a.call(k,C)&&!h.hasOwnProperty(C)&&(w[C]=k[C]);if(d&&d.defaultProps)for(C in k=d.defaultProps,k)w[C]===void 0&&(w[C]=k[C]);return{$$typeof:n,type:d,key:I,ref:F,props:w,_owner:c.current}}v.Fragment=s,v.jsx=p,v.jsxs=p},72408:(Z,v)=>{"use strict";/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),k=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),C=Symbol.iterator;function w(se){return se===null||typeof se!="object"?null:(se=C&&se[C]||se["@@iterator"],typeof se=="function"?se:null)}var I={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F=Object.assign,U={};function B(se,be,fe){this.props=se,this.context=be,this.refs=U,this.updater=fe||I}B.prototype.isReactComponent={},B.prototype.setState=function(se,be){if(typeof se!="object"&&typeof se!="function"&&se!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,se,be,"setState")},B.prototype.forceUpdate=function(se){this.updater.enqueueForceUpdate(this,se,"forceUpdate")};function N(){}N.prototype=B.prototype;function D(se,be,fe){this.props=se,this.context=be,this.refs=U,this.updater=fe||I}var x=D.prototype=new N;x.constructor=D,F(x,B.prototype),x.isPureReactComponent=!0;var T=Array.isArray,u=Object.prototype.hasOwnProperty,b={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function A(se,be,fe){var ue,we={},Me=null,Ce=null;if(be!=null)for(ue in be.ref!==void 0&&(Ce=be.ref),be.key!==void 0&&(Me=""+be.key),be)u.call(be,ue)&&!E.hasOwnProperty(ue)&&(we[ue]=be[ue]);var Ne=arguments.length-2;if(Ne===1)we.children=fe;else if(1<Ne){for(var Ye=Array(Ne),mt=0;mt<Ne;mt++)Ye[mt]=arguments[mt+2];we.children=Ye}if(se&&se.defaultProps)for(ue in Ne=se.defaultProps,Ne)we[ue]===void 0&&(we[ue]=Ne[ue]);return{$$typeof:t,type:se,key:Me,ref:Ce,props:we,_owner:b.current}}function R(se,be){return{$$typeof:t,type:se.type,key:be,ref:se.ref,props:se.props,_owner:se._owner}}function H(se){return typeof se=="object"&&se!==null&&se.$$typeof===t}function z(se){var be={"=":"=0",":":"=2"};return"$"+se.replace(/[=:]/g,function(fe){return be[fe]})}var V=/\/+/g;function $(se,be){return typeof se=="object"&&se!==null&&se.key!=null?z(""+se.key):be.toString(36)}function ee(se,be,fe,ue,we){var Me=typeof se;(Me==="undefined"||Me==="boolean")&&(se=null);var Ce=!1;if(se===null)Ce=!0;else switch(Me){case"string":case"number":Ce=!0;break;case"object":switch(se.$$typeof){case t:case r:Ce=!0}}if(Ce)return Ce=se,we=we(Ce),se=ue===""?"."+$(Ce,0):ue,T(we)?(fe="",se!=null&&(fe=se.replace(V,"$&/")+"/"),ee(we,be,fe,"",function(mt){return mt})):we!=null&&(H(we)&&(we=R(we,fe+(!we.key||Ce&&Ce.key===we.key?"":(""+we.key).replace(V,"$&/")+"/")+se)),be.push(we)),1;if(Ce=0,ue=ue===""?".":ue+":",T(se))for(var Ne=0;Ne<se.length;Ne++){Me=se[Ne];var Ye=ue+$(Me,Ne);Ce+=ee(Me,be,fe,Ye,we)}else if(Ye=w(se),typeof Ye=="function")for(se=Ye.call(se),Ne=0;!(Me=se.next()).done;)Me=Me.value,Ye=ue+$(Me,Ne++),Ce+=ee(Me,be,fe,Ye,we);else if(Me==="object")throw be=String(se),Error("Objects are not valid as a React child (found: "+(be==="[object Object]"?"object with keys {"+Object.keys(se).join(", ")+"}":be)+"). If you meant to render a collection of children, use an array instead.");return Ce}function q(se,be,fe){if(se==null)return se;var ue=[],we=0;return ee(se,ue,"","",function(Me){return be.call(fe,Me,we++)}),ue}function oe(se){if(se._status===-1){var be=se._result;be=be(),be.then(function(fe){(se._status===0||se._status===-1)&&(se._status=1,se._result=fe)},function(fe){(se._status===0||se._status===-1)&&(se._status=2,se._result=fe)}),se._status===-1&&(se._status=0,se._result=be)}if(se._status===1)return se._result.default;throw se._result}var X={current:null},pe={transition:null},Ie={ReactCurrentDispatcher:X,ReactCurrentBatchConfig:pe,ReactCurrentOwner:b};v.Children={map:q,forEach:function(se,be,fe){q(se,function(){be.apply(this,arguments)},fe)},count:function(se){var be=0;return q(se,function(){be++}),be},toArray:function(se){return q(se,function(be){return be})||[]},only:function(se){if(!H(se))throw Error("React.Children.only expected to receive a single React element child.");return se}},v.Component=B,v.Fragment=n,v.Profiler=a,v.PureComponent=D,v.StrictMode=s,v.Suspense=d,v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ie,v.cloneElement=function(se,be,fe){if(se==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+se+".");var ue=F({},se.props),we=se.key,Me=se.ref,Ce=se._owner;if(be!=null){if(be.ref!==void 0&&(Me=be.ref,Ce=b.current),be.key!==void 0&&(we=""+be.key),se.type&&se.type.defaultProps)var Ne=se.type.defaultProps;for(Ye in be)u.call(be,Ye)&&!E.hasOwnProperty(Ye)&&(ue[Ye]=be[Ye]===void 0&&Ne!==void 0?Ne[Ye]:be[Ye])}var Ye=arguments.length-2;if(Ye===1)ue.children=fe;else if(1<Ye){Ne=Array(Ye);for(var mt=0;mt<Ye;mt++)Ne[mt]=arguments[mt+2];ue.children=Ne}return{$$typeof:t,type:se.type,key:we,ref:Me,props:ue,_owner:Ce}},v.createContext=function(se){return se={$$typeof:h,_currentValue:se,_currentValue2:se,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},se.Provider={$$typeof:c,_context:se},se.Consumer=se},v.createElement=A,v.createFactory=function(se){var be=A.bind(null,se);return be.type=se,be},v.createRef=function(){return{current:null}},v.forwardRef=function(se){return{$$typeof:p,render:se}},v.isValidElement=H,v.lazy=function(se){return{$$typeof:M,_payload:{_status:-1,_result:se},_init:oe}},v.memo=function(se,be){return{$$typeof:k,type:se,compare:be===void 0?null:be}},v.startTransition=function(se){var be=pe.transition;pe.transition={};try{se()}finally{pe.transition=be}},v.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},v.useCallback=function(se,be){return X.current.useCallback(se,be)},v.useContext=function(se){return X.current.useContext(se)},v.useDebugValue=function(){},v.useDeferredValue=function(se){return X.current.useDeferredValue(se)},v.useEffect=function(se,be){return X.current.useEffect(se,be)},v.useId=function(){return X.current.useId()},v.useImperativeHandle=function(se,be,fe){return X.current.useImperativeHandle(se,be,fe)},v.useInsertionEffect=function(se,be){return X.current.useInsertionEffect(se,be)},v.useLayoutEffect=function(se,be){return X.current.useLayoutEffect(se,be)},v.useMemo=function(se,be){return X.current.useMemo(se,be)},v.useReducer=function(se,be,fe){return X.current.useReducer(se,be,fe)},v.useRef=function(se){return X.current.useRef(se)},v.useState=function(se){return X.current.useState(se)},v.useSyncExternalStore=function(se,be,fe){return X.current.useSyncExternalStore(se,be,fe)},v.useTransition=function(){return X.current.useTransition()},v.version="18.2.0"},67294:(Z,v,t)=>{"use strict";Z.exports=t(72408)},85893:(Z,v,t)=>{"use strict";Z.exports=t(75251)},14890:(Z,v,t)=>{"use strict";t.r(v),t.d(v,{__DO_NOT_USE__ActionTypes:()=>c,applyMiddleware:()=>u,bindActionCreators:()=>x,combineReducers:()=>N,compose:()=>T,createStore:()=>w,legacy_createStore:()=>I});var r=t(1413);function n(b){return"Minified Redux error #"+b+"; visit https://redux.js.org/Errors?code="+b+" for the full message or use the non-minified dev environment for full errors. "}var s=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),a=function(){return Math.random().toString(36).substring(7).split("").join(".")},c={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function h(b){if(typeof b!="object"||b===null)return!1;for(var E=b;Object.getPrototypeOf(E)!==null;)E=Object.getPrototypeOf(E);return Object.getPrototypeOf(b)===E}function p(b){if(b===void 0)return"undefined";if(b===null)return"null";var E=typeof b;switch(E){case"boolean":case"string":case"number":case"symbol":case"function":return E}if(Array.isArray(b))return"array";if(M(b))return"date";if(k(b))return"error";var A=d(b);switch(A){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return A}return E.slice(8,-1).toLowerCase().replace(/\s/g,"")}function d(b){return typeof b.constructor=="function"?b.constructor.name:null}function k(b){return b instanceof Error||typeof b.message=="string"&&b.constructor&&typeof b.constructor.stackTraceLimit=="number"}function M(b){return b instanceof Date?!0:typeof b.toDateString=="function"&&typeof b.getDate=="function"&&typeof b.setDate=="function"}function C(b){var E=typeof b;return E}function w(b,E,A){var R;if(typeof E=="function"&&typeof A=="function"||typeof A=="function"&&typeof arguments[3]=="function")throw new Error(n(0));if(typeof E=="function"&&typeof A>"u"&&(A=E,E=void 0),typeof A<"u"){if(typeof A!="function")throw new Error(n(1));return A(w)(b,E)}if(typeof b!="function")throw new Error(n(2));var H=b,z=E,V=[],$=V,ee=!1;function q(){$===V&&($=V.slice())}function oe(){if(ee)throw new Error(n(3));return z}function X(be){if(typeof be!="function")throw new Error(n(4));if(ee)throw new Error(n(5));var fe=!0;return q(),$.push(be),function(){if(fe){if(ee)throw new Error(n(6));fe=!1,q();var we=$.indexOf(be);$.splice(we,1),V=null}}}function pe(be){if(!h(be))throw new Error(n(7));if(typeof be.type>"u")throw new Error(n(8));if(ee)throw new Error(n(9));try{ee=!0,z=H(z,be)}finally{ee=!1}for(var fe=V=$,ue=0;ue<fe.length;ue++){var we=fe[ue];we()}return be}function Ie(be){if(typeof be!="function")throw new Error(n(10));H=be,pe({type:c.REPLACE})}function se(){var be,fe=X;return be={subscribe:function(we){if(typeof we!="object"||we===null)throw new Error(n(11));function Me(){we.next&&we.next(oe())}Me();var Ce=fe(Me);return{unsubscribe:Ce}}},be[s]=function(){return this},be}return pe({type:c.INIT}),R={dispatch:pe,subscribe:X,getState:oe,replaceReducer:Ie},R[s]=se,R}var I=w;function F(b){typeof console<"u"&&typeof console.error=="function"&&console.error(b);try{throw new Error(b)}catch{}}function U(b,E,A,R){var H=Object.keys(E),z=A&&A.type===c.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(H.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!h(b))return"The "+z+' has unexpected type of "'+C(b)+'". Expected argument to be an object with the following '+('keys: "'+H.join('", "')+'"');var V=Object.keys(b).filter(function($){return!E.hasOwnProperty($)&&!R[$]});if(V.forEach(function($){R[$]=!0}),!(A&&A.type===c.REPLACE)&&V.length>0)return"Unexpected "+(V.length>1?"keys":"key")+" "+('"'+V.join('", "')+'" found in '+z+". ")+"Expected to find one of the known reducer keys instead: "+('"'+H.join('", "')+'". Unexpected keys will be ignored.')}function B(b){Object.keys(b).forEach(function(E){var A=b[E],R=A(void 0,{type:c.INIT});if(typeof R>"u")throw new Error(n(12));if(typeof A(void 0,{type:c.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(n(13))})}function N(b){for(var E=Object.keys(b),A={},R=0;R<E.length;R++){var H=E[R];typeof b[H]=="function"&&(A[H]=b[H])}var z=Object.keys(A),V,$;try{B(A)}catch(ee){$=ee}return function(q,oe){if(q===void 0&&(q={}),$)throw $;if(!1)var X;for(var pe=!1,Ie={},se=0;se<z.length;se++){var be=z[se],fe=A[be],ue=q[be],we=fe(ue,oe);if(typeof we>"u"){var Me=oe&&oe.type;throw new Error(n(14))}Ie[be]=we,pe=pe||we!==ue}return pe=pe||z.length!==Object.keys(q).length,pe?Ie:q}}function D(b,E){return function(){return E(b.apply(this,arguments))}}function x(b,E){if(typeof b=="function")return D(b,E);if(typeof b!="object"||b===null)throw new Error(n(16));var A={};for(var R in b){var H=b[R];typeof H=="function"&&(A[R]=D(H,E))}return A}function T(){for(var b=arguments.length,E=new Array(b),A=0;A<b;A++)E[A]=arguments[A];return E.length===0?function(R){return R}:E.length===1?E[0]:E.reduce(function(R,H){return function(){return R(H.apply(void 0,arguments))}})}function u(){for(var b=arguments.length,E=new Array(b),A=0;A<b;A++)E[A]=arguments[A];return function(R){return function(){var H=R.apply(void 0,arguments),z=function(){throw new Error(n(15))},V={getState:H.getState,dispatch:function(){return z.apply(void 0,arguments)}},$=E.map(function(ee){return ee(V)});return z=T.apply(void 0,$)(H.dispatch),(0,r.Z)((0,r.Z)({},H),{},{dispatch:z})}}}},91036:(Z,v,t)=>{const r=t(23719),n=t(22997),{isPlainObject:s}=t(10977),a=t(9996),c=t(79430),{parse:h}=t(50020),p=["img","audio","video","picture","svg","object","map","iframe","embed"],d=["script","style"];function k(N,D){N&&Object.keys(N).forEach(function(x){D(N[x],x)})}function M(N,D){return{}.hasOwnProperty.call(N,D)}function C(N,D){const x=[];return k(N,function(T){D(T)&&x.push(T)}),x}function w(N){for(const D in N)if(M(N,D))return!1;return!0}function I(N){return N.map(function(D){if(!D.url)throw new Error("URL missing");return D.url+(D.w?` ${D.w}w`:"")+(D.h?` ${D.h}h`:"")+(D.d?` ${D.d}x`:"")}).join(", ")}Z.exports=U;const F=/^[^\0\t\n\f\r /<=>]+$/;function U(N,D,x){if(N==null)return"";typeof N=="number"&&(N=N.toString());let T="",u="";function b($e,Qe){const bt=this;this.tag=$e,this.attribs=Qe||{},this.tagPosition=T.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(X.length){const It=X[X.length-1];It.text+=bt.text}},this.updateParentNodeMediaChildren=function(){X.length&&p.includes(this.tag)&&X[X.length-1].mediaChildren.push(this.tag)}}D=Object.assign({},U.defaults,D),D.parser=Object.assign({},B,D.parser);const E=function($e){return D.allowedTags===!1||(D.allowedTags||[]).indexOf($e)>-1};d.forEach(function($e){E($e)&&!D.allowVulnerableTags&&console.warn(`

\u26A0\uFE0F Your \`allowedTags\` option includes, \`${$e}\`, which is inherently
vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
Or, to disable this warning, add the \`allowVulnerableTags\` option
and ensure you are accounting for this risk.

`)});const A=D.nonTextTags||["script","style","textarea","option"];let R,H;D.allowedAttributes&&(R={},H={},k(D.allowedAttributes,function($e,Qe){R[Qe]=[];const bt=[];$e.forEach(function(It){typeof It=="string"&&It.indexOf("*")>=0?bt.push(n(It).replace(/\\\*/g,".*")):R[Qe].push(It)}),bt.length&&(H[Qe]=new RegExp("^("+bt.join("|")+")$"))}));const z={},V={},$={};k(D.allowedClasses,function($e,Qe){if(R&&(M(R,Qe)||(R[Qe]=[]),R[Qe].push("class")),z[Qe]=$e,Array.isArray($e)){const bt=[];z[Qe]=[],$[Qe]=[],$e.forEach(function(It){typeof It=="string"&&It.indexOf("*")>=0?bt.push(n(It).replace(/\\\*/g,".*")):It instanceof RegExp?$[Qe].push(It):z[Qe].push(It)}),bt.length&&(V[Qe]=new RegExp("^("+bt.join("|")+")$"))}});const ee={};let q;k(D.transformTags,function($e,Qe){let bt;typeof $e=="function"?bt=$e:typeof $e=="string"&&(bt=U.simpleTransform($e)),Qe==="*"?q=bt:ee[Qe]=bt});let oe,X,pe,Ie,se,be,fe=!1;we();const ue=new r.Parser({onopentag:function($e,Qe){if(D.enforceHtmlBoundary&&$e==="html"&&we(),se){be++;return}const bt=new b($e,Qe);X.push(bt);let It=!1;const mn=!!bt.text;let un;if(M(ee,$e)&&(un=ee[$e]($e,Qe),bt.attribs=Qe=un.attribs,un.text!==void 0&&(bt.innerText=un.text),$e!==un.tagName&&(bt.name=$e=un.tagName,Ie[oe]=un.tagName)),q&&(un=q($e,Qe),bt.attribs=Qe=un.attribs,$e!==un.tagName&&(bt.name=$e=un.tagName,Ie[oe]=un.tagName)),(!E($e)||D.disallowedTagsMode==="recursiveEscape"&&!w(pe)||D.nestingLimit!=null&&oe>=D.nestingLimit)&&(It=!0,pe[oe]=!0,D.disallowedTagsMode==="discard"&&A.indexOf($e)!==-1&&(se=!0,be=1),pe[oe]=!0),oe++,It){if(D.disallowedTagsMode==="discard")return;u=T,T=""}T+="<"+$e,$e==="script"&&(D.allowedScriptHostnames||D.allowedScriptDomains)&&(bt.innerText=""),(!R||M(R,$e)||R["*"])&&k(Qe,function(Be,je){if(!F.test(je)){delete bt.attribs[je];return}if(Be===""&&(D.nonBooleanAttributes.includes(je)||D.nonBooleanAttributes.includes("*"))){delete bt.attribs[je];return}let $t=!1;if(!R||M(R,$e)&&R[$e].indexOf(je)!==-1||R["*"]&&R["*"].indexOf(je)!==-1||M(H,$e)&&H[$e].test(je)||H["*"]&&H["*"].test(je))$t=!0;else if(R&&R[$e]){for(const et of R[$e])if(s(et)&&et.name&&et.name===je){$t=!0;let Kt="";if(et.multiple===!0){const kn=Be.split(" ");for(const Tn of kn)et.values.indexOf(Tn)!==-1&&(Kt===""?Kt=Tn:Kt+=" "+Tn)}else et.values.indexOf(Be)>=0&&(Kt=Be);Be=Kt}}if($t){if(D.allowedSchemesAppliedToAttributes.indexOf(je)!==-1&&Ce($e,Be)){delete bt.attribs[je];return}if($e==="script"&&je==="src"){let et=!0;try{const Kt=Ne(Be);if(D.allowedScriptHostnames||D.allowedScriptDomains){const kn=(D.allowedScriptHostnames||[]).find(function(ht){return ht===Kt.url.hostname}),Tn=(D.allowedScriptDomains||[]).find(function(ht){return Kt.url.hostname===ht||Kt.url.hostname.endsWith(`.${ht}`)});et=kn||Tn}}catch{et=!1}if(!et){delete bt.attribs[je];return}}if($e==="iframe"&&je==="src"){let et=!0;try{const Kt=Ne(Be);if(Kt.isRelativeUrl)et=M(D,"allowIframeRelativeUrls")?D.allowIframeRelativeUrls:!D.allowedIframeHostnames&&!D.allowedIframeDomains;else if(D.allowedIframeHostnames||D.allowedIframeDomains){const kn=(D.allowedIframeHostnames||[]).find(function(ht){return ht===Kt.url.hostname}),Tn=(D.allowedIframeDomains||[]).find(function(ht){return Kt.url.hostname===ht||Kt.url.hostname.endsWith(`.${ht}`)});et=kn||Tn}}catch{et=!1}if(!et){delete bt.attribs[je];return}}if(je==="srcset")try{let et=c(Be);if(et.forEach(function(Kt){Ce("srcset",Kt.url)&&(Kt.evil=!0)}),et=C(et,function(Kt){return!Kt.evil}),et.length)Be=I(C(et,function(Kt){return!Kt.evil})),bt.attribs[je]=Be;else{delete bt.attribs[je];return}}catch{delete bt.attribs[je];return}if(je==="class"){const et=z[$e],Kt=z["*"],kn=V[$e],Tn=$[$e],ht=V["*"],ot=[kn,ht].concat(Tn).filter(function(Je){return Je});if(et&&Kt?Be=ln(Be,a(et,Kt),ot):Be=ln(Be,et||Kt,ot),!Be.length){delete bt.attribs[je];return}}if(je==="style"){if(D.parseStyleAttributes)try{const et=h($e+" {"+Be+"}"),Kt=Ye(et,D.allowedStyles);if(Be=mt(Kt),Be.length===0){delete bt.attribs[je];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+$e+" {"+Be+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete bt.attribs[je];return}else if(D.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}T+=" "+je,Be&&Be.length&&(T+='="'+Me(Be,!0)+'"')}else delete bt.attribs[je]}),D.selfClosing.indexOf($e)!==-1?T+=" />":(T+=">",bt.innerText&&!mn&&!D.textFilter&&(T+=Me(bt.innerText),fe=!0)),It&&(T=u+Me(T),u="")},ontext:function($e){if(se)return;const Qe=X[X.length-1];let bt;if(Qe&&(bt=Qe.tag,$e=Qe.innerText!==void 0?Qe.innerText:$e),D.disallowedTagsMode==="discard"&&(bt==="script"||bt==="style"))T+=$e;else{const It=Me($e,!1);D.textFilter&&!fe?T+=D.textFilter(It,bt):fe||(T+=It)}if(X.length){const It=X[X.length-1];It.text+=$e}},onclosetag:function($e,Qe){if(se)if(be--,!be)se=!1;else return;const bt=X.pop();if(!bt)return;if(bt.tag!==$e){X.push(bt);return}se=D.enforceHtmlBoundary?$e==="html":!1,oe--;const It=pe[oe];if(It){if(delete pe[oe],D.disallowedTagsMode==="discard"){bt.updateParentNodeText();return}u=T,T=""}if(Ie[oe]&&($e=Ie[oe],delete Ie[oe]),D.exclusiveFilter&&D.exclusiveFilter(bt)){T=T.substr(0,bt.tagPosition);return}if(bt.updateParentNodeMediaChildren(),bt.updateParentNodeText(),D.selfClosing.indexOf($e)!==-1||Qe&&!E($e)&&["escape","recursiveEscape"].indexOf(D.disallowedTagsMode)>=0){It&&(T=u,u="");return}T+="</"+$e+">",It&&(T=u+Me(T),u=""),fe=!1}},D.parser);return ue.write(N),ue.end(),T;function we(){T="",oe=0,X=[],pe={},Ie={},se=!1,be=0}function Me($e,Qe){return typeof $e!="string"&&($e=$e+""),D.parser.decodeEntities&&($e=$e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),Qe&&($e=$e.replace(/"/g,"&quot;"))),$e=$e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),Qe&&($e=$e.replace(/"/g,"&quot;")),$e}function Ce($e,Qe){for(Qe=Qe.replace(/[\x00-\x20]+/g,"");;){const mn=Qe.indexOf("<!--");if(mn===-1)break;const un=Qe.indexOf("-->",mn+4);if(un===-1)break;Qe=Qe.substring(0,mn)+Qe.substring(un+3)}const bt=Qe.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!bt)return Qe.match(/^[/\\]{2}/)?!D.allowProtocolRelative:!1;const It=bt[1].toLowerCase();return M(D.allowedSchemesByTag,$e)?D.allowedSchemesByTag[$e].indexOf(It)===-1:!D.allowedSchemes||D.allowedSchemes.indexOf(It)===-1}function Ne($e){if($e=$e.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),$e.startsWith("relative:"))throw new Error("relative: exploit attempt");let Qe="relative://relative-site";for(let mn=0;mn<100;mn++)Qe+=`/${mn}`;const bt=new URL($e,Qe);return{isRelativeUrl:bt&&bt.hostname==="relative-site"&&bt.protocol==="relative:",url:bt}}function Ye($e,Qe){if(!Qe)return $e;const bt=$e.nodes[0];let It;return Qe[bt.selector]&&Qe["*"]?It=a(Qe[bt.selector],Qe["*"]):It=Qe[bt.selector]||Qe["*"],It&&($e.nodes[0].nodes=bt.nodes.reduce(Ct(It),[])),$e}function mt($e){return $e.nodes[0].nodes.reduce(function(Qe,bt){return Qe.push(`${bt.prop}:${bt.value}${bt.important?" !important":""}`),Qe},[]).join(";")}function Ct($e){return function(Qe,bt){return M($e,bt.prop)&&$e[bt.prop].some(function(mn){return mn.test(bt.value)})&&Qe.push(bt),Qe}}function ln($e,Qe,bt){return Qe?($e=$e.split(/\s+/),$e.filter(function(It){return Qe.indexOf(It)!==-1||bt.some(function(mn){return mn.test(It)})}).join(" ")):$e}}const B={decodeEntities:!0};U.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0},U.simpleTransform=function(N,D,x){return x=x===void 0?!0:x,D=D||{},function(T,u){let b;if(x)for(b in D)u[b]=D[b];else u=D;return{tagName:N,attribs:u}}}},22997:Z=>{"use strict";Z.exports=v=>{if(typeof v!="string")throw new TypeError("Expected a string");return v.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},10977:(Z,v)=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */function t(n){return Object.prototype.toString.call(n)==="[object Object]"}function r(n){var s,a;return t(n)===!1?!1:(s=n.constructor,s===void 0?!0:(a=s.prototype,!(t(a)===!1||a.hasOwnProperty("isPrototypeOf")===!1)))}v.isPlainObject=r},60053:(Z,v)=>{"use strict";/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */function t(X,pe){var Ie=X.length;X.push(pe);e:for(;0<Ie;){var se=Ie-1>>>1,be=X[se];if(0<s(be,pe))X[se]=pe,X[Ie]=be,Ie=se;else break e}}function r(X){return X.length===0?null:X[0]}function n(X){if(X.length===0)return null;var pe=X[0],Ie=X.pop();if(Ie!==pe){X[0]=Ie;e:for(var se=0,be=X.length,fe=be>>>1;se<fe;){var ue=2*(se+1)-1,we=X[ue],Me=ue+1,Ce=X[Me];if(0>s(we,Ie))Me<be&&0>s(Ce,we)?(X[se]=Ce,X[Me]=Ie,se=Me):(X[se]=we,X[ue]=Ie,se=ue);else if(Me<be&&0>s(Ce,Ie))X[se]=Ce,X[Me]=Ie,se=Me;else break e}}return pe}function s(X,pe){var Ie=X.sortIndex-pe.sortIndex;return Ie!==0?Ie:X.id-pe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;v.unstable_now=function(){return a.now()}}else{var c=Date,h=c.now();v.unstable_now=function(){return c.now()-h}}var p=[],d=[],k=1,M=null,C=3,w=!1,I=!1,F=!1,U=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function D(X){for(var pe=r(d);pe!==null;){if(pe.callback===null)n(d);else if(pe.startTime<=X)n(d),pe.sortIndex=pe.expirationTime,t(p,pe);else break;pe=r(d)}}function x(X){if(F=!1,D(X),!I)if(r(p)!==null)I=!0,q(T);else{var pe=r(d);pe!==null&&oe(x,pe.startTime-X)}}function T(X,pe){I=!1,F&&(F=!1,B(E),E=-1),w=!0;var Ie=C;try{for(D(pe),M=r(p);M!==null&&(!(M.expirationTime>pe)||X&&!H());){var se=M.callback;if(typeof se=="function"){M.callback=null,C=M.priorityLevel;var be=se(M.expirationTime<=pe);pe=v.unstable_now(),typeof be=="function"?M.callback=be:M===r(p)&&n(p),D(pe)}else n(p);M=r(p)}if(M!==null)var fe=!0;else{var ue=r(d);ue!==null&&oe(x,ue.startTime-pe),fe=!1}return fe}finally{M=null,C=Ie,w=!1}}var u=!1,b=null,E=-1,A=5,R=-1;function H(){return!(v.unstable_now()-R<A)}function z(){if(b!==null){var X=v.unstable_now();R=X;var pe=!0;try{pe=b(!0,X)}finally{pe?V():(u=!1,b=null)}}else u=!1}var V;if(typeof N=="function")V=function(){N(z)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,ee=$.port2;$.port1.onmessage=z,V=function(){ee.postMessage(null)}}else V=function(){U(z,0)};function q(X){b=X,u||(u=!0,V())}function oe(X,pe){E=U(function(){X(v.unstable_now())},pe)}v.unstable_IdlePriority=5,v.unstable_ImmediatePriority=1,v.unstable_LowPriority=4,v.unstable_NormalPriority=3,v.unstable_Profiling=null,v.unstable_UserBlockingPriority=2,v.unstable_cancelCallback=function(X){X.callback=null},v.unstable_continueExecution=function(){I||w||(I=!0,q(T))},v.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<X?Math.floor(1e3/X):5},v.unstable_getCurrentPriorityLevel=function(){return C},v.unstable_getFirstCallbackNode=function(){return r(p)},v.unstable_next=function(X){switch(C){case 1:case 2:case 3:var pe=3;break;default:pe=C}var Ie=C;C=pe;try{return X()}finally{C=Ie}},v.unstable_pauseExecution=function(){},v.unstable_requestPaint=function(){},v.unstable_runWithPriority=function(X,pe){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var Ie=C;C=X;try{return pe()}finally{C=Ie}},v.unstable_scheduleCallback=function(X,pe,Ie){var se=v.unstable_now();switch(typeof Ie=="object"&&Ie!==null?(Ie=Ie.delay,Ie=typeof Ie=="number"&&0<Ie?se+Ie:se):Ie=se,X){case 1:var be=-1;break;case 2:be=250;break;case 5:be=1073741823;break;case 4:be=1e4;break;default:be=5e3}return be=Ie+be,X={id:k++,callback:pe,priorityLevel:X,startTime:Ie,expirationTime:be,sortIndex:-1},Ie>se?(X.sortIndex=Ie,t(d,X),r(p)===null&&X===r(d)&&(F?(B(E),E=-1):F=!0,oe(x,Ie-se))):(X.sortIndex=be,t(p,X),I||w||(I=!0,q(T))),X},v.unstable_shouldYield=H,v.unstable_wrapCallback=function(X){var pe=C;return function(){var Ie=C;C=pe;try{return X.apply(this,arguments)}finally{C=Ie}}}},63840:(Z,v,t)=>{"use strict";Z.exports=t(60053)},96774:Z=>{Z.exports=function(t,r,n,s){var a=n?n.call(s,t,r):void 0;if(a!==void 0)return!!a;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var c=Object.keys(t),h=Object.keys(r);if(c.length!==h.length)return!1;for(var p=Object.prototype.hasOwnProperty.bind(r),d=0;d<c.length;d++){var k=c[d];if(!p(k))return!1;var M=t[k],C=r[k];if(a=n?n.call(s,M,C,k):void 0,a===!1||a===void 0&&M!==C)return!1}return!0}},53787:function(Z,v,t){var r;/*! showdown v 1.9.1 - 02-11-2019 */(function(){function n(u){"use strict";var b={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:`Remove only spaces, ' and " from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids`,type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,description:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,description:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,description:"Parses simple line breaks as <br> (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex: <div>foo</div>",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `<em>` and `<strong>`",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including `<html>`, `<head>` and `<body>` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `\xAB\xAB\xAB` and `\xBB\xBB\xBB` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(u===!1)return JSON.parse(JSON.stringify(b));var E={};for(var A in b)b.hasOwnProperty(A)&&(E[A]=b[A].defaultValue);return E}function s(){"use strict";var u=n(!0),b={};for(var E in u)u.hasOwnProperty(E)&&(b[E]=!0);return b}var a={},c={},h={},p=n(!0),d="vanilla",k={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:n(!0),allOn:s()};a.helper={},a.extensions={},a.setOption=function(u,b){"use strict";return p[u]=b,this},a.getOption=function(u){"use strict";return p[u]},a.getOptions=function(){"use strict";return p},a.resetOptions=function(){"use strict";p=n(!0)},a.setFlavor=function(u){"use strict";if(!k.hasOwnProperty(u))throw Error(u+" flavor was not found");a.resetOptions();var b=k[u];d=u;for(var E in b)b.hasOwnProperty(E)&&(p[E]=b[E])},a.getFlavor=function(){"use strict";return d},a.getFlavorOptions=function(u){"use strict";if(k.hasOwnProperty(u))return k[u]},a.getDefaultOptions=function(u){"use strict";return n(u)},a.subParser=function(u,b){"use strict";if(a.helper.isString(u))if(typeof b<"u")c[u]=b;else{if(c.hasOwnProperty(u))return c[u];throw Error("SubParser named "+u+" not registered!")}},a.extension=function(u,b){"use strict";if(!a.helper.isString(u))throw Error("Extension 'name' must be a string");if(u=a.helper.stdExtName(u),a.helper.isUndefined(b)){if(!h.hasOwnProperty(u))throw Error("Extension named "+u+" is not registered!");return h[u]}else{typeof b=="function"&&(b=b()),a.helper.isArray(b)||(b=[b]);var E=M(b,u);if(E.valid)h[u]=b;else throw Error(E.error)}},a.getAllExtensions=function(){"use strict";return h},a.removeExtension=function(u){"use strict";delete h[u]},a.resetExtensions=function(){"use strict";h={}};function M(u,b){"use strict";var E=b?"Error in "+b+" extension->":"Error in unnamed extension",A={valid:!0,error:""};a.helper.isArray(u)||(u=[u]);for(var R=0;R<u.length;++R){var H=E+" sub-extension "+R+": ",z=u[R];if(typeof z!="object")return A.valid=!1,A.error=H+"must be an object, but "+typeof z+" given",A;if(!a.helper.isString(z.type))return A.valid=!1,A.error=H+'property "type" must be a string, but '+typeof z.type+" given",A;var V=z.type=z.type.toLowerCase();if(V==="language"&&(V=z.type="lang"),V==="html"&&(V=z.type="output"),V!=="lang"&&V!=="output"&&V!=="listener")return A.valid=!1,A.error=H+"type "+V+' is not recognized. Valid values: "lang/language", "output/html" or "listener"',A;if(V==="listener"){if(a.helper.isUndefined(z.listeners))return A.valid=!1,A.error=H+'. Extensions of type "listener" must have a property called "listeners"',A}else if(a.helper.isUndefined(z.filter)&&a.helper.isUndefined(z.regex))return A.valid=!1,A.error=H+V+' extensions must define either a "regex" property or a "filter" method',A;if(z.listeners){if(typeof z.listeners!="object")return A.valid=!1,A.error=H+'"listeners" property must be an object but '+typeof z.listeners+" given",A;for(var $ in z.listeners)if(z.listeners.hasOwnProperty($)&&typeof z.listeners[$]!="function")return A.valid=!1,A.error=H+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+$+" must be a function but "+typeof z.listeners[$]+" given",A}if(z.filter){if(typeof z.filter!="function")return A.valid=!1,A.error=H+'"filter" must be a function, but '+typeof z.filter+" given",A}else if(z.regex){if(a.helper.isString(z.regex)&&(z.regex=new RegExp(z.regex,"g")),!(z.regex instanceof RegExp))return A.valid=!1,A.error=H+'"regex" property must either be a string or a RegExp object, but '+typeof z.regex+" given",A;if(a.helper.isUndefined(z.replace))return A.valid=!1,A.error=H+'"regex" extensions must implement a replace string or function',A}}return A}a.validateExtension=function(u){"use strict";var b=M(u,null);return b.valid?!0:(console.warn(b.error),!1)},a.hasOwnProperty("helper")||(a.helper={}),a.helper.isString=function(u){"use strict";return typeof u=="string"||u instanceof String},a.helper.isFunction=function(u){"use strict";var b={};return u&&b.toString.call(u)==="[object Function]"},a.helper.isArray=function(u){"use strict";return Array.isArray(u)},a.helper.isUndefined=function(u){"use strict";return typeof u>"u"},a.helper.forEach=function(u,b){"use strict";if(a.helper.isUndefined(u))throw new Error("obj param is required");if(a.helper.isUndefined(b))throw new Error("callback param is required");if(!a.helper.isFunction(b))throw new Error("callback param must be a function/closure");if(typeof u.forEach=="function")u.forEach(b);else if(a.helper.isArray(u))for(var E=0;E<u.length;E++)b(u[E],E,u);else if(typeof u=="object")for(var A in u)u.hasOwnProperty(A)&&b(u[A],A,u);else throw new Error("obj does not seem to be an array or an iterable object")},a.helper.stdExtName=function(u){"use strict";return u.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()};function C(u,b){"use strict";var E=b.charCodeAt(0);return"\xA8E"+E+"E"}a.helper.escapeCharactersCallback=C,a.helper.escapeCharacters=function(u,b,E){"use strict";var A="(["+b.replace(/([\[\]\\])/g,"\\$1")+"])";E&&(A="\\\\"+A);var R=new RegExp(A,"g");return u=u.replace(R,C),u},a.helper.unescapeHTMLEntities=function(u){"use strict";return u.replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")};var w=function(u,b,E,A){"use strict";var R=A||"",H=R.indexOf("g")>-1,z=new RegExp(b+"|"+E,"g"+R.replace(/g/g,"")),V=new RegExp(b,R.replace(/g/g,"")),$=[],ee,q,oe,X,pe;do for(ee=0;oe=z.exec(u);)if(V.test(oe[0]))ee++||(q=z.lastIndex,X=q-oe[0].length);else if(ee&&!--ee){pe=oe.index+oe[0].length;var Ie={left:{start:X,end:q},match:{start:q,end:oe.index},right:{start:oe.index,end:pe},wholeMatch:{start:X,end:pe}};if($.push(Ie),!H)return $}while(ee&&(z.lastIndex=q));return $};a.helper.matchRecursiveRegExp=function(u,b,E,A){"use strict";for(var R=w(u,b,E,A),H=[],z=0;z<R.length;++z)H.push([u.slice(R[z].wholeMatch.start,R[z].wholeMatch.end),u.slice(R[z].match.start,R[z].match.end),u.slice(R[z].left.start,R[z].left.end),u.slice(R[z].right.start,R[z].right.end)]);return H},a.helper.replaceRecursiveRegExp=function(u,b,E,A,R){"use strict";if(!a.helper.isFunction(b)){var H=b;b=function(){return H}}var z=w(u,E,A,R),V=u,$=z.length;if($>0){var ee=[];z[0].wholeMatch.start!==0&&ee.push(u.slice(0,z[0].wholeMatch.start));for(var q=0;q<$;++q)ee.push(b(u.slice(z[q].wholeMatch.start,z[q].wholeMatch.end),u.slice(z[q].match.start,z[q].match.end),u.slice(z[q].left.start,z[q].left.end),u.slice(z[q].right.start,z[q].right.end))),q<$-1&&ee.push(u.slice(z[q].wholeMatch.end,z[q+1].wholeMatch.start));z[$-1].wholeMatch.end<u.length&&ee.push(u.slice(z[$-1].wholeMatch.end)),V=ee.join("")}return V},a.helper.regexIndexOf=function(u,b,E){"use strict";if(!a.helper.isString(u))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(!(b instanceof RegExp))throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";var A=u.substring(E||0).search(b);return A>=0?A+(E||0):A},a.helper.splitAtIndex=function(u,b){"use strict";if(!a.helper.isString(u))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[u.substring(0,b),u.substring(b)]},a.helper.encodeEmailAddress=function(u){"use strict";var b=[function(E){return"&#"+E.charCodeAt(0)+";"},function(E){return"&#x"+E.charCodeAt(0).toString(16)+";"},function(E){return E}];return u=u.replace(/./g,function(E){if(E==="@")E=b[Math.floor(Math.random()*2)](E);else{var A=Math.random();E=A>.9?b[2](E):A>.45?b[1](E):b[0](E)}return E}),u},a.helper.padEnd=function(b,E,A){"use strict";return E=E>>0,A=String(A||" "),b.length>E?String(b):(E=E-b.length,E>A.length&&(A+=A.repeat(E/A.length)),String(b)+A.slice(0,E))},typeof console>"u"&&(console={warn:function(u){"use strict";alert(u)},log:function(u){"use strict";alert(u)},error:function(u){"use strict";throw u}}),a.helper.regexes={asteriskDashAndColon:/([*_:~])/g},a.helper.emojis={"+1":"\u{1F44D}","-1":"\u{1F44E}",100:"\u{1F4AF}",1234:"\u{1F522}","1st_place_medal":"\u{1F947}","2nd_place_medal":"\u{1F948}","3rd_place_medal":"\u{1F949}","8ball":"\u{1F3B1}",a:"\u{1F170}\uFE0F",ab:"\u{1F18E}",abc:"\u{1F524}",abcd:"\u{1F521}",accept:"\u{1F251}",aerial_tramway:"\u{1F6A1}",airplane:"\u2708\uFE0F",alarm_clock:"\u23F0",alembic:"\u2697\uFE0F",alien:"\u{1F47D}",ambulance:"\u{1F691}",amphora:"\u{1F3FA}",anchor:"\u2693\uFE0F",angel:"\u{1F47C}",anger:"\u{1F4A2}",angry:"\u{1F620}",anguished:"\u{1F627}",ant:"\u{1F41C}",apple:"\u{1F34E}",aquarius:"\u2652\uFE0F",aries:"\u2648\uFE0F",arrow_backward:"\u25C0\uFE0F",arrow_double_down:"\u23EC",arrow_double_up:"\u23EB",arrow_down:"\u2B07\uFE0F",arrow_down_small:"\u{1F53D}",arrow_forward:"\u25B6\uFE0F",arrow_heading_down:"\u2935\uFE0F",arrow_heading_up:"\u2934\uFE0F",arrow_left:"\u2B05\uFE0F",arrow_lower_left:"\u2199\uFE0F",arrow_lower_right:"\u2198\uFE0F",arrow_right:"\u27A1\uFE0F",arrow_right_hook:"\u21AA\uFE0F",arrow_up:"\u2B06\uFE0F",arrow_up_down:"\u2195\uFE0F",arrow_up_small:"\u{1F53C}",arrow_upper_left:"\u2196\uFE0F",arrow_upper_right:"\u2197\uFE0F",arrows_clockwise:"\u{1F503}",arrows_counterclockwise:"\u{1F504}",art:"\u{1F3A8}",articulated_lorry:"\u{1F69B}",artificial_satellite:"\u{1F6F0}",astonished:"\u{1F632}",athletic_shoe:"\u{1F45F}",atm:"\u{1F3E7}",atom_symbol:"\u269B\uFE0F",avocado:"\u{1F951}",b:"\u{1F171}\uFE0F",baby:"\u{1F476}",baby_bottle:"\u{1F37C}",baby_chick:"\u{1F424}",baby_symbol:"\u{1F6BC}",back:"\u{1F519}",bacon:"\u{1F953}",badminton:"\u{1F3F8}",baggage_claim:"\u{1F6C4}",baguette_bread:"\u{1F956}",balance_scale:"\u2696\uFE0F",balloon:"\u{1F388}",ballot_box:"\u{1F5F3}",ballot_box_with_check:"\u2611\uFE0F",bamboo:"\u{1F38D}",banana:"\u{1F34C}",bangbang:"\u203C\uFE0F",bank:"\u{1F3E6}",bar_chart:"\u{1F4CA}",barber:"\u{1F488}",baseball:"\u26BE\uFE0F",basketball:"\u{1F3C0}",basketball_man:"\u26F9\uFE0F",basketball_woman:"\u26F9\uFE0F&zwj;\u2640\uFE0F",bat:"\u{1F987}",bath:"\u{1F6C0}",bathtub:"\u{1F6C1}",battery:"\u{1F50B}",beach_umbrella:"\u{1F3D6}",bear:"\u{1F43B}",bed:"\u{1F6CF}",bee:"\u{1F41D}",beer:"\u{1F37A}",beers:"\u{1F37B}",beetle:"\u{1F41E}",beginner:"\u{1F530}",bell:"\u{1F514}",bellhop_bell:"\u{1F6CE}",bento:"\u{1F371}",biking_man:"\u{1F6B4}",bike:"\u{1F6B2}",biking_woman:"\u{1F6B4}&zwj;\u2640\uFE0F",bikini:"\u{1F459}",biohazard:"\u2623\uFE0F",bird:"\u{1F426}",birthday:"\u{1F382}",black_circle:"\u26AB\uFE0F",black_flag:"\u{1F3F4}",black_heart:"\u{1F5A4}",black_joker:"\u{1F0CF}",black_large_square:"\u2B1B\uFE0F",black_medium_small_square:"\u25FE\uFE0F",black_medium_square:"\u25FC\uFE0F",black_nib:"\u2712\uFE0F",black_small_square:"\u25AA\uFE0F",black_square_button:"\u{1F532}",blonde_man:"\u{1F471}",blonde_woman:"\u{1F471}&zwj;\u2640\uFE0F",blossom:"\u{1F33C}",blowfish:"\u{1F421}",blue_book:"\u{1F4D8}",blue_car:"\u{1F699}",blue_heart:"\u{1F499}",blush:"\u{1F60A}",boar:"\u{1F417}",boat:"\u26F5\uFE0F",bomb:"\u{1F4A3}",book:"\u{1F4D6}",bookmark:"\u{1F516}",bookmark_tabs:"\u{1F4D1}",books:"\u{1F4DA}",boom:"\u{1F4A5}",boot:"\u{1F462}",bouquet:"\u{1F490}",bowing_man:"\u{1F647}",bow_and_arrow:"\u{1F3F9}",bowing_woman:"\u{1F647}&zwj;\u2640\uFE0F",bowling:"\u{1F3B3}",boxing_glove:"\u{1F94A}",boy:"\u{1F466}",bread:"\u{1F35E}",bride_with_veil:"\u{1F470}",bridge_at_night:"\u{1F309}",briefcase:"\u{1F4BC}",broken_heart:"\u{1F494}",bug:"\u{1F41B}",building_construction:"\u{1F3D7}",bulb:"\u{1F4A1}",bullettrain_front:"\u{1F685}",bullettrain_side:"\u{1F684}",burrito:"\u{1F32F}",bus:"\u{1F68C}",business_suit_levitating:"\u{1F574}",busstop:"\u{1F68F}",bust_in_silhouette:"\u{1F464}",busts_in_silhouette:"\u{1F465}",butterfly:"\u{1F98B}",cactus:"\u{1F335}",cake:"\u{1F370}",calendar:"\u{1F4C6}",call_me_hand:"\u{1F919}",calling:"\u{1F4F2}",camel:"\u{1F42B}",camera:"\u{1F4F7}",camera_flash:"\u{1F4F8}",camping:"\u{1F3D5}",cancer:"\u264B\uFE0F",candle:"\u{1F56F}",candy:"\u{1F36C}",canoe:"\u{1F6F6}",capital_abcd:"\u{1F520}",capricorn:"\u2651\uFE0F",car:"\u{1F697}",card_file_box:"\u{1F5C3}",card_index:"\u{1F4C7}",card_index_dividers:"\u{1F5C2}",carousel_horse:"\u{1F3A0}",carrot:"\u{1F955}",cat:"\u{1F431}",cat2:"\u{1F408}",cd:"\u{1F4BF}",chains:"\u26D3",champagne:"\u{1F37E}",chart:"\u{1F4B9}",chart_with_downwards_trend:"\u{1F4C9}",chart_with_upwards_trend:"\u{1F4C8}",checkered_flag:"\u{1F3C1}",cheese:"\u{1F9C0}",cherries:"\u{1F352}",cherry_blossom:"\u{1F338}",chestnut:"\u{1F330}",chicken:"\u{1F414}",children_crossing:"\u{1F6B8}",chipmunk:"\u{1F43F}",chocolate_bar:"\u{1F36B}",christmas_tree:"\u{1F384}",church:"\u26EA\uFE0F",cinema:"\u{1F3A6}",circus_tent:"\u{1F3AA}",city_sunrise:"\u{1F307}",city_sunset:"\u{1F306}",cityscape:"\u{1F3D9}",cl:"\u{1F191}",clamp:"\u{1F5DC}",clap:"\u{1F44F}",clapper:"\u{1F3AC}",classical_building:"\u{1F3DB}",clinking_glasses:"\u{1F942}",clipboard:"\u{1F4CB}",clock1:"\u{1F550}",clock10:"\u{1F559}",clock1030:"\u{1F565}",clock11:"\u{1F55A}",clock1130:"\u{1F566}",clock12:"\u{1F55B}",clock1230:"\u{1F567}",clock130:"\u{1F55C}",clock2:"\u{1F551}",clock230:"\u{1F55D}",clock3:"\u{1F552}",clock330:"\u{1F55E}",clock4:"\u{1F553}",clock430:"\u{1F55F}",clock5:"\u{1F554}",clock530:"\u{1F560}",clock6:"\u{1F555}",clock630:"\u{1F561}",clock7:"\u{1F556}",clock730:"\u{1F562}",clock8:"\u{1F557}",clock830:"\u{1F563}",clock9:"\u{1F558}",clock930:"\u{1F564}",closed_book:"\u{1F4D5}",closed_lock_with_key:"\u{1F510}",closed_umbrella:"\u{1F302}",cloud:"\u2601\uFE0F",cloud_with_lightning:"\u{1F329}",cloud_with_lightning_and_rain:"\u26C8",cloud_with_rain:"\u{1F327}",cloud_with_snow:"\u{1F328}",clown_face:"\u{1F921}",clubs:"\u2663\uFE0F",cocktail:"\u{1F378}",coffee:"\u2615\uFE0F",coffin:"\u26B0\uFE0F",cold_sweat:"\u{1F630}",comet:"\u2604\uFE0F",computer:"\u{1F4BB}",computer_mouse:"\u{1F5B1}",confetti_ball:"\u{1F38A}",confounded:"\u{1F616}",confused:"\u{1F615}",congratulations:"\u3297\uFE0F",construction:"\u{1F6A7}",construction_worker_man:"\u{1F477}",construction_worker_woman:"\u{1F477}&zwj;\u2640\uFE0F",control_knobs:"\u{1F39B}",convenience_store:"\u{1F3EA}",cookie:"\u{1F36A}",cool:"\u{1F192}",policeman:"\u{1F46E}",copyright:"\xA9\uFE0F",corn:"\u{1F33D}",couch_and_lamp:"\u{1F6CB}",couple:"\u{1F46B}",couple_with_heart_woman_man:"\u{1F491}",couple_with_heart_man_man:"\u{1F468}&zwj;\u2764\uFE0F&zwj;\u{1F468}",couple_with_heart_woman_woman:"\u{1F469}&zwj;\u2764\uFE0F&zwj;\u{1F469}",couplekiss_man_man:"\u{1F468}&zwj;\u2764\uFE0F&zwj;\u{1F48B}&zwj;\u{1F468}",couplekiss_man_woman:"\u{1F48F}",couplekiss_woman_woman:"\u{1F469}&zwj;\u2764\uFE0F&zwj;\u{1F48B}&zwj;\u{1F469}",cow:"\u{1F42E}",cow2:"\u{1F404}",cowboy_hat_face:"\u{1F920}",crab:"\u{1F980}",crayon:"\u{1F58D}",credit_card:"\u{1F4B3}",crescent_moon:"\u{1F319}",cricket:"\u{1F3CF}",crocodile:"\u{1F40A}",croissant:"\u{1F950}",crossed_fingers:"\u{1F91E}",crossed_flags:"\u{1F38C}",crossed_swords:"\u2694\uFE0F",crown:"\u{1F451}",cry:"\u{1F622}",crying_cat_face:"\u{1F63F}",crystal_ball:"\u{1F52E}",cucumber:"\u{1F952}",cupid:"\u{1F498}",curly_loop:"\u27B0",currency_exchange:"\u{1F4B1}",curry:"\u{1F35B}",custard:"\u{1F36E}",customs:"\u{1F6C3}",cyclone:"\u{1F300}",dagger:"\u{1F5E1}",dancer:"\u{1F483}",dancing_women:"\u{1F46F}",dancing_men:"\u{1F46F}&zwj;\u2642\uFE0F",dango:"\u{1F361}",dark_sunglasses:"\u{1F576}",dart:"\u{1F3AF}",dash:"\u{1F4A8}",date:"\u{1F4C5}",deciduous_tree:"\u{1F333}",deer:"\u{1F98C}",department_store:"\u{1F3EC}",derelict_house:"\u{1F3DA}",desert:"\u{1F3DC}",desert_island:"\u{1F3DD}",desktop_computer:"\u{1F5A5}",male_detective:"\u{1F575}\uFE0F",diamond_shape_with_a_dot_inside:"\u{1F4A0}",diamonds:"\u2666\uFE0F",disappointed:"\u{1F61E}",disappointed_relieved:"\u{1F625}",dizzy:"\u{1F4AB}",dizzy_face:"\u{1F635}",do_not_litter:"\u{1F6AF}",dog:"\u{1F436}",dog2:"\u{1F415}",dollar:"\u{1F4B5}",dolls:"\u{1F38E}",dolphin:"\u{1F42C}",door:"\u{1F6AA}",doughnut:"\u{1F369}",dove:"\u{1F54A}",dragon:"\u{1F409}",dragon_face:"\u{1F432}",dress:"\u{1F457}",dromedary_camel:"\u{1F42A}",drooling_face:"\u{1F924}",droplet:"\u{1F4A7}",drum:"\u{1F941}",duck:"\u{1F986}",dvd:"\u{1F4C0}","e-mail":"\u{1F4E7}",eagle:"\u{1F985}",ear:"\u{1F442}",ear_of_rice:"\u{1F33E}",earth_africa:"\u{1F30D}",earth_americas:"\u{1F30E}",earth_asia:"\u{1F30F}",egg:"\u{1F95A}",eggplant:"\u{1F346}",eight_pointed_black_star:"\u2734\uFE0F",eight_spoked_asterisk:"\u2733\uFE0F",electric_plug:"\u{1F50C}",elephant:"\u{1F418}",email:"\u2709\uFE0F",end:"\u{1F51A}",envelope_with_arrow:"\u{1F4E9}",euro:"\u{1F4B6}",european_castle:"\u{1F3F0}",european_post_office:"\u{1F3E4}",evergreen_tree:"\u{1F332}",exclamation:"\u2757\uFE0F",expressionless:"\u{1F611}",eye:"\u{1F441}",eye_speech_bubble:"\u{1F441}&zwj;\u{1F5E8}",eyeglasses:"\u{1F453}",eyes:"\u{1F440}",face_with_head_bandage:"\u{1F915}",face_with_thermometer:"\u{1F912}",fist_oncoming:"\u{1F44A}",factory:"\u{1F3ED}",fallen_leaf:"\u{1F342}",family_man_woman_boy:"\u{1F46A}",family_man_boy:"\u{1F468}&zwj;\u{1F466}",family_man_boy_boy:"\u{1F468}&zwj;\u{1F466}&zwj;\u{1F466}",family_man_girl:"\u{1F468}&zwj;\u{1F467}",family_man_girl_boy:"\u{1F468}&zwj;\u{1F467}&zwj;\u{1F466}",family_man_girl_girl:"\u{1F468}&zwj;\u{1F467}&zwj;\u{1F467}",family_man_man_boy:"\u{1F468}&zwj;\u{1F468}&zwj;\u{1F466}",family_man_man_boy_boy:"\u{1F468}&zwj;\u{1F468}&zwj;\u{1F466}&zwj;\u{1F466}",family_man_man_girl:"\u{1F468}&zwj;\u{1F468}&zwj;\u{1F467}",family_man_man_girl_boy:"\u{1F468}&zwj;\u{1F468}&zwj;\u{1F467}&zwj;\u{1F466}",family_man_man_girl_girl:"\u{1F468}&zwj;\u{1F468}&zwj;\u{1F467}&zwj;\u{1F467}",family_man_woman_boy_boy:"\u{1F468}&zwj;\u{1F469}&zwj;\u{1F466}&zwj;\u{1F466}",family_man_woman_girl:"\u{1F468}&zwj;\u{1F469}&zwj;\u{1F467}",family_man_woman_girl_boy:"\u{1F468}&zwj;\u{1F469}&zwj;\u{1F467}&zwj;\u{1F466}",family_man_woman_girl_girl:"\u{1F468}&zwj;\u{1F469}&zwj;\u{1F467}&zwj;\u{1F467}",family_woman_boy:"\u{1F469}&zwj;\u{1F466}",family_woman_boy_boy:"\u{1F469}&zwj;\u{1F466}&zwj;\u{1F466}",family_woman_girl:"\u{1F469}&zwj;\u{1F467}",family_woman_girl_boy:"\u{1F469}&zwj;\u{1F467}&zwj;\u{1F466}",family_woman_girl_girl:"\u{1F469}&zwj;\u{1F467}&zwj;\u{1F467}",family_woman_woman_boy:"\u{1F469}&zwj;\u{1F469}&zwj;\u{1F466}",family_woman_woman_boy_boy:"\u{1F469}&zwj;\u{1F469}&zwj;\u{1F466}&zwj;\u{1F466}",family_woman_woman_girl:"\u{1F469}&zwj;\u{1F469}&zwj;\u{1F467}",family_woman_woman_girl_boy:"\u{1F469}&zwj;\u{1F469}&zwj;\u{1F467}&zwj;\u{1F466}",family_woman_woman_girl_girl:"\u{1F469}&zwj;\u{1F469}&zwj;\u{1F467}&zwj;\u{1F467}",fast_forward:"\u23E9",fax:"\u{1F4E0}",fearful:"\u{1F628}",feet:"\u{1F43E}",female_detective:"\u{1F575}\uFE0F&zwj;\u2640\uFE0F",ferris_wheel:"\u{1F3A1}",ferry:"\u26F4",field_hockey:"\u{1F3D1}",file_cabinet:"\u{1F5C4}",file_folder:"\u{1F4C1}",film_projector:"\u{1F4FD}",film_strip:"\u{1F39E}",fire:"\u{1F525}",fire_engine:"\u{1F692}",fireworks:"\u{1F386}",first_quarter_moon:"\u{1F313}",first_quarter_moon_with_face:"\u{1F31B}",fish:"\u{1F41F}",fish_cake:"\u{1F365}",fishing_pole_and_fish:"\u{1F3A3}",fist_raised:"\u270A",fist_left:"\u{1F91B}",fist_right:"\u{1F91C}",flags:"\u{1F38F}",flashlight:"\u{1F526}",fleur_de_lis:"\u269C\uFE0F",flight_arrival:"\u{1F6EC}",flight_departure:"\u{1F6EB}",floppy_disk:"\u{1F4BE}",flower_playing_cards:"\u{1F3B4}",flushed:"\u{1F633}",fog:"\u{1F32B}",foggy:"\u{1F301}",football:"\u{1F3C8}",footprints:"\u{1F463}",fork_and_knife:"\u{1F374}",fountain:"\u26F2\uFE0F",fountain_pen:"\u{1F58B}",four_leaf_clover:"\u{1F340}",fox_face:"\u{1F98A}",framed_picture:"\u{1F5BC}",free:"\u{1F193}",fried_egg:"\u{1F373}",fried_shrimp:"\u{1F364}",fries:"\u{1F35F}",frog:"\u{1F438}",frowning:"\u{1F626}",frowning_face:"\u2639\uFE0F",frowning_man:"\u{1F64D}&zwj;\u2642\uFE0F",frowning_woman:"\u{1F64D}",middle_finger:"\u{1F595}",fuelpump:"\u26FD\uFE0F",full_moon:"\u{1F315}",full_moon_with_face:"\u{1F31D}",funeral_urn:"\u26B1\uFE0F",game_die:"\u{1F3B2}",gear:"\u2699\uFE0F",gem:"\u{1F48E}",gemini:"\u264A\uFE0F",ghost:"\u{1F47B}",gift:"\u{1F381}",gift_heart:"\u{1F49D}",girl:"\u{1F467}",globe_with_meridians:"\u{1F310}",goal_net:"\u{1F945}",goat:"\u{1F410}",golf:"\u26F3\uFE0F",golfing_man:"\u{1F3CC}\uFE0F",golfing_woman:"\u{1F3CC}\uFE0F&zwj;\u2640\uFE0F",gorilla:"\u{1F98D}",grapes:"\u{1F347}",green_apple:"\u{1F34F}",green_book:"\u{1F4D7}",green_heart:"\u{1F49A}",green_salad:"\u{1F957}",grey_exclamation:"\u2755",grey_question:"\u2754",grimacing:"\u{1F62C}",grin:"\u{1F601}",grinning:"\u{1F600}",guardsman:"\u{1F482}",guardswoman:"\u{1F482}&zwj;\u2640\uFE0F",guitar:"\u{1F3B8}",gun:"\u{1F52B}",haircut_woman:"\u{1F487}",haircut_man:"\u{1F487}&zwj;\u2642\uFE0F",hamburger:"\u{1F354}",hammer:"\u{1F528}",hammer_and_pick:"\u2692",hammer_and_wrench:"\u{1F6E0}",hamster:"\u{1F439}",hand:"\u270B",handbag:"\u{1F45C}",handshake:"\u{1F91D}",hankey:"\u{1F4A9}",hatched_chick:"\u{1F425}",hatching_chick:"\u{1F423}",headphones:"\u{1F3A7}",hear_no_evil:"\u{1F649}",heart:"\u2764\uFE0F",heart_decoration:"\u{1F49F}",heart_eyes:"\u{1F60D}",heart_eyes_cat:"\u{1F63B}",heartbeat:"\u{1F493}",heartpulse:"\u{1F497}",hearts:"\u2665\uFE0F",heavy_check_mark:"\u2714\uFE0F",heavy_division_sign:"\u2797",heavy_dollar_sign:"\u{1F4B2}",heavy_heart_exclamation:"\u2763\uFE0F",heavy_minus_sign:"\u2796",heavy_multiplication_x:"\u2716\uFE0F",heavy_plus_sign:"\u2795",helicopter:"\u{1F681}",herb:"\u{1F33F}",hibiscus:"\u{1F33A}",high_brightness:"\u{1F506}",high_heel:"\u{1F460}",hocho:"\u{1F52A}",hole:"\u{1F573}",honey_pot:"\u{1F36F}",horse:"\u{1F434}",horse_racing:"\u{1F3C7}",hospital:"\u{1F3E5}",hot_pepper:"\u{1F336}",hotdog:"\u{1F32D}",hotel:"\u{1F3E8}",hotsprings:"\u2668\uFE0F",hourglass:"\u231B\uFE0F",hourglass_flowing_sand:"\u23F3",house:"\u{1F3E0}",house_with_garden:"\u{1F3E1}",houses:"\u{1F3D8}",hugs:"\u{1F917}",hushed:"\u{1F62F}",ice_cream:"\u{1F368}",ice_hockey:"\u{1F3D2}",ice_skate:"\u26F8",icecream:"\u{1F366}",id:"\u{1F194}",ideograph_advantage:"\u{1F250}",imp:"\u{1F47F}",inbox_tray:"\u{1F4E5}",incoming_envelope:"\u{1F4E8}",tipping_hand_woman:"\u{1F481}",information_source:"\u2139\uFE0F",innocent:"\u{1F607}",interrobang:"\u2049\uFE0F",iphone:"\u{1F4F1}",izakaya_lantern:"\u{1F3EE}",jack_o_lantern:"\u{1F383}",japan:"\u{1F5FE}",japanese_castle:"\u{1F3EF}",japanese_goblin:"\u{1F47A}",japanese_ogre:"\u{1F479}",jeans:"\u{1F456}",joy:"\u{1F602}",joy_cat:"\u{1F639}",joystick:"\u{1F579}",kaaba:"\u{1F54B}",key:"\u{1F511}",keyboard:"\u2328\uFE0F",keycap_ten:"\u{1F51F}",kick_scooter:"\u{1F6F4}",kimono:"\u{1F458}",kiss:"\u{1F48B}",kissing:"\u{1F617}",kissing_cat:"\u{1F63D}",kissing_closed_eyes:"\u{1F61A}",kissing_heart:"\u{1F618}",kissing_smiling_eyes:"\u{1F619}",kiwi_fruit:"\u{1F95D}",koala:"\u{1F428}",koko:"\u{1F201}",label:"\u{1F3F7}",large_blue_circle:"\u{1F535}",large_blue_diamond:"\u{1F537}",large_orange_diamond:"\u{1F536}",last_quarter_moon:"\u{1F317}",last_quarter_moon_with_face:"\u{1F31C}",latin_cross:"\u271D\uFE0F",laughing:"\u{1F606}",leaves:"\u{1F343}",ledger:"\u{1F4D2}",left_luggage:"\u{1F6C5}",left_right_arrow:"\u2194\uFE0F",leftwards_arrow_with_hook:"\u21A9\uFE0F",lemon:"\u{1F34B}",leo:"\u264C\uFE0F",leopard:"\u{1F406}",level_slider:"\u{1F39A}",libra:"\u264E\uFE0F",light_rail:"\u{1F688}",link:"\u{1F517}",lion:"\u{1F981}",lips:"\u{1F444}",lipstick:"\u{1F484}",lizard:"\u{1F98E}",lock:"\u{1F512}",lock_with_ink_pen:"\u{1F50F}",lollipop:"\u{1F36D}",loop:"\u27BF",loud_sound:"\u{1F50A}",loudspeaker:"\u{1F4E2}",love_hotel:"\u{1F3E9}",love_letter:"\u{1F48C}",low_brightness:"\u{1F505}",lying_face:"\u{1F925}",m:"\u24C2\uFE0F",mag:"\u{1F50D}",mag_right:"\u{1F50E}",mahjong:"\u{1F004}\uFE0F",mailbox:"\u{1F4EB}",mailbox_closed:"\u{1F4EA}",mailbox_with_mail:"\u{1F4EC}",mailbox_with_no_mail:"\u{1F4ED}",man:"\u{1F468}",man_artist:"\u{1F468}&zwj;\u{1F3A8}",man_astronaut:"\u{1F468}&zwj;\u{1F680}",man_cartwheeling:"\u{1F938}&zwj;\u2642\uFE0F",man_cook:"\u{1F468}&zwj;\u{1F373}",man_dancing:"\u{1F57A}",man_facepalming:"\u{1F926}&zwj;\u2642\uFE0F",man_factory_worker:"\u{1F468}&zwj;\u{1F3ED}",man_farmer:"\u{1F468}&zwj;\u{1F33E}",man_firefighter:"\u{1F468}&zwj;\u{1F692}",man_health_worker:"\u{1F468}&zwj;\u2695\uFE0F",man_in_tuxedo:"\u{1F935}",man_judge:"\u{1F468}&zwj;\u2696\uFE0F",man_juggling:"\u{1F939}&zwj;\u2642\uFE0F",man_mechanic:"\u{1F468}&zwj;\u{1F527}",man_office_worker:"\u{1F468}&zwj;\u{1F4BC}",man_pilot:"\u{1F468}&zwj;\u2708\uFE0F",man_playing_handball:"\u{1F93E}&zwj;\u2642\uFE0F",man_playing_water_polo:"\u{1F93D}&zwj;\u2642\uFE0F",man_scientist:"\u{1F468}&zwj;\u{1F52C}",man_shrugging:"\u{1F937}&zwj;\u2642\uFE0F",man_singer:"\u{1F468}&zwj;\u{1F3A4}",man_student:"\u{1F468}&zwj;\u{1F393}",man_teacher:"\u{1F468}&zwj;\u{1F3EB}",man_technologist:"\u{1F468}&zwj;\u{1F4BB}",man_with_gua_pi_mao:"\u{1F472}",man_with_turban:"\u{1F473}",tangerine:"\u{1F34A}",mans_shoe:"\u{1F45E}",mantelpiece_clock:"\u{1F570}",maple_leaf:"\u{1F341}",martial_arts_uniform:"\u{1F94B}",mask:"\u{1F637}",massage_woman:"\u{1F486}",massage_man:"\u{1F486}&zwj;\u2642\uFE0F",meat_on_bone:"\u{1F356}",medal_military:"\u{1F396}",medal_sports:"\u{1F3C5}",mega:"\u{1F4E3}",melon:"\u{1F348}",memo:"\u{1F4DD}",men_wrestling:"\u{1F93C}&zwj;\u2642\uFE0F",menorah:"\u{1F54E}",mens:"\u{1F6B9}",metal:"\u{1F918}",metro:"\u{1F687}",microphone:"\u{1F3A4}",microscope:"\u{1F52C}",milk_glass:"\u{1F95B}",milky_way:"\u{1F30C}",minibus:"\u{1F690}",minidisc:"\u{1F4BD}",mobile_phone_off:"\u{1F4F4}",money_mouth_face:"\u{1F911}",money_with_wings:"\u{1F4B8}",moneybag:"\u{1F4B0}",monkey:"\u{1F412}",monkey_face:"\u{1F435}",monorail:"\u{1F69D}",moon:"\u{1F314}",mortar_board:"\u{1F393}",mosque:"\u{1F54C}",motor_boat:"\u{1F6E5}",motor_scooter:"\u{1F6F5}",motorcycle:"\u{1F3CD}",motorway:"\u{1F6E3}",mount_fuji:"\u{1F5FB}",mountain:"\u26F0",mountain_biking_man:"\u{1F6B5}",mountain_biking_woman:"\u{1F6B5}&zwj;\u2640\uFE0F",mountain_cableway:"\u{1F6A0}",mountain_railway:"\u{1F69E}",mountain_snow:"\u{1F3D4}",mouse:"\u{1F42D}",mouse2:"\u{1F401}",movie_camera:"\u{1F3A5}",moyai:"\u{1F5FF}",mrs_claus:"\u{1F936}",muscle:"\u{1F4AA}",mushroom:"\u{1F344}",musical_keyboard:"\u{1F3B9}",musical_note:"\u{1F3B5}",musical_score:"\u{1F3BC}",mute:"\u{1F507}",nail_care:"\u{1F485}",name_badge:"\u{1F4DB}",national_park:"\u{1F3DE}",nauseated_face:"\u{1F922}",necktie:"\u{1F454}",negative_squared_cross_mark:"\u274E",nerd_face:"\u{1F913}",neutral_face:"\u{1F610}",new:"\u{1F195}",new_moon:"\u{1F311}",new_moon_with_face:"\u{1F31A}",newspaper:"\u{1F4F0}",newspaper_roll:"\u{1F5DE}",next_track_button:"\u23ED",ng:"\u{1F196}",no_good_man:"\u{1F645}&zwj;\u2642\uFE0F",no_good_woman:"\u{1F645}",night_with_stars:"\u{1F303}",no_bell:"\u{1F515}",no_bicycles:"\u{1F6B3}",no_entry:"\u26D4\uFE0F",no_entry_sign:"\u{1F6AB}",no_mobile_phones:"\u{1F4F5}",no_mouth:"\u{1F636}",no_pedestrians:"\u{1F6B7}",no_smoking:"\u{1F6AD}","non-potable_water":"\u{1F6B1}",nose:"\u{1F443}",notebook:"\u{1F4D3}",notebook_with_decorative_cover:"\u{1F4D4}",notes:"\u{1F3B6}",nut_and_bolt:"\u{1F529}",o:"\u2B55\uFE0F",o2:"\u{1F17E}\uFE0F",ocean:"\u{1F30A}",octopus:"\u{1F419}",oden:"\u{1F362}",office:"\u{1F3E2}",oil_drum:"\u{1F6E2}",ok:"\u{1F197}",ok_hand:"\u{1F44C}",ok_man:"\u{1F646}&zwj;\u2642\uFE0F",ok_woman:"\u{1F646}",old_key:"\u{1F5DD}",older_man:"\u{1F474}",older_woman:"\u{1F475}",om:"\u{1F549}",on:"\u{1F51B}",oncoming_automobile:"\u{1F698}",oncoming_bus:"\u{1F68D}",oncoming_police_car:"\u{1F694}",oncoming_taxi:"\u{1F696}",open_file_folder:"\u{1F4C2}",open_hands:"\u{1F450}",open_mouth:"\u{1F62E}",open_umbrella:"\u2602\uFE0F",ophiuchus:"\u26CE",orange_book:"\u{1F4D9}",orthodox_cross:"\u2626\uFE0F",outbox_tray:"\u{1F4E4}",owl:"\u{1F989}",ox:"\u{1F402}",package:"\u{1F4E6}",page_facing_up:"\u{1F4C4}",page_with_curl:"\u{1F4C3}",pager:"\u{1F4DF}",paintbrush:"\u{1F58C}",palm_tree:"\u{1F334}",pancakes:"\u{1F95E}",panda_face:"\u{1F43C}",paperclip:"\u{1F4CE}",paperclips:"\u{1F587}",parasol_on_ground:"\u26F1",parking:"\u{1F17F}\uFE0F",part_alternation_mark:"\u303D\uFE0F",partly_sunny:"\u26C5\uFE0F",passenger_ship:"\u{1F6F3}",passport_control:"\u{1F6C2}",pause_button:"\u23F8",peace_symbol:"\u262E\uFE0F",peach:"\u{1F351}",peanuts:"\u{1F95C}",pear:"\u{1F350}",pen:"\u{1F58A}",pencil2:"\u270F\uFE0F",penguin:"\u{1F427}",pensive:"\u{1F614}",performing_arts:"\u{1F3AD}",persevere:"\u{1F623}",person_fencing:"\u{1F93A}",pouting_woman:"\u{1F64E}",phone:"\u260E\uFE0F",pick:"\u26CF",pig:"\u{1F437}",pig2:"\u{1F416}",pig_nose:"\u{1F43D}",pill:"\u{1F48A}",pineapple:"\u{1F34D}",ping_pong:"\u{1F3D3}",pisces:"\u2653\uFE0F",pizza:"\u{1F355}",place_of_worship:"\u{1F6D0}",plate_with_cutlery:"\u{1F37D}",play_or_pause_button:"\u23EF",point_down:"\u{1F447}",point_left:"\u{1F448}",point_right:"\u{1F449}",point_up:"\u261D\uFE0F",point_up_2:"\u{1F446}",police_car:"\u{1F693}",policewoman:"\u{1F46E}&zwj;\u2640\uFE0F",poodle:"\u{1F429}",popcorn:"\u{1F37F}",post_office:"\u{1F3E3}",postal_horn:"\u{1F4EF}",postbox:"\u{1F4EE}",potable_water:"\u{1F6B0}",potato:"\u{1F954}",pouch:"\u{1F45D}",poultry_leg:"\u{1F357}",pound:"\u{1F4B7}",rage:"\u{1F621}",pouting_cat:"\u{1F63E}",pouting_man:"\u{1F64E}&zwj;\u2642\uFE0F",pray:"\u{1F64F}",prayer_beads:"\u{1F4FF}",pregnant_woman:"\u{1F930}",previous_track_button:"\u23EE",prince:"\u{1F934}",princess:"\u{1F478}",printer:"\u{1F5A8}",purple_heart:"\u{1F49C}",purse:"\u{1F45B}",pushpin:"\u{1F4CC}",put_litter_in_its_place:"\u{1F6AE}",question:"\u2753",rabbit:"\u{1F430}",rabbit2:"\u{1F407}",racehorse:"\u{1F40E}",racing_car:"\u{1F3CE}",radio:"\u{1F4FB}",radio_button:"\u{1F518}",radioactive:"\u2622\uFE0F",railway_car:"\u{1F683}",railway_track:"\u{1F6E4}",rainbow:"\u{1F308}",rainbow_flag:"\u{1F3F3}\uFE0F&zwj;\u{1F308}",raised_back_of_hand:"\u{1F91A}",raised_hand_with_fingers_splayed:"\u{1F590}",raised_hands:"\u{1F64C}",raising_hand_woman:"\u{1F64B}",raising_hand_man:"\u{1F64B}&zwj;\u2642\uFE0F",ram:"\u{1F40F}",ramen:"\u{1F35C}",rat:"\u{1F400}",record_button:"\u23FA",recycle:"\u267B\uFE0F",red_circle:"\u{1F534}",registered:"\xAE\uFE0F",relaxed:"\u263A\uFE0F",relieved:"\u{1F60C}",reminder_ribbon:"\u{1F397}",repeat:"\u{1F501}",repeat_one:"\u{1F502}",rescue_worker_helmet:"\u26D1",restroom:"\u{1F6BB}",revolving_hearts:"\u{1F49E}",rewind:"\u23EA",rhinoceros:"\u{1F98F}",ribbon:"\u{1F380}",rice:"\u{1F35A}",rice_ball:"\u{1F359}",rice_cracker:"\u{1F358}",rice_scene:"\u{1F391}",right_anger_bubble:"\u{1F5EF}",ring:"\u{1F48D}",robot:"\u{1F916}",rocket:"\u{1F680}",rofl:"\u{1F923}",roll_eyes:"\u{1F644}",roller_coaster:"\u{1F3A2}",rooster:"\u{1F413}",rose:"\u{1F339}",rosette:"\u{1F3F5}",rotating_light:"\u{1F6A8}",round_pushpin:"\u{1F4CD}",rowing_man:"\u{1F6A3}",rowing_woman:"\u{1F6A3}&zwj;\u2640\uFE0F",rugby_football:"\u{1F3C9}",running_man:"\u{1F3C3}",running_shirt_with_sash:"\u{1F3BD}",running_woman:"\u{1F3C3}&zwj;\u2640\uFE0F",sa:"\u{1F202}\uFE0F",sagittarius:"\u2650\uFE0F",sake:"\u{1F376}",sandal:"\u{1F461}",santa:"\u{1F385}",satellite:"\u{1F4E1}",saxophone:"\u{1F3B7}",school:"\u{1F3EB}",school_satchel:"\u{1F392}",scissors:"\u2702\uFE0F",scorpion:"\u{1F982}",scorpius:"\u264F\uFE0F",scream:"\u{1F631}",scream_cat:"\u{1F640}",scroll:"\u{1F4DC}",seat:"\u{1F4BA}",secret:"\u3299\uFE0F",see_no_evil:"\u{1F648}",seedling:"\u{1F331}",selfie:"\u{1F933}",shallow_pan_of_food:"\u{1F958}",shamrock:"\u2618\uFE0F",shark:"\u{1F988}",shaved_ice:"\u{1F367}",sheep:"\u{1F411}",shell:"\u{1F41A}",shield:"\u{1F6E1}",shinto_shrine:"\u26E9",ship:"\u{1F6A2}",shirt:"\u{1F455}",shopping:"\u{1F6CD}",shopping_cart:"\u{1F6D2}",shower:"\u{1F6BF}",shrimp:"\u{1F990}",signal_strength:"\u{1F4F6}",six_pointed_star:"\u{1F52F}",ski:"\u{1F3BF}",skier:"\u26F7",skull:"\u{1F480}",skull_and_crossbones:"\u2620\uFE0F",sleeping:"\u{1F634}",sleeping_bed:"\u{1F6CC}",sleepy:"\u{1F62A}",slightly_frowning_face:"\u{1F641}",slightly_smiling_face:"\u{1F642}",slot_machine:"\u{1F3B0}",small_airplane:"\u{1F6E9}",small_blue_diamond:"\u{1F539}",small_orange_diamond:"\u{1F538}",small_red_triangle:"\u{1F53A}",small_red_triangle_down:"\u{1F53B}",smile:"\u{1F604}",smile_cat:"\u{1F638}",smiley:"\u{1F603}",smiley_cat:"\u{1F63A}",smiling_imp:"\u{1F608}",smirk:"\u{1F60F}",smirk_cat:"\u{1F63C}",smoking:"\u{1F6AC}",snail:"\u{1F40C}",snake:"\u{1F40D}",sneezing_face:"\u{1F927}",snowboarder:"\u{1F3C2}",snowflake:"\u2744\uFE0F",snowman:"\u26C4\uFE0F",snowman_with_snow:"\u2603\uFE0F",sob:"\u{1F62D}",soccer:"\u26BD\uFE0F",soon:"\u{1F51C}",sos:"\u{1F198}",sound:"\u{1F509}",space_invader:"\u{1F47E}",spades:"\u2660\uFE0F",spaghetti:"\u{1F35D}",sparkle:"\u2747\uFE0F",sparkler:"\u{1F387}",sparkles:"\u2728",sparkling_heart:"\u{1F496}",speak_no_evil:"\u{1F64A}",speaker:"\u{1F508}",speaking_head:"\u{1F5E3}",speech_balloon:"\u{1F4AC}",speedboat:"\u{1F6A4}",spider:"\u{1F577}",spider_web:"\u{1F578}",spiral_calendar:"\u{1F5D3}",spiral_notepad:"\u{1F5D2}",spoon:"\u{1F944}",squid:"\u{1F991}",stadium:"\u{1F3DF}",star:"\u2B50\uFE0F",star2:"\u{1F31F}",star_and_crescent:"\u262A\uFE0F",star_of_david:"\u2721\uFE0F",stars:"\u{1F320}",station:"\u{1F689}",statue_of_liberty:"\u{1F5FD}",steam_locomotive:"\u{1F682}",stew:"\u{1F372}",stop_button:"\u23F9",stop_sign:"\u{1F6D1}",stopwatch:"\u23F1",straight_ruler:"\u{1F4CF}",strawberry:"\u{1F353}",stuck_out_tongue:"\u{1F61B}",stuck_out_tongue_closed_eyes:"\u{1F61D}",stuck_out_tongue_winking_eye:"\u{1F61C}",studio_microphone:"\u{1F399}",stuffed_flatbread:"\u{1F959}",sun_behind_large_cloud:"\u{1F325}",sun_behind_rain_cloud:"\u{1F326}",sun_behind_small_cloud:"\u{1F324}",sun_with_face:"\u{1F31E}",sunflower:"\u{1F33B}",sunglasses:"\u{1F60E}",sunny:"\u2600\uFE0F",sunrise:"\u{1F305}",sunrise_over_mountains:"\u{1F304}",surfing_man:"\u{1F3C4}",surfing_woman:"\u{1F3C4}&zwj;\u2640\uFE0F",sushi:"\u{1F363}",suspension_railway:"\u{1F69F}",sweat:"\u{1F613}",sweat_drops:"\u{1F4A6}",sweat_smile:"\u{1F605}",sweet_potato:"\u{1F360}",swimming_man:"\u{1F3CA}",swimming_woman:"\u{1F3CA}&zwj;\u2640\uFE0F",symbols:"\u{1F523}",synagogue:"\u{1F54D}",syringe:"\u{1F489}",taco:"\u{1F32E}",tada:"\u{1F389}",tanabata_tree:"\u{1F38B}",taurus:"\u2649\uFE0F",taxi:"\u{1F695}",tea:"\u{1F375}",telephone_receiver:"\u{1F4DE}",telescope:"\u{1F52D}",tennis:"\u{1F3BE}",tent:"\u26FA\uFE0F",thermometer:"\u{1F321}",thinking:"\u{1F914}",thought_balloon:"\u{1F4AD}",ticket:"\u{1F3AB}",tickets:"\u{1F39F}",tiger:"\u{1F42F}",tiger2:"\u{1F405}",timer_clock:"\u23F2",tipping_hand_man:"\u{1F481}&zwj;\u2642\uFE0F",tired_face:"\u{1F62B}",tm:"\u2122\uFE0F",toilet:"\u{1F6BD}",tokyo_tower:"\u{1F5FC}",tomato:"\u{1F345}",tongue:"\u{1F445}",top:"\u{1F51D}",tophat:"\u{1F3A9}",tornado:"\u{1F32A}",trackball:"\u{1F5B2}",tractor:"\u{1F69C}",traffic_light:"\u{1F6A5}",train:"\u{1F68B}",train2:"\u{1F686}",tram:"\u{1F68A}",triangular_flag_on_post:"\u{1F6A9}",triangular_ruler:"\u{1F4D0}",trident:"\u{1F531}",triumph:"\u{1F624}",trolleybus:"\u{1F68E}",trophy:"\u{1F3C6}",tropical_drink:"\u{1F379}",tropical_fish:"\u{1F420}",truck:"\u{1F69A}",trumpet:"\u{1F3BA}",tulip:"\u{1F337}",tumbler_glass:"\u{1F943}",turkey:"\u{1F983}",turtle:"\u{1F422}",tv:"\u{1F4FA}",twisted_rightwards_arrows:"\u{1F500}",two_hearts:"\u{1F495}",two_men_holding_hands:"\u{1F46C}",two_women_holding_hands:"\u{1F46D}",u5272:"\u{1F239}",u5408:"\u{1F234}",u55b6:"\u{1F23A}",u6307:"\u{1F22F}\uFE0F",u6708:"\u{1F237}\uFE0F",u6709:"\u{1F236}",u6e80:"\u{1F235}",u7121:"\u{1F21A}\uFE0F",u7533:"\u{1F238}",u7981:"\u{1F232}",u7a7a:"\u{1F233}",umbrella:"\u2614\uFE0F",unamused:"\u{1F612}",underage:"\u{1F51E}",unicorn:"\u{1F984}",unlock:"\u{1F513}",up:"\u{1F199}",upside_down_face:"\u{1F643}",v:"\u270C\uFE0F",vertical_traffic_light:"\u{1F6A6}",vhs:"\u{1F4FC}",vibration_mode:"\u{1F4F3}",video_camera:"\u{1F4F9}",video_game:"\u{1F3AE}",violin:"\u{1F3BB}",virgo:"\u264D\uFE0F",volcano:"\u{1F30B}",volleyball:"\u{1F3D0}",vs:"\u{1F19A}",vulcan_salute:"\u{1F596}",walking_man:"\u{1F6B6}",walking_woman:"\u{1F6B6}&zwj;\u2640\uFE0F",waning_crescent_moon:"\u{1F318}",waning_gibbous_moon:"\u{1F316}",warning:"\u26A0\uFE0F",wastebasket:"\u{1F5D1}",watch:"\u231A\uFE0F",water_buffalo:"\u{1F403}",watermelon:"\u{1F349}",wave:"\u{1F44B}",wavy_dash:"\u3030\uFE0F",waxing_crescent_moon:"\u{1F312}",wc:"\u{1F6BE}",weary:"\u{1F629}",wedding:"\u{1F492}",weight_lifting_man:"\u{1F3CB}\uFE0F",weight_lifting_woman:"\u{1F3CB}\uFE0F&zwj;\u2640\uFE0F",whale:"\u{1F433}",whale2:"\u{1F40B}",wheel_of_dharma:"\u2638\uFE0F",wheelchair:"\u267F\uFE0F",white_check_mark:"\u2705",white_circle:"\u26AA\uFE0F",white_flag:"\u{1F3F3}\uFE0F",white_flower:"\u{1F4AE}",white_large_square:"\u2B1C\uFE0F",white_medium_small_square:"\u25FD\uFE0F",white_medium_square:"\u25FB\uFE0F",white_small_square:"\u25AB\uFE0F",white_square_button:"\u{1F533}",wilted_flower:"\u{1F940}",wind_chime:"\u{1F390}",wind_face:"\u{1F32C}",wine_glass:"\u{1F377}",wink:"\u{1F609}",wolf:"\u{1F43A}",woman:"\u{1F469}",woman_artist:"\u{1F469}&zwj;\u{1F3A8}",woman_astronaut:"\u{1F469}&zwj;\u{1F680}",woman_cartwheeling:"\u{1F938}&zwj;\u2640\uFE0F",woman_cook:"\u{1F469}&zwj;\u{1F373}",woman_facepalming:"\u{1F926}&zwj;\u2640\uFE0F",woman_factory_worker:"\u{1F469}&zwj;\u{1F3ED}",woman_farmer:"\u{1F469}&zwj;\u{1F33E}",woman_firefighter:"\u{1F469}&zwj;\u{1F692}",woman_health_worker:"\u{1F469}&zwj;\u2695\uFE0F",woman_judge:"\u{1F469}&zwj;\u2696\uFE0F",woman_juggling:"\u{1F939}&zwj;\u2640\uFE0F",woman_mechanic:"\u{1F469}&zwj;\u{1F527}",woman_office_worker:"\u{1F469}&zwj;\u{1F4BC}",woman_pilot:"\u{1F469}&zwj;\u2708\uFE0F",woman_playing_handball:"\u{1F93E}&zwj;\u2640\uFE0F",woman_playing_water_polo:"\u{1F93D}&zwj;\u2640\uFE0F",woman_scientist:"\u{1F469}&zwj;\u{1F52C}",woman_shrugging:"\u{1F937}&zwj;\u2640\uFE0F",woman_singer:"\u{1F469}&zwj;\u{1F3A4}",woman_student:"\u{1F469}&zwj;\u{1F393}",woman_teacher:"\u{1F469}&zwj;\u{1F3EB}",woman_technologist:"\u{1F469}&zwj;\u{1F4BB}",woman_with_turban:"\u{1F473}&zwj;\u2640\uFE0F",womans_clothes:"\u{1F45A}",womans_hat:"\u{1F452}",women_wrestling:"\u{1F93C}&zwj;\u2640\uFE0F",womens:"\u{1F6BA}",world_map:"\u{1F5FA}",worried:"\u{1F61F}",wrench:"\u{1F527}",writing_hand:"\u270D\uFE0F",x:"\u274C",yellow_heart:"\u{1F49B}",yen:"\u{1F4B4}",yin_yang:"\u262F\uFE0F",yum:"\u{1F60B}",zap:"\u26A1\uFE0F",zipper_mouth_face:"\u{1F910}",zzz:"\u{1F4A4}",octocat:'<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',showdown:`<span style="font-family: 'Anonymous Pro', monospace; text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #3e8b8a;text-underline-position: under;">S</span>`},a.Converter=function(u){"use strict";var b={},E=[],A=[],R={},H=d,z={parsed:{},raw:"",format:""};V();function V(){u=u||{};for(var X in p)p.hasOwnProperty(X)&&(b[X]=p[X]);if(typeof u=="object")for(var pe in u)u.hasOwnProperty(pe)&&(b[pe]=u[pe]);else throw Error("Converter expects the passed parameter to be an object, but "+typeof u+" was passed instead.");b.extensions&&a.helper.forEach(b.extensions,$)}function $(X,pe){if(pe=pe||null,a.helper.isString(X))if(X=a.helper.stdExtName(X),pe=X,a.extensions[X]){console.warn("DEPRECATION WARNING: "+X+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),ee(a.extensions[X],X);return}else if(!a.helper.isUndefined(h[X]))X=h[X];else throw Error('Extension "'+X+'" could not be loaded. It was either not found or is not a valid extension.');typeof X=="function"&&(X=X()),a.helper.isArray(X)||(X=[X]);var Ie=M(X,pe);if(!Ie.valid)throw Error(Ie.error);for(var se=0;se<X.length;++se){switch(X[se].type){case"lang":E.push(X[se]);break;case"output":A.push(X[se]);break}if(X[se].hasOwnProperty("listeners"))for(var be in X[se].listeners)X[se].listeners.hasOwnProperty(be)&&q(be,X[se].listeners[be])}}function ee(X,pe){typeof X=="function"&&(X=X(new a.Converter)),a.helper.isArray(X)||(X=[X]);var Ie=M(X,pe);if(!Ie.valid)throw Error(Ie.error);for(var se=0;se<X.length;++se)switch(X[se].type){case"lang":E.push(X[se]);break;case"output":A.push(X[se]);break;default:throw Error("Extension loader error: Type unrecognized!!!")}}function q(X,pe){if(!a.helper.isString(X))throw Error("Invalid argument in converter.listen() method: name must be a string, but "+typeof X+" given");if(typeof pe!="function")throw Error("Invalid argument in converter.listen() method: callback must be a function, but "+typeof pe+" given");R.hasOwnProperty(X)||(R[X]=[]),R[X].push(pe)}function oe(X){var pe=X.match(/^\s*/)[0].length,Ie=new RegExp("^\\s{0,"+pe+"}","gm");return X.replace(Ie,"")}this._dispatch=function(pe,Ie,se,be){if(R.hasOwnProperty(pe))for(var fe=0;fe<R[pe].length;++fe){var ue=R[pe][fe](pe,Ie,this,se,be);ue&&typeof ue<"u"&&(Ie=ue)}return Ie},this.listen=function(X,pe){return q(X,pe),this},this.makeHtml=function(X){if(!X)return X;var pe={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},langExtensions:E,outputModifiers:A,converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};return X=X.replace(/¨/g,"\xA8T"),X=X.replace(/\$/g,"\xA8D"),X=X.replace(/\r\n/g,`
`),X=X.replace(/\r/g,`
`),X=X.replace(/\u00A0/g,"&nbsp;"),b.smartIndentationFix&&(X=oe(X)),X=`

`+X+`

`,X=a.subParser("detab")(X,b,pe),X=X.replace(/^[ \t]+$/mg,""),a.helper.forEach(E,function(Ie){X=a.subParser("runExtension")(Ie,X,b,pe)}),X=a.subParser("metadata")(X,b,pe),X=a.subParser("hashPreCodeTags")(X,b,pe),X=a.subParser("githubCodeBlocks")(X,b,pe),X=a.subParser("hashHTMLBlocks")(X,b,pe),X=a.subParser("hashCodeTags")(X,b,pe),X=a.subParser("stripLinkDefinitions")(X,b,pe),X=a.subParser("blockGamut")(X,b,pe),X=a.subParser("unhashHTMLSpans")(X,b,pe),X=a.subParser("unescapeSpecialChars")(X,b,pe),X=X.replace(/¨D/g,"$$"),X=X.replace(/¨T/g,"\xA8"),X=a.subParser("completeHTMLDocument")(X,b,pe),a.helper.forEach(A,function(Ie){X=a.subParser("runExtension")(Ie,X,b,pe)}),z=pe.metadata,X},this.makeMarkdown=this.makeMd=function(X,pe){if(X=X.replace(/\r\n/g,`
`),X=X.replace(/\r/g,`
`),X=X.replace(/>[ \t]+</,">\xA8NBSP;<"),!pe)if(window&&window.document)pe=window.document;else throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");var Ie=pe.createElement("div");Ie.innerHTML=X;var se={preList:Me(Ie)};we(Ie);for(var be=Ie.childNodes,fe="",ue=0;ue<be.length;ue++)fe+=a.subParser("makeMarkdown.node")(be[ue],se);function we(Ce){for(var Ne=0;Ne<Ce.childNodes.length;++Ne){var Ye=Ce.childNodes[Ne];Ye.nodeType===3?/\S/.test(Ye.nodeValue)?(Ye.nodeValue=Ye.nodeValue.split(`
`).join(" "),Ye.nodeValue=Ye.nodeValue.replace(/(\s)+/g,"$1")):(Ce.removeChild(Ye),--Ne):Ye.nodeType===1&&we(Ye)}}function Me(Ce){for(var Ne=Ce.querySelectorAll("pre"),Ye=[],mt=0;mt<Ne.length;++mt)if(Ne[mt].childElementCount===1&&Ne[mt].firstChild.tagName.toLowerCase()==="code"){var Ct=Ne[mt].firstChild.innerHTML.trim(),ln=Ne[mt].firstChild.getAttribute("data-language")||"";if(ln==="")for(var $e=Ne[mt].firstChild.className.split(" "),Qe=0;Qe<$e.length;++Qe){var bt=$e[Qe].match(/^language-(.+)$/);if(bt!==null){ln=bt[1];break}}Ct=a.helper.unescapeHTMLEntities(Ct),Ye.push(Ct),Ne[mt].outerHTML='<precode language="'+ln+'" precodenum="'+mt.toString()+'"></precode>'}else Ye.push(Ne[mt].innerHTML),Ne[mt].innerHTML="",Ne[mt].setAttribute("prenum",mt.toString());return Ye}return fe},this.setOption=function(X,pe){b[X]=pe},this.getOption=function(X){return b[X]},this.getOptions=function(){return b},this.addExtension=function(X,pe){pe=pe||null,$(X,pe)},this.useExtension=function(X){$(X)},this.setFlavor=function(X){if(!k.hasOwnProperty(X))throw Error(X+" flavor was not found");var pe=k[X];H=X;for(var Ie in pe)pe.hasOwnProperty(Ie)&&(b[Ie]=pe[Ie])},this.getFlavor=function(){return H},this.removeExtension=function(X){a.helper.isArray(X)||(X=[X]);for(var pe=0;pe<X.length;++pe){for(var Ie=X[pe],se=0;se<E.length;++se)E[se]===Ie&&E[se].splice(se,1);for(var be=0;be<A.length;++se)A[be]===Ie&&A[be].splice(se,1)}},this.getAllExtensions=function(){return{language:E,output:A}},this.getMetadata=function(X){return X?z.raw:z.parsed},this.getMetadataFormat=function(){return z.format},this._setMetadataPair=function(X,pe){z.parsed[X]=pe},this._setMetadataFormat=function(X){z.format=X},this._setMetadataRaw=function(X){z.raw=X}},a.subParser("anchors",function(u,b,E){"use strict";u=E.converter._dispatch("anchors.before",u,b,E);var A=function(R,H,z,V,$,ee,q){if(a.helper.isUndefined(q)&&(q=""),z=z.toLowerCase(),R.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)V="";else if(!V)if(z||(z=H.toLowerCase().replace(/ ?\n/g," ")),V="#"+z,!a.helper.isUndefined(E.gUrls[z]))V=E.gUrls[z],a.helper.isUndefined(E.gTitles[z])||(q=E.gTitles[z]);else return R;V=V.replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback);var oe='<a href="'+V+'"';return q!==""&&q!==null&&(q=q.replace(/"/g,"&quot;"),q=q.replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback),oe+=' title="'+q+'"'),b.openLinksInNewWindow&&!/^#/.test(V)&&(oe+=' rel="noopener noreferrer" target="\xA8E95Eblank"'),oe+=">"+H+"</a>",oe};return u=u.replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,A),u=u.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,A),u=u.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,A),u=u.replace(/\[([^\[\]]+)]()()()()()/g,A),b.ghMentions&&(u=u.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gmi,function(R,H,z,V,$){if(z==="\\")return H+V;if(!a.helper.isString(b.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var ee=b.ghMentionsLink.replace(/\{u}/g,$),q="";return b.openLinksInNewWindow&&(q=' rel="noopener noreferrer" target="\xA8E95Eblank"'),H+'<a href="'+ee+'"'+q+">"+V+"</a>"})),u=E.converter._dispatch("anchors.after",u,b,E),u});var I=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,F=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,U=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,B=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gmi,N=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,D=function(u){"use strict";return function(b,E,A,R,H,z,V){A=A.replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback);var $=A,ee="",q="",oe=E||"",X=V||"";return/^www\./i.test(A)&&(A=A.replace(/^www\./i,"http://www.")),u.excludeTrailingPunctuationFromURLs&&z&&(ee=z),u.openLinksInNewWindow&&(q=' rel="noopener noreferrer" target="\xA8E95Eblank"'),oe+'<a href="'+A+'"'+q+">"+$+"</a>"+ee+X}},x=function(u,b){"use strict";return function(E,A,R){var H="mailto:";return A=A||"",R=a.subParser("unescapeSpecialChars")(R,u,b),u.encodeEmails?(H=a.helper.encodeEmailAddress(H+R),R=a.helper.encodeEmailAddress(R)):H=H+R,A+'<a href="'+H+'">'+R+"</a>"}};a.subParser("autoLinks",function(u,b,E){"use strict";return u=E.converter._dispatch("autoLinks.before",u,b,E),u=u.replace(U,D(b)),u=u.replace(N,x(b,E)),u=E.converter._dispatch("autoLinks.after",u,b,E),u}),a.subParser("simplifiedAutoLinks",function(u,b,E){"use strict";return b.simplifiedAutoLink&&(u=E.converter._dispatch("simplifiedAutoLinks.before",u,b,E),b.excludeTrailingPunctuationFromURLs?u=u.replace(F,D(b)):u=u.replace(I,D(b)),u=u.replace(B,x(b,E)),u=E.converter._dispatch("simplifiedAutoLinks.after",u,b,E)),u}),a.subParser("blockGamut",function(u,b,E){"use strict";return u=E.converter._dispatch("blockGamut.before",u,b,E),u=a.subParser("blockQuotes")(u,b,E),u=a.subParser("headers")(u,b,E),u=a.subParser("horizontalRule")(u,b,E),u=a.subParser("lists")(u,b,E),u=a.subParser("codeBlocks")(u,b,E),u=a.subParser("tables")(u,b,E),u=a.subParser("hashHTMLBlocks")(u,b,E),u=a.subParser("paragraphs")(u,b,E),u=E.converter._dispatch("blockGamut.after",u,b,E),u}),a.subParser("blockQuotes",function(u,b,E){"use strict";u=E.converter._dispatch("blockQuotes.before",u,b,E),u=u+`

`;var A=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return b.splitAdjacentBlockquotes&&(A=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),u=u.replace(A,function(R){return R=R.replace(/^[ \t]*>[ \t]?/gm,""),R=R.replace(/¨0/g,""),R=R.replace(/^[ \t]+$/gm,""),R=a.subParser("githubCodeBlocks")(R,b,E),R=a.subParser("blockGamut")(R,b,E),R=R.replace(/(^|\n)/g,"$1  "),R=R.replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,function(H,z){var V=z;return V=V.replace(/^  /mg,"\xA80"),V=V.replace(/¨0/g,""),V}),a.subParser("hashBlock")(`<blockquote>
`+R+`
</blockquote>`,b,E)}),u=E.converter._dispatch("blockQuotes.after",u,b,E),u}),a.subParser("codeBlocks",function(u,b,E){"use strict";u=E.converter._dispatch("codeBlocks.before",u,b,E),u+="\xA80";var A=/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g;return u=u.replace(A,function(R,H,z){var V=H,$=z,ee=`
`;return V=a.subParser("outdent")(V,b,E),V=a.subParser("encodeCode")(V,b,E),V=a.subParser("detab")(V,b,E),V=V.replace(/^\n+/g,""),V=V.replace(/\n+$/g,""),b.omitExtraWLInCodeBlocks&&(ee=""),V="<pre><code>"+V+ee+"</code></pre>",a.subParser("hashBlock")(V,b,E)+$}),u=u.replace(/¨0/,""),u=E.converter._dispatch("codeBlocks.after",u,b,E),u}),a.subParser("codeSpans",function(u,b,E){"use strict";return u=E.converter._dispatch("codeSpans.before",u,b,E),typeof u>"u"&&(u=""),u=u.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(A,R,H,z){var V=z;return V=V.replace(/^([ \t]*)/g,""),V=V.replace(/[ \t]*$/g,""),V=a.subParser("encodeCode")(V,b,E),V=R+"<code>"+V+"</code>",V=a.subParser("hashHTMLSpans")(V,b,E),V}),u=E.converter._dispatch("codeSpans.after",u,b,E),u}),a.subParser("completeHTMLDocument",function(u,b,E){"use strict";if(!b.completeHTMLDocument)return u;u=E.converter._dispatch("completeHTMLDocument.before",u,b,E);var A="html",R=`<!DOCTYPE HTML>
`,H="",z=`<meta charset="utf-8">
`,V="",$="";typeof E.metadata.parsed.doctype<"u"&&(R="<!DOCTYPE "+E.metadata.parsed.doctype+`>
`,A=E.metadata.parsed.doctype.toString().toLowerCase(),(A==="html"||A==="html5")&&(z='<meta charset="utf-8">'));for(var ee in E.metadata.parsed)if(E.metadata.parsed.hasOwnProperty(ee))switch(ee.toLowerCase()){case"doctype":break;case"title":H="<title>"+E.metadata.parsed.title+`</title>
`;break;case"charset":A==="html"||A==="html5"?z='<meta charset="'+E.metadata.parsed.charset+`">
`:z='<meta name="charset" content="'+E.metadata.parsed.charset+`">
`;break;case"language":case"lang":V=' lang="'+E.metadata.parsed[ee]+'"',$+='<meta name="'+ee+'" content="'+E.metadata.parsed[ee]+`">
`;break;default:$+='<meta name="'+ee+'" content="'+E.metadata.parsed[ee]+`">
`}return u=R+"<html"+V+`>
<head>
`+H+z+$+`</head>
<body>
`+u.trim()+`
</body>
</html>`,u=E.converter._dispatch("completeHTMLDocument.after",u,b,E),u}),a.subParser("detab",function(u,b,E){"use strict";return u=E.converter._dispatch("detab.before",u,b,E),u=u.replace(/\t(?=\t)/g,"    "),u=u.replace(/\t/g,"\xA8A\xA8B"),u=u.replace(/¨B(.+?)¨A/g,function(A,R){for(var H=R,z=4-H.length%4,V=0;V<z;V++)H+=" ";return H}),u=u.replace(/¨A/g,"    "),u=u.replace(/¨B/g,""),u=E.converter._dispatch("detab.after",u,b,E),u}),a.subParser("ellipsis",function(u,b,E){"use strict";return u=E.converter._dispatch("ellipsis.before",u,b,E),u=u.replace(/\.\.\./g,"\u2026"),u=E.converter._dispatch("ellipsis.after",u,b,E),u}),a.subParser("emoji",function(u,b,E){"use strict";if(!b.emoji)return u;u=E.converter._dispatch("emoji.before",u,b,E);var A=/:([\S]+?):/g;return u=u.replace(A,function(R,H){return a.helper.emojis.hasOwnProperty(H)?a.helper.emojis[H]:R}),u=E.converter._dispatch("emoji.after",u,b,E),u}),a.subParser("encodeAmpsAndAngles",function(u,b,E){"use strict";return u=E.converter._dispatch("encodeAmpsAndAngles.before",u,b,E),u=u.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&amp;"),u=u.replace(/<(?![a-z\/?$!])/gi,"&lt;"),u=u.replace(/</g,"&lt;"),u=u.replace(/>/g,"&gt;"),u=E.converter._dispatch("encodeAmpsAndAngles.after",u,b,E),u}),a.subParser("encodeBackslashEscapes",function(u,b,E){"use strict";return u=E.converter._dispatch("encodeBackslashEscapes.before",u,b,E),u=u.replace(/\\(\\)/g,a.helper.escapeCharactersCallback),u=u.replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,a.helper.escapeCharactersCallback),u=E.converter._dispatch("encodeBackslashEscapes.after",u,b,E),u}),a.subParser("encodeCode",function(u,b,E){"use strict";return u=E.converter._dispatch("encodeCode.before",u,b,E),u=u.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/([*_{}\[\]\\=~-])/g,a.helper.escapeCharactersCallback),u=E.converter._dispatch("encodeCode.after",u,b,E),u}),a.subParser("escapeSpecialCharsWithinTagAttributes",function(u,b,E){"use strict";u=E.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",u,b,E);var A=/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,R=/<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi;return u=u.replace(A,function(H){return H.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,a.helper.escapeCharactersCallback)}),u=u.replace(R,function(H){return H.replace(/([\\`*_~=|])/g,a.helper.escapeCharactersCallback)}),u=E.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",u,b,E),u}),a.subParser("githubCodeBlocks",function(u,b,E){"use strict";return b.ghCodeBlocks?(u=E.converter._dispatch("githubCodeBlocks.before",u,b,E),u+="\xA80",u=u.replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,function(A,R,H,z){var V=b.omitExtraWLInCodeBlocks?"":`
`;return z=a.subParser("encodeCode")(z,b,E),z=a.subParser("detab")(z,b,E),z=z.replace(/^\n+/g,""),z=z.replace(/\n+$/g,""),z="<pre><code"+(H?' class="'+H+" language-"+H+'"':"")+">"+z+V+"</code></pre>",z=a.subParser("hashBlock")(z,b,E),`

\xA8G`+(E.ghCodeBlocks.push({text:A,codeblock:z})-1)+`G

`}),u=u.replace(/¨0/,""),E.converter._dispatch("githubCodeBlocks.after",u,b,E)):u}),a.subParser("hashBlock",function(u,b,E){"use strict";return u=E.converter._dispatch("hashBlock.before",u,b,E),u=u.replace(/(^\n+|\n+$)/g,""),u=`

\xA8K`+(E.gHtmlBlocks.push(u)-1)+`K

`,u=E.converter._dispatch("hashBlock.after",u,b,E),u}),a.subParser("hashCodeTags",function(u,b,E){"use strict";u=E.converter._dispatch("hashCodeTags.before",u,b,E);var A=function(R,H,z,V){var $=z+a.subParser("encodeCode")(H,b,E)+V;return"\xA8C"+(E.gHtmlSpans.push($)-1)+"C"};return u=a.helper.replaceRecursiveRegExp(u,A,"<code\\b[^>]*>","</code>","gim"),u=E.converter._dispatch("hashCodeTags.after",u,b,E),u}),a.subParser("hashElement",function(u,b,E){"use strict";return function(A,R){var H=R;return H=H.replace(/\n\n/g,`
`),H=H.replace(/^\n/,""),H=H.replace(/\n+$/g,""),H=`

\xA8K`+(E.gHtmlBlocks.push(H)-1)+`K

`,H}}),a.subParser("hashHTMLBlocks",function(u,b,E){"use strict";u=E.converter._dispatch("hashHTMLBlocks.before",u,b,E);var A=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],R=function(X,pe,Ie,se){var be=X;return Ie.search(/\bmarkdown\b/)!==-1&&(be=Ie+E.converter.makeHtml(pe)+se),`

\xA8K`+(E.gHtmlBlocks.push(be)-1)+`K

`};b.backslashEscapesHTMLTags&&(u=u.replace(/\\<(\/?[^>]+?)>/g,function(X,pe){return"&lt;"+pe+"&gt;"}));for(var H=0;H<A.length;++H)for(var z,V=new RegExp("^ {0,3}(<"+A[H]+"\\b[^>]*>)","im"),$="<"+A[H]+"\\b[^>]*>",ee="</"+A[H]+">";(z=a.helper.regexIndexOf(u,V))!==-1;){var q=a.helper.splitAtIndex(u,z),oe=a.helper.replaceRecursiveRegExp(q[1],R,$,ee,"im");if(oe===q[1])break;u=q[0].concat(oe)}return u=u.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,a.subParser("hashElement")(u,b,E)),u=a.helper.replaceRecursiveRegExp(u,function(X){return`

\xA8K`+(E.gHtmlBlocks.push(X)-1)+`K

`},"^ {0,3}<!--","-->","gm"),u=u.replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,a.subParser("hashElement")(u,b,E)),u=E.converter._dispatch("hashHTMLBlocks.after",u,b,E),u}),a.subParser("hashHTMLSpans",function(u,b,E){"use strict";u=E.converter._dispatch("hashHTMLSpans.before",u,b,E);function A(R){return"\xA8C"+(E.gHtmlSpans.push(R)-1)+"C"}return u=u.replace(/<[^>]+?\/>/gi,function(R){return A(R)}),u=u.replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,function(R){return A(R)}),u=u.replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,function(R){return A(R)}),u=u.replace(/<[^>]+?>/gi,function(R){return A(R)}),u=E.converter._dispatch("hashHTMLSpans.after",u,b,E),u}),a.subParser("unhashHTMLSpans",function(u,b,E){"use strict";u=E.converter._dispatch("unhashHTMLSpans.before",u,b,E);for(var A=0;A<E.gHtmlSpans.length;++A){for(var R=E.gHtmlSpans[A],H=0;/¨C(\d+)C/.test(R);){var z=RegExp.$1;if(R=R.replace("\xA8C"+z+"C",E.gHtmlSpans[z]),H===10){console.error("maximum nesting of 10 spans reached!!!");break}++H}u=u.replace("\xA8C"+A+"C",R)}return u=E.converter._dispatch("unhashHTMLSpans.after",u,b,E),u}),a.subParser("hashPreCodeTags",function(u,b,E){"use strict";u=E.converter._dispatch("hashPreCodeTags.before",u,b,E);var A=function(R,H,z,V){var $=z+a.subParser("encodeCode")(H,b,E)+V;return`

\xA8G`+(E.ghCodeBlocks.push({text:R,codeblock:$})-1)+`G

`};return u=a.helper.replaceRecursiveRegExp(u,A,"^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>","^ {0,3}</code>\\s*</pre>","gim"),u=E.converter._dispatch("hashPreCodeTags.after",u,b,E),u}),a.subParser("headers",function(u,b,E){"use strict";u=E.converter._dispatch("headers.before",u,b,E);var A=isNaN(parseInt(b.headerLevelStart))?1:parseInt(b.headerLevelStart),R=b.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,H=b.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;u=u.replace(R,function($,ee){var q=a.subParser("spanGamut")(ee,b,E),oe=b.noHeaderId?"":' id="'+V(ee)+'"',X=A,pe="<h"+X+oe+">"+q+"</h"+X+">";return a.subParser("hashBlock")(pe,b,E)}),u=u.replace(H,function($,ee){var q=a.subParser("spanGamut")(ee,b,E),oe=b.noHeaderId?"":' id="'+V(ee)+'"',X=A+1,pe="<h"+X+oe+">"+q+"</h"+X+">";return a.subParser("hashBlock")(pe,b,E)});var z=b.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;u=u.replace(z,function($,ee,q){var oe=q;b.customizedHeaderId&&(oe=q.replace(/\s?\{([^{]+?)}\s*$/,""));var X=a.subParser("spanGamut")(oe,b,E),pe=b.noHeaderId?"":' id="'+V(q)+'"',Ie=A-1+ee.length,se="<h"+Ie+pe+">"+X+"</h"+Ie+">";return a.subParser("hashBlock")(se,b,E)});function V($){var ee,q;if(b.customizedHeaderId){var oe=$.match(/\{([^{]+?)}\s*$/);oe&&oe[1]&&($=oe[1])}return ee=$,a.helper.isString(b.prefixHeaderId)?q=b.prefixHeaderId:b.prefixHeaderId===!0?q="section-":q="",b.rawPrefixHeaderId||(ee=q+ee),b.ghCompatibleHeaderId?ee=ee.replace(/ /g,"-").replace(/&amp;/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():b.rawHeaderId?ee=ee.replace(/ /g,"-").replace(/&amp;/g,"&").replace(/¨T/g,"\xA8").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():ee=ee.replace(/[^\w]/g,"").toLowerCase(),b.rawPrefixHeaderId&&(ee=q+ee),E.hashLinkCounts[ee]?ee=ee+"-"+E.hashLinkCounts[ee]++:E.hashLinkCounts[ee]=1,ee}return u=E.converter._dispatch("headers.after",u,b,E),u}),a.subParser("horizontalRule",function(u,b,E){"use strict";u=E.converter._dispatch("horizontalRule.before",u,b,E);var A=a.subParser("hashBlock")("<hr />",b,E);return u=u.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,A),u=u.replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,A),u=u.replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,A),u=E.converter._dispatch("horizontalRule.after",u,b,E),u}),a.subParser("images",function(u,b,E){"use strict";u=E.converter._dispatch("images.before",u,b,E);var A=/!\[([^\]]*?)][ \t]*()\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,R=/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,H=/!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,z=/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,V=/!\[([^\[\]]+)]()()()()()/g;function $(q,oe,X,pe,Ie,se,be,fe){return pe=pe.replace(/\s/g,""),ee(q,oe,X,pe,Ie,se,be,fe)}function ee(q,oe,X,pe,Ie,se,be,fe){var ue=E.gUrls,we=E.gTitles,Me=E.gDimensions;if(X=X.toLowerCase(),fe||(fe=""),q.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)pe="";else if(pe===""||pe===null)if((X===""||X===null)&&(X=oe.toLowerCase().replace(/ ?\n/g," ")),pe="#"+X,!a.helper.isUndefined(ue[X]))pe=ue[X],a.helper.isUndefined(we[X])||(fe=we[X]),a.helper.isUndefined(Me[X])||(Ie=Me[X].width,se=Me[X].height);else return q;oe=oe.replace(/"/g,"&quot;").replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback),pe=pe.replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback);var Ce='<img src="'+pe+'" alt="'+oe+'"';return fe&&a.helper.isString(fe)&&(fe=fe.replace(/"/g,"&quot;").replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback),Ce+=' title="'+fe+'"'),Ie&&se&&(Ie=Ie==="*"?"auto":Ie,se=se==="*"?"auto":se,Ce+=' width="'+Ie+'"',Ce+=' height="'+se+'"'),Ce+=" />",Ce}return u=u.replace(z,ee),u=u.replace(H,$),u=u.replace(R,ee),u=u.replace(A,ee),u=u.replace(V,ee),u=E.converter._dispatch("images.after",u,b,E),u}),a.subParser("italicsAndBold",function(u,b,E){"use strict";u=E.converter._dispatch("italicsAndBold.before",u,b,E);function A(R,H,z){return H+R+z}return b.literalMidWordUnderscores?(u=u.replace(/\b___(\S[\s\S]*?)___\b/g,function(R,H){return A(H,"<strong><em>","</em></strong>")}),u=u.replace(/\b__(\S[\s\S]*?)__\b/g,function(R,H){return A(H,"<strong>","</strong>")}),u=u.replace(/\b_(\S[\s\S]*?)_\b/g,function(R,H){return A(H,"<em>","</em>")})):(u=u.replace(/___(\S[\s\S]*?)___/g,function(R,H){return/\S$/.test(H)?A(H,"<strong><em>","</em></strong>"):R}),u=u.replace(/__(\S[\s\S]*?)__/g,function(R,H){return/\S$/.test(H)?A(H,"<strong>","</strong>"):R}),u=u.replace(/_([^\s_][\s\S]*?)_/g,function(R,H){return/\S$/.test(H)?A(H,"<em>","</em>"):R})),b.literalMidWordAsterisks?(u=u.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,function(R,H,z){return A(z,H+"<strong><em>","</em></strong>")}),u=u.replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,function(R,H,z){return A(z,H+"<strong>","</strong>")}),u=u.replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,function(R,H,z){return A(z,H+"<em>","</em>")})):(u=u.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,function(R,H){return/\S$/.test(H)?A(H,"<strong><em>","</em></strong>"):R}),u=u.replace(/\*\*(\S[\s\S]*?)\*\*/g,function(R,H){return/\S$/.test(H)?A(H,"<strong>","</strong>"):R}),u=u.replace(/\*([^\s*][\s\S]*?)\*/g,function(R,H){return/\S$/.test(H)?A(H,"<em>","</em>"):R})),u=E.converter._dispatch("italicsAndBold.after",u,b,E),u}),a.subParser("lists",function(u,b,E){"use strict";function A(z,V){E.gListLevel++,z=z.replace(/\n{2,}$/,`
`),z+="\xA80";var $=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,ee=/\n[ \t]*\n(?!¨0)/.test(z);return b.disableForced4SpacesIndentedSublists&&($=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),z=z.replace($,function(q,oe,X,pe,Ie,se,be){be=be&&be.trim()!=="";var fe=a.subParser("outdent")(Ie,b,E),ue="";return se&&b.tasklists&&(ue=' class="task-list-item" style="list-style-type: none;"',fe=fe.replace(/^[ \t]*\[(x|X| )?]/m,function(){var we='<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';return be&&(we+=" checked"),we+=">",we})),fe=fe.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,function(we){return"\xA8A"+we}),oe||fe.search(/\n{2,}/)>-1?(fe=a.subParser("githubCodeBlocks")(fe,b,E),fe=a.subParser("blockGamut")(fe,b,E)):(fe=a.subParser("lists")(fe,b,E),fe=fe.replace(/\n$/,""),fe=a.subParser("hashHTMLBlocks")(fe,b,E),fe=fe.replace(/\n\n+/g,`

`),ee?fe=a.subParser("paragraphs")(fe,b,E):fe=a.subParser("spanGamut")(fe,b,E)),fe=fe.replace("\xA8A",""),fe="<li"+ue+">"+fe+`</li>
`,fe}),z=z.replace(/¨0/g,""),E.gListLevel--,V&&(z=z.replace(/\s+$/,"")),z}function R(z,V){if(V==="ol"){var $=z.match(/^ *(\d+)\./);if($&&$[1]!=="1")return' start="'+$[1]+'"'}return""}function H(z,V,$){var ee=b.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,q=b.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,oe=V==="ul"?ee:q,X="";if(z.search(oe)!==-1)(function Ie(se){var be=se.search(oe),fe=R(z,V);be!==-1?(X+=`

<`+V+fe+`>
`+A(se.slice(0,be),!!$)+"</"+V+`>
`,V=V==="ul"?"ol":"ul",oe=V==="ul"?ee:q,Ie(se.slice(be))):X+=`

<`+V+fe+`>
`+A(se,!!$)+"</"+V+`>
`})(z);else{var pe=R(z,V);X=`

<`+V+pe+`>
`+A(z,!!$)+"</"+V+`>
`}return X}return u=E.converter._dispatch("lists.before",u,b,E),u+="\xA80",E.gListLevel?u=u.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(z,V,$){var ee=$.search(/[*+-]/g)>-1?"ul":"ol";return H(V,ee,!0)}):u=u.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(z,V,$,ee){var q=ee.search(/[*+-]/g)>-1?"ul":"ol";return H($,q,!1)}),u=u.replace(/¨0/,""),u=E.converter._dispatch("lists.after",u,b,E),u}),a.subParser("metadata",function(u,b,E){"use strict";if(!b.metadata)return u;u=E.converter._dispatch("metadata.before",u,b,E);function A(R){E.metadata.raw=R,R=R.replace(/&/g,"&amp;").replace(/"/g,"&quot;"),R=R.replace(/\n {4}/g," "),R.replace(/^([\S ]+): +([\s\S]+?)$/gm,function(H,z,V){return E.metadata.parsed[z]=V,""})}return u=u.replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,function(R,H,z){return A(z),"\xA8M"}),u=u.replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,function(R,H,z){return H&&(E.metadata.format=H),A(z),"\xA8M"}),u=u.replace(/¨M/g,""),u=E.converter._dispatch("metadata.after",u,b,E),u}),a.subParser("outdent",function(u,b,E){"use strict";return u=E.converter._dispatch("outdent.before",u,b,E),u=u.replace(/^(\t|[ ]{1,4})/gm,"\xA80"),u=u.replace(/¨0/g,""),u=E.converter._dispatch("outdent.after",u,b,E),u}),a.subParser("paragraphs",function(u,b,E){"use strict";u=E.converter._dispatch("paragraphs.before",u,b,E),u=u.replace(/^\n+/g,""),u=u.replace(/\n+$/g,"");for(var A=u.split(/\n{2,}/g),R=[],H=A.length,z=0;z<H;z++){var V=A[z];V.search(/¨(K|G)(\d+)\1/g)>=0?R.push(V):V.search(/\S/)>=0&&(V=a.subParser("spanGamut")(V,b,E),V=V.replace(/^([ \t]*)/g,"<p>"),V+="</p>",R.push(V))}for(H=R.length,z=0;z<H;z++){for(var $="",ee=R[z],q=!1;/¨(K|G)(\d+)\1/.test(ee);){var oe=RegExp.$1,X=RegExp.$2;oe==="K"?$=E.gHtmlBlocks[X]:q?$=a.subParser("encodeCode")(E.ghCodeBlocks[X].text,b,E):$=E.ghCodeBlocks[X].codeblock,$=$.replace(/\$/g,"$$$$"),ee=ee.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/,$),/^<pre\b[^>]*>\s*<code\b[^>]*>/.test(ee)&&(q=!0)}R[z]=ee}return u=R.join(`
`),u=u.replace(/^\n+/g,""),u=u.replace(/\n+$/g,""),E.converter._dispatch("paragraphs.after",u,b,E)}),a.subParser("runExtension",function(u,b,E,A){"use strict";if(u.filter)b=u.filter(b,A.converter,E);else if(u.regex){var R=u.regex;R instanceof RegExp||(R=new RegExp(R,"g")),b=b.replace(R,u.replace)}return b}),a.subParser("spanGamut",function(u,b,E){"use strict";return u=E.converter._dispatch("spanGamut.before",u,b,E),u=a.subParser("codeSpans")(u,b,E),u=a.subParser("escapeSpecialCharsWithinTagAttributes")(u,b,E),u=a.subParser("encodeBackslashEscapes")(u,b,E),u=a.subParser("images")(u,b,E),u=a.subParser("anchors")(u,b,E),u=a.subParser("autoLinks")(u,b,E),u=a.subParser("simplifiedAutoLinks")(u,b,E),u=a.subParser("emoji")(u,b,E),u=a.subParser("underline")(u,b,E),u=a.subParser("italicsAndBold")(u,b,E),u=a.subParser("strikethrough")(u,b,E),u=a.subParser("ellipsis")(u,b,E),u=a.subParser("hashHTMLSpans")(u,b,E),u=a.subParser("encodeAmpsAndAngles")(u,b,E),b.simpleLineBreaks?/\n\n¨K/.test(u)||(u=u.replace(/\n+/g,`<br />
`)):u=u.replace(/  +\n/g,`<br />
`),u=E.converter._dispatch("spanGamut.after",u,b,E),u}),a.subParser("strikethrough",function(u,b,E){"use strict";function A(R){return b.simplifiedAutoLink&&(R=a.subParser("simplifiedAutoLinks")(R,b,E)),"<del>"+R+"</del>"}return b.strikethrough&&(u=E.converter._dispatch("strikethrough.before",u,b,E),u=u.replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,function(R,H){return A(H)}),u=E.converter._dispatch("strikethrough.after",u,b,E)),u}),a.subParser("stripLinkDefinitions",function(u,b,E){"use strict";var A=/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*<?([^>\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,R=/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm;u+="\xA80";var H=function(z,V,$,ee,q,oe,X){return V=V.toLowerCase(),$.match(/^data:.+?\/.+?;base64,/)?E.gUrls[V]=$.replace(/\s/g,""):E.gUrls[V]=a.subParser("encodeAmpsAndAngles")($,b,E),oe?oe+X:(X&&(E.gTitles[V]=X.replace(/"|'/g,"&quot;")),b.parseImgDimensions&&ee&&q&&(E.gDimensions[V]={width:ee,height:q}),"")};return u=u.replace(R,H),u=u.replace(A,H),u=u.replace(/¨0/,""),u}),a.subParser("tables",function(u,b,E){"use strict";if(!b.tables)return u;var A=/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,R=/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm;function H(q){return/^:[ \t]*--*$/.test(q)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(q)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(q)?' style="text-align:center;"':""}function z(q,oe){var X="";return q=q.trim(),(b.tablesHeaderId||b.tableHeaderId)&&(X=' id="'+q.replace(/ /g,"_").toLowerCase()+'"'),q=a.subParser("spanGamut")(q,b,E),"<th"+X+oe+">"+q+`</th>
`}function V(q,oe){var X=a.subParser("spanGamut")(q,b,E);return"<td"+oe+">"+X+`</td>
`}function $(q,oe){for(var X=`<table>
<thead>
<tr>
`,pe=q.length,Ie=0;Ie<pe;++Ie)X+=q[Ie];for(X+=`</tr>
</thead>
<tbody>
`,Ie=0;Ie<oe.length;++Ie){X+=`<tr>
`;for(var se=0;se<pe;++se)X+=oe[Ie][se];X+=`</tr>
`}return X+=`</tbody>
</table>
`,X}function ee(q){var oe,X=q.split(`
`);for(oe=0;oe<X.length;++oe)/^ {0,3}\|/.test(X[oe])&&(X[oe]=X[oe].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(X[oe])&&(X[oe]=X[oe].replace(/\|[ \t]*$/,"")),X[oe]=a.subParser("codeSpans")(X[oe],b,E);var pe=X[0].split("|").map(function(Ce){return Ce.trim()}),Ie=X[1].split("|").map(function(Ce){return Ce.trim()}),se=[],be=[],fe=[],ue=[];for(X.shift(),X.shift(),oe=0;oe<X.length;++oe)X[oe].trim()!==""&&se.push(X[oe].split("|").map(function(Ce){return Ce.trim()}));if(pe.length<Ie.length)return q;for(oe=0;oe<Ie.length;++oe)fe.push(H(Ie[oe]));for(oe=0;oe<pe.length;++oe)a.helper.isUndefined(fe[oe])&&(fe[oe]=""),be.push(z(pe[oe],fe[oe]));for(oe=0;oe<se.length;++oe){for(var we=[],Me=0;Me<be.length;++Me)a.helper.isUndefined(se[oe][Me]),we.push(V(se[oe][Me],fe[Me]));ue.push(we)}return $(be,ue)}return u=E.converter._dispatch("tables.before",u,b,E),u=u.replace(/\\(\|)/g,a.helper.escapeCharactersCallback),u=u.replace(A,ee),u=u.replace(R,ee),u=E.converter._dispatch("tables.after",u,b,E),u}),a.subParser("underline",function(u,b,E){"use strict";return b.underline&&(u=E.converter._dispatch("underline.before",u,b,E),b.literalMidWordUnderscores?(u=u.replace(/\b___(\S[\s\S]*?)___\b/g,function(A,R){return"<u>"+R+"</u>"}),u=u.replace(/\b__(\S[\s\S]*?)__\b/g,function(A,R){return"<u>"+R+"</u>"})):(u=u.replace(/___(\S[\s\S]*?)___/g,function(A,R){return/\S$/.test(R)?"<u>"+R+"</u>":A}),u=u.replace(/__(\S[\s\S]*?)__/g,function(A,R){return/\S$/.test(R)?"<u>"+R+"</u>":A})),u=u.replace(/(_)/g,a.helper.escapeCharactersCallback),u=E.converter._dispatch("underline.after",u,b,E)),u}),a.subParser("unescapeSpecialChars",function(u,b,E){"use strict";return u=E.converter._dispatch("unescapeSpecialChars.before",u,b,E),u=u.replace(/¨E(\d+)E/g,function(A,R){var H=parseInt(R);return String.fromCharCode(H)}),u=E.converter._dispatch("unescapeSpecialChars.after",u,b,E),u}),a.subParser("makeMarkdown.blockquote",function(u,b){"use strict";var E="";if(u.hasChildNodes())for(var A=u.childNodes,R=A.length,H=0;H<R;++H){var z=a.subParser("makeMarkdown.node")(A[H],b);z!==""&&(E+=z)}return E=E.trim(),E="> "+E.split(`
`).join(`
> `),E}),a.subParser("makeMarkdown.codeBlock",function(u,b){"use strict";var E=u.getAttribute("language"),A=u.getAttribute("precodenum");return"```"+E+`
`+b.preList[A]+"\n```"}),a.subParser("makeMarkdown.codeSpan",function(u){"use strict";return"`"+u.innerHTML+"`"}),a.subParser("makeMarkdown.emphasis",function(u,b){"use strict";var E="";if(u.hasChildNodes()){E+="*";for(var A=u.childNodes,R=A.length,H=0;H<R;++H)E+=a.subParser("makeMarkdown.node")(A[H],b);E+="*"}return E}),a.subParser("makeMarkdown.header",function(u,b,E){"use strict";var A=new Array(E+1).join("#"),R="";if(u.hasChildNodes()){R=A+" ";for(var H=u.childNodes,z=H.length,V=0;V<z;++V)R+=a.subParser("makeMarkdown.node")(H[V],b)}return R}),a.subParser("makeMarkdown.hr",function(){"use strict";return"---"}),a.subParser("makeMarkdown.image",function(u){"use strict";var b="";return u.hasAttribute("src")&&(b+="!["+u.getAttribute("alt")+"](",b+="<"+u.getAttribute("src")+">",u.hasAttribute("width")&&u.hasAttribute("height")&&(b+=" ="+u.getAttribute("width")+"x"+u.getAttribute("height")),u.hasAttribute("title")&&(b+=' "'+u.getAttribute("title")+'"'),b+=")"),b}),a.subParser("makeMarkdown.links",function(u,b){"use strict";var E="";if(u.hasChildNodes()&&u.hasAttribute("href")){var A=u.childNodes,R=A.length;E="[";for(var H=0;H<R;++H)E+=a.subParser("makeMarkdown.node")(A[H],b);E+="](",E+="<"+u.getAttribute("href")+">",u.hasAttribute("title")&&(E+=' "'+u.getAttribute("title")+'"'),E+=")"}return E}),a.subParser("makeMarkdown.list",function(u,b,E){"use strict";var A="";if(!u.hasChildNodes())return"";for(var R=u.childNodes,H=R.length,z=u.getAttribute("start")||1,V=0;V<H;++V)if(!(typeof R[V].tagName>"u"||R[V].tagName.toLowerCase()!=="li")){var $="";E==="ol"?$=z.toString()+". ":$="- ",A+=$+a.subParser("makeMarkdown.listItem")(R[V],b),++z}return A+=`
<!-- -->
`,A.trim()}),a.subParser("makeMarkdown.listItem",function(u,b){"use strict";for(var E="",A=u.childNodes,R=A.length,H=0;H<R;++H)E+=a.subParser("makeMarkdown.node")(A[H],b);return/\n$/.test(E)?E=E.split(`
`).join(`
    `).replace(/^ {4}$/gm,"").replace(/\n\n+/g,`

`):E+=`
`,E}),a.subParser("makeMarkdown.node",function(u,b,E){"use strict";E=E||!1;var A="";if(u.nodeType===3)return a.subParser("makeMarkdown.txt")(u,b);if(u.nodeType===8)return"<!--"+u.data+`-->

`;if(u.nodeType!==1)return"";var R=u.tagName.toLowerCase();switch(R){case"h1":E||(A=a.subParser("makeMarkdown.header")(u,b,1)+`

`);break;case"h2":E||(A=a.subParser("makeMarkdown.header")(u,b,2)+`

`);break;case"h3":E||(A=a.subParser("makeMarkdown.header")(u,b,3)+`

`);break;case"h4":E||(A=a.subParser("makeMarkdown.header")(u,b,4)+`

`);break;case"h5":E||(A=a.subParser("makeMarkdown.header")(u,b,5)+`

`);break;case"h6":E||(A=a.subParser("makeMarkdown.header")(u,b,6)+`

`);break;case"p":E||(A=a.subParser("makeMarkdown.paragraph")(u,b)+`

`);break;case"blockquote":E||(A=a.subParser("makeMarkdown.blockquote")(u,b)+`

`);break;case"hr":E||(A=a.subParser("makeMarkdown.hr")(u,b)+`

`);break;case"ol":E||(A=a.subParser("makeMarkdown.list")(u,b,"ol")+`

`);break;case"ul":E||(A=a.subParser("makeMarkdown.list")(u,b,"ul")+`

`);break;case"precode":E||(A=a.subParser("makeMarkdown.codeBlock")(u,b)+`

`);break;case"pre":E||(A=a.subParser("makeMarkdown.pre")(u,b)+`

`);break;case"table":E||(A=a.subParser("makeMarkdown.table")(u,b)+`

`);break;case"code":A=a.subParser("makeMarkdown.codeSpan")(u,b);break;case"em":case"i":A=a.subParser("makeMarkdown.emphasis")(u,b);break;case"strong":case"b":A=a.subParser("makeMarkdown.strong")(u,b);break;case"del":A=a.subParser("makeMarkdown.strikethrough")(u,b);break;case"a":A=a.subParser("makeMarkdown.links")(u,b);break;case"img":A=a.subParser("makeMarkdown.image")(u,b);break;default:A=u.outerHTML+`

`}return A}),a.subParser("makeMarkdown.paragraph",function(u,b){"use strict";var E="";if(u.hasChildNodes())for(var A=u.childNodes,R=A.length,H=0;H<R;++H)E+=a.subParser("makeMarkdown.node")(A[H],b);return E=E.trim(),E}),a.subParser("makeMarkdown.pre",function(u,b){"use strict";var E=u.getAttribute("prenum");return"<pre>"+b.preList[E]+"</pre>"}),a.subParser("makeMarkdown.strikethrough",function(u,b){"use strict";var E="";if(u.hasChildNodes()){E+="~~";for(var A=u.childNodes,R=A.length,H=0;H<R;++H)E+=a.subParser("makeMarkdown.node")(A[H],b);E+="~~"}return E}),a.subParser("makeMarkdown.strong",function(u,b){"use strict";var E="";if(u.hasChildNodes()){E+="**";for(var A=u.childNodes,R=A.length,H=0;H<R;++H)E+=a.subParser("makeMarkdown.node")(A[H],b);E+="**"}return E}),a.subParser("makeMarkdown.table",function(u,b){"use strict";var E="",A=[[],[]],R=u.querySelectorAll("thead>tr>th"),H=u.querySelectorAll("tbody>tr"),z,V;for(z=0;z<R.length;++z){var $=a.subParser("makeMarkdown.tableCell")(R[z],b),ee="---";if(R[z].hasAttribute("style")){var q=R[z].getAttribute("style").toLowerCase().replace(/\s/g,"");switch(q){case"text-align:left;":ee=":---";break;case"text-align:right;":ee="---:";break;case"text-align:center;":ee=":---:";break}}A[0][z]=$.trim(),A[1][z]=ee}for(z=0;z<H.length;++z){var oe=A.push([])-1,X=H[z].getElementsByTagName("td");for(V=0;V<R.length;++V){var pe=" ";typeof X[V]<"u"&&(pe=a.subParser("makeMarkdown.tableCell")(X[V],b)),A[oe].push(pe)}}var Ie=3;for(z=0;z<A.length;++z)for(V=0;V<A[z].length;++V){var se=A[z][V].length;se>Ie&&(Ie=se)}for(z=0;z<A.length;++z){for(V=0;V<A[z].length;++V)z===1?A[z][V].slice(-1)===":"?A[z][V]=a.helper.padEnd(A[z][V].slice(-1),Ie-1,"-")+":":A[z][V]=a.helper.padEnd(A[z][V],Ie,"-"):A[z][V]=a.helper.padEnd(A[z][V],Ie);E+="| "+A[z].join(" | ")+` |
`}return E.trim()}),a.subParser("makeMarkdown.tableCell",function(u,b){"use strict";var E="";if(!u.hasChildNodes())return"";for(var A=u.childNodes,R=A.length,H=0;H<R;++H)E+=a.subParser("makeMarkdown.node")(A[H],b,!0);return E.trim()}),a.subParser("makeMarkdown.txt",function(u){"use strict";var b=u.nodeValue;return b=b.replace(/ +/g," "),b=b.replace(/¨NBSP;/g," "),b=a.helper.unescapeHTMLEntities(b),b=b.replace(/([*_~|`])/g,"\\$1"),b=b.replace(/^(\s*)>/g,"\\$1>"),b=b.replace(/^#/gm,"\\#"),b=b.replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3"),b=b.replace(/^( {0,3}\d+)\./gm,"$1\\."),b=b.replace(/^( {0,3})([+-])/gm,"$1\\$2"),b=b.replace(/]([\s]*)\(/g,"\\]$1\\("),b=b.replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:"),b});var T=this;r=function(){"use strict";return a}.call(v,t,v,Z),r!==void 0&&(Z.exports=r)}).call(this)},37478:(Z,v,t)=>{"use strict";var r=t(40210),n=t(21924),s=t(70631),a=r("%TypeError%"),c=r("%WeakMap%",!0),h=r("%Map%",!0),p=n("WeakMap.prototype.get",!0),d=n("WeakMap.prototype.set",!0),k=n("WeakMap.prototype.has",!0),M=n("Map.prototype.get",!0),C=n("Map.prototype.set",!0),w=n("Map.prototype.has",!0),I=function(N,D){for(var x=N,T;(T=x.next)!==null;x=T)if(T.key===D)return x.next=T.next,T.next=N.next,N.next=T,T},F=function(N,D){var x=I(N,D);return x&&x.value},U=function(N,D,x){var T=I(N,D);T?T.value=x:N.next={key:D,next:N.next,value:x}},B=function(N,D){return!!I(N,D)};Z.exports=function(){var D,x,T,u={assert:function(b){if(!u.has(b))throw new a("Side channel does not contain "+s(b))},get:function(b){if(c&&b&&(typeof b=="object"||typeof b=="function")){if(D)return p(D,b)}else if(h){if(x)return M(x,b)}else if(T)return F(T,b)},has:function(b){if(c&&b&&(typeof b=="object"||typeof b=="function")){if(D)return k(D,b)}else if(h){if(x)return w(x,b)}else if(T)return B(T,b);return!1},set:function(b,E){c&&b&&(typeof b=="object"||typeof b=="function")?(D||(D=new c),d(D,b,E)):h?(x||(x=new h),C(x,b,E)):(T||(T={key:{},next:null}),U(T,b,E))}};return u}},93379:Z=>{"use strict";var v=[];function t(s){for(var a=-1,c=0;c<v.length;c++)if(v[c].identifier===s){a=c;break}return a}function r(s,a){for(var c={},h=[],p=0;p<s.length;p++){var d=s[p],k=a.base?d[0]+a.base:d[0],M=c[k]||0,C="".concat(k," ").concat(M);c[k]=M+1;var w=t(C),I={css:d[1],media:d[2],sourceMap:d[3],supports:d[4],layer:d[5]};if(w!==-1)v[w].references++,v[w].updater(I);else{var F=n(I,a);a.byIndex=p,v.splice(p,0,{identifier:C,updater:F,references:1})}h.push(C)}return h}function n(s,a){var c=a.domAPI(a);c.update(s);var h=function(d){if(d){if(d.css===s.css&&d.media===s.media&&d.sourceMap===s.sourceMap&&d.supports===s.supports&&d.layer===s.layer)return;c.update(s=d)}else c.remove()};return h}Z.exports=function(s,a){a=a||{},s=s||[];var c=r(s,a);return function(p){p=p||[];for(var d=0;d<c.length;d++){var k=c[d],M=t(k);v[M].references--}for(var C=r(p,a),w=0;w<c.length;w++){var I=c[w],F=t(I);v[F].references===0&&(v[F].updater(),v.splice(F,1))}c=C}}},90569:Z=>{"use strict";var v={};function t(n){if(typeof v[n]>"u"){var s=document.querySelector(n);if(window.HTMLIFrameElement&&s instanceof window.HTMLIFrameElement)try{s=s.contentDocument.head}catch{s=null}v[n]=s}return v[n]}function r(n,s){var a=t(n);if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(s)}Z.exports=r},19216:Z=>{"use strict";function v(t){var r=document.createElement("style");return t.setAttributes(r,t.attributes),t.insert(r,t.options),r}Z.exports=v},3565:(Z,v,t)=>{"use strict";function r(n){var s=t.nc;s&&n.setAttribute("nonce",s)}Z.exports=r},7795:Z=>{"use strict";function v(n,s,a){var c="";a.supports&&(c+="@supports (".concat(a.supports,") {")),a.media&&(c+="@media ".concat(a.media," {"));var h=typeof a.layer<"u";h&&(c+="@layer".concat(a.layer.length>0?" ".concat(a.layer):""," {")),c+=a.css,h&&(c+="}"),a.media&&(c+="}"),a.supports&&(c+="}");var p=a.sourceMap;p&&typeof btoa<"u"&&(c+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(p))))," */")),s.styleTagTransform(c,n,s.options)}function t(n){if(n.parentNode===null)return!1;n.parentNode.removeChild(n)}function r(n){var s=n.insertStyleElement(n);return{update:function(c){v(s,n,c)},remove:function(){t(s)}}}Z.exports=r},44589:Z=>{"use strict";function v(t,r){if(r.styleSheet)r.styleSheet.cssText=t;else{for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(document.createTextNode(t))}}Z.exports=v},94633:Z=>{Z.exports=function(s){return v(t(s),s)},Z.exports.array=v;function v(s,a){var c=s.length,h=new Array(c),p={},d=c,k=r(a),M=n(s);for(a.forEach(function(w){if(!M.has(w[0])||!M.has(w[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});d--;)p[d]||C(s[d],d,new Set);return h;function C(w,I,F){if(F.has(w)){var U;try{U=", node was:"+JSON.stringify(w)}catch{U=""}throw new Error("Cyclic dependency"+U)}if(!M.has(w))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(w));if(!p[I]){p[I]=!0;var B=k.get(w)||new Set;if(B=Array.from(B),I=B.length){F.add(w);do{var N=B[--I];C(N,M.get(N),F)}while(I);F.delete(w)}h[--c]=w}}}function t(s){for(var a=new Set,c=0,h=s.length;c<h;c++){var p=s[c];a.add(p[0]),a.add(p[1])}return Array.from(a)}function r(s){for(var a=new Map,c=0,h=s.length;c<h;c++){var p=s[c];a.has(p[0])||a.set(p[0],new Set),a.has(p[1])||a.set(p[1],new Set),a.get(p[0]).add(p[1])}return a}function n(s){for(var a=new Map,c=0,h=s.length;c<h;c++)a.set(s[c],c);return a}},7916:(Z,v,t)=>{"use strict";t.d(v,{q:()=>a});function r(c,h){return typeof c=="function"?c(h):c&&(c.current=h),c}var n=t(67294);function s(c,h){var p=(0,n.useState)(function(){return{value:c,callback:h,facade:{get current(){return p.value},set current(d){var k=p.value;k!==d&&(p.value=d,p.callback(d,k))}}}})[0];return p.callback=h,p.facade}function a(c,h){return s(h||null,function(p){return c.forEach(function(d){return r(d,p)})})}},73469:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(67294),n=r.useLayoutEffect;const s=n},66781:(Z,v,t)=>{"use strict";t.d(v,{L:()=>a});var r=t(97582),n=t(67294),s=function(c){var h=c.sideCar,p=(0,r._T)(c,["sideCar"]);if(!h)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var d=h.read();if(!d)throw new Error("Sidecar medium not found");return n.createElement(d,(0,r.pi)({},p))};s.isSideCarExport=!0;function a(c,h){return c.useMedium(h),s}},87122:(Z,v,t)=>{"use strict";t.d(v,{_:()=>c});var r=t(97582);function n(h){return h}function s(h,p){p===void 0&&(p=n);var d=[],k=!1,M={read:function(){if(k)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return d.length?d[d.length-1]:h},useMedium:function(C){var w=p(C,k);return d.push(w),function(){d=d.filter(function(I){return I!==w})}},assignSyncMedium:function(C){for(k=!0;d.length;){var w=d;d=[],w.forEach(C)}d={push:function(I){return C(I)},filter:function(){return d}}},assignMedium:function(C){k=!0;var w=[];if(d.length){var I=d;d=[],I.forEach(C),w=d}var F=function(){var B=w;w=[],B.forEach(C)},U=function(){return Promise.resolve().then(F)};U(),d={push:function(B){w.push(B),U()},filter:function(B){return w=w.filter(B),d}}}};return M}function a(h,p){return p===void 0&&(p=n),s(h,p)}function c(h){h===void 0&&(h={});var p=s(null);return p.options=(0,r.pi)({async:!0,ssr:!1},h),p}},53250:(Z,v,t)=>{"use strict";/**
 * @license React
 * use-sync-external-store-shim.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=t(67294);function n(w,I){return w===I&&(w!==0||1/w===1/I)||w!==w&&I!==I}var s=typeof Object.is=="function"?Object.is:n,a=r.useState,c=r.useEffect,h=r.useLayoutEffect,p=r.useDebugValue;function d(w,I){var F=I(),U=a({inst:{value:F,getSnapshot:I}}),B=U[0].inst,N=U[1];return h(function(){B.value=F,B.getSnapshot=I,k(B)&&N({inst:B})},[w,F,I]),c(function(){return k(B)&&N({inst:B}),w(function(){k(B)&&N({inst:B})})},[w]),p(F),F}function k(w){var I=w.getSnapshot;w=w.value;try{var F=I();return!s(w,F)}catch{return!0}}function M(w,I){return I()}var C=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?M:d;v.useSyncExternalStore=r.useSyncExternalStore!==void 0?r.useSyncExternalStore:C},50139:(Z,v,t)=>{"use strict";/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=t(67294),n=t(61688);function s(M,C){return M===C&&(M!==0||1/M===1/C)||M!==M&&C!==C}var a=typeof Object.is=="function"?Object.is:s,c=n.useSyncExternalStore,h=r.useRef,p=r.useEffect,d=r.useMemo,k=r.useDebugValue;v.useSyncExternalStoreWithSelector=function(M,C,w,I,F){var U=h(null);if(U.current===null){var B={hasValue:!1,value:null};U.current=B}else B=U.current;U=d(function(){function D(E){if(!x){if(x=!0,T=E,E=I(E),F!==void 0&&B.hasValue){var A=B.value;if(F(A,E))return u=A}return u=E}if(A=u,a(T,E))return A;var R=I(E);return F!==void 0&&F(A,R)?A:(T=E,u=R)}var x=!1,T,u,b=w===void 0?null:w;return[function(){return D(C())},b===null?void 0:function(){return D(b())}]},[C,w,I,F]);var N=c(M,U[0],U[1]);return p(function(){B.hasValue=!0,B.value=N},[N]),k(N),N}},61688:(Z,v,t)=>{"use strict";Z.exports=t(53250)},52798:(Z,v,t)=>{"use strict";Z.exports=t(50139)},87561:(Z,v,t)=>{"use strict";t.d(v,{p8:()=>$,kM:()=>Yn,IX:()=>li,Xg:()=>mn,O7:()=>mn,hT:()=>Wt,Vo:()=>Bt,nK:()=>bt,Rx:()=>ot,Ry:()=>Ur,iH:()=>se,Z_:()=>kn});var r;try{r=Map}catch{}var n;try{n=Set}catch{}function s(on,ze,Le){if(!on||typeof on!="object"||typeof on=="function")return on;if(on.nodeType&&"cloneNode"in on)return on.cloneNode(!0);if(on instanceof Date)return new Date(on.getTime());if(on instanceof RegExp)return new RegExp(on);if(Array.isArray(on))return on.map(a);if(r&&on instanceof r)return new Map(Array.from(on.entries()));if(n&&on instanceof n)return new Set(Array.from(on.values()));if(on instanceof Object){ze.push(on);var Ht=Object.create(on);Le.push(Ht);for(var Mn in on){var tr=ze.findIndex(function(Sr){return Sr===on[Mn]});Ht[Mn]=tr>-1?Le[tr]:s(on[Mn],ze,Le)}return Ht}return on}function a(on){return s(on,[],[])}const c=Object.prototype.toString,h=Error.prototype.toString,p=RegExp.prototype.toString,d=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",k=/^Symbol\((.*)\)(.*)$/;function M(on){return on!=+on?"NaN":on===0&&1/on<0?"-0":""+on}function C(on,ze=!1){if(on==null||on===!0||on===!1)return""+on;const Le=typeof on;if(Le==="number")return M(on);if(Le==="string")return ze?`"${on}"`:on;if(Le==="function")return"[Function "+(on.name||"anonymous")+"]";if(Le==="symbol")return d.call(on).replace(k,"Symbol($1)");const Ht=c.call(on).slice(8,-1);return Ht==="Date"?isNaN(on.getTime())?""+on:on.toISOString(on):Ht==="Error"||on instanceof Error?"["+h.call(on)+"]":Ht==="RegExp"?p.call(on):null}function w(on,ze){let Le=C(on,ze);return Le!==null?Le:JSON.stringify(on,function(Ht,Mn){let tr=C(this[Ht],ze);return tr!==null?tr:Mn},2)}let I={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:on,type:ze,value:Le,originalValue:Ht})=>{let Mn=Ht!=null&&Ht!==Le,tr=`${on} must be a \`${ze}\` type, but the final value was: \`${w(Le,!0)}\``+(Mn?` (cast from the value \`${w(Ht,!0)}\`).`:".");return Le===null&&(tr+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),tr},defined:"${path} must be defined"},F={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},U={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},B={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},N={isValue:"${path} field must be ${value}"},D={noUnknown:"${path} field has unspecified keys: ${unknown}"},x={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must be have ${length} items"};const T=Object.assign(Object.create(null),{mixed:I,string:F,number:U,date:B,object:D,array:x,boolean:N});var u=t(18721),b=t.n(u);const E=on=>on&&on.__isYupSchema__;class A{constructor(ze,Le){if(this.refs=ze,this.refs=ze,typeof Le=="function"){this.fn=Le;return}if(!b()(Le,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!Le.then&&!Le.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:Ht,then:Mn,otherwise:tr}=Le,Sr=typeof Ht=="function"?Ht:(...Xr)=>Xr.every(gi=>gi===Ht);this.fn=function(...Xr){let gi=Xr.pop(),Pi=Xr.pop(),ii=Sr(...Xr)?Mn:tr;if(ii)return typeof ii=="function"?ii(Pi):Pi.concat(ii.resolve(gi))}}resolve(ze,Le){let Ht=this.refs.map(tr=>tr.getValue(Le?.value,Le?.parent,Le?.context)),Mn=this.fn.apply(ze,Ht.concat(ze,Le));if(Mn===void 0||Mn===ze)return ze;if(!E(Mn))throw new TypeError("conditions must return a schema object");return Mn.resolve(Le)}}const R=A;function H(on){return on==null?[]:[].concat(on)}function z(){return z=Object.assign||function(on){for(var ze=1;ze<arguments.length;ze++){var Le=arguments[ze];for(var Ht in Le)Object.prototype.hasOwnProperty.call(Le,Ht)&&(on[Ht]=Le[Ht])}return on},z.apply(this,arguments)}let V=/\$\{\s*(\w+)\s*\}/g;class $ extends Error{static formatError(ze,Le){const Ht=Le.label||Le.path||"this";return Ht!==Le.path&&(Le=z({},Le,{path:Ht})),typeof ze=="string"?ze.replace(V,(Mn,tr)=>w(Le[tr])):typeof ze=="function"?ze(Le):ze}static isError(ze){return ze&&ze.name==="ValidationError"}constructor(ze,Le,Ht,Mn){super(),this.name="ValidationError",this.value=Le,this.path=Ht,this.type=Mn,this.errors=[],this.inner=[],H(ze).forEach(tr=>{$.isError(tr)?(this.errors.push(...tr.errors),this.inner=this.inner.concat(tr.inner.length?tr.inner:tr)):this.errors.push(tr)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,$)}}const ee=on=>{let ze=!1;return(...Le)=>{ze||(ze=!0,on(...Le))}};function q(on,ze){let{endEarly:Le,tests:Ht,args:Mn,value:tr,errors:Sr,sort:Xr,path:gi}=on,Pi=ee(ze),ii=Ht.length;const vr=[];if(Sr=Sr||[],!ii)return Sr.length?Pi(new $(Sr,tr,gi)):Pi(null,tr);for(let at=0;at<Ht.length;at++){const it=Ht[at];it(Mn,function(ke){if(ke){if(!$.isError(ke))return Pi(ke,tr);if(Le)return ke.value=tr,Pi(ke,tr);vr.push(ke)}if(--ii<=0){if(vr.length&&(Xr&&vr.sort(Xr),Sr.length&&vr.push(...Sr),Sr=vr),Sr.length){Pi(new $(Sr,tr,gi),tr);return}Pi(null,tr)}})}}var oe=t(66604),X=t.n(oe),pe=t(55760);const Ie={context:"$",value:"."};function se(on,ze){return new be(on,ze)}class be{constructor(ze,Le={}){if(typeof ze!="string")throw new TypeError("ref must be a string, got: "+ze);if(this.key=ze.trim(),ze==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Ie.context,this.isValue=this.key[0]===Ie.value,this.isSibling=!this.isContext&&!this.isValue;let Ht=this.isContext?Ie.context:this.isValue?Ie.value:"";this.path=this.key.slice(Ht.length),this.getter=this.path&&(0,pe.getter)(this.path,!0),this.map=Le.map}getValue(ze,Le,Ht){let Mn=this.isContext?Ht:this.isValue?ze:Le;return this.getter&&(Mn=this.getter(Mn||{})),this.map&&(Mn=this.map(Mn)),Mn}cast(ze,Le){return this.getValue(ze,Le?.parent,Le?.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(ze){return ze&&ze.__isYupRef}}be.prototype.__isYupRef=!0;function fe(){return fe=Object.assign||function(on){for(var ze=1;ze<arguments.length;ze++){var Le=arguments[ze];for(var Ht in Le)Object.prototype.hasOwnProperty.call(Le,Ht)&&(on[Ht]=Le[Ht])}return on},fe.apply(this,arguments)}function ue(on,ze){if(on==null)return{};var Le={},Ht=Object.keys(on),Mn,tr;for(tr=0;tr<Ht.length;tr++)Mn=Ht[tr],!(ze.indexOf(Mn)>=0)&&(Le[Mn]=on[Mn]);return Le}function we(on){function ze(Le,Ht){let{value:Mn,path:tr="",label:Sr,options:Xr,originalValue:gi,sync:Pi}=Le,ii=ue(Le,["value","path","label","options","originalValue","sync"]);const{name:vr,test:at,params:it,message:Re}=on;let{parent:ke,context:Pe}=Xr;function Te(ur){return be.isRef(ur)?ur.getValue(Mn,ke,Pe):ur}function Mt(ur={}){const On=X()(fe({value:Mn,originalValue:gi,label:Sr,path:ur.path||tr},it,ur.params),Te),ct=new $($.formatError(ur.message||Re,On),Mn,On.path,ur.type||vr);return ct.params=On,ct}let qt=fe({path:tr,parent:ke,type:vr,createError:Mt,resolve:Te,options:Xr,originalValue:gi},ii);if(!Pi){try{Promise.resolve(at.call(qt,Mn,qt)).then(ur=>{$.isError(ur)?Ht(ur):ur?Ht(null,ur):Ht(Mt())})}catch(ur){Ht(ur)}return}let Rn;try{var Qn;if(Rn=at.call(qt,Mn,qt),typeof((Qn=Rn)==null?void 0:Qn.then)=="function")throw new Error(`Validation test of type: "${qt.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(ur){Ht(ur);return}$.isError(Rn)?Ht(Rn):Rn?Ht(null,Rn):Ht(Mt())}return ze.OPTIONS=on,ze}let Me=on=>on.substr(0,on.length-1).substr(1);function Ce(on,ze,Le,Ht=Le){let Mn,tr,Sr;return ze?((0,pe.forEach)(ze,(Xr,gi,Pi)=>{let ii=gi?Me(Xr):Xr;if(on=on.resolve({context:Ht,parent:Mn,value:Le}),on.innerType){let vr=Pi?parseInt(ii,10):0;if(Le&&vr>=Le.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${Xr}, in the path: ${ze}. because there is no value at that index. `);Mn=Le,Le=Le&&Le[vr],on=on.innerType}if(!Pi){if(!on.fields||!on.fields[ii])throw new Error(`The schema does not contain the path: ${ze}. (failed at: ${Sr} which is a type: "${on._type}")`);Mn=Le,Le=Le&&Le[ii],on=on.fields[ii]}tr=ii,Sr=gi?"["+Xr+"]":"."+Xr}),{schema:on,parent:Mn,parentPath:tr}):{parent:Mn,parentPath:ze,schema:on}}const Ne=(on,ze,Le,Ht)=>Ce(on,ze,Le,Ht).schema,Ye=null;class mt{constructor(){this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const ze=[];for(const Le of this.list)ze.push(Le);for(const[,Le]of this.refs)ze.push(Le.describe());return ze}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}add(ze){be.isRef(ze)?this.refs.set(ze.key,ze):this.list.add(ze)}delete(ze){be.isRef(ze)?this.refs.delete(ze.key):this.list.delete(ze)}has(ze,Le){if(this.list.has(ze))return!0;let Ht,Mn=this.refs.values();for(;Ht=Mn.next(),!Ht.done;)if(Le(Ht.value)===ze)return!0;return!1}clone(){const ze=new mt;return ze.list=new Set(this.list),ze.refs=new Map(this.refs),ze}merge(ze,Le){const Ht=this.clone();return ze.list.forEach(Mn=>Ht.add(Mn)),ze.refs.forEach(Mn=>Ht.add(Mn)),Le.list.forEach(Mn=>Ht.delete(Mn)),Le.refs.forEach(Mn=>Ht.delete(Mn)),Ht}}function Ct(){return Ct=Object.assign||function(on){for(var ze=1;ze<arguments.length;ze++){var Le=arguments[ze];for(var Ht in Le)Object.prototype.hasOwnProperty.call(Le,Ht)&&(on[Ht]=Le[Ht])}return on},Ct.apply(this,arguments)}class ln{constructor(ze){this.deps=[],this.conditions=[],this._whitelist=new mt,this._blacklist=new mt,this.exclusiveTests=Object.create(null),this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(I.notType)}),this.type=ze?.type||"mixed",this.spec=Ct({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},ze?.spec)}get _type(){return this.type}_typeCheck(ze){return!0}clone(ze){if(this._mutate)return ze&&Object.assign(this.spec,ze),this;const Le=Object.create(Object.getPrototypeOf(this));return Le.type=this.type,Le._typeError=this._typeError,Le._whitelistError=this._whitelistError,Le._blacklistError=this._blacklistError,Le._whitelist=this._whitelist.clone(),Le._blacklist=this._blacklist.clone(),Le.exclusiveTests=Ct({},this.exclusiveTests),Le.deps=[...this.deps],Le.conditions=[...this.conditions],Le.tests=[...this.tests],Le.transforms=[...this.transforms],Le.spec=a(Ct({},this.spec,ze)),Le}label(ze){var Le=this.clone();return Le.spec.label=ze,Le}meta(...ze){if(ze.length===0)return this.spec.meta;let Le=this.clone();return Le.spec.meta=Object.assign(Le.spec.meta||{},ze[0]),Le}withMutation(ze){let Le=this._mutate;this._mutate=!0;let Ht=ze(this);return this._mutate=Le,Ht}concat(ze){if(!ze||ze===this)return this;if(ze.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${ze.type}`);let Le=this,Ht=ze.clone();const Mn=Ct({},Le.spec,Ht.spec);return Ht.spec=Mn,Ht._typeError||(Ht._typeError=Le._typeError),Ht._whitelistError||(Ht._whitelistError=Le._whitelistError),Ht._blacklistError||(Ht._blacklistError=Le._blacklistError),Ht._whitelist=Le._whitelist.merge(ze._whitelist,ze._blacklist),Ht._blacklist=Le._blacklist.merge(ze._blacklist,ze._whitelist),Ht.tests=Le.tests,Ht.exclusiveTests=Le.exclusiveTests,Ht.withMutation(tr=>{ze.tests.forEach(Sr=>{tr.test(Sr.OPTIONS)})}),Ht}isType(ze){return this.spec.nullable&&ze===null?!0:this._typeCheck(ze)}resolve(ze){let Le=this;if(Le.conditions.length){let Ht=Le.conditions;Le=Le.clone(),Le.conditions=[],Le=Ht.reduce((Mn,tr)=>tr.resolve(Mn,ze),Le),Le=Le.resolve(ze)}return Le}cast(ze,Le={}){let Ht=this.resolve(Ct({value:ze},Le)),Mn=Ht._cast(ze,Le);if(ze!==void 0&&Le.assert!==!1&&Ht.isType(Mn)!==!0){let tr=w(ze),Sr=w(Mn);throw new TypeError(`The value of ${Le.path||"field"} could not be cast to a value that satisfies the schema type: "${Ht._type}". 

attempted value: ${tr} 
`+(Sr!==tr?`result of cast: ${Sr}`:""))}return Mn}_cast(ze,Le){let Ht=ze===void 0?ze:this.transforms.reduce((Mn,tr)=>tr.call(this,Mn,ze,this),ze);return Ht===void 0&&(Ht=this.getDefault()),Ht}_validate(ze,Le={},Ht){let{sync:Mn,path:tr,from:Sr=[],originalValue:Xr=ze,strict:gi=this.spec.strict,abortEarly:Pi=this.spec.abortEarly}=Le,ii=ze;gi||(ii=this._cast(ii,Ct({assert:!1},Le)));let vr={value:ii,path:tr,options:Le,originalValue:Xr,schema:this,label:this.spec.label,sync:Mn,from:Sr},at=[];this._typeError&&at.push(this._typeError),this._whitelistError&&at.push(this._whitelistError),this._blacklistError&&at.push(this._blacklistError),q({args:vr,value:ii,path:tr,sync:Mn,tests:at,endEarly:Pi},it=>{if(it)return void Ht(it,ii);q({tests:this.tests,args:vr,path:tr,sync:Mn,value:ii,endEarly:Pi},Ht)})}validate(ze,Le,Ht){let Mn=this.resolve(Ct({},Le,{value:ze}));return typeof Ht=="function"?Mn._validate(ze,Le,Ht):new Promise((tr,Sr)=>Mn._validate(ze,Le,(Xr,gi)=>{Xr?Sr(Xr):tr(gi)}))}validateSync(ze,Le){let Ht=this.resolve(Ct({},Le,{value:ze})),Mn;return Ht._validate(ze,Ct({},Le,{sync:!0}),(tr,Sr)=>{if(tr)throw tr;Mn=Sr}),Mn}isValid(ze,Le){return this.validate(ze,Le).then(()=>!0,Ht=>{if($.isError(Ht))return!1;throw Ht})}isValidSync(ze,Le){try{return this.validateSync(ze,Le),!0}catch(Ht){if($.isError(Ht))return!1;throw Ht}}_getDefault(){let ze=this.spec.default;return ze==null?ze:typeof ze=="function"?ze.call(this):a(ze)}getDefault(ze){return this.resolve(ze||{})._getDefault()}default(ze){return arguments.length===0?this._getDefault():this.clone({default:ze})}strict(ze=!0){var Le=this.clone();return Le.spec.strict=ze,Le}_isPresent(ze){return ze!=null}defined(ze=I.defined){return this.test({message:ze,name:"defined",exclusive:!0,test(Le){return Le!==void 0}})}required(ze=I.required){return this.clone({presence:"required"}).withMutation(Le=>Le.test({message:ze,name:"required",exclusive:!0,test(Ht){return this.schema._isPresent(Ht)}}))}notRequired(){var ze=this.clone({presence:"optional"});return ze.tests=ze.tests.filter(Le=>Le.OPTIONS.name!=="required"),ze}nullable(ze=!0){var Le=this.clone({nullable:ze!==!1});return Le}transform(ze){var Le=this.clone();return Le.transforms.push(ze),Le}test(...ze){let Le;if(ze.length===1?typeof ze[0]=="function"?Le={test:ze[0]}:Le=ze[0]:ze.length===2?Le={name:ze[0],test:ze[1]}:Le={name:ze[0],message:ze[1],test:ze[2]},Le.message===void 0&&(Le.message=I.default),typeof Le.test!="function")throw new TypeError("`test` is a required parameters");let Ht=this.clone(),Mn=we(Le),tr=Le.exclusive||Le.name&&Ht.exclusiveTests[Le.name]===!0;if(Le.exclusive&&!Le.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return Le.name&&(Ht.exclusiveTests[Le.name]=!!Le.exclusive),Ht.tests=Ht.tests.filter(Sr=>!(Sr.OPTIONS.name===Le.name&&(tr||Sr.OPTIONS.test===Mn.OPTIONS.test))),Ht.tests.push(Mn),Ht}when(ze,Le){!Array.isArray(ze)&&typeof ze!="string"&&(Le=ze,ze=".");let Ht=this.clone(),Mn=H(ze).map(tr=>new be(tr));return Mn.forEach(tr=>{tr.isSibling&&Ht.deps.push(tr.key)}),Ht.conditions.push(new R(Mn,Le)),Ht}typeError(ze){var Le=this.clone();return Le._typeError=we({message:ze,name:"typeError",test(Ht){return Ht!==void 0&&!this.schema.isType(Ht)?this.createError({params:{type:this.schema._type}}):!0}}),Le}oneOf(ze,Le=I.oneOf){var Ht=this.clone();return ze.forEach(Mn=>{Ht._whitelist.add(Mn),Ht._blacklist.delete(Mn)}),Ht._whitelistError=we({message:Le,name:"oneOf",test(Mn){if(Mn===void 0)return!0;let tr=this.schema._whitelist;return tr.has(Mn,this.resolve)?!0:this.createError({params:{values:tr.toArray().join(", ")}})}}),Ht}notOneOf(ze,Le=I.notOneOf){var Ht=this.clone();return ze.forEach(Mn=>{Ht._blacklist.add(Mn),Ht._whitelist.delete(Mn)}),Ht._blacklistError=we({message:Le,name:"notOneOf",test(Mn){let tr=this.schema._blacklist;return tr.has(Mn,this.resolve)?this.createError({params:{values:tr.toArray().join(", ")}}):!0}}),Ht}strip(ze=!0){let Le=this.clone();return Le.spec.strip=ze,Le}describe(){const ze=this.clone(),{label:Le,meta:Ht}=ze.spec;return{meta:Ht,label:Le,type:ze.type,oneOf:ze._whitelist.describe(),notOneOf:ze._blacklist.describe(),tests:ze.tests.map(tr=>({name:tr.OPTIONS.name,params:tr.OPTIONS.params})).filter((tr,Sr,Xr)=>Xr.findIndex(gi=>gi.name===tr.name)===Sr)}}}ln.prototype.__isYupSchema__=!0;for(const on of["validate","validateSync"])ln.prototype[`${on}At`]=function(ze,Le,Ht={}){const{parent:Mn,parentPath:tr,schema:Sr}=Ce(this,ze,Le,Ht.context);return Sr[on](Mn&&Mn[tr],Ct({},Ht,{parent:Mn,path:ze}))};for(const on of["equals","is"])ln.prototype[on]=ln.prototype.oneOf;for(const on of["not","nope"])ln.prototype[on]=ln.prototype.notOneOf;ln.prototype.optional=ln.prototype.notRequired;const $e=ln,Qe=null;function bt(){return new $e}bt.prototype=$e.prototype;const It=on=>on==null;function mn(){return new un}class un extends ln{constructor(){super({type:"boolean"}),this.withMutation(()=>{this.transform(function(ze){if(!this.isType(ze)){if(/^(true|1)$/i.test(String(ze)))return!0;if(/^(false|0)$/i.test(String(ze)))return!1}return ze})})}_typeCheck(ze){return ze instanceof Boolean&&(ze=ze.valueOf()),typeof ze=="boolean"}isTrue(ze=N.isValue){return this.test({message:ze,name:"is-value",exclusive:!0,params:{value:"true"},test(Le){return It(Le)||Le===!0}})}isFalse(ze=N.isValue){return this.test({message:ze,name:"is-value",exclusive:!0,params:{value:"false"},test(Le){return It(Le)||Le===!1}})}}mn.prototype=un.prototype;let Be=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,je=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,$t=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,et=on=>It(on)||on===on.trim(),Kt={}.toString();function kn(){return new Tn}class Tn extends ln{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(ze){if(this.isType(ze)||Array.isArray(ze))return ze;const Le=ze!=null&&ze.toString?ze.toString():ze;return Le===Kt?ze:Le})})}_typeCheck(ze){return ze instanceof String&&(ze=ze.valueOf()),typeof ze=="string"}_isPresent(ze){return super._isPresent(ze)&&!!ze.length}length(ze,Le=F.length){return this.test({message:Le,name:"length",exclusive:!0,params:{length:ze},test(Ht){return It(Ht)||Ht.length===this.resolve(ze)}})}min(ze,Le=F.min){return this.test({message:Le,name:"min",exclusive:!0,params:{min:ze},test(Ht){return It(Ht)||Ht.length>=this.resolve(ze)}})}max(ze,Le=F.max){return this.test({name:"max",exclusive:!0,message:Le,params:{max:ze},test(Ht){return It(Ht)||Ht.length<=this.resolve(ze)}})}matches(ze,Le){let Ht=!1,Mn,tr;return Le&&(typeof Le=="object"?{excludeEmptyString:Ht=!1,message:Mn,name:tr}=Le:Mn=Le),this.test({name:tr||"matches",message:Mn||F.matches,params:{regex:ze},test:Sr=>It(Sr)||Sr===""&&Ht||Sr.search(ze)!==-1})}email(ze=F.email){return this.matches(Be,{name:"email",message:ze,excludeEmptyString:!0})}url(ze=F.url){return this.matches(je,{name:"url",message:ze,excludeEmptyString:!0})}uuid(ze=F.uuid){return this.matches($t,{name:"uuid",message:ze,excludeEmptyString:!1})}ensure(){return this.default("").transform(ze=>ze===null?"":ze)}trim(ze=F.trim){return this.transform(Le=>Le!=null?Le.trim():Le).test({message:ze,name:"trim",test:et})}lowercase(ze=F.lowercase){return this.transform(Le=>It(Le)?Le:Le.toLowerCase()).test({message:ze,name:"string_case",exclusive:!0,test:Le=>It(Le)||Le===Le.toLowerCase()})}uppercase(ze=F.uppercase){return this.transform(Le=>It(Le)?Le:Le.toUpperCase()).test({message:ze,name:"string_case",exclusive:!0,test:Le=>It(Le)||Le===Le.toUpperCase()})}}kn.prototype=Tn.prototype;let ht=on=>on!=+on;function ot(){return new Je}class Je extends ln{constructor(){super({type:"number"}),this.withMutation(()=>{this.transform(function(ze){let Le=ze;if(typeof Le=="string"){if(Le=Le.replace(/\s/g,""),Le==="")return NaN;Le=+Le}return this.isType(Le)?Le:parseFloat(Le)})})}_typeCheck(ze){return ze instanceof Number&&(ze=ze.valueOf()),typeof ze=="number"&&!ht(ze)}min(ze,Le=U.min){return this.test({message:Le,name:"min",exclusive:!0,params:{min:ze},test(Ht){return It(Ht)||Ht>=this.resolve(ze)}})}max(ze,Le=U.max){return this.test({message:Le,name:"max",exclusive:!0,params:{max:ze},test(Ht){return It(Ht)||Ht<=this.resolve(ze)}})}lessThan(ze,Le=U.lessThan){return this.test({message:Le,name:"max",exclusive:!0,params:{less:ze},test(Ht){return It(Ht)||Ht<this.resolve(ze)}})}moreThan(ze,Le=U.moreThan){return this.test({message:Le,name:"min",exclusive:!0,params:{more:ze},test(Ht){return It(Ht)||Ht>this.resolve(ze)}})}positive(ze=U.positive){return this.moreThan(0,ze)}negative(ze=U.negative){return this.lessThan(0,ze)}integer(ze=U.integer){return this.test({name:"integer",message:ze,test:Le=>It(Le)||Number.isInteger(Le)})}truncate(){return this.transform(ze=>It(ze)?ze:ze|0)}round(ze){var Le,Ht=["ceil","floor","round","trunc"];if(ze=((Le=ze)==null?void 0:Le.toLowerCase())||"round",ze==="trunc")return this.truncate();if(Ht.indexOf(ze.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+Ht.join(", "));return this.transform(Mn=>It(Mn)?Mn:Math[ze](Mn))}}ot.prototype=Je.prototype;var wt=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function ft(on){var ze=[1,4,5,6,7,10,11],Le=0,Ht,Mn;if(Mn=wt.exec(on)){for(var tr=0,Sr;Sr=ze[tr];++tr)Mn[Sr]=+Mn[Sr]||0;Mn[2]=(+Mn[2]||1)-1,Mn[3]=+Mn[3]||1,Mn[7]=Mn[7]?String(Mn[7]).substr(0,3):0,(Mn[8]===void 0||Mn[8]==="")&&(Mn[9]===void 0||Mn[9]==="")?Ht=+new Date(Mn[1],Mn[2],Mn[3],Mn[4],Mn[5],Mn[6],Mn[7]):(Mn[8]!=="Z"&&Mn[9]!==void 0&&(Le=Mn[10]*60+Mn[11],Mn[9]==="+"&&(Le=0-Le)),Ht=Date.UTC(Mn[1],Mn[2],Mn[3],Mn[4],Mn[5]+Le,Mn[6],Mn[7]))}else Ht=Date.parse?Date.parse(on):NaN;return Ht}let vn=new Date(""),ut=on=>Object.prototype.toString.call(on)==="[object Date]";function Wt(){return new ae}class ae extends ln{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(ze){return this.isType(ze)?ze:(ze=ft(ze),isNaN(ze)?vn:new Date(ze))})})}_typeCheck(ze){return ut(ze)&&!isNaN(ze.getTime())}prepareParam(ze,Le){let Ht;if(be.isRef(ze))Ht=ze;else{let Mn=this.cast(ze);if(!this._typeCheck(Mn))throw new TypeError(`\`${Le}\` must be a Date or a value that can be \`cast()\` to a Date`);Ht=Mn}return Ht}min(ze,Le=B.min){let Ht=this.prepareParam(ze,"min");return this.test({message:Le,name:"min",exclusive:!0,params:{min:ze},test(Mn){return It(Mn)||Mn>=this.resolve(Ht)}})}max(ze,Le=B.max){var Ht=this.prepareParam(ze,"max");return this.test({message:Le,name:"max",exclusive:!0,params:{max:ze},test(Mn){return It(Mn)||Mn<=this.resolve(Ht)}})}}ae.INVALID_DATE=vn,Wt.prototype=ae.prototype,Wt.INVALID_DATE=vn;var ne=t(11865),ge=t.n(ne),ye=t(68929),Xe=t.n(ye),Ze=t(67523),lt=t.n(Ze),_t=t(94633),zt=t.n(_t);function Vt(on,ze=[]){let Le=[],Ht=[];function Mn(tr,Sr){var Xr=(0,pe.split)(tr)[0];~Ht.indexOf(Xr)||Ht.push(Xr),~ze.indexOf(`${Sr}-${Xr}`)||Le.push([Sr,Xr])}for(const tr in on)if(b()(on,tr)){let Sr=on[tr];~Ht.indexOf(tr)||Ht.push(tr),be.isRef(Sr)&&Sr.isSibling?Mn(Sr.path,tr):E(Sr)&&"deps"in Sr&&Sr.deps.forEach(Xr=>Mn(Xr,tr))}return zt().array(Ht,Le).reverse()}function sn(on,ze){let Le=1/0;return on.some((Ht,Mn)=>{var tr;if(((tr=ze.path)==null?void 0:tr.indexOf(Ht))!==-1)return Le=Mn,!0}),Le}function yn(on){return(ze,Le)=>sn(on,ze)-sn(on,Le)}function dr(){return dr=Object.assign||function(on){for(var ze=1;ze<arguments.length;ze++){var Le=arguments[ze];for(var Ht in Le)Object.prototype.hasOwnProperty.call(Le,Ht)&&(on[Ht]=Le[Ht])}return on},dr.apply(this,arguments)}let hr=on=>Object.prototype.toString.call(on)==="[object Object]";function Mr(on,ze){let Le=Object.keys(on.fields);return Object.keys(ze).filter(Ht=>Le.indexOf(Ht)===-1)}const rr=yn([]);class Cr extends ln{constructor(ze){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=rr,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(Ht){if(typeof Ht=="string")try{Ht=JSON.parse(Ht)}catch{Ht=null}return this.isType(Ht)?Ht:null}),ze&&this.shape(ze)})}_typeCheck(ze){return hr(ze)||typeof ze=="function"}_cast(ze,Le={}){var Ht;let Mn=super._cast(ze,Le);if(Mn===void 0)return this.getDefault();if(!this._typeCheck(Mn))return Mn;let tr=this.fields,Sr=(Ht=Le.stripUnknown)!=null?Ht:this.spec.noUnknown,Xr=this._nodes.concat(Object.keys(Mn).filter(vr=>this._nodes.indexOf(vr)===-1)),gi={},Pi=dr({},Le,{parent:gi,__validating:Le.__validating||!1}),ii=!1;for(const vr of Xr){let at=tr[vr],it=b()(Mn,vr);if(at){let Re,ke=Mn[vr];Pi.path=(Le.path?`${Le.path}.`:"")+vr,at=at.resolve({value:ke,context:Le.context,parent:gi});let Pe="spec"in at?at.spec:void 0,Te=Pe?.strict;if(Pe?.strip){ii=ii||vr in Mn;continue}Re=!Le.__validating||!Te?at.cast(Mn[vr],Pi):Mn[vr],Re!==void 0&&(gi[vr]=Re)}else it&&!Sr&&(gi[vr]=Mn[vr]);gi[vr]!==Mn[vr]&&(ii=!0)}return ii?gi:Mn}_validate(ze,Le={},Ht){let Mn=[],{sync:tr,from:Sr=[],originalValue:Xr=ze,abortEarly:gi=this.spec.abortEarly,recursive:Pi=this.spec.recursive}=Le;Sr=[{schema:this,value:Xr},...Sr],Le.__validating=!0,Le.originalValue=Xr,Le.from=Sr,super._validate(ze,Le,(ii,vr)=>{if(ii){if(!$.isError(ii)||gi)return void Ht(ii,vr);Mn.push(ii)}if(!Pi||!hr(vr)){Ht(Mn[0]||null,vr);return}Xr=Xr||vr;let at=this._nodes.map(it=>(Re,ke)=>{let Pe=it.indexOf(".")===-1?(Le.path?`${Le.path}.`:"")+it:`${Le.path||""}["${it}"]`,Te=this.fields[it];if(Te&&"validate"in Te){Te.validate(vr[it],dr({},Le,{path:Pe,from:Sr,strict:!0,parent:vr,originalValue:Xr[it]}),ke);return}ke(null)});q({sync:tr,tests:at,value:vr,errors:Mn,endEarly:gi,sort:this._sortErrors,path:Le.path},Ht)})}clone(ze){const Le=super.clone(ze);return Le.fields=dr({},this.fields),Le._nodes=this._nodes,Le._excludedEdges=this._excludedEdges,Le._sortErrors=this._sortErrors,Le}concat(ze){let Le=super.concat(ze),Ht=Le.fields;for(let[Mn,tr]of Object.entries(this.fields)){const Sr=Ht[Mn];Sr===void 0?Ht[Mn]=tr:Sr instanceof ln&&tr instanceof ln&&(Ht[Mn]=tr.concat(Sr))}return Le.withMutation(()=>Le.shape(Ht))}getDefaultFromShape(){let ze={};return this._nodes.forEach(Le=>{const Ht=this.fields[Le];ze[Le]="default"in Ht?Ht.getDefault():void 0}),ze}_getDefault(){if("default"in this.spec)return super._getDefault();if(this._nodes.length)return this.getDefaultFromShape()}shape(ze,Le=[]){let Ht=this.clone(),Mn=Object.assign(Ht.fields,ze);if(Ht.fields=Mn,Ht._sortErrors=yn(Object.keys(Mn)),Le.length){Array.isArray(Le[0])||(Le=[Le]);let tr=Le.map(([Sr,Xr])=>`${Sr}-${Xr}`);Ht._excludedEdges=Ht._excludedEdges.concat(tr)}return Ht._nodes=Vt(Mn,Ht._excludedEdges),Ht}pick(ze){const Le={};for(const Ht of ze)this.fields[Ht]&&(Le[Ht]=this.fields[Ht]);return this.clone().withMutation(Ht=>(Ht.fields={},Ht.shape(Le)))}omit(ze){const Le=this.clone(),Ht=Le.fields;Le.fields={};for(const Mn of ze)delete Ht[Mn];return Le.withMutation(()=>Le.shape(Ht))}from(ze,Le,Ht){let Mn=(0,pe.getter)(ze,!0);return this.transform(tr=>{if(tr==null)return tr;let Sr=tr;return b()(tr,ze)&&(Sr=dr({},tr),Ht||delete Sr[ze],Sr[Le]=Mn(tr)),Sr})}noUnknown(ze=!0,Le=D.noUnknown){typeof ze=="string"&&(Le=ze,ze=!0);let Ht=this.test({name:"noUnknown",exclusive:!0,message:Le,test(Mn){if(Mn==null)return!0;const tr=Mr(this.schema,Mn);return!ze||tr.length===0||this.createError({params:{unknown:tr.join(", ")}})}});return Ht.spec.noUnknown=ze,Ht}unknown(ze=!0,Le=D.noUnknown){return this.noUnknown(!ze,Le)}transformKeys(ze){return this.transform(Le=>Le&&lt()(Le,(Ht,Mn)=>ze(Mn)))}camelCase(){return this.transformKeys(Xe())}snakeCase(){return this.transformKeys(ge())}constantCase(){return this.transformKeys(ze=>ge()(ze).toUpperCase())}describe(){let ze=super.describe();return ze.fields=X()(this.fields,Le=>Le.describe()),ze}}function Ur(on){return new Cr(on)}Ur.prototype=Cr.prototype;function $r(){return $r=Object.assign||function(on){for(var ze=1;ze<arguments.length;ze++){var Le=arguments[ze];for(var Ht in Le)Object.prototype.hasOwnProperty.call(Le,Ht)&&(on[Ht]=Le[Ht])}return on},$r.apply(this,arguments)}function li(on){return new ri(on)}class ri extends ln{constructor(ze){super({type:"array"}),this.innerType=ze,this.withMutation(()=>{this.transform(function(Le){if(typeof Le=="string")try{Le=JSON.parse(Le)}catch{Le=null}return this.isType(Le)?Le:null})})}_typeCheck(ze){return Array.isArray(ze)}get _subType(){return this.innerType}_cast(ze,Le){const Ht=super._cast(ze,Le);if(!this._typeCheck(Ht)||!this.innerType)return Ht;let Mn=!1;const tr=Ht.map((Sr,Xr)=>{const gi=this.innerType.cast(Sr,$r({},Le,{path:`${Le.path||""}[${Xr}]`}));return gi!==Sr&&(Mn=!0),gi});return Mn?tr:Ht}_validate(ze,Le={},Ht){var Mn,tr;let Sr=[],Xr=Le.sync,gi=Le.path,Pi=this.innerType,ii=(Mn=Le.abortEarly)!=null?Mn:this.spec.abortEarly,vr=(tr=Le.recursive)!=null?tr:this.spec.recursive,at=Le.originalValue!=null?Le.originalValue:ze;super._validate(ze,Le,(it,Re)=>{if(it){if(!$.isError(it)||ii)return void Ht(it,Re);Sr.push(it)}if(!vr||!Pi||!this._typeCheck(Re)){Ht(Sr[0]||null,Re);return}at=at||Re;let ke=new Array(Re.length);for(let Pe=0;Pe<Re.length;Pe++){let Te=Re[Pe],Mt=`${Le.path||""}[${Pe}]`,qt=$r({},Le,{path:Mt,strict:!0,parent:Re,index:Pe,originalValue:at[Pe]});ke[Pe]=(Rn,Qn)=>Pi.validate(Te,qt,Qn)}q({sync:Xr,path:gi,value:Re,errors:Sr,endEarly:ii,tests:ke},Ht)})}clone(ze){const Le=super.clone(ze);return Le.innerType=this.innerType,Le}concat(ze){let Le=super.concat(ze);return Le.innerType=this.innerType,ze.innerType&&(Le.innerType=Le.innerType?Le.innerType.concat(ze.innerType):ze.innerType),Le}of(ze){let Le=this.clone();if(!E(ze))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+w(ze));return Le.innerType=ze,Le}length(ze,Le=x.length){return this.test({message:Le,name:"length",exclusive:!0,params:{length:ze},test(Ht){return It(Ht)||Ht.length===this.resolve(ze)}})}min(ze,Le){return Le=Le||x.min,this.test({message:Le,name:"min",exclusive:!0,params:{min:ze},test(Ht){return It(Ht)||Ht.length>=this.resolve(ze)}})}max(ze,Le){return Le=Le||x.max,this.test({message:Le,name:"max",exclusive:!0,params:{max:ze},test(Ht){return It(Ht)||Ht.length<=this.resolve(ze)}})}ensure(){return this.default(()=>[]).transform((ze,Le)=>this._typeCheck(ze)?ze:Le==null?[]:[].concat(Le))}compact(ze){let Le=ze?(Ht,Mn,tr)=>!ze(Ht,Mn,tr):Ht=>!!Ht;return this.transform(Ht=>Ht!=null?Ht.filter(Le):Ht)}describe(){let ze=super.describe();return this.innerType&&(ze.innerType=this.innerType.describe()),ze}nullable(ze=!0){return super.nullable(ze)}defined(){return super.defined()}required(ze){return super.required(ze)}}li.prototype=ri.prototype;function Bt(on){return new Et(on)}class Et{constructor(ze){this.type="lazy",this.__isYupSchema__=!0,this._resolve=(Le,Ht={})=>{let Mn=this.builder(Le,Ht);if(!E(Mn))throw new TypeError("lazy() functions must return a valid schema");return Mn.resolve(Ht)},this.builder=ze}resolve(ze){return this._resolve(ze.value,ze)}cast(ze,Le){return this._resolve(ze,Le).cast(ze,Le)}validate(ze,Le,Ht){return this._resolve(ze,Le).validate(ze,Le,Ht)}validateSync(ze,Le){return this._resolve(ze,Le).validateSync(ze,Le)}validateAt(ze,Le,Ht){return this._resolve(Le,Ht).validateAt(ze,Le,Ht)}validateSyncAt(ze,Le,Ht){return this._resolve(Le,Ht).validateSyncAt(ze,Le,Ht)}describe(){return null}isValid(ze,Le){return this._resolve(ze,Le).isValid(ze,Le)}isValidSync(ze,Le){return this._resolve(ze,Le).isValidSync(ze,Le)}}const bn=null;function cn(on){Object.keys(on).forEach(ze=>{Object.keys(on[ze]).forEach(Le=>{locale[ze][Le]=on[ze][Le]})})}function Yn(on,ze,Le){if(!on||!E(on.prototype))throw new TypeError("You must provide a yup schema constructor function");if(typeof ze!="string")throw new TypeError("A Method name must be provided");if(typeof Le!="function")throw new TypeError("Method function must be provided");on.prototype[ze]=Le}},8738:Z=>{"use strict";Z.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC"},24654:()=>{},22868:()=>{},14777:()=>{},99830:()=>{},70209:()=>{},87414:()=>{},10434:Z=>{function v(){return Z.exports=v=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Z.exports.__esModule=!0,Z.exports.default=Z.exports,v.apply(this,arguments)}Z.exports=v,Z.exports.__esModule=!0,Z.exports.default=Z.exports},62961:Z=>{let v="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",t=(n,s=21)=>(a=s)=>{let c="",h=a;for(;h--;)c+=n[Math.random()*n.length|0];return c},r=(n=21)=>{let s="",a=n;for(;a--;)s+=v[Math.random()*64|0];return s};Z.exports={nanoid:r,customAlphabet:t}},30907:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>r});function r(n,s){(s==null||s>n.length)&&(s=n.length);for(var a=0,c=new Array(s);a<s;a++)c[a]=n[a];return c}},97326:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>r});function r(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}},4942:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>n});var r=t(49142);function n(s,a,c){return a=(0,r.Z)(a),a in s?Object.defineProperty(s,a,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[a]=c,s}},87462:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>r});function r(){return r=Object.assign?Object.assign.bind():function(n){for(var s=1;s<arguments.length;s++){var a=arguments[s];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(n[c]=a[c])}return n},r.apply(this,arguments)}},94578:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>n});var r=t(89611);function n(s,a){s.prototype=Object.create(a.prototype),s.prototype.constructor=s,(0,r.Z)(s,a)}},1413:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(4942);function n(a,c){var h=Object.keys(a);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(a);c&&(p=p.filter(function(d){return Object.getOwnPropertyDescriptor(a,d).enumerable})),h.push.apply(h,p)}return h}function s(a){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?n(Object(h),!0).forEach(function(p){(0,r.Z)(a,p,h[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(h)):n(Object(h)).forEach(function(p){Object.defineProperty(a,p,Object.getOwnPropertyDescriptor(h,p))})}return a}},45987:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>n});var r=t(63366);function n(s,a){if(s==null)return{};var c=(0,r.Z)(s,a),h,p;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(s);for(p=0;p<d.length;p++)h=d[p],!(a.indexOf(h)>=0)&&Object.prototype.propertyIsEnumerable.call(s,h)&&(c[h]=s[h])}return c}},63366:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>r});function r(n,s){if(n==null)return{};var a={},c=Object.keys(n),h,p;for(p=0;p<c.length;p++)h=c[p],!(s.indexOf(h)>=0)&&(a[h]=n[h]);return a}},89611:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>r});function r(n,s){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,h){return c.__proto__=h,c},r(n,s)}},70885:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>c});function r(h){if(Array.isArray(h))return h}function n(h,p){var d=h==null?null:typeof Symbol<"u"&&h[Symbol.iterator]||h["@@iterator"];if(d!=null){var k,M,C,w,I=[],F=!0,U=!1;try{if(C=(d=d.call(h)).next,p===0){if(Object(d)!==d)return;F=!1}else for(;!(F=(k=C.call(d)).done)&&(I.push(k.value),I.length!==p);F=!0);}catch(B){U=!0,M=B}finally{try{if(!F&&d.return!=null&&(w=d.return(),Object(w)!==w))return}finally{if(U)throw M}}return I}}var s=t(40181);function a(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(h,p){return r(h)||n(h,p)||(0,s.Z)(h,p)||a()}},49142:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(71002);function n(a,c){if((0,r.Z)(a)!=="object"||a===null)return a;var h=a[Symbol.toPrimitive];if(h!==void 0){var p=h.call(a,c||"default");if((0,r.Z)(p)!=="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(a)}function s(a){var c=n(a,"string");return(0,r.Z)(c)==="symbol"?c:String(c)}},71002:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>r});function r(n){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},r(n)}},40181:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>n});var r=t(30907);function n(s,a){if(s){if(typeof s=="string")return(0,r.Z)(s,a);var c=Object.prototype.toString.call(s).slice(8,-1);if(c==="Object"&&s.constructor&&(c=s.constructor.name),c==="Map"||c==="Set")return Array.from(s);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return(0,r.Z)(s,a)}}},85983:(Z,v,t)=>{"use strict";t.d(v,{Cp:()=>C,RR:()=>d,cv:()=>B,dp:()=>x,dr:()=>D,oo:()=>s,uY:()=>N,x7:()=>c});var r=t(71347);function n(T,u,b){let{reference:E,floating:A}=T;const R=(0,r.Qq)(u),H=(0,r.Wh)(u),z=(0,r.I4)(H),V=(0,r.k3)(u),$=R==="y",ee=E.x+E.width/2-A.width/2,q=E.y+E.height/2-A.height/2,oe=E[z]/2-A[z]/2;let X;switch(V){case"top":X={x:ee,y:E.y-A.height};break;case"bottom":X={x:ee,y:E.y+E.height};break;case"right":X={x:E.x+E.width,y:q};break;case"left":X={x:E.x-A.width,y:q};break;default:X={x:E.x,y:E.y}}switch((0,r.hp)(u)){case"start":X[H]-=oe*(b&&$?-1:1);break;case"end":X[H]+=oe*(b&&$?-1:1);break}return X}const s=async(T,u,b)=>{const{placement:E="bottom",strategy:A="absolute",middleware:R=[],platform:H}=b,z=R.filter(Boolean),V=await(H.isRTL==null?void 0:H.isRTL(u));let $=await H.getElementRects({reference:T,floating:u,strategy:A}),{x:ee,y:q}=n($,E,V),oe=E,X={},pe=0;for(let Ie=0;Ie<z.length;Ie++){const{name:se,fn:be}=z[Ie],{x:fe,y:ue,data:we,reset:Me}=await be({x:ee,y:q,initialPlacement:E,placement:oe,strategy:A,middlewareData:X,rects:$,platform:H,elements:{reference:T,floating:u}});if(ee=fe??ee,q=ue??q,X={...X,[se]:{...X[se],...we}},Me&&pe<=50){pe++,typeof Me=="object"&&(Me.placement&&(oe=Me.placement),Me.rects&&($=Me.rects===!0?await H.getElementRects({reference:T,floating:u,strategy:A}):Me.rects),{x:ee,y:q}=n($,oe,V)),Ie=-1;continue}}return{x:ee,y:q,placement:oe,strategy:A,middlewareData:X}};async function a(T,u){var b;u===void 0&&(u={});const{x:E,y:A,platform:R,rects:H,elements:z,strategy:V}=T,{boundary:$="clippingAncestors",rootBoundary:ee="viewport",elementContext:q="floating",altBoundary:oe=!1,padding:X=0}=(0,r.ku)(u,T),pe=(0,r.yd)(X),se=z[oe?q==="floating"?"reference":"floating":q],be=(0,r.JB)(await R.getClippingRect({element:(b=await(R.isElement==null?void 0:R.isElement(se)))==null||b?se:se.contextElement||await(R.getDocumentElement==null?void 0:R.getDocumentElement(z.floating)),boundary:$,rootBoundary:ee,strategy:V})),fe=q==="floating"?{...H.floating,x:E,y:A}:H.reference,ue=await(R.getOffsetParent==null?void 0:R.getOffsetParent(z.floating)),we=await(R.isElement==null?void 0:R.isElement(ue))?await(R.getScale==null?void 0:R.getScale(ue))||{x:1,y:1}:{x:1,y:1},Me=(0,r.JB)(R.convertOffsetParentRelativeRectToViewportRelativeRect?await R.convertOffsetParentRelativeRectToViewportRelativeRect({rect:fe,offsetParent:ue,strategy:V}):fe);return{top:(be.top-Me.top+pe.top)/we.y,bottom:(Me.bottom-be.bottom+pe.bottom)/we.y,left:(be.left-Me.left+pe.left)/we.x,right:(Me.right-be.right+pe.right)/we.x}}const c=T=>({name:"arrow",options:T,async fn(u){const{x:b,y:E,placement:A,rects:R,platform:H,elements:z,middlewareData:V}=u,{element:$,padding:ee=0}=(0,r.ku)(T,u)||{};if($==null)return{};const q=(0,r.yd)(ee),oe={x:b,y:E},X=(0,r.Wh)(A),pe=(0,r.I4)(X),Ie=await H.getDimensions($),se=X==="y",be=se?"top":"left",fe=se?"bottom":"right",ue=se?"clientHeight":"clientWidth",we=R.reference[pe]+R.reference[X]-oe[X]-R.floating[pe],Me=oe[X]-R.reference[X],Ce=await(H.getOffsetParent==null?void 0:H.getOffsetParent($));let Ne=Ce?Ce[ue]:0;(!Ne||!await(H.isElement==null?void 0:H.isElement(Ce)))&&(Ne=z.floating[ue]||R.floating[pe]);const Ye=we/2-Me/2,mt=Ne/2-Ie[pe]/2-1,Ct=(0,r.VV)(q[be],mt),ln=(0,r.VV)(q[fe],mt),$e=Ct,Qe=Ne-Ie[pe]-ln,bt=Ne/2-Ie[pe]/2+Ye,It=(0,r.uZ)($e,bt,Qe),mn=!V.arrow&&(0,r.hp)(A)!=null&&bt!=It&&R.reference[pe]/2-(bt<$e?Ct:ln)-Ie[pe]/2<0,un=mn?bt<$e?bt-$e:bt-Qe:0;return{[X]:oe[X]+un,data:{[X]:It,centerOffset:bt-It-un,...mn&&{alignmentOffset:un}},reset:mn}}});function h(T,u,b){return(T?[...b.filter(A=>getAlignment(A)===T),...b.filter(A=>getAlignment(A)!==T)]:b.filter(A=>getSide(A)===A)).filter(A=>T?getAlignment(A)===T||(u?getOppositeAlignmentPlacement(A)!==A:!1):!0)}const p=function(T){return T===void 0&&(T={}),{name:"autoPlacement",options:T,async fn(u){var b,E,A;const{rects:R,middlewareData:H,placement:z,platform:V,elements:$}=u,{crossAxis:ee=!1,alignment:q,allowedPlacements:oe=placements,autoAlignment:X=!0,...pe}=evaluate(T,u),Ie=q!==void 0||oe===placements?h(q||null,X,oe):oe,se=await a(u,pe),be=((b=H.autoPlacement)==null?void 0:b.index)||0,fe=Ie[be];if(fe==null)return{};const ue=getAlignmentSides(fe,R,await(V.isRTL==null?void 0:V.isRTL($.floating)));if(z!==fe)return{reset:{placement:Ie[0]}};const we=[se[getSide(fe)],se[ue[0]],se[ue[1]]],Me=[...((E=H.autoPlacement)==null?void 0:E.overflows)||[],{placement:fe,overflows:we}],Ce=Ie[be+1];if(Ce)return{data:{index:be+1,overflows:Me},reset:{placement:Ce}};const Ne=Me.map(Ct=>{const ln=getAlignment(Ct.placement);return[Ct.placement,ln&&ee?Ct.overflows.slice(0,2).reduce(($e,Qe)=>$e+Qe,0):Ct.overflows[0],Ct.overflows]}).sort((Ct,ln)=>Ct[1]-ln[1]),mt=((A=Ne.filter(Ct=>Ct[2].slice(0,getAlignment(Ct[0])?2:3).every(ln=>ln<=0))[0])==null?void 0:A[0])||Ne[0][0];return mt!==z?{data:{index:be+1,overflows:Me},reset:{placement:mt}}:{}}}},d=function(T){return T===void 0&&(T={}),{name:"flip",options:T,async fn(u){var b,E;const{placement:A,middlewareData:R,rects:H,initialPlacement:z,platform:V,elements:$}=u,{mainAxis:ee=!0,crossAxis:q=!0,fallbackPlacements:oe,fallbackStrategy:X="bestFit",fallbackAxisSideDirection:pe="none",flipAlignment:Ie=!0,...se}=(0,r.ku)(T,u);if((b=R.arrow)!=null&&b.alignmentOffset)return{};const be=(0,r.k3)(A),fe=(0,r.k3)(z)===z,ue=await(V.isRTL==null?void 0:V.isRTL($.floating)),we=oe||(fe||!Ie?[(0,r.pw)(z)]:(0,r.gy)(z));!oe&&pe!=="none"&&we.push(...(0,r.KX)(z,Ie,pe,ue));const Me=[z,...we],Ce=await a(u,se),Ne=[];let Ye=((E=R.flip)==null?void 0:E.overflows)||[];if(ee&&Ne.push(Ce[be]),q){const $e=(0,r.i8)(A,H,ue);Ne.push(Ce[$e[0]],Ce[$e[1]])}if(Ye=[...Ye,{placement:A,overflows:Ne}],!Ne.every($e=>$e<=0)){var mt,Ct;const $e=(((mt=R.flip)==null?void 0:mt.index)||0)+1,Qe=Me[$e];if(Qe)return{data:{index:$e,overflows:Ye},reset:{placement:Qe}};let bt=(Ct=Ye.filter(It=>It.overflows[0]<=0).sort((It,mn)=>It.overflows[1]-mn.overflows[1])[0])==null?void 0:Ct.placement;if(!bt)switch(X){case"bestFit":{var ln;const It=(ln=Ye.map(mn=>[mn.placement,mn.overflows.filter(un=>un>0).reduce((un,Be)=>un+Be,0)]).sort((mn,un)=>mn[1]-un[1])[0])==null?void 0:ln[0];It&&(bt=It);break}case"initialPlacement":bt=z;break}if(A!==bt)return{reset:{placement:bt}}}return{}}}};function k(T,u){return{top:T.top-u.height,right:T.right-u.width,bottom:T.bottom-u.height,left:T.left-u.width}}function M(T){return r.mA.some(u=>T[u]>=0)}const C=function(T){return T===void 0&&(T={}),{name:"hide",options:T,async fn(u){const{rects:b}=u,{strategy:E="referenceHidden",...A}=(0,r.ku)(T,u);switch(E){case"referenceHidden":{const R=await a(u,{...A,elementContext:"reference"}),H=k(R,b.reference);return{data:{referenceHiddenOffsets:H,referenceHidden:M(H)}}}case"escaped":{const R=await a(u,{...A,altBoundary:!0}),H=k(R,b.floating);return{data:{escapedOffsets:H,escaped:M(H)}}}default:return{}}}}};function w(T){const u=min(...T.map(R=>R.left)),b=min(...T.map(R=>R.top)),E=max(...T.map(R=>R.right)),A=max(...T.map(R=>R.bottom));return{x:u,y:b,width:E-u,height:A-b}}function I(T){const u=T.slice().sort((A,R)=>A.y-R.y),b=[];let E=null;for(let A=0;A<u.length;A++){const R=u[A];!E||R.y-E.y>E.height/2?b.push([R]):b[b.length-1].push(R),E=R}return b.map(A=>rectToClientRect(w(A)))}const F=function(T){return T===void 0&&(T={}),{name:"inline",options:T,async fn(u){const{placement:b,elements:E,rects:A,platform:R,strategy:H}=u,{padding:z=2,x:V,y:$}=evaluate(T,u),ee=Array.from(await(R.getClientRects==null?void 0:R.getClientRects(E.reference))||[]),q=I(ee),oe=rectToClientRect(w(ee)),X=getPaddingObject(z);function pe(){if(q.length===2&&q[0].left>q[1].right&&V!=null&&$!=null)return q.find(se=>V>se.left-X.left&&V<se.right+X.right&&$>se.top-X.top&&$<se.bottom+X.bottom)||oe;if(q.length>=2){if(getSideAxis(b)==="y"){const Ct=q[0],ln=q[q.length-1],$e=getSide(b)==="top",Qe=Ct.top,bt=ln.bottom,It=$e?Ct.left:ln.left,mn=$e?Ct.right:ln.right,un=mn-It,Be=bt-Qe;return{top:Qe,bottom:bt,left:It,right:mn,width:un,height:Be,x:It,y:Qe}}const se=getSide(b)==="left",be=max(...q.map(Ct=>Ct.right)),fe=min(...q.map(Ct=>Ct.left)),ue=q.filter(Ct=>se?Ct.left===fe:Ct.right===be),we=ue[0].top,Me=ue[ue.length-1].bottom,Ce=fe,Ne=be,Ye=Ne-Ce,mt=Me-we;return{top:we,bottom:Me,left:Ce,right:Ne,width:Ye,height:mt,x:Ce,y:we}}return oe}const Ie=await R.getElementRects({reference:{getBoundingClientRect:pe},floating:E.floating,strategy:H});return A.reference.x!==Ie.reference.x||A.reference.y!==Ie.reference.y||A.reference.width!==Ie.reference.width||A.reference.height!==Ie.reference.height?{reset:{rects:Ie}}:{}}}};async function U(T,u){const{placement:b,platform:E,elements:A}=T,R=await(E.isRTL==null?void 0:E.isRTL(A.floating)),H=(0,r.k3)(b),z=(0,r.hp)(b),V=(0,r.Qq)(b)==="y",$=["left","top"].includes(H)?-1:1,ee=R&&V?-1:1,q=(0,r.ku)(u,T);let{mainAxis:oe,crossAxis:X,alignmentAxis:pe}=typeof q=="number"?{mainAxis:q,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...q};return z&&typeof pe=="number"&&(X=z==="end"?pe*-1:pe),V?{x:X*ee,y:oe*$}:{x:oe*$,y:X*ee}}const B=function(T){return T===void 0&&(T=0),{name:"offset",options:T,async fn(u){const{x:b,y:E}=u,A=await U(u,T);return{x:b+A.x,y:E+A.y,data:A}}}},N=function(T){return T===void 0&&(T={}),{name:"shift",options:T,async fn(u){const{x:b,y:E,placement:A}=u,{mainAxis:R=!0,crossAxis:H=!1,limiter:z={fn:se=>{let{x:be,y:fe}=se;return{x:be,y:fe}}},...V}=(0,r.ku)(T,u),$={x:b,y:E},ee=await a(u,V),q=(0,r.Qq)((0,r.k3)(A)),oe=(0,r.Rn)(q);let X=$[oe],pe=$[q];if(R){const se=oe==="y"?"top":"left",be=oe==="y"?"bottom":"right",fe=X+ee[se],ue=X-ee[be];X=(0,r.uZ)(fe,X,ue)}if(H){const se=q==="y"?"top":"left",be=q==="y"?"bottom":"right",fe=pe+ee[se],ue=pe-ee[be];pe=(0,r.uZ)(fe,pe,ue)}const Ie=z.fn({...u,[oe]:X,[q]:pe});return{...Ie,data:{x:Ie.x-b,y:Ie.y-E}}}}},D=function(T){return T===void 0&&(T={}),{options:T,fn(u){const{x:b,y:E,placement:A,rects:R,middlewareData:H}=u,{offset:z=0,mainAxis:V=!0,crossAxis:$=!0}=(0,r.ku)(T,u),ee={x:b,y:E},q=(0,r.Qq)(A),oe=(0,r.Rn)(q);let X=ee[oe],pe=ee[q];const Ie=(0,r.ku)(z,u),se=typeof Ie=="number"?{mainAxis:Ie,crossAxis:0}:{mainAxis:0,crossAxis:0,...Ie};if(V){const ue=oe==="y"?"height":"width",we=R.reference[oe]-R.floating[ue]+se.mainAxis,Me=R.reference[oe]+R.reference[ue]-se.mainAxis;X<we?X=we:X>Me&&(X=Me)}if($){var be,fe;const ue=oe==="y"?"width":"height",we=["top","left"].includes((0,r.k3)(A)),Me=R.reference[q]-R.floating[ue]+(we&&((be=H.offset)==null?void 0:be[q])||0)+(we?0:se.crossAxis),Ce=R.reference[q]+R.reference[ue]+(we?0:((fe=H.offset)==null?void 0:fe[q])||0)-(we?se.crossAxis:0);pe<Me?pe=Me:pe>Ce&&(pe=Ce)}return{[oe]:X,[q]:pe}}}},x=function(T){return T===void 0&&(T={}),{name:"size",options:T,async fn(u){const{placement:b,rects:E,platform:A,elements:R}=u,{apply:H=()=>{},...z}=(0,r.ku)(T,u),V=await a(u,z),$=(0,r.k3)(b),ee=(0,r.hp)(b),q=(0,r.Qq)(b)==="y",{width:oe,height:X}=E.floating;let pe,Ie;$==="top"||$==="bottom"?(pe=$,Ie=ee===(await(A.isRTL==null?void 0:A.isRTL(R.floating))?"start":"end")?"left":"right"):(Ie=$,pe=ee==="end"?"top":"bottom");const se=X-V[pe],be=oe-V[Ie],fe=!u.middlewareData.shift;let ue=se,we=be;if(q){const Ce=oe-V.left-V.right;we=ee||fe?(0,r.VV)(be,Ce):Ce}else{const Ce=X-V.top-V.bottom;ue=ee||fe?(0,r.VV)(se,Ce):Ce}if(fe&&!ee){const Ce=(0,r.Fp)(V.left,0),Ne=(0,r.Fp)(V.right,0),Ye=(0,r.Fp)(V.top,0),mt=(0,r.Fp)(V.bottom,0);q?we=oe-2*(Ce!==0||Ne!==0?Ce+Ne:(0,r.Fp)(V.left,V.right)):ue=X-2*(Ye!==0||mt!==0?Ye+mt:(0,r.Fp)(V.top,V.bottom))}await H({...u,availableWidth:we,availableHeight:ue});const Me=await A.getDimensions(R.floating);return oe!==Me.width||X!==Me.height?{reset:{rects:!0}}:{}}}}},76200:(Z,v,t)=>{"use strict";t.d(v,{Me:()=>Ct,oo:()=>ln});var r=t(71347),n=t(85983);function s($e){return h($e)?($e.nodeName||"").toLowerCase():"#document"}function a($e){var Qe;return($e==null||(Qe=$e.ownerDocument)==null?void 0:Qe.defaultView)||window}function c($e){var Qe;return(Qe=(h($e)?$e.ownerDocument:$e.document)||window.document)==null?void 0:Qe.documentElement}function h($e){return $e instanceof Node||$e instanceof a($e).Node}function p($e){return $e instanceof Element||$e instanceof a($e).Element}function d($e){return $e instanceof HTMLElement||$e instanceof a($e).HTMLElement}function k($e){return typeof ShadowRoot>"u"?!1:$e instanceof ShadowRoot||$e instanceof a($e).ShadowRoot}function M($e){const{overflow:Qe,overflowX:bt,overflowY:It,display:mn}=B($e);return/auto|scroll|overlay|hidden|clip/.test(Qe+It+bt)&&!["inline","contents"].includes(mn)}function C($e){return["table","td","th"].includes(s($e))}function w($e){const Qe=F(),bt=B($e);return bt.transform!=="none"||bt.perspective!=="none"||(bt.containerType?bt.containerType!=="normal":!1)||!Qe&&(bt.backdropFilter?bt.backdropFilter!=="none":!1)||!Qe&&(bt.filter?bt.filter!=="none":!1)||["transform","perspective","filter"].some(It=>(bt.willChange||"").includes(It))||["paint","layout","strict","content"].some(It=>(bt.contain||"").includes(It))}function I($e){let Qe=D($e);for(;d(Qe)&&!U(Qe);){if(w(Qe))return Qe;Qe=D(Qe)}return null}function F(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function U($e){return["html","body","#document"].includes(s($e))}function B($e){return a($e).getComputedStyle($e)}function N($e){return p($e)?{scrollLeft:$e.scrollLeft,scrollTop:$e.scrollTop}:{scrollLeft:$e.pageXOffset,scrollTop:$e.pageYOffset}}function D($e){if(s($e)==="html")return $e;const Qe=$e.assignedSlot||$e.parentNode||k($e)&&$e.host||c($e);return k(Qe)?Qe.host:Qe}function x($e){const Qe=D($e);return U(Qe)?$e.ownerDocument?$e.ownerDocument.body:$e.body:d(Qe)&&M(Qe)?Qe:x(Qe)}function T($e,Qe,bt){var It;Qe===void 0&&(Qe=[]),bt===void 0&&(bt=!0);const mn=x($e),un=mn===((It=$e.ownerDocument)==null?void 0:It.body),Be=a(mn);return un?Qe.concat(Be,Be.visualViewport||[],M(mn)?mn:[],Be.frameElement&&bt?T(Be.frameElement):[]):Qe.concat(mn,T(mn,[],bt))}function u($e){const Qe=B($e);let bt=parseFloat(Qe.width)||0,It=parseFloat(Qe.height)||0;const mn=d($e),un=mn?$e.offsetWidth:bt,Be=mn?$e.offsetHeight:It,je=(0,r.NM)(bt)!==un||(0,r.NM)(It)!==Be;return je&&(bt=un,It=Be),{width:bt,height:It,$:je}}function b($e){return p($e)?$e:$e.contextElement}function E($e){const Qe=b($e);if(!d(Qe))return(0,r.ze)(1);const bt=Qe.getBoundingClientRect(),{width:It,height:mn,$:un}=u(Qe);let Be=(un?(0,r.NM)(bt.width):bt.width)/It,je=(un?(0,r.NM)(bt.height):bt.height)/mn;return(!Be||!Number.isFinite(Be))&&(Be=1),(!je||!Number.isFinite(je))&&(je=1),{x:Be,y:je}}const A=(0,r.ze)(0);function R($e){const Qe=a($e);return!F()||!Qe.visualViewport?A:{x:Qe.visualViewport.offsetLeft,y:Qe.visualViewport.offsetTop}}function H($e,Qe,bt){return Qe===void 0&&(Qe=!1),!bt||Qe&&bt!==a($e)?!1:Qe}function z($e,Qe,bt,It){Qe===void 0&&(Qe=!1),bt===void 0&&(bt=!1);const mn=$e.getBoundingClientRect(),un=b($e);let Be=(0,r.ze)(1);Qe&&(It?p(It)&&(Be=E(It)):Be=E($e));const je=H(un,bt,It)?R(un):(0,r.ze)(0);let $t=(mn.left+je.x)/Be.x,et=(mn.top+je.y)/Be.y,Kt=mn.width/Be.x,kn=mn.height/Be.y;if(un){const Tn=a(un),ht=It&&p(It)?a(It):It;let ot=Tn.frameElement;for(;ot&&It&&ht!==Tn;){const Je=E(ot),wt=ot.getBoundingClientRect(),ft=B(ot),vn=wt.left+(ot.clientLeft+parseFloat(ft.paddingLeft))*Je.x,ut=wt.top+(ot.clientTop+parseFloat(ft.paddingTop))*Je.y;$t*=Je.x,et*=Je.y,Kt*=Je.x,kn*=Je.y,$t+=vn,et+=ut,ot=a(ot).frameElement}}return(0,r.JB)({width:Kt,height:kn,x:$t,y:et})}function V($e){let{rect:Qe,offsetParent:bt,strategy:It}=$e;const mn=d(bt),un=c(bt);if(bt===un)return Qe;let Be={scrollLeft:0,scrollTop:0},je=(0,r.ze)(1);const $t=(0,r.ze)(0);if((mn||!mn&&It!=="fixed")&&((s(bt)!=="body"||M(un))&&(Be=N(bt)),d(bt))){const et=z(bt);je=E(bt),$t.x=et.x+bt.clientLeft,$t.y=et.y+bt.clientTop}return{width:Qe.width*je.x,height:Qe.height*je.y,x:Qe.x*je.x-Be.scrollLeft*je.x+$t.x,y:Qe.y*je.y-Be.scrollTop*je.y+$t.y}}function $($e){return Array.from($e.getClientRects())}function ee($e){return z(c($e)).left+N($e).scrollLeft}function q($e){const Qe=c($e),bt=N($e),It=$e.ownerDocument.body,mn=(0,r.Fp)(Qe.scrollWidth,Qe.clientWidth,It.scrollWidth,It.clientWidth),un=(0,r.Fp)(Qe.scrollHeight,Qe.clientHeight,It.scrollHeight,It.clientHeight);let Be=-bt.scrollLeft+ee($e);const je=-bt.scrollTop;return B(It).direction==="rtl"&&(Be+=(0,r.Fp)(Qe.clientWidth,It.clientWidth)-mn),{width:mn,height:un,x:Be,y:je}}function oe($e,Qe){const bt=a($e),It=c($e),mn=bt.visualViewport;let un=It.clientWidth,Be=It.clientHeight,je=0,$t=0;if(mn){un=mn.width,Be=mn.height;const et=F();(!et||et&&Qe==="fixed")&&(je=mn.offsetLeft,$t=mn.offsetTop)}return{width:un,height:Be,x:je,y:$t}}function X($e,Qe){const bt=z($e,!0,Qe==="fixed"),It=bt.top+$e.clientTop,mn=bt.left+$e.clientLeft,un=d($e)?E($e):(0,r.ze)(1),Be=$e.clientWidth*un.x,je=$e.clientHeight*un.y,$t=mn*un.x,et=It*un.y;return{width:Be,height:je,x:$t,y:et}}function pe($e,Qe,bt){let It;if(Qe==="viewport")It=oe($e,bt);else if(Qe==="document")It=q(c($e));else if(p(Qe))It=X(Qe,bt);else{const mn=R($e);It={...Qe,x:Qe.x-mn.x,y:Qe.y-mn.y}}return(0,r.JB)(It)}function Ie($e,Qe){const bt=D($e);return bt===Qe||!p(bt)||U(bt)?!1:B(bt).position==="fixed"||Ie(bt,Qe)}function se($e,Qe){const bt=Qe.get($e);if(bt)return bt;let It=T($e,[],!1).filter(je=>p(je)&&s(je)!=="body"),mn=null;const un=B($e).position==="fixed";let Be=un?D($e):$e;for(;p(Be)&&!U(Be);){const je=B(Be),$t=w(Be);!$t&&je.position==="fixed"&&(mn=null),(un?!$t&&!mn:!$t&&je.position==="static"&&!!mn&&["absolute","fixed"].includes(mn.position)||M(Be)&&!$t&&Ie($e,Be))?It=It.filter(Kt=>Kt!==Be):mn=je,Be=D(Be)}return Qe.set($e,It),It}function be($e){let{element:Qe,boundary:bt,rootBoundary:It,strategy:mn}=$e;const Be=[...bt==="clippingAncestors"?se(Qe,this._c):[].concat(bt),It],je=Be[0],$t=Be.reduce((et,Kt)=>{const kn=pe(Qe,Kt,mn);return et.top=(0,r.Fp)(kn.top,et.top),et.right=(0,r.VV)(kn.right,et.right),et.bottom=(0,r.VV)(kn.bottom,et.bottom),et.left=(0,r.Fp)(kn.left,et.left),et},pe(Qe,je,mn));return{width:$t.right-$t.left,height:$t.bottom-$t.top,x:$t.left,y:$t.top}}function fe($e){return u($e)}function ue($e,Qe,bt){const It=d(Qe),mn=c(Qe),un=bt==="fixed",Be=z($e,!0,un,Qe);let je={scrollLeft:0,scrollTop:0};const $t=(0,r.ze)(0);if(It||!It&&!un)if((s(Qe)!=="body"||M(mn))&&(je=N(Qe)),It){const et=z(Qe,!0,un,Qe);$t.x=et.x+Qe.clientLeft,$t.y=et.y+Qe.clientTop}else mn&&($t.x=ee(mn));return{x:Be.left+je.scrollLeft-$t.x,y:Be.top+je.scrollTop-$t.y,width:Be.width,height:Be.height}}function we($e,Qe){return!d($e)||B($e).position==="fixed"?null:Qe?Qe($e):$e.offsetParent}function Me($e,Qe){const bt=a($e);if(!d($e))return bt;let It=we($e,Qe);for(;It&&C(It)&&B(It).position==="static";)It=we(It,Qe);return It&&(s(It)==="html"||s(It)==="body"&&B(It).position==="static"&&!w(It))?bt:It||I($e)||bt}const Ce=async function($e){let{reference:Qe,floating:bt,strategy:It}=$e;const mn=this.getOffsetParent||Me,un=this.getDimensions;return{reference:ue(Qe,await mn(bt),It),floating:{x:0,y:0,...await un(bt)}}};function Ne($e){return B($e).direction==="rtl"}const Ye={convertOffsetParentRelativeRectToViewportRelativeRect:V,getDocumentElement:c,getClippingRect:be,getOffsetParent:Me,getElementRects:Ce,getClientRects:$,getDimensions:fe,getScale:E,isElement:p,isRTL:Ne};function mt($e,Qe){let bt=null,It;const mn=c($e);function un(){clearTimeout(It),bt&&bt.disconnect(),bt=null}function Be(je,$t){je===void 0&&(je=!1),$t===void 0&&($t=1),un();const{left:et,top:Kt,width:kn,height:Tn}=$e.getBoundingClientRect();if(je||Qe(),!kn||!Tn)return;const ht=(0,r.GW)(Kt),ot=(0,r.GW)(mn.clientWidth-(et+kn)),Je=(0,r.GW)(mn.clientHeight-(Kt+Tn)),wt=(0,r.GW)(et),vn={rootMargin:-ht+"px "+-ot+"px "+-Je+"px "+-wt+"px",threshold:(0,r.Fp)(0,(0,r.VV)(1,$t))||1};let ut=!0;function Wt(ae){const ne=ae[0].intersectionRatio;if(ne!==$t){if(!ut)return Be();ne?Be(!1,ne):It=setTimeout(()=>{Be(!1,1e-7)},100)}ut=!1}try{bt=new IntersectionObserver(Wt,{...vn,root:mn.ownerDocument})}catch{bt=new IntersectionObserver(Wt,vn)}bt.observe($e)}return Be(!0),un}function Ct($e,Qe,bt,It){It===void 0&&(It={});const{ancestorScroll:mn=!0,ancestorResize:un=!0,elementResize:Be=typeof ResizeObserver=="function",layoutShift:je=typeof IntersectionObserver=="function",animationFrame:$t=!1}=It,et=b($e),Kt=mn||un?[...et?T(et):[],...T(Qe)]:[];Kt.forEach(ft=>{mn&&ft.addEventListener("scroll",bt,{passive:!0}),un&&ft.addEventListener("resize",bt)});const kn=et&&je?mt(et,bt):null;let Tn=-1,ht=null;Be&&(ht=new ResizeObserver(ft=>{let[vn]=ft;vn&&vn.target===et&&ht&&(ht.unobserve(Qe),cancelAnimationFrame(Tn),Tn=requestAnimationFrame(()=>{ht&&ht.observe(Qe)})),bt()}),et&&!$t&&ht.observe(et),ht.observe(Qe));let ot,Je=$t?z($e):null;$t&&wt();function wt(){const ft=z($e);Je&&(ft.x!==Je.x||ft.y!==Je.y||ft.width!==Je.width||ft.height!==Je.height)&&bt(),Je=ft,ot=requestAnimationFrame(wt)}return bt(),()=>{Kt.forEach(ft=>{mn&&ft.removeEventListener("scroll",bt),un&&ft.removeEventListener("resize",bt)}),kn&&kn(),ht&&ht.disconnect(),ht=null,$t&&cancelAnimationFrame(ot)}}const ln=($e,Qe,bt)=>{const It=new Map,mn={platform:Ye,...bt},un={...mn.platform,_c:It};return(0,n.oo)($e,Qe,{...mn,platform:un})}},1371:(Z,v,t)=>{"use strict";t.d(v,{YF:()=>C,x7:()=>c});var r=t(85983),n=t(76200),s=t(67294),a=t(73935);const c=w=>{function I(F){return{}.hasOwnProperty.call(F,"current")}return{name:"arrow",options:w,fn(F){const{element:U,padding:B}=typeof w=="function"?w(F):w;return U&&I(U)?U.current!=null?(0,r.x7)({element:U.current,padding:B}).fn(F):{}:U?(0,r.x7)({element:U,padding:B}).fn(F):{}}}};var h=typeof document<"u"?s.useLayoutEffect:s.useEffect;function p(w,I){if(w===I)return!0;if(typeof w!=typeof I)return!1;if(typeof w=="function"&&w.toString()===I.toString())return!0;let F,U,B;if(w&&I&&typeof w=="object"){if(Array.isArray(w)){if(F=w.length,F!=I.length)return!1;for(U=F;U--!==0;)if(!p(w[U],I[U]))return!1;return!0}if(B=Object.keys(w),F=B.length,F!==Object.keys(I).length)return!1;for(U=F;U--!==0;)if(!{}.hasOwnProperty.call(I,B[U]))return!1;for(U=F;U--!==0;){const N=B[U];if(!(N==="_owner"&&w.$$typeof)&&!p(w[N],I[N]))return!1}return!0}return w!==w&&I!==I}function d(w){return typeof window>"u"?1:(w.ownerDocument.defaultView||window).devicePixelRatio||1}function k(w,I){const F=d(w);return Math.round(I*F)/F}function M(w){const I=s.useRef(w);return h(()=>{I.current=w}),I}function C(w){w===void 0&&(w={});const{placement:I="bottom",strategy:F="absolute",middleware:U=[],platform:B,elements:{reference:N,floating:D}={},transform:x=!0,whileElementsMounted:T,open:u}=w,[b,E]=s.useState({x:0,y:0,strategy:F,placement:I,middlewareData:{},isPositioned:!1}),[A,R]=s.useState(U);p(A,U)||R(U);const[H,z]=s.useState(null),[V,$]=s.useState(null),ee=s.useCallback(Ye=>{Ye!=pe.current&&(pe.current=Ye,z(Ye))},[z]),q=s.useCallback(Ye=>{Ye!==Ie.current&&(Ie.current=Ye,$(Ye))},[$]),oe=N||H,X=D||V,pe=s.useRef(null),Ie=s.useRef(null),se=s.useRef(b),be=M(T),fe=M(B),ue=s.useCallback(()=>{if(!pe.current||!Ie.current)return;const Ye={placement:I,strategy:F,middleware:A};fe.current&&(Ye.platform=fe.current),(0,n.oo)(pe.current,Ie.current,Ye).then(mt=>{const Ct={...mt,isPositioned:!0};we.current&&!p(se.current,Ct)&&(se.current=Ct,a.flushSync(()=>{E(Ct)}))})},[A,I,F,fe]);h(()=>{u===!1&&se.current.isPositioned&&(se.current.isPositioned=!1,E(Ye=>({...Ye,isPositioned:!1})))},[u]);const we=s.useRef(!1);h(()=>(we.current=!0,()=>{we.current=!1}),[]),h(()=>{if(oe&&(pe.current=oe),X&&(Ie.current=X),oe&&X){if(be.current)return be.current(oe,X,ue);ue()}},[oe,X,ue,be]);const Me=s.useMemo(()=>({reference:pe,floating:Ie,setReference:ee,setFloating:q}),[ee,q]),Ce=s.useMemo(()=>({reference:oe,floating:X}),[oe,X]),Ne=s.useMemo(()=>{const Ye={position:F,left:0,top:0};if(!Ce.floating)return Ye;const mt=k(Ce.floating,b.x),Ct=k(Ce.floating,b.y);return x?{...Ye,transform:"translate("+mt+"px, "+Ct+"px)",...d(Ce.floating)>=1.5&&{willChange:"transform"}}:{position:F,left:mt,top:Ct}},[F,x,Ce.floating,b.x,b.y]);return s.useMemo(()=>({...b,update:ue,refs:Me,elements:Ce,floatingStyles:Ne}),[b,ue,Me,Ce,Ne])}},71347:(Z,v,t)=>{"use strict";t.d(v,{Fp:()=>c,GW:()=>p,I4:()=>B,JB:()=>z,KX:()=>E,NM:()=>h,Qq:()=>N,Rn:()=>U,VV:()=>a,Wh:()=>D,gy:()=>T,hp:()=>F,i8:()=>x,k3:()=>I,ku:()=>w,mA:()=>r,pw:()=>A,uZ:()=>C,yd:()=>H,ze:()=>d});const r=["top","right","bottom","left"],n=null,s=null,a=Math.min,c=Math.max,h=Math.round,p=Math.floor,d=V=>({x:V,y:V}),k={left:"right",right:"left",bottom:"top",top:"bottom"},M={start:"end",end:"start"};function C(V,$,ee){return c(V,a($,ee))}function w(V,$){return typeof V=="function"?V($):V}function I(V){return V.split("-")[0]}function F(V){return V.split("-")[1]}function U(V){return V==="x"?"y":"x"}function B(V){return V==="y"?"height":"width"}function N(V){return["top","bottom"].includes(I(V))?"y":"x"}function D(V){return U(N(V))}function x(V,$,ee){ee===void 0&&(ee=!1);const q=F(V),oe=D(V),X=B(oe);let pe=oe==="x"?q===(ee?"end":"start")?"right":"left":q==="start"?"bottom":"top";return $.reference[X]>$.floating[X]&&(pe=A(pe)),[pe,A(pe)]}function T(V){const $=A(V);return[u(V),$,u($)]}function u(V){return V.replace(/start|end/g,$=>M[$])}function b(V,$,ee){const q=["left","right"],oe=["right","left"],X=["top","bottom"],pe=["bottom","top"];switch(V){case"top":case"bottom":return ee?$?oe:q:$?q:oe;case"left":case"right":return $?X:pe;default:return[]}}function E(V,$,ee,q){const oe=F(V);let X=b(I(V),ee==="start",q);return oe&&(X=X.map(pe=>pe+"-"+oe),$&&(X=X.concat(X.map(u)))),X}function A(V){return V.replace(/left|right|bottom|top/g,$=>k[$])}function R(V){return{top:0,right:0,bottom:0,left:0,...V}}function H(V){return typeof V!="number"?R(V):{top:V,right:V,bottom:V,left:V}}function z(V){return{...V,top:V.y,left:V.x,right:V.x+V.width,bottom:V.y+V.height}}},97575:(Z,v,t)=>{"use strict";t.d(v,{CN:()=>xr,Vf:()=>q,ji:()=>u,iT:()=>$,KC:()=>F,l7:()=>Ne,Mb:()=>Ce,u4:()=>at,Aj:()=>it,Nm:()=>ee,zJ:()=>se,WG:()=>ht,IO:()=>wt,Lg:()=>E});function r(dt,Fe){if(Fe.has(dt))throw new TypeError("Cannot initialize the same private elements twice on an object")}function n(dt,Fe,an){r(dt,Fe),Fe.set(dt,an)}function s(dt,Fe){return dt-Fe*Math.floor(dt/Fe)}function a(dt){return dt.era?new On(dt.calendar,dt.era,dt.year,dt.month,dt.day):new On(dt.calendar,dt.year,dt.month,dt.day)}function c(dt){return dt.era?new Pn(dt.calendar,dt.era,dt.year,dt.month,dt.day,dt.hour,dt.minute,dt.second,dt.millisecond):new Pn(dt.calendar,dt.year,dt.month,dt.day,dt.hour,dt.minute,dt.second)}const h=1721426;function p(dt,Fe,an,qn){Fe=k(dt,Fe);let Fr=Fe-1,ui=-2;return an<=2?ui=0:d(Fe)&&(ui=-1),h-1+365*Fr+Math.floor(Fr/4)-Math.floor(Fr/100)+Math.floor(Fr/400)+Math.floor((367*an-362)/12+ui+qn)}function d(dt){return dt%4===0&&(dt%100!==0||dt%400===0)}function k(dt,Fe){return dt==="BC"?1-Fe:Fe}function M(dt){let Fe="AD";return dt<=0&&(Fe="BC",dt=1-dt),[Fe,dt]}const C={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class w{fromJulianDay(Fe){let an=Fe,qn=an-h,Fr=Math.floor(qn/146097),ui=s(qn,146097),Hi=Math.floor(ui/36524),lo=s(ui,36524),mo=Math.floor(lo/1461),ts=s(lo,1461),co=Math.floor(ts/365),Oo=Fr*400+Hi*100+mo*4+co+(Hi!==4&&co!==4?1:0),[Po,Yo]=M(Oo),ns=an-p(Po,Yo,1,1),Os=2;an<p(Po,Yo,3,1)?Os=0:d(Yo)&&(Os=1);let Lo=Math.floor(((ns+Os)*12+373)/367),da=an-p(Po,Yo,Lo,1)+1;return new On(Po,Yo,Lo,da)}toJulianDay(Fe){return p(Fe.era,Fe.year,Fe.month,Fe.day)}getDaysInMonth(Fe){return C[d(Fe.year)?"leapyear":"standard"][Fe.month-1]}getMonthsInYear(Fe){return 12}getDaysInYear(Fe){return d(Fe.year)?366:365}getYearsInEra(Fe){return 9999}getEras(){return["BC","AD"]}isInverseEra(Fe){return Fe.era==="BC"}balanceDate(Fe){Fe.year<=0&&(Fe.era=Fe.era==="BC"?"AD":"BC",Fe.year=1-Fe.year)}constructor(){this.identifier="gregory"}}const I={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function F(dt,Fe){return Fe=vn(Fe,dt.calendar),dt.era===Fe.era&&dt.year===Fe.year&&dt.month===Fe.month&&dt.day===Fe.day}function U(dt,Fe){return Fe=vn(Fe,dt.calendar),dt=ee(dt),Fe=ee(Fe),dt.era===Fe.era&&dt.year===Fe.year&&dt.month===Fe.month}function B(dt,Fe){return Fe=vn(Fe,dt.calendar),dt=oe(dt),Fe=oe(Fe),dt.era===Fe.era&&dt.year===Fe.year}function N(dt,Fe){return dt.calendar.identifier===Fe.calendar.identifier&&dt.era===Fe.era&&dt.year===Fe.year&&dt.month===Fe.month&&dt.day===Fe.day}function D(dt,Fe){return dt=ee(dt),Fe=ee(Fe),dt.calendar.identifier===Fe.calendar.identifier&&dt.era===Fe.era&&dt.year===Fe.year&&dt.month===Fe.month}function x(dt,Fe){return dt=oe(dt),Fe=oe(Fe),dt.calendar.identifier===Fe.calendar.identifier&&dt.era===Fe.era&&dt.year===Fe.year}function T(dt,Fe){return F(dt,E(Fe))}function u(dt,Fe){let an=dt.calendar.toJulianDay(dt),qn=Math.ceil(an+1-we(Fe))%7;return qn<0&&(qn+=7),qn}function b(dt){return Kt(Date.now(),dt)}function E(dt){return ht(b(dt))}function A(dt,Fe){return dt.calendar.toJulianDay(dt)-Fe.calendar.toJulianDay(Fe)}function R(dt,Fe){return H(dt)-H(Fe)}function H(dt){return dt.hour*36e5+dt.minute*6e4+dt.second*1e3+dt.millisecond}function z(dt,Fe){let an=$t(dt,Fe),qn=dt.add({days:1});return($t(qn,Fe)-an)/36e5}let V=null;function $(){return V==null&&(V=new Intl.DateTimeFormat().resolvedOptions().timeZone),V}function ee(dt){return dt.subtract({days:dt.day-1})}function q(dt){return dt.add({days:dt.calendar.getDaysInMonth(dt)-dt.day})}function oe(dt){return ee(dt.subtract({months:dt.month-1}))}function X(dt){return q(dt.add({months:dt.calendar.getMonthsInYear(dt)-dt.month}))}function pe(dt){return dt.calendar.getMinimumMonthInYear?dt.calendar.getMinimumMonthInYear(dt):1}function Ie(dt){return dt.calendar.getMinimumDayInMonth?dt.calendar.getMinimumDayInMonth(dt):1}function se(dt,Fe){let an=u(dt,Fe);return dt.subtract({days:an})}function be(dt,Fe){return se(dt,Fe).add({days:6})}const fe=new Map;function ue(dt){if(Intl.Locale){let an=fe.get(dt);return an||(an=new Intl.Locale(dt).maximize().region,fe.set(dt,an)),an}let Fe=dt.split("-")[1];return Fe==="u"?null:Fe}function we(dt){let Fe=ue(dt);return I[Fe]||0}function Me(dt,Fe){let an=dt.calendar.getDaysInMonth(dt);return Math.ceil((u(ee(dt),Fe)+an)/7)}function Ce(dt,Fe){return dt&&Fe?dt.compare(Fe)<=0?dt:Fe:dt||Fe}function Ne(dt,Fe){return dt&&Fe?dt.compare(Fe)>=0?dt:Fe:dt||Fe}const Ye={AF:[4,5],AE:[5,6],BH:[5,6],DZ:[5,6],EG:[5,6],IL:[5,6],IQ:[5,6],IR:[5,5],JO:[5,6],KW:[5,6],LY:[5,6],OM:[5,6],QA:[5,6],SA:[5,6],SD:[5,6],SY:[5,6],YE:[5,6]};function mt(dt,Fe){let an=dt.calendar.toJulianDay(dt),qn=Math.ceil(an+1)%7;qn<0&&(qn+=7);let Fr=ue(Fe),[ui,Hi]=Ye[Fr]||[6,0];return qn===ui||qn===Hi}function Ct(dt,Fe){return!mt(dt,Fe)}function ln(dt){dt=vn(dt,new w);let Fe=k(dt.era,dt.year);return $e(Fe,dt.month,dt.day,dt.hour,dt.minute,dt.second,dt.millisecond)}function $e(dt,Fe,an,qn,Fr,ui,Hi){let lo=new Date;return lo.setUTCHours(qn,Fr,ui,Hi),lo.setUTCFullYear(dt,Fe-1,an),lo.getTime()}function Qe(dt,Fe){if(Fe==="UTC")return 0;if(dt>0&&Fe===$())return new Date(dt).getTimezoneOffset()*-6e4;let{year:an,month:qn,day:Fr,hour:ui,minute:Hi,second:lo}=It(dt,Fe);return $e(an,qn,Fr,ui,Hi,lo,0)-Math.floor(dt/1e3)*1e3}const bt=new Map;function It(dt,Fe){let an=bt.get(Fe);an||(an=new Intl.DateTimeFormat("en-US",{timeZone:Fe,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),bt.set(Fe,an));let qn=an.formatToParts(new Date(dt)),Fr={};for(let ui of qn)ui.type!=="literal"&&(Fr[ui.type]=ui.value);return{year:Fr.era==="BC"||Fr.era==="B"?-Fr.year+1:+Fr.year,month:+Fr.month,day:+Fr.day,hour:Fr.hour==="24"?0:+Fr.hour,minute:+Fr.minute,second:+Fr.second}}const mn=864e5;function un(dt,Fe){let an=ln(dt),qn=an-Qe(an-mn,Fe),Fr=an-Qe(an+mn,Fe);return Be(dt,Fe,qn,Fr)}function Be(dt,Fe,an,qn){return(an===qn?[an]:[an,qn]).filter(ui=>je(dt,Fe,ui))}function je(dt,Fe,an){let qn=It(an,Fe);return dt.year===qn.year&&dt.month===qn.month&&dt.day===qn.day&&dt.hour===qn.hour&&dt.minute===qn.minute&&dt.second===qn.second}function $t(dt,Fe,an="compatible"){let qn=wt(dt);if(Fe==="UTC")return ln(qn);if(Fe===$()&&an==="compatible"){qn=vn(qn,new w);let mo=new Date,ts=k(qn.era,qn.year);return mo.setFullYear(ts,qn.month-1,qn.day),mo.setHours(qn.hour,qn.minute,qn.second,qn.millisecond),mo.getTime()}let Fr=ln(qn),ui=Qe(Fr-mn,Fe),Hi=Qe(Fr+mn,Fe),lo=Be(qn,Fe,Fr-ui,Fr-Hi);if(lo.length===1)return lo[0];if(lo.length>1)switch(an){case"compatible":case"earlier":return lo[0];case"later":return lo[lo.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(an){case"earlier":return Math.min(Fr-ui,Fr-Hi);case"compatible":case"later":return Math.max(Fr-ui,Fr-Hi);case"reject":throw new RangeError("No such absolute time found")}}function et(dt,Fe,an="compatible"){return new Date($t(dt,Fe,an))}function Kt(dt,Fe){let an=Qe(dt,Fe),qn=new Date(dt+an),Fr=qn.getUTCFullYear(),ui=qn.getUTCMonth()+1,Hi=qn.getUTCDate(),lo=qn.getUTCHours(),mo=qn.getUTCMinutes(),ts=qn.getUTCSeconds(),co=qn.getUTCMilliseconds();return new Rt(Fr,ui,Hi,Fe,an,lo,mo,ts,co)}function kn(dt,Fe){return Kt(dt.getTime(),Fe)}function Tn(dt){return kn(dt,$())}function ht(dt){return new On(dt.calendar,dt.era,dt.year,dt.month,dt.day)}function ot(dt){return{era:dt.era,year:dt.year,month:dt.month,day:dt.day}}function Je(dt){return{hour:dt.hour,minute:dt.minute,second:dt.second,millisecond:dt.millisecond}}function wt(dt,Fe){let an=0,qn=0,Fr=0,ui=0;if("timeZone"in dt)({hour:an,minute:qn,second:Fr,millisecond:ui}=dt);else if("hour"in dt&&!Fe)return dt;return Fe&&({hour:an,minute:qn,second:Fr,millisecond:ui}=Fe),new Pn(dt.calendar,dt.era,dt.year,dt.month,dt.day,an,qn,Fr,ui)}function ft(dt){return new Zt(dt.hour,dt.minute,dt.second,dt.millisecond)}function vn(dt,Fe){if(dt.calendar.identifier===Fe.identifier)return dt;let an=Fe.fromJulianDay(dt.calendar.toJulianDay(dt)),qn=dt.copy();return qn.calendar=Fe,qn.era=an.era,qn.year=an.year,qn.month=an.month,qn.day=an.day,zt(qn),qn}function ut(dt,Fe,an){if(dt instanceof Rt)return dt.timeZone===Fe?dt:ae(dt,Fe);let qn=$t(dt,Fe,an);return Kt(qn,Fe)}function Wt(dt){let Fe=ln(dt)-dt.offset;return new Date(Fe)}function ae(dt,Fe){let an=ln(dt)-dt.offset;return vn(Kt(an,Fe),dt.calendar)}function ne(dt){return ae(dt,$())}const ge=36e5;function ye(dt,Fe){let an=dt.copy(),qn="hour"in an?Cr(an,Fe):0;Xe(an,Fe.years||0),an.calendar.balanceYearMonth&&an.calendar.balanceYearMonth(an,dt),an.month+=Fe.months||0,Ze(an),_t(an),an.day+=(Fe.weeks||0)*7,an.day+=Fe.days||0,an.day+=qn,lt(an),an.calendar.balanceDate&&an.calendar.balanceDate(an),an.year<1&&(an.year=1,an.month=1,an.day=1);let Fr=an.calendar.getYearsInEra(an);if(an.year>Fr){var ui,Hi;let mo=(Hi=(ui=an.calendar).isInverseEra)===null||Hi===void 0?void 0:Hi.call(ui,an);an.year=Fr,an.month=mo?1:an.calendar.getMonthsInYear(an),an.day=mo?1:an.calendar.getDaysInMonth(an)}an.month<1&&(an.month=1,an.day=1);let lo=an.calendar.getMonthsInYear(an);return an.month>lo&&(an.month=lo,an.day=an.calendar.getDaysInMonth(an)),an.day=Math.max(1,Math.min(an.calendar.getDaysInMonth(an),an.day)),an}function Xe(dt,Fe){var an,qn;!((qn=(an=dt.calendar).isInverseEra)===null||qn===void 0)&&qn.call(an,dt)&&(Fe=-Fe),dt.year+=Fe}function Ze(dt){for(;dt.month<1;)Xe(dt,-1),dt.month+=dt.calendar.getMonthsInYear(dt);let Fe=0;for(;dt.month>(Fe=dt.calendar.getMonthsInYear(dt));)dt.month-=Fe,Xe(dt,1)}function lt(dt){for(;dt.day<1;)dt.month--,Ze(dt),dt.day+=dt.calendar.getDaysInMonth(dt);for(;dt.day>dt.calendar.getDaysInMonth(dt);)dt.day-=dt.calendar.getDaysInMonth(dt),dt.month++,Ze(dt)}function _t(dt){dt.month=Math.max(1,Math.min(dt.calendar.getMonthsInYear(dt),dt.month)),dt.day=Math.max(1,Math.min(dt.calendar.getDaysInMonth(dt),dt.day))}function zt(dt){dt.calendar.constrainDate&&dt.calendar.constrainDate(dt),dt.year=Math.max(1,Math.min(dt.calendar.getYearsInEra(dt),dt.year)),_t(dt)}function Vt(dt){let Fe={};for(let an in dt)typeof dt[an]=="number"&&(Fe[an]=-dt[an]);return Fe}function sn(dt,Fe){return ye(dt,Vt(Fe))}function yn(dt,Fe){let an=dt.copy();return Fe.era!=null&&(an.era=Fe.era),Fe.year!=null&&(an.year=Fe.year),Fe.month!=null&&(an.month=Fe.month),Fe.day!=null&&(an.day=Fe.day),zt(an),an}function dr(dt,Fe){let an=dt.copy();return Fe.hour!=null&&(an.hour=Fe.hour),Fe.minute!=null&&(an.minute=Fe.minute),Fe.second!=null&&(an.second=Fe.second),Fe.millisecond!=null&&(an.millisecond=Fe.millisecond),Mr(an),an}function hr(dt){dt.second+=Math.floor(dt.millisecond/1e3),dt.millisecond=rr(dt.millisecond,1e3),dt.minute+=Math.floor(dt.second/60),dt.second=rr(dt.second,60),dt.hour+=Math.floor(dt.minute/60),dt.minute=rr(dt.minute,60);let Fe=Math.floor(dt.hour/24);return dt.hour=rr(dt.hour,24),Fe}function Mr(dt){dt.millisecond=Math.max(0,Math.min(dt.millisecond,1e3)),dt.second=Math.max(0,Math.min(dt.second,59)),dt.minute=Math.max(0,Math.min(dt.minute,59)),dt.hour=Math.max(0,Math.min(dt.hour,23))}function rr(dt,Fe){let an=dt%Fe;return an<0&&(an+=Fe),an}function Cr(dt,Fe){return dt.hour+=Fe.hours||0,dt.minute+=Fe.minutes||0,dt.second+=Fe.seconds||0,dt.millisecond+=Fe.milliseconds||0,hr(dt)}function Ur(dt,Fe){let an=dt.copy();return Cr(an,Fe),an}function $r(dt,Fe){return Ur(dt,Vt(Fe))}function li(dt,Fe,an,qn){let Fr=dt.copy();switch(Fe){case"era":{let lo=dt.calendar.getEras(),mo=lo.indexOf(dt.era);if(mo<0)throw new Error("Invalid era: "+dt.era);mo=Bt(mo,an,0,lo.length-1,qn?.round),Fr.era=lo[mo],zt(Fr);break}case"year":var ui,Hi;!((Hi=(ui=Fr.calendar).isInverseEra)===null||Hi===void 0)&&Hi.call(ui,Fr)&&(an=-an),Fr.year=Bt(dt.year,an,-1/0,9999,qn?.round),Fr.year===-1/0&&(Fr.year=1),Fr.calendar.balanceYearMonth&&Fr.calendar.balanceYearMonth(Fr,dt);break;case"month":Fr.month=Bt(dt.month,an,1,dt.calendar.getMonthsInYear(dt),qn?.round);break;case"day":Fr.day=Bt(dt.day,an,1,dt.calendar.getDaysInMonth(dt),qn?.round);break;default:throw new Error("Unsupported field "+Fe)}return dt.calendar.balanceDate&&dt.calendar.balanceDate(Fr),zt(Fr),Fr}function ri(dt,Fe,an,qn){let Fr=dt.copy();switch(Fe){case"hour":{let ui=dt.hour,Hi=0,lo=23;if(qn?.hourCycle===12){let mo=ui>=12;Hi=mo?12:0,lo=mo?23:11}Fr.hour=Bt(ui,an,Hi,lo,qn?.round);break}case"minute":Fr.minute=Bt(dt.minute,an,0,59,qn?.round);break;case"second":Fr.second=Bt(dt.second,an,0,59,qn?.round);break;case"millisecond":Fr.millisecond=Bt(dt.millisecond,an,0,999,qn?.round);break;default:throw new Error("Unsupported field "+Fe)}return Fr}function Bt(dt,Fe,an,qn,Fr=!1){if(Fr){dt+=Math.sign(Fe),dt<an&&(dt=qn);let ui=Math.abs(Fe);Fe>0?dt=Math.ceil(dt/ui)*ui:dt=Math.floor(dt/ui)*ui,dt>qn&&(dt=an)}else dt+=Fe,dt<an?dt=qn-(an-dt-1):dt>qn&&(dt=an+(dt-qn-1));return dt}function Et(dt,Fe){let an;if(Fe.years!=null&&Fe.years!==0||Fe.months!=null&&Fe.months!==0||Fe.weeks!=null&&Fe.weeks!==0||Fe.days!=null&&Fe.days!==0){let Fr=ye(wt(dt),{years:Fe.years,months:Fe.months,weeks:Fe.weeks,days:Fe.days});an=$t(Fr,dt.timeZone)}else an=ln(dt)-dt.offset;an+=Fe.milliseconds||0,an+=(Fe.seconds||0)*1e3,an+=(Fe.minutes||0)*6e4,an+=(Fe.hours||0)*36e5;let qn=Kt(an,dt.timeZone);return vn(qn,dt.calendar)}function bn(dt,Fe){return Et(dt,Vt(Fe))}function cn(dt,Fe,an,qn){switch(Fe){case"hour":{let Fr=0,ui=23;if(qn?.hourCycle===12){let ns=dt.hour>=12;Fr=ns?12:0,ui=ns?23:11}let Hi=wt(dt),lo=vn(dr(Hi,{hour:Fr}),new w),mo=[$t(lo,dt.timeZone,"earlier"),$t(lo,dt.timeZone,"later")].filter(ns=>Kt(ns,dt.timeZone).day===lo.day)[0],ts=vn(dr(Hi,{hour:ui}),new w),co=[$t(ts,dt.timeZone,"earlier"),$t(ts,dt.timeZone,"later")].filter(ns=>Kt(ns,dt.timeZone).day===ts.day).pop(),Oo=ln(dt)-dt.offset,Po=Math.floor(Oo/ge),Yo=Oo%ge;return Oo=Bt(Po,an,Math.floor(mo/ge),Math.floor(co/ge),qn?.round)*ge+Yo,vn(Kt(Oo,dt.timeZone),dt.calendar)}case"minute":case"second":case"millisecond":return ri(dt,Fe,an,qn);case"era":case"year":case"month":case"day":{let Fr=li(wt(dt),Fe,an,qn),ui=$t(Fr,dt.timeZone);return vn(Kt(ui,dt.timeZone),dt.calendar)}default:throw new Error("Unsupported field "+Fe)}}function Yn(dt,Fe,an){let qn=wt(dt),Fr=dr(yn(qn,Fe),Fe);if(Fr.compare(qn)===0)return dt;let ui=$t(Fr,dt.timeZone,an);return vn(Kt(ui,dt.timeZone),dt.calendar)}const on=/^(\d{2})(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,ze=/^(\d{4})-(\d{2})-(\d{2})$/,Le=/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,Ht=/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:([+-]\d{2})(?::?(\d{2}))?)?\[(.*?)\]$/,Mn=/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/,tr=/^((?<negative>-)|\+)?P((?<years>\d*)Y)?((?<months>\d*)M)?((?<weeks>\d*)W)?((?<days>\d*)D)?((?<time>T)((?<hours>\d*[.,]?\d{1,9})H)?((?<minutes>\d*[.,]?\d{1,9})M)?((?<seconds>\d*[.,]?\d{1,9})S)?)?$/,Sr=["hours","minutes","seconds"],Xr=["years","months","weeks","days",...Sr];function gi(dt){let Fe=dt.match(on);if(!Fe)throw new Error("Invalid ISO 8601 time string: "+dt);return new Zt(Re(Fe[1],0,23),Fe[2]?Re(Fe[2],0,59):0,Fe[3]?Re(Fe[3],0,59):0,Fe[4]?Re(Fe[4],0,1/0)*1e3:0)}function Pi(dt){let Fe=dt.match(ze);if(!Fe)throw new Error("Invalid ISO 8601 date string: "+dt);let an=new On(Re(Fe[1],0,9999),Re(Fe[2],1,12),1);return an.day=Re(Fe[3],0,an.calendar.getDaysInMonth(an)),an}function ii(dt){let Fe=dt.match(Le);if(!Fe)throw new Error("Invalid ISO 8601 date time string: "+dt);let an=new Pn(Re(Fe[1],1,9999),Re(Fe[2],1,12),1,Fe[4]?Re(Fe[4],0,23):0,Fe[5]?Re(Fe[5],0,59):0,Fe[6]?Re(Fe[6],0,59):0,Fe[7]?Re(Fe[7],0,1/0)*1e3:0);return an.day=Re(Fe[3],0,an.calendar.getDaysInMonth(an)),an}function vr(dt,Fe){let an=dt.match(Ht);if(!an)throw new Error("Invalid ISO 8601 date time string: "+dt);let qn=new Rt(Re(an[1],1,9999),Re(an[2],1,12),1,an[10],0,an[4]?Re(an[4],0,23):0,an[5]?Re(an[5],0,59):0,an[6]?Re(an[6],0,59):0,an[7]?Re(an[7],0,1/0)*1e3:0);qn.day=Re(an[3],0,qn.calendar.getDaysInMonth(qn));let Fr=wt(qn),ui;if(an[8]){var Hi;if(qn.offset=Re(an[8],-23,23)*36e5+Re((Hi=an[9])!==null&&Hi!==void 0?Hi:"0",0,59)*6e4,ui=ln(qn)-qn.offset,!un(Fr,qn.timeZone).includes(ui))throw new Error(`Offset ${Mt(qn.offset)} is invalid for ${Te(qn)} in ${qn.timeZone}`)}else ui=$t(wt(Fr),qn.timeZone,Fe);return Kt(ui,qn.timeZone)}function at(dt,Fe){let an=dt.match(Mn);if(!an)throw new Error("Invalid ISO 8601 date time string: "+dt);let qn=new Rt(Re(an[1],1,9999),Re(an[2],1,12),1,Fe,0,an[4]?Re(an[4],0,23):0,an[5]?Re(an[5],0,59):0,an[6]?Re(an[6],0,59):0,an[7]?Re(an[7],0,1/0)*1e3:0);qn.day=Re(an[3],0,qn.calendar.getDaysInMonth(qn));var Fr;return an[8]&&(qn.offset=Re(an[8],-23,23)*36e5+Re((Fr=an[9])!==null&&Fr!==void 0?Fr:"0",0,59)*6e4),ae(qn,Fe)}function it(dt){return at(dt,$())}function Re(dt,Fe,an){let qn=Number(dt);if(qn<Fe||qn>an)throw new RangeError(`Value out of range: ${Fe} <= ${qn} <= ${an}`);return qn}function ke(dt){return`${String(dt.hour).padStart(2,"0")}:${String(dt.minute).padStart(2,"0")}:${String(dt.second).padStart(2,"0")}${dt.millisecond?String(dt.millisecond/1e3).slice(1):""}`}function Pe(dt){let Fe=vn(dt,new w);return`${String(Fe.year).padStart(4,"0")}-${String(Fe.month).padStart(2,"0")}-${String(Fe.day).padStart(2,"0")}`}function Te(dt){return`${Pe(dt)}T${ke(dt)}`}function Mt(dt){let Fe=Math.sign(dt)<0?"-":"+";dt=Math.abs(dt);let an=Math.floor(dt/36e5),qn=dt%36e5/6e4;return`${Fe}${String(an).padStart(2,"0")}:${String(qn).padStart(2,"0")}`}function qt(dt){return`${Te(dt)}${Mt(dt.offset)}[${dt.timeZone}]`}function Rn(dt){var Fe,an,qn,Fr,ui,Hi,lo,mo,ts;const co=dt.match(tr);if(!co)throw new Error(`Invalid ISO 8601 Duration string: ${dt}`);const Oo=(Lo,da,Qs,ta)=>{if(!Lo)return 0;try{return(da?-1:1)*Re(Lo.replace(",","."),Qs,ta)}catch{throw new Error(`Invalid ISO 8601 Duration string: ${dt}`)}},Po=!!(!((Fe=co.groups)===null||Fe===void 0)&&Fe.negative);if(!Xr.some(Lo=>{var da;return(da=co.groups)===null||da===void 0?void 0:da[Lo]}))throw new Error(`Invalid ISO 8601 Duration string: ${dt}`);if(((an=co.groups)===null||an===void 0?void 0:an.time)&&!Sr.some(da=>{var Qs;return(Qs=co.groups)===null||Qs===void 0?void 0:Qs[da]}))throw new Error(`Invalid ISO 8601 Duration string: ${dt}`);const Os={years:Oo((qn=co.groups)===null||qn===void 0?void 0:qn.years,Po,0,9999),months:Oo((Fr=co.groups)===null||Fr===void 0?void 0:Fr.months,Po,0,12),weeks:Oo((ui=co.groups)===null||ui===void 0?void 0:ui.weeks,Po,0,1/0),days:Oo((Hi=co.groups)===null||Hi===void 0?void 0:Hi.days,Po,0,31),hours:Oo((lo=co.groups)===null||lo===void 0?void 0:lo.hours,Po,0,23),minutes:Oo((mo=co.groups)===null||mo===void 0?void 0:mo.minutes,Po,0,59),seconds:Oo((ts=co.groups)===null||ts===void 0?void 0:ts.seconds,Po,0,59)};if(Os.hours%1!==0&&(Os.minutes||Os.seconds))throw new Error(`Invalid ISO 8601 Duration string: ${dt} - only the smallest unit can be fractional`);if(Os.minutes%1!==0&&Os.seconds)throw new Error(`Invalid ISO 8601 Duration string: ${dt} - only the smallest unit can be fractional`);return Os}function Qn(dt){let Fe=typeof dt[0]=="object"?dt.shift():new w,an;if(typeof dt[0]=="string")an=dt.shift();else{let Hi=Fe.getEras();an=Hi[Hi.length-1]}let qn=dt.shift(),Fr=dt.shift(),ui=dt.shift();return[Fe,an,qn,Fr,ui]}var ur=new WeakMap;class On{copy(){return this.era?new On(this.calendar,this.era,this.year,this.month,this.day):new On(this.calendar,this.year,this.month,this.day)}add(Fe){return ye(this,Fe)}subtract(Fe){return sn(this,Fe)}set(Fe){return yn(this,Fe)}cycle(Fe,an,qn){return li(this,Fe,an,qn)}toDate(Fe){return et(this,Fe)}toString(){return Pe(this)}compare(Fe){return A(this,Fe)}constructor(...Fe){n(this,ur,{writable:!0,value:void 0});let[an,qn,Fr,ui,Hi]=Qn(Fe);this.calendar=an,this.era=qn,this.year=Fr,this.month=ui,this.day=Hi,zt(this)}}var ct=new WeakMap;class Zt{copy(){return new Zt(this.hour,this.minute,this.second,this.millisecond)}add(Fe){return Ur(this,Fe)}subtract(Fe){return $r(this,Fe)}set(Fe){return dr(this,Fe)}cycle(Fe,an,qn){return ri(this,Fe,an,qn)}toString(){return ke(this)}compare(Fe){return R(this,Fe)}constructor(Fe=0,an=0,qn=0,Fr=0){$cUVuN$_(this,ct,{writable:!0,value:void 0}),this.hour=Fe,this.minute=an,this.second=qn,this.millisecond=Fr,Mr(this)}}var Cn=new WeakMap;class Pn{copy(){return this.era?new Pn(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Pn(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(Fe){return ye(this,Fe)}subtract(Fe){return sn(this,Fe)}set(Fe){return yn(dr(this,Fe),Fe)}cycle(Fe,an,qn){switch(Fe){case"era":case"year":case"month":case"day":return li(this,Fe,an,qn);default:return ri(this,Fe,an,qn)}}toDate(Fe,an){return et(this,Fe,an)}toString(){return Te(this)}compare(Fe){let an=A(this,Fe);return an===0?R(this,wt(Fe)):an}constructor(...Fe){n(this,Cn,{writable:!0,value:void 0});let[an,qn,Fr,ui,Hi]=Qn(Fe);this.calendar=an,this.era=qn,this.year=Fr,this.month=ui,this.day=Hi,this.hour=Fe.shift()||0,this.minute=Fe.shift()||0,this.second=Fe.shift()||0,this.millisecond=Fe.shift()||0,zt(this)}}var Kn=new WeakMap;class Rt{copy(){return this.era?new Rt(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Rt(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(Fe){return Et(this,Fe)}subtract(Fe){return bn(this,Fe)}set(Fe,an){return Yn(this,Fe,an)}cycle(Fe,an,qn){return cn(this,Fe,an,qn)}toDate(){return Wt(this)}toString(){return qt(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(Fe){return this.toDate().getTime()-ut(Fe,this.timeZone).toDate().getTime()}constructor(...Fe){n(this,Kn,{writable:!0,value:void 0});let[an,qn,Fr,ui,Hi]=Qn(Fe),lo=Fe.shift(),mo=Fe.shift();this.calendar=an,this.era=qn,this.year=Fr,this.month=ui,this.day=Hi,this.timeZone=lo,this.offset=mo,this.hour=Fe.shift()||0,this.minute=Fe.shift()||0,this.second=Fe.shift()||0,this.millisecond=Fe.shift()||0,zt(this)}}const Ke=null,Oe=null,Ge=null,Ft=null;function Qt(dt){const Fe=Ke.findIndex(([an,qn,Fr])=>dt.year<an||dt.year===an&&dt.month<qn||dt.year===an&&dt.month===qn&&dt.day<Fr);return Fe===-1?Ke.length-1:Fe===0?0:Fe-1}function wn(dt){let Fe=Ge[Ft.indexOf(dt.era)];if(!Fe)throw new Error("Unknown era: "+dt.era);return new On(dt.year+Fe,dt.month,dt.day)}class Gn extends null{fromJulianDay(Fe){let an=super.fromJulianDay(Fe),qn=Qt(an);return new On(this,Ft[qn],an.year-Ge[qn],an.month,an.day)}toJulianDay(Fe){return super.toJulianDay(wn(Fe))}balanceDate(Fe){let an=wn(Fe),qn=Qt(an);Ft[qn]!==Fe.era&&(Fe.era=Ft[qn],Fe.year=an.year-Ge[qn]),this.constrainDate(Fe)}constrainDate(Fe){let an=Ft.indexOf(Fe.era),qn=Oe[an];if(qn!=null){let[Fr,ui,Hi]=qn,lo=Fr-Ge[an];Fe.year=Math.max(1,Math.min(lo,Fe.year)),Fe.year===lo&&(Fe.month=Math.min(ui,Fe.month),Fe.month===ui&&(Fe.day=Math.min(Hi,Fe.day)))}if(Fe.year===1&&an>=0){let[,Fr,ui]=Ke[an];Fe.month=Math.max(Fr,Fe.month),Fe.month===Fr&&(Fe.day=Math.max(ui,Fe.day))}}getEras(){return Ft}getYearsInEra(Fe){let an=Ft.indexOf(Fe.era),qn=Ke[an],Fr=Ke[an+1];if(Fr==null)return 9999-qn[0]+1;let ui=Fr[0]-qn[0];return(Fe.month<Fr[1]||Fe.month===Fr[1]&&Fe.day<Fr[2])&&ui++,ui}getDaysInMonth(Fe){return super.getDaysInMonth(wn(Fe))}getMinimumMonthInYear(Fe){let an=ir(Fe);return an?an[1]:1}getMinimumDayInMonth(Fe){let an=ir(Fe);return an&&Fe.month===an[1]?an[2]:1}constructor(...Fe){super(...Fe),this.identifier="japanese"}}function ir(dt){if(dt.year===1){let Fe=Ft.indexOf(dt.era);return Ke[Fe]}}const br=null;class fr extends null{fromJulianDay(Fe){let an=super.fromJulianDay(Fe),qn=k(an.era,an.year);return new On(this,qn-br,an.month,an.day)}toJulianDay(Fe){return super.toJulianDay(Er(Fe))}getEras(){return["BE"]}getDaysInMonth(Fe){return super.getDaysInMonth(Er(Fe))}balanceDate(){}constructor(...Fe){super(...Fe),this.identifier="buddhist"}}function Er(dt){let[Fe,an]=M(dt.year+br);return new On(Fe,an,dt.month,dt.day)}const Or=1911;function oi(dt){return dt.era==="minguo"?dt.year+Or:1-dt.year+Or}function si(dt){let Fe=dt-Or;return Fe>0?["minguo",Fe]:["before_minguo",1-Fe]}class Fi extends null{fromJulianDay(Fe){let an=super.fromJulianDay(Fe),qn=k(an.era,an.year),[Fr,ui]=si(qn);return new On(this,Fr,ui,an.month,an.day)}toJulianDay(Fe){return super.toJulianDay($i(Fe))}getEras(){return["before_minguo","minguo"]}balanceDate(Fe){let[an,qn]=si(oi(Fe));Fe.era=an,Fe.year=qn}isInverseEra(Fe){return Fe.era==="before_minguo"}getDaysInMonth(Fe){return super.getDaysInMonth($i(Fe))}getYearsInEra(Fe){return Fe.era==="before_minguo"?9999:9999-Or}constructor(...Fe){super(...Fe),this.identifier="roc"}}function $i(dt){let[Fe,an]=M(oi(dt));return new On(Fe,an,dt.month,dt.day)}const Vi=1948321;function Bn(dt){let Fe=dt>0?dt-474:dt-473,an=s(Fe,2820)+474;return s((an+38)*31,128)<31}function nt(dt,Fe,an){let qn=dt>0?dt-474:dt-473,Fr=s(qn,2820)+474,ui=Fe<=7?31*(Fe-1):30*(Fe-1)+6;return Vi-1+1029983*Math.floor(qn/2820)+365*(Fr-1)+Math.floor((31*Fr-5)/128)+ui+an}class ve{fromJulianDay(Fe){let an=Fe-nt(475,1,1),qn=Math.floor(an/1029983),Fr=s(an,1029983),ui=Fr===1029982?2820:Math.floor((128*Fr+46878)/46751),Hi=474+2820*qn+ui;Hi<=0&&Hi--;let lo=Fe-nt(Hi,1,1)+1,mo=lo<=186?Math.ceil(lo/31):Math.ceil((lo-6)/31),ts=Fe-nt(Hi,mo,1)+1;return new On(this,Hi,mo,ts)}toJulianDay(Fe){return nt(Fe.year,Fe.month,Fe.day)}getMonthsInYear(){return 12}getDaysInMonth(Fe){return Fe.month<=6?31:Fe.month<=11||Bn(Fe.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const he=78,Ae=80;class tt extends null{fromJulianDay(Fe){let an=super.fromJulianDay(Fe),qn=an.year-he,Fr=Fe-p(an.era,an.year,1,1),ui;Fr<Ae?(qn--,ui=d(an.year-1)?31:30,Fr+=ui+155+90+10):(ui=d(an.year)?31:30,Fr-=Ae);let Hi,lo;if(Fr<ui)Hi=1,lo=Fr+1;else{let mo=Fr-ui;mo<155?(Hi=Math.floor(mo/31)+2,lo=mo%31+1):(mo-=155,Hi=Math.floor(mo/30)+7,lo=mo%30+1)}return new On(this,qn,Hi,lo)}toJulianDay(Fe){let an=Fe.year+he,[qn,Fr]=M(an),ui,Hi;return d(Fr)?(ui=31,Hi=p(qn,Fr,3,21)):(ui=30,Hi=p(qn,Fr,3,22)),Fe.month===1?Hi+Fe.day-1:(Hi+=ui+Math.min(Fe.month-2,5)*31,Fe.month>=8&&(Hi+=(Fe.month-7)*30),Hi+=Fe.day-1,Hi)}getDaysInMonth(Fe){return Fe.month===1&&d(Fe.year+he)||Fe.month>=2&&Fe.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...Fe){super(...Fe),this.identifier="indian"}}const St=1948440,kt=1948439,Jt=1300,gt=1600,dn=460322;function Xt(dt,Fe,an,qn){return qn+Math.ceil(29.5*(an-1))+(Fe-1)*354+Math.floor((3+11*Fe)/30)+dt-1}function hn(dt,Fe,an){let qn=Math.floor((30*(an-Fe)+10646)/10631),Fr=Math.min(12,Math.ceil((an-(29+Xt(Fe,qn,1,1)))/29.5)+1),ui=an-Xt(Fe,qn,Fr,1)+1;return new On(dt,qn,Fr,ui)}function Sn(dt){return(14+11*dt)%30<11}class Jn{fromJulianDay(Fe){return hn(this,St,Fe)}toJulianDay(Fe){return Xt(St,Fe.year,Fe.month,Fe.day)}getDaysInMonth(Fe){let an=29+Fe.month%2;return Fe.month===12&&Sn(Fe.year)&&an++,an}getMonthsInYear(){return 12}getDaysInYear(Fe){return Sn(Fe.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class Vn extends null{fromJulianDay(Fe){return hn(this,kt,Fe)}toJulianDay(Fe){return Xt(kt,Fe.year,Fe.month,Fe.day)}constructor(...Fe){super(...Fe),this.identifier="islamic-tbla"}}const ar="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Vr,Jr;function yi(dt){return dn+Jr[dt-Jt]}function Ii(dt,Fe){let an=dt-Jt,qn=1<<11-(Fe-1);return Vr[an]&qn?30:29}function ji(dt,Fe){let an=yi(dt);for(let qn=1;qn<Fe;qn++)an+=Ii(dt,qn);return an}function _n(dt){return Jr[dt+1-Jt]-Jr[dt-Jt]}class _e extends null{fromJulianDay(Fe){let an=Fe-St,qn=yi(Jt),Fr=yi(gt);if(an<qn||an>Fr)return super.fromJulianDay(Fe);{let ui=Jt-1,Hi=1,lo=1;for(;lo>0;){ui++,lo=an-yi(ui)+1;let mo=_n(ui);if(lo===mo){Hi=12;break}else if(lo<mo){let ts=Ii(ui,Hi);for(Hi=1;lo>ts;)lo-=ts,Hi++,ts=Ii(ui,Hi);break}}return new On(this,ui,Hi,an-ji(ui,Hi)+1)}}toJulianDay(Fe){return Fe.year<Jt||Fe.year>gt?super.toJulianDay(Fe):St+ji(Fe.year,Fe.month)+(Fe.day-1)}getDaysInMonth(Fe){return Fe.year<Jt||Fe.year>gt?super.getDaysInMonth(Fe):Ii(Fe.year,Fe.month)}getDaysInYear(Fe){return Fe.year<Jt||Fe.year>gt?super.getDaysInYear(Fe):_n(Fe.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Vr||(Vr=new Uint16Array(Uint8Array.from(atob(ar),Fe=>Fe.charCodeAt(0)).buffer)),!Jr){Jr=new Uint32Array(gt-Jt+1);let Fe=0;for(let an=Jt;an<=gt;an++){Jr[an-Jt]=Fe;for(let qn=1;qn<=12;qn++)Fe+=Ii(an,qn)}}}}const rt=347997,vt=1080,Gt=24*vt,We=29,Ot=12*vt+793,Dt=We*Gt+Ot;function gn(dt){return s(dt*7+1,19)<7}function Hn(dt){let Fe=Math.floor((235*dt-234)/19),an=12084+13753*Fe,qn=Fe*29+Math.floor(an/25920);return s(3*(qn+1),7)<3&&(qn+=1),qn}function nr(dt){let Fe=Hn(dt-1),an=Hn(dt);return Hn(dt+1)-an===356?2:an-Fe===382?1:0}function _r(dt){return Hn(dt)+nr(dt)}function Nr(dt){return _r(dt+1)-_r(dt)}function Qr(dt){let Fe=Nr(dt);switch(Fe>380&&(Fe-=30),Fe){case 353:return 0;case 354:return 1;case 355:return 2}}function ki(dt,Fe){if(Fe>=6&&!gn(dt)&&Fe++,Fe===4||Fe===7||Fe===9||Fe===11||Fe===13)return 29;let an=Qr(dt);return Fe===2?an===2?30:29:Fe===3?an===0?29:30:Fe===6?gn(dt)?30:0:30}class Si{fromJulianDay(Fe){let an=Fe-rt,qn=an*Gt/Dt,Fr=Math.floor((19*qn+234)/235)+1,ui=_r(Fr),Hi=Math.floor(an-ui);for(;Hi<1;)Fr--,ui=_r(Fr),Hi=Math.floor(an-ui);let lo=1,mo=0;for(;mo<Hi;)mo+=ki(Fr,lo),lo++;lo--,mo-=ki(Fr,lo);let ts=Hi-mo;return new On(this,Fr,lo,ts)}toJulianDay(Fe){let an=_r(Fe.year);for(let qn=1;qn<Fe.month;qn++)an+=ki(Fe.year,qn);return an+Fe.day+rt}getDaysInMonth(Fe){return ki(Fe.year,Fe.month)}getMonthsInYear(Fe){return gn(Fe.year)?13:12}getDaysInYear(Fe){return Nr(Fe.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(Fe,an){an.year!==Fe.year&&(gn(an.year)&&!gn(Fe.year)&&an.month>6?Fe.month--:!gn(an.year)&&gn(Fe.year)&&an.month>6&&Fe.month++)}constructor(){this.identifier="hebrew"}}const Ei=1723856,oo=1824665,zi=5500;function Xi(dt,Fe,an,qn){return dt+365*Fe+Math.floor(Fe/4)+30*(an-1)+qn-1}function uo(dt,Fe){let an=Math.floor(4*(Fe-dt)/1461),qn=1+Math.floor((Fe-Xi(dt,an,1,1))/30),Fr=Fe+1-Xi(dt,an,qn,1);return[an,qn,Fr]}function qi(dt){return Math.floor(dt%4/3)}function Ui(dt,Fe){return Fe%13!==0?30:qi(dt)+5}class Vo{fromJulianDay(Fe){let[an,qn,Fr]=uo(Ei,Fe),ui="AM";return an<=0&&(ui="AA",an+=zi),new On(this,ui,an,qn,Fr)}toJulianDay(Fe){let an=Fe.year;return Fe.era==="AA"&&(an-=zi),Xi(Ei,an,Fe.month,Fe.day)}getDaysInMonth(Fe){return Ui(Fe.year,Fe.month)}getMonthsInYear(){return 13}getDaysInYear(Fe){return 365+qi(Fe.year)}getYearsInEra(Fe){return Fe.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class Cs extends null{fromJulianDay(Fe){let[an,qn,Fr]=uo(Ei,Fe);return an+=zi,new On(this,"AA",an,qn,Fr)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...Fe){super(...Fe),this.identifier="ethioaa"}}class ra extends null{fromJulianDay(Fe){let[an,qn,Fr]=uo(oo,Fe),ui="CE";return an<=0&&(ui="BCE",an=1-an),new On(this,ui,an,qn,Fr)}toJulianDay(Fe){let an=Fe.year;return Fe.era==="BCE"&&(an=1-an),Xi(oo,an,Fe.month,Fe.day)}getDaysInMonth(Fe){let an=Fe.year;return Fe.era==="BCE"&&(an=1-an),Ui(an,Fe.month)}isInverseEra(Fe){return Fe.era==="BCE"}balanceDate(Fe){Fe.year<=0&&(Fe.era=Fe.era==="BCE"?"CE":"BCE",Fe.year=1-Fe.year)}getEras(){return["BCE","CE"]}getYearsInEra(Fe){return Fe.era==="BCE"?9999:9715}constructor(...Fe){super(...Fe),this.identifier="coptic"}}function Ts(dt){switch(dt){case"buddhist":return new fr;case"ethiopic":return new Vo;case"ethioaa":return new Cs;case"coptic":return new ra;case"hebrew":return new Si;case"indian":return new tt;case"islamic-civil":return new Jn;case"islamic-tbla":return new Vn;case"islamic-umalqura":return new _e;case"japanese":return new Gn;case"persian":return new ve;case"roc":return new Fi;case"gregory":default:return new w}}let Io=new Map;class xr{format(Fe){return this.formatter.format(Fe)}formatToParts(Fe){return this.formatter.formatToParts(Fe)}formatRange(Fe,an){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(Fe,an);if(an<Fe)throw new RangeError("End date must be >= start date");return`${this.formatter.format(Fe)} \u2013 ${this.formatter.format(an)}`}formatRangeToParts(Fe,an){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(Fe,an);if(an<Fe)throw new RangeError("End date must be >= start date");let qn=this.formatter.formatToParts(Fe),Fr=this.formatter.formatToParts(an);return[...qn.map(ui=>({...ui,source:"startRange"})),{type:"literal",value:" \u2013 ",source:"shared"},...Fr.map(ui=>({...ui,source:"endRange"}))]}resolvedOptions(){let Fe=this.formatter.resolvedOptions();return Ma()&&(this.resolvedHourCycle||(this.resolvedHourCycle=fa(Fe.locale,this.options)),Fe.hourCycle=this.resolvedHourCycle,Fe.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),Fe.calendar==="ethiopic-amete-alem"&&(Fe.calendar="ethioaa"),Fe}constructor(Fe,an={}){this.formatter=Is(Fe,an),this.options=an}}const ia={true:{ja:"h11"},false:{}};function Is(dt,Fe={}){if(typeof Fe.hour12=="boolean"&&as()){Fe={...Fe};let Fr=ia[String(Fe.hour12)][dt.split("-")[0]],ui=Fe.hour12?"h12":"h23";Fe.hourCycle=Fr??ui,delete Fe.hour12}let an=dt+(Fe?Object.entries(Fe).sort((Fr,ui)=>Fr[0]<ui[0]?-1:1).join():"");if(Io.has(an))return Io.get(an);let qn=new Intl.DateTimeFormat(dt,Fe);return Io.set(an,qn),qn}let Gs=null;function as(){return Gs==null&&(Gs=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Gs}let Wo=null;function Ma(){return Wo==null&&(Wo=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Wo}function fa(dt,Fe){if(!Fe.timeStyle&&!Fe.hour)return;dt=dt.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),dt+=(dt.includes("-u-")?"":"-u")+"-nu-latn";let an=Is(dt,{...Fe,timeZone:void 0}),qn=parseInt(an.formatToParts(new Date(2020,2,3,0)).find(ui=>ui.type==="hour").value,10),Fr=parseInt(an.formatToParts(new Date(2020,2,3,23)).find(ui=>ui.type==="hour").value,10);if(qn===0&&Fr===23)return"h23";if(qn===24&&Fr===23)return"h24";if(qn===0&&Fr===11)return"h11";if(qn===12&&Fr===11)return"h12";throw new Error("Unexpected hour cycle result")}},36206:(Z,v,t)=>{"use strict";t.d(v,{M:()=>r});function r(n,s,{checkForDefaultPrevented:a=!0}={}){return function(h){if(n?.(h),a===!1||!h.defaultPrevented)return s?.(h)}}},65936:(Z,v,t)=>{"use strict";t.d(v,{B:()=>c});var r=t(67294),n=t(25360),s=t(28771),a=t(88426);function c(h){const p=h+"CollectionProvider",[d,k]=(0,n.b)(p),[M,C]=d(p,{collectionRef:{current:null},itemMap:new Map}),w=x=>{const{scope:T,children:u}=x,b=r.useRef(null),E=r.useRef(new Map).current;return r.createElement(M,{scope:T,itemMap:E,collectionRef:b},u)},I=h+"CollectionSlot",F=r.forwardRef((x,T)=>{const{scope:u,children:b}=x,E=C(I,u),A=(0,s.e)(T,E.collectionRef);return r.createElement(a.g7,{ref:A},b)}),U=h+"CollectionItemSlot",B="data-radix-collection-item",N=r.forwardRef((x,T)=>{const{scope:u,children:b,...E}=x,A=r.useRef(null),R=(0,s.e)(T,A),H=C(U,u);return r.useEffect(()=>(H.itemMap.set(A,{ref:A,...E}),()=>void H.itemMap.delete(A))),r.createElement(a.g7,{[B]:"",ref:R},b)});function D(x){const T=C(h+"CollectionConsumer",x);return r.useCallback(()=>{const b=T.collectionRef.current;if(!b)return[];const E=Array.from(b.querySelectorAll(`[${B}]`));return Array.from(T.itemMap.values()).sort((H,z)=>E.indexOf(H.ref.current)-E.indexOf(z.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:w,Slot:F,ItemSlot:N},D,k]}},28771:(Z,v,t)=>{"use strict";t.d(v,{F:()=>s,e:()=>a});var r=t(67294);function n(c,h){typeof c=="function"?c(h):c!=null&&(c.current=h)}function s(...c){return h=>c.forEach(p=>n(p,h))}function a(...c){return(0,r.useCallback)(s(...c),c)}},25360:(Z,v,t)=>{"use strict";t.d(v,{b:()=>s,k:()=>n});var r=t(67294);function n(c,h){const p=(0,r.createContext)(h);function d(M){const{children:C,...w}=M,I=(0,r.useMemo)(()=>w,Object.values(w));return(0,r.createElement)(p.Provider,{value:I},C)}function k(M){const C=(0,r.useContext)(p);if(C)return C;if(h!==void 0)return h;throw new Error(`\`${M}\` must be used within \`${c}\``)}return d.displayName=c+"Provider",[d,k]}function s(c,h=[]){let p=[];function d(M,C){const w=(0,r.createContext)(C),I=p.length;p=[...p,C];function F(B){const{scope:N,children:D,...x}=B,T=N?.[c][I]||w,u=(0,r.useMemo)(()=>x,Object.values(x));return(0,r.createElement)(T.Provider,{value:u},D)}function U(B,N){const D=N?.[c][I]||w,x=(0,r.useContext)(D);if(x)return x;if(C!==void 0)return C;throw new Error(`\`${B}\` must be used within \`${M}\``)}return F.displayName=M+"Provider",[F,U]}const k=()=>{const M=p.map(C=>(0,r.createContext)(C));return function(w){const I=w?.[c]||M;return(0,r.useMemo)(()=>({[`__scope${c}`]:{...w,[c]:I}}),[w,I])}};return k.scopeName=c,[d,a(k,...h)]}function a(...c){const h=c[0];if(c.length===1)return h;const p=()=>{const d=c.map(k=>({useScope:k(),scopeName:k.scopeName}));return function(M){const C=d.reduce((w,{useScope:I,scopeName:F})=>{const B=I(M)[`__scope${F}`];return{...w,...B}},{});return(0,r.useMemo)(()=>({[`__scope${h.scopeName}`]:C}),[C])}};return p.scopeName=h.scopeName,p}},78990:(Z,v,t)=>{"use strict";t.d(v,{gm:()=>a});var r=t(67294);const n=(0,r.createContext)(void 0),s=h=>{const{dir:p,children:d}=h;return $7Gjcd$createElement(n.Provider,{value:p},d)};function a(h){const p=(0,r.useContext)(n);return h||p||"ltr"}const c=null},64369:(Z,v,t)=>{"use strict";t.d(v,{XB:()=>F,fC:()=>u});var r=t(87462),n=t(67294),s=t(36206),a=t(75320),c=t(28771),h=t(79698);function p(E,A=globalThis?.document){const R=(0,h.W)(E);(0,n.useEffect)(()=>{const H=z=>{z.key==="Escape"&&R(z)};return A.addEventListener("keydown",H),()=>A.removeEventListener("keydown",H)},[R,A])}const d="DismissableLayer",k="dismissableLayer.update",M="dismissableLayer.pointerDownOutside",C="dismissableLayer.focusOutside";let w;const I=(0,n.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),F=(0,n.forwardRef)((E,A)=>{var R;const{disableOutsidePointerEvents:H=!1,onEscapeKeyDown:z,onPointerDownOutside:V,onFocusOutside:$,onInteractOutside:ee,onDismiss:q,...oe}=E,X=(0,n.useContext)(I),[pe,Ie]=(0,n.useState)(null),se=(R=pe?.ownerDocument)!==null&&R!==void 0?R:globalThis?.document,[,be]=(0,n.useState)({}),fe=(0,c.e)(A,ln=>Ie(ln)),ue=Array.from(X.layers),[we]=[...X.layersWithOutsidePointerEventsDisabled].slice(-1),Me=ue.indexOf(we),Ce=pe?ue.indexOf(pe):-1,Ne=X.layersWithOutsidePointerEventsDisabled.size>0,Ye=Ce>=Me,mt=N(ln=>{const $e=ln.target,Qe=[...X.branches].some(bt=>bt.contains($e));!Ye||Qe||(V?.(ln),ee?.(ln),ln.defaultPrevented||q?.())},se),Ct=D(ln=>{const $e=ln.target;[...X.branches].some(bt=>bt.contains($e))||($?.(ln),ee?.(ln),ln.defaultPrevented||q?.())},se);return p(ln=>{Ce===X.layers.size-1&&(z?.(ln),!ln.defaultPrevented&&q&&(ln.preventDefault(),q()))},se),(0,n.useEffect)(()=>{if(pe)return H&&(X.layersWithOutsidePointerEventsDisabled.size===0&&(w=se.body.style.pointerEvents,se.body.style.pointerEvents="none"),X.layersWithOutsidePointerEventsDisabled.add(pe)),X.layers.add(pe),x(),()=>{H&&X.layersWithOutsidePointerEventsDisabled.size===1&&(se.body.style.pointerEvents=w)}},[pe,se,H,X]),(0,n.useEffect)(()=>()=>{pe&&(X.layers.delete(pe),X.layersWithOutsidePointerEventsDisabled.delete(pe),x())},[pe,X]),(0,n.useEffect)(()=>{const ln=()=>be({});return document.addEventListener(k,ln),()=>document.removeEventListener(k,ln)},[]),(0,n.createElement)(a.WV.div,(0,r.Z)({},oe,{ref:fe,style:{pointerEvents:Ne?Ye?"auto":"none":void 0,...E.style},onFocusCapture:(0,s.M)(E.onFocusCapture,Ct.onFocusCapture),onBlurCapture:(0,s.M)(E.onBlurCapture,Ct.onBlurCapture),onPointerDownCapture:(0,s.M)(E.onPointerDownCapture,mt.onPointerDownCapture)}))}),U="DismissableLayerBranch",B=(0,n.forwardRef)((E,A)=>{const R=(0,n.useContext)(I),H=(0,n.useRef)(null),z=(0,c.e)(A,H);return(0,n.useEffect)(()=>{const V=H.current;if(V)return R.branches.add(V),()=>{R.branches.delete(V)}},[R.branches]),(0,n.createElement)(a.WV.div,(0,r.Z)({},E,{ref:z}))});function N(E,A=globalThis?.document){const R=(0,h.W)(E),H=(0,n.useRef)(!1),z=(0,n.useRef)(()=>{});return(0,n.useEffect)(()=>{const V=ee=>{if(ee.target&&!H.current){let oe=function(){T(M,R,q,{discrete:!0})};const q={originalEvent:ee};ee.pointerType==="touch"?(A.removeEventListener("click",z.current),z.current=oe,A.addEventListener("click",z.current,{once:!0})):oe()}else A.removeEventListener("click",z.current);H.current=!1},$=window.setTimeout(()=>{A.addEventListener("pointerdown",V)},0);return()=>{window.clearTimeout($),A.removeEventListener("pointerdown",V),A.removeEventListener("click",z.current)}},[A,R]),{onPointerDownCapture:()=>H.current=!0}}function D(E,A=globalThis?.document){const R=(0,h.W)(E),H=(0,n.useRef)(!1);return(0,n.useEffect)(()=>{const z=V=>{V.target&&!H.current&&T(C,R,{originalEvent:V},{discrete:!1})};return A.addEventListener("focusin",z),()=>A.removeEventListener("focusin",z)},[A,R]),{onFocusCapture:()=>H.current=!0,onBlurCapture:()=>H.current=!1}}function x(){const E=new CustomEvent(k);document.dispatchEvent(E)}function T(E,A,R,{discrete:H}){const z=R.originalEvent.target,V=new CustomEvent(E,{bubbles:!1,cancelable:!0,detail:R});A&&z.addEventListener(E,A,{once:!0}),H?(0,a.jH)(z,V):z.dispatchEvent(V)}const u=F,b=null},27552:(Z,v,t)=>{"use strict";t.d(v,{EW:()=>a});var r=t(67294);let n=0;function s(p){return a(),p.children}function a(){(0,r.useEffect)(()=>{var p,d;const k=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(p=k[0])!==null&&p!==void 0?p:c()),document.body.insertAdjacentElement("beforeend",(d=k[1])!==null&&d!==void 0?d:c()),n++,()=>{n===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(M=>M.remove()),n--}},[])}function c(){const p=document.createElement("span");return p.setAttribute("data-radix-focus-guard",""),p.tabIndex=0,p.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",p}const h=null},95420:(Z,v,t)=>{"use strict";t.d(v,{M:()=>M});var r=t(87462),n=t(67294),s=t(28771),a=t(75320),c=t(79698);const h="focusScope.autoFocusOnMount",p="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},k="FocusScope",M=(0,n.forwardRef)((E,A)=>{const{loop:R=!1,trapped:H=!1,onMountAutoFocus:z,onUnmountAutoFocus:V,...$}=E,[ee,q]=(0,n.useState)(null),oe=(0,c.W)(z),X=(0,c.W)(V),pe=(0,n.useRef)(null),Ie=(0,s.e)(A,fe=>q(fe)),se=(0,n.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,n.useEffect)(()=>{if(H){let fe=function(Ce){if(se.paused||!ee)return;const Ne=Ce.target;ee.contains(Ne)?pe.current=Ne:N(pe.current,{select:!0})},ue=function(Ce){if(se.paused||!ee)return;const Ne=Ce.relatedTarget;Ne!==null&&(ee.contains(Ne)||N(pe.current,{select:!0}))},we=function(Ce){if(document.activeElement===document.body)for(const Ye of Ce)Ye.removedNodes.length>0&&N(ee)};document.addEventListener("focusin",fe),document.addEventListener("focusout",ue);const Me=new MutationObserver(we);return ee&&Me.observe(ee,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",fe),document.removeEventListener("focusout",ue),Me.disconnect()}}},[H,ee,se.paused]),(0,n.useEffect)(()=>{if(ee){D.add(se);const fe=document.activeElement;if(!ee.contains(fe)){const we=new CustomEvent(h,d);ee.addEventListener(h,oe),ee.dispatchEvent(we),we.defaultPrevented||(C(u(I(ee)),{select:!0}),document.activeElement===fe&&N(ee))}return()=>{ee.removeEventListener(h,oe),setTimeout(()=>{const we=new CustomEvent(p,d);ee.addEventListener(p,X),ee.dispatchEvent(we),we.defaultPrevented||N(fe??document.body,{select:!0}),ee.removeEventListener(p,X),D.remove(se)},0)}}},[ee,oe,X,se]);const be=(0,n.useCallback)(fe=>{if(!R&&!H||se.paused)return;const ue=fe.key==="Tab"&&!fe.altKey&&!fe.ctrlKey&&!fe.metaKey,we=document.activeElement;if(ue&&we){const Me=fe.currentTarget,[Ce,Ne]=w(Me);Ce&&Ne?!fe.shiftKey&&we===Ne?(fe.preventDefault(),R&&N(Ce,{select:!0})):fe.shiftKey&&we===Ce&&(fe.preventDefault(),R&&N(Ne,{select:!0})):we===Me&&fe.preventDefault()}},[R,H,se.paused]);return(0,n.createElement)(a.WV.div,(0,r.Z)({tabIndex:-1},$,{ref:Ie,onKeyDown:be}))});function C(E,{select:A=!1}={}){const R=document.activeElement;for(const H of E)if(N(H,{select:A}),document.activeElement!==R)return}function w(E){const A=I(E),R=F(A,E),H=F(A.reverse(),E);return[R,H]}function I(E){const A=[],R=document.createTreeWalker(E,NodeFilter.SHOW_ELEMENT,{acceptNode:H=>{const z=H.tagName==="INPUT"&&H.type==="hidden";return H.disabled||H.hidden||z?NodeFilter.FILTER_SKIP:H.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;R.nextNode();)A.push(R.currentNode);return A}function F(E,A){for(const R of E)if(!U(R,{upTo:A}))return R}function U(E,{upTo:A}){if(getComputedStyle(E).visibility==="hidden")return!0;for(;E;){if(A!==void 0&&E===A)return!1;if(getComputedStyle(E).display==="none")return!0;E=E.parentElement}return!1}function B(E){return E instanceof HTMLInputElement&&"select"in E}function N(E,{select:A=!1}={}){if(E&&E.focus){const R=document.activeElement;E.focus({preventScroll:!0}),E!==R&&B(E)&&A&&E.select()}}const D=x();function x(){let E=[];return{add(A){const R=E[0];A!==R&&R?.pause(),E=T(E,A),E.unshift(A)},remove(A){var R;E=T(E,A),(R=E[0])===null||R===void 0||R.resume()}}}function T(E,A){const R=[...E],H=R.indexOf(A);return H!==-1&&R.splice(H,1),R}function u(E){return E.filter(A=>A.tagName!=="A")}const b=null},91276:(Z,v,t)=>{"use strict";var r;t.d(v,{M:()=>h});var n=t(67294),s=t(9981);const a=(r||(r=t.t(n,2)))["useId".toString()]||(()=>{});let c=0;function h(p){const[d,k]=n.useState(a());return(0,s.b)(()=>{p||k(M=>M??String(c++))},[p]),p||(d?`radix-${d}`:"")}},82272:(Z,v,t)=>{"use strict";t.d(v,{ee:()=>se,Eh:()=>fe,VY:()=>be,fC:()=>Ie,D7:()=>x});var r=t(87462),n=t(67294),s=t(1371),a=t(76200),c=t(85983),h=t(75320);const p="Arrow",d=(0,n.forwardRef)((ue,we)=>{const{children:Me,width:Ce=10,height:Ne=5,...Ye}=ue;return(0,n.createElement)(h.WV.svg,(0,r.Z)({},Ye,{ref:we,width:Ce,height:Ne,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),ue.asChild?Me:(0,n.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),k=d;var M=t(28771),C=t(25360),w=t(79698),I=t(9981);function F(ue){const[we,Me]=(0,n.useState)(void 0);return(0,I.b)(()=>{if(ue){Me({width:ue.offsetWidth,height:ue.offsetHeight});const Ce=new ResizeObserver(Ne=>{if(!Array.isArray(Ne)||!Ne.length)return;const Ye=Ne[0];let mt,Ct;if("borderBoxSize"in Ye){const ln=Ye.borderBoxSize,$e=Array.isArray(ln)?ln[0]:ln;mt=$e.inlineSize,Ct=$e.blockSize}else mt=ue.offsetWidth,Ct=ue.offsetHeight;Me({width:mt,height:Ct})});return Ce.observe(ue,{box:"border-box"}),()=>Ce.unobserve(ue)}else Me(void 0)},[ue]),we}const U=null,B=null,N="Popper",[D,x]=(0,C.b)(N),[T,u]=D(N),b=ue=>{const{__scopePopper:we,children:Me}=ue,[Ce,Ne]=(0,n.useState)(null);return(0,n.createElement)(T,{scope:we,anchor:Ce,onAnchorChange:Ne},Me)},E="PopperAnchor",A=(0,n.forwardRef)((ue,we)=>{const{__scopePopper:Me,virtualRef:Ce,...Ne}=ue,Ye=u(E,Me),mt=(0,n.useRef)(null),Ct=(0,M.e)(we,mt);return(0,n.useEffect)(()=>{Ye.onAnchorChange(Ce?.current||mt.current)}),Ce?null:(0,n.createElement)(h.WV.div,(0,r.Z)({},Ne,{ref:Ct}))}),R="PopperContent",[H,z]=D(R),V=(0,n.forwardRef)((ue,we)=>{var Me,Ce,Ne,Ye,mt,Ct,ln,$e;const{__scopePopper:Qe,side:bt="bottom",sideOffset:It=0,align:mn="center",alignOffset:un=0,arrowPadding:Be=0,avoidCollisions:je=!0,collisionBoundary:$t=[],collisionPadding:et=0,sticky:Kt="partial",hideWhenDetached:kn=!1,updatePositionStrategy:Tn="optimized",onPlaced:ht,...ot}=ue,Je=u(R,Qe),[wt,ft]=(0,n.useState)(null),vn=(0,M.e)(we,Bt=>ft(Bt)),[ut,Wt]=(0,n.useState)(null),ae=F(ut),ne=(Me=ae?.width)!==null&&Me!==void 0?Me:0,ge=(Ce=ae?.height)!==null&&Ce!==void 0?Ce:0,ye=bt+(mn!=="center"?"-"+mn:""),Xe=typeof et=="number"?et:{top:0,right:0,bottom:0,left:0,...et},Ze=Array.isArray($t)?$t:[$t],lt=Ze.length>0,_t={padding:Xe,boundary:Ze.filter(oe),altBoundary:lt},{refs:zt,floatingStyles:Vt,placement:sn,isPositioned:yn,middlewareData:dr}=(0,s.YF)({strategy:"fixed",placement:ye,whileElementsMounted:(...Bt)=>(0,a.Me)(...Bt,{animationFrame:Tn==="always"}),elements:{reference:Je.anchor},middleware:[(0,c.cv)({mainAxis:It+ge,alignmentAxis:un}),je&&(0,c.uY)({mainAxis:!0,crossAxis:!1,limiter:Kt==="partial"?(0,c.dr)():void 0,..._t}),je&&(0,c.RR)({..._t}),(0,c.dp)({..._t,apply:({elements:Bt,rects:Et,availableWidth:bn,availableHeight:cn})=>{const{width:Yn,height:on}=Et.reference,ze=Bt.floating.style;ze.setProperty("--radix-popper-available-width",`${bn}px`),ze.setProperty("--radix-popper-available-height",`${cn}px`),ze.setProperty("--radix-popper-anchor-width",`${Yn}px`),ze.setProperty("--radix-popper-anchor-height",`${on}px`)}}),ut&&(0,s.x7)({element:ut,padding:Be}),X({arrowWidth:ne,arrowHeight:ge}),kn&&(0,c.Cp)({strategy:"referenceHidden",..._t})]}),[hr,Mr]=pe(sn),rr=(0,w.W)(ht);(0,I.b)(()=>{yn&&rr?.()},[yn,rr]);const Cr=(Ne=dr.arrow)===null||Ne===void 0?void 0:Ne.x,Ur=(Ye=dr.arrow)===null||Ye===void 0?void 0:Ye.y,$r=((mt=dr.arrow)===null||mt===void 0?void 0:mt.centerOffset)!==0,[li,ri]=(0,n.useState)();return(0,I.b)(()=>{wt&&ri(window.getComputedStyle(wt).zIndex)},[wt]),(0,n.createElement)("div",{ref:zt.setFloating,"data-radix-popper-content-wrapper":"",style:{...Vt,transform:yn?Vt.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:li,["--radix-popper-transform-origin"]:[(Ct=dr.transformOrigin)===null||Ct===void 0?void 0:Ct.x,(ln=dr.transformOrigin)===null||ln===void 0?void 0:ln.y].join(" ")},dir:ue.dir},(0,n.createElement)(H,{scope:Qe,placedSide:hr,onArrowChange:Wt,arrowX:Cr,arrowY:Ur,shouldHideArrow:$r},(0,n.createElement)(h.WV.div,(0,r.Z)({"data-side":hr,"data-align":Mr},ot,{ref:vn,style:{...ot.style,animation:yn?void 0:"none",opacity:($e=dr.hide)!==null&&$e!==void 0&&$e.referenceHidden?0:void 0}}))))}),$="PopperArrow",ee={top:"bottom",right:"left",bottom:"top",left:"right"},q=(0,n.forwardRef)(function(we,Me){const{__scopePopper:Ce,...Ne}=we,Ye=z($,Ce),mt=ee[Ye.placedSide];return(0,n.createElement)("span",{ref:Ye.onArrowChange,style:{position:"absolute",left:Ye.arrowX,top:Ye.arrowY,[mt]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[Ye.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[Ye.placedSide],visibility:Ye.shouldHideArrow?"hidden":void 0}},(0,n.createElement)(k,(0,r.Z)({},Ne,{ref:Me,style:{...Ne.style,display:"block"}})))});function oe(ue){return ue!==null}const X=ue=>({name:"transformOrigin",options:ue,fn(we){var Me,Ce,Ne,Ye,mt;const{placement:Ct,rects:ln,middlewareData:$e}=we,bt=((Me=$e.arrow)===null||Me===void 0?void 0:Me.centerOffset)!==0,It=bt?0:ue.arrowWidth,mn=bt?0:ue.arrowHeight,[un,Be]=pe(Ct),je={start:"0%",center:"50%",end:"100%"}[Be],$t=((Ce=(Ne=$e.arrow)===null||Ne===void 0?void 0:Ne.x)!==null&&Ce!==void 0?Ce:0)+It/2,et=((Ye=(mt=$e.arrow)===null||mt===void 0?void 0:mt.y)!==null&&Ye!==void 0?Ye:0)+mn/2;let Kt="",kn="";return un==="bottom"?(Kt=bt?je:`${$t}px`,kn=`${-mn}px`):un==="top"?(Kt=bt?je:`${$t}px`,kn=`${ln.floating.height+mn}px`):un==="right"?(Kt=`${-mn}px`,kn=bt?je:`${et}px`):un==="left"&&(Kt=`${ln.floating.width+mn}px`,kn=bt?je:`${et}px`),{data:{x:Kt,y:kn}}}});function pe(ue){const[we,Me="center"]=ue.split("-");return[we,Me]}const Ie=b,se=A,be=V,fe=q},42651:(Z,v,t)=>{"use strict";t.d(v,{h:()=>h});var r=t(87462),n=t(67294),s=t(73935),a=t(75320);const c="Portal",h=(0,n.forwardRef)((d,k)=>{var M;const{container:C=globalThis==null||(M=globalThis.document)===null||M===void 0?void 0:M.body,...w}=d;return C?s.createPortal((0,n.createElement)(a.WV.div,(0,r.Z)({},w,{ref:k})),C):null}),p=null},75320:(Z,v,t)=>{"use strict";t.d(v,{WV:()=>h,jH:()=>p});var r=t(87462),n=t(67294),s=t(73935),a=t(88426);const h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((k,M)=>{const C=(0,n.forwardRef)((w,I)=>{const{asChild:F,...U}=w,B=F?a.g7:M;return(0,n.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,n.createElement)(B,(0,r.Z)({},U,{ref:I}))});return C.displayName=`Primitive.${M}`,{...k,[M]:C}},{});function p(k,M){k&&(0,s.flushSync)(()=>k.dispatchEvent(M))}const d=null},66681:(Z,v,t)=>{"use strict";t.d(v,{Pc:()=>x,ck:()=>oe,fC:()=>q});var r=t(87462),n=t(67294),s=t(36206),a=t(65936),c=t(28771),h=t(25360),p=t(91276),d=t(75320),k=t(79698),M=t(77342),C=t(78990);const w="rovingFocusGroup.onEntryFocus",I={bubbles:!1,cancelable:!0},F="RovingFocusGroup",[U,B,N]=(0,a.B)(F),[D,x]=(0,h.b)(F,[N]),[T,u]=D(F),b=(0,n.forwardRef)((X,pe)=>(0,n.createElement)(U.Provider,{scope:X.__scopeRovingFocusGroup},(0,n.createElement)(U.Slot,{scope:X.__scopeRovingFocusGroup},(0,n.createElement)(E,(0,r.Z)({},X,{ref:pe}))))),E=(0,n.forwardRef)((X,pe)=>{const{__scopeRovingFocusGroup:Ie,orientation:se,loop:be=!1,dir:fe,currentTabStopId:ue,defaultCurrentTabStopId:we,onCurrentTabStopIdChange:Me,onEntryFocus:Ce,...Ne}=X,Ye=(0,n.useRef)(null),mt=(0,c.e)(pe,Ye),Ct=(0,C.gm)(fe),[ln=null,$e]=(0,M.T)({prop:ue,defaultProp:we,onChange:Me}),[Qe,bt]=(0,n.useState)(!1),It=(0,k.W)(Ce),mn=B(Ie),un=(0,n.useRef)(!1),[Be,je]=(0,n.useState)(0);return(0,n.useEffect)(()=>{const $t=Ye.current;if($t)return $t.addEventListener(w,It),()=>$t.removeEventListener(w,It)},[It]),(0,n.createElement)(T,{scope:Ie,orientation:se,dir:Ct,loop:be,currentTabStopId:ln,onItemFocus:(0,n.useCallback)($t=>$e($t),[$e]),onItemShiftTab:(0,n.useCallback)(()=>bt(!0),[]),onFocusableItemAdd:(0,n.useCallback)(()=>je($t=>$t+1),[]),onFocusableItemRemove:(0,n.useCallback)(()=>je($t=>$t-1),[])},(0,n.createElement)(d.WV.div,(0,r.Z)({tabIndex:Qe||Be===0?-1:0,"data-orientation":se},Ne,{ref:mt,style:{outline:"none",...X.style},onMouseDown:(0,s.M)(X.onMouseDown,()=>{un.current=!0}),onFocus:(0,s.M)(X.onFocus,$t=>{const et=!un.current;if($t.target===$t.currentTarget&&et&&!Qe){const Kt=new CustomEvent(w,I);if($t.currentTarget.dispatchEvent(Kt),!Kt.defaultPrevented){const kn=mn().filter(wt=>wt.focusable),Tn=kn.find(wt=>wt.active),ht=kn.find(wt=>wt.id===ln),Je=[Tn,ht,...kn].filter(Boolean).map(wt=>wt.ref.current);$(Je)}}un.current=!1}),onBlur:(0,s.M)(X.onBlur,()=>bt(!1))})))}),A="RovingFocusGroupItem",R=(0,n.forwardRef)((X,pe)=>{const{__scopeRovingFocusGroup:Ie,focusable:se=!0,active:be=!1,tabStopId:fe,...ue}=X,we=(0,p.M)(),Me=fe||we,Ce=u(A,Ie),Ne=Ce.currentTabStopId===Me,Ye=B(Ie),{onFocusableItemAdd:mt,onFocusableItemRemove:Ct}=Ce;return(0,n.useEffect)(()=>{if(se)return mt(),()=>Ct()},[se,mt,Ct]),(0,n.createElement)(U.ItemSlot,{scope:Ie,id:Me,focusable:se,active:be},(0,n.createElement)(d.WV.span,(0,r.Z)({tabIndex:Ne?0:-1,"data-orientation":Ce.orientation},ue,{ref:pe,onMouseDown:(0,s.M)(X.onMouseDown,ln=>{se?Ce.onItemFocus(Me):ln.preventDefault()}),onFocus:(0,s.M)(X.onFocus,()=>Ce.onItemFocus(Me)),onKeyDown:(0,s.M)(X.onKeyDown,ln=>{if(ln.key==="Tab"&&ln.shiftKey){Ce.onItemShiftTab();return}if(ln.target!==ln.currentTarget)return;const $e=V(ln,Ce.orientation,Ce.dir);if($e!==void 0){ln.preventDefault();let bt=Ye().filter(It=>It.focusable).map(It=>It.ref.current);if($e==="last")bt.reverse();else if($e==="prev"||$e==="next"){$e==="prev"&&bt.reverse();const It=bt.indexOf(ln.currentTarget);bt=Ce.loop?ee(bt,It+1):bt.slice(It+1)}setTimeout(()=>$(bt))}})})))}),H={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function z(X,pe){return pe!=="rtl"?X:X==="ArrowLeft"?"ArrowRight":X==="ArrowRight"?"ArrowLeft":X}function V(X,pe,Ie){const se=z(X.key,Ie);if(!(pe==="vertical"&&["ArrowLeft","ArrowRight"].includes(se))&&!(pe==="horizontal"&&["ArrowUp","ArrowDown"].includes(se)))return H[se]}function $(X){const pe=document.activeElement;for(const Ie of X)if(Ie===pe||(Ie.focus(),document.activeElement!==pe))return}function ee(X,pe){return X.map((Ie,se)=>X[(pe+se)%X.length])}const q=b,oe=R},88426:(Z,v,t)=>{"use strict";t.d(v,{g7:()=>a});var r=t(87462),n=t(67294),s=t(28771);const a=(0,n.forwardRef)((M,C)=>{const{children:w,...I}=M,F=n.Children.toArray(w),U=F.find(p);if(U){const B=U.props.children,N=F.map(D=>D===U?n.Children.count(B)>1?n.Children.only(null):(0,n.isValidElement)(B)?B.props.children:null:D);return(0,n.createElement)(c,(0,r.Z)({},I,{ref:C}),(0,n.isValidElement)(B)?(0,n.cloneElement)(B,void 0,N):null)}return(0,n.createElement)(c,(0,r.Z)({},I,{ref:C}),w)});a.displayName="Slot";const c=(0,n.forwardRef)((M,C)=>{const{children:w,...I}=M;return(0,n.isValidElement)(w)?(0,n.cloneElement)(w,{...d(I,w.props),ref:C?(0,s.F)(C,w.ref):w.ref}):n.Children.count(w)>1?n.Children.only(null):null});c.displayName="SlotClone";const h=({children:M})=>(0,n.createElement)(n.Fragment,null,M);function p(M){return(0,n.isValidElement)(M)&&M.type===h}function d(M,C){const w={...C};for(const I in C){const F=M[I],U=C[I];/^on[A-Z]/.test(I)?F&&U?w[I]=(...N)=>{U(...N),F(...N)}:F&&(w[I]=F):I==="style"?w[I]={...F,...U}:I==="className"&&(w[I]=[F,U].filter(Boolean).join(" "))}return{...M,...w}}const k=null},79698:(Z,v,t)=>{"use strict";t.d(v,{W:()=>n});var r=t(67294);function n(s){const a=(0,r.useRef)(s);return(0,r.useEffect)(()=>{a.current=s}),(0,r.useMemo)(()=>(...c)=>{var h;return(h=a.current)===null||h===void 0?void 0:h.call(a,...c)},[])}},77342:(Z,v,t)=>{"use strict";t.d(v,{T:()=>s});var r=t(67294),n=t(79698);function s({prop:c,defaultProp:h,onChange:p=()=>{}}){const[d,k]=a({defaultProp:h,onChange:p}),M=c!==void 0,C=M?c:d,w=(0,n.W)(p),I=(0,r.useCallback)(F=>{if(M){const B=typeof F=="function"?F(c):F;B!==c&&w(B)}else k(F)},[M,c,k,w]);return[C,I]}function a({defaultProp:c,onChange:h}){const p=(0,r.useState)(c),[d]=p,k=(0,r.useRef)(d),M=(0,n.W)(h);return(0,r.useEffect)(()=>{k.current!==d&&(M(d),k.current=d)},[d,k,M]),p}},9981:(Z,v,t)=>{"use strict";t.d(v,{b:()=>n});var r=t(67294);const n=Boolean(globalThis?.document)?r.useLayoutEffect:()=>{}},43007:(Z,v,t)=>{"use strict";t.d(v,{b:()=>D});var r=t(85893),n=t(54211),s=t(94417),a=t(52423),c=t(35771),h=t(46449);const p=x=>{switch(x){case"danger":return"danger100";case"success":return"success100";case"warning":return"warning100";default:return"primary100"}},d=x=>p(x).replace("100","200"),k=({theme:x,variant:T})=>T==="danger"?x.colors.danger700:T==="success"?x.colors.success700:T==="warning"?x.colors.warning700:x.colors.primary700;var M=t(66362),C=t(16607),w=t(96987),I=t(10574);const F=(0,h.default)(C.x)`
  svg {
    height: 100%;
    width: 100%;

    path {
      fill: ${({theme:x})=>x.colors.neutral700};
    }
  }

  ${M.BF};
`,U=(0,h.default)(w.k)`
  svg {
    height: 100%;
    width: 100%;

    path {
      fill: ${k};
    }
  }
`,B=({variant:x,...T})=>x==="success"?(0,r.jsx)(n.Z,{...T}):x==="danger"||x==="warning"?(0,r.jsx)(s.Z,{...T}):(0,r.jsx)(a.Z,{...T}),N=(0,h.default)(C.x)`
  & a > span {
    color: ${k};
  }

  svg path {
    fill: ${k};
  }
`,D=({title:x,children:T,variant:u="default",onClose:b,closeLabel:E,titleAs:A="p",action:R,...H})=>(0,r.jsxs)(w.k,{alignItems:"flex-start",background:p(u),borderColor:d(u),boxShadow:"filterShadow",gap:3,hasRadius:!0,padding:5,paddingRight:6,variant:u,...H,children:[(0,r.jsx)(U,{height:`${20/16}rem`,shrink:0,variant:u,width:`${20/16}rem`,children:(0,r.jsx)(B,{"aria-hidden":!0,variant:u})}),(0,r.jsxs)(w.k,{alignItems:"start",gap:R?2:1,wrap:"wrap",role:u==="danger"?"alert":"status",width:"100%",children:[(0,r.jsx)(I.Z,{fontWeight:"bold",textColor:"neutral800",as:A,children:x}),(0,r.jsx)(I.Z,{as:"p",textColor:"neutral800",children:T}),R&&(0,r.jsx)(N,{variant:u,children:R})]}),(0,r.jsx)(F,{as:"button",background:"transparent",borderColor:void 0,height:`${12/16}rem`,marginTop:1,onClick:b,width:`${12/16}rem`,"aria-label":E,children:(0,r.jsx)(c.Z,{"aria-hidden":!0})})]})},52544:(Z,v,t)=>{"use strict";t.d(v,{L:()=>I,q:()=>C});var r=t(85893),n=t(67294),s=t(46449),a=t(43229),c=t(16607),h=t(96987),p=t(10574);const d=s.default.img`
  border-radius: 50%;
  object-fit: cover;
  display: block;
  position: relative;
`,k=s.default.img`
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  transform: translate(-${(a.s-a.N)/2}px, -100%);
  margin-top: -${({theme:F})=>F.spaces[1]};
`,M=(0,s.default)(c.x)`
  opacity: 0.4;
`,C=({src:F,alt:U,preview:B})=>{const[N,D]=n.useState(!1),x=Boolean(B&&N);return(0,r.jsxs)("span",{children:[x?(0,r.jsx)(k,{"aria-hidden":!0,alt:"",width:`${a.s}px`,height:`${a.s}px`,src:B===!0?F:typeof B=="string"?B:""}):null,(0,r.jsxs)(c.x,{zIndex:x?1:void 0,position:"relative",onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),width:`${a.N}px`,height:`${a.N}px`,children:[x?(0,r.jsx)(M,{background:"neutral0",borderRadius:"50%",position:"absolute",width:`${a.N}px`,height:`${a.N}px`,zIndex:1}):null,(0,r.jsx)(d,{src:F,alt:U,width:`${a.N}px`,height:`${a.N}px`})]})]})},w=(0,s.default)(h.k)`
  span {
    line-height: 0;
  }
`,I=({children:F,background:U="primary600",textColor:B="buttonNeutral0"})=>(0,r.jsx)(w,{background:U,borderRadius:"50%",width:`${a.N}px`,height:`${a.N}px`,justifyContent:"center",children:(0,r.jsx)(p.Z,{fontSize:0,fontWeight:"bold",textColor:B,textTransform:"uppercase",children:F})})},43229:(Z,v,t)=>{"use strict";t.d(v,{N:()=>r,s:()=>n});const r=32,n=64},18787:(Z,v,t)=>{"use strict";t.d(v,{C:()=>h});var r=t(85893),n=t(46449),s=t(96987),a=t(10574);const c=(0,n.default)(s.k)`
  border-radius: ${({theme:p,size:d})=>d==="S"?"2px":p.borderRadius};
  height: ${({size:p,theme:d})=>d.sizes.badge[p]};
`,h=({active:p=!1,size:d="M",textColor:k="neutral600",backgroundColor:M="neutral150",children:C,minWidth:w=5,...I})=>{const F=d==="S"?1:2;return(0,r.jsx)(c,{inline:!0,alignItem:"center",justifyContent:"center",minWidth:w,paddingLeft:F,paddingRight:F,background:p?"primary200":M,size:d,...I,children:(0,r.jsx)(a.Z,{variant:"sigma",textColor:p?"primary600":k,children:C})})}},20501:(Z,v,t)=>{"use strict";t.d(v,{G:()=>h,Y:()=>p});var r=t(85893),n=t(67294),s=t(46449),a=t(66362),c=t(96987);const h=(0,s.default)(c.k)`
  > svg {
    height: ${({theme:d})=>d.spaces[3]};
    width: ${({theme:d})=>d.spaces[3]};

    > g,
    path {
      fill: ${({theme:d})=>d.colors.neutral0};
    }
  }

  &[aria-disabled='true'] {
    pointer-events: none;
  }

  ${a.BF}
`,p=n.forwardRef(({disabled:d,children:k,background:M="neutral0",...C},w)=>(0,r.jsx)(h,{ref:w,"aria-disabled":d,as:"button",type:"button",disabled:d,padding:2,hasRadius:!0,background:M,borderColor:"neutral200",cursor:"pointer",...C,children:k}));p.displayName="BaseButton"},12803:(Z,v,t)=>{"use strict";t.d(v,{C:()=>M});var r=t(85893),n=t(67294),s=t(46449);const a="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEwIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGgKICAgIGQ9Ik04LjU1MzIzIDAuMzk2OTczQzguNjMxMzUgMC4zMTYzNTUgOC43NjA1MSAwLjMxNTgxMSA4LjgzOTMxIDAuMzk1NzY4TDkuODYyNTYgMS40MzQwN0M5LjkzODkzIDEuNTExNTcgOS45MzkzNSAxLjYzNTkgOS44NjM0OSAxLjcxMzlMNC4wNjQwMSA3LjY3NzI0QzMuOTg1OSA3Ljc1NzU1IDMuODU3MDcgNy43NTgwNSAzLjc3ODM0IDcuNjc4MzRMMC4xMzg2NiAzLjk5MzMzQzAuMDYxNzc5OCAzLjkxNTQ5IDAuMDYxNzEwMiAzLjc5MDMyIDAuMTM4NTA0IDMuNzEyNEwxLjE2MjEzIDIuNjczNzJDMS4yNDAzOCAyLjU5NDMyIDEuMzY4NDMgMi41OTQyMiAxLjQ0NjggMi42NzM0OEwzLjkyMTc0IDUuMTc2NDdMOC41NTMyMyAwLjM5Njk3M1oiCiAgICBmaWxsPSIjOEU4RUE5IgogIC8+Cjwvc3ZnPg==";var c=t(1346);const h=({size:C})=>C==="M"?"18px":"20px";var p=t(27121),d=t(16607);const k=s.default.input`
  height: ${h};
  min-width: ${h};
  margin: 0;
  border-radius: ${({theme:C})=>C.borderRadius};
  border: 1px solid ${({theme:C})=>C.colors.neutral300};
  -webkit-appearance: none;
  background-color: ${({theme:C})=>C.colors.neutral0};
  cursor: pointer;

  &:checked {
    background-color: ${({theme:C})=>C.colors.primary600};
    border: 1px solid ${({theme:C})=>C.colors.primary600};

    &:after {
      content: '';
      display: block;
      position: relative;
      background: url(${c.Z}) no-repeat no-repeat center center;
      width: 10px;
      height: 10px;
      left: 50%;
      top: 50%;
      transform: translateX(-50%) translateY(-50%);
    }

    &:disabled:after {
      background: url(${a}) no-repeat no-repeat center center;
    }
  }

  &:disabled {
    background-color: ${({theme:C})=>C.colors.neutral200};
    border: 1px solid ${({theme:C})=>C.colors.neutral300};
  }

  &:indeterminate {
    background-color: ${({theme:C})=>C.colors.primary600};
    border: 1px solid ${({theme:C})=>C.colors.primary600};

    &:after {
      content: '';
      display: block;
      position: relative;
      color: white;
      height: 2px;
      width: 10px;
      background-color: ${({theme:C})=>C.colors.neutral0};
      left: 50%;
      top: 50%;
      transform: translateX(-50%) translateY(-50%);
    }

    &:disabled {
      background-color: ${({theme:C})=>C.colors.neutral200};
      border: 1px solid ${({theme:C})=>C.colors.neutral300};
      &:after {
        background-color: ${({theme:C})=>C.colors.neutral500};
      }
    }
  }
`,M=n.forwardRef(({indeterminate:C=!1,size:w="M",name:I,value:F=!1,onValueChange:U,...B},N)=>{const D=n.useRef(null),x=(0,p.e)(D,N);n.useEffect(()=>{D.current&&C?D.current.indeterminate=C:D.current.indeterminate=!1},[C]);const T=()=>{U&&U(!F)};return(0,r.jsx)(d.x,{children:(0,r.jsx)(k,{size:w,checked:F,onChange:T,type:"checkbox",ref:x,name:I,...B})})});M.displayName="BaseCheckbox"},1346:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>r});const r="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEwIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGgKICAgIGQ9Ik04LjU1MzIzIDAuMzk2OTczQzguNjMxMzUgMC4zMTYzNTUgOC43NjA1MSAwLjMxNTgxMSA4LjgzOTMxIDAuMzk1NzY4TDkuODYyNTYgMS40MzQwN0M5LjkzODkzIDEuNTExNTcgOS45MzkzNSAxLjYzNTkgOS44NjM0OSAxLjcxMzlMNC4wNjQwMSA3LjY3NzI0QzMuOTg1OSA3Ljc1NzU1IDMuODU3MDcgNy43NTgwNSAzLjc3ODM0IDcuNjc4MzRMMC4xMzg2NiAzLjk5MzMzQzAuMDYxNzc5OCAzLjkxNTQ5IDAuMDYxNzEwMiAzLjc5MDMyIDAuMTM4NTA0IDMuNzEyNEwxLjE2MjEzIDIuNjczNzJDMS4yNDAzOCAyLjU5NDMyIDEuMzY4NDMgMi41OTQyMiAxLjQ0NjggMi42NzM0OEwzLjkyMTc0IDUuMTc2NDdMOC41NTMyMyAwLjM5Njk3M1oiCiAgICBmaWxsPSJ3aGl0ZSIKICAvPgo8L3N2Zz4="},53342:(Z,v,t)=>{"use strict";t.d(v,{f:()=>a});var r=t(85893),n=t(67294),s=t(16607);const a=n.forwardRef(({href:c,rel:h="noreferrer noopener",target:p="_self",disabled:d=!1,isExternal:k=!1,...M},C)=>(0,r.jsx)(s.x,{as:"a",ref:C,target:k?"_blank":p,rel:k?h:void 0,href:d?"#":c,"aria-disabled":d,cursor:"pointer",...M}));a.displayName="BaseLink"},16607:(Z,v,t)=>{"use strict";t.d(v,{x:()=>c});var r=t(46449),n=t(33368),s=t(79581);const a={color:!0,cursor:!0,height:!0,width:!0},c=r.default.div.withConfig({shouldForwardProp:(h,p)=>!a[h]&&p(h)})`
  // Font
  font-size: ${({fontSize:h,theme:p})=>(0,s.$)(p.fontSizes,h,h)};

  // Colors
  background: ${({theme:h,background:p})=>(0,s.$)(h.colors,p,p)};
  color: ${({theme:h,color:p})=>(0,s.$)(h.colors,p,void 0)};

  // Spaces
  ${({theme:h,padding:p})=>(0,n.Z)("padding",p,h)}
  ${({theme:h,paddingTop:p})=>(0,n.Z)("padding-top",p,h)}
  ${({theme:h,paddingRight:p})=>(0,n.Z)("padding-right",p,h)}
  ${({theme:h,paddingBottom:p})=>(0,n.Z)("padding-bottom",p,h)}
  ${({theme:h,paddingLeft:p})=>(0,n.Z)("padding-left",p,h)}
  ${({theme:h,marginLeft:p})=>(0,n.Z)("margin-left",p,h)}
  ${({theme:h,marginRight:p})=>(0,n.Z)("margin-right",p,h)}
  ${({theme:h,marginTop:p})=>(0,n.Z)("margin-top",p,h)}
  ${({theme:h,marginBottom:p})=>(0,n.Z)("margin-bottom",p,h)}

  // Responsive hiding
  ${({theme:h,hiddenS:p})=>p?`${h.mediaQueries.tablet} { display: none; }`:void 0}
  ${({theme:h,hiddenXS:p})=>p?`${h.mediaQueries.mobile} { display: none; }`:void 0}
  

  // Borders
  border-radius: ${({theme:h,hasRadius:p,borderRadius:d})=>p?h.borderRadius:d};
  border-style: ${({borderStyle:h})=>h};
  border-width: ${({borderWidth:h})=>h};
  border-color: ${({borderColor:h,theme:p})=>(0,s.$)(p.colors,h,void 0)};
  border: ${({theme:h,borderColor:p,borderStyle:d,borderWidth:k})=>{if(p&&!d&&typeof k>"u")return`1px solid ${h.colors[p]}`}};

  // Shadows
  box-shadow: ${({theme:h,shadow:p})=>(0,s.$)(h.shadows,p,void 0)};

  // Handlers
  pointer-events: ${({pointerEvents:h})=>h};
  &:hover {
    ${({_hover:h,theme:p})=>h?h(p):void 0}
  }

  // Display
  display: ${({display:h})=>h};

  // Position
  position: ${({position:h})=>h};
  left: ${({left:h,theme:p})=>(0,s.$)(p.spaces,h,h)};
  right: ${({right:h,theme:p})=>(0,s.$)(p.spaces,h,h)};
  top: ${({top:h,theme:p})=>(0,s.$)(p.spaces,h,h)};
  bottom: ${({bottom:h,theme:p})=>(0,s.$)(p.spaces,h,h)};
  z-index: ${({zIndex:h})=>h};
  overflow: ${({overflow:h})=>h};

  // Size
  width: ${({width:h,theme:p})=>(0,s.$)(p.spaces,h,h)};
  max-width: ${({maxWidth:h,theme:p})=>(0,s.$)(p.spaces,h,h)};
  min-width: ${({minWidth:h,theme:p})=>(0,s.$)(p.spaces,h,h)};
  height: ${({height:h,theme:p})=>(0,s.$)(p.spaces,h,h)};
  max-height: ${({maxHeight:h,theme:p})=>(0,s.$)(p.spaces,h,h)};
  min-height: ${({minHeight:h,theme:p})=>(0,s.$)(p.spaces,h,h)};

  // Animation
  transition: ${({transition:h})=>h};
  transform: ${({transform:h})=>h};
  animation: ${({animation:h})=>h};

  //Flexbox children props
  flex-shrink: ${({shrink:h})=>h};
  flex-grow: ${({grow:h})=>h};
  flex-basis: ${({basis:h})=>h};
  flex: ${({flex:h})=>h};

  // Text
  text-align: ${({textAlign:h})=>h};
  text-transform: ${({textTransform:h})=>h};
  line-height: ${({theme:h,lineHeight:p})=>(0,s.$)(h.lineHeights,p,p)};

  // Cursor
  cursor: ${({cursor:h})=>h};
`},12473:(Z,v,t)=>{"use strict";t.d(v,{z:()=>F});var r=t(85893),n=t(67294),s=t(2),a=t(46449),c=t(4071),h=t(62485),p=t(20501),d=t(16607),k=t(10574),M=t(96987);const C=(0,a.keyframes)`
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
`,w=(0,a.default)(s.Z)`
  animation: ${C} 2s infinite linear;
  will-change: transform;
`,I=(0,a.default)(p.Y)`
  height: ${({theme:U,size:B})=>U.sizes.button[B]};

  svg {
    height: ${12/16}rem;
    width: auto;
  }

  &[aria-disabled='true'] {
    ${h.sg}

    &:active {
      ${h.sg}
    }
  }

  &:hover {
    ${h.yP}
  }

  &:active {
    ${h.tB}
  }

  ${h.PD}
`,F=n.forwardRef(({variant:U=c.TP,startIcon:B,endIcon:N,disabled:D=!1,children:x,onClick:T,size:u=c.Gt[0],loading:b=!1,fullWidth:E=!1,...A},R)=>{const H=D||b,z=V=>{!H&&T&&T(V)};return(0,r.jsxs)(I,{ref:R,"aria-disabled":H,disabled:H,size:u,variant:U,onClick:z,fullWidth:E,alignItems:"center",background:"buttonPrimary600",borderColor:"buttonPrimary600",gap:2,inline:E,justifyContent:E?"center":void 0,paddingLeft:4,paddingRight:4,width:E?"100%":void 0,...A,children:[(B||b)&&(0,r.jsx)(d.x,{"aria-hidden":!0,children:b?(0,r.jsx)(w,{}):B}),(0,r.jsx)(k.Z,{variant:u==="S"?"pi":void 0,fontWeight:"bold",textColor:"buttonNeutral0",children:x}),N&&(0,r.jsx)(M.k,{"aria-hidden":!0,children:N})]})});F.displayName="Button"},4071:(Z,v,t)=>{"use strict";t.d(v,{G$:()=>n,Gt:()=>C,MG:()=>r,MR:()=>p,T:()=>h,TP:()=>s,Vb:()=>c,Vv:()=>k,ZC:()=>M,gK:()=>a,wG:()=>d});const r="success-light",n="danger-light",s="default",a="tertiary",c="secondary",h="danger",p="success",d="ghost",k=[r,n],M=[s,a,c,h,p,d,...k],C=["S","M","L"]},62485:(Z,v,t)=>{"use strict";t.d(v,{PD:()=>p,sg:()=>a,tB:()=>h,yP:()=>c});var r=t(4071),n=t(10574);const s=d=>d===r.MG||d===r.G$?`${d.substring(0,d.lastIndexOf("-"))}`:d===r.gK?"neutral":d===r.TP||d===r.Vb||r.ZC.every(k=>k!==d)?"primary":`${d}`,a=({theme:d})=>`
    border: 1px solid ${d.colors.neutral200};
    background: ${d.colors.neutral150};
    ${n.Z} {
      color: ${d.colors.neutral600};
    }
    svg {
      > g, path {
        fill: ${d.colors.neutral600};
      }
    }
  `,c=({theme:d,variant:k})=>[...r.Vv,r.Vb].includes(k)?`
      background-color: ${d.colors.neutral0};
    `:k===r.gK?`
      background-color: ${d.colors.neutral100};
    `:k===r.wG?`
      background-color: ${d.colors.neutral100};
    `:k===r.TP?`
      border: 1px solid ${d.colors.buttonPrimary500};
      background: ${d.colors.buttonPrimary500};
    `:`
    border: 1px solid ${d.colors[`${s(k)}500`]};
    background: ${d.colors[`${s(k)}500`]};
  `,h=({theme:d,variant:k})=>[...r.Vv,r.Vb].includes(k)?`
      background-color: ${d.colors.neutral0};
      border: 1px solid ${d.colors[`${s(k)}600`]};
      ${n.Z} {
        color: ${d.colors[`${s(k)}600`]};
      }
      svg {
        > g, path {
          fill: ${d.colors[`${s(k)}600`]};
        }
      }
    `:k===r.gK?`
      background-color: ${d.colors.neutral150};
    `:`
    border: 1px solid ${d.colors[`${s(k)}600`]};
    background: ${d.colors[`${s(k)}600`]};
  `,p=({theme:d,variant:k})=>{switch(k){case r.G$:case r.MG:case r.Vb:return`
          border: 1px solid ${d.colors[`${s(k)}200`]};
          background: ${d.colors[`${s(k)}100`]};
          ${n.Z} {
            color: ${d.colors[`${s(k)}700`]};
          }
          svg {
            > g, path {
              fill: ${d.colors[`${s(k)}700`]};
            }
          }
        `;case r.gK:return`
          border: 1px solid ${d.colors.neutral200};
          background: ${d.colors.neutral0};
          ${n.Z} {
            color: ${d.colors.neutral800};
          }
          svg {
            > g, path {
              fill: ${d.colors.neutral800};
            }
          }
        `;case r.wG:return`
        border: 1px solid transparent;
        background: transparent;

        ${n.Z} {
          color: ${d.colors.neutral800};
        }

        svg {
          > g, path {
            fill: ${d.colors.neutral500};
          }
        }
      `;case r.MR:case r.T:return`
          border: 1px solid ${d.colors[`${s(k)}600`]};
          background: ${d.colors[`${s(k)}600`]};
          ${n.Z} {
            color: ${d.colors.neutral0};
          }
        `;default:return`
          svg {
            > g, path {
              fill: ${d.colors.buttonNeutral0};
            }
          }
        `}}},16244:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>h});var r=t(85893),n=t(67294),s=t(33986),a=t(92058),c=t(16607);const h=({id:p,...d})=>{const k=(0,a.M)(p),M=(0,n.useMemo)(()=>({id:k}),[k]);return(0,r.jsx)(s.H.Provider,{value:M,children:(0,r.jsx)(c.x,{id:p,tabIndex:0,hasRadius:!0,background:"neutral0",borderStyle:"solid",borderWidth:"1px",borderColor:"neutral150",shadow:"tableShadow",as:"article","aria-labelledby":`${k}-title`,...d})})}},9053:(Z,v,t)=>{"use strict";t.d(v,{l:()=>s});var r=t(46449),n=t(20232);const s=(0,r.default)(n.K).attrs({horizontal:!0,spacing:2})`
  position: absolute;
  top: ${({theme:a})=>a.spaces[3]};
  right: ${({position:a,theme:c})=>{if(a==="end")return c.spaces[3]}};
  left: ${({position:a,theme:c})=>{if(a==="start")return c.spaces[3]}};
`},26611:(Z,v,t)=>{"use strict";t.d(v,{H:()=>p});var r=t(85893),n=t(46449),s=t(96987);const a=n.default.img`
  // inline flows is based on typography and displays an extra white space below the image
  // switch to block is required in order to make the img stick the bottom of the container
  // addition infos: https://stackoverflow.com/questions/5804256/image-inside-div-has-extra-space-below-the-image
  margin: 0;
  padding: 0;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
`,c={S:88,M:164},h=n.default.div`
  display: flex;
  justify-content: center;
  height: ${({size:d})=>c[d]/16}rem;
  width: 100%;
  background: repeating-conic-gradient(${({theme:d})=>d.colors.neutral100} 0% 25%, transparent 0% 50%) 50% / 20px
    20px;
  border-top-left-radius: ${({theme:d})=>d.borderRadius};
  border-top-right-radius: ${({theme:d})=>d.borderRadius};
`,p=({size:d="M",children:k,...M})=>(0,r.jsx)(h,{size:d,children:k?(0,r.jsx)(s.k,{children:k}):(0,r.jsx)(a,{...M,"aria-hidden":!0})})},1136:(Z,v,t)=>{"use strict";t.d(v,{E:()=>h});var r=t(85893),n=t(46449),s=t(18787);const a=n.default.div`
  margin-left: auto;
  flex-shrink: 0;
`,c=(0,n.default)(s.C)`
  margin-left: ${({theme:p})=>p.spaces[1]};
`,h=p=>(0,r.jsx)(a,{children:(0,r.jsx)(c,{...p})})},37255:(Z,v,t)=>{"use strict";t.d(v,{e:()=>a});var r=t(85893),n=t(16607),s=t(96987);const a=c=>(0,r.jsx)(n.x,{paddingLeft:3,paddingRight:3,paddingTop:2,paddingBottom:2,children:(0,r.jsx)(s.k,{...c,alignItems:"flex-start"})})},19700:(Z,v,t)=>{"use strict";t.d(v,{a:()=>c});var r=t(85893),n=t(46449),s=t(16607);const a=(0,n.default)(s.x)`
  word-break: break-all;
`,c=({children:h,...p})=>(0,r.jsx)(a,{...p,children:h})},33986:(Z,v,t)=>{"use strict";t.d(v,{H:()=>n,n:()=>s});var r=t(67294);const n=(0,r.createContext)({id:""}),s=()=>(0,r.useContext)(n)},60909:(Z,v,t)=>{"use strict";t.d(v,{O:()=>c});var r=t(85893),n=t(46449),s=t(96987);const a=(0,n.default)(s.k)`
  border-bottom: 1px solid ${({theme:h})=>h.colors.neutral150};
`,c=h=>(0,r.jsx)(a,{position:"relative",justifyContent:"center",...h})},56457:(Z,v,t)=>{"use strict";t.d(v,{_:()=>c,l:()=>a});var r=t(85893),n=t(33986),s=t(10574);const a=h=>{const{id:p}=(0,n.n)();return(0,r.jsx)(s.Z,{variant:"pi",id:`${p}-title`,textColor:"neutral800",fontWeight:"bold",as:"div",...h})},c=h=>(0,r.jsx)(s.Z,{variant:"pi",...h,textColor:"neutral600",as:"div"})},7677:(Z,v,t)=>{"use strict";t.d(v,{b:()=>s});var r=t(85893),n=t(96987);const s=({horizontal:a=!0,spacing:c=1,...h})=>(0,r.jsx)(n.k,{justifyContent:"center",gap:c,direction:a?"row":"column",alignItems:a?"center":"stretch",position:"absolute",width:"100%",bottom:1,...h})},87385:(Z,v,t)=>{"use strict";t.d(v,{F:()=>u});var r=t(85893),n=t(67294),s=t(23463),a=t(33255),c=t(46449),h=t(40840),p=t(81315),d=t(16607),k=t(96987),M=t(85200),C=t(10574);const w=(0,c.default)(d.x)`
  grid-template-columns: auto 1fr auto;
  grid-template-areas: 'startAction slides endAction';
`,I=(0,c.default)(k.k)`
  grid-area: slides;
`,F=(0,c.default)(d.x)`
  grid-area: ${({area:b})=>b};

  &:focus svg path,
  &:hover svg path {
    fill: ${({theme:b})=>b.colors.neutral900};
  }
`,U=n.forwardRef(({actions:b,children:E,label:A,nextLabel:R,onNext:H,onPrevious:z,previousLabel:V,secondaryLabel:$,selectedSlide:ee,...q},oe)=>{const X=n.useRef(null),pe=n.useRef(null),Ie=n.Children.map(E,(be,fe)=>n.cloneElement(be,{selected:fe===ee})),se=be=>{switch(be.key){case h.y.RIGHT:{be.preventDefault(),pe?.current&&pe.current.focus(),H();break}case h.y.LEFT:{be.preventDefault(),X?.current&&X.current.focus(),z();break}}};return(0,r.jsx)(d.x,{ref:oe,...q,onKeyDown:se,children:(0,r.jsxs)(d.x,{padding:2,borderColor:"neutral200",hasRadius:!0,background:"neutral100",children:[(0,r.jsxs)(w,{as:"section","aria-roledescription":"carousel","aria-label":A,display:"grid",position:"relative",children:[Ie&&Ie.length>1&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(F,{as:"button",onClick:z,area:"startAction",ref:X,"aria-label":V,type:"button",children:(0,r.jsx)(M.J,{as:s.Z,"aria-hidden":!0,width:"6px",height:"10px",color:"neutral600"})}),(0,r.jsx)(F,{as:"button",onClick:H,area:"endAction",ref:pe,"aria-label":R,type:"button",children:(0,r.jsx)(M.J,{as:a.Z,"aria-hidden":!0,width:"6px",height:"10px",color:"neutral600"})})]}),(0,r.jsx)(I,{"aria-live":"polite",paddingLeft:2,paddingRight:2,width:"100%",overflow:"hidden",children:Ie}),b]}),$&&(0,r.jsx)(d.x,{paddingTop:2,paddingLeft:4,paddingRight:4,children:(0,r.jsx)(p.u,{label:$,children:(0,r.jsx)(k.k,{justifyContent:"center",children:(0,r.jsx)(C.Z,{variant:"pi",textColor:"neutral600",ellipsis:!0,children:$})})})})]})})});var B=t(92058),N=t(78048),D=t(17734),x=t(90820),T=t(61456);const u=(0,n.forwardRef)(({actions:b,children:E,error:A,hint:R,label:H,labelAction:z,nextLabel:V,onNext:$,onPrevious:ee,previousLabel:q,required:oe,secondaryLabel:X,selectedSlide:pe,id:Ie,...se},be)=>{const fe=(0,B.M)(Ie);return(0,r.jsx)(N.g,{hint:R,error:A,id:fe,required:oe,children:(0,r.jsxs)(k.k,{direction:"column",alignItems:"stretch",gap:1,children:[H&&(0,r.jsx)(D.Q,{action:z,children:H}),(0,r.jsx)(U,{ref:be,actions:b,label:H,nextLabel:V,onNext:$,onPrevious:ee,previousLabel:q,secondaryLabel:X,selectedSlide:pe,id:fe,...se,children:E}),(0,r.jsx)(x.J,{}),(0,r.jsx)(T.c,{})]})})})},68020:(Z,v,t)=>{"use strict";t.d(v,{q:()=>s});var r=t(85893),n=t(96987);const s=({label:a,children:c,selected:h=!1,...p})=>(0,r.jsx)(n.k,{alignItems:"center",display:h?"flex":"none",role:"group","aria-roledescription":"slide","aria-label":a,justifyContent:"center",height:"124px",width:"100%",...p,children:c})},22546:(Z,v,t)=>{"use strict";t.d(v,{X:()=>U});var r=t(85893),n=t(67294),s=t(46449),a=t(92058),c=t(35182),h=t(10574),p=t(12803),d=t(78048),k=t(96987),M=t(16607),C=t(90820),w=t(61456);const I=(0,s.default)(h.Z)`
  display: flex;
  align-items: flex-start;
  * {
    cursor: ${({disabled:B})=>B?"not-allowed":"pointer"};
  }
`,F=n.forwardRef((B,N)=>{const{id:D}=(0,c.U)();return(0,r.jsx)(p.C,{ref:N,id:D,...B})}),U=n.forwardRef(({children:B,disabled:N=!1,id:D,hint:x,error:T,...u},b)=>{const E=(0,a.M)(D);let A;return T?A=`${E}-error`:x&&(A=`${E}-hint`),(0,r.jsx)(d.g,{id:E,hint:x,error:T,children:(0,r.jsxs)(k.k,{direction:"column",alignItems:"stretch",gap:1,children:[(0,r.jsxs)(I,{as:"label",textColor:"neutral800",disabled:N,children:[(0,r.jsx)(F,{ref:b,disabled:N,"aria-describedby":A,...u}),(0,r.jsx)(M.x,{paddingLeft:2,children:B})]}),(0,r.jsx)(C.J,{}),(0,r.jsx)(w.c,{})]})})})},60914:(Z,v,t)=>{"use strict";t.d(v,{Wx:()=>ee,XU:()=>E,gA:()=>u,hQ:()=>b});var r=t(85893),n=t(67294),s=t(35771),a=t(58471),c=t(61299),h=t(46449),p=t(75518),d=t(27121),k=t(86564),M=t(92058),C=t(60141),w=t(74863),I=t(66362),F=t(96987),U=t(16607),B=t(10574),N=t(78048),D=t(17734),x=t(90820),T=t(61456);const u=n.forwardRef(({allowCustomValue:oe,autocomplete:X,children:pe,className:Ie,clearLabel:se="clear",creatable:be=!1,createMessage:fe=Wt=>`Create "${Wt}"`,defaultFilterValue:ue,defaultTextValue:we,defaultOpen:Me=!1,open:Ce,onOpenChange:Ne,disabled:Ye=!1,error:mt,filterValue:Ct,hasMoreItems:ln=!1,id:$e,isPrintableCharacter:Qe,loading:bt=!1,loadingMessage:It="Loading content...",noOptionsMessage:mn=()=>"No results found",onChange:un,onClear:Be,onCreateOption:je,onFilterValueChange:$t,onInputChange:et,onTextValueChange:Kt,onLoadMore:kn,placeholder:Tn="Select or enter a value",required:ht=!1,size:ot="M",startIcon:Je,textValue:wt,value:ft,...vn},ut)=>{const[Wt,ae]=(0,k.T)({prop:Ce,defaultProp:Me,onChange:Ne}),[ne,ge]=(0,k.T)({prop:wt,defaultProp:oe&&!we?ft:we,onChange:Kt}),[ye,Xe]=(0,k.T)({prop:Ct,defaultProp:ue,onChange:$t}),Ze=n.useRef(null),lt=n.useRef(null),_t=(0,d.e)(lt,ut),zt=n.useRef(null),Vt=Et=>{Be&&!Ye&&(ge(""),Xe(""),Be(Et),lt.current.focus())},sn=Et=>{ae(Et)},yn=Et=>{ge(Et)},dr=Et=>{Xe(Et)},hr=Et=>{et&&et(Et)},Mr=Et=>{un&&un(Et)},rr=Et=>{kn&&ln&&!bt&&kn(Et)},Cr=()=>{je&&ne&&je(ne)},Ur=(0,M.M)($e),$r=(0,M.M)(),li=`intersection-${(0,p.B)($r)}`;(0,C.s)(Ze,rr,{selectorToWatch:`#${li}`,skipWhen:!Wt});const ri=`${Ur}-hint`,Bt=`${Ur}-error`;return(0,r.jsxs)(c.Combobox.Root,{autocomplete:X||(be?"list":"both"),onOpenChange:sn,open:Wt,onTextValueChange:yn,textValue:ne,allowCustomValue:be||oe,disabled:Ye,required:ht,value:ft,onValueChange:Mr,filterValue:ye,onFilterValueChange:dr,isPrintableCharacter:Qe,children:[(0,r.jsxs)(R,{$hasError:Boolean(mt),$size:ot,className:Ie,children:[(0,r.jsxs)(F.k,{flex:"1",as:"span",gap:3,children:[Je?(0,r.jsx)(U.x,{as:"span","aria-hidden":!0,children:Je}):null,(0,r.jsx)(H,{placeholder:Tn,id:$e,"aria-invalid":Boolean(mt),"aria-describedby":`${ri} ${Bt}`,onChange:hr,ref:_t,...vn})]}),(0,r.jsxs)(F.k,{as:"span",gap:3,children:[ne&&Be?(0,r.jsx)(A,{as:"button",hasRadius:!0,background:"transparent",type:"button",onClick:Vt,"aria-disabled":Ye,"aria-label":se,title:se,ref:zt,children:(0,r.jsx)(s.Z,{})}):null,(0,r.jsx)(z,{children:(0,r.jsx)(a.Z,{})})]})]}),(0,r.jsx)(c.Combobox.Portal,{children:(0,r.jsx)(V,{sideOffset:4,children:(0,r.jsxs)($,{ref:Ze,children:[pe,be?(0,r.jsx)(c.Combobox.CreateItem,{onPointerUp:Cr,onClick:Cr,asChild:!0,children:(0,r.jsx)(q,{children:(0,r.jsx)(B.Z,{children:fe(ne??"")})})}):null,!be&&!bt?(0,r.jsx)(c.Combobox.NoValueFound,{asChild:!0,children:(0,r.jsx)(q,{$hasHover:!1,children:(0,r.jsx)(B.Z,{children:mn(ne??"")})})}):null,bt?(0,r.jsx)(F.k,{justifyContent:"center",alignItems:"center",paddingTop:2,paddingBottom:2,children:(0,r.jsx)(w.a,{small:!0,children:It})}):null,(0,r.jsx)(U.x,{id:li,width:"100%",height:"1px"})]})})})]})}),b=n.forwardRef(({error:oe,hint:X,id:pe,label:Ie,labelAction:se,required:be=!1,...fe},ue)=>{const we=(0,M.M)(pe);return(0,r.jsx)(N.g,{hint:X,error:oe,id:we,required:be,children:(0,r.jsxs)(F.k,{direction:"column",alignItems:"stretch",gap:1,children:[Ie?(0,r.jsx)(D.Q,{action:se,children:Ie}):null,(0,r.jsx)(u,{ref:ue,id:we,error:oe,required:be,...fe}),(0,r.jsx)(x.J,{}),(0,r.jsx)(T.c,{})]})})}),E=oe=>(0,r.jsx)(b,{...oe,creatable:!0}),A=(0,h.default)(U.x)`
  border: none;

  svg {
    height: ${11/16}rem;
    width: ${11/16}rem;
  }

  svg path {
    fill: ${({theme:oe})=>oe.colors.neutral600};
  }
`,R=(0,h.default)(c.Combobox.Trigger)`
  position: relative;
  border: 1px solid ${({theme:oe,$hasError:X})=>X?oe.colors.danger600:oe.colors.neutral200};
  padding-right: ${({theme:oe})=>oe.spaces[3]};
  padding-left: ${({theme:oe})=>oe.spaces[3]};
  border-radius: ${({theme:oe})=>oe.borderRadius};
  background: ${({theme:oe})=>oe.colors.neutral0};
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: ${({theme:oe})=>oe.spaces[4]};
  min-height: ${({theme:oe,$size:X})=>(0,I.ZB)("input")({theme:oe,size:X})};

  &[data-disabled] {
    color: ${({theme:oe})=>oe.colors.neutral600};
    background: ${({theme:oe})=>oe.colors.neutral150};
    cursor: not-allowed;
  }

  /* Required to ensure the below inputFocusStyles are adhered too */
  &:focus-visible {
    outline: none;
  }

  ${({theme:oe,$hasError:X})=>(0,I.k3)()({theme:oe,hasError:X})};
`,H=(0,h.default)(c.Combobox.TextInput)`
  width: 100%;
  font-size: ${14/16}rem;
  color: ${({theme:oe})=>oe.colors.neutral800};
  padding: 0;
  border: none;
  background-color: transparent;

  &:focus-visible {
    outline: none;
  }

  &[aria-disabled='true'] {
    cursor: inherit;
  }
`,z=(0,h.default)(c.Combobox.Icon)`
  & > svg {
    width: ${6/16}rem;

    & > path {
      fill: ${({theme:oe})=>oe.colors.neutral600};
    }
  }

  &[aria-disabled='true'] {
    cursor: inherit;
  }
`,V=(0,h.default)(c.Combobox.Content)`
  background: ${({theme:oe})=>oe.colors.neutral0};
  box-shadow: ${({theme:oe})=>oe.shadows.filterShadow};
  border: 1px solid ${({theme:oe})=>oe.colors.neutral150};
  border-radius: ${({theme:oe})=>oe.borderRadius};
  width: var(--radix-combobox-trigger-width);
  /* This is from the design-system figma file. */
  max-height: 15rem;
  z-index: ${({theme:oe})=>oe.zIndices[1]};
`,$=(0,h.default)(c.Combobox.Viewport)`
  padding: ${({theme:oe})=>oe.spaces[1]};
`,ee=n.forwardRef(({children:oe,value:X,disabled:pe,textValue:Ie,...se},be)=>(0,r.jsx)(c.Combobox.ComboboxItem,{asChild:!0,value:X,disabled:pe,textValue:Ie,children:(0,r.jsx)(q,{ref:be,...se,children:(0,r.jsx)(c.Combobox.ItemText,{asChild:!0,children:(0,r.jsx)(B.Z,{children:oe})})})})),q=h.default.div`
  width: 100%;
  border: none;
  text-align: left;
  outline-offset: -3px;
  padding: ${({theme:oe})=>oe.spaces[2]} ${({theme:oe})=>oe.spaces[4]};
  background-color: ${({theme:oe})=>oe.colors.neutral0};
  border-radius: ${({theme:oe})=>oe.borderRadius};
  user-select: none;

  &[data-state='checked'] {
    background-color: ${({theme:oe})=>oe.colors.primary100};

    ${B.Z} {
      color: ${({theme:oe})=>oe.colors.primary600};
      font-weight: bold;
    }
  }

  &:hover,
  &[data-highlighted] {
    outline: none;
    background-color: ${({theme:oe,$hasHover:X=!0})=>X?oe.colors.primary100:oe.colors.neutral0};
  }

  &[data-highlighted] {
    ${B.Z} {
      color: ${({theme:oe})=>oe.colors.primary600};
      font-weight: bold;
    }
  }
`},40770:(Z,v,t)=>{"use strict";t.d(v,{M:()=>vn,a:()=>be});var r=t(85893),n=t(67294),s=t(1371),a=t(85983),c=t(76200),h=t(97575),p=t(27552),d=t(95420),k=t(35771),M=t(54359),C=t(36206),w=t(73935),I=t(18204),F=t(46449),U=t(33850),B=t(61376),N=t(87349),D=t(61459),x=t(27121),T=t(86564),u=t(73881),b=t(92058),E=t(90090),A=t(11219),R=t(96987),H=t(66362),z=t(16607),V=t(10574),$=t(78048),ee=t(17734),q=t(90820),oe=t(61456);const X=200,pe=15,[Ie,se]=(0,N.k)("DatePicker"),be=n.forwardRef(({calendarLabel:ut,className:Wt,initialDate:ae,locale:ne,maxDate:ge,minDate:ye,monthSelectLabel:Xe="Month",onChange:Ze,selectedDate:lt,yearSelectLabel:_t="Year",error:zt,id:Vt,disabled:sn=!1,placeholder:yn,required:dr=!1,onClear:hr,clearLabel:Mr="Clear",size:rr,ariaLabel:Cr,selectedDateLabel:Ur,...$r},li)=>{const ri=(0,h.iT)(),Bt=(0,U.P)("DatePicker"),Et=ne??Bt.locale,bn=(0,u.a)(Et,{day:"2-digit",month:"2-digit",year:"numeric"}),[cn,Yn]=n.useState(!1),[on,ze]=n.useState(null),[Le,Ht]=n.useState(null),[Mn,tr]=n.useState(null),[Sr,Xr]=n.useState(),[gi,Pi]=(0,T.T)({defaultProp:ae?ft(ae):void 0,prop:lt?ft(lt):void 0,onChange(Rn){Ze&&Ze(Rn?.toDate(ri))}}),[ii,vr]=n.useMemo(()=>{const Rn=ae?ft(ae):(0,h.Lg)("UTC"),Qn=ye?ft(ye):Rn.set({day:1,month:1,year:Rn.year-X});let ur=ge?ft(ge):Rn.set({day:31,month:12,year:Rn.year+pe});return ur.compare(Qn)<0&&(ur=Qn.set({day:31,month:12,year:Qn.year+pe})),[Qn,ur]},[ye,ge,ae]),[at,it]=n.useState(ue({currentValue:gi,minDate:ii,maxDate:vr})),Re=(0,b.M)(),ke=n.useRef(null),Pe=Rn=>{hr&&!sn&&(Xr(""),Pi(void 0),hr(Rn),Le?.focus())},Te=n.useCallback(Rn=>{Rn&&gi&&it(gi),Yn(Rn)},[gi]);n.useLayoutEffect(()=>{if(lt){const Rn=ft(lt);Xr(bn.format(Rn.toDate(ri))),it(Rn)}else Xr("")},[lt,bn,ri]),n.useLayoutEffect(()=>{if(ae&&Sr===void 0){const Rn=ft(ae);Xr(bn.format(Rn.toDate(ri)))}},[ae,Sr,bn,ri]);const Mt=`${Vt}-hint`,qt=`${Vt}-error`;return(0,r.jsxs)(Ie,{calendarDate:at,content:Mn,contentId:Re,disabled:sn,locale:Et,minDate:ii,maxDate:vr,open:cn,onCalendarDateChange:it,onContentChange:tr,onOpenChange:Te,onTextInputChange:Ht,onTextValueChange:Xr,onTriggerChange:ze,onValueChange:Pi,required:dr,textInput:Le,textValue:Sr,timeZone:ri,trigger:on,value:gi,children:[(0,r.jsxs)(Me,{className:Wt,size:rr,hasError:Boolean(zt),children:[(0,r.jsx)(Ye,{"aria-hidden":!0}),(0,r.jsx)(Ct,{ref:li,placeholder:yn,"aria-describedby":`${Mt} ${qt}`,id:Vt,...$r}),Sr&&hr?(0,r.jsx)(Ne,{as:"button",hasRadius:!0,background:"transparent",type:"button",onClick:Pe,"aria-disabled":sn,"aria-label":Mr,title:Mr,ref:ke,children:(0,r.jsx)(k.Z,{})}):null]}),(0,r.jsx)(A.h,{children:(0,r.jsx)(bt,{label:ut,children:(0,r.jsx)(je,{monthSelectLabel:Xe,yearSelectLabel:_t})})})]})}),fe=ut=>Boolean(ut.match(/^[^a-zA-Z]*$/)),ue=({currentValue:ut,minDate:Wt,maxDate:ae})=>{const ne=(0,h.Lg)("UTC");return ut||((0,h.Mb)(Wt,ne)===Wt&&(0,h.l7)(ae,ne)===ae?ne:(0,h.Mb)(Wt,ne)===ne?Wt:(0,h.l7)(ae,ne)===ne?ae:ne)},we="DatePickerTrigger",Me=n.forwardRef(({hasError:ut,size:Wt="M",...ae},ne)=>{const ge=se(we),ye=(0,x.e)(ne,Ze=>ge.onTriggerChange(Ze)),Xe=()=>{ge.disabled||ge.onOpenChange(!0)};return(0,r.jsx)(d.M,{asChild:!0,trapped:ge.open,onMountAutoFocus:Ze=>{Ze.preventDefault()},onUnmountAutoFocus:Ze=>{document.getSelection()?.empty(),Ze.preventDefault()},children:(0,r.jsx)(Ce,{ref:ye,$hasError:ut,$size:Wt,...ae,paddingLeft:3,paddingRight:3,hasRadius:!0,gap:3,overflow:"hidden",background:ge.disabled?"neutral150":"neutral0",onClick:(0,C.M)(ae.onClick,()=>{ge.textInput?.focus()}),onPointerDown:(0,C.M)(ae.onPointerDown,Ze=>{const lt=Ze.target;lt.hasPointerCapture(Ze.pointerId)&&lt.releasePointerCapture(Ze.pointerId),(lt.closest("button")??lt.closest("div"))===Ze.currentTarget&&Ze.button===0&&Ze.ctrlKey===!1&&(Xe(),ge.textInput?.focus())})})})}),Ce=(0,F.default)(R.k)`
  border: 1px solid ${({theme:ut,$hasError:Wt})=>Wt?ut.colors.danger600:ut.colors.neutral200};
  min-height: ${({theme:ut,$size:Wt})=>(0,H.ZB)("input")({theme:ut,size:Wt})};

  &[data-disabled] {
    color: ${({theme:ut})=>ut.colors.neutral600};
    background: ${({theme:ut})=>ut.colors.neutral150};
    cursor: not-allowed;
  }

  /* Required to ensure the below inputFocusStyles are adhered too */
  &:focus-visible {
    outline: none;
  }

  ${({theme:ut,$hasError:Wt})=>(0,H.k3)()({theme:ut,hasError:Wt})};
`,Ne=(0,F.default)(z.x)`
  border: none;

  svg {
    height: ${11/16}rem;
    width: ${11/16}rem;
  }

  svg path {
    fill: ${({theme:ut})=>ut.colors.neutral600};
  }
`,Ye=(0,F.default)(M.Z)`
  & > path {
    fill: ${({theme:ut})=>ut.colors.neutral500};
  }
`,mt="DatePickerTextInput",Ct=n.forwardRef(({placeholder:ut,...Wt},ae)=>{const ne=se(mt),{onTextValueChange:ge,textValue:ye,onTextInputChange:Xe,onOpenChange:Ze,disabled:lt,locale:_t}=ne,zt=(0,x.e)(ae,rr=>Xe(rr)),Vt=()=>{lt||Ze(!0)},sn=(0,u.a)(_t,{year:"numeric",month:"2-digit",day:"2-digit"}),[yn,dr,hr]=n.useMemo(()=>{const rr=sn.formatToParts(new Date),Cr=rr.filter(li=>li.type==="year"||li.type==="month"||li.type==="day"),Ur=Cr.map(li=>{switch(li.type){case"day":return"DD";case"month":return"MM";case"year":return"YYYY";default:return""}}),$r=rr.find(li=>li.type==="literal")?.value??"";return[Ur,$r,Cr]},[sn]),Mr=yn.map(rr=>`\\d{${rr.length}}`).join(`\\${dr}`);return(0,r.jsx)($e,{role:"combobox",type:"text",inputMode:"numeric",ref:zt,"aria-autocomplete":"none","aria-controls":ne.contentId,"aria-disabled":ne.disabled,"aria-expanded":ne.open,"aria-required":ne.required,"aria-haspopup":"dialog","data-state":ne.open?"open":"closed",disabled:lt,"data-disabled":lt?"":void 0,pattern:Mr,placeholder:ut??yn.join(dr),...Wt,value:ye??"",onBlur:(0,C.M)(Wt.onBlur,()=>{if(!ne.textValue){ne.onValueChange(void 0);return}ne.onTextValueChange(sn.format(ne.calendarDate.toDate(ne.timeZone))),ne.onValueChange(ne.calendarDate)}),onChange:(0,C.M)(Wt.onChange,rr=>{if(fe(rr.target.value)){const Cr=rr.target.value.split(dr),[Ur,$r,li]=hr.map((ze,Le)=>{const Ht=Cr[Le];return{...ze,value:Ht}}).sort((ze,Le)=>ze.type==="year"?1:Le.type==="year"?-1:ze.type==="month"?1:Le.type==="month"?-1:0).map(ze=>ze.value),ri=ne.calendarDate.year;let Bt=ne.calendarDate.year;if(li){let ze=li.length===1?`0${li}`:li;Bt=li.length<3?Number(`${ri}`.slice(0,4-ze.length)+ze):Number(ze)}li&&li.length<3&&Bt>ne.maxDate.year&&(Bt-=100);const Et=ne.calendarDate.set({year:Bt}),bn=Et.calendar.getMonthsInYear(Et),cn=Et.set({month:$r&&Number($r)<=bn?Number($r):void 0}),Yn=cn.calendar.getDaysInMonth(cn),on=cn.set({day:Ur&&Number(Ur)<=Yn?Number(Ur):void 0});ne.onCalendarDateChange(ln(on,ne.minDate,ne.maxDate)),ne.onTextValueChange(rr.target.value)}}),onKeyDown:(0,C.M)(Wt.onKeyDown,rr=>{if(!ne.open&&(fe(rr.key)||["ArrowDown","Backspace"].includes(rr.key)))Vt();else if(["Tab"].includes(rr.key)&&ne.open)rr.preventDefault();else if(["Escape"].includes(rr.key))ne.open?ne.onOpenChange(!1):(ne.onValueChange(void 0),ne.onTextValueChange("")),rr.preventDefault();else if(ne.open&&["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(rr.key))switch(rr.preventDefault(),rr.key){case"ArrowDown":{const Cr=ne.calendarDate.add({weeks:1});if(ne.maxDate&&Cr.compare(ne.maxDate)>0)return;ne.onCalendarDateChange(Cr);return}case"ArrowRight":{const Cr=ne.calendarDate.add({days:1});if(ne.maxDate&&Cr.compare(ne.maxDate)>0)return;ne.onCalendarDateChange(Cr);return}case"ArrowUp":{const Cr=ne.calendarDate.subtract({weeks:1});if(ne.minDate&&Cr.compare(ne.minDate)<0)return;ne.onCalendarDateChange(Cr);return}case"ArrowLeft":{const Cr=ne.calendarDate.subtract({days:1});if(ne.minDate&&Cr.compare(ne.minDate)<0)return;ne.onCalendarDateChange(Cr)}}else ne.open&&["Enter"].includes(rr.key)&&(rr.preventDefault(),ge(sn.format(ne.calendarDate.toDate(ne.timeZone))),ne.onValueChange(ne.calendarDate),ne.onOpenChange(!1))})})});function ln(ut,Wt,ae){return Wt&&(ut=(0,h.l7)(ut,Wt)),ae&&(ut=(0,h.Mb)(ut,ae)),ut}const $e=F.default.input`
  width: 100%;
  font-size: ${14/16}rem;
  color: ${({theme:ut})=>ut.colors.neutral800};
  height: 100%;
  border: none;
  background-color: transparent;

  &:focus-visible {
    outline: none;
  }

  &[aria-disabled='true'] {
    cursor: inherit;
  }
`,Qe="DatePickerContent",bt=n.forwardRef((ut,Wt)=>{const[ae,ne]=n.useState(),ge=se(Qe);if(n.useLayoutEffect(()=>{ne(new DocumentFragment)},[]),!ge.open){const ye=ae;return ye?(0,w.createPortal)((0,r.jsx)("div",{children:ut.children}),ye):null}return(0,r.jsx)(mn,{...ut,ref:Wt})}),It="DatePickerContent",mn=n.forwardRef((ut,Wt)=>{const{label:ae="Choose date",...ne}=ut,{onOpenChange:ge,...ye}=se(It),{x:Xe,y:Ze,refs:lt,strategy:_t}=(0,s.YF)({strategy:"fixed",placement:"bottom-start",middleware:[(0,a.cv)({mainAxis:4}),(0,a.uY)(),(0,a.RR)()],elements:{reference:ye.trigger},whileElementsMounted:c.Me});n.useEffect(()=>{const Vt=()=>{ge(!1)};return window.addEventListener("blur",Vt),window.addEventListener("resize",Vt),()=>{window.removeEventListener("blur",Vt),window.removeEventListener("resize",Vt)}},[ge]);const zt=(0,x.e)(Wt,Vt=>ye.onContentChange(Vt),lt.setFloating);return(0,p.EW)(),(0,r.jsx)(I.Z,{allowPinchZoom:!0,children:(0,r.jsx)(B.B,{asChild:!0,onFocusOutside:Vt=>{Vt.preventDefault()},onDismiss:()=>{ge(!1)},children:(0,r.jsx)(un,{ref:zt,"data-state":ye.open?"open":"closed",onContextMenu:Vt=>Vt.preventDefault(),id:ye.contentId,role:"dialog","aria-modal":"true","aria-label":ae,style:{left:Xe,top:Ze,position:_t},hasRadius:!0,background:"neutral0",padding:1,...ne})})})}),un=(0,F.default)(z.x)`
  box-shadow: ${({theme:ut})=>ut.shadows.filterShadow};
  z-index: ${({theme:ut})=>ut.zIndices[0]};
  border: 1px solid ${({theme:ut})=>ut.colors.neutral150};
`,Be="DatePickerCalendar",je=n.forwardRef(({monthSelectLabel:ut,yearSelectLabel:Wt,...ae},ne)=>{const{locale:ge,timeZone:ye,minDate:Xe,maxDate:Ze,calendarDate:lt,onCalendarDateChange:_t}=se(Be),zt=(0,h.Nm)(lt),Vt=n.useMemo(()=>{const Ur=Xe.year,$r=Ze.year;return[...Array($r-Ur+1).keys()].map(li=>(Ur+li).toString())},[Xe,Ze]),sn=(0,u.a)(ge,{month:"long"}),yn=n.useMemo(()=>[...Array(lt.calendar.getMonthsInYear(lt)).keys()].map(Ur=>sn.format(lt.set({month:Ur+1}).toDate(ye))),[lt,sn,ye]),dr=(0,u.a)(ge,{weekday:"short"}),hr=n.useMemo(()=>{let Ur=(0,h.zJ)((0,h.Lg)(ye),ge);return[...new Array(7).keys()].map($r=>{let ri=Ur.add({days:$r}).toDate(ye);return dr.format(ri)})},[ye,ge,dr]),Mr=Ur=>{if(typeof Ur=="number")return;const $r=lt.set({month:yn.indexOf(Ur)+1});_t($r)},rr=Ur=>{if(typeof Ur=="number")return;const $r=lt.set({year:parseInt(Ur,10)});_t($r)},Cr=$t(zt,ge);return(0,r.jsxs)(R.k,{ref:ne,direction:"column",alignItems:"stretch",padding:4,...ae,children:[(0,r.jsxs)(et,{justifyContent:"flex-start",paddingBottom:4,paddingLeft:2,paddingRight:2,gap:2,children:[(0,r.jsx)(E.iL,{label:ut,size:"S",value:yn[lt.month-1],onChange:Mr,children:yn.map(Ur=>(0,r.jsx)(E.ag,{value:Ur,children:Ur},Ur))}),(0,r.jsx)(E.iL,{size:"S",value:lt.year.toString(),label:Wt,onChange:rr,children:Vt.map(Ur=>(0,r.jsx)(E.ag,{value:Ur,children:Ur},Ur))})]}),(0,r.jsxs)("table",{role:"grid",children:[(0,r.jsx)("thead",{"aria-hidden":!0,children:(0,r.jsx)("tr",{"aria-rowindex":0,children:hr.map((Ur,$r)=>(0,r.jsx)(Kt,{"aria-colindex":$r,children:Ur},Ur))})}),(0,r.jsx)("tbody",{children:[...new Array(6).keys()].map(Ur=>(0,r.jsx)("tr",{"aria-rowindex":Ur+2,children:Cr(Ur).map(($r,li)=>$r?(0,r.jsx)(ht,{"aria-colindex":li+1,date:$r,startDate:zt},$r.toString()):(0,r.jsx)(ot,{"aria-colindex":li+1}))},Ur))})]})]})}),$t=(ut,Wt)=>ae=>{let ne=ut.add({weeks:ae}),ge=[];ne=(0,h.zJ)(ne,Wt);let ye=(0,h.ji)(ne,Wt);for(let Xe=0;Xe<ye;Xe++)ge.push(null);for(;ge.length<7;){ge.push(ne);let Xe=ne.add({days:1});if((0,h.KC)(ne,Xe))break;ne=Xe}for(;ge.length<7;)ge.push(null);return ge},et=(0,F.default)(R.k)`
  div[role='combobox'] {
    border: 1px solid transparent;
    background: transparent;
    font-weight: ${ut=>ut.theme.fontWeights.bold};

    ${V.Z} {
      color: ${({theme:ut})=>ut.colors.neutral800};
    }

    svg {
      > g,
      path {
        fill: ${({theme:ut})=>ut.colors.neutral500};
      }
    }

    &:hover {
      background-color: ${({theme:ut})=>ut.colors.neutral100};
    }
  }
`,Kt=n.forwardRef(({children:ut,...Wt},ae)=>(0,r.jsx)(kn,{as:"th",role:"gridcell",ref:ae,...Wt,height:`${24/16}rem`,width:`${32/16}rem`,children:(0,r.jsx)(V.Z,{variant:"pi",fontWeight:"bold",color:"neutral800",children:ut.slice(0,2)})})),kn=(0,F.default)(z.x)`
  border-radius: ${({theme:ut})=>ut.borderRadius};
  text-transform: capitalize;
`,Tn="DatePickerCalendarCell",ht=n.forwardRef(({date:ut,startDate:Wt,...ae},ne)=>{const{timeZone:ge,locale:ye,calendarDate:Xe,onValueChange:Ze,onOpenChange:lt,onTextValueChange:_t,onCalendarDateChange:zt}=se(Tn),Vt=(0,h.KC)(Xe,ut),sn=(0,u.a)(ye,{weekday:"long",day:"numeric",month:"long",year:"numeric"}),yn=n.useMemo(()=>sn.format(ut.toDate(ge)),[sn,ut,ge]),dr=(0,u.a)(ye,{day:"numeric",calendar:ut.calendar.identifier}),hr=n.useMemo(()=>dr.formatToParts(ut.toDate(ge)).find($r=>$r.type==="day").value,[dr,ut,ge]),Mr=(0,u.a)(ye,{day:"2-digit",month:"2-digit",year:"numeric"}),rr=(0,h.Vf)(Wt),Cr=ut.compare(Wt)<0||ut.compare(rr)>0;let Ur="neutral900";return Vt?Ur="primary600":Cr&&(Ur="neutral600"),(0,r.jsx)(ot,{as:"td",role:"gridcell",ref:ne,"aria-selected":Vt,...ae,hasRadius:!0,"aria-label":yn,tabIndex:Vt?0:-1,background:Vt?"primary100":"neutral0",cursor:"pointer",onPointerDown:(0,C.M)(ae.onPointerDown,$r=>{$r.preventDefault(),zt(ut),Ze(ut),_t(Mr.format(ut.toDate(ge))),lt(!1)}),children:(0,r.jsx)(V.Z,{variant:"pi",textColor:Ur,children:hr})})}),ot=(0,F.default)(z.x)`
  text-align: center;
  padding: ${7/16}rem;
  // Trick to prevent the outline from overflowing because of the general outline-offset
  outline-offset: -2px !important;

  &:hover {
    background: ${({theme:ut})=>ut.colors.primary100};

    & > ${V.Z} {
      color: ${({theme:ut})=>ut.colors.primary600};
    }
  }
`,Je=n.forwardRef((ut,Wt)=>{const{error:ae,hint:ne,id:ge,required:ye,label:Xe,...Ze}=ut,lt=(0,b.M)(ge);return(0,r.jsx)($.g,{error:ae,hint:ne,required:ye,id:lt,children:(0,r.jsxs)(R.k,{direction:"column",alignItems:"stretch",gap:1,children:[(0,r.jsx)(ee.Q,{children:Xe}),(0,r.jsx)(be,{ref:Wt,id:lt,error:ae,required:ye,...Ze}),(0,r.jsx)(q.J,{}),(0,r.jsx)(oe.c,{})]})})}),wt=(0,D.I)(console.warn),ft=ut=>{if(typeof ut=="string"){wt("It looks like you're passing a string as representation of a Date to the DatePicker. This is deprecated, look to passing a Date instead.");const ne=Date.parse(ut);Number.isNaN(ne)?ut=new Date:ut=new Date(ne)}const Wt=ut.toISOString(),ae=(0,h.u4)(Wt,"UTC");return(0,h.WG)(ae)},vn=Je},97062:(Z,v,t)=>{"use strict";t.d(v,{x:()=>x});var r=t(85893),n=t(67294),s=t(97575),a=t(46449),c=t(40770),h=t(33850),p=t(61459),d=t(27121),k=t(86564),M=t(73881),C=t(92058),w=t(79971),I=t(78048),F=t(96987),U=t(17734),B=t(22304),N=t(90820),D=t(61456);const x=n.forwardRef(({ariaLabel:A,clearLabel:R="clear",dateLabel:H="Choose date",timeLabel:z="Choose time",disabled:V=!1,error:$,hint:ee,id:q,label:oe,labelAction:X,onChange:pe,onClear:Ie,name:se,required:be=!1,selectButtonTitle:fe,size:ue="M",step:we,value:Me,initialDate:Ce,...Ne},Ye)=>{const mt=n.useRef(null),[Ct,ln]=(0,k.T)({defaultProp:Ce?u(Ce,!1):void 0,prop:Me?u(Me,!1):Me??void 0,onChange(kn){pe&&pe(kn?.toDate((0,s.iT)()))}}),$e=(0,h.P)("DateTimePicker"),Qe=(0,M.a)($e.locale,{hour:"2-digit",minute:"2-digit",hour12:!1}),bt=Ct?Qe.format(Ct.toDate((0,s.iT)())):"",It=kn=>{let Tn=kn?u(kn):void 0;if(!(Tn&&Ct&&Tn.compare(Ct)===0)){if(bt&&Tn){const[ht,ot]=bt.split(":");Tn=Tn.set({hour:parseInt(ht,10),minute:parseInt(ot,10)})}ln(Tn)}},mn=kn=>{if(!kn)return;const[Tn,ht]=kn.split(":"),ot=Ct?Ct.set({hour:parseInt(Tn,10),minute:parseInt(ht,10)}):u(new Date).set({hour:parseInt(Tn,10),minute:parseInt(ht,10)});ln(ot)},un=kn=>{ln(void 0),Ie&&Ie(kn)},Be=()=>{const kn=Ct?Ct.set({hour:0,minute:0}):u(new Date);ln(kn)},je=(0,C.M)(q),$t=(0,C.M)(),et=(0,C.M)(),Kt=(0,d.e)(mt,Ye);return(0,r.jsx)(I.g,{name:se,as:"fieldset",id:je,"aria-labelledby":je,hint:ee,error:$,required:be,children:(0,r.jsxs)(F.k,{as:"span",direction:"column",alignItems:"stretch",gap:1,children:[(0,r.jsx)(U.Q,{onClick:()=>{mt.current.focus()},as:"legend",id:je,action:X,children:oe}),(0,r.jsxs)(F.k,{flex:"1",gap:1,children:[(0,r.jsx)(B.T,{as:"label",htmlFor:et,children:H}),(0,r.jsx)(b,{...Ne,selectedDate:Ct?.toDate("UTC"),onChange:It,error:typeof $=="string",required:be,size:ue,onClear:Ie?un:void 0,clearLabel:`${R} date`,disabled:V,id:et,ref:Kt,"aria-describedby":`${je}-hint ${je}-error`}),(0,r.jsx)(B.T,{as:"label",htmlFor:$t,children:z}),(0,r.jsx)(E,{size:ue,error:typeof $=="string",value:bt,onChange:mn,onClear:Ie&&bt!==void 0&&bt!=="00:00"?Be:void 0,clearLabel:`${R} time`,required:be,disabled:V,step:we,id:$t,"aria-describedby":`${je}-hint ${je}-error`})]}),(0,r.jsx)(N.J,{}),(0,r.jsx)(D.c,{})]})})}),T=(0,p.I)(console.warn),u=(A,R=!0)=>{if(typeof A=="string"){T("It looks like you're passing a string as representation of a Date to the DatePicker. This is deprecated, look to passing a Date instead.");const V=Date.parse(A);Number.isNaN(V)?A=new Date:A=new Date(V)}const H=A.toISOString();let z=(0,s.Aj)(H);return R&&(z=z.set({hour:0,minute:0})),(0,s.IO)(z)},b=(0,a.default)(c.a)`
  flex: 1 1 70%;
  min-width: 120px;
`,E=(0,a.default)(w.c)`
  flex: 1 1 30%;
  min-width: 140px;
`},33850:(Z,v,t)=>{"use strict";t.d(v,{h:()=>F,P:()=>I});var r=t(85893),n=t(87349),s=t(46449),a=t(23212),c=t(22304);const h=()=>(0,r.jsxs)(c.T,{children:[(0,r.jsx)("p",{role:"log","aria-live":"polite",id:a.V.Log,"aria-relevant":"all"}),(0,r.jsx)("p",{role:"status","aria-live":"polite",id:a.V.Status,"aria-relevant":"all"}),(0,r.jsx)("p",{role:"alert","aria-live":"assertive",id:a.V.Alert,"aria-relevant":"all"})]});var p=t(12255);const d=(0,s.createGlobalStyle)`
 /* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
  html,
  body,
  div,
  span,
  applet,
  object,
  iframe,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  blockquote,
  pre,
  a,
  abbr,
  acronym,
  address,
  big,
  cite,
  code,
  del,
  dfn,
  em,
  img,
  ins,
  kbd,
  q,
  s,
  samp,
  small,
  strike,
  strong,
  sub,
  sup,
  tt,
  var,
  b,
  u,
  i,
  center,
  dl,
  dt,
  dd,
  ol,
  ul,
  li,
  fieldset,
  form,
  label,
  legend,
  table,
  caption,
  tbody,
  tfoot,
  thead,
  tr,
  th,
  td,
  article,
  aside,
  canvas,
  details,
  embed,
  figure,
  figcaption,
  footer,
  header,
  hgroup,
  menu,
  nav,
  output,
  ruby,
  section,
  summary,
  time,
  mark,
  audio,
  video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
  }
  /* HTML5 display-role reset for older browsers */
  article,
  aside,
  details,
  figcaption,
  figure,
  footer,
  header,
  hgroup,
  menu,
  nav,
  section {
    display: block;
  }
  body {
    line-height: 1;
  }
  ol,
  ul {
    list-style: none;
  }
  blockquote,
  q {
    quotes: none;
  }
  blockquote:before,
  blockquote:after,
  q:before,
  q:after {
    content: "";
    content: none;
  }
  table {
    border-collapse: collapse;
    border-spacing: 0;
  }
  /* My styles */
  *,
  *:before,
  *:after {
    box-sizing: border-box;
  }

  *:focus-visible {
    outline: 2px solid ${({theme:U})=>U.colors.primary600};
    outline-offset: 2px;
  }

  /* Focusing the button with a mouse, touch, or stylus will show a subtle drop shadow. */
  *:focus:not(:focus-visible) {
    outline: none;
  }

  body,html{
    height: 100%;
  }
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  }

  button {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    font-size: 100%;
    cursor: pointer;
    font: inherit;
  }

  textarea,input {
    font: inherit;
  }

  .lock-body-scroll {
    height: 100vh;
    overflow-y: hidden;
  }
`,k=({children:U,theme:B=p.W})=>(0,r.jsxs)(s.ThemeProvider,{theme:B,children:[U,(0,r.jsx)(h,{}),(0,r.jsx)(d,{})]}),M="en-EN",C=()=>typeof navigator>"u"?M:navigator.language?navigator.language:M,[w,I]=(0,n.k)("StrapiDesignSystem",{locale:C()}),F=({locale:U=C(),...B})=>(0,r.jsx)(w,{locale:U,children:(0,r.jsx)(k,{...B})})},27848:(Z,v,t)=>{"use strict";t.d(v,{V:()=>U});var r=t(85893),n=t(46449),s=t(61376);const a=(B,N)=>`${B}${Math.floor(N*255).toString(16).padStart(2,"0")}`;var c=t(92058),h=t(48250),p=t(52624),d=t(16607),k=t(96987),M=t(11219),C=t(10574);const w=(0,n.default)(d.x)`
  inset: 0;
  background: ${({theme:B})=>a(B.colors.neutral800,.2)};
`,I=(0,n.default)(d.x)`
  max-width: ${412/16}rem;
  margin: 0 auto;
  overflow: hidden;
  margin-top: 10%;
`,F=(0,n.default)(k.k)`
  border-bottom: 1px solid ${({theme:B})=>B.colors.neutral150};
`,U=({onClose:B,title:N,as:D="h2",isOpen:x,id:T,...u})=>{const b=(0,c.M)(T);if((0,h.Z)(x),!x)return null;const E=`${b}-label`;return(0,r.jsx)(M.h,{children:(0,r.jsx)(w,{padding:8,position:"fixed",zIndex:4,children:(0,r.jsx)(p.i,{children:(0,r.jsx)(s.B,{onEscapeKeyDown:B,onPointerDownOutside:B,children:(0,r.jsxs)(I,{"aria-labelledby":E,"aria-modal":!0,background:"neutral0",hasRadius:!0,shadow:"popupShadow",role:"dialog",children:[(0,r.jsx)(F,{padding:6,justifyContent:"center",children:(0,r.jsx)(C.Z,{variant:"beta",as:D,id:E,children:N})}),(0,r.jsx)(d.x,{...u})]})})})})})}},32123:(Z,v,t)=>{"use strict";t.d(v,{a:()=>h});var r=t(85893),n=t(46449),s=t(16607),a=t(96987);const c=(0,n.default)(s.x)`
  svg {
    width: ${({theme:p})=>p.spaces[6]};
    height: ${({theme:p})=>p.spaces[6]};

    path {
      fill: ${({theme:p})=>p.colors.danger600};
    }
  }
`,h=({children:p,icon:d})=>(0,r.jsxs)(s.x,{paddingTop:8,paddingBottom:8,paddingLeft:6,paddingRight:6,children:[d&&(0,r.jsx)(c,{paddingBottom:2,children:(0,r.jsx)(a.k,{justifyContent:"center",children:d})}),p]})},81982:(Z,v,t)=>{"use strict";t.d(v,{c:()=>h});var r=t(85893),n=t(46449),s=t(16607),a=t(96987);const c=(0,n.default)(s.x)`
  border-top: 1px solid ${({theme:p})=>p.colors.neutral150};

  button {
    width: 100%;
    display: inline-flex;
    justify-content: center;
  }
`,h=({startAction:p,endAction:d})=>(0,r.jsx)(c,{padding:4,children:(0,r.jsxs)(a.k,{gap:2,children:[p,d]})})},61376:(Z,v,t)=>{"use strict";t.d(v,{B:()=>n});var r=t(64369);const n=r.fC},26910:(Z,v,t)=>{"use strict";t.d(v,{i:()=>c});var r=t(85893),n=t(46449),s=t(16607);const a=(0,n.default)(s.x)`
  height: 1px;
  border: none;
  /* If contained in a Flex parent we want to prevent the Divider to shink */
  flex-shrink: 0;
  ${({unsetMargin:h})=>h?"margin: 0;":""}
`,c=({unsetMargin:h=!0,...p})=>(0,r.jsx)(a,{...p,background:"neutral150",as:"hr",unsetMargin:h})},96912:(Z,v,t)=>{"use strict";t.d(v,{x:()=>p});var r=t(85893),n=t(46449),s=t(16607),a=t(96987),c=t(10574);const h=(0,n.default)(s.x)`
  svg {
    height: ${88/16}rem;
  }
`,p=({icon:d,content:k,action:M,hasRadius:C=!0,shadow:w="tableShadow"})=>(0,r.jsxs)(a.k,{alignItems:"center",direction:"column",padding:11,background:"neutral0",hasRadius:C,shadow:w,children:[(0,r.jsx)(h,{paddingBottom:6,"aria-hidden":!0,children:d}),(0,r.jsx)(s.x,{paddingBottom:4,children:(0,r.jsx)(c.Z,{variant:"delta",as:"p",textAlign:"center",textColor:"neutral600",children:k})}),M]})},78048:(Z,v,t)=>{"use strict";t.d(v,{g:()=>h});var r=t(85893),n=t(67294),s=t(35182),a=t(92058),c=t(16607);const h=(0,n.forwardRef)(({children:p,name:d,error:k,hint:M,id:C,required:w=!1,...I},F)=>{const U=(0,a.M)(C),B=(0,n.useMemo)(()=>({name:d,id:U,error:k,hint:M,required:w}),[k,U,M,d,w]);return(0,r.jsx)(c.x,{ref:F,...I,children:(0,r.jsx)(s.z.Provider,{value:B,children:p})})})},7659:(Z,v,t)=>{"use strict";t.d(v,{E:()=>p});var r=t(85893),n=t(67294),s=t(46449),a=t(96987),c=t(22304);const h=(0,s.default)(a.k)`
  font-size: 1.6rem;
  padding: 0;
`,p=(0,n.forwardRef)(({label:d,children:k,...M},C)=>(0,r.jsxs)(h,{justifyContent:"unset",background:"transparent",borderStyle:"none",type:"button",...M,as:"button",ref:C,children:[(0,r.jsx)(c.T,{as:"span",children:d}),(0,n.cloneElement)(k,{"aria-hidden":!0,focusable:!1})]}))},35182:(Z,v,t)=>{"use strict";t.d(v,{U:()=>s,z:()=>n});var r=t(67294);const n=(0,r.createContext)({id:"",required:!1}),s=()=>(0,r.useContext)(n)},61456:(Z,v,t)=>{"use strict";t.d(v,{c:()=>a});var r=t(85893),n=t(35182),s=t(10574);const a=()=>{const{id:c,error:h}=(0,n.U)();return!h||typeof h!="string"?null:(0,r.jsx)(s.Z,{variant:"pi",as:"p",id:`${c}-error`,textColor:"danger600","data-strapi-field-error":!0,children:h})}},90820:(Z,v,t)=>{"use strict";t.d(v,{J:()=>a});var r=t(85893),n=t(35182),s=t(10574);const a=()=>{const{id:c,hint:h,error:p}=(0,n.U)();return!h||p?null:(0,r.jsx)(s.Z,{variant:"pi",as:"p",id:`${c}-hint`,textColor:"neutral600",children:h})}},45094:(Z,v,t)=>{"use strict";t.d(v,{S:()=>C,_:()=>k});var r=t(85893),n=t(67294),s=t(46449),a=t(35182),c=t(66362),h=t(16607),p=t(96987);const d={S:6.5,M:10.5},k=(0,n.forwardRef)(({endAction:w,startAction:I,disabled:F=!1,onChange:U,size:B="M",...N},D)=>{const{id:x,error:T,hint:u,name:b,required:E}=(0,a.U)();let A;T?A=`${x}-error`:u&&(A=`${x}-hint`);const R=Boolean(T),H=z=>{!F&&U&&U(z)};return(0,r.jsxs)(C,{justifyContent:"space-between",hasError:R,disabled:F,children:[I?(0,r.jsx)(h.x,{paddingLeft:3,paddingRight:2,children:I}):null,(0,r.jsx)(M,{id:x,name:b,ref:D,"aria-describedby":A,"aria-invalid":R,"aria-disabled":F,disabled:F,"data-disabled":F?"":void 0,hasLeftAction:Boolean(I),hasRightAction:Boolean(w),onChange:H,"aria-required":E,$size:B,...N}),w?(0,r.jsx)(h.x,{paddingLeft:2,paddingRight:3,children:w}):null]})}),M=s.default.input`
  border: none;
  border-radius: ${({theme:w})=>w.borderRadius};
  padding-bottom: ${({$size:w})=>`${d[w]/16}rem`};
  padding-left: ${({theme:w,hasLeftAction:I})=>I?0:w.spaces[4]};
  padding-right: ${({theme:w,hasRightAction:I})=>I?0:w.spaces[4]};
  padding-top: ${({$size:w})=>`${d[w]/16}rem`};
  cursor: ${w=>w["aria-disabled"]?"not-allowed":void 0};

  color: ${({theme:w})=>w.colors.neutral800};
  font-weight: 400;
  font-size: ${w=>w.theme.fontSizes[2]};
  display: block;
  width: 100%;
  background: inherit;

  ::placeholder {
    color: ${({theme:w})=>w.colors.neutral500};
    opacity: 1;
  }

  &[aria-disabled='true'] {
    color: inherit;
  }

  //focus managed by InputWrapper
  &:focus {
    outline: none;
    box-shadow: none;
  }
`,C=(0,s.default)(p.k)`
  border: 1px solid ${({theme:w,hasError:I})=>I?w.colors.danger600:w.colors.neutral200};
  border-radius: ${({theme:w})=>w.borderRadius};
  background: ${({theme:w})=>w.colors.neutral0};
  ${(0,c.k3)()}

  ${({theme:w,disabled:I})=>I?(0,s.css)`
          color: ${w.colors.neutral600};
          background: ${w.colors.neutral150};
        `:void 0}
`},17734:(Z,v,t)=>{"use strict";t.d(v,{Q:()=>k});var r=t(85893),n=t(67294),s=t(46449),a=t(35182),c=t(61459),h=t(10574),p=t(96987);const d=(0,c.I)(console.warn),k=(0,n.forwardRef)(({children:I,action:F,required:U,...B},N)=>{const{id:D,required:x}=(0,a.U)(),T=x||U;return U!==void 0&&d('Deprecation warning: Usage of "required" prop in FieldLabel component is deprecated. This is discouraged and will be removed in the next major release. Please use the Field component to share the required prop.'),(0,r.jsxs)(M,{ref:N,variant:"pi",textColor:"neutral800",htmlFor:D,fontWeight:"bold",as:"label",...B,children:[I,T&&(0,r.jsx)(C,{textColor:"danger600",children:"*"}),F&&(0,r.jsx)(w,{marginLeft:1,children:F})]})}),M=(0,s.default)(h.Z)`
  display: flex;
  align-items: center;
`,C=(0,s.default)(h.Z)`
  line-height: 0;
`,w=(0,s.default)(p.k)`
  line-height: 0;

  svg path {
    fill: ${({theme:I})=>I.colors.neutral500};
  }
`},96987:(Z,v,t)=>{"use strict";t.d(v,{k:()=>c});var r=t(46449),n=t(33368),s=t(16607);const a={direction:!0},c=(0,r.default)(s.x).withConfig({shouldForwardProp:(h,p)=>!a[h]&&p(h)})`
  align-items: ${({alignItems:h="center"})=>h};
  display: ${({display:h="flex",inline:p})=>p?"inline-flex":h};
  flex-direction: ${({direction:h="row"})=>h};
  flex-shrink: ${({shrink:h})=>h};
  flex-wrap: ${({wrap:h})=>h};
  ${({gap:h,theme:p})=>(0,n.Z)("gap",h,p)};
  justify-content: ${({justifyContent:h})=>h};
`},52624:(Z,v,t)=>{"use strict";t.d(v,{i:()=>c});var r=t(85893),n=t(67294),s=t(66358),a=t(40840);const c=({onEscape:h,restoreFocus:p=!0,...d})=>{const k=(0,n.useRef)(null);(0,n.useEffect)(()=>{let C=null;return p&&(C=document.activeElement),()=>{C&&C.focus()}},[p]),(0,n.useEffect)(()=>{if(!k.current)return;const C=(0,s.p)(k.current);C.length>0?C[0].focus():console.warn("[FocusTrap]: it seems there are no focusable elements in the focus trap tree. Make sure there s at least one.")},[]);const M=C=>{if(C.key===a.y.ESCAPE&&h){h();return}if(C.key!==a.y.TAB)return;const w=(0,s.p)(k.current);if(w.length>0){const I=w[0],F=w[w.length-1];C.shiftKey?I===document.activeElement&&(C.preventDefault(),F.focus()):F===document.activeElement&&(C.preventDefault(),I.focus())}};return(0,r.jsx)("div",{ref:k,onKeyDown:M,...d})}},31988:(Z,v,t)=>{"use strict";t.d(v,{r:()=>h});var r=t(85893),n=t(46449),s=t(33368),a=t(16607);const c=(0,n.default)(a.x)`
  display: grid;
  grid-template-columns: repeat(${({gridCols:p})=>p}, 1fr);
  ${({theme:p,gap:d})=>(0,s.Z)("gap",d,p)}
`,h=p=>{const{gap:d="0",gridCols:k=12,...M}=p;return(0,r.jsx)(c,{gap:d,gridCols:k,...M})}},6498:(Z,v,t)=>{"use strict";t.d(v,{P:()=>s});var r=t(46449),n=t(16607);const s=(0,r.default)(n.x)`
  grid-column: span ${({col:a})=>a};
  max-width: 100%;

  ${({theme:a})=>a.mediaQueries.tablet} {
    grid-column: span ${({s:a})=>a};
  }

  ${({theme:a})=>a.mediaQueries.mobile} {
    grid-column: span ${({xs:a})=>a};
  }
`},85200:(Z,v,t)=>{"use strict";t.d(v,{J:()=>p});var r=t(85893),n=t(67294),s=t(46449),a=t(79581),c=t(16607);const h=(0,s.default)(c.x)`
  path {
    fill: ${({color:d,theme:k})=>(0,a.$)(k.colors,d,void 0)};
  }
  ${({theme:d,colors:k})=>k(d)}
`,p=n.forwardRef(({color:d="neutral600",colors:k=()=>"",...M},C)=>(0,r.jsx)(h,{ref:C,color:d,colors:k,...M}));p.displayName="Icon"},96208:(Z,v,t)=>{"use strict";t.d(v,{h:()=>w,o:()=>F});var r=t(85893),n=t(67294),s=t(46449),a=t(22304),c=t(81315),h=t(20501),p=t(96987);const d="tertiary",k="secondary",M=["S","M","L"],C=[d,k],w=n.forwardRef(({label:U,background:B,borderWidth:N,noBorder:D=!1,children:x,icon:T,disabled:u=!1,onClick:b,size:E=M[0],"aria-label":A,variant:R=C[0],...H},z)=>{const V=ee=>{!u&&b&&b(ee)},$=(0,r.jsxs)(I,{"aria-disabled":u,background:u?"neutral150":B,borderWidth:D?0:N,justifyContent:"center",...H,ref:z,size:E,onClick:V,variant:R,children:[(0,r.jsx)(a.T,{as:"span",children:U??A}),n.cloneElement(T||x,{"aria-hidden":!0,focusable:!1})]});return U?(0,r.jsx)(c.u,{label:U,children:$}):$}),I=(0,s.default)(h.Y)`
  background-color: ${({theme:U,variant:B})=>{if(B===k)return U.colors.primary100}};
  border-color: ${({theme:U,variant:B})=>B===k?U.colors.primary200:U.colors.neutral200};
  height: ${({theme:U,size:B})=>U.sizes.button[B]};
  width: ${({theme:U,size:B})=>U.sizes.button[B]};

  svg {
    g,
    path {
      fill: ${({theme:U,variant:B})=>B===k?U.colors.primary500:U.colors.neutral500};
    }
  }

  :hover,
  :focus {
    svg {
      g,
      path {
        fill: ${({theme:U,variant:B})=>B===k?U.colors.primary600:U.colors.neutral600};
      }
    }
  }

  &[aria-disabled='true'] {
    svg {
      path {
        fill: ${({theme:U})=>U.colors.neutral600};
      }
    }
  }
`,F=(0,s.default)(p.k)`
  & span:first-child button {
    border-left: 1px solid ${({theme:U})=>U.colors.neutral200};
    border-radius: ${({theme:U})=>`${U.borderRadius} 0 0 ${U.borderRadius}`};
  }

  & span:last-child button {
    border-radius: ${({theme:U})=>`0 ${U.borderRadius} ${U.borderRadius} 0`};
  }

  & ${I} {
    border-radius: 0;
    border-left: none;

    svg {
      path {
        fill: ${({theme:U})=>U.colors.neutral700};
      }
    }

    &:hover {
      background-color: ${({theme:U})=>U.colors.neutral100};

      svg {
        path {
          fill: ${({theme:U})=>U.colors.neutral800};
        }
      }
    }

    &:active {
      background-color: ${({theme:U})=>U.colors.neutral150};
      svg {
        path {
          fill: ${({theme:U})=>U.colors.neutral900};
        }
      }
    }

    &[aria-disabled='true'] {
      svg {
        path {
          fill: ${({theme:U})=>U.colors.neutral600};
        }
      }
    }
  }
`},81221:(Z,v,t)=>{"use strict";t.d(v,{V:()=>my});var r=t(85893),n=t(67294);const s=1024;let a=0;class c{constructor(e,i){this.from=e,this.to=i}}class h{constructor(e={}){this.id=a++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=k.match(e)),i=>{let l=e(i);return l===void 0?null:[this,l]}}}h.closedBy=new h({deserialize:f=>f.split(" ")}),h.openedBy=new h({deserialize:f=>f.split(" ")}),h.group=new h({deserialize:f=>f.split(" ")}),h.contextHash=new h({perNode:!0}),h.lookAhead=new h({perNode:!0}),h.mounted=new h({perNode:!0});class p{constructor(e,i,l){this.tree=e,this.overlay=i,this.parser=l}static get(e){return e&&e.props&&e.props[h.mounted.id]}}const d=Object.create(null);class k{constructor(e,i,l,m=0){this.name=e,this.props=i,this.id=l,this.flags=m}static define(e){let i=e.props&&e.props.length?Object.create(null):d,l=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),m=new k(e.name||"",i,e.id,l);if(e.props){for(let S of e.props)if(Array.isArray(S)||(S=S(m)),S){if(S[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");i[S[0].id]=S[1]}}return m}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let i=this.prop(h.group);return i?i.indexOf(e)>-1:!1}return this.id==e}static match(e){let i=Object.create(null);for(let l in e)for(let m of l.split(" "))i[m]=e[l];return l=>{for(let m=l.prop(h.group),S=-1;S<(m?m.length:0);S++){let j=i[S<0?l.name:m[S]];if(j)return j}}}}k.none=new k("",Object.create(null),0,8);class M{constructor(e){this.types=e;for(let i=0;i<e.length;i++)if(e[i].id!=i)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let i=[];for(let l of this.types){let m=null;for(let S of e){let j=S(l);j&&(m||(m=Object.assign({},l.props)),m[j[0].id]=j[1])}i.push(m?new k(l.name,m,l.id,l.flags):l)}return new M(i)}}const C=new WeakMap,w=new WeakMap;var I;(function(f){f[f.ExcludeBuffers=1]="ExcludeBuffers",f[f.IncludeAnonymous=2]="IncludeAnonymous",f[f.IgnoreMounts=4]="IgnoreMounts",f[f.IgnoreOverlays=8]="IgnoreOverlays"})(I||(I={}));class F{constructor(e,i,l,m,S){if(this.type=e,this.children=i,this.positions=l,this.length=m,this.props=null,S&&S.length){this.props=Object.create(null);for(let[j,Y]of S)this.props[typeof j=="number"?j:j.id]=Y}}toString(){let e=p.get(this);if(e&&!e.overlay)return e.tree.toString();let i="";for(let l of this.children){let m=l.toString();m&&(i&&(i+=","),i+=m)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(i.length?"("+i+")":""):i}cursor(e=0){return new V(this.topNode,e)}cursorAt(e,i=0,l=0){let m=C.get(this)||this.topNode,S=new V(m);return S.moveTo(e,i),C.set(this,S._tree),S}get topNode(){return new T(this,0,0,null)}resolve(e,i=0){let l=D(C.get(this)||this.topNode,e,i,!1);return C.set(this,l),l}resolveInner(e,i=0){let l=D(w.get(this)||this.topNode,e,i,!0);return w.set(this,l),l}resolveStack(e,i=0){return z(this,e,i)}iterate(e){let{enter:i,leave:l,from:m=0,to:S=this.length}=e,j=e.mode||0,Y=(j&I.IncludeAnonymous)>0;for(let te=this.cursor(j|I.IncludeAnonymous);;){let Ee=!1;if(te.from<=S&&te.to>=m&&(!Y&&te.type.isAnonymous||i(te)!==!1)){if(te.firstChild())continue;Ee=!0}for(;Ee&&l&&(Y||!te.type.isAnonymous)&&l(te),!te.nextSibling();){if(!te.parent())return;Ee=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let i in this.props)e.push([+i,this.props[i]]);return e}balance(e={}){return this.children.length<=8?this:X(k.none,this.children,this.positions,0,this.children.length,0,this.length,(i,l,m)=>new F(this.type,i,l,m,this.propValues),e.makeTree||((i,l,m)=>new F(k.none,i,l,m)))}static build(e){return ee(e)}}F.empty=new F(k.none,[],[],0);class U{constructor(e,i){this.buffer=e,this.index=i}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new U(this.buffer,this.index)}}class B{constructor(e,i,l){this.buffer=e,this.length=i,this.set=l}get type(){return k.none}toString(){let e=[];for(let i=0;i<this.buffer.length;)e.push(this.childString(i)),i=this.buffer[i+3];return e.join(",")}childString(e){let i=this.buffer[e],l=this.buffer[e+3],m=this.set.types[i],S=m.name;if(/\W/.test(S)&&!m.isError&&(S=JSON.stringify(S)),e+=4,l==e)return S;let j=[];for(;e<l;)j.push(this.childString(e)),e=this.buffer[e+3];return S+"("+j.join(",")+")"}findChild(e,i,l,m,S){let{buffer:j}=this,Y=-1;for(let te=e;te!=i&&!(N(S,m,j[te+1],j[te+2])&&(Y=te,l>0));te=j[te+3]);return Y}slice(e,i,l){let m=this.buffer,S=new Uint16Array(i-e),j=0;for(let Y=e,te=0;Y<i;){S[te++]=m[Y++],S[te++]=m[Y++]-l;let Ee=S[te++]=m[Y++]-l;S[te++]=m[Y++]-e,j=Math.max(j,Ee)}return new B(S,j,this.set)}}function N(f,e,i,l){switch(f){case-2:return i<e;case-1:return l>=e&&i<e;case 0:return i<e&&l>e;case 1:return i<=e&&l>e;case 2:return l>e;case 4:return!0}}function D(f,e,i,l){for(var m;f.from==f.to||(i<1?f.from>=e:f.from>e)||(i>-1?f.to<=e:f.to<e);){let j=!l&&f instanceof T&&f.index<0?null:f.parent;if(!j)return f;f=j}let S=l?0:I.IgnoreOverlays;if(l)for(let j=f,Y=j.parent;Y;j=Y,Y=j.parent)j instanceof T&&j.index<0&&((m=Y.enter(e,i,S))===null||m===void 0?void 0:m.from)!=j.from&&(f=Y);for(;;){let j=f.enter(e,i,S);if(!j)return f;f=j}}class x{cursor(e=0){return new V(this,e)}getChild(e,i=null,l=null){let m=u(this,e,i,l);return m.length?m[0]:null}getChildren(e,i=null,l=null){return u(this,e,i,l)}resolve(e,i=0){return D(this,e,i,!1)}resolveInner(e,i=0){return D(this,e,i,!0)}matchContext(e){return b(this,e)}enterUnfinishedNodesBefore(e){let i=this.childBefore(e),l=this;for(;i;){let m=i.lastChild;if(!m||m.to!=i.to)break;m.type.isError&&m.from==m.to?(l=i,i=m.prevSibling):i=m}return l}get node(){return this}get next(){return this.parent}}class T extends x{constructor(e,i,l,m){super(),this._tree=e,this.from=i,this.index=l,this._parent=m}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,i,l,m,S=0){for(let j=this;;){for(let{children:Y,positions:te}=j._tree,Ee=i>0?Y.length:-1;e!=Ee;e+=i){let Se=Y[e],Tt=te[e]+j.from;if(N(m,l,Tt,Tt+Se.length)){if(Se instanceof B){if(S&I.ExcludeBuffers)continue;let rn=Se.findChild(0,Se.buffer.length,i,l-Tt,m);if(rn>-1)return new A(new E(j,Se,e,Tt),null,rn)}else if(S&I.IncludeAnonymous||!Se.type.isAnonymous||$(Se)){let rn;if(!(S&I.IgnoreMounts)&&(rn=p.get(Se))&&!rn.overlay)return new T(rn.tree,Tt,e,j);let Nn=new T(Se,Tt,e,j);return S&I.IncludeAnonymous||!Nn.type.isAnonymous?Nn:Nn.nextChild(i<0?Se.children.length-1:0,i,l,m)}}}if(S&I.IncludeAnonymous||!j.type.isAnonymous||(j.index>=0?e=j.index+i:e=i<0?-1:j._parent._tree.children.length,j=j._parent,!j))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,i,l=0){let m;if(!(l&I.IgnoreOverlays)&&(m=p.get(this._tree))&&m.overlay){let S=e-this.from;for(let{from:j,to:Y}of m.overlay)if((i>0?j<=S:j<S)&&(i<0?Y>=S:Y>S))return new T(m.tree,m.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,i,l)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function u(f,e,i,l){let m=f.cursor(),S=[];if(!m.firstChild())return S;if(i!=null){for(;!m.type.is(i);)if(!m.nextSibling())return S}for(;;){if(l!=null&&m.type.is(l))return S;if(m.type.is(e)&&S.push(m.node),!m.nextSibling())return l==null?S:[]}}function b(f,e,i=e.length-1){for(let l=f.parent;i>=0;l=l.parent){if(!l)return!1;if(!l.type.isAnonymous){if(e[i]&&e[i]!=l.name)return!1;i--}}return!0}class E{constructor(e,i,l,m){this.parent=e,this.buffer=i,this.index=l,this.start=m}}class A extends x{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,i,l){super(),this.context=e,this._parent=i,this.index=l,this.type=e.buffer.set.types[e.buffer.buffer[l]]}child(e,i,l){let{buffer:m}=this.context,S=m.findChild(this.index+4,m.buffer[this.index+3],e,i-this.context.start,l);return S<0?null:new A(this.context,this,S)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,i,l=0){if(l&I.ExcludeBuffers)return null;let{buffer:m}=this.context,S=m.findChild(this.index+4,m.buffer[this.index+3],i>0?1:-1,e-this.context.start,i);return S<0?null:new A(this.context,this,S)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,i=e.buffer[this.index+3];return i<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new A(this.context,this._parent,i):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,i=this._parent?this._parent.index+4:0;return this.index==i?this.externalSibling(-1):new A(this.context,this._parent,e.findChild(i,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],i=[],{buffer:l}=this.context,m=this.index+4,S=l.buffer[this.index+3];if(S>m){let j=l.buffer[this.index+1];e.push(l.slice(m,S,j)),i.push(0)}return new F(this.type,e,i,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function R(f){if(!f.length)return null;if(f.length==1)return f[0];let e=0,i=f[0];for(let S=1;S<f.length;S++){let j=f[S];(j.from>i.from||j.to<i.to)&&(i=j,e=S)}let l=i instanceof T&&i.index<0?null:i.parent,m=f.slice();return l?m[e]=l:m.splice(e,1),new H(m,i)}class H{constructor(e,i){this.heads=e,this.node=i}get next(){return R(this.heads)}}function z(f,e,i){let l=f.resolveInner(e,i),m=null;for(let S=l instanceof T?l:l.context.parent;S;S=S.parent)if(S.index<0){let j=S.parent;(m||(m=[l])).push(j.resolve(e,i)),S=j}else{let j=p.get(S.tree);if(j&&j.overlay&&j.overlay[0].from<=e&&j.overlay[j.overlay.length-1].to>=e){let Y=new T(j.tree,j.overlay[0].from+S.from,0,null);(m||(m=[l])).push(D(Y,e,i,!1))}}return m?R(m):l}class V{get name(){return this.type.name}constructor(e,i=0){if(this.mode=i,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof T)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let l=e._parent;l;l=l._parent)this.stack.unshift(l.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,i){this.index=e;let{start:l,buffer:m}=this.buffer;return this.type=i||m.set.types[m.buffer[e]],this.from=l+m.buffer[e+1],this.to=l+m.buffer[e+2],!0}yield(e){return e?e instanceof T?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,i,l){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,i,l,this.mode));let{buffer:m}=this.buffer,S=m.findChild(this.index+4,m.buffer[this.index+3],e,i-this.buffer.start,l);return S<0?!1:(this.stack.push(this.index),this.yieldBuf(S))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,i,l=this.mode){return this.buffer?l&I.ExcludeBuffers?!1:this.enterChild(1,e,i):this.yield(this._tree.enter(e,i,l))}parent(){if(!this.buffer)return this.yieldNode(this.mode&I.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&I.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:i}=this.buffer,l=this.stack.length-1;if(e<0){let m=l<0?0:this.stack[l]+4;if(this.index!=m)return this.yieldBuf(i.findChild(m,this.index,-1,0,4))}else{let m=i.buffer[this.index+3];if(m<(l<0?i.buffer.length:i.buffer[this.stack[l]+3]))return this.yieldBuf(m)}return l<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let i,l,{buffer:m}=this;if(m){if(e>0){if(this.index<m.buffer.buffer.length)return!1}else for(let S=0;S<this.index;S++)if(m.buffer.buffer[S+3]<this.index)return!1;({index:i,parent:l}=m)}else({index:i,_parent:l}=this._tree);for(;l;{index:i,_parent:l}=l)if(i>-1)for(let S=i+e,j=e<0?-1:l._tree.children.length;S!=j;S+=e){let Y=l._tree.children[S];if(this.mode&I.IncludeAnonymous||Y instanceof B||!Y.type.isAnonymous||$(Y))return!1}return!0}move(e,i){if(i&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,i=0){for(;(this.from==this.to||(i<1?this.from>=e:this.from>e)||(i>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,i););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,i=null,l=0;if(e&&e.context==this.buffer){e:for(let m=this.index,S=this.stack.length;S>=0;){for(let j=e;j;j=j._parent)if(j.index==m){if(m==this.index)return j;i=j,l=S+1;break e}m=this.stack[--S]}}for(let m=l;m<this.stack.length;m++)i=new A(this.buffer,i,this.stack[m]);return this.bufferNode=new A(this.buffer,i,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,i){for(let l=0;;){let m=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){l++;continue}this.type.isAnonymous||(m=!0)}for(;m&&i&&i(this),m=this.type.isAnonymous,!this.nextSibling();){if(!l)return;this.parent(),l--,m=!0}}}matchContext(e){if(!this.buffer)return b(this.node,e);let{buffer:i}=this.buffer,{types:l}=i.set;for(let m=e.length-1,S=this.stack.length-1;m>=0;S--){if(S<0)return b(this.node,e,m);let j=l[i.buffer[this.stack[S]]];if(!j.isAnonymous){if(e[m]&&e[m]!=j.name)return!1;m--}}return!0}}function $(f){return f.children.some(e=>e instanceof B||!e.type.isAnonymous||$(e))}function ee(f){var e;let{buffer:i,nodeSet:l,maxBufferLength:m=s,reused:S=[],minRepeatType:j=l.types.length}=f,Y=Array.isArray(i)?new U(i,i.length):i,te=l.types,Ee=0,Se=0;function Tt(Zi,io,po,Mo,ks){let{id:Xo,start:us,end:ja,size:Ul}=Y,iu=Se;for(;Ul<0;)if(Y.next(),Ul==-1){let ou=S[Xo];po.push(ou),Mo.push(us-Zi);return}else if(Ul==-3){Ee=Xo;return}else if(Ul==-4){Se=Xo;return}else throw new RangeError(`Unrecognized record size: ${Ul}`);let Vu=te[Xo],Au,Oc,Pc=us-Zi;if(ja-us<=m&&(Oc=Gr(Y.pos-io,ks))){let ou=new Uint16Array(Oc.size-Oc.skip),Hl=Y.pos-Oc.size,Wc=ou.length;for(;Y.pos>Hl;)Wc=Zr(Oc.start,ou,Wc);Au=new B(ou,ja-Oc.start,l),Pc=Oc.start-Zi}else{let ou=Y.pos-Ul;Y.next();let Hl=[],Wc=[],c0=Xo>=j?Xo:-1,bm=0,F1=ja;for(;Y.pos>ou;)c0>=0&&Y.id==c0&&Y.size>=0?(Y.end<=F1-m&&(Nn(Hl,Wc,us,bm,Y.end,F1,c0,iu),bm=Hl.length,F1=Y.end),Y.next()):Tt(us,ou,Hl,Wc,c0);if(c0>=0&&bm>0&&bm<Hl.length&&Nn(Hl,Wc,us,bm,us,F1,c0,iu),Hl.reverse(),Wc.reverse(),c0>-1&&bm>0){let Ub=rn(Vu);Au=X(Vu,Hl,Wc,0,Hl.length,0,ja-us,Ub,Ub)}else Au=sr(Vu,Hl,Wc,ja-us,iu-ja)}po.push(Au),Mo.push(Pc)}function rn(Zi){return(io,po,Mo)=>{let ks=0,Xo=io.length-1,us,ja;if(Xo>=0&&(us=io[Xo])instanceof F){if(!Xo&&us.type==Zi&&us.length==Mo)return us;(ja=us.prop(h.lookAhead))&&(ks=po[Xo]+us.length+ja)}return sr(Zi,io,po,Mo,ks)}}function Nn(Zi,io,po,Mo,ks,Xo,us,ja){let Ul=[],iu=[];for(;Zi.length>Mo;)Ul.push(Zi.pop()),iu.push(io.pop()+po-ks);Zi.push(sr(l.types[us],Ul,iu,Xo-ks,ja-Xo)),io.push(ks-po)}function sr(Zi,io,po,Mo,ks=0,Xo){if(Ee){let us=[h.contextHash,Ee];Xo=Xo?[us].concat(Xo):[us]}if(ks>25){let us=[h.lookAhead,ks];Xo=Xo?[us].concat(Xo):[us]}return new F(Zi,io,po,Mo,Xo)}function Gr(Zi,io){let po=Y.fork(),Mo=0,ks=0,Xo=0,us=po.end-m,ja={size:0,start:0,skip:0};e:for(let Ul=po.pos-Zi;po.pos>Ul;){let iu=po.size;if(po.id==io&&iu>=0){ja.size=Mo,ja.start=ks,ja.skip=Xo,Xo+=4,Mo+=4,po.next();continue}let Vu=po.pos-iu;if(iu<0||Vu<Ul||po.start<us)break;let Au=po.id>=j?4:0,Oc=po.start;for(po.next();po.pos>Vu;){if(po.size<0)if(po.size==-3)Au+=4;else break e;else po.id>=j&&(Au+=4);po.next()}ks=Oc,Mo+=iu,Xo+=Au}return(io<0||Mo==Zi)&&(ja.size=Mo,ja.start=ks,ja.skip=Xo),ja.size>4?ja:void 0}function Zr(Zi,io,po){let{id:Mo,start:ks,end:Xo,size:us}=Y;if(Y.next(),us>=0&&Mo<j){let ja=po;if(us>4){let Ul=Y.pos-(us-4);for(;Y.pos>Ul;)po=Zr(Zi,io,po)}io[--po]=ja,io[--po]=Xo-Zi,io[--po]=ks-Zi,io[--po]=Mo}else us==-3?Ee=Mo:us==-4&&(Se=Mo);return po}let _i=[],ro=[];for(;Y.pos>0;)Tt(f.start||0,f.bufferStart||0,_i,ro,-1);let To=(e=f.length)!==null&&e!==void 0?e:_i.length?ro[0]+_i[0].length:0;return new F(te[f.topID],_i.reverse(),ro.reverse(),To)}const q=new WeakMap;function oe(f,e){if(!f.isAnonymous||e instanceof B||e.type!=f)return 1;let i=q.get(e);if(i==null){i=1;for(let l of e.children){if(l.type!=f||!(l instanceof F)){i=1;break}i+=oe(f,l)}q.set(e,i)}return i}function X(f,e,i,l,m,S,j,Y,te){let Ee=0;for(let sr=l;sr<m;sr++)Ee+=oe(f,e[sr]);let Se=Math.ceil(Ee*1.5/8),Tt=[],rn=[];function Nn(sr,Gr,Zr,_i,ro){for(let To=Zr;To<_i;){let Zi=To,io=Gr[To],po=oe(f,sr[To]);for(To++;To<_i;To++){let Mo=oe(f,sr[To]);if(po+Mo>=Se)break;po+=Mo}if(To==Zi+1){if(po>Se){let Mo=sr[Zi];Nn(Mo.children,Mo.positions,0,Mo.children.length,Gr[Zi]+ro);continue}Tt.push(sr[Zi])}else{let Mo=Gr[To-1]+sr[To-1].length-io;Tt.push(X(f,sr,Gr,Zi,To,io,Mo,null,te))}rn.push(io+ro-S)}}return Nn(e,i,l,m,0),(Y||te)(Tt,rn,j)}class pe{constructor(){this.map=new WeakMap}setBuffer(e,i,l){let m=this.map.get(e);m||this.map.set(e,m=new Map),m.set(i,l)}getBuffer(e,i){let l=this.map.get(e);return l&&l.get(i)}set(e,i){e instanceof A?this.setBuffer(e.context.buffer,e.index,i):e instanceof T&&this.map.set(e.tree,i)}get(e){return e instanceof A?this.getBuffer(e.context.buffer,e.index):e instanceof T?this.map.get(e.tree):void 0}cursorSet(e,i){e.buffer?this.setBuffer(e.buffer.buffer,e.index,i):this.map.set(e.tree,i)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class Ie{constructor(e,i,l,m,S=!1,j=!1){this.from=e,this.to=i,this.tree=l,this.offset=m,this.open=(S?1:0)|(j?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,i=[],l=!1){let m=[new Ie(0,e.length,e,0,!1,l)];for(let S of i)S.to>e.length&&m.push(S);return m}static applyChanges(e,i,l=128){if(!i.length)return e;let m=[],S=1,j=e.length?e[0]:null;for(let Y=0,te=0,Ee=0;;Y++){let Se=Y<i.length?i[Y]:null,Tt=Se?Se.fromA:1e9;if(Tt-te>=l)for(;j&&j.from<Tt;){let rn=j;if(te>=rn.from||Tt<=rn.to||Ee){let Nn=Math.max(rn.from,te)-Ee,sr=Math.min(rn.to,Tt)-Ee;rn=Nn>=sr?null:new Ie(Nn,sr,rn.tree,rn.offset+Ee,Y>0,!!Se)}if(rn&&m.push(rn),j.to>Tt)break;j=S<e.length?e[S++]:null}if(!Se)break;te=Se.toA,Ee=Se.toA-Se.toB}return m}}class se{startParse(e,i,l){return typeof e=="string"&&(e=new be(e)),l=l?l.length?l.map(m=>new c(m.from,m.to)):[new c(0,0)]:[new c(0,e.length)],this.createParse(e,i||[],l)}parse(e,i,l){let m=this.startParse(e,i,l);for(;;){let S=m.advance();if(S)return S}}}class be{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,i){return this.string.slice(e,i)}}function fe(f){return(e,i,l,m)=>new Ce(e,f,i,l,m)}class ue{constructor(e,i,l,m,S){if(this.parser=e,this.parse=i,this.overlay=l,this.target=m,this.ranges=S,!S.length||S.some(j=>j.from>=j.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(S))}}class we{constructor(e,i,l,m,S,j,Y){this.parser=e,this.predicate=i,this.mounts=l,this.index=m,this.start=S,this.target=j,this.prev=Y,this.depth=0,this.ranges=[]}}const Me=new h({perNode:!0});class Ce{constructor(e,i,l,m,S){this.nest=i,this.input=l,this.fragments=m,this.ranges=S,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let l=this.baseParse.advance();if(!l)return null;if(this.baseParse=null,this.baseTree=l,this.startInner(),this.stoppedAt!=null)for(let m of this.inner)m.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let l=this.baseTree;return this.stoppedAt!=null&&(l=new F(l.type,l.children,l.positions,l.length,l.propValues.concat([[Me,this.stoppedAt]]))),l}let e=this.inner[this.innerDone],i=e.parse.advance();if(i){this.innerDone++;let l=Object.assign(Object.create(null),e.target.props);l[h.mounted.id]=new p(i,e.overlay,e.parser),e.target.props=l}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let i=this.innerDone;i<this.inner.length;i++)this.inner[i].ranges[0].from<e&&(e=Math.min(e,this.inner[i].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let i=this.innerDone;i<this.inner.length;i++)this.inner[i].parse.stopAt(e)}startInner(){let e=new ln(this.fragments),i=null,l=null,m=new V(new T(this.baseTree,this.ranges[0].from,0,null),I.IncludeAnonymous|I.IgnoreMounts);e:for(let S,j;this.stoppedAt==null||m.from<this.stoppedAt;){let Y=!0,te;if(e.hasNode(m)){if(i){let Ee=i.mounts.find(Se=>Se.frag.from<=m.from&&Se.frag.to>=m.to&&Se.mount.overlay);if(Ee)for(let Se of Ee.mount.overlay){let Tt=Se.from+Ee.pos,rn=Se.to+Ee.pos;Tt>=m.from&&rn<=m.to&&!i.ranges.some(Nn=>Nn.from<rn&&Nn.to>Tt)&&i.ranges.push({from:Tt,to:rn})}}Y=!1}else if(l&&(j=Ne(l.ranges,m.from,m.to)))Y=j!=2;else if(!m.type.isAnonymous&&m.from<m.to&&(S=this.nest(m,this.input))){m.tree||mt(m);let Ee=e.findMounts(m.from,S.parser);if(typeof S.overlay=="function")i=new we(S.parser,S.overlay,Ee,this.inner.length,m.from,m.tree,i);else{let Se=$e(this.ranges,S.overlay||[new c(m.from,m.to)]);Se.length&&this.inner.push(new ue(S.parser,S.parser.startParse(this.input,bt(Ee,Se),Se),S.overlay?S.overlay.map(Tt=>new c(Tt.from-m.from,Tt.to-m.from)):null,m.tree,Se)),S.overlay?Se.length&&(l={ranges:Se,depth:0,prev:l}):Y=!1}}else i&&(te=i.predicate(m))&&(te===!0&&(te=new c(m.from,m.to)),te.from<te.to&&i.ranges.push(te));if(Y&&m.firstChild())i&&i.depth++,l&&l.depth++;else for(;!m.nextSibling();){if(!m.parent())break e;if(i&&!--i.depth){let Ee=$e(this.ranges,i.ranges);Ee.length&&this.inner.splice(i.index,0,new ue(i.parser,i.parser.startParse(this.input,bt(i.mounts,Ee),Ee),i.ranges.map(Se=>new c(Se.from-i.start,Se.to-i.start)),i.target,Ee)),i=i.prev}l&&!--l.depth&&(l=l.prev)}}}}function Ne(f,e,i){for(let l of f){if(l.from>=i)break;if(l.to>e)return l.from<=e&&l.to>=i?2:1}return 0}function Ye(f,e,i,l,m,S){if(e<i){let j=f.buffer[e+1];l.push(f.slice(e,i,j)),m.push(j-S)}}function mt(f){let{node:e}=f,i=0;do f.parent(),i++;while(!f.tree);let l=0,m=f.tree,S=0;for(;S=m.positions[l]+f.from,!(S<=e.from&&S+m.children[l].length>=e.to);l++);let j=m.children[l],Y=j.buffer;function te(Ee,Se,Tt,rn,Nn){let sr=Ee;for(;Y[sr+2]+S<=e.from;)sr=Y[sr+3];let Gr=[],Zr=[];Ye(j,Ee,sr,Gr,Zr,rn);let _i=Y[sr+1],ro=Y[sr+2],To=_i+S==e.from&&ro+S==e.to&&Y[sr]==e.type.id;return Gr.push(To?e.toTree():te(sr+4,Y[sr+3],j.set.types[Y[sr]],_i,ro-_i)),Zr.push(_i-rn),Ye(j,Y[sr+3],Se,Gr,Zr,rn),new F(Tt,Gr,Zr,Nn)}m.children[l]=te(0,Y.length,k.none,0,j.length);for(let Ee=0;Ee<=i;Ee++)f.childAfter(e.from)}class Ct{constructor(e,i){this.offset=i,this.done=!1,this.cursor=e.cursor(I.IncludeAnonymous|I.IgnoreMounts)}moveTo(e){let{cursor:i}=this,l=e-this.offset;for(;!this.done&&i.from<l;)i.to>=e&&i.enter(l,1,I.IgnoreOverlays|I.ExcludeBuffers)||i.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let i=this.cursor.tree;;){if(i==e.tree)return!0;if(i.children.length&&i.positions[0]==0&&i.children[0]instanceof F)i=i.children[0];else break}return!1}}class ln{constructor(e){var i;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let l=this.curFrag=e[0];this.curTo=(i=l.tree.prop(Me))!==null&&i!==void 0?i:l.to,this.inner=new Ct(l.tree,-l.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let i=this.curFrag=this.fragments[this.fragI];this.curTo=(e=i.tree.prop(Me))!==null&&e!==void 0?e:i.to,this.inner=new Ct(i.tree,-i.offset)}}findMounts(e,i){var l;let m=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let S=this.inner.cursor.node;S;S=S.parent){let j=(l=S.tree)===null||l===void 0?void 0:l.prop(h.mounted);if(j&&j.parser==i)for(let Y=this.fragI;Y<this.fragments.length;Y++){let te=this.fragments[Y];if(te.from>=S.to)break;te.tree==this.curFrag.tree&&m.push({frag:te,pos:S.from-te.offset,mount:j})}}}return m}}function $e(f,e){let i=null,l=e;for(let m=1,S=0;m<f.length;m++){let j=f[m-1].to,Y=f[m].from;for(;S<l.length;S++){let te=l[S];if(te.from>=Y)break;te.to<=j||(i||(l=i=e.slice()),te.from<j?(i[S]=new c(te.from,j),te.to>Y&&i.splice(S+1,0,new c(Y,te.to))):te.to>Y?i[S--]=new c(Y,te.to):i.splice(S--,1))}}return l}function Qe(f,e,i,l){let m=0,S=0,j=!1,Y=!1,te=-1e9,Ee=[];for(;;){let Se=m==f.length?1e9:j?f[m].to:f[m].from,Tt=S==e.length?1e9:Y?e[S].to:e[S].from;if(j!=Y){let rn=Math.max(te,i),Nn=Math.min(Se,Tt,l);rn<Nn&&Ee.push(new c(rn,Nn))}if(te=Math.min(Se,Tt),te==1e9)break;Se==te&&(j?(j=!1,m++):j=!0),Tt==te&&(Y?(Y=!1,S++):Y=!0)}return Ee}function bt(f,e){let i=[];for(let{pos:l,mount:m,frag:S}of f){let j=l+(m.overlay?m.overlay[0].from:0),Y=j+m.tree.length,te=Math.max(S.from,j),Ee=Math.min(S.to,Y);if(m.overlay){let Se=m.overlay.map(rn=>new c(rn.from+l,rn.to+l)),Tt=Qe(e,Se,te,Ee);for(let rn=0,Nn=te;;rn++){let sr=rn==Tt.length,Gr=sr?Ee:Tt[rn].from;if(Gr>Nn&&i.push(new Ie(Nn,Gr,m.tree,-j,S.from>=Nn||S.openStart,S.to<=Gr||S.openEnd)),sr)break;Nn=Tt[rn].to}}else i.push(new Ie(te,Ee,m.tree,-j,S.from>=j||S.openStart,S.to<=Y||S.openEnd))}return i}class It{constructor(e,i,l,m,S,j,Y,te,Ee,Se=0,Tt){this.p=e,this.stack=i,this.state=l,this.reducePos=m,this.pos=S,this.score=j,this.buffer=Y,this.bufferBase=te,this.curContext=Ee,this.lookAhead=Se,this.parent=Tt}toString(){return`[${this.stack.filter((e,i)=>i%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,i,l=0){let m=e.parser.context;return new It(e,[],i,l,l,0,[],0,m?new mn(m,m.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,i){this.stack.push(this.state,i,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var i;let l=e>>19,m=e&65535,{parser:S}=this.p,j=S.dynamicPrecedence(m);if(j&&(this.score+=j),l==0){this.pushState(S.getGoto(this.state,m,!0),this.reducePos),m<S.minRepeatTerm&&this.storeNode(m,this.reducePos,this.reducePos,4,!0),this.reduceContext(m,this.reducePos);return}let Y=this.stack.length-(l-1)*3-(e&262144?6:0),te=Y?this.stack[Y-2]:this.p.ranges[0].from,Ee=this.reducePos-te;Ee>=2e3&&!(!((i=this.p.parser.nodeSet.types[m])===null||i===void 0)&&i.isAnonymous)&&(te==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=Ee):this.p.lastBigReductionSize<Ee&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=te,this.p.lastBigReductionSize=Ee));let Se=Y?this.stack[Y-1]:0,Tt=this.bufferBase+this.buffer.length-Se;if(m<S.minRepeatTerm||e&131072){let rn=S.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(m,te,rn,Tt+4,!0)}if(e&262144)this.state=this.stack[Y];else{let rn=this.stack[Y-3];this.state=S.getGoto(rn,m,!0)}for(;this.stack.length>Y;)this.stack.pop();this.reduceContext(m,te)}storeNode(e,i,l,m=4,S=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let j=this,Y=this.buffer.length;if(Y==0&&j.parent&&(Y=j.bufferBase-j.parent.bufferBase,j=j.parent),Y>0&&j.buffer[Y-4]==0&&j.buffer[Y-1]>-1){if(i==l)return;if(j.buffer[Y-2]>=i){j.buffer[Y-2]=l;return}}}if(!S||this.pos==l)this.buffer.push(e,i,l,m);else{let j=this.buffer.length;if(j>0&&this.buffer[j-4]!=0)for(;j>0&&this.buffer[j-2]>l;)this.buffer[j]=this.buffer[j-4],this.buffer[j+1]=this.buffer[j-3],this.buffer[j+2]=this.buffer[j-2],this.buffer[j+3]=this.buffer[j-1],j-=4,m>4&&(m-=4);this.buffer[j]=e,this.buffer[j+1]=i,this.buffer[j+2]=l,this.buffer[j+3]=m}}shift(e,i,l,m){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=m,this.shiftContext(i,l),i<=this.p.parser.maxNode&&this.buffer.push(i,l,m,4);else{let S=e,{parser:j}=this.p;(m>this.pos||i<=j.maxNode)&&(this.pos=m,j.stateFlag(S,1)||(this.reducePos=m)),this.pushState(S,l),this.shiftContext(i,l),i<=j.maxNode&&this.buffer.push(i,l,m,4)}}apply(e,i,l,m){e&65536?this.reduce(e):this.shift(e,i,l,m)}useNode(e,i){let l=this.p.reused.length-1;(l<0||this.p.reused[l]!=e)&&(this.p.reused.push(e),l++);let m=this.pos;this.reducePos=this.pos=m+e.length,this.pushState(i,m),this.buffer.push(l,m,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,i=e.buffer.length;for(;i>0&&e.buffer[i-2]>e.reducePos;)i-=4;let l=e.buffer.slice(i),m=e.bufferBase+i;for(;e&&m==e.bufferBase;)e=e.parent;return new It(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,l,m,this.curContext,this.lookAhead,e)}recoverByDelete(e,i){let l=e<=this.p.parser.maxNode;l&&this.storeNode(e,this.pos,i,4),this.storeNode(0,this.pos,i,l?8:4),this.pos=this.reducePos=i,this.score-=190}canShift(e){for(let i=new un(this);;){let l=this.p.parser.stateSlot(i.state,4)||this.p.parser.hasAction(i.state,e);if(l==0)return!1;if(!(l&65536))return!0;i.reduce(l)}}recoverByInsert(e){if(this.stack.length>=300)return[];let i=this.p.parser.nextStates(this.state);if(i.length>4<<1||this.stack.length>=120){let m=[];for(let S=0,j;S<i.length;S+=2)(j=i[S+1])!=this.state&&this.p.parser.hasAction(j,e)&&m.push(i[S],j);if(this.stack.length<120)for(let S=0;m.length<4<<1&&S<i.length;S+=2){let j=i[S+1];m.some((Y,te)=>te&1&&Y==j)||m.push(i[S],j)}i=m}let l=[];for(let m=0;m<i.length&&l.length<4;m+=2){let S=i[m+1];if(S==this.state)continue;let j=this.split();j.pushState(S,this.pos),j.storeNode(0,j.pos,j.pos,4,!0),j.shiftContext(i[m],this.pos),j.reducePos=this.pos,j.score-=200,l.push(j)}return l}forceReduce(){let{parser:e}=this.p,i=e.stateSlot(this.state,5);if(!(i&65536))return!1;if(!e.validAction(this.state,i)){let l=i>>19,m=i&65535,S=this.stack.length-l*3;if(S<0||e.getGoto(this.stack[S],m,!1)<0){let j=this.findForcedReduction();if(j==null)return!1;i=j}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(i),!0}findForcedReduction(){let{parser:e}=this.p,i=[],l=(m,S)=>{if(!i.includes(m))return i.push(m),e.allActions(m,j=>{if(!(j&393216))if(j&65536){let Y=(j>>19)-S;if(Y>1){let te=j&65535,Ee=this.stack.length-Y*3;if(Ee>=0&&e.getGoto(this.stack[Ee],te,!1)>=0)return Y<<19|65536|te}}else{let Y=l(j,S+1);if(Y!=null)return Y}})};return l(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let i=0;i<this.stack.length;i+=3)if(this.stack[i]!=e.stack[i])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,i){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(i)))}reduceContext(e,i){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(i)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let i=new mn(this.curContext.tracker,e);i.hash!=this.curContext.hash&&this.emitContext(),this.curContext=i}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class mn{constructor(e,i){this.tracker=e,this.context=i,this.hash=e.strict?e.hash(i):0}}class un{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let i=e&65535,l=e>>19;l==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(l-1)*3;let m=this.start.p.parser.getGoto(this.stack[this.base-3],i,!0);this.state=m}}class Be{constructor(e,i,l){this.stack=e,this.pos=i,this.index=l,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,i=e.bufferBase+e.buffer.length){return new Be(e,i,i-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new Be(this.stack,this.pos,this.index)}}function je(f,e=Uint16Array){if(typeof f!="string")return f;let i=null;for(let l=0,m=0;l<f.length;){let S=0;for(;;){let j=f.charCodeAt(l++),Y=!1;if(j==126){S=65535;break}j>=92&&j--,j>=34&&j--;let te=j-32;if(te>=46&&(te-=46,Y=!0),S+=te,Y)break;S*=46}i?i[m++]=S:i=new e(S)}return i}class $t{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const et=new $t;class Kt{constructor(e,i){this.input=e,this.ranges=i,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=et,this.rangeIndex=0,this.pos=this.chunkPos=i[0].from,this.range=i[0],this.end=i[i.length-1].to,this.readNext()}resolveOffset(e,i){let l=this.range,m=this.rangeIndex,S=this.pos+e;for(;S<l.from;){if(!m)return null;let j=this.ranges[--m];S-=l.from-j.to,l=j}for(;i<0?S>l.to:S>=l.to;){if(m==this.ranges.length-1)return null;let j=this.ranges[++m];S+=j.from-l.to,l=j}return S}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let i of this.ranges)if(i.to>e)return Math.max(e,i.from);return this.end}peek(e){let i=this.chunkOff+e,l,m;if(i>=0&&i<this.chunk.length)l=this.pos+e,m=this.chunk.charCodeAt(i);else{let S=this.resolveOffset(e,1);if(S==null)return-1;if(l=S,l>=this.chunk2Pos&&l<this.chunk2Pos+this.chunk2.length)m=this.chunk2.charCodeAt(l-this.chunk2Pos);else{let j=this.rangeIndex,Y=this.range;for(;Y.to<=l;)Y=this.ranges[++j];this.chunk2=this.input.chunk(this.chunk2Pos=l),l+this.chunk2.length>Y.to&&(this.chunk2=this.chunk2.slice(0,Y.to-l)),m=this.chunk2.charCodeAt(0)}}return l>=this.token.lookAhead&&(this.token.lookAhead=l+1),m}acceptToken(e,i=0){let l=i?this.resolveOffset(i,-1):this.pos;if(l==null||l<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=l}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:i}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=i,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),i=this.pos+e.length;this.chunk=i>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,i){if(i?(this.token=i,i.start=e,i.lookAhead=e+1,i.value=i.extended=-1):this.token=et,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,i){if(e>=this.chunkPos&&i<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,i-this.chunkPos);if(e>=this.chunk2Pos&&i<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,i-this.chunk2Pos);if(e>=this.range.from&&i<=this.range.to)return this.input.read(e,i);let l="";for(let m of this.ranges){if(m.from>=i)break;m.to>e&&(l+=this.input.read(Math.max(m.from,e),Math.min(m.to,i)))}return l}}class kn{constructor(e,i){this.data=e,this.id=i}token(e,i){let{parser:l}=i.p;ot(this.data,e,i,this.id,l.data,l.tokenPrecTable)}}kn.prototype.contextual=kn.prototype.fallback=kn.prototype.extend=!1;class Tn{constructor(e,i,l){this.precTable=i,this.elseToken=l,this.data=typeof e=="string"?je(e):e}token(e,i){let l=e.pos,m=0;for(;;){let S=e.next<0,j=e.resolveOffset(1,1);if(ot(this.data,e,i,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(S||m++,j==null)break;e.reset(j,e.token)}m&&(e.reset(l,e.token),e.acceptToken(this.elseToken,m))}}Tn.prototype.contextual=kn.prototype.fallback=kn.prototype.extend=!1;class ht{constructor(e,i={}){this.token=e,this.contextual=!!i.contextual,this.fallback=!!i.fallback,this.extend=!!i.extend}}function ot(f,e,i,l,m,S){let j=0,Y=1<<l,{dialect:te}=i.p.parser;e:for(;Y&f[j];){let Ee=f[j+1];for(let Nn=j+3;Nn<Ee;Nn+=2)if((f[Nn+1]&Y)>0){let sr=f[Nn];if(te.allows(sr)&&(e.token.value==-1||e.token.value==sr||wt(sr,e.token.value,m,S))){e.acceptToken(sr);break}}let Se=e.next,Tt=0,rn=f[j+2];if(e.next<0&&rn>Tt&&f[Ee+rn*3-3]==65535&&f[Ee+rn*3-3]==65535){j=f[Ee+rn*3-1];continue e}for(;Tt<rn;){let Nn=Tt+rn>>1,sr=Ee+Nn+(Nn<<1),Gr=f[sr],Zr=f[sr+1]||65536;if(Se<Gr)rn=Nn;else if(Se>=Zr)Tt=Nn+1;else{j=f[sr+2],e.advance();continue e}}break}}function Je(f,e,i){for(let l=e,m;(m=f[l])!=65535;l++)if(m==i)return l-e;return-1}function wt(f,e,i,l){let m=Je(i,l,e);return m<0||Je(i,l,f)<m}const ft=typeof process<"u"&&{ADMIN_PATH:"/admin/",NODE_ENV:"production",STRAPI_ADMIN_BACKEND_URL:"",STRAPI_TELEMETRY_DISABLED:void 0}&&/\bparse\b/.test({ADMIN_PATH:"/admin/",NODE_ENV:"production",STRAPI_ADMIN_BACKEND_URL:"",STRAPI_TELEMETRY_DISABLED:void 0}.LOG);let vn=null;function ut(f,e,i){let l=f.cursor(I.IncludeAnonymous);for(l.moveTo(e);;)if(!(i<0?l.childBefore(e):l.childAfter(e)))for(;;){if((i<0?l.to<e:l.from>e)&&!l.type.isError)return i<0?Math.max(0,Math.min(l.to-1,e-25)):Math.min(f.length,Math.max(l.from+1,e+25));if(i<0?l.prevSibling():l.nextSibling())break;if(!l.parent())return i<0?0:f.length}}class Wt{constructor(e,i){this.fragments=e,this.nodeSet=i,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?ut(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?ut(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let i=this.trees.length-1;if(i<0)return this.nextFragment(),null;let l=this.trees[i],m=this.index[i];if(m==l.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let S=l.children[m],j=this.start[i]+l.positions[m];if(j>e)return this.nextStart=j,null;if(S instanceof F){if(j==e){if(j<this.safeFrom)return null;let Y=j+S.length;if(Y<=this.safeTo){let te=S.prop(h.lookAhead);if(!te||Y+te<this.fragment.to)return S}}this.index[i]++,j+S.length>=Math.max(this.safeFrom,e)&&(this.trees.push(S),this.start.push(j),this.index.push(0))}else this.index[i]++,this.nextStart=j+S.length}}}class ae{constructor(e,i){this.stream=i,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(l=>new $t)}getActions(e){let i=0,l=null,{parser:m}=e.p,{tokenizers:S}=m,j=m.stateSlot(e.state,3),Y=e.curContext?e.curContext.hash:0,te=0;for(let Ee=0;Ee<S.length;Ee++){if(!(1<<Ee&j))continue;let Se=S[Ee],Tt=this.tokens[Ee];if(!(l&&!Se.fallback)&&((Se.contextual||Tt.start!=e.pos||Tt.mask!=j||Tt.context!=Y)&&(this.updateCachedToken(Tt,Se,e),Tt.mask=j,Tt.context=Y),Tt.lookAhead>Tt.end+25&&(te=Math.max(Tt.lookAhead,te)),Tt.value!=0)){let rn=i;if(Tt.extended>-1&&(i=this.addActions(e,Tt.extended,Tt.end,i)),i=this.addActions(e,Tt.value,Tt.end,i),!Se.extend&&(l=Tt,i>rn))break}}for(;this.actions.length>i;)this.actions.pop();return te&&e.setLookAhead(te),!l&&e.pos==this.stream.end&&(l=new $t,l.value=e.p.parser.eofTerm,l.start=l.end=e.pos,i=this.addActions(e,l.value,l.end,i)),this.mainToken=l,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let i=new $t,{pos:l,p:m}=e;return i.start=l,i.end=Math.min(l+1,m.stream.end),i.value=l==m.stream.end?m.parser.eofTerm:0,i}updateCachedToken(e,i,l){let m=this.stream.clipPos(l.pos);if(i.token(this.stream.reset(m,e),l),e.value>-1){let{parser:S}=l.p;for(let j=0;j<S.specialized.length;j++)if(S.specialized[j]==e.value){let Y=S.specializers[j](this.stream.read(e.start,e.end),l);if(Y>=0&&l.p.parser.dialect.allows(Y>>1)){Y&1?e.extended=Y>>1:e.value=Y>>1;break}}}else e.value=0,e.end=this.stream.clipPos(m+1)}putAction(e,i,l,m){for(let S=0;S<m;S+=3)if(this.actions[S]==e)return m;return this.actions[m++]=e,this.actions[m++]=i,this.actions[m++]=l,m}addActions(e,i,l,m){let{state:S}=e,{parser:j}=e.p,{data:Y}=j;for(let te=0;te<2;te++)for(let Ee=j.stateSlot(S,te?2:1);;Ee+=3){if(Y[Ee]==65535)if(Y[Ee+1]==1)Ee=_t(Y,Ee+2);else{m==0&&Y[Ee+1]==2&&(m=this.putAction(_t(Y,Ee+2),i,l,m));break}Y[Ee]==i&&(m=this.putAction(_t(Y,Ee+1),i,l,m))}return m}}class ne{constructor(e,i,l,m){this.parser=e,this.input=i,this.ranges=m,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new Kt(i,m),this.tokens=new ae(e,this.stream),this.topTerm=e.top[1];let{from:S}=m[0];this.stacks=[It.start(this,e.top[0],S)],this.fragments=l.length&&this.stream.end-S>e.bufferLength*4?new Wt(l,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,i=this.minStackPos,l=this.stacks=[],m,S;if(this.bigReductionCount>300&&e.length==1){let[j]=e;for(;j.forceReduce()&&j.stack.length&&j.stack[j.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let j=0;j<e.length;j++){let Y=e[j];for(;;){if(this.tokens.mainToken=null,Y.pos>i)l.push(Y);else{if(this.advanceStack(Y,l,e))continue;{m||(m=[],S=[]),m.push(Y);let te=this.tokens.getMainToken(Y);S.push(te.value,te.end)}}break}}if(!l.length){let j=m&&zt(m);if(j)return ft&&console.log("Finish with "+this.stackID(j)),this.stackToTree(j);if(this.parser.strict)throw ft&&m&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+i);this.recovering||(this.recovering=5)}if(this.recovering&&m){let j=this.stoppedAt!=null&&m[0].pos>this.stoppedAt?m[0]:this.runRecovery(m,S,l);if(j)return ft&&console.log("Force-finish "+this.stackID(j)),this.stackToTree(j.forceAll())}if(this.recovering){let j=this.recovering==1?1:this.recovering*3;if(l.length>j)for(l.sort((Y,te)=>te.score-Y.score);l.length>j;)l.pop();l.some(Y=>Y.reducePos>i)&&this.recovering--}else if(l.length>1){e:for(let j=0;j<l.length-1;j++){let Y=l[j];for(let te=j+1;te<l.length;te++){let Ee=l[te];if(Y.sameState(Ee)||Y.buffer.length>500&&Ee.buffer.length>500)if((Y.score-Ee.score||Y.buffer.length-Ee.buffer.length)>0)l.splice(te--,1);else{l.splice(j--,1);continue e}}}l.length>12&&l.splice(12,l.length-12)}this.minStackPos=l[0].pos;for(let j=1;j<l.length;j++)l[j].pos<this.minStackPos&&(this.minStackPos=l[j].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,i,l){let m=e.pos,{parser:S}=this,j=ft?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&m>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let Ee=e.curContext&&e.curContext.tracker.strict,Se=Ee?e.curContext.hash:0;for(let Tt=this.fragments.nodeAt(m);Tt;){let rn=this.parser.nodeSet.types[Tt.type.id]==Tt.type?S.getGoto(e.state,Tt.type.id):-1;if(rn>-1&&Tt.length&&(!Ee||(Tt.prop(h.contextHash)||0)==Se))return e.useNode(Tt,rn),ft&&console.log(j+this.stackID(e)+` (via reuse of ${S.getName(Tt.type.id)})`),!0;if(!(Tt instanceof F)||Tt.children.length==0||Tt.positions[0]>0)break;let Nn=Tt.children[0];if(Nn instanceof F&&Tt.positions[0]==0)Tt=Nn;else break}}let Y=S.stateSlot(e.state,4);if(Y>0)return e.reduce(Y),ft&&console.log(j+this.stackID(e)+` (via always-reduce ${S.getName(Y&65535)})`),!0;if(e.stack.length>=9e3)for(;e.stack.length>6e3&&e.forceReduce(););let te=this.tokens.getActions(e);for(let Ee=0;Ee<te.length;){let Se=te[Ee++],Tt=te[Ee++],rn=te[Ee++],Nn=Ee==te.length||!l,sr=Nn?e:e.split(),Gr=this.tokens.mainToken;if(sr.apply(Se,Tt,Gr?Gr.start:sr.pos,rn),ft&&console.log(j+this.stackID(sr)+` (via ${Se&65536?`reduce of ${S.getName(Se&65535)}`:"shift"} for ${S.getName(Tt)} @ ${m}${sr==e?"":", split"})`),Nn)return!0;sr.pos>m?i.push(sr):l.push(sr)}return!1}advanceFully(e,i){let l=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>l)return ge(e,i),!0}}runRecovery(e,i,l){let m=null,S=!1;for(let j=0;j<e.length;j++){let Y=e[j],te=i[j<<1],Ee=i[(j<<1)+1],Se=ft?this.stackID(Y)+" -> ":"";if(Y.deadEnd&&(S||(S=!0,Y.restart(),ft&&console.log(Se+this.stackID(Y)+" (restarted)"),this.advanceFully(Y,l))))continue;let Tt=Y.split(),rn=Se;for(let Nn=0;Tt.forceReduce()&&Nn<10&&(ft&&console.log(rn+this.stackID(Tt)+" (via force-reduce)"),!this.advanceFully(Tt,l));Nn++)ft&&(rn=this.stackID(Tt)+" -> ");for(let Nn of Y.recoverByInsert(te))ft&&console.log(Se+this.stackID(Nn)+" (via recover-insert)"),this.advanceFully(Nn,l);this.stream.end>Y.pos?(Ee==Y.pos&&(Ee++,te=0),Y.recoverByDelete(te,Ee),ft&&console.log(Se+this.stackID(Y)+` (via recover-delete ${this.parser.getName(te)})`),ge(Y,l)):(!m||m.score<Y.score)&&(m=Y)}return m}stackToTree(e){return e.close(),F.build({buffer:Be.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let i=(vn||(vn=new WeakMap)).get(e);return i||vn.set(e,i=String.fromCodePoint(this.nextStackID++)),i+e}}function ge(f,e){for(let i=0;i<e.length;i++){let l=e[i];if(l.pos==f.pos&&l.sameState(f)){e[i].score<f.score&&(e[i]=f);return}}e.push(f)}class ye{constructor(e,i,l){this.source=e,this.flags=i,this.disabled=l}allows(e){return!this.disabled||this.disabled[e]==0}}const Xe=f=>f;class Ze{constructor(e){this.start=e.start,this.shift=e.shift||Xe,this.reduce=e.reduce||Xe,this.reuse=e.reuse||Xe,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class lt extends se{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (${14})`);let i=e.nodeNames.split(" ");this.minRepeatTerm=i.length;for(let Y=0;Y<e.repeatNodeCount;Y++)i.push("");let l=Object.keys(e.topRules).map(Y=>e.topRules[Y][1]),m=[];for(let Y=0;Y<i.length;Y++)m.push([]);function S(Y,te,Ee){m[Y].push([te,te.deserialize(String(Ee))])}if(e.nodeProps)for(let Y of e.nodeProps){let te=Y[0];typeof te=="string"&&(te=h[te]);for(let Ee=1;Ee<Y.length;){let Se=Y[Ee++];if(Se>=0)S(Se,te,Y[Ee++]);else{let Tt=Y[Ee+-Se];for(let rn=-Se;rn>0;rn--)S(Y[Ee++],te,Tt);Ee++}}}this.nodeSet=new M(i.map((Y,te)=>k.define({name:te>=this.minRepeatTerm?void 0:Y,id:te,props:m[te],top:l.indexOf(te)>-1,error:te==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(te)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=s;let j=je(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let Y=0;Y<this.specializerSpecs.length;Y++)this.specialized[Y]=this.specializerSpecs[Y].term;this.specializers=this.specializerSpecs.map(Vt),this.states=je(e.states,Uint32Array),this.data=je(e.stateData),this.goto=je(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(Y=>typeof Y=="number"?new kn(j,Y):Y),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,i,l){let m=new ne(this,e,i,l);for(let S of this.wrappers)m=S(m,e,i,l);return m}getGoto(e,i,l=!1){let m=this.goto;if(i>=m[0])return-1;for(let S=m[i+1];;){let j=m[S++],Y=j&1,te=m[S++];if(Y&&l)return te;for(let Ee=S+(j>>1);S<Ee;S++)if(m[S]==e)return te;if(Y)return-1}}hasAction(e,i){let l=this.data;for(let m=0;m<2;m++)for(let S=this.stateSlot(e,m?2:1),j;;S+=3){if((j=l[S])==65535)if(l[S+1]==1)j=l[S=_t(l,S+2)];else{if(l[S+1]==2)return _t(l,S+2);break}if(j==i||j==0)return _t(l,S+1)}return 0}stateSlot(e,i){return this.states[e*6+i]}stateFlag(e,i){return(this.stateSlot(e,0)&i)>0}validAction(e,i){return!!this.allActions(e,l=>l==i?!0:null)}allActions(e,i){let l=this.stateSlot(e,4),m=l?i(l):void 0;for(let S=this.stateSlot(e,1);m==null;S+=3){if(this.data[S]==65535)if(this.data[S+1]==1)S=_t(this.data,S+2);else break;m=i(_t(this.data,S+1))}return m}nextStates(e){let i=[];for(let l=this.stateSlot(e,1);;l+=3){if(this.data[l]==65535)if(this.data[l+1]==1)l=_t(this.data,l+2);else break;if(!(this.data[l+2]&1)){let m=this.data[l+1];i.some((S,j)=>j&1&&S==m)||i.push(this.data[l],m)}}return i}configure(e){let i=Object.assign(Object.create(lt.prototype),this);if(e.props&&(i.nodeSet=this.nodeSet.extend(...e.props)),e.top){let l=this.topRules[e.top];if(!l)throw new RangeError(`Invalid top rule name ${e.top}`);i.top=l}return e.tokenizers&&(i.tokenizers=this.tokenizers.map(l=>{let m=e.tokenizers.find(S=>S.from==l);return m?m.to:l})),e.specializers&&(i.specializers=this.specializers.slice(),i.specializerSpecs=this.specializerSpecs.map((l,m)=>{let S=e.specializers.find(Y=>Y.from==l.external);if(!S)return l;let j=Object.assign(Object.assign({},l),{external:S.to});return i.specializers[m]=Vt(j),j})),e.contextTracker&&(i.context=e.contextTracker),e.dialect&&(i.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(i.strict=e.strict),e.wrap&&(i.wrappers=i.wrappers.concat(e.wrap)),e.bufferLength!=null&&(i.bufferLength=e.bufferLength),i}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let i=this.dynamicPrecedences;return i==null?0:i[e]||0}parseDialect(e){let i=Object.keys(this.dialects),l=i.map(()=>!1);if(e)for(let S of e.split(" ")){let j=i.indexOf(S);j>=0&&(l[j]=!0)}let m=null;for(let S=0;S<i.length;S++)if(!l[S])for(let j=this.dialects[i[S]],Y;(Y=this.data[j++])!=65535;)(m||(m=new Uint8Array(this.maxTerm+1)))[Y]=1;return new ye(e,l,m)}static deserialize(e){return new lt(e)}}function _t(f,e){return f[e]|f[e+1]<<16}function zt(f){let e=null;for(let i of f){let l=i.p.stoppedAt;(i.pos==i.p.stream.end||l!=null&&i.pos>l)&&i.p.parser.stateFlag(i.state,2)&&(!e||e.score<i.score)&&(e=i)}return e}function Vt(f){if(f.external){let e=f.extend?1:0;return(i,l)=>f.external(i,l)<<1|e}return f.get}let sn=0;class yn{constructor(e,i,l){this.set=e,this.base=i,this.modified=l,this.id=sn++}static define(e){if(e?.base)throw new Error("Can not derive from a modified tag");let i=new yn([],null,[]);if(i.set.push(i),e)for(let l of e.set)i.set.push(l);return i}static defineModifier(){let e=new hr;return i=>i.modified.indexOf(e)>-1?i:hr.get(i.base||i,i.modified.concat(e).sort((l,m)=>l.id-m.id))}}let dr=0;class hr{constructor(){this.instances=[],this.id=dr++}static get(e,i){if(!i.length)return e;let l=i[0].instances.find(Y=>Y.base==e&&Mr(i,Y.modified));if(l)return l;let m=[],S=new yn(m,e,i);for(let Y of i)Y.instances.push(S);let j=rr(i);for(let Y of e.set)if(!Y.modified.length)for(let te of j)m.push(hr.get(Y,te));return S}}function Mr(f,e){return f.length==e.length&&f.every((i,l)=>i==e[l])}function rr(f){let e=[[]];for(let i=0;i<f.length;i++)for(let l=0,m=e.length;l<m;l++)e.push(e[l].concat(f[i]));return e.sort((i,l)=>l.length-i.length)}function Cr(f){let e=Object.create(null);for(let i in f){let l=f[i];Array.isArray(l)||(l=[l]);for(let m of i.split(" "))if(m){let S=[],j=2,Y=m;for(let Tt=0;;){if(Y=="..."&&Tt>0&&Tt+3==m.length){j=1;break}let rn=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(Y);if(!rn)throw new RangeError("Invalid path: "+m);if(S.push(rn[0]=="*"?"":rn[0][0]=='"'?JSON.parse(rn[0]):rn[0]),Tt+=rn[0].length,Tt==m.length)break;let Nn=m[Tt++];if(Tt==m.length&&Nn=="!"){j=0;break}if(Nn!="/")throw new RangeError("Invalid path: "+m);Y=m.slice(Tt)}let te=S.length-1,Ee=S[te];if(!Ee)throw new RangeError("Invalid path: "+m);let Se=new $r(l,j,te>0?S.slice(0,te):null);e[Ee]=Se.sort(e[Ee])}}return Ur.add(e)}const Ur=new h;class $r{constructor(e,i,l,m){this.tags=e,this.mode=i,this.context=l,this.next=m}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}$r.empty=new $r([],2,null);function li(f,e){let i=Object.create(null);for(let S of f)if(!Array.isArray(S.tag))i[S.tag.id]=S.class;else for(let j of S.tag)i[j.id]=S.class;let{scope:l,all:m=null}=e||{};return{style:S=>{let j=m;for(let Y of S)for(let te of Y.set){let Ee=i[te.id];if(Ee){j=j?j+" "+Ee:Ee;break}}return j},scope:l}}function ri(f,e){let i=null;for(let l of f){let m=l.style(e);m&&(i=i?i+" "+m:m)}return i}function Bt(f,e,i,l=0,m=f.length){let S=new Et(l,Array.isArray(e)?e:[e],i);S.highlightRange(f.cursor(),l,m,"",S.highlighters),S.flush(m)}class Et{constructor(e,i,l){this.at=e,this.highlighters=i,this.span=l,this.class=""}startSpan(e,i){i!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=i)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,i,l,m,S){let{type:j,from:Y,to:te}=e;if(Y>=l||te<=i)return;j.isTop&&(S=this.highlighters.filter(Nn=>!Nn.scope||Nn.scope(j)));let Ee=m,Se=bn(e)||$r.empty,Tt=ri(S,Se.tags);if(Tt&&(Ee&&(Ee+=" "),Ee+=Tt,Se.mode==1&&(m+=(m?" ":"")+Tt)),this.startSpan(Math.max(i,Y),Ee),Se.opaque)return;let rn=e.tree&&e.tree.prop(h.mounted);if(rn&&rn.overlay){let Nn=e.node.enter(rn.overlay[0].from+Y,1),sr=this.highlighters.filter(Zr=>!Zr.scope||Zr.scope(rn.tree.type)),Gr=e.firstChild();for(let Zr=0,_i=Y;;Zr++){let ro=Zr<rn.overlay.length?rn.overlay[Zr]:null,To=ro?ro.from+Y:te,Zi=Math.max(i,_i),io=Math.min(l,To);if(Zi<io&&Gr)for(;e.from<io&&(this.highlightRange(e,Zi,io,m,S),this.startSpan(Math.min(io,e.to),Ee),!(e.to>=To||!e.nextSibling())););if(!ro||To>l)break;_i=ro.to+Y,_i>i&&(this.highlightRange(Nn.cursor(),Math.max(i,ro.from+Y),Math.min(l,_i),"",sr),this.startSpan(Math.min(l,_i),Ee))}Gr&&e.parent()}else if(e.firstChild()){rn&&(m="");do if(!(e.to<=i)){if(e.from>=l)break;this.highlightRange(e,i,l,m,S),this.startSpan(Math.min(l,e.to),Ee)}while(e.nextSibling());e.parent()}}}function bn(f){let e=f.type.prop(Ur);for(;e&&e.context&&!f.matchContext(e.context);)e=e.next;return e||null}const cn=yn.define,Yn=cn(),on=cn(),ze=cn(on),Le=cn(on),Ht=cn(),Mn=cn(Ht),tr=cn(Ht),Sr=cn(),Xr=cn(Sr),gi=cn(),Pi=cn(),ii=cn(),vr=cn(ii),at=cn(),it={comment:Yn,lineComment:cn(Yn),blockComment:cn(Yn),docComment:cn(Yn),name:on,variableName:cn(on),typeName:ze,tagName:cn(ze),propertyName:Le,attributeName:cn(Le),className:cn(on),labelName:cn(on),namespace:cn(on),macroName:cn(on),literal:Ht,string:Mn,docString:cn(Mn),character:cn(Mn),attributeValue:cn(Mn),number:tr,integer:cn(tr),float:cn(tr),bool:cn(Ht),regexp:cn(Ht),escape:cn(Ht),color:cn(Ht),url:cn(Ht),keyword:gi,self:cn(gi),null:cn(gi),atom:cn(gi),unit:cn(gi),modifier:cn(gi),operatorKeyword:cn(gi),controlKeyword:cn(gi),definitionKeyword:cn(gi),moduleKeyword:cn(gi),operator:Pi,derefOperator:cn(Pi),arithmeticOperator:cn(Pi),logicOperator:cn(Pi),bitwiseOperator:cn(Pi),compareOperator:cn(Pi),updateOperator:cn(Pi),definitionOperator:cn(Pi),typeOperator:cn(Pi),controlOperator:cn(Pi),punctuation:ii,separator:cn(ii),bracket:vr,angleBracket:cn(vr),squareBracket:cn(vr),paren:cn(vr),brace:cn(vr),content:Sr,heading:Xr,heading1:cn(Xr),heading2:cn(Xr),heading3:cn(Xr),heading4:cn(Xr),heading5:cn(Xr),heading6:cn(Xr),contentSeparator:cn(Sr),list:cn(Sr),quote:cn(Sr),emphasis:cn(Sr),strong:cn(Sr),link:cn(Sr),monospace:cn(Sr),strikethrough:cn(Sr),inserted:cn(),deleted:cn(),changed:cn(),invalid:cn(),meta:at,documentMeta:cn(at),annotation:cn(at),processingInstruction:cn(at),definition:yn.defineModifier(),constant:yn.defineModifier(),function:yn.defineModifier(),standard:yn.defineModifier(),local:yn.defineModifier(),special:yn.defineModifier()},Re=li([{tag:it.link,class:"tok-link"},{tag:it.heading,class:"tok-heading"},{tag:it.emphasis,class:"tok-emphasis"},{tag:it.strong,class:"tok-strong"},{tag:it.keyword,class:"tok-keyword"},{tag:it.atom,class:"tok-atom"},{tag:it.bool,class:"tok-bool"},{tag:it.url,class:"tok-url"},{tag:it.labelName,class:"tok-labelName"},{tag:it.inserted,class:"tok-inserted"},{tag:it.deleted,class:"tok-deleted"},{tag:it.literal,class:"tok-literal"},{tag:it.string,class:"tok-string"},{tag:it.number,class:"tok-number"},{tag:[it.regexp,it.escape,it.special(it.string)],class:"tok-string2"},{tag:it.variableName,class:"tok-variableName"},{tag:it.local(it.variableName),class:"tok-variableName tok-local"},{tag:it.definition(it.variableName),class:"tok-variableName tok-definition"},{tag:it.special(it.variableName),class:"tok-variableName2"},{tag:it.definition(it.propertyName),class:"tok-propertyName tok-definition"},{tag:it.typeName,class:"tok-typeName"},{tag:it.namespace,class:"tok-namespace"},{tag:it.className,class:"tok-className"},{tag:it.macroName,class:"tok-macroName"},{tag:it.propertyName,class:"tok-propertyName"},{tag:it.operator,class:"tok-operator"},{tag:it.comment,class:"tok-comment"},{tag:it.meta,class:"tok-meta"},{tag:it.invalid,class:"tok-invalid"},{tag:it.punctuation,class:"tok-punctuation"}]),ke=Cr({String:it.string,Number:it.number,"True False":it.bool,PropertyName:it.propertyName,Null:it.null,",":it.separator,"[ ]":it.squareBracket,"{ }":it.brace}),Pe=lt.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"\u26A0 JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[ke],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});class Te{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,i,l){let m=[];return this.decompose(0,e,m,2),l.length&&l.decompose(0,l.length,m,3),this.decompose(i,this.length,m,1),qt.from(m,this.length-(i-e)+l.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,i=this.length){let l=[];return this.decompose(e,i,l,0),qt.from(l,i-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let i=this.scanIdentical(e,1),l=this.length-this.scanIdentical(e,-1),m=new On(this),S=new On(e);for(let j=i,Y=i;;){if(m.next(j),S.next(j),j=0,m.lineBreak!=S.lineBreak||m.done!=S.done||m.value!=S.value)return!1;if(Y+=m.value.length,m.done||Y>=l)return!0}}iter(e=1){return new On(this,e)}iterRange(e,i=this.length){return new ct(this,e,i)}iterLines(e,i){let l;if(e==null)l=this.iter();else{i==null&&(i=this.lines+1);let m=this.line(e).from;l=this.iterRange(m,Math.max(m,i==this.lines+1?this.length:i<=1?0:this.line(i-1).to))}return new Zt(l)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?Te.empty:e.length<=32?new Mt(e):qt.from(Mt.split(e,[]))}}class Mt extends Te{constructor(e,i=Rn(e)){super(),this.text=e,this.length=i}get lines(){return this.text.length}get children(){return null}lineInner(e,i,l,m){for(let S=0;;S++){let j=this.text[S],Y=m+j.length;if((i?l:Y)>=e)return new Cn(m,Y,l,j);m=Y+1,l++}}decompose(e,i,l,m){let S=e<=0&&i>=this.length?this:new Mt(ur(this.text,e,i),Math.min(i,this.length)-Math.max(0,e));if(m&1){let j=l.pop(),Y=Qn(S.text,j.text.slice(),0,S.length);if(Y.length<=32)l.push(new Mt(Y,j.length+S.length));else{let te=Y.length>>1;l.push(new Mt(Y.slice(0,te)),new Mt(Y.slice(te)))}}else l.push(S)}replace(e,i,l){if(!(l instanceof Mt))return super.replace(e,i,l);let m=Qn(this.text,Qn(l.text,ur(this.text,0,e)),i),S=this.length+l.length-(i-e);return m.length<=32?new Mt(m,S):qt.from(Mt.split(m,[]),S)}sliceString(e,i=this.length,l=`
`){let m="";for(let S=0,j=0;S<=i&&j<this.text.length;j++){let Y=this.text[j],te=S+Y.length;S>e&&j&&(m+=l),e<te&&i>S&&(m+=Y.slice(Math.max(0,e-S),i-S)),S=te+1}return m}flatten(e){for(let i of this.text)e.push(i)}scanIdentical(){return 0}static split(e,i){let l=[],m=-1;for(let S of e)l.push(S),m+=S.length+1,l.length==32&&(i.push(new Mt(l,m)),l=[],m=-1);return m>-1&&i.push(new Mt(l,m)),i}}class qt extends Te{constructor(e,i){super(),this.children=e,this.length=i,this.lines=0;for(let l of e)this.lines+=l.lines}lineInner(e,i,l,m){for(let S=0;;S++){let j=this.children[S],Y=m+j.length,te=l+j.lines-1;if((i?te:Y)>=e)return j.lineInner(e,i,l,m);m=Y+1,l=te+1}}decompose(e,i,l,m){for(let S=0,j=0;j<=i&&S<this.children.length;S++){let Y=this.children[S],te=j+Y.length;if(e<=te&&i>=j){let Ee=m&((j<=e?1:0)|(te>=i?2:0));j>=e&&te<=i&&!Ee?l.push(Y):Y.decompose(e-j,i-j,l,Ee)}j=te+1}}replace(e,i,l){if(l.lines<this.lines)for(let m=0,S=0;m<this.children.length;m++){let j=this.children[m],Y=S+j.length;if(e>=S&&i<=Y){let te=j.replace(e-S,i-S,l),Ee=this.lines-j.lines+te.lines;if(te.lines<Ee>>5-1&&te.lines>Ee>>5+1){let Se=this.children.slice();return Se[m]=te,new qt(Se,this.length-(i-e)+l.length)}return super.replace(S,Y,te)}S=Y+1}return super.replace(e,i,l)}sliceString(e,i=this.length,l=`
`){let m="";for(let S=0,j=0;S<this.children.length&&j<=i;S++){let Y=this.children[S],te=j+Y.length;j>e&&S&&(m+=l),e<te&&i>j&&(m+=Y.sliceString(e-j,i-j,l)),j=te+1}return m}flatten(e){for(let i of this.children)i.flatten(e)}scanIdentical(e,i){if(!(e instanceof qt))return 0;let l=0,[m,S,j,Y]=i>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;m+=i,S+=i){if(m==j||S==Y)return l;let te=this.children[m],Ee=e.children[S];if(te!=Ee)return l+te.scanIdentical(Ee,i);l+=te.length+1}}static from(e,i=e.reduce((l,m)=>l+m.length+1,-1)){let l=0;for(let Nn of e)l+=Nn.lines;if(l<32){let Nn=[];for(let sr of e)sr.flatten(Nn);return new Mt(Nn,i)}let m=Math.max(32,l>>5),S=m<<1,j=m>>1,Y=[],te=0,Ee=-1,Se=[];function Tt(Nn){let sr;if(Nn.lines>S&&Nn instanceof qt)for(let Gr of Nn.children)Tt(Gr);else Nn.lines>j&&(te>j||!te)?(rn(),Y.push(Nn)):Nn instanceof Mt&&te&&(sr=Se[Se.length-1])instanceof Mt&&Nn.lines+sr.lines<=32?(te+=Nn.lines,Ee+=Nn.length+1,Se[Se.length-1]=new Mt(sr.text.concat(Nn.text),sr.length+1+Nn.length)):(te+Nn.lines>m&&rn(),te+=Nn.lines,Ee+=Nn.length+1,Se.push(Nn))}function rn(){te!=0&&(Y.push(Se.length==1?Se[0]:qt.from(Se,Ee)),Ee=-1,te=Se.length=0)}for(let Nn of e)Tt(Nn);return rn(),Y.length==1?Y[0]:new qt(Y,i)}}Te.empty=new Mt([""],0);function Rn(f){let e=-1;for(let i of f)e+=i.length+1;return e}function Qn(f,e,i=0,l=1e9){for(let m=0,S=0,j=!0;S<f.length&&m<=l;S++){let Y=f[S],te=m+Y.length;te>=i&&(te>l&&(Y=Y.slice(0,l-m)),m<i&&(Y=Y.slice(i-m)),j?(e[e.length-1]+=Y,j=!1):e.push(Y)),m=te+1}return e}function ur(f,e,i){return Qn(f,[""],e,i)}class On{constructor(e,i=1){this.dir=i,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[i>0?1:(e instanceof Mt?e.text.length:e.children.length)<<1]}nextInner(e,i){for(this.done=this.lineBreak=!1;;){let l=this.nodes.length-1,m=this.nodes[l],S=this.offsets[l],j=S>>1,Y=m instanceof Mt?m.text.length:m.children.length;if(j==(i>0?Y:0)){if(l==0)return this.done=!0,this.value="",this;i>0&&this.offsets[l-1]++,this.nodes.pop(),this.offsets.pop()}else if((S&1)==(i>0?0:1)){if(this.offsets[l]+=i,e==0)return this.lineBreak=!0,this.value=`
`,this;e--}else if(m instanceof Mt){let te=m.text[j+(i<0?-1:0)];if(this.offsets[l]+=i,te.length>Math.max(0,e))return this.value=e==0?te:i>0?te.slice(e):te.slice(0,te.length-e),this;e-=te.length}else{let te=m.children[j+(i<0?-1:0)];e>te.length?(e-=te.length,this.offsets[l]+=i):(i<0&&this.offsets[l]--,this.nodes.push(te),this.offsets.push(i>0?1:(te instanceof Mt?te.text.length:te.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class ct{constructor(e,i,l){this.value="",this.done=!1,this.cursor=new On(e,i>l?-1:1),this.pos=i>l?e.length:0,this.from=Math.min(i,l),this.to=Math.max(i,l)}nextInner(e,i){if(i<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,i<0?this.pos-this.to:this.from-this.pos);let l=i<0?this.pos-this.from:this.to-this.pos;e>l&&(e=l),l-=e;let{value:m}=this.cursor.next(e);return this.pos+=(m.length+e)*i,this.value=m.length<=l?m:i<0?m.slice(m.length-l):m.slice(0,l),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Zt{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:i,lineBreak:l,value:m}=this.inner.next(e);return i?(this.done=!0,this.value=""):l?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=m,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(Te.prototype[Symbol.iterator]=function(){return this.iter()},On.prototype[Symbol.iterator]=ct.prototype[Symbol.iterator]=Zt.prototype[Symbol.iterator]=function(){return this});class Cn{constructor(e,i,l,m){this.from=e,this.to=i,this.number=l,this.text=m}get length(){return this.to-this.from}}let Pn="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(f=>f?parseInt(f,36):1);for(let f=1;f<Pn.length;f++)Pn[f]+=Pn[f-1];function Kn(f){for(let e=1;e<Pn.length;e+=2)if(Pn[e]>f)return Pn[e-1]<=f;return!1}function Rt(f){return f>=127462&&f<=127487}const Ke=8205;function Oe(f,e,i=!0,l=!0){return(i?Ge:Ft)(f,e,l)}function Ge(f,e,i){if(e==f.length)return e;e&&Qt(f.charCodeAt(e))&&wn(f.charCodeAt(e-1))&&e--;let l=Gn(f,e);for(e+=br(l);e<f.length;){let m=Gn(f,e);if(l==Ke||m==Ke||i&&Kn(m))e+=br(m),l=m;else if(Rt(m)){let S=0,j=e-2;for(;j>=0&&Rt(Gn(f,j));)S++,j-=2;if(S%2==0)break;e+=2}else break}return e}function Ft(f,e,i){for(;e>0;){let l=Ge(f,e-2,i);if(l<e)return l;e--}return 0}function Qt(f){return f>=56320&&f<57344}function wn(f){return f>=55296&&f<56320}function Gn(f,e){let i=f.charCodeAt(e);if(!wn(i)||e+1==f.length)return i;let l=f.charCodeAt(e+1);return Qt(l)?(i-55296<<10)+(l-56320)+65536:i}function ir(f){return f<=65535?String.fromCharCode(f):(f-=65536,String.fromCharCode((f>>10)+55296,(f&1023)+56320))}function br(f){return f<65536?1:2}const fr=/\r\n?|\n/;var Er=function(f){return f[f.Simple=0]="Simple",f[f.TrackDel=1]="TrackDel",f[f.TrackBefore=2]="TrackBefore",f[f.TrackAfter=3]="TrackAfter",f}(Er||(Er={}));class Or{constructor(e){this.sections=e}get length(){let e=0;for(let i=0;i<this.sections.length;i+=2)e+=this.sections[i];return e}get newLength(){let e=0;for(let i=0;i<this.sections.length;i+=2){let l=this.sections[i+1];e+=l<0?this.sections[i]:l}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let i=0,l=0,m=0;i<this.sections.length;){let S=this.sections[i++],j=this.sections[i++];j<0?(e(l,m,S),m+=S):m+=j,l+=S}}iterChangedRanges(e,i=!1){$i(this,e,i)}get invertedDesc(){let e=[];for(let i=0;i<this.sections.length;){let l=this.sections[i++],m=this.sections[i++];m<0?e.push(l,m):e.push(m,l)}return new Or(e)}composeDesc(e){return this.empty?e:e.empty?this:Bn(this,e)}mapDesc(e,i=!1){return e.empty?this:Vi(this,e,i)}mapPos(e,i=-1,l=Er.Simple){let m=0,S=0;for(let j=0;j<this.sections.length;){let Y=this.sections[j++],te=this.sections[j++],Ee=m+Y;if(te<0){if(Ee>e)return S+(e-m);S+=Y}else{if(l!=Er.Simple&&Ee>=e&&(l==Er.TrackDel&&m<e&&Ee>e||l==Er.TrackBefore&&m<e||l==Er.TrackAfter&&Ee>e))return null;if(Ee>e||Ee==e&&i<0&&!Y)return e==m||i<0?S:S+te;S+=te}m=Ee}if(e>m)throw new RangeError(`Position ${e} is out of range for changeset of length ${m}`);return S}touchesRange(e,i=e){for(let l=0,m=0;l<this.sections.length&&m<=i;){let S=this.sections[l++],j=this.sections[l++],Y=m+S;if(j>=0&&m<=i&&Y>=e)return m<e&&Y>i?"cover":!0;m=Y}return!1}toString(){let e="";for(let i=0;i<this.sections.length;){let l=this.sections[i++],m=this.sections[i++];e+=(e?" ":"")+l+(m>=0?":"+m:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(i=>typeof i!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Or(e)}static create(e){return new Or(e)}}class oi extends Or{constructor(e,i){super(e),this.inserted=i}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return $i(this,(i,l,m,S,j)=>e=e.replace(m,m+(l-i),j),!1),e}mapDesc(e,i=!1){return Vi(this,e,i,!0)}invert(e){let i=this.sections.slice(),l=[];for(let m=0,S=0;m<i.length;m+=2){let j=i[m],Y=i[m+1];if(Y>=0){i[m]=Y,i[m+1]=j;let te=m>>1;for(;l.length<te;)l.push(Te.empty);l.push(j?e.slice(S,S+j):Te.empty)}S+=j}return new oi(i,l)}compose(e){return this.empty?e:e.empty?this:Bn(this,e,!0)}map(e,i=!1){return e.empty?this:Vi(this,e,i,!0)}iterChanges(e,i=!1){$i(this,e,i)}get desc(){return Or.create(this.sections)}filter(e){let i=[],l=[],m=[],S=new nt(this);e:for(let j=0,Y=0;;){let te=j==e.length?1e9:e[j++];for(;Y<te||Y==te&&S.len==0;){if(S.done)break e;let Se=Math.min(S.len,te-Y);si(m,Se,-1);let Tt=S.ins==-1?-1:S.off==0?S.ins:0;si(i,Se,Tt),Tt>0&&Fi(l,i,S.text),S.forward(Se),Y+=Se}let Ee=e[j++];for(;Y<Ee;){if(S.done)break e;let Se=Math.min(S.len,Ee-Y);si(i,Se,-1),si(m,Se,S.ins==-1?-1:S.off==0?S.ins:0),S.forward(Se),Y+=Se}}return{changes:new oi(i,l),filtered:Or.create(m)}}toJSON(){let e=[];for(let i=0;i<this.sections.length;i+=2){let l=this.sections[i],m=this.sections[i+1];m<0?e.push(l):m==0?e.push([l]):e.push([l].concat(this.inserted[i>>1].toJSON()))}return e}static of(e,i,l){let m=[],S=[],j=0,Y=null;function te(Se=!1){if(!Se&&!m.length)return;j<i&&si(m,i-j,-1);let Tt=new oi(m,S);Y=Y?Y.compose(Tt.map(Y)):Tt,m=[],S=[],j=0}function Ee(Se){if(Array.isArray(Se))for(let Tt of Se)Ee(Tt);else if(Se instanceof oi){if(Se.length!=i)throw new RangeError(`Mismatched change set length (got ${Se.length}, expected ${i})`);te(),Y=Y?Y.compose(Se.map(Y)):Se}else{let{from:Tt,to:rn=Tt,insert:Nn}=Se;if(Tt>rn||Tt<0||rn>i)throw new RangeError(`Invalid change range ${Tt} to ${rn} (in doc of length ${i})`);let sr=Nn?typeof Nn=="string"?Te.of(Nn.split(l||fr)):Nn:Te.empty,Gr=sr.length;if(Tt==rn&&Gr==0)return;Tt<j&&te(),Tt>j&&si(m,Tt-j,-1),si(m,rn-Tt,Gr),Fi(S,m,sr),j=rn}}return Ee(e),te(!Y),Y}static empty(e){return new oi(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let i=[],l=[];for(let m=0;m<e.length;m++){let S=e[m];if(typeof S=="number")i.push(S,-1);else{if(!Array.isArray(S)||typeof S[0]!="number"||S.some((j,Y)=>Y&&typeof j!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(S.length==1)i.push(S[0],0);else{for(;l.length<m;)l.push(Te.empty);l[m]=Te.of(S.slice(1)),i.push(S[0],l[m].length)}}}return new oi(i,l)}static createSet(e,i){return new oi(e,i)}}function si(f,e,i,l=!1){if(e==0&&i<=0)return;let m=f.length-2;m>=0&&i<=0&&i==f[m+1]?f[m]+=e:e==0&&f[m]==0?f[m+1]+=i:l?(f[m]+=e,f[m+1]+=i):f.push(e,i)}function Fi(f,e,i){if(i.length==0)return;let l=e.length-2>>1;if(l<f.length)f[f.length-1]=f[f.length-1].append(i);else{for(;f.length<l;)f.push(Te.empty);f.push(i)}}function $i(f,e,i){let l=f.inserted;for(let m=0,S=0,j=0;j<f.sections.length;){let Y=f.sections[j++],te=f.sections[j++];if(te<0)m+=Y,S+=Y;else{let Ee=m,Se=S,Tt=Te.empty;for(;Ee+=Y,Se+=te,te&&l&&(Tt=Tt.append(l[j-2>>1])),!(i||j==f.sections.length||f.sections[j+1]<0);)Y=f.sections[j++],te=f.sections[j++];e(m,Ee,S,Se,Tt),m=Ee,S=Se}}}function Vi(f,e,i,l=!1){let m=[],S=l?[]:null,j=new nt(f),Y=new nt(e);for(let te=-1;;)if(j.ins==-1&&Y.ins==-1){let Ee=Math.min(j.len,Y.len);si(m,Ee,-1),j.forward(Ee),Y.forward(Ee)}else if(Y.ins>=0&&(j.ins<0||te==j.i||j.off==0&&(Y.len<j.len||Y.len==j.len&&!i))){let Ee=Y.len;for(si(m,Y.ins,-1);Ee;){let Se=Math.min(j.len,Ee);j.ins>=0&&te<j.i&&j.len<=Se&&(si(m,0,j.ins),S&&Fi(S,m,j.text),te=j.i),j.forward(Se),Ee-=Se}Y.next()}else if(j.ins>=0){let Ee=0,Se=j.len;for(;Se;)if(Y.ins==-1){let Tt=Math.min(Se,Y.len);Ee+=Tt,Se-=Tt,Y.forward(Tt)}else if(Y.ins==0&&Y.len<Se)Se-=Y.len,Y.next();else break;si(m,Ee,te<j.i?j.ins:0),S&&te<j.i&&Fi(S,m,j.text),te=j.i,j.forward(j.len-Se)}else{if(j.done&&Y.done)return S?oi.createSet(m,S):Or.create(m);throw new Error("Mismatched change set lengths")}}function Bn(f,e,i=!1){let l=[],m=i?[]:null,S=new nt(f),j=new nt(e);for(let Y=!1;;){if(S.done&&j.done)return m?oi.createSet(l,m):Or.create(l);if(S.ins==0)si(l,S.len,0,Y),S.next();else if(j.len==0&&!j.done)si(l,0,j.ins,Y),m&&Fi(m,l,j.text),j.next();else{if(S.done||j.done)throw new Error("Mismatched change set lengths");{let te=Math.min(S.len2,j.len),Ee=l.length;if(S.ins==-1){let Se=j.ins==-1?-1:j.off?0:j.ins;si(l,te,Se,Y),m&&Se&&Fi(m,l,j.text)}else j.ins==-1?(si(l,S.off?0:S.len,te,Y),m&&Fi(m,l,S.textBit(te))):(si(l,S.off?0:S.len,j.off?0:j.ins,Y),m&&!j.off&&Fi(m,l,j.text));Y=(S.ins>te||j.ins>=0&&j.len>te)&&(Y||l.length>Ee),S.forward2(te),j.forward(te)}}}}class nt{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,i=this.i-2>>1;return i>=e.length?Te.empty:e[i]}textBit(e){let{inserted:i}=this.set,l=this.i-2>>1;return l>=i.length&&!e?Te.empty:i[l].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class ve{constructor(e,i,l){this.from=e,this.to=i,this.flags=l}get anchor(){return this.flags&16?this.to:this.from}get head(){return this.flags&16?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&4?-1:this.flags&8?1:0}get bidiLevel(){let e=this.flags&3;return e==3?null:e}get goalColumn(){let e=this.flags>>5;return e==33554431?void 0:e}map(e,i=-1){let l,m;return this.empty?l=m=e.mapPos(this.from,i):(l=e.mapPos(this.from,1),m=e.mapPos(this.to,-1)),l==this.from&&m==this.to?this:new ve(l,m,this.flags)}extend(e,i=e){if(e<=this.anchor&&i>=this.anchor)return he.range(e,i);let l=Math.abs(e-this.anchor)>Math.abs(i-this.anchor)?e:i;return he.range(this.anchor,l)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return he.range(e.anchor,e.head)}static create(e,i,l){return new ve(e,i,l)}}class he{constructor(e,i){this.ranges=e,this.mainIndex=i}map(e,i=-1){return e.empty?this:he.create(this.ranges.map(l=>l.map(e,i)),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;i<this.ranges.length;i++)if(!this.ranges[i].eq(e.ranges[i]))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new he([this.main],0)}addRange(e,i=!0){return he.create([e].concat(this.ranges),i?0:this.mainIndex+1)}replaceRange(e,i=this.mainIndex){let l=this.ranges.slice();return l[i]=e,he.create(l,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new he(e.ranges.map(i=>ve.fromJSON(i)),e.main)}static single(e,i=e){return new he([he.range(e,i)],0)}static create(e,i=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let l=0,m=0;m<e.length;m++){let S=e[m];if(S.empty?S.from<=l:S.from<l)return he.normalized(e.slice(),i);l=S.to}return new he(e,i)}static cursor(e,i=0,l,m){return ve.create(e,e,(i==0?0:i<0?4:8)|(l==null?3:Math.min(2,l))|(m??33554431)<<5)}static range(e,i,l,m){let S=(l??33554431)<<5|(m==null?3:Math.min(2,m));return i<e?ve.create(i,e,24|S):ve.create(e,i,(i>e?4:0)|S)}static normalized(e,i=0){let l=e[i];e.sort((m,S)=>m.from-S.from),i=e.indexOf(l);for(let m=1;m<e.length;m++){let S=e[m],j=e[m-1];if(S.empty?S.from<=j.to:S.from<j.to){let Y=j.from,te=Math.max(S.to,j.to);m<=i&&i--,e.splice(--m,2,S.anchor>S.head?he.range(te,Y):he.range(Y,te))}}return new he(e,i)}}function Ae(f,e){for(let i of f.ranges)if(i.to>e)throw new RangeError("Selection points outside of document")}let tt=0;class St{constructor(e,i,l,m,S){this.combine=e,this.compareInput=i,this.compare=l,this.isStatic=m,this.id=tt++,this.default=e([]),this.extensions=typeof S=="function"?S(this):S}static define(e={}){return new St(e.combine||(i=>i),e.compareInput||((i,l)=>i===l),e.compare||(e.combine?(i,l)=>i===l:kt),!!e.static,e.enables)}of(e){return new Jt([],this,0,e)}compute(e,i){if(this.isStatic)throw new Error("Can't compute a static facet");return new Jt(e,this,1,i)}computeN(e,i){if(this.isStatic)throw new Error("Can't compute a static facet");return new Jt(e,this,2,i)}from(e,i){return i||(i=l=>l),this.compute([e],l=>i(l.field(e)))}}function kt(f,e){return f==e||f.length==e.length&&f.every((i,l)=>i===e[l])}class Jt{constructor(e,i,l,m){this.dependencies=e,this.facet=i,this.type=l,this.value=m,this.id=tt++}dynamicSlot(e){var i;let l=this.value,m=this.facet.compareInput,S=this.id,j=e[S]>>1,Y=this.type==2,te=!1,Ee=!1,Se=[];for(let Tt of this.dependencies)Tt=="doc"?te=!0:Tt=="selection"?Ee=!0:((i=e[Tt.id])!==null&&i!==void 0?i:1)&1||Se.push(e[Tt.id]);return{create(Tt){return Tt.values[j]=l(Tt),1},update(Tt,rn){if(te&&rn.docChanged||Ee&&(rn.docChanged||rn.selection)||dn(Tt,Se)){let Nn=l(Tt);if(Y?!gt(Nn,Tt.values[j],m):!m(Nn,Tt.values[j]))return Tt.values[j]=Nn,1}return 0},reconfigure:(Tt,rn)=>{let Nn,sr=rn.config.address[S];if(sr!=null){let Gr=_e(rn,sr);if(this.dependencies.every(Zr=>Zr instanceof St?rn.facet(Zr)===Tt.facet(Zr):Zr instanceof Sn?rn.field(Zr,!1)==Tt.field(Zr,!1):!0)||(Y?gt(Nn=l(Tt),Gr,m):m(Nn=l(Tt),Gr)))return Tt.values[j]=Gr,0}else Nn=l(Tt);return Tt.values[j]=Nn,1}}}}function gt(f,e,i){if(f.length!=e.length)return!1;for(let l=0;l<f.length;l++)if(!i(f[l],e[l]))return!1;return!0}function dn(f,e){let i=!1;for(let l of e)_n(f,l)&1&&(i=!0);return i}function Xt(f,e,i){let l=i.map(te=>f[te.id]),m=i.map(te=>te.type),S=l.filter(te=>!(te&1)),j=f[e.id]>>1;function Y(te){let Ee=[];for(let Se=0;Se<l.length;Se++){let Tt=_e(te,l[Se]);if(m[Se]==2)for(let rn of Tt)Ee.push(rn);else Ee.push(Tt)}return e.combine(Ee)}return{create(te){for(let Ee of l)_n(te,Ee);return te.values[j]=Y(te),1},update(te,Ee){if(!dn(te,S))return 0;let Se=Y(te);return e.compare(Se,te.values[j])?0:(te.values[j]=Se,1)},reconfigure(te,Ee){let Se=dn(te,l),Tt=Ee.config.facets[e.id],rn=Ee.facet(e);if(Tt&&!Se&&kt(i,Tt))return te.values[j]=rn,0;let Nn=Y(te);return e.compare(Nn,rn)?(te.values[j]=rn,0):(te.values[j]=Nn,1)}}}const hn=St.define({static:!0});class Sn{constructor(e,i,l,m,S){this.id=e,this.createF=i,this.updateF=l,this.compareF=m,this.spec=S,this.provides=void 0}static define(e){let i=new Sn(tt++,e.create,e.update,e.compare||((l,m)=>l===m),e);return e.provide&&(i.provides=e.provide(i)),i}create(e){let i=e.facet(hn).find(l=>l.field==this);return(i?.create||this.createF)(e)}slot(e){let i=e[this.id]>>1;return{create:l=>(l.values[i]=this.create(l),1),update:(l,m)=>{let S=l.values[i],j=this.updateF(S,m);return this.compareF(S,j)?0:(l.values[i]=j,1)},reconfigure:(l,m)=>m.config.address[this.id]!=null?(l.values[i]=m.field(this),0):(l.values[i]=this.create(l),1)}}init(e){return[this,hn.of({field:this,create:e})]}get extension(){return this}}const Jn={lowest:4,low:3,default:2,high:1,highest:0};function Vn(f){return e=>new Vr(e,f)}const ar={highest:Vn(Jn.highest),high:Vn(Jn.high),default:Vn(Jn.default),low:Vn(Jn.low),lowest:Vn(Jn.lowest)};class Vr{constructor(e,i){this.inner=e,this.prec=i}}class Jr{of(e){return new yi(this,e)}reconfigure(e){return Jr.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class yi{constructor(e,i){this.compartment=e,this.inner=i}}class Ii{constructor(e,i,l,m,S,j){for(this.base=e,this.compartments=i,this.dynamicSlots=l,this.address=m,this.staticValues=S,this.facets=j,this.statusTemplate=[];this.statusTemplate.length<l.length;)this.statusTemplate.push(0)}staticFacet(e){let i=this.address[e.id];return i==null?e.default:this.staticValues[i>>1]}static resolve(e,i,l){let m=[],S=Object.create(null),j=new Map;for(let rn of ji(e,i,j))rn instanceof Sn?m.push(rn):(S[rn.facet.id]||(S[rn.facet.id]=[])).push(rn);let Y=Object.create(null),te=[],Ee=[];for(let rn of m)Y[rn.id]=Ee.length<<1,Ee.push(Nn=>rn.slot(Nn));let Se=l?.config.facets;for(let rn in S){let Nn=S[rn],sr=Nn[0].facet,Gr=Se&&Se[rn]||[];if(Nn.every(Zr=>Zr.type==0))if(Y[sr.id]=te.length<<1|1,kt(Gr,Nn))te.push(l.facet(sr));else{let Zr=sr.combine(Nn.map(_i=>_i.value));te.push(l&&sr.compare(Zr,l.facet(sr))?l.facet(sr):Zr)}else{for(let Zr of Nn)Zr.type==0?(Y[Zr.id]=te.length<<1|1,te.push(Zr.value)):(Y[Zr.id]=Ee.length<<1,Ee.push(_i=>Zr.dynamicSlot(_i)));Y[sr.id]=Ee.length<<1,Ee.push(Zr=>Xt(Zr,sr,Nn))}}let Tt=Ee.map(rn=>rn(Y));return new Ii(e,j,Tt,Y,te,S)}}function ji(f,e,i){let l=[[],[],[],[],[]],m=new Map;function S(j,Y){let te=m.get(j);if(te!=null){if(te<=Y)return;let Ee=l[te].indexOf(j);Ee>-1&&l[te].splice(Ee,1),j instanceof yi&&i.delete(j.compartment)}if(m.set(j,Y),Array.isArray(j))for(let Ee of j)S(Ee,Y);else if(j instanceof yi){if(i.has(j.compartment))throw new RangeError("Duplicate use of compartment in extensions");let Ee=e.get(j.compartment)||j.inner;i.set(j.compartment,Ee),S(Ee,Y)}else if(j instanceof Vr)S(j.inner,j.prec);else if(j instanceof Sn)l[Y].push(j),j.provides&&S(j.provides,Y);else if(j instanceof Jt)l[Y].push(j),j.facet.extensions&&S(j.facet.extensions,Jn.default);else{let Ee=j.extension;if(!Ee)throw new Error(`Unrecognized extension value in extension set (${j}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);S(Ee,Y)}}return S(f,Jn.default),l.reduce((j,Y)=>j.concat(Y))}function _n(f,e){if(e&1)return 2;let i=e>>1,l=f.status[i];if(l==4)throw new Error("Cyclic dependency between fields and/or facets");if(l&2)return l;f.status[i]=4;let m=f.computeSlot(f,f.config.dynamicSlots[i]);return f.status[i]=2|m}function _e(f,e){return e&1?f.config.staticValues[e>>1]:f.values[e>>1]}const rt=St.define(),vt=St.define({combine:f=>f.some(e=>e),static:!0}),Gt=St.define({combine:f=>f.length?f[0]:void 0,static:!0}),We=St.define(),Ot=St.define(),Dt=St.define(),gn=St.define({combine:f=>f.length?f[0]:!1});class Hn{constructor(e,i){this.type=e,this.value=i}static define(){return new nr}}class nr{of(e){return new Hn(this,e)}}class _r{constructor(e){this.map=e}of(e){return new Nr(this,e)}}class Nr{constructor(e,i){this.type=e,this.value=i}map(e){let i=this.type.map(this.value,e);return i===void 0?void 0:i==this.value?this:new Nr(this.type,i)}is(e){return this.type==e}static define(e={}){return new _r(e.map||(i=>i))}static mapEffects(e,i){if(!e.length)return e;let l=[];for(let m of e){let S=m.map(i);S&&l.push(S)}return l}}Nr.reconfigure=Nr.define(),Nr.appendConfig=Nr.define();class Qr{constructor(e,i,l,m,S,j){this.startState=e,this.changes=i,this.selection=l,this.effects=m,this.annotations=S,this.scrollIntoView=j,this._doc=null,this._state=null,l&&Ae(l,i.newLength),S.some(Y=>Y.type==Qr.time)||(this.annotations=S.concat(Qr.time.of(Date.now())))}static create(e,i,l,m,S,j){return new Qr(e,i,l,m,S,j)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let i of this.annotations)if(i.type==e)return i.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let i=this.annotation(Qr.userEvent);return!!(i&&(i==e||i.length>e.length&&i.slice(0,e.length)==e&&i[e.length]=="."))}}Qr.time=Hn.define(),Qr.userEvent=Hn.define(),Qr.addToHistory=Hn.define(),Qr.remote=Hn.define();function ki(f,e){let i=[];for(let l=0,m=0;;){let S,j;if(l<f.length&&(m==e.length||e[m]>=f[l]))S=f[l++],j=f[l++];else if(m<e.length)S=e[m++],j=e[m++];else return i;!i.length||i[i.length-1]<S?i.push(S,j):i[i.length-1]<j&&(i[i.length-1]=j)}}function Si(f,e,i){var l;let m,S,j;return i?(m=e.changes,S=oi.empty(e.changes.length),j=f.changes.compose(e.changes)):(m=e.changes.map(f.changes),S=f.changes.mapDesc(e.changes,!0),j=f.changes.compose(m)),{changes:j,selection:e.selection?e.selection.map(S):(l=f.selection)===null||l===void 0?void 0:l.map(m),effects:Nr.mapEffects(f.effects,m).concat(Nr.mapEffects(e.effects,S)),annotations:f.annotations.length?f.annotations.concat(e.annotations):e.annotations,scrollIntoView:f.scrollIntoView||e.scrollIntoView}}function Ei(f,e,i){let l=e.selection,m=qi(e.annotations);return e.userEvent&&(m=m.concat(Qr.userEvent.of(e.userEvent))),{changes:e.changes instanceof oi?e.changes:oi.of(e.changes||[],i,f.facet(Gt)),selection:l&&(l instanceof he?l:he.single(l.anchor,l.head)),effects:qi(e.effects),annotations:m,scrollIntoView:!!e.scrollIntoView}}function oo(f,e,i){let l=Ei(f,e.length?e[0]:{},f.doc.length);e.length&&e[0].filter===!1&&(i=!1);for(let S=1;S<e.length;S++){e[S].filter===!1&&(i=!1);let j=!!e[S].sequential;l=Si(l,Ei(f,e[S],j?l.changes.newLength:f.doc.length),j)}let m=Qr.create(f,l.changes,l.selection,l.effects,l.annotations,l.scrollIntoView);return Xi(i?zi(m):m)}function zi(f){let e=f.startState,i=!0;for(let m of e.facet(We)){let S=m(f);if(S===!1){i=!1;break}Array.isArray(S)&&(i=i===!0?S:ki(i,S))}if(i!==!0){let m,S;if(i===!1)S=f.changes.invertedDesc,m=oi.empty(e.doc.length);else{let j=f.changes.filter(i);m=j.changes,S=j.filtered.mapDesc(j.changes).invertedDesc}f=Qr.create(e,m,f.selection&&f.selection.map(S),Nr.mapEffects(f.effects,S),f.annotations,f.scrollIntoView)}let l=e.facet(Ot);for(let m=l.length-1;m>=0;m--){let S=l[m](f);S instanceof Qr?f=S:Array.isArray(S)&&S.length==1&&S[0]instanceof Qr?f=S[0]:f=oo(e,qi(S),!1)}return f}function Xi(f){let e=f.startState,i=e.facet(Dt),l=f;for(let m=i.length-1;m>=0;m--){let S=i[m](f);S&&Object.keys(S).length&&(l=Si(l,Ei(e,S,f.changes.newLength),!0))}return l==f?f:Qr.create(e,f.changes,f.selection,l.effects,l.annotations,l.scrollIntoView)}const uo=[];function qi(f){return f==null?uo:Array.isArray(f)?f:[f]}var Ui=function(f){return f[f.Word=0]="Word",f[f.Space=1]="Space",f[f.Other=2]="Other",f}(Ui||(Ui={}));const Vo=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Cs;try{Cs=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function ra(f){if(Cs)return Cs.test(f);for(let e=0;e<f.length;e++){let i=f[e];if(/\w/.test(i)||i>"\x80"&&(i.toUpperCase()!=i.toLowerCase()||Vo.test(i)))return!0}return!1}function Ts(f){return e=>{if(!/\S/.test(e))return Ui.Space;if(ra(e))return Ui.Word;for(let i=0;i<f.length;i++)if(e.indexOf(f[i])>-1)return Ui.Word;return Ui.Other}}class Io{constructor(e,i,l,m,S,j){this.config=e,this.doc=i,this.selection=l,this.values=m,this.status=e.statusTemplate.slice(),this.computeSlot=S,j&&(j._state=this);for(let Y=0;Y<this.config.dynamicSlots.length;Y++)_n(this,Y<<1);this.computeSlot=null}field(e,i=!0){let l=this.config.address[e.id];if(l==null){if(i)throw new RangeError("Field is not present in this state");return}return _n(this,l),_e(this,l)}update(...e){return oo(this,e,!0)}applyTransaction(e){let i=this.config,{base:l,compartments:m}=i;for(let j of e.effects)j.is(Jr.reconfigure)?(i&&(m=new Map,i.compartments.forEach((Y,te)=>m.set(te,Y)),i=null),m.set(j.value.compartment,j.value.extension)):j.is(Nr.reconfigure)?(i=null,l=j.value):j.is(Nr.appendConfig)&&(i=null,l=qi(l).concat(j.value));let S;i?S=e.startState.values.slice():(i=Ii.resolve(l,m,this),S=new Io(i,this.doc,this.selection,i.dynamicSlots.map(()=>null),(Y,te)=>te.reconfigure(Y,this),null).values),new Io(i,e.newDoc,e.newSelection,S,(j,Y)=>Y.update(j,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:e},range:he.cursor(i.from+e.length)}))}changeByRange(e){let i=this.selection,l=e(i.ranges[0]),m=this.changes(l.changes),S=[l.range],j=qi(l.effects);for(let Y=1;Y<i.ranges.length;Y++){let te=e(i.ranges[Y]),Ee=this.changes(te.changes),Se=Ee.map(m);for(let rn=0;rn<Y;rn++)S[rn]=S[rn].map(Se);let Tt=m.mapDesc(Ee,!0);S.push(te.range.map(Tt)),m=m.compose(Se),j=Nr.mapEffects(j,Se).concat(Nr.mapEffects(qi(te.effects),Tt))}return{changes:m,selection:he.create(S,i.mainIndex),effects:j}}changes(e=[]){return e instanceof oi?e:oi.of(e,this.doc.length,this.facet(Io.lineSeparator))}toText(e){return Te.of(e.split(this.facet(Io.lineSeparator)||fr))}sliceDoc(e=0,i=this.doc.length){return this.doc.sliceString(e,i,this.lineBreak)}facet(e){let i=this.config.address[e.id];return i==null?e.default:(_n(this,i),_e(this,i))}toJSON(e){let i={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let l in e){let m=e[l];m instanceof Sn&&this.config.address[m.id]!=null&&(i[l]=m.spec.toJSON(this.field(e[l]),this))}return i}static fromJSON(e,i={},l){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let m=[];if(l){for(let S in l)if(Object.prototype.hasOwnProperty.call(e,S)){let j=l[S],Y=e[S];m.push(j.init(te=>j.spec.fromJSON(Y,te)))}}return Io.create({doc:e.doc,selection:he.fromJSON(e.selection),extensions:i.extensions?m.concat([i.extensions]):m})}static create(e={}){let i=Ii.resolve(e.extensions||[],new Map),l=e.doc instanceof Te?e.doc:Te.of((e.doc||"").split(i.staticFacet(Io.lineSeparator)||fr)),m=e.selection?e.selection instanceof he?e.selection:he.single(e.selection.anchor,e.selection.head):he.single(0);return Ae(m,l.length),i.staticFacet(vt)||(m=m.asSingle()),new Io(i,l,m,i.dynamicSlots.map(()=>null),(S,j)=>j.create(S),null)}get tabSize(){return this.facet(Io.tabSize)}get lineBreak(){return this.facet(Io.lineSeparator)||`
`}get readOnly(){return this.facet(gn)}phrase(e,...i){for(let l of this.facet(Io.phrases))if(Object.prototype.hasOwnProperty.call(l,e)){e=l[e];break}return i.length&&(e=e.replace(/\$(\$|\d*)/g,(l,m)=>{if(m=="$")return"$";let S=+(m||1);return!S||S>i.length?l:i[S-1]})),e}languageDataAt(e,i,l=-1){let m=[];for(let S of this.facet(rt))for(let j of S(this,i,l))Object.prototype.hasOwnProperty.call(j,e)&&m.push(j[e]);return m}charCategorizer(e){return Ts(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:i,from:l,length:m}=this.doc.lineAt(e),S=this.charCategorizer(e),j=e-l,Y=e-l;for(;j>0;){let te=Oe(i,j,!1);if(S(i.slice(te,j))!=Ui.Word)break;j=te}for(;Y<m;){let te=Oe(i,Y);if(S(i.slice(Y,te))!=Ui.Word)break;Y=te}return j==Y?null:he.range(j+l,Y+l)}}Io.allowMultipleSelections=vt,Io.tabSize=St.define({combine:f=>f.length?f[0]:4}),Io.lineSeparator=Gt,Io.readOnly=gn,Io.phrases=St.define({compare(f,e){let i=Object.keys(f),l=Object.keys(e);return i.length==l.length&&i.every(m=>f[m]==e[m])}}),Io.languageData=rt,Io.changeFilter=We,Io.transactionFilter=Ot,Io.transactionExtender=Dt,Jr.reconfigure=Nr.define();function xr(f,e,i={}){let l={};for(let m of f)for(let S of Object.keys(m)){let j=m[S],Y=l[S];if(Y===void 0)l[S]=j;else if(!(Y===j||j===void 0))if(Object.hasOwnProperty.call(i,S))l[S]=i[S](Y,j);else throw new Error("Config merge conflict for field "+S)}for(let m in e)l[m]===void 0&&(l[m]=e[m]);return l}class ia{eq(e){return this==e}range(e,i=e){return Is.create(e,i,this)}}ia.prototype.startSide=ia.prototype.endSide=0,ia.prototype.point=!1,ia.prototype.mapMode=Er.TrackDel;class Is{constructor(e,i,l){this.from=e,this.to=i,this.value=l}static create(e,i,l){return new Is(e,i,l)}}function Gs(f,e){return f.from-e.from||f.value.startSide-e.value.startSide}class as{constructor(e,i,l,m){this.from=e,this.to=i,this.value=l,this.maxPoint=m}get length(){return this.to[this.to.length-1]}findIndex(e,i,l,m=0){let S=l?this.to:this.from;for(let j=m,Y=S.length;;){if(j==Y)return j;let te=j+Y>>1,Ee=S[te]-e||(l?this.value[te].endSide:this.value[te].startSide)-i;if(te==j)return Ee>=0?j:Y;Ee>=0?Y=te:j=te+1}}between(e,i,l,m){for(let S=this.findIndex(i,-1e9,!0),j=this.findIndex(l,1e9,!1,S);S<j;S++)if(m(this.from[S]+e,this.to[S]+e,this.value[S])===!1)return!1}map(e,i){let l=[],m=[],S=[],j=-1,Y=-1;for(let te=0;te<this.value.length;te++){let Ee=this.value[te],Se=this.from[te]+e,Tt=this.to[te]+e,rn,Nn;if(Se==Tt){let sr=i.mapPos(Se,Ee.startSide,Ee.mapMode);if(sr==null||(rn=Nn=sr,Ee.startSide!=Ee.endSide&&(Nn=i.mapPos(Se,Ee.endSide),Nn<rn)))continue}else if(rn=i.mapPos(Se,Ee.startSide),Nn=i.mapPos(Tt,Ee.endSide),rn>Nn||rn==Nn&&Ee.startSide>0&&Ee.endSide<=0)continue;(Nn-rn||Ee.endSide-Ee.startSide)<0||(j<0&&(j=rn),Ee.point&&(Y=Math.max(Y,Nn-rn)),l.push(Ee),m.push(rn-j),S.push(Nn-j))}return{mapped:l.length?new as(m,S,l,Y):null,pos:j}}}class Wo{constructor(e,i,l,m){this.chunkPos=e,this.chunk=i,this.nextLayer=l,this.maxPoint=m}static create(e,i,l,m){return new Wo(e,i,l,m)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let i of this.chunk)e+=i.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:i=[],sort:l=!1,filterFrom:m=0,filterTo:S=this.length}=e,j=e.filter;if(i.length==0&&!j)return this;if(l&&(i=i.slice().sort(Gs)),this.isEmpty)return i.length?Wo.of(i):this;let Y=new Fe(this,null,-1).goto(0),te=0,Ee=[],Se=new fa;for(;Y.value||te<i.length;)if(te<i.length&&(Y.from-i[te].from||Y.startSide-i[te].value.startSide)>=0){let Tt=i[te++];Se.addInner(Tt.from,Tt.to,Tt.value)||Ee.push(Tt)}else Y.rangeIndex==1&&Y.chunkIndex<this.chunk.length&&(te==i.length||this.chunkEnd(Y.chunkIndex)<i[te].from)&&(!j||m>this.chunkEnd(Y.chunkIndex)||S<this.chunkPos[Y.chunkIndex])&&Se.addChunk(this.chunkPos[Y.chunkIndex],this.chunk[Y.chunkIndex])?Y.nextChunk():((!j||m>Y.to||S<Y.from||j(Y.from,Y.to,Y.value))&&(Se.addInner(Y.from,Y.to,Y.value)||Ee.push(Is.create(Y.from,Y.to,Y.value))),Y.next());return Se.finishInner(this.nextLayer.isEmpty&&!Ee.length?Wo.empty:this.nextLayer.update({add:Ee,filter:j,filterFrom:m,filterTo:S}))}map(e){if(e.empty||this.isEmpty)return this;let i=[],l=[],m=-1;for(let j=0;j<this.chunk.length;j++){let Y=this.chunkPos[j],te=this.chunk[j],Ee=e.touchesRange(Y,Y+te.length);if(Ee===!1)m=Math.max(m,te.maxPoint),i.push(te),l.push(e.mapPos(Y));else if(Ee===!0){let{mapped:Se,pos:Tt}=te.map(Y,e);Se&&(m=Math.max(m,Se.maxPoint),i.push(Se),l.push(Tt))}}let S=this.nextLayer.map(e);return i.length==0?S:new Wo(l,i,S||Wo.empty,m)}between(e,i,l){if(!this.isEmpty){for(let m=0;m<this.chunk.length;m++){let S=this.chunkPos[m],j=this.chunk[m];if(i>=S&&e<=S+j.length&&j.between(S,e-S,i-S,l)===!1)return}this.nextLayer.between(e,i,l)}}iter(e=0){return an.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,i=0){return an.from(e).goto(i)}static compare(e,i,l,m,S=-1){let j=e.filter(Tt=>Tt.maxPoint>0||!Tt.isEmpty&&Tt.maxPoint>=S),Y=i.filter(Tt=>Tt.maxPoint>0||!Tt.isEmpty&&Tt.maxPoint>=S),te=dt(j,Y,l),Ee=new Fr(j,te,S),Se=new Fr(Y,te,S);l.iterGaps((Tt,rn,Nn)=>ui(Ee,Tt,Se,rn,Nn,m)),l.empty&&l.length==0&&ui(Ee,0,Se,0,0,m)}static eq(e,i,l=0,m){m==null&&(m=1e9-1);let S=e.filter(Se=>!Se.isEmpty&&i.indexOf(Se)<0),j=i.filter(Se=>!Se.isEmpty&&e.indexOf(Se)<0);if(S.length!=j.length)return!1;if(!S.length)return!0;let Y=dt(S,j),te=new Fr(S,Y,0).goto(l),Ee=new Fr(j,Y,0).goto(l);for(;;){if(te.to!=Ee.to||!Hi(te.active,Ee.active)||te.point&&(!Ee.point||!te.point.eq(Ee.point)))return!1;if(te.to>m)return!0;te.next(),Ee.next()}}static spans(e,i,l,m,S=-1){let j=new Fr(e,null,S).goto(i),Y=i,te=j.openStart;for(;;){let Ee=Math.min(j.to,l);if(j.point){let Se=j.activeForPoint(j.to),Tt=j.pointFrom<i?Se.length+1:Math.min(Se.length,te);m.point(Y,Ee,j.point,Se,Tt,j.pointRank),te=Math.min(j.openEnd(Ee),Se.length)}else Ee>Y&&(m.span(Y,Ee,j.active,te),te=j.openEnd(Ee));if(j.to>l)return te+(j.point&&j.to>l?1:0);Y=j.to,j.next()}}static of(e,i=!1){let l=new fa;for(let m of e instanceof Is?[e]:i?Ma(e):e)l.add(m.from,m.to,m.value);return l.finish()}}Wo.empty=new Wo([],[],null,-1);function Ma(f){if(f.length>1)for(let e=f[0],i=1;i<f.length;i++){let l=f[i];if(Gs(e,l)>0)return f.slice().sort(Gs);e=l}return f}Wo.empty.nextLayer=Wo.empty;class fa{finishChunk(e){this.chunks.push(new as(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,i,l){this.addInner(e,i,l)||(this.nextLayer||(this.nextLayer=new fa)).add(e,i,l)}addInner(e,i,l){let m=e-this.lastTo||l.startSide-this.last.endSide;if(m<=0&&(e-this.lastFrom||l.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return m<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(i-this.chunkStart),this.last=l,this.lastFrom=e,this.lastTo=i,this.value.push(l),l.point&&(this.maxPoint=Math.max(this.maxPoint,i-e)),!0)}addChunk(e,i){if((e-this.lastTo||i.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,i.maxPoint),this.chunks.push(i),this.chunkPos.push(e);let l=i.value.length-1;return this.last=i.value[l],this.lastFrom=i.from[l]+e,this.lastTo=i.to[l]+e,!0}finish(){return this.finishInner(Wo.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let i=Wo.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,i}}function dt(f,e,i){let l=new Map;for(let S of f)for(let j=0;j<S.chunk.length;j++)S.chunk[j].maxPoint<=0&&l.set(S.chunk[j],S.chunkPos[j]);let m=new Set;for(let S of e)for(let j=0;j<S.chunk.length;j++){let Y=l.get(S.chunk[j]);Y!=null&&(i?i.mapPos(Y):Y)==S.chunkPos[j]&&!i?.touchesRange(Y,Y+S.chunk[j].length)&&m.add(S.chunk[j])}return m}class Fe{constructor(e,i,l,m=0){this.layer=e,this.skip=i,this.minPoint=l,this.rank=m}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,i=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,i,!1),this}gotoInner(e,i,l){for(;this.chunkIndex<this.layer.chunk.length;){let m=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(m)||this.layer.chunkEnd(this.chunkIndex)<e||m.maxPoint<this.minPoint))break;this.chunkIndex++,l=!1}if(this.chunkIndex<this.layer.chunk.length){let m=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],i,!0);(!l||this.rangeIndex<m)&&this.setRangeIndex(m)}this.next()}forward(e,i){(this.to-e||this.endSide-i)<0&&this.gotoInner(e,i,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],i=this.layer.chunk[this.chunkIndex],l=e+i.from[this.rangeIndex];if(this.from=l,this.to=e+i.to[this.rangeIndex],this.value=i.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class an{constructor(e){this.heap=e}static from(e,i=null,l=-1){let m=[];for(let S=0;S<e.length;S++)for(let j=e[S];!j.isEmpty;j=j.nextLayer)j.maxPoint>=l&&m.push(new Fe(j,i,l,S));return m.length==1?m[0]:new an(m)}get startSide(){return this.value?this.value.startSide:0}goto(e,i=-1e9){for(let l of this.heap)l.goto(e,i);for(let l=this.heap.length>>1;l>=0;l--)qn(this.heap,l);return this.next(),this}forward(e,i){for(let l of this.heap)l.forward(e,i);for(let l=this.heap.length>>1;l>=0;l--)qn(this.heap,l);(this.to-e||this.value.endSide-i)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),qn(this.heap,0)}}}function qn(f,e){for(let i=f[e];;){let l=(e<<1)+1;if(l>=f.length)break;let m=f[l];if(l+1<f.length&&m.compare(f[l+1])>=0&&(m=f[l+1],l++),i.compare(m)<0)break;f[l]=i,f[e]=m,e=l}}class Fr{constructor(e,i,l){this.minPoint=l,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=an.from(e,i,l)}goto(e,i=-1e9){return this.cursor.goto(e,i),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=i,this.openStart=-1,this.next(),this}forward(e,i){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-i)<0;)this.removeActive(this.minActive);this.cursor.forward(e,i)}removeActive(e){lo(this.active,e),lo(this.activeTo,e),lo(this.activeRank,e),this.minActive=ts(this.active,this.activeTo)}addActive(e){let i=0,{value:l,to:m,rank:S}=this.cursor;for(;i<this.activeRank.length&&this.activeRank[i]<=S;)i++;mo(this.active,i,l),mo(this.activeTo,i,m),mo(this.activeRank,i,S),e&&mo(e,i,this.cursor.from),this.minActive=ts(this.active,this.activeTo)}next(){let e=this.to,i=this.point;this.point=null;let l=this.openStart<0?[]:null;for(;;){let m=this.minActive;if(m>-1&&(this.activeTo[m]-this.cursor.from||this.active[m].endSide-this.cursor.startSide)<0){if(this.activeTo[m]>e){this.to=this.activeTo[m],this.endSide=this.active[m].endSide;break}this.removeActive(m),l&&lo(l,m)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let S=this.cursor.value;if(!S.point)this.addActive(l),this.cursor.next();else if(i&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=S,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=S.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(l){this.openStart=0;for(let m=l.length-1;m>=0&&l[m]<e;m--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let i=[];for(let l=this.active.length-1;l>=0&&!(this.activeRank[l]<this.pointRank);l--)(this.activeTo[l]>e||this.activeTo[l]==e&&this.active[l].endSide>=this.point.endSide)&&i.push(this.active[l]);return i.reverse()}openEnd(e){let i=0;for(let l=this.activeTo.length-1;l>=0&&this.activeTo[l]>e;l--)i++;return i}}function ui(f,e,i,l,m,S){f.goto(e),i.goto(l);let j=l+m,Y=l,te=l-e;for(;;){let Ee=f.to+te-i.to||f.endSide-i.endSide,Se=Ee<0?f.to+te:i.to,Tt=Math.min(Se,j);if(f.point||i.point?f.point&&i.point&&(f.point==i.point||f.point.eq(i.point))&&Hi(f.activeForPoint(f.to),i.activeForPoint(i.to))||S.comparePoint(Y,Tt,f.point,i.point):Tt>Y&&!Hi(f.active,i.active)&&S.compareRange(Y,Tt,f.active,i.active),Se>j)break;Y=Se,Ee<=0&&f.next(),Ee>=0&&i.next()}}function Hi(f,e){if(f.length!=e.length)return!1;for(let i=0;i<f.length;i++)if(f[i]!=e[i]&&!f[i].eq(e[i]))return!1;return!0}function lo(f,e){for(let i=e,l=f.length-1;i<l;i++)f[i]=f[i+1];f.pop()}function mo(f,e,i){for(let l=f.length-1;l>=e;l--)f[l+1]=f[l];f[e]=i}function ts(f,e){let i=-1,l=1e9;for(let m=0;m<e.length;m++)(e[m]-l||f[m].endSide-f[i].endSide)<0&&(i=m,l=e[m]);return i}function co(f,e,i=f.length){let l=0;for(let m=0;m<i;)f.charCodeAt(m)==9?(l+=e-l%e,m++):(l++,m=Oe(f,m));return l}function Oo(f,e,i,l){for(let m=0,S=0;;){if(S>=e)return m;if(m==f.length)break;S+=f.charCodeAt(m)==9?i-S%i:1,m=Oe(f,m)}return l===!0?-1:f.length}const Po="\u037C",Yo=typeof Symbol>"u"?"__"+Po:Symbol.for(Po),ns=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Os=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Lo{constructor(e,i){this.rules=[];let{finish:l}=i||{};function m(j){return/^@/.test(j)?[j]:j.split(/,\s*/)}function S(j,Y,te,Ee){let Se=[],Tt=/^@(\w+)\b/.exec(j[0]),rn=Tt&&Tt[1]=="keyframes";if(Tt&&Y==null)return te.push(j[0]+";");for(let Nn in Y){let sr=Y[Nn];if(/&/.test(Nn))S(Nn.split(/,\s*/).map(Gr=>j.map(Zr=>Gr.replace(/&/,Zr))).reduce((Gr,Zr)=>Gr.concat(Zr)),sr,te);else if(sr&&typeof sr=="object"){if(!Tt)throw new RangeError("The value of a property ("+Nn+") should be a primitive value.");S(m(Nn),sr,Se,rn)}else sr!=null&&Se.push(Nn.replace(/_.*/,"").replace(/[A-Z]/g,Gr=>"-"+Gr.toLowerCase())+": "+sr+";")}(Se.length||rn)&&te.push((l&&!Tt&&!Ee?j.map(l):j).join(", ")+" {"+Se.join(" ")+"}")}for(let j in e)S(m(j),e[j],this.rules)}getRules(){return this.rules.join(`
`)}static newName(){let e=Os[Yo]||1;return Os[Yo]=e+1,Po+e.toString(36)}static mount(e,i,l){let m=e[ns],S=l&&l.nonce;m?S&&m.setNonce(S):m=new Qs(e,S),m.mount(Array.isArray(i)?i:[i])}}let da=new Map;class Qs{constructor(e,i){let l=e.ownerDocument||e,m=l.defaultView;if(!e.head&&e.adoptedStyleSheets&&m.CSSStyleSheet){let S=da.get(l);if(S)return e.adoptedStyleSheets=[S.sheet,...e.adoptedStyleSheets],e[ns]=S;this.sheet=new m.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],da.set(l,this)}else{this.styleTag=l.createElement("style"),i&&this.styleTag.setAttribute("nonce",i);let S=e.head||e;S.insertBefore(this.styleTag,S.firstChild)}this.modules=[],e[ns]=this}mount(e){let i=this.sheet,l=0,m=0;for(let S=0;S<e.length;S++){let j=e[S],Y=this.modules.indexOf(j);if(Y<m&&Y>-1&&(this.modules.splice(Y,1),m--,Y=-1),Y==-1){if(this.modules.splice(m++,0,j),i)for(let te=0;te<j.rules.length;te++)i.insertRule(j.rules[te],l++)}else{for(;m<Y;)l+=this.modules[m++].rules.length;l+=j.rules.length,m++}}if(!i){let S="";for(let j=0;j<this.modules.length;j++)S+=this.modules[j].getRules()+`
`;this.styleTag.textContent=S}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}for(var ta={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:"'"},Oa={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},_l=typeof navigator<"u"&&/Mac/.test(navigator.platform),gs=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),ds=0;ds<10;ds++)ta[48+ds]=ta[96+ds]=String(ds);for(var ds=1;ds<=24;ds++)ta[ds+111]="F"+ds;for(var ds=65;ds<=90;ds++)ta[ds]=String.fromCharCode(ds+32),Oa[ds]=String.fromCharCode(ds);for(var es in ta)Oa.hasOwnProperty(es)||(Oa[es]=ta[es]);function Ga(f){var e=_l&&f.metaKey&&f.shiftKey&&!f.ctrlKey&&!f.altKey||gs&&f.shiftKey&&f.key&&f.key.length==1||f.key=="Unidentified",i=!e&&f.key||(f.shiftKey?Oa:ta)[f.keyCode]||f.key||"Unidentified";return i=="Esc"&&(i="Escape"),i=="Del"&&(i="Delete"),i=="Left"&&(i="ArrowLeft"),i=="Up"&&(i="ArrowUp"),i=="Right"&&(i="ArrowRight"),i=="Down"&&(i="ArrowDown"),i}function So(f){let e;return f.nodeType==11?e=f.getSelection?f:f.ownerDocument:e=f,e.getSelection()}function Di(f,e){return e?f==e||f.contains(e.nodeType!=1?e.parentNode:e):!1}function Il(f){let e=f.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Na(f,e){if(!e.anchorNode)return!1;try{return Di(f,e.anchorNode)}catch{return!1}}function xl(f){return f.nodeType==3?me(f,0,f.nodeValue.length).getClientRects():f.nodeType==1?f.getClientRects():[]}function Rl(f,e,i,l){return i?fi(f,e,i,l,-1)||fi(f,e,i,l,1):!1}function Pa(f){for(var e=0;;e++)if(f=f.previousSibling,!f)return e}function fi(f,e,i,l,m){for(;;){if(f==i&&e==l)return!0;if(e==(m<0?0:rl(f))){if(f.nodeName=="DIV")return!1;let S=f.parentNode;if(!S||S.nodeType!=1)return!1;e=Pa(f)+(m<0?0:1),f=S}else if(f.nodeType==1){if(f=f.childNodes[e+(m<0?-1:0)],f.nodeType==1&&f.contentEditable=="false")return!1;e=m<0?rl(f):0}else return!1}}function rl(f){return f.nodeType==3?f.nodeValue.length:f.childNodes.length}function Xn(f,e){let i=e?f.left:f.right;return{left:i,right:i,top:f.top,bottom:f.bottom}}function Kr(f){return{left:0,right:f.innerWidth,top:0,bottom:f.innerHeight}}function Ln(f,e,i,l,m,S,j,Y){let te=f.ownerDocument,Ee=te.defaultView||window;for(let Se=f,Tt=!1;Se&&!Tt;)if(Se.nodeType==1){let rn,Nn=Se==te.body,sr=1,Gr=1;if(Nn)rn=Kr(Ee);else{if(/^(fixed|sticky)$/.test(getComputedStyle(Se).position)&&(Tt=!0),Se.scrollHeight<=Se.clientHeight&&Se.scrollWidth<=Se.clientWidth){Se=Se.assignedSlot||Se.parentNode;continue}let ro=Se.getBoundingClientRect();sr=ro.width/Se.offsetWidth,Gr=ro.height/Se.offsetHeight,rn={left:ro.left,right:ro.left+Se.clientWidth*sr,top:ro.top,bottom:ro.top+Se.clientHeight*Gr}}let Zr=0,_i=0;if(m=="nearest")e.top<rn.top?(_i=-(rn.top-e.top+j),i>0&&e.bottom>rn.bottom+_i&&(_i=e.bottom-rn.bottom+_i+j)):e.bottom>rn.bottom&&(_i=e.bottom-rn.bottom+j,i<0&&e.top-_i<rn.top&&(_i=-(rn.top+_i-e.top+j)));else{let ro=e.bottom-e.top,To=rn.bottom-rn.top;_i=(m=="center"&&ro<=To?e.top+ro/2-To/2:m=="start"||m=="center"&&i<0?e.top-j:e.bottom-To+j)-rn.top}if(l=="nearest"?e.left<rn.left?(Zr=-(rn.left-e.left+S),i>0&&e.right>rn.right+Zr&&(Zr=e.right-rn.right+Zr+S)):e.right>rn.right&&(Zr=e.right-rn.right+S,i<0&&e.left<rn.left+Zr&&(Zr=-(rn.left+Zr-e.left+S))):Zr=(l=="center"?e.left+(e.right-e.left)/2-(rn.right-rn.left)/2:l=="start"==Y?e.left-S:e.right-(rn.right-rn.left)+S)-rn.left,Zr||_i)if(Nn)Ee.scrollBy(Zr,_i);else{let ro=0,To=0;if(_i){let Zi=Se.scrollTop;Se.scrollTop+=_i/Gr,To=(Se.scrollTop-Zi)*Gr}if(Zr){let Zi=Se.scrollLeft;Se.scrollLeft+=Zr/sr,ro=(Se.scrollLeft-Zi)*sr}e={left:e.left-ro,top:e.top-To,right:e.right-ro,bottom:e.bottom-To},ro&&Math.abs(ro-Zr)<1&&(l="nearest"),To&&Math.abs(To-_i)<1&&(m="nearest")}if(Nn)break;Se=Se.assignedSlot||Se.parentNode}else if(Se.nodeType==11)Se=Se.host;else break}function gr(f){let e=f.ownerDocument;for(let i=f.parentNode;i&&i!=e.body;)if(i.nodeType==1){if(i.scrollHeight>i.clientHeight||i.scrollWidth>i.clientWidth)return i;i=i.assignedSlot||i.parentNode}else if(i.nodeType==11)i=i.host;else break;return null}class pr{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:i,focusNode:l}=e;this.set(i,Math.min(e.anchorOffset,i?rl(i):0),l,Math.min(e.focusOffset,l?rl(l):0))}set(e,i,l,m){this.anchorNode=e,this.anchorOffset=i,this.focusNode=l,this.focusOffset=m}}let Wr=null;function Lt(f){if(f.setActive)return f.setActive();if(Wr)return f.focus(Wr);let e=[];for(let i=f;i&&(e.push(i,i.scrollTop,i.scrollLeft),i!=i.ownerDocument);i=i.parentNode);if(f.focus(Wr==null?{get preventScroll(){return Wr={preventScroll:!0},!0}}:void 0),!Wr){Wr=!1;for(let i=0;i<e.length;){let l=e[i++],m=e[i++],S=e[i++];l.scrollTop!=m&&(l.scrollTop=m),l.scrollLeft!=S&&(l.scrollLeft=S)}}}let re;function me(f,e,i=e){let l=re||(re=document.createRange());return l.setEnd(f,i),l.setStart(f,e),l}function Ue(f,e,i){let l={key:e,code:e,keyCode:i,which:i,cancelable:!0},m=new KeyboardEvent("keydown",l);m.synthetic=!0,f.dispatchEvent(m);let S=new KeyboardEvent("keyup",l);return S.synthetic=!0,f.dispatchEvent(S),m.defaultPrevented||S.defaultPrevented}function He(f){for(;f;){if(f&&(f.nodeType==9||f.nodeType==11&&f.host))return f;f=f.assignedSlot||f.parentNode}return null}function At(f){for(;f.attributes.length;)f.removeAttributeNode(f.attributes[0])}function Ut(f,e){let i=e.focusNode,l=e.focusOffset;if(!i||e.anchorNode!=i||e.anchorOffset!=l)return!1;for(l=Math.min(l,rl(i));;)if(l){if(i.nodeType!=1)return!1;let m=i.childNodes[l-1];m.contentEditable=="false"?l--:(i=m,l=rl(i))}else{if(i==f)return!0;l=Pa(i),i=i.parentNode}}function en(f){return f.scrollTop>Math.max(1,f.scrollHeight-f.clientHeight-4)}class Yt{constructor(e,i,l=!0){this.node=e,this.offset=i,this.precise=l}static before(e,i){return new Yt(e.parentNode,Pa(e),i)}static after(e,i){return new Yt(e.parentNode,Pa(e)+1,i)}}const In=[];class $n{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let i=this.posAtStart;for(let l of this.children){if(l==e)return i;i+=l.length+l.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,i){if(this.flags&2){let l=this.dom,m=null,S;for(let j of this.children){if(j.flags&7){if(!j.dom&&(S=m?m.nextSibling:l.firstChild)){let Y=$n.get(S);(!Y||!Y.parent&&Y.canReuseDOM(j))&&j.reuseDOM(S)}j.sync(e,i),j.flags&=-8}if(S=m?m.nextSibling:l.firstChild,i&&!i.written&&i.node==l&&S!=j.dom&&(i.written=!0),j.dom.parentNode==l)for(;S&&S!=j.dom;)S=wr(S);else l.insertBefore(j.dom,S);m=j.dom}for(S=m?m.nextSibling:l.firstChild,S&&i&&i.node==l&&(i.written=!0);S;)S=wr(S)}else if(this.flags&1)for(let l of this.children)l.flags&7&&(l.sync(e,i),l.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,i){let l;if(e==this.dom)l=this.dom.childNodes[i];else{let m=rl(e)==0?0:i==0?-1:1;for(;;){let S=e.parentNode;if(S==this.dom)break;m==0&&S.firstChild!=S.lastChild&&(e==S.firstChild?m=-1:m=1),e=S}m<0?l=e:l=e.nextSibling}if(l==this.dom.firstChild)return 0;for(;l&&!$n.get(l);)l=l.nextSibling;if(!l)return this.length;for(let m=0,S=0;;m++){let j=this.children[m];if(j.dom==l)return S;S+=j.length+j.breakAfter}}domBoundsAround(e,i,l=0){let m=-1,S=-1,j=-1,Y=-1;for(let te=0,Ee=l,Se=l;te<this.children.length;te++){let Tt=this.children[te],rn=Ee+Tt.length;if(Ee<e&&rn>i)return Tt.domBoundsAround(e,i,Ee);if(rn>=e&&m==-1&&(m=te,S=Ee),Ee>i&&Tt.dom.parentNode==this.dom){j=te,Y=Se;break}Se=rn,Ee=rn+Tt.breakAfter}return{from:S,to:Y<0?l+this.length:Y,startDOM:(m?this.children[m-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:j<this.children.length&&j>=0?this.children[j].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let i=this.parent;i;i=i.parent){if(e&&(i.flags|=2),i.flags&1)return;i.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let i=e.parent;if(!i)return e;e=i}}replaceChildren(e,i,l=In){this.markDirty();for(let m=e;m<i;m++){let S=this.children[m];S.parent==this&&S.destroy()}this.children.splice(e,i-e,...l);for(let m=0;m<l.length;m++)l[m].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new Tr(this.children,e,this.children.length)}childPos(e,i=1){return this.childCursor().findPos(e,i)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+(e=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,i,l,m,S,j){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!((this.flags|e.flags)&8)}getSide(){return 0}destroy(){this.parent=null}}$n.prototype.breakAfter=0;function wr(f){let e=f.nextSibling;return f.parentNode.removeChild(f),e}class Tr{constructor(e,i,l){this.children=e,this.pos=i,this.i=l,this.off=0}findPos(e,i=1){for(;;){if(e>this.pos||e==this.pos&&(i>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let l=this.children[--this.i];this.pos-=l.length+l.breakAfter}}}function qr(f,e,i,l,m,S,j,Y,te){let{children:Ee}=f,Se=Ee.length?Ee[e]:null,Tt=S.length?S[S.length-1]:null,rn=Tt?Tt.breakAfter:j;if(!(e==l&&Se&&!j&&!rn&&S.length<2&&Se.merge(i,m,S.length?Tt:null,i==0,Y,te))){if(l<Ee.length){let Nn=Ee[l];Nn&&(m<Nn.length||Nn.breakAfter&&Tt?.breakAfter)?(e==l&&(Nn=Nn.split(m),m=0),!rn&&Tt&&Nn.merge(0,m,Tt,!0,0,te)?S[S.length-1]=Nn:((m||Nn.children.length&&!Nn.children[0].length)&&Nn.merge(0,m,null,!1,0,te),S.push(Nn))):Nn?.breakAfter&&(Tt?Tt.breakAfter=1:j=1),l++}for(Se&&(Se.breakAfter=j,i>0&&(!j&&S.length&&Se.merge(i,Se.length,S[0],!1,Y,0)?Se.breakAfter=S.shift().breakAfter:(i<Se.length||Se.children.length&&Se.children[Se.children.length-1].length==0)&&Se.merge(i,Se.length,null,!1,Y,0),e++));e<l&&S.length;)if(Ee[l-1].become(S[S.length-1]))l--,S.pop(),te=S.length?0:Y;else if(Ee[e].become(S[0]))e++,S.shift(),Y=S.length?0:te;else break;!S.length&&e&&l<Ee.length&&!Ee[e-1].breakAfter&&Ee[l].merge(0,0,Ee[e-1],!1,Y,te)&&e--,(e<l||S.length)&&f.replaceChildren(e,l,S)}}function di(f,e,i,l,m,S){let j=f.childCursor(),{i:Y,off:te}=j.findPos(i,1),{i:Ee,off:Se}=j.findPos(e,-1),Tt=e-i;for(let rn of l)Tt+=rn.length;f.length+=Tt,qr(f,Ee,Se,Y,te,l,0,m,S)}let ai=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},Ri=typeof document<"u"?document:{documentElement:{style:{}}};const Qi=/Edge\/(\d+)/.exec(ai.userAgent),so=/MSIE \d/.test(ai.userAgent),Do=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ai.userAgent),Ro=!!(so||Do||Qi),Rs=!Ro&&/gecko\/(\d+)/i.test(ai.userAgent),Ns=!Ro&&/Chrome\/(\d+)/.exec(ai.userAgent),Ls="webkitFontSmoothing"in Ri.documentElement.style,Ba=!Ro&&/Apple Computer/.test(ai.vendor),Da=Ba&&(/Mobile\/\w+/.test(ai.userAgent)||ai.maxTouchPoints>2);var go={mac:Da||/Mac/.test(ai.platform),windows:/Win/.test(ai.platform),linux:/Linux|X11/.test(ai.platform),ie:Ro,ie_version:so?Ri.documentMode||6:Do?+Do[1]:Qi?+Qi[1]:0,gecko:Rs,gecko_version:Rs?+(/Firefox\/(\d+)/.exec(ai.userAgent)||[0,0])[1]:0,chrome:!!Ns,chrome_version:Ns?+Ns[1]:0,ios:Da,android:/Android\b/.test(ai.userAgent),webkit:Ls,safari:Ba,webkit_version:Ls?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:Ri.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const Wl=256;class na extends $n{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,i){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(i&&i.node==this.dom&&(i.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,i,l){return this.flags&8||l&&(!(l instanceof na)||this.length-(i-e)+l.length>Wl||l.flags&8)?!1:(this.text=this.text.slice(0,e)+(l?l.text:"")+this.text.slice(i),this.markDirty(),!0)}split(e){let i=new na(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),i.flags|=this.flags&8,i}localPosFromDOM(e,i){return e==this.dom?i:i?this.text.length:0}domAtPos(e){return new Yt(this.dom,e)}domBoundsAround(e,i,l){return{from:l,to:l+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,i){return Fs(this.dom,e,i)}}class Eo extends $n{constructor(e,i=[],l=0){super(),this.mark=e,this.children=i,this.length=l;for(let m of i)m.setParent(this)}setAttrs(e){if(At(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let i in this.mark.attrs)e.setAttribute(i,this.mark.attrs[i]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,i){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,i)}merge(e,i,l,m,S,j){return l&&(!(l instanceof Eo&&l.mark.eq(this.mark))||e&&S<=0||i<this.length&&j<=0)?!1:(di(this,e,i,l?l.children:[],S-1,j-1),this.markDirty(),!0)}split(e){let i=[],l=0,m=-1,S=0;for(let Y of this.children){let te=l+Y.length;te>e&&i.push(l<e?Y.split(e-l):Y),m<0&&l>=e&&(m=S),l=te,S++}let j=this.length-e;return this.length=e,m>-1&&(this.children.length=m,this.markDirty()),new Eo(this.mark,i,j)}domAtPos(e){return Ss(this,e)}coordsAt(e,i){return Us(this,e,i)}}function Fs(f,e,i){let l=f.nodeValue.length;e>l&&(e=l);let m=e,S=e,j=0;e==0&&i<0||e==l&&i>=0?go.chrome||go.gecko||(e?(m--,j=1):S<l&&(S++,j=-1)):i<0?m--:S<l&&S++;let Y=me(f,m,S).getClientRects();if(!Y.length)return null;let te=Y[(j?j<0:i>=0)?0:Y.length-1];return go.safari&&!j&&te.width==0&&(te=Array.prototype.find.call(Y,Ee=>Ee.width)||te),j?Xn(te,j<0):te||null}class _a extends $n{static create(e,i,l){return new _a(e,i,l)}constructor(e,i,l){super(),this.widget=e,this.length=i,this.side=l,this.prevWidget=null}split(e){let i=_a.create(this.widget,this.length-e,this.side);return this.length-=e,i}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,i,l,m,S,j){return l&&(!(l instanceof _a)||!this.widget.compare(l.widget)||e>0&&S<=0||i<this.length&&j<=0)?!1:(this.length=e+(l?l.length:0)+(this.length-i),!0)}become(e){return e instanceof _a&&e.side==this.side&&this.widget.constructor==e.widget.constructor?(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(this.length==0)return Te.empty;let e=this;for(;e.parent;)e=e.parent;let{view:i}=e,l=i&&i.state.doc,m=this.posAtStart;return l?l.slice(m,m+this.length):Te.empty}domAtPos(e){return(this.length?e==0:this.side>0)?Yt.before(this.dom):Yt.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,i){let l=this.widget.coordsAt(this.dom,e,i);if(l)return l;let m=this.dom.getClientRects(),S=null;if(!m.length)return null;let j=this.side?this.side<0:e>0;for(let Y=j?m.length-1:0;S=m[Y],!(e>0?Y==0:Y==m.length-1||S.top<S.bottom);Y+=j?-1:1);return Xn(S,!j)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class Ya extends $n{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof Ya&&e.side==this.side}split(){return new Ya(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?Yt.before(this.dom):Yt.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Te.empty}get isHidden(){return!0}}na.prototype.children=_a.prototype.children=Ya.prototype.children=In;function Ss(f,e){let i=f.dom,{children:l}=f,m=0;for(let S=0;m<l.length;m++){let j=l[m],Y=S+j.length;if(!(Y==S&&j.getSide()<=0)){if(e>S&&e<Y&&j.dom.parentNode==i)return j.domAtPos(e-S);if(e<=S)break;S=Y}}for(let S=m;S>0;S--){let j=l[S-1];if(j.dom.parentNode==i)return j.domAtPos(j.length)}for(let S=m;S<l.length;S++){let j=l[S];if(j.dom.parentNode==i)return j.domAtPos(0)}return new Yt(i,0)}function Zl(f,e,i){let l,{children:m}=f;i>0&&e instanceof Eo&&m.length&&(l=m[m.length-1])instanceof Eo&&l.mark.eq(e.mark)?Zl(l,e.children[0],i-1):(m.push(e),e.setParent(f)),f.length+=e.length}function Us(f,e,i){let l=null,m=-1,S=null,j=-1;function Y(Ee,Se){for(let Tt=0,rn=0;Tt<Ee.children.length&&rn<=Se;Tt++){let Nn=Ee.children[Tt],sr=rn+Nn.length;sr>=Se&&(Nn.children.length?Y(Nn,Se-rn):(!S||S.isHidden&&i>0)&&(sr>Se||rn==sr&&Nn.getSide()>0)?(S=Nn,j=Se-rn):(rn<Se||rn==sr&&Nn.getSide()<0&&!Nn.isHidden)&&(l=Nn,m=Se-rn)),rn=sr}}Y(f,e);let te=(i<0?l:S)||l||S;return te?te.coordsAt(Math.max(0,te==l?m:j),i):Ll(f)}function Ll(f){let e=f.dom.lastChild;if(!e)return f.dom.getBoundingClientRect();let i=xl(e);return i[i.length-1]||null}function nc(f,e){for(let i in f)i=="class"&&e.class?e.class+=" "+f.class:i=="style"&&e.style?e.style+=";"+f.style:e[i]=f[i];return e}const Dc=Object.create(null);function xa(f,e,i){if(f==e)return!0;f||(f=Dc),e||(e=Dc);let l=Object.keys(f),m=Object.keys(e);if(l.length-(i&&l.indexOf(i)>-1?1:0)!=m.length-(i&&m.indexOf(i)>-1?1:0))return!1;for(let S of l)if(S!=i&&(m.indexOf(S)==-1||f[S]!==e[S]))return!1;return!0}function Kl(f,e,i){let l=!1;if(e)for(let m in e)i&&m in i||(l=!0,m=="style"?f.style.cssText="":f.removeAttribute(m));if(i)for(let m in i)e&&e[m]==i[m]||(l=!0,m=="style"?f.style.cssText=i[m]:f.setAttribute(m,i[m]));return l}function Ea(f){let e=Object.create(null);for(let i=0;i<f.attributes.length;i++){let l=f.attributes[i];e[l.name]=l.value}return e}class js extends $n{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,i,l,m,S,j){if(l){if(!(l instanceof js))return!1;this.dom||l.transferDOM(this)}return m&&this.setDeco(l?l.attrs:null),di(this,e,i,l?l.children:[],S,j),!0}split(e){let i=new js;if(i.breakAfter=this.breakAfter,this.length==0)return i;let{i:l,off:m}=this.childPos(e);m&&(i.append(this.children[l].split(m),0),this.children[l].merge(m,this.children[l].length,null,!1,0,0),l++);for(let S=l;S<this.children.length;S++)i.append(this.children[S],0);for(;l>0&&this.children[l-1].length==0;)this.children[--l].destroy();return this.children.length=l,this.markDirty(),this.length=e,i}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){xa(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,i){Zl(this,e,i)}addLineDeco(e){let i=e.spec.attributes,l=e.spec.class;i&&(this.attrs=nc(i,this.attrs||{})),l&&(this.attrs=nc({class:l},this.attrs||{}))}domAtPos(e){return Ss(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,i){var l;this.dom?this.flags&4&&(At(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(Kl(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,i);let m=this.dom.lastChild;for(;m&&$n.get(m)instanceof Eo;)m=m.lastChild;if(!m||!this.length||m.nodeName!="BR"&&((l=$n.get(m))===null||l===void 0?void 0:l.isEditable)==!1&&(!go.ios||!this.children.some(S=>S instanceof na))){let S=document.createElement("BR");S.cmIgnore=!0,this.dom.appendChild(S)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,i;for(let l of this.children){if(!(l instanceof na)||/[^ -~]/.test(l.text))return null;let m=xl(l.dom);if(m.length!=1)return null;e+=m[0].width,i=m[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:i}:null}coordsAt(e,i){let l=Us(this,e,i);if(!this.children.length&&l&&this.parent){let{heightOracle:m}=this.parent.view.viewState,S=l.bottom-l.top;if(Math.abs(S-m.lineHeight)<2&&m.textHeight<S){let j=(S-m.textHeight)/2;return{top:l.top+j,bottom:l.bottom-j,left:l.left,right:l.left}}}return l}become(e){return!1}covers(){return!0}static find(e,i){for(let l=0,m=0;l<e.children.length;l++){let S=e.children[l],j=m+S.length;if(j>=i){if(S instanceof js)return S;if(j>i)break}m=j+S.breakAfter}return null}}class jl extends $n{constructor(e,i,l){super(),this.widget=e,this.length=i,this.deco=l,this.breakAfter=0,this.prevWidget=null}merge(e,i,l,m,S,j){return l&&(!(l instanceof jl)||!this.widget.compare(l.widget)||e>0&&S<=0||i<this.length&&j<=0)?!1:(this.length=e+(l?l.length:0)+(this.length-i),!0)}domAtPos(e){return e==0?Yt.before(this.dom):Yt.after(this.dom,e==this.length)}split(e){let i=this.length-e;this.length=e;let l=new jl(this.widget,i,this.deco);return l.breakAfter=this.breakAfter,l}get children(){return In}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):Te.empty}domBoundsAround(){return null}become(e){return e instanceof jl&&e.widget.constructor==this.widget.constructor?(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,i){return this.widget.coordsAt(this.dom,e,i)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:i,endSide:l}=this.deco;return i==l?!1:e<0?i<0:l>0}}class Bl{eq(e){return!1}updateDOM(e,i){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,i,l){return null}get isHidden(){return!1}destroy(e){}}var il=function(f){return f[f.Text=0]="Text",f[f.WidgetBefore=1]="WidgetBefore",f[f.WidgetAfter=2]="WidgetAfter",f[f.WidgetRange=3]="WidgetRange",f}(il||(il={}));class ko extends ia{constructor(e,i,l,m){super(),this.startSide=e,this.endSide=i,this.widget=l,this.spec=m}get heightRelevant(){return!1}static mark(e){return new fc(e)}static widget(e){let i=Math.max(-1e4,Math.min(1e4,e.side||0)),l=!!e.block;return i+=l&&!e.inlineOrder?i>0?3e8:-4e8:i>0?1e8:-1e8,new rc(e,i,i,l,e.widget||null,!1)}static replace(e){let i=!!e.block,l,m;if(e.isBlockGap)l=-5e8,m=4e8;else{let{start:S,end:j}=Ic(e,i);l=(S?i?-3e8:-1:5e8)-1,m=(j?i?2e8:1:-6e8)+1}return new rc(e,l,m,i,e.widget||null,!0)}static line(e){return new pc(e)}static set(e,i=!1){return Wo.of(e,i)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}ko.none=Wo.empty;class fc extends ko{constructor(e){let{start:i,end:l}=Ic(e);super(i?-1:5e8,l?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var i,l;return this==e||e instanceof fc&&this.tagName==e.tagName&&(this.class||((i=this.attrs)===null||i===void 0?void 0:i.class))==(e.class||((l=e.attrs)===null||l===void 0?void 0:l.class))&&xa(this.attrs,e.attrs,"class")}range(e,i=e){if(e>=i)throw new RangeError("Mark decorations may not be empty");return super.range(e,i)}}fc.prototype.point=!1;class pc extends ko{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof pc&&this.spec.class==e.spec.class&&xa(this.spec.attributes,e.spec.attributes)}range(e,i=e){if(i!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,i)}}pc.prototype.mapMode=Er.TrackBefore,pc.prototype.point=!0;class rc extends ko{constructor(e,i,l,m,S,j){super(i,l,S,e),this.block=m,this.isReplace=j,this.mapMode=m?i<=0?Er.TrackBefore:Er.TrackAfter:Er.TrackDel}get type(){return this.startSide!=this.endSide?il.WidgetRange:this.startSide<=0?il.WidgetBefore:il.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof rc&&su(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,i=e){if(this.isReplace&&(e>i||e==i&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&i!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,i)}}rc.prototype.point=!0;function Ic(f,e=!1){let{inclusiveStart:i,inclusiveEnd:l}=f;return i==null&&(i=f.inclusive),l==null&&(l=f.inclusive),{start:i??e,end:l??e}}function su(f,e){return f==e||!!(f&&e&&f.compare(e))}function Rc(f,e,i,l=0){let m=i.length-1;m>=0&&i[m]+l>=f?i[m]=Math.max(i[m],e):i.push(f,e)}class El{constructor(e,i,l,m){this.doc=e,this.pos=i,this.end=l,this.disallowBlockEffectsFor=m,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=i}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof jl&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new js),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(Nl(new Ya(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof jl)&&this.getLine()}buildText(e,i,l){for(;e>0;){if(this.textOff==this.text.length){let{value:S,lineBreak:j,done:Y}=this.cursor.next(this.skip);if(this.skip=0,Y)throw new Error("Ran out of text content when drawing inline views");if(j){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=S,this.textOff=0}let m=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(i.slice(i.length-l)),this.getLine().append(Nl(new na(this.text.slice(this.textOff,this.textOff+m)),i),l),this.atCursorPos=!0,this.textOff+=m,e-=m,l=0}}span(e,i,l,m){this.buildText(i-e,l,m),this.pos=i,this.openStart<0&&(this.openStart=m)}point(e,i,l,m,S,j){if(this.disallowBlockEffectsFor[j]&&l instanceof rc){if(l.block)throw new RangeError("Block decorations may not be specified via plugins");if(i>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let Y=i-e;if(l instanceof rc)if(l.block)l.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new jl(l.widget||new ud("div"),Y,l));else{let te=_a.create(l.widget||new ud("span"),Y,Y?0:l.startSide),Ee=this.atCursorPos&&!te.isEditable&&S<=m.length&&(e<i||l.startSide>0),Se=!te.isEditable&&(e<i||S>m.length||l.startSide<=0),Tt=this.getLine();this.pendingBuffer==2&&!Ee&&!te.isEditable&&(this.pendingBuffer=0),this.flushBuffer(m),Ee&&(Tt.append(Nl(new Ya(1),m),S),S=m.length+Math.max(0,S-m.length)),Tt.append(Nl(te,m),S),this.atCursorPos=Se,this.pendingBuffer=Se?e<i||S>m.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=m.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(l);Y&&(this.textOff+Y<=this.text.length?this.textOff+=Y:(this.skip+=Y-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=i),this.openStart<0&&(this.openStart=S)}static build(e,i,l,m,S){let j=new El(e,i,l,S);return j.openEnd=Wo.spans(m,i,l,j),j.openStart<0&&(j.openStart=j.openEnd),j.finish(j.openEnd),j}}function Nl(f,e){for(let i of e)f=new Eo(i,[f],f.length);return f}class ud extends Bl{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}const au=St.define(),Lc=St.define(),zu=St.define(),mc=St.define(),ol=St.define(),gc=St.define(),Fl=St.define(),jn=St.define({combine:f=>f.some(e=>e)}),Qa=St.define({combine:f=>f.some(e=>e)});class jc{constructor(e,i="nearest",l="nearest",m=5,S=5){this.range=e,this.y=i,this.x=l,this.yMargin=m,this.xMargin=S}map(e){return e.empty?this:new jc(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin)}}const Fa=Nr.define({map:(f,e)=>f.map(e)});function Go(f,e,i){let l=f.facet(mc);l.length?l[0](e):window.onerror?window.onerror(String(e),i,void 0,void 0,e):i?console.error(i+":",e):console.error(e)}const Tc=St.define({combine:f=>f.length?f[0]:!0});let Zc=0;const sl=St.define();class $s{constructor(e,i,l,m,S){this.id=e,this.create=i,this.domEventHandlers=l,this.domEventObservers=m,this.extension=S(this)}static define(e,i){const{eventHandlers:l,eventObservers:m,provide:S,decorations:j}=i||{};return new $s(Zc++,e,l,m,Y=>{let te=[sl.of(Y)];return j&&te.push(Gl.of(Ee=>{let Se=Ee.plugin(Y);return Se?j(Se):ko.none})),S&&te.push(S(Y)),te})}static fromClass(e,i){return $s.define(l=>new e(l),i)}}class xs{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let i=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(i)}catch(l){if(Go(i.state,l,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(i){Go(e.state,i,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var i;if(!((i=this.value)===null||i===void 0)&&i.destroy)try{this.value.destroy()}catch(l){Go(e.state,l,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const cs=St.define(),hs=St.define(),Gl=St.define(),As=St.define(),fs=St.define();function $a(f,e,i){let l=f.state.facet(fs);if(!l.length)return l;let m=l.map(j=>j instanceof Function?j(f):j),S=[];return Wo.spans(m,e,i,{point(){},span(j,Y,te,Ee){let Se=S;for(let Tt=te.length-1;Tt>=0;Tt--,Ee--){let rn=te[Tt].spec.bidiIsolate,Nn;if(rn!=null)if(Ee>0&&Se.length&&(Nn=Se[Se.length-1]).to==j&&Nn.direction==rn)Nn.to=Y,Se=Nn.inner;else{let sr={from:j,to:Y,direction:rn,inner:[]};Se.push(sr),Se=sr.inner}}}}),S}const al=St.define();function Vs(f){let e=0,i=0,l=0,m=0;for(let S of f.state.facet(al)){let j=S(f);j&&(j.left!=null&&(e=Math.max(e,j.left)),j.right!=null&&(i=Math.max(i,j.right)),j.top!=null&&(l=Math.max(l,j.top)),j.bottom!=null&&(m=Math.max(m,j.bottom)))}return{left:e,right:i,top:l,bottom:m}}const Hs=St.define();class ka{constructor(e,i,l,m){this.fromA=e,this.toA=i,this.fromB=l,this.toB=m}join(e){return new ka(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let i=e.length,l=this;for(;i>0;i--){let m=e[i-1];if(!(m.fromA>l.toA)){if(m.toA<l.fromA)break;l=l.join(m),e.splice(i-1,1)}}return e.splice(i,0,l),e}static extendWithRanges(e,i){if(i.length==0)return e;let l=[];for(let m=0,S=0,j=0,Y=0;;m++){let te=m==e.length?null:e[m],Ee=j-Y,Se=te?te.fromB:1e9;for(;S<i.length&&i[S]<Se;){let Tt=i[S],rn=i[S+1],Nn=Math.max(Y,Tt),sr=Math.min(Se,rn);if(Nn<=sr&&new ka(Nn+Ee,sr+Ee,Nn,sr).addToSet(l),rn>Se)break;S+=2}if(!te)return l;new ka(te.fromA,te.toA,te.fromB,te.toB).addToSet(l),j=te.toA,Y=te.toB}}}class kl{constructor(e,i,l){this.view=e,this.state=i,this.transactions=l,this.flags=0,this.startState=e.state,this.changes=oi.empty(this.startState.doc.length);for(let S of l)this.changes=this.changes.compose(S.changes);let m=[];this.changes.iterChangedRanges((S,j,Y,te)=>m.push(new ka(S,j,Y,te))),this.changedRanges=m}static create(e,i,l){return new kl(e,i,l)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}var la=function(f){return f[f.LTR=0]="LTR",f[f.RTL=1]="RTL",f}(la||(la={}));const rs=la.LTR,ic=la.RTL;function Mu(f){let e=[];for(let i=0;i<f.length;i++)e.push(1<<+f[i]);return e}const Sd=Mu("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),Bc=Mu("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),dd=Object.create(null),Ha=[];for(let f of["()","[]","{}"]){let e=f.charCodeAt(0),i=f.charCodeAt(1);dd[e]=i,dd[i]=-e}function ll(f){return f<=247?Sd[f]:1424<=f&&f<=1524?2:1536<=f&&f<=1785?Bc[f-1536]:1774<=f&&f<=2220?4:8192<=f&&f<=8203?256:64336<=f&&f<=65023?4:f==8204?256:1}const Nc=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class Va{get dir(){return this.level%2?ic:rs}constructor(e,i,l){this.from=e,this.to=i,this.level=l}side(e,i){return this.dir==i==e?this.to:this.from}static find(e,i,l,m){let S=-1;for(let j=0;j<e.length;j++){let Y=e[j];if(Y.from<=i&&Y.to>=i){if(Y.level==l)return j;(S<0||(m!=0?m<0?Y.from<i:Y.to>i:e[S].level>Y.level))&&(S=j)}}if(S<0)throw new RangeError("Index out of range");return S}}function Ca(f,e){if(f.length!=e.length)return!1;for(let i=0;i<f.length;i++){let l=f[i],m=e[i];if(l.from!=m.from||l.to!=m.to||l.direction!=m.direction||!Ca(l.inner,m.inner))return!1}return!0}const Ps=[];function Yl(f,e,i,l,m){for(let S=0;S<=l.length;S++){let j=S?l[S-1].to:e,Y=S<l.length?l[S].from:i,te=S?256:m;for(let Ee=j,Se=te,Tt=te;Ee<Y;Ee++){let rn=ll(f.charCodeAt(Ee));rn==512?rn=Se:rn==8&&Tt==4&&(rn=16),Ps[Ee]=rn==4?2:rn,rn&7&&(Tt=rn),Se=rn}for(let Ee=j,Se=te,Tt=te;Ee<Y;Ee++){let rn=Ps[Ee];if(rn==128)Ee<Y-1&&Se==Ps[Ee+1]&&Se&24?rn=Ps[Ee]=Se:Ps[Ee]=256;else if(rn==64){let Nn=Ee+1;for(;Nn<Y&&Ps[Nn]==64;)Nn++;let sr=Ee&&Se==8||Nn<i&&Ps[Nn]==8?Tt==1?1:8:256;for(let Gr=Ee;Gr<Nn;Gr++)Ps[Gr]=sr;Ee=Nn-1}else rn==8&&Tt==1&&(Ps[Ee]=1);Se=rn,rn&7&&(Tt=rn)}}}function Ql(f,e,i,l,m){let S=m==1?2:1;for(let j=0,Y=0,te=0;j<=l.length;j++){let Ee=j?l[j-1].to:e,Se=j<l.length?l[j].from:i;for(let Tt=Ee,rn,Nn,sr;Tt<Se;Tt++)if(Nn=dd[rn=f.charCodeAt(Tt)])if(Nn<0){for(let Gr=Y-3;Gr>=0;Gr-=3)if(Ha[Gr+1]==-Nn){let Zr=Ha[Gr+2],_i=Zr&2?m:Zr&4?Zr&1?S:m:0;_i&&(Ps[Tt]=Ps[Ha[Gr]]=_i),Y=Gr;break}}else{if(Ha.length==189)break;Ha[Y++]=Tt,Ha[Y++]=rn,Ha[Y++]=te}else if((sr=Ps[Tt])==2||sr==1){let Gr=sr==m;te=Gr?0:1;for(let Zr=Y-3;Zr>=0;Zr-=3){let _i=Ha[Zr+2];if(_i&2)break;if(Gr)Ha[Zr+2]|=2;else{if(_i&4)break;Ha[Zr+2]|=4}}}}}function Pt(f,e,i,l){for(let m=0,S=l;m<=i.length;m++){let j=m?i[m-1].to:f,Y=m<i.length?i[m].from:e;for(let te=j;te<Y;){let Ee=Ps[te];if(Ee==256){let Se=te+1;for(;;)if(Se==Y){if(m==i.length)break;Se=i[m++].to,Y=m<i.length?i[m].from:e}else if(Ps[Se]==256)Se++;else break;let Tt=S==1,rn=(Se<e?Ps[Se]:l)==1,Nn=Tt==rn?Tt?1:2:l;for(let sr=Se,Gr=m,Zr=Gr?i[Gr-1].to:f;sr>te;)sr==Zr&&(sr=i[--Gr].from,Zr=Gr?i[Gr-1].to:f),Ps[--sr]=Nn;te=Se}else S=Ee,te++}}}function st(f,e,i,l,m,S,j){let Y=l%2?2:1;if(l%2==m%2)for(let te=e,Ee=0;te<i;){let Se=!0,Tt=!1;if(Ee==S.length||te<S[Ee].from){let Gr=Ps[te];Gr!=Y&&(Se=!1,Tt=Gr==16)}let rn=!Se&&Y==1?[]:null,Nn=Se?l:l+1,sr=te;e:for(;;)if(Ee<S.length&&sr==S[Ee].from){if(Tt)break e;let Gr=S[Ee];if(!Se)for(let Zr=Gr.to,_i=Ee+1;;){if(Zr==i)break e;if(_i<S.length&&S[_i].from==Zr)Zr=S[_i++].to;else{if(Ps[Zr]==Y)break e;break}}if(Ee++,rn)rn.push(Gr);else{Gr.from>te&&j.push(new Va(te,Gr.from,Nn));let Zr=Gr.direction==rs!=!(Nn%2);nn(f,Zr?l+1:l,m,Gr.inner,Gr.from,Gr.to,j),te=Gr.to}sr=Gr.to}else{if(sr==i||(Se?Ps[sr]!=Y:Ps[sr]==Y))break;sr++}rn?st(f,te,sr,l+1,m,rn,j):te<sr&&j.push(new Va(te,sr,Nn)),te=sr}else for(let te=i,Ee=S.length;te>e;){let Se=!0,Tt=!1;if(!Ee||te>S[Ee-1].to){let Gr=Ps[te-1];Gr!=Y&&(Se=!1,Tt=Gr==16)}let rn=!Se&&Y==1?[]:null,Nn=Se?l:l+1,sr=te;e:for(;;)if(Ee&&sr==S[Ee-1].to){if(Tt)break e;let Gr=S[--Ee];if(!Se)for(let Zr=Gr.from,_i=Ee;;){if(Zr==e)break e;if(_i&&S[_i-1].to==Zr)Zr=S[--_i].from;else{if(Ps[Zr-1]==Y)break e;break}}if(rn)rn.push(Gr);else{Gr.to<te&&j.push(new Va(Gr.to,te,Nn));let Zr=Gr.direction==rs!=!(Nn%2);nn(f,Zr?l+1:l,m,Gr.inner,Gr.from,Gr.to,j),te=Gr.from}sr=Gr.from}else{if(sr==e||(Se?Ps[sr-1]!=Y:Ps[sr-1]==Y))break;sr--}rn?st(f,sr,te,l+1,m,rn,j):sr<te&&j.push(new Va(sr,te,Nn)),te=sr}}function nn(f,e,i,l,m,S,j){let Y=e%2?2:1;Yl(f,m,S,l,Y),Ql(f,m,S,l,Y),Pt(m,S,l,Y),st(f,m,S,e,i,l,j)}function Un(f,e,i){if(!f)return[new Va(0,0,e==ic?1:0)];if(e==rs&&!i.length&&!Nc.test(f))return or(f.length);if(i.length)for(;f.length>Ps.length;)Ps[Ps.length]=256;let l=[],m=e==rs?0:1;return nn(f,m,m,i,0,f.length,l),l}function or(f){return[new Va(0,f,0)]}let lr="";function jr(f,e,i,l,m){var S;let j=l.head-f.from,Y=-1;if(j==0){if(!m||!f.length)return null;e[0].level!=i&&(j=e[0].side(!1,i),Y=0)}else if(j==f.length){if(m)return null;let rn=e[e.length-1];rn.level!=i&&(j=rn.side(!0,i),Y=e.length-1)}Y<0&&(Y=Va.find(e,j,(S=l.bidiLevel)!==null&&S!==void 0?S:-1,l.assoc));let te=e[Y];j==te.side(m,i)&&(te=e[Y+=m?1:-1],j=te.side(!m,i));let Ee=m==(te.dir==i),Se=Oe(f.text,j,Ee);if(lr=f.text.slice(Math.min(j,Se),Math.max(j,Se)),Se!=te.side(m,i))return he.cursor(Se+f.from,Ee?-1:1,te.level);let Tt=Y==(m?e.length-1:0)?null:e[Y+(m?1:-1)];return!Tt&&te.level!=i?he.cursor(m?f.to:f.from,m?-1:1,i):Tt&&Tt.level<te.level?he.cursor(Tt.side(!m,i)+f.from,m?1:-1,Tt.level):he.cursor(Se+f.from,m?-1:1,te.level)}class Br extends $n{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new js],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new ka(0,0,0,e.state.doc.length)],0,null)}update(e){var i;let l=e.changedRanges;this.minWidth>0&&l.length&&(l.every(({fromA:Ee,toA:Se})=>Se<this.minWidthFrom||Ee>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let m=-1;this.view.inputState.composing>=0&&(!((i=this.domChanged)===null||i===void 0)&&i.newSel?m=this.domChanged.newSel.head:!ps(e.changes,this.hasComposition)&&!e.selectionSet&&(m=e.state.selection.main.head));let S=m>-1?eo(this.view,e.changes,m):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:Ee,to:Se}=this.hasComposition;l=new ka(Ee,Se,e.changes.mapPos(Ee,-1),e.changes.mapPos(Se,1)).addToSet(l.slice())}this.hasComposition=S?{from:S.range.fromB,to:S.range.toB}:null,(go.ie||go.chrome)&&!S&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let j=this.decorations,Y=this.updateDeco(),te=Qo(j,Y,e.changes);return l=ka.extendWithRanges(l,te),!(this.flags&7)&&l.length==0?!1:(this.updateInner(l,e.startState.doc.length,S),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,i,l){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,i,l);let{observer:m}=this.view;m.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let j=go.chrome||go.ios?{node:m.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,j),this.flags&=-8,j&&(j.written||m.selectionRange.focusNode!=j.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(j=>j.flags&=-9);let S=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let j of this.children)j instanceof jl&&j.widget instanceof Oi&&S.push(j.dom);m.updateGaps(S)}updateChildren(e,i,l){let m=l?l.range.addToSet(e.slice()):e,S=this.childCursor(i);for(let j=m.length-1;;j--){let Y=j>=0?m[j]:null;if(!Y)break;let{fromA:te,toA:Ee,fromB:Se,toB:Tt}=Y,rn,Nn,sr,Gr;if(l&&l.range.fromB<Tt&&l.range.toB>Se){let Zi=El.build(this.view.state.doc,Se,l.range.fromB,this.decorations,this.dynamicDecorationMap),io=El.build(this.view.state.doc,l.range.toB,Tt,this.decorations,this.dynamicDecorationMap);Nn=Zi.breakAtStart,sr=Zi.openStart,Gr=io.openEnd;let po=this.compositionView(l);io.breakAtStart?po.breakAfter=1:io.content.length&&po.merge(po.length,po.length,io.content[0],!1,io.openStart,0)&&(po.breakAfter=io.content[0].breakAfter,io.content.shift()),Zi.content.length&&po.merge(0,0,Zi.content[Zi.content.length-1],!0,0,Zi.openEnd)&&Zi.content.pop(),rn=Zi.content.concat(po).concat(io.content)}else({content:rn,breakAtStart:Nn,openStart:sr,openEnd:Gr}=El.build(this.view.state.doc,Se,Tt,this.decorations,this.dynamicDecorationMap));let{i:Zr,off:_i}=S.findPos(Ee,1),{i:ro,off:To}=S.findPos(te,-1);qr(this,ro,To,Zr,_i,rn,Nn,sr,Gr)}l&&this.fixCompositionDOM(l)}compositionView(e){let i=new na(e.text.nodeValue);i.flags|=8;for(let{deco:m}of e.marks)i=new Eo(m,[i],i.length);let l=new js;return l.append(i,0),l}fixCompositionDOM(e){let i=(S,j)=>{j.flags|=8|(j.children.some(te=>te.flags&7)?1:0),this.markedForComposition.add(j);let Y=$n.get(S);Y&&Y!=j&&(Y.dom=null),j.setDOM(S)},l=this.childPos(e.range.fromB,1),m=this.children[l.i];i(e.line,m);for(let S=e.marks.length-1;S>=-1;S--)l=m.childPos(l.off,1),m=m.children[l.i],i(S>=0?e.marks[S].node:e.text,m)}updateSelection(e=!1,i=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let l=this.view.root.activeElement,m=l==this.dom,S=!m&&Na(this.dom,this.view.observer.selectionRange)&&!(l&&this.dom.contains(l));if(!(m||i||S))return;let j=this.forceSelection;this.forceSelection=!1;let Y=this.view.state.selection.main,te=this.moveToLine(this.domAtPos(Y.anchor)),Ee=Y.empty?te:this.moveToLine(this.domAtPos(Y.head));if(go.gecko&&Y.empty&&!this.hasComposition&&Yr(te)){let Tt=document.createTextNode("");this.view.observer.ignore(()=>te.node.insertBefore(Tt,te.node.childNodes[te.offset]||null)),te=Ee=new Yt(Tt,0),j=!0}let Se=this.view.observer.selectionRange;(j||!Se.focusNode||!Rl(te.node,te.offset,Se.anchorNode,Se.anchorOffset)||!Rl(Ee.node,Ee.offset,Se.focusNode,Se.focusOffset))&&(this.view.observer.ignore(()=>{go.android&&go.chrome&&this.dom.contains(Se.focusNode)&&No(Se.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let Tt=So(this.view.root);if(Tt)if(Y.empty){if(go.gecko){let rn=no(te.node,te.offset);if(rn&&rn!=3){let Nn=Ni(te.node,te.offset,rn==1?1:-1);Nn&&(te=new Yt(Nn.node,Nn.offset))}}Tt.collapse(te.node,te.offset),Y.bidiLevel!=null&&Tt.caretBidiLevel!==void 0&&(Tt.caretBidiLevel=Y.bidiLevel)}else if(Tt.extend){Tt.collapse(te.node,te.offset);try{Tt.extend(Ee.node,Ee.offset)}catch{}}else{let rn=document.createRange();Y.anchor>Y.head&&([te,Ee]=[Ee,te]),rn.setEnd(Ee.node,Ee.offset),rn.setStart(te.node,te.offset),Tt.removeAllRanges(),Tt.addRange(rn)}S&&this.view.root.activeElement==this.dom&&(this.dom.blur(),l&&l.focus())}),this.view.observer.setSelectionRange(te,Ee)),this.impreciseAnchor=te.precise?null:new Yt(Se.anchorNode,Se.anchorOffset),this.impreciseHead=Ee.precise?null:new Yt(Se.focusNode,Se.focusOffset)}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,i=e.state.selection.main,l=So(e.root),{anchorNode:m,anchorOffset:S}=e.observer.selectionRange;if(!l||!i.empty||!i.assoc||!l.modify)return;let j=js.find(this,i.head);if(!j)return;let Y=j.posAtStart;if(i.head==Y||i.head==Y+j.length)return;let te=this.coordsAt(i.head,-1),Ee=this.coordsAt(i.head,1);if(!te||!Ee||te.bottom>Ee.top)return;let Se=this.domAtPos(i.head+i.assoc);l.collapse(Se.node,Se.offset),l.modify("move",i.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let Tt=e.observer.selectionRange;e.docView.posFromDOM(Tt.anchorNode,Tt.anchorOffset)!=i.from&&l.collapse(m,S)}moveToLine(e){let i=this.dom,l;if(e.node!=i)return e;for(let m=e.offset;!l&&m<i.childNodes.length;m++){let S=$n.get(i.childNodes[m]);S instanceof js&&(l=S.domAtPos(0))}for(let m=e.offset-1;!l&&m>=0;m--){let S=$n.get(i.childNodes[m]);S instanceof js&&(l=S.domAtPos(S.length))}return l?new Yt(l.node,l.offset,!0):e}nearest(e){for(let i=e;i;){let l=$n.get(i);if(l&&l.rootView==this)return l;i=i.parentNode}return null}posFromDOM(e,i){let l=this.nearest(e);if(!l)throw new RangeError("Trying to find position for a DOM position outside of the document");return l.localPosFromDOM(e,i)+l.posAtStart}domAtPos(e){let{i,off:l}=this.childCursor().findPos(e,-1);for(;i<this.children.length-1;){let m=this.children[i];if(l<m.length||m instanceof js)break;i++,l=0}return this.children[i].domAtPos(l)}coordsAt(e,i){let l=null,m=0;for(let S=this.length,j=this.children.length-1;j>=0;j--){let Y=this.children[j],te=S-Y.breakAfter,Ee=te-Y.length;if(te<e)break;Ee<=e&&(Ee<e||Y.covers(-1))&&(te>e||Y.covers(1))&&(!l||Y instanceof js&&!(l instanceof js&&i>=0))&&(l=Y,m=Ee),S=Ee}return l?l.coordsAt(e-m,i):null}coordsForChar(e){let{i,off:l}=this.childPos(e,1),m=this.children[i];if(!(m instanceof js))return null;for(;m.children.length;){let{i:Y,off:te}=m.childPos(l,1);for(;;Y++){if(Y==m.children.length)return null;if((m=m.children[Y]).length)break}l=te}if(!(m instanceof na))return null;let S=Oe(m.text,l);if(S==l)return null;let j=me(m.dom,l,S).getClientRects();for(let Y=0;Y<j.length;Y++){let te=j[Y];if(Y==j.length-1||te.top<te.bottom&&te.left<te.right)return te}return null}measureVisibleLineHeights(e){let i=[],{from:l,to:m}=e,S=this.view.contentDOM.clientWidth,j=S>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,Y=-1,te=this.view.textDirection==la.LTR;for(let Ee=0,Se=0;Se<this.children.length;Se++){let Tt=this.children[Se],rn=Ee+Tt.length;if(rn>m)break;if(Ee>=l){let Nn=Tt.dom.getBoundingClientRect();if(i.push(Nn.height),j){let sr=Tt.dom.lastChild,Gr=sr?xl(sr):[];if(Gr.length){let Zr=Gr[Gr.length-1],_i=te?Zr.right-Nn.left:Nn.right-Zr.left;_i>Y&&(Y=_i,this.minWidth=S,this.minWidthFrom=Ee,this.minWidthTo=rn)}}}Ee=rn+Tt.breakAfter}return i}textDirectionAt(e){let{i}=this.childPos(e,1);return getComputedStyle(this.children[i].dom).direction=="rtl"?la.RTL:la.LTR}measureTextSize(){for(let S of this.children)if(S instanceof js){let j=S.measureTextSize();if(j)return j}let e=document.createElement("div"),i,l,m;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let S=xl(e.firstChild)[0];i=e.getBoundingClientRect().height,l=S?S.width/27:7,m=S?S.height:i,e.remove()}),{lineHeight:i,charWidth:l,textHeight:m}}childCursor(e=this.length){let i=this.children.length;return i&&(e-=this.children[--i].length),new Tr(this.children,e,i)}computeBlockGapDeco(){let e=[],i=this.view.viewState;for(let l=0,m=0;;m++){let S=m==i.viewports.length?null:i.viewports[m],j=S?S.from-1:this.length;if(j>l){let Y=(i.lineBlockAt(j).bottom-i.lineBlockAt(l).top)/this.view.scaleY;e.push(ko.replace({widget:new Oi(Y),block:!0,inclusive:!0,isBlockGap:!0}).range(l,j))}if(!S)break;l=S.to+1}return ko.set(e)}updateDeco(){let e=this.view.state.facet(Gl).map((i,l)=>(this.dynamicDecorationMap[l]=typeof i=="function")?i(this.view):i);for(let i=e.length;i<e.length+3;i++)this.dynamicDecorationMap[i]=!1;return this.decorations=[...e,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco]}scrollIntoView(e){let{range:i}=e,l=this.coordsAt(i.head,i.empty?i.assoc:i.head>i.anchor?-1:1),m;if(!l)return;!i.empty&&(m=this.coordsAt(i.anchor,i.anchor>i.head?-1:1))&&(l={left:Math.min(l.left,m.left),top:Math.min(l.top,m.top),right:Math.max(l.right,m.right),bottom:Math.max(l.bottom,m.bottom)});let S=Vs(this.view),j={left:l.left-S.left,top:l.top-S.top,right:l.right+S.right,bottom:l.bottom+S.bottom};Ln(this.view.scrollDOM,j,i.head<i.anchor?-1:1,e.x,e.y,e.xMargin,e.yMargin,this.view.textDirection==la.LTR)}}function Yr(f){return f.node.nodeType==1&&f.node.firstChild&&(f.offset==0||f.node.childNodes[f.offset-1].contentEditable=="false")&&(f.offset==f.node.childNodes.length||f.node.childNodes[f.offset].contentEditable=="false")}class Oi extends Bl{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get estimatedHeight(){return this.height}}function Mi(f,e){let i=f.observer.selectionRange,l=i.focusNode&&Ni(i.focusNode,i.focusOffset,0);if(!l)return null;let m=e-l.offset;return{from:m,to:m+l.node.nodeValue.length,node:l.node}}function eo(f,e,i){let l=Mi(f,i);if(!l)return null;let{node:m,from:S,to:j}=l,Y=m.nodeValue;if(/[\n\r]/.test(Y)||f.state.doc.sliceString(l.from,l.to)!=Y)return null;let te=e.invertedDesc,Ee=new ka(te.mapPos(S),te.mapPos(j),S,j),Se=[];for(let Tt=m.parentNode;;Tt=Tt.parentNode){let rn=$n.get(Tt);if(rn instanceof Eo)Se.push({node:Tt,deco:rn.mark});else{if(rn instanceof js||Tt.nodeName=="DIV"&&Tt.parentNode==f.contentDOM)return{range:Ee,text:m,marks:Se,line:Tt};if(Tt!=f.contentDOM)Se.push({node:Tt,deco:new fc({inclusive:!0,attributes:Ea(Tt),tagName:Tt.tagName.toLowerCase()})});else return null}}}function Ni(f,e,i){if(i<=0)for(let l=f,m=e;;){if(l.nodeType==3)return{node:l,offset:m};if(l.nodeType==1&&m>0)l=l.childNodes[m-1],m=rl(l);else break}if(i>=0)for(let l=f,m=e;;){if(l.nodeType==3)return{node:l,offset:m};if(l.nodeType==1&&m<l.childNodes.length&&i>=0)l=l.childNodes[m],m=0;else break}return null}function no(f,e){return f.nodeType!=1?0:(e&&f.childNodes[e-1].contentEditable=="false"?1:0)|(e<f.childNodes.length&&f.childNodes[e].contentEditable=="false"?2:0)}let vo=class{constructor(){this.changes=[]}compareRange(e,i){Rc(e,i,this.changes)}comparePoint(e,i){Rc(e,i,this.changes)}};function Qo(f,e,i){let l=new vo;return Wo.compare(f,e,i,l),l.changes}function No(f,e){for(let i=f;i&&i!=e;i=i.assignedSlot||i.parentNode)if(i.nodeType==1&&i.contentEditable=="false")return!0;return!1}function ps(f,e){let i=!1;return e&&f.iterChangedRanges((l,m)=>{l<e.to&&m>e.from&&(i=!0)}),i}function ba(f,e,i=1){let l=f.charCategorizer(e),m=f.doc.lineAt(e),S=e-m.from;if(m.length==0)return he.cursor(e);S==0?i=1:S==m.length&&(i=-1);let j=S,Y=S;i<0?j=Oe(m.text,S,!1):Y=Oe(m.text,S);let te=l(m.text.slice(j,Y));for(;j>0;){let Ee=Oe(m.text,j,!1);if(l(m.text.slice(Ee,j))!=te)break;j=Ee}for(;Y<m.length;){let Ee=Oe(m.text,Y);if(l(m.text.slice(Y,Ee))!=te)break;Y=Ee}return he.range(j+m.from,Y+m.from)}function Fc(f,e){return e.left>f?e.left-f:Math.max(0,f-e.right)}function cl(f,e){return e.top>f?e.top-f:Math.max(0,f-e.bottom)}function Kc(f,e){return f.top<e.bottom-1&&f.bottom>e.top+1}function lu(f,e){return e<f.top?{top:e,left:f.left,right:f.right,bottom:f.bottom}:f}function Ia(f,e){return e>f.bottom?{top:f.top,left:f.left,right:f.right,bottom:e}:f}function Gc(f,e,i){let l,m,S,j,Y=!1,te,Ee,Se,Tt;for(let sr=f.firstChild;sr;sr=sr.nextSibling){let Gr=xl(sr);for(let Zr=0;Zr<Gr.length;Zr++){let _i=Gr[Zr];m&&Kc(m,_i)&&(_i=lu(Ia(_i,m.bottom),m.top));let ro=Fc(e,_i),To=cl(i,_i);if(ro==0&&To==0)return sr.nodeType==3?Jl(sr,e,i):Gc(sr,e,i);if(!l||j>To||j==To&&S>ro){l=sr,m=_i,S=ro,j=To;let Zi=To?i<_i.top?-1:1:ro?e<_i.left?-1:1:0;Y=!Zi||(Zi>0?Zr<Gr.length-1:Zr>0)}ro==0?i>_i.bottom&&(!Se||Se.bottom<_i.bottom)?(te=sr,Se=_i):i<_i.top&&(!Tt||Tt.top>_i.top)&&(Ee=sr,Tt=_i):Se&&Kc(Se,_i)?Se=Ia(Se,_i.bottom):Tt&&Kc(Tt,_i)&&(Tt=lu(Tt,_i.top))}}if(Se&&Se.bottom>=i?(l=te,m=Se):Tt&&Tt.top<=i&&(l=Ee,m=Tt),!l)return{node:f,offset:0};let rn=Math.max(m.left,Math.min(m.right,e));if(l.nodeType==3)return Jl(l,rn,i);if(Y&&l.contentEditable!="false")return Gc(l,rn,i);let Nn=Array.prototype.indexOf.call(f.childNodes,l)+(e>=(m.left+m.right)/2?1:0);return{node:f,offset:Nn}}function Jl(f,e,i){let l=f.nodeValue.length,m=-1,S=1e9,j=0;for(let Y=0;Y<l;Y++){let te=me(f,Y,Y+1).getClientRects();for(let Ee=0;Ee<te.length;Ee++){let Se=te[Ee];if(Se.top==Se.bottom)continue;j||(j=e-Se.left);let Tt=(Se.top>i?Se.top-i:i-Se.bottom)-1;if(Se.left-1<=e&&Se.right+1>=e&&Tt<S){let rn=e>=(Se.left+Se.right)/2,Nn=rn;if((go.chrome||go.gecko)&&me(f,Y).getBoundingClientRect().left==Se.right&&(Nn=!rn),Tt<=0)return{node:f,offset:Y+(Nn?1:0)};m=Y+(Nn?1:0),S=Tt}}}return{node:f,offset:m>-1?m:j>0?f.nodeValue.length:0}}function $l(f,e,i,l=-1){var m,S;let j=f.contentDOM.getBoundingClientRect(),Y=j.top+f.viewState.paddingTop,te,{docHeight:Ee}=f.viewState,{x:Se,y:Tt}=e,rn=Tt-Y;if(rn<0)return 0;if(rn>Ee)return f.state.doc.length;for(let Zi=f.viewState.heightOracle.textHeight/2,io=!1;te=f.elementAtHeight(rn),te.type!=il.Text;)for(;rn=l>0?te.bottom+Zi:te.top-Zi,!(rn>=0&&rn<=Ee);){if(io)return i?null:0;io=!0,l=-l}Tt=Y+rn;let Nn=te.from;if(Nn<f.viewport.from)return f.viewport.from==0?0:i?null:Ou(f,j,te,Se,Tt);if(Nn>f.viewport.to)return f.viewport.to==f.state.doc.length?f.state.doc.length:i?null:Ou(f,j,te,Se,Tt);let sr=f.dom.ownerDocument,Gr=f.root.elementFromPoint?f.root:sr,Zr=Gr.elementFromPoint(Se,Tt);Zr&&!f.contentDOM.contains(Zr)&&(Zr=null),Zr||(Se=Math.max(j.left+1,Math.min(j.right-1,Se)),Zr=Gr.elementFromPoint(Se,Tt),Zr&&!f.contentDOM.contains(Zr)&&(Zr=null));let _i,ro=-1;if(Zr&&((m=f.docView.nearest(Zr))===null||m===void 0?void 0:m.isEditable)!=!1){if(sr.caretPositionFromPoint){let Zi=sr.caretPositionFromPoint(Se,Tt);Zi&&({offsetNode:_i,offset:ro}=Zi)}else if(sr.caretRangeFromPoint){let Zi=sr.caretRangeFromPoint(Se,Tt);Zi&&({startContainer:_i,startOffset:ro}=Zi,(!f.contentDOM.contains(_i)||go.safari&&oc(_i,ro,Se)||go.chrome&&ul(_i,ro,Se))&&(_i=void 0))}}if(!_i||!f.docView.dom.contains(_i)){let Zi=js.find(f.docView,Nn);if(!Zi)return rn>te.top+te.height/2?te.to:te.from;({node:_i,offset:ro}=Gc(Zi.dom,Se,Tt))}let To=f.docView.nearest(_i);if(!To)return null;if(To.isWidget&&((S=To.dom)===null||S===void 0?void 0:S.nodeType)==1){let Zi=To.dom.getBoundingClientRect();return e.y<Zi.top||e.y<=Zi.bottom&&e.x<=(Zi.left+Zi.right)/2?To.posAtStart:To.posAtEnd}else return To.localPosFromDOM(_i,ro)+To.posAtStart}function Ou(f,e,i,l,m){let S=Math.round((l-e.left)*f.defaultCharacterWidth);if(f.lineWrapping&&i.height>f.defaultLineHeight*1.5){let Y=f.viewState.heightOracle.textHeight,te=Math.floor((m-i.top-(f.defaultLineHeight-Y)*.5)/Y);S+=te*f.viewState.heightOracle.lineLength}let j=f.state.sliceDoc(i.from,i.to);return i.from+Oo(j,S,f.state.tabSize)}function oc(f,e,i){let l;if(f.nodeType!=3||e!=(l=f.nodeValue.length))return!1;for(let m=f.nextSibling;m;m=m.nextSibling)if(m.nodeType!=1||m.nodeName!="BR")return!1;return me(f,l-1,l).getBoundingClientRect().left>i}function ul(f,e,i){if(e!=0)return!1;for(let m=f;;){let S=m.parentNode;if(!S||S.nodeType!=1||S.firstChild!=m)return!1;if(S.classList.contains("cm-line"))break;m=S}let l=f.nodeType==1?f.getBoundingClientRect():me(f,0,Math.max(f.nodeValue.length,1)).getBoundingClientRect();return i-l.left>5}function Yc(f,e){let i=f.lineBlockAt(e);if(Array.isArray(i.type)){for(let l of i.type)if(l.to>e||l.to==e&&(l.to==i.to||l.type==il.Text))return l}return i}function gl(f,e,i,l){let m=Yc(f,e.head),S=!l||m.type!=il.Text||!(f.lineWrapping||m.widgetLineBreaks)?null:f.coordsAtPos(e.assoc<0&&e.head>m.from?e.head-1:e.head);if(S){let j=f.dom.getBoundingClientRect(),Y=f.textDirectionAt(m.from),te=f.posAtCoords({x:i==(Y==la.LTR)?j.right-1:j.left+1,y:(S.top+S.bottom)/2});if(te!=null)return he.cursor(te,i?-1:1)}return he.cursor(i?m.to:m.from,i?-1:1)}function Ad(f,e,i,l){let m=f.state.doc.lineAt(e.head),S=f.bidiSpans(m),j=f.textDirectionAt(m.from);for(let Y=e,te=null;;){let Ee=jr(m,S,j,Y,i),Se=lr;if(!Ee){if(m.number==(i?f.state.doc.lines:1))return Y;Se=`
`,m=f.state.doc.line(m.number+(i?1:-1)),S=f.bidiSpans(m),Ee=he.cursor(i?m.from:m.to)}if(te){if(!te(Se))return Y}else{if(!l)return Ee;te=l(Se)}Y=Ee}}function Qc(f,e,i){let l=f.state.charCategorizer(e),m=l(i);return S=>{let j=l(S);return m==Ui.Space&&(m=j),m==j}}function cu(f,e,i,l){let m=e.head,S=i?1:-1;if(m==(i?f.state.doc.length:0))return he.cursor(m,e.assoc);let j=e.goalColumn,Y,te=f.contentDOM.getBoundingClientRect(),Ee=f.coordsAtPos(m,e.assoc||-1),Se=f.documentTop;if(Ee)j==null&&(j=Ee.left-te.left),Y=S<0?Ee.top:Ee.bottom;else{let Nn=f.viewState.lineBlockAt(m);j==null&&(j=Math.min(te.right-te.left,f.defaultCharacterWidth*(m-Nn.from))),Y=(S<0?Nn.top:Nn.bottom)+Se}let Tt=te.left+j,rn=l??f.viewState.heightOracle.textHeight>>1;for(let Nn=0;;Nn+=10){let sr=Y+(rn+Nn)*S,Gr=$l(f,{x:Tt,y:sr},!1,S);if(sr<te.top||sr>te.bottom||(S<0?Gr<m:Gr>m)){let Zr=f.docView.coordsForChar(Gr),_i=!Zr||sr<Zr.top?-1:1;return he.cursor(Gr,_i,void 0,j)}}}function hd(f,e,i){for(;;){let l=0;for(let m of f)m.between(e-1,e+1,(S,j,Y)=>{if(e>S&&e<j){let te=l||i||(e-S<j-e?-1:1);e=te<0?S:j,l=te}});if(!l)return e}}function Uu(f,e,i){let l=hd(f.state.facet(As).map(m=>m(f)),i.from,e.head>i.from?-1:1);return l==i.from?i:he.cursor(l,l<i.from?1:-1)}class uu{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,go.safari&&e.contentDOM.addEventListener("input",()=>null),go.gecko&&Tl(e.contentDOM.ownerDocument)}handleEvent(e){!Jc(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,i){let l=this.handlers[e];if(l){for(let m of l.observers)m(this.view,i);for(let m of l.handlers){if(i.defaultPrevented)break;if(m(this.view,i)){i.preventDefault();break}}}}ensureHandlers(e){let i=Md(e),l=this.handlers,m=this.view.contentDOM;for(let S in i)if(S!="scroll"){let j=!i[S].handlers.length,Y=l[S];Y&&j!=!Y.handlers.length&&(m.removeEventListener(S,this.handleEvent),Y=null),Y||m.addEventListener(S,this.handleEvent,{passive:j})}for(let S in l)S!="scroll"&&!i[S]&&m.removeEventListener(S,this.handleEvent);this.handlers=i}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&Date.now()<this.lastEscPress+2e3)return!0;if(e.keyCode!=27&&Cl.indexOf(e.keyCode)<0&&(this.view.inputState.lastEscPress=0),go.android&&go.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let i;return go.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((i=Od.find(l=>l.keyCode==e.keyCode))&&!e.ctrlKey||Wd.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=i||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let e=this.pendingIOSKey;return e?(this.pendingIOSKey=void 0,Ue(this.view.contentDOM,e.key,e.keyCode)):!1}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:go.safari&&!go.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function sc(f,e){return(i,l)=>{try{return e.call(f,l,i)}catch(m){Go(i.state,m)}}}function Md(f){let e=Object.create(null);function i(l){return e[l]||(e[l]={observers:[],handlers:[]})}for(let l of f){let m=l.spec;if(m&&m.domEventHandlers)for(let S in m.domEventHandlers){let j=m.domEventHandlers[S];j&&i(S).handlers.push(sc(l.value,j))}if(m&&m.domEventObservers)for(let S in m.domEventObservers){let j=m.domEventObservers[S];j&&i(S).observers.push(sc(l.value,j))}}for(let l in Xl)i(l).handlers.push(Xl[l]);for(let l in vc)i(l).observers.push(vc[l]);return e}const Od=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Wd="dthko",Cl=[16,17,18,20,91,92,224,225],Pd=6;function fd(f){return Math.max(0,f)*.7+8}function Pu(f,e){return Math.max(Math.abs(f.clientX-e.clientX),Math.abs(f.clientY-e.clientY))}class fh{constructor(e,i,l,m){this.view=e,this.startEvent=i,this.style=l,this.mustSelect=m,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=i,this.scrollParent=gr(e.contentDOM),this.atoms=e.state.facet(As).map(j=>j(e));let S=e.contentDOM.ownerDocument;S.addEventListener("mousemove",this.move=this.move.bind(this)),S.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=i.shiftKey,this.multiple=e.state.facet(Io.allowMultipleSelections)&&Dh(e,i),this.dragging=Zd(e,i)&&Ta(i)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){var i;if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&Pu(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let l=0,m=0,S=((i=this.scrollParent)===null||i===void 0?void 0:i.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},j=Vs(this.view);e.clientX-j.left<=S.left+Pd?l=-fd(S.left-e.clientX):e.clientX+j.right>=S.right-Pd&&(l=fd(e.clientX-S.right)),e.clientY-j.top<=S.top+Pd?m=-fd(S.top-e.clientY):e.clientY+j.bottom>=S.bottom-Pd&&(m=fd(e.clientY-S.bottom)),this.setScrollSpeed(l,m)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}setScrollSpeed(e,i){this.scrollSpeed={x:e,y:i},e||i?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let i=null;for(let l=0;l<e.ranges.length;l++){let m=e.ranges[l],S=null;if(m.empty){let j=hd(this.atoms,m.from,0);j!=m.from&&(S=he.cursor(j,-1))}else{let j=hd(this.atoms,m.from,-1),Y=hd(this.atoms,m.to,1);(j!=m.from||Y!=m.to)&&(S=he.range(m.from==m.anchor?j:Y,m.from==m.head?j:Y))}S&&(i||(i=e.ranges.slice()),i[l]=S)}return i?he.create(i,e.mainIndex):e}select(e){let{view:i}=this,l=this.skipAtoms(this.style.get(e,this.extend,this.multiple));(this.mustSelect||!l.eq(i.state.selection)||l.main.assoc!=i.state.selection.main.assoc&&this.dragging===!1)&&this.view.dispatch({selection:l,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.docChanged&&this.dragging&&(this.dragging=this.dragging.map(e.changes)),this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function Dh(f,e){let i=f.state.facet(au);return i.length?i[0](e):go.mac?e.metaKey:e.ctrlKey}function ph(f,e){let i=f.state.facet(Lc);return i.length?i[0](e):go.mac?!e.altKey:!e.ctrlKey}function Zd(f,e){let{main:i}=f.state.selection;if(i.empty)return!1;let l=So(f.root);if(!l||l.rangeCount==0)return!0;let m=l.getRangeAt(0).getClientRects();for(let S=0;S<m.length;S++){let j=m[S];if(j.left<=e.clientX&&j.right>=e.clientX&&j.top<=e.clientY&&j.bottom>=e.clientY)return!0}return!1}function Jc(f,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let i=e.target,l;i!=f.contentDOM;i=i.parentNode)if(!i||i.nodeType==11||(l=$n.get(i))&&l.ignoreEvent(e))return!1;return!0}const Xl=Object.create(null),vc=Object.create(null),Du=go.ie&&go.ie_version<15||go.ios&&go.webkit_version<604;function Hu(f){let e=f.dom.parentNode;if(!e)return;let i=e.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout(()=>{f.focus(),i.remove(),Kd(f,i.value)},50)}function Kd(f,e){let{state:i}=f,l,m=1,S=i.toText(e),j=S.lines==i.selection.ranges.length;if(yc!=null&&i.selection.ranges.every(te=>te.empty)&&yc==S.toString()){let te=-1;l=i.changeByRange(Ee=>{let Se=i.doc.lineAt(Ee.from);if(Se.from==te)return{range:Ee};te=Se.from;let Tt=i.toText((j?S.line(m++).text:e)+i.lineBreak);return{changes:{from:Se.from,insert:Tt},range:he.cursor(Ee.from+Tt.length)}})}else j?l=i.changeByRange(te=>{let Ee=S.line(m++);return{changes:{from:te.from,to:te.to,insert:Ee.text},range:he.cursor(te.from+Ee.length)}}):l=i.replaceSelection(S);f.dispatch(l,{userEvent:"input.paste",scrollIntoView:!0})}vc.scroll=f=>{f.inputState.lastScrollTop=f.scrollDOM.scrollTop,f.inputState.lastScrollLeft=f.scrollDOM.scrollLeft},Xl.keydown=(f,e)=>(f.inputState.setSelectionOrigin("select"),e.keyCode==27&&(f.inputState.lastEscPress=Date.now()),!1),vc.touchstart=(f,e)=>{f.inputState.lastTouchTime=Date.now(),f.inputState.setSelectionOrigin("select.pointer")},vc.touchmove=f=>{f.inputState.setSelectionOrigin("select.pointer")},Xl.mousedown=(f,e)=>{if(f.observer.flush(),f.inputState.lastTouchTime>Date.now()-2e3)return!1;let i=null;for(let l of f.state.facet(zu))if(i=l(f,e),i)break;if(!i&&e.button==0&&(i=hu(f,e)),i){let l=!f.hasFocus;f.inputState.startMouseSelection(new fh(f,e,i,l)),l&&f.observer.ignore(()=>Lt(f.contentDOM));let m=f.inputState.mouseSelection;if(m)return m.start(e),m.dragging===!1}return!1};function Iu(f,e,i,l){if(l==1)return he.cursor(e,i);if(l==2)return ba(f.state,e,i);{let m=js.find(f.docView,e),S=f.state.doc.lineAt(m?m.posAtEnd:e),j=m?m.posAtStart:S.from,Y=m?m.posAtEnd:S.to;return Y<f.state.doc.length&&Y==S.to&&Y++,he.range(j,Y)}}let ac=(f,e)=>f>=e.top&&f<=e.bottom,Wu=(f,e,i)=>ac(e,i)&&f>=i.left&&f<=i.right;function ca(f,e,i,l){let m=js.find(f.docView,e);if(!m)return 1;let S=e-m.posAtStart;if(S==0)return 1;if(S==m.length)return-1;let j=m.coordsAt(S,-1);if(j&&Wu(i,l,j))return-1;let Y=m.coordsAt(S,1);return Y&&Wu(i,l,Y)?1:j&&ac(l,j)?-1:1}function bc(f,e){let i=f.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:i,bias:ca(f,i,e.clientX,e.clientY)}}const Gd=go.ie&&go.ie_version<=11;let du=null,Ru=0,Sc=0;function Ta(f){if(!Gd)return f.detail;let e=du,i=Sc;return du=f,Sc=Date.now(),Ru=!e||i>Date.now()-400&&Math.abs(e.clientX-f.clientX)<2&&Math.abs(e.clientY-f.clientY)<2?(Ru+1)%3:1}function hu(f,e){let i=bc(f,e),l=Ta(e),m=f.state.selection;return{update(S){S.docChanged&&(i.pos=S.changes.mapPos(i.pos),m=m.map(S.changes))},get(S,j,Y){let te=bc(f,S),Ee,Se=Iu(f,te.pos,te.bias,l);if(i.pos!=te.pos&&!j){let Tt=Iu(f,i.pos,i.bias,l),rn=Math.min(Tt.from,Se.from),Nn=Math.max(Tt.to,Se.to);Se=rn<Se.from?he.range(rn,Nn):he.range(Nn,rn)}return j?m.replaceRange(m.main.extend(Se.from,Se.to)):Y&&l==1&&m.ranges.length>1&&(Ee=pd(m,te.pos))?Ee:Y?m.addRange(Se):he.create([Se])}}}function pd(f,e){for(let i=0;i<f.ranges.length;i++){let{from:l,to:m}=f.ranges[i];if(l<=e&&m>=e)return he.create(f.ranges.slice(0,i).concat(f.ranges.slice(i+1)),f.mainIndex==i?0:f.mainIndex-(f.mainIndex>i?1:0))}return null}Xl.dragstart=(f,e)=>{let{selection:{main:i}}=f.state,{mouseSelection:l}=f.inputState;return l&&(l.dragging=i),e.dataTransfer&&(e.dataTransfer.setData("Text",f.state.sliceDoc(i.from,i.to)),e.dataTransfer.effectAllowed="copyMove"),!1};function md(f,e,i,l){if(!i)return;let m=f.posAtCoords({x:e.clientX,y:e.clientY},!1),{mouseSelection:S}=f.inputState,j=l&&S&&S.dragging&&ph(f,e)?{from:S.dragging.from,to:S.dragging.to}:null,Y={from:m,insert:i},te=f.state.changes(j?[j,Y]:Y);f.focus(),f.dispatch({changes:te,selection:{anchor:te.mapPos(m,-1),head:te.mapPos(m,1)},userEvent:j?"move.drop":"input.drop"})}Xl.drop=(f,e)=>{if(!e.dataTransfer)return!1;if(f.state.readOnly)return!0;let i=e.dataTransfer.files;if(i&&i.length){let l=Array(i.length),m=0,S=()=>{++m==i.length&&md(f,e,l.filter(j=>j!=null).join(f.state.lineBreak),!1)};for(let j=0;j<i.length;j++){let Y=new FileReader;Y.onerror=S,Y.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(Y.result)||(l[j]=Y.result),S()},Y.readAsText(i[j])}return!0}else{let l=e.dataTransfer.getData("Text");if(l)return md(f,e,l,!0),!0}return!1},Xl.paste=(f,e)=>{if(f.state.readOnly)return!0;f.observer.flush();let i=Du?null:e.clipboardData;return i?(Kd(f,i.getData("text/plain")||i.getData("text/uri-text")),!0):(Hu(f),!1)};function vs(f,e){let i=f.dom.parentNode;if(!i)return;let l=i.appendChild(document.createElement("textarea"));l.style.cssText="position: fixed; left: -10000px; top: 10px",l.value=e,l.focus(),l.selectionEnd=e.length,l.selectionStart=0,setTimeout(()=>{l.remove(),f.focus()},50)}function gd(f){let e=[],i=[],l=!1;for(let m of f.selection.ranges)m.empty||(e.push(f.sliceDoc(m.from,m.to)),i.push(m));if(!e.length){let m=-1;for(let{from:S}of f.selection.ranges){let j=f.doc.lineAt(S);j.number>m&&(e.push(j.text),i.push({from:j.from,to:Math.min(f.doc.length,j.to+1)})),m=j.number}l=!0}return{text:e.join(f.lineBreak),ranges:i,linewise:l}}let yc=null;Xl.copy=Xl.cut=(f,e)=>{let{text:i,ranges:l,linewise:m}=gd(f.state);if(!i&&!m)return!1;yc=m?i:null,e.type=="cut"&&!f.state.readOnly&&f.dispatch({changes:l,scrollIntoView:!0,userEvent:"delete.cut"});let S=Du?null:e.clipboardData;return S?(S.clearData(),S.setData("text/plain",i),!0):(vs(f,i),!1)};const ma=Hn.define();function oa(f,e){let i=[];for(let l of f.facet(Fl)){let m=l(f,e);m&&i.push(m)}return i?f.update({effects:i,annotations:ma.of(!0)}):null}function Wa(f){setTimeout(()=>{let e=f.hasFocus;if(e!=f.inputState.notifiedFocused){let i=oa(f.state,e);i?f.dispatch(i):f.update([])}},10)}vc.focus=f=>{f.inputState.lastFocusTime=Date.now(),!f.scrollDOM.scrollTop&&(f.inputState.lastScrollTop||f.inputState.lastScrollLeft)&&(f.scrollDOM.scrollTop=f.inputState.lastScrollTop,f.scrollDOM.scrollLeft=f.inputState.lastScrollLeft),Wa(f)},vc.blur=f=>{f.observer.clearSelectionRange(),Wa(f)},vc.compositionstart=vc.compositionupdate=f=>{f.inputState.compositionFirstChange==null&&(f.inputState.compositionFirstChange=!0),f.inputState.composing<0&&(f.inputState.composing=0)},vc.compositionend=f=>{f.inputState.composing=-1,f.inputState.compositionEndedAt=Date.now(),f.inputState.compositionPendingKey=!0,f.inputState.compositionPendingChange=f.observer.pendingRecords().length>0,f.inputState.compositionFirstChange=null,go.chrome&&go.android?f.observer.flushSoon():f.inputState.compositionPendingChange?Promise.resolve().then(()=>f.observer.flush()):setTimeout(()=>{f.inputState.composing<0&&f.docView.hasComposition&&f.update([])},50)},vc.contextmenu=f=>{f.inputState.lastContextMenu=Date.now()},Xl.beforeinput=(f,e)=>{var i;let l;if(go.chrome&&go.android&&(l=Od.find(m=>m.inputType==e.inputType))&&(f.observer.delayAndroidKey(l.key,l.keyCode),l.key=="Backspace"||l.key=="Delete")){let m=((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0;setTimeout(()=>{var S;(((S=window.visualViewport)===null||S===void 0?void 0:S.height)||0)>m+10&&f.hasFocus&&(f.contentDOM.blur(),f.focus())},100)}return!1};const fu=new Set;function Tl(f){fu.has(f)||(fu.add(f),f.addEventListener("copy",()=>{}),f.addEventListener("cut",()=>{}))}const pu=["pre-wrap","normal","pre-line","break-spaces"];class Xc{constructor(e){this.lineWrapping=e,this.doc=Te.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,i){let l=this.doc.lineAt(i).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(l+=Math.max(0,Math.ceil((i-e-l*this.lineLength*.5)/this.lineLength))),this.lineHeight*l}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return pu.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let i=!1;for(let l=0;l<e.length;l++){let m=e[l];m<0?l++:this.heightSamples[Math.floor(m*10)]||(i=!0,this.heightSamples[Math.floor(m*10)]=!0)}return i}refresh(e,i,l,m,S,j){let Y=pu.indexOf(e)>-1,te=Math.round(i)!=Math.round(this.lineHeight)||this.lineWrapping!=Y;if(this.lineWrapping=Y,this.lineHeight=i,this.charWidth=l,this.textHeight=m,this.lineLength=S,te){this.heightSamples={};for(let Ee=0;Ee<j.length;Ee++){let Se=j[Ee];Se<0?Ee++:this.heightSamples[Math.floor(Se*10)]=!0}}return te}}class dl{constructor(e,i){this.from=e,this.heights=i,this.index=0}get more(){return this.index<this.heights.length}}class wc{constructor(e,i,l,m,S){this.from=e,this.length=i,this.top=l,this.height=m,this._content=S}get type(){return typeof this._content=="number"?il.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof rc?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let i=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new wc(this.from,this.length+e.length,this.top,this.height+e.height,i)}}var W=function(f){return f[f.ByPos=0]="ByPos",f[f.ByHeight=1]="ByHeight",f[f.ByPosNoHeight=2]="ByPosNoHeight",f}(W||(W={}));const o=.001;class g{constructor(e,i,l=2){this.length=e,this.height=i,this.flags=l}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e,i){this.height!=i&&(Math.abs(this.height-i)>o&&(e.heightChanged=!0),this.height=i)}replace(e,i,l){return g.of(l)}decomposeLeft(e,i){i.push(this)}decomposeRight(e,i){i.push(this)}applyChanges(e,i,l,m){let S=this,j=l.doc;for(let Y=m.length-1;Y>=0;Y--){let{fromA:te,toA:Ee,fromB:Se,toB:Tt}=m[Y],rn=S.lineAt(te,W.ByPosNoHeight,l.setDoc(i),0,0),Nn=rn.to>=Ee?rn:S.lineAt(Ee,W.ByPosNoHeight,l,0,0);for(Tt+=Nn.to-Ee,Ee=Nn.to;Y>0&&rn.from<=m[Y-1].toA;)te=m[Y-1].fromA,Se=m[Y-1].fromB,Y--,te<rn.from&&(rn=S.lineAt(te,W.ByPosNoHeight,l,0,0));Se+=rn.from-te,te=rn.from;let sr=xn.build(l.setDoc(j),e,Se,Tt);S=S.replace(te,Ee,sr)}return S.updateHeight(l,0)}static empty(){return new K(0,0)}static of(e){if(e.length==1)return e[0];let i=0,l=e.length,m=0,S=0;for(;;)if(i==l)if(m>S*2){let Y=e[i-1];Y.break?e.splice(--i,1,Y.left,null,Y.right):e.splice(--i,1,Y.left,Y.right),l+=1+Y.break,m-=Y.size}else if(S>m*2){let Y=e[l];Y.break?e.splice(l,1,Y.left,null,Y.right):e.splice(l,1,Y.left,Y.right),l+=2+Y.break,S-=Y.size}else break;else if(m<S){let Y=e[i++];Y&&(m+=Y.size)}else{let Y=e[--l];Y&&(S+=Y.size)}let j=0;return e[i-1]==null?(j=1,i--):e[i]==null&&(j=1,l++),new xe(g.of(e.slice(0,i)),j,g.of(e.slice(l)))}}g.prototype.size=1;class P extends g{constructor(e,i,l){super(e,i),this.deco=l}blockAt(e,i,l,m){return new wc(m,this.length,l,this.height,this.deco||0)}lineAt(e,i,l,m,S){return this.blockAt(0,l,m,S)}forEachLine(e,i,l,m,S,j){e<=S+this.length&&i>=S&&j(this.blockAt(0,l,m,S))}updateHeight(e,i=0,l=!1,m){return m&&m.from<=i&&m.more&&this.setHeight(e,m.heights[m.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class K extends P{constructor(e,i){super(e,i,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,i,l,m){return new wc(m,this.length,l,this.height,this.breaks)}replace(e,i,l){let m=l[0];return l.length==1&&(m instanceof K||m instanceof ie&&m.flags&4)&&Math.abs(this.length-m.length)<10?(m instanceof ie?m=new K(m.length,this.height):m.height=this.height,this.outdated||(m.outdated=!1),m):g.of(l)}updateHeight(e,i=0,l=!1,m){return m&&m.from<=i&&m.more?this.setHeight(e,m.heights[m.index++]):(l||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class ie extends g{constructor(e){super(e,0)}heightMetrics(e,i){let l=e.doc.lineAt(i).number,m=e.doc.lineAt(i+this.length).number,S=m-l+1,j,Y=0;if(e.lineWrapping){let te=Math.min(this.height,e.lineHeight*S);j=te/S,this.length>S+1&&(Y=(this.height-te)/(this.length-S-1))}else j=this.height/S;return{firstLine:l,lastLine:m,perLine:j,perChar:Y}}blockAt(e,i,l,m){let{firstLine:S,lastLine:j,perLine:Y,perChar:te}=this.heightMetrics(i,m);if(i.lineWrapping){let Ee=m+Math.round(Math.max(0,Math.min(1,(e-l)/this.height))*this.length),Se=i.doc.lineAt(Ee),Tt=Y+Se.length*te,rn=Math.max(l,e-Tt/2);return new wc(Se.from,Se.length,rn,Tt,0)}else{let Ee=Math.max(0,Math.min(j-S,Math.floor((e-l)/Y))),{from:Se,length:Tt}=i.doc.line(S+Ee);return new wc(Se,Tt,l+Y*Ee,Y,0)}}lineAt(e,i,l,m,S){if(i==W.ByHeight)return this.blockAt(e,l,m,S);if(i==W.ByPosNoHeight){let{from:Nn,to:sr}=l.doc.lineAt(e);return new wc(Nn,sr-Nn,0,0,0)}let{firstLine:j,perLine:Y,perChar:te}=this.heightMetrics(l,S),Ee=l.doc.lineAt(e),Se=Y+Ee.length*te,Tt=Ee.number-j,rn=m+Y*Tt+te*(Ee.from-S-Tt);return new wc(Ee.from,Ee.length,Math.max(m,Math.min(rn,m+this.height-Se)),Se,0)}forEachLine(e,i,l,m,S,j){e=Math.max(e,S),i=Math.min(i,S+this.length);let{firstLine:Y,perLine:te,perChar:Ee}=this.heightMetrics(l,S);for(let Se=e,Tt=m;Se<=i;){let rn=l.doc.lineAt(Se);if(Se==e){let sr=rn.number-Y;Tt+=te*sr+Ee*(e-S-sr)}let Nn=te+Ee*rn.length;j(new wc(rn.from,rn.length,Tt,Nn,0)),Tt+=Nn,Se=rn.to+1}}replace(e,i,l){let m=this.length-i;if(m>0){let S=l[l.length-1];S instanceof ie?l[l.length-1]=new ie(S.length+m):l.push(null,new ie(m-1))}if(e>0){let S=l[0];S instanceof ie?l[0]=new ie(e+S.length):l.unshift(new ie(e-1),null)}return g.of(l)}decomposeLeft(e,i){i.push(new ie(e-1),null)}decomposeRight(e,i){i.push(null,new ie(this.length-e-1))}updateHeight(e,i=0,l=!1,m){let S=i+this.length;if(m&&m.from<=i+this.length&&m.more){let j=[],Y=Math.max(i,m.from),te=-1;for(m.from>i&&j.push(new ie(m.from-i-1).updateHeight(e,i));Y<=S&&m.more;){let Se=e.doc.lineAt(Y).length;j.length&&j.push(null);let Tt=m.heights[m.index++];te==-1?te=Tt:Math.abs(Tt-te)>=o&&(te=-2);let rn=new K(Se,Tt);rn.outdated=!1,j.push(rn),Y+=Se+1}Y<=S&&j.push(null,new ie(S-Y).updateHeight(e,Y));let Ee=g.of(j);return(te<0||Math.abs(Ee.height-this.height)>=o||Math.abs(te-this.heightMetrics(e,i).perLine)>=o)&&(e.heightChanged=!0),Ee}else(l||this.outdated)&&(this.setHeight(e,e.heightForGap(i,i+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class xe extends g{constructor(e,i,l){super(e.length+i+l.length,e.height+l.height,i|(e.outdated||l.outdated?2:0)),this.left=e,this.right=l,this.size=e.size+l.size}get break(){return this.flags&1}blockAt(e,i,l,m){let S=l+this.left.height;return e<S?this.left.blockAt(e,i,l,m):this.right.blockAt(e,i,S,m+this.left.length+this.break)}lineAt(e,i,l,m,S){let j=m+this.left.height,Y=S+this.left.length+this.break,te=i==W.ByHeight?e<j:e<Y,Ee=te?this.left.lineAt(e,i,l,m,S):this.right.lineAt(e,i,l,j,Y);if(this.break||(te?Ee.to<Y:Ee.from>Y))return Ee;let Se=i==W.ByPosNoHeight?W.ByPosNoHeight:W.ByPos;return te?Ee.join(this.right.lineAt(Y,Se,l,j,Y)):this.left.lineAt(Y,Se,l,m,S).join(Ee)}forEachLine(e,i,l,m,S,j){let Y=m+this.left.height,te=S+this.left.length+this.break;if(this.break)e<te&&this.left.forEachLine(e,i,l,m,S,j),i>=te&&this.right.forEachLine(e,i,l,Y,te,j);else{let Ee=this.lineAt(te,W.ByPos,l,m,S);e<Ee.from&&this.left.forEachLine(e,Ee.from-1,l,m,S,j),Ee.to>=e&&Ee.from<=i&&j(Ee),i>Ee.to&&this.right.forEachLine(Ee.to+1,i,l,Y,te,j)}}replace(e,i,l){let m=this.left.length+this.break;if(i<m)return this.balanced(this.left.replace(e,i,l),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-m,i-m,l));let S=[];e>0&&this.decomposeLeft(e,S);let j=S.length;for(let Y of l)S.push(Y);if(e>0&&jt(S,j-1),i<this.length){let Y=S.length;this.decomposeRight(i,S),jt(S,Y)}return g.of(S)}decomposeLeft(e,i){let l=this.left.length;if(e<=l)return this.left.decomposeLeft(e,i);i.push(this.left),this.break&&(l++,e>=l&&i.push(null)),e>l&&this.right.decomposeLeft(e-l,i)}decomposeRight(e,i){let l=this.left.length,m=l+this.break;if(e>=m)return this.right.decomposeRight(e-m,i);e<l&&this.left.decomposeRight(e,i),this.break&&e<m&&i.push(null),i.push(this.right)}balanced(e,i){return e.size>2*i.size||i.size>2*e.size?g.of(this.break?[e,null,i]:[e,i]):(this.left=e,this.right=i,this.height=e.height+i.height,this.outdated=e.outdated||i.outdated,this.size=e.size+i.size,this.length=e.length+this.break+i.length,this)}updateHeight(e,i=0,l=!1,m){let{left:S,right:j}=this,Y=i+S.length+this.break,te=null;return m&&m.from<=i+S.length&&m.more?te=S=S.updateHeight(e,i,l,m):S.updateHeight(e,i,l),m&&m.from<=Y+j.length&&m.more?te=j=j.updateHeight(e,Y,l,m):j.updateHeight(e,Y,l),te?this.balanced(S,j):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function jt(f,e){let i,l;f[e]==null&&(i=f[e-1])instanceof ie&&(l=f[e+1])instanceof ie&&f.splice(e-1,3,new ie(i.length+1+l.length))}const tn=5;class xn{constructor(e,i){this.pos=e,this.oracle=i,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,i){if(this.lineStart>-1){let l=Math.min(i,this.lineEnd),m=this.nodes[this.nodes.length-1];m instanceof K?m.length+=l-this.pos:(l>this.pos||!this.isCovered)&&this.nodes.push(new K(l-this.pos,-1)),this.writtenTo=l,i>l&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=i}point(e,i,l){if(e<i||l.heightRelevant){let m=l.widget?l.widget.estimatedHeight:0,S=l.widget?l.widget.lineBreaks:0;m<0&&(m=this.oracle.lineHeight);let j=i-e;l.block?this.addBlock(new P(j,m,l)):(j||S||m>=tn)&&this.addLineDeco(m,S,j)}else i>e&&this.span(e,i);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:i}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=i,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new K(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,i){let l=new ie(i-e);return this.oracle.doc.lineAt(e).to==i&&(l.flags|=4),l}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof K)return e;let i=new K(0,-1);return this.nodes.push(i),i}addBlock(e){this.enterLine();let i=e.deco;i&&i.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,i&&i.endSide>0&&(this.covering=e)}addLineDeco(e,i,l){let m=this.ensureLine();m.length+=l,m.collapsed+=l,m.widgetHeight=Math.max(m.widgetHeight,e),m.breaks+=i,this.writtenTo=this.pos=this.pos+l}finish(e){let i=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(i instanceof K)&&!this.isCovered?this.nodes.push(new K(0,-1)):(this.writtenTo<this.pos||i==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let l=e;for(let m of this.nodes)m instanceof K&&m.updateHeight(this.oracle,l),l+=m?m.length:1;return this.nodes}static build(e,i,l,m){let S=new xn(l,e);return Wo.spans(i,l,m,S,0),S.finish(l)}}function Fn(f,e,i){let l=new mr;return Wo.compare(f,e,i,l,0),l.changes}class mr{constructor(){this.changes=[]}compareRange(){}comparePoint(e,i,l,m){(e<i||l&&l.heightRelevant||m&&m.heightRelevant)&&Rc(e,i,this.changes,5)}}function Pr(f,e){let i=f.getBoundingClientRect(),l=f.ownerDocument,m=l.defaultView||window,S=Math.max(0,i.left),j=Math.min(m.innerWidth,i.right),Y=Math.max(0,i.top),te=Math.min(m.innerHeight,i.bottom);for(let Ee=f.parentNode;Ee&&Ee!=l.body;)if(Ee.nodeType==1){let Se=Ee,Tt=window.getComputedStyle(Se);if((Se.scrollHeight>Se.clientHeight||Se.scrollWidth>Se.clientWidth)&&Tt.overflow!="visible"){let rn=Se.getBoundingClientRect();S=Math.max(S,rn.left),j=Math.min(j,rn.right),Y=Math.max(Y,rn.top),te=Ee==f.parentNode?rn.bottom:Math.min(te,rn.bottom)}Ee=Tt.position=="absolute"||Tt.position=="fixed"?Se.offsetParent:Se.parentNode}else if(Ee.nodeType==11)Ee=Ee.host;else break;return{left:S-i.left,right:Math.max(S,j)-i.left,top:Y-(i.top+e),bottom:Math.max(Y,te)-(i.top+e)}}function ti(f,e){let i=f.getBoundingClientRect();return{left:0,right:i.right-i.left,top:e,bottom:i.bottom-(i.top+e)}}class Ci{constructor(e,i,l){this.from=e,this.to=i,this.size=l}static same(e,i){if(e.length!=i.length)return!1;for(let l=0;l<e.length;l++){let m=e[l],S=i[l];if(m.from!=S.from||m.to!=S.to||m.size!=S.size)return!1}return!0}draw(e,i){return ko.replace({widget:new Ji(this.size*(i?e.scaleY:e.scaleX),i)}).range(this.from,this.to)}}class Ji extends Bl{constructor(e,i){super(),this.size=e,this.vertical=i}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class ho{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!0,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=Za,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=la.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let i=e.facet(hs).some(l=>typeof l!="function"&&l.class=="cm-lineWrapping");this.heightOracle=new Xc(i),this.stateDeco=e.facet(Gl).filter(l=>typeof l!="function"),this.heightMap=g.empty().applyChanges(this.stateDeco,Te.empty,this.heightOracle.setDoc(e.doc),[new ka(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=ko.set(this.lineGaps.map(l=>l.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:i}=this.state.selection;for(let l=0;l<=1;l++){let m=l?i.head:i.anchor;if(!e.some(({from:S,to:j})=>m>=S&&m<=j)){let{from:S,to:j}=this.lineBlockAt(m);e.push(new is(S,j))}}this.viewports=e.sort((l,m)=>l.from-m.from),this.scaler=this.heightMap.height<=7e6?Za:new Yd(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(this.scaler.scale==1?e:mu(e,this.scaler))})}update(e,i=null){this.state=e.state;let l=this.stateDeco;this.stateDeco=this.state.facet(Gl).filter(Se=>typeof Se!="function");let m=e.changedRanges,S=ka.extendWithRanges(m,Fn(l,this.stateDeco,e?e.changes:oi.empty(this.state.doc.length))),j=this.heightMap.height,Y=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),S),this.heightMap.height!=j&&(e.flags|=2),Y?(this.scrollAnchorPos=e.changes.mapPos(Y.from,-1),this.scrollAnchorHeight=Y.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let te=S.length?this.mapViewport(this.viewport,e.changes):this.viewport;(i&&(i.range.head<te.from||i.range.head>te.to)||!this.viewportIsAppropriate(te))&&(te=this.getViewport(0,i));let Ee=!e.changes.empty||e.flags&2||te.from!=this.viewport.from||te.to!=this.viewport.to;this.viewport=te,this.updateForViewport(),Ee&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>2e3<<1)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),i&&(this.scrollTarget=i),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(Qa)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let i=e.contentDOM,l=window.getComputedStyle(i),m=this.heightOracle,S=l.whiteSpace;this.defaultTextDirection=l.direction=="rtl"?la.RTL:la.LTR;let j=this.heightOracle.mustRefreshForWrapping(S),Y=i.getBoundingClientRect(),te=j||this.mustMeasureContent||this.contentDOMHeight!=Y.height;this.contentDOMHeight=Y.height,this.mustMeasureContent=!1;let Ee=0,Se=0;if(Y.width&&Y.height){let Zi=Y.width/i.offsetWidth,io=Y.height/i.offsetHeight;(Zi>.995&&Zi<1.005||!isFinite(Zi)||Math.abs(Y.width-i.offsetWidth)<1)&&(Zi=1),(io>.995&&io<1.005||!isFinite(io)||Math.abs(Y.height-i.offsetHeight)<1)&&(io=1),(this.scaleX!=Zi||this.scaleY!=io)&&(this.scaleX=Zi,this.scaleY=io,Ee|=8,j=te=!0)}let Tt=(parseInt(l.paddingTop)||0)*this.scaleY,rn=(parseInt(l.paddingBottom)||0)*this.scaleY;(this.paddingTop!=Tt||this.paddingBottom!=rn)&&(this.paddingTop=Tt,this.paddingBottom=rn,Ee|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(m.lineWrapping&&(te=!0),this.editorWidth=e.scrollDOM.clientWidth,Ee|=8);let Nn=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=Nn&&(this.scrollAnchorHeight=-1,this.scrollTop=Nn),this.scrolledToBottom=en(e.scrollDOM);let sr=(this.printing?ti:Pr)(i,this.paddingTop),Gr=sr.top-this.pixelViewport.top,Zr=sr.bottom-this.pixelViewport.bottom;this.pixelViewport=sr;let _i=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(_i!=this.inView&&(this.inView=_i,_i&&(te=!0)),!this.inView&&!this.scrollTarget)return 0;let ro=Y.width;if((this.contentDOMWidth!=ro||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=Y.width,this.editorHeight=e.scrollDOM.clientHeight,Ee|=8),te){let Zi=e.docView.measureVisibleLineHeights(this.viewport);if(m.mustRefreshForHeights(Zi)&&(j=!0),j||m.lineWrapping&&Math.abs(ro-this.contentDOMWidth)>m.charWidth){let{lineHeight:io,charWidth:po,textHeight:Mo}=e.docView.measureTextSize();j=io>0&&m.refresh(S,io,po,Mo,ro/po,Zi),j&&(e.docView.minWidth=0,Ee|=8)}Gr>0&&Zr>0?Se=Math.max(Gr,Zr):Gr<0&&Zr<0&&(Se=Math.min(Gr,Zr)),m.heightChanged=!1;for(let io of this.viewports){let po=io.from==this.viewport.from?Zi:e.docView.measureVisibleLineHeights(io);this.heightMap=(j?g.empty().applyChanges(this.stateDeco,Te.empty,this.heightOracle,[new ka(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(m,0,j,new dl(io.from,po))}m.heightChanged&&(Ee|=2)}let To=!this.viewportIsAppropriate(this.viewport,Se)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return To&&(this.viewport=this.getViewport(Se,this.scrollTarget)),this.updateForViewport(),(Ee&2||To)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>2e3<<1)&&this.updateLineGaps(this.ensureLineGaps(j?[]:this.lineGaps,e)),Ee|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),Ee}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,i){let l=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),m=this.heightMap,S=this.heightOracle,{visibleTop:j,visibleBottom:Y}=this,te=new is(m.lineAt(j-l*1e3,W.ByHeight,S,0,0).from,m.lineAt(Y+(1-l)*1e3,W.ByHeight,S,0,0).to);if(i){let{head:Ee}=i.range;if(Ee<te.from||Ee>te.to){let Se=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),Tt=m.lineAt(Ee,W.ByPos,S,0,0),rn;i.y=="center"?rn=(Tt.top+Tt.bottom)/2-Se/2:i.y=="start"||i.y=="nearest"&&Ee<te.from?rn=Tt.top:rn=Tt.bottom-Se,te=new is(m.lineAt(rn-1e3/2,W.ByHeight,S,0,0).from,m.lineAt(rn+Se+1e3/2,W.ByHeight,S,0,0).to)}}return te}mapViewport(e,i){let l=i.mapPos(e.from,-1),m=i.mapPos(e.to,1);return new is(this.heightMap.lineAt(l,W.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(m,W.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:i},l=0){if(!this.inView)return!0;let{top:m}=this.heightMap.lineAt(e,W.ByPos,this.heightOracle,0,0),{bottom:S}=this.heightMap.lineAt(i,W.ByPos,this.heightOracle,0,0),{visibleTop:j,visibleBottom:Y}=this;return(e==0||m<=j-Math.max(10,Math.min(-l,250)))&&(i==this.state.doc.length||S>=Y+Math.max(10,Math.min(l,250)))&&m>j-2*1e3&&S<Y+2*1e3}mapLineGaps(e,i){if(!e.length||i.empty)return e;let l=[];for(let m of e)i.touchesRange(m.from,m.to)||l.push(new Ci(i.mapPos(m.from),i.mapPos(m.to),m.size));return l}ensureLineGaps(e,i){let l=this.heightOracle.lineWrapping,m=l?1e4:2e3,S=m>>1,j=m<<1;if(this.defaultTextDirection!=la.LTR&&!l)return[];let Y=[],te=(Ee,Se,Tt,rn)=>{if(Se-Ee<S)return;let Nn=this.state.selection.main,sr=[Nn.from];Nn.empty||sr.push(Nn.to);for(let Zr of sr)if(Zr>Ee&&Zr<Se){te(Ee,Zr-10,Tt,rn),te(Zr+10,Se,Tt,rn);return}let Gr=$c(e,Zr=>Zr.from>=Tt.from&&Zr.to<=Tt.to&&Math.abs(Zr.from-Ee)<S&&Math.abs(Zr.to-Se)<S&&!sr.some(_i=>Zr.from<_i&&Zr.to>_i));if(!Gr){if(Se<Tt.to&&i&&l&&i.visibleRanges.some(Zr=>Zr.from<=Se&&Zr.to>=Se)){let Zr=i.moveToLineBoundary(he.cursor(Se),!1,!0).head;Zr>Ee&&(Se=Zr)}Gr=new Ci(Ee,Se,this.gapSize(Tt,Ee,Se,rn))}Y.push(Gr)};for(let Ee of this.viewportLines){if(Ee.length<j)continue;let Se=Fo(Ee.from,Ee.to,this.stateDeco);if(Se.total<j)continue;let Tt=this.scrollTarget?this.scrollTarget.range.head:null,rn,Nn;if(l){let sr=m/this.heightOracle.lineLength*this.heightOracle.lineHeight,Gr,Zr;if(Tt!=null){let _i=qo(Se,Tt),ro=((this.visibleBottom-this.visibleTop)/2+sr)/Ee.height;Gr=_i-ro,Zr=_i+ro}else Gr=(this.visibleTop-Ee.top-sr)/Ee.height,Zr=(this.visibleBottom-Ee.top+sr)/Ee.height;rn=Ds(Se,Gr),Nn=Ds(Se,Zr)}else{let sr=Se.total*this.heightOracle.charWidth,Gr=m*this.heightOracle.charWidth,Zr,_i;if(Tt!=null){let ro=qo(Se,Tt),To=((this.pixelViewport.right-this.pixelViewport.left)/2+Gr)/sr;Zr=ro-To,_i=ro+To}else Zr=(this.pixelViewport.left-Gr)/sr,_i=(this.pixelViewport.right+Gr)/sr;rn=Ds(Se,Zr),Nn=Ds(Se,_i)}rn>Ee.from&&te(Ee.from,rn,Ee,Se),Nn<Ee.to&&te(Nn,Ee.to,Ee,Se)}return Y}gapSize(e,i,l,m){let S=qo(m,l)-qo(m,i);return this.heightOracle.lineWrapping?e.height*S:m.total*this.heightOracle.charWidth*S}updateLineGaps(e){Ci.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=ko.set(e.map(i=>i.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let i=[];Wo.spans(e,this.viewport.from,this.viewport.to,{span(m,S){i.push({from:m,to:S})},point(){}},20);let l=i.length!=this.visibleRanges.length||this.visibleRanges.some((m,S)=>m.from!=i[S].from||m.to!=i[S].to);return this.visibleRanges=i,l?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(i=>i.from<=e&&i.to>=e)||mu(this.heightMap.lineAt(e,W.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return mu(this.heightMap.lineAt(this.scaler.fromDOM(e),W.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let i=this.lineBlockAtHeight(e+8);return i.from>=this.viewport.from||this.viewportLines[0].top-e>200?i:this.viewportLines[0]}elementAtHeight(e){return mu(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class is{constructor(e,i){this.from=e,this.to=i}}function Fo(f,e,i){let l=[],m=f,S=0;return Wo.spans(i,f,e,{span(){},point(j,Y){j>m&&(l.push({from:m,to:j}),S+=j-m),m=Y}},20),m<e&&(l.push({from:m,to:e}),S+=e-m),{total:S,ranges:l}}function Ds({total:f,ranges:e},i){if(i<=0)return e[0].from;if(i>=1)return e[e.length-1].to;let l=Math.floor(f*i);for(let m=0;;m++){let{from:S,to:j}=e[m],Y=j-S;if(l<=Y)return S+l;l-=Y}}function qo(f,e){let i=0;for(let{from:l,to:m}of f.ranges){if(e<=m){i+=e-l;break}i+=m-l}return i/f.total}function $c(f,e){for(let i of f)if(e(i))return i}const Za={toDOM(f){return f},fromDOM(f){return f},scale:1};class Yd{constructor(e,i,l){let m=0,S=0,j=0;this.viewports=l.map(({from:Y,to:te})=>{let Ee=i.lineAt(Y,W.ByPos,e,0,0).top,Se=i.lineAt(te,W.ByPos,e,0,0).bottom;return m+=Se-Ee,{from:Y,to:te,top:Ee,bottom:Se,domTop:0,domBottom:0}}),this.scale=(7e6-m)/(i.height-m);for(let Y of this.viewports)Y.domTop=j+(Y.top-S)*this.scale,j=Y.domBottom=Y.domTop+(Y.bottom-Y.top),S=Y.bottom}toDOM(e){for(let i=0,l=0,m=0;;i++){let S=i<this.viewports.length?this.viewports[i]:null;if(!S||e<S.top)return m+(e-l)*this.scale;if(e<=S.bottom)return S.domTop+(e-S.top);l=S.bottom,m=S.domBottom}}fromDOM(e){for(let i=0,l=0,m=0;;i++){let S=i<this.viewports.length?this.viewports[i]:null;if(!S||e<S.domTop)return l+(e-m)/this.scale;if(e<=S.domBottom)return S.top+(e-S.domTop);l=S.bottom,m=S.domBottom}}}function mu(f,e){if(e.scale==1)return f;let i=e.toDOM(f.top),l=e.toDOM(f.bottom);return new wc(f.from,f.length,i,l-i,Array.isArray(f._content)?f._content.map(m=>mu(m,e)):f._content)}const sa=St.define({combine:f=>f.join(" ")}),vl=St.define({combine:f=>f.indexOf(!0)>-1}),Ih=Lo.newName(),mh=Lo.newName(),Rh=Lo.newName(),Lu={"&light":"."+mh,"&dark":"."+Rh};function Zu(f,e,i){return new Lo(e,{finish(l){return/&/.test(l)?l.replace(/&\w*/,m=>{if(m=="&")return f;if(!i||!i[m])throw new RangeError(`Unsupported selector: ${m}`);return i[m]}):f+" "+l}})}const ef=Zu("."+Ih,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Lu),Qd="\uFFFF";class Ra{constructor(e,i){this.points=e,this.text="",this.lineSeparator=i.facet(Io.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Qd}readRange(e,i){if(!e)return this;let l=e.parentNode;for(let m=e;;){this.findPointBefore(l,m);let S=this.text.length;this.readNode(m);let j=m.nextSibling;if(j==i)break;let Y=$n.get(m),te=$n.get(j);(Y&&te?Y.breakAfter:(Y?Y.breakAfter:gu(m))||gu(j)&&(m.nodeName!="BR"||m.cmIgnore)&&this.text.length>S)&&this.lineBreak(),m=j}return this.findPointBefore(l,i),this}readTextNode(e){let i=e.nodeValue;for(let l of this.points)l.node==e&&(l.pos=this.text.length+Math.min(l.offset,i.length));for(let l=0,m=this.lineSeparator?null:/\r\n?|\n/g;;){let S=-1,j=1,Y;if(this.lineSeparator?(S=i.indexOf(this.lineSeparator,l),j=this.lineSeparator.length):(Y=m.exec(i))&&(S=Y.index,j=Y[0].length),this.append(i.slice(l,S<0?i.length:S)),S<0)break;if(this.lineBreak(),j>1)for(let te of this.points)te.node==e&&te.pos>this.text.length&&(te.pos-=j-1);l=S+j}}readNode(e){if(e.cmIgnore)return;let i=$n.get(e),l=i&&i.overrideDOMText;if(l!=null){this.findPointInside(e,l.length);for(let m=l.iter();!m.next().done;)m.lineBreak?this.lineBreak():this.append(m.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,i){for(let l of this.points)l.node==e&&e.childNodes[l.offset]==i&&(l.pos=this.text.length)}findPointInside(e,i){for(let l of this.points)(e.nodeType==3?l.node==e:e.contains(l.node))&&(l.pos=this.text.length+(ql(e,l.node,l.offset)?i:0))}}function ql(f,e,i){for(;;){if(!e||i<rl(e))return!1;if(e==f)return!0;i=Pa(e)+1,e=e.parentNode}}function gu(f){return f.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(f.nodeName)}class Jd{constructor(e,i){this.node=e,this.offset=i,this.pos=-1}}class Lh{constructor(e,i,l,m){this.typeOver=m,this.bounds=null,this.text="";let{impreciseHead:S,impreciseAnchor:j}=e.docView;if(e.state.readOnly&&i>-1)this.newSel=null;else if(i>-1&&(this.bounds=e.docView.domBoundsAround(i,l,0))){let Y=S||j?[]:vu(e),te=new Ra(Y,e.state);te.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=te.text,this.newSel=ju(Y,this.bounds.from)}else{let Y=e.observer.selectionRange,te=S&&S.node==Y.focusNode&&S.offset==Y.focusOffset||!Di(e.contentDOM,Y.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(Y.focusNode,Y.focusOffset),Ee=j&&j.node==Y.anchorNode&&j.offset==Y.anchorOffset||!Di(e.contentDOM,Y.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(Y.anchorNode,Y.anchorOffset);this.newSel=he.single(Ee,te)}}}function jh(f,e){let i,{newSel:l}=e,m=f.state.selection.main,S=f.inputState.lastKeyTime>Date.now()-100?f.inputState.lastKeyCode:-1;if(e.bounds){let{from:j,to:Y}=e.bounds,te=m.from,Ee=null;(S===8||go.android&&e.text.length<Y-j)&&(te=m.to,Ee="end");let Se=za(f.state.doc.sliceString(j,Y,Qd),e.text,te-j,Ee);Se&&(go.chrome&&S==13&&Se.toB==Se.from+2&&e.text.slice(Se.from,Se.toB)==Qd+Qd&&Se.toB--,i={from:j+Se.from,to:j+Se.toA,insert:Te.of(e.text.slice(Se.from,Se.toB).split(Qd))})}else l&&(!f.hasFocus&&f.state.facet(Tc)||l.main.eq(m))&&(l=null);if(!i&&!l)return!1;if(!i&&e.typeOver&&!m.empty&&l&&l.main.empty?i={from:m.from,to:m.to,insert:f.state.doc.slice(m.from,m.to)}:i&&i.from>=m.from&&i.to<=m.to&&(i.from!=m.from||i.to!=m.to)&&m.to-m.from-(i.to-i.from)<=4?i={from:m.from,to:m.to,insert:f.state.doc.slice(m.from,i.from).append(i.insert).append(f.state.doc.slice(i.to,m.to))}:(go.mac||go.android)&&i&&i.from==i.to&&i.from==m.head-1&&/^\. ?$/.test(i.insert.toString())&&f.contentDOM.getAttribute("autocorrect")=="off"?(l&&i.insert.length==2&&(l=he.single(l.main.anchor-1,l.main.head-1)),i={from:m.from,to:m.to,insert:Te.of([" "])}):go.chrome&&i&&i.from==i.to&&i.from==m.head&&i.insert.toString()==`
 `&&f.lineWrapping&&(l&&(l=he.single(l.main.anchor-1,l.main.head-1)),i={from:m.from,to:m.to,insert:Te.of([" "])}),i){if(go.ios&&f.inputState.flushIOSKey()||go.android&&(i.from==m.from&&i.to==m.to&&i.insert.length==1&&i.insert.lines==2&&Ue(f.contentDOM,"Enter",13)||(i.from==m.from-1&&i.to==m.to&&i.insert.length==0||S==8&&i.insert.length<i.to-i.from&&i.to>m.head)&&Ue(f.contentDOM,"Backspace",8)||i.from==m.from&&i.to==m.to+1&&i.insert.length==0&&Ue(f.contentDOM,"Delete",46)))return!0;let j=i.insert.toString();f.inputState.composing>=0&&f.inputState.composing++;let Y,te=()=>Y||(Y=hl(f,i,l));return f.state.facet(gc).some(Ee=>Ee(f,i.from,i.to,j,te))||f.dispatch(te()),!0}else if(l&&!l.main.eq(m)){let j=!1,Y="select";return f.inputState.lastSelectionTime>Date.now()-50&&(f.inputState.lastSelectionOrigin=="select"&&(j=!0),Y=f.inputState.lastSelectionOrigin),f.dispatch({selection:l,scrollIntoView:j,userEvent:Y}),!0}else return!1}function hl(f,e,i){let l,m=f.state,S=m.selection.main;if(e.from>=S.from&&e.to<=S.to&&e.to-e.from>=(S.to-S.from)/3&&(!i||i.main.empty&&i.main.from==e.from+e.insert.length)&&f.inputState.composing<0){let Y=S.from<e.from?m.sliceDoc(S.from,e.from):"",te=S.to>e.to?m.sliceDoc(e.to,S.to):"";l=m.replaceSelection(f.state.toText(Y+e.insert.sliceString(0,void 0,f.state.lineBreak)+te))}else{let Y=m.changes(e),te=i&&i.main.to<=Y.newLength?i.main:void 0;if(m.selection.ranges.length>1&&f.inputState.composing>=0&&e.to<=S.to&&e.to>=S.to-10){let Ee=f.state.sliceDoc(e.from,e.to),Se,Tt=i&&Mi(f,i.main.head);if(Tt){let sr=e.insert.length-(e.to-e.from);Se={from:Tt.from,to:Tt.to-sr}}else Se=f.state.doc.lineAt(S.head);let rn=S.to-e.to,Nn=S.to-S.from;l=m.changeByRange(sr=>{if(sr.from==S.from&&sr.to==S.to)return{changes:Y,range:te||sr.map(Y)};let Gr=sr.to-rn,Zr=Gr-Ee.length;if(sr.to-sr.from!=Nn||f.state.sliceDoc(Zr,Gr)!=Ee||sr.to>=Se.from&&sr.from<=Se.to)return{range:sr};let _i=m.changes({from:Zr,to:Gr,insert:e.insert}),ro=sr.to-S.to;return{changes:_i,range:te?he.range(Math.max(0,te.anchor+ro),Math.max(0,te.head+ro)):sr.map(_i)}})}else l={changes:Y,selection:te&&m.selection.replaceRange(te)}}let j="input.type";return(f.composing||f.inputState.compositionPendingChange&&f.inputState.compositionEndedAt>Date.now()-50)&&(f.inputState.compositionPendingChange=!1,j+=".compose",f.inputState.compositionFirstChange&&(j+=".start",f.inputState.compositionFirstChange=!1)),m.update(l,{userEvent:j,scrollIntoView:!0})}function za(f,e,i,l){let m=Math.min(f.length,e.length),S=0;for(;S<m&&f.charCodeAt(S)==e.charCodeAt(S);)S++;if(S==m&&f.length==e.length)return null;let j=f.length,Y=e.length;for(;j>0&&Y>0&&f.charCodeAt(j-1)==e.charCodeAt(Y-1);)j--,Y--;if(l=="end"){let te=Math.max(0,S-Math.min(j,Y));i-=j+te-S}if(j<S&&f.length<e.length){let te=i<=S&&i>=j?S-i:0;S-=te,Y=S+(Y-j),j=S}else if(Y<S){let te=i<=S&&i>=Y?S-i:0;S-=te,j=S+(j-Y),Y=S}return{from:S,toA:j,toB:Y}}function vu(f){let e=[];if(f.root.activeElement!=f.contentDOM)return e;let{anchorNode:i,anchorOffset:l,focusNode:m,focusOffset:S}=f.observer.selectionRange;return i&&(e.push(new Jd(i,l)),(m!=i||S!=l)&&e.push(new Jd(m,S))),e}function ju(f,e){if(f.length==0)return null;let i=f[0].pos,l=f.length==2?f[1].pos:i;return i>-1&&l>-1?he.single(i+e,l+e):null}const Xd={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},gh=go.ie&&go.ie_version<=11;class Dd{constructor(e){this.view=e,this.active=!1,this.selectionRange=new pr,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(i=>{for(let l of i)this.queue.push(l);(go.ie&&go.ie_version<=11||go.ios&&e.composing)&&i.some(l=>l.type=="childList"&&l.removedNodes.length||l.type=="characterData"&&l.oldValue.length>l.target.nodeValue.length)?this.flushSoon():this.flush()}),gh&&(this.onCharData=i=>{this.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var i;((i=this.view.docView)===null||i===void 0?void 0:i.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM),this.resizeContent=new ResizeObserver(()=>this.view.requestMeasure()),this.resizeContent.observe(e.contentDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(i=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),i.length>0&&i[i.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(i=>{i.length>0&&i[i.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((i,l)=>i!=e[l]))){this.gapIntersection.disconnect();for(let i of e)this.gapIntersection.observe(i);this.gaps=e}}onSelectionChange(e){let i=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:l}=this,m=this.selectionRange;if(l.state.facet(Tc)?l.root.activeElement!=this.dom:!Na(l.dom,m))return;let S=m.anchorNode&&l.docView.nearest(m.anchorNode);if(S&&S.ignoreEvent(e)){i||(this.selectionChanged=!1);return}(go.ie&&go.ie_version<=11||go.android&&go.chrome)&&!l.state.selection.main.empty&&m.focusNode&&Rl(m.focusNode,m.focusOffset,m.anchorNode,m.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,i=go.safari&&e.root.nodeType==11&&Il(this.dom.ownerDocument)==this.dom&&Bh(this.view)||So(e.root);if(!i||this.selectionRange.eq(i))return!1;let l=Na(this.dom,i);return l&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&Ut(this.dom,i)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(i),l&&(this.selectionChanged=!0),!0)}setSelectionRange(e,i){this.selectionRange.set(e.node,e.offset,i.node,i.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,i=null;for(let l=this.dom;l;)if(l.nodeType==1)!i&&e<this.scrollTargets.length&&this.scrollTargets[e]==l?e++:i||(i=this.scrollTargets.slice(0,e)),i&&i.push(l),l=l.assignedSlot||l.parentNode;else if(l.nodeType==11)l=l.host;else break;if(e<this.scrollTargets.length&&!i&&(i=this.scrollTargets.slice(0,e)),i){for(let l of this.scrollTargets)l.removeEventListener("scroll",this.onScroll);for(let l of this.scrollTargets=i)l.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,Xd),gh&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),gh&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,i){var l;if(!this.delayedAndroidKey){let m=()=>{let S=this.delayedAndroidKey;S&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=S.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&S.force&&Ue(this.dom,S.key,S.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(m)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:i,force:this.lastChange<Date.now()-50||!!(!((l=this.delayedAndroidKey)===null||l===void 0)&&l.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let i=-1,l=-1,m=!1;for(let S of e){let j=this.readMutation(S);j&&(j.typeOver&&(m=!0),i==-1?{from:i,to:l}=j:(i=Math.min(j.from,i),l=Math.max(j.to,l)))}return{from:i,to:l,typeOver:m}}readChange(){let{from:e,to:i,typeOver:l}=this.processRecords(),m=this.selectionChanged&&Na(this.dom,this.selectionRange);if(e<0&&!m)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let S=new Lh(this.view,e,i,l);return this.view.docView.domChanged={newSel:S.newSel?S.newSel.main:null},S}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let i=this.readChange();if(!i)return this.view.requestMeasure(),!1;let l=this.view.state,m=jh(this.view,i);return this.view.state==l&&this.view.update([]),m}readMutation(e){let i=this.view.docView.nearest(e.target);if(!i||i.ignoreMutation(e))return null;if(i.markDirty(e.type=="attributes"),e.type=="attributes"&&(i.flags|=4),e.type=="childList"){let l=Id(i,e.previousSibling||e.target.previousSibling,-1),m=Id(i,e.nextSibling||e.target.nextSibling,1);return{from:l?i.posAfter(l):i.posAtStart,to:m?i.posBefore(m):i.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:i.posAtStart,to:i.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,i,l,m;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(i=this.gapIntersection)===null||i===void 0||i.disconnect(),(l=this.resizeScroll)===null||l===void 0||l.disconnect(),(m=this.resizeContent)===null||m===void 0||m.disconnect();for(let S of this.scrollTargets)S.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function Id(f,e,i){for(;e;){let l=$n.get(e);if(l&&l.parent==f)return l;let m=e.parentNode;e=m!=f.dom?m:i>0?e.nextSibling:e.previousSibling}return null}function Bh(f){let e=null;function i(te){te.preventDefault(),te.stopImmediatePropagation(),e=te.getTargetRanges()[0]}if(f.contentDOM.addEventListener("beforeinput",i,!0),f.dom.ownerDocument.execCommand("indent"),f.contentDOM.removeEventListener("beforeinput",i,!0),!e)return null;let l=e.startContainer,m=e.startOffset,S=e.endContainer,j=e.endOffset,Y=f.docView.domAtPos(f.state.selection.main.anchor);return Rl(Y.node,Y.offset,S,j)&&([l,m,S,j]=[S,j,l,m]),{anchorNode:l,anchorOffset:m,focusNode:S,focusOffset:j}}class yo{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM);let{dispatch:i}=e;this.dispatchTransactions=e.dispatchTransactions||i&&(l=>l.forEach(m=>i(m,this)))||(l=>this.update(l)),this.dispatch=this.dispatch.bind(this),this._root=e.root||He(e.parent)||document,this.viewState=new ho(e.state||Io.create(e)),this.plugins=this.state.facet(sl).map(l=>new xs(l));for(let l of this.plugins)l.update(this);this.observer=new Dd(this),this.inputState=new uu(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Br(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}dispatch(...e){let i=e.length==1&&e[0]instanceof Qr?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(i,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let i=!1,l=!1,m,S=this.state;for(let rn of e){if(rn.startState!=S)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");S=rn.state}if(this.destroyed){this.viewState.state=S;return}let j=this.hasFocus,Y=0,te=null;e.some(rn=>rn.annotation(ma))?(this.inputState.notifiedFocused=j,Y=1):j!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=j,te=oa(S,j),te||(Y=1));let Ee=this.observer.delayedAndroidKey,Se=null;if(Ee?(this.observer.clearDelayedAndroidKey(),Se=this.observer.readChange(),(Se&&!this.state.doc.eq(S.doc)||!this.state.selection.eq(S.selection))&&(Se=null)):this.observer.clear(),S.facet(Io.phrases)!=this.state.facet(Io.phrases))return this.setState(S);m=kl.create(this,S,e),m.flags|=Y;let Tt=this.viewState.scrollTarget;try{this.updateState=2;for(let rn of e){if(Tt&&(Tt=Tt.map(rn.changes)),rn.scrollIntoView){let{main:Nn}=rn.state.selection;Tt=new jc(Nn.empty?Nn:he.cursor(Nn.head,Nn.head>Nn.anchor?-1:1))}for(let Nn of rn.effects)Nn.is(Fa)&&(Tt=Nn.value)}this.viewState.update(m,Tt),this.bidiCache=Vc.update(this.bidiCache,m.changes),m.empty||(this.updatePlugins(m),this.inputState.update(m)),i=this.docView.update(m),this.state.facet(Hs)!=this.styleModules&&this.mountStyles(),l=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(i,e.some(rn=>rn.isUserEvent("select.pointer")))}finally{this.updateState=0}if(m.startState.facet(sa)!=m.state.facet(sa)&&(this.viewState.mustMeasureContent=!0),(i||l||Tt||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!m.empty)for(let rn of this.state.facet(ol))rn(m);(te||Se)&&Promise.resolve().then(()=>{te&&this.state==te.startState&&this.dispatch(te),Se&&!jh(this,Se)&&Ee.force&&Ue(this.contentDOM,Ee.key,Ee.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let i=this.hasFocus;try{for(let l of this.plugins)l.destroy(this);this.viewState=new ho(e),this.plugins=e.facet(sl).map(l=>new xs(l)),this.pluginMap.clear();for(let l of this.plugins)l.update(this);this.docView=new Br(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}i&&this.focus(),this.requestMeasure()}updatePlugins(e){let i=e.startState.facet(sl),l=e.state.facet(sl);if(i!=l){let m=[];for(let S of l){let j=i.indexOf(S);if(j<0)m.push(new xs(S));else{let Y=this.plugins[j];Y.mustUpdate=e,m.push(Y)}}for(let S of this.plugins)S.mustUpdate!=e&&S.destroy(this);this.plugins=m,this.pluginMap.clear()}else for(let m of this.plugins)m.mustUpdate=e;for(let m=0;m<this.plugins.length;m++)this.plugins[m].update(this);i!=l&&this.inputState.ensureHandlers(this.plugins)}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let i=null,l=this.scrollDOM,m=l.scrollTop*this.scaleY,{scrollAnchorPos:S,scrollAnchorHeight:j}=this.viewState;Math.abs(m-this.viewState.scrollTop)>1&&(j=-1),this.viewState.scrollAnchorHeight=-1;try{for(let Y=0;;Y++){if(j<0)if(en(l))S=-1,j=this.viewState.heightMap.height;else{let Nn=this.viewState.scrollAnchorAt(m);S=Nn.from,j=Nn.top}this.updateState=1;let te=this.viewState.measure(this);if(!te&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(Y>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let Ee=[];te&4||([this.measureRequests,Ee]=[Ee,this.measureRequests]);let Se=Ee.map(Nn=>{try{return Nn.read(this)}catch(sr){return Go(this.state,sr),Sl}}),Tt=kl.create(this,this.state,[]),rn=!1;Tt.flags|=te,i?i.flags|=te:i=Tt,this.updateState=2,Tt.empty||(this.updatePlugins(Tt),this.inputState.update(Tt),this.updateAttrs(),rn=this.docView.update(Tt));for(let Nn=0;Nn<Ee.length;Nn++)if(Se[Nn]!=Sl)try{let sr=Ee[Nn];sr.write&&sr.write(Se[Nn],this)}catch(sr){Go(this.state,sr)}if(rn&&this.docView.updateSelection(!0),!Tt.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null;continue}else{let sr=(S<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(S).top)-j;if(sr>1||sr<-1){m=m+sr,l.scrollTop=m/this.scaleY,j=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(i&&!i.empty)for(let Y of this.state.facet(ol))Y(i)}get themeClasses(){return Ih+" "+(this.state.facet(vl)?Rh:mh)+" "+this.state.facet(sa)}updateAttrs(){let e=vh(this,cs,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),i={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Tc)?"true":"false",class:"cm-content",style:`${go.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(i["aria-readonly"]="true"),vh(this,hs,i);let l=this.observer.ignore(()=>{let m=Kl(this.contentDOM,this.contentAttrs,i),S=Kl(this.dom,this.editorAttrs,e);return m||S});return this.editorAttrs=e,this.contentAttrs=i,l}showAnnouncements(e){let i=!0;for(let l of e)for(let m of l.effects)if(m.is(yo.announce)){i&&(this.announceDOM.textContent=""),i=!1;let S=this.announceDOM.appendChild(document.createElement("div"));S.textContent=m.value}}mountStyles(){this.styleModules=this.state.facet(Hs);let e=this.state.facet(yo.cspNonce);Lo.mount(this.root,this.styleModules.concat(ef).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let i=0;i<this.measureRequests.length;i++)if(this.measureRequests[i].key===e.key){this.measureRequests[i]=e;return}}this.measureRequests.push(e)}}plugin(e){let i=this.pluginMap.get(e);return(i===void 0||i&&i.spec!=e)&&this.pluginMap.set(e,i=this.plugins.find(l=>l.spec==e)||null),i&&i.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,i,l){return Uu(this,e,Ad(this,e,i,l))}moveByGroup(e,i){return Uu(this,e,Ad(this,e,i,l=>Qc(this,e.head,l)))}moveToLineBoundary(e,i,l=!0){return gl(this,e,i,l)}moveVertically(e,i,l){return Uu(this,e,cu(this,e,i,l))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,i=0){return this.docView.posFromDOM(e,i)}posAtCoords(e,i=!0){return this.readMeasured(),$l(this,e,i)}coordsAtPos(e,i=1){this.readMeasured();let l=this.docView.coordsAt(e,i);if(!l||l.left==l.right)return l;let m=this.state.doc.lineAt(e),S=this.bidiSpans(m),j=S[Va.find(S,e-m.from,-1,i)];return Xn(l,j.dir==la.LTR==i>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(jn)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>lc)return or(e.length);let i=this.textDirectionAt(e.from),l;for(let S of this.bidiCache)if(S.from==e.from&&S.dir==i&&(S.fresh||Ca(S.isolates,l=$a(this,e.from,e.to))))return S.order;l||(l=$a(this,e.from,e.to));let m=Un(e.text,i,l);return this.bidiCache.push(new Vc(e.from,e.to,i,l,!0,m)),m}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||go.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{Lt(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,i={}){return Fa.of(new jc(typeof e=="number"?he.cursor(e):e,i.y,i.x,i.yMargin,i.xMargin))}static domEventHandlers(e){return $s.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return $s.define(()=>({}),{eventObservers:e})}static theme(e,i){let l=Lo.newName(),m=[sa.of(l),Hs.of(Zu(`.${l}`,e))];return i&&i.dark&&m.push(vl.of(!0)),m}static baseTheme(e){return ar.lowest(Hs.of(Zu("."+Ih,e,Lu)))}static findFromDOM(e){var i;let l=e.querySelector(".cm-content"),m=l&&$n.get(l)||$n.get(e);return((i=m?.rootView)===null||i===void 0?void 0:i.view)||null}}yo.styleModule=Hs,yo.inputHandler=gc,yo.focusChangeEffect=Fl,yo.perLineTextDirection=jn,yo.exceptionSink=mc,yo.updateListener=ol,yo.editable=Tc,yo.mouseSelectionStyle=zu,yo.dragMovesSelection=Lc,yo.clickAddsSelectionRange=au,yo.decorations=Gl,yo.atomicRanges=As,yo.bidiIsolatedRanges=fs,yo.scrollMargins=al,yo.darkTheme=vl,yo.cspNonce=St.define({combine:f=>f.length?f[0]:""}),yo.contentAttributes=hs,yo.editorAttributes=cs,yo.lineWrapping=yo.contentAttributes.of({class:"cm-lineWrapping"}),yo.announce=Nr.define();const lc=4096,Sl={};class Vc{constructor(e,i,l,m,S,j){this.from=e,this.to=i,this.dir=l,this.isolates=m,this.fresh=S,this.order=j}static update(e,i){if(i.empty&&!e.some(S=>S.fresh))return e;let l=[],m=e.length?e[e.length-1].dir:la.LTR;for(let S=Math.max(0,e.length-10);S<e.length;S++){let j=e[S];j.dir==m&&!i.touchesRange(j.from,j.to)&&l.push(new Vc(i.mapPos(j.from,1),i.mapPos(j.to,-1),j.dir,j.isolates,!1,j.order))}return l}}function vh(f,e,i){for(let l=f.state.facet(e),m=l.length-1;m>=0;m--){let S=l[m],j=typeof S=="function"?S(f):S;j&&nc(j,i)}return i}const tf=go.mac?"mac":go.windows?"win":go.linux?"linux":"key";function zc(f,e){const i=f.split(/-(?!$)/);let l=i[i.length-1];l=="Space"&&(l=" ");let m,S,j,Y;for(let te=0;te<i.length-1;++te){const Ee=i[te];if(/^(cmd|meta|m)$/i.test(Ee))Y=!0;else if(/^a(lt)?$/i.test(Ee))m=!0;else if(/^(c|ctrl|control)$/i.test(Ee))S=!0;else if(/^s(hift)?$/i.test(Ee))j=!0;else if(/^mod$/i.test(Ee))e=="mac"?Y=!0:S=!0;else throw new Error("Unrecognized modifier name: "+Ee)}return m&&(l="Alt-"+l),S&&(l="Ctrl-"+l),Y&&(l="Meta-"+l),j&&(l="Shift-"+l),l}function Rd(f,e,i){return e.altKey&&(f="Alt-"+f),e.ctrlKey&&(f="Ctrl-"+f),e.metaKey&&(f="Meta-"+f),i!==!1&&e.shiftKey&&(f="Shift-"+f),f}const Nh=ar.default(yo.domEventHandlers({keydown(f,e){return Zo(bh(e.state),f,e,"editor")}})),Ld=St.define({enables:Nh}),cc=new WeakMap;function bh(f){let e=f.facet(Ld),i=cc.get(e);return i||cc.set(e,i=bd(e.reduce((l,m)=>l.concat(m),[]))),i}function Fh(f,e,i){return Zo(bh(f.state),e,f,i)}let qc=null;const vd=4e3;function bd(f,e=tf){let i=Object.create(null),l=Object.create(null),m=(j,Y)=>{let te=l[j];if(te==null)l[j]=Y;else if(te!=Y)throw new Error("Key binding "+j+" is used both as a regular binding and as a multi-stroke prefix")},S=(j,Y,te,Ee,Se)=>{var Tt,rn;let Nn=i[j]||(i[j]=Object.create(null)),sr=Y.split(/ (?!$)/).map(_i=>zc(_i,e));for(let _i=1;_i<sr.length;_i++){let ro=sr.slice(0,_i).join(" ");m(ro,!0),Nn[ro]||(Nn[ro]={preventDefault:!0,stopPropagation:!1,run:[To=>{let Zi=qc={view:To,prefix:ro,scope:j};return setTimeout(()=>{qc==Zi&&(qc=null)},vd),!0}]})}let Gr=sr.join(" ");m(Gr,!1);let Zr=Nn[Gr]||(Nn[Gr]={preventDefault:!1,stopPropagation:!1,run:((rn=(Tt=Nn._any)===null||Tt===void 0?void 0:Tt.run)===null||rn===void 0?void 0:rn.slice())||[]});te&&Zr.run.push(te),Ee&&(Zr.preventDefault=!0),Se&&(Zr.stopPropagation=!0)};for(let j of f){let Y=j.scope?j.scope.split(" "):["editor"];if(j.any)for(let Ee of Y){let Se=i[Ee]||(i[Ee]=Object.create(null));Se._any||(Se._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let Tt in Se)Se[Tt].run.push(j.any)}let te=j[e]||j.key;if(te)for(let Ee of Y)S(Ee,te,j.run,j.preventDefault,j.stopPropagation),j.shift&&S(Ee,"Shift-"+te,j.shift,j.preventDefault,j.stopPropagation)}return i}function Zo(f,e,i,l){let m=Ga(e),S=Gn(m,0),j=br(S)==m.length&&m!=" ",Y="",te=!1,Ee=!1,Se=!1;qc&&qc.view==i&&qc.scope==l&&(Y=qc.prefix+" ",Cl.indexOf(e.keyCode)<0&&(Ee=!0,qc=null));let Tt=new Set,rn=Zr=>{if(Zr){for(let _i of Zr.run)if(!Tt.has(_i)&&(Tt.add(_i),_i(i,e)))return Zr.stopPropagation&&(Se=!0),!0;Zr.preventDefault&&(Zr.stopPropagation&&(Se=!0),Ee=!0)}return!1},Nn=f[l],sr,Gr;return Nn&&(rn(Nn[Y+Rd(m,e,!j)])?te=!0:j&&(e.altKey||e.metaKey||e.ctrlKey)&&!(go.windows&&e.ctrlKey&&e.altKey)&&(sr=ta[e.keyCode])&&sr!=m?(rn(Nn[Y+Rd(sr,e,!0)])||e.shiftKey&&(Gr=Oa[e.keyCode])!=m&&Gr!=sr&&rn(Nn[Y+Rd(Gr,e,!1)]))&&(te=!0):j&&e.shiftKey&&rn(Nn[Y+Rd(m,e,!0)])&&(te=!0),!te&&rn(Nn._any)&&(te=!0)),Ee&&(te=!0),te&&Se&&e.stopPropagation(),te}class bu{constructor(e,i,l,m,S){this.className=e,this.left=i,this.top=l,this.width=m,this.height=S}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,i){return i.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,i,l){if(l.empty){let m=e.coordsAtPos(l.head,l.assoc||1);if(!m)return[];let S=qd(e);return[new bu(i,m.left-S.left,m.top-S.top,null,m.bottom-m.top)]}else return nf(e,i,l)}}function qd(f){let e=f.scrollDOM.getBoundingClientRect();return{left:(f.textDirection==la.LTR?e.left:e.right-f.scrollDOM.clientWidth*f.scaleX)-f.scrollDOM.scrollLeft*f.scaleX,top:e.top-f.scrollDOM.scrollTop*f.scaleY}}function Ku(f,e,i){let l=he.cursor(e);return{from:Math.max(i.from,f.moveToLineBoundary(l,!1,!0).from),to:Math.min(i.to,f.moveToLineBoundary(l,!0,!0).from),type:il.Text}}function nf(f,e,i){if(i.to<=f.viewport.from||i.from>=f.viewport.to)return[];let l=Math.max(i.from,f.viewport.from),m=Math.min(i.to,f.viewport.to),S=f.textDirection==la.LTR,j=f.contentDOM,Y=j.getBoundingClientRect(),te=qd(f),Ee=j.querySelector(".cm-line"),Se=Ee&&window.getComputedStyle(Ee),Tt=Y.left+(Se?parseInt(Se.paddingLeft)+Math.min(0,parseInt(Se.textIndent)):0),rn=Y.right-(Se?parseInt(Se.paddingRight):0),Nn=Yc(f,l),sr=Yc(f,m),Gr=Nn.type==il.Text?Nn:null,Zr=sr.type==il.Text?sr:null;if(Gr&&(f.lineWrapping||Nn.widgetLineBreaks)&&(Gr=Ku(f,l,Gr)),Zr&&(f.lineWrapping||sr.widgetLineBreaks)&&(Zr=Ku(f,m,Zr)),Gr&&Zr&&Gr.from==Zr.from)return ro(To(i.from,i.to,Gr));{let io=Gr?To(i.from,null,Gr):Zi(Nn,!1),po=Zr?To(null,i.to,Zr):Zi(sr,!0),Mo=[];return(Gr||Nn).to<(Zr||sr).from-(Gr&&Zr?1:0)||Nn.widgetLineBreaks>1&&io.bottom+f.defaultLineHeight/2<po.top?Mo.push(_i(Tt,io.bottom,rn,po.top)):io.bottom<po.top&&f.elementAtHeight((io.bottom+po.top)/2).type==il.Text&&(io.bottom=po.top=(io.bottom+po.top)/2),ro(io).concat(Mo).concat(ro(po))}function _i(io,po,Mo,ks){return new bu(e,io-te.left,po-te.top-.01,Mo-io,ks-po+.01)}function ro({top:io,bottom:po,horizontal:Mo}){let ks=[];for(let Xo=0;Xo<Mo.length;Xo+=2)ks.push(_i(Mo[Xo],io,Mo[Xo+1],po));return ks}function To(io,po,Mo){let ks=1e9,Xo=-1e9,us=[];function ja(Vu,Au,Oc,Pc,ou){let Hl=f.coordsAtPos(Vu,Vu==Mo.to?-2:2),Wc=f.coordsAtPos(Oc,Oc==Mo.from?2:-2);!Hl||!Wc||(ks=Math.min(Hl.top,Wc.top,ks),Xo=Math.max(Hl.bottom,Wc.bottom,Xo),ou==la.LTR?us.push(S&&Au?Tt:Hl.left,S&&Pc?rn:Wc.right):us.push(!S&&Pc?Tt:Wc.left,!S&&Au?rn:Hl.right))}let Ul=io??Mo.from,iu=po??Mo.to;for(let Vu of f.visibleRanges)if(Vu.to>Ul&&Vu.from<iu)for(let Au=Math.max(Vu.from,Ul),Oc=Math.min(Vu.to,iu);;){let Pc=f.state.doc.lineAt(Au);for(let ou of f.bidiSpans(Pc)){let Hl=ou.from+Pc.from,Wc=ou.to+Pc.from;if(Hl>=Oc)break;Wc>Au&&ja(Math.max(Hl,Au),io==null&&Hl<=Ul,Math.min(Wc,Oc),po==null&&Wc>=iu,ou.dir)}if(Au=Pc.to+1,Au>=Oc)break}return us.length==0&&ja(Ul,io==null,iu,po==null,f.textDirection),{top:ks,bottom:Xo,horizontal:us}}function Zi(io,po){let Mo=Y.top+(po?io.top:io.bottom);return{top:Mo,bottom:Mo,horizontal:[]}}}function pf(f,e){return f.constructor==e.constructor&&f.eq(e)}class rf{constructor(e,i){this.view=e,this.layer=i,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),i.above&&this.dom.classList.add("cm-layer-above"),i.class&&this.dom.classList.add(i.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),i.mount&&i.mount(this.dom,e)}update(e){e.startState.facet(Ua)!=e.state.facet(Ua)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}setOrder(e){let i=0,l=e.facet(Ua);for(;i<l.length&&l[i]!=this.layer;)i++;this.dom.style.zIndex=String((this.layer.above?150:-1)-i)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:i}=this.view;(e!=this.scaleX||i!=this.scaleY)&&(this.scaleX=e,this.scaleY=i,this.dom.style.transform=`scale(${1/e}, ${1/i})`)}draw(e){if(e.length!=this.drawn.length||e.some((i,l)=>!pf(i,this.drawn[l]))){let i=this.dom.firstChild,l=0;for(let m of e)m.update&&i&&m.constructor&&this.drawn[l].constructor&&m.update(i,this.drawn[l])?(i=i.nextSibling,l++):this.dom.insertBefore(m.draw(),i);for(;i;){let m=i.nextSibling;i.remove(),i=m}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const Ua=St.define();function xt(f){return[$s.define(e=>new rf(e,f)),Ua.of(f)]}const Dn=!go.ios,er=St.define({combine(f){return xr(f,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,i)=>Math.min(e,i),drawRangeCursor:(e,i)=>e||i})}});function Ar(f={}){return[er.of(f),Ti,$o,Js,Qa.of(!0)]}function Rr(f){return f.facet(er)}function hi(f){return f.startState.facet(er)!=f.state.facet(er)}const Ti=xt({above:!0,markers(f){let{state:e}=f,i=e.facet(er),l=[];for(let m of e.selection.ranges){let S=m==e.selection.main;if(m.empty?!S||Dn:i.drawRangeCursor){let j=S?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",Y=m.empty?m:he.cursor(m.head,m.head>m.anchor?-1:1);for(let te of bu.forRange(f,j,Y))l.push(te)}}return l},update(f,e){f.transactions.some(l=>l.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let i=hi(f);return i&&ao(f.state,e),f.docChanged||f.selectionSet||i},mount(f,e){ao(e.state,f)},class:"cm-cursorLayer"});function ao(f,e){e.style.animationDuration=f.facet(er).cursorBlinkRate+"ms"}const $o=xt({above:!1,markers(f){return f.state.selection.ranges.map(e=>e.empty?[]:bu.forRange(f,"cm-selectionBackground",e)).reduce((e,i)=>e.concat(i))},update(f,e){return f.docChanged||f.selectionSet||f.viewportChanged||hi(f)},class:"cm-selectionLayer"}),wo={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};Dn&&(wo[".cm-line"].caretColor="transparent !important");const Js=ar.highest(yo.theme(wo)),Bs=Nr.define({map(f,e){return f==null?null:e.mapPos(f)}}),mi=Sn.define({create(){return null},update(f,e){return f!=null&&(f=e.changes.mapPos(f)),e.effects.reduce((i,l)=>l.is(Bs)?l.value:i,f)}}),Sa=$s.fromClass(class{constructor(f){this.view=f,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(f){var e;let i=f.state.field(mi);i==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(f.startState.field(mi)!=i||f.docChanged||f.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:f}=this,e=f.state.field(mi),i=e!=null&&f.coordsAtPos(e);if(!i)return null;let l=f.scrollDOM.getBoundingClientRect();return{left:i.left-l.left+f.scrollDOM.scrollLeft*f.scaleX,top:i.top-l.top+f.scrollDOM.scrollTop*f.scaleY,height:i.bottom-i.top}}drawCursor(f){if(this.cursor){let{scaleX:e,scaleY:i}=this.view;f?(this.cursor.style.left=f.left/e+"px",this.cursor.style.top=f.top/i+"px",this.cursor.style.height=f.height/i+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(f){this.view.state.field(mi)!=f&&this.view.dispatch({effects:Bs.of(f)})}},{eventObservers:{dragover(f){this.setDropPos(this.view.posAtCoords({x:f.clientX,y:f.clientY}))},dragleave(f){(f.target==this.view.contentDOM||!this.view.contentDOM.contains(f.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function uc(){return[mi,Sa]}function Xa(f,e,i,l,m){e.lastIndex=0;for(let S=f.iterRange(i,l),j=i,Y;!S.next().done;j+=S.value.length)if(!S.lineBreak)for(;Y=e.exec(S.value);)m(j+Y.index,Y)}function qa(f,e){let i=f.visibleRanges;if(i.length==1&&i[0].from==f.viewport.from&&i[0].to==f.viewport.to)return i;let l=[];for(let{from:m,to:S}of i)m=Math.max(f.state.doc.lineAt(m).from,m-e),S=Math.min(f.state.doc.lineAt(S).to,S+e),l.length&&l[l.length-1].to>=m?l[l.length-1].to=S:l.push({from:m,to:S});return l}class ga{constructor(e){const{regexp:i,decoration:l,decorate:m,boundary:S,maxLength:j=1e3}=e;if(!i.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=i,m)this.addMatch=(Y,te,Ee,Se)=>m(Se,Ee,Ee+Y[0].length,Y,te);else if(typeof l=="function")this.addMatch=(Y,te,Ee,Se)=>{let Tt=l(Y,te,Ee);Tt&&Se(Ee,Ee+Y[0].length,Tt)};else if(l)this.addMatch=(Y,te,Ee,Se)=>Se(Ee,Ee+Y[0].length,l);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=S,this.maxLength=j}createDeco(e){let i=new fa,l=i.add.bind(i);for(let{from:m,to:S}of qa(e,this.maxLength))Xa(e.state.doc,this.regexp,m,S,(j,Y)=>this.addMatch(Y,e,j,l));return i.finish()}updateDeco(e,i){let l=1e9,m=-1;return e.docChanged&&e.changes.iterChanges((S,j,Y,te)=>{te>e.view.viewport.from&&Y<e.view.viewport.to&&(l=Math.min(Y,l),m=Math.max(te,m))}),e.viewportChanged||m-l>1e3?this.createDeco(e.view):m>-1?this.updateRange(e.view,i.map(e.changes),l,m):i}updateRange(e,i,l,m){for(let S of e.visibleRanges){let j=Math.max(S.from,l),Y=Math.min(S.to,m);if(Y>j){let te=e.state.doc.lineAt(j),Ee=te.to<Y?e.state.doc.lineAt(Y):te,Se=Math.max(S.from,te.from),Tt=Math.min(S.to,Ee.to);if(this.boundary){for(;j>te.from;j--)if(this.boundary.test(te.text[j-1-te.from])){Se=j;break}for(;Y<Ee.to;Y++)if(this.boundary.test(Ee.text[Y-Ee.from])){Tt=Y;break}}let rn=[],Nn,sr=(Gr,Zr,_i)=>rn.push(_i.range(Gr,Zr));if(te==Ee)for(this.regexp.lastIndex=Se-te.from;(Nn=this.regexp.exec(te.text))&&Nn.index<Tt-te.from;)this.addMatch(Nn,e,Nn.index+te.from,sr);else Xa(e.state.doc,this.regexp,Se,Tt,(Gr,Zr)=>this.addMatch(Zr,e,Gr,sr));i=i.update({filterFrom:Se,filterTo:Tt,filter:(Gr,Zr)=>Gr<Se||Zr>Tt,add:rn})}}return i}}const _c=/x/.unicode!=null?"gu":"g",eh=new RegExp(`[\0-\b
-\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`,_c),ya={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let va=null;function of(){var f;if(va==null&&typeof document<"u"&&document.body){let e=document.body.style;va=((f=e.tabSize)!==null&&f!==void 0?f:e.MozTabSize)!=null}return va||!1}const yd=St.define({combine(f){let e=xr(f,{render:null,specialChars:eh,addSpecialChars:null});return(e.replaceTabs=!of())&&(e.specialChars=new RegExp("	|"+e.specialChars.source,_c)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,_c)),e}});function $h(f={}){return[yd.of(f),Uc()]}let fl=null;function Uc(){return fl||(fl=$s.fromClass(class{constructor(f){this.view=f,this.decorations=ko.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(f.state.facet(yd)),this.decorations=this.decorator.createDeco(f)}makeDecorator(f){return new ga({regexp:f.specialChars,decoration:(e,i,l)=>{let{doc:m}=i.state,S=Gn(e[0],0);if(S==9){let j=m.lineAt(l),Y=i.state.tabSize,te=co(j.text,Y,l-j.from);return ko.replace({widget:new Al((Y-te%Y)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[S]||(this.decorationCache[S]=ko.replace({widget:new Vh(f,S)}))},boundary:f.replaceTabs?void 0:/[^]/})}update(f){let e=f.state.facet(yd);f.startState.facet(yd)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(f.view)):this.decorations=this.decorator.updateDeco(f,this.decorations)}},{decorations:f=>f.decorations}))}const Ka="\u2022";function Gu(f){return f>=32?Ka:f==10?"\u2424":String.fromCharCode(9216+f)}class Vh extends Bl{constructor(e,i){super(),this.options=e,this.code=i}eq(e){return e.code==this.code}toDOM(e){let i=Gu(this.code),l=e.state.phrase("Control character")+" "+(ya[this.code]||"0x"+this.code.toString(16)),m=this.options.render&&this.options.render(this.code,l,i);if(m)return m;let S=document.createElement("span");return S.textContent=i,S.title=l,S.setAttribute("aria-label",l),S.className="cm-specialChar",S}ignoreEvent(){return!1}}class Al extends Bl{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="	",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}const jd=null;function yu(){return[jd,hs.of(f=>{var e;return((e=f.plugin(jd))===null||e===void 0?void 0:e.attrs)||null})]}function wu(){return Bd}const Yu=ko.line({class:"cm-activeLine"}),Bd=$s.fromClass(class{constructor(f){this.decorations=this.getDeco(f)}update(f){(f.docChanged||f.selectionSet)&&(this.decorations=this.getDeco(f.view))}getDeco(f){let e=-1,i=[];for(let l of f.state.selection.ranges){let m=f.lineBlockAt(l.head);m.from>e&&(i.push(Yu.range(m.from)),e=m.from)}return ko.set(i)}},{decorations:f=>f.decorations});class wd extends Bl{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let i=e.firstChild?xl(e.firstChild):[];if(!i.length)return null;let l=window.getComputedStyle(e.parentNode),m=Xn(i[0],l.direction!="rtl"),S=parseInt(l.lineHeight);return m.bottom-m.top>S*1.5?{left:m.left,right:m.right,top:m.top,bottom:m.top+S}:m}ignoreEvent(){return!1}}function sf(f){return $s.fromClass(class{constructor(e){this.view=e,this.placeholder=f?ko.set([ko.widget({widget:new wd(f),side:1}).range(0)]):ko.none}get decorations(){return this.view.state.doc.length?ko.none:this.placeholder}},{decorations:e=>e.decorations})}const yh=2e3;function Qu(f,e,i){let l=Math.min(e.line,i.line),m=Math.max(e.line,i.line),S=[];if(e.off>yh||i.off>yh||e.col<0||i.col<0){let j=Math.min(e.off,i.off),Y=Math.max(e.off,i.off);for(let te=l;te<=m;te++){let Ee=f.doc.line(te);Ee.length<=Y&&S.push(he.range(Ee.from+j,Ee.to+Y))}}else{let j=Math.min(e.col,i.col),Y=Math.max(e.col,i.col);for(let te=l;te<=m;te++){let Ee=f.doc.line(te),Se=Oo(Ee.text,j,f.tabSize,!0);if(Se<0)S.push(he.cursor(Ee.to));else{let Tt=Oo(Ee.text,Y,f.tabSize);S.push(he.range(Ee.from+Se,Ee.from+Tt))}}}return S}function wh(f,e){let i=f.coordsAtPos(f.viewport.from);return i?Math.round(Math.abs((i.left-e)/f.defaultCharacterWidth)):-1}function dc(f,e){let i=f.posAtCoords({x:e.clientX,y:e.clientY},!1),l=f.state.doc.lineAt(i),m=i-l.from,S=m>yh?-1:m==l.length?wh(f,e.clientX):co(l.text,f.state.tabSize,i-l.from);return{line:l.number,col:S,off:m}}function bs(f,e){let i=dc(f,e),l=f.state.selection;return i?{update(m){if(m.docChanged){let S=m.changes.mapPos(m.startState.doc.line(i.line).from),j=m.state.doc.lineAt(S);i={line:j.number,col:i.col,off:Math.min(i.off,j.length)},l=l.map(m.changes)}},get(m,S,j){let Y=dc(f,m);if(!Y)return l;let te=Qu(f.state,i,Y);return te.length?j?he.create(te.concat(l.ranges)):he.create(te):l}}:null}function Ml(f){let e=f?.eventFilter||(i=>i.altKey&&i.button==0);return yo.mouseSelectionStyle.of((i,l)=>e(l)?bs(i,l):null)}const el={Alt:[18,f=>!!f.altKey],Control:[17,f=>!!f.ctrlKey],Shift:[16,f=>!!f.shiftKey],Meta:[91,f=>!!f.metaKey]},Ol={style:"cursor: crosshair"};function Ac(f={}){let[e,i]=el[f.key||"Alt"],l=$s.fromClass(class{constructor(m){this.view=m,this.isDown=!1}set(m){this.isDown!=m&&(this.isDown=m,this.view.update([]))}},{eventObservers:{keydown(m){this.set(m.keyCode==e||i(m))},keyup(m){(m.keyCode==e||!i(m))&&this.set(!1)},mousemove(m){this.set(i(m))}}});return[l,yo.contentAttributes.of(m=>{var S;return!((S=m.plugin(l))===null||S===void 0)&&S.isDown?Ol:null})]}const Ju="-10000px";class pl{constructor(e,i,l){this.facet=i,this.createTooltipView=l,this.input=e.state.facet(i),this.tooltips=this.input.filter(m=>m),this.tooltipViews=this.tooltips.map(l)}update(e,i){var l;let m=e.state.facet(this.facet),S=m.filter(te=>te);if(m===this.input){for(let te of this.tooltipViews)te.update&&te.update(e);return!1}let j=[],Y=i?[]:null;for(let te=0;te<S.length;te++){let Ee=S[te],Se=-1;if(Ee){for(let Tt=0;Tt<this.tooltips.length;Tt++){let rn=this.tooltips[Tt];rn&&rn.create==Ee.create&&(Se=Tt)}if(Se<0)j[te]=this.createTooltipView(Ee),Y&&(Y[te]=!!Ee.above);else{let Tt=j[te]=this.tooltipViews[Se];Y&&(Y[te]=i[Se]),Tt.update&&Tt.update(e)}}}for(let te of this.tooltipViews)j.indexOf(te)<0&&(te.dom.remove(),(l=te.destroy)===null||l===void 0||l.call(te));return i&&(Y.forEach((te,Ee)=>i[Ee]=te),i.length=Y.length),this.input=m,this.tooltips=S,this.tooltipViews=j,!0}}function _h(f={}){return th.of(f)}function _d(f){let{win:e}=f;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const th=St.define({combine:f=>{var e,i,l;return{position:go.ios?"absolute":((e=f.find(m=>m.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((i=f.find(m=>m.parent))===null||i===void 0?void 0:i.parent)||null,tooltipSpace:((l=f.find(m=>m.tooltipSpace))===null||l===void 0?void 0:l.tooltipSpace)||_d}}}),zh=new WeakMap,Xu=$s.fromClass(class{constructor(f){this.view=f,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=f.state.facet(th);this.position=e.position,this.parent=e.parent,this.classes=f.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new pl(f,vi,i=>this.createTooltip(i)),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(i=>{Date.now()>this.lastTransaction-50&&i.length>0&&i[i.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),f.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let f of this.manager.tooltipViews)this.intersectionObserver.observe(f.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(f){f.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(f,this.above);e&&this.observeIntersection();let i=e||f.geometryChanged,l=f.state.facet(th);if(l.position!=this.position&&!this.madeAbsolute){this.position=l.position;for(let m of this.manager.tooltipViews)m.dom.style.position=this.position;i=!0}if(l.parent!=this.parent){this.parent&&this.container.remove(),this.parent=l.parent,this.createContainer();for(let m of this.manager.tooltipViews)this.container.appendChild(m.dom);i=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);i&&this.maybeMeasure()}createTooltip(f){let e=f.create(this.view);if(e.dom.classList.add("cm-tooltip"),f.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let i=document.createElement("div");i.className="cm-tooltip-arrow",e.dom.appendChild(i)}return e.dom.style.position=this.position,e.dom.style.top=Ju,this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}destroy(){var f,e;this.view.win.removeEventListener("resize",this.measureSoon);for(let i of this.manager.tooltipViews)i.dom.remove(),(f=i.destroy)===null||f===void 0||f.call(i);this.parent&&this.container.remove(),(e=this.intersectionObserver)===null||e===void 0||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let f=this.view.dom.getBoundingClientRect(),e=1,i=1,l=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{offsetParent:m}=this.manager.tooltipViews[0].dom;l=!!(m&&m!=this.container.ownerDocument.body)}if(l||this.position=="absolute")if(this.parent){let m=this.parent.getBoundingClientRect();m.width&&m.height&&(e=m.width/this.parent.offsetWidth,i=m.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:i}=this.view.viewState);return{editor:f,parent:this.parent?this.container.getBoundingClientRect():f,pos:this.manager.tooltips.map((m,S)=>{let j=this.manager.tooltipViews[S];return j.getCoords?j.getCoords(m.pos):this.view.coordsAtPos(m.pos)}),size:this.manager.tooltipViews.map(({dom:m})=>m.getBoundingClientRect()),space:this.view.state.facet(th).tooltipSpace(this.view),scaleX:e,scaleY:i,makeAbsolute:l}}writeMeasure(f){var e;if(f.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let Y of this.manager.tooltipViews)Y.dom.style.position="absolute"}let{editor:i,space:l,scaleX:m,scaleY:S}=f,j=[];for(let Y=0;Y<this.manager.tooltips.length;Y++){let te=this.manager.tooltips[Y],Ee=this.manager.tooltipViews[Y],{dom:Se}=Ee,Tt=f.pos[Y],rn=f.size[Y];if(!Tt||Tt.bottom<=Math.max(i.top,l.top)||Tt.top>=Math.min(i.bottom,l.bottom)||Tt.right<Math.max(i.left,l.left)-.1||Tt.left>Math.min(i.right,l.right)+.1){Se.style.top=Ju;continue}let Nn=te.arrow?Ee.dom.querySelector(".cm-tooltip-arrow"):null,sr=Nn?7:0,Gr=rn.right-rn.left,Zr=(e=zh.get(Ee))!==null&&e!==void 0?e:rn.bottom-rn.top,_i=Ee.offset||af,ro=this.view.textDirection==la.LTR,To=rn.width>l.right-l.left?ro?l.left:l.right-rn.width:ro?Math.min(Tt.left-(Nn?14:0)+_i.x,l.right-Gr):Math.max(l.left,Tt.left-Gr+(Nn?14:0)-_i.x),Zi=this.above[Y];!te.strictSide&&(Zi?Tt.top-(rn.bottom-rn.top)-_i.y<l.top:Tt.bottom+(rn.bottom-rn.top)+_i.y>l.bottom)&&Zi==l.bottom-Tt.bottom>Tt.top-l.top&&(Zi=this.above[Y]=!Zi);let io=(Zi?Tt.top-l.top:l.bottom-Tt.bottom)-sr;if(io<Zr&&Ee.resize!==!1){if(io<this.view.defaultLineHeight){Se.style.top=Ju;continue}zh.set(Ee,Zr),Se.style.height=(Zr=io)/S+"px"}else Se.style.height&&(Se.style.height="");let po=Zi?Tt.top-Zr-sr-_i.y:Tt.bottom+sr+_i.y,Mo=To+Gr;if(Ee.overlap!==!0)for(let ks of j)ks.left<Mo&&ks.right>To&&ks.top<po+Zr&&ks.bottom>po&&(po=Zi?ks.top-Zr-2-sr:ks.bottom+sr+2);if(this.position=="absolute"?(Se.style.top=(po-f.parent.top)/S+"px",Se.style.left=(To-f.parent.left)/m+"px"):(Se.style.top=po/S+"px",Se.style.left=To/m+"px"),Nn){let ks=Tt.left+(ro?_i.x:-_i.x)-(To+14-7);Nn.style.left=ks/m+"px"}Ee.overlap!==!0&&j.push({left:To,top:po,right:Mo,bottom:po+Zr}),Se.classList.toggle("cm-tooltip-above",Zi),Se.classList.toggle("cm-tooltip-below",!Zi),Ee.positioned&&Ee.positioned(f.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let f of this.manager.tooltipViews)f.dom.style.top=Ju}},{eventObservers:{scroll(){this.maybeMeasure()}}}),xc=yo.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:`${7}px`,width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:`${7}px solid transparent`,borderRight:`${7}px solid transparent`},".cm-tooltip-above &":{bottom:`-${7}px`,"&:before":{borderTop:`${7}px solid #bbb`},"&:after":{borderTop:`${7}px solid #f5f5f5`,bottom:"1px"}},".cm-tooltip-below &":{top:`-${7}px`,"&:before":{borderBottom:`${7}px solid #bbb`},"&:after":{borderBottom:`${7}px solid #f5f5f5`,top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),af={x:0,y:0},vi=St.define({enables:[Xu,xc]}),bo=St.define();class jo{static create(e){return new jo(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new pl(e,bo,i=>this.createHostedView(i))}createHostedView(e){let i=e.create(this.view);return i.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(i.dom),this.mounted&&i.mount&&i.mount(this.view),i}mount(e){for(let i of this.manager.tooltipViews)i.mount&&i.mount(e);this.mounted=!0}positioned(e){for(let i of this.manager.tooltipViews)i.positioned&&i.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let i of this.manager.tooltipViews)(e=i.destroy)===null||e===void 0||e.call(i)}}const os=vi.compute([bo],f=>{let e=f.facet(bo).filter(i=>i);return e.length===0?null:{pos:Math.min(...e.map(i=>i.pos)),end:Math.max(...e.filter(i=>i.end!=null).map(i=>i.end)),create:jo.create,above:e[0].above,arrow:e.some(i=>i.arrow)}});class ys{constructor(e,i,l,m,S){this.view=e,this.source=i,this.field=l,this.setHover=m,this.hoverTime=S,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:i}=this,l=e.docView.nearest(i.target);if(!l)return;let m,S=1;if(l instanceof _a)m=l.posAtStart;else{if(m=e.posAtCoords(i),m==null)return;let Y=e.coordsAtPos(m);if(!Y||i.y<Y.top||i.y>Y.bottom||i.x<Y.left-e.defaultCharacterWidth||i.x>Y.right+e.defaultCharacterWidth)return;let te=e.bidiSpans(e.state.doc.lineAt(m)).find(Se=>Se.from<=m&&Se.to>=m),Ee=te&&te.dir==la.RTL?-1:1;S=i.x<Y.left?-Ee:Ee}let j=this.source(e,m,S);if(j?.then){let Y=this.pending={pos:m};j.then(te=>{this.pending==Y&&(this.pending=null,te&&e.dispatch({effects:this.setHover.of(te)}))},te=>Go(e.state,te,"hover tooltip"))}else j&&e.dispatch({effects:this.setHover.of(j)})}mousemove(e){var i;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let l=this.active;if(l&&!Ms(this.lastMove.target)||this.pending){let{pos:m}=l||this.pending,S=(i=l?.end)!==null&&i!==void 0?i:m;(m==S?this.view.posAtCoords(this.lastMove)!=m:!La(this.view,m,S,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1,this.active&&!Ms(e.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function Ms(f){for(let e=f;e;e=e.parentNode)if(e.nodeType==1&&e.classList.contains("cm-tooltip"))return!0;return!1}function La(f,e,i,l,m,S){let j=f.scrollDOM.getBoundingClientRect(),Y=f.documentTop+f.documentPadding.top+f.contentHeight;if(j.left>l||j.right<l||j.top>m||Math.min(j.bottom,Y)<m)return!1;let te=f.posAtCoords({x:l,y:m},!1);return te>=e&&te<=i}function xd(f,e={}){let i=Nr.define(),l=Sn.define({create(){return null},update(m,S){if(m&&(e.hideOnChange&&(S.docChanged||S.selection)||e.hideOn&&e.hideOn(S,m)))return null;if(m&&S.docChanged){let j=S.changes.mapPos(m.pos,-1,Er.TrackDel);if(j==null)return null;let Y=Object.assign(Object.create(null),m);Y.pos=j,m.end!=null&&(Y.end=S.changes.mapPos(m.end)),m=Y}for(let j of S.effects)j.is(i)&&(m=j.value),j.is(Uh)&&(m=null);return m},provide:m=>bo.from(m)});return[l,$s.define(m=>new ys(m,f,l,i,e.hoverTime||300)),os]}function Ed(f,e){let i=f.plugin(Xu);if(!i)return null;let l=i.manager.tooltips.indexOf(e);return l<0?null:i.manager.tooltipViews[l]}function xh(f){return f.facet(bo).some(e=>e)}const Uh=Nr.define(),mf=null;function Ec(f){let e=f.plugin(Xu);e&&e.maybeMeasure()}const _u=St.define({combine(f){let e,i;for(let l of f)e=e||l.topContainer,i=i||l.bottomContainer;return{topContainer:e,bottomContainer:i}}});function Bu(f){return f?[_u.of(f)]:[]}function hc(f,e){let i=f.plugin(If),l=i?i.specs.indexOf(e):-1;return l>-1?i.panels[l]:null}const If=$s.fromClass(class{constructor(f){this.input=f.state.facet(nh),this.specs=this.input.filter(i=>i),this.panels=this.specs.map(i=>i(f));let e=f.state.facet(_u);this.top=new Hh(f,!0,e.topContainer),this.bottom=new Hh(f,!1,e.bottomContainer),this.top.sync(this.panels.filter(i=>i.top)),this.bottom.sync(this.panels.filter(i=>!i.top));for(let i of this.panels)i.dom.classList.add("cm-panel"),i.mount&&i.mount()}update(f){let e=f.state.facet(_u);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new Hh(f.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new Hh(f.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let i=f.state.facet(nh);if(i!=this.input){let l=i.filter(te=>te),m=[],S=[],j=[],Y=[];for(let te of l){let Ee=this.specs.indexOf(te),Se;Ee<0?(Se=te(f.view),Y.push(Se)):(Se=this.panels[Ee],Se.update&&Se.update(f)),m.push(Se),(Se.top?S:j).push(Se)}this.specs=l,this.panels=m,this.top.sync(S),this.bottom.sync(j);for(let te of Y)te.dom.classList.add("cm-panel"),te.mount&&te.mount()}else for(let l of this.panels)l.update&&l.update(f)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:f=>yo.scrollMargins.of(e=>{let i=e.plugin(f);return i&&{top:i.top.scrollMargin(),bottom:i.bottom.scrollMargin()}})});class Hh{constructor(e,i,l){this.view=e,this.top=i,this.container=l,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let i of this.panels)i.destroy&&e.indexOf(i)<0&&i.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let i=this.container||this.view.dom;i.insertBefore(this.dom,this.top?i.firstChild:null)}let e=this.dom.firstChild;for(let i of this.panels)if(i.dom.parentNode==this.dom){for(;e!=i.dom;)e=gf(e);e=e.nextSibling}else this.dom.insertBefore(i.dom,e);for(;e;)e=gf(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function gf(f){let e=f.nextSibling;return f.remove(),e}const nh=St.define({enables:If});class kc extends ia{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}kc.prototype.elementClass="",kc.prototype.toDOM=void 0,kc.prototype.mapMode=Er.TrackBefore,kc.prototype.startSide=kc.prototype.endSide=-1,kc.prototype.point=!0;const lf=St.define(),Rf={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Wo.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},qu=St.define();function vf(f){return[Lf(),qu.of(Object.assign(Object.assign({},Rf),f))]}const ed=St.define({combine:f=>f.some(e=>e)});function Lf(f){let e=[Jf];return f&&f.fixed===!1&&e.push(ed.of(!0)),e}const Jf=$s.fromClass(class{constructor(f){this.view=f,this.prevViewport=f.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=f.state.facet(qu).map(e=>new Xf(f,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!f.state.facet(ed),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),f.scrollDOM.insertBefore(this.dom,f.contentDOM)}update(f){if(this.updateGutters(f)){let e=this.prevViewport,i=f.view.viewport,l=Math.min(e.to,i.to)-Math.max(e.from,i.from);this.syncGutters(l<(i.to-i.from)*.8)}f.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(ed)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=f.view.viewport}syncGutters(f){let e=this.dom.nextSibling;f&&this.dom.remove();let i=Wo.iter(this.view.state.facet(lf),this.view.viewport.from),l=[],m=this.gutters.map(S=>new Op(S,this.view.viewport,-this.view.documentPadding.top));for(let S of this.view.viewportLineBlocks)if(l.length&&(l=[]),Array.isArray(S.type)){let j=!0;for(let Y of S.type)if(Y.type==il.Text&&j){kh(i,l,Y.from);for(let te of m)te.line(this.view,Y,l);j=!1}else if(Y.widget)for(let te of m)te.widget(this.view,Y)}else if(S.type==il.Text){kh(i,l,S.from);for(let j of m)j.line(this.view,S,l)}else if(S.widget)for(let j of m)j.widget(this.view,S);for(let S of m)S.finish();f&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(f){let e=f.startState.facet(qu),i=f.state.facet(qu),l=f.docChanged||f.heightChanged||f.viewportChanged||!Wo.eq(f.startState.facet(lf),f.state.facet(lf),f.view.viewport.from,f.view.viewport.to);if(e==i)for(let m of this.gutters)m.update(f)&&(l=!0);else{l=!0;let m=[];for(let S of i){let j=e.indexOf(S);j<0?m.push(new Xf(this.view,S)):(this.gutters[j].update(f),m.push(this.gutters[j]))}for(let S of this.gutters)S.dom.remove(),m.indexOf(S)<0&&S.destroy();for(let S of m)this.dom.appendChild(S.dom);this.gutters=m}return l}destroy(){for(let f of this.gutters)f.destroy();this.dom.remove()}},{provide:f=>yo.scrollMargins.of(e=>{let i=e.plugin(f);return!i||i.gutters.length==0||!i.fixed?null:e.textDirection==la.LTR?{left:i.dom.offsetWidth*e.scaleX}:{right:i.dom.offsetWidth*e.scaleX}})});function Eh(f){return Array.isArray(f)?f:[f]}function kh(f,e,i){for(;f.value&&f.from<=i;)f.from==i&&e.push(f.value),f.next()}class Op{constructor(e,i,l){this.gutter=e,this.height=l,this.i=0,this.cursor=Wo.iter(e.markers,i.from)}addElement(e,i,l){let{gutter:m}=this,S=(i.top-this.height)/e.scaleY,j=i.height/e.scaleY;if(this.i==m.elements.length){let Y=new jf(e,j,S,l);m.elements.push(Y),m.dom.appendChild(Y.dom)}else m.elements[this.i].update(e,j,S,l);this.height=i.bottom,this.i++}line(e,i,l){let m=[];kh(this.cursor,m,i.from),l.length&&(m=m.concat(l));let S=this.gutter.config.lineMarker(e,i,m);S&&m.unshift(S);let j=this.gutter;m.length==0&&!j.config.renderEmptyElements||this.addElement(e,i,m)}widget(e,i){let l=this.gutter.config.widgetMarker(e,i.widget,i);l&&this.addElement(e,i,[l])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let i=e.elements.pop();e.dom.removeChild(i.dom),i.destroy()}}}class Xf{constructor(e,i){this.view=e,this.config=i,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let l in i.domEventHandlers)this.dom.addEventListener(l,m=>{let S=m.target,j;if(S!=this.dom&&this.dom.contains(S)){for(;S.parentNode!=this.dom;)S=S.parentNode;let te=S.getBoundingClientRect();j=(te.top+te.bottom)/2}else j=m.clientY;let Y=e.lineBlockAtHeight(j-e.documentTop);i.domEventHandlers[l](e,Y,m)&&m.preventDefault()});this.markers=Eh(i.markers(e)),i.initialSpacer&&(this.spacer=new jf(e,0,0,[i.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let i=this.markers;if(this.markers=Eh(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let m=this.config.updateSpacer(this.spacer.markers[0],e);m!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[m])}let l=e.view.viewport;return!Wo.eq(this.markers,i,l.from,l.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class jf{constructor(e,i,l,m){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,i,l,m)}update(e,i,l,m){this.height!=i&&(this.height=i,this.dom.style.height=i+"px"),this.above!=l&&(this.dom.style.marginTop=(this.above=l)?l+"px":""),qf(this.markers,m)||this.setMarkers(e,m)}setMarkers(e,i){let l="cm-gutterElement",m=this.dom.firstChild;for(let S=0,j=0;;){let Y=j,te=S<i.length?i[S++]:null,Ee=!1;if(te){let Se=te.elementClass;Se&&(l+=" "+Se);for(let Tt=j;Tt<this.markers.length;Tt++)if(this.markers[Tt].compare(te)){Y=Tt,Ee=!0;break}}else Y=this.markers.length;for(;j<Y;){let Se=this.markers[j++];if(Se.toDOM){Se.destroy(m);let Tt=m.nextSibling;m.remove(),m=Tt}}if(!te)break;te.toDOM&&(Ee?m=m.nextSibling:this.dom.insertBefore(te.toDOM(e),m)),Ee&&j++}this.dom.className=l,this.markers=i}destroy(){this.setMarkers(null,[])}}function qf(f,e){if(f.length!=e.length)return!1;for(let i=0;i<f.length;i++)if(!f[i].compare(e[i]))return!1;return!0}const Ch=St.define(),rh=St.define({combine(f){return xr(f,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,i){let l=Object.assign({},e);for(let m in i){let S=l[m],j=i[m];l[m]=S?(Y,te,Ee)=>S(Y,te,Ee)||j(Y,te,Ee):j}return l}})}});class Nd extends kc{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function bf(f,e){return f.state.facet(rh).formatNumber(e,f.state)}const bl=qu.compute([rh],f=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(Ch)},lineMarker(e,i,l){return l.some(m=>m.toDOM)?null:new Nd(bf(e,e.state.doc.lineAt(i.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(rh)!=e.state.facet(rh),initialSpacer(e){return new Nd(bf(e,Bf(e.state.doc.lines)))},updateSpacer(e,i){let l=bf(i.view,Bf(i.view.state.doc.lines));return l==e.number?e:new Nd(l)},domEventHandlers:f.facet(rh).domEventHandlers}));function Pp(f={}){return[rh.of(f),Lf(),bl]}function Bf(f){let e=9;for(;e<f;)e=e*10+9;return e}const Dp=new class extends kc{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},Ip=lf.compute(["selection"],f=>{let e=[],i=-1;for(let l of f.selection.ranges){let m=f.doc.lineAt(l.head).from;m>i&&(i=m,e.push(Dp.range(m)))}return Wo.of(e)});function ep(){return Ip}const Nf=new Map;function tp(f){let e=Nf.get(f);return e||Nf.set(f,e=ko.mark({attributes:f==="	"?{class:"cm-highlightTab"}:{class:"cm-highlightSpace","data-display":f.replace(/ /g,"\xB7")}})),e}function xu(f){return $s.define(e=>({decorations:f.createDeco(e),update(i){this.decorations=f.updateDeco(i,this.decorations)}}),{decorations:e=>e.decorations})}const Wh=xu(new ga({regexp:/\t| +/g,decoration:f=>tp(f[0]),boundary:/\S/}));function u0(){return Wh}const ih=xu(new ga({regexp:/\s+$/g,decoration:ko.mark({class:"cm-trailingSpace"}),boundary:/\S/}));function Ff(){return ih}const Zh={HeightMap:g,HeightOracle:Xc,MeasuredHeights:dl,QueryType:W,ChangedRange:ka,computeOrder:Un,moveVisually:jr};var Kh;const Fd=new h;function $d(f){return St.define({combine:f?e=>e.concat(f):void 0})}const Rp=new h;class Hc{constructor(e,i,l=[],m=""){this.data=e,this.name=m,Io.prototype.hasOwnProperty("tree")||Object.defineProperty(Io.prototype,"tree",{get(){return Vl(this)}}),this.parser=i,this.extension=[td.of(this),Io.languageData.of((S,j,Y)=>{let te=np(S,j,Y),Ee=te.type.prop(Fd);if(!Ee)return[];let Se=S.facet(Ee),Tt=te.type.prop(Rp);if(Tt){let rn=te.resolve(j-te.from,Y);for(let Nn of Tt)if(Nn.test(rn,S)){let sr=S.facet(Nn.facet);return Nn.type=="replace"?sr:sr.concat(Se)}}return Se})].concat(l)}isActiveAt(e,i,l=-1){return np(e,i,l).type.prop(Fd)==this.data}findRegions(e){let i=e.facet(td);if(i?.data==this.data)return[{from:0,to:e.doc.length}];if(!i||!i.allowsNesting)return[];let l=[],m=(S,j)=>{if(S.prop(Fd)==this.data){l.push({from:j,to:j+S.length});return}let Y=S.prop(h.mounted);if(Y){if(Y.tree.prop(Fd)==this.data){if(Y.overlay)for(let te of Y.overlay)l.push({from:te.from+j,to:te.to+j});else l.push({from:j,to:j+S.length});return}else if(Y.overlay){let te=l.length;if(m(Y.tree,Y.overlay[0].from+j),l.length>te)return}}for(let te=0;te<S.children.length;te++){let Ee=S.children[te];Ee instanceof F&&m(Ee,S.positions[te]+j)}};return m(Vl(e),0),l}get allowsNesting(){return!0}}Hc.setState=Nr.define();function np(f,e,i){let l=f.facet(td),m=Vl(f).topNode;if(!l||l.allowsNesting)for(let S=m;S;S=S.enter(e,i,I.ExcludeBuffers))S.type.isTop&&(m=S);return m}class cf extends Hc{constructor(e,i,l){super(e,i,[],l),this.parser=i}static define(e){let i=$d(e.languageData);return new cf(i,e.parser.configure({props:[Fd.add(l=>l.isTop?i:void 0)]}),e.name)}configure(e,i){return new cf(this.data,this.parser.configure(e),i||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Vl(f){let e=f.field(Hc.state,!1);return e?e.tree:F.empty}function yf(f,e,i=50){var l;let m=(l=f.field(Hc.state,!1))===null||l===void 0?void 0:l.context;if(!m)return null;let S=m.viewport;m.updateViewport({from:0,to:e});let j=m.isDone(e)||m.work(i,e)?m.tree:null;return m.updateViewport(S),j}function $f(f,e=f.doc.length){var i;return((i=f.field(Hc.state,!1))===null||i===void 0?void 0:i.context.isDone(e))||!1}function wf(f,e=f.viewport.to,i=100){let l=yf(f.state,e,i);return l!=Vl(f.state)&&f.dispatch({}),!!l}function rp(f){var e;return((e=f.plugin(op))===null||e===void 0?void 0:e.isWorking())||!1}class ip{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,i){let l=this.cursorPos-this.string.length;return e<l||i>=this.cursorPos?this.doc.sliceString(e,i):this.string.slice(e-l,i-l)}}let Th=null;class oh{constructor(e,i,l=[],m,S,j,Y,te){this.parser=e,this.state=i,this.fragments=l,this.tree=m,this.treeLen=S,this.viewport=j,this.skipped=Y,this.scheduleOn=te,this.parse=null,this.tempSkipped=[]}static create(e,i,l){return new oh(e,i,[],F.empty,0,l,[],null)}startParse(){return this.parser.startParse(new ip(this.state.doc),this.fragments)}work(e,i){return i!=null&&i>=this.state.doc.length&&(i=void 0),this.tree!=F.empty&&this.isDone(i??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var l;if(typeof e=="number"){let m=Date.now()+e;e=()=>Date.now()>m}for(this.parse||(this.parse=this.startParse()),i!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>i)&&i<this.state.doc.length&&this.parse.stopAt(i);;){let m=this.parse.advance();if(m)if(this.fragments=this.withoutTempSkipped(Ie.addTree(m,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(l=this.parse.stoppedAt)!==null&&l!==void 0?l:this.state.doc.length,this.tree=m,this.parse=null,this.treeLen<(i??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,i;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(i=this.parse.advance()););}),this.treeLen=e,this.tree=i,this.fragments=this.withoutTempSkipped(Ie.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let i=Th;Th=this;try{return e()}finally{Th=i}}withoutTempSkipped(e){for(let i;i=this.tempSkipped.pop();)e=uf(e,i.from,i.to);return e}changes(e,i){let{fragments:l,tree:m,treeLen:S,viewport:j,skipped:Y}=this;if(this.takeTree(),!e.empty){let te=[];if(e.iterChangedRanges((Ee,Se,Tt,rn)=>te.push({fromA:Ee,toA:Se,fromB:Tt,toB:rn})),l=Ie.applyChanges(l,te),m=F.empty,S=0,j={from:e.mapPos(j.from,-1),to:e.mapPos(j.to,1)},this.skipped.length){Y=[];for(let Ee of this.skipped){let Se=e.mapPos(Ee.from,1),Tt=e.mapPos(Ee.to,-1);Se<Tt&&Y.push({from:Se,to:Tt})}}}return new oh(this.parser,i,l,m,S,j,Y,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let i=this.skipped.length;for(let l=0;l<this.skipped.length;l++){let{from:m,to:S}=this.skipped[l];m<e.to&&S>e.from&&(this.fragments=uf(this.fragments,m,S),this.skipped.splice(l--,1))}return this.skipped.length>=i?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,i){this.skipped.push({from:e,to:i})}static getSkippingParser(e){return new class extends se{createParse(i,l,m){let S=m[0].from,j=m[m.length-1].to;return{parsedPos:S,advance(){let te=Th;if(te){for(let Ee of m)te.tempSkipped.push(Ee);e&&(te.scheduleOn=te.scheduleOn?Promise.all([te.scheduleOn,e]):e)}return this.parsedPos=j,new F(k.none,[],[],j-S)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let i=this.fragments;return this.treeLen>=e&&i.length&&i[0].from==0&&i[0].to>=e}static get(){return Th}}function uf(f,e,i){return Ie.applyChanges(f,[{fromA:e,toA:i,fromB:e,toB:i}])}class sh{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let i=this.context.changes(e.changes,e.state),l=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),i.viewport.to);return i.work(20,l)||i.takeTree(),new sh(i)}static init(e){let i=Math.min(3e3,e.doc.length),l=oh.create(e.facet(td).parser,e,{from:0,to:i});return l.work(20,i)||l.takeTree(),new sh(l)}}Hc.state=Sn.define({create:sh.init,update(f,e){for(let i of e.effects)if(i.is(Hc.setState))return i.value;return e.startState.facet(td)!=e.state.facet(td)?sh.init(e.state):f.apply(e)}});let df=f=>{let e=setTimeout(()=>f(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(df=f=>{let e=-1,i=setTimeout(()=>{e=requestIdleCallback(f,{timeout:500-100})},100);return()=>e<0?clearTimeout(i):cancelIdleCallback(e)});const Sh=typeof navigator<"u"&&(!((Kh=navigator.scheduling)===null||Kh===void 0)&&Kh.isInputPending)?()=>navigator.scheduling.isInputPending():null,op=$s.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let i=this.view.state.field(Hc.state).context;(i.updateViewport(e.view.viewport)||this.view.viewport.to>i.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(i)}scheduleWork(){if(this.working)return;let{state:e}=this.view,i=e.field(Hc.state);(i.tree!=i.context.tree||!i.context.isDone(e.doc.length))&&(this.working=df(this.work))}work(e){this.working=null;let i=Date.now();if(this.chunkEnd<i&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=i+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:l,viewport:{to:m}}=this.view,S=l.field(Hc.state);if(S.tree==S.context.tree&&S.context.isDone(m+1e5))return;let j=Date.now()+Math.min(this.chunkBudget,100,e&&!Sh?Math.max(25,e.timeRemaining()-5):1e9),Y=S.context.treeLen<m&&l.doc.length>m+1e3,te=S.context.work(()=>Sh&&Sh()||Date.now()>j,m+(Y?0:1e5));this.chunkBudget-=Date.now()-i,(te||this.chunkBudget<=0)&&(S.context.takeTree(),this.view.dispatch({effects:Hc.setState.of(new sh(S.context))})),this.chunkBudget>0&&!(te&&!Y)&&this.scheduleWork(),this.checkAsyncSchedule(S.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(i=>Go(this.view.state,i)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),td=St.define({combine(f){return f.length?f[0]:null},enables:f=>[Hc.state,op,yo.contentAttributes.compute([f],e=>{let i=e.facet(f);return i&&i.name?{"data-language":i.name}:{}})]});class Lp{constructor(e,i=[]){this.language=e,this.support=i,this.extension=[e,i]}}class Gh{constructor(e,i,l,m,S,j=void 0){this.name=e,this.alias=i,this.extensions=l,this.filename=m,this.loadFunc=S,this.support=j,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{throw this.loading=null,e}))}static of(e){let{load:i,support:l}=e;if(!i){if(!l)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");i=()=>Promise.resolve(l)}return new Gh(e.name,(e.alias||[]).concat(e.name).map(m=>m.toLowerCase()),e.extensions||[],e.filename,i,l)}static matchFilename(e,i){for(let m of e)if(m.filename&&m.filename.test(i))return m;let l=/\.([^.]+)$/.exec(i);if(l){for(let m of e)if(m.extensions.indexOf(l[1])>-1)return m}return null}static matchLanguageName(e,i,l=!0){i=i.toLowerCase();for(let m of e)if(m.alias.some(S=>S==i))return m;if(l)for(let m of e)for(let S of m.alias){let j=i.indexOf(S);if(j>-1&&(S.length>2||!/\w/.test(i[j-1])&&!/\w/.test(i[j+S.length])))return m}return null}}const sp=St.define(),Ah=St.define({combine:f=>{if(!f.length)return"  ";let e=f[0];if(!e||/\S/.test(e)||Array.from(e).some(i=>i!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(f[0]));return e}});function y(f){let e=f.facet(Ah);return e.charCodeAt(0)==9?f.tabSize*e.length:e.length}function O(f,e){let i="",l=f.tabSize,m=f.facet(Ah)[0];if(m=="	"){for(;e>=l;)i+="	",e-=l;m=" "}for(let S=0;S<e;S++)i+=m;return i}function Q(f,e){f instanceof Io&&(f=new De(f));for(let l of f.state.facet(sp)){let m=l(f,e);if(m!==void 0)return m}let i=Vl(f.state);return i.length>=e?En(f,i,e):null}function le(f,e,i){let l=Object.create(null),m=new De(f,{overrideIndentation:j=>{var Y;return(Y=l[j])!==null&&Y!==void 0?Y:-1}}),S=[];for(let j=e;j<=i;){let Y=f.doc.lineAt(j);j=Y.to+1;let te=Q(m,Y.from);if(te==null)continue;/\S/.test(Y.text)||(te=0);let Ee=/^\s*/.exec(Y.text)[0],Se=O(f,te);Ee!=Se&&(l[Y.from]=te,S.push({from:Y.from,to:Y.from+Ee.length,insert:Se}))}return f.changes(S)}class De{constructor(e,i={}){this.state=e,this.options=i,this.unit=y(e)}lineAt(e,i=1){let l=this.state.doc.lineAt(e),{simulateBreak:m,simulateDoubleBreak:S}=this.options;return m!=null&&m>=l.from&&m<=l.to?S&&m==e?{text:"",from:e}:(i<0?m<e:m<=e)?{text:l.text.slice(m-l.from),from:m}:{text:l.text.slice(0,m-l.from),from:l.from}:l}textAfterPos(e,i=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:l,from:m}=this.lineAt(e,i);return l.slice(e-m,Math.min(l.length,e+100-m))}column(e,i=1){let{text:l,from:m}=this.lineAt(e,i),S=this.countColumn(l,e-m),j=this.options.overrideIndentation?this.options.overrideIndentation(m):-1;return j>-1&&(S+=j-this.countColumn(l,l.search(/\S|$/))),S}countColumn(e,i=e.length){return co(e,this.state.tabSize,i)}lineIndent(e,i=1){let{text:l,from:m}=this.lineAt(e,i),S=this.options.overrideIndentation;if(S){let j=S(m);if(j>-1)return j}return this.countColumn(l,l.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const pt=new h;function En(f,e,i){let l=e.resolveStack(i),m=l.node.enterUnfinishedNodesBefore(i);if(m!=l.node){let S=[];for(let j=m;j!=l.node;j=j.parent)S.push(j);for(let j=S.length-1;j>=0;j--)l={node:S[j],next:l}}return yr(l,f,i)}function yr(f,e,i){for(let l=f;l;l=l.next){let m=bi(l.node);if(m)return m(to.create(e,i,l))}return 0}function Ir(f){return f.pos==f.options.simulateBreak&&f.options.simulateDoubleBreak}function bi(f){let e=f.type.prop(pt);if(e)return e;let i=f.firstChild,l;if(i&&(l=i.type.prop(h.closedBy))){let m=f.lastChild,S=m&&l.indexOf(m.name)>-1;return j=>Uo(j,!0,1,void 0,S&&!Ir(j)?m.from:void 0)}return f.parent==null?Gi:null}function Gi(){return 0}class to extends De{constructor(e,i,l){super(e.state,e.options),this.base=e,this.pos=i,this.context=l}get node(){return this.context.node}static create(e,i,l){return new to(e,i,l)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let i=this.state.doc.lineAt(e.from);for(;;){let l=e.resolve(i.from);for(;l.parent&&l.parent.from==l.from;)l=l.parent;if(Ki(l,e))break;i=this.state.doc.lineAt(l.from)}return this.lineIndent(i.from)}continue(){return yr(this.context.next,this.base,this.pos)}}function Ki(f,e){for(let i=e;i;i=i.parent)if(f==i)return!0;return!1}function Ao(f){let e=f.node,i=e.childAfter(e.from),l=e.lastChild;if(!i)return null;let m=f.options.simulateBreak,S=f.state.doc.lineAt(i.from),j=m==null||m<=S.from?S.to:Math.min(S.to,m);for(let Y=i.to;;){let te=e.childAfter(Y);if(!te||te==l)return null;if(!te.type.isSkipped)return te.from<j?i:null;Y=te.to}}function zo({closing:f,align:e=!0,units:i=1}){return l=>Uo(l,e,i,f)}function Uo(f,e,i,l,m){let S=f.textAfter,j=S.match(/^\s*/)[0].length,Y=l&&S.slice(j,j+l.length)==l||m==f.pos+j,te=e?Ao(f):null;return te?Y?f.column(te.from):f.column(te.to):f.baseIndent+(Y?0:f.unit*i)}const ml=f=>f.baseIndent;function ni({except:f,units:e=1}={}){return i=>{let l=f&&f.test(i.textAfter);return i.baseIndent+(l?0:e*i.unit)}}const zr=200;function ci(){return Io.transactionFilter.of(f=>{if(!f.docChanged||!f.isUserEvent("input.type")&&!f.isUserEvent("input.complete"))return f;let e=f.startState.languageDataAt("indentOnInput",f.startState.selection.main.head);if(!e.length)return f;let i=f.newDoc,{head:l}=f.newSelection.main,m=i.lineAt(l);if(l>m.from+zr)return f;let S=i.sliceString(m.from,l);if(!e.some(Ee=>Ee.test(S)))return f;let{state:j}=f,Y=-1,te=[];for(let{head:Ee}of j.selection.ranges){let Se=j.doc.lineAt(Ee);if(Se.from==Y)continue;Y=Se.from;let Tt=Q(j,Se.from);if(Tt==null)continue;let rn=/^\s*/.exec(Se.text)[0],Nn=O(j,Tt);rn!=Nn&&te.push({from:Se.from,to:Se.from+rn.length,insert:Nn})}return te.length?[f,{changes:te,sequential:!0}]:f})}const fo=St.define(),Ho=new h;function ss(f){let e=f.firstChild,i=f.lastChild;return e&&e.to<i.from?{from:e.to,to:i.type.isError?f.to:i.from}:null}function ls(f,e,i){let l=Vl(f);if(l.length<i)return null;let m=l.resolveStack(i,1),S=null;for(let j=m;j;j=j.next){let Y=j.node;if(Y.to<=i||Y.from>i)continue;if(S&&Y.from<e)break;let te=Y.type.prop(Ho);if(te&&(Y.to<l.length-50||l.length==f.doc.length||!Es(Y))){let Ee=te(Y,f);Ee&&Ee.from<=i&&Ee.from>=e&&Ee.to>i&&(S=Ee)}}return S}function Es(f){let e=f.lastChild;return e&&e.to==f.to&&e.type.isError}function yl(f,e,i){for(let l of f.facet(fo)){let m=l(f,e,i);if(m)return m}return ls(f,e,i)}function pa(f,e){let i=e.mapPos(f.from,1),l=e.mapPos(f.to,-1);return i>=l?void 0:{from:i,to:l}}const Nu=Nr.define({map:pa}),Yh=Nr.define({map:pa});function jp(f){let e=[];for(let{head:i}of f.state.selection.ranges)e.some(l=>l.from<=i&&l.to>=i)||e.push(f.lineBlockAt(i));return e}const Qh=Sn.define({create(){return ko.none},update(f,e){f=f.map(e.changes);for(let i of e.effects)if(i.is(Nu)&&!ym(f,i.value.from,i.value.to)){let{preparePlaceholder:l}=e.state.facet(ah),m=l?ko.replace({widget:new xm(l(e.state,i.value))}):p0;f=f.update({add:[m.range(i.value.from,i.value.to)]})}else i.is(Yh)&&(f=f.update({filter:(l,m)=>i.value.from!=l||i.value.to!=m,filterFrom:i.value.from,filterTo:i.value.to}));if(e.selection){let i=!1,{head:l}=e.selection.main;f.between(l,l,(m,S)=>{m<l&&S>l&&(i=!0)}),i&&(f=f.update({filterFrom:l,filterTo:l,filter:(m,S)=>S<=l||m>=l}))}return f},provide:f=>yo.decorations.from(f),toJSON(f,e){let i=[];return f.between(0,e.doc.length,(l,m)=>{i.push(l,m)}),i},fromJSON(f){if(!Array.isArray(f)||f.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let i=0;i<f.length;){let l=f[i++],m=f[i++];if(typeof l!="number"||typeof m!="number")throw new RangeError("Invalid JSON for fold state");e.push(p0.range(l,m))}return ko.set(e,!0)}});function Mg(f){return f.field(Qh,!1)||RangeSet.empty}function Vf(f,e,i){var l;let m=null;return(l=f.field(Qh,!1))===null||l===void 0||l.between(e,i,(S,j)=>{(!m||m.from>S)&&(m={from:S,to:j})}),m}function ym(f,e,i){let l=!1;return f.between(e,e,(m,S)=>{m==e&&S==i&&(l=!0)}),l}function Jh(f,e){return f.field(Qh,!1)?e:e.concat(Nr.appendConfig.of(h0()))}const nd=f=>{for(let e of jp(f)){let i=yl(f.state,e.from,e.to);if(i)return f.dispatch({effects:Jh(f.state,[Nu.of(i),ap(f,i)])}),!0}return!1},d0=f=>{if(!f.state.field(Qh,!1))return!1;let e=[];for(let i of jp(f)){let l=Vf(f.state,i.from,i.to);l&&e.push(Yh.of(l),ap(f,l,!1))}return e.length&&f.dispatch({effects:e}),e.length>0};function ap(f,e,i=!0){let l=f.state.doc.lineAt(e.from).number,m=f.state.doc.lineAt(e.to).number;return yo.announce.of(`${f.state.phrase(i?"Folded lines":"Unfolded lines")} ${l} ${f.state.phrase("to")} ${m}.`)}const Mh=f=>{let{state:e}=f,i=[];for(let l=0;l<e.doc.length;){let m=f.lineBlockAt(l),S=yl(e,m.from,m.to);S&&i.push(Nu.of(S)),l=(S?f.lineBlockAt(S.to):m).to+1}return i.length&&f.dispatch({effects:Jh(f.state,i)}),!!i.length},Ws=f=>{let e=f.state.field(Qh,!1);if(!e||!e.size)return!1;let i=[];return e.between(0,f.state.doc.length,(l,m)=>{i.push(Yh.of({from:l,to:m}))}),f.dispatch({effects:i}),!0};function wm(f,e){for(let i=e;;){let l=yl(f.state,i.from,i.to);if(l&&l.to>e.from)return l;if(!i.from)return null;i=f.lineBlockAt(i.from-1)}}const rd=f=>{let e=[];for(let i of jp(f)){let l=Vf(f.state,i.from,i.to);if(l)e.push(Yh.of(l),ap(f,l,!1));else{let m=wm(f,i);m&&e.push(Nu.of(m),ap(f,m))}}return e.length>0&&f.dispatch({effects:Jh(f.state,e)}),!!e.length},ec=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:nd},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:d0},{key:"Ctrl-Alt-[",run:Mh},{key:"Ctrl-Alt-]",run:Ws}],_m={placeholderDOM:null,preparePlaceholder:null,placeholderText:"\u2026"},ah=St.define({combine(f){return xr(f,_m)}});function h0(f){let e=[Qh,Oh];return f&&e.push(ah.of(f)),e}function f0(f,e){let{state:i}=f,l=i.facet(ah),m=j=>{let Y=f.lineBlockAt(f.posAtDOM(j.target)),te=Vf(f.state,Y.from,Y.to);te&&f.dispatch({effects:Yh.of(te)}),j.preventDefault()};if(l.placeholderDOM)return l.placeholderDOM(f,m,e);let S=document.createElement("span");return S.textContent=l.placeholderText,S.setAttribute("aria-label",i.phrase("folded code")),S.title=i.phrase("unfold"),S.className="cm-foldPlaceholder",S.onclick=m,S}const p0=ko.replace({widget:new class extends Bl{toDOM(f){return f0(f,null)}}});class xm extends Bl{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return f0(e,this.value)}}const Em={openText:"\u2304",closedText:"\u203A",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class zf extends kc{constructor(e,i){super(),this.config=e,this.open=i}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let i=document.createElement("span");return i.textContent=this.open?this.config.openText:this.config.closedText,i.title=e.state.phrase(this.open?"Fold line":"Unfold line"),i}}function m0(f={}){let e=Object.assign(Object.assign({},Em),f),i=new zf(e,!0),l=new zf(e,!1),m=$s.fromClass(class{constructor(j){this.from=j.viewport.from,this.markers=this.buildMarkers(j)}update(j){(j.docChanged||j.viewportChanged||j.startState.facet(td)!=j.state.facet(td)||j.startState.field(Qh,!1)!=j.state.field(Qh,!1)||Vl(j.startState)!=Vl(j.state)||e.foldingChanged(j))&&(this.markers=this.buildMarkers(j.view))}buildMarkers(j){let Y=new fa;for(let te of j.viewportLineBlocks){let Ee=Vf(j.state,te.from,te.to)?l:yl(j.state,te.from,te.to)?i:null;Ee&&Y.add(te.from,te.from,Ee)}return Y.finish()}}),{domEventHandlers:S}=e;return[m,vf({class:"cm-foldGutter",markers(j){var Y;return((Y=j.plugin(m))===null||Y===void 0?void 0:Y.markers)||Wo.empty},initialSpacer(){return new zf(e,!1)},domEventHandlers:Object.assign(Object.assign({},S),{click:(j,Y,te)=>{if(S.click&&S.click(j,Y,te))return!0;let Ee=Vf(j.state,Y.from,Y.to);if(Ee)return j.dispatch({effects:Yh.of(Ee)}),!0;let Se=yl(j.state,Y.from,Y.to);return Se?(j.dispatch({effects:Nu.of(Se)}),!0):!1}})}),h0()]}const Oh=yo.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class _f{constructor(e,i){this.specs=e;let l;function m(Y){let te=Lo.newName();return(l||(l=Object.create(null)))["."+te]=Y,te}const S=typeof i.all=="string"?i.all:i.all?m(i.all):void 0,j=i.scope;this.scope=j instanceof Hc?Y=>Y.prop(Fd)==j.data:j?Y=>Y==j:void 0,this.style=li(e.map(Y=>({tag:Y.tag,class:Y.class||m(Object.assign({},Y,{tag:null}))})),{all:S}).style,this.module=l?new Lo(l):null,this.themeType=i.themeType}static define(e,i){return new _f(e,i||{})}}const xf=St.define(),wl=St.define({combine(f){return f.length?[f[0]]:null}});function tl(f){let e=f.facet(xf);return e.length?e:f.facet(wl)}function lp(f,e){let i=[Cm],l;return f instanceof _f&&(f.module&&i.push(yo.styleModule.of(f.module)),l=f.themeType),e?.fallback?i.push(wl.of(f)):l?i.push(xf.computeN([yo.darkTheme],m=>m.facet(yo.darkTheme)==(l=="dark")?[f]:[])):i.push(xf.of(f)),i}function km(f,e,i){let l=tl(f),m=null;if(l){for(let S of l)if(!S.scope||i&&S.scope(i)){let j=S.style(e);j&&(m=m?m+" "+j:j)}}return m}class g0{constructor(e){this.markCache=Object.create(null),this.tree=Vl(e.state),this.decorations=this.buildDeco(e,tl(e.state))}update(e){let i=Vl(e.state),l=tl(e.state),m=l!=tl(e.startState);i.length<e.view.viewport.to&&!m&&i.type==this.tree.type?this.decorations=this.decorations.map(e.changes):(i!=this.tree||e.viewportChanged||m)&&(this.tree=i,this.decorations=this.buildDeco(e.view,l))}buildDeco(e,i){if(!i||!this.tree.length)return ko.none;let l=new fa;for(let{from:m,to:S}of e.visibleRanges)Bt(this.tree,i,(j,Y,te)=>{l.add(j,Y,this.markCache[te]||(this.markCache[te]=ko.mark({class:te})))},m,S);return l.finish()}}const Cm=ar.high($s.fromClass(g0,{decorations:f=>f.decorations})),Tm=_f.define([{tag:it.meta,color:"#404740"},{tag:it.link,textDecoration:"underline"},{tag:it.heading,textDecoration:"underline",fontWeight:"bold"},{tag:it.emphasis,fontStyle:"italic"},{tag:it.strong,fontWeight:"bold"},{tag:it.strikethrough,textDecoration:"line-through"},{tag:it.keyword,color:"#708"},{tag:[it.atom,it.bool,it.url,it.contentSeparator,it.labelName],color:"#219"},{tag:[it.literal,it.inserted],color:"#164"},{tag:[it.string,it.deleted],color:"#a11"},{tag:[it.regexp,it.escape,it.special(it.string)],color:"#e40"},{tag:it.definition(it.variableName),color:"#00f"},{tag:it.local(it.variableName),color:"#30a"},{tag:[it.typeName,it.namespace],color:"#085"},{tag:it.className,color:"#167"},{tag:[it.special(it.variableName),it.macroName],color:"#256"},{tag:it.definition(it.propertyName),color:"#00c"},{tag:it.comment,color:"#940"},{tag:it.invalid,color:"#f00"}]),v0=yo.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),b0=1e4,Bp="()[]{}",Ef=St.define({combine(f){return xr(f,{afterCursor:!0,brackets:Bp,maxScanDistance:b0,renderMatch:Fp})}}),Np=ko.mark({class:"cm-matchingBracket"}),Sm=ko.mark({class:"cm-nonmatchingBracket"});function Fp(f){let e=[],i=f.matched?Np:Sm;return e.push(i.range(f.start.from,f.start.to)),f.end&&e.push(i.range(f.end.from,f.end.to)),e}const id=[Sn.define({create(){return ko.none},update(f,e){if(!e.docChanged&&!e.selection)return f;let i=[],l=e.state.facet(Ef);for(let m of e.state.selection.ranges){if(!m.empty)continue;let S=lh(e.state,m.head,-1,l)||m.head>0&&lh(e.state,m.head-1,1,l)||l.afterCursor&&(lh(e.state,m.head,1,l)||m.head<e.state.doc.length&&lh(e.state,m.head+1,-1,l));S&&(i=i.concat(l.renderMatch(S,e.state)))}return ko.set(i,!0)},provide:f=>yo.decorations.from(f)}),v0];function kf(f={}){return[Ef.of(f),id]}const cp=new h;function Vp(f,e,i){let l=f.prop(e<0?h.openedBy:h.closedBy);if(l)return l;if(f.name.length==1){let m=i.indexOf(f.name);if(m>-1&&m%2==(e<0?1:0))return[i[m+e]]}return null}function zp(f){let e=f.type.prop(cp);return e?e(f.node):f}function lh(f,e,i,l={}){let m=l.maxScanDistance||b0,S=l.brackets||Bp,j=Vl(f),Y=j.resolveInner(e,i);for(let te=Y;te;te=te.parent){let Ee=Vp(te.type,i,S);if(Ee&&te.from<te.to){let Se=zp(te);if(Se&&(i>0?e>=Se.from&&e<Se.to:e>Se.from&&e<=Se.to))return y0(f,e,i,te,Se,Ee,S)}}return w0(f,e,i,j,Y.type,m,S)}function y0(f,e,i,l,m,S,j){let Y=l.parent,te={from:m.from,to:m.to},Ee=0,Se=Y?.cursor();if(Se&&(i<0?Se.childBefore(l.from):Se.childAfter(l.to)))do if(i<0?Se.to<=l.from:Se.from>=l.to){if(Ee==0&&S.indexOf(Se.type.name)>-1&&Se.from<Se.to){let Tt=zp(Se);return{start:te,end:Tt?{from:Tt.from,to:Tt.to}:void 0,matched:!0}}else if(Vp(Se.type,i,j))Ee++;else if(Vp(Se.type,-i,j)){if(Ee==0){let Tt=zp(Se);return{start:te,end:Tt&&Tt.from<Tt.to?{from:Tt.from,to:Tt.to}:void 0,matched:!1}}Ee--}}while(i<0?Se.prevSibling():Se.nextSibling());return{start:te,matched:!1}}function w0(f,e,i,l,m,S,j){let Y=i<0?f.sliceDoc(e-1,e):f.sliceDoc(e,e+1),te=j.indexOf(Y);if(te<0||te%2==0!=i>0)return null;let Ee={from:i<0?e-1:e,to:i>0?e+1:e},Se=f.doc.iterRange(e,i>0?f.doc.length:0),Tt=0;for(let rn=0;!Se.next().done&&rn<=S;){let Nn=Se.value;i<0&&(rn+=Nn.length);let sr=e+rn*i;for(let Gr=i>0?0:Nn.length-1,Zr=i>0?Nn.length:-1;Gr!=Zr;Gr+=i){let _i=j.indexOf(Nn[Gr]);if(!(_i<0||l.resolveInner(sr+Gr,1).type!=m))if(_i%2==0==i>0)Tt++;else{if(Tt==1)return{start:Ee,end:{from:sr+Gr,to:sr+Gr+1},matched:_i>>1==te>>1};Tt--}}i>0&&(rn+=Nn.length)}return Se.done?{start:Ee,matched:!1}:null}function ch(f,e,i,l=0,m=0){e==null&&(e=f.search(/[^\s\u00a0]/),e==-1&&(e=f.length));let S=m;for(let j=l;j<e;j++)f.charCodeAt(j)==9?S+=i-S%i:S++;return S}class Zs{constructor(e,i,l,m){this.string=e,this.tabSize=i,this.indentUnit=l,this.overrideIndent=m,this.pos=0,this.start=0,this.lastColumnPos=0,this.lastColumnValue=0}eol(){return this.pos>=this.string.length}sol(){return this.pos==0}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)}eat(e){let i=this.string.charAt(this.pos),l;if(typeof e=="string"?l=i==e:l=i&&(e instanceof RegExp?e.test(i):e(i)),l)return++this.pos,i}eatWhile(e){let i=this.pos;for(;this.eat(e););return this.pos>i}eatSpace(){let e=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e}skipToEnd(){this.pos=this.string.length}skipTo(e){let i=this.string.indexOf(e,this.pos);if(i>-1)return this.pos=i,!0}backUp(e){this.pos-=e}column(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ch(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue}indentation(){var e;return(e=this.overrideIndent)!==null&&e!==void 0?e:ch(this.string,null,this.tabSize)}match(e,i,l){if(typeof e=="string"){let m=j=>l?j.toLowerCase():j,S=this.string.substr(this.pos,e.length);return m(S)==m(e)?(i!==!1&&(this.pos+=e.length),!0):null}else{let m=this.string.slice(this.pos).match(e);return m&&m.index>0?null:(m&&i!==!1&&(this.pos+=m[0].length),m)}}current(){return this.string.slice(this.start,this.pos)}}function Cf(f){return{name:f.name||"",token:f.token,blankLine:f.blankLine||(()=>{}),startState:f.startState||(()=>!0),copyState:f.copyState||Fu,indent:f.indent||(()=>null),languageData:f.languageData||{},tokenTable:f.tokenTable||Hp}}function Fu(f){if(typeof f!="object")return f;let e={};for(let i in f){let l=f[i];e[i]=l instanceof Array?l.slice():l}return e}const hf=new WeakMap;class Up extends null{constructor(e){let i=$d(e.languageData),l=Cf(e),m,S=new class extends Parser{createParse(j,Y,te){return new up(m,j,Y,te)}};super(i,S,[sp.of((j,Y)=>this.getIndent(j,Y))],e.name),this.topNode=A0(i),m=this,this.streamParser=l,this.stateAfter=new NodeProp({perNode:!0}),this.tokenTable=e.tokenTable?new C0(l.tokenTable):T0}static define(e){return new Up(e)}getIndent(e,i){let l=Vl(e.state),m=l.resolve(i);for(;m&&m.type!=this.topNode;)m=m.parent;if(!m)return null;let S,{overrideIndentation:j}=e.options;j&&(S=hf.get(e.state),S!=null&&S<i-1e4&&(S=void 0));let Y=Aa(this,l,0,m.from,S??i),te,Ee;if(Y?(Ee=Y.state,te=Y.pos+1):(Ee=this.streamParser.startState(e.unit),te=0),i-te>1e4)return null;for(;te<i;){let Tt=e.state.doc.lineAt(te),rn=Math.min(i,Tt.to);if(Tt.length){let Nn=j?j(Tt.from):-1,sr=new Zs(Tt.text,e.state.tabSize,e.unit,Nn<0?void 0:Nn);for(;sr.pos<rn-Tt.from;)E0(this.streamParser.token,sr,Ee)}else this.streamParser.blankLine(Ee,e.unit);if(rn==i)break;te=Tt.to+1}let Se=e.lineAt(i);return j&&S==null&&hf.set(e.state,Se.from),this.streamParser.indent(Ee,/^\s*(.*)/.exec(Se.text)[1],e)}get allowsNesting(){return!1}}function Aa(f,e,i,l,m){let S=i>=l&&i+e.length<=m&&e.prop(f.stateAfter);if(S)return{state:f.streamParser.copyState(S),pos:i+e.length};for(let j=e.children.length-1;j>=0;j--){let Y=e.children[j],te=i+e.positions[j],Ee=Y instanceof Tree&&te<m&&Aa(f,Y,te,l,m);if(Ee)return Ee}return null}function _0(f,e,i,l,m){if(m&&i<=0&&l>=e.length)return e;!m&&e.type==f.topNode&&(m=!0);for(let S=e.children.length-1;S>=0;S--){let j=e.positions[S],Y=e.children[S],te;if(j<l&&Y instanceof Tree){if(!(te=_0(f,Y,i-j,l-j,m)))break;return m?new Tree(e.type,e.children.slice(0,S).concat(te),e.positions.slice(0,S+1),j+te.length):te}}return null}function x0(f,e,i,l){for(let m of e){let S=m.from+(m.openStart?25:0),j=m.to-(m.openEnd?25:0),Y=S<=i&&j>i&&Aa(f,m.tree,0-m.offset,i,j),te;if(Y&&(te=_0(f,m.tree,i+m.offset,Y.pos+m.offset,!1)))return{state:Y.state,tree:te}}return{state:f.streamParser.startState(l?y(l):4),tree:Tree.empty}}class up{constructor(e,i,l,m){this.lang=e,this.input=i,this.fragments=l,this.ranges=m,this.stoppedAt=null,this.chunks=[],this.chunkPos=[],this.chunk=[],this.chunkReused=void 0,this.rangeIndex=0,this.to=m[m.length-1].to;let S=oh.get(),j=m[0].from,{state:Y,tree:te}=x0(e,l,j,S?.state);this.state=Y,this.parsedPos=this.chunkStart=j+te.length;for(let Ee=0;Ee<te.children.length;Ee++)this.chunks.push(te.children[Ee]),this.chunkPos.push(te.positions[Ee]);S&&this.parsedPos<S.viewport.from-1e5&&(this.state=this.lang.streamParser.startState(y(S.state)),S.skipUntilInView(this.parsedPos,S.viewport.from),this.parsedPos=S.viewport.from),this.moveRangeIndex()}advance(){let e=oh.get(),i=this.stoppedAt==null?this.to:Math.min(this.to,this.stoppedAt),l=Math.min(i,this.chunkStart+2048);for(e&&(l=Math.min(l,e.viewport.to));this.parsedPos<l;)this.parseLine(e);return this.chunkStart<this.parsedPos&&this.finishChunk(),this.parsedPos>=i?this.finish():e&&this.parsedPos>=e.viewport.to?(e.skipUntilInView(this.parsedPos,i),this.finish()):null}stopAt(e){this.stoppedAt=e}lineAfter(e){let i=this.input.chunk(e);if(this.input.lineChunks)i==`
`&&(i="");else{let l=i.indexOf(`
`);l>-1&&(i=i.slice(0,l))}return e+i.length<=this.to?i:i.slice(0,this.to-e)}nextLine(){let e=this.parsedPos,i=this.lineAfter(e),l=e+i.length;for(let m=this.rangeIndex;;){let S=this.ranges[m].to;if(S>=l||(i=i.slice(0,S-(l-i.length)),m++,m==this.ranges.length))break;let j=this.ranges[m].from,Y=this.lineAfter(j);i+=Y,l=j+Y.length}return{line:i,end:l}}skipGapsTo(e,i,l){for(;;){let m=this.ranges[this.rangeIndex].to,S=e+i;if(l>0?m>S:m>=S)break;let j=this.ranges[++this.rangeIndex].from;i+=j-m}return i}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to<this.parsedPos;)this.rangeIndex++}emitToken(e,i,l,m,S){if(this.ranges.length>1){S=this.skipGapsTo(i,S,1),i+=S;let j=this.chunk.length;S=this.skipGapsTo(l,S,-1),l+=S,m+=this.chunk.length-j}return this.chunk.push(e,i,l,m),S}parseLine(e){let{line:i,end:l}=this.nextLine(),m=0,{streamParser:S}=this.lang,j=new Zs(i,e?e.state.tabSize:4,e?y(e.state):2);if(j.eol())S.blankLine(this.state,j.indentUnit);else for(;!j.eol();){let Y=E0(S.token,j,this.state);if(Y&&(m=this.emitToken(this.lang.tokenTable.resolve(Y),this.parsedPos+j.start,this.parsedPos+j.pos,4,m)),j.start>1e4)break}this.parsedPos=l,this.moveRangeIndex(),this.parsedPos<this.to&&this.parsedPos++}finishChunk(){let e=Tree.build({buffer:this.chunk,start:this.chunkStart,length:this.parsedPos-this.chunkStart,nodeSet:Am,topID:0,maxBufferLength:2048,reused:this.chunkReused});e=new Tree(e.type,e.children,e.positions,e.length,[[this.lang.stateAfter,this.lang.streamParser.copyState(this.state)]]),this.chunks.push(e),this.chunkPos.push(this.chunkStart-this.ranges[0].from),this.chunk=[],this.chunkReused=void 0,this.chunkStart=this.parsedPos}finish(){return new Tree(this.lang.topNode,this.chunks,this.chunkPos,this.parsedPos-this.ranges[0].from).balance()}}function E0(f,e,i){e.start=e.pos;for(let l=0;l<10;l++){let m=f(e,i);if(e.pos>e.start)return m}throw new Error("Stream parser failed to advance stream.")}const Hp=Object.create(null),Tf=[k.none],Am=new M(Tf),Wp=[],k0=Object.create(null);for(let[f,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])k0[f]=S0(Hp,e);class C0{constructor(e){this.extra=e,this.table=Object.assign(Object.create(null),k0)}resolve(e){return e?this.table[e]||(this.table[e]=S0(this.extra,e)):0}}const T0=new C0(Hp);function Zp(f,e){Wp.indexOf(f)>-1||(Wp.push(f),console.warn(e))}function S0(f,e){let i=null;for(let S of e.split(".")){let j=f[S]||it[S];j?typeof j=="function"?i?i=j(i):Zp(S,`Modifier ${S} used at start of tag`):i?Zp(S,`Tag ${S} used as modifier`):i=j:Zp(S,`Unknown highlighting tag ${S}`)}if(!i)return 0;let l=e.replace(/ /g,"_"),m=k.define({id:Tf.length,name:l,props:[Cr({[l]:i})]});return Tf.push(m),m.id}function A0(f){let e=NodeType.define({id:Tf.length,name:"Document",props:[Fd.add(()=>f)],top:!0});return Tf.push(e),e}const Mm=()=>f=>{try{JSON.parse(f.state.doc.toString())}catch(e){if(!(e instanceof SyntaxError))throw e;const i=Om(e,f.state.doc);return[{from:i,message:e.message,severity:"error",to:i}]}return[]};function Om(f,e){let i;return(i=f.message.match(/at position (\d+)/))?Math.min(+i[1],e.length):(i=f.message.match(/at line (\d+) column (\d+)/))?Math.min(e.line(+i[1]).from+ +i[2]-1,e.length):0}const dp=cf.define({name:"json",parser:Pe.configure({props:[pt.add({Object:ni({except:/^\s*\}/}),Array:ni({except:/^\s*\]/})}),Ho.add({"Object Array":ss})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function Pm(){return new Lp(dp)}var Kp=t(87462),Dm=t(63366);const Im=f=>{let{state:e}=f,i=e.doc.lineAt(e.selection.main.from),l=Uf(f.state,i.from);return l.line?Cc(f):l.block?jm(f):!1};function hp(f,e){return({state:i,dispatch:l})=>{if(i.readOnly)return!1;let m=f(e,i);return m?(l(i.update(m)),!0):!1}}const Cc=hp(Nm,0),od=null,M0=null,Rm=hp(O0,0),Og=null,Lm=null,jm=hp((f,e)=>O0(f,e,Bm(e)),0);function Uf(f,e){let i=f.languageDataAt("commentTokens",e);return i.length?i[0]:{}}const Sf=50;function Gp(f,{open:e,close:i},l,m){let S=f.sliceDoc(l-Sf,l),j=f.sliceDoc(m,m+Sf),Y=/\s*$/.exec(S)[0].length,te=/^\s*/.exec(j)[0].length,Ee=S.length-Y;if(S.slice(Ee-e.length,Ee)==e&&j.slice(te,te+i.length)==i)return{open:{pos:l-Y,margin:Y&&1},close:{pos:m+te,margin:te&&1}};let Se,Tt;m-l<=2*Sf?Se=Tt=f.sliceDoc(l,m):(Se=f.sliceDoc(l,l+Sf),Tt=f.sliceDoc(m-Sf,m));let rn=/^\s*/.exec(Se)[0].length,Nn=/\s*$/.exec(Tt)[0].length,sr=Tt.length-Nn-i.length;return Se.slice(rn,rn+e.length)==e&&Tt.slice(sr,sr+i.length)==i?{open:{pos:l+rn+e.length,margin:/\s/.test(Se.charAt(rn+e.length))?1:0},close:{pos:m-Nn-i.length,margin:/\s/.test(Tt.charAt(sr-1))?1:0}}:null}function Bm(f){let e=[];for(let i of f.selection.ranges){let l=f.doc.lineAt(i.from),m=i.to<=l.to?l:f.doc.lineAt(i.to),S=e.length-1;S>=0&&e[S].to>l.from?e[S].to=m.to:e.push({from:l.from+/^\s*/.exec(l.text)[0].length,to:m.to})}return e}function O0(f,e,i=e.selection.ranges){let l=i.map(S=>Uf(e,S.from).block);if(!l.every(S=>S))return null;let m=i.map((S,j)=>Gp(e,l[j],S.from,S.to));if(f!=2&&!m.every(S=>S))return{changes:e.changes(i.map((S,j)=>m[j]?[]:[{from:S.from,insert:l[j].open+" "},{from:S.to,insert:" "+l[j].close}]))};if(f!=1&&m.some(S=>S)){let S=[];for(let j=0,Y;j<m.length;j++)if(Y=m[j]){let te=l[j],{open:Ee,close:Se}=Y;S.push({from:Ee.pos-te.open.length,to:Ee.pos+Ee.margin},{from:Se.pos-Se.margin,to:Se.pos+te.close.length})}return{changes:S}}return null}function Nm(f,e,i=e.selection.ranges){let l=[],m=-1;for(let{from:S,to:j}of i){let Y=l.length,te=1e9,Ee=Uf(e,S).line;if(Ee){for(let Se=S;Se<=j;){let Tt=e.doc.lineAt(Se);if(Tt.from>m&&(S==j||j>Tt.from)){m=Tt.from;let rn=/^\s*/.exec(Tt.text)[0].length,Nn=rn==Tt.length,sr=Tt.text.slice(rn,rn+Ee.length)==Ee?rn:-1;rn<Tt.text.length&&rn<te&&(te=rn),l.push({line:Tt,comment:sr,token:Ee,indent:rn,empty:Nn,single:!1})}Se=Tt.to+1}if(te<1e9)for(let Se=Y;Se<l.length;Se++)l[Se].indent<l[Se].line.text.length&&(l[Se].indent=te);l.length==Y+1&&(l[Y].single=!0)}}if(f!=2&&l.some(S=>S.comment<0&&(!S.empty||S.single))){let S=[];for(let{line:Y,token:te,indent:Ee,empty:Se,single:Tt}of l)(Tt||!Se)&&S.push({from:Y.from+Ee,insert:te+" "});let j=e.changes(S);return{changes:j,selection:e.selection.map(j,1)}}else if(f!=1&&l.some(S=>S.comment>=0)){let S=[];for(let{line:j,comment:Y,token:te}of l)if(Y>=0){let Ee=j.from+Y,Se=Ee+te.length;j.text[Se-j.from]==" "&&Se++,S.push({from:Ee,to:Se})}return{changes:S}}return null}const fp=Hn.define(),P0=Hn.define(),Fm=St.define(),D0=St.define({combine(f){return xr(f,{minDepth:100,newGroupDelay:500,joinToEvent:(e,i)=>i},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,i)=>(l,m)=>e(l,m)||i(l,m)})}});function $m(f){let e=0;return f.iterChangedRanges((i,l)=>e=l),e}const Yp=Sn.define({create(){return uh.empty},update(f,e){let i=e.state.facet(D0),l=e.annotation(fp);if(l){let te=e.docChanged?he.single($m(e.changes)):void 0,Ee=$u.fromTransaction(e,te),Se=l.side,Tt=Se==0?f.undone:f.done;return Ee?Tt=mp(Tt,Tt.length,i.minDepth,Ee):Tt=L0(Tt,e.startState.selection),new uh(Se==0?l.rest:Tt,Se==0?Tt:l.rest)}let m=e.annotation(P0);if((m=="full"||m=="before")&&(f=f.isolate()),e.annotation(Qr.addToHistory)===!1)return e.changes.empty?f:f.addMapping(e.changes.desc);let S=$u.fromTransaction(e),j=e.annotation(Qr.time),Y=e.annotation(Qr.userEvent);return S?f=f.addChanges(S,j,Y,i,e):e.selection&&(f=f.addSelection(e.startState.selection,j,Y,i.newGroupDelay)),(m=="full"||m=="after")&&(f=f.isolate()),f},toJSON(f){return{done:f.done.map(e=>e.toJSON()),undone:f.undone.map(e=>e.toJSON())}},fromJSON(f){return new uh(f.done.map($u.fromJSON),f.undone.map($u.fromJSON))}});function Af(f={}){return[Yp,D0.of(f),yo.domEventHandlers({beforeinput(e,i){let l=e.inputType=="historyUndo"?Vm:e.inputType=="historyRedo"?Qp:null;return l?(e.preventDefault(),l(i)):!1}})]}const Pg=null;function pp(f,e){return function({state:i,dispatch:l}){if(!e&&i.readOnly)return!1;let m=i.field(Yp,!1);if(!m)return!1;let S=m.pop(f,i,e);return S?(l(S),!0):!1}}const Vm=pp(0,!1),Qp=pp(1,!1),zm=pp(0,!0),I0=pp(1,!0);function Um(f){return function(e){let i=e.field(Yp,!1);if(!i)return 0;let l=f==0?i.done:i.undone;return l.length-(l.length&&!l[0].changes?1:0)}}const Dg=null,Ig=null;class $u{constructor(e,i,l,m,S){this.changes=e,this.effects=i,this.mapped=l,this.startSelection=m,this.selectionsAfter=S}setSelAfter(e){return new $u(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,i,l;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(i=this.mapped)===null||i===void 0?void 0:i.toJSON(),startSelection:(l=this.startSelection)===null||l===void 0?void 0:l.toJSON(),selectionsAfter:this.selectionsAfter.map(m=>m.toJSON())}}static fromJSON(e){return new $u(e.changes&&oi.fromJSON(e.changes),[],e.mapped&&Or.fromJSON(e.mapped),e.startSelection&&he.fromJSON(e.startSelection),e.selectionsAfter.map(he.fromJSON))}static fromTransaction(e,i){let l=kd;for(let m of e.startState.facet(Fm)){let S=m(e);S.length&&(l=l.concat(S))}return!l.length&&e.changes.empty?null:new $u(e.changes.invert(e.startState.doc),l,void 0,i||e.startState.selection,kd)}static selection(e){return new $u(void 0,kd,void 0,void 0,e)}}function mp(f,e,i,l){let m=e+1>i+20?e-i-1:0,S=f.slice(m,e);return S.push(l),S}function Hm(f,e){let i=[],l=!1;return f.iterChangedRanges((m,S)=>i.push(m,S)),e.iterChangedRanges((m,S,j,Y)=>{for(let te=0;te<i.length;){let Ee=i[te++],Se=i[te++];Y>=Ee&&j<=Se&&(l=!0)}}),l}function Wm(f,e){return f.ranges.length==e.ranges.length&&f.ranges.filter((i,l)=>i.empty!=e.ranges[l].empty).length===0}function R0(f,e){return f.length?e.length?f.concat(e):f:e}const kd=[],Zm=200;function L0(f,e){if(f.length){let i=f[f.length-1],l=i.selectionsAfter.slice(Math.max(0,i.selectionsAfter.length-Zm));return l.length&&l[l.length-1].eq(e)?f:(l.push(e),mp(f,f.length-1,1e9,i.setSelAfter(l)))}else return[$u.selection([e])]}function Km(f){let e=f[f.length-1],i=f.slice();return i[f.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),i}function Jp(f,e){if(!f.length)return f;let i=f.length,l=kd;for(;i;){let m=Gm(f[i-1],e,l);if(m.changes&&!m.changes.empty||m.effects.length){let S=f.slice(0,i);return S[i-1]=m,S}else e=m.mapped,i--,l=m.selectionsAfter}return l.length?[$u.selection(l)]:kd}function Gm(f,e,i){let l=R0(f.selectionsAfter.length?f.selectionsAfter.map(Y=>Y.map(e)):kd,i);if(!f.changes)return $u.selection(l);let m=f.changes.map(e),S=e.mapDesc(f.changes,!0),j=f.mapped?f.mapped.composeDesc(S):S;return new $u(m,Nr.mapEffects(f.effects,e),j,f.startSelection.map(S),l)}const Ym=/^(input\.type|delete)($|\.)/;class uh{constructor(e,i,l=0,m=void 0){this.done=e,this.undone=i,this.prevTime=l,this.prevUserEvent=m}isolate(){return this.prevTime?new uh(this.done,this.undone):this}addChanges(e,i,l,m,S){let j=this.done,Y=j[j.length-1];return Y&&Y.changes&&!Y.changes.empty&&e.changes&&(!l||Ym.test(l))&&(!Y.selectionsAfter.length&&i-this.prevTime<m.newGroupDelay&&m.joinToEvent(S,Hm(Y.changes,e.changes))||l=="input.type.compose")?j=mp(j,j.length-1,m.minDepth,new $u(e.changes.compose(Y.changes),R0(e.effects,Y.effects),Y.mapped,Y.startSelection,kd)):j=mp(j,j.length,m.minDepth,e),new uh(j,kd,i,l)}addSelection(e,i,l,m){let S=this.done.length?this.done[this.done.length-1].selectionsAfter:kd;return S.length>0&&i-this.prevTime<m&&l==this.prevUserEvent&&l&&/^select($|\.)/.test(l)&&Wm(S[S.length-1],e)?this:new uh(L0(this.done,e),this.undone,i,l)}addMapping(e){return new uh(Jp(this.done,e),Jp(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,i,l){let m=e==0?this.done:this.undone;if(m.length==0)return null;let S=m[m.length-1];if(l&&S.selectionsAfter.length)return i.update({selection:S.selectionsAfter[S.selectionsAfter.length-1],annotations:fp.of({side:e,rest:Km(m)}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(S.changes){let j=m.length==1?kd:m.slice(0,m.length-1);return S.mapped&&(j=Jp(j,S.mapped)),i.update({changes:S.changes,selection:S.startSelection,effects:S.effects,annotations:fp.of({side:e,rest:j}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}}uh.empty=new uh(kd,kd);const Qm=[{key:"Mod-z",run:Vm,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:Qp,preventDefault:!0},{linux:"Ctrl-Shift-z",run:Qp,preventDefault:!0},{key:"Mod-u",run:zm,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:I0,preventDefault:!0}];function Mf(f,e){return he.create(f.ranges.map(e),f.mainIndex)}function Eu(f,e){return f.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function sd({state:f,dispatch:e},i){let l=Mf(f.selection,i);return l.eq(f.selection)?!1:(e(Eu(f,l)),!0)}function Hf(f,e){return he.cursor(e?f.to:f.from)}function gp(f,e){return sd(f,i=>i.empty?f.moveByChar(i,e):Hf(i,e))}function eu(f){return f.textDirectionAt(f.state.selection.main.head)==la.LTR}const j0=f=>gp(f,!eu(f)),B0=f=>gp(f,eu(f)),Rg=f=>gp(f,!0),N0=f=>gp(f,!1);function Wf(f,e){return sd(f,i=>i.empty?f.moveByGroup(i,e):Hf(i,e))}const Zf=f=>Wf(f,!eu(f)),Jm=f=>Wf(f,eu(f)),Lg=f=>Wf(f,!0),jg=f=>Wf(f,!1),vp=typeof Intl<"u"&&Intl.Segmenter?new Intl.Segmenter(void 0,{granularity:"word"}):null;function F0(f,e,i){let l=f.state.charCategorizer(e.from),m=CharCategory.Space,S=e.from,j=0,Y=!1,te=!1,Ee=!1,Se=rn=>{if(Y)return!1;S+=i?rn.length:-rn.length;let Nn=l(rn),sr;if(Nn==CharCategory.Word&&rn.charCodeAt(0)<128&&/[\W_]/.test(rn)&&(Nn=-1),m==CharCategory.Space&&(m=Nn),m!=Nn)return!1;if(m==CharCategory.Word)if(rn.toLowerCase()==rn){if(!i&&te)return!1;Ee=!0}else if(Ee){if(i)return!1;Y=!0}else{if(te&&i&&l(sr=f.state.sliceDoc(S,S+1))==CharCategory.Word&&sr.toLowerCase()==sr)return!1;te=!0}return j++,!0},Tt=f.moveByChar(e,i,rn=>(Se(rn),Se));if(vp&&m==CharCategory.Word&&Tt.from==e.from+j*(i?1:-1)){let rn=Math.min(e.head,Tt.head),Nn=Math.max(e.head,Tt.head),sr=f.state.sliceDoc(rn,Nn);if(sr.length>1&&/[\u4E00-\uffff]/.test(sr)){let Gr=Array.from(vp.segment(sr));if(Gr.length>1)return i?EditorSelection.cursor(e.head+Gr[1].index,-1):EditorSelection.cursor(Tt.head+Gr[Gr.length-1].index,1)}}return Tt}function $0(f,e){return sd(f,i=>i.empty?F0(f,i,e):Hf(i,e))}const Bg=f=>$0(f,!0),ad=f=>$0(f,!1);function Xp(f,e,i){if(e.type.prop(i))return!0;let l=e.to-e.from;return l&&(l>2||/[^\s,.;:]/.test(f.sliceDoc(e.from,e.to)))||e.firstChild}function bp(f,e,i){let l=Vl(f).resolveInner(e.head),m=i?h.closedBy:h.openedBy;for(let te=e.head;;){let Ee=i?l.childAfter(te):l.childBefore(te);if(!Ee)break;Xp(f,Ee,m)?l=Ee:te=i?Ee.to:Ee.from}let S=l.type.prop(m),j,Y;return S&&(j=i?lh(f,l.from,1):lh(f,l.to,-1))&&j.matched?Y=i?j.end.to:j.end.from:Y=i?l.to:l.from,he.cursor(Y,i?-1:1)}const Xm=f=>sd(f,e=>bp(f.state,e,!eu(f))),V0=f=>sd(f,e=>bp(f.state,e,eu(f)));function z0(f,e){return sd(f,i=>{if(!i.empty)return Hf(i,e);let l=f.moveVertically(i,e);return l.head!=i.head?l:f.moveToLineBoundary(i,e)})}const yp=f=>z0(f,!1),U0=f=>z0(f,!0);function wp(f){let e=f.scrollDOM.clientHeight<f.scrollDOM.scrollHeight-2,i=0,l=0,m;if(e){for(let S of f.state.facet(yo.scrollMargins)){let j=S(f);j?.top&&(i=Math.max(j?.top,i)),j?.bottom&&(l=Math.max(j?.bottom,l))}m=f.scrollDOM.clientHeight-i-l}else m=(f.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:i,marginBottom:l,selfScroll:e,height:Math.max(f.defaultLineHeight,m-5)}}function H0(f,e){let i=wp(f),{state:l}=f,m=Mf(l.selection,j=>j.empty?f.moveVertically(j,e,i.height):Hf(j,e));if(m.eq(l.selection))return!1;let S;if(i.selfScroll){let j=f.coordsAtPos(l.selection.main.head),Y=f.scrollDOM.getBoundingClientRect(),te=Y.top+i.marginTop,Ee=Y.bottom-i.marginBottom;j&&j.top>te&&j.bottom<Ee&&(S=yo.scrollIntoView(m.main.head,{y:"start",yMargin:j.top-te}))}return f.dispatch(Eu(l,m),{effects:S}),!0}const W0=f=>H0(f,!1),qp=f=>H0(f,!0);function Ph(f,e,i){let l=f.lineBlockAt(e.head),m=f.moveToLineBoundary(e,i);if(m.head==e.head&&m.head!=(i?l.to:l.from)&&(m=f.moveToLineBoundary(e,i,!1)),!i&&m.head==l.from&&l.length){let S=/^\s*/.exec(f.state.sliceDoc(l.from,Math.min(l.from+100,l.to)))[0].length;S&&e.head!=l.from+S&&(m=he.cursor(l.from+S))}return m}const e0=f=>sd(f,e=>Ph(f,e,!0)),qm=f=>sd(f,e=>Ph(f,e,!1)),eg=f=>sd(f,e=>Ph(f,e,!eu(f))),tg=f=>sd(f,e=>Ph(f,e,eu(f))),t0=f=>sd(f,e=>he.cursor(f.lineBlockAt(e.head).from,1)),n0=f=>sd(f,e=>he.cursor(f.lineBlockAt(e.head).to,-1));function Z0(f,e,i){let l=!1,m=Mf(f.selection,S=>{let j=lh(f,S.head,-1)||lh(f,S.head,1)||S.head>0&&lh(f,S.head-1,1)||S.head<f.doc.length&&lh(f,S.head+1,-1);if(!j||!j.end)return S;l=!0;let Y=j.start.from==S.head?j.end.to:j.end.from;return i?he.range(S.anchor,Y):he.cursor(Y)});return l?(e(Eu(f,m)),!0):!1}const ng=({state:f,dispatch:e})=>Z0(f,e,!1),Ng=({state:f,dispatch:e})=>Z0(f,e,!0);function ld(f,e){let i=Mf(f.state.selection,l=>{let m=e(l);return he.range(l.anchor,m.head,m.goalColumn,m.bidiLevel||void 0)});return i.eq(f.state.selection)?!1:(f.dispatch(Eu(f.state,i)),!0)}function _p(f,e){return ld(f,i=>f.moveByChar(i,e))}const K0=f=>_p(f,!eu(f)),G0=f=>_p(f,eu(f)),Fg=f=>_p(f,!0),$g=f=>_p(f,!1);function xp(f,e){return ld(f,i=>f.moveByGroup(i,e))}const rg=f=>xp(f,!eu(f)),ig=f=>xp(f,eu(f)),og=f=>xp(f,!0),Y0=f=>xp(f,!1);function Q0(f,e){return ld(f,i=>F0(f,i,e))}const Vg=f=>Q0(f,!0),zg=f=>Q0(f,!1),sg=f=>ld(f,e=>bp(f.state,e,!eu(f))),ag=f=>ld(f,e=>bp(f.state,e,eu(f)));function J0(f,e){return ld(f,i=>f.moveVertically(i,e))}const X0=f=>J0(f,!1),L=f=>J0(f,!0);function G(f,e){return ld(f,i=>f.moveVertically(i,e,wp(f).height))}const de=f=>G(f,!1),yt=f=>G(f,!0),pn=f=>ld(f,e=>Ph(f,e,!0)),Wn=f=>ld(f,e=>Ph(f,e,!1)),kr=f=>ld(f,e=>Ph(f,e,!eu(f))),Lr=f=>ld(f,e=>Ph(f,e,eu(f))),ei=f=>ld(f,e=>he.cursor(f.lineBlockAt(e.head).from)),Li=f=>ld(f,e=>he.cursor(f.lineBlockAt(e.head).to)),Bi=({state:f,dispatch:e})=>(e(Eu(f,{anchor:0})),!0),Yi=({state:f,dispatch:e})=>(e(Eu(f,{anchor:f.doc.length})),!0),Co=({state:f,dispatch:e})=>(e(Eu(f,{anchor:f.selection.main.anchor,head:0})),!0),Jo=({state:f,dispatch:e})=>(e(Eu(f,{anchor:f.selection.main.anchor,head:f.doc.length})),!0),ws=({state:f,dispatch:e})=>(e(f.update({selection:{anchor:0,head:f.doc.length},userEvent:"select"})),!0),Xs=({state:f,dispatch:e})=>{let i=em(f).map(({from:l,to:m})=>he.range(l,Math.min(m+1,f.doc.length)));return e(f.update({selection:he.create(i),userEvent:"select"})),!0},_s=({state:f,dispatch:e})=>{let i=Mf(f.selection,l=>{var m;let S=Vl(f).resolveStack(l.from,1);for(let j=S;j;j=j.next){let{node:Y}=j;if((Y.from<l.from&&Y.to>=l.to||Y.to>l.to&&Y.from<=l.from)&&(!((m=Y.parent)===null||m===void 0)&&m.parent))return he.range(Y.to,Y.from)}return l});return e(Eu(f,i)),!0},aa=({state:f,dispatch:e})=>{let i=f.selection,l=null;return i.ranges.length>1?l=he.create([i.main]):i.main.empty||(l=he.create([he.cursor(i.main.head)])),l?(e(Eu(f,l)),!0):!1};function qs(f,e){if(f.state.readOnly)return!1;let i="delete.selection",{state:l}=f,m=l.changeByRange(S=>{let{from:j,to:Y}=S;if(j==Y){let te=e(S);te<j?(i="delete.backward",te=tu(f,te,!1)):te>j&&(i="delete.forward",te=tu(f,te,!0)),j=Math.min(j,te),Y=Math.max(Y,te)}else j=tu(f,j,!1),Y=tu(f,Y,!0);return j==Y?{range:S}:{changes:{from:j,to:Y},range:he.cursor(j,j<S.head?-1:1)}});return m.changes.empty?!1:(f.dispatch(l.update(m,{scrollIntoView:!0,userEvent:i,effects:i=="delete.selection"?yo.announce.of(l.phrase("Selection deleted")):void 0})),!0)}function tu(f,e,i){if(f instanceof yo)for(let l of f.state.facet(yo.atomicRanges).map(m=>m(f)))l.between(e,e,(m,S)=>{m<e&&S>e&&(e=i?S:m)});return e}const nu=(f,e)=>qs(f,i=>{let l=i.from,{state:m}=f,S=m.doc.lineAt(l),j,Y;if(!e&&l>S.from&&l<S.from+200&&!/[^ \t]/.test(j=S.text.slice(0,l-S.from))){if(j[j.length-1]=="	")return l-1;let te=co(j,m.tabSize),Ee=te%y(m)||y(m);for(let Se=0;Se<Ee&&j[j.length-1-Se]==" ";Se++)l--;Y=l}else Y=Oe(S.text,l-S.from,e,e)+S.from,Y==l&&S.number!=(e?m.doc.lines:1)&&(Y+=e?1:-1);return Y}),ku=f=>nu(f,!1),zl=f=>nu(f,!0),Cd=(f,e)=>qs(f,i=>{let l=i.head,{state:m}=f,S=m.doc.lineAt(l),j=m.charCategorizer(l);for(let Y=null;;){if(l==(e?S.to:S.from)){l==i.head&&S.number!=(e?m.doc.lines:1)&&(l+=e?1:-1);break}let te=Oe(S.text,l-S.from,e)+S.from,Ee=S.text.slice(Math.min(l,te)-S.from,Math.max(l,te)-S.from),Se=j(Ee);if(Y!=null&&Se!=Y)break;(Ee!=" "||l!=i.head)&&(Y=Se),l=te}return l}),dh=f=>Cd(f,!1),q0=f=>Cd(f,!0),$1=f=>qs(f,e=>{let i=f.lineBlockAt(e.head).to;return e.head<i?i:Math.min(f.state.doc.length,e.head+1)}),pb=f=>qs(f,e=>{let i=f.lineBlockAt(e.head).from;return e.head>i?i:Math.max(0,e.head-1)}),V1=f=>qs(f,e=>{let i=f.moveToLineBoundary(e,!1).head;return e.head>i?i:Math.max(0,e.head-1)}),z1=f=>qs(f,e=>{let i=f.moveToLineBoundary(e,!0).head;return e.head<i?i:Math.min(f.state.doc.length,e.head+1)}),mb=({state:f,dispatch:e})=>{if(f.readOnly)return!1;let i=[];for(let l=0,m="",S=f.doc.iter();;){if(S.next(),S.lineBreak||S.done){let j=m.search(/\s+$/);if(j>-1&&i.push({from:l-(m.length-j),to:l}),S.done)break;m=""}else m=S.value;l+=S.value.length}return i.length?(e(f.update({changes:i,userEvent:"delete"})),!0):!1},U1=({state:f,dispatch:e})=>{if(f.readOnly)return!1;let i=f.changeByRange(l=>({changes:{from:l.from,to:l.to,insert:Te.of(["",""])},range:he.cursor(l.from)}));return e(f.update(i,{scrollIntoView:!0,userEvent:"input"})),!0},lg=({state:f,dispatch:e})=>{if(f.readOnly)return!1;let i=f.changeByRange(l=>{if(!l.empty||l.from==0||l.from==f.doc.length)return{range:l};let m=l.from,S=f.doc.lineAt(m),j=m==S.from?m-1:Oe(S.text,m-S.from,!1)+S.from,Y=m==S.to?m+1:Oe(S.text,m-S.from,!0)+S.from;return{changes:{from:j,to:Y,insert:f.doc.slice(m,Y).append(f.doc.slice(j,m))},range:he.cursor(Y)}});return i.changes.empty?!1:(e(f.update(i,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function em(f){let e=[],i=-1;for(let l of f.selection.ranges){let m=f.doc.lineAt(l.from),S=f.doc.lineAt(l.to);if(!l.empty&&l.to==S.from&&(S=f.doc.lineAt(l.to-1)),i>=m.number){let j=e[e.length-1];j.to=S.to,j.ranges.push(l)}else e.push({from:m.from,to:S.to,ranges:[l]});i=S.number+1}return e}function Ug(f,e,i){if(f.readOnly)return!1;let l=[],m=[];for(let S of em(f)){if(i?S.to==f.doc.length:S.from==0)continue;let j=f.doc.lineAt(i?S.to+1:S.from-1),Y=j.length+1;if(i){l.push({from:S.to,to:j.to},{from:S.from,insert:j.text+f.lineBreak});for(let te of S.ranges)m.push(he.range(Math.min(f.doc.length,te.anchor+Y),Math.min(f.doc.length,te.head+Y)))}else{l.push({from:j.from,to:S.from},{from:S.to,insert:f.lineBreak+j.text});for(let te of S.ranges)m.push(he.range(te.anchor-Y,te.head-Y))}}return l.length?(e(f.update({changes:l,scrollIntoView:!0,selection:he.create(m,f.selection.mainIndex),userEvent:"move.line"})),!0):!1}const H1=({state:f,dispatch:e})=>Ug(f,e,!1),W1=({state:f,dispatch:e})=>Ug(f,e,!0);function Hg(f,e,i){if(f.readOnly)return!1;let l=[];for(let m of em(f))i?l.push({from:m.from,insert:f.doc.slice(m.from,m.to)+f.lineBreak}):l.push({from:m.to,insert:f.lineBreak+f.doc.slice(m.from,m.to)});return e(f.update({changes:l,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Wg=({state:f,dispatch:e})=>Hg(f,e,!1),Z1=({state:f,dispatch:e})=>Hg(f,e,!0),K1=f=>{if(f.state.readOnly)return!1;let{state:e}=f,i=e.changes(em(e).map(({from:m,to:S})=>(m>0?m--:S<e.doc.length&&S++,{from:m,to:S}))),l=Mf(e.selection,m=>f.moveVertically(m,!0)).map(i);return f.dispatch({changes:i,selection:l,scrollIntoView:!0,userEvent:"delete.line"}),!0},gb=({state:f,dispatch:e})=>(e(f.update(f.replaceSelection(f.lineBreak),{scrollIntoView:!0,userEvent:"input"})),!0);function G1(f,e){if(/\(\)|\[\]|\{\}/.test(f.sliceDoc(e-1,e+1)))return{from:e,to:e};let i=Vl(f).resolveInner(e),l=i.childBefore(e),m=i.childAfter(e),S;return l&&m&&l.to<=e&&m.from>=e&&(S=l.type.prop(h.closedBy))&&S.indexOf(m.name)>-1&&f.doc.lineAt(l.to).from==f.doc.lineAt(m.from).from&&!/\S/.test(f.sliceDoc(l.to,m.from))?{from:l.to,to:m.from}:null}const Y1=Zg(!1),cg=Zg(!0);function Zg(f){return({state:e,dispatch:i})=>{if(e.readOnly)return!1;let l=e.changeByRange(m=>{let{from:S,to:j}=m,Y=e.doc.lineAt(S),te=!f&&S==j&&G1(e,S);f&&(S=j=(j<=Y.to?Y:e.doc.lineAt(j)).to);let Ee=new De(e,{simulateBreak:S,simulateDoubleBreak:!!te}),Se=Q(Ee,S);for(Se==null&&(Se=co(/^\s*/.exec(e.doc.lineAt(S).text)[0],e.tabSize));j<Y.to&&/\s/.test(Y.text[j-Y.from]);)j++;te?{from:S,to:j}=te:S>Y.from&&S<Y.from+100&&!/\S/.test(Y.text.slice(0,S))&&(S=Y.from);let Tt=["",O(e,Se)];return te&&Tt.push(O(e,Ee.lineIndent(Y.from,-1))),{changes:{from:S,to:j,insert:Te.of(Tt)},range:he.cursor(S+1+Tt[1].length)}});return i(e.update(l,{scrollIntoView:!0,userEvent:"input"})),!0}}function ug(f,e){let i=-1;return f.changeByRange(l=>{let m=[];for(let j=l.from;j<=l.to;){let Y=f.doc.lineAt(j);Y.number>i&&(l.empty||l.to>Y.from)&&(e(Y,m,l),i=Y.number),j=Y.to+1}let S=f.changes(m);return{changes:m,range:he.range(S.mapPos(l.anchor,1),S.mapPos(l.head,1))}})}const Q1=({state:f,dispatch:e})=>{if(f.readOnly)return!1;let i=Object.create(null),l=new De(f,{overrideIndentation:S=>{let j=i[S];return j??-1}}),m=ug(f,(S,j,Y)=>{let te=Q(l,S.from);if(te==null)return;/\S/.test(S.text)||(te=0);let Ee=/^\s*/.exec(S.text)[0],Se=O(f,te);(Ee!=Se||Y.from<S.from+Ee.length)&&(i[S.from]=te,j.push({from:S.from,to:S.from+Ee.length,insert:Se}))});return m.changes.empty||e(f.update(m,{userEvent:"indent"})),!0},tm=({state:f,dispatch:e})=>f.readOnly?!1:(e(f.update(ug(f,(i,l)=>{l.push({from:i.from,insert:f.facet(Ah)})}),{userEvent:"input.indent"})),!0),dg=({state:f,dispatch:e})=>f.readOnly?!1:(e(f.update(ug(f,(i,l)=>{let m=/^\s*/.exec(i.text)[0];if(!m)return;let S=co(m,f.tabSize),j=0,Y=O(f,Math.max(0,S-y(f)));for(;j<m.length&&j<Y.length&&m.charCodeAt(j)==Y.charCodeAt(j);)j++;l.push({from:i.from+j,to:i.from+m.length,insert:Y.slice(j)})}),{userEvent:"delete.dedent"})),!0),J1=({state:f,dispatch:e})=>f.selection.ranges.some(i=>!i.empty)?tm({state:f,dispatch:e}):(e(f.update(f.replaceSelection("	"),{scrollIntoView:!0,userEvent:"input"})),!0),X1=[{key:"Ctrl-b",run:j0,shift:K0,preventDefault:!0},{key:"Ctrl-f",run:B0,shift:G0},{key:"Ctrl-p",run:yp,shift:X0},{key:"Ctrl-n",run:U0,shift:L},{key:"Ctrl-a",run:t0,shift:ei},{key:"Ctrl-e",run:n0,shift:Li},{key:"Ctrl-d",run:zl},{key:"Ctrl-h",run:ku},{key:"Ctrl-k",run:$1},{key:"Ctrl-Alt-h",run:dh},{key:"Ctrl-o",run:U1},{key:"Ctrl-t",run:lg},{key:"Ctrl-v",run:qp}],q1=[{key:"ArrowLeft",run:j0,shift:K0,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:Zf,shift:rg,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:eg,shift:kr,preventDefault:!0},{key:"ArrowRight",run:B0,shift:G0,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:Jm,shift:ig,preventDefault:!0},{mac:"Cmd-ArrowRight",run:tg,shift:Lr,preventDefault:!0},{key:"ArrowUp",run:yp,shift:X0,preventDefault:!0},{mac:"Cmd-ArrowUp",run:Bi,shift:Co},{mac:"Ctrl-ArrowUp",run:W0,shift:de},{key:"ArrowDown",run:U0,shift:L,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Yi,shift:Jo},{mac:"Ctrl-ArrowDown",run:qp,shift:yt},{key:"PageUp",run:W0,shift:de},{key:"PageDown",run:qp,shift:yt},{key:"Home",run:qm,shift:Wn,preventDefault:!0},{key:"Mod-Home",run:Bi,shift:Co},{key:"End",run:e0,shift:pn,preventDefault:!0},{key:"Mod-End",run:Yi,shift:Jo},{key:"Enter",run:Y1},{key:"Mod-a",run:ws},{key:"Backspace",run:ku,shift:ku},{key:"Delete",run:zl},{key:"Mod-Backspace",mac:"Alt-Backspace",run:dh},{key:"Mod-Delete",mac:"Alt-Delete",run:q0},{mac:"Mod-Backspace",run:V1},{mac:"Mod-Delete",run:z1}].concat(X1.map(f=>({mac:f.key,run:f.run,shift:f.shift}))),Kg=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:Xm,shift:sg},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:V0,shift:ag},{key:"Alt-ArrowUp",run:H1},{key:"Shift-Alt-ArrowUp",run:Wg},{key:"Alt-ArrowDown",run:W1},{key:"Shift-Alt-ArrowDown",run:Z1},{key:"Escape",run:aa},{key:"Mod-Enter",run:cg},{key:"Alt-l",mac:"Ctrl-l",run:Xs},{key:"Mod-i",run:_s,preventDefault:!0},{key:"Mod-[",run:dg},{key:"Mod-]",run:tm},{key:"Mod-Alt-\\",run:Q1},{key:"Shift-Mod-k",run:K1},{key:"Shift-Mod-\\",run:ng},{key:"Mod-/",run:Im},{key:"Alt-A",run:Rm}].concat(q1),Gg={key:"Tab",run:tm,shift:dg};function Ja(){var f=arguments[0];typeof f=="string"&&(f=document.createElement(f));var e=1,i=arguments[1];if(i&&typeof i=="object"&&i.nodeType==null&&!Array.isArray(i)){for(var l in i)if(Object.prototype.hasOwnProperty.call(i,l)){var m=i[l];typeof m=="string"?f.setAttribute(l,m):m!=null&&(f[l]=m)}e++}for(;e<arguments.length;e++)Yg(f,arguments[e]);return f}function Yg(f,e){if(typeof e=="string")f.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)f.appendChild(e);else if(Array.isArray(e))for(var i=0;i<e.length;i++)Yg(f,e[i]);else throw new RangeError("Unsupported child node: "+e)}const hg=typeof String.prototype.normalize=="function"?f=>f.normalize("NFKD"):f=>f;class Ep{constructor(e,i,l=0,m=e.length,S,j){this.test=j,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(l,m),this.bufferStart=l,this.normalize=S?Y=>S(hg(Y)):hg,this.query=this.normalize(i)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Gn(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let i=ir(e),l=this.bufferStart+this.bufferPos;this.bufferPos+=br(e);let m=this.normalize(i);for(let S=0,j=l;;S++){let Y=m.charCodeAt(S),te=this.match(Y,j);if(S==m.length-1){if(te)return this.value=te,this;break}j==l&&S<i.length&&i.charCodeAt(S)==Y&&j++}}}match(e,i){let l=null;for(let m=0;m<this.matches.length;m+=2){let S=this.matches[m],j=!1;this.query.charCodeAt(S)==e&&(S==this.query.length-1?l={from:this.matches[m+1],to:i+1}:(this.matches[m]++,j=!0)),j||(this.matches.splice(m,2),m-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?l={from:i,to:i+1}:this.matches.push(1,i)),l&&this.test&&!this.test(l.from,l.to,this.buffer,this.bufferStart)&&(l=null),l}}typeof Symbol<"u"&&(Ep.prototype[Symbol.iterator]=function(){return this});const Qg={from:-1,to:-1,match:/.*/.exec("")},fg="gm"+(/x/.unicode==null?"":"u");class pg{constructor(e,i,l,m=0,S=e.length){if(this.text=e,this.to=S,this.curLine="",this.done=!1,this.value=Qg,/\\[sWDnr]|\n|\r|\[\^/.test(i))return new Jg(e,i,l,m,S);this.re=new RegExp(i,fg+(l?.ignoreCase?"i":"")),this.test=l?.test,this.iter=e.iter();let j=e.lineAt(m);this.curLineStart=j.from,this.matchPos=rm(e,m),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let i=this.matchPos<=this.to&&this.re.exec(this.curLine);if(i){let l=this.curLineStart+i.index,m=l+i[0].length;if(this.matchPos=rm(this.text,m+(l==m?1:0)),l==this.curLineStart+this.curLine.length&&this.nextLine(),(l<m||l>this.value.to)&&(!this.test||this.test(l,m,i)))return this.value={from:l,to:m,match:i},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}}const nm=new WeakMap;class Of{constructor(e,i){this.from=e,this.text=i}get to(){return this.from+this.text.length}static get(e,i,l){let m=nm.get(e);if(!m||m.from>=l||m.to<=i){let Y=new Of(i,e.sliceString(i,l));return nm.set(e,Y),Y}if(m.from==i&&m.to==l)return m;let{text:S,from:j}=m;return j>i&&(S=e.sliceString(i,j)+S,j=i),m.to<l&&(S+=e.sliceString(m.to,l)),nm.set(e,new Of(j,S)),new Of(i,S.slice(i-j,l-j))}}class Jg{constructor(e,i,l,m,S){this.text=e,this.to=S,this.done=!1,this.value=Qg,this.matchPos=rm(e,m),this.re=new RegExp(i,fg+(l?.ignoreCase?"i":"")),this.test=l?.test,this.flat=Of.get(e,m,this.chunkEnd(m+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,i=this.re.exec(this.flat.text);if(i&&!i[0]&&i.index==e&&(this.re.lastIndex=e+1,i=this.re.exec(this.flat.text)),i){let l=this.flat.from+i.index,m=l+i[0].length;if((this.flat.to>=this.to||i.index+i[0].length<=this.flat.text.length-10)&&(!this.test||this.test(l,m,i)))return this.value={from:l,to:m,match:i},this.matchPos=rm(this.text,m+(l==m?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Of.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(pg.prototype[Symbol.iterator]=Jg.prototype[Symbol.iterator]=function(){return this});function ev(f){try{return new RegExp(f,fg),!0}catch{return!1}}function rm(f,e){if(e>=f.length)return e;let i=f.lineAt(e),l;for(;e<i.to&&(l=i.text.charCodeAt(e-i.from))>=56320&&l<57344;)e++;return e}function mg(f){let e=String(f.state.doc.lineAt(f.state.selection.main.head).number),i=Ja("input",{class:"cm-textfield",name:"line",value:e}),l=Ja("form",{class:"cm-gotoLine",onkeydown:S=>{S.keyCode==27?(S.preventDefault(),f.dispatch({effects:im.of(!1)}),f.focus()):S.keyCode==13&&(S.preventDefault(),m())},onsubmit:S=>{S.preventDefault(),m()}},Ja("label",f.state.phrase("Go to line"),": ",i)," ",Ja("button",{class:"cm-button",type:"submit"},f.state.phrase("go")));function m(){let S=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(i.value);if(!S)return;let{state:j}=f,Y=j.doc.lineAt(j.selection.main.head),[,te,Ee,Se,Tt]=S,rn=Se?+Se.slice(1):0,Nn=Ee?+Ee:Y.number;if(Ee&&Tt){let Zr=Nn/100;te&&(Zr=Zr*(te=="-"?-1:1)+Y.number/j.doc.lines),Nn=Math.round(j.doc.lines*Zr)}else Ee&&te&&(Nn=Nn*(te=="-"?-1:1)+Y.number);let sr=j.doc.line(Math.max(1,Math.min(j.doc.lines,Nn))),Gr=he.cursor(sr.from+Math.max(0,Math.min(rn,sr.length)));f.dispatch({effects:[im.of(!1),yo.scrollIntoView(Gr.from,{y:"center"})],selection:Gr}),f.focus()}return{dom:l}}const im=Nr.define(),Xg=Sn.define({create(){return!0},update(f,e){for(let i of e.effects)i.is(im)&&(f=i.value);return f},provide:f=>nh.from(f,e=>e?mg:null)}),tv=f=>{let e=hc(f,mg);if(!e){let i=[im.of(!0)];f.state.field(Xg,!1)==null&&i.push(Nr.appendConfig.of([Xg,qg])),f.dispatch({effects:i}),e=hc(f,mg)}return e&&e.dom.querySelector("input").select(),!0},qg=yo.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),nv={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},e1=St.define({combine(f){return xr(f,nv,{highlightWordAroundCursor:(e,i)=>e||i,minSelectionLength:Math.min,maxMatches:Math.min})}});function rv(f){let e=[lv,av];return f&&e.push(e1.of(f)),e}const iv=ko.mark({class:"cm-selectionMatch"}),ov=ko.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function t1(f,e,i,l){return(i==0||f(e.sliceDoc(i-1,i))!=Ui.Word)&&(l==e.doc.length||f(e.sliceDoc(l,l+1))!=Ui.Word)}function sv(f,e,i,l){return f(e.sliceDoc(i,i+1))==Ui.Word&&f(e.sliceDoc(l-1,l))==Ui.Word}const av=$s.fromClass(class{constructor(f){this.decorations=this.getDeco(f)}update(f){(f.selectionSet||f.docChanged||f.viewportChanged)&&(this.decorations=this.getDeco(f.view))}getDeco(f){let e=f.state.facet(e1),{state:i}=f,l=i.selection;if(l.ranges.length>1)return ko.none;let m=l.main,S,j=null;if(m.empty){if(!e.highlightWordAroundCursor)return ko.none;let te=i.wordAt(m.head);if(!te)return ko.none;j=i.charCategorizer(m.head),S=i.sliceDoc(te.from,te.to)}else{let te=m.to-m.from;if(te<e.minSelectionLength||te>200)return ko.none;if(e.wholeWords){if(S=i.sliceDoc(m.from,m.to),j=i.charCategorizer(m.head),!(t1(j,i,m.from,m.to)&&sv(j,i,m.from,m.to)))return ko.none}else if(S=i.sliceDoc(m.from,m.to).trim(),!S)return ko.none}let Y=[];for(let te of f.visibleRanges){let Ee=new Ep(i.doc,S,te.from,te.to);for(;!Ee.next().done;){let{from:Se,to:Tt}=Ee.value;if((!j||t1(j,i,Se,Tt))&&(m.empty&&Se<=m.from&&Tt>=m.to?Y.push(ov.range(Se,Tt)):(Se>=m.to||Tt<=m.from)&&Y.push(iv.range(Se,Tt)),Y.length>e.maxMatches))return ko.none}}return ko.set(Y)}},{decorations:f=>f.decorations}),lv=yo.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),cv=({state:f,dispatch:e})=>{let{selection:i}=f,l=he.create(i.ranges.map(m=>f.wordAt(m.head)||he.cursor(m.head)),i.mainIndex);return l.eq(i)?!1:(e(f.update({selection:l})),!0)};function uv(f,e){let{main:i,ranges:l}=f.selection,m=f.wordAt(i.head),S=m&&m.from==i.from&&m.to==i.to;for(let j=!1,Y=new Ep(f.doc,e,l[l.length-1].to);;)if(Y.next(),Y.done){if(j)return null;Y=new Ep(f.doc,e,0,Math.max(0,l[l.length-1].from-1)),j=!0}else{if(j&&l.some(te=>te.from==Y.value.from))continue;if(S){let te=f.wordAt(Y.value.from);if(!te||te.from!=Y.value.from||te.to!=Y.value.to)continue}return Y.value}}const dv=({state:f,dispatch:e})=>{let{ranges:i}=f.selection;if(i.some(S=>S.from===S.to))return cv({state:f,dispatch:e});let l=f.sliceDoc(i[0].from,i[0].to);if(f.selection.ranges.some(S=>f.sliceDoc(S.from,S.to)!=l))return!1;let m=uv(f,l);return m?(e(f.update({selection:f.selection.addRange(he.range(m.from,m.to),!1),effects:yo.scrollIntoView(m.to)})),!0):!1},Kf=St.define({combine(f){return xr(f,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new Ev(e),scrollToMatch:e=>yo.scrollIntoView(e)})}});function vb(f){return f?[Kf.of(f),yg]:yg}class n1{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||ev(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(i,l)=>l=="n"?`
`:l=="r"?"\r":l=="t"?"	":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new mv(this):new fv(this)}getCursor(e,i=0,l){let m=e.doc?e:Io.create({doc:e});return l==null&&(l=m.doc.length),this.regexp?Gf(this,m,i,l):kp(this,m,i,l)}}class r1{constructor(e){this.spec=e}}function kp(f,e,i,l){return new Ep(e.doc,f.unquoted,i,l,f.caseSensitive?void 0:m=>m.toLowerCase(),f.wholeWord?hv(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function hv(f,e){return(i,l,m,S)=>((S>i||S+m.length<l)&&(S=Math.max(0,i-2),m=f.sliceString(S,Math.min(f.length,l+2))),(e(om(m,i-S))!=Ui.Word||e(sm(m,i-S))!=Ui.Word)&&(e(sm(m,l-S))!=Ui.Word||e(om(m,l-S))!=Ui.Word))}class fv extends r1{constructor(e){super(e)}nextMatch(e,i,l){let m=kp(this.spec,e,l,e.doc.length).nextOverlapping();return m.done&&(m=kp(this.spec,e,0,i).nextOverlapping()),m.done?null:m.value}prevMatchInRange(e,i,l){for(let m=l;;){let S=Math.max(i,m-1e4-this.spec.unquoted.length),j=kp(this.spec,e,S,m),Y=null;for(;!j.nextOverlapping().done;)Y=j.value;if(Y)return Y;if(S==i)return null;m-=1e4}}prevMatch(e,i,l){return this.prevMatchInRange(e,0,i)||this.prevMatchInRange(e,l,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,i){let l=kp(this.spec,e,0,e.doc.length),m=[];for(;!l.next().done;){if(m.length>=i)return null;m.push(l.value)}return m}highlight(e,i,l,m){let S=kp(this.spec,e,Math.max(0,i-this.spec.unquoted.length),Math.min(l+this.spec.unquoted.length,e.doc.length));for(;!S.next().done;)m(S.value.from,S.value.to)}}function Gf(f,e,i,l){return new pg(e.doc,f.search,{ignoreCase:!f.caseSensitive,test:f.wholeWord?pv(e.charCategorizer(e.selection.main.head)):void 0},i,l)}function om(f,e){return f.slice(Oe(f,e,!1),e)}function sm(f,e){return f.slice(e,Oe(f,e))}function pv(f){return(e,i,l)=>!l[0].length||(f(om(l.input,l.index))!=Ui.Word||f(sm(l.input,l.index))!=Ui.Word)&&(f(sm(l.input,l.index+l[0].length))!=Ui.Word||f(om(l.input,l.index+l[0].length))!=Ui.Word)}class mv extends r1{nextMatch(e,i,l){let m=Gf(this.spec,e,l,e.doc.length).next();return m.done&&(m=Gf(this.spec,e,0,i).next()),m.done?null:m.value}prevMatchInRange(e,i,l){for(let m=1;;m++){let S=Math.max(i,l-m*1e4),j=Gf(this.spec,e,S,l),Y=null;for(;!j.next().done;)Y=j.value;if(Y&&(S==i||Y.from>S+10))return Y;if(S==i)return null}}prevMatch(e,i,l){return this.prevMatchInRange(e,0,i)||this.prevMatchInRange(e,l,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,(i,l)=>l=="$"?"$":l=="&"?e.match[0]:l!="0"&&+l<e.match.length?e.match[l]:i))}matchAll(e,i){let l=Gf(this.spec,e,0,e.doc.length),m=[];for(;!l.next().done;){if(m.length>=i)return null;m.push(l.value)}return m}highlight(e,i,l,m){let S=Gf(this.spec,e,Math.max(0,i-250),Math.min(l+250,e.doc.length));for(;!S.next().done;)m(S.value.from,S.value.to)}}const r0=Nr.define(),am=Nr.define(),Xh=Sn.define({create(f){return new gg(um(f).create(),null)},update(f,e){for(let i of e.effects)i.is(r0)?f=new gg(i.value.create(),f.panel):i.is(am)&&(f=new gg(f.query,i.value?vg:null));return f},provide:f=>nh.from(f,e=>e.panel)});function bb(f){let e=f.field(Xh,!1);return e?e.query.spec:um(f)}function yb(f){var e;return((e=f.field(Xh,!1))===null||e===void 0?void 0:e.panel)!=null}class gg{constructor(e,i){this.query=e,this.panel=i}}const gv=ko.mark({class:"cm-searchMatch"}),vv=ko.mark({class:"cm-searchMatch cm-searchMatch-selected"}),bv=$s.fromClass(class{constructor(f){this.view=f,this.decorations=this.highlight(f.state.field(Xh))}update(f){let e=f.state.field(Xh);(e!=f.startState.field(Xh)||f.docChanged||f.selectionSet||f.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:f,panel:e}){if(!e||!f.spec.valid)return ko.none;let{view:i}=this,l=new fa;for(let m=0,S=i.visibleRanges,j=S.length;m<j;m++){let{from:Y,to:te}=S[m];for(;m<j-1&&te>S[m+1].from-2*250;)te=S[++m].to;f.highlight(i.state,Y,te,(Ee,Se)=>{let Tt=i.state.selection.ranges.some(rn=>rn.from==Ee&&rn.to==Se);l.add(Ee,Se,Tt?vv:gv)})}return l.finish()}},{decorations:f=>f.decorations});function i0(f){return e=>{let i=e.state.field(Xh,!1);return i&&i.query.spec.valid?f(e,i):a1(e)}}const lm=i0((f,{query:e})=>{let{to:i}=f.state.selection.main,l=e.nextMatch(f.state,i,i);if(!l)return!1;let m=he.single(l.from,l.to),S=f.state.facet(Kf);return f.dispatch({selection:m,effects:[bg(f,l),S.scrollToMatch(m.main,f)],userEvent:"select.search"}),s1(f),!0}),cm=i0((f,{query:e})=>{let{state:i}=f,{from:l}=i.selection.main,m=e.prevMatch(i,l,l);if(!m)return!1;let S=he.single(m.from,m.to),j=f.state.facet(Kf);return f.dispatch({selection:S,effects:[bg(f,m),j.scrollToMatch(S.main,f)],userEvent:"select.search"}),s1(f),!0}),yv=i0((f,{query:e})=>{let i=e.matchAll(f.state,1e3);return!i||!i.length?!1:(f.dispatch({selection:he.create(i.map(l=>he.range(l.from,l.to))),userEvent:"select.search.matches"}),!0)}),wv=({state:f,dispatch:e})=>{let i=f.selection;if(i.ranges.length>1||i.main.empty)return!1;let{from:l,to:m}=i.main,S=[],j=0;for(let Y=new Ep(f.doc,f.sliceDoc(l,m));!Y.next().done;){if(S.length>1e3)return!1;Y.value.from==l&&(j=S.length),S.push(he.range(Y.value.from,Y.value.to))}return e(f.update({selection:he.create(S,j),userEvent:"select.search.matches"})),!0},i1=i0((f,{query:e})=>{let{state:i}=f,{from:l,to:m}=i.selection.main;if(i.readOnly)return!1;let S=e.nextMatch(i,l,l);if(!S)return!1;let j=[],Y,te,Ee=[];if(S.from==l&&S.to==m&&(te=i.toText(e.getReplacement(S)),j.push({from:S.from,to:S.to,insert:te}),S=e.nextMatch(i,S.from,S.to),Ee.push(yo.announce.of(i.phrase("replaced match on line $",i.doc.lineAt(l).number)+"."))),S){let Se=j.length==0||j[0].from>=S.to?0:S.to-S.from-te.length;Y=he.single(S.from-Se,S.to-Se),Ee.push(bg(f,S)),Ee.push(i.facet(Kf).scrollToMatch(Y.main,f))}return f.dispatch({changes:j,selection:Y,effects:Ee,userEvent:"input.replace"}),!0}),_v=i0((f,{query:e})=>{if(f.state.readOnly)return!1;let i=e.matchAll(f.state,1e9).map(m=>{let{from:S,to:j}=m;return{from:S,to:j,insert:e.getReplacement(m)}});if(!i.length)return!1;let l=f.state.phrase("replaced $ matches",i.length)+".";return f.dispatch({changes:i,effects:yo.announce.of(l),userEvent:"input.replace.all"}),!0});function vg(f){return f.state.facet(Kf).createPanel(f)}function um(f,e){var i,l,m,S,j;let Y=f.selection.main,te=Y.empty||Y.to>Y.from+100?"":f.sliceDoc(Y.from,Y.to);if(e&&!te)return e;let Ee=f.facet(Kf);return new n1({search:((i=e?.literal)!==null&&i!==void 0?i:Ee.literal)?te:te.replace(/\n/g,"\\n"),caseSensitive:(l=e?.caseSensitive)!==null&&l!==void 0?l:Ee.caseSensitive,literal:(m=e?.literal)!==null&&m!==void 0?m:Ee.literal,regexp:(S=e?.regexp)!==null&&S!==void 0?S:Ee.regexp,wholeWord:(j=e?.wholeWord)!==null&&j!==void 0?j:Ee.wholeWord})}function o1(f){let e=hc(f,vg);return e&&e.dom.querySelector("[main-field]")}function s1(f){let e=o1(f);e&&e==f.root.activeElement&&e.select()}const a1=f=>{let e=f.state.field(Xh,!1);if(e&&e.panel){let i=o1(f);if(i&&i!=f.root.activeElement){let l=um(f.state,e.query.spec);l.valid&&f.dispatch({effects:r0.of(l)}),i.focus(),i.select()}}else f.dispatch({effects:[am.of(!0),e?r0.of(um(f.state,e.query.spec)):Nr.appendConfig.of(yg)]});return!0},l1=f=>{let e=f.state.field(Xh,!1);if(!e||!e.panel)return!1;let i=hc(f,vg);return i&&i.dom.contains(f.root.activeElement)&&f.focus(),f.dispatch({effects:am.of(!1)}),!0},xv=[{key:"Mod-f",run:a1,scope:"editor search-panel"},{key:"F3",run:lm,shift:cm,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:lm,shift:cm,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:l1,scope:"editor search-panel"},{key:"Mod-Shift-l",run:wv},{key:"Alt-g",run:tv},{key:"Mod-d",run:dv,preventDefault:!0}];class Ev{constructor(e){this.view=e;let i=this.query=e.state.field(Xh).query.spec;this.commit=this.commit.bind(this),this.searchField=Ja("input",{value:i.search,placeholder:Vd(e,"Find"),"aria-label":Vd(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Ja("input",{value:i.replace,placeholder:Vd(e,"Replace"),"aria-label":Vd(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Ja("input",{type:"checkbox",name:"case",form:"",checked:i.caseSensitive,onchange:this.commit}),this.reField=Ja("input",{type:"checkbox",name:"re",form:"",checked:i.regexp,onchange:this.commit}),this.wordField=Ja("input",{type:"checkbox",name:"word",form:"",checked:i.wholeWord,onchange:this.commit});function l(m,S,j){return Ja("button",{class:"cm-button",name:m,onclick:S,type:"button"},j)}this.dom=Ja("div",{onkeydown:m=>this.keydown(m),class:"cm-search"},[this.searchField,l("next",()=>lm(e),[Vd(e,"next")]),l("prev",()=>cm(e),[Vd(e,"previous")]),l("select",()=>yv(e),[Vd(e,"all")]),Ja("label",null,[this.caseField,Vd(e,"match case")]),Ja("label",null,[this.reField,Vd(e,"regexp")]),Ja("label",null,[this.wordField,Vd(e,"by word")]),...e.state.readOnly?[]:[Ja("br"),this.replaceField,l("replace",()=>i1(e),[Vd(e,"replace")]),l("replaceAll",()=>_v(e),[Vd(e,"replace all")])],Ja("button",{name:"close",onclick:()=>l1(e),"aria-label":Vd(e,"close"),type:"button"},["\xD7"])])}commit(){let e=new n1({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:r0.of(e)}))}keydown(e){Fh(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?cm:lm)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),i1(this.view))}update(e){for(let i of e.transactions)for(let l of i.effects)l.is(r0)&&!l.value.eq(this.query)&&this.setQuery(l.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(Kf).top}}function Vd(f,e){return f.state.phrase(e)}const dm=30,hm=/[\s\.,:;?!]/;function bg(f,{from:e,to:i}){let l=f.state.doc.lineAt(e),m=f.state.doc.lineAt(i).to,S=Math.max(l.from,e-dm),j=Math.min(m,i+dm),Y=f.state.sliceDoc(S,j);if(S!=l.from){for(let te=0;te<dm;te++)if(!hm.test(Y[te+1])&&hm.test(Y[te])){Y=Y.slice(te);break}}if(j!=m){for(let te=Y.length-1;te>Y.length-dm;te--)if(!hm.test(Y[te-1])&&hm.test(Y[te])){Y=Y.slice(0,te);break}}return yo.announce.of(`${f.state.phrase("current match")}. ${Y} ${f.state.phrase("on line")} ${l.number}.`)}const kv=yo.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),yg=[Xh,ar.low(bv),kv];class c1{constructor(e,i,l){this.state=e,this.pos=i,this.explicit=l,this.abortListeners=[]}tokenBefore(e){let i=Vl(this.state).resolveInner(this.pos,-1);for(;i&&e.indexOf(i.name)<0;)i=i.parent;return i?{from:i.from,to:this.pos,text:this.state.sliceDoc(i.from,this.pos),type:i.type}:null}matchBefore(e){let i=this.state.doc.lineAt(this.pos),l=Math.max(i.from,this.pos-250),m=i.text.slice(l-i.from,this.pos-i.from),S=m.search(h1(e,!1));return S<0?null:{from:l+S,to:this.pos,text:m.slice(S)}}get aborted(){return this.abortListeners==null}addEventListener(e,i){e=="abort"&&this.abortListeners&&this.abortListeners.push(i)}}function u1(f){let e=Object.keys(f).join(""),i=/\w/.test(e);return i&&(e=e.replace(/\w/g,"")),`[${i?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function Cv(f){let e=Object.create(null),i=Object.create(null);for(let{label:m}of f){e[m[0]]=!0;for(let S=1;S<m.length;S++)i[m[S]]=!0}let l=u1(e)+u1(i)+"*$";return[new RegExp("^"+l),new RegExp(l)]}function Tv(f){let e=f.map(m=>typeof m=="string"?{label:m}:m),[i,l]=e.every(m=>/^\w+$/.test(m.label))?[/\w*$/,/\w+$/]:Cv(e);return m=>{let S=m.matchBefore(l);return S||m.explicit?{from:S?S.from:m.pos,options:e,validFor:i}:null}}function wb(f,e){return i=>{for(let l=syntaxTree(i.state).resolveInner(i.pos,-1);l;l=l.parent){if(f.indexOf(l.name)>-1)return e(i);if(l.type.isTop)break}return null}}function _b(f,e){return i=>{for(let l=syntaxTree(i.state).resolveInner(i.pos,-1);l;l=l.parent){if(f.indexOf(l.name)>-1)return null;if(l.type.isTop)break}return e(i)}}class d1{constructor(e,i,l,m){this.completion=e,this.source=i,this.match=l,this.score=m}}function Pf(f){return f.selection.main.from}function h1(f,e){var i;let{source:l}=f,m=e&&l[0]!="^",S=l[l.length-1]!="$";return!m&&!S?f:new RegExp(`${m?"^":""}(?:${l})${S?"$":""}`,(i=f.flags)!==null&&i!==void 0?i:f.ignoreCase?"i":"")}const f1=Hn.define();function Sv(f,e,i,l){let{main:m}=f.selection,S=i-m.from,j=l-m.from;return Object.assign(Object.assign({},f.changeByRange(Y=>Y!=m&&i!=l&&f.sliceDoc(Y.from+S,Y.from+j)!=f.sliceDoc(i,l)?{range:Y}:{changes:{from:Y.from+S,to:l==m.from?Y.to:Y.from+j,insert:e},range:he.cursor(Y.from+S+e.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const p1=new WeakMap;function Av(f){if(!Array.isArray(f))return f;let e=p1.get(f);return e||p1.set(f,e=Tv(f)),e}const wg=Nr.define(),o0=Nr.define();class Mv{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let i=0;i<e.length;){let l=Gn(e,i),m=br(l);this.chars.push(l);let S=e.slice(i,i+m),j=S.toUpperCase();this.folded.push(Gn(j==S?S.toLowerCase():j,0)),i+=m}this.astral=e.length!=this.chars.length}ret(e,i){return this.score=e,this.matched=i,!0}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return!1;let{chars:i,folded:l,any:m,precise:S,byWord:j}=this;if(i.length==1){let ro=Gn(e,0),To=br(ro),Zi=To==e.length?0:-100;if(ro!=i[0])if(ro==l[0])Zi+=-200;else return!1;return this.ret(Zi,[0,To])}let Y=e.indexOf(this.pattern);if(Y==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let te=i.length,Ee=0;if(Y<0){for(let ro=0,To=Math.min(e.length,200);ro<To&&Ee<te;){let Zi=Gn(e,ro);(Zi==i[Ee]||Zi==l[Ee])&&(m[Ee++]=ro),ro+=br(Zi)}if(Ee<te)return!1}let Se=0,Tt=0,rn=!1,Nn=0,sr=-1,Gr=-1,Zr=/[a-z]/.test(e),_i=!0;for(let ro=0,To=Math.min(e.length,200),Zi=0;ro<To&&Tt<te;){let io=Gn(e,ro);Y<0&&(Se<te&&io==i[Se]&&(S[Se++]=ro),Nn<te&&(io==i[Nn]||io==l[Nn]?(Nn==0&&(sr=ro),Gr=ro+1,Nn++):Nn=0));let po,Mo=io<255?io>=48&&io<=57||io>=97&&io<=122?2:io>=65&&io<=90?1:0:(po=ir(io))!=po.toLowerCase()?1:po!=po.toUpperCase()?2:0;(!ro||Mo==1&&Zr||Zi==0&&Mo!=0)&&(i[Tt]==io||l[Tt]==io&&(rn=!0)?j[Tt++]=ro:j.length&&(_i=!1)),Zi=Mo,ro+=br(io)}return Tt==te&&j[0]==0&&_i?this.result(-100+(rn?-200:0),j,e):Nn==te&&sr==0?this.ret(-200-e.length+(Gr==e.length?0:-100),[0,Gr]):Y>-1?this.ret(-700-e.length,[Y,Y+this.pattern.length]):Nn==te?this.ret(-200+-700-e.length,[sr,Gr]):Tt==te?this.result(-100+(rn?-200:0)+-700+(_i?0:-1100),j,e):i.length==2?!1:this.result((m[0]?-700:0)+-200+-1100,m,e)}result(e,i,l){let m=[],S=0;for(let j of i){let Y=j+(this.astral?br(Gn(l,j)):1);S&&m[S-1]==j?m[S-1]=Y:(m[S++]=j,m[S++]=Y)}return this.ret(e-l.length,m)}}const cd=St.define({combine(f){return xr(f,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:Ov,compareCompletions:(e,i)=>e.label.localeCompare(i.label),interactionDelay:75},{defaultKeymap:(e,i)=>e&&i,closeOnBlur:(e,i)=>e&&i,icons:(e,i)=>e&&i,tooltipClass:(e,i)=>l=>m1(e(l),i(l)),optionClass:(e,i)=>l=>m1(e(l),i(l)),addToOptions:(e,i)=>e.concat(i)})}});function m1(f,e){return f?e?f+" "+e:f:e}function Ov(f,e,i,l,m,S){let j=f.textDirection==la.RTL,Y=j,te=!1,Ee="top",Se,Tt,rn=e.left-m.left,Nn=m.right-e.right,sr=l.right-l.left,Gr=l.bottom-l.top;if(Y&&rn<Math.min(sr,Nn)?Y=!1:!Y&&Nn<Math.min(sr,rn)&&(Y=!0),sr<=(Y?rn:Nn))Se=Math.max(m.top,Math.min(i.top,m.bottom-Gr))-e.top,Tt=Math.min(400,Y?rn:Nn);else{te=!0,Tt=Math.min(400,(j?e.right:m.right-e.left)-30);let ro=m.bottom-e.bottom;ro>=Gr||ro>e.top?Se=i.bottom-e.top:(Ee="bottom",Se=e.bottom-i.top)}let Zr=(e.bottom-e.top)/S.offsetHeight,_i=(e.right-e.left)/S.offsetWidth;return{style:`${Ee}: ${Se/Zr}px; max-width: ${Tt/_i}px`,class:"cm-completionInfo-"+(te?j?"left-narrow":"right-narrow":Y?"left":"right")}}function Pv(f){let e=f.addToOptions.slice();return f.icons&&e.push({render(i){let l=document.createElement("div");return l.classList.add("cm-completionIcon"),i.type&&l.classList.add(...i.type.split(/\s+/g).map(m=>"cm-completionIcon-"+m)),l.setAttribute("aria-hidden","true"),l},position:20}),e.push({render(i,l,m){let S=document.createElement("span");S.className="cm-completionLabel";let j=i.displayLabel||i.label,Y=0;for(let te=0;te<m.length;){let Ee=m[te++],Se=m[te++];Ee>Y&&S.appendChild(document.createTextNode(j.slice(Y,Ee)));let Tt=S.appendChild(document.createElement("span"));Tt.appendChild(document.createTextNode(j.slice(Ee,Se))),Tt.className="cm-completionMatchedText",Y=Se}return Y<j.length&&S.appendChild(document.createTextNode(j.slice(Y))),S},position:50},{render(i){if(!i.detail)return null;let l=document.createElement("span");return l.className="cm-completionDetail",l.textContent=i.detail,l},position:80}),e.sort((i,l)=>i.position-l.position).map(i=>i.render)}function _g(f,e,i){if(f<=i)return{from:0,to:f};if(e<0&&(e=0),e<=f>>1){let m=Math.floor(e/i);return{from:m*i,to:(m+1)*i}}let l=Math.floor((f-e)/i);return{from:f-(l+1)*i,to:f-l*i}}class Dv{constructor(e,i,l){this.view=e,this.stateField=i,this.applyCompletion=l,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:te=>this.placeInfo(te),key:this},this.space=null,this.currentClass="";let m=e.state.field(i),{options:S,selected:j}=m.open,Y=e.state.facet(cd);this.optionContent=Pv(Y),this.optionClass=Y.optionClass,this.tooltipClass=Y.tooltipClass,this.range=_g(S.length,j,Y.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",te=>{for(let Ee=te.target,Se;Ee&&Ee!=this.dom;Ee=Ee.parentNode)if(Ee.nodeName=="LI"&&(Se=/-(\d+)$/.exec(Ee.id))&&+Se[1]<S.length){this.applyCompletion(e,S[+Se[1]]),te.preventDefault();return}}),this.dom.addEventListener("focusout",te=>{let Ee=e.state.field(this.stateField,!1);Ee&&Ee.tooltip&&e.state.facet(cd).closeOnBlur&&te.relatedTarget!=e.contentDOM&&e.dispatch({effects:o0.of(null)})}),this.showOptions(S,m.id)}mount(){this.updateSel()}showOptions(e,i){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,i,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var i;let l=e.state.field(this.stateField),m=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),l!=m){let{options:S,selected:j,disabled:Y}=l.open;(!m.open||m.open.options!=S)&&(this.range=_g(S.length,j,e.state.facet(cd).maxRenderedOptions),this.showOptions(S,l.id)),this.updateSel(),Y!=((i=m.open)===null||i===void 0?void 0:i.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!Y)}}updateTooltipClass(e){let i=this.tooltipClass(e);if(i!=this.currentClass){for(let l of this.currentClass.split(" "))l&&this.dom.classList.remove(l);for(let l of i.split(" "))l&&this.dom.classList.add(l);this.currentClass=i}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),i=e.open;if((i.selected>-1&&i.selected<this.range.from||i.selected>=this.range.to)&&(this.range=_g(i.options.length,i.selected,this.view.state.facet(cd).maxRenderedOptions),this.showOptions(i.options,e.id)),this.updateSelectedOption(i.selected)){this.destroyInfo();let{completion:l}=i.options[i.selected],{info:m}=l;if(!m)return;let S=typeof m=="string"?document.createTextNode(m):m(l);if(!S)return;"then"in S?S.then(j=>{j&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(j,l)}).catch(j=>Go(this.view.state,j,"completion info")):this.addInfoPane(S,l)}}addInfoPane(e,i){this.destroyInfo();let l=this.info=document.createElement("div");if(l.className="cm-tooltip cm-completionInfo",e.nodeType!=null)l.appendChild(e),this.infoDestroy=null;else{let{dom:m,destroy:S}=e;l.appendChild(m),this.infoDestroy=S||null}this.dom.appendChild(l),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let i=null;for(let l=this.list.firstChild,m=this.range.from;l;l=l.nextSibling,m++)l.nodeName!="LI"||!l.id?m--:m==e?l.hasAttribute("aria-selected")||(l.setAttribute("aria-selected","true"),i=l):l.hasAttribute("aria-selected")&&l.removeAttribute("aria-selected");return i&&Rv(this.list,i),i}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let i=this.dom.getBoundingClientRect(),l=this.info.getBoundingClientRect(),m=e.getBoundingClientRect(),S=this.space;if(!S){let j=this.dom.ownerDocument.defaultView||window;S={left:0,top:0,right:j.innerWidth,bottom:j.innerHeight}}return m.top>Math.min(S.bottom,i.bottom)-10||m.bottom<Math.max(S.top,i.top)+10?null:this.view.state.facet(cd).positionInfo(this.view,i,m,l,S,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,i,l){const m=document.createElement("ul");m.id=i,m.setAttribute("role","listbox"),m.setAttribute("aria-expanded","true"),m.setAttribute("aria-label",this.view.state.phrase("Completions"));let S=null;for(let j=l.from;j<l.to;j++){let{completion:Y,match:te}=e[j],{section:Ee}=Y;if(Ee){let rn=typeof Ee=="string"?Ee:Ee.name;if(rn!=S&&(j>l.from||l.from==0))if(S=rn,typeof Ee!="string"&&Ee.header)m.appendChild(Ee.header(Ee));else{let Nn=m.appendChild(document.createElement("completion-section"));Nn.textContent=rn}}const Se=m.appendChild(document.createElement("li"));Se.id=i+"-"+j,Se.setAttribute("role","option");let Tt=this.optionClass(Y);Tt&&(Se.className=Tt);for(let rn of this.optionContent){let Nn=rn(Y,this.view.state,te);Nn&&Se.appendChild(Nn)}}return l.from&&m.classList.add("cm-completionListIncompleteTop"),l.to<e.length&&m.classList.add("cm-completionListIncompleteBottom"),m}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function Iv(f,e){return i=>new Dv(i,f,e)}function Rv(f,e){let i=f.getBoundingClientRect(),l=e.getBoundingClientRect(),m=i.height/f.offsetHeight;l.top<i.top?f.scrollTop-=(i.top-l.top)/m:l.bottom>i.bottom&&(f.scrollTop+=(l.bottom-i.bottom)/m)}function g1(f){return(f.boost||0)*100+(f.apply?10:0)+(f.info?5:0)+(f.type?1:0)}function Lv(f,e){let i=[],l=null,m=te=>{i.push(te);let{section:Ee}=te.completion;if(Ee){l||(l=[]);let Se=typeof Ee=="string"?Ee:Ee.name;l.some(Tt=>Tt.name==Se)||l.push(typeof Ee=="string"?{name:Se}:Ee)}};for(let te of f)if(te.hasResult()){let Ee=te.result.getMatch;if(te.result.filter===!1)for(let Se of te.result.options)m(new d1(Se,te.source,Ee?Ee(Se):[],1e9-i.length));else{let Se=new Mv(e.sliceDoc(te.from,te.to));for(let Tt of te.result.options)if(Se.match(Tt.label)){let rn=Tt.displayLabel?Ee?Ee(Tt,Se.matched):[]:Se.matched;m(new d1(Tt,te.source,rn,Se.score+(Tt.boost||0)))}}}if(l){let te=Object.create(null),Ee=0,Se=(Tt,rn)=>{var Nn,sr;return((Nn=Tt.rank)!==null&&Nn!==void 0?Nn:1e9)-((sr=rn.rank)!==null&&sr!==void 0?sr:1e9)||(Tt.name<rn.name?-1:1)};for(let Tt of l.sort(Se))Ee-=1e5,te[Tt.name]=Ee;for(let Tt of i){let{section:rn}=Tt.completion;rn&&(Tt.score+=te[typeof rn=="string"?rn:rn.name])}}let S=[],j=null,Y=e.facet(cd).compareCompletions;for(let te of i.sort((Ee,Se)=>Se.score-Ee.score||Y(Ee.completion,Se.completion))){let Ee=te.completion;!j||j.label!=Ee.label||j.detail!=Ee.detail||j.type!=null&&Ee.type!=null&&j.type!=Ee.type||j.apply!=Ee.apply||j.boost!=Ee.boost?S.push(te):g1(te.completion)>g1(j)&&(S[S.length-1]=te),j=te.completion}return S}class Cp{constructor(e,i,l,m,S,j){this.options=e,this.attrs=i,this.tooltip=l,this.timestamp=m,this.selected=S,this.disabled=j}setSelected(e,i){return e==this.selected||e>=this.options.length?this:new Cp(this.options,v1(i,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,i,l,m,S){let j=Lv(e,i);if(!j.length)return m&&e.some(te=>te.state==1)?new Cp(m.options,m.attrs,m.tooltip,m.timestamp,m.selected,!0):null;let Y=i.facet(cd).selectOnOpen?0:-1;if(m&&m.selected!=Y&&m.selected!=-1){let te=m.options[m.selected].completion;for(let Ee=0;Ee<j.length;Ee++)if(j[Ee].completion==te){Y=Ee;break}}return new Cp(j,v1(l,Y),{pos:e.reduce((te,Ee)=>Ee.hasResult()?Math.min(te,Ee.from):te,1e8),create:$v,above:S.aboveCursor},m?m.timestamp:Date.now(),Y,!1)}map(e){return new Cp(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class fm{constructor(e,i,l){this.active=e,this.id=i,this.open=l}static start(){return new fm(Nv,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:i}=e,l=i.facet(cd),S=(l.override||i.languageDataAt("autocomplete",Pf(i)).map(Av)).map(Y=>(this.active.find(Ee=>Ee.source==Y)||new Td(Y,this.active.some(Ee=>Ee.state!=0)?1:0)).update(e,l));S.length==this.active.length&&S.every((Y,te)=>Y==this.active[te])&&(S=this.active);let j=this.open;j&&e.docChanged&&(j=j.map(e.changes)),e.selection||S.some(Y=>Y.hasResult()&&e.changes.touchesRange(Y.from,Y.to))||!jv(S,this.active)?j=Cp.build(S,i,this.id,j,l):j&&j.disabled&&!S.some(Y=>Y.state==1)&&(j=null),!j&&S.every(Y=>Y.state!=1)&&S.some(Y=>Y.hasResult())&&(S=S.map(Y=>Y.hasResult()?new Td(Y.source,0):Y));for(let Y of e.effects)Y.is(Eg)&&(j=j&&j.setSelected(Y.value,this.id));return S==this.active&&j==this.open?this:new fm(S,this.id,j)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:Bv}}function jv(f,e){if(f==e)return!0;for(let i=0,l=0;;){for(;i<f.length&&!f[i].hasResult;)i++;for(;l<e.length&&!e[l].hasResult;)l++;let m=i==f.length,S=l==e.length;if(m||S)return m==S;if(f[i++].result!=e[l++].result)return!1}}const Bv={"aria-autocomplete":"list"};function v1(f,e){let i={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":f};return e>-1&&(i["aria-activedescendant"]=f+"-"+e),i}const Nv=[];function xg(f){return f.isUserEvent("input.type")?"input":f.isUserEvent("delete.backward")?"delete":null}class Td{constructor(e,i,l=-1){this.source=e,this.state=i,this.explicitPos=l}hasResult(){return!1}update(e,i){let l=xg(e),m=this;l?m=m.handleUserEvent(e,l,i):e.docChanged?m=m.handleChange(e):e.selection&&m.state!=0&&(m=new Td(m.source,0));for(let S of e.effects)if(S.is(wg))m=new Td(m.source,1,S.value?Pf(e.state):-1);else if(S.is(o0))m=new Td(m.source,0);else if(S.is(b1))for(let j of S.value)j.source==m.source&&(m=j);return m}handleUserEvent(e,i,l){return i=="delete"||!l.activateOnTyping?this.map(e.changes):new Td(this.source,1)}handleChange(e){return e.changes.touchesRange(Pf(e.startState))?new Td(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new Td(this.source,this.state,e.mapPos(this.explicitPos))}}class Tp extends Td{constructor(e,i,l,m,S){super(e,2,i),this.result=l,this.from=m,this.to=S}hasResult(){return!0}handleUserEvent(e,i,l){var m;let S=e.changes.mapPos(this.from),j=e.changes.mapPos(this.to,1),Y=Pf(e.state);if((this.explicitPos<0?Y<=S:Y<this.from)||Y>j||i=="delete"&&Pf(e.startState)==this.from)return new Td(this.source,i=="input"&&l.activateOnTyping?1:0);let te=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos),Ee;return Fv(this.result.validFor,e.state,S,j)?new Tp(this.source,te,this.result,S,j):this.result.update&&(Ee=this.result.update(this.result,S,j,new c1(e.state,Y,te>=0)))?new Tp(this.source,te,Ee,Ee.from,(m=Ee.to)!==null&&m!==void 0?m:Pf(e.state)):new Td(this.source,1,te)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new Td(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new Tp(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}function Fv(f,e,i,l){if(!f)return!1;let m=e.sliceDoc(i,l);return typeof f=="function"?f(m,i,l,e):h1(f,!0).test(m)}const b1=Nr.define({map(f,e){return f.map(i=>i.map(e))}}),Eg=Nr.define(),Cu=Sn.define({create(){return fm.start()},update(f,e){return f.update(e)},provide:f=>[vi.from(f,e=>e.tooltip),yo.contentAttributes.from(f,e=>e.attrs)]});function y1(f,e){const i=e.completion.apply||e.completion.label;let l=f.state.field(Cu).active.find(m=>m.source==e.source);return l instanceof Tp?(typeof i=="string"?f.dispatch(Object.assign(Object.assign({},Sv(f.state,i,l.from,l.to)),{annotations:f1.of(e.completion)})):i(f,e.completion,l.from,l.to),!0):!1}const $v=Iv(Cu,y1);function pm(f,e="option"){return i=>{let l=i.state.field(Cu,!1);if(!l||!l.open||l.open.disabled||Date.now()-l.open.timestamp<i.state.facet(cd).interactionDelay)return!1;let m=1,S;e=="page"&&(S=Ed(i,l.open.tooltip))&&(m=Math.max(2,Math.floor(S.dom.offsetHeight/S.dom.querySelector("li").offsetHeight)-1));let{length:j}=l.open.options,Y=l.open.selected>-1?l.open.selected+m*(f?1:-1):f?0:j-1;return Y<0?Y=e=="page"?0:j-1:Y>=j&&(Y=e=="page"?j-1:0),i.dispatch({effects:Eg.of(Y)}),!0}}const Vv=f=>{let e=f.state.field(Cu,!1);return f.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<f.state.facet(cd).interactionDelay?!1:y1(f,e.open.options[e.open.selected])},zv=f=>f.state.field(Cu,!1)?(f.dispatch({effects:wg.of(!0)}),!0):!1,Uv=f=>{let e=f.state.field(Cu,!1);return!e||!e.active.some(i=>i.state!=0)?!1:(f.dispatch({effects:o0.of(null)}),!0)};class Hv{constructor(e,i){this.active=e,this.context=i,this.time=Date.now(),this.updates=[],this.done=void 0}}const w1=50,Wv=50,Zv=1e3,Kv=$s.fromClass(class{constructor(f){this.view=f,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let e of f.state.field(Cu).active)e.state==1&&this.startQuery(e)}update(f){let e=f.state.field(Cu);if(!f.selectionSet&&!f.docChanged&&f.startState.field(Cu)==e)return;let i=f.transactions.some(l=>(l.selection||l.docChanged)&&!xg(l));for(let l=0;l<this.running.length;l++){let m=this.running[l];if(i||m.updates.length+f.transactions.length>Wv&&Date.now()-m.time>Zv){for(let S of m.context.abortListeners)try{S()}catch(j){Go(this.view.state,j)}m.context.abortListeners=null,this.running.splice(l--,1)}else m.updates.push(...f.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=e.active.some(l=>l.state==1&&!this.running.some(m=>m.active.source==l.source))?setTimeout(()=>this.startUpdate(),w1):-1,this.composing!=0)for(let l of f.transactions)xg(l)=="input"?this.composing=2:this.composing==2&&l.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:f}=this.view,e=f.field(Cu);for(let i of e.active)i.state==1&&!this.running.some(l=>l.active.source==i.source)&&this.startQuery(i)}startQuery(f){let{state:e}=this.view,i=Pf(e),l=new c1(e,i,f.explicitPos==i),m=new Hv(f,l);this.running.push(m),Promise.resolve(f.source(l)).then(S=>{m.context.aborted||(m.done=S||null,this.scheduleAccept())},S=>{this.view.dispatch({effects:o0.of(null)}),Go(this.view.state,S)})}scheduleAccept(){this.running.every(f=>f.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),w1))}accept(){var f;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],i=this.view.state.facet(cd);for(let l=0;l<this.running.length;l++){let m=this.running[l];if(m.done===void 0)continue;if(this.running.splice(l--,1),m.done){let j=new Tp(m.active.source,m.active.explicitPos,m.done,m.done.from,(f=m.done.to)!==null&&f!==void 0?f:Pf(m.updates.length?m.updates[0].startState:this.view.state));for(let Y of m.updates)j=j.update(Y,i);if(j.hasResult()){e.push(j);continue}}let S=this.view.state.field(Cu).active.find(j=>j.source==m.active.source);if(S&&S.state==1)if(m.done==null){let j=new Td(m.active.source,0);for(let Y of m.updates)j=j.update(Y,i);j.state!=1&&e.push(j)}else this.startQuery(S)}e.length&&this.view.dispatch({effects:b1.of(e)})}},{eventHandlers:{blur(f){let e=this.view.state.field(Cu,!1);if(e&&e.tooltip&&this.view.state.facet(cd).closeOnBlur){let i=e.open&&Ed(this.view,e.open.tooltip);(!i||!i.dom.contains(f.relatedTarget))&&this.view.dispatch({effects:o0.of(null)})}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:wg.of(!1)}),20),this.composing=0}}}),_1=yo.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xB7\xB7\xB7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:`${400}px`,boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:`${30}px`},".cm-completionInfo.cm-completionInfo-right-narrow":{left:`${30}px`},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25CB'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25CC'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1D465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1D436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1D461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222A'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25A1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1F511}\uFE0E'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25A2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class Gv{constructor(e,i,l,m){this.field=e,this.line=i,this.from=l,this.to=m}}class kg{constructor(e,i,l){this.field=e,this.from=i,this.to=l}map(e){let i=e.mapPos(this.from,-1,MapMode.TrackDel),l=e.mapPos(this.to,1,MapMode.TrackDel);return i==null||l==null?null:new kg(this.field,i,l)}}class Cg{constructor(e,i){this.lines=e,this.fieldPositions=i}instantiate(e,i){let l=[],m=[i],S=e.doc.lineAt(i),j=/^\s*/.exec(S.text)[0];for(let te of this.lines){if(l.length){let Ee=j,Se=/^\t*/.exec(te)[0].length;for(let Tt=0;Tt<Se;Tt++)Ee+=e.facet(indentUnit);m.push(i+Ee.length-Se),te=Ee+te.slice(Se)}l.push(te),i+=te.length+1}let Y=this.fieldPositions.map(te=>new kg(te.field,m[te.line]+te.from,m[te.line]+te.to));return{text:l,ranges:Y}}static parse(e){let i=[],l=[],m=[],S;for(let j of e.split(/\r\n?|\n/)){for(;S=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(j);){let Y=S[1]?+S[1]:null,te=S[2]||S[3]||"",Ee=-1;for(let Se=0;Se<i.length;Se++)(Y!=null?i[Se].seq==Y:te&&i[Se].name==te)&&(Ee=Se);if(Ee<0){let Se=0;for(;Se<i.length&&(Y==null||i[Se].seq!=null&&i[Se].seq<Y);)Se++;i.splice(Se,0,{seq:Y,name:te}),Ee=Se;for(let Tt of m)Tt.field>=Ee&&Tt.field++}m.push(new Gv(Ee,l.length,S.index,S.index+te.length)),j=j.slice(0,S.index)+te+j.slice(S.index+S[0].length)}for(let Y;Y=/\\([{}])/.exec(j);){j=j.slice(0,Y.index)+Y[1]+j.slice(Y.index+Y[0].length);for(let te of m)te.line==l.length&&te.from>Y.index&&(te.from--,te.to--)}l.push(j)}return new Cg(l,m)}}let Yv=ko.widget({widget:new class extends Bl{toDOM(){let f=document.createElement("span");return f.className="cm-snippetFieldPosition",f}ignoreEvent(){return!1}}}),x1=ko.mark({class:"cm-snippetField"});class Sp{constructor(e,i){this.ranges=e,this.active=i,this.deco=ko.set(e.map(l=>(l.from==l.to?Yv:x1).range(l.from,l.to)))}map(e){let i=[];for(let l of this.ranges){let m=l.map(e);if(!m)return null;i.push(m)}return new Sp(i,this.active)}selectionInsideField(e){return e.ranges.every(i=>this.ranges.some(l=>l.field==this.active&&l.from<=i.from&&l.to>=i.to))}}const Ap=Nr.define({map(f,e){return f&&f.map(e)}}),Qv=Nr.define(),Yf=Sn.define({create(){return null},update(f,e){for(let i of e.effects){if(i.is(Ap))return i.value;if(i.is(Qv)&&f)return new Sp(f.ranges,i.value)}return f&&e.docChanged&&(f=f.map(e.changes)),f&&e.selection&&!f.selectionInsideField(e.selection)&&(f=null),f},provide:f=>yo.decorations.from(f,e=>e?e.deco:ko.none)});function Tg(f,e){return he.create(f.filter(i=>i.field==e).map(i=>he.range(i.from,i.to)))}function Jv(f){let e=Cg.parse(f);return(i,l,m,S)=>{let{text:j,ranges:Y}=e.instantiate(i.state,m),te={changes:{from:m,to:S,insert:Text.of(j)},scrollIntoView:!0,annotations:l?f1.of(l):void 0};if(Y.length&&(te.selection=Tg(Y,0)),Y.length>1){let Ee=new Sp(Y,0),Se=te.effects=[Ap.of(Ee)];i.state.field(Yf,!1)===void 0&&Se.push(StateEffect.appendConfig.of([Yf,tb,nb,_1]))}i.dispatch(i.state.update(te))}}function E1(f){return({state:e,dispatch:i})=>{let l=e.field(Yf,!1);if(!l||f<0&&l.active==0)return!1;let m=l.active+f,S=f>0&&!l.ranges.some(j=>j.field==m+f);return i(e.update({selection:Tg(l.ranges,m),effects:Ap.of(S?null:new Sp(l.ranges,m)),scrollIntoView:!0})),!0}}const Xv=({state:f,dispatch:e})=>f.field(Yf,!1)?(e(f.update({effects:Ap.of(null)})),!0):!1,qv=E1(1),k1=E1(-1);function xb(f){let e=f.field(Yf,!1);return!!(e&&e.ranges.some(i=>i.field==e.active+1))}function Eb(f){let e=f.field(Yf,!1);return!!(e&&e.active>0)}const eb=[{key:"Tab",run:qv,shift:k1},{key:"Escape",run:Xv}],C1=St.define({combine(f){return f.length?f[0]:eb}}),tb=ar.highest(Ld.compute([C1],f=>f.facet(C1)));function kb(f,e){return Object.assign(Object.assign({},e),{apply:Jv(f)})}const nb=yo.domEventHandlers({mousedown(f,e){let i=e.state.field(Yf,!1),l;if(!i||(l=e.posAtCoords({x:f.clientX,y:f.clientY}))==null)return!1;let m=i.ranges.find(S=>S.from<=l&&S.to>=l);return!m||m.field==i.active?!1:(e.dispatch({selection:Tg(i.ranges,m.field),effects:Ap.of(i.ranges.some(S=>S.field>m.field)?new Sp(i.ranges,m.field):null),scrollIntoView:!0}),!0)}});function rb(f){let e=f.replace(/[\]\-\\]/g,"\\$&");try{return new RegExp(`[\\p{Alphabetic}\\p{Number}_${e}]+`,"ug")}catch{return new RegExp(`[w${e}]`,"g")}}function T1(f,e){return new RegExp(e(f.source),f.unicode?"u":"")}const S1=null;function ib(f){return S1[f]||(S1[f]=new WeakMap)}function A1(f,e,i,l,m){for(let S=f.iterLines(),j=0;!S.next().done;){let{value:Y}=S,te;for(e.lastIndex=0;te=e.exec(Y);)if(!l[te[0]]&&j+te.index!=m&&(i.push({type:"text",label:te[0]}),l[te[0]]=!0,i.length>=2e3))return;j+=Y.length+1}}function M1(f,e,i,l,m){let S=f.length>=1e3,j=S&&e.get(f);if(j)return j;let Y=[],te=Object.create(null);if(f.children){let Ee=0;for(let Se of f.children){if(Se.length>=1e3)for(let Tt of M1(Se,e,i,l-Ee,m-Ee))te[Tt.label]||(te[Tt.label]=!0,Y.push(Tt));else A1(Se,i,Y,te,m-Ee);Ee+=Se.length+1}}else A1(f,i,Y,te,m);return S&&Y.length<2e3&&e.set(f,Y),Y}const ob=f=>{let e=f.state.languageDataAt("wordChars",f.pos).join(""),i=rb(e),l=f.matchBefore(T1(i,j=>j+"$"));if(!l&&!f.explicit)return null;let m=l?l.from:f.pos,S=M1(f.state.doc,ib(e),i,5e4,m);return{from:m,options:S,validFor:T1(i,j=>"^"+j)}},s0={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Qf=Nr.define({map(f,e){let i=e.mapPos(f,-1,Er.TrackAfter);return i??void 0}}),mm=new class extends ia{};mm.startSide=1,mm.endSide=-1;const O1=Sn.define({create(){return Wo.empty},update(f,e){if(e.selection){let i=e.state.doc.lineAt(e.selection.main.head).from,l=e.startState.doc.lineAt(e.startState.selection.main.head).from;i!=e.changes.mapPos(l,-1)&&(f=Wo.empty)}f=f.map(e.changes);for(let i of e.effects)i.is(Qf)&&(f=f.update({add:[mm.range(i.value,i.value+1)]}));return f}});function sb(){return[ab,O1]}const P1="()[]{}<>";function Sg(f){for(let e=0;e<P1.length;e+=2)if(P1.charCodeAt(e)==f)return P1.charAt(e+1);return ir(f<128?f:f+1)}function D1(f,e){return f.languageDataAt("closeBrackets",e)[0]||s0}const Cb=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),ab=yo.inputHandler.of((f,e,i,l)=>{if((Cb?f.composing:f.compositionStarted)||f.state.readOnly)return!1;let m=f.state.selection.main;if(l.length>2||l.length==2&&br(Gn(l,0))==1||e!=m.from||i!=m.to)return!1;let S=ce(f.state,l);return S?(f.dispatch(S),!0):!1}),J=[{key:"Backspace",run:({state:f,dispatch:e})=>{if(f.readOnly)return!1;let l=D1(f,f.selection.main.head).brackets||s0.brackets,m=null,S=f.changeByRange(j=>{if(j.empty){let Y=Ve(f.doc,j.head);for(let te of l)if(te==Y&&Nt(f.doc,j.head)==Sg(Gn(te,0)))return{changes:{from:j.head-te.length,to:j.head+te.length},range:he.cursor(j.head-te.length)}}return{range:m=j}});return m||e(f.update(S,{scrollIntoView:!0,userEvent:"delete.backward"})),!m}}];function ce(f,e){let i=D1(f,f.selection.main.head),l=i.brackets||s0.brackets;for(let m of l){let S=Sg(Gn(m,0));if(e==m)return S==m?fn(f,m,l.indexOf(m+m+m)>-1,i):An(f,m,S,i.before||s0.before);if(e==S&&qe(f,f.selection.main.from))return Zn(f,m,S)}return null}function qe(f,e){let i=!1;return f.field(O1).between(0,f.doc.length,l=>{l==e&&(i=!0)}),i}function Nt(f,e){let i=f.sliceString(e,e+2);return i.slice(0,br(Gn(i,0)))}function Ve(f,e){let i=f.sliceString(e-2,e);return br(Gn(i,0))==i.length?i:i.slice(1)}function An(f,e,i,l){let m=null,S=f.changeByRange(j=>{if(!j.empty)return{changes:[{insert:e,from:j.from},{insert:i,from:j.to}],effects:Qf.of(j.to+e.length),range:he.range(j.anchor+e.length,j.head+e.length)};let Y=Nt(f.doc,j.head);return!Y||/\s/.test(Y)||l.indexOf(Y)>-1?{changes:{insert:e+i,from:j.head},effects:Qf.of(j.head+e.length),range:he.cursor(j.head+e.length)}:{range:m=j}});return m?null:f.update(S,{scrollIntoView:!0,userEvent:"input.type"})}function Zn(f,e,i){let l=null,m=f.changeByRange(S=>S.empty&&Nt(f.doc,S.head)==i?{changes:{from:S.head,to:S.head+i.length,insert:i},range:he.cursor(S.head+i.length)}:l={range:S});return l?null:f.update(m,{scrollIntoView:!0,userEvent:"input.type"})}function fn(f,e,i,l){let m=l.stringPrefixes||s0.stringPrefixes,S=null,j=f.changeByRange(Y=>{if(!Y.empty)return{changes:[{insert:e,from:Y.from},{insert:e,from:Y.to}],effects:Qf.of(Y.to+e.length),range:he.range(Y.anchor+e.length,Y.head+e.length)};let te=Y.head,Ee=Nt(f.doc,te),Se;if(Ee==e){if(zn(f,te))return{changes:{insert:e+e,from:te},effects:Qf.of(te+e.length),range:he.cursor(te+e.length)};if(qe(f,te)){let rn=i&&f.sliceDoc(te,te+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:te,to:te+rn.length,insert:rn},range:he.cursor(te+rn.length)}}}else{if(i&&f.sliceDoc(te-2*e.length,te)==e+e&&(Se=Dr(f,te-2*e.length,m))>-1&&zn(f,Se))return{changes:{insert:e+e+e+e,from:te},effects:Qf.of(te+e.length),range:he.cursor(te+e.length)};if(f.charCategorizer(te)(Ee)!=Ui.Word&&Dr(f,te,m)>-1&&!cr(f,te,e,m))return{changes:{insert:e+e,from:te},effects:Qf.of(te+e.length),range:he.cursor(te+e.length)}}return{range:S=Y}});return S?null:f.update(j,{scrollIntoView:!0,userEvent:"input.type"})}function zn(f,e){let i=Vl(f).resolveInner(e+1);return i.parent&&i.from==e}function cr(f,e,i,l){let m=Vl(f).resolveInner(e,-1),S=l.reduce((j,Y)=>Math.max(j,Y.length),0);for(let j=0;j<5;j++){let Y=f.sliceDoc(m.from,Math.min(m.to,m.from+i.length+S)),te=Y.indexOf(i);if(!te||te>-1&&l.indexOf(Y.slice(0,te))>-1){let Se=m.firstChild;for(;Se&&Se.from==m.from&&Se.to-Se.from>i.length+te;){if(f.sliceDoc(Se.to-i.length,Se.to)==i)return!1;Se=Se.firstChild}return!0}let Ee=m.to==e&&m.parent;if(!Ee)break;m=Ee}return!1}function Dr(f,e,i){let l=f.charCategorizer(e);if(l(f.sliceDoc(e-1,e))!=Ui.Word)return e;for(let m of i){let S=e-m.length;if(f.sliceDoc(S,e)==m&&l(f.sliceDoc(S-1,S))!=Ui.Word)return S}return-1}function Hr(f={}){return[Cu,cd.of(f),Kv,xi,_1]}const pi=[{key:"Ctrl-Space",run:zv},{key:"Escape",run:Uv},{key:"ArrowDown",run:pm(!0)},{key:"ArrowUp",run:pm(!1)},{key:"PageDown",run:pm(!0,"page")},{key:"PageUp",run:pm(!1,"page")},{key:"Enter",run:Vv}],xi=ar.highest(Ld.computeN([cd],f=>f.facet(cd).defaultKeymap?[pi]:[]));function wi(f){let e=f.field(Cu,!1);return e&&e.active.some(i=>i.state==1)?"pending":e&&e.active.some(i=>i.state!=0)?"active":null}const Wi=new WeakMap;function Ai(f){var e;let i=(e=f.field(Cu,!1))===null||e===void 0?void 0:e.open;if(!i||i.disabled)return[];let l=Wi.get(i.options);return l||Wi.set(i.options,l=i.options.map(m=>m.completion)),l}function _o(f){var e;let i=(e=f.field(Cu,!1))===null||e===void 0?void 0:e.open;return i&&!i.disabled&&i.selected>=0?i.options[i.selected].completion:null}function Ko(f){var e;let i=(e=f.field(Cu,!1))===null||e===void 0?void 0:e.open;return i&&!i.disabled&&i.selected>=0?i.selected:null}function Ks(f){return Eg.of(f)}class xo{constructor(e,i,l){this.from=e,this.to=i,this.diagnostic=l}}class ms{constructor(e,i,l){this.diagnostics=e,this.panel=i,this.selected=l}static init(e,i,l){let m=e,S=l.facet(Dl).markerFilter;S&&(m=S(m));let j=ko.set(m.map(Y=>Y.from==Y.to||Y.from==Y.to-1&&l.doc.lineAt(Y.from).to==Y.from?ko.widget({widget:new gm(Y),diagnostic:Y}).range(Y.from):ko.mark({attributes:{class:"cm-lintRange cm-lintRange-"+Y.severity+(Y.markClass?" "+Y.markClass:"")},diagnostic:Y}).range(Y.from,Y.to)),!0);return new ms(j,i,zs(j))}}function zs(f,e=null,i=0){let l=null;return f.between(i,1e9,(m,S,{spec:j})=>{if(!(e&&j.diagnostic!=e))return l=new xo(m,S,j.diagnostic),!1}),l}function Ys(f,e){let i=f.startState.doc.lineAt(e.pos);return!!(f.effects.some(l=>l.is(tc))||f.changes.touchesRange(i.from,i.to))}function ea(f,e){return f.field(ua,!1)?e:e.concat(Nr.appendConfig.of(Ab))}function ha(f,e){return{effects:ea(f,[tc.of(e)])}}const tc=Nr.define(),zd=Nr.define(),nl=Nr.define(),ua=Sn.define({create(){return new ms(ko.none,null,null)},update(f,e){if(e.docChanged){let i=f.diagnostics.map(e.changes),l=null;if(f.selected){let m=e.changes.mapPos(f.selected.from,1);l=zs(i,f.selected.diagnostic,m)||zs(i,null,m)}f=new ms(i,f.panel,l)}for(let i of e.effects)i.is(tc)?f=ms.init(i.value,f.panel,e.state):i.is(zd)?f=new ms(f.diagnostics,i.value?a0.open:null,f.selected):i.is(nl)&&(f=new ms(f.diagnostics,f.panel,i.value));return f},provide:f=>[nh.from(f,e=>e.panel),yo.decorations.from(f,e=>e.diagnostics)]});function Pl(f){let e=f.field(ua,!1);return e?e.diagnostics.size:0}const Bo=ko.mark({class:"cm-lintRange cm-lintRange-active"});function wa(f,e,i){let{diagnostics:l}=f.state.field(ua),m=[],S=2e8,j=0;l.between(e-(i<0?1:0),e+(i>0?1:0),(te,Ee,{spec:Se})=>{e>=te&&e<=Ee&&(te==Ee||(e>te||i>0)&&(e<Ee||i<0))&&(m.push(Se.diagnostic),S=Math.min(te,S),j=Math.max(Ee,j))});let Y=f.state.facet(Dl).tooltipFilter;return Y&&(m=Y(m)),m.length?{pos:S,end:j,above:f.state.doc.lineAt(S).to<j,create(){return{dom:Mc(f,m)}}}:null}function Mc(f,e){return Ja("ul",{class:"cm-tooltip-lint"},e.map(i=>Mp(f,i,!1)))}const Tu=f=>{let e=f.state.field(ua,!1);(!e||!e.panel)&&f.dispatch({effects:ea(f.state,[zd.of(!0)])});let i=hc(f,a0.open);return i&&i.dom.querySelector(".cm-panel-lint ul").focus(),!0},Ud=f=>{let e=f.state.field(ua,!1);return!e||!e.panel?!1:(f.dispatch({effects:zd.of(!1)}),!0)},qh=f=>{let e=f.state.field(ua,!1);if(!e)return!1;let i=f.state.selection.main,l=e.diagnostics.iter(i.to+1);return!l.value&&(l=e.diagnostics.iter(0),!l.value||l.from==i.from&&l.to==i.to)?!1:(f.dispatch({selection:{anchor:l.from,head:l.to},scrollIntoView:!0}),!0)},Df=f=>{let{state:e}=f,i=e.field(ua,!1);if(!i)return!1;let l=e.selection.main,m,S,j,Y;return i.diagnostics.between(0,e.doc.length,(te,Ee)=>{Ee<l.to&&(m==null||m<te)&&(m=te,S=Ee),(j==null||te>j)&&(j=te,Y=Ee)}),j==null||m==null&&j==l.from?!1:(f.dispatch({selection:{anchor:m??j,head:S??Y},scrollIntoView:!0}),!0)},ru=[{key:"Mod-Shift-m",run:Tu,preventDefault:!0},{key:"F8",run:qh}],Su=null,Dl=St.define({combine(f){return Object.assign({sources:f.map(e=>e.source)},xr(f.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(e,i)=>e?i?l=>e(l)||i(l):e:i}))}});function ff(f,e={}){return[Dl.of({source:f,config:e}),Su,Ab]}function hh(f){let e=f.plugin(Su);e&&e.force()}function Hd(f){let e=[];if(f)e:for(let{name:i}of f){for(let l=0;l<i.length;l++){let m=i[l];if(/[a-zA-Z]/.test(m)&&!e.some(S=>S.toLowerCase()==m.toLowerCase())){e.push(m);continue e}}e.push("")}return e}function Mp(f,e,i){var l;let m=i?Hd(e.actions):[];return Ja("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},Ja("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage():e.message),(l=e.actions)===null||l===void 0?void 0:l.map((S,j)=>{let Y=!1,te=rn=>{if(rn.preventDefault(),Y)return;Y=!0;let Nn=zs(f.state.field(ua).diagnostics,e);Nn&&S.apply(f,Nn.from,Nn.to)},{name:Ee}=S,Se=m[j]?Ee.indexOf(m[j]):-1,Tt=Se<0?Ee:[Ee.slice(0,Se),Ja("u",Ee.slice(Se,Se+1)),Ee.slice(Se+1)];return Ja("button",{type:"button",class:"cm-diagnosticAction",onclick:te,onmousedown:te,"aria-label":` Action: ${Ee}${Se<0?"":` (access key "${m[j]})"`}.`},Tt)}),e.source&&Ja("div",{class:"cm-diagnosticSource"},e.source))}class gm extends Bl{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return Ja("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class I1{constructor(e,i){this.diagnostic=i,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=Mp(e,i,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class a0{constructor(e){this.view=e,this.items=[];let i=m=>{if(m.keyCode==27)Ud(this.view),this.view.focus();else if(m.keyCode==38||m.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(m.keyCode==40||m.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(m.keyCode==36)this.moveSelection(0);else if(m.keyCode==35)this.moveSelection(this.items.length-1);else if(m.keyCode==13)this.view.focus();else if(m.keyCode>=65&&m.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:S}=this.items[this.selectedIndex],j=Hd(S.actions);for(let Y=0;Y<j.length;Y++)if(j[Y].toUpperCase().charCodeAt(0)==m.keyCode){let te=zs(this.view.state.field(ua).diagnostics,S);te&&S.actions[Y].apply(e,te.from,te.to)}}else return;m.preventDefault()},l=m=>{for(let S=0;S<this.items.length;S++)this.items[S].dom.contains(m.target)&&this.moveSelection(S)};this.list=Ja("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:i,onclick:l}),this.dom=Ja("div",{class:"cm-panel-lint"},this.list,Ja("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>Ud(this.view)},"\xD7")),this.update()}get selectedIndex(){let e=this.view.state.field(ua).selected;if(!e)return-1;for(let i=0;i<this.items.length;i++)if(this.items[i].diagnostic==e.diagnostic)return i;return-1}update(){let{diagnostics:e,selected:i}=this.view.state.field(ua),l=0,m=!1,S=null;for(e.between(0,this.view.state.doc.length,(j,Y,{spec:te})=>{let Ee=-1,Se;for(let Tt=l;Tt<this.items.length;Tt++)if(this.items[Tt].diagnostic==te.diagnostic){Ee=Tt;break}Ee<0?(Se=new I1(this.view,te.diagnostic),this.items.splice(l,0,Se),m=!0):(Se=this.items[Ee],Ee>l&&(this.items.splice(l,Ee-l),m=!0)),i&&Se.diagnostic==i.diagnostic?Se.dom.hasAttribute("aria-selected")||(Se.dom.setAttribute("aria-selected","true"),S=Se):Se.dom.hasAttribute("aria-selected")&&Se.dom.removeAttribute("aria-selected"),l++});l<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)m=!0,this.items.pop();this.items.length==0&&(this.items.push(new I1(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),m=!0),S?(this.list.setAttribute("aria-activedescendant",S.id),this.view.requestMeasure({key:this,read:()=>({sel:S.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:j,panel:Y})=>{let te=Y.height/this.list.offsetHeight;j.top<Y.top?this.list.scrollTop-=(Y.top-j.top)/te:j.bottom>Y.bottom&&(this.list.scrollTop+=(j.bottom-Y.bottom)/te)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),m&&this.sync()}sync(){let e=this.list.firstChild;function i(){let l=e;e=l.nextSibling,l.remove()}for(let l of this.items)if(l.dom.parentNode==this.list){for(;e!=l.dom;)i();e=l.dom.nextSibling}else this.list.insertBefore(l.dom,e);for(;e;)i()}moveSelection(e){if(this.selectedIndex<0)return;let i=this.view.state.field(ua),l=zs(i.diagnostics,this.items[e].diagnostic);l&&this.view.dispatch({selection:{anchor:l.from,head:l.to},scrollIntoView:!0,effects:nl.of(l)})}static open(e){return new a0(e)}}function l0(f,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(f)}</svg>')`}function vm(f){return l0(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${f}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const R1=yo.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:vm("#d11")},".cm-lintRange-warning":{backgroundImage:vm("orange")},".cm-lintRange-info":{backgroundImage:vm("#999")},".cm-lintRange-hint":{backgroundImage:vm("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function L1(f){return f=="error"?4:f=="warning"?3:f=="info"?2:1}class Wb extends kc{constructor(e){super(),this.diagnostics=e,this.severity=e.reduce((i,l)=>L1(i)<L1(l.severity)?l.severity:i,"hint")}toDOM(e){let i=document.createElement("div");i.className="cm-lint-marker cm-lint-marker-"+this.severity;let l=this.diagnostics,m=e.state.facet(j1).tooltipFilter;return m&&(l=m(l)),l.length&&(i.onmouseover=()=>Kb(e,i,l)),i}}function Zb(f,e){let i=l=>{let m=e.getBoundingClientRect();if(!(l.clientX>m.left-10&&l.clientX<m.right+10&&l.clientY>m.top-10&&l.clientY<m.bottom+10)){for(let S=l.target;S;S=S.parentNode)if(S.nodeType==1&&S.classList.contains("cm-tooltip-lint"))return;window.removeEventListener("mousemove",i),f.state.field(Sb)&&f.dispatch({effects:lb.of(null)})}};window.addEventListener("mousemove",i)}function Kb(f,e,i){function l(){let j=f.elementAtHeight(e.getBoundingClientRect().top+5-f.documentTop);f.coordsAtPos(j.from)&&f.dispatch({effects:lb.of({pos:j.from,above:!1,create(){return{dom:Mc(f,i),getCoords:()=>e.getBoundingClientRect()}}})}),e.onmouseout=e.onmousemove=null,Zb(f,e)}let{hoverTime:m}=f.state.facet(j1),S=setTimeout(l,m);e.onmouseout=()=>{clearTimeout(S),e.onmouseout=e.onmousemove=null},e.onmousemove=()=>{clearTimeout(S),S=setTimeout(l,m)}}function Gb(f,e){let i=Object.create(null);for(let m of e){let S=f.lineAt(m.from);(i[S.from]||(i[S.from]=[])).push(m)}let l=[];for(let m in i)l.push(new Wb(i[m]).range(+m));return Wo.of(l,!0)}const Yb=vf({class:"cm-gutter-lint",markers:f=>f.state.field(Tb)}),Tb=Sn.define({create(){return Wo.empty},update(f,e){f=f.map(e.changes);let i=e.state.facet(j1).markerFilter;for(let l of e.effects)if(l.is(tc)){let m=l.value;i&&(m=i(m||[])),f=Gb(e.state.doc,m.slice(0))}return f}}),lb=Nr.define(),Sb=Sn.define({create(){return null},update(f,e){return f&&e.docChanged&&(f=Ys(e,f)?null:Object.assign(Object.assign({},f),{pos:e.changes.mapPos(f.pos)})),e.effects.reduce((i,l)=>l.is(lb)?l.value:i,f)},provide:f=>vi.from(f)}),Qb=yo.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:l0('<path fill="#aaf" stroke="#77e" stroke-width="6" stroke-linejoin="round" d="M5 5L35 5L35 35L5 35Z"/>')},".cm-lint-marker-warning":{content:l0('<path fill="#fe8" stroke="#fd7" stroke-width="6" stroke-linejoin="round" d="M20 6L37 35L3 35Z"/>')},".cm-lint-marker-error":{content:l0('<circle cx="20" cy="20" r="15" fill="#f87" stroke="#f43" stroke-width="6"/>')}}),Ab=[ua,yo.decorations.compute([ua],f=>{let{selected:e,panel:i}=f.field(ua);return!e||!i||e.from==e.to?ko.none:ko.set([Bo.range(e.from,e.to)])}),xd(wa,{hideOn:Ys}),R1],j1=St.define({combine(f){return xr(f,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function vy(f={}){return[j1.of(f),Tb,Yb,Qb,Sb]}function by(f,e){let i=f.field(ua,!1);if(i&&i.diagnostics.size)for(let l=RangeSet.iter([i.diagnostics]);l.value;l.next())e(l.value.spec.diagnostic,l.from,l.to)}var Mb=function(e){e===void 0&&(e={});var{crosshairCursor:i=!1}=e,l=[];e.closeBracketsKeymap!==!1&&(l=l.concat(J)),e.defaultKeymap!==!1&&(l=l.concat(Kg)),e.searchKeymap!==!1&&(l=l.concat(xv)),e.historyKeymap!==!1&&(l=l.concat(Qm)),e.foldKeymap!==!1&&(l=l.concat(ec)),e.completionKeymap!==!1&&(l=l.concat(pi)),e.lintKeymap!==!1&&(l=l.concat(ru));var m=[];return e.lineNumbers!==!1&&m.push(Pp()),e.highlightActiveLineGutter!==!1&&m.push(ep()),e.highlightSpecialChars!==!1&&m.push($h()),e.history!==!1&&m.push(Af()),e.foldGutter!==!1&&m.push(m0()),e.drawSelection!==!1&&m.push(Ar()),e.dropCursor!==!1&&m.push(uc()),e.allowMultipleSelections!==!1&&m.push(Io.allowMultipleSelections.of(!0)),e.indentOnInput!==!1&&m.push(ci()),e.syntaxHighlighting!==!1&&m.push(lp(Tm,{fallback:!0})),e.bracketMatching!==!1&&m.push(kf()),e.closeBrackets!==!1&&m.push(sb()),e.autocompletion!==!1&&m.push(Hr()),e.rectangularSelection!==!1&&m.push(Ml()),i!==!1&&m.push(Ac()),e.highlightActiveLine!==!1&&m.push(wu()),e.highlightSelectionMatches!==!1&&m.push(rv()),e.tabSize&&typeof e.tabSize=="number"&&m.push(Ah.of(" ".repeat(e.tabSize))),m.concat([Ld.of(l.flat())]).filter(Boolean)},yy=function(e){e===void 0&&(e={});var i=[];e.defaultKeymap!==!1&&(i=i.concat(defaultKeymap)),e.historyKeymap!==!1&&(i=i.concat(historyKeymap));var l=[];return e.highlightSpecialChars!==!1&&l.push(highlightSpecialChars()),e.history!==!1&&l.push(history()),e.drawSelection!==!1&&l.push(drawSelection()),e.syntaxHighlighting!==!1&&l.push(syntaxHighlighting(defaultHighlightStyle,{fallback:!0})),l.concat([keymap.of(i.flat())]).filter(Boolean)};const Ob="#e5c07b",cb="#e06c75",Pb="#56b6c2",Db="#ffffff",Ag="#abb2bf",B1="#7d8799",Ib="#61afef",Rb="#98c379",ub="#d19a66",Lb="#c678dd",jb="#21252b",db="#2c313a",hb="#282c34",N1="#353a42",Bb="#3E4451",fb="#528bff",wy={chalky:Ob,coral:cb,cyan:Pb,invalid:Db,ivory:Ag,stone:B1,malibu:Ib,sage:Rb,whiskey:ub,violet:Lb,darkBackground:jb,highlightBackground:db,background:hb,tooltipBackground:N1,selection:Bb,cursor:fb},Jb=yo.theme({"&":{color:Ag,backgroundColor:hb},".cm-content":{caretColor:fb},".cm-cursor, .cm-dropCursor":{borderLeftColor:fb},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:Bb},".cm-panels":{backgroundColor:jb,color:Ag},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:hb,color:B1,border:"none"},".cm-activeLineGutter":{backgroundColor:db},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:N1},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:N1,borderBottomColor:N1},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:db,color:Ag}}},{dark:!0}),Xb=_f.define([{tag:it.keyword,color:Lb},{tag:[it.name,it.deleted,it.character,it.propertyName,it.macroName],color:cb},{tag:[it.function(it.variableName),it.labelName],color:Ib},{tag:[it.color,it.constant(it.name),it.standard(it.name)],color:ub},{tag:[it.definition(it.name),it.separator],color:Ag},{tag:[it.typeName,it.className,it.number,it.changed,it.annotation,it.modifier,it.self,it.namespace],color:Ob},{tag:[it.operator,it.operatorKeyword,it.url,it.escape,it.regexp,it.link,it.special(it.string)],color:Pb},{tag:[it.meta,it.comment],color:B1},{tag:it.strong,fontWeight:"bold"},{tag:it.emphasis,fontStyle:"italic"},{tag:it.strikethrough,textDecoration:"line-through"},{tag:it.link,color:B1,textDecoration:"underline"},{tag:it.heading,fontWeight:"bold",color:cb},{tag:[it.atom,it.bool,it.special(it.variableName)],color:ub},{tag:[it.processingInstruction,it.string,it.inserted],color:Rb},{tag:it.invalid,color:Db}]),qb=[Jb,lp(Xb)];var ey=yo.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),ty=function(e){e===void 0&&(e={});var{indentWithTab:i=!0,editable:l=!0,readOnly:m=!1,theme:S="light",placeholder:j="",basicSetup:Y=!0}=e,te=[];switch(i&&te.unshift(Ld.of([Gg])),Y&&(typeof Y=="boolean"?te.unshift(Mb()):te.unshift(Mb(Y))),j&&te.unshift(sf(j)),S){case"light":te.push(ey);break;case"dark":te.push(qb);break;case"none":break;default:te.push(S);break}return l===!1&&te.push(yo.editable.of(!1)),m&&te.push(Io.readOnly.of(!0)),[...te]},ny=f=>({line:f.state.doc.lineAt(f.state.selection.main.from),lineCount:f.state.doc.lines,lineBreak:f.state.lineBreak,length:f.state.doc.length,readOnly:f.state.readOnly,tabSize:f.state.tabSize,selection:f.state.selection,selectionAsSingle:f.state.selection.asSingle().main,ranges:f.state.selection.ranges,selectionCode:f.state.sliceDoc(f.state.selection.main.from,f.state.selection.main.to),selections:f.state.selection.ranges.map(e=>f.state.sliceDoc(e.from,e.to)),selectedText:f.state.selection.ranges.some(e=>!e.empty)}),Nb=Hn.define(),ry=[];function Fb(f){var{value:e,selection:i,onChange:l,onStatistics:m,onCreateEditor:S,onUpdate:j,extensions:Y=ry,autoFocus:te,theme:Ee="light",height:Se=null,minHeight:Tt=null,maxHeight:rn=null,width:Nn=null,minWidth:sr=null,maxWidth:Gr=null,placeholder:Zr="",editable:_i=!0,readOnly:ro=!1,indentWithTab:To=!0,basicSetup:Zi=!0,root:io,initialState:po}=f,[Mo,ks]=(0,n.useState)(),[Xo,us]=(0,n.useState)(),[ja,Ul]=(0,n.useState)(),iu=yo.theme({"&":{height:Se,minHeight:Tt,maxHeight:rn,width:Nn,minWidth:sr,maxWidth:Gr},"& .cm-scroller":{height:"100% !important"}}),Vu=yo.updateListener.of(Pc=>{if(Pc.docChanged&&typeof l=="function"&&!Pc.transactions.some(Wc=>Wc.annotation(Nb))){var ou=Pc.state.doc,Hl=ou.toString();l(Hl,Pc)}m&&m(ny(Pc))}),Au=ty({theme:Ee,editable:_i,readOnly:ro,placeholder:Zr,indentWithTab:To,basicSetup:Zi}),Oc=[Vu,iu,...Au];return j&&typeof j=="function"&&Oc.push(yo.updateListener.of(j)),Oc=Oc.concat(Y),(0,n.useEffect)(()=>{if(Mo&&!ja){var Pc={doc:e,selection:i,extensions:Oc},ou=po?Io.fromJSON(po.json,Pc,po.fields):Io.create(Pc);if(Ul(ou),!Xo){var Hl=new yo({state:ou,parent:Mo,root:io});us(Hl),S&&S(Hl,ou)}}return()=>{Xo&&(Ul(void 0),us(void 0))}},[Mo,ja]),(0,n.useEffect)(()=>ks(f.container),[f.container]),(0,n.useEffect)(()=>()=>{Xo&&(Xo.destroy(),us(void 0))},[Xo]),(0,n.useEffect)(()=>{te&&Xo&&Xo.focus()},[te,Xo]),(0,n.useEffect)(()=>{Xo&&Xo.dispatch({effects:Nr.reconfigure.of(Oc)})},[Ee,Y,Se,Tt,rn,Nn,sr,Gr,Zr,_i,ro,To,Zi,l,j]),(0,n.useEffect)(()=>{if(e!==void 0){var Pc=Xo?Xo.state.doc.toString():"";Xo&&e!==Pc&&Xo.dispatch({changes:{from:0,to:Pc.length,insert:e||""},annotations:[Nb.of(!0)]})}},[e,Xo]),{state:ja,setState:Ul,view:Xo,setView:us,container:Mo,setContainer:ks}}var iy=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],oy=(0,n.forwardRef)((f,e)=>{var{className:i,value:l="",selection:m,extensions:S=[],onChange:j,onStatistics:Y,onCreateEditor:te,onUpdate:Ee,autoFocus:Se,theme:Tt="light",height:rn,minHeight:Nn,maxHeight:sr,width:Gr,minWidth:Zr,maxWidth:_i,basicSetup:ro,placeholder:To,indentWithTab:Zi,editable:io,readOnly:po,root:Mo,initialState:ks}=f,Xo=(0,Dm.Z)(f,iy),us=(0,n.useRef)(null),{state:ja,view:Ul,container:iu}=Fb({container:us.current,root:Mo,value:l,autoFocus:Se,theme:Tt,height:rn,minHeight:Nn,maxHeight:sr,width:Gr,minWidth:Zr,maxWidth:_i,basicSetup:ro,placeholder:To,indentWithTab:Zi,editable:io,readOnly:po,selection:m,onChange:j,onStatistics:Y,onCreateEditor:te,onUpdate:Ee,extensions:S,initialState:ks});if((0,n.useImperativeHandle)(e,()=>({editor:us.current,state:ja,view:Ul}),[us,iu,ja,Ul]),typeof l!="string")throw new Error("value must be typeof string but got "+typeof l);var Vu=typeof Tt=="string"?"cm-theme-"+Tt:"cm-theme";return(0,r.jsx)("div",(0,Kp.Z)({ref:us,className:""+Vu+(i?" "+i:"")},Xo))});oy.displayName="CodeMirror";const _y=null;var sy=t(46449);const $b=Nr.define(),Vb=Nr.define(),ay=ko.mark({attributes:{style:"background-color: yellow; color: black"}}),ly=Sn.define({create(){return ko.none},update(f,e){return f=f.map(e.changes),e.effects.forEach(i=>{i.is($b)?f=f.update({add:i.value,sort:!0}):i.is(Vb)&&(f=f.update({filter:i.value}))}),f},provide:f=>yo.decorations.from(f)});var cy=t(27121),uy=t(78048),zb=t(96987),dy=t(17734),hy=t(61456),fy=t(90820),py=t(66362);const my=(0,n.forwardRef)(({label:f,error:e,hint:i,labelAction:l,value:m="",required:S=!1,disabled:j=!1,onChange:Y=()=>null,...te},Ee)=>{const Se=(0,n.useRef)(),Tt=(0,n.useRef)(),rn=(0,n.useRef)(),Nn=Boolean(e),sr=Mo=>{const ks=Tt.current?.doc;if(ks){const{text:Xo,to:us}=ks.line(Mo),ja=us-Xo.trimStart().length;us>ja&&rn.current?.dispatch({effects:$b.of([ay.range(ja,us)])})}},Gr=()=>{const Mo=Tt.current?.doc;if(Mo){const ks=Mo.length||0;rn.current?.dispatch({effects:Vb.of((Xo,us)=>us<=0||Xo>=ks)})}},Zr=({state:Mo,view:ks})=>{rn.current=ks,Tt.current=Mo,Gr();const us=Mm()(ks);us.length&&sr(Mo.doc.lineAt(us[0].from).number)},_i=(Mo,ks)=>{Zr(ks),Y(Mo)},ro=(Mo,ks)=>{rn.current=Mo,Tt.current=ks,Zr({view:Mo,state:ks})},{setContainer:To,view:Zi}=Fb({value:m,onCreateEditor:ro,container:Se.current,editable:!j,extensions:[Pm(),ly],onChange:_i,theme:"dark",basicSetup:{lineNumbers:!0,bracketMatching:!0,closeBrackets:!0,indentOnInput:!0,syntaxHighlighting:!0,highlightSelectionMatches:!0,tabSize:2}}),io=()=>{!j&&Zi&&Zi.focus()},po=(0,cy.e)(Se,To);return(0,n.useImperativeHandle)(Ee,()=>({...Zi?.dom,focus(){Zi&&Zi.focus()},scrollIntoView(Mo){Zi&&Zi.dom.scrollIntoView(Mo)}}),[Zi]),(0,r.jsx)(uy.g,{error:e,hint:i,required:S,children:(0,r.jsxs)(zb.k,{direction:"column",alignItems:"stretch",gap:1,children:[f&&(0,r.jsx)(dy.Q,{onClick:io,action:l,children:f}),(0,r.jsx)(gy,{ref:po,hasError:Nn,alignItems:"stretch",fontSize:2,hasRadius:!0,...te}),(0,r.jsx)(hy.c,{}),(0,r.jsx)(fy.J,{})]})})}),gy=(0,sy.default)(zb.k)`
  line-height: ${({theme:f})=>f.lineHeights[2]};

  .cm-editor {
    /** 
     * Hard coded since the color is the same between themes,
     * theme.colors.neutral800 changes between themes 
     */
    background-color: #32324d;
    width: 100%;
    outline: none;
  }

  .cm-scroller {
    border: 1px solid ${({theme:f,hasError:e})=>e?f.colors.danger600:f.colors.neutral200};
    /* inputFocusStyle will receive hasError prop */
    ${(0,py.k3)()}
  }

  .cm-editor,
  .cm-scroller {
    border-radius: ${({theme:f})=>f.borderRadius};
  }

  .cm-gutters,
  .cm-activeLineGutter {
    /** 
     * Hard coded since the color is the same between themes,
     * theme.colors.neutral700 changes between themes 
     */
    background-color: #4a4a6a;
  }
`},52953:(Z,v,t)=>{"use strict";t.d(v,{k:()=>a});var r=t(85893),n=t(40840),s=t(16607);const a=({tagName:c,attributeName:h="",...p})=>{const d=()=>{const C=document.activeElement;return C?c?C.tagName.toLowerCase()===c:C.hasAttribute(h):!1},k=C=>c?C.querySelectorAll(c):C.querySelectorAll(`[${h}]`),M=C=>{switch(C.key){case n.y.RIGHT:case n.y.DOWN:{if(d()){C.preventDefault();const w=document.activeElement,I=[...k(C.currentTarget)],F=I.findIndex(B=>B===w),U=F+1<I.length?F+1:0;I[U].focus()}break}case n.y.LEFT:case n.y.UP:{if(d()){C.preventDefault();const w=document.activeElement,I=[...k(C.currentTarget)],F=I.findIndex(B=>B===w),U=F-1>-1?F-1:I.length-1;I[U].focus()}break}case n.y.HOME:{d()&&(C.preventDefault(),k(C.currentTarget).item(0).focus());break}case n.y.END:{if(d()){C.preventDefault();const w=k(C.currentTarget);w.item(w.length-1).focus()}break}}};return(0,r.jsx)(s.x,{onKeyDown:M,...p})}},23212:(Z,v,t)=>{"use strict";t.d(v,{V:()=>r});const r={Log:"live-region-log",Status:"live-region-status",Alert:"live-region-alert"}},334:(Z,v,t)=>{"use strict";t.d(v,{G:()=>h});var r=t(67294),n=t(23212);const s=p=>{const d=document.querySelector(`#${n.V.Log}`);d&&(d.innerText=p)},a=p=>{const d=document.querySelector(`#${n.V.Status}`);d&&(d.innerText=p)},c=p=>{const d=document.querySelector(`#${n.V.Alert}`);d&&(d.innerText=p)},h=()=>((0,r.useEffect)(()=>()=>{s(""),c(""),a("")},[]),{notifyLog:s,notifyAlert:c,notifyStatus:a})},74863:(Z,v,t)=>{"use strict";t.d(v,{a:()=>d});var r=t(85893),n=t(67294),s=t(46449);const a="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjMiIGhlaWdodD0iNjMiIHZpZXdCb3g9IjAgMCA2MyA2MyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQyLjU1NjMgMTEuOTgxNkMzOS40ODQgMTAuMzA3MSAzNS44NTc1IDkuMjkwOTcgMzIuMzM1NCA5LjEzNTIxQzI4LjY0NDMgOC45Mjg4OCAyNC44Mjk1IDkuNzIzMTggMjEuMzMzNiAxMS40MTI5QzIwLjkxMjMgMTEuNTkwMSAyMC41Mzc2IDExLjgxMDEgMjAuMTcyMiAxMi4wMjQ5TDIwLjAxMDggMTIuMTE3OUMxOS44Nzc0IDEyLjE5NTEgMTkuNzQ0MSAxMi4yNzI0IDE5LjYwOCAxMi4zNTM2QzE5LjMyNTMgMTIuNTE0NiAxOS4wNDkyIDEyLjY3NDQgMTguNzU0NCAxMi44NzkyQzE4LjU0NjMgMTMuMDMyOSAxOC4zMzk1IDEzLjE3NTkgMTguMTMwMSAxMy4zMjNDMTcuNTY1OCAxMy43MjA4IDE2Ljk4NjggMTQuMTMxNyAxNi40OTgzIDE0LjU5NzlDMTQuODQ3NiAxNS45NTI0IDEzLjU1NzEgMTcuNjA3NSAxMi42MDcxIDE4LjkyMTRDMTAuNDM2NSAyMi4xNTY2IDkuMDg2MjIgMjUuOTU2NyA4LjgwNzAyIDI5LjYxNDNMOC43NzY0IDMwLjE1ODhDOC43MzMyOCAzMC45MTk2IDguNjg0NzYgMzEuNzA1NyA4Ljc1MzUzIDMyLjQ1NTVDOC43NjY0OCAzMi42MDg0IDguNzY2MSAzMi43NjM4IDguNzc1MDYgMzIuOTE0QzguNzg4OTUgMzMuMjI5IDguODAxNTIgMzMuNTM3MyA4Ljg0NiAzMy44NjcyTDkuMDczOTYgMzUuNDIyMUM5LjA5NzU2IDM1LjU3NjQgOS4xMTk4IDM1Ljc0MTMgOS4xNjMzIDM1LjkyNjNMOS42NTkxOSAzNy45MjcyTDEwLjEzOCAzOS4yODIzQzEwLjI3MjkgMzkuNjY3MyAxMC40MTU4IDQwLjA3NTEgMTAuNiA0MC40M0MxMi4wMjkyIDQzLjYzNyAxNC4xNDI1IDQ2LjQ1NzggMTYuNzA2MyA0OC41ODVDMTkuMDUwOCA1MC41Mjk2IDIxLjgyNCA1Mi4wMDIzIDI0Ljc0OTEgNTIuODQ1MkwyNi4yMzcxIDUzLjIzNzZDMjYuMzc4MSA1My4yNjkzIDI2LjQ5MjYgNTMuMjg4OSAyNi42MDMxIDUzLjMwNThMMjYuNzc3NSA1My4zMzExQzI3LjAwNTIgNTMuMzYzNiAyNy4yMTk1IDUzLjM5ODYgMjcuNDQ0NSA1My40MzVDMjcuODU5OCA1My41MDc2IDI4LjI2NzIgNTMuNTc0OCAyOC43MDc5IDUzLjYxODNMMzAuNTY0MSA1My43MjI5QzMwLjk1MTYgNTMuNzI0OSAzMS4zMzUyIDUzLjcwNjggMzEuNzA4MSA1My42ODc0QzMxLjkwMzkgNTMuNjgxIDMyLjA5ODQgNTMuNjY4MSAzMi4zMjg4IDUzLjY2MkMzNC41MjUzIDUzLjQ3NzIgMzYuNTEwNiA1My4wNjM0IDM4LjA1MTYgNTIuNDY1MkMzOC4xNzY5IDUyLjQxNzEgMzguMzAwOCA1Mi4zNzk2IDM4LjQyMzQgNTIuMzM1NUMzOC42NzI3IDUyLjI0OTkgMzguOTI1OSA1Mi4xNjcgMzkuMTQzMiA1Mi4wNTk5TDQwLjg1OTEgNTEuMjYyNkw0Mi41NzAyIDUwLjI2NkM0Mi45MDA5IDUwLjA2ODIgNDMuMDIwNSA0OS42NDE0IDQyLjgyODIgNDkuMjk4NEM0Mi42MzIgNDguOTUyNiA0Mi4yMDM0IDQ4LjgzMDggNDEuODYzNCA0OS4wMTY2TDQwLjE3OTIgNDkuOTIxOEwzOC40OTk1IDUwLjYyMjRDMzguMzE2OSA1MC42OTUzIDM4LjEyMSA1MC43NTM0IDM3LjkyMjQgNTAuODE1NUMzNy43ODM4IDUwLjg0ODkgMzcuNjUxOCA1MC44OTgzIDM3LjUwMTIgNTAuOTQwOEMzNi4wNzExIDUxLjQzNSAzNC4yNDQ1IDUxLjc0MjUgMzIuMjQ0IDUxLjgzNDZDMzIuMDQ0MiA1MS44MzgzIDMxLjg0NzEgNTEuODM3OSAzMS42NTQgNTEuODQwM0MzMS4zMDUxIDUxLjg0MTQgMzAuOTYwMiA1MS44NDUxIDMwLjYzOTIgNTEuODMwNUwyOC45MTc3IDUxLjY3MjVDMjguNTQ3NiA1MS42MTkgMjguMTY5NSA1MS41NDI3IDI3Ljc4NDggNTEuNDY3OEMyNy41NjM5IDUxLjQxNjcgMjcuMzM3NiA1MS4zNzM3IDI3LjEyOTkgNTEuMzM3NEwyNi45NTI5IDUxLjI5ODdDMjYuODcwNCA1MS4yODM0IDI2Ljc3NzIgNTEuMjY2NyAyNi43MzMzIDUxLjI1NDNMMjUuMzQ2NiA1MC44MzIyQzIyLjc2NTEgNDkuOTc4OSAyMC4zMyA0OC41NzI5IDE4LjI5NDIgNDYuNzU1N0MxNi4xMDU2IDQ0Ljc5NTEgMTQuMzMzOSA0Mi4yMzM1IDEzLjE3NDIgMzkuMzU4MkMxMi4wMjc2IDM2LjYwMTMgMTEuNTk4OCAzMy4yNzkyIDExLjk3MTYgMzAuMDA3NkMxMi4zMTQ1IDI3LjAyMTMgMTMuMzk0OCAyNC4xNjM1IDE1LjE4NTggMjEuNTA4M0MxNS4zMDM0IDIxLjMzMzkgMTUuNDIxIDIxLjE1OTYgMTUuNTIxMiAyMS4wMTk2QzE2LjQzMDkgMTkuODY4OCAxNy41NDA4IDE4LjU1ODkgMTguOTQ4MyAxNy40OTZDMTkuMzM2NyAxNy4xNTI1IDE5Ljc4NjIgMTYuODU2IDIwLjI2MTEgMTYuNTQ3OEMyMC40ODc4IDE2LjQwMDkgMjAuNzA3OSAxNi4yNTUzIDIwLjg5MDcgMTYuMTMwNkMyMS4wOTc0IDE2LjAwNDggMjEuMzE4OCAxNS44ODMxIDIxLjUzNDggMTUuNzY5NEMyMS42NzYxIDE1LjY5NzUgMjEuODE2MiAxNS42MTkgMjEuOTM4OCAxNS41NTc2TDIyLjEwMDIgMTUuNDY0NkMyMi40MDAyIDE1LjMwMzcgMjIuNjc0OSAxNS4xNTQ2IDIyLjk5MDggMTUuMDM5TDI0LjExODYgMTQuNTcxNUMyNC4zMzk5IDE0LjQ4NDQgMjQuNTcxOCAxNC40MTU5IDI0Ljc5OTcgMTQuMzQ0N0MyNC45NTMgMTQuMjk4MiAyNS4wOTgyIDE0LjI2MzUgMjUuMjYzNSAxNC4yMDc4QzI1Ljc4NiAxNC4wMTgyIDI2LjMyODMgMTMuOTExMiAyNi45MTA1IDEzLjc5NjVDMjcuMTE3IDEzLjc1NzEgMjcuMzMwMiAxMy43MTYzIDI3LjU2MDggMTMuNjU4NUMyNy43NTUzIDEzLjYxMSAyNy45NzM3IDEzLjU5NjkgMjguMjA4MiAxMy41NzYyQzI4LjM2NCAxMy41NjAzIDI4LjUxNzIgMTMuNTQ4MyAyOC42MzE4IDEzLjUzMzNDMjguNzg3NiAxMy41MTczIDI4LjkzNDIgMTMuNTA2NiAyOS4wOTI3IDEzLjQ4NjdDMjkuMzI4NSAxMy40NTU1IDI5LjU0NTYgMTMuNDM0NyAyOS43NDk0IDEzLjQzMzdDMzAuMDIzNyAxMy40NCAzMC4yOTk0IDEzLjQzNTcgMzAuNTc3NyAxMy40Mjc0QzMxLjA4MTEgMTMuNDIxIDMxLjU1NzkgMTMuNDE5NyAzMi4wMzE4IDEzLjQ5MTRDMzQuOTY2NCAxMy43MzUyIDM3LjcxNDQgMTQuNjA4NSA0MC4yMDUyIDE2LjA4NjhDNDIuMzQ4OSAxNy4zNjU1IDQ0LjI3MTYgMTkuMTUyNSA0NS43NjA3IDIxLjI2NEM0Ny4wMjU1IDIzLjA2MjggNDcuOTc1NiAyNS4wNTI4IDQ4LjQ5MjggMjcuMDM5M0M0OC41NzIgMjcuMzE3NiA0OC42Mjk5IDI3LjU5MzEgNDguNjgzOSAyNy44NjU5QzQ4LjcxNTQgMjguMDQyOCA0OC43NTYzIDI4LjIxNDUgNDguNzg5MiAyOC4zNjM2QzQ4LjgwMzcgMjguNDU0MSA0OC44MjA4IDI4LjU0MDYgNDguODQ0NSAyOC42MjU4QzQ4Ljg3NDkgMjguNzQ0MyA0OC44OTg2IDI4Ljg2NCA0OC45MTE2IDI4Ljk2NTFMNDguOTc5MyAyOS42MDQ3QzQ4Ljk5MjIgMjkuNzc0OCA0OS4wMTMyIDI5LjkzMzEgNDkuMDMwMSAzMC4wODg3QzQ5LjA2NjggMzAuMzI2OCA0OS4wODg5IDMwLjU2MDggNDkuMDk2NCAzMC43NTYxTDQ5LjEwODMgMzEuOTAwMUM0OS4xMzEyIDMyLjMzMDcgNDkuMDg5IDMyLjcxMTYgNDkuMDUyMiAzMy4wNjczQzQ5LjAzODQgMzMuMjU5OCA0OS4wMTI2IDMzLjQ0NDMgNDkuMDEyMyAzMy41ODI0QzQ4Ljk5NjEgMzMuNjkyNiA0OC45OTE4IDMzLjc5MzUgNDguOTgzNiAzMy44OTE3QzQ4Ljk3NTMgMzQuMDA3MiA0OC45NzI0IDM0LjExNDggNDguOTQxNCAzNC4yNTU0TDQ4LjU0NDkgMzYuMzA1OUM0OC4zMTM0IDM3Ljg2MjMgNDkuMzc5MyAzOS4zMzY1IDUwLjk0ODggMzkuNTgyMkM1Mi4wNDE3IDM5Ljc2MDEgNTMuMTUzNiAzOS4yODE5IDUzLjc3MTEgMzguMzY2NEM1NC4wMDYzIDM4LjAxNzYgNTQuMTYwNCAzNy42MjU3IDU0LjIyMjcgMzcuMjA2NEw1NC41MjE3IDM1LjI1NzRDNTQuNTUxNCAzNS4wNzU2IDU0LjU3MiAzNC44MyA1NC41ODQ2IDM0LjU3OTFMNTQuNjAyOCAzNC4yMzM4QzU0LjYwOTggMzQuMDU5OCA1NC42MjIzIDMzLjg3NzkgNTQuNjM0NyAzMy42Nzg4QzU0LjY3MzQgMzMuMTA1MiA1NC43MTYzIDMyLjQ0NzkgNTQuNjYxOSAzMS44MDU4TDU0LjU4NjcgMzAuNDI4OUM1NC41NjIyIDMwLjA5NTIgNTQuNTA5NyAyOS43NiA1NC40NTU5IDI5LjQxODFDNTQuNDMxIDI5LjI1NzIgNTQuNDA0OCAyOS4wODk2IDU0LjM4MjYgMjguOTA3NEw1NC4yNjg3IDI4LjEwNEM1NC4yMzMyIDI3LjkyNDQgNTQuMTgwNCAyNy43MjczIDU0LjEzMjkgMjcuNTM5Nkw1NC4wNjQzIDI3LjI0NTRDNTQuMDE5NSAyNy4wNzEgNTMuOTc3MyAyNi44OTI3IDUzLjkzMzggMjYuNzA3NkM1My44NDU1IDI2LjMzMDkgNTMuNzQ3OSAyNS45NDIyIDUzLjYxMyAyNS41NTcxQzUyLjg0IDIzLjAyOTIgNTEuNTM4MyAyMC41MTk0IDQ5LjgzMzggMTguMjc5OUM0Ny44NTQ0IDE1LjY4MiA0NS4zMzMzIDEzLjUwODcgNDIuNTU2MyAxMS45ODE2WiIgZmlsbD0iIzQ5NDVGRiIvPgo8L3N2Zz4K";var c=t(22304);const h=(0,s.keyframes)`
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
`,p=s.default.img`
  animation: ${h} 1s infinite linear;
  will-change: transform;
  ${({small:k,theme:M})=>k&&`width: ${M.spaces[6]}; height: ${M.spaces[6]};`}
`,d=n.forwardRef(({children:k,small:M=!1,...C},w)=>(0,r.jsxs)("div",{role:"alert","aria-live":"assertive",ref:w,...C,children:[(0,r.jsx)(c.T,{children:k}),(0,r.jsx)(p,{src:a,"aria-hidden":!0,small:M})]}))},71543:(Z,v,t)=>{"use strict";t.d(v,{f:()=>c});var r=t(85893),n=t(46449),s=t(16607);const a=(0,n.default)(s.x)`
  overflow: auto;
  max-height: 60vh;
`,c=h=>(0,r.jsx)(a,{padding:7,...h})},51980:(Z,v,t)=>{"use strict";t.d(v,{d:()=>s,t:()=>n});var r=t(67294);const n=(0,r.createContext)(()=>{}),s=()=>(0,r.useContext)(n)},37022:(Z,v,t)=>{"use strict";t.d(v,{m:()=>h});var r=t(85893),n=t(46449),s=t(16607),a=t(96987);const c=(0,n.default)(s.x)`
  border-radius: 0 0 ${({theme:p})=>p.borderRadius} ${({theme:p})=>p.borderRadius};
  border-top: 1px solid ${({theme:p})=>p.colors.neutral150};
`,h=({startActions:p,endActions:d})=>(0,r.jsx)(c,{paddingTop:4,paddingBottom:4,paddingLeft:5,paddingRight:5,background:"neutral100",children:(0,r.jsxs)(a.k,{justifyContent:"space-between",children:[(0,r.jsx)(a.k,{gap:2,children:p}),(0,r.jsx)(a.k,{gap:2,children:d})]})})},36854:(Z,v,t)=>{"use strict";t.d(v,{x:()=>k});var r=t(85893),n=t(35771),s=t(46449),a=t(51980),c=t(96208),h=t(16607),p=t(96987);const d=(0,s.default)(h.x)`
  border-radius: ${({theme:M})=>M.borderRadius} ${({theme:M})=>M.borderRadius} 0 0;
  border-bottom: 1px solid ${({theme:M})=>M.colors.neutral150};
`,k=({children:M,closeLabel:C="Close the modal"})=>{const w=(0,a.d)();return(0,r.jsx)(d,{paddingTop:4,paddingBottom:4,paddingLeft:5,paddingRight:5,background:"neutral100",children:(0,r.jsxs)(p.k,{justifyContent:"space-between",children:[M,(0,r.jsx)(c.h,{onClick:w,"aria-label":C,icon:(0,r.jsx)(n.Z,{})})]})})}},74622:(Z,v,t)=>{"use strict";t.d(v,{P:()=>C});var r=t(85893),n=t(46449),s=t(51980),a=t(61376),c=t(48250),h=t(96987),p=t(11219),d=t(52624),k=t(16607);const M=(0,n.default)(h.k)`
  background: ${({theme:w})=>`${w.colors.neutral800}1F`};
  inset: 0;
`,C=({onClose:w,labelledBy:I,...F})=>((0,c.Z)(!0),(0,r.jsx)(p.h,{children:(0,r.jsx)(s.t.Provider,{value:w,children:(0,r.jsx)(M,{justifyContent:"center",paddingLeft:8,paddingRight:8,position:"fixed",zIndex:4,children:(0,r.jsx)(d.i,{children:(0,r.jsx)(a.B,{onEscapeKeyDown:w,onPointerDownOutside:w,children:(0,r.jsx)(k.x,{"aria-labelledby":I,"aria-modal":!0,onClick:U=>U.stopPropagation(),background:"neutral0",hasRadius:!0,role:"dialog",shadow:"popupShadow",width:`${830/16}rem`,...F})})})})})}))},80167:(Z,v,t)=>{"use strict";t.d(v,{Y:()=>be});var r=t(85893),n=t(67294);let s=new Map,a=!1;try{a=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let c=!1;try{c=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const h={degree:{narrow:{default:"\xB0","ja-JP":" \u5EA6","zh-TW":"\u5EA6","sl-SI":" \xB0"}}};class p{format(ue){let we="";if(!a&&this.options.signDisplay!=null?we=k(this.numberFormatter,this.options.signDisplay,ue):we=this.numberFormatter.format(ue),this.options.style==="unit"&&!c){var Me;let{unit:Ce,unitDisplay:Ne="short",locale:Ye}=this.resolvedOptions(),mt=(Me=h[Ce])===null||Me===void 0?void 0:Me[Ne];we+=mt[Ye]||mt.default}return we}formatToParts(ue){return this.numberFormatter.formatToParts(ue)}formatRange(ue,we){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(ue,we);if(we<ue)throw new RangeError("End date must be >= start date");return`${this.format(ue)} \u2013 ${this.format(we)}`}formatRangeToParts(ue,we){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(ue,we);if(we<ue)throw new RangeError("End date must be >= start date");let Me=this.numberFormatter.formatToParts(ue),Ce=this.numberFormatter.formatToParts(we);return[...Me.map(Ne=>({...Ne,source:"startRange"})),{type:"literal",value:" \u2013 ",source:"shared"},...Ce.map(Ne=>({...Ne,source:"endRange"}))]}resolvedOptions(){let ue=this.numberFormatter.resolvedOptions();return!a&&this.options.signDisplay!=null&&(ue={...ue,signDisplay:this.options.signDisplay}),!c&&this.options.style==="unit"&&(ue={...ue,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),ue}constructor(ue,we={}){this.numberFormatter=d(ue,we),this.options=we}}function d(fe,ue={}){let{numberingSystem:we}=ue;if(we&&fe.indexOf("-u-nu-")===-1&&(fe=`${fe}-u-nu-${we}`),ue.style==="unit"&&!c){var Me;let{unit:Ye,unitDisplay:mt="short"}=ue;if(!Ye)throw new Error('unit option must be provided with style: "unit"');if(!(!((Me=h[Ye])===null||Me===void 0)&&Me[mt]))throw new Error(`Unsupported unit ${Ye} with unitDisplay = ${mt}`);ue={...ue,style:"decimal"}}let Ce=fe+(ue?Object.entries(ue).sort((Ye,mt)=>Ye[0]<mt[0]?-1:1).join():"");if(s.has(Ce))return s.get(Ce);let Ne=new Intl.NumberFormat(fe,ue);return s.set(Ce,Ne),Ne}function k(fe,ue,we){if(ue==="auto")return fe.format(we);if(ue==="never")return fe.format(Math.abs(we));{let Me=!1;if(ue==="always"?Me=we>0||Object.is(we,0):ue==="exceptZero"&&(Object.is(we,-0)||Object.is(we,0)?we=Math.abs(we):Me=we>0),Me){let Ce=fe.format(-we),Ne=fe.format(we),Ye=Ce.replace(Ne,"").replace(/\u200e|\u061C/,"");return[...Ye].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),Ce.replace(Ne,"!!!").replace(Ye,"+").replace("!!!",Ne)}else return fe.format(we)}}const M=new RegExp("^.*\\(.*\\).*$"),C=["latn","arab","hanidec"];class w{parse(ue){return F(this.locale,this.options,ue).parse(ue)}isValidPartialNumber(ue,we,Me){return F(this.locale,this.options,ue).isValidPartialNumber(ue,we,Me)}getNumberingSystem(ue){return F(this.locale,this.options,ue).options.numberingSystem}constructor(ue,we={}){this.locale=ue,this.options=we}}const I=new Map;function F(fe,ue,we){let Me=U(fe,ue);if(!fe.includes("-nu-")&&!Me.isValidPartialNumber(we)){for(let Ce of C)if(Ce!==Me.options.numberingSystem){let Ne=U(fe+(fe.includes("-u-")?"-nu-":"-u-nu-")+Ce,ue);if(Ne.isValidPartialNumber(we))return Ne}}return Me}function U(fe,ue){let we=fe+(ue?Object.entries(ue).sort((Ce,Ne)=>Ce[0]<Ne[0]?-1:1).join():""),Me=I.get(we);return Me||(Me=new B(fe,ue),I.set(we,Me)),Me}class B{parse(ue){let we=this.sanitize(ue);we=T(we,this.symbols.group,"").replace(this.symbols.decimal,".").replace(this.symbols.minusSign,"-").replace(this.symbols.numeral,this.symbols.index);let Me=we?+we:NaN;if(isNaN(Me))return NaN;if(this.options.currencySign==="accounting"&&M.test(ue)&&(Me=-1*Me),this.options.style==="percent"){Me/=100;var Ce;Me=+Me.toFixed(((Ce=this.options.maximumFractionDigits)!==null&&Ce!==void 0?Ce:0)+2)}return Me}sanitize(ue){return ue=ue.replace(this.symbols.literals,""),ue=ue.replace("-",this.symbols.minusSign),this.options.numberingSystem==="arab"&&(ue=ue.replace(",",this.symbols.decimal),ue=ue.replace(String.fromCharCode(1548),this.symbols.decimal),ue=T(ue,".",this.symbols.group)),this.options.locale==="fr-FR"&&(ue=T(ue,".",String.fromCharCode(8239))),ue}isValidPartialNumber(ue,we=-1/0,Me=1/0){return ue=this.sanitize(ue),ue.startsWith(this.symbols.minusSign)&&we<0?ue=ue.slice(this.symbols.minusSign.length):this.symbols.plusSign&&ue.startsWith(this.symbols.plusSign)&&Me>0&&(ue=ue.slice(this.symbols.plusSign.length)),ue.startsWith(this.symbols.group)?!1:(ue=T(ue,this.symbols.group,"").replace(this.symbols.numeral,"").replace(this.symbols.decimal,""),ue.length===0)}constructor(ue,we={}){this.formatter=new Intl.NumberFormat(ue,we),this.options=this.formatter.resolvedOptions(),this.symbols=x(this.formatter,this.options,we)}}const N=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),D=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function x(fe,ue,we){var Me,Ce,Ne,Ye;let mt=fe.formatToParts(-10000.111),Ct=fe.formatToParts(10000.111),ln=D.map(ht=>fe.formatToParts(ht));var $e;let Qe=($e=(Me=mt.find(ht=>ht.type==="minusSign"))===null||Me===void 0?void 0:Me.value)!==null&&$e!==void 0?$e:"-",bt=(Ce=Ct.find(ht=>ht.type==="plusSign"))===null||Ce===void 0?void 0:Ce.value;!bt&&(we?.signDisplay==="exceptZero"||we?.signDisplay==="always")&&(bt="+");let It=(Ne=mt.find(ht=>ht.type==="decimal"))===null||Ne===void 0?void 0:Ne.value,mn=(Ye=mt.find(ht=>ht.type==="group"))===null||Ye===void 0?void 0:Ye.value,un=mt.filter(ht=>!N.has(ht.type)).map(ht=>u(ht.value)),Be=ln.flatMap(ht=>ht.filter(ot=>!N.has(ot.type)).map(ot=>u(ot.value))),je=[...new Set([...un,...Be])].sort((ht,ot)=>ot.length-ht.length),$t=je.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${je.join("|")}|[\\p{White_Space}]`,"gu"),et=[...new Intl.NumberFormat(ue.locale,{useGrouping:!1}).format(9876543210)].reverse(),Kt=new Map(et.map((ht,ot)=>[ht,ot])),kn=new RegExp(`[${et.join("")}]`,"g");return{minusSign:Qe,plusSign:bt,decimal:It,group:mn,literals:$t,numeral:kn,index:ht=>String(Kt.get(ht))}}function T(fe,ue,we){return fe.replaceAll?fe.replaceAll(ue,we):fe.split(ue).join(we)}function u(fe){return fe.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}var b=t(58471),E=t(46449),A=t(33850),R=t(40840),H=t(86564),z=t(92058),V=t(45094),$=t(78048),ee=t(96987),q=t(17734),oe=t(85200),X=t(90820),pe=t(61456);const Ie=E.default.button`
  display: flex;
  height: 1rem;
  align-items: ${({reverse:fe})=>fe?"flex-end":"flex-start"};
  transform: translateY(${({reverse:fe})=>fe?"-2px":"2px"});
  cursor: ${({disabled:fe})=>fe?"not-allowed":void 0};
  svg {
    display: block;
    height: ${4/16}rem;
    transform: ${({reverse:fe})=>fe?"rotateX(180deg)":void 0};
  }
`,se="",be=n.forwardRef(({size:fe="M",startAction:ue,name:we,hint:Me,error:Ce,label:Ne,labelAction:Ye,locale:mt,id:Ct,onValueChange:ln,value:$e,step:Qe=1,required:bt=!1,disabled:It=!1,...mn},un)=>{const Be=(0,z.M)(Ct),je=(0,A.P)("NumberInput"),$t=mt||je.locale,et=(0,n.useRef)(new w($t,{style:"decimal"})),Kt=(0,n.useRef)(new p($t,{maximumFractionDigits:20})),[kn,Tn]=(0,H.T)({prop(ut){const Wt=String($e);return isNaN(Number(Wt))||Wt!==ut&&ut!==""?ut:Kt.current.format(Number($e))},defaultProp:se,onChange(ut){const Wt=et.current.parse(ut??"");ln(isNaN(Wt)?void 0:Wt)}}),ht=ut=>{Tn(String(ut))},ot=({target:{value:ut}})=>{et.current.isValidPartialNumber(ut)&&ht(ut)},Je=()=>{if(!kn){ht(Qe);return}const ut=et.current.parse(kn),Wt=isNaN(ut)?Qe:ut+Qe;ht(Kt.current.format(Wt))},wt=()=>{if(!kn){ht(-Qe);return}const ut=et.current.parse(kn),Wt=isNaN(ut)?-Qe:ut-Qe;ht(Kt.current.format(Wt))},ft=ut=>{if(!It)switch(ut.key){case R.y.DOWN:{ut.preventDefault(),wt();break}case R.y.UP:{ut.preventDefault(),Je();break}}},vn=()=>{if(kn){const ut=et.current.parse(kn),Wt=isNaN(ut)?"":Kt.current.format(ut);ht(Wt)}};return(0,r.jsx)($.g,{name:we,hint:Me,error:Ce,id:Be,required:bt,children:(0,r.jsxs)(ee.k,{direction:"column",alignItems:"stretch",gap:1,children:[Ne&&(0,r.jsx)(q.Q,{action:Ye,children:Ne}),(0,r.jsx)(V._,{ref:un,startAction:ue,disabled:It,type:"text",inputMode:"decimal",onChange:ot,onKeyDown:ft,onBlur:vn,value:kn,size:fe,endAction:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Ie,{disabled:It,"aria-hidden":!0,reverse:!0,onClick:Je,tabIndex:-1,type:"button","data-testid":"ArrowUp",children:(0,r.jsx)(oe.J,{as:b.Z,color:"neutral500"})}),(0,r.jsx)(Ie,{disabled:It,"aria-hidden":!0,onClick:wt,tabIndex:-1,type:"button","data-testid":"ArrowDown",children:(0,r.jsx)(oe.J,{as:b.Z,color:"neutral500"})})]}),...mn}),(0,r.jsx)(X.J,{}),(0,r.jsx)(pe.c,{})]})})})},59604:(Z,v,t)=>{"use strict";t.d(v,{J2:()=>A,VY:()=>u});var r=t(85893),n=t(67294),s=t(1371),a=t(85983),c=t(76200),h=t(95420),p=t(79698),d=t(36206),k=t(23541),M=t(18204),C=t(46449),w=t(61376),I=t(75518),F=t(27121),U=t(92058),B=t(60141),N=t(16607),D=t(11219);const x=null,T=(0,C.default)(N.x)`
  box-shadow: ${({theme:R})=>R.shadows.filterShadow};
  z-index: ${({theme:R})=>R.zIndices[0]};
  border: 1px solid ${({theme:R})=>R.colors.neutral150};
`,u=n.forwardRef(({source:R,children:H,spacing:z=0,fullWidth:V=!1,placement:$="bottom-start",centered:ee=!1,onEscapeKeyDown:q,onPointerDownOutside:oe,onDismiss:X,onFocusOutside:pe,...Ie},se)=>{const[be,fe]=n.useState(null),[ue,we]=n.useState(void 0),Me=n.useRef(!1),{x:Ce,y:Ne,refs:Ye,strategy:mt}=(0,s.YF)({strategy:"fixed",placement:ee?"bottom":$,middleware:[(0,a.cv)({mainAxis:z}),(0,a.uY)(),(0,a.RR)()],elements:{reference:R.current},whileElementsMounted:c.Me});n.useLayoutEffect(()=>{V&&we(R.current.offsetWidth)},[V,R]),n.useEffect(()=>{if(be)return(0,k.Ry)(be)},[be]);const Ct=(0,p.W)(X);n.useEffect(()=>{const $e=()=>{Ct()};return window.addEventListener("blur",$e),window.addEventListener("resize",$e),()=>{window.removeEventListener("blur",$e),window.removeEventListener("resize",$e)}},[Ct]);const ln=(0,F.e)(se,$e=>fe($e),Ye.setFloating);return(0,r.jsx)(M.Z,{allowPinchZoom:!0,children:(0,r.jsx)(h.M,{asChild:!0,loop:!0,trapped:!0,onUnmountAutoFocus:$e=>{$e.preventDefault(),Me.current||R.current?.focus({preventScroll:!0})},children:(0,r.jsx)(w.B,{asChild:!0,onEscapeKeyDown:q,onPointerDownOutside:(0,d.M)(oe,$e=>{const Qe=$e.detail.originalEvent,bt=Qe.button===0&&Qe.ctrlKey===!0,It=Qe.button===2||bt;Me.current=It},{checkForDefaultPrevented:!1}),onFocusOutside:(0,d.M)(pe,$e=>$e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:X,children:(0,r.jsx)(T,{ref:ln,style:{left:Ce,top:Ne,position:mt,width:ue||void 0},hasRadius:!0,background:"neutral0",padding:1,...Ie,children:H})})})})}),b=({children:R,intersectionId:H,onReachEnd:z,...V})=>{const $=n.useRef(null),ee=(0,U.M)();return(0,B.s)($,z??(()=>{}),{selectorToWatch:`#${(0,I.B)(ee)}`,skipWhen:!H||!z}),(0,r.jsxs)(E,{ref:$,...V,children:[R,H&&z&&(0,r.jsx)(N.x,{id:(0,I.B)(ee),width:"100%",height:"1px"})]})},E=(0,C.default)(N.x)`
  // 16 is base base size, 3 is the factor to get closer to 40px and 5 is the number of elements visible in the list
  max-height: ${3*5}rem;
  overflow-y: auto;
  overflow-x: hidden;

  &::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 4px;
  }

  &::-webkit-scrollbar-track {
    background: ${({theme:R})=>R.colors.neutral0};
  }

  &::-webkit-scrollbar-thumb {
    background: ${({theme:R})=>R.colors.neutral150};
    border-radius: ${({theme:R})=>R.borderRadius};
    margin-right: 10px;
  }
`,A=({children:R,source:H,spacing:z,fullWidth:V,placement:$,centered:ee,onEscapeKeyDown:q,onPointerDownOutside:oe,onDismiss:X,...pe})=>(0,r.jsx)(D.h,{children:(0,r.jsx)(u,{source:H,spacing:z,fullWidth:V,placement:$,centered:ee,onEscapeKeyDown:q,onPointerDownOutside:oe,onDismiss:X,children:(0,r.jsx)(b,{...pe,children:R})})})},11219:(Z,v,t)=>{"use strict";t.d(v,{h:()=>c});var r=t(85893),n=t(67294),s=t(73935),a=t(16607);const c=n.forwardRef(({container:h=globalThis?.document?.body,...p},d)=>h?(0,s.createPortal)((0,r.jsx)(a.x,{ref:d,...p}),h):null);c.displayName="Portal"},84623:(Z,v,t)=>{"use strict";t.d(v,{k:()=>c});var r=t(85893),n=t(46449),s=t(16607);const a=(0,n.default)(s.x)`
  &:before {
    background-color: ${({theme:h})=>h.colors.neutral0};
    border-radius: ${({theme:h})=>h.borderRadius};
    bottom: 0;
    content: '';
    position: absolute;
    top: 0;
    width: ${({value:h})=>`${h}%`};
  }
`,c=({min:h=0,max:p=100,value:d=0,children:k,size:M="M",...C})=>(0,r.jsx)(a,{background:"neutral600",hasRadius:!0,"aria-label":k,"aria-valuemax":p,"aria-valuemin":h,"aria-valuenow":d,height:M==="S"?1:2,position:"relative",role:"progressbar",value:d,width:M==="S"?"78px":"102px",...C})},90066:(Z,v,t)=>{"use strict";t.d(v,{f:()=>d,g:()=>p});var r=t(85893),n=t(67294),s=t(89803),a=t(66358),c=t(40840),h=t(16607);const p=k=>(0,r.jsx)(d,{...k,as:"th"}),d=({coords:k={col:0,row:0},as:M="td",...C})=>{const w=(0,n.useRef)(null),{rowIndex:I,colIndex:F,setTableValues:U}=(0,s.x)(),[B,N]=(0,n.useState)(!1),D=u=>{const b=(0,a.p)(w.current,!0);if(b.length===0||b.length===1&&(0,a.u)(b).length===0)return;if(b.length>1&&!b.find(A=>A.tagName!=="BUTTON")){u.preventDefault();const A=b.findIndex(R=>R===document.activeElement);if(u.key===c.y.RIGHT){const R=b[A+1];R&&(u.stopPropagation(),R.focus())}else if(u.key===c.y.LEFT){const R=b[A-1];R&&(u.stopPropagation(),R.focus())}return}const E=u.key===c.y.ENTER;if(E&&!B)N(!0);else if((u.key===c.y.ESCAPE||E)&&B){if(E&&document.activeElement?.tagName==="A")return;N(!1),w.current.focus()}else B&&u.stopPropagation()},x=I===k.row-1&&F===k.col-1;(0,n.useLayoutEffect)(()=>{const u=(0,a.p)(w.current,!0);u.length===0||u.length===1&&(0,a.u)(u).length!==0||u.length>1&&Boolean(u.find(b=>b.tagName!=="BUTTON"))?(w.current.setAttribute("tabIndex",!B&&x?"0":"-1"),u.forEach((b,E)=>{b.setAttribute("tabIndex",B?"0":"-1"),B&&E===0&&b.focus()})):u.forEach(b=>{b.setAttribute("tabIndex",x?"0":"-1")})},[B,x]);const T=(0,n.useCallback)(()=>{const u=(0,a.p)(w.current,!0);u.length>=1&&((0,a.u)(u).length!==0||!u.find(b=>b.tagName!=="BUTTON"))&&N(!0),U({rowIndex:k.row-1,colIndex:k.col-1})},[k,U]);return(0,n.useLayoutEffect)(()=>{const u=w.current;return(0,a.p)(u,!0).forEach(E=>{E.addEventListener("focus",T)}),()=>{(0,a.p)(u,!0).forEach(A=>{A.removeEventListener("focus",T)})}},[T]),(0,r.jsx)(h.x,{role:"gridcell",as:M,ref:w,onKeyDown:D,...C})}},54901:(Z,v,t)=>{"use strict";t.d(v,{w:()=>h});var r=t(85893),n=t(67294);const s=p=>{const d=p.querySelector('[tabindex="0"]');d&&d.focus()};var a=t(89803),c=t(40840);const h=({colCount:p,rowCount:d,jumpStep:k=3,initialCol:M=0,initialRow:C=0,...w})=>{const I=(0,n.useRef)(null),F=(0,n.useRef)(!1),[U,B]=(0,n.useState)(C),[N,D]=(0,n.useState)(M),x=(0,n.useCallback)(({colIndex:b,rowIndex:E})=>{D(b),B(E)},[]);(0,n.useEffect)(()=>{F.current&&s(I.current),F.current||(F.current=!0)},[N,U]);const T=b=>{switch(b.key){case c.y.RIGHT:{b.preventDefault(),D(E=>E<p-1?E+1:E);break}case c.y.LEFT:{b.preventDefault(),D(E=>E>0?E-1:E);break}case c.y.UP:{b.preventDefault(),B(E=>E>0?E-1:E);break}case c.y.DOWN:{b.preventDefault(),B(E=>E<d-1?E+1:E);break}case c.y.HOME:{b.preventDefault(),b.ctrlKey&&B(0),D(0);break}case c.y.END:{b.preventDefault(),b.ctrlKey&&B(d-1),D(p-1);break}case c.y.PAGE_DOWN:{b.preventDefault(),B(E=>E+k<d?E+k:d-1);break}case c.y.PAGE_UP:{b.preventDefault(),B(E=>E-k>0?E-k:0);break}}},u=(0,n.useMemo)(()=>({rowIndex:U,colIndex:N,setTableValues:x}),[N,U,x]);return(0,r.jsx)(a.N.Provider,{value:u,children:(0,r.jsx)("table",{role:"grid",ref:I,"aria-rowcount":d,"aria-colcount":p,onKeyDown:T,...w})})}},89803:(Z,v,t)=>{"use strict";t.d(v,{N:()=>n,x:()=>s});var r=t(67294);const n=(0,r.createContext)({rowIndex:0,colIndex:0,setTableValues(){throw new Error("setTableValues must be initialized via the RawTableContext.Provider")}}),s=()=>(0,r.useContext)(n)},13844:(Z,v,t)=>{"use strict";t.d(v,{X:()=>s});var r=t(85893),n=t(67294);const s=({children:a,...c})=>{const h=n.Children.toArray(a).map((p,d)=>(0,n.isValidElement)(p)?(0,n.cloneElement)(p,{"aria-rowindex":d+2}):p);return(0,r.jsx)("tbody",{...c,children:h})}},69607:(Z,v,t)=>{"use strict";t.d(v,{S:()=>s});var r=t(85893),n=t(67294);const s=({children:a,...c})=>{const h=n.Children.toArray(a).map(p=>(0,n.isValidElement)(p)?(0,n.cloneElement)(p,{"aria-rowindex":1}):p);return(0,r.jsx)("thead",{...c,children:h})}},32730:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>a});var r=t(85893),n=t(67294),s=t(16607);const a=({children:c,...h})=>{const p=n.Children.toArray(c).map((d,k)=>(0,n.isValidElement)(d)?(0,n.cloneElement)(d,{"aria-colindex":k+1,coords:{col:k+1,row:h["aria-rowindex"]}}):d);return(0,r.jsx)(s.x,{as:"tr",...h,children:p})}},49185:(Z,v,t)=>{"use strict";t.d(v,{U:()=>n});var r=t(85893);const n=s=>(0,r.jsx)("form",{...s,role:"search"})},35987:(Z,v,t)=>{"use strict";t.d(v,{w:()=>B});var r=t(85893),n=t(67294),s=t(35771),a=t(90272),c=t(46449),h=t(27121),p=t(66362),d=t(45094),k=t(7659),M=t(78048),C=t(22304),w=t(17734);const I=(0,c.default)(s.Z)`
  font-size: 0.5rem;
  path {
    fill: ${({theme:N})=>N.colors.neutral400};
  }
`,F=(0,c.default)(a.Z)`
  font-size: 0.8rem;
  path {
    fill: ${({theme:N})=>N.colors.neutral800};
  }
`,U=c.default.div`
  border-radius: ${({theme:N})=>N.borderRadius};
  box-shadow: ${({theme:N})=>N.shadows.filterShadow};

  &:focus-within {
    ${F} {
      path {
        fill: ${({theme:N})=>N.colors.primary600};
      }
    }
  }

  ${d.S} {
    border: 1px solid transparent;
  }

  ${(0,p.k3)(d.S)}
`,B=(0,n.forwardRef)(({name:N,size:D="M",children:x,value:T="",onClear:u,clearLabel:b,...E},A)=>{const R=(0,n.useRef)(null),H=T.length>0,z=$=>{u($),R.current.focus()},V=(0,h.F)(A,R);return(0,r.jsx)(U,{children:(0,r.jsxs)(M.g,{name:N,children:[(0,r.jsx)(C.T,{children:(0,r.jsx)(w.Q,{children:x})}),(0,r.jsx)(d._,{ref:V,value:T,startAction:(0,r.jsx)(F,{"aria-hidden":!0}),size:D,endAction:H?(0,r.jsx)(k.E,{label:b,onClick:z,children:(0,r.jsx)(I,{})}):void 0,...E})]})})})},82832:(Z,v,t)=>{"use strict";t.d(v,{Ab:()=>b,ML:()=>T,NU:()=>x});var r=t(85893),n=t(67294),s=t(35771),a=t(46449),c=t(11652),h=t(1346),p=t(75518),d=t(27121),k=t(92058),M=t(60141),C=t(96724),w=t(78048),I=t(96987),F=t(17734),U=t(16607),B=t(90820),N=t(61456),D=t(10574);const x=n.forwardRef(({"aria-label":E,children:A,clearLabel:R="Clear",customizeContent:H,disabled:z,error:V,hint:$,id:ee,label:q,labelAction:oe,onChange:X,onClear:pe,onCloseAutoFocus:Ie,onReachEnd:se,placeholder:be,required:fe,selectButtonTitle:ue,startIcon:we,size:Me="M",value:Ce,withTags:Ne,...Ye},mt)=>{const Ct=n.useRef(null),[ln,$e]=n.useState(),[Qe,bt]=n.useState(!1),It=(0,k.M)(ee),mn=`${It}-hint`,un=`${It}-error`,Be=ft=>{X?X(ft):$e(ft)},je=ft=>()=>{const vn=Array.isArray(Ce)?Ce.filter(ut=>ut!==ft):(ln??[]).filter(ut=>ut!==ft);X?X(vn):$e(vn)},$t=ft=>{bt(ft)},et=n.useRef(null),Kt=()=>{et.current.focus()},kn=(0,k.M)(),Tn=`intersection-${(0,p.B)(kn)}`,ht=ft=>{se&&se(ft)};(0,M.s)(Ct,ht,{selectorToWatch:`#${Tn}`,skipWhen:!Qe});const ot=typeof Ce<"u"&&Ce!==null?Ce:ln,Je=ft=>ft&&typeof ft=="object"&&ft.value?(0,r.jsx)(C.V,{tabIndex:-1,disabled:z,icon:(0,r.jsx)(s.Z,{}),onClick:je(ft.value),children:ft.textValue},ft.value):null,wt=(0,d.e)(et,mt);return(0,r.jsx)(w.g,{hint:$,error:V,id:It,required:fe,children:(0,r.jsxs)(I.k,{direction:"column",alignItems:"stretch",gap:1,children:[q?(0,r.jsx)(F.Q,{onClick:Kt,action:oe,children:q}):null,(0,r.jsxs)(c.fC,{onOpenChange:$t,disabled:z,required:fe,onValueChange:Be,value:ot,...Ye,multi:!0,children:[(0,r.jsx)(c.xz,{ref:wt,"aria-label":q??E,"aria-describedby":`${mn} ${un}`,id:It,startIcon:we,size:Me,hasError:Boolean(V),disabled:z,clearLabel:R,onClear:ot?.length?pe:void 0,paddingLeft:Ne&&ot?.length?1:3,children:(0,r.jsx)(c.B4,{placeholder:be,textColor:ot?.length?"neutral800":"neutral600",children:ot?.length?Ne?Je:H?H(ot):void 0:void 0})}),(0,r.jsx)(c.h_,{children:(0,r.jsx)(c.VY,{position:"popper",sideOffset:4,onCloseAutoFocus:Ie,children:(0,r.jsxs)(c.l_,{ref:Ct,children:[A,(0,r.jsx)(U.x,{id:Tn,width:"100%",height:"1px"})]})})})]}),(0,r.jsx)(B.J,{}),(0,r.jsx)(N.c,{})]})})}),T=n.forwardRef(({value:E,children:A,startIcon:R,...H},z)=>(0,r.jsxs)(c.ck,{ref:z,value:E.toString(),...H,children:[R&&(0,r.jsx)(U.x,{as:"span","aria-hidden":!0,children:R}),(0,r.jsx)(c.wU,{children:({isSelected:V,isIntermediate:$})=>(0,r.jsx)(u,{hasRadius:!0,overflow:"hidden",position:"relative",$indeterminate:$,$selected:V,zIndex:1,height:"18px",width:"18px"})}),(0,r.jsx)(D.Z,{textColor:"neutral800",children:(0,r.jsx)(c.eT,{children:A})})]})),u=(0,a.default)(U.x)`
  border: 1px solid
    ${({theme:E,$selected:A,$indeterminate:R})=>A||R?E.colors.primary600:E.colors.neutral300};
  background-color: ${({theme:E,$selected:A,$indeterminate:R})=>A||R?E.colors.primary600:E.colors.neutral0};

  ${({theme:E,$indeterminate:A})=>A&&(0,a.css)`
      &::after {
        content: '';
        display: block;
        position: relative;
        color: white;
        height: 2px;
        width: 10px;
        background-color: ${E.colors.neutral0};
        left: 50%;
        top: 50%;
        transform: translateX(-50%) translateY(-50%);
      }
    `}

  ${({$selected:E})=>E&&(0,a.css)`
      &::after {
        content: '';
        background: url(${h.Z}) no-repeat no-repeat center center;
        width: 100%;
        height: 100%;
        position: absolute;
      }
    `}
`,b=n.forwardRef(({children:E,label:A,startIcon:R,values:H=[],...z},V)=>(0,r.jsxs)(c.ZA,{ref:V,children:[(0,r.jsxs)(c.ck,{value:H,...z,children:[R&&(0,r.jsx)(U.x,{as:"span","aria-hidden":!0,children:R}),(0,r.jsx)(c.wU,{children:({isSelected:$,isIntermediate:ee})=>(0,r.jsx)(u,{hasRadius:!0,overflow:"hidden",position:"relative",$indeterminate:ee,$selected:$,zIndex:1,height:"18px",width:"18px"})}),(0,r.jsx)(D.Z,{textColor:"neutral800",children:A})]}),E]}))},40933:(Z,v,t)=>{"use strict";t.d(v,{W:()=>c});var r=t(85893),n=t(82832),s=t(59586),a=t(90090);/**
 * @preserve
 * @deprecated You should import the specific type of option you want to render,
 * e.g. `import { MultiSelectOption } from '@strapi/design-system';`
 */const c=({multi:h,...p})=>{const d=(0,s.T)();return h||d.multi?(0,r.jsx)(n.ML,{...p}):(0,r.jsx)(a.ag,{...p})}},59586:(Z,v,t)=>{"use strict";t.d(v,{P:()=>p,T:()=>h});var r=t(85893),n=t(67294),s=t(82832),a=t(90090);const c=n.createContext({multi:!1}),h=()=>n.useContext(c);/**
 * @preserve
 * @deprecated You should import the specific type of select you want to render
 *
 * e.g. `import { MultiSelect } from '@strapi/design-system';`
 */const p=d=>{const k=n.useMemo(()=>({multi:Boolean(d.multi||d.withTags)}),[d.multi,d.withTags]);return(0,r.jsx)(c.Provider,{value:k,children:d.multi||d.withTags?(0,r.jsx)(s.NU,{...d}):(0,r.jsx)(a.q4,{...d})})}},11652:(Z,v,t)=>{"use strict";t.d(v,{B4:()=>H,VY:()=>V,ZA:()=>X,ck:()=>ee,eT:()=>oe,fC:()=>A,h_:()=>z,l_:()=>$,wU:()=>q,xz:()=>R});var r=t(85893),n=t(67294),s=t(35771),a=t(58471),c=t(61299),h=t(46449),p=t(27121),d=t(96987),k=t(16607),M=t(66362),C=t(10574);const w=n.forwardRef(({onClear:pe,clearLabel:Ie="Clear",startIcon:se,disabled:be,hasError:fe,size:ue="M",children:we,...Me},Ce)=>{const Ne=n.useRef(null),Ye=Ct=>{pe&&!be&&(pe(Ct),Ne.current.focus())},mt=(0,p.e)(Ne,Ce);return(0,r.jsx)(c.Select.Trigger,{asChild:!0,children:(0,r.jsxs)(F,{"aria-disabled":be,$hasError:fe,$size:ue,ref:mt,alignItems:"center",justifyContent:"space-between",position:"relative",overflow:"hidden",hasRadius:!0,background:be?"neutral150":"neutral0",paddingLeft:3,paddingRight:3,gap:4,cursor:"default",width:"100%",...Me,children:[(0,r.jsxs)(d.k,{flex:"1",as:"span",gap:3,children:[se&&(0,r.jsx)(k.x,{as:"span","aria-hidden":!0,children:se}),we]}),(0,r.jsxs)(d.k,{as:"span",gap:3,children:[pe?(0,r.jsx)(I,{as:"button",hasRadius:!0,background:"transparent",role:"button",tabIndex:0,onClick:Ye,"aria-disabled":be,"aria-label":Ie,title:Ie,cursor:"pointer",children:(0,r.jsx)(s.Z,{})}):null,(0,r.jsx)(U,{children:(0,r.jsx)(a.Z,{})})]})]})})}),I=(0,h.default)(k.x)`
  border: none;

  svg {
    height: ${11/16}rem;
    width: ${11/16}rem;
  }

  svg path {
    fill: ${({theme:pe})=>pe.colors.neutral600};
  }
`,F=(0,h.default)(d.k)`
  border: 1px solid ${({theme:pe,$hasError:Ie})=>Ie?pe.colors.danger600:pe.colors.neutral200};
  min-height: ${({theme:pe,$size:Ie})=>(0,M.ZB)("input")({theme:pe,size:Ie})};

  &[aria-disabled='true'] {
    color: ${pe=>pe.theme.colors.neutral600};
  }

  /* Required to ensure the below inputFocusStyles are adhered too */
  &:focus-visible {
    outline: none;
  }

  ${({theme:pe,$hasError:Ie})=>(0,M.k3)()({theme:pe,hasError:Ie})};
`,U=(0,h.default)(c.Select.Icon)`
  & > svg {
    width: ${6/16}rem;

    & > path {
      fill: ${({theme:pe})=>pe.colors.neutral600};
    }
  }
`,B=n.forwardRef(({children:pe,placeholder:Ie,...se},be)=>(0,r.jsx)(N,{ref:be,ellipsis:!0,...se,children:(0,r.jsx)(D,{placeholder:Ie,children:pe})})),N=(0,h.default)(C.Z)`
  flex: 1;
`,D=(0,h.default)(c.Select.Value)`
  display: flex;
  gap: ${({theme:pe})=>pe.spaces[1]};
  flex-wrap: wrap;
`,x=(0,h.default)(c.Select.Content)`
  background: ${({theme:pe})=>pe.colors.neutral0};
  box-shadow: ${({theme:pe})=>pe.shadows.filterShadow};
  border: 1px solid ${({theme:pe})=>pe.colors.neutral150};
  border-radius: ${({theme:pe})=>pe.borderRadius};
  min-width: var(--radix-select-trigger-width);
  /* This is from the design-system figma file. */
  max-height: 15rem;
  z-index: ${({theme:pe})=>pe.zIndices[1]};
`,T=(0,h.default)(c.Select.Viewport)`
  padding: ${({theme:pe})=>pe.spaces[1]};
`,u=n.forwardRef((pe,Ie)=>(0,r.jsx)(E,{ref:Ie,...pe})),b=(0,h.css)`
  width: 100%;
  border: none;
  text-align: left;
  outline-offset: -3px;
  border-radius: ${pe=>pe.theme.borderRadius};
  padding: ${pe=>`${pe.theme.spaces[2]} ${pe.theme.spaces[4]}`};
  padding-left: ${({theme:pe})=>pe.spaces[4]};
  background-color: ${({theme:pe})=>pe.colors.neutral0};
  display: flex;
  align-items: center;
  gap: ${({theme:pe})=>pe.spaces[2]};
  white-space: nowrap;
  user-select: none;

  &:focus-visible {
    outline: none;
    background-color: ${({theme:pe})=>pe.colors.primary100};
  }
`,E=(0,h.default)(c.Select.Item)`
  ${b}

  &:hover {
    background-color: ${({theme:pe})=>pe.colors.primary100};
  }

  &[data-state='checked'] {
    ${C.Z} {
      font-weight: bold;
      color: ${({theme:pe})=>pe.colors.primary600};
    }
  }
`,A=c.Select.Root,R=w,H=B,z=c.Select.Portal,V=x,$=T,ee=u,q=c.Select.ItemIndicator,oe=c.Select.ItemText,X=c.Select.Group},90090:(Z,v,t)=>{"use strict";t.d(v,{ag:()=>N,iL:()=>B,q4:()=>U});var r=t(85893),n=t(67294),s=t(11652),a=t(75518),c=t(27121),h=t(92058),p=t(60141),d=t(78048),k=t(96987),M=t(17734),C=t(90820),w=t(61456),I=t(16607),F=t(10574);const U=n.forwardRef(({error:D,hint:x,id:T,label:u,labelAction:b,required:E,selectButtonTitle:A,...R},H)=>{const z=(0,h.M)(T),V=n.useRef(null),$=()=>{V.current.focus()},ee=(0,c.e)(H,V);return(0,r.jsx)(d.g,{hint:x,error:D,id:z,required:E,children:(0,r.jsxs)(k.k,{direction:"column",alignItems:"stretch",gap:1,children:[u?(0,r.jsx)(M.Q,{onClick:$,action:b,children:u}):null,(0,r.jsx)(B,{label:u,id:z,ref:ee,required:E,...R}),(0,r.jsx)(C.J,{}),(0,r.jsx)(w.c,{})]})})}),B=n.forwardRef(({"aria-label":D,id:x,children:T,clearLabel:u="Clear",customizeContent:b,disabled:E,error:A,label:R,onChange:H,onClear:z,onCloseAutoFocus:V,onReachEnd:$,placeholder:ee,required:q,selectButtonTitle:oe,startIcon:X,size:pe="M",value:Ie,...se},be)=>{const[fe,ue]=n.useState(),[we,Me]=n.useState(!1),Ce=mn=>{Me(mn)},Ne=mn=>{z&&z(mn),H||ue("")},Ye=`${x}-hint`,mt=`${x}-error`,Ct=mn=>{H?H(typeof Ie=="number"?Number(mn):mn):ue(mn)},ln=n.useRef(null),$e=(0,h.M)(),Qe=`intersection-${(0,a.B)($e)}`,bt=mn=>{$&&$(mn)};(0,p.s)(ln,bt,{selectorToWatch:`#${Qe}`,skipWhen:!we});const It=(typeof Ie<"u"&&Ie!==null?Ie.toString():fe)??"";return(0,r.jsxs)(s.fC,{onOpenChange:Ce,disabled:E,required:q,onValueChange:Ct,value:It,...se,children:[(0,r.jsx)(s.xz,{ref:be,"aria-label":R??D,"aria-describedby":x?`${Ye} ${mt}`:void 0,id:x,startIcon:X,size:pe,hasError:Boolean(A),disabled:E,clearLabel:u,onClear:It&&z?Ne:void 0,children:(0,r.jsx)(s.B4,{placeholder:ee,textColor:It?"neutral800":"neutral600",children:It&&b?b(It):void 0})}),(0,r.jsx)(s.h_,{children:(0,r.jsx)(s.VY,{position:"popper",sideOffset:4,onCloseAutoFocus:V,children:(0,r.jsxs)(s.l_,{ref:ln,children:[T,(0,r.jsx)(I.x,{id:Qe,width:"100%",height:"1px"})]})})})]})}),N=n.forwardRef(({value:D,startIcon:x,children:T,...u},b)=>(0,r.jsxs)(s.ck,{ref:b,value:D.toString(),...u,children:[x&&(0,r.jsx)(I.x,{as:"span","aria-hidden":!0,children:x}),(0,r.jsx)(F.Z,{textColor:"neutral800",children:(0,r.jsx)(s.eT,{children:T})})]}))},20232:(Z,v,t)=>{"use strict";t.d(v,{K:()=>k});var r=t(85893),n=t(67294),s=t(46449),a=t(79581),c=t(96987);const h={size:!0,spacing:!0},p=(0,s.default)(c.k).withConfig({shouldForwardProp:(M,C)=>!h[M]&&C(M)})`
  & > * {
    margin-top: 0;
    margin-bottom: 0;
  }

  & > * + * {
    margin-top: ${({theme:M,spacing:C})=>(0,a.$)(M.spaces,C,void 0)};
  }
`,d=(0,s.default)(c.k).withConfig({shouldForwardProp:(M,C)=>!h[M]&&C(M)})`
  & > * {
    margin-left: 0;
    margin-right: 0;
  }

  & > * + * {
    margin-left: ${({theme:M,spacing:C})=>(0,a.$)(M.spaces,C,void 0)};
  }
`,k=(0,n.forwardRef)(({horizontal:M=!1,spacing:C,size:w,...I},F)=>(w&&console.warn('Deprecation warning: Usage of "size" prop in Stack component is deprecated. This is discouraged and will be removed in the next major release. Please use "spacing" instead'),M?(0,r.jsx)(d,{ref:F,spacing:C||w,...I}):(0,r.jsx)(p,{direction:"column",alignItems:"stretch",ref:F,spacing:C||w,...I})));k.displayName="Stack"},33764:(Z,v,t)=>{"use strict";t.d(v,{q:()=>d});var r=t(85893),n=t(46449),s=t(16607),a=t(10574),c=t(96987);const h=n.default.div`
  margin-right: ${({theme:k})=>k.spaces[3]};
  width: ${6/16}rem;
  height: ${6/16}rem;
  border-radius: 50%;
  background: ${({theme:k,backgroundColor:M})=>k.colors[M]};
`,p=(0,n.default)(s.x)`
  ${a.Z} {
    color: ${({theme:k,textColor:M})=>k.colors[M]};
  }
`,d=({variant:k="primary",showBullet:M=!0,size:C="M",children:w,...I})=>{const F=`${k}100`,U=`${k}200`,B=`${k}600`,N=`${k}600`,D=C==="S"?2:5,x=C==="S"?1:4;return(0,r.jsx)(p,{borderColor:U,textColor:N,background:F,hasRadius:!0,paddingTop:x,paddingBottom:x,paddingLeft:D,paddingRight:D,...I,children:M?(0,r.jsxs)(c.k,{children:[(0,r.jsx)(h,{backgroundColor:B}),w]}):w})}},69398:(Z,v,t)=>{"use strict";t.d(v,{Td:()=>d,Th:()=>p});var r=t(85893),n=t(46449),s=t(90066),a=t(96987);const c=(0,n.default)(s.f)`
  vertical-align: middle;
  text-align: left;
  color: ${({theme:k})=>k.colors.neutral600};
  outline-offset: -4px;

  /**
  * Hack to make sure the checkbox looks aligned
  */
  input {
    vertical-align: sub;
  }
`,h=n.default.span`
  svg {
    height: ${4/16}rem;
  }
`,p=({children:k,action:M,...C})=>(0,r.jsx)(c,{as:s.g,...C,children:(0,r.jsxs)(a.k,{children:[k,(0,r.jsx)(h,{children:M})]})}),d=({children:k,...M})=>(0,r.jsx)(c,{...M,children:k})},5923:(Z,v,t)=>{"use strict";t.d(v,{i:()=>M});var r=t(85893),n=t(67294),s=t(46449),a=t(54901),c=t(16607);const h=(0,s.default)(c.x)`
  overflow: hidden;
  border: 1px solid ${({theme:C})=>C.colors.neutral150};
`,p=(0,s.default)(a.w)`
  width: 100%;
  white-space: nowrap;
`,d=(0,s.default)(c.x)`
  &:before {
    // TODO: make sure to add a token for this weird stuff
    background: linear-gradient(90deg, #c0c0cf 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.2;
    position: absolute;
    height: 100%;
    content: ${({overflowing:C})=>C==="both"||C==="left"?"''":void 0};
    box-shadow: ${({theme:C})=>C.shadows.tableShadow};
    width: ${({theme:C})=>C.spaces[2]};
    left: 0;
  }

  &:after {
    // TODO: make sure to add a token for this weird stuff
    background: linear-gradient(270deg, #c0c0cf 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.2;
    position: absolute;
    height: 100%;
    content: ${({overflowing:C})=>C==="both"||C==="right"?"''":void 0};
    box-shadow: ${({theme:C})=>C.shadows.tableShadow};
    width: ${({theme:C})=>C.spaces[2]};
    right: 0;
    top: 0;
  }
`,k=(0,s.default)(c.x)`
  overflow-x: auto;
`,M=({footer:C,...w})=>{const I=(0,n.useRef)(null),[F,U]=(0,n.useState)(),B=N=>{const D=N.target.scrollWidth-N.target.clientWidth;if(N.target.scrollLeft===0){U("right");return}if(N.target.scrollLeft===D){U("left");return}N.target.scrollLeft>0&&U("both")};return(0,n.useEffect)(()=>{I.current.scrollWidth>I.current.clientWidth&&U("right")},[]),(0,r.jsxs)(h,{shadow:"tableShadow",hasRadius:!0,background:"neutral0",children:[(0,r.jsx)(d,{overflowing:F,position:"relative",children:(0,r.jsx)(k,{ref:I,onScroll:B,paddingLeft:6,paddingRight:6,children:(0,r.jsx)(p,{...w})})}),C]})}},35752:(Z,v,t)=>{"use strict";t.d(v,{p:()=>c});var r=t(85893),n=t(46449),s=t(13844);const a=(0,n.default)(s.X)`
  & tr:last-of-type {
    border-bottom: none;
  }
`,c=({children:h,...p})=>(0,r.jsx)(a,{...p,children:h})},3547:(Z,v,t)=>{"use strict";t.d(v,{h:()=>c});var r=t(85893),n=t(46449),s=t(69607);const a=(0,n.default)(s.S)`
  border-bottom: 1px solid ${({theme:h})=>h.colors.neutral150};
`,c=({children:h,...p})=>(0,r.jsx)(a,{...p,children:h})},29299:(Z,v,t)=>{"use strict";t.d(v,{Tr:()=>c});var r=t(85893),n=t(46449),s=t(32730);const a=(0,n.default)(s.Z)`
  border-bottom: 1px solid ${({theme:h})=>h.colors.neutral150};

  & td,
  & th {
    padding: ${({theme:h})=>h.spaces[4]};
  }

  & td:first-of-type,
  & th:first-of-type {
    padding: 0 ${({theme:h})=>h.spaces[1]};
  }

  // Resetting padding values and fixing a height
  th {
    padding-top: 0;
    padding-bottom: 0;
    height: ${56/16}rem;
  }
`,c=h=>(0,r.jsx)(a,{...h})},98948:(Z,v,t)=>{"use strict";t.d(v,{v:()=>c});var r=t(85893),n=t(67294),s=t(23500),a=t(92058);const c=n.forwardRef(({id:h,initialSelectedTabIndex:p=0,label:d,onTabChange:k,variant:M,...C},w)=>{const I=(0,a.M)(h),[F,U]=n.useState(p);n.useImperativeHandle(w,()=>({_handlers:{setSelectedTabIndex:U}}));const B=n.useMemo(()=>({id:I,selectedTabIndex:F,selectTabIndex:U,label:d,variant:M,onTabChange:k}),[d,k,F,I,M]);return(0,r.jsx)(s.R.Provider,{value:B,children:(0,r.jsx)("div",{...C})})});c.displayName="TabGroup"},94955:(Z,v,t)=>{"use strict";t.d(v,{n:()=>a,x:()=>c});var r=t(85893),n=t(67294),s=t(23500);const a=({children:h,...p})=>{const{id:d,selectedTabIndex:k}=(0,s.Y)(),M=n.Children.toArray(h).map((C,w)=>(0,n.cloneElement)(C,{id:`${d}-${w}`})).filter((C,w)=>w===k);return(0,r.jsx)("div",{...p,children:M})},c=({id:h,...p})=>{const d=`${h}-tab`,k=`${h}-tabpanel`;return(0,r.jsx)("div",{id:k,role:"tabpanel",tabIndex:0,"aria-labelledby":d,...p})}},91788:(Z,v,t)=>{"use strict";t.d(v,{O:()=>N,m:()=>B});var r=t(85893),n=t(67294),s=t(79698),a=t(46449),c=t(16607),h=t(96987);const p=(0,a.default)(c.x)`
  border-bottom: 2px solid
    ${({theme:D,selected:x,hasError:T})=>x?T?D.colors.danger600:D.colors.primary600:"transparent"};
`,d=(0,a.default)(c.x)`
  border-bottom: 1px solid ${({theme:D,selected:x})=>x?D.colors.neutral0:D.colors.neutral150};
`,k=a.default.button`
  border: none;
  background: transparent;
  padding: 0;

  & + & > ${d} {
    border-left: 1px solid ${({theme:D})=>D.colors.neutral150};
  }

  ${d} {
    border-right: ${({theme:D,showRightBorder:x})=>x?`1px solid ${D.colors.neutral150}`:"none"};
  }

  // Hack preventing the outline from being overflow by the following tab
  outline-offset: -2px;

  &[aria-disabled='true'] {
    cursor: not-allowed;
  }
`,M=(0,a.default)(h.k)`
  & > * {
    flex: 1;
  }

  & ${k}:first-of-type ${d} {
    border-radius: ${({theme:D})=>`${D.borderRadius} 0 0 0`};
  }

  & ${k}:last-of-type ${d} {
    border-radius: ${({theme:D})=>`0 ${D.borderRadius} 0 0`};
  }

  & ${k}[aria-selected="true"] ${d} {
    border-radius: ${({theme:D})=>`${D.borderRadius} ${D.borderRadius} 0 0`};
    border-left: none;
    border-right: none;
  }
`;var C=t(23500),w=t(40840),I=t(10574);const F=(D,x)=>{const T=(0,n.useRef)(null),u=(0,n.useRef)(!1),b=(0,s.W)(x);return(0,n.useEffect)(()=>{if(T.current){if(u.current){const E=T.current.querySelector('[tabindex="0"]');E&&(E.focus(),b(D))}u.current||(u.current=!0)}},[D,b]),T},U=a.default.button`
  &[aria-disabled='true'] {
    cursor: not-allowed;
  }
`,B=({children:D,...x})=>{const{id:T,selectedTabIndex:u,selectTabIndex:b,label:E,variant:A,onTabChange:R}=(0,C.Y)(),H=F(u,R),z=n.Children.toArray(D).map(($,ee)=>(0,n.cloneElement)($,{id:`${T}-${ee}`,index:ee,selectedTabIndex:u,onTabClick:()=>b(ee),variant:A})),V=$=>{if(!z.every(q=>q.props.disabled))switch($.key){case w.y.RIGHT:{const q=u+1,oe=pe=>z[pe].props.disabled?pe===z.length-1?oe(0):oe(pe+1):pe,X=oe(q>=z.length?0:q);b(X);break}case w.y.LEFT:{const q=u-1,oe=pe=>z[pe].props.disabled?oe(pe===0?z.length-1:pe-1):pe,X=oe(q<0?z.length-1:q);b(X);break}case w.y.HOME:{const q=z.findIndex(oe=>!oe.props.disabled);b(q);break}case w.y.END:{const oe=z.map((X,pe)=>({isDisabled:X.props.disabled,index:pe})).reverse().find(({isDisabled:X})=>!X);oe&&b(oe.index);break}}};return A==="simple"?(0,r.jsx)("div",{ref:H,role:"tablist","aria-label":E,onKeyDown:V,...x,children:z}):(0,r.jsx)(M,{ref:H,role:"tablist",alignItems:"flex-end","aria-label":E,onKeyDown:V,...x,children:z})},N=({disabled:D=!1,id:x,children:T,variant:u,hasError:b=!1,index:E,selectedTabIndex:A,onTabClick:R,...H})=>{const z=`${x}-tab`,V=`${x}-tabpanel`,$=E===A,ee=()=>{D||R&&R()};if(u==="simple"){let oe;return b?oe="danger600":$?oe="primary600":oe="neutral600",(0,r.jsx)(U,{id:z,role:"tab","aria-controls":$?V:void 0,tabIndex:$?0:-1,"aria-selected":$,type:"button",onClick:ee,"aria-disabled":D,...H,children:(0,r.jsx)(p,{padding:4,selected:$,hasError:b,children:(0,r.jsx)(I.Z,{variant:"sigma",textColor:oe,children:T})})})}b&&console.warn('The "hasError" prop is only available for the "simple" variant.');const q=A&&A-1===E;return(0,r.jsx)(k,{id:z,role:"tab",type:"button","aria-controls":$?V:void 0,tabIndex:$?0:-1,"aria-selected":$,onClick:ee,"aria-disabled":D,showRightBorder:Boolean(q),...H,children:(0,r.jsx)(d,{padding:$?4:3,background:$?"neutral0":"neutral100",selected:$,children:(0,r.jsx)(I.Z,{fontWeight:"bold",textColor:$?"primary700":"neutral600",children:T})})})}},23500:(Z,v,t)=>{"use strict";t.d(v,{R:()=>n,Y:()=>s});var r=t(67294);const n=(0,r.createContext)({id:"",label:"",selectedTabIndex:0,selectTabIndex(){throw new Error("TabsContext.selectTabIndex is not implemented.")}}),s=()=>(0,r.useContext)(n)},96724:(Z,v,t)=>{"use strict";t.d(v,{V:()=>c});var r=t(85893),n=t(46449),s=t(96987),a=t(10574);const c=({children:d,icon:k,disabled:M=!1,onClick:C,...w})=>{const I=F=>{M||!C||C(F)};return(0,r.jsxs)(h,{as:"button",background:M?"neutral200":"primary100",color:M?"neutral700":"primary600",paddingLeft:3,paddingRight:3,onClick:I,"aria-disabled":M,disabled:M,borderWidth:"1px",borderStyle:"solid",borderColor:M?"neutral300":"primary200",hasRadius:!0,height:`${32/16}rem`,gap:2,...w,children:[(0,r.jsx)(p,{$disabled:M,variant:"pi",fontWeight:"bold",as:"span",children:d}),k]})},h=(0,n.default)(s.k)`
  & > svg {
    height: ${8/16}rem;
    width: ${8/16}rem;
  }

  & > svg path {
    fill: ${({theme:d,...k})=>k["aria-disabled"]?d.colors.neutral600:d.colors.primary600};
  }
`,p=(0,n.default)(a.Z)`
  color: inherit;
  border-right: 1px solid ${({theme:d,$disabled:k})=>k?d.colors.neutral300:d.colors.primary200};
  padding-right: ${({theme:d})=>d.spaces[2]};
`},58753:(Z,v,t)=>{"use strict";t.d(v,{A:()=>C});var r=t(85893),n=t(67294),s=t(2),a=t(46449),c=t(66362),h=t(96987),p=t(10574);const d=(0,a.keyframes)`
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
`,k=a.default.div`
  animation: ${d} 2s infinite linear;
  will-change: transform;
`,M=(0,a.default)(h.k)`
  border: none;

  &[aria-disabled='true'] {
    pointer-events: none;
    svg path {
      fill: ${({theme:w})=>w.colors.neutral600};
    }
  }

  svg path {
    fill: ${({theme:w})=>w.colors.primary600};
  }

  ${c.BF}
`,C=n.forwardRef(({children:w,startIcon:I,endIcon:F,onClick:U,disabled:B=!1,loading:N=!1,...D},x)=>{const T=U&&!B?U:void 0,u=B||N;return(0,r.jsxs)(M,{ref:x,"aria-disabled":u,onClick:T,as:"button",type:"button",background:"transparent",gap:2,...D,children:[N?(0,r.jsx)(k,{"aria-hidden":!0,children:(0,r.jsx)(s.Z,{})}):I,(0,r.jsx)(p.Z,{variant:"pi",textColor:u?"neutral600":"primary600",children:w}),F]})});C.displayName="TextButton"},38670:(Z,v,t)=>{"use strict";t.d(v,{o:()=>M});var r=t(85893),n=t(67294),s=t(92058),a=t(78048),c=t(96987),h=t(17734),p=t(45094),d=t(90820),k=t(61456);const M=(0,n.forwardRef)(({name:C,hint:w,error:I,label:F,labelAction:U,id:B,required:N,...D},x)=>{const T=(0,s.M)(B),u=(0,n.useRef)(null),b=(0,n.useRef)(null);if(!F&&!D["aria-label"])throw new Error('The TextInput component needs a "label" or an "aria-label" props');return(0,n.useImperativeHandle)(x,()=>({input:b,inputWrapperRef:u}),[]),(0,r.jsx)("div",{ref:u,children:(0,r.jsx)(a.g,{name:C,hint:w,error:I,id:T,required:N,children:(0,r.jsxs)(c.k,{direction:"column",alignItems:"stretch",gap:1,children:[F&&(0,r.jsx)(h.Q,{action:U,children:F}),(0,r.jsx)(p._,{ref:b,...D}),(0,r.jsx)(d.J,{}),(0,r.jsx)(k.c,{})]})})})});M.displayName="TextInput"},457:(Z,v,t)=>{"use strict";t.d(v,{g:()=>B});var r=t(85893),n=t(67294),s=t(46449),a=t(92058),c=t(66362),h=t(16607),p=t(35182),d=t(78048),k=t(96987),M=t(17734),C=t(90820),w=t(61456);const I=(0,s.default)(h.x)`
  ${(0,c.k3)()}
`,F=(0,s.default)(h.x)`
  border: none;
  resize: none;

  ::placeholder {
    color: ${({theme:N})=>N.colors.neutral500};
    font-size: ${({theme:N})=>N.fontSizes[2]};
    color: ${({theme:N})=>N.colors.neutral500};
    opacity: 1;
  }

  &:focus-within {
    outline: none;
  }
`,U=n.forwardRef(({disabled:N,...D},x)=>{const{id:T,error:u,hint:b,required:E}=(0,p.U)(),A=Boolean(u);let R=b?`${T}-hint`:void 0;return u&&(R=`${T}-error`),(0,r.jsx)(I,{borderColor:A?"danger600":"neutral200",hasError:A,hasRadius:!0,children:(0,r.jsx)(F,{"aria-describedby":R,"aria-invalid":A,"aria-required":E,as:"textarea",background:N?"neutral150":"neutral0",color:N?"neutral600":"neutral800",disabled:N,fontSize:2,hasRadius:!0,height:`${105/16}rem`,id:T,ref:x,lineHeight:4,padding:4,width:"100%",...D})})}),B=n.forwardRef(({name:N,hint:D,error:x,label:T,labelAction:u,id:b,required:E=!1,children:A,value:R,...H},z)=>{const V=(0,a.M)(b);return(0,r.jsx)(d.g,{name:N,hint:D,error:x,id:V,required:E,children:(0,r.jsxs)(k.k,{direction:"column",alignItems:"stretch",gap:1,children:[T&&(0,r.jsx)(M.Q,{action:u,children:T}),(0,r.jsx)(U,{ref:z,value:A??R,...H}),(0,r.jsx)(C.J,{}),(0,r.jsx)(w.c,{})]})})})},79971:(Z,v,t)=>{"use strict";t.d(v,{c:()=>B,j:()=>D});var r=t(85893),n=t(67294),s=t(59110),a=t(46449),c=t(60914),h=t(33850),p=t(86564),d=t(73881),k=t(92058),M=t(78048),C=t(96987),w=t(17734),I=t(90820),F=t(61456);const U=x=>Boolean(x.match(/^[^a-zA-Z]*$/)),B=n.forwardRef(({id:x,step:T=15,ariaLabel:u,selectButtonTitle:b,value:E,defaultValue:A,onChange:R,...H},z)=>{const V=(0,h.P)("TimePicker"),$=(0,k.M)(x),[ee,q]=n.useState(""),[oe,X]=(0,p.T)({prop:E,defaultProp:A,onChange:R}),pe=(0,d.a)(V.locale,{hour:"2-digit",minute:"2-digit",hour12:!1}),Ie=n.useMemo(()=>{const Me=pe.formatToParts(new Date),{value:Ce}=Me.find(Ne=>Ne.type==="literal");return Ce},[pe]),se=n.useMemo(()=>{const Me=60/T;return[...Array(24).keys()].flatMap(Ce=>[...Array(Me).keys()].map(Ne=>pe.format(new Date(0,0,0,Ce,Ne*T))))},[T,pe]),be=Me=>{(!Me||U(Me))&&q(Me)},fe=Me=>{const[Ce,Ne]=Me.split(Ie);if(!Ce&&!Ne)return;const Ye=Number(Ce??"0"),mt=Number(Ne??"0");if(!(Ye>23||mt>59))return pe.format(new Date(0,0,0,Ye,mt))},ue=Me=>{const Ce=fe(Me.target.value);Ce?(q(Ce),X(Ce)):q(oe)},we=Me=>{if(typeof Me<"u"){const Ce=fe(Me);X(Ce)}else X(Me)};return n.useEffect(()=>{const Me=typeof E>"u"?"":E;U(Me)&&q(Me)},[E,q]),(0,r.jsx)(c.gA,{...H,ref:z,value:oe,onChange:we,isPrintableCharacter:U,allowCustomValue:!0,placeholder:`--${Ie}--`,autocomplete:"none",startIcon:(0,r.jsx)(N,{}),id:$,inputMode:"numeric",pattern:`\\d{2}\\${Ie}\\d{2}`,textValue:ee,onTextValueChange:be,onBlur:ue,children:se.map(Me=>(0,r.jsx)(c.Wx,{value:Me,children:Me},Me))})}),N=(0,a.default)(s.Z)`
  height: 1rem;
  width: 1rem;

  & > path {
    fill: ${({theme:x})=>x.colors.neutral500};
  }
`,D=n.forwardRef(({label:x,error:T,hint:u,id:b,required:E,labelAction:A,...R},H)=>{const z=(0,k.M)(b);return(0,r.jsx)(M.g,{hint:u,error:T,id:z,required:E,children:(0,r.jsxs)(C.k,{direction:"column",alignItems:"stretch",gap:1,children:[(0,r.jsx)(w.Q,{action:A,children:x}),(0,r.jsx)(B,{ref:H,id:z,error:T,required:E,...R}),(0,r.jsx)(I.J,{}),(0,r.jsx)(F.c,{})]})})})},17705:(Z,v,t)=>{"use strict";t.d(v,{s:()=>x});var r=t(85893),n=t(67294),s=t(46449),a=t(86564),c=t(92058),h=t(35182),p=t(10574),d=t(96987),k=t(66362),M=t(78048),C=t(17734),w=t(90820),I=t(61456),F=t(58753);const U=n.forwardRef(({offLabel:u,onLabel:b,disabled:E,checked:A,onChange:R,size:H="M",...z},V)=>{const[$=!1,ee]=(0,a.T)({prop:A}),{error:q,id:oe,name:X,required:pe}=(0,h.U)(),Ie=$!==null&&!$,se=`${oe}-hint`,be=`${oe}-error`;return(0,r.jsxs)(B,{position:"relative",hasRadius:!0,padding:1,background:E?"neutral150":"neutral100",borderStyle:"solid",borderWidth:"1px",borderColor:"neutral200",wrap:"wrap",cursor:E?"not-allowed":"pointer",hasError:Boolean(q),children:[(0,r.jsx)(N,{hasRadius:!0,flex:"1 1 50%",paddingTop:2,paddingBottom:2,paddingLeft:3,paddingRight:3,justifyContent:"center",background:E&&Ie?"neutral200":Ie?"neutral0":"transparent",borderColor:E&&Ie?"neutral300":Ie?"neutral200":E?"neutral150":"neutral100",size:H,children:(0,r.jsx)(p.Z,{variant:"pi",fontWeight:"bold",textTransform:"uppercase",textColor:E?"neutral700":Ie?"danger700":"neutral600",children:u})}),(0,r.jsx)(N,{hasRadius:!0,flex:"1 1 50%",paddingLeft:3,paddingRight:3,justifyContent:"center",background:E&&$?"neutral200":$?"neutral0":"transparent",borderColor:E&&$?"neutral300":$?"neutral200":E?"neutral150":"neutral100",size:H,children:(0,r.jsx)(p.Z,{variant:"pi",fontWeight:"bold",textTransform:"uppercase",textColor:E?"neutral700":$?"primary600":"neutral600",children:b})}),(0,r.jsx)(D,{...z,ref:V,onChange:fe=>{ee(fe.currentTarget.checked),R?.(fe)},type:"checkbox",id:oe,name:X,"aria-required":pe,disabled:E,"aria-disabled":E,"aria-describedby":oe?`${se} ${be}`:void 0,checked:Boolean($)})]})}),B=(0,s.default)(d.k)`
  ${(0,k.k3)()}
`,N=(0,s.default)(d.k)`
  /**
    We declare the defined value because we want the height of the input when 
    the values are in a row to be 40px. But defining a height on the label
    would break the input when it wraps.
  */
  padding-top: ${({size:u})=>`${u==="S"?"2px":"6px"}`};
  padding-bottom: ${({size:u})=>`${u==="S"?"2px":"6px"}`};
`,D=s.default.input`
  height: 100%;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  z-index: 0;
  width: 100%;
`,x=n.forwardRef(({disabled:u=!1,error:b,hint:E,label:A,name:R,labelAction:H,required:z=!1,id:V,onClear:$,clearLabel:ee,checked:q,...oe},X)=>{const pe=(0,c.M)(V);return(0,r.jsx)(M.g,{name:R,hint:E,error:b,id:pe,required:z,maxWidth:"320px",children:(0,r.jsxs)(d.k,{direction:"column",alignItems:"stretch",gap:1,children:[(0,r.jsxs)(d.k,{children:[A?(0,r.jsx)(C.Q,{action:H,children:A}):null,ee&&$&&q!==null&&!u&&(0,r.jsx)(T,{onClick:$,children:ee})]}),(0,r.jsx)(U,{ref:X,checked:q,disabled:u,...oe}),(0,r.jsx)(w.J,{}),(0,r.jsx)(I.c,{})]})})}),T=(0,s.default)(F.A)`
  align-self: flex-end;
  margin-left: auto;
`},81315:(Z,v,t)=>{"use strict";t.d(v,{u:()=>D});var r=t(85893),n=t(67294),s=t(46449);const a=x=>{const[T,u]=(0,n.useState)(!1),b=(0,n.useRef)(null),E=()=>{typeof b.current=="number"&&(clearTimeout(b.current),b.current=null)};return(0,n.useEffect)(()=>()=>{E()},[]),{visible:T,onFocus:()=>{u(!0)},onBlur:()=>{u(!1)},onMouseEnter:()=>{b.current=setTimeout(()=>{u(!0)},x)},onMouseLeave:()=>{E(),u(!1)}}},c=8,h=(x,T)=>{const u=(x.width-T.width)/2,b=T.left-u,E=T.top+T.height+c+window.pageYOffset;return{left:b,top:E}},p=(x,T)=>{const u=(x.height-T.height)/2,b=T.left+T.width+c,E=T.top-u+window.pageYOffset;return{left:b,top:E}},d=(x,T)=>{const u=(x.height-T.height)/2,b=T.left-x.width-c,E=T.top-u+window.pageYOffset;return{left:b,top:E}},k=(x,T)=>{const u=(x.width-T.width)/2;let b=T.left-u,E=T.top-x.height-c+window.pageYOffset;const A=window.innerWidth-T.right;return T.left+x.width-A>window.innerWidth?(b=T.left-x.width-c,E=T.top+window.scrollY-T.height/2):b<0?(b=T.width+T.left+c,E=T.top+window.scrollY-x.height/2+c):E<0&&b>0&&(E=T.top+T.height+c),{left:b,top:E}},M=(x,T,u)=>{const b=x.getBoundingClientRect(),E=T.getBoundingClientRect();return u==="bottom"?h(b,E):u==="right"?p(b,E):u==="left"?d(b,E):k(b,E)},C=(x,T)=>{const u=(0,n.useRef)(null),b=(0,n.useRef)(null);return(0,n.useLayoutEffect)(()=>{if(x){const E=u.current,A=b.current;if(E&&A){const R=M(E,A,T);E.style.left=`${R.left}px`,E.style.top=`${R.top}px`}}},[T,x]),{tooltipWrapperRef:u,toggleSourceRef:b}};var w=t(92058),I=t(11219),F=t(16607),U=t(22304),B=t(10574);const N=(0,s.default)(F.x)`
  /* z-index exist because of its position inside Modals */
  z-index: 4;
  display: ${({visible:x})=>x?"revert":"none"};
`,D=({children:x,label:T,description:u,delay:b=500,position:E="top",id:A,...R})=>{const H=(0,w.M)(A),z=(0,w.M)(),{visible:V,...$}=a(b),{tooltipWrapperRef:ee,toggleSourceRef:q}=C(V,E),oe=n.cloneElement(x,{tabIndex:0,"aria-labelledby":T?H:void 0,"aria-describedby":u?H:void 0,...$});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(I.h,{children:(0,r.jsxs)(N,{id:H,background:"neutral900",hasRadius:!0,padding:2,role:"tooltip",ref:ee,visible:V,position:"absolute",...R,children:[V&&(0,r.jsx)(U.T,{id:z,children:u}),(0,r.jsx)(B.Z,{as:"p",variant:"pi",fontWeight:"bold",textColor:"neutral0",children:T||u})]})}),(0,r.jsx)("span",{ref:q,children:oe})]})}},10574:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>F});var r=t(46449);const n="alpha",s="beta",a="delta",c="epsilon",h="omega",p="pi",d="sigma",k=[n,s,a,c,h,p,d],M=({ellipsis:U=!1})=>U&&`
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  `,C=({variant:U=h,theme:B})=>{switch(U){case n:return`
        font-weight: ${B.fontWeights.bold};
        font-size: ${B.fontSizes[5]};
        line-height: ${B.lineHeights[2]};
      `;case s:return`
        font-weight: ${B.fontWeights.bold};
        font-size: ${B.fontSizes[4]};
        line-height: ${B.lineHeights[1]};
      `;case a:return`
        font-weight: ${B.fontWeights.semiBold};
        font-size: ${B.fontSizes[3]};
        line-height: ${B.lineHeights[2]};
      `;case c:return`
        font-size: ${B.fontSizes[3]};
        line-height: ${B.lineHeights[6]};
      `;case h:return`
        font-size: ${B.fontSizes[2]};
        line-height: ${B.lineHeights[4]};
      `;case p:return`
        font-size: ${B.fontSizes[1]};
        line-height: ${B.lineHeights[3]};
      `;case d:return`
        font-weight: ${B.fontWeights.bold};
        font-size: ${B.fontSizes[0]};
        line-height: ${B.lineHeights[5]};
        text-transform: uppercase;
      `;default:return`
        font-size: ${B.fontSizes[2]};
      `}};var w=t(79581);const I={fontSize:!0,fontWeight:!0},F=r.default.span.withConfig({shouldForwardProp:(U,B)=>!I[U]&&B(U)})`
  ${C}
  ${M}

  // These properties need to come after {variantStyle}, because they might
  // overwrite a variant attribute
  font-weight: ${({theme:U,fontWeight:B})=>(0,w.$)(U.fontWeights,B,void 0)};
  font-size: ${({theme:U,fontSize:B})=>(0,w.$)(U.fontSizes,B,void 0)};
  line-height: ${({theme:U,lineHeight:B})=>(0,w.$)(U.lineHeights,B,B)};
  color: ${({theme:U,textColor:B})=>U.colors[B||"neutral800"]};
  text-align: ${({textAlign:U})=>U};
  text-decoration: ${({textDecoration:U})=>U};
  text-transform: ${({textTransform:U})=>U};
`},22304:(Z,v,t)=>{"use strict";t.d(v,{T:()=>n});var r=t(46449);const n=r.default.div`
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
`},87349:(Z,v,t)=>{"use strict";t.d(v,{k:()=>s});var r=t(85893),n=t(67294);const s=(a,c)=>{const h=n.createContext(c);function p(k){const{children:M,...C}=k,w=n.useMemo(()=>C,Object.values(C));return(0,r.jsx)(h.Provider,{value:w,children:M})}function d(k){const M=n.useContext(h);if(M)return M;if(c!==void 0)return c;throw new Error(`\`${k}\` must be used within \`${a}\``)}return p.displayName=`${a}Provider`,[p,d]}},61459:(Z,v,t)=>{"use strict";t.d(v,{I:()=>n});const r="[@strapi/design-system]:",n=s=>{const a=s;let c=!1;if(typeof a!="function")throw new TypeError(`${r} once requires a function parameter`);return(...h)=>{c||(a(...h),c=!0)}}},66358:(Z,v,t)=>{"use strict";t.d(v,{p:()=>r,u:()=>n});const r=(s,a)=>[...s.querySelectorAll('a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])')].filter(p=>p.hasAttribute("disabled")?!1:a?!0:p.getAttribute("tabindex")!=="-1"),n=s=>s.filter(a=>a.tagName==="INPUT"?a.type!=="checkbox"&&a.type!=="radio":!1)},33368:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>r});const r=(n,s,a)=>{if(!s)return;let c=Array.isArray(s)?s:[];if(!Array.isArray(s)&&typeof s=="object"&&(c=[s?.desktop,s?.tablet,s?.mobile]),c.length>0)return c.reduce((d,k,M)=>{if(k)switch(M){case 0:return`${d}${n}: ${a.spaces[k]};`;case 1:return`${d}${a.mediaQueries.tablet}{${n}: ${a.spaces[k]};}`;case 2:return`${d}${a.mediaQueries.mobile}{${n}: ${a.spaces[k]};}`;default:return d}return d},"");const h=a.spaces[s]||s;return`${n}: ${h};`}},40840:(Z,v,t)=>{"use strict";t.d(v,{y:()=>r});const r={DOWN:"ArrowDown",UP:"ArrowUp",RIGHT:"ArrowRight",LEFT:"ArrowLeft",ESCAPE:"Escape",ENTER:"Enter",SPACE:" ",TAB:"Tab",END:"End",HOME:"Home",DELETE:"Delete",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",BACKSPACE:"Backspace",CLEAR:"Clear"}},75518:(Z,v,t)=>{"use strict";t.d(v,{B:()=>r});const r=n=>n.replaceAll(":","")},79581:(Z,v,t)=>{"use strict";t.d(v,{$:()=>s});function r(a,c){return typeof a=="string"?!1:c in a}function n(a){return a&&typeof a=="object"&&!Array.isArray(a)}function s(a,c,h){return c&&r(a,c)?a[c]:h}},27121:(Z,v,t)=>{"use strict";t.d(v,{F:()=>s,e:()=>a});var r=t(67294);function n(c,h){typeof c=="function"?c(h):c!=null&&(c.current=h)}function s(...c){return h=>c.forEach(p=>n(p,h))}function a(...c){return r.useCallback(s(...c),c)}},86564:(Z,v,t)=>{"use strict";t.d(v,{T:()=>s});var r=t(67294),n=t(79698);function s({prop:c,defaultProp:h,onChange:p=()=>{}}){const[d,k]=a({defaultProp:h,onChange:p}),M=c!==void 0,C=c instanceof Function?c(d):c,w=M?C:d,I=(0,n.W)(p),F=r.useCallback(U=>{if(M){const N=typeof U=="function"?U(C):U;N!==C&&(I(N),k(U))}else k(U)},[M,C,k,I]);return[w,F]}function a({defaultProp:c,onChange:h}){const p=r.useState(c),[d]=p,k=r.useRef(d),M=(0,n.W)(h);return r.useEffect(()=>{k.current!==d&&(M(d),k.current=d)},[d,k,M]),p}},73881:(Z,v,t)=>{"use strict";t.d(v,{a:()=>s});var r=t(67294),n=t(97575);function s(c,h){let p=r.useRef(null);return h&&p.current&&a(h,p.current)&&(h=p.current),p.current=h??null,r.useMemo(()=>new n.CN(c,h),[c,h])}function a(c,h){if(c===h)return!0;let p=Object.keys(c),d=Object.keys(h);if(p.length!==d.length)return!1;for(let k of p)if(h[k]!==c[k])return!1;return!0}},92058:(Z,v,t)=>{"use strict";t.d(v,{M:()=>a});var r=t(67294);const n=r["useId".toString()]||(()=>{});let s=0;const a=c=>{const[h,p]=(0,r.useState)(n());return(0,r.useLayoutEffect)(()=>{c||p(d=>d??String(s++))},[c]),c?.toString()??(h||"")}},60141:(Z,v,t)=>{"use strict";t.d(v,{s:()=>s});var r=t(67294),n=t(79698);const s=(a,c,{selectorToWatch:h,skipWhen:p=!1})=>{const d=(0,n.W)(c);(0,r.useEffect)(()=>{if(p||!a.current)return;const k={root:a.current,rootMargin:"0px"},M=I=>{I.forEach(F=>{F.isIntersecting&&a.current&&a.current.scrollHeight>a.current.clientHeight&&d(F)})},C=new IntersectionObserver(M,k),w=a.current.querySelector(h);return w&&C.observe(w),()=>{C.disconnect()}},[p,d,h,a])}},48250:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>n});var r=t(67294);const n=s=>{(0,r.useEffect)(()=>(s&&document.body.classList.add("lock-body-scroll"),()=>{document.body.classList.remove("lock-body-scroll")}),[s])}},55189:(Z,v,t)=>{"use strict";t.d(v,{x:()=>n});const n={sizes:{input:{S:`${32/16}rem`,M:`${40/16}rem`},accordions:{S:`${48/16}rem`,M:`${88/16}rem`},badge:{S:`${16/16}rem`,M:`${24/16}rem`},button:{S:`${32/16}rem`,M:`${36/16}rem`,L:`${40/16}rem`}},zIndices:[5,10,15,20],spaces:["0px","4px","8px","12px","16px","20px","24px","32px","40px","48px","56px","64px"],borderRadius:"4px",mediaQueries:{tablet:`@media (max-width: ${1100/16}rem)`,mobile:`@media (max-width: ${550/16}rem)`},fontSizes:[`${11/16}rem`,`${12/16}rem`,`${14/16}rem`,"1rem",`${18/16}rem`,`${32/16}rem`],lineHeights:[1.14,1.22,1.25,1.33,1.43,1.45,1.5],fontWeights:{regular:400,semiBold:500,bold:600}}},12255:(Z,v,t)=>{"use strict";t.d(v,{W:()=>a});const r={color:{alternative100:"#f6ecfc",alternative200:"#e0c1f4",alternative500:"#ac73e6",alternative600:"#9736e8",alternative700:"#8312d1",buttonNeutral0:"#ffffff",buttonPrimary500:"#7b79ff",buttonPrimary600:"#4945ff",danger100:"#fcecea",danger200:"#f5c0b8",danger500:"#ee5e52",danger600:"#d02b20",danger700:"#b72b1a",neutral0:"#ffffff",neutral100:"#f6f6f9",neutral1000:"#181826",neutral150:"#eaeaef",neutral200:"#dcdce4",neutral300:"#c0c0cf",neutral400:"#a5a5ba",neutral500:"#8e8ea9",neutral600:"#666687",neutral700:"#4a4a6a",neutral800:"#32324d",neutral900:"#212134",primary100:"#f0f0ff",primary200:"#d9d8ff",primary500:"#7b79ff",primary600:"#4945ff",primary700:"#271fe0",secondary100:"#eaf5ff",secondary200:"#b8e1ff",secondary500:"#66b7f1",secondary600:"#0c75af",secondary700:"#006096",success100:"#eafbe7",success200:"#c6f0c2",success500:"#5cb176",success600:"#328048",success700:"#2f6846",warning100:"#fdf4dc",warning200:"#fae7b9",warning500:"#f29d41",warning600:"#d9822f",warning700:"#be5d01"}},n={shadow:{filterShadow:"0px 1px 4px rgba(33, 33, 52, 0.1)",focus:"inset 2px 0px 0px rgb(39, 31, 224), inset 0px 2px 0px rgb(39, 31, 224), inset -2px 0px 0px rgb(39, 31, 224), inset 0px -2px 0px rgb(39, 31, 224)",focusShadow:"0px 0px 6px rgba(76, 191, 255, 0.75)",popupShadow:"0px 2px 15px rgba(33, 33, 52, 0.1)",tableShadow:"0px 1px 4px rgba(33, 33, 52, 0.1)"}};var s=t(55189);const a={colors:r.color,shadows:n.shadow,...s.x}},66362:(Z,v,t)=>{"use strict";t.d(v,{BF:()=>a,ZB:()=>n,k3:()=>s});var r=t(46449);const n=c=>({theme:h,size:p})=>h.sizes[c][p],s=(c="&")=>({theme:h,hasError:p=!1})=>(0,r.css)`
    outline: none;
    box-shadow: 0;
    transition-property: border-color, box-shadow, fill;
    transition-duration: 0.2s;

    ${c}:focus-within {
      border: 1px solid ${p?h.colors.danger600:h.colors.primary600};
      box-shadow: ${p?h.colors.danger600:h.colors.primary600} 0px 0px 0px 2px;
    }
  `,a=({theme:c})=>(0,r.css)`
  position: relative;
  outline: none;

  &:after {
    transition-property: all;
    transition-duration: 0.2s;
    border-radius: 8px;
    content: '';
    position: absolute;
    top: -4px;
    bottom: -4px;
    left: -4px;
    right: -4px;
    border: 2px solid transparent;
  }

  &:focus-visible {
    outline: none;
    &:after {
      border-radius: 8px;
      content: '';
      position: absolute;
      top: -5px;
      bottom: -5px;
      left: -5px;
      right: -5px;
      border: 2px solid ${c.colors.primary600};
    }
  }
`},82392:(Z,v,t)=>{"use strict";t.d(v,{O:()=>k});var r=t(85893),n=t(67294),s=t(46449),a=t(16607),c=t(10574);const h=()=>(0,r.jsx)(a.x,{"aria-hidden":!0,paddingLeft:1,paddingRight:1,children:(0,r.jsx)(c.Z,{variant:"pi",textColor:"neutral500",children:"/"})});h.displayName="Divider";var p=t(96987);const d=(0,s.default)(p.k)`
  // CrumbLinks do have padding-x, because they need to have a
  // interaction effect, which mis-aligns the breadcrumbs on the left.
  // This normalizes the behavior by moving the first item to left by
  // the same amount it has inner padding
  :first-child {
    margin-left: ${({theme:M})=>`calc(-1*${M.spaces[2]})`};
  }
`,k=({label:M,children:C,...w})=>{const I=n.Children.toArray(C);return(0,r.jsx)(a.x,{"aria-label":M,...w,children:(0,r.jsx)(d,{as:"ol",children:n.Children.map(I,(F,U)=>{const B=I.length>1&&U+1<I.length;return(0,r.jsxs)(p.k,{inline:!0,as:"li",children:[F,B&&(0,r.jsx)(h,{})]})})})})};k.displayName="Breadcrumbs"},75071:(Z,v,t)=>{"use strict";t.d(v,{$:()=>a});var r=t(85893),n=t(16607),s=t(10574);const a=({children:c,isCurrent:h=!1,...p})=>(0,r.jsx)(n.x,{paddingLeft:2,paddingRight:2,paddingTop:1,paddingBottom:1,children:(0,r.jsx)(s.Z,{variant:"pi",textColor:"neutral800",fontWeight:h?"bold":"normal","aria-current":h,...p,children:c})});a.displayName="Crumb"},29430:(Z,v,t)=>{"use strict";t.d(v,{r:()=>k});var r=t(85893),n=t(67294),s=t(62577),a=t(46449),c=t(66362),h=t(53342),p=t(10574);const d=(0,a.default)(h.f)`
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  gap: ${({theme:M})=>M.spaces[2]};
  pointer-events: ${({disabled:M})=>M?"none":void 0};

  svg {
    font-size: ${10/16}rem;

    path {
      fill: ${({disabled:M,theme:C})=>M?C.colors.neutral600:C.colors.primary600};
    }
  }

  &:hover {
    color: ${({theme:M})=>M.colors.primary500};
  }

  &:active {
    color: ${({theme:M})=>M.colors.primary700};
  }

  ${c.BF};
`,k=n.forwardRef(({children:M,href:C,disabled:w=!1,startIcon:I,endIcon:F,isExternal:U=!0,...B},N)=>(0,r.jsxs)(d,{ref:N,href:C,disabled:w,isExternal:U,...B,children:[I,(0,r.jsx)(p.Z,{textColor:w?"neutral600":"primary600",children:M}),F,C&&!F&&U&&(0,r.jsx)(s.Z,{})]}));k.displayName="Link"},40563:(Z,v,t)=>{"use strict";t.d(v,{VY:()=>Na,ck:()=>xl,__:()=>Rl,fC:()=>Di,tu:()=>rl,rl:()=>Pa,fF:()=>fi,xz:()=>Il});var r=t(85893),n=t(67294),s=t(87462),a=t(36206),c=t(28771),h=t(25360),p=t(77342),d=t(75320),k=t(65936),M=t(78990),C=t(64369),w=t(27552),I=t(95420),F=t(91276),U=t(82272),B=t(42651),N=t(73935),D=t(9981);function x(Xn,Kr){return(0,n.useReducer)((Ln,gr)=>{const pr=Kr[Ln][gr];return pr??Ln},Xn)}const T=Xn=>{const{present:Kr,children:Ln}=Xn,gr=u(Kr),pr=typeof Ln=="function"?Ln({present:gr.isPresent}):n.Children.only(Ln),Wr=(0,c.e)(gr.ref,pr.ref);return typeof Ln=="function"||gr.isPresent?(0,n.cloneElement)(pr,{ref:Wr}):null};T.displayName="Presence";function u(Xn){const[Kr,Ln]=(0,n.useState)(),gr=(0,n.useRef)({}),pr=(0,n.useRef)(Xn),Wr=(0,n.useRef)("none"),Lt=Xn?"mounted":"unmounted",[re,me]=x(Lt,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,n.useEffect)(()=>{const Ue=b(gr.current);Wr.current=re==="mounted"?Ue:"none"},[re]),(0,D.b)(()=>{const Ue=gr.current,He=pr.current;if(He!==Xn){const Ut=Wr.current,en=b(Ue);Xn?me("MOUNT"):en==="none"||Ue?.display==="none"?me("UNMOUNT"):me(He&&Ut!==en?"ANIMATION_OUT":"UNMOUNT"),pr.current=Xn}},[Xn,me]),(0,D.b)(()=>{if(Kr){const Ue=At=>{const en=b(gr.current).includes(At.animationName);At.target===Kr&&en&&(0,N.flushSync)(()=>me("ANIMATION_END"))},He=At=>{At.target===Kr&&(Wr.current=b(gr.current))};return Kr.addEventListener("animationstart",He),Kr.addEventListener("animationcancel",Ue),Kr.addEventListener("animationend",Ue),()=>{Kr.removeEventListener("animationstart",He),Kr.removeEventListener("animationcancel",Ue),Kr.removeEventListener("animationend",Ue)}}else me("ANIMATION_END")},[Kr,me]),{isPresent:["mounted","unmountSuspended"].includes(re),ref:(0,n.useCallback)(Ue=>{Ue&&(gr.current=getComputedStyle(Ue)),Ln(Ue)},[])}}function b(Xn){return Xn?.animationName||"none"}var E=t(66681),A=t(88426),R=t(79698),H=t(23541),z=t(97582),V=t(71642),$=t(7916),ee=t(87122),q=(0,ee._)(),oe=function(){},X=n.forwardRef(function(Xn,Kr){var Ln=n.useRef(null),gr=n.useState({onScrollCapture:oe,onWheelCapture:oe,onTouchMoveCapture:oe}),pr=gr[0],Wr=gr[1],Lt=Xn.forwardProps,re=Xn.children,me=Xn.className,Ue=Xn.removeScrollBar,He=Xn.enabled,At=Xn.shards,Ut=Xn.sideCar,en=Xn.noIsolation,Yt=Xn.inert,In=Xn.allowPinchZoom,$n=Xn.as,wr=$n===void 0?"div":$n,Tr=(0,z._T)(Xn,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),qr=Ut,di=(0,$.q)([Ln,Kr]),ai=(0,z.pi)((0,z.pi)({},Tr),pr);return n.createElement(n.Fragment,null,He&&n.createElement(qr,{sideCar:q,removeScrollBar:Ue,shards:At,noIsolation:en,inert:Yt,setCallbacks:Wr,allowPinchZoom:!!In,lockRef:Ln}),Lt?n.cloneElement(n.Children.only(re),(0,z.pi)((0,z.pi)({},ai),{ref:di})):n.createElement(wr,(0,z.pi)({},ai,{className:me,ref:di}),re))});X.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},X.classNames={fullWidth:V.zi,zeroRight:V.pF};var pe=t(66781),Ie=t(32506),se=t(78232),be=!1;if(typeof window<"u")try{var fe=Object.defineProperty({},"passive",{get:function(){return be=!0,!0}});window.addEventListener("test",fe,fe),window.removeEventListener("test",fe,fe)}catch{be=!1}var ue=be?{passive:!1}:!1,we=function(Xn){return Xn.tagName==="TEXTAREA"},Me=function(Xn,Kr){var Ln=window.getComputedStyle(Xn);return Ln[Kr]!=="hidden"&&!(Ln.overflowY===Ln.overflowX&&!we(Xn)&&Ln[Kr]==="visible")},Ce=function(Xn){return Me(Xn,"overflowY")},Ne=function(Xn){return Me(Xn,"overflowX")},Ye=function(Xn,Kr){var Ln=Kr;do{typeof ShadowRoot<"u"&&Ln instanceof ShadowRoot&&(Ln=Ln.host);var gr=ln(Xn,Ln);if(gr){var pr=$e(Xn,Ln),Wr=pr[1],Lt=pr[2];if(Wr>Lt)return!0}Ln=Ln.parentNode}while(Ln&&Ln!==document.body);return!1},mt=function(Xn){var Kr=Xn.scrollTop,Ln=Xn.scrollHeight,gr=Xn.clientHeight;return[Kr,Ln,gr]},Ct=function(Xn){var Kr=Xn.scrollLeft,Ln=Xn.scrollWidth,gr=Xn.clientWidth;return[Kr,Ln,gr]},ln=function(Xn,Kr){return Xn==="v"?Ce(Kr):Ne(Kr)},$e=function(Xn,Kr){return Xn==="v"?mt(Kr):Ct(Kr)},Qe=function(Xn,Kr){return Xn==="h"&&Kr==="rtl"?-1:1},bt=function(Xn,Kr,Ln,gr,pr){var Wr=Qe(Xn,window.getComputedStyle(Kr).direction),Lt=Wr*gr,re=Ln.target,me=Kr.contains(re),Ue=!1,He=Lt>0,At=0,Ut=0;do{var en=$e(Xn,re),Yt=en[0],In=en[1],$n=en[2],wr=In-$n-Wr*Yt;(Yt||wr)&&ln(Xn,re)&&(At+=wr,Ut+=Yt),re=re.parentNode}while(!me&&re!==document.body||me&&(Kr.contains(re)||Kr===re));return(He&&(pr&&At===0||!pr&&Lt>At)||!He&&(pr&&Ut===0||!pr&&-Lt>Ut))&&(Ue=!0),Ue},It=function(Xn){return"changedTouches"in Xn?[Xn.changedTouches[0].clientX,Xn.changedTouches[0].clientY]:[0,0]},mn=function(Xn){return[Xn.deltaX,Xn.deltaY]},un=function(Xn){return Xn&&"current"in Xn?Xn.current:Xn},Be=function(Xn,Kr){return Xn[0]===Kr[0]&&Xn[1]===Kr[1]},je=function(Xn){return`
  .block-interactivity-`.concat(Xn,` {pointer-events: none;}
  .allow-interactivity-`).concat(Xn,` {pointer-events: all;}
`)},$t=0,et=[];function Kt(Xn){var Kr=n.useRef([]),Ln=n.useRef([0,0]),gr=n.useRef(),pr=n.useState($t++)[0],Wr=n.useState(function(){return(0,se.Ws)()})[0],Lt=n.useRef(Xn);n.useEffect(function(){Lt.current=Xn},[Xn]),n.useEffect(function(){if(Xn.inert){document.body.classList.add("block-interactivity-".concat(pr));var In=(0,z.ev)([Xn.lockRef.current],(Xn.shards||[]).map(un),!0).filter(Boolean);return In.forEach(function($n){return $n.classList.add("allow-interactivity-".concat(pr))}),function(){document.body.classList.remove("block-interactivity-".concat(pr)),In.forEach(function($n){return $n.classList.remove("allow-interactivity-".concat(pr))})}}},[Xn.inert,Xn.lockRef.current,Xn.shards]);var re=n.useCallback(function(In,$n){if("touches"in In&&In.touches.length===2)return!Lt.current.allowPinchZoom;var wr=It(In),Tr=Ln.current,qr="deltaX"in In?In.deltaX:Tr[0]-wr[0],di="deltaY"in In?In.deltaY:Tr[1]-wr[1],ai,Ri=In.target,Qi=Math.abs(qr)>Math.abs(di)?"h":"v";if("touches"in In&&Qi==="h"&&Ri.type==="range")return!1;var so=Ye(Qi,Ri);if(!so)return!0;if(so?ai=Qi:(ai=Qi==="v"?"h":"v",so=Ye(Qi,Ri)),!so)return!1;if(!gr.current&&"changedTouches"in In&&(qr||di)&&(gr.current=ai),!ai)return!0;var Do=gr.current||ai;return bt(Do,$n,In,Do==="h"?qr:di,!0)},[]),me=n.useCallback(function(In){var $n=In;if(!(!et.length||et[et.length-1]!==Wr)){var wr="deltaY"in $n?mn($n):It($n),Tr=Kr.current.filter(function(ai){return ai.name===$n.type&&ai.target===$n.target&&Be(ai.delta,wr)})[0];if(Tr&&Tr.should){$n.cancelable&&$n.preventDefault();return}if(!Tr){var qr=(Lt.current.shards||[]).map(un).filter(Boolean).filter(function(ai){return ai.contains($n.target)}),di=qr.length>0?re($n,qr[0]):!Lt.current.noIsolation;di&&$n.cancelable&&$n.preventDefault()}}},[]),Ue=n.useCallback(function(In,$n,wr,Tr){var qr={name:In,delta:$n,target:wr,should:Tr};Kr.current.push(qr),setTimeout(function(){Kr.current=Kr.current.filter(function(di){return di!==qr})},1)},[]),He=n.useCallback(function(In){Ln.current=It(In),gr.current=void 0},[]),At=n.useCallback(function(In){Ue(In.type,mn(In),In.target,re(In,Xn.lockRef.current))},[]),Ut=n.useCallback(function(In){Ue(In.type,It(In),In.target,re(In,Xn.lockRef.current))},[]);n.useEffect(function(){return et.push(Wr),Xn.setCallbacks({onScrollCapture:At,onWheelCapture:At,onTouchMoveCapture:Ut}),document.addEventListener("wheel",me,ue),document.addEventListener("touchmove",me,ue),document.addEventListener("touchstart",He,ue),function(){et=et.filter(function(In){return In!==Wr}),document.removeEventListener("wheel",me,ue),document.removeEventListener("touchmove",me,ue),document.removeEventListener("touchstart",He,ue)}},[]);var en=Xn.removeScrollBar,Yt=Xn.inert;return n.createElement(n.Fragment,null,Yt?n.createElement(Wr,{styles:je(pr)}):null,en?n.createElement(Ie.jp,{gapMode:"margin"}):null)}const kn=(0,pe.L)(q,Kt);var Tn=n.forwardRef(function(Xn,Kr){return n.createElement(X,(0,z.pi)({},Xn,{ref:Kr,sideCar:kn}))});Tn.classNames=X.classNames;const ht=Tn,ot=["Enter"," "],Je=["ArrowDown","PageUp","Home"],wt=["ArrowUp","PageDown","End"],ft=[...Je,...wt],vn={ltr:[...ot,"ArrowRight"],rtl:[...ot,"ArrowLeft"]},ut={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Wt="Menu",[ae,ne,ge]=(0,k.B)(Wt),[ye,Xe]=(0,h.b)(Wt,[ge,U.D7,E.Pc]),Ze=(0,U.D7)(),lt=(0,E.Pc)(),[_t,zt]=ye(Wt),[Vt,sn]=ye(Wt),yn=Xn=>{const{__scopeMenu:Kr,open:Ln=!1,children:gr,dir:pr,onOpenChange:Wr,modal:Lt=!0}=Xn,re=Ze(Kr),[me,Ue]=(0,n.useState)(null),He=(0,n.useRef)(!1),At=(0,R.W)(Wr),Ut=(0,M.gm)(pr);return(0,n.useEffect)(()=>{const en=()=>{He.current=!0,document.addEventListener("pointerdown",Yt,{capture:!0,once:!0}),document.addEventListener("pointermove",Yt,{capture:!0,once:!0})},Yt=()=>He.current=!1;return document.addEventListener("keydown",en,{capture:!0}),()=>{document.removeEventListener("keydown",en,{capture:!0}),document.removeEventListener("pointerdown",Yt,{capture:!0}),document.removeEventListener("pointermove",Yt,{capture:!0})}},[]),(0,n.createElement)(U.fC,re,(0,n.createElement)(_t,{scope:Kr,open:Ln,onOpenChange:At,content:me,onContentChange:Ue},(0,n.createElement)(Vt,{scope:Kr,onClose:(0,n.useCallback)(()=>At(!1),[At]),isUsingKeyboardRef:He,dir:Ut,modal:Lt},gr)))},dr="MenuAnchor",hr=(0,n.forwardRef)((Xn,Kr)=>{const{__scopeMenu:Ln,...gr}=Xn,pr=Ze(Ln);return(0,n.createElement)(U.ee,(0,s.Z)({},pr,gr,{ref:Kr}))}),Mr="MenuPortal",[rr,Cr]=ye(Mr,{forceMount:void 0}),Ur=Xn=>{const{__scopeMenu:Kr,forceMount:Ln,children:gr,container:pr}=Xn,Wr=zt(Mr,Kr);return(0,n.createElement)(rr,{scope:Kr,forceMount:Ln},(0,n.createElement)(T,{present:Ln||Wr.open},(0,n.createElement)(B.h,{asChild:!0,container:pr},gr)))},$r="MenuContent",[li,ri]=ye($r),Bt=(0,n.forwardRef)((Xn,Kr)=>{const Ln=Cr($r,Xn.__scopeMenu),{forceMount:gr=Ln.forceMount,...pr}=Xn,Wr=zt($r,Xn.__scopeMenu),Lt=sn($r,Xn.__scopeMenu);return(0,n.createElement)(ae.Provider,{scope:Xn.__scopeMenu},(0,n.createElement)(T,{present:gr||Wr.open},(0,n.createElement)(ae.Slot,{scope:Xn.__scopeMenu},Lt.modal?(0,n.createElement)(Et,(0,s.Z)({},pr,{ref:Kr})):(0,n.createElement)(bn,(0,s.Z)({},pr,{ref:Kr})))))}),Et=(0,n.forwardRef)((Xn,Kr)=>{const Ln=zt($r,Xn.__scopeMenu),gr=(0,n.useRef)(null),pr=(0,c.e)(Kr,gr);return(0,n.useEffect)(()=>{const Wr=gr.current;if(Wr)return(0,H.Ry)(Wr)},[]),(0,n.createElement)(cn,(0,s.Z)({},Xn,{ref:pr,trapFocus:Ln.open,disableOutsidePointerEvents:Ln.open,disableOutsideScroll:!0,onFocusOutside:(0,a.M)(Xn.onFocusOutside,Wr=>Wr.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>Ln.onOpenChange(!1)}))}),bn=(0,n.forwardRef)((Xn,Kr)=>{const Ln=zt($r,Xn.__scopeMenu);return(0,n.createElement)(cn,(0,s.Z)({},Xn,{ref:Kr,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>Ln.onOpenChange(!1)}))}),cn=(0,n.forwardRef)((Xn,Kr)=>{const{__scopeMenu:Ln,loop:gr=!1,trapFocus:pr,onOpenAutoFocus:Wr,onCloseAutoFocus:Lt,disableOutsidePointerEvents:re,onEntryFocus:me,onEscapeKeyDown:Ue,onPointerDownOutside:He,onFocusOutside:At,onInteractOutside:Ut,onDismiss:en,disableOutsideScroll:Yt,...In}=Xn,$n=zt($r,Ln),wr=sn($r,Ln),Tr=Ze(Ln),qr=lt(Ln),di=ne(Ln),[ai,Ri]=(0,n.useState)(null),Qi=(0,n.useRef)(null),so=(0,c.e)(Kr,Qi,$n.onContentChange),Do=(0,n.useRef)(0),Ro=(0,n.useRef)(""),Rs=(0,n.useRef)(0),Ns=(0,n.useRef)(null),Ls=(0,n.useRef)("right"),Ba=(0,n.useRef)(0),Da=Yt?ht:n.Fragment,go=Yt?{as:A.g7,allowPinchZoom:!0}:void 0,Wl=Eo=>{var Fs,_a;const Ya=Ro.current+Eo,Ss=di().filter(xa=>!xa.disabled),Zl=document.activeElement,Us=(Fs=Ss.find(xa=>xa.ref.current===Zl))===null||Fs===void 0?void 0:Fs.textValue,Ll=Ss.map(xa=>xa.textValue),nc=Gn(Ll,Ya,Us),Dc=(_a=Ss.find(xa=>xa.textValue===nc))===null||_a===void 0?void 0:_a.ref.current;(function xa(Kl){Ro.current=Kl,window.clearTimeout(Do.current),Kl!==""&&(Do.current=window.setTimeout(()=>xa(""),1e3))})(Ya),Dc&&setTimeout(()=>Dc.focus())};(0,n.useEffect)(()=>()=>window.clearTimeout(Do.current),[]),(0,w.EW)();const na=(0,n.useCallback)(Eo=>{var Fs,_a;return Ls.current===((Fs=Ns.current)===null||Fs===void 0?void 0:Fs.side)&&br(Eo,(_a=Ns.current)===null||_a===void 0?void 0:_a.area)},[]);return(0,n.createElement)(li,{scope:Ln,searchRef:Ro,onItemEnter:(0,n.useCallback)(Eo=>{na(Eo)&&Eo.preventDefault()},[na]),onItemLeave:(0,n.useCallback)(Eo=>{var Fs;na(Eo)||((Fs=Qi.current)===null||Fs===void 0||Fs.focus(),Ri(null))},[na]),onTriggerLeave:(0,n.useCallback)(Eo=>{na(Eo)&&Eo.preventDefault()},[na]),pointerGraceTimerRef:Rs,onPointerGraceIntentChange:(0,n.useCallback)(Eo=>{Ns.current=Eo},[])},(0,n.createElement)(Da,go,(0,n.createElement)(I.M,{asChild:!0,trapped:pr,onMountAutoFocus:(0,a.M)(Wr,Eo=>{var Fs;Eo.preventDefault(),(Fs=Qi.current)===null||Fs===void 0||Fs.focus()}),onUnmountAutoFocus:Lt},(0,n.createElement)(C.XB,{asChild:!0,disableOutsidePointerEvents:re,onEscapeKeyDown:Ue,onPointerDownOutside:He,onFocusOutside:At,onInteractOutside:Ut,onDismiss:en},(0,n.createElement)(E.fC,(0,s.Z)({asChild:!0},qr,{dir:wr.dir,orientation:"vertical",loop:gr,currentTabStopId:ai,onCurrentTabStopIdChange:Ri,onEntryFocus:(0,a.M)(me,Eo=>{wr.isUsingKeyboardRef.current||Eo.preventDefault()})}),(0,n.createElement)(U.VY,(0,s.Z)({role:"menu","aria-orientation":"vertical","data-state":Oe($n.open),"data-radix-menu-content":"",dir:wr.dir},Tr,In,{ref:so,style:{outline:"none",...In.style},onKeyDown:(0,a.M)(In.onKeyDown,Eo=>{const _a=Eo.target.closest("[data-radix-menu-content]")===Eo.currentTarget,Ya=Eo.ctrlKey||Eo.altKey||Eo.metaKey,Ss=Eo.key.length===1;_a&&(Eo.key==="Tab"&&Eo.preventDefault(),!Ya&&Ss&&Wl(Eo.key));const Zl=Qi.current;if(Eo.target!==Zl||!ft.includes(Eo.key))return;Eo.preventDefault();const Ll=di().filter(nc=>!nc.disabled).map(nc=>nc.ref.current);wt.includes(Eo.key)&&Ll.reverse(),Qt(Ll)}),onBlur:(0,a.M)(Xn.onBlur,Eo=>{Eo.currentTarget.contains(Eo.target)||(window.clearTimeout(Do.current),Ro.current="")}),onPointerMove:(0,a.M)(Xn.onPointerMove,fr(Eo=>{const Fs=Eo.target,_a=Ba.current!==Eo.clientX;if(Eo.currentTarget.contains(Fs)&&_a){const Ya=Eo.clientX>Ba.current?"right":"left";Ls.current=Ya,Ba.current=Eo.clientX}}))})))))))}),Yn="MenuGroup",on=(0,n.forwardRef)((Xn,Kr)=>{const{__scopeMenu:Ln,...gr}=Xn;return(0,n.createElement)(d.WV.div,(0,s.Z)({role:"group"},gr,{ref:Kr}))}),ze="MenuLabel",Le=(0,n.forwardRef)((Xn,Kr)=>{const{__scopeMenu:Ln,...gr}=Xn;return(0,n.createElement)(d.WV.div,(0,s.Z)({},gr,{ref:Kr}))}),Ht="MenuItem",Mn="menu.itemSelect",tr=(0,n.forwardRef)((Xn,Kr)=>{const{disabled:Ln=!1,onSelect:gr,...pr}=Xn,Wr=(0,n.useRef)(null),Lt=sn(Ht,Xn.__scopeMenu),re=ri(Ht,Xn.__scopeMenu),me=(0,c.e)(Kr,Wr),Ue=(0,n.useRef)(!1),He=()=>{const At=Wr.current;if(!Ln&&At){const Ut=new CustomEvent(Mn,{bubbles:!0,cancelable:!0});At.addEventListener(Mn,en=>gr?.(en),{once:!0}),(0,d.jH)(At,Ut),Ut.defaultPrevented?Ue.current=!1:Lt.onClose()}};return(0,n.createElement)(Sr,(0,s.Z)({},pr,{ref:me,disabled:Ln,onClick:(0,a.M)(Xn.onClick,He),onPointerDown:At=>{var Ut;(Ut=Xn.onPointerDown)===null||Ut===void 0||Ut.call(Xn,At),Ue.current=!0},onPointerUp:(0,a.M)(Xn.onPointerUp,At=>{var Ut;Ue.current||(Ut=At.currentTarget)===null||Ut===void 0||Ut.click()}),onKeyDown:(0,a.M)(Xn.onKeyDown,At=>{const Ut=re.searchRef.current!=="";Ln||Ut&&At.key===" "||ot.includes(At.key)&&(At.currentTarget.click(),At.preventDefault())})}))}),Sr=(0,n.forwardRef)((Xn,Kr)=>{const{__scopeMenu:Ln,disabled:gr=!1,textValue:pr,...Wr}=Xn,Lt=ri(Ht,Ln),re=lt(Ln),me=(0,n.useRef)(null),Ue=(0,c.e)(Kr,me),[He,At]=(0,n.useState)(!1),[Ut,en]=(0,n.useState)("");return(0,n.useEffect)(()=>{const Yt=me.current;if(Yt){var In;en(((In=Yt.textContent)!==null&&In!==void 0?In:"").trim())}},[Wr.children]),(0,n.createElement)(ae.ItemSlot,{scope:Ln,disabled:gr,textValue:pr??Ut},(0,n.createElement)(E.ck,(0,s.Z)({asChild:!0},re,{focusable:!gr}),(0,n.createElement)(d.WV.div,(0,s.Z)({role:"menuitem","data-highlighted":He?"":void 0,"aria-disabled":gr||void 0,"data-disabled":gr?"":void 0},Wr,{ref:Ue,onPointerMove:(0,a.M)(Xn.onPointerMove,fr(Yt=>{gr?Lt.onItemLeave(Yt):(Lt.onItemEnter(Yt),Yt.defaultPrevented||Yt.currentTarget.focus())})),onPointerLeave:(0,a.M)(Xn.onPointerLeave,fr(Yt=>Lt.onItemLeave(Yt))),onFocus:(0,a.M)(Xn.onFocus,()=>At(!0)),onBlur:(0,a.M)(Xn.onBlur,()=>At(!1))}))))}),Xr="MenuCheckboxItem",gi=(0,n.forwardRef)((Xn,Kr)=>{const{checked:Ln=!1,onCheckedChange:gr,...pr}=Xn;return(0,n.createElement)(Pe,{scope:Xn.__scopeMenu,checked:Ln},(0,n.createElement)(tr,(0,s.Z)({role:"menuitemcheckbox","aria-checked":Ge(Ln)?"mixed":Ln},pr,{ref:Kr,"data-state":Ft(Ln),onSelect:(0,a.M)(pr.onSelect,()=>gr?.(Ge(Ln)?!0:!Ln),{checkForDefaultPrevented:!1})})))}),Pi="MenuRadioGroup",[ii,vr]=ye(Pi,{value:void 0,onValueChange:()=>{}}),at=(0,n.forwardRef)((Xn,Kr)=>{const{value:Ln,onValueChange:gr,...pr}=Xn,Wr=(0,R.W)(gr);return(0,n.createElement)(ii,{scope:Xn.__scopeMenu,value:Ln,onValueChange:Wr},(0,n.createElement)(on,(0,s.Z)({},pr,{ref:Kr})))}),it="MenuRadioItem",Re=(0,n.forwardRef)((Xn,Kr)=>{const{value:Ln,...gr}=Xn,pr=vr(it,Xn.__scopeMenu),Wr=Ln===pr.value;return(0,n.createElement)(Pe,{scope:Xn.__scopeMenu,checked:Wr},(0,n.createElement)(tr,(0,s.Z)({role:"menuitemradio","aria-checked":Wr},gr,{ref:Kr,"data-state":Ft(Wr),onSelect:(0,a.M)(gr.onSelect,()=>{var Lt;return(Lt=pr.onValueChange)===null||Lt===void 0?void 0:Lt.call(pr,Ln)},{checkForDefaultPrevented:!1})})))}),ke="MenuItemIndicator",[Pe,Te]=ye(ke,{checked:!1}),Mt=(0,n.forwardRef)((Xn,Kr)=>{const{__scopeMenu:Ln,forceMount:gr,...pr}=Xn,Wr=Te(ke,Ln);return(0,n.createElement)(T,{present:gr||Ge(Wr.checked)||Wr.checked===!0},(0,n.createElement)(d.WV.span,(0,s.Z)({},pr,{ref:Kr,"data-state":Ft(Wr.checked)})))}),qt="MenuSeparator",Rn=(0,n.forwardRef)((Xn,Kr)=>{const{__scopeMenu:Ln,...gr}=Xn;return(0,n.createElement)(d.WV.div,(0,s.Z)({role:"separator","aria-orientation":"horizontal"},gr,{ref:Kr}))}),Qn="MenuArrow",ur=(0,n.forwardRef)((Xn,Kr)=>{const{__scopeMenu:Ln,...gr}=Xn,pr=Ze(Ln);return(0,n.createElement)(U.Eh,(0,s.Z)({},pr,gr,{ref:Kr}))}),On="MenuSub",[ct,Zt]=ye(On),Cn=Xn=>{const{__scopeMenu:Kr,children:Ln,open:gr=!1,onOpenChange:pr}=Xn,Wr=zt(On,Kr),Lt=Ze(Kr),[re,me]=(0,n.useState)(null),[Ue,He]=(0,n.useState)(null),At=(0,R.W)(pr);return(0,n.useEffect)(()=>(Wr.open===!1&&At(!1),()=>At(!1)),[Wr.open,At]),(0,n.createElement)(U.fC,Lt,(0,n.createElement)(_t,{scope:Kr,open:gr,onOpenChange:At,content:Ue,onContentChange:He},(0,n.createElement)(ct,{scope:Kr,contentId:(0,F.M)(),triggerId:(0,F.M)(),trigger:re,onTriggerChange:me},Ln)))},Pn="MenuSubTrigger",Kn=(0,n.forwardRef)((Xn,Kr)=>{const Ln=zt(Pn,Xn.__scopeMenu),gr=sn(Pn,Xn.__scopeMenu),pr=Zt(Pn,Xn.__scopeMenu),Wr=ri(Pn,Xn.__scopeMenu),Lt=(0,n.useRef)(null),{pointerGraceTimerRef:re,onPointerGraceIntentChange:me}=Wr,Ue={__scopeMenu:Xn.__scopeMenu},He=(0,n.useCallback)(()=>{Lt.current&&window.clearTimeout(Lt.current),Lt.current=null},[]);return(0,n.useEffect)(()=>He,[He]),(0,n.useEffect)(()=>{const At=re.current;return()=>{window.clearTimeout(At),me(null)}},[re,me]),(0,n.createElement)(hr,(0,s.Z)({asChild:!0},Ue),(0,n.createElement)(Sr,(0,s.Z)({id:pr.triggerId,"aria-haspopup":"menu","aria-expanded":Ln.open,"aria-controls":pr.contentId,"data-state":Oe(Ln.open)},Xn,{ref:(0,c.F)(Kr,pr.onTriggerChange),onClick:At=>{var Ut;(Ut=Xn.onClick)===null||Ut===void 0||Ut.call(Xn,At),!(Xn.disabled||At.defaultPrevented)&&(At.currentTarget.focus(),Ln.open||Ln.onOpenChange(!0))},onPointerMove:(0,a.M)(Xn.onPointerMove,fr(At=>{Wr.onItemEnter(At),!At.defaultPrevented&&!Xn.disabled&&!Ln.open&&!Lt.current&&(Wr.onPointerGraceIntentChange(null),Lt.current=window.setTimeout(()=>{Ln.onOpenChange(!0),He()},100))})),onPointerLeave:(0,a.M)(Xn.onPointerLeave,fr(At=>{var Ut;He();const en=(Ut=Ln.content)===null||Ut===void 0?void 0:Ut.getBoundingClientRect();if(en){var Yt;const In=(Yt=Ln.content)===null||Yt===void 0?void 0:Yt.dataset.side,$n=In==="right",wr=$n?-5:5,Tr=en[$n?"left":"right"],qr=en[$n?"right":"left"];Wr.onPointerGraceIntentChange({area:[{x:At.clientX+wr,y:At.clientY},{x:Tr,y:en.top},{x:qr,y:en.top},{x:qr,y:en.bottom},{x:Tr,y:en.bottom}],side:In}),window.clearTimeout(re.current),re.current=window.setTimeout(()=>Wr.onPointerGraceIntentChange(null),300)}else{if(Wr.onTriggerLeave(At),At.defaultPrevented)return;Wr.onPointerGraceIntentChange(null)}})),onKeyDown:(0,a.M)(Xn.onKeyDown,At=>{const Ut=Wr.searchRef.current!=="";if(!(Xn.disabled||Ut&&At.key===" ")&&vn[gr.dir].includes(At.key)){var en;Ln.onOpenChange(!0),(en=Ln.content)===null||en===void 0||en.focus(),At.preventDefault()}})})))}),Rt="MenuSubContent",Ke=(0,n.forwardRef)((Xn,Kr)=>{const Ln=Cr($r,Xn.__scopeMenu),{forceMount:gr=Ln.forceMount,...pr}=Xn,Wr=zt($r,Xn.__scopeMenu),Lt=sn($r,Xn.__scopeMenu),re=Zt(Rt,Xn.__scopeMenu),me=(0,n.useRef)(null),Ue=(0,c.e)(Kr,me);return(0,n.createElement)(ae.Provider,{scope:Xn.__scopeMenu},(0,n.createElement)(T,{present:gr||Wr.open},(0,n.createElement)(ae.Slot,{scope:Xn.__scopeMenu},(0,n.createElement)(cn,(0,s.Z)({id:re.contentId,"aria-labelledby":re.triggerId},pr,{ref:Ue,align:"start",side:Lt.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:He=>{var At;Lt.isUsingKeyboardRef.current&&((At=me.current)===null||At===void 0||At.focus()),He.preventDefault()},onCloseAutoFocus:He=>He.preventDefault(),onFocusOutside:(0,a.M)(Xn.onFocusOutside,He=>{He.target!==re.trigger&&Wr.onOpenChange(!1)}),onEscapeKeyDown:(0,a.M)(Xn.onEscapeKeyDown,He=>{Lt.onClose(),He.preventDefault()}),onKeyDown:(0,a.M)(Xn.onKeyDown,He=>{const At=He.currentTarget.contains(He.target),Ut=ut[Lt.dir].includes(He.key);if(At&&Ut){var en;Wr.onOpenChange(!1),(en=re.trigger)===null||en===void 0||en.focus(),He.preventDefault()}})})))))});function Oe(Xn){return Xn?"open":"closed"}function Ge(Xn){return Xn==="indeterminate"}function Ft(Xn){return Ge(Xn)?"indeterminate":Xn?"checked":"unchecked"}function Qt(Xn){const Kr=document.activeElement;for(const Ln of Xn)if(Ln===Kr||(Ln.focus(),document.activeElement!==Kr))return}function wn(Xn,Kr){return Xn.map((Ln,gr)=>Xn[(Kr+gr)%Xn.length])}function Gn(Xn,Kr,Ln){const pr=Kr.length>1&&Array.from(Kr).every(Ue=>Ue===Kr[0])?Kr[0]:Kr,Wr=Ln?Xn.indexOf(Ln):-1;let Lt=wn(Xn,Math.max(Wr,0));pr.length===1&&(Lt=Lt.filter(Ue=>Ue!==Ln));const me=Lt.find(Ue=>Ue.toLowerCase().startsWith(pr.toLowerCase()));return me!==Ln?me:void 0}function ir(Xn,Kr){const{x:Ln,y:gr}=Xn;let pr=!1;for(let Wr=0,Lt=Kr.length-1;Wr<Kr.length;Lt=Wr++){const re=Kr[Wr].x,me=Kr[Wr].y,Ue=Kr[Lt].x,He=Kr[Lt].y;me>gr!=He>gr&&Ln<(Ue-re)*(gr-me)/(He-me)+re&&(pr=!pr)}return pr}function br(Xn,Kr){if(!Kr)return!1;const Ln={x:Xn.clientX,y:Xn.clientY};return ir(Ln,Kr)}function fr(Xn){return Kr=>Kr.pointerType==="mouse"?Xn(Kr):void 0}const Er=yn,Or=hr,oi=Ur,si=Bt,Fi=on,$i=Le,Vi=tr,Bn=gi,nt=at,ve=Re,he=Mt,Ae=Rn,tt=ur,St=Cn,kt=Kn,Jt=Ke,gt="DropdownMenu",[dn,Xt]=(0,h.b)(gt,[Xe]),hn=Xe(),[Sn,Jn]=dn(gt),Vn=Xn=>{const{__scopeDropdownMenu:Kr,children:Ln,dir:gr,open:pr,defaultOpen:Wr,onOpenChange:Lt,modal:re=!0}=Xn,me=hn(Kr),Ue=(0,n.useRef)(null),[He=!1,At]=(0,p.T)({prop:pr,defaultProp:Wr,onChange:Lt});return(0,n.createElement)(Sn,{scope:Kr,triggerId:(0,F.M)(),triggerRef:Ue,contentId:(0,F.M)(),open:He,onOpenChange:At,onOpenToggle:(0,n.useCallback)(()=>At(Ut=>!Ut),[At]),modal:re},(0,n.createElement)(Er,(0,s.Z)({},me,{open:He,onOpenChange:At,dir:gr,modal:re}),Ln))},ar="DropdownMenuTrigger",Vr=(0,n.forwardRef)((Xn,Kr)=>{const{__scopeDropdownMenu:Ln,disabled:gr=!1,...pr}=Xn,Wr=Jn(ar,Ln),Lt=hn(Ln);return(0,n.createElement)(Or,(0,s.Z)({asChild:!0},Lt),(0,n.createElement)(d.WV.button,(0,s.Z)({type:"button",id:Wr.triggerId,"aria-haspopup":"menu","aria-expanded":Wr.open,"aria-controls":Wr.open?Wr.contentId:void 0,"data-state":Wr.open?"open":"closed","data-disabled":gr?"":void 0,disabled:gr},pr,{ref:(0,c.F)(Kr,Wr.triggerRef),onPointerDown:(0,a.M)(Xn.onPointerDown,re=>{!gr&&re.button===0&&re.ctrlKey===!1&&(Wr.onOpenToggle(),Wr.open||re.preventDefault())}),onKeyDown:(0,a.M)(Xn.onKeyDown,re=>{gr||(["Enter"," "].includes(re.key)&&Wr.onOpenToggle(),re.key==="ArrowDown"&&Wr.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(re.key)&&re.preventDefault())})})))}),Jr="DropdownMenuPortal",yi=Xn=>{const{__scopeDropdownMenu:Kr,...Ln}=Xn,gr=hn(Kr);return(0,n.createElement)(oi,(0,s.Z)({},gr,Ln))},Ii="DropdownMenuContent",ji=(0,n.forwardRef)((Xn,Kr)=>{const{__scopeDropdownMenu:Ln,...gr}=Xn,pr=Jn(Ii,Ln),Wr=hn(Ln),Lt=(0,n.useRef)(!1);return(0,n.createElement)(si,(0,s.Z)({id:pr.contentId,"aria-labelledby":pr.triggerId},Wr,gr,{ref:Kr,onCloseAutoFocus:(0,a.M)(Xn.onCloseAutoFocus,re=>{var me;Lt.current||(me=pr.triggerRef.current)===null||me===void 0||me.focus(),Lt.current=!1,re.preventDefault()}),onInteractOutside:(0,a.M)(Xn.onInteractOutside,re=>{const me=re.detail.originalEvent,Ue=me.button===0&&me.ctrlKey===!0,He=me.button===2||Ue;(!pr.modal||He)&&(Lt.current=!0)}),style:{...Xn.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),_n="DropdownMenuGroup",_e=(0,n.forwardRef)((Xn,Kr)=>{const{__scopeDropdownMenu:Ln,...gr}=Xn,pr=hn(Ln);return(0,n.createElement)(Fi,(0,s.Z)({},pr,gr,{ref:Kr}))}),rt="DropdownMenuLabel",vt=(0,n.forwardRef)((Xn,Kr)=>{const{__scopeDropdownMenu:Ln,...gr}=Xn,pr=hn(Ln);return(0,n.createElement)($i,(0,s.Z)({},pr,gr,{ref:Kr}))}),Gt="DropdownMenuItem",We=(0,n.forwardRef)((Xn,Kr)=>{const{__scopeDropdownMenu:Ln,...gr}=Xn,pr=hn(Ln);return(0,n.createElement)(Vi,(0,s.Z)({},pr,gr,{ref:Kr}))}),Ot="DropdownMenuCheckboxItem",Dt=(0,n.forwardRef)((Xn,Kr)=>{const{__scopeDropdownMenu:Ln,...gr}=Xn,pr=hn(Ln);return(0,n.createElement)(Bn,(0,s.Z)({},pr,gr,{ref:Kr}))}),gn="DropdownMenuRadioGroup",Hn=(0,n.forwardRef)((Xn,Kr)=>{const{__scopeDropdownMenu:Ln,...gr}=Xn,pr=hn(Ln);return(0,n.createElement)(nt,(0,s.Z)({},pr,gr,{ref:Kr}))}),nr="DropdownMenuRadioItem",_r=(0,n.forwardRef)((Xn,Kr)=>{const{__scopeDropdownMenu:Ln,...gr}=Xn,pr=hn(Ln);return(0,n.createElement)(ve,(0,s.Z)({},pr,gr,{ref:Kr}))}),Nr="DropdownMenuItemIndicator",Qr=(0,n.forwardRef)((Xn,Kr)=>{const{__scopeDropdownMenu:Ln,...gr}=Xn,pr=hn(Ln);return(0,n.createElement)(he,(0,s.Z)({},pr,gr,{ref:Kr}))}),ki="DropdownMenuSeparator",Si=(0,n.forwardRef)((Xn,Kr)=>{const{__scopeDropdownMenu:Ln,...gr}=Xn,pr=hn(Ln);return(0,n.createElement)(Ae,(0,s.Z)({},pr,gr,{ref:Kr}))}),Ei="DropdownMenuArrow",oo=(0,n.forwardRef)((Xn,Kr)=>{const{__scopeDropdownMenu:Ln,...gr}=Xn,pr=hn(Ln);return(0,n.createElement)(tt,(0,s.Z)({},pr,gr,{ref:Kr}))}),zi=Xn=>{const{__scopeDropdownMenu:Kr,children:Ln,open:gr,onOpenChange:pr,defaultOpen:Wr}=Xn,Lt=hn(Kr),[re=!1,me]=(0,p.T)({prop:gr,defaultProp:Wr,onChange:pr});return(0,n.createElement)(St,(0,s.Z)({},Lt,{open:re,onOpenChange:me}),Ln)},Xi="DropdownMenuSubTrigger",uo=(0,n.forwardRef)((Xn,Kr)=>{const{__scopeDropdownMenu:Ln,...gr}=Xn,pr=hn(Ln);return(0,n.createElement)(kt,(0,s.Z)({},pr,gr,{ref:Kr}))}),qi="DropdownMenuSubContent",Ui=(0,n.forwardRef)((Xn,Kr)=>{const{__scopeDropdownMenu:Ln,...gr}=Xn,pr=hn(Ln);return(0,n.createElement)(Jt,(0,s.Z)({},pr,gr,{ref:Kr,style:{...Xn.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),Vo=Vn,Cs=Vr,ra=yi,Ts=ji,Io=null,xr=vt,ia=We,Is=null,Gs=null,as=null,Wo=null,Ma=null,fa=null,dt=zi,Fe=uo,an=Ui;var qn=t(58471),Fr=t(33255),ui=t(46449),Hi=t(79581),lo=t(29430),mo=t(12473),ts=t(16607),co=t(96987),Oo=t(10574);const Po=Vo,Yo=(0,n.forwardRef)(({size:Xn,endIcon:Kr=(0,r.jsx)(qn.Z,{width:`${6/16}rem`,height:`${4/16}rem`,"aria-hidden":!0}),...Ln},gr)=>(0,r.jsx)(Cs,{asChild:!0,children:(0,r.jsx)(mo.z,{ref:gr,type:"button",variant:"ghost",endIcon:Kr,paddingTop:Xn==="S"?1:2,paddingBottom:Xn==="S"?1:2,paddingLeft:Xn==="S"?3:4,paddingRight:Xn==="S"?3:4,...Ln})})),ns=(0,n.forwardRef)(({children:Xn,intersectionId:Kr,popoverPlacement:Ln="bottom-start",...gr},pr)=>{const[Wr,Lt]=Ln.split("-");return(0,r.jsx)(ra,{children:(0,r.jsx)(Ts,{align:Lt,side:Wr,loop:!0,asChild:!0,children:(0,r.jsxs)(Os,{ref:pr,direction:"column",borderStyle:"solid",borderWidth:"1px",borderColor:"neutral150",hasRadius:!0,background:"neutral0",shadow:"filterShadow",maxHeight:"15rem",padding:1,alignItems:"flex-start",position:"relative",overflow:"auto",...gr,children:[Xn,(0,r.jsx)(ts.x,{id:Kr,width:"100%",height:"1px"})]})})})}),Os=(0,ui.default)(co.k)`
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;

  &::-webkit-scrollbar {
    display: none;
  }
`,Lo=({onSelect:Xn,disabled:Kr=!1,...Ln})=>(0,r.jsx)(ia,{asChild:!0,onSelect:Xn,disabled:Kr,children:Ln.isLink||Ln.isExternal?(0,r.jsx)(ta,{color:"neutral800",...Ln,isExternal:Ln.isExternal??!1,children:(0,r.jsx)(Oo.Z,{children:Ln.children})}):(0,r.jsx)(Qs,{cursor:"pointer",color:"neutral800",background:"transparent",borderStyle:"none",...Ln,children:(0,r.jsx)(Oo.Z,{children:Ln.children})})}),da=({theme:Xn})=>(0,ui.css)`
  text-align: left;
  width: 100%;
  border-radius: ${Xn.borderRadius};
  padding: ${Xn.spaces[2]} ${Xn.spaces[4]};

  ${Oo.Z} {
    color: inherit;
  }

  &[aria-disabled] {
    cursor: not-allowed;

    ${Oo.Z} {
      color: ${Xn.colors.neutral500};
    }
  }

  &[data-highlighted] {
    background-color: ${Xn.colors.primary100};
  }

  &:focus-visible {
    outline: none;

    &:after {
      content: none;
    }
  }
`,Qs=(0,ui.default)(co.k)`
  ${da}
`,ta=(0,ui.default)(lo.r)`
  /* We include this here again because typically when people use OptionLink they provide an as prop which cancels the Box props */
  color: ${({theme:Xn,color:Kr})=>(0,Hi.$)(Xn.colors,Kr,void 0)};
  text-decoration: none;

  &:hover {
    color: unset;
  }

  svg > path,
  &:focus-visible svg > path {
    fill: currentColor;
  }

  ${da}
`,Oa=(0,n.forwardRef)((Xn,Kr)=>(0,r.jsx)(xr,{asChild:!0,children:(0,r.jsx)(_l,{ref:Kr,variant:"sigma",textColor:"neutral600",...Xn})})),_l=(0,ui.default)(Oo.Z)`
  padding: ${({theme:Xn})=>Xn.spaces[2]} ${({theme:Xn})=>Xn.spaces[4]};
`,gs=dt,ds=(0,n.forwardRef)(({disabled:Xn=!1,...Kr},Ln)=>(0,r.jsx)(Fe,{asChild:!0,disabled:Xn,children:(0,r.jsxs)(es,{ref:Ln,color:"neutral800",as:"button",type:"button",background:"transparent",borderStyle:"none",gap:5,...Kr,children:[(0,r.jsx)(Oo.Z,{children:Kr.children}),(0,r.jsx)(Ga,{height:12,width:12})]})})),es=(0,ui.default)(Qs)`
  &[data-state='open'] {
    background-color: ${({theme:Xn})=>Xn.colors.primary100};
  }
`,Ga=(0,ui.default)(Fr.Z)`
  path {
    fill: ${({theme:Xn})=>Xn.colors.neutral500};
  }
`,So=(0,n.forwardRef)((Xn,Kr)=>(0,r.jsx)(ra,{children:(0,r.jsx)(an,{sideOffset:8,asChild:!0,children:(0,r.jsx)(Os,{ref:Kr,direction:"column",borderStyle:"solid",borderWidth:"1px",borderColor:"neutral150",hasRadius:!0,background:"neutral0",shadow:"filterShadow",maxHeight:"15rem",padding:1,alignItems:"flex-start",overflow:"auto",...Xn})})})),Di=Po,Il=Yo,Na=ns,xl=Lo,Rl=Oa,Pa=gs,fi=ds,rl=So},52575:(Z,v,t)=>{"use strict";t.d(v,{O2:()=>p,sN:()=>d});var r=t(85893),n=t(67294),s=t(40563),a=t(75518),c=t(92058),h=t(60141);const p=({children:k,onOpen:M,onClose:C,popoverPlacement:w,onReachEnd:I,...F})=>{const U=(0,n.useRef)(null),[B,N]=(0,n.useState)(!1),D=b=>{I&&I(b)},x=b=>{b&&typeof M=="function"?M():!b&&typeof C=="function"&&C(),N(b)},T=(0,c.M)(),u=`intersection-${(0,a.B)(T)}`;return(0,h.s)(U,D,{selectorToWatch:`#${u}`,skipWhen:!B}),(0,r.jsxs)(s.fC,{onOpenChange:x,children:[(0,r.jsx)(s.xz,{...F,children:F.label}),(0,r.jsx)(s.VY,{intersectionId:u,popoverPlacement:w,children:k})]})},d=s.ck},30972:(Z,v,t)=>{"use strict";t.d(v,{Hn:()=>ia,iq:()=>Ku,m$:()=>_0,O4:()=>tf,jW:()=>zc,QH:()=>cc,Y_:()=>qc,W1:()=>_u,MG:()=>k0,tM:()=>wo,c4:()=>$o,x7:()=>ao,W$:()=>fl,J5:()=>yu,l0:()=>wd,jm:()=>Ml,Zc:()=>Zp,rt:()=>Mm,rU:()=>pl,Qj:()=>_h,dO:()=>vh,dJ:()=>_d,ZF:()=>zh,X0:()=>Xu,N$:()=>Ln,w7:()=>Pm,v4:()=>af,tU:()=>vi,oL:()=>Lt,JV:()=>bo,ij:()=>Ed,fG:()=>Yp,m:()=>xh,SL:()=>Uh,fz:()=>hi,qb:()=>Ec,_Y:()=>Ol,iA:()=>$h,L8:()=>Dn,I8:()=>za,w6:()=>Pg,e5:()=>Cu,ZT:()=>Bh,dU:()=>pp,nn:()=>y1,tg:()=>Id,mD:()=>$v,k2:()=>hf,UN:()=>Fu,CJ:()=>Vv,qX:()=>Sl,OT:()=>M0,X7:()=>D1,CR:()=>zv,jV:()=>Uv,Q1:()=>bs,WY:()=>sb,UW:()=>Sg,I0:()=>ab,So:()=>Rm,L7:()=>nf,Vu:()=>Am,Wq:()=>Bu,W6:()=>Xn,VP:()=>jm,Xe:()=>Sf,mZ:()=>C0,kY:()=>Gp,L0:()=>Bm,E2:()=>dc,go:()=>O0,c1:()=>S0,yX:()=>Om,F5:()=>Nm,lm:()=>pr,o1:()=>Dm,Yw:()=>fp,aM:()=>wh,Kx:()=>Ar,ss:()=>P0,vn:()=>me,Uq:()=>D0,j1:()=>Ac,Sh:()=>mi,rS:()=>er});var r=t(67294),n=t(96912),s=t(96987),a=t(43007),c=t(74863),h=t(27848),p=t(16607),d=t(32123),k=t(81982),M=t(12473),C=t(10574),w=t(35752),I=t(29299),F=t(69398),U=t(5923),B=t(3547),N=t(12803),D=t(96208),x=t(81315),T=t(22304),u=t(96724),b=t(59604),E=t(90090),A=t(40770),R=t(97062),H=t(80167),z=t(79971),V=t(78048),$=t(45094),ee=t(81221),q=t(17705),oe=t(22546),X=t(38670),pe=t(85200),Ie=t(457),se=t(85893);const be=(0,r.createContext)({activePage:1,pageCount:1}),fe=()=>(0,r.useContext)(be),ue=({children:J,label:ce="Pagination",activePage:qe,pageCount:Nt})=>{const Ve=r.useMemo(()=>({activePage:qe,pageCount:Nt}),[qe,Nt]);return(0,se.jsx)(be.Provider,{value:Ve,children:(0,se.jsx)(p.x,{"aria-label":ce,as:"nav",children:(0,se.jsx)(s.k,{as:"ol",gap:1,children:r.Children.map(J,(An,Zn)=>(0,se.jsx)("li",{children:An},Zn))})})})};var we=t(23463),Me=t(33255),Ce=t(73727),Ne=t(46449),Ye=t(66362);const mt={active:!0},Ct=(0,Ne.default)(Ce.OL).withConfig({shouldForwardProp:(J,ce)=>!mt[J]&&ce(J)})`
  padding: ${({theme:J})=>J.spaces[3]};
  border-radius: ${({theme:J})=>J.borderRadius};
  box-shadow: ${({active:J,theme:ce})=>J?ce.shadows.filterShadow:void 0};
  text-decoration: none;
  display: flex;

  ${Ye.BF}
`,ln=(0,Ne.default)(Ct)`
  color: ${({theme:J,active:ce})=>ce?J.colors.primary700:J.colors.neutral800};
  background: ${({theme:J,active:ce})=>ce?J.colors.neutral0:void 0};

  &:hover {
    box-shadow: ${({theme:J})=>J.shadows.filterShadow};
  }
`,$e=(0,Ne.default)(Ct)`
  font-size: ${11/16}rem;

  svg path {
    fill: ${J=>J["aria-disabled"]?J.theme.colors.neutral300:J.theme.colors.neutral600};
  }

  &:focus,
  &:hover {
    svg path {
      fill: ${J=>J["aria-disabled"]?J.theme.colors.neutral300:J.theme.colors.neutral700};
    }
  }

  ${J=>J["aria-disabled"]?`
  pointer-events: none;
    `:void 0}
`,Qe=({children:J,to:ce,...qe})=>{const{activePage:Nt}=fe(),Ve=Nt===1;return(0,se.jsxs)($e,{to:Ve?"#":ce,"aria-disabled":Ve,tabIndex:Ve?-1:void 0,...qe,children:[(0,se.jsx)(T.T,{children:J}),(0,se.jsx)(we.Z,{"aria-hidden":!0})]})};Qe.displayName="PreviousLink";const bt=({children:J,to:ce,...qe})=>{const{activePage:Nt,pageCount:Ve}=fe(),An=Nt===Ve;return(0,se.jsxs)($e,{to:An?"#":ce,"aria-disabled":An,tabIndex:An?-1:void 0,...qe,children:[(0,se.jsx)(T.T,{children:J}),(0,se.jsx)(Me.Z,{"aria-hidden":!0})]})};bt.displayName="NextLink";const It=({number:J,children:ce,...qe})=>{const{activePage:Nt}=fe(),Ve=Nt===J;return(0,se.jsxs)(ln,{...qe,active:Ve,children:[(0,se.jsx)(T.T,{children:ce}),(0,se.jsx)(C.Z,{"aria-hidden":!0,fontWeight:Ve?"bold":void 0,lineHeight:"revert",variant:"pi",children:J})]})};It.displayName="PageLink";const mn=({children:J,...ce})=>(0,se.jsxs)(p.x,{...ce,children:[(0,se.jsx)(T.T,{children:J}),(0,se.jsx)(C.Z,{"aria-hidden":!0,lineHeight:"revert",textColor:"neutral800",variant:"pi",children:"\u2026"})]});var un=t(49185),Be=t(35987),je=t(94417),$t=t(62577),et=t(54425),Kt=t(58471),kn=t(94355),Tn=t(18857),ht=t(59288),ot=t(35771),Je=t(83598),wt=t(81851),ft=t(92795),vn=t(90272),ut=t(59110),Wt=t(75975),ae=t(4499),ne=t(86896),ge=t(16550),ye=t(52861),Xe=t(80129),Ze=t(41054),lt=t(1413),_t=t(70885),zt=t(45987),Vt=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function sn(J){var ce=J.defaultInputValue,qe=ce===void 0?"":ce,Nt=J.defaultMenuIsOpen,Ve=Nt===void 0?!1:Nt,An=J.defaultValue,Zn=An===void 0?null:An,fn=J.inputValue,zn=J.menuIsOpen,cr=J.onChange,Dr=J.onInputChange,Hr=J.onMenuClose,pi=J.onMenuOpen,xi=J.value,wi=(0,zt.Z)(J,Vt),Wi=(0,r.useState)(fn!==void 0?fn:qe),Ai=(0,_t.Z)(Wi,2),_o=Ai[0],Ko=Ai[1],Ks=(0,r.useState)(zn!==void 0?zn:Ve),xo=(0,_t.Z)(Ks,2),ms=xo[0],zs=xo[1],Ys=(0,r.useState)(xi!==void 0?xi:Zn),ea=(0,_t.Z)(Ys,2),ha=ea[0],tc=ea[1],zd=(0,r.useCallback)(function(Tu,Ud){typeof cr=="function"&&cr(Tu,Ud),tc(Tu)},[cr]),nl=(0,r.useCallback)(function(Tu,Ud){var qh;typeof Dr=="function"&&(qh=Dr(Tu,Ud)),Ko(qh!==void 0?qh:Tu)},[Dr]),ua=(0,r.useCallback)(function(){typeof pi=="function"&&pi(),zs(!0)},[pi]),Pl=(0,r.useCallback)(function(){typeof Hr=="function"&&Hr(),zs(!1)},[Hr]),Bo=fn!==void 0?fn:_o,wa=zn!==void 0?zn:ms,Mc=xi!==void 0?xi:ha;return(0,lt.Z)((0,lt.Z)({},wi),{},{inputValue:Bo,menuIsOpen:wa,onChange:zd,onInputChange:nl,onMenuClose:Pl,onMenuOpen:ua,value:Mc})}var yn=t(87462);function dr(J,ce){if(!(J instanceof ce))throw new TypeError("Cannot call a class as a function")}var hr=t(49142);function Mr(J,ce){for(var qe=0;qe<ce.length;qe++){var Nt=ce[qe];Nt.enumerable=Nt.enumerable||!1,Nt.configurable=!0,"value"in Nt&&(Nt.writable=!0),Object.defineProperty(J,(0,hr.Z)(Nt.key),Nt)}}function rr(J,ce,qe){return ce&&Mr(J.prototype,ce),qe&&Mr(J,qe),Object.defineProperty(J,"prototype",{writable:!1}),J}var Cr=t(89611);function Ur(J,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Super expression must either be null or a function");J.prototype=Object.create(ce&&ce.prototype,{constructor:{value:J,writable:!0,configurable:!0}}),Object.defineProperty(J,"prototype",{writable:!1}),ce&&(0,Cr.Z)(J,ce)}function $r(J){return $r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(qe){return qe.__proto__||Object.getPrototypeOf(qe)},$r(J)}function li(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var ri=t(71002),Bt=t(97326);function Et(J,ce){if(ce&&((0,ri.Z)(ce)==="object"||typeof ce=="function"))return ce;if(ce!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(0,Bt.Z)(J)}function bn(J){var ce=li();return function(){var Nt=$r(J),Ve;if(ce){var An=$r(this).constructor;Ve=Reflect.construct(Nt,arguments,An)}else Ve=Nt.apply(this,arguments);return Et(this,Ve)}}var cn=t(30907);function Yn(J){if(Array.isArray(J))return(0,cn.Z)(J)}function on(J){if(typeof Symbol<"u"&&J[Symbol.iterator]!=null||J["@@iterator"]!=null)return Array.from(J)}var ze=t(40181);function Le(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ht(J){return Yn(J)||on(J)||(0,ze.Z)(J)||Le()}var Mn=t(5079),tr=t(2003),Sr=Number.isNaN||function(ce){return typeof ce=="number"&&ce!==ce};function Xr(J,ce){return!!(J===ce||Sr(J)&&Sr(ce))}function gi(J,ce){if(J.length!==ce.length)return!1;for(var qe=0;qe<J.length;qe++)if(!Xr(J[qe],ce[qe]))return!1;return!0}function Pi(J,ce){ce===void 0&&(ce=gi);var qe=null;function Nt(){for(var Ve=[],An=0;An<arguments.length;An++)Ve[An]=arguments[An];if(qe&&qe.lastThis===this&&ce(Ve,qe.lastArgs))return qe.lastResult;var Zn=J.apply(this,Ve);return qe={lastResult:Zn,lastArgs:Ve,lastThis:this},Zn}return Nt.clear=function(){qe=null},Nt}function ii(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var vr={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},at=function(ce){return(0,tr.tZ)("span",(0,yn.Z)({css:vr},ce))},it={guidance:function(ce){var qe=ce.isSearchable,Nt=ce.isMulti,Ve=ce.isDisabled,An=ce.tabSelectsValue,Zn=ce.context;switch(Zn){case"menu":return"Use Up and Down to choose options".concat(Ve?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(An?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(ce["aria-label"]||"Select"," is focused ").concat(qe?",type to refine list":"",", press Down to open the menu, ").concat(Nt?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(ce){var qe=ce.action,Nt=ce.label,Ve=Nt===void 0?"":Nt,An=ce.labels,Zn=ce.isDisabled;switch(qe){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(Ve,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(An.length>1?"s":""," ").concat(An.join(","),", selected.");case"select-option":return Zn?"option ".concat(Ve," is disabled. Select another option."):"option ".concat(Ve,", selected.");default:return""}},onFocus:function(ce){var qe=ce.context,Nt=ce.focused,Ve=ce.options,An=ce.label,Zn=An===void 0?"":An,fn=ce.selectValue,zn=ce.isDisabled,cr=ce.isSelected,Dr=function(wi,Wi){return wi&&wi.length?"".concat(wi.indexOf(Wi)+1," of ").concat(wi.length):""};if(qe==="value"&&fn)return"value ".concat(Zn," focused, ").concat(Dr(fn,Nt),".");if(qe==="menu"){var Hr=zn?" disabled":"",pi="".concat(cr?"selected":"focused").concat(Hr);return"option ".concat(Zn," ").concat(pi,", ").concat(Dr(Ve,Nt),".")}return""},onFilter:function(ce){var qe=ce.inputValue,Nt=ce.resultsMessage;return"".concat(Nt).concat(qe?" for search term "+qe:"",".")}},Re=function(ce){var qe=ce.ariaSelection,Nt=ce.focusedOption,Ve=ce.focusedValue,An=ce.focusableOptions,Zn=ce.isFocused,fn=ce.selectValue,zn=ce.selectProps,cr=ce.id,Dr=zn.ariaLiveMessages,Hr=zn.getOptionLabel,pi=zn.inputValue,xi=zn.isMulti,wi=zn.isOptionDisabled,Wi=zn.isSearchable,Ai=zn.menuIsOpen,_o=zn.options,Ko=zn.screenReaderStatus,Ks=zn.tabSelectsValue,xo=zn["aria-label"],ms=zn["aria-live"],zs=(0,r.useMemo)(function(){return(0,lt.Z)((0,lt.Z)({},it),Dr||{})},[Dr]),Ys=(0,r.useMemo)(function(){var Pl="";if(qe&&zs.onChange){var Bo=qe.option,wa=qe.options,Mc=qe.removedValue,Tu=qe.removedValues,Ud=qe.value,qh=function(Hd){return Array.isArray(Hd)?null:Hd},Df=Mc||Bo||qh(Ud),ru=Df?Hr(Df):"",Su=wa||Tu||void 0,Dl=Su?Su.map(Hr):[],ff=(0,lt.Z)({isDisabled:Df&&wi(Df,fn),label:ru,labels:Dl},qe);Pl=zs.onChange(ff)}return Pl},[qe,zs,wi,fn,Hr]),ea=(0,r.useMemo)(function(){var Pl="",Bo=Nt||Ve,wa=!!(Nt&&fn&&fn.includes(Nt));if(Bo&&zs.onFocus){var Mc={focused:Bo,label:Hr(Bo),isDisabled:wi(Bo,fn),isSelected:wa,options:An,context:Bo===Nt?"menu":"value",selectValue:fn};Pl=zs.onFocus(Mc)}return Pl},[Nt,Ve,Hr,wi,zs,An,fn]),ha=(0,r.useMemo)(function(){var Pl="";if(Ai&&_o.length&&zs.onFilter){var Bo=Ko({count:An.length});Pl=zs.onFilter({inputValue:pi,resultsMessage:Bo})}return Pl},[An,pi,Ai,zs,_o,Ko]),tc=(0,r.useMemo)(function(){var Pl="";if(zs.guidance){var Bo=Ve?"value":Ai?"menu":"input";Pl=zs.guidance({"aria-label":xo,context:Bo,isDisabled:Nt&&wi(Nt,fn),isMulti:xi,isSearchable:Wi,tabSelectsValue:Ks})}return Pl},[xo,Nt,Ve,xi,wi,Wi,Ai,zs,fn,Ks]),zd="".concat(ea," ").concat(ha," ").concat(tc),nl=(0,tr.tZ)(r.Fragment,null,(0,tr.tZ)("span",{id:"aria-selection"},Ys),(0,tr.tZ)("span",{id:"aria-context"},zd)),ua=qe?.action==="initial-input-focus";return(0,tr.tZ)(r.Fragment,null,(0,tr.tZ)(at,{id:cr},ua&&nl),(0,tr.tZ)(at,{"aria-live":ms,"aria-atomic":"false","aria-relevant":"additions text"},Zn&&!ua&&nl))},ke=[{base:"A",letters:"A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"},{base:"AA",letters:"\uA732"},{base:"AE",letters:"\xC6\u01FC\u01E2"},{base:"AO",letters:"\uA734"},{base:"AU",letters:"\uA736"},{base:"AV",letters:"\uA738\uA73A"},{base:"AY",letters:"\uA73C"},{base:"B",letters:"B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"},{base:"C",letters:"C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"},{base:"D",letters:"D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779"},{base:"DZ",letters:"\u01F1\u01C4"},{base:"Dz",letters:"\u01F2\u01C5"},{base:"E",letters:"E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"},{base:"F",letters:"F\u24BB\uFF26\u1E1E\u0191\uA77B"},{base:"G",letters:"G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"},{base:"H",letters:"H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"},{base:"I",letters:"I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"},{base:"J",letters:"J\u24BF\uFF2A\u0134\u0248"},{base:"K",letters:"K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"},{base:"L",letters:"L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"},{base:"LJ",letters:"\u01C7"},{base:"Lj",letters:"\u01C8"},{base:"M",letters:"M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"},{base:"N",letters:"N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"},{base:"NJ",letters:"\u01CA"},{base:"Nj",letters:"\u01CB"},{base:"O",letters:"O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"},{base:"OI",letters:"\u01A2"},{base:"OO",letters:"\uA74E"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"},{base:"Q",letters:"Q\u24C6\uFF31\uA756\uA758\u024A"},{base:"R",letters:"R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"},{base:"S",letters:"S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"},{base:"T",letters:"T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"},{base:"TZ",letters:"\uA728"},{base:"U",letters:"U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"},{base:"V",letters:"V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"},{base:"VY",letters:"\uA760"},{base:"W",letters:"W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"},{base:"X",letters:"X\u24CD\uFF38\u1E8A\u1E8C"},{base:"Y",letters:"Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"},{base:"Z",letters:"Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"},{base:"a",letters:"a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"},{base:"aa",letters:"\uA733"},{base:"ae",letters:"\xE6\u01FD\u01E3"},{base:"ao",letters:"\uA735"},{base:"au",letters:"\uA737"},{base:"av",letters:"\uA739\uA73B"},{base:"ay",letters:"\uA73D"},{base:"b",letters:"b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"},{base:"c",letters:"c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"},{base:"d",letters:"d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"},{base:"dz",letters:"\u01F3\u01C6"},{base:"e",letters:"e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"},{base:"f",letters:"f\u24D5\uFF46\u1E1F\u0192\uA77C"},{base:"g",letters:"g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"},{base:"h",letters:"h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"},{base:"j",letters:"j\u24D9\uFF4A\u0135\u01F0\u0249"},{base:"k",letters:"k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"},{base:"l",letters:"l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"},{base:"lj",letters:"\u01C9"},{base:"m",letters:"m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"},{base:"n",letters:"n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"},{base:"nj",letters:"\u01CC"},{base:"o",letters:"o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"},{base:"oi",letters:"\u01A3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\uA74F"},{base:"p",letters:"p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"},{base:"q",letters:"q\u24E0\uFF51\u024B\uA757\uA759"},{base:"r",letters:"r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"},{base:"s",letters:"s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"},{base:"t",letters:"t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"},{base:"tz",letters:"\uA729"},{base:"u",letters:"u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"},{base:"v",letters:"v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"},{base:"vy",letters:"\uA761"},{base:"w",letters:"w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"},{base:"x",letters:"x\u24E7\uFF58\u1E8B\u1E8D"},{base:"y",letters:"y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"},{base:"z",letters:"z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"}],Pe=new RegExp("["+ke.map(function(J){return J.letters}).join("")+"]","g"),Te={},Mt=0;Mt<ke.length;Mt++)for(var qt=ke[Mt],Rn=0;Rn<qt.letters.length;Rn++)Te[qt.letters[Rn]]=qt.base;var Qn=function(ce){return ce.replace(Pe,function(qe){return Te[qe]})},ur=Pi(Qn),On=function(ce){return ce.replace(/^\s+|\s+$/g,"")},ct=function(ce){return"".concat(ce.label," ").concat(ce.value)},Zt=function(ce){return function(qe,Nt){if(qe.data.__isNew__)return!0;var Ve=(0,lt.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:ct,trim:!0,matchFrom:"any"},ce),An=Ve.ignoreCase,Zn=Ve.ignoreAccents,fn=Ve.stringify,zn=Ve.trim,cr=Ve.matchFrom,Dr=zn?On(Nt):Nt,Hr=zn?On(fn(qe)):fn(qe);return An&&(Dr=Dr.toLowerCase(),Hr=Hr.toLowerCase()),Zn&&(Dr=ur(Dr),Hr=Qn(Hr)),cr==="start"?Hr.substr(0,Dr.length)===Dr:Hr.indexOf(Dr)>-1}},Cn=["innerRef"];function Pn(J){var ce=J.innerRef,qe=(0,zt.Z)(J,Cn),Nt=(0,Mn.r)(qe,"onExited","in","enter","exit","appear");return(0,tr.tZ)("input",(0,yn.Z)({ref:ce},Nt,{css:(0,tr.iv)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Kn=function(ce){ce.preventDefault(),ce.stopPropagation()};function Rt(J){var ce=J.isEnabled,qe=J.onBottomArrive,Nt=J.onBottomLeave,Ve=J.onTopArrive,An=J.onTopLeave,Zn=(0,r.useRef)(!1),fn=(0,r.useRef)(!1),zn=(0,r.useRef)(0),cr=(0,r.useRef)(null),Dr=(0,r.useCallback)(function(Ai,_o){if(cr.current!==null){var Ko=cr.current,Ks=Ko.scrollTop,xo=Ko.scrollHeight,ms=Ko.clientHeight,zs=cr.current,Ys=_o>0,ea=xo-ms-Ks,ha=!1;ea>_o&&Zn.current&&(Nt&&Nt(Ai),Zn.current=!1),Ys&&fn.current&&(An&&An(Ai),fn.current=!1),Ys&&_o>ea?(qe&&!Zn.current&&qe(Ai),zs.scrollTop=xo,ha=!0,Zn.current=!0):!Ys&&-_o>Ks&&(Ve&&!fn.current&&Ve(Ai),zs.scrollTop=0,ha=!0,fn.current=!0),ha&&Kn(Ai)}},[qe,Nt,Ve,An]),Hr=(0,r.useCallback)(function(Ai){Dr(Ai,Ai.deltaY)},[Dr]),pi=(0,r.useCallback)(function(Ai){zn.current=Ai.changedTouches[0].clientY},[]),xi=(0,r.useCallback)(function(Ai){var _o=zn.current-Ai.changedTouches[0].clientY;Dr(Ai,_o)},[Dr]),wi=(0,r.useCallback)(function(Ai){if(Ai){var _o=Mn.s?{passive:!1}:!1;Ai.addEventListener("wheel",Hr,_o),Ai.addEventListener("touchstart",pi,_o),Ai.addEventListener("touchmove",xi,_o)}},[xi,pi,Hr]),Wi=(0,r.useCallback)(function(Ai){Ai&&(Ai.removeEventListener("wheel",Hr,!1),Ai.removeEventListener("touchstart",pi,!1),Ai.removeEventListener("touchmove",xi,!1))},[xi,pi,Hr]);return(0,r.useEffect)(function(){if(ce){var Ai=cr.current;return wi(Ai),function(){Wi(Ai)}}},[ce,wi,Wi]),function(Ai){cr.current=Ai}}var Ke=["boxSizing","height","overflow","paddingRight","position"],Oe={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Ge(J){J.preventDefault()}function Ft(J){J.stopPropagation()}function Qt(){var J=this.scrollTop,ce=this.scrollHeight,qe=J+this.offsetHeight;J===0?this.scrollTop=1:qe===ce&&(this.scrollTop=J-1)}function wn(){return"ontouchstart"in window||navigator.maxTouchPoints}var Gn=!!(typeof window<"u"&&window.document&&window.document.createElement),ir=0,br={capture:!1,passive:!1};function fr(J){var ce=J.isEnabled,qe=J.accountForScrollbars,Nt=qe===void 0?!0:qe,Ve=(0,r.useRef)({}),An=(0,r.useRef)(null),Zn=(0,r.useCallback)(function(zn){if(Gn){var cr=document.body,Dr=cr&&cr.style;if(Nt&&Ke.forEach(function(wi){var Wi=Dr&&Dr[wi];Ve.current[wi]=Wi}),Nt&&ir<1){var Hr=parseInt(Ve.current.paddingRight,10)||0,pi=document.body?document.body.clientWidth:0,xi=window.innerWidth-pi+Hr||0;Object.keys(Oe).forEach(function(wi){var Wi=Oe[wi];Dr&&(Dr[wi]=Wi)}),Dr&&(Dr.paddingRight="".concat(xi,"px"))}cr&&wn()&&(cr.addEventListener("touchmove",Ge,br),zn&&(zn.addEventListener("touchstart",Qt,br),zn.addEventListener("touchmove",Ft,br))),ir+=1}},[Nt]),fn=(0,r.useCallback)(function(zn){if(Gn){var cr=document.body,Dr=cr&&cr.style;ir=Math.max(ir-1,0),Nt&&ir<1&&Ke.forEach(function(Hr){var pi=Ve.current[Hr];Dr&&(Dr[Hr]=pi)}),cr&&wn()&&(cr.removeEventListener("touchmove",Ge,br),zn&&(zn.removeEventListener("touchstart",Qt,br),zn.removeEventListener("touchmove",Ft,br)))}},[Nt]);return(0,r.useEffect)(function(){if(ce){var zn=An.current;return Zn(zn),function(){fn(zn)}}},[ce,Zn,fn]),function(zn){An.current=zn}}function Er(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Or=function(){return document.activeElement&&document.activeElement.blur()},oi={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function si(J){var ce=J.children,qe=J.lockEnabled,Nt=J.captureEnabled,Ve=Nt===void 0?!0:Nt,An=J.onBottomArrive,Zn=J.onBottomLeave,fn=J.onTopArrive,zn=J.onTopLeave,cr=Rt({isEnabled:Ve,onBottomArrive:An,onBottomLeave:Zn,onTopArrive:fn,onTopLeave:zn}),Dr=fr({isEnabled:qe}),Hr=function(xi){cr(xi),Dr(xi)};return(0,tr.tZ)(r.Fragment,null,qe&&(0,tr.tZ)("div",{onClick:Or,css:oi}),ce(Hr))}function Fi(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var $i={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Vi=function(ce){var qe=ce.name,Nt=ce.onFocus;return(0,tr.tZ)("input",{required:!0,name:qe,tabIndex:-1,onFocus:Nt,css:$i,value:"",onChange:function(){}})},Bn=function(ce){return ce.label},nt=function(ce){return ce.label},ve=function(ce){return ce.value},he=function(ce){return!!ce.isDisabled},Ae={clearIndicator:Mn.a,container:Mn.b,control:Mn.d,dropdownIndicator:Mn.e,group:Mn.g,groupHeading:Mn.f,indicatorsContainer:Mn.i,indicatorSeparator:Mn.h,input:Mn.j,loadingIndicator:Mn.l,loadingMessage:Mn.k,menu:Mn.m,menuList:Mn.n,menuPortal:Mn.o,multiValue:Mn.p,multiValueLabel:Mn.q,multiValueRemove:Mn.t,noOptionsMessage:Mn.u,option:Mn.v,placeholder:Mn.w,singleValue:Mn.x,valueContainer:Mn.y};function tt(J){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},qe=_objectSpread({},J);return Object.keys(ce).forEach(function(Nt){var Ve=Nt;J[Ve]?qe[Ve]=function(An,Zn){return ce[Ve](J[Ve](An,Zn),Zn)}:qe[Ve]=ce[Ve]}),qe}var St={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},kt=4,Jt=4,gt=38,dn=Jt*2,Xt={baseUnit:Jt,controlHeight:gt,menuGutter:dn},hn={borderRadius:kt,colors:St,spacing:Xt},Sn={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,Mn.z)(),captureMenuScroll:!(0,Mn.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Zt(),formatGroupLabel:Bn,getOptionLabel:nt,getOptionValue:ve,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:he,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!(0,Mn.A)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(ce){var qe=ce.count;return"".concat(qe," result").concat(qe!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Jn(J,ce,qe,Nt){var Ve=_e(J,ce,qe),An=rt(J,ce,qe),Zn=ji(J,ce),fn=_n(J,ce);return{type:"option",data:ce,isDisabled:Ve,isSelected:An,label:Zn,value:fn,index:Nt}}function Vn(J,ce){return J.options.map(function(qe,Nt){if("options"in qe){var Ve=qe.options.map(function(Zn,fn){return Jn(J,Zn,ce,fn)}).filter(function(Zn){return Jr(J,Zn)});return Ve.length>0?{type:"group",data:qe,options:Ve,index:Nt}:void 0}var An=Jn(J,qe,ce,Nt);return Jr(J,An)?An:void 0}).filter(Mn.G)}function ar(J){return J.reduce(function(ce,qe){return qe.type==="group"?ce.push.apply(ce,Ht(qe.options.map(function(Nt){return Nt.data}))):ce.push(qe.data),ce},[])}function Vr(J,ce){return ar(Vn(J,ce))}function Jr(J,ce){var qe=J.inputValue,Nt=qe===void 0?"":qe,Ve=ce.data,An=ce.isSelected,Zn=ce.label,fn=ce.value;return(!Gt(J)||!An)&&vt(J,{label:Zn,value:fn,data:Ve},Nt)}function yi(J,ce){var qe=J.focusedValue,Nt=J.selectValue,Ve=Nt.indexOf(qe);if(Ve>-1){var An=ce.indexOf(qe);if(An>-1)return qe;if(Ve<ce.length)return ce[Ve]}return null}function Ii(J,ce){var qe=J.focusedOption;return qe&&ce.indexOf(qe)>-1?qe:ce[0]}var ji=function(ce,qe){return ce.getOptionLabel(qe)},_n=function(ce,qe){return ce.getOptionValue(qe)};function _e(J,ce,qe){return typeof J.isOptionDisabled=="function"?J.isOptionDisabled(ce,qe):!1}function rt(J,ce,qe){if(qe.indexOf(ce)>-1)return!0;if(typeof J.isOptionSelected=="function")return J.isOptionSelected(ce,qe);var Nt=_n(J,ce);return qe.some(function(Ve){return _n(J,Ve)===Nt})}function vt(J,ce,qe){return J.filterOption?J.filterOption(ce,qe):!0}var Gt=function(ce){var qe=ce.hideSelectedOptions,Nt=ce.isMulti;return qe===void 0?Nt:qe},We=1,Ot=function(J){Ur(qe,J);var ce=bn(qe);function qe(Nt){var Ve;if(dr(this,qe),Ve=ce.call(this,Nt),Ve.state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},Ve.blockOptionHover=!1,Ve.isComposing=!1,Ve.commonProps=void 0,Ve.initialTouchX=0,Ve.initialTouchY=0,Ve.instancePrefix="",Ve.openAfterFocus=!1,Ve.scrollToFocusedOptionOnUpdate=!1,Ve.userIsDragging=void 0,Ve.controlRef=null,Ve.getControlRef=function(fn){Ve.controlRef=fn},Ve.focusedOptionRef=null,Ve.getFocusedOptionRef=function(fn){Ve.focusedOptionRef=fn},Ve.menuListRef=null,Ve.getMenuListRef=function(fn){Ve.menuListRef=fn},Ve.inputRef=null,Ve.getInputRef=function(fn){Ve.inputRef=fn},Ve.focus=Ve.focusInput,Ve.blur=Ve.blurInput,Ve.onChange=function(fn,zn){var cr=Ve.props,Dr=cr.onChange,Hr=cr.name;zn.name=Hr,Ve.ariaOnChange(fn,zn),Dr(fn,zn)},Ve.setValue=function(fn,zn,cr){var Dr=Ve.props,Hr=Dr.closeMenuOnSelect,pi=Dr.isMulti,xi=Dr.inputValue;Ve.onInputChange("",{action:"set-value",prevInputValue:xi}),Hr&&(Ve.setState({inputIsHiddenAfterUpdate:!pi}),Ve.onMenuClose()),Ve.setState({clearFocusValueOnUpdate:!0}),Ve.onChange(fn,{action:zn,option:cr})},Ve.selectOption=function(fn){var zn=Ve.props,cr=zn.blurInputOnSelect,Dr=zn.isMulti,Hr=zn.name,pi=Ve.state.selectValue,xi=Dr&&Ve.isOptionSelected(fn,pi),wi=Ve.isOptionDisabled(fn,pi);if(xi){var Wi=Ve.getOptionValue(fn);Ve.setValue((0,Mn.B)(pi.filter(function(Ai){return Ve.getOptionValue(Ai)!==Wi})),"deselect-option",fn)}else if(!wi)Dr?Ve.setValue((0,Mn.B)([].concat(Ht(pi),[fn])),"select-option",fn):Ve.setValue((0,Mn.C)(fn),"select-option");else{Ve.ariaOnChange((0,Mn.C)(fn),{action:"select-option",option:fn,name:Hr});return}cr&&Ve.blurInput()},Ve.removeValue=function(fn){var zn=Ve.props.isMulti,cr=Ve.state.selectValue,Dr=Ve.getOptionValue(fn),Hr=cr.filter(function(xi){return Ve.getOptionValue(xi)!==Dr}),pi=(0,Mn.D)(zn,Hr,Hr[0]||null);Ve.onChange(pi,{action:"remove-value",removedValue:fn}),Ve.focusInput()},Ve.clearValue=function(){var fn=Ve.state.selectValue;Ve.onChange((0,Mn.D)(Ve.props.isMulti,[],null),{action:"clear",removedValues:fn})},Ve.popValue=function(){var fn=Ve.props.isMulti,zn=Ve.state.selectValue,cr=zn[zn.length-1],Dr=zn.slice(0,zn.length-1),Hr=(0,Mn.D)(fn,Dr,Dr[0]||null);Ve.onChange(Hr,{action:"pop-value",removedValue:cr})},Ve.getValue=function(){return Ve.state.selectValue},Ve.cx=function(){for(var fn=arguments.length,zn=new Array(fn),cr=0;cr<fn;cr++)zn[cr]=arguments[cr];return Mn.E.apply(void 0,[Ve.props.classNamePrefix].concat(zn))},Ve.getOptionLabel=function(fn){return ji(Ve.props,fn)},Ve.getOptionValue=function(fn){return _n(Ve.props,fn)},Ve.getStyles=function(fn,zn){var cr=Ve.props.unstyled,Dr=Ae[fn](zn,cr);Dr.boxSizing="border-box";var Hr=Ve.props.styles[fn];return Hr?Hr(Dr,zn):Dr},Ve.getClassNames=function(fn,zn){var cr,Dr;return(cr=(Dr=Ve.props.classNames)[fn])===null||cr===void 0?void 0:cr.call(Dr,zn)},Ve.getElementId=function(fn){return"".concat(Ve.instancePrefix,"-").concat(fn)},Ve.getComponents=function(){return(0,Mn.F)(Ve.props)},Ve.buildCategorizedOptions=function(){return Vn(Ve.props,Ve.state.selectValue)},Ve.getCategorizedOptions=function(){return Ve.props.menuIsOpen?Ve.buildCategorizedOptions():[]},Ve.buildFocusableOptions=function(){return ar(Ve.buildCategorizedOptions())},Ve.getFocusableOptions=function(){return Ve.props.menuIsOpen?Ve.buildFocusableOptions():[]},Ve.ariaOnChange=function(fn,zn){Ve.setState({ariaSelection:(0,lt.Z)({value:fn},zn)})},Ve.onMenuMouseDown=function(fn){fn.button===0&&(fn.stopPropagation(),fn.preventDefault(),Ve.focusInput())},Ve.onMenuMouseMove=function(fn){Ve.blockOptionHover=!1},Ve.onControlMouseDown=function(fn){if(!fn.defaultPrevented){var zn=Ve.props.openMenuOnClick;Ve.state.isFocused?Ve.props.menuIsOpen?fn.target.tagName!=="INPUT"&&fn.target.tagName!=="TEXTAREA"&&Ve.onMenuClose():zn&&Ve.openMenu("first"):(zn&&(Ve.openAfterFocus=!0),Ve.focusInput()),fn.target.tagName!=="INPUT"&&fn.target.tagName!=="TEXTAREA"&&fn.preventDefault()}},Ve.onDropdownIndicatorMouseDown=function(fn){if(!(fn&&fn.type==="mousedown"&&fn.button!==0)&&!Ve.props.isDisabled){var zn=Ve.props,cr=zn.isMulti,Dr=zn.menuIsOpen;Ve.focusInput(),Dr?(Ve.setState({inputIsHiddenAfterUpdate:!cr}),Ve.onMenuClose()):Ve.openMenu("first"),fn.preventDefault()}},Ve.onClearIndicatorMouseDown=function(fn){fn&&fn.type==="mousedown"&&fn.button!==0||(Ve.clearValue(),fn.preventDefault(),Ve.openAfterFocus=!1,fn.type==="touchend"?Ve.focusInput():setTimeout(function(){return Ve.focusInput()}))},Ve.onScroll=function(fn){typeof Ve.props.closeMenuOnScroll=="boolean"?fn.target instanceof HTMLElement&&(0,Mn.H)(fn.target)&&Ve.props.onMenuClose():typeof Ve.props.closeMenuOnScroll=="function"&&Ve.props.closeMenuOnScroll(fn)&&Ve.props.onMenuClose()},Ve.onCompositionStart=function(){Ve.isComposing=!0},Ve.onCompositionEnd=function(){Ve.isComposing=!1},Ve.onTouchStart=function(fn){var zn=fn.touches,cr=zn&&zn.item(0);cr&&(Ve.initialTouchX=cr.clientX,Ve.initialTouchY=cr.clientY,Ve.userIsDragging=!1)},Ve.onTouchMove=function(fn){var zn=fn.touches,cr=zn&&zn.item(0);if(cr){var Dr=Math.abs(cr.clientX-Ve.initialTouchX),Hr=Math.abs(cr.clientY-Ve.initialTouchY),pi=5;Ve.userIsDragging=Dr>pi||Hr>pi}},Ve.onTouchEnd=function(fn){Ve.userIsDragging||(Ve.controlRef&&!Ve.controlRef.contains(fn.target)&&Ve.menuListRef&&!Ve.menuListRef.contains(fn.target)&&Ve.blurInput(),Ve.initialTouchX=0,Ve.initialTouchY=0)},Ve.onControlTouchEnd=function(fn){Ve.userIsDragging||Ve.onControlMouseDown(fn)},Ve.onClearIndicatorTouchEnd=function(fn){Ve.userIsDragging||Ve.onClearIndicatorMouseDown(fn)},Ve.onDropdownIndicatorTouchEnd=function(fn){Ve.userIsDragging||Ve.onDropdownIndicatorMouseDown(fn)},Ve.handleInputChange=function(fn){var zn=Ve.props.inputValue,cr=fn.currentTarget.value;Ve.setState({inputIsHiddenAfterUpdate:!1}),Ve.onInputChange(cr,{action:"input-change",prevInputValue:zn}),Ve.props.menuIsOpen||Ve.onMenuOpen()},Ve.onInputFocus=function(fn){Ve.props.onFocus&&Ve.props.onFocus(fn),Ve.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(Ve.openAfterFocus||Ve.props.openMenuOnFocus)&&Ve.openMenu("first"),Ve.openAfterFocus=!1},Ve.onInputBlur=function(fn){var zn=Ve.props.inputValue;if(Ve.menuListRef&&Ve.menuListRef.contains(document.activeElement)){Ve.inputRef.focus();return}Ve.props.onBlur&&Ve.props.onBlur(fn),Ve.onInputChange("",{action:"input-blur",prevInputValue:zn}),Ve.onMenuClose(),Ve.setState({focusedValue:null,isFocused:!1})},Ve.onOptionHover=function(fn){Ve.blockOptionHover||Ve.state.focusedOption===fn||Ve.setState({focusedOption:fn})},Ve.shouldHideSelectedOptions=function(){return Gt(Ve.props)},Ve.onValueInputFocus=function(fn){fn.preventDefault(),fn.stopPropagation(),Ve.focus()},Ve.onKeyDown=function(fn){var zn=Ve.props,cr=zn.isMulti,Dr=zn.backspaceRemovesValue,Hr=zn.escapeClearsValue,pi=zn.inputValue,xi=zn.isClearable,wi=zn.isDisabled,Wi=zn.menuIsOpen,Ai=zn.onKeyDown,_o=zn.tabSelectsValue,Ko=zn.openMenuOnFocus,Ks=Ve.state,xo=Ks.focusedOption,ms=Ks.focusedValue,zs=Ks.selectValue;if(!wi&&!(typeof Ai=="function"&&(Ai(fn),fn.defaultPrevented))){switch(Ve.blockOptionHover=!0,fn.key){case"ArrowLeft":if(!cr||pi)return;Ve.focusValue("previous");break;case"ArrowRight":if(!cr||pi)return;Ve.focusValue("next");break;case"Delete":case"Backspace":if(pi)return;if(ms)Ve.removeValue(ms);else{if(!Dr)return;cr?Ve.popValue():xi&&Ve.clearValue()}break;case"Tab":if(Ve.isComposing||fn.shiftKey||!Wi||!_o||!xo||Ko&&Ve.isOptionSelected(xo,zs))return;Ve.selectOption(xo);break;case"Enter":if(fn.keyCode===229)break;if(Wi){if(!xo||Ve.isComposing)return;Ve.selectOption(xo);break}return;case"Escape":Wi?(Ve.setState({inputIsHiddenAfterUpdate:!1}),Ve.onInputChange("",{action:"menu-close",prevInputValue:pi}),Ve.onMenuClose()):xi&&Hr&&Ve.clearValue();break;case" ":if(pi)return;if(!Wi){Ve.openMenu("first");break}if(!xo)return;Ve.selectOption(xo);break;case"ArrowUp":Wi?Ve.focusOption("up"):Ve.openMenu("last");break;case"ArrowDown":Wi?Ve.focusOption("down"):Ve.openMenu("first");break;case"PageUp":if(!Wi)return;Ve.focusOption("pageup");break;case"PageDown":if(!Wi)return;Ve.focusOption("pagedown");break;case"Home":if(!Wi)return;Ve.focusOption("first");break;case"End":if(!Wi)return;Ve.focusOption("last");break;default:return}fn.preventDefault()}},Ve.instancePrefix="react-select-"+(Ve.props.instanceId||++We),Ve.state.selectValue=(0,Mn.I)(Nt.value),Nt.menuIsOpen&&Ve.state.selectValue.length){var An=Ve.buildFocusableOptions(),Zn=An.indexOf(Ve.state.selectValue[0]);Ve.state.focusedOption=An[Zn]}return Ve}return rr(qe,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&(0,Mn.J)(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(Ve){var An=this.props,Zn=An.isDisabled,fn=An.menuIsOpen,zn=this.state.isFocused;(zn&&!Zn&&Ve.isDisabled||zn&&fn&&!Ve.menuIsOpen)&&this.focusInput(),zn&&Zn&&!Ve.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!zn&&!Zn&&Ve.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,Mn.J)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(Ve,An){this.props.onInputChange(Ve,An)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(Ve){var An=this,Zn=this.state,fn=Zn.selectValue,zn=Zn.isFocused,cr=this.buildFocusableOptions(),Dr=Ve==="first"?0:cr.length-1;if(!this.props.isMulti){var Hr=cr.indexOf(fn[0]);Hr>-1&&(Dr=Hr)}this.scrollToFocusedOptionOnUpdate=!(zn&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:cr[Dr]},function(){return An.onMenuOpen()})}},{key:"focusValue",value:function(Ve){var An=this.state,Zn=An.selectValue,fn=An.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var zn=Zn.indexOf(fn);fn||(zn=-1);var cr=Zn.length-1,Dr=-1;if(Zn.length){switch(Ve){case"previous":zn===0?Dr=0:zn===-1?Dr=cr:Dr=zn-1;break;case"next":zn>-1&&zn<cr&&(Dr=zn+1);break}this.setState({inputIsHidden:Dr!==-1,focusedValue:Zn[Dr]})}}}},{key:"focusOption",value:function(){var Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",An=this.props.pageSize,Zn=this.state.focusedOption,fn=this.getFocusableOptions();if(fn.length){var zn=0,cr=fn.indexOf(Zn);Zn||(cr=-1),Ve==="up"?zn=cr>0?cr-1:fn.length-1:Ve==="down"?zn=(cr+1)%fn.length:Ve==="pageup"?(zn=cr-An,zn<0&&(zn=0)):Ve==="pagedown"?(zn=cr+An,zn>fn.length-1&&(zn=fn.length-1)):Ve==="last"&&(zn=fn.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:fn[zn],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(hn):(0,lt.Z)((0,lt.Z)({},hn),this.props.theme):hn}},{key:"getCommonProps",value:function(){var Ve=this.clearValue,An=this.cx,Zn=this.getStyles,fn=this.getClassNames,zn=this.getValue,cr=this.selectOption,Dr=this.setValue,Hr=this.props,pi=Hr.isMulti,xi=Hr.isRtl,wi=Hr.options,Wi=this.hasValue();return{clearValue:Ve,cx:An,getStyles:Zn,getClassNames:fn,getValue:zn,hasValue:Wi,isMulti:pi,isRtl:xi,options:wi,selectOption:cr,selectProps:Hr,setValue:Dr,theme:this.getTheme()}}},{key:"hasValue",value:function(){var Ve=this.state.selectValue;return Ve.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var Ve=this.props,An=Ve.isClearable,Zn=Ve.isMulti;return An===void 0?Zn:An}},{key:"isOptionDisabled",value:function(Ve,An){return _e(this.props,Ve,An)}},{key:"isOptionSelected",value:function(Ve,An){return rt(this.props,Ve,An)}},{key:"filterOption",value:function(Ve,An){return vt(this.props,Ve,An)}},{key:"formatOptionLabel",value:function(Ve,An){if(typeof this.props.formatOptionLabel=="function"){var Zn=this.props.inputValue,fn=this.state.selectValue;return this.props.formatOptionLabel(Ve,{context:An,inputValue:Zn,selectValue:fn})}else return this.getOptionLabel(Ve)}},{key:"formatGroupLabel",value:function(Ve){return this.props.formatGroupLabel(Ve)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var Ve=this.props,An=Ve.isDisabled,Zn=Ve.isSearchable,fn=Ve.inputId,zn=Ve.inputValue,cr=Ve.tabIndex,Dr=Ve.form,Hr=Ve.menuIsOpen,pi=Ve.required,xi=this.getComponents(),wi=xi.Input,Wi=this.state,Ai=Wi.inputIsHidden,_o=Wi.ariaSelection,Ko=this.commonProps,Ks=fn||this.getElementId("input"),xo=(0,lt.Z)((0,lt.Z)((0,lt.Z)({"aria-autocomplete":"list","aria-expanded":Hr,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":pi,role:"combobox"},Hr&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!Zn&&{"aria-readonly":!0}),this.hasValue()?_o?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return Zn?r.createElement(wi,(0,yn.Z)({},Ko,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:Ks,innerRef:this.getInputRef,isDisabled:An,isHidden:Ai,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:cr,form:Dr,type:"text",value:zn},xo)):r.createElement(Pn,(0,yn.Z)({id:Ks,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Mn.K,onFocus:this.onInputFocus,disabled:An,tabIndex:cr,inputMode:"none",form:Dr,value:""},xo))}},{key:"renderPlaceholderOrValue",value:function(){var Ve=this,An=this.getComponents(),Zn=An.MultiValue,fn=An.MultiValueContainer,zn=An.MultiValueLabel,cr=An.MultiValueRemove,Dr=An.SingleValue,Hr=An.Placeholder,pi=this.commonProps,xi=this.props,wi=xi.controlShouldRenderValue,Wi=xi.isDisabled,Ai=xi.isMulti,_o=xi.inputValue,Ko=xi.placeholder,Ks=this.state,xo=Ks.selectValue,ms=Ks.focusedValue,zs=Ks.isFocused;if(!this.hasValue()||!wi)return _o?null:r.createElement(Hr,(0,yn.Z)({},pi,{key:"placeholder",isDisabled:Wi,isFocused:zs,innerProps:{id:this.getElementId("placeholder")}}),Ko);if(Ai)return xo.map(function(ea,ha){var tc=ea===ms,zd="".concat(Ve.getOptionLabel(ea),"-").concat(Ve.getOptionValue(ea));return r.createElement(Zn,(0,yn.Z)({},pi,{components:{Container:fn,Label:zn,Remove:cr},isFocused:tc,isDisabled:Wi,key:zd,index:ha,removeProps:{onClick:function(){return Ve.removeValue(ea)},onTouchEnd:function(){return Ve.removeValue(ea)},onMouseDown:function(ua){ua.preventDefault()}},data:ea}),Ve.formatOptionLabel(ea,"value"))});if(_o)return null;var Ys=xo[0];return r.createElement(Dr,(0,yn.Z)({},pi,{data:Ys,isDisabled:Wi}),this.formatOptionLabel(Ys,"value"))}},{key:"renderClearIndicator",value:function(){var Ve=this.getComponents(),An=Ve.ClearIndicator,Zn=this.commonProps,fn=this.props,zn=fn.isDisabled,cr=fn.isLoading,Dr=this.state.isFocused;if(!this.isClearable()||!An||zn||!this.hasValue()||cr)return null;var Hr={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return r.createElement(An,(0,yn.Z)({},Zn,{innerProps:Hr,isFocused:Dr}))}},{key:"renderLoadingIndicator",value:function(){var Ve=this.getComponents(),An=Ve.LoadingIndicator,Zn=this.commonProps,fn=this.props,zn=fn.isDisabled,cr=fn.isLoading,Dr=this.state.isFocused;if(!An||!cr)return null;var Hr={"aria-hidden":"true"};return r.createElement(An,(0,yn.Z)({},Zn,{innerProps:Hr,isDisabled:zn,isFocused:Dr}))}},{key:"renderIndicatorSeparator",value:function(){var Ve=this.getComponents(),An=Ve.DropdownIndicator,Zn=Ve.IndicatorSeparator;if(!An||!Zn)return null;var fn=this.commonProps,zn=this.props.isDisabled,cr=this.state.isFocused;return r.createElement(Zn,(0,yn.Z)({},fn,{isDisabled:zn,isFocused:cr}))}},{key:"renderDropdownIndicator",value:function(){var Ve=this.getComponents(),An=Ve.DropdownIndicator;if(!An)return null;var Zn=this.commonProps,fn=this.props.isDisabled,zn=this.state.isFocused,cr={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return r.createElement(An,(0,yn.Z)({},Zn,{innerProps:cr,isDisabled:fn,isFocused:zn}))}},{key:"renderMenu",value:function(){var Ve=this,An=this.getComponents(),Zn=An.Group,fn=An.GroupHeading,zn=An.Menu,cr=An.MenuList,Dr=An.MenuPortal,Hr=An.LoadingMessage,pi=An.NoOptionsMessage,xi=An.Option,wi=this.commonProps,Wi=this.state.focusedOption,Ai=this.props,_o=Ai.captureMenuScroll,Ko=Ai.inputValue,Ks=Ai.isLoading,xo=Ai.loadingMessage,ms=Ai.minMenuHeight,zs=Ai.maxMenuHeight,Ys=Ai.menuIsOpen,ea=Ai.menuPlacement,ha=Ai.menuPosition,tc=Ai.menuPortalTarget,zd=Ai.menuShouldBlockScroll,nl=Ai.menuShouldScrollIntoView,ua=Ai.noOptionsMessage,Pl=Ai.onMenuScrollToTop,Bo=Ai.onMenuScrollToBottom;if(!Ys)return null;var wa=function(Su,Dl){var ff=Su.type,hh=Su.data,Hd=Su.isDisabled,Mp=Su.isSelected,gm=Su.label,I1=Su.value,a0=Wi===hh,l0=Hd?void 0:function(){return Ve.onOptionHover(hh)},vm=Hd?void 0:function(){return Ve.selectOption(hh)},R1="".concat(Ve.getElementId("option"),"-").concat(Dl),L1={id:R1,onClick:vm,onMouseMove:l0,onMouseOver:l0,tabIndex:-1};return r.createElement(xi,(0,yn.Z)({},wi,{innerProps:L1,data:hh,isDisabled:Hd,isSelected:Mp,key:R1,label:gm,type:ff,value:I1,isFocused:a0,innerRef:a0?Ve.getFocusedOptionRef:void 0}),Ve.formatOptionLabel(Su.data,"menu"))},Mc;if(this.hasOptions())Mc=this.getCategorizedOptions().map(function(ru){if(ru.type==="group"){var Su=ru.data,Dl=ru.options,ff=ru.index,hh="".concat(Ve.getElementId("group"),"-").concat(ff),Hd="".concat(hh,"-heading");return r.createElement(Zn,(0,yn.Z)({},wi,{key:hh,data:Su,options:Dl,Heading:fn,headingProps:{id:Hd,data:ru.data},label:Ve.formatGroupLabel(ru.data)}),ru.options.map(function(Mp){return wa(Mp,"".concat(ff,"-").concat(Mp.index))}))}else if(ru.type==="option")return wa(ru,"".concat(ru.index))});else if(Ks){var Tu=xo({inputValue:Ko});if(Tu===null)return null;Mc=r.createElement(Hr,wi,Tu)}else{var Ud=ua({inputValue:Ko});if(Ud===null)return null;Mc=r.createElement(pi,wi,Ud)}var qh={minMenuHeight:ms,maxMenuHeight:zs,menuPlacement:ea,menuPosition:ha,menuShouldScrollIntoView:nl},Df=r.createElement(Mn.M,(0,yn.Z)({},wi,qh),function(ru){var Su=ru.ref,Dl=ru.placerProps,ff=Dl.placement,hh=Dl.maxHeight;return r.createElement(zn,(0,yn.Z)({},wi,qh,{innerRef:Su,innerProps:{onMouseDown:Ve.onMenuMouseDown,onMouseMove:Ve.onMenuMouseMove,id:Ve.getElementId("listbox")},isLoading:Ks,placement:ff}),r.createElement(si,{captureEnabled:_o,onTopArrive:Pl,onBottomArrive:Bo,lockEnabled:zd},function(Hd){return r.createElement(cr,(0,yn.Z)({},wi,{innerRef:function(gm){Ve.getMenuListRef(gm),Hd(gm)},isLoading:Ks,maxHeight:hh,focusedOption:Wi}),Mc)}))});return tc||ha==="fixed"?r.createElement(Dr,(0,yn.Z)({},wi,{appendTo:tc,controlElement:this.controlRef,menuPlacement:ea,menuPosition:ha}),Df):Df}},{key:"renderFormField",value:function(){var Ve=this,An=this.props,Zn=An.delimiter,fn=An.isDisabled,zn=An.isMulti,cr=An.name,Dr=An.required,Hr=this.state.selectValue;if(!(!cr||fn)){if(Dr&&!this.hasValue())return r.createElement(Vi,{name:cr,onFocus:this.onValueInputFocus});if(zn)if(Zn){var pi=Hr.map(function(Wi){return Ve.getOptionValue(Wi)}).join(Zn);return r.createElement("input",{name:cr,type:"hidden",value:pi})}else{var xi=Hr.length>0?Hr.map(function(Wi,Ai){return r.createElement("input",{key:"i-".concat(Ai),name:cr,type:"hidden",value:Ve.getOptionValue(Wi)})}):r.createElement("input",{name:cr,type:"hidden",value:""});return r.createElement("div",null,xi)}else{var wi=Hr[0]?this.getOptionValue(Hr[0]):"";return r.createElement("input",{name:cr,type:"hidden",value:wi})}}}},{key:"renderLiveRegion",value:function(){var Ve=this.commonProps,An=this.state,Zn=An.ariaSelection,fn=An.focusedOption,zn=An.focusedValue,cr=An.isFocused,Dr=An.selectValue,Hr=this.getFocusableOptions();return r.createElement(Re,(0,yn.Z)({},Ve,{id:this.getElementId("live-region"),ariaSelection:Zn,focusedOption:fn,focusedValue:zn,isFocused:cr,selectValue:Dr,focusableOptions:Hr}))}},{key:"render",value:function(){var Ve=this.getComponents(),An=Ve.Control,Zn=Ve.IndicatorsContainer,fn=Ve.SelectContainer,zn=Ve.ValueContainer,cr=this.props,Dr=cr.className,Hr=cr.id,pi=cr.isDisabled,xi=cr.menuIsOpen,wi=this.state.isFocused,Wi=this.commonProps=this.getCommonProps();return r.createElement(fn,(0,yn.Z)({},Wi,{className:Dr,innerProps:{id:Hr,onKeyDown:this.onKeyDown},isDisabled:pi,isFocused:wi}),this.renderLiveRegion(),r.createElement(An,(0,yn.Z)({},Wi,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:pi,isFocused:wi,menuIsOpen:xi}),r.createElement(zn,(0,yn.Z)({},Wi,{isDisabled:pi}),this.renderPlaceholderOrValue(),this.renderInput()),r.createElement(Zn,(0,yn.Z)({},Wi,{isDisabled:pi}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(Ve,An){var Zn=An.prevProps,fn=An.clearFocusValueOnUpdate,zn=An.inputIsHiddenAfterUpdate,cr=An.ariaSelection,Dr=An.isFocused,Hr=An.prevWasFocused,pi=Ve.options,xi=Ve.value,wi=Ve.menuIsOpen,Wi=Ve.inputValue,Ai=Ve.isMulti,_o=(0,Mn.I)(xi),Ko={};if(Zn&&(xi!==Zn.value||pi!==Zn.options||wi!==Zn.menuIsOpen||Wi!==Zn.inputValue)){var Ks=wi?Vr(Ve,_o):[],xo=fn?yi(An,_o):null,ms=Ii(An,Ks);Ko={selectValue:_o,focusedOption:ms,focusedValue:xo,clearFocusValueOnUpdate:!1}}var zs=zn!=null&&Ve!==Zn?{inputIsHidden:zn,inputIsHiddenAfterUpdate:void 0}:{},Ys=cr,ea=Dr&&Hr;return Dr&&!ea&&(Ys={value:(0,Mn.D)(Ai,_o,_o[0]||null),options:_o,action:"initial-input-focus"},ea=!Hr),cr?.action==="initial-input-focus"&&(Ys=null),(0,lt.Z)((0,lt.Z)((0,lt.Z)({},Ko),zs),{},{prevProps:Ve,ariaSelection:Ys,prevWasFocused:ea})}}]),qe}(r.Component);Ot.defaultProps=Sn;var Dt=t(66751),gn=t(73935),Hn=t(73469),nr=(0,r.forwardRef)(function(J,ce){var qe=sn(J);return r.createElement(Ot,(0,yn.Z)({ref:ce},qe))}),_r=function(J){var ce=J.nonce,qe=J.children,Nt=J.cacheKey,Ve=useMemo(function(){return createCache({key:Nt,nonce:ce})},[Nt,ce]);return React.createElement(CacheProvider,{value:Ve},qe)};const Nr=nr;var Qr=t(35978),ki=t(19013),Si=t(13882);function Ei(J){return(0,Si.Z)(1,arguments),(0,ki.Z)(J).getTime()<Date.now()}var oo=t(64593),zi=t(88767),Xi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function uo(J){return J&&J.__esModule&&Object.prototype.hasOwnProperty.call(J,"default")?J.default:J}var qi={exports:{}},Ui={};/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Vo;function Cs(){if(Vo)return Ui;Vo=1;var J=r,ce=Symbol.for("react.element"),qe=Symbol.for("react.fragment"),Nt=Object.prototype.hasOwnProperty,Ve=J.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,An={key:!0,ref:!0,__self:!0,__source:!0};function Zn(fn,zn,cr){var Dr,Hr={},pi=null,xi=null;cr!==void 0&&(pi=""+cr),zn.key!==void 0&&(pi=""+zn.key),zn.ref!==void 0&&(xi=zn.ref);for(Dr in zn)Nt.call(zn,Dr)&&!An.hasOwnProperty(Dr)&&(Hr[Dr]=zn[Dr]);if(fn&&fn.defaultProps)for(Dr in zn=fn.defaultProps,zn)Hr[Dr]===void 0&&(Hr[Dr]=zn[Dr]);return{$$typeof:ce,type:fn,key:pi,ref:xi,props:Hr,_owner:Ve.current}}return Ui.Fragment=qe,Ui.jsx=Zn,Ui.jsxs=Zn,Ui}var ra={};/**
 * @license React
 * react-jsx-runtime.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ts;function Io(){return Ts||(Ts=1),ra}qi.exports=Cs();var xr=qi.exports;const ia=({content:J={id:"anErrorOccurred",defaultMessage:"Woops! Something went wrong. Please, try again.",values:{}},...ce})=>{const{formatMessage:qe}=(0,ne.Z)();return xr.jsx(n.x,{...ce,icon:xr.jsx(je.Z,{width:"10rem"}),content:qe({id:J.id,defaultMessage:J.defaultMessage},J.values)})},Is=(J,ce,qe)=>{if(!ce)return;let Nt=Array.isArray(ce)?ce:[];if(!Array.isArray(ce)&&typeof ce=="object"&&(Nt=[ce?.desktop,ce?.tablet,ce?.mobile]),Nt.length>0)return Nt.reduce((Zn,fn,zn)=>{if(fn)switch(zn){case 0:return`${Zn}${J}: ${qe.spaces[fn]};`;case 1:return`${Zn}${qe.mediaQueries.tablet}{${J}: ${qe.spaces[fn]};}`;case 2:return`${Zn}${qe.mediaQueries.mobile}{${J}: ${qe.spaces[fn]};}`;default:return Zn}return Zn},"");const Ve=qe.spaces[ce]||ce;return`${J}: ${Ve};`};function Gs(J,ce){return typeof J=="string"?!1:ce in J}function as(J,ce,qe){return ce&&Gs(J,ce)?J[ce]:qe}const Wo={color:!0,cursor:!0,height:!0,width:!0},Ma=Ne.default.div.withConfig({shouldForwardProp:(J,ce)=>!Wo[J]&&ce(J)})`
  // Font
  font-size: ${({fontSize:J,theme:ce})=>as(ce.fontSizes,J,J)};

  // Colors
  background: ${({theme:J,background:ce})=>as(J.colors,ce,ce)};
  color: ${({theme:J,color:ce})=>as(J.colors,ce,void 0)};

  // Spaces
  ${({theme:J,padding:ce})=>Is("padding",ce,J)}
  ${({theme:J,paddingTop:ce})=>Is("padding-top",ce,J)}
  ${({theme:J,paddingRight:ce})=>Is("padding-right",ce,J)}
  ${({theme:J,paddingBottom:ce})=>Is("padding-bottom",ce,J)}
  ${({theme:J,paddingLeft:ce})=>Is("padding-left",ce,J)}
  ${({theme:J,marginLeft:ce})=>Is("margin-left",ce,J)}
  ${({theme:J,marginRight:ce})=>Is("margin-right",ce,J)}
  ${({theme:J,marginTop:ce})=>Is("margin-top",ce,J)}
  ${({theme:J,marginBottom:ce})=>Is("margin-bottom",ce,J)}

  // Responsive hiding
  ${({theme:J,hiddenS:ce})=>ce?`${J.mediaQueries.tablet} { display: none; }`:void 0}
  ${({theme:J,hiddenXS:ce})=>ce?`${J.mediaQueries.mobile} { display: none; }`:void 0}
  

  // Borders
  border-radius: ${({theme:J,hasRadius:ce,borderRadius:qe})=>ce?J.borderRadius:qe};
  border-style: ${({borderStyle:J})=>J};
  border-width: ${({borderWidth:J})=>J};
  border-color: ${({borderColor:J,theme:ce})=>as(ce.colors,J,void 0)};
  border: ${({theme:J,borderColor:ce,borderStyle:qe,borderWidth:Nt})=>{if(ce&&!qe&&typeof Nt>"u")return`1px solid ${J.colors[ce]}`}};

  // Shadows
  box-shadow: ${({theme:J,shadow:ce})=>as(J.shadows,ce,void 0)};

  // Handlers
  pointer-events: ${({pointerEvents:J})=>J};
  &:hover {
    ${({_hover:J,theme:ce})=>J?J(ce):void 0}
  }

  // Display
  display: ${({display:J})=>J};

  // Position
  position: ${({position:J})=>J};
  left: ${({left:J,theme:ce})=>as(ce.spaces,J,J)};
  right: ${({right:J,theme:ce})=>as(ce.spaces,J,J)};
  top: ${({top:J,theme:ce})=>as(ce.spaces,J,J)};
  bottom: ${({bottom:J,theme:ce})=>as(ce.spaces,J,J)};
  z-index: ${({zIndex:J})=>J};
  overflow: ${({overflow:J})=>J};

  // Size
  width: ${({width:J,theme:ce})=>as(ce.spaces,J,J)};
  max-width: ${({maxWidth:J,theme:ce})=>as(ce.spaces,J,J)};
  min-width: ${({minWidth:J,theme:ce})=>as(ce.spaces,J,J)};
  height: ${({height:J,theme:ce})=>as(ce.spaces,J,J)};
  max-height: ${({maxHeight:J,theme:ce})=>as(ce.spaces,J,J)};
  min-height: ${({minHeight:J,theme:ce})=>as(ce.spaces,J,J)};

  // Animation
  transition: ${({transition:J})=>J};
  transform: ${({transform:J})=>J};
  animation: ${({animation:J})=>J};

  //Flexbox children props
  flex-shrink: ${({shrink:J})=>J};
  flex-grow: ${({grow:J})=>J};
  flex-basis: ${({basis:J})=>J};
  flex: ${({flex:J})=>J};

  // Text
  text-align: ${({textAlign:J})=>J};
  text-transform: ${({textTransform:J})=>J};
  line-height: ${({theme:J,lineHeight:ce})=>as(J.lineHeights,ce,ce)};

  // Cursor
  cursor: ${({cursor:J})=>J};
`,fa="alpha",dt="beta",Fe="delta",an="epsilon",qn="omega",Fr="pi",ui="sigma",Hi=({ellipsis:J=!1})=>J&&`
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  `,lo=({variant:J=qn,theme:ce})=>{switch(J){case fa:return`
        font-weight: ${ce.fontWeights.bold};
        font-size: ${ce.fontSizes[5]};
        line-height: ${ce.lineHeights[2]};
      `;case dt:return`
        font-weight: ${ce.fontWeights.bold};
        font-size: ${ce.fontSizes[4]};
        line-height: ${ce.lineHeights[1]};
      `;case Fe:return`
        font-weight: ${ce.fontWeights.semiBold};
        font-size: ${ce.fontSizes[3]};
        line-height: ${ce.lineHeights[2]};
      `;case an:return`
        font-size: ${ce.fontSizes[3]};
        line-height: ${ce.lineHeights[6]};
      `;case qn:return`
        font-size: ${ce.fontSizes[2]};
        line-height: ${ce.lineHeights[4]};
      `;case Fr:return`
        font-size: ${ce.fontSizes[1]};
        line-height: ${ce.lineHeights[3]};
      `;case ui:return`
        font-weight: ${ce.fontWeights.bold};
        font-size: ${ce.fontSizes[0]};
        line-height: ${ce.lineHeights[5]};
        text-transform: uppercase;
      `;default:return`
        font-size: ${ce.fontSizes[2]};
      `}},mo={fontSize:!0,fontWeight:!0},ts=Ne.default.span.withConfig({shouldForwardProp:(J,ce)=>!mo[J]&&ce(J)})`
  ${lo}
  ${Hi}

  // These properties need to come after {variantStyle}, because they might
  // overwrite a variant attribute
  font-weight: ${({theme:J,fontWeight:ce})=>as(J.fontWeights,ce,void 0)};
  font-size: ${({theme:J,fontSize:ce})=>as(J.fontSizes,ce,void 0)};
  line-height: ${({theme:J,lineHeight:ce})=>as(J.lineHeights,ce,ce)};
  color: ${({theme:J,textColor:ce})=>J.colors[ce||"neutral800"]};
  text-align: ${({textAlign:J})=>J};
  text-decoration: ${({textDecoration:J})=>J};
  text-transform: ${({textTransform:J})=>J};
`,co={direction:!0},Oo=(0,Ne.default)(Ma).withConfig({shouldForwardProp:(J,ce)=>!co[J]&&ce(J)})`
  align-items: ${({alignItems:J="center"})=>J};
  display: ${({display:J="flex",inline:ce})=>ce?"inline-flex":J};
  flex-direction: ${({direction:J="row"})=>J};
  flex-shrink: ${({shrink:J})=>J};
  flex-wrap: ${({wrap:J})=>J};
  ${({gap:J,theme:ce})=>Is("gap",J,ce)};
  justify-content: ${({justifyContent:J})=>J};
`,Po=r.forwardRef(({href:J,rel:ce="noreferrer noopener",target:qe="_self",disabled:Nt=!1,isExternal:Ve=!1,...An},Zn)=>xr.jsx(Ma,{as:"a",ref:Zn,target:Ve?"_blank":qe,rel:Ve?ce:void 0,href:Nt?"#":J,"aria-disabled":Nt,cursor:"pointer",...An}));Po.displayName="BaseLink";const Yo=({theme:J})=>(0,Ne.css)`
  position: relative;
  outline: none;

  &:after {
    transition-property: all;
    transition-duration: 0.2s;
    border-radius: 8px;
    content: '';
    position: absolute;
    top: -4px;
    bottom: -4px;
    left: -4px;
    right: -4px;
    border: 2px solid transparent;
  }

  &:focus-visible {
    outline: none;
    &:after {
      border-radius: 8px;
      content: '';
      position: absolute;
      top: -5px;
      bottom: -5px;
      left: -5px;
      right: -5px;
      border: 2px solid ${J.colors.primary600};
    }
  }
`,ns=(0,Ne.default)(Po)`
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  gap: ${({theme:J})=>J.spaces[2]};
  pointer-events: ${({disabled:J})=>J?"none":void 0};

  svg {
    font-size: ${10/16}rem;

    path {
      fill: ${({disabled:J,theme:ce})=>J?ce.colors.neutral600:ce.colors.primary600};
    }
  }

  &:hover {
    color: ${({theme:J})=>J.colors.primary500};
  }

  &:active {
    color: ${({theme:J})=>J.colors.primary700};
  }

  ${Yo};
`,Os=r.forwardRef(({children:J,href:ce,disabled:qe=!1,startIcon:Nt,endIcon:Ve,isExternal:An=!0,...Zn},fn)=>xr.jsxs(ns,{ref:fn,href:ce,disabled:qe,isExternal:An,...Zn,children:[Nt,xr.jsx(ts,{textColor:qe?"neutral600":"primary600",children:J}),Ve,ce&&!Ve&&An&&xr.jsx($t.Z,{})]}));Os.displayName="Link";const Lo="success-light",da="danger-light",Qs="default",ta="tertiary",Oa="secondary",_l="danger",gs="success",ds="ghost",es=[Lo,da],Ga=[Qs,ta,Oa,_l,gs,ds,...es],So=J=>J===Lo||J===da?`${J.substring(0,J.lastIndexOf("-"))}`:J===ta?"neutral":J===Qs||J===Oa||Ga.every(ce=>ce!==J)?"primary":`${J}`,Di=({theme:J})=>`
    border: 1px solid ${J.colors.neutral200};
    background: ${J.colors.neutral150};
    ${ts} {
      color: ${J.colors.neutral600};
    }
    svg {
      > g, path {
        fill: ${J.colors.neutral600};
      }
    }
  `,Il=({theme:J,variant:ce})=>[...es,Oa].includes(ce)?`
      background-color: ${J.colors.neutral0};
    `:ce===ta?`
      background-color: ${J.colors.neutral100};
    `:ce===ds?`
      background-color: ${J.colors.neutral100};
    `:ce===Qs?`
      border: 1px solid ${J.colors.buttonPrimary500};
      background: ${J.colors.buttonPrimary500};
    `:`
    border: 1px solid ${J.colors[`${So(ce)}500`]};
    background: ${J.colors[`${So(ce)}500`]};
  `,Na=({theme:J,variant:ce})=>[...es,Oa].includes(ce)?`
      background-color: ${J.colors.neutral0};
      border: 1px solid ${J.colors[`${So(ce)}600`]};
      ${ts} {
        color: ${J.colors[`${So(ce)}600`]};
      }
      svg {
        > g, path {
          fill: ${J.colors[`${So(ce)}600`]};
        }
      }
    `:ce===ta?`
      background-color: ${J.colors.neutral150};
    `:`
    border: 1px solid ${J.colors[`${So(ce)}600`]};
    background: ${J.colors[`${So(ce)}600`]};
  `,xl=({theme:J,variant:ce})=>{switch(ce){case da:case Lo:case Oa:return`
          border: 1px solid ${J.colors[`${So(ce)}200`]};
          background: ${J.colors[`${So(ce)}100`]};
          ${ts} {
            color: ${J.colors[`${So(ce)}700`]};
          }
          svg {
            > g, path {
              fill: ${J.colors[`${So(ce)}700`]};
            }
          }
        `;case ta:return`
          border: 1px solid ${J.colors.neutral200};
          background: ${J.colors.neutral0};
          ${ts} {
            color: ${J.colors.neutral800};
          }
          svg {
            > g, path {
              fill: ${J.colors.neutral800};
            }
          }
        `;case ds:return`
        border: 1px solid transparent;
        background: transparent;

        ${ts} {
          color: ${J.colors.neutral800};
        }

        svg {
          > g, path {
            fill: ${J.colors.neutral500};
          }
        }
      `;case gs:case _l:return`
          border: 1px solid ${J.colors[`${So(ce)}600`]};
          background: ${J.colors[`${So(ce)}600`]};
          ${ts} {
            color: ${J.colors.neutral0};
          }
        `;default:return`
          svg {
            > g, path {
              fill: ${J.colors.buttonNeutral0};
            }
          }
        `}},Rl=(0,Ne.default)(Oo)`
  > svg {
    height: ${({theme:J})=>J.spaces[3]};
    width: ${({theme:J})=>J.spaces[3]};

    > g,
    path {
      fill: ${({theme:J})=>J.colors.neutral0};
    }
  }

  &[aria-disabled='true'] {
    pointer-events: none;
  }

  ${Yo}
`,Pa=r.forwardRef(({disabled:J,children:ce,background:qe="neutral0",...Nt},Ve)=>xr.jsx(Rl,{ref:Ve,"aria-disabled":J,as:"button",type:"button",disabled:J,padding:2,hasRadius:!0,background:qe,borderColor:"neutral200",cursor:"pointer",...Nt,children:ce}));Pa.displayName="BaseButton";const fi=(0,Ne.default)(Rl)`
  text-decoration: none;

  &[aria-disabled='true'] {
    ${Di}
    &:active {
      ${Di}
    }
  }

  &:hover {
    ${Il}
  }

  &:active {
    ${Na}
  }

  ${xl}
`,rl=r.forwardRef(({variant:J="default",startIcon:ce,endIcon:qe,disabled:Nt=!1,children:Ve,size:An="S",as:Zn=Po,...fn},zn)=>{const cr=An==="S"?2:"10px",Dr=4;return xr.jsxs(fi,{ref:zn,"aria-disabled":Nt,size:An,variant:J,background:"buttonPrimary600",borderColor:"buttonPrimary600",hasRadius:!0,gap:2,inline:!0,paddingBottom:cr,paddingLeft:Dr,paddingRight:Dr,paddingTop:cr,pointerEvents:Nt?"none":void 0,...fn,as:Zn||Po,children:[ce&&xr.jsx(Oo,{"aria-hidden":!0,children:ce}),xr.jsx(ts,{variant:An==="S"?"pi":void 0,fontWeight:"bold",textColor:"buttonNeutral0",children:Ve}),qe&&xr.jsx(Oo,{"aria-hidden":!0,children:qe})]})});rl.displayName="LinkButton";const Xn=J=>{const ce=r.useRef(J);return r.useEffect(()=>{ce.current=J}),r.useMemo(()=>(...qe)=>{var Nt;return(Nt=ce.current)==null?void 0:Nt.call(ce,...qe)},[])},Kr=r.createContext({toggleNotification:()=>{}}),Ln=({children:J})=>{const ce=r.useRef(0),[qe,Nt]=r.useState([]),Ve=r.useCallback(({type:fn,message:zn,link:cr,timeout:Dr,blockTransition:Hr,onClose:pi,title:xi})=>{Nt(wi=>[...wi,{id:ce.current++,type:fn,message:zn,link:cr,timeout:Dr,blockTransition:Hr,onClose:pi,title:xi}])},[]),An=r.useCallback(fn=>{Nt(zn=>zn.filter(cr=>cr.id!==fn))},[]),Zn=r.useMemo(()=>({toggleNotification:Ve}),[Ve]);return xr.jsxs(Kr.Provider,{value:Zn,children:[xr.jsx(s.k,{left:"50%",marginLeft:"-250px",position:"fixed",direction:"column",alignItems:"stretch",gap:2,top:`${46/16}rem`,width:`${500/16}rem`,zIndex:10,children:qe.map(fn=>xr.jsx(gr,{...fn,clearNotification:An},fn.id))}),J]})},gr=({clearNotification:J,blockTransition:ce=!1,id:qe,link:Nt,message:Ve={id:"notification.success.saved",defaultMessage:"Saved"},onClose:An,timeout:Zn=2500,title:fn="success",type:zn})=>{const{formatMessage:cr}=(0,ne.Z)(),Dr=Xn(An),Hr=r.useCallback(()=>{Dr(),J(qe)},[J,qe,Dr]);r.useEffect(()=>{if(!ce){const wi=setTimeout(()=>{Hr()},Zn);return()=>{clearTimeout(wi)}}},[ce,Hr,Zn]);let pi,xi;return zn==="info"?(pi="default",xi=cr({id:"notification.default.title",defaultMessage:"Information:"})):zn==="warning"?(pi="danger",xi=cr({id:"notification.warning.title",defaultMessage:"Warning:"})):zn==="softWarning"?(pi="warning",xi=cr({id:"notification.warning.title",defaultMessage:"Warning:"})):(pi="success",xi=cr({id:"notification.success.title",defaultMessage:"Success:"})),fn&&(xi=typeof fn=="string"?fn:cr({id:fn.id,defaultMessage:fn.defaultMessage??fn.id},fn.values)),xr.jsx(a.b,{action:Nt?xr.jsx(Os,{href:Nt.url,isExternal:!0,children:cr({id:typeof Nt.label=="object"?Nt.label.id:Nt.label,defaultMessage:typeof Nt.label=="object"?Nt.label.defaultMessage??Nt.label.id:Nt.label})}):void 0,onClose:Hr,closeLabel:cr({id:"global.close",defaultMessage:"Close"}),title:xi,variant:pi,children:cr({id:typeof Ve=="object"?Ve.id:Ve,defaultMessage:typeof Ve=="object"?Ve.defaultMessage??Ve.id:Ve},typeof Ve=="object"?Ve.values:void 0)})};/**
 * @preserve
 * @description Returns an object to interact with the notification
 * system. The callbacks are wrapped in `useCallback` for a stable
 * identity.
 *
 * @example
 * ```tsx
 * import { useNotification } from '@strapi/helper-plugin';
 *
 * const MyComponent = () => {
 *  const toggleNotification = useNotification();
 *
 *  return <button onClick={() => toggleNotification({ message: 'Hello world!' })}>Click me</button>;
 */const pr=()=>r.useContext(Kr).toggleNotification,Wr=r.createContext({}),Lt=Wr,me=()=>r.useContext(Wr);var Ue=Object.prototype;function He(J){var ce=J&&J.constructor,qe=typeof ce=="function"&&ce.prototype||Ue;return J===qe}var At=He;function Ut(J,ce){return function(qe){return J(ce(qe))}}var en=Ut,Yt=en,In=Yt(Object.keys,Object),$n=In,wr=At,Tr=$n,qr=Object.prototype,di=qr.hasOwnProperty;function ai(J){if(!wr(J))return Tr(J);var ce=[];for(var qe in Object(J))di.call(J,qe)&&qe!="constructor"&&ce.push(qe);return ce}var Ri=ai,Qi=typeof Xi=="object"&&Xi&&Xi.Object===Object&&Xi,so=Qi,Do=so,Ro=typeof self=="object"&&self&&self.Object===Object&&self,Rs=Do||Ro||Function("return this")(),Ns=Rs,Ls=Ns,Ba=Ls.Symbol,Da=Ba,go=Da,Wl=Object.prototype,na=Wl.hasOwnProperty,Eo=Wl.toString,Fs=go?go.toStringTag:void 0;function _a(J){var ce=na.call(J,Fs),qe=J[Fs];try{J[Fs]=void 0;var Nt=!0}catch{}var Ve=Eo.call(J);return Nt&&(ce?J[Fs]=qe:delete J[Fs]),Ve}var Ya=_a,Ss=Object.prototype,Zl=Ss.toString;function Us(J){return Zl.call(J)}var Ll=Us,nc=Da,Dc=Ya,xa=Ll,Kl="[object Null]",Ea="[object Undefined]",js=nc?nc.toStringTag:void 0;function jl(J){return J==null?J===void 0?Ea:Kl:js&&js in Object(J)?Dc(J):xa(J)}var Bl=jl;function il(J){var ce=typeof J;return J!=null&&(ce=="object"||ce=="function")}var ko=il;const fc=uo(ko);var pc=Bl,rc=ko,Ic="[object AsyncFunction]",su="[object Function]",Rc="[object GeneratorFunction]",El="[object Proxy]";function Nl(J){if(!rc(J))return!1;var ce=pc(J);return ce==su||ce==Rc||ce==Ic||ce==El}var ud=Nl,au=Ns,Lc=au["__core-js_shared__"],zu=Lc,mc=zu,ol=function(){var J=/[^.]+$/.exec(mc&&mc.keys&&mc.keys.IE_PROTO||"");return J?"Symbol(src)_1."+J:""}();function gc(J){return!!ol&&ol in J}var Fl=gc,jn=Function.prototype,Qa=jn.toString;function jc(J){if(J!=null){try{return Qa.call(J)}catch{}try{return J+""}catch{}}return""}var Fa=jc,Go=ud,Tc=Fl,Zc=ko,sl=Fa,$s=/[\\^$.*+?()[\]{}|]/g,xs=/^\[object .+?Constructor\]$/,cs=Function.prototype,hs=Object.prototype,Gl=cs.toString,As=hs.hasOwnProperty,fs=RegExp("^"+Gl.call(As).replace($s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $a(J){if(!Zc(J)||Tc(J))return!1;var ce=Go(J)?fs:xs;return ce.test(sl(J))}var al=$a;function Vs(J,ce){return J?.[ce]}var Hs=Vs,ka=al,kl=Hs;function la(J,ce){var qe=kl(J,ce);return ka(qe)?qe:void 0}var rs=la,ic=rs,Mu=Ns,Sd=ic(Mu,"DataView"),Bc=Sd,dd=rs,Ha=Ns,ll=dd(Ha,"Map"),Nc=ll,Va=rs,Ca=Ns,Ps=Va(Ca,"Promise"),Yl=Ps,Ql=rs,Pt=Ns,st=Ql(Pt,"Set"),nn=st,Un=rs,or=Ns,lr=Un(or,"WeakMap"),jr=lr,Br=Bc,Yr=Nc,Oi=Yl,Mi=nn,eo=jr,Ni=Bl,no=Fa,vo="[object Map]",Qo="[object Object]",No="[object Promise]",ps="[object Set]",ba="[object WeakMap]",Fc="[object DataView]",cl=no(Br),Kc=no(Yr),lu=no(Oi),Ia=no(Mi),Gc=no(eo),Jl=Ni;(Br&&Jl(new Br(new ArrayBuffer(1)))!=Fc||Yr&&Jl(new Yr)!=vo||Oi&&Jl(Oi.resolve())!=No||Mi&&Jl(new Mi)!=ps||eo&&Jl(new eo)!=ba)&&(Jl=function(J){var ce=Ni(J),qe=ce==Qo?J.constructor:void 0,Nt=qe?no(qe):"";if(Nt)switch(Nt){case cl:return Fc;case Kc:return vo;case lu:return No;case Ia:return ps;case Gc:return ba}return ce});var $l=Jl;function Ou(J){return J!=null&&typeof J=="object"}var oc=Ou,ul=Bl,Yc=oc,gl="[object Arguments]";function Ad(J){return Yc(J)&&ul(J)==gl}var Qc=Ad,cu=Qc,hd=oc,Uu=Object.prototype,uu=Uu.hasOwnProperty,sc=Uu.propertyIsEnumerable,Md=cu(function(){return arguments}())?cu:function(J){return hd(J)&&uu.call(J,"callee")&&!sc.call(J,"callee")},Od=Md,Wd=Array.isArray,Cl=Wd,Pd=9007199254740991;function fd(J){return typeof J=="number"&&J>-1&&J%1==0&&J<=Pd}var Pu=fd,fh=ud,Dh=Pu;function ph(J){return J!=null&&Dh(J.length)&&!fh(J)}var Zd=ph,Jc={exports:{}};function Xl(){return!1}var vc=Xl;Jc.exports,function(J,ce){var qe=Ns,Nt=vc,Ve=ce&&!ce.nodeType&&ce,An=Ve&&!0&&J&&!J.nodeType&&J,Zn=An&&An.exports===Ve,fn=Zn?qe.Buffer:void 0,zn=fn?fn.isBuffer:void 0,cr=zn||Nt;J.exports=cr}(Jc,Jc.exports);var Du=Jc.exports,Hu=Bl,Kd=Pu,Iu=oc,ac="[object Arguments]",Wu="[object Array]",ca="[object Boolean]",bc="[object Date]",Gd="[object Error]",du="[object Function]",Ru="[object Map]",Sc="[object Number]",Ta="[object Object]",hu="[object RegExp]",pd="[object Set]",md="[object String]",vs="[object WeakMap]",gd="[object ArrayBuffer]",yc="[object DataView]",ma="[object Float32Array]",oa="[object Float64Array]",Wa="[object Int8Array]",fu="[object Int16Array]",Tl="[object Int32Array]",pu="[object Uint8Array]",Xc="[object Uint8ClampedArray]",dl="[object Uint16Array]",wc="[object Uint32Array]",W={};W[ma]=W[oa]=W[Wa]=W[fu]=W[Tl]=W[pu]=W[Xc]=W[dl]=W[wc]=!0,W[ac]=W[Wu]=W[gd]=W[ca]=W[yc]=W[bc]=W[Gd]=W[du]=W[Ru]=W[Sc]=W[Ta]=W[hu]=W[pd]=W[md]=W[vs]=!1;function o(J){return Iu(J)&&Kd(J.length)&&!!W[Hu(J)]}var g=o;function P(J){return function(ce){return J(ce)}}var K=P,ie={exports:{}};ie.exports,function(J,ce){var qe=so,Nt=ce&&!ce.nodeType&&ce,Ve=Nt&&!0&&J&&!J.nodeType&&J,An=Ve&&Ve.exports===Nt,Zn=An&&qe.process,fn=function(){try{var zn=Ve&&Ve.require&&Ve.require("util").types;return zn||Zn&&Zn.binding&&Zn.binding("util")}catch{}}();J.exports=fn}(ie,ie.exports);var xe=ie.exports,jt=g,tn=K,xn=xe,Fn=xn&&xn.isTypedArray,mr=Fn?tn(Fn):jt,Pr=mr,ti=Ri,Ci=$l,Ji=Od,ho=Cl,is=Zd,Fo=Du,Ds=At,qo=Pr,$c="[object Map]",Za="[object Set]",Yd=Object.prototype,mu=Yd.hasOwnProperty;function sa(J){if(J==null)return!0;if(is(J)&&(ho(J)||typeof J=="string"||typeof J.splice=="function"||Fo(J)||qo(J)||Ji(J)))return!J.length;var ce=Ci(J);if(ce==$c||ce==Za)return!J.size;if(Ds(J))return!ti(J).length;for(var qe in J)if(mu.call(J,qe))return!1;return!0}var vl=sa;const Ih=uo(vl);function mh(J){return J==null}var Rh=mh;const Lu=uo(Rh),Zu="jwtToken",ef="userInfo",Qd="GUIDED_TOUR_CURRENT_STEP",Ra="GUIDED_TOUR_COMPLETED_STEPS",ql="GUIDED_TOUR_SKIPPED",gu="STRAPI_THEME",Jd="STRAPI_UPLOAD_MODAL_VIEW",Lh="STRAPI_UPLOAD_LIBRARY_VIEW",jh=JSON.parse,hl=JSON.stringify,za={clear(J){return localStorage.getItem(J)?localStorage.removeItem(J):sessionStorage.getItem(J)?sessionStorage.removeItem(J):null},clearAppStorage(){if(localStorage){const J=za.get("videos"),ce=za.get("onboarding"),qe=za.get("STRAPI_UPDATE_NOTIF"),Nt=localStorage.getItem("strapi-admin-language"),Ve=za.get(Qd),An=za.get(Ra),Zn=za.get(ql),fn=za.get(gu),zn=za.get(Lh),cr=za.get(Jd);localStorage.clear(),localStorage.setItem("videos",hl(J)),localStorage.setItem(Qd,hl(Ve)),localStorage.setItem(Ra,hl(An)),localStorage.setItem(ql,hl(Zn)),localStorage.setItem("STRAPI_UPDATE_NOTIF",hl(qe)),ce&&localStorage.setItem("onboarding",hl(ce)),Nt&&localStorage.setItem("strapi-admin-language",Nt),fn&&localStorage.setItem(gu,fn),Lu(zn)||localStorage.setItem(Lh,hl(zn)),Lu(cr)||localStorage.setItem(Jd,hl(cr))}sessionStorage.clear()},get(J){const ce=localStorage.getItem(J);if(ce)try{return jh(ce)}catch{return ce}const qe=sessionStorage.getItem(J);if(qe)try{return jh(qe)}catch{return qe}return null},set(J,ce,qe){return Ih(J)?null:qe?localStorage.setItem(ce,hl(J)):sessionStorage.setItem(ce,hl(J))},clearToken(J=Zu){za.clear(J)},clearUserInfo(J=ef){return za.clear(J)},getToken(J=Zu){return za.get(J)},getUserInfo(J=ef){return za.get(J)},setToken(J="",ce=!1,qe=Zu){za.set(J,qe,ce)},setUserInfo(J,ce=!1,qe=ef){za.set(J,qe,ce)},updateToken(J=""){const ce=Boolean(localStorage.getItem(Zu));za.setToken(J,ce)}},ju=(()=>{const J=ye.default.create({headers:{Accept:"application/json","Content-Type":"application/json"},paramsSerializer:ce=>Xe.stringify(ce,{encode:!1})});return J.interceptors.request.use(async ce=>(ce.headers.Authorization=`Bearer ${za.getToken()}`,ce),ce=>Promise.reject(ce)),J.interceptors.response.use(ce=>ce,ce=>{var qe;throw((qe=ce?.response)==null?void 0:qe.status)===401&&(za.clearAppStorage(),window.location.reload()),ce}),J})(),Xd=J=>J.charAt(0)!=="/"?`/${J}`:J,gh=J=>new RegExp("^(?:[a-z+]+:)?//","i").test(J),Dd=J=>gh(J)?J:Xd(J),Id=(J={})=>(ju.defaults.baseURL=window.strapi.backendURL,{get:(ce,qe)=>ju.get(Dd(ce),{...J,...qe}),put:(ce,qe,Nt)=>ju.put(Dd(ce),qe,{...J,...Nt}),post:(ce,qe,Nt)=>ju.post(Dd(ce),qe,{...J,...Nt}),del:(ce,qe)=>ju.delete(Dd(ce),{...J,...qe})}),Bh=(J,ce)=>J.reduce((qe,Nt)=>(ce.find(An=>An.action===Nt.action&&An.subject===Nt.subject)&&qe.push(Nt),qe),[]),yo=J=>J.map(ce=>{if(!ce.action)return{};const qe={action:ce.action};return ce.subject&&(qe.subject=ce.subject),qe}),lc=J=>J.length>0&&J.every(ce=>Array.isArray(ce.conditions)&&ce.conditions.length>0),Sl=async(J,ce,qe)=>{if(!ce||!ce.length)return!0;const Nt=Bh(J,ce);if(lc(Nt)){let Ve=!1;try{const{data:{data:An}}=await Id().post("/admin/permissions/check",{permissions:yo(Nt)},{signal:qe});Ve=An.every(Zn=>Zn===!0)}catch(An){console.error("Error while checking permissions",An)}return Ve}return Nt.length>0},Vc=(0,Ne.default)(s.k)`
  height: 100vh;
`,vh=({children:J="Loading content.","data-testid":ce="loader"})=>xr.jsx(Vc,{justifyContent:"space-around","data-testid":ce,children:xr.jsx(c.a,{children:J})}),tf=({permissions:J=[],children:ce})=>{const qe=new AbortController,{signal:Nt}=qe,{allPermissions:Ve}=me(),An=pr(),[Zn,fn]=r.useState({isLoading:!0,canAccess:!1}),zn=r.useRef(!0);return r.useEffect(()=>((async()=>{try{fn({isLoading:!0,canAccess:!1});const Dr=await Sl(Ve||[],J,Nt);zn.current&&fn({isLoading:!1,canAccess:Dr})}catch(Dr){zn.current&&(console.error(Dr),An?.({type:"warning",message:{id:"notification.error"}}),fn({isLoading:!1,canAccess:!1}))}})(),()=>{qe.abort()}),[J]),r.useEffect(()=>()=>{zn.current=!1},[]),Zn.isLoading?xr.jsx(vh,{}):Zn.canAccess?ce:xr.jsx(ge.l_,{to:"/"})},zc=({permissions:J=[],children:ce})=>{const{allPermissions:qe}=me(),Nt=pr(),[Ve,An]=r.useState({isLoading:!0,canAccess:!1}),Zn=r.useRef(!0),fn=new AbortController,{signal:zn}=fn;return r.useEffect(()=>((async()=>{try{An({isLoading:!0,canAccess:!1});const Dr=await Sl(qe||[],J,zn);Zn.current&&An({isLoading:!1,canAccess:Dr})}catch(Dr){Zn.current&&(console.error(Dr),Nt?.({type:"warning",message:{id:"notification.error"}}),An({isLoading:!1,canAccess:!1}))}})(),()=>{fn.abort()}),[J]),r.useEffect(()=>()=>{Zn.current=!1},[]),Ve.isLoading||!Ve.canAccess?null:ce},Rd=({children:J,iconRightButton:ce,isConfirmButtonLoading:qe=!1,isOpen:Nt,onConfirm:Ve,onToggleDialog:An,leftButtonText:Zn={id:"app.components.Button.cancel",defaultMessage:"Cancel"},rightButtonText:fn={id:"app.components.Button.confirm",defaultMessage:"Confirm"},title:zn={id:"app.components.ConfirmDialog.title",defaultMessage:"Confirmation"},variantRightButton:cr="danger-light",...Dr})=>{const{formatMessage:Hr}=(0,ne.Z)();return xr.jsxs(h.V,{onClose:An,title:Hr({id:zn.id,defaultMessage:zn.defaultMessage}),isOpen:Nt,id:"confirmation",...Dr,children:[xr.jsx(p.x,{id:"confirm-description",children:J}),xr.jsx(Ld,{iconRightButton:ce,isConfirmButtonLoading:qe,leftButtonText:Zn,onConfirm:Ve,onToggleDialog:An,rightButtonText:fn,variantRightButton:cr})]})},Nh=({iconBody:J=xr.jsx(je.Z,{}),children:ce})=>xr.jsx(d.a,{icon:J,children:xr.jsx(s.k,{direction:"column",alignItems:"stretch",gap:2,children:xr.jsx(s.k,{justifyContent:"center",children:ce})})}),Ld=({iconRightButton:J=xr.jsx(et.Z,{}),isConfirmButtonLoading:ce,leftButtonText:qe,onConfirm:Nt,onToggleDialog:Ve,rightButtonText:An,variantRightButton:Zn})=>{const{formatMessage:fn}=(0,ne.Z)();return xr.jsx(k.c,{startAction:xr.jsx(M.z,{onClick:Ve,variant:"tertiary",children:fn({id:qe.id,defaultMessage:qe.defaultMessage})}),endAction:xr.jsx(M.z,{onClick:Nt,variant:Zn,startIcon:J,id:"confirm-delete",loading:ce,children:fn({id:An.id,defaultMessage:An.defaultMessage})})})},cc=({bodyText:J={id:"components.popUpWarning.message",defaultMessage:"Are you sure you want to delete this?"},...ce})=>{const{formatMessage:qe}=(0,ne.Z)();return xr.jsx(Rd,{...ce,children:xr.jsx(Nh,{children:xr.jsx(C.Z,{variant:"omega",children:qe({id:J.id,defaultMessage:J.defaultMessage})})})})};cc.Root=Rd,cc.Body=Nh;const bh=(0,Ne.default)(s.k)`
  margin-right: ${({theme:J})=>J.spaces[6]};

  svg {
    width: ${32/16}rem;
    height: ${32/16}rem;
  }
`,Fh=(0,Ne.default)(C.Z)`
  word-break: break-all;
`,qc=({title:J,subtitle:ce,icon:qe,iconBackground:Nt,endAction:Ve,titleEllipsis:An=!1})=>(J&&J.length>70&&An&&(J=`${J.substring(0,70)}...`),xr.jsxs(s.k,{shadow:"tableShadow",hasRadius:!0,padding:6,background:"neutral0",children:[xr.jsx(bh,{background:Nt,hasRadius:!0,padding:3,children:qe}),xr.jsxs(s.k,{direction:"column",alignItems:"stretch",gap:Ve?0:1,children:[xr.jsxs(s.k,{children:[xr.jsx(Fh,{fontWeight:"semiBold",variant:"pi",children:J}),Ve]}),xr.jsx(C.Z,{textColor:"neutral600",children:ce})]})]})),vd="[@strapi/helper-plugin]:",bd=J=>{const ce=J;let qe=!1;if(typeof ce!="function")throw new TypeError(`${vd} once requires a function parameter`);return(...Nt)=>{qe||(ce(...Nt),qe=!0)}},Zo=bd(console.warn),bu=J=>(Zo(`
      Deprecation warning: Usage of "DateTimePicker" component from the helper-plugin is deprecated and will be removed in the next major release. Instead, use the DateTimePicker from the Design System: import { DateTimePicker } from '@strapi/design-system';"
    `),xr.jsx(DateTimePicker,{...J})),qd=r.createContext({}),Ku=({children:J,autoReload:ce,communityEdition:qe,currentEnvironment:Nt,dependencies:Ve,latestStrapiReleaseTag:An,nodeVersion:Zn,projectId:fn,setUserDisplayName:zn,shouldUpdateStrapi:cr,strapiVersion:Dr,useYarn:Hr,userDisplayName:pi,userId:xi})=>{const wi=r.useMemo(()=>({autoReload:ce,communityEdition:qe,currentEnvironment:Nt,dependencies:Ve,latestStrapiReleaseTag:An,nodeVersion:Zn,projectId:fn,setUserDisplayName:zn,shouldUpdateStrapi:cr,strapiVersion:Dr,useYarn:Hr,userDisplayName:pi,userId:xi}),[ce,qe,Nt,Ve,An,Zn,fn,zn,cr,Dr,Hr,pi,xi]);return xr.jsx(qd.Provider,{value:wi,children:J})},nf=()=>r.useContext(qd);/**
 * @preserve
 * @deprecated use useAppInfo instead
 */const pf=null;/**
 * @preserve
 * @deprecated use AppInfoProvider instead
 */const rf=null;/**
 * @preserve
 * @deprecated use AppInfoContext instead
 */const Ua=null,xt=r.createContext({uuid:!1}),Dn=({value:J={uuid:!1},children:ce})=>{const qe=r.useMemo(()=>J,[J]);return xr.jsx(xt.Provider,{value:qe,children:ce})},er=()=>{const{uuid:J,telemetryProperties:ce,deviceId:qe}=r.useContext(xt),Nt=nf(),Ve=Nt?.userId;return{trackUsage:r.useCallback(async(Zn,fn)=>{try{if(J&&!window.strapi.telemetryDisabled)return await ye.default.post("https://analytics.strapi.io/api/v2/track",{event:Zn,userId:Ve,deviceId:qe,eventProperties:{...fn},userProperties:{},groupProperties:{...ce,projectId:J,projectType:window.strapi.projectType}},{headers:{"Content-Type":"application/json","X-Strapi-Event":Zn}})}catch{}return null},[qe,ce,Ve,J])}},Ar=J=>{const{search:ce}=(0,ge.TH)(),{push:qe}=(0,ge.k6)(),Nt=(0,r.useMemo)(()=>{const An=ce.substring(1);return ce?(0,Xe.parse)(An):J},[ce,J]),Ve=(0,r.useCallback)((An,Zn="push")=>{let fn={...Nt};Zn==="remove"?Object.keys(An).forEach(zn=>{Object.prototype.hasOwnProperty.call(fn,zn)&&delete fn[zn]}):fn={...Nt,...An},qe({search:(0,Xe.stringify)(fn,{encode:!1})})},[qe,Nt]);return[{query:Nt,rawQuery:ce},Ve]},Rr={isUp:!0},hi=(0,Ne.default)(Kt.Z).withConfig({shouldForwardProp:(J,ce)=>!Rr[J]&&ce(J)})`
  transform: ${({isUp:J=!1})=>`rotate(${J?"180":"0"}deg)`};
`,Ti={document:kn.Z,media:Tn.Z,permissions:ht.Z},ao=({action:J,content:ce={id:"app.components.EmptyStateLayout.content-document",defaultMessage:"No content found"},hasRadius:qe=!0,icon:Nt="document",shadow:Ve="tableShadow"})=>{const An=Ti[Nt],{formatMessage:Zn}=(0,ne.Z)();return xr.jsx(n.x,{action:J,content:Zn({id:ce.id,defaultMessage:ce.defaultMessage},ce.values),hasRadius:qe,icon:xr.jsx(An,{width:"10rem"}),shadow:Ve})},$o=({colSpan:J,isLoading:ce=!1,...qe})=>ce?xr.jsx(w.p,{children:xr.jsx(I.Tr,{children:xr.jsx(F.Td,{colSpan:J,children:xr.jsx(s.k,{justifyContent:"center",children:xr.jsx(p.x,{padding:11,background:"neutral0",children:xr.jsx(c.a,{children:"Loading content..."})})})})})}):xr.jsx(w.p,{children:xr.jsx(I.Tr,{children:xr.jsx(F.Td,{colSpan:J,children:xr.jsx(ao,{...qe,hasRadius:!1})})})}),wo=({action:J,children:ce,contentType:qe,components:Nt,footer:Ve,headers:An=[],isLoading:Zn=!1,onConfirmDeleteAll:fn,onConfirmDelete:zn,rows:cr=[],withBulkActions:Dr=!1,withMainAction:Hr=!1,renderBulkActionsBar:pi,...xi})=>{const[wi,Wi]=r.useState([]),[Ai,_o]=r.useState(!1),[Ko,Ks]=r.useState(!1),[xo,ms]=r.useState(!1),[{query:zs}]=Ar(),{formatMessage:Ys}=(0,ne.Z)(),{trackUsage:ea}=er(),ha=cr.length+1,tc=An.length+(Dr?1:0)+(Hr?1:0),zd=zs?.filters!==void 0,nl=wi.length===cr.length&&cr.length>0,ua=zd?{id:"content-manager.components.TableEmpty.withFilters",defaultMessage:"There are no {contentType} with the applied filters...",values:{contentType:qe}}:void 0,Pl=async()=>{try{ms(!0),await fn?.(wi),Mc(),Wi([]),ms(!1)}catch{ms(!1),Mc()}},Bo=async()=>{try{ms(!0),await zn?.(wi[0]),Tu(),ms(!1)}catch{ms(!1),Tu()}},wa=()=>{Wi(nl?[]:cr.map(Dl=>Dl.id))},Mc=()=>{Ai||ea("willBulkDeleteEntries"),_o(Dl=>!Dl)},Tu=()=>{Ko&&Wi([]),Ks(Dl=>!Dl)},Ud=Dl=>{Wi([Dl]),Tu()},qh=({name:Dl,value:ff})=>{Wi(hh=>ff?hh.concat(Dl):hh.filter(Hd=>Hd!==Dl))},Df=()=>{Wi([])},ru=Nt?.ConfirmDialogDeleteAll?Nt.ConfirmDialogDeleteAll:cc,Su=Nt?.ConfirmDialogDelete?Nt.ConfirmDialogDelete:cc;return xr.jsxs(xr.Fragment,{children:[wi.length>0&&xr.jsxs(s.k,{gap:3,children:[xr.jsx(C.Z,{variant:"omega",textColor:"neutral500",children:Ys({id:"content-manager.components.TableDelete.label",defaultMessage:"{number, plural, one {# entry} other {# entries}} selected"},{number:wi.length})}),pi?pi({selectedEntries:wi,clearSelectedEntries:Df}):xr.jsx(M.z,{onClick:Mc,startIcon:xr.jsx(et.Z,{}),size:"L",variant:"danger-light",children:Ys({id:"global.delete",defaultMessage:"Delete"})})]}),xr.jsxs(U.i,{colCount:tc,rowCount:ha,footer:Ve,children:[xr.jsx(Js,{areAllEntriesSelected:nl,entriesToDelete:wi,headers:An,onSelectAll:wa,withMainAction:Hr,withBulkActions:Dr}),!cr.length||Zn?xr.jsx($o,{colSpan:tc,content:ua,isLoading:Zn,action:J}):r.Children.toArray(ce).map(Dl=>r.cloneElement(Dl,{entriesToDelete:wi,onClickDelete:Ud,onSelectRow:qh,headers:An,rows:cr,withBulkActions:Dr,withMainAction:Hr,...xi}))]}),xr.jsx(ru,{isConfirmButtonLoading:xo,onConfirm:Pl,onToggleDialog:Mc,isOpen:Ai}),xr.jsx(Su,{isConfirmButtonLoading:xo,onConfirm:Bo,onToggleDialog:Tu,isOpen:Ko})]})},Js=({areAllEntriesSelected:J=!1,entriesToDelete:ce=[],headers:qe=[],onSelectAll:Nt,withMainAction:Ve,withBulkActions:An})=>{const{formatMessage:Zn}=(0,ne.Z)(),[{query:fn},zn]=Ar(),cr=typeof fn?.sort=="string"?fn.sort:"",[Dr,Hr]=cr.split(":"),pi=!J&&ce.length>0;return xr.jsx(B.h,{children:xr.jsxs(I.Tr,{children:[Ve&&xr.jsx(F.Th,{children:xr.jsx(N.C,{"aria-label":Zn({id:"global.select-all-entries",defaultMessage:"Select all entries"}),checked:J,indeterminate:pi,onChange:Nt})}),qe.map(({fieldSchema:xi,name:wi,metadatas:{sortable:Wi,label:Ai,mainField:_o}})=>{let Ko=Dr===wi;const Ks=Hr==="ASC";xi?.type==="relation"&&_o&&(Ko=Dr===`${wi.split(".")[0]}[${_o.name}]`);const xo=Zn({id:"components.TableHeader.sort",defaultMessage:"Sort on {label}"},{label:Ai}),ms=(zs=!0)=>{if(Wi&&zs){let Ys=wi;xi?.type==="relation"&&_o&&(Ys=`${wi.split(".")[0]}[${_o.name}]`),zn({sort:`${Ys}:${Ko&&Hr==="ASC"?"DESC":"ASC"}`})}};return xr.jsx(F.Th,{action:Ko&&xr.jsx(D.h,{label:xo,onClick:()=>ms(),icon:Ko&&xr.jsx(hi,{isUp:Ks}),noBorder:!0}),children:xr.jsx(x.u,{label:Wi?xo:Ai,children:xr.jsx(C.Z,{as:!Ko&&Wi?"button":"span",textColor:"neutral600",onClick:()=>ms(!Ko),variant:"sigma",children:Ai})})},wi)}),An&&xr.jsx(F.Th,{children:xr.jsx(T.T,{children:Zn({id:"global.actions",defaultMessage:"Actions"})})})]})})},Bs=r.createContext(null),mi=()=>{const J=r.useContext(Bs);if(!J)throw new Error("useTableContext must be used within a TableProvider");return J},$h={Content:({children:J,footer:ce})=>{const{rowCount:qe,colCount:Nt}=mi();return xr.jsx(U.i,{rowCount:qe,colCount:Nt,footer:ce,children:J})},Root:({children:J,defaultSelectedEntries:ce=[],rows:qe=[],colCount:Nt=0,isLoading:Ve,isFetching:An})=>{const[Zn,fn]=r.useState(ce),zn=qe.length+1,cr=r.useCallback(({name:Hr,value:pi})=>{fn(xi=>pi?xi.concat(Hr):xi.filter(wi=>wi!==Hr))},[]),Dr=r.useMemo(()=>({selectedEntries:Zn,setSelectedEntries:fn,onSelectRow:cr,rows:qe,isLoading:Ve,isFetching:An,colCount:Nt,rowCount:zn}),[cr,Zn,fn,qe,Ve,An,Nt,zn]);return xr.jsx(Bs.Provider,{value:Dr,children:J})},Body:({children:J})=>{const{rows:ce,isLoading:qe}=mi();return qe||ce.length===0?null:xr.jsx(w.p,{children:J})},ActionBar:({children:J})=>{const{formatMessage:ce}=(0,ne.Z)(),{selectedEntries:qe}=mi();return qe.length===0?null:xr.jsxs(s.k,{gap:2,children:[xr.jsx(C.Z,{variant:"omega",textColor:"neutral500",children:ce({id:"content-manager.components.TableDelete.label",defaultMessage:"{number, plural, one {# entry} other {# entries}} selected"},{number:qe.length})}),J]})},Head:({children:J})=>xr.jsx(B.h,{children:xr.jsx(I.Tr,{children:J})}),HeaderCell:({fieldSchemaType:J,name:ce,relationFieldName:qe,isSortable:Nt,label:Ve})=>{const[{query:An},Zn]=Ar(),fn=typeof An?.sort=="string"?An.sort:"",[zn,cr]=fn.split(":"),{formatMessage:Dr}=(0,ne.Z)();let Hr=zn===ce;const pi=cr==="ASC";J==="relation"&&qe&&(Hr=zn===`${ce.split(".")[0]}[${qe}]`);const xi=Dr({id:"components.TableHeader.sort",defaultMessage:"Sort on {label}"},{label:Ve}),wi=(Wi=!0)=>{if(Nt&&Wi){let Ai=ce;J==="relation"&&qe&&(Ai=`${ce.split(".")[0]}[${qe}]`),Zn({sort:`${Ai}:${Hr&&cr==="ASC"?"DESC":"ASC"}`})}};return xr.jsx(F.Th,{action:Hr&&Nt&&xr.jsx(D.h,{label:xi,onClick:()=>wi(!0),icon:xr.jsx(hi,{isUp:pi}),noBorder:!0}),children:xr.jsx(x.u,{label:Nt?xi:Ve,children:xr.jsx(C.Z,{textColor:"neutral600",as:!Hr&&Nt?"button":"span",onClick:()=>wi(),variant:"sigma",children:Ve})})},ce)},HeaderHiddenActionsCell:()=>{const{formatMessage:J}=(0,ne.Z)();return xr.jsx(F.Th,{children:xr.jsx(T.T,{children:J({id:"global.actions",defaultMessage:"Actions"})})})},HeaderCheckboxCell:()=>{const{selectedEntries:J,setSelectedEntries:ce,rows:qe}=mi(),{formatMessage:Nt}=(0,ne.Z)(),Ve=J.length===qe.length&&qe.length>0,An=!Ve&&J.length>0,Zn=()=>{ce(Ve?[]:qe.map(fn=>fn.id))};return qe.length===0?null:xr.jsx(F.Th,{children:xr.jsx(N.C,{"aria-label":Nt({id:"global.select-all-entries",defaultMessage:"Select all entries"}),checked:Ve,indeterminate:An,onChange:Zn})})},LoadingBody:()=>{const{isLoading:J,colCount:ce}=mi();return J?xr.jsx(w.p,{children:xr.jsx(I.Tr,{children:xr.jsx(F.Td,{colSpan:ce,children:xr.jsx(s.k,{justifyContent:"center",children:xr.jsx(p.x,{padding:11,background:"neutral0",children:xr.jsx(c.a,{children:"Loading content"})})})})})}):null},EmptyBody:({contentType:J,...ce})=>{const{rows:qe,colCount:Nt,isLoading:Ve}=mi(),[{query:An}]=Ar(),fn=An?.filters!==void 0?{id:"content-manager.components.TableEmpty.withFilters",defaultMessage:"There are no {contentType} with the applied filters...",values:{contentType:J}}:void 0;return qe?.length>0||Ve?null:xr.jsx(w.p,{children:xr.jsx(I.Tr,{children:xr.jsx(F.Td,{colSpan:Nt,children:xr.jsx(ao,{...ce,content:fn,hasRadius:!1,shadow:void 0})})})})},BulkDeleteButton:({onConfirmDeleteAll:J})=>{const{selectedEntries:ce,setSelectedEntries:qe}=mi(),{formatMessage:Nt}=(0,ne.Z)(),[Ve,An]=r.useState(!1),[Zn,fn]=r.useState(!1),zn=async()=>{try{fn(!0),await J(ce),fn(!1),cr(),qe([])}catch{fn(!1),cr()}},cr=()=>{An(Dr=>!Dr)};return xr.jsxs(xr.Fragment,{children:[xr.jsx(M.z,{onClick:cr,startIcon:xr.jsx(et.Z,{}),size:"L",variant:"danger-light",children:Nt({id:"global.delete",defaultMessage:"Delete"})}),xr.jsx(cc,{isConfirmButtonLoading:Zn,onConfirm:zn,onToggleDialog:cr,isOpen:Ve})]})}},fl=({filtersSchema:J=[]})=>{var ce,qe,Nt,Ve;const[{query:An},Zn]=Ar(),fn=zn=>{var cr;const Dr=(((cr=An?.filters)==null?void 0:cr.$and)||[]).filter(Hr=>{var pi;const xi=Object.keys(zn)[0],wi=Object.keys(zn[xi])[0],Wi=zn[xi][wi];return((pi=Hr[xi])==null?void 0:pi[wi])!==Wi});Zn({filters:{$and:Dr},page:1})};return(qe=(ce=An?.filters)==null?void 0:ce.$and)!=null&&qe.length?xr.jsx(xr.Fragment,{children:(Ve=(Nt=An?.filters)==null?void 0:Nt.$and)==null?void 0:Ve.map((zn,cr)=>{var Dr,Hr;const pi=Object.keys(zn)[0],xi=J.find(({name:wi})=>wi===pi);if(!xi)return null;if(xi.fieldSchema.type==="relation"){const wi=(Hr=(Dr=xi?.fieldSchema)==null?void 0:Dr.mainField)==null?void 0:Hr.name,Wi=zn[pi][wi];if(typeof Wi=="object"&&Wi!==null){const Ai=Object.keys(Wi)[0],_o=Wi[Ai]??"";return xr.jsx(Uc,{attribute:xi,filter:zn,onClick:fn,operator:Ai,value:_o},`${pi}-${cr}`)}return null}else{const wi=zn[pi],Wi=Object.keys(wi)[0],Ai=wi[Wi];return typeof Ai=="string"||Ai===null?xr.jsx(Uc,{attribute:xi,filter:zn,onClick:fn,operator:Wi,value:Ai??""},`${pi}-${cr}`):null}})}):null},Uc=({attribute:J,filter:ce,onClick:qe,operator:Nt,value:Ve})=>{var An,Zn;const{formatMessage:fn,formatDate:zn,formatTime:cr,formatNumber:Dr}=(0,ne.Z)(),Hr=()=>{qe(ce)},{fieldSchema:pi}=J,xi=pi.type==="relation"?(Zn=(An=pi?.mainField)==null?void 0:An.schema)==null?void 0:Zn.type:pi.type;let wi=Ve;if(xi==="date"&&(wi=zn(Ve,{dateStyle:"full"})),xi==="datetime"&&(wi=zn(Ve,{dateStyle:"full",timeStyle:"short"})),xi==="time"){const[Ai,_o]=Ve.split(":"),Ko=new Date;Ko.setHours(Number(Ai)),Ko.setMinutes(Number(_o)),wi=cr(Ko,{hour:"numeric",minute:"numeric"})}if(["float","integer","biginteger","decimal"].includes(xi)&&(wi=Dr(Number(Ve))),J.metadatas.customInput&&J.metadatas.options){const Ai=J.metadatas.options.find(_o=>_o.customValue===Ve);wi=Ai?.label||Ve}const Wi=`${J.metadatas.label||J.name} ${fn({id:`components.FilterOptions.FILTER_TYPES.${Nt}`,defaultMessage:Nt})} ${Nt!=="$null"&&Nt!=="$notNull"?wi:""}`;return xr.jsx(p.x,{padding:1,children:xr.jsx(u.V,{onClick:Hr,icon:xr.jsx(ot.Z,{}),children:Wi})})};function Ka(J){return Ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ce){return typeof ce}:function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},Ka(J)}function Gu(J,ce){if(ce.length<J)throw new TypeError(J+" argument"+(J>1?"s":"")+" required, but only "+ce.length+" present")}function Vh(J){Gu(1,arguments);var ce=Object.prototype.toString.call(J);return J instanceof Date||Ka(J)==="object"&&ce==="[object Date]"?new Date(J.getTime()):typeof J=="number"||ce==="[object Number]"?new Date(J):((typeof J=="string"||ce==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Al(J,ce){for(var qe=J<0?"-":"",Nt=Math.abs(J).toString();Nt.length<ce;)Nt="0"+Nt;return qe+Nt}function jd(J,ce){var qe,Nt;Gu(1,arguments);var Ve=Vh(J);if(isNaN(Ve.getTime()))throw new RangeError("Invalid time value");var An=String((qe=ce?.format)!==null&&qe!==void 0?qe:"extended"),Zn=String((Nt=ce?.representation)!==null&&Nt!==void 0?Nt:"complete");if(An!=="extended"&&An!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(Zn!=="date"&&Zn!=="time"&&Zn!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var fn="",zn="",cr=An==="extended"?"-":"",Dr=An==="extended"?":":"";if(Zn!=="time"){var Hr=Al(Ve.getDate(),2),pi=Al(Ve.getMonth()+1,2),xi=Al(Ve.getFullYear(),4);fn="".concat(xi).concat(cr).concat(pi).concat(cr).concat(Hr)}if(Zn!=="date"){var wi=Ve.getTimezoneOffset();if(wi!==0){var Wi=Math.abs(wi),Ai=Al(Math.floor(Wi/60),2),_o=Al(Wi%60,2),Ko=wi<0?"+":"-";zn="".concat(Ko).concat(Ai,":").concat(_o)}else zn="Z";var Ks=Al(Ve.getHours(),2),xo=Al(Ve.getMinutes(),2),ms=Al(Ve.getSeconds(),2),zs=fn===""?"":"T",Ys=[Ks,xo,ms].join(Dr);fn="".concat(fn).concat(zs).concat(Ys).concat(zn)}return fn}const yu=({displayedFilters:J,isVisible:ce,onBlur:qe,onToggle:Nt,source:Ve})=>{var An;const[{query:Zn},fn]=Ar(),{formatMessage:zn}=(0,ne.Z)(),{trackUsage:cr}=er(),Dr={fieldSchema:{type:"string"}},[Hr,pi]=r.useState({name:((An=J[0])==null?void 0:An.name)||"",filter:Bd((J[0]||Dr).fieldSchema)[0].value,value:""});if(!ce||J.length===0)return null;const xi=xo=>{const ms=J.find(tc=>tc.name===xo);if(!ms)return;const{fieldSchema:{type:zs,options:Ys}}=ms;let ea="";zs==="boolean"&&(ea="true"),zs==="enumeration"&&Array.isArray(Ys)&&(ea=Ys[0]);const ha=Bd(ms.fieldSchema)[0].value;pi({name:xo,filter:ha,value:ea})},wi=xo=>{var ms,zs;xo.preventDefault();const Ys=((ms=Zn?.filters)==null?void 0:ms.$and.find(ea=>{var ha;return ea[Hr.name]&&((ha=ea[Hr.name])==null?void 0:ha[Hr.filter])===Hr.value}))!==void 0;if(Hr.value&&!Ys){const ea=J.find(({name:ha})=>ha===Hr.name);if(ea){ea.trackedEvent&&cr(ea.trackedEvent.name,ea.trackedEvent.properties);let ha;ea.fieldSchema.type==="relation"?ha={[Hr.name]:{[ea.fieldSchema.mainField.name]:{[Hr.filter]:Hr.value}}}:ha={[Hr.name]:{[Hr.filter]:Hr.value}};const tc=[...((zs=Zn?.filters)==null?void 0:zs.$and)||[],ha];fn({filters:{$and:tc},page:1})}}Nt()},Wi=xo=>{if(xo==="$null"||xo==="$notNull"){pi(ms=>({...ms,value:"true",filter:xo}));return}pi(ms=>({...ms,filter:xo,value:""}))},Ai=J.find(xo=>xo.name===Hr.name),_o=Hr.filter,Ko=Ai.metadatas.customOperators||Bd(Ai.fieldSchema),Ks=Ai.metadatas.customInput||Yu;return xr.jsx(b.J2,{source:Ve,onDismiss:Nt,padding:3,spacing:4,onBlur:qe,children:xr.jsx("form",{onSubmit:wi,children:xr.jsxs(s.k,{direction:"column",alignItems:"stretch",gap:1,style:{minWidth:184},children:[xr.jsxs(wu,{direction:"column",alignItems:"stretch",gap:1,children:[xr.jsx(E.q4,{label:zn({id:"app.utils.select-field",defaultMessage:"Select field"}),name:"name",size:"M",onChange:xi,value:Hr.name,children:J.map(xo=>xr.jsx(E.ag,{value:xo.name,children:xo.metadatas.label},xo.name))}),xr.jsx(E.q4,{label:zn({id:"app.utils.select-filter",defaultMessage:"Select filter"}),name:"filter",size:"M",value:Hr.filter,onChange:xo=>Wi(xo),children:Ko.map(xo=>xr.jsx(E.ag,{value:xo.value,children:zn(xo.intlLabel)},xo.value))})]}),_o!=="$null"&&_o!=="$notNull"&&xr.jsx(p.x,{children:xr.jsx(Ks,{...Ai.metadatas,...Ai.fieldSchema,value:Hr.value,onChange:xo=>pi(ms=>({...ms,value:xo}))})}),xr.jsx(p.x,{children:xr.jsx(M.z,{size:"L",variant:"secondary",startIcon:xr.jsx(Je.Z,{}),type:"submit",fullWidth:!0,children:zn({id:"app.utils.add-filter",defaultMessage:"Add filter"})})})]})})})},wu=(0,Ne.default)(s.k)`
  /* Hide the label, every input needs a label. */
  label {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
`,Yu=({label:J="",onChange:ce,options:qe=[],type:Nt,value:Ve=""})=>{const{formatMessage:An}=(0,ne.Z)();return Nt==="boolean"?xr.jsxs(E.q4,{"aria-label":J,onChange:Zn=>ce(String(Zn)),value:Ve,children:[xr.jsx(E.ag,{value:"true",children:"true"}),xr.jsx(E.ag,{value:"false",children:"false"})]}):Nt==="date"?xr.jsx(A.M,{clearLabel:An({id:"clearLabel",defaultMessage:"Clear"}),ariaLabel:J,name:"datepicker",onChange:Zn=>ce(Zn?jd(Zn,{representation:"date"}):null),onClear:()=>ce(null),selectedDate:Ve?new Date(Ve):void 0}):Nt==="datetime"?xr.jsx(R.x,{clearLabel:An({id:"clearLabel",defaultMessage:"Clear"}),ariaLabel:J,name:"datetimepicker",onChange:Zn=>ce(Zn?Zn.toISOString():null),onClear:()=>ce(null),value:Ve?new Date(Ve):void 0}):Nt==="enumeration"?xr.jsx(E.q4,{"aria-label":J,onChange:ce,value:Ve,children:qe.map(Zn=>xr.jsx(E.ag,{value:Zn,children:Zn},Zn))}):["float","integer","biginteger","decimal"].includes(Nt)?xr.jsx(H.Y,{"aria-label":J,name:"filter-value",onValueChange:Zn=>ce(Zn?String(Zn):null),value:Ve||0}):Nt==="time"?xr.jsx(z.j,{"aria-label":J,onClear:()=>ce(""),onChange:Zn=>ce(Zn||null),value:Ve??void 0,clearLabel:"Clear the selected time picker value"}):xr.jsx(V.g,{children:xr.jsx($._,{"aria-label":An({id:"app.utils.filter-value",defaultMessage:"Filter value"}),onChange:({target:{value:Zn}})=>ce(Zn),value:Ve??void 0,size:"M"})})},Bd=J=>{let ce=J.type;switch(J.type==="relation"&&(ce=J.mainField.schema.type),ce){case"email":case"text":case"enumeration":case"string":return[{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$eq",defaultMessage:"is"},value:"$eq"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$eqi",defaultMessage:"is (case insensitive)"},value:"$eqi"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$ne",defaultMessage:"is not"},value:"$ne"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$nei",defaultMessage:"is not (case insensitive)"},value:"$nei"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$null",defaultMessage:"is null"},value:"$null"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$notNull",defaultMessage:"is not null"},value:"$notNull"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$contains",defaultMessage:"contains"},value:"$contains"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$containsi",defaultMessage:"contains (case insensitive)"},value:"$containsi"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$notContains",defaultMessage:"not contains"},value:"$notContains"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$notContainsi",defaultMessage:"not contains (case insensitive)"},value:"$notContainsi"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$startsWith",defaultMessage:"starts with"},value:"$startsWith"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$startsWithi",defaultMessage:"starts with (case insensitive)"},value:"$startsWithi"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$endsWith",defaultMessage:"ends with"},value:"$endsWith"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$endsWithi",defaultMessage:"ends with (case insensitive)"},value:"$endsWithi"}];case"float":case"integer":case"biginteger":case"decimal":return[{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$eq",defaultMessage:"is"},value:"$eq"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$ne",defaultMessage:"is not"},value:"$ne"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$null",defaultMessage:"is null"},value:"$null"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$notNull",defaultMessage:"is not null"},value:"$notNull"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$gt",defaultMessage:"is greater than"},value:"$gt"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$gte",defaultMessage:"is greater than or equal to"},value:"$gte"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$lt",defaultMessage:"is less than"},value:"$lt"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$lte",defaultMessage:"is less than or equal to"},value:"$lte"}];case"time":case"date":return[{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$eq",defaultMessage:"is"},value:"$eq"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$ne",defaultMessage:"is not"},value:"$ne"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$null",defaultMessage:"is null"},value:"$null"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$notNull",defaultMessage:"is not null"},value:"$notNull"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$contains",defaultMessage:"contains (sensitive)"},value:"$contains"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$notContains",defaultMessage:"not contains (sensitive)"},value:"$notContains"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$gt",defaultMessage:"is greater than"},value:"$gt"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$gte",defaultMessage:"is greater than or equal to"},value:"$gte"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$lt",defaultMessage:"is less than"},value:"$lt"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$lte",defaultMessage:"is less than or equal to"},value:"$lte"}];case"datetime":return[{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$eq",defaultMessage:"is"},value:"$eq"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$ne",defaultMessage:"is not"},value:"$ne"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$null",defaultMessage:"is null"},value:"$null"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$notNull",defaultMessage:"is not null"},value:"$notNull"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$gt",defaultMessage:"is greater than"},value:"$gt"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$gte",defaultMessage:"is greater than or equal to"},value:"$gte"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$lt",defaultMessage:"is less than"},value:"$lt"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$lte",defaultMessage:"is less than or equal to"},value:"$lte"}];default:return[{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$eq",defaultMessage:"is"},value:"$eq"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$eqi",defaultMessage:"is (case insensitive)"},value:"$eqi"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$ne",defaultMessage:"is not"},value:"$ne"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$null",defaultMessage:"is null"},value:"$null"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$notNull",defaultMessage:"is not null"},value:"$notNull"}]}},wd=({...J})=>{const ce=r.useRef(null),{isSubmitting:qe,isValidating:Nt,errors:Ve,touched:An}=(0,Ze.u6)();return r.useEffect(()=>{if(qe&&!Nt){const Zn=ce.current.querySelectorAll("[data-strapi-field-error]");if(Zn&&Zn.length>0){const zn=Zn[0].getAttribute("id"),cr=ce.current.querySelector(`[aria-describedby="${zn}"]`);cr&&cr instanceof HTMLElement&&cr.focus()}}if(!qe&&!Nt&&Object.keys(Ve).length){const Zn=document.getElementById("global-form-error");Zn&&Zn.focus()}},[Ve,qe,Nt,An]),xr.jsx(Ze.l0,{ref:ce,...J,noValidate:!0})},sf=({description:J,fieldSchema:ce,type:qe})=>{const{formatMessage:Nt}=(0,ne.Z)(),Ve=()=>J?.id?Nt({id:J.id,defaultMessage:J.defaultMessage},{...J.values}):"";return{hint:(()=>{const{maximum:Zn,minimum:fn}=Qu(ce),zn=yh({type:qe,minimum:fn,maximum:Zn}),cr=typeof fn=="number",Dr=typeof Zn=="number",Hr=Dr&&cr,pi=Dr||cr;return!J?.id&&!pi?"":Nt({id:"content-manager.form.Input.hint.text",defaultMessage:"{min, select, undefined {} other {min. {min}}}{divider}{max, select, undefined {} other {max. {max}}}{unit}{br}{description}"},{min:fn,max:Zn,description:Ve(),unit:zn?.message&&pi?Nt(zn.message,zn.values):null,divider:Hr?Nt({id:"content-manager.form.Input.hint.minMaxDivider",defaultMessage:" / "}):null,br:pi?xr.jsx("br",{}):null})})()}},yh=({type:J,minimum:ce,maximum:qe})=>{if(J&&["biginteger","integer","number"].includes(J))return{};const Nt=Math.max(ce||0,qe||0);return{message:{id:"content-manager.form.Input.hint.character.unit",defaultMessage:"{maxValue, plural, one { character} other { characters}}"},values:{maxValue:Nt}}},Qu=J=>{if(!J)return{maximum:void 0,minimum:void 0};const{minLength:ce,maxLength:qe,max:Nt,min:Ve}=J;let An,Zn;const fn=Number(Ve),zn=Number(ce);Number.isNaN(fn)?Number.isNaN(zn)||(An=zn):An=fn;const cr=Number(Nt),Dr=Number(qe);return Number.isNaN(cr)?Number.isNaN(Dr)||(Zn=Dr):Zn=cr,{maximum:Zn,minimum:An}},wh=()=>{const{search:J}=(0,ge.TH)();return(0,r.useMemo)(()=>new URLSearchParams(J),[J])},dc=J=>{const ce=wh(),[qe,Nt]=(0,r.useState)(null);return(0,r.useEffect)(()=>{ce.has("field")&&ce.get("field")===J&&qe&&("input"in qe?(qe.input.current.focus(),qe.input.current.scrollIntoView({block:"center"})):(qe.focus(),qe.scrollIntoView({block:"center"})))},[ce,J,qe]),Nt},bs=J=>`${J/16}rem`,Ml=({autoComplete:J,customInputs:ce,description:qe,disabled:Nt,intlLabel:Ve,labelAction:An,error:Zn,name:fn,onChange:zn,options:cr=[],placeholder:Dr,required:Hr,step:pi,type:xi,value:wi,isNullable:Wi,attribute:Ai,..._o})=>{const{formatMessage:Ko}=(0,ne.Z)(),Ks=(Bo,wa)=>{if(Bo&&(wa==="minLength"&&wa in Bo||wa==="maxLength"&&wa in Bo||wa==="max"&&wa in Bo||wa==="min"&&wa in Bo))return Bo[wa]},{hint:xo}=sf({description:qe,fieldSchema:{minLength:Ks(Ai,"minLength"),maxLength:Ks(Ai,"maxLength"),max:Ks(Ai,"max"),min:Ks(Ai,"min")},type:Ai?.type||xi}),[ms,zs]=r.useState(!1),Ys=dc(fn),ea=ce?ce[xi]:null,ha=wi??void 0,tc=ha??"";function zd(Bo){if(!Bo)return null;if(typeof Bo=="string")return Ko({id:Bo,defaultMessage:Bo});const wa={...Bo.values};return Ko({id:Bo.id,defaultMessage:Bo?.defaultMessage??Bo.id},wa)}const nl=zd(Zn)??void 0;if(ea)return xr.jsx(ea,{..._o,ref:Ys,attribute:Ai,description:qe,hint:xo,disabled:Nt,intlLabel:Ve,labelAction:An,error:nl||"",name:fn,onChange:zn,options:cr,required:Hr,placeholder:Dr,type:xi,value:ha});const ua=Ve.id?Ko({id:Ve.id,defaultMessage:Ve.defaultMessage},{...Ve.values}):fn,Pl=Dr?Ko({id:Dr.id,defaultMessage:Dr.defaultMessage},{...Dr.values}):"";switch(xi){case"json":return xr.jsx(ee.V,{ref:Ys,label:ua,labelAction:An,value:ha,error:nl,disabled:Nt,hint:xo,required:Hr,onChange:Bo=>{const wa="required"in Ai&&!Ai?.required&&!Bo.length?null:Bo;zn({target:{name:fn,value:wa}},!1)},minHeight:bs(252),maxHeight:bs(504)});case"bool":return xr.jsx(q.s,{ref:Ys,checked:wi===null?null:wi||!1,disabled:Nt,hint:xo,label:ua,error:nl,labelAction:An,name:fn,offLabel:Ko({id:"app.components.ToggleCheckbox.off-label",defaultMessage:"False"}),onLabel:Ko({id:"app.components.ToggleCheckbox.on-label",defaultMessage:"True"}),onChange:Bo=>{zn({target:{name:fn,value:Bo.target.checked}})},required:Hr,onClear:()=>{zn({target:{name:fn,value:null}})},clearLabel:Wi?Ko({id:"app.components.ToggleCheckbox.clear-label",defaultMessage:"Clear"}):void 0});case"checkbox":return xr.jsx(oe.X,{ref:Ys,disabled:Nt,error:nl,hint:xo,id:fn,name:fn,onValueChange:Bo=>{zn({target:{name:fn,value:Bo}})},required:Hr,value:Boolean(ha),children:ua});case"datetime":return xr.jsx(R.x,{ref:Ys,clearLabel:Ko({id:"clearLabel",defaultMessage:"Clear"}),disabled:Nt,error:nl,label:ua,labelAction:An,id:fn,hint:xo,name:fn,onChange:Bo=>{const wa=Bo?Bo.toISOString():null;zn({target:{name:fn,value:wa,type:xi}})},onClear:()=>zn({target:{name:fn,value:null,type:xi}}),placeholder:Pl,required:Hr,value:ha});case"date":return xr.jsx(A.M,{ref:Ys,clearLabel:Ko({id:"clearLabel",defaultMessage:"Clear"}),disabled:Nt,error:nl,label:ua,id:fn,hint:xo,name:fn,onChange:Bo=>{zn({target:{name:fn,value:Bo?jd(Bo,{representation:"date"}):null,type:xi}})},onClear:()=>zn({target:{name:fn,value:null,type:xi}}),placeholder:Pl,required:Hr,selectedDate:ha});case"number":return xr.jsx(H.Y,{ref:Ys,disabled:Nt,error:nl,label:ua,labelAction:An,id:fn,hint:xo,name:fn,onValueChange:Bo=>{zn({target:{name:fn,value:Bo,type:xi}})},placeholder:Pl,required:Hr,step:pi,value:ha});case"email":return xr.jsx(X.o,{ref:Ys,autoComplete:J,disabled:Nt,error:nl,label:ua,labelAction:An,id:fn,hint:xo,name:fn,onChange:Bo=>{zn({target:{name:fn,value:Bo.target.value,type:xi}})},placeholder:Pl,required:Hr,type:"email",value:tc});case"timestamp":case"text":case"string":return xr.jsx(X.o,{ref:Ys,autoComplete:J,disabled:Nt,error:nl,label:ua,labelAction:An,id:fn,hint:xo,name:fn,onChange:Bo=>{zn({target:{name:fn,value:Bo.target.value,type:xi}})},placeholder:Pl,required:Hr,type:"text",value:tc});case"password":return xr.jsx(X.o,{ref:Ys,autoComplete:J,disabled:Nt,error:nl,endAction:xr.jsx("button",{"aria-label":Ko({id:"Auth.form.password.show-password",defaultMessage:"Show password"}),onClick:()=>{zs(Bo=>!Bo)},style:{border:"none",padding:0,background:"transparent"},type:"button",children:ms?xr.jsx(pe.J,{as:wt.Z,color:"neutral500"}):xr.jsx(pe.J,{as:ft.Z,color:"neutral500"})}),label:ua,labelAction:An,id:fn,hint:xo,name:fn,onChange:Bo=>{zn({target:{name:fn,value:Bo.target.value,type:xi}})},placeholder:Pl,required:Hr,type:ms?"text":"password",value:tc});case"select":return xr.jsx(E.q4,{ref:Ys,disabled:Nt,error:nl,label:ua,labelAction:An,id:fn,hint:xo,name:fn,onChange:Bo=>{zn({target:{name:fn,value:Bo,type:"select"}})},placeholder:Pl,required:Hr,value:ha,children:cr.map(({metadatas:{intlLabel:Bo,disabled:wa,hidden:Mc},key:Tu,value:Ud})=>xr.jsx(E.ag,{value:Ud,disabled:wa,hidden:Mc,children:Ko(Bo)},Tu))});case"textarea":return xr.jsx(Ie.g,{ref:Ys,disabled:Nt,error:nl,label:ua,labelAction:An,id:fn,hint:xo,name:fn,onChange:Bo=>zn({target:{name:fn,value:Bo.target.value,type:xi}}),required:Hr,placeholder:Pl,value:tc});case"time":{let Bo=ha;if(typeof ha=="string"&&ha.split(":").length>2){const[wa,Mc]=ha.split(":");Bo=`${wa}:${Mc}`}return xr.jsx(z.j,{ref:Ys,clearLabel:Ko({id:"clearLabel",defaultMessage:"Clear"}),disabled:Nt,error:nl,label:ua,labelAction:An,id:fn,hint:xo,name:fn,onChange:wa=>{zn({target:{name:fn,value:`${wa}`,type:xi}})},onClear:()=>{zn({target:{name:fn,value:null,type:xi}})},required:Hr,value:Bo})}default:return xr.jsx(X.o,{disabled:!0,error:nl,label:ua,labelAction:An,id:fn,hint:xo,name:fn,placeholder:"Not supported",required:Hr,type:"text",value:""})}},el=r.createContext({getPlugin:()=>{},menu:[],plugins:{},settings:{},runHookParallel:()=>Promise.resolve(),runHookWaterfall:()=>Promise.resolve(),runHookSeries:()=>Promise.resolve()}),Ol=({children:J,getPlugin:ce,menu:qe,plugins:Nt,runHookParallel:Ve,runHookSeries:An,runHookWaterfall:Zn,settings:fn})=>{const zn=r.useMemo(()=>({getPlugin:ce,menu:qe,plugins:Nt,runHookParallel:Ve,runHookSeries:An,runHookWaterfall:Zn,settings:fn}),[ce,qe,Nt,Ve,An,Zn,fn]);return xr.jsx(el.Provider,{value:zn,children:J})},Ac=()=>r.useContext(el),Ju=({area:J,...ce})=>{const{getPlugin:qe}=Ac(),[Nt,Ve,An]=J.split("."),Zn=qe(Nt);if(!Zn)return null;const fn=Zn.getInjectedComponents(Ve,An);return fn?fn.map(({name:zn,Component:cr})=>xr.jsx(cr,{...ce},zn)):null};/**
 * @preserve
 *
 * @deprecated Use @strapi/design-system LinkButton instead.
 */const pl=J=>xr.jsx(Os,{...J,as:Ce.OL});/**
 * @preserve
 *
 * @deprecated Use @strapi/design-system LinkButton instead.
 */const _h=J=>xr.jsx(rl,{...J,as:Ce.OL}),_d=({content:J={id:"app.components.EmptyStateLayout.content-document",defaultMessage:"No content found",values:{}},...ce})=>{const{formatMessage:qe}=(0,ne.Z)();return xr.jsx(n.x,{...ce,icon:xr.jsx(kn.Z,{width:"10rem"}),content:qe({id:J.id,defaultMessage:J.defaultMessage},J.values)})},th=J=>xr.jsx(EmptyStateLayout$1,{...J,icon:xr.jsx(EmptyPictures,{width:"10rem"})}),zh=({action:J})=>{const{formatMessage:ce}=(0,ne.Z)();return xr.jsx(n.x,{icon:xr.jsx(ht.Z,{width:"10rem"}),content:ce({id:"app.components.EmptyStateLayout.content-permissions",defaultMessage:"You don't have the permissions to access that content"}),action:J})},Xu=({description:J,error:ce,intlLabel:qe,labelAction:Nt,name:Ve=""})=>{const{formatMessage:An}=(0,ne.Z)(),Zn=qe?.id?An({id:qe.id,defaultMessage:qe.defaultMessage},{...qe.values}):Ve,fn=J?.id?An({id:J.id,defaultMessage:J.defaultMessage},{...J.values}):"",zn=An({id:"components.NotAllowedInput.text",defaultMessage:"No permissions to see this field"}),cr=ce?An({id:ce,defaultMessage:ce}):"";return xr.jsx(X.o,{disabled:!0,error:cr,label:Zn,labelAction:Nt,id:Ve,hint:fn,name:Ve,placeholder:zn,startAction:xr.jsx(xc,{}),type:"text",value:""})},xc=(0,Ne.default)(ft.Z)`
  & > path {
    fill: ${({theme:J})=>J.colors.neutral600};
  }
`,af=({trackedEvent:J,options:ce=["10","20","50","100"],defaultValue:qe="10"})=>{const{formatMessage:Nt}=(0,ne.Z)(),[{query:Ve},An]=Ar(),{trackUsage:Zn}=er(),fn=cr=>{J&&Zn(J),An({pageSize:cr,page:1})},zn=typeof Ve?.pageSize=="string"&&Ve?.pageSize!==""?Ve.pageSize:qe;return xr.jsxs(s.k,{gap:2,children:[xr.jsx(E.q4,{size:"S","aria-label":Nt({id:"components.PageFooter.select",defaultMessage:"Entries per page"}),onChange:fn,value:zn,children:ce.map(cr=>xr.jsx(E.ag,{value:cr,children:cr},cr))}),xr.jsx(C.Z,{textColor:"neutral600",as:"span",children:Nt({id:"components.PageFooter.select",defaultMessage:"Entries per page"})})]})},vi=({pagination:{pageCount:J},boundaryCount:ce=1,siblingCount:qe=1})=>{const[{query:Nt}]=Ar(),Ve=parseInt(Nt?.page||"1",10),{pathname:An}=(0,ge.TH)(),{formatMessage:Zn}=(0,ne.Z)(),fn=Ai=>(0,Xe.stringify)({...Nt,page:Ai},{encode:!1}),zn=fn(Ve+(J>1?1:0)),cr=fn(Ve-1),Dr=(Ai,_o)=>{const Ko=_o-Ai+1;return Array.from({length:Ko},(Ks,xo)=>Ai+xo)},Hr=Dr(1,Math.min(ce,J)),pi=Dr(Math.max(J-ce+1,ce+1),J),xi=Math.max(Math.min(Ve-qe,J-ce-qe*2-1),ce+2),wi=Math.min(Math.max(Ve+qe,ce+qe*2+2),pi.length>0?pi[0]-2:J-1),Wi=[...Hr,...xi>ce+2?["start-ellipsis"]:ce+1<J-ce?[ce+1]:[],...Dr(xi,wi),...wi<J-ce-1?["end-ellipsis"]:J-ce>ce?[J-ce]:[],...pi];return xr.jsxs(ue,{activePage:Ve,pageCount:J,children:[xr.jsx(Qe,{active:!1,to:{pathname:An,search:cr},children:Zn({id:"components.pagination.go-to-previous",defaultMessage:"Go to previous page"})}),Wi.map(Ai=>typeof Ai=="number"?xr.jsx(It,{active:Ai===Ve,number:Ai,to:{pathname:An,search:fn(Ai)},children:Zn({id:"components.pagination.go-to",defaultMessage:"Go to page {page}"},{page:Ai})},Ai):xr.jsx(mn,{},Ai)),xr.jsx(bt,{active:!1,to:{pathname:An,search:zn},children:Zn({id:"components.pagination.go-to-next",defaultMessage:"Go to next page"})})]})},bo=({components:J,styles:ce,error:qe,ariaErrorMessage:Nt,...Ve})=>{const An=(0,Ne.useTheme)(),Zn=La(An,qe);return xr.jsx(Nr,{menuPosition:"fixed",components:{ClearIndicator:os,DropdownIndicator:Ms,IndicatorSeparator:()=>null,LoadingIndicator:()=>null,...J},"aria-errormessage":qe&&Nt,"aria-invalid":!!qe,styles:{...Zn,...ce},...Ve})},jo=(0,Ne.default)(p.x)`
  background: transparent;
  border: none;
  position: relative;
  z-index: 1;

  svg {
    height: ${11/16}rem;
    width: ${11/16}rem;
  }

  svg path {
    fill: ${({theme:J})=>J.colors.neutral600};
  }
`,os=J=>{const ce=Mn.c.ClearIndicator;return xr.jsx(ce,{...J,children:xr.jsx(jo,{as:"button",type:"button",children:xr.jsx(ot.Z,{})})})},ys=(0,Ne.default)(jo)`
  display: flex;
  background: none;
  border: none;

  svg {
    width: ${9/16}rem;
  }
`,Ms=({innerProps:J})=>xr.jsx(ys,{paddingRight:3,...J,children:xr.jsx(Kt.Z,{})}),La=(J,ce)=>({clearIndicator:qe=>({...qe,padding:0,paddingRight:J.spaces[3]}),container:qe=>({...qe,background:J.colors.neutral0,lineHeight:"normal"}),control(qe,Nt){let Ve=J.colors.neutral200,An,Zn;return Nt.isFocused?(Ve=J.colors.primary600,An=J.colors.primary600):ce&&(Ve=J.colors.danger600),Nt.isDisabled&&(Zn=`${J.colors.neutral150} !important`),{...qe,fontSize:J.fontSizes[2],height:40,border:`1px solid ${Ve} !important`,outline:0,backgroundColor:Zn,borderRadius:J.borderRadius,boxShadow:An?`${An} 0px 0px 0px 2px`:""}},indicatorsContainer:qe=>({...qe,padding:0,paddingRight:J.spaces[3]}),input:qe=>({...qe,margin:0,padding:0,color:J.colors.neutral800,gridTemplateColumns:"0 100%"}),menu(qe){return{...qe,width:"100%",marginTop:J.spaces[1],backgroundColor:J.colors.neutral0,color:J.colors.neutral800,borderRadius:J.borderRadius,border:`1px solid ${J.colors.neutral200}`,boxShadow:J.shadows.tableShadow,fontSize:J.fontSizes[2],zIndex:2}},menuList:qe=>({...qe,paddingLeft:J.spaces[1],paddingTop:J.spaces[1],paddingRight:J.spaces[1],paddingBottom:J.spaces[1]}),menuPortal:qe=>({...qe,zIndex:100}),option(qe,Nt){let Ve=qe.backgroundColor;return(Nt.isFocused||Nt.isSelected)&&(Ve=J.colors.primary100),{...qe,color:J.colors.neutral800,lineHeight:J.spaces[5],backgroundColor:Ve,borderRadius:J.borderRadius,"&:active":{backgroundColor:J.colors.primary100}}},placeholder:qe=>({...qe,color:J.colors.neutral600,marginLeft:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"80%"}),singleValue(qe,Nt){let Ve=J.colors.neutral800;return Nt.isDisabled&&(Ve=J.colors.neutral600),{...qe,marginLeft:0,color:Ve}},valueContainer:qe=>({...qe,cursor:"pointer",padding:0,paddingLeft:J.spaces[4],marginLeft:0,marginRight:0})}),xd=["years","months","days","hours","minutes","seconds"],Ed=({timestamp:J,customIntervals:ce=[]})=>{const{formatRelativeTime:qe,formatDate:Nt,formatTime:Ve}=(0,ne.Z)(),An=(0,Qr.Z)({start:J,end:Date.now()}),Zn=xd.find(Dr=>An[Dr]>0&&Object.keys(An).includes(Dr)),fn=Ei(J)?-An[Zn]:An[Zn],zn=ce.find(Dr=>An[Dr.unit]<Dr.threshold),cr=zn?zn.text:qe(fn,Zn,{numeric:"auto"});return xr.jsx("time",{dateTime:J.toISOString(),title:`${Nt(J)} ${Ve(J)}`,children:cr})},xh=({label:J,placeholder:ce,trackedEvent:qe,trackedEventDetails:Nt})=>{const Ve=r.useRef(null),An=r.useRef(null),[{query:Zn},fn]=Ar(),[zn,cr]=r.useState(Zn?._q||""),[Dr,Hr]=r.useState(!!zn),{formatMessage:pi}=(0,ne.Z)(),{trackUsage:xi}=er(),wi=()=>Hr(_o=>!_o);r.useLayoutEffect(()=>{Dr&&Ve.current&&Ve.current.focus()},[Dr]);const Wi=()=>{cr(""),fn({_q:""},"remove")},Ai=_o=>{_o.preventDefault(),zn?(qe&&xi(qe,Nt),fn({_q:encodeURIComponent(zn),page:1})):(wi(),fn({_q:""},"remove"))};return Dr?xr.jsx(un.U,{onSubmit:Ai,children:xr.jsx(Be.w,{ref:Ve,name:"search",onChange:_o=>cr(_o.target.value),value:zn,clearLabel:pi({id:"clearLabel",defaultMessage:"Clear"}),onClear:Wi,size:"S",placeholder:ce,children:J})}):xr.jsx(D.h,{ref:An,icon:xr.jsx(pe.J,{as:vn.Z,color:"neutral800"}),label:pi({id:"global.search",defaultMessage:"Search"}),onClick:wi})},Uh=({name:J})=>{const{formatMessage:ce}=(0,ne.Z)(),qe=ce({id:"Settings.PageTitle",defaultMessage:"Settings - {name}"},{name:J});return xr.jsx(oo.q,{title:qe})},mf=Ne.default.div`
  margin-right: ${({theme:J})=>J.spaces[3]};
  width: ${6/16}rem;
  height: ${6/16}rem;
  border-radius: 50%;
  background: ${({theme:J,backgroundColor:ce})=>J.colors[ce]};
`,Ec=({variant:J="primary"})=>{const ce=`${J}600`;return xr.jsx(mf,{backgroundColor:ce})},_u=r.createContext({allLayoutData:{components:{}},createActionAllowedFields:[],formErrors:{},hasDraftAndPublish:!1,initialData:{},isCreatingEntry:!1,isSingleType:!1,modifiedData:{},readActionAllowedFields:[],slug:void 0,upateActionAllowedFields:[]}),Bu=()=>r.useContext(_u);var hc=Bl,If=oc,Hh="[object Symbol]";function gf(J){return typeof J=="symbol"||If(J)&&hc(J)==Hh}var nh=gf,kc=Cl,lf=nh,Rf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qu=/^\w*$/;function vf(J,ce){if(kc(J))return!1;var qe=typeof J;return qe=="number"||qe=="symbol"||qe=="boolean"||J==null||lf(J)?!0:qu.test(J)||!Rf.test(J)||ce!=null&&J in Object(ce)}var ed=vf,Lf=rs,Jf=Lf(Object,"create"),Eh=Jf,kh=Eh;function Op(){this.__data__=kh?kh(null):{},this.size=0}var Xf=Op;function jf(J){var ce=this.has(J)&&delete this.__data__[J];return this.size-=ce?1:0,ce}var qf=jf,Ch=Eh,rh="__lodash_hash_undefined__",Nd=Object.prototype,bf=Nd.hasOwnProperty;function bl(J){var ce=this.__data__;if(Ch){var qe=ce[J];return qe===rh?void 0:qe}return bf.call(ce,J)?ce[J]:void 0}var Pp=bl,Bf=Eh,Dp=Object.prototype,Ip=Dp.hasOwnProperty;function ep(J){var ce=this.__data__;return Bf?ce[J]!==void 0:Ip.call(ce,J)}var Nf=ep,tp=Eh,xu="__lodash_hash_undefined__";function Wh(J,ce){var qe=this.__data__;return this.size+=this.has(J)?0:1,qe[J]=tp&&ce===void 0?xu:ce,this}var u0=Wh,ih=Xf,Ff=qf,Zh=Pp,Kh=Nf,Fd=u0;function $d(J){var ce=-1,qe=J==null?0:J.length;for(this.clear();++ce<qe;){var Nt=J[ce];this.set(Nt[0],Nt[1])}}$d.prototype.clear=ih,$d.prototype.delete=Ff,$d.prototype.get=Zh,$d.prototype.has=Kh,$d.prototype.set=Fd;var Rp=$d;function Hc(){this.__data__=[],this.size=0}var np=Hc;function cf(J,ce){return J===ce||J!==J&&ce!==ce}var Vl=cf,yf=Vl;function $f(J,ce){for(var qe=J.length;qe--;)if(yf(J[qe][0],ce))return qe;return-1}var wf=$f,rp=wf,ip=Array.prototype,Th=ip.splice;function oh(J){var ce=this.__data__,qe=rp(ce,J);if(qe<0)return!1;var Nt=ce.length-1;return qe==Nt?ce.pop():Th.call(ce,qe,1),--this.size,!0}var uf=oh,sh=wf;function df(J){var ce=this.__data__,qe=sh(ce,J);return qe<0?void 0:ce[qe][1]}var Sh=df,op=wf;function td(J){return op(this.__data__,J)>-1}var Lp=td,Gh=wf;function sp(J,ce){var qe=this.__data__,Nt=Gh(qe,J);return Nt<0?(++this.size,qe.push([J,ce])):qe[Nt][1]=ce,this}var Ah=sp,y=np,O=uf,Q=Sh,le=Lp,De=Ah;function pt(J){var ce=-1,qe=J==null?0:J.length;for(this.clear();++ce<qe;){var Nt=J[ce];this.set(Nt[0],Nt[1])}}pt.prototype.clear=y,pt.prototype.delete=O,pt.prototype.get=Q,pt.prototype.has=le,pt.prototype.set=De;var En=pt,yr=Rp,Ir=En,bi=Nc;function Gi(){this.size=0,this.__data__={hash:new yr,map:new(bi||Ir),string:new yr}}var to=Gi;function Ki(J){var ce=typeof J;return ce=="string"||ce=="number"||ce=="symbol"||ce=="boolean"?J!=="__proto__":J===null}var Ao=Ki,zo=Ao;function Uo(J,ce){var qe=J.__data__;return zo(ce)?qe[typeof ce=="string"?"string":"hash"]:qe.map}var ml=Uo,ni=ml;function zr(J){var ce=ni(this,J).delete(J);return this.size-=ce?1:0,ce}var ci=zr,fo=ml;function Ho(J){return fo(this,J).get(J)}var ss=Ho,ls=ml;function Es(J){return ls(this,J).has(J)}var yl=Es,pa=ml;function Nu(J,ce){var qe=pa(this,J),Nt=qe.size;return qe.set(J,ce),this.size+=qe.size==Nt?0:1,this}var Yh=Nu,jp=to,Qh=ci,Mg=ss,Vf=yl,ym=Yh;function Jh(J){var ce=-1,qe=J==null?0:J.length;for(this.clear();++ce<qe;){var Nt=J[ce];this.set(Nt[0],Nt[1])}}Jh.prototype.clear=jp,Jh.prototype.delete=Qh,Jh.prototype.get=Mg,Jh.prototype.has=Vf,Jh.prototype.set=ym;var nd=Jh,d0=nd,ap="Expected a function";function Mh(J,ce){if(typeof J!="function"||ce!=null&&typeof ce!="function")throw new TypeError(ap);var qe=function(){var Nt=arguments,Ve=ce?ce.apply(this,Nt):Nt[0],An=qe.cache;if(An.has(Ve))return An.get(Ve);var Zn=J.apply(this,Nt);return qe.cache=An.set(Ve,Zn)||An,Zn};return qe.cache=new(Mh.Cache||d0),qe}Mh.Cache=d0;var Ws=Mh,wm=Ws,rd=500;function ec(J){var ce=wm(J,function(Nt){return qe.size===rd&&qe.clear(),Nt}),qe=ce.cache;return ce}var _m=ec,ah=_m,h0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,f0=/\\(\\)?/g,p0=ah(function(J){var ce=[];return J.charCodeAt(0)===46&&ce.push(""),J.replace(h0,function(qe,Nt,Ve,An){ce.push(Ve?An.replace(f0,"$1"):Nt||qe)}),ce}),xm=p0;function Em(J,ce){for(var qe=-1,Nt=J==null?0:J.length,Ve=Array(Nt);++qe<Nt;)Ve[qe]=ce(J[qe],qe,J);return Ve}var zf=Em,m0=Da,Oh=zf,_f=Cl,xf=nh,wl=1/0,tl=m0?m0.prototype:void 0,lp=tl?tl.toString:void 0;function km(J){if(typeof J=="string")return J;if(_f(J))return Oh(J,km)+"";if(xf(J))return lp?lp.call(J):"";var ce=J+"";return ce=="0"&&1/J==-wl?"-0":ce}var g0=km,Cm=g0;function Tm(J){return J==null?"":Cm(J)}var v0=Tm,b0=Cl,Bp=ed,Ef=xm,Np=v0;function Sm(J,ce){return b0(J)?J:Bp(J,ce)?[J]:Ef(Np(J))}var Fp=Sm,$p=nh,id=1/0;function kf(J){if(typeof J=="string"||$p(J))return J;var ce=J+"";return ce=="0"&&1/J==-id?"-0":ce}var cp=kf,Vp=Fp,zp=cp;function lh(J,ce){ce=Vp(ce,J);for(var qe=0,Nt=ce.length;J!=null&&qe<Nt;)J=J[zp(ce[qe++])];return qe&&qe==Nt?J:void 0}var y0=lh,w0=y0;function ch(J,ce,qe){var Nt=J==null?void 0:w0(J,ce);return Nt===void 0?qe:Nt}var Zs=ch;const Cf=uo(Zs),Fu=(J,ce)=>Cf(J,["attributes",ce,"type"],""),hf=(J,ce)=>Cf(J,["attributes",...ce],""),Up=r.createContext({}),Aa=30*1e3,_0=({children:J})=>{const[ce,qe]=r.useState(!1),[Nt,Ve]=r.useState({}),[An,Zn]=r.useState(!1),fn=r.useCallback((xi={})=>{qe(!0),Ve(xi)},[]),zn=r.useCallback(()=>{qe(!1),Ve({})},[]);r.useEffect(()=>{if(ce){const xi=setTimeout(()=>{Zn(!0)},Aa);return()=>{clearTimeout(xi)}}},[ce]);let cr=Nt?.icon||"reload",Dr={id:Nt?.description||"components.OverlayBlocker.description",defaultMessage:"You're using a feature that needs the server to restart. Please wait until the server is up."},Hr={id:Nt?.title||"components.OverlayBlocker.title",defaultMessage:"Waiting for restart"};An&&(cr="time",Dr={id:"components.OverlayBlocker.description.serverError",defaultMessage:"The server should have restarted, please check your logs in the terminal."},Hr={id:"components.OverlayBlocker.title.serverError",defaultMessage:"The restart is taking longer than expected"});const pi=r.useMemo(()=>({lockAppWithAutoreload:fn,unlockAppWithAutoreload:zn}),[fn,zn]);return xr.jsxs(Up.Provider,{value:pi,children:[xr.jsx(x0,{displayedIcon:cr,isOpen:ce,description:Dr,title:Hr}),J]})},x0=({displayedIcon:J,description:ce,title:qe,isOpen:Nt})=>{var Ve;const{formatMessage:An}=(0,ne.Z)();return Nt&&((Ve=globalThis?.document)!=null&&Ve.body)?(0,gn.createPortal)(xr.jsxs(Hp,{id:"autoReloadOverlayBlocker",direction:"column",alignItems:"center",gap:6,children:[xr.jsxs(s.k,{direction:"column",alignItems:"center",gap:2,children:[xr.jsx(C.Z,{as:"h1",variant:"alpha",children:An(qe)}),xr.jsx(C.Z,{as:"h2",textColor:"neutral600",fontSize:4,fontWeight:"regular",children:An(ce)})]}),J==="reload"&&xr.jsx(Tf,{padding:6,background:"primary100",borderColor:"primary200",children:xr.jsx(E0,{width:bs(36),height:bs(36)})}),J==="time"&&xr.jsx(Tf,{padding:6,background:"primary100",borderColor:"primary200",children:xr.jsx(ut.Z,{width:bs(40),height:bs(40)})}),xr.jsx(p.x,{marginTop:2,children:xr.jsx(Os,{href:"https://docs.strapi.io",isExternal:!0,children:An({id:"global.documentation",defaultMessage:"Read the documentation"})})})]}),globalThis.document.body):null},up=(0,Ne.keyframes)`
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(359deg);
    }
  `,E0=(0,Ne.default)(Wt.Z)`
  animation: ${up} 1s infinite linear;
`,Hp=(0,Ne.default)(s.k)`
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  /* TODO: set this up in the theme for consistence z-index values */
  z-index: 1140;
  padding-top: ${bs(160)};

  & > * {
    position: relative;
    z-index: 1;
  }

  &:before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: ${({theme:J})=>J.colors.neutral0};
    opacity: 0.9;
  }
`,Tf=(0,Ne.default)(p.x)`
  border-radius: 50%;
  svg {
    > path {
      fill: ${({theme:J})=>J.colors.primary600} !important;
    }
  }
`,Am=()=>r.useContext(Up),Wp=r.createContext({get(){},getAll(){return{}}}),k0=({children:J,customFields:ce})=>{const qe=ce.get.bind(ce),Nt=ce.getAll.bind(ce),Ve=r.useMemo(()=>({get:qe,getAll:Nt}),[qe,Nt]);return xr.jsx(Wp.Provider,{value:Ve,children:J})},C0=()=>r.useContext(Wp),T0=r.createContext({currentStep:null,guidedTourState:{contentTypeBuilder:{create:!1,success:!1},contentManager:{create:!1,success:!1},apiTokens:{create:!1,success:!1}},isGuidedTourVisible:!1,isSkipped:!0,setCurrentStep:()=>null,setGuidedTourVisibility:()=>null,setSkipped:()=>null,setStepState:()=>null,startSection:()=>null}),Zp=({children:J,currentStep:ce=null,guidedTourState:qe,isGuidedTourVisible:Nt=!1,isSkipped:Ve,setCurrentStep:An,setGuidedTourVisibility:Zn,setSkipped:fn,setStepState:zn,startSection:cr})=>{const Dr=r.useMemo(()=>({currentStep:ce,guidedTourState:qe,isGuidedTourVisible:Nt,isSkipped:Ve,setCurrentStep:An,setGuidedTourVisibility:Zn,setSkipped:fn,setStepState:zn,startSection:cr}),[ce,qe,Nt,Ve,An,Zn,fn,zn,cr]);return xr.jsx(T0.Provider,{value:Dr,children:J})},S0=()=>r.useContext(T0),A0=r.createContext({}),Mm=({children:J,fields:ce,components:qe})=>{const Nt=r.useMemo(()=>({fields:ce,components:qe}),[ce,qe]);return xr.jsx(A0.Provider,{value:Nt,children:J})},Om=()=>r.useContext(A0),dp=r.createContext({}),Pm=({children:J})=>{var ce;const[qe,Nt]=r.useState(!1),Ve=r.useCallback(()=>{Nt(!0)},[]),An=r.useCallback(()=>{Nt(!1)},[]),Zn=r.useMemo(()=>({lockApp:Ve,unlockApp:An}),[Ve,An]);return xr.jsxs(dp.Provider,{value:Zn,children:[J,qe&&((ce=globalThis?.document)!=null&&ce.body)?(0,gn.createPortal)(xr.jsx(Kp,{id:"overlayBlocker"}),globalThis.document.body):null]})},Kp=(0,Ne.default)(p.x)`
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  /* TODO: set this up in the theme for consistence z-index values */
  z-index: 1140;
`,Dm=()=>r.useContext(dp),Im="apiError.";function hp(J,ce){const qe=`${Im}${J}`;return typeof ce=="function"?ce(qe):qe}function Cc(J,{name:ce,intlMessagePrefixCallback:qe}){const{message:Nt}=J,Ve={id:hp(Nt,qe),defaultMessage:Nt,name:J.name??ce,values:{}};return"path"in J&&(Ve.values={path:J.path.join(".")}),Ve}const od=J=>typeof J.details=="object"&&J.details!==null&&"errors"in J.details;function M0(J,ce){var qe;const Nt=(qe=J.response)==null?void 0:qe.data.error;return Nt?od(Nt)?{name:Nt.name,message:Nt?.message||null,errors:Nt.details.errors.map(Ve=>Cc(Ve,{name:Nt.name,intlMessagePrefixCallback:ce}))}:Cc(Nt,{intlMessagePrefixCallback:ce}):null}function Rm(J){const{formatMessage:ce}=(0,ne.Z)();return{formatAPIError(qe){try{const Nt=Lm(qe,{intlMessagePrefixCallback:J,formatMessage:ce});return Nt||Og(qe,{intlMessagePrefixCallback:J,formatMessage:ce})}catch{throw new Error("formatAPIError: Unknown error:",qe)}}}}function Og(J,{intlMessagePrefixCallback:ce,formatMessage:qe}){const{code:Nt,message:Ve}=J;return qe({id:hp(Ve,ce),defaultMessage:Ve},{code:Nt})}function Lm(J,{formatMessage:ce,intlMessagePrefixCallback:qe}){if(!ce)throw new Error("The formatMessage callback is a mandatory argument.");const Nt=M0(J,qe);return Nt?"message"in Nt&&Nt.message!==null?Nt.message:"errors"in Nt?Nt.errors.map(({id:Ve,defaultMessage:An,values:Zn})=>ce({id:Ve,defaultMessage:An},Zn)).join(`
`):ce(Nt):null}const jm=()=>({copy:(0,r.useCallback)(async ce=>{try{if(typeof ce!="string"&&typeof ce!="number")throw new Error(`Cannot copy typeof ${typeof ce} to clipboard, must be a string`);if(ce==="")throw new Error("Cannot copy empty string to clipboard.");const qe=ce.toString();return await navigator.clipboard.writeText(qe),!0}catch{return!1}},[])}),Uf=new Map;function Sf(J,ce){const qe=J+(ce?Object.entries(ce).sort((Ve,An)=>Ve[0]<An[0]?-1:1).join():"");if(Uf.has(qe))return Uf.get(qe);const Nt=new Intl.Collator(J,ce);return Uf.set(qe,Nt),Nt}const Gp=()=>{const J=(0,r.useRef)(null);return J.current===null&&(J.current=new AbortController),(0,r.useEffect)(()=>()=>{J.current.abort()},[]),(0,r.useMemo)(()=>Id({signal:J.current.signal}),[])};function Bm(J,ce){const qe=Sf(J,{usage:"search",...ce});return{startsWith(Nt,Ve){return Ve.length===0?!0:(Nt=Nt.normalize("NFC"),Ve=Ve.normalize("NFC"),qe.compare(Nt.slice(0,Ve.length),Ve)===0)},endsWith(Nt,Ve){return Ve.length===0?!0:(Nt=Nt.normalize("NFC"),Ve=Ve.normalize("NFC"),qe.compare(Nt.slice(-Ve.length),Ve)===0)},includes(Nt,Ve){if(Ve.length===0)return!0;Nt=Nt.normalize("NFC"),Ve=Ve.normalize("NFC");let An=0;const Zn=Ve.length;for(;An+Zn<=Nt.length;An++){const fn=Nt.slice(An,An+Zn);if(qe.compare(Ve,fn)===0)return!0}return!1}}}const O0=({selector:J="main",dependencies:ce=[]}={})=>{r.useEffect(()=>{const qe=document.querySelector(J);qe?(qe.focus(),window.scrollTo({top:0})):console.warn(`[useFocusWhenNavigate] The page does not contain the selector "${J}" and can't be focused.`)},ce)},Nm=({lockScroll:J})=>{r.useEffect(()=>(J&&document.body.classList.add("lock-body-scroll"),()=>{document.body.classList.remove("lock-body-scroll")}),[J])},fp=(J,ce)=>{const[qe,Nt]=(0,r.useState)(()=>{const Ve=window.localStorage.getItem(J);if(Ve!==null)try{return JSON.parse(Ve)}catch{return Ve}return ce});return(0,r.useEffect)(()=>{window.localStorage.setItem(J,JSON.stringify(qe))},[J,qe]),[qe,Nt]},P0=(J,ce)=>{const[qe,Nt]=(0,r.useState)(!1),Ve=(0,r.useMemo)(()=>Object.keys(J).map(wi=>({name:wi,hasPermission:!1})),[J]),{allPermissions:An}=me(),{post:Zn}=Gp(),fn=ce||An,zn=Object.entries(J),cr=(0,zi.useQueries)(zn.map(([wi,Wi])=>({queryKey:["useRBAC",wi,Wi,fn],async queryFn(){if(!Wi||!Wi.length)return{name:wi,hasPermission:!0};if(!fn)return;const Ai=fn.filter(_o=>Wi.find(Ks=>Ks.action===_o.action&&Ks.subject===_o.subject)!==void 0);if(Ai.length>0&&Ai.every(_o=>Array.isArray(_o.conditions)&&_o.conditions.length>0))try{const{data:{data:_o}}=await Zn("/admin/permissions/check",{permissions:Ai.map(({action:Ko,subject:Ks})=>({action:Ko,subject:Ks}))});return{name:wi,hasPermission:Array.isArray(_o)&&_o.every(Ko=>Ko===!0)}}catch{return{name:wi,hasPermission:!1}}return{name:wi,hasPermission:Ai.length>0}}}))),Dr=(0,r.useCallback)(()=>{Nt(!0)},[]),Hr=qe||cr.some(wi=>wi.isLoading),pi=cr.map(wi=>wi.data);return{allowedActions:(pi.some(wi=>wi===void 0)?Ve:pi).reduce((wi,Wi)=>{if(!Wi)return wi;const{name:Ai,hasPermission:_o}=Wi;return wi[`can${Fm(Ai)}`]=_o,wi},{}),isLoading:Hr,setIsLoading:Dr}},Fm=J=>J.charAt(0).toUpperCase()+J.slice(1),D0=(J,ce)=>{const[qe,Nt]=(0,r.useState)(ce);return[qe,{selectOne:cr=>{const Dr=qe.findIndex(Hr=>J.every(pi=>Hr[pi]===cr[pi]));Dr>-1?Nt(Hr=>[...Hr.slice(0,Dr),...Hr.slice(Dr+1)]):Nt(Hr=>[...Hr,cr])},selectAll:cr=>{qe.length>0?Nt([]):Nt(cr)},selectOnly:cr=>{qe.indexOf(cr)>-1?Nt([]):Nt([cr])},selectMultiple:cr=>{Nt(Dr=>[...Dr,...cr.filter(Hr=>Dr.findIndex(pi=>J.every(xi=>pi[xi]===Hr[xi]))===-1)])},deselectMultiple:cr=>{Nt(Dr=>[...Dr.filter(Hr=>cr.findIndex(pi=>J.every(xi=>Hr[xi]===pi[xi]))===-1)])},setSelections:Nt}]},$m=(0,Ne.default)(D.h)(({theme:J})=>`
  border-radius: ${bs(30)};
  width: ${bs(20)};
  height: ${bs(20)};
  padding: ${bs(3)};
  align-items: center;
  justify-content: center;
  svg {
    width: ${bs(8)};
    rect {
      fill: ${J.colors.primary600}
    }
  }
`),Yp=J=>xr.jsx($m,{icon:xr.jsx(ae.Z,{}),...J}),Af=["createdBy","updatedBy","publishedAt","id","_id"],Pg=(J,ce,qe,Nt=Af)=>{const Ve=(An,Zn)=>Object.keys(An).reduce((fn,zn)=>{const cr=Fu(Zn,zn),Dr=Cf(An,zn),Hr=hf(Zn,[zn,"component"]),pi=hf(Zn,[zn,"repeatable"]);let xi=Cf(Zn,["options","timestamps"]);return Array.isArray(xi)||(xi=[]),[...Nt,...xi].indexOf(zn)!==-1?(delete fn[zn],fn):Dr?cr==="dynamiczone"&&Array.isArray(Dr)?(fn[zn]=Dr.map(wi=>Ve(wi,qe[wi.__component])),fn):(cr==="component"&&(pi&&Array.isArray(Dr)?fn[zn]=Dr.map(wi=>Ve(wi,qe[Hr])):fn[zn]=Ve(Dr,qe[Hr])),fn):fn},Object.assign({},An));return Ve(J,ce)},pp=(J,ce,qe)=>{const Nt=(Ve,An)=>Object.keys(Ve).reduce((Zn,fn)=>{const zn=Fu(An,fn),cr=Cf(Ve,fn),Dr=hf(An,[fn,"component"]),Hr=hf(An,[fn,"repeatable"]);if(zn==="json"&&cr!==void 0)return Zn[fn]=JSON.stringify(cr,null,2),Zn;if(!cr)return Zn[fn]=cr,Zn;if(zn==="dynamiczone"&&Array.isArray(cr))return Zn[fn]=cr.map(pi=>Nt(pi,qe[pi.__component])),Zn;if(zn==="component"){let pi;return Hr&&Array.isArray(cr)?pi=cr.map((xi,wi)=>{const Wi={...xi,__temp_key__:wi};return Nt(Wi,qe[Dr])}):pi=Nt(cr,qe[Dr]),Zn[fn]=pi,Zn}return Zn[fn]=cr,Zn},{});return Nt(J,ce)},Vm=(J,ce)=>J.then(function(qe){return[null,qe]}).catch(function(qe){return ce&&Object.assign(qe,ce),[qe,void 0]});var Qp=En;function zm(){this.__data__=new Qp,this.size=0}var I0=zm;function Um(J){var ce=this.__data__,qe=ce.delete(J);return this.size=ce.size,qe}var Dg=Um;function Ig(J){return this.__data__.get(J)}var $u=Ig;function mp(J){return this.__data__.has(J)}var Hm=mp,Wm=En,R0=Nc,kd=nd,Zm=200;function L0(J,ce){var qe=this.__data__;if(qe instanceof Wm){var Nt=qe.__data__;if(!R0||Nt.length<Zm-1)return Nt.push([J,ce]),this.size=++qe.size,this;qe=this.__data__=new kd(Nt)}return qe.set(J,ce),this.size=qe.size,this}var Km=L0,Jp=En,Gm=I0,Ym=Dg,uh=$u,Qm=Hm,Mf=Km;function Eu(J){var ce=this.__data__=new Jp(J);this.size=ce.size}Eu.prototype.clear=Gm,Eu.prototype.delete=Ym,Eu.prototype.get=uh,Eu.prototype.has=Qm,Eu.prototype.set=Mf;var sd=Eu,Hf="__lodash_hash_undefined__";function gp(J){return this.__data__.set(J,Hf),this}var eu=gp;function j0(J){return this.__data__.has(J)}var B0=j0,Rg=nd,N0=eu,Wf=B0;function Zf(J){var ce=-1,qe=J==null?0:J.length;for(this.__data__=new Rg;++ce<qe;)this.add(J[ce])}Zf.prototype.add=Zf.prototype.push=N0,Zf.prototype.has=Wf;var Jm=Zf;function Lg(J,ce){for(var qe=-1,Nt=J==null?0:J.length;++qe<Nt;)if(ce(J[qe],qe,J))return!0;return!1}var jg=Lg;function vp(J,ce){return J.has(ce)}var F0=vp,$0=Jm,Bg=jg,ad=F0,Xp=1,bp=2;function Xm(J,ce,qe,Nt,Ve,An){var Zn=qe&Xp,fn=J.length,zn=ce.length;if(fn!=zn&&!(Zn&&zn>fn))return!1;var cr=An.get(J),Dr=An.get(ce);if(cr&&Dr)return cr==ce&&Dr==J;var Hr=-1,pi=!0,xi=qe&bp?new $0:void 0;for(An.set(J,ce),An.set(ce,J);++Hr<fn;){var wi=J[Hr],Wi=ce[Hr];if(Nt)var Ai=Zn?Nt(Wi,wi,Hr,ce,J,An):Nt(wi,Wi,Hr,J,ce,An);if(Ai!==void 0){if(Ai)continue;pi=!1;break}if(xi){if(!Bg(ce,function(_o,Ko){if(!ad(xi,Ko)&&(wi===_o||Ve(wi,_o,qe,Nt,An)))return xi.push(Ko)})){pi=!1;break}}else if(!(wi===Wi||Ve(wi,Wi,qe,Nt,An))){pi=!1;break}}return An.delete(J),An.delete(ce),pi}var V0=Xm,z0=Ns,yp=z0.Uint8Array,U0=yp;function wp(J){var ce=-1,qe=Array(J.size);return J.forEach(function(Nt,Ve){qe[++ce]=[Ve,Nt]}),qe}var H0=wp;function W0(J){var ce=-1,qe=Array(J.size);return J.forEach(function(Nt){qe[++ce]=Nt}),qe}var qp=W0,Ph=Da,e0=U0,qm=Vl,eg=V0,tg=H0,t0=qp,n0=1,Z0=2,ng="[object Boolean]",Ng="[object Date]",ld="[object Error]",_p="[object Map]",K0="[object Number]",G0="[object RegExp]",Fg="[object Set]",$g="[object String]",xp="[object Symbol]",rg="[object ArrayBuffer]",ig="[object DataView]",og=Ph?Ph.prototype:void 0,Y0=og?og.valueOf:void 0;function Q0(J,ce,qe,Nt,Ve,An,Zn){switch(qe){case ig:if(J.byteLength!=ce.byteLength||J.byteOffset!=ce.byteOffset)return!1;J=J.buffer,ce=ce.buffer;case rg:return!(J.byteLength!=ce.byteLength||!An(new e0(J),new e0(ce)));case ng:case Ng:case K0:return qm(+J,+ce);case ld:return J.name==ce.name&&J.message==ce.message;case G0:case $g:return J==ce+"";case _p:var fn=tg;case Fg:var zn=Nt&n0;if(fn||(fn=t0),J.size!=ce.size&&!zn)return!1;var cr=Zn.get(J);if(cr)return cr==ce;Nt|=Z0,Zn.set(J,ce);var Dr=eg(fn(J),fn(ce),Nt,Ve,An,Zn);return Zn.delete(J),Dr;case xp:if(Y0)return Y0.call(J)==Y0.call(ce)}return!1}var Vg=Q0;function zg(J,ce){for(var qe=-1,Nt=ce.length,Ve=J.length;++qe<Nt;)J[Ve+qe]=ce[qe];return J}var sg=zg,ag=sg,J0=Cl;function X0(J,ce,qe){var Nt=ce(J);return J0(J)?Nt:ag(Nt,qe(J))}var L=X0;function G(J,ce){for(var qe=-1,Nt=J==null?0:J.length,Ve=0,An=[];++qe<Nt;){var Zn=J[qe];ce(Zn,qe,J)&&(An[Ve++]=Zn)}return An}var de=G;function yt(){return[]}var pn=yt,Wn=de,kr=pn,Lr=Object.prototype,ei=Lr.propertyIsEnumerable,Li=Object.getOwnPropertySymbols,Bi=Li?function(J){return J==null?[]:(J=Object(J),Wn(Li(J),function(ce){return ei.call(J,ce)}))}:kr,Yi=Bi;function Co(J,ce){for(var qe=-1,Nt=Array(J);++qe<J;)Nt[qe]=ce(qe);return Nt}var Jo=Co,ws=9007199254740991,Xs=/^(?:0|[1-9]\d*)$/;function _s(J,ce){var qe=typeof J;return ce=ce??ws,!!ce&&(qe=="number"||qe!="symbol"&&Xs.test(J))&&J>-1&&J%1==0&&J<ce}var aa=_s,qs=Jo,tu=Od,nu=Cl,ku=Du,zl=aa,Cd=Pr,dh=Object.prototype,q0=dh.hasOwnProperty;function $1(J,ce){var qe=nu(J),Nt=!qe&&tu(J),Ve=!qe&&!Nt&&ku(J),An=!qe&&!Nt&&!Ve&&Cd(J),Zn=qe||Nt||Ve||An,fn=Zn?qs(J.length,String):[],zn=fn.length;for(var cr in J)(ce||q0.call(J,cr))&&!(Zn&&(cr=="length"||Ve&&(cr=="offset"||cr=="parent")||An&&(cr=="buffer"||cr=="byteLength"||cr=="byteOffset")||zl(cr,zn)))&&fn.push(cr);return fn}var pb=$1,V1=pb,z1=Ri,mb=Zd;function U1(J){return mb(J)?V1(J):z1(J)}var lg=U1,em=L,Ug=Yi,H1=lg;function W1(J){return em(J,H1,Ug)}var Hg=W1,Wg=Hg,Z1=1,K1=Object.prototype,gb=K1.hasOwnProperty;function G1(J,ce,qe,Nt,Ve,An){var Zn=qe&Z1,fn=Wg(J),zn=fn.length,cr=Wg(ce),Dr=cr.length;if(zn!=Dr&&!Zn)return!1;for(var Hr=zn;Hr--;){var pi=fn[Hr];if(!(Zn?pi in ce:gb.call(ce,pi)))return!1}var xi=An.get(J),wi=An.get(ce);if(xi&&wi)return xi==ce&&wi==J;var Wi=!0;An.set(J,ce),An.set(ce,J);for(var Ai=Zn;++Hr<zn;){pi=fn[Hr];var _o=J[pi],Ko=ce[pi];if(Nt)var Ks=Zn?Nt(Ko,_o,pi,ce,J,An):Nt(_o,Ko,pi,J,ce,An);if(!(Ks===void 0?_o===Ko||Ve(_o,Ko,qe,Nt,An):Ks)){Wi=!1;break}Ai||(Ai=pi=="constructor")}if(Wi&&!Ai){var xo=J.constructor,ms=ce.constructor;xo!=ms&&"constructor"in J&&"constructor"in ce&&!(typeof xo=="function"&&xo instanceof xo&&typeof ms=="function"&&ms instanceof ms)&&(Wi=!1)}return An.delete(J),An.delete(ce),Wi}var Y1=G1,cg=sd,Zg=V0,ug=Vg,Q1=Y1,tm=$l,dg=Cl,J1=Du,X1=Pr,q1=1,Kg="[object Arguments]",Gg="[object Array]",Ja="[object Object]",Yg=Object.prototype,hg=Yg.hasOwnProperty;function Ep(J,ce,qe,Nt,Ve,An){var Zn=dg(J),fn=dg(ce),zn=Zn?Gg:tm(J),cr=fn?Gg:tm(ce);zn=zn==Kg?Ja:zn,cr=cr==Kg?Ja:cr;var Dr=zn==Ja,Hr=cr==Ja,pi=zn==cr;if(pi&&J1(J)){if(!J1(ce))return!1;Zn=!0,Dr=!1}if(pi&&!Dr)return An||(An=new cg),Zn||X1(J)?Zg(J,ce,qe,Nt,Ve,An):ug(J,ce,zn,qe,Nt,Ve,An);if(!(qe&q1)){var xi=Dr&&hg.call(J,"__wrapped__"),wi=Hr&&hg.call(ce,"__wrapped__");if(xi||wi){var Wi=xi?J.value():J,Ai=wi?ce.value():ce;return An||(An=new cg),Ve(Wi,Ai,qe,Nt,An)}}return pi?(An||(An=new cg),Q1(J,ce,qe,Nt,Ve,An)):!1}var Qg=Ep,fg=Qg,pg=oc;function nm(J,ce,qe,Nt,Ve){return J===ce?!0:J==null||ce==null||!pg(J)&&!pg(ce)?J!==J&&ce!==ce:fg(J,ce,qe,Nt,nm,Ve)}var Of=nm,Jg=Of;function ev(J,ce){return Jg(J,ce)}var rm=ev;const mg=uo(rm);function im(J,ce){for(var qe=-1,Nt=J==null?0:J.length;++qe<Nt&&ce(J[qe],qe,J)!==!1;);return J}var Xg=im,tv=ko,qg=Object.create,nv=function(){function J(){}return function(ce){if(!tv(ce))return{};if(qg)return qg(ce);J.prototype=ce;var qe=new J;return J.prototype=void 0,qe}}(),e1=nv;function rv(J){return function(ce,qe,Nt){for(var Ve=-1,An=Object(ce),Zn=Nt(ce),fn=Zn.length;fn--;){var zn=Zn[J?fn:++Ve];if(qe(An[zn],zn,An)===!1)break}return ce}}var iv=rv,ov=iv,t1=ov(),sv=t1,av=sv,lv=lg;function cv(J,ce){return J&&av(J,ce,lv)}var uv=cv,dv=sd,Kf=Of,vb=1,n1=2;function r1(J,ce,qe,Nt){var Ve=qe.length,An=Ve,Zn=!Nt;if(J==null)return!An;for(J=Object(J);Ve--;){var fn=qe[Ve];if(Zn&&fn[2]?fn[1]!==J[fn[0]]:!(fn[0]in J))return!1}for(;++Ve<An;){fn=qe[Ve];var zn=fn[0],cr=J[zn],Dr=fn[1];if(Zn&&fn[2]){if(cr===void 0&&!(zn in J))return!1}else{var Hr=new dv;if(Nt)var pi=Nt(cr,Dr,zn,J,ce,Hr);if(!(pi===void 0?Kf(Dr,cr,vb|n1,Nt,Hr):pi))return!1}}return!0}var kp=r1,hv=ko;function fv(J){return J===J&&!hv(J)}var Gf=fv,om=Gf,sm=lg;function pv(J){for(var ce=sm(J),qe=ce.length;qe--;){var Nt=ce[qe],Ve=J[Nt];ce[qe]=[Nt,Ve,om(Ve)]}return ce}var mv=pv;function r0(J,ce){return function(qe){return qe==null?!1:qe[J]===ce&&(ce!==void 0||J in Object(qe))}}var am=r0,Xh=kp,bb=mv,yb=am;function gg(J){var ce=bb(J);return ce.length==1&&ce[0][2]?yb(ce[0][0],ce[0][1]):function(qe){return qe===J||Xh(qe,J,ce)}}var gv=gg;function vv(J,ce){return J!=null&&ce in Object(J)}var bv=vv,i0=Fp,lm=Od,cm=Cl,yv=aa,wv=Pu,i1=cp;function _v(J,ce,qe){ce=i0(ce,J);for(var Nt=-1,Ve=ce.length,An=!1;++Nt<Ve;){var Zn=i1(ce[Nt]);if(!(An=J!=null&&qe(J,Zn)))break;J=J[Zn]}return An||++Nt!=Ve?An:(Ve=J==null?0:J.length,!!Ve&&wv(Ve)&&yv(Zn,Ve)&&(cm(J)||lm(J)))}var vg=_v,um=bv,o1=vg;function s1(J,ce){return J!=null&&o1(J,ce,um)}var a1=s1,l1=Of,xv=Zs,Ev=a1,Vd=ed,dm=Gf,hm=am,bg=cp,kv=1,yg=2;function c1(J,ce){return Vd(J)&&dm(ce)?hm(bg(J),ce):function(qe){var Nt=xv(qe,J);return Nt===void 0&&Nt===ce?Ev(qe,J):l1(ce,Nt,kv|yg)}}var u1=c1;function Cv(J){return J}var Tv=Cv;function wb(J){return function(ce){return ce?.[J]}}var _b=wb,d1=y0;function Pf(J){return function(ce){return d1(ce,J)}}var h1=Pf,f1=_b,Sv=h1,p1=ed,Av=cp;function wg(J){return p1(J)?f1(Av(J)):Sv(J)}var o0=wg,Mv=gv,cd=u1,m1=Tv,Ov=Cl,Pv=o0;function _g(J){return typeof J=="function"?J:J==null?m1:typeof J=="object"?Ov(J)?cd(J[0],J[1]):Mv(J):Pv(J)}var Dv=_g,Iv=en,Rv=Iv(Object.getPrototypeOf,Object),g1=Rv,Lv=Xg,Cp=e1,fm=uv,jv=Dv,Bv=g1,v1=Cl,Nv=Du,xg=ud,Td=ko,Tp=Pr;function Fv(J,ce,qe){var Nt=v1(J),Ve=Nt||Nv(J)||Tp(J);if(ce=jv(ce),qe==null){var An=J&&J.constructor;Ve?qe=Nt?new An:[]:Td(J)?qe=xg(An)?Cp(Bv(J)):{}:qe={}}return(Ve?Lv:fm)(J,function(Zn,fn,zn){return ce(qe,Zn,fn,zn)}),qe}var b1=Fv;const Eg=uo(b1);function Cu(J,ce){function qe(Nt,Ve){return Eg(Nt,(An,Zn,fn)=>(mg(Zn,Ve[fn])||(An[fn]=fc(Zn)&&fc(Ve[fn])?qe(Zn,Ve[fn]):Zn),An))}return qe(J,ce)}/**
 *
 * Returns a normalized error message
 *
 * @deprecated
 * @preserve
 */function y1(J,{getTrad:ce}){const qe=M0(J,ce);return qe&&"errors"in qe?qe.errors.reduce((Nt,Ve)=>("path"in Ve.values&&(Nt[Ve.values.path]={id:Ve.id,defaultMessage:Ve.defaultMessage}),Nt),{}):qe?.defaultMessage}const $v=J=>J&&J[0]==="."?J.substr(1):J,pm=(J,ce)=>!J||!ce?{}:{[J]:ce[J]},Vv=J=>(J?.inner||[]).reduce((ce,qe)=>(qe.path&&(ce[qe.path.split("[").join(".").split("]").join("")]={id:qe.message,defaultMessage:qe.message,values:pm(qe?.type,qe?.params)}),ce),{}),zv=J=>J&&J.startsWith("/")?`${window.strapi.backendURL}${J}`:J,Uv=(J,ce)=>{if(!ce)throw new TypeError("pluginId can't be empty");return Object.keys(J).reduce((qe,Nt)=>(qe[`${ce}.${Nt}`]=J[Nt],qe),{})};function Hv(J,ce,qe){return J===J&&(qe!==void 0&&(J=J<=qe?J:qe),ce!==void 0&&(J=J>=ce?J:ce)),J}var w1=Hv,Wv=/\s/;function Zv(J){for(var ce=J.length;ce--&&Wv.test(J.charAt(ce)););return ce}var Kv=Zv,_1=Kv,Gv=/^\s+/;function kg(J){return J&&J.slice(0,_1(J)+1).replace(Gv,"")}var Cg=kg,Yv=Cg,x1=ko,Sp=nh,Ap=0/0,Qv=/^[-+]0x[0-9a-f]+$/i,Yf=/^0b[01]+$/i,Tg=/^0o[0-7]+$/i,Jv=parseInt;function E1(J){if(typeof J=="number")return J;if(Sp(J))return Ap;if(x1(J)){var ce=typeof J.valueOf=="function"?J.valueOf():J;J=x1(ce)?ce+"":ce}if(typeof J!="string")return J===0?J:+J;J=Yv(J);var qe=Yf.test(J);return qe||Tg.test(J)?Jv(J.slice(2),qe?2:8):Qv.test(J)?Ap:+J}var Xv=E1,qv=Xv,k1=1/0,xb=17976931348623157e292;function Eb(J){if(!J)return J===0?J:0;if(J=qv(J),J===k1||J===-k1){var ce=J<0?-1:1;return ce*xb}return J===J?J:0}var eb=Eb,C1=eb;function tb(J){var ce=C1(J),qe=ce%1;return ce===ce?qe?ce-qe:ce:0}var kb=tb,nb=w1,rb=g0,T1=kb,S1=v0;function ib(J,ce,qe){return J=S1(J),qe=qe==null?0:nb(T1(qe),0,J.length),ce=rb(ce),J.slice(qe,qe+ce.length)==ce}var A1=ib;const M1=uo(A1);async function ob(J){return J instanceof Response?J.json():J}async function s0(J,ce=!0){return J.status>=200&&J.status<300||J.status===0?J:(J.status===401&&za.getToken()&&ce&&(za.clearAppStorage(),window.location.reload()),ob(J).then(qe=>{const Nt=new Error(J.statusText);throw Nt.response=J,Nt.response.payload=qe,Nt}).catch(()=>{const qe=new Error(J.statusText);throw qe.response=J,qe}))}function Qf(J){return Object.keys(J).map(ce=>`${encodeURIComponent(ce)}=${encodeURIComponent(J[ce])}`).join("&")}async function mm(J){return new Promise(ce=>{fetch(`${window.strapi.backendURL}/_health`,{method:"HEAD",mode:"no-cors",keepalive:!1,headers:{"Content-Type":"application/json"}}).then(qe=>{if(qe.status>=400)throw new Error("not available");ce(J)}).catch(()=>{setTimeout(()=>mm(J).then(ce),100)})})}const O1=bd(console.warn);async function sb(J,ce={},qe,Nt=!0,{noAuth:Ve}={noAuth:!1}){O1("The `request` function is deprecated and will be removed in the next major version. Please use `useFetchClient` instead."),ce.headers||(ce.headers=Object.assign({"Content-Type":"application/json"},ce.headers));const An=za.getToken();if(An&&!Ve&&(ce.headers=Object.assign({Authorization:`Bearer ${An}`},ce.headers)),J=M1(J,"/")?`${window.strapi.backendURL}${J}`:J,ce&&ce.params){const Zn=Qf(ce.params);J=`${J}?${Zn}`}return ce&&ce.body&&Nt&&(ce.body=JSON.stringify(ce.body)),fetch(J,ce).then(s0).then(ob).then(Zn=>qe?mm(Zn):Zn)}const P1=(J,ce)=>`${J}${Math.floor(ce*255).toString(16).padStart(2,"0")}`,Sg={onClick:J=>J.stopPropagation(),role:"button","aria-hidden":!0},D1=({fn:J,condition:ce=!0})=>{if(ce)return{style:{cursor:"pointer"},onClick:J}},Cb=()=>React.createElement("div",Sg),ab={email:"components.Input.error.validation.email",json:"components.Input.error.validation.json",lowercase:"components.Input.error.validation.lowercase",max:"components.Input.error.validation.max",maxLength:"components.Input.error.validation.maxLength",min:"components.Input.error.validation.min",minLength:"components.Input.error.validation.minLength",regex:"components.Input.error.validation.regex",required:"components.Input.error.validation.required",unique:"components.Input.error.validation.unique",integer:"component.Input.error.validation.integer"};function Hb(J){const qe=()=>{};return{request:(...Ve)=>(qe(),J.request(...Ve)),get:(...Ve)=>(qe(),J.get(...Ve)),head:(...Ve)=>(qe(),J.head(...Ve)),delete:(...Ve)=>(qe(),J.delete(...Ve)),options:(...Ve)=>(qe(),J.options(...Ve)),post:(...Ve)=>(qe(),J.post(...Ve)),put:(...Ve)=>(qe(),J.put(...Ve)),patch:(...Ve)=>(qe(),J.patch(...Ve)),getUri:(...Ve)=>(qe(),J.getUri(...Ve))}}},78594:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M12 2a8.5 8.5 0 0 1 8.5 8.5c0 6.5-5.5 12-8.5 12s-8.5-5.5-8.5-12A8.5 8.5 0 0 1 12 2Zm5.5 10a4.5 4.5 0 0 0-4.475 4.975 4.5 4.5 0 0 0 4.95-4.95A4.54 4.54 0 0 0 17.5 12Zm-11 0c-.16 0-.319.008-.475.025a4.5 4.5 0 0 0 4.95 4.95A4.5 4.5 0 0 0 6.5 12Z"})}),s=n},61654:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#8E8EA9",d:"M14 10v4h-4v-4h4Zm2 0h5v4h-5v-4Zm-2 11h-4v-5h4v5Zm2 0v-5h5v4a1 1 0 0 1-1 1h-4ZM14 3v5h-4V3h4Zm2 0h4a1 1 0 0 1 1 1v4h-5V3Zm-8 7v4H3v-4h5Zm0 11H4a1 1 0 0 1-1-1v-4h5v5ZM8 3v5H3V4a1 1 0 0 1 1-1h4Z"})}),s=n},80278:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M3 10h18v10.004c0 .55-.445.996-.993.996H3.993A.994.994 0 0 1 3 20.004V10Zm6 2v2h6v-2H9ZM2 4c0-.552.455-1 .992-1h18.016c.548 0 .992.444.992 1v4H2V4Z"})}),s=n},527:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M13.3 0c.11 0 .2.09.2.2v18.06l8.238-8.239a.2.2 0 0 1 .283 0l1.837 1.838a.2.2 0 0 1 0 .282L12.141 23.86a.2.2 0 0 1-.283 0L.141 12.14a.2.2 0 0 1 0-.282l1.837-1.838a.2.2 0 0 1 .283 0L10.5 18.26V.2c0-.11.09-.2.2-.2h2.6Z"})}),s=n},97695:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M24 13.3a.2.2 0 0 1-.2.2H5.74l8.239 8.239a.2.2 0 0 1 0 .282L12.14 23.86a.2.2 0 0 1-.282 0L.14 12.14a.2.2 0 0 1 0-.282L11.86.14a.2.2 0 0 1 .282 0L13.98 1.98a.2.2 0 0 1 0 .282L5.74 10.5H23.8c.11 0 .2.09.2.2v2.6Z"})}),s=n},98:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M0 10.7c0-.11.09-.2.2-.2h18.06l-8.239-8.239a.2.2 0 0 1 0-.282L11.86.14a.2.2 0 0 1 .282 0L23.86 11.86a.2.2 0 0 1 0 .282L12.14 23.86a.2.2 0 0 1-.282 0L10.02 22.02a.2.2 0 0 1 0-.282L18.26 13.5H.2a.2.2 0 0 1-.2-.2v-2.6Z"})}),s=n},49654:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M10.7 24a.2.2 0 0 1-.2-.2V5.74L2.26 13.979a.2.2 0 0 1-.283 0L.141 12.14a.2.2 0 0 1 0-.282L11.858.14a.2.2 0 0 1 .283 0L23.858 11.86a.2.2 0 0 1 0 .282l-1.837 1.838a.2.2 0 0 1-.283 0L13.5 5.74V23.8a.2.2 0 0 1-.2.2h-2.6Z"})}),s=n},99159:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M14 13.5V8a4 4 0 1 0-8 0v5.5a6.5 6.5 0 0 0 13 0V4h2v9.5a8.5 8.5 0 1 1-17 0V8a6 6 0 1 1 12 0v5.5a3.5 3.5 0 1 1-7 0V8h2v5.5a1.5 1.5 0 1 0 3 0Z"})}),s=n},91797:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M22 20H2v-2h1v-6.969C3 6.043 7.03 2 12 2s9 4.043 9 9.031V18h1v2ZM9.5 21h5a2.5 2.5 0 0 1-5 0Z"})}),s=n},50223:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 34 25",...a,children:[(0,r.jsx)("rect",{width:33,height:23,x:.5,y:1,fill:"#EAF5FF",stroke:"#B8E1FF",rx:2.5}),(0,r.jsx)("path",{fill:"#0C75AF",d:"M18.901 9.828a1.043 1.043 0 1 0 0-2.086 1.043 1.043 0 0 0 0 2.086Z"}),(0,r.jsx)("path",{fill:"#0C75AF",d:"M19.703 8.785a.81.81 0 0 1-.512.748.814.814 0 0 1-.91-.239.804.804 0 0 1 .753-1.301.814.814 0 0 1 .669.792c.005.311.487.311.483 0a1.308 1.308 0 0 0-.867-1.215 1.288 1.288 0 0 0-1.4.39 1.296 1.296 0 0 0-.119 1.489c.283.468.83.697 1.364.596.597-.113 1.012-.664 1.021-1.258.005-.314-.477-.314-.482-.002ZM18.901 13.488a1.043 1.043 0 1 0 0-2.086 1.043 1.043 0 0 0 0 2.086Z"}),(0,r.jsx)("path",{fill:"#0C75AF",d:"M19.703 12.445a.81.81 0 0 1-.512.748.814.814 0 0 1-.91-.239.804.804 0 0 1 .753-1.301.812.812 0 0 1 .669.792c.005.311.487.311.483 0a1.307 1.307 0 0 0-.867-1.215 1.288 1.288 0 0 0-1.4.39 1.296 1.296 0 0 0-.119 1.489c.283.468.83.697 1.364.596.597-.113 1.012-.664 1.021-1.258.005-.314-.477-.314-.482-.002ZM18.901 17.247a1.043 1.043 0 1 0 0-2.086 1.043 1.043 0 0 0 0 2.086Z"}),(0,r.jsx)("path",{fill:"#0C75AF",d:"M19.703 16.204a.81.81 0 0 1-.512.748.814.814 0 0 1-.91-.239.804.804 0 0 1 .753-1.301.812.812 0 0 1 .669.792c.005.311.487.311.483 0a1.308 1.308 0 0 0-.867-1.215 1.288 1.288 0 0 0-1.4.39 1.296 1.296 0 0 0-.119 1.489c.283.468.83.698 1.364.596.597-.113 1.012-.664 1.021-1.258.005-.313-.477-.313-.482-.002ZM15.075 9.842a1.043 1.043 0 1 0 0-2.086 1.043 1.043 0 0 0 0 2.086Z"}),(0,r.jsx)("path",{fill:"#0C75AF",d:"M15.876 8.8a.81.81 0 0 1-.512.748.814.814 0 0 1-.91-.24.804.804 0 0 1 .753-1.301.81.81 0 0 1 .669.792c.005.312.488.312.483 0a1.308 1.308 0 0 0-.867-1.214 1.288 1.288 0 0 0-1.4.389 1.296 1.296 0 0 0-.119 1.49c.283.468.831.697 1.365.596.596-.114 1.011-.664 1.02-1.258.006-.314-.477-.314-.482-.003ZM15.075 13.503a1.043 1.043 0 1 0 0-2.086 1.043 1.043 0 0 0 0 2.086Z"}),(0,r.jsx)("path",{fill:"#0C75AF",d:"M15.876 12.46a.81.81 0 0 1-.512.748.814.814 0 0 1-.91-.24.804.804 0 0 1 .753-1.301.81.81 0 0 1 .669.792c.005.312.488.312.483 0a1.308 1.308 0 0 0-.867-1.214 1.288 1.288 0 0 0-1.4.389 1.296 1.296 0 0 0-.119 1.49c.283.468.831.697 1.365.596.596-.114 1.011-.664 1.02-1.258.006-.314-.477-.314-.482-.003ZM15.075 17.261a1.043 1.043 0 1 0 0-2.086 1.043 1.043 0 0 0 0 2.086Z"}),(0,r.jsx)("path",{fill:"#0C75AF",d:"M15.876 16.218a.81.81 0 0 1-.512.749.814.814 0 0 1-.91-.24.804.804 0 0 1 .753-1.301.808.808 0 0 1 .669.792c.005.312.488.312.483 0a1.308 1.308 0 0 0-.867-1.214 1.288 1.288 0 0 0-1.4.389 1.293 1.293 0 0 0-.119 1.487c.283.468.831.698 1.365.596.596-.113 1.011-.664 1.02-1.258.006-.311-.477-.311-.482 0Z"})]}),s=n},13588:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#32324D",fillRule:"evenodd",d:"M7.4 1.2H4.2v21.6h3.2V1.2Zm11.6 6a6 6 0 0 1-1.5 4 6.4 6.4 0 0 1-3.8 11.6H7.4v-3.2h6.3c1.8 0 3.3-1.4 3.3-3.2 0-1.8-1.5-3.2-3.3-3.2H7.4V10H13a2.8 2.8 0 0 0 0-5.6H7.4V1.2H13a6 6 0 0 1 6 6Z",clipRule:"evenodd"})}),s=n},86229:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M13 21v2.5l-3-2-3 2V21h-.5A3.5 3.5 0 0 1 3 17.5V5a3 3 0 0 1 3-3h14a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1h-7Zm-6-2v-2h6v2h6v-3H6.5a1.5 1.5 0 1 0 0 3H7ZM7 5v2h2V5H7Zm0 3v2h2V8H7Zm0 3v2h2v-2H7Z"})}),s=n},60518:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...a,children:[(0,r.jsx)("rect",{width:31,height:23,x:.5,y:.5,fill:"#EAFBE7",stroke:"#C6F0C2",rx:2.5}),(0,r.jsx)("path",{fill:"#328048",d:"M19.5 7h-7A4.505 4.505 0 0 0 8 11.5c0 2.481 2.019 4.5 4.5 4.5h7c2.481 0 4.5-2.019 4.5-4.5S21.981 7 19.5 7Zm0 8a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7Z"})]}),s=n},2196:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M7 5V2a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v3h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h4Zm10 8v-3h-2v3H9v-3H7v3H4v6h16v-6h-3ZM9 3v2h6V3H9Z"})}),s=n},42813:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"m13.289 6.216 4.939-3.841a1 1 0 0 1 1.32.082l2.995 2.994a1 1 0 0 1 .082 1.321l-3.84 4.938a7.504 7.504 0 0 1-7.283 9.292C8 21.002 3.5 19.5 1 18c3.98-3 3.047-4.81 3.5-6.5 1.058-3.95 4.842-6.257 8.789-5.284Zm3.413 1.879c.065.063.13.128.193.194l1.135 1.134 2.475-3.182-1.746-1.746-3.182 2.475 1.125 1.125Z"})}),s=n},58929:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#32324D",fillRule:"evenodd",d:"M3.64 7.23a2.14 2.14 0 1 1 0-4.27 2.14 2.14 0 0 1 0 4.27Zm4.98-3.25H22.5v2.37H8.62V3.98Zm-7.12 8.1a2.14 2.14 0 1 0 4.27 0 2.14 2.14 0 0 0-4.27 0Zm2.14 9.04a2.14 2.14 0 1 1 0-4.27 2.14 2.14 0 0 1 0 4.27ZM22.5 10.87H8.62v2.37H22.5v-2.37Zm-13.88 6.9H22.5v2.37H8.62v-2.37Z",clipRule:"evenodd"})}),s=n},54359:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M3.869 2.99V0h2.9v2.99h10.463V0h2.9v2.99h.629c2.768 0 3.203.498 3.239 2.926V21c0 2.124-.191 3-2.802 3H2.818C.208 24 0 23.363 0 20.785V6.21c.035-2.049.233-3.22 3.001-3.22h.868ZM2.32 20.369c0 .811.245.865.776.865h17.905c.53 0 .68-.012.68-.825V8.233c-.015-.627-.219-.737-.631-.737H2.907c-.413 0-.592.09-.587.573v12.3Z",clipRule:"evenodd"})}),s=n},86437:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M19 20H5v1a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-9l2.513-6.702A2 2 0 0 1 6.386 4h11.228a2 2 0 0 1 1.873 1.298L22 12v9a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1ZM4.136 12h15.728l-2.25-6H6.386l-2.25 6ZM6.5 17a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm11 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"})}),s=n},58471:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 14 8",...a,children:(0,r.jsx)("path",{fill:"#32324D",fillRule:"evenodd",d:"M14 .889a.86.86 0 0 1-.26.625L7.615 7.736A.834.834 0 0 1 7 8a.834.834 0 0 1-.615-.264L.26 1.514A.861.861 0 0 1 0 .889c0-.24.087-.45.26-.625A.834.834 0 0 1 .875 0h12.25c.237 0 .442.088.615.264a.86.86 0 0 1 .26.625Z",clipRule:"evenodd"})}),s=n},88392:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 14 8",...a,children:(0,r.jsx)("path",{fill:"#32324D",fillRule:"evenodd",d:"M0 7.111c0-.24.087-.449.26-.625L6.385.264A.834.834 0 0 1 7 0c.237 0 .442.088.615.264l6.125 6.222a.86.86 0 0 1 .26.625.86.86 0 0 1-.26.625.834.834 0 0 1-.615.264H.875a.834.834 0 0 1-.615-.264.86.86 0 0 1-.26-.625Z",clipRule:"evenodd"})}),s=n},8315:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-6c0-.67-.051-1.338-.153-2H20V5H4v3.153A13.1 13.1 0 0 0 2 8V4a1 1 0 0 1 1-1Zm10 18h-2a9 9 0 0 0-9-9v-2c6.075 0 11 4.925 11 11Zm-4 0H7a5 5 0 0 0-5-5v-2a7 7 0 0 1 7 7Zm-4 0H2v-3a3 3 0 0 1 3 3Zm9.373-4A13.033 13.033 0 0 0 6 8.627V7h12v10h-3.627Z"})}),s=n},45077:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M16 16a3 3 0 1 1 0 6 3 3 0 0 1 0-6ZM6 12c2.21 0 4 1.79 4 4s-1.79 4-4 4-4-1.79-4-4 1.79-4 4-4Zm8.5-10a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11Z"})}),s=n},87605:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M11 2.05v3.02a7 7 0 1 0 5.192 12.536l2.137 2.137A9.966 9.966 0 0 1 12 22C6.477 22 2 17.523 2 12c0-5.185 3.947-9.449 9-9.95ZM21.95 13a9.947 9.947 0 0 1-2.207 5.328l-2.137-2.136A6.958 6.958 0 0 0 18.929 13h3.022-.001ZM13.002 2.05a10.004 10.004 0 0 1 8.95 8.95H18.93a7.005 7.005 0 0 0-5.928-5.929V2.049v.001Z"})}),s=n},439:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M11 2.05V13h10.95c-.501 5.053-4.765 9-9.95 9-5.523 0-10-4.477-10-10 0-5.185 3.947-9.449 9-9.95Zm2-1.507C18.553 1.02 22.979 5.447 23.457 11H13V.543Z"})}),s=n},18226:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M20.727 2.97a.2.2 0 0 1 .286 0l2.85 2.89a.2.2 0 0 1 0 .28L9.554 20.854a.2.2 0 0 1-.285 0l-9.13-9.243a.2.2 0 0 1 0-.281l2.85-2.892a.2.2 0 0 1 .284 0l6.14 6.209L20.726 2.97Z"})}),s=n},54211:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12Zm-1.438-11.066L16.158 7.5 18 9.245l-7.438 7.18-4.462-4.1 1.84-1.745 2.622 2.354Z",clipRule:"evenodd"})}),s=n},14981:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 17 10",...a,children:(0,r.jsx)("path",{fill:"#32324D",d:"M15.06.06 8.94 6.167 2.82.06.94 1.94l8 8 8-8L15.06.06Z"})}),s=n},23463:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 10 16",...a,children:(0,r.jsx)("path",{fill:"#32324D",d:"M9.88 14.12 3.773 8 9.88 1.88 8 0 0 8l8 8 1.88-1.88Z"})}),s=n},33255:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 10 16",...a,children:(0,r.jsx)("path",{fill:"#32324D",d:"M0 1.88 6.107 8 0 14.12 1.88 16l8-8-8-8L0 1.88Z"})}),s=n},73924:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 17 10",...a,children:(0,r.jsx)("path",{fill:"#32324D",d:"m1.94 9.94 6.12-6.107 6.12 6.107 1.88-1.88-8-8-8 8 1.88 1.88Z"})}),s=n},59110:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M0 12C0 5.37 5.364 0 11.994 0S24 5.37 24 12s-5.376 12-12.006 12S0 18.63 0 12Zm2.4 0c0 5.304 4.296 9.6 9.6 9.6 5.304 0 9.6-4.296 9.6-9.6 0-5.304-4.296-9.6-9.6-9.6A9.597 9.597 0 0 0 2.4 12Zm8.4-6h1.8v6.3l5.4 3.204-.906 1.476L10.8 13.2V6Z",clipRule:"evenodd"})}),s=n},47090:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M17 7a8.003 8.003 0 0 0-7.493 5.19l1.874.703A6.002 6.002 0 0 1 23.001 15a6 6 0 0 1-6 6H7A6 6 0 0 1 5.007 9.339a7 7 0 0 1 13.757-2.143A8.027 8.027 0 0 0 17 7Z"})}),s=n},95165:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#32324D",d:"m9.8 15.5-6.3-3.7 6.3-3.6V5.3l-8.8 5v3l8.8 5v-2.8Zm4.4-7 6.3 3.6-6.3 3.7v2.9l8.8-5.1v-2.9l-8.8-5v2.8Z"})}),s=n},89776:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 32",...a,children:[(0,r.jsx)("path",{fill:"#D9822F",d:"M0 4a4 4 0 0 1 4-4h24a4 4 0 0 1 4 4v24a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V4Z"}),(0,r.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M17.143 18.659v2.912l6.856-3.878v-2.815L17.143 11v2.906l4.16 2.38-4.16 2.373Zm-2.287 0-4.16-2.374 4.16-2.38V11L8 14.877v2.816l6.856 3.878v-2.912Z",clipRule:"evenodd"})]}),s=n},40989:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M2.68 9.192c-.6.276-2.114 1.18-2.306 1.303a.792.792 0 0 0-.374.68v1.65a.797.797 0 0 0 .384.687c.254.16 1.73 1.042 2.306 1.303l.744 1.8c-.24.634-.67 2.333-.72 2.554a.797.797 0 0 0 .216.744l1.167 1.166a.801.801 0 0 0 .744.216l.03-.008c.36-.092 1.946-.498 2.523-.712l1.8.744c.276.6 1.181 2.115 1.304 2.307a.805.805 0 0 0 .679.374h1.649a.797.797 0 0 0 .686-.384c.16-.254 1.042-1.73 1.303-2.306l1.8-.744c.634.24 2.333.67 2.554.72a.797.797 0 0 0 .744-.216l1.166-1.167a.803.803 0 0 0 .216-.744l-.008-.03c-.092-.36-.498-1.946-.712-2.523l.744-1.8c.6-.276 2.115-1.181 2.307-1.304a.804.804 0 0 0 .374-.679v-1.649a.796.796 0 0 0-.382-.679c-.254-.16-1.73-1.041-2.306-1.303l-.744-1.8c.24-.634.67-2.333.72-2.554a.796.796 0 0 0-.216-.744l-1.166-1.173a.802.802 0 0 0-.744-.216l-.03.008c-.361.092-1.947.498-2.524.712l-1.8-.744c-.276-.6-1.18-2.115-1.303-2.307a.803.803 0 0 0-.68-.374h-1.65a.797.797 0 0 0-.68.382c-.16.254-1.041 1.73-1.303 2.306l-1.8.744c-.634-.24-2.333-.67-2.554-.72a.797.797 0 0 0-.744.216L2.921 4.094a.802.802 0 0 0-.216.744l.008.03c.092.361.498 1.947.712 2.524l-.744 1.8ZM12 17a5 5 0 1 0 0-10 5 5 0 0 0 0 10Z",clipRule:"evenodd"})}),s=n},8158:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 22 22",...a,children:(0,r.jsx)("path",{fill:"#32324D",d:"M5 5H0v2.5h7.5V0H5v5Zm17 0h-5.1V0h-2.5v7.5h7.5V5ZM7.5 14.4H0v2.5h5v5h2.5v-7.5Zm9.4 2.5h5v-2.5h-7.5v7.5h2.5v-5Z"})}),s=n},45742:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...a,children:[(0,r.jsx)("rect",{width:31,height:23,x:.5,y:.5,fill:"#4945FF",stroke:"#4945FF",rx:2.5}),(0,r.jsx)("path",{fill:"#fff",d:"M15.328 10.54h1.723c.012-.089.012-.165.012-.253 0-1.676-1.471-2.959-3.41-2.959-2.696 0-4.647 2.22-4.647 5.344 0 2.15 1.383 3.545 3.504 3.545 2.045 0 3.597-1.154 3.967-2.936h-1.752c-.276.826-1.102 1.371-2.063 1.371-1.137 0-1.846-.802-1.846-2.103 0-2.08 1.19-3.65 2.725-3.65 1.037 0 1.746.62 1.787 1.558v.082ZM21.053 16l1.488-6.943h2.531l.31-1.512H18.54l-.31 1.512h2.53L19.272 16h1.782Z"})]}),s=n},88291:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M3.98.027a4.485 4.485 0 0 0-1.64.507C.885 1.308 0 2.802 0 4.485 0 6.759 1.577 8.628 3.828 9.02c.267.047.715.06 2.037.06H7.56v5.84H5.95c-.928 0-1.762.019-1.97.044a4.474 4.474 0 0 0-1.445.435C.974 16.165 0 17.747 0 19.515c0 1.229.451 2.328 1.304 3.181a4.387 4.387 0 0 0 6.234.002c.573-.572.945-1.225 1.174-2.058l.105-.38.014-2.01.014-2.01h6.31l.014 2.01.014 2.01.105.38c.39 1.419 1.329 2.5 2.624 3.022.536.217.902.296 1.491.326a4.345 4.345 0 0 0 3.294-1.293c.85-.85 1.303-1.955 1.303-3.18 0-2.327-1.7-4.271-3.98-4.551-.208-.025-1.042-.044-1.97-.044h-1.61V9.08h1.695c1.832 0 2.058-.019 2.712-.224C22.719 8.269 24 6.492 24 4.485c0-1.185-.44-2.297-1.231-3.109C21.429-.001 19.426-.381 17.73.42c-1.244.588-2.069 1.58-2.442 2.94l-.105.38-.014 2.03-.014 2.03h-6.31l-.014-2.03-.014-2.03-.105-.38C8.427 2.323 7.877 1.498 7.06.883 6.712.621 5.998.269 5.6.163 5.094.028 4.427-.028 3.98.027m1.132 1.317c.932.192 1.765.871 2.185 1.782.249.539.263.691.263 2.816v1.906l-1.73-.019c-1.853-.02-1.992-.034-2.509-.242-.422-.171-.689-.355-1.081-.747-.526-.527-.779-.982-.902-1.625-.077-.399-.074-1.102.006-1.487.234-1.136 1.227-2.14 2.357-2.382a4.203 4.203 0 0 1 1.411-.002m15.16 0c1.15.237 2.147 1.234 2.384 2.384.08.385.083 1.088.006 1.487-.123.643-.376 1.098-.902 1.625-.392.392-.659.576-1.081.747-.517.208-.656.222-2.509.242l-1.73.019V5.942c0-2.125.014-2.277.263-2.816.414-.898 1.247-1.584 2.158-1.78a4.203 4.203 0 0 1 1.411-.002M15.16 12v2.96H8.84V9.04h6.32V12m-7.6 6.082c0 2.099-.015 2.254-.263 2.792a3.182 3.182 0 0 1-2.19 1.788c-.36.081-1.019.079-1.392-.005-1.16-.26-2.136-1.241-2.371-2.385-.129-.622-.063-1.504.15-2.032.347-.859 1.148-1.614 2.017-1.898.371-.121.558-.133 2.319-.137l1.73-.005v1.882m12.86-1.766c.943.314 1.728 1.037 2.086 1.924.208.516.279 1.426.156 2.007a3.185 3.185 0 0 1-2.377 2.41c-.373.084-1.032.086-1.392.005a3.182 3.182 0 0 1-2.19-1.788c-.248-.538-.263-.693-.263-2.795v-1.884l1.85.014c1.811.014 1.856.016 2.13.107"})}),s=n},35814:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...a,children:[(0,r.jsx)("rect",{width:31,height:23,x:.5,y:.5,fill:"#F6F6F9",stroke:"#DCDCE4",rx:2.5}),(0,r.jsx)("path",{fill:"#666687",fillRule:"evenodd",d:"M13.535 8.768c0 .116-.011.229-.032.339l3.013 1.776 2.985-1.76a1.768 1.768 0 1 1 .519.93l-2.982 1.757v2.477a1.768 1.768 0 1 1-1.048-.044v-2.435l-2.997-1.767a1.768 1.768 0 1 1 .542-1.274Z",clipRule:"evenodd"}),(0,r.jsx)("path",{fill:"#666687",d:"m13.503 9.107-.05-.01-.006.035.03.018.026-.043Zm3.013 1.776-.025.043.025.014.025-.014-.025-.043Zm2.985-1.76.025.044.031-.018-.007-.035-.05.01Zm.518.93.035-.036-.027-.026-.033.02.026.042Zm-2.98 1.757-.026-.043-.025.014v.029h.05Zm0 2.477h-.05v.035l.032.012.017-.047Zm-1.049-.044.013.048.037-.01v-.038h-.05Zm0-2.435h.05v-.029l-.024-.014-.026.043Zm-2.997-1.767.025-.043-.033-.019-.027.027.035.035Zm.559-.925c.022-.113.033-.23.033-.348h-.1c0 .112-.01.223-.031.33l.098.018Zm2.99 1.723-3.014-1.775-.05.086 3.013 1.775.05-.086Zm2.933-1.758-2.984 1.758.05.086 2.985-1.758-.05-.086Zm-.06-.313c0 .125.013.247.037.366l.098-.02a1.723 1.723 0 0 1-.035-.346h-.1Zm1.818-1.818a1.818 1.818 0 0 0-1.818 1.818h.1c0-.949.769-1.718 1.718-1.718v-.1Zm1.817 1.818a1.818 1.818 0 0 0-1.817-1.818v.1c.948 0 1.717.769 1.717 1.718h.1Zm-1.817 1.817a1.818 1.818 0 0 0 1.817-1.817h-.1c0 .948-.769 1.717-1.717 1.717v.1Zm-1.248-.495c.326.307.765.495 1.248.495v-.1c-.457 0-.872-.178-1.18-.468l-.068.073Zm-2.921 1.763 2.98-1.757-.05-.086-2.981 1.757.05.086Zm.024 2.434V11.81h-.1v2.477h.1Zm-.067.047a1.718 1.718 0 0 1 1.14 1.618h.1c0-.79-.503-1.46-1.206-1.712l-.034.094Zm1.14 1.618c0 .948-.77 1.717-1.718 1.717v.1a1.817 1.817 0 0 0 1.817-1.817h-.1Zm-1.718 1.717a1.718 1.718 0 0 1-1.718-1.717h-.1c0 1.004.814 1.817 1.818 1.817v-.1Zm-1.718-1.717c0-.797.543-1.467 1.278-1.66l-.026-.098a1.818 1.818 0 0 0-1.352 1.758h.1Zm1.215-4.144v2.435h.1v-2.435h-.1Zm-2.973-1.723 2.998 1.766.05-.086-2.997-1.767-.05.087Zm-1.2.5c.49 0 .934-.193 1.26-.507l-.069-.072c-.309.296-.728.48-1.19.48v.1ZM9.95 8.768c0 1.003.814 1.817 1.818 1.817v-.1a1.718 1.718 0 0 1-1.718-1.717h-.1Zm1.818-1.818A1.818 1.818 0 0 0 9.95 8.768h.1c0-.949.769-1.718 1.717-1.718v-.1Zm1.817 1.818a1.818 1.818 0 0 0-1.818-1.818v.1c.95 0 1.718.769 1.718 1.718h.1Z"})]}),s=n},46754:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#8E8EA9",d:"M8 5h3v9H8v3H6v-3H3V5h3V2h2v3Zm10 5h3v9h-3v3h-2v-3h-3v-9h3V7h2v3Z"})}),s=n},1578:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M20.571 21.429h-3.428V24h3.428v-2.571ZM20.571 17.143V3.429H7.714v3.428h9.429v10.286H6.857V0H3.43v3.429H0v3.428h3.429v13.714H24v-3.428h-3.429Z"})}),s=n},35771:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M24 2.417 21.583 0 12 9.583 2.417 0 0 2.417 9.583 12 0 21.583 2.417 24 12 14.417 21.583 24 24 21.583 14.417 12 24 2.417Z"})}),s=n},9215:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M24 12c0 6.627-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0s12 5.373 12 12Zm-8.806-4 .806.806L12.806 12 16 15.194l-.806.806L12 12.806 8.806 16 8 15.194 11.194 12 8 8.806 8.806 8 12 11.194 15.194 8Z",clipRule:"evenodd"})}),s=n},15971:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M2.8 5.2 7 8l4.186-5.86a1 1 0 0 1 1.628 0L17 8l4.2-2.8a1 1 0 0 1 1.547.95l-1.643 13.967a1 1 0 0 1-.993.883H3.889a1 1 0 0 1-.993-.883L1.253 6.149A1 1 0 0 1 2.8 5.2ZM12 15a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"})}),s=n},64729:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 448 512",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M216.3 2c4.8-2.6 10.5-2.6 15.3 0l190.7 104c5.1 2.8 8.3 8.2 8.3 14s-3.2 11.2-8.3 14L231.7 238c-4.8 2.6-10.5 2.6-15.3 0L25.7 134c-5.1-2.8-8.3-8.2-8.3-14s3.2-11.2 8.3-14L216.3 2zM23.7 170l176 96c5.1 2.8 8.3 8.2 8.3 14v216c0 5.6-3 10.9-7.8 13.8s-10.9 3-15.8.3L8.3 414c-5.1-2.8-8.3-8.1-8.3-14V184c0-5.6 3-10.9 7.8-13.8s10.9-3 15.8-.3zm400.7 0c5-2.7 11-2.6 15.8.3s7.8 8.1 7.8 13.8V400c0 5.9-3.2 11.2-8.3 14l-176 96c-5 2.7-11 2.6-15.8-.3s-7.8-8.1-7.8-13.8V280c0-5.9 3.2-11.2 8.3-14l176-96z"})}),s=n},61511:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M5 3h15a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2h-2v3a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4V4a1 1 0 0 1 1-1Zm13 2v3h2V5h-2ZM2 19h18v2H2v-2Z"})}),s=n},47648:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M13.91 12.36 17 20.854l-2.818 1.026-3.092-8.494-4.172 3.156 1.49-14.909 10.726 10.463-5.224.264Z"})}),s=n},19044:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M3 13h8V3H3v10Zm0 8h8v-6H3v6Zm10 0h8V11h-8v10Zm0-18v6h8V3h-8Z"})}),s=n},89193:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M21 9.5v3c0 2.485-4.03 4.5-9 4.5s-9-2.015-9-4.5v-3c0 2.485 4.03 4.5 9 4.5s9-2.015 9-4.5Zm-18 5c0 2.485 4.03 4.5 9 4.5s9-2.015 9-4.5v3c0 2.485-4.03 4.5-9 4.5s-9-2.015-9-4.5v-3Zm9-2.5c-4.97 0-9-2.015-9-4.5S7.03 3 12 3s9 2.015 9 4.5-4.03 4.5-9 4.5Z"})}),s=n},35498:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...a,children:[(0,r.jsx)("path",{fill:"#FDF4DC",stroke:"#FAE7B9",d:"M.5 3A2.5 2.5 0 0 1 3 .5h26A2.5 2.5 0 0 1 31.5 3v18a2.5 2.5 0 0 1-2.5 2.5H3A2.5 2.5 0 0 1 .5 21V3Z"}),(0,r.jsx)("path",{fill:"#D9822F",fillRule:"evenodd",d:"M11.934 7.495V6h1.45v1.495h5.232V6h1.45v1.495h.314c1.385 0 1.602.249 1.62 1.463V16.5c0 1.062-.096 1.5-1.4 1.5h-9.19c-1.306 0-1.41-.318-1.41-1.607V9.105c.018-1.025.117-1.61 1.5-1.61h.434Zm-.774 8.687c0 .406.123.433.388.433h8.953c.265 0 .34-.007.34-.413v-6.087c-.008-.314-.11-.369-.316-.369h-9.072c-.206 0-.296.045-.293.287v6.15Z",clipRule:"evenodd"})]}),s=n},77190:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#7289DA",d:"M20.04 0H3.96A2.464 2.464 0 0 0 1.5 2.468v16.2a2.464 2.464 0 0 0 2.46 2.469h13.608l-.636-2.217 1.536 1.426 1.452 1.342 2.58 2.277V2.468A2.464 2.464 0 0 0 20.04 0Zm-4.632 15.65s-.432-.516-.792-.972c1.572-.443 2.172-1.425 2.172-1.425-.492.323-.96.55-1.38.707-.6.251-1.176.419-1.74.515a8.417 8.417 0 0 1-3.108-.012 10.086 10.086 0 0 1-1.764-.515 7.053 7.053 0 0 1-.876-.408c-.036-.024-.072-.036-.108-.06a.166.166 0 0 1-.048-.036 4.202 4.202 0 0 1-.336-.203s.576.958 2.1 1.414c-.36.455-.804.994-.804.994-2.652-.084-3.66-1.821-3.66-1.821 0-3.859 1.728-6.986 1.728-6.986 1.728-1.294 3.372-1.258 3.372-1.258l.12.144c-2.16.623-3.156 1.57-3.156 1.57s.264-.144.708-.348c1.284-.563 2.304-.72 2.724-.755.072-.012.132-.024.204-.024A9.792 9.792 0 0 1 16.8 7.297s-.948-.898-2.988-1.521l.168-.192s1.644-.036 3.372 1.258c0 0 1.728 3.127 1.728 6.986 0 0-1.02 1.737-3.672 1.821Zm-5.58-5.597c-.684 0-1.224.6-1.224 1.33 0 .731.552 1.33 1.224 1.33.684 0 1.224-.599 1.224-1.33.012-.73-.54-1.33-1.224-1.33Zm4.38 0c-.684 0-1.224.6-1.224 1.33 0 .731.552 1.33 1.224 1.33.684 0 1.224-.599 1.224-1.33 0-.73-.54-1.33-1.224-1.33Z"})}),s=n},13956:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:[(0,r.jsx)("path",{fill:"#231F20",d:"M12.103 0C5.533 0 0 5.278 0 11.79V24l12.1-.012c6.57 0 11.9-5.481 11.9-11.992C24 5.486 18.666 0 12.103 0Z"}),(0,r.jsx)("path",{fill:"#FFF9AE",d:"M12.22 4.564a7.43 7.43 0 0 0-3.644.956 7.346 7.346 0 0 0-2.692 2.614 7.26 7.26 0 0 0-.149 7.22L4.4 19.606l4.793-1.072a7.433 7.433 0 0 0 6.355-.14 7.36 7.36 0 0 0 2.513-2.057 7.28 7.28 0 0 0 1.372-2.93 7.243 7.243 0 0 0-.035-3.228A7.281 7.281 0 0 0 17.96 7.28a7.365 7.365 0 0 0-2.557-2.002 7.432 7.432 0 0 0-3.178-.715h-.007Z"}),(0,r.jsx)("path",{fill:"#00AEEF",d:"M18.071 7.426a7.262 7.262 0 0 1 1.51 4.499 7.264 7.264 0 0 1-1.595 4.47 7.38 7.38 0 0 1-4.028 2.558 7.437 7.437 0 0 1-4.765-.43L4.4 19.61l4.88-.571a7.432 7.432 0 0 0 5.181.858 7.381 7.381 0 0 0 4.443-2.778 7.258 7.258 0 0 0-.833-9.693Z"}),(0,r.jsx)("path",{fill:"#00A94F",d:"M16.713 6.078a7.253 7.253 0 0 1 .86 8.928 7.361 7.361 0 0 1-3.736 2.962 7.437 7.437 0 0 1-4.784.065L4.4 19.61l4.793-1.075a7.436 7.436 0 0 0 5.24.313 7.362 7.362 0 0 0 4.123-3.22 7.249 7.249 0 0 0 .914-5.123 7.296 7.296 0 0 0-2.757-4.427Z"}),(0,r.jsx)("path",{fill:"#F15D22",d:"M6.176 15.515a7.246 7.246 0 0 1-.26-4.876 7.312 7.312 0 0 1 2.9-3.95 7.427 7.427 0 0 1 9.26.735 7.387 7.387 0 0 0-4.603-2.771 7.431 7.431 0 0 0-5.277 1.068A7.311 7.311 0 0 0 5.06 10.06a7.249 7.249 0 0 0 .676 5.294L4.4 19.607l1.776-4.092Z"}),(0,r.jsx)("path",{fill:"#E31B23",d:"M5.735 15.353a7.25 7.25 0 0 1-.764-4.818 7.294 7.294 0 0 1 2.465-4.222 7.415 7.415 0 0 1 4.596-1.744 7.42 7.42 0 0 1 4.681 1.509 7.404 7.404 0 0 0-4.865-2.26 7.421 7.421 0 0 0-5.12 1.61 7.293 7.293 0 0 0-2.66 4.626A7.256 7.256 0 0 0 5.28 15.24l-.877 4.37 1.332-4.257Z"})]}),s=n},14544:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M16.8 19 14 22.5 11.2 19H6a1 1 0 0 1-1-1V7.103a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1V18a1 1 0 0 1-1 1h-5.2ZM2 2h17v2H3v11H1V3a1 1 0 0 1 1-1Z"})}),s=n},37373:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M8 3v2H6v4c0 2.21 1.79 4 4 4s4-1.79 4-4V5h-2V3h3a1 1 0 0 1 1 1v5a6.002 6.002 0 0 1-5 5.917V16.5a3.5 3.5 0 0 0 6.775 1.237 3 3 0 1 1 2.049.148A5.5 5.5 0 0 1 9 16.5v-1.583A6 6 0 0 1 4 9V4a1 1 0 0 1 1-1h3Z"})}),s=n},59233:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 4 4",...a,children:(0,r.jsx)("rect",{width:4,height:4,fill:"#A5A5BA",rx:2})}),s=n},95998:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 25",...a,children:(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M13.571 5.85H10.43v8.47H2.487a.2.2 0 0 0-.14.343l9.512 9.401a.2.2 0 0 0 .282 0l9.513-9.401a.2.2 0 0 0-.14-.342H13.57V5.85ZM2.2 3.027a.2.2 0 0 1-.2-.2V.402c0-.11.09-.2.2-.2h19.6c.11 0 .2.09.2.2v2.423a.2.2 0 0 1-.2.2H2.2Z",clipRule:"evenodd"})}),s=n},62873:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:[(0,r.jsx)("path",{fill:"#212134",d:"M16.563 5.587a2.503 2.503 0 1 0 0-5.007 2.503 2.503 0 0 0 0 5.007Z"}),(0,r.jsx)("path",{fill:"#212134",d:"M18.487 3.083c-.012.788-.487 1.513-1.229 1.797a1.954 1.954 0 0 1-2.184-.574A1.943 1.943 0 0 1 14.9 2.11c.4-.684 1.2-1.066 1.981-.927a1.954 1.954 0 0 1 1.606 1.9c.011.748 1.17.748 1.158 0A3.138 3.138 0 0 0 17.565.17c-1.176-.423-2.567-.03-3.36.933-.83 1.002-.968 2.45-.284 3.575.678 1.124 1.993 1.674 3.273 1.431 1.432-.272 2.428-1.593 2.451-3.019.012-.753-1.147-.753-1.158-.006ZM16.563 14.372a2.503 2.503 0 1 0 0-5.007 2.503 2.503 0 0 0 0 5.007Z"}),(0,r.jsx)("path",{fill:"#212134",d:"M18.487 11.867c-.012.789-.487 1.513-1.229 1.797a1.954 1.954 0 0 1-2.184-.574 1.943 1.943 0 0 1-.174-2.196c.4-.684 1.2-1.066 1.981-.927.928.156 1.588.968 1.606 1.9.011.748 1.17.748 1.158 0a3.138 3.138 0 0 0-2.08-2.914c-1.176-.423-2.567-.029-3.36.933-.83 1.002-.968 2.45-.284 3.575.678 1.124 1.993 1.675 3.273 1.431 1.432-.272 2.428-1.593 2.451-3.019.012-.753-1.147-.753-1.158-.005ZM16.563 23.392a2.503 2.503 0 1 0 0-5.006 2.503 2.503 0 0 0 0 5.006Z"}),(0,r.jsx)("path",{fill:"#212134",d:"M18.487 20.89c-.012.787-.487 1.512-1.229 1.796a1.954 1.954 0 0 1-2.184-.574 1.943 1.943 0 0 1-.174-2.196c.4-.684 1.2-1.066 1.981-.927.928.156 1.588.967 1.606 1.9.011.748 1.17.748 1.158 0a3.138 3.138 0 0 0-2.08-2.914c-1.176-.423-2.567-.03-3.36.933-.83 1.002-.968 2.45-.284 3.575.678 1.124 1.993 1.674 3.273 1.431 1.432-.272 2.428-1.593 2.451-3.019.012-.753-1.147-.753-1.158-.006ZM7.378 5.622a2.503 2.503 0 1 0 0-5.007 2.503 2.503 0 0 0 0 5.007Z"}),(0,r.jsx)("path",{fill:"#212134",d:"M9.302 3.119c-.011.788-.486 1.512-1.228 1.796a1.954 1.954 0 0 1-2.185-.574 1.943 1.943 0 0 1-.173-2.196c.4-.684 1.199-1.066 1.981-.927a1.943 1.943 0 0 1 1.605 1.9c.012.748 1.17.748 1.16 0A3.138 3.138 0 0 0 8.38.205c-1.176-.423-2.567-.029-3.36.933-.83 1.002-.968 2.45-.285 3.575.678 1.124 1.994 1.675 3.274 1.431 1.431-.272 2.428-1.593 2.451-3.019.012-.753-1.147-.753-1.159-.005ZM7.378 14.406a2.503 2.503 0 1 0 0-5.006 2.503 2.503 0 0 0 0 5.006Z"}),(0,r.jsx)("path",{fill:"#212134",d:"M9.302 11.902c-.011.788-.486 1.513-1.228 1.797a1.954 1.954 0 0 1-2.185-.574 1.943 1.943 0 0 1-.173-2.196c.4-.684 1.199-1.066 1.981-.927a1.943 1.943 0 0 1 1.605 1.9c.012.748 1.17.748 1.16 0A3.138 3.138 0 0 0 8.38 8.988c-1.176-.423-2.567-.03-3.36.933-.83 1.002-.968 2.45-.285 3.575.678 1.124 1.994 1.674 3.274 1.431 1.431-.272 2.428-1.593 2.451-3.019.012-.753-1.147-.753-1.159-.006ZM7.378 23.427a2.503 2.503 0 1 0 0-5.007 2.503 2.503 0 0 0 0 5.007Z"}),(0,r.jsx)("path",{fill:"#212134",d:"M9.302 20.924c-.011.788-.486 1.513-1.228 1.797a1.954 1.954 0 0 1-2.185-.574 1.943 1.943 0 0 1-.173-2.196c.4-.684 1.199-1.066 1.981-.927.933.156 1.594.967 1.605 1.9.012.748 1.17.748 1.16 0A3.139 3.139 0 0 0 8.38 18.01c-1.176-.423-2.567-.03-3.36.933-.83 1.002-.968 2.45-.285 3.569.678 1.124 1.994 1.675 3.274 1.431 1.431-.272 2.428-1.593 2.451-3.019.012-.747-1.147-.747-1.159 0Z"})]}),s=n},43838:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:[(0,r.jsx)("path",{fill:"#212134",d:"M1.056 24h15.906c.583 0 1.056-.473 1.056-1.056V7.028c0-.583-.473-1.056-1.056-1.056H1.056C.473 5.972 0 6.445 0 7.028v15.916C0 23.527.473 24 1.056 24Z"}),(0,r.jsx)("path",{fill:"#212134",d:"M8.094 2.111h13.795v13.795h-1.127v2.112h2.182A1.056 1.056 0 0 0 24 16.962V1.056A1.056 1.056 0 0 0 22.944 0H7.038a1.056 1.056 0 0 0-1.056 1.056v2.252h2.112V2.11Z"})]}),s=n},24306:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...a,children:[(0,r.jsx)("rect",{width:31,height:23,x:.5,y:.5,fill:"#F6F6F9",stroke:"#DCDCE4",rx:2.5}),(0,r.jsx)("path",{fill:"#666687",d:"M20.573 8c-1.484 0-2.666.745-3.397 1.37l-.026.023-.416.452.919 1.51.68-.682c.711-.6 1.506-.93 2.24-.93 1.48 0 2.685 1.171 2.685 2.612 0 1.44-1.205 2.613-2.685 2.613-2.25 0-3.78-2.974-3.795-3.004C16.69 11.784 14.75 8 11.428 8 8.985 8 7 9.954 7 12.355c0 2.401 1.986 4.355 4.427 4.355 1.196 0 2.373-.476 3.404-1.376l.022-.02.413-.45-.919-1.51-.683.686c-.712.616-1.465.928-2.237.928-1.48 0-2.685-1.172-2.685-2.613 0-1.44 1.205-2.613 2.685-2.613 2.25 0 3.78 2.974 3.795 3.004.088.18 2.028 3.964 5.35 3.964 2.442 0 4.428-1.954 4.428-4.355C25 9.954 23.014 8 20.573 8Z"})]}),s=n},34675:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:[(0,r.jsx)("path",{fill:"#32324D",d:"m12.59 23.679-.044-.007a.045.045 0 0 0 .043.007ZM22.334 8.345a.295.295 0 0 0-.572-.033.296.296 0 0 1-.28.206h-.828a.294.294 0 0 1-.153-.042l-1.199-.72a.293.293 0 0 0-.152-.042h-1.918a.294.294 0 0 0-.163.05l-2.366 1.577a.295.295 0 0 0-.131.248v2.236a.295.295 0 0 0 .156.261l3.101 1.656a.298.298 0 0 1 .157.257L18 15.257a.296.296 0 0 0 .153.255l1.246.69a.297.297 0 0 1 .152.258v2.604a.297.297 0 0 0 .34.292.296.296 0 0 0 .152-.07c.502-.443 1.223-1.09 1.319-1.237a11.186 11.186 0 0 0 1.175-2.415c.679-1.966.142-5.501-.203-7.289ZM13.629 14.507l-3.286-2.464a.214.214 0 0 0-.129-.043H8.655a.203.203 0 0 1-.143-.06l-.735-.734a.216.216 0 0 0-.152-.063h-2.85a.202.202 0 0 1-.198-.243.203.203 0 0 1 .055-.104l.451-.45a.202.202 0 0 1 .144-.06H6.96a.428.428 0 0 0 .413-.313l.369-1.312a.214.214 0 0 1 .107-.132L9.32 7.77a.203.203 0 0 0 .11-.18v-.67c0-.042.013-.082.037-.116l.782-1.126a.2.2 0 0 1 .095-.074l1.095-.411a.203.203 0 0 0 .131-.19v-.611a.203.203 0 0 0-.09-.17l-1.097-.729a.205.205 0 0 0-.206-.012l-1.493.747a.202.202 0 0 1-.214-.022l-.709-.56a.204.204 0 0 1 .006-.321l.575-.424a.202.202 0 0 0-.005-.33l-.896-.625a.203.203 0 0 0-.214-.012c-.324.177-1.275.702-1.613.939a11.222 11.222 0 0 0-3.651 4.285c-.098.202-.218.407-.23.628-.012.221-.185.715-.258.915a.202.202 0 0 0 .013.166l1.912 3.514a.2.2 0 0 0 .074.077l2.012 1.207a.201.201 0 0 1 .097.146l.403 2.922a.205.205 0 0 0 .086.14l1.57 1.079a.214.214 0 0 1 .088.133l.832 3.953a.193.193 0 0 0 .027.066c.078.126.39.589.766.658-.035.01-.066.031-.101.041.09.016.18.037.268.063.107.028.214.053.321.076.168.033.184.06.265-.09.107-.2.23-.268.321-.292a.207.207 0 0 0 .155-.156l.54-2.5a.215.215 0 0 1 .085-.13l2.411-1.709a.214.214 0 0 0 .09-.175v-3.212a.215.215 0 0 0-.082-.172Z"}),(0,r.jsx)("path",{fill:"#32324D",d:"M12.321.857s-.195.011-.235.012a11.113 11.113 0 0 0-3.932.845c.13.09-.094.173-.094.173l.35.684h1.876l1.285.643 1.125-.643-.375-1.714ZM17.262 4.718l.863-.75a.214.214 0 0 0-.05-.357l-1.008-.467a.214.214 0 0 0-.284.101l-.415.869a.214.214 0 0 0 .08.274l.56.35a.214.214 0 0 0 .254-.02ZM21.302 5.822l-.312-.483a.337.337 0 0 1-.014-.023c-.056-.115-.521-1.055-.91-1.42-.292-.276-.375-.196-.398-.135a.202.202 0 0 1-.064.085l-1.545 1.25a.214.214 0 0 1-.135.047h-.8a.214.214 0 0 0-.151.062l-.643.643a.215.215 0 0 0 0 .304l.643.642a.214.214 0 0 0 .152.063h4.027a.215.215 0 0 0 .214-.223l-.03-.705a.214.214 0 0 0-.034-.107Z"}),(0,r.jsx)("path",{fill:"#32324D",d:"M12 2.143A9.857 9.857 0 1 1 5.03 5.03 9.791 9.791 0 0 1 12 2.143ZM12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0Z"})]}),s=n},44850:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 21 24",...a,children:[(0,r.jsx)("path",{fill:"#32324D",d:"M18.54 8.746a.206.206 0 0 0-.07-.134.224.224 0 0 0-.14-.055.184.184 0 0 0-.14.04.227.227 0 0 0-.094.117.213.213 0 0 1-.078.119.216.216 0 0 1-.14.047h-.644a.214.214 0 0 1-.117 0l-.932-.567a.2.2 0 0 0-.117 0h-1.492a.184.184 0 0 0-.124 0L12.61 9.55a.244.244 0 0 0-.07.086.184.184 0 0 0 0 .11v1.765a.335.335 0 0 0 0 .119.251.251 0 0 0 .093.086l2.41 1.3c.035.02.065.05.085.087a.24.24 0 0 1 .039.118v.961a.335.335 0 0 0 0 .119c.022.032.051.059.085.079l.971.543a.297.297 0 0 1 .086.087c.01.039.01.08 0 .118v2.056a.263.263 0 0 0 .039.127.28.28 0 0 0 .1.086c.041.012.084.012.125 0a.2.2 0 0 0 .117-.055c.386-.292.752-.61 1.095-.953.125-.19.241-.394.35-.591.223-.42.412-.858.567-1.308.529-1.552.11-4.342-.163-5.744ZM8.507 11.622l-2.332 4.05-.303-.213a.08.08 0 0 1 0-.047.088.088 0 0 1 0-.063l-.318-2.301a.088.088 0 0 0 0-.063.094.094 0 0 0-.047-.047l-1.554-.954a.156.156 0 0 1-.062-.063l-.863-1.576-.621-1.158v-.063a.232.232 0 0 1 0-.07c.074-.245.123-.495.147-.75.033-.174.093-.341.179-.496a8.834 8.834 0 0 1 2.82-3.38c.257-.181.995-.599 1.252-.733a.153.153 0 0 1 .085 0 .16.16 0 0 1 .078 0l.7.489s.038 0 .046.055a.136.136 0 0 1 0 .079.104.104 0 0 1 0 .063.102.102 0 0 1-.047.055l-.45.355a.088.088 0 0 0 0 .055v.07a.12.12 0 0 0 0 .072v.055l.552.472a.161.161 0 0 0 .077 0 .153.153 0 0 0 .086 0l1.165-.59h.078a.13.13 0 0 1 .078 0l.855.575c.022.017.04.038.054.063a.234.234 0 0 1 0 .07v.481a.169.169 0 0 1 0 .095.179.179 0 0 1-.078.055l-.847.323a.156.156 0 0 0-.078.063l-.613.875a.152.152 0 0 0 0 .094v.528a.184.184 0 0 1 0 .087.21.21 0 0 1-.063.055l-1.142.599a.14.14 0 0 0-.054.04.24.24 0 0 0 0 .062l-.288 1.032a.347.347 0 0 1-.116.182.318.318 0 0 1-.288.039H5.19a.138.138 0 0 0-.055 0l-.35.354a.096.096 0 0 0 0 .08.136.136 0 0 0 0 .094c.011.028.03.053.055.07.03.008.062.008.093 0h2.246l.039.19.567.575H7.901l.606.016ZM11.88 13.733v2.53a.242.242 0 0 1 0 .078.214.214 0 0 1-.055.063l-1.873 1.34a.3.3 0 0 0-.07.102l-.334 1.474-.109.504a.213.213 0 0 1-.047.079.236.236 0 0 1-.077 0 .426.426 0 0 0-.249.228c-.062.119-.078.103-.21.071l-.248-.055-.21-.055h.085c-.295-.055-.536-.418-.598-.52v-.047l-.14-.694-.295-1.182 2.914-5.129 1.414 1.08s.039 0 .047.055c.022.023.04.05.054.078Z"}),(0,r.jsx)("path",{fill:"#32324D",d:"M10.76 2.844h-.179a4.82 4.82 0 0 0-.676.048 8.6 8.6 0 0 0-2.385.622c.1.071-.07.134-.07.134l.272.536h1.46l.995.544.878-.513-.295-1.37ZM15.33 5.145a.274.274 0 0 1 0 .079l-.047.07-.676.592a.138.138 0 0 1-.093 0 .215.215 0 0 1-.101 0l-.249-.158.56-.977.52.244a.211.211 0 0 1 .062.056c.015.03.023.061.024.094ZM17.739 6.752l-.241-.378a5.222 5.222 0 0 0-.707-1.119c-.233-.22-.296-.157-.311-.11a.173.173 0 0 1-.055.071l-1.204.97a.176.176 0 0 1-.109 0h-.738l-.497.503a.142.142 0 0 0-.04.056.176.176 0 0 0 0 .063.152.152 0 0 0 0 .063c.01.02.023.04.04.055l.497.512h3.295l.054-.04a.128.128 0 0 0 0-.055.256.256 0 0 0 0-.063v-.559l.016.031Z"}),(0,r.jsx)("path",{fill:"#32324D",d:"M10.512 2.167a9.237 9.237 0 0 0-5.328 1.691 9.438 9.438 0 0 0-3.42 4.474 9.58 9.58 0 0 0-.287 5.654 9.475 9.475 0 0 0 2.95 4.806l.855-1.505c-.431-.4-.812-.853-1.135-1.347a7.876 7.876 0 0 1-1.259-5.082c.015-.183.04-.365.078-.544a7.735 7.735 0 0 1 2.13-4.184 7.47 7.47 0 0 1 2.486-1.686l.132-.055a7.524 7.524 0 0 1 2.798-.536 7.051 7.051 0 0 1 2.222.347l.855-1.505a9.056 9.056 0 0 0-3.077-.528Zm4.934 1.426-.839 1.473c.272.165.532.349.777.552a7.775 7.775 0 0 1 2.59 4.171 7.86 7.86 0 0 1-.41 4.912 7.725 7.725 0 0 1-3.246 3.67 7.566 7.566 0 0 1-6.005.68 7.55 7.55 0 0 1-.591-.212c-.253-.097-.5-.21-.738-.339l-.855 1.474a9.215 9.215 0 0 0 7.078.944 9.345 9.345 0 0 0 5.662-4.407 9.572 9.572 0 0 0 .931-7.176 9.44 9.44 0 0 0-4.346-5.742h-.008Z"}),(0,r.jsx)("path",{fill:"#32324D",d:"M18.7.794 17.414.042 4.25 23.16l1.286.753L18.7.794Z"})]}),s=n},78215:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...a,children:[(0,r.jsx)("rect",{width:31,height:23,x:.5,y:.5,fill:"#FCECEA",stroke:"#F5C0B8",rx:2.5}),(0,r.jsx)("path",{fill:"#D02B20",d:"M16.767 17.49c.724 0 1.428-.089 1.962-.253v-1.093c-.383.143-1.128.239-1.86.239-2.905 0-4.744-1.764-4.744-4.546v-.014c0-2.734 1.839-4.641 4.484-4.641 2.598 0 4.307 1.62 4.307 4.088v.013c0 1.402-.444 2.304-1.135 2.304-.417 0-.656-.287-.656-.772V9.157h-1.38v.82h-.124c-.273-.608-.868-.97-1.6-.97-1.367 0-2.296 1.135-2.296 2.789v.014c0 1.73.943 2.884 2.365 2.884.793 0 1.353-.362 1.64-1.052h.123l.007.04c.158.636.78 1.033 1.62 1.033 1.655 0 2.687-1.367 2.687-3.534v-.014c0-3.008-2.242-5.072-5.517-5.072-3.418 0-5.776 2.324-5.776 5.694v.014c0 3.431 2.331 5.687 5.893 5.687Zm-.342-4.053c-.718 0-1.149-.602-1.149-1.586v-.014c0-.991.431-1.586 1.156-1.586.724 0 1.182.608 1.182 1.586v.014c0 .977-.458 1.585-1.19 1.585Z"})]}),s=n},4865:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm-4-9a4 4 0 1 0 8 0H8Zm0-2a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm8 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"})}),s=n},63350:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm-5-5h2a3 3 0 0 1 6 0h2a5 5 0 1 0-10 0Zm1-6a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm8 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"})}),s=n},94355:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 216 120",...a,children:[(0,r.jsxs)("g",{clipPath:"url(#EmptyDocuments_svg__a)",opacity:.84,children:[(0,r.jsx)("path",{fill:"#D9D8FF",fillOpacity:.8,fillRule:"evenodd",d:"M189.25 19.646a7.583 7.583 0 0 1 0 15.166h-43.333a7.583 7.583 0 0 1 0 15.167h23.833a7.583 7.583 0 0 1 0 15.167h-11.022c-5.28 0-9.561 3.395-9.561 7.583 0 1.956 1.063 3.782 3.19 5.48 2.017 1.608 4.824 1.817 7.064 3.096a7.583 7.583 0 0 1-3.754 14.174H65.75a7.583 7.583 0 0 1 0-15.166H23.5a7.583 7.583 0 1 1 0-15.167h43.333a7.583 7.583 0 1 0 0-15.167H39.75a7.583 7.583 0 1 1 0-15.166h43.333a7.583 7.583 0 0 1 0-15.167H189.25Zm0 30.333a7.583 7.583 0 1 1 0 15.166 7.583 7.583 0 0 1 0-15.166Z",clipRule:"evenodd"}),(0,r.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"m132.561 19.646 10.077 73.496.906 7.374a4.334 4.334 0 0 1-3.773 4.829l-63.44 7.789a4.333 4.333 0 0 1-4.83-3.772l-9.767-79.547a2.166 2.166 0 0 1 1.91-2.417l5.262-.59 63.655-7.162ZM73.162 26.33l4.97-.557-4.97.557Z",clipRule:"evenodd"}),(0,r.jsx)("path",{stroke:"#7B79FF",strokeWidth:2.5,d:"m73.162 26.33 4.97-.557m54.429-6.127 10.077 73.496.906 7.374a4.334 4.334 0 0 1-3.773 4.829l-63.44 7.789a4.333 4.333 0 0 1-4.83-3.772l-9.767-79.547a2.166 2.166 0 0 1 1.91-2.417l5.262-.59 63.655-7.162Z"}),(0,r.jsx)("path",{fill:"#F0F0FF",fillRule:"evenodd",d:"m129.818 24.27 9.122 66.608.82 6.682c.264 2.153-1.246 4.11-3.373 4.371l-56.812 6.976c-2.127.261-4.066-1.272-4.33-3.425l-8.83-71.908a2.167 2.167 0 0 1 1.887-2.415l7.028-.863",clipRule:"evenodd"}),(0,r.jsx)("path",{fill:"#fff",fillRule:"evenodd",stroke:"#7B79FF",strokeWidth:2.5,d:"M135.331 5.833H85.978a2.97 2.97 0 0 0-2.107.873A2.97 2.97 0 0 0 83 8.813v82.333c0 .823.333 1.567.872 2.106a2.97 2.97 0 0 0 2.107.873h63.917a2.97 2.97 0 0 0 2.106-.873 2.97 2.97 0 0 0 .873-2.106V23.367a2.98 2.98 0 0 0-.873-2.107L137.437 6.705a2.98 2.98 0 0 0-2.106-.872Z",clipRule:"evenodd"}),(0,r.jsx)("path",{stroke:"#7B79FF",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M135.811 7.082v12.564a3.25 3.25 0 0 0 3.25 3.25h8.595M94.644 78.146h28.167m-28.167-55.25h28.167-28.167Zm0 13h46.584-46.584Zm0 14.083h46.584-46.584Zm0 14.084h46.584-46.584Z"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"EmptyDocuments_svg__a",children:(0,r.jsx)("path",{fill:"#fff",d:"M0 0h216v120H0z"})})})]}),s=n},59288:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 192 120",...a,children:(0,r.jsxs)("g",{opacity:.88,children:[(0,r.jsx)("path",{fill:"#DBDBFA",fillRule:"evenodd",d:"M160.28 53.026a3.89 3.89 0 0 0-.15-.281c-3.5-5.96-7.289-11.263-11.52-15.857h18.097c4.444 0 8.047 3.612 8.047 8.069 0 4.456-3.603 8.07-8.047 8.07h-6.427Zm-8.492 16.139c-11.563 11.57-31.954 19.597-55.211 19.597-31.435 0-54.383-16.705-55.7-35.736H28.741c-4.444 0-8.047 3.613-8.047 8.07 0 4.456 3.603 8.069 8.047 8.069H40.44c5.604 0 10.147 3.612 10.147 8.069 0 2.524-1.66 4.846-4.98 6.964-.942.6-2.033.875-3.123 1.15-.33.082-.658.165-.982.257a8.07 8.07 0 0 0-5.861 7.767c0 4.457 3.603 8.07 8.048 8.07h95.425c4.445 0 8.048-3.613 8.048-8.07 0-4.456-3.603-8.069-8.048-8.069h44.838c4.445 0 8.048-3.612 8.048-8.07 0-4.456-3.603-8.068-8.048-8.068h-32.164ZM68.056 20.749H8.048C3.603 20.75 0 24.362 0 28.82c0 4.456 3.603 8.069 8.048 8.069h37.314c4.606-6.844 12.5-12.478 22.694-16.139ZM0 61.095c0-4.456 3.603-8.069 8.048-8.069s8.048 3.613 8.048 8.07c0 4.456-3.603 8.069-8.048 8.069S0 65.552 0 61.095Z",clipRule:"evenodd"}),(0,r.jsx)("path",{stroke:"#7B79FF",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"m157.424 48.415 1.447 2.131"}),(0,r.jsx)("path",{fill:"#fff",d:"M154.195 58.894c-45.683-57.685-95.639-25.813-117.374.01-1.403 1.666-1.426 4.115-.15 5.881 47.31 65.454 96.71 29.043 117.705-.133 1.239-1.723 1.137-4.095-.181-5.758Z"}),(0,r.jsx)("path",{fill:"#7B79FF",fillRule:"evenodd",d:"M112.869 27.294c-9.141-2.486-18.085-2.558-26.571-.941-21.301 4.058-39.457 18.708-50.43 31.743-1.794 2.132-1.797 5.216-.205 7.419 11.917 16.487 24.03 26.65 35.888 32.099.79.363 1.58.705 2.367 1.026l1.206-2.208a57.244 57.244 0 0 1-2.529-1.09C61.228 90.12 49.426 80.29 37.689 64.05c-.961-1.329-.92-3.142.092-4.344C48.545 46.918 66.234 32.72 86.766 28.809c7.905-1.506 16.271-1.495 24.869.744l1.234-2.26ZM84.593 99.259c7.096 1.397 13.98 1.156 20.536-.278 20.46-4.474 37.825-20.594 48.236-35.062.899-1.25.841-3.007-.145-4.252-10.729-13.547-21.653-22.062-32.352-26.854l1.202-2.2c11.025 4.98 22.209 13.738 33.11 27.502 1.649 2.082 1.794 5.069.214 7.264-10.583 14.709-28.415 31.383-49.731 36.044-7.116 1.556-14.608 1.77-22.324.132l1.254-2.296Z",clipRule:"evenodd"}),(0,r.jsx)("path",{stroke:"#7B79FF",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M126.492 21.282c13.231 6.322 21.865 14.379 27.624 21.78M33.4 47.845c18.935-25.304 55.13-40.341 83.887-30.007"}),(0,r.jsx)("ellipse",{cx:94.313,cy:65.708,fill:"#F0F0FF",rx:18.395,ry:18.444}),(0,r.jsx)("path",{fill:"#7B79FF",fillRule:"evenodd",d:"M104.094 43.565a24.006 24.006 0 0 0-9.777-2.067c-13.334 0-24.144 10.839-24.144 24.208 0 8.429 4.296 15.851 10.813 20.186l1.203-2.204c-5.74-3.902-9.516-10.498-9.516-17.982 0-11.995 9.697-21.708 21.644-21.708 3.045 0 5.944.631 8.574 1.77l1.203-2.203ZM91.283 87.202c.991.14 2.004.212 3.034.212 11.947 0 21.644-9.713 21.644-21.708a21.66 21.66 0 0 0-5.222-14.141l1.272-2.33a24.16 24.16 0 0 1 6.45 16.471c0 13.37-10.81 24.208-24.144 24.208-1.47 0-2.908-.132-4.305-.384l1.27-2.328Z",clipRule:"evenodd"}),(0,r.jsx)("path",{fill:"#fff",stroke:"#7B79FF",strokeWidth:2.5,d:"M116.062 54.18c0 4.406-3.561 7.972-7.947 7.972-4.387 0-7.948-3.566-7.948-7.972 0-4.406 3.561-7.972 7.948-7.972 4.386 0 7.947 3.566 7.947 7.972Z"}),(0,r.jsx)("path",{fill:"#fff",d:"M109.805 32.838c1.275-2.324 4.079-3.019 6.296-1.56 2.265 1.49 3.053 4.654 1.751 7.027l-31.287 57.05c-1.275 2.324-4.078 3.018-6.296 1.559-2.265-1.49-3.053-4.653-1.75-7.027l31.286-57.05Z"}),(0,r.jsx)("rect",{width:3.668,height:134.376,fill:"#7B79FF",rx:1.834,transform:"matrix(.82817 .56048 -.47918 .87772 126.515 0)"})]})}),s=n},18857:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 216 120",...a,children:(0,r.jsxs)("g",{opacity:.88,children:[(0,r.jsx)("path",{fill:"#D9D8FF",fillOpacity:.8,fillRule:"evenodd",d:"M119 28a7 7 0 1 1 0 14h64a7 7 0 1 1 0 14h22a7 7 0 1 1 0 14h-19a7 7 0 1 0 0 14h6a7 7 0 1 1 0 14h-52a7.024 7.024 0 0 1-1.5-.161A7.024 7.024 0 0 1 137 98H46a7 7 0 1 1 0-14H7a7 7 0 1 1 0-14h40a7 7 0 1 0 0-14H22a7 7 0 1 1 0-14h40a7 7 0 1 1 0-14h57Zm90 56a7 7 0 1 1 0 14 7 7 0 0 1 0-14Z",clipRule:"evenodd"}),(0,r.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"m73.83 102.273-8.621 1.422a4 4 0 0 1-4.518-3.404L49.557 21.069a4 4 0 0 1 3.404-4.518l78.231-10.994a4 4 0 0 1 4.518 3.404c.475 3.377 2.408 16.468 2.572 17.63",clipRule:"evenodd"}),(0,r.jsx)("path",{fill:"#F0F0FF",fillRule:"evenodd",d:"m71.805 98.712-3.696.526a3.618 3.618 0 0 1-4.096-3.085l-9.995-71.925a3.646 3.646 0 0 1 3.097-4.108l71.037-10.096a3.618 3.618 0 0 1 4.097 3.085l.859 6.18 9.205 66.599c.306 2.212-1.219 4.257-3.407 4.566a4.31 4.31 0 0 1-.071.01l-67.03 8.248Z",clipRule:"evenodd"}),(0,r.jsx)("path",{stroke:"#7B79FF",strokeLinecap:"round",strokeWidth:2.5,d:"m69.278 103.123-4.07.572a4 4 0 0 1-4.517-3.404L49.557 21.069a4 4 0 0 1 3.404-4.518l78.231-10.994a4 4 0 0 1 4.518 3.404l.957 6.808M137.5 20.38l.5 3.12"}),(0,r.jsx)("path",{fill:"#fff",fillRule:"evenodd",stroke:"#7B79FF",strokeWidth:2.5,d:"M164.411 30.299 85.844 22.04a2.74 2.74 0 0 0-2.018.598 2.741 2.741 0 0 0-1.004 1.85l-8.363 79.561c-.079.755.155 1.471.598 2.018a2.74 2.74 0 0 0 1.85 1.004l78.567 8.258a2.739 2.739 0 0 0 2.018-.598 2.741 2.741 0 0 0 1.005-1.849l8.362-79.562a2.743 2.743 0 0 0-.598-2.018 2.74 2.74 0 0 0-1.85-1.004Z",clipRule:"evenodd"}),(0,r.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"m92.99 30.585 62.655 6.585a3 3 0 0 1 2.67 3.297l-5.54 52.71a3 3 0 0 1-3.297 2.67L86.823 89.26a3 3 0 0 1-2.67-3.297l5.54-52.71a3 3 0 0 1 3.297-2.67Z",clipRule:"evenodd"}),(0,r.jsx)("path",{fill:"#F0F0FF",fillRule:"evenodd",d:"m92.74 73.878 9.798-6.608a4 4 0 0 1 5.168.594l7.173 7.723a1 1 0 0 0 1.362.096l15.34-12.43a4 4 0 0 1 5.878.936l9.98 15.438 1.434 2.392-.687 8.124a1 1 0 0 1-1.106.91l-56.963-6.329a1 1 0 0 1-.886-1.085l.755-8.199 2.755-1.562Z",clipRule:"evenodd"}),(0,r.jsx)("path",{stroke:"#7B79FF",strokeWidth:2.5,d:"M155.514 38.413 92.86 31.828c-.481-.05-.937.098-1.285.38a1.745 1.745 0 0 0-.639 1.177l-5.54 52.71c-.05.48.099.936.38 1.284.282.348.697.589 1.178.64l62.655 6.585a1.747 1.747 0 0 0 1.923-1.558l5.54-52.71a1.75 1.75 0 0 0-1.558-1.923Z",clipRule:"evenodd"}),(0,r.jsx)("path",{fill:"#F0F0FF",stroke:"#7B79FF",strokeWidth:2.5,d:"M104.405 55.917a6 6 0 1 0 1.254-11.934 6 6 0 0 0-1.254 11.934Z"}),(0,r.jsx)("path",{stroke:"#7B79FF",strokeLinecap:"round",strokeWidth:2.5,d:"m90.729 75.425 11.809-8.155a4 4 0 0 1 5.168.594l7.173 7.723a1 1 0 0 0 1.362.096l15.34-12.43a4 4 0 0 1 5.878.936l11.064 17.556"})]})}),s=n},33936:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...a,children:[(0,r.jsx)("rect",{width:31,height:23,x:.5,y:.5,fill:"#F6ECFC",stroke:"#E0C1F4",rx:2.5}),(0,r.jsx)("path",{fill:"#9736E8",fillRule:"evenodd",d:"M10.167 7a1.167 1.167 0 1 0 0 2.333 1.167 1.167 0 0 0 0-2.333Zm0 4.03a1.167 1.167 0 1 0 0 2.334 1.167 1.167 0 0 0 0-2.334ZM9 16.23a1.167 1.167 0 1 1 2.333 0 1.167 1.167 0 0 1-2.333 0Zm4.005-9.02a.4.4 0 0 0-.4.4v1.11c0 .22.18.4.4.4H22.6a.4.4 0 0 0 .4-.4V7.61a.4.4 0 0 0-.4-.4h-9.594Zm-.399 4.432a.4.4 0 0 1 .4-.4H22.6c.22 0 .4.18.4.4v1.11a.4.4 0 0 1-.4.4h-9.594a.4.4 0 0 1-.4-.4v-1.11Zm.4 3.63a.4.4 0 0 0-.4.4v1.11c0 .22.18.4.4.4H22.6a.4.4 0 0 0 .4-.4v-1.11a.4.4 0 0 0-.4-.4h-9.594Z",clipRule:"evenodd"})]}),s=n},24116:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:[(0,r.jsx)("path",{fill:"#32324D",d:"M0 2.8A.8.8 0 0 1 .8 2h22.4a.8.8 0 0 1 .8.8v2.71a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2.8Z"}),(0,r.jsx)("path",{fill:"#32324D",d:"M1.922 7.991C.197 6.675 0 6.252 0 5.289h23.953c.305 1.363-1.594 2.506-2.297 3.125-1.953 1.363-6.253 4.36-7.828 5.45-1.575 1.09-3.031.455-3.562 0-2.063-1.41-6.62-4.557-8.344-5.873ZM22.8 18H1.2c-.663 0-1.2.471-1.2 1.053v1.894C0 21.529.537 22 1.2 22h21.6c.663 0 1.2-.471 1.2-1.053v-1.894c0-.582-.537-1.053-1.2-1.053Z"}),(0,r.jsx)("path",{fill:"#32324D",d:"M0 9.555v10.972h24V9.554c-2.633 1.95-8.367 6.113-9.96 7.166-1.595 1.052-3.352.438-4.032 0L0 9.555Z"})]}),s=n},94417:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M12 0C5.383 0 0 5.383 0 12s5.383 12 12 12 12-5.383 12-12S18.617 0 12 0Zm1.154 18.456h-2.308V16.15h2.308v2.307Zm-.23-3.687h-1.847l-.346-9.23h2.538l-.346 9.23Z"})}),s=n},23619:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:[(0,r.jsx)("path",{fill:"#212134",d:"M11.987 23.036v-.964H1.876V1.876h10.111V0H0v24h11.987v-.964Z"}),(0,r.jsx)("path",{fill:"#212134",d:"M8 11.2c0-.11.09-.2.2-.2h11.973l-5.445-5.445a.2.2 0 0 1 0-.283l1.13-1.13a.2.2 0 0 1 .283 0l7.718 7.717a.2.2 0 0 1 0 .282L16.14 19.86a.2.2 0 0 1-.282 0l-1.13-1.13a.2.2 0 0 1 0-.284L20.172 13H8.2a.2.2 0 0 1-.2-.2v-1.6Z"})]}),s=n},26527:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#32324D",d:"M15.5 3.5h5v5H23V1h-7.5v2.5Zm5 17h-5V23H23v-7.5h-2.5v5Zm-17-17h5V1H1v7.5h2.5v-5ZM1 23.3h7.5v-2.5h-5v-5H1v7.5Z"})}),s=n},62577:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#32324D",d:"M16.235 2.824a1.412 1.412 0 0 1 0-2.824h6.353C23.368 0 24 .633 24 1.412v6.353a1.412 1.412 0 0 1-2.823 0V4.82l-8.179 8.178a1.412 1.412 0 0 1-1.996-1.996l8.178-8.178h-2.945Zm4.942 10.588a1.412 1.412 0 0 1 2.823 0v9.176c0 .78-.632 1.412-1.412 1.412H1.412C.632 24 0 23.368 0 22.588V1.412C0 .632.632 0 1.412 0h9.176a1.412 1.412 0 0 1 0 2.824H2.824v18.353h18.353v-7.765Z"})}),s=n},81851:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:[(0,r.jsx)("path",{fill:"#212134",d:"M15.2 12a3.2 3.2 0 1 1-6.399 0 3.2 3.2 0 0 1 6.4 0Z"}),(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M18.78 6.103c1.923 1.243 3.64 2.981 4.963 5.027a1.61 1.61 0 0 1 .005 1.738c-1.318 2.063-3.031 3.807-4.954 5.046-2.12 1.364-4.475 2.086-6.81 2.086-2.388 0-4.683-.7-6.816-2.082-1.894-1.225-3.593-2.966-4.914-5.032a1.596 1.596 0 0 1 .032-1.777C1.89 8.811 3.734 7.027 5.77 5.805 7.767 4.608 9.858 4 11.984 4c2.317 0 4.667.728 6.795 2.103Zm-9.446 9.888a4.8 4.8 0 1 0 5.334-7.982 4.8 4.8 0 0 0-5.334 7.982Z",clipRule:"evenodd"})]}),s=n},92795:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M4.048 6.875 2.103 4.93a1 1 0 1 1 1.414-1.415l16.966 16.966a1 1 0 1 1-1.414 1.415l-2.686-2.686a12.247 12.247 0 0 1-4.383.788c-3.573 0-6.559-1.425-8.962-3.783a15.842 15.842 0 0 1-2.116-2.568 11.096 11.096 0 0 1-.711-1.211 1.145 1.145 0 0 1 0-.875c.124-.258.36-.68.711-1.211.58-.876 1.283-1.75 2.116-2.569.326-.32.663-.622 1.01-.906Zm10.539 10.539-1.551-1.551a4.005 4.005 0 0 1-4.9-4.9L6.584 9.411a6 6 0 0 0 8.002 8.002ZM7.617 4.787A12.248 12.248 0 0 1 12 3.998c3.572 0 6.559 1.426 8.961 3.783a15.845 15.845 0 0 1 2.117 2.569c.351.532.587.954.711 1.211.116.242.115.636 0 .875-.124.257-.36.68-.711 1.211-.58.876-1.283 1.75-2.117 2.568-.325.32-.662.623-1.01.907l-2.536-2.537a6 6 0 0 0-8.002-8.002L7.617 4.787Zm3.347 3.347A4.005 4.005 0 0 1 16 11.998c0 .359-.047.706-.136 1.037l-4.9-4.901Z"})}),s=n},24381:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#8E8EA9",d:"M21 2C6 2 4 16 3 22h1.998c.666-3.333 2.333-5.166 5.002-5.5 4-.5 7-4 8-7l-1.5-1 1-1c1-1 2.004-2.5 3.5-5.5Z"})}),s=n},4900:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 32",...a,children:[(0,r.jsx)("path",{fill:"#9736E8",d:"M0 4a4 4 0 0 1 4-4h24a4 4 0 0 1 4 4v24a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V4Z"}),(0,r.jsx)("path",{fill:"#fff",d:"M18.037 11.774a28.578 28.578 0 0 0-2.948 2.706c-1.995 2.109-3.55 4.093-4.761 6.06-.289.469-.574.945-.855 1.418a9.074 9.074 0 0 0-.463 1.536c-.074.37.275.68.577.395.312-.299.587-.64.851-.985.467-.608.906-1.237 1.342-1.867 3.37.242 7.27-2.048 8.933-4.857a.196.196 0 0 0 .017-.167.183.183 0 0 0-.114-.118c-.809-.27-1.798-.44-2.207-.462-.017 0-.034-.014-.037-.035a.039.039 0 0 1 .024-.043c1.113-.58 1.924-.647 2.877-.505.07.01.134-.046.16-.114.095-.217.356-.87.537-1.404a.201.201 0 0 0-.087-.239c-.71-.384-1.656-.643-2.035-.682-.017 0-.03-.018-.034-.036a.039.039 0 0 1 .024-.043c1.1-.483 1.485-.497 2.364-.302.087.018.17-.05.19-.142.433-1.714.574-3.197.608-3.68a.21.21 0 0 0-.057-.157.177.177 0 0 0-.148-.05c-2.444.356-4.403.865-6.093 1.55-.057.022-.11.072-.11.136.144.551-.242 1.209-.845 1.703a.042.042 0 0 1-.044.018.046.046 0 0 1-.027-.043c.004-.046.158-.665.067-1.116-.013-.064-.033-.125-.084-.16a.173.173 0 0 0-.17-.014c-7.924 3.811-5.922 10.098-5.922 10.098.01.004.02.004.03.007.895-1.86 1.904-3.232 3.49-5.035 1.178-1.337 2.331-2.425 3.525-3.325.75-.565 2.448-1.738 3.51-2.144a.285.285 0 0 1 .105-.021c.097 0 .177.064.2.16a.264.264 0 0 1-.046.228l-2.344 1.731Z"})]}),s=n},6876:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 33",...a,children:(0,r.jsx)("path",{fill:"#C0C0CF",fillRule:"evenodd",d:"m16.39.749 6.915 7.377A2.59 2.59 0 0 1 24 9.877v19.638c0 1.381-1.042 2.493-2.337 2.493H2.337C1.042 32.008 0 30.896 0 29.515V2.5C0 1.827.253 1.22.695.75 1.137.277 1.705.008 2.337.008h12.41c.6 0 1.2.27 1.643.74Zm.473 7.983h5.116L15.82 2.197V7.62c0 .607.474 1.112 1.042 1.112ZM2.337 30.559h19.326c.537 0 .98-.471.98-1.044V10.18h-5.78c-1.326 0-2.4-1.145-2.4-2.56V1.456H2.337a.949.949 0 0 0-.695.303c-.19.203-.284.472-.284.741v27.015c0 .573.442 1.044.979 1.044Zm3.358-5.248h12.442c.379 0 .695.326.726.718 0 .392-.316.718-.694.718H5.695c-.38 0-.695-.326-.695-.718 0-.392.316-.718.695-.718Zm12.442-5.287H5.695c-.38 0-.695.327-.695.718 0 .392.316.718.695.718h12.474c.378 0 .694-.326.694-.718 0-.391-.347-.718-.726-.718ZM5.695 14.738h12.442c.379 0 .726.326.726.718 0 .391-.316.718-.694.718H5.695c-.38 0-.695-.327-.695-.718 0-.392.316-.718.695-.718Z",clipRule:"evenodd"})}),s=n},18675:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 32",...a,children:(0,r.jsx)("path",{fill:"#D02B20",fillRule:"evenodd",d:"M23.305 8.118 16.39.74C15.947.27 15.347 0 14.747 0H2.337c-.632 0-1.2.27-1.642.741A2.529 2.529 0 0 0 0 2.493v27.014C0 30.888 1.042 32 2.337 32h19.326C22.958 32 24 30.888 24 29.507V9.87c0-.64-.253-1.28-.695-1.751Zm-1.326.606h-5.116c-.568 0-1.042-.505-1.042-1.111V2.189l6.158 6.535Zm-.316 21.828H2.337c-.537 0-.98-.472-.98-1.045V2.493c0-.27.096-.54.285-.741a.949.949 0 0 1 .695-.304h12.126v6.165c0 1.414 1.074 2.56 2.4 2.56h5.78v19.334c0 .573-.443 1.045-.98 1.045ZM10.477 19.734 6.512 23.7a.73.73 0 0 0 0 1.024.73.73 0 0 0 1.023 0l3.965-3.965 3.965 3.965a.73.73 0 0 0 1.023 0 .73.73 0 0 0 0-1.024l-3.965-3.965 4.2-4.2a.73.73 0 0 0 0-1.023c-.28-.279-.768-.255-1.047.024L11.5 18.71l-4.176-4.176c-.28-.28-.768-.303-1.047-.024a.73.73 0 0 0 0 1.024l4.2 4.2Z",clipRule:"evenodd"})}),s=n},54607:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 33",...a,children:[(0,r.jsx)("path",{fill:"#D9822F",d:"M23.305 8.126 16.39.749c-.443-.472-1.043-.741-1.643-.741H2.337c-.632 0-1.2.27-1.642.74A2.529 2.529 0 0 0 0 2.5v27.015c0 1.381 1.042 2.493 2.337 2.493h19.326c1.295 0 2.337-1.112 2.337-2.493V9.877c0-.64-.253-1.28-.695-1.751Zm-1.326.606h-5.116c-.568 0-1.042-.505-1.042-1.112V2.197l6.158 6.535Zm-.316 21.827H2.337c-.537 0-.98-.471-.98-1.044V2.5c0-.269.096-.538.285-.74a.949.949 0 0 1 .695-.304h12.126V7.62c0 1.415 1.074 2.56 2.4 2.56h5.78v19.335c0 .573-.443 1.044-.98 1.044Z"}),(0,r.jsx)("path",{fill:"#D9822F",fillRule:"evenodd",d:"M13.964 20.095c.344.252.781.522 1.312.811a16.714 16.714 0 0 1 1.827-.1c1.53 0 2.451.236 2.764.709.166.212.177.463.031.753 0 .01-.005.02-.016.029l-.03.029v.014c-.063.367-.433.55-1.11.55-.5 0-1.098-.096-1.795-.29a11.908 11.908 0 0 1-2.03-.767c-2.3.232-4.341.633-6.121 1.202-1.593 2.53-2.852 3.795-3.779 3.795a.965.965 0 0 1-.437-.102l-.375-.174a1.668 1.668 0 0 0-.093-.072c-.105-.096-.136-.27-.094-.521.094-.386.385-.828.874-1.325.49-.498 1.177-.963 2.061-1.398.146-.087.266-.058.36.087.02.02.03.039.03.058a34.703 34.703 0 0 0 1.672-2.853c.707-1.313 1.249-2.578 1.623-3.794a10.952 10.952 0 0 1-.476-2.31c-.067-.748-.034-1.364.102-1.847.114-.386.333-.579.655-.579h.344c.24 0 .422.072.547.217.187.203.234.531.14.985a.307.307 0 0 1-.062.116.35.35 0 0 1 .015.116v.434c-.02 1.188-.093 2.115-.218 2.78.572 1.584 1.332 2.733 2.28 3.447ZM4.97 26.047c.542-.232 1.255-.995 2.14-2.289-.531.387-.987.792-1.367 1.217-.38.425-.637.782-.773 1.072Zm6.183-11.412c-.135-.868-.125-1.506.032-1.911v-.03c.01-.009.015-.019.015-.028a.798.798 0 0 1 .203.521c0 .01.005.024.016.044 0 .01.005.019.015.029a.317.317 0 0 0-.062.116c-.073.386-.11.593-.11.622l-.109.637Zm-1.904 7.66a24.288 24.288 0 0 1 4.434-1.173 2.398 2.398 0 0 1-.203-.137 2.761 2.761 0 0 1-.25-.196c-.79-.647-1.452-1.496-1.983-2.549-.28.83-.713 1.782-1.296 2.854-.312.54-.546.94-.702 1.201Zm7.9-.58c1.208 0 1.937.117 2.187.349.02.019.031.033.031.043-.042.01-.135.014-.281.014-.5 0-1.145-.135-1.936-.405Z",clipRule:"evenodd"})]}),s=n},52933:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#32324D",fillRule:"evenodd",d:"M0 4a2 2 0 0 1 2-2h20a2 2 0 1 1 0 4H2a2 2 0 0 1-2-2Zm4 8a2 2 0 0 1 2-2h12a2 2 0 1 1 0 4H6a2 2 0 0 1-2-2Zm6 6a2 2 0 1 0 0 4h4a2 2 0 1 0 0-4h-4Z",clipRule:"evenodd"})}),s=n},18053:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M12.414 5H21a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h7.414l2 2Z"})}),s=n},16660:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M18.901 10a3 3 0 0 0 4.075 1.113 3.5 3.5 0 0 1-1.975 3.55V21h-6v-2a3 3 0 0 0-5.996-.176L9 19v2H3v-6.336a3.5 3.5 0 0 1-1.979-3.553A2.999 2.999 0 0 0 5.098 10h13.803Zm-1.865-7a3.5 3.5 0 0 0 4.446 2.86 3.5 3.5 0 0 1-3.29 3.135L18 9H6a3.5 3.5 0 0 1-3.482-3.14A3.5 3.5 0 0 0 6.964 3h10.072Z"})}),s=n},51524:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M15 2a4 4 0 0 1 3.464 6.001L23 8v2h-2v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V10H1V8l4.536.001A4 4 0 0 1 12 3.355 3.983 3.983 0 0 1 15 2Zm-2 8h-2v10h2V10ZM9 4a2 2 0 0 0-.15 3.995L9 8h2V6a2 2 0 0 0-1.697-1.977l-.154-.018L9 4Zm6 0a2 2 0 0 0-1.995 1.85L13 6v2h2a2 2 0 0 0 1.995-1.85L17 6a2 2 0 0 0-2-2Z"})}),s=n},10778:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#161614",d:"M12 0C5.373 0 0 5.501 0 12.288c0 5.43 3.438 10.035 8.206 11.66.6.114.82-.266.82-.59 0-.294-.01-1.262-.016-2.289-3.338.744-4.043-1.45-4.043-1.45-.546-1.42-1.332-1.797-1.332-1.797-1.089-.763.082-.747.082-.747 1.205.086 1.84 1.266 1.84 1.266 1.07 1.878 2.807 1.335 3.491 1.021.108-.794.42-1.336.762-1.643-2.665-.31-5.467-1.364-5.467-6.073 0-1.341.469-2.437 1.236-3.298-.124-.31-.535-1.56.117-3.252 0 0 1.007-.33 3.3 1.26A11.25 11.25 0 0 1 12 5.942c1.02.005 2.047.141 3.006.414 2.29-1.59 3.297-1.26 3.297-1.26.653 1.693.242 2.943.118 3.252.77.86 1.235 1.957 1.235 3.298 0 4.72-2.808 5.76-5.48 6.063.43.382.814 1.13.814 2.276 0 1.644-.014 2.967-.014 3.372 0 .327.216.71.825.59C20.566 22.32 24 17.715 24 12.288 24 5.501 18.627 0 12 0Z"})}),s=n},94573:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 32",...a,children:[(0,r.jsx)("path",{fill:"#AC73E6",d:"M0 4a4 4 0 0 1 4-4h24a4 4 0 0 1 4 4v24a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V4Z"}),(0,r.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M15.027 13.839c-3.19-.836-6.305-1.064-10.18-.608-1.215.152-1.063 1.975.076 2.203.304.836.456 2.355.912 3.267.987 2.279 5.622 1.975 7.369.835 1.14-.683 1.443-2.279 1.9-3.494.227-.684 1.595-.684 1.822 0 .38 1.215.76 2.81 1.9 3.494 1.747 1.14 6.381 1.444 7.369-.835.456-.912.607-2.431.911-3.267 1.14-.228 1.216-2.051.076-2.203-3.874-.456-6.989-.228-10.18.608-.455.075-1.519.075-1.975 0Z",clipRule:"evenodd"})]}),s=n},43432:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#8E8EA9",d:"M13 21h5v2H6v-2h5v-1.05a10.001 10.001 0 0 1-7.684-4.988l1.737-.992A8 8 0 1 0 15.97 3.053l.992-1.737A9.996 9.996 0 0 1 22 10c0 5.185-3.947 9.449-9 9.95V21Zm-1-4a7 7 0 1 1 0-14 7 7 0 0 1 0 14Z"})}),s=n},25373:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 12 12",...a,children:(0,r.jsx)("path",{fill:"#8E8EA9",d:"M.67 5.33h4a.67.67 0 0 0 .66-.66v-4A.67.67 0 0 0 4.67 0h-4A.67.67 0 0 0 0 .67v4a.67.67 0 0 0 .67.66Zm6.66 0h4a.67.67 0 0 0 .67-.66v-4a.67.67 0 0 0-.67-.67h-4a.67.67 0 0 0-.66.67v4a.67.67 0 0 0 .66.66ZM.67 12h4a.67.67 0 0 0 .66-.67v-4a.67.67 0 0 0-.66-.66h-4a.67.67 0 0 0-.67.66v4a.67.67 0 0 0 .67.67Zm6.66 0h4a.67.67 0 0 0 .67-.67v-4a.67.67 0 0 0-.67-.66h-4a.67.67 0 0 0-.66.66v4a.67.67 0 0 0 .66.67Z"})}),s=n},49504:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M9.33 11.5h2.17A4.5 4.5 0 0 1 16 16H8.999L9 17h8v-1a5.579 5.579 0 0 0-.886-3H19a5 5 0 0 1 4.516 2.851C21.151 18.972 17.322 21 13 21c-2.761 0-5.1-.59-7-1.625v-9.304A6.967 6.967 0 0 1 9.33 11.5ZM4 9a1 1 0 0 1 .993.883L5 10v9a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1h2Zm9.646-5.425L14 3.93l.354-.354a2.5 2.5 0 1 1 3.535 3.536L14 11l-3.89-3.89a2.5 2.5 0 1 1 3.536-3.535Z"})}),s=n},96809:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"m7.784 14 .42-4H4V8h4.415l.525-5h2.011l-.525 5h3.989l.525-5h2.011l-.525 5H20v2h-3.784l-.42 4H20v2h-4.415l-.525 5h-2.011l.525-5H9.585l-.525 5H7.049l.525-5H4v-2h3.784Zm2.011 0h3.99l.42-4h-3.99l-.42 4Z"})}),s=n},25544:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#181826",d:"M22 8v2h-4.323l-.464 2.636A4.006 4.006 0 0 1 22.25 16.5a4 4 0 0 1-7.846 1.103l1.923-.551a2 2 0 1 0 .363-1.804l-1.81-.904L16 8h6ZM4 4v7h7V4h2v16h-2v-7H4v7H2V4h2Z"})}),s=n},83658:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#181826",d:"M13 20h-2v-7H4v7H2V4h2v7h7V4h2v16Zm9-12v8h1.5v2H22v2h-2v-2h-5.5v-1.34l5-8.66H22Zm-2 3.133L17.19 16H20v-4.867Z"})}),s=n},96617:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#181826",d:"M13 20h-2v-7H4v7H2V4h2v7h7V4h2v16Zm8-12v12h-2v-9.796l-2 .536V8.67L19.5 8H21Z"})}),s=n},41804:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#181826",d:"m21.097 8-2.598 4.5a4 4 0 1 1-3.453 1.981L18.788 8h2.309ZM4 4v7h7V4h2v16h-2v-7H4v7H2V4h2Zm14.5 10.5a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z"})}),s=n},66760:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#181826",d:"m22 8-.002 2-2.505 2.883a3.752 3.752 0 0 1-.993 7.367 3.751 3.751 0 0 1-3.682-3.033l1.964-.382a1.75 1.75 0 1 0 .924-1.895l-1.307-1.547L19.35 10H15V8h7ZM4 4v7h7V4h2v16h-2v-7H4v7H2V4h2Z"})}),s=n},41442:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#181826",d:"M4 4v7h7V4h2v16h-2v-7H4v7H2V4h2Zm14.5 4a3.75 3.75 0 0 1 2.978 6.03l-.148.18L18.034 18H22v2h-7v-1.556l4.82-5.546a1.75 1.75 0 1 0-3.065-1.292l-.005.144h-2A3.75 3.75 0 0 1 18.5 8Z"})}),s=n},86569:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M4 12h3a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-7C2 6.477 6.477 2 12 2s10 4.477 10 10v7a2 2 0 0 1-2 2h-3a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h3a8 8 0 0 0-16 0Z"})}),s=n},83098:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M16.5 3C19.538 3 22 5.5 22 9c0 7-7.5 11-10 12.5C9.5 20 2 16 2 9c0-3.5 2.5-6 5.5-6C9.36 3 11 4 12 5c1-1 2.64-2 4.5-2Z"})}),s=n},70348:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M20 20a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-9H1l10.327-9.388a1 1 0 0 1 1.346 0L23 11h-3v9Z"})}),s=n},52423:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M12 0C5.383 0 0 5.383 0 12s5.383 12 12 12 12-5.383 12-12S18.617 0 12 0Zm0 4.92a1.56 1.56 0 1 1 0 3.12 1.56 1.56 0 0 1 0-3.12Zm3.84 13.06a.5.5 0 0 1-.5.5h-6.2a.5.5 0 0 1-.5-.5v-.92a.5.5 0 0 1 .5-.5h2.14v-5.28H9.86a.5.5 0 0 1-.5-.5v-.92a.5.5 0 0 1 .5-.5h2.84a.5.5 0 0 1 .5.5v6.7h2.14a.5.5 0 0 1 .5.5v.92Z"})}),s=n},36311:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 32",...a,children:[(0,r.jsx)("path",{fill:"#4945FF",d:"M0 4a4 4 0 0 1 4-4h24a4 4 0 0 1 4 4v24a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V4Z"}),(0,r.jsx)("path",{fill:"#fff",d:"M15.733 8c.343 0 .678.108.963.31.285.202.507.49.639.826.13.337.165.707.098 1.064a1.879 1.879 0 0 1-.474.942 1.705 1.705 0 0 1-.887.504 1.64 1.64 0 0 1-1.002-.105 1.76 1.76 0 0 1-.778-.678A1.924 1.924 0 0 1 14 9.841a1.9 1.9 0 0 1 .508-1.302c.325-.345.766-.539 1.225-.539ZM20 24h-8v-2.265h2.933v-6.23H12.8v-2.266h4.267v8.495H20V24Z"})]}),s=n},97259:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#32324D",d:"M19.7 1H9.4v3h3.1l-4 16H4.2v3h10.3v-3h-3.3l4.2-16h4.2V1Z"})}),s=n},76133:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...a,children:[(0,r.jsx)("rect",{width:31,height:23,x:.5,y:.5,fill:"#EAF5FF",stroke:"#B8E1FF",rx:2.5}),(0,r.jsx)("path",{fill:"#0C75AF",fillRule:"evenodd",d:"M8.243 11.907v.157c.835.093 1.287.516 1.287 1.223V14.5c0 .693.236.959.855.959h.216V16.5h-.364c-1.459 0-2.078-.56-2.078-1.857v-.973c0-.722-.314-.992-1.159-1.002v-1.366c.84-.005 1.16-.275 1.16-1.002v-.968c0-1.282.618-1.832 2.077-1.832h.364v1.041h-.216c-.624 0-.855.266-.855.958v1.184c0 .713-.452 1.135-1.287 1.224Zm15.804.181v-.157c-.835-.088-1.287-.51-1.287-1.223V9.495c0-.693-.236-.954-.855-.954h-.216V7.5h.363c1.454 0 2.073.56 2.073 1.852v.973c0 .722.32.997 1.165 1.002v1.366c-.845.005-1.165.28-1.165 1.002v.973c0 1.282-.613 1.832-2.073 1.832h-.363v-1.046h.216c.619 0 .855-.26.855-.954v-1.188c0-.708.452-1.13 1.287-1.224ZM13.15 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm4-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm2 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"})]}),s=n},46374:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#8E8EA9",d:"M17 14h-4.34a6 6 0 1 1 0-4H23v4h-2v4h-4v-4ZM7 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"})}),s=n},45241:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M4.3.6a.9.9 0 1 0 0 1.8h15.311a.9.9 0 1 0 0-1.8H4.301Zm17.1 3.7A1.6 1.6 0 0 1 23 5.9v15.5a1.6 1.6 0 0 1-1.6 1.6H2.6A1.601 1.601 0 0 1 1 21.4V5.915C1 5.03 1.716 4.3 2.6 4.3h18.8ZM5.032 19.18h14.336l-3.136-3.205-1.792 1.831-4.032-4.12-5.376 5.494Zm13.44-8.697c0 1.282-.985 2.289-2.24 2.289-1.254 0-2.24-1.007-2.24-2.29 0-1.281.986-2.288 2.24-2.288 1.255 0 2.24 1.007 2.24 2.289Z",clipRule:"evenodd"})}),s=n},24784:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M4.8.2c0-.11.09-.2.2-.2h18.8c.11 0 .2.09.2.2v4.4a.2.2 0 0 1-.2.2H5a.2.2 0 0 1-.2-.2V.2ZM0 9.8c0-.11.09-.2.2-.2H19c.11 0 .2.09.2.2v4.4a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2V9.8ZM5 19.2a.2.2 0 0 0-.2.2v4.4c0 .11.09.2.2.2h18.8a.2.2 0 0 0 .2-.2v-4.4a.2.2 0 0 0-.2-.2H5Z"})}),s=n},5702:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M2.182 0A2.182 2.182 0 0 0 0 2.182v19.636C0 23.023.977 24 2.182 24h19.636A2.182 2.182 0 0 0 24 21.818V2.182A2.182 2.182 0 0 0 21.818 0H2.182Zm9.354 11.987h7.539c.314 0 .55.209.55.549v6.539c0 .34-.236.55-.55.55h-7.539c-.34 0-.55-.236-.55-.55v-6.539c0-.34.236-.55.55-.55Zm-6.638-2.27h14.177c.314 0 .549-.209.549-.549v-4.27c0-.34-.21-.549-.55-.549H4.899c-.313 0-.549.21-.549.55v4.269c0 .34.236.55.55.55Zm3.27 9.907h-3.27a.536.536 0 0 1-.549-.55v-6.538c0-.34.236-.55.55-.55h3.269c.34 0 .55.21.55.55v6.539c0 .34-.236.55-.55.55Z",clipRule:"evenodd"})}),s=n},5889:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M11 18H7.941c-.297-1.273-1.637-2.314-2.187-3a8 8 0 1 1 12.49.002c-.55.685-1.888 1.726-2.185 2.998H13v-5h-2v5Zm5 2v1a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2v-1h8Z"})}),s=n},36544:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:[(0,r.jsx)("path",{fill:"#212134",d:"M21.415 1.344a6.137 6.137 0 0 0-8.525.838L11.095 4.33a1.53 1.53 0 1 0 2.35 1.963l1.794-2.148a3.054 3.054 0 0 1 4.365-.324 3.117 3.117 0 0 1 .255 4.301l-3.73 4.467-.035.038a3.048 3.048 0 0 1-4.53.078 1.531 1.531 0 0 0-2.241 2.086 6.114 6.114 0 0 0 9.159-.245l3.721-4.454a6.289 6.289 0 0 0 1.418-4.62 6.01 6.01 0 0 0-2.206-4.128Z"}),(0,r.jsx)("path",{fill:"#212134",d:"m10.399 17.884-1.604 1.92a3.118 3.118 0 0 1-4.278.513 3.052 3.052 0 0 1-.457-4.353l3.795-4.542.028-.031a3.042 3.042 0 0 1 4.584-.022 1.529 1.529 0 0 0 1.794.37c.197-.094.37-.228.51-.395l.018-.022a1.51 1.51 0 0 0-.025-1.977 6.11 6.11 0 0 0-9.27.126l-3.784 4.53a6.137 6.137 0 0 0 .692 8.539 6.01 6.01 0 0 0 4.454 1.437 6.289 6.289 0 0 0 4.294-2.217l1.598-1.913a1.53 1.53 0 0 0-2.35-1.963Z"})]}),s=n},96869:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 12 12",...a,children:(0,r.jsx)("path",{fill:"#8E8EA9",d:"m2.4.1.1-.1h9.4l.1.1v2.2l-.1.1H2.5l-.1-.1V.1ZM0 4.9l.1-.1h9.4l.1.1v2.2l-.1.1H.1L0 7.1V4.9Zm2.5 4.7-.1.1v2.2l.1.1h9.4l.1-.1V9.7l-.1-.1H2.5Z"})}),s=n},2:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M12.057 18c.552 0 1 .451 1 .997v4.006a1 1 0 0 1-.941.995l-.059.002c-.552 0-1-.451-1-.997v-4.006a1 1 0 0 1 .941-.995l.06-.002Zm-3.06-.736.055.03c.478.276.64.89.367 1.364l-2.002 3.468a1 1 0 0 1-1.31.394l-.055-.03a1.002 1.002 0 0 1-.368-1.363l2.003-3.469a1 1 0 0 1 1.31-.394Zm7.42.394 2.002 3.468a1 1 0 0 1-.314 1.331l-.053.033a1.002 1.002 0 0 1-1.365-.363l-2.003-3.469a1 1 0 0 1 .314-1.33l.054-.034a1.002 1.002 0 0 1 1.364.364Zm-9.548-2.66.033.054c.276.478.11 1.091-.364 1.364L3.07 18.42a1 1 0 0 1-1.331-.314l-.033-.053a1.001 1.001 0 0 1 .364-1.365l3.468-2.003a1 1 0 0 1 1.33.314Zm11.79-.313 3.468 2.002a1 1 0 0 1 .393 1.31l-.03.055c-.276.478-.89.64-1.363.367l-3.469-2.003a1 1 0 0 1-.394-1.309l.03-.055c.276-.479.89-.64 1.364-.367Zm4.344-3.628a1 1 0 0 1 .995.941l.002.06c0 .551-.451 1-.997 1h-4.006a1 1 0 0 1-.995-.942L18 12.057c0-.552.451-1 .997-1h4.006Zm-18 0a1 1 0 0 1 .995.941l.002.06c0 .551-.451 1-.998 1H.998a1 1 0 0 1-.996-.942L0 12.057c0-.552.451-1 .998-1h4.004Zm17.454-5.059.033.054c.277.478.11 1.091-.363 1.365l-3.469 2.002a1 1 0 0 1-1.33-.314l-.034-.053a1.002 1.002 0 0 1 .364-1.365l3.468-2.003a1 1 0 0 1 1.331.314ZM3.07 5.684l3.468 2.003a1 1 0 0 1 .394 1.31l-.03.055c-.276.478-.89.64-1.364.367L2.07 7.417a1 1 0 0 1-.394-1.31l.03-.055c.276-.479.89-.64 1.364-.368Zm14.926-4.008.056.03c.478.276.64.89.367 1.364l-2.003 3.468a1 1 0 0 1-1.309.394l-.055-.03a1.002 1.002 0 0 1-.367-1.364l2.002-3.468a1 1 0 0 1 1.31-.394Zm-10.58.394L9.42 5.538a1 1 0 0 1-.314 1.33l-.053.034a1.002 1.002 0 0 1-1.365-.364L5.684 3.07a1 1 0 0 1 .314-1.331l.054-.033a1.002 1.002 0 0 1 1.365.364ZM12.058 0c.552 0 1 .451 1 .998v4.004a1 1 0 0 1-.941.996L12.057 6c-.552 0-1-.451-1-.998V.998a1 1 0 0 1 .941-.996l.06-.002Z",clipRule:"evenodd"})}),s=n},46759:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#8E8EA9",d:"M19 10h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1V9a7 7 0 0 1 14 0v1Zm-2 0V9A5 5 0 0 0 7 9v1h10Zm-6 4v4h2v-4h-2Z"})}),s=n},76391:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"m15.224 15.508-2.213 4.65a.6.6 0 0 1-.977.155l-3.542-3.739a.6.6 0 0 0-.357-.182l-5.107-.668a.6.6 0 0 1-.449-.881l2.462-4.524a.6.6 0 0 0 .062-.396L4.16 4.86a.6.6 0 0 1 .7-.7l5.063.943a.6.6 0 0 0 .396-.062l4.524-2.462a.6.6 0 0 1 .881.45l.668 5.106a.6.6 0 0 0 .182.357l3.739 3.542a.601.601 0 0 1-.155.977l-4.65 2.213a.6.6 0 0 0-.284.284Zm.797 1.927 1.414-1.414 4.243 4.242-1.415 1.415-4.242-4.243Z"})}),s=n},9556:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:[(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M20.4 14.4a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2ZM3.6 14.4a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2ZM20.4 22.8a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2ZM20.4 6a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2Z",clipRule:"evenodd"}),(0,r.jsx)("path",{fill:"#212134",d:"M6.24 11.28H18v1.44H6.24v-1.44Z"}),(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M3.6 22.8a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8Zm0 1.2a3.6 3.6 0 1 1 0-7.2 3.6 3.6 0 0 1 0 7.2ZM3.6 6a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8Zm0 1.2a3.6 3.6 0 1 1 0-7.2 3.6 3.6 0 0 1 0 7.2Z",clipRule:"evenodd"}),(0,r.jsx)("path",{fill:"#212134",d:"M18.328 13.863 6.49 19.765l-.652-1.307 11.838-5.902.652 1.307ZM18.358 10.078 6.398 4.115l-.646 1.294 11.961 5.963.645-1.294Z"}),(0,r.jsx)("path",{fill:"#212134",d:"M18.323 18.83 6.252 12.813l-.643 1.29 12.071 6.019.643-1.29ZM18.136 5.228 6.207 11.176l-.653-1.311 11.928-5.948.654 1.311Z"})]}),s=n},64072:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 25",...a,children:[(0,r.jsx)("path",{fill:"#212134",d:"M17.76 11.28H6v1.44h11.76v-1.44Z"}),(0,r.jsx)("path",{fill:"#212134",d:"M18.129 10.699 9.782 4.523l-.86 1.162 8.347 6.177.86-1.163ZM18.101 13.354 9.755 19.53l-.864-1.167 8.347-6.176.863 1.167Z"}),(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M20.4 14.399a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8Zm0 1.2a3.6 3.6 0 1 1 0-7.2 3.6 3.6 0 0 1 0 7.2ZM3.6 14.399a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8Zm0 1.2a3.6 3.6 0 1 1 0-7.2 3.6 3.6 0 0 1 0 7.2ZM7.2 22.8a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8Zm0 1.2a3.6 3.6 0 1 1 0-7.2 3.6 3.6 0 0 1 0 7.2ZM7.2 6a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8Zm0 1.2a3.6 3.6 0 1 1 0-7.2 3.6 3.6 0 0 1 0 7.2Z",clipRule:"evenodd"})]}),s=n},58516:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:[(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M3.6 14.132a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2Z",clipRule:"evenodd"}),(0,r.jsx)("path",{fill:"#212134",d:"M6.24 11.011h13.44v1.44H6.24v-1.44Z"}),(0,r.jsx)("path",{fill:"#212134",d:"m5.872 10.43 8.347-6.176.86 1.163-8.347 6.176-.86-1.162ZM5.9 13.087l8.346 6.177.864-1.168-8.347-6.176-.864 1.167ZM18.72 8.613l5.28 3.12-5.28 3.12v-6.24Z"}),(0,r.jsx)("path",{fill:"#212134",d:"M12.72 2.633 18.82 2 16.43 7.649 12.72 2.633ZM12.72 21.307l6.1.633-2.389-5.649-3.711 5.016Z"})]}),s=n},27395:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...a,children:[(0,r.jsx)("rect",{width:31,height:23,x:.5,y:.5,fill:"#F6ECFC",stroke:"#E0C1F4",rx:2.5}),(0,r.jsx)("path",{fill:"#9736E8",fillRule:"evenodd",d:"M22 8.759a2 2 0 0 0-2-2h-8c-1.105 0-2 .902-2 2.006v6.068a2 2 0 0 0 .985 1.724l3.66-3.74 3.31 3.381 1.471-1.502 1.731 1.769c.51-.363.843-.958.843-1.632V8.76ZM18.5 9c-.84 0-1.5.66-1.5 1.5s.66 1.5 1.5 1.5 1.5-.66 1.5-1.5S19.34 9 18.5 9Z",clipRule:"evenodd"})]}),s=n},69222:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#12100E",fillRule:"evenodd",d:"M2 0h20a2 2 0 0 1 2 2v20a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2Zm3.524 7.5a.624.624 0 0 1 .203.527v7.126a.82.82 0 0 1-.218.707l-1.694 2.054v.271h4.803v-.27L6.924 15.86a.85.85 0 0 1-.233-.707V8.99l4.215 9.195h.49l3.62-9.195v7.33c0 .195 0 .232-.128.36l-1.302 1.265v.27h6.322v-.27l-1.257-1.235a.376.376 0 0 1-.143-.36V7.281a.376.376 0 0 1 .143-.362l1.288-1.234v-.27h-4.457l-3.176 7.923-3.613-7.924H4.019v.271L5.524 7.5Z",clipRule:"evenodd"})}),s=n},68733:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M6.455 19 2 22.5V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6.455ZM7 10v2h2v-2H7Zm4 0v2h2v-2h-2Zm4 0v2h2v-2h-2Z"})}),s=n},75708:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M12 1a5 5 0 0 1 5 5v4a5 5 0 1 1-10 0V6a5 5 0 0 1 5-5ZM3.055 11H5.07a7.002 7.002 0 0 0 13.858 0h2.016A9.003 9.003 0 0 1 13 18.945V23h-2v-4.055A9.004 9.004 0 0 1 3.055 11Z"})}),s=n},4499:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("rect",{width:24,height:5,y:9.5,fill:"#212134",rx:.2})}),s=n},40519:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M13 18v2h4v2H7v-2h4v-2H2.992A1 1 0 0 1 2 16.993V4.007C2 3.451 2.455 3 2.992 3h18.016c.548 0 .992.449.992 1.007v12.986c0 .556-.455 1.007-.992 1.007H13Z"})}),s=n},70701:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M11.38 2.019a7.5 7.5 0 1 0 10.6 10.6C21.662 17.854 17.316 22 12.001 22 6.477 22 2 17.523 2 12c0-5.315 4.146-9.661 9.38-9.981Z"})}),s=n},79823:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#32324D",d:"M3.5 14.6a2.6 2.6 0 1 0 0-5.2 2.6 2.6 0 0 0 0 5.2Zm8.5 0a2.6 2.6 0 1 0 0-5.2 2.6 2.6 0 0 0 0 5.2Zm8.5 0a2.6 2.6 0 1 0 0-5.2 2.6 2.6 0 0 0 0 5.2Z"})}),s=n},20155:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M20 3v14a4 4 0 1 1-2-3.465V6H9v11a4 4 0 1 1-2-3.465V3h13Z"})}),s=n},13828:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...a,children:[(0,r.jsx)("rect",{width:31,height:23,x:.5,y:.5,fill:"#FCECEA",stroke:"#F5C0B8",rx:2.5}),(0,r.jsx)("path",{fill:"#D02B20",d:"M9.815 16h1.475V8.954H9.82L8 10.22v1.328l1.729-1.201h.087V16Zm3.394 0h5.083v-1.187h-3.106v-.112l1.304-1.216c1.284-1.186 1.7-1.85 1.7-2.651v-.015c0-1.215-1.016-2.046-2.466-2.046-1.543 0-2.598.928-2.598 2.28l.005.02h1.362v-.024c0-.67.474-1.128 1.162-1.128.674 0 1.084.42 1.084 1.02v.015c0 .493-.268.85-1.26 1.812l-2.27 2.24V16Zm9.067.156c1.646 0 2.744-.864 2.744-2.143v-.01c0-.957-.683-1.563-1.733-1.66v-.03c.825-.17 1.47-.742 1.47-1.62v-.01c0-1.123-.977-1.885-2.49-1.885-1.48 0-2.471.82-2.574 2.08l-.005.059h1.358l.005-.044c.058-.586.522-.962 1.216-.962.693 0 1.098.361 1.098.947v.01c0 .571-.478.962-1.22.962h-.787v1.05h.806c.855 0 1.357.37 1.357 1.044v.01c0 .596-.493 1.016-1.245 1.016-.761 0-1.264-.39-1.328-.938l-.005-.053h-1.41l.004.063c.098 1.26 1.148 2.114 2.74 2.114Z"})]}),s=n},57342:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#32324D",d:"M3.74 2.7v3.85h1.04v.85H1.56v-.85H2.6V3.8H1.56v-.77l2.18-.33Zm-.72 10.92.01.04h1.75v.76H1.55v-.67l1.52-1.57c.19-.22.34-.41.43-.58a.99.99 0 0 0 .14-.45.64.64 0 0 0-.14-.43.51.51 0 0 0-.4-.16.43.43 0 0 0-.39.2.96.96 0 0 0-.14.53H1.52v-.02c-.02-.43.12-.79.41-1.09.3-.3.68-.44 1.16-.44.52 0 .91.12 1.2.37.29.25.43.6.43 1.04 0 .29-.08.55-.23.78-.15.22-.43.56-.84 1l-.63.7Zm1.63 5.85a1.25 1.25 0 0 0-.59-.42c.22-.1.4-.24.53-.41a1.16 1.16 0 0 0-.26-1.57c-.3-.23-.7-.35-1.21-.35-.43 0-.8.12-1.1.35-.31.23-.46.55-.45.92l.01.03h1.05c0-.19.05-.25.16-.33a.6.6 0 0 1 .37-.13c.18 0 .31.05.4.15.1.1.15.22.15.37a.6.6 0 0 1-.16.44.6.6 0 0 1-.45.17h-.5v.75h.5c.22 0 .39.07.5.17.12.1.18.28.18.5 0 .16-.05.3-.17.4a.64.64 0 0 1-.45.17.64.64 0 0 1-.42-.18.47.47 0 0 1-.18-.4H1.51l-.01.05c-.01.43.15.78.47 1 .33.23.71.35 1.15.35.5 0 .92-.12 1.25-.36.33-.24.49-.58.49-1 0-.26-.07-.48-.21-.67ZM8.4 3.97h14.1v2.38H8.4V3.98Zm14.1 6.9H8.4v2.37h14.1v-2.37Zm-14.1 6.9h14.1v2.37H8.4v-2.37Z"})}),s=n},15116:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 25",...a,children:[(0,r.jsx)("path",{fill:"#212134",d:"M6.24 11.28H18v1.44H6.24v-1.44Z"}),(0,r.jsx)("path",{fill:"#212134",d:"m5.871 10.699 8.347-6.176.86 1.162-8.347 6.177-.86-1.163ZM5.899 13.354l8.346 6.176.864-1.167-8.347-6.176-.863 1.167Z"}),(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M3.6 14.399a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2ZM20.4 14.399a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2ZM16.8 22.8a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2ZM16.8 6a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2Z",clipRule:"evenodd"})]}),s=n},72814:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:[(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M3.6 14a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2ZM20.4 14a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2Z",clipRule:"evenodd"}),(0,r.jsx)("path",{fill:"#212134",d:"M6.24 10.881H18v1.44H6.24v-1.44Z"})]}),s=n},82029:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M7.128 12.321a3.601 3.601 0 1 1 0-1.44H18.72v-2.4L24 11.6l-5.28 3.12v-2.4H7.128ZM6 11.6a2.4 2.4 0 1 1-4.8 0 2.4 2.4 0 0 1 4.8 0Z",clipRule:"evenodd"})}),s=n},89082:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M12 2c5.522 0 10 3.978 10 8.889a5.558 5.558 0 0 1-5.556 5.555h-1.966c-.922 0-1.667.745-1.667 1.667 0 .422.167.811.422 1.1.267.3.434.689.434 1.122C13.667 21.256 12.9 22 12 22 6.478 22 2 17.522 2 12S6.478 2 12 2ZM7.5 12a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm9 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM12 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"})}),s=n},54192:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M4 3h16a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm2 9h6a1 1 0 0 1 1 1v3h1v6h-4v-6h1v-2H5a1 1 0 0 1-1-1v-2h2v1Zm11.732 1.732 1.768-1.768 1.768 1.768a2.5 2.5 0 1 1-3.536 0Z"})}),s=n},21421:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M1.946 9.315c-.522-.174-.527-.455.01-.634l19.087-6.362c.53-.176.832.12.684.638l-5.454 19.086c-.15.529-.455.547-.679.045L12 14l6-8-8 6-8.054-2.685Z"})}),s=n},17688:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#181826",d:"M3 4h18v2H3V4Zm0 15h14v2H3v-2Zm0-5h18v2H3v-2Zm0-5h14v2H3V9Z"})}),s=n},86018:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...a,children:[(0,r.jsx)("path",{fill:"#FDF4DC",stroke:"#FAE7B9",d:"M.5 3A2.5 2.5 0 0 1 3 .5h26A2.5 2.5 0 0 1 31.5 3v18a2.5 2.5 0 0 1-2.5 2.5H3A2.5 2.5 0 0 1 .5 21V3Z"}),(0,r.jsx)("path",{fill:"#D9822F",d:"M20.158 11.995c0-.591-.463-1.073-1.045-1.11H13.53V9.245a2.05 2.05 0 0 1 2.046-2.049c1.13 0 2.048.784 2.049 1.913 0 .24.194.433.433.433h.33a.433.433 0 0 0 .433-.433C18.82 7.32 17.365 5.999 15.577 6a3.246 3.246 0 0 0-3.241 3.244v1.642h-.223c-.615 0-1.113.499-1.113 1.114v4.887c.001.615.5 1.113 1.115 1.113l6.93-.003c.616 0 1.114-.5 1.114-1.115l-.001-4.887Z"})]}),s=n},2382:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M23.604 3.514c.528.528.528 1.36 0 1.887l-2.622 2.607-4.99-4.99L18.6.396a1.322 1.322 0 0 1 1.887 0l3.118 3.118ZM0 24v-4.99l14.2-14.2 4.99 4.99L4.99 24H0Z",clipRule:"evenodd"})}),s=n},9232:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M21 16.42v3.536a1 1 0 0 1-.93.998c-.437.03-.794.046-1.07.046-8.837 0-16-7.163-16-16 0-.276.015-.633.046-1.07A1 1 0 0 1 4.044 3H7.58a.5.5 0 0 1 .498.45c.023.23.044.413.064.552A13.9 13.9 0 0 0 9.35 8.003c.095.2.033.439-.147.567l-2.158 1.542a13.047 13.047 0 0 0 6.844 6.844l1.54-2.154a.462.462 0 0 1 .573-.149 13.9 13.9 0 0 0 4 1.205c.139.02.322.042.55.064a.5.5 0 0 1 .449.498H21Z"})}),s=n},74910:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#32324D",fillRule:"evenodd",d:"M2.719 19.316V4.682H21.28v14.634H2.72ZM1 3.288c0-.192.154-.348.344-.348h21.312c.19 0 .344.156.344.348V20.71a.346.346 0 0 1-.344.349H1.344a.346.346 0 0 1-.344-.35V3.29Zm14.812 8.02a1.919 1.919 0 1 0 0-3.837 1.919 1.919 0 0 0 0 3.837ZM5.443 17.263h12.783a.547.547 0 0 0 .456-.87l-1.763-2.394a.547.547 0 0 0-.825-.072l-1.812 1.725-4.206-5.71a.547.547 0 0 0-.9.025L4.972 16.42a.547.547 0 0 0 .472.844Z",clipRule:"evenodd"})}),s=n},73734:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 20",...a,children:[(0,r.jsx)("path",{fill:"#32324D",d:"M21.569 2.398H7.829v1.586h13.74c.47 0 .826.5.826 1.094v9.853l-2.791-3.17a2.13 2.13 0 0 0-.74-.55 2.214 2.214 0 0 0-.912-.196 2.215 2.215 0 0 0-.912.191 2.131 2.131 0 0 0-.74.546l-2.93 3.385-2.973-3.36a2.147 2.147 0 0 0-.741-.545 2.228 2.228 0 0 0-1.824.007c-.286.13-.538.319-.739.553l-2.931 3.432V7.653H2.51v9.894c.023.153.06.304.108.452v.127l.041.095c.057.142.126.28.207.412l.099.15c.074.107.157.207.247.302l.124.119c.13.118.275.222.43.309h.024c.36.214.775.327 1.198.325h16.515c.36-.004.716-.085 1.039-.24.323-.153.606-.375.827-.648a2.78 2.78 0 0 0 .504-.888c.066-.217.108-.44.124-.666V5.078a2.497 2.497 0 0 0-.652-1.81 2.706 2.706 0 0 0-1.776-.87Z"}),(0,r.jsx)("path",{fill:"#32324D",d:"M12.552 9.199c.912 0 1.651-.71 1.651-1.585 0-.876-.74-1.586-1.651-1.586-.912 0-1.652.71-1.652 1.586 0 .875.74 1.585 1.652 1.585ZM3.303 6.408h.826V3.997h2.477V2.41H4.129V0h-.826c-.219 0-.85.002-.826 0v2.411H0v1.586h2.477v2.41h.826Z"})]}),s=n},43289:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"m22.314 10.172-1.415 1.414-.707-.707-4.242 4.242-.707 3.536-1.415 1.414-4.242-4.243-4.95 4.95-1.414-1.414 4.95-4.95-4.243-4.242 1.414-1.415L8.88 8.05l4.242-4.242-.707-.707 1.414-1.415 8.485 8.486Z"})}),s=n},24661:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M18.364 17.364 12 23.728l-6.364-6.364a9 9 0 1 1 12.728 0ZM12 13a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"})}),s=n},21761:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M14 8.947 22 14v2l-8-2.526v5.36l3 1.666V22l-4.5-1L8 22v-1.5l3-1.667v-5.36L3 16v-2l8-5.053V3.5a1.5 1.5 0 1 1 3 0v5.447Z"})}),s=n},28102:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 8 8",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M2 .93c0-.4.45-.63.78-.41l4.6 3.06c.3.2.3.64 0 .84l-4.6 3.06A.5.5 0 0 1 2 7.07V.93Z"})}),s=n},76730:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 32",...a,children:[(0,r.jsx)("path",{fill:"#66B7F1",d:"M0 4a4 4 0 0 1 4-4h24a4 4 0 0 1 4 4v24a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V4Z"}),(0,r.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M12 10.921a.5.5 0 0 1 .773-.419l8.582 5.579a.5.5 0 0 1 0 .838l-8.582 5.579a.5.5 0 0 1-.773-.42V10.922Z",clipRule:"evenodd"})]}),s=n},83598:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M24 13.604a.3.3 0 0 1-.3.3h-9.795V23.7a.3.3 0 0 1-.3.3h-3.21a.3.3 0 0 1-.3-.3v-9.795H.3a.3.3 0 0 1-.3-.3v-3.21a.3.3 0 0 1 .3-.3h9.795V.3a.3.3 0 0 1 .3-.3h3.21a.3.3 0 0 1 .3.3v9.795H23.7a.3.3 0 0 1 .3.3v3.21Z"})}),s=n},45196:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:[(0,r.jsx)("circle",{cx:12,cy:12,r:12,fill:"#212134"}),(0,r.jsx)("path",{fill:"#F6F6F9",d:"M17 12.569c0 .124-.1.224-.225.224h-3.981v3.982c0 .124-.101.225-.226.225h-1.136a.225.225 0 0 1-.226-.225v-3.981H7.226A.225.225 0 0 1 7 12.567v-1.136c0-.125.1-.226.225-.226h3.982V7.226c0-.124.1-.225.224-.225h1.138c.124 0 .224.1.224.225v3.982h3.982c.124 0 .225.1.225.224v1.138Z"})]}),s=n},56514:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"m10.9 2.1 9.9 1.415 1.413 9.9-9.192 9.192a1 1 0 0 1-1.414 0l-9.9-9.9a1 1 0 0 1 0-1.414L10.9 2.1Zm2.828 8.486a2 2 0 1 0 2.828-2.83 2 2 0 0 0-2.828 2.83Z"})}),s=n},91948:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 25 25",...a,children:(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"m13.58.448 3.177 3.176L18.66 1.72a3.267 3.267 0 1 1 4.62 4.62l-1.904 1.904 3.175 3.175a1.528 1.528 0 0 1 0 2.162l-3.175 3.175L20.2 15.58a3.267 3.267 0 1 0-4.62 4.62l1.177 1.177-3.176 3.176a1.528 1.528 0 0 1-2.162 0l-3.175-3.175-1.902 1.902a3.267 3.267 0 1 1-4.62-4.62l1.902-1.902-3.176-3.176a1.528 1.528 0 0 1 0-2.162l3.176-3.176L4.8 9.42a3.267 3.267 0 0 0 4.62-4.62L8.244 3.623 11.419.448a1.528 1.528 0 0 1 2.162 0Z",clipRule:"evenodd"})}),s=n},50841:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 15 14",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M5.08 4.1c0-1.19 1.18-2.17 2.42-2.17s2.43.98 2.43 2.17c0 1.1-.56 1.61-1.31 2.28l-.03.03c-.75.65-1.66 1.47-1.66 3.09a.57.57 0 1 0 1.15 0c0-1.08.55-1.6 1.3-2.26l.02-.02c.75-.66 1.67-1.48 1.67-3.12C11.07 2.13 9.22.78 7.5.78 5.78.78 3.93 2.13 3.93 4.1a.57.57 0 1 0 1.15 0Zm2.42 9.26a.88.88 0 1 0 0-1.75.88.88 0 0 0 0 1.75Z"})}),s=n},97653:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#32324D",d:"M10.479 6.329c-1.206.642-2.267 1.655-2.992 2.788-.758 1.185-1.161 2.521-.951 3.715l.03.175.173-.04a4.1 4.1 0 0 1 1.713.01c.62.137 1.21.425 1.607.923.538.683.805 1.527.805 2.516 0 1.133-.358 2.022-1.089 2.674-.737.658-1.674.992-2.811.992-2.573 0-4.432-2.067-4.825-5.3C1.523 9.74 5.075 5.72 8.757 3.914l1.722 2.415Zm7.16 6.503.03.175.173-.04a4.076 4.076 0 0 1 1.707.01c.618.137 1.21.425 1.613.924.538.683.804 1.527.804 2.515 0 1.133-.358 2.022-1.088 2.674-.737.658-1.675.992-2.812.992-2.572 0-4.417-2.067-4.811-5.3-.616-5.043 2.923-9.062 6.605-10.868l1.721 2.415c-1.205.642-2.266 1.655-2.991 2.788-.759 1.185-1.162 2.521-.952 3.715Z"})}),s=n},67008:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#FF4500",fillRule:"evenodd",d:"M23.634 12.018c0 6.583-5.263 11.92-11.754 11.92C5.388 23.938.125 18.6.125 12.018S5.388.098 11.88.098c6.491 0 11.754 5.337 11.754 11.92ZM17.94 10.34a1.73 1.73 0 0 1 1.779 1.677c.012.67-.36 1.286-.95 1.585.012.175.012.35 0 .524 0 2.673-3.067 4.842-6.851 4.842s-6.852-2.172-6.852-4.842a3.925 3.925 0 0 1 0-.524 1.662 1.662 0 0 1-.461-.314 1.756 1.756 0 0 1-.076-2.46 1.697 1.697 0 0 1 2.425-.076 8.339 8.339 0 0 1 4.584-1.467l.868-4.136v-.006a.364.364 0 0 1 .435-.282l2.881.584c.184-.326.517-.545.888-.584a1.18 1.18 0 0 1 1.295 1.058 1.188 1.188 0 0 1-1.044 1.313 1.18 1.18 0 0 1-1.294-1.058l-2.515-.536-.763 3.718a8.277 8.277 0 0 1 4.526 1.467 1.71 1.71 0 0 1 1.125-.483Zm-8.798 1.677c-.648 0-1.177.536-1.177 1.194a1.19 1.19 0 0 0 1.177 1.194c.649 0 1.178-.536 1.178-1.194 0-.658-.53-1.194-1.178-1.194Zm2.747 5.39a4.47 4.47 0 0 0 2.904-.919v.047a.339.339 0 0 0 .006-.47.327.327 0 0 0-.465-.007 3.83 3.83 0 0 1-2.457.726 3.802 3.802 0 0 1-2.446-.75.314.314 0 0 0-.403 0 .327.327 0 0 0-.044.454 4.47 4.47 0 0 0 2.905.918Zm1.516-4.155c0 .658.529 1.194 1.178 1.194l-.01.045h.06a1.186 1.186 0 0 0 1.127-1.239c0-.657-.529-1.194-1.178-1.194-.648 0-1.177.537-1.177 1.194Z",clipRule:"evenodd"})}),s=n},75975:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M15.681 2.804A9.64 9.64 0 0 0 11.818 2C6.398 2 2 6.48 2 12c0 5.521 4.397 10 9.818 10 2.03 0 4.011-.641 5.67-1.835a9.987 9.987 0 0 0 3.589-4.831 1.117 1.117 0 0 0-.664-1.418 1.086 1.086 0 0 0-1.393.676 7.769 7.769 0 0 1-2.792 3.758 7.546 7.546 0 0 1-4.41 1.428V4.222h.002a7.492 7.492 0 0 1 3.003.625 7.61 7.61 0 0 1 2.5 1.762l.464.551-2.986 3.042a.186.186 0 0 0 .129.316H22V3.317a.188.188 0 0 0-.112-.172.179.179 0 0 0-.199.04l-2.355 2.4-.394-.468-.02-.02a9.791 9.791 0 0 0-3.239-2.293Zm-3.863 1.418V2v2.222Zm0 0v15.556c-4.216 0-7.636-3.484-7.636-7.778s3.42-7.777 7.636-7.778Z",clipRule:"evenodd"})}),s=n},43054:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...a,children:[(0,r.jsx)("path",{fill:"#F0F0FF",stroke:"#D9D8FF",d:"M.5 3A2.5 2.5 0 0 1 3 .5h26A2.5 2.5 0 0 1 31.5 3v18a2.5 2.5 0 0 1-2.5 2.5H3A2.5 2.5 0 0 1 .5 21V3Z"}),(0,r.jsx)("path",{fill:"#4945FF",fillRule:"evenodd",d:"M21.375 16.316c.417-.407.625-.904.625-1.492 0-.589-.206-1.089-.618-1.5l-1.53-1.53a2.042 2.042 0 0 0-1.5-.617 2.06 2.06 0 0 0-1.529.646l-.646-.646c.43-.422.646-.934.646-1.537a2.03 2.03 0 0 0-.61-1.493l-1.515-1.522a2.014 2.014 0 0 0-1.5-.625 2.03 2.03 0 0 0-1.492.61l-1.081 1.074A2.006 2.006 0 0 0 10 9.176c0 .589.206 1.089.618 1.5l1.53 1.53c.41.412.91.617 1.5.617a2.06 2.06 0 0 0 1.529-.646l.646.646a2.069 2.069 0 0 0-.646 1.537c0 .588.203 1.086.61 1.493l1.514 1.522c.407.417.907.625 1.5.625a2.03 2.03 0 0 0 1.493-.61l1.081-1.074Zm-5.956-6.678a.68.68 0 0 0-.205-.5l-1.515-1.522a.68.68 0 0 0-.5-.206.71.71 0 0 0-.5.199l-1.081 1.073a.672.672 0 0 0-.206.493.68.68 0 0 0 .206.5l1.53 1.53a.678.678 0 0 0 .5.198.71.71 0 0 0 .529-.228l-.14-.136a4.46 4.46 0 0 1-.158-.158 1.756 1.756 0 0 1-.11-.14.593.593 0 0 1-.122-.39.68.68 0 0 1 .206-.5.68.68 0 0 1 .5-.206.59.59 0 0 1 .39.121c.064.047.11.084.14.111.03.027.082.08.158.158l.136.14a.713.713 0 0 0 .242-.537Zm5.168 5.187a.68.68 0 0 0-.206-.5l-1.529-1.53a.68.68 0 0 0-.5-.205.7.7 0 0 0-.53.235l.14.136c.079.076.132.129.159.158.027.03.063.076.11.14a.591.591 0 0 1 .121.39.681.681 0 0 1-.206.5.681.681 0 0 1-.5.206.591.591 0 0 1-.39-.121 1.746 1.746 0 0 1-.14-.111 4.395 4.395 0 0 1-.157-.158 20.642 20.642 0 0 0-.136-.14.714.714 0 0 0-.037 1.037l1.515 1.522a.678.678 0 0 0 .5.198.708.708 0 0 0 .5-.19l1.08-1.074a.672.672 0 0 0 .206-.493Z",clipRule:"evenodd"})]}),s=n},85678:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M6 4h15a1 1 0 0 1 1 1v7h-2V6H6v3L1 5l5-4v3Zm12 16H3a1 1 0 0 1-1-1v-7h2v6h14v-3l5 4-5 4v-3Z"})}),s=n},79657:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M21 2v20h-2v-8h-3V7a5 5 0 0 1 5-5ZM9 13.9V22H7v-8.1A5.002 5.002 0 0 1 3 9V3h2v7h2V3h2v7h2V3h2v6a5.002 5.002 0 0 1-4 4.9Z"})}),s=n},64816:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...a,children:[(0,r.jsx)("rect",{width:31,height:23,x:.5,y:.5,fill:"#EAF5FF",stroke:"#B8E1FF",rx:2.5}),(0,r.jsx)("path",{fill:"#0C75AF",fillRule:"evenodd",d:"M19.286 9.286v-.857a.397.397 0 0 0-.138-.302A.465.465 0 0 0 18.82 8h-8.357a.465.465 0 0 0-.326.127.397.397 0 0 0-.138.302v.857c0 .116.046.216.138.301.092.085.2.127.326.127h8.357a.465.465 0 0 0 .327-.127.397.397 0 0 0 .138-.301Zm2.785 2.713v.857a.397.397 0 0 1-.137.301.465.465 0 0 1-.327.128H10.464a.465.465 0 0 1-.326-.128.397.397 0 0 1-.138-.301v-.857c0-.116.046-.217.138-.302a.465.465 0 0 1 .326-.127h11.143c.126 0 .235.043.327.127a.397.397 0 0 1 .137.302Zm-1.857 3.574v.857a.397.397 0 0 1-.137.302.465.465 0 0 1-.327.127h-9.286a.465.465 0 0 1-.326-.127.397.397 0 0 1-.138-.302v-.857c0-.116.046-.216.138-.301a.465.465 0 0 1 .326-.127h9.286c.126 0 .235.042.326.127a.397.397 0 0 1 .138.301Z",clipRule:"evenodd"})]}),s=n},81536:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M8.498 20h7.004A6.523 6.523 0 0 1 12 23.502 6.523 6.523 0 0 1 8.498 20ZM18 14.805l2 2.268V19H4v-1.927l2-2.268V9c0-3.483 2.504-6.447 6-7.545C15.496 2.553 18 5.517 18 9v5.805ZM12 11a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"})}),s=n},65715:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 8 9",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M8 .23a.1.1 0 0 0-.1-.1H5.55a.39.39 0 0 0-.39.39v2.35c0 .05.05.1.1.1h.58a.1.1 0 0 0 .1-.1V1.62c.72.55.97 1.17 1.06 2.08.09.9-.29 1.8-.9 2.47C5.49 6.85 4.9 7 4 7h-.16a.1.1 0 0 0-.1.1v.8c0 .05.05.1.1.1H4A4 4 0 0 0 6.52.9H7.9A.1.1 0 0 0 8 .8V.23ZM2.84 7.49V5.13a.1.1 0 0 0-.1-.1h-.58a.1.1 0 0 0-.1.1v1.25C1.34 5.83 1.08 5.21 1 4.31c-.09-.91.2-1.8.82-2.48.6-.67 1.27-.86 2.18-.86h.14c.06 0 .12-.04.12-.1V.1a.1.1 0 0 0-.1-.1H4a4 4 0 0 0-2.53 7.1H.1a.1.1 0 0 0-.1.1v.57c0 .06.04.1.1.1h2.35a.39.39 0 0 0 .39-.38Z"})}),s=n},83695:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"m12 14.121-2.317 2.317a4 4 0 1 1-2.12-2.121L9.88 12 4.21 6.333a2 2 0 0 1 0-2.829l.708-.707L12 9.88l7.081-7.082.708.707a1.999 1.999 0 0 1 0 2.829L14.12 12l2.317 2.317a4 4 0 1 1-2.12 2.121L12 14.12v.001ZM6 20a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm12 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"})}),s=n},90272:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#32324D",fillRule:"evenodd",d:"m23.813 20.163-5.3-5.367a9.792 9.792 0 0 0 1.312-4.867C19.825 4.455 15.375 0 9.913 0 4.45 0 0 4.455 0 9.929c0 5.473 4.45 9.928 9.912 9.928a9.757 9.757 0 0 0 5.007-1.4l5.275 5.35a.634.634 0 0 0 .913 0l2.706-2.737a.641.641 0 0 0 0-.907ZM9.91 3.867c3.338 0 6.05 2.718 6.05 6.061s-2.712 6.061-6.05 6.061c-3.337 0-6.05-2.718-6.05-6.06 0-3.344 2.713-6.062 6.05-6.062Z",clipRule:"evenodd"})}),s=n},89816:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M22 7v2.5a6.499 6.499 0 0 1-6.5 6.5H13v5h-2v-7l.019-1A6.5 6.5 0 0 1 17.5 7H22ZM6 3a7.004 7.004 0 0 1 6.643 4.786A7.477 7.477 0 0 0 10.016 13H9a7 7 0 0 1-7-7V3h4Z"})}),s=n},57810:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M4 3h16a1 1 0 0 1 1 1v7H3V4a1 1 0 0 1 1-1ZM3 13h18v7a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-7Zm4 3v2h3v-2H7ZM7 6v2h3V6H7Z"})}),s=n},36277:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M11.738 23.966C4.905 21.624 0 18.49 0 11.043V3.772c0-.331.275-.6.615-.6C4.971 3.17 9.159 1.792 11.647.074A.516.516 0 0 1 11.942 0h.115c.103 0 .21.016.295.074 2.535 1.72 6.676 3.096 11.033 3.098.34 0 .615.269.615.6v7.271c0 7.447-4.906 10.582-11.739 12.923a.63.63 0 0 1-.204.034h-.115a.631.631 0 0 1-.204-.034Zm.16-11.175c-2.944 0-5.334 1.153-5.334 4.003H17.23c0-2.85-2.39-4.003-5.333-4.003ZM12 6.188a2.501 2.501 0 0 1 0 5 2.501 2.501 0 0 1 0-5Z",clipRule:"evenodd"})}),s=n},8700:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"m14.515 5 2.606-2.607a1 1 0 0 1 1.415 0l4.242 4.243a1 1 0 0 1 0 1.414L19 11.828V21a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-9.172L1.222 8.05a1 1 0 0 1 0-1.414l4.242-4.243a1 1 0 0 1 1.415 0L9.485 5h5.03Z"})}),s=n},2428:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M23.12 3.907c-.025 0-.055-.005-.087-.011a.72.72 0 0 0-.13-.016H5.929l-.27-1.805A2.413 2.413 0 0 0 3.26 0H1.078C.485 0 0 .485 0 1.078c0 .593.485 1.078 1.078 1.078H3.26c.135 0 .243.107.27.242L5.2 13.77a2.954 2.954 0 0 0 2.91 2.506h11.21c1.401 0 2.614-.997 2.91-2.371l1.752-8.757a1.065 1.065 0 0 0-.863-1.24Zm-4.932 13.927a2.8 2.8 0 0 0-2.802 2.802 2.8 2.8 0 0 0 2.802 2.802 2.8 2.8 0 0 0 2.803-2.802c-.027-1.536-1.267-2.802-2.803-2.802Zm-9.646 0a2.786 2.786 0 0 1 2.775 2.667c.081 1.536-1.132 2.83-2.667 2.91h-.054a2.762 2.762 0 0 1-2.749-2.667 2.819 2.819 0 0 1 2.695-2.91Z",clipRule:"evenodd"})}),s=n},15301:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...a,children:[(0,r.jsx)("rect",{width:31,height:23,x:.5,y:.5,fill:"#0C75AF",stroke:"#0C75AF",rx:2.5}),(0,r.jsx)("path",{fill:"#fff",d:"M8.523 13.586c.106 1.64 1.418 2.63 3.34 2.63 2.098 0 3.516-1.113 3.516-2.788 0-1.143-.65-1.846-2.086-2.297l-.867-.27c-.797-.252-1.137-.597-1.137-1.066 0-.598.633-1.031 1.459-1.031.873 0 1.512.474 1.617 1.183h1.67c-.053-1.54-1.36-2.619-3.217-2.619-1.91 0-3.328 1.131-3.328 2.678 0 1.09.715 1.922 1.963 2.309l.879.275c.914.287 1.266.592 1.266 1.084 0 .662-.657 1.107-1.606 1.107-.914 0-1.635-.469-1.758-1.195h-1.71ZM20.107 16l1.489-6.943h2.531l.31-1.512h-6.843l-.31 1.512h2.53L18.326 16h1.781Z"})]}),s=n},66776:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M13 17v3h5v2H6v-2h5v-3H4a1 1 0 0 1-1-1V4H2V2h20v2h-1v12a1 1 0 0 1-1 1h-7ZM10 6v7l5-3.5L10 6Z"})}),s=n},52374:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"m20.083 10.5 1.202.721a.501.501 0 0 1 0 .858L12 17.65l-9.285-5.571a.5.5 0 0 1 0-.858l1.202-.721L12 15.35l8.083-4.85Zm0 4.7 1.202.721a.501.501 0 0 1 0 .858l-8.77 5.262a1 1 0 0 1-1.03 0l-8.77-5.262a.5.5 0 0 1 0-.858l1.202-.721L12 20.05l8.083-4.85ZM12.514 1.309l8.771 5.262a.5.5 0 0 1 0 .858L12 13 2.715 7.429a.5.5 0 0 1 0-.858l8.77-5.262a1 1 0 0 1 1.03 0Z"})}),s=n},82500:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"m12 18.26-7.053 3.948 1.575-7.928L.587 8.792l8.027-.952L12 .5l3.386 7.34 8.027.952-5.935 5.488 1.575 7.928L12 18.26Z"})}),s=n},94469:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M22 20v2H2v-2h1v-6.758A4.496 4.496 0 0 1 1 9.5c0-.827.224-1.624.633-2.303L4.345 2.5a1 1 0 0 1 .866-.5H18.79a1 1 0 0 1 .866.5l2.702 4.682A4.496 4.496 0 0 1 21 13.242V20h1ZM5.789 4 3.356 8.213a2.5 2.5 0 0 0 4.466 2.216c.335-.837 1.52-.837 1.856 0a2.5 2.5 0 0 0 4.644 0c.335-.837 1.52-.837 1.856 0a2.501 2.501 0 1 0 4.457-2.232L18.21 4H5.789Z"})}),s=n},61193:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 80 80",...a,children:[(0,r.jsx)("path",{fill:"#4945FF",d:"M0 27.7c0-13 0-19.6 4-23.6C8.2 0 14.8 0 27.8 0h24.6C65.4 0 72 0 76 4c4 4.2 4 10.8 4 23.8v24.6c0 13 0 19.6-4 23.6-4.2 4-10.8 4-23.8 4H27.7c-13 0-19.6 0-23.6-4C0 71.8 0 65.2 0 52.2V27.7Z"}),(0,r.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M55.2 24.3h-27V38H42v13.7h13.7V24.8c0-.3-.2-.5-.5-.5Z",clipRule:"evenodd"}),(0,r.jsx)("path",{fill:"#fff",d:"M41.5 38h.5v.5h-.5z"}),(0,r.jsx)("path",{fill:"#9593FF",d:"M28.3 38h13.2c.3 0 .5.2.5.5v13.2H28.8a.5.5 0 0 1-.5-.5V38ZM42 51.7h13.7L42.5 65c-.2.2-.5 0-.5-.2v-13ZM28.3 38H15.2a.3.3 0 0 1-.2-.5l13.3-13.2V38Z"})]}),s=n},1145:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#32324D",d:"M16.39 2.17c.68.1 1.17.2 1.46.39.39.2.58.39.78.58.2.3.3.78.39 1.18l.78 3.5h1.95V1H2.84l-.59 6.83H4l.98-3.9a5 5 0 0 1 .39-.98c.2-.2.49-.39.88-.58.39-.1.88-.3 1.56-.3.58 0 1.36-.1 2.34-.1v8.78h-7.8v1.95h7.8v7.41c0 .2.1.3-.1.39-.2.1-.39.2-.88.2l-2.04.39-.1 1.36h9.94l-.1-1.36-2.04-.3c-.49 0-.69-.1-.78-.2-.2-.09-.1-.19-.1-.38V12.7h7.8v-1.95h-7.8V1.97c.98 0 1.85.1 2.44.2Z"})}),s=n},88499:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M12 18a6 6 0 1 1 0-12 6 6 0 0 1 0 12ZM11 1h2v3h-2V1Zm0 19h2v3h-2v-3ZM3.515 4.929l1.414-1.414L7.05 5.636 5.636 7.05 3.515 4.93v-.001ZM16.95 18.364l1.414-1.414 2.121 2.121-1.414 1.414-2.121-2.121Zm2.121-14.85 1.414 1.415-2.121 2.121-1.414-1.414 2.121-2.121v-.001ZM5.636 16.95l1.414 1.414-2.121 2.121-1.414-1.414 2.121-2.121ZM23 11v2h-3v-2h3ZM4 11v2H1v-2h3Z"})}),s=n},12396:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M15.414 5h5.594c.548 0 .992.445.992 1v14c0 .552-.455 1-.992 1H2.992A.996.996 0 0 1 2 20V6c0-.552.455-1 .992-1h5.594L6.05 2.464 7.464 1.05 11.414 5h1.172l3.95-3.95 1.414 1.414L15.414 5Z"})}),s=n},22355:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...a,children:[(0,r.jsx)("rect",{width:31,height:23,x:.5,y:.5,fill:"#EAFBE7",stroke:"#C6F0C2",rx:2.5}),(0,r.jsx)("path",{fill:"#328048",d:"M8.62 16h1.857l.627-2.05h2.982l.627 2.05h1.863l-2.941-8.455h-2.08L8.619 16Zm3.925-6.768h.105l1.032 3.393h-2.174l1.037-3.393ZM21.65 16.1c1.612 0 2.62-1.26 2.62-3.323v-.011c0-2.075-.985-3.323-2.62-3.323-.884 0-1.605.434-1.933 1.137h-.106V7.082h-1.71V16h1.71v-1.002h.106c.334.697 1.02 1.102 1.933 1.102Zm-.585-1.418c-.903 0-1.471-.715-1.471-1.899v-.011c0-1.184.574-1.91 1.47-1.91.903 0 1.465.726 1.465 1.904v.011c0 1.19-.556 1.905-1.465 1.905Z"})]}),s=n},93769:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M22 15h-3V3h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1Zm-5.293 1.293-6.4 6.4a.5.5 0 0 1-.654.047L8.8 22.1a1.5 1.5 0 0 1-.553-1.57L9.4 16H3a2 2 0 0 1-2-2v-2.104a2 2 0 0 1 .15-.762L4.246 3.62A1 1 0 0 1 5.17 3H16a1 1 0 0 1 1 1v11.586a1 1 0 0 1-.293.707Z"})}),s=n},55998:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M2 9h3v12H2a1 1 0 0 1-1-1V10a1 1 0 0 1 1-1Zm5.293-1.293 6.4-6.4a.5.5 0 0 1 .654-.047l.853.64a1.5 1.5 0 0 1 .553 1.57L14.6 8H21a2 2 0 0 1 2 2v2.104a2 2 0 0 1-.15.762l-3.095 7.515a1 1 0 0 1-.925.619H8a1 1 0 0 1-1-1V8.414a1 1 0 0 1 .293-.707Z"})}),s=n},72402:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"m17.2 20 1.8 1.5v.5H5v-.5L6.8 20H5a2 2 0 0 1-2-2V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4v11a2 2 0 0 1-2 2h-1.8ZM11 12V5H7a2 2 0 0 0-2 2v5h6Zm2 0h6V7a2 2 0 0 0-2-2h-4v7Zm-5.5 6a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm9 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"})}),s=n},54425:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#32324D",d:"M3.236 6.149a.2.2 0 0 0-.197.233L6 24h12l2.96-17.618a.2.2 0 0 0-.196-.233H3.236ZM21.8 1.983c.11 0 .2.09.2.2v1.584a.2.2 0 0 1-.2.2H2.2a.2.2 0 0 1-.2-.2V2.183c0-.11.09-.2.2-.2h5.511c.9 0 1.631-1.09 1.631-1.983h5.316c0 .894.73 1.983 1.631 1.983H21.8Z"})}),s=n},32765:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#1DA1F2",d:"M24 4.557a9.83 9.83 0 0 1-2.828.775 4.932 4.932 0 0 0 2.165-2.724 9.864 9.864 0 0 1-3.127 1.195 4.916 4.916 0 0 0-3.594-1.555c-3.179 0-5.515 2.966-4.797 6.045A13.978 13.978 0 0 1 1.671 3.149a4.93 4.93 0 0 0 1.523 6.574 4.903 4.903 0 0 1-2.229-.616c-.054 2.281 1.581 4.415 3.949 4.89a4.935 4.935 0 0 1-2.224.084 4.928 4.928 0 0 0 4.6 3.419A9.9 9.9 0 0 1 0 19.54a13.94 13.94 0 0 0 7.548 2.212c9.142 0 14.307-7.721 13.995-14.646A10.025 10.025 0 0 0 24 4.557Z"})}),s=n},20658:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#8E8EA9",d:"m17.654 1.7-2.782 2.533a9.138 9.138 0 0 1 3.49 1.973c3.512 3.2 3.512 8.388 0 11.588-2.592 2.36-6.598 3.862-12.016 4.506l2.782-2.533a9.138 9.138 0 0 1-3.49-1.973c-3.512-3.2-3.533-8.369 0-11.588C8.23 3.846 12.237 2.344 17.655 1.7h-.001ZM12 8c-2.485 0-4.5 1.79-4.5 4s2.015 4 4.5 4 4.5-1.79 4.5-4-2.015-4-4.5-4Z"})}),s=n},91430:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...a,children:[(0,r.jsx)("path",{fill:"#F0F0FF",stroke:"#D9D8FF",d:"M.5 3A2.5 2.5 0 0 1 3 .5h26A2.5 2.5 0 0 1 31.5 3v18a2.5 2.5 0 0 1-2.5 2.5H3A2.5 2.5 0 0 1 .5 21V3Z"}),(0,r.jsx)("path",{fill:"#4945FF",d:"M14.907 9.438c0 .375 0 .738.118 1.078-1.243 1.46-4.526 5.317-4.832 5.611a.582.582 0 0 0-.193.433c0 .245.15.481.277.614.19.2 1.004.952 1.154.808.444-.433.533-.548.715-.727.274-.268-.029-.816.066-1.039.096-.222.197-.265.361-.3.165-.034.456.084.684.087.24.003.369-.098.548-.265.144-.133.248-.257.25-.45.007-.26-.368-.603-.089-.877.28-.274.684.178.981.144.297-.035.658-.447.695-.623.038-.176-.337-.629-.28-.886.02-.086.197-.288.33-.317.132-.029.72.199.853.17.162-.034.35-.205.502-.3.447.193.854.271 1.376.271C20.4 12.87 22 11.33 22 9.432 22 7.534 20.399 6 18.423 6s-3.516 1.54-3.516 3.438Zm5.247-.669a.923.923 0 1 1-1.847 0 .923.923 0 0 1 1.847 0Z"})]}),s=n},7124:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#32324D",d:"M12 17.3c1.99 0 3.9-.74 5.3-2.07a6.9 6.9 0 0 0 2.2-5.01V1h-3v9.22c0 1.13-.47 2.2-1.32 3A4.63 4.63 0 0 1 12 14.48c-1.2 0-2.34-.45-3.18-1.24a4.14 4.14 0 0 1-1.32-3.01V1h-3v9.22a6.9 6.9 0 0 0 2.2 5.01 7.73 7.73 0 0 0 5.3 2.08Zm9.75 2.14H2.25v2.83h19.5v-2.83Z"})}),s=n},59071:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 25",...a,children:(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M13.571 18.272H10.43v-8.47H2.487a.2.2 0 0 1-.14-.343L11.858.058a.2.2 0 0 1 .282 0l9.513 9.4a.2.2 0 0 1-.14.343H13.57v8.47ZM2.2 21.095a.2.2 0 0 0-.2.2v2.424c0 .11.09.2.2.2h19.6a.2.2 0 0 0 .2-.2v-2.424a.2.2 0 0 0-.2-.2H2.2Z",clipRule:"evenodd"})}),s=n},42615:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#8E8EA9",d:"M20 22H4v-2a5 5 0 0 1 5-5h6a5 5 0 0 1 5 5v2Zm-8-9A6 6 0 1 1 12 .998 6 6 0 0 1 12 13Z"})}),s=n},57131:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M5.889 16H2a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h3.889l5.294-4.332a.5.5 0 0 1 .817.387v15.89a.5.5 0 0 1-.817.387L5.89 16h-.001Zm14.525-4 3.536 3.536-1.414 1.414L19 13.414l-3.536 3.536-1.414-1.414L17.586 12 14.05 8.464l1.414-1.414L19 10.586l3.536-3.536 1.414 1.414L20.414 12Z"})}),s=n},18104:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"M5.889 16H2a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h3.889l5.294-4.332a.5.5 0 0 1 .817.387v15.89a.5.5 0 0 1-.817.387L5.89 16h-.001Zm13.517 4.134-1.416-1.416A8.977 8.977 0 0 0 21 12a8.983 8.983 0 0 0-3.304-6.968l1.42-1.42A10.977 10.977 0 0 1 23 12c0 3.223-1.386 6.122-3.594 8.134Zm-3.543-3.543-1.422-1.422A3.992 3.992 0 0 0 16 12c0-1.43-.75-2.685-1.88-3.392l1.439-1.439A5.99 5.99 0 0 1 18 12c0 1.842-.83 3.49-2.137 4.591Z"})}),s=n},86026:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",d:"m7.617 8.712 3.205-2.328c.36-.263.797-.398 1.243-.384a2.616 2.616 0 0 1 2.427 1.82c.186.583.356.977.51 1.182A4.992 4.992 0 0 0 19 11v2a6.987 6.987 0 0 1-5.402-2.547l-.697 3.955 2.061 1.73 2.223 6.108-1.88.684-2.04-5.604-3.39-2.845a2 2 0 0 1-.713-1.904l.509-2.885-.677.492-2.127 2.928-1.618-1.176L7.6 8.7l.017.012ZM13.5 5.5a2 2 0 1 1 0-4 2 2 0 0 1 0 4Zm-2.972 13.181-3.214 3.83-1.532-1.285 2.976-3.546.746-2.18 1.791 1.5-.767 1.681Z"})}),s=n},98002:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M16.557 6.762a2.381 2.381 0 1 0 0-4.762 2.381 2.381 0 0 0 0 4.762Zm-2.655-.5a.962.962 0 0 1 .12.066l2.397 1.556a.952.952 0 0 1 .28 1.318l-2.536 3.905c.07.104.138.212.201.322h4.67c.056 0 .112.005.165.016a1.258 1.258 0 0 1 1.044 1.807l-2.492 5.103a1.258 1.258 0 0 1-2.26-1.104L17.077 16h-1.957a5.714 5.714 0 1 1-5.017-5.387l1.818-2.798-1.642-1.067-1.173 1.463a.96.96 0 0 1-1.525-1.165L8.94 5.182a1.905 1.905 0 0 1 2.593-.465l.246.163-.002.002 2.125 1.38ZM9.414 20.095a3.81 3.81 0 1 0 0-7.619 3.81 3.81 0 0 0 0 7.62Z",clipRule:"evenodd"})}),s=n},69896:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=t(85893);const n=a=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M23.707.297A1 1 0 0 0 23 .004h-2a13.907 13.907 0 0 0-5.38 1.077 1 1 0 0 0-.615.923V4.92a.035.035 0 0 1-.022.038l-2-1.47a1 1 0 0 0-1.265.052A14 14 0 0 0 7 14.004v1.585l-2.707 2.707a1 1 0 1 0 1.415 1.415l2.707-2.708H10a14.014 14.014 0 0 0 14-14v-2a1 1 0 0 0-.293-.706ZM18 23.999H3a3 3 0 0 1-3-3V6A3 3 0 0 1 3 3h3a1 1 0 1 1 0 2H3a1 1 0 0 0-1 1v15a1 1 0 0 0 1 1h15a1 1 0 0 0 1-1v-3a1 1 0 1 1 2 0v3a3 3 0 0 1-3 3Z",clipRule:"evenodd"})}),s=n},89952:(Z,v,t)=>{"use strict";t.r(v),t.d(v,{Alien:()=>r.Z,Apps:()=>n.Z,Archive:()=>s.Z,ArrowDown:()=>a.Z,ArrowLeft:()=>c.Z,ArrowRight:()=>h.Z,ArrowUp:()=>p.Z,Attachment:()=>d.Z,Bell:()=>k.Z,Blocks:()=>M.Z,Bold:()=>C.Z,Book:()=>w.Z,Boolean:()=>I.Z,Briefcase:()=>F.Z,Brush:()=>U.Z,BulletList:()=>B.Z,Calendar:()=>N.Z,Car:()=>D.Z,CarretDown:()=>x.Z,CarretUp:()=>T.Z,Cast:()=>u.Z,ChartBubble:()=>b.Z,ChartCircle:()=>E.Z,ChartPie:()=>A.Z,Check:()=>R.Z,CheckCircle:()=>H.Z,ChevronDown:()=>z.Z,ChevronLeft:()=>V.Z,ChevronRight:()=>$.Z,ChevronUp:()=>ee.Z,Clock:()=>q.Z,Cloud:()=>oe.Z,CloudUpload:()=>Ie,Code:()=>se.Z,CodeSquare:()=>be.Z,Cog:()=>fe.Z,Collapse:()=>ue.Z,CollectionType:()=>we.Z,Command:()=>Me.Z,Component:()=>Ce.Z,Connector:()=>Ne.Z,Crop:()=>Ye.Z,Cross:()=>mt.Z,CrossCircle:()=>Ct.Z,Crown:()=>ln.Z,Cube:()=>$e.Z,Cup:()=>Qe.Z,Cursor:()=>bt.Z,Dashboard:()=>It.Z,Database:()=>mn.Z,Date:()=>un.Z,Discord:()=>Be.Z,Discourse:()=>je.Z,Discuss:()=>$t.Z,Doctor:()=>et.Z,Dot:()=>Kt.Z,Download:()=>kn.Z,Drag:()=>Tn.Z,Duplicate:()=>ht.Z,DynamicZone:()=>ot.Z,Earth:()=>Je.Z,EarthStriked:()=>wt.Z,Email:()=>ft.Z,EmotionHappy:()=>vn.Z,EmotionUnhappy:()=>ut.Z,EmptyDocuments:()=>Wt.Z,EmptyPermissions:()=>ae.Z,EmptyPictures:()=>ne.Z,Enumeration:()=>ge.Z,Envelop:()=>ye.Z,Equalizer:()=>Ze,ExclamationMarkCircle:()=>lt.Z,Exit:()=>_t.Z,Expand:()=>zt.Z,ExternalLink:()=>Vt.Z,Eye:()=>sn.Z,EyeStriked:()=>yn.Z,Facebook:()=>hr,Feather:()=>Mr.Z,FeatherSquare:()=>rr.Z,File:()=>Cr.Z,FileError:()=>Ur.Z,FilePdf:()=>$r.Z,Filter:()=>li.Z,Folder:()=>ri.Z,Gate:()=>Bt.Z,Gift:()=>Et.Z,Github:()=>bn.Z,GlassesSquare:()=>cn.Z,Globe:()=>Yn.Z,GraphQl:()=>ze,Grid:()=>Le.Z,HandHeart:()=>Ht.Z,Hashtag:()=>Mn.Z,HeadingFive:()=>tr.Z,HeadingFour:()=>Sr.Z,HeadingOne:()=>Xr.Z,HeadingSix:()=>gi.Z,HeadingThree:()=>Pi.Z,HeadingTwo:()=>ii.Z,Headphone:()=>vr.Z,Heart:()=>at.Z,House:()=>it.Z,IndentDecrease:()=>ke,IndentIncrease:()=>Te,Information:()=>Mt.Z,InformationSquare:()=>qt.Z,Italic:()=>Rn.Z,Json:()=>Qn.Z,Key:()=>ur.Z,Landscape:()=>On.Z,LandscapeSmall:()=>Zt,Layer:()=>Cn.Z,Layout:()=>Pn.Z,Lightbulb:()=>Kn.Z,Link:()=>Rt.Z,LinkSmall:()=>Oe,List:()=>Ge.Z,Loader:()=>Ft.Z,Lock:()=>Qt.Z,Magic:()=>wn.Z,Mail:()=>ir,ManyToMany:()=>br.Z,ManyToOne:()=>fr.Z,ManyWays:()=>Er.Z,Media:()=>Or.Z,Medium:()=>oi.Z,MenuBurger:()=>Fi,Message:()=>$i.Z,Microphone:()=>Vi.Z,Minus:()=>Bn.Z,MinusOutlined:()=>ve,Monitor:()=>he.Z,Moon:()=>Ae.Z,More:()=>tt.Z,Move:()=>kt,Music:()=>Jt.Z,Number:()=>gt.Z,NumberList:()=>dn.Z,OneToMany:()=>Xt.Z,OneToOne:()=>hn.Z,OneWay:()=>Sn.Z,OnholdCarretDown:()=>Vn,OnholdCarretUp:()=>Vr,Paint:()=>Jr.Z,PaintBrush:()=>yi.Z,PaperPlane:()=>Ii.Z,Paragraph:()=>ji.Z,Password:()=>_n.Z,Pencil:()=>_e.Z,Phone:()=>rt.Z,Picture:()=>vt.Z,PicturePlus:()=>Gt.Z,Pin:()=>We.Z,PinMap:()=>Ot.Z,Plane:()=>Dt.Z,Play:()=>gn.Z,PlaySquare:()=>Hn.Z,Plus:()=>nr.Z,PlusCircle:()=>_r.Z,PriceTag:()=>Nr.Z,Puzzle:()=>Qr.Z,Question:()=>ki.Z,Quote:()=>Si.Z,QuoteClosed:()=>oo,Reddit:()=>zi.Z,Refresh:()=>Xi.Z,Relation:()=>uo.Z,Repeat:()=>qi.Z,Restaurant:()=>Ui.Z,RichText:()=>Vo.Z,Rocket:()=>Cs.Z,Rotate:()=>ra.Z,Scissors:()=>Ts.Z,Search:()=>Io.Z,SearchIcon:()=>ia,Seed:()=>Is.Z,Server:()=>Gs.Z,Shield:()=>as.Z,Shirt:()=>Wo.Z,ShoppingCart:()=>Ma.Z,SingleType:()=>fa.Z,Slideshow:()=>dt.Z,Spinner:()=>an,Stack:()=>qn.Z,Star:()=>Fr.Z,Store:()=>ui.Z,Strapi:()=>Hi.Z,StrikeThrough:()=>lo.Z,Sun:()=>mo.Z,Television:()=>ts.Z,Text:()=>co.Z,ThumbDown:()=>Oo.Z,ThumbUp:()=>Po.Z,Train:()=>Yo.Z,Trash:()=>ns.Z,Twitter:()=>Os.Z,Typhoon:()=>Lo.Z,Uid:()=>da.Z,Underline:()=>Qs.Z,Upload:()=>ta.Z,User:()=>Oa.Z,VolumeMute:()=>_l.Z,VolumeUp:()=>gs.Z,Walk:()=>ds.Z,Wheelchair:()=>es.Z,Write:()=>Ga.Z});var r=t(78594),n=t(61654),s=t(80278),a=t(527),c=t(97695),h=t(98),p=t(49654),d=t(99159),k=t(91797),M=t(50223),C=t(13588),w=t(86229),I=t(60518),F=t(2196),U=t(42813),B=t(58929),N=t(54359),D=t(86437),x=t(58471),T=t(88392),u=t(8315),b=t(45077),E=t(87605),A=t(439),R=t(18226),H=t(54211),z=t(14981),V=t(23463),$=t(33255),ee=t(73924),q=t(59110),oe=t(47090),X=t(85893);const pe=So=>(0,X.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...So,children:(0,X.jsx)("path",{fill:"#212134",d:"M7 20.981a6.5 6.5 0 0 1-2.936-12 8.001 8.001 0 0 1 15.872 0 6.5 6.5 0 0 1-2.936 12V21H7v-.019ZM13 13h3l-4-5-4 5h3v4h2v-4Z"})}),Ie=pe;var se=t(95165),be=t(89776),fe=t(40989),ue=t(8158),we=t(45742),Me=t(88291),Ce=t(35814),Ne=t(46754),Ye=t(1578),mt=t(35771),Ct=t(9215),ln=t(15971),$e=t(64729),Qe=t(61511),bt=t(47648),It=t(19044),mn=t(89193),un=t(35498),Be=t(77190),je=t(13956),$t=t(14544),et=t(37373),Kt=t(59233),kn=t(95998),Tn=t(62873),ht=t(43838),ot=t(24306),Je=t(34675),wt=t(44850),ft=t(78215),vn=t(4865),ut=t(63350),Wt=t(94355),ae=t(59288),ne=t(18857),ge=t(33936),ye=t(24116);const Xe=So=>(0,X.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...So,children:(0,X.jsx)("path",{fill:"#212134",d:"M6.17 18a3 3 0 0 1 5.66 0H22v2H11.83a3 3 0 0 1-5.66 0H2v-2h4.17Zm6-7a3 3 0 0 1 5.66 0H22v2h-4.17a3 3 0 0 1-5.66 0H2v-2h10.17Zm-6-7a3.001 3.001 0 0 1 5.66 0H22v2H11.83a3 3 0 0 1-5.66 0H2V4h4.17Z"})}),Ze=Xe;var lt=t(94417),_t=t(23619),zt=t(26527),Vt=t(62577),sn=t(81851),yn=t(92795);const dr=So=>(0,X.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...So,children:(0,X.jsx)("path",{fill:"#1977F3",fillRule:"evenodd",d:"M12.143 24Zm1.732-.146V15.47h2.796l.532-3.47h-3.328V9.749c0-.949.464-1.875 1.956-1.875h1.514V4.921s-1.374-.235-2.687-.235c-2.74 0-4.533 1.66-4.533 4.67V12H7.078v3.47h3.047v8.384C4.388 22.954 0 17.99 0 12 0 5.373 5.373 0 12 0s12 5.373 12 12c0 5.99-4.388 10.954-10.125 11.854Z",clipRule:"evenodd"})}),hr=dr;var Mr=t(24381),rr=t(4900),Cr=t(6876),Ur=t(18675),$r=t(54607),li=t(52933),ri=t(18053),Bt=t(16660),Et=t(51524),bn=t(10778),cn=t(94573),Yn=t(43432);const on=So=>(0,X.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...So,children:(0,X.jsx)("path",{fill:"#8E8EA9",fillRule:"evenodd",d:"M11.76 6.801a1.435 1.435 0 0 0 .797 0l4.31 7.45a1.418 1.418 0 0 0-.401.696H7.85a1.427 1.427 0 0 0-.401-.693L11.76 6.8Zm-.63-.378.042.04-4.312 7.453a1.374 1.374 0 0 0-.056-.015v-3.802A1.42 1.42 0 0 0 7.83 8.324l3.3-1.901Zm2.396-.583a1.428 1.428 0 1 0-2.737-.002L7.494 7.736a1.431 1.431 0 0 0-2.273.268 1.425 1.425 0 0 0 .904 2.098V13.9a1.426 1.426 0 1 0 1.37 2.368l3.293 1.897a1.425 1.425 0 0 0 1.37 1.828 1.427 1.427 0 0 0 1.355-1.873l3.274-1.887a1.431 1.431 0 0 0 2.304-.236 1.419 1.419 0 0 0-.9-2.097v-3.797a1.426 1.426 0 1 0-1.371-2.365L13.526 5.84Zm-.381.622.038-.038 3.302 1.903a1.42 1.42 0 0 0 1.027 1.772V13.9l-.055.015-4.312-7.453Zm3.348 9.256-3.28 1.89a1.425 1.425 0 0 0-1.055-.465c-.404 0-.77.167-1.029.436l-3.296-1.9a1.41 1.41 0 0 0 .015-.055h8.619l.026.094Z",clipRule:"evenodd"})}),ze=on;var Le=t(25373),Ht=t(49504),Mn=t(96809),tr=t(25544),Sr=t(83658),Xr=t(96617),gi=t(41804),Pi=t(66760),ii=t(41442),vr=t(86569),at=t(83098),it=t(70348);const Re=So=>(0,X.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...So,children:[(0,X.jsx)("g",{clipPath:"url(#IndentDecrease_svg__a)",children:(0,X.jsx)("path",{fill:"#32324D",d:"M1 1.8h22v2.4H1V1.8Zm0 18h22v2.4H1v-2.4Zm9.8-6H23v2.4H10.8v-2.4Zm0-6H23v2.4H10.8V7.8ZM1 12l4.9-4.2v8.4L1 12Z"})}),(0,X.jsx)("defs",{children:(0,X.jsx)("clipPath",{id:"IndentDecrease_svg__a",children:(0,X.jsx)("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),ke=Re,Pe=So=>(0,X.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...So,children:[(0,X.jsx)("g",{clipPath:"url(#IndentIncrease_svg__a)",children:(0,X.jsx)("path",{fill:"#32324D",d:"M1 1.8h22v2.4H1V1.8Zm0 18h22v2.4H1v-2.4Zm9.8-6H23v2.4H10.8v-2.4Zm0-6H23v2.4H10.8V7.8Zm-5 4.2L1 16.2V7.8L5.9 12Z"})}),(0,X.jsx)("defs",{children:(0,X.jsx)("clipPath",{id:"IndentIncrease_svg__a",children:(0,X.jsx)("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),Te=Pe;var Mt=t(52423),qt=t(36311),Rn=t(97259),Qn=t(76133),ur=t(46374),On=t(45241);const ct=So=>(0,X.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...So,children:(0,X.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M7.1 5a.573.573 0 0 0 0 1.145h9.744a.573.573 0 0 0 0-1.145H7.1Zm10.3 2.354a1.6 1.6 0 0 1 1.6 1.6v8.7a1.6 1.6 0 0 1-1.6 1.6H6.6a1.6 1.6 0 0 1-1.6-1.6V8.963c0-.884.716-1.609 1.6-1.609h10.8Zm-9.834 9.47h9.123l-1.996-2.04-1.14 1.165-2.566-2.622-3.421 3.496Zm7.127-4.078c-.798 0-1.425-.641-1.425-1.457 0-.816.627-1.457 1.425-1.457.799 0 1.426.641 1.426 1.457 0 .816-.627 1.457-1.426 1.457Z",clipRule:"evenodd"})}),Zt=ct;var Cn=t(24784),Pn=t(5702),Kn=t(5889),Rt=t(36544);const Ke=So=>(0,X.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...So,children:[(0,X.jsx)("path",{fill:"#212134",d:"M17.756 5.748a3.416 3.416 0 0 0-4.747.467L12.01 7.41a.852.852 0 0 0 1.308 1.092l1-1.195a1.7 1.7 0 0 1 2.43-.18 1.735 1.735 0 0 1 .141 2.394l-2.077 2.486-.019.022a1.697 1.697 0 0 1-2.522.043.852.852 0 0 0-1.248 1.162 3.405 3.405 0 0 0 5.1-.137l2.071-2.48a3.502 3.502 0 0 0 .79-2.572 3.345 3.345 0 0 0-1.228-2.298Z"}),(0,X.jsx)("path",{fill:"#212134",d:"m11.622 14.956-.893 1.069a1.735 1.735 0 0 1-2.381.286 1.7 1.7 0 0 1-.255-2.423l2.113-2.529.016-.017a1.692 1.692 0 0 1 2.552-.012.852.852 0 0 0 .999.205.841.841 0 0 0 .284-.22l.01-.012a.84.84 0 0 0-.014-1.1 3.4 3.4 0 0 0-5.16.07l-2.108 2.522a3.417 3.417 0 0 0 .385 4.754 3.346 3.346 0 0 0 2.48.8 3.501 3.501 0 0 0 2.39-1.234l.89-1.066a.852.852 0 1 0-1.308-1.093Z"})]}),Oe=Ke;var Ge=t(96869),Ft=t(2),Qt=t(46759),wn=t(76391);const Gn=So=>(0,X.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 20",...So,children:[(0,X.jsx)("path",{fill:"#32324D",d:"M0 .8A.8.8 0 0 1 .8 0h22.4a.8.8 0 0 1 .8.8v2.71a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V.8Z"}),(0,X.jsx)("path",{fill:"#32324D",d:"M1.922 5.991C.197 4.675 0 4.252 0 3.289h23.953c.305 1.363-1.594 2.506-2.297 3.125-1.953 1.363-6.253 4.36-7.828 5.45-1.575 1.09-3.031.455-3.562 0-2.063-1.41-6.62-4.557-8.344-5.873ZM22.8 16H1.2c-.663 0-1.2.471-1.2 1.053v1.894C0 19.529.537 20 1.2 20h21.6c.663 0 1.2-.471 1.2-1.053v-1.894c0-.582-.537-1.053-1.2-1.053Z"}),(0,X.jsx)("path",{fill:"#32324D",d:"M0 7.555v10.972h24V7.554c-2.633 1.95-8.367 6.113-9.96 7.165-1.595 1.053-3.352.439-4.032 0L0 7.555Z"})]}),ir=Gn;var br=t(9556),fr=t(64072),Er=t(58516),Or=t(27395),oi=t(69222);const si=So=>(0,X.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...So,children:(0,X.jsx)("path",{fill:"#212134",d:"M8 8.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v.6a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-.6ZM8 11.7a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v.6a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-.6ZM8.5 14.401a.5.5 0 0 0-.5.5v.6a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-.6a.5.5 0 0 0-.5-.5h-7Z"})}),Fi=si;var $i=t(68733),Vi=t(75708),Bn=t(4499);const nt=So=>(0,X.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...So,children:[(0,X.jsx)("circle",{cx:12,cy:12,r:11.5,stroke:"#C0C0CF"}),(0,X.jsx)("rect",{width:10,height:2,x:7,y:11,fill:"#4945FF",rx:1})]}),ve=nt;var he=t(40519),Ae=t(70701),tt=t(79823);const St=So=>(0,X.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...So,children:(0,X.jsx)("path",{fill:"#212134",d:"M11 11V5.828L9.172 7.657 7.757 6.243 12 2l4.243 4.243-1.415 1.414L13 5.828V11h5.172l-1.829-1.828 1.414-1.415L22 12l-4.243 4.243-1.414-1.415L18.172 13H13v5.172l1.828-1.829 1.415 1.414L12 22l-4.243-4.243 1.415-1.414L11 18.172V13H5.828l1.829 1.828-1.414 1.415L2 12l4.243-4.243 1.414 1.415L5.828 11H11Z"})}),kt=St;var Jt=t(20155),gt=t(13828),dn=t(57342),Xt=t(15116),hn=t(72814),Sn=t(82029);const Jn=So=>(0,X.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...So,children:(0,X.jsx)("path",{fill:"#32324D",fillRule:"evenodd",d:"M19 8.889a.86.86 0 0 1-.26.625l-6.125 6.222A.834.834 0 0 1 12 16a.834.834 0 0 1-.615-.264L5.26 9.514A.861.861 0 0 1 5 8.889c0-.24.087-.45.26-.625A.834.834 0 0 1 5.875 8h12.25c.237 0 .442.088.615.264a.86.86 0 0 1 .26.625Z",clipRule:"evenodd"})}),Vn=Jn,ar=So=>(0,X.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...So,children:(0,X.jsx)("path",{fill:"#32324D",fillRule:"evenodd",d:"M5 15.111c0-.24.087-.449.26-.625l6.125-6.222A.834.834 0 0 1 12 8c.237 0 .442.088.615.264l6.125 6.222a.86.86 0 0 1 .26.625.86.86 0 0 1-.26.625.834.834 0 0 1-.615.264H5.875a.835.835 0 0 1-.615-.264.86.86 0 0 1-.26-.625Z",clipRule:"evenodd"})}),Vr=ar;var Jr=t(89082),yi=t(54192),Ii=t(21421),ji=t(17688),_n=t(86018),_e=t(2382),rt=t(9232),vt=t(74910),Gt=t(73734),We=t(43289),Ot=t(24661),Dt=t(21761),gn=t(28102),Hn=t(76730),nr=t(83598),_r=t(45196),Nr=t(56514),Qr=t(91948),ki=t(50841),Si=t(97653);const Ei=So=>(0,X.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...So,children:(0,X.jsx)("path",{fill:"#212134",d:"M19.417 6.679C20.447 7.773 21 9 21 10.989c0 3.5-2.457 6.637-6.03 8.188l-.893-1.378c3.335-1.804 3.987-4.145 4.247-5.621-.537.278-1.24.375-1.93.311-1.803-.167-3.225-1.648-3.225-3.489a3.5 3.5 0 0 1 3.5-3.5c1.073 0 2.099.49 2.748 1.179Zm-10 0C10.447 7.773 11 9 11 10.989c0 3.5-2.457 6.637-6.03 8.188l-.893-1.378c3.335-1.804 3.987-4.145 4.247-5.621-.537.278-1.24.375-1.93.311C4.592 12.322 3.17 10.841 3.17 9a3.5 3.5 0 0 1 3.5-3.5c1.073 0 2.099.49 2.748 1.179h-.001Z"})}),oo=Ei;var zi=t(67008),Xi=t(75975),uo=t(43054),qi=t(85678),Ui=t(79657),Vo=t(64816),Cs=t(81536),ra=t(65715),Ts=t(83695),Io=t(90272);const xr=So=>(0,X.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...So,children:(0,X.jsx)("path",{fill:"#32324D",fillRule:"evenodd",d:"m23.813 20.163-5.3-5.367a9.792 9.792 0 0 0 1.312-4.867C19.825 4.455 15.375 0 9.913 0 4.45 0 0 4.455 0 9.929c0 5.473 4.45 9.928 9.912 9.928a9.757 9.757 0 0 0 5.007-1.4l5.275 5.35a.634.634 0 0 0 .913 0l2.706-2.737a.641.641 0 0 0 0-.907ZM9.91 3.867c3.338 0 6.05 2.718 6.05 6.061s-2.712 6.061-6.05 6.061c-3.337 0-6.05-2.718-6.05-6.06 0-3.344 2.713-6.062 6.05-6.062Z",clipRule:"evenodd"})}),ia=xr;var Is=t(89816),Gs=t(57810),as=t(36277),Wo=t(8700),Ma=t(2428),fa=t(15301),dt=t(66776);const Fe=So=>(0,X.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 40 40",...So,children:(0,X.jsx)("path",{fill:"#4945FF",d:"M30.113 7.768a16.772 16.772 0 0 0-6.635-3.317c-2.505-.634-5.23-.598-7.854.096-.313.065-.6.166-.879.265l-.123.042c-.102.035-.203.07-.308.108a7.57 7.57 0 0 0-.655.247c-.164.078-.325.148-.488.221-.44.198-.893.403-1.29.657-1.314.71-2.42 1.674-3.247 2.448-1.922 1.931-3.355 4.359-4.035 6.832l-.093.37c-.131.516-.27 1.049-.322 1.572-.012.107-.033.214-.047.318-.032.218-.065.431-.078.664l-.051 1.097c-.005.11-.011.225-.006.358l.073 1.44.148.993c.041.283.085.581.164.85.553 2.391 1.627 4.609 3.103 6.41a15.664 15.664 0 0 0 4.951 3.997l.969.468c.092.04.168.07.242.096l.116.04c.152.053.295.106.444.16.276.106.546.206.843.295l1.26.32c.265.052.531.091.79.128.135.021.27.038.429.065 1.532.166 2.95.147 4.087-.058.092-.016.182-.026.272-.04.183-.025.368-.048.531-.092l1.284-.319 1.307-.456a.502.502 0 0 0-.318-.951l-1.277.396-1.246.257c-.135.026-.277.04-.422.056-.1.004-.196.02-.305.03-1.048.148-2.342.115-3.728-.089-.137-.024-.272-.05-.405-.074-.24-.046-.477-.09-.695-.142l-1.16-.338c-.248-.087-.497-.19-.75-.292a8.766 8.766 0 0 0-.433-.177l-.116-.05c-.055-.022-.117-.045-.145-.06l-.895-.474a14.106 14.106 0 0 1-4.296-3.739c-1.24-1.637-2.115-3.632-2.527-5.76-.42-2.045-.27-4.382.422-6.577.633-2.004 1.756-3.82 3.34-5.404.103-.104.207-.208.295-.29.778-.67 1.714-1.42 2.822-1.962.312-.184.66-.327 1.027-.475.175-.071.346-.142.488-.203.158-.058.327-.112.49-.162.107-.03.213-.065.306-.091l.123-.042c.227-.07.436-.137.668-.174l.836-.17c.163-.03.332-.046.498-.065.111-.011.215-.016.336-.032.384-.06.77-.062 1.185-.063.147 0 .3.001.465-.008.14-.006.292.013.455.03.11.01.216.022.297.027.109.01.21.022.322.03.166.01.318.025.458.051.187.041.377.075.57.106.346.063.673.126.989.238a13.246 13.246 0 0 1 5.263 2.872 12.87 12.87 0 0 1 3.122 4.294c.628 1.403 1.014 2.895 1.104 4.328.017.201.02.398.021.592-.002.126.003.25.006.356a1.64 1.64 0 0 0 .003.187c.005.086.005.171 0 .242l-.038.448c-.014.119-.02.23-.03.34a4.2 4.2 0 0 1-.043.466l-.145.787c-.042.298-.121.554-.194.793-.035.13-.078.254-.096.348-.026.074-.042.143-.061.209-.021.078-.037.151-.078.244l-.545 1.354a2.02 2.02 0 0 0 1.212 2.57 2.002 2.002 0 0 0 2.1-.459c.208-.208.366-.456.464-.735l.465-1.298c.045-.121.092-.287.134-.457l.059-.235c.028-.118.06-.242.096-.377.103-.388.22-.833.268-1.281l.132-.955c.028-.233.036-.47.045-.711.005-.114.009-.233.018-.36l.029-.567c0-.128-.01-.27-.018-.406l-.008-.21a18.315 18.315 0 0 1-.017-.387 7.82 7.82 0 0 0-.067-.832c-.194-1.838-.752-3.734-1.623-5.499a16.385 16.385 0 0 0-4.154-5.293Z"})}),an=Fe;var qn=t(52374),Fr=t(82500),ui=t(94469),Hi=t(61193),lo=t(1145),mo=t(88499),ts=t(12396),co=t(22355),Oo=t(93769),Po=t(55998),Yo=t(72402),ns=t(54425),Os=t(32765),Lo=t(20658),da=t(91430),Qs=t(7124),ta=t(59071),Oa=t(42615),_l=t(57131),gs=t(18104),ds=t(86026),es=t(98002),Ga=t(69896)},61299:(Z,v,t)=>{"use strict";t.r(v),t.d(v,{Combobox:()=>Mr,Select:()=>rt,composeEventHandlers:()=>h.M,createCollection:()=>V,useCallbackRef:()=>z.W});var r=t(85893),n=t(67294),s=t(28771),a=t(25360),c=t(88426),h=t(36206),p=t(64369),d=t(27552),k=t(95420),M=t(91276),C=t(82272),w=t(42651),I=t(75320),F=t(77342),U=t(9981),B=t(23541),N=t(73935),D=t(18204);function x(vt,[Gt,We]){return Math.min(We,Math.max(Gt,vt))}var T=t(65936),u=t(78990);function b(vt){const Gt=(0,n.useRef)({value:vt,previous:vt});return(0,n.useMemo)(()=>(Gt.current.value!==vt&&(Gt.current.previous=Gt.current.value,Gt.current.value=vt),Gt.current.previous),[vt])}var E=t(87462);const A="VisuallyHidden",R=(0,n.forwardRef)((vt,Gt)=>(0,n.createElement)(I.WV.span,(0,E.Z)({},vt,{ref:Gt,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...vt.style}}))),H=null;var z=t(79698);function V(vt){const Gt=`${vt}CollectionProvider`,[We,Ot]=(0,a.b)(Gt),[Dt,gn]=We(Gt,{collectionRef:{current:null},itemMap:new Map,listeners:new Set}),Hn=Ei=>{const{scope:oo,children:zi}=Ei,Xi=n.useRef(null),uo=n.useRef(new Map).current,qi=n.useRef(new Set).current;return(0,r.jsx)(Dt,{scope:oo,itemMap:uo,collectionRef:Xi,listeners:qi,children:zi})};Hn.displayName=Gt;const nr=`${vt}CollectionSlot`,_r=n.forwardRef((Ei,oo)=>{const{scope:zi,children:Xi}=Ei,uo=gn(nr,zi),qi=(0,s.e)(oo,uo.collectionRef);return(0,r.jsx)(c.g7,{ref:qi,children:Xi})});_r.displayName=nr;const Nr=`${vt}CollectionItemSlot`,Qr="data-radix-collection-item",ki=n.forwardRef((Ei,oo)=>{const{scope:zi,children:Xi,...uo}=Ei,qi=n.useRef(null),Ui=(0,s.e)(oo,qi),Vo=gn(Nr,zi);return n.useEffect(()=>{const Cs=Array.from(Vo.itemMap.values());return Vo.itemMap.set(qi,{ref:qi,...uo}),Vo.listeners.forEach(ra=>ra(Array.from(Vo.itemMap.values()),Cs)),()=>{const ra=Array.from(Vo.itemMap.values());Vo.itemMap.delete(qi),Vo.listeners.forEach(Ts=>Ts(Array.from(Vo.itemMap.values()),ra))}}),(0,r.jsx)(c.g7,{[Qr]:"",ref:Ui,children:Xi})});ki.displayName=Nr;function Si(Ei){const oo=gn(`${vt}CollectionConsumer`,Ei),zi=n.useCallback(()=>{const uo=oo.collectionRef.current;if(!uo)return[];const qi=Array.from(uo.querySelectorAll(`[${Qr}]`));return Array.from(oo.itemMap.values()).sort((Ui,Vo)=>qi.indexOf(Ui.ref.current)-qi.indexOf(Vo.ref.current))},[oo.collectionRef,oo.itemMap]),Xi=n.useCallback(uo=>(oo.listeners.add(uo),()=>oo.listeners.delete(uo)),[oo.listeners]);return{getItems:zi,subscribe:Xi}}return[{Provider:Hn,Slot:_r,ItemSlot:ki},Si,Ot]}const $=new Map;function ee(vt,Gt){const We=vt+(Gt?Object.entries(Gt).sort((Dt,gn)=>Dt[0]<gn[0]?-1:1).join():"");if($.has(We))return $.get(We);const Ot=new Intl.Collator(vt,Gt);return $.set(We,Ot),Ot}function q(vt,Gt){const We=ee(vt,{usage:"search",...Gt});return{startsWith(Ot,Dt){return Dt.length===0?!0:(Ot=Ot.normalize("NFC"),Dt=Dt.normalize("NFC"),We.compare(Ot.slice(0,Dt.length),Dt)===0)},endsWith(Ot,Dt){return Dt.length===0?!0:(Ot=Ot.normalize("NFC"),Dt=Dt.normalize("NFC"),We.compare(Ot.slice(-Dt.length),Dt)===0)},contains(Ot,Dt){if(Dt.length===0)return!0;Ot=Ot.normalize("NFC"),Dt=Dt.normalize("NFC");let gn=0;const Hn=Dt.length;for(;gn+Hn<=Ot.length;gn++){const nr=Ot.slice(gn,gn+Hn);if(We.compare(Dt,nr)===0)return!0}return!1}}}const oe=vt=>{const Gt=n.useRef();return n.useEffect(()=>{Gt.current=vt}),Gt.current},X=[" ","Enter","ArrowUp","ArrowDown"],pe=["Enter"],Ie=vt=>!!(vt.length===1&&vt.match(/\S| /)),se="Combobox",[be,fe]=V(se),[ue,we]=(0,a.k)(se),Me=({children:vt})=>(0,r.jsx)(C.fC,{children:(0,r.jsx)(be.Provider,{scope:void 0,children:vt})}),Ce=vt=>{const{allowCustomValue:Gt=!1,autocomplete:We="none",children:Ot,open:Dt,defaultOpen:gn,onOpenChange:Hn,value:nr,defaultValue:_r,onValueChange:Nr,disabled:Qr,required:ki=!1,locale:Si="en-EN",onTextValueChange:Ei,textValue:oo,defaultTextValue:zi,filterValue:Xi,defaultFilterValue:uo,onFilterValueChange:qi,isPrintableCharacter:Ui=Ie}=vt,[Vo,Cs]=n.useState(null),[ra,Ts]=n.useState(null),[Io,xr]=n.useState(null),[ia,Is]=n.useState(null),[Gs=!1,as]=(0,F.T)({prop:Dt,defaultProp:gn,onChange:Hn}),[Wo,Ma]=(0,F.T)({prop:nr,defaultProp:_r,onChange:Nr}),[fa,dt]=(0,F.T)({prop:oo,defaultProp:Gt&&!zi?nr:zi,onChange:Ei}),[Fe,an]=(0,F.T)({prop:Xi,defaultProp:uo,onChange:qi}),qn=(0,M.M)(),Fr=n.useCallback((ui,Hi)=>{const lo=Hi.map(Po=>Po.ref.current),[mo,...ts]=lo,[co]=ts.slice(-1),Oo=ia??Hi.find(Po=>Po.value===Wo)?.ref.current;for(const Po of ui){if(Po===Oo)return;if(Po?.scrollIntoView({block:"nearest"}),Po===mo&&ra&&(ra.scrollTop=0),Po===co&&ra&&(ra.scrollTop=ra.scrollHeight),Is(Po),We==="both"){const Yo=Hi.find(ns=>ns.ref.current===Po);Yo&&dt(Yo.textValue)}if(Po!==Oo)return}},[We,dt,ra,ia,Wo]);return n.useEffect(()=>{We!=="both"&&Is(null)},[fa,We]),n.useEffect(()=>{if(Io&&Vo)return(0,B.Ry)([Io,Vo])},[Io,Vo]),(0,r.jsx)(Me,{children:(0,r.jsx)(ue,{allowCustomValue:Gt,autocomplete:We,required:ki,trigger:Vo,onTriggerChange:Cs,contentId:qn,value:Wo,onValueChange:Ma,open:Gs,onOpenChange:as,disabled:Qr,locale:Si,focusFirst:Fr,textValue:fa,onTextValueChange:dt,onViewportChange:Ts,onContentChange:xr,visuallyFocussedItem:ia,filterValue:Fe,onFilterValueChange:an,onVisuallyFocussedItemChange:Is,isPrintableCharacter:Ui,children:Ot})})},Ne="ComboboxTrigger",Ye=n.forwardRef((vt,Gt)=>{const{...We}=vt,Ot=we(Ne),Dt=()=>{Ot.disabled||Ot.onOpenChange(!0)};return(0,r.jsx)(C.ee,{asChild:!0,children:(0,r.jsx)(k.M,{asChild:!0,trapped:Ot.open,onMountAutoFocus:gn=>{gn.preventDefault()},onUnmountAutoFocus:gn=>{Ot.trigger?.focus({preventScroll:!0}),document.getSelection()?.empty(),gn.preventDefault()},children:(0,r.jsx)("div",{ref:Gt,"data-disabled":Ot.disabled?"":void 0,...We,onClick:(0,h.M)(We.onClick,()=>{Ot.trigger?.focus()}),onPointerDown:(0,h.M)(We.onPointerDown,gn=>{const Hn=gn.target;Hn.hasPointerCapture(gn.pointerId)&&Hn.releasePointerCapture(gn.pointerId),(Hn.closest("button")??Hn.closest("div"))===gn.currentTarget&&gn.button===0&&gn.ctrlKey===!1&&(Dt(),Ot.trigger?.focus())})})})})});Ye.displayName=Ne;const mt="ComboboxInput",Ct=n.forwardRef((vt,Gt)=>{const We=we(mt),Ot=n.useRef(null),{getItems:Dt}=fe(void 0),{startsWith:gn}=q(We.locale,{sensitivity:"base"}),Hn=We.disabled,nr=(0,s.e)(Ot,Gt,We.onTriggerChange),_r=()=>{Hn||We.onOpenChange(!0)},Nr=oe(We.filterValue);return(0,U.b)(()=>{const Qr=setTimeout(()=>{if(We.textValue===""||We.textValue===void 0||We.filterValue===""||We.filterValue===void 0)return;const ki=Dt().find(Ei=>Ei.type==="option"&&gn(Ei.textValue,We.textValue)),Si=hr(Nr??"",We.filterValue);ki&&!We.visuallyFocussedItem&&Si===We.filterValue.length&&Ot.current?.setSelectionRange(We.filterValue.length,We.textValue.length)});return()=>clearTimeout(Qr)},[We.textValue,We.filterValue,gn,We.visuallyFocussedItem,Dt,Nr]),(0,r.jsx)("input",{type:"text",role:"combobox","aria-controls":We.contentId,"aria-expanded":We.open,"aria-required":We.required,"aria-autocomplete":We.autocomplete,"data-state":We.open?"open":"closed","aria-disabled":Hn,"aria-activedescendant":We.visuallyFocussedItem?.id,disabled:Hn,"data-disabled":Hn?"":void 0,"data-placeholder":We.textValue===void 0?"":void 0,value:We.textValue??"",...vt,ref:nr,onKeyDown:(0,h.M)(vt.onKeyDown,Qr=>{if(["ArrowUp","ArrowDown","Home","End"].includes(Qr.key))We.open||_r(),setTimeout(()=>{let ki=Dt().filter(Si=>!Si.disabled&&Si.isVisible).map(Si=>Si.ref.current);if(["ArrowUp","End"].includes(Qr.key)&&(ki=ki.slice().reverse()),["ArrowUp","ArrowDown"].includes(Qr.key)){const Si=We.visuallyFocussedItem??Dt().find(Ei=>Ei.value===We.value)?.ref.current;if(Si){let Ei=ki.indexOf(Si);Ei===ki.length-1&&(Ei=-1),ki=ki.slice(Ei+1)}}if(["ArrowDown"].includes(Qr.key)&&We.autocomplete==="both"&&ki.length>1){const[Si,...Ei]=ki,oo=Dt().find(zi=>zi.ref.current===Si).textValue;We.textValue===oo&&(ki=Ei)}We.focusFirst(ki,Dt())}),Qr.preventDefault();else if(["Tab"].includes(Qr.key)&&We.open)Qr.preventDefault();else if(["Escape"].includes(Qr.key))We.open?We.onOpenChange(!1):(We.onValueChange(void 0),We.onTextValueChange("")),Qr.preventDefault();else if(pe.includes(Qr.key)){if(We.visuallyFocussedItem){const ki=Dt().find(Si=>Si.ref.current===We.visuallyFocussedItem);ki&&(We.onValueChange(ki.value),We.onTextValueChange(ki.textValue),We.autocomplete==="both"&&We.onFilterValueChange(ki.textValue),ki.ref.current?.click())}else{const ki=Dt().find(Si=>Si.type==="option"&&!Si.disabled&&Si.textValue===We.textValue);ki&&(We.onValueChange(ki.value),We.onTextValueChange(ki.textValue),We.autocomplete==="both"&&We.onFilterValueChange(ki.textValue),ki.ref.current?.click())}We.onOpenChange(!1),Qr.preventDefault()}else We.onVisuallyFocussedItemChange(null)}),onChange:(0,h.M)(vt.onChange,Qr=>{We.onTextValueChange(Qr.currentTarget.value),We.autocomplete==="both"&&We.onFilterValueChange(Qr.currentTarget.value)}),onKeyUp:(0,h.M)(vt.onKeyUp,Qr=>{if(!We.open&&(We.isPrintableCharacter(Qr.key)||["Backspace"].includes(Qr.key))&&_r(),setTimeout(()=>{if(We.autocomplete==="both"&&We.isPrintableCharacter(Qr.key)&&We.filterValue!==void 0){const ki=We.filterValue,Si=Dt().find(Ei=>gn(Ei.textValue,ki));Si&&We.onTextValueChange(Si.textValue)}}),We.autocomplete==="none"&&We.isPrintableCharacter(Qr.key)){const ki=We.textValue??"",Si=Dt().find(Ei=>gn(Ei.textValue,ki));Si&&(We.onVisuallyFocussedItemChange(Si.ref.current),Si.ref.current?.scrollIntoView())}}),onBlur:(0,h.M)(vt.onBlur,()=>{if(We.open)return;We.onVisuallyFocussedItemChange(null);const[Qr]=Dt().filter(Si=>Si.textValue===We.textValue&&Si.type==="option");if(Qr){We.onValueChange(Qr.value),We.autocomplete==="both"&&We.onFilterValueChange(Qr.textValue);return}if(We.allowCustomValue){We.onValueChange(We.textValue),We.autocomplete==="both"&&We.onFilterValueChange(We.textValue);return}const[ki]=Dt().filter(Si=>Si.value===We.value&&Si.type==="option");ki&&We.textValue!==""?(We.onTextValueChange(ki.textValue),We.autocomplete==="both"&&We.onFilterValueChange(ki.textValue)):(We.onValueChange(void 0),We.onTextValueChange(""))})})});Ct.displayName="ComboboxTextInput";const ln=n.forwardRef((vt,Gt)=>{const{children:We,...Ot}=vt,Dt=we(mt),gn=Dt.disabled,Hn=()=>{gn||(Dt.onOpenChange(!0),Dt.trigger?.focus())};return(0,r.jsx)(I.WV.button,{"aria-hidden":!0,type:"button","aria-disabled":gn,"aria-controls":Dt.contentId,"aria-expanded":Dt.open,disabled:gn,"data-disabled":gn?"":void 0,...Ot,tabIndex:-1,ref:Gt,onClick:(0,h.M)(Ot.onClick,()=>{Dt.trigger?.focus()}),onPointerDown:(0,h.M)(Ot.onPointerDown,nr=>{nr.button===0&&nr.ctrlKey===!1&&(Hn(),nr.preventDefault())}),onKeyDown:(0,h.M)(Ot.onKeyDown,nr=>{X.includes(nr.key)&&(Hn(),nr.preventDefault())}),children:We||"\u25BC"})});ln.displayName="ComboboxIcon";const $e="ComboboxPortal",Qe=vt=>(0,r.jsx)(w.h,{asChild:!0,...vt});Qe.displayName=$e;const bt="ComboboxContent",It=n.forwardRef((vt,Gt)=>{const We=we(bt),{getItems:Ot}=fe(void 0),[Dt,gn]=n.useState();if((0,U.b)(()=>{gn(new DocumentFragment)},[]),(0,U.b)(()=>{We.open&&We.autocomplete==="none"&&setTimeout(()=>{Ot().find(Hn=>Hn.value===We.value)?.ref.current?.scrollIntoView({block:"nearest"})})},[Ot,We.autocomplete,We.value,We.open]),!We.open){const Hn=Dt;return Hn?N.createPortal((0,r.jsx)(be.Slot,{scope:void 0,children:(0,r.jsx)("div",{children:vt.children})}),Hn):null}return(0,r.jsx)(un,{...vt,ref:Gt})});It.displayName=bt;const mn=10,un=n.forwardRef((vt,Gt)=>{const{onEscapeKeyDown:We,onPointerDownOutside:Ot,...Dt}=vt,gn=we(bt),Hn=(0,s.e)(Gt,_r=>gn.onContentChange(_r)),{onOpenChange:nr}=gn;return(0,d.EW)(),n.useEffect(()=>{const _r=()=>{nr(!1)};return window.addEventListener("blur",_r),window.addEventListener("resize",_r),()=>{window.removeEventListener("blur",_r),window.removeEventListener("resize",_r)}},[nr]),(0,r.jsx)(D.Z,{allowPinchZoom:!0,children:(0,r.jsx)(p.XB,{asChild:!0,onEscapeKeyDown:We,onPointerDownOutside:Ot,onFocusOutside:_r=>{_r.preventDefault()},onDismiss:()=>{gn.onOpenChange(!1),gn.trigger?.focus({preventScroll:!0})},children:(0,r.jsx)(Be,{role:"listbox",id:gn.contentId,"data-state":gn.open?"open":"closed",onContextMenu:_r=>_r.preventDefault(),...Dt,ref:Hn,style:{display:"flex",flexDirection:"column",outline:"none",...Dt.style}})})})});un.displayName="ComboboxContentImpl";const Be=n.forwardRef((vt,Gt)=>{const{align:We="start",collisionPadding:Ot=mn,...Dt}=vt;return(0,r.jsx)(C.VY,{...Dt,ref:Gt,align:We,collisionPadding:Ot,style:{boxSizing:"border-box",...Dt.style,"--radix-combobox-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-combobox-content-available-width":"var(--radix-popper-available-width)","--radix-combobox-content-available-height":"var(--radix-popper-available-height)","--radix-combobox-trigger-width":"var(--radix-popper-anchor-width)","--radix-combobox-trigger-height":"var(--radix-popper-anchor-height)"}})});Be.displayName="ComboboxPopperPosition";const je="ComboboxViewport",$t=n.forwardRef((vt,Gt)=>{const We=we(je),Ot=(0,s.e)(Gt,We.onViewportChange);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-combobox-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-combobox-viewport]::-webkit-scrollbar{display:none}"}}),(0,r.jsx)(be.Slot,{scope:void 0,children:(0,r.jsx)(I.WV.div,{"data-radix-combobox-viewport":"",role:"presentation",...vt,ref:Ot,style:{position:"relative",flex:1,overflow:"auto",...vt.style}})})]})});$t.displayName=je;const et="ComboboxItem",[Kt,kn]=(0,a.k)(et),Tn=n.forwardRef((vt,Gt)=>{const{value:We,disabled:Ot=!1,textValue:Dt,...gn}=vt,[Hn,nr]=n.useState();(0,U.b)(()=>{nr(new DocumentFragment)},[]);const{onTextValueChange:_r,textValue:Nr,...Qr}=we(et),ki=(0,M.M)(),[Si,Ei]=n.useState(Dt??""),oo=Qr.value===We,{startsWith:zi}=q(Qr.locale,{sensitivity:"base"}),Xi=n.useCallback(uo=>{Ei(qi=>qi||(uo?.textContent??"").trim())},[]);return n.useEffect(()=>{oo&&Nr===void 0&&Si!==""&&_r(Si)},[Si,oo,Nr,_r]),Qr.autocomplete==="both"&&Si&&Qr.filterValue&&!zi(Si,Qr.filterValue)||Qr.autocomplete==="list"&&Si&&Nr&&!zi(Si,Nr)?Hn?N.createPortal((0,r.jsx)(Kt,{textId:ki,onTextValueChange:Xi,isSelected:oo,textValue:Si,children:(0,r.jsx)(be.ItemSlot,{scope:void 0,value:We,textValue:Si,disabled:Ot,type:"option",isVisible:!1,children:(0,r.jsx)(ot,{ref:Gt,value:We,disabled:Ot,...gn})})}),Hn):null:(0,r.jsx)(Kt,{textId:ki,onTextValueChange:Xi,isSelected:oo,textValue:Si,children:(0,r.jsx)(be.ItemSlot,{scope:void 0,value:We,textValue:Si,disabled:Ot,type:"option",isVisible:!0,children:(0,r.jsx)(ot,{ref:Gt,value:We,disabled:Ot,...gn})})})});Tn.displayName=et;const ht="ComboboxItemImpl",ot=n.forwardRef((vt,Gt)=>{const{value:We,disabled:Ot=!1,...Dt}=vt,gn=n.useRef(null),Hn=(0,s.e)(Gt,gn),{getItems:nr}=fe(void 0),{onTextValueChange:_r,visuallyFocussedItem:Nr,...Qr}=we(et),{isSelected:ki,textValue:Si,textId:Ei}=kn(ht),oo=()=>{Ot||(Qr.onValueChange(We),_r(Si),Qr.onOpenChange(!1),Qr.autocomplete==="both"&&Qr.onFilterValueChange(Si),Qr.trigger?.focus({preventScroll:!0}))},zi=n.useMemo(()=>Nr===nr().find(uo=>uo.ref.current===gn.current)?.ref.current,[nr,Nr]),Xi=(0,M.M)();return(0,r.jsx)(I.WV.div,{role:"option","aria-labelledby":Ei,"data-highlighted":zi?"":void 0,"aria-selected":ki&&zi,"data-state":ki?"checked":"unchecked","aria-disabled":Ot||void 0,"data-disabled":Ot?"":void 0,tabIndex:Ot?void 0:-1,...Dt,id:Xi,ref:Hn,onPointerUp:(0,h.M)(Dt.onPointerUp,oo)})});ot.displayName=ht;const Je="ComboboxItemText",wt=n.forwardRef((vt,Gt)=>{const{className:We,style:Ot,...Dt}=vt,gn=kn(Je),Hn=(0,s.e)(Gt,gn.onTextValueChange);return(0,r.jsx)(I.WV.span,{id:gn.textId,...Dt,ref:Hn})});wt.displayName=Je;const ft="ComboboxItemIndicator",vn=n.forwardRef((vt,Gt)=>{const{isSelected:We}=kn(ft);return We?(0,r.jsx)(I.WV.span,{"aria-hidden":!0,...vt,ref:Gt}):null});vn.displayName=ft;const ut="ComboboxNoValueFound",Wt=n.forwardRef((vt,Gt)=>{const{textValue:We="",filterValue:Ot="",locale:Dt,autocomplete:gn}=we(ut),[Hn,nr]=n.useState([]),{subscribe:_r}=fe(void 0),{startsWith:Nr}=q(Dt,{sensitivity:"base"});return n.useEffect(()=>{const Qr=_r(ki=>{nr(ki)});return()=>{Qr()}},[_r]),Hn.length===0||gn==="none"||gn==="list"&&Hn.some(Qr=>Nr(Qr.textValue,We))||gn==="both"&&Hn.some(Qr=>Nr(Qr.textValue,Ot))?null:(0,r.jsx)(I.WV.div,{...vt,ref:Gt})});Wt.displayName=ut;const ae=n.forwardRef((vt,Gt)=>{const{disabled:We=!1,...Ot}=vt,Dt=we(ut),{textValue:gn,visuallyFocussedItem:Hn}=Dt,{getItems:nr,subscribe:_r}=fe(void 0),Nr=n.useRef(null),[Qr,ki]=n.useState(!1),Si=(0,s.e)(Gt,Nr),Ei=n.useMemo(()=>Hn===nr().find(Xi=>Xi.ref.current===Nr.current)?.ref.current,[nr,Hn]),oo=(0,M.M)(),zi=()=>{!We&&gn&&(Dt.onValueChange(gn),Dt.onTextValueChange(gn),Dt.onOpenChange(!1),Dt.autocomplete==="both"&&Dt.onFilterValueChange(gn),Dt.trigger?.focus({preventScroll:!0}))};return(0,U.b)(()=>{const Xi=_r(uo=>{ki(!uo.some(qi=>qi.textValue===gn&&qi.type!=="create"))});return nr().length===0&&ki(!0),()=>{Xi()}},[gn,_r,nr]),!gn||!Qr?null:(0,r.jsx)(be.ItemSlot,{scope:void 0,value:gn??"",textValue:gn??"",disabled:We,isVisible:!0,type:"create",children:(0,r.jsx)(I.WV.div,{role:"option",tabIndex:We?void 0:-1,"aria-disabled":We||void 0,"data-disabled":We?"":void 0,"data-highlighted":Ei?"":void 0,...Ot,id:oo,ref:Si,onPointerUp:(0,h.M)(Ot.onPointerUp,zi)})})});ae.displayName="ComboboxCreateItem";const ne=Ce,ge=Ye,ye=Ct,Xe=ln,Ze=Qe,lt=It,_t=$t,zt=Tn,Vt=wt,sn=vn,yn=Wt,dr=ae;function hr(vt,Gt){const We=Math.min(vt.length,Gt.length);for(let Ot=0;Ot<We;Ot++)if(vt[Ot]!==Gt[Ot])return Ot;return We}const Mr=Object.freeze(Object.defineProperty({__proto__:null,ComboboxItem:Tn,Content:lt,CreateItem:dr,Icon:Xe,Item:zt,ItemIndicator:sn,ItemText:Vt,NoValueFound:yn,Portal:Ze,Root:ne,TextInput:ye,Trigger:ge,Viewport:_t},Symbol.toStringTag,{value:"Module"})),rr=[" ","Enter","ArrowUp","ArrowDown"],Cr=[" ","Enter"],Ur="Select",[$r,li,ri]=(0,T.B)(Ur),[Bt,Et]=(0,a.b)(Ur,[ri,C.D7]),bn=(0,C.D7)(),[cn,Yn]=Bt(Ur),[on,ze]=Bt(Ur),Le=vt=>{const{__scopeSelect:Gt,children:We,open:Ot,defaultOpen:Dt,onOpenChange:gn,value:Hn,defaultValue:nr,onValueChange:_r,dir:Nr,disabled:Qr,required:ki,multi:Si=!1}=vt,Ei=bn(Gt),[oo,zi]=n.useState(null),[Xi,uo]=n.useState(null),[qi,Ui]=n.useState(!1),Vo=(0,u.gm)(Nr),[Cs=!1,ra]=(0,F.T)({prop:Ot,defaultProp:Dt,onChange:gn}),[Ts,Io]=(0,F.T)({prop:Hn,defaultProp:nr,onChange(Gs){_r&&(Array.isArray(Gs),_r(Gs))}}),xr=n.useRef(null),[ia,Is]=n.useState(new Set);return(0,r.jsx)(C.fC,{...Ei,children:(0,r.jsx)(cn,{required:ki,scope:Gt,trigger:oo,onTriggerChange:zi,valueNode:Xi,onValueNodeChange:uo,valueNodeHasChildren:qi,onValueNodeHasChildrenChange:Ui,contentId:(0,M.M)(),value:Ts,onValueChange:Io,open:Cs,onOpenChange:ra,dir:Vo,triggerPointerDownPosRef:xr,disabled:Qr,multi:Si,children:(0,r.jsx)($r.Provider,{scope:Gt,children:(0,r.jsx)(on,{scope:vt.__scopeSelect,onNativeOptionAdd:n.useCallback(Gs=>{Is(as=>new Set(as).add(Gs))},[]),onNativeOptionRemove:n.useCallback(Gs=>{Is(as=>{const Wo=new Set(as);return Wo.delete(Gs),Wo})},[]),children:We})})})})};Le.displayName=Ur;const Ht="SelectTrigger",Mn=n.forwardRef((vt,Gt)=>{const{__scopeSelect:We,...Ot}=vt,Dt=bn(We),gn=Yn(Ht,We),Hn=gn.disabled,nr=(0,s.e)(Gt,gn.onTriggerChange),_r=li(We),[Nr,Qr,ki]=Ae(Ei=>{const oo=_r().filter(uo=>!uo.disabled),zi=oo.find(uo=>uo.value===gn.value),Xi=tt(oo,Ei,zi);if(Xi!==void 0&&!Array.isArray(Xi.value)){const uo=gn.multi?[Xi.value]:Xi.value;gn.onValueChange(uo)}}),Si=()=>{Hn||(gn.onOpenChange(!0),ki())};return(0,r.jsx)(C.ee,{asChild:!0,...Dt,children:(0,r.jsx)(I.WV.div,{role:"combobox","aria-controls":gn.contentId,"aria-expanded":gn.open,"aria-required":gn.required,"aria-autocomplete":"none",dir:gn.dir,"data-state":gn.open?"open":"closed","data-disabled":Hn?"":void 0,"data-placeholder":gn.value===void 0?"":void 0,tabIndex:Hn?void 0:0,...Ot,ref:nr,onClick:(0,h.M)(Ot.onClick,Ei=>{Ei.currentTarget.focus()}),onPointerDown:(0,h.M)(Ot.onPointerDown,Ei=>{const oo=Ei.target;oo.hasPointerCapture(Ei.pointerId)&&oo.releasePointerCapture(Ei.pointerId),(oo.closest("button")??oo.closest("div"))===Ei.currentTarget&&Ei.button===0&&Ei.ctrlKey===!1&&(Si(),gn.triggerPointerDownPosRef.current={x:Math.round(Ei.pageX),y:Math.round(Ei.pageY)},Ei.preventDefault())}),onKeyDown:(0,h.M)(Ot.onKeyDown,Ei=>{const oo=Nr.current!=="",zi=Ei.ctrlKey||Ei.altKey||Ei.metaKey,Xi=Ei.target;(Xi.closest("button")??Xi.closest("div"))===Ei.currentTarget&&(!zi&&Ei.key.length===1&&Qr(Ei.key),!(oo&&Ei.key===" ")&&rr.includes(Ei.key)&&(Si(),Ei.preventDefault()))})})})});Mn.displayName=Ht;const tr="SelectValue",Sr=n.forwardRef((vt,Gt)=>{const{__scopeSelect:We,children:Ot,placeholder:Dt,...gn}=vt,Hn=Yn(tr,We),{onValueNodeHasChildrenChange:nr}=Hn,_r=Ot!==void 0,Nr=(0,s.e)(Gt,Hn.onValueNodeChange),[Qr,ki]=n.useState([]),Si=li(We);(0,U.b)(()=>{nr(_r)},[nr,_r]),n.useLayoutEffect(()=>{if(Array.isArray(Hn.value)&&Qr.length!==Hn.value.length){const oo=setTimeout(()=>{const zi=Si().filter(Xi=>Array.isArray(Xi.value)?!1:Hn.value?.includes(Xi.value));ki(zi)});return()=>{clearTimeout(oo)}}},[Hn.value,Si,Qr]);let Ei;if((Hn.value===void 0||Hn.value.length===0)&&Dt!==void 0)Ei=(0,r.jsx)("span",{children:Dt});else if(typeof Ot=="function")if(Array.isArray(Hn.value)){const oo=Hn.value.map(zi=>{const Xi=Qr.find(uo=>uo.value===zi);return Xi?Ot({value:zi,textValue:Xi?.textValue}):null});Ei=oo.every(zi=>zi===null)?Dt:oo}else Ei=Ot(Hn.value);else Ei=Ot;return(0,r.jsx)(I.WV.span,{...gn,ref:Nr,children:Ei||null})});Sr.displayName=tr;const Xr="SelectIcon",gi=n.forwardRef((vt,Gt)=>{const{__scopeSelect:We,children:Ot,...Dt}=vt;return(0,r.jsx)(I.WV.span,{"aria-hidden":!0,...Dt,ref:Gt,children:Ot||"\u25BC"})});gi.displayName=Xr;const Pi="SelectPortal",ii=vt=>(0,r.jsx)(w.h,{asChild:!0,...vt});ii.displayName=Pi;const vr="SelectContent",at=n.forwardRef((vt,Gt)=>{const We=Yn(vr,vt.__scopeSelect),[Ot,Dt]=n.useState();if((0,U.b)(()=>{Dt(new DocumentFragment)},[]),!We.open){const gn=Ot;return gn?N.createPortal((0,r.jsx)(Re,{scope:vt.__scopeSelect,children:(0,r.jsx)($r.Slot,{scope:vt.__scopeSelect,children:(0,r.jsx)("div",{children:vt.children})})}),gn):null}return(0,r.jsx)(Te,{...vt,ref:Gt})});at.displayName=vr;const it=10,[Re,ke]=Bt(vr),Pe="SelectContentImpl",Te=n.forwardRef((vt,Gt)=>{const{__scopeSelect:We,position:Ot="item-aligned",onCloseAutoFocus:Dt,onEscapeKeyDown:gn,onPointerDownOutside:Hn,side:nr,sideOffset:_r,align:Nr,alignOffset:Qr,arrowPadding:ki,collisionBoundary:Si,collisionPadding:Ei,sticky:oo,hideWhenDetached:zi,avoidCollisions:Xi,...uo}=vt,qi=Yn(vr,We),[Ui,Vo]=n.useState(null),[Cs,ra]=n.useState(null),Ts=(0,s.e)(Gt,co=>Vo(co)),[Io,xr]=n.useState(null),[ia,Is]=n.useState(null),Gs=li(We),[as,Wo]=n.useState(!1),Ma=n.useRef(!1);n.useEffect(()=>{if(Ui)return(0,B.Ry)(Ui)},[Ui]),(0,d.EW)();const fa=n.useCallback(co=>{const[Oo,...Po]=Gs().map(Os=>Os.ref.current),[Yo]=Po.slice(-1),ns=document.activeElement;for(const Os of co)if(Os===ns||(Os?.scrollIntoView({block:"nearest"}),Os===Oo&&Cs&&(Cs.scrollTop=0),Os===Yo&&Cs&&(Cs.scrollTop=Cs.scrollHeight),Os?.focus(),document.activeElement!==ns))return},[Gs,Cs]),dt=n.useCallback(()=>fa([Io,Ui]),[fa,Io,Ui]);n.useEffect(()=>{as&&dt()},[as,dt]);const{onOpenChange:Fe,triggerPointerDownPosRef:an}=qi;n.useEffect(()=>{if(Ui){let co={x:0,y:0};const Oo=Yo=>{co={x:Math.abs(Math.round(Yo.pageX)-(an.current?.x??0)),y:Math.abs(Math.round(Yo.pageY)-(an.current?.y??0))}},Po=Yo=>{co.x<=10&&co.y<=10?Yo.preventDefault():Ui.contains(Yo.target)||Fe(!1),document.removeEventListener("pointermove",Oo),an.current=null};return an.current!==null&&(document.addEventListener("pointermove",Oo),document.addEventListener("pointerup",Po,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Oo),document.removeEventListener("pointerup",Po,{capture:!0})}}},[Ui,Fe,an]),n.useEffect(()=>{const co=()=>Fe(!1);return window.addEventListener("blur",co),window.addEventListener("resize",co),()=>{window.removeEventListener("blur",co),window.removeEventListener("resize",co)}},[Fe]);const[qn,Fr]=Ae(co=>{const Oo=Gs().filter(ns=>!ns.disabled),Po=Oo.find(ns=>ns.ref.current===document.activeElement),Yo=tt(Oo,co,Po);Yo&&setTimeout(()=>Yo.ref.current.focus())}),ui=n.useCallback((co,Oo,Po)=>{const Yo=!Ma.current&&!Po;(qi.value!==void 0&&qi.value===Oo||Yo)&&(xr(co),Yo&&(Ma.current=!0))},[qi.value]),Hi=n.useCallback(()=>Ui?.focus(),[Ui]),lo=n.useCallback((co,Oo,Po)=>{const Yo=!Ma.current&&!Po;(qi.value!==void 0&&(Array.isArray(Oo)?Oo.every(ns=>qi.value?.includes(ns)):qi.value===Oo)||Yo)&&Is(co)},[qi.value]),mo=Ot==="popper"?Qn:qt,ts=mo===Qn?{side:nr,sideOffset:_r,align:Nr,alignOffset:Qr,arrowPadding:ki,collisionBoundary:Si,collisionPadding:Ei,sticky:oo,hideWhenDetached:zi,avoidCollisions:Xi}:{};return(0,r.jsx)(Re,{scope:We,content:Ui,viewport:Cs,onViewportChange:ra,itemRefCallback:ui,selectedItem:Io,onItemLeave:Hi,itemTextRefCallback:lo,focusSelectedItem:dt,selectedItemText:ia,position:Ot,isPositioned:as,searchRef:qn,children:(0,r.jsx)(D.Z,{as:c.g7,allowPinchZoom:!0,children:(0,r.jsx)(k.M,{asChild:!0,trapped:qi.open,onMountAutoFocus:co=>{co.preventDefault()},onUnmountAutoFocus:(0,h.M)(Dt,co=>{qi.trigger?.focus({preventScroll:!0}),document.getSelection()?.empty(),co.preventDefault()}),children:(0,r.jsx)(p.XB,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:gn,onPointerDownOutside:Hn,onFocusOutside:co=>co.preventDefault(),onDismiss:()=>qi.onOpenChange(!1),children:(0,r.jsx)(mo,{role:"listbox",id:qi.contentId,"data-state":qi.open?"open":"closed","aria-multiselectable":qi.multi?"true":void 0,dir:qi.dir,onContextMenu:co=>co.preventDefault(),...uo,...ts,onPlaced:()=>Wo(!0),ref:Ts,style:{display:"flex",flexDirection:"column",outline:"none",...uo.style},onKeyDown:(0,h.M)(uo.onKeyDown,co=>{const Oo=co.ctrlKey||co.altKey||co.metaKey;if(co.key==="Tab"&&co.preventDefault(),!Oo&&co.key.length===1&&Fr(co.key),["ArrowUp","ArrowDown","Home","End"].includes(co.key)){let Po=Gs().filter(Yo=>!Yo.disabled).map(Yo=>Yo.ref.current);if(["ArrowUp","End"].includes(co.key)&&(Po=Po.slice().reverse()),["ArrowUp","ArrowDown"].includes(co.key)){const Yo=co.target,ns=Po.indexOf(Yo);Po=Po.slice(ns+1)}setTimeout(()=>fa(Po)),co.preventDefault()}})})})})})})});Te.displayName=Pe;const Mt="SelectItemAlignedPosition",qt=n.forwardRef((vt,Gt)=>{const{__scopeSelect:We,onPlaced:Ot,...Dt}=vt,gn=Yn(vr,We),Hn=ke(vr,We),[nr,_r]=n.useState(null),[Nr,Qr]=n.useState(null),ki=(0,s.e)(Gt,Ts=>Qr(Ts)),Si=li(We),Ei=n.useRef(!1),oo=n.useRef(!0),{viewport:zi,selectedItem:Xi,selectedItemText:uo,focusSelectedItem:qi}=Hn,Ui=n.useCallback(()=>{if(gn.trigger&&gn.valueNode&&nr&&Nr&&zi&&Xi&&uo){const Ts=gn.trigger.getBoundingClientRect(),Io=Nr.getBoundingClientRect(),xr=gn.valueNode.getBoundingClientRect(),ia=uo.getBoundingClientRect();if(gn.dir!=="rtl"){const Yo=ia.left-Io.left,ns=xr.left-Yo,Os=Ts.left-ns,Lo=Ts.width+Os,da=Math.max(Lo,Io.width),Qs=window.innerWidth-it,ta=x(ns,[it,Qs-da]);nr.style.minWidth=`${Lo}px`,nr.style.left=`${ta}px`}else{const Yo=Io.right-ia.right,ns=window.innerWidth-xr.right-Yo,Os=window.innerWidth-Ts.right-ns,Lo=Ts.width+Os,da=Math.max(Lo,Io.width),Qs=window.innerWidth-it,ta=x(ns,[it,Qs-da]);nr.style.minWidth=`${Lo}px`,nr.style.right=`${ta}px`}const Is=Si(),Gs=window.innerHeight-it*2,as=zi.scrollHeight,Wo=window.getComputedStyle(Nr),Ma=parseInt(Wo.borderTopWidth,10),fa=parseInt(Wo.paddingTop,10),dt=parseInt(Wo.borderBottomWidth,10),Fe=parseInt(Wo.paddingBottom,10),an=Ma+fa+as+Fe+dt,qn=Math.min(Xi.offsetHeight*5,an),Fr=window.getComputedStyle(zi),ui=parseInt(Fr.paddingTop,10),Hi=parseInt(Fr.paddingBottom,10),lo=Ts.top+Ts.height/2-it,mo=Gs-lo,ts=Xi.offsetHeight/2,co=Xi.offsetTop+ts,Oo=Ma+fa+co,Po=an-Oo;if(Oo<=lo){const Yo=Xi===Is[Is.length-1].ref.current;nr.style.bottom="0px";const ns=Nr.clientHeight-zi.offsetTop-zi.offsetHeight,Os=Math.max(mo,ts+(Yo?Hi:0)+ns+dt),Lo=Oo+Os;nr.style.height=`${Lo}px`}else{const Yo=Xi===Is[0].ref.current;nr.style.top="0px";const ns=Math.max(lo,Ma+zi.offsetTop+(Yo?ui:0)+ts)+Po;nr.style.height=`${ns}px`,zi.scrollTop=Oo-lo+zi.offsetTop}nr.style.margin=`${it}px 0`,nr.style.minHeight=`${qn}px`,nr.style.maxHeight=`${Gs}px`,Ot?.(),requestAnimationFrame(()=>Ei.current=!0)}},[Si,gn.trigger,gn.valueNode,nr,Nr,zi,Xi,uo,gn.dir,Ot]);(0,U.b)(()=>Ui(),[Ui]);const[Vo,Cs]=n.useState();(0,U.b)(()=>{Nr&&Cs(window.getComputedStyle(Nr).zIndex)},[Nr]);const ra=n.useCallback(Ts=>{Ts&&oo.current===!0&&(Ui(),qi?.(),oo.current=!1)},[Ui,qi]);return(0,r.jsx)(ur,{scope:We,contentWrapper:nr,shouldExpandOnScrollRef:Ei,onScrollButtonChange:ra,children:(0,r.jsx)("div",{ref:_r,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:Vo},children:(0,r.jsx)(I.WV.div,{...Dt,ref:ki,style:{boxSizing:"border-box",maxHeight:"100%",...Dt.style}})})})});qt.displayName=Mt;const Rn="SelectPopperPosition",Qn=n.forwardRef((vt,Gt)=>{const{__scopeSelect:We,align:Ot="start",collisionPadding:Dt=it,...gn}=vt,Hn=bn(We);return(0,r.jsx)(C.VY,{...Hn,...gn,ref:Gt,align:Ot,collisionPadding:Dt,style:{boxSizing:"border-box",...gn.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Qn.displayName=Rn;const[ur,On]=Bt(vr,{}),ct="SelectViewport",Zt=n.forwardRef((vt,Gt)=>{const{__scopeSelect:We,...Ot}=vt,Dt=ke(ct,We),gn=On(ct,We),Hn=(0,s.e)(Gt,Dt.onViewportChange),nr=n.useRef(0);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),(0,r.jsx)($r.Slot,{scope:We,children:(0,r.jsx)(I.WV.div,{"data-radix-select-viewport":"",role:"presentation",...Ot,ref:Hn,style:{position:"relative",flex:1,overflow:"auto",...Ot.style},onScroll:(0,h.M)(Ot.onScroll,_r=>{const Nr=_r.currentTarget,{contentWrapper:Qr,shouldExpandOnScrollRef:ki}=gn;if(ki?.current&&Qr){const Si=Math.abs(nr.current-Nr.scrollTop);if(Si>0){const Ei=window.innerHeight-it*2,oo=parseFloat(Qr.style.minHeight),zi=parseFloat(Qr.style.height),Xi=Math.max(oo,zi);if(Xi<Ei){const uo=Xi+Si,qi=Math.min(Ei,uo),Ui=uo-qi;Qr.style.height=`${qi}px`,Qr.style.bottom==="0px"&&(Nr.scrollTop=Ui>0?Ui:0,Qr.style.justifyContent="flex-end")}}}nr.current=Nr.scrollTop})})})]})});Zt.displayName=ct;const Cn="SelectGroup",[Pn,Kn]=Bt(Cn),Rt=n.forwardRef((vt,Gt)=>{const{__scopeSelect:We,...Ot}=vt,Dt=(0,M.M)();return(0,r.jsx)(Pn,{scope:We,id:Dt,children:(0,r.jsx)(I.WV.div,{role:"group","aria-labelledby":Dt,...Ot,ref:Gt})})});Rt.displayName=Cn;const Ke="SelectLabel",Oe=n.forwardRef((vt,Gt)=>{const{__scopeSelect:We,...Ot}=vt,Dt=Kn(Ke,We);return(0,r.jsx)(I.WV.div,{id:Dt.id,...Ot,ref:Gt})});Oe.displayName=Ke;const Ge="SelectItem",[Ft,Qt]=Bt(Ge),wn=n.forwardRef((vt,Gt)=>{const{__scopeSelect:We,value:Ot,disabled:Dt=!1,textValue:gn,...Hn}=vt,nr=Yn(Ge,We),_r=ke(Ge,We),Nr=typeof Ot=="string"?Array.isArray(nr.value)?nr.value.includes(Ot):nr.value===Ot:Ot.every(qi=>nr.value?.includes(qi)),Qr=Array.isArray(nr.value)&&Array.isArray(Ot)&&Ot.some(qi=>nr.value?.includes(qi)),[ki,Si]=n.useState(gn??""),[Ei,oo]=n.useState(!1),zi=(0,s.e)(Gt,qi=>_r.itemRefCallback?.(qi,Ot,Dt)),Xi=(0,M.M)(),uo=()=>{if(!Dt){let qi=nr.multi&&typeof Ot=="string"?[Ot]:Ot;Qr&&!Nr?nr.onValueChange(qi):Array.isArray(nr.value)&&(qi=kt(Ot,nr.value)),nr.onValueChange(qi),nr.multi||nr.onOpenChange(!1)}};if(!nr.multi&&Array.isArray(Ot))throw new Error("You can only pass an array of values in multi selects");return(0,r.jsx)(Ft,{scope:We,value:Ot,disabled:Dt,textId:Xi,isSelected:Nr,isIntermediate:Qr,onItemTextChange:n.useCallback(qi=>{Si(Ui=>Ui||(qi?.textContent??"").trim())},[]),children:(0,r.jsx)($r.ItemSlot,{scope:We,value:Ot,disabled:Dt,textValue:ki,children:(0,r.jsx)(I.WV.div,{role:"option","aria-labelledby":Xi,"data-highlighted":Ei?"":void 0,"aria-selected":nr.multi?void 0:Nr&&Ei,"aria-checked":nr.multi?Nr:void 0,"data-state":Nr?"checked":"unchecked","aria-disabled":Dt||void 0,"data-disabled":Dt?"":void 0,tabIndex:Dt?void 0:-1,...Hn,ref:zi,onFocus:(0,h.M)(Hn.onFocus,()=>oo(!0)),onBlur:(0,h.M)(Hn.onBlur,()=>oo(!1)),onPointerUp:(0,h.M)(Hn.onPointerUp,uo),onPointerMove:(0,h.M)(Hn.onPointerMove,qi=>{Dt?_r.onItemLeave?.():qi.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,h.M)(Hn.onPointerLeave,qi=>{qi.currentTarget===document.activeElement&&_r.onItemLeave?.()}),onKeyDown:(0,h.M)(Hn.onKeyDown,qi=>{_r.searchRef?.current!==""&&qi.key===" "||(Cr.includes(qi.key)&&uo(),qi.key===" "&&qi.preventDefault())})})})})});wn.displayName=Ge;const Gn="SelectItemText",ir=n.forwardRef((vt,Gt)=>{const{__scopeSelect:We,className:Ot,style:Dt,...gn}=vt,Hn=Yn(Gn,We),nr=ke(Gn,We),_r=Qt(Gn,We),Nr=ze(Gn,We),[Qr,ki]=n.useState(null),Si=(0,s.e)(Gt,uo=>ki(uo),_r.onItemTextChange,uo=>nr.itemTextRefCallback?.(uo,_r.value,_r.disabled)),Ei=Qr?.textContent,oo=n.useMemo(()=>(0,r.jsx)("option",{value:_r.value,disabled:_r.disabled,children:Ei},Array.isArray(_r.value)?_r.value.join(";"):_r.value),[_r.disabled,_r.value,Ei]),{onNativeOptionAdd:zi,onNativeOptionRemove:Xi}=Nr;return(0,U.b)(()=>(zi(oo),()=>Xi(oo)),[zi,Xi,oo]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(I.WV.span,{id:_r.textId,...gn,ref:Si}),_r.isSelected&&Hn.valueNode&&!Hn.valueNodeHasChildren?N.createPortal(gn.children,Hn.valueNode):null]})});ir.displayName=Gn;const br="SelectItemIndicator",fr=n.forwardRef((vt,Gt)=>{const{__scopeSelect:We,children:Ot,...Dt}=vt,gn=Qt(br,We);return typeof Ot=="function"?(0,r.jsx)(I.WV.span,{"aria-hidden":!0,...Dt,ref:Gt,children:Ot({isSelected:gn.isSelected,isIntermediate:gn.isIntermediate})}):gn.isSelected?(0,r.jsx)(I.WV.span,{"aria-hidden":!0,...Dt,ref:Gt,children:Ot}):null});fr.displayName=br;const Er="SelectScrollUpButton",Or=n.forwardRef((vt,Gt)=>{const We=ke(Er,vt.__scopeSelect),Ot=On(Er,vt.__scopeSelect),[Dt,gn]=n.useState(!1),Hn=(0,s.e)(Gt,Ot.onScrollButtonChange);return(0,U.b)(()=>{if(We.viewport&&We.isPositioned){const nr=We.viewport,_r=()=>{const Nr=nr.scrollTop>0;gn(Nr)};return _r(),nr.addEventListener("scroll",_r),()=>nr.removeEventListener("scroll",_r)}},[We.viewport,We.isPositioned]),Dt?(0,r.jsx)(Fi,{...vt,ref:Hn,onAutoScroll:()=>{const{viewport:nr,selectedItem:_r}=We;nr&&_r&&(nr.scrollTop-=_r.offsetHeight)}}):null});Or.displayName=Er;const oi="SelectScrollDownButton",si=n.forwardRef((vt,Gt)=>{const We=ke(oi,vt.__scopeSelect),Ot=On(oi,vt.__scopeSelect),[Dt,gn]=n.useState(!1),Hn=(0,s.e)(Gt,Ot.onScrollButtonChange);return(0,U.b)(()=>{if(We.viewport&&We.isPositioned){const nr=We.viewport,_r=()=>{const Nr=nr.scrollHeight-nr.clientHeight,Qr=Math.ceil(nr.scrollTop)<Nr;gn(Qr)};return _r(),nr.addEventListener("scroll",_r),()=>nr.removeEventListener("scroll",_r)}},[We.viewport,We.isPositioned]),Dt?(0,r.jsx)(Fi,{...vt,ref:Hn,onAutoScroll:()=>{const{viewport:nr,selectedItem:_r}=We;nr&&_r&&(nr.scrollTop+=_r.offsetHeight)}}):null});si.displayName=oi;const Fi=n.forwardRef((vt,Gt)=>{const{__scopeSelect:We,onAutoScroll:Ot,...Dt}=vt,gn=ke("SelectScrollButton",We),Hn=n.useRef(null),nr=li(We),_r=n.useCallback(()=>{Hn.current!==null&&(window.clearInterval(Hn.current),Hn.current=null)},[]);return n.useEffect(()=>()=>_r(),[_r]),(0,U.b)(()=>{nr().find(Nr=>Nr.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[nr]),(0,r.jsx)(I.WV.div,{"aria-hidden":!0,...Dt,ref:Gt,style:{flexShrink:0,...Dt.style},onPointerMove:(0,h.M)(Dt.onPointerMove,()=>{gn.onItemLeave?.(),Hn.current===null&&(Hn.current=window.setInterval(Ot,50))}),onPointerLeave:(0,h.M)(Dt.onPointerLeave,()=>{_r()})})});Fi.displayName="SelectScrollButtonImpl";const $i="SelectSeparator",Vi=n.forwardRef((vt,Gt)=>{const{__scopeSelect:We,...Ot}=vt;return(0,r.jsx)(I.WV.div,{"aria-hidden":!0,...Ot,ref:Gt})});Vi.displayName=$i;const Bn="SelectArrow",nt=n.forwardRef((vt,Gt)=>{const{__scopeSelect:We,...Ot}=vt,Dt=bn(We),gn=Yn(Bn,We),Hn=ke(Bn,We);return gn.open&&Hn.position==="popper"?(0,r.jsx)(C.Eh,{...Dt,...Ot,ref:Gt}):null});nt.displayName=Bn;const ve="BubbleSelect",he=n.forwardRef((vt,Gt)=>{const{value:We,...Ot}=vt,Dt=n.useRef(null),gn=(0,s.e)(Gt,Dt),Hn=b(We),nr=Yn(ve,void 0);n.useEffect(()=>{const Nr=Dt.current,Qr=window.HTMLSelectElement.prototype,ki=Object.getOwnPropertyDescriptor(Qr,"value").set;if(Hn!==We&&ki){const Si=new Event("change",{bubbles:!0});ki.call(Nr,We),Nr.dispatchEvent(Si)}},[Hn,We]);let _r=We;return nr.multi&&!Array.isArray(We)&&(_r=[]),(0,r.jsx)(R,{asChild:!0,children:(0,r.jsx)("select",{...Ot,multiple:nr.multi?!0:void 0,ref:gn,defaultValue:_r})})});he.displayName="BubbleSelect";function Ae(vt){const Gt=(0,z.W)(vt),We=n.useRef(""),Ot=n.useRef(0),Dt=n.useCallback(Hn=>{const nr=We.current+Hn;Gt(nr),function _r(Nr){We.current=Nr,window.clearTimeout(Ot.current),Nr!==""&&(Ot.current=window.setTimeout(()=>_r(""),1e3))}(nr)},[Gt]),gn=n.useCallback(()=>{We.current="",window.clearTimeout(Ot.current)},[]);return n.useEffect(()=>()=>window.clearTimeout(Ot.current),[]),[We,Dt,gn]}function tt(vt,Gt,We){const Ot=Gt.length>1&&Array.from(Gt).every(nr=>nr===Gt[0])?Gt[0]:Gt,Dt=We?vt.indexOf(We):-1;let gn=St(vt,Math.max(Dt,0));Ot.length===1&&(gn=gn.filter(nr=>nr!==We));const Hn=gn.find(nr=>nr.textValue.toLowerCase().startsWith(Ot.toLowerCase()));return Hn!==We?Hn:void 0}function St(vt,Gt){return vt.map((We,Ot)=>vt[(Gt+Ot)%vt.length])}const kt=(vt,Gt=[])=>{if(Array.isArray(vt))return vt.reduce((Ot,Dt)=>kt(Dt,Ot),Gt);const We=Gt.indexOf(vt);return We===-1?[...Gt,vt]:[...Gt.slice(0,We),...Gt.slice(We+1)]},Jt=Le,gt=Mn,dn=Sr,Xt=gi,hn=ii,Sn=at,Jn=Zt,Vn=Rt,ar=Oe,Vr=wn,Jr=ir,yi=fr,Ii=Or,ji=si,_n=Vi,_e=nt,rt=Object.freeze(Object.defineProperty({__proto__:null,Arrow:_e,Content:Sn,Group:Vn,Icon:Xt,Item:Vr,ItemIndicator:yi,ItemText:Jr,Label:ar,Portal:hn,Root:Jt,ScrollDownButton:ji,ScrollUpButton:Ii,Select:Le,SelectArrow:nt,SelectContent:at,SelectGroup:Rt,SelectIcon:gi,SelectItem:wn,SelectItemIndicator:fr,SelectItemText:ir,SelectLabel:Oe,SelectPortal:ii,SelectScrollDownButton:si,SelectScrollUpButton:Or,SelectSeparator:Vi,SelectTrigger:Mn,SelectValue:Sr,SelectViewport:Zt,Separator:_n,Trigger:gt,Value:dn,Viewport:Jn,createSelectScope:Et},Symbol.toStringTag,{value:"Module"}))},52861:(Z,v,t)=>{"use strict";t.d(v,{default:()=>nt});function r(ve,he){return function(){return ve.apply(he,arguments)}}const{toString:n}=Object.prototype,{getPrototypeOf:s}=Object,a=(ve=>he=>{const Ae=n.call(he);return ve[Ae]||(ve[Ae]=Ae.slice(8,-1).toLowerCase())})(Object.create(null)),c=ve=>(ve=ve.toLowerCase(),he=>a(he)===ve),h=ve=>he=>typeof he===ve,{isArray:p}=Array,d=h("undefined");function k(ve){return ve!==null&&!d(ve)&&ve.constructor!==null&&!d(ve.constructor)&&I(ve.constructor.isBuffer)&&ve.constructor.isBuffer(ve)}const M=c("ArrayBuffer");function C(ve){let he;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?he=ArrayBuffer.isView(ve):he=ve&&ve.buffer&&M(ve.buffer),he}const w=h("string"),I=h("function"),F=h("number"),U=ve=>ve!==null&&typeof ve=="object",B=ve=>ve===!0||ve===!1,N=ve=>{if(a(ve)!=="object")return!1;const he=s(ve);return(he===null||he===Object.prototype||Object.getPrototypeOf(he)===null)&&!(Symbol.toStringTag in ve)&&!(Symbol.iterator in ve)},D=c("Date"),x=c("File"),T=c("Blob"),u=c("FileList"),b=ve=>U(ve)&&I(ve.pipe),E=ve=>{let he;return ve&&(typeof FormData=="function"&&ve instanceof FormData||I(ve.append)&&((he=a(ve))==="formdata"||he==="object"&&I(ve.toString)&&ve.toString()==="[object FormData]"))},A=c("URLSearchParams"),R=ve=>ve.trim?ve.trim():ve.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function H(ve,he,{allOwnKeys:Ae=!1}={}){if(ve===null||typeof ve>"u")return;let tt,St;if(typeof ve!="object"&&(ve=[ve]),p(ve))for(tt=0,St=ve.length;tt<St;tt++)he.call(null,ve[tt],tt,ve);else{const kt=Ae?Object.getOwnPropertyNames(ve):Object.keys(ve),Jt=kt.length;let gt;for(tt=0;tt<Jt;tt++)gt=kt[tt],he.call(null,ve[gt],gt,ve)}}function z(ve,he){he=he.toLowerCase();const Ae=Object.keys(ve);let tt=Ae.length,St;for(;tt-- >0;)if(St=Ae[tt],he===St.toLowerCase())return St;return null}const V=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),$=ve=>!d(ve)&&ve!==V;function ee(){const{caseless:ve}=$(this)&&this||{},he={},Ae=(tt,St)=>{const kt=ve&&z(he,St)||St;N(he[kt])&&N(tt)?he[kt]=ee(he[kt],tt):N(tt)?he[kt]=ee({},tt):p(tt)?he[kt]=tt.slice():he[kt]=tt};for(let tt=0,St=arguments.length;tt<St;tt++)arguments[tt]&&H(arguments[tt],Ae);return he}const q=(ve,he,Ae,{allOwnKeys:tt}={})=>(H(he,(St,kt)=>{Ae&&I(St)?ve[kt]=r(St,Ae):ve[kt]=St},{allOwnKeys:tt}),ve),oe=ve=>(ve.charCodeAt(0)===65279&&(ve=ve.slice(1)),ve),X=(ve,he,Ae,tt)=>{ve.prototype=Object.create(he.prototype,tt),ve.prototype.constructor=ve,Object.defineProperty(ve,"super",{value:he.prototype}),Ae&&Object.assign(ve.prototype,Ae)},pe=(ve,he,Ae,tt)=>{let St,kt,Jt;const gt={};if(he=he||{},ve==null)return he;do{for(St=Object.getOwnPropertyNames(ve),kt=St.length;kt-- >0;)Jt=St[kt],(!tt||tt(Jt,ve,he))&&!gt[Jt]&&(he[Jt]=ve[Jt],gt[Jt]=!0);ve=Ae!==!1&&s(ve)}while(ve&&(!Ae||Ae(ve,he))&&ve!==Object.prototype);return he},Ie=(ve,he,Ae)=>{ve=String(ve),(Ae===void 0||Ae>ve.length)&&(Ae=ve.length),Ae-=he.length;const tt=ve.indexOf(he,Ae);return tt!==-1&&tt===Ae},se=ve=>{if(!ve)return null;if(p(ve))return ve;let he=ve.length;if(!F(he))return null;const Ae=new Array(he);for(;he-- >0;)Ae[he]=ve[he];return Ae},be=(ve=>he=>ve&&he instanceof ve)(typeof Uint8Array<"u"&&s(Uint8Array)),fe=(ve,he)=>{const tt=(ve&&ve[Symbol.iterator]).call(ve);let St;for(;(St=tt.next())&&!St.done;){const kt=St.value;he.call(ve,kt[0],kt[1])}},ue=(ve,he)=>{let Ae;const tt=[];for(;(Ae=ve.exec(he))!==null;)tt.push(Ae);return tt},we=c("HTMLFormElement"),Me=ve=>ve.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(Ae,tt,St){return tt.toUpperCase()+St}),Ce=(({hasOwnProperty:ve})=>(he,Ae)=>ve.call(he,Ae))(Object.prototype),Ne=c("RegExp"),Ye=(ve,he)=>{const Ae=Object.getOwnPropertyDescriptors(ve),tt={};H(Ae,(St,kt)=>{let Jt;(Jt=he(St,kt,ve))!==!1&&(tt[kt]=Jt||St)}),Object.defineProperties(ve,tt)},mt=ve=>{Ye(ve,(he,Ae)=>{if(I(ve)&&["arguments","caller","callee"].indexOf(Ae)!==-1)return!1;const tt=ve[Ae];if(I(tt)){if(he.enumerable=!1,"writable"in he){he.writable=!1;return}he.set||(he.set=()=>{throw Error("Can not rewrite read-only method '"+Ae+"'")})}})},Ct=(ve,he)=>{const Ae={},tt=St=>{St.forEach(kt=>{Ae[kt]=!0})};return p(ve)?tt(ve):tt(String(ve).split(he)),Ae},ln=()=>{},$e=(ve,he)=>(ve=+ve,Number.isFinite(ve)?ve:he),Qe="abcdefghijklmnopqrstuvwxyz",bt="0123456789",It={DIGIT:bt,ALPHA:Qe,ALPHA_DIGIT:Qe+Qe.toUpperCase()+bt},mn=(ve=16,he=It.ALPHA_DIGIT)=>{let Ae="";const{length:tt}=he;for(;ve--;)Ae+=he[Math.random()*tt|0];return Ae};function un(ve){return!!(ve&&I(ve.append)&&ve[Symbol.toStringTag]==="FormData"&&ve[Symbol.iterator])}const Be=ve=>{const he=new Array(10),Ae=(tt,St)=>{if(U(tt)){if(he.indexOf(tt)>=0)return;if(!("toJSON"in tt)){he[St]=tt;const kt=p(tt)?[]:{};return H(tt,(Jt,gt)=>{const dn=Ae(Jt,St+1);!d(dn)&&(kt[gt]=dn)}),he[St]=void 0,kt}}return tt};return Ae(ve,0)},je=c("AsyncFunction"),et={isArray:p,isArrayBuffer:M,isBuffer:k,isFormData:E,isArrayBufferView:C,isString:w,isNumber:F,isBoolean:B,isObject:U,isPlainObject:N,isUndefined:d,isDate:D,isFile:x,isBlob:T,isRegExp:Ne,isFunction:I,isStream:b,isURLSearchParams:A,isTypedArray:be,isFileList:u,forEach:H,merge:ee,extend:q,trim:R,stripBOM:oe,inherits:X,toFlatObject:pe,kindOf:a,kindOfTest:c,endsWith:Ie,toArray:se,forEachEntry:fe,matchAll:ue,isHTMLForm:we,hasOwnProperty:Ce,hasOwnProp:Ce,reduceDescriptors:Ye,freezeMethods:mt,toObjectSet:Ct,toCamelCase:Me,noop:ln,toFiniteNumber:$e,findKey:z,global:V,isContextDefined:$,ALPHABET:It,generateString:mn,isSpecCompliantForm:un,toJSONObject:Be,isAsyncFn:je,isThenable:ve=>ve&&(U(ve)||I(ve))&&I(ve.then)&&I(ve.catch)};function Kt(ve,he,Ae,tt,St){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=ve,this.name="AxiosError",he&&(this.code=he),Ae&&(this.config=Ae),tt&&(this.request=tt),St&&(this.response=St)}et.inherits(Kt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:et.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const kn=Kt.prototype,Tn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(ve=>{Tn[ve]={value:ve}}),Object.defineProperties(Kt,Tn),Object.defineProperty(kn,"isAxiosError",{value:!0}),Kt.from=(ve,he,Ae,tt,St,kt)=>{const Jt=Object.create(kn);return et.toFlatObject(ve,Jt,function(dn){return dn!==Error.prototype},gt=>gt!=="isAxiosError"),Kt.call(Jt,ve.message,he,Ae,tt,St),Jt.cause=ve,Jt.name=ve.name,kt&&Object.assign(Jt,kt),Jt};const ht=Kt,ot=null;function Je(ve){return et.isPlainObject(ve)||et.isArray(ve)}function wt(ve){return et.endsWith(ve,"[]")?ve.slice(0,-2):ve}function ft(ve,he,Ae){return ve?ve.concat(he).map(function(St,kt){return St=wt(St),!Ae&&kt?"["+St+"]":St}).join(Ae?".":""):he}function vn(ve){return et.isArray(ve)&&!ve.some(Je)}const ut=et.toFlatObject(et,{},null,function(he){return/^is[A-Z]/.test(he)});function Wt(ve,he,Ae){if(!et.isObject(ve))throw new TypeError("target must be an object");he=he||new(ot||FormData),Ae=et.toFlatObject(Ae,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Vr,Jr){return!et.isUndefined(Jr[Vr])});const tt=Ae.metaTokens,St=Ae.visitor||hn,kt=Ae.dots,Jt=Ae.indexes,dn=(Ae.Blob||typeof Blob<"u"&&Blob)&&et.isSpecCompliantForm(he);if(!et.isFunction(St))throw new TypeError("visitor must be a function");function Xt(ar){if(ar===null)return"";if(et.isDate(ar))return ar.toISOString();if(!dn&&et.isBlob(ar))throw new ht("Blob is not supported. Use a Buffer instead.");return et.isArrayBuffer(ar)||et.isTypedArray(ar)?dn&&typeof Blob=="function"?new Blob([ar]):Buffer.from(ar):ar}function hn(ar,Vr,Jr){let yi=ar;if(ar&&!Jr&&typeof ar=="object"){if(et.endsWith(Vr,"{}"))Vr=tt?Vr:Vr.slice(0,-2),ar=JSON.stringify(ar);else if(et.isArray(ar)&&vn(ar)||(et.isFileList(ar)||et.endsWith(Vr,"[]"))&&(yi=et.toArray(ar)))return Vr=wt(Vr),yi.forEach(function(ji,_n){!(et.isUndefined(ji)||ji===null)&&he.append(Jt===!0?ft([Vr],_n,kt):Jt===null?Vr:Vr+"[]",Xt(ji))}),!1}return Je(ar)?!0:(he.append(ft(Jr,Vr,kt),Xt(ar)),!1)}const Sn=[],Jn=Object.assign(ut,{defaultVisitor:hn,convertValue:Xt,isVisitable:Je});function Vn(ar,Vr){if(!et.isUndefined(ar)){if(Sn.indexOf(ar)!==-1)throw Error("Circular reference detected in "+Vr.join("."));Sn.push(ar),et.forEach(ar,function(yi,Ii){(!(et.isUndefined(yi)||yi===null)&&St.call(he,yi,et.isString(Ii)?Ii.trim():Ii,Vr,Jn))===!0&&Vn(yi,Vr?Vr.concat(Ii):[Ii])}),Sn.pop()}}if(!et.isObject(ve))throw new TypeError("data must be an object");return Vn(ve),he}const ae=Wt;function ne(ve){const he={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(ve).replace(/[!'()~]|%20|%00/g,function(tt){return he[tt]})}function ge(ve,he){this._pairs=[],ve&&ae(ve,this,he)}const ye=ge.prototype;ye.append=function(he,Ae){this._pairs.push([he,Ae])},ye.toString=function(he){const Ae=he?function(tt){return he.call(this,tt,ne)}:ne;return this._pairs.map(function(St){return Ae(St[0])+"="+Ae(St[1])},"").join("&")};const Xe=ge;function Ze(ve){return encodeURIComponent(ve).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function lt(ve,he,Ae){if(!he)return ve;const tt=Ae&&Ae.encode||Ze,St=Ae&&Ae.serialize;let kt;if(St?kt=St(he,Ae):kt=et.isURLSearchParams(he)?he.toString():new Xe(he,Ae).toString(tt),kt){const Jt=ve.indexOf("#");Jt!==-1&&(ve=ve.slice(0,Jt)),ve+=(ve.indexOf("?")===-1?"?":"&")+kt}return ve}class _t{constructor(){this.handlers=[]}use(he,Ae,tt){return this.handlers.push({fulfilled:he,rejected:Ae,synchronous:tt?tt.synchronous:!1,runWhen:tt?tt.runWhen:null}),this.handlers.length-1}eject(he){this.handlers[he]&&(this.handlers[he]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(he){et.forEach(this.handlers,function(tt){tt!==null&&he(tt)})}}const zt=_t,Vt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sn=typeof URLSearchParams<"u"?URLSearchParams:Xe,yn=typeof FormData<"u"?FormData:null,dr=typeof Blob<"u"?Blob:null,hr=(()=>{let ve;return typeof navigator<"u"&&((ve=navigator.product)==="ReactNative"||ve==="NativeScript"||ve==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Mr=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),rr={isBrowser:!0,classes:{URLSearchParams:sn,FormData:yn,Blob:dr},isStandardBrowserEnv:hr,isStandardBrowserWebWorkerEnv:Mr,protocols:["http","https","file","blob","url","data"]};function Cr(ve,he){return ae(ve,new rr.classes.URLSearchParams,Object.assign({visitor:function(Ae,tt,St,kt){return rr.isNode&&et.isBuffer(Ae)?(this.append(tt,Ae.toString("base64")),!1):kt.defaultVisitor.apply(this,arguments)}},he))}function Ur(ve){return et.matchAll(/\w+|\[(\w*)]/g,ve).map(he=>he[0]==="[]"?"":he[1]||he[0])}function $r(ve){const he={},Ae=Object.keys(ve);let tt;const St=Ae.length;let kt;for(tt=0;tt<St;tt++)kt=Ae[tt],he[kt]=ve[kt];return he}function li(ve){function he(Ae,tt,St,kt){let Jt=Ae[kt++];const gt=Number.isFinite(+Jt),dn=kt>=Ae.length;return Jt=!Jt&&et.isArray(St)?St.length:Jt,dn?(et.hasOwnProp(St,Jt)?St[Jt]=[St[Jt],tt]:St[Jt]=tt,!gt):((!St[Jt]||!et.isObject(St[Jt]))&&(St[Jt]=[]),he(Ae,tt,St[Jt],kt)&&et.isArray(St[Jt])&&(St[Jt]=$r(St[Jt])),!gt)}if(et.isFormData(ve)&&et.isFunction(ve.entries)){const Ae={};return et.forEachEntry(ve,(tt,St)=>{he(Ur(tt),St,Ae,0)}),Ae}return null}const ri=li;function Bt(ve,he,Ae){if(et.isString(ve))try{return(he||JSON.parse)(ve),et.trim(ve)}catch(tt){if(tt.name!=="SyntaxError")throw tt}return(Ae||JSON.stringify)(ve)}const Et={transitional:Vt,adapter:rr.isNode?"http":"xhr",transformRequest:[function(he,Ae){const tt=Ae.getContentType()||"",St=tt.indexOf("application/json")>-1,kt=et.isObject(he);if(kt&&et.isHTMLForm(he)&&(he=new FormData(he)),et.isFormData(he))return St&&St?JSON.stringify(ri(he)):he;if(et.isArrayBuffer(he)||et.isBuffer(he)||et.isStream(he)||et.isFile(he)||et.isBlob(he))return he;if(et.isArrayBufferView(he))return he.buffer;if(et.isURLSearchParams(he))return Ae.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),he.toString();let gt;if(kt){if(tt.indexOf("application/x-www-form-urlencoded")>-1)return Cr(he,this.formSerializer).toString();if((gt=et.isFileList(he))||tt.indexOf("multipart/form-data")>-1){const dn=this.env&&this.env.FormData;return ae(gt?{"files[]":he}:he,dn&&new dn,this.formSerializer)}}return kt||St?(Ae.setContentType("application/json",!1),Bt(he)):he}],transformResponse:[function(he){const Ae=this.transitional||Et.transitional,tt=Ae&&Ae.forcedJSONParsing,St=this.responseType==="json";if(he&&et.isString(he)&&(tt&&!this.responseType||St)){const Jt=!(Ae&&Ae.silentJSONParsing)&&St;try{return JSON.parse(he)}catch(gt){if(Jt)throw gt.name==="SyntaxError"?ht.from(gt,ht.ERR_BAD_RESPONSE,this,null,this.response):gt}}return he}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rr.classes.FormData,Blob:rr.classes.Blob},validateStatus:function(he){return he>=200&&he<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};et.forEach(["delete","get","head","post","put","patch"],ve=>{Et.headers[ve]={}});const bn=Et,cn=et.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Yn=ve=>{const he={};let Ae,tt,St;return ve&&ve.split(`
`).forEach(function(Jt){St=Jt.indexOf(":"),Ae=Jt.substring(0,St).trim().toLowerCase(),tt=Jt.substring(St+1).trim(),!(!Ae||he[Ae]&&cn[Ae])&&(Ae==="set-cookie"?he[Ae]?he[Ae].push(tt):he[Ae]=[tt]:he[Ae]=he[Ae]?he[Ae]+", "+tt:tt)}),he},on=Symbol("internals");function ze(ve){return ve&&String(ve).trim().toLowerCase()}function Le(ve){return ve===!1||ve==null?ve:et.isArray(ve)?ve.map(Le):String(ve)}function Ht(ve){const he=Object.create(null),Ae=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let tt;for(;tt=Ae.exec(ve);)he[tt[1]]=tt[2];return he}const Mn=ve=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(ve.trim());function tr(ve,he,Ae,tt,St){if(et.isFunction(tt))return tt.call(this,he,Ae);if(St&&(he=Ae),!!et.isString(he)){if(et.isString(tt))return he.indexOf(tt)!==-1;if(et.isRegExp(tt))return tt.test(he)}}function Sr(ve){return ve.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(he,Ae,tt)=>Ae.toUpperCase()+tt)}function Xr(ve,he){const Ae=et.toCamelCase(" "+he);["get","set","has"].forEach(tt=>{Object.defineProperty(ve,tt+Ae,{value:function(St,kt,Jt){return this[tt].call(this,he,St,kt,Jt)},configurable:!0})})}class gi{constructor(he){he&&this.set(he)}set(he,Ae,tt){const St=this;function kt(gt,dn,Xt){const hn=ze(dn);if(!hn)throw new Error("header name must be a non-empty string");const Sn=et.findKey(St,hn);(!Sn||St[Sn]===void 0||Xt===!0||Xt===void 0&&St[Sn]!==!1)&&(St[Sn||dn]=Le(gt))}const Jt=(gt,dn)=>et.forEach(gt,(Xt,hn)=>kt(Xt,hn,dn));return et.isPlainObject(he)||he instanceof this.constructor?Jt(he,Ae):et.isString(he)&&(he=he.trim())&&!Mn(he)?Jt(Yn(he),Ae):he!=null&&kt(Ae,he,tt),this}get(he,Ae){if(he=ze(he),he){const tt=et.findKey(this,he);if(tt){const St=this[tt];if(!Ae)return St;if(Ae===!0)return Ht(St);if(et.isFunction(Ae))return Ae.call(this,St,tt);if(et.isRegExp(Ae))return Ae.exec(St);throw new TypeError("parser must be boolean|regexp|function")}}}has(he,Ae){if(he=ze(he),he){const tt=et.findKey(this,he);return!!(tt&&this[tt]!==void 0&&(!Ae||tr(this,this[tt],tt,Ae)))}return!1}delete(he,Ae){const tt=this;let St=!1;function kt(Jt){if(Jt=ze(Jt),Jt){const gt=et.findKey(tt,Jt);gt&&(!Ae||tr(tt,tt[gt],gt,Ae))&&(delete tt[gt],St=!0)}}return et.isArray(he)?he.forEach(kt):kt(he),St}clear(he){const Ae=Object.keys(this);let tt=Ae.length,St=!1;for(;tt--;){const kt=Ae[tt];(!he||tr(this,this[kt],kt,he,!0))&&(delete this[kt],St=!0)}return St}normalize(he){const Ae=this,tt={};return et.forEach(this,(St,kt)=>{const Jt=et.findKey(tt,kt);if(Jt){Ae[Jt]=Le(St),delete Ae[kt];return}const gt=he?Sr(kt):String(kt).trim();gt!==kt&&delete Ae[kt],Ae[gt]=Le(St),tt[gt]=!0}),this}concat(...he){return this.constructor.concat(this,...he)}toJSON(he){const Ae=Object.create(null);return et.forEach(this,(tt,St)=>{tt!=null&&tt!==!1&&(Ae[St]=he&&et.isArray(tt)?tt.join(", "):tt)}),Ae}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([he,Ae])=>he+": "+Ae).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(he){return he instanceof this?he:new this(he)}static concat(he,...Ae){const tt=new this(he);return Ae.forEach(St=>tt.set(St)),tt}static accessor(he){const tt=(this[on]=this[on]={accessors:{}}).accessors,St=this.prototype;function kt(Jt){const gt=ze(Jt);tt[gt]||(Xr(St,Jt),tt[gt]=!0)}return et.isArray(he)?he.forEach(kt):kt(he),this}}gi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),et.reduceDescriptors(gi.prototype,({value:ve},he)=>{let Ae=he[0].toUpperCase()+he.slice(1);return{get:()=>ve,set(tt){this[Ae]=tt}}}),et.freezeMethods(gi);const Pi=gi;function ii(ve,he){const Ae=this||bn,tt=he||Ae,St=Pi.from(tt.headers);let kt=tt.data;return et.forEach(ve,function(gt){kt=gt.call(Ae,kt,St.normalize(),he?he.status:void 0)}),St.normalize(),kt}function vr(ve){return!!(ve&&ve.__CANCEL__)}function at(ve,he,Ae){ht.call(this,ve??"canceled",ht.ERR_CANCELED,he,Ae),this.name="CanceledError"}et.inherits(at,ht,{__CANCEL__:!0});const it=at;function Re(ve,he,Ae){const tt=Ae.config.validateStatus;!Ae.status||!tt||tt(Ae.status)?ve(Ae):he(new ht("Request failed with status code "+Ae.status,[ht.ERR_BAD_REQUEST,ht.ERR_BAD_RESPONSE][Math.floor(Ae.status/100)-4],Ae.config,Ae.request,Ae))}const ke=rr.isStandardBrowserEnv?function(){return{write:function(Ae,tt,St,kt,Jt,gt){const dn=[];dn.push(Ae+"="+encodeURIComponent(tt)),et.isNumber(St)&&dn.push("expires="+new Date(St).toGMTString()),et.isString(kt)&&dn.push("path="+kt),et.isString(Jt)&&dn.push("domain="+Jt),gt===!0&&dn.push("secure"),document.cookie=dn.join("; ")},read:function(Ae){const tt=document.cookie.match(new RegExp("(^|;\\s*)("+Ae+")=([^;]*)"));return tt?decodeURIComponent(tt[3]):null},remove:function(Ae){this.write(Ae,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Pe(ve){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(ve)}function Te(ve,he){return he?ve.replace(/\/+$/,"")+"/"+he.replace(/^\/+/,""):ve}function Mt(ve,he){return ve&&!Pe(he)?Te(ve,he):he}const qt=rr.isStandardBrowserEnv?function(){const he=/(msie|trident)/i.test(navigator.userAgent),Ae=document.createElement("a");let tt;function St(kt){let Jt=kt;return he&&(Ae.setAttribute("href",Jt),Jt=Ae.href),Ae.setAttribute("href",Jt),{href:Ae.href,protocol:Ae.protocol?Ae.protocol.replace(/:$/,""):"",host:Ae.host,search:Ae.search?Ae.search.replace(/^\?/,""):"",hash:Ae.hash?Ae.hash.replace(/^#/,""):"",hostname:Ae.hostname,port:Ae.port,pathname:Ae.pathname.charAt(0)==="/"?Ae.pathname:"/"+Ae.pathname}}return tt=St(window.location.href),function(Jt){const gt=et.isString(Jt)?St(Jt):Jt;return gt.protocol===tt.protocol&&gt.host===tt.host}}():function(){return function(){return!0}}();function Rn(ve){const he=/^([-+\w]{1,25})(:?\/\/|:)/.exec(ve);return he&&he[1]||""}function Qn(ve,he){ve=ve||10;const Ae=new Array(ve),tt=new Array(ve);let St=0,kt=0,Jt;return he=he!==void 0?he:1e3,function(dn){const Xt=Date.now(),hn=tt[kt];Jt||(Jt=Xt),Ae[St]=dn,tt[St]=Xt;let Sn=kt,Jn=0;for(;Sn!==St;)Jn+=Ae[Sn++],Sn=Sn%ve;if(St=(St+1)%ve,St===kt&&(kt=(kt+1)%ve),Xt-Jt<he)return;const Vn=hn&&Xt-hn;return Vn?Math.round(Jn*1e3/Vn):void 0}}const ur=Qn;function On(ve,he){let Ae=0;const tt=ur(50,250);return St=>{const kt=St.loaded,Jt=St.lengthComputable?St.total:void 0,gt=kt-Ae,dn=tt(gt),Xt=kt<=Jt;Ae=kt;const hn={loaded:kt,total:Jt,progress:Jt?kt/Jt:void 0,bytes:gt,rate:dn||void 0,estimated:dn&&Jt&&Xt?(Jt-kt)/dn:void 0,event:St};hn[he?"download":"upload"]=!0,ve(hn)}}const Cn={http:ot,xhr:typeof XMLHttpRequest<"u"&&function(ve){return new Promise(function(Ae,tt){let St=ve.data;const kt=Pi.from(ve.headers).normalize(),Jt=ve.responseType;let gt;function dn(){ve.cancelToken&&ve.cancelToken.unsubscribe(gt),ve.signal&&ve.signal.removeEventListener("abort",gt)}et.isFormData(St)&&(rr.isStandardBrowserEnv||rr.isStandardBrowserWebWorkerEnv?kt.setContentType(!1):kt.setContentType("multipart/form-data;",!1));let Xt=new XMLHttpRequest;if(ve.auth){const Vn=ve.auth.username||"",ar=ve.auth.password?unescape(encodeURIComponent(ve.auth.password)):"";kt.set("Authorization","Basic "+btoa(Vn+":"+ar))}const hn=Mt(ve.baseURL,ve.url);Xt.open(ve.method.toUpperCase(),lt(hn,ve.params,ve.paramsSerializer),!0),Xt.timeout=ve.timeout;function Sn(){if(!Xt)return;const Vn=Pi.from("getAllResponseHeaders"in Xt&&Xt.getAllResponseHeaders()),Vr={data:!Jt||Jt==="text"||Jt==="json"?Xt.responseText:Xt.response,status:Xt.status,statusText:Xt.statusText,headers:Vn,config:ve,request:Xt};Re(function(yi){Ae(yi),dn()},function(yi){tt(yi),dn()},Vr),Xt=null}if("onloadend"in Xt?Xt.onloadend=Sn:Xt.onreadystatechange=function(){!Xt||Xt.readyState!==4||Xt.status===0&&!(Xt.responseURL&&Xt.responseURL.indexOf("file:")===0)||setTimeout(Sn)},Xt.onabort=function(){Xt&&(tt(new ht("Request aborted",ht.ECONNABORTED,ve,Xt)),Xt=null)},Xt.onerror=function(){tt(new ht("Network Error",ht.ERR_NETWORK,ve,Xt)),Xt=null},Xt.ontimeout=function(){let ar=ve.timeout?"timeout of "+ve.timeout+"ms exceeded":"timeout exceeded";const Vr=ve.transitional||Vt;ve.timeoutErrorMessage&&(ar=ve.timeoutErrorMessage),tt(new ht(ar,Vr.clarifyTimeoutError?ht.ETIMEDOUT:ht.ECONNABORTED,ve,Xt)),Xt=null},rr.isStandardBrowserEnv){const Vn=(ve.withCredentials||qt(hn))&&ve.xsrfCookieName&&ke.read(ve.xsrfCookieName);Vn&&kt.set(ve.xsrfHeaderName,Vn)}St===void 0&&kt.setContentType(null),"setRequestHeader"in Xt&&et.forEach(kt.toJSON(),function(ar,Vr){Xt.setRequestHeader(Vr,ar)}),et.isUndefined(ve.withCredentials)||(Xt.withCredentials=!!ve.withCredentials),Jt&&Jt!=="json"&&(Xt.responseType=ve.responseType),typeof ve.onDownloadProgress=="function"&&Xt.addEventListener("progress",On(ve.onDownloadProgress,!0)),typeof ve.onUploadProgress=="function"&&Xt.upload&&Xt.upload.addEventListener("progress",On(ve.onUploadProgress)),(ve.cancelToken||ve.signal)&&(gt=Vn=>{Xt&&(tt(!Vn||Vn.type?new it(null,ve,Xt):Vn),Xt.abort(),Xt=null)},ve.cancelToken&&ve.cancelToken.subscribe(gt),ve.signal&&(ve.signal.aborted?gt():ve.signal.addEventListener("abort",gt)));const Jn=Rn(hn);if(Jn&&rr.protocols.indexOf(Jn)===-1){tt(new ht("Unsupported protocol "+Jn+":",ht.ERR_BAD_REQUEST,ve));return}Xt.send(St||null)})}};et.forEach(Cn,(ve,he)=>{if(ve){try{Object.defineProperty(ve,"name",{value:he})}catch{}Object.defineProperty(ve,"adapterName",{value:he})}});const Pn={getAdapter:ve=>{ve=et.isArray(ve)?ve:[ve];const{length:he}=ve;let Ae,tt;for(let St=0;St<he&&(Ae=ve[St],!(tt=et.isString(Ae)?Cn[Ae.toLowerCase()]:Ae));St++);if(!tt)throw tt===!1?new ht(`Adapter ${Ae} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(et.hasOwnProp(Cn,Ae)?`Adapter '${Ae}' is not available in the build`:`Unknown adapter '${Ae}'`);if(!et.isFunction(tt))throw new TypeError("adapter is not a function");return tt},adapters:Cn};function Kn(ve){if(ve.cancelToken&&ve.cancelToken.throwIfRequested(),ve.signal&&ve.signal.aborted)throw new it(null,ve)}function Rt(ve){return Kn(ve),ve.headers=Pi.from(ve.headers),ve.data=ii.call(ve,ve.transformRequest),["post","put","patch"].indexOf(ve.method)!==-1&&ve.headers.setContentType("application/x-www-form-urlencoded",!1),Pn.getAdapter(ve.adapter||bn.adapter)(ve).then(function(tt){return Kn(ve),tt.data=ii.call(ve,ve.transformResponse,tt),tt.headers=Pi.from(tt.headers),tt},function(tt){return vr(tt)||(Kn(ve),tt&&tt.response&&(tt.response.data=ii.call(ve,ve.transformResponse,tt.response),tt.response.headers=Pi.from(tt.response.headers))),Promise.reject(tt)})}const Ke=ve=>ve instanceof Pi?ve.toJSON():ve;function Oe(ve,he){he=he||{};const Ae={};function tt(Xt,hn,Sn){return et.isPlainObject(Xt)&&et.isPlainObject(hn)?et.merge.call({caseless:Sn},Xt,hn):et.isPlainObject(hn)?et.merge({},hn):et.isArray(hn)?hn.slice():hn}function St(Xt,hn,Sn){if(et.isUndefined(hn)){if(!et.isUndefined(Xt))return tt(void 0,Xt,Sn)}else return tt(Xt,hn,Sn)}function kt(Xt,hn){if(!et.isUndefined(hn))return tt(void 0,hn)}function Jt(Xt,hn){if(et.isUndefined(hn)){if(!et.isUndefined(Xt))return tt(void 0,Xt)}else return tt(void 0,hn)}function gt(Xt,hn,Sn){if(Sn in he)return tt(Xt,hn);if(Sn in ve)return tt(void 0,Xt)}const dn={url:kt,method:kt,data:kt,baseURL:Jt,transformRequest:Jt,transformResponse:Jt,paramsSerializer:Jt,timeout:Jt,timeoutMessage:Jt,withCredentials:Jt,adapter:Jt,responseType:Jt,xsrfCookieName:Jt,xsrfHeaderName:Jt,onUploadProgress:Jt,onDownloadProgress:Jt,decompress:Jt,maxContentLength:Jt,maxBodyLength:Jt,beforeRedirect:Jt,transport:Jt,httpAgent:Jt,httpsAgent:Jt,cancelToken:Jt,socketPath:Jt,responseEncoding:Jt,validateStatus:gt,headers:(Xt,hn)=>St(Ke(Xt),Ke(hn),!0)};return et.forEach(Object.keys(Object.assign({},ve,he)),function(hn){const Sn=dn[hn]||St,Jn=Sn(ve[hn],he[hn],hn);et.isUndefined(Jn)&&Sn!==gt||(Ae[hn]=Jn)}),Ae}const Ge="1.5.0",Ft={};["object","boolean","number","function","string","symbol"].forEach((ve,he)=>{Ft[ve]=function(tt){return typeof tt===ve||"a"+(he<1?"n ":" ")+ve}});const Qt={};Ft.transitional=function(he,Ae,tt){function St(kt,Jt){return"[Axios v"+Ge+"] Transitional option '"+kt+"'"+Jt+(tt?". "+tt:"")}return(kt,Jt,gt)=>{if(he===!1)throw new ht(St(Jt," has been removed"+(Ae?" in "+Ae:"")),ht.ERR_DEPRECATED);return Ae&&!Qt[Jt]&&(Qt[Jt]=!0,console.warn(St(Jt," has been deprecated since v"+Ae+" and will be removed in the near future"))),he?he(kt,Jt,gt):!0}};function wn(ve,he,Ae){if(typeof ve!="object")throw new ht("options must be an object",ht.ERR_BAD_OPTION_VALUE);const tt=Object.keys(ve);let St=tt.length;for(;St-- >0;){const kt=tt[St],Jt=he[kt];if(Jt){const gt=ve[kt],dn=gt===void 0||Jt(gt,kt,ve);if(dn!==!0)throw new ht("option "+kt+" must be "+dn,ht.ERR_BAD_OPTION_VALUE);continue}if(Ae!==!0)throw new ht("Unknown option "+kt,ht.ERR_BAD_OPTION)}}const Gn={assertOptions:wn,validators:Ft},ir=Gn.validators;class br{constructor(he){this.defaults=he,this.interceptors={request:new zt,response:new zt}}request(he,Ae){typeof he=="string"?(Ae=Ae||{},Ae.url=he):Ae=he||{},Ae=Oe(this.defaults,Ae);const{transitional:tt,paramsSerializer:St,headers:kt}=Ae;tt!==void 0&&Gn.assertOptions(tt,{silentJSONParsing:ir.transitional(ir.boolean),forcedJSONParsing:ir.transitional(ir.boolean),clarifyTimeoutError:ir.transitional(ir.boolean)},!1),St!=null&&(et.isFunction(St)?Ae.paramsSerializer={serialize:St}:Gn.assertOptions(St,{encode:ir.function,serialize:ir.function},!0)),Ae.method=(Ae.method||this.defaults.method||"get").toLowerCase();let Jt=kt&&et.merge(kt.common,kt[Ae.method]);kt&&et.forEach(["delete","get","head","post","put","patch","common"],ar=>{delete kt[ar]}),Ae.headers=Pi.concat(Jt,kt);const gt=[];let dn=!0;this.interceptors.request.forEach(function(Vr){typeof Vr.runWhen=="function"&&Vr.runWhen(Ae)===!1||(dn=dn&&Vr.synchronous,gt.unshift(Vr.fulfilled,Vr.rejected))});const Xt=[];this.interceptors.response.forEach(function(Vr){Xt.push(Vr.fulfilled,Vr.rejected)});let hn,Sn=0,Jn;if(!dn){const ar=[Rt.bind(this),void 0];for(ar.unshift.apply(ar,gt),ar.push.apply(ar,Xt),Jn=ar.length,hn=Promise.resolve(Ae);Sn<Jn;)hn=hn.then(ar[Sn++],ar[Sn++]);return hn}Jn=gt.length;let Vn=Ae;for(Sn=0;Sn<Jn;){const ar=gt[Sn++],Vr=gt[Sn++];try{Vn=ar(Vn)}catch(Jr){Vr.call(this,Jr);break}}try{hn=Rt.call(this,Vn)}catch(ar){return Promise.reject(ar)}for(Sn=0,Jn=Xt.length;Sn<Jn;)hn=hn.then(Xt[Sn++],Xt[Sn++]);return hn}getUri(he){he=Oe(this.defaults,he);const Ae=Mt(he.baseURL,he.url);return lt(Ae,he.params,he.paramsSerializer)}}et.forEach(["delete","get","head","options"],function(he){br.prototype[he]=function(Ae,tt){return this.request(Oe(tt||{},{method:he,url:Ae,data:(tt||{}).data}))}}),et.forEach(["post","put","patch"],function(he){function Ae(tt){return function(kt,Jt,gt){return this.request(Oe(gt||{},{method:he,headers:tt?{"Content-Type":"multipart/form-data"}:{},url:kt,data:Jt}))}}br.prototype[he]=Ae(),br.prototype[he+"Form"]=Ae(!0)});const fr=br;class Er{constructor(he){if(typeof he!="function")throw new TypeError("executor must be a function.");let Ae;this.promise=new Promise(function(kt){Ae=kt});const tt=this;this.promise.then(St=>{if(!tt._listeners)return;let kt=tt._listeners.length;for(;kt-- >0;)tt._listeners[kt](St);tt._listeners=null}),this.promise.then=St=>{let kt;const Jt=new Promise(gt=>{tt.subscribe(gt),kt=gt}).then(St);return Jt.cancel=function(){tt.unsubscribe(kt)},Jt},he(function(kt,Jt,gt){tt.reason||(tt.reason=new it(kt,Jt,gt),Ae(tt.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(he){if(this.reason){he(this.reason);return}this._listeners?this._listeners.push(he):this._listeners=[he]}unsubscribe(he){if(!this._listeners)return;const Ae=this._listeners.indexOf(he);Ae!==-1&&this._listeners.splice(Ae,1)}static source(){let he;return{token:new Er(function(St){he=St}),cancel:he}}}const Or=Er;function oi(ve){return function(Ae){return ve.apply(null,Ae)}}function si(ve){return et.isObject(ve)&&ve.isAxiosError===!0}const Fi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Fi).forEach(([ve,he])=>{Fi[he]=ve});const $i=Fi;function Vi(ve){const he=new fr(ve),Ae=r(fr.prototype.request,he);return et.extend(Ae,fr.prototype,he,{allOwnKeys:!0}),et.extend(Ae,he,null,{allOwnKeys:!0}),Ae.create=function(St){return Vi(Oe(ve,St))},Ae}const Bn=Vi(bn);Bn.Axios=fr,Bn.CanceledError=it,Bn.CancelToken=Or,Bn.isCancel=vr,Bn.VERSION=Ge,Bn.toFormData=ae,Bn.AxiosError=ht,Bn.Cancel=Bn.CanceledError,Bn.all=function(he){return Promise.all(he)},Bn.spread=oi,Bn.isAxiosError=si,Bn.mergeConfig=Oe,Bn.AxiosHeaders=Pi,Bn.formToJSON=ve=>ri(et.isHTMLForm(ve)?new FormData(ve):ve),Bn.getAdapter=Pn.getAdapter,Bn.HttpStatusCode=$i,Bn.default=Bn;const nt=Bn},83128:(Z,v,t)=>{"use strict";t.d(v,{g:()=>x,i:()=>T,j:()=>U});var r=t(30972),n=t(67294),s=t(96987),a=t(85200),c=t(89082),h=t(46449);const p=(u,b)=>{const E=u[b];return E?typeof E=="function"?E():Promise.resolve(E):new Promise((A,R)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(R.bind(null,new Error("Unknown variable dynamic import: "+b)))})};var d={exports:{}},k={};/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var M;function C(){if(M)return k;M=1;var u=n,b=Symbol.for("react.element"),E=Symbol.for("react.fragment"),A=Object.prototype.hasOwnProperty,R=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,H={key:!0,ref:!0,__self:!0,__source:!0};function z(V,$,ee){var q,oe={},X=null,pe=null;ee!==void 0&&(X=""+ee),$.key!==void 0&&(X=""+$.key),$.ref!==void 0&&(pe=$.ref);for(q in $)A.call($,q)&&!H.hasOwnProperty(q)&&(oe[q]=$[q]);if(V&&V.defaultProps)for(q in $=V.defaultProps,$)oe[q]===void 0&&(oe[q]=$[q]);return{$$typeof:b,type:V,key:X,ref:pe,props:oe,_owner:R.current}}return k.Fragment=E,k.jsx=z,k.jsxs=z,k}var w={};/**
 * @license React
 * react-jsx-runtime.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var I;function F(){return I||(I=1),w}d.exports=C();var U=d.exports;const B=(0,h.default)(s.k)`
  /* Hard code color values */
  /* to stay consistent between themes */
  background-color: #f0f0ff; /* primary100 */
  border: 1px solid #d9d8ff; /* primary200 */

  svg > path {
    fill: #4945ff; /* primary600 */
  }
`,N=()=>U.jsx(B,{justifyContent:"center",alignItems:"center",width:7,height:6,hasRadius:!0,"aria-hidden":!0,children:U.jsx(a.J,{as:c.Z})}),D="color-picker",x=u=>`${D}.${u}`,T={register(u){u.customFields.register({name:"color",pluginId:"color-picker",type:"string",icon:N,intlLabel:{id:x("color-picker.label"),defaultMessage:"Color"},intlDescription:{id:x("color-picker.description"),defaultMessage:"Select any color"},components:{Input:async()=>t.e(5175).then(t.bind(t,95437)).then(b=>({default:b.ColorPickerInput}))},options:{advanced:[{intlLabel:{id:x("color-picker.options.advanced.regex"),defaultMessage:"RegExp pattern"},name:"regex",type:"text",defaultValue:"^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$",description:{id:x("color-picker.options.advanced.regex.description"),defaultMessage:"The text of the regular expression"}},{sectionTitle:{id:"global.settings",defaultMessage:"Settings"},items:[{name:"required",type:"checkbox",intlLabel:{id:x("color-picker.options.advanced.requiredField"),defaultMessage:"Required field"},description:{id:x("color-picker.options.advanced.requiredField.description"),defaultMessage:"You won't be able to create an entry if this field is empty"}}]}]}})},async registerTrads({locales:u}){const b=await Promise.all(u.map(E=>p(Object.assign({"./translations/cs.json":()=>t.e(7115).then(t.bind(t,17115)),"./translations/en.json":()=>t.e(3577).then(t.bind(t,3577)),"./translations/ru.json":()=>t.e(4390).then(t.bind(t,64390)),"./translations/sv.json":()=>t.e(4723).then(t.bind(t,44723)),"./translations/tr.json":()=>t.e(7324).then(t.bind(t,97324)),"./translations/zh.json":()=>t.e(935).then(t.bind(t,50935))}),`./translations/${E}.json`).then(({default:A})=>({data:(0,r.jV)(A,D),locale:E})).catch(()=>({data:{},locale:E}))));return Promise.resolve(b)}}},38776:(Z,v,t)=>{"use strict";t.d(v,{Z:()=>s});var r=!0,n="Invariant failed";function s(a,c){if(!a){if(r)throw new Error(n);var h=typeof c=="function"?c():c,p=h?"".concat(n,": ").concat(h):n;throw new Error(p)}}},97582:(Z,v,t)=>{"use strict";t.d(v,{ZT:()=>n,_T:()=>a,ev:()=>T,pi:()=>s});var r=function(se,be){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,ue){fe.__proto__=ue}||function(fe,ue){for(var we in ue)Object.prototype.hasOwnProperty.call(ue,we)&&(fe[we]=ue[we])},r(se,be)};function n(se,be){if(typeof be!="function"&&be!==null)throw new TypeError("Class extends value "+String(be)+" is not a constructor or null");r(se,be);function fe(){this.constructor=se}se.prototype=be===null?Object.create(be):(fe.prototype=be.prototype,new fe)}var s=function(){return s=Object.assign||function(be){for(var fe,ue=1,we=arguments.length;ue<we;ue++){fe=arguments[ue];for(var Me in fe)Object.prototype.hasOwnProperty.call(fe,Me)&&(be[Me]=fe[Me])}return be},s.apply(this,arguments)};function a(se,be){var fe={};for(var ue in se)Object.prototype.hasOwnProperty.call(se,ue)&&be.indexOf(ue)<0&&(fe[ue]=se[ue]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,ue=Object.getOwnPropertySymbols(se);we<ue.length;we++)be.indexOf(ue[we])<0&&Object.prototype.propertyIsEnumerable.call(se,ue[we])&&(fe[ue[we]]=se[ue[we]]);return fe}function c(se,be,fe,ue){var we=arguments.length,Me=we<3?be:ue===null?ue=Object.getOwnPropertyDescriptor(be,fe):ue,Ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Me=Reflect.decorate(se,be,fe,ue);else for(var Ne=se.length-1;Ne>=0;Ne--)(Ce=se[Ne])&&(Me=(we<3?Ce(Me):we>3?Ce(be,fe,Me):Ce(be,fe))||Me);return we>3&&Me&&Object.defineProperty(be,fe,Me),Me}function h(se,be){return function(fe,ue){be(fe,ue,se)}}function p(se,be,fe,ue,we,Me){function Ce(un){if(un!==void 0&&typeof un!="function")throw new TypeError("Function expected");return un}for(var Ne=ue.kind,Ye=Ne==="getter"?"get":Ne==="setter"?"set":"value",mt=!be&&se?ue.static?se:se.prototype:null,Ct=be||(mt?Object.getOwnPropertyDescriptor(mt,ue.name):{}),ln,$e=!1,Qe=fe.length-1;Qe>=0;Qe--){var bt={};for(var It in ue)bt[It]=It==="access"?{}:ue[It];for(var It in ue.access)bt.access[It]=ue.access[It];bt.addInitializer=function(un){if($e)throw new TypeError("Cannot add initializers after decoration has completed");Me.push(Ce(un||null))};var mn=(0,fe[Qe])(Ne==="accessor"?{get:Ct.get,set:Ct.set}:Ct[Ye],bt);if(Ne==="accessor"){if(mn===void 0)continue;if(mn===null||typeof mn!="object")throw new TypeError("Object expected");(ln=Ce(mn.get))&&(Ct.get=ln),(ln=Ce(mn.set))&&(Ct.set=ln),(ln=Ce(mn.init))&&we.unshift(ln)}else(ln=Ce(mn))&&(Ne==="field"?we.unshift(ln):Ct[Ye]=ln)}mt&&Object.defineProperty(mt,ue.name,Ct),$e=!0}function d(se,be,fe){for(var ue=arguments.length>2,we=0;we<be.length;we++)fe=ue?be[we].call(se,fe):be[we].call(se);return ue?fe:void 0}function k(se){return typeof se=="symbol"?se:"".concat(se)}function M(se,be,fe){return typeof be=="symbol"&&(be=be.description?"[".concat(be.description,"]"):""),Object.defineProperty(se,"name",{configurable:!0,value:fe?"".concat(fe," ",be):be})}function C(se,be){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(se,be)}function w(se,be,fe,ue){function we(Me){return Me instanceof fe?Me:new fe(function(Ce){Ce(Me)})}return new(fe||(fe=Promise))(function(Me,Ce){function Ne(Ct){try{mt(ue.next(Ct))}catch(ln){Ce(ln)}}function Ye(Ct){try{mt(ue.throw(Ct))}catch(ln){Ce(ln)}}function mt(Ct){Ct.done?Me(Ct.value):we(Ct.value).then(Ne,Ye)}mt((ue=ue.apply(se,be||[])).next())})}function I(se,be){var fe={label:0,sent:function(){if(Me[0]&1)throw Me[1];return Me[1]},trys:[],ops:[]},ue,we,Me,Ce;return Ce={next:Ne(0),throw:Ne(1),return:Ne(2)},typeof Symbol=="function"&&(Ce[Symbol.iterator]=function(){return this}),Ce;function Ne(mt){return function(Ct){return Ye([mt,Ct])}}function Ye(mt){if(ue)throw new TypeError("Generator is already executing.");for(;Ce&&(Ce=0,mt[0]&&(fe=0)),fe;)try{if(ue=1,we&&(Me=mt[0]&2?we.return:mt[0]?we.throw||((Me=we.return)&&Me.call(we),0):we.next)&&!(Me=Me.call(we,mt[1])).done)return Me;switch(we=0,Me&&(mt=[mt[0]&2,Me.value]),mt[0]){case 0:case 1:Me=mt;break;case 4:return fe.label++,{value:mt[1],done:!1};case 5:fe.label++,we=mt[1],mt=[0];continue;case 7:mt=fe.ops.pop(),fe.trys.pop();continue;default:if(Me=fe.trys,!(Me=Me.length>0&&Me[Me.length-1])&&(mt[0]===6||mt[0]===2)){fe=0;continue}if(mt[0]===3&&(!Me||mt[1]>Me[0]&&mt[1]<Me[3])){fe.label=mt[1];break}if(mt[0]===6&&fe.label<Me[1]){fe.label=Me[1],Me=mt;break}if(Me&&fe.label<Me[2]){fe.label=Me[2],fe.ops.push(mt);break}Me[2]&&fe.ops.pop(),fe.trys.pop();continue}mt=be.call(se,fe)}catch(Ct){mt=[6,Ct],we=0}finally{ue=Me=0}if(mt[0]&5)throw mt[1];return{value:mt[0]?mt[1]:void 0,done:!0}}}var F=Object.create?function(se,be,fe,ue){ue===void 0&&(ue=fe);var we=Object.getOwnPropertyDescriptor(be,fe);(!we||("get"in we?!be.__esModule:we.writable||we.configurable))&&(we={enumerable:!0,get:function(){return be[fe]}}),Object.defineProperty(se,ue,we)}:function(se,be,fe,ue){ue===void 0&&(ue=fe),se[ue]=be[fe]};function U(se,be){for(var fe in se)fe!=="default"&&!Object.prototype.hasOwnProperty.call(be,fe)&&F(be,se,fe)}function B(se){var be=typeof Symbol=="function"&&Symbol.iterator,fe=be&&se[be],ue=0;if(fe)return fe.call(se);if(se&&typeof se.length=="number")return{next:function(){return se&&ue>=se.length&&(se=void 0),{value:se&&se[ue++],done:!se}}};throw new TypeError(be?"Object is not iterable.":"Symbol.iterator is not defined.")}function N(se,be){var fe=typeof Symbol=="function"&&se[Symbol.iterator];if(!fe)return se;var ue=fe.call(se),we,Me=[],Ce;try{for(;(be===void 0||be-- >0)&&!(we=ue.next()).done;)Me.push(we.value)}catch(Ne){Ce={error:Ne}}finally{try{we&&!we.done&&(fe=ue.return)&&fe.call(ue)}finally{if(Ce)throw Ce.error}}return Me}function D(){for(var se=[],be=0;be<arguments.length;be++)se=se.concat(N(arguments[be]));return se}function x(){for(var se=0,be=0,fe=arguments.length;be<fe;be++)se+=arguments[be].length;for(var ue=Array(se),we=0,be=0;be<fe;be++)for(var Me=arguments[be],Ce=0,Ne=Me.length;Ce<Ne;Ce++,we++)ue[we]=Me[Ce];return ue}function T(se,be,fe){if(fe||arguments.length===2)for(var ue=0,we=be.length,Me;ue<we;ue++)(Me||!(ue in be))&&(Me||(Me=Array.prototype.slice.call(be,0,ue)),Me[ue]=be[ue]);return se.concat(Me||Array.prototype.slice.call(be))}function u(se){return this instanceof u?(this.v=se,this):new u(se)}function b(se,be,fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ue=fe.apply(se,be||[]),we,Me=[];return we={},Ce("next"),Ce("throw"),Ce("return"),we[Symbol.asyncIterator]=function(){return this},we;function Ce($e){ue[$e]&&(we[$e]=function(Qe){return new Promise(function(bt,It){Me.push([$e,Qe,bt,It])>1||Ne($e,Qe)})})}function Ne($e,Qe){try{Ye(ue[$e](Qe))}catch(bt){ln(Me[0][3],bt)}}function Ye($e){$e.value instanceof u?Promise.resolve($e.value.v).then(mt,Ct):ln(Me[0][2],$e)}function mt($e){Ne("next",$e)}function Ct($e){Ne("throw",$e)}function ln($e,Qe){$e(Qe),Me.shift(),Me.length&&Ne(Me[0][0],Me[0][1])}}function E(se){var be,fe;return be={},ue("next"),ue("throw",function(we){throw we}),ue("return"),be[Symbol.iterator]=function(){return this},be;function ue(we,Me){be[we]=se[we]?function(Ce){return(fe=!fe)?{value:u(se[we](Ce)),done:!1}:Me?Me(Ce):Ce}:Me}}function A(se){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var be=se[Symbol.asyncIterator],fe;return be?be.call(se):(se=typeof B=="function"?B(se):se[Symbol.iterator](),fe={},ue("next"),ue("throw"),ue("return"),fe[Symbol.asyncIterator]=function(){return this},fe);function ue(Me){fe[Me]=se[Me]&&function(Ce){return new Promise(function(Ne,Ye){Ce=se[Me](Ce),we(Ne,Ye,Ce.done,Ce.value)})}}function we(Me,Ce,Ne,Ye){Promise.resolve(Ye).then(function(mt){Me({value:mt,done:Ne})},Ce)}}function R(se,be){return Object.defineProperty?Object.defineProperty(se,"raw",{value:be}):se.raw=be,se}var H=Object.create?function(se,be){Object.defineProperty(se,"default",{enumerable:!0,value:be})}:function(se,be){se.default=be};function z(se){if(se&&se.__esModule)return se;var be={};if(se!=null)for(var fe in se)fe!=="default"&&Object.prototype.hasOwnProperty.call(se,fe)&&F(be,se,fe);return H(be,se),be}function V(se){return se&&se.__esModule?se:{default:se}}function $(se,be,fe,ue){if(fe==="a"&&!ue)throw new TypeError("Private accessor was defined without a getter");if(typeof be=="function"?se!==be||!ue:!be.has(se))throw new TypeError("Cannot read private member from an object whose class did not declare it");return fe==="m"?ue:fe==="a"?ue.call(se):ue?ue.value:be.get(se)}function ee(se,be,fe,ue,we){if(ue==="m")throw new TypeError("Private method is not writable");if(ue==="a"&&!we)throw new TypeError("Private accessor was defined without a setter");if(typeof be=="function"?se!==be||!we:!be.has(se))throw new TypeError("Cannot write private member to an object whose class did not declare it");return ue==="a"?we.call(se,fe):we?we.value=fe:be.set(se,fe),fe}function q(se,be){if(be===null||typeof be!="object"&&typeof be!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof se=="function"?be===se:se.has(be)}function oe(se,be,fe){if(be!=null){if(typeof be!="object"&&typeof be!="function")throw new TypeError("Object expected.");var ue;if(fe){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");ue=be[Symbol.asyncDispose]}if(ue===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");ue=be[Symbol.dispose]}if(typeof ue!="function")throw new TypeError("Object not disposable.");se.stack.push({value:be,dispose:ue,async:fe})}else fe&&se.stack.push({async:!0});return be}var X=typeof SuppressedError=="function"?SuppressedError:function(se,be,fe){var ue=new Error(fe);return ue.name="SuppressedError",ue.error=se,ue.suppressed=be,ue};function pe(se){function be(ue){se.error=se.hasError?new X(ue,se.error,"An error was suppressed during disposal."):ue,se.hasError=!0}function fe(){for(;se.stack.length;){var ue=se.stack.pop();try{var we=ue.dispose&&ue.dispose.call(ue.value);if(ue.async)return Promise.resolve(we).then(fe,function(Me){return be(Me),fe()})}catch(Me){be(Me)}}if(se.hasError)throw se.error}return fe()}var Ie={__extends:n,__assign:s,__rest:a,__decorate:c,__param:h,__metadata:C,__awaiter:w,__generator:I,__createBinding:F,__exportStar:U,__values:B,__read:N,__spread:D,__spreadArrays:x,__spreadArray:T,__await:u,__asyncGenerator:b,__asyncDelegator:E,__asyncValues:A,__makeTemplateObject:R,__importStar:z,__importDefault:V,__classPrivateFieldGet:$,__classPrivateFieldSet:ee,__classPrivateFieldIn:q,__addDisposableResource:oe,__disposeResources:pe}},50530:Z=>{"use strict";Z.exports=JSON.parse('{"name":"@_sh/strapi-plugin-ckeditor","version":"2.0.4","description":"Integrates CKEditor 5 into your Strapi project as a fully customizable custom field. (Unofficial integration)","private":false,"keywords":["strapi","ckeditor","ckeditor5","ckeditor 5","wysiwyg","rich text","editor"],"strapi":{"name":"ckeditor5","displayName":"CKEditor 5","description":"Integrates CKEditor 5 into your Strapi project as a fully customizable custom field. (Unofficial integration)","kind":"plugin"},"files":["admin","server","strapi-admin.js","strapi-server.js"],"dependencies":{"ckeditor5":"^36.0.0","@ckeditor/ckeditor5-react":"^5.0.6","@ckeditor/ckeditor5-alignment":"^36.0.0","@ckeditor/ckeditor5-autoformat":"^36.0.0","@ckeditor/ckeditor5-autosave":"^36.0.0","@ckeditor/ckeditor5-basic-styles":"^36.0.0","@ckeditor/ckeditor5-block-quote":"^36.0.0","@ckeditor/ckeditor5-style":"^36.0.0","@ckeditor/ckeditor5-code-block":"^36.0.0","@ckeditor/ckeditor5-easy-image":"^36.0.0","@ckeditor/ckeditor5-editor-classic":"^36.0.0","@ckeditor/ckeditor5-essentials":"^36.0.0","@ckeditor/ckeditor5-find-and-replace":"^36.0.0","@ckeditor/ckeditor5-heading":"^36.0.0","@ckeditor/ckeditor5-highlight":"^36.0.0","@ckeditor/ckeditor5-horizontal-line":"^36.0.0","@ckeditor/ckeditor5-html-embed":"^36.0.0","@ckeditor/ckeditor5-html-support":"^36.0.0","@ckeditor/ckeditor5-image":"^36.0.0","@ckeditor/ckeditor5-indent":"^36.0.0","@ckeditor/ckeditor5-language":"^36.0.0","@ckeditor/ckeditor5-link":"^36.0.0","@ckeditor/ckeditor5-list":"^36.0.0","@ckeditor/ckeditor5-mention":"^36.0.0","@ckeditor/ckeditor5-media-embed":"^36.0.0","@ckeditor/ckeditor5-page-break":"^36.0.0","@ckeditor/ckeditor5-paragraph":"^36.0.0","@ckeditor/ckeditor5-paste-from-office":"^36.0.0","@ckeditor/ckeditor5-remove-format":"^36.0.0","@ckeditor/ckeditor5-special-characters":"^36.0.0","@ckeditor/ckeditor5-source-editing":"^36.0.0","@ckeditor/ckeditor5-table":"^36.0.0","@ckeditor/ckeditor5-theme-lark":"^36.0.0","@ckeditor/ckeditor5-typing":"^36.0.0","@ckeditor/ckeditor5-upload":"^36.0.0","@ckeditor/ckeditor5-word-count":"^36.0.0","sanitize-html":"^2.8.1","@_sh/ckeditor5-font-with-picker":"^0.0.1"},"peerDependencies":{"@strapi/strapi":"^4.4.0"},"author":{"name":"nshenderov"},"homepage":"https://market.strapi.io/plugins/@_sh-strapi-plugin-ckeditor","repository":{"type":"git","url":"https://github.com/nshenderov/strapi-plugin-ckeditor.git"},"scripts":{"test":"echo \\"Error: no tests specified\\" && exit 1"},"engines":{"node":">=14.19.1 <=18.x.x","npm":">=6.0.0"},"license":"MIT"}')},98699:Z=>{"use strict";Z.exports=JSON.parse('{"u2":"@strapi/plugin-content-type-builder","s1":{"u2":"content-type-builder"}}')},21381:Z=>{"use strict";Z.exports=JSON.parse('{"u2":"@strapi/plugin-i18n","s1":{"u2":"i18n"}}')},81746:Z=>{"use strict";Z.exports=JSON.parse('{"name":"@strapi/plugin-seo","version":"1.9.6","description":"Make your Strapi content SEO friendly.","strapi":{"name":"seo","displayName":"SEO","description":"Make your Strapi content SEO friendly.","kind":"plugin"},"repository":{"type":"git","url":"https://github.com/strapi/strapi-plugin-seo.git"},"dependencies":{"date-fns":"^2.29.3","eslint-plugin-react-hooks":"^4.3.0","lodash":"^4.17.21","showdown":"^1.9.1","styled-components":"^6.0.7"},"resolutions":{"yargs":"^17.2.1"},"peerDependencies":{"@strapi/strapi":"^4.0.0"},"author":{"name":"Strapi Solutions SAS","email":"hi@strapi.io","url":"https://strapi.io"},"maintainers":[{"name":"Strapi Solutions SAS","email":"hi@strapi.io","url":"https://strapi.io"}],"engines":{"node":">=18.x.x <=20.x.x","npm":">=6.0.0"},"license":"MIT"}')},64262:Z=>{"use strict";Z.exports=JSON.parse('{"u2":"@strapi/plugin-upload","s1":{"u2":"upload"}}')},40657:Z=>{"use strict";Z.exports=JSON.parse('{"u2":"@strapi/plugin-users-permissions","s1":{"u2":"users-permissions"}}')}},Z=>{var v=r=>Z(Z.s=r),t=v(17955)}]);
