diff --git a/assets/decap-cms/index.js b/assets/decap-cms/index.js index d24f031..7bbbaaf 100644 --- a/assets/decap-cms/index.js +++ b/assets/decap-cms/index.js @@ -1,5 +1,5 @@ /*! For license information please see index.js.LICENSE.txt */ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("DecapCms",[],t):"object"==typeof exports?exports.DecapCms=t():e.DecapCms=t()}(window,(()=>(()=>{var __webpack_modules__={61540:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AutoScrollActivator:()=>we,DndContext:()=>Ze,DragOverlay:()=>pt,KeyboardCode:()=>ie,KeyboardSensor:()=>ue,MeasuringFrequency:()=>Ee,MeasuringStrategy:()=>ke,MouseSensor:()=>ve,PointerSensor:()=>he,TouchSensor:()=>be,TraversalOrder:()=>_e,applyModifiers:()=>Ve,closestCenter:()=>T,closestCorners:()=>O,defaultAnnouncements:()=>p,defaultCoordinates:()=>b,defaultDropAnimation:()=>dt,defaultDropAnimationSideEffects:()=>ct,defaultScreenReaderInstructions:()=>f,getClientRect:()=>N,getFirstCollision:()=>S,getScrollableAncestors:()=>B,pointerWithin:()=>D,rectIntersection:()=>P,useDndContext:()=>et,useDndMonitor:()=>d,useDraggable:()=>Je,useDroppable:()=>rt,useSensor:()=>v,useSensors:()=>y});var r=n(2784),i=n(28316),o=n(82851);const a={display:"none"};function s(e){let{id:t,value:n}=e;return r.createElement("div",{id:t,style:a},n)}const l={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};function u(e){let{id:t,announcement:n}=e;return r.createElement("div",{id:t,style:l,role:"status","aria-live":"assertive","aria-atomic":!0},n)}const c=(0,r.createContext)(null);function d(e){const t=(0,r.useContext)(c);(0,r.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)}),[e,t])}const f={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},p={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function h(e){let{announcements:t=p,container:n,hiddenTextDescribedById:a,screenReaderInstructions:l=f}=e;const{announce:c,announcement:h}=function(){const[e,t]=(0,r.useState)("");return{announce:(0,r.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),m=(0,o.useUniqueId)("DndLiveRegion"),[g,v]=(0,r.useState)(!1);if((0,r.useEffect)((()=>{v(!0)}),[]),d((0,r.useMemo)((()=>({onDragStart(e){let{active:n}=e;c(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&c(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;c(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;c(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;c(t.onDragCancel({active:n,over:r}))}})),[c,t])),!g)return null;const y=r.createElement(r.Fragment,null,r.createElement(s,{id:a,value:l.draggable}),r.createElement(u,{id:m,announcement:h}));return n?(0,i.createPortal)(y,n):y}var m;function g(){}function v(e,t){return(0,r.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}function y(){for(var e=arguments.length,t=new Array(e),n=0;n[...t].filter((e=>null!=e))),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(m||(m={}));const b=Object.freeze({x:0,y:0});function w(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function _(e,t){const n=(0,o.getEventCoordinates)(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function x(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function k(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function E(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function S(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function C(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const T=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=C(t,t.left,t.top),o=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=w(C(r),i);o.push({id:t,data:{droppableContainer:e,value:n}})}}return o.sort(x)},O=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=E(t),o=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=E(r),a=i.reduce(((e,t,r)=>e+w(n[r],t)),0),s=Number((a/4).toFixed(4));o.push({id:t,data:{droppableContainer:e,value:s}})}}return o.sort(x)};function A(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-r,s=o-n;if(r{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const e of r){const{id:r}=e,o=n.get(r);if(o){const n=A(o,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(k)};function R(e,t){const{top:n,left:r,bottom:i,right:o}=t;return n<=e.y&&e.y<=i&&r<=e.x&&e.x<=o}const D=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];const i=[];for(const e of t){const{id:t}=e,o=n.get(t);if(o&&R(r,o)){const n=E(o).reduce(((e,t)=>e+w(r,t)),0),a=Number((n/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:a}})}}return i.sort(x)};function M(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:b}const I=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r({...e,top:e.top+1*t.y,bottom:e.bottom+1*t.y,left:e.left+1*t.x,right:e.right+1*t.x})),{...e})};function L(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const j={ignoreTransform:!1};function N(e,t){void 0===t&&(t=j);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=(0,o.getWindow)(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=L(t);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:s}=r,l=e.left-a-(1-i)*parseFloat(n),u=e.top-s-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}(n,t,r))}const{top:r,left:i,width:a,height:s,bottom:l,right:u}=n;return{top:r,left:i,width:a,height:s,bottom:l,right:u}}function F(e){return N(e,{ignoreTransform:!0})}function B(e,t){const n=[];return e?function r(i){if(null!=t&&n.length>=t)return n;if(!i)return n;if((0,o.isDocument)(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!(0,o.isHTMLElement)(i)||(0,o.isSVGElement)(i))return n;if(n.includes(i))return n;const a=(0,o.getWindow)(e).getComputedStyle(i);return i!==e&&function(e,t){void 0===t&&(t=(0,o.getWindow)(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(i,a)&&n.push(i),function(e,t){return void 0===t&&(t=(0,o.getWindow)(e).getComputedStyle(e)),"fixed"===t.position}(i,a)?n:r(i.parentNode)}(e):n}function z(e){const[t]=B(e,1);return null!=t?t:null}function U(e){return o.canUseDOM&&e?(0,o.isWindow)(e)?e:(0,o.isNode)(e)?(0,o.isDocument)(e)||e===(0,o.getOwnerDocument)(e).scrollingElement?window:(0,o.isHTMLElement)(e)?e:null:null:null}function q(e){return(0,o.isWindow)(e)?e.scrollX:e.scrollLeft}function W(e){return(0,o.isWindow)(e)?e.scrollY:e.scrollTop}function $(e){return{x:q(e),y:W(e)}}var H;function V(e){return!(!o.canUseDOM||!e)&&e===document.scrollingElement}function G(e){const t={x:0,y:0},n=V(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(H||(H={}));const K={x:.2,y:.2};function Z(e,t,n,r,i){let{top:o,left:a,right:s,bottom:l}=n;void 0===r&&(r=10),void 0===i&&(i=K);const{isTop:u,isBottom:c,isLeft:d,isRight:f}=G(e),p={x:0,y:0},h={x:0,y:0},m=t.height*i.y,g=t.width*i.x;return!u&&o<=t.top+m?(p.y=H.Backward,h.y=r*Math.abs((t.top+m-o)/m)):!c&&l>=t.bottom-m&&(p.y=H.Forward,h.y=r*Math.abs((t.bottom-m-l)/m)),!f&&s>=t.right-g?(p.x=H.Forward,h.x=r*Math.abs((t.right-g-s)/g)):!d&&a<=t.left+g&&(p.x=H.Backward,h.x=r*Math.abs((t.left+g-a)/g)),{direction:p,speed:h}}function Y(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function X(e){return e.reduce(((e,t)=>(0,o.add)(e,$(t))),b)}function Q(e,t){if(void 0===t&&(t=N),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);z(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const J=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+q(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+W(t)),0)}]];class ee{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=B(t),r=X(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,i]of J)for(const o of t)Object.defineProperty(this,o,{get:()=>{const t=i(n),a=r[e]-t;return this.rect[o]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class te{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function ne(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var re,ie;function oe(e){e.preventDefault()}function ae(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(re||(re={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(ie||(ie={}));const se={start:[ie.Space,ie.Enter],cancel:[ie.Esc],end:[ie.Space,ie.Enter]},le=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case ie.Right:return{...n,x:n.x+25};case ie.Left:return{...n,x:n.x-25};case ie.Down:return{...n,y:n.y+25};case ie.Up:return{...n,y:n.y-25}}};class ue{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new te((0,o.getOwnerDocument)(t)),this.windowListeners=new te((0,o.getWindow)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(re.Resize,this.handleCancel),this.windowListeners.add(re.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(re.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&Q(n),t(b)}handleKeyDown(e){if((0,o.isKeyboardEvent)(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:i=se,coordinateGetter:a=le,scrollBehavior:s="smooth"}=r,{code:l}=e;if(i.end.includes(l))return void this.handleEnd(e);if(i.cancel.includes(l))return void this.handleCancel(e);const{collisionRect:u}=n.current,c=u?{x:u.left,y:u.top}:b;this.referenceCoordinates||(this.referenceCoordinates=c);const d=a(e,{active:t,context:n.current,currentCoordinates:c});if(d){const t=(0,o.subtract)(d,c),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(const n of i){const i=e.code,{isTop:o,isRight:a,isLeft:l,isBottom:u,maxScroll:c,minScroll:f}=G(n),p=Y(n),h={x:Math.min(i===ie.Right?p.right-p.width/2:p.right,Math.max(i===ie.Right?p.left:p.left+p.width/2,d.x)),y:Math.min(i===ie.Down?p.bottom-p.height/2:p.bottom,Math.max(i===ie.Down?p.top:p.top+p.height/2,d.y))},m=i===ie.Right&&!a||i===ie.Left&&!l,g=i===ie.Down&&!u||i===ie.Up&&!o;if(m&&h.x!==d.x){const e=n.scrollLeft+t.x,o=i===ie.Right&&e<=c.x||i===ie.Left&&e>=f.x;if(o&&!t.y)return void n.scrollTo({left:e,behavior:s});r.x=o?n.scrollLeft-e:i===ie.Right?n.scrollLeft-c.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:s});break}if(g&&h.y!==d.y){const e=n.scrollTop+t.y,o=i===ie.Down&&e<=c.y||i===ie.Up&&e>=f.y;if(o&&!t.x)return void n.scrollTo({top:e,behavior:s});r.y=o?n.scrollTop-e:i===ie.Down?n.scrollTop-c.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:s});break}}this.handleMove(e,(0,o.add)((0,o.subtract)(d,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function ce(e){return Boolean(e&&"distance"in e)}function de(e){return Boolean(e&&"delay"in e)}ue.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=se,onActivation:i}=t,{active:o}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=o.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==i||i({event:e.nativeEvent}),0))}return!1}}];class fe{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=(0,o.getWindow)(e);return e instanceof t?e:(0,o.getOwnerDocument)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:a}=i;this.props=e,this.events=t,this.document=(0,o.getOwnerDocument)(a),this.documentListeners=new te(this.document),this.listeners=new te(n),this.windowListeners=new te((0,o.getWindow)(a)),this.initialCoordinates=null!=(r=(0,o.getEventCoordinates)(i))?r:b,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(re.Resize,this.handleCancel),this.windowListeners.add(re.DragStart,oe),this.windowListeners.add(re.VisibilityChange,this.handleCancel),this.windowListeners.add(re.ContextMenu,oe),this.documentListeners.add(re.Keydown,this.handleKeydown),t){if(ce(t))return;if(de(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay))}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(re.Click,ae,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(re.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:i}=this,{onMove:a,options:{activationConstraint:s}}=i;if(!r)return;const l=null!=(t=(0,o.getEventCoordinates)(e))?t:b,u=(0,o.subtract)(r,l);if(!n&&s){if(de(s))return ne(u,s.tolerance)?this.handleCancel():void 0;if(ce(s))return null!=s.tolerance&&ne(u,s.tolerance)?this.handleCancel():ne(u,s.distance)?this.handleStart():void 0}e.cancelable&&e.preventDefault(),a(l)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===ie.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const pe={move:{name:"pointermove"},end:{name:"pointerup"}};class he extends fe{constructor(e){const{event:t}=e,n=(0,o.getOwnerDocument)(t.target);super(e,pe,n)}}he.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const me={move:{name:"mousemove"},end:{name:"mouseup"}};var ge;!function(e){e[e.RightClick=2]="RightClick"}(ge||(ge={}));class ve extends fe{constructor(e){super(e,me,(0,o.getOwnerDocument)(e.event.target))}}ve.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==ge.RightClick&&(null==r||r({event:n}),!0)}}];const ye={move:{name:"touchmove"},end:{name:"touchend"}};class be extends fe{constructor(e){super(e,ye)}static setup(){return window.addEventListener(ye.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(ye.move.name,e)};function e(){}}}var we,_e;be.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return!(i.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(we||(we={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(_e||(_e={}));const xe={x:{[H.Backward]:!1,[H.Forward]:!1},y:{[H.Backward]:!1,[H.Forward]:!1}};var ke,Ee;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(ke||(ke={})),function(e){e.Optimized="optimized"}(Ee||(Ee={}));const Se=new Map;function Ce(e,t){return(0,o.useLazyMemo)((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function Te(e){let{callback:t,disabled:n}=e;const i=(0,o.useEvent)(t),a=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(i)}),[n]);return(0,r.useEffect)((()=>()=>null==a?void 0:a.disconnect()),[a]),a}function Oe(e){return new ee(N(e),e)}function Ae(e,t,n){void 0===t&&(t=Oe);const[i,a]=(0,r.useReducer)((function(r){if(!e)return null;var i;if(!1===e.isConnected)return null!=(i=null!=r?r:n)?i:null;const o=t(e);return JSON.stringify(r)===JSON.stringify(o)?r:o}),null),s=function(e){let{callback:t,disabled:n}=e;const i=(0,o.useEvent)(t),a=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(i)}),[i,n]);return(0,r.useEffect)((()=>()=>null==a?void 0:a.disconnect()),[a]),a}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),l=Te({callback:a});return(0,o.useIsomorphicLayoutEffect)((()=>{a(),e?(null==l||l.observe(e),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==l||l.disconnect(),null==s||s.disconnect())}),[e]),i}const Pe=[];function Re(e,t){void 0===t&&(t=[]);const n=(0,r.useRef)(null);return(0,r.useEffect)((()=>{n.current=null}),t),(0,r.useEffect)((()=>{const t=e!==b;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?(0,o.subtract)(e,n.current):b}function De(e){return(0,r.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const Me=[];function Ie(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,o.isHTMLElement)(t)?t:e}const Le=[{sensor:he,options:{}},{sensor:ue,options:{}}],je={current:{}},Ne={draggable:{measure:F},droppable:{measure:F,strategy:ke.WhileDragging,frequency:Ee.Optimized},dragOverlay:{measure:N}};class Fe extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const Be={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Fe,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:g},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ne,measureDroppableContainers:g,windowRect:null,measuringScheduled:!1},ze={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:g,draggableNodes:new Map,over:null,measureDroppableContainers:g},Ue=(0,r.createContext)(ze),qe=(0,r.createContext)(Be);function We(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Fe}}}function $e(e,t){switch(t.type){case m.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case m.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case m.DragEnd:case m.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case m.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new Fe(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case m.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const a=new Fe(e.droppable.containers);return a.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case m.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new Fe(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function He(e){let{disabled:t}=e;const{active:n,activatorEvent:i,draggableNodes:a}=(0,r.useContext)(Ue),s=(0,o.usePrevious)(i),l=(0,o.usePrevious)(null==n?void 0:n.id);return(0,r.useEffect)((()=>{if(!t&&!i&&s&&null!=l){if(!(0,o.isKeyboardEvent)(s))return;if(document.activeElement===s.target)return;const e=a.get(l);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=(0,o.findFirstFocusableNode)(e);if(t){t.focus();break}}}))}}),[i,t,a,l,s]),null}function Ve(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const Ge=(0,r.createContext)({...b,scaleX:1,scaleY:1});var Ke;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Ke||(Ke={}));const Ze=(0,r.memo)((function(e){var t,n,a,s;let{id:l,accessibility:u,autoScroll:d=!0,children:f,sensors:p=Le,collisionDetection:g=P,measuring:v,modifiers:y,...w}=e;const _=(0,r.useReducer)($e,void 0,We),[x,k]=_,[E,C]=function(){const[e]=(0,r.useState)((()=>new Set)),t=(0,r.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]);return[(0,r.useCallback)((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]),t]}(),[T,O]=(0,r.useState)(Ke.Uninitialized),A=T===Ke.Initialized,{draggable:{active:R,nodes:D,translate:L},droppable:{containers:j}}=x,F=R?D.get(R):null,q=(0,r.useRef)({initial:null,translated:null}),W=(0,r.useMemo)((()=>{var e;return null!=R?{id:R,data:null!=(e=null==F?void 0:F.data)?e:je,rect:q}:null}),[R,F]),G=(0,r.useRef)(null),[K,Y]=(0,r.useState)(null),[Q,J]=(0,r.useState)(null),te=(0,o.useLatestValue)(w,Object.values(w)),ne=(0,o.useUniqueId)("DndDescribedBy",l),re=(0,r.useMemo)((()=>j.getEnabled()),[j]),ie=(oe=v,(0,r.useMemo)((()=>({draggable:{...Ne.draggable,...null==oe?void 0:oe.draggable},droppable:{...Ne.droppable,...null==oe?void 0:oe.droppable},dragOverlay:{...Ne.dragOverlay,...null==oe?void 0:oe.dragOverlay}})),[null==oe?void 0:oe.draggable,null==oe?void 0:oe.droppable,null==oe?void 0:oe.dragOverlay]));var oe;const{droppableRects:ae,measureDroppableContainers:se,measuringScheduled:le}=function(e,t){let{dragging:n,dependencies:i,config:a}=t;const[s,l]=(0,r.useState)(null),{frequency:u,measure:c,strategy:d}=a,f=(0,r.useRef)(e),p=function(){switch(d){case ke.Always:return!1;case ke.BeforeDragging:return n;default:return!n}}(),h=(0,o.useLatestValue)(p),m=(0,r.useCallback)((function(e){void 0===e&&(e=[]),h.current||l((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[h]),g=(0,r.useRef)(null),v=(0,o.useLazyMemo)((t=>{if(p&&!n)return Se;if(!t||t===Se||f.current!==e||null!=s){const t=new Map;for(let n of e){if(!n)continue;if(s&&s.length>0&&!s.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new ee(c(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t}),[e,s,n,p,c]);return(0,r.useEffect)((()=>{f.current=e}),[e]),(0,r.useEffect)((()=>{p||m()}),[n,p]),(0,r.useEffect)((()=>{s&&s.length>0&&l(null)}),[JSON.stringify(s)]),(0,r.useEffect)((()=>{p||"number"!=typeof u||null!==g.current||(g.current=setTimeout((()=>{m(),g.current=null}),u))}),[u,p,m,...i]),{droppableRects:v,measureDroppableContainers:m,measuringScheduled:null!=s}}(re,{dragging:A,dependencies:[L.x,L.y],config:ie.droppable}),ue=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return(0,o.useLazyMemo)((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(D,R),ce=(0,r.useMemo)((()=>Q?(0,o.getEventCoordinates)(Q):null),[Q]),de=function(){const e=!1===(null==K?void 0:K.autoScrollEnabled),t="object"==typeof d?!1===d.enabled:!1===d,n=A&&!e&&!t;return"object"==typeof d?{...d,enabled:n}:{enabled:n}}(),fe=function(e,t){return Ce(e,t)}(ue,ie.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:i,config:a=!0}=e;const s=(0,r.useRef)(!1),{x:l,y:u}="boolean"==typeof a?{x:a,y:a}:a;(0,o.useIsomorphicLayoutEffect)((()=>{if(!l&&!u||!t)return void(s.current=!1);if(s.current||!i)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=M(n(e),i);if(l||(r.x=0),u||(r.y=0),s.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=z(e);t&&t.scrollBy({top:r.y,left:r.x})}}),[t,l,u,i,n])}({activeNode:R?D.get(R):null,config:de.layoutShiftCompensation,initialRect:fe,measure:ie.draggable.measure});const pe=Ae(ue,ie.draggable.measure,fe),he=Ae(ue?ue.parentElement:null),me=(0,r.useRef)({activatorEvent:null,active:null,activeNode:ue,collisionRect:null,collisions:null,droppableRects:ae,draggableNodes:D,draggingNode:null,draggingNodeRect:null,droppableContainers:j,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ge=j.getNodeFor(null==(t=me.current.over)?void 0:t.id),ve=function(e){let{measure:t}=e;const[n,i]=(0,r.useState)(null),a=Te({callback:(0,r.useCallback)((e=>{for(const{target:n}of e)if((0,o.isHTMLElement)(n)){i((e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r}));break}}),[t])}),s=(0,r.useCallback)((e=>{const n=Ie(e);null==a||a.disconnect(),n&&(null==a||a.observe(n)),i(n?t(n):null)}),[t,a]),[l,u]=(0,o.useNodeRef)(s);return(0,r.useMemo)((()=>({nodeRef:l,rect:n,setRef:u})),[n,l,u])}({measure:ie.dragOverlay.measure}),ye=null!=(n=ve.nodeRef.current)?n:ue,be=A?null!=(a=ve.rect)?a:pe:null,Ee=Boolean(ve.nodeRef.current&&ve.rect),Oe=M(Fe=Ee?null:pe,Ce(Fe));var Fe;const Be=De(ye?(0,o.getWindow)(ye):null),ze=function(e){const t=(0,r.useRef)(e),n=(0,o.useLazyMemo)((n=>e?n&&n!==Pe&&e&&t.current&&e.parentNode===t.current.parentNode?n:B(e):Pe),[e]);return(0,r.useEffect)((()=>{t.current=e}),[e]),n}(A?null!=ge?ge:ue:null),Ze=function(e,t){void 0===t&&(t=N);const[n]=e,i=De(n?(0,o.getWindow)(n):null),[a,s]=(0,r.useReducer)((function(){return e.length?e.map((e=>V(e)?i:new ee(t(e),e))):Me}),Me),l=Te({callback:s});return e.length>0&&a===Me&&s(),(0,o.useIsomorphicLayoutEffect)((()=>{e.length?e.forEach((e=>null==l?void 0:l.observe(e))):(null==l||l.disconnect(),s())}),[e]),a}(ze),Ye=Ve(y,{transform:{x:L.x-Oe.x,y:L.y-Oe.y,scaleX:1,scaleY:1},activatorEvent:Q,active:W,activeNodeRect:pe,containerNodeRect:he,draggingNodeRect:be,over:me.current.over,overlayNodeRect:ve.rect,scrollableAncestors:ze,scrollableAncestorRects:Ze,windowRect:Be}),Xe=ce?(0,o.add)(ce,L):null,Qe=function(e){const[t,n]=(0,r.useState)(null),i=(0,r.useRef)(e),a=(0,r.useCallback)((e=>{const t=U(e.target);t&&n((e=>e?(e.set(t,$(t)),new Map(e)):null))}),[]);return(0,r.useEffect)((()=>{const t=i.current;if(e!==t){r(t);const o=e.map((e=>{const t=U(e);return t?(t.addEventListener("scroll",a,{passive:!0}),[t,$(t)]):null})).filter((e=>null!=e));n(o.length?new Map(o):null),i.current=e}return()=>{r(e),r(t)};function r(e){e.forEach((e=>{const t=U(e);null==t||t.removeEventListener("scroll",a)}))}}),[a,e]),(0,r.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>(0,o.add)(e,t)),b):X(e):b),[e,t])}(ze),Je=Re(Qe),et=Re(Qe,[pe]),tt=(0,o.add)(Ye,Je),nt=be?I(be,Ye):null,rt=W&&nt?g({active:W,collisionRect:nt,droppableRects:ae,droppableContainers:re,pointerCoordinates:Xe}):null,it=S(rt,"id"),[ot,at]=(0,r.useState)(null),st=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(Ee?Ye:(0,o.add)(Ye,et),null!=(s=null==ot?void 0:ot.rect)?s:null,pe),lt=(0,r.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==G.current)return;const o=D.get(G.current);if(!o)return;const a=e.nativeEvent,s=new n({active:G.current,activeNode:o,event:a,options:r,context:me,onStart(e){const t=G.current;if(null==t)return;const n=D.get(t);if(!n)return;const{onDragStart:r}=te.current,o={active:{id:t,data:n.data,rect:q}};(0,i.unstable_batchedUpdates)((()=>{null==r||r(o),O(Ke.Initializing),k({type:m.DragStart,initialCoordinates:e,active:t}),E({type:"onDragStart",event:o})}))},onMove(e){k({type:m.DragMove,coordinates:e})},onEnd:l(m.DragEnd),onCancel:l(m.DragCancel)});function l(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:o}=me.current;let s=null;if(t&&o){const{cancelDrop:i}=te.current;s={activatorEvent:a,active:t,collisions:n,delta:o,over:r},e===m.DragEnd&&"function"==typeof i&&await Promise.resolve(i(s))&&(e=m.DragCancel)}G.current=null,(0,i.unstable_batchedUpdates)((()=>{k({type:e}),O(Ke.Uninitialized),at(null),Y(null),J(null);const t=e===m.DragEnd?"onDragEnd":"onDragCancel";if(s){const e=te.current[t];null==e||e(s),E({type:t,event:s})}}))}}(0,i.unstable_batchedUpdates)((()=>{Y(s),J(e.nativeEvent)}))}),[D]),ut=(0,r.useCallback)(((e,t)=>(n,r)=>{const i=n.nativeEvent,o=D.get(r);if(null!==G.current||!o||i.dndKit||i.defaultPrevented)return;const a={active:o};!0===e(n,t.options,a)&&(i.dndKit={capturedBy:t.sensor},G.current=r,lt(n,t))}),[D,lt]),ct=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(p,ut);!function(e){(0,r.useEffect)((()=>{if(!o.canUseDOM)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(p),(0,o.useIsomorphicLayoutEffect)((()=>{pe&&T===Ke.Initializing&&O(Ke.Initialized)}),[pe,T]),(0,r.useEffect)((()=>{const{onDragMove:e}=te.current,{active:t,activatorEvent:n,collisions:r,over:o}=me.current;if(!t||!n)return;const a={active:t,activatorEvent:n,collisions:r,delta:{x:tt.x,y:tt.y},over:o};(0,i.unstable_batchedUpdates)((()=>{null==e||e(a),E({type:"onDragMove",event:a})}))}),[tt.x,tt.y]),(0,r.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:o}=me.current;if(!e||null==G.current||!t||!o)return;const{onDragOver:a}=te.current,s=r.get(it),l=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,u={active:e,activatorEvent:t,collisions:n,delta:{x:o.x,y:o.y},over:l};(0,i.unstable_batchedUpdates)((()=>{at(l),null==a||a(u),E({type:"onDragOver",event:u})}))}),[it]),(0,o.useIsomorphicLayoutEffect)((()=>{me.current={activatorEvent:Q,active:W,activeNode:ue,collisionRect:nt,collisions:rt,droppableRects:ae,draggableNodes:D,draggingNode:ye,draggingNodeRect:be,droppableContainers:j,over:ot,scrollableAncestors:ze,scrollAdjustedTranslate:tt},q.current={initial:be,translated:nt}}),[W,ue,rt,nt,D,ye,be,ae,j,ot,ze,tt]),function(e){let{acceleration:t,activator:n=we.Pointer,canScroll:i,draggingRect:a,enabled:s,interval:l=5,order:u=_e.TreeOrder,pointerCoordinates:c,scrollableAncestors:d,scrollableAncestorRects:f,delta:p,threshold:h}=e;const m=function(e){let{delta:t,disabled:n}=e;const r=(0,o.usePrevious)(t);return(0,o.useLazyMemo)((e=>{if(n||!r||!e)return xe;const i=Math.sign(t.x-r.x),o=Math.sign(t.y-r.y);return{x:{[H.Backward]:e.x[H.Backward]||-1===i,[H.Forward]:e.x[H.Forward]||1===i},y:{[H.Backward]:e.y[H.Backward]||-1===o,[H.Forward]:e.y[H.Forward]||1===o}}}),[n,t,r])}({delta:p,disabled:!s}),[g,v]=(0,o.useInterval)(),y=(0,r.useRef)({x:0,y:0}),b=(0,r.useRef)({x:0,y:0}),w=(0,r.useMemo)((()=>{switch(n){case we.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case we.DraggableRect:return a}}),[n,a,c]),_=(0,r.useRef)(null),x=(0,r.useCallback)((()=>{const e=_.current;if(!e)return;const t=y.current.x*b.current.x,n=y.current.y*b.current.y;e.scrollBy(t,n)}),[]),k=(0,r.useMemo)((()=>u===_e.TreeOrder?[...d].reverse():d),[u,d]);(0,r.useEffect)((()=>{if(s&&d.length&&w){for(const e of k){if(!1===(null==i?void 0:i(e)))continue;const n=d.indexOf(e),r=f[n];if(!r)continue;const{direction:o,speed:a}=Z(e,r,w,t,h);for(const e of["x","y"])m[e][o[e]]||(a[e]=0,o[e]=0);if(a.x>0||a.y>0)return v(),_.current=e,g(x,l),y.current=a,void(b.current=o)}y.current={x:0,y:0},b.current={x:0,y:0},v()}else v()}),[t,x,i,v,s,l,JSON.stringify(w),JSON.stringify(m),g,d,k,f,JSON.stringify(h)])}({...de,delta:L,draggingRect:nt,pointerCoordinates:Xe,scrollableAncestors:ze,scrollableAncestorRects:Ze});const dt=(0,r.useMemo)((()=>({active:W,activeNode:ue,activeNodeRect:pe,activatorEvent:Q,collisions:rt,containerNodeRect:he,dragOverlay:ve,draggableNodes:D,droppableContainers:j,droppableRects:ae,over:ot,measureDroppableContainers:se,scrollableAncestors:ze,scrollableAncestorRects:Ze,measuringConfiguration:ie,measuringScheduled:le,windowRect:Be})),[W,ue,pe,Q,rt,he,ve,D,j,ae,ot,se,ze,Ze,ie,le,Be]),ft=(0,r.useMemo)((()=>({activatorEvent:Q,activators:ct,active:W,activeNodeRect:pe,ariaDescribedById:{draggable:ne},dispatch:k,draggableNodes:D,over:ot,measureDroppableContainers:se})),[Q,ct,W,pe,k,ne,D,ot,se]);return r.createElement(c.Provider,{value:C},r.createElement(Ue.Provider,{value:ft},r.createElement(qe.Provider,{value:dt},r.createElement(Ge.Provider,{value:st},f)),r.createElement(He,{disabled:!1===(null==u?void 0:u.restoreFocus)})),r.createElement(h,{...u,hiddenTextDescribedById:ne}))})),Ye=(0,r.createContext)(null),Xe="button",Qe="Droppable";function Je(e){let{id:t,data:n,disabled:i=!1,attributes:a}=e;const s=(0,o.useUniqueId)(Qe),{activators:l,activatorEvent:u,active:c,activeNodeRect:d,ariaDescribedById:f,draggableNodes:p,over:h}=(0,r.useContext)(Ue),{role:m=Xe,roleDescription:g="draggable",tabIndex:v=0}=null!=a?a:{},y=(null==c?void 0:c.id)===t,b=(0,r.useContext)(y?Ge:Ye),[w,_]=(0,o.useNodeRef)(),[x,k]=(0,o.useNodeRef)(),E=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e}),{})),[e,t])}(l,t),S=(0,o.useLatestValue)(n);return(0,o.useIsomorphicLayoutEffect)((()=>(p.set(t,{id:t,key:s,node:w,activatorNode:x,data:S}),()=>{const e=p.get(t);e&&e.key===s&&p.delete(t)})),[p,t]),{active:c,activatorEvent:u,activeNodeRect:d,attributes:(0,r.useMemo)((()=>({role:m,tabIndex:v,"aria-disabled":i,"aria-pressed":!(!y||m!==Xe)||void 0,"aria-roledescription":g,"aria-describedby":f.draggable})),[i,m,v,y,g,f.draggable]),isDragging:y,listeners:i?void 0:E,node:w,over:h,setNodeRef:_,setActivatorNodeRef:k,transform:b}}function et(){return(0,r.useContext)(qe)}const tt="Droppable",nt={timeout:25};function rt(e){let{data:t,disabled:n=!1,id:i,resizeObserverConfig:a}=e;const s=(0,o.useUniqueId)(tt),{active:l,dispatch:u,over:c,measureDroppableContainers:d}=(0,r.useContext)(Ue),f=(0,r.useRef)({disabled:n}),p=(0,r.useRef)(!1),h=(0,r.useRef)(null),g=(0,r.useRef)(null),{disabled:v,updateMeasurementsFor:y,timeout:b}={...nt,...a},w=(0,o.useLatestValue)(null!=y?y:i),_=Te({callback:(0,r.useCallback)((()=>{p.current?(null!=g.current&&clearTimeout(g.current),g.current=setTimeout((()=>{d(Array.isArray(w.current)?w.current:[w.current]),g.current=null}),b)):p.current=!0}),[b]),disabled:v||!l}),x=(0,r.useCallback)(((e,t)=>{_&&(t&&(_.unobserve(t),p.current=!1),e&&_.observe(e))}),[_]),[k,E]=(0,o.useNodeRef)(x),S=(0,o.useLatestValue)(t);return(0,r.useEffect)((()=>{_&&k.current&&(_.disconnect(),p.current=!1,_.observe(k.current))}),[k,_]),(0,o.useIsomorphicLayoutEffect)((()=>(u({type:m.RegisterDroppable,element:{id:i,key:s,disabled:n,node:k,rect:h,data:S}}),()=>u({type:m.UnregisterDroppable,key:s,id:i}))),[i]),(0,r.useEffect)((()=>{n!==f.current.disabled&&(u({type:m.SetDroppableDisabled,id:i,key:s,disabled:n}),f.current.disabled=n)}),[i,s,n,u]),{active:l,rect:h,isOver:(null==c?void 0:c.id)===i,node:k,over:c,setNodeRef:E}}function it(e){let{animation:t,children:n}=e;const[i,a]=(0,r.useState)(null),[s,l]=(0,r.useState)(null),u=(0,o.usePrevious)(n);return n||i||!u||a(u),(0,o.useIsomorphicLayoutEffect)((()=>{if(!s)return;const e=null==i?void 0:i.key,n=null==i?void 0:i.props.id;null!=e&&null!=n?Promise.resolve(t(n,s)).then((()=>{a(null)})):a(null)}),[t,i,s]),r.createElement(r.Fragment,null,n,i?(0,r.cloneElement)(i,{ref:l}):null)}const ot={x:0,y:0,scaleX:1,scaleY:1};function at(e){let{children:t}=e;return r.createElement(Ue.Provider,{value:ze},r.createElement(Ge.Provider,{value:ot},t))}const st={position:"fixed",touchAction:"none"},lt=e=>(0,o.isKeyboardEvent)(e)?"transform 250ms ease":void 0,ut=(0,r.forwardRef)(((e,t)=>{let{as:n,activatorEvent:i,adjustScale:a,children:s,className:l,rect:u,style:c,transform:d,transition:f=lt}=e;if(!u)return null;const p=a?d:{...d,scaleX:1,scaleY:1},h={...st,width:u.width,height:u.height,top:u.top,left:u.left,transform:o.CSS.Transform.toString(p),transformOrigin:a&&i?_(i,u):void 0,transition:"function"==typeof f?f(i):f,...c};return r.createElement(n,{className:l,style:h,ref:t},s)})),ct=e=>t=>{let{active:n,dragOverlay:r}=t;const i={},{styles:o,className:a}=e;if(null!=o&&o.active)for(const[e,t]of Object.entries(o.active))void 0!==t&&(i[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=o&&o.dragOverlay)for(const[e,t]of Object.entries(o.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[e,t]of Object.entries(i))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}},dt={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:o.CSS.Transform.toString(t)},{transform:o.CSS.Transform.toString(n)}]},sideEffects:ct({styles:{active:{opacity:"0"}}})};let ft=0;const pt=r.memo((e=>{let{adjustScale:t=!1,children:n,dropAnimation:i,style:a,transition:s,modifiers:l,wrapperElement:u="div",className:c,zIndex:d=999}=e;const{activatorEvent:f,active:p,activeNodeRect:h,containerNodeRect:m,draggableNodes:g,droppableContainers:v,dragOverlay:y,over:b,measuringConfiguration:w,scrollableAncestors:_,scrollableAncestorRects:x,windowRect:k}=et(),E=(0,r.useContext)(Ge),S=function(e){return(0,r.useMemo)((()=>{if(null!=e)return ft++,ft}),[e])}(null==p?void 0:p.id),C=Ve(l,{activatorEvent:f,active:p,activeNodeRect:h,containerNodeRect:m,draggingNodeRect:y.rect,over:b,overlayNodeRect:y.rect,scrollableAncestors:_,scrollableAncestorRects:x,transform:E,windowRect:k}),T=Ce(h),O=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return(0,o.useEvent)(((e,a)=>{if(null===t)return;const s=n.get(e);if(!s)return;const l=s.node.current;if(!l)return;const u=Ie(a);if(!u)return;const{transform:c}=(0,o.getWindow)(a).getComputedStyle(a),d=L(c);if(!d)return;const f="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:i}={...dt,...e};return e=>{let{active:o,dragOverlay:a,transform:s,...l}=e;if(!t)return;const u=a.rect.left-o.rect.left,c=a.rect.top-o.rect.top,d={scaleX:1!==s.scaleX?o.rect.width*s.scaleX/a.rect.width:1,scaleY:1!==s.scaleY?o.rect.height*s.scaleY/a.rect.height:1},f={x:s.x-u,y:s.y-c,...d},p=i({...l,active:o,dragOverlay:a,transform:{initial:s,final:f}}),[h]=p,m=p[p.length-1];if(JSON.stringify(h)===JSON.stringify(m))return;const g=null==r?void 0:r({active:o,dragOverlay:a,...l}),v=a.node.animate(p,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{v.onfinish=()=>{null==g||g(),e()}}))}}(t);return Q(l,i.draggable.measure),f({active:{id:e,data:s.data,node:l,rect:i.draggable.measure(l)},draggableNodes:n,dragOverlay:{node:a,rect:i.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:i,transform:d})}))}({config:i,draggableNodes:g,droppableContainers:v,measuringConfiguration:w}),A=T?y.setRef:void 0;return r.createElement(at,null,r.createElement(it,{animation:O},p&&S?r.createElement(ut,{key:S,id:p.id,ref:A,as:u,activatorEvent:f,adjustScale:t,className:c,transition:s,rect:T,style:{zIndex:d,...a},transform:C},n):null))}))},88366:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createSnapModifier:()=>i,restrictToFirstScrollableAncestor:()=>l,restrictToHorizontalAxis:()=>o,restrictToParentElement:()=>s,restrictToVerticalAxis:()=>u,restrictToWindowEdges:()=>c,snapCenterToCursor:()=>d});var r=n(82851);function i(e){return t=>{let{transform:n}=t;return{...n,x:Math.ceil(n.x/e)*e,y:Math.ceil(n.y/e)*e}}}const o=e=>{let{transform:t}=e;return{...t,y:0}};function a(e,t,n){const r={...e};return t.top+e.y<=n.top?r.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(r.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?r.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(r.x=n.left+n.width-t.right),r}const s=e=>{let{containerNodeRect:t,draggingNodeRect:n,transform:r}=e;return n&&t?a(r,n,t):r},l=e=>{let{draggingNodeRect:t,transform:n,scrollableAncestorRects:r}=e;const i=r[0];return t&&i?a(n,t,i):n},u=e=>{let{transform:t}=e;return{...t,x:0}},c=e=>{let{transform:t,draggingNodeRect:n,windowRect:r}=e;return n&&r?a(t,n,r):t},d=e=>{let{activatorEvent:t,draggingNodeRect:n,transform:i}=e;if(n&&t){const e=(0,r.getEventCoordinates)(t);if(!e)return i;const o=e.x-n.left,a=e.y-n.top;return{...i,x:i.x+o-n.width/2,y:i.y+a-n.height/2}}return i}},66548:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SortableContext:()=>y,arrayMove:()=>a,arraySwap:()=>s,defaultAnimateLayoutChanges:()=>w,defaultNewIndexGetter:()=>b,hasSortableData:()=>C,horizontalListSortingStrategy:()=>d,rectSortingStrategy:()=>f,rectSwappingStrategy:()=>p,sortableKeyboardCoordinates:()=>O,useSortable:()=>S,verticalListSortingStrategy:()=>m});var r=n(2784),i=n(61540),o=n(82851);function a(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function s(e,t,n){const r=e.slice();return r[t]=e[n],r[n]=e[t],r}function l(e,t){return e.reduce(((e,n,r)=>{const i=t.get(n);return i&&(e[r]=i),e}),Array(e.length))}function u(e){return null!==e&&e>=0}const c={scaleX:1,scaleY:1},d=e=>{var t;let{rects:n,activeNodeRect:r,activeIndex:i,overIndex:o,index:a}=e;const s=null!=(t=n[i])?t:r;if(!s)return null;const l=function(e,t,n){const r=e[t],i=e[t-1],o=e[t+1];return r&&(i||o)?ni&&a<=o?{x:-s.width-l,y:0,...c}:a=o?{x:s.width+l,y:0,...c}:{x:0,y:0,...c}},f=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=a(t,r,n),s=t[i],l=o[i];return l&&s?{x:l.left-s.left,y:l.top-s.top,scaleX:l.width/s.width,scaleY:l.height/s.height}:null},p=e=>{let t,n,{activeIndex:r,index:i,rects:o,overIndex:a}=e;return i===r&&(t=o[i],n=o[a]),i===a&&(t=o[i],n=o[r]),n&&t?{x:n.left-t.left,y:n.top-t.top,scaleX:n.width/t.width,scaleY:n.height/t.height}:null},h={scaleX:1,scaleY:1},m=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:i,rects:o,overIndex:a}=e;const s=null!=(t=o[n])?t:r;if(!s)return null;if(i===n){const e=o[a];return e?{x:0,y:nn&&i<=a?{x:0,y:-s.height-l,...h}:i=a?{x:0,y:s.height+l,...h}:{x:0,y:0,...h}},g="Sortable",v=r.createContext({activeIndex:-1,containerId:g,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:f,disabled:{draggable:!1,droppable:!1}});function y(e){let{children:t,id:n,items:a,strategy:s=f,disabled:u=!1}=e;const{active:c,dragOverlay:d,droppableRects:p,over:h,measureDroppableContainers:m}=(0,i.useDndContext)(),y=(0,o.useUniqueId)(g,n),b=Boolean(null!==d.rect),w=(0,r.useMemo)((()=>a.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[a]),_=null!=c,x=c?w.indexOf(c.id):-1,k=h?w.indexOf(h.id):-1,E=(0,r.useRef)(w),S=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{S&&_&&m(w)}),[S,w,_,m]),(0,r.useEffect)((()=>{E.current=w}),[w]);const O=(0,r.useMemo)((()=>({activeIndex:x,containerId:y,disabled:T,disableTransforms:C,items:w,overIndex:k,useDragOverlay:b,sortedRects:l(w,p),strategy:s})),[x,y,T.draggable,T.droppable,C,w,k,p,b,s]);return r.createElement(v.Provider,{value:O},t)}const b=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return a(n,r,i).indexOf(t)},w=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:a,previousItems:s,previousContainerId:l,transition:u}=e;return!(!u||!r||s!==o&&i===a||!n&&(a===i||t!==l))},_={duration:200,easing:"ease"},x="transform",k=o.CSS.Transition.toString({property:x,duration:0,easing:"linear"}),E={roleDescription:"sortable"};function S(e){let{animateLayoutChanges:t=w,attributes:n,disabled:a,data:s,getNewIndex:l=b,id:c,strategy:d,resizeObserverConfig:f,transition:p=_}=e;const{items:h,containerId:m,activeIndex:g,disabled:y,disableTransforms:S,sortedRects:C,overIndex:T,useDragOverlay:O,strategy:A}=(0,r.useContext)(v),P=function(e,t){var n,r;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(a,y),R=h.indexOf(c),D=(0,r.useMemo)((()=>({sortable:{containerId:m,index:R,items:h},...s})),[m,s,R,h]),M=(0,r.useMemo)((()=>h.slice(h.indexOf(c))),[h,c]),{rect:I,node:L,isOver:j,setNodeRef:N}=(0,i.useDroppable)({id:c,data:D,disabled:P.droppable,resizeObserverConfig:{updateMeasurementsFor:M,...f}}),{active:F,activatorEvent:B,activeNodeRect:z,attributes:U,setNodeRef:q,listeners:W,isDragging:$,over:H,setActivatorNodeRef:V,transform:G}=(0,i.useDraggable)({id:c,data:D,attributes:{...E,...n},disabled:P.draggable}),K=(0,o.useCombinedRefs)(N,q),Z=Boolean(F),Y=Z&&!S&&u(g)&&u(T),X=!O&&$,Q=X&&Y?G:null,J=Y?null!=Q?Q:(null!=d?d:A)({rects:C,activeNodeRect:z,activeIndex:g,overIndex:T,index:R}):null,ee=u(g)&&u(T)?l({id:c,items:h,activeIndex:g,overIndex:T}):R,te=null==F?void 0:F.id,ne=(0,r.useRef)({activeId:te,items:h,newIndex:ee,containerId:m}),re=h!==ne.current.items,ie=t({active:F,containerId:m,isDragging:$,isSorting:Z,id:c,index:R,items:h,newIndex:ne.current.newIndex,previousItems:ne.current.items,previousContainerId:ne.current.containerId,transition:p,wasDragging:null!=ne.current.activeId}),oe=function(e){let{disabled:t,index:n,node:a,rect:s}=e;const[l,u]=(0,r.useState)(null),c=(0,r.useRef)(n);return(0,o.useIsomorphicLayoutEffect)((()=>{if(!t&&n!==c.current&&a.current){const e=s.current;if(e){const t=(0,i.getClientRect)(a.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&u(n)}}n!==c.current&&(c.current=n)}),[t,n,a,s]),(0,r.useEffect)((()=>{l&&u(null)}),[l]),l}({disabled:!ie,index:R,node:L,rect:I});return(0,r.useEffect)((()=>{Z&&ne.current.newIndex!==ee&&(ne.current.newIndex=ee),m!==ne.current.containerId&&(ne.current.containerId=m),h!==ne.current.items&&(ne.current.items=h)}),[Z,ee,m,h]),(0,r.useEffect)((()=>{if(te===ne.current.activeId)return;if(te&&!ne.current.activeId)return void(ne.current.activeId=te);const e=setTimeout((()=>{ne.current.activeId=te}),50);return()=>clearTimeout(e)}),[te]),{active:F,activeIndex:g,attributes:U,data:D,rect:I,index:R,newIndex:ee,items:h,isOver:j,isSorting:Z,isDragging:$,listeners:W,node:L,overIndex:T,over:H,setNodeRef:K,setActivatorNodeRef:V,setDroppableNodeRef:N,setDraggableNodeRef:q,transform:null!=oe?oe:J,transition:oe||re&&ne.current.newIndex===R?k:X&&!(0,o.isKeyboardEvent)(B)||!p?void 0:Z||ie?o.CSS.Transition.toString({...p,property:x}):void 0}}function C(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const T=[i.KeyboardCode.Down,i.KeyboardCode.Right,i.KeyboardCode.Up,i.KeyboardCode.Left],O=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:a,droppableContainers:s,over:l,scrollableAncestors:u}}=t;if(T.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[];s.getEnabled().forEach((n=>{if(!n||null!=n&&n.disabled)return;const o=a.get(n.id);if(o)switch(e.code){case i.KeyboardCode.Down:r.topo.top&&t.push(n);break;case i.KeyboardCode.Left:r.left>o.left&&t.push(n);break;case i.KeyboardCode.Right:r.left1&&(p=f[1].id),null!=p){const e=s.get(n.id),t=s.get(p),l=t?a.get(t.id):null,f=null==t?void 0:t.node.current;if(f&&l&&e&&t){const n=(0,i.getScrollableAncestors)(f).some(((e,t)=>u[t]!==e)),a=A(e,t),s=(d=t,!(!C(c=e)||!C(d))&&!!A(c,d)&&c.data.current.sortable.index{"use strict";n.r(t),n.d(t,{CSS:()=>A,add:()=>k,canUseDOM:()=>o,findFirstFocusableNode:()=>R,getEventCoordinates:()=>O,getOwnerDocument:()=>f,getWindow:()=>l,hasViewportRelativeCoordinates:()=>S,isDocument:()=>u,isHTMLElement:()=>c,isKeyboardEvent:()=>C,isNode:()=>s,isSVGElement:()=>d,isTouchEvent:()=>T,isWindow:()=>a,subtract:()=>E,useCombinedRefs:()=>i,useEvent:()=>h,useInterval:()=>m,useIsomorphicLayoutEffect:()=>p,useLatestValue:()=>g,useLazyMemo:()=>v,useNodeRef:()=>y,usePrevious:()=>b,useUniqueId:()=>_});var r=n(2784);function i(){for(var e=arguments.length,t=new Array(e),n=0;ne=>{t.forEach((t=>t(e)))}),t)}const o="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function a(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function s(e){return"nodeType"in e}function l(e){var t,n;return e?a(e)?e:s(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function u(e){const{Document:t}=l(e);return e instanceof t}function c(e){return!a(e)&&e instanceof l(e).HTMLElement}function d(e){return e instanceof l(e).SVGElement}function f(e){return e?a(e)?e.document:s(e)?u(e)?e:c(e)?e.ownerDocument:document:document:document}const p=o?r.useLayoutEffect:r.useEffect;function h(e){const t=(0,r.useRef)(e);return p((()=>{t.current=e})),(0,r.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r{e.current=setInterval(t,n)}),[]),(0,r.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}function g(e,t){void 0===t&&(t=[e]);const n=(0,r.useRef)(e);return p((()=>{n.current!==e&&(n.current=e)}),t),n}function v(e,t){const n=(0,r.useRef)();return(0,r.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function y(e){const t=h(e),n=(0,r.useRef)(null),i=(0,r.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,i]}function b(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}let w={};function _(e,t){return(0,r.useMemo)((()=>{if(t)return t;const n=null==w[e]?0:w[e]+1;return w[e]=n,e+"-"+n}),[e,t])}function x(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{const r=Object.entries(n);for(const[n,i]of r){const r=t[n];null!=r&&(t[n]=r+e*i)}return t}),{...t})}}const k=x(1),E=x(-1);function S(e){return"clientX"in e&&"clientY"in e}function C(e){if(!e)return!1;const{KeyboardEvent:t}=l(e.target);return t&&e instanceof t}function T(e){if(!e)return!1;const{TouchEvent:t}=l(e.target);return t&&e instanceof t}function O(e){if(T(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return S(e)?{x:e.clientX,y:e.clientY}:null}const A=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[A.Translate.toString(e),A.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),P="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function R(e){return e.matches(P)?e:e.querySelector(P)}},39721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>re});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?c(w,--y):0,g--,10===b&&(g=1,m--),b}function E(){return b=y2||O(b)>3?"":" "}function M(e,t){for(;--t&&E()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return T(e,C()+(t<6&&32==S()&&32==E()))}function I(e){for(;E();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&I(b);break;case 40:41===e&&I(e);break;case 92:E()}return y}function L(e,t){for(;E()&&e+b!==57&&(e+b!==84||47!==S()););return"/*"+T(t,y-1)+"*"+o(47===e?e:E())}function j(e){for(;!O(S());)E();return T(e,y)}var N="-ms-",F="-moz-",B="-webkit-",z="comm",U="rule",q="decl",W="@keyframes";function $(e,t){for(var n="",r=p(e),i=0;i0&&f(F)-v&&h(b>32?Y(F+";",r,n,v-1):Y(l(F," ","")+";",r,n,v-2),p);break;case 59:F+=";";default:if(h(N=K(F,t,n,m,g,i,d,A,P=[],I=[],v),a),123===O)if(0===g)G(F,t,N,N,P,a,v,d,I);else switch(99===y&&110===c(F,3)?100:y){case 100:case 108:case 109:case 115:G(e,N,N,r&&h(K(e,N,N,0,0,i,d,A,i,P=[],v),I),i,I,v,d,r?P:I);break;default:G(F,N,N,N,[""],I,0,d,I)}}m=g=b=0,_=T=1,A=F="",v=s;break;case 58:v=1+f(F),b=w;default:if(_<1)if(123==O)--_;else if(125==O&&0==_++&&125==k())continue;switch(F+=o(O),O*_){case 38:T=g>0?1:(F+="\f",-1);break;case 44:d[m++]=(f(F)-1)*T,T=1;break;case 64:45===S()&&(F+=R(E())),y=S(),g=v=f(A=F+=j(C())),O++;break;case 45:45===w&&2==f(F)&&(_=0)}}return a}function K(e,t,n,r,o,a,u,c,f,h,m){for(var g=o-1,v=0===o?a:[""],y=p(v),b=0,w=0,x=0;b0?v[k]+" "+E:l(E,/&\f/g,v[k])))&&(f[x++]=S);return _(e,t,n,0===o?U:c,f,h,m)}function Z(e,t,n){return _(e,t,n,z,o(b),d(e,2,-2),0)}function Y(e,t,n,r){return _(e,t,n,q,d(e,0,r),d(e,r+1,-1),r)}var X=function(e,t,n){for(var r=0,i=0;r=i,i=S(),38===r&&12===i&&(t[n]=1),!O(i);)E();return T(e,y)},Q=new WeakMap,J=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Q.get(n))&&!r){Q.set(e,!0);for(var i=[],a=function(e,t){return P(function(e,t){var n=-1,r=44;do{switch(O(r)){case 0:38===r&&12===S()&&(t[n]=1),e[n]+=X(y-1,t,n);break;case 2:e[n]+=R(r);break;case 4:if(44===r){e[++n]=58===S()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}}while(r=E());return e}(A(e),t))}(t,i),s=n.props,l=0,u=0;l6)switch(c(e,t+1)){case 109:if(45!==c(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+F+(108==c(e,t+3)?"$3":"$2-$3"))+e;case 115:return~u(e,"stretch")?te(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==c(e,t+1))break;case 6444:switch(c(e,f(e)-3-(~u(e,"!important")&&10))){case 107:return l(e,":",":"+B)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(45===c(e,14)?"inline-":"")+"box$3$1"+B+"$2$3$1"+N+"$2box$3")+e}break;case 5936:switch(c(e,t+11)){case 114:return B+e+N+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+N+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+N+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+N+e+e}return e}var ne=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case q:e.return=te(e.value,e.length);break;case W:return $([x(e,{value:l(e.value,"@","@"+B)})],r);case U:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return $([x(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return $([x(e,{props:[l(t,/:(plac\w+)/,":"+B+"input-$1")]}),x(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),x(e,{props:[l(t,/:(plac\w+)/,N+"input-$1")]})],r)}return""}))}}],re=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i,o,a=e.stylisPlugins||ne,s={},l=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{Z:()=>r})},33895:(e,t,n)=>{"use strict";n.d(t,{C:()=>g,E:()=>T,T:()=>b,_:()=>v,a:()=>x,b:()=>k,c:()=>S,h:()=>h,i:()=>p,u:()=>w,w:()=>y});var r=n(2784),i=n(39721),o=n(7896),a=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},s=n(73463),l=n.n(s),u=function(e,t){return l()(e,t)},c=n(82792),d=n(44188),f=n(82668),p=!0,h={}.hasOwnProperty,m=r.createContext("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null),g=m.Provider,v=function(){return(0,r.useContext)(m)},y=function(e){return(0,r.forwardRef)((function(t,n){var i=(0,r.useContext)(m);return e(t,i,n)}))};p||(y=function(e){return function(t){var n=(0,r.useContext)(m);return null===n?(n=(0,i.Z)({key:"css"}),r.createElement(m.Provider,{value:n},e(t,n))):e(t,n)}});var b=r.createContext({}),w=function(){return r.useContext(b)},_=a((function(e){return a((function(t){return function(e,t){return"function"==typeof t?t(e):(0,o.Z)({},e,t)}(e,t)}))})),x=function(e){var t=r.useContext(b);return e.theme!==t&&(t=_(t)(e.theme)),r.createElement(b.Provider,{value:t},e.children)};function k(e){var t=e.displayName||e.name||"Component",n=r.forwardRef((function(t,n){var i=r.useContext(b);return r.createElement(e,(0,o.Z)({theme:i,ref:n},t))}));return n.displayName="WithTheme("+t+")",u(n,e)}var E="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",S=function(e,t){var n={};for(var r in t)h.call(t,r)&&(n[r]=t[r]);return n[E]=e,n},C=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,c.hC)(t,n,r),(0,f.L)((function(){return(0,c.My)(t,n,r)})),null},T=y((function(e,t,n){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var o=e[E],a=[i],s="";"string"==typeof e.className?s=(0,c.fp)(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var l=(0,d.O)(a,void 0,r.useContext(b));s+=t.key+"-"+l.name;var u={};for(var f in e)h.call(e,f)&&"css"!==f&&f!==E&&(u[f]=e[f]);return u.ref=n,u.className=s,r.createElement(r.Fragment,null,r.createElement(C,{cache:t,serialized:l,isStringTag:"string"==typeof o}),r.createElement(o,u))}))},28165:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CacheProvider:()=>r.C,ClassNames:()=>h,Global:()=>u,ThemeContext:()=>r.T,ThemeProvider:()=>r.a,__unsafe_useEmotionCache:()=>r._,createElement:()=>l,css:()=>c,jsx:()=>l,keyframes:()=>d,useTheme:()=>r.u,withEmotionCache:()=>r.w,withTheme:()=>r.b});var r=n(33895),i=n(2784),o=n(82792),a=n(82668),s=n(44188),l=(n(39721),n(73463),function(e,t){var n=arguments;if(null==t||!r.h.call(t,"css"))return i.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=r.E,a[1]=(0,r.c)(e,t);for(var s=2;s{"use strict";n.d(t,{O:()=>h});var r={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},i=n(86894),o=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!=typeof e},u=(0,i.Z)((function(e){return s(e)?e:e.replace(o,"-$&").toLowerCase()})),c=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(a,(function(e,t,n){return f={name:t,styles:n,next:f},t}))}return 1===r[e]||s(e)||"number"!=typeof t||0===t?t:t+"px"};function d(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return f={name:n.name,styles:n.styles,next:f},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)f={name:r.name,styles:r.styles,next:f},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:u,styles:i,next:f}}},70894:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r=n(7896),i=n(2784),o=n(86894),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|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|enterKeyHint|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|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|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)-.*))$/,s=(0,o.Z)((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(33895),u=n(82792),c=n(44188),d=n(82668),f=s,p=function(e){return"theme"!==e},h=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?f:p},m=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,u.hC)(t,n,r),(0,d.L)((function(){return(0,u.My)(t,n,r)})),null},v=function e(t,n){var o,a,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==n&&(o=n.label,a=n.target);var f=m(t,n,s),p=f||h(d),v=!p("as");return function(){var y=arguments,b=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&b.push("label:"+o+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{b.push(y[0][0]);for(var w=y.length,_=1;_{"use strict";var r;n.d(t,{L:()=>a,j:()=>s});var i=n(2784),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},82792:(e,t,n)=>{"use strict";function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}n.d(t,{My:()=>o,fp:()=>r,hC:()=>i});var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}},55034:(e,t,n)=>{"use strict";const r=n(11976),i=n.g.Date;class o extends i{constructor(e){super(e),this.isDate=!0}toISOString(){return`${this.getUTCFullYear()}-${r(2,this.getUTCMonth()+1)}-${r(2,this.getUTCDate())}`}}e.exports=e=>{const t=new o(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}},59697:(e,t,n)=>{"use strict";const r=n(11976);class i extends Date{constructor(e){super(e+"Z"),this.isFloating=!0}toISOString(){return`${this.getUTCFullYear()}-${r(2,this.getUTCMonth()+1)}-${r(2,this.getUTCDate())}T${r(2,this.getUTCHours())}:${r(2,this.getUTCMinutes())}:${r(2,this.getUTCSeconds())}.${r(3,this.getUTCMilliseconds())}`}}e.exports=e=>{const t=new i(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}},12446:e=>{"use strict";e.exports=e=>{const t=new Date(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}},70256:(e,t,n)=>{"use strict";const r=n(11976);class i extends Date{constructor(e){super(`0000-01-01T${e}Z`),this.isTime=!0}toISOString(){return`${r(2,this.getUTCHours())}:${r(2,this.getUTCMinutes())}:${r(2,this.getUTCSeconds())}.${r(3,this.getUTCMilliseconds())}`}}e.exports=e=>{const t=new i(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}},11976:e=>{"use strict";e.exports=(e,t)=>{for(t=String(t);t.length{"use strict";const t=1114112;class n extends Error{constructor(e,t,r){super("[ParserError] "+e,t,r),this.name="ParserError",this.code="ParserError",Error.captureStackTrace&&Error.captureStackTrace(this,n)}}class r{constructor(e){this.parser=e,this.buf="",this.returned=null,this.result=null,this.resultTable=null,this.resultArr=null}}class i{constructor(){this.pos=0,this.col=0,this.line=0,this.obj={},this.ctx=this.obj,this.stack=[],this._buf="",this.char=null,this.ii=0,this.state=new r(this.parseStart)}parse(e){if(0===e.length||null==e.length)return;let t;for(this._buf=String(e),this.ii=-1,this.char=-1;!1===t||this.nextChar();)t=this.runOne();this._buf=null}nextChar(){return 10===this.char&&(++this.line,this.col=-1),++this.ii,this.char=this._buf.codePointAt(this.ii),++this.pos,++this.col,this.haveBuffer()}haveBuffer(){return this.ii{"use strict";module.exports=makeParserClass(__webpack_require__(86056)),module.exports.makeParserClass=makeParserClass;class TomlError extends Error{constructor(e){super(e),this.name="TomlError",Error.captureStackTrace&&Error.captureStackTrace(this,TomlError),this.fromTOML=!0,this.wrapped=null}}TomlError.wrap=e=>{const t=new TomlError(e.message);return t.code=e.code,t.wrapped=e,t},module.exports.TomlError=TomlError;const createDateTime=__webpack_require__(12446),createDateTimeFloat=__webpack_require__(59697),createDate=__webpack_require__(55034),createTime=__webpack_require__(70256),CTRL_I=9,CTRL_J=10,CTRL_M=13,CTRL_CHAR_BOUNDARY=31,CHAR_SP=32,CHAR_QUOT=34,CHAR_NUM=35,CHAR_APOS=39,CHAR_PLUS=43,CHAR_COMMA=44,CHAR_HYPHEN=45,CHAR_PERIOD=46,CHAR_0=48,CHAR_1=49,CHAR_7=55,CHAR_9=57,CHAR_COLON=58,CHAR_EQUALS=61,CHAR_A=65,CHAR_E=69,CHAR_F=70,CHAR_T=84,CHAR_U=85,CHAR_Z=90,CHAR_LOWBAR=95,CHAR_a=97,CHAR_b=98,CHAR_e=101,CHAR_f=102,CHAR_i=105,CHAR_l=108,CHAR_n=110,CHAR_o=111,CHAR_r=114,CHAR_s=115,CHAR_t=116,CHAR_u=117,CHAR_x=120,CHAR_z=122,CHAR_LCUB=123,CHAR_RCUB=125,CHAR_LSQB=91,CHAR_BSOL=92,CHAR_RSQB=93,CHAR_DEL=127,SURROGATE_FIRST=55296,SURROGATE_LAST=57343,escapes={[CHAR_b]:"\b",[CHAR_t]:"\t",[CHAR_n]:"\n",[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit(e){return e>=CHAR_0&&e<=CHAR_9}function isHexit(e){return e>=CHAR_A&&e<=CHAR_F||e>=CHAR_a&&e<=CHAR_f||e>=CHAR_0&&e<=CHAR_9}function isBit(e){return e===CHAR_1||e===CHAR_0}function isOctit(e){return e>=CHAR_0&&e<=CHAR_7}function isAlphaNumQuoteHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_APOS||e===CHAR_QUOT||e===CHAR_LOWBAR||e===CHAR_HYPHEN}function isAlphaNumHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_LOWBAR||e===CHAR_HYPHEN}const _type=Symbol("type"),_declared=Symbol("declared"),hasOwnProperty=Object.prototype.hasOwnProperty,defineProperty=Object.defineProperty,descriptor={configurable:!0,enumerable:!0,writable:!0,value:void 0};function hasKey(e,t){return!!hasOwnProperty.call(e,t)||("__proto__"===t&&defineProperty(e,"__proto__",descriptor),!1)}const INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}function isInlineTable(e){return null!==e&&"object"==typeof e&&e[_type]===INLINE_TABLE}const TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:!1,writable:!0}})}function isTable(e){return null!==e&&"object"==typeof e&&e[_type]===TABLE}const _contentType=Symbol("content-type"),INLINE_LIST=Symbol("inline-list");function InlineList(e){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:e}})}function isInlineList(e){return null!==e&&"object"==typeof e&&e[_type]===INLINE_LIST}const LIST=Symbol("list");function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}function isList(e){return null!==e&&"object"==typeof e&&e[_type]===LIST}let _custom;try{const utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch(e){}const _inspect=_custom||"inspect";class BoxedBigInt{constructor(e){try{this.value=__webpack_require__.g.BigInt.asIntN(64,e)}catch(e){this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return null===this.value}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}}const INTEGER=Symbol("integer");function Integer(e){let t=Number(e);return Object.is(t,-0)&&(t=0),__webpack_require__.g.BigInt&&!Number.isSafeInteger(t)?new BoxedBigInt(e):Object.defineProperties(new Number(t),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${e}]`}})}function isInteger(e){return null!==e&&"object"==typeof e&&e[_type]===INTEGER}const FLOAT=Symbol("float");function Float(e){return Object.defineProperties(new Number(e),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${e}]`}})}function isFloat(e){return null!==e&&"object"==typeof e&&e[_type]===FLOAT}function tomlType(e){const t=typeof e;if("object"===t){if(null===e)return"null";if(e instanceof Date)return"datetime";if(_type in e)switch(e[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}return t}function makeParserClass(e){return class extends e{constructor(){super(),this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===e.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===e.END)return null;if(this.char===CHAR_LSQB)return this.call(this.parseTableOrList);if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(isAlphaNumQuoteHyphen(this.char))return this.callNow(this.parseAssignStatement);throw this.error(new TomlError(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(this.char===CHAR_NUM)return this.goto(this.parseComment);if(this.char===e.END||this.char===CTRL_J)return this.return();throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(e){let t=this.ctx,n=e.key.pop();for(let n of e.key){if(hasKey(t,n)&&(!isTable(t[n])||t[n][_declared]))throw this.error(new TomlError("Can't redefine existing key"));t=t[n]=t[n]||Table()}if(hasKey(t,n))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(e.value)||isFloat(e.value)?t[n]=e.value.valueOf():t[n]=e.value,this.goto(this.parseWhitespaceToEOL)}parseAssign(){return this.callNow(this.parseKeyword,this.recordAssignKeyword)}recordAssignKeyword(e){return this.state.resultTable?this.state.resultTable.push(e):this.state.resultTable=[e],this.goto(this.parseAssignKeywordPreDot)}parseAssignKeywordPreDot(){return this.char===CHAR_PERIOD?this.next(this.parseAssignKeywordPostDot):this.char!==CHAR_SP&&this.char!==CTRL_I?this.goto(this.parseAssignEqual):void 0}parseAssignKeywordPostDot(){if(this.char!==CHAR_SP&&this.char!==CTRL_I)return this.callNow(this.parseKeyword,this.recordAssignKeyword)}parseAssignEqual(){if(this.char===CHAR_EQUALS)return this.next(this.parseAssignPreValue);throw this.error(new TomlError('Invalid character, expected "="'))}parseAssignPreValue(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseValue,this.recordAssignValue)}recordAssignValue(e){return this.returnNow({key:this.state.resultTable,value:e})}parseComment(){do{if(this.char===e.END||this.char===CTRL_J)return this.return()}while(this.nextChar())}parseTableOrList(){if(this.char!==CHAR_LSQB)return this.goto(this.parseTable);this.next(this.parseList)}parseTable(){return this.ctx=this.obj,this.goto(this.parseTableNext)}parseTableNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseTableMore)}parseTableMore(e){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,e)&&(!isTable(this.ctx[e])||this.ctx[e][_declared]))throw this.error(new TomlError("Can't redefine existing key"));return this.ctx=this.ctx[e]=this.ctx[e]||Table(),this.ctx[_declared]=!0,this.next(this.parseWhitespaceToEOL)}if(this.char===CHAR_PERIOD){if(hasKey(this.ctx,e))if(isTable(this.ctx[e]))this.ctx=this.ctx[e];else{if(!isList(this.ctx[e]))throw this.error(new TomlError("Can't redefine existing key"));this.ctx=this.ctx[e][this.ctx[e].length-1]}else this.ctx=this.ctx[e]=Table();return this.next(this.parseTableNext)}throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseList(){return this.ctx=this.obj,this.goto(this.parseListNext)}parseListNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseListMore)}parseListMore(e){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,e)||(this.ctx[e]=List()),isInlineList(this.ctx[e]))throw this.error(new TomlError("Can't extend an inline array"));if(!isList(this.ctx[e]))throw this.error(new TomlError("Can't redefine an existing key"));{const t=Table();this.ctx[e].push(t),this.ctx=t}return this.next(this.parseListEnd)}if(this.char===CHAR_PERIOD){if(hasKey(this.ctx,e)){if(isInlineList(this.ctx[e]))throw this.error(new TomlError("Can't extend an inline array"));if(isInlineTable(this.ctx[e]))throw this.error(new TomlError("Can't extend an inline table"));if(isList(this.ctx[e]))this.ctx=this.ctx[e][this.ctx[e].length-1];else{if(!isTable(this.ctx[e]))throw this.error(new TomlError("Can't redefine an existing key"));this.ctx=this.ctx[e]}}else this.ctx=this.ctx[e]=Table();return this.next(this.parseListNext)}throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseListEnd(e){if(this.char===CHAR_RSQB)return this.next(this.parseWhitespaceToEOL);throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseValue(){if(this.char===e.END)throw this.error(new TomlError("Key without value"));if(this.char===CHAR_QUOT)return this.next(this.parseDoubleString);if(this.char===CHAR_APOS)return this.next(this.parseSingleString);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)return this.goto(this.parseNumberSign);if(this.char===CHAR_i)return this.next(this.parseInf);if(this.char===CHAR_n)return this.next(this.parseNan);if(isDigit(this.char))return this.goto(this.parseNumberOrDateTime);if(this.char===CHAR_t||this.char===CHAR_f)return this.goto(this.parseBoolean);if(this.char===CHAR_LSQB)return this.call(this.parseInlineList,this.recordValue);if(this.char===CHAR_LCUB)return this.call(this.parseInlineTable,this.recordValue);throw this.error(new TomlError("Unexpected character, expecting string, number, datetime, boolean, inline array or inline table"))}recordValue(e){return this.returnNow(e)}parseInf(){if(this.char===CHAR_n)return this.next(this.parseInf2);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseInf2(){if(this.char===CHAR_f)return"-"===this.state.buf?this.return(-1/0):this.return(1/0);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseNan(){if(this.char===CHAR_a)return this.next(this.parseNan2);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseNan2(){if(this.char===CHAR_n)return this.return(NaN);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseKeyword(){return this.char===CHAR_QUOT?this.next(this.parseBasicString):this.char===CHAR_APOS?this.next(this.parseLiteralString):this.goto(this.parseBareKey)}parseBareKey(){do{if(this.char===e.END)throw this.error(new TomlError("Key ended without value"));if(!isAlphaNumHyphen(this.char)){if(0===this.state.buf.length)throw this.error(new TomlError("Empty bare keys are not allowed"));return this.returnNow()}this.consume()}while(this.nextChar())}parseSingleString(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiStringMaybe):this.goto(this.parseLiteralString)}parseLiteralString(){do{if(this.char===CHAR_APOS)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiStringMaybe(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiString):this.returnNow()}parseLiteralMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseLiteralMultiStringContent):this.goto(this.parseLiteralMultiStringContent)}parseLiteralMultiStringContent(){do{if(this.char===CHAR_APOS)return this.next(this.parseLiteralMultiEnd);if(this.char===e.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiEnd(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiEnd2):(this.state.buf+="'",this.goto(this.parseLiteralMultiStringContent))}parseLiteralMultiEnd2(){return this.char===CHAR_APOS?this.return():(this.state.buf+="''",this.goto(this.parseLiteralMultiStringContent))}parseDoubleString(){return this.char===CHAR_QUOT?this.next(this.parseMultiStringMaybe):this.goto(this.parseBasicString)}parseBasicString(){do{if(this.char===CHAR_BSOL)return this.call(this.parseEscape,this.recordEscapeReplacement);if(this.char===CHAR_QUOT)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}recordEscapeReplacement(e){return this.state.buf+=e,this.goto(this.parseBasicString)}parseMultiStringMaybe(){return this.char===CHAR_QUOT?this.next(this.parseMultiString):this.returnNow()}parseMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseMultiStringContent):this.goto(this.parseMultiStringContent)}parseMultiStringContent(){do{if(this.char===CHAR_BSOL)return this.call(this.parseMultiEscape,this.recordMultiEscapeReplacement);if(this.char===CHAR_QUOT)return this.next(this.parseMultiEnd);if(this.char===e.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}errorControlCharInString(){let e="\\u00";return this.char<16&&(e+="0"),e+=this.char.toString(16),this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${e} instead`))}recordMultiEscapeReplacement(e){return this.state.buf+=e,this.goto(this.parseMultiStringContent)}parseMultiEnd(){return this.char===CHAR_QUOT?this.next(this.parseMultiEnd2):(this.state.buf+='"',this.goto(this.parseMultiStringContent))}parseMultiEnd2(){return this.char===CHAR_QUOT?this.return():(this.state.buf+='""',this.goto(this.parseMultiStringContent))}parseMultiEscape(){return this.char===CTRL_M||this.char===CTRL_J?this.next(this.parseMultiTrim):this.char===CHAR_SP||this.char===CTRL_I?this.next(this.parsePreMultiTrim):this.goto(this.parseEscape)}parsePreMultiTrim(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CTRL_M||this.char===CTRL_J)return this.next(this.parseMultiTrim);throw this.error(new TomlError("Can't escape whitespace"))}parseMultiTrim(){return this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M?null:this.returnNow()}parseEscape(){if(this.char in escapes)return this.return(escapes[this.char]);if(this.char===CHAR_u)return this.call(this.parseSmallUnicode,this.parseUnicodeReturn);if(this.char===CHAR_U)return this.call(this.parseLargeUnicode,this.parseUnicodeReturn);throw this.error(new TomlError("Unknown escape character: "+this.char))}parseUnicodeReturn(e){try{const t=parseInt(e,16);if(t>=SURROGATE_FIRST&&t<=SURROGATE_LAST)throw this.error(new TomlError("Invalid unicode, character in range 0xD800 - 0xDFFF is reserved"));return this.returnNow(String.fromCodePoint(t))}catch(e){throw this.error(TomlError.wrap(e))}}parseSmallUnicode(){if(!isHexit(this.char))throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"));if(this.consume(),this.state.buf.length>=4)return this.return()}parseLargeUnicode(){if(!isHexit(this.char))throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"));if(this.consume(),this.state.buf.length>=8)return this.return()}parseNumberSign(){return this.consume(),this.next(this.parseMaybeSignedInfOrNan)}parseMaybeSignedInfOrNan(){return this.char===CHAR_i?this.next(this.parseInf):this.char===CHAR_n?this.next(this.parseNan):this.callNow(this.parseNoUnder,this.parseNumberIntegerStart)}parseNumberIntegerStart(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberIntegerExponentOrDecimal)):this.goto(this.parseNumberInteger)}parseNumberIntegerExponentOrDecimal(){return this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Integer(this.state.buf))}parseNumberInteger(){if(!isDigit(this.char)){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder);if(this.char===CHAR_E||this.char===CHAR_e)return this.consume(),this.next(this.parseNumberExponentSign);if(this.char===CHAR_PERIOD)return this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat);{const e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(e)}}this.consume()}parseNoUnder(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD||this.char===CHAR_E||this.char===CHAR_e)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNoUnderHexOctBinLiteral(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNumberFloat(){return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder,this.parseNumberFloat):isDigit(this.char)?void this.consume():this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Float(this.state.buf))}parseNumberExponentSign(){if(isDigit(this.char))return this.goto(this.parseNumberExponent);if(this.char!==CHAR_HYPHEN&&this.char!==CHAR_PLUS)throw this.error(new TomlError("Unexpected character, expected -, + or digit"));this.consume(),this.call(this.parseNoUnder,this.parseNumberExponent)}parseNumberExponent(){if(!isDigit(this.char))return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder):this.returnNow(Float(this.state.buf));this.consume()}parseNumberOrDateTime(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberBaseOrDateTime)):this.goto(this.parseNumberOrDateTimeOnly)}parseNumberOrDateTimeOnly(){return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder,this.parseNumberInteger):isDigit(this.char)?(this.consume(),void(this.state.buf.length>4&&this.next(this.parseNumberInteger))):this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_HYPHEN?this.goto(this.parseDateTime):this.char===CHAR_COLON?this.goto(this.parseOnlyTimeHour):this.returnNow(Integer(this.state.buf))}parseDateTimeOnly(){if(this.state.buf.length<4){if(isDigit(this.char))return this.consume();if(this.char===CHAR_COLON)return this.goto(this.parseOnlyTimeHour);throw this.error(new TomlError("Expected digit while parsing year part of a date"))}if(this.char===CHAR_HYPHEN)return this.goto(this.parseDateTime);throw this.error(new TomlError("Expected hyphen (-) while parsing year part of date"))}parseNumberBaseOrDateTime(){return this.char===CHAR_b?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerBin)):this.char===CHAR_o?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerOct)):this.char===CHAR_x?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerHex)):this.char===CHAR_PERIOD?this.goto(this.parseNumberInteger):isDigit(this.char)?this.goto(this.parseDateTimeOnly):this.returnNow(Integer(this.state.buf))}parseIntegerHex(){if(!isHexit(this.char)){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{const e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(e)}}this.consume()}parseIntegerOct(){if(!isOctit(this.char)){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{const e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(e)}}this.consume()}parseIntegerBin(){if(!isBit(this.char)){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{const e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(e)}}this.consume()}parseDateTime(){if(this.state.buf.length<4)throw this.error(new TomlError("Years less than 1000 must be zero padded to four characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseDateMonth)}parseDateMonth(){if(this.char===CHAR_HYPHEN){if(this.state.buf.length<2)throw this.error(new TomlError("Months less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseDateDay)}if(!isDigit(this.char))throw this.error(new TomlError("Incomplete datetime"));this.consume()}parseDateDay(){if(this.char===CHAR_T||this.char===CHAR_SP){if(this.state.buf.length<2)throw this.error(new TomlError("Days less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseStartTimeHour)}if(this.atEndOfWord())return this.returnNow(createDate(this.state.result+"-"+this.state.buf));if(!isDigit(this.char))throw this.error(new TomlError("Incomplete datetime"));this.consume()}parseStartTimeHour(){return this.atEndOfWord()?this.returnNow(createDate(this.state.result)):this.goto(this.parseTimeHour)}parseTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result+="T"+this.state.buf,this.state.buf="",this.next(this.parseTimeMin)}if(!isDigit(this.char))throw this.error(new TomlError("Incomplete datetime"));this.consume()}parseTimeMin(){if(!(this.state.buf.length<2&&isDigit(this.char))){if(2===this.state.buf.length&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeSec);throw this.error(new TomlError("Incomplete datetime"))}this.consume()}parseTimeSec(){if(!isDigit(this.char))throw this.error(new TomlError("Incomplete datetime"));if(this.consume(),2===this.state.buf.length)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeZoneOrFraction)}parseOnlyTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeMin)}throw this.error(new TomlError("Incomplete time"))}parseOnlyTimeMin(){if(!(this.state.buf.length<2&&isDigit(this.char))){if(2===this.state.buf.length&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeSec);throw this.error(new TomlError("Incomplete time"))}this.consume()}parseOnlyTimeSec(){if(!isDigit(this.char))throw this.error(new TomlError("Incomplete time"));if(this.consume(),2===this.state.buf.length)return this.next(this.parseOnlyTimeFractionMaybe)}parseOnlyTimeFractionMaybe(){if(this.state.result+=":"+this.state.buf,this.char!==CHAR_PERIOD)return this.return(createTime(this.state.result));this.state.buf="",this.next(this.parseOnlyTimeFraction)}parseOnlyTimeFraction(){if(!isDigit(this.char)){if(this.atEndOfWord()){if(0===this.state.buf.length)throw this.error(new TomlError("Expected digit in milliseconds"));return this.returnNow(createTime(this.state.result+"."+this.state.buf))}throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}this.consume()}parseTimeZoneOrFraction(){if(this.char===CHAR_PERIOD)this.consume(),this.next(this.parseDateTimeFraction);else{if(this.char!==CHAR_HYPHEN&&this.char!==CHAR_PLUS){if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}this.consume(),this.next(this.parseTimeZoneHour)}}parseDateTimeFraction(){if(isDigit(this.char))this.consume();else{if(1===this.state.buf.length)throw this.error(new TomlError("Expected digit in milliseconds"));if(this.char!==CHAR_HYPHEN&&this.char!==CHAR_PLUS){if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}this.consume(),this.next(this.parseTimeZoneHour)}}parseTimeZoneHour(){if(!isDigit(this.char))throw this.error(new TomlError("Unexpected character in datetime, expected digit"));if(this.consume(),/\d\d$/.test(this.state.buf))return this.next(this.parseTimeZoneSep)}parseTimeZoneSep(){if(this.char!==CHAR_COLON)throw this.error(new TomlError("Unexpected character in datetime, expected colon"));this.consume(),this.next(this.parseTimeZoneMin)}parseTimeZoneMin(){if(!isDigit(this.char))throw this.error(new TomlError("Unexpected character in datetime, expected digit"));if(this.consume(),/\d\d$/.test(this.state.buf))return this.return(createDateTime(this.state.result+this.state.buf))}parseBoolean(){return this.char===CHAR_t?(this.consume(),this.next(this.parseTrue_r)):this.char===CHAR_f?(this.consume(),this.next(this.parseFalse_a)):void 0}parseTrue_r(){if(this.char===CHAR_r)return this.consume(),this.next(this.parseTrue_u);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_u(){if(this.char===CHAR_u)return this.consume(),this.next(this.parseTrue_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_e(){if(this.char===CHAR_e)return this.return(!0);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_a(){if(this.char===CHAR_a)return this.consume(),this.next(this.parseFalse_l);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_l(){if(this.char===CHAR_l)return this.consume(),this.next(this.parseFalse_s);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_s(){if(this.char===CHAR_s)return this.consume(),this.next(this.parseFalse_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_e(){if(this.char===CHAR_e)return this.return(!1);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseInlineList(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===e.END)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_NUM?this.call(this.parseComment):this.char===CHAR_RSQB?this.return(this.state.resultArr||InlineList()):this.callNow(this.parseValue,this.recordInlineListValue)}recordInlineListValue(e){if(this.state.resultArr){const t=this.state.resultArr[_contentType],n=tomlType(e);if(t!==n)throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${t} and ${n}`))}else this.state.resultArr=InlineList(tomlType(e));return isFloat(e)||isInteger(e)?this.state.resultArr.push(e.valueOf()):this.state.resultArr.push(e),this.goto(this.parseInlineListNext)}parseInlineListNext(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CHAR_COMMA)return this.next(this.parseInlineList);if(this.char===CHAR_RSQB)return this.goto(this.parseInlineList);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}parseInlineTable(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_RCUB?this.return(this.state.resultTable||InlineTable()):(this.state.resultTable||(this.state.resultTable=InlineTable()),this.callNow(this.parseAssign,this.recordInlineTableValue))}recordInlineTableValue(e){let t=this.state.resultTable,n=e.key.pop();for(let n of e.key){if(hasKey(t,n)&&(!isTable(t[n])||t[n][_declared]))throw this.error(new TomlError("Can't redefine existing key"));t=t[n]=t[n]||Table()}if(hasKey(t,n))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(e.value)||isFloat(e.value)?t[n]=e.value.valueOf():t[n]=e.value,this.goto(this.parseInlineTableNext)}parseInlineTableNext(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));if(this.char===CHAR_COMMA)return this.next(this.parseInlineTable);if(this.char===CHAR_RCUB)return this.goto(this.parseInlineTable);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}}}},66615:(e,t,n)=>{"use strict";e.exports=function(e,t){t||(t={});const n=t.blocksize||40960,o=new r;return new Promise(((e,t)=>{setImmediate(a,0,n,e,t)}));function a(t,n,r,s){if(t>=e.length)try{return r(o.finish())}catch(t){return s(i(t,e))}try{o.parse(e.slice(t,t+n)),setImmediate(a,t+n,n,r,s)}catch(t){s(i(t,e))}}};const r=n(77146),i=n(53146)},53146:e=>{"use strict";e.exports=function(e,t){if(null==e.pos||null==e.line)return e;let n=e.message;if(n+=` at row ${e.line+1}, col ${e.col+1}, pos ${e.pos}:\n`,t&&t.split){const r=t.split(/\n/),i=String(Math.min(r.length,e.line+3)).length;let o=" ";for(;o.length "+r[t]+"\n",n+=o+" ";for(let t=0;t{"use strict";e.exports=function(e){return e?function(e){const t=new i;return e.setEncoding("utf8"),new Promise(((n,r)=>{let i,o=!1,a=!1;function s(){if(o=!0,!i)try{n(t.finish())}catch(e){r(e)}}function l(e){a=!0,r(e)}e.once("end",s),e.once("error",l),function n(){let r;for(i=!0;null!==(r=e.read());)try{t.parse(r)}catch(e){return l(e)}if(i=!1,o)return s();a||e.once("readable",n)}()}))}(e):function(){const e=new i;return new r.Transform({objectMode:!0,transform(t,n,r){try{e.parse(t.toString(n))}catch(e){this.emit("error",e)}r()},flush(t){try{this.push(e.finish())}catch(e){this.emit("error",e)}t()}})}()};const r=n(54851),i=n(77146)},13475:(e,t,n)=>{"use strict";e.exports=function(e){n.g.Buffer&&n.g.Buffer.isBuffer(e)&&(e=e.toString("utf8"));const t=new r;try{return t.parse(e),t.finish()}catch(t){throw i(t,e)}};const r=n(77146),i=n(53146)},53279:(e,t,n)=>{"use strict";e.exports=n(13475),e.exports.async=n(66615),e.exports.stream=n(24312),e.exports.prettyError=n(53146)},57573:e=>{"use strict";function t(e){return new Error("Can only stringify objects, not "+e)}function n(e){return Object.keys(e).filter((t=>o(e[t])))}function r(e){let t=Array.isArray(e)?[]:Object.prototype.hasOwnProperty.call(e,"__proto__")?{["__proto__"]:void 0}:{};for(let n of Object.keys(e))e[n]&&"function"==typeof e[n].toJSON&&!("toISOString"in e[n])?t[n]=e[n].toJSON():t[n]=e[n];return t}function i(e,l,u){var d,f;d=n(u=r(u)),f=function(e){return Object.keys(e).filter((t=>!o(e[t])))}(u);var h=[],m=l||"";d.forEach((e=>{var t=a(u[e]);"undefined"!==t&&"null"!==t&&h.push(m+s(e)+" = "+c(u[e],!0))})),h.length>0&&h.push("");var g=e&&d.length>0?l+" ":"";return f.forEach((o=>{h.push(function(e,o,l,u){var c=a(u);if("array"===c)return function(e,n,o,l){p(l=r(l));var u=a(l[0]);if("table"!==u)throw t(u);var c=e+s(o),d="";return l.forEach((e=>{d.length>0&&(d+="\n"),d+=n+"[["+c+"]]\n",d+=i(c+".",n,e)})),d}(e,o,l,u);if("table"===c)return function(e,t,r,o){var a=e+s(r),l="";return n(o).length>0&&(l+=t+"["+a+"]\n"),l+i(a+".",t,o)}(e,o,l,u);throw t(c)}(e,g,o,u[o]))})),h.join("\n")}function o(e){switch(a(e)){case"undefined":case"null":case"integer":case"nan":case"float":case"boolean":case"string":case"datetime":return!0;case"array":return 0===e.length||"table"!==a(e[0]);case"table":return 0===Object.keys(e).length;default:return!1}}function a(e){return void 0===e?"undefined":null===e?"null":"bigint"==typeof e||Number.isInteger(e)&&!Object.is(e,-0)?"integer":"number"==typeof e?"float":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"toISOString"in e?isNaN(e)?"undefined":"datetime":Array.isArray(e)?"array":"table"}function s(e){var t=String(e);return/^[-A-Za-z0-9_]+$/.test(t)?t:l(t)}function l(e){return'"'+u(e).replace(/"/g,'\\"')+'"'}function u(e){return e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/([\u0000-\u001f\u007f])/,(e=>"\\u"+function(e,t){for(;t.length<4;)t="0"+t;return t}(0,e.codePointAt(0).toString(16))))}function c(e,t){let n=a(e);return"string"===n&&(t&&/\n/.test(e)?n="string-multiline":!/[\b\t\n\f\r']/.test(e)&&/"/.test(e)&&(n="string-literal")),d(e,n)}function d(e,n){switch(n||(n=a(e)),n){case"string-multiline":return function(e){let t=e.split(/\n/).map((e=>u(e).replace(/"(?="")/g,'\\"'))).join("\n");return'"'===t.slice(-1)&&(t+="\\\n"),'"""\n'+t+'"""'}(e);case"string":return l(e);case"string-literal":return"'"+e+"'";case"integer":return f(e);case"float":return function(e){if(e===1/0)return"inf";if(e===-1/0)return"-inf";if(Object.is(e,NaN))return"nan";if(Object.is(e,-0))return"-0.0";var t=String(e).split("."),n=t[0],r=t[1]||0;return f(n)+"."+r}(e);case"boolean":return function(e){return String(e)}(e);case"datetime":return function(e){return e.toISOString()}(e);case"array":return function(e){const t=p(e=r(e));var n="[",i=e.map((e=>d(e,t)));return i.join(", ").length>60||/\n/.test(i)?n+="\n "+i.join(",\n ")+"\n":n+=" "+i.join(", ")+(i.length>0?" ":""),n+"]"}(e.filter((e=>"null"!==a(e)&&"undefined"!==a(e)&&"nan"!==a(e))));case"table":return function(e){e=r(e);var t=[];return Object.keys(e).forEach((n=>{t.push(s(n)+" = "+c(e[n],!1))})),"{ "+t.join(", ")+(t.length>0?" ":"")+"}"}(e);default:throw t(n)}}function f(e){return String(e).replace(/\B(?=(\d{3})+(?!\d))/g,"_")}function p(e){const t=function(e){var t=a(e[0]);return e.every((e=>a(e)===t))?t:e.every((e=>{return"float"===(t=a(e))||"integer"===t;var t}))?"float":"mixed"}(e);if("mixed"===t)throw new Error("Array values can't have mixed types");return t}e.exports=function(e){if(null===e)throw t("null");if(void 0===e)throw t("undefined");if("object"!=typeof e)throw t(typeof e);if("function"==typeof e.toJSON&&(e=e.toJSON()),null==e)return null;const n=a(e);if("table"!==n)throw t(n);return i("","",e)},e.exports.value=d},6901:(e,t,n)=>{"use strict";t.parse=n(53279),t.stringify=n(57573)},47988:(e,t,n)=>{"use strict";var r,i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return o.default.createElement("svg",i({viewBox:"0 0 24 24",style:i({fill:n,width:a,height:l},c)},d),o.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},16331:(e,t,n)=>{"use strict";var r,i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return o.default.createElement("svg",i({viewBox:"0 0 24 24",style:i({fill:n,width:a,height:l},c)},d),o.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},38229:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});var r=Object.prototype,i=r.toString,o=r.hasOwnProperty,a=new Map;function s(e,t){try{return l(e,t)}finally{a.clear()}}function l(e,t){if(e===t)return!0;var n=i.call(e);if(n!==i.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(u(e,t))return!0;var r=Object.keys(e),a=Object.keys(t),s=r.length;if(s!==a.length)return!1;for(var c=0;c{"use strict";n.r(t),n.d(t,{HeuristicFragmentMatcher:()=>H,InMemoryCache:()=>fe,IntrospectionFragmentMatcher:()=>V,ObjectCache:()=>ee,StoreReader:()=>Y,StoreWriter:()=>ie,WriteError:()=>ne,assertIdValue:()=>J,defaultDataIdFromObject:()=>ue,defaultNormalizedCacheFactory:()=>te,enhanceErrorWithDocument:()=>re});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;nthis.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),_=new y,x=[],k=[],E=100;function S(e,t){if(!e)throw new Error(t||"assertion failure")}function C(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var T=function(){function e(t,n){this.fn=t,this.args=n,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],++e.count}return e.prototype.recompute=function(){if(S(!this.recomputing,"already recomputing"),function(e){var t=_.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),A(e)?D(t,e):M(t,e),t}(this)||!L(this))return A(this)?(t=j(e=this),_.withValue(e,O,[e]),function(e){if("function"==typeof e.subscribe)try{F(e),e.unsubscribe=e.subscribe.apply(null,e.args)}catch(t){return e.setDirty(),!1}return!0}(e)&&function(e){e.dirty=!1,A(e)||R(e)}(e),t.forEach(L),C(e.value)):C(this.value);var e,t},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,P(this),F(this))},e.prototype.dispose=function(){var e=this;j(this).forEach(L),F(this),this.parents.forEach((function(t){t.setDirty(),N(t,e)}))},e.count=0,e}();function O(e){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,e.args)}catch(t){e.value[1]=t}e.recomputing=!1}function A(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function P(e){e.parents.forEach((function(t){return D(t,e)}))}function R(e){e.parents.forEach((function(t){return M(t,e)}))}function D(e,t){if(S(e.childValues.has(t)),S(A(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=k.pop()||new Set;e.dirtyChildren.add(t),P(e)}function M(e,t){S(e.childValues.has(t)),S(!A(t));var n,r,i,o=e.childValues.get(t);0===o.length?e.childValues.set(t,t.value.slice(0)):(n=o,r=t.value,(i=n.length)>0&&i===r.length&&n[i-1]===r[i-1]||e.setDirty()),I(e,t),A(e)||R(e)}function I(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(k.length0&&(t=[],e.childValues.forEach((function(n,r){N(e,r),t.push(r)}))),S(null===e.dirtyChildren),t}function N(e,t){t.parents.delete(e),e.childValues.delete(t),I(e,t)}function F(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var B=function(){function e(e){this.weakness=e}return e.prototype.lookup=function(){for(var e=[],t=0;t-1)},e.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach((function(e){"UNION"!==e.kind&&"INTERFACE"!==e.kind||(t[e.name]=e.possibleTypes.map((function(e){return e.name})))})),t},e}(),G=Object.prototype.hasOwnProperty,K=function(){function e(e){var t=this;void 0===e&&(e=Object.create(null)),this.data=e,this.depend=W((function(e){return t.data[e]}),{disposable:!0,makeCacheKey:function(e){return e}})}return e.prototype.toObject=function(){return this.data},e.prototype.get=function(e){return this.depend(e),this.data[e]},e.prototype.set=function(e,t){t!==this.data[e]&&(this.data[e]=t,this.depend.dirty(e))},e.prototype.delete=function(e){G.call(this.data,e)&&(delete this.data[e],this.depend.dirty(e))},e.prototype.clear=function(){this.replace(null)},e.prototype.replace=function(e){var t=this;e?(Object.keys(e).forEach((function(n){t.set(n,e[n])})),Object.keys(this.data).forEach((function(n){G.call(e,n)||t.delete(n)}))):Object.keys(this.data).forEach((function(e){t.delete(e)}))},e}();function Z(e){return new K(e)}var Y=function(){function e(e){var t=this,n=void 0===e?{}:e,r=n.cacheKeyRoot,i=void 0===r?new B(a.mr):r,o=n.freezeResults,s=void 0!==o&&o,l=this,u=l.executeStoreQuery,c=l.executeSelectionSet,d=l.executeSubSelectedArray;this.freezeResults=s,this.executeStoreQuery=W((function(e){return u.call(t,e)}),{makeCacheKey:function(e){var t=e.query,n=e.rootValue,r=e.contextValue,o=e.variableValues,a=e.fragmentMatcher;if(r.store instanceof K)return i.lookup(r.store,t,a,JSON.stringify(o),n.id)}}),this.executeSelectionSet=W((function(e){return c.call(t,e)}),{makeCacheKey:function(e){var t=e.selectionSet,n=e.rootValue,r=e.execContext;if(r.contextValue.store instanceof K)return i.lookup(r.contextValue.store,t,r.fragmentMatcher,JSON.stringify(r.variableValues),n.id)}}),this.executeSubSelectedArray=W((function(e){return d.call(t,e)}),{makeCacheKey:function(e){var t=e.field,n=e.array,r=e.execContext;if(r.contextValue.store instanceof K)return i.lookup(r.contextValue.store,t,n,JSON.stringify(r.variableValues))}})}return e.prototype.readQueryFromStore=function(e){return this.diffQueryAgainstStore(o(o({},e),{returnPartialData:!1})).result},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.variables,i=e.previousResult,o=e.returnPartialData,s=void 0===o||o,l=e.rootId,u=void 0===l?"ROOT_QUERY":l,c=e.fragmentMatcherFunction,d=e.config,p=(0,a.iW)(n);r=(0,a.f0)({},(0,a.O4)(p),r);var h={store:t,dataIdFromObject:d&&d.dataIdFromObject,cacheRedirects:d&&d.cacheRedirects||{}},m=this.executeStoreQuery({query:n,rootValue:{type:"id",id:u,generated:!0,typename:"Query"},contextValue:h,variableValues:r,fragmentMatcher:c}),g=m.missing&&m.missing.length>0;return g&&!s&&m.missing.forEach((function(e){if(!e.tolerable)throw new $.ej(8)})),i&&(0,f.D)(i,m.result)&&(m.result=i),{result:m.result,complete:!g}},e.prototype.executeStoreQuery=function(e){var t=e.query,n=e.rootValue,r=e.contextValue,i=e.variableValues,o=e.fragmentMatcher,s=void 0===o?Q:o,l=(0,a.p$)(t),u=(0,a.kU)(t),c={query:t,fragmentMap:(0,a.F)(u),contextValue:r,variableValues:i,fragmentMatcher:s};return this.executeSelectionSet({selectionSet:l.selectionSet,rootValue:n,execContext:c})},e.prototype.executeSelectionSet=function(e){var t=this,n=e.selectionSet,r=e.rootValue,i=e.execContext,s=i.fragmentMap,l=i.contextValue,u=i.variableValues,c={result:null},d=[],f=l.store.get(r.id),p=f&&f.__typename||"ROOT_QUERY"===r.id&&"Query"||void 0;function h(e){var t;return e.missing&&(c.missing=c.missing||[],(t=c.missing).push.apply(t,e.missing)),e.result}return n.selections.forEach((function(e){var n;if((0,a.LZ)(e,u))if((0,a.My)(e)){var c=h(t.executeField(f,p,e,i));void 0!==c&&d.push(((n={})[(0,a.u2)(e)]=c,n))}else{var m=void 0;if((0,a.Ao)(e))m=e;else if(!(m=s[e.name.value]))throw new $.ej(9);var g=m.typeCondition&&m.typeCondition.name.value,v=!g||i.fragmentMatcher(r,g,l);if(v){var y=t.executeSelectionSet({selectionSet:m.selectionSet,rootValue:r,execContext:i});"heuristic"===v&&y.missing&&(y=o(o({},y),{missing:y.missing.map((function(e){return o(o({},e),{tolerable:!0})}))})),d.push(h(y))}}})),c.result=(0,a.bw)(d),this.freezeResults,c},e.prototype.executeField=function(e,t,n,r){var i=r.variableValues,o=r.contextValue,s=function(e,t,n,r,i,o){var s=o.directives,l=n;(r||s)&&(l=(0,a.PT)(l,r,s));var u=void 0;if(e&&void 0===(u=e[l])&&i.cacheRedirects&&"string"==typeof t){var c=i.cacheRedirects[t];if(c){var d=c[n];d&&(u=d(e,r,{getCacheKey:function(e){var t=i.dataIdFromObject(e);return t&&(0,a.aX)({id:t,typename:e.__typename})}}))}}return void 0===u?{result:u,missing:[{object:e,fieldName:l,tolerable:!1}]}:((0,a.v4)(u)&&(u=u.json),{result:u})}(e,t,n.name.value,(0,a.NC)(n,i),o,{resultKey:(0,a.u2)(n),directives:(0,a.Qy)(n,i)});return Array.isArray(s.result)?this.combineExecResults(s,this.executeSubSelectedArray({field:n,array:s.result,execContext:r})):n.selectionSet?null==s.result?s:this.combineExecResults(s,this.executeSelectionSet({selectionSet:n.selectionSet,rootValue:s.result,execContext:r})):(X(n,s.result),this.freezeResults,s)},e.prototype.combineExecResults=function(){for(var e,t=[],n=0;n=0)return!0;n[e].push(t)}else n[e]=[t];return!1}var le={fragmentMatcher:new H,dataIdFromObject:ue,addTypename:!0,resultCaching:!0,freezeResults:!1};function ue(e){if(e.__typename){if(void 0!==e.id)return e.__typename+":"+e.id;if(void 0!==e._id)return e.__typename+":"+e._id}return null}var ce=Object.prototype.hasOwnProperty,de=function(e){function t(t,n,r){var i=e.call(this,Object.create(null))||this;return i.optimisticId=t,i.parent=n,i.transaction=r,i}return i(t,e),t.prototype.toObject=function(){return o(o({},this.parent.toObject()),this.data)},t.prototype.get=function(e){return ce.call(this.data,e)?this.data[e]:this.parent.get(e)},t}(ee),fe=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;n.watches=new Set,n.typenameDocumentCache=new Map,n.cacheKeyRoot=new B(a.mr),n.silenceBroadcast=!1,n.config=o(o({},le),t),n.config.customResolvers&&(n.config.cacheRedirects=n.config.customResolvers),n.config.cacheResolvers&&(n.config.cacheRedirects=n.config.cacheResolvers),n.addTypename=!!n.config.addTypename,n.data=n.config.resultCaching?new K:new ee,n.optimisticData=n.data,n.storeWriter=new ie,n.storeReader=new Y({cacheKeyRoot:n.cacheKeyRoot,freezeResults:t.freezeResults});var r=n,i=r.maybeBroadcastWatch;return n.maybeBroadcastWatch=W((function(e){return i.call(n,e)}),{makeCacheKey:function(e){if(!e.optimistic&&!e.previousResult)return r.data instanceof K?r.cacheKeyRoot.lookup(e.query,JSON.stringify(e.variables)):void 0}}),n}return i(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).toObject()},t.prototype.read=function(e){if("string"==typeof e.rootId&&void 0===this.data.get(e.rootId))return null;var t=this.config.fragmentMatcher,n=t&&t.match;return this.storeReader.readQueryFromStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,rootId:e.rootId,fragmentMatcherFunction:n,previousResult:e.previousResult,config:this.config})||null},t.prototype.write=function(e){var t=this.config.fragmentMatcher,n=t&&t.match;this.storeWriter.writeResultToStore({dataId:e.dataId,result:e.result,variables:e.variables,document:this.transformDocument(e.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:n}),this.broadcastWatches()},t.prototype.diff=function(e){var t=this.config.fragmentMatcher,n=t&&t.match;return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,returnPartialData:e.returnPartialData,previousResult:e.previousResult,fragmentMatcherFunction:n,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.add(e),function(){t.watches.delete(e)}},t.prototype.evict=function(e){throw new $.ej(7)},t.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){for(var t=[],n=0,r=this.optimisticData;r instanceof de;)r.optimisticId===e?++n:t.push(r),r=r.parent;if(n>0){for(this.optimisticData=r;t.length>0;){var i=t.pop();this.performTransaction(i.transaction,i.optimisticId)}this.broadcastWatches()}},t.prototype.performTransaction=function(e,t){var n=this.data,r=this.silenceBroadcast;this.silenceBroadcast=!0,"string"==typeof t&&(this.data=this.optimisticData=new de(t,this.optimisticData,e));try{e(this)}finally{this.silenceBroadcast=r,this.data=n}this.broadcastWatches()},t.prototype.recordOptimisticTransaction=function(e,t){return this.performTransaction(e,t)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=(0,a.Gw)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(){var e=this;this.silenceBroadcast||this.watches.forEach((function(t){return e.maybeBroadcastWatch(t)}))},t.prototype.maybeBroadcastWatch=function(e){e.callback(this.diff({query:e.query,variables:e.variables,previousResult:e.previousResult&&e.previousResult(),optimistic:e.optimistic}))},t}(d)},34600:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ApolloClient:()=>M,ApolloError:()=>_,FetchType:()=>w,NetworkStatus:()=>l,ObservableQuery:()=>x,default:()=>I,isApolloError:()=>b});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0}function b(e){return e.hasOwnProperty("graphQLErrors")}var w,_=function(e){function t(n){var r,i,o=n.graphQLErrors,a=n.networkError,s=n.errorMessage,l=n.extraInfo,u=e.call(this,s)||this;return u.graphQLErrors=o||[],u.networkError=a||null,u.message=s||(i="",y((r=u).graphQLErrors)&&r.graphQLErrors.forEach((function(e){var t=e?e.message:"Error message not found.";i+="GraphQL error: "+t+"\n"})),r.networkError&&(i+="Network error: "+r.networkError.message+"\n"),i=i.replace(/\n$/,"")),u.extraInfo=l,u.__proto__=t.prototype,u}return i(t,e),t}(Error);!function(e){e[e.normal=1]="normal",e[e.refetch=2]="refetch",e[e.poll=3]="poll"}(w||(w={}));var x=function(e){function t(t){var n=t.queryManager,r=t.options,i=t.shouldSubscribe,o=void 0===i||i,a=e.call(this,(function(e){return a.onSubscribe(e)}))||this;a.observers=new Set,a.subscriptions=new Set,a.isTornDown=!1,a.options=r,a.variables=r.variables||{},a.queryId=n.generateQueryId(),a.shouldSubscribe=o;var s=(0,u.$H)(r.query);return a.queryName=s&&s.name&&s.name.value,a.queryManager=n,a}return i(t,e),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},t.prototype.currentResult=function(){var e=this.getCurrentResult();return void 0===e.data&&(e.data={}),e},t.prototype.getCurrentResult=function(){if(this.isTornDown){var e=this.lastResult;return{data:!this.lastError&&e&&e.data||void 0,error:this.lastError,loading:!1,networkStatus:l.error}}var t,n,r,i=this.queryManager.getCurrentQueryResult(this),a=i.data,s=i.partial,u=this.queryManager.queryStore.get(this.queryId),c=this.options.fetchPolicy,d="network-only"===c||"no-cache"===c;if(u){var f=u.networkStatus;if(n=u,void 0===(r=this.options.errorPolicy)&&(r="none"),n&&(n.networkError||"none"===r&&y(n.graphQLErrors)))return{data:void 0,loading:!1,networkStatus:f,error:new _({graphQLErrors:u.graphQLErrors,networkError:u.networkError})};u.variables&&(this.options.variables=o(o({},this.options.variables),u.variables),this.variables=this.options.variables),t={data:a,loading:g(f),networkStatus:f},u.graphQLErrors&&"all"===this.options.errorPolicy&&(t.errors=u.graphQLErrors)}else{var p=d||s&&"cache-only"!==c;t={data:a,loading:p,networkStatus:p?l.loading:l.ready}}return s||this.updateLastResult(o(o({},t),{stale:!1})),o(o({},t),{partial:s})},t.prototype.isDifferentFromLastResult=function(e){var t=this.lastResultSnapshot;return!(t&&e&&t.networkStatus===e.networkStatus&&t.stale===e.stale&&(0,c.D)(t.data,e.data))},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){var e=this.queryManager.queryStore.get(this.queryId);e&&(e.networkError=null,e.graphQLErrors=[])},t.prototype.refetch=function(e){var t=this.options.fetchPolicy;return"cache-only"===t?Promise.reject(new h.ej(1)):("no-cache"!==t&&"cache-and-network"!==t&&(t="network-only"),(0,c.D)(this.variables,e)||(this.variables=o(o({},this.variables),e)),(0,c.D)(this.options.variables,this.variables)||(this.options.variables=o(o({},this.options.variables),this.variables)),this.queryManager.fetchQuery(this.queryId,o(o({},this.options),{fetchPolicy:t}),w.refetch))},t.prototype.fetchMore=function(e){var t=this;(0,h.kG)(e.updateQuery,2);var n=o(o({},e.query?e:o(o(o({},this.options),e),{variables:o(o({},this.variables),e.variables)})),{fetchPolicy:"network-only"}),r=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(r,n,w.normal,this.queryId).then((function(i){return t.updateQuery((function(t){return e.updateQuery(t,{fetchMoreResult:i.data,variables:n.variables})})),t.queryManager.stopQuery(r),i}),(function(e){throw t.queryManager.stopQuery(r),e}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){var t=this.options.fetchPolicy;this.options=o(o({},this.options),e),e.pollInterval?this.startPolling(e.pollInterval):0===e.pollInterval&&this.stopPolling();var n=e.fetchPolicy;return this.setVariables(this.options.variables,t!==n&&("cache-only"===t||"standby"===t||"network-only"===n),e.fetchResults)},t.prototype.setVariables=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=!0),this.isTornDown=!1,e=e||this.variables,!t&&(0,c.D)(e,this.variables)?this.observers.size&&n?this.result():Promise.resolve():(this.variables=this.options.variables=e,this.observers.size?this.queryManager.fetchQuery(this.queryId,this.options):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=t.getQueryWithPreviousResult(this.queryId),r=n.previousResult,i=n.variables,o=n.document,a=(0,u.XY)((function(){return e(r,{variables:i})}));a&&(t.dataStore.markUpdateQueryResult(o,i,a),t.broadcastQueries())},t.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},t.prototype.startPolling=function(e){S(this),this.options.pollInterval=e,this.queryManager.startPollingQuery(this.options,this.queryId)},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:(0,u.Xh)(e),t},t.prototype.onSubscribe=function(e){var t=this;try{var n=e._subscription._observer;n&&!n.error&&(n.error=k)}catch(e){}var r=!this.observers.size;return this.observers.add(e),e.next&&this.lastResult&&e.next(this.lastResult),e.error&&this.lastError&&e.error(this.lastError),r&&this.setUpQuery(),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.setUpQuery=function(){var e=this,t=this.queryManager,n=this.queryId;this.shouldSubscribe&&t.addObservableQuery(n,this),this.options.pollInterval&&(S(this),t.startPollingQuery(this.options,n));var r=function(t){e.updateLastResult(o(o({},e.lastResult),{errors:t.graphQLErrors,networkStatus:l.error,loading:!1})),E(e.observers,"error",e.lastError=t)};t.observeQuery(n,this.options,{next:function(n){if(e.lastError||e.isDifferentFromLastResult(n)){var r=e.updateLastResult(n),i=e.options,o=i.query,a=i.variables,s=i.fetchPolicy;t.transform(o).hasClientExports?t.getLocalState().addExportedVariables(o,a).then((function(i){var a=e.variables;e.variables=e.options.variables=i,!n.loading&&r&&"cache-only"!==s&&t.transform(o).serverQuery&&!(0,c.D)(a,i)?e.refetch():E(e.observers,"next",n)})):E(e.observers,"next",n)}},error:r}).catch(r)},t.prototype.tearDownQuery=function(){var e=this.queryManager;this.isTornDown=!0,e.stopPollingQuery(this.queryId),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),e.removeObservableQuery(this.queryId),e.stopQuery(this.queryId),this.observers.clear()},t}(v);function k(e){}function E(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function S(e){var t=e.options.fetchPolicy;(0,h.kG)("cache-first"!==t&&"cache-only"!==t,3)}var C=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initMutation=function(e,t,n){this.store[e]={mutation:t,variables:n||{},loading:!0,error:null}},e.prototype.markMutationError=function(e,t){var n=this.store[e];n&&(n.loading=!1,n.error=t)},e.prototype.markMutationResult=function(e){var t=this.store[e];t&&(t.loading=!1,t.error=null)},e.prototype.reset=function(){this.store={}},e}(),T=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initQuery=function(e){var t=this.store[e.queryId];(0,h.kG)(!t||t.document===e.document||(0,c.D)(t.document,e.document),19);var n,r=!1,i=null;e.storePreviousVariables&&t&&t.networkStatus!==l.loading&&((0,c.D)(t.variables,e.variables)||(r=!0,i=t.variables)),n=r?l.setVariables:e.isPoll?l.poll:e.isRefetch?l.refetch:l.loading;var o=[];t&&t.graphQLErrors&&(o=t.graphQLErrors),this.store[e.queryId]={document:e.document,variables:e.variables,previousVariables:i,networkError:null,graphQLErrors:o,networkStatus:n,metadata:e.metadata},"string"==typeof e.fetchMoreForQueryId&&this.store[e.fetchMoreForQueryId]&&(this.store[e.fetchMoreForQueryId].networkStatus=l.fetchMore)},e.prototype.markQueryResult=function(e,t,n){this.store&&this.store[e]&&(this.store[e].networkError=null,this.store[e].graphQLErrors=y(t.errors)?t.errors:[],this.store[e].previousVariables=null,this.store[e].networkStatus=l.ready,"string"==typeof n&&this.store[n]&&(this.store[n].networkStatus=l.ready))},e.prototype.markQueryError=function(e,t,n){this.store&&this.store[e]&&(this.store[e].networkError=t,this.store[e].networkStatus=l.error,"string"==typeof n&&this.markQueryResultClient(n,!0))},e.prototype.markQueryResultClient=function(e,t){var n=this.store&&this.store[e];n&&(n.networkError=null,n.previousVariables=null,t&&(n.networkStatus=l.ready))},e.prototype.stopQuery=function(e){delete this.store[e]},e.prototype.reset=function(e){var t=this;Object.keys(this.store).forEach((function(n){e.indexOf(n)<0?t.stopQuery(n):t.store[n].networkStatus=l.loading}))},e}(),O=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=(0,u.Ee)(t.resolvers,e)})):this.resolvers=(0,u.Ee)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,l=e.onlyRunForcedResolvers,u=void 0!==l&&l;return a(this,void 0,void 0,(function(){return s(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,u).then((function(e){return o(o({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,u.FS)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return this.resolvers?(0,u.ob)(e):e},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.cache;return o(o({},e),{cache:t,getCacheKey:function(e){if(t.config)return t.config.dataIdFromObject(e);(0,h.kG)(!1,6)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),a(this,void 0,void 0,(function(){return s(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return o(o({},t),e.exportedVariables)}))]:[2,o({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,m.visit)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return m.BREAK}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,u.aL)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,i,l){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===l&&(l=!1),a(this,void 0,void 0,(function(){var a,c,d,f,p,h,m,g,v;return s(this,(function(s){var y;return a=(0,u.p$)(e),c=(0,u.kU)(e),d=(0,u.F)(c),f=a.operation,p=f?(y=f).charAt(0).toUpperCase()+y.slice(1):"Query",m=(h=this).cache,g=h.client,v={fragmentMap:d,context:o(o({},n),{cache:m,client:g}),variables:r,fragmentMatcher:i,defaultOperationType:p,exportedVariables:{},onlyRunForcedResolvers:l},[2,this.resolveSelectionSet(a.selectionSet,t,v).then((function(e){return{result:e,exportedVariables:v.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n){return a(this,void 0,void 0,(function(){var r,i,o,l,c,d=this;return s(this,(function(f){return r=n.fragmentMap,i=n.context,o=n.variables,l=[t],c=function(e){return a(d,void 0,void 0,(function(){var a,c;return s(this,(function(s){return(0,u.LZ)(e,o)?(0,u.My)(e)?[2,this.resolveField(e,t,n).then((function(t){var n;void 0!==t&&l.push(((n={})[(0,u.u2)(e)]=t,n))}))]:((0,u.Ao)(e)?a=e:(a=r[e.name.value],(0,h.kG)(a,7)),a&&a.typeCondition&&(c=a.typeCondition.name.value,n.fragmentMatcher(t,c,i))?[2,this.resolveSelectionSet(a.selectionSet,t,n).then((function(e){l.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(c)).then((function(){return(0,u.bw)(l)}))]}))}))},e.prototype.resolveField=function(e,t,n){return a(this,void 0,void 0,(function(){var r,i,o,a,l,c,d,f,p,h=this;return s(this,(function(s){return r=n.variables,i=e.name.value,o=(0,u.u2)(e),a=i!==o,l=t[o]||t[i],c=Promise.resolve(l),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(d=t.__typename||n.defaultOperationType,(f=this.resolvers&&this.resolvers[d])&&(p=f[a?i:o])&&(c=Promise.resolve(p(t,(0,u.NC)(e,r),n.context,{field:e,fragmentMap:n.fragmentMap})))),[2,c.then((function(t){return void 0===t&&(t=l),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?h.resolveSubSelectedArray(e,t,n):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0})))},e}();function A(e){var t=new Set,n=null;return new v((function(r){return t.add(r),n=n||e.subscribe({next:function(e){t.forEach((function(t){return t.next&&t.next(e)}))},error:function(e){t.forEach((function(t){return t.error&&t.error(e)}))},complete:function(){t.forEach((function(e){return e.complete&&e.complete()}))}}),function(){t.delete(r)&&!t.size&&n&&(n.unsubscribe(),n=null)}}))}var P=Object.prototype.hasOwnProperty,R=function(){function e(e){var t=e.link,n=e.queryDeduplication,r=void 0!==n&&n,i=e.store,o=e.onBroadcast,a=void 0===o?function(){}:o,s=e.ssrMode,l=void 0!==s&&s,c=e.clientAwareness,d=void 0===c?{}:c,f=e.localState,p=e.assumeImmutableResults;this.mutationStore=new C,this.queryStore=new T,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(u.mr?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=t,this.queryDeduplication=r,this.dataStore=i,this.onBroadcast=a,this.clientAwareness=d,this.localState=f||new O({cache:i.getCache()}),this.ssrMode=l,this.assumeImmutableResults=!!p}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.fetchQueryRejectFns.forEach((function(e){e(new h.ej(8))}))},e.prototype.mutate=function(e){var t=e.mutation,n=e.variables,r=e.optimisticResponse,i=e.updateQueries,l=e.refetchQueries,c=void 0===l?[]:l,d=e.awaitRefetchQueries,f=void 0!==d&&d,p=e.update,m=e.errorPolicy,g=void 0===m?"none":m,v=e.fetchPolicy,b=e.context,w=void 0===b?{}:b;return a(this,void 0,void 0,(function(){var e,a,l,d=this;return s(this,(function(s){switch(s.label){case 0:return(0,h.kG)(t,9),(0,h.kG)(!v||"no-cache"===v,10),e=this.generateQueryId(),t=this.transform(t).document,this.setQuery(e,(function(){return{document:t}})),n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,w)]:[3,2];case 1:n=s.sent(),s.label=2;case 2:return a=function(){var e={};return i&&d.queries.forEach((function(t,n){var r=t.observableQuery;if(r){var o=r.queryName;o&&P.call(i,o)&&(e[n]={updater:i[o],query:d.queryStore.get(n)})}})),e},this.mutationStore.initMutation(e,t,n),this.dataStore.markMutationInit({mutationId:e,document:t,variables:n,updateQueries:a(),update:p,optimisticResponse:r}),this.broadcastQueries(),l=this,[2,new Promise((function(i,s){var d,h;l.getObservableFromLink(t,o(o({},w),{optimisticResponse:r}),n,!1).subscribe({next:function(r){(0,u.d2)(r)&&"none"===g?h=new _({graphQLErrors:r.errors}):(l.mutationStore.markMutationResult(e),"no-cache"!==v&&l.dataStore.markMutationResult({mutationId:e,result:r,document:t,variables:n,updateQueries:a(),update:p}),d=r)},error:function(t){l.mutationStore.markMutationError(e,t),l.dataStore.markMutationComplete({mutationId:e,optimisticResponse:r}),l.broadcastQueries(),l.setQuery(e,(function(){return{document:null}})),s(new _({networkError:t}))},complete:function(){if(h&&l.mutationStore.markMutationError(e,h),l.dataStore.markMutationComplete({mutationId:e,optimisticResponse:r}),l.broadcastQueries(),h)s(h);else{"function"==typeof c&&(c=c(d));var t=[];y(c)&&c.forEach((function(e){if("string"==typeof e)l.queries.forEach((function(n){var r=n.observableQuery;r&&r.queryName===e&&t.push(r.refetch())}));else{var n={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(n.context=e.context),t.push(l.query(n))}})),Promise.all(f?t:[]).then((function(){l.setQuery(e,(function(){return{document:null}})),"ignore"===g&&d&&(0,u.d2)(d)&&delete d.errors,i(d)}))}}})}))]}}))}))},e.prototype.fetchQuery=function(e,t,n,r){return a(this,void 0,void 0,(function(){var i,a,l,c,d,f,p,h,m,g,v,y,x,k,E,S,C,T,O=this;return s(this,(function(s){switch(s.label){case 0:return i=t.metadata,a=void 0===i?null:i,l=t.fetchPolicy,c=void 0===l?"cache-first":l,d=t.context,f=void 0===d?{}:d,p=this.transform(t.query).document,h=this.getVariables(p,t.variables),this.transform(p).hasClientExports?[4,this.localState.addExportedVariables(p,h,f)]:[3,2];case 1:h=s.sent(),s.label=2;case 2:if(t=o(o({},t),{variables:h}),v=g="network-only"===c||"no-cache"===c,g||(y=this.dataStore.getCache().diff({query:p,variables:h,returnPartialData:!0,optimistic:!1}),x=y.complete,k=y.result,v=!x||"cache-and-network"===c,m=k),E=v&&"cache-only"!==c&&"standby"!==c,(0,u.FS)(["live"],p)&&(E=!0),S=this.idCounter++,C="no-cache"!==c?this.updateQueryWatch(e,p,t):void 0,this.setQuery(e,(function(){return{document:p,lastRequestId:S,invalidated:!0,cancel:C}})),this.invalidate(r),this.queryStore.initQuery({queryId:e,document:p,storePreviousVariables:E,variables:h,isPoll:n===w.poll,isRefetch:n===w.refetch,metadata:a,fetchMoreForQueryId:r}),this.broadcastQueries(),E){if(T=this.fetchRequest({requestId:S,queryId:e,document:p,options:t,fetchMoreForQueryId:r}).catch((function(t){throw b(t)?t:(S>=O.getQuery(e).lastRequestId&&(O.queryStore.markQueryError(e,t,r),O.invalidate(e),O.invalidate(r),O.broadcastQueries()),new _({networkError:t}))})),"cache-and-network"!==c)return[2,T];T.catch((function(){}))}return this.queryStore.markQueryResultClient(e,!E),this.invalidate(e),this.invalidate(r),this.transform(p).hasForcedResolvers?[2,this.localState.runResolvers({document:p,remoteResult:{data:m},context:f,variables:h,onlyRunForcedResolvers:!0}).then((function(n){return O.markQueryResult(e,n,t,r),O.broadcastQueries(),n}))]:(this.broadcastQueries(),[2,{data:m}])}}))}))},e.prototype.markQueryResult=function(e,t,n,r){var i=n.fetchPolicy,o=n.variables,a=n.errorPolicy;"no-cache"===i?this.setQuery(e,(function(){return{newData:{result:t.data,complete:!0}}})):this.dataStore.markQueryResult(t,this.getQuery(e).document,o,r,"ignore"===a||"all"===a)},e.prototype.queryListenerForObserver=function(e,t,n){var r=this;function i(e,t){if(n[e])try{n[e](t)}catch(e){}}return function(n,o){if(r.invalidate(e,!1),n){var a=r.getQuery(e),s=a.observableQuery,l=a.document,u=s?s.options.fetchPolicy:t.fetchPolicy;if("standby"!==u){var c=g(n.networkStatus),d=s&&s.getLastResult(),f=!(!d||d.networkStatus===n.networkStatus),p=t.returnPartialData||!o&&n.previousVariables||f&&t.notifyOnNetworkStatusChange||"cache-only"===u||"cache-and-network"===u;if(!c||p){var h=y(n.graphQLErrors),m=s&&s.options.errorPolicy||t.errorPolicy||"none";if("none"===m&&h||n.networkError)return i("error",new _({graphQLErrors:n.graphQLErrors,networkError:n.networkError}));try{var v=void 0,b=void 0;if(o)"no-cache"!==u&&"network-only"!==u&&r.setQuery(e,(function(){return{newData:null}})),v=o.result,b=!o.complete;else{var w=s&&s.getLastError(),x="none"!==m&&(w&&w.graphQLErrors)!==n.graphQLErrors;if(d&&d.data&&!x)v=d.data,b=!1;else{var k=r.dataStore.getCache().diff({query:l,variables:n.previousVariables||n.variables,returnPartialData:!0,optimistic:!0});v=k.result,b=!k.complete}}var E=b&&!(t.returnPartialData||"cache-only"===u),S={data:E?d&&d.data:v,loading:c,networkStatus:n.networkStatus,stale:E};"all"===m&&h&&(S.errors=n.graphQLErrors),i("next",S)}catch(e){i("error",new _({networkError:e}))}}}}}},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var n=this.dataStore.getCache(),r=n.transformDocument(e),i=(0,u.Fo)(n.transformForLink(r)),o=this.localState.clientQuery(r),a=this.localState.serverQuery(i),s={document:r,hasClientExports:(0,u.mj)(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:(0,u.O4)((0,u.$H)(r))},l=function(e){e&&!t.has(e)&&t.set(e,s)};l(e),l(r),l(o),l(a)}return t.get(e)},e.prototype.getVariables=function(e,t){return o(o({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e,t){void 0===t&&(t=!0),(0,h.kG)("standby"!==e.fetchPolicy,11),e.variables=this.getVariables(e.query,e.variables),void 0===e.notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=o({},e);return new x({queryManager:this,options:n,shouldSubscribe:t})},e.prototype.query=function(e){var t=this;return(0,h.kG)(e.query,12),(0,h.kG)("Document"===e.query.kind,13),(0,h.kG)(!e.returnPartialData,14),(0,h.kG)(!e.pollInterval,15),new Promise((function(n,r){var i=t.watchQuery(e,!1);t.fetchQueryRejectFns.set("query:"+i.queryId,r),i.result().then(n,r).then((function(){return t.fetchQueryRejectFns.delete("query:"+i.queryId)}))}))},e.prototype.generateQueryId=function(){return String(this.idCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){this.stopPollingQuery(e),this.queryStore.stopQuery(e),this.invalidate(e)},e.prototype.addQueryListener=function(e,t){this.setQuery(e,(function(e){return e.listeners.add(t),{invalidated:!1}}))},e.prototype.updateQueryWatch=function(e,t,n){var r=this,i=this.getQuery(e).cancel;return i&&i(),this.dataStore.getCache().watch({query:t,variables:n.variables,optimistic:!0,previousResult:function(){var t=null,n=r.getQuery(e).observableQuery;if(n){var i=n.getLastResult();i&&(t=i.data)}return t},callback:function(t){r.setQuery(e,(function(){return{invalidated:!0,newData:t}}))}})},e.prototype.addObservableQuery=function(e,t){this.setQuery(e,(function(){return{observableQuery:t}}))},e.prototype.removeObservableQuery=function(e){var t=this.getQuery(e).cancel;this.setQuery(e,(function(){return{observableQuery:null}})),t&&t()},e.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach((function(e){e(new h.ej(16))}));var e=[];return this.queries.forEach((function(t,n){t.observableQuery&&e.push(n)})),this.queryStore.reset(e),this.mutationStore.reset(),this.dataStore.reset()},e.prototype.resetStore=function(){var e=this;return this.clearStore().then((function(){return e.reFetchObservableQueries()}))},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.queries.forEach((function(r,i){var o=r.observableQuery;if(o){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!e&&"standby"===a||n.push(o.refetch()),t.setQuery(i,(function(){return{newData:null}})),t.invalidate(i)}})),this.broadcastQueries(),Promise.all(n)},e.prototype.observeQuery=function(e,t,n){return this.addQueryListener(e,this.queryListenerForObserver(e,t,n)),this.fetchQuery(e,t)},e.prototype.startQuery=function(e,t,n){return this.addQueryListener(e,n),this.fetchQuery(e,t).catch((function(){})),e},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.variables;n=this.transform(n).document,i=this.getVariables(n,i);var o=function(e){return t.getObservableFromLink(n,{},e,!1).map((function(i){if(r&&"no-cache"===r||(t.dataStore.markSubscriptionResult(i,n,e),t.broadcastQueries()),(0,u.d2)(i))throw new _({graphQLErrors:i.errors});return i}))};if(this.transform(n).hasClientExports){var a=this.localState.addExportedVariables(n,i).then(o);return new v((function(e){var t=null;return a.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return o(i)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchQueryRejectFns.delete("query:"+e),this.fetchQueryRejectFns.delete("fetchRequest:"+e),this.getQuery(e).subscriptions.forEach((function(e){return e.unsubscribe()})),this.queries.delete(e)},e.prototype.getCurrentQueryResult=function(e,t){void 0===t&&(t=!0);var n=e.options,r=n.variables,i=n.query,o=n.fetchPolicy,a=n.returnPartialData,s=e.getLastResult(),l=this.getQuery(e.queryId).newData;if(l&&l.complete)return{data:l.result,partial:!1};if("no-cache"===o||"network-only"===o)return{data:void 0,partial:!1};var u=this.dataStore.getCache().diff({query:i,variables:r,previousResult:s?s.data:void 0,returnPartialData:!0,optimistic:t}),c=u.result,d=u.complete;return{data:d||a?c:void 0,partial:!d}},e.prototype.getQueryWithPreviousResult=function(e){var t;if("string"==typeof e){var n=this.getQuery(e).observableQuery;(0,h.kG)(n,17),t=n}else t=e;var r=t.options,i=r.variables,o=r.query;return{previousResult:this.getCurrentQueryResult(t,!1).data,variables:i,document:o}},e.prototype.broadcastQueries=function(){var e=this;this.onBroadcast(),this.queries.forEach((function(t,n){t.invalidated&&t.listeners.forEach((function(r){r&&r(e.queryStore.get(n),t.newData)}))}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var i,a=this;void 0===r&&(r=this.queryDeduplication);var s=this.transform(e).serverQuery;if(s){var l=this.inFlightLinkObservables,c=this.link,d={query:s,variables:n,operationName:(0,u.rY)(s)||void 0,context:this.prepareContext(o(o({},t),{forceFetch:!r}))};if(t=d.context,r){var p=l.get(s)||new Map;l.set(s,p);var h=JSON.stringify(n);if(!(i=p.get(h))){p.set(h,i=A((0,f.ht)(c,d)));var m=function(){p.delete(h),p.size||l.delete(s),g.unsubscribe()},g=i.subscribe({next:m,error:m,complete:m})}}else i=A((0,f.ht)(c,d))}else i=v.of({data:{}}),t=this.prepareContext(t);var y=this.transform(e).clientQuery;return y&&(i=function(e,r){return new v((function(r){var i=r.next,o=r.error,s=r.complete,l=0,u=!1,c={next:function(e){++l,new Promise((function(r){var i;r((i=e,a.localState.runResolvers({document:y,remoteResult:i,context:t,variables:n})))})).then((function(e){--l,i&&i.call(r,e),u&&c.complete()}),(function(e){--l,o&&o.call(r,e)}))},error:function(e){o&&o.call(r,e)},complete:function(){u=!0,l||s&&s.call(r)}},d=e.subscribe(c);return function(){return d.unsubscribe()}}))}(i)),i},e.prototype.fetchRequest=function(e){var t,n,r=this,i=e.requestId,o=e.queryId,a=e.document,s=e.options,u=e.fetchMoreForQueryId,c=s.variables,d=s.errorPolicy,f=void 0===d?"none":d,p=s.fetchPolicy;return new Promise((function(e,d){var h=r.getObservableFromLink(a,s.context,c),m="fetchRequest:"+o;r.fetchQueryRejectFns.set(m,d);var g=function(){r.fetchQueryRejectFns.delete(m),r.setQuery(o,(function(e){e.subscriptions.delete(v)}))},v=h.map((function(e){if(i>=r.getQuery(o).lastRequestId&&(r.markQueryResult(o,e,s,u),r.queryStore.markQueryResult(o,e,u),r.invalidate(o),r.invalidate(u),r.broadcastQueries()),"none"===f&&y(e.errors))return d(new _({graphQLErrors:e.errors}));if("all"===f&&(n=e.errors),u||"no-cache"===p)t=e.data;else{var l=r.dataStore.getCache().diff({variables:c,query:a,optimistic:!1,returnPartialData:!0}),h=l.result;(l.complete||s.returnPartialData)&&(t=h)}})).subscribe({error:function(e){g(),d(e)},complete:function(){g(),e({data:t,errors:n,loading:!1,networkStatus:l.ready,stale:!1})}});r.setQuery(o,(function(e){e.subscriptions.add(v)}))}))},e.prototype.getQuery=function(e){return this.queries.get(e)||{listeners:new Set,invalidated:!1,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}},e.prototype.setQuery=function(e,t){var n=this.getQuery(e),r=o(o({},n),t(n));this.queries.set(e,r)},e.prototype.invalidate=function(e,t){void 0===t&&(t=!0),e&&this.setQuery(e,(function(){return{invalidated:t}}))},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return o(o({},t),{clientAwareness:this.clientAwareness})},e.prototype.checkInFlight=function(e){var t=this.queryStore.get(e);return t&&t.networkStatus!==l.ready&&t.networkStatus!==l.error},e.prototype.startPollingQuery=function(e,t,n){var r=this,i=e.pollInterval;if((0,h.kG)(i,18),!this.ssrMode){var a=this.pollingInfoByQueryId.get(t);a||this.pollingInfoByQueryId.set(t,a={}),a.interval=i,a.options=o(o({},e),{fetchPolicy:"network-only"});var s=function(){var e=r.pollingInfoByQueryId.get(t);e&&(r.checkInFlight(t)?l():r.fetchQuery(t,e.options,w.poll).then(l,l))},l=function(){var e=r.pollingInfoByQueryId.get(t);e&&(clearTimeout(e.timeout),e.timeout=setTimeout(s,e.interval))};n&&this.addQueryListener(t,n),l()}return t},e.prototype.stopPollingQuery=function(e){this.pollingInfoByQueryId.delete(e)},e}(),D=function(){function e(e){this.cache=e}return e.prototype.getCache=function(){return this.cache},e.prototype.markQueryResult=function(e,t,n,r,i){void 0===i&&(i=!1);var o=!(0,u.d2)(e);i&&(0,u.d2)(e)&&e.data&&(o=!0),!r&&o&&this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:t,variables:n})},e.prototype.markSubscriptionResult=function(e,t,n){(0,u.d2)(e)||this.cache.write({result:e.data,dataId:"ROOT_SUBSCRIPTION",query:t,variables:n})},e.prototype.markMutationInit=function(e){var t,n=this;e.optimisticResponse&&(t="function"==typeof e.optimisticResponse?e.optimisticResponse(e.variables):e.optimisticResponse,this.cache.recordOptimisticTransaction((function(r){var i=n.cache;n.cache=r;try{n.markMutationResult({mutationId:e.mutationId,result:{data:t},document:e.document,variables:e.variables,updateQueries:e.updateQueries,update:e.update})}finally{n.cache=i}}),e.mutationId))},e.prototype.markMutationResult=function(e){var t=this;if(!(0,u.d2)(e.result)){var n=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],r=e.updateQueries;r&&Object.keys(r).forEach((function(i){var o=r[i],a=o.query,s=o.updater,l=t.cache.diff({query:a.document,variables:a.variables,returnPartialData:!0,optimistic:!1}),c=l.result;if(l.complete){var d=(0,u.XY)((function(){return s(c,{mutationResult:e.result,queryName:(0,u.rY)(a.document)||void 0,queryVariables:a.variables})}));d&&n.push({result:d,dataId:"ROOT_QUERY",query:a.document,variables:a.variables})}})),this.cache.performTransaction((function(t){n.forEach((function(e){return t.write(e)}));var r=e.update;r&&(0,u.XY)((function(){return r(t,e.result)}))}))}},e.prototype.markMutationComplete=function(e){var t=e.mutationId;e.optimisticResponse&&this.cache.removeOptimistic(t)},e.prototype.markUpdateQueryResult=function(e,t,n){this.cache.write({result:n,dataId:"ROOT_QUERY",variables:t,query:e})},e.prototype.reset=function(){return this.cache.reset()},e}(),M=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.cache,r=e.ssrMode,i=void 0!==r&&r,o=e.ssrForceFetchDelay,a=void 0===o?0:o,s=e.connectToDevTools,l=e.queryDeduplication,u=void 0===l||l,c=e.defaultOptions,d=e.assumeImmutableResults,p=void 0!==d&&d,m=e.resolvers,g=e.typeDefs,v=e.fragmentMatcher,y=e.name,b=e.version,w=e.link;if(!w&&m&&(w=f.i0.empty()),!w||!n)throw new h.ej(4);this.link=w,this.cache=n,this.store=new D(n),this.disableNetworkFetches=i||a>0,this.queryDeduplication=u,this.defaultOptions=c||{},this.typeDefs=g,a&&setTimeout((function(){return t.disableNetworkFetches=!1}),a),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),void 0!==s&&s&&"undefined"!=typeof window&&(window.__APOLLO_CLIENT__=this),this.version="2.6.10",this.localState=new O({cache:n,client:this,resolvers:m,fragmentMatcher:v}),this.queryManager=new R({link:this.link,store:this.store,queryDeduplication:u,ssrMode:i,clientAwareness:{name:y,version:b},localState:this.localState,assumeImmutableResults:p,onBroadcast:function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.queryStore.getStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.cache.extract(!0)})}})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=o(o({},this.defaultOptions.watchQuery),e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=o(o({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=o(o({},this.defaultOptions.query),e)),(0,h.kG)("cache-and-network"!==e.fetchPolicy,5),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=o(o({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=o(o({},this.defaultOptions.mutate),e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeData=function(e){var t=this.cache.writeData(e);return this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return(0,f.ht)(this.link,e)},e.prototype.initQueryManager=function(){return this.queryManager},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e}();const I=M},96044:(e,t,n)=>{"use strict";n.r(t),n.d(t,{setContext:()=>o});var r=n(38249),i=n(45526);function o(e){return new r.i0((function(t,n){var r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{"use strict";n.r(t),n.d(t,{HttpLink:()=>h,createHttpLink:()=>p});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=300&&d(e,t,"Response not successful: Received status code "+e.status),Array.isArray(t)||t.hasOwnProperty("data")||t.hasOwnProperty("errors")||d(e,t,"Server response was missing for query '"+(Array.isArray(i)?i.map((function(e){return e.operationName})):i.operationName)+"'."),t}))})).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){b&&b.abort()}}))}))},h=function(e){function t(t){return e.call(this,p(t).request)||this}return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(o.i0)},38249:(e,t,n)=>{"use strict";n.d(t,{i0:()=>g,ht:()=>v,Qc:()=>c});var r,i=n(45526),o=n(21726),a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},a(e,t)},s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";n.d(t,{Gw:()=>U,NC:()=>p,f0:()=>C,aL:()=>H,mr:()=>G,Xh:()=>Z,F:()=>M,O4:()=>I,Qy:()=>w,kU:()=>P,Yk:()=>S,p$:()=>D,$H:()=>O,rY:()=>A,iW:()=>R,PT:()=>f,d2:()=>te,mj:()=>k,FS:()=>x,My:()=>m,cQ:()=>v,Ao:()=>g,v4:()=>b,yv:()=>Q,Y8:()=>J,Ee:()=>re,bw:()=>ie,ob:()=>V,Fo:()=>W,u2:()=>h,LZ:()=>_,vf:()=>c,aX:()=>y,XY:()=>ee});var r=n(82624),i=n(21726),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i=t,o={};return r.forEach((function(e){o[e]=i[e]})),n.connection.key+"("+JSON.stringify(o)+")"}return n.connection.key}var a=e;if(t){var s=l()(t);a+="("+s+")"}return n&&Object.keys(n).forEach((function(e){-1===d.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@"+e+"("+JSON.stringify(n[e])+")":a+="@"+e)})),a}function p(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return u(n,r,i,t)})),n}return null}function h(e){return e.alias?e.alias.value:e.name.value}function m(e){return"Field"===e.kind}function g(e){return"InlineFragment"===e.kind}function v(e){return e&&"id"===e.type&&"boolean"==typeof e.generated}function y(e,t){return void 0===t&&(t=!1),o({type:"id",generated:t},"string"==typeof e?{id:e,typename:void 0}:e)}function b(e){return null!=e&&"object"==typeof e&&"json"===e.type}function w(e,t){if(e.directives&&e.directives.length){var n={};return e.directives.forEach((function(e){n[e.name.value]=p(e,t)})),n}return null}function _(e,t){return void 0===t&&(t={}),(n=e.directives,n?n.filter(E).map((function(e){var t=e.arguments;e.name.value,(0,i.kG)(t&&1===t.length,14);var n=t[0];(0,i.kG)(n.name&&"if"===n.name.value,15);var r=n.value;return(0,i.kG)(r&&("Variable"===r.kind||"BooleanValue"===r.kind),16),{directive:e,ifArgument:n}})):[]).every((function(e){var n=e.directive,r=e.ifArgument,o=!1;return"Variable"===r.value.kind?(o=t[r.value.name.value],(0,i.kG)(void 0!==o,13)):o=r.value.value,"skip"===n.name.value?!o:o}));var n}function x(e,t){return function(e){var t=[];return(0,r.visit)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function k(e){return e&&x(["client"],e)&&x(["export"],e)}function E(e){var t=e.name.value;return"skip"===t||"include"===t}function S(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new i.ej(11);"FragmentDefinition"===e.kind&&r.push(e)})),void 0===n&&((0,i.kG)(1===r.length,12),n=r[0].name.value),o(o({},e),{definitions:a([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions)})}function C(e){for(var t=[],n=1;n1){var r=[];t=se(t,r);for(var i=1;i{"use strict";var r=n(67286),i=n(62680),o=r("%TypeError%"),a=n(31818),s=n(22566),l=n(99732),u=n(13125),c=n(3158),d=n(59869),f=n(24158),p=n(26302),h=i("String.prototype.split"),m=Object("a"),g="a"!==m[0]||!(0 in m);e.exports=function(e){var t,n=d(this),r=g&&p(this)?h(this,""):n,i=c(r);if(!u(e))throw new o("Array.prototype.forEach callback must be a function");arguments.length>1&&(t=arguments[1]);for(var m=0;m{"use strict";var r=n(14926),i=n(89429),o=n(62680),a=n(62183),s=n(85692),l=n(25970),u=l(),c=n(89055),d=o("Array.prototype.slice"),f=i.apply(u),p=function(e,t){return a(e),f(e,d(arguments,1))};r(p,{getPolyfill:l,implementation:s,shim:c}),e.exports=p},25970:(e,t,n)=>{"use strict";var r=n(63937),i=n(85692);e.exports=function(){var e=Array.prototype.forEach;return r(e)?e:i}},89055:(e,t,n)=>{"use strict";var r=n(14926),i=n(25970);e.exports=function(){var e=i();return r(Array.prototype,{forEach:e},{forEach:function(){return Array.prototype.forEach!==e}}),e}},59629:(e,t,n)=>{"use strict";var r=n(84185),i=n(55281),o=n(59405),a=n(48638),s=n(34554),l=n(38589),u=n(12318),c=n(17134),d=n(58908),f=n(99307),p=R(n(67353)),h=R(n(82133)),m=R(n(53651)),g=R(n(79386)),v=R(n(76889)),y=R(n(31540)),b=R(n(79425)),w=R(n(57677)),_=R(n(16044)),x=R(n(73884)),k=R(n(56293)),E=R(n(71515)),S=R(n(23827)),C=R(n(15646)),T=R(n(4875)),O=R(n(40299)),A=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=P(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(92035));function P(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(P=function(e){return e?n:t})(e)}function R(e){return e&&e.__esModule?e:{default:e}}r.DecapCmsCore.registerBackend("git-gateway",u.GitGatewayBackend),r.DecapCmsCore.registerBackend("azure",i.AzureBackend),r.DecapCmsCore.registerBackend("aws-cognito-github-proxy",o.AwsCognitoGitHubProxyBackend),r.DecapCmsCore.registerBackend("github",a.GitHubBackend),r.DecapCmsCore.registerBackend("gitlab",s.GitLabBackend),r.DecapCmsCore.registerBackend("gitea",l.GiteaBackend),r.DecapCmsCore.registerBackend("bitbucket",c.BitbucketBackend),r.DecapCmsCore.registerBackend("test-repo",d.TestBackend),r.DecapCmsCore.registerBackend("proxy",f.ProxyBackend),r.DecapCmsCore.registerWidget([p.default.Widget(),h.default.Widget(),m.default.Widget(),g.default.Widget(),v.default.Widget(),y.default.Widget(),b.default.Widget(),w.default.Widget(),_.default.Widget(),x.default.Widget(),k.default.Widget(),E.default.Widget(),S.default.Widget(),C.default.Widget(),T.default.Widget()]),r.DecapCmsCore.registerEditorComponent(O.default),r.DecapCmsCore.registerEditorComponent({id:"code-block",label:"Code Block",widget:"code",type:"code-block"}),Object.keys(A).forEach((e=>{r.DecapCmsCore.registerLocale(e,A[e])}))},48059:(e,t,n)=>{"use strict";t.de=void 0;var r=n(84185);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}n(59629),"undefined"!=typeof window&&console.log("decap-cms-app 3.1.10"),t.de=function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=u(n(2784)),o=u(n(13980)),a=n(76320),s=n(30762),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=(0,r.default)(s.Icon,{target:"e1eykva80",label:"LoginButtonIcon"})({name:"1gnqu05",styles:"margin-right:18px"});class f extends i.default.Component{constructor(...e){super(...e),c(this,"state",{}),c(this,"handleLogin",(e=>{e.preventDefault(),this.auth.authenticate({scope:"https://api.github.com/repo openid email"},((e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)}))}))}componentDidMount(){const{base_url:e="",app_id:t="",auth_endpoint:n="oauth2/authorize",auth_token_endpoint:r="oauth2/token"}=this.props.config.backend;this.auth=new a.PkceAuthenticator({base_url:e,auth_endpoint:n,app_id:t,auth_token_endpoint:r,auth_token_endpoint_content_type:"application/x-www-form-urlencoded; charset=utf-8"}),this.auth.completeAuth(((e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)}))}render(){const{inProgress:e,config:t,t:n}=this.props;return(0,l.jsx)(s.AuthenticationPage,{onLogin:this.handleLogin,loginDisabled:e,loginErrorMessage:this.state.loginError,logoUrl:t.logo_url,siteUrl:t.site_url,renderButtonContent:()=>(0,l.jsx)(i.default.Fragment,null,(0,l.jsx)(d,{type:"link"})," ",n(e?"auth.loggingIn":"auth.login")),t:n})}}t.default=f,c(f,"propTypes",{inProgress:o.default.bool,config:o.default.object.isRequired,onLogin:o.default.func.isRequired,t:o.default.func.isRequired})},43642:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r)}(n(2784));var r,i=n(48638),o=(r=n(79710))&&r.__esModule?r:{default:r},a=n(28165);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t(0,a.jsx)(o.default,l({},e,{backend:this}));return e.displayName="AuthenticationPage",e}async currentUser({token:e}){return this._currentUserPromise||(this._currentUserPromise=fetch(this.baseUrl+"/oauth2/userInfo",{headers:{Authorization:`${this.tokenKeyword} ${e}`}}).then((async e=>{if(401==e.status)return this.logout(),Promise.reject("Token expired");const t=await e.json(),n=this.originRepo.split("/")[1];return{name:t.email,login:n,avatar_url:`https://github.com/${n}.png`}}))),this._currentUserPromise}}t.default=u},59405:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"API",{enumerable:!0,get:function(){return r.API}}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"AwsCognitoGitHubProxyBackend",{enumerable:!0,get:function(){return i.default}}),t.DecapCmsBackendAwsCognitoGithubProxy=void 0;var r=n(48638),i=a(n(43642)),o=a(n(79710));function a(e){return e&&e.__esModule?e:{default:e}}t.DecapCmsBackendAwsCognitoGithubProxy={AwsCognitoGitHubProxyBackend:i.default,API:r.API,AuthenticationPage:o.default}},96667:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.API_NAME=void 0;var r=c(n(93433)),i=c(n(5648)),o=c(n(36346)),a=c(n(83465)),s=n(95978),l=n(33806),u=n(21023);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;tsetTimeout(t,e)))}function k(e){switch(e.action){case v.ADD:return{changeType:v.ADD,item:{path:e.path},newContent:{content:e.base64Content,contentType:y.BASE64}};case v.EDIT:return{changeType:v.EDIT,item:{path:e.path},newContent:{content:e.base64Content,contentType:y.BASE64}};case v.DELETE:return{changeType:v.DELETE,item:{path:e.path}};case v.RENAME:return{changeType:v.RENAME,item:{path:e.path},sourceServerItem:e.oldPath};default:return{}}}t.default=class{constructor(e,t){p(this,"apiVersion",void 0),p(this,"token",void 0),p(this,"branch",void 0),p(this,"mergeStrategy",void 0),p(this,"endpointUrl",void 0),p(this,"initialWorkflowStatus",void 0),p(this,"cmsLabelPrefix",void 0),p(this,"withHeaders",(e=>l.unsentRequest.withHeaders({Authorization:`Bearer ${this.token}`,"Content-Type":"application/json; charset=utf-8"},e))),p(this,"withAzureFeatures",(e=>e.hasIn(["params",m])?e:l.unsentRequest.withParams({[m]:`${this.apiVersion}`},e))),p(this,"buildRequest",(e=>{const t=this.withHeaders(e),n=this.withAzureFeatures(t);return n.has("cache")?n:l.unsentRequest.withNoCache(n)})),p(this,"request",(e=>{try{return(0,l.requestWithBackoff)(this,e)}catch(e){throw new l.APIError(e.message,null,h)}})),p(this,"responseToJSON",(0,l.responseParser)({format:"json",apiName:h})),p(this,"responseToBlob",(0,l.responseParser)({format:"blob",apiName:h})),p(this,"responseToText",(0,l.responseParser)({format:"text",apiName:h})),p(this,"requestJSON",(e=>this.request(e).then(this.responseToJSON))),p(this,"requestText",(e=>this.request(e).then(this.responseToText))),p(this,"toBase64",(e=>Promise.resolve(s.Base64.encode(e)))),p(this,"fromBase64",(e=>s.Base64.decode(e))),p(this,"branchToRef",(e=>`refs/heads/${e}`)),p(this,"refToBranch",(e=>e.slice(11))),p(this,"user",(async()=>{var e,t,n,r,i,o,a;const s=await this.requestJSON({url:"https://app.vssps.visualstudio.com/_apis/profile/profiles/me",params:{[m]:"6.1-preview.2"}}),l=null===(e=s.coreAttributes)||void 0===e||null===(t=e.DisplayName)||void 0===t?void 0:t.value,u=null===(n=s.coreAttributes)||void 0===n||null===(r=n.EmailAddress)||void 0===r?void 0:r.value;return{name:l||u||"",avatar_url:`data:image/png;base64,${null===(i=s.coreAttributes)||void 0===i||null===(o=i.Avatar)||void 0===o||null===(a=o.value)||void 0===a?void 0:a.value}`,email:u}})),p(this,"readFile",((e,t,{parseText:n=!0,branch:r=this.branch}={})=>(0,l.readFile)(t,(()=>this.request({url:`${this.endpointUrl}/items/`,params:{version:r,path:e},cache:"no-store"}).then(n?this.responseToText:this.responseToBlob)),l.localForage,n))),p(this,"listFiles",(async(e,t,n=this.branch)=>{try{const{value:i}=await this.requestJSON({url:`${this.endpointUrl}/items/`,params:{version:n,scopePath:e,recursionLevel:t?"full":"oneLevel"}});return i.filter((e=>e.gitObjectType===_.BLOB)).map((e=>({id:e.objectId,path:(0,r.default)(e.path,"/"),name:(0,u.basename)(e.path)})))}catch(e){if(e&&404===e.status)return console.log("This 404 was expected and handled appropriately."),[];throw e}}));const{repo:n}=e,o=(0,i.default)(e.apiRoot,"/");this.endpointUrl=`${o}/${n.org}/${n.project}/_apis/git/repositories/${n.repoName}`,this.token=t,this.branch=e.branch,this.mergeStrategy=e.squashMerges?"squash":"noFastForward",this.initialWorkflowStatus=e.initialWorkflowStatus,this.apiVersion=e.apiVersion,this.cmsLabelPrefix=e.cmsLabelPrefix}async readFileMetadata(e,t,{branch:n=this.branch}={}){return await(0,l.readFileMetadata)(t,(async()=>{try{const{value:t}=await this.requestJSON({url:`${this.endpointUrl}/commits/`,params:{"searchCriteria.itemPath":e,"searchCriteria.itemVersion.version":n,"searchCriteria.$top":1}}),[r]=t;return{author:r.author.name||r.author.email,updatedOn:r.author.date}}catch(e){return{author:"",updatedOn:""}}}),l.localForage)}async getRef(e=this.branch){const{value:t}=await this.requestJSON({url:`${this.endpointUrl}/refs`,params:{$top:"1",filter:"heads/"+e}});return t.find((t=>t.name==this.branchToRef(e)))}async deleteRef(e){const t=[{name:e.name,oldObjectId:e.objectId,newObjectId:"0000000000000000000000000000000000000000"}];await this.requestJSON({method:"POST",url:`${this.endpointUrl}/refs`,body:JSON.stringify(t)})}async uploadAndCommit(e,t,n,r){const i=await this.getRef(r?this.branch:n),o={refUpdates:[{name:this.branchToRef(n),oldObjectId:i.objectId}],commits:[{comment:t,changes:e.map((e=>k(e)))}]};return this.requestJSON({url:`${this.endpointUrl}/pushes`,method:"POST",body:JSON.stringify(o)})}async retrieveUnpublishedEntryData(e){var t,n;const{collection:i,slug:o}=(0,l.parseContentKey)(e),a=(0,l.branchFromContentKey)(e),s=await this.getBranchPullRequest(a),u=await this.getDifferences(s.sourceRefName),c=await Promise.all(u.map((async e=>{const t=(0,r.default)(e.item.path,"/"),n=e.changeType===v.ADD;return{id:e.item.objectId,path:t,newFile:n}}))),d=s.labels.find((e=>(0,l.isCMSLabel)(e.name,this.cmsLabelPrefix))),f=d&&d.name?d.name:this.cmsLabelPrefix;return{collection:i,slug:o,status:(0,l.labelToStatus)(f,this.cmsLabelPrefix),diffs:c,updatedAt:s.closedDate?s.closedDate:s.creationDate,pullRequestAuthor:(null===(t=s.createdBy)||void 0===t?void 0:t.displayName)||(null===(n=s.createdBy)||void 0===n?void 0:n.uniqueName)}}async getPullRequestStatues(e){const{value:t}=await this.requestJSON({url:`${this.endpointUrl}/pullrequests/${e.pullRequestId}/commits`,params:{$top:1}}),{value:n}=await this.requestJSON({url:`${this.endpointUrl}/commits/${t[0].commitId}/statuses`,params:{latestOnly:!0}});return n}async getStatuses(e,t){const n=(0,l.generateContentKey)(e,t),r=(0,l.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);return(await this.getPullRequestStatues(i)).map((({context:e,state:t,targetUrl:n})=>({context:e.name,state:t===g.SUCCEEDED?l.PreviewState.Success:l.PreviewState.Other,target_url:n})))}async getCommitItems(e,t){const n=await Promise.all(e.map((async e=>{const[n,r]=await Promise.all([(0,o.default)(e,"toBase64",(0,a.default)(this.toBase64,e.raw)),this.isFileExists(e.path,t)]),i=e.newPath||e.path,s=e.path,l=i!==s?v.RENAME:v.EDIT;return{action:r?l:v.ADD,base64Content:n,path:i,oldPath:s}})));for(const e of n.filter((e=>e.oldPath&&e.action===v.RENAME))){const r=(0,u.dirname)(e.oldPath),i=(0,u.dirname)(e.path);(await this.listFiles(r,!0,t)).filter((t=>t.path!==e.oldPath)).forEach((e=>{n.push({action:v.RENAME,path:e.path.replace(r,i),oldPath:e.path})}))}return n}async persistFiles(e,t,n){const r=[...e,...t];if(n.useWorkflow){const t=e[0].slug;return this.editorialWorkflowGit(r,t,n)}{const e=await this.getCommitItems(r,this.branch);return this.uploadAndCommit(e,n.commitMessage,this.branch,!0)}}async deleteFiles(e,t){const n=await this.getRef(this.branch),r={refUpdates:[{name:n.name,oldObjectId:n.objectId}],commits:[{comment:t,changes:e.map((e=>k({action:v.DELETE,path:e})))}]};return this.requestJSON({url:`${this.endpointUrl}/pushes`,method:"POST",body:JSON.stringify(r)})}async getPullRequests(e){const{value:t}=await this.requestJSON({url:`${this.endpointUrl}/pullrequests`,params:f({"searchCriteria.status":"active","searchCriteria.targetRefName":this.branchToRef(this.branch),"searchCriteria.includeLinks":!1},e?{"searchCriteria.sourceRefName":this.branchToRef(e)}:{})});return t.filter((e=>e.labels.some((e=>(0,l.isCMSLabel)(e.name,this.cmsLabelPrefix)))))}async listUnpublishedBranches(){return(await this.getPullRequests()).map((e=>this.refToBranch(e.sourceRefName)))}async isFileExists(e,t){try{return await this.requestText({url:`${this.endpointUrl}/items/`,params:{version:t,path:e},cache:"no-store"}),!0}catch(e){if(e instanceof l.APIError&&404===e.status)return!1;throw e}}async createPullRequest(e,t,n){const r={sourceRefName:this.branchToRef(e),targetRefName:this.branchToRef(this.branch),title:t,description:l.DEFAULT_PR_BODY,labels:[{name:(0,l.statusToLabel)(n,this.cmsLabelPrefix)}]};await this.requestJSON({method:"POST",url:`${this.endpointUrl}/pullrequests`,params:{supportsIterations:!1},body:JSON.stringify(r)})}async getBranchPullRequest(e){const t=await this.getPullRequests(e);if(t.length<=0)throw new l.EditorialWorkflowError("content is not under editorial workflow",!0);return t[0]}async getDifferences(e){return(await this.requestJSON({url:`${this.endpointUrl}/diffs/commits`,params:{baseVersion:this.branch,targetVersion:this.refToBranch(e)}})).changes.filter((e=>e.item.gitObjectType===_.BLOB&&Object.values(v).includes(e.changeType)))}async editorialWorkflowGit(e,t,n){const r=(0,l.generateContentKey)(n.collectionName,t),i=(0,l.branchFromContentKey)(r);if(n.unpublished){const t=await this.getCommitItems(e,i);await this.uploadAndCommit(t,n.commitMessage,i,!1)}else{const t=await this.getCommitItems(e,this.branch);await this.uploadAndCommit(t,n.commitMessage,i,!0),await this.createPullRequest(i,n.commitMessage,n.status||this.initialWorkflowStatus)}}async updateUnpublishedEntryStatus(e,t,n){const r=(0,l.generateContentKey)(e,t),i=(0,l.branchFromContentKey)(r),o=await this.getBranchPullRequest(i),a=[...o.labels.filter((e=>!(0,l.isCMSLabel)(e.name,this.cmsLabelPrefix))).map((e=>e.name)),(0,l.statusToLabel)(n,this.cmsLabelPrefix)];await this.updatePullRequestLabels(o,a)}async deleteUnpublishedEntry(e,t){const n=(0,l.generateContentKey)(e,t),r=(0,l.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);await this.abandonPullRequest(i)}async publishUnpublishedEntry(e,t){const n=(0,l.generateContentKey)(e,t),r=(0,l.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);await this.completePullRequest(i)}async updatePullRequestLabels(e,t){const n=e.labels.filter((e=>(0,l.isCMSLabel)(e.name,this.cmsLabelPrefix)));await Promise.all(n.map((t=>this.requestText({method:"DELETE",url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(e.pullRequestId)}/labels/${encodeURIComponent(t.id)}`})))),await Promise.all(t.map((t=>this.requestText({method:"POST",url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(e.pullRequestId)}/labels`,body:JSON.stringify({name:t})}))))}async completePullRequest(e){const t={status:b.COMPLETED,lastMergeSourceCommit:e.lastMergeSourceCommit,completionOptions:{deleteSourceBranch:!0,mergeCommitMessage:l.MERGE_COMMIT_MESSAGE,mergeStrategy:this.mergeStrategy}};let n=await this.requestJSON({method:"PATCH",url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(e.pullRequestId)}`,body:JSON.stringify(t)}),r=1;for(;n.mergeStatus===w.QUEUED&&r<=10;)await x(500),n=await this.requestJSON({url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(e.pullRequestId)}`}),r+=1}async abandonPullRequest(e){const t={status:b.ABANDONED};await this.requestJSON({method:"PATCH",url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(e.pullRequestId)}`,body:JSON.stringify(t)}),await this.deleteRef({name:e.sourceRefName,objectId:e.lastMergeSourceCommit.commitId})}}},61325:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=u(n(2784)),o=u(n(13980)),a=n(76320),s=n(30762),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=(0,r.default)(s.Icon,{target:"e1n0346u0",label:"LoginButtonIcon"})({name:"1gnqu05",styles:"margin-right:18px"});class f extends i.default.Component{constructor(...e){super(...e),c(this,"state",{}),c(this,"handleLogin",(e=>{e.preventDefault(),this.auth.authenticate({scope:"vso.code_full,user.read",resource:"499b84ac-1321-427f-aa17-267ca6975798",prompt:"select_account"},((e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)}))}))}componentDidMount(){this.auth=new a.ImplicitAuthenticator({base_url:`https://login.microsoftonline.com/${this.props.config.backend.tenant_id}`,auth_endpoint:"oauth2/authorize",app_id:this.props.config.backend.app_id,clearHash:this.props.clearHash}),this.auth.completeAuth(((e,t)=>{e?alert(e):this.props.onLogin(t)}))}render(){const{inProgress:e,config:t,t:n}=this.props;return(0,l.jsx)(s.AuthenticationPage,{onLogin:this.handleLogin,loginDisabled:e,loginErrorMessage:this.state.loginError,logoUrl:t.logo_url,renderButtonContent:()=>(0,l.jsx)(i.default.Fragment,null,(0,l.jsx)(d,{type:"azure"}),n(e?"auth.loggingIn":"auth.loginWithAzure")),t:n})}}t.default=f,c(f,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool,base_url:o.default.string,siteId:o.default.string,authEndpoint:o.default.string,config:o.default.object.isRequired,clearHash:o.default.func,t:o.default.func.isRequired})},52141:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(5648)),i=c(n(93433)),o=c(n(63252)),a=n(33806),s=c(n(61325)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96667));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t!!e)).catch((e=>(console.warn("Failed getting Azure user",e),!1)))||!1},api:{status:!0,statusPage:""}}}authComponent(){return s.default}restoreUser(e){return this.authenticate(e)}async authenticate(e){this.token=e.token,this.api=new l.default({apiRoot:this.apiRoot,apiVersion:this.apiVersion,repo:this.repo,branch:this.branch,squashMerges:this.squashMerges,cmsLabelPrefix:this.cmsLabelPrefix,initialWorkflowStatus:this.options.initialWorkflowStatus},this.token);const t=await this.api.user();return f({token:e.token},t)}logout(){this.token=null}getToken(){return Promise.resolve(this.token)}async entriesByFolder(e,t,n){return await(0,a.entriesByFolder)((async()=>(await this.api.listFiles(e,n>1)).filter((e=>(0,a.filterByExtension)({path:e.path},t))).map((e=>({id:e.id,path:e.path})))),this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),l.API_NAME)}entriesByFiles(e){return(0,a.entriesByFiles)(e,this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),l.API_NAME)}async getEntry(e){return{file:{path:e},data:await this.api.readFile(e)}}async getMedia(){const e=await this.api.listFiles(this.mediaFolder,!1);return await Promise.all(e.map((async({id:e,path:t,name:n})=>({id:e,name:n,displayURL:await this.getMediaDisplayURL({id:e,path:t}),path:t}))))}getMediaDisplayURL(e){return this._mediaDisplayURLSem=this._mediaDisplayURLSem||(0,o.default)(10),(0,a.getMediaDisplayURL)(e,this.api.readFile.bind(this.api),this._mediaDisplayURLSem)}async getMediaFile(e){const t=(0,a.basename)(e),n=await(0,a.getMediaAsBlob)(e,null,this.api.readFile.bind(this.api)),r=new File([n],t),i=URL.createObjectURL(r);return{id:await(0,a.getBlobSHA)(n),displayURL:i,path:e,name:t,size:r.size,file:r,url:i}}async persistEntry(e,t){const n=e.assets;await this.api.persistFiles(e.dataFiles,n,t)}async persistMedia(e,t){const n=e.fileObj,[r]=await Promise.all([(0,a.getBlobSHA)(n),this.api.persistFiles([],[e],t)]),{path:o}=e,s=URL.createObjectURL(n);return{displayURL:s,path:(0,i.default)(o,"/"),name:n.name,size:n.size,file:n,url:s,id:r}}async deleteFiles(e,t){await this.api.deleteFiles(e,t)}async loadMediaFile(e,t){const n=await(0,a.getMediaAsBlob)(t.path,null,((t,n,{parseText:r})=>this.api.readFile(t,n,{branch:e,parseText:r}))),r=(0,a.basename)(t.path),i=new File([n],r);return{id:t.path,displayURL:URL.createObjectURL(i),path:t.path,name:r,size:i.size,file:i}}async loadEntryMediaFiles(e,t){return await Promise.all(t.map((t=>this.loadMediaFile(e,t))))}async unpublishedEntries(){return await(0,a.unpublishedEntries)((()=>this.api.listUnpublishedBranches().then((e=>e.map((e=>(0,a.contentKeyFromBranch)(e)))))))}async unpublishedEntry({id:e,collection:t,slug:n}){if(e)return await this.api.retrieveUnpublishedEntryData(e);if(t&&n){const e=(0,a.generateContentKey)(t,n);return await this.api.retrieveUnpublishedEntryData(e)}throw new Error("Missing unpublished entry id or collection and slug")}getBranch(e,t){const n=(0,a.generateContentKey)(e,t);return(0,a.branchFromContentKey)(n)}async unpublishedEntryMediaFile(e,t,n,r){const i=this.getBranch(e,t);return await this.loadMediaFile(i,{path:n,id:r})}async unpublishedEntryDataFile(e,t,n,r){const i=this.getBranch(e,t);return await this.api.readFile(n,r,{branch:i})}updateUnpublishedEntryStatus(e,t,n){return(0,a.runWithLock)(this.lock,(()=>this.api.updateUnpublishedEntryStatus(e,t,n)),"Failed to acquire update entry status lock")}deleteUnpublishedEntry(e,t){return(0,a.runWithLock)(this.lock,(()=>this.api.deleteUnpublishedEntry(e,t)),"Failed to acquire delete entry lock")}publishUnpublishedEntry(e,t){return(0,a.runWithLock)(this.lock,(()=>this.api.publishUnpublishedEntry(e,t)),"Failed to acquire publish entry lock")}async getDeployPreview(e,t){try{const n=await this.api.getStatuses(e,t),r=(0,a.getPreviewStatus)(n,this.previewContext);if(r){const{target_url:e,state:t}=r;return{url:e,status:t}}return null}catch(e){return null}}}},55281:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"API",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"AzureBackend",{enumerable:!0,get:function(){return r.default}}),t.DecapCmsBackendAzure=void 0;var r=a(n(52141)),i=a(n(96667)),o=a(n(61325));function a(e){return e&&e.__esModule?e:{default:e}}t.DecapCmsBackendAzure={AzureBackend:r.default,API:i.default,AuthenticationPage:o.default}},84280:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.API_NAME=void 0;var r=u(n(72579)),i=u(n(85395)),o=n(33806),a=n(21023),s=n(13856),l=n(99776);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(e){return e.MERGED="MERGED",e.SUPERSEDED="SUPERSEDED",e.OPEN="OPEN",e.DECLINED="DECLINED",e}(f||{}),p=function(e){return e.Successful="SUCCESSFUL",e.Failed="FAILED",e.InProgress="INPROGRESS",e.Stopped="STOPPED",e}(p||{});const h=t.API_NAME="Bitbucket",m="application/json; charset=utf-8";function g(e){return e&&404===e.status?(console.log("This 404 was expected and handled appropriately."),{size:0,values:[]}):Promise.reject(e)}t.default=class{constructor(e){d(this,"apiRoot",void 0),d(this,"branch",void 0),d(this,"repo",void 0),d(this,"requestFunction",void 0),d(this,"repoURL",void 0),d(this,"commitAuthor",void 0),d(this,"mergeStrategy",void 0),d(this,"initialWorkflowStatus",void 0),d(this,"cmsLabelPrefix",void 0),d(this,"buildRequest",(e=>{const t=o.unsentRequest.withRoot(this.apiRoot)(e);return t.has("cache")?t:o.unsentRequest.withNoCache(t)})),d(this,"request",(e=>{try{return(0,o.requestWithBackoff)(this,e)}catch(e){throw new o.APIError(e.message,null,h)}})),d(this,"responseToJSON",(0,o.responseParser)({format:"json",apiName:h})),d(this,"responseToBlob",(0,o.responseParser)({format:"blob",apiName:h})),d(this,"responseToText",(0,o.responseParser)({format:"text",apiName:h})),d(this,"requestJSON",(e=>this.request(e).then(this.responseToJSON))),d(this,"requestText",(e=>this.request(e).then(this.responseToText))),d(this,"user",(()=>this.requestJSON("/user"))),d(this,"hasWriteAccess",(async()=>{const e=await this.request(this.repoURL);if(404===e.status)throw Error("Repo not found");return e.ok})),d(this,"getBranch",(async e=>await this.requestJSON(`${this.repoURL}/refs/branches/${e}`))),d(this,"branchCommitSha",(async e=>{const{target:{hash:t}}=await this.getBranch(e);return t})),d(this,"defaultBranchCommitSha",(()=>this.branchCommitSha(this.branch))),d(this,"isFile",(({type:e})=>"commit_file"===e)),d(this,"getFileId",((e,t)=>`${e}/${t}`)),d(this,"processFile",(e=>function(e){for(var t=1;te.filter(this.isFile).map(this.processFile))),d(this,"readFile",(async(e,t,{parseText:n=!0,branch:r=this.branch,head:i=""}={})=>await(0,o.readFile)(t,(async()=>{const t=i||await this.branchCommitSha(r);return await this.request({url:`${this.repoURL}/src/${t}/${e}`,cache:"no-store"}).then(n?this.responseToText:this.responseToBlob)}),o.localForage,n))),d(this,"getEntriesAndCursor",(e=>{const{size:t,page:n,pagelen:r,next:i,previous:a,values:s}=e,l=r&&t?Math.ceil(t/r):void 0;return{entries:s,cursor:o.Cursor.create({actions:[...i?["next"]:[],...a?["prev"]:[]],meta:{page:n,count:t,pageSize:r,pageCount:l},data:{links:{next:i,prev:a}}})}})),d(this,"listFiles",(async(e,t=1,n,r)=>{const i=await this.branchCommitSha(r),o=await this.requestJSON({url:`${this.repoURL}/src/${i}/${e}`,params:{max_depth:t,pagelen:n}}).catch(g),{entries:a,cursor:s}=this.getEntriesAndCursor(o);return{entries:this.processFiles(a),cursor:s}})),d(this,"traverseCursor",(async(e,t)=>(0,i.default)([this.requestJSON,(0,o.then)(this.getEntriesAndCursor),(0,o.then)((({cursor:e,entries:t})=>({cursor:e,entries:this.processFiles(t)})))])(e.data.getIn(["links",t])))),d(this,"listAllFiles",(async(e,t,n)=>{const{cursor:r,entries:i}=await this.listFiles(e,t,100,n),o=[...i];let a=r;for(;a&&a.actions.has("next");){const{cursor:e,entries:t}=await this.traverseCursor(a,"next");o.push(...t),a=e}return this.processFiles(o)})),d(this,"deleteFiles",((e,t)=>{const n=new FormData;if(e.forEach((e=>{n.append("files",e)})),n.append("branch",this.branch),t&&n.append("message",t),this.commitAuthor){const{name:e,email:t}=this.commitAuthor;n.append("author",`${e} <${t}>`)}return(0,i.default)([o.unsentRequest.withMethod("POST"),o.unsentRequest.withBody(n),this.request])(`${this.repoURL}/src`)})),this.apiRoot=e.apiRoot||"https://api.bitbucket.org/2.0",this.branch=e.branch||"master",this.repo=e.repo||"",this.requestFunction=e.requestFunction||o.unsentRequest.performRequest,this.hasWriteAccess=e.hasWriteAccess||this.hasWriteAccess,this.repoURL=this.repo?`/repositories/${this.repo}`:"",this.mergeStrategy=e.squashMerges?"squash":"merge_commit",this.initialWorkflowStatus=e.initialWorkflowStatus,this.cmsLabelPrefix=e.cmsLabelPrefix}async readFileMetadata(e,t){return await(0,o.readFileMetadata)(t,(async()=>{try{const{values:t}=await this.requestJSON({url:`${this.repoURL}/commits`,params:{path:e,include:this.branch}}),n=t[0];return{author:n.author.user?n.author.user.display_name||n.author.user.nickname:n.author.raw,updatedOn:n.date}}catch(e){return{author:"",updatedOn:""}}}),o.localForage)}async isShaExistsInBranch(e,t){const{values:n}=await this.requestJSON({url:`${this.repoURL}/commits`,params:{include:e,pagelen:100}}).catch((t=>(console.log(`Failed getting commits for branch '${e}'`,t),[])));return n.some((e=>e.hash===t))}async uploadFiles(e,{commitMessage:t,branch:n,parentSha:i}){const s=new FormData,l=[];e.forEach((e=>{if(e.delete)s.append("files",e.path);else if(e.newPath){const t=(0,r.default)(e,"fileObj",new Blob([e.raw]));l.push({from:e.path,to:e.newPath,contentBlob:t})}else{const t=(0,r.default)(e,"fileObj",new Blob([e.raw]));s.append(e.path,t,(0,o.basename)(e.path))}}));for(const{from:e,to:t,contentBlob:r}of l){const l=(0,a.dirname)(e),u=(0,a.dirname)(t),c=i?this.branch:n,d=await this.listAllFiles(l,100,c);for(const t of d){s.append("files",t.path);const n=t.path===e?r:await this.readFile(t.path,null,{branch:c,parseText:!1});s.append(t.path.replace(l,u),n,(0,o.basename)(t.path))}}if(t&&s.append("message",t),this.commitAuthor){const{name:e,email:t}=this.commitAuthor;s.append("author",`${e} <${t}>`)}s.append("branch",n),i&&s.append("parents",i);try{await this.requestText({url:`${this.repoURL}/src`,method:"POST",body:s})}catch(e){const t=e.message||"";throw i&&t.includes("Something went wrong")&&await(0,o.throwOnConflictingBranches)(n,(e=>this.getBranch(e)),h),e}return e}async persistFiles(e,t,n){const r=[...e,...t];if(n.useWorkflow){const t=e[0].slug;return this.editorialWorkflowGit(r,t,n)}return this.uploadFiles(r,{commitMessage:n.commitMessage,branch:this.branch})}async addPullRequestComment(e,t){await this.requestJSON({method:"POST",url:`${this.repoURL}/pullrequests/${e.id}/comments`,headers:{"Content-Type":m},body:JSON.stringify({content:{raw:t}})})}async getPullRequestLabel(e){const t=await this.requestJSON({url:`${this.repoURL}/pullrequests/${e}/comments`,params:{pagelen:100}});return t.values.map((e=>e.content.raw))[t.values.length-1]}async createPullRequest(e,t,n){const r=await this.requestJSON({method:"POST",url:`${this.repoURL}/pullrequests`,headers:{"Content-Type":m},body:JSON.stringify({title:t,source:{branch:{name:e}},destination:{branch:{name:this.branch}},description:o.DEFAULT_PR_BODY,close_source_branch:!0})});await this.addPullRequestComment(r,(0,o.statusToLabel)(n,this.cmsLabelPrefix))}async getDifferences(e,t=this.branch){if(e===t)return[];const n=await this.requestText({url:`${this.repoURL}/diff/${e}..${t}`,params:{binary:!1}});return(0,l.parse)(n).map((e=>{var t,n;const r=(null===(t=e.oldPath)||void 0===t?void 0:t.replace(/b\//,""))||"",i=(null===(n=e.newPath)||void 0===n?void 0:n.replace(/b\//,""))||"",o=i||r;return{oldPath:r,newPath:i,status:e.status,newFile:"added"===e.status,path:o,binary:e.binary||/.svg$/.test(o)}}))}async editorialWorkflowGit(e,t,n){const r=(0,o.generateContentKey)(n.collectionName,t),i=(0,o.branchFromContentKey)(r);if(n.unpublished){const t=await this.getDifferences(i),r=[];for(const n of t.filter((e=>e.binary&&"deleted"!==e.status)))e.some((e=>e.path===n.path))||r.push({path:n.path,delete:!0});await this.uploadFiles([...e,...r],{commitMessage:n.commitMessage,branch:i})}else{const t=await this.branchCommitSha(this.branch);await this.uploadFiles(e,{commitMessage:n.commitMessage,branch:i,parentSha:t}),await this.createPullRequest(i,n.commitMessage,n.status||this.initialWorkflowStatus)}}async getPullRequests(e){const t=e?`source.branch.name = "${e}"`:`source.branch.name ~ "${o.CMS_BRANCH_PREFIX}/"`,n=await this.requestJSON({url:`${this.repoURL}/pullrequests`,params:{pagelen:50,q:s.oneLine` +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("DecapCms",[],t):"object"==typeof exports?exports.DecapCms=t():e.DecapCms=t()}(window,(()=>(()=>{var __webpack_modules__={61540:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AutoScrollActivator:()=>we,DndContext:()=>Ze,DragOverlay:()=>pt,KeyboardCode:()=>ie,KeyboardSensor:()=>ue,MeasuringFrequency:()=>Ee,MeasuringStrategy:()=>ke,MouseSensor:()=>ve,PointerSensor:()=>he,TouchSensor:()=>be,TraversalOrder:()=>_e,applyModifiers:()=>Ve,closestCenter:()=>A,closestCorners:()=>T,defaultAnnouncements:()=>p,defaultCoordinates:()=>b,defaultDropAnimation:()=>dt,defaultDropAnimationSideEffects:()=>ct,defaultScreenReaderInstructions:()=>f,getClientRect:()=>N,getFirstCollision:()=>C,getScrollableAncestors:()=>B,pointerWithin:()=>D,rectIntersection:()=>P,useDndContext:()=>et,useDndMonitor:()=>d,useDraggable:()=>Je,useDroppable:()=>rt,useSensor:()=>v,useSensors:()=>y});var r=n(2784),i=n(28316),o=n(82851);const a={display:"none"};function s(e){let{id:t,value:n}=e;return r.createElement("div",{id:t,style:a},n)}const l={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};function u(e){let{id:t,announcement:n}=e;return r.createElement("div",{id:t,style:l,role:"status","aria-live":"assertive","aria-atomic":!0},n)}const c=(0,r.createContext)(null);function d(e){const t=(0,r.useContext)(c);(0,r.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)}),[e,t])}const f={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},p={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function h(e){let{announcements:t=p,container:n,hiddenTextDescribedById:a,screenReaderInstructions:l=f}=e;const{announce:c,announcement:h}=function(){const[e,t]=(0,r.useState)("");return{announce:(0,r.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),m=(0,o.useUniqueId)("DndLiveRegion"),[g,v]=(0,r.useState)(!1);if((0,r.useEffect)((()=>{v(!0)}),[]),d((0,r.useMemo)((()=>({onDragStart(e){let{active:n}=e;c(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&c(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;c(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;c(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;c(t.onDragCancel({active:n,over:r}))}})),[c,t])),!g)return null;const y=r.createElement(r.Fragment,null,r.createElement(s,{id:a,value:l.draggable}),r.createElement(u,{id:m,announcement:h}));return n?(0,i.createPortal)(y,n):y}var m;function g(){}function v(e,t){return(0,r.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}function y(){for(var e=arguments.length,t=new Array(e),n=0;n[...t].filter((e=>null!=e))),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(m||(m={}));const b=Object.freeze({x:0,y:0});function w(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function _(e,t){const n=(0,o.getEventCoordinates)(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function x(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function k(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function E(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function C(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function S(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const A=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=S(t,t.left,t.top),o=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=w(S(r),i);o.push({id:t,data:{droppableContainer:e,value:n}})}}return o.sort(x)},T=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=E(t),o=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=E(r),a=i.reduce(((e,t,r)=>e+w(n[r],t)),0),s=Number((a/4).toFixed(4));o.push({id:t,data:{droppableContainer:e,value:s}})}}return o.sort(x)};function O(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-r,s=o-n;if(r{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const e of r){const{id:r}=e,o=n.get(r);if(o){const n=O(o,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(k)};function R(e,t){const{top:n,left:r,bottom:i,right:o}=t;return n<=e.y&&e.y<=i&&r<=e.x&&e.x<=o}const D=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];const i=[];for(const e of t){const{id:t}=e,o=n.get(t);if(o&&R(r,o)){const n=E(o).reduce(((e,t)=>e+w(r,t)),0),a=Number((n/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:a}})}}return i.sort(x)};function M(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:b}const I=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r({...e,top:e.top+1*t.y,bottom:e.bottom+1*t.y,left:e.left+1*t.x,right:e.right+1*t.x})),{...e})};function L(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const j={ignoreTransform:!1};function N(e,t){void 0===t&&(t=j);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=(0,o.getWindow)(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=L(t);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:s}=r,l=e.left-a-(1-i)*parseFloat(n),u=e.top-s-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}(n,t,r))}const{top:r,left:i,width:a,height:s,bottom:l,right:u}=n;return{top:r,left:i,width:a,height:s,bottom:l,right:u}}function F(e){return N(e,{ignoreTransform:!0})}function B(e,t){const n=[];return e?function r(i){if(null!=t&&n.length>=t)return n;if(!i)return n;if((0,o.isDocument)(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!(0,o.isHTMLElement)(i)||(0,o.isSVGElement)(i))return n;if(n.includes(i))return n;const a=(0,o.getWindow)(e).getComputedStyle(i);return i!==e&&function(e,t){void 0===t&&(t=(0,o.getWindow)(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(i,a)&&n.push(i),function(e,t){return void 0===t&&(t=(0,o.getWindow)(e).getComputedStyle(e)),"fixed"===t.position}(i,a)?n:r(i.parentNode)}(e):n}function z(e){const[t]=B(e,1);return null!=t?t:null}function U(e){return o.canUseDOM&&e?(0,o.isWindow)(e)?e:(0,o.isNode)(e)?(0,o.isDocument)(e)||e===(0,o.getOwnerDocument)(e).scrollingElement?window:(0,o.isHTMLElement)(e)?e:null:null:null}function q(e){return(0,o.isWindow)(e)?e.scrollX:e.scrollLeft}function W(e){return(0,o.isWindow)(e)?e.scrollY:e.scrollTop}function $(e){return{x:q(e),y:W(e)}}var H;function V(e){return!(!o.canUseDOM||!e)&&e===document.scrollingElement}function G(e){const t={x:0,y:0},n=V(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(H||(H={}));const K={x:.2,y:.2};function Z(e,t,n,r,i){let{top:o,left:a,right:s,bottom:l}=n;void 0===r&&(r=10),void 0===i&&(i=K);const{isTop:u,isBottom:c,isLeft:d,isRight:f}=G(e),p={x:0,y:0},h={x:0,y:0},m=t.height*i.y,g=t.width*i.x;return!u&&o<=t.top+m?(p.y=H.Backward,h.y=r*Math.abs((t.top+m-o)/m)):!c&&l>=t.bottom-m&&(p.y=H.Forward,h.y=r*Math.abs((t.bottom-m-l)/m)),!f&&s>=t.right-g?(p.x=H.Forward,h.x=r*Math.abs((t.right-g-s)/g)):!d&&a<=t.left+g&&(p.x=H.Backward,h.x=r*Math.abs((t.left+g-a)/g)),{direction:p,speed:h}}function Y(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function X(e){return e.reduce(((e,t)=>(0,o.add)(e,$(t))),b)}function Q(e,t){if(void 0===t&&(t=N),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);z(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const J=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+q(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+W(t)),0)}]];class ee{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=B(t),r=X(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,i]of J)for(const o of t)Object.defineProperty(this,o,{get:()=>{const t=i(n),a=r[e]-t;return this.rect[o]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class te{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function ne(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var re,ie;function oe(e){e.preventDefault()}function ae(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(re||(re={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(ie||(ie={}));const se={start:[ie.Space,ie.Enter],cancel:[ie.Esc],end:[ie.Space,ie.Enter]},le=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case ie.Right:return{...n,x:n.x+25};case ie.Left:return{...n,x:n.x-25};case ie.Down:return{...n,y:n.y+25};case ie.Up:return{...n,y:n.y-25}}};class ue{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new te((0,o.getOwnerDocument)(t)),this.windowListeners=new te((0,o.getWindow)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(re.Resize,this.handleCancel),this.windowListeners.add(re.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(re.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&Q(n),t(b)}handleKeyDown(e){if((0,o.isKeyboardEvent)(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:i=se,coordinateGetter:a=le,scrollBehavior:s="smooth"}=r,{code:l}=e;if(i.end.includes(l))return void this.handleEnd(e);if(i.cancel.includes(l))return void this.handleCancel(e);const{collisionRect:u}=n.current,c=u?{x:u.left,y:u.top}:b;this.referenceCoordinates||(this.referenceCoordinates=c);const d=a(e,{active:t,context:n.current,currentCoordinates:c});if(d){const t=(0,o.subtract)(d,c),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(const n of i){const i=e.code,{isTop:o,isRight:a,isLeft:l,isBottom:u,maxScroll:c,minScroll:f}=G(n),p=Y(n),h={x:Math.min(i===ie.Right?p.right-p.width/2:p.right,Math.max(i===ie.Right?p.left:p.left+p.width/2,d.x)),y:Math.min(i===ie.Down?p.bottom-p.height/2:p.bottom,Math.max(i===ie.Down?p.top:p.top+p.height/2,d.y))},m=i===ie.Right&&!a||i===ie.Left&&!l,g=i===ie.Down&&!u||i===ie.Up&&!o;if(m&&h.x!==d.x){const e=n.scrollLeft+t.x,o=i===ie.Right&&e<=c.x||i===ie.Left&&e>=f.x;if(o&&!t.y)return void n.scrollTo({left:e,behavior:s});r.x=o?n.scrollLeft-e:i===ie.Right?n.scrollLeft-c.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:s});break}if(g&&h.y!==d.y){const e=n.scrollTop+t.y,o=i===ie.Down&&e<=c.y||i===ie.Up&&e>=f.y;if(o&&!t.x)return void n.scrollTo({top:e,behavior:s});r.y=o?n.scrollTop-e:i===ie.Down?n.scrollTop-c.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:s});break}}this.handleMove(e,(0,o.add)((0,o.subtract)(d,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function ce(e){return Boolean(e&&"distance"in e)}function de(e){return Boolean(e&&"delay"in e)}ue.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=se,onActivation:i}=t,{active:o}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=o.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==i||i({event:e.nativeEvent}),0))}return!1}}];class fe{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=(0,o.getWindow)(e);return e instanceof t?e:(0,o.getOwnerDocument)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:a}=i;this.props=e,this.events=t,this.document=(0,o.getOwnerDocument)(a),this.documentListeners=new te(this.document),this.listeners=new te(n),this.windowListeners=new te((0,o.getWindow)(a)),this.initialCoordinates=null!=(r=(0,o.getEventCoordinates)(i))?r:b,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(re.Resize,this.handleCancel),this.windowListeners.add(re.DragStart,oe),this.windowListeners.add(re.VisibilityChange,this.handleCancel),this.windowListeners.add(re.ContextMenu,oe),this.documentListeners.add(re.Keydown,this.handleKeydown),t){if(ce(t))return;if(de(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay))}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(re.Click,ae,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(re.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:i}=this,{onMove:a,options:{activationConstraint:s}}=i;if(!r)return;const l=null!=(t=(0,o.getEventCoordinates)(e))?t:b,u=(0,o.subtract)(r,l);if(!n&&s){if(de(s))return ne(u,s.tolerance)?this.handleCancel():void 0;if(ce(s))return null!=s.tolerance&&ne(u,s.tolerance)?this.handleCancel():ne(u,s.distance)?this.handleStart():void 0}e.cancelable&&e.preventDefault(),a(l)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===ie.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const pe={move:{name:"pointermove"},end:{name:"pointerup"}};class he extends fe{constructor(e){const{event:t}=e,n=(0,o.getOwnerDocument)(t.target);super(e,pe,n)}}he.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const me={move:{name:"mousemove"},end:{name:"mouseup"}};var ge;!function(e){e[e.RightClick=2]="RightClick"}(ge||(ge={}));class ve extends fe{constructor(e){super(e,me,(0,o.getOwnerDocument)(e.event.target))}}ve.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==ge.RightClick&&(null==r||r({event:n}),!0)}}];const ye={move:{name:"touchmove"},end:{name:"touchend"}};class be extends fe{constructor(e){super(e,ye)}static setup(){return window.addEventListener(ye.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(ye.move.name,e)};function e(){}}}var we,_e;be.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return!(i.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(we||(we={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(_e||(_e={}));const xe={x:{[H.Backward]:!1,[H.Forward]:!1},y:{[H.Backward]:!1,[H.Forward]:!1}};var ke,Ee;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(ke||(ke={})),function(e){e.Optimized="optimized"}(Ee||(Ee={}));const Ce=new Map;function Se(e,t){return(0,o.useLazyMemo)((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function Ae(e){let{callback:t,disabled:n}=e;const i=(0,o.useEvent)(t),a=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(i)}),[n]);return(0,r.useEffect)((()=>()=>null==a?void 0:a.disconnect()),[a]),a}function Te(e){return new ee(N(e),e)}function Oe(e,t,n){void 0===t&&(t=Te);const[i,a]=(0,r.useReducer)((function(r){if(!e)return null;var i;if(!1===e.isConnected)return null!=(i=null!=r?r:n)?i:null;const o=t(e);return JSON.stringify(r)===JSON.stringify(o)?r:o}),null),s=function(e){let{callback:t,disabled:n}=e;const i=(0,o.useEvent)(t),a=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(i)}),[i,n]);return(0,r.useEffect)((()=>()=>null==a?void 0:a.disconnect()),[a]),a}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),l=Ae({callback:a});return(0,o.useIsomorphicLayoutEffect)((()=>{a(),e?(null==l||l.observe(e),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==l||l.disconnect(),null==s||s.disconnect())}),[e]),i}const Pe=[];function Re(e,t){void 0===t&&(t=[]);const n=(0,r.useRef)(null);return(0,r.useEffect)((()=>{n.current=null}),t),(0,r.useEffect)((()=>{const t=e!==b;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?(0,o.subtract)(e,n.current):b}function De(e){return(0,r.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const Me=[];function Ie(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,o.isHTMLElement)(t)?t:e}const Le=[{sensor:he,options:{}},{sensor:ue,options:{}}],je={current:{}},Ne={draggable:{measure:F},droppable:{measure:F,strategy:ke.WhileDragging,frequency:Ee.Optimized},dragOverlay:{measure:N}};class Fe extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const Be={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Fe,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:g},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ne,measureDroppableContainers:g,windowRect:null,measuringScheduled:!1},ze={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:g,draggableNodes:new Map,over:null,measureDroppableContainers:g},Ue=(0,r.createContext)(ze),qe=(0,r.createContext)(Be);function We(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Fe}}}function $e(e,t){switch(t.type){case m.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case m.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case m.DragEnd:case m.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case m.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new Fe(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case m.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const a=new Fe(e.droppable.containers);return a.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case m.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new Fe(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function He(e){let{disabled:t}=e;const{active:n,activatorEvent:i,draggableNodes:a}=(0,r.useContext)(Ue),s=(0,o.usePrevious)(i),l=(0,o.usePrevious)(null==n?void 0:n.id);return(0,r.useEffect)((()=>{if(!t&&!i&&s&&null!=l){if(!(0,o.isKeyboardEvent)(s))return;if(document.activeElement===s.target)return;const e=a.get(l);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=(0,o.findFirstFocusableNode)(e);if(t){t.focus();break}}}))}}),[i,t,a,l,s]),null}function Ve(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const Ge=(0,r.createContext)({...b,scaleX:1,scaleY:1});var Ke;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Ke||(Ke={}));const Ze=(0,r.memo)((function(e){var t,n,a,s;let{id:l,accessibility:u,autoScroll:d=!0,children:f,sensors:p=Le,collisionDetection:g=P,measuring:v,modifiers:y,...w}=e;const _=(0,r.useReducer)($e,void 0,We),[x,k]=_,[E,S]=function(){const[e]=(0,r.useState)((()=>new Set)),t=(0,r.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]);return[(0,r.useCallback)((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]),t]}(),[A,T]=(0,r.useState)(Ke.Uninitialized),O=A===Ke.Initialized,{draggable:{active:R,nodes:D,translate:L},droppable:{containers:j}}=x,F=R?D.get(R):null,q=(0,r.useRef)({initial:null,translated:null}),W=(0,r.useMemo)((()=>{var e;return null!=R?{id:R,data:null!=(e=null==F?void 0:F.data)?e:je,rect:q}:null}),[R,F]),G=(0,r.useRef)(null),[K,Y]=(0,r.useState)(null),[Q,J]=(0,r.useState)(null),te=(0,o.useLatestValue)(w,Object.values(w)),ne=(0,o.useUniqueId)("DndDescribedBy",l),re=(0,r.useMemo)((()=>j.getEnabled()),[j]),ie=(oe=v,(0,r.useMemo)((()=>({draggable:{...Ne.draggable,...null==oe?void 0:oe.draggable},droppable:{...Ne.droppable,...null==oe?void 0:oe.droppable},dragOverlay:{...Ne.dragOverlay,...null==oe?void 0:oe.dragOverlay}})),[null==oe?void 0:oe.draggable,null==oe?void 0:oe.droppable,null==oe?void 0:oe.dragOverlay]));var oe;const{droppableRects:ae,measureDroppableContainers:se,measuringScheduled:le}=function(e,t){let{dragging:n,dependencies:i,config:a}=t;const[s,l]=(0,r.useState)(null),{frequency:u,measure:c,strategy:d}=a,f=(0,r.useRef)(e),p=function(){switch(d){case ke.Always:return!1;case ke.BeforeDragging:return n;default:return!n}}(),h=(0,o.useLatestValue)(p),m=(0,r.useCallback)((function(e){void 0===e&&(e=[]),h.current||l((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[h]),g=(0,r.useRef)(null),v=(0,o.useLazyMemo)((t=>{if(p&&!n)return Ce;if(!t||t===Ce||f.current!==e||null!=s){const t=new Map;for(let n of e){if(!n)continue;if(s&&s.length>0&&!s.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new ee(c(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t}),[e,s,n,p,c]);return(0,r.useEffect)((()=>{f.current=e}),[e]),(0,r.useEffect)((()=>{p||m()}),[n,p]),(0,r.useEffect)((()=>{s&&s.length>0&&l(null)}),[JSON.stringify(s)]),(0,r.useEffect)((()=>{p||"number"!=typeof u||null!==g.current||(g.current=setTimeout((()=>{m(),g.current=null}),u))}),[u,p,m,...i]),{droppableRects:v,measureDroppableContainers:m,measuringScheduled:null!=s}}(re,{dragging:O,dependencies:[L.x,L.y],config:ie.droppable}),ue=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return(0,o.useLazyMemo)((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(D,R),ce=(0,r.useMemo)((()=>Q?(0,o.getEventCoordinates)(Q):null),[Q]),de=function(){const e=!1===(null==K?void 0:K.autoScrollEnabled),t="object"==typeof d?!1===d.enabled:!1===d,n=O&&!e&&!t;return"object"==typeof d?{...d,enabled:n}:{enabled:n}}(),fe=function(e,t){return Se(e,t)}(ue,ie.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:i,config:a=!0}=e;const s=(0,r.useRef)(!1),{x:l,y:u}="boolean"==typeof a?{x:a,y:a}:a;(0,o.useIsomorphicLayoutEffect)((()=>{if(!l&&!u||!t)return void(s.current=!1);if(s.current||!i)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=M(n(e),i);if(l||(r.x=0),u||(r.y=0),s.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=z(e);t&&t.scrollBy({top:r.y,left:r.x})}}),[t,l,u,i,n])}({activeNode:R?D.get(R):null,config:de.layoutShiftCompensation,initialRect:fe,measure:ie.draggable.measure});const pe=Oe(ue,ie.draggable.measure,fe),he=Oe(ue?ue.parentElement:null),me=(0,r.useRef)({activatorEvent:null,active:null,activeNode:ue,collisionRect:null,collisions:null,droppableRects:ae,draggableNodes:D,draggingNode:null,draggingNodeRect:null,droppableContainers:j,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ge=j.getNodeFor(null==(t=me.current.over)?void 0:t.id),ve=function(e){let{measure:t}=e;const[n,i]=(0,r.useState)(null),a=Ae({callback:(0,r.useCallback)((e=>{for(const{target:n}of e)if((0,o.isHTMLElement)(n)){i((e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r}));break}}),[t])}),s=(0,r.useCallback)((e=>{const n=Ie(e);null==a||a.disconnect(),n&&(null==a||a.observe(n)),i(n?t(n):null)}),[t,a]),[l,u]=(0,o.useNodeRef)(s);return(0,r.useMemo)((()=>({nodeRef:l,rect:n,setRef:u})),[n,l,u])}({measure:ie.dragOverlay.measure}),ye=null!=(n=ve.nodeRef.current)?n:ue,be=O?null!=(a=ve.rect)?a:pe:null,Ee=Boolean(ve.nodeRef.current&&ve.rect),Te=M(Fe=Ee?null:pe,Se(Fe));var Fe;const Be=De(ye?(0,o.getWindow)(ye):null),ze=function(e){const t=(0,r.useRef)(e),n=(0,o.useLazyMemo)((n=>e?n&&n!==Pe&&e&&t.current&&e.parentNode===t.current.parentNode?n:B(e):Pe),[e]);return(0,r.useEffect)((()=>{t.current=e}),[e]),n}(O?null!=ge?ge:ue:null),Ze=function(e,t){void 0===t&&(t=N);const[n]=e,i=De(n?(0,o.getWindow)(n):null),[a,s]=(0,r.useReducer)((function(){return e.length?e.map((e=>V(e)?i:new ee(t(e),e))):Me}),Me),l=Ae({callback:s});return e.length>0&&a===Me&&s(),(0,o.useIsomorphicLayoutEffect)((()=>{e.length?e.forEach((e=>null==l?void 0:l.observe(e))):(null==l||l.disconnect(),s())}),[e]),a}(ze),Ye=Ve(y,{transform:{x:L.x-Te.x,y:L.y-Te.y,scaleX:1,scaleY:1},activatorEvent:Q,active:W,activeNodeRect:pe,containerNodeRect:he,draggingNodeRect:be,over:me.current.over,overlayNodeRect:ve.rect,scrollableAncestors:ze,scrollableAncestorRects:Ze,windowRect:Be}),Xe=ce?(0,o.add)(ce,L):null,Qe=function(e){const[t,n]=(0,r.useState)(null),i=(0,r.useRef)(e),a=(0,r.useCallback)((e=>{const t=U(e.target);t&&n((e=>e?(e.set(t,$(t)),new Map(e)):null))}),[]);return(0,r.useEffect)((()=>{const t=i.current;if(e!==t){r(t);const o=e.map((e=>{const t=U(e);return t?(t.addEventListener("scroll",a,{passive:!0}),[t,$(t)]):null})).filter((e=>null!=e));n(o.length?new Map(o):null),i.current=e}return()=>{r(e),r(t)};function r(e){e.forEach((e=>{const t=U(e);null==t||t.removeEventListener("scroll",a)}))}}),[a,e]),(0,r.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>(0,o.add)(e,t)),b):X(e):b),[e,t])}(ze),Je=Re(Qe),et=Re(Qe,[pe]),tt=(0,o.add)(Ye,Je),nt=be?I(be,Ye):null,rt=W&&nt?g({active:W,collisionRect:nt,droppableRects:ae,droppableContainers:re,pointerCoordinates:Xe}):null,it=C(rt,"id"),[ot,at]=(0,r.useState)(null),st=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(Ee?Ye:(0,o.add)(Ye,et),null!=(s=null==ot?void 0:ot.rect)?s:null,pe),lt=(0,r.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==G.current)return;const o=D.get(G.current);if(!o)return;const a=e.nativeEvent,s=new n({active:G.current,activeNode:o,event:a,options:r,context:me,onStart(e){const t=G.current;if(null==t)return;const n=D.get(t);if(!n)return;const{onDragStart:r}=te.current,o={active:{id:t,data:n.data,rect:q}};(0,i.unstable_batchedUpdates)((()=>{null==r||r(o),T(Ke.Initializing),k({type:m.DragStart,initialCoordinates:e,active:t}),E({type:"onDragStart",event:o})}))},onMove(e){k({type:m.DragMove,coordinates:e})},onEnd:l(m.DragEnd),onCancel:l(m.DragCancel)});function l(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:o}=me.current;let s=null;if(t&&o){const{cancelDrop:i}=te.current;s={activatorEvent:a,active:t,collisions:n,delta:o,over:r},e===m.DragEnd&&"function"==typeof i&&await Promise.resolve(i(s))&&(e=m.DragCancel)}G.current=null,(0,i.unstable_batchedUpdates)((()=>{k({type:e}),T(Ke.Uninitialized),at(null),Y(null),J(null);const t=e===m.DragEnd?"onDragEnd":"onDragCancel";if(s){const e=te.current[t];null==e||e(s),E({type:t,event:s})}}))}}(0,i.unstable_batchedUpdates)((()=>{Y(s),J(e.nativeEvent)}))}),[D]),ut=(0,r.useCallback)(((e,t)=>(n,r)=>{const i=n.nativeEvent,o=D.get(r);if(null!==G.current||!o||i.dndKit||i.defaultPrevented)return;const a={active:o};!0===e(n,t.options,a)&&(i.dndKit={capturedBy:t.sensor},G.current=r,lt(n,t))}),[D,lt]),ct=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(p,ut);!function(e){(0,r.useEffect)((()=>{if(!o.canUseDOM)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(p),(0,o.useIsomorphicLayoutEffect)((()=>{pe&&A===Ke.Initializing&&T(Ke.Initialized)}),[pe,A]),(0,r.useEffect)((()=>{const{onDragMove:e}=te.current,{active:t,activatorEvent:n,collisions:r,over:o}=me.current;if(!t||!n)return;const a={active:t,activatorEvent:n,collisions:r,delta:{x:tt.x,y:tt.y},over:o};(0,i.unstable_batchedUpdates)((()=>{null==e||e(a),E({type:"onDragMove",event:a})}))}),[tt.x,tt.y]),(0,r.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:o}=me.current;if(!e||null==G.current||!t||!o)return;const{onDragOver:a}=te.current,s=r.get(it),l=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,u={active:e,activatorEvent:t,collisions:n,delta:{x:o.x,y:o.y},over:l};(0,i.unstable_batchedUpdates)((()=>{at(l),null==a||a(u),E({type:"onDragOver",event:u})}))}),[it]),(0,o.useIsomorphicLayoutEffect)((()=>{me.current={activatorEvent:Q,active:W,activeNode:ue,collisionRect:nt,collisions:rt,droppableRects:ae,draggableNodes:D,draggingNode:ye,draggingNodeRect:be,droppableContainers:j,over:ot,scrollableAncestors:ze,scrollAdjustedTranslate:tt},q.current={initial:be,translated:nt}}),[W,ue,rt,nt,D,ye,be,ae,j,ot,ze,tt]),function(e){let{acceleration:t,activator:n=we.Pointer,canScroll:i,draggingRect:a,enabled:s,interval:l=5,order:u=_e.TreeOrder,pointerCoordinates:c,scrollableAncestors:d,scrollableAncestorRects:f,delta:p,threshold:h}=e;const m=function(e){let{delta:t,disabled:n}=e;const r=(0,o.usePrevious)(t);return(0,o.useLazyMemo)((e=>{if(n||!r||!e)return xe;const i=Math.sign(t.x-r.x),o=Math.sign(t.y-r.y);return{x:{[H.Backward]:e.x[H.Backward]||-1===i,[H.Forward]:e.x[H.Forward]||1===i},y:{[H.Backward]:e.y[H.Backward]||-1===o,[H.Forward]:e.y[H.Forward]||1===o}}}),[n,t,r])}({delta:p,disabled:!s}),[g,v]=(0,o.useInterval)(),y=(0,r.useRef)({x:0,y:0}),b=(0,r.useRef)({x:0,y:0}),w=(0,r.useMemo)((()=>{switch(n){case we.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case we.DraggableRect:return a}}),[n,a,c]),_=(0,r.useRef)(null),x=(0,r.useCallback)((()=>{const e=_.current;if(!e)return;const t=y.current.x*b.current.x,n=y.current.y*b.current.y;e.scrollBy(t,n)}),[]),k=(0,r.useMemo)((()=>u===_e.TreeOrder?[...d].reverse():d),[u,d]);(0,r.useEffect)((()=>{if(s&&d.length&&w){for(const e of k){if(!1===(null==i?void 0:i(e)))continue;const n=d.indexOf(e),r=f[n];if(!r)continue;const{direction:o,speed:a}=Z(e,r,w,t,h);for(const e of["x","y"])m[e][o[e]]||(a[e]=0,o[e]=0);if(a.x>0||a.y>0)return v(),_.current=e,g(x,l),y.current=a,void(b.current=o)}y.current={x:0,y:0},b.current={x:0,y:0},v()}else v()}),[t,x,i,v,s,l,JSON.stringify(w),JSON.stringify(m),g,d,k,f,JSON.stringify(h)])}({...de,delta:L,draggingRect:nt,pointerCoordinates:Xe,scrollableAncestors:ze,scrollableAncestorRects:Ze});const dt=(0,r.useMemo)((()=>({active:W,activeNode:ue,activeNodeRect:pe,activatorEvent:Q,collisions:rt,containerNodeRect:he,dragOverlay:ve,draggableNodes:D,droppableContainers:j,droppableRects:ae,over:ot,measureDroppableContainers:se,scrollableAncestors:ze,scrollableAncestorRects:Ze,measuringConfiguration:ie,measuringScheduled:le,windowRect:Be})),[W,ue,pe,Q,rt,he,ve,D,j,ae,ot,se,ze,Ze,ie,le,Be]),ft=(0,r.useMemo)((()=>({activatorEvent:Q,activators:ct,active:W,activeNodeRect:pe,ariaDescribedById:{draggable:ne},dispatch:k,draggableNodes:D,over:ot,measureDroppableContainers:se})),[Q,ct,W,pe,k,ne,D,ot,se]);return r.createElement(c.Provider,{value:S},r.createElement(Ue.Provider,{value:ft},r.createElement(qe.Provider,{value:dt},r.createElement(Ge.Provider,{value:st},f)),r.createElement(He,{disabled:!1===(null==u?void 0:u.restoreFocus)})),r.createElement(h,{...u,hiddenTextDescribedById:ne}))})),Ye=(0,r.createContext)(null),Xe="button",Qe="Droppable";function Je(e){let{id:t,data:n,disabled:i=!1,attributes:a}=e;const s=(0,o.useUniqueId)(Qe),{activators:l,activatorEvent:u,active:c,activeNodeRect:d,ariaDescribedById:f,draggableNodes:p,over:h}=(0,r.useContext)(Ue),{role:m=Xe,roleDescription:g="draggable",tabIndex:v=0}=null!=a?a:{},y=(null==c?void 0:c.id)===t,b=(0,r.useContext)(y?Ge:Ye),[w,_]=(0,o.useNodeRef)(),[x,k]=(0,o.useNodeRef)(),E=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e}),{})),[e,t])}(l,t),C=(0,o.useLatestValue)(n);return(0,o.useIsomorphicLayoutEffect)((()=>(p.set(t,{id:t,key:s,node:w,activatorNode:x,data:C}),()=>{const e=p.get(t);e&&e.key===s&&p.delete(t)})),[p,t]),{active:c,activatorEvent:u,activeNodeRect:d,attributes:(0,r.useMemo)((()=>({role:m,tabIndex:v,"aria-disabled":i,"aria-pressed":!(!y||m!==Xe)||void 0,"aria-roledescription":g,"aria-describedby":f.draggable})),[i,m,v,y,g,f.draggable]),isDragging:y,listeners:i?void 0:E,node:w,over:h,setNodeRef:_,setActivatorNodeRef:k,transform:b}}function et(){return(0,r.useContext)(qe)}const tt="Droppable",nt={timeout:25};function rt(e){let{data:t,disabled:n=!1,id:i,resizeObserverConfig:a}=e;const s=(0,o.useUniqueId)(tt),{active:l,dispatch:u,over:c,measureDroppableContainers:d}=(0,r.useContext)(Ue),f=(0,r.useRef)({disabled:n}),p=(0,r.useRef)(!1),h=(0,r.useRef)(null),g=(0,r.useRef)(null),{disabled:v,updateMeasurementsFor:y,timeout:b}={...nt,...a},w=(0,o.useLatestValue)(null!=y?y:i),_=Ae({callback:(0,r.useCallback)((()=>{p.current?(null!=g.current&&clearTimeout(g.current),g.current=setTimeout((()=>{d(Array.isArray(w.current)?w.current:[w.current]),g.current=null}),b)):p.current=!0}),[b]),disabled:v||!l}),x=(0,r.useCallback)(((e,t)=>{_&&(t&&(_.unobserve(t),p.current=!1),e&&_.observe(e))}),[_]),[k,E]=(0,o.useNodeRef)(x),C=(0,o.useLatestValue)(t);return(0,r.useEffect)((()=>{_&&k.current&&(_.disconnect(),p.current=!1,_.observe(k.current))}),[k,_]),(0,o.useIsomorphicLayoutEffect)((()=>(u({type:m.RegisterDroppable,element:{id:i,key:s,disabled:n,node:k,rect:h,data:C}}),()=>u({type:m.UnregisterDroppable,key:s,id:i}))),[i]),(0,r.useEffect)((()=>{n!==f.current.disabled&&(u({type:m.SetDroppableDisabled,id:i,key:s,disabled:n}),f.current.disabled=n)}),[i,s,n,u]),{active:l,rect:h,isOver:(null==c?void 0:c.id)===i,node:k,over:c,setNodeRef:E}}function it(e){let{animation:t,children:n}=e;const[i,a]=(0,r.useState)(null),[s,l]=(0,r.useState)(null),u=(0,o.usePrevious)(n);return n||i||!u||a(u),(0,o.useIsomorphicLayoutEffect)((()=>{if(!s)return;const e=null==i?void 0:i.key,n=null==i?void 0:i.props.id;null!=e&&null!=n?Promise.resolve(t(n,s)).then((()=>{a(null)})):a(null)}),[t,i,s]),r.createElement(r.Fragment,null,n,i?(0,r.cloneElement)(i,{ref:l}):null)}const ot={x:0,y:0,scaleX:1,scaleY:1};function at(e){let{children:t}=e;return r.createElement(Ue.Provider,{value:ze},r.createElement(Ge.Provider,{value:ot},t))}const st={position:"fixed",touchAction:"none"},lt=e=>(0,o.isKeyboardEvent)(e)?"transform 250ms ease":void 0,ut=(0,r.forwardRef)(((e,t)=>{let{as:n,activatorEvent:i,adjustScale:a,children:s,className:l,rect:u,style:c,transform:d,transition:f=lt}=e;if(!u)return null;const p=a?d:{...d,scaleX:1,scaleY:1},h={...st,width:u.width,height:u.height,top:u.top,left:u.left,transform:o.CSS.Transform.toString(p),transformOrigin:a&&i?_(i,u):void 0,transition:"function"==typeof f?f(i):f,...c};return r.createElement(n,{className:l,style:h,ref:t},s)})),ct=e=>t=>{let{active:n,dragOverlay:r}=t;const i={},{styles:o,className:a}=e;if(null!=o&&o.active)for(const[e,t]of Object.entries(o.active))void 0!==t&&(i[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=o&&o.dragOverlay)for(const[e,t]of Object.entries(o.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[e,t]of Object.entries(i))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}},dt={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:o.CSS.Transform.toString(t)},{transform:o.CSS.Transform.toString(n)}]},sideEffects:ct({styles:{active:{opacity:"0"}}})};let ft=0;const pt=r.memo((e=>{let{adjustScale:t=!1,children:n,dropAnimation:i,style:a,transition:s,modifiers:l,wrapperElement:u="div",className:c,zIndex:d=999}=e;const{activatorEvent:f,active:p,activeNodeRect:h,containerNodeRect:m,draggableNodes:g,droppableContainers:v,dragOverlay:y,over:b,measuringConfiguration:w,scrollableAncestors:_,scrollableAncestorRects:x,windowRect:k}=et(),E=(0,r.useContext)(Ge),C=function(e){return(0,r.useMemo)((()=>{if(null!=e)return ft++,ft}),[e])}(null==p?void 0:p.id),S=Ve(l,{activatorEvent:f,active:p,activeNodeRect:h,containerNodeRect:m,draggingNodeRect:y.rect,over:b,overlayNodeRect:y.rect,scrollableAncestors:_,scrollableAncestorRects:x,transform:E,windowRect:k}),A=Se(h),T=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return(0,o.useEvent)(((e,a)=>{if(null===t)return;const s=n.get(e);if(!s)return;const l=s.node.current;if(!l)return;const u=Ie(a);if(!u)return;const{transform:c}=(0,o.getWindow)(a).getComputedStyle(a),d=L(c);if(!d)return;const f="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:i}={...dt,...e};return e=>{let{active:o,dragOverlay:a,transform:s,...l}=e;if(!t)return;const u=a.rect.left-o.rect.left,c=a.rect.top-o.rect.top,d={scaleX:1!==s.scaleX?o.rect.width*s.scaleX/a.rect.width:1,scaleY:1!==s.scaleY?o.rect.height*s.scaleY/a.rect.height:1},f={x:s.x-u,y:s.y-c,...d},p=i({...l,active:o,dragOverlay:a,transform:{initial:s,final:f}}),[h]=p,m=p[p.length-1];if(JSON.stringify(h)===JSON.stringify(m))return;const g=null==r?void 0:r({active:o,dragOverlay:a,...l}),v=a.node.animate(p,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{v.onfinish=()=>{null==g||g(),e()}}))}}(t);return Q(l,i.draggable.measure),f({active:{id:e,data:s.data,node:l,rect:i.draggable.measure(l)},draggableNodes:n,dragOverlay:{node:a,rect:i.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:i,transform:d})}))}({config:i,draggableNodes:g,droppableContainers:v,measuringConfiguration:w}),O=A?y.setRef:void 0;return r.createElement(at,null,r.createElement(it,{animation:T},p&&C?r.createElement(ut,{key:C,id:p.id,ref:O,as:u,activatorEvent:f,adjustScale:t,className:c,transition:s,rect:A,style:{zIndex:d,...a},transform:S},n):null))}))},88366:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createSnapModifier:()=>i,restrictToFirstScrollableAncestor:()=>l,restrictToHorizontalAxis:()=>o,restrictToParentElement:()=>s,restrictToVerticalAxis:()=>u,restrictToWindowEdges:()=>c,snapCenterToCursor:()=>d});var r=n(82851);function i(e){return t=>{let{transform:n}=t;return{...n,x:Math.ceil(n.x/e)*e,y:Math.ceil(n.y/e)*e}}}const o=e=>{let{transform:t}=e;return{...t,y:0}};function a(e,t,n){const r={...e};return t.top+e.y<=n.top?r.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(r.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?r.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(r.x=n.left+n.width-t.right),r}const s=e=>{let{containerNodeRect:t,draggingNodeRect:n,transform:r}=e;return n&&t?a(r,n,t):r},l=e=>{let{draggingNodeRect:t,transform:n,scrollableAncestorRects:r}=e;const i=r[0];return t&&i?a(n,t,i):n},u=e=>{let{transform:t}=e;return{...t,x:0}},c=e=>{let{transform:t,draggingNodeRect:n,windowRect:r}=e;return n&&r?a(t,n,r):t},d=e=>{let{activatorEvent:t,draggingNodeRect:n,transform:i}=e;if(n&&t){const e=(0,r.getEventCoordinates)(t);if(!e)return i;const o=e.x-n.left,a=e.y-n.top;return{...i,x:i.x+o-n.width/2,y:i.y+a-n.height/2}}return i}},66548:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SortableContext:()=>y,arrayMove:()=>a,arraySwap:()=>s,defaultAnimateLayoutChanges:()=>w,defaultNewIndexGetter:()=>b,hasSortableData:()=>S,horizontalListSortingStrategy:()=>d,rectSortingStrategy:()=>f,rectSwappingStrategy:()=>p,sortableKeyboardCoordinates:()=>T,useSortable:()=>C,verticalListSortingStrategy:()=>m});var r=n(2784),i=n(61540),o=n(82851);function a(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function s(e,t,n){const r=e.slice();return r[t]=e[n],r[n]=e[t],r}function l(e,t){return e.reduce(((e,n,r)=>{const i=t.get(n);return i&&(e[r]=i),e}),Array(e.length))}function u(e){return null!==e&&e>=0}const c={scaleX:1,scaleY:1},d=e=>{var t;let{rects:n,activeNodeRect:r,activeIndex:i,overIndex:o,index:a}=e;const s=null!=(t=n[i])?t:r;if(!s)return null;const l=function(e,t,n){const r=e[t],i=e[t-1],o=e[t+1];return r&&(i||o)?ni&&a<=o?{x:-s.width-l,y:0,...c}:a=o?{x:s.width+l,y:0,...c}:{x:0,y:0,...c}},f=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=a(t,r,n),s=t[i],l=o[i];return l&&s?{x:l.left-s.left,y:l.top-s.top,scaleX:l.width/s.width,scaleY:l.height/s.height}:null},p=e=>{let t,n,{activeIndex:r,index:i,rects:o,overIndex:a}=e;return i===r&&(t=o[i],n=o[a]),i===a&&(t=o[i],n=o[r]),n&&t?{x:n.left-t.left,y:n.top-t.top,scaleX:n.width/t.width,scaleY:n.height/t.height}:null},h={scaleX:1,scaleY:1},m=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:i,rects:o,overIndex:a}=e;const s=null!=(t=o[n])?t:r;if(!s)return null;if(i===n){const e=o[a];return e?{x:0,y:nn&&i<=a?{x:0,y:-s.height-l,...h}:i=a?{x:0,y:s.height+l,...h}:{x:0,y:0,...h}},g="Sortable",v=r.createContext({activeIndex:-1,containerId:g,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:f,disabled:{draggable:!1,droppable:!1}});function y(e){let{children:t,id:n,items:a,strategy:s=f,disabled:u=!1}=e;const{active:c,dragOverlay:d,droppableRects:p,over:h,measureDroppableContainers:m}=(0,i.useDndContext)(),y=(0,o.useUniqueId)(g,n),b=Boolean(null!==d.rect),w=(0,r.useMemo)((()=>a.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[a]),_=null!=c,x=c?w.indexOf(c.id):-1,k=h?w.indexOf(h.id):-1,E=(0,r.useRef)(w),C=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{C&&_&&m(w)}),[C,w,_,m]),(0,r.useEffect)((()=>{E.current=w}),[w]);const T=(0,r.useMemo)((()=>({activeIndex:x,containerId:y,disabled:A,disableTransforms:S,items:w,overIndex:k,useDragOverlay:b,sortedRects:l(w,p),strategy:s})),[x,y,A.draggable,A.droppable,S,w,k,p,b,s]);return r.createElement(v.Provider,{value:T},t)}const b=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return a(n,r,i).indexOf(t)},w=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:a,previousItems:s,previousContainerId:l,transition:u}=e;return!(!u||!r||s!==o&&i===a||!n&&(a===i||t!==l))},_={duration:200,easing:"ease"},x="transform",k=o.CSS.Transition.toString({property:x,duration:0,easing:"linear"}),E={roleDescription:"sortable"};function C(e){let{animateLayoutChanges:t=w,attributes:n,disabled:a,data:s,getNewIndex:l=b,id:c,strategy:d,resizeObserverConfig:f,transition:p=_}=e;const{items:h,containerId:m,activeIndex:g,disabled:y,disableTransforms:C,sortedRects:S,overIndex:A,useDragOverlay:T,strategy:O}=(0,r.useContext)(v),P=function(e,t){var n,r;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(a,y),R=h.indexOf(c),D=(0,r.useMemo)((()=>({sortable:{containerId:m,index:R,items:h},...s})),[m,s,R,h]),M=(0,r.useMemo)((()=>h.slice(h.indexOf(c))),[h,c]),{rect:I,node:L,isOver:j,setNodeRef:N}=(0,i.useDroppable)({id:c,data:D,disabled:P.droppable,resizeObserverConfig:{updateMeasurementsFor:M,...f}}),{active:F,activatorEvent:B,activeNodeRect:z,attributes:U,setNodeRef:q,listeners:W,isDragging:$,over:H,setActivatorNodeRef:V,transform:G}=(0,i.useDraggable)({id:c,data:D,attributes:{...E,...n},disabled:P.draggable}),K=(0,o.useCombinedRefs)(N,q),Z=Boolean(F),Y=Z&&!C&&u(g)&&u(A),X=!T&&$,Q=X&&Y?G:null,J=Y?null!=Q?Q:(null!=d?d:O)({rects:S,activeNodeRect:z,activeIndex:g,overIndex:A,index:R}):null,ee=u(g)&&u(A)?l({id:c,items:h,activeIndex:g,overIndex:A}):R,te=null==F?void 0:F.id,ne=(0,r.useRef)({activeId:te,items:h,newIndex:ee,containerId:m}),re=h!==ne.current.items,ie=t({active:F,containerId:m,isDragging:$,isSorting:Z,id:c,index:R,items:h,newIndex:ne.current.newIndex,previousItems:ne.current.items,previousContainerId:ne.current.containerId,transition:p,wasDragging:null!=ne.current.activeId}),oe=function(e){let{disabled:t,index:n,node:a,rect:s}=e;const[l,u]=(0,r.useState)(null),c=(0,r.useRef)(n);return(0,o.useIsomorphicLayoutEffect)((()=>{if(!t&&n!==c.current&&a.current){const e=s.current;if(e){const t=(0,i.getClientRect)(a.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&u(n)}}n!==c.current&&(c.current=n)}),[t,n,a,s]),(0,r.useEffect)((()=>{l&&u(null)}),[l]),l}({disabled:!ie,index:R,node:L,rect:I});return(0,r.useEffect)((()=>{Z&&ne.current.newIndex!==ee&&(ne.current.newIndex=ee),m!==ne.current.containerId&&(ne.current.containerId=m),h!==ne.current.items&&(ne.current.items=h)}),[Z,ee,m,h]),(0,r.useEffect)((()=>{if(te===ne.current.activeId)return;if(te&&!ne.current.activeId)return void(ne.current.activeId=te);const e=setTimeout((()=>{ne.current.activeId=te}),50);return()=>clearTimeout(e)}),[te]),{active:F,activeIndex:g,attributes:U,data:D,rect:I,index:R,newIndex:ee,items:h,isOver:j,isSorting:Z,isDragging:$,listeners:W,node:L,overIndex:A,over:H,setNodeRef:K,setActivatorNodeRef:V,setDroppableNodeRef:N,setDraggableNodeRef:q,transform:null!=oe?oe:J,transition:oe||re&&ne.current.newIndex===R?k:X&&!(0,o.isKeyboardEvent)(B)||!p?void 0:Z||ie?o.CSS.Transition.toString({...p,property:x}):void 0}}function S(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const A=[i.KeyboardCode.Down,i.KeyboardCode.Right,i.KeyboardCode.Up,i.KeyboardCode.Left],T=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:a,droppableContainers:s,over:l,scrollableAncestors:u}}=t;if(A.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[];s.getEnabled().forEach((n=>{if(!n||null!=n&&n.disabled)return;const o=a.get(n.id);if(o)switch(e.code){case i.KeyboardCode.Down:r.topo.top&&t.push(n);break;case i.KeyboardCode.Left:r.left>o.left&&t.push(n);break;case i.KeyboardCode.Right:r.left1&&(p=f[1].id),null!=p){const e=s.get(n.id),t=s.get(p),l=t?a.get(t.id):null,f=null==t?void 0:t.node.current;if(f&&l&&e&&t){const n=(0,i.getScrollableAncestors)(f).some(((e,t)=>u[t]!==e)),a=O(e,t),s=(d=t,!(!S(c=e)||!S(d))&&!!O(c,d)&&c.data.current.sortable.index{"use strict";n.r(t),n.d(t,{CSS:()=>O,add:()=>k,canUseDOM:()=>o,findFirstFocusableNode:()=>R,getEventCoordinates:()=>T,getOwnerDocument:()=>f,getWindow:()=>l,hasViewportRelativeCoordinates:()=>C,isDocument:()=>u,isHTMLElement:()=>c,isKeyboardEvent:()=>S,isNode:()=>s,isSVGElement:()=>d,isTouchEvent:()=>A,isWindow:()=>a,subtract:()=>E,useCombinedRefs:()=>i,useEvent:()=>h,useInterval:()=>m,useIsomorphicLayoutEffect:()=>p,useLatestValue:()=>g,useLazyMemo:()=>v,useNodeRef:()=>y,usePrevious:()=>b,useUniqueId:()=>_});var r=n(2784);function i(){for(var e=arguments.length,t=new Array(e),n=0;ne=>{t.forEach((t=>t(e)))}),t)}const o="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function a(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function s(e){return"nodeType"in e}function l(e){var t,n;return e?a(e)?e:s(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function u(e){const{Document:t}=l(e);return e instanceof t}function c(e){return!a(e)&&e instanceof l(e).HTMLElement}function d(e){return e instanceof l(e).SVGElement}function f(e){return e?a(e)?e.document:s(e)?u(e)?e:c(e)?e.ownerDocument:document:document:document}const p=o?r.useLayoutEffect:r.useEffect;function h(e){const t=(0,r.useRef)(e);return p((()=>{t.current=e})),(0,r.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r{e.current=setInterval(t,n)}),[]),(0,r.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}function g(e,t){void 0===t&&(t=[e]);const n=(0,r.useRef)(e);return p((()=>{n.current!==e&&(n.current=e)}),t),n}function v(e,t){const n=(0,r.useRef)();return(0,r.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function y(e){const t=h(e),n=(0,r.useRef)(null),i=(0,r.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,i]}function b(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}let w={};function _(e,t){return(0,r.useMemo)((()=>{if(t)return t;const n=null==w[e]?0:w[e]+1;return w[e]=n,e+"-"+n}),[e,t])}function x(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{const r=Object.entries(n);for(const[n,i]of r){const r=t[n];null!=r&&(t[n]=r+e*i)}return t}),{...t})}}const k=x(1),E=x(-1);function C(e){return"clientX"in e&&"clientY"in e}function S(e){if(!e)return!1;const{KeyboardEvent:t}=l(e.target);return t&&e instanceof t}function A(e){if(!e)return!1;const{TouchEvent:t}=l(e.target);return t&&e instanceof t}function T(e){if(A(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return C(e)?{x:e.clientX,y:e.clientY}:null}const O=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[O.Translate.toString(e),O.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),P="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function R(e){return e.matches(P)?e:e.querySelector(P)}},39721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>re});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?c(w,--y):0,g--,10===b&&(g=1,m--),b}function E(){return b=y2||T(b)>3?"":" "}function M(e,t){for(;--t&&E()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return A(e,S()+(t<6&&32==C()&&32==E()))}function I(e){for(;E();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&I(b);break;case 40:41===e&&I(e);break;case 92:E()}return y}function L(e,t){for(;E()&&e+b!==57&&(e+b!==84||47!==C()););return"/*"+A(t,y-1)+"*"+o(47===e?e:E())}function j(e){for(;!T(C());)E();return A(e,y)}var N="-ms-",F="-moz-",B="-webkit-",z="comm",U="rule",q="decl",W="@keyframes";function $(e,t){for(var n="",r=p(e),i=0;i0&&f(F)-v&&h(b>32?Y(F+";",r,n,v-1):Y(l(F," ","")+";",r,n,v-2),p);break;case 59:F+=";";default:if(h(N=K(F,t,n,m,g,i,d,O,P=[],I=[],v),a),123===T)if(0===g)G(F,t,N,N,P,a,v,d,I);else switch(99===y&&110===c(F,3)?100:y){case 100:case 108:case 109:case 115:G(e,N,N,r&&h(K(e,N,N,0,0,i,d,O,i,P=[],v),I),i,I,v,d,r?P:I);break;default:G(F,N,N,N,[""],I,0,d,I)}}m=g=b=0,_=A=1,O=F="",v=s;break;case 58:v=1+f(F),b=w;default:if(_<1)if(123==T)--_;else if(125==T&&0==_++&&125==k())continue;switch(F+=o(T),T*_){case 38:A=g>0?1:(F+="\f",-1);break;case 44:d[m++]=(f(F)-1)*A,A=1;break;case 64:45===C()&&(F+=R(E())),y=C(),g=v=f(O=F+=j(S())),T++;break;case 45:45===w&&2==f(F)&&(_=0)}}return a}function K(e,t,n,r,o,a,u,c,f,h,m){for(var g=o-1,v=0===o?a:[""],y=p(v),b=0,w=0,x=0;b0?v[k]+" "+E:l(E,/&\f/g,v[k])))&&(f[x++]=C);return _(e,t,n,0===o?U:c,f,h,m)}function Z(e,t,n){return _(e,t,n,z,o(b),d(e,2,-2),0)}function Y(e,t,n,r){return _(e,t,n,q,d(e,0,r),d(e,r+1,-1),r)}var X=function(e,t,n){for(var r=0,i=0;r=i,i=C(),38===r&&12===i&&(t[n]=1),!T(i);)E();return A(e,y)},Q=new WeakMap,J=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Q.get(n))&&!r){Q.set(e,!0);for(var i=[],a=function(e,t){return P(function(e,t){var n=-1,r=44;do{switch(T(r)){case 0:38===r&&12===C()&&(t[n]=1),e[n]+=X(y-1,t,n);break;case 2:e[n]+=R(r);break;case 4:if(44===r){e[++n]=58===C()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}}while(r=E());return e}(O(e),t))}(t,i),s=n.props,l=0,u=0;l6)switch(c(e,t+1)){case 109:if(45!==c(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+F+(108==c(e,t+3)?"$3":"$2-$3"))+e;case 115:return~u(e,"stretch")?te(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==c(e,t+1))break;case 6444:switch(c(e,f(e)-3-(~u(e,"!important")&&10))){case 107:return l(e,":",":"+B)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(45===c(e,14)?"inline-":"")+"box$3$1"+B+"$2$3$1"+N+"$2box$3")+e}break;case 5936:switch(c(e,t+11)){case 114:return B+e+N+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+N+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+N+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+N+e+e}return e}var ne=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case q:e.return=te(e.value,e.length);break;case W:return $([x(e,{value:l(e.value,"@","@"+B)})],r);case U:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return $([x(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return $([x(e,{props:[l(t,/:(plac\w+)/,":"+B+"input-$1")]}),x(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),x(e,{props:[l(t,/:(plac\w+)/,N+"input-$1")]})],r)}return""}))}}],re=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i,o,a=e.stylisPlugins||ne,s={},l=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{Z:()=>r})},33895:(e,t,n)=>{"use strict";n.d(t,{C:()=>g,E:()=>A,T:()=>b,_:()=>v,a:()=>x,b:()=>k,c:()=>C,h:()=>h,i:()=>p,u:()=>w,w:()=>y});var r=n(2784),i=n(39721),o=n(7896),a=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},s=n(73463),l=n.n(s),u=function(e,t){return l()(e,t)},c=n(82792),d=n(44188),f=n(82668),p=!0,h={}.hasOwnProperty,m=r.createContext("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null),g=m.Provider,v=function(){return(0,r.useContext)(m)},y=function(e){return(0,r.forwardRef)((function(t,n){var i=(0,r.useContext)(m);return e(t,i,n)}))};p||(y=function(e){return function(t){var n=(0,r.useContext)(m);return null===n?(n=(0,i.Z)({key:"css"}),r.createElement(m.Provider,{value:n},e(t,n))):e(t,n)}});var b=r.createContext({}),w=function(){return r.useContext(b)},_=a((function(e){return a((function(t){return function(e,t){return"function"==typeof t?t(e):(0,o.Z)({},e,t)}(e,t)}))})),x=function(e){var t=r.useContext(b);return e.theme!==t&&(t=_(t)(e.theme)),r.createElement(b.Provider,{value:t},e.children)};function k(e){var t=e.displayName||e.name||"Component",n=r.forwardRef((function(t,n){var i=r.useContext(b);return r.createElement(e,(0,o.Z)({theme:i,ref:n},t))}));return n.displayName="WithTheme("+t+")",u(n,e)}var E="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",C=function(e,t){var n={};for(var r in t)h.call(t,r)&&(n[r]=t[r]);return n[E]=e,n},S=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,c.hC)(t,n,r),(0,f.L)((function(){return(0,c.My)(t,n,r)})),null},A=y((function(e,t,n){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var o=e[E],a=[i],s="";"string"==typeof e.className?s=(0,c.fp)(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var l=(0,d.O)(a,void 0,r.useContext(b));s+=t.key+"-"+l.name;var u={};for(var f in e)h.call(e,f)&&"css"!==f&&f!==E&&(u[f]=e[f]);return u.ref=n,u.className=s,r.createElement(r.Fragment,null,r.createElement(S,{cache:t,serialized:l,isStringTag:"string"==typeof o}),r.createElement(o,u))}))},28165:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CacheProvider:()=>r.C,ClassNames:()=>h,Global:()=>u,ThemeContext:()=>r.T,ThemeProvider:()=>r.a,__unsafe_useEmotionCache:()=>r._,createElement:()=>l,css:()=>c,jsx:()=>l,keyframes:()=>d,useTheme:()=>r.u,withEmotionCache:()=>r.w,withTheme:()=>r.b});var r=n(33895),i=n(2784),o=n(82792),a=n(82668),s=n(44188),l=(n(39721),n(73463),function(e,t){var n=arguments;if(null==t||!r.h.call(t,"css"))return i.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=r.E,a[1]=(0,r.c)(e,t);for(var s=2;s{"use strict";n.d(t,{O:()=>h});var r={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},i=n(86894),o=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!=typeof e},u=(0,i.Z)((function(e){return s(e)?e:e.replace(o,"-$&").toLowerCase()})),c=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(a,(function(e,t,n){return f={name:t,styles:n,next:f},t}))}return 1===r[e]||s(e)||"number"!=typeof t||0===t?t:t+"px"};function d(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return f={name:n.name,styles:n.styles,next:f},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)f={name:r.name,styles:r.styles,next:f},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:u,styles:i,next:f}}},70894:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r=n(7896),i=n(2784),o=n(86894),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|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|enterKeyHint|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|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|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)-.*))$/,s=(0,o.Z)((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(33895),u=n(82792),c=n(44188),d=n(82668),f=s,p=function(e){return"theme"!==e},h=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?f:p},m=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,u.hC)(t,n,r),(0,d.L)((function(){return(0,u.My)(t,n,r)})),null},v=function e(t,n){var o,a,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==n&&(o=n.label,a=n.target);var f=m(t,n,s),p=f||h(d),v=!p("as");return function(){var y=arguments,b=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&b.push("label:"+o+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{b.push(y[0][0]);for(var w=y.length,_=1;_{"use strict";var r;n.d(t,{L:()=>a,j:()=>s});var i=n(2784),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},82792:(e,t,n)=>{"use strict";function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}n.d(t,{My:()=>o,fp:()=>r,hC:()=>i});var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}},55034:(e,t,n)=>{"use strict";const r=n(11976),i=n.g.Date;class o extends i{constructor(e){super(e),this.isDate=!0}toISOString(){return`${this.getUTCFullYear()}-${r(2,this.getUTCMonth()+1)}-${r(2,this.getUTCDate())}`}}e.exports=e=>{const t=new o(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}},59697:(e,t,n)=>{"use strict";const r=n(11976);class i extends Date{constructor(e){super(e+"Z"),this.isFloating=!0}toISOString(){return`${this.getUTCFullYear()}-${r(2,this.getUTCMonth()+1)}-${r(2,this.getUTCDate())}T${r(2,this.getUTCHours())}:${r(2,this.getUTCMinutes())}:${r(2,this.getUTCSeconds())}.${r(3,this.getUTCMilliseconds())}`}}e.exports=e=>{const t=new i(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}},12446:e=>{"use strict";e.exports=e=>{const t=new Date(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}},70256:(e,t,n)=>{"use strict";const r=n(11976);class i extends Date{constructor(e){super(`0000-01-01T${e}Z`),this.isTime=!0}toISOString(){return`${r(2,this.getUTCHours())}:${r(2,this.getUTCMinutes())}:${r(2,this.getUTCSeconds())}.${r(3,this.getUTCMilliseconds())}`}}e.exports=e=>{const t=new i(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}},11976:e=>{"use strict";e.exports=(e,t)=>{for(t=String(t);t.length{"use strict";const t=1114112;class n extends Error{constructor(e,t,r){super("[ParserError] "+e,t,r),this.name="ParserError",this.code="ParserError",Error.captureStackTrace&&Error.captureStackTrace(this,n)}}class r{constructor(e){this.parser=e,this.buf="",this.returned=null,this.result=null,this.resultTable=null,this.resultArr=null}}class i{constructor(){this.pos=0,this.col=0,this.line=0,this.obj={},this.ctx=this.obj,this.stack=[],this._buf="",this.char=null,this.ii=0,this.state=new r(this.parseStart)}parse(e){if(0===e.length||null==e.length)return;let t;for(this._buf=String(e),this.ii=-1,this.char=-1;!1===t||this.nextChar();)t=this.runOne();this._buf=null}nextChar(){return 10===this.char&&(++this.line,this.col=-1),++this.ii,this.char=this._buf.codePointAt(this.ii),++this.pos,++this.col,this.haveBuffer()}haveBuffer(){return this.ii{"use strict";module.exports=makeParserClass(__webpack_require__(86056)),module.exports.makeParserClass=makeParserClass;class TomlError extends Error{constructor(e){super(e),this.name="TomlError",Error.captureStackTrace&&Error.captureStackTrace(this,TomlError),this.fromTOML=!0,this.wrapped=null}}TomlError.wrap=e=>{const t=new TomlError(e.message);return t.code=e.code,t.wrapped=e,t},module.exports.TomlError=TomlError;const createDateTime=__webpack_require__(12446),createDateTimeFloat=__webpack_require__(59697),createDate=__webpack_require__(55034),createTime=__webpack_require__(70256),CTRL_I=9,CTRL_J=10,CTRL_M=13,CTRL_CHAR_BOUNDARY=31,CHAR_SP=32,CHAR_QUOT=34,CHAR_NUM=35,CHAR_APOS=39,CHAR_PLUS=43,CHAR_COMMA=44,CHAR_HYPHEN=45,CHAR_PERIOD=46,CHAR_0=48,CHAR_1=49,CHAR_7=55,CHAR_9=57,CHAR_COLON=58,CHAR_EQUALS=61,CHAR_A=65,CHAR_E=69,CHAR_F=70,CHAR_T=84,CHAR_U=85,CHAR_Z=90,CHAR_LOWBAR=95,CHAR_a=97,CHAR_b=98,CHAR_e=101,CHAR_f=102,CHAR_i=105,CHAR_l=108,CHAR_n=110,CHAR_o=111,CHAR_r=114,CHAR_s=115,CHAR_t=116,CHAR_u=117,CHAR_x=120,CHAR_z=122,CHAR_LCUB=123,CHAR_RCUB=125,CHAR_LSQB=91,CHAR_BSOL=92,CHAR_RSQB=93,CHAR_DEL=127,SURROGATE_FIRST=55296,SURROGATE_LAST=57343,escapes={[CHAR_b]:"\b",[CHAR_t]:"\t",[CHAR_n]:"\n",[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit(e){return e>=CHAR_0&&e<=CHAR_9}function isHexit(e){return e>=CHAR_A&&e<=CHAR_F||e>=CHAR_a&&e<=CHAR_f||e>=CHAR_0&&e<=CHAR_9}function isBit(e){return e===CHAR_1||e===CHAR_0}function isOctit(e){return e>=CHAR_0&&e<=CHAR_7}function isAlphaNumQuoteHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_APOS||e===CHAR_QUOT||e===CHAR_LOWBAR||e===CHAR_HYPHEN}function isAlphaNumHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_LOWBAR||e===CHAR_HYPHEN}const _type=Symbol("type"),_declared=Symbol("declared"),hasOwnProperty=Object.prototype.hasOwnProperty,defineProperty=Object.defineProperty,descriptor={configurable:!0,enumerable:!0,writable:!0,value:void 0};function hasKey(e,t){return!!hasOwnProperty.call(e,t)||("__proto__"===t&&defineProperty(e,"__proto__",descriptor),!1)}const INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}function isInlineTable(e){return null!==e&&"object"==typeof e&&e[_type]===INLINE_TABLE}const TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:!1,writable:!0}})}function isTable(e){return null!==e&&"object"==typeof e&&e[_type]===TABLE}const _contentType=Symbol("content-type"),INLINE_LIST=Symbol("inline-list");function InlineList(e){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:e}})}function isInlineList(e){return null!==e&&"object"==typeof e&&e[_type]===INLINE_LIST}const LIST=Symbol("list");function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}function isList(e){return null!==e&&"object"==typeof e&&e[_type]===LIST}let _custom;try{const utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch(e){}const _inspect=_custom||"inspect";class BoxedBigInt{constructor(e){try{this.value=__webpack_require__.g.BigInt.asIntN(64,e)}catch(e){this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return null===this.value}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}}const INTEGER=Symbol("integer");function Integer(e){let t=Number(e);return Object.is(t,-0)&&(t=0),__webpack_require__.g.BigInt&&!Number.isSafeInteger(t)?new BoxedBigInt(e):Object.defineProperties(new Number(t),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${e}]`}})}function isInteger(e){return null!==e&&"object"==typeof e&&e[_type]===INTEGER}const FLOAT=Symbol("float");function Float(e){return Object.defineProperties(new Number(e),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${e}]`}})}function isFloat(e){return null!==e&&"object"==typeof e&&e[_type]===FLOAT}function tomlType(e){const t=typeof e;if("object"===t){if(null===e)return"null";if(e instanceof Date)return"datetime";if(_type in e)switch(e[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}return t}function makeParserClass(e){return class extends e{constructor(){super(),this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===e.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===e.END)return null;if(this.char===CHAR_LSQB)return this.call(this.parseTableOrList);if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(isAlphaNumQuoteHyphen(this.char))return this.callNow(this.parseAssignStatement);throw this.error(new TomlError(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(this.char===CHAR_NUM)return this.goto(this.parseComment);if(this.char===e.END||this.char===CTRL_J)return this.return();throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(e){let t=this.ctx,n=e.key.pop();for(let n of e.key){if(hasKey(t,n)&&(!isTable(t[n])||t[n][_declared]))throw this.error(new TomlError("Can't redefine existing key"));t=t[n]=t[n]||Table()}if(hasKey(t,n))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(e.value)||isFloat(e.value)?t[n]=e.value.valueOf():t[n]=e.value,this.goto(this.parseWhitespaceToEOL)}parseAssign(){return this.callNow(this.parseKeyword,this.recordAssignKeyword)}recordAssignKeyword(e){return this.state.resultTable?this.state.resultTable.push(e):this.state.resultTable=[e],this.goto(this.parseAssignKeywordPreDot)}parseAssignKeywordPreDot(){return this.char===CHAR_PERIOD?this.next(this.parseAssignKeywordPostDot):this.char!==CHAR_SP&&this.char!==CTRL_I?this.goto(this.parseAssignEqual):void 0}parseAssignKeywordPostDot(){if(this.char!==CHAR_SP&&this.char!==CTRL_I)return this.callNow(this.parseKeyword,this.recordAssignKeyword)}parseAssignEqual(){if(this.char===CHAR_EQUALS)return this.next(this.parseAssignPreValue);throw this.error(new TomlError('Invalid character, expected "="'))}parseAssignPreValue(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseValue,this.recordAssignValue)}recordAssignValue(e){return this.returnNow({key:this.state.resultTable,value:e})}parseComment(){do{if(this.char===e.END||this.char===CTRL_J)return this.return()}while(this.nextChar())}parseTableOrList(){if(this.char!==CHAR_LSQB)return this.goto(this.parseTable);this.next(this.parseList)}parseTable(){return this.ctx=this.obj,this.goto(this.parseTableNext)}parseTableNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseTableMore)}parseTableMore(e){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,e)&&(!isTable(this.ctx[e])||this.ctx[e][_declared]))throw this.error(new TomlError("Can't redefine existing key"));return this.ctx=this.ctx[e]=this.ctx[e]||Table(),this.ctx[_declared]=!0,this.next(this.parseWhitespaceToEOL)}if(this.char===CHAR_PERIOD){if(hasKey(this.ctx,e))if(isTable(this.ctx[e]))this.ctx=this.ctx[e];else{if(!isList(this.ctx[e]))throw this.error(new TomlError("Can't redefine existing key"));this.ctx=this.ctx[e][this.ctx[e].length-1]}else this.ctx=this.ctx[e]=Table();return this.next(this.parseTableNext)}throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseList(){return this.ctx=this.obj,this.goto(this.parseListNext)}parseListNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseListMore)}parseListMore(e){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,e)||(this.ctx[e]=List()),isInlineList(this.ctx[e]))throw this.error(new TomlError("Can't extend an inline array"));if(!isList(this.ctx[e]))throw this.error(new TomlError("Can't redefine an existing key"));{const t=Table();this.ctx[e].push(t),this.ctx=t}return this.next(this.parseListEnd)}if(this.char===CHAR_PERIOD){if(hasKey(this.ctx,e)){if(isInlineList(this.ctx[e]))throw this.error(new TomlError("Can't extend an inline array"));if(isInlineTable(this.ctx[e]))throw this.error(new TomlError("Can't extend an inline table"));if(isList(this.ctx[e]))this.ctx=this.ctx[e][this.ctx[e].length-1];else{if(!isTable(this.ctx[e]))throw this.error(new TomlError("Can't redefine an existing key"));this.ctx=this.ctx[e]}}else this.ctx=this.ctx[e]=Table();return this.next(this.parseListNext)}throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseListEnd(e){if(this.char===CHAR_RSQB)return this.next(this.parseWhitespaceToEOL);throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseValue(){if(this.char===e.END)throw this.error(new TomlError("Key without value"));if(this.char===CHAR_QUOT)return this.next(this.parseDoubleString);if(this.char===CHAR_APOS)return this.next(this.parseSingleString);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)return this.goto(this.parseNumberSign);if(this.char===CHAR_i)return this.next(this.parseInf);if(this.char===CHAR_n)return this.next(this.parseNan);if(isDigit(this.char))return this.goto(this.parseNumberOrDateTime);if(this.char===CHAR_t||this.char===CHAR_f)return this.goto(this.parseBoolean);if(this.char===CHAR_LSQB)return this.call(this.parseInlineList,this.recordValue);if(this.char===CHAR_LCUB)return this.call(this.parseInlineTable,this.recordValue);throw this.error(new TomlError("Unexpected character, expecting string, number, datetime, boolean, inline array or inline table"))}recordValue(e){return this.returnNow(e)}parseInf(){if(this.char===CHAR_n)return this.next(this.parseInf2);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseInf2(){if(this.char===CHAR_f)return"-"===this.state.buf?this.return(-1/0):this.return(1/0);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseNan(){if(this.char===CHAR_a)return this.next(this.parseNan2);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseNan2(){if(this.char===CHAR_n)return this.return(NaN);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseKeyword(){return this.char===CHAR_QUOT?this.next(this.parseBasicString):this.char===CHAR_APOS?this.next(this.parseLiteralString):this.goto(this.parseBareKey)}parseBareKey(){do{if(this.char===e.END)throw this.error(new TomlError("Key ended without value"));if(!isAlphaNumHyphen(this.char)){if(0===this.state.buf.length)throw this.error(new TomlError("Empty bare keys are not allowed"));return this.returnNow()}this.consume()}while(this.nextChar())}parseSingleString(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiStringMaybe):this.goto(this.parseLiteralString)}parseLiteralString(){do{if(this.char===CHAR_APOS)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiStringMaybe(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiString):this.returnNow()}parseLiteralMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseLiteralMultiStringContent):this.goto(this.parseLiteralMultiStringContent)}parseLiteralMultiStringContent(){do{if(this.char===CHAR_APOS)return this.next(this.parseLiteralMultiEnd);if(this.char===e.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiEnd(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiEnd2):(this.state.buf+="'",this.goto(this.parseLiteralMultiStringContent))}parseLiteralMultiEnd2(){return this.char===CHAR_APOS?this.return():(this.state.buf+="''",this.goto(this.parseLiteralMultiStringContent))}parseDoubleString(){return this.char===CHAR_QUOT?this.next(this.parseMultiStringMaybe):this.goto(this.parseBasicString)}parseBasicString(){do{if(this.char===CHAR_BSOL)return this.call(this.parseEscape,this.recordEscapeReplacement);if(this.char===CHAR_QUOT)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}recordEscapeReplacement(e){return this.state.buf+=e,this.goto(this.parseBasicString)}parseMultiStringMaybe(){return this.char===CHAR_QUOT?this.next(this.parseMultiString):this.returnNow()}parseMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseMultiStringContent):this.goto(this.parseMultiStringContent)}parseMultiStringContent(){do{if(this.char===CHAR_BSOL)return this.call(this.parseMultiEscape,this.recordMultiEscapeReplacement);if(this.char===CHAR_QUOT)return this.next(this.parseMultiEnd);if(this.char===e.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}errorControlCharInString(){let e="\\u00";return this.char<16&&(e+="0"),e+=this.char.toString(16),this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${e} instead`))}recordMultiEscapeReplacement(e){return this.state.buf+=e,this.goto(this.parseMultiStringContent)}parseMultiEnd(){return this.char===CHAR_QUOT?this.next(this.parseMultiEnd2):(this.state.buf+='"',this.goto(this.parseMultiStringContent))}parseMultiEnd2(){return this.char===CHAR_QUOT?this.return():(this.state.buf+='""',this.goto(this.parseMultiStringContent))}parseMultiEscape(){return this.char===CTRL_M||this.char===CTRL_J?this.next(this.parseMultiTrim):this.char===CHAR_SP||this.char===CTRL_I?this.next(this.parsePreMultiTrim):this.goto(this.parseEscape)}parsePreMultiTrim(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CTRL_M||this.char===CTRL_J)return this.next(this.parseMultiTrim);throw this.error(new TomlError("Can't escape whitespace"))}parseMultiTrim(){return this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M?null:this.returnNow()}parseEscape(){if(this.char in escapes)return this.return(escapes[this.char]);if(this.char===CHAR_u)return this.call(this.parseSmallUnicode,this.parseUnicodeReturn);if(this.char===CHAR_U)return this.call(this.parseLargeUnicode,this.parseUnicodeReturn);throw this.error(new TomlError("Unknown escape character: "+this.char))}parseUnicodeReturn(e){try{const t=parseInt(e,16);if(t>=SURROGATE_FIRST&&t<=SURROGATE_LAST)throw this.error(new TomlError("Invalid unicode, character in range 0xD800 - 0xDFFF is reserved"));return this.returnNow(String.fromCodePoint(t))}catch(e){throw this.error(TomlError.wrap(e))}}parseSmallUnicode(){if(!isHexit(this.char))throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"));if(this.consume(),this.state.buf.length>=4)return this.return()}parseLargeUnicode(){if(!isHexit(this.char))throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"));if(this.consume(),this.state.buf.length>=8)return this.return()}parseNumberSign(){return this.consume(),this.next(this.parseMaybeSignedInfOrNan)}parseMaybeSignedInfOrNan(){return this.char===CHAR_i?this.next(this.parseInf):this.char===CHAR_n?this.next(this.parseNan):this.callNow(this.parseNoUnder,this.parseNumberIntegerStart)}parseNumberIntegerStart(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberIntegerExponentOrDecimal)):this.goto(this.parseNumberInteger)}parseNumberIntegerExponentOrDecimal(){return this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Integer(this.state.buf))}parseNumberInteger(){if(!isDigit(this.char)){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder);if(this.char===CHAR_E||this.char===CHAR_e)return this.consume(),this.next(this.parseNumberExponentSign);if(this.char===CHAR_PERIOD)return this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat);{const e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(e)}}this.consume()}parseNoUnder(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD||this.char===CHAR_E||this.char===CHAR_e)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNoUnderHexOctBinLiteral(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNumberFloat(){return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder,this.parseNumberFloat):isDigit(this.char)?void this.consume():this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Float(this.state.buf))}parseNumberExponentSign(){if(isDigit(this.char))return this.goto(this.parseNumberExponent);if(this.char!==CHAR_HYPHEN&&this.char!==CHAR_PLUS)throw this.error(new TomlError("Unexpected character, expected -, + or digit"));this.consume(),this.call(this.parseNoUnder,this.parseNumberExponent)}parseNumberExponent(){if(!isDigit(this.char))return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder):this.returnNow(Float(this.state.buf));this.consume()}parseNumberOrDateTime(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberBaseOrDateTime)):this.goto(this.parseNumberOrDateTimeOnly)}parseNumberOrDateTimeOnly(){return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder,this.parseNumberInteger):isDigit(this.char)?(this.consume(),void(this.state.buf.length>4&&this.next(this.parseNumberInteger))):this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_HYPHEN?this.goto(this.parseDateTime):this.char===CHAR_COLON?this.goto(this.parseOnlyTimeHour):this.returnNow(Integer(this.state.buf))}parseDateTimeOnly(){if(this.state.buf.length<4){if(isDigit(this.char))return this.consume();if(this.char===CHAR_COLON)return this.goto(this.parseOnlyTimeHour);throw this.error(new TomlError("Expected digit while parsing year part of a date"))}if(this.char===CHAR_HYPHEN)return this.goto(this.parseDateTime);throw this.error(new TomlError("Expected hyphen (-) while parsing year part of date"))}parseNumberBaseOrDateTime(){return this.char===CHAR_b?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerBin)):this.char===CHAR_o?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerOct)):this.char===CHAR_x?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerHex)):this.char===CHAR_PERIOD?this.goto(this.parseNumberInteger):isDigit(this.char)?this.goto(this.parseDateTimeOnly):this.returnNow(Integer(this.state.buf))}parseIntegerHex(){if(!isHexit(this.char)){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{const e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(e)}}this.consume()}parseIntegerOct(){if(!isOctit(this.char)){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{const e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(e)}}this.consume()}parseIntegerBin(){if(!isBit(this.char)){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{const e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(e)}}this.consume()}parseDateTime(){if(this.state.buf.length<4)throw this.error(new TomlError("Years less than 1000 must be zero padded to four characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseDateMonth)}parseDateMonth(){if(this.char===CHAR_HYPHEN){if(this.state.buf.length<2)throw this.error(new TomlError("Months less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseDateDay)}if(!isDigit(this.char))throw this.error(new TomlError("Incomplete datetime"));this.consume()}parseDateDay(){if(this.char===CHAR_T||this.char===CHAR_SP){if(this.state.buf.length<2)throw this.error(new TomlError("Days less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseStartTimeHour)}if(this.atEndOfWord())return this.returnNow(createDate(this.state.result+"-"+this.state.buf));if(!isDigit(this.char))throw this.error(new TomlError("Incomplete datetime"));this.consume()}parseStartTimeHour(){return this.atEndOfWord()?this.returnNow(createDate(this.state.result)):this.goto(this.parseTimeHour)}parseTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result+="T"+this.state.buf,this.state.buf="",this.next(this.parseTimeMin)}if(!isDigit(this.char))throw this.error(new TomlError("Incomplete datetime"));this.consume()}parseTimeMin(){if(!(this.state.buf.length<2&&isDigit(this.char))){if(2===this.state.buf.length&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeSec);throw this.error(new TomlError("Incomplete datetime"))}this.consume()}parseTimeSec(){if(!isDigit(this.char))throw this.error(new TomlError("Incomplete datetime"));if(this.consume(),2===this.state.buf.length)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeZoneOrFraction)}parseOnlyTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeMin)}throw this.error(new TomlError("Incomplete time"))}parseOnlyTimeMin(){if(!(this.state.buf.length<2&&isDigit(this.char))){if(2===this.state.buf.length&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeSec);throw this.error(new TomlError("Incomplete time"))}this.consume()}parseOnlyTimeSec(){if(!isDigit(this.char))throw this.error(new TomlError("Incomplete time"));if(this.consume(),2===this.state.buf.length)return this.next(this.parseOnlyTimeFractionMaybe)}parseOnlyTimeFractionMaybe(){if(this.state.result+=":"+this.state.buf,this.char!==CHAR_PERIOD)return this.return(createTime(this.state.result));this.state.buf="",this.next(this.parseOnlyTimeFraction)}parseOnlyTimeFraction(){if(!isDigit(this.char)){if(this.atEndOfWord()){if(0===this.state.buf.length)throw this.error(new TomlError("Expected digit in milliseconds"));return this.returnNow(createTime(this.state.result+"."+this.state.buf))}throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}this.consume()}parseTimeZoneOrFraction(){if(this.char===CHAR_PERIOD)this.consume(),this.next(this.parseDateTimeFraction);else{if(this.char!==CHAR_HYPHEN&&this.char!==CHAR_PLUS){if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}this.consume(),this.next(this.parseTimeZoneHour)}}parseDateTimeFraction(){if(isDigit(this.char))this.consume();else{if(1===this.state.buf.length)throw this.error(new TomlError("Expected digit in milliseconds"));if(this.char!==CHAR_HYPHEN&&this.char!==CHAR_PLUS){if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}this.consume(),this.next(this.parseTimeZoneHour)}}parseTimeZoneHour(){if(!isDigit(this.char))throw this.error(new TomlError("Unexpected character in datetime, expected digit"));if(this.consume(),/\d\d$/.test(this.state.buf))return this.next(this.parseTimeZoneSep)}parseTimeZoneSep(){if(this.char!==CHAR_COLON)throw this.error(new TomlError("Unexpected character in datetime, expected colon"));this.consume(),this.next(this.parseTimeZoneMin)}parseTimeZoneMin(){if(!isDigit(this.char))throw this.error(new TomlError("Unexpected character in datetime, expected digit"));if(this.consume(),/\d\d$/.test(this.state.buf))return this.return(createDateTime(this.state.result+this.state.buf))}parseBoolean(){return this.char===CHAR_t?(this.consume(),this.next(this.parseTrue_r)):this.char===CHAR_f?(this.consume(),this.next(this.parseFalse_a)):void 0}parseTrue_r(){if(this.char===CHAR_r)return this.consume(),this.next(this.parseTrue_u);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_u(){if(this.char===CHAR_u)return this.consume(),this.next(this.parseTrue_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_e(){if(this.char===CHAR_e)return this.return(!0);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_a(){if(this.char===CHAR_a)return this.consume(),this.next(this.parseFalse_l);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_l(){if(this.char===CHAR_l)return this.consume(),this.next(this.parseFalse_s);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_s(){if(this.char===CHAR_s)return this.consume(),this.next(this.parseFalse_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_e(){if(this.char===CHAR_e)return this.return(!1);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseInlineList(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===e.END)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_NUM?this.call(this.parseComment):this.char===CHAR_RSQB?this.return(this.state.resultArr||InlineList()):this.callNow(this.parseValue,this.recordInlineListValue)}recordInlineListValue(e){if(this.state.resultArr){const t=this.state.resultArr[_contentType],n=tomlType(e);if(t!==n)throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${t} and ${n}`))}else this.state.resultArr=InlineList(tomlType(e));return isFloat(e)||isInteger(e)?this.state.resultArr.push(e.valueOf()):this.state.resultArr.push(e),this.goto(this.parseInlineListNext)}parseInlineListNext(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CHAR_COMMA)return this.next(this.parseInlineList);if(this.char===CHAR_RSQB)return this.goto(this.parseInlineList);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}parseInlineTable(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_RCUB?this.return(this.state.resultTable||InlineTable()):(this.state.resultTable||(this.state.resultTable=InlineTable()),this.callNow(this.parseAssign,this.recordInlineTableValue))}recordInlineTableValue(e){let t=this.state.resultTable,n=e.key.pop();for(let n of e.key){if(hasKey(t,n)&&(!isTable(t[n])||t[n][_declared]))throw this.error(new TomlError("Can't redefine existing key"));t=t[n]=t[n]||Table()}if(hasKey(t,n))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(e.value)||isFloat(e.value)?t[n]=e.value.valueOf():t[n]=e.value,this.goto(this.parseInlineTableNext)}parseInlineTableNext(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));if(this.char===CHAR_COMMA)return this.next(this.parseInlineTable);if(this.char===CHAR_RCUB)return this.goto(this.parseInlineTable);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}}}},66615:(e,t,n)=>{"use strict";e.exports=function(e,t){t||(t={});const n=t.blocksize||40960,o=new r;return new Promise(((e,t)=>{setImmediate(a,0,n,e,t)}));function a(t,n,r,s){if(t>=e.length)try{return r(o.finish())}catch(t){return s(i(t,e))}try{o.parse(e.slice(t,t+n)),setImmediate(a,t+n,n,r,s)}catch(t){s(i(t,e))}}};const r=n(77146),i=n(53146)},53146:e=>{"use strict";e.exports=function(e,t){if(null==e.pos||null==e.line)return e;let n=e.message;if(n+=` at row ${e.line+1}, col ${e.col+1}, pos ${e.pos}:\n`,t&&t.split){const r=t.split(/\n/),i=String(Math.min(r.length,e.line+3)).length;let o=" ";for(;o.length "+r[t]+"\n",n+=o+" ";for(let t=0;t{"use strict";e.exports=function(e){return e?function(e){const t=new i;return e.setEncoding("utf8"),new Promise(((n,r)=>{let i,o=!1,a=!1;function s(){if(o=!0,!i)try{n(t.finish())}catch(e){r(e)}}function l(e){a=!0,r(e)}e.once("end",s),e.once("error",l),function n(){let r;for(i=!0;null!==(r=e.read());)try{t.parse(r)}catch(e){return l(e)}if(i=!1,o)return s();a||e.once("readable",n)}()}))}(e):function(){const e=new i;return new r.Transform({objectMode:!0,transform(t,n,r){try{e.parse(t.toString(n))}catch(e){this.emit("error",e)}r()},flush(t){try{this.push(e.finish())}catch(e){this.emit("error",e)}t()}})}()};const r=n(54851),i=n(77146)},13475:(e,t,n)=>{"use strict";e.exports=function(e){n.g.Buffer&&n.g.Buffer.isBuffer(e)&&(e=e.toString("utf8"));const t=new r;try{return t.parse(e),t.finish()}catch(t){throw i(t,e)}};const r=n(77146),i=n(53146)},53279:(e,t,n)=>{"use strict";e.exports=n(13475),e.exports.async=n(66615),e.exports.stream=n(24312),e.exports.prettyError=n(53146)},57573:e=>{"use strict";function t(e){return new Error("Can only stringify objects, not "+e)}function n(e){return Object.keys(e).filter((t=>o(e[t])))}function r(e){let t=Array.isArray(e)?[]:Object.prototype.hasOwnProperty.call(e,"__proto__")?{["__proto__"]:void 0}:{};for(let n of Object.keys(e))e[n]&&"function"==typeof e[n].toJSON&&!("toISOString"in e[n])?t[n]=e[n].toJSON():t[n]=e[n];return t}function i(e,l,u){var d,f;d=n(u=r(u)),f=function(e){return Object.keys(e).filter((t=>!o(e[t])))}(u);var h=[],m=l||"";d.forEach((e=>{var t=a(u[e]);"undefined"!==t&&"null"!==t&&h.push(m+s(e)+" = "+c(u[e],!0))})),h.length>0&&h.push("");var g=e&&d.length>0?l+" ":"";return f.forEach((o=>{h.push(function(e,o,l,u){var c=a(u);if("array"===c)return function(e,n,o,l){p(l=r(l));var u=a(l[0]);if("table"!==u)throw t(u);var c=e+s(o),d="";return l.forEach((e=>{d.length>0&&(d+="\n"),d+=n+"[["+c+"]]\n",d+=i(c+".",n,e)})),d}(e,o,l,u);if("table"===c)return function(e,t,r,o){var a=e+s(r),l="";return n(o).length>0&&(l+=t+"["+a+"]\n"),l+i(a+".",t,o)}(e,o,l,u);throw t(c)}(e,g,o,u[o]))})),h.join("\n")}function o(e){switch(a(e)){case"undefined":case"null":case"integer":case"nan":case"float":case"boolean":case"string":case"datetime":return!0;case"array":return 0===e.length||"table"!==a(e[0]);case"table":return 0===Object.keys(e).length;default:return!1}}function a(e){return void 0===e?"undefined":null===e?"null":"bigint"==typeof e||Number.isInteger(e)&&!Object.is(e,-0)?"integer":"number"==typeof e?"float":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"toISOString"in e?isNaN(e)?"undefined":"datetime":Array.isArray(e)?"array":"table"}function s(e){var t=String(e);return/^[-A-Za-z0-9_]+$/.test(t)?t:l(t)}function l(e){return'"'+u(e).replace(/"/g,'\\"')+'"'}function u(e){return e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/([\u0000-\u001f\u007f])/,(e=>"\\u"+function(e,t){for(;t.length<4;)t="0"+t;return t}(0,e.codePointAt(0).toString(16))))}function c(e,t){let n=a(e);return"string"===n&&(t&&/\n/.test(e)?n="string-multiline":!/[\b\t\n\f\r']/.test(e)&&/"/.test(e)&&(n="string-literal")),d(e,n)}function d(e,n){switch(n||(n=a(e)),n){case"string-multiline":return function(e){let t=e.split(/\n/).map((e=>u(e).replace(/"(?="")/g,'\\"'))).join("\n");return'"'===t.slice(-1)&&(t+="\\\n"),'"""\n'+t+'"""'}(e);case"string":return l(e);case"string-literal":return"'"+e+"'";case"integer":return f(e);case"float":return function(e){if(e===1/0)return"inf";if(e===-1/0)return"-inf";if(Object.is(e,NaN))return"nan";if(Object.is(e,-0))return"-0.0";var t=String(e).split("."),n=t[0],r=t[1]||0;return f(n)+"."+r}(e);case"boolean":return function(e){return String(e)}(e);case"datetime":return function(e){return e.toISOString()}(e);case"array":return function(e){const t=p(e=r(e));var n="[",i=e.map((e=>d(e,t)));return i.join(", ").length>60||/\n/.test(i)?n+="\n "+i.join(",\n ")+"\n":n+=" "+i.join(", ")+(i.length>0?" ":""),n+"]"}(e.filter((e=>"null"!==a(e)&&"undefined"!==a(e)&&"nan"!==a(e))));case"table":return function(e){e=r(e);var t=[];return Object.keys(e).forEach((n=>{t.push(s(n)+" = "+c(e[n],!1))})),"{ "+t.join(", ")+(t.length>0?" ":"")+"}"}(e);default:throw t(n)}}function f(e){return String(e).replace(/\B(?=(\d{3})+(?!\d))/g,"_")}function p(e){const t=function(e){var t=a(e[0]);return e.every((e=>a(e)===t))?t:e.every((e=>{return"float"===(t=a(e))||"integer"===t;var t}))?"float":"mixed"}(e);if("mixed"===t)throw new Error("Array values can't have mixed types");return t}e.exports=function(e){if(null===e)throw t("null");if(void 0===e)throw t("undefined");if("object"!=typeof e)throw t(typeof e);if("function"==typeof e.toJSON&&(e=e.toJSON()),null==e)return null;const n=a(e);if("table"!==n)throw t(n);return i("","",e)},e.exports.value=d},6901:(e,t,n)=>{"use strict";t.parse=n(53279),t.stringify=n(57573)},47988:(e,t,n)=>{"use strict";var r,i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return o.default.createElement("svg",i({viewBox:"0 0 24 24",style:i({fill:n,width:a,height:l},c)},d),o.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},16331:(e,t,n)=>{"use strict";var r,i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return o.default.createElement("svg",i({viewBox:"0 0 24 24",style:i({fill:n,width:a,height:l},c)},d),o.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},38229:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});var r=Object.prototype,i=r.toString,o=r.hasOwnProperty,a=new Map;function s(e,t){try{return l(e,t)}finally{a.clear()}}function l(e,t){if(e===t)return!0;var n=i.call(e);if(n!==i.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(u(e,t))return!0;var r=Object.keys(e),a=Object.keys(t),s=r.length;if(s!==a.length)return!1;for(var c=0;c{"use strict";n.r(t),n.d(t,{HeuristicFragmentMatcher:()=>H,InMemoryCache:()=>fe,IntrospectionFragmentMatcher:()=>V,ObjectCache:()=>ee,StoreReader:()=>Y,StoreWriter:()=>ie,WriteError:()=>ne,assertIdValue:()=>J,defaultDataIdFromObject:()=>ue,defaultNormalizedCacheFactory:()=>te,enhanceErrorWithDocument:()=>re});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;nthis.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),_=new y,x=[],k=[],E=100;function C(e,t){if(!e)throw new Error(t||"assertion failure")}function S(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var A=function(){function e(t,n){this.fn=t,this.args=n,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],++e.count}return e.prototype.recompute=function(){if(C(!this.recomputing,"already recomputing"),function(e){var t=_.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),O(e)?D(t,e):M(t,e),t}(this)||!L(this))return O(this)?(t=j(e=this),_.withValue(e,T,[e]),function(e){if("function"==typeof e.subscribe)try{F(e),e.unsubscribe=e.subscribe.apply(null,e.args)}catch(t){return e.setDirty(),!1}return!0}(e)&&function(e){e.dirty=!1,O(e)||R(e)}(e),t.forEach(L),S(e.value)):S(this.value);var e,t},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,P(this),F(this))},e.prototype.dispose=function(){var e=this;j(this).forEach(L),F(this),this.parents.forEach((function(t){t.setDirty(),N(t,e)}))},e.count=0,e}();function T(e){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,e.args)}catch(t){e.value[1]=t}e.recomputing=!1}function O(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function P(e){e.parents.forEach((function(t){return D(t,e)}))}function R(e){e.parents.forEach((function(t){return M(t,e)}))}function D(e,t){if(C(e.childValues.has(t)),C(O(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=k.pop()||new Set;e.dirtyChildren.add(t),P(e)}function M(e,t){C(e.childValues.has(t)),C(!O(t));var n,r,i,o=e.childValues.get(t);0===o.length?e.childValues.set(t,t.value.slice(0)):(n=o,r=t.value,(i=n.length)>0&&i===r.length&&n[i-1]===r[i-1]||e.setDirty()),I(e,t),O(e)||R(e)}function I(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(k.length0&&(t=[],e.childValues.forEach((function(n,r){N(e,r),t.push(r)}))),C(null===e.dirtyChildren),t}function N(e,t){t.parents.delete(e),e.childValues.delete(t),I(e,t)}function F(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var B=function(){function e(e){this.weakness=e}return e.prototype.lookup=function(){for(var e=[],t=0;t-1)},e.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach((function(e){"UNION"!==e.kind&&"INTERFACE"!==e.kind||(t[e.name]=e.possibleTypes.map((function(e){return e.name})))})),t},e}(),G=Object.prototype.hasOwnProperty,K=function(){function e(e){var t=this;void 0===e&&(e=Object.create(null)),this.data=e,this.depend=W((function(e){return t.data[e]}),{disposable:!0,makeCacheKey:function(e){return e}})}return e.prototype.toObject=function(){return this.data},e.prototype.get=function(e){return this.depend(e),this.data[e]},e.prototype.set=function(e,t){t!==this.data[e]&&(this.data[e]=t,this.depend.dirty(e))},e.prototype.delete=function(e){G.call(this.data,e)&&(delete this.data[e],this.depend.dirty(e))},e.prototype.clear=function(){this.replace(null)},e.prototype.replace=function(e){var t=this;e?(Object.keys(e).forEach((function(n){t.set(n,e[n])})),Object.keys(this.data).forEach((function(n){G.call(e,n)||t.delete(n)}))):Object.keys(this.data).forEach((function(e){t.delete(e)}))},e}();function Z(e){return new K(e)}var Y=function(){function e(e){var t=this,n=void 0===e?{}:e,r=n.cacheKeyRoot,i=void 0===r?new B(a.mr):r,o=n.freezeResults,s=void 0!==o&&o,l=this,u=l.executeStoreQuery,c=l.executeSelectionSet,d=l.executeSubSelectedArray;this.freezeResults=s,this.executeStoreQuery=W((function(e){return u.call(t,e)}),{makeCacheKey:function(e){var t=e.query,n=e.rootValue,r=e.contextValue,o=e.variableValues,a=e.fragmentMatcher;if(r.store instanceof K)return i.lookup(r.store,t,a,JSON.stringify(o),n.id)}}),this.executeSelectionSet=W((function(e){return c.call(t,e)}),{makeCacheKey:function(e){var t=e.selectionSet,n=e.rootValue,r=e.execContext;if(r.contextValue.store instanceof K)return i.lookup(r.contextValue.store,t,r.fragmentMatcher,JSON.stringify(r.variableValues),n.id)}}),this.executeSubSelectedArray=W((function(e){return d.call(t,e)}),{makeCacheKey:function(e){var t=e.field,n=e.array,r=e.execContext;if(r.contextValue.store instanceof K)return i.lookup(r.contextValue.store,t,n,JSON.stringify(r.variableValues))}})}return e.prototype.readQueryFromStore=function(e){return this.diffQueryAgainstStore(o(o({},e),{returnPartialData:!1})).result},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.variables,i=e.previousResult,o=e.returnPartialData,s=void 0===o||o,l=e.rootId,u=void 0===l?"ROOT_QUERY":l,c=e.fragmentMatcherFunction,d=e.config,p=(0,a.iW)(n);r=(0,a.f0)({},(0,a.O4)(p),r);var h={store:t,dataIdFromObject:d&&d.dataIdFromObject,cacheRedirects:d&&d.cacheRedirects||{}},m=this.executeStoreQuery({query:n,rootValue:{type:"id",id:u,generated:!0,typename:"Query"},contextValue:h,variableValues:r,fragmentMatcher:c}),g=m.missing&&m.missing.length>0;return g&&!s&&m.missing.forEach((function(e){if(!e.tolerable)throw new $.ej(8)})),i&&(0,f.D)(i,m.result)&&(m.result=i),{result:m.result,complete:!g}},e.prototype.executeStoreQuery=function(e){var t=e.query,n=e.rootValue,r=e.contextValue,i=e.variableValues,o=e.fragmentMatcher,s=void 0===o?Q:o,l=(0,a.p$)(t),u=(0,a.kU)(t),c={query:t,fragmentMap:(0,a.F)(u),contextValue:r,variableValues:i,fragmentMatcher:s};return this.executeSelectionSet({selectionSet:l.selectionSet,rootValue:n,execContext:c})},e.prototype.executeSelectionSet=function(e){var t=this,n=e.selectionSet,r=e.rootValue,i=e.execContext,s=i.fragmentMap,l=i.contextValue,u=i.variableValues,c={result:null},d=[],f=l.store.get(r.id),p=f&&f.__typename||"ROOT_QUERY"===r.id&&"Query"||void 0;function h(e){var t;return e.missing&&(c.missing=c.missing||[],(t=c.missing).push.apply(t,e.missing)),e.result}return n.selections.forEach((function(e){var n;if((0,a.LZ)(e,u))if((0,a.My)(e)){var c=h(t.executeField(f,p,e,i));void 0!==c&&d.push(((n={})[(0,a.u2)(e)]=c,n))}else{var m=void 0;if((0,a.Ao)(e))m=e;else if(!(m=s[e.name.value]))throw new $.ej(9);var g=m.typeCondition&&m.typeCondition.name.value,v=!g||i.fragmentMatcher(r,g,l);if(v){var y=t.executeSelectionSet({selectionSet:m.selectionSet,rootValue:r,execContext:i});"heuristic"===v&&y.missing&&(y=o(o({},y),{missing:y.missing.map((function(e){return o(o({},e),{tolerable:!0})}))})),d.push(h(y))}}})),c.result=(0,a.bw)(d),this.freezeResults,c},e.prototype.executeField=function(e,t,n,r){var i=r.variableValues,o=r.contextValue,s=function(e,t,n,r,i,o){var s=o.directives,l=n;(r||s)&&(l=(0,a.PT)(l,r,s));var u=void 0;if(e&&void 0===(u=e[l])&&i.cacheRedirects&&"string"==typeof t){var c=i.cacheRedirects[t];if(c){var d=c[n];d&&(u=d(e,r,{getCacheKey:function(e){var t=i.dataIdFromObject(e);return t&&(0,a.aX)({id:t,typename:e.__typename})}}))}}return void 0===u?{result:u,missing:[{object:e,fieldName:l,tolerable:!1}]}:((0,a.v4)(u)&&(u=u.json),{result:u})}(e,t,n.name.value,(0,a.NC)(n,i),o,{resultKey:(0,a.u2)(n),directives:(0,a.Qy)(n,i)});return Array.isArray(s.result)?this.combineExecResults(s,this.executeSubSelectedArray({field:n,array:s.result,execContext:r})):n.selectionSet?null==s.result?s:this.combineExecResults(s,this.executeSelectionSet({selectionSet:n.selectionSet,rootValue:s.result,execContext:r})):(X(n,s.result),this.freezeResults,s)},e.prototype.combineExecResults=function(){for(var e,t=[],n=0;n=0)return!0;n[e].push(t)}else n[e]=[t];return!1}var le={fragmentMatcher:new H,dataIdFromObject:ue,addTypename:!0,resultCaching:!0,freezeResults:!1};function ue(e){if(e.__typename){if(void 0!==e.id)return e.__typename+":"+e.id;if(void 0!==e._id)return e.__typename+":"+e._id}return null}var ce=Object.prototype.hasOwnProperty,de=function(e){function t(t,n,r){var i=e.call(this,Object.create(null))||this;return i.optimisticId=t,i.parent=n,i.transaction=r,i}return i(t,e),t.prototype.toObject=function(){return o(o({},this.parent.toObject()),this.data)},t.prototype.get=function(e){return ce.call(this.data,e)?this.data[e]:this.parent.get(e)},t}(ee),fe=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;n.watches=new Set,n.typenameDocumentCache=new Map,n.cacheKeyRoot=new B(a.mr),n.silenceBroadcast=!1,n.config=o(o({},le),t),n.config.customResolvers&&(n.config.cacheRedirects=n.config.customResolvers),n.config.cacheResolvers&&(n.config.cacheRedirects=n.config.cacheResolvers),n.addTypename=!!n.config.addTypename,n.data=n.config.resultCaching?new K:new ee,n.optimisticData=n.data,n.storeWriter=new ie,n.storeReader=new Y({cacheKeyRoot:n.cacheKeyRoot,freezeResults:t.freezeResults});var r=n,i=r.maybeBroadcastWatch;return n.maybeBroadcastWatch=W((function(e){return i.call(n,e)}),{makeCacheKey:function(e){if(!e.optimistic&&!e.previousResult)return r.data instanceof K?r.cacheKeyRoot.lookup(e.query,JSON.stringify(e.variables)):void 0}}),n}return i(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).toObject()},t.prototype.read=function(e){if("string"==typeof e.rootId&&void 0===this.data.get(e.rootId))return null;var t=this.config.fragmentMatcher,n=t&&t.match;return this.storeReader.readQueryFromStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,rootId:e.rootId,fragmentMatcherFunction:n,previousResult:e.previousResult,config:this.config})||null},t.prototype.write=function(e){var t=this.config.fragmentMatcher,n=t&&t.match;this.storeWriter.writeResultToStore({dataId:e.dataId,result:e.result,variables:e.variables,document:this.transformDocument(e.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:n}),this.broadcastWatches()},t.prototype.diff=function(e){var t=this.config.fragmentMatcher,n=t&&t.match;return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,returnPartialData:e.returnPartialData,previousResult:e.previousResult,fragmentMatcherFunction:n,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.add(e),function(){t.watches.delete(e)}},t.prototype.evict=function(e){throw new $.ej(7)},t.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){for(var t=[],n=0,r=this.optimisticData;r instanceof de;)r.optimisticId===e?++n:t.push(r),r=r.parent;if(n>0){for(this.optimisticData=r;t.length>0;){var i=t.pop();this.performTransaction(i.transaction,i.optimisticId)}this.broadcastWatches()}},t.prototype.performTransaction=function(e,t){var n=this.data,r=this.silenceBroadcast;this.silenceBroadcast=!0,"string"==typeof t&&(this.data=this.optimisticData=new de(t,this.optimisticData,e));try{e(this)}finally{this.silenceBroadcast=r,this.data=n}this.broadcastWatches()},t.prototype.recordOptimisticTransaction=function(e,t){return this.performTransaction(e,t)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=(0,a.Gw)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(){var e=this;this.silenceBroadcast||this.watches.forEach((function(t){return e.maybeBroadcastWatch(t)}))},t.prototype.maybeBroadcastWatch=function(e){e.callback(this.diff({query:e.query,variables:e.variables,previousResult:e.previousResult&&e.previousResult(),optimistic:e.optimistic}))},t}(d)},34600:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ApolloClient:()=>M,ApolloError:()=>_,FetchType:()=>w,NetworkStatus:()=>l,ObservableQuery:()=>x,default:()=>I,isApolloError:()=>b});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0}function b(e){return e.hasOwnProperty("graphQLErrors")}var w,_=function(e){function t(n){var r,i,o=n.graphQLErrors,a=n.networkError,s=n.errorMessage,l=n.extraInfo,u=e.call(this,s)||this;return u.graphQLErrors=o||[],u.networkError=a||null,u.message=s||(i="",y((r=u).graphQLErrors)&&r.graphQLErrors.forEach((function(e){var t=e?e.message:"Error message not found.";i+="GraphQL error: "+t+"\n"})),r.networkError&&(i+="Network error: "+r.networkError.message+"\n"),i=i.replace(/\n$/,"")),u.extraInfo=l,u.__proto__=t.prototype,u}return i(t,e),t}(Error);!function(e){e[e.normal=1]="normal",e[e.refetch=2]="refetch",e[e.poll=3]="poll"}(w||(w={}));var x=function(e){function t(t){var n=t.queryManager,r=t.options,i=t.shouldSubscribe,o=void 0===i||i,a=e.call(this,(function(e){return a.onSubscribe(e)}))||this;a.observers=new Set,a.subscriptions=new Set,a.isTornDown=!1,a.options=r,a.variables=r.variables||{},a.queryId=n.generateQueryId(),a.shouldSubscribe=o;var s=(0,u.$H)(r.query);return a.queryName=s&&s.name&&s.name.value,a.queryManager=n,a}return i(t,e),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},t.prototype.currentResult=function(){var e=this.getCurrentResult();return void 0===e.data&&(e.data={}),e},t.prototype.getCurrentResult=function(){if(this.isTornDown){var e=this.lastResult;return{data:!this.lastError&&e&&e.data||void 0,error:this.lastError,loading:!1,networkStatus:l.error}}var t,n,r,i=this.queryManager.getCurrentQueryResult(this),a=i.data,s=i.partial,u=this.queryManager.queryStore.get(this.queryId),c=this.options.fetchPolicy,d="network-only"===c||"no-cache"===c;if(u){var f=u.networkStatus;if(n=u,void 0===(r=this.options.errorPolicy)&&(r="none"),n&&(n.networkError||"none"===r&&y(n.graphQLErrors)))return{data:void 0,loading:!1,networkStatus:f,error:new _({graphQLErrors:u.graphQLErrors,networkError:u.networkError})};u.variables&&(this.options.variables=o(o({},this.options.variables),u.variables),this.variables=this.options.variables),t={data:a,loading:g(f),networkStatus:f},u.graphQLErrors&&"all"===this.options.errorPolicy&&(t.errors=u.graphQLErrors)}else{var p=d||s&&"cache-only"!==c;t={data:a,loading:p,networkStatus:p?l.loading:l.ready}}return s||this.updateLastResult(o(o({},t),{stale:!1})),o(o({},t),{partial:s})},t.prototype.isDifferentFromLastResult=function(e){var t=this.lastResultSnapshot;return!(t&&e&&t.networkStatus===e.networkStatus&&t.stale===e.stale&&(0,c.D)(t.data,e.data))},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){var e=this.queryManager.queryStore.get(this.queryId);e&&(e.networkError=null,e.graphQLErrors=[])},t.prototype.refetch=function(e){var t=this.options.fetchPolicy;return"cache-only"===t?Promise.reject(new h.ej(1)):("no-cache"!==t&&"cache-and-network"!==t&&(t="network-only"),(0,c.D)(this.variables,e)||(this.variables=o(o({},this.variables),e)),(0,c.D)(this.options.variables,this.variables)||(this.options.variables=o(o({},this.options.variables),this.variables)),this.queryManager.fetchQuery(this.queryId,o(o({},this.options),{fetchPolicy:t}),w.refetch))},t.prototype.fetchMore=function(e){var t=this;(0,h.kG)(e.updateQuery,2);var n=o(o({},e.query?e:o(o(o({},this.options),e),{variables:o(o({},this.variables),e.variables)})),{fetchPolicy:"network-only"}),r=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(r,n,w.normal,this.queryId).then((function(i){return t.updateQuery((function(t){return e.updateQuery(t,{fetchMoreResult:i.data,variables:n.variables})})),t.queryManager.stopQuery(r),i}),(function(e){throw t.queryManager.stopQuery(r),e}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){var t=this.options.fetchPolicy;this.options=o(o({},this.options),e),e.pollInterval?this.startPolling(e.pollInterval):0===e.pollInterval&&this.stopPolling();var n=e.fetchPolicy;return this.setVariables(this.options.variables,t!==n&&("cache-only"===t||"standby"===t||"network-only"===n),e.fetchResults)},t.prototype.setVariables=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=!0),this.isTornDown=!1,e=e||this.variables,!t&&(0,c.D)(e,this.variables)?this.observers.size&&n?this.result():Promise.resolve():(this.variables=this.options.variables=e,this.observers.size?this.queryManager.fetchQuery(this.queryId,this.options):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=t.getQueryWithPreviousResult(this.queryId),r=n.previousResult,i=n.variables,o=n.document,a=(0,u.XY)((function(){return e(r,{variables:i})}));a&&(t.dataStore.markUpdateQueryResult(o,i,a),t.broadcastQueries())},t.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},t.prototype.startPolling=function(e){C(this),this.options.pollInterval=e,this.queryManager.startPollingQuery(this.options,this.queryId)},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:(0,u.Xh)(e),t},t.prototype.onSubscribe=function(e){var t=this;try{var n=e._subscription._observer;n&&!n.error&&(n.error=k)}catch(e){}var r=!this.observers.size;return this.observers.add(e),e.next&&this.lastResult&&e.next(this.lastResult),e.error&&this.lastError&&e.error(this.lastError),r&&this.setUpQuery(),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.setUpQuery=function(){var e=this,t=this.queryManager,n=this.queryId;this.shouldSubscribe&&t.addObservableQuery(n,this),this.options.pollInterval&&(C(this),t.startPollingQuery(this.options,n));var r=function(t){e.updateLastResult(o(o({},e.lastResult),{errors:t.graphQLErrors,networkStatus:l.error,loading:!1})),E(e.observers,"error",e.lastError=t)};t.observeQuery(n,this.options,{next:function(n){if(e.lastError||e.isDifferentFromLastResult(n)){var r=e.updateLastResult(n),i=e.options,o=i.query,a=i.variables,s=i.fetchPolicy;t.transform(o).hasClientExports?t.getLocalState().addExportedVariables(o,a).then((function(i){var a=e.variables;e.variables=e.options.variables=i,!n.loading&&r&&"cache-only"!==s&&t.transform(o).serverQuery&&!(0,c.D)(a,i)?e.refetch():E(e.observers,"next",n)})):E(e.observers,"next",n)}},error:r}).catch(r)},t.prototype.tearDownQuery=function(){var e=this.queryManager;this.isTornDown=!0,e.stopPollingQuery(this.queryId),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),e.removeObservableQuery(this.queryId),e.stopQuery(this.queryId),this.observers.clear()},t}(v);function k(e){}function E(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function C(e){var t=e.options.fetchPolicy;(0,h.kG)("cache-first"!==t&&"cache-only"!==t,3)}var S=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initMutation=function(e,t,n){this.store[e]={mutation:t,variables:n||{},loading:!0,error:null}},e.prototype.markMutationError=function(e,t){var n=this.store[e];n&&(n.loading=!1,n.error=t)},e.prototype.markMutationResult=function(e){var t=this.store[e];t&&(t.loading=!1,t.error=null)},e.prototype.reset=function(){this.store={}},e}(),A=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initQuery=function(e){var t=this.store[e.queryId];(0,h.kG)(!t||t.document===e.document||(0,c.D)(t.document,e.document),19);var n,r=!1,i=null;e.storePreviousVariables&&t&&t.networkStatus!==l.loading&&((0,c.D)(t.variables,e.variables)||(r=!0,i=t.variables)),n=r?l.setVariables:e.isPoll?l.poll:e.isRefetch?l.refetch:l.loading;var o=[];t&&t.graphQLErrors&&(o=t.graphQLErrors),this.store[e.queryId]={document:e.document,variables:e.variables,previousVariables:i,networkError:null,graphQLErrors:o,networkStatus:n,metadata:e.metadata},"string"==typeof e.fetchMoreForQueryId&&this.store[e.fetchMoreForQueryId]&&(this.store[e.fetchMoreForQueryId].networkStatus=l.fetchMore)},e.prototype.markQueryResult=function(e,t,n){this.store&&this.store[e]&&(this.store[e].networkError=null,this.store[e].graphQLErrors=y(t.errors)?t.errors:[],this.store[e].previousVariables=null,this.store[e].networkStatus=l.ready,"string"==typeof n&&this.store[n]&&(this.store[n].networkStatus=l.ready))},e.prototype.markQueryError=function(e,t,n){this.store&&this.store[e]&&(this.store[e].networkError=t,this.store[e].networkStatus=l.error,"string"==typeof n&&this.markQueryResultClient(n,!0))},e.prototype.markQueryResultClient=function(e,t){var n=this.store&&this.store[e];n&&(n.networkError=null,n.previousVariables=null,t&&(n.networkStatus=l.ready))},e.prototype.stopQuery=function(e){delete this.store[e]},e.prototype.reset=function(e){var t=this;Object.keys(this.store).forEach((function(n){e.indexOf(n)<0?t.stopQuery(n):t.store[n].networkStatus=l.loading}))},e}(),T=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=(0,u.Ee)(t.resolvers,e)})):this.resolvers=(0,u.Ee)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,l=e.onlyRunForcedResolvers,u=void 0!==l&&l;return a(this,void 0,void 0,(function(){return s(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,u).then((function(e){return o(o({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,u.FS)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return this.resolvers?(0,u.ob)(e):e},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.cache;return o(o({},e),{cache:t,getCacheKey:function(e){if(t.config)return t.config.dataIdFromObject(e);(0,h.kG)(!1,6)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),a(this,void 0,void 0,(function(){return s(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return o(o({},t),e.exportedVariables)}))]:[2,o({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,m.visit)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return m.BREAK}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,u.aL)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,i,l){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===l&&(l=!1),a(this,void 0,void 0,(function(){var a,c,d,f,p,h,m,g,v;return s(this,(function(s){var y;return a=(0,u.p$)(e),c=(0,u.kU)(e),d=(0,u.F)(c),f=a.operation,p=f?(y=f).charAt(0).toUpperCase()+y.slice(1):"Query",m=(h=this).cache,g=h.client,v={fragmentMap:d,context:o(o({},n),{cache:m,client:g}),variables:r,fragmentMatcher:i,defaultOperationType:p,exportedVariables:{},onlyRunForcedResolvers:l},[2,this.resolveSelectionSet(a.selectionSet,t,v).then((function(e){return{result:e,exportedVariables:v.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n){return a(this,void 0,void 0,(function(){var r,i,o,l,c,d=this;return s(this,(function(f){return r=n.fragmentMap,i=n.context,o=n.variables,l=[t],c=function(e){return a(d,void 0,void 0,(function(){var a,c;return s(this,(function(s){return(0,u.LZ)(e,o)?(0,u.My)(e)?[2,this.resolveField(e,t,n).then((function(t){var n;void 0!==t&&l.push(((n={})[(0,u.u2)(e)]=t,n))}))]:((0,u.Ao)(e)?a=e:(a=r[e.name.value],(0,h.kG)(a,7)),a&&a.typeCondition&&(c=a.typeCondition.name.value,n.fragmentMatcher(t,c,i))?[2,this.resolveSelectionSet(a.selectionSet,t,n).then((function(e){l.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(c)).then((function(){return(0,u.bw)(l)}))]}))}))},e.prototype.resolveField=function(e,t,n){return a(this,void 0,void 0,(function(){var r,i,o,a,l,c,d,f,p,h=this;return s(this,(function(s){return r=n.variables,i=e.name.value,o=(0,u.u2)(e),a=i!==o,l=t[o]||t[i],c=Promise.resolve(l),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(d=t.__typename||n.defaultOperationType,(f=this.resolvers&&this.resolvers[d])&&(p=f[a?i:o])&&(c=Promise.resolve(p(t,(0,u.NC)(e,r),n.context,{field:e,fragmentMap:n.fragmentMap})))),[2,c.then((function(t){return void 0===t&&(t=l),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?h.resolveSubSelectedArray(e,t,n):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0})))},e}();function O(e){var t=new Set,n=null;return new v((function(r){return t.add(r),n=n||e.subscribe({next:function(e){t.forEach((function(t){return t.next&&t.next(e)}))},error:function(e){t.forEach((function(t){return t.error&&t.error(e)}))},complete:function(){t.forEach((function(e){return e.complete&&e.complete()}))}}),function(){t.delete(r)&&!t.size&&n&&(n.unsubscribe(),n=null)}}))}var P=Object.prototype.hasOwnProperty,R=function(){function e(e){var t=e.link,n=e.queryDeduplication,r=void 0!==n&&n,i=e.store,o=e.onBroadcast,a=void 0===o?function(){}:o,s=e.ssrMode,l=void 0!==s&&s,c=e.clientAwareness,d=void 0===c?{}:c,f=e.localState,p=e.assumeImmutableResults;this.mutationStore=new S,this.queryStore=new A,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(u.mr?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=t,this.queryDeduplication=r,this.dataStore=i,this.onBroadcast=a,this.clientAwareness=d,this.localState=f||new T({cache:i.getCache()}),this.ssrMode=l,this.assumeImmutableResults=!!p}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.fetchQueryRejectFns.forEach((function(e){e(new h.ej(8))}))},e.prototype.mutate=function(e){var t=e.mutation,n=e.variables,r=e.optimisticResponse,i=e.updateQueries,l=e.refetchQueries,c=void 0===l?[]:l,d=e.awaitRefetchQueries,f=void 0!==d&&d,p=e.update,m=e.errorPolicy,g=void 0===m?"none":m,v=e.fetchPolicy,b=e.context,w=void 0===b?{}:b;return a(this,void 0,void 0,(function(){var e,a,l,d=this;return s(this,(function(s){switch(s.label){case 0:return(0,h.kG)(t,9),(0,h.kG)(!v||"no-cache"===v,10),e=this.generateQueryId(),t=this.transform(t).document,this.setQuery(e,(function(){return{document:t}})),n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,w)]:[3,2];case 1:n=s.sent(),s.label=2;case 2:return a=function(){var e={};return i&&d.queries.forEach((function(t,n){var r=t.observableQuery;if(r){var o=r.queryName;o&&P.call(i,o)&&(e[n]={updater:i[o],query:d.queryStore.get(n)})}})),e},this.mutationStore.initMutation(e,t,n),this.dataStore.markMutationInit({mutationId:e,document:t,variables:n,updateQueries:a(),update:p,optimisticResponse:r}),this.broadcastQueries(),l=this,[2,new Promise((function(i,s){var d,h;l.getObservableFromLink(t,o(o({},w),{optimisticResponse:r}),n,!1).subscribe({next:function(r){(0,u.d2)(r)&&"none"===g?h=new _({graphQLErrors:r.errors}):(l.mutationStore.markMutationResult(e),"no-cache"!==v&&l.dataStore.markMutationResult({mutationId:e,result:r,document:t,variables:n,updateQueries:a(),update:p}),d=r)},error:function(t){l.mutationStore.markMutationError(e,t),l.dataStore.markMutationComplete({mutationId:e,optimisticResponse:r}),l.broadcastQueries(),l.setQuery(e,(function(){return{document:null}})),s(new _({networkError:t}))},complete:function(){if(h&&l.mutationStore.markMutationError(e,h),l.dataStore.markMutationComplete({mutationId:e,optimisticResponse:r}),l.broadcastQueries(),h)s(h);else{"function"==typeof c&&(c=c(d));var t=[];y(c)&&c.forEach((function(e){if("string"==typeof e)l.queries.forEach((function(n){var r=n.observableQuery;r&&r.queryName===e&&t.push(r.refetch())}));else{var n={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(n.context=e.context),t.push(l.query(n))}})),Promise.all(f?t:[]).then((function(){l.setQuery(e,(function(){return{document:null}})),"ignore"===g&&d&&(0,u.d2)(d)&&delete d.errors,i(d)}))}}})}))]}}))}))},e.prototype.fetchQuery=function(e,t,n,r){return a(this,void 0,void 0,(function(){var i,a,l,c,d,f,p,h,m,g,v,y,x,k,E,C,S,A,T=this;return s(this,(function(s){switch(s.label){case 0:return i=t.metadata,a=void 0===i?null:i,l=t.fetchPolicy,c=void 0===l?"cache-first":l,d=t.context,f=void 0===d?{}:d,p=this.transform(t.query).document,h=this.getVariables(p,t.variables),this.transform(p).hasClientExports?[4,this.localState.addExportedVariables(p,h,f)]:[3,2];case 1:h=s.sent(),s.label=2;case 2:if(t=o(o({},t),{variables:h}),v=g="network-only"===c||"no-cache"===c,g||(y=this.dataStore.getCache().diff({query:p,variables:h,returnPartialData:!0,optimistic:!1}),x=y.complete,k=y.result,v=!x||"cache-and-network"===c,m=k),E=v&&"cache-only"!==c&&"standby"!==c,(0,u.FS)(["live"],p)&&(E=!0),C=this.idCounter++,S="no-cache"!==c?this.updateQueryWatch(e,p,t):void 0,this.setQuery(e,(function(){return{document:p,lastRequestId:C,invalidated:!0,cancel:S}})),this.invalidate(r),this.queryStore.initQuery({queryId:e,document:p,storePreviousVariables:E,variables:h,isPoll:n===w.poll,isRefetch:n===w.refetch,metadata:a,fetchMoreForQueryId:r}),this.broadcastQueries(),E){if(A=this.fetchRequest({requestId:C,queryId:e,document:p,options:t,fetchMoreForQueryId:r}).catch((function(t){throw b(t)?t:(C>=T.getQuery(e).lastRequestId&&(T.queryStore.markQueryError(e,t,r),T.invalidate(e),T.invalidate(r),T.broadcastQueries()),new _({networkError:t}))})),"cache-and-network"!==c)return[2,A];A.catch((function(){}))}return this.queryStore.markQueryResultClient(e,!E),this.invalidate(e),this.invalidate(r),this.transform(p).hasForcedResolvers?[2,this.localState.runResolvers({document:p,remoteResult:{data:m},context:f,variables:h,onlyRunForcedResolvers:!0}).then((function(n){return T.markQueryResult(e,n,t,r),T.broadcastQueries(),n}))]:(this.broadcastQueries(),[2,{data:m}])}}))}))},e.prototype.markQueryResult=function(e,t,n,r){var i=n.fetchPolicy,o=n.variables,a=n.errorPolicy;"no-cache"===i?this.setQuery(e,(function(){return{newData:{result:t.data,complete:!0}}})):this.dataStore.markQueryResult(t,this.getQuery(e).document,o,r,"ignore"===a||"all"===a)},e.prototype.queryListenerForObserver=function(e,t,n){var r=this;function i(e,t){if(n[e])try{n[e](t)}catch(e){}}return function(n,o){if(r.invalidate(e,!1),n){var a=r.getQuery(e),s=a.observableQuery,l=a.document,u=s?s.options.fetchPolicy:t.fetchPolicy;if("standby"!==u){var c=g(n.networkStatus),d=s&&s.getLastResult(),f=!(!d||d.networkStatus===n.networkStatus),p=t.returnPartialData||!o&&n.previousVariables||f&&t.notifyOnNetworkStatusChange||"cache-only"===u||"cache-and-network"===u;if(!c||p){var h=y(n.graphQLErrors),m=s&&s.options.errorPolicy||t.errorPolicy||"none";if("none"===m&&h||n.networkError)return i("error",new _({graphQLErrors:n.graphQLErrors,networkError:n.networkError}));try{var v=void 0,b=void 0;if(o)"no-cache"!==u&&"network-only"!==u&&r.setQuery(e,(function(){return{newData:null}})),v=o.result,b=!o.complete;else{var w=s&&s.getLastError(),x="none"!==m&&(w&&w.graphQLErrors)!==n.graphQLErrors;if(d&&d.data&&!x)v=d.data,b=!1;else{var k=r.dataStore.getCache().diff({query:l,variables:n.previousVariables||n.variables,returnPartialData:!0,optimistic:!0});v=k.result,b=!k.complete}}var E=b&&!(t.returnPartialData||"cache-only"===u),C={data:E?d&&d.data:v,loading:c,networkStatus:n.networkStatus,stale:E};"all"===m&&h&&(C.errors=n.graphQLErrors),i("next",C)}catch(e){i("error",new _({networkError:e}))}}}}}},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var n=this.dataStore.getCache(),r=n.transformDocument(e),i=(0,u.Fo)(n.transformForLink(r)),o=this.localState.clientQuery(r),a=this.localState.serverQuery(i),s={document:r,hasClientExports:(0,u.mj)(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:(0,u.O4)((0,u.$H)(r))},l=function(e){e&&!t.has(e)&&t.set(e,s)};l(e),l(r),l(o),l(a)}return t.get(e)},e.prototype.getVariables=function(e,t){return o(o({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e,t){void 0===t&&(t=!0),(0,h.kG)("standby"!==e.fetchPolicy,11),e.variables=this.getVariables(e.query,e.variables),void 0===e.notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=o({},e);return new x({queryManager:this,options:n,shouldSubscribe:t})},e.prototype.query=function(e){var t=this;return(0,h.kG)(e.query,12),(0,h.kG)("Document"===e.query.kind,13),(0,h.kG)(!e.returnPartialData,14),(0,h.kG)(!e.pollInterval,15),new Promise((function(n,r){var i=t.watchQuery(e,!1);t.fetchQueryRejectFns.set("query:"+i.queryId,r),i.result().then(n,r).then((function(){return t.fetchQueryRejectFns.delete("query:"+i.queryId)}))}))},e.prototype.generateQueryId=function(){return String(this.idCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){this.stopPollingQuery(e),this.queryStore.stopQuery(e),this.invalidate(e)},e.prototype.addQueryListener=function(e,t){this.setQuery(e,(function(e){return e.listeners.add(t),{invalidated:!1}}))},e.prototype.updateQueryWatch=function(e,t,n){var r=this,i=this.getQuery(e).cancel;return i&&i(),this.dataStore.getCache().watch({query:t,variables:n.variables,optimistic:!0,previousResult:function(){var t=null,n=r.getQuery(e).observableQuery;if(n){var i=n.getLastResult();i&&(t=i.data)}return t},callback:function(t){r.setQuery(e,(function(){return{invalidated:!0,newData:t}}))}})},e.prototype.addObservableQuery=function(e,t){this.setQuery(e,(function(){return{observableQuery:t}}))},e.prototype.removeObservableQuery=function(e){var t=this.getQuery(e).cancel;this.setQuery(e,(function(){return{observableQuery:null}})),t&&t()},e.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach((function(e){e(new h.ej(16))}));var e=[];return this.queries.forEach((function(t,n){t.observableQuery&&e.push(n)})),this.queryStore.reset(e),this.mutationStore.reset(),this.dataStore.reset()},e.prototype.resetStore=function(){var e=this;return this.clearStore().then((function(){return e.reFetchObservableQueries()}))},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.queries.forEach((function(r,i){var o=r.observableQuery;if(o){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!e&&"standby"===a||n.push(o.refetch()),t.setQuery(i,(function(){return{newData:null}})),t.invalidate(i)}})),this.broadcastQueries(),Promise.all(n)},e.prototype.observeQuery=function(e,t,n){return this.addQueryListener(e,this.queryListenerForObserver(e,t,n)),this.fetchQuery(e,t)},e.prototype.startQuery=function(e,t,n){return this.addQueryListener(e,n),this.fetchQuery(e,t).catch((function(){})),e},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.variables;n=this.transform(n).document,i=this.getVariables(n,i);var o=function(e){return t.getObservableFromLink(n,{},e,!1).map((function(i){if(r&&"no-cache"===r||(t.dataStore.markSubscriptionResult(i,n,e),t.broadcastQueries()),(0,u.d2)(i))throw new _({graphQLErrors:i.errors});return i}))};if(this.transform(n).hasClientExports){var a=this.localState.addExportedVariables(n,i).then(o);return new v((function(e){var t=null;return a.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return o(i)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchQueryRejectFns.delete("query:"+e),this.fetchQueryRejectFns.delete("fetchRequest:"+e),this.getQuery(e).subscriptions.forEach((function(e){return e.unsubscribe()})),this.queries.delete(e)},e.prototype.getCurrentQueryResult=function(e,t){void 0===t&&(t=!0);var n=e.options,r=n.variables,i=n.query,o=n.fetchPolicy,a=n.returnPartialData,s=e.getLastResult(),l=this.getQuery(e.queryId).newData;if(l&&l.complete)return{data:l.result,partial:!1};if("no-cache"===o||"network-only"===o)return{data:void 0,partial:!1};var u=this.dataStore.getCache().diff({query:i,variables:r,previousResult:s?s.data:void 0,returnPartialData:!0,optimistic:t}),c=u.result,d=u.complete;return{data:d||a?c:void 0,partial:!d}},e.prototype.getQueryWithPreviousResult=function(e){var t;if("string"==typeof e){var n=this.getQuery(e).observableQuery;(0,h.kG)(n,17),t=n}else t=e;var r=t.options,i=r.variables,o=r.query;return{previousResult:this.getCurrentQueryResult(t,!1).data,variables:i,document:o}},e.prototype.broadcastQueries=function(){var e=this;this.onBroadcast(),this.queries.forEach((function(t,n){t.invalidated&&t.listeners.forEach((function(r){r&&r(e.queryStore.get(n),t.newData)}))}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var i,a=this;void 0===r&&(r=this.queryDeduplication);var s=this.transform(e).serverQuery;if(s){var l=this.inFlightLinkObservables,c=this.link,d={query:s,variables:n,operationName:(0,u.rY)(s)||void 0,context:this.prepareContext(o(o({},t),{forceFetch:!r}))};if(t=d.context,r){var p=l.get(s)||new Map;l.set(s,p);var h=JSON.stringify(n);if(!(i=p.get(h))){p.set(h,i=O((0,f.ht)(c,d)));var m=function(){p.delete(h),p.size||l.delete(s),g.unsubscribe()},g=i.subscribe({next:m,error:m,complete:m})}}else i=O((0,f.ht)(c,d))}else i=v.of({data:{}}),t=this.prepareContext(t);var y=this.transform(e).clientQuery;return y&&(i=function(e,r){return new v((function(r){var i=r.next,o=r.error,s=r.complete,l=0,u=!1,c={next:function(e){++l,new Promise((function(r){var i;r((i=e,a.localState.runResolvers({document:y,remoteResult:i,context:t,variables:n})))})).then((function(e){--l,i&&i.call(r,e),u&&c.complete()}),(function(e){--l,o&&o.call(r,e)}))},error:function(e){o&&o.call(r,e)},complete:function(){u=!0,l||s&&s.call(r)}},d=e.subscribe(c);return function(){return d.unsubscribe()}}))}(i)),i},e.prototype.fetchRequest=function(e){var t,n,r=this,i=e.requestId,o=e.queryId,a=e.document,s=e.options,u=e.fetchMoreForQueryId,c=s.variables,d=s.errorPolicy,f=void 0===d?"none":d,p=s.fetchPolicy;return new Promise((function(e,d){var h=r.getObservableFromLink(a,s.context,c),m="fetchRequest:"+o;r.fetchQueryRejectFns.set(m,d);var g=function(){r.fetchQueryRejectFns.delete(m),r.setQuery(o,(function(e){e.subscriptions.delete(v)}))},v=h.map((function(e){if(i>=r.getQuery(o).lastRequestId&&(r.markQueryResult(o,e,s,u),r.queryStore.markQueryResult(o,e,u),r.invalidate(o),r.invalidate(u),r.broadcastQueries()),"none"===f&&y(e.errors))return d(new _({graphQLErrors:e.errors}));if("all"===f&&(n=e.errors),u||"no-cache"===p)t=e.data;else{var l=r.dataStore.getCache().diff({variables:c,query:a,optimistic:!1,returnPartialData:!0}),h=l.result;(l.complete||s.returnPartialData)&&(t=h)}})).subscribe({error:function(e){g(),d(e)},complete:function(){g(),e({data:t,errors:n,loading:!1,networkStatus:l.ready,stale:!1})}});r.setQuery(o,(function(e){e.subscriptions.add(v)}))}))},e.prototype.getQuery=function(e){return this.queries.get(e)||{listeners:new Set,invalidated:!1,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}},e.prototype.setQuery=function(e,t){var n=this.getQuery(e),r=o(o({},n),t(n));this.queries.set(e,r)},e.prototype.invalidate=function(e,t){void 0===t&&(t=!0),e&&this.setQuery(e,(function(){return{invalidated:t}}))},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return o(o({},t),{clientAwareness:this.clientAwareness})},e.prototype.checkInFlight=function(e){var t=this.queryStore.get(e);return t&&t.networkStatus!==l.ready&&t.networkStatus!==l.error},e.prototype.startPollingQuery=function(e,t,n){var r=this,i=e.pollInterval;if((0,h.kG)(i,18),!this.ssrMode){var a=this.pollingInfoByQueryId.get(t);a||this.pollingInfoByQueryId.set(t,a={}),a.interval=i,a.options=o(o({},e),{fetchPolicy:"network-only"});var s=function(){var e=r.pollingInfoByQueryId.get(t);e&&(r.checkInFlight(t)?l():r.fetchQuery(t,e.options,w.poll).then(l,l))},l=function(){var e=r.pollingInfoByQueryId.get(t);e&&(clearTimeout(e.timeout),e.timeout=setTimeout(s,e.interval))};n&&this.addQueryListener(t,n),l()}return t},e.prototype.stopPollingQuery=function(e){this.pollingInfoByQueryId.delete(e)},e}(),D=function(){function e(e){this.cache=e}return e.prototype.getCache=function(){return this.cache},e.prototype.markQueryResult=function(e,t,n,r,i){void 0===i&&(i=!1);var o=!(0,u.d2)(e);i&&(0,u.d2)(e)&&e.data&&(o=!0),!r&&o&&this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:t,variables:n})},e.prototype.markSubscriptionResult=function(e,t,n){(0,u.d2)(e)||this.cache.write({result:e.data,dataId:"ROOT_SUBSCRIPTION",query:t,variables:n})},e.prototype.markMutationInit=function(e){var t,n=this;e.optimisticResponse&&(t="function"==typeof e.optimisticResponse?e.optimisticResponse(e.variables):e.optimisticResponse,this.cache.recordOptimisticTransaction((function(r){var i=n.cache;n.cache=r;try{n.markMutationResult({mutationId:e.mutationId,result:{data:t},document:e.document,variables:e.variables,updateQueries:e.updateQueries,update:e.update})}finally{n.cache=i}}),e.mutationId))},e.prototype.markMutationResult=function(e){var t=this;if(!(0,u.d2)(e.result)){var n=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],r=e.updateQueries;r&&Object.keys(r).forEach((function(i){var o=r[i],a=o.query,s=o.updater,l=t.cache.diff({query:a.document,variables:a.variables,returnPartialData:!0,optimistic:!1}),c=l.result;if(l.complete){var d=(0,u.XY)((function(){return s(c,{mutationResult:e.result,queryName:(0,u.rY)(a.document)||void 0,queryVariables:a.variables})}));d&&n.push({result:d,dataId:"ROOT_QUERY",query:a.document,variables:a.variables})}})),this.cache.performTransaction((function(t){n.forEach((function(e){return t.write(e)}));var r=e.update;r&&(0,u.XY)((function(){return r(t,e.result)}))}))}},e.prototype.markMutationComplete=function(e){var t=e.mutationId;e.optimisticResponse&&this.cache.removeOptimistic(t)},e.prototype.markUpdateQueryResult=function(e,t,n){this.cache.write({result:n,dataId:"ROOT_QUERY",variables:t,query:e})},e.prototype.reset=function(){return this.cache.reset()},e}(),M=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.cache,r=e.ssrMode,i=void 0!==r&&r,o=e.ssrForceFetchDelay,a=void 0===o?0:o,s=e.connectToDevTools,l=e.queryDeduplication,u=void 0===l||l,c=e.defaultOptions,d=e.assumeImmutableResults,p=void 0!==d&&d,m=e.resolvers,g=e.typeDefs,v=e.fragmentMatcher,y=e.name,b=e.version,w=e.link;if(!w&&m&&(w=f.i0.empty()),!w||!n)throw new h.ej(4);this.link=w,this.cache=n,this.store=new D(n),this.disableNetworkFetches=i||a>0,this.queryDeduplication=u,this.defaultOptions=c||{},this.typeDefs=g,a&&setTimeout((function(){return t.disableNetworkFetches=!1}),a),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),void 0!==s&&s&&"undefined"!=typeof window&&(window.__APOLLO_CLIENT__=this),this.version="2.6.10",this.localState=new T({cache:n,client:this,resolvers:m,fragmentMatcher:v}),this.queryManager=new R({link:this.link,store:this.store,queryDeduplication:u,ssrMode:i,clientAwareness:{name:y,version:b},localState:this.localState,assumeImmutableResults:p,onBroadcast:function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.queryStore.getStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.cache.extract(!0)})}})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=o(o({},this.defaultOptions.watchQuery),e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=o(o({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=o(o({},this.defaultOptions.query),e)),(0,h.kG)("cache-and-network"!==e.fetchPolicy,5),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=o(o({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=o(o({},this.defaultOptions.mutate),e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeData=function(e){var t=this.cache.writeData(e);return this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return(0,f.ht)(this.link,e)},e.prototype.initQueryManager=function(){return this.queryManager},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e}();const I=M},96044:(e,t,n)=>{"use strict";n.r(t),n.d(t,{setContext:()=>o});var r=n(38249),i=n(45526);function o(e){return new r.i0((function(t,n){var r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{"use strict";n.r(t),n.d(t,{HttpLink:()=>h,createHttpLink:()=>p});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=300&&d(e,t,"Response not successful: Received status code "+e.status),Array.isArray(t)||t.hasOwnProperty("data")||t.hasOwnProperty("errors")||d(e,t,"Server response was missing for query '"+(Array.isArray(i)?i.map((function(e){return e.operationName})):i.operationName)+"'."),t}))})).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){b&&b.abort()}}))}))},h=function(e){function t(t){return e.call(this,p(t).request)||this}return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(o.i0)},38249:(e,t,n)=>{"use strict";n.d(t,{i0:()=>g,ht:()=>v,Qc:()=>c});var r,i=n(45526),o=n(21726),a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},a(e,t)},s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";n.d(t,{Gw:()=>U,NC:()=>p,f0:()=>S,aL:()=>H,mr:()=>G,Xh:()=>Z,F:()=>M,O4:()=>I,Qy:()=>w,kU:()=>P,Yk:()=>C,p$:()=>D,$H:()=>T,rY:()=>O,iW:()=>R,PT:()=>f,d2:()=>te,mj:()=>k,FS:()=>x,My:()=>m,cQ:()=>v,Ao:()=>g,v4:()=>b,yv:()=>Q,Y8:()=>J,Ee:()=>re,bw:()=>ie,ob:()=>V,Fo:()=>W,u2:()=>h,LZ:()=>_,vf:()=>c,aX:()=>y,XY:()=>ee});var r=n(82624),i=n(21726),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i=t,o={};return r.forEach((function(e){o[e]=i[e]})),n.connection.key+"("+JSON.stringify(o)+")"}return n.connection.key}var a=e;if(t){var s=l()(t);a+="("+s+")"}return n&&Object.keys(n).forEach((function(e){-1===d.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@"+e+"("+JSON.stringify(n[e])+")":a+="@"+e)})),a}function p(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return u(n,r,i,t)})),n}return null}function h(e){return e.alias?e.alias.value:e.name.value}function m(e){return"Field"===e.kind}function g(e){return"InlineFragment"===e.kind}function v(e){return e&&"id"===e.type&&"boolean"==typeof e.generated}function y(e,t){return void 0===t&&(t=!1),o({type:"id",generated:t},"string"==typeof e?{id:e,typename:void 0}:e)}function b(e){return null!=e&&"object"==typeof e&&"json"===e.type}function w(e,t){if(e.directives&&e.directives.length){var n={};return e.directives.forEach((function(e){n[e.name.value]=p(e,t)})),n}return null}function _(e,t){return void 0===t&&(t={}),(n=e.directives,n?n.filter(E).map((function(e){var t=e.arguments;e.name.value,(0,i.kG)(t&&1===t.length,14);var n=t[0];(0,i.kG)(n.name&&"if"===n.name.value,15);var r=n.value;return(0,i.kG)(r&&("Variable"===r.kind||"BooleanValue"===r.kind),16),{directive:e,ifArgument:n}})):[]).every((function(e){var n=e.directive,r=e.ifArgument,o=!1;return"Variable"===r.value.kind?(o=t[r.value.name.value],(0,i.kG)(void 0!==o,13)):o=r.value.value,"skip"===n.name.value?!o:o}));var n}function x(e,t){return function(e){var t=[];return(0,r.visit)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function k(e){return e&&x(["client"],e)&&x(["export"],e)}function E(e){var t=e.name.value;return"skip"===t||"include"===t}function C(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new i.ej(11);"FragmentDefinition"===e.kind&&r.push(e)})),void 0===n&&((0,i.kG)(1===r.length,12),n=r[0].name.value),o(o({},e),{definitions:a([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions)})}function S(e){for(var t=[],n=1;n1){var r=[];t=se(t,r);for(var i=1;i{"use strict";var r=n(84185),i=n(55281),o=n(59405),a=n(48638),s=n(34554),l=n(38589),u=n(12318),c=n(17134),d=n(58908),f=n(99307),p=R(n(67353)),h=R(n(82133)),m=R(n(53651)),g=R(n(79386)),v=R(n(76889)),y=R(n(31540)),b=R(n(79425)),w=R(n(57677)),_=R(n(16044)),x=R(n(73884)),k=R(n(56293)),E=R(n(71515)),C=R(n(23827)),S=R(n(15646)),A=R(n(4875)),T=R(n(40299)),O=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=P(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(92035));function P(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(P=function(e){return e?n:t})(e)}function R(e){return e&&e.__esModule?e:{default:e}}r.DecapCmsCore.registerBackend("git-gateway",u.GitGatewayBackend),r.DecapCmsCore.registerBackend("azure",i.AzureBackend),r.DecapCmsCore.registerBackend("aws-cognito-github-proxy",o.AwsCognitoGitHubProxyBackend),r.DecapCmsCore.registerBackend("github",a.GitHubBackend),r.DecapCmsCore.registerBackend("gitlab",s.GitLabBackend),r.DecapCmsCore.registerBackend("gitea",l.GiteaBackend),r.DecapCmsCore.registerBackend("bitbucket",c.BitbucketBackend),r.DecapCmsCore.registerBackend("test-repo",d.TestBackend),r.DecapCmsCore.registerBackend("proxy",f.ProxyBackend),r.DecapCmsCore.registerWidget([p.default.Widget(),h.default.Widget(),m.default.Widget(),g.default.Widget(),v.default.Widget(),y.default.Widget(),b.default.Widget(),w.default.Widget(),_.default.Widget(),x.default.Widget(),k.default.Widget(),E.default.Widget(),C.default.Widget(),S.default.Widget(),A.default.Widget()]),r.DecapCmsCore.registerEditorComponent(T.default),r.DecapCmsCore.registerEditorComponent({id:"code-block",label:"Code Block",widget:"code",type:"code-block"}),Object.keys(O).forEach((e=>{r.DecapCmsCore.registerLocale(e,O[e])}))},48059:(e,t,n)=>{"use strict";t.de=void 0;var r=n(84185);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}n(59629),"undefined"!=typeof window&&console.log("decap-cms-app 3.3.2"),t.de=function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=u(n(2784)),o=u(n(13980)),a=n(76320),s=n(30762),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=(0,r.default)(s.Icon,{target:"e1eykva80",label:"LoginButtonIcon"})({name:"1gnqu05",styles:"margin-right:18px"});class f extends i.default.Component{constructor(...e){super(...e),c(this,"state",{}),c(this,"handleLogin",(e=>{e.preventDefault(),this.auth.authenticate({scope:"https://api.github.com/repo openid email"},((e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)}))}))}componentDidMount(){const{base_url:e="",app_id:t="",auth_endpoint:n="oauth2/authorize",auth_token_endpoint:r="oauth2/token"}=this.props.config.backend;this.auth=new a.PkceAuthenticator({base_url:e,auth_endpoint:n,app_id:t,auth_token_endpoint:r,auth_token_endpoint_content_type:"application/x-www-form-urlencoded; charset=utf-8"}),this.auth.completeAuth(((e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)}))}render(){const{inProgress:e,config:t,t:n}=this.props;return(0,l.jsx)(s.AuthenticationPage,{onLogin:this.handleLogin,loginDisabled:e,loginErrorMessage:this.state.loginError,logoUrl:t.logo_url,siteUrl:t.site_url,renderButtonContent:()=>(0,l.jsx)(i.default.Fragment,null,(0,l.jsx)(d,{type:"link"})," ",n(e?"auth.loggingIn":"auth.login")),t:n})}}t.default=f,c(f,"propTypes",{inProgress:o.default.bool,config:o.default.object.isRequired,onLogin:o.default.func.isRequired,t:o.default.func.isRequired})},43642:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r)}(n(2784));var r,i=n(48638),o=(r=n(79710))&&r.__esModule?r:{default:r},a=n(28165);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t(0,a.jsx)(o.default,l({},e,{backend:this}));return e.displayName="AuthenticationPage",e}async currentUser({token:e}){return this._currentUserPromise||(this._currentUserPromise=fetch(this.baseUrl+"/oauth2/userInfo",{headers:{Authorization:`${this.tokenKeyword} ${e}`}}).then((async e=>{if(401==e.status)return this.logout(),Promise.reject("Token expired");const t=await e.json(),n=this.originRepo.split("/")[1];return{name:t.email,login:n,avatar_url:`https://github.com/${n}.png`}}))),this._currentUserPromise}async getPullRequestAuthor(e){var t;return null===(t=e.user)||void 0===t?void 0:t.login}}t.default=u},59405:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"API",{enumerable:!0,get:function(){return r.API}}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"AwsCognitoGitHubProxyBackend",{enumerable:!0,get:function(){return i.default}}),t.DecapCmsBackendAwsCognitoGithubProxy=void 0;var r=n(48638),i=a(n(43642)),o=a(n(79710));function a(e){return e&&e.__esModule?e:{default:e}}t.DecapCmsBackendAwsCognitoGithubProxy={AwsCognitoGitHubProxyBackend:i.default,API:r.API,AuthenticationPage:o.default}},96667:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.API_NAME=void 0;var r=c(n(93433)),i=c(n(5648)),o=c(n(36346)),a=c(n(83465)),s=n(95978),l=n(33806),u=n(21023);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;tsetTimeout(t,e)))}function k(e){switch(e.action){case v.ADD:return{changeType:v.ADD,item:{path:e.path},newContent:{content:e.base64Content,contentType:y.BASE64}};case v.EDIT:return{changeType:v.EDIT,item:{path:e.path},newContent:{content:e.base64Content,contentType:y.BASE64}};case v.DELETE:return{changeType:v.DELETE,item:{path:e.path}};case v.RENAME:return{changeType:v.RENAME,item:{path:e.path},sourceServerItem:e.oldPath};default:return{}}}t.default=class{constructor(e,t){p(this,"apiVersion",void 0),p(this,"token",void 0),p(this,"branch",void 0),p(this,"mergeStrategy",void 0),p(this,"endpointUrl",void 0),p(this,"initialWorkflowStatus",void 0),p(this,"cmsLabelPrefix",void 0),p(this,"withHeaders",(e=>l.unsentRequest.withHeaders({Authorization:`Bearer ${this.token}`,"Content-Type":"application/json; charset=utf-8"},e))),p(this,"withAzureFeatures",(e=>e.hasIn(["params",m])?e:l.unsentRequest.withParams({[m]:`${this.apiVersion}`},e))),p(this,"buildRequest",(e=>{const t=this.withHeaders(e),n=this.withAzureFeatures(t);return n.has("cache")?n:l.unsentRequest.withNoCache(n)})),p(this,"request",(e=>{try{return(0,l.requestWithBackoff)(this,e)}catch(e){throw new l.APIError(e.message,null,h)}})),p(this,"responseToJSON",(0,l.responseParser)({format:"json",apiName:h})),p(this,"responseToBlob",(0,l.responseParser)({format:"blob",apiName:h})),p(this,"responseToText",(0,l.responseParser)({format:"text",apiName:h})),p(this,"requestJSON",(e=>this.request(e).then(this.responseToJSON))),p(this,"requestText",(e=>this.request(e).then(this.responseToText))),p(this,"toBase64",(e=>Promise.resolve(s.Base64.encode(e)))),p(this,"fromBase64",(e=>s.Base64.decode(e))),p(this,"branchToRef",(e=>`refs/heads/${e}`)),p(this,"refToBranch",(e=>e.slice(11))),p(this,"user",(async()=>{var e,t,n,r,i,o,a;const s=await this.requestJSON({url:"https://app.vssps.visualstudio.com/_apis/profile/profiles/me",params:{[m]:"6.1-preview.2"}}),l=null===(e=s.coreAttributes)||void 0===e||null===(t=e.DisplayName)||void 0===t?void 0:t.value,u=null===(n=s.coreAttributes)||void 0===n||null===(r=n.EmailAddress)||void 0===r?void 0:r.value;return{name:l||u||"",avatar_url:`data:image/png;base64,${null===(i=s.coreAttributes)||void 0===i||null===(o=i.Avatar)||void 0===o||null===(a=o.value)||void 0===a?void 0:a.value}`,email:u}})),p(this,"readFile",((e,t,{parseText:n=!0,branch:r=this.branch}={})=>(0,l.readFile)(t,(()=>this.request({url:`${this.endpointUrl}/items/`,params:{version:r,path:e},cache:"no-store"}).then(n?this.responseToText:this.responseToBlob)),l.localForage,n))),p(this,"listFiles",(async(e,t,n=this.branch)=>{try{const{value:i}=await this.requestJSON({url:`${this.endpointUrl}/items/`,params:{version:n,scopePath:e,recursionLevel:t?"full":"oneLevel"}});return i.filter((e=>e.gitObjectType===_.BLOB)).map((e=>({id:e.objectId,path:(0,r.default)(e.path,"/"),name:(0,u.basename)(e.path)})))}catch(e){if(e&&404===e.status)return console.log("This 404 was expected and handled appropriately."),[];throw e}}));const{repo:n}=e,o=(0,i.default)(e.apiRoot,"/");this.endpointUrl=`${o}/${n.org}/${n.project}/_apis/git/repositories/${n.repoName}`,this.token=t,this.branch=e.branch,this.mergeStrategy=e.squashMerges?"squash":"noFastForward",this.initialWorkflowStatus=e.initialWorkflowStatus,this.apiVersion=e.apiVersion,this.cmsLabelPrefix=e.cmsLabelPrefix}async readFileMetadata(e,t,{branch:n=this.branch}={}){return await(0,l.readFileMetadata)(t,(async()=>{try{const{value:t}=await this.requestJSON({url:`${this.endpointUrl}/commits/`,params:{"searchCriteria.itemPath":e,"searchCriteria.itemVersion.version":n,"searchCriteria.$top":1}}),[r]=t;return{author:r.author.name||r.author.email,updatedOn:r.author.date}}catch(e){return{author:"",updatedOn:""}}}),l.localForage)}async getRef(e=this.branch){const{value:t}=await this.requestJSON({url:`${this.endpointUrl}/refs`,params:{$top:"1",filter:"heads/"+e}});return t.find((t=>t.name==this.branchToRef(e)))}async deleteRef(e){const t=[{name:e.name,oldObjectId:e.objectId,newObjectId:"0000000000000000000000000000000000000000"}];await this.requestJSON({method:"POST",url:`${this.endpointUrl}/refs`,body:JSON.stringify(t)})}async uploadAndCommit(e,t,n,r){const i=await this.getRef(r?this.branch:n),o={refUpdates:[{name:this.branchToRef(n),oldObjectId:i.objectId}],commits:[{comment:t,changes:e.map((e=>k(e)))}]};return this.requestJSON({url:`${this.endpointUrl}/pushes`,method:"POST",body:JSON.stringify(o)})}async retrieveUnpublishedEntryData(e){var t,n;const{collection:i,slug:o}=(0,l.parseContentKey)(e),a=(0,l.branchFromContentKey)(e),s=await this.getBranchPullRequest(a),u=await this.getDifferences(s.sourceRefName),c=await Promise.all(u.map((async e=>{const t=(0,r.default)(e.item.path,"/"),n=e.changeType===v.ADD;return{id:e.item.objectId,path:t,newFile:n}}))),d=s.labels.find((e=>(0,l.isCMSLabel)(e.name,this.cmsLabelPrefix))),f=d&&d.name?d.name:this.cmsLabelPrefix;return{collection:i,slug:o,status:(0,l.labelToStatus)(f,this.cmsLabelPrefix),diffs:c,updatedAt:s.closedDate?s.closedDate:s.creationDate,pullRequestAuthor:(null===(t=s.createdBy)||void 0===t?void 0:t.displayName)||(null===(n=s.createdBy)||void 0===n?void 0:n.uniqueName)}}async getPullRequestStatues(e){const{value:t}=await this.requestJSON({url:`${this.endpointUrl}/pullrequests/${e.pullRequestId}/commits`,params:{$top:1}}),{value:n}=await this.requestJSON({url:`${this.endpointUrl}/commits/${t[0].commitId}/statuses`,params:{latestOnly:!0}});return n}async getStatuses(e,t){const n=(0,l.generateContentKey)(e,t),r=(0,l.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);return(await this.getPullRequestStatues(i)).map((({context:e,state:t,targetUrl:n})=>({context:e.name,state:t===g.SUCCEEDED?l.PreviewState.Success:l.PreviewState.Other,target_url:n})))}async getCommitItems(e,t){const n=await Promise.all(e.map((async e=>{const[n,r]=await Promise.all([(0,o.default)(e,"toBase64",(0,a.default)(this.toBase64,e.raw)),this.isFileExists(e.path,t)]),i=e.newPath||e.path,s=e.path,l=i!==s?v.RENAME:v.EDIT;return{action:r?l:v.ADD,base64Content:n,path:i,oldPath:s}})));for(const e of n.filter((e=>e.oldPath&&e.action===v.RENAME))){const r=(0,u.dirname)(e.oldPath),i=(0,u.dirname)(e.path);(await this.listFiles(r,!0,t)).filter((t=>t.path!==e.oldPath)).forEach((e=>{n.push({action:v.RENAME,path:e.path.replace(r,i),oldPath:e.path})}))}return n}async persistFiles(e,t,n){const r=[...e,...t];if(n.useWorkflow){const t=e[0].slug;return this.editorialWorkflowGit(r,t,n)}{const e=await this.getCommitItems(r,this.branch);return this.uploadAndCommit(e,n.commitMessage,this.branch,!0)}}async deleteFiles(e,t){const n=await this.getRef(this.branch),r={refUpdates:[{name:n.name,oldObjectId:n.objectId}],commits:[{comment:t,changes:e.map((e=>k({action:v.DELETE,path:e})))}]};return this.requestJSON({url:`${this.endpointUrl}/pushes`,method:"POST",body:JSON.stringify(r)})}async getPullRequests(e){const{value:t}=await this.requestJSON({url:`${this.endpointUrl}/pullrequests`,params:f({"searchCriteria.status":"active","searchCriteria.targetRefName":this.branchToRef(this.branch),"searchCriteria.includeLinks":!1},e?{"searchCriteria.sourceRefName":this.branchToRef(e)}:{})});return t.filter((e=>e.labels.some((e=>(0,l.isCMSLabel)(e.name,this.cmsLabelPrefix)))))}async listUnpublishedBranches(){return(await this.getPullRequests()).map((e=>this.refToBranch(e.sourceRefName)))}async isFileExists(e,t){try{return await this.requestText({url:`${this.endpointUrl}/items/`,params:{version:t,path:e},cache:"no-store"}),!0}catch(e){if(e instanceof l.APIError&&404===e.status)return!1;throw e}}async createPullRequest(e,t,n){const r={sourceRefName:this.branchToRef(e),targetRefName:this.branchToRef(this.branch),title:t,description:l.DEFAULT_PR_BODY,labels:[{name:(0,l.statusToLabel)(n,this.cmsLabelPrefix)}]};await this.requestJSON({method:"POST",url:`${this.endpointUrl}/pullrequests`,params:{supportsIterations:!1},body:JSON.stringify(r)})}async getBranchPullRequest(e){const t=await this.getPullRequests(e);if(t.length<=0)throw new l.EditorialWorkflowError("content is not under editorial workflow",!0);return t[0]}async getDifferences(e){return(await this.requestJSON({url:`${this.endpointUrl}/diffs/commits`,params:{baseVersion:this.branch,targetVersion:this.refToBranch(e)}})).changes.filter((e=>e.item.gitObjectType===_.BLOB&&Object.values(v).includes(e.changeType)))}async editorialWorkflowGit(e,t,n){const r=(0,l.generateContentKey)(n.collectionName,t),i=(0,l.branchFromContentKey)(r);if(n.unpublished){const t=await this.getCommitItems(e,i);await this.uploadAndCommit(t,n.commitMessage,i,!1)}else{const t=await this.getCommitItems(e,this.branch);await this.uploadAndCommit(t,n.commitMessage,i,!0),await this.createPullRequest(i,n.commitMessage,n.status||this.initialWorkflowStatus)}}async updateUnpublishedEntryStatus(e,t,n){const r=(0,l.generateContentKey)(e,t),i=(0,l.branchFromContentKey)(r),o=await this.getBranchPullRequest(i),a=[...o.labels.filter((e=>!(0,l.isCMSLabel)(e.name,this.cmsLabelPrefix))).map((e=>e.name)),(0,l.statusToLabel)(n,this.cmsLabelPrefix)];await this.updatePullRequestLabels(o,a)}async deleteUnpublishedEntry(e,t){const n=(0,l.generateContentKey)(e,t),r=(0,l.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);await this.abandonPullRequest(i)}async publishUnpublishedEntry(e,t){const n=(0,l.generateContentKey)(e,t),r=(0,l.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);await this.completePullRequest(i)}async updatePullRequestLabels(e,t){const n=e.labels.filter((e=>(0,l.isCMSLabel)(e.name,this.cmsLabelPrefix)));await Promise.all(n.map((t=>this.requestText({method:"DELETE",url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(e.pullRequestId)}/labels/${encodeURIComponent(t.id)}`})))),await Promise.all(t.map((t=>this.requestText({method:"POST",url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(e.pullRequestId)}/labels`,body:JSON.stringify({name:t})}))))}async completePullRequest(e){const t={status:b.COMPLETED,lastMergeSourceCommit:e.lastMergeSourceCommit,completionOptions:{deleteSourceBranch:!0,mergeCommitMessage:l.MERGE_COMMIT_MESSAGE,mergeStrategy:this.mergeStrategy}};let n=await this.requestJSON({method:"PATCH",url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(e.pullRequestId)}`,body:JSON.stringify(t)}),r=1;for(;n.mergeStatus===w.QUEUED&&r<=10;)await x(500),n=await this.requestJSON({url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(e.pullRequestId)}`}),r+=1}async abandonPullRequest(e){const t={status:b.ABANDONED};await this.requestJSON({method:"PATCH",url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(e.pullRequestId)}`,body:JSON.stringify(t)}),await this.deleteRef({name:e.sourceRefName,objectId:e.lastMergeSourceCommit.commitId})}}},61325:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=u(n(2784)),o=u(n(13980)),a=n(76320),s=n(30762),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=(0,r.default)(s.Icon,{target:"e1n0346u0",label:"LoginButtonIcon"})({name:"1gnqu05",styles:"margin-right:18px"});class f extends i.default.Component{constructor(...e){super(...e),c(this,"state",{}),c(this,"handleLogin",(e=>{e.preventDefault(),this.auth.authenticate({scope:"vso.code_full,user.read",resource:"499b84ac-1321-427f-aa17-267ca6975798",prompt:"select_account"},((e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)}))}))}componentDidMount(){this.auth=new a.ImplicitAuthenticator({base_url:`https://login.microsoftonline.com/${this.props.config.backend.tenant_id}`,auth_endpoint:"oauth2/authorize",app_id:this.props.config.backend.app_id,clearHash:this.props.clearHash}),this.auth.completeAuth(((e,t)=>{e?alert(e):this.props.onLogin(t)}))}render(){const{inProgress:e,config:t,t:n}=this.props;return(0,l.jsx)(s.AuthenticationPage,{onLogin:this.handleLogin,loginDisabled:e,loginErrorMessage:this.state.loginError,logoUrl:t.logo_url,renderButtonContent:()=>(0,l.jsx)(i.default.Fragment,null,(0,l.jsx)(d,{type:"azure"}),n(e?"auth.loggingIn":"auth.loginWithAzure")),t:n})}}t.default=f,c(f,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool,base_url:o.default.string,siteId:o.default.string,authEndpoint:o.default.string,config:o.default.object.isRequired,clearHash:o.default.func,t:o.default.func.isRequired})},52141:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(5648)),i=c(n(93433)),o=c(n(63252)),a=n(33806),s=c(n(61325)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96667));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t!!e)).catch((e=>(console.warn("Failed getting Azure user",e),!1)))||!1},api:{status:!0,statusPage:""}}}authComponent(){return s.default}restoreUser(e){return this.authenticate(e)}async authenticate(e){this.token=e.token,this.api=new l.default({apiRoot:this.apiRoot,apiVersion:this.apiVersion,repo:this.repo,branch:this.branch,squashMerges:this.squashMerges,cmsLabelPrefix:this.cmsLabelPrefix,initialWorkflowStatus:this.options.initialWorkflowStatus},this.token);const t=await this.api.user();return f({token:e.token},t)}logout(){this.token=null}getToken(){return Promise.resolve(this.token)}async entriesByFolder(e,t,n){return await(0,a.entriesByFolder)((async()=>(await this.api.listFiles(e,n>1)).filter((e=>(0,a.filterByExtension)({path:e.path},t))).map((e=>({id:e.id,path:e.path})))),this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),l.API_NAME)}entriesByFiles(e){return(0,a.entriesByFiles)(e,this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),l.API_NAME)}async getEntry(e){return{file:{path:e},data:await this.api.readFile(e)}}async getMedia(){const e=await this.api.listFiles(this.mediaFolder,!1);return await Promise.all(e.map((async({id:e,path:t,name:n})=>({id:e,name:n,displayURL:await this.getMediaDisplayURL({id:e,path:t}),path:t}))))}getMediaDisplayURL(e){return this._mediaDisplayURLSem=this._mediaDisplayURLSem||(0,o.default)(10),(0,a.getMediaDisplayURL)(e,this.api.readFile.bind(this.api),this._mediaDisplayURLSem)}async getMediaFile(e){const t=(0,a.basename)(e),n=await(0,a.getMediaAsBlob)(e,null,this.api.readFile.bind(this.api)),r=new File([n],t),i=URL.createObjectURL(r);return{id:await(0,a.getBlobSHA)(n),displayURL:i,path:e,name:t,size:r.size,file:r,url:i}}async persistEntry(e,t){const n=e.assets;await this.api.persistFiles(e.dataFiles,n,t)}async persistMedia(e,t){const n=e.fileObj,[r]=await Promise.all([(0,a.getBlobSHA)(n),this.api.persistFiles([],[e],t)]),{path:o}=e,s=URL.createObjectURL(n);return{displayURL:s,path:(0,i.default)(o,"/"),name:n.name,size:n.size,file:n,url:s,id:r}}async deleteFiles(e,t){await this.api.deleteFiles(e,t)}async loadMediaFile(e,t){const n=await(0,a.getMediaAsBlob)(t.path,null,((t,n,{parseText:r})=>this.api.readFile(t,n,{branch:e,parseText:r}))),r=(0,a.basename)(t.path),i=new File([n],r);return{id:t.path,displayURL:URL.createObjectURL(i),path:t.path,name:r,size:i.size,file:i}}async loadEntryMediaFiles(e,t){return await Promise.all(t.map((t=>this.loadMediaFile(e,t))))}async unpublishedEntries(){return await(0,a.unpublishedEntries)((()=>this.api.listUnpublishedBranches().then((e=>e.map((e=>(0,a.contentKeyFromBranch)(e)))))))}async unpublishedEntry({id:e,collection:t,slug:n}){if(e)return await this.api.retrieveUnpublishedEntryData(e);if(t&&n){const e=(0,a.generateContentKey)(t,n);return await this.api.retrieveUnpublishedEntryData(e)}throw new Error("Missing unpublished entry id or collection and slug")}getBranch(e,t){const n=(0,a.generateContentKey)(e,t);return(0,a.branchFromContentKey)(n)}async unpublishedEntryMediaFile(e,t,n,r){const i=this.getBranch(e,t);return await this.loadMediaFile(i,{path:n,id:r})}async unpublishedEntryDataFile(e,t,n,r){const i=this.getBranch(e,t);return await this.api.readFile(n,r,{branch:i})}updateUnpublishedEntryStatus(e,t,n){return(0,a.runWithLock)(this.lock,(()=>this.api.updateUnpublishedEntryStatus(e,t,n)),"Failed to acquire update entry status lock")}deleteUnpublishedEntry(e,t){return(0,a.runWithLock)(this.lock,(()=>this.api.deleteUnpublishedEntry(e,t)),"Failed to acquire delete entry lock")}publishUnpublishedEntry(e,t){return(0,a.runWithLock)(this.lock,(()=>this.api.publishUnpublishedEntry(e,t)),"Failed to acquire publish entry lock")}async getDeployPreview(e,t){try{const n=await this.api.getStatuses(e,t),r=(0,a.getPreviewStatus)(n,this.previewContext);if(r){const{target_url:e,state:t}=r;return{url:e,status:t}}return null}catch(e){return null}}}},55281:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"API",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"AzureBackend",{enumerable:!0,get:function(){return r.default}}),t.DecapCmsBackendAzure=void 0;var r=a(n(52141)),i=a(n(96667)),o=a(n(61325));function a(e){return e&&e.__esModule?e:{default:e}}t.DecapCmsBackendAzure={AzureBackend:r.default,API:i.default,AuthenticationPage:o.default}},84280:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.API_NAME=void 0;var r=u(n(72579)),i=u(n(85395)),o=n(33806),a=n(21023),s=n(13856),l=n(99776);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(e){return e.MERGED="MERGED",e.SUPERSEDED="SUPERSEDED",e.OPEN="OPEN",e.DECLINED="DECLINED",e}(f||{}),p=function(e){return e.Successful="SUCCESSFUL",e.Failed="FAILED",e.InProgress="INPROGRESS",e.Stopped="STOPPED",e}(p||{});const h=t.API_NAME="Bitbucket",m="application/json; charset=utf-8";function g(e){return e&&404===e.status?(console.log("This 404 was expected and handled appropriately."),{size:0,values:[]}):Promise.reject(e)}t.default=class{constructor(e){d(this,"apiRoot",void 0),d(this,"branch",void 0),d(this,"repo",void 0),d(this,"requestFunction",void 0),d(this,"repoURL",void 0),d(this,"commitAuthor",void 0),d(this,"mergeStrategy",void 0),d(this,"initialWorkflowStatus",void 0),d(this,"cmsLabelPrefix",void 0),d(this,"buildRequest",(e=>{const t=o.unsentRequest.withRoot(this.apiRoot)(e);return t.has("cache")?t:o.unsentRequest.withNoCache(t)})),d(this,"request",(e=>{try{return(0,o.requestWithBackoff)(this,e)}catch(e){throw new o.APIError(e.message,null,h)}})),d(this,"responseToJSON",(0,o.responseParser)({format:"json",apiName:h})),d(this,"responseToBlob",(0,o.responseParser)({format:"blob",apiName:h})),d(this,"responseToText",(0,o.responseParser)({format:"text",apiName:h})),d(this,"requestJSON",(e=>this.request(e).then(this.responseToJSON))),d(this,"requestText",(e=>this.request(e).then(this.responseToText))),d(this,"user",(()=>this.requestJSON("/user"))),d(this,"hasWriteAccess",(async()=>{const e=await this.request(this.repoURL);if(404===e.status)throw Error("Repo not found");return e.ok})),d(this,"getBranch",(async e=>await this.requestJSON(`${this.repoURL}/refs/branches/${e}`))),d(this,"branchCommitSha",(async e=>{const{target:{hash:t}}=await this.getBranch(e);return t})),d(this,"defaultBranchCommitSha",(()=>this.branchCommitSha(this.branch))),d(this,"isFile",(({type:e})=>"commit_file"===e)),d(this,"getFileId",((e,t)=>`${e}/${t}`)),d(this,"processFile",(e=>function(e){for(var t=1;te.filter(this.isFile).map(this.processFile))),d(this,"readFile",(async(e,t,{parseText:n=!0,branch:r=this.branch,head:i=""}={})=>await(0,o.readFile)(t,(async()=>{const t=i||await this.branchCommitSha(r);return await this.request({url:`${this.repoURL}/src/${t}/${e}`,cache:"no-store"}).then(n?this.responseToText:this.responseToBlob)}),o.localForage,n))),d(this,"getEntriesAndCursor",(e=>{const{size:t,page:n,pagelen:r,next:i,previous:a,values:s}=e,l=r&&t?Math.ceil(t/r):void 0;return{entries:s,cursor:o.Cursor.create({actions:[...i?["next"]:[],...a?["prev"]:[]],meta:{page:n,count:t,pageSize:r,pageCount:l},data:{links:{next:i,prev:a}}})}})),d(this,"listFiles",(async(e,t=1,n,r)=>{const i=await this.branchCommitSha(r),o=await this.requestJSON({url:`${this.repoURL}/src/${i}/${e}`,params:{max_depth:t,pagelen:n}}).catch(g),{entries:a,cursor:s}=this.getEntriesAndCursor(o);return{entries:this.processFiles(a),cursor:s}})),d(this,"traverseCursor",(async(e,t)=>(0,i.default)([this.requestJSON,(0,o.then)(this.getEntriesAndCursor),(0,o.then)((({cursor:e,entries:t})=>({cursor:e,entries:this.processFiles(t)})))])(e.data.getIn(["links",t])))),d(this,"listAllFiles",(async(e,t,n)=>{const{cursor:r,entries:i}=await this.listFiles(e,t,100,n),o=[...i];let a=r;for(;a&&a.actions.has("next");){const{cursor:e,entries:t}=await this.traverseCursor(a,"next");o.push(...t),a=e}return this.processFiles(o)})),d(this,"deleteFiles",((e,t)=>{const n=new FormData;if(e.forEach((e=>{n.append("files",e)})),n.append("branch",this.branch),t&&n.append("message",t),this.commitAuthor){const{name:e,email:t}=this.commitAuthor;n.append("author",`${e} <${t}>`)}return(0,i.default)([o.unsentRequest.withMethod("POST"),o.unsentRequest.withBody(n),this.request])(`${this.repoURL}/src`)})),this.apiRoot=e.apiRoot||"https://api.bitbucket.org/2.0",this.branch=e.branch||"master",this.repo=e.repo||"",this.requestFunction=e.requestFunction||o.unsentRequest.performRequest,this.hasWriteAccess=e.hasWriteAccess||this.hasWriteAccess,this.repoURL=this.repo?`/repositories/${this.repo}`:"",this.mergeStrategy=e.squashMerges?"squash":"merge_commit",this.initialWorkflowStatus=e.initialWorkflowStatus,this.cmsLabelPrefix=e.cmsLabelPrefix}async readFileMetadata(e,t){return await(0,o.readFileMetadata)(t,(async()=>{try{const{values:t}=await this.requestJSON({url:`${this.repoURL}/commits`,params:{path:e,include:this.branch}}),n=t[0];return{author:n.author.user?n.author.user.display_name||n.author.user.nickname:n.author.raw,updatedOn:n.date}}catch(e){return{author:"",updatedOn:""}}}),o.localForage)}async isShaExistsInBranch(e,t){const{values:n}=await this.requestJSON({url:`${this.repoURL}/commits`,params:{include:e,pagelen:100}}).catch((t=>(console.log(`Failed getting commits for branch '${e}'`,t),[])));return n.some((e=>e.hash===t))}async uploadFiles(e,{commitMessage:t,branch:n,parentSha:i}){const s=new FormData,l=[];e.forEach((e=>{if(e.delete)s.append("files",e.path);else if(e.newPath){const t=(0,r.default)(e,"fileObj",new Blob([e.raw]));l.push({from:e.path,to:e.newPath,contentBlob:t})}else{const t=(0,r.default)(e,"fileObj",new Blob([e.raw]));s.append(e.path,t,(0,o.basename)(e.path))}}));for(const{from:e,to:t,contentBlob:r}of l){const l=(0,a.dirname)(e),u=(0,a.dirname)(t),c=i?this.branch:n,d=await this.listAllFiles(l,100,c);for(const t of d){s.append("files",t.path);const n=t.path===e?r:await this.readFile(t.path,null,{branch:c,parseText:!1});s.append(t.path.replace(l,u),n,(0,o.basename)(t.path))}}if(t&&s.append("message",t),this.commitAuthor){const{name:e,email:t}=this.commitAuthor;s.append("author",`${e} <${t}>`)}s.append("branch",n),i&&s.append("parents",i);try{await this.requestText({url:`${this.repoURL}/src`,method:"POST",body:s})}catch(e){const t=e.message||"";throw i&&t.includes("Something went wrong")&&await(0,o.throwOnConflictingBranches)(n,(e=>this.getBranch(e)),h),e}return e}async persistFiles(e,t,n){const r=[...e,...t];if(n.useWorkflow){const t=e[0].slug;return this.editorialWorkflowGit(r,t,n)}return this.uploadFiles(r,{commitMessage:n.commitMessage,branch:this.branch})}async addPullRequestComment(e,t){await this.requestJSON({method:"POST",url:`${this.repoURL}/pullrequests/${e.id}/comments`,headers:{"Content-Type":m},body:JSON.stringify({content:{raw:t}})})}async getPullRequestLabel(e){const t=await this.requestJSON({url:`${this.repoURL}/pullrequests/${e}/comments`,params:{pagelen:100}});return t.values.map((e=>e.content.raw))[t.values.length-1]}async createPullRequest(e,t,n){const r=await this.requestJSON({method:"POST",url:`${this.repoURL}/pullrequests`,headers:{"Content-Type":m},body:JSON.stringify({title:t,source:{branch:{name:e}},destination:{branch:{name:this.branch}},description:o.DEFAULT_PR_BODY,close_source_branch:!0})});await this.addPullRequestComment(r,(0,o.statusToLabel)(n,this.cmsLabelPrefix))}async getDifferences(e,t=this.branch){if(e===t)return[];const n=await this.requestText({url:`${this.repoURL}/diff/${e}..${t}`,params:{binary:!1}});return(0,l.parse)(n).map((e=>{var t,n;const r=(null===(t=e.oldPath)||void 0===t?void 0:t.replace(/b\//,""))||"",i=(null===(n=e.newPath)||void 0===n?void 0:n.replace(/b\//,""))||"",o=i||r;return{oldPath:r,newPath:i,status:e.status,newFile:"added"===e.status,path:o,binary:e.binary||/.svg$/.test(o)}}))}async editorialWorkflowGit(e,t,n){const r=(0,o.generateContentKey)(n.collectionName,t),i=(0,o.branchFromContentKey)(r);if(n.unpublished){const t=await this.getDifferences(i),r=[];for(const n of t.filter((e=>e.binary&&"deleted"!==e.status)))e.some((e=>e.path===n.path))||r.push({path:n.path,delete:!0});await this.uploadFiles([...e,...r],{commitMessage:n.commitMessage,branch:i})}else{const t=await this.branchCommitSha(this.branch);await this.uploadFiles(e,{commitMessage:n.commitMessage,branch:i,parentSha:t}),await this.createPullRequest(i,n.commitMessage,n.status||this.initialWorkflowStatus)}}async getPullRequests(e){const t=e?`source.branch.name = "${e}"`:`source.branch.name ~ "${o.CMS_BRANCH_PREFIX}/"`,n=await this.requestJSON({url:`${this.repoURL}/pullrequests`,params:{pagelen:50,q:s.oneLine` source.repository.full_name = "${this.repo}" AND state = "${f.OPEN}" AND destination.branch.name = "${this.branch}" @@ -11,7 +11,7 @@ Please ensure the repo information is spelled correctly. If the repo is private, make sure you're logged into a Bitbucket account with access. - `,e})))throw new Error("Your BitBucket user account does not have access to this repo.");const t=await this.api.user();return h(h({},t),{},{name:t.display_name,login:t.username,token:e.token,avatar_url:t.links.avatar.href,refresh_token:e.refresh_token})}getRefreshedAccessToken(){if("implicit"===this.authType)throw new a.AccessTokenError("Can't refresh access token when using implicit auth");if(this.refreshedTokenPromise)return this.refreshedTokenPromise;if(!this.authenticator){const e={base_url:this.baseUrl,site_id:this.siteId};this.authenticator=new s.NetlifyAuthenticator(e)}return this.refreshedTokenPromise=this.authenticator.refresh({provider:"bitbucket",refresh_token:this.refreshToken}).then((({token:e,refresh_token:t})=>(this.token=e,this.refreshToken=t,this.refreshedTokenPromise=void 0,this.updateUserCredentials({token:e,refresh_token:t}),e))),this.refreshedTokenPromise}logout(){this.token=null}getToken(){return this.refreshedTokenPromise?this.refreshedTokenPromise:Promise.resolve(this.token)}async entriesByFolder(e,t,n){let r;const i=await this.api.defaultBranchCommitSha(),o=await(0,a.entriesByFolder)((()=>this.api.listFiles(e,n,20,this.branch).then((({entries:e,cursor:n})=>(r=n.mergeMeta({extension:t}),e.filter((e=>(0,a.filterByExtension)(e,t))))))),((e,t)=>this.api.readFile(e,t,{head:i})),this.api.readFileMetadata.bind(this.api),u.API_NAME);return o[a.CURSOR_COMPATIBILITY_SYMBOL]=r,o}async listAllFiles(e,t,n){return(await this.api.listAllFiles(e,n,this.branch)).filter((e=>(0,a.filterByExtension)(e,t)))}async allEntriesByFolder(e,t,n){const r=await this.api.defaultBranchCommitSha();return await(0,a.allEntriesByFolder)({listAllFiles:()=>this.listAllFiles(e,t,n),readFile:(e,t)=>this.api.readFile(e,t,{head:r}),readFileMetadata:this.api.readFileMetadata.bind(this.api),apiName:u.API_NAME,branch:this.branch,localForage:a.localForage,folder:e,extension:t,depth:n,getDefaultBranch:()=>Promise.resolve({name:this.branch,sha:r}),isShaExistsInBranch:this.api.isShaExistsInBranch.bind(this.api),getDifferences:(e,t)=>this.api.getDifferences(e,t),getFileId:e=>Promise.resolve(this.api.getFileId(r,e)),filterFile:e=>(0,a.filterByExtension)(e,t)})}async entriesByFiles(e){const t=await this.api.defaultBranchCommitSha();return(0,a.entriesByFiles)(e,((e,n)=>this.api.readFile(e,n,{head:t})),this.api.readFileMetadata.bind(this.api),u.API_NAME)}getEntry(e){return this.api.readFile(e).then((t=>({file:{path:e,id:null},data:t})))}getMedia(e=this.mediaFolder){return this.api.listAllFiles(e,1,this.branch).then((e=>e.map((({id:e,name:t,path:n})=>({id:e,name:t,path:n,displayURL:{id:e,path:n}})))))}getLargeMediaClient(){return this._largeMediaClientPromise||(this._largeMediaClientPromise=(async()=>{const e=await this.api.readFile(".gitattributes").then((e=>(0,a.getLargeMediaPatternsFromGitAttributesFile)(e))).catch((e=>(404===e.status?console.log("This 404 was expected and handled appropriately."):console.error(e),[])));return new c.GitLfsClient(!!(this.largeMediaURL&&e.length>0),this.largeMediaURL,e,this.requestFunction)})()),this._largeMediaClientPromise}getMediaDisplayURL(e){return this._mediaDisplayURLSem=this._mediaDisplayURLSem||(0,i.default)(10),(0,a.getMediaDisplayURL)(e,this.api.readFile.bind(this.api),this._mediaDisplayURLSem)}async getMediaFile(e){const t=(0,a.basename)(e),n=await(0,a.getMediaAsBlob)(e,null,this.api.readFile.bind(this.api)),r=(0,a.blobToFileObj)(t,n),i=URL.createObjectURL(r);return{id:await(0,a.getBlobSHA)(r),displayURL:i,path:e,name:t,size:r.size,file:r,url:i}}async persistEntry(e,t){const n=await this.getLargeMediaClient();return(0,a.runWithLock)(this.lock,(async()=>this.api.persistFiles(e.dataFiles,n.enabled?await(0,a.getLargeMediaFilteredMediaFiles)(n,e.assets):e.assets,t)),"Failed to acquire persist entry lock")}async persistMedia(e,t){const{fileObj:n,path:r}=e,i=n?URL.createObjectURL(n):"",o=await this.getLargeMediaClient(),s=r.startsWith("/")?r.slice(1):r;if(!o.enabled||!o.matchPath(s))return this._persistMedia(e,t);const l=await(0,a.getPointerFileForMediaFileObj)(o,n,r);return h(h({},await this._persistMedia(l,t)),{},{displayURL:i})}async _persistMedia(e,t){const n=e.fileObj,[i]=await Promise.all([(0,a.getBlobSHA)(n),this.api.persistFiles([],[e],t)]),o=URL.createObjectURL(n);return{displayURL:o,path:(0,r.default)(e.path,"/k"),name:n.name,size:n.size,id:i,file:n,url:o}}deleteFiles(e,t){return this.api.deleteFiles(e,t)}traverseCursor(e,t){return this.api.traverseCursor(e,t).then((async({entries:t,cursor:n})=>{var r;const i=null===(r=e.meta)||void 0===r?void 0:r.get("extension");i&&(t=t.filter((e=>(0,a.filterByExtension)(e,i))),n=n.mergeMeta({extension:i}));const o=await this.api.defaultBranchCommitSha();return{entries:await(0,a.entriesByFiles)(t,((e,t)=>this.api.readFile(e,t,{head:o})),this.api.readFileMetadata.bind(this.api),u.API_NAME),cursor:n}}))}async loadMediaFile(e,t,{branch:n}){const r=await(0,a.getMediaAsBlob)(e,t,(async(e,t,{parseText:r})=>await this.api.readFile(e,t,{branch:n,parseText:r}))),i=(0,a.basename)(e),o=(0,a.blobToFileObj)(i,r);return{id:e,displayURL:URL.createObjectURL(o),path:e,name:i,size:o.size,file:o}}async unpublishedEntries(){return await(0,a.unpublishedEntries)((()=>this.api.listUnpublishedBranches().then((e=>e.map((e=>(0,a.contentKeyFromBranch)(e)))))))}async unpublishedEntry({id:e,collection:t,slug:n}){if(e)return await this.api.retrieveUnpublishedEntryData(e);if(t&&n){const e=(0,a.generateContentKey)(t,n);return await this.api.retrieveUnpublishedEntryData(e)}throw new Error("Missing unpublished entry id or collection and slug")}getBranch(e,t){const n=(0,a.generateContentKey)(e,t);return(0,a.branchFromContentKey)(n)}async unpublishedEntryDataFile(e,t,n,r){const i=this.getBranch(e,t);return await this.api.readFile(n,r,{branch:i})}async unpublishedEntryMediaFile(e,t,n,r){const i=this.getBranch(e,t);return await this.loadMediaFile(n,r,{branch:i})}async updateUnpublishedEntryStatus(e,t,n){return(0,a.runWithLock)(this.lock,(()=>this.api.updateUnpublishedEntryStatus(e,t,n)),"Failed to acquire update entry status lock")}async deleteUnpublishedEntry(e,t){return(0,a.runWithLock)(this.lock,(()=>this.api.deleteUnpublishedEntry(e,t)),"Failed to acquire delete entry lock")}async publishUnpublishedEntry(e,t){return(0,a.runWithLock)(this.lock,(()=>this.api.publishUnpublishedEntry(e,t)),"Failed to acquire publish entry lock")}async getDeployPreview(e,t){try{const n=await this.api.getStatuses(e,t),r=(0,a.getPreviewStatus)(n,this.previewContext);if(r){const{target_url:e,state:t}=r;return{url:e,status:t}}return null}catch(e){return null}}}},17134:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"API",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"BitbucketBackend",{enumerable:!0,get:function(){return r.default}}),t.DecapCmsBackendBitbucket=void 0;var r=a(n(28521)),i=a(n(84280)),o=a(n(8387));function a(e){return e&&e.__esModule?e:{default:e}}t.DecapCmsBackendBitbucket={BitbucketBackend:r.default,API:i.default,AuthenticationPage:o.default}},17930:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=u(n(83465)),o=u(n(13980)),a=u(n(2784)),s=n(30762),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t{v&&v.handleIdentityLogin(e)})),window.netlifyIdentity.on("logout",(()=>{v&&v.handleIdentityLogout()})),window.netlifyIdentity.on("error",(e=>{v&&v.handleIdentityError(e)})));class y extends a.default.Component{constructor(e){super(e),f(this,"handleIdentityLogin",(e=>{this.props.onLogin(e),window.netlifyIdentity.close()})),f(this,"handleIdentityLogout",(()=>{window.netlifyIdentity.open()})),f(this,"handleIdentityError",(e=>{var t;null!=e&&null!==(t=e.message)&&void 0!==t&&t.match(/^Failed to load settings from.+\.netlify\/identity$/)&&(window.netlifyIdentity.close(),this.setState({errors:{identity:this.props.t("auth.errors.identitySettings")}}))})),f(this,"handleIdentity",(()=>{const e=window.netlifyIdentity.currentUser();e?this.props.onLogin(e):window.netlifyIdentity.open()})),f(this,"state",{email:"",password:"",errors:{}}),f(this,"handleChange",((e,t)=>{this.setState(d(d({},this.state),{},{[e]:t.target.value}))})),f(this,"handleLogin",(async e=>{e.preventDefault();const{email:t,password:n}=this.state,{t:r}=this.props,i={};if(t||(i.email=r("auth.errors.email")),n||(i.password=r("auth.errors.password")),Object.keys(i).length>0)this.setState({errors:i});else try{const e=await y.authClient(),t=await e.login(this.state.email,this.state.password,!0);this.props.onLogin(t)}catch(e){this.setState({errors:{server:e.description||e.msg||e},loggingIn:!1})}})),v=this}componentDidMount(){!this.loggedIn&&window.netlifyIdentity&&window.netlifyIdentity.currentUser()&&(this.props.onLogin(window.netlifyIdentity.currentUser()),window.netlifyIdentity.close())}componentWillUnmount(){v=null}render(){const{errors:e}=this.state,{error:t,inProgress:n,config:r,t:o}=this.props;return window.netlifyIdentity?e.identity?(0,l.jsx)(s.AuthenticationPage,{logoUrl:r.logo_url,siteUrl:r.site_url,onLogin:this.handleIdentity,renderPageContent:()=>(0,l.jsx)("a",{href:"https://docs.netlify.com/visitor-access/git-gateway/#setup-and-settings",target:"_blank",rel:"noopener noreferrer"},e.identity),t:o}):(0,l.jsx)(s.AuthenticationPage,{logoUrl:r.logo_url,siteUrl:r.site_url,onLogin:this.handleIdentity,renderButtonContent:()=>o("auth.loginWithNetlifyIdentity"),t:o}):(0,l.jsx)(s.AuthenticationPage,{logoUrl:r.logo_url,siteUrl:r.site_url,renderPageContent:()=>(0,l.jsx)(h,{onSubmit:this.handleLogin},t?(0,l.jsx)(g,null,t):null,e.server?(0,l.jsx)(g,null,String(e.server)):null,(0,l.jsx)(g,null,e.email||null),(0,l.jsx)(m,{type:"text",name:"email",placeholder:"Email",value:this.state.email,onChange:(0,i.default)(this.handleChange,"email")}),(0,l.jsx)(g,null,e.password||null),(0,l.jsx)(m,{type:"password",name:"password",placeholder:"Password",value:this.state.password,onChange:(0,i.default)(this.handleChange,"password")}),(0,l.jsx)(p,{disabled:n},o(n?"auth.loggingIn":"auth.login"))),t:o})}}t.default=y,f(y,"authClient",void 0),f(y,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool.isRequired,error:o.default.node,config:o.default.object.isRequired,t:o.default.func.isRequired})},25299:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(48638),i=n(33806);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;tPromise.reject("Never used")},e)),s(this,"tokenPromise",void 0),s(this,"commitAuthor",void 0),s(this,"isLargeMedia",void 0),this.apiRoot=e.apiRoot,this.tokenPromise=e.tokenPromise,this.commitAuthor=e.commitAuthor,this.isLargeMedia=e.isLargeMedia,this.repoURL="",this.originRepoURL=""}hasWriteAccess(){return this.getDefaultBranch().then((()=>!0)).catch((e=>{if(401===e.status){if("Bad credentials"===e.message)throw new i.APIError("Git Gateway Error: Please ask your site administrator to reissue the Git Gateway token.",e.status,"Git Gateway");return!1}throw 404!==e.status||void 0!==e.message&&"Unable to locate site configuration"!==e.message?(console.error("Problem fetching repo data from Git Gateway"),e):new i.APIError("Git Gateway Error: Please make sure Git Gateway is enabled on your site.",e.status,"Git Gateway")}))}requestHeaders(e={}){return this.tokenPromise().then((t=>a({Authorization:`Bearer ${t}`,"Content-Type":"application/json; charset=utf-8"},e)))}handleRequestError(e,t){throw new i.APIError(e.message||e.msg,t,"Git Gateway")}user(){return Promise.resolve(a({login:""},this.commitAuthor))}async getHeadReference(e){if(!this.repoOwner){const e=(await this.getDefaultBranch())._links.self,t=new RegExp("https?://.+?/repos/(.+?)/"),n=e.match(t);this.repoOwner=n?n[1]:""}return super.getHeadReference(e)}commit(e,t){const n={message:e,tree:t.sha,parents:t.parentSha?[t.parentSha]:[]};return this.commitAuthor&&(n.author=a(a({},this.commitAuthor),{},{date:(new Date).toISOString()})),this.request("/git/commits",{method:"POST",body:JSON.stringify(n)})}nextUrlProcessor(){return e=>e.replace(/^(?:[a-z]+:\/\/.+?\/.+?\/.+?\/)/,`${this.apiRoot}/`)}async diffFromFile(e){const t=await super.diffFromFile(e);return a(a({},t),{},{binary:t.binary||await this.isLargeMedia(e.filename)})}}t.default=l},76749:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(34554),i=n(33806);function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class a extends r.API{constructor(e){super(e),o(this,"tokenPromise",void 0),o(this,"withAuthorizationHeaders",(async e=>{const t=await this.tokenPromise();return i.unsentRequest.withHeaders({Authorization:`Bearer ${t}`},e)})),o(this,"hasWriteAccess",(()=>Promise.resolve(!0))),this.tokenPromise=e.tokenPromise,this.commitAuthor=e.commitAuthor,this.repoURL=""}}t.default=a},77188:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=v(n(30898)),i=v(n(13888)),o=v(n(72579)),a=v(n(28005)),s=v(n(51949)),l=v(n(52939)),u=n(33806),c=n(48638),d=n(34554),f=n(17134),p=v(n(25299)),h=v(n(76749)),m=v(n(17930)),g=n(71213);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t{var n;null===(n=window.netlifyIdentity)||void 0===n||n.on("init",(()=>{e=!0,t()}))})),new Promise((e=>setTimeout(e,2500))).then((()=>{var t;e||(console.log("Manually initializing identity widget"),null===(t=window.netlifyIdentity)||void 0===t||t.init())}))])}async function T(e){return await fetch(`https://api.netlify.com/api/v1/sites/${e}`).then((e=>e.json()))}t.default=class{constructor(e,t={}){var n;w(this,"config",void 0),w(this,"api",void 0),w(this,"branch",void 0),w(this,"squashMerges",void 0),w(this,"cmsLabelPrefix",void 0),w(this,"mediaFolder",void 0),w(this,"transformImages",void 0),w(this,"gatewayUrl",void 0),w(this,"netlifyLargeMediaURL",void 0),w(this,"backendType",void 0),w(this,"apiUrl",void 0),w(this,"authClient",void 0),w(this,"backend",void 0),w(this,"acceptRoles",void 0),w(this,"tokenPromise",void 0),w(this,"_largeMediaClientPromise",void 0),w(this,"options",void 0),w(this,"requestFunction",(e=>this.tokenPromise().then((t=>u.unsentRequest.withHeaders({Authorization:`Bearer ${t}`},e))).then(u.unsentRequest.performRequest))),this.options=b({proxied:!0,API:null,initialWorkflowStatus:""},t),this.config=e,this.branch=(null===(n=e.backend.branch)||void 0===n?void 0:n.trim())||"master",this.squashMerges=e.backend.squash_merges||!1,this.cmsLabelPrefix=e.backend.cms_label_prefix||"",this.mediaFolder=e.media_folder;const{use_large_media_transforms_in_media_library:r=!0}=e.backend;this.transformImages=r;const i=localStorage.getItem("netlifySiteURL");this.apiUrl=S(e.backend.identity_url||"/.netlify/identity",i),this.gatewayUrl=S(e.backend.gateway_url||"/.netlify/git",i),this.netlifyLargeMediaURL=S(e.backend.large_media_url||"/.netlify/large-media",i);const o=/\/(github|gitlab|bitbucket)\/?$/,a=this.gatewayUrl.match(o);a?(this.backendType=a[1],this.gatewayUrl=this.gatewayUrl.replace(o,"")):this.backendType=null,this.backend=null,m.default.authClient=()=>this.getAuthClient()}isGitBackend(){return!0}async status(){const e=await fetch(x).then((e=>e.json())).then((e=>e.components.filter((e=>k.includes(e.name))).every((e=>"operational"===e.status)))).catch((e=>(console.warn("Failed getting Git Gateway status",e),!0)));let t=!1;var n;return e&&(t=await(null===(n=this.tokenPromise)||void 0===n?void 0:n.call(this).then((e=>!!e)).catch((e=>(console.warn("Failed getting Identity token",e),!1))))||!1),{auth:{status:t},api:{status:e,statusPage:_}}}async getAuthClient(){if(this.authClient)return this.authClient;if(await C,window.netlifyIdentity)this.authClient={logout:()=>{var e;return null===(e=window.netlifyIdentity)||void 0===e?void 0:e.logout()},currentUser:()=>{var e;return null===(e=window.netlifyIdentity)||void 0===e?void 0:e.currentUser()},clearStore:()=>{var e;const t=null===(e=window.netlifyIdentity)||void 0===e?void 0:e.store;t&&(t.user=null,t.modal.page="login",t.saving=!1)}};else{const e=new a.default({APIUrl:this.apiUrl});this.authClient={logout:()=>{const t=e.currentUser();if(t)return t.logout()},currentUser:()=>e.currentUser(),login:e.login.bind(e),clearStore:()=>{}}}return this.authClient}authenticate(e){const t=e;return this.tokenPromise=async()=>{try{const e=t.jwt.bind(t);return await e()}catch(e){throw new u.AccessTokenError(`Failed getting access token: ${e.message}`)}},this.tokenPromise().then((async e=>{if(!this.backendType){const{github_enabled:t,gitlab_enabled:n,bitbucket_enabled:r,roles:i}=await u.unsentRequest.fetchWithTimeout(`${this.gatewayUrl}/settings`,{headers:{Authorization:`Bearer ${e}`}}).then((async e=>{const t=e.headers.get("Content-Type")||"";if(!t.includes("application/json")&&!t.includes("text/json"))throw new u.APIError("Your Git Gateway backend is not returning valid settings. Please make sure it is enabled.",e.status,"Git Gateway");const n=await e.json();if(!e.ok)throw new u.APIError(`Git Gateway Error: ${n.message?n.message:n}`,e.status,"Git Gateway");return n}));this.acceptRoles=i,t?this.backendType="github":n?this.backendType="gitlab":r&&(this.backendType="bitbucket")}if(this.acceptRoles&&this.acceptRoles.length>0){const t=(0,o.default)((0,s.default)(e),"app_metadata.roles",[]);if(!((0,r.default)(t,this.acceptRoles).length>0))throw new Error("You don't have sufficient permissions to access Decap CMS")}const n={name:t.user_metadata.full_name||t.email.split("@").shift(),email:t.email,avatar_url:t.user_metadata.avatar_url,metadata:t.user_metadata},a={apiRoot:`${this.gatewayUrl}/${this.backendType}`,branch:this.branch,tokenPromise:this.tokenPromise,commitAuthor:(0,i.default)(n,["name","email"]),isLargeMedia:e=>this.isLargeMediaFile(e),squashMerges:this.squashMerges,cmsLabelPrefix:this.cmsLabelPrefix,initialWorkflowStatus:this.options.initialWorkflowStatus};if("github"===this.backendType?(this.api=new p.default(a),this.backend=new c.GitHubBackend(this.config,b(b({},this.options),{},{API:this.api}))):"gitlab"===this.backendType?(this.api=new h.default(a),this.backend=new d.GitLabBackend(this.config,b(b({},this.options),{},{API:this.api}))):"bitbucket"===this.backendType&&(this.api=new f.API(b(b({},a),{},{requestFunction:this.requestFunction,hasWriteAccess:async()=>!0})),this.backend=new f.BitbucketBackend(this.config,b(b({},this.options),{},{API:this.api}))),!await this.api.hasWriteAccess())throw new Error("You don't have sufficient permissions to access Decap CMS");return{name:n.name,login:n.email}}))}async restoreUser(){const e=(await this.getAuthClient()).currentUser();return e?this.authenticate(e):Promise.reject()}authComponent(){return m.default}async logout(){const e=await this.getAuthClient();try{e.logout()}catch(t){e.clearStore()}}getToken(){return this.tokenPromise()}async entriesByFolder(e,t,n){return this.backend.entriesByFolder(e,t,n)}allEntriesByFolder(e,t,n,r){return this.backend.allEntriesByFolder(e,t,n,r)}entriesByFiles(e){return this.backend.entriesByFiles(e)}getEntry(e){return this.backend.getEntry(e)}async unpublishedEntryDataFile(e,t,n,r){return this.backend.unpublishedEntryDataFile(e,t,n,r)}async isLargeMediaFile(e){const t=await this.getLargeMediaClient();return t.enabled&&t.matchPath(e)}async unpublishedEntryMediaFile(e,t,n,r){if(await this.isLargeMediaFile(n)){const i=this.backend.getBranch(e,t),{url:o,blob:a}=await this.getLargeMediaDisplayURL({path:n,id:r},i);return{id:r,name:(0,u.basename)(n),path:n,url:o,displayURL:o,file:new File([a],(0,u.basename)(n)),size:a.size}}return this.backend.unpublishedEntryMediaFile(e,t,n,r)}getMedia(e=this.mediaFolder){return this.backend.getMedia(e)}getLargeMediaClient(){return this._largeMediaClientPromise||(this._largeMediaClientPromise=this._getLargeMediaClient()),this._largeMediaClientPromise}_getLargeMediaClient(){const e=this.api.readFile(".lfsconfig").then((e=>l.default.decode(e))).then((({lfs:{url:e}})=>new URL(e))).then((e=>({enabled:e.hostname.endsWith("netlify.com")||e.hostname.endsWith("netlify.app")}))).catch((e=>({enabled:!1,err:e}))),t=this.api.readFile(".gitattributes").then((e=>(0,u.getLargeMediaPatternsFromGitAttributesFile)(e))).then((e=>({err:null,patterns:e}))).catch((e=>e.message.includes("404")?(console.log("This 404 was expected and handled appropriately."),{err:null,patterns:[]}):{err:e,patterns:[]}));return Promise.all([e,t]).then((([{enabled:e},{patterns:t,err:n}])=>{const r=e&&!n;return e&&n&&console.error(n),(0,g.getClient)({enabled:r,rootURL:this.netlifyLargeMediaURL,makeAuthorizedRequest:this.requestFunction,patterns:t,transformImages:!!this.transformImages&&{nf_resize:"fit",w:560,h:320}})}))}async getLargeMediaDisplayURL({path:e,id:t},n=this.branch){const r=await(0,u.entriesByFiles)([{path:e,id:t}],((e,t,{parseText:r})=>this.api.readFile(e,t,{branch:n,parseText:r})),this.api.readFileMetadata.bind(this.api),"Git-Gateway"),i=r[0],o=(0,u.parsePointerFile)(i.data);if(!o.sha)return console.warn(`Failed parsing pointer file ${e}`),{url:e,blob:new Blob};const a=await this.getLargeMediaClient(),{url:s,blob:l}=await a.getDownloadURL(o);return{url:s,blob:l}}async getMediaDisplayURL(e){const{path:t,id:n}=e;if(await this.isLargeMediaFile(t)){const{url:e}=await this.getLargeMediaDisplayURL({path:t,id:n});return e}return"string"==typeof e?e:await this.backend.getMediaDisplayURL(e)}async getMediaFile(e){if(await this.isLargeMediaFile(e)){const{url:t,blob:n}=await this.getLargeMediaDisplayURL({path:e,id:null});return{id:t,name:(0,u.basename)(e),path:e,url:t,displayURL:t,file:new File([n],(0,u.basename)(e)),size:n.size}}return this.backend.getMediaFile(e)}async persistEntry(e,t){const n=await this.getLargeMediaClient();if(n.enabled){const r=await(0,u.getLargeMediaFilteredMediaFiles)(n,e.assets);return this.backend.persistEntry(b(b({},e),{},{assets:r}),t)}return this.backend.persistEntry(e,t)}async persistMedia(e,t){const{fileObj:n,path:r}=e,i=n?URL.createObjectURL(n):"",o=await this.getLargeMediaClient(),a=r.startsWith("/")?r.slice(1):r;if(await this.isLargeMediaFile(a)){const e=await(0,u.getPointerFileForMediaFileObj)(o,n,r);return b(b({},await this.backend.persistMedia(e,t)),{},{displayURL:i})}return await this.backend.persistMedia(e,t)}deleteFiles(e,t){return this.backend.deleteFiles(e,t)}async getDeployPreview(e,t){let n=await this.backend.getDeployPreview(e,t);if(!n)try{const r=new URL(localStorage.getItem("netlifySiteURL")||"").hostname,i=await T(r),o=await T(`${i.id}/deploys?per_page=100`);if(o.length>0){const r=await this.api.getUnpublishedEntrySha(e,t),i=o.find((e=>e.commit_ref===r));i&&(n={status:"ready"===i.state?u.PreviewState.Success:u.PreviewState.Other,url:i.deploy_url})}}catch(e){}return n}unpublishedEntries(){return this.backend.unpublishedEntries()}unpublishedEntry({id:e,collection:t,slug:n}){return this.backend.unpublishedEntry({id:e,collection:t,slug:n})}updateUnpublishedEntryStatus(e,t,n){return this.backend.updateUnpublishedEntryStatus(e,t,n)}deleteUnpublishedEntry(e,t){return this.backend.deleteUnpublishedEntry(e,t)}publishUnpublishedEntry(e,t){return this.backend.publishUnpublishedEntry(e,t)}traverseCursor(e,t){return this.backend.traverseCursor(e,t)}}},12318:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return i.default}}),t.DecapCmsBackendGitGateway=void 0,Object.defineProperty(t,"GitGatewayBackend",{enumerable:!0,get:function(){return r.default}});var r=o(n(77188)),i=o(n(17930));function o(e){return e&&e.__esModule?e:{default:e}}t.DecapCmsBackendGitGateway={GitGatewayBackend:r.default,AuthenticationPage:i.default}},71213:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getClient=function(e){return(0,s.default)([Object.keys,(0,o.default)((t=>{return[t,(n=e,r=b[t],(...e)=>r(n,...e))];var n,r})),a.default,t=>p(p({},t),{},{patterns:e.patterns,enabled:e.enabled})])(b)},t.matchPath=h;var r=d(n(45455)),i=d(n(97030)),o=d(n(65159)),a=d(n(23162)),s=d(n(10094)),l=d(n(77339)),u=n(33806);const c=["sha"];function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t(0,l.default)(t,e,{matchBase:!0})))}const m={Accept:"application/vnd.git-lfs+json","Content-Type":"application/vnd.git-lfs+json"};async function g({rootURL:e,makeAuthorizedRequest:t},{sha:n,size:r}){const i=await t({url:`${e}/verify`,method:"POST",headers:m,body:JSON.stringify({oid:n,size:r})});return!!i.ok||404!==i.status&&void 0}function v(e){return{operation:"upload",transfers:["basic"],objects:e.map((e=>{let{sha:t}=e;return p(p({},function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,c)),{},{oid:t})}))}}async function y({rootURL:e,makeAuthorizedRequest:t},n){const r=await t({url:`${e}/objects/batch`,method:"POST",headers:m,body:JSON.stringify(v(n))}),{objects:i}=await r.json();return i.map((e=>{if(e.error)throw new Error(e.error.message);return e.actions.upload.href}))}const b={resourceExists:g,getResourceUploadURLs:y,getDownloadURL:async function({rootURL:e,transformImages:t,makeAuthorizedRequest:n},{sha:o}){try{const a=function(e){if((0,i.default)(e)&&!(0,r.default)(e)){const{nf_resize:t,w:n,h:r}=e;return`?nf_resize=${t}&w=${n}&h=${r}`}return""}(t),s=n(`${e}/origin/${o}${a}`),[l,u]=await Promise.all([s,a?n(`${e}/origin/${o}`):s]);if(!l.ok){const e=await l.json();throw new Error(`Failed getting large media for sha '${o}': '${e.code} - ${e.msg}'`)}const c=await l.blob();return{url:URL.createObjectURL(c),blob:a?await u.blob():c}}catch(e){return console.error(e),{url:"",blob:new Blob}}},uploadResource:async function(e,{sha:t,size:n},r){if(await g(e,{sha:t,size:n}))return t;const[i]=await y(e,[{sha:t,size:n}]);return await function(e,t){return u.unsentRequest.fetchWithTimeout(e,{method:"PUT",body:t})}(i,r),t},matchPath:h}},66141:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.API_NAME=void 0;var r=d(n(87613)),i=d(n(56974)),o=d(n(83465)),a=d(n(36346)),s=d(n(5648)),l=d(n(93433)),u=n(95978),c=n(33806);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;te.ok?t:Promise.reject(t)))}handleRequestError(e,t){throw new c.APIError(e.message,t,m)}buildRequest(e){return e}async request(e,t={},n=(e=>this.parseResponse(e))){t=p({cache:"no-cache"},t);const r=await this.requestHeaders(t.headers||{}),i=this.urlFor(e,t);let o=500;try{const e=c.unsentRequest.fromFetchArguments(i,p(p({},t),{},{headers:r})),a=await(0,c.requestWithBackoff)(this,e);return o=a.status,await n(a)}catch(e){return this.handleRequestError(e,o)}}nextUrlProcessor(){return e=>e}async requestAllPages(e,t={}){t=p({cache:"no-cache"},t);const n=await this.requestHeaders(t.headers||{}),r=this.urlFor(e,t),i=await(0,c.getAllResponses)(r,p(p({},t),{},{headers:n}),"next",this.nextUrlProcessor()),o=await Promise.all(i.map((e=>this.parseResponse(e))));return[].concat(...o)}generateContentKey(e,t){return(0,c.generateContentKey)(e,t)}parseContentKey(e){return(0,c.parseContentKey)(e)}async readFile(e,t,{branch:n=this.branch,repoURL:r=this.repoURL,parseText:i=!0}={}){return t||(t=await this.getFileSha(e,{repoURL:r,branch:n})),await this.fetchBlobContent({sha:t,repoURL:r,parseText:i})}async readFileMetadata(e,t){return await(0,c.readFileMetadata)(t,(async()=>{try{const t=await this.request(`${this.originRepoURL}/commits`,{params:{path:e,sha:this.branch,stat:"false"}}),{commit:n}=t[0];return{author:n.author.name||n.author.email,updatedOn:n.author.date}}catch(e){return{author:"",updatedOn:""}}}),c.localForage)}async fetchBlobContent({sha:e,repoURL:t,parseText:n}){const r=await this.request(`${t}/git/blobs/${e}`,{cache:"force-cache"});if(n)return u.Base64.decode(r.content);{const e=u.Base64.atob(r.content),t=new Uint8Array(e.length);for(let n=0;n1?{recursive:1}:{}})).tree.filter((e=>(!!i||"blob"===e.type)&&decodeURIComponent(e.path).split("/").length<=r)).map((e=>({type:e.type,id:e.sha,name:(0,c.basename)(e.path),path:`${o}/${e.path}`,size:e.size})))}catch(e){if(e&&404===e.status)return console.info("[StaticCMS] This 404 was expected and handled appropriately."),[];throw e}}async persistFiles(e,t,n){const r=t.concat(e),i=await this.getChangeFileOperations(r,this.branch);return this.changeFiles(i,n)}async changeFiles(e,t){return await this.request(`${this.repoURL}/contents`,{method:"POST",body:JSON.stringify({branch:this.branch,files:e,message:t.commitMessage})})}async getChangeFileOperations(e,t){return await Promise.all(e.map((async e=>{const n=await(0,a.default)(e,"toBase64",(0,o.default)(this.toBase64,e.raw));let r,i,s,u=(0,l.default)(e.path,"/");try{r=await this.getFileSha(e.path,{branch:t}),i=g.UPDATE,s=e.newPath&&u,u=e.newPath?(0,l.default)(e.newPath,"/"):u}catch{r=void 0,i=g.CREATE}return{operation:i,content:n,path:u,from_path:s,sha:r}})))}async getFileSha(e,{repoURL:t=this.repoURL,branch:n=this.branch}={}){const o=e.split("/"),a=(0,i.default)(o),s=(0,r.default)(o).join("/"),l=`${t}/git/trees/${n}:${encodeURIComponent(s)}`,u=(await this.request(l)).tree.find((e=>e.path===a));if(u)return u.sha;throw new c.APIError("Not Found",404,m)}async deleteFiles(e,t){const n=await Promise.all(e.map((async e=>{const t=await this.getFileSha(e);return{operation:g.DELETE,path:e,sha:t}})));this.changeFiles(n,{commitMessage:t})}toBase64(e){return Promise.resolve(u.Base64.encode(e))}}t.default=v,h(v,"DEFAULT_COMMIT_MESSAGE","Automatically generated by Static CMS")},29961:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=u(n(2784)),o=u(n(13980)),a=n(76320),s=n(30762),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=(0,r.default)(s.Icon,{target:"es1j68m0",label:"LoginButtonIcon"})({name:"1gnqu05",styles:"margin-right:18px"});class f extends i.default.Component{constructor(...e){super(...e),c(this,"state",{}),c(this,"handleLogin",(e=>{e.preventDefault(),this.auth.authenticate({scope:"repository"},((e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)}))}))}componentDidMount(){const{base_url:e="https://try.gitea.io",app_id:t=""}=this.props.config.backend;this.auth=new a.PkceAuthenticator({base_url:e,auth_endpoint:"login/oauth/authorize",app_id:t,auth_token_endpoint:"login/oauth/access_token",auth_token_endpoint_content_type:"application/json; charset=utf-8"}),this.auth.completeAuth(((e,t)=>{e?this.setState({loginError:e.toString()}):t&&this.props.onLogin(t)}))}render(){const{inProgress:e,config:t,t:n}=this.props;return(0,l.jsx)(s.AuthenticationPage,{onLogin:this.handleLogin,loginDisabled:e,loginErrorMessage:this.state.loginError,logoUrl:t.logo_url,siteUrl:t.site_url,renderButtonContent:()=>(0,l.jsx)(i.default.Fragment,null,(0,l.jsx)(d,{type:"gitea"})," ",n(e?"auth.loggingIn":"auth.loginWithGitea")),t:n})}}t.default=f,c(f,"propTypes",{inProgress:o.default.bool,config:o.default.object.isRequired,onLogin:o.default.func.isRequired,t:o.default.func.isRequired})},83972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(13856),i=c(n(93433)),o=c(n(63252)),a=n(33806),s=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(66141)),l=c(n(29961));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const{fetchWithTimeout:p}=a.unsentRequest;t.default=class{constructor(e,t={}){var n;if(f(this,"lock",void 0),f(this,"api",void 0),f(this,"options",void 0),f(this,"originRepo",void 0),f(this,"repo",void 0),f(this,"branch",void 0),f(this,"apiRoot",void 0),f(this,"mediaFolder",void 0),f(this,"token",void 0),f(this,"_currentUserPromise",void 0),f(this,"_userIsOriginMaintainerPromises",void 0),f(this,"_mediaDisplayURLSem",void 0),f(this,"getCursorAndFiles",((e,t)=>{const n=e.length,r=Math.ceil(e.length/20),i=[];return t>1&&(i.push("prev"),i.push("first")),t!!e)).catch((e=>(console.warn("[StaticCMS] Failed getting Gitea user",e),!1))))||!1},api:{status:!0,statusPage:""}}}authComponent(){return l.default}restoreUser(e){return this.authenticate(e)}async currentUser({token:e}){return this._currentUserPromise||(this._currentUserPromise=p(`${this.apiRoot}/user`,{headers:{Authorization:`token ${e}`}}).then((e=>e.json()))),this._currentUserPromise}async userIsOriginMaintainer({username:e,token:t}){const n=e||(await this.currentUser({token:t})).login;return this._userIsOriginMaintainerPromises=this._userIsOriginMaintainerPromises||{},this._userIsOriginMaintainerPromises[n]||(this._userIsOriginMaintainerPromises[n]=p(`${this.apiRoot}/repos/${this.originRepo}/collaborators/${n}/permission`,{headers:{Authorization:`token ${t}`}}).then((e=>e.json())).then((({permission:e})=>"admin"===e||"write"===e))),this._userIsOriginMaintainerPromises[n]}async authenticate(e){this.token=e.token;const t=s.default;this.api=new t({token:this.token,branch:this.branch,repo:this.repo,originRepo:this.originRepo,apiRoot:this.apiRoot});const n=await this.api.user();if(!await this.api.hasWriteAccess().catch((e=>{throw e.message=r.stripIndent` + `,e})))throw new Error("Your BitBucket user account does not have access to this repo.");const t=await this.api.user();return h(h({},t),{},{name:t.display_name,login:t.username,token:e.token,avatar_url:t.links.avatar.href,refresh_token:e.refresh_token})}getRefreshedAccessToken(){if("implicit"===this.authType)throw new a.AccessTokenError("Can't refresh access token when using implicit auth");if(this.refreshedTokenPromise)return this.refreshedTokenPromise;if(!this.authenticator){const e={base_url:this.baseUrl,site_id:this.siteId};this.authenticator=new s.NetlifyAuthenticator(e)}return this.refreshedTokenPromise=this.authenticator.refresh({provider:"bitbucket",refresh_token:this.refreshToken}).then((({token:e,refresh_token:t})=>(this.token=e,this.refreshToken=t,this.refreshedTokenPromise=void 0,this.updateUserCredentials({token:e,refresh_token:t}),e))),this.refreshedTokenPromise}logout(){this.token=null}getToken(){return this.refreshedTokenPromise?this.refreshedTokenPromise:Promise.resolve(this.token)}async entriesByFolder(e,t,n){let r;const i=await this.api.defaultBranchCommitSha(),o=await(0,a.entriesByFolder)((()=>this.api.listFiles(e,n,20,this.branch).then((({entries:e,cursor:n})=>(r=n.mergeMeta({extension:t}),e.filter((e=>(0,a.filterByExtension)(e,t))))))),((e,t)=>this.api.readFile(e,t,{head:i})),this.api.readFileMetadata.bind(this.api),u.API_NAME);return o[a.CURSOR_COMPATIBILITY_SYMBOL]=r,o}async listAllFiles(e,t,n){return(await this.api.listAllFiles(e,n,this.branch)).filter((e=>(0,a.filterByExtension)(e,t)))}async allEntriesByFolder(e,t,n){const r=await this.api.defaultBranchCommitSha();return await(0,a.allEntriesByFolder)({listAllFiles:()=>this.listAllFiles(e,t,n),readFile:(e,t)=>this.api.readFile(e,t,{head:r}),readFileMetadata:this.api.readFileMetadata.bind(this.api),apiName:u.API_NAME,branch:this.branch,localForage:a.localForage,folder:e,extension:t,depth:n,getDefaultBranch:()=>Promise.resolve({name:this.branch,sha:r}),isShaExistsInBranch:this.api.isShaExistsInBranch.bind(this.api),getDifferences:(e,t)=>this.api.getDifferences(e,t),getFileId:e=>Promise.resolve(this.api.getFileId(r,e)),filterFile:e=>(0,a.filterByExtension)(e,t)})}async entriesByFiles(e){const t=await this.api.defaultBranchCommitSha();return(0,a.entriesByFiles)(e,((e,n)=>this.api.readFile(e,n,{head:t})),this.api.readFileMetadata.bind(this.api),u.API_NAME)}getEntry(e){return this.api.readFile(e).then((t=>({file:{path:e,id:null},data:t})))}getMedia(e=this.mediaFolder){return this.api.listAllFiles(e,1,this.branch).then((e=>e.map((({id:e,name:t,path:n})=>({id:e,name:t,path:n,displayURL:{id:e,path:n}})))))}getLargeMediaClient(){return this._largeMediaClientPromise||(this._largeMediaClientPromise=(async()=>{const e=await this.api.readFile(".gitattributes").then((e=>(0,a.getLargeMediaPatternsFromGitAttributesFile)(e))).catch((e=>(404===e.status?console.log("This 404 was expected and handled appropriately."):console.error(e),[])));return new c.GitLfsClient(!!(this.largeMediaURL&&e.length>0),this.largeMediaURL,e,this.requestFunction)})()),this._largeMediaClientPromise}getMediaDisplayURL(e){return this._mediaDisplayURLSem=this._mediaDisplayURLSem||(0,i.default)(10),(0,a.getMediaDisplayURL)(e,this.api.readFile.bind(this.api),this._mediaDisplayURLSem)}async getMediaFile(e){const t=(0,a.basename)(e),n=await(0,a.getMediaAsBlob)(e,null,this.api.readFile.bind(this.api)),r=(0,a.blobToFileObj)(t,n),i=URL.createObjectURL(r);return{id:await(0,a.getBlobSHA)(r),displayURL:i,path:e,name:t,size:r.size,file:r,url:i}}async persistEntry(e,t){const n=await this.getLargeMediaClient();return(0,a.runWithLock)(this.lock,(async()=>this.api.persistFiles(e.dataFiles,n.enabled?await(0,a.getLargeMediaFilteredMediaFiles)(n,e.assets):e.assets,t)),"Failed to acquire persist entry lock")}async persistMedia(e,t){const{fileObj:n,path:r}=e,i=n?URL.createObjectURL(n):"",o=await this.getLargeMediaClient(),s=r.startsWith("/")?r.slice(1):r;if(!o.enabled||!o.matchPath(s))return this._persistMedia(e,t);const l=await(0,a.getPointerFileForMediaFileObj)(o,n,r);return h(h({},await this._persistMedia(l,t)),{},{displayURL:i})}async _persistMedia(e,t){const n=e.fileObj,[i]=await Promise.all([(0,a.getBlobSHA)(n),this.api.persistFiles([],[e],t)]),o=URL.createObjectURL(n);return{displayURL:o,path:(0,r.default)(e.path,"/k"),name:n.name,size:n.size,id:i,file:n,url:o}}deleteFiles(e,t){return this.api.deleteFiles(e,t)}traverseCursor(e,t){return this.api.traverseCursor(e,t).then((async({entries:t,cursor:n})=>{var r;const i=null===(r=e.meta)||void 0===r?void 0:r.get("extension");i&&(t=t.filter((e=>(0,a.filterByExtension)(e,i))),n=n.mergeMeta({extension:i}));const o=await this.api.defaultBranchCommitSha();return{entries:await(0,a.entriesByFiles)(t,((e,t)=>this.api.readFile(e,t,{head:o})),this.api.readFileMetadata.bind(this.api),u.API_NAME),cursor:n}}))}async loadMediaFile(e,t,{branch:n}){const r=await(0,a.getMediaAsBlob)(e,t,(async(e,t,{parseText:r})=>await this.api.readFile(e,t,{branch:n,parseText:r}))),i=(0,a.basename)(e),o=(0,a.blobToFileObj)(i,r);return{id:e,displayURL:URL.createObjectURL(o),path:e,name:i,size:o.size,file:o}}async unpublishedEntries(){return await(0,a.unpublishedEntries)((()=>this.api.listUnpublishedBranches().then((e=>e.map((e=>(0,a.contentKeyFromBranch)(e)))))))}async unpublishedEntry({id:e,collection:t,slug:n}){if(e)return await this.api.retrieveUnpublishedEntryData(e);if(t&&n){const e=(0,a.generateContentKey)(t,n);return await this.api.retrieveUnpublishedEntryData(e)}throw new Error("Missing unpublished entry id or collection and slug")}getBranch(e,t){const n=(0,a.generateContentKey)(e,t);return(0,a.branchFromContentKey)(n)}async unpublishedEntryDataFile(e,t,n,r){const i=this.getBranch(e,t);return await this.api.readFile(n,r,{branch:i})}async unpublishedEntryMediaFile(e,t,n,r){const i=this.getBranch(e,t);return await this.loadMediaFile(n,r,{branch:i})}async updateUnpublishedEntryStatus(e,t,n){return(0,a.runWithLock)(this.lock,(()=>this.api.updateUnpublishedEntryStatus(e,t,n)),"Failed to acquire update entry status lock")}async deleteUnpublishedEntry(e,t){return(0,a.runWithLock)(this.lock,(()=>this.api.deleteUnpublishedEntry(e,t)),"Failed to acquire delete entry lock")}async publishUnpublishedEntry(e,t){return(0,a.runWithLock)(this.lock,(()=>this.api.publishUnpublishedEntry(e,t)),"Failed to acquire publish entry lock")}async getDeployPreview(e,t){try{const n=await this.api.getStatuses(e,t),r=(0,a.getPreviewStatus)(n,this.previewContext);if(r){const{target_url:e,state:t}=r;return{url:e,status:t}}return null}catch(e){return null}}}},17134:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"API",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"BitbucketBackend",{enumerable:!0,get:function(){return r.default}}),t.DecapCmsBackendBitbucket=void 0;var r=a(n(28521)),i=a(n(84280)),o=a(n(8387));function a(e){return e&&e.__esModule?e:{default:e}}t.DecapCmsBackendBitbucket={BitbucketBackend:r.default,API:i.default,AuthenticationPage:o.default}},17930:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=u(n(83465)),o=u(n(13980)),a=u(n(2784)),s=n(30762),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t{v&&v.handleIdentityLogin(e)})),window.netlifyIdentity.on("logout",(()=>{v&&v.handleIdentityLogout()})),window.netlifyIdentity.on("error",(e=>{v&&v.handleIdentityError(e)})));class y extends a.default.Component{constructor(e){super(e),f(this,"handleIdentityLogin",(e=>{this.props.onLogin(e),window.netlifyIdentity.close()})),f(this,"handleIdentityLogout",(()=>{window.netlifyIdentity.open()})),f(this,"handleIdentityError",(e=>{var t;null!=e&&null!==(t=e.message)&&void 0!==t&&t.match(/^Failed to load settings from.+\.netlify\/identity$/)&&(window.netlifyIdentity.close(),this.setState({errors:{identity:this.props.t("auth.errors.identitySettings")}}))})),f(this,"handleIdentity",(()=>{const e=window.netlifyIdentity.currentUser();e?this.props.onLogin(e):window.netlifyIdentity.open()})),f(this,"state",{email:"",password:"",errors:{}}),f(this,"handleChange",((e,t)=>{this.setState(d(d({},this.state),{},{[e]:t.target.value}))})),f(this,"handleLogin",(async e=>{e.preventDefault();const{email:t,password:n}=this.state,{t:r}=this.props,i={};if(t||(i.email=r("auth.errors.email")),n||(i.password=r("auth.errors.password")),Object.keys(i).length>0)this.setState({errors:i});else try{const e=await y.authClient(),t=await e.login(this.state.email,this.state.password,!0);this.props.onLogin(t)}catch(e){this.setState({errors:{server:e.description||e.msg||e},loggingIn:!1})}})),v=this}componentDidMount(){!this.loggedIn&&window.netlifyIdentity&&window.netlifyIdentity.currentUser()&&(this.props.onLogin(window.netlifyIdentity.currentUser()),window.netlifyIdentity.close())}componentWillUnmount(){v=null}render(){const{errors:e}=this.state,{error:t,inProgress:n,config:r,t:o}=this.props;return window.netlifyIdentity?e.identity?(0,l.jsx)(s.AuthenticationPage,{logoUrl:r.logo_url,siteUrl:r.site_url,onLogin:this.handleIdentity,renderPageContent:()=>(0,l.jsx)("a",{href:"https://docs.netlify.com/visitor-access/git-gateway/#setup-and-settings",target:"_blank",rel:"noopener noreferrer"},e.identity),t:o}):(0,l.jsx)(s.AuthenticationPage,{logoUrl:r.logo_url,siteUrl:r.site_url,onLogin:this.handleIdentity,renderButtonContent:()=>o("auth.loginWithNetlifyIdentity"),t:o}):(0,l.jsx)(s.AuthenticationPage,{logoUrl:r.logo_url,siteUrl:r.site_url,renderPageContent:()=>(0,l.jsx)(h,{onSubmit:this.handleLogin},t?(0,l.jsx)(g,null,t):null,e.server?(0,l.jsx)(g,null,String(e.server)):null,(0,l.jsx)(g,null,e.email||null),(0,l.jsx)(m,{type:"text",name:"email",placeholder:"Email",value:this.state.email,onChange:(0,i.default)(this.handleChange,"email")}),(0,l.jsx)(g,null,e.password||null),(0,l.jsx)(m,{type:"password",name:"password",placeholder:"Password",value:this.state.password,onChange:(0,i.default)(this.handleChange,"password")}),(0,l.jsx)(p,{disabled:n},o(n?"auth.loggingIn":"auth.login"))),t:o})}}t.default=y,f(y,"authClient",void 0),f(y,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool.isRequired,error:o.default.node,config:o.default.object.isRequired,t:o.default.func.isRequired})},25299:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(48638),i=n(33806);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;tPromise.reject("Never used")},e)),s(this,"tokenPromise",void 0),s(this,"commitAuthor",void 0),s(this,"isLargeMedia",void 0),this.apiRoot=e.apiRoot,this.tokenPromise=e.tokenPromise,this.commitAuthor=e.commitAuthor,this.isLargeMedia=e.isLargeMedia,this.repoURL="",this.originRepoURL=""}hasWriteAccess(){return this.getDefaultBranch().then((()=>!0)).catch((e=>{if(401===e.status){if("Bad credentials"===e.message)throw new i.APIError("Git Gateway Error: Please ask your site administrator to reissue the Git Gateway token.",e.status,"Git Gateway");return!1}throw 404!==e.status||void 0!==e.message&&"Unable to locate site configuration"!==e.message?(console.error("Problem fetching repo data from Git Gateway"),e):new i.APIError("Git Gateway Error: Please make sure Git Gateway is enabled on your site.",e.status,"Git Gateway")}))}requestHeaders(e={}){return this.tokenPromise().then((t=>a({Authorization:`Bearer ${t}`,"Content-Type":"application/json; charset=utf-8"},e)))}handleRequestError(e,t){throw new i.APIError(e.message||e.msg,t,"Git Gateway")}user(){return Promise.resolve(a({login:""},this.commitAuthor))}async getHeadReference(e){if(!this.repoOwner){const e=(await this.getDefaultBranch())._links.self,t=new RegExp("https?://.+?/repos/(.+?)/"),n=e.match(t);this.repoOwner=n?n[1]:""}return super.getHeadReference(e)}commit(e,t){const n={message:e,tree:t.sha,parents:t.parentSha?[t.parentSha]:[]};return this.commitAuthor&&(n.author=a(a({},this.commitAuthor),{},{date:(new Date).toISOString()})),this.request("/git/commits",{method:"POST",body:JSON.stringify(n)})}nextUrlProcessor(){return e=>e.replace(/^(?:[a-z]+:\/\/.+?\/.+?\/.+?\/)/,`${this.apiRoot}/`)}async diffFromFile(e){const t=await super.diffFromFile(e);return a(a({},t),{},{binary:t.binary||await this.isLargeMedia(e.filename)})}}t.default=l},76749:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(34554),i=n(33806);function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class a extends r.API{constructor(e){super(e),o(this,"tokenPromise",void 0),o(this,"withAuthorizationHeaders",(async e=>{const t=await this.tokenPromise();return i.unsentRequest.withHeaders({Authorization:`Bearer ${t}`},e)})),o(this,"hasWriteAccess",(()=>Promise.resolve(!0))),this.tokenPromise=e.tokenPromise,this.commitAuthor=e.commitAuthor,this.repoURL=""}}t.default=a},77188:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=v(n(30898)),i=v(n(13888)),o=v(n(72579)),a=v(n(28005)),s=v(n(51949)),l=v(n(52939)),u=n(33806),c=n(48638),d=n(34554),f=n(17134),p=v(n(25299)),h=v(n(76749)),m=v(n(17930)),g=n(71213);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t{var n;null===(n=window.netlifyIdentity)||void 0===n||n.on("init",(()=>{e=!0,t()}))})),new Promise((e=>setTimeout(e,2500))).then((()=>{var t;e||(console.log("Manually initializing identity widget"),null===(t=window.netlifyIdentity)||void 0===t||t.init())}))])}async function A(e){return await fetch(`https://api.netlify.com/api/v1/sites/${e}`).then((e=>e.json()))}t.default=class{constructor(e,t={}){var n;w(this,"config",void 0),w(this,"api",void 0),w(this,"branch",void 0),w(this,"squashMerges",void 0),w(this,"cmsLabelPrefix",void 0),w(this,"mediaFolder",void 0),w(this,"transformImages",void 0),w(this,"gatewayUrl",void 0),w(this,"netlifyLargeMediaURL",void 0),w(this,"backendType",void 0),w(this,"apiUrl",void 0),w(this,"authClient",void 0),w(this,"backend",void 0),w(this,"acceptRoles",void 0),w(this,"tokenPromise",void 0),w(this,"_largeMediaClientPromise",void 0),w(this,"options",void 0),w(this,"requestFunction",(e=>this.tokenPromise().then((t=>u.unsentRequest.withHeaders({Authorization:`Bearer ${t}`},e))).then(u.unsentRequest.performRequest))),this.options=b({proxied:!0,API:null,initialWorkflowStatus:""},t),this.config=e,this.branch=(null===(n=e.backend.branch)||void 0===n?void 0:n.trim())||"master",this.squashMerges=e.backend.squash_merges||!1,this.cmsLabelPrefix=e.backend.cms_label_prefix||"",this.mediaFolder=e.media_folder;const{use_large_media_transforms_in_media_library:r=!0}=e.backend;this.transformImages=r;const i=localStorage.getItem("netlifySiteURL");this.apiUrl=C(e.backend.identity_url||"/.netlify/identity",i),this.gatewayUrl=C(e.backend.gateway_url||"/.netlify/git",i),this.netlifyLargeMediaURL=C(e.backend.large_media_url||"/.netlify/large-media",i);const o=/\/(github|gitlab|bitbucket)\/?$/,a=this.gatewayUrl.match(o);a?(this.backendType=a[1],this.gatewayUrl=this.gatewayUrl.replace(o,"")):this.backendType=null,this.backend=null,m.default.authClient=()=>this.getAuthClient()}isGitBackend(){return!0}async status(){const e=await fetch(x).then((e=>e.json())).then((e=>e.components.filter((e=>k.includes(e.name))).every((e=>"operational"===e.status)))).catch((e=>(console.warn("Failed getting Git Gateway status",e),!0)));let t=!1;var n;return e&&(t=await(null===(n=this.tokenPromise)||void 0===n?void 0:n.call(this).then((e=>!!e)).catch((e=>(console.warn("Failed getting Identity token",e),!1))))||!1),{auth:{status:t},api:{status:e,statusPage:_}}}async getAuthClient(){if(this.authClient)return this.authClient;if(await S,window.netlifyIdentity)this.authClient={logout:()=>{var e;return null===(e=window.netlifyIdentity)||void 0===e?void 0:e.logout()},currentUser:()=>{var e;return null===(e=window.netlifyIdentity)||void 0===e?void 0:e.currentUser()},clearStore:()=>{var e;const t=null===(e=window.netlifyIdentity)||void 0===e?void 0:e.store;t&&(t.user=null,t.modal.page="login",t.saving=!1)}};else{const e=new a.default({APIUrl:this.apiUrl});this.authClient={logout:()=>{const t=e.currentUser();if(t)return t.logout()},currentUser:()=>e.currentUser(),login:e.login.bind(e),clearStore:()=>{}}}return this.authClient}authenticate(e){const t=e;return this.tokenPromise=async()=>{try{const e=t.jwt.bind(t);return await e()}catch(e){throw new u.AccessTokenError(`Failed getting access token: ${e.message}`)}},this.tokenPromise().then((async e=>{if(!this.backendType){const{github_enabled:t,gitlab_enabled:n,bitbucket_enabled:r,roles:i}=await u.unsentRequest.fetchWithTimeout(`${this.gatewayUrl}/settings`,{headers:{Authorization:`Bearer ${e}`}}).then((async e=>{const t=e.headers.get("Content-Type")||"";if(!t.includes("application/json")&&!t.includes("text/json"))throw new u.APIError("Your Git Gateway backend is not returning valid settings. Please make sure it is enabled.",e.status,"Git Gateway");const n=await e.json();if(!e.ok)throw new u.APIError(`Git Gateway Error: ${n.message?n.message:n}`,e.status,"Git Gateway");return n}));this.acceptRoles=i,t?this.backendType="github":n?this.backendType="gitlab":r&&(this.backendType="bitbucket")}if(this.acceptRoles&&this.acceptRoles.length>0){const t=(0,o.default)((0,s.default)(e),"app_metadata.roles",[]);if(!((0,r.default)(t,this.acceptRoles).length>0))throw new Error("You don't have sufficient permissions to access Decap CMS")}const n={name:t.user_metadata.full_name||t.email.split("@").shift(),email:t.email,avatar_url:t.user_metadata.avatar_url,metadata:t.user_metadata},a={apiRoot:`${this.gatewayUrl}/${this.backendType}`,branch:this.branch,tokenPromise:this.tokenPromise,commitAuthor:(0,i.default)(n,["name","email"]),isLargeMedia:e=>this.isLargeMediaFile(e),squashMerges:this.squashMerges,cmsLabelPrefix:this.cmsLabelPrefix,initialWorkflowStatus:this.options.initialWorkflowStatus};if("github"===this.backendType?(this.api=new p.default(a),this.backend=new c.GitHubBackend(this.config,b(b({},this.options),{},{API:this.api}))):"gitlab"===this.backendType?(this.api=new h.default(a),this.backend=new d.GitLabBackend(this.config,b(b({},this.options),{},{API:this.api}))):"bitbucket"===this.backendType&&(this.api=new f.API(b(b({},a),{},{requestFunction:this.requestFunction,hasWriteAccess:async()=>!0})),this.backend=new f.BitbucketBackend(this.config,b(b({},this.options),{},{API:this.api}))),!await this.api.hasWriteAccess())throw new Error("You don't have sufficient permissions to access Decap CMS");return{name:n.name,login:n.email,avatar_url:n.avatar_url}}))}async restoreUser(){const e=(await this.getAuthClient()).currentUser();return e?this.authenticate(e):Promise.reject()}authComponent(){return m.default}async logout(){const e=await this.getAuthClient();try{e.logout()}catch(t){e.clearStore()}}getToken(){return this.tokenPromise()}async entriesByFolder(e,t,n){return this.backend.entriesByFolder(e,t,n)}allEntriesByFolder(e,t,n,r){return this.backend.allEntriesByFolder(e,t,n,r)}entriesByFiles(e){return this.backend.entriesByFiles(e)}getEntry(e){return this.backend.getEntry(e)}async unpublishedEntryDataFile(e,t,n,r){return this.backend.unpublishedEntryDataFile(e,t,n,r)}async isLargeMediaFile(e){const t=await this.getLargeMediaClient();return t.enabled&&t.matchPath(e)}async unpublishedEntryMediaFile(e,t,n,r){if(await this.isLargeMediaFile(n)){const i=this.backend.getBranch(e,t),{url:o,blob:a}=await this.getLargeMediaDisplayURL({path:n,id:r},i);return{id:r,name:(0,u.basename)(n),path:n,url:o,displayURL:o,file:new File([a],(0,u.basename)(n)),size:a.size}}return this.backend.unpublishedEntryMediaFile(e,t,n,r)}getMedia(e=this.mediaFolder){return this.backend.getMedia(e)}getLargeMediaClient(){return this._largeMediaClientPromise||(this._largeMediaClientPromise=this._getLargeMediaClient()),this._largeMediaClientPromise}_getLargeMediaClient(){const e=this.api.readFile(".lfsconfig").then((e=>l.default.decode(e))).then((({lfs:{url:e}})=>new URL(e))).then((e=>({enabled:e.hostname.endsWith("netlify.com")||e.hostname.endsWith("netlify.app")}))).catch((e=>({enabled:!1,err:e}))),t=this.api.readFile(".gitattributes").then((e=>(0,u.getLargeMediaPatternsFromGitAttributesFile)(e))).then((e=>({err:null,patterns:e}))).catch((e=>e.message.includes("404")?(console.log("This 404 was expected and handled appropriately."),{err:null,patterns:[]}):{err:e,patterns:[]}));return Promise.all([e,t]).then((([{enabled:e},{patterns:t,err:n}])=>{const r=e&&!n;return e&&n&&console.error(n),(0,g.getClient)({enabled:r,rootURL:this.netlifyLargeMediaURL,makeAuthorizedRequest:this.requestFunction,patterns:t,transformImages:!!this.transformImages&&{nf_resize:"fit",w:560,h:320}})}))}async getLargeMediaDisplayURL({path:e,id:t},n=this.branch){const r=await(0,u.entriesByFiles)([{path:e,id:t}],((e,t,{parseText:r})=>this.api.readFile(e,t,{branch:n,parseText:r})),this.api.readFileMetadata.bind(this.api),"Git-Gateway"),i=r[0],o=(0,u.parsePointerFile)(i.data);if(!o.sha)return console.warn(`Failed parsing pointer file ${e}`),{url:e,blob:new Blob};const a=await this.getLargeMediaClient(),{url:s,blob:l}=await a.getDownloadURL(o);return{url:s,blob:l}}async getMediaDisplayURL(e){const{path:t,id:n}=e;if(await this.isLargeMediaFile(t)){const{url:e}=await this.getLargeMediaDisplayURL({path:t,id:n});return e}return"string"==typeof e?e:await this.backend.getMediaDisplayURL(e)}async getMediaFile(e){if(await this.isLargeMediaFile(e)){const{url:t,blob:n}=await this.getLargeMediaDisplayURL({path:e,id:null});return{id:t,name:(0,u.basename)(e),path:e,url:t,displayURL:t,file:new File([n],(0,u.basename)(e)),size:n.size}}return this.backend.getMediaFile(e)}async persistEntry(e,t){const n=await this.getLargeMediaClient();if(n.enabled){const r=await(0,u.getLargeMediaFilteredMediaFiles)(n,e.assets);return this.backend.persistEntry(b(b({},e),{},{assets:r}),t)}return this.backend.persistEntry(e,t)}async persistMedia(e,t){const{fileObj:n,path:r}=e,i=n?URL.createObjectURL(n):"",o=await this.getLargeMediaClient(),a=r.startsWith("/")?r.slice(1):r;if(await this.isLargeMediaFile(a)){const e=await(0,u.getPointerFileForMediaFileObj)(o,n,r);return b(b({},await this.backend.persistMedia(e,t)),{},{displayURL:i})}return await this.backend.persistMedia(e,t)}deleteFiles(e,t){return this.backend.deleteFiles(e,t)}async getDeployPreview(e,t){let n=await this.backend.getDeployPreview(e,t);if(!n)try{const r=new URL(localStorage.getItem("netlifySiteURL")||"").hostname,i=await A(r),o=await A(`${i.id}/deploys?per_page=100`);if(o.length>0){const r=await this.api.getUnpublishedEntrySha(e,t),i=o.find((e=>e.commit_ref===r));i&&(n={status:"ready"===i.state?u.PreviewState.Success:u.PreviewState.Other,url:i.deploy_url})}}catch(e){}return n}unpublishedEntries(){return this.backend.unpublishedEntries()}unpublishedEntry({id:e,collection:t,slug:n}){return this.backend.unpublishedEntry({id:e,collection:t,slug:n})}updateUnpublishedEntryStatus(e,t,n){return this.backend.updateUnpublishedEntryStatus(e,t,n)}deleteUnpublishedEntry(e,t){return this.backend.deleteUnpublishedEntry(e,t)}publishUnpublishedEntry(e,t){return this.backend.publishUnpublishedEntry(e,t)}traverseCursor(e,t){return this.backend.traverseCursor(e,t)}}},12318:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return i.default}}),t.DecapCmsBackendGitGateway=void 0,Object.defineProperty(t,"GitGatewayBackend",{enumerable:!0,get:function(){return r.default}});var r=o(n(77188)),i=o(n(17930));function o(e){return e&&e.__esModule?e:{default:e}}t.DecapCmsBackendGitGateway={GitGatewayBackend:r.default,AuthenticationPage:i.default}},71213:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getClient=function(e){return(0,s.default)([Object.keys,(0,o.default)((t=>{return[t,(n=e,r=b[t],(...e)=>r(n,...e))];var n,r})),a.default,t=>p(p({},t),{},{patterns:e.patterns,enabled:e.enabled})])(b)},t.matchPath=h;var r=d(n(45455)),i=d(n(97030)),o=d(n(65159)),a=d(n(23162)),s=d(n(10094)),l=d(n(77339)),u=n(33806);const c=["sha"];function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t(0,l.default)(t,e,{matchBase:!0})))}const m={Accept:"application/vnd.git-lfs+json","Content-Type":"application/vnd.git-lfs+json"};async function g({rootURL:e,makeAuthorizedRequest:t},{sha:n,size:r}){const i=await t({url:`${e}/verify`,method:"POST",headers:m,body:JSON.stringify({oid:n,size:r})});return!!i.ok||404!==i.status&&void 0}function v(e){return{operation:"upload",transfers:["basic"],objects:e.map((e=>{let{sha:t}=e;return p(p({},function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,c)),{},{oid:t})}))}}async function y({rootURL:e,makeAuthorizedRequest:t},n){const r=await t({url:`${e}/objects/batch`,method:"POST",headers:m,body:JSON.stringify(v(n))}),{objects:i}=await r.json();return i.map((e=>{if(e.error)throw new Error(e.error.message);return e.actions.upload.href}))}const b={resourceExists:g,getResourceUploadURLs:y,getDownloadURL:async function({rootURL:e,transformImages:t,makeAuthorizedRequest:n},{sha:o}){try{const a=function(e){if((0,i.default)(e)&&!(0,r.default)(e)){const{nf_resize:t,w:n,h:r}=e;return`?nf_resize=${t}&w=${n}&h=${r}`}return""}(t),s=n(`${e}/origin/${o}${a}`),[l,u]=await Promise.all([s,a?n(`${e}/origin/${o}`):s]);if(!l.ok){const e=await l.json();throw new Error(`Failed getting large media for sha '${o}': '${e.code} - ${e.msg}'`)}const c=await l.blob();return{url:URL.createObjectURL(c),blob:a?await u.blob():c}}catch(e){return console.error(e),{url:"",blob:new Blob}}},uploadResource:async function(e,{sha:t,size:n},r){if(await g(e,{sha:t,size:n}))return t;const[i]=await y(e,[{sha:t,size:n}]);return await function(e,t){return u.unsentRequest.fetchWithTimeout(e,{method:"PUT",body:t})}(i,r),t},matchPath:h}},66141:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.API_NAME=void 0;var r=d(n(87613)),i=d(n(56974)),o=d(n(83465)),a=d(n(36346)),s=d(n(5648)),l=d(n(93433)),u=n(95978),c=n(33806);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;te.ok?t:Promise.reject(t)))}handleRequestError(e,t){throw new c.APIError(e.message,t,m)}buildRequest(e){return e}async request(e,t={},n=(e=>this.parseResponse(e))){t=p({cache:"no-cache"},t);const r=await this.requestHeaders(t.headers||{}),i=this.urlFor(e,t);let o=500;try{const e=c.unsentRequest.fromFetchArguments(i,p(p({},t),{},{headers:r})),a=await(0,c.requestWithBackoff)(this,e);return o=a.status,await n(a)}catch(e){return this.handleRequestError(e,o)}}nextUrlProcessor(){return e=>e}async requestAllPages(e,t={}){t=p({cache:"no-cache"},t);const n=await this.requestHeaders(t.headers||{}),r=this.urlFor(e,t),i=await(0,c.getAllResponses)(r,p(p({},t),{},{headers:n}),"next",this.nextUrlProcessor()),o=await Promise.all(i.map((e=>this.parseResponse(e))));return[].concat(...o)}generateContentKey(e,t){return(0,c.generateContentKey)(e,t)}parseContentKey(e){return(0,c.parseContentKey)(e)}async readFile(e,t,{branch:n=this.branch,repoURL:r=this.repoURL,parseText:i=!0}={}){return t||(t=await this.getFileSha(e,{repoURL:r,branch:n})),await this.fetchBlobContent({sha:t,repoURL:r,parseText:i})}async readFileMetadata(e,t){return await(0,c.readFileMetadata)(t,(async()=>{try{const t=await this.request(`${this.originRepoURL}/commits`,{params:{path:e,sha:this.branch,stat:"false"}}),{commit:n}=t[0];return{author:n.author.name||n.author.email,updatedOn:n.author.date}}catch(e){return{author:"",updatedOn:""}}}),c.localForage)}async fetchBlobContent({sha:e,repoURL:t,parseText:n}){const r=await this.request(`${t}/git/blobs/${e}`,{cache:"force-cache"});if(n)return u.Base64.decode(r.content);{const e=u.Base64.atob(r.content),t=new Uint8Array(e.length);for(let n=0;n1?{recursive:1}:{}})).tree.filter((e=>(!!i||"blob"===e.type)&&decodeURIComponent(e.path).split("/").length<=r)).map((e=>({type:e.type,id:e.sha,name:(0,c.basename)(e.path),path:`${o}/${e.path}`,size:e.size})))}catch(e){if(e&&404===e.status)return console.info("[StaticCMS] This 404 was expected and handled appropriately."),[];throw e}}async persistFiles(e,t,n){const r=t.concat(e),i=await this.getChangeFileOperations(r,this.branch);return this.changeFiles(i,n)}async changeFiles(e,t){return await this.request(`${this.repoURL}/contents`,{method:"POST",body:JSON.stringify({branch:this.branch,files:e,message:t.commitMessage})})}async getChangeFileOperations(e,t){return await Promise.all(e.map((async e=>{const n=await(0,a.default)(e,"toBase64",(0,o.default)(this.toBase64,e.raw));let r,i,s,u=(0,l.default)(e.path,"/");try{r=await this.getFileSha(e.path,{branch:t}),i=g.UPDATE,s=e.newPath&&u,u=e.newPath?(0,l.default)(e.newPath,"/"):u}catch{r=void 0,i=g.CREATE}return{operation:i,content:n,path:u,from_path:s,sha:r}})))}async getFileSha(e,{repoURL:t=this.repoURL,branch:n=this.branch}={}){const o=e.split("/"),a=(0,i.default)(o),s=(0,r.default)(o).join("/"),l=`${t}/git/trees/${n}:${encodeURIComponent(s)}`,u=(await this.request(l)).tree.find((e=>e.path===a));if(u)return u.sha;throw new c.APIError("Not Found",404,m)}async deleteFiles(e,t){const n=await Promise.all(e.map((async e=>{const t=await this.getFileSha(e);return{operation:g.DELETE,path:e,sha:t}})));this.changeFiles(n,{commitMessage:t})}toBase64(e){return Promise.resolve(u.Base64.encode(e))}}t.default=v,h(v,"DEFAULT_COMMIT_MESSAGE","Automatically generated by Static CMS")},29961:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=u(n(2784)),o=u(n(13980)),a=n(76320),s=n(30762),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=(0,r.default)(s.Icon,{target:"es1j68m0",label:"LoginButtonIcon"})({name:"1gnqu05",styles:"margin-right:18px"});class f extends i.default.Component{constructor(...e){super(...e),c(this,"state",{}),c(this,"handleLogin",(e=>{e.preventDefault(),this.auth.authenticate({scope:"repository"},((e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)}))}))}componentDidMount(){const{base_url:e="https://try.gitea.io",app_id:t=""}=this.props.config.backend;this.auth=new a.PkceAuthenticator({base_url:e,auth_endpoint:"login/oauth/authorize",app_id:t,auth_token_endpoint:"login/oauth/access_token",auth_token_endpoint_content_type:"application/json; charset=utf-8"}),this.auth.completeAuth(((e,t)=>{e?this.setState({loginError:e.toString()}):t&&this.props.onLogin(t)}))}render(){const{inProgress:e,config:t,t:n}=this.props;return(0,l.jsx)(s.AuthenticationPage,{onLogin:this.handleLogin,loginDisabled:e,loginErrorMessage:this.state.loginError,logoUrl:t.logo_url,siteUrl:t.site_url,renderButtonContent:()=>(0,l.jsx)(i.default.Fragment,null,(0,l.jsx)(d,{type:"gitea"})," ",n(e?"auth.loggingIn":"auth.loginWithGitea")),t:n})}}t.default=f,c(f,"propTypes",{inProgress:o.default.bool,config:o.default.object.isRequired,onLogin:o.default.func.isRequired,t:o.default.func.isRequired})},83972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(13856),i=c(n(93433)),o=c(n(63252)),a=n(33806),s=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(66141)),l=c(n(29961));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const{fetchWithTimeout:p}=a.unsentRequest;t.default=class{constructor(e,t={}){var n;if(f(this,"lock",void 0),f(this,"api",void 0),f(this,"options",void 0),f(this,"originRepo",void 0),f(this,"repo",void 0),f(this,"branch",void 0),f(this,"apiRoot",void 0),f(this,"mediaFolder",void 0),f(this,"token",void 0),f(this,"_currentUserPromise",void 0),f(this,"_userIsOriginMaintainerPromises",void 0),f(this,"_mediaDisplayURLSem",void 0),f(this,"getCursorAndFiles",((e,t)=>{const n=e.length,r=Math.ceil(e.length/20),i=[];return t>1&&(i.push("prev"),i.push("first")),t!!e)).catch((e=>(console.warn("[StaticCMS] Failed getting Gitea user",e),!1))))||!1},api:{status:!0,statusPage:""}}}authComponent(){return l.default}restoreUser(e){return this.authenticate(e)}async currentUser({token:e}){return this._currentUserPromise||(this._currentUserPromise=p(`${this.apiRoot}/user`,{headers:{Authorization:`token ${e}`}}).then((e=>e.json()))),this._currentUserPromise}async userIsOriginMaintainer({username:e,token:t}){const n=e||(await this.currentUser({token:t})).login;return this._userIsOriginMaintainerPromises=this._userIsOriginMaintainerPromises||{},this._userIsOriginMaintainerPromises[n]||(this._userIsOriginMaintainerPromises[n]=p(`${this.apiRoot}/repos/${this.originRepo}/collaborators/${n}/permission`,{headers:{Authorization:`token ${t}`}}).then((e=>e.json())).then((({permission:e})=>"admin"===e||"write"===e))),this._userIsOriginMaintainerPromises[n]}async authenticate(e){this.token=e.token;const t=s.default;this.api=new t({token:this.token,branch:this.branch,repo:this.repo,originRepo:this.originRepo,apiRoot:this.apiRoot});const n=await this.api.user();if(!await this.api.hasWriteAccess().catch((e=>{throw e.message=r.stripIndent` Repo "${this.repo}" not found. Please ensure the repo information is spelled correctly. @@ -20,11 +20,11 @@ If your repo is under an organization, ensure the organization has granted access to Static CMS. - `,e})))throw new Error("Your Gitea user account does not have access to this repo.");return{name:n.full_name,login:n.login,avatar_url:n.avatar_url,token:e.token}}logout(){if(this.token=null,this.api&&this.api.reset&&"function"==typeof this.api.reset)return this.api.reset()}getToken(){return Promise.resolve(this.token)}async entriesByFolder(e,t,n){const r=this.api.originRepoURL;let i;const o=await(0,a.entriesByFolder)((()=>this.api.listFiles(e,{repoURL:r,depth:n}).then((e=>{const n=e.filter((e=>(0,a.filterByExtension)(e,t))),r=this.getCursorAndFiles(n,1);return i=r.cursor,r.files}))),((e,t)=>this.api.readFile(e,t,{repoURL:r})),this.api.readFileMetadata.bind(this.api),s.API_NAME);return o[a.CURSOR_COMPATIBILITY_SYMBOL]=i,o}async allEntriesByFolder(e,t,n){const r=this.api.originRepoURL;return await(0,a.entriesByFolder)((()=>this.api.listFiles(e,{repoURL:r,depth:n}).then((e=>e.filter((e=>(0,a.filterByExtension)(e,t)))))),((e,t)=>this.api.readFile(e,t,{repoURL:r})),this.api.readFileMetadata.bind(this.api),s.API_NAME)}entriesByFiles(e){const t=this.api.repoURL;return(0,a.entriesByFiles)(e,((e,n)=>this.api.readFile(e,n,{repoURL:t}).catch((()=>""))),this.api.readFileMetadata.bind(this.api),s.API_NAME)}getEntry(e){const t=this.api.originRepoURL;return this.api.readFile(e,null,{repoURL:t}).then((t=>({file:{path:e,id:null},data:t}))).catch((()=>({file:{path:e,id:null},data:""})))}async getMedia(e=this.mediaFolder,t){return e?this.api.listFiles(e,void 0,t).then((e=>e.map((({id:e,name:t,size:n,path:r,type:i})=>({id:e,name:t,size:n,displayURL:{id:e,path:r},path:r,isDirectory:"tree"===i}))))):[]}async getMediaFile(e){const t=await(0,a.getMediaAsBlob)(e,null,this.api.readFile.bind(this.api)),n=(0,a.basename)(e),r=(0,a.blobToFileObj)(n,t),i=URL.createObjectURL(r);return{id:await(0,a.getBlobSHA)(t),displayURL:i,path:e,name:n,size:r.size,file:r,url:i}}getMediaDisplayURL(e){return this._mediaDisplayURLSem=this._mediaDisplayURLSem||(0,o.default)(10),(0,a.getMediaDisplayURL)(e,this.api.readFile.bind(this.api),this._mediaDisplayURLSem)}persistEntry(e,t){return(0,a.runWithLock)(this.lock,(()=>this.api.persistFiles(e.dataFiles,e.assets,t)),"Failed to acquire persist entry lock")}async persistMedia(e,t){try{await this.api.persistFiles([],[e],t);const{sha:n,path:r,fileObj:o}=e,a=URL.createObjectURL(o);return{id:n,name:o.name,size:o.size,displayURL:a,path:(0,i.default)(r,"/")}}catch(e){throw console.error(e),e}}deleteFiles(e,t){return this.api.deleteFiles(e,t)}async traverseCursor(e,t){const n=e.meta,r=e.data.get("files").toJS();let i;switch(t){case"first":default:i=this.getCursorAndFiles(r,1);break;case"last":i=this.getCursorAndFiles(r,n.get("pageCount"));break;case"next":i=this.getCursorAndFiles(r,n.get("page")+1);break;case"prev":i=this.getCursorAndFiles(r,n.get("page")-1)}return{entries:await(0,a.entriesByFiles)(i.files,((e,t)=>this.api.readFile(e,t,{repoURL:this.api.originRepoURL}).catch((()=>""))),this.api.readFileMetadata.bind(this.api),s.API_NAME),cursor:i.cursor}}async unpublishedEntries(){return{}}async unpublishedEntry(){return{}}async unpublishedEntryDataFile(){return{}}async unpublishedEntryMediaFile(){return{}}async updateUnpublishedEntryStatus(){}async publishUnpublishedEntry(){}async deleteUnpublishedEntry(){}async getDeployPreview(){return{}}}},38589:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"API",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"GiteaBackend",{enumerable:!0,get:function(){return r.default}});var r=a(n(83972)),i=a(n(66141)),o=a(n(29961));function a(e){return e&&e.__esModule?e:{default:e}}},33870:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.PullRequestState=t.MOCK_PULL_REQUEST=t.API_NAME=void 0;var r=h(n(5648)),i=h(n(93433)),o=h(n(36346)),a=h(n(83465)),s=h(n(56974)),l=h(n(87613)),u=n(95978),c=h(n(63252)),d=n(13856),f=n(33806),p=n(21023);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t(0,f.isCMSLabel)(e.name,t)))}function k(e){return e.reduce(((e,t)=>("removed"===t.status?e.push({sha:null,path:t.filename}):"renamed"===t.status?(e.push({sha:null,path:t.previous_filename}),e.push({sha:t.sha,path:t.filename})):e.push({sha:t.sha,path:t.filename}),e)),[])}let E=!1;class S{constructor(e){v(this,"apiRoot",void 0),v(this,"token",void 0),v(this,"tokenKeyword",void 0),v(this,"branch",void 0),v(this,"useOpenAuthoring",void 0),v(this,"repo",void 0),v(this,"originRepo",void 0),v(this,"repoOwner",void 0),v(this,"repoName",void 0),v(this,"originRepoOwner",void 0),v(this,"originRepoName",void 0),v(this,"repoURL",void 0),v(this,"originRepoURL",void 0),v(this,"mergeMethod",void 0),v(this,"initialWorkflowStatus",void 0),v(this,"cmsLabelPrefix",void 0),v(this,"baseUrl",void 0),v(this,"getUser",void 0),v(this,"_userPromise",void 0),v(this,"_metadataSemaphore",void 0),v(this,"commitAuthor",void 0),v(this,"filterOpenAuthoringBranches",(async e=>{try{const t=await this.getBranchPullRequest(e),{state:n,merged_at:r}=t;return t.number!==b&&n===_.Closed&&r?(await this.deleteBranch(e),{branch:e,filter:!1}):{branch:e,filter:!0}}catch(t){return{branch:e,filter:!1}}})),this.apiRoot=e.apiRoot||"https://api.github.com",this.token=e.token||"",this.tokenKeyword=e.tokenKeyword||"token",this.branch=e.branch||"master",this.useOpenAuthoring=e.useOpenAuthoring,this.repo=e.repo||"",this.originRepo=e.originRepo||this.repo,this.repoURL=`/repos/${this.repo}`,this.originRepoURL=`/repos/${this.originRepo}`;const[t,n]=[this.repo.split("/"),this.originRepo.split("/")];this.repoOwner=t[0],this.repoName=t[1],this.originRepoOwner=n[0],this.originRepoName=n[1],this.mergeMethod=e.squashMerges?"squash":"merge",this.cmsLabelPrefix=e.cmsLabelPrefix,this.initialWorkflowStatus=e.initialWorkflowStatus,this.baseUrl=e.baseUrl,this.getUser=e.getUser}user(){return this._userPromise||(this._userPromise=this.getUser({token:this.token})),this._userPromise}async hasWriteAccess(){try{const e=await this.request(this.repoURL);return this.repoOwner=e.owner.login,e.permissions.push}catch(e){throw console.error("Problem fetching repo data from GitHub"),e}}reset(){}requestHeaders(e={}){const t=g({"Content-Type":"application/json; charset=utf-8"},e);return this.token?(t.Authorization=`${this.tokenKeyword} ${this.token}`,Promise.resolve(t)):Promise.resolve(t)}parseJsonResponse(e){return e.json().then((t=>e.ok?t:Promise.reject(t)))}urlFor(e,t){const n=[];if(t.params)for(const e in t.params)n.push(`${e}=${encodeURIComponent(t.params[e])}`);return n.length&&(e+=`?${n.join("&")}`),this.apiRoot+e}parseResponse(e){const t=e.headers.get("Content-Type");return t&&t.match(/json/)?this.parseJsonResponse(e):e.text().then((t=>e.ok?t:Promise.reject(t)))}handleRequestError(e,t){throw new f.APIError(e.message,t,y)}buildRequest(e){return e}async request(e,t={},n=(e=>this.parseResponse(e))){t=g({cache:"no-cache"},t);const r=await this.requestHeaders(t.headers||{}),i=this.urlFor(e,t);let o=500;try{const e=f.unsentRequest.fromFetchArguments(i,g(g({},t),{},{headers:r})),a=await(0,f.requestWithBackoff)(this,e);return o=a.status,await n(a)}catch(e){return this.handleRequestError(e,o)}}nextUrlProcessor(){return e=>e}async requestAllPages(e,t={}){t=g({cache:"no-cache"},t);const n=await this.requestHeaders(t.headers||{}),r=this.urlFor(e,t),i=await(0,f.getAllResponses)(r,g(g({},t),{},{headers:n}),"next",this.nextUrlProcessor()),o=await Promise.all(i.map((e=>this.parseResponse(e))));return[].concat(...o)}generateContentKey(e,t){const n=(0,f.generateContentKey)(e,t);return this.useOpenAuthoring?`${this.repo}/${n}`:n}parseContentKey(e){return this.useOpenAuthoring?(0,f.parseContentKey)(e.slice(this.repo.length+1)):(0,f.parseContentKey)(e)}checkMetadataRef(){return this.request(`${this.repoURL}/git/refs/meta/_decap_cms`).then((e=>e.object)).catch((()=>this.uploadBlob({raw:"# Decap CMS\n\nThis tree is used by the Decap CMS to store metadata information for specific files and branches."}).then((e=>this.request(`${this.repoURL}/git/trees`,{method:"POST",body:JSON.stringify({tree:[{path:"README.md",mode:"100644",type:"blob",sha:e.sha}]})}))).then((e=>this.commit("First Commit",e))).then((e=>this.createRef("meta","_decap_cms",e.sha))).then((e=>e.object))))}async storeMetadata(e,t){return this._metadataSemaphore||(this._metadataSemaphore=(0,c.default)(1)),new Promise(((n,r)=>{var i;return null===(i=this._metadataSemaphore)||void 0===i?void 0:i.take((async()=>{try{var i;const r=await this.checkMetadataRef(),o={path:`${e}.json`,raw:JSON.stringify(t)};await this.uploadBlob(o);const a=await this.updateTree(r.sha,[o]),{sha:s}=await this.commit(`Updating “${e}” metadata`,a);await this.patchRef("meta","_decap_cms",s),await f.localForage.setItem(`gh.meta.${e}`,{expires:Date.now()+3e5,data:t}),null===(i=this._metadataSemaphore)||void 0===i||i.leave(),n()}catch(e){r(e)}}))}))}deleteMetadata(e){return this._metadataSemaphore||(this._metadataSemaphore=(0,c.default)(1)),new Promise((t=>{var n;return null===(n=this._metadataSemaphore)||void 0===n?void 0:n.take((async()=>{try{var n;const r=await this.checkMetadataRef(),i={path:`${e}.json`,sha:null},o=await this.updateTree(r.sha,[i]),{sha:a}=await this.commit(`Deleting “${e}” metadata`,o);await this.patchRef("meta","_decap_cms",a),null===(n=this._metadataSemaphore)||void 0===n||n.leave(),t()}catch(e){var r;null===(r=this._metadataSemaphore)||void 0===r||r.leave(),t()}}))}))}async retrieveMetadataOld(e){console.log("%c Checking for MetaData files","line-height: 30px;text-align: center;font-weight: bold");const t={params:{ref:"refs/meta/_decap_cms"},headers:{Accept:"application/vnd.github.v3.raw"}};function n(t){throw"Not Found"===t.message&&console.log("%c %s does not have metadata","line-height: 30px;text-align: center;font-weight: bold",e),t}if(!this.useOpenAuthoring)return await this.request(`${this.repoURL}/contents/${e}.json`,t).then((e=>JSON.parse(e))).catch(n);const[r,i]=e.split("/");return this.request(`/repos/${r}/${i}/contents/${e}.json`,t).then((e=>JSON.parse(e))).catch(n)}async getPullRequests(e,t,n){return(await this.requestAllPages(`${this.originRepoURL}/pulls`,{params:g(g({},e?{head:await this.getHeadReference(e)}:{}),{},{base:this.branch,state:t,per_page:100})})).filter((e=>e.head.ref.startsWith(`${f.CMS_BRANCH_PREFIX}/`)&&n(e)))}async getOpenAuthoringPullRequest(e,t){const n=await this.getBranch(e).catch((()=>{throw new f.EditorialWorkflowError("content is not under editorial workflow",!0)})),r=t.filter((e=>e.head.sha===n.commit.sha))[0];if(r){r.labels=r.labels.filter((e=>!(0,f.isCMSLabel)(e.name,this.cmsLabelPrefix)));const e=r.state===_.Closed?{name:(0,f.statusToLabel)(this.initialWorkflowStatus,this.cmsLabelPrefix)}:{name:(0,f.statusToLabel)("pending_review",this.cmsLabelPrefix)};return r.labels.push(e),r}try{return{head:{sha:n.commit.sha},number:b,labels:[{name:(0,f.statusToLabel)(this.initialWorkflowStatus,this.cmsLabelPrefix)}],state:_.Open}}catch(e){throw new f.EditorialWorkflowError("content is not under editorial workflow",!0)}}async getBranchPullRequest(e){if(this.useOpenAuthoring){const t=await this.getPullRequests(e,_.All,(()=>!0));return this.getOpenAuthoringPullRequest(e,t)}{const t=await this.getPullRequests(e,_.Open,(e=>x(e,this.cmsLabelPrefix)));if(t.length<=0)throw new f.EditorialWorkflowError("content is not under editorial workflow",!0);return t[0]}}async getPullRequestCommits(e){if(e===b)return[];try{return await this.request(`${this.originRepoURL}/pulls/${e}/commits`)}catch(e){return console.log(e),[]}}async getPullRequestAuthor(e){var t;if(null!==(t=e.user)&&void 0!==t&&t.login)try{const e=await this.user();return e.name||e.login}catch{return}}async retrieveUnpublishedEntryData(e){const{collection:t,slug:n}=this.parseContentKey(e),r=(0,f.branchFromContentKey)(e),i=await this.getBranchPullRequest(r),[{files:o},a]=await Promise.all([this.getDifferences(this.branch,i.head.sha),this.getPullRequestAuthor(i)]),s=await Promise.all(o.map((e=>this.diffFromFile(e)))),l=i.labels.find((e=>(0,f.isCMSLabel)(e.name,this.cmsLabelPrefix))),u=(0,f.labelToStatus)(l.name,this.cmsLabelPrefix),c=i.updated_at;return{collection:t,slug:n,status:u,diffs:s.map((e=>({path:e.path,newFile:e.newFile,id:e.sha}))),updatedAt:c,pullRequestAuthor:a}}async readFile(e,t,{branch:n=this.branch,repoURL:r=this.repoURL,parseText:i=!0}={}){return t||(t=await this.getFileSha(e,{repoURL:r,branch:n})),await this.fetchBlobContent({sha:t,repoURL:r,parseText:i})}async readFileMetadata(e,t){return await(0,f.readFileMetadata)(t,(async()=>{try{const t=await this.request(`${this.originRepoURL}/commits`,{params:{path:e,sha:this.branch}}),{commit:n}=t[0];return{author:n.author.name||n.author.email,updatedOn:n.author.date}}catch(e){return{author:"",updatedOn:""}}}),f.localForage)}async fetchBlobContent({sha:e,repoURL:t,parseText:n}){const r=await this.request(`${t}/git/blobs/${e}`,{cache:"force-cache"});if(n)return u.Base64.decode(r.content);{const e=u.Base64.atob(r.content),t=new Uint8Array(e.length);for(let n=0;n1?{recursive:1}:{}})).tree.filter((e=>"blob"===e.type&&e.path.split("/").length<=i)).map((e=>({type:e.type,id:e.sha,name:(0,f.basename)(e.path),path:`${o}/${e.path}`,size:e.size})))}catch(e){if(e&&404===e.status)return console.log("This 404 was expected and handled appropriately."),[];throw e}}async migrateToVersion1(e,t){const n=e.head.ref.slice(4),r=`${t.collection}/${n}`,i=`cms/${r}`;await this.getBranch(i).catch((()=>{}))||await this.createBranch(i,e.head.sha);const o=(await this.getPullRequests(i,_.All,(()=>!0)))[0]||await this.createPR(e.title,i),a=g(g({},t),{},{pr:{number:o.number,head:o.head.sha},branch:i,version:"1"});return await this.storeMetadata(r,a),await this.closePR(e.number),await this.deleteBranch(e.head.ref),await this.deleteMetadata(n),{metadata:a,pullRequest:o}}async migrateToPullRequestLabels(e,t){await this.setPullRequestStatus(e,t.status);const n=e.head.ref.slice(4);await this.deleteMetadata(n)}async migratePullRequest(e,t){const{number:n}=e;console.log(`Migrating Pull Request '${n}' (${t})`);const r=(0,f.contentKeyFromBranch)(e.head.ref);let i=await this.retrieveMetadataOld(r).catch((()=>{}));if(!i)return void console.log(`Skipped migrating Pull Request '${n}' (${t})`);let o=n;if(!i.version){console.log(`Migrating Pull Request '${n}' to version 1`);try{({metadata:i,pullRequest:e}=await this.migrateToVersion1(e,i))}catch(e){return console.log(`Failed to migrate Pull Request '${n}' to version 1. See error below.`),void console.error(e)}o=e.number,console.log(`Done migrating Pull Request '${n}' to version 1. New pull request '${o}' created.`)}"1"===i.version&&(console.log(`Migrating Pull Request '${o}' to labels`),await this.migrateToPullRequestLabels(e,i),console.log(`Done migrating Pull Request '${o}' to labels`)),console.log(`Done migrating Pull Request '${n===o?o:`${n} => ${o}`}'`)}async getOpenAuthoringBranches(){return await this.requestAllPages(`${this.repoURL}/git/refs/heads/cms/${this.repo}`).catch((()=>[]))}async listUnpublishedBranches(){let e;if(console.log("%c Checking for Unpublished entries","line-height: 30px;text-align: center;font-weight: bold"),this.useOpenAuthoring){e=(await this.getOpenAuthoringBranches()).map((e=>e.ref.slice(11)));const t=await Promise.all(e.map((e=>this.filterOpenAuthoringBranches(e))));e=t.filter((e=>e.filter)).map((e=>e.branch))}else{const t=await this.getPullRequests(void 0,_.Open,(e=>!e.head.repo.fork&&function(e,t){return e.labels.every((e=>!(0,f.isCMSLabel)(e.name,t)))}(e,this.cmsLabelPrefix)));let n=0;for(const e of t)E||(E=!0,alert(d.oneLine` + `,e})))throw new Error("Your Gitea user account does not have access to this repo.");return{name:n.full_name,login:n.login,avatar_url:n.avatar_url,token:e.token}}logout(){if(this.token=null,this.api&&this.api.reset&&"function"==typeof this.api.reset)return this.api.reset()}getToken(){return Promise.resolve(this.token)}async entriesByFolder(e,t,n){const r=this.api.originRepoURL;let i;const o=await(0,a.entriesByFolder)((()=>this.api.listFiles(e,{repoURL:r,depth:n}).then((e=>{const n=e.filter((e=>(0,a.filterByExtension)(e,t))),r=this.getCursorAndFiles(n,1);return i=r.cursor,r.files}))),((e,t)=>this.api.readFile(e,t,{repoURL:r})),this.api.readFileMetadata.bind(this.api),s.API_NAME);return o[a.CURSOR_COMPATIBILITY_SYMBOL]=i,o}async allEntriesByFolder(e,t,n){const r=this.api.originRepoURL;return await(0,a.entriesByFolder)((()=>this.api.listFiles(e,{repoURL:r,depth:n}).then((e=>e.filter((e=>(0,a.filterByExtension)(e,t)))))),((e,t)=>this.api.readFile(e,t,{repoURL:r})),this.api.readFileMetadata.bind(this.api),s.API_NAME)}entriesByFiles(e){const t=this.api.repoURL;return(0,a.entriesByFiles)(e,((e,n)=>this.api.readFile(e,n,{repoURL:t}).catch((()=>""))),this.api.readFileMetadata.bind(this.api),s.API_NAME)}getEntry(e){const t=this.api.originRepoURL;return this.api.readFile(e,null,{repoURL:t}).then((t=>({file:{path:e,id:null},data:t}))).catch((()=>({file:{path:e,id:null},data:""})))}async getMedia(e=this.mediaFolder,t){return e?this.api.listFiles(e,void 0,t).then((e=>e.map((({id:e,name:t,size:n,path:r,type:i})=>({id:e,name:t,size:n,displayURL:{id:e,path:r},path:r,isDirectory:"tree"===i}))))):[]}async getMediaFile(e){const t=await(0,a.getMediaAsBlob)(e,null,this.api.readFile.bind(this.api)),n=(0,a.basename)(e),r=(0,a.blobToFileObj)(n,t),i=URL.createObjectURL(r);return{id:await(0,a.getBlobSHA)(t),displayURL:i,path:e,name:n,size:r.size,file:r,url:i}}getMediaDisplayURL(e){return this._mediaDisplayURLSem=this._mediaDisplayURLSem||(0,o.default)(10),(0,a.getMediaDisplayURL)(e,this.api.readFile.bind(this.api),this._mediaDisplayURLSem)}persistEntry(e,t){return(0,a.runWithLock)(this.lock,(()=>this.api.persistFiles(e.dataFiles,e.assets,t)),"Failed to acquire persist entry lock")}async persistMedia(e,t){try{await this.api.persistFiles([],[e],t);const{sha:n,path:r,fileObj:o}=e,a=URL.createObjectURL(o);return{id:n,name:o.name,size:o.size,displayURL:a,path:(0,i.default)(r,"/")}}catch(e){throw console.error(e),e}}deleteFiles(e,t){return this.api.deleteFiles(e,t)}async traverseCursor(e,t){const n=e.meta,r=e.data.get("files").toJS();let i;switch(t){case"first":default:i=this.getCursorAndFiles(r,1);break;case"last":i=this.getCursorAndFiles(r,n.get("pageCount"));break;case"next":i=this.getCursorAndFiles(r,n.get("page")+1);break;case"prev":i=this.getCursorAndFiles(r,n.get("page")-1)}return{entries:await(0,a.entriesByFiles)(i.files,((e,t)=>this.api.readFile(e,t,{repoURL:this.api.originRepoURL}).catch((()=>""))),this.api.readFileMetadata.bind(this.api),s.API_NAME),cursor:i.cursor}}async unpublishedEntries(){return{}}async unpublishedEntry(){return{}}async unpublishedEntryDataFile(){return{}}async unpublishedEntryMediaFile(){return{}}async updateUnpublishedEntryStatus(){}async publishUnpublishedEntry(){}async deleteUnpublishedEntry(){}async getDeployPreview(){return{}}}},38589:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"API",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"GiteaBackend",{enumerable:!0,get:function(){return r.default}});var r=a(n(83972)),i=a(n(66141)),o=a(n(29961));function a(e){return e&&e.__esModule?e:{default:e}}},33870:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.PullRequestState=t.MOCK_PULL_REQUEST=t.API_NAME=void 0;var r=h(n(5648)),i=h(n(93433)),o=h(n(36346)),a=h(n(83465)),s=h(n(56974)),l=h(n(87613)),u=n(95978),c=h(n(63252)),d=n(13856),f=n(33806),p=n(21023);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t(0,f.isCMSLabel)(e.name,t)))}function k(e){return e.reduce(((e,t)=>("removed"===t.status?e.push({sha:null,path:t.filename}):"renamed"===t.status?(e.push({sha:null,path:t.previous_filename}),e.push({sha:t.sha,path:t.filename})):e.push({sha:t.sha,path:t.filename}),e)),[])}let E=!1;class C{constructor(e){v(this,"apiRoot",void 0),v(this,"token",void 0),v(this,"tokenKeyword",void 0),v(this,"branch",void 0),v(this,"useOpenAuthoring",void 0),v(this,"repo",void 0),v(this,"originRepo",void 0),v(this,"repoOwner",void 0),v(this,"repoName",void 0),v(this,"originRepoOwner",void 0),v(this,"originRepoName",void 0),v(this,"repoURL",void 0),v(this,"originRepoURL",void 0),v(this,"mergeMethod",void 0),v(this,"initialWorkflowStatus",void 0),v(this,"cmsLabelPrefix",void 0),v(this,"baseUrl",void 0),v(this,"getUser",void 0),v(this,"_userPromise",void 0),v(this,"_metadataSemaphore",void 0),v(this,"commitAuthor",void 0),v(this,"filterOpenAuthoringBranches",(async e=>{try{const t=await this.getBranchPullRequest(e),{state:n,merged_at:r}=t;return t.number!==b&&n===_.Closed&&r?(await this.deleteBranch(e),{branch:e,filter:!1}):{branch:e,filter:!0}}catch(t){return{branch:e,filter:!1}}})),this.apiRoot=e.apiRoot||"https://api.github.com",this.token=e.token||"",this.tokenKeyword=e.tokenKeyword||"token",this.branch=e.branch||"master",this.useOpenAuthoring=e.useOpenAuthoring,this.repo=e.repo||"",this.originRepo=e.originRepo||this.repo,this.repoURL=`/repos/${this.repo}`,this.originRepoURL=`/repos/${this.originRepo}`;const[t,n]=[this.repo.split("/"),this.originRepo.split("/")];this.repoOwner=t[0],this.repoName=t[1],this.originRepoOwner=n[0],this.originRepoName=n[1],this.mergeMethod=e.squashMerges?"squash":"merge",this.cmsLabelPrefix=e.cmsLabelPrefix,this.initialWorkflowStatus=e.initialWorkflowStatus,this.baseUrl=e.baseUrl,this.getUser=e.getUser}user(){return this._userPromise||(this._userPromise=this.getUser({token:this.token})),this._userPromise}async hasWriteAccess(){try{const e=await this.request(this.repoURL);return this.repoOwner=e.owner.login,e.permissions.push}catch(e){throw console.error("Problem fetching repo data from GitHub"),e}}reset(){}requestHeaders(e={}){const t=g({"Content-Type":"application/json; charset=utf-8"},e);return this.token?(t.Authorization=`${this.tokenKeyword} ${this.token}`,Promise.resolve(t)):Promise.resolve(t)}parseJsonResponse(e){return e.json().then((t=>e.ok?t:Promise.reject(t)))}urlFor(e,t){const n=[];if(t.params)for(const e in t.params)n.push(`${e}=${encodeURIComponent(t.params[e])}`);return n.length&&(e+=`?${n.join("&")}`),this.apiRoot+e}parseResponse(e){const t=e.headers.get("Content-Type");return t&&t.match(/json/)?this.parseJsonResponse(e):e.text().then((t=>e.ok?t:Promise.reject(t)))}handleRequestError(e,t){throw new f.APIError(e.message,t,y)}buildRequest(e){return e}async request(e,t={},n=(e=>this.parseResponse(e))){t=g({cache:"no-cache"},t);const r=await this.requestHeaders(t.headers||{}),i=this.urlFor(e,t);let o=500;try{const e=f.unsentRequest.fromFetchArguments(i,g(g({},t),{},{headers:r})),a=await(0,f.requestWithBackoff)(this,e);return o=a.status,await n(a)}catch(e){return this.handleRequestError(e,o)}}nextUrlProcessor(){return e=>e}async requestAllPages(e,t={}){t=g({cache:"no-cache"},t);const n=await this.requestHeaders(t.headers||{}),r=this.urlFor(e,t),i=await(0,f.getAllResponses)(r,g(g({},t),{},{headers:n}),"next",this.nextUrlProcessor()),o=await Promise.all(i.map((e=>this.parseResponse(e))));return[].concat(...o)}generateContentKey(e,t){const n=(0,f.generateContentKey)(e,t);return this.useOpenAuthoring?`${this.repo}/${n}`:n}parseContentKey(e){return this.useOpenAuthoring?(0,f.parseContentKey)(e.slice(this.repo.length+1)):(0,f.parseContentKey)(e)}checkMetadataRef(){return this.request(`${this.repoURL}/git/refs/meta/_decap_cms`).then((e=>e.object)).catch((()=>this.uploadBlob({raw:"# Decap CMS\n\nThis tree is used by the Decap CMS to store metadata information for specific files and branches."}).then((e=>this.request(`${this.repoURL}/git/trees`,{method:"POST",body:JSON.stringify({tree:[{path:"README.md",mode:"100644",type:"blob",sha:e.sha}]})}))).then((e=>this.commit("First Commit",e))).then((e=>this.createRef("meta","_decap_cms",e.sha))).then((e=>e.object))))}async storeMetadata(e,t){return this._metadataSemaphore||(this._metadataSemaphore=(0,c.default)(1)),new Promise(((n,r)=>{var i;return null===(i=this._metadataSemaphore)||void 0===i?void 0:i.take((async()=>{try{var i;const r=await this.checkMetadataRef(),o={path:`${e}.json`,raw:JSON.stringify(t)};await this.uploadBlob(o);const a=await this.updateTree(r.sha,[o]),{sha:s}=await this.commit(`Updating “${e}” metadata`,a);await this.patchRef("meta","_decap_cms",s),await f.localForage.setItem(`gh.meta.${e}`,{expires:Date.now()+3e5,data:t}),null===(i=this._metadataSemaphore)||void 0===i||i.leave(),n()}catch(e){r(e)}}))}))}deleteMetadata(e){return this._metadataSemaphore||(this._metadataSemaphore=(0,c.default)(1)),new Promise((t=>{var n;return null===(n=this._metadataSemaphore)||void 0===n?void 0:n.take((async()=>{try{var n;const r=await this.checkMetadataRef(),i={path:`${e}.json`,sha:null},o=await this.updateTree(r.sha,[i]),{sha:a}=await this.commit(`Deleting “${e}” metadata`,o);await this.patchRef("meta","_decap_cms",a),null===(n=this._metadataSemaphore)||void 0===n||n.leave(),t()}catch(e){var r;null===(r=this._metadataSemaphore)||void 0===r||r.leave(),t()}}))}))}async retrieveMetadataOld(e){console.log("%c Checking for MetaData files","line-height: 30px;text-align: center;font-weight: bold");const t={params:{ref:"refs/meta/_decap_cms"},headers:{Accept:"application/vnd.github.v3.raw"}};function n(t){throw"Not Found"===t.message&&console.log("%c %s does not have metadata","line-height: 30px;text-align: center;font-weight: bold",e),t}if(!this.useOpenAuthoring)return await this.request(`${this.repoURL}/contents/${e}.json`,t).then((e=>JSON.parse(e))).catch(n);const[r,i]=e.split("/");return this.request(`/repos/${r}/${i}/contents/${e}.json`,t).then((e=>JSON.parse(e))).catch(n)}async getPullRequests(e,t,n){return(await this.requestAllPages(`${this.originRepoURL}/pulls`,{params:g(g({},e?{head:await this.getHeadReference(e)}:{}),{},{base:this.branch,state:t,per_page:100})})).filter((e=>e.head.ref.startsWith(`${f.CMS_BRANCH_PREFIX}/`)&&n(e)))}async getOpenAuthoringPullRequest(e,t){const n=await this.getBranch(e).catch((()=>{throw new f.EditorialWorkflowError("content is not under editorial workflow",!0)})),r=t.filter((e=>e.head.sha===n.commit.sha))[0];if(r){r.labels=r.labels.filter((e=>!(0,f.isCMSLabel)(e.name,this.cmsLabelPrefix)));const e=r.state===_.Closed?{name:(0,f.statusToLabel)(this.initialWorkflowStatus,this.cmsLabelPrefix)}:{name:(0,f.statusToLabel)("pending_review",this.cmsLabelPrefix)};return r.labels.push(e),r}try{return{head:{sha:n.commit.sha},number:b,labels:[{name:(0,f.statusToLabel)(this.initialWorkflowStatus,this.cmsLabelPrefix)}],state:_.Open}}catch(e){throw new f.EditorialWorkflowError("content is not under editorial workflow",!0)}}async getBranchPullRequest(e){if(this.useOpenAuthoring){const t=await this.getPullRequests(e,_.All,(()=>!0));return this.getOpenAuthoringPullRequest(e,t)}{const t=await this.getPullRequests(e,_.Open,(e=>x(e,this.cmsLabelPrefix)));if(t.length<=0)throw new f.EditorialWorkflowError("content is not under editorial workflow",!0);return t[0]}}async getPullRequestCommits(e){if(e===b)return[];try{return await this.request(`${this.originRepoURL}/pulls/${e}/commits`)}catch(e){return console.log(e),[]}}async getPullRequestAuthor(e){var t;if(null!==(t=e.user)&&void 0!==t&&t.login)try{const t=await this.request(`/users/${e.user.login}`);return t.name||t.login}catch{return}}async retrieveUnpublishedEntryData(e){const{collection:t,slug:n}=this.parseContentKey(e),r=(0,f.branchFromContentKey)(e),i=await this.getBranchPullRequest(r),[{files:o},a]=await Promise.all([this.getDifferences(this.branch,i.head.sha),this.getPullRequestAuthor(i)]),s=await Promise.all(o.map((e=>this.diffFromFile(e)))),l=i.labels.find((e=>(0,f.isCMSLabel)(e.name,this.cmsLabelPrefix))),u=(0,f.labelToStatus)(l.name,this.cmsLabelPrefix),c=i.updated_at;return{collection:t,slug:n,status:u,diffs:s.map((e=>({path:e.path,newFile:e.newFile,id:e.sha}))),updatedAt:c,pullRequestAuthor:a}}async readFile(e,t,{branch:n=this.branch,repoURL:r=this.repoURL,parseText:i=!0}={}){return t||(t=await this.getFileSha(e,{repoURL:r,branch:n})),await this.fetchBlobContent({sha:t,repoURL:r,parseText:i})}async readFileMetadata(e,t){return await(0,f.readFileMetadata)(t,(async()=>{try{const t=await this.request(`${this.originRepoURL}/commits`,{params:{path:e,sha:this.branch}}),{commit:n}=t[0];return{author:n.author.name||n.author.email,updatedOn:n.author.date}}catch(e){return{author:"",updatedOn:""}}}),f.localForage)}async fetchBlobContent({sha:e,repoURL:t,parseText:n}){const r=await this.request(`${t}/git/blobs/${e}`,{cache:"force-cache"});if(n)return u.Base64.decode(r.content);{const e=u.Base64.atob(r.content),t=new Uint8Array(e.length);for(let n=0;n1?{recursive:1}:{}})).tree.filter((e=>"blob"===e.type&&e.path.split("/").length<=i)).map((e=>({type:e.type,id:e.sha,name:(0,f.basename)(e.path),path:`${o}/${e.path}`,size:e.size})))}catch(e){if(e&&404===e.status)return console.log("This 404 was expected and handled appropriately."),[];throw e}}async migrateToVersion1(e,t){const n=e.head.ref.slice(4),r=`${t.collection}/${n}`,i=`cms/${r}`;await this.getBranch(i).catch((()=>{}))||await this.createBranch(i,e.head.sha);const o=(await this.getPullRequests(i,_.All,(()=>!0)))[0]||await this.createPR(e.title,i),a=g(g({},t),{},{pr:{number:o.number,head:o.head.sha},branch:i,version:"1"});return await this.storeMetadata(r,a),await this.closePR(e.number),await this.deleteBranch(e.head.ref),await this.deleteMetadata(n),{metadata:a,pullRequest:o}}async migrateToPullRequestLabels(e,t){await this.setPullRequestStatus(e,t.status);const n=e.head.ref.slice(4);await this.deleteMetadata(n)}async migratePullRequest(e,t){const{number:n}=e;console.log(`Migrating Pull Request '${n}' (${t})`);const r=(0,f.contentKeyFromBranch)(e.head.ref);let i=await this.retrieveMetadataOld(r).catch((()=>{}));if(!i)return void console.log(`Skipped migrating Pull Request '${n}' (${t})`);let o=n;if(!i.version){console.log(`Migrating Pull Request '${n}' to version 1`);try{({metadata:i,pullRequest:e}=await this.migrateToVersion1(e,i))}catch(e){return console.log(`Failed to migrate Pull Request '${n}' to version 1. See error below.`),void console.error(e)}o=e.number,console.log(`Done migrating Pull Request '${n}' to version 1. New pull request '${o}' created.`)}"1"===i.version&&(console.log(`Migrating Pull Request '${o}' to labels`),await this.migrateToPullRequestLabels(e,i),console.log(`Done migrating Pull Request '${o}' to labels`)),console.log(`Done migrating Pull Request '${n===o?o:`${n} => ${o}`}'`)}async getOpenAuthoringBranches(){return await this.requestAllPages(`${this.repoURL}/git/refs/heads/cms/${this.repo}`).catch((()=>[]))}async listUnpublishedBranches(){let e;if(console.log("%c Checking for Unpublished entries","line-height: 30px;text-align: center;font-weight: bold"),this.useOpenAuthoring){e=(await this.getOpenAuthoringBranches()).map((e=>e.ref.slice(11)));const t=await Promise.all(e.map((e=>this.filterOpenAuthoringBranches(e))));e=t.filter((e=>e.filter)).map((e=>e.branch))}else{const t=await this.getPullRequests(void 0,_.Open,(e=>!e.head.repo.fork&&function(e,t){return e.labels.every((e=>!(0,f.isCMSLabel)(e.name,t)))}(e,this.cmsLabelPrefix)));let n=0;for(const e of t)E||(E=!0,alert(d.oneLine` Decap CMS is adding labels to ${t.length} of your Editorial Workflow entries. The "Workflow" tab will be unavailable during this migration. You may use other areas of the CMS during this time. Note that closing the CMS will pause the migration. - `)),n+=1,await this.migratePullRequest(e,`${n} of ${t.length}`);e=(await this.getPullRequests(void 0,_.Open,(e=>x(e,this.cmsLabelPrefix)))).map((e=>e.head.ref))}return e}async getStatuses(e,t){const n=this.generateContentKey(e,t),r=(0,f.branchFromContentKey)(n),i=(await this.getBranchPullRequest(r)).head.sha;return(await this.request(`${this.originRepoURL}/commits/${i}/status`)).statuses.map((e=>({context:e.context,target_url:e.target_url,state:e.state===w.Success?f.PreviewState.Success:f.PreviewState.Other})))}async persistFiles(e,t,n){const r=t.concat(e),o=r.map((e=>this.uploadBlob(e)));if(await Promise.all(o),n.useWorkflow){const o=t.map((({sha:e,path:t})=>({path:(0,i.default)(t,"/"),sha:e}))),a=e[0].slug;return this.editorialWorkflowGit(r,a,o,n)}return this.getDefaultBranch().then((e=>this.updateTree(e.commit.sha,r))).then((e=>this.commit(n.commitMessage,e))).then((e=>this.patchBranch(this.branch,e.sha)))}async getFileSha(e,{repoURL:t=this.repoURL,branch:n=this.branch}={}){const r=e.split("/"),i=(0,s.default)(r),o=(0,l.default)(r).join("/"),a=`${t}/git/trees/${n}:${encodeURIComponent(o)}`,u=(await this.request(a)).tree.find((e=>e.path===i));if(u)return u.sha;throw new f.APIError("Not Found",404,y)}async deleteFiles(e,t){if(this.useOpenAuthoring)return Promise.reject("Cannot delete published entries as an Open Authoring user!");const n=await this.getDefaultBranch(),r=e.map((e=>({path:e,sha:null}))),i=await this.updateTree(n.commit.sha,r),o=await this.commit(t,i);await this.patchBranch(this.branch,o.sha)}async createBranchAndPullRequest(e,t,n){return await this.createBranch(e,t),this.createPR(n,e)}async updatePullRequestLabels(e,t){await this.request(`${this.repoURL}/issues/${e}/labels`,{method:"PUT",body:JSON.stringify({labels:t})})}async diffFromFile(e){return{path:e.filename,newFile:"added"===e.status,sha:e.sha,binary:"renamed"!==e.status&&!e.patch||e.filename.endsWith(".svg")}}async editorialWorkflowGit(e,t,n,r){const i=this.generateContentKey(r.collectionName,t),o=(0,f.branchFromContentKey)(i);if(r.unpublished){const{files:t}=await this.getDifferences(this.branch,await this.getHeadReference(o)),i=await Promise.all(t.map((e=>this.diffFromFile(e)))),a=[];for(const e of i.filter((e=>e.binary)))n.some((t=>t.path===e.path))||a.push({path:e.path,sha:null});const s=await this.rebaseBranch(o),l=a.concat(e),u=await this.updateTree(s.sha,l,o),c=await this.commit(r.commitMessage,u);return this.patchBranch(o,c.sha,{force:!0})}{const t=await this.getDefaultBranch(),n=await this.updateTree(t.commit.sha,e),i=await this.commit(r.commitMessage,n);if(this.useOpenAuthoring)await this.createBranch(o,i.sha);else{const e=await this.createBranchAndPullRequest(o,i.sha,r.commitMessage);await this.setPullRequestStatus(e,r.status||this.initialWorkflowStatus)}}}async getDifferences(e,t){const n=this.useOpenAuthoring?10:1;for(let r=1;r<=n;r++)try{return await this.request(`${this.originRepoURL}/compare/${e}...${t}`)}catch(e){if(r===n)throw console.warn(`Reached maximum number of attempts '${n}' for getDifferences`),e;await new Promise((e=>setTimeout(e,500*r)))}throw new f.APIError("Not Found",404,y)}async rebaseSingleCommit(e,t){const n=k((await this.getDifferences(t.parents[0].sha,t.sha)).files);if(n.length>0){const r=await this.updateTree(e.sha,n),{message:i,author:o,committer:a}=t.commit;return await this.createCommit(i,r.sha,[e.sha],o,a)}return t}async rebaseCommits(e,t){return 0===t.length||t[0].parents[0].sha===e.sha?(0,s.default)(t):t.reduce(((e,t)=>e.then((e=>{const n=e,r=t;return this.rebaseSingleCommit(n,r)}))),Promise.resolve(e))}async rebaseBranch(e){try{const{base_commit:t,commits:n}=await this.getDifferences(this.branch,await this.getHeadReference(e));return await this.rebaseCommits(t,n)}catch(e){throw console.error(e),e}}async setPullRequestStatus(e,t){const n=[...e.labels.filter((e=>!(0,f.isCMSLabel)(e.name,this.cmsLabelPrefix))).map((e=>e.name)),(0,f.statusToLabel)(t,this.cmsLabelPrefix)];await this.updatePullRequestLabels(e.number,n)}async updateUnpublishedEntryStatus(e,t,n){const r=this.generateContentKey(e,t),i=(0,f.branchFromContentKey)(r),o=await this.getBranchPullRequest(i);if(this.useOpenAuthoring){if("pending_publish"===status)throw new Error('Open Authoring entries may not be set to the status "pending_publish".');if(o.number!==b){const{state:e}=o;e===_.Open&&"draft"===n&&await this.closePR(o.number),e===_.Closed&&"pending_review"===n&&await this.openPR(o.number)}else if("pending_review"===n){var a,s;const e=(0,f.branchFromContentKey)(r),t=(null===(a=(await this.getDifferences(this.branch,await this.getHeadReference(e))).commits[0])||void 0===a||null===(s=a.commit)||void 0===s?void 0:s.message)||S.DEFAULT_COMMIT_MESSAGE;await this.createPR(t,e)}}else await this.setPullRequestStatus(o,n)}async deleteUnpublishedEntry(e,t){const n=this.generateContentKey(e,t),r=(0,f.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);i.number!==b&&await this.closePR(i.number),await this.deleteBranch(r)}async publishUnpublishedEntry(e,t){const n=this.generateContentKey(e,t),r=(0,f.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);await this.mergePR(i),await this.deleteBranch(r)}async createRef(e,t,n){return await this.request(`${this.repoURL}/git/refs`,{method:"POST",body:JSON.stringify({ref:`refs/${e}/${t}`,sha:n})})}async patchRef(e,t,n,r={}){const i=r.force||!1;return await this.request(`${this.repoURL}/git/refs/${e}/${encodeURIComponent(t)}`,{method:"PATCH",body:JSON.stringify({sha:n,force:i})})}deleteRef(e,t){return this.request(`${this.repoURL}/git/refs/${e}/${encodeURIComponent(t)}`,{method:"DELETE"})}async getBranch(e){return await this.request(`${this.repoURL}/branches/${encodeURIComponent(e)}`)}async getDefaultBranch(){return await this.request(`${this.originRepoURL}/branches/${encodeURIComponent(this.branch)}`)}async backupBranch(e){try{const t=await this.getBranch(e);await this.createBranch(t.name.replace(new RegExp(`${f.CMS_BRANCH_PREFIX}/`),`${f.CMS_BRANCH_PREFIX}_${Date.now()}/`),t.commit.sha)}catch(e){console.warn(e)}}async createBranch(e,t){try{return await this.createRef("heads",e,t)}catch(n){const r=String(n.message||"");if("Reference update failed"===r)await(0,f.throwOnConflictingBranches)(e,(e=>this.getBranch(e)),y);else if("Reference already exists"===r&&e.startsWith(`${f.CMS_BRANCH_PREFIX}/`))try{return await this.backupBranch(e),await this.patchBranch(e,t,{force:!0})}catch(e){console.log(e)}throw n}}assertCmsBranch(e){return e.startsWith(`${f.CMS_BRANCH_PREFIX}/`)}patchBranch(e,t,n={}){const r=n.force||!1;if(r&&!this.assertCmsBranch(e))throw Error(`Only CMS branches can be force updated, cannot force update ${e}`);return this.patchRef("heads",e,t,{force:r})}deleteBranch(e){return this.deleteRef("heads",e).catch((e=>"Reference does not exist"===e.message?Promise.resolve():(console.error(e),Promise.reject(e))))}async getHeadReference(e){return`${this.repoOwner}:${e}`}async createPR(e,t){return await this.request(`${this.originRepoURL}/pulls`,{method:"POST",body:JSON.stringify({title:e,body:f.DEFAULT_PR_BODY,head:await this.getHeadReference(t),base:this.branch})})}async openPR(e){return console.log("%c Re-opening PR","line-height: 30px;text-align: center;font-weight: bold"),await this.request(`${this.originRepoURL}/pulls/${e}`,{method:"PATCH",body:JSON.stringify({state:_.Open})})}async closePR(e){return console.log("%c Deleting PR","line-height: 30px;text-align: center;font-weight: bold"),await this.request(`${this.originRepoURL}/pulls/${e}`,{method:"PATCH",body:JSON.stringify({state:_.Closed})})}async mergePR(e){console.log("%c Merging PR","line-height: 30px;text-align: center;font-weight: bold");try{return await this.request(`${this.originRepoURL}/pulls/${e.number}/merge`,{method:"PUT",body:JSON.stringify({commit_message:f.MERGE_COMMIT_MESSAGE,sha:e.head.sha,merge_method:this.mergeMethod})})}catch(t){if(t instanceof f.APIError&&405===t.status)return this.forceMergePR(e);throw t}}async forceMergePR(e){const t=k((await this.getDifferences(e.base.sha,e.head.sha)).files);let n="Automatically generated. Merged on Decap CMS\n\nForce merge of:";return t.forEach((e=>{n+=`\n* "${e.path}"`})),console.log("%c Automatic merge not possible - Forcing merge.","line-height: 30px;text-align: center;font-weight: bold"),this.getDefaultBranch().then((e=>this.updateTree(e.commit.sha,t))).then((e=>this.commit(n,e))).then((e=>this.patchBranch(this.branch,e.sha)))}toBase64(e){return Promise.resolve(u.Base64.encode(e))}async uploadBlob(e){const t=await(0,o.default)(e,"toBase64",(0,a.default)(this.toBase64,e.raw)),n=await this.request(`${this.repoURL}/git/blobs`,{method:"POST",body:JSON.stringify({content:t,encoding:"base64"})});return e.sha=n.sha,e}async updateTree(e,t,n=this.branch){const r=[],o=t.reduce(((e,t)=>{const n={path:(0,i.default)(t.path,"/"),mode:"100644",type:"blob",sha:t.sha};return t.newPath?r.push({from:t.path,to:t.newPath,sha:t.sha}):e.push(n),e}),[]);for(const{from:e,to:t,sha:i}of r){const r=(0,p.dirname)(e),a=(0,p.dirname)(t),s=await this.listFiles(r,{branch:n,depth:100});for(const t of s)o.push({path:t.path,mode:"100644",type:"blob",sha:null}),o.push({path:t.path.replace(r,a),mode:"100644",type:"blob",sha:t.path===e?i:t.id})}return g(g({},await this.createTree(e,o)),{},{parentSha:e})}async createTree(e,t){return await this.request(`${this.repoURL}/git/trees`,{method:"POST",body:JSON.stringify({base_tree:e,tree:t})})}commit(e,t){const n=t.parentSha?[t.parentSha]:[];return this.createCommit(e,t.sha,n)}async createCommit(e,t,n,r,i){return await this.request(`${this.repoURL}/git/commits`,{method:"POST",body:JSON.stringify({message:e,tree:t,parents:n,author:r,committer:i})})}async getUnpublishedEntrySha(e,t){const n=this.generateContentKey(e,t),r=(0,f.branchFromContentKey)(n);return(await this.getBranchPullRequest(r)).head.sha}}t.default=S,v(S,"DEFAULT_COMMIT_MESSAGE","Automatically generated by Decap CMS")},99312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=u(n(2784)),o=u(n(13980)),a=n(76320),s=n(30762),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;tnew Promise(((e,t)=>{this.setState({requestingFork:!0,approveFork:()=>{this.setState({requestingFork:!1}),e()},refuseFork:()=>{this.setState({requestingFork:!1}),t()}})})))),d(this,"handleLogin",(e=>{e.preventDefault();const t={base_url:this.props.base_url,site_id:"localhost"===document.location.host.split(":")[0]?"demo.decapcms.org":this.props.siteId,auth_endpoint:this.props.authEndpoint},n=new a.NetlifyAuthenticator(t),{open_authoring:r=!1,auth_scope:i=""}=this.props.config.backend,o=i||(r?"public_repo":"repo");n.authenticate({provider:"github",scope:o},((e,t)=>{if(!e)return r?this.loginWithOpenAuthoring(t).then((()=>this.props.onLogin(t))):void this.props.onLogin(t);this.setState({loginError:e.toString()})}))})),d(this,"renderLoginButton",(()=>{const{inProgress:e,t}=this.props;return e||this.state.findingFork?t("auth.loggingIn"):(0,l.jsx)(i.default.Fragment,null,(0,l.jsx)(f,{type:"github"}),t("auth.loginWithGitHub"))}))}loginWithOpenAuthoring(e){const{backend:t}=this.props;return this.setState({findingFork:!0}),t.authenticateWithFork({userData:e,getPermissionToFork:this.getPermissionToFork}).catch((e=>{throw this.setState({findingFork:!1}),console.error(e),e}))}getAuthenticationPageRenderArgs(){const{requestingFork:e}=this.state;if(e){const{approveFork:e,refuseFork:t}=this.state;return{renderPageContent:({LoginButton:n,TextButton:r,showAbortButton:i})=>(0,l.jsx)(p,null,(0,l.jsx)("p",null,"Open Authoring is enabled: we need to use a fork on your github account. (If a fork already exists, we'll use that.)"),(0,l.jsx)(h,null,(0,l.jsx)(n,{onClick:e},"Fork the repo"),i&&(0,l.jsx)(r,{onClick:t},"Don't fork the repo")))}}return{renderButtonContent:this.renderLoginButton}}render(){const{inProgress:e,config:t,t:n}=this.props,{loginError:r,requestingFork:i,findingFork:o}=this.state;return(0,l.jsx)(s.AuthenticationPage,c({onLogin:this.handleLogin,loginDisabled:e||o||i,loginErrorMessage:r,logoUrl:t.logo_url,siteUrl:t.site_url},this.getAuthenticationPageRenderArgs(),{t:n}))}}t.default=m,d(m,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool,base_url:o.default.string,siteId:o.default.string,authEndpoint:o.default.string,config:o.default.object.isRequired,clearHash:o.default.func,t:o.default.func.isRequired})},24759:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=g(n(93433)),i=g(n(5648)),o=n(34600),a=n(70468),s=n(29206),l=n(96044),u=n(33806),c=g(n(16336)),d=m(n(33870)),f=m(n(66654)),p=m(n(61526));function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}function m(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function g(e){return e&&e.__esModule?e:{default:e}}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t({headers:y(y({"Content-Type":"application/json; charset=utf-8"},t),{},{authorization:this.token?`${this.tokenKeyword} ${this.token}`:""})}))),t=(0,s.createHttpLink)({uri:`${this.apiRoot}/graphql`});return new o.ApolloClient({link:e.concat(t),cache:new a.InMemoryCache({fragmentMatcher:x}),defaultOptions:{watchQuery:{fetchPolicy:w,errorPolicy:"ignore"},query:{fetchPolicy:w,errorPolicy:"all"}}})}reset(){return this.client.resetStore()}async getRepository(e,t){const{data:n}=await this.query({query:f.repository,variables:{owner:e,name:t},fetchPolicy:_});return n.repository}query(e){return this.client.query(e).catch((e=>{throw new u.APIError(e.message,500,"GitHub")}))}async mutate(e){try{return await this.client.mutate(e)}catch(l){const c=l.graphQLErrors;if(Array.isArray(c)&&c.some((e=>"Ref cannot be created."===e.message))){var t,n;const i=(null==e||null===(t=e.variables)||void 0===t||null===(n=t.createRefInput)||void 0===n?void 0:n.name)||"",o=(0,r.default)(i,"refs/heads/");o&&await(0,u.throwOnConflictingBranches)(o,(e=>this.getBranch(e)),d.API_NAME)}else if(Array.isArray(c)&&c.some((e=>new RegExp(`A ref named "refs/heads/${u.CMS_BRANCH_PREFIX}/.+?" already exists in the repository.`).test(e.message)))){var i,o,a,s;const t=(null==e||null===(i=e.variables)||void 0===i||null===(o=i.createRefInput)||void 0===o?void 0:o.name)||"",n=(null==e||null===(a=e.variables)||void 0===a||null===(s=a.createRefInput)||void 0===s?void 0:s.oid)||"",l=(0,r.default)(t,"refs/heads/");if(l&&l.startsWith(`${u.CMS_BRANCH_PREFIX}/`)&&n)try{return await this.backupBranch(l),await this.deleteBranch(l),await this.client.mutate(e)}catch(e){console.log(e)}}throw new u.APIError(l.message,500,"GitHub")}}async hasWriteAccess(){const{repoOwner:e,repoName:t}=this;try{const{data:n}=await this.query({query:f.repoPermission,variables:{owner:e,name:t},fetchPolicy:_}),{viewerPermission:r}=n.repository;return["ADMIN","MAINTAIN","WRITE"].includes(r)}catch(e){throw console.error("Problem fetching repo data from GitHub"),e}}async user(){const{data:e}=await this.query({query:f.user,fetchPolicy:_});return e.viewer}async retrieveBlobObject(e,t,n,r={}){const{data:i}=await this.query(y({query:f.blob,variables:{owner:e,name:t,expression:n}},r));if(i.repository.object){const{is_binary:e,text:t}=i.repository.object;return{isNull:!1,isBinary:e,text:t}}return{isNull:!0}}getOwnerAndNameFromRepoUrl(e){let{repoOwner:t,repoName:n}=this;return e===this.originRepoURL&&({originRepoOwner:t,originRepoName:n}=this),{owner:t,name:n}}async readFile(e,t,{branch:n=this.branch,repoURL:r=this.repoURL,parseText:i=!0}={}){return t||(t=await this.getFileSha(e,{repoURL:r,branch:n})),await(0,u.readFile)(t,(()=>this.fetchBlobContent({sha:t,repoURL:r,parseText:i})),u.localForage,i)}async fetchBlobContent({sha:e,repoURL:t,parseText:n}){if(!n)return super.fetchBlobContent({sha:e,repoURL:t,parseText:n});const{owner:r,name:i}=this.getOwnerAndNameFromRepoUrl(t),{isNull:o,isBinary:a,text:s}=await this.retrieveBlobObject(r,i,e,{fetchPolicy:_});if(o)throw new u.APIError("Not Found",404,"GitHub");return a?super.fetchBlobContent({sha:e,repoURL:t,parseText:n}):s}async getPullRequestAuthor(e){const t=e.user;return(null==t?void 0:t.name)||(null==t?void 0:t.login)}async getPullRequests(e,t,n){const{originRepoOwner:r,originRepoName:i}=this;let o;o=t===d.PullRequestState.Open?["OPEN"]:t===d.PullRequestState.Closed?["CLOSED","MERGED"]:["OPEN","CLOSED","MERGED"];const{data:a}=await this.query({query:f.pullRequests,variables:y(y({owner:r,name:i},e?{head:e}:{}),{},{states:o})}),{pullRequests:s}=a.repository;return s.nodes.map(k).filter((e=>e.head.ref.startsWith(`${u.CMS_BRANCH_PREFIX}/`)&&n(e)))}async getOpenAuthoringBranches(){const{repoOwner:e,repoName:t}=this,{data:n}=await this.query({query:f.openAuthoringBranches,variables:{owner:e,name:t,refPrefix:`refs/heads/cms/${this.repo}/`}});return n.repository.refs.nodes.map((({name:e,prefix:t})=>({ref:`${t}${e}`})))}async getStatuses(e,t){const n=this.generateContentKey(e,t),r=(0,u.branchFromContentKey)(n),i=(await this.getBranchPullRequest(r)).head.sha,{originRepoOwner:o,originRepoName:a}=this,{data:s}=await this.query({query:f.statues,variables:{owner:o,name:a,sha:i}});if(s.repository.object){const{status:e}=s.repository.object,{contexts:t}=e||{contexts:[]};return t}return[]}getAllFiles(e,t){return e.reduce(((e,n)=>{if("tree"===n.type){var r;const i=(null===(r=n.object)||void 0===r?void 0:r.entries)||[];return[...e,...this.getAllFiles(i,`${t}/${n.name}`)]}return"blob"===n.type?[...e,{name:n.name,type:n.type,id:n.sha,path:`${t}/${n.name}`,size:n.blob?n.blob.size:0}]:e}),[])}async listFiles(e,{repoURL:t=this.repoURL,branch:n=this.branch,depth:r=1}={}){const{owner:o,name:a}=this.getOwnerAndNameFromRepoUrl(t),s=(0,i.default)(e,"/"),{data:l}=await this.query({query:f.files(r),variables:{owner:o,name:a,expression:`${n}:${s}`}});return l.repository.object?this.getAllFiles(l.repository.object.entries,s):[]}getBranchQualifiedName(e){return`refs/heads/${e}`}getBranchQuery(e,t,n){return{query:f.branch,variables:{owner:t,name:n,qualifiedName:this.getBranchQualifiedName(e)}}}async getDefaultBranch(){const{data:e}=await this.query(y({},this.getBranchQuery(this.branch,this.originRepoOwner,this.originRepoName)));return e.repository.branch}async getBranch(e){const{data:t}=await this.query(y(y({},this.getBranchQuery(e,this.repoOwner,this.repoName)),{},{fetchPolicy:_}));if(!t.repository.branch)throw new u.APIError("Branch not found",404,d.API_NAME);return t.repository.branch}async patchRef(e,t,n,r={}){if("heads"!==e)return super.patchRef(e,t,n,r);const i=r.force||!1,o=await this.getBranch(t),{data:a}=await this.mutate({mutation:p.updateBranch,variables:{input:{oid:n,refId:o.id,force:i}}});return a.updateRef.branch}async deleteBranch(e){const t=await this.getBranch(e),{data:n}=await this.mutate({mutation:p.deleteBranch,variables:{deleteRefInput:{refId:t.id}},update:e=>e.data.delete((0,a.defaultDataIdFromObject)(t))});return n.deleteRef}getPullRequestQuery(e){const{originRepoOwner:t,originRepoName:n}=this;return{query:f.pullRequest,variables:{owner:t,name:n,number:e}}}async getPullRequest(e){const{data:t}=await this.query(y(y({},this.getPullRequestQuery(e)),{},{fetchPolicy:_})),n="OPEN"===t.repository.pullRequest.state?d.PullRequestState.Open:d.PullRequestState.Closed;return y(y({},t.repository.pullRequest),{},{state:n})}getPullRequestAndBranchQuery(e,t){const{repoOwner:n,repoName:r}=this,{originRepoOwner:i,originRepoName:o}=this;return{query:f.pullRequestAndBranch,variables:{owner:n,name:r,originRepoOwner:i,originRepoName:o,number:t,qualifiedName:this.getBranchQualifiedName(e)}}}async getPullRequestAndBranch(e,t){const{data:n}=await this.query(y(y({},this.getPullRequestAndBranchQuery(e,t)),{},{fetchPolicy:_})),{repository:r,origin:i}=n;return{branch:r.branch,pullRequest:i.pullRequest}}async openPR(e){const t=await this.getPullRequest(e),{data:n}=await this.mutate({mutation:p.reopenPullRequest,variables:{reopenPullRequestInput:{pullRequestId:t.id}},update:(e,{data:t})=>{const{pullRequest:n}=t.reopenPullRequest,r={repository:y(y({},n.repository),{},{pullRequest:n})};e.writeQuery(y(y({},this.getPullRequestQuery(n.number)),{},{data:r}))}});return n.reopenPullRequest}async closePR(e){const t=await this.getPullRequest(e),{data:n}=await this.mutate({mutation:p.closePullRequest,variables:{closePullRequestInput:{pullRequestId:t.id}},update:(e,{data:t})=>{const{pullRequest:n}=t.closePullRequest,r={repository:y(y({},n.repository),{},{pullRequest:n})};e.writeQuery(y(y({},this.getPullRequestQuery(n.number)),{},{data:r}))}});return n.closePullRequest}async deleteUnpublishedEntry(e,t){try{const n=this.generateContentKey(e,t),r=(0,u.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);if(i.number!==d.MOCK_PULL_REQUEST){const{branch:e,pullRequest:t}=await this.getPullRequestAndBranch(r,i.number),{data:n}=await this.mutate({mutation:p.closePullRequestAndDeleteBranch,variables:{deleteRefInput:{refId:e.id},closePullRequestInput:{pullRequestId:t.id}},update:n=>{n.data.delete((0,a.defaultDataIdFromObject)(e)),n.data.delete((0,a.defaultDataIdFromObject)(t))}});return n.closePullRequest}return await this.deleteBranch(r)}catch(e){const{graphQLErrors:t}=e;if(t&&t.length>0&&t.some((e=>"NOT_FOUND"===e.type)))return;throw e}}async createPR(e,t){const[n,r]=await Promise.all([this.getRepository(this.originRepoOwner,this.originRepoName),this.useOpenAuthoring?`${(await this.user()).login}:${t}`:t]),{data:i}=await this.mutate({mutation:p.createPullRequest,variables:{createPullRequestInput:{baseRefName:this.branch,body:u.DEFAULT_PR_BODY,title:e,headRefName:r,repositoryId:n.id}},update:(e,{data:t})=>{const{pullRequest:n}=t.createPullRequest,r={repository:y(y({},n.repository),{},{pullRequest:n})};e.writeQuery(y(y({},this.getPullRequestQuery(n.number)),{},{data:r}))}}),{pullRequest:o}=i.createPullRequest;return y(y({},o),{},{head:{sha:o.headRefOid}})}async createBranch(e,t){const n=this.repoOwner,r=this.repoName,i=await this.getRepository(n,r),{data:o}=await this.mutate({mutation:p.createBranch,variables:{createRefInput:{name:this.getBranchQualifiedName(e),oid:t,repositoryId:i.id}},update:(t,{data:i})=>{const{branch:o}=i.createRef,a={repository:y(y({},o.repository),{},{branch:o})};t.writeQuery(y(y({},this.getBranchQuery(e,n,r)),{},{data:a}))}}),{branch:a}=o.createRef;return y(y({},a),{},{ref:`${a.prefix}${a.name}`})}async createBranchAndPullRequest(e,t,n){const r=this.originRepoOwner,i=this.originRepoName,o=await this.getRepository(r,i),{data:a}=await this.mutate({mutation:p.createBranchAndPullRequest,variables:{createRefInput:{name:this.getBranchQualifiedName(e),oid:t,repositoryId:o.id},createPullRequestInput:{baseRefName:this.branch,body:u.DEFAULT_PR_BODY,title:n,headRefName:e,repositoryId:o.id}},update:(t,{data:n})=>{const{branch:o}=n.createRef,{pullRequest:a}=n.createPullRequest,s={repository:y(y({},o.repository),{},{branch:o})},l={repository:y(y({},a.repository),{},{branch:o}),origin:y(y({},a.repository),{},{pullRequest:a})};t.writeQuery(y(y({},this.getBranchQuery(e,r,i)),{},{data:s})),t.writeQuery(y(y({},this.getPullRequestAndBranchQuery(e,a.number)),{},{data:l}))}}),{pullRequest:s}=a.createPullRequest;return k(s)}async getFileSha(e,{repoURL:t=this.repoURL,branch:n=this.branch}={}){const{owner:r,name:i}=this.getOwnerAndNameFromRepoUrl(t),{data:o}=await this.query({query:f.fileSha,variables:{owner:r,name:i,expression:`${n}:${e}`}});if(o.repository.file)return o.repository.file.sha;throw new u.APIError("Not Found",404,d.API_NAME)}}t.default=E},16336:e=>{"use strict";e.exports={__schema:{types:[{kind:"INTERFACE",name:"Node",possibleTypes:[{name:"AddedToProjectEvent"},{name:"App"},{name:"AssignedEvent"},{name:"BaseRefChangedEvent"},{name:"BaseRefForcePushedEvent"},{name:"Blob"},{name:"Bot"},{name:"BranchProtectionRule"},{name:"ClosedEvent"},{name:"CodeOfConduct"},{name:"CommentDeletedEvent"},{name:"Commit"},{name:"CommitComment"},{name:"CommitCommentThread"},{name:"ConvertedNoteToIssueEvent"},{name:"CrossReferencedEvent"},{name:"DemilestonedEvent"},{name:"DeployKey"},{name:"DeployedEvent"},{name:"Deployment"},{name:"DeploymentEnvironmentChangedEvent"},{name:"DeploymentStatus"},{name:"ExternalIdentity"},{name:"Gist"},{name:"GistComment"},{name:"HeadRefDeletedEvent"},{name:"HeadRefForcePushedEvent"},{name:"HeadRefRestoredEvent"},{name:"Issue"},{name:"IssueComment"},{name:"Label"},{name:"LabeledEvent"},{name:"Language"},{name:"License"},{name:"LockedEvent"},{name:"Mannequin"},{name:"MarketplaceCategory"},{name:"MarketplaceListing"},{name:"MentionedEvent"},{name:"MergedEvent"},{name:"Milestone"},{name:"MilestonedEvent"},{name:"MovedColumnsInProjectEvent"},{name:"Organization"},{name:"OrganizationIdentityProvider"},{name:"OrganizationInvitation"},{name:"PinnedEvent"},{name:"Project"},{name:"ProjectCard"},{name:"ProjectColumn"},{name:"PublicKey"},{name:"PullRequest"},{name:"PullRequestCommit"},{name:"PullRequestCommitCommentThread"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"},{name:"PullRequestReviewThread"},{name:"PushAllowance"},{name:"Reaction"},{name:"ReadyForReviewEvent"},{name:"Ref"},{name:"ReferencedEvent"},{name:"RegistryPackage"},{name:"RegistryPackageDependency"},{name:"RegistryPackageFile"},{name:"RegistryPackageTag"},{name:"RegistryPackageVersion"},{name:"Release"},{name:"ReleaseAsset"},{name:"RemovedFromProjectEvent"},{name:"RenamedTitleEvent"},{name:"ReopenedEvent"},{name:"Repository"},{name:"RepositoryInvitation"},{name:"RepositoryTopic"},{name:"ReviewDismissalAllowance"},{name:"ReviewDismissedEvent"},{name:"ReviewRequest"},{name:"ReviewRequestRemovedEvent"},{name:"ReviewRequestedEvent"},{name:"SavedReply"},{name:"SecurityAdvisory"},{name:"SponsorsListing"},{name:"Sponsorship"},{name:"Status"},{name:"StatusContext"},{name:"SubscribedEvent"},{name:"Tag"},{name:"Team"},{name:"Topic"},{name:"TransferredEvent"},{name:"Tree"},{name:"UnassignedEvent"},{name:"UnlabeledEvent"},{name:"UnlockedEvent"},{name:"UnpinnedEvent"},{name:"UnsubscribedEvent"},{name:"User"},{name:"UserBlockedEvent"},{name:"UserContentEdit"},{name:"UserStatus"}]},{kind:"INTERFACE",name:"UniformResourceLocatable",possibleTypes:[{name:"Bot"},{name:"ClosedEvent"},{name:"Commit"},{name:"CrossReferencedEvent"},{name:"Gist"},{name:"Issue"},{name:"Mannequin"},{name:"MergedEvent"},{name:"Milestone"},{name:"Organization"},{name:"PullRequest"},{name:"PullRequestCommit"},{name:"ReadyForReviewEvent"},{name:"Release"},{name:"Repository"},{name:"RepositoryTopic"},{name:"ReviewDismissedEvent"},{name:"User"}]},{kind:"INTERFACE",name:"Actor",possibleTypes:[{name:"Bot"},{name:"Mannequin"},{name:"Organization"},{name:"User"}]},{kind:"INTERFACE",name:"RegistryPackageOwner",possibleTypes:[{name:"Organization"},{name:"Repository"},{name:"User"}]},{kind:"INTERFACE",name:"ProjectOwner",possibleTypes:[{name:"Organization"},{name:"Repository"},{name:"User"}]},{kind:"INTERFACE",name:"Closable",possibleTypes:[{name:"Issue"},{name:"Milestone"},{name:"Project"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"Updatable",possibleTypes:[{name:"CommitComment"},{name:"GistComment"},{name:"Issue"},{name:"IssueComment"},{name:"Project"},{name:"PullRequest"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"UNION",name:"ProjectCardItem",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"Assignable",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"Comment",possibleTypes:[{name:"CommitComment"},{name:"GistComment"},{name:"Issue"},{name:"IssueComment"},{name:"PullRequest"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"UpdatableComment",possibleTypes:[{name:"CommitComment"},{name:"GistComment"},{name:"Issue"},{name:"IssueComment"},{name:"PullRequest"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"Labelable",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"Lockable",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"RegistryPackageSearch",possibleTypes:[{name:"Organization"},{name:"User"}]},{kind:"INTERFACE",name:"RepositoryOwner",possibleTypes:[{name:"Organization"},{name:"User"}]},{kind:"INTERFACE",name:"MemberStatusable",possibleTypes:[{name:"Organization"},{name:"Team"}]},{kind:"INTERFACE",name:"ProfileOwner",possibleTypes:[{name:"Organization"},{name:"User"}]},{kind:"UNION",name:"PinnableItem",possibleTypes:[{name:"Gist"},{name:"Repository"}]},{kind:"INTERFACE",name:"Starrable",possibleTypes:[{name:"Gist"},{name:"Repository"},{name:"Topic"}]},{kind:"INTERFACE",name:"RepositoryInfo",possibleTypes:[{name:"Repository"}]},{kind:"INTERFACE",name:"GitObject",possibleTypes:[{name:"Blob"},{name:"Commit"},{name:"Tag"},{name:"Tree"}]},{kind:"INTERFACE",name:"RepositoryNode",possibleTypes:[{name:"CommitComment"},{name:"CommitCommentThread"},{name:"Issue"},{name:"IssueComment"},{name:"PullRequest"},{name:"PullRequestCommitCommentThread"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"Subscribable",possibleTypes:[{name:"Commit"},{name:"Issue"},{name:"PullRequest"},{name:"Repository"},{name:"Team"}]},{kind:"INTERFACE",name:"Deletable",possibleTypes:[{name:"CommitComment"},{name:"GistComment"},{name:"IssueComment"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"Reactable",possibleTypes:[{name:"CommitComment"},{name:"Issue"},{name:"IssueComment"},{name:"PullRequest"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"GitSignature",possibleTypes:[{name:"GpgSignature"},{name:"SmimeSignature"},{name:"UnknownSignature"}]},{kind:"UNION",name:"RequestedReviewer",possibleTypes:[{name:"User"},{name:"Team"},{name:"Mannequin"}]},{kind:"UNION",name:"PullRequestTimelineItem",possibleTypes:[{name:"Commit"},{name:"CommitCommentThread"},{name:"PullRequestReview"},{name:"PullRequestReviewThread"},{name:"PullRequestReviewComment"},{name:"IssueComment"},{name:"ClosedEvent"},{name:"ReopenedEvent"},{name:"SubscribedEvent"},{name:"UnsubscribedEvent"},{name:"MergedEvent"},{name:"ReferencedEvent"},{name:"CrossReferencedEvent"},{name:"AssignedEvent"},{name:"UnassignedEvent"},{name:"LabeledEvent"},{name:"UnlabeledEvent"},{name:"MilestonedEvent"},{name:"DemilestonedEvent"},{name:"RenamedTitleEvent"},{name:"LockedEvent"},{name:"UnlockedEvent"},{name:"DeployedEvent"},{name:"DeploymentEnvironmentChangedEvent"},{name:"HeadRefDeletedEvent"},{name:"HeadRefRestoredEvent"},{name:"HeadRefForcePushedEvent"},{name:"BaseRefForcePushedEvent"},{name:"ReviewRequestedEvent"},{name:"ReviewRequestRemovedEvent"},{name:"ReviewDismissedEvent"},{name:"UserBlockedEvent"}]},{kind:"UNION",name:"Closer",possibleTypes:[{name:"Commit"},{name:"PullRequest"}]},{kind:"UNION",name:"ReferencedSubject",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"UNION",name:"Assignee",possibleTypes:[{name:"Bot"},{name:"Mannequin"},{name:"Organization"},{name:"User"}]},{kind:"UNION",name:"MilestoneItem",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"UNION",name:"RenamedTitleSubject",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"UNION",name:"PullRequestTimelineItems",possibleTypes:[{name:"PullRequestCommit"},{name:"PullRequestCommitCommentThread"},{name:"PullRequestReview"},{name:"PullRequestReviewThread"},{name:"PullRequestRevisionMarker"},{name:"BaseRefChangedEvent"},{name:"BaseRefForcePushedEvent"},{name:"DeployedEvent"},{name:"DeploymentEnvironmentChangedEvent"},{name:"HeadRefDeletedEvent"},{name:"HeadRefForcePushedEvent"},{name:"HeadRefRestoredEvent"},{name:"MergedEvent"},{name:"ReviewDismissedEvent"},{name:"ReviewRequestedEvent"},{name:"ReviewRequestRemovedEvent"},{name:"ReadyForReviewEvent"},{name:"IssueComment"},{name:"CrossReferencedEvent"},{name:"AddedToProjectEvent"},{name:"AssignedEvent"},{name:"ClosedEvent"},{name:"CommentDeletedEvent"},{name:"ConvertedNoteToIssueEvent"},{name:"DemilestonedEvent"},{name:"LabeledEvent"},{name:"LockedEvent"},{name:"MentionedEvent"},{name:"MilestonedEvent"},{name:"MovedColumnsInProjectEvent"},{name:"PinnedEvent"},{name:"ReferencedEvent"},{name:"RemovedFromProjectEvent"},{name:"RenamedTitleEvent"},{name:"ReopenedEvent"},{name:"SubscribedEvent"},{name:"TransferredEvent"},{name:"UnassignedEvent"},{name:"UnlabeledEvent"},{name:"UnlockedEvent"},{name:"UserBlockedEvent"},{name:"UnpinnedEvent"},{name:"UnsubscribedEvent"}]},{kind:"UNION",name:"IssueOrPullRequest",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"UNION",name:"IssueTimelineItem",possibleTypes:[{name:"Commit"},{name:"IssueComment"},{name:"CrossReferencedEvent"},{name:"ClosedEvent"},{name:"ReopenedEvent"},{name:"SubscribedEvent"},{name:"UnsubscribedEvent"},{name:"ReferencedEvent"},{name:"AssignedEvent"},{name:"UnassignedEvent"},{name:"LabeledEvent"},{name:"UnlabeledEvent"},{name:"UserBlockedEvent"},{name:"MilestonedEvent"},{name:"DemilestonedEvent"},{name:"RenamedTitleEvent"},{name:"LockedEvent"},{name:"UnlockedEvent"},{name:"TransferredEvent"}]},{kind:"UNION",name:"IssueTimelineItems",possibleTypes:[{name:"IssueComment"},{name:"CrossReferencedEvent"},{name:"AddedToProjectEvent"},{name:"AssignedEvent"},{name:"ClosedEvent"},{name:"CommentDeletedEvent"},{name:"ConvertedNoteToIssueEvent"},{name:"DemilestonedEvent"},{name:"LabeledEvent"},{name:"LockedEvent"},{name:"MentionedEvent"},{name:"MilestonedEvent"},{name:"MovedColumnsInProjectEvent"},{name:"PinnedEvent"},{name:"ReferencedEvent"},{name:"RemovedFromProjectEvent"},{name:"RenamedTitleEvent"},{name:"ReopenedEvent"},{name:"SubscribedEvent"},{name:"TransferredEvent"},{name:"UnassignedEvent"},{name:"UnlabeledEvent"},{name:"UnlockedEvent"},{name:"UserBlockedEvent"},{name:"UnpinnedEvent"},{name:"UnsubscribedEvent"}]},{kind:"UNION",name:"ReviewDismissalAllowanceActor",possibleTypes:[{name:"User"},{name:"Team"}]},{kind:"UNION",name:"PushAllowanceActor",possibleTypes:[{name:"User"},{name:"Team"}]},{kind:"UNION",name:"PermissionGranter",possibleTypes:[{name:"Organization"},{name:"Repository"},{name:"Team"}]},{kind:"INTERFACE",name:"Sponsorable",possibleTypes:[{name:"User"}]},{kind:"INTERFACE",name:"Contribution",possibleTypes:[{name:"CreatedCommitContribution"},{name:"CreatedIssueContribution"},{name:"CreatedPullRequestContribution"},{name:"CreatedPullRequestReviewContribution"},{name:"CreatedRepositoryContribution"},{name:"JoinedGitHubContribution"},{name:"RestrictedContribution"}]},{kind:"UNION",name:"CreatedRepositoryOrRestrictedContribution",possibleTypes:[{name:"CreatedRepositoryContribution"},{name:"RestrictedContribution"}]},{kind:"UNION",name:"CreatedIssueOrRestrictedContribution",possibleTypes:[{name:"CreatedIssueContribution"},{name:"RestrictedContribution"}]},{kind:"UNION",name:"CreatedPullRequestOrRestrictedContribution",possibleTypes:[{name:"CreatedPullRequestContribution"},{name:"RestrictedContribution"}]},{kind:"UNION",name:"SearchResultItem",possibleTypes:[{name:"Issue"},{name:"PullRequest"},{name:"Repository"},{name:"User"},{name:"Organization"},{name:"MarketplaceListing"},{name:"App"}]},{kind:"UNION",name:"CollectionItemContent",possibleTypes:[{name:"Repository"},{name:"Organization"},{name:"User"}]}]}}},16689:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.treeEntry=t.repository=t.pullRequest=t.object=t.fileEntry=t.branch=t.blobWithText=void 0;var r=n(21488);const i=t.repository=r.gql` + `)),n+=1,await this.migratePullRequest(e,`${n} of ${t.length}`);e=(await this.getPullRequests(void 0,_.Open,(e=>x(e,this.cmsLabelPrefix)))).map((e=>e.head.ref))}return e}async getStatuses(e,t){const n=this.generateContentKey(e,t),r=(0,f.branchFromContentKey)(n),i=(await this.getBranchPullRequest(r)).head.sha;return(await this.request(`${this.originRepoURL}/commits/${i}/status`)).statuses.map((e=>({context:e.context,target_url:e.target_url,state:e.state===w.Success?f.PreviewState.Success:f.PreviewState.Other})))}async persistFiles(e,t,n){const r=t.concat(e),o=r.map((e=>this.uploadBlob(e)));if(await Promise.all(o),n.useWorkflow){const o=t.map((({sha:e,path:t})=>({path:(0,i.default)(t,"/"),sha:e}))),a=e[0].slug;return this.editorialWorkflowGit(r,a,o,n)}return this.getDefaultBranch().then((e=>this.updateTree(e.commit.sha,r))).then((e=>this.commit(n.commitMessage,e))).then((e=>this.patchBranch(this.branch,e.sha)))}async getFileSha(e,{repoURL:t=this.repoURL,branch:n=this.branch}={}){const r=e.split("/"),i=(0,s.default)(r),o=(0,l.default)(r).join("/"),a=`${t}/git/trees/${n}:${encodeURIComponent(o)}`,u=(await this.request(a)).tree.find((e=>e.path===i));if(u)return u.sha;throw new f.APIError("Not Found",404,y)}async deleteFiles(e,t){if(this.useOpenAuthoring)return Promise.reject("Cannot delete published entries as an Open Authoring user!");const n=await this.getDefaultBranch(),r=e.map((e=>({path:e,sha:null}))),i=await this.updateTree(n.commit.sha,r),o=await this.commit(t,i);await this.patchBranch(this.branch,o.sha)}async createBranchAndPullRequest(e,t,n){return await this.createBranch(e,t),this.createPR(n,e)}async updatePullRequestLabels(e,t){await this.request(`${this.repoURL}/issues/${e}/labels`,{method:"PUT",body:JSON.stringify({labels:t})})}async diffFromFile(e){return{path:e.filename,newFile:"added"===e.status,sha:e.sha,binary:"renamed"!==e.status&&!e.patch||e.filename.endsWith(".svg")}}async editorialWorkflowGit(e,t,n,r){const i=this.generateContentKey(r.collectionName,t),o=(0,f.branchFromContentKey)(i);if(r.unpublished){const{files:t}=await this.getDifferences(this.branch,await this.getHeadReference(o)),i=await Promise.all(t.map((e=>this.diffFromFile(e)))),a=[];for(const e of i.filter((e=>e.binary)))n.some((t=>t.path===e.path))||a.push({path:e.path,sha:null});const s=await this.rebaseBranch(o),l=a.concat(e),u=await this.updateTree(s.sha,l,o),c=await this.commit(r.commitMessage,u);return this.patchBranch(o,c.sha,{force:!0})}{const t=await this.getDefaultBranch(),n=await this.updateTree(t.commit.sha,e),i=await this.commit(r.commitMessage,n);if(this.useOpenAuthoring)await this.createBranch(o,i.sha);else{const e=await this.createBranchAndPullRequest(o,i.sha,r.commitMessage);await this.setPullRequestStatus(e,r.status||this.initialWorkflowStatus)}}}async getDifferences(e,t){const n=this.useOpenAuthoring?10:1;for(let r=1;r<=n;r++)try{return await this.request(`${this.originRepoURL}/compare/${e}...${t}`)}catch(e){if(r===n)throw console.warn(`Reached maximum number of attempts '${n}' for getDifferences`),e;await new Promise((e=>setTimeout(e,500*r)))}throw new f.APIError("Not Found",404,y)}async rebaseSingleCommit(e,t){const n=k((await this.getDifferences(t.parents[0].sha,t.sha)).files);if(n.length>0){const r=await this.updateTree(e.sha,n),{message:i,author:o,committer:a}=t.commit;return await this.createCommit(i,r.sha,[e.sha],o,a)}return t}async rebaseCommits(e,t){return 0===t.length||t[0].parents[0].sha===e.sha?(0,s.default)(t):t.reduce(((e,t)=>e.then((e=>{const n=e,r=t;return this.rebaseSingleCommit(n,r)}))),Promise.resolve(e))}async rebaseBranch(e){try{const{base_commit:t,commits:n}=await this.getDifferences(this.branch,await this.getHeadReference(e));return await this.rebaseCommits(t,n)}catch(e){throw console.error(e),e}}async setPullRequestStatus(e,t){const n=[...e.labels.filter((e=>!(0,f.isCMSLabel)(e.name,this.cmsLabelPrefix))).map((e=>e.name)),(0,f.statusToLabel)(t,this.cmsLabelPrefix)];await this.updatePullRequestLabels(e.number,n)}async updateUnpublishedEntryStatus(e,t,n){const r=this.generateContentKey(e,t),i=(0,f.branchFromContentKey)(r),o=await this.getBranchPullRequest(i);if(this.useOpenAuthoring){if("pending_publish"===status)throw new Error('Open Authoring entries may not be set to the status "pending_publish".');if(o.number!==b){const{state:e}=o;e===_.Open&&"draft"===n&&await this.closePR(o.number),e===_.Closed&&"pending_review"===n&&await this.openPR(o.number)}else if("pending_review"===n){var a,s;const e=(0,f.branchFromContentKey)(r),t=(null===(a=(await this.getDifferences(this.branch,await this.getHeadReference(e))).commits[0])||void 0===a||null===(s=a.commit)||void 0===s?void 0:s.message)||C.DEFAULT_COMMIT_MESSAGE;await this.createPR(t,e)}}else await this.setPullRequestStatus(o,n)}async deleteUnpublishedEntry(e,t){const n=this.generateContentKey(e,t),r=(0,f.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);i.number!==b&&await this.closePR(i.number),await this.deleteBranch(r)}async publishUnpublishedEntry(e,t){const n=this.generateContentKey(e,t),r=(0,f.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);await this.mergePR(i),await this.deleteBranch(r)}async createRef(e,t,n){return await this.request(`${this.repoURL}/git/refs`,{method:"POST",body:JSON.stringify({ref:`refs/${e}/${t}`,sha:n})})}async patchRef(e,t,n,r={}){const i=r.force||!1;return await this.request(`${this.repoURL}/git/refs/${e}/${encodeURIComponent(t)}`,{method:"PATCH",body:JSON.stringify({sha:n,force:i})})}deleteRef(e,t){return this.request(`${this.repoURL}/git/refs/${e}/${encodeURIComponent(t)}`,{method:"DELETE"})}async getBranch(e){return await this.request(`${this.repoURL}/branches/${encodeURIComponent(e)}`)}async getDefaultBranch(){return await this.request(`${this.originRepoURL}/branches/${encodeURIComponent(this.branch)}`)}async backupBranch(e){try{const t=await this.getBranch(e);await this.createBranch(t.name.replace(new RegExp(`${f.CMS_BRANCH_PREFIX}/`),`${f.CMS_BRANCH_PREFIX}_${Date.now()}/`),t.commit.sha)}catch(e){console.warn(e)}}async createBranch(e,t){try{return await this.createRef("heads",e,t)}catch(n){const r=String(n.message||"");if("Reference update failed"===r)await(0,f.throwOnConflictingBranches)(e,(e=>this.getBranch(e)),y);else if("Reference already exists"===r&&e.startsWith(`${f.CMS_BRANCH_PREFIX}/`))try{return await this.backupBranch(e),await this.patchBranch(e,t,{force:!0})}catch(e){console.log(e)}throw n}}assertCmsBranch(e){return e.startsWith(`${f.CMS_BRANCH_PREFIX}/`)}patchBranch(e,t,n={}){const r=n.force||!1;if(r&&!this.assertCmsBranch(e))throw Error(`Only CMS branches can be force updated, cannot force update ${e}`);return this.patchRef("heads",e,t,{force:r})}deleteBranch(e){return this.deleteRef("heads",e).catch((e=>"Reference does not exist"===e.message?Promise.resolve():(console.error(e),Promise.reject(e))))}async getHeadReference(e){return`${this.repoOwner}:${e}`}async createPR(e,t){return await this.request(`${this.originRepoURL}/pulls`,{method:"POST",body:JSON.stringify({title:e,body:f.DEFAULT_PR_BODY,head:await this.getHeadReference(t),base:this.branch})})}async openPR(e){return console.log("%c Re-opening PR","line-height: 30px;text-align: center;font-weight: bold"),await this.request(`${this.originRepoURL}/pulls/${e}`,{method:"PATCH",body:JSON.stringify({state:_.Open})})}async closePR(e){return console.log("%c Deleting PR","line-height: 30px;text-align: center;font-weight: bold"),await this.request(`${this.originRepoURL}/pulls/${e}`,{method:"PATCH",body:JSON.stringify({state:_.Closed})})}async mergePR(e){console.log("%c Merging PR","line-height: 30px;text-align: center;font-weight: bold");try{return await this.request(`${this.originRepoURL}/pulls/${e.number}/merge`,{method:"PUT",body:JSON.stringify({commit_message:f.MERGE_COMMIT_MESSAGE,sha:e.head.sha,merge_method:this.mergeMethod})})}catch(t){if(t instanceof f.APIError&&405===t.status)return this.forceMergePR(e);throw t}}async forceMergePR(e){const t=k((await this.getDifferences(e.base.sha,e.head.sha)).files);let n="Automatically generated. Merged on Decap CMS\n\nForce merge of:";return t.forEach((e=>{n+=`\n* "${e.path}"`})),console.log("%c Automatic merge not possible - Forcing merge.","line-height: 30px;text-align: center;font-weight: bold"),this.getDefaultBranch().then((e=>this.updateTree(e.commit.sha,t))).then((e=>this.commit(n,e))).then((e=>this.patchBranch(this.branch,e.sha)))}toBase64(e){return Promise.resolve(u.Base64.encode(e))}async uploadBlob(e){const t=await(0,o.default)(e,"toBase64",(0,a.default)(this.toBase64,e.raw)),n=await this.request(`${this.repoURL}/git/blobs`,{method:"POST",body:JSON.stringify({content:t,encoding:"base64"})});return e.sha=n.sha,e}async updateTree(e,t,n=this.branch){const r=[],o=t.reduce(((e,t)=>{const n={path:(0,i.default)(t.path,"/"),mode:"100644",type:"blob",sha:t.sha};return t.newPath?r.push({from:t.path,to:t.newPath,sha:t.sha}):e.push(n),e}),[]);for(const{from:e,to:t,sha:i}of r){const r=(0,p.dirname)(e),a=(0,p.dirname)(t),s=await this.listFiles(r,{branch:n,depth:100});for(const t of s)o.push({path:t.path,mode:"100644",type:"blob",sha:null}),o.push({path:t.path.replace(r,a),mode:"100644",type:"blob",sha:t.path===e?i:t.id})}return g(g({},await this.createTree(e,o)),{},{parentSha:e})}async createTree(e,t){return await this.request(`${this.repoURL}/git/trees`,{method:"POST",body:JSON.stringify({base_tree:e,tree:t})})}commit(e,t){const n=t.parentSha?[t.parentSha]:[];return this.createCommit(e,t.sha,n)}async createCommit(e,t,n,r,i){return await this.request(`${this.repoURL}/git/commits`,{method:"POST",body:JSON.stringify({message:e,tree:t,parents:n,author:r,committer:i})})}async getUnpublishedEntrySha(e,t){const n=this.generateContentKey(e,t),r=(0,f.branchFromContentKey)(n);return(await this.getBranchPullRequest(r)).head.sha}}t.default=C,v(C,"DEFAULT_COMMIT_MESSAGE","Automatically generated by Decap CMS")},99312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=u(n(2784)),o=u(n(13980)),a=n(76320),s=n(30762),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;tnew Promise(((e,t)=>{this.setState({requestingFork:!0,approveFork:()=>{this.setState({requestingFork:!1}),e()},refuseFork:()=>{this.setState({requestingFork:!1}),t()}})})))),d(this,"handleLogin",(e=>{e.preventDefault();const t={base_url:this.props.base_url,site_id:"localhost"===document.location.host.split(":")[0]?"demo.decapcms.org":this.props.siteId,auth_endpoint:this.props.authEndpoint},n=new a.NetlifyAuthenticator(t),{open_authoring:r=!1,auth_scope:i=""}=this.props.config.backend,o=i||(r?"public_repo":"repo");n.authenticate({provider:"github",scope:o},((e,t)=>{if(!e)return r?this.loginWithOpenAuthoring(t).then((()=>this.props.onLogin(t))):void this.props.onLogin(t);this.setState({loginError:e.toString()})}))})),d(this,"renderLoginButton",(()=>{const{inProgress:e,t}=this.props;return e||this.state.findingFork?t("auth.loggingIn"):(0,l.jsx)(i.default.Fragment,null,(0,l.jsx)(f,{type:"github"}),t("auth.loginWithGitHub"))}))}loginWithOpenAuthoring(e){const{backend:t}=this.props;return this.setState({findingFork:!0}),t.authenticateWithFork({userData:e,getPermissionToFork:this.getPermissionToFork}).catch((e=>{throw this.setState({findingFork:!1}),console.error(e),e}))}getAuthenticationPageRenderArgs(){const{requestingFork:e}=this.state;if(e){const{approveFork:e,refuseFork:t}=this.state;return{renderPageContent:({LoginButton:n,TextButton:r,showAbortButton:i})=>(0,l.jsx)(p,null,(0,l.jsx)("p",null,"Open Authoring is enabled: we need to use a fork on your github account. (If a fork already exists, we'll use that.)"),(0,l.jsx)(h,null,(0,l.jsx)(n,{onClick:e},"Fork the repo"),i&&(0,l.jsx)(r,{onClick:t},"Don't fork the repo")))}}return{renderButtonContent:this.renderLoginButton}}render(){const{inProgress:e,config:t,t:n}=this.props,{loginError:r,requestingFork:i,findingFork:o}=this.state;return(0,l.jsx)(s.AuthenticationPage,c({onLogin:this.handleLogin,loginDisabled:e||o||i,loginErrorMessage:r,logoUrl:t.logo_url,siteUrl:t.site_url},this.getAuthenticationPageRenderArgs(),{t:n}))}}t.default=m,d(m,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool,base_url:o.default.string,siteId:o.default.string,authEndpoint:o.default.string,config:o.default.object.isRequired,clearHash:o.default.func,t:o.default.func.isRequired})},24759:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=g(n(93433)),i=g(n(5648)),o=n(34600),a=n(70468),s=n(29206),l=n(96044),u=n(33806),c=g(n(16336)),d=m(n(33870)),f=m(n(66654)),p=m(n(61526));function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}function m(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function g(e){return e&&e.__esModule?e:{default:e}}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t({headers:y(y({"Content-Type":"application/json; charset=utf-8"},t),{},{authorization:this.token?`${this.tokenKeyword} ${this.token}`:""})}))),t=(0,s.createHttpLink)({uri:`${this.apiRoot}/graphql`});return new o.ApolloClient({link:e.concat(t),cache:new a.InMemoryCache({fragmentMatcher:x}),defaultOptions:{watchQuery:{fetchPolicy:w,errorPolicy:"ignore"},query:{fetchPolicy:w,errorPolicy:"all"}}})}reset(){return this.client.resetStore()}async getRepository(e,t){const{data:n}=await this.query({query:f.repository,variables:{owner:e,name:t},fetchPolicy:_});return n.repository}query(e){return this.client.query(e).catch((e=>{throw new u.APIError(e.message,500,"GitHub")}))}async mutate(e){try{return await this.client.mutate(e)}catch(l){const c=l.graphQLErrors;if(Array.isArray(c)&&c.some((e=>"Ref cannot be created."===e.message))){var t,n;const i=(null==e||null===(t=e.variables)||void 0===t||null===(n=t.createRefInput)||void 0===n?void 0:n.name)||"",o=(0,r.default)(i,"refs/heads/");o&&await(0,u.throwOnConflictingBranches)(o,(e=>this.getBranch(e)),d.API_NAME)}else if(Array.isArray(c)&&c.some((e=>new RegExp(`A ref named "refs/heads/${u.CMS_BRANCH_PREFIX}/.+?" already exists in the repository.`).test(e.message)))){var i,o,a,s;const t=(null==e||null===(i=e.variables)||void 0===i||null===(o=i.createRefInput)||void 0===o?void 0:o.name)||"",n=(null==e||null===(a=e.variables)||void 0===a||null===(s=a.createRefInput)||void 0===s?void 0:s.oid)||"",l=(0,r.default)(t,"refs/heads/");if(l&&l.startsWith(`${u.CMS_BRANCH_PREFIX}/`)&&n)try{return await this.backupBranch(l),await this.deleteBranch(l),await this.client.mutate(e)}catch(e){console.log(e)}}throw new u.APIError(l.message,500,"GitHub")}}async hasWriteAccess(){const{repoOwner:e,repoName:t}=this;try{const{data:n}=await this.query({query:f.repoPermission,variables:{owner:e,name:t},fetchPolicy:_}),{viewerPermission:r}=n.repository;return["ADMIN","MAINTAIN","WRITE"].includes(r)}catch(e){throw console.error("Problem fetching repo data from GitHub"),e}}async user(){const{data:e}=await this.query({query:f.user,fetchPolicy:_});return e.viewer}async retrieveBlobObject(e,t,n,r={}){const{data:i}=await this.query(y({query:f.blob,variables:{owner:e,name:t,expression:n}},r));if(i.repository.object){const{is_binary:e,text:t}=i.repository.object;return{isNull:!1,isBinary:e,text:t}}return{isNull:!0}}getOwnerAndNameFromRepoUrl(e){let{repoOwner:t,repoName:n}=this;return e===this.originRepoURL&&({originRepoOwner:t,originRepoName:n}=this),{owner:t,name:n}}async readFile(e,t,{branch:n=this.branch,repoURL:r=this.repoURL,parseText:i=!0}={}){return t||(t=await this.getFileSha(e,{repoURL:r,branch:n})),await(0,u.readFile)(t,(()=>this.fetchBlobContent({sha:t,repoURL:r,parseText:i})),u.localForage,i)}async fetchBlobContent({sha:e,repoURL:t,parseText:n}){if(!n)return super.fetchBlobContent({sha:e,repoURL:t,parseText:n});const{owner:r,name:i}=this.getOwnerAndNameFromRepoUrl(t),{isNull:o,isBinary:a,text:s}=await this.retrieveBlobObject(r,i,e,{fetchPolicy:_});if(o)throw new u.APIError("Not Found",404,"GitHub");return a?super.fetchBlobContent({sha:e,repoURL:t,parseText:n}):s}async getPullRequestAuthor(e){const t=e.user;return(null==t?void 0:t.name)||(null==t?void 0:t.login)}async getPullRequests(e,t,n){const{originRepoOwner:r,originRepoName:i}=this;let o;o=t===d.PullRequestState.Open?["OPEN"]:t===d.PullRequestState.Closed?["CLOSED","MERGED"]:["OPEN","CLOSED","MERGED"];const{data:a}=await this.query({query:f.pullRequests,variables:y(y({owner:r,name:i},e?{head:e}:{}),{},{states:o})}),{pullRequests:s}=a.repository;return s.nodes.map(k).filter((e=>e.head.ref.startsWith(`${u.CMS_BRANCH_PREFIX}/`)&&n(e)))}async getOpenAuthoringBranches(){const{repoOwner:e,repoName:t}=this,{data:n}=await this.query({query:f.openAuthoringBranches,variables:{owner:e,name:t,refPrefix:`refs/heads/cms/${this.repo}/`}});return n.repository.refs.nodes.map((({name:e,prefix:t})=>({ref:`${t}${e}`})))}async getStatuses(e,t){const n=this.generateContentKey(e,t),r=(0,u.branchFromContentKey)(n),i=(await this.getBranchPullRequest(r)).head.sha,{originRepoOwner:o,originRepoName:a}=this,{data:s}=await this.query({query:f.statues,variables:{owner:o,name:a,sha:i}});if(s.repository.object){const{status:e}=s.repository.object,{contexts:t}=e||{contexts:[]};return t}return[]}getAllFiles(e,t){return e.reduce(((e,n)=>{if("tree"===n.type){var r;const i=(null===(r=n.object)||void 0===r?void 0:r.entries)||[];return[...e,...this.getAllFiles(i,`${t}/${n.name}`)]}return"blob"===n.type?[...e,{name:n.name,type:n.type,id:n.sha,path:`${t}/${n.name}`,size:n.blob?n.blob.size:0}]:e}),[])}async listFiles(e,{repoURL:t=this.repoURL,branch:n=this.branch,depth:r=1}={}){const{owner:o,name:a}=this.getOwnerAndNameFromRepoUrl(t),s=(0,i.default)(e,"/"),{data:l}=await this.query({query:f.files(r),variables:{owner:o,name:a,expression:`${n}:${s}`}});return l.repository.object?this.getAllFiles(l.repository.object.entries,s):[]}getBranchQualifiedName(e){return`refs/heads/${e}`}getBranchQuery(e,t,n){return{query:f.branch,variables:{owner:t,name:n,qualifiedName:this.getBranchQualifiedName(e)}}}async getDefaultBranch(){const{data:e}=await this.query(y({},this.getBranchQuery(this.branch,this.originRepoOwner,this.originRepoName)));return e.repository.branch}async getBranch(e){const{data:t}=await this.query(y(y({},this.getBranchQuery(e,this.repoOwner,this.repoName)),{},{fetchPolicy:_}));if(!t.repository.branch)throw new u.APIError("Branch not found",404,d.API_NAME);return t.repository.branch}async patchRef(e,t,n,r={}){if("heads"!==e)return super.patchRef(e,t,n,r);const i=r.force||!1,o=await this.getBranch(t),{data:a}=await this.mutate({mutation:p.updateBranch,variables:{input:{oid:n,refId:o.id,force:i}}});return a.updateRef.branch}async deleteBranch(e){const t=await this.getBranch(e),{data:n}=await this.mutate({mutation:p.deleteBranch,variables:{deleteRefInput:{refId:t.id}},update:e=>e.data.delete((0,a.defaultDataIdFromObject)(t))});return n.deleteRef}getPullRequestQuery(e){const{originRepoOwner:t,originRepoName:n}=this;return{query:f.pullRequest,variables:{owner:t,name:n,number:e}}}async getPullRequest(e){const{data:t}=await this.query(y(y({},this.getPullRequestQuery(e)),{},{fetchPolicy:_})),n="OPEN"===t.repository.pullRequest.state?d.PullRequestState.Open:d.PullRequestState.Closed;return y(y({},t.repository.pullRequest),{},{state:n})}getPullRequestAndBranchQuery(e,t){const{repoOwner:n,repoName:r}=this,{originRepoOwner:i,originRepoName:o}=this;return{query:f.pullRequestAndBranch,variables:{owner:n,name:r,originRepoOwner:i,originRepoName:o,number:t,qualifiedName:this.getBranchQualifiedName(e)}}}async getPullRequestAndBranch(e,t){const{data:n}=await this.query(y(y({},this.getPullRequestAndBranchQuery(e,t)),{},{fetchPolicy:_})),{repository:r,origin:i}=n;return{branch:r.branch,pullRequest:i.pullRequest}}async openPR(e){const t=await this.getPullRequest(e),{data:n}=await this.mutate({mutation:p.reopenPullRequest,variables:{reopenPullRequestInput:{pullRequestId:t.id}},update:(e,{data:t})=>{const{pullRequest:n}=t.reopenPullRequest,r={repository:y(y({},n.repository),{},{pullRequest:n})};e.writeQuery(y(y({},this.getPullRequestQuery(n.number)),{},{data:r}))}});return n.reopenPullRequest}async closePR(e){const t=await this.getPullRequest(e),{data:n}=await this.mutate({mutation:p.closePullRequest,variables:{closePullRequestInput:{pullRequestId:t.id}},update:(e,{data:t})=>{const{pullRequest:n}=t.closePullRequest,r={repository:y(y({},n.repository),{},{pullRequest:n})};e.writeQuery(y(y({},this.getPullRequestQuery(n.number)),{},{data:r}))}});return n.closePullRequest}async deleteUnpublishedEntry(e,t){try{const n=this.generateContentKey(e,t),r=(0,u.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);if(i.number!==d.MOCK_PULL_REQUEST){const{branch:e,pullRequest:t}=await this.getPullRequestAndBranch(r,i.number),{data:n}=await this.mutate({mutation:p.closePullRequestAndDeleteBranch,variables:{deleteRefInput:{refId:e.id},closePullRequestInput:{pullRequestId:t.id}},update:n=>{n.data.delete((0,a.defaultDataIdFromObject)(e)),n.data.delete((0,a.defaultDataIdFromObject)(t))}});return n.closePullRequest}return await this.deleteBranch(r)}catch(e){const{graphQLErrors:t}=e;if(t&&t.length>0&&t.some((e=>"NOT_FOUND"===e.type)))return;throw e}}async createPR(e,t){const[n,r]=await Promise.all([this.getRepository(this.originRepoOwner,this.originRepoName),this.useOpenAuthoring?`${(await this.user()).login}:${t}`:t]),{data:i}=await this.mutate({mutation:p.createPullRequest,variables:{createPullRequestInput:{baseRefName:this.branch,body:u.DEFAULT_PR_BODY,title:e,headRefName:r,repositoryId:n.id}},update:(e,{data:t})=>{const{pullRequest:n}=t.createPullRequest,r={repository:y(y({},n.repository),{},{pullRequest:n})};e.writeQuery(y(y({},this.getPullRequestQuery(n.number)),{},{data:r}))}}),{pullRequest:o}=i.createPullRequest;return y(y({},o),{},{head:{sha:o.headRefOid}})}async createBranch(e,t){const n=this.repoOwner,r=this.repoName,i=await this.getRepository(n,r),{data:o}=await this.mutate({mutation:p.createBranch,variables:{createRefInput:{name:this.getBranchQualifiedName(e),oid:t,repositoryId:i.id}},update:(t,{data:i})=>{const{branch:o}=i.createRef,a={repository:y(y({},o.repository),{},{branch:o})};t.writeQuery(y(y({},this.getBranchQuery(e,n,r)),{},{data:a}))}}),{branch:a}=o.createRef;return y(y({},a),{},{ref:`${a.prefix}${a.name}`})}async createBranchAndPullRequest(e,t,n){const r=this.originRepoOwner,i=this.originRepoName,o=await this.getRepository(r,i),{data:a}=await this.mutate({mutation:p.createBranchAndPullRequest,variables:{createRefInput:{name:this.getBranchQualifiedName(e),oid:t,repositoryId:o.id},createPullRequestInput:{baseRefName:this.branch,body:u.DEFAULT_PR_BODY,title:n,headRefName:e,repositoryId:o.id}},update:(t,{data:n})=>{const{branch:o}=n.createRef,{pullRequest:a}=n.createPullRequest,s={repository:y(y({},o.repository),{},{branch:o})},l={repository:y(y({},a.repository),{},{branch:o}),origin:y(y({},a.repository),{},{pullRequest:a})};t.writeQuery(y(y({},this.getBranchQuery(e,r,i)),{},{data:s})),t.writeQuery(y(y({},this.getPullRequestAndBranchQuery(e,a.number)),{},{data:l}))}}),{pullRequest:s}=a.createPullRequest;return k(s)}async getFileSha(e,{repoURL:t=this.repoURL,branch:n=this.branch}={}){const{owner:r,name:i}=this.getOwnerAndNameFromRepoUrl(t),{data:o}=await this.query({query:f.fileSha,variables:{owner:r,name:i,expression:`${n}:${e}`}});if(o.repository.file)return o.repository.file.sha;throw new u.APIError("Not Found",404,d.API_NAME)}}t.default=E},16336:e=>{"use strict";e.exports={__schema:{types:[{kind:"INTERFACE",name:"Node",possibleTypes:[{name:"AddedToProjectEvent"},{name:"App"},{name:"AssignedEvent"},{name:"BaseRefChangedEvent"},{name:"BaseRefForcePushedEvent"},{name:"Blob"},{name:"Bot"},{name:"BranchProtectionRule"},{name:"ClosedEvent"},{name:"CodeOfConduct"},{name:"CommentDeletedEvent"},{name:"Commit"},{name:"CommitComment"},{name:"CommitCommentThread"},{name:"ConvertedNoteToIssueEvent"},{name:"CrossReferencedEvent"},{name:"DemilestonedEvent"},{name:"DeployKey"},{name:"DeployedEvent"},{name:"Deployment"},{name:"DeploymentEnvironmentChangedEvent"},{name:"DeploymentStatus"},{name:"ExternalIdentity"},{name:"Gist"},{name:"GistComment"},{name:"HeadRefDeletedEvent"},{name:"HeadRefForcePushedEvent"},{name:"HeadRefRestoredEvent"},{name:"Issue"},{name:"IssueComment"},{name:"Label"},{name:"LabeledEvent"},{name:"Language"},{name:"License"},{name:"LockedEvent"},{name:"Mannequin"},{name:"MarketplaceCategory"},{name:"MarketplaceListing"},{name:"MentionedEvent"},{name:"MergedEvent"},{name:"Milestone"},{name:"MilestonedEvent"},{name:"MovedColumnsInProjectEvent"},{name:"Organization"},{name:"OrganizationIdentityProvider"},{name:"OrganizationInvitation"},{name:"PinnedEvent"},{name:"Project"},{name:"ProjectCard"},{name:"ProjectColumn"},{name:"PublicKey"},{name:"PullRequest"},{name:"PullRequestCommit"},{name:"PullRequestCommitCommentThread"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"},{name:"PullRequestReviewThread"},{name:"PushAllowance"},{name:"Reaction"},{name:"ReadyForReviewEvent"},{name:"Ref"},{name:"ReferencedEvent"},{name:"RegistryPackage"},{name:"RegistryPackageDependency"},{name:"RegistryPackageFile"},{name:"RegistryPackageTag"},{name:"RegistryPackageVersion"},{name:"Release"},{name:"ReleaseAsset"},{name:"RemovedFromProjectEvent"},{name:"RenamedTitleEvent"},{name:"ReopenedEvent"},{name:"Repository"},{name:"RepositoryInvitation"},{name:"RepositoryTopic"},{name:"ReviewDismissalAllowance"},{name:"ReviewDismissedEvent"},{name:"ReviewRequest"},{name:"ReviewRequestRemovedEvent"},{name:"ReviewRequestedEvent"},{name:"SavedReply"},{name:"SecurityAdvisory"},{name:"SponsorsListing"},{name:"Sponsorship"},{name:"Status"},{name:"StatusContext"},{name:"SubscribedEvent"},{name:"Tag"},{name:"Team"},{name:"Topic"},{name:"TransferredEvent"},{name:"Tree"},{name:"UnassignedEvent"},{name:"UnlabeledEvent"},{name:"UnlockedEvent"},{name:"UnpinnedEvent"},{name:"UnsubscribedEvent"},{name:"User"},{name:"UserBlockedEvent"},{name:"UserContentEdit"},{name:"UserStatus"}]},{kind:"INTERFACE",name:"UniformResourceLocatable",possibleTypes:[{name:"Bot"},{name:"ClosedEvent"},{name:"Commit"},{name:"CrossReferencedEvent"},{name:"Gist"},{name:"Issue"},{name:"Mannequin"},{name:"MergedEvent"},{name:"Milestone"},{name:"Organization"},{name:"PullRequest"},{name:"PullRequestCommit"},{name:"ReadyForReviewEvent"},{name:"Release"},{name:"Repository"},{name:"RepositoryTopic"},{name:"ReviewDismissedEvent"},{name:"User"}]},{kind:"INTERFACE",name:"Actor",possibleTypes:[{name:"Bot"},{name:"Mannequin"},{name:"Organization"},{name:"User"}]},{kind:"INTERFACE",name:"RegistryPackageOwner",possibleTypes:[{name:"Organization"},{name:"Repository"},{name:"User"}]},{kind:"INTERFACE",name:"ProjectOwner",possibleTypes:[{name:"Organization"},{name:"Repository"},{name:"User"}]},{kind:"INTERFACE",name:"Closable",possibleTypes:[{name:"Issue"},{name:"Milestone"},{name:"Project"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"Updatable",possibleTypes:[{name:"CommitComment"},{name:"GistComment"},{name:"Issue"},{name:"IssueComment"},{name:"Project"},{name:"PullRequest"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"UNION",name:"ProjectCardItem",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"Assignable",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"Comment",possibleTypes:[{name:"CommitComment"},{name:"GistComment"},{name:"Issue"},{name:"IssueComment"},{name:"PullRequest"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"UpdatableComment",possibleTypes:[{name:"CommitComment"},{name:"GistComment"},{name:"Issue"},{name:"IssueComment"},{name:"PullRequest"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"Labelable",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"Lockable",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"RegistryPackageSearch",possibleTypes:[{name:"Organization"},{name:"User"}]},{kind:"INTERFACE",name:"RepositoryOwner",possibleTypes:[{name:"Organization"},{name:"User"}]},{kind:"INTERFACE",name:"MemberStatusable",possibleTypes:[{name:"Organization"},{name:"Team"}]},{kind:"INTERFACE",name:"ProfileOwner",possibleTypes:[{name:"Organization"},{name:"User"}]},{kind:"UNION",name:"PinnableItem",possibleTypes:[{name:"Gist"},{name:"Repository"}]},{kind:"INTERFACE",name:"Starrable",possibleTypes:[{name:"Gist"},{name:"Repository"},{name:"Topic"}]},{kind:"INTERFACE",name:"RepositoryInfo",possibleTypes:[{name:"Repository"}]},{kind:"INTERFACE",name:"GitObject",possibleTypes:[{name:"Blob"},{name:"Commit"},{name:"Tag"},{name:"Tree"}]},{kind:"INTERFACE",name:"RepositoryNode",possibleTypes:[{name:"CommitComment"},{name:"CommitCommentThread"},{name:"Issue"},{name:"IssueComment"},{name:"PullRequest"},{name:"PullRequestCommitCommentThread"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"Subscribable",possibleTypes:[{name:"Commit"},{name:"Issue"},{name:"PullRequest"},{name:"Repository"},{name:"Team"}]},{kind:"INTERFACE",name:"Deletable",possibleTypes:[{name:"CommitComment"},{name:"GistComment"},{name:"IssueComment"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"Reactable",possibleTypes:[{name:"CommitComment"},{name:"Issue"},{name:"IssueComment"},{name:"PullRequest"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"GitSignature",possibleTypes:[{name:"GpgSignature"},{name:"SmimeSignature"},{name:"UnknownSignature"}]},{kind:"UNION",name:"RequestedReviewer",possibleTypes:[{name:"User"},{name:"Team"},{name:"Mannequin"}]},{kind:"UNION",name:"PullRequestTimelineItem",possibleTypes:[{name:"Commit"},{name:"CommitCommentThread"},{name:"PullRequestReview"},{name:"PullRequestReviewThread"},{name:"PullRequestReviewComment"},{name:"IssueComment"},{name:"ClosedEvent"},{name:"ReopenedEvent"},{name:"SubscribedEvent"},{name:"UnsubscribedEvent"},{name:"MergedEvent"},{name:"ReferencedEvent"},{name:"CrossReferencedEvent"},{name:"AssignedEvent"},{name:"UnassignedEvent"},{name:"LabeledEvent"},{name:"UnlabeledEvent"},{name:"MilestonedEvent"},{name:"DemilestonedEvent"},{name:"RenamedTitleEvent"},{name:"LockedEvent"},{name:"UnlockedEvent"},{name:"DeployedEvent"},{name:"DeploymentEnvironmentChangedEvent"},{name:"HeadRefDeletedEvent"},{name:"HeadRefRestoredEvent"},{name:"HeadRefForcePushedEvent"},{name:"BaseRefForcePushedEvent"},{name:"ReviewRequestedEvent"},{name:"ReviewRequestRemovedEvent"},{name:"ReviewDismissedEvent"},{name:"UserBlockedEvent"}]},{kind:"UNION",name:"Closer",possibleTypes:[{name:"Commit"},{name:"PullRequest"}]},{kind:"UNION",name:"ReferencedSubject",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"UNION",name:"Assignee",possibleTypes:[{name:"Bot"},{name:"Mannequin"},{name:"Organization"},{name:"User"}]},{kind:"UNION",name:"MilestoneItem",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"UNION",name:"RenamedTitleSubject",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"UNION",name:"PullRequestTimelineItems",possibleTypes:[{name:"PullRequestCommit"},{name:"PullRequestCommitCommentThread"},{name:"PullRequestReview"},{name:"PullRequestReviewThread"},{name:"PullRequestRevisionMarker"},{name:"BaseRefChangedEvent"},{name:"BaseRefForcePushedEvent"},{name:"DeployedEvent"},{name:"DeploymentEnvironmentChangedEvent"},{name:"HeadRefDeletedEvent"},{name:"HeadRefForcePushedEvent"},{name:"HeadRefRestoredEvent"},{name:"MergedEvent"},{name:"ReviewDismissedEvent"},{name:"ReviewRequestedEvent"},{name:"ReviewRequestRemovedEvent"},{name:"ReadyForReviewEvent"},{name:"IssueComment"},{name:"CrossReferencedEvent"},{name:"AddedToProjectEvent"},{name:"AssignedEvent"},{name:"ClosedEvent"},{name:"CommentDeletedEvent"},{name:"ConvertedNoteToIssueEvent"},{name:"DemilestonedEvent"},{name:"LabeledEvent"},{name:"LockedEvent"},{name:"MentionedEvent"},{name:"MilestonedEvent"},{name:"MovedColumnsInProjectEvent"},{name:"PinnedEvent"},{name:"ReferencedEvent"},{name:"RemovedFromProjectEvent"},{name:"RenamedTitleEvent"},{name:"ReopenedEvent"},{name:"SubscribedEvent"},{name:"TransferredEvent"},{name:"UnassignedEvent"},{name:"UnlabeledEvent"},{name:"UnlockedEvent"},{name:"UserBlockedEvent"},{name:"UnpinnedEvent"},{name:"UnsubscribedEvent"}]},{kind:"UNION",name:"IssueOrPullRequest",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"UNION",name:"IssueTimelineItem",possibleTypes:[{name:"Commit"},{name:"IssueComment"},{name:"CrossReferencedEvent"},{name:"ClosedEvent"},{name:"ReopenedEvent"},{name:"SubscribedEvent"},{name:"UnsubscribedEvent"},{name:"ReferencedEvent"},{name:"AssignedEvent"},{name:"UnassignedEvent"},{name:"LabeledEvent"},{name:"UnlabeledEvent"},{name:"UserBlockedEvent"},{name:"MilestonedEvent"},{name:"DemilestonedEvent"},{name:"RenamedTitleEvent"},{name:"LockedEvent"},{name:"UnlockedEvent"},{name:"TransferredEvent"}]},{kind:"UNION",name:"IssueTimelineItems",possibleTypes:[{name:"IssueComment"},{name:"CrossReferencedEvent"},{name:"AddedToProjectEvent"},{name:"AssignedEvent"},{name:"ClosedEvent"},{name:"CommentDeletedEvent"},{name:"ConvertedNoteToIssueEvent"},{name:"DemilestonedEvent"},{name:"LabeledEvent"},{name:"LockedEvent"},{name:"MentionedEvent"},{name:"MilestonedEvent"},{name:"MovedColumnsInProjectEvent"},{name:"PinnedEvent"},{name:"ReferencedEvent"},{name:"RemovedFromProjectEvent"},{name:"RenamedTitleEvent"},{name:"ReopenedEvent"},{name:"SubscribedEvent"},{name:"TransferredEvent"},{name:"UnassignedEvent"},{name:"UnlabeledEvent"},{name:"UnlockedEvent"},{name:"UserBlockedEvent"},{name:"UnpinnedEvent"},{name:"UnsubscribedEvent"}]},{kind:"UNION",name:"ReviewDismissalAllowanceActor",possibleTypes:[{name:"User"},{name:"Team"}]},{kind:"UNION",name:"PushAllowanceActor",possibleTypes:[{name:"User"},{name:"Team"}]},{kind:"UNION",name:"PermissionGranter",possibleTypes:[{name:"Organization"},{name:"Repository"},{name:"Team"}]},{kind:"INTERFACE",name:"Sponsorable",possibleTypes:[{name:"User"}]},{kind:"INTERFACE",name:"Contribution",possibleTypes:[{name:"CreatedCommitContribution"},{name:"CreatedIssueContribution"},{name:"CreatedPullRequestContribution"},{name:"CreatedPullRequestReviewContribution"},{name:"CreatedRepositoryContribution"},{name:"JoinedGitHubContribution"},{name:"RestrictedContribution"}]},{kind:"UNION",name:"CreatedRepositoryOrRestrictedContribution",possibleTypes:[{name:"CreatedRepositoryContribution"},{name:"RestrictedContribution"}]},{kind:"UNION",name:"CreatedIssueOrRestrictedContribution",possibleTypes:[{name:"CreatedIssueContribution"},{name:"RestrictedContribution"}]},{kind:"UNION",name:"CreatedPullRequestOrRestrictedContribution",possibleTypes:[{name:"CreatedPullRequestContribution"},{name:"RestrictedContribution"}]},{kind:"UNION",name:"SearchResultItem",possibleTypes:[{name:"Issue"},{name:"PullRequest"},{name:"Repository"},{name:"User"},{name:"Organization"},{name:"MarketplaceListing"},{name:"App"}]},{kind:"UNION",name:"CollectionItemContent",possibleTypes:[{name:"Repository"},{name:"Organization"},{name:"User"}]}]}}},16689:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.treeEntry=t.repository=t.pullRequest=t.object=t.fileEntry=t.branch=t.blobWithText=void 0;var r=n(21488);const i=t.repository=r.gql` fragment RepositoryParts on Repository { id isFork @@ -329,13 +329,13 @@ } ${o.repository} ${o.object} -`},22026:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.API_NAME=void 0,t.getMaxAccess=S;var r=v(n(93433)),i=v(n(36346)),o=v(n(83465)),a=v(n(85395)),s=n(34600),l=n(70468),u=n(29206),c=n(96044),d=n(33806),f=n(95978),p=n(46670),h=n(21023),m=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=g(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(31183));function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;tt.group_access_level>e.group_access_level?t:e),e[0])}function C(e,t,n){for(let r=0;r{const t=d.unsentRequest.withHeaders(this.token?{Authorization:`Bearer ${this.token}`}:{},e);return Promise.resolve(t)})),w(this,"buildRequest",(async e=>{const t=d.unsentRequest.withRoot(this.apiRoot)(e),n=await this.withAuthorizationHeaders(t);return n.has("cache")?n:d.unsentRequest.withNoCache(n)})),w(this,"request",(async e=>{try{return(0,d.requestWithBackoff)(this,e)}catch(e){throw new d.APIError(e.message,null,x)}})),w(this,"responseToJSON",(0,d.responseParser)({format:"json",apiName:x})),w(this,"responseToBlob",(0,d.responseParser)({format:"blob",apiName:x})),w(this,"responseToText",(0,d.responseParser)({format:"text",apiName:x})),w(this,"requestJSON",(e=>this.request(e).then(this.responseToJSON))),w(this,"requestText",(e=>this.request(e).then(this.responseToText))),w(this,"user",(()=>this.requestJSON("/user"))),w(this,"WRITE_ACCESS",30),w(this,"MAINTAINER_ACCESS",40),w(this,"hasWriteAccess",(async()=>{const{shared_with_groups:e,permissions:t}=await this.requestJSON(this.repoURL),{project_access:n,group_access:r}=t;if(n&&n.access_level>=this.WRITE_ACCESS)return!0;if(r&&r.access_level>=this.WRITE_ACCESS)return!0;if(e&&e.length>0){const t=S(e);if(t.group_access_level>=this.MAINTAINER_ACCESS)return!0;if(t.group_access_level>=this.WRITE_ACCESS)try{const e=await this.getDefaultBranch();if(e.developers_can_merge&&e.developers_can_push)return!0}catch(e){console.log("Failed getting default branch",e)}}return!1})),w(this,"readFile",(async(e,t,{parseText:n=!0,branch:r=this.branch}={})=>await(0,d.readFile)(t,(async()=>await this.request({url:`${this.repoURL}/repository/files/${encodeURIComponent(e)}/raw`,params:{ref:r},cache:"no-store"}).then(n?this.responseToText:this.responseToBlob)),d.localForage,n))),w(this,"getCursorFromHeaders",(e=>{const t=parseInt(e.get("X-Page"),10),n=parseInt(e.get("X-Total-Pages"),10),r=parseInt(e.get("X-Per-Page"),10),i=parseInt(e.get("X-Total"),10),o=(0,d.parseLinkHeader)(e.get("Link")),a=(0,p.Map)(o).keySeq().flatMap((e=>"prev"===e&&t>1||"next"===e&&t1||"last"===e&&tthis.getCursorFromHeaders(e))),w(this,"fetchCursor",(e=>(0,a.default)([d.unsentRequest.withMethod("HEAD"),this.request,(0,d.then)(this.getCursor)])(e))),w(this,"fetchCursorAndEntries",(e=>(0,a.default)([d.unsentRequest.withMethod("GET"),this.request,e=>Promise.all([e.then(this.getCursor),e.then(this.responseToJSON).catch((e=>{if(404===e.status)return[];throw e}))]),(0,d.then)((([e,t])=>({cursor:e,entries:t})))])(e))),w(this,"listFiles",(async(e,t=!1)=>{const{entries:n,cursor:r}=await this.fetchCursorAndEntries({url:`${this.repoURL}/repository/tree`,params:{path:e,ref:this.branch,recursive:t}});return{files:n.filter((({type:e})=>"blob"===e)),cursor:r}})),w(this,"traverseCursor",(async(e,t)=>{const n=e.data.getIn(["links",t]),{entries:r,cursor:i}=await this.fetchCursorAndEntries(n);return{entries:r.filter((({type:e})=>"blob"===e)),cursor:i}})),w(this,"listAllFilesGraphQL",(async(e,t,n)=>{const r=[];let i,o;do{i=await this.graphQLClient.query({query:m.files,variables:{repo:this.repo,branch:n,path:e,recursive:t,cursor:o}}),r.push(...i.data.project.repository.tree.blobs.nodes),o=i.data.project.repository.tree.blobs.pageInfo.endCursor}while(i.data.project.repository.tree.blobs.pageInfo.hasNextPage);return r})),w(this,"readFilesGraphQL",(async e=>{const t=e.map((({path:e})=>e)),n=[];C(t,90,(e=>{n.push(this.graphQLClient.query({query:m.blobs,variables:{repo:this.repo,branch:this.branch,paths:e},fetchPolicy:"cache-first"}))}));const r=[];C(t,8,(e=>{r.push(this.graphQLClient.query({query:m.lastCommits(e),variables:{repo:this.repo,branch:this.branch},fetchPolicy:"cache-first"}))}));const[i,o]=await Promise.all([(await Promise.all(n)).map((e=>e.data.project.repository.blobs.nodes)),(await Promise.all(r)).map((e=>Object.values(e.data.project.repository).map((({lastCommit:e})=>e)).filter(Boolean)))]),a=i.flat().map((e=>e.data)),s=o.flat().map((({author:e,authoredDate:t,authorName:n})=>({author:e?e.name||e.username||e.publicEmail:n,updatedOn:t})));return e.map(((e,t)=>({file:b(b({},e),s[t]),data:a[t]})))})),w(this,"listAllFiles",(async(e,t=!1,n=this.branch)=>{if(this.graphQLClient)return await this.listAllFilesGraphQL(e,t,n);const r=[];let{cursor:i,entries:o}=await this.fetchCursorAndEntries({url:`${this.repoURL}/repository/tree`,params:{path:e,ref:n,per_page:100,recursive:t}});for(r.push(...o);i&&i.actions.has("next");){const e=i.data.getIn(["links","next"]),{cursor:t,entries:n}=await this.fetchCursorAndEntries(e);r.push(...n),i=t}return r.filter((({type:e})=>"blob"===e))})),w(this,"toBase64",(e=>Promise.resolve(f.Base64.encode(e)))),w(this,"fromBase64",(e=>f.Base64.decode(e))),w(this,"deleteFiles",((e,t)=>{const n={commit_message:t,branch:this.branch};if(this.commitAuthor){const{name:e,email:t}=this.commitAuthor;n.author_name=e,n.author_email=t}const r=e.map((e=>({path:e,action:k.DELETE})));return this.uploadAndCommit(r,{commitMessage:t})})),this.apiRoot=e.apiRoot||"https://gitlab.com/api/v4",this.graphQLAPIRoot=e.graphQLAPIRoot||"https://gitlab.com/api/graphql",this.token=e.token||!1,this.branch=e.branch||"master",this.repo=e.repo||"",this.repoURL=`/projects/${encodeURIComponent(this.repo)}`,this.squashMerges=e.squashMerges,this.initialWorkflowStatus=e.initialWorkflowStatus,this.cmsLabelPrefix=e.cmsLabelPrefix,!0===e.useGraphQL&&(this.graphQLClient=this.getApolloClient())}getApolloClient(){const e=(0,c.setContext)(((e,{headers:t})=>({headers:b(b({"Content-Type":"application/json; charset=utf-8"},t),{},{authorization:this.token?`token ${this.token}`:""})}))),t=(0,u.createHttpLink)({uri:this.graphQLAPIRoot});return new s.ApolloClient({link:e.concat(t),cache:new l.InMemoryCache,defaultOptions:{watchQuery:{fetchPolicy:_,errorPolicy:"ignore"},query:{fetchPolicy:_,errorPolicy:"all"}}})}reset(){var e;return null===(e=this.graphQLClient)||void 0===e?void 0:e.resetStore()}async readFileMetadata(e,t){return await(0,d.readFileMetadata)(t,(async()=>{try{const t=(await this.requestJSON({url:`${this.repoURL}/repository/commits`,params:{path:e,ref_name:this.branch}}))[0];return{author:t.author_name||t.author_email,updatedOn:t.authored_date}}catch(e){return{author:"",updatedOn:""}}}),d.localForage)}async getBranch(e){return await this.requestJSON(`${this.repoURL}/repository/branches/${encodeURIComponent(e)}`)}async uploadAndCommit(e,{commitMessage:t="",branch:n=this.branch,newBranch:r=!1}){const i=e.map((e=>b(b({action:e.action,file_path:e.path},e.oldPath?{previous_path:e.oldPath}:{}),void 0!==e.base64Content?{content:e.base64Content,encoding:"base64"}:{}))),o=b({branch:n,commit_message:t,actions:i},r?{start_branch:this.branch}:{});if(this.commitAuthor){const{name:e,email:t}=this.commitAuthor;o.author_name=e,o.author_email=t}try{return await this.requestJSON({url:`${this.repoURL}/repository/commits`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(o)})}catch(e){const t=e.message||"";throw r&&t.includes(`Could not update ${n}`)&&await(0,d.throwOnConflictingBranches)(n,(e=>this.getBranch(e)),x),e}}async getCommitItems(e,t){const n=await Promise.all(e.map((async e=>{const[n,a]=await Promise.all([(0,i.default)(e,"toBase64",(0,o.default)(this.toBase64,e.raw)),this.isFileExists(e.path,t)]);let s,l=k.CREATE,u=(0,r.default)(e.path,"/");return a&&(s=e.newPath&&u,l=e.newPath&&e.newPath!==s?k.MOVE:k.UPDATE,u=e.newPath?(0,r.default)(e.newPath,"/"):u),{action:l,base64Content:n,path:u,oldPath:s}})));for(const e of n.filter((e=>e.oldPath&&e.action===k.MOVE))){const r=(0,h.dirname)(e.oldPath),i=(0,h.dirname)(e.path);(await this.listAllFiles(r,!0,t)).filter((t=>t.path!==e.oldPath)).forEach((e=>{n.push({action:k.MOVE,path:e.path.replace(r,i),oldPath:e.path})}))}return n}async persistFiles(e,t,n){const r=[...e,...t];if(n.useWorkflow){const t=e[0].slug;return this.editorialWorkflowGit(r,t,n)}{const e=await this.getCommitItems(r,this.branch);return this.uploadAndCommit(e,{commitMessage:n.commitMessage})}}async getMergeRequests(e){return(await this.requestJSON({url:`${this.repoURL}/merge_requests`,params:b({state:"opened",labels:"Any",per_page:100,target_branch:this.branch},e?{source_branch:e}:{})})).filter((e=>e.source_branch.startsWith(d.CMS_BRANCH_PREFIX)&&e.labels.some((e=>(0,d.isCMSLabel)(e,this.cmsLabelPrefix)))))}async listUnpublishedBranches(){return console.log("%c Checking for Unpublished entries","line-height: 30px;text-align: center;font-weight: bold"),(await this.getMergeRequests()).map((e=>e.source_branch))}async getFileId(e,t){return(await this.request({method:"HEAD",url:`${this.repoURL}/repository/files/${encodeURIComponent(e)}`,params:{ref:t}})).headers.get("X-Gitlab-Blob-Id")}async isFileExists(e,t){return await this.requestText({method:"HEAD",url:`${this.repoURL}/repository/files/${encodeURIComponent(e)}`,params:{ref:t}}).then((()=>!0)).catch((e=>{if(e instanceof d.APIError&&404===e.status)return!1;throw e}))}async getBranchMergeRequest(e){const t=await this.getMergeRequests(e);if(t.length<=0)throw new d.EditorialWorkflowError("content is not under editorial workflow",!0);return t[0]}async getDifferences(e,t=this.branch){if(e===t)return[];const n=await this.requestJSON({url:`${this.repoURL}/repository/compare`,params:{from:t,to:e}});if(n.diffs.length>=1e3)throw new d.APIError("Diff limit reached",null,x);return n.diffs.map((e=>{let t="modified";return e.new_file?t="added":e.deleted_file?t="deleted":e.renamed_file&&(t="renamed"),{status:t,oldPath:e.old_path,newPath:e.new_path,newFile:e.new_file,path:e.new_path||e.old_path,binary:e.diff.startsWith("Binary")||/.svg$/.test(e.new_path)}}))}async retrieveUnpublishedEntryData(e){const{collection:t,slug:n}=(0,d.parseContentKey)(e),r=(0,d.branchFromContentKey)(e),i=await this.getBranchMergeRequest(r),o=await this.getDifferences(i.sha),a=await Promise.all(o.map((async e=>{const{path:t,newFile:n}=e;return{id:await this.getFileId(t,r),path:t,newFile:n}}))),s=i.labels.find((e=>(0,d.isCMSLabel)(e,this.cmsLabelPrefix)));return{collection:t,slug:n,status:(0,d.labelToStatus)(s,this.cmsLabelPrefix),diffs:a,updatedAt:i.updated_at,pullRequestAuthor:i.author.name}}async rebaseMergeRequest(e){let t=await this.requestJSON({method:"PUT",url:`${this.repoURL}/merge_requests/${e.iid}/rebase?skip_ci=true`}),n=1;for(;t.rebase_in_progress&&(await new Promise((e=>setTimeout(e,1e3))),t=await this.requestJSON({url:`${this.repoURL}/merge_requests/${e.iid}`,params:{include_rebase_in_progress:!0}}),t.rebase_in_progress&&!(n>30));)n++;if(t.rebase_in_progress)throw new d.APIError("Timed out rebasing merge request",null,x);if(t.merge_error)throw new d.APIError(`Rebase error: ${t.merge_error}`,null,x)}async createMergeRequest(e,t,n){await this.requestJSON({method:"POST",url:`${this.repoURL}/merge_requests`,params:{source_branch:e,target_branch:this.branch,title:t,description:d.DEFAULT_PR_BODY,labels:(0,d.statusToLabel)(n,this.cmsLabelPrefix),remove_source_branch:!0,squash:this.squashMerges}})}async editorialWorkflowGit(e,t,n){const r=(0,d.generateContentKey)(n.collectionName,t),i=(0,d.branchFromContentKey)(r);if(n.unpublished){const t=await this.getBranchMergeRequest(i);await this.rebaseMergeRequest(t);const[r,o]=await Promise.all([this.getCommitItems(e,i),this.getDifferences(i)]);for(const e of o.filter((e=>e.binary)))r.some((t=>t.path===e.path))||r.push({action:k.DELETE,path:e.newPath});await this.uploadAndCommit(r,{commitMessage:n.commitMessage,branch:i})}else{const t=await this.getCommitItems(e,this.branch);await this.uploadAndCommit(t,{commitMessage:n.commitMessage,branch:i,newBranch:!0}),await this.createMergeRequest(i,n.commitMessage,n.status||this.initialWorkflowStatus)}}async updateMergeRequestLabels(e,t){await this.requestJSON({method:"PUT",url:`${this.repoURL}/merge_requests/${e.iid}`,params:{labels:t.join(",")}})}async updateUnpublishedEntryStatus(e,t,n){const r=(0,d.generateContentKey)(e,t),i=(0,d.branchFromContentKey)(r),o=await this.getBranchMergeRequest(i),a=[...o.labels.filter((e=>!(0,d.isCMSLabel)(e,this.cmsLabelPrefix))),(0,d.statusToLabel)(n,this.cmsLabelPrefix)];await this.updateMergeRequestLabels(o,a)}async mergeMergeRequest(e){await this.requestJSON({method:"PUT",url:`${this.repoURL}/merge_requests/${e.iid}/merge`,params:{merge_commit_message:d.MERGE_COMMIT_MESSAGE,squash_commit_message:d.MERGE_COMMIT_MESSAGE,squash:this.squashMerges,should_remove_source_branch:!0}})}async publishUnpublishedEntry(e,t){const n=(0,d.generateContentKey)(e,t),r=(0,d.branchFromContentKey)(n),i=await this.getBranchMergeRequest(r);await this.mergeMergeRequest(i)}async closeMergeRequest(e){await this.requestJSON({method:"PUT",url:`${this.repoURL}/merge_requests/${e.iid}`,params:{state_event:"close"}})}async getDefaultBranch(){return await this.getBranch(this.branch)}async isShaExistsInBranch(e,t){return(await this.requestJSON({url:`${this.repoURL}/repository/commits/${t}/refs`,params:{type:"branch"}})).some((t=>t.name===e))}async deleteBranch(e){await this.request({method:"DELETE",url:`${this.repoURL}/repository/branches/${encodeURIComponent(e)}`})}async deleteUnpublishedEntry(e,t){const n=(0,d.generateContentKey)(e,t),r=(0,d.branchFromContentKey)(n),i=await this.getBranchMergeRequest(r);await this.closeMergeRequest(i),await this.deleteBranch(r)}async getMergeRequestStatues(e,t){return await this.requestJSON({url:`${this.repoURL}/repository/commits/${e.sha}/statuses`,params:{ref:t}})}async getStatuses(e,t){const n=(0,d.generateContentKey)(e,t),r=(0,d.branchFromContentKey)(n),i=await this.getBranchMergeRequest(r);return(await this.getMergeRequestStatues(i,r)).map((({name:e,status:t,target_url:n})=>({context:e,state:t===E.Success?d.PreviewState.Success:d.PreviewState.Other,target_url:n})))}async getUnpublishedEntrySha(e,t){const n=(0,d.generateContentKey)(e,t),r=(0,d.branchFromContentKey)(n);return(await this.getBranchMergeRequest(r)).sha}}},99449:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=u(n(2784)),o=u(n(13980)),a=n(76320),s=n(30762),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=(0,r.default)(s.Icon,{target:"e80yw6v0",label:"LoginButtonIcon"})({name:"1gnqu05",styles:"margin-right:18px"}),f={pkce:({base_url:e,auth_endpoint:t,app_id:n,auth_token_endpoint:r})=>new a.PkceAuthenticator({base_url:e,auth_endpoint:t,app_id:n,auth_token_endpoint:r,auth_token_endpoint_content_type:"application/json; charset=utf-8"}),implicit:({base_url:e,auth_endpoint:t,app_id:n,clearHash:r})=>new a.ImplicitAuthenticator({base_url:e,auth_endpoint:t,app_id:n,clearHash:r})};class p extends i.default.Component{constructor(...e){super(...e),c(this,"state",{}),c(this,"handleLogin",(e=>{e.preventDefault(),this.auth.authenticate({provider:"gitlab",scope:"api"},((e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)}))}))}componentDidMount(){const{auth_type:e="",base_url:t="https://gitlab.com",auth_endpoint:n="oauth/authorize",app_id:r=""}=this.props.config.backend;f[e]?(this.auth=f[e]({base_url:t,auth_endpoint:n,app_id:r,auth_token_endpoint:"oauth/token",clearHash:this.props.clearHash}),this.auth.completeAuth(((e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)}))):this.auth=new a.NetlifyAuthenticator({base_url:this.props.base_url,site_id:"localhost"===document.location.host.split(":")[0]?"demo.decapcms.org":this.props.siteId,auth_endpoint:this.props.authEndpoint})}render(){const{inProgress:e,config:t,t:n}=this.props;return(0,l.jsx)(s.AuthenticationPage,{onLogin:this.handleLogin,loginDisabled:e,loginErrorMessage:this.state.loginError,logoUrl:t.logo_url,siteUrl:t.site_url,renderButtonContent:()=>(0,l.jsx)(i.default.Fragment,null,(0,l.jsx)(d,{type:"gitlab"})," ",n(e?"auth.loggingIn":"auth.loginWithGitLab")),t:n})}}t.default=p,c(p,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool,base_url:o.default.string,siteId:o.default.string,authEndpoint:o.default.string,config:o.default.object.isRequired,clearHash:o.default.func,t:o.default.func.isRequired})},37943:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(5648)),i=d(n(93433)),o=d(n(63252)),a=n(13856),s=n(33806),l=d(n(99449)),u=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(22026));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t!!e)).catch((e=>(console.warn("Failed getting GitLab user",e),!1))))||!1},api:{status:!0,statusPage:""}}}authComponent(){return l.default}restoreUser(e){return this.authenticate(e)}async authenticate(e){this.token=e.token,this.api=new u.default({token:this.token,branch:this.branch,repo:this.repo,apiRoot:this.apiRoot,squashMerges:this.squashMerges,cmsLabelPrefix:this.cmsLabelPrefix,initialWorkflowStatus:this.options.initialWorkflowStatus,useGraphQL:this.useGraphQL,graphQLAPIRoot:this.graphQLAPIRoot});const t=await this.api.user();if(!await this.api.hasWriteAccess().catch((e=>{throw e.message=a.stripIndent` +`},22026:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.API_NAME=void 0,t.getMaxAccess=C;var r=v(n(93433)),i=v(n(36346)),o=v(n(83465)),a=v(n(85395)),s=n(34600),l=n(70468),u=n(29206),c=n(96044),d=n(33806),f=n(95978),p=n(46670),h=n(21023),m=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=g(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(31183));function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;tt.group_access_level>e.group_access_level?t:e),e[0])}function S(e,t,n){for(let r=0;r{const t=d.unsentRequest.withHeaders(this.token?{Authorization:`Bearer ${this.token}`}:{},e);return Promise.resolve(t)})),w(this,"buildRequest",(async e=>{const t=d.unsentRequest.withRoot(this.apiRoot)(e),n=await this.withAuthorizationHeaders(t);return n.has("cache")?n:d.unsentRequest.withNoCache(n)})),w(this,"request",(async e=>{try{return(0,d.requestWithBackoff)(this,e)}catch(e){throw new d.APIError(e.message,null,x)}})),w(this,"responseToJSON",(0,d.responseParser)({format:"json",apiName:x})),w(this,"responseToBlob",(0,d.responseParser)({format:"blob",apiName:x})),w(this,"responseToText",(0,d.responseParser)({format:"text",apiName:x})),w(this,"requestJSON",(e=>this.request(e).then(this.responseToJSON))),w(this,"requestText",(e=>this.request(e).then(this.responseToText))),w(this,"user",(()=>this.requestJSON("/user"))),w(this,"WRITE_ACCESS",30),w(this,"MAINTAINER_ACCESS",40),w(this,"hasWriteAccess",(async()=>{const{shared_with_groups:e,permissions:t}=await this.requestJSON(this.repoURL),{project_access:n,group_access:r}=t;if(n&&n.access_level>=this.WRITE_ACCESS)return!0;if(r&&r.access_level>=this.WRITE_ACCESS)return!0;if(e&&e.length>0){const t=C(e);if(t.group_access_level>=this.MAINTAINER_ACCESS)return!0;if(t.group_access_level>=this.WRITE_ACCESS)try{const e=await this.getDefaultBranch();if(e.developers_can_merge&&e.developers_can_push)return!0}catch(e){console.log("Failed getting default branch",e)}}return!1})),w(this,"readFile",(async(e,t,{parseText:n=!0,branch:r=this.branch}={})=>await(0,d.readFile)(t,(async()=>await this.request({url:`${this.repoURL}/repository/files/${encodeURIComponent(e)}/raw`,params:{ref:r},cache:"no-store"}).then(n?this.responseToText:this.responseToBlob)),d.localForage,n))),w(this,"getCursorFromHeaders",(e=>{const t=parseInt(e.get("X-Page"),10),n=parseInt(e.get("X-Total-Pages"),10),r=parseInt(e.get("X-Per-Page"),10),i=parseInt(e.get("X-Total"),10),o=(0,d.parseLinkHeader)(e.get("Link")),a=(0,p.Map)(o).keySeq().flatMap((e=>"prev"===e&&t>1||"next"===e&&t1||"last"===e&&tthis.getCursorFromHeaders(e))),w(this,"fetchCursor",(e=>(0,a.default)([d.unsentRequest.withMethod("HEAD"),this.request,(0,d.then)(this.getCursor)])(e))),w(this,"fetchCursorAndEntries",(e=>(0,a.default)([d.unsentRequest.withMethod("GET"),this.request,e=>Promise.all([e.then(this.getCursor),e.then(this.responseToJSON).catch((e=>{if(404===e.status)return[];throw e}))]),(0,d.then)((([e,t])=>({cursor:e,entries:t})))])(e))),w(this,"listFiles",(async(e,t=!1)=>{const{entries:n,cursor:r}=await this.fetchCursorAndEntries({url:`${this.repoURL}/repository/tree`,params:{path:e,ref:this.branch,recursive:t}});return{files:n.filter((({type:e})=>"blob"===e)),cursor:r}})),w(this,"traverseCursor",(async(e,t)=>{const n=e.data.getIn(["links",t]),{entries:r,cursor:i}=await this.fetchCursorAndEntries(n);return{entries:r.filter((({type:e})=>"blob"===e)),cursor:i}})),w(this,"listAllFilesGraphQL",(async(e,t,n)=>{const r=[];let i,o;do{i=await this.graphQLClient.query({query:m.files,variables:{repo:this.repo,branch:n,path:e,recursive:t,cursor:o}}),r.push(...i.data.project.repository.tree.blobs.nodes),o=i.data.project.repository.tree.blobs.pageInfo.endCursor}while(i.data.project.repository.tree.blobs.pageInfo.hasNextPage);return r})),w(this,"readFilesGraphQL",(async e=>{const t=e.map((({path:e})=>e)),n=[];S(t,90,(e=>{n.push(this.graphQLClient.query({query:m.blobs,variables:{repo:this.repo,branch:this.branch,paths:e},fetchPolicy:"cache-first"}))}));const r=[];S(t,8,(e=>{r.push(this.graphQLClient.query({query:m.lastCommits(e),variables:{repo:this.repo,branch:this.branch},fetchPolicy:"cache-first"}))}));const[i,o]=await Promise.all([(await Promise.all(n)).map((e=>e.data.project.repository.blobs.nodes)),(await Promise.all(r)).map((e=>Object.values(e.data.project.repository).map((({lastCommit:e})=>e)).filter(Boolean)))]),a=i.flat().map((e=>e.data)),s=o.flat().map((({author:e,authoredDate:t,authorName:n})=>({author:e?e.name||e.username||e.publicEmail:n,updatedOn:t})));return e.map(((e,t)=>({file:b(b({},e),s[t]),data:a[t]})))})),w(this,"listAllFiles",(async(e,t=!1,n=this.branch)=>{if(this.graphQLClient)return await this.listAllFilesGraphQL(e,t,n);const r=[];let{cursor:i,entries:o}=await this.fetchCursorAndEntries({url:`${this.repoURL}/repository/tree`,params:{path:e,ref:n,per_page:100,recursive:t}});for(r.push(...o);i&&i.actions.has("next");){const e=i.data.getIn(["links","next"]),{cursor:t,entries:n}=await this.fetchCursorAndEntries(e);r.push(...n),i=t}return r.filter((({type:e})=>"blob"===e))})),w(this,"toBase64",(e=>Promise.resolve(f.Base64.encode(e)))),w(this,"fromBase64",(e=>f.Base64.decode(e))),w(this,"deleteFiles",((e,t)=>{const n={commit_message:t,branch:this.branch};if(this.commitAuthor){const{name:e,email:t}=this.commitAuthor;n.author_name=e,n.author_email=t}const r=e.map((e=>({path:e,action:k.DELETE})));return this.uploadAndCommit(r,{commitMessage:t})})),this.apiRoot=e.apiRoot||"https://gitlab.com/api/v4",this.graphQLAPIRoot=e.graphQLAPIRoot||"https://gitlab.com/api/graphql",this.token=e.token||!1,this.branch=e.branch||"master",this.repo=e.repo||"",this.repoURL=`/projects/${encodeURIComponent(this.repo)}`,this.squashMerges=e.squashMerges,this.initialWorkflowStatus=e.initialWorkflowStatus,this.cmsLabelPrefix=e.cmsLabelPrefix,!0===e.useGraphQL&&(this.graphQLClient=this.getApolloClient())}getApolloClient(){const e=(0,c.setContext)(((e,{headers:t})=>({headers:b(b({"Content-Type":"application/json; charset=utf-8"},t),{},{authorization:this.token?`token ${this.token}`:""})}))),t=(0,u.createHttpLink)({uri:this.graphQLAPIRoot});return new s.ApolloClient({link:e.concat(t),cache:new l.InMemoryCache,defaultOptions:{watchQuery:{fetchPolicy:_,errorPolicy:"ignore"},query:{fetchPolicy:_,errorPolicy:"all"}}})}reset(){var e;return null===(e=this.graphQLClient)||void 0===e?void 0:e.resetStore()}async readFileMetadata(e,t){return await(0,d.readFileMetadata)(t,(async()=>{try{const t=(await this.requestJSON({url:`${this.repoURL}/repository/commits`,params:{path:e,ref_name:this.branch}}))[0];return{author:t.author_name||t.author_email,updatedOn:t.authored_date}}catch(e){return{author:"",updatedOn:""}}}),d.localForage)}async getBranch(e){return await this.requestJSON(`${this.repoURL}/repository/branches/${encodeURIComponent(e)}`)}async uploadAndCommit(e,{commitMessage:t="",branch:n=this.branch,newBranch:r=!1}){const i=e.map((e=>b(b({action:e.action,file_path:e.path},e.oldPath?{previous_path:e.oldPath}:{}),void 0!==e.base64Content?{content:e.base64Content,encoding:"base64"}:{}))),o=b({branch:n,commit_message:t,actions:i},r?{start_branch:this.branch}:{});if(this.commitAuthor){const{name:e,email:t}=this.commitAuthor;o.author_name=e,o.author_email=t}try{return await this.requestJSON({url:`${this.repoURL}/repository/commits`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(o)})}catch(e){const t=e.message||"";throw r&&t.includes(`Could not update ${n}`)&&await(0,d.throwOnConflictingBranches)(n,(e=>this.getBranch(e)),x),e}}async getCommitItems(e,t){const n=await Promise.all(e.map((async e=>{const[n,a]=await Promise.all([(0,i.default)(e,"toBase64",(0,o.default)(this.toBase64,e.raw)),this.isFileExists(e.path,t)]);let s,l=k.CREATE,u=(0,r.default)(e.path,"/");return a&&(s=e.newPath&&u,l=e.newPath&&e.newPath!==s?k.MOVE:k.UPDATE,u=e.newPath?(0,r.default)(e.newPath,"/"):u),{action:l,base64Content:n,path:u,oldPath:s}})));for(const e of n.filter((e=>e.oldPath&&e.action===k.MOVE))){const r=(0,h.dirname)(e.oldPath),i=(0,h.dirname)(e.path);(await this.listAllFiles(r,!0,t)).filter((t=>t.path!==e.oldPath)).forEach((e=>{n.push({action:k.MOVE,path:e.path.replace(r,i),oldPath:e.path})}))}return n}async persistFiles(e,t,n){const r=[...e,...t];if(n.useWorkflow){const t=e[0].slug;return this.editorialWorkflowGit(r,t,n)}{const e=await this.getCommitItems(r,this.branch);return this.uploadAndCommit(e,{commitMessage:n.commitMessage})}}async getMergeRequests(e){return(await this.requestJSON({url:`${this.repoURL}/merge_requests`,params:b({state:"opened",labels:"Any",per_page:100,target_branch:this.branch},e?{source_branch:e}:{})})).filter((e=>e.source_branch.startsWith(d.CMS_BRANCH_PREFIX)&&e.labels.some((e=>(0,d.isCMSLabel)(e,this.cmsLabelPrefix)))))}async listUnpublishedBranches(){return console.log("%c Checking for Unpublished entries","line-height: 30px;text-align: center;font-weight: bold"),(await this.getMergeRequests()).map((e=>e.source_branch))}async getFileId(e,t){return(await this.request({method:"HEAD",url:`${this.repoURL}/repository/files/${encodeURIComponent(e)}`,params:{ref:t}})).headers.get("X-Gitlab-Blob-Id")}async isFileExists(e,t){return await this.requestText({method:"HEAD",url:`${this.repoURL}/repository/files/${encodeURIComponent(e)}`,params:{ref:t}}).then((()=>!0)).catch((e=>{if(e instanceof d.APIError&&404===e.status)return!1;throw e}))}async getBranchMergeRequest(e){const t=await this.getMergeRequests(e);if(t.length<=0)throw new d.EditorialWorkflowError("content is not under editorial workflow",!0);return t[0]}async getDifferences(e,t=this.branch){if(e===t)return[];const n=await this.requestJSON({url:`${this.repoURL}/repository/compare`,params:{from:t,to:e}});if(n.diffs.length>=1e3)throw new d.APIError("Diff limit reached",null,x);return n.diffs.map((e=>{let t="modified";return e.new_file?t="added":e.deleted_file?t="deleted":e.renamed_file&&(t="renamed"),{status:t,oldPath:e.old_path,newPath:e.new_path,newFile:e.new_file,path:e.new_path||e.old_path,binary:e.diff.startsWith("Binary")||/.svg$/.test(e.new_path)}}))}async retrieveUnpublishedEntryData(e){const{collection:t,slug:n}=(0,d.parseContentKey)(e),r=(0,d.branchFromContentKey)(e),i=await this.getBranchMergeRequest(r),o=await this.getDifferences(i.sha),a=await Promise.all(o.map((async e=>{const{path:t,newFile:n}=e;return{id:await this.getFileId(t,r),path:t,newFile:n}}))),s=i.labels.find((e=>(0,d.isCMSLabel)(e,this.cmsLabelPrefix)));return{collection:t,slug:n,status:(0,d.labelToStatus)(s,this.cmsLabelPrefix),diffs:a,updatedAt:i.updated_at,pullRequestAuthor:i.author.name}}async rebaseMergeRequest(e){let t=await this.requestJSON({method:"PUT",url:`${this.repoURL}/merge_requests/${e.iid}/rebase?skip_ci=true`}),n=1;for(;t.rebase_in_progress&&(await new Promise((e=>setTimeout(e,1e3))),t=await this.requestJSON({url:`${this.repoURL}/merge_requests/${e.iid}`,params:{include_rebase_in_progress:!0}}),t.rebase_in_progress&&!(n>30));)n++;if(t.rebase_in_progress)throw new d.APIError("Timed out rebasing merge request",null,x);if(t.merge_error)throw new d.APIError(`Rebase error: ${t.merge_error}`,null,x)}async createMergeRequest(e,t,n){await this.requestJSON({method:"POST",url:`${this.repoURL}/merge_requests`,params:{source_branch:e,target_branch:this.branch,title:t,description:d.DEFAULT_PR_BODY,labels:(0,d.statusToLabel)(n,this.cmsLabelPrefix),remove_source_branch:!0,squash:this.squashMerges}})}async editorialWorkflowGit(e,t,n){const r=(0,d.generateContentKey)(n.collectionName,t),i=(0,d.branchFromContentKey)(r);if(n.unpublished){const t=await this.getBranchMergeRequest(i);await this.rebaseMergeRequest(t);const[r,o]=await Promise.all([this.getCommitItems(e,i),this.getDifferences(i)]);for(const e of o.filter((e=>e.binary)))r.some((t=>t.path===e.path))||r.push({action:k.DELETE,path:e.newPath});await this.uploadAndCommit(r,{commitMessage:n.commitMessage,branch:i})}else{const t=await this.getCommitItems(e,this.branch);await this.uploadAndCommit(t,{commitMessage:n.commitMessage,branch:i,newBranch:!0}),await this.createMergeRequest(i,n.commitMessage,n.status||this.initialWorkflowStatus)}}async updateMergeRequestLabels(e,t){await this.requestJSON({method:"PUT",url:`${this.repoURL}/merge_requests/${e.iid}`,params:{labels:t.join(",")}})}async updateUnpublishedEntryStatus(e,t,n){const r=(0,d.generateContentKey)(e,t),i=(0,d.branchFromContentKey)(r),o=await this.getBranchMergeRequest(i),a=[...o.labels.filter((e=>!(0,d.isCMSLabel)(e,this.cmsLabelPrefix))),(0,d.statusToLabel)(n,this.cmsLabelPrefix)];await this.updateMergeRequestLabels(o,a)}async mergeMergeRequest(e){await this.requestJSON({method:"PUT",url:`${this.repoURL}/merge_requests/${e.iid}/merge`,params:{merge_commit_message:d.MERGE_COMMIT_MESSAGE,squash_commit_message:d.MERGE_COMMIT_MESSAGE,squash:this.squashMerges,should_remove_source_branch:!0}})}async publishUnpublishedEntry(e,t){const n=(0,d.generateContentKey)(e,t),r=(0,d.branchFromContentKey)(n),i=await this.getBranchMergeRequest(r);await this.mergeMergeRequest(i)}async closeMergeRequest(e){await this.requestJSON({method:"PUT",url:`${this.repoURL}/merge_requests/${e.iid}`,params:{state_event:"close"}})}async getDefaultBranch(){return await this.getBranch(this.branch)}async isShaExistsInBranch(e,t){return(await this.requestJSON({url:`${this.repoURL}/repository/commits/${t}/refs`,params:{type:"branch"}})).some((t=>t.name===e))}async deleteBranch(e){await this.request({method:"DELETE",url:`${this.repoURL}/repository/branches/${encodeURIComponent(e)}`})}async deleteUnpublishedEntry(e,t){const n=(0,d.generateContentKey)(e,t),r=(0,d.branchFromContentKey)(n),i=await this.getBranchMergeRequest(r);await this.closeMergeRequest(i),await this.deleteBranch(r)}async getMergeRequestStatues(e,t){return await this.requestJSON({url:`${this.repoURL}/repository/commits/${e.sha}/statuses`,params:{ref:t}})}async getStatuses(e,t){const n=(0,d.generateContentKey)(e,t),r=(0,d.branchFromContentKey)(n),i=await this.getBranchMergeRequest(r);return(await this.getMergeRequestStatues(i,r)).map((({name:e,status:t,target_url:n})=>({context:e,state:t===E.Success?d.PreviewState.Success:d.PreviewState.Other,target_url:n})))}async getUnpublishedEntrySha(e,t){const n=(0,d.generateContentKey)(e,t),r=(0,d.branchFromContentKey)(n);return(await this.getBranchMergeRequest(r)).sha}}},99449:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=u(n(2784)),o=u(n(13980)),a=n(76320),s=n(30762),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=(0,r.default)(s.Icon,{target:"e80yw6v0",label:"LoginButtonIcon"})({name:"1gnqu05",styles:"margin-right:18px"}),f={pkce:({base_url:e,auth_endpoint:t,app_id:n,auth_token_endpoint:r})=>new a.PkceAuthenticator({base_url:e,auth_endpoint:t,app_id:n,auth_token_endpoint:r,auth_token_endpoint_content_type:"application/json; charset=utf-8"}),implicit:({base_url:e,auth_endpoint:t,app_id:n,clearHash:r})=>new a.ImplicitAuthenticator({base_url:e,auth_endpoint:t,app_id:n,clearHash:r})};class p extends i.default.Component{constructor(...e){super(...e),c(this,"state",{}),c(this,"handleLogin",(e=>{e.preventDefault(),this.auth.authenticate({provider:"gitlab",scope:"api"},((e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)}))}))}componentDidMount(){const{auth_type:e="",base_url:t="https://gitlab.com",auth_endpoint:n="oauth/authorize",app_id:r=""}=this.props.config.backend;f[e]?(this.auth=f[e]({base_url:t,auth_endpoint:n,app_id:r,auth_token_endpoint:"oauth/token",clearHash:this.props.clearHash}),this.auth.completeAuth(((e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)}))):this.auth=new a.NetlifyAuthenticator({base_url:this.props.base_url,site_id:"localhost"===document.location.host.split(":")[0]?"demo.decapcms.org":this.props.siteId,auth_endpoint:this.props.authEndpoint})}render(){const{inProgress:e,config:t,t:n}=this.props;return(0,l.jsx)(s.AuthenticationPage,{onLogin:this.handleLogin,loginDisabled:e,loginErrorMessage:this.state.loginError,logoUrl:t.logo_url,siteUrl:t.site_url,renderButtonContent:()=>(0,l.jsx)(i.default.Fragment,null,(0,l.jsx)(d,{type:"gitlab"})," ",n(e?"auth.loggingIn":"auth.loginWithGitLab")),t:n})}}t.default=p,c(p,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool,base_url:o.default.string,siteId:o.default.string,authEndpoint:o.default.string,config:o.default.object.isRequired,clearHash:o.default.func,t:o.default.func.isRequired})},37943:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(5648)),i=d(n(93433)),o=d(n(63252)),a=n(13856),s=n(33806),l=d(n(99449)),u=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(22026));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t!!e)).catch((e=>(console.warn("Failed getting GitLab user",e),!1))))||!1},api:{status:!0,statusPage:""}}}authComponent(){return l.default}restoreUser(e){return this.authenticate(e)}async authenticate(e){this.token=e.token,this.api=new u.default({token:this.token,branch:this.branch,repo:this.repo,apiRoot:this.apiRoot,squashMerges:this.squashMerges,cmsLabelPrefix:this.cmsLabelPrefix,initialWorkflowStatus:this.options.initialWorkflowStatus,useGraphQL:this.useGraphQL,graphQLAPIRoot:this.graphQLAPIRoot});const t=await this.api.user();if(!await this.api.hasWriteAccess().catch((e=>{throw e.message=a.stripIndent` Repo "${this.repo}" not found. Please ensure the repo information is spelled correctly. If the repo is private, make sure you're logged into a GitLab account with access. - `,e})))throw new Error("Your GitLab user account does not have access to this repo.");if(!this.isBranchConfigured){const e=await(0,s.getDefaultBranchName)({backend:"gitlab",repo:this.repo,token:this.token});e&&(this.branch=e)}return p(p({},t),{},{login:t.username,token:e.token})}async logout(){this.token=null}getToken(){return Promise.resolve(this.token)}filterFile(e,t,n,i){const o=(0,r.default)(t.path.split(e)[1]||"/","/");return(0,s.filterByExtension)(t,n)&&o.split("/").length<=i}async entriesByFolder(e,t,n){let r;const i=await(0,s.entriesByFolder)((()=>this.api.listFiles(e,n>1).then((({files:i,cursor:o})=>(r=o.mergeMeta({folder:e,extension:t,depth:n}),i.filter((r=>this.filterFile(e,r,t,n))))))),this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),u.API_NAME);return i[s.CURSOR_COMPATIBILITY_SYMBOL]=r,i}async listAllFiles(e,t,n){return(await this.api.listAllFiles(e,n>1)).filter((r=>this.filterFile(e,r,t,n)))}async allEntriesByFolder(e,t,n){return await(0,s.allEntriesByFolder)({listAllFiles:()=>this.listAllFiles(e,t,n),readFile:this.api.readFile.bind(this.api),readFileMetadata:this.api.readFileMetadata.bind(this.api),apiName:u.API_NAME,branch:this.branch,localForage:s.localForage,folder:e,extension:t,depth:n,getDefaultBranch:()=>this.api.getDefaultBranch().then((e=>({name:e.name,sha:e.commit.id}))),isShaExistsInBranch:this.api.isShaExistsInBranch.bind(this.api),getDifferences:(e,t)=>this.api.getDifferences(e,t),getFileId:e=>this.api.getFileId(e,this.branch),filterFile:r=>this.filterFile(e,r,t,n),customFetch:this.useGraphQL?e=>this.api.readFilesGraphQL(e):void 0})}entriesByFiles(e){return(0,s.entriesByFiles)(e,this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),u.API_NAME)}getEntry(e){return this.api.readFile(e).then((t=>({file:{path:e,id:null},data:t})))}getMedia(e=this.mediaFolder){return this.api.listAllFiles(e).then((e=>e.map((({id:e,name:t,path:n})=>({id:e,name:t,path:n,displayURL:{id:e,name:t,path:n}})))))}getMediaDisplayURL(e){return this._mediaDisplayURLSem=this._mediaDisplayURLSem||(0,o.default)(10),(0,s.getMediaDisplayURL)(e,this.api.readFile.bind(this.api),this._mediaDisplayURLSem)}async getMediaFile(e){const t=(0,s.basename)(e),n=await(0,s.getMediaAsBlob)(e,null,this.api.readFile.bind(this.api)),r=(0,s.blobToFileObj)(t,n),i=URL.createObjectURL(r);return{id:await(0,s.getBlobSHA)(n),displayURL:i,path:e,name:t,size:r.size,file:r,url:i}}async persistEntry(e,t){return(0,s.runWithLock)(this.lock,(()=>this.api.persistFiles(e.dataFiles,e.assets,t)),"Failed to acquire persist entry lock")}async persistMedia(e,t){const n=e.fileObj,[r]=await Promise.all([(0,s.getBlobSHA)(n),this.api.persistFiles([],[e],t)]),{path:o}=e,a=URL.createObjectURL(n);return{displayURL:a,path:(0,i.default)(o,"/"),name:n.name,size:n.size,file:n,url:a,id:r}}deleteFiles(e,t){return this.api.deleteFiles(e,t)}traverseCursor(e,t){return this.api.traverseCursor(e,t).then((async({entries:t,cursor:n})=>{var r,i,o;const[a,l,c]=[null===(r=e.meta)||void 0===r?void 0:r.get("folder"),null===(i=e.meta)||void 0===i?void 0:i.get("depth"),null===(o=e.meta)||void 0===o?void 0:o.get("extension")];return a&&l&&c&&(t=t.filter((e=>this.filterFile(a,e,c,l))),n=n.mergeMeta({folder:a,extension:c,depth:l})),{entries:await(0,s.entriesByFiles)(t,this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),u.API_NAME),cursor:n}}))}loadMediaFile(e,t){return(0,s.getMediaAsBlob)(t.path,null,((t,n,{parseText:r})=>this.api.readFile(t,n,{branch:e,parseText:r}))).then((e=>{const n=(0,s.basename)(t.path),r=(0,s.blobToFileObj)(n,e);return{id:t.path,displayURL:URL.createObjectURL(r),path:t.path,name:n,size:r.size,file:r}}))}async loadEntryMediaFiles(e,t){return await Promise.all(t.map((t=>this.loadMediaFile(e,t))))}async unpublishedEntries(){return await(0,s.unpublishedEntries)((()=>this.api.listUnpublishedBranches().then((e=>e.map((e=>(0,s.contentKeyFromBranch)(e)))))))}async unpublishedEntry({id:e,collection:t,slug:n}){if(e)return await this.api.retrieveUnpublishedEntryData(e);if(t&&n){const e=(0,s.generateContentKey)(t,n);return await this.api.retrieveUnpublishedEntryData(e)}throw new Error("Missing unpublished entry id or collection and slug")}getBranch(e,t){const n=(0,s.generateContentKey)(e,t);return(0,s.branchFromContentKey)(n)}async unpublishedEntryDataFile(e,t,n,r){const i=this.getBranch(e,t);return await this.api.readFile(n,r,{branch:i})}async unpublishedEntryMediaFile(e,t,n,r){const i=this.getBranch(e,t);return await this.loadMediaFile(i,{path:n,id:r})}async updateUnpublishedEntryStatus(e,t,n){return(0,s.runWithLock)(this.lock,(()=>this.api.updateUnpublishedEntryStatus(e,t,n)),"Failed to acquire update entry status lock")}async deleteUnpublishedEntry(e,t){return(0,s.runWithLock)(this.lock,(()=>this.api.deleteUnpublishedEntry(e,t)),"Failed to acquire delete entry lock")}async publishUnpublishedEntry(e,t){return(0,s.runWithLock)(this.lock,(()=>this.api.publishUnpublishedEntry(e,t)),"Failed to acquire publish entry lock")}async getDeployPreview(e,t){try{const n=await this.api.getStatuses(e,t),r=(0,s.getPreviewStatus)(n,this.previewContext);if(r){const{target_url:e,state:t}=r;return{url:e,status:t}}return null}catch(e){return null}}}},34554:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"API",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return o.default}}),t.DecapCmsBackendGitlab=void 0,Object.defineProperty(t,"GitLabBackend",{enumerable:!0,get:function(){return r.default}});var r=a(n(37943)),i=a(n(22026)),o=a(n(99449));function a(e){return e&&e.__esModule?e:{default:e}}t.DecapCmsBackendGitlab={GitLabBackend:r.default,API:i.default,AuthenticationPage:o.default}},31183:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.files=t.blobs=void 0,t.lastCommits=function(e){const t=e.map(((e,t)=>i.oneLine` + `,e})))throw new Error("Your GitLab user account does not have access to this repo.");if(!this.isBranchConfigured){const e=await(0,s.getDefaultBranchName)({backend:"gitlab",repo:this.repo,token:this.token,apiRoot:this.apiRoot});e&&(this.branch=e)}return p(p({},t),{},{login:t.username,token:e.token})}async logout(){this.token=null}getToken(){return Promise.resolve(this.token)}filterFile(e,t,n,i){const o=(0,r.default)(t.path.split(e)[1]||"/","/");return(0,s.filterByExtension)(t,n)&&o.split("/").length<=i}async entriesByFolder(e,t,n){let r;const i=await(0,s.entriesByFolder)((()=>this.api.listFiles(e,n>1).then((({files:i,cursor:o})=>(r=o.mergeMeta({folder:e,extension:t,depth:n}),i.filter((r=>this.filterFile(e,r,t,n))))))),this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),u.API_NAME);return i[s.CURSOR_COMPATIBILITY_SYMBOL]=r,i}async listAllFiles(e,t,n){return(await this.api.listAllFiles(e,n>1)).filter((r=>this.filterFile(e,r,t,n)))}async allEntriesByFolder(e,t,n){return await(0,s.allEntriesByFolder)({listAllFiles:()=>this.listAllFiles(e,t,n),readFile:this.api.readFile.bind(this.api),readFileMetadata:this.api.readFileMetadata.bind(this.api),apiName:u.API_NAME,branch:this.branch,localForage:s.localForage,folder:e,extension:t,depth:n,getDefaultBranch:()=>this.api.getDefaultBranch().then((e=>({name:e.name,sha:e.commit.id}))),isShaExistsInBranch:this.api.isShaExistsInBranch.bind(this.api),getDifferences:(e,t)=>this.api.getDifferences(e,t),getFileId:e=>this.api.getFileId(e,this.branch),filterFile:r=>this.filterFile(e,r,t,n),customFetch:this.useGraphQL?e=>this.api.readFilesGraphQL(e):void 0})}entriesByFiles(e){return(0,s.entriesByFiles)(e,this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),u.API_NAME)}getEntry(e){return this.api.readFile(e).then((t=>({file:{path:e,id:null},data:t})))}getMedia(e=this.mediaFolder){return this.api.listAllFiles(e).then((e=>e.map((({id:e,name:t,path:n})=>({id:e,name:t,path:n,displayURL:{id:e,name:t,path:n}})))))}getMediaDisplayURL(e){return this._mediaDisplayURLSem=this._mediaDisplayURLSem||(0,o.default)(10),(0,s.getMediaDisplayURL)(e,this.api.readFile.bind(this.api),this._mediaDisplayURLSem)}async getMediaFile(e){const t=(0,s.basename)(e),n=await(0,s.getMediaAsBlob)(e,null,this.api.readFile.bind(this.api)),r=(0,s.blobToFileObj)(t,n),i=URL.createObjectURL(r);return{id:await(0,s.getBlobSHA)(n),displayURL:i,path:e,name:t,size:r.size,file:r,url:i}}async persistEntry(e,t){return(0,s.runWithLock)(this.lock,(()=>this.api.persistFiles(e.dataFiles,e.assets,t)),"Failed to acquire persist entry lock")}async persistMedia(e,t){const n=e.fileObj,[r]=await Promise.all([(0,s.getBlobSHA)(n),this.api.persistFiles([],[e],t)]),{path:o}=e,a=URL.createObjectURL(n);return{displayURL:a,path:(0,i.default)(o,"/"),name:n.name,size:n.size,file:n,url:a,id:r}}deleteFiles(e,t){return this.api.deleteFiles(e,t)}traverseCursor(e,t){return this.api.traverseCursor(e,t).then((async({entries:t,cursor:n})=>{var r,i,o;const[a,l,c]=[null===(r=e.meta)||void 0===r?void 0:r.get("folder"),null===(i=e.meta)||void 0===i?void 0:i.get("depth"),null===(o=e.meta)||void 0===o?void 0:o.get("extension")];return a&&l&&c&&(t=t.filter((e=>this.filterFile(a,e,c,l))),n=n.mergeMeta({folder:a,extension:c,depth:l})),{entries:await(0,s.entriesByFiles)(t,this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),u.API_NAME),cursor:n}}))}loadMediaFile(e,t){return(0,s.getMediaAsBlob)(t.path,null,((t,n,{parseText:r})=>this.api.readFile(t,n,{branch:e,parseText:r}))).then((e=>{const n=(0,s.basename)(t.path),r=(0,s.blobToFileObj)(n,e);return{id:t.path,displayURL:URL.createObjectURL(r),path:t.path,name:n,size:r.size,file:r}}))}async loadEntryMediaFiles(e,t){return await Promise.all(t.map((t=>this.loadMediaFile(e,t))))}async unpublishedEntries(){return await(0,s.unpublishedEntries)((()=>this.api.listUnpublishedBranches().then((e=>e.map((e=>(0,s.contentKeyFromBranch)(e)))))))}async unpublishedEntry({id:e,collection:t,slug:n}){if(e)return await this.api.retrieveUnpublishedEntryData(e);if(t&&n){const e=(0,s.generateContentKey)(t,n);return await this.api.retrieveUnpublishedEntryData(e)}throw new Error("Missing unpublished entry id or collection and slug")}getBranch(e,t){const n=(0,s.generateContentKey)(e,t);return(0,s.branchFromContentKey)(n)}async unpublishedEntryDataFile(e,t,n,r){const i=this.getBranch(e,t);return await this.api.readFile(n,r,{branch:i})}async unpublishedEntryMediaFile(e,t,n,r){const i=this.getBranch(e,t);return await this.loadMediaFile(i,{path:n,id:r})}async updateUnpublishedEntryStatus(e,t,n){return(0,s.runWithLock)(this.lock,(()=>this.api.updateUnpublishedEntryStatus(e,t,n)),"Failed to acquire update entry status lock")}async deleteUnpublishedEntry(e,t){return(0,s.runWithLock)(this.lock,(()=>this.api.deleteUnpublishedEntry(e,t)),"Failed to acquire delete entry lock")}async publishUnpublishedEntry(e,t){return(0,s.runWithLock)(this.lock,(()=>this.api.publishUnpublishedEntry(e,t)),"Failed to acquire publish entry lock")}async getDeployPreview(e,t){try{const n=await this.api.getStatuses(e,t),r=(0,s.getPreviewStatus)(n,this.previewContext);if(r){const{target_url:e,state:t}=r;return{url:e,status:t}}return null}catch(e){return null}}}},34554:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"API",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return o.default}}),t.DecapCmsBackendGitlab=void 0,Object.defineProperty(t,"GitLabBackend",{enumerable:!0,get:function(){return r.default}});var r=a(n(37943)),i=a(n(22026)),o=a(n(99449));function a(e){return e&&e.__esModule?e:{default:e}}t.DecapCmsBackendGitlab={GitLabBackend:r.default,API:i.default,AuthenticationPage:o.default}},31183:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.files=t.blobs=void 0,t.lastCommits=function(e){const t=e.map(((e,t)=>i.oneLine` tree${t}: tree(ref: $branch, path: "${e}") { lastCommit { authorName @@ -390,28 +390,28 @@ } } } -`},60737:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(70894)),i=l(n(2784)),o=l(n(13980)),a=n(30762),s=n(28165);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c=(0,r.default)("section",{target:"e1ektlme2",label:"StyledAuthenticationPage"})({name:"8azftg",styles:"display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;height:100vh"}),d=(0,r.default)(a.Icon,{target:"e1ektlme1",label:"PageLogoIcon"})({name:"9ehrms",styles:"color:#c4c6d2;margin-top:-300px"}),f=(0,r.default)("button",{target:"e1ektlme0",label:"LoginButton"})(a.buttons.button,";",a.shadows.dropDeep,";",a.buttons.default,";",a.buttons.gray,";padding:0 30px;margin-top:0;display:flex;align-items:center;position:relative;",a.Icon,"{margin-right:18px;}");class p extends i.default.Component{constructor(...e){super(...e),u(this,"handleLogin",(e=>{e.preventDefault(),this.props.onLogin(this.state)}))}render(){const{config:e,inProgress:t,t:n}=this.props;return(0,s.jsx)(c,null,(0,s.jsx)(d,{size:"300px",type:"decap-cms"}),(0,s.jsx)(f,{disabled:t,onClick:this.handleLogin},n(t?"auth.loggingIn":"auth.login")),e.site_url&&(0,s.jsx)(a.GoBackButton,{href:e.site_url,t:n}))}}t.default=p,u(p,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool,config:o.default.object.isRequired,t:o.default.func.isRequired})},9189:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(33806),o=(r=n(60737))&&r.__esModule?r:{default:r};function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return i.default}}),t.DecapCmsBackendProxy=void 0,Object.defineProperty(t,"ProxyBackend",{enumerable:!0,get:function(){return r.default}});var r=o(n(9189)),i=o(n(60737));function o(e){return e&&e.__esModule?e:{default:e}}t.DecapCmsBackendProxy={ProxyBackend:r.default,AuthenticationPage:i.default}},69730:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(70894)),i=l(n(2784)),o=l(n(13980)),a=n(30762),s=n(28165);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c=(0,r.default)("section",{target:"e141mjkc2",label:"StyledAuthenticationPage"})({name:"14ts7qn",styles:"display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;gap:50px;height:100vh"}),d=(0,r.default)(a.Icon,{target:"e141mjkc1",label:"PageLogoIcon"})({name:"pit38s",styles:"height:auto"}),f=(0,r.default)("button",{target:"e141mjkc0",label:"LoginButton"})(a.buttons.button,";",a.shadows.dropDeep,";",a.buttons.default,";",a.buttons.gray,";padding:0 30px;margin-top:0;display:flex;align-items:center;position:relative;",a.Icon,"{margin-right:18px;}");class p extends i.default.Component{constructor(...e){super(...e),u(this,"handleLogin",(e=>{e.preventDefault(),this.props.onLogin(this.state)}))}componentDidMount(){!1===this.props.config.backend.login&&this.props.onLogin(this.state)}render(){const{config:e,inProgress:t,t:n}=this.props;return(0,s.jsx)(c,null,(0,s.jsx)(d,{size:"300px",type:"decap-cms"}),(0,s.jsx)(f,{disabled:t,onClick:this.handleLogin},n(t?"auth.loggingIn":"auth.login")),e.site_url&&(0,s.jsx)(a.GoBackButton,{href:e.site_url,t:n}))}}t.default=p,u(p,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool,config:o.default.object.isRequired,t:o.default.func.isRequired})},57058:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getFolderFiles=b;var r=f(n(45455)),i=f(n(17195)),o=f(n(85701)),a=f(n(85121)),s=f(n(55027)),l=n(29987),u=n(33806),c=n(21023),d=f(n(69730));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){const n=e.split("/");let r=t;for(;r&&n.length;)r=r[n.shift()];return r||{}}function m(e,t,n){const r=e.split("/");let i=n;for(;r.length>1;){const e=r.shift();i[e]=i[e]||{},i=i[e]}i[r.shift()]={content:t,path:e}}function g(e,t){(0,i.default)(t,e.split("/"))}window.repoFiles=window.repoFiles||{},window.repoFilesUnpublished=window.repoFilesUnpublished||[];const v=10;function y(e,t,n,r,i){const o=n.length,a=Math.floor(o/v);return u.Cursor.create({actions:[...r0?["prev","first"]:[]],meta:{index:r,count:o,pageSize:v,pageCount:a},data:{folder:e,extension:t,index:r,pageCount:a,depth:i}})}function b(e,t,n,r,i=[],o=t){return r<=0||Object.keys(e[t]||{}).forEach((a=>{if(!(0,c.extname)(a))return b(e[t],a,n,r-1,i,`${o}/${a}`);{const r=e[t][a];n&&!a.endsWith(`.${n}`)||i.unshift({content:r.content,path:`${o}/${a}`})}})),i}t.default=class{constructor(e,t={}){p(this,"mediaFolder",void 0),p(this,"options",void 0),this.options=t,this.mediaFolder=e.media_folder}isGitBackend(){return!1}status(){return Promise.resolve({auth:{status:!0},api:{status:!0,statusPage:""}})}authComponent(){return d.default}restoreUser(){return this.authenticate()}authenticate(){return Promise.resolve()}logout(){return null}getToken(){return Promise.resolve("")}traverseCursor(e,t){const{folder:n,extension:r,index:i,pageCount:o,depth:a}=e.data.toObject(),s="next"===t?i+1:"prev"===t?i-1:"first"===t?0:"last"===t?o:0,l=b(window.repoFiles,n,r,a).map((e=>({data:e.content,file:{path:e.path,id:e.path}}))),u=l.slice(s*v,s*v+v),c=y(n,r,l,s,a);return Promise.resolve({entries:u,cursor:c})}entriesByFolder(e,t,n){const r=(e?b(window.repoFiles,e,t,n):[]).map((e=>({data:e.content,file:{path:e.path,id:e.path}}))),i=y(e,t,r,0,n),a=(0,o.default)(r,v);return a[u.CURSOR_COMPATIBILITY_SYMBOL]=i,Promise.resolve(a)}entriesByFiles(e){return Promise.all(e.map((e=>({file:e,data:h(e.path,window.repoFiles).content}))))}getEntry(e){return Promise.resolve({file:{path:e,id:null},data:h(e,window.repoFiles).content})}unpublishedEntries(){return Promise.resolve(Object.keys(window.repoFilesUnpublished))}unpublishedEntry({id:e,collection:t,slug:n}){if(e){const r=e.split("/");t=r[0],n=r[1]}const r=window.repoFilesUnpublished[`${t}/${n}`];return r?Promise.resolve(r):Promise.reject(new u.EditorialWorkflowError("content is not under editorial workflow",!0))}async unpublishedEntryDataFile(e,t,n){const r=window.repoFilesUnpublished[`${e}/${t}`].diffs.find((e=>e.path===n));return null==r?void 0:r.content}async unpublishedEntryMediaFile(e,t,n){const r=window.repoFilesUnpublished[`${e}/${t}`].diffs.find((e=>e.path===n));return this.normalizeAsset(null==r?void 0:r.content)}deleteUnpublishedEntry(e,t){return delete window.repoFilesUnpublished[`${e}/${t}`],Promise.resolve()}async addOrUpdateUnpublishedEntry(e,t,n,i,o,a){const s=[];t.forEach((t=>{var n;const{path:i,newPath:o,raw:a}=t,l=null===(n=window.repoFilesUnpublished[e])||void 0===n?void 0:n.diffs.find((e=>e.path===i)),u=l?l.originalPath:i;s.push({originalPath:u,id:o||i,path:o||i,newFile:(0,r.default)(h(u,window.repoFiles)),status:"added",content:a})})),n.forEach((e=>{const t=this.normalizeAsset(e);s.push({id:t.id,path:t.path,newFile:!0,status:"added",content:t})})),window.repoFilesUnpublished[e]={slug:i,collection:o,status:a,diffs:s,updatedAt:(new Date).toISOString()}}async persistEntry(e,t){if(t.useWorkflow){const n=e.dataFiles[0].slug,r=`${t.collectionName}/${n}`,i=window.repoFilesUnpublished[r],o=(null==i?void 0:i.status)||t.status||this.options.initialWorkflowStatus;return this.addOrUpdateUnpublishedEntry(r,e.dataFiles,e.assets,n,t.collectionName,o),Promise.resolve()}return e.dataFiles.forEach((e=>{const{path:t,raw:n}=e;m(t,n,window.repoFiles)})),e.assets.forEach((e=>{m(e.path,e,window.repoFiles)})),Promise.resolve()}updateUnpublishedEntryStatus(e,t,n){return window.repoFilesUnpublished[`${e}/${t}`].status=n,Promise.resolve()}publishUnpublishedEntry(e,t){const n=`${e}/${t}`,r=window.repoFilesUnpublished[n];delete window.repoFilesUnpublished[n];const i=window.repoFiles;return r.diffs.forEach((e=>{if(e.originalPath&&!e.newFile){const t=e.originalPath,n=(0,c.dirname)(t),r=(0,c.dirname)(e.path);b(i,t.split("/")[0],"",100).filter((e=>e.path.startsWith(n))).forEach((e=>{g(e.path,i),m(e.path.replace(n,r),e.content,i)}))}m(e.path,e.content,i)})),Promise.resolve()}getMedia(e=this.mediaFolder){const t=b(window.repoFiles,e.split("/")[0],"",100).filter((t=>t.path.startsWith(e))).map((e=>this.normalizeAsset(e.content)));return Promise.resolve(t)}async getMediaFile(e){const t=h(e,window.repoFiles).content.toString(),n=(0,u.basename)(e),r=await fetch(t).then((e=>e.blob())),i=new File([r],n);return{id:t,displayURL:t,path:e,name:n,size:i.size,file:i,url:t}}normalizeAsset(e){const t=e.fileObj,{name:n,size:r}=t,i=(0,s.default)(window.URL.createObjectURL,t),o=(0,a.default)(i)?"":i;return{id:(0,l.v4)(),name:n,size:r,path:e.path,url:o,displayURL:o,fileObj:t}}persistMedia(e){const t=this.normalizeAsset(e);return m(e.path,e,window.repoFiles),Promise.resolve(t)}deleteFiles(e){return e.forEach((e=>{g(e,window.repoFiles)})),Promise.resolve()}async getDeployPreview(){return null}}},58908:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return i.default}}),t.DecapCmsBackendTest=void 0,Object.defineProperty(t,"TestBackend",{enumerable:!0,get:function(){return r.default}});var r=o(n(57058)),i=o(n(69730));function o(e){return e&&e.__esModule?e:{default:e}}t.DecapCmsBackendTest={TestBackend:r.default,AuthenticationPage:i.default}},76167:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.USE_OPEN_AUTHORING=t.LOGOUT=t.AUTH_SUCCESS=t.AUTH_REQUEST_DONE=t.AUTH_REQUEST=t.AUTH_FAILURE=void 0,t.authError=p,t.authenticate=f,t.authenticateUser=function(){return(e,t)=>{const n=t(),i=(0,r.currentBackend)(n.config);return e(d()),Promise.resolve(i.currentUser()).then((t=>{t?(t.useOpenAuthoring&&e(m()),e(f(t))):e(h())})).catch((t=>{e(p(t)),e(v())}))}},t.authenticating=d,t.doneAuthenticating=h,t.loginUser=function(e){return(t,n)=>{const o=n(),a=(0,r.currentBackend)(o.config);return t(d()),a.authenticate(e).then((e=>{e.useOpenAuthoring&&t(m()),t(f(e))})).catch((e=>{console.error(e),t((0,i.addNotification)({message:{details:e.message,key:"ui.toast.onFailToAuth"},type:"error",dismissAfter:8e3})),t(p(e))}))}},t.logout=g,t.logoutUser=v,t.useOpenAuthoring=m;var r=n(2241),i=n(5690);const o=t.AUTH_REQUEST="AUTH_REQUEST",a=t.AUTH_SUCCESS="AUTH_SUCCESS",s=t.AUTH_FAILURE="AUTH_FAILURE",l=t.AUTH_REQUEST_DONE="AUTH_REQUEST_DONE",u=t.USE_OPEN_AUTHORING="USE_OPEN_AUTHORING",c=t.LOGOUT="LOGOUT";function d(){return{type:o}}function f(e){return{type:a,payload:e}}function p(e){return{type:s,error:"Failed to authenticate",payload:e}}function h(){return{type:l}}function m(){return{type:u}}function g(){return{type:c}}function v(){return(e,t)=>{const n=t(),o=(0,r.currentBackend)(n.config);Promise.resolve(o.logout()).then((()=>{e(g()),e((0,i.clearNotifications)())}))}}},1582:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createNewEntry=function(e){r.history.push((0,i.getNewEntryUrl)(e))},t.searchCollections=function(e,t){t?r.history.push(`/collections/${t}/search/${e}`):r.history.push(`/search/${e}`)},t.showCollection=function(e){r.history.push((0,i.getCollectionUrl)(e))};var r=n(79278),i=n(9904)},54750:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONFIG_SUCCESS=t.CONFIG_REQUEST=t.CONFIG_FAILURE=void 0,t.applyDefaults=j,t.configFailed=z,t.configLoaded=F,t.configLoading=B,t.detectProxyServer=U,t.handleLocalBackend=q,t.loadConfig=function(e={},t){return window.CMS_CONFIG?F(window.CMS_CONFIG):async n=>{n(B());try{const i=function(){const e=document.querySelector('link[rel="cms-config-url"]');return e&&{"text/yaml":"yaml","application/x-yaml":"yaml"}[e.type]&&e.href?(console.log(`Using config file path: "${e.href}"`),e.href):"config.yml"}(),o=!(0,r.default)(e),a=!1===e.load_config_file?{}:await async function(e,t){const n=await fetch(e,{credentials:"same-origin"}).catch((e=>e));if(n instanceof Error||200!==n.status){if(t)return{};const e=n instanceof Error?n.message:n.status;throw new Error(`Failed to load config.yml (${e})`)}const r=n.headers.get("Content-Type")||"Not-Found";return-1===r.indexOf("yaml")&&(console.log(`Response for ${e} was not yaml. (Content-Type: ${r})`),t)?{}:N(await n.text())}(i,o),s=(0,l.default)(a,e);(0,d.validateConfig)(s),n(F(j(L(await q(s))))),"function"==typeof t&&t()}catch(e){throw n(z(e)),e}}},t.normalizeConfig=L,t.parseConfig=N;var r=y(n(45455)),i=y(n(5648)),o=y(n(93433)),a=y(n(60155)),s=n(46670),l=y(n(39714)),u=n(30412),c=n(61928),d=n(35276),f=n(45624),p=n(487),h=n(2241),m=n(13943),g=n(48781);const v=["sortableFields"];function y(e){return e&&e.__esModule?e:{default:e}}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t{const n=t(e);return function(e){return"fields"in e}(n)?w(w({},n),{},{fields:S(n.fields,t)}):E(n)&&n.field?w(w({},n),{},{field:S([n.field],t)[0]}):E(n)&&n.types?w(w({},n),{},{types:S(n.types,t)}):n}))}function C(e){return"media_folder"in e&&!("public_folder"in e)?w(w({},e),{},{public_folder:e.media_folder}):e}const T={dateFormat:"date_format",timeFormat:"time_format",pickerUtc:"picker_utc",editorComponents:"editor_components",valueType:"value_type",valueField:"value_field",searchFields:"search_fields",displayFields:"display_fields",optionsLength:"options_length"};function O(e){const t=Object.keys(T).filter((t=>t in e)).map((t=>{const n=T[t];return console.warn(`Field ${e.name} is using a deprecated configuration '${t}'. Please use '${n}'`),{[n]:e[t]}}));return Object.assign({},e,...t)}function A(e){return!0===e[m.I18N]?w(w({},e),{},{[m.I18N]:m.I18N_FIELD.TRANSLATE}):!1!==e[m.I18N]&&e[m.I18N]?e:w(w({},e),{},{[m.I18N]:m.I18N_FIELD.NONE})}function P(e,t){if("boolean"==typeof e)return t;{const n=e.locales||t.locales,r=e.default_locale||n[0],i=(0,l.default)(t,e);return i.locales=n,i.default_locale=r,M(i),i}}function R(e,t){return S(e,t?A:e=>{const t=w({},e);return delete t[m.I18N],t})}function D(e){if(e&&e.structure!==m.I18N_STRUCTURE.SINGLE_FILE)throw new Error(`i18n configuration for files collections is limited to ${m.I18N_STRUCTURE.SINGLE_FILE} structure`)}function M(e){if(e&&e.default_locale&&!e.locales.includes(e.default_locale))throw new Error(`i18n locales '${e.locales.join(", ")}' are missing the default locale ${e.default_locale}`)}function I(e,t){const n=(0,p.getIntegrations)((0,s.fromJS)(e));return!!(0,p.selectIntegration)(n,t.name,"listEntries")}function L(e){const{collections:t=[]}=e,n=t.map((e=>{const{fields:t,files:n}=e;let r=e;if(t){const e=S(t,O);r=w(w({},r),{},{fields:e})}if(n){const e=n.map((e=>{const t=S(e.fields,O);return w(w({},e),{},{fields:t})}));r=w(w({},r),{},{files:e})}if(r.sortableFields){const{sortableFields:t}=r;r=w(w({},function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(r,v)),{},{sortable_fields:t}),console.warn(`Collection ${e.name} is using a deprecated configuration 'sortableFields'. Please use 'sortable_fields'`)}return r}));return w(w({},e),{},{collections:n})}function j(e){return(0,u.produce)(e,(e=>{e.publish_mode=e.publish_mode||c.SIMPLE,e.slug=e.slug||{},e.collections=e.collections||[],!e.display_url&&e.site_url&&(e.display_url=e.site_url);const t=`/${(0,o.default)(e.media_folder,"/")}`;"public_folder"in e||(e.public_folder=t),"encoding"in e.slug||(e.slug.encoding="unicode"),"clean_accents"in e.slug||(e.slug.clean_accents=!1),"sanitize_replacement"in e.slug||(e.slug.sanitize_replacement="-");const n=e[m.I18N];n&&(n.default_locale=n.default_locale||n.locales[0]),M(n);const r=(0,h.resolveBackend)(e);for(const t of e.collections){"publish"in t||(t.publish=!0);let a=t[m.I18N];n&&a?(a=P(a,n),t[m.I18N]=a):(a=void 0,delete t[m.I18N]),t.fields&&(t.fields=R(t.fields,Boolean(a)));const{folder:l,files:u,view_filters:c,view_groups:d,meta:p}=t;if(l&&(t.type=g.FOLDER,t.path&&!t.media_folder&&(t.media_folder=""),"media_folder"in t&&!("public_folder"in t)&&(t.public_folder=t.media_folder),t.fields&&(t.fields=S(t.fields,C)),t.folder=(0,i.default)(l,"/"),p&&p.path)){const e=w({name:"path",meta:!0,required:!0},p.path);t.fields=[e,...t.fields||[]]}if(u){t.type=g.FILES,D(a),delete t.nested,delete t.meta;for(const e of u){e.file=(0,o.default)(e.file,"/"),"media_folder"in e&&!("public_folder"in e)&&(e.public_folder=e.media_folder),e.fields&&(e.fields=S(e.fields,C));let t=e[m.I18N];t&&a?(t=P(t,a),e[m.I18N]=t):(t=void 0,delete e[m.I18N]),D(t),e.fields&&(e.fields=R(e.fields,Boolean(t)))}}t.sortable_fields||(t.sortable_fields=(0,f.selectDefaultSortableFields)((0,s.fromJS)(t),r,I(e,t))),t.view_filters=(c||[]).map((e=>w(w({},e),{},{id:`${e.field}__${e.pattern}`}))),t.view_groups=(d||[]).map((e=>w(w({},e),{},{id:`${e.field}__${e.pattern}`}))),e.editor&&!t.editor&&(t.editor={preview:e.editor.preview})}}))}function N(e){const t=a.default.parse(e,{maxAliasCount:-1,prettyErrors:!0,merge:!0});if("undefined"!=typeof window&&"string"==typeof window.CMS_ENV&&t[window.CMS_ENV]){const e=Object.keys(t[window.CMS_ENV]);for(const n of e)t[n]=t[window.CMS_ENV][n]}return t}function F(e){return{type:x,payload:e}}function B(){return{type:_}}function z(e){return{type:k,error:"Error loading config",payload:e}}async function U(e){if(!["localhost","127.0.0.1",..."boolean"==typeof e?[]:(null==e?void 0:e.allowed_hosts)||[]].includes(location.hostname)||!e)return{};const t="http://localhost:8081/api/v1",n=!0===e?t:e.url||t.replace("localhost",location.hostname);try{console.log(`Looking for Decap CMS Proxy Server at '${n}'`);const e=await fetch(`${n}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"info"})}),{repo:t,publish_modes:r,type:i}=await e.json();return"string"==typeof t&&Array.isArray(r)&&"string"==typeof i?(console.log(`Detected Decap CMS Proxy Server at '${n}' with repo: '${t}'`),{proxyUrl:n,publish_modes:r,type:i}):(console.log(`Decap CMS Proxy Server not detected at '${n}'`),{})}catch{return console.log(`Decap CMS Proxy Server not detected at '${n}'`),{}}}async function q(e){if(!e.local_backend)return e;const{proxyUrl:t,publish_modes:n,type:r}=await U(e.local_backend);return t?(0,u.produce)(e,(e=>{e.backend.name="proxy",e.backend.proxy_url=t,e.publish_mode&&(e.publish_mode=function(e,t,n){if(e.publish_mode&&t&&!t.includes(e.publish_mode)){const r=t[0];return console.log(`'${e.publish_mode}' is not supported by '${n}' backend, switching to '${r}'`),r}return e.publish_mode}(e,n,r))})):e}},66145:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEPLOY_PREVIEW_SUCCESS=t.DEPLOY_PREVIEW_REQUEST=t.DEPLOY_PREVIEW_FAILURE=void 0,t.loadDeployPreview=function(e,t,n,l,c){return async(d,f)=>{const p=f(),h=(0,r.currentBackend)(p.config),m=e.get("name"),g=(0,i.selectDeployPreview)(p,m,t);if(!g||!g.isFetching){d(function(e,t){return{type:a,payload:{collection:e,slug:t}}}(m,t));try{const r=l?h.getDeploy(e,t,n):await h.getDeployPreview(e,t,n,c);return d(r?function(e,t,n){const{url:r,status:i}=n;return{type:s,payload:{collection:e,slug:t,url:r,status:i}}}(m,t,r):u(m,t))}catch(e){console.error(e),d((0,o.addNotification)({message:{details:e.message,key:"ui.toast.onFailToLoadDeployPreview"},type:"error",dismissAfter:8e3})),d(u(m,t))}}}};var r=n(2241),i=n(36642),o=n(5690);const a=t.DEPLOY_PREVIEW_REQUEST="DEPLOY_PREVIEW_REQUEST",s=t.DEPLOY_PREVIEW_SUCCESS="DEPLOY_PREVIEW_SUCCESS",l=t.DEPLOY_PREVIEW_FAILURE="DEPLOY_PREVIEW_FAILURE";function u(e,t){return{type:l,payload:{collection:e,slug:t}}}},91358:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UNPUBLISHED_ENTRY_SUCCESS=t.UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS=t.UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST=t.UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE=t.UNPUBLISHED_ENTRY_REQUEST=t.UNPUBLISHED_ENTRY_REDIRECT=t.UNPUBLISHED_ENTRY_PUBLISH_SUCCESS=t.UNPUBLISHED_ENTRY_PUBLISH_REQUEST=t.UNPUBLISHED_ENTRY_PUBLISH_FAILURE=t.UNPUBLISHED_ENTRY_PERSIST_SUCCESS=t.UNPUBLISHED_ENTRY_PERSIST_REQUEST=t.UNPUBLISHED_ENTRY_PERSIST_FAILURE=t.UNPUBLISHED_ENTRY_DELETE_SUCCESS=t.UNPUBLISHED_ENTRY_DELETE_REQUEST=t.UNPUBLISHED_ENTRY_DELETE_FAILURE=t.UNPUBLISHED_ENTRIES_SUCCESS=t.UNPUBLISHED_ENTRIES_REQUEST=t.UNPUBLISHED_ENTRIES_FAILURE=void 0,t.deleteUnpublishedEntry=function(e,t){return(n,r)=>{const i=r(),o=(0,a.currentBackend)(i.config);return n(function(e,t){return{type:M,payload:{collection:e,slug:t}}}(e,t)),o.deleteUnpublishedEntry(e,t).then((()=>{n((0,g.addNotification)({message:{key:"ui.toast.onDeleteUnpublishedChanges"},type:"success",dismissAfter:4e3})),n(function(e,t){return{type:I,payload:{collection:e,slug:t}}}(e,t))})).catch((r=>{n((0,g.addNotification)({message:{key:"ui.toast.onDeleteUnpublishedChanges",details:r},type:"error",dismissAfter:8e3})),n(function(e,t){return{type:L,payload:{collection:e,slug:t}}}(e,t))}))}},t.loadUnpublishedEntries=U,t.loadUnpublishedEntry=z,t.persistUnpublishedEntry=function(e,t){return async(n,i)=>{const o=i(),l=o.entryDraft,u=l.get("fieldsErrors"),d=(0,s.selectUnpublishedSlugs)(o,e.get("name")),f=(0,s.selectPublishedSlugs)(o,e.get("name")).concat(d);if(!(0,r.default)(o.editorialWorkflow.toJS(),"pages.ids",!1)&&n(U(o.collections)),!u.isEmpty())return u.some((e=>e.some((e=>e.type&&e.type===h.default.PRESENCE))))&&n((0,g.addNotification)({message:{key:"ui.toast.missingRequiredField"},type:"error",dismissAfter:8e3})),Promise.reject();const p=(0,a.currentBackend)(o.config),v=l.get("entry"),y=(0,c.getMediaAssets)({entry:v}),b=(0,c.getSerializedEntry)(e,v),w=l.set("entry",b);n(N(e,v.get("slug")));const _=t?p.persistUnpublishedEntry:p.persistEntry;try{const t=await _.call(p,{config:o.config,collection:e,entryDraft:w,assetProxies:y,usedSlugs:f});n((0,g.addNotification)({message:{key:"ui.toast.entrySaved"},type:"success",dismissAfter:4e3})),n(F(e,b)),v.get("slug")!==t&&(await n(z(e,t)),(0,m.navigateToEntry)(e.get("name"),t))}catch(t){return n((0,g.addNotification)({message:{key:"ui.toast.onFailToPersist",details:t},type:"error",dismissAfter:8e3})),Promise.reject(n(B(t,e,v.get("slug"))))}}},t.publishUnpublishedEntry=function(e,t){return async(n,r)=>{const i=r(),o=i.collections,u=(0,a.currentBackend)(i.config),d=(0,s.selectUnpublishedEntry)(i,e,t);n(function(e,t){return{type:P,payload:{collection:e,slug:t}}}(e,t));try{await u.publishUnpublishedEntry(d),n((0,p.loadMedia)()),n((0,g.addNotification)({message:{key:"ui.toast.entryPublished"},type:"success",dismissAfter:4e3})),n(function(e,t){return{type:R,payload:{collection:e,slug:t}}}(e,t));const r=o.get(e);if(!r.has("nested"))return n((0,c.loadEntry)(r,t));{n((0,c.loadEntries)(r));const e=(0,a.slugFromCustomPath)(r,d.get("path"));(0,c.loadEntry)(r,e),t!==e&&(0,l.selectEditingDraft)(i.entryDraft)&&(0,m.navigateToEntry)(r.get("name"),e)}}catch(r){n((0,g.addNotification)({message:{key:"ui.toast.onFailToPublishEntry",details:r},type:"error",dismissAfter:8e3})),n(function(e,t){return{type:D,payload:{collection:e,slug:t}}}(e,t))}}},t.unpublishPublishedEntry=function(e,t){return(n,r)=>{const o=r(),l=(0,a.currentBackend)(o.config),d=(0,s.selectEntry)(o,e.get("name"),t),f=(0,i.Map)().set("entry",d);return n(N(e,t)),l.deleteEntry(o,e,t).then((()=>l.persistEntry({config:o.config,collection:e,entryDraft:f,assetProxies:[],usedSlugs:(0,i.List)(),status:u.status.get("PENDING_PUBLISH")}))).then((()=>{n(F(e,d)),n((0,c.entryDeleted)(e,t)),n(z(e,t)),n((0,g.addNotification)({message:{key:"ui.toast.entryUnpublished"},type:"success",dismissAfter:4e3}))})).catch((t=>{n((0,g.addNotification)({message:{key:"ui.toast.onFailToUnpublishEntry",details:t},type:"error",dismissAfter:8e3})),n(B(t,e,d.get("slug")))}))}},t.updateUnpublishedEntryStatus=function(e,t,n,r){return(i,o)=>{if(n===r)return;const s=o(),l=(0,a.currentBackend)(s.config);i(function(e,t){return{type:T,payload:{collection:e,slug:t}}}(e,t)),l.updateUnpublishedEntryStatus(e,t,r).then((()=>{i((0,g.addNotification)({message:{key:"ui.toast.entryUpdated"},type:"success",dismissAfter:4e3})),i(function(e,t,n){return{type:O,payload:{collection:e,slug:t,newStatus:n}}}(e,t,r))})).catch((n=>{i((0,g.addNotification)({message:{key:"ui.toast.onFailToUpdateStatus",details:n},type:"error",dismissAfter:8e3})),i(function(e,t){return{type:A,payload:{collection:e,slug:t}}}(e,t))}))}};var r=v(n(72579)),i=n(46670),o=n(33806),a=n(2241),s=n(36642),l=n(58308),u=n(61928),c=n(50236),d=n(25606),f=n(71033),p=n(68104),h=v(n(1757)),m=n(79278),g=n(5690);function v(e){return e&&e.__esModule?e:{default:e}}const y=t.UNPUBLISHED_ENTRY_REQUEST="UNPUBLISHED_ENTRY_REQUEST",b=t.UNPUBLISHED_ENTRY_SUCCESS="UNPUBLISHED_ENTRY_SUCCESS",w=t.UNPUBLISHED_ENTRY_REDIRECT="UNPUBLISHED_ENTRY_REDIRECT",_=t.UNPUBLISHED_ENTRIES_REQUEST="UNPUBLISHED_ENTRIES_REQUEST",x=t.UNPUBLISHED_ENTRIES_SUCCESS="UNPUBLISHED_ENTRIES_SUCCESS",k=t.UNPUBLISHED_ENTRIES_FAILURE="UNPUBLISHED_ENTRIES_FAILURE",E=t.UNPUBLISHED_ENTRY_PERSIST_REQUEST="UNPUBLISHED_ENTRY_PERSIST_REQUEST",S=t.UNPUBLISHED_ENTRY_PERSIST_SUCCESS="UNPUBLISHED_ENTRY_PERSIST_SUCCESS",C=t.UNPUBLISHED_ENTRY_PERSIST_FAILURE="UNPUBLISHED_ENTRY_PERSIST_FAILURE",T=t.UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST="UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST",O=t.UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS="UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS",A=t.UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE="UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE",P=t.UNPUBLISHED_ENTRY_PUBLISH_REQUEST="UNPUBLISHED_ENTRY_PUBLISH_REQUEST",R=t.UNPUBLISHED_ENTRY_PUBLISH_SUCCESS="UNPUBLISHED_ENTRY_PUBLISH_SUCCESS",D=t.UNPUBLISHED_ENTRY_PUBLISH_FAILURE="UNPUBLISHED_ENTRY_PUBLISH_FAILURE",M=t.UNPUBLISHED_ENTRY_DELETE_REQUEST="UNPUBLISHED_ENTRY_DELETE_REQUEST",I=t.UNPUBLISHED_ENTRY_DELETE_SUCCESS="UNPUBLISHED_ENTRY_DELETE_SUCCESS",L=t.UNPUBLISHED_ENTRY_DELETE_FAILURE="UNPUBLISHED_ENTRY_DELETE_FAILURE";function j(e,t){return{type:x,payload:{entries:e,pages:t}}}function N(e,t){return{type:E,payload:{collection:e.get("name"),slug:t}}}function F(e,t){return{type:S,payload:{collection:e.get("name"),entry:t}}}function B(e,t,n){return{type:C,payload:{error:e,collection:t.get("name"),slug:n},error:e}}function z(e,t){return async(n,i)=>{const s=i(),l=(0,a.currentBackend)(s.config);if(!(0,r.default)(s.editorialWorkflow.toJS(),"pages.ids",!1))try{const{entries:e,pagination:t}=await l.unpublishedEntries(s.collections);n(j(e,t))}catch(e){}n(function(e,t){return{type:y,payload:{collection:e.get("name"),slug:t}}}(e,t));try{const r=await l.unpublishedEntry(s,e,t),i=await Promise.all(r.mediaFiles.filter((e=>e.draft)).map((({url:e,file:t,path:n})=>(0,d.createAssetProxy)({path:n,url:e,file:t}))));n((0,f.addAssets)(i)),n(function(e,t){return{type:b,payload:{collection:e.get("name"),entry:t}}}(e,r)),n((0,c.createDraftFromEntry)(r))}catch(r){r.name===o.EDITORIAL_WORKFLOW_ERROR&&r.notUnderEditorialWorkflow?(n(function(e,t){return{type:w,payload:{collection:e.get("name"),slug:t}}}(e,t)),n((0,c.loadEntry)(e,t))):n((0,g.addNotification)({message:{key:"ui.toast.onFailToLoadEntries",details:r},type:"error",dismissAfter:8e3}))}}}function U(e){return(t,n)=>{const i=n(),o=(0,a.currentBackend)(i.config),s=(0,r.default)(i.editorialWorkflow.toJS(),"pages.ids",!1);i.config.publish_mode!==u.EDITORIAL_WORKFLOW||s||(t({type:_}),o.unpublishedEntries(e).then((e=>t(j(e.entries,e.pagination)))).catch((e=>{t((0,g.addNotification)({message:{key:"ui.toast.onFailToLoadEntries",details:e},type:"error",dismissAfter:8e3})),t(function(e){return{type:k,error:"Failed to load entries",payload:e}}(e)),Promise.reject(e)})))}}},50236:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SORT_ENTRIES_SUCCESS=t.SORT_ENTRIES_REQUEST=t.SORT_ENTRIES_FAILURE=t.REMOVE_DRAFT_ENTRY_MEDIA_FILE=t.GROUP_ENTRIES_SUCCESS=t.GROUP_ENTRIES_REQUEST=t.GROUP_ENTRIES_FAILURE=t.FILTER_ENTRIES_SUCCESS=t.FILTER_ENTRIES_REQUEST=t.FILTER_ENTRIES_FAILURE=t.ENTRY_SUCCESS=t.ENTRY_REQUEST=t.ENTRY_PERSIST_SUCCESS=t.ENTRY_PERSIST_REQUEST=t.ENTRY_PERSIST_FAILURE=t.ENTRY_FAILURE=t.ENTRY_DELETE_SUCCESS=t.ENTRY_DELETE_REQUEST=t.ENTRY_DELETE_FAILURE=t.ENTRIES_SUCCESS=t.ENTRIES_REQUEST=t.ENTRIES_FAILURE=t.DRAFT_VALIDATION_ERRORS=t.DRAFT_LOCAL_BACKUP_RETRIEVED=t.DRAFT_DISCARD=t.DRAFT_CREATE_FROM_LOCAL_BACKUP=t.DRAFT_CREATE_FROM_ENTRY=t.DRAFT_CREATE_EMPTY=t.DRAFT_CREATE_DUPLICATE_FROM_ENTRY=t.DRAFT_CLEAR_ERRORS=t.DRAFT_CHANGE_FIELD=t.CHANGE_VIEW_STYLE=t.ADD_DRAFT_ENTRY_MEDIA_FILE=void 0,t.addDraftEntryMediaFile=function(e){return{type:ie,payload:e}},t.changeDraftField=function({field:e,value:t,metadata:n,entries:r,i18n:i}){return{type:V,payload:{field:e,value:t,metadata:n,entries:r,i18n:i}}},t.changeDraftFieldValidation=function(e,t){return{type:G,payload:{uniquefieldId:e,errors:t}}},t.changeViewStyle=function(e){return{type:ae,payload:{style:e}}},t.clearFieldErrors=function(){return{type:K}},t.createDraftDuplicateFromEntry=function(e){return t=>{t((0,y.waitUntil)({predicate:({type:e})=>e===$,run:()=>t(ke(e))}))}},t.createDraftFromEntry=xe,t.createEmptyDraft=function(e,t){return async(n,r)=>{new URLSearchParams(t).forEach(((t,n)=>{e=(0,s.updateFieldByKey)(e,n,(e=>{return e.set("default",!!["true","True","TRUE"].includes(n=t)||!["false","False","FALSE"].includes(n)&&function(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}(n));var n}))}));const o=e.get("fields",(0,i.List)()),a=function(e){return e.filter((e=>!e.get("meta"))).toList()}(o),l=Pe(a),u=function(e){return e.filter((e=>!0===e.get("meta"))).toList()}(o),d=Pe(u),p=r(),h=(0,c.currentBackend)(p.config);e.has("media_folder")||await(0,v.waitForMediaLibraryToLoad)(n,r());const m=function(e,t){if(!(0,k.hasI18n)(e))return{};const n=Pe(t,(function(e){return e.get(k.I18N)!==k.I18N_FIELD.DUPLICATE&&e.get(k.I18N)!==k.I18N_FIELD.TRANSLATE}));return(0,k.duplicateDefaultI18nFields)(e,n)}(e,a);let g=(0,f.createEntry)(e.get("name"),"","",{data:l,i18n:m,mediaFiles:[],meta:d});g=await h.processEntry(p,e,g),n(_e(g))}},t.createEmptyDraftData=Pe,t.deleteEntry=function(e,t){return(n,r)=>{const i=r(),o=(0,c.currentBackend)(i.config);return n(ye(e,t)),o.deleteEntry(i,e,t).then((()=>n(be(e,t)))).catch((r=>(n((0,E.addNotification)({message:{details:r,key:"ui.toast.onFailToDelete"},type:"error",dismissAfter:8e3})),console.error(r),Promise.reject(n(we(e,t,r))))))}},t.deleteLocalBackup=function(e,t){return(n,r)=>{const i=r();return(0,c.currentBackend)(i.config).deleteLocalDraftBackup(e,t)}},t.discardDraft=function(){return{type:H}},t.draftDuplicateEntry=ke,t.emptyDraftCreated=_e,t.entriesFailed=fe,t.entriesLoaded=de,t.entriesLoading=ce,t.entryDeleteFail=we,t.entryDeleted=be,t.entryDeleting=ye,t.entryLoadError=ue,t.entryLoaded=le,t.entryLoading=se,t.entryPersistFail=ve,t.entryPersisted=ge,t.entryPersisting=me,t.filterByField=function(e,t){return async(n,r)=>{const i=r(),o=(0,b.selectIsFetching)(i.entries,e.get("name"));if(n({type:N,payload:{collection:e.get("name"),filter:t}}),!o)try{const r=await pe(i,e);n({type:F,payload:{collection:e.get("name"),filter:t,entries:r}})}catch(r){n({type:B,payload:{collection:e.get("name"),filter:t,error:r}})}}},t.getAllEntries=pe,t.getMediaAssets=Re,t.getSerializedEntry=De,t.groupByField=function(e,t){return async(n,r)=>{const i=r(),o=(0,b.selectIsFetching)(i.entries,e.get("name"));if(n({type:z,payload:{collection:e.get("name"),group:t}}),!o)try{const r=await pe(i,e);n({type:U,payload:{collection:e.get("name"),group:t,entries:r}})}catch(r){n({type:q,payload:{collection:e.get("name"),group:t,error:r}})}}},t.loadEntries=Ae,t.loadEntry=Se,t.loadLocalBackup=function(){return{type:Y}},t.localBackupRetrieved=Ee,t.persistEntry=function(e){return async(t,n)=>{const r=n(),i=r.entryDraft,o=i.get("fieldsErrors"),a=(0,l.selectPublishedSlugs)(r,e.get("name"));if(!o.isEmpty())return o.some((e=>e.some((e=>e.type&&e.type===h.default.PRESENCE))))&&t((0,E.addNotification)({message:{key:"ui.toast.missingRequiredField"},type:"error",dismissAfter:8e3})),Promise.reject();const s=(0,c.currentBackend)(r.config),u=i.get("entry"),d=Re({entry:u}),f=De(e,u),p=i.set("entry",f);return t(me(e,f)),s.persistEntry({config:r.config,collection:e,entryDraft:p,assetProxies:d,usedSlugs:a}).then((async n=>{t((0,E.addNotification)({message:{key:"ui.toast.entrySaved"},type:"success",dismissAfter:4e3})),d.length>0&&await t((0,v.loadMedia)()),t(ge(e,f,n)),e.has("nested")&&await t(Ae(e)),u.get("slug")!==n&&(await t(Se(e,n)),(0,_.navigateToEntry)(e.get("name"),n))})).catch((n=>(console.error(n),t((0,E.addNotification)({message:{details:n,key:"ui.toast.onFailToPersist"},type:"error",dismissAfter:8e3})),Promise.reject(t(ve(e,f,n))))))}},t.persistLocalBackup=function(e,t){return(n,r)=>{const i=r();return(0,c.currentBackend)(i.config).persistLocalDraftBackup(e,t)}},t.removeDraftEntryMediaFile=function({id:e}){return{type:oe,payload:{id:e}}},t.retrieveLocalBackup=function(e,t){return async(n,r)=>{const o=r(),a=(0,c.currentBackend)(o.config),{entry:s}=await a.getLocalDraftBackup(e,t);if(s){const t=s.mediaFiles||[],o=await Promise.all(t.map((t=>t.file||t.url?(0,p.createAssetProxy)({path:t.path,file:t.file,url:t.url,field:t.field}):(0,m.getAsset)({collection:e,entry:(0,i.fromJS)(s),path:t.path,field:t.field})(n,r))));return n((0,m.addAssets)(o)),n(Ee(s))}}},t.sortByField=he,t.traverseCollectionCursor=function(e,t){return async(n,r)=>{const i=r(),o=e.get("name");if(i.entries.getIn(["pages",`${o}`,"isFetching"]))return;const s=(0,c.currentBackend)(i.config),{action:l,append:u}=Te.has(t)?Te.get(t).toJS():{action:t,append:!1},d=(0,a.selectCollectionEntriesCursor)(i.cursors,e.get("name"));if(d.meta.get("usingOldPaginationAPI",!1))return n(Ae(e,d.data.get("nextPage")));try{var f;n(ce(e));const{entries:t,cursor:r}=await function(e,t,n){if(!t.actions.has(n))throw new Error(`The current cursor does not support the pagination action "${n}".`);return e.traverseCursor(t,n)}(s,d,l),i=null===(f=r.meta)||void 0===f?void 0:f.get("page");return n(de(e,t,i,Oe(r),u))}catch(t){return console.error(t),n((0,E.addNotification)({message:{details:t,key:"ui.toast.onFailToLoadEntries"},type:"error",dismissAfter:8e3})),Promise.reject(n(fe(e,t)))}}},t.tryLoadEntry=Ce,t.validateMetaField=function(e,t,n,r,o){if(n.get("meta")&&"path"===n.get("name")){var a;if(!r)return Me(r,"invalidPath",o);const n=r.split("/").map((0,x.getProcessSegment)(e.config.slug)).join("/");if(r!==n)return Me(r,"invalidPath",o);const s=(0,w.selectCustomPath)(t,(0,i.fromJS)({entry:{meta:{path:r}}})),l=s?(0,b.selectEntryByPath)(e.entries,t.get("name"),s):void 0,u=null==l?void 0:l.get("path"),c=null===(a=e.entryDraft)||void 0===a?void 0:a.getIn(["entry","path"]);if(u&&u!==c)return Me(r,"pathExists",o)}return{error:!1}};var r=S(n(18149)),i=n(46670),o=n(33806),a=n(63647),s=n(45624),l=n(36642),u=n(766),c=n(2241),d=n(33188),f=n(15583),p=n(25606),h=S(n(1757)),m=n(71033),g=n(67964),v=n(68104),y=n(80110),b=n(58308),w=n(51748),_=n(79278),x=n(59311),k=n(13943),E=n(5690);function S(e){return e&&e.__esModule?e:{default:e}}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t{const o=i(),a=(0,b.selectIsFetching)(o.entries,e.get("name"));if(r({type:I,payload:{collection:e.get("name"),key:t,direction:n}}),!a)try{const i=await pe(o,e);r({type:L,payload:{collection:e.get("name"),key:t,direction:n,entries:i}})}catch(i){r({type:j,payload:{collection:e.get("name"),key:t,direction:n,error:i}})}}}function me(e,t){return{type:Q,payload:{collectionName:e.get("name"),entrySlug:t.get("slug")}}}function ge(e,t,n){return{type:J,payload:{collectionName:e.get("name"),entrySlug:t.get("slug"),slug:n}}}function ve(e,t,n){return{type:ee,error:"Failed to persist entry",payload:{collectionName:e.get("name"),entrySlug:t.get("slug"),error:n.toString()}}}function ye(e,t){return{type:te,payload:{collectionName:e.get("name"),entrySlug:t}}}function be(e,t){return{type:ne,payload:{collectionName:e.get("name"),entrySlug:t}}}function we(e,t,n){return{type:re,payload:{collectionName:e.get("name"),entrySlug:t,error:n.toString()}}}function _e(e){return{type:$,payload:e}}function xe(e){return{type:W,payload:{entry:e}}}function ke(e){return{type:X,payload:(0,f.createEntry)(e.get("collection"),"","",{data:e.get("data"),mediaFiles:e.get("mediaFiles").toJS()})}}function Ee(e){return{type:Z,payload:{entry:e}}}function Se(e,t){return async(n,r)=>{await(0,v.waitForMediaLibraryToLoad)(n,r()),n(se(e,t));try{const i=await Ce(r(),e,t);n(le(e,i)),n(xe(i))}catch(r){n((0,E.addNotification)({message:{details:r.message,key:"ui.toast.onFailToLoadEntries"},type:"error",dismissAfter:8e3})),n(ue(r,e,t))}}}async function Ce(e,t,n){const r=(0,c.currentBackend)(e.config);return await r.getEntry(e,t,n)}const Te=(0,i.fromJS)({append_next:{action:"next",append:!0}});function Oe(e){return o.Cursor.create(e).updateStore("actions",(e=>e.union(Te.filter((t=>e.has(t.get("action")))).keySeq())))}function Ae(e,t=0){return async(n,r)=>{if(e.get("isFetching"))return;const i=r(),a=(0,b.selectEntriesSortFields)(i.entries,e.get("name"));if(a&&a.length>0){const t=a[0];return n(he(e,t.get("key"),t.get("direction")))}const s=(0,c.currentBackend)(i.config),d=(0,l.selectIntegration)(i,e.get("name"),"listEntries"),f=d?(0,u.getIntegrationProvider)(i.integrations,s.getToken,d):s,p=!!(t&&!isNaN(t)&&t>0);n(ce(e));try{const r=e.has("nested")||(0,k.hasI18n)(e);let i=await(r?f.listAllEntries(e).then((e=>({entries:e}))):f.listEntries(e,t));i=T(T({},i),{},{cursor:d?o.Cursor.create({actions:["next"],meta:{usingOldPaginationAPI:!0},data:{nextPage:t+1}}):o.Cursor.create(i.cursor)}),n(de(e,i.cursor.meta.get("usingOldPaginationAPI")?i.entries.reverse():i.entries,i.pagination,Oe(i.cursor),p))}catch(t){return n((0,E.addNotification)({message:{details:t,key:"ui.toast.onFailToLoadEntries"},type:"error",dismissAfter:8e3})),Promise.reject(n(fe(e,t)))}}}function Pe(e,t=(()=>!1)){return e.reduce(((e,n)=>{const o=e,a=n;if(t(a))return o;const s=a.get("field")||a.get("fields"),l="list"==a.get("widget"),u=a.get("name"),c=a.get("default",null);if(i.List.isList(s)||i.Map.isMap(s)){if(l&&i.List.isList(c))o[u]=c;else{const e=i.List.isList(s)?s:(0,i.List)([s]),n=l?[Pe(e,t)]:Pe(e,t);d=n,[[{}],{}].some((e=>(0,r.default)(d,e)))||(o[u]=n)}return o}var d;return null!==c&&(o[u]=c),o}),{})}function Re({entry:e}){return e.get("mediaFiles").toArray().filter((e=>e.get("draft"))).map((e=>(0,p.createAssetProxy)({path:e.get("path"),file:e.get("file"),url:e.get("url"),field:e.get("field")})))}function De(e,t){const n=(0,s.selectFields)(e,t.get("slug"));function r(e){return(0,d.serializeValues)(e,n)}const i=r(t.get("data"));let o=t.set("data",i);return(0,k.hasI18n)(e)&&(o=(0,k.serializeI18n)(e,o,r)),o}function Me(e,t,n){return{error:{type:h.default.CUSTOM,message:n(`editor.editorControlPane.widget.${t}`,{path:e})}}}},71033:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.REMOVE_ASSET=t.LOAD_ASSET_SUCCESS=t.LOAD_ASSET_REQUEST=t.LOAD_ASSET_FAILURE=t.ADD_ASSETS=t.ADD_ASSET=void 0,t.addAsset=h,t.addAssets=function(e){return{type:l,payload:e}},t.boundGetAsset=function(e,t,n){return function(r,i){return e(w({collection:t,entry:n,path:r,field:i}))}},t.getAsset=w,t.loadAsset=y,t.loadAssetFailure=v,t.loadAssetRequest=m,t.loadAssetSuccess=g,t.removeAsset=function(e){return{type:c,payload:e}};var r=n(33806),i=n(25606),o=n(58308),a=n(90694),s=n(68104);const l=t.ADD_ASSETS="ADD_ASSETS",u=t.ADD_ASSET="ADD_ASSET",c=t.REMOVE_ASSET="REMOVE_ASSET",d=t.LOAD_ASSET_REQUEST="LOAD_ASSET_REQUEST",f=t.LOAD_ASSET_SUCCESS="LOAD_ASSET_SUCCESS",p=t.LOAD_ASSET_FAILURE="LOAD_ASSET_FAILURE";function h(e){return{type:u,payload:e}}function m(e){return{type:d,payload:{path:e}}}function g(e){return{type:f,payload:{path:e}}}function v(e,t){return{type:p,payload:{path:e,error:t}}}function y(e){return async(t,n)=>{try{t(m(e)),await(0,s.waitForMediaLibraryToLoad)(t,n());const r=(0,a.selectMediaFileByPath)(n(),e);if(r){const o=await(0,s.getMediaDisplayURL)(t,n(),r);t(h((0,i.createAssetProxy)({path:e,url:o||e})))}else{const{url:r}=await(0,s.getMediaFile)(n(),e);t(h((0,i.createAssetProxy)({path:e,url:r})))}t(g(e))}catch(n){t(v(e,n))}}}const b=(0,i.createAssetProxy)({path:"empty.svg",file:new File([''],"empty.svg",{type:"image/svg+xml"})});function w({collection:e,entry:t,path:n,field:a}){return(s,l)=>{if(!n)return b;const u=l(),c=(0,o.selectMediaFilePath)(u.config,e,t,n,a);let{asset:d,isLoading:f,error:p}=u.medias[c]||{};return f?b:d||((0,r.isAbsolutePath)(c)||p?(d=(0,i.createAssetProxy)({path:c,url:n}),s(h(d))):(s(y(c)),d=b),d)}}},68104:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MEDIA_REMOVE_INSERTED=t.MEDIA_PERSIST_SUCCESS=t.MEDIA_PERSIST_REQUEST=t.MEDIA_PERSIST_FAILURE=t.MEDIA_LOAD_SUCCESS=t.MEDIA_LOAD_REQUEST=t.MEDIA_LOAD_FAILURE=t.MEDIA_LIBRARY_OPEN=t.MEDIA_LIBRARY_CREATE=t.MEDIA_LIBRARY_CLOSE=t.MEDIA_INSERT=t.MEDIA_DISPLAY_URL_SUCCESS=t.MEDIA_DISPLAY_URL_REQUEST=t.MEDIA_DISPLAY_URL_FAILURE=t.MEDIA_DELETE_SUCCESS=t.MEDIA_DELETE_REQUEST=t.MEDIA_DELETE_FAILURE=void 0,t.clearMediaControl=function(e){return(t,n)=>{const r=n().mediaLibrary.get("externalLibrary");r&&r.onClearControl({id:e})}},t.closeMediaLibrary=function(){return(e,t)=>{const n=t().mediaLibrary.get("externalLibrary");n&&n.hide(),e({type:b})}},t.createMediaLibrary=function(e){const t={show:e.show||(()=>{}),hide:e.hide||(()=>{}),onClearControl:e.onClearControl||(()=>{}),onRemoveControl:e.onRemoveControl||(()=>{}),enableStandalone:e.enableStandalone||(()=>{})};return{type:w,payload:t}},t.deleteMedia=j,t.getMediaDisplayURL=async function(e,t,n){const r=(0,u.selectMediaDisplayURL)(t,n.id);let i;if(r.get("url"))i=r.get("url");else if(r.get("err"))i=null;else{var o;const t=n.id,a=(0,h.waitUntilWithTimeout)(e,(e=>({predicate:({type:e,payload:n})=>(e===M||e===I)&&n.key===t,run:(t,n,r)=>e(r.payload.url)})));r.get("isFetching")||e(N(n)),i=null!==(o=await a)&&void 0!==o?o:null}return i},t.getMediaFile=async function(e,t){const n=(0,o.currentBackend)(e.config),{url:r}=await n.getMediaFile(t);return{url:r}},t.insertMedia=function(e,t){return(n,r)=>{const i=r(),o=i.config,a=i.entryDraft.get("entry"),s=i.entryDraft.getIn(["entry","collection"]),u=i.collections.get(s);n(function(e){return{type:_,payload:{mediaPath:e}}}(e=Array.isArray(e)?e.map((e=>(0,l.selectMediaFilePublicPath)(o,u,e,a,t))):(0,l.selectMediaFilePublicPath)(o,u,e,a,t)))}},t.loadMedia=function(e={}){const{delay:t=0,query:n="",page:r=1,privateUpload:i}=e;return async(e,a)=>{const l=a(),u=(0,o.currentBackend)(l.config),d=(0,s.selectIntegration)(l,null,"assetStore");if(d){const t=(0,c.getIntegrationProvider)(l.integrations,u.getToken,d);e(F(r));try{const o=await t.retrieve(n,r,i);return e(B(o,{page:r,canPaginate:!0,dynamicSearch:!0,dynamicSearchQuery:n,privateUpload:i}))}catch(t){return e(z({privateUpload:i}))}}function f(){return u.getMedia().then((t=>e(B(t)))).catch((t=>{console.error(t),404===t.status?(console.log("This 404 was expected and handled appropriately."),e(B([]))):e(z())}))}return e(F(r)),t>0?new Promise((e=>{setTimeout((()=>e(f())),t)})):f()}},t.loadMediaDisplayURL=N,t.mediaDeleteFailed=V,t.mediaDeleted=H,t.mediaDeleting=$,t.mediaDisplayURLFailure=Z,t.mediaDisplayURLRequest=G,t.mediaDisplayURLSuccess=K,t.mediaLoadFailed=z,t.mediaLoaded=B,t.mediaLoading=F,t.mediaPersistFailed=W,t.mediaPersisted=q,t.mediaPersisting=U,t.openMediaLibrary=function(e={}){return(t,n)=>{const i=n().mediaLibrary.get("externalLibrary");if(i){const{controlID:t,value:n,config:o=(0,r.Map)(),allowMultiple:a,forImage:s}=e;i.show({id:t,value:n,config:o.toJS(),allowMultiple:a,imagesOnly:s})}t(function(e){return{type:y,payload:e}}(e))}},t.persistMedia=function(e,t={}){const{privateUpload:n,field:r}=t;return async(t,h)=>{const g=h(),v=(0,o.currentBackend)(g.config),y=(0,s.selectIntegration)(g,null,"assetStore"),b=(0,u.selectMediaFiles)(g,r),w=(0,p.sanitizeSlug)(e.name.toLowerCase(),g.config.slug),_=b.find((e=>e.name.toLowerCase()===w)),x=(0,l.selectEditingDraft)(g.entryDraft);if(!y&&_){if(!window.confirm(`${_.name} already exists. Do you want to replace it?`))return;await t(j(_,{privateUpload:n}))}!y&&x||t(U());try{let o,s;if(y)try{const t=(0,c.getIntegrationProvider)(g.integrations,v.getToken,y),r=await t.upload(e,n);o=(0,a.createAssetProxy)({url:r.asset.url,path:r.asset.url})}catch(t){o=(0,a.createAssetProxy)({file:e,path:w})}else{if(n)throw new Error("The Private Upload option is only available for Asset Store Integration");{const t=g.entryDraft.get("entry"),n=g.collections.get(null==t?void 0:t.get("collection")),i=(0,l.selectMediaFilePath)(g.config,n,t,w,r);o=(0,a.createAssetProxy)({file:e,path:i,field:r})}}if(t((0,d.addAsset)(o)),y)s=L({id:await(0,i.getBlobSHA)(e),file:e,assetProxy:o,draft:!1});else{if(x)return s=L({id:await(0,i.getBlobSHA)(e),file:e,assetProxy:o,draft:x}),t((0,f.addDraftEntryMediaFile)(s));s=await v.persistMedia(g.config,o)}return t(q(s,{privateUpload:n}))}catch(e){return console.error(e),t((0,m.addNotification)({message:`Failed to persist media: ${e}`,type:"error",dismissAfter:8e3})),t(W({privateUpload:n}))}}},t.removeInsertedMedia=function(e){return{type:x,payload:{controlID:e}}},t.removeMediaControl=function(e){return(t,n)=>{const r=n().mediaLibrary.get("externalLibrary");r&&r.onRemoveControl({id:e})}},t.waitForMediaLibraryToLoad=async function(e,t){!1===t.mediaLibrary.get("isLoading")||t.mediaLibrary.get("externalLibrary")||await(0,h.waitUntilWithTimeout)(e,(e=>({predicate:({type:e})=>e===E||e===S,run:()=>e()})))};var r=n(46670),i=n(33806),o=n(2241),a=n(25606),s=n(36642),l=n(58308),u=n(90694),c=n(766),d=n(71033),f=n(50236),p=n(9904),h=n(80110),m=n(5690);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t{const i=r(),a=(0,o.currentBackend)(i.config),u=(0,s.selectIntegration)(i,null,"assetStore");if(u){const r=(0,c.getIntegrationProvider)(i.integrations,a.getToken,u);t($());try{return await r.delete(e.id),t(H(e,{privateUpload:n}))}catch(e){return console.error(e),t((0,m.addNotification)({message:`Failed to delete media: ${e.message}`,type:"error",dismissAfter:8e3})),t(V({privateUpload:n}))}}try{if(e.draft)t((0,d.removeAsset)(e.path)),t((0,f.removeDraftEntryMediaFile)({id:e.id}));else{const n=(0,l.selectEditingDraft)(i.entryDraft);t($()),t((0,d.removeAsset)(e.path)),await a.deleteMedia(i.config,e.path),t(H(e)),n&&t((0,f.removeDraftEntryMediaFile)({id:e.id}))}}catch(e){return console.error(e),t((0,m.addNotification)({message:`Failed to delete media: ${e.message}`,type:"error",dismissAfter:8e3})),t(V())}}}function N(e){return async(t,n)=>{const{displayURL:r,id:i}=e,a=n(),s=(0,u.selectMediaDisplayURL)(a,i);if(!i||!r||s.get("url")||s.get("isFetching")||s.get("err"))return Promise.resolve();if("string"==typeof r)return t(G(i)),void t(K(i,r));try{const e=(0,o.currentBackend)(a.config);t(G(i));const n=await e.getMediaDisplayURL(r);if(!n)throw new Error("No display URL was returned!");t(K(i,n))}catch(e){console.error(e),t(Z(i,e))}}}function F(e){return{type:k,payload:{page:e}}}function B(e,t={}){return{type:E,payload:v({files:e},t)}}function z(e={}){const{privateUpload:t}=e;return{type:S,payload:{privateUpload:t}}}function U(){return{type:C}}function q(e,t={}){const{privateUpload:n}=t;return{type:T,payload:{file:e,privateUpload:n}}}function W(e={}){const{privateUpload:t}=e;return{type:O,payload:{privateUpload:t}}}function $(){return{type:A}}function H(e,t={}){const{privateUpload:n}=t;return{type:P,payload:{file:e,privateUpload:n}}}function V(e={}){const{privateUpload:t}=e;return{type:R,payload:{privateUpload:t}}}function G(e){return{type:D,payload:{key:e}}}function K(e,t){return{type:M,payload:{key:e,url:t}}}function Z(e,t){return{type:I,payload:{key:e,err:t}}}},5690:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NOTIFICATION_SEND=t.NOTIFICATION_DISMISS=t.NOTIFICATIONS_CLEAR=void 0,t.addNotification=function(e){return{type:n,payload:e}},t.clearNotifications=function(){return{type:i}},t.dismissNotification=function(e){return{type:r,id:e}};const n=t.NOTIFICATION_SEND="NOTIFICATION_SEND",r=t.NOTIFICATION_DISMISS="NOTIFICATION_DISMISS",i=t.NOTIFICATIONS_CLEAR="NOTIFICATION_CLEAR"},15207:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SEARCH_ENTRIES_SUCCESS=t.SEARCH_ENTRIES_REQUEST=t.SEARCH_ENTRIES_FAILURE=t.SEARCH_CLEAR=t.QUERY_SUCCESS=t.QUERY_REQUEST=t.QUERY_FAILURE=t.CLEAR_REQUESTS=void 0,t.clearRequests=x,t.clearSearch=function(){return{type:h}},t.query=function(e,t,n,r,i,l){return async(u,c)=>{const d=c(),f=(0,o.currentBackend)(d.config),p=(0,s.selectIntegration)(d,t,"search"),h=d.collections.find((e=>e.get("name")===t));u(x());const m=`${t}-${n.join()}-${r}-${i}-${l}`,g=d.search.requests.find((({id:e})=>e==m)),v=g?g.queryResponse:p?(0,a.getIntegrationProvider)(d.integrations,f.getToken,p).searchBy(n.map((e=>`data.${e}`)),t,r):f.query(h,n,r,i,l);u(b(r,g?void 0:{id:m,expires:new Date((new Date).getTime()+1e4),queryResponse:v}));try{const t=await v;return u(w(e,t.hits))}catch(e){return u(_(e))}}},t.queryFailure=_,t.querySuccess=w,t.querying=b,t.searchEntries=function(e,t,n=0){return async(r,l)=>{const u=l(),{search:c}=u,d=(0,o.currentBackend)(u.config),f=t||u.collections.keySeq().toArray(),p=f.filter((e=>(0,s.selectIntegration)(u,e,"search"))),h=(0,s.selectIntegration)(u,p[0],"search");if(c.isFetching&&c.term===e&&(0,i.default)(f,c.collections)&&(c.page===n||!h))return;r(g(e,f,n));const m=h?(0,a.getIntegrationProvider)(u.integrations,d.getToken,h).search(p,e,n):d.search(u.collections.filter(((e,t)=>-1!==f.indexOf(t))).valueSeq().toArray(),e);try{const e=await m;return r(v(e.entries,e.pagination))}catch(e){return r(y(e))}}},t.searchFailure=y,t.searchSuccess=v,t.searchingEntries=g;var r,i=(r=n(18149))&&r.__esModule?r:{default:r},o=n(2241),a=n(766),s=n(36642);const l=t.SEARCH_ENTRIES_REQUEST="SEARCH_ENTRIES_REQUEST",u=t.SEARCH_ENTRIES_SUCCESS="SEARCH_ENTRIES_SUCCESS",c=t.SEARCH_ENTRIES_FAILURE="SEARCH_ENTRIES_FAILURE",d=t.QUERY_REQUEST="QUERY_REQUEST",f=t.QUERY_SUCCESS="QUERY_SUCCESS",p=t.QUERY_FAILURE="QUERY_FAILURE",h=t.SEARCH_CLEAR="SEARCH_CLEAR",m=t.CLEAR_REQUESTS="CLEAR_REQUESTS";function g(e,t,n){return{type:l,payload:{searchTerm:e,searchCollections:t,page:n}}}function v(e,t){return{type:u,payload:{entries:e,page:t}}}function y(e){return{type:c,payload:{error:e}}}function b(e,t){return{type:d,payload:{searchTerm:e,request:t}}}function w(e,t){return{type:f,payload:{namespace:e,hits:t}}}function _(e){return{type:p,payload:{error:e}}}function x(){return{type:m}}},9687:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STATUS_SUCCESS=t.STATUS_REQUEST=t.STATUS_FAILURE=void 0,t.checkBackendStatus=function(){return async(e,t)=>{try{const n=t();if(n.status.isFetching)return;e(l());const o=(0,r.currentBackend)(n.config),a=await o.status(),s="ui.toast.onBackendDown",c=n.notifications.notifications.filter((e=>{var t;return"string"!=typeof e.message&&(null===(t=e.message)||void 0===t?void 0:t.key)===s}));if(!1===a.api.status)return 0===c.length&&e((0,i.addNotification)({message:{details:a.api.statusPage,key:"ui.toast.onBackendDown"},type:"error"})),e(u(a));if(!0===a.api.status&&c.length>0&&c.forEach((t=>{e((0,i.dismissNotification)(t.id))})),!1===a.auth.status){const t="ui.toast.onLoggedOut";n.notifications.notifications.find((e=>{var n;return"string"!=typeof e.message&&(null===(n=e.message)||void 0===n?void 0:n.key)===t}))||e((0,i.addNotification)({message:{key:"ui.toast.onLoggedOut"},type:"error"}))}e(u(a))}catch(t){e(c(t))}}},t.statusFailure=c,t.statusRequest=l,t.statusSuccess=u;var r=n(2241),i=n(5690);const o=t.STATUS_REQUEST="STATUS_REQUEST",a=t.STATUS_SUCCESS="STATUS_SUCCESS",s=t.STATUS_FAILURE="STATUS_FAILURE";function l(){return{type:o}}function u(e){return{type:a,payload:{status:e}}}function c(e){return{type:s,payload:{error:e}}}},80110:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.waitUntil=i,t.waitUntilWithTimeout=async function(e,t,n=3e4){let r=!1;const o=new Promise((n=>{e(i(t(n)))})),a=new Promise((e=>{setTimeout((()=>{r?e():(console.warn("Wait Action timed out"),e(null))}),n)}));return await Promise.race([o.then((e=>(r=!0,e))).catch(null),a])};var r=n(89258);function i({predicate:e,run:t}){return{type:r.WAIT_UNTIL_ACTION,predicate:e,run:t}}},2241:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.currentBackend=t.LocalStorageAuthStore=t.Backend=void 0,t.expandSearchEntries=q,t.extractSearchFields=U,t.mergeExpandedEntries=W,t.resolveBackend=Z,t.slugFromCustomPath=H;var r=R(n(16765)),i=R(n(72579)),o=R(n(829)),a=R(n(5648)),s=R(n(75652)),l=R(n(85121)),u=R(n(35676)),c=R(n(55027)),d=n(46670),f=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=P(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(14478)),p=n(33806),h=n(21023),m=n(1704),g=n(85575),v=n(23260),y=n(58308),b=n(487),w=n(45624),_=n(15583),x=n(9904),k=n(41891),E=n(59311),S=n(61928),C=n(48781),T=n(51748),O=n(13943);const A=["field"];function P(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(P=function(e){return e?n:t})(e)}function R(e){return e&&e.__esModule?e:{default:e}}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;te.reduce(((e,n)=>{const r=z(n,t);return r?`${e} ${r}`:e}),"")}function q(e,t){return e.reduce(((e,n)=>{const r=t.reduce(((e,t)=>{const r=N({data:n.data,path:t});return e.push(...r),e}),[]);for(let t=0;te.field)),n={},o=e.reduce(((e,t)=>{if(!e[t.slug]){const{field:r}=t,i=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,A);e[t.slug]=i,n[t.slug]=(0,d.Set)()}const r=t.field.split(".");let i=e[t.slug].data;for(let e=0;e{const a=o[e].data;for(const o of n[e].toArray()){const e=(0,i.default)(a,o),n=e.filter(((e,n)=>t.some((e=>`${e}.`.startsWith(`${o}.${n}.`)))));n.sort(((n,r)=>{const i=e.indexOf(n),a=e.indexOf(r),s=`${o}.${i}.`,l=`${o}.${a}.`;return t.findIndex((e=>`${e}.`.startsWith(s)))-t.findIndex((e=>`${e}.`.startsWith(l)))})),(0,r.default)(a,o,n)}})),Object.values(o)}function $(e,t){return e.score>t.score?-1:e.score{const t=this.authStore.retrieve();if(t&&t.backendName===this.backendName)return this.user=M(M({},t),e),this.authStore.store(this.user),this.user})),I(this,"getToken",(()=>this.implementation.getToken())),this.deleteAnonymousBackup(),this.config=r,this.implementation=e.init(this.config,{useWorkflow:(0,v.selectUseWorkflow)(this.config),updateUserCredentials:this.updateUserCredentials,initialWorkflowStatus:S.status.first()}),this.backendName=t,this.authStore=n,null===this.implementation)throw new Error("Cannot instantiate a Backend with no implementation");this.backupSync=(0,p.asyncLock)()}async status(){let e={auth:{status:!0},api:{status:!0,statusPage:""}};for(let t=1;t<=3;t++){if(e=await this.implementation.status(),Object.values(e).every((e=>!0===e.status)))return e;await new Promise((e=>setTimeout(e,1e3*t)))}return e}currentUser(){if(this.user)return this.user;const e=this.authStore.retrieve();return e&&e.backendName===this.backendName?Promise.resolve(this.implementation.restoreUser(e)).then((e=>(this.user=M(M({},e),{},{backendName:this.backendName}),this.authStore.store(this.user),this.user))):Promise.resolve(null)}isGitBackend(){var e,t;return(null===(e=(t=this.implementation).isGitBackend)||void 0===e?void 0:e.call(t))||!1}authComponent(){return this.implementation.authComponent()}authenticate(e){return this.implementation.authenticate(e).then((e=>(this.user=M(M({},e),{},{backendName:this.backendName}),this.authStore&&this.authStore.store(this.user),this.user)))}async logout(){try{await this.implementation.logout()}catch(e){console.warn("Error during logout",e.message)}finally{this.user=null,this.authStore&&this.authStore.logout()}}async entryExist(e,t,n,r){return r&&await this.implementation.unpublishedEntry({collection:e.get("name"),slug:n}).catch((e=>e.name===p.EDITORIAL_WORKFLOW_ERROR&&e.notUnderEditorialWorkflow?Promise.resolve(!1):Promise.reject(e)))||await this.implementation.getEntry(t).then((({data:e})=>e)).catch((()=>Promise.resolve(!1)))}async generateUniqueSlug(e,t,n,r,i){const o=n.slug;let a;a=i?H(e,i):(0,E.slugFormatter)(e,t,o);let s=1,l=a;for(;r.includes(l)||await this.entryExist(e,(0,w.selectEntryPath)(e,l),l,(0,v.selectUseWorkflow)(n));)l=`${a}${(0,x.sanitizeChar)(" ",o)}${s++}`;return l}processEntries(e,t){const n=e.map((e=>(0,_.createEntry)(t.get("name"),(0,w.selectEntrySlug)(t,e.file.path),e.file.path,{raw:e.data||"",label:e.file.label,author:e.file.author,updatedOn:e.file.updatedOn,meta:{path:V(e.file.path,t)}}))).map(this.entryWithFormat(t)),r=t.get("filter"),i=r?this.filterEntries({entries:n},r):n;if((0,O.hasI18n)(t)){const e=(0,w.selectFolderEntryExtension)(t);return(0,O.groupEntries)(t,e,i)}return i}async listEntries(e){var t;const n=(0,w.selectFolderEntryExtension)(e);let r;const i=e.get("type");if(i===C.FOLDER)r=()=>{const t=G(e);return this.implementation.entriesByFolder(e.get("folder"),n,t)};else{if(i!==C.FILES)throw new Error(`Unknown collection type: ${i}`);{const t=e.get("files").map((e=>({path:e.get("file"),label:e.get("label")}))).toArray();r=()=>this.implementation.entriesByFiles(t)}}const o=await r(),a=p.Cursor.create(o[p.CURSOR_COMPATIBILITY_SYMBOL]).wrapData({cursorType:"collectionEntries",collection:e});return{entries:this.processEntries(o,e),pagination:null===(t=a.meta)||void 0===t?void 0:t.get("page"),cursor:a}}async listAllEntries(e){if(e.get("folder")&&this.implementation.allEntriesByFolder){const t=G(e),n=(0,w.selectFolderEntryExtension)(e);return this.implementation.allEntriesByFolder(e.get("folder"),n,t,function(e){let t="";return e.get("path")&&(t=`${e.get("folder")}/${e.get("path")}`.replace(/{{.*}}/gm,"(.*)")),(0,O.hasI18n)(e)&&(t=function(e,{defaultLocale:t,structure:n}){return n===O.I18N_STRUCTURE.MULTIPLE_FOLDERS?`${t}\\/${e}`:n===O.I18N_STRUCTURE.MULTIPLE_FILES?`${e}\\.${t}\\..*`:e}(t,(0,O.getI18nInfo)(e))),t?new RegExp(t):void 0}(e)).then((t=>this.processEntries(t,e)))}const t=await this.listEntries(e),{entries:n}=t;let{cursor:r}=t;for(;r&&r.actions.includes("next");){const{entries:e,cursor:t}=await this.traverseCursor(r,"next");n.push(...e),r=t}return n}async search(e,t){const n=[],r=e.map((async e=>{const n=e.get("summary",""),r=L(n);let i=[];var o;e.get("type")===C.FILES?null===(o=e.get("files"))||void 0===o||o.forEach((e=>{const t=e.get("fields").map((e=>e.get("name"))).toArray();i=[...i,...t]})):i=[(0,w.selectInferredField)(e,"title"),(0,w.selectInferredField)(e,"shortTitle"),(0,w.selectInferredField)(e,"author"),...r.map((t=>j[t]?(0,w.selectInferredField)(e,"date"):t))];const a=i.filter(Boolean),l=await this.listAllEntries(e);return f.filter(t,l,{extract:U((0,s.default)(a))})})).map((e=>e.catch((e=>(n.push(e),[]))))),i=await Promise.all(r).then((e=>(0,u.default)(e)));if(n.length>0)throw new Error({message:"Errors occurred while searching entries locally!",errors:n});return{entries:i.filter((({score:e})=>e>5)).sort($).map((e=>e.original))}}async query(e,t,n,r,i){let o=await this.listAllEntries(e);r&&(o=o.filter((e=>e.slug===r)));const a=q(o,t);let s=f.filter(n,a,{extract:e=>z(e.field,e)}).sort($).map((e=>e.original));return void 0!==i&&i>0&&(s=s.slice(0,i)),{query:n,hits:W(s)}}traverseCursor(e,t){const[n,r]=e.unwrapData(),i=n.get("collection");return this.implementation.traverseCursor(r,t).then((async({entries:e,cursor:t})=>({entries:this.processEntries(e,i),cursor:p.Cursor.create(t).wrapData({cursorType:"collectionEntries",collection:i})})))}async getLocalDraftBackup(e,t){const n=B(e.get("name"),t),r=await p.localForage.getItem(n);if(!r||!r.raw.trim())return{};const{raw:i,path:o}=r;let{mediaFiles:a=[]}=r;a=a.map((e=>e.file?M(M({},e),{},{url:URL.createObjectURL(e.file)}):e));const s=(0,w.selectFileEntryLabel)(e,t),l=n=>this.entryWithFormat(e)((0,_.createEntry)(e.get("name"),t,o,{raw:n,label:s,mediaFiles:a,meta:{path:V(o,e)}})),u=l(i);if((0,O.hasI18n)(e)&&r.i18n){const e=(0,O.formatI18nBackup)(r.i18n,l);u.i18n=e}return{entry:u}}async persistLocalDraftBackup(e,t){try{await this.backupSync.acquire();const n=B(t.get("name"),e.get("slug")),r=this.entryToRaw(t,e);if(!r.trim())return;const i=await Promise.all(e.get("mediaFiles").toJS().map((async e=>{var t;if(null!==(t=e.url)&&void 0!==t&&t.startsWith("blob:")){const t=await fetch(e.url).then((e=>e.blob()));return M(M({},e),{},{file:(0,p.blobToFileObj)(e.name,t)})}return e})));let o;return(0,O.hasI18n)(t)&&(o=(0,O.getI18nBackup)(t,e,(e=>this.entryToRaw(t,e)))),await p.localForage.setItem(n,M({raw:r,path:e.get("path"),mediaFiles:i},o&&{i18n:o})),await p.localForage.setItem(B(),r)}catch(e){console.warn("persistLocalDraftBackup",e)}finally{this.backupSync.release()}}async deleteLocalDraftBackup(e,t){try{return await this.backupSync.acquire(),await p.localForage.removeItem(B(e.get("name"),t)),t&&await p.localForage.removeItem(B(e.get("name"))),await this.deleteAnonymousBackup()}catch(e){console.warn("deleteLocalDraftBackup",e)}finally{this.backupSync.release()}}deleteAnonymousBackup(){return p.localForage.removeItem(B())}async getEntry(e,t,n){const r=(0,w.selectEntryPath)(t,n),i=(0,w.selectFileEntryLabel)(t,n),o=(0,w.selectFolderEntryExtension)(t),a=async r=>{const o=await this.implementation.getEntry(r);let a=(0,_.createEntry)(t.get("name"),n,o.file.path,{raw:o.data,label:i,mediaFiles:[],meta:{path:V(o.file.path,t)}});return a=this.entryWithFormat(t)(a),a=await this.processEntry(e,t,a),a};let s;return s=(0,O.hasI18n)(t)?await(0,O.getI18nEntry)(t,o,r,n,a):await a(r),s}getMedia(){return this.implementation.getMedia()}getMediaFile(e){return this.implementation.getMediaFile(e)}getMediaDisplayURL(e){if(this.implementation.getMediaDisplayURL)return this.implementation.getMediaDisplayURL(e);const t=new Error("getMediaDisplayURL is not implemented by the current backend, but the backend returned a displayURL which was not a string!");return t.displayURL=e,Promise.reject(t)}entryWithFormat(e){return t=>{const n=(0,g.resolveFormat)(e,t);if(t&&void 0!==t.raw){const e=n&&(0,c.default)(n.fromFile.bind(n,t.raw))||{};return(0,l.default)(e)&&console.error(e),Object.assign(t,{data:(0,l.default)(e)?{}:e})}return n.fromFile(t)}}async processUnpublishedEntry(e,t,n){const{slug:r}=t;let i;if(e.get("type")===C.FILES){const t=e.get("files").find((e=>(null==e?void 0:e.get("name"))===r));i=(0,h.extname)(t.get("file"))}else i=(0,w.selectFolderEntryExtension)(e);const a=[];if(n){const n=t.diffs.filter((e=>!e.path.endsWith(i))),o=await Promise.all(n.map((t=>this.implementation.unpublishedEntryMediaFile(e.get("name"),r,t.path,t.id))));a.push(...o.map((e=>M(M({},e),{},{draft:!0}))))}const s=(0,o.default)(t.diffs.filter((e=>e.path.endsWith(i))),(e=>e.path.length)),l=(n,i,o)=>{const s=(0,_.createEntry)(e.get("name"),r,i,{raw:n,isModification:!o,label:e&&(0,w.selectFileEntryLabel)(e,r),mediaFiles:a,updatedOn:t.updatedAt,author:t.pullRequestAuthor,status:t.status,meta:{path:V(i,e)}});return this.entryWithFormat(e)(s)},u=async n=>{const r=await this.implementation.unpublishedEntryDataFile(e.get("name"),t.slug,n.path,n.id);return l(r,n.path,n.newFile)};if(s.length<=0){const t=await this.implementation.getEntry((0,w.selectEntryPath)(e,r));return l(t.data,t.file.path,!1)}if((0,O.hasI18n)(e)){const t=(0,w.selectEntryPath)(e,r),n=(0,O.getI18nDataFiles)(e,i,t,r,s);let o=await Promise.all(n.map((e=>u(e).catch((()=>null)))));return o=o.filter(Boolean),(await(0,O.groupEntries)(e,i,o))[0]}return await u(s[0])}async unpublishedEntries(e){const t=await this.implementation.unpublishedEntries();return{pagination:0,entries:(await Promise.all(t.map((async t=>{const n=await this.implementation.unpublishedEntry({id:t}),r=n.collection,i=e.find((e=>e.get("name")===r));return i?await this.processUnpublishedEntry(i,n,!1):(console.warn(`Missing collection '${r}' for unpublished entry '${t}'`),null)})))).filter(Boolean)}}async processEntry(e,t,n){const r=(0,b.selectIntegration)(e.integrations,null,"assetStore"),i=(0,w.selectMediaFolders)(e.config,t,(0,d.fromJS)(n));if(i.length>0&&!r){const e=await Promise.all(i.map((e=>this.implementation.getMedia(e))));n.mediaFiles=n.mediaFiles.concat(...e)}else n.mediaFiles=n.mediaFiles.concat(e.mediaLibrary.get("files")||[]);return n}async unpublishedEntry(e,t,n){const r=await this.implementation.unpublishedEntry({collection:t.get("name"),slug:n});let i=await this.processUnpublishedEntry(t,r,!0);return i=await this.processEntry(e,t,i),i}getDeploy(e,t,n){const r=this.config.site_url;if(r&&!1!==this.config.show_preview_links)return{url:(0,E.previewUrlFormatter)(r,e,t,n,this.config.slug),status:"SUCCESS"}}async getDeployPreview(e,t,n,{maxAttempts:r=1,interval:i=5e3}={}){if(!this.implementation.getDeployPreview||!1===this.config.show_preview_links)return;let o,a=0;for(;!o&&asetTimeout((()=>e(void 0)),i)));return o?{url:(0,E.previewUrlFormatter)(o.url,e,t,n,this.config.slug),status:o.status?o.status.toUpperCase():""}:void 0}async persistEntry({config:e,collection:t,entryDraft:n,assetProxies:r,usedSlugs:i,unpublished:o=!1,status:a}){const s=await this.invokePreSaveEvent(n.get("entry")),l=s&&n.setIn(["entry","data"],s)||n,u=l.getIn(["entry","newRecord"])||!1,c=(0,v.selectUseWorkflow)(e),d=(0,T.selectCustomPath)(t,l);let f;if(u){if(!(0,w.selectAllowNewEntries)(t))throw new Error("Not allowed to create new entries in this collection");const n=await this.generateUniqueSlug(t,l.getIn(["entry","data"]),e,i,d),o=d||(0,w.selectEntryPath)(t,n);f={path:o,slug:n,raw:this.entryToRaw(t,l.get("entry"))},function(e,t,n,r,i){e.map((e=>{const o=e.path,a=(0,y.selectMediaFilePath)(t,n,r.get("entry").set("path",i),o,e.field);e.path=a}))}(r,e,t,l,o)}else{const e=l.getIn(["entry","slug"]);f={path:l.getIn(["entry","path"]),slug:d&&!c?H(t,d):e,raw:this.entryToRaw(t,l.get("entry")),newPath:d}}const{slug:p,path:h,newPath:m}=f;let g=[f];if((0,O.hasI18n)(t)){const e=(0,w.selectFolderEntryExtension)(t);g=(0,O.getI18nFiles)(t,e,l.get("entry"),(e=>this.entryToRaw(t,e)),h,p,m)}const b=await this.currentUser(),_=M({newEntry:u,commitMessage:(0,E.commitMessageFormatter)(u?"create":"update",e,{collection:t,slug:p,path:h,authorLogin:b.login,authorName:b.name},b.useOpenAuthoring),collectionName:t.get("name"),useWorkflow:c},{unpublished:o,status:a});return c||await this.invokePrePublishEvent(l.get("entry")),await this.implementation.persistEntry({dataFiles:g,assets:r},_),await this.invokePostSaveEvent(l.get("entry")),c||await this.invokePostPublishEvent(l.get("entry")),p}async invokeEventWithEntry(e,t){const{login:n,name:r}=await this.currentUser();return await(0,k.invokeEvent)({name:e,data:{entry:t,author:{login:n,name:r}}})}async invokePrePublishEvent(e){await this.invokeEventWithEntry("prePublish",e)}async invokePostPublishEvent(e){await this.invokeEventWithEntry("postPublish",e)}async invokePreUnpublishEvent(e){await this.invokeEventWithEntry("preUnpublish",e)}async invokePostUnpublishEvent(e){await this.invokeEventWithEntry("postUnpublish",e)}async invokePreSaveEvent(e){return await this.invokeEventWithEntry("preSave",e)}async invokePostSaveEvent(e){await this.invokeEventWithEntry("postSave",e)}async persistMedia(e,t){const n=await this.currentUser(),r={commitMessage:(0,E.commitMessageFormatter)("uploadMedia",e,{path:t.path,authorLogin:n.login,authorName:n.name},n.useOpenAuthoring)};return this.implementation.persistMedia(t,r)}async deleteEntry(e,t,n){const r=e.config,i=(0,w.selectEntryPath)(t,n),o=(0,w.selectFolderEntryExtension)(t);if(!(0,w.selectAllowDeletion)(t))throw new Error("Not allowed to delete entries in this collection");const a=await this.currentUser(),s=(0,E.commitMessageFormatter)("delete",r,{collection:t,slug:n,path:i,authorLogin:a.login,authorName:a.name},a.useOpenAuthoring),l=(0,y.selectEntry)(e.entries,t.get("name"),n);await this.invokePreUnpublishEvent(l);let u=[i];(0,O.hasI18n)(t)&&(u=(0,O.getFilePaths)(t,o,i,n)),await this.implementation.deleteFiles(u,s),await this.invokePostUnpublishEvent(l)}async deleteMedia(e,t){const n=await this.currentUser(),r=(0,E.commitMessageFormatter)("deleteMedia",e,{path:t,authorLogin:n.login,authorName:n.name},n.useOpenAuthoring);return this.implementation.deleteFiles([t],r)}persistUnpublishedEntry(e){return this.persistEntry(M(M({},e),{},{unpublished:!0}))}updateUnpublishedEntryStatus(e,t,n){return this.implementation.updateUnpublishedEntryStatus(e,t,n)}async publishUnpublishedEntry(e){const t=e.get("collection"),n=e.get("slug");await this.invokePrePublishEvent(e),await this.implementation.publishUnpublishedEntry(t,n),await this.invokePostPublishEvent(e)}deleteUnpublishedEntry(e,t){return this.implementation.deleteUnpublishedEntry(e,t)}entryToRaw(e,t){const n=(0,g.resolveFormat)(e,t.toJS()),r=this.fieldsOrder(e,t),i=(0,w.selectFieldsComments)(e,t);let o=n.toFile(t.get("data").toJS(),r,i);return"\n"!=o.slice(-1)&&(o+="\n"),o}fieldsOrder(e,t){if(e.get("fields"))return e.get("fields").map((e=>e.get("name"))).toArray();const n=(e.get("files")||(0,d.List)()).filter((e=>e.get("name")===t.get("slug"))).get(0);if(null==n)throw new Error(`No file found for ${t.get("slug")} in ${e.get("name")}`);return n.get("fields").map((e=>e.get("name"))).toArray()}filterEntries(e,t){return e.entries.filter((e=>{const n=e.data[t.get("field")];return Array.isArray(n)?n.includes(t.get("value")):n===t.get("value")}))}}function Z(e){if(!e.backend.name)throw new Error("No backend defined in configuration");const{name:t}=e.backend,n=new F,r=(0,k.getBackend)(t);if(r)return new K(r,{backendName:t,authStore:n,config:e});throw new Error(`Backend not found: ${t}`)}t.Backend=K,t.currentBackend=function(){let e;return t=>e||(e=Z(t))}()},4342:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=y(n(2784)),i=n(17029),o=n(57903),a=n(34752),s=n(30762),l=n(9316),u=n(21837),c=n(79278),d=n(54750),f=n(76167),p=n(99187),h=n(23260),m=n(50758),g=y(n(2436));n(29192),n(72649),n(35957);var v=n(28165);function y(e){return e&&e.__esModule?e:{default:e}}const b="nc-root",w=(0,o.connect)((function(e){return{locale:(0,h.selectLocale)(e.config),config:e.config}}))((function({locale:e,config:t}){return(0,v.jsx)(l.I18n,{locale:e,messages:(0,p.getPhrases)(e)},(0,v.jsx)(m.ErrorBoundary,{showBackup:!0,config:t},(0,v.jsx)(a.Router,{history:c.history},(0,v.jsx)(a.Route,{component:g.default}))))}));t.default=function(e={}){const{config:t}=e;console.log("decap-cms-core 3.3.6"),u.store.dispatch((0,d.loadConfig)(t,(function(){u.store.dispatch((0,f.authenticateUser)())}))),(0,i.createRoot)(function(){const e=document.getElementById(b);if(e)return e;const t=document.createElement("div");return t.id=b,document.body.appendChild(t),t}()).render((0,v.jsx)((function(){return(0,v.jsx)(r.default.Fragment,null,(0,v.jsx)(s.GlobalStyles,null),(0,v.jsx)(o.Provider,{store:u.store},(0,v.jsx)(w,null)))}),null))}},2436:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=T(n(70894)),i=T(n(13980)),o=T(n(2784)),a=n(9316),s=T(n(19155)),l=n(57903),u=n(34752),c=T(n(75465)),d=n(30762),f=n(76167),p=n(2241),h=n(1582),m=n(68104),g=T(n(80306)),v=n(50758),y=n(79278),b=n(61928),w=T(n(65583)),_=T(n(33407)),x=T(n(15694)),k=T(n(27633)),E=T(n(19739)),S=n(28165);const C=["collections","render"];function T(e){return e&&e.__esModule?e:{default:e}}function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t!0!==e.get("hide"))).first();if(t)return`/collections/${t.get("name")}`;throw new Error("Could not find a non hidden collection")}function M(e){let{collections:t,render:n}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,C);const i=D(t);return(0,S.jsx)(u.Route,O({},r,{render:e=>t.get(e.match.params.name)?n(e):(0,S.jsx)(u.Redirect,{to:i})}))}class I extends o.default.Component{configError(e){const t=this.props.t;return(0,S.jsx)(P,null,(0,S.jsx)("h1",null,t("app.app.errorHeader")),(0,S.jsx)("div",null,(0,S.jsx)("strong",null,t("app.app.configErrors"),":"),(0,S.jsx)(R,null,e.error),(0,S.jsx)("span",null,t("app.app.checkConfigYml"))))}handleLogin(e){this.props.loginUser(e)}authenticating(){const{auth:e,t}=this.props,n=(0,p.currentBackend)(this.props.config);return null==n?(0,S.jsx)("div",null,(0,S.jsx)("h1",null,t("app.app.waitingBackend"))):(0,S.jsx)("div",null,(0,S.jsx)(v.Notifications,null),o.default.createElement(n.authComponent(),{onLogin:this.handleLogin.bind(this),error:e.error,inProgress:e.isFetching,siteId:this.props.config.backend.site_domain,base_url:this.props.config.backend.base_url,authEndpoint:this.props.config.backend.auth_endpoint,config:this.props.config,clearHash:()=>y.history.replace("/"),t}))}handleLinkClick(e,t,...n){e.preventDefault(),t(...n)}render(){const{user:e,config:t,collections:n,logoutUser:r,isFetching:i,publishMode:a,useMediaLibrary:s,openMediaLibrary:l,t:f,showMediaButton:p}=this.props;if(null===t)return null;if(t.error)return this.configError(t);if(t.isFetching)return(0,S.jsx)(d.Loader,{active:!0},f("app.app.loadingConfig"));if(null==e)return this.authenticating(f);const m=D(n),y=a===b.EDITORIAL_WORKFLOW;return(0,S.jsx)(o.default.Fragment,null,(0,S.jsx)(v.Notifications,null),(0,S.jsx)(E.default,{user:e,collections:n,onCreateEntryClick:h.createNewEntry,onLogoutClick:r,openMediaLibrary:l,hasWorkflow:y,displayUrl:t.display_url,isTestRepo:"test-repo"===t.backend.name,showMediaButton:p}),(0,S.jsx)(A,null,i&&(0,S.jsx)(c.default,null),(0,S.jsx)(u.Switch,null,(0,S.jsx)(u.Redirect,{exact:!0,from:"/",to:m}),(0,S.jsx)(u.Redirect,{exact:!0,from:"/search/",to:m}),(0,S.jsx)(M,{exact:!0,collections:n,path:"/collections/:name/search/",render:({match:e})=>(0,S.jsx)(u.Redirect,{to:`/collections/${e.params.name}`})}),(0,S.jsx)(u.Redirect,{from:"/error=access_denied&error_description=Signups+not+allowed+for+this+instance",to:m}),y?(0,S.jsx)(u.Route,{path:"/workflow",component:_.default}):null,(0,S.jsx)(M,{exact:!0,collections:n,path:"/collections/:name",render:e=>(0,S.jsx)(w.default,e)}),(0,S.jsx)(M,{path:"/collections/:name/new",collections:n,render:e=>(0,S.jsx)(x.default,O({},e,{newRecord:!0}))}),(0,S.jsx)(M,{path:"/collections/:name/entries/*",collections:n,render:e=>(0,S.jsx)(x.default,e)}),(0,S.jsx)(M,{path:"/collections/:name/search/:searchTerm",collections:n,render:e=>(0,S.jsx)(w.default,O({},e,{isSearchResults:!0,isSingleSearchResult:!0}))}),(0,S.jsx)(M,{collections:n,path:"/collections/:name/filter/:filterTerm*",render:e=>(0,S.jsx)(w.default,e)}),(0,S.jsx)(u.Route,{path:"/search/:searchTerm",render:e=>(0,S.jsx)(w.default,O({},e,{isSearchResults:!0}))}),(0,S.jsx)(M,{path:"/edit/:name/:entryName",collections:n,render:({match:e})=>{const{name:t,entryName:n}=e.params;return(0,S.jsx)(u.Redirect,{to:`/collections/${t}/entries/${n}`})}}),(0,S.jsx)(u.Route,{component:k.default})),s?(0,S.jsx)(g.default,null):null))}}var L,j,N;L=I,j="propTypes",N={auth:i.default.object.isRequired,config:i.default.object.isRequired,collections:s.default.map.isRequired,loginUser:i.default.func.isRequired,logoutUser:i.default.func.isRequired,user:i.default.object,isFetching:i.default.bool.isRequired,publishMode:i.default.oneOf([b.SIMPLE,b.EDITORIAL_WORKFLOW]),siteId:i.default.string,useMediaLibrary:i.default.bool,openMediaLibrary:i.default.func.isRequired,showMediaButton:i.default.bool,t:i.default.func.isRequired},(j=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(j))in L?Object.defineProperty(L,j,{value:N,enumerable:!0,configurable:!0,writable:!0}):L[j]=N;const F={openMediaLibrary:m.openMediaLibrary,loginUser:f.loginUser,logoutUser:f.logoutUser};t.default=(0,l.connect)((function(e){const{auth:t,config:n,collections:r,globalUI:i,mediaLibrary:o}=e,a=t.user,s=i.isFetching,l=n.publish_mode,u=!o.get("externalLibrary");return{auth:t,config:n,collections:r,user:a,isFetching:s,publishMode:l,showMediaButton:o.get("showMediaButton"),useMediaLibrary:u}}),F)((0,a.translate)()(I))},19739:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=h(n(70894)),i=h(n(13980)),o=h(n(2784)),a=h(n(19155)),s=n(28165),l=n(9316),u=n(34752),c=n(30762),d=n(57903),f=n(50758),p=n(9687);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t(0,s.css)("&.",e.activeClassName,"{",v.buttonActive,";",c.Icon,"{",v.buttonActive,";}};label:AppHeaderButton;")),";"),_=w.withComponent(u.NavLink,{target:"e1rbzf6g5",label:"AppHeaderNavLink"}),x=(0,r.default)("div",{target:"e1rbzf6g2",label:"AppHeaderActions"})({name:"8irbms",styles:"display:inline-flex;align-items:center"}),k=(0,r.default)(c.StyledDropdownButton,{target:"e1rbzf6g1",label:"AppHeaderQuickNewButton"})(c.buttons.button,";",c.buttons.medium,";",c.buttons.gray,";margin-right:8px;&:after{top:11px;}"),E=(0,r.default)("ul",{target:"e1rbzf6g0",label:"AppHeaderNavList"})({name:"1vufzxm",styles:"display:flex;margin:0;list-style:none"});class S extends o.default.Component{constructor(...e){super(...e),m(this,"intervalId",void 0),m(this,"handleCreatePostClick",(e=>{const{onCreateEntryClick:t}=this.props;t&&t(e)}))}componentDidMount(){this.intervalId=setInterval((()=>{this.props.checkBackendStatus()}),3e5)}componentWillUnmount(){clearInterval(this.intervalId)}render(){const{user:e,collections:t,onLogoutClick:n,openMediaLibrary:r,hasWorkflow:i,displayUrl:o,isTestRepo:a,t:l,showMediaButton:u}=this.props,d=t.filter((e=>e.get("create"))).toList();return(0,s.jsx)(y,null,(0,s.jsx)(b,null,(0,s.jsx)("nav",null,(0,s.jsx)(E,null,(0,s.jsx)("li",null,(0,s.jsx)(_,{to:"/",activeClassName:"header-link-active",isActive:(e,t)=>t.pathname.startsWith("/collections/")},(0,s.jsx)(c.Icon,{type:"page"}),l("app.header.content"))),i&&(0,s.jsx)("li",null,(0,s.jsx)(_,{to:"/workflow",activeClassName:"header-link-active"},(0,s.jsx)(c.Icon,{type:"workflow"}),l("app.header.workflow"))),u&&(0,s.jsx)("li",null,(0,s.jsx)(w,{onClick:r},(0,s.jsx)(c.Icon,{type:"media-alt"}),l("app.header.media"))))),(0,s.jsx)(x,null,d.size>0&&(0,s.jsx)(c.Dropdown,{renderButton:()=>(0,s.jsx)(k,null," ",l("app.header.quickAdd")),dropdownTopOverlap:"30px",dropdownWidth:"160px",dropdownPosition:"left"},d.map((e=>(0,s.jsx)(c.DropdownItem,{key:e.get("name"),label:e.get("label_singular")||e.get("label"),onClick:()=>this.handleCreatePostClick(e.get("name"))})))),(0,s.jsx)(f.SettingsDropdown,{displayUrl:o,isTestRepo:a,imageUrl:null==e?void 0:e.avatar_url,onLogoutClick:n}))))}}m(S,"propTypes",{user:i.default.object.isRequired,collections:a.default.map.isRequired,onCreateEntryClick:i.default.func.isRequired,onLogoutClick:i.default.func.isRequired,openMediaLibrary:i.default.func.isRequired,hasWorkflow:i.default.bool.isRequired,displayUrl:i.default.string,isTestRepo:i.default.bool,t:i.default.func.isRequired,checkBackendStatus:i.default.func.isRequired});const C={checkBackendStatus:p.checkBackendStatus};t.default=(0,d.connect)(null,C)((0,l.translate)()(S))},27633:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(70894)),i=(l(n(2784)),n(9316)),o=n(30762),a=l(n(13980)),s=n(28165);function l(e){return e&&e.__esModule?e:{default:e}}const u=(0,r.default)("div",{target:"ew40z3q0",label:"NotFoundContainer"})("margin:",o.lengths.pageMargin,";");function c({t:e}){return(0,s.jsx)(u,null,(0,s.jsx)("h2",null,e("app.notFoundPage.header")))}c.propTypes={t:a.default.func.isRequired},t.default=(0,i.translate)()(c)},65583:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Collection=void 0;var r=w(n(70894)),i=w(n(2784)),o=w(n(13980)),a=w(n(19155)),s=n(57903),l=n(9316),u=n(30762),c=n(9904),d=w(n(9381)),f=w(n(52777)),p=w(n(13352)),h=w(n(19232)),m=w(n(91785)),g=n(50236),v=n(45624),y=n(58308),b=n(28165);function w(e){return e&&e.__esModule?e:{default:e}}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t{const{collection:e,filterTerm:t,viewStyle:n}=this.props;return(0,b.jsx)(p.default,{collection:e,viewStyle:n,filterTerm:t})})),k(this,"renderEntriesSearch",(()=>{const{searchTerm:e,collections:t,collection:n,isSingleSearchResult:r}=this.props;return(0,b.jsx)(h.default,{collections:r?t.filter((e=>e===n)):t,searchTerm:e})}))}render(){const{collection:e,collections:t,collectionName:n,isSearchEnabled:r,isSearchResults:o,isSingleSearchResult:a,searchTerm:s,sortableFields:l,onSortClick:u,sort:p,viewFilters:h,viewGroups:g,filterTerm:v,t:y,onFilterClick:w,onGroupClick:_,filter:x,group:k,onChangeViewStyle:O,viewStyle:A}=this.props;let P=e.get("create")?(0,c.getNewEntryUrl)(n):"";P&&v&&(P=(0,c.getNewEntryUrl)(n),v&&(P=`${P}?path=${v}`));const R="collection.collectionTop.searchResults"+(a?"InCollection":"");return(0,b.jsx)(E,null,(0,b.jsx)(d.default,{collections:t,collection:(!o||a)&&e,isSearchEnabled:r,searchTerm:s,filterTerm:v}),(0,b.jsx)(S,null,o?(0,b.jsx)(C,null,(0,b.jsx)(T,null,y(R,{searchTerm:s,collection:e.get("label")}))):(0,b.jsx)(i.default.Fragment,null,(0,b.jsx)(f.default,{collection:e,newEntryUrl:P}),(0,b.jsx)(m.default,{viewStyle:A,onChangeViewStyle:O,sortableFields:l,onSortClick:u,sort:p,viewFilters:h,viewGroups:g,t:y,onFilterClick:w,onGroupClick:_,filter:x,group:k})),o?this.renderEntriesSearch():this.renderEntriesCollection()))}}t.Collection=O,k(O,"propTypes",{searchTerm:o.default.string,collectionName:o.default.string,isSearchResults:o.default.bool,isSingleSearchResult:o.default.bool,collection:a.default.map.isRequired,collections:a.default.map.isRequired,sortableFields:o.default.array,sort:a.default.orderedMap,onSortClick:o.default.func.isRequired});const A={sortByField:g.sortByField,filterByField:g.filterByField,changeViewStyle:g.changeViewStyle,groupByField:g.groupByField},P=(0,s.connect)((function(e,t){const{collections:n}=e,r=e.config&&0!=e.config.search,{isSearchResults:i,match:o,t:a}=t,{name:s,searchTerm:l="",filterTerm:u=""}=o.params,c=s?n.get(s):n.first(),d=(0,y.selectEntriesSort)(e.entries,c.get("name")),f=(0,v.selectSortableFields)(c,a),p=(0,v.selectViewFilters)(c),h=(0,v.selectViewGroups)(c),m=(0,y.selectEntriesFilter)(e.entries,c.get("name")),g=(0,y.selectEntriesGroup)(e.entries,c.get("name"));return{collection:c,collections:n,collectionName:s,isSearchEnabled:r,isSearchResults:i,searchTerm:l,filterTerm:u,sort:d,sortableFields:f,viewFilters:p,viewGroups:h,filter:m,group:g,viewStyle:(0,y.selectViewStyle)(e.entries)}}),A,(function(e,t,n){return x(x(x({},e),n),{},{onSortClick:(n,r)=>t.sortByField(e.collection,n,r),onFilterClick:n=>t.filterByField(e.collection,n),onGroupClick:n=>t.groupByField(e.collection,n),onChangeViewStyle:e=>t.changeViewStyle(e)})}))(O);t.default=(0,l.translate)()(P)},91785:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(70894)),i=(c(n(2784)),n(30762)),o=c(n(37058)),a=c(n(61450)),s=c(n(2796)),l=c(n(30686)),u=n(28165);function c(e){return e&&e.__esModule?e:{default:e}}const d=(0,r.default)("div",{target:"emfmed70",label:"CollectionControlsContainer"})("display:flex;align-items:center;flex-direction:row-reverse;margin-top:22px;width:",i.lengths.topCardWidth,";max-width:100%;&>div{margin-left:6px;}");t.default=function({viewStyle:e,onChangeViewStyle:t,sortableFields:n,onSortClick:r,sort:i,viewFilters:c,viewGroups:f,onFilterClick:p,onGroupClick:h,t:m,filter:g,group:v}){return(0,u.jsx)(d,null,(0,u.jsx)(o.default,{viewStyle:e,onChangeViewStyle:t}),f.length>0&&(0,u.jsx)(l.default,{viewGroups:f,onGroupClick:h,t:m,group:v}),c.length>0&&(0,u.jsx)(s.default,{viewFilters:c,onFilterClick:p,t:m,filter:g}),n.length>0&&(0,u.jsx)(a.default,{fields:n,sort:i,onSortClick:r}))}},98165:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(70894)),i=c(n(2784)),o=n(30762),a=n(9316),s=c(n(13980)),l=c(n(19155)),u=n(28165);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f=(0,r.default)("div",{target:"e6w847r7",label:"SearchContainer"})("margin:0 12px;position:relative;",o.Icon,"{position:absolute;top:0;left:6px;z-index:",o.zIndex.zIndex2,";height:100%;display:flex;align-items:center;pointer-events:none;}"),p=(0,r.default)("div",{target:"e6w847r6",label:"InputContainer"})({name:"1dbubah",styles:"display:flex;align-items:center;position:relative"}),h=(0,r.default)("input",{target:"e6w847r5",label:"SearchInput"})("background-color:#eff0f4;border-radius:",o.lengths.borderRadius,";font-size:14px;padding:10px 6px 10px 34px;width:100%;position:relative;z-index:",o.zIndex.zIndex1,";&:focus{outline:none;box-shadow:inset 0 0 0 2px ",o.colorsRaw.blue,";}"),m=(0,r.default)("div",{target:"e6w847r4",label:"SuggestionsContainer"})({name:"pw7jst",styles:"position:relative;width:100%"}),g=(0,r.default)("ul",{target:"e6w847r3",label:"Suggestions"})("position:absolute;top:6px;left:0;right:0;padding:10px 0;margin:0;list-style:none;background-color:#fff;border-radius:",o.lengths.borderRadius,";border:1px solid ",o.colors.textFieldBorder,";z-index:",o.zIndex.zIndex1,";"),v=(0,r.default)("li",{target:"e6w847r2",label:"SuggestionHeader"})("padding:0 6px 6px 34px;font-size:12px;color:",o.colors.text,";"),y=(0,r.default)("li",{target:"e6w847r1",label:"SuggestionItem"})((({isActive:e})=>`\n color: ${e?o.colors.active:o.colorsRaw.grayDark};\n background-color: ${e?o.colors.activeBackground:"inherit"};\n padding: 6px 6px 6px 34px;\n cursor: pointer;\n position: relative;\n\n &:hover {\n color: ${o.colors.active};\n background-color: ${o.colors.activeBackground};\n }\n`),""),b=(0,r.default)("div",{target:"e6w847r0",label:"SuggestionDivider"})({name:"1d3w5wq",styles:"width:100%"});class w extends i.default.Component{constructor(...e){super(...e),d(this,"state",{query:this.props.searchTerm,suggestionsVisible:!1,selectedCollectionIdx:this.getSelectedSelectionBasedOnProps()}),d(this,"submitSearch",(()=>{const{onSubmit:e,collections:t}=this.props,{selectedCollectionIdx:n,query:r}=this.state;this.toggleSuggestions(!1),-1!==n?e(r,t.toIndexedSeq().getIn([n,"name"])):e(r)})),d(this,"handleKeyDown",(e=>{const{suggestionsVisible:t}=this.state;"Enter"===e.key&&this.submitSearch(),t&&("Escape"===e.key&&this.toggleSuggestions(!1),"ArrowDown"===e.key?(this.selectNextSuggestion(),e.preventDefault()):"ArrowUp"===e.key&&(this.selectPreviousSuggestion(),e.preventDefault()))})),d(this,"handleQueryChange",(e=>{this.setState({query:e}),this.toggleSuggestions(""!==e),""===e&&this.resetSelectedSuggestion()})),d(this,"handleSuggestionClick",((e,t)=>{this.setState({selectedCollectionIdx:t},this.submitSearch),e.preventDefault()}))}componentDidUpdate(e){if(e.collection!==this.props.collection){const e=this.getSelectedSelectionBasedOnProps();this.setState({selectedCollectionIdx:e})}}getSelectedSelectionBasedOnProps(){const{collection:e,collections:t}=this.props;return e?t.keySeq().indexOf(e.get("name")):-1}toggleSuggestions(e){this.setState({suggestionsVisible:e})}selectNextSuggestion(){const{collections:e}=this.props,{selectedCollectionIdx:t}=this.state;this.setState({selectedCollectionIdx:Math.min(t+1,e.size-1)})}selectPreviousSuggestion(){const{selectedCollectionIdx:e}=this.state;this.setState({selectedCollectionIdx:Math.max(e-1,-1)})}resetSelectedSuggestion(){this.setState({selectedCollectionIdx:-1})}render(){const{collections:e,t}=this.props,{suggestionsVisible:n,selectedCollectionIdx:r,query:i}=this.state;return(0,u.jsx)(f,{onBlur:()=>this.toggleSuggestions(!1),onFocus:()=>this.toggleSuggestions(""!==i)},(0,u.jsx)(p,null,(0,u.jsx)(o.Icon,{type:"search"}),(0,u.jsx)(h,{onChange:e=>this.handleQueryChange(e.target.value),onKeyDown:this.handleKeyDown,onClick:()=>this.toggleSuggestions(!0),placeholder:t("collection.sidebar.searchAll"),value:i})),n&&(0,u.jsx)(m,null,(0,u.jsx)(g,null,(0,u.jsx)(v,null,t("collection.sidebar.searchIn")),(0,u.jsx)(y,{isActive:-1===r,onClick:e=>this.handleSuggestionClick(e,-1),onMouseDown:e=>e.preventDefault()},t("collection.sidebar.allCollections")),(0,u.jsx)(b,null),e.toIndexedSeq().map(((e,t)=>(0,u.jsx)(y,{key:t,isActive:t===r,onClick:e=>this.handleSuggestionClick(e,t),onMouseDown:e=>e.preventDefault()},e.get("label")))))))}}d(w,"propTypes",{collections:l.default.map.isRequired,collection:l.default.map,searchTerm:s.default.string.isRequired,onSubmit:s.default.func.isRequired,t:s.default.func.isRequired}),t.default=(0,a.translate)()(w)},52777:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(70894)),i=c(n(13980)),o=c(n(19155)),a=(c(n(2784)),n(9316)),s=n(34752),l=n(30762),u=n(28165);function c(e){return e&&e.__esModule?e:{default:e}}const d=(0,r.default)("div",{target:"ei8nkzc4",label:"CollectionTopContainer"})(l.components.cardTop,";margin-bottom:22px;"),f=(0,r.default)("div",{target:"ei8nkzc3",label:"CollectionTopRow"})({name:"bcffy2",styles:"display:flex;align-items:center;justify-content:space-between"}),p=(0,r.default)("h1",{target:"ei8nkzc2",label:"CollectionTopHeading"})(l.components.cardTopHeading,";"),h=(0,r.default)(s.Link,{target:"ei8nkzc1",label:"CollectionTopNewButton"})(l.buttons.button,";",l.shadows.dropDeep,";",l.buttons.default,";",l.buttons.gray,";padding:0 30px;"),m=(0,r.default)("p",{target:"ei8nkzc0",label:"CollectionTopDescription"})(l.components.cardTopDescription,";margin-bottom:0;");function g({collection:e,newEntryUrl:t,t:n}){const{collectionLabel:r,collectionLabelSingular:i,collectionDescription:o}=function(e){return{collectionLabel:e.get("label"),collectionLabelSingular:e.get("label_singular"),collectionDescription:e.get("description")}}(e);return(0,u.jsx)(d,null,(0,u.jsx)(f,null,(0,u.jsx)(p,null,r),t?(0,u.jsx)(h,{to:t},n("collection.collectionTop.newButton",{collectionLabel:i||r})):null),o?(0,u.jsx)(m,null,o):null)}g.propTypes={collection:o.default.map.isRequired,newEntryUrl:i.default.string,t:i.default.func.isRequired},t.default=(0,a.translate)()(g)},16108:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlButton=function({active:e,title:t}){return(0,i.jsx)(s,{css:(0,i.css)("color:",e?o.colors.active:void 0,";;label:ControlButton;")},t)};var r=a(n(70894)),i=(a(n(2784)),n(28165)),o=n(30762);function a(e){return e&&e.__esModule?e:{default:e}}const s=(0,r.default)(o.StyledDropdownButton,{target:"e1obtllk0",label:"Button"})(o.buttons.button,";",o.buttons.medium,";",o.buttons.grayText,";font-size:14px;&:after{top:11px;}")},94497:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(70894)),i=d(n(13980)),o=d(n(2784)),a=d(n(19155)),s=n(9316),l=n(30762),u=d(n(70660)),c=n(28165);function d(e){return e&&e.__esModule?e:{default:e}}const f=(0,r.default)("div",{target:"e1d0i3na1",label:"PaginationMessage"})("width:",l.lengths.topCardWidth,";padding:16px;text-align:center;"),p=(0,r.default)(f,{target:"e1d0i3na0",label:"NoEntriesMessage"})({name:"yz1nei",styles:"margin-top:16px"});function h({collections:e,entries:t,isFetching:n,viewStyle:r,cursor:i,handleCursorActions:a,t:s,page:d}){var h;const m=[s("collection.entries.loadingEntries"),s("collection.entries.cachingEntries"),s("collection.entries.longerLoading")];return n&&void 0===d?(0,c.jsx)(l.Loader,{active:!0},m):t&&t.size>0||(null==i||null===(h=i.actions)||void 0===h?void 0:h.has("append_next"))?(0,c.jsx)(o.default.Fragment,null,(0,c.jsx)(u.default,{collections:e,entries:t,viewStyle:r,cursor:i,handleCursorActions:a,page:d}),n&&void 0!==d&&t.size>0?(0,c.jsx)(f,null,s("collection.entries.loadingEntries")):null):(0,c.jsx)(p,null,s("collection.entries.noEntries"))}h.propTypes={collections:a.default.iterable.isRequired,entries:a.default.list,page:i.default.number,isFetching:i.default.bool,viewStyle:i.default.string,cursor:i.default.any.isRequired,handleCursorActions:i.default.func.isRequired,t:i.default.func.isRequired},t.default=(0,s.translate)()(h)},13352:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.EntriesCollection=void 0,t.filterNestedEntries=k;var r=v(n(70894)),i=v(n(83465)),o=v(n(2784)),a=v(n(13980)),s=v(n(19155)),l=n(57903),u=n(9316),c=n(33806),d=n(30762),f=n(50236),p=n(58308),h=n(63647),m=v(n(94497)),g=n(28165);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const b=(0,r.default)("h2",{target:"eucqz2q1",label:"GroupHeading"})("font-size:22px;font-weight:600;line-height:37px;padding-inline-start:20px;color:",d.colors.textLead,";"),w=(0,r.default)("div",{target:"eucqz2q0",label:"GroupContainer"})("");function _(e,t){return e.filter((e=>t.has(e.get("path"))))}class x extends o.default.Component{constructor(...e){super(...e),y(this,"handleCursorActions",((e,t)=>{const{collection:n,traverseCollectionCursor:r}=this.props;r(n,t)}))}componentDidMount(){const{collection:e,entriesLoaded:t,loadEntries:n}=this.props;e&&!t&&n(e)}componentDidUpdate(e){const{collection:t,entriesLoaded:n,loadEntries:r}=this.props;t===e.collection||n||r(t)}render(){const{collection:e,entries:t,groups:n,isFetching:r,viewStyle:o,cursor:a,page:s,t:l}=this.props,u=({entries:t})=>(0,g.jsx)(m.default,{collections:e,entries:t,isFetching:r,collectionName:e.get("label"),viewStyle:o,cursor:a,handleCursorActions:(0,i.default)(this.handleCursorActions,a),page:s});return n&&n.length>0?function(e,t,n,r){return e.map((e=>{const i=function(e,t){const{label:n,value:r}=e;return void 0===r?t("collection.groups.other"):"boolean"==typeof r?r?n:t("collection.groups.negateLabel",{label:n}):`${n} ${r}`.trim()}(e,r);return(0,g.jsx)(w,{key:e.id,id:e.id},(0,g.jsx)(b,null,i),(0,g.jsx)(n,{entries:_(t,e.paths)}))}))}(n,t,u,l):(0,g.jsx)(u,{entries:t})}}function k(e,t,n){return n.filter((n=>{const r=n.get("path").slice(t.length+1);return!!r.startsWith(e)&&(e?2===r.slice(e.length+1).split("/").length:r.split("/").length<=2)}))}t.EntriesCollection=x,y(x,"propTypes",{collection:s.default.map.isRequired,page:a.default.number,entries:s.default.list,groups:a.default.array,isFetching:a.default.bool.isRequired,viewStyle:a.default.string,cursor:a.default.object.isRequired,loadEntries:a.default.func.isRequired,traverseCollectionCursor:a.default.func.isRequired,entriesLoaded:a.default.bool});const E={loadEntries:f.loadEntries,traverseCollectionCursor:f.traverseCollectionCursor},S=(0,l.connect)((function(e,t){const{collection:n,viewStyle:r,filterTerm:i}=t,o=e.entries.getIn(["pages",n.get("name"),"page"]);let a=(0,p.selectEntries)(e.entries,n);const s=(0,p.selectGroups)(e.entries,n);n.has("nested")&&(a=k(i||"",n.get("folder"),a));const l=(0,p.selectEntriesLoaded)(e.entries,n.get("name")),u=(0,p.selectIsFetching)(e.entries,n.get("name")),d=(0,h.selectCollectionEntriesCursor)(e.cursors,n.get("name"));return{collection:n,page:o,entries:a,groups:s,entriesLoaded:l,isFetching:u,viewStyle:r,cursor:c.Cursor.create(d).clearData()}}),E)(x);t.default=(0,u.translate)()(S)},19232:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(n(18149)),i=p(n(2784)),o=p(n(13980)),a=p(n(19155)),s=n(57903),l=n(33806),u=n(36642),c=n(15207),d=p(n(94497)),f=n(28165);function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class m extends i.default.Component{constructor(...e){super(...e),h(this,"getCursor",(()=>{const{page:e}=this.props;return l.Cursor.create({actions:isNaN(e)?[]:["append_next"]})})),h(this,"handleCursorActions",(e=>{const{page:t,searchTerm:n,searchEntries:r,collectionNames:i}=this.props;"append_next"===e&&r(n,i,t+1)}))}componentDidMount(){const{searchTerm:e,searchEntries:t,collectionNames:n}=this.props;t(e,n)}componentDidUpdate(e){const{searchTerm:t,collectionNames:n}=this.props;if(e.searchTerm===t&&(0,r.default)(e.collectionNames,n))return;const{searchEntries:i}=e;i(t,n)}componentWillUnmount(){this.props.clearSearch()}render(){const{collections:e,entries:t,isFetching:n}=this.props;return(0,f.jsx)(d.default,{cursor:this.getCursor(),handleCursorActions:this.handleCursorActions,collections:e,entries:t,isFetching:n})}}h(m,"propTypes",{isFetching:o.default.bool,searchEntries:o.default.func.isRequired,clearSearch:o.default.func.isRequired,searchTerm:o.default.string.isRequired,collections:a.default.seq,collectionNames:o.default.array,entries:a.default.list,page:o.default.number});const g={searchEntries:c.searchEntries,clearSearch:c.clearSearch};t.default=(0,s.connect)((function(e,t){const{searchTerm:n}=t,r=t.collections.toIndexedSeq(),i=t.collections.keySeq().toArray();return{isFetching:e.search.isFetching,page:e.search.page,collections:r,collectionNames:i,entries:(0,u.selectSearchedEntries)(e,i),searchTerm:n}}),g)(m)},38440:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(70894)),i=(f(n(2784)),n(57903)),o=n(34752),a=n(30762),s=n(71033),l=n(78882),u=n(33474),c=n(45624),d=n(28165);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;te.hasImage&&0),";&:after{content:'';position:absolute;display:block;z-index:",a.zIndex.zIndex1,";bottom:0;left:-20%;height:140%;width:140%;box-shadow:inset 0 -15px 24px ",a.colorsRaw.white,";}"),k=(0,r.default)("div",{target:"effeus40",label:"CardImage"})("background-image:url(",(e=>e.src),");background-position:center center;background-size:cover;background-repeat:no-repeat;height:150px;"),E=(0,i.connect)((function(e,t){var n;const{entry:r,inferredFields:i,collection:o}=t,a=r.get("data"),s=(0,c.selectEntryCollectionTitle)(o,r);let l=a.get(i.imageField);l&&(l=encodeURI(l));const d=(0,u.selectIsLoadingAsset)(e.medias);return{summary:s,path:`/collections/${o.get("name")}/entries/${r.get("slug")}`,image:l,imageFolder:null===(n=o.get("fields"))||void 0===n?void 0:n.find((e=>e.get("name")===i.imageField&&"image"===e.get("widget"))),isLoadingAsset:d}}),(function(e){return{boundGetAsset:(t,n)=>(0,s.boundGetAsset)(e,t,n)}}),(function(e,t,n){return h(h(h(h({},e),t),n),{},{getAsset:t.boundGetAsset(n.collection,n.entry)})}))((function({path:e,summary:t,image:n,imageField:r,collectionLabel:i,viewStyle:o=l.VIEW_STYLE_LIST,getAsset:a}){return o===l.VIEW_STYLE_LIST?(0,d.jsx)(m,null,(0,d.jsx)(g,{to:e},i?(0,d.jsx)(b,null,i):null,(0,d.jsx)(w,null,t))):o===l.VIEW_STYLE_GRID?(0,d.jsx)(v,null,(0,d.jsx)(y,{to:e},(0,d.jsx)(x,{hasImage:n},i?(0,d.jsx)(b,null,i):null,(0,d.jsx)(_,null,t)),n?(0,d.jsx)(k,{src:a(n,r).toString()}):null)):void 0}));t.default=E},70660:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(70894)),i=f(n(13980)),o=f(n(2784)),a=f(n(19155)),s=n(94076),l=n(46670),u=n(45624),c=f(n(38440)),d=n(28165);function f(e){return e&&e.__esModule?e:{default:e}}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var e,t;return null===(e=this.props.cursor)||void 0===e||null===(t=e.actions)||void 0===t?void 0:t.has("append_next")})),h(this,"handleLoadMore",(()=>{this.hasMore()&&this.props.handleCursorActions("append_next")})),h(this,"inferFields",(e=>{const t=(0,u.selectInferredField)(e,"title"),n=(0,u.selectInferredField)(e,"description"),r=(0,u.selectInferredField)(e,"image"),i=(0,u.selectFields)(e),o=[t,n,r];return{titleField:t,descriptionField:n,imageField:r,remainingFields:i&&i.filter((e=>-1===o.indexOf(e.get("name"))))}})),h(this,"renderCardsForSingleCollection",(()=>{const{collections:e,entries:t,viewStyle:n}=this.props,r={collection:e,inferredFields:this.inferFields(e),viewStyle:n};return t.map(((e,t)=>(0,d.jsx)(c.default,p({},r,{entry:e,key:t}))))})),h(this,"renderCardsForMultipleCollections",(()=>{const{collections:e,entries:t}=this.props,n=1===e.size;return t.map(((t,r)=>{const i=t.get("collection"),o=e.find((e=>e.get("name")===i)),a=!n&&o.get("label"),s={collection:o,entry:t,inferredFields:this.inferFields(o),collectionLabel:a};return(0,d.jsx)(c.default,p({},s,{key:r}))}))}))}render(){const{collections:e,page:t}=this.props;return(0,d.jsx)("div",null,(0,d.jsx)(m,null,l.Map.isMap(e)?this.renderCardsForSingleCollection():this.renderCardsForMultipleCollections(),this.hasMore()&&(0,d.jsx)(s.Waypoint,{key:t,onEnter:this.handleLoadMore})))}}t.default=g,h(g,"propTypes",{collections:a.default.iterable.isRequired,entries:a.default.list,viewStyle:i.default.string,cursor:i.default.any.isRequired,handleCursorActions:i.default.func.isRequired,page:i.default.number})},2796:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,(r=n(2784))&&r.__esModule;var r,i=n(9316),o=n(30762),a=n(16108),s=n(28165);t.default=(0,i.translate)()((function({viewFilters:e,t,onFilterClick:n,filter:r}){const i=null==r?void 0:r.valueSeq().toJS().some((e=>!0===e.active));return(0,s.jsx)(o.Dropdown,{renderButton:()=>(0,s.jsx)(a.ControlButton,{active:i,title:t("collection.collectionTop.filterBy")}),closeOnSelection:!1,dropdownTopOverlap:"30px",dropdownPosition:"left"},e.map((e=>(0,s.jsx)(o.DropdownCheckedItem,{key:e.id,label:e.label,id:e.id,checked:r.getIn([e.id,"active"],!1),onClick:()=>n(e)}))))}))},30686:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,(r=n(2784))&&r.__esModule;var r,i=n(9316),o=n(30762),a=n(16108),s=n(28165);t.default=(0,i.translate)()((function({viewGroups:e,t,onGroupClick:n,group:r}){const i=null==r?void 0:r.valueSeq().toJS().some((e=>!0===e.active));return(0,s.jsx)(o.Dropdown,{renderButton:()=>(0,s.jsx)(a.ControlButton,{active:i,title:t("collection.collectionTop.groupBy")}),closeOnSelection:!1,dropdownTopOverlap:"30px",dropdownWidth:"160px",dropdownPosition:"left"},e.map((e=>(0,s.jsx)(o.DropdownItem,{key:e.id,label:e.label,onClick:()=>n(e),isActive:r.getIn([e.id,"active"],!1)}))))}))},21147:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NestedCollection=void 0,t.getTreeData=R,t.updateNode=D,t.walk=P;var r=v(n(70894)),i=v(n(829)),o=v(n(2784)),a=n(46670),s=n(28165),l=n(57903),u=n(34752),c=n(21023),d=n(1704),f=n(30762),p=v(n(13980)),h=v(n(19155)),m=n(58308),g=n(45624);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t16*e.depth+18),"px;border-left:2px solid #fff;",f.Icon,"{margin-right:4px;flex-shrink:0;}",(e=>(0,s.css)("&:hover,&:active,&.",e.activeClassName,"{color:",f.colors.active,";background-color:",f.colors.activeBackground,";border-left-color:#4863c6;};label:TreeNavLink;")),";");function O(e){var t;return e.isRoot?e.title:(null===(t=e.children.find((e=>!e.isDir&&e.title)))||void 0===t?void 0:t.title)||e.title}function A(e){const{collection:t,treeData:n,depth:r=0,onToggle:a}=e,l=t.get("name");return(0,i.default)(n,O).map((e=>{var n;if(e.children.length<=1&&(null===(n=e.children[0])||void 0===n||!n.isDir)&&r>0)return null;let i=`/collections/${l}`;r>0&&(i=`${i}/filter${e.path}`);const u=O(e),c=0===r||e.children.some((e=>e.children.some((e=>e.isDir))));return(0,s.jsx)(o.default.Fragment,{key:e.path},(0,s.jsx)(T,{exact:!0,to:i,activeClassName:"sidebar-active",onClick:()=>a({node:e,expanded:!e.expanded}),depth:r,"data-testid":e.path},(0,s.jsx)(f.Icon,{type:"write"}),(0,s.jsx)(x,null,(0,s.jsx)(k,null,u),c&&(e.expanded?(0,s.jsx)(S,null):(0,s.jsx)(C,null)))),e.expanded&&(0,s.jsx)(A,{collection:t,depth:r+1,treeData:e.children,onToggle:a}))}))}function P(e,t){return function e(n){for(const r of n)t(r),e(r.children)}(e)}function R(e,t){const n=e.get("folder"),r=t.toJS().map((e=>b(b({},e),{},{path:e.path.slice(n.length)}))),i=r.reduce(((e,t)=>{let n=(0,c.dirname)(t.path);for(;!e[n]&&n&&"/"!==n;){const t=n.split(c.sep);e[n]=t.pop(),n=t.length&&t.join(c.sep)}return e}),{}),o=[{title:(e=e.getIn(["nested","summary"])?e.set("summary",e.getIn(["nested","summary"])):e.delete("summary")).get("label"),path:"/",isDir:!0,isRoot:!0},...Object.entries(i).map((([e,t])=>({title:t,path:e,isDir:!0,isRoot:!1}))),...r.map(((n,r)=>{let i=t.get(r);i=i.set("data",_(i.get("path"),i.get("data")));const o=(0,g.selectEntryCollectionTitle)(e,i);return b(b({},n),{},{title:o,isDir:!1,isRoot:!1})}))].reduce(((e,t)=>{const n="/"===t.path?"":(0,c.dirname)(t.path);return e[n]?e[n].push(t):e[n]=[t],e}),{});return o[""].reduce((function e(t,n){const r=n;let i=[];return o[r.path]&&(i=o[r.path].reduce(e,[])),t.push(b(b({},r),{},{children:i})),t}),[])}function D(e,t,n){let r=!1;return function e(i){if(r)return i;for(let e=0;ee(t.children))),i}([...e])}A.propTypes={collection:h.default.map.isRequired,depth:p.default.number,treeData:p.default.array.isRequired,onToggle:p.default.func.isRequired};class M extends o.default.Component{constructor(e){super(e),w(this,"onToggle",(({node:e,expanded:t})=>{if(!this.state.selected||this.state.selected.path===e.path||t){const n=D(this.state.treeData,e,(e=>b(b({},e),{},{expanded:t})));this.setState({treeData:n,selected:e,useFilter:!1})}else this.setState({selected:e,useFilter:!1})})),this.state={treeData:R(this.props.collection,this.props.entries),selected:null,useFilter:!0}}componentDidUpdate(e){const{collection:t,entries:n,filterTerm:r}=this.props;if(t!==e.collection||n!==e.entries||r!==e.filterTerm){const e={};P(this.state.treeData,(t=>{t.expanded&&(e[t.path]=!0)}));const i=R(t,n),o=`/${r}`;P(i,(t=>{(e[t.path]||this.state.useFilter&&o.startsWith(t.path))&&(t.expanded=!0)})),this.setState({treeData:i})}}render(){const{treeData:e}=this.state,{collection:t}=this.props;return(0,s.jsx)(A,{collection:t,treeData:e,onToggle:this.onToggle})}}t.NestedCollection=M,w(M,"propTypes",{collection:h.default.map.isRequired,entries:h.default.list.isRequired,filterTerm:p.default.string}),t.default=(0,l.connect)((function(e,t){const{collection:n}=t;return{entries:(0,m.selectEntries)(e.entries,n)||(0,a.List)()}}),null)(M)},9381:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Sidebar=void 0;var r=h(n(70894)),i=h(n(2784)),o=h(n(13980)),a=h(n(19155)),s=n(28165),l=n(9316),u=n(34752),c=n(30762),d=n(1582),f=h(n(98165)),p=h(n(21147));function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g={sidebarNavLinkActive:(0,s.css)("color:",c.colors.active,";background-color:",c.colors.activeBackground,";border-left-color:#4863c6;;label:sidebarNavLinkActive;")},v=(0,r.default)("aside",{target:"e1t18l343",label:"SidebarContainer"})(c.components.card,";width:250px;padding:8px 0 12px;position:fixed;max-height:calc(100vh - 112px);display:flex;flex-direction:column;"),y=(0,r.default)("h2",{target:"e1t18l342",label:"SidebarHeading"})("font-size:22px;font-weight:600;line-height:37px;padding:0;margin:10px 20px;color:",c.colors.textLead,";"),b=(0,r.default)("ul",{target:"e1t18l341",label:"SidebarNavList"})({name:"14vcqsr",styles:"margin:12px 0 0;list-style:none;overflow:auto"}),w=(0,r.default)(u.NavLink,{target:"e1t18l340",label:"SidebarNavLink"})("display:flex;font-size:14px;font-weight:500;align-items:center;padding:8px 18px;border-left:2px solid #fff;z-index:-1;",c.Icon,"{margin-right:4px;flex-shrink:0;}",(e=>(0,s.css)("&:hover,&:active,&.",e.activeClassName,"{",g.sidebarNavLinkActive,";};label:SidebarNavLink;")),";");class _ extends i.default.Component{constructor(...e){super(...e),m(this,"renderLink",((e,t)=>{const n=e.get("name");return e.has("nested")?(0,s.jsx)("li",{key:n},(0,s.jsx)(p.default,{collection:e,filterTerm:t,"data-testid":n})):(0,s.jsx)("li",{key:n},(0,s.jsx)(w,{to:`/collections/${n}`,activeClassName:"sidebar-active","data-testid":n},(0,s.jsx)(c.Icon,{type:"write"}),e.get("label")))}))}render(){const{collections:e,collection:t,isSearchEnabled:n,searchTerm:r,t:i,filterTerm:o}=this.props;return(0,s.jsx)(v,null,(0,s.jsx)(y,null,i("collection.sidebar.collections")),n&&(0,s.jsx)(f.default,{searchTerm:r,collections:e,collection:t,onSubmit:(e,t)=>(0,d.searchCollections)(e,t)}),(0,s.jsx)(b,null,e.toList().filter((e=>!0!==e.get("hide"))).map((e=>this.renderLink(e,o)))))}}t.Sidebar=_,m(_,"propTypes",{collections:a.default.map.isRequired,collection:a.default.map,isSearchEnabled:o.default.bool,searchTerm:o.default.string,filterTerm:o.default.string,t:o.default.func.isRequired}),t.default=(0,l.translate)()(_)},61450:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,(r=n(2784))&&r.__esModule;var r,i=n(9316),o=n(30762),a=n(67964),s=n(16108),l=n(28165);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;te.direction!==a.SortDirection.None));return(0,l.jsx)(o.Dropdown,{renderButton:()=>(0,l.jsx)(s.ControlButton,{active:i,title:e("collection.collectionTop.sortBy")}),closeOnSelection:!1,dropdownTopOverlap:"30px",dropdownWidth:"160px",dropdownPosition:"left"},t.map((e=>{const t=null==r?void 0:r.getIn([e.key,"direction"]),i=t&&t!==a.SortDirection.None,s=function(e){switch(e){case a.SortDirection.Ascending:return a.SortDirection.Descending;case a.SortDirection.Descending:return a.SortDirection.None;default:return a.SortDirection.Ascending}}(t);return(0,l.jsx)(o.DropdownItem,u({key:e.key,label:e.label,onClick:()=>n(e.key,s),isActive:i},i&&function(e){return{icon:"chevron",iconDirection:c[e],iconSmall:!0}}(t)))})))}))},37058:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(70894)),i=(s(n(2784)),n(30762)),o=n(78882),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("div",{target:"evv1i7c1",label:"ViewControlsSection"})({name:"k6mob8",styles:"display:flex;align-items:center;justify-content:flex-end;max-width:500px"}),u=(0,r.default)("button",{target:"evv1i7c0",label:"ViewControlsButton"})(i.buttons.button,";color:",(e=>e.isActive?i.colors.active:"#b3b9c4"),";background-color:transparent;display:block;padding:0;margin:0 4px;&:last-child{margin-right:0;}",i.Icon,"{display:block;}");t.default=function({viewStyle:e,onChangeViewStyle:t}){return(0,a.jsx)(l,null,(0,a.jsx)(u,{isActive:e===o.VIEW_STYLE_LIST,onClick:()=>t(o.VIEW_STYLE_LIST)},(0,a.jsx)(i.Icon,{type:"list"})),(0,a.jsx)(u,{isActive:e===o.VIEW_STYLE_GRID,onClick:()=>t(o.VIEW_STYLE_GRID)},(0,a.jsx)(i.Icon,{type:"grid"})))}},15694:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Editor=void 0;var r=_(n(54073)),i=_(n(13980)),o=_(n(2784)),a=_(n(19155)),s=n(57903),l=n(30762),u=n(9316),c=n(79278),d=n(76167),f=n(50236),p=n(91358),h=n(66145),m=n(36642),g=n(45624),v=n(61928),y=_(n(78767)),b=_(n(42531)),w=n(28165);function _(e){return e&&e.__esModule?e:{default:e}}function x(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class k extends o.default.Component{constructor(...e){super(...e),x(this,"createBackup",(0,r.default)((function(e,t){this.props.persistLocalBackup(e,t)}),2e3)),x(this,"handleChangeDraftField",((e,t,n,r)=>{const i=[this.props.unPublishedEntry,this.props.publishedEntry].filter(Boolean);this.props.changeDraftField({field:e,value:t,metadata:n,entries:i,i18n:r})})),x(this,"handleChangeStatus",(e=>{const{entryDraft:t,updateUnpublishedEntryStatus:n,collection:r,slug:i,currentStatus:o,t:a}=this.props;if(t.get("hasChanged"))return void window.alert(a("editor.editor.onUpdatingWithUnsavedChanges"));const s=v.status.get(e);n(r.get("name"),i,o,s)})),x(this,"handlePersistEntry",(async(e={})=>{const{createNew:t=!1,duplicate:n=!1}=e,{persistEntry:r,collection:i,currentStatus:o,hasWorkflow:a,loadEntry:s,slug:l,createDraftDuplicateFromEntry:u,entryDraft:d}=this.props;await r(i),this.deleteBackup(),t?((0,c.navigateToNewEntry)(i.get("name")),n&&u(d.get("entry"))):l&&a&&!o&&s(i,l)})),x(this,"handlePublishEntry",(async(e={})=>{const{createNew:t=!1,duplicate:n=!1}=e,{publishUnpublishedEntry:r,createDraftDuplicateFromEntry:i,entryDraft:o,collection:a,slug:s,currentStatus:l,t:u}=this.props;l===v.status.last()?o.get("hasChanged")?window.alert(u("editor.editor.onPublishingWithUnsavedChanges")):window.confirm(u("editor.editor.onPublishing"))&&(await r(a.get("name"),s),this.deleteBackup(),t&&(0,c.navigateToNewEntry)(a.get("name")),n&&i(o.get("entry"))):window.alert(u("editor.editor.onPublishingNotReady"))})),x(this,"handleUnpublishEntry",(async()=>{const{unpublishPublishedEntry:e,collection:t,slug:n,t:r}=this.props;if(window.confirm(r("editor.editor.onUnpublishing")))return await e(t,n),(0,c.navigateToCollection)(t.get("name"))})),x(this,"handleDuplicateEntry",(()=>{const{createDraftDuplicateFromEntry:e,collection:t,entryDraft:n}=this.props;(0,c.navigateToNewEntry)(t.get("name")),e(n.get("entry"))})),x(this,"handleDeleteEntry",(()=>{const{entryDraft:e,newEntry:t,collection:n,deleteEntry:r,slug:i,t:o}=this.props;if(e.get("hasChanged")){if(!window.confirm(o("editor.editor.onDeleteWithUnsavedChanges")))return}else if(!window.confirm(o("editor.editor.onDeletePublishedEntry")))return;if(t)return(0,c.navigateToCollection)(n.get("name"));setTimeout((async()=>(await r(n,i),this.deleteBackup(),(0,c.navigateToCollection)(n.get("name")))),0)})),x(this,"handleDeleteUnpublishedChanges",(async()=>{const{entryDraft:e,collection:t,slug:n,deleteUnpublishedEntry:r,loadEntry:i,isModification:o,t:a}=this.props;e.get("hasChanged")&&!window.confirm(a("editor.editor.onDeleteUnpublishedChangesWithUnsavedChanges"))||window.confirm(a("editor.editor.onDeleteUnpublishedChanges"))&&(await r(t.get("name"),n),this.deleteBackup(),o?i(t,n):(0,c.navigateToCollection)(t.get("name")))}))}componentDidMount(){const{newEntry:e,collection:t,slug:n,loadEntry:r,createEmptyDraft:i,loadEntries:o,retrieveLocalBackup:a,collectionEntriesLoaded:s,t:l}=this.props;a(t,n),e?i(t,this.props.location.search):r(t,n);const u=l("editor.editor.onLeavePage");this.exitBlocker=e=>{if(this.props.entryDraft.get("hasChanged"))return e.returnValue=u,u},window.addEventListener("beforeunload",this.exitBlocker);const d=c.history.block(((e,n)=>{const r=this.props.entryDraft.getIn(["entry","isPersisting"]),i=this.props.entryDraft.getIn(["entry","newRecord"]),o=`/collections/${t.get("name")}/new`;if(!r||!i||this.props.location.pathname!==o||"PUSH"!==n)return this.props.hasChanged?u:void 0}));this.unlisten=c.history.listen(((e,n)=>{const r=`/collections/${t.get("name")}/new`,i=`/collections/${t.get("name")}/entries/`,{pathname:o}=e;o.startsWith(r)||o.startsWith(i)&&"PUSH"===n||(this.deleteBackup(),d(),this.unlisten())})),s||o(t)}componentDidUpdate(e){if(!e.localBackup&&this.props.localBackup&&(window.confirm(this.props.t("editor.editor.confirmLoadBackup"))?this.props.loadLocalBackup():this.deleteBackup()),this.props.hasChanged&&this.createBackup(this.props.entryDraft.get("entry"),this.props.collection),e.entry===this.props.entry)return;const{newEntry:t,collection:n}=this.props;t&&e.createEmptyDraft(n,this.props.location.search)}componentWillUnmount(){this.createBackup.flush(),this.props.discardDraft(),window.removeEventListener("beforeunload",this.exitBlocker)}deleteBackup(){const{deleteLocalBackup:e,collection:t,slug:n,newEntry:r}=this.props;this.createBackup.cancel(),e(t,!r&&n)}render(){const{entry:e,entryDraft:t,fields:n,collection:r,changeDraftFieldValidation:i,user:o,hasChanged:a,displayUrl:s,hasWorkflow:u,useOpenAuthoring:c,unpublishedEntry:d,newEntry:f,isModification:p,currentStatus:h,logoutUser:m,deployPreview:g,loadDeployPreview:v,draftKey:b,slug:_,t:x,editorBackLink:k}=this.props,E=!f&&!d;return e&&e.get("error")?(0,w.jsx)("div",null,(0,w.jsx)("h3",null,e.get("error"))):null==t||void 0===t.get("entry")||e&&e.get("isFetching")?(0,w.jsx)(l.Loader,{active:!0},x("editor.editor.loadingEntry")):(0,w.jsx)(y.default,{draftKey:b,entry:t.get("entry"),collection:r,fields:n,fieldsMetaData:t.get("fieldsMetaData"),fieldsErrors:t.get("fieldsErrors"),onChange:this.handleChangeDraftField,onValidate:i,onPersist:this.handlePersistEntry,onDelete:this.handleDeleteEntry,onDeleteUnpublishedChanges:this.handleDeleteUnpublishedChanges,onChangeStatus:this.handleChangeStatus,onPublish:this.handlePublishEntry,unPublish:this.handleUnpublishEntry,onDuplicate:this.handleDuplicateEntry,showDelete:this.props.showDelete,user:o,hasChanged:a,displayUrl:s,hasWorkflow:u,useOpenAuthoring:c,hasUnpublishedChanges:d,isNewEntry:f,isModification:p,currentStatus:h,onLogoutClick:m,deployPreview:g,loadDeployPreview:t=>v(r,_,e,E,t),editorBackLink:k,t:x})}}t.Editor=k,x(k,"propTypes",{changeDraftField:i.default.func.isRequired,changeDraftFieldValidation:i.default.func.isRequired,collection:a.default.map.isRequired,createDraftDuplicateFromEntry:i.default.func.isRequired,createEmptyDraft:i.default.func.isRequired,discardDraft:i.default.func.isRequired,entry:a.default.map,entryDraft:a.default.map.isRequired,loadEntry:i.default.func.isRequired,persistEntry:i.default.func.isRequired,deleteEntry:i.default.func.isRequired,showDelete:i.default.bool.isRequired,fields:a.default.list.isRequired,slug:i.default.string,newEntry:i.default.bool.isRequired,displayUrl:i.default.string,hasWorkflow:i.default.bool,useOpenAuthoring:i.default.bool,unpublishedEntry:i.default.bool,isModification:i.default.bool,collectionEntriesLoaded:i.default.bool,updateUnpublishedEntryStatus:i.default.func.isRequired,publishUnpublishedEntry:i.default.func.isRequired,deleteUnpublishedEntry:i.default.func.isRequired,logoutUser:i.default.func.isRequired,loadEntries:i.default.func.isRequired,deployPreview:i.default.object,loadDeployPreview:i.default.func.isRequired,currentStatus:i.default.string,user:i.default.object,location:i.default.shape({pathname:i.default.string,search:i.default.string}),hasChanged:i.default.bool,t:i.default.func.isRequired,retrieveLocalBackup:i.default.func.isRequired,localBackup:a.default.map,loadLocalBackup:i.default.func,persistLocalBackup:i.default.func.isRequired,deleteLocalBackup:i.default.func});const E={changeDraftField:f.changeDraftField,changeDraftFieldValidation:f.changeDraftFieldValidation,loadEntry:f.loadEntry,loadEntries:f.loadEntries,loadDeployPreview:h.loadDeployPreview,loadLocalBackup:f.loadLocalBackup,retrieveLocalBackup:f.retrieveLocalBackup,persistLocalBackup:f.persistLocalBackup,deleteLocalBackup:f.deleteLocalBackup,createDraftDuplicateFromEntry:f.createDraftDuplicateFromEntry,createEmptyDraft:f.createEmptyDraft,discardDraft:f.discardDraft,persistEntry:f.persistEntry,deleteEntry:f.deleteEntry,updateUnpublishedEntryStatus:p.updateUnpublishedEntryStatus,publishUnpublishedEntry:p.publishUnpublishedEntry,unpublishPublishedEntry:p.unpublishPublishedEntry,deleteUnpublishedEntry:p.deleteUnpublishedEntry,logoutUser:d.logoutUser};t.default=(0,s.connect)((function(e,t){const{collections:n,entryDraft:r,auth:i,config:o,entries:a,globalUI:s}=e,l=t.match.params[0],u=n.get(t.match.params.name),c=u.get("name"),d=!0===t.newRecord,f=(0,g.selectFields)(u,l),p=d?null:(0,m.selectEntry)(e,c,l),h=i.user,y=r.get("hasChanged"),b=o.display_url,w=o.publish_mode===v.EDITORIAL_WORKFLOW,_=s.useOpenAuthoring,x=r.getIn(["entry","isModification"]),k=!!a.getIn(["pages",c]),E=(0,m.selectUnpublishedEntry)(e,c,l),S=(0,m.selectEntry)(e,c,l),C=E&&E.get("status"),T=(0,m.selectDeployPreview)(e,c,l),O=r.get("localBackup"),A=r.get("key");let P=`/collections/${c}`;if("workflow"===new URLSearchParams(t.location.search).get("ref")&&(P="/workflow"),u.has("nested")&&l){const e=l.split("/");e.length>2&&(P=`${P}/filter/${e.slice(0,-2).join("/")}`)}return{collection:u,collections:n,newEntry:d,entryDraft:r,fields:f,slug:l,entry:p,user:h,hasChanged:y,displayUrl:b,hasWorkflow:w,useOpenAuthoring:_,isModification:x,collectionEntriesLoaded:k,currentStatus:C,deployPreview:T,localBackup:O,draftKey:A,publishedEntry:S,unPublishedEntry:E,editorBackLink:P}}),E)((0,b.default)((0,u.translate)()(k)))},65886:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ControlHint=void 0;var r=E(n(70894)),i=E(n(74930)),o=E(n(83465)),a=E(n(2784)),s=n(74081),l=E(n(13980)),u=E(n(19155)),c=n(9316),d=n(28165),f=n(57903),p=n(30762),h=E(n(88100)),m=E(n(40940)),g=n(41891),v=n(50236),y=n(71033),b=n(33474),w=n(15207),_=n(68104),x=E(n(57622));const k=["node"];function E(e){return e&&e.__esModule?e:{default:e}}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;te.error?p.colors.errorText:e.active?p.colors.active:p.colors.controlLabel),";transition:color ",p.transitions.main,";");function M({field:e,isActive:t,hasErrors:n,uniqueFieldId:r,isFieldOptional:i,t:o}){const s=`${e.get("label",e.get("name"))}`;return(0,d.jsx)(p.FieldLabel,{isActive:t,hasErrors:n,htmlFor:r},i?(0,d.jsx)(a.default.Fragment,null,s,(0,d.jsx)("span",null,` (${o("editor.editorControl.field.optional")})`)):s)}class I extends a.default.Component{constructor(...e){super(...e),O(this,"state",{activeLabel:!1}),O(this,"uniqueFieldId",(0,i.default)(`${this.props.field.get("name")}-field-`)),O(this,"isAncestorOfFieldError",(()=>{const{fieldsErrors:e}=this.props;return!!(e&&e.size>0)&&Object.values(e.toJS()).some((e=>e.some((e=>e.parentIds&&e.parentIds.includes(this.uniqueFieldId)))))}))}render(){const{value:e,entry:t,collection:n,config:r,field:i,fieldsMetaData:a,fieldsErrors:s,mediaPaths:l,boundGetAsset:u,onChange:c,openMediaLibrary:f,clearMediaControl:p,removeMediaControl:v,addAsset:y,removeInsertedMedia:b,persistMedia:w,onValidate:_,processControlRef:E,controlRef:S,query:C,queryHits:O,isFetching:I,clearSearch:j,clearFieldErrors:N,loadEntry:F,className:B,isSelected:z,isEditorComponent:U,isNewEditorComponent:q,parentIds:W,t:$,validateMetaField:H,isLoadingAsset:V,isDisabled:G,isHidden:K,isFieldDuplicate:Z,isFieldHidden:Y,locale:X,isParentListCollapsed:Q}=this.props,J=i.get("widget"),ee=(0,g.resolveWidget)(J),te=i.get("name"),ne=i.get("hint"),re=!1===i.get("required"),ie=_,oe=a&&a.get(te),ae=s&&s.get(this.uniqueFieldId),se=this.isAncestorOfFieldError(),le=!!ae||se;return(0,d.jsx)(d.ClassNames,null,(({css:a,cx:J})=>(0,d.jsx)(P,{className:B,css:a` - ${K&&A.hidden}; +`},60737:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(70894)),i=l(n(2784)),o=l(n(13980)),a=n(30762),s=n(28165);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c=(0,r.default)("section",{target:"e1ektlme1",label:"StyledAuthenticationPage"})({name:"8azftg",styles:"display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;height:100vh"}),d=(0,r.default)("button",{target:"e1ektlme0",label:"LoginButton"})(a.buttons.button,";",a.shadows.dropDeep,";",a.buttons.default,";",a.buttons.gray,";padding:0 30px;margin-top:0;display:flex;align-items:center;position:relative;",a.Icon,"{margin-right:18px;}");class f extends i.default.Component{constructor(...e){super(...e),u(this,"handleLogin",(e=>{e.preventDefault(),this.props.onLogin(this.state)}))}render(){const{config:e,inProgress:t,t:n}=this.props;return(0,s.jsx)(c,null,(0,a.renderPageLogo)(e.logo_url),(0,s.jsx)(d,{disabled:t,onClick:this.handleLogin},n(t?"auth.loggingIn":"auth.login")),e.site_url&&(0,s.jsx)(a.GoBackButton,{href:e.site_url,t:n}))}}t.default=f,u(f,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool,config:o.default.object.isRequired,t:o.default.func.isRequired})},9189:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(33806),o=(r=n(60737))&&r.__esModule?r:{default:r};function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return i.default}}),t.DecapCmsBackendProxy=void 0,Object.defineProperty(t,"ProxyBackend",{enumerable:!0,get:function(){return r.default}});var r=o(n(9189)),i=o(n(60737));function o(e){return e&&e.__esModule?e:{default:e}}t.DecapCmsBackendProxy={ProxyBackend:r.default,AuthenticationPage:i.default}},69730:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(70894)),i=l(n(2784)),o=l(n(13980)),a=n(30762),s=n(28165);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c=(0,r.default)("section",{target:"e141mjkc2",label:"StyledAuthenticationPage"})({name:"14ts7qn",styles:"display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;gap:50px;height:100vh"}),d=(0,r.default)(a.Icon,{target:"e141mjkc1",label:"PageLogoIcon"})({name:"pit38s",styles:"height:auto"}),f=(0,r.default)("button",{target:"e141mjkc0",label:"LoginButton"})(a.buttons.button,";",a.shadows.dropDeep,";",a.buttons.default,";",a.buttons.gray,";padding:0 30px;margin-top:0;display:flex;align-items:center;position:relative;",a.Icon,"{margin-right:18px;}");class p extends i.default.Component{constructor(...e){super(...e),u(this,"handleLogin",(e=>{e.preventDefault(),this.props.onLogin(this.state)}))}componentDidMount(){!1===this.props.config.backend.login&&this.props.onLogin(this.state)}render(){const{config:e,inProgress:t,t:n}=this.props;return(0,s.jsx)(c,null,(0,s.jsx)(d,{size:"300px",type:"decap-cms"}),(0,s.jsx)(f,{disabled:t,onClick:this.handleLogin},n(t?"auth.loggingIn":"auth.login")),e.site_url&&(0,s.jsx)(a.GoBackButton,{href:e.site_url,t:n}))}}t.default=p,u(p,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool,config:o.default.object.isRequired,t:o.default.func.isRequired})},57058:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getFolderFiles=b;var r=f(n(45455)),i=f(n(17195)),o=f(n(85701)),a=f(n(85121)),s=f(n(55027)),l=n(29987),u=n(33806),c=n(21023),d=f(n(69730));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){const n=e.split("/");let r=t;for(;r&&n.length;)r=r[n.shift()];return r||{}}function m(e,t,n){const r=e.split("/");let i=n;for(;r.length>1;){const e=r.shift();i[e]=i[e]||{},i=i[e]}i[r.shift()]={content:t,path:e}}function g(e,t){(0,i.default)(t,e.split("/"))}window.repoFiles=window.repoFiles||{},window.repoFilesUnpublished=window.repoFilesUnpublished||[];const v=10;function y(e,t,n,r,i){const o=n.length,a=Math.floor(o/v);return u.Cursor.create({actions:[...r0?["prev","first"]:[]],meta:{index:r,count:o,pageSize:v,pageCount:a},data:{folder:e,extension:t,index:r,pageCount:a,depth:i}})}function b(e,t,n,r,i=[],o=t){return r<=0||Object.keys(e[t]||{}).forEach((a=>{if(!(0,c.extname)(a))return b(e[t],a,n,r-1,i,`${o}/${a}`);{const r=e[t][a];n&&!a.endsWith(`.${n}`)||i.unshift({content:r.content,path:`${o}/${a}`})}})),i}t.default=class{constructor(e,t={}){p(this,"mediaFolder",void 0),p(this,"options",void 0),this.options=t,this.mediaFolder=e.media_folder}isGitBackend(){return!1}status(){return Promise.resolve({auth:{status:!0},api:{status:!0,statusPage:""}})}authComponent(){return d.default}restoreUser(){return this.authenticate()}authenticate(){return Promise.resolve()}logout(){return null}getToken(){return Promise.resolve("")}traverseCursor(e,t){const{folder:n,extension:r,index:i,pageCount:o,depth:a}=e.data.toObject(),s="next"===t?i+1:"prev"===t?i-1:"first"===t?0:"last"===t?o:0,l=b(window.repoFiles,n,r,a).map((e=>({data:e.content,file:{path:e.path,id:e.path}}))),u=l.slice(s*v,s*v+v),c=y(n,r,l,s,a);return Promise.resolve({entries:u,cursor:c})}entriesByFolder(e,t,n){const r=(e?b(window.repoFiles,e,t,n):[]).map((e=>({data:e.content,file:{path:e.path,id:e.path}}))),i=y(e,t,r,0,n),a=(0,o.default)(r,v);return a[u.CURSOR_COMPATIBILITY_SYMBOL]=i,Promise.resolve(a)}entriesByFiles(e){return Promise.all(e.map((e=>({file:e,data:h(e.path,window.repoFiles).content}))))}getEntry(e){return Promise.resolve({file:{path:e,id:null},data:h(e,window.repoFiles).content})}unpublishedEntries(){return Promise.resolve(Object.keys(window.repoFilesUnpublished))}unpublishedEntry({id:e,collection:t,slug:n}){if(e){const r=e.split("/");t=r[0],n=r[1]}const r=window.repoFilesUnpublished[`${t}/${n}`];return r?Promise.resolve(r):Promise.reject(new u.EditorialWorkflowError("content is not under editorial workflow",!0))}async unpublishedEntryDataFile(e,t,n){const r=window.repoFilesUnpublished[`${e}/${t}`].diffs.find((e=>e.path===n));return null==r?void 0:r.content}async unpublishedEntryMediaFile(e,t,n){const r=window.repoFilesUnpublished[`${e}/${t}`].diffs.find((e=>e.path===n));return this.normalizeAsset(null==r?void 0:r.content)}deleteUnpublishedEntry(e,t){return delete window.repoFilesUnpublished[`${e}/${t}`],Promise.resolve()}async addOrUpdateUnpublishedEntry(e,t,n,i,o,a){const s=[];t.forEach((t=>{var n;const{path:i,newPath:o,raw:a}=t,l=null===(n=window.repoFilesUnpublished[e])||void 0===n?void 0:n.diffs.find((e=>e.path===i)),u=l?l.originalPath:i;s.push({originalPath:u,id:o||i,path:o||i,newFile:(0,r.default)(h(u,window.repoFiles)),status:"added",content:a})})),n.forEach((e=>{const t=this.normalizeAsset(e);s.push({id:t.id,path:t.path,newFile:!0,status:"added",content:t})})),window.repoFilesUnpublished[e]={slug:i,collection:o,status:a,diffs:s,updatedAt:(new Date).toISOString()}}async persistEntry(e,t){if(t.useWorkflow){const n=e.dataFiles[0].slug,r=`${t.collectionName}/${n}`,i=window.repoFilesUnpublished[r],o=(null==i?void 0:i.status)||t.status||this.options.initialWorkflowStatus;return this.addOrUpdateUnpublishedEntry(r,e.dataFiles,e.assets,n,t.collectionName,o),Promise.resolve()}return e.dataFiles.forEach((e=>{const{path:t,raw:n}=e;m(t,n,window.repoFiles)})),e.assets.forEach((e=>{m(e.path,e,window.repoFiles)})),Promise.resolve()}updateUnpublishedEntryStatus(e,t,n){return window.repoFilesUnpublished[`${e}/${t}`].status=n,Promise.resolve()}publishUnpublishedEntry(e,t){const n=`${e}/${t}`,r=window.repoFilesUnpublished[n];delete window.repoFilesUnpublished[n];const i=window.repoFiles;return r.diffs.forEach((e=>{if(e.originalPath&&!e.newFile){const t=e.originalPath,n=(0,c.dirname)(t),r=(0,c.dirname)(e.path);b(i,t.split("/")[0],"",100).filter((e=>e.path.startsWith(n))).forEach((e=>{g(e.path,i),m(e.path.replace(n,r),e.content,i)}))}m(e.path,e.content,i)})),Promise.resolve()}getMedia(e=this.mediaFolder){const t=b(window.repoFiles,e.split("/")[0],"",100).filter((t=>t.path.startsWith(e))).map((e=>this.normalizeAsset(e.content)));return Promise.resolve(t)}async getMediaFile(e){const t=h(e,window.repoFiles).content.toString(),n=(0,u.basename)(e),r=await fetch(t).then((e=>e.blob())),i=new File([r],n);return{id:t,displayURL:t,path:e,name:n,size:i.size,file:i,url:t}}normalizeAsset(e){const t=e.fileObj,{name:n,size:r}=t,i=(0,s.default)(window.URL.createObjectURL,t),o=(0,a.default)(i)?"":i;return{id:(0,l.v4)(),name:n,size:r,path:e.path,url:o,displayURL:o,fileObj:t}}persistMedia(e){const t=this.normalizeAsset(e);return m(e.path,e,window.repoFiles),Promise.resolve(t)}deleteFiles(e){return e.forEach((e=>{g(e,window.repoFiles)})),Promise.resolve()}async getDeployPreview(){return null}}},58908:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return i.default}}),t.DecapCmsBackendTest=void 0,Object.defineProperty(t,"TestBackend",{enumerable:!0,get:function(){return r.default}});var r=o(n(57058)),i=o(n(69730));function o(e){return e&&e.__esModule?e:{default:e}}t.DecapCmsBackendTest={TestBackend:r.default,AuthenticationPage:i.default}},76167:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.USE_OPEN_AUTHORING=t.LOGOUT=t.AUTH_SUCCESS=t.AUTH_REQUEST_DONE=t.AUTH_REQUEST=t.AUTH_FAILURE=void 0,t.authError=p,t.authenticate=f,t.authenticateUser=function(){return(e,t)=>{const n=t(),i=(0,r.currentBackend)(n.config);return e(d()),Promise.resolve(i.currentUser()).then((t=>{t?(t.useOpenAuthoring&&e(m()),e(f(t))):e(h())})).catch((t=>{e(p(t)),e(v())}))}},t.authenticating=d,t.doneAuthenticating=h,t.loginUser=function(e){return(t,n)=>{const o=n(),a=(0,r.currentBackend)(o.config);return t(d()),a.authenticate(e).then((e=>{e.useOpenAuthoring&&t(m()),t(f(e))})).catch((e=>{console.error(e),t((0,i.addNotification)({message:{details:e.message,key:"ui.toast.onFailToAuth"},type:"error",dismissAfter:8e3})),t(p(e))}))}},t.logout=g,t.logoutUser=v,t.useOpenAuthoring=m;var r=n(2241),i=n(5690);const o=t.AUTH_REQUEST="AUTH_REQUEST",a=t.AUTH_SUCCESS="AUTH_SUCCESS",s=t.AUTH_FAILURE="AUTH_FAILURE",l=t.AUTH_REQUEST_DONE="AUTH_REQUEST_DONE",u=t.USE_OPEN_AUTHORING="USE_OPEN_AUTHORING",c=t.LOGOUT="LOGOUT";function d(){return{type:o}}function f(e){return{type:a,payload:e}}function p(e){return{type:s,error:"Failed to authenticate",payload:e}}function h(){return{type:l}}function m(){return{type:u}}function g(){return{type:c}}function v(){return(e,t)=>{const n=t(),o=(0,r.currentBackend)(n.config);Promise.resolve(o.logout()).then((()=>{e(g()),e((0,i.clearNotifications)())}))}}},1582:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createNewEntry=function(e){r.history.push((0,i.getNewEntryUrl)(e))},t.searchCollections=function(e,t){t?r.history.push(`/collections/${t}/search/${e}`):r.history.push(`/search/${e}`)},t.showCollection=function(e){r.history.push((0,i.getCollectionUrl)(e))};var r=n(79278),i=n(9904)},54750:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONFIG_SUCCESS=t.CONFIG_REQUEST=t.CONFIG_FAILURE=void 0,t.applyDefaults=j,t.configFailed=z,t.configLoaded=F,t.configLoading=B,t.detectProxyServer=U,t.handleLocalBackend=q,t.loadConfig=function(e={},t){return window.CMS_CONFIG?F(window.CMS_CONFIG):async n=>{n(B());try{const i=function(){const e=document.querySelector('link[rel="cms-config-url"]');return e&&{"text/yaml":"yaml","application/x-yaml":"yaml"}[e.type]&&e.href?(console.log(`Using config file path: "${e.href}"`),e.href):"config.yml"}(),o=!(0,r.default)(e),a=!1===e.load_config_file?{}:await async function(e,t){const n=await fetch(e,{credentials:"same-origin"}).catch((e=>e));if(n instanceof Error||200!==n.status){if(t)return{};const e=n instanceof Error?n.message:n.status;throw new Error(`Failed to load config.yml (${e})`)}const r=n.headers.get("Content-Type")||"Not-Found";return-1===r.indexOf("yaml")&&(console.log(`Response for ${e} was not yaml. (Content-Type: ${r})`),t)?{}:N(await n.text())}(i,o),s=(0,l.default)(a,e);(0,d.validateConfig)(s),n(F(j(L(await q(s))))),"function"==typeof t&&t()}catch(e){throw n(z(e)),e}}},t.normalizeConfig=L,t.parseConfig=N;var r=y(n(45455)),i=y(n(5648)),o=y(n(93433)),a=y(n(60155)),s=n(46670),l=y(n(39714)),u=n(30412),c=n(61928),d=n(35276),f=n(45624),p=n(487),h=n(2241),m=n(13943),g=n(48781);const v=["sortableFields"];function y(e){return e&&e.__esModule?e:{default:e}}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t{const n=t(e);return function(e){return"fields"in e}(n)?w(w({},n),{},{fields:C(n.fields,t)}):E(n)&&n.field?w(w({},n),{},{field:C([n.field],t)[0]}):E(n)&&n.types?w(w({},n),{},{types:C(n.types,t)}):n}))}function S(e){return"media_folder"in e&&!("public_folder"in e)?w(w({},e),{},{public_folder:e.media_folder}):e}const A={dateFormat:"date_format",timeFormat:"time_format",pickerUtc:"picker_utc",editorComponents:"editor_components",valueType:"value_type",valueField:"value_field",searchFields:"search_fields",displayFields:"display_fields",optionsLength:"options_length"};function T(e){const t=Object.keys(A).filter((t=>t in e)).map((t=>{const n=A[t];return console.warn(`Field ${e.name} is using a deprecated configuration '${t}'. Please use '${n}'`),{[n]:e[t]}}));return Object.assign({},e,...t)}function O(e){return!0===e[m.I18N]?w(w({},e),{},{[m.I18N]:m.I18N_FIELD.TRANSLATE}):!1!==e[m.I18N]&&e[m.I18N]?e:w(w({},e),{},{[m.I18N]:m.I18N_FIELD.NONE})}function P(e,t){if("boolean"==typeof e)return t;{const n=e.locales||t.locales,r=e.default_locale||n[0],i=(0,l.default)(t,e);return i.locales=n,i.default_locale=r,M(i),i}}function R(e,t){return C(e,t?O:e=>{const t=w({},e);return delete t[m.I18N],t})}function D(e){if(e&&e.structure!==m.I18N_STRUCTURE.SINGLE_FILE)throw new Error(`i18n configuration for files collections is limited to ${m.I18N_STRUCTURE.SINGLE_FILE} structure`)}function M(e){if(e&&e.default_locale&&!e.locales.includes(e.default_locale))throw new Error(`i18n locales '${e.locales.join(", ")}' are missing the default locale ${e.default_locale}`)}function I(e,t){const n=(0,p.getIntegrations)((0,s.fromJS)(e));return!!(0,p.selectIntegration)(n,t.name,"listEntries")}function L(e){const{collections:t=[]}=e,n=t.map((e=>{const{fields:t,files:n}=e;let r=e;if(t){const e=C(t,T);r=w(w({},r),{},{fields:e})}if(n){const e=n.map((e=>{const t=C(e.fields,T);return w(w({},e),{},{fields:t})}));r=w(w({},r),{},{files:e})}if(r.sortableFields){const{sortableFields:t}=r;r=w(w({},function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(r,v)),{},{sortable_fields:t}),console.warn(`Collection ${e.name} is using a deprecated configuration 'sortableFields'. Please use 'sortable_fields'`)}return r}));return w(w({},e),{},{collections:n})}function j(e){return(0,u.produce)(e,(e=>{e.publish_mode=e.publish_mode||c.SIMPLE,e.slug=e.slug||{},e.collections=e.collections||[],!e.display_url&&e.site_url&&(e.display_url=e.site_url);const t=`/${(0,o.default)(e.media_folder,"/")}`;"public_folder"in e||(e.public_folder=t),"encoding"in e.slug||(e.slug.encoding="unicode"),"clean_accents"in e.slug||(e.slug.clean_accents=!1),"sanitize_replacement"in e.slug||(e.slug.sanitize_replacement="-");const n=e[m.I18N];n&&(n.default_locale=n.default_locale||n.locales[0]),M(n);const r=(0,h.resolveBackend)(e);for(const t of e.collections){"publish"in t||(t.publish=!0);let a=t[m.I18N];n&&a?(a=P(a,n),t[m.I18N]=a):(a=void 0,delete t[m.I18N]),t.fields&&(t.fields=R(t.fields,Boolean(a)));const{folder:l,files:u,view_filters:c,view_groups:d,meta:p}=t;if(l&&(t.type=g.FOLDER,t.path&&!t.media_folder&&(t.media_folder=""),"media_folder"in t&&!("public_folder"in t)&&(t.public_folder=t.media_folder),t.fields&&(t.fields=C(t.fields,S)),t.folder=(0,i.default)(l,"/"),p&&p.path)){const e=w({name:"path",meta:!0,required:!0},p.path);t.fields=[e,...t.fields||[]]}if(u){t.type=g.FILES,D(a),delete t.nested,delete t.meta;for(const e of u){e.file=(0,o.default)(e.file,"/"),"media_folder"in e&&!("public_folder"in e)&&(e.public_folder=e.media_folder),e.fields&&(e.fields=C(e.fields,S));let t=e[m.I18N];t&&a?(t=P(t,a),e[m.I18N]=t):(t=void 0,delete e[m.I18N]),D(t),e.fields&&(e.fields=R(e.fields,Boolean(t)))}}t.sortable_fields||(t.sortable_fields=(0,f.selectDefaultSortableFields)((0,s.fromJS)(t),r,I(e,t))),t.view_filters=(c||[]).map((e=>w(w({},e),{},{id:`${e.field}__${e.pattern}`}))),t.view_groups=(d||[]).map((e=>w(w({},e),{},{id:`${e.field}__${e.pattern}`}))),e.editor&&!t.editor&&(t.editor={preview:e.editor.preview})}}))}function N(e){const t=a.default.parse(e,{maxAliasCount:-1,prettyErrors:!0,merge:!0});if("undefined"!=typeof window&&"string"==typeof window.CMS_ENV&&t[window.CMS_ENV]){const e=Object.keys(t[window.CMS_ENV]);for(const n of e)t[n]=t[window.CMS_ENV][n]}return t}function F(e){return{type:x,payload:e}}function B(){return{type:_}}function z(e){return{type:k,error:"Error loading config",payload:e}}async function U(e){if(!["localhost","127.0.0.1",..."boolean"==typeof e?[]:(null==e?void 0:e.allowed_hosts)||[]].includes(location.hostname)||!e)return{};const t="http://localhost:8081/api/v1",n=!0===e?t:e.url||t.replace("localhost",location.hostname);try{console.log(`Looking for Decap CMS Proxy Server at '${n}'`);const e=await fetch(`${n}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"info"})}),{repo:t,publish_modes:r,type:i}=await e.json();return"string"==typeof t&&Array.isArray(r)&&"string"==typeof i?(console.log(`Detected Decap CMS Proxy Server at '${n}' with repo: '${t}'`),{proxyUrl:n,publish_modes:r,type:i}):(console.log(`Decap CMS Proxy Server not detected at '${n}'`),{})}catch{return console.log(`Decap CMS Proxy Server not detected at '${n}'`),{}}}async function q(e){if(!e.local_backend)return e;const{proxyUrl:t,publish_modes:n,type:r}=await U(e.local_backend);return t?(0,u.produce)(e,(e=>{e.backend.name="proxy",e.backend.proxy_url=t,e.publish_mode&&(e.publish_mode=function(e,t,n){if(e.publish_mode&&t&&!t.includes(e.publish_mode)){const r=t[0];return console.log(`'${e.publish_mode}' is not supported by '${n}' backend, switching to '${r}'`),r}return e.publish_mode}(e,n,r))})):e}},66145:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEPLOY_PREVIEW_SUCCESS=t.DEPLOY_PREVIEW_REQUEST=t.DEPLOY_PREVIEW_FAILURE=void 0,t.loadDeployPreview=function(e,t,n,l,c){return async(d,f)=>{const p=f(),h=(0,r.currentBackend)(p.config),m=e.get("name"),g=(0,i.selectDeployPreview)(p,m,t);if(!g||!g.isFetching){d(function(e,t){return{type:a,payload:{collection:e,slug:t}}}(m,t));try{const r=l?h.getDeploy(e,t,n):await h.getDeployPreview(e,t,n,c);return d(r?function(e,t,n){const{url:r,status:i}=n;return{type:s,payload:{collection:e,slug:t,url:r,status:i}}}(m,t,r):u(m,t))}catch(e){console.error(e),d((0,o.addNotification)({message:{details:e.message,key:"ui.toast.onFailToLoadDeployPreview"},type:"error",dismissAfter:8e3})),d(u(m,t))}}}};var r=n(2241),i=n(36642),o=n(5690);const a=t.DEPLOY_PREVIEW_REQUEST="DEPLOY_PREVIEW_REQUEST",s=t.DEPLOY_PREVIEW_SUCCESS="DEPLOY_PREVIEW_SUCCESS",l=t.DEPLOY_PREVIEW_FAILURE="DEPLOY_PREVIEW_FAILURE";function u(e,t){return{type:l,payload:{collection:e,slug:t}}}},91358:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UNPUBLISHED_ENTRY_SUCCESS=t.UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS=t.UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST=t.UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE=t.UNPUBLISHED_ENTRY_REQUEST=t.UNPUBLISHED_ENTRY_REDIRECT=t.UNPUBLISHED_ENTRY_PUBLISH_SUCCESS=t.UNPUBLISHED_ENTRY_PUBLISH_REQUEST=t.UNPUBLISHED_ENTRY_PUBLISH_FAILURE=t.UNPUBLISHED_ENTRY_PERSIST_SUCCESS=t.UNPUBLISHED_ENTRY_PERSIST_REQUEST=t.UNPUBLISHED_ENTRY_PERSIST_FAILURE=t.UNPUBLISHED_ENTRY_DELETE_SUCCESS=t.UNPUBLISHED_ENTRY_DELETE_REQUEST=t.UNPUBLISHED_ENTRY_DELETE_FAILURE=t.UNPUBLISHED_ENTRIES_SUCCESS=t.UNPUBLISHED_ENTRIES_REQUEST=t.UNPUBLISHED_ENTRIES_FAILURE=void 0,t.deleteUnpublishedEntry=function(e,t){return(n,r)=>{const i=r(),o=(0,a.currentBackend)(i.config);return n(function(e,t){return{type:M,payload:{collection:e,slug:t}}}(e,t)),o.deleteUnpublishedEntry(e,t).then((()=>{n((0,g.addNotification)({message:{key:"ui.toast.onDeleteUnpublishedChanges"},type:"success",dismissAfter:4e3})),n(function(e,t){return{type:I,payload:{collection:e,slug:t}}}(e,t))})).catch((r=>{n((0,g.addNotification)({message:{key:"ui.toast.onDeleteUnpublishedChanges",details:r},type:"error",dismissAfter:8e3})),n(function(e,t){return{type:L,payload:{collection:e,slug:t}}}(e,t))}))}},t.loadUnpublishedEntries=U,t.loadUnpublishedEntry=z,t.persistUnpublishedEntry=function(e,t){return async(n,i)=>{const o=i(),l=o.entryDraft,u=l.get("fieldsErrors"),d=(0,s.selectUnpublishedSlugs)(o,e.get("name")),f=(0,s.selectPublishedSlugs)(o,e.get("name")).concat(d);if(!(0,r.default)(o.editorialWorkflow.toJS(),"pages.ids",!1)&&n(U(o.collections)),!u.isEmpty())return u.some((e=>e.some((e=>e.type&&e.type===h.default.PRESENCE))))&&n((0,g.addNotification)({message:{key:"ui.toast.missingRequiredField"},type:"error",dismissAfter:8e3})),Promise.reject();const p=(0,a.currentBackend)(o.config),v=l.get("entry"),y=(0,c.getMediaAssets)({entry:v}),b=(0,c.getSerializedEntry)(e,v),w=l.set("entry",b);n(N(e,v.get("slug")));const _=t?p.persistUnpublishedEntry:p.persistEntry;try{const t=await _.call(p,{config:o.config,collection:e,entryDraft:w,assetProxies:y,usedSlugs:f});n((0,g.addNotification)({message:{key:"ui.toast.entrySaved"},type:"success",dismissAfter:4e3})),n(F(e,b)),v.get("slug")!==t&&(await n(z(e,t)),(0,m.navigateToEntry)(e.get("name"),t))}catch(t){return n((0,g.addNotification)({message:{key:"ui.toast.onFailToPersist",details:t},type:"error",dismissAfter:8e3})),Promise.reject(n(B(t,e,v.get("slug"))))}}},t.publishUnpublishedEntry=function(e,t){return async(n,r)=>{const i=r(),o=i.collections,u=(0,a.currentBackend)(i.config),d=(0,s.selectUnpublishedEntry)(i,e,t);n(function(e,t){return{type:P,payload:{collection:e,slug:t}}}(e,t));try{await u.publishUnpublishedEntry(d),n((0,p.loadMedia)()),n((0,g.addNotification)({message:{key:"ui.toast.entryPublished"},type:"success",dismissAfter:4e3})),n(function(e,t){return{type:R,payload:{collection:e,slug:t}}}(e,t));const r=o.get(e);if(!r.has("nested"))return n((0,c.loadEntry)(r,t));{n((0,c.loadEntries)(r));const e=(0,a.slugFromCustomPath)(r,d.get("path"));(0,c.loadEntry)(r,e),t!==e&&(0,l.selectEditingDraft)(i.entryDraft)&&(0,m.navigateToEntry)(r.get("name"),e)}}catch(r){n((0,g.addNotification)({message:{key:"ui.toast.onFailToPublishEntry",details:r},type:"error",dismissAfter:8e3})),n(function(e,t){return{type:D,payload:{collection:e,slug:t}}}(e,t))}}},t.unpublishPublishedEntry=function(e,t){return(n,r)=>{const o=r(),l=(0,a.currentBackend)(o.config),d=(0,s.selectEntry)(o,e.get("name"),t),f=(0,i.Map)().set("entry",d);return n(N(e,t)),l.deleteEntry(o,e,t).then((()=>l.persistEntry({config:o.config,collection:e,entryDraft:f,assetProxies:[],usedSlugs:(0,i.List)(),status:u.status.get("PENDING_PUBLISH")}))).then((()=>{n(F(e,d)),n((0,c.entryDeleted)(e,t)),n(z(e,t)),n((0,g.addNotification)({message:{key:"ui.toast.entryUnpublished"},type:"success",dismissAfter:4e3}))})).catch((t=>{n((0,g.addNotification)({message:{key:"ui.toast.onFailToUnpublishEntry",details:t},type:"error",dismissAfter:8e3})),n(B(t,e,d.get("slug")))}))}},t.updateUnpublishedEntryStatus=function(e,t,n,r){return(i,o)=>{if(n===r)return;const s=o(),l=(0,a.currentBackend)(s.config);i(function(e,t){return{type:A,payload:{collection:e,slug:t}}}(e,t)),l.updateUnpublishedEntryStatus(e,t,r).then((()=>{i((0,g.addNotification)({message:{key:"ui.toast.entryUpdated"},type:"success",dismissAfter:4e3})),i(function(e,t,n){return{type:T,payload:{collection:e,slug:t,newStatus:n}}}(e,t,r))})).catch((n=>{i((0,g.addNotification)({message:{key:"ui.toast.onFailToUpdateStatus",details:n},type:"error",dismissAfter:8e3})),i(function(e,t){return{type:O,payload:{collection:e,slug:t}}}(e,t))}))}};var r=v(n(72579)),i=n(46670),o=n(33806),a=n(2241),s=n(36642),l=n(58308),u=n(61928),c=n(50236),d=n(25606),f=n(71033),p=n(68104),h=v(n(1757)),m=n(79278),g=n(5690);function v(e){return e&&e.__esModule?e:{default:e}}const y=t.UNPUBLISHED_ENTRY_REQUEST="UNPUBLISHED_ENTRY_REQUEST",b=t.UNPUBLISHED_ENTRY_SUCCESS="UNPUBLISHED_ENTRY_SUCCESS",w=t.UNPUBLISHED_ENTRY_REDIRECT="UNPUBLISHED_ENTRY_REDIRECT",_=t.UNPUBLISHED_ENTRIES_REQUEST="UNPUBLISHED_ENTRIES_REQUEST",x=t.UNPUBLISHED_ENTRIES_SUCCESS="UNPUBLISHED_ENTRIES_SUCCESS",k=t.UNPUBLISHED_ENTRIES_FAILURE="UNPUBLISHED_ENTRIES_FAILURE",E=t.UNPUBLISHED_ENTRY_PERSIST_REQUEST="UNPUBLISHED_ENTRY_PERSIST_REQUEST",C=t.UNPUBLISHED_ENTRY_PERSIST_SUCCESS="UNPUBLISHED_ENTRY_PERSIST_SUCCESS",S=t.UNPUBLISHED_ENTRY_PERSIST_FAILURE="UNPUBLISHED_ENTRY_PERSIST_FAILURE",A=t.UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST="UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST",T=t.UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS="UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS",O=t.UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE="UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE",P=t.UNPUBLISHED_ENTRY_PUBLISH_REQUEST="UNPUBLISHED_ENTRY_PUBLISH_REQUEST",R=t.UNPUBLISHED_ENTRY_PUBLISH_SUCCESS="UNPUBLISHED_ENTRY_PUBLISH_SUCCESS",D=t.UNPUBLISHED_ENTRY_PUBLISH_FAILURE="UNPUBLISHED_ENTRY_PUBLISH_FAILURE",M=t.UNPUBLISHED_ENTRY_DELETE_REQUEST="UNPUBLISHED_ENTRY_DELETE_REQUEST",I=t.UNPUBLISHED_ENTRY_DELETE_SUCCESS="UNPUBLISHED_ENTRY_DELETE_SUCCESS",L=t.UNPUBLISHED_ENTRY_DELETE_FAILURE="UNPUBLISHED_ENTRY_DELETE_FAILURE";function j(e,t){return{type:x,payload:{entries:e,pages:t}}}function N(e,t){return{type:E,payload:{collection:e.get("name"),slug:t}}}function F(e,t){return{type:C,payload:{collection:e.get("name"),entry:t}}}function B(e,t,n){return{type:S,payload:{error:e,collection:t.get("name"),slug:n},error:e}}function z(e,t){return async(n,i)=>{const s=i(),l=(0,a.currentBackend)(s.config);if(!(0,r.default)(s.editorialWorkflow.toJS(),"pages.ids",!1))try{const{entries:e,pagination:t}=await l.unpublishedEntries(s.collections);n(j(e,t))}catch(e){}n(function(e,t){return{type:y,payload:{collection:e.get("name"),slug:t}}}(e,t));try{const r=await l.unpublishedEntry(s,e,t),i=await Promise.all(r.mediaFiles.filter((e=>e.draft)).map((({url:e,file:t,path:n})=>(0,d.createAssetProxy)({path:n,url:e,file:t}))));n((0,f.addAssets)(i)),n(function(e,t){return{type:b,payload:{collection:e.get("name"),entry:t}}}(e,r)),n((0,c.createDraftFromEntry)(r))}catch(r){r.name===o.EDITORIAL_WORKFLOW_ERROR&&r.notUnderEditorialWorkflow?(n(function(e,t){return{type:w,payload:{collection:e.get("name"),slug:t}}}(e,t)),n((0,c.loadEntry)(e,t))):n((0,g.addNotification)({message:{key:"ui.toast.onFailToLoadEntries",details:r},type:"error",dismissAfter:8e3}))}}}function U(e){return(t,n)=>{const i=n(),o=(0,a.currentBackend)(i.config),s=(0,r.default)(i.editorialWorkflow.toJS(),"pages.ids",!1);i.config.publish_mode!==u.EDITORIAL_WORKFLOW||s||(t({type:_}),o.unpublishedEntries(e).then((e=>t(j(e.entries,e.pagination)))).catch((e=>{t((0,g.addNotification)({message:{key:"ui.toast.onFailToLoadEntries",details:e},type:"error",dismissAfter:8e3})),t(function(e){return{type:k,error:"Failed to load entries",payload:e}}(e)),Promise.reject(e)})))}}},50236:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SORT_ENTRIES_SUCCESS=t.SORT_ENTRIES_REQUEST=t.SORT_ENTRIES_FAILURE=t.REMOVE_DRAFT_ENTRY_MEDIA_FILE=t.GROUP_ENTRIES_SUCCESS=t.GROUP_ENTRIES_REQUEST=t.GROUP_ENTRIES_FAILURE=t.FILTER_ENTRIES_SUCCESS=t.FILTER_ENTRIES_REQUEST=t.FILTER_ENTRIES_FAILURE=t.ENTRY_SUCCESS=t.ENTRY_REQUEST=t.ENTRY_PERSIST_SUCCESS=t.ENTRY_PERSIST_REQUEST=t.ENTRY_PERSIST_FAILURE=t.ENTRY_FAILURE=t.ENTRY_DELETE_SUCCESS=t.ENTRY_DELETE_REQUEST=t.ENTRY_DELETE_FAILURE=t.ENTRIES_SUCCESS=t.ENTRIES_REQUEST=t.ENTRIES_FAILURE=t.DRAFT_VALIDATION_ERRORS=t.DRAFT_LOCAL_BACKUP_RETRIEVED=t.DRAFT_DISCARD=t.DRAFT_CREATE_FROM_LOCAL_BACKUP=t.DRAFT_CREATE_FROM_ENTRY=t.DRAFT_CREATE_EMPTY=t.DRAFT_CREATE_DUPLICATE_FROM_ENTRY=t.DRAFT_CLEAR_ERRORS=t.DRAFT_CHANGE_FIELD=t.CHANGE_VIEW_STYLE=t.ADD_DRAFT_ENTRY_MEDIA_FILE=void 0,t.addDraftEntryMediaFile=function(e){return{type:ie,payload:e}},t.changeDraftField=function({field:e,value:t,metadata:n,entries:r,i18n:i}){return{type:V,payload:{field:e,value:t,metadata:n,entries:r,i18n:i}}},t.changeDraftFieldValidation=function(e,t){return{type:G,payload:{uniquefieldId:e,errors:t}}},t.changeViewStyle=function(e){return{type:ae,payload:{style:e}}},t.clearFieldErrors=function(){return{type:K}},t.createDraftDuplicateFromEntry=function(e){return t=>{t((0,y.waitUntil)({predicate:({type:e})=>e===$,run:()=>t(ke(e))}))}},t.createDraftFromEntry=xe,t.createEmptyDraft=function(e,t){return async(n,r)=>{new URLSearchParams(t).forEach(((t,n)=>{e=(0,s.updateFieldByKey)(e,n,(e=>{return e.set("default",!!["true","True","TRUE"].includes(n=t)||!["false","False","FALSE"].includes(n)&&function(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}(n));var n}))}));const o=e.get("fields",(0,i.List)()),a=function(e){return e.filter((e=>!e.get("meta"))).toList()}(o),l=Pe(a),u=function(e){return e.filter((e=>!0===e.get("meta"))).toList()}(o),d=Pe(u),p=r(),h=(0,c.currentBackend)(p.config);e.has("media_folder")||await(0,v.waitForMediaLibraryToLoad)(n,r());const m=function(e,t){if(!(0,k.hasI18n)(e))return{};const n=Pe(t,(function(e){return e.get(k.I18N)!==k.I18N_FIELD.DUPLICATE&&e.get(k.I18N)!==k.I18N_FIELD.TRANSLATE}));return(0,k.duplicateDefaultI18nFields)(e,n)}(e,a);let g=(0,f.createEntry)(e.get("name"),"","",{data:l,i18n:m,mediaFiles:[],meta:d});g=await h.processEntry(p,e,g),n(_e(g))}},t.createEmptyDraftData=Pe,t.deleteEntry=function(e,t){return(n,r)=>{const i=r(),o=(0,c.currentBackend)(i.config);return n(ye(e,t)),o.deleteEntry(i,e,t).then((()=>n(be(e,t)))).catch((r=>(n((0,E.addNotification)({message:{details:r,key:"ui.toast.onFailToDelete"},type:"error",dismissAfter:8e3})),console.error(r),Promise.reject(n(we(e,t,r))))))}},t.deleteLocalBackup=function(e,t){return(n,r)=>{const i=r();return(0,c.currentBackend)(i.config).deleteLocalDraftBackup(e,t)}},t.discardDraft=function(){return{type:H}},t.draftDuplicateEntry=ke,t.emptyDraftCreated=_e,t.entriesFailed=fe,t.entriesLoaded=de,t.entriesLoading=ce,t.entryDeleteFail=we,t.entryDeleted=be,t.entryDeleting=ye,t.entryLoadError=ue,t.entryLoaded=le,t.entryLoading=se,t.entryPersistFail=ve,t.entryPersisted=ge,t.entryPersisting=me,t.filterByField=function(e,t){return async(n,r)=>{const i=r(),o=(0,b.selectIsFetching)(i.entries,e.get("name"));if(n({type:N,payload:{collection:e.get("name"),filter:t}}),!o)try{const r=await pe(i,e);n({type:F,payload:{collection:e.get("name"),filter:t,entries:r}})}catch(r){n({type:B,payload:{collection:e.get("name"),filter:t,error:r}})}}},t.getAllEntries=pe,t.getMediaAssets=Re,t.getSerializedEntry=De,t.groupByField=function(e,t){return async(n,r)=>{const i=r(),o=(0,b.selectIsFetching)(i.entries,e.get("name"));if(n({type:z,payload:{collection:e.get("name"),group:t}}),!o)try{const r=await pe(i,e);n({type:U,payload:{collection:e.get("name"),group:t,entries:r}})}catch(r){n({type:q,payload:{collection:e.get("name"),group:t,error:r}})}}},t.loadEntries=Oe,t.loadEntry=Ce,t.loadLocalBackup=function(){return{type:Y}},t.localBackupRetrieved=Ee,t.persistEntry=function(e){return async(t,n)=>{const r=n(),i=r.entryDraft,o=i.get("fieldsErrors"),a=(0,l.selectPublishedSlugs)(r,e.get("name"));if(!o.isEmpty())return o.some((e=>e.some((e=>e.type&&e.type===h.default.PRESENCE))))&&t((0,E.addNotification)({message:{key:"ui.toast.missingRequiredField"},type:"error",dismissAfter:8e3})),Promise.reject();const s=(0,c.currentBackend)(r.config),u=i.get("entry"),d=Re({entry:u}),f=De(e,u),p=i.set("entry",f);return t(me(e,f)),s.persistEntry({config:r.config,collection:e,entryDraft:p,assetProxies:d,usedSlugs:a}).then((async n=>{t((0,E.addNotification)({message:{key:"ui.toast.entrySaved"},type:"success",dismissAfter:4e3})),d.length>0&&await t((0,v.loadMedia)()),t(ge(e,f,n)),e.has("nested")&&await t(Oe(e)),u.get("slug")!==n&&(await t(Ce(e,n)),(0,_.navigateToEntry)(e.get("name"),n))})).catch((n=>(console.error(n),t((0,E.addNotification)({message:{details:n,key:"ui.toast.onFailToPersist"},type:"error",dismissAfter:8e3})),Promise.reject(t(ve(e,f,n))))))}},t.persistLocalBackup=function(e,t){return(n,r)=>{const i=r();return(0,c.currentBackend)(i.config).persistLocalDraftBackup(e,t)}},t.removeDraftEntryMediaFile=function({id:e}){return{type:oe,payload:{id:e}}},t.retrieveLocalBackup=function(e,t){return async(n,r)=>{const o=r(),a=(0,c.currentBackend)(o.config),{entry:s}=await a.getLocalDraftBackup(e,t);if(s){const t=s.mediaFiles||[],o=await Promise.all(t.map((t=>t.file||t.url?(0,p.createAssetProxy)({path:t.path,file:t.file,url:t.url,field:t.field}):(0,m.getAsset)({collection:e,entry:(0,i.fromJS)(s),path:t.path,field:t.field})(n,r))));return n((0,m.addAssets)(o)),n(Ee(s))}}},t.sortByField=he,t.traverseCollectionCursor=function(e,t){return async(n,r)=>{const i=r(),o=e.get("name");if(i.entries.getIn(["pages",`${o}`,"isFetching"]))return;const s=(0,c.currentBackend)(i.config),{action:l,append:u}=Ae.has(t)?Ae.get(t).toJS():{action:t,append:!1},d=(0,a.selectCollectionEntriesCursor)(i.cursors,e.get("name"));if(d.meta.get("usingOldPaginationAPI",!1))return n(Oe(e,d.data.get("nextPage")));try{var f;n(ce(e));const{entries:t,cursor:r}=await function(e,t,n){if(!t.actions.has(n))throw new Error(`The current cursor does not support the pagination action "${n}".`);return e.traverseCursor(t,n)}(s,d,l),i=null===(f=r.meta)||void 0===f?void 0:f.get("page");return n(de(e,t,i,Te(r),u))}catch(t){return console.error(t),n((0,E.addNotification)({message:{details:t,key:"ui.toast.onFailToLoadEntries"},type:"error",dismissAfter:8e3})),Promise.reject(n(fe(e,t)))}}},t.tryLoadEntry=Se,t.validateMetaField=function(e,t,n,r,o){if(n.get("meta")&&"path"===n.get("name")){var a;if(!r)return Me(r,"invalidPath",o);const n=r.split("/").map((0,x.getProcessSegment)(e.config.slug)).join("/");if(r!==n)return Me(r,"invalidPath",o);const s=(0,w.selectCustomPath)(t,(0,i.fromJS)({entry:{meta:{path:r}}})),l=s?(0,b.selectEntryByPath)(e.entries,t.get("name"),s):void 0,u=null==l?void 0:l.get("path"),c=null===(a=e.entryDraft)||void 0===a?void 0:a.getIn(["entry","path"]);if(u&&u!==c)return Me(r,"pathExists",o)}return{error:!1}};var r=C(n(18149)),i=n(46670),o=n(33806),a=n(63647),s=n(45624),l=n(36642),u=n(766),c=n(2241),d=n(33188),f=n(15583),p=n(25606),h=C(n(1757)),m=n(71033),g=n(67964),v=n(68104),y=n(80110),b=n(58308),w=n(51748),_=n(79278),x=n(59311),k=n(13943),E=n(5690);function C(e){return e&&e.__esModule?e:{default:e}}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t{const o=i(),a=(0,b.selectIsFetching)(o.entries,e.get("name"));if(r({type:I,payload:{collection:e.get("name"),key:t,direction:n}}),!a)try{const i=await pe(o,e);r({type:L,payload:{collection:e.get("name"),key:t,direction:n,entries:i}})}catch(i){r({type:j,payload:{collection:e.get("name"),key:t,direction:n,error:i}})}}}function me(e,t){return{type:Q,payload:{collectionName:e.get("name"),entrySlug:t.get("slug")}}}function ge(e,t,n){return{type:J,payload:{collectionName:e.get("name"),entrySlug:t.get("slug"),slug:n}}}function ve(e,t,n){return{type:ee,error:"Failed to persist entry",payload:{collectionName:e.get("name"),entrySlug:t.get("slug"),error:n.toString()}}}function ye(e,t){return{type:te,payload:{collectionName:e.get("name"),entrySlug:t}}}function be(e,t){return{type:ne,payload:{collectionName:e.get("name"),entrySlug:t}}}function we(e,t,n){return{type:re,payload:{collectionName:e.get("name"),entrySlug:t,error:n.toString()}}}function _e(e){return{type:$,payload:e}}function xe(e){return{type:W,payload:{entry:e}}}function ke(e){return{type:X,payload:(0,f.createEntry)(e.get("collection"),"","",{data:e.get("data"),mediaFiles:e.get("mediaFiles").toJS()})}}function Ee(e){return{type:Z,payload:{entry:e}}}function Ce(e,t){return async(n,r)=>{await(0,v.waitForMediaLibraryToLoad)(n,r()),n(se(e,t));try{const i=await Se(r(),e,t);n(le(e,i)),n(xe(i))}catch(r){n((0,E.addNotification)({message:{details:r.message,key:"ui.toast.onFailToLoadEntries"},type:"error",dismissAfter:8e3})),n(ue(r,e,t))}}}async function Se(e,t,n){const r=(0,c.currentBackend)(e.config);return await r.getEntry(e,t,n)}const Ae=(0,i.fromJS)({append_next:{action:"next",append:!0}});function Te(e){return o.Cursor.create(e).updateStore("actions",(e=>e.union(Ae.filter((t=>e.has(t.get("action")))).keySeq())))}function Oe(e,t=0){return async(n,r)=>{if(e.get("isFetching"))return;const i=r(),a=(0,b.selectEntriesSortFields)(i.entries,e.get("name"));if(a&&a.length>0){const t=a[0];return n(he(e,t.get("key"),t.get("direction")))}const s=(0,c.currentBackend)(i.config),d=(0,l.selectIntegration)(i,e.get("name"),"listEntries"),f=d?(0,u.getIntegrationProvider)(i.integrations,s.getToken,d):s,p=!!(t&&!isNaN(t)&&t>0);n(ce(e));try{const r=e.has("nested")||(0,k.hasI18n)(e);let i=await(r?f.listAllEntries(e).then((e=>({entries:e}))):f.listEntries(e,t));i=A(A({},i),{},{cursor:d?o.Cursor.create({actions:["next"],meta:{usingOldPaginationAPI:!0},data:{nextPage:t+1}}):o.Cursor.create(i.cursor)}),n(de(e,i.cursor.meta.get("usingOldPaginationAPI")?i.entries.reverse():i.entries,i.pagination,Te(i.cursor),p))}catch(t){return n((0,E.addNotification)({message:{details:t,key:"ui.toast.onFailToLoadEntries"},type:"error",dismissAfter:8e3})),Promise.reject(n(fe(e,t)))}}}function Pe(e,t=(()=>!1)){return e.reduce(((e,n)=>{const o=e,a=n;if(t(a))return o;const s=a.get("field")||a.get("fields"),l="list"==a.get("widget"),u=a.get("name"),c=a.get("default",null);if(i.List.isList(s)||i.Map.isMap(s)){if(l&&i.List.isList(c))o[u]=c;else{const e=i.List.isList(s)?s:(0,i.List)([s]),n=l?[Pe(e,t)]:Pe(e,t);d=n,[[{}],{}].some((e=>(0,r.default)(d,e)))||(o[u]=n)}return o}var d;return null!==c&&(o[u]=c),o}),{})}function Re({entry:e}){return e.get("mediaFiles").toArray().filter((e=>e.get("draft"))).map((e=>(0,p.createAssetProxy)({path:e.get("path"),file:e.get("file"),url:e.get("url"),field:e.get("field")})))}function De(e,t){const n=(0,s.selectFields)(e,t.get("slug"));function r(e){return(0,d.serializeValues)(e,n)}const i=r(t.get("data"));let o=t.set("data",i);return(0,k.hasI18n)(e)&&(o=(0,k.serializeI18n)(e,o,r)),o}function Me(e,t,n){return{error:{type:h.default.CUSTOM,message:n(`editor.editorControlPane.widget.${t}`,{path:e})}}}},71033:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.REMOVE_ASSET=t.LOAD_ASSET_SUCCESS=t.LOAD_ASSET_REQUEST=t.LOAD_ASSET_FAILURE=t.ADD_ASSETS=t.ADD_ASSET=void 0,t.addAsset=h,t.addAssets=function(e){return{type:l,payload:e}},t.boundGetAsset=function(e,t,n){return function(r,i){return e(w({collection:t,entry:n,path:r,field:i}))}},t.getAsset=w,t.loadAsset=y,t.loadAssetFailure=v,t.loadAssetRequest=m,t.loadAssetSuccess=g,t.removeAsset=function(e){return{type:c,payload:e}};var r=n(33806),i=n(25606),o=n(58308),a=n(90694),s=n(68104);const l=t.ADD_ASSETS="ADD_ASSETS",u=t.ADD_ASSET="ADD_ASSET",c=t.REMOVE_ASSET="REMOVE_ASSET",d=t.LOAD_ASSET_REQUEST="LOAD_ASSET_REQUEST",f=t.LOAD_ASSET_SUCCESS="LOAD_ASSET_SUCCESS",p=t.LOAD_ASSET_FAILURE="LOAD_ASSET_FAILURE";function h(e){return{type:u,payload:e}}function m(e){return{type:d,payload:{path:e}}}function g(e){return{type:f,payload:{path:e}}}function v(e,t){return{type:p,payload:{path:e,error:t}}}function y(e){return async(t,n)=>{try{t(m(e)),await(0,s.waitForMediaLibraryToLoad)(t,n());const r=(0,a.selectMediaFileByPath)(n(),e);if(r){const o=await(0,s.getMediaDisplayURL)(t,n(),r);t(h((0,i.createAssetProxy)({path:e,url:o||e})))}else{const{url:r}=await(0,s.getMediaFile)(n(),e);t(h((0,i.createAssetProxy)({path:e,url:r})))}t(g(e))}catch(n){t(v(e,n))}}}const b=(0,i.createAssetProxy)({path:"empty.svg",file:new File([''],"empty.svg",{type:"image/svg+xml"})});function w({collection:e,entry:t,path:n,field:a}){return(s,l)=>{if(!n)return b;const u=l(),c=(0,o.selectMediaFilePath)(u.config,e,t,n,a);let{asset:d,isLoading:f,error:p}=u.medias[c]||{};return f?b:d||((0,r.isAbsolutePath)(c)||p?(d=(0,i.createAssetProxy)({path:c,url:n}),s(h(d))):(s(y(c)),d=b),d)}}},68104:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MEDIA_REMOVE_INSERTED=t.MEDIA_PERSIST_SUCCESS=t.MEDIA_PERSIST_REQUEST=t.MEDIA_PERSIST_FAILURE=t.MEDIA_LOAD_SUCCESS=t.MEDIA_LOAD_REQUEST=t.MEDIA_LOAD_FAILURE=t.MEDIA_LIBRARY_OPEN=t.MEDIA_LIBRARY_CREATE=t.MEDIA_LIBRARY_CLOSE=t.MEDIA_INSERT=t.MEDIA_DISPLAY_URL_SUCCESS=t.MEDIA_DISPLAY_URL_REQUEST=t.MEDIA_DISPLAY_URL_FAILURE=t.MEDIA_DELETE_SUCCESS=t.MEDIA_DELETE_REQUEST=t.MEDIA_DELETE_FAILURE=void 0,t.clearMediaControl=function(e){return(t,n)=>{const r=n().mediaLibrary.get("externalLibrary");r&&r.onClearControl({id:e})}},t.closeMediaLibrary=function(){return(e,t)=>{const n=t().mediaLibrary.get("externalLibrary");n&&n.hide(),e({type:b})}},t.createMediaLibrary=function(e){const t={show:e.show||(()=>{}),hide:e.hide||(()=>{}),onClearControl:e.onClearControl||(()=>{}),onRemoveControl:e.onRemoveControl||(()=>{}),enableStandalone:e.enableStandalone||(()=>{})};return{type:w,payload:t}},t.deleteMedia=j,t.getMediaDisplayURL=async function(e,t,n){const r=(0,u.selectMediaDisplayURL)(t,n.id);let i;if(r.get("url"))i=r.get("url");else if(r.get("err"))i=null;else{var o;const t=n.id,a=(0,h.waitUntilWithTimeout)(e,(e=>({predicate:({type:e,payload:n})=>(e===M||e===I)&&n.key===t,run:(t,n,r)=>e(r.payload.url)})));r.get("isFetching")||e(N(n)),i=null!==(o=await a)&&void 0!==o?o:null}return i},t.getMediaFile=async function(e,t){const n=(0,o.currentBackend)(e.config),{url:r}=await n.getMediaFile(t);return{url:r}},t.insertMedia=function(e,t){return(n,r)=>{const i=r(),o=i.config,a=i.entryDraft.get("entry"),s=i.entryDraft.getIn(["entry","collection"]),u=i.collections.get(s);n(function(e){return{type:_,payload:{mediaPath:e}}}(e=Array.isArray(e)?e.map((e=>(0,l.selectMediaFilePublicPath)(o,u,e,a,t))):(0,l.selectMediaFilePublicPath)(o,u,e,a,t)))}},t.loadMedia=function(e={}){const{delay:t=0,query:n="",page:r=1,privateUpload:i}=e;return async(e,a)=>{const l=a(),u=(0,o.currentBackend)(l.config),d=(0,s.selectIntegration)(l,null,"assetStore");if(d){const t=(0,c.getIntegrationProvider)(l.integrations,u.getToken,d);e(F(r));try{const o=await t.retrieve(n,r,i);return e(B(o,{page:r,canPaginate:!0,dynamicSearch:!0,dynamicSearchQuery:n,privateUpload:i}))}catch(t){return e(z({privateUpload:i}))}}function f(){return u.getMedia().then((t=>e(B(t)))).catch((t=>{console.error(t),404===t.status?(console.log("This 404 was expected and handled appropriately."),e(B([]))):e(z())}))}return e(F(r)),t>0?new Promise((e=>{setTimeout((()=>e(f())),t)})):f()}},t.loadMediaDisplayURL=N,t.mediaDeleteFailed=V,t.mediaDeleted=H,t.mediaDeleting=$,t.mediaDisplayURLFailure=Z,t.mediaDisplayURLRequest=G,t.mediaDisplayURLSuccess=K,t.mediaLoadFailed=z,t.mediaLoaded=B,t.mediaLoading=F,t.mediaPersistFailed=W,t.mediaPersisted=q,t.mediaPersisting=U,t.openMediaLibrary=function(e={}){return(t,n)=>{const i=n().mediaLibrary.get("externalLibrary");if(i){const{controlID:t,value:n,config:o=(0,r.Map)(),allowMultiple:a,forImage:s}=e;i.show({id:t,value:n,config:o.toJS(),allowMultiple:a,imagesOnly:s})}t(function(e){return{type:y,payload:e}}(e))}},t.persistMedia=function(e,t={}){const{privateUpload:n,field:r}=t;return async(t,h)=>{const g=h(),v=(0,o.currentBackend)(g.config),y=(0,s.selectIntegration)(g,null,"assetStore"),b=(0,u.selectMediaFiles)(g,r),w=(0,p.sanitizeSlug)(e.name.toLowerCase(),g.config.slug),_=b.find((e=>e.name.toLowerCase()===w)),x=(0,l.selectEditingDraft)(g.entryDraft);if(!y&&_){if(!window.confirm(`${_.name} already exists. Do you want to replace it?`))return;await t(j(_,{privateUpload:n}))}!y&&x||t(U());try{let o,s;if(y)try{const t=(0,c.getIntegrationProvider)(g.integrations,v.getToken,y),r=await t.upload(e,n);o=(0,a.createAssetProxy)({url:r.asset.url,path:r.asset.url})}catch(t){o=(0,a.createAssetProxy)({file:e,path:w})}else{if(n)throw new Error("The Private Upload option is only available for Asset Store Integration");{const t=g.entryDraft.get("entry"),n=g.collections.get(null==t?void 0:t.get("collection")),i=(0,l.selectMediaFilePath)(g.config,n,t,w,r);o=(0,a.createAssetProxy)({file:e,path:i,field:r})}}if(t((0,d.addAsset)(o)),y)s=L({id:await(0,i.getBlobSHA)(e),file:e,assetProxy:o,draft:!1});else{if(x)return s=L({id:await(0,i.getBlobSHA)(e),file:e,assetProxy:o,draft:x}),t((0,f.addDraftEntryMediaFile)(s));s=await v.persistMedia(g.config,o)}return t(q(s,{privateUpload:n}))}catch(e){return console.error(e),t((0,m.addNotification)({message:`Failed to persist media: ${e}`,type:"error",dismissAfter:8e3})),t(W({privateUpload:n}))}}},t.removeInsertedMedia=function(e){return{type:x,payload:{controlID:e}}},t.removeMediaControl=function(e){return(t,n)=>{const r=n().mediaLibrary.get("externalLibrary");r&&r.onRemoveControl({id:e})}},t.waitForMediaLibraryToLoad=async function(e,t){!1===t.mediaLibrary.get("isLoading")||t.mediaLibrary.get("externalLibrary")||await(0,h.waitUntilWithTimeout)(e,(e=>({predicate:({type:e})=>e===E||e===C,run:()=>e()})))};var r=n(46670),i=n(33806),o=n(2241),a=n(25606),s=n(36642),l=n(58308),u=n(90694),c=n(766),d=n(71033),f=n(50236),p=n(9904),h=n(80110),m=n(5690);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t{const i=r(),a=(0,o.currentBackend)(i.config),u=(0,s.selectIntegration)(i,null,"assetStore");if(u){const r=(0,c.getIntegrationProvider)(i.integrations,a.getToken,u);t($());try{return await r.delete(e.id),t(H(e,{privateUpload:n}))}catch(e){return console.error(e),t((0,m.addNotification)({message:`Failed to delete media: ${e.message}`,type:"error",dismissAfter:8e3})),t(V({privateUpload:n}))}}try{if(e.draft)t((0,d.removeAsset)(e.path)),t((0,f.removeDraftEntryMediaFile)({id:e.id}));else{const n=(0,l.selectEditingDraft)(i.entryDraft);t($()),t((0,d.removeAsset)(e.path)),await a.deleteMedia(i.config,e.path),t(H(e)),n&&t((0,f.removeDraftEntryMediaFile)({id:e.id}))}}catch(e){return console.error(e),t((0,m.addNotification)({message:`Failed to delete media: ${e.message}`,type:"error",dismissAfter:8e3})),t(V())}}}function N(e){return async(t,n)=>{const{displayURL:r,id:i}=e,a=n(),s=(0,u.selectMediaDisplayURL)(a,i);if(!i||!r||s.get("url")||s.get("isFetching")||s.get("err"))return Promise.resolve();if("string"==typeof r)return t(G(i)),void t(K(i,r));try{const e=(0,o.currentBackend)(a.config);t(G(i));const n=await e.getMediaDisplayURL(r);if(!n)throw new Error("No display URL was returned!");t(K(i,n))}catch(e){console.error(e),t(Z(i,e))}}}function F(e){return{type:k,payload:{page:e}}}function B(e,t={}){return{type:E,payload:v({files:e},t)}}function z(e={}){const{privateUpload:t}=e;return{type:C,payload:{privateUpload:t}}}function U(){return{type:S}}function q(e,t={}){const{privateUpload:n}=t;return{type:A,payload:{file:e,privateUpload:n}}}function W(e={}){const{privateUpload:t}=e;return{type:T,payload:{privateUpload:t}}}function $(){return{type:O}}function H(e,t={}){const{privateUpload:n}=t;return{type:P,payload:{file:e,privateUpload:n}}}function V(e={}){const{privateUpload:t}=e;return{type:R,payload:{privateUpload:t}}}function G(e){return{type:D,payload:{key:e}}}function K(e,t){return{type:M,payload:{key:e,url:t}}}function Z(e,t){return{type:I,payload:{key:e,err:t}}}},5690:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NOTIFICATION_SEND=t.NOTIFICATION_DISMISS=t.NOTIFICATIONS_CLEAR=void 0,t.addNotification=function(e){return{type:n,payload:e}},t.clearNotifications=function(){return{type:i}},t.dismissNotification=function(e){return{type:r,id:e}};const n=t.NOTIFICATION_SEND="NOTIFICATION_SEND",r=t.NOTIFICATION_DISMISS="NOTIFICATION_DISMISS",i=t.NOTIFICATIONS_CLEAR="NOTIFICATION_CLEAR"},15207:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SEARCH_ENTRIES_SUCCESS=t.SEARCH_ENTRIES_REQUEST=t.SEARCH_ENTRIES_FAILURE=t.SEARCH_CLEAR=t.QUERY_SUCCESS=t.QUERY_REQUEST=t.QUERY_FAILURE=t.CLEAR_REQUESTS=void 0,t.clearRequests=x,t.clearSearch=function(){return{type:h}},t.query=function(e,t,n,r,i,l){return async(u,c)=>{const d=c(),f=(0,o.currentBackend)(d.config),p=(0,s.selectIntegration)(d,t,"search"),h=d.collections.find((e=>e.get("name")===t));u(x());const m=`${t}-${n.join()}-${r}-${i}-${l}`,g=d.search.requests.find((({id:e})=>e==m)),v=g?g.queryResponse:p?(0,a.getIntegrationProvider)(d.integrations,f.getToken,p).searchBy(n.map((e=>`data.${e}`)),t,r):f.query(h,n,r,i,l);u(b(r,g?void 0:{id:m,expires:new Date((new Date).getTime()+1e4),queryResponse:v}));try{const t=await v;return u(w(e,t.hits))}catch(e){return u(_(e))}}},t.queryFailure=_,t.querySuccess=w,t.querying=b,t.searchEntries=function(e,t,n=0){return async(r,l)=>{const u=l(),{search:c}=u,d=(0,o.currentBackend)(u.config),f=t||u.collections.keySeq().toArray(),p=f.filter((e=>(0,s.selectIntegration)(u,e,"search"))),h=(0,s.selectIntegration)(u,p[0],"search");if(c.isFetching&&c.term===e&&(0,i.default)(f,c.collections)&&(c.page===n||!h))return;r(g(e,f,n));const m=h?(0,a.getIntegrationProvider)(u.integrations,d.getToken,h).search(p,e,n):d.search(u.collections.filter(((e,t)=>-1!==f.indexOf(t))).valueSeq().toArray(),e);try{const e=await m;return r(v(e.entries,e.pagination))}catch(e){return r(y(e))}}},t.searchFailure=y,t.searchSuccess=v,t.searchingEntries=g;var r,i=(r=n(18149))&&r.__esModule?r:{default:r},o=n(2241),a=n(766),s=n(36642);const l=t.SEARCH_ENTRIES_REQUEST="SEARCH_ENTRIES_REQUEST",u=t.SEARCH_ENTRIES_SUCCESS="SEARCH_ENTRIES_SUCCESS",c=t.SEARCH_ENTRIES_FAILURE="SEARCH_ENTRIES_FAILURE",d=t.QUERY_REQUEST="QUERY_REQUEST",f=t.QUERY_SUCCESS="QUERY_SUCCESS",p=t.QUERY_FAILURE="QUERY_FAILURE",h=t.SEARCH_CLEAR="SEARCH_CLEAR",m=t.CLEAR_REQUESTS="CLEAR_REQUESTS";function g(e,t,n){return{type:l,payload:{searchTerm:e,searchCollections:t,page:n}}}function v(e,t){return{type:u,payload:{entries:e,page:t}}}function y(e){return{type:c,payload:{error:e}}}function b(e,t){return{type:d,payload:{searchTerm:e,request:t}}}function w(e,t){return{type:f,payload:{namespace:e,hits:t}}}function _(e){return{type:p,payload:{error:e}}}function x(){return{type:m}}},9687:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STATUS_SUCCESS=t.STATUS_REQUEST=t.STATUS_FAILURE=void 0,t.checkBackendStatus=function(){return async(e,t)=>{try{const n=t();if(n.status.isFetching)return;e(l());const o=(0,r.currentBackend)(n.config),a=await o.status(),s="ui.toast.onBackendDown",c=n.notifications.notifications.filter((e=>{var t;return"string"!=typeof e.message&&(null===(t=e.message)||void 0===t?void 0:t.key)===s}));if(!1===a.api.status)return 0===c.length&&e((0,i.addNotification)({message:{details:a.api.statusPage,key:"ui.toast.onBackendDown"},type:"error"})),e(u(a));if(!0===a.api.status&&c.length>0&&c.forEach((t=>{e((0,i.dismissNotification)(t.id))})),!1===a.auth.status){const t="ui.toast.onLoggedOut";n.notifications.notifications.find((e=>{var n;return"string"!=typeof e.message&&(null===(n=e.message)||void 0===n?void 0:n.key)===t}))||e((0,i.addNotification)({message:{key:"ui.toast.onLoggedOut"},type:"error"}))}e(u(a))}catch(t){e(c(t))}}},t.statusFailure=c,t.statusRequest=l,t.statusSuccess=u;var r=n(2241),i=n(5690);const o=t.STATUS_REQUEST="STATUS_REQUEST",a=t.STATUS_SUCCESS="STATUS_SUCCESS",s=t.STATUS_FAILURE="STATUS_FAILURE";function l(){return{type:o}}function u(e){return{type:a,payload:{status:e}}}function c(e){return{type:s,payload:{error:e}}}},80110:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.waitUntil=i,t.waitUntilWithTimeout=async function(e,t,n=3e4){let r=!1;const o=new Promise((n=>{e(i(t(n)))})),a=new Promise((e=>{setTimeout((()=>{r?e():(console.warn("Wait Action timed out"),e(null))}),n)}));return await Promise.race([o.then((e=>(r=!0,e))).catch(null),a])};var r=n(89258);function i({predicate:e,run:t}){return{type:r.WAIT_UNTIL_ACTION,predicate:e,run:t}}},2241:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.currentBackend=t.LocalStorageAuthStore=t.Backend=void 0,t.expandSearchEntries=q,t.extractSearchFields=U,t.mergeExpandedEntries=W,t.resolveBackend=Z,t.slugFromCustomPath=H;var r=R(n(16765)),i=R(n(72579)),o=R(n(829)),a=R(n(5648)),s=R(n(75652)),l=R(n(85121)),u=R(n(35676)),c=R(n(55027)),d=n(46670),f=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=P(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(14478)),p=n(33806),h=n(21023),m=n(1704),g=n(85575),v=n(23260),y=n(58308),b=n(487),w=n(45624),_=n(15583),x=n(9904),k=n(41891),E=n(59311),C=n(61928),S=n(48781),A=n(51748),T=n(13943);const O=["field"];function P(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(P=function(e){return e?n:t})(e)}function R(e){return e&&e.__esModule?e:{default:e}}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;te.reduce(((e,n)=>{const r=z(n,t);return r?`${e} ${r}`:e}),"")}function q(e,t){return e.reduce(((e,n)=>{const r=t.reduce(((e,t)=>{const r=N({data:n.data,path:t});return e.push(...r),e}),[]);for(let t=0;te.field)),n={},o=e.reduce(((e,t)=>{if(!e[t.slug]){const{field:r}=t,i=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,O);e[t.slug]=i,n[t.slug]=(0,d.Set)()}const r=t.field.split(".");let i=e[t.slug].data;for(let e=0;e{const a=o[e].data;for(const o of n[e].toArray()){const e=(0,i.default)(a,o),n=e.filter(((e,n)=>t.some((e=>`${e}.`.startsWith(`${o}.${n}.`)))));n.sort(((n,r)=>{const i=e.indexOf(n),a=e.indexOf(r),s=`${o}.${i}.`,l=`${o}.${a}.`;return t.findIndex((e=>`${e}.`.startsWith(s)))-t.findIndex((e=>`${e}.`.startsWith(l)))})),(0,r.default)(a,o,n)}})),Object.values(o)}function $(e,t){return e.score>t.score?-1:e.score{const t=this.authStore.retrieve();if(t&&t.backendName===this.backendName)return this.user=M(M({},t),e),this.authStore.store(this.user),this.user})),I(this,"getToken",(()=>this.implementation.getToken())),this.deleteAnonymousBackup(),this.config=r,this.implementation=e.init(this.config,{useWorkflow:(0,v.selectUseWorkflow)(this.config),updateUserCredentials:this.updateUserCredentials,initialWorkflowStatus:C.status.first()}),this.backendName=t,this.authStore=n,null===this.implementation)throw new Error("Cannot instantiate a Backend with no implementation");this.backupSync=(0,p.asyncLock)()}async status(){let e={auth:{status:!0},api:{status:!0,statusPage:""}};for(let t=1;t<=3;t++){if(e=await this.implementation.status(),Object.values(e).every((e=>!0===e.status)))return e;await new Promise((e=>setTimeout(e,1e3*t)))}return e}currentUser(){if(this.user)return this.user;const e=this.authStore.retrieve();return e&&e.backendName===this.backendName?Promise.resolve(this.implementation.restoreUser(e)).then((e=>(this.user=M(M({},e),{},{backendName:this.backendName}),this.authStore.store(this.user),this.user))):Promise.resolve(null)}isGitBackend(){var e,t;return(null===(e=(t=this.implementation).isGitBackend)||void 0===e?void 0:e.call(t))||!1}authComponent(){return this.implementation.authComponent()}authenticate(e){return this.implementation.authenticate(e).then((e=>(this.user=M(M({},e),{},{backendName:this.backendName}),this.authStore&&this.authStore.store(this.user),this.user)))}async logout(){try{await this.implementation.logout()}catch(e){console.warn("Error during logout",e.message)}finally{this.user=null,this.authStore&&this.authStore.logout()}}async entryExist(e,t,n,r){return r&&await this.implementation.unpublishedEntry({collection:e.get("name"),slug:n}).catch((e=>e.name===p.EDITORIAL_WORKFLOW_ERROR&&e.notUnderEditorialWorkflow?Promise.resolve(!1):Promise.reject(e)))||await this.implementation.getEntry(t).then((({data:e})=>e)).catch((()=>Promise.resolve(!1)))}async generateUniqueSlug(e,t,n,r,i){const o=n.slug;let a;a=i?H(e,i):(0,E.slugFormatter)(e,t,o);let s=1,l=a;for(;r.includes(l)||await this.entryExist(e,(0,w.selectEntryPath)(e,l),l,(0,v.selectUseWorkflow)(n));)l=`${a}${(0,x.sanitizeChar)(" ",o)}${s++}`;return l}processEntries(e,t){const n=e.map((e=>(0,_.createEntry)(t.get("name"),(0,w.selectEntrySlug)(t,e.file.path),e.file.path,{raw:e.data||"",label:e.file.label,author:e.file.author,updatedOn:e.file.updatedOn,meta:{path:V(e.file.path,t)}}))).map(this.entryWithFormat(t)),r=t.get("filter"),i=r?this.filterEntries({entries:n},r):n;if((0,T.hasI18n)(t)){const e=(0,w.selectFolderEntryExtension)(t);return(0,T.groupEntries)(t,e,i)}return i}async listEntries(e){var t;const n=(0,w.selectFolderEntryExtension)(e);let r;const i=e.get("type");if(i===S.FOLDER)r=()=>{const t=G(e);return this.implementation.entriesByFolder(e.get("folder"),n,t)};else{if(i!==S.FILES)throw new Error(`Unknown collection type: ${i}`);{const t=e.get("files").map((e=>({path:e.get("file"),label:e.get("label")}))).toArray();r=()=>this.implementation.entriesByFiles(t)}}const o=await r(),a=p.Cursor.create(o[p.CURSOR_COMPATIBILITY_SYMBOL]).wrapData({cursorType:"collectionEntries",collection:e});return{entries:this.processEntries(o,e),pagination:null===(t=a.meta)||void 0===t?void 0:t.get("page"),cursor:a}}async listAllEntries(e){if(e.get("folder")&&this.implementation.allEntriesByFolder){const t=G(e),n=(0,w.selectFolderEntryExtension)(e);return this.implementation.allEntriesByFolder(e.get("folder"),n,t,function(e){let t="";return e.get("path")&&(t=`${e.get("folder")}/${e.get("path")}`.replace(/{{.*}}/gm,"(.*)")),(0,T.hasI18n)(e)&&(t=function(e,{defaultLocale:t,structure:n}){return n===T.I18N_STRUCTURE.MULTIPLE_FOLDERS?`${t}\\/${e}`:n===T.I18N_STRUCTURE.MULTIPLE_FILES?`${e}\\.${t}\\..*`:e}(t,(0,T.getI18nInfo)(e))),t?new RegExp(t):void 0}(e)).then((t=>this.processEntries(t,e)))}const t=await this.listEntries(e),{entries:n}=t;let{cursor:r}=t;for(;r&&r.actions.includes("next");){const{entries:e,cursor:t}=await this.traverseCursor(r,"next");n.push(...e),r=t}return n}async search(e,t){const n=[],r=e.map((async e=>{const n=e.get("summary",""),r=L(n);let i=[];var o;e.get("type")===S.FILES?null===(o=e.get("files"))||void 0===o||o.forEach((e=>{const t=e.get("fields").map((e=>e.get("name"))).toArray();i=[...i,...t]})):i=[(0,w.selectInferredField)(e,"title"),(0,w.selectInferredField)(e,"shortTitle"),(0,w.selectInferredField)(e,"author"),...r.map((t=>j[t]?(0,w.selectInferredField)(e,"date"):t))];const a=i.filter(Boolean),l=await this.listAllEntries(e);return f.filter(t,l,{extract:U((0,s.default)(a))})})).map((e=>e.catch((e=>(n.push(e),[]))))),i=await Promise.all(r).then((e=>(0,u.default)(e)));if(n.length>0)throw new Error({message:"Errors occurred while searching entries locally!",errors:n});return{entries:i.filter((({score:e})=>e>5)).sort($).map((e=>e.original))}}async query(e,t,n,r,i){let o=await this.listAllEntries(e);r&&(o=o.filter((e=>e.slug===r)));const a=q(o,t);let s=f.filter(n,a,{extract:e=>z(e.field,e)}).sort($).map((e=>e.original));return void 0!==i&&i>0&&(s=s.slice(0,i)),{query:n,hits:W(s)}}traverseCursor(e,t){const[n,r]=e.unwrapData(),i=n.get("collection");return this.implementation.traverseCursor(r,t).then((async({entries:e,cursor:t})=>({entries:this.processEntries(e,i),cursor:p.Cursor.create(t).wrapData({cursorType:"collectionEntries",collection:i})})))}async getLocalDraftBackup(e,t){const n=B(e.get("name"),t),r=await p.localForage.getItem(n);if(!r||!r.raw.trim())return{};const{raw:i,path:o}=r;let{mediaFiles:a=[]}=r;a=a.map((e=>e.file?M(M({},e),{},{url:URL.createObjectURL(e.file)}):e));const s=(0,w.selectFileEntryLabel)(e,t),l=n=>this.entryWithFormat(e)((0,_.createEntry)(e.get("name"),t,o,{raw:n,label:s,mediaFiles:a,meta:{path:V(o,e)}})),u=l(i);if((0,T.hasI18n)(e)&&r.i18n){const e=(0,T.formatI18nBackup)(r.i18n,l);u.i18n=e}return{entry:u}}async persistLocalDraftBackup(e,t){try{await this.backupSync.acquire();const n=B(t.get("name"),e.get("slug")),r=this.entryToRaw(t,e);if(!r.trim())return;const i=await Promise.all(e.get("mediaFiles").toJS().map((async e=>{var t;if(null!==(t=e.url)&&void 0!==t&&t.startsWith("blob:")){const t=await fetch(e.url).then((e=>e.blob()));return M(M({},e),{},{file:(0,p.blobToFileObj)(e.name,t)})}return e})));let o;return(0,T.hasI18n)(t)&&(o=(0,T.getI18nBackup)(t,e,(e=>this.entryToRaw(t,e)))),await p.localForage.setItem(n,M({raw:r,path:e.get("path"),mediaFiles:i},o&&{i18n:o})),await p.localForage.setItem(B(),r)}catch(e){console.warn("persistLocalDraftBackup",e)}finally{this.backupSync.release()}}async deleteLocalDraftBackup(e,t){try{return await this.backupSync.acquire(),await p.localForage.removeItem(B(e.get("name"),t)),t&&await p.localForage.removeItem(B(e.get("name"))),await this.deleteAnonymousBackup()}catch(e){console.warn("deleteLocalDraftBackup",e)}finally{this.backupSync.release()}}deleteAnonymousBackup(){return p.localForage.removeItem(B())}async getEntry(e,t,n){const r=(0,w.selectEntryPath)(t,n),i=(0,w.selectFileEntryLabel)(t,n),o=(0,w.selectFolderEntryExtension)(t),a=async r=>{const o=await this.implementation.getEntry(r);let a=(0,_.createEntry)(t.get("name"),n,o.file.path,{raw:o.data,label:i,mediaFiles:[],meta:{path:V(o.file.path,t)}});return a=this.entryWithFormat(t)(a),a=await this.processEntry(e,t,a),a};let s;return s=(0,T.hasI18n)(t)?await(0,T.getI18nEntry)(t,o,r,n,a):await a(r),s}getMedia(){return this.implementation.getMedia()}getMediaFile(e){return this.implementation.getMediaFile(e)}getMediaDisplayURL(e){if(this.implementation.getMediaDisplayURL)return this.implementation.getMediaDisplayURL(e);const t=new Error("getMediaDisplayURL is not implemented by the current backend, but the backend returned a displayURL which was not a string!");return t.displayURL=e,Promise.reject(t)}entryWithFormat(e){return t=>{const n=(0,g.resolveFormat)(e,t);if(t&&void 0!==t.raw){const e=n&&(0,c.default)(n.fromFile.bind(n,t.raw))||{};return(0,l.default)(e)&&console.error(e),Object.assign(t,{data:(0,l.default)(e)?{}:e})}return n.fromFile(t)}}async processUnpublishedEntry(e,t,n){const{slug:r}=t;let i;if(e.get("type")===S.FILES){const t=e.get("files").find((e=>(null==e?void 0:e.get("name"))===r));i=(0,h.extname)(t.get("file"))}else i=(0,w.selectFolderEntryExtension)(e);const a=[];if(n){const n=t.diffs.filter((e=>!e.path.endsWith(i))),o=await Promise.all(n.map((t=>this.implementation.unpublishedEntryMediaFile(e.get("name"),r,t.path,t.id))));a.push(...o.map((e=>M(M({},e),{},{draft:!0}))))}const s=(0,o.default)(t.diffs.filter((e=>e.path.endsWith(i))),(e=>e.path.length)),l=(n,i,o)=>{const s=(0,_.createEntry)(e.get("name"),r,i,{raw:n,isModification:!o,label:e&&(0,w.selectFileEntryLabel)(e,r),mediaFiles:a,updatedOn:t.updatedAt,author:t.pullRequestAuthor,status:t.status,meta:{path:V(i,e)}});return this.entryWithFormat(e)(s)},u=async n=>{const r=await this.implementation.unpublishedEntryDataFile(e.get("name"),t.slug,n.path,n.id);return l(r,n.path,n.newFile)};if(s.length<=0){const t=await this.implementation.getEntry((0,w.selectEntryPath)(e,r));return l(t.data,t.file.path,!1)}if((0,T.hasI18n)(e)){const t=(0,w.selectEntryPath)(e,r),n=(0,T.getI18nDataFiles)(e,i,t,r,s);let o=await Promise.all(n.map((e=>u(e).catch((()=>null)))));return o=o.filter(Boolean),(await(0,T.groupEntries)(e,i,o))[0]}return await u(s[0])}async unpublishedEntries(e){const t=await this.implementation.unpublishedEntries();return{pagination:0,entries:(await Promise.all(t.map((async t=>{const n=await this.implementation.unpublishedEntry({id:t}),r=n.collection,i=e.find((e=>e.get("name")===r));return i?await this.processUnpublishedEntry(i,n,!1):(console.warn(`Missing collection '${r}' for unpublished entry '${t}'`),null)})))).filter(Boolean)}}async processEntry(e,t,n){const r=(0,b.selectIntegration)(e.integrations,null,"assetStore"),i=(0,w.selectMediaFolders)(e.config,t,(0,d.fromJS)(n));if(i.length>0&&!r){const e=await Promise.all(i.map((e=>this.implementation.getMedia(e))));n.mediaFiles=n.mediaFiles.concat(...e)}else n.mediaFiles=n.mediaFiles.concat(e.mediaLibrary.get("files")||[]);return n}async unpublishedEntry(e,t,n){const r=await this.implementation.unpublishedEntry({collection:t.get("name"),slug:n});let i=await this.processUnpublishedEntry(t,r,!0);return i=await this.processEntry(e,t,i),i}getDeploy(e,t,n){const r=this.config.site_url;if(r&&!1!==this.config.show_preview_links)return{url:(0,E.previewUrlFormatter)(r,e,t,n,this.config.slug),status:"SUCCESS"}}async getDeployPreview(e,t,n,{maxAttempts:r=1,interval:i=5e3}={}){if(!this.implementation.getDeployPreview||!1===this.config.show_preview_links)return;let o,a=0;for(;!o&&asetTimeout((()=>e(void 0)),i)));return o?{url:(0,E.previewUrlFormatter)(o.url,e,t,n,this.config.slug),status:o.status?o.status.toUpperCase():""}:void 0}async persistEntry({config:e,collection:t,entryDraft:n,assetProxies:r,usedSlugs:i,unpublished:o=!1,status:a}){const s=await this.invokePreSaveEvent(n.get("entry"));let l;l=void 0===s.get("data")?s&&n.setIn(["entry","data"],s)||n:s&&n.setIn(["entry"],s)||n;const u=l.getIn(["entry","newRecord"])||!1,c=(0,v.selectUseWorkflow)(e),d=(0,A.selectCustomPath)(t,l);let f;if(u){if(!(0,w.selectAllowNewEntries)(t))throw new Error("Not allowed to create new entries in this collection");const n=await this.generateUniqueSlug(t,l.getIn(["entry","data"]),e,i,d),o=d||(0,w.selectEntryPath)(t,n);f={path:o,slug:n,raw:this.entryToRaw(t,l.get("entry"))},function(e,t,n,r,i){e.map((e=>{const o=e.path,a=(0,y.selectMediaFilePath)(t,n,r.get("entry").set("path",i),o,e.field);e.path=a}))}(r,e,t,l,o)}else{const e=l.getIn(["entry","slug"]);f={path:l.getIn(["entry","path"]),slug:d&&!c?H(t,d):e,raw:this.entryToRaw(t,l.get("entry")),newPath:d}}const{slug:p,path:h,newPath:m}=f;let g=[f];if((0,T.hasI18n)(t)){const e=(0,w.selectFolderEntryExtension)(t);g=(0,T.getI18nFiles)(t,e,l.get("entry"),(e=>this.entryToRaw(t,e)),h,p,m)}const b=await this.currentUser(),_=M({newEntry:u,commitMessage:(0,E.commitMessageFormatter)(u?"create":"update",e,{collection:t,slug:p,path:h,authorLogin:b.login,authorName:b.name},b.useOpenAuthoring),collectionName:t.get("name"),useWorkflow:c},{unpublished:o,status:a});return c||await this.invokePrePublishEvent(l.get("entry")),await this.implementation.persistEntry({dataFiles:g,assets:r},_),await this.invokePostSaveEvent(l.get("entry")),c||await this.invokePostPublishEvent(l.get("entry")),p}async invokeEventWithEntry(e,t){const{login:n,name:r}=await this.currentUser();return await(0,k.invokeEvent)({name:e,data:{entry:t,author:{login:n,name:r}}})}async invokePrePublishEvent(e){await this.invokeEventWithEntry("prePublish",e)}async invokePostPublishEvent(e){await this.invokeEventWithEntry("postPublish",e)}async invokePreUnpublishEvent(e){await this.invokeEventWithEntry("preUnpublish",e)}async invokePostUnpublishEvent(e){await this.invokeEventWithEntry("postUnpublish",e)}async invokePreSaveEvent(e){return await this.invokeEventWithEntry("preSave",e)}async invokePostSaveEvent(e){await this.invokeEventWithEntry("postSave",e)}async persistMedia(e,t){const n=await this.currentUser(),r={commitMessage:(0,E.commitMessageFormatter)("uploadMedia",e,{path:t.path,authorLogin:n.login,authorName:n.name},n.useOpenAuthoring)};return this.implementation.persistMedia(t,r)}async deleteEntry(e,t,n){const r=e.config,i=(0,w.selectEntryPath)(t,n),o=(0,w.selectFolderEntryExtension)(t);if(!(0,w.selectAllowDeletion)(t))throw new Error("Not allowed to delete entries in this collection");const a=await this.currentUser(),s=(0,E.commitMessageFormatter)("delete",r,{collection:t,slug:n,path:i,authorLogin:a.login,authorName:a.name},a.useOpenAuthoring),l=(0,y.selectEntry)(e.entries,t.get("name"),n);await this.invokePreUnpublishEvent(l);let u=[i];(0,T.hasI18n)(t)&&(u=(0,T.getFilePaths)(t,o,i,n)),await this.implementation.deleteFiles(u,s),await this.invokePostUnpublishEvent(l)}async deleteMedia(e,t){const n=await this.currentUser(),r=(0,E.commitMessageFormatter)("deleteMedia",e,{path:t,authorLogin:n.login,authorName:n.name},n.useOpenAuthoring);return this.implementation.deleteFiles([t],r)}persistUnpublishedEntry(e){return this.persistEntry(M(M({},e),{},{unpublished:!0}))}updateUnpublishedEntryStatus(e,t,n){return this.implementation.updateUnpublishedEntryStatus(e,t,n)}async publishUnpublishedEntry(e){const t=e.get("collection"),n=e.get("slug");await this.invokePrePublishEvent(e),await this.implementation.publishUnpublishedEntry(t,n),await this.invokePostPublishEvent(e)}deleteUnpublishedEntry(e,t){return this.implementation.deleteUnpublishedEntry(e,t)}entryToRaw(e,t){const n=(0,g.resolveFormat)(e,t.toJS()),r=this.fieldsOrder(e,t),i=(0,w.selectFieldsComments)(e,t);let o=n.toFile(t.get("data").toJS(),r,i);return"\n"!=o.slice(-1)&&(o+="\n"),o}fieldsOrder(e,t){if(e.get("fields"))return e.get("fields").map((e=>e.get("name"))).toArray();const n=(e.get("files")||(0,d.List)()).filter((e=>e.get("name")===t.get("slug"))).get(0);if(null==n)throw new Error(`No file found for ${t.get("slug")} in ${e.get("name")}`);return n.get("fields").map((e=>e.get("name"))).toArray()}filterEntries(e,t){return e.entries.filter((e=>{const n=e.data[t.get("field")];return Array.isArray(n)?n.includes(t.get("value")):n===t.get("value")}))}}function Z(e){if(!e.backend.name)throw new Error("No backend defined in configuration");const{name:t}=e.backend,n=new F,r=(0,k.getBackend)(t);if(r)return new K(r,{backendName:t,authStore:n,config:e});throw new Error(`Backend not found: ${t}`)}t.Backend=K,t.currentBackend=function(){let e;return t=>e||(e=Z(t))}()},4342:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=y(n(2784)),i=n(17029),o=n(57903),a=n(34752),s=n(30762),l=n(9316),u=n(21837),c=n(79278),d=n(54750),f=n(76167),p=n(99187),h=n(23260),m=n(50758),g=y(n(2436));n(29192),n(72649),n(35957);var v=n(28165);function y(e){return e&&e.__esModule?e:{default:e}}const b="nc-root",w=(0,o.connect)((function(e){return{locale:(0,h.selectLocale)(e.config),config:e.config}}))((function({locale:e,config:t}){return(0,v.jsx)(l.I18n,{locale:e,messages:(0,p.getPhrases)(e)},(0,v.jsx)(m.ErrorBoundary,{showBackup:!0,config:t},(0,v.jsx)(a.Router,{history:c.history},(0,v.jsx)(a.Route,{component:g.default}))))}));t.default=function(e={}){const{config:t}=e;console.log("decap-cms-core 3.4.2"),u.store.dispatch((0,d.loadConfig)(t,(function(){u.store.dispatch((0,f.authenticateUser)())}))),(0,i.createRoot)(function(){const e=document.getElementById(b);if(e)return e;const t=document.createElement("div");return t.id=b,document.body.appendChild(t),t}()).render((0,v.jsx)((function(){return(0,v.jsx)(r.default.Fragment,null,(0,v.jsx)(s.GlobalStyles,null),(0,v.jsx)(o.Provider,{store:u.store},(0,v.jsx)(w,null)))}),null))}},2436:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=A(n(70894)),i=A(n(13980)),o=A(n(2784)),a=n(9316),s=A(n(19155)),l=n(57903),u=n(34752),c=A(n(75465)),d=n(30762),f=n(76167),p=n(2241),h=n(1582),m=n(68104),g=A(n(80306)),v=n(50758),y=n(79278),b=n(61928),w=A(n(65583)),_=A(n(33407)),x=A(n(15694)),k=A(n(27633)),E=A(n(19739)),C=n(28165);const S=["collections","render"];function A(e){return e&&e.__esModule?e:{default:e}}function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t!0!==e.get("hide"))).first();if(t)return`/collections/${t.get("name")}`;throw new Error("Could not find a non hidden collection")}function M(e){let{collections:t,render:n}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,S);const i=D(t);return(0,C.jsx)(u.Route,T({},r,{render:e=>t.get(e.match.params.name)?n(e):(0,C.jsx)(u.Redirect,{to:i})}))}class I extends o.default.Component{configError(e){const t=this.props.t;return(0,C.jsx)(P,null,(0,C.jsx)("h1",null,t("app.app.errorHeader")),(0,C.jsx)("div",null,(0,C.jsx)("strong",null,t("app.app.configErrors"),":"),(0,C.jsx)(R,null,e.error),(0,C.jsx)("span",null,t("app.app.checkConfigYml"))))}handleLogin(e){this.props.loginUser(e)}authenticating(){const{auth:e,t}=this.props,n=(0,p.currentBackend)(this.props.config);return null==n?(0,C.jsx)("div",null,(0,C.jsx)("h1",null,t("app.app.waitingBackend"))):(0,C.jsx)("div",null,(0,C.jsx)(v.Notifications,null),o.default.createElement(n.authComponent(),{onLogin:this.handleLogin.bind(this),error:e.error,inProgress:e.isFetching,siteId:this.props.config.backend.site_domain,base_url:this.props.config.backend.base_url,authEndpoint:this.props.config.backend.auth_endpoint,config:this.props.config,clearHash:()=>y.history.replace("/"),t}))}handleLinkClick(e,t,...n){e.preventDefault(),t(...n)}render(){const{user:e,config:t,collections:n,logoutUser:r,isFetching:i,publishMode:a,useMediaLibrary:s,openMediaLibrary:l,t:f,showMediaButton:p}=this.props;if(null===t)return null;if(t.error)return this.configError(t);if(t.isFetching)return(0,C.jsx)(d.Loader,{active:!0},f("app.app.loadingConfig"));if(null==e)return this.authenticating(f);const m=D(n),y=a===b.EDITORIAL_WORKFLOW;return(0,C.jsx)(o.default.Fragment,null,(0,C.jsx)(v.Notifications,null),(0,C.jsx)(E.default,{user:e,collections:n,onCreateEntryClick:h.createNewEntry,onLogoutClick:r,openMediaLibrary:l,hasWorkflow:y,displayUrl:t.display_url,isTestRepo:"test-repo"===t.backend.name,showMediaButton:p}),(0,C.jsx)(O,null,i&&(0,C.jsx)(c.default,null),(0,C.jsx)(u.Switch,null,(0,C.jsx)(u.Redirect,{exact:!0,from:"/",to:m}),(0,C.jsx)(u.Redirect,{exact:!0,from:"/search/",to:m}),(0,C.jsx)(M,{exact:!0,collections:n,path:"/collections/:name/search/",render:({match:e})=>(0,C.jsx)(u.Redirect,{to:`/collections/${e.params.name}`})}),(0,C.jsx)(u.Redirect,{from:"/error=access_denied&error_description=Signups+not+allowed+for+this+instance",to:m}),y?(0,C.jsx)(u.Route,{path:"/workflow",component:_.default}):null,(0,C.jsx)(M,{exact:!0,collections:n,path:"/collections/:name",render:e=>(0,C.jsx)(w.default,e)}),(0,C.jsx)(M,{path:"/collections/:name/new",collections:n,render:e=>(0,C.jsx)(x.default,T({},e,{newRecord:!0}))}),(0,C.jsx)(M,{path:"/collections/:name/entries/*",collections:n,render:e=>(0,C.jsx)(x.default,e)}),(0,C.jsx)(M,{path:"/collections/:name/search/:searchTerm",collections:n,render:e=>(0,C.jsx)(w.default,T({},e,{isSearchResults:!0,isSingleSearchResult:!0}))}),(0,C.jsx)(M,{collections:n,path:"/collections/:name/filter/:filterTerm*",render:e=>(0,C.jsx)(w.default,e)}),(0,C.jsx)(u.Route,{path:"/search/:searchTerm",render:e=>(0,C.jsx)(w.default,T({},e,{isSearchResults:!0}))}),(0,C.jsx)(M,{path:"/edit/:name/:entryName",collections:n,render:({match:e})=>{const{name:t,entryName:n}=e.params;return(0,C.jsx)(u.Redirect,{to:`/collections/${t}/entries/${n}`})}}),(0,C.jsx)(u.Route,{component:k.default})),s?(0,C.jsx)(g.default,null):null))}}var L,j,N;L=I,j="propTypes",N={auth:i.default.object.isRequired,config:i.default.object.isRequired,collections:s.default.map.isRequired,loginUser:i.default.func.isRequired,logoutUser:i.default.func.isRequired,user:i.default.object,isFetching:i.default.bool.isRequired,publishMode:i.default.oneOf([b.SIMPLE,b.EDITORIAL_WORKFLOW]),siteId:i.default.string,useMediaLibrary:i.default.bool,openMediaLibrary:i.default.func.isRequired,showMediaButton:i.default.bool,t:i.default.func.isRequired},(j=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(j))in L?Object.defineProperty(L,j,{value:N,enumerable:!0,configurable:!0,writable:!0}):L[j]=N;const F={openMediaLibrary:m.openMediaLibrary,loginUser:f.loginUser,logoutUser:f.logoutUser};t.default=(0,l.connect)((function(e){const{auth:t,config:n,collections:r,globalUI:i,mediaLibrary:o}=e,a=t.user,s=i.isFetching,l=n.publish_mode,u=!o.get("externalLibrary");return{auth:t,config:n,collections:r,user:a,isFetching:s,publishMode:l,showMediaButton:o.get("showMediaButton"),useMediaLibrary:u}}),F)((0,a.translate)()(I))},19739:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=h(n(70894)),i=h(n(13980)),o=h(n(2784)),a=h(n(19155)),s=n(28165),l=n(9316),u=n(34752),c=n(30762),d=n(57903),f=n(50758),p=n(9687);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t(0,s.css)("&.",e.activeClassName,"{",v.buttonActive,";",c.Icon,"{",v.buttonActive,";}};label:AppHeaderButton;")),";"),_=w.withComponent(u.NavLink,{target:"e1rbzf6g5",label:"AppHeaderNavLink"}),x=(0,r.default)("div",{target:"e1rbzf6g2",label:"AppHeaderActions"})({name:"8irbms",styles:"display:inline-flex;align-items:center"}),k=(0,r.default)(c.StyledDropdownButton,{target:"e1rbzf6g1",label:"AppHeaderQuickNewButton"})(c.buttons.button,";",c.buttons.medium,";",c.buttons.gray,";margin-right:8px;&:after{top:11px;}"),E=(0,r.default)("ul",{target:"e1rbzf6g0",label:"AppHeaderNavList"})({name:"1vufzxm",styles:"display:flex;margin:0;list-style:none"});class C extends o.default.Component{constructor(...e){super(...e),m(this,"intervalId",void 0),m(this,"handleCreatePostClick",(e=>{const{onCreateEntryClick:t}=this.props;t&&t(e)}))}componentDidMount(){this.intervalId=setInterval((()=>{this.props.checkBackendStatus()}),3e5)}componentWillUnmount(){clearInterval(this.intervalId)}render(){const{user:e,collections:t,onLogoutClick:n,openMediaLibrary:r,hasWorkflow:i,displayUrl:o,isTestRepo:a,t:l,showMediaButton:u}=this.props,d=t.filter((e=>e.get("create"))).toList();return(0,s.jsx)(y,null,(0,s.jsx)(b,null,(0,s.jsx)("nav",null,(0,s.jsx)(E,null,(0,s.jsx)("li",null,(0,s.jsx)(_,{to:"/",activeClassName:"header-link-active",isActive:(e,t)=>t.pathname.startsWith("/collections/")},(0,s.jsx)(c.Icon,{type:"page"}),l("app.header.content"))),i&&(0,s.jsx)("li",null,(0,s.jsx)(_,{to:"/workflow",activeClassName:"header-link-active"},(0,s.jsx)(c.Icon,{type:"workflow"}),l("app.header.workflow"))),u&&(0,s.jsx)("li",null,(0,s.jsx)(w,{onClick:r},(0,s.jsx)(c.Icon,{type:"media-alt"}),l("app.header.media"))))),(0,s.jsx)(x,null,d.size>0&&(0,s.jsx)(c.Dropdown,{renderButton:()=>(0,s.jsx)(k,null," ",l("app.header.quickAdd")),dropdownTopOverlap:"30px",dropdownWidth:"160px",dropdownPosition:"left"},d.map((e=>(0,s.jsx)(c.DropdownItem,{key:e.get("name"),label:e.get("label_singular")||e.get("label"),onClick:()=>this.handleCreatePostClick(e.get("name"))})))),(0,s.jsx)(f.SettingsDropdown,{displayUrl:o,isTestRepo:a,imageUrl:null==e?void 0:e.avatar_url,onLogoutClick:n}))))}}m(C,"propTypes",{user:i.default.object.isRequired,collections:a.default.map.isRequired,onCreateEntryClick:i.default.func.isRequired,onLogoutClick:i.default.func.isRequired,openMediaLibrary:i.default.func.isRequired,hasWorkflow:i.default.bool.isRequired,displayUrl:i.default.string,isTestRepo:i.default.bool,t:i.default.func.isRequired,checkBackendStatus:i.default.func.isRequired});const S={checkBackendStatus:p.checkBackendStatus};t.default=(0,d.connect)(null,S)((0,l.translate)()(C))},27633:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(70894)),i=(l(n(2784)),n(9316)),o=n(30762),a=l(n(13980)),s=n(28165);function l(e){return e&&e.__esModule?e:{default:e}}const u=(0,r.default)("div",{target:"ew40z3q0",label:"NotFoundContainer"})("margin:",o.lengths.pageMargin,";");function c({t:e}){return(0,s.jsx)(u,null,(0,s.jsx)("h2",null,e("app.notFoundPage.header")))}c.propTypes={t:a.default.func.isRequired},t.default=(0,i.translate)()(c)},65583:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Collection=void 0;var r=w(n(70894)),i=w(n(2784)),o=w(n(13980)),a=w(n(19155)),s=n(57903),l=n(9316),u=n(30762),c=n(9904),d=w(n(9381)),f=w(n(52777)),p=w(n(13352)),h=w(n(19232)),m=w(n(91785)),g=n(50236),v=n(45624),y=n(58308),b=n(28165);function w(e){return e&&e.__esModule?e:{default:e}}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t{const{collection:e,filterTerm:t,viewStyle:n}=this.props;return(0,b.jsx)(p.default,{collection:e,viewStyle:n,filterTerm:t})})),k(this,"renderEntriesSearch",(()=>{const{searchTerm:e,collections:t,collection:n,isSingleSearchResult:r}=this.props;return(0,b.jsx)(h.default,{collections:r?t.filter((e=>e===n)):t,searchTerm:e})}))}render(){const{collection:e,collections:t,collectionName:n,isSearchEnabled:r,isSearchResults:o,isSingleSearchResult:a,searchTerm:s,sortableFields:l,onSortClick:u,sort:p,viewFilters:h,viewGroups:g,filterTerm:v,t:y,onFilterClick:w,onGroupClick:_,filter:x,group:k,onChangeViewStyle:T,viewStyle:O}=this.props;let P=e.get("create")?(0,c.getNewEntryUrl)(n):"";P&&v&&(P=(0,c.getNewEntryUrl)(n),v&&(P=`${P}?path=${v}`));const R="collection.collectionTop.searchResults"+(a?"InCollection":"");return(0,b.jsx)(E,null,(0,b.jsx)(d.default,{collections:t,collection:(!o||a)&&e,isSearchEnabled:r,searchTerm:s,filterTerm:v}),(0,b.jsx)(C,null,o?(0,b.jsx)(S,null,(0,b.jsx)(A,null,y(R,{searchTerm:s,collection:e.get("label")}))):(0,b.jsx)(i.default.Fragment,null,(0,b.jsx)(f.default,{collection:e,newEntryUrl:P}),(0,b.jsx)(m.default,{viewStyle:O,onChangeViewStyle:T,sortableFields:l,onSortClick:u,sort:p,viewFilters:h,viewGroups:g,t:y,onFilterClick:w,onGroupClick:_,filter:x,group:k})),o?this.renderEntriesSearch():this.renderEntriesCollection()))}}t.Collection=T,k(T,"propTypes",{searchTerm:o.default.string,collectionName:o.default.string,isSearchResults:o.default.bool,isSingleSearchResult:o.default.bool,collection:a.default.map.isRequired,collections:a.default.map.isRequired,sortableFields:o.default.array,sort:a.default.orderedMap,onSortClick:o.default.func.isRequired});const O={sortByField:g.sortByField,filterByField:g.filterByField,changeViewStyle:g.changeViewStyle,groupByField:g.groupByField},P=(0,s.connect)((function(e,t){const{collections:n}=e,r=e.config&&0!=e.config.search,{isSearchResults:i,match:o,t:a}=t,{name:s,searchTerm:l="",filterTerm:u=""}=o.params,c=s?n.get(s):n.first(),d=(0,y.selectEntriesSort)(e.entries,c.get("name")),f=(0,v.selectSortableFields)(c,a),p=(0,v.selectViewFilters)(c),h=(0,v.selectViewGroups)(c),m=(0,y.selectEntriesFilter)(e.entries,c.get("name")),g=(0,y.selectEntriesGroup)(e.entries,c.get("name"));return{collection:c,collections:n,collectionName:s,isSearchEnabled:r,isSearchResults:i,searchTerm:l,filterTerm:u,sort:d,sortableFields:f,viewFilters:p,viewGroups:h,filter:m,group:g,viewStyle:(0,y.selectViewStyle)(e.entries)}}),O,(function(e,t,n){return x(x(x({},e),n),{},{onSortClick:(n,r)=>t.sortByField(e.collection,n,r),onFilterClick:n=>t.filterByField(e.collection,n),onGroupClick:n=>t.groupByField(e.collection,n),onChangeViewStyle:e=>t.changeViewStyle(e)})}))(T);t.default=(0,l.translate)()(P)},91785:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(70894)),i=(c(n(2784)),n(30762)),o=c(n(37058)),a=c(n(61450)),s=c(n(2796)),l=c(n(30686)),u=n(28165);function c(e){return e&&e.__esModule?e:{default:e}}const d=(0,r.default)("div",{target:"emfmed70",label:"CollectionControlsContainer"})("display:flex;align-items:center;flex-direction:row-reverse;margin-top:22px;width:",i.lengths.topCardWidth,";max-width:100%;&>div{margin-left:6px;}");t.default=function({viewStyle:e,onChangeViewStyle:t,sortableFields:n,onSortClick:r,sort:i,viewFilters:c,viewGroups:f,onFilterClick:p,onGroupClick:h,t:m,filter:g,group:v}){return(0,u.jsx)(d,null,(0,u.jsx)(o.default,{viewStyle:e,onChangeViewStyle:t}),f.length>0&&(0,u.jsx)(l.default,{viewGroups:f,onGroupClick:h,t:m,group:v}),c.length>0&&(0,u.jsx)(s.default,{viewFilters:c,onFilterClick:p,t:m,filter:g}),n.length>0&&(0,u.jsx)(a.default,{fields:n,sort:i,onSortClick:r}))}},98165:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(70894)),i=c(n(2784)),o=n(30762),a=n(9316),s=c(n(13980)),l=c(n(19155)),u=n(28165);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f=(0,r.default)("div",{target:"e6w847r7",label:"SearchContainer"})("margin:0 12px;position:relative;",o.Icon,"{position:absolute;top:0;left:6px;z-index:",o.zIndex.zIndex2,";height:100%;display:flex;align-items:center;pointer-events:none;}"),p=(0,r.default)("div",{target:"e6w847r6",label:"InputContainer"})({name:"1dbubah",styles:"display:flex;align-items:center;position:relative"}),h=(0,r.default)("input",{target:"e6w847r5",label:"SearchInput"})("background-color:#eff0f4;border-radius:",o.lengths.borderRadius,";font-size:14px;padding:10px 6px 10px 34px;width:100%;position:relative;z-index:",o.zIndex.zIndex1,";&:focus{outline:none;box-shadow:inset 0 0 0 2px ",o.colorsRaw.blue,";}"),m=(0,r.default)("div",{target:"e6w847r4",label:"SuggestionsContainer"})({name:"pw7jst",styles:"position:relative;width:100%"}),g=(0,r.default)("ul",{target:"e6w847r3",label:"Suggestions"})("position:absolute;top:6px;left:0;right:0;padding:10px 0;margin:0;list-style:none;background-color:#fff;border-radius:",o.lengths.borderRadius,";border:1px solid ",o.colors.textFieldBorder,";z-index:",o.zIndex.zIndex1,";"),v=(0,r.default)("li",{target:"e6w847r2",label:"SuggestionHeader"})("padding:0 6px 6px 34px;font-size:12px;color:",o.colors.text,";"),y=(0,r.default)("li",{target:"e6w847r1",label:"SuggestionItem"})((({isActive:e})=>`\n color: ${e?o.colors.active:o.colorsRaw.grayDark};\n background-color: ${e?o.colors.activeBackground:"inherit"};\n padding: 6px 6px 6px 34px;\n cursor: pointer;\n position: relative;\n\n &:hover {\n color: ${o.colors.active};\n background-color: ${o.colors.activeBackground};\n }\n`),""),b=(0,r.default)("div",{target:"e6w847r0",label:"SuggestionDivider"})({name:"1d3w5wq",styles:"width:100%"});class w extends i.default.Component{constructor(...e){super(...e),d(this,"state",{query:this.props.searchTerm,suggestionsVisible:!1,selectedCollectionIdx:this.getSelectedSelectionBasedOnProps()}),d(this,"submitSearch",(()=>{const{onSubmit:e,collections:t}=this.props,{selectedCollectionIdx:n,query:r}=this.state;this.toggleSuggestions(!1),-1!==n?e(r,t.toIndexedSeq().getIn([n,"name"])):e(r)})),d(this,"handleKeyDown",(e=>{const{suggestionsVisible:t}=this.state;"Enter"===e.key&&this.submitSearch(),t&&("Escape"===e.key&&this.toggleSuggestions(!1),"ArrowDown"===e.key?(this.selectNextSuggestion(),e.preventDefault()):"ArrowUp"===e.key&&(this.selectPreviousSuggestion(),e.preventDefault()))})),d(this,"handleQueryChange",(e=>{this.setState({query:e}),this.toggleSuggestions(""!==e),""===e&&this.resetSelectedSuggestion()})),d(this,"handleSuggestionClick",((e,t)=>{this.setState({selectedCollectionIdx:t},this.submitSearch),e.preventDefault()}))}componentDidUpdate(e){if(e.collection!==this.props.collection){const e=this.getSelectedSelectionBasedOnProps();this.setState({selectedCollectionIdx:e})}}getSelectedSelectionBasedOnProps(){const{collection:e,collections:t}=this.props;return e?t.keySeq().indexOf(e.get("name")):-1}toggleSuggestions(e){this.setState({suggestionsVisible:e})}selectNextSuggestion(){const{collections:e}=this.props,{selectedCollectionIdx:t}=this.state;this.setState({selectedCollectionIdx:Math.min(t+1,e.size-1)})}selectPreviousSuggestion(){const{selectedCollectionIdx:e}=this.state;this.setState({selectedCollectionIdx:Math.max(e-1,-1)})}resetSelectedSuggestion(){this.setState({selectedCollectionIdx:-1})}render(){const{collections:e,t}=this.props,{suggestionsVisible:n,selectedCollectionIdx:r,query:i}=this.state;return(0,u.jsx)(f,{onBlur:()=>this.toggleSuggestions(!1),onFocus:()=>this.toggleSuggestions(""!==i)},(0,u.jsx)(p,null,(0,u.jsx)(o.Icon,{type:"search"}),(0,u.jsx)(h,{onChange:e=>this.handleQueryChange(e.target.value),onKeyDown:this.handleKeyDown,onClick:()=>this.toggleSuggestions(!0),placeholder:t("collection.sidebar.searchAll"),value:i})),n&&(0,u.jsx)(m,null,(0,u.jsx)(g,null,(0,u.jsx)(v,null,t("collection.sidebar.searchIn")),(0,u.jsx)(y,{isActive:-1===r,onClick:e=>this.handleSuggestionClick(e,-1),onMouseDown:e=>e.preventDefault()},t("collection.sidebar.allCollections")),(0,u.jsx)(b,null),e.toIndexedSeq().map(((e,t)=>(0,u.jsx)(y,{key:t,isActive:t===r,onClick:e=>this.handleSuggestionClick(e,t),onMouseDown:e=>e.preventDefault()},e.get("label")))))))}}d(w,"propTypes",{collections:l.default.map.isRequired,collection:l.default.map,searchTerm:s.default.string.isRequired,onSubmit:s.default.func.isRequired,t:s.default.func.isRequired}),t.default=(0,a.translate)()(w)},52777:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(70894)),i=c(n(13980)),o=c(n(19155)),a=(c(n(2784)),n(9316)),s=n(34752),l=n(30762),u=n(28165);function c(e){return e&&e.__esModule?e:{default:e}}const d=(0,r.default)("div",{target:"ei8nkzc4",label:"CollectionTopContainer"})(l.components.cardTop,";margin-bottom:22px;"),f=(0,r.default)("div",{target:"ei8nkzc3",label:"CollectionTopRow"})({name:"bcffy2",styles:"display:flex;align-items:center;justify-content:space-between"}),p=(0,r.default)("h1",{target:"ei8nkzc2",label:"CollectionTopHeading"})(l.components.cardTopHeading,";"),h=(0,r.default)(s.Link,{target:"ei8nkzc1",label:"CollectionTopNewButton"})(l.buttons.button,";",l.shadows.dropDeep,";",l.buttons.default,";",l.buttons.gray,";padding:0 30px;"),m=(0,r.default)("p",{target:"ei8nkzc0",label:"CollectionTopDescription"})(l.components.cardTopDescription,";margin-bottom:0;");function g({collection:e,newEntryUrl:t,t:n}){const{collectionLabel:r,collectionLabelSingular:i,collectionDescription:o}=function(e){return{collectionLabel:e.get("label"),collectionLabelSingular:e.get("label_singular"),collectionDescription:e.get("description")}}(e);return(0,u.jsx)(d,null,(0,u.jsx)(f,null,(0,u.jsx)(p,null,r),t?(0,u.jsx)(h,{to:t},n("collection.collectionTop.newButton",{collectionLabel:i||r})):null),o?(0,u.jsx)(m,null,o):null)}g.propTypes={collection:o.default.map.isRequired,newEntryUrl:i.default.string,t:i.default.func.isRequired},t.default=(0,a.translate)()(g)},16108:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlButton=function({active:e,title:t}){return(0,i.jsx)(s,{css:(0,i.css)("color:",e?o.colors.active:void 0,";;label:ControlButton;")},t)};var r=a(n(70894)),i=(a(n(2784)),n(28165)),o=n(30762);function a(e){return e&&e.__esModule?e:{default:e}}const s=(0,r.default)(o.StyledDropdownButton,{target:"e1obtllk0",label:"Button"})(o.buttons.button,";",o.buttons.medium,";",o.buttons.grayText,";font-size:14px;&:after{top:11px;}")},94497:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(70894)),i=d(n(13980)),o=d(n(2784)),a=d(n(19155)),s=n(9316),l=n(30762),u=d(n(70660)),c=n(28165);function d(e){return e&&e.__esModule?e:{default:e}}const f=(0,r.default)("div",{target:"e1d0i3na1",label:"PaginationMessage"})("width:",l.lengths.topCardWidth,";padding:16px;text-align:center;"),p=(0,r.default)(f,{target:"e1d0i3na0",label:"NoEntriesMessage"})({name:"yz1nei",styles:"margin-top:16px"});function h({collections:e,entries:t,isFetching:n,viewStyle:r,cursor:i,handleCursorActions:a,t:s,page:d}){var h;const m=[s("collection.entries.loadingEntries"),s("collection.entries.cachingEntries"),s("collection.entries.longerLoading")];return n&&void 0===d?(0,c.jsx)(l.Loader,{active:!0},m):t&&t.size>0||(null==i||null===(h=i.actions)||void 0===h?void 0:h.has("append_next"))?(0,c.jsx)(o.default.Fragment,null,(0,c.jsx)(u.default,{collections:e,entries:t,viewStyle:r,cursor:i,handleCursorActions:a,page:d}),n&&void 0!==d&&t.size>0?(0,c.jsx)(f,null,s("collection.entries.loadingEntries")):null):(0,c.jsx)(p,null,s("collection.entries.noEntries"))}h.propTypes={collections:a.default.iterable.isRequired,entries:a.default.list,page:i.default.number,isFetching:i.default.bool,viewStyle:i.default.string,cursor:i.default.any.isRequired,handleCursorActions:i.default.func.isRequired,t:i.default.func.isRequired},t.default=(0,s.translate)()(h)},13352:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.EntriesCollection=void 0,t.filterNestedEntries=k;var r=v(n(70894)),i=v(n(83465)),o=v(n(2784)),a=v(n(13980)),s=v(n(19155)),l=n(57903),u=n(9316),c=n(33806),d=n(30762),f=n(50236),p=n(58308),h=n(63647),m=v(n(94497)),g=n(28165);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const b=(0,r.default)("h2",{target:"eucqz2q1",label:"GroupHeading"})("font-size:22px;font-weight:600;line-height:37px;padding-inline-start:20px;color:",d.colors.textLead,";"),w=(0,r.default)("div",{target:"eucqz2q0",label:"GroupContainer"})("");function _(e,t){return e.filter((e=>t.has(e.get("path"))))}class x extends o.default.Component{constructor(...e){super(...e),y(this,"handleCursorActions",((e,t)=>{const{collection:n,traverseCollectionCursor:r}=this.props;r(n,t)}))}componentDidMount(){const{collection:e,entriesLoaded:t,loadEntries:n}=this.props;e&&!t&&n(e)}componentDidUpdate(e){const{collection:t,entriesLoaded:n,loadEntries:r}=this.props;t===e.collection||n||r(t)}render(){const{collection:e,entries:t,groups:n,isFetching:r,viewStyle:o,cursor:a,page:s,t:l}=this.props,u=({entries:t})=>(0,g.jsx)(m.default,{collections:e,entries:t,isFetching:r,collectionName:e.get("label"),viewStyle:o,cursor:a,handleCursorActions:(0,i.default)(this.handleCursorActions,a),page:s});return n&&n.length>0?function(e,t,n,r){return e.map((e=>{const i=function(e,t){const{label:n,value:r}=e;return void 0===r?t("collection.groups.other"):"boolean"==typeof r?r?n:t("collection.groups.negateLabel",{label:n}):`${n} ${r}`.trim()}(e,r);return(0,g.jsx)(w,{key:e.id,id:e.id},(0,g.jsx)(b,null,i),(0,g.jsx)(n,{entries:_(t,e.paths)}))}))}(n,t,u,l):(0,g.jsx)(u,{entries:t})}}function k(e,t,n){return n.filter((n=>{const r=n.get("path").slice(t.length+1);return!!r.startsWith(e)&&(e?2===r.slice(e.length+1).split("/").length:r.split("/").length<=2)}))}t.EntriesCollection=x,y(x,"propTypes",{collection:s.default.map.isRequired,page:a.default.number,entries:s.default.list,groups:a.default.array,isFetching:a.default.bool.isRequired,viewStyle:a.default.string,cursor:a.default.object.isRequired,loadEntries:a.default.func.isRequired,traverseCollectionCursor:a.default.func.isRequired,entriesLoaded:a.default.bool});const E={loadEntries:f.loadEntries,traverseCollectionCursor:f.traverseCollectionCursor},C=(0,l.connect)((function(e,t){const{collection:n,viewStyle:r,filterTerm:i}=t,o=e.entries.getIn(["pages",n.get("name"),"page"]);let a=(0,p.selectEntries)(e.entries,n);const s=(0,p.selectGroups)(e.entries,n);n.has("nested")&&(a=k(i||"",n.get("folder"),a));const l=(0,p.selectEntriesLoaded)(e.entries,n.get("name")),u=(0,p.selectIsFetching)(e.entries,n.get("name")),d=(0,h.selectCollectionEntriesCursor)(e.cursors,n.get("name"));return{collection:n,page:o,entries:a,groups:s,entriesLoaded:l,isFetching:u,viewStyle:r,cursor:c.Cursor.create(d).clearData()}}),E)(x);t.default=(0,u.translate)()(C)},19232:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(n(18149)),i=p(n(2784)),o=p(n(13980)),a=p(n(19155)),s=n(57903),l=n(33806),u=n(36642),c=n(15207),d=p(n(94497)),f=n(28165);function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class m extends i.default.Component{constructor(...e){super(...e),h(this,"getCursor",(()=>{const{page:e}=this.props;return l.Cursor.create({actions:isNaN(e)?[]:["append_next"]})})),h(this,"handleCursorActions",(e=>{const{page:t,searchTerm:n,searchEntries:r,collectionNames:i}=this.props;"append_next"===e&&r(n,i,t+1)}))}componentDidMount(){const{searchTerm:e,searchEntries:t,collectionNames:n}=this.props;t(e,n)}componentDidUpdate(e){const{searchTerm:t,collectionNames:n}=this.props;if(e.searchTerm===t&&(0,r.default)(e.collectionNames,n))return;const{searchEntries:i}=e;i(t,n)}componentWillUnmount(){this.props.clearSearch()}render(){const{collections:e,entries:t,isFetching:n}=this.props;return(0,f.jsx)(d.default,{cursor:this.getCursor(),handleCursorActions:this.handleCursorActions,collections:e,entries:t,isFetching:n})}}h(m,"propTypes",{isFetching:o.default.bool,searchEntries:o.default.func.isRequired,clearSearch:o.default.func.isRequired,searchTerm:o.default.string.isRequired,collections:a.default.seq,collectionNames:o.default.array,entries:a.default.list,page:o.default.number});const g={searchEntries:c.searchEntries,clearSearch:c.clearSearch};t.default=(0,s.connect)((function(e,t){const{searchTerm:n}=t,r=t.collections.toIndexedSeq(),i=t.collections.keySeq().toArray();return{isFetching:e.search.isFetching,page:e.search.page,collections:r,collectionNames:i,entries:(0,u.selectSearchedEntries)(e,i),searchTerm:n}}),g)(m)},38440:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(70894)),i=(f(n(2784)),n(57903)),o=n(34752),a=n(30762),s=n(71033),l=n(78882),u=n(33474),c=n(45624),d=n(28165);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;te.hasImage&&0),";&:after{content:'';position:absolute;display:block;z-index:",a.zIndex.zIndex1,";bottom:0;left:-20%;height:140%;width:140%;box-shadow:inset 0 -15px 24px ",a.colorsRaw.white,";}"),k=(0,r.default)("div",{target:"effeus40",label:"CardImage"})("background-image:url(",(e=>e.src),");background-position:center center;background-size:cover;background-repeat:no-repeat;height:150px;"),E=(0,i.connect)((function(e,t){var n;const{entry:r,inferredFields:i,collection:o}=t,a=r.get("data"),s=(0,c.selectEntryCollectionTitle)(o,r);let l=a.get(i.imageField);l&&(l=encodeURI(l));const d=(0,u.selectIsLoadingAsset)(e.medias);return{summary:s,path:`/collections/${o.get("name")}/entries/${r.get("slug")}`,image:l,imageFolder:null===(n=o.get("fields"))||void 0===n?void 0:n.find((e=>e.get("name")===i.imageField&&"image"===e.get("widget"))),isLoadingAsset:d}}),(function(e){return{boundGetAsset:(t,n)=>(0,s.boundGetAsset)(e,t,n)}}),(function(e,t,n){return h(h(h(h({},e),t),n),{},{getAsset:t.boundGetAsset(n.collection,n.entry)})}))((function({path:e,summary:t,image:n,imageField:r,collectionLabel:i,viewStyle:o=l.VIEW_STYLE_LIST,getAsset:a}){return o===l.VIEW_STYLE_LIST?(0,d.jsx)(m,null,(0,d.jsx)(g,{to:e},i?(0,d.jsx)(b,null,i):null,(0,d.jsx)(w,null,t))):o===l.VIEW_STYLE_GRID?(0,d.jsx)(v,null,(0,d.jsx)(y,{to:e},(0,d.jsx)(x,{hasImage:n},i?(0,d.jsx)(b,null,i):null,(0,d.jsx)(_,null,t)),n?(0,d.jsx)(k,{src:a(n,r).toString()}):null)):void 0}));t.default=E},70660:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(70894)),i=f(n(13980)),o=f(n(2784)),a=f(n(19155)),s=n(94076),l=n(46670),u=n(45624),c=f(n(38440)),d=n(28165);function f(e){return e&&e.__esModule?e:{default:e}}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var e,t;return null===(e=this.props.cursor)||void 0===e||null===(t=e.actions)||void 0===t?void 0:t.has("append_next")})),h(this,"handleLoadMore",(()=>{this.hasMore()&&this.props.handleCursorActions("append_next")})),h(this,"inferFields",(e=>{const t=(0,u.selectInferredField)(e,"title"),n=(0,u.selectInferredField)(e,"description"),r=(0,u.selectInferredField)(e,"image"),i=(0,u.selectFields)(e),o=[t,n,r];return{titleField:t,descriptionField:n,imageField:r,remainingFields:i&&i.filter((e=>-1===o.indexOf(e.get("name"))))}})),h(this,"renderCardsForSingleCollection",(()=>{const{collections:e,entries:t,viewStyle:n}=this.props,r={collection:e,inferredFields:this.inferFields(e),viewStyle:n};return t.map(((e,t)=>(0,d.jsx)(c.default,p({},r,{entry:e,key:t}))))})),h(this,"renderCardsForMultipleCollections",(()=>{const{collections:e,entries:t}=this.props,n=1===e.size;return t.map(((t,r)=>{const i=t.get("collection"),o=e.find((e=>e.get("name")===i)),a=!n&&o.get("label"),s={collection:o,entry:t,inferredFields:this.inferFields(o),collectionLabel:a};return(0,d.jsx)(c.default,p({},s,{key:r}))}))}))}render(){const{collections:e,page:t}=this.props;return(0,d.jsx)("div",null,(0,d.jsx)(m,null,l.Map.isMap(e)?this.renderCardsForSingleCollection():this.renderCardsForMultipleCollections(),this.hasMore()&&(0,d.jsx)(s.Waypoint,{key:t,onEnter:this.handleLoadMore})))}}t.default=g,h(g,"propTypes",{collections:a.default.iterable.isRequired,entries:a.default.list,viewStyle:i.default.string,cursor:i.default.any.isRequired,handleCursorActions:i.default.func.isRequired,page:i.default.number})},2796:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,(r=n(2784))&&r.__esModule;var r,i=n(9316),o=n(30762),a=n(16108),s=n(28165);t.default=(0,i.translate)()((function({viewFilters:e,t,onFilterClick:n,filter:r}){const i=null==r?void 0:r.valueSeq().toJS().some((e=>!0===e.active));return(0,s.jsx)(o.Dropdown,{renderButton:()=>(0,s.jsx)(a.ControlButton,{active:i,title:t("collection.collectionTop.filterBy")}),closeOnSelection:!1,dropdownTopOverlap:"30px",dropdownPosition:"left"},e.map((e=>(0,s.jsx)(o.DropdownCheckedItem,{key:e.id,label:e.label,id:e.id,checked:r.getIn([e.id,"active"],!1),onClick:()=>n(e)}))))}))},30686:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,(r=n(2784))&&r.__esModule;var r,i=n(9316),o=n(30762),a=n(16108),s=n(28165);t.default=(0,i.translate)()((function({viewGroups:e,t,onGroupClick:n,group:r}){const i=null==r?void 0:r.valueSeq().toJS().some((e=>!0===e.active));return(0,s.jsx)(o.Dropdown,{renderButton:()=>(0,s.jsx)(a.ControlButton,{active:i,title:t("collection.collectionTop.groupBy")}),closeOnSelection:!1,dropdownTopOverlap:"30px",dropdownWidth:"160px",dropdownPosition:"left"},e.map((e=>(0,s.jsx)(o.DropdownItem,{key:e.id,label:e.label,onClick:()=>n(e),isActive:r.getIn([e.id,"active"],!1)}))))}))},21147:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NestedCollection=void 0,t.getTreeData=R,t.updateNode=D,t.walk=P;var r=v(n(70894)),i=v(n(829)),o=v(n(2784)),a=n(46670),s=n(28165),l=n(57903),u=n(34752),c=n(21023),d=n(1704),f=n(30762),p=v(n(13980)),h=v(n(19155)),m=n(58308),g=n(45624);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t16*e.depth+18),"px;border-left:2px solid #fff;",f.Icon,"{margin-right:4px;flex-shrink:0;}",(e=>(0,s.css)("&:hover,&:active,&.",e.activeClassName,"{color:",f.colors.active,";background-color:",f.colors.activeBackground,";border-left-color:#4863c6;};label:TreeNavLink;")),";");function T(e){var t;return e.isRoot?e.title:(null===(t=e.children.find((e=>!e.isDir&&e.title)))||void 0===t?void 0:t.title)||e.title}function O(e){const{collection:t,treeData:n,depth:r=0,onToggle:a}=e,l=t.get("name");return(0,i.default)(n,T).map((e=>{var n;if(e.children.length<=1&&(null===(n=e.children[0])||void 0===n||!n.isDir)&&r>0)return null;let i=`/collections/${l}`;r>0&&(i=`${i}/filter${e.path}`);const u=T(e),c=0===r||e.children.some((e=>e.children.some((e=>e.isDir))));return(0,s.jsx)(o.default.Fragment,{key:e.path},(0,s.jsx)(A,{exact:!0,to:i,activeClassName:"sidebar-active",onClick:()=>a({node:e,expanded:!e.expanded}),depth:r,"data-testid":e.path},(0,s.jsx)(f.Icon,{type:"write"}),(0,s.jsx)(x,null,(0,s.jsx)(k,null,u),c&&(e.expanded?(0,s.jsx)(C,null):(0,s.jsx)(S,null)))),e.expanded&&(0,s.jsx)(O,{collection:t,depth:r+1,treeData:e.children,onToggle:a}))}))}function P(e,t){return function e(n){for(const r of n)t(r),e(r.children)}(e)}function R(e,t){const n=e.get("folder"),r=t.toJS().map((e=>b(b({},e),{},{path:e.path.slice(n.length)}))),i=r.reduce(((e,t)=>{let n=(0,c.dirname)(t.path);for(;!e[n]&&n&&"/"!==n;){const t=n.split(c.sep);e[n]=t.pop(),n=t.length&&t.join(c.sep)}return e}),{}),o=[{title:(e=e.getIn(["nested","summary"])?e.set("summary",e.getIn(["nested","summary"])):e.delete("summary")).get("label"),path:"/",isDir:!0,isRoot:!0},...Object.entries(i).map((([e,t])=>({title:t,path:e,isDir:!0,isRoot:!1}))),...r.map(((n,r)=>{let i=t.get(r);i=i.set("data",_(i.get("path"),i.get("data")));const o=(0,g.selectEntryCollectionTitle)(e,i);return b(b({},n),{},{title:o,isDir:!1,isRoot:!1})}))].reduce(((e,t)=>{const n="/"===t.path?"":(0,c.dirname)(t.path);return e[n]?e[n].push(t):e[n]=[t],e}),{});return o[""].reduce((function e(t,n){const r=n;let i=[];return o[r.path]&&(i=o[r.path].reduce(e,[])),t.push(b(b({},r),{},{children:i})),t}),[])}function D(e,t,n){let r=!1;return function e(i){if(r)return i;for(let e=0;ee(t.children))),i}([...e])}O.propTypes={collection:h.default.map.isRequired,depth:p.default.number,treeData:p.default.array.isRequired,onToggle:p.default.func.isRequired};class M extends o.default.Component{constructor(e){super(e),w(this,"onToggle",(({node:e,expanded:t})=>{if(!this.state.selected||this.state.selected.path===e.path||t){const n=D(this.state.treeData,e,(e=>b(b({},e),{},{expanded:t})));this.setState({treeData:n,selected:e,useFilter:!1})}else this.setState({selected:e,useFilter:!1})})),this.state={treeData:R(this.props.collection,this.props.entries),selected:null,useFilter:!0}}componentDidUpdate(e){const{collection:t,entries:n,filterTerm:r}=this.props;if(t!==e.collection||n!==e.entries||r!==e.filterTerm){const e={};P(this.state.treeData,(t=>{t.expanded&&(e[t.path]=!0)}));const i=R(t,n),o=`/${r}`;P(i,(t=>{(e[t.path]||this.state.useFilter&&o.startsWith(t.path))&&(t.expanded=!0)})),this.setState({treeData:i})}}render(){const{treeData:e}=this.state,{collection:t}=this.props;return(0,s.jsx)(O,{collection:t,treeData:e,onToggle:this.onToggle})}}t.NestedCollection=M,w(M,"propTypes",{collection:h.default.map.isRequired,entries:h.default.list.isRequired,filterTerm:p.default.string}),t.default=(0,l.connect)((function(e,t){const{collection:n}=t;return{entries:(0,m.selectEntries)(e.entries,n)||(0,a.List)()}}),null)(M)},9381:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Sidebar=void 0;var r=h(n(70894)),i=h(n(2784)),o=h(n(13980)),a=h(n(19155)),s=n(28165),l=n(9316),u=n(34752),c=n(30762),d=n(1582),f=h(n(98165)),p=h(n(21147));function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g={sidebarNavLinkActive:(0,s.css)("color:",c.colors.active,";background-color:",c.colors.activeBackground,";border-left-color:#4863c6;;label:sidebarNavLinkActive;")},v=(0,r.default)("aside",{target:"e1t18l343",label:"SidebarContainer"})(c.components.card,";width:250px;padding:8px 0 12px;position:fixed;max-height:calc(100vh - 112px);display:flex;flex-direction:column;"),y=(0,r.default)("h2",{target:"e1t18l342",label:"SidebarHeading"})("font-size:22px;font-weight:600;line-height:37px;padding:0;margin:10px 20px;color:",c.colors.textLead,";"),b=(0,r.default)("ul",{target:"e1t18l341",label:"SidebarNavList"})({name:"14vcqsr",styles:"margin:12px 0 0;list-style:none;overflow:auto"}),w=(0,r.default)(u.NavLink,{target:"e1t18l340",label:"SidebarNavLink"})("display:flex;font-size:14px;font-weight:500;align-items:center;padding:8px 18px;border-left:2px solid #fff;z-index:-1;",c.Icon,"{margin-right:4px;flex-shrink:0;}",(e=>(0,s.css)("&:hover,&:active,&.",e.activeClassName,"{",g.sidebarNavLinkActive,";};label:SidebarNavLink;")),";");class _ extends i.default.Component{constructor(...e){super(...e),m(this,"renderLink",((e,t)=>{const n=e.get("name");return e.has("nested")?(0,s.jsx)("li",{key:n},(0,s.jsx)(p.default,{collection:e,filterTerm:t,"data-testid":n})):(0,s.jsx)("li",{key:n},(0,s.jsx)(w,{to:`/collections/${n}`,activeClassName:"sidebar-active","data-testid":n},(0,s.jsx)(c.Icon,{type:"write"}),e.get("label")))}))}render(){const{collections:e,collection:t,isSearchEnabled:n,searchTerm:r,t:i,filterTerm:o}=this.props;return(0,s.jsx)(v,null,(0,s.jsx)(y,null,i("collection.sidebar.collections")),n&&(0,s.jsx)(f.default,{searchTerm:r,collections:e,collection:t,onSubmit:(e,t)=>(0,d.searchCollections)(e,t)}),(0,s.jsx)(b,null,e.toList().filter((e=>!0!==e.get("hide"))).map((e=>this.renderLink(e,o)))))}}t.Sidebar=_,m(_,"propTypes",{collections:a.default.map.isRequired,collection:a.default.map,isSearchEnabled:o.default.bool,searchTerm:o.default.string,filterTerm:o.default.string,t:o.default.func.isRequired}),t.default=(0,l.translate)()(_)},61450:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,(r=n(2784))&&r.__esModule;var r,i=n(9316),o=n(30762),a=n(67964),s=n(16108),l=n(28165);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;te.direction!==a.SortDirection.None));return(0,l.jsx)(o.Dropdown,{renderButton:()=>(0,l.jsx)(s.ControlButton,{active:i,title:e("collection.collectionTop.sortBy")}),closeOnSelection:!1,dropdownTopOverlap:"30px",dropdownWidth:"160px",dropdownPosition:"left"},t.map((e=>{const t=null==r?void 0:r.getIn([e.key,"direction"]),i=t&&t!==a.SortDirection.None,s=function(e){switch(e){case a.SortDirection.Ascending:return a.SortDirection.Descending;case a.SortDirection.Descending:return a.SortDirection.None;default:return a.SortDirection.Ascending}}(t);return(0,l.jsx)(o.DropdownItem,u({key:e.key,label:e.label,onClick:()=>n(e.key,s),isActive:i},i&&function(e){return{icon:"chevron",iconDirection:c[e],iconSmall:!0}}(t)))})))}))},37058:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(70894)),i=(s(n(2784)),n(30762)),o=n(78882),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("div",{target:"evv1i7c1",label:"ViewControlsSection"})({name:"k6mob8",styles:"display:flex;align-items:center;justify-content:flex-end;max-width:500px"}),u=(0,r.default)("button",{target:"evv1i7c0",label:"ViewControlsButton"})(i.buttons.button,";color:",(e=>e.isActive?i.colors.active:"#b3b9c4"),";background-color:transparent;display:block;padding:0;margin:0 4px;&:last-child{margin-right:0;}",i.Icon,"{display:block;}");t.default=function({viewStyle:e,onChangeViewStyle:t}){return(0,a.jsx)(l,null,(0,a.jsx)(u,{isActive:e===o.VIEW_STYLE_LIST,onClick:()=>t(o.VIEW_STYLE_LIST)},(0,a.jsx)(i.Icon,{type:"list"})),(0,a.jsx)(u,{isActive:e===o.VIEW_STYLE_GRID,onClick:()=>t(o.VIEW_STYLE_GRID)},(0,a.jsx)(i.Icon,{type:"grid"})))}},15694:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Editor=void 0;var r=_(n(54073)),i=_(n(13980)),o=_(n(2784)),a=_(n(19155)),s=n(57903),l=n(30762),u=n(9316),c=n(79278),d=n(76167),f=n(50236),p=n(91358),h=n(66145),m=n(36642),g=n(45624),v=n(61928),y=_(n(78767)),b=_(n(42531)),w=n(28165);function _(e){return e&&e.__esModule?e:{default:e}}function x(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class k extends o.default.Component{constructor(...e){super(...e),x(this,"createBackup",(0,r.default)((function(e,t){this.props.persistLocalBackup(e,t)}),2e3)),x(this,"handleChangeDraftField",((e,t,n,r)=>{const i=[this.props.unPublishedEntry,this.props.publishedEntry].filter(Boolean);this.props.changeDraftField({field:e,value:t,metadata:n,entries:i,i18n:r})})),x(this,"handleChangeStatus",(e=>{const{entryDraft:t,updateUnpublishedEntryStatus:n,collection:r,slug:i,currentStatus:o,t:a}=this.props;if(t.get("hasChanged"))return void window.alert(a("editor.editor.onUpdatingWithUnsavedChanges"));const s=v.status.get(e);n(r.get("name"),i,o,s)})),x(this,"handlePersistEntry",(async(e={})=>{const{createNew:t=!1,duplicate:n=!1}=e,{persistEntry:r,collection:i,currentStatus:o,hasWorkflow:a,loadEntry:s,slug:l,createDraftDuplicateFromEntry:u,entryDraft:d}=this.props;await r(i),this.deleteBackup(),t?((0,c.navigateToNewEntry)(i.get("name")),n&&u(d.get("entry"))):l&&a&&!o&&s(i,l)})),x(this,"handlePublishEntry",(async(e={})=>{const{createNew:t=!1,duplicate:n=!1}=e,{publishUnpublishedEntry:r,createDraftDuplicateFromEntry:i,entryDraft:o,collection:a,slug:s,currentStatus:l,t:u}=this.props;l===v.status.last()?o.get("hasChanged")?window.alert(u("editor.editor.onPublishingWithUnsavedChanges")):window.confirm(u("editor.editor.onPublishing"))&&(await r(a.get("name"),s),this.deleteBackup(),t&&(0,c.navigateToNewEntry)(a.get("name")),n&&i(o.get("entry"))):window.alert(u("editor.editor.onPublishingNotReady"))})),x(this,"handleUnpublishEntry",(async()=>{const{unpublishPublishedEntry:e,collection:t,slug:n,t:r}=this.props;if(window.confirm(r("editor.editor.onUnpublishing")))return await e(t,n),(0,c.navigateToCollection)(t.get("name"))})),x(this,"handleDuplicateEntry",(()=>{const{createDraftDuplicateFromEntry:e,collection:t,entryDraft:n}=this.props;(0,c.navigateToNewEntry)(t.get("name")),e(n.get("entry"))})),x(this,"handleDeleteEntry",(()=>{const{entryDraft:e,newEntry:t,collection:n,deleteEntry:r,slug:i,t:o}=this.props;if(e.get("hasChanged")){if(!window.confirm(o("editor.editor.onDeleteWithUnsavedChanges")))return}else if(!window.confirm(o("editor.editor.onDeletePublishedEntry")))return;if(t)return(0,c.navigateToCollection)(n.get("name"));setTimeout((async()=>(await r(n,i),this.deleteBackup(),(0,c.navigateToCollection)(n.get("name")))),0)})),x(this,"handleDeleteUnpublishedChanges",(async()=>{const{entryDraft:e,collection:t,slug:n,deleteUnpublishedEntry:r,loadEntry:i,isModification:o,t:a}=this.props;e.get("hasChanged")&&!window.confirm(a("editor.editor.onDeleteUnpublishedChangesWithUnsavedChanges"))||window.confirm(a("editor.editor.onDeleteUnpublishedChanges"))&&(await r(t.get("name"),n),this.deleteBackup(),o?i(t,n):(0,c.navigateToCollection)(t.get("name")))}))}componentDidMount(){const{newEntry:e,collection:t,slug:n,loadEntry:r,createEmptyDraft:i,loadEntries:o,retrieveLocalBackup:a,collectionEntriesLoaded:s,t:l}=this.props;a(t,n),e?i(t,this.props.location.search):r(t,n);const u=l("editor.editor.onLeavePage");this.exitBlocker=e=>{if(this.props.entryDraft.get("hasChanged"))return e.returnValue=u,u},window.addEventListener("beforeunload",this.exitBlocker);const d=c.history.block(((e,n)=>{const r=this.props.entryDraft.getIn(["entry","isPersisting"]),i=this.props.entryDraft.getIn(["entry","newRecord"]),o=`/collections/${t.get("name")}/new`;if(!r||!i||this.props.location.pathname!==o||"PUSH"!==n)return this.props.hasChanged?u:void 0}));this.unlisten=c.history.listen(((e,n)=>{const r=`/collections/${t.get("name")}/new`,i=`/collections/${t.get("name")}/entries/`,{pathname:o}=e;o.startsWith(r)||o.startsWith(i)&&"PUSH"===n||(this.deleteBackup(),d(),this.unlisten())})),s||o(t)}componentDidUpdate(e){if(!e.localBackup&&this.props.localBackup&&(window.confirm(this.props.t("editor.editor.confirmLoadBackup"))?this.props.loadLocalBackup():this.deleteBackup()),this.props.hasChanged&&this.createBackup(this.props.entryDraft.get("entry"),this.props.collection),e.entry===this.props.entry)return;const{newEntry:t,collection:n}=this.props;t&&e.createEmptyDraft(n,this.props.location.search)}componentWillUnmount(){this.createBackup.flush(),this.props.discardDraft(),window.removeEventListener("beforeunload",this.exitBlocker)}deleteBackup(){const{deleteLocalBackup:e,collection:t,slug:n,newEntry:r}=this.props;this.createBackup.cancel(),e(t,!r&&n)}render(){const{entry:e,entryDraft:t,fields:n,collection:r,changeDraftFieldValidation:i,user:o,hasChanged:a,displayUrl:s,hasWorkflow:u,useOpenAuthoring:c,unpublishedEntry:d,newEntry:f,isModification:p,currentStatus:h,logoutUser:m,deployPreview:g,loadDeployPreview:v,draftKey:b,slug:_,t:x,editorBackLink:k}=this.props,E=!f&&!d;return e&&e.get("error")?(0,w.jsx)("div",null,(0,w.jsx)("h3",null,e.get("error"))):null==t||void 0===t.get("entry")||e&&e.get("isFetching")?(0,w.jsx)(l.Loader,{active:!0},x("editor.editor.loadingEntry")):(0,w.jsx)(y.default,{draftKey:b,entry:t.get("entry"),collection:r,fields:n,fieldsMetaData:t.get("fieldsMetaData"),fieldsErrors:t.get("fieldsErrors"),onChange:this.handleChangeDraftField,onValidate:i,onPersist:this.handlePersistEntry,onDelete:this.handleDeleteEntry,onDeleteUnpublishedChanges:this.handleDeleteUnpublishedChanges,onChangeStatus:this.handleChangeStatus,onPublish:this.handlePublishEntry,unPublish:this.handleUnpublishEntry,onDuplicate:this.handleDuplicateEntry,showDelete:this.props.showDelete,user:o,hasChanged:a,displayUrl:s,hasWorkflow:u,useOpenAuthoring:c,hasUnpublishedChanges:d,isNewEntry:f,isModification:p,currentStatus:h,onLogoutClick:m,deployPreview:g,loadDeployPreview:t=>v(r,_,e,E,t),editorBackLink:k,t:x})}}t.Editor=k,x(k,"propTypes",{changeDraftField:i.default.func.isRequired,changeDraftFieldValidation:i.default.func.isRequired,collection:a.default.map.isRequired,createDraftDuplicateFromEntry:i.default.func.isRequired,createEmptyDraft:i.default.func.isRequired,discardDraft:i.default.func.isRequired,entry:a.default.map,entryDraft:a.default.map.isRequired,loadEntry:i.default.func.isRequired,persistEntry:i.default.func.isRequired,deleteEntry:i.default.func.isRequired,showDelete:i.default.bool.isRequired,fields:a.default.list.isRequired,slug:i.default.string,newEntry:i.default.bool.isRequired,displayUrl:i.default.string,hasWorkflow:i.default.bool,useOpenAuthoring:i.default.bool,unpublishedEntry:i.default.bool,isModification:i.default.bool,collectionEntriesLoaded:i.default.bool,updateUnpublishedEntryStatus:i.default.func.isRequired,publishUnpublishedEntry:i.default.func.isRequired,deleteUnpublishedEntry:i.default.func.isRequired,logoutUser:i.default.func.isRequired,loadEntries:i.default.func.isRequired,deployPreview:i.default.object,loadDeployPreview:i.default.func.isRequired,currentStatus:i.default.string,user:i.default.object,location:i.default.shape({pathname:i.default.string,search:i.default.string}),hasChanged:i.default.bool,t:i.default.func.isRequired,retrieveLocalBackup:i.default.func.isRequired,localBackup:a.default.map,loadLocalBackup:i.default.func,persistLocalBackup:i.default.func.isRequired,deleteLocalBackup:i.default.func});const E={changeDraftField:f.changeDraftField,changeDraftFieldValidation:f.changeDraftFieldValidation,loadEntry:f.loadEntry,loadEntries:f.loadEntries,loadDeployPreview:h.loadDeployPreview,loadLocalBackup:f.loadLocalBackup,retrieveLocalBackup:f.retrieveLocalBackup,persistLocalBackup:f.persistLocalBackup,deleteLocalBackup:f.deleteLocalBackup,createDraftDuplicateFromEntry:f.createDraftDuplicateFromEntry,createEmptyDraft:f.createEmptyDraft,discardDraft:f.discardDraft,persistEntry:f.persistEntry,deleteEntry:f.deleteEntry,updateUnpublishedEntryStatus:p.updateUnpublishedEntryStatus,publishUnpublishedEntry:p.publishUnpublishedEntry,unpublishPublishedEntry:p.unpublishPublishedEntry,deleteUnpublishedEntry:p.deleteUnpublishedEntry,logoutUser:d.logoutUser};t.default=(0,s.connect)((function(e,t){const{collections:n,entryDraft:r,auth:i,config:o,entries:a,globalUI:s}=e,l=t.match.params[0],u=n.get(t.match.params.name),c=u.get("name"),d=!0===t.newRecord,f=(0,g.selectFields)(u,l),p=d?null:(0,m.selectEntry)(e,c,l),h=i.user,y=r.get("hasChanged"),b=o.display_url,w=o.publish_mode===v.EDITORIAL_WORKFLOW,_=s.useOpenAuthoring,x=r.getIn(["entry","isModification"]),k=!!a.getIn(["pages",c]),E=(0,m.selectUnpublishedEntry)(e,c,l),C=(0,m.selectEntry)(e,c,l),S=E&&E.get("status"),A=(0,m.selectDeployPreview)(e,c,l),T=r.get("localBackup"),O=r.get("key");let P=`/collections/${c}`;if("workflow"===new URLSearchParams(t.location.search).get("ref")&&(P="/workflow"),u.has("nested")&&l){const e=l.split("/");e.length>2&&(P=`${P}/filter/${e.slice(0,-2).join("/")}`)}return{collection:u,collections:n,newEntry:d,entryDraft:r,fields:f,slug:l,entry:p,user:h,hasChanged:y,displayUrl:b,hasWorkflow:w,useOpenAuthoring:_,isModification:x,collectionEntriesLoaded:k,currentStatus:S,deployPreview:A,localBackup:T,draftKey:O,publishedEntry:C,unPublishedEntry:E,editorBackLink:P}}),E)((0,b.default)((0,u.translate)()(k)))},65886:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ControlHint=void 0;var r=E(n(70894)),i=E(n(74930)),o=E(n(83465)),a=E(n(2784)),s=n(74081),l=E(n(13980)),u=E(n(19155)),c=n(9316),d=n(28165),f=n(57903),p=n(30762),h=E(n(88100)),m=E(n(40940)),g=n(41891),v=n(50236),y=n(71033),b=n(33474),w=n(15207),_=n(68104),x=E(n(57622));const k=["node"];function E(e){return e&&e.__esModule?e:{default:e}}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;te.error?p.colors.errorText:e.active?p.colors.active:p.colors.controlLabel),";transition:color ",p.transitions.main,";");function M({field:e,isActive:t,hasErrors:n,uniqueFieldId:r,isFieldOptional:i,t:o}){const s=`${e.get("label",e.get("name"))}`;return(0,d.jsx)(p.FieldLabel,{isActive:t,hasErrors:n,htmlFor:r},i?(0,d.jsx)(a.default.Fragment,null,s,(0,d.jsx)("span",null,` (${o("editor.editorControl.field.optional")})`)):s)}class I extends a.default.Component{constructor(...e){super(...e),T(this,"state",{activeLabel:!1}),T(this,"uniqueFieldId",(0,i.default)(`${this.props.field.get("name")}-field-`)),T(this,"isAncestorOfFieldError",(()=>{const{fieldsErrors:e}=this.props;return!!(e&&e.size>0)&&Object.values(e.toJS()).some((e=>e.some((e=>e.parentIds&&e.parentIds.includes(this.uniqueFieldId)))))}))}render(){const{value:e,entry:t,collection:n,config:r,field:i,fieldsMetaData:a,fieldsErrors:s,mediaPaths:l,boundGetAsset:u,onChange:c,openMediaLibrary:f,clearMediaControl:p,removeMediaControl:v,addAsset:y,removeInsertedMedia:b,persistMedia:w,onValidate:_,processControlRef:E,controlRef:C,query:S,queryHits:T,isFetching:I,clearSearch:j,clearFieldErrors:N,loadEntry:F,className:B,isSelected:z,isEditorComponent:U,isNewEditorComponent:q,parentIds:W,t:$,validateMetaField:H,isLoadingAsset:V,isDisabled:G,isHidden:K,isFieldDuplicate:Z,isFieldHidden:Y,locale:X,isParentListCollapsed:Q}=this.props,J=i.get("widget"),ee=(0,g.resolveWidget)(J),te=i.get("name"),ne=i.get("hint"),re=!1===i.get("required"),ie=_,oe=a&&a.get(te),ae=s&&s.get(this.uniqueFieldId),se=this.isAncestorOfFieldError(),le=!!ae||se;return(0,d.jsx)(d.ClassNames,null,(({css:a,cx:J})=>(0,d.jsx)(P,{className:B,css:a` + ${K&&O.hidden}; `},ee.globalStyles&&(0,d.jsx)(d.Global,{styles:(0,d.css)(ee.globalStyles,";;label:EditorControl;")}),ae&&(0,d.jsx)(R,null,ae.map((e=>e.message&&"string"==typeof e.message&&(0,d.jsx)("li",{key:e.message.trim().replace(/[^a-z0-9]+/gi,"-")},e.message)))),(0,d.jsx)(M,{field:i,isActive:z||this.state.styleActive,hasErrors:le,uniqueFieldId:this.uniqueFieldId,isFieldOptional:re,t:$}),(0,d.jsx)(x.default,{classNameWrapper:J(a` - ${A.widget}; + ${O.widget}; `,{[a` - ${A.widgetActive}; + ${O.widgetActive}; `]:z||this.state.styleActive},{[a` - ${A.widgetError}; + ${O.widgetError}; `]:le},{[a` - ${A.disabled} + ${O.disabled} `]:G}),classNameWidget:a` - ${A.widget}; + ${O.widget}; `,classNameWidgetActive:a` - ${A.widgetActive}; + ${O.widgetActive}; `,classNameLabel:a` - ${A.label}; + ${O.label}; `,classNameLabelActive:a` - ${A.labelActive}; - `,controlComponent:ee.control,entry:t,collection:n,config:r,field:i,uniqueFieldId:this.uniqueFieldId,value:e,mediaPaths:l,metadata:oe,onChange:(e,t)=>c(i,e,t),onValidate:_&&(0,o.default)(_,this.uniqueFieldId),onOpenMediaLibrary:f,onClearMediaControl:p,onRemoveMediaControl:v,onRemoveInsertedMedia:b,onPersistMedia:w,onAddAsset:y,getAsset:u,hasActiveStyle:z||this.state.styleActive,setActiveStyle:()=>this.setState({styleActive:!0}),setInactiveStyle:()=>this.setState({styleActive:!1}),resolveWidget:g.resolveWidget,widget:ee,getEditorComponents:g.getEditorComponents,ref:E&&(0,o.default)(E,i),controlRef:S,editorControl:L,query:C,loadEntry:F,queryHits:O[this.uniqueFieldId]||[],clearSearch:j,clearFieldErrors:N,isFetching:I,fieldsErrors:s,onValidateObject:ie,isEditorComponent:U,isNewEditorComponent:q,parentIds:W,t:$,validateMetaField:H,isDisabled:G,isFieldDuplicate:Z,isFieldHidden:Y,isLoadingAsset:V,locale:X,isParentListCollapsed:Q}),ne&&(0,d.jsx)(D,{active:z||this.state.styleActive,error:le},(0,d.jsx)(h.default,{remarkPlugins:[m.default],allowedElements:["a","strong","em","del"],unwrapDisallowed:!0,components:{a:e=>{let{node:t}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,k);return(0,d.jsx)("a",T({},n,{target:"_blank",rel:"noopener noreferrer",style:{color:"inherit"}}))}}},ne)))))}}O(I,"propTypes",{value:l.default.oneOfType([l.default.node,l.default.object,l.default.string,l.default.bool]),field:u.default.map.isRequired,fieldsMetaData:u.default.map,fieldsErrors:u.default.map,mediaPaths:u.default.map.isRequired,boundGetAsset:l.default.func.isRequired,onChange:l.default.func.isRequired,openMediaLibrary:l.default.func.isRequired,addAsset:l.default.func.isRequired,removeInsertedMedia:l.default.func.isRequired,persistMedia:l.default.func.isRequired,onValidate:l.default.func,processControlRef:l.default.func,controlRef:l.default.func,query:l.default.func.isRequired,queryHits:l.default.object,isFetching:l.default.bool,clearSearch:l.default.func.isRequired,clearFieldErrors:l.default.func.isRequired,loadEntry:l.default.func.isRequired,t:l.default.func.isRequired,isEditorComponent:l.default.bool,isNewEditorComponent:l.default.bool,parentIds:l.default.arrayOf(l.default.string),entry:u.default.map.isRequired,collection:u.default.map.isRequired,isDisabled:l.default.bool,isHidden:l.default.bool,isFieldDuplicate:l.default.func,isFieldHidden:l.default.func,locale:l.default.string,isParentListCollapsed:l.default.bool}),O(I,"defaultProps",{parentIds:[]});const L=(0,f.connect)((function(e){const{collections:t,entryDraft:n}=e,r=n.get("entry"),i=t.get(n.getIn(["entry","collection"])),o=(0,b.selectIsLoadingAsset)(e.medias);return{mediaPaths:e.mediaLibrary.get("controlMedia"),isFetching:e.search.isFetching,queryHits:e.search.queryHits,config:e.config,entry:r,collection:i,isLoadingAsset:o,loadEntry:async function(n,r){const i=t.get(n);if(i)return await(0,v.tryLoadEntry)(e,i,r);throw new Error(`Can't find collection '${n}'`)},validateMetaField:(t,n,r)=>(0,v.validateMetaField)(e,i,t,n,r)}}),(function(e){return C(C({},(0,s.bindActionCreators)({openMediaLibrary:_.openMediaLibrary,clearMediaControl:_.clearMediaControl,removeMediaControl:_.removeMediaControl,removeInsertedMedia:_.removeInsertedMedia,persistMedia:_.persistMedia,addAsset:y.addAsset,query:w.query,clearSearch:w.clearSearch,clearFieldErrors:v.clearFieldErrors},e)),{},{boundGetAsset:(t,n)=>(0,y.boundGetAsset)(e,t,n)})}),(function(e,t,n){return C(C(C(C({},e),t),n),{},{boundGetAsset:t.boundGetAsset(e.collection,e.entry)})}))((0,c.translate)()(I));t.default=L},46776:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(70894)),i=d(n(2784)),o=d(n(13980)),a=d(n(19155)),s=n(28165),l=n(30762),u=d(n(65886)),c=n(13943);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p=(0,r.default)("div",{target:"e11hw0lx4",label:"ControlPaneContainer"})({name:"1n0x6o4",styles:"max-width:800px;margin:0 auto;padding-bottom:16px;font-size:16px"}),h=(0,r.default)(l.StyledDropdownButton,{target:"e11hw0lx3",label:"LocaleButton"})(l.buttons.button,";",l.buttons.medium,";color:",l.colors.controlLabel,";background:",l.colors.textFieldBorder,";height:100%;&:after{top:11px;}"),m=(0,r.default)("div",{target:"e11hw0lx2",label:"LocaleButtonWrapper"})({name:"zjik7",styles:"display:flex"}),g=(0,r.default)("div",{target:"e11hw0lx1",label:"LocaleRowWrapper"})({name:"zjik7",styles:"display:flex"}),v=(0,r.default)(l.Dropdown,{target:"e11hw0lx0",label:"StyledDropdown"})({name:"1hfmrg2",styles:"width:max-content;margin-top:20px;margin-bottom:20px;margin-right:20px"});function y({locales:e,dropdownText:t,onLocaleChange:n}){return(0,s.jsx)(v,{renderButton:()=>(0,s.jsx)(m,null,(0,s.jsx)(h,null,t))},e.map((e=>(0,s.jsx)(l.DropdownItem,{css:(0,s.css)(l.text.fieldLabel,";;label:LocaleDropdown;"),key:e,label:e,onClick:()=>n(e)}))))}function b({field:e,entry:t,isTranslatable:n,locale:r}){if(e.get("meta"))return t.getIn(["meta",e.get("name")]);if(n){const n=(0,c.getLocaleDataPath)(r);return t.getIn([...n,e.get("name")])}return t.getIn(["data",e.get("name")])}class w extends i.default.Component{constructor(...e){super(...e),f(this,"state",{selectedLocale:this.props.locale}),f(this,"componentValidate",{}),f(this,"handleLocaleChange",(e=>{this.setState({selectedLocale:e}),this.props.onLocaleChange(e)})),f(this,"copyFromOtherLocale",(({targetLocale:e,t})=>n=>{if(!window.confirm(t("editor.editorControlPane.i18n.copyFromLocaleConfirm",{locale:n.toUpperCase()})))return;const{entry:r,collection:i}=this.props,{locales:o,defaultLocale:a}=(0,c.getI18nInfo)(i),s=this.state.selectedLocale,l=o&&{currentLocale:s,locales:o,defaultLocale:a};this.props.fields.forEach((t=>{if((0,c.isFieldTranslatable)(t,e,n)){const e=b({field:t,entry:r,locale:n,isTranslatable:n!==a});e&&this.props.onChange(t,e,void 0,l)}}))})),f(this,"validate",(async()=>{this.props.fields.forEach((e=>{"hidden"!==e.get("widget")&&this.componentValidate[e.get("name")]()}))})),f(this,"switchToDefaultLocale",(()=>{if((0,c.hasI18n)(this.props.collection)){const{defaultLocale:e}=(0,c.getI18nInfo)(this.props.collection);return new Promise((t=>this.setState({selectedLocale:e},t)))}return Promise.resolve()}))}controlRef(e,t){var n;if(!t)return;const r=e.get("name");this.componentValidate[r]=(null===(n=t.innerWrappedControl)||void 0===n?void 0:n.validate)||t.validate}render(){const{collection:e,entry:t,fields:n,fieldsMetaData:r,fieldsErrors:i,onChange:o,onValidate:a,t:l}=this.props;if(!e||!n)return null;if(0===t.size||!0===t.get("partial"))return null;const{locales:d,defaultLocale:f}=(0,c.getI18nInfo)(e),h=this.state.selectedLocale,m=d&&{currentLocale:h,locales:d,defaultLocale:f};return(0,s.jsx)(p,null,d&&(0,s.jsx)(g,null,(0,s.jsx)(y,{locales:d,dropdownText:l("editor.editorControlPane.i18n.writingInLocale",{locale:h.toUpperCase()}),onLocaleChange:this.handleLocaleChange}),(0,s.jsx)(y,{locales:d.filter((e=>e!==h)),dropdownText:l("editor.editorControlPane.i18n.copyFromLocale"),onLocaleChange:this.copyFromOtherLocale({targetLocale:h,t:l})})),n.filter((e=>"hidden"!==e.get("widget"))).map(((n,l)=>{const d=(0,c.isFieldTranslatable)(n,h,f),p=(0,c.isFieldDuplicate)(n,h,f),g=(0,c.isFieldHidden)(n,h,f),v=m?`${h}_${l}`:l;return(0,s.jsx)(u.default,{key:v,field:n,value:b({field:n,entry:t,locale:h,isTranslatable:d}),fieldsMetaData:r,fieldsErrors:i,onChange:(e,t,n)=>{o(e,t,n,m)},onValidate:a,processControlRef:this.controlRef.bind(this),controlRef:this.controlRef,entry:t,collection:e,isDisabled:p,isHidden:g,isFieldDuplicate:e=>(0,c.isFieldDuplicate)(e,h,f),isFieldHidden:e=>(0,c.isFieldHidden)(e,h,f),locale:h})})))}}t.default=w,w.propTypes={collection:a.default.map.isRequired,entry:a.default.map.isRequired,fields:a.default.list.isRequired,fieldsMetaData:a.default.map.isRequired,fieldsErrors:a.default.map.isRequired,onChange:o.default.func.isRequired,onValidate:o.default.func.isRequired,locale:o.default.string}},57622:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(13980)),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(2784)),o=d(n(19155)),a=n(46670),s=n(13856),l=n(41891),u=d(n(1757));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(){return{error:!1}}function h(e){return null==e||Object.prototype.hasOwnProperty.call(e,"length")&&0===e.length||e.constructor===Object&&0===Object.keys(e).length||a.List.isList(e)&&0===e.size}class m extends i.Component{constructor(...e){super(...e),f(this,"processInnerControlRef",(e=>{if(!e)return;this.innerWrappedControl=e.getWrappedInstance?e.getWrappedInstance():e,this.wrappedControlValid=this.innerWrappedControl.isValid||p;const{shouldComponentUpdate:t}=this.innerWrappedControl;this.wrappedControlShouldComponentUpdate=t&&t.bind(this.innerWrappedControl)})),f(this,"getValidateValue",(()=>{var e,t;let n=(null===(e=this.innerWrappedControl)||void 0===e||null===(t=e.getValidateValue)||void 0===t?void 0:t.call(e))||this.props.value;return a.List.isList(n)&&(n=n.join(",")),n})),f(this,"validate",((e=!1)=>{const t=this.getValidateValue(),n=this.props.field,r=[],i=[this.validatePresence,this.validatePattern];if(n.get("meta")&&i.push(this.props.validateMetaField),i.forEach((e=>{const i=e(n,t,this.props.t);i.error&&r.push(i.error)})),e)e.error&&r.push(e.error);else{const e=this.validateWrappedControl(n);e.error&&r.push(e.error)}this.props.onValidate(r)})),f(this,"validatePresence",((e,t)=>{const{t:n,parentIds:r}=this.props;return e.get("required",!0)&&h(t)?{error:{type:u.default.PRESENCE,parentIds:r,message:n("editor.editorControlPane.widget.required",{fieldLabel:e.get("label",e.get("name"))})}}:{error:!1}})),f(this,"validatePattern",((e,t)=>{const{t:n,parentIds:r}=this.props,i=e.get("pattern",!1);return h(t)?{error:!1}:i&&!RegExp(i.first()).test(t)?{error:{type:u.default.PATTERN,parentIds:r,message:n("editor.editorControlPane.widget.regexPattern",{fieldLabel:e.get("label",e.get("name")),pattern:i.last()})}}:{error:!1}})),f(this,"validateWrappedControl",(e=>{const{t,parentIds:n}=this.props;if("function"!=typeof this.wrappedControlValid)throw new Error(s.oneLine` + ${O.labelActive}; + `,controlComponent:ee.control,entry:t,collection:n,config:r,field:i,uniqueFieldId:this.uniqueFieldId,value:e,mediaPaths:l,metadata:oe,onChange:(e,t)=>c(i,e,t),onValidate:_&&(0,o.default)(_,this.uniqueFieldId),onOpenMediaLibrary:f,onClearMediaControl:p,onRemoveMediaControl:v,onRemoveInsertedMedia:b,onPersistMedia:w,onAddAsset:y,getAsset:u,hasActiveStyle:z||this.state.styleActive,setActiveStyle:()=>this.setState({styleActive:!0}),setInactiveStyle:()=>this.setState({styleActive:!1}),resolveWidget:g.resolveWidget,widget:ee,getEditorComponents:g.getEditorComponents,ref:E&&(0,o.default)(E,i),controlRef:C,editorControl:L,query:S,loadEntry:F,queryHits:T[this.uniqueFieldId]||[],clearSearch:j,clearFieldErrors:N,isFetching:I,fieldsErrors:s,onValidateObject:ie,isEditorComponent:U,isNewEditorComponent:q,parentIds:W,t:$,validateMetaField:H,isDisabled:G,isFieldDuplicate:Z,isFieldHidden:Y,isLoadingAsset:V,locale:X,isParentListCollapsed:Q}),ne&&(0,d.jsx)(D,{active:z||this.state.styleActive,error:le},(0,d.jsx)(h.default,{remarkPlugins:[m.default],allowedElements:["a","strong","em","del"],unwrapDisallowed:!0,components:{a:e=>{let{node:t}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,k);return(0,d.jsx)("a",A({},n,{target:"_blank",rel:"noopener noreferrer",style:{color:"inherit"}}))}}},ne)))))}}T(I,"propTypes",{value:l.default.oneOfType([l.default.node,l.default.object,l.default.string,l.default.bool]),field:u.default.map.isRequired,fieldsMetaData:u.default.map,fieldsErrors:u.default.map,mediaPaths:u.default.map.isRequired,boundGetAsset:l.default.func.isRequired,onChange:l.default.func.isRequired,openMediaLibrary:l.default.func.isRequired,addAsset:l.default.func.isRequired,removeInsertedMedia:l.default.func.isRequired,persistMedia:l.default.func.isRequired,onValidate:l.default.func,processControlRef:l.default.func,controlRef:l.default.func,query:l.default.func.isRequired,queryHits:l.default.object,isFetching:l.default.bool,clearSearch:l.default.func.isRequired,clearFieldErrors:l.default.func.isRequired,loadEntry:l.default.func.isRequired,t:l.default.func.isRequired,isEditorComponent:l.default.bool,isNewEditorComponent:l.default.bool,parentIds:l.default.arrayOf(l.default.string),entry:u.default.map.isRequired,collection:u.default.map.isRequired,isDisabled:l.default.bool,isHidden:l.default.bool,isFieldDuplicate:l.default.func,isFieldHidden:l.default.func,locale:l.default.string,isParentListCollapsed:l.default.bool}),T(I,"defaultProps",{parentIds:[]});const L=(0,f.connect)((function(e){const{collections:t,entryDraft:n}=e,r=n.get("entry"),i=t.get(n.getIn(["entry","collection"])),o=(0,b.selectIsLoadingAsset)(e.medias);return{mediaPaths:e.mediaLibrary.get("controlMedia"),isFetching:e.search.isFetching,queryHits:e.search.queryHits,config:e.config,entry:r,collection:i,isLoadingAsset:o,loadEntry:async function(n,r){const i=t.get(n);if(i)return await(0,v.tryLoadEntry)(e,i,r);throw new Error(`Can't find collection '${n}'`)},validateMetaField:(t,n,r)=>(0,v.validateMetaField)(e,i,t,n,r)}}),(function(e){return S(S({},(0,s.bindActionCreators)({openMediaLibrary:_.openMediaLibrary,clearMediaControl:_.clearMediaControl,removeMediaControl:_.removeMediaControl,removeInsertedMedia:_.removeInsertedMedia,persistMedia:_.persistMedia,addAsset:y.addAsset,query:w.query,clearSearch:w.clearSearch,clearFieldErrors:v.clearFieldErrors},e)),{},{boundGetAsset:(t,n)=>(0,y.boundGetAsset)(e,t,n)})}),(function(e,t,n){return S(S(S(S({},e),t),n),{},{boundGetAsset:t.boundGetAsset(e.collection,e.entry)})}))((0,c.translate)()(I));t.default=L},46776:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(70894)),i=d(n(2784)),o=d(n(13980)),a=d(n(19155)),s=n(28165),l=n(30762),u=d(n(65886)),c=n(13943);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p=(0,r.default)("div",{target:"e11hw0lx4",label:"ControlPaneContainer"})({name:"1n0x6o4",styles:"max-width:800px;margin:0 auto;padding-bottom:16px;font-size:16px"}),h=(0,r.default)(l.StyledDropdownButton,{target:"e11hw0lx3",label:"LocaleButton"})(l.buttons.button,";",l.buttons.medium,";color:",l.colors.controlLabel,";background:",l.colors.textFieldBorder,";height:100%;&:after{top:11px;}"),m=(0,r.default)("div",{target:"e11hw0lx2",label:"LocaleButtonWrapper"})({name:"zjik7",styles:"display:flex"}),g=(0,r.default)("div",{target:"e11hw0lx1",label:"LocaleRowWrapper"})({name:"zjik7",styles:"display:flex"}),v=(0,r.default)(l.Dropdown,{target:"e11hw0lx0",label:"StyledDropdown"})({name:"1hfmrg2",styles:"width:max-content;margin-top:20px;margin-bottom:20px;margin-right:20px"});function y({locales:e,dropdownText:t,onLocaleChange:n}){return(0,s.jsx)(v,{renderButton:()=>(0,s.jsx)(m,null,(0,s.jsx)(h,null,t))},e.map((e=>(0,s.jsx)(l.DropdownItem,{css:(0,s.css)(l.text.fieldLabel,";;label:LocaleDropdown;"),key:e,label:e,onClick:()=>n(e)}))))}function b({field:e,entry:t,isTranslatable:n,locale:r}){if(e.get("meta"))return t.getIn(["meta",e.get("name")]);if(n){const n=(0,c.getLocaleDataPath)(r);return t.getIn([...n,e.get("name")])}return t.getIn(["data",e.get("name")])}class w extends i.default.Component{constructor(...e){super(...e),f(this,"state",{selectedLocale:this.props.locale}),f(this,"componentValidate",{}),f(this,"handleLocaleChange",(e=>{this.setState({selectedLocale:e}),this.props.onLocaleChange(e)})),f(this,"copyFromOtherLocale",(({targetLocale:e,t})=>n=>{if(!window.confirm(t("editor.editorControlPane.i18n.copyFromLocaleConfirm",{locale:n.toUpperCase()})))return;const{entry:r,collection:i}=this.props,{locales:o,defaultLocale:a}=(0,c.getI18nInfo)(i),s=this.state.selectedLocale,l=o&&{currentLocale:s,locales:o,defaultLocale:a};this.props.fields.forEach((t=>{if((0,c.isFieldTranslatable)(t,e,n)){const e=b({field:t,entry:r,locale:n,isTranslatable:n!==a});e&&this.props.onChange(t,e,void 0,l)}}))})),f(this,"validate",(async()=>{this.props.fields.forEach((e=>{"hidden"!==e.get("widget")&&this.componentValidate[e.get("name")]()}))})),f(this,"switchToDefaultLocale",(()=>{if((0,c.hasI18n)(this.props.collection)){const{defaultLocale:e}=(0,c.getI18nInfo)(this.props.collection);return new Promise((t=>this.setState({selectedLocale:e},t)))}return Promise.resolve()}))}controlRef(e,t){var n;if(!t)return;const r=e.get("name");this.componentValidate[r]=(null===(n=t.innerWrappedControl)||void 0===n?void 0:n.validate)||t.validate}render(){const{collection:e,entry:t,fields:n,fieldsMetaData:r,fieldsErrors:i,onChange:o,onValidate:a,t:l}=this.props;if(!e||!n)return null;if(0===t.size||!0===t.get("partial"))return null;const{locales:d,defaultLocale:f}=(0,c.getI18nInfo)(e),h=this.state.selectedLocale,m=d&&{currentLocale:h,locales:d,defaultLocale:f};return(0,s.jsx)(p,null,d&&(0,s.jsx)(g,null,(0,s.jsx)(y,{locales:d,dropdownText:l("editor.editorControlPane.i18n.writingInLocale",{locale:h.toUpperCase()}),onLocaleChange:this.handleLocaleChange}),(0,s.jsx)(y,{locales:d.filter((e=>e!==h)),dropdownText:l("editor.editorControlPane.i18n.copyFromLocale"),onLocaleChange:this.copyFromOtherLocale({targetLocale:h,t:l})})),n.filter((e=>"hidden"!==e.get("widget"))).map(((n,l)=>{const d=(0,c.isFieldTranslatable)(n,h,f),p=(0,c.isFieldDuplicate)(n,h,f),g=(0,c.isFieldHidden)(n,h,f),v=m?`${h}_${l}`:l;return(0,s.jsx)(u.default,{key:v,field:n,value:b({field:n,entry:t,locale:h,isTranslatable:d}),fieldsMetaData:r,fieldsErrors:i,onChange:(e,t,n)=>{o(e,t,n,m)},onValidate:a,processControlRef:this.controlRef.bind(this),controlRef:this.controlRef,entry:t,collection:e,isDisabled:p,isHidden:g,isFieldDuplicate:e=>(0,c.isFieldDuplicate)(e,h,f),isFieldHidden:e=>(0,c.isFieldHidden)(e,h,f),locale:h})})))}}t.default=w,w.propTypes={collection:a.default.map.isRequired,entry:a.default.map.isRequired,fields:a.default.list.isRequired,fieldsMetaData:a.default.map.isRequired,fieldsErrors:a.default.map.isRequired,onChange:o.default.func.isRequired,onValidate:o.default.func.isRequired,locale:o.default.string}},57622:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(13980)),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(2784)),o=d(n(19155)),a=n(46670),s=n(13856),l=n(41891),u=d(n(1757));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(){return{error:!1}}function h(e){return null==e||Object.prototype.hasOwnProperty.call(e,"length")&&0===e.length||e.constructor===Object&&0===Object.keys(e).length||a.List.isList(e)&&0===e.size}class m extends i.Component{constructor(...e){super(...e),f(this,"processInnerControlRef",(e=>{if(!e)return;this.innerWrappedControl=e.getWrappedInstance?e.getWrappedInstance():e,this.wrappedControlValid=this.innerWrappedControl.isValid||p;const{shouldComponentUpdate:t}=this.innerWrappedControl;this.wrappedControlShouldComponentUpdate=t&&t.bind(this.innerWrappedControl)})),f(this,"getValidateValue",(()=>{var e,t;let n=(null===(e=this.innerWrappedControl)||void 0===e||null===(t=e.getValidateValue)||void 0===t?void 0:t.call(e))||this.props.value;return a.List.isList(n)&&(n=n.join(",")),n})),f(this,"validate",((e=!1)=>{const t=this.getValidateValue(),n=this.props.field,r=[],i=[this.validatePresence,this.validatePattern];if(n.get("meta")&&i.push(this.props.validateMetaField),i.forEach((e=>{const i=e(n,t,this.props.t);i.error&&r.push(i.error)})),e)e.error&&r.push(e.error);else{const e=this.validateWrappedControl(n);e.error&&r.push(e.error)}this.props.onValidate(r)})),f(this,"validatePresence",((e,t)=>{const{t:n,parentIds:r}=this.props;return e.get("required",!0)&&h(t)?{error:{type:u.default.PRESENCE,parentIds:r,message:n("editor.editorControlPane.widget.required",{fieldLabel:e.get("label",e.get("name"))})}}:{error:!1}})),f(this,"validatePattern",((e,t)=>{const{t:n,parentIds:r}=this.props,i=e.get("pattern",!1);return h(t)?{error:!1}:i&&!RegExp(i.first()).test(t)?{error:{type:u.default.PATTERN,parentIds:r,message:n("editor.editorControlPane.widget.regexPattern",{fieldLabel:e.get("label",e.get("name")),pattern:i.last()})}}:{error:!1}})),f(this,"validateWrappedControl",(e=>{const{t,parentIds:n}=this.props;if("function"!=typeof this.wrappedControlValid)throw new Error(s.oneLine` this.wrappedControlValid is not a function. Are you sure widget "${e.get("widget")}" is registered? - `);const r=this.wrappedControlValid();return"boolean"==typeof r?{error:!r}:Object.prototype.hasOwnProperty.call(r,"error")?r:r instanceof Promise?(r.then((()=>{this.validate({error:!1})}),(t=>{const n={type:u.default.CUSTOM,message:`${e.get("label",e.get("name"))} - ${t}.`};this.validate({error:n})})),{error:{type:u.default.CUSTOM,parentIds:n,message:t("editor.editorControlPane.widget.processing",{fieldLabel:e.get("label",e.get("name"))})}}):{error:!1}})),f(this,"getObjectValue",(()=>this.props.value||(0,a.Map)())),f(this,"onChangeObject",((e,t,n)=>{const r=this.getObjectValue().set(e.get("name"),t);return this.props.onChange(r,n&&{[this.props.field.get("name")]:n})})),f(this,"setInactiveStyle",(()=>{this.props.setInactiveStyle(),this.props.field.has("pattern")&&!h(this.getValidateValue())&&this.validate()}))}shouldComponentUpdate(e){return(!this.props.isLoadingAsset||!e.isLoadingAsset)&&(this.wrappedControlShouldComponentUpdate?this.wrappedControlShouldComponentUpdate(e):this.props.value!==e.value||this.props.classNameWrapper!==e.classNameWrapper||this.props.hasActiveStyle!==e.hasActiveStyle)}render(){const{controlComponent:e,entry:t,collection:n,config:r,field:o,value:a,mediaPaths:s,metadata:u,onChange:c,onValidateObject:d,onOpenMediaLibrary:f,onRemoveMediaControl:p,onPersistMedia:h,onClearMediaControl:m,onAddAsset:g,onRemoveInsertedMedia:v,getAsset:y,classNameWrapper:b,classNameWidget:w,classNameWidgetActive:_,classNameLabel:x,classNameLabelActive:k,setActiveStyle:E,hasActiveStyle:S,editorControl:C,uniqueFieldId:T,resolveWidget:O,widget:A,getEditorComponents:P,query:R,queryHits:D,clearSearch:M,clearFieldErrors:I,isFetching:L,loadEntry:j,fieldsErrors:N,controlRef:F,isEditorComponent:B,isNewEditorComponent:z,parentIds:U,t:q,isDisabled:W,isFieldDuplicate:$,isFieldHidden:H,locale:V,isParentListCollapsed:G}=this.props;return i.default.createElement(e,{entry:t,collection:n,config:r,field:o,value:a,mediaPaths:s,metadata:u,onChange:c,onChangeObject:this.onChangeObject,onValidateObject:d,onOpenMediaLibrary:f,onClearMediaControl:m,onRemoveMediaControl:p,onPersistMedia:h,onAddAsset:g,onRemoveInsertedMedia:v,getAsset:y,forID:T,ref:this.processInnerControlRef,validate:this.validate,classNameWrapper:b,classNameWidget:w,classNameWidgetActive:_,classNameLabel:x,classNameLabelActive:k,setActiveStyle:E,setInactiveStyle:()=>this.setInactiveStyle(),hasActiveStyle:S,editorControl:C,resolveWidget:O,widget:A,getEditorComponents:P,getRemarkPlugins:l.getRemarkPlugins,query:R,queryHits:D,clearSearch:M,clearFieldErrors:I,isFetching:L,loadEntry:j,isEditorComponent:B,isNewEditorComponent:z,fieldsErrors:N,controlRef:F,parentIds:U,t:q,isDisabled:W,isFieldDuplicate:$,isFieldHidden:H,locale:V,isParentListCollapsed:G})}}t.default=m,f(m,"propTypes",{controlComponent:r.default.func.isRequired,field:o.default.map.isRequired,hasActiveStyle:r.default.bool,setActiveStyle:r.default.func.isRequired,setInactiveStyle:r.default.func.isRequired,classNameWrapper:r.default.string.isRequired,classNameWidget:r.default.string.isRequired,classNameWidgetActive:r.default.string.isRequired,classNameLabel:r.default.string.isRequired,classNameLabelActive:r.default.string.isRequired,value:r.default.oneOfType([r.default.node,r.default.object,r.default.string,r.default.bool]),mediaPaths:o.default.map.isRequired,metadata:o.default.map,fieldsErrors:o.default.map,onChange:r.default.func.isRequired,onValidate:r.default.func,onOpenMediaLibrary:r.default.func.isRequired,onClearMediaControl:r.default.func.isRequired,onRemoveMediaControl:r.default.func.isRequired,onPersistMedia:r.default.func.isRequired,onAddAsset:r.default.func.isRequired,onRemoveInsertedMedia:r.default.func.isRequired,getAsset:r.default.func.isRequired,resolveWidget:r.default.func.isRequired,widget:r.default.object.isRequired,getEditorComponents:r.default.func.isRequired,isFetching:r.default.bool,controlRef:r.default.func,query:r.default.func.isRequired,clearSearch:r.default.func.isRequired,clearFieldErrors:r.default.func.isRequired,queryHits:r.default.oneOfType([r.default.array,r.default.object]),editorControl:r.default.elementType.isRequired,uniqueFieldId:r.default.string.isRequired,loadEntry:r.default.func.isRequired,t:r.default.func.isRequired,onValidateObject:r.default.func,isEditorComponent:r.default.bool,isNewEditorComponent:r.default.bool,entry:o.default.map.isRequired,isDisabled:r.default.bool,isFieldDuplicate:r.default.func,isFieldHidden:r.default.func,locale:r.default.string,isParentListCollapsed:r.default.bool})},78767:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=y(n(70894)),i=y(n(13980)),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=v(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(2784)),a=y(n(19155)),s=n(28165),l=y(n(31396)),u=n(30762),c=n(93232),d=y(n(46776)),f=y(n(75904)),p=y(n(6714)),h=n(13943),m=n(48781),g=n(45624);function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}function y(e){return e&&e.__esModule?e:{default:e}}function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;te.blockEntry?"none":"auto"),";overflow-y:",(e=>e.overFlow?"auto":"hidden"),";"),M=(0,r.default)(D,{target:"e1nx103k1",label:"ControlPaneContainer"})({name:"b2tic3",styles:"padding:0 16px;position:relative;overflow-x:hidden"}),I=(0,r.default)("div",{target:"e1nx103k0",label:"ViewControls"})("position:absolute;top:10px;right:10px;z-index:",u.zIndex.zIndex299,";");function L({i18nVisible:e,previewVisible:t,editor:n,editorWithEditor:r,editorWithPreview:i}){return e?r:t?i:(0,s.jsx)(A,null,n)}class j extends o.Component{constructor(...e){super(...e),w(this,"state",{showEventBlocker:!1,previewVisible:"false"!==localStorage.getItem(_),scrollSyncEnabled:"false"!==localStorage.getItem(x),i18nVisible:"false"!==localStorage.getItem(E)}),w(this,"handleSplitPaneDragStart",(()=>{this.setState({showEventBlocker:!0})})),w(this,"handleSplitPaneDragFinished",(()=>{this.setState({showEventBlocker:!1})})),w(this,"handleOnPersist",(async(e={})=>{const{createNew:t=!1,duplicate:n=!1}=e;await this.controlPaneRef.switchToDefaultLocale(),this.controlPaneRef.validate(),this.props.onPersist({createNew:t,duplicate:n})})),w(this,"handleOnPublish",(async(e={})=>{const{createNew:t=!1,duplicate:n=!1}=e;await this.controlPaneRef.switchToDefaultLocale(),this.controlPaneRef.validate(),this.props.onPublish({createNew:t,duplicate:n})})),w(this,"handleTogglePreview",(()=>{const e=!this.state.previewVisible;this.setState({previewVisible:e}),localStorage.setItem(_,e)})),w(this,"handleToggleScrollSync",(()=>{const e=!this.state.scrollSyncEnabled;this.setState({scrollSyncEnabled:e}),localStorage.setItem(x,e)})),w(this,"handleToggleI18n",(()=>{const e=!this.state.i18nVisible;this.setState({i18nVisible:e}),localStorage.setItem(E,e)})),w(this,"handleLeftPanelLocaleChange",(e=>{this.setState({leftPanelLocale:e})}))}render(){const{collection:e,entry:t,fields:n,fieldsMetaData:r,fieldsErrors:i,onChange:o,showDelete:a,onDelete:l,onDeleteUnpublishedChanges:u,onChangeStatus:v,onPublish:y,unPublish:w,onDuplicate:_,onValidate:x,user:E,hasChanged:S,displayUrl:A,hasWorkflow:j,useOpenAuthoring:N,hasUnpublishedChanges:F,isNewEntry:B,isModification:z,currentStatus:U,onLogoutClick:q,loadDeployPreview:W,deployPreview:$,draftKey:H,editorBackLink:V,t:G}=this.props,{scrollSyncEnabled:K,showEventBlocker:Z}=this.state,Y=function(e,t){if(e.get("type")===m.FILES){const n=(0,g.getFileFromSlug)(e,t.get("slug")),r=null==n?void 0:n.getIn(["editor","preview"]);if(null!=r)return r}return e.getIn(["editor","preview"],!0)}(e,t),{locales:X,defaultLocale:Q}=(0,h.getI18nInfo)(this.props.collection),J=(0,h.hasI18n)(e)&&X.length>1,ee={collection:e,entry:t,fields:n,fieldsMetaData:r,fieldsErrors:i,onChange:o,onValidate:x},te=this.state.leftPanelLocale||(null==X?void 0:X[0]),ne=(0,s.jsx)(M,{overFlow:!0,blockEntry:Z},(0,s.jsx)(d.default,b({},ee,{ref:e=>this.controlPaneRef=e,locale:te,t:G,onLocaleChange:this.handleLeftPanelLocaleChange}))),re=(0,s.jsx)(M,{overFlow:!this.state.scrollSyncEnabled,blockEntry:Z},(0,s.jsx)(d.default,b({},ee,{locale:null==X?void 0:X[1],t:G}))),ie=J?(0,h.getPreviewEntry)(t,te,Q):t,oe=(0,s.jsx)(c.ScrollSync,{enabled:this.state.scrollSyncEnabled},(0,s.jsx)("div",null,(0,s.jsx)(T,null),(0,s.jsx)(O,{maxSize:-100,minSize:400,defaultSize:parseInt(localStorage.getItem(k),10)||"50%",onChange:e=>localStorage.setItem(k,e),onDragStarted:this.handleSplitPaneDragStart,onDragFinished:this.handleSplitPaneDragFinished},(0,s.jsx)(c.ScrollSyncPane,null,ne),(0,s.jsx)(D,{blockEntry:Z},(0,s.jsx)(f.default,{collection:e,entry:ie,fields:n,fieldsMetaData:r,locale:te}))))),ae=(0,s.jsx)(c.ScrollSync,{enabled:this.state.scrollSyncEnabled},(0,s.jsx)("div",null,(0,s.jsx)(O,{maxSize:-100,defaultSize:parseInt(localStorage.getItem(k),10)||"50%",onChange:e=>localStorage.setItem(k,e),onDragStarted:this.handleSplitPaneDragStart,onDragFinished:this.handleSplitPaneDragFinished},(0,s.jsx)(c.ScrollSyncPane,null,ne),(0,s.jsx)(c.ScrollSyncPane,null,re)))),se=J&&this.state.i18nVisible,le=Y&&this.state.previewVisible,ue=se||le;return(0,s.jsx)(P,null,(0,s.jsx)(p.default,{isPersisting:t.get("isPersisting"),isPublishing:t.get("isPublishing"),isUpdatingStatus:t.get("isUpdatingStatus"),isDeleting:t.get("isDeleting"),onPersist:this.handleOnPersist,onPersistAndNew:()=>this.handleOnPersist({createNew:!0}),onPersistAndDuplicate:()=>this.handleOnPersist({createNew:!0,duplicate:!0}),onDelete:l,onDeleteUnpublishedChanges:u,onChangeStatus:v,showDelete:a,onPublish:y,unPublish:w,onDuplicate:_,onPublishAndNew:()=>this.handleOnPublish({createNew:!0}),onPublishAndDuplicate:()=>this.handleOnPublish({createNew:!0,duplicate:!0}),user:E,hasChanged:S,displayUrl:A,collection:e,hasWorkflow:j,useOpenAuthoring:N,hasUnpublishedChanges:F,isNewEntry:B,isModification:z,currentStatus:U,onLogoutClick:q,loadDeployPreview:W,deployPreview:$,editorBackLink:V}),(0,s.jsx)(R,{key:H},(0,s.jsx)(I,null,J&&(0,s.jsx)(C,{isActive:se,onClick:this.handleToggleI18n,size:"large",type:"page",title:G("editor.editorInterface.toggleI18n"),marginTop:"70px"}),Y&&(0,s.jsx)(C,{isActive:le,onClick:this.handleTogglePreview,size:"large",type:"eye",title:G("editor.editorInterface.togglePreview")}),ue&&(0,s.jsx)(C,{isActive:K,onClick:this.handleToggleScrollSync,size:"large",type:"scroll",title:G("editor.editorInterface.toggleScrollSync")})),(0,s.jsx)(L,{i18nVisible:se,previewVisible:le,editor:ne,editorWithEditor:ae,editorWithPreview:oe})))}}j.propTypes={collection:a.default.map.isRequired,entry:a.default.map.isRequired,fields:a.default.list.isRequired,fieldsMetaData:a.default.map.isRequired,fieldsErrors:a.default.map.isRequired,onChange:i.default.func.isRequired,onValidate:i.default.func.isRequired,onPersist:i.default.func.isRequired,showDelete:i.default.bool.isRequired,onDelete:i.default.func.isRequired,onDeleteUnpublishedChanges:i.default.func.isRequired,onPublish:i.default.func.isRequired,unPublish:i.default.func.isRequired,onDuplicate:i.default.func.isRequired,onChangeStatus:i.default.func.isRequired,user:i.default.object,hasChanged:i.default.bool,displayUrl:i.default.string,hasWorkflow:i.default.bool,useOpenAuthoring:i.default.bool,hasUnpublishedChanges:i.default.bool,isNewEntry:i.default.bool,isModification:i.default.bool,currentStatus:i.default.string,onLogoutClick:i.default.func.isRequired,deployPreview:i.default.object,loadDeployPreview:i.default.func.isRequired,draftKey:i.default.string.isRequired,t:i.default.func.isRequired},t.default=j},4488:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(70894)),i=l(n(2784)),o=l(n(13980)),a=l(n(19155)),s=n(28165);function l(e){return e&&e.__esModule?e:{default:e}}function u(e){return"hidden"!==e.get("widget")}const c=(0,r.default)("div",{target:"e1iji6y40",label:"PreviewContainer"})({name:"9bq7s9",styles:"font-family:Roboto,'Helvetica Neue',HelveticaNeue,Helvetica,Arial,sans-serif"});class d extends i.default.Component{render(){const{collection:e,fields:t,widgetFor:n}=this.props;return e&&t?(0,s.jsx)(c,null,t.filter(u).map((e=>(0,s.jsx)("div",{key:e.get("name")},n(e.get("name")))))):null}}t.default=d,d.propTypes={collection:a.default.map.isRequired,entry:a.default.map.isRequired,fields:a.default.list.isRequired,getAsset:o.default.func.isRequired,widgetFor:o.default.func.isRequired}},86545:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(13980)),i=u(n(2784)),o=n(48570),a=n(93232),s=n(12693),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}class c extends i.default.Component{render(){const{previewComponent:e,previewProps:t}=this.props;return(0,l.jsx)(s.FrameContextConsumer,null,(n=>(0,l.jsx)(a.ScrollSyncPane,{attachTo:n.document.scrollingElement},(0,o.isElement)(e)?i.default.cloneElement(e,t):i.default.createElement(e,t))))}}c.propTypes={previewComponent:r.default.func.isRequired,previewProps:r.default.object},t.default=c},75904:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.PreviewPane=void 0;var r=k(n(70894)),i=k(n(13980)),o=k(n(2784)),a=n(46670),s=k(n(19155)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=x(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(12693)),u=n(30762),c=n(57903),d=n(41891),f=n(50236),p=n(50758),h=n(45624),m=n(71033),g=n(33474),v=n(39010),y=k(n(86545)),b=k(n(16791)),w=k(n(4488)),_=n(28165);function x(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(x=function(e){return e?n:t})(e)}function k(e){return e&&e.__esModule?e:{default:e}}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t{const{getAsset:o,entry:s}=r,l=(0,d.resolveWidget)(e.get("widget")),u=i?e.get("name")+"_"+i:e.get("name"),c=t&&!l.allowMapValue&&a.Map.isMap(t);return l.preview?(0,_.jsx)(b.default,{previewComponent:l.preview,key:u,field:e,getAsset:o,value:c?t.get(e.get("name")):t,entry:s,fieldsMetaData:n,resolveWidget:d.resolveWidget,getRemarkPlugins:d.getRemarkPlugins}):null})),C(this,"inferredFields",{}),C(this,"widgetFor",((e,t=this.props.fields,n=this.props.entry.get("data"),r=this.props.fieldsMetaData)=>{let i=t&&t.find((t=>t.get("name")===e)),o=a.Map.isMap(n)&&n.get(i.get("name"));i.get("meta")&&(o=this.props.entry.getIn(["meta",i.get("name")]));const s=i.get("fields"),l=i.get("field"),u=r&&r.get(i.get("name"),(0,a.Map)());s&&(i=i.set("fields",this.getNestedWidgets(s,o,u))),l&&(i=i.set("field",this.getSingleNested(l,o,u)));const c=Object.entries(this.inferredFields).filter((([e])=>(0,h.selectField)(this.props.collection,e)===i)).map((([,e])=>e))[0];return c?o=c.defaultPreview(o):o&&-1!==["string","text","number"].indexOf(i.get("widget"))&&o.toString().length<50&&(o=(0,_.jsx)("div",null,(0,_.jsx)("strong",null,i.get("label",i.get("name")),":")," ",o)),o?this.getWidget(i,o,u,this.props):null})),C(this,"getNestedWidgets",((e,t,n)=>a.List.isList(t)?t.map((t=>this.widgetsForNestedFields(e,t,n))):this.widgetsForNestedFields(e,t,n))),C(this,"getSingleNested",((e,t,n)=>a.List.isList(t)?t.map(((t,r)=>this.getWidget(e,t,n.get(e.get("name")),this.props,r))):this.getWidget(e,t,n.get(e.get("name")),this.props))),C(this,"widgetsForNestedFields",((e,t,n)=>e.map((r=>this.widgetFor(r.get("name"),e,t,n))))),C(this,"widgetsFor",(e=>{const{fields:t,entry:n,fieldsMetaData:r}=this.props,i=t.find((t=>t.get("name")===e)),o=i&&i.get("fields"),s=n.getIn(["data",i.get("name")]),l=r.get(i.get("name"),(0,a.Map)());return a.List.isList(s)?s.map((e=>{const t=o&&(0,a.Map)(o.map(((t,n)=>[t.get("name"),(0,_.jsx)("div",{key:n},this.getWidget(t,e,l.get(t.get("name")),this.props))])));return(0,a.Map)({data:e,widgets:t})})):(0,a.Map)({data:s,widgets:o&&(0,a.Map)(o.map((e=>[e.get("name"),this.getWidget(e,s,l.get(e.get("name")),this.props)])))})})),C(this,"getCollection",(async(e,t)=>{const{state:n}=this.props,r=n.collections.get(e);if(void 0===t)return(await(0,f.getAllEntries)(n,r)).map((e=>(0,a.Map)().set("data",e.data)));const i=await(0,f.tryLoadEntry)(n,r,t);return(0,a.Map)().set("data",i.data)}))}inferFields(){const e=(0,h.selectInferredField)(this.props.collection,"title"),t=(0,h.selectInferredField)(this.props.collection,"shortTitle"),n=(0,h.selectInferredField)(this.props.collection,"author");this.inferredFields={},e&&(this.inferredFields[e]=v.INFERABLE_FIELDS.title),t&&(this.inferredFields[t]=v.INFERABLE_FIELDS.shortTitle),n&&(this.inferredFields[n]=v.INFERABLE_FIELDS.author)}render(){const{entry:e,collection:t,config:n}=this.props;if(!e||!e.get("data"))return null;const r=(0,d.getPreviewTemplate)((0,h.selectTemplateName)(t,e.get("slug")))||w.default;this.inferFields();const i=S(S({},this.props),{},{widgetFor:this.widgetFor,widgetsFor:this.widgetsFor,getCollection:this.getCollection}),o=(0,d.getPreviewStyles)().map(((e,t)=>e.raw?(0,_.jsx)("style",{key:t},e.value):(0,_.jsx)("link",{key:t,href:e.value,type:"text/css",rel:"stylesheet"})));return t||(0,_.jsx)(T,{id:"preview-pane",head:o}),(0,_.jsx)(p.ErrorBoundary,{config:n},(0,_.jsx)(T,{id:"preview-pane",head:o,initialContent:'\n\n\n \n
\n\n'},(0,_.jsx)(l.FrameContextConsumer,null,(({document:e,window:t})=>(0,_.jsx)(y.default,{previewComponent:r,previewProps:S(S({},i),{},{document:e,window:t})})))))}}t.PreviewPane=O,O.propTypes={collection:s.default.map.isRequired,fields:s.default.list.isRequired,entry:s.default.map.isRequired,fieldsMetaData:s.default.map.isRequired,getAsset:i.default.func.isRequired},t.default=(0,c.connect)((function(e){return{isLoadingAsset:(0,g.selectIsLoadingAsset)(e.medias),config:e.config,state:e}}),(function(e){return{boundGetAsset:(t,n)=>(0,m.boundGetAsset)(e,t,n)}}),(function(e,t,n){return S(S(S(S({},e),t),n),{},{getAsset:t.boundGetAsset(n.collection,n.entry)})}))(O)},16791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(2784)),i=s(n(13980)),o=s(n(19155));const a=["previewComponent"];function s(e){return e&&e.__esModule?e:{default:e}}class l extends r.default.Component{shouldComponentUpdate(e){return["object","list"].includes(e.field.get("widget"))||this.props.value!==e.value||this.props.fieldsMetaData!==e.fieldsMetaData||this.props.getAsset!==e.getAsset}render(){const e=this.props,{previewComponent:t}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,a);return r.default.createElement(t,n)}}l.propTypes={previewComponent:i.default.func.isRequired,field:o.default.map.isRequired,value:i.default.oneOfType([i.default.node,i.default.object,i.default.string,i.default.bool])},t.default=l},6714:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.EditorToolbar=void 0;var r=p(n(70894)),i=p(n(2784)),o=p(n(13980)),a=p(n(19155)),s=n(28165),l=n(9316),u=n(34752),c=n(30762),d=n(61928),f=n(50758);function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const m={noOverflow:{name:"1ctb18k-noOverflow",styles:"overflow:hidden;white-space:nowrap;text-overflow:ellipsis;label:noOverflow;"},buttonMargin:{name:"bx8mhy-buttonMargin",styles:"margin:0 10px;label:buttonMargin;"},toolbarSection:(0,s.css)("height:100%;display:flex;align-items:center;border:0 solid ",c.colors.textFieldBorder,";;label:toolbarSection;"),publishedButton:(0,s.css)("background-color:",c.colorsRaw.tealLight,";color:",c.colorsRaw.tealDark,";;label:publishedButton;")},g=(0,r.default)("div",{target:"e1d2l9mo26",label:"TooltipText"})({name:"1ykbu60",styles:"visibility:hidden;width:321px;background-color:#555;color:#fff;text-align:unset;border-radius:6px;padding:5px;position:absolute;z-index:1;top:145%;left:50%;margin-left:-320px;opacity:0;transition:opacity 0.3s"}),v=(0,r.default)("div",{target:"e1d2l9mo25",label:"Tooltip"})("position:relative;display:inline-block;&:hover+",g,"{visibility:visible;opacity:0.9;}"),y=(0,r.default)("div",{target:"e1d2l9mo24",label:"TooltipContainer"})({name:"bjn8wh",styles:"position:relative"}),b=(0,r.default)(c.StyledDropdownButton,{target:"e1d2l9mo23",label:"DropdownButton"})(m.noOverflow,"@media (max-width: 1200px){padding-left:10px;}"),w=(0,r.default)("div",{target:"e1d2l9mo22",label:"ToolbarContainer"})("box-shadow:0 2px 6px 0 rgba(68, 74, 87, 0.05),0 1px 3px 0 rgba(68, 74, 87, 0.1),0 2px 54px rgba(0, 0, 0, 0.1);position:fixed;top:0;left:0;width:100%;min-width:800px;z-index:",c.zIndex.zIndex300,";background-color:#fff;height:66px;display:flex;justify-content:space-between;"),_=(0,r.default)("div",{target:"e1d2l9mo21",label:"ToolbarSectionMain"})(m.toolbarSection,";flex:10;display:flex;justify-content:space-between;padding:0 10px;"),x=(0,r.default)("div",{target:"e1d2l9mo20",label:"ToolbarSubSectionFirst"})({name:"s5xdrg",styles:"display:flex;align-items:center"}),k=(0,r.default)(x,{target:"e1d2l9mo19",label:"ToolbarSubSectionLast"})({name:"1f60if8",styles:"justify-content:flex-end"}),E=(0,r.default)(u.Link,{target:"e1d2l9mo18",label:"ToolbarSectionBackLink"})(m.toolbarSection,";border-right-width:1px;font-weight:normal;padding:0 20px;&:hover,&:focus{background-color:#f1f2f4;}"),S=(0,r.default)("div",{target:"e1d2l9mo17",label:"ToolbarSectionMeta"})(m.toolbarSection,";border-left-width:1px;padding:0 7px;"),C=(0,r.default)(c.Dropdown,{target:"e1d2l9mo16",label:"ToolbarDropdown"})(m.buttonMargin,";",c.Icon,"{color:",c.colorsRaw.teal,";}"),T=(0,r.default)("div",{target:"e1d2l9mo15",label:"BackArrow"})("color:",c.colors.textLead,";font-size:21px;font-weight:600;margin-right:16px;"),O=(0,r.default)("div",{target:"e1d2l9mo14",label:"BackCollection"})("color:",c.colors.textLead,";font-size:14px;"),A=(0,r.default)("div",{target:"e1d2l9mo13",label:"BackStatus"})({name:"j9a02z",styles:"margin-top:6px"}),P=(0,r.default)(A,{target:"e1d2l9mo12",label:"BackStatusUnchanged"})(c.components.textBadgeSuccess,";"),R=(0,r.default)(A,{target:"e1d2l9mo11",label:"BackStatusChanged"})(c.components.textBadgeDanger,";"),D=(0,r.default)("button",{target:"e1d2l9mo10",label:"ToolbarButton"})(c.buttons.button,";",c.buttons.default,";",m.buttonMargin,";",m.noOverflow,";display:block;@media (max-width: 1200px){padding:0 10px;}"),M=(0,r.default)(D,{target:"e1d2l9mo9",label:"DeleteButton"})(c.buttons.lightRed,";"),I=(0,r.default)(D,{target:"e1d2l9mo8",label:"SaveButton"})(c.buttons.lightBlue,";&[disabled]{",c.buttons.disabled,";}"),L=(0,r.default)(b,{target:"e1d2l9mo7",label:"PublishedToolbarButton"})(m.publishedButton,";"),j=(0,r.default)(D,{target:"e1d2l9mo6",label:"PublishedButton"})(m.publishedButton,";"),N=(0,r.default)(b,{target:"e1d2l9mo5",label:"PublishButton"})("background-color:",c.colorsRaw.teal,";"),F=(0,r.default)(b,{target:"e1d2l9mo4",label:"StatusButton"})("background-color:",c.colorsRaw.tealLight,";color:",c.colorsRaw.teal,";"),B=(0,r.default)("div",{target:"e1d2l9mo3",label:"PreviewButtonContainer"})("margin-right:12px;color:",c.colorsRaw.blue,";display:flex;align-items:center;a,",c.Icon,"{color:",c.colorsRaw.blue,";}",c.Icon,"{position:relative;top:1px;}"),z=(0,r.default)("button",{target:"e1d2l9mo2",label:"RefreshPreviewButton"})("background:none;border:0;cursor:pointer;color:",c.colorsRaw.blue,";span{margin-right:6px;}"),U=z.withComponent("a",{target:"e1d2l9mo27",label:"PreviewLink"}),q=(0,r.default)(c.DropdownItem,{target:"e1d2l9mo1",label:"PublishDropDownItem"})({name:"svxjwj",styles:"min-width:initial"}),W=(0,r.default)(c.DropdownItem,{target:"e1d2l9mo0",label:"StatusDropdownItem"})(c.Icon,"{color:",c.colors.infoText,";}");class $ extends i.default.Component{constructor(...e){super(...e),h(this,"renderSimpleControls",(()=>{const{collection:e,hasChanged:t,isNewEntry:n,showDelete:r,onDelete:o,t:a}=this.props,l=e.get("create");return(0,s.jsx)(i.default.Fragment,null,n||t?this.renderNewEntrySimplePublishControls({canCreate:l}):this.renderExistingEntrySimplePublishControls({canCreate:l}),(0,s.jsx)("div",null,r?(0,s.jsx)(M,{onClick:o},a("editor.editorToolbar.deleteEntry")):null))})),h(this,"renderDeployPreviewControls",(e=>{const{deployPreview:t={},loadDeployPreview:n,t:r}=this.props,{url:i,status:o,isFetching:a}=t;if(!o)return;const l="SUCCESS"===o&&!a;return(0,s.jsx)(B,null,l?(0,s.jsx)(U,{rel:"noopener noreferrer",target:"_blank",href:i},(0,s.jsx)("span",null,e),(0,s.jsx)(c.Icon,{type:"new-tab",size:"xsmall"})):(0,s.jsx)(z,{onClick:n},(0,s.jsx)("span",null,r("editor.editorToolbar.deployPreviewPendingButtonLabel")),(0,s.jsx)(c.Icon,{type:"refresh",size:"xsmall"})))})),h(this,"renderStatusInfoTooltip",(()=>{const{t:e,currentStatus:t}=this.props,n={[d.status.get("DRAFT")]:"statusInfoTooltipDraft",[d.status.get("PENDING_REVIEW")]:"statusInfoTooltipInReview"},r=Object.keys(n).find((e=>e===t));return(0,s.jsx)(y,null,(0,s.jsx)(v,null,(0,s.jsx)(c.Icon,{type:"info-circle",size:"small",className:"tooltip"})),r&&(0,s.jsx)(g,null,e(`editor.editorToolbar.${n[r]}`)))})),h(this,"renderWorkflowStatusControls",(()=>{const{isUpdatingStatus:e,onChangeStatus:t,currentStatus:n,t:r,useOpenAuthoring:o}=this.props,a={[d.status.get("DRAFT")]:r("editor.editorToolbar.draft"),[d.status.get("PENDING_REVIEW")]:r("editor.editorToolbar.inReview"),[d.status.get("PENDING_PUBLISH")]:r("editor.editorToolbar.ready")},l=e?r("editor.editorToolbar.updating"):r("editor.editorToolbar.status",{status:a[n]});return(0,s.jsx)(i.default.Fragment,null,(0,s.jsx)(C,{dropdownTopOverlap:"40px",dropdownWidth:"120px",renderButton:()=>(0,s.jsx)(F,null,l)},(0,s.jsx)(W,{label:r("editor.editorToolbar.draft"),onClick:()=>t("DRAFT"),icon:n===d.status.get("DRAFT")?"check":null}),(0,s.jsx)(W,{label:r("editor.editorToolbar.inReview"),onClick:()=>t("PENDING_REVIEW"),icon:n===d.status.get("PENDING_REVIEW")?"check":null}),o?"":(0,s.jsx)(W,{label:r("editor.editorToolbar.ready"),onClick:()=>t("PENDING_PUBLISH"),icon:n===d.status.get("PENDING_PUBLISH")?"check":null})),o&&this.renderStatusInfoTooltip())})),h(this,"renderNewEntryWorkflowPublishControls",(({canCreate:e,canPublish:t})=>{const{isPublishing:n,onPublish:r,onPublishAndNew:o,onPublishAndDuplicate:a,t:l}=this.props;return t?(0,s.jsx)(C,{dropdownTopOverlap:"40px",dropdownWidth:"200px",renderButton:()=>(0,s.jsx)(N,null,l(n?"editor.editorToolbar.publishing":"editor.editorToolbar.publish"))},(0,s.jsx)(q,{label:l("editor.editorToolbar.publishNow"),icon:"arrow",iconDirection:"right",onClick:r}),e?(0,s.jsx)(i.default.Fragment,null,(0,s.jsx)(q,{label:l("editor.editorToolbar.publishAndCreateNew"),icon:"add",onClick:o}),(0,s.jsx)(q,{label:l("editor.editorToolbar.publishAndDuplicate"),icon:"add",onClick:a})):null):""})),h(this,"renderExistingEntryWorkflowPublishControls",(({canCreate:e,canPublish:t,canDelete:n})=>{const{unPublish:r,onDuplicate:i,isPersisting:o,t:a}=this.props;return t||e?(0,s.jsx)(C,{dropdownTopOverlap:"40px",dropdownWidth:"150px",key:"td-publish-create",renderButton:()=>(0,s.jsx)(L,null,a(o?"editor.editorToolbar.unpublishing":"editor.editorToolbar.published"))},n&&t&&(0,s.jsx)(c.DropdownItem,{label:a("editor.editorToolbar.unpublish"),icon:"arrow",iconDirection:"right",onClick:r}),e&&(0,s.jsx)(c.DropdownItem,{label:a("editor.editorToolbar.duplicate"),icon:"add",onClick:i})):""})),h(this,"renderExistingEntrySimplePublishControls",(({canCreate:e})=>{const{onDuplicate:t,t:n}=this.props;return e?(0,s.jsx)(C,{dropdownTopOverlap:"40px",dropdownWidth:"150px",renderButton:()=>(0,s.jsx)(L,null,n("editor.editorToolbar.published"))},(0,s.jsx)(c.DropdownItem,{label:n("editor.editorToolbar.duplicate"),icon:"add",onClick:t})):(0,s.jsx)(j,null,n("editor.editorToolbar.published"))})),h(this,"renderNewEntrySimplePublishControls",(({canCreate:e})=>{const{onPersist:t,onPersistAndNew:n,onPersistAndDuplicate:r,isPersisting:o,t:a}=this.props;return(0,s.jsx)("div",null,(0,s.jsx)(C,{dropdownTopOverlap:"40px",dropdownWidth:"150px",renderButton:()=>(0,s.jsx)(N,null,a(o?"editor.editorToolbar.publishing":"editor.editorToolbar.publish"))},(0,s.jsx)(c.DropdownItem,{label:a("editor.editorToolbar.publishNow"),icon:"arrow",iconDirection:"right",onClick:t}),e?(0,s.jsx)(i.default.Fragment,null,(0,s.jsx)(c.DropdownItem,{label:a("editor.editorToolbar.publishAndCreateNew"),icon:"add",onClick:n}),(0,s.jsx)(c.DropdownItem,{label:a("editor.editorToolbar.publishAndDuplicate"),icon:"add",onClick:r})):null))})),h(this,"renderSimpleDeployPreviewControls",(()=>{const{hasChanged:e,isNewEntry:t,t:n}=this.props;if(!t&&!e)return this.renderDeployPreviewControls(n("editor.editorToolbar.deployButtonLabel"))})),h(this,"renderWorkflowControls",(()=>{const{onPersist:e,onDelete:t,onDeleteUnpublishedChanges:n,showDelete:r,hasChanged:i,hasUnpublishedChanges:o,useOpenAuthoring:a,isPersisting:l,isDeleting:u,isNewEntry:c,isModification:d,currentStatus:f,collection:p,t:h}=this.props,m=p.get("create"),g=p.get("publish")&&!a,v=p.get("delete",!0),y=o&&d&&h("editor.editorToolbar.deleteUnpublishedChanges")||o&&(c||!d)&&h("editor.editorToolbar.deleteUnpublishedEntry")||!o&&!d&&h("editor.editorToolbar.deletePublishedEntry");return[(0,s.jsx)(I,{disabled:!i,key:"save-button",onClick:()=>i&&e()},h(l?"editor.editorToolbar.saving":"editor.editorToolbar.save")),f?[this.renderWorkflowStatusControls(),this.renderNewEntryWorkflowPublishControls({canCreate:m,canPublish:g})]:!c&&this.renderExistingEntryWorkflowPublishControls({canCreate:m,canPublish:g,canDelete:v}),r&&!a||o||d?(0,s.jsx)(M,{key:"delete-button",onClick:o?n:t},u?h("editor.editorToolbar.deleting"):y):null]})),h(this,"renderWorkflowDeployPreviewControls",(()=>{const{currentStatus:e,isNewEntry:t,t:n}=this.props;return e?this.renderDeployPreviewControls(n("editor.editorToolbar.deployPreviewButtonLabel")):t?void 0:this.renderDeployPreviewControls(n("editor.editorToolbar.deployButtonLabel"))}))}componentDidMount(){const{isNewEntry:e,loadDeployPreview:t}=this.props;e||t({maxAttempts:3})}componentDidUpdate(e){const{isNewEntry:t,isPersisting:n,loadDeployPreview:r}=this.props;t||!e.isPersisting||n||r({maxAttempts:3})}render(){const{user:e,hasChanged:t,displayUrl:n,collection:r,hasWorkflow:i,onLogoutClick:o,t:a,editorBackLink:l}=this.props;return(0,s.jsx)(w,null,(0,s.jsx)(E,{to:l},(0,s.jsx)(T,null,"←"),(0,s.jsx)("div",null,(0,s.jsx)(O,null,a("editor.editorToolbar.backCollection",{collectionLabel:r.get("label")})),t?(0,s.jsx)(R,null,a("editor.editorToolbar.unsavedChanges")):(0,s.jsx)(P,null,a("editor.editorToolbar.changesSaved")))),(0,s.jsx)(_,null,(0,s.jsx)(x,null,i?this.renderWorkflowControls():this.renderSimpleControls()),(0,s.jsx)(k,null,i?this.renderWorkflowDeployPreviewControls():this.renderSimpleDeployPreviewControls())),(0,s.jsx)(S,null,(0,s.jsx)(f.SettingsDropdown,{displayUrl:n,imageUrl:null==e?void 0:e.avatar_url,onLogoutClick:o})))}}t.EditorToolbar=$,h($,"propTypes",{isPersisting:o.default.bool,isPublishing:o.default.bool,isUpdatingStatus:o.default.bool,isDeleting:o.default.bool,onPersist:o.default.func.isRequired,onPersistAndNew:o.default.func.isRequired,onPersistAndDuplicate:o.default.func.isRequired,showDelete:o.default.bool.isRequired,onDelete:o.default.func.isRequired,onDeleteUnpublishedChanges:o.default.func.isRequired,onChangeStatus:o.default.func.isRequired,onPublish:o.default.func.isRequired,unPublish:o.default.func.isRequired,onDuplicate:o.default.func.isRequired,onPublishAndNew:o.default.func.isRequired,onPublishAndDuplicate:o.default.func.isRequired,user:o.default.object,hasChanged:o.default.bool,displayUrl:o.default.string,collection:a.default.map.isRequired,hasWorkflow:o.default.bool,useOpenAuthoring:o.default.bool,hasUnpublishedChanges:o.default.bool,isNewEntry:o.default.bool,isModification:o.default.bool,currentStatus:o.default.string,onLogoutClick:o.default.func.isRequired,deployPreview:o.default.object,loadDeployPreview:o.default.func.isRequired,t:o.default.func.isRequired,editorBackLink:o.default.string.isRequired}),t.default=(0,l.translate)()($)},42531:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.connect)(h,null,m)(class extends i.default.Component{render(){return(0,c.jsx)(e,this.props)}})};var r,i=(r=n(2784))&&r.__esModule?r:{default:r},o=n(57903),a=n(61928),s=n(36642),l=n(45624),u=n(91358),c=n(28165);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;to((0,u.loadUnpublishedEntry)(e,t)),a.persistEntry=e=>o((0,u.persistUnpublishedEntry)(e,i))),f(f(f({},n),e),a)}},93698:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,s(n(2784));var r=n(9316),i=s(n(19155)),o=s(n(13980)),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}function l({field:e,t}){return(0,a.jsx)("div",null,t("editor.editorWidgets.unknownControl.noControl",{widget:e.get("widget")}))}l.propTypes={field:i.default.map,t:o.default.func.isRequired},t.default=(0,r.translate)()(l)},86618:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,s(n(2784));var r=n(9316),i=s(n(19155)),o=s(n(13980)),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}function l({field:e,t}){return(0,a.jsx)("div",{className:"nc-widgetPreview"},t("editor.editorWidgets.unknownPreview.noPreview",{widget:e.get("widget")}))}l.propTypes={field:i.default.map,t:o.default.func.isRequired},t.default=(0,r.translate)()(l)},29192:(e,t,n)=>{"use strict";var r=n(41891),i=a(n(93698)),o=a(n(86618));function a(e){return e&&e.__esModule?e:{default:e}}(0,r.registerWidget)("unknown",i.default,o.default)},52545:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(70894)),i=(s(n(2784)),s(n(13980))),o=n(30762),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("div",{target:"e156433y0",label:"EmptyMessageContainer"})("height:100%;width:100%;display:flex;justify-content:center;align-items:center;color:",(e=>e.isPrivate&&o.colors.textFieldBorder),";");function u({content:e,isPrivate:t}){return(0,a.jsx)(l,{isPrivate:t},(0,a.jsx)("h1",null,e))}u.propTypes={content:i.default.string.isRequired,isPrivate:i.default.bool},t.default=u},80306:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=v(n(16760)),i=v(n(34498)),o=v(n(2784)),a=v(n(13980)),s=v(n(19155)),l=n(57903),u=n(9316),c=v(n(14478)),d=n(33806),f=n(68104),p=n(90694),h=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=g(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(94366)),m=n(28165);function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t{const{loadMediaDisplayURL:t}=this.props;t(e)})),w(this,"filterImages",(e=>e.filter((e=>{const t=(0,d.fileExtension)(e.name).toLowerCase();return x.includes(t)})))),w(this,"toTableData",(e=>{const t=e&&e.map((({key:e,name:t,id:n,size:r,path:i,queryOrder:o,displayURL:a,draft:s})=>{const l=(0,d.fileExtension)(t).toLowerCase();return{key:e,id:n,name:t,path:i,type:l.toUpperCase(),size:r,queryOrder:o,displayURL:a,draft:s,isImage:x.includes(l),isViewableImage:_.includes(l)}})),{sortFields:n}=this.state,o=(0,r.default)(n,"fieldName").concat("queryOrder"),a=(0,r.default)(n,"direction").concat("asc");return(0,i.default)(t,o,a)})),w(this,"handleClose",(()=>{this.props.closeMediaLibrary()})),w(this,"handleAssetClick",(e=>{const t=this.state.selectedFile.key===e.key?{}:e;this.setState({selectedFile:t})})),w(this,"handlePersist",(async e=>{e.persist(),e.stopPropagation(),e.preventDefault();const{persistMedia:t,privateUpload:n,config:r,t:i,field:o}=this.props,{files:a}=e.dataTransfer||e.target,s=[...a][0],l=r.get("max_file_size");l&&s.size>l?window.alert(i("mediaLibrary.mediaLibrary.fileTooLarge",{size:Math.floor(l/1e3)})):(await t(s,{privateUpload:n,field:o}),this.setState({isPersisted:!0}),this.scrollToTop()),e.target.value=null})),w(this,"handleInsert",(()=>{const{selectedFile:e}=this.state,{path:t}=e,{insertMedia:n,field:r}=this.props;n(t,r),this.handleClose()})),w(this,"handleDelete",(()=>{const{selectedFile:e}=this.state,{files:t,deleteMedia:n,privateUpload:r,t:i}=this.props;window.confirm(i("mediaLibrary.mediaLibrary.onDelete"))&&n(t.find((t=>e.key===t.key)),{privateUpload:r}).then((()=>{this.setState({selectedFile:{}})}))})),w(this,"handleDownload",(()=>{const{selectedFile:e}=this.state,{displayURLs:t}=this.props,n=t.getIn([e.id,"url"])||e.url;if(!n)return;const r=e.name,i=document.createElement("a");i.setAttribute("href",n),i.setAttribute("download",r),i.style.display="none",document.body.appendChild(i),i.click(),document.body.removeChild(i),this.setState({selectedFile:{}})})),w(this,"handleLoadMore",(()=>{const{loadMedia:e,dynamicSearchQuery:t,page:n,privateUpload:r}=this.props;e({query:t,page:n+1,privateUpload:r})})),w(this,"handleSearchKeyDown",(async e=>{const{dynamicSearch:t,loadMedia:n,privateUpload:r}=this.props;"Enter"===e.key&&t&&(await n({query:this.state.query,privateUpload:r}),this.scrollToTop())})),w(this,"scrollToTop",(()=>{this.scrollContainerRef.scrollTop=0})),w(this,"handleSearchChange",(e=>{this.setState({query:e.target.value})})),w(this,"queryFilter",((e,t)=>{const n=e.replace(/ /g,"");return c.default.filter(n,t,{extract:e=>e.name}).map(((e,n)=>b(b({},t[e.index]),{},{queryIndex:n})))}))}componentDidMount(){this.props.loadMedia()}UNSAFE_componentWillReceiveProps(e){!this.props.isVisible&&e.isVisible&&this.setState({selectedFile:{},query:""}),this.state.isPersisted&&this.setState({selectedFile:e.files[0],isPersisted:!1})}componentDidUpdate(e){!e.isVisible&&this.props.isVisible&&e.privateUpload!==this.props.privateUpload&&this.props.loadMedia({privateUpload:this.props.privateUpload}),this.state.isPersisted&&this.setState({selectedFile:this.props.files[0],isPersisted:!1})}render(){const{isVisible:e,canInsert:t,files:n,dynamicSearch:r,dynamicSearchActive:i,forImage:o,isLoading:a,isPersisting:s,isDeleting:l,hasNextPage:u,isPaginating:c,privateUpload:d,displayURLs:f,t:p}=this.props;return(0,m.jsx)(h.default,{isVisible:e,canInsert:t,files:n,dynamicSearch:r,dynamicSearchActive:i,forImage:o,isLoading:a,isPersisting:s,isDeleting:l,hasNextPage:u,isPaginating:c,privateUpload:d,query:this.state.query,selectedFile:this.state.selectedFile,handleFilter:this.filterImages,handleQuery:this.queryFilter,toTableData:this.toTableData,handleClose:this.handleClose,handleSearchChange:this.handleSearchChange,handleSearchKeyDown:this.handleSearchKeyDown,handlePersist:this.handlePersist,handleDelete:this.handleDelete,handleInsert:this.handleInsert,handleDownload:this.handleDownload,setScrollContainerRef:e=>this.scrollContainerRef=e,handleAssetClick:this.handleAssetClick,handleLoadMore:this.handleLoadMore,displayURLs:f,loadDisplayURL:this.loadDisplayURL,t:p})}}w(k,"propTypes",{isVisible:a.default.bool,loadMediaDisplayURL:a.default.func,displayURLs:s.default.map,canInsert:a.default.bool,files:a.default.arrayOf(a.default.shape(h.fileShape)).isRequired,dynamicSearch:a.default.bool,dynamicSearchActive:a.default.bool,forImage:a.default.bool,isLoading:a.default.bool,isPersisting:a.default.bool,isDeleting:a.default.bool,hasNextPage:a.default.bool,isPaginating:a.default.bool,privateUpload:a.default.bool,config:s.default.map,loadMedia:a.default.func.isRequired,dynamicSearchQuery:a.default.string,page:a.default.number,persistMedia:a.default.func.isRequired,deleteMedia:a.default.func.isRequired,insertMedia:a.default.func.isRequired,closeMediaLibrary:a.default.func.isRequired,t:a.default.func.isRequired}),w(k,"defaultProps",{files:[]});const E={loadMedia:f.loadMedia,persistMedia:f.persistMedia,deleteMedia:f.deleteMedia,insertMedia:f.insertMedia,loadMediaDisplayURL:f.loadMediaDisplayURL,closeMediaLibrary:f.closeMediaLibrary};t.default=(0,l.connect)((function(e){const{mediaLibrary:t}=e,n=t.get("field");return b({},{isVisible:t.get("isVisible"),canInsert:t.get("canInsert"),files:(0,p.selectMediaFiles)(e,n),displayURLs:t.get("displayURLs"),dynamicSearch:t.get("dynamicSearch"),dynamicSearchActive:t.get("dynamicSearchActive"),dynamicSearchQuery:t.get("dynamicSearchQuery"),forImage:t.get("forImage"),isLoading:t.get("isLoading"),isPersisting:t.get("isPersisting"),isDeleting:t.get("isDeleting"),privateUpload:t.get("privateUpload"),config:t.get("config"),page:t.get("page"),hasNextPage:t.get("hasNextPage"),isPaginating:t.get("isPaginating"),field:n})}),E)((0,u.translate)()(k))},69302:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UploadButton=t.InsertButton=t.DownloadButton=t.DeleteButton=t.CopyToClipBoardButton=void 0;var r=d(n(70894)),i=d(n(2784)),o=d(n(13980)),a=n(28165),s=d(n(85411)),l=n(33806),u=n(30762),c=n(50758);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p={button:(0,a.css)(u.buttons.button,";",u.buttons.default,";display:inline-block;margin-left:15px;margin-right:2px;&[disabled]{",u.buttons.disabled,";cursor:default;};label:button;")},h=(t.UploadButton=(0,r.default)(c.FileUploadButton,{target:"e288rjk3",label:"UploadButton"})(p.button,";",u.buttons.gray,";",u.shadows.dropMain,";margin-bottom:0;span{font-size:14px;font-weight:500;display:flex;justify-content:center;align-items:center;}input{height:0.1px;width:0.1px;margin:0;padding:0;opacity:0;overflow:hidden;position:absolute;z-index:",u.zIndex.zIndex0,";outline:none;}"),t.DeleteButton=(0,r.default)("button",{target:"e288rjk2",label:"DeleteButton"})(p.button,";",u.buttons.lightRed,";"),t.InsertButton=(0,r.default)("button",{target:"e288rjk1",label:"InsertButton"})(p.button,";",u.buttons.green,";"),(0,r.default)("button",{target:"e288rjk0",label:"ActionButton"})(p.button,";",(e=>!e.disabled&&(0,a.css)(u.buttons.gray,";;label:ActionButton;")),";"));t.DownloadButton=h;class m extends i.default.Component{constructor(...e){super(...e),f(this,"mounted",!1),f(this,"timeout",void 0),f(this,"state",{copied:!1}),f(this,"handleCopy",(()=>{clearTimeout(this.timeout);const{path:e,draft:t,name:n}=this.props;(0,s.default)((0,l.isAbsolutePath)(e)||!t?e:n),this.setState({copied:!0}),this.timeout=setTimeout((()=>this.mounted&&this.setState({copied:!1})),1500)})),f(this,"getTitle",(()=>{const{t:e,path:t,draft:n}=this.props;return this.state.copied?e("mediaLibrary.mediaLibraryCard.copied"):t?(0,l.isAbsolutePath)(t)?e("mediaLibrary.mediaLibraryCard.copyUrl"):e(n?"mediaLibrary.mediaLibraryCard.copyName":"mediaLibrary.mediaLibraryCard.copyPath"):e("mediaLibrary.mediaLibraryCard.copy")}))}componentDidMount(){this.mounted=!0}componentWillUnmount(){this.mounted=!1}render(){const{disabled:e}=this.props;return(0,a.jsx)(h,{disabled:e,onClick:this.handleCopy},this.getTitle())}}t.CopyToClipBoardButton=m,m.propTypes={disabled:o.default.bool.isRequired,draft:o.default.bool,path:o.default.string,name:o.default.string,t:o.default.func.isRequired}},93100:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=u(n(2784)),o=u(n(13980)),a=u(n(19155)),s=n(30762),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}const c=(0,r.default)("div",{target:"e2etv5a5",label:"Card"})("width:",(e=>e.width),";height:",(e=>e.height),";margin:",(e=>e.margin),";border:",s.borders.textField,";border-color:",(e=>e.isSelected&&s.colors.active),";border-radius:",s.lengths.borderRadius,";cursor:pointer;overflow:hidden;background-color:",(e=>e.isPrivate&&s.colors.textFieldBorder),";&:focus{outline:none;}"),d=(0,r.default)("div",{target:"e2etv5a4",label:"CardImageWrapper"})("height:",162,"px;",s.effects.checkerboard,";",s.shadows.inset,";border-bottom:solid ",s.lengths.borderWidth," ",s.colors.textFieldBorder,";position:relative;"),f=(0,r.default)("img",{target:"e2etv5a3",label:"CardImage"})("width:100%;height:",160,"px;object-fit:contain;border-radius:2px 2px 0 0;"),p=(0,r.default)("div",{target:"e2etv5a2",label:"CardFileIcon"})({name:"viljxp",styles:"width:100%;height:160px;object-fit:cover;border-radius:2px 2px 0 0;padding:1em;font-size:3em"}),h=(0,r.default)("p",{target:"e2etv5a1",label:"CardText"})("color:",s.colors.text,";padding:8px;margin-top:20px;overflow-wrap:break-word;line-height:1.3!important;"),m=(0,r.default)("p",{target:"e2etv5a0",label:"DraftText"})("color:",s.colors.mediaDraftText,";background-color:",s.colors.mediaDraftBackground,";position:absolute;padding:8px;border-radius:",s.lengths.borderRadius," 0 ",s.lengths.borderRadius," 0;");class g extends i.default.Component{render(){const{isSelected:e,displayURL:t,text:n,onClick:r,draftText:i,width:o,height:a,margin:s,isPrivate:u,type:g,isViewableImage:v,isDraft:y}=this.props,b=t.get("url");return(0,l.jsx)(c,{isSelected:e,onClick:r,width:o,height:a,margin:s,tabIndex:"-1",isPrivate:u},(0,l.jsx)(d,null,y?(0,l.jsx)(m,{"data-testid":"draft-text"},i):null,b&&v?(0,l.jsx)(f,{loading:"lazy",src:b}):(0,l.jsx)(p,{"data-testid":"card-file-icon"},g)),(0,l.jsx)(h,null,n))}componentDidMount(){const{displayURL:e,loadDisplayURL:t}=this.props;e.get("url")||t()}}g.propTypes={isSelected:o.default.bool,displayURL:a.default.map.isRequired,text:o.default.string.isRequired,onClick:o.default.func.isRequired,draftText:o.default.string.isRequired,width:o.default.string.isRequired,height:o.default.string.isRequired,margin:o.default.string.isRequired,isPrivate:o.default.bool,type:o.default.string,isViewableImage:o.default.bool.isRequired,loadDisplayURL:o.default.func.isRequired,isDraft:o.default.bool},t.default=g},63435:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(70894)),i=(f(n(2784)),f(n(13980))),o=n(94076),a=n(46670),s=n(30762),l=n(50166),u=f(n(6738)),c=f(n(93100)),d=n(28165);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t=i.length)return null;const w=i[b];return(0,d.jsx)("div",{tabIndex:"0",style:h(h({},r),{},{left:r.left+y*n,top:r.top+y,width:r.width-y,height:r.height-y})},(0,d.jsx)(c.default,{key:w.key,isSelected:o(w),text:w.name,onClick:()=>s(w),isDraft:w.draft,draftText:l,width:u,height:f,margin:"0px",isPrivate:p,displayURL:m.get(w.id,w.url?(0,a.Map)({url:w.url}):(0,a.Map)()),loadDisplayURL:()=>g(w),type:w.type,isViewableImage:w.isViewableImage}))}function g(e){const{mediaItems:t,setScrollContainerRef:n}=e;return(0,d.jsx)(y,{ref:n},(0,d.jsx)(u.default,null,(({height:n,width:r})=>{const i=parseInt(e.cardWidth,10),o=parseInt(e.cardHeight,10),a=parseInt(e.cardMargin,10),s=i+a,u=o+a,c=Math.floor(r/s),f=Math.ceil(t.length/c);return(0,d.jsx)(l.FixedSizeGrid,{columnCount:c,columnWidth:s,rowCount:f,rowHeight:u,width:r,height:n,itemData:h(h({},e),{},{gutter:a,columnCount:c})},m)})))}function v({setScrollContainerRef:e,mediaItems:t,isSelectedFile:n,onAssetClick:r,cardDraftText:i,cardWidth:s,cardHeight:l,cardMargin:u,isPrivate:f,displayURLs:p,loadDisplayURL:h,canLoadMore:m,onLoadMore:g,isPaginating:v,paginatingMessage:_}){return(0,d.jsx)(y,{ref:e},(0,d.jsx)(b,null,t.map((e=>(0,d.jsx)(c.default,{key:e.key,isSelected:n(e),text:e.name,onClick:()=>r(e),isDraft:e.draft,draftText:i,width:s,height:l,margin:u,isPrivate:f,displayURL:p.get(e.id,e.url?(0,a.Map)({url:e.url}):(0,a.Map)()),loadDisplayURL:()=>h(e),type:e.type,isViewableImage:e.isViewableImage}))),m?(0,d.jsx)(o.Waypoint,{onEnter:g}):null),v?(0,d.jsx)(w,{isPrivate:f},_):null)}const y=(0,r.default)("div",{target:"e1l5oka22",label:"CardGridContainer"})({name:"bv8zlo",styles:"overflow-y:auto;overflow-x:hidden"}),b=(0,r.default)("div",{target:"e1l5oka21",label:"CardGrid"})({name:"15jhlc1",styles:"display:flex;flex-wrap:wrap;margin-left:-10px;margin-right:-10px"}),w=(0,r.default)("h1",{target:"e1l5oka20",label:"PaginatingMessage"})("color:",(e=>e.isPrivate&&s.colors.textFieldBorder),";");function _(e){const{canLoadMore:t,isPaginating:n}=e;return t||n?(0,d.jsx)(v,e):(0,d.jsx)(g,e)}_.propTypes={setScrollContainerRef:i.default.func.isRequired,mediaItems:i.default.arrayOf(i.default.shape({displayURL:i.default.oneOfType([i.default.string,i.default.object]),id:i.default.string.isRequired,key:i.default.string.isRequired,name:i.default.string.isRequired,type:i.default.string.isRequired,draft:i.default.bool})).isRequired,isSelectedFile:i.default.func.isRequired,onAssetClick:i.default.func.isRequired,canLoadMore:i.default.bool,onLoadMore:i.default.func.isRequired,isPaginating:i.default.bool,paginatingMessage:i.default.string,cardDraftText:i.default.string.isRequired,cardWidth:i.default.string.isRequired,cardMargin:i.default.string.isRequired,loadDisplayURL:i.default.func.isRequired,isPrivate:i.default.bool,displayURLs:i.default.instanceOf(a.Map).isRequired},t.default=_},63298:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(70894)),i=(s(n(2784)),s(n(13980))),o=n(30762),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("button",{target:"estf6121",label:"CloseButton"})(o.buttons.button,";",o.shadows.dropMiddle,";position:absolute;margin-right:-40px;left:-40px;top:-40px;width:40px;height:40px;border-radius:50%;background-color:white;padding:0;display:flex;justify-content:center;align-items:center;"),u=(0,r.default)("h1",{target:"estf6120",label:"LibraryTitle"})("line-height:36px;font-size:22px;text-align:left;margin-bottom:25px;color:",(e=>e.isPrivate&&o.colors.textFieldBorder),";");function c({onClose:e,title:t,isPrivate:n}){return(0,a.jsx)("div",null,(0,a.jsx)(l,{onClick:e},(0,a.jsx)(o.Icon,{type:"close"})),(0,a.jsx)(u,{isPrivate:n},t))}c.propTypes={onClose:i.default.func.isRequired,title:i.default.string.isRequired,isPrivate:i.default.bool},t.default=c},94366:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fileShape=t.default=void 0;var r=h(n(70894)),i=h(n(45455)),o=(h(n(2784)),h(n(13980))),a=n(46670),s=n(9316),l=n(30762),u=n(50758),c=h(n(77951)),d=h(n(63435)),f=h(n(52545)),p=n(28165);function h(e){return e&&e.__esModule?e:{default:e}}const m="300px",g=(0,r.default)(u.Modal,{target:"e4d0svf0",label:"StyledModal"})("display:grid;grid-template-rows:120px auto;width:calc(",m," + 20px);background-color:",(e=>e.isPrivate&&l.colors.grayDark),";@media (min-width: 800px){width:calc(",m," * 2 + 20px);}@media (min-width: 1120px){width:calc(",m," * 3 + 20px);}@media (min-width: 1440px){width:calc(",m," * 4 + 20px);}@media (min-width: 1760px){width:calc(",m," * 5 + 20px);}@media (min-width: 2080px){width:calc(",m," * 6 + 20px);}h1{color:",(e=>e.isPrivate&&l.colors.textFieldBorder),";}button:disabled,label[disabled]{background-color:",(e=>e.isPrivate&&"rgba(217, 217, 217, 0.15)"),";}");function v({isVisible:e,canInsert:t,files:n,dynamicSearch:r,dynamicSearchActive:o,forImage:a,isLoading:s,isPersisting:l,isDeleting:u,hasNextPage:h,isPaginating:m,privateUpload:v,query:y,selectedFile:b,handleFilter:w,handleQuery:_,toTableData:x,handleClose:k,handleSearchChange:E,handleSearchKeyDown:S,handlePersist:C,handleDelete:T,handleInsert:O,handleDownload:A,setScrollContainerRef:P,handleAssetClick:R,handleLoadMore:D,loadDisplayURL:M,displayURLs:I,t:L}){const j=a?w(n):n,N=!r&&y?_(y,j):j,F=x(N),B=n&&!!n.length,z=j&&!!j.length,U=N&&!!N.length,q=U,W=!q,$=s&&!q&&L("mediaLibrary.mediaLibraryModal.loading")||o&&L("mediaLibrary.mediaLibraryModal.noResults")||!B&&L("mediaLibrary.mediaLibraryModal.noAssetsFound")||!z&&L("mediaLibrary.mediaLibraryModal.noImagesFound")||!U&&L("mediaLibrary.mediaLibraryModal.noResults"),H=q&&!(0,i.default)(b);return(0,p.jsx)(g,{isOpen:e,onClose:k,isPrivate:v},(0,p.jsx)(c.default,{t:L,onClose:k,privateUpload:v,forImage:a,onDownload:A,onUpload:C,query:y,onSearchChange:E,onSearchKeyDown:S,searchDisabled:!o&&!z,onDelete:T,canInsert:t,onInsert:O,hasSelection:H,isPersisting:l,isDeleting:u,selectedFile:b}),W?(0,p.jsx)(f.default,{content:$,isPrivate:v}):null,(0,p.jsx)(d.default,{setScrollContainerRef:P,mediaItems:F,isSelectedFile:e=>b.key===e.key,onAssetClick:R,canLoadMore:h,onLoadMore:D,isPaginating:m,paginatingMessage:L("mediaLibrary.mediaLibraryModal.loading"),cardDraftText:L("mediaLibrary.mediaLibraryCard.draft"),cardWidth:"280px",cardHeight:"240px",cardMargin:"10px",isPrivate:v,loadDisplayURL:M,displayURLs:I}))}const y=t.fileShape={displayURL:o.default.oneOfType([o.default.string,o.default.object]).isRequired,id:o.default.string.isRequired,key:o.default.string.isRequired,name:o.default.string.isRequired,queryOrder:o.default.number,size:o.default.number,path:o.default.string.isRequired};v.propTypes={isVisible:o.default.bool,canInsert:o.default.bool,files:o.default.arrayOf(o.default.shape(y)).isRequired,dynamicSearch:o.default.bool,dynamicSearchActive:o.default.bool,forImage:o.default.bool,isLoading:o.default.bool,isPersisting:o.default.bool,isDeleting:o.default.bool,hasNextPage:o.default.bool,isPaginating:o.default.bool,privateUpload:o.default.bool,query:o.default.string,selectedFile:o.default.oneOfType([o.default.shape(y),o.default.shape({})]),handleFilter:o.default.func.isRequired,handleQuery:o.default.func.isRequired,toTableData:o.default.func.isRequired,handleClose:o.default.func.isRequired,handleSearchChange:o.default.func.isRequired,handleSearchKeyDown:o.default.func.isRequired,handlePersist:o.default.func.isRequired,handleDelete:o.default.func.isRequired,handleInsert:o.default.func.isRequired,setScrollContainerRef:o.default.func.isRequired,handleAssetClick:o.default.func.isRequired,handleLoadMore:o.default.func.isRequired,loadDisplayURL:o.default.func.isRequired,t:o.default.func.isRequired,displayURLs:o.default.instanceOf(a.Map).isRequired},t.default=(0,s.translate)()(v)},96218:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(70894)),i=(s(n(2784)),s(n(13980))),o=n(30762),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("div",{target:"el0uck02",label:"SearchContainer"})({name:"sycyb7",styles:"height:37px;display:flex;align-items:center;position:relative;width:400px"}),u=(0,r.default)("input",{target:"el0uck01",label:"SearchInput"})("background-color:#eff0f4;border-radius:",o.lengths.borderRadius,";font-size:14px;padding:10px 6px 10px 32px;width:100%;position:relative;z-index:",o.zIndex.zIndex1,";&:focus{outline:none;box-shadow:inset 0 0 0 2px ",o.colors.active,";}"),c=(0,r.default)(o.Icon,{target:"el0uck00",label:"SearchIcon"})("position:absolute;top:50%;left:6px;z-index:",o.zIndex.zIndex2,";transform:translate(0, -50%);");function d({value:e,onChange:t,onKeyDown:n,placeholder:r,disabled:i}){return(0,a.jsx)(l,null,(0,a.jsx)(c,{type:"search",size:"small"}),(0,a.jsx)(u,{value:e,onChange:t,onKeyDown:n,placeholder:r,disabled:i}))}d.propTypes={value:i.default.string,onChange:i.default.func.isRequired,onKeyDown:i.default.func.isRequired,placeholder:i.default.string.isRequired,disabled:i.default.bool},t.default=d},77951:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=(u(n(2784)),u(n(13980))),o=u(n(96218)),a=u(n(63298)),s=n(69302),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}const c=(0,r.default)("div",{target:"e1n0ky5z2",label:"LibraryTop"})({name:"16hjiy4",styles:"position:relative;display:flex;flex-direction:column"}),d=(0,r.default)("div",{target:"e1n0ky5z1",label:"RowContainer"})({name:"1eoy87d",styles:"display:flex;justify-content:space-between"}),f=(0,r.default)("div",{target:"e1n0ky5z0",label:"ButtonsContainer"})({name:"ozd7xs",styles:"flex-shrink:0"});function p({t:e,onClose:t,privateUpload:n,forImage:r,onDownload:i,onUpload:u,query:p,onSearchChange:h,onSearchKeyDown:m,searchDisabled:g,onDelete:v,canInsert:y,onInsert:b,hasSelection:w,isPersisting:_,isDeleting:x,selectedFile:k}){const E=_||x,S=!E,C=!E&&w,T=e(_?"mediaLibrary.mediaLibraryModal.uploading":"mediaLibrary.mediaLibraryModal.upload"),O=e(x?"mediaLibrary.mediaLibraryModal.deleting":"mediaLibrary.mediaLibraryModal.deleteSelected"),A=e("mediaLibrary.mediaLibraryModal.download"),P=e("mediaLibrary.mediaLibraryModal.chooseSelected");return(0,l.jsx)(c,null,(0,l.jsx)(d,null,(0,l.jsx)(a.default,{onClose:t,title:`${n?e("mediaLibrary.mediaLibraryModal.private"):""}${e(r?"mediaLibrary.mediaLibraryModal.images":"mediaLibrary.mediaLibraryModal.mediaAssets")}`,isPrivate:n}),(0,l.jsx)(f,null,(0,l.jsx)(s.CopyToClipBoardButton,{disabled:!w,path:k.path,name:k.name,draft:k.draft,t:e}),(0,l.jsx)(s.DownloadButton,{onClick:i,disabled:!w},A),(0,l.jsx)(s.UploadButton,{label:T,imagesOnly:r,onChange:u,disabled:!S}))),(0,l.jsx)(d,null,(0,l.jsx)(o.default,{value:p,onChange:h,onKeyDown:m,placeholder:e("mediaLibrary.mediaLibraryModal.search"),disabled:g}),(0,l.jsx)(f,null,(0,l.jsx)(s.DeleteButton,{onClick:v,disabled:!C},O),y?(0,l.jsx)(s.InsertButton,{onClick:b,disabled:!w},P):null)))}p.propTypes={t:i.default.func.isRequired,onClose:i.default.func.isRequired,privateUpload:i.default.bool,forImage:i.default.bool,onDownload:i.default.func.isRequired,onUpload:i.default.func.isRequired,query:i.default.string,onSearchChange:i.default.func.isRequired,onSearchKeyDown:i.default.func.isRequired,searchDisabled:i.default.bool.isRequired,onDelete:i.default.func.isRequired,canInsert:i.default.bool,onInsert:i.default.func.isRequired,hasSelection:i.default.bool.isRequired,isPersisting:i.default.bool,isDeleting:i.default.bool,selectedFile:i.default.oneOfType([i.default.shape({path:i.default.string.isRequired,draft:i.default.bool.isRequired,name:i.default.string.isRequired}),i.default.shape({})])},t.default=p},12086:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DragSource=p,t.DropTarget=h,t.HTML5DragDrop=function(e){return class extends o.default.Component{render(){return(0,s.jsx)(i.DndProvider,{backend:r.HTML5Backend},(0,s.jsx)(e,this.props))}}};var r=n(51092),i=n(99273),o=d(n(2784)),a=d(n(13980)),s=n(28165);const l=["namespace"],u=["children","isDragging","connectDragComponent"],c=["onDrop","namespace"];function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function p(e){let{namespace:t}=e,n=f(e,l);const r=(0,i.DragSource)(t,{beginDrag(e){let{children:t,isDragging:n,connectDragComponent:r}=e;return f(e,u)}},(e=>({connectDragComponent:e.dragSource()})))((({children:e,connectDragComponent:t})=>e(t)));return o.default.createElement(r,n,n.children)}function h(e){let{onDrop:t,namespace:n}=e,r=f(e,c);const a=(0,i.DropTarget)(n,{drop(e,n){t(n.getItem())}},((e,t)=>({connectDropTarget:e.dropTarget(),isHovered:t.isOver()})))((({children:e,connectDropTarget:t,isHovered:n})=>e(t,{isHovered:n})));return o.default.createElement(a,r,r.children)}p.propTypes={namespace:a.default.any.isRequired,children:a.default.func.isRequired},h.propTypes={onDrop:a.default.func.isRequired,namespace:a.default.any.isRequired,children:a.default.func.isRequired}},55059:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ErrorBoundary=void 0;var r=h(n(70894)),i=h(n(36585)),o=h(n(2784)),a=h(n(13980)),s=n(9316),l=h(n(60155)),u=h(n(85411)),c=n(33806),d=n(30762),f=h(n(46994)),p=n(28165);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g="https://github.com/decaporg/decap-cms/issues/new?";function v({title:e,config:t}){try{const n=function({config:e}){let t="";t="decap-cms@3.1.10";const n=function({version:e,provider:t,browser:n,config:r}){return`\n**Describe the bug**\n\n**To Reproduce**\n\n**Expected behavior**\n\n**Screenshots**\n\n**Applicable Versions:**\n - Decap CMS version: \`${e}\`\n - Git provider: \`${t}\`\n - Browser version: \`${n}\`\n\n**CMS configuration**\n\`\`\`\n${r}\n\`\`\`\n\n**Additional context**\n`}({version:"decap-cms@3.1.10",provider:e.backend.name,browser:navigator.userAgent,config:l.default.stringify(e)});return n}({config:t}),r=new URLSearchParams;return r.append("title",(0,i.default)(e,{length:100})),r.append("body",(0,i.default)(n,{length:4e3,omission:"\n..."})),r.append("labels","type: bug"),`${g}${r.toString()}`}catch(e){return console.log(e),`${g}template=bug_report.md`}}const y=(0,r.default)("div",{target:"emw4gx72",label:"ErrorBoundaryContainer"})("padding:40px;h1{font-size:28px;color:",d.colors.text,";}h2{font-size:20px;}strong{color:",d.colors.textLead,";font-weight:500;}hr{width:200px;margin:30px 0;border:0;height:1px;background-color:",d.colors.text,";}a{color:",d.colors.active,";}"),b=(0,r.default)("span",{target:"emw4gx71",label:"PrivacyWarning"})("color:",d.colors.text,";"),w=(0,r.default)("button",{target:"emw4gx70",label:"CopyButton"})(d.buttons.button,";",d.buttons.default,";",d.buttons.gray,";display:block;margin:12px 0;");function _({entry:e,t}){return console.log(e),(0,p.jsx)(o.default.Fragment,null,(0,p.jsx)("hr",null),(0,p.jsx)("h2",null,t("ui.errorBoundary.recoveredEntry.heading")),(0,p.jsx)("strong",null,t("ui.errorBoundary.recoveredEntry.warning")),(0,p.jsx)(w,{onClick:()=>(0,u.default)(e)},t("ui.errorBoundary.recoveredEntry.copyButtonLabel")),(0,p.jsx)("pre",null,(0,p.jsx)("code",null,e)))}class x extends o.default.Component{constructor(...e){super(...e),m(this,"state",{hasError:!1,errorMessage:"",errorTitle:"",backup:""})}static getDerivedStateFromError(e){return console.error(e),{hasError:!0,errorMessage:(0,f.default)(e.stack,{basePath:window.location.origin||""}),errorTitle:e.toString()}}shouldComponentUpdate(e,t){return!this.props.showBackup||this.state.errorMessage!==t.errorMessage||this.state.backup!==t.backup}async componentDidUpdate(){if(this.props.showBackup){const e=await c.localForage.getItem("backup");e&&console.log(e),this.setState({backup:e})}}render(){const{hasError:e,errorMessage:t,backup:n,errorTitle:r}=this.state,{showBackup:i,t:a}=this.props;return e?(0,p.jsx)(y,null,(0,p.jsx)("h1",null,a("ui.errorBoundary.title")),(0,p.jsx)("p",null,(0,p.jsx)("span",null,a("ui.errorBoundary.details")),(0,p.jsx)("a",{href:v({title:r,config:this.props.config}),target:"_blank",rel:"noopener noreferrer","data-testid":"issue-url"},a("ui.errorBoundary.reportIt"))),(0,p.jsx)("p",null,a("ui.errorBoundary.privacyWarning").split("\n").map(((e,t)=>(0,p.jsx)(o.default.Fragment,null,(0,p.jsx)(b,{key:t},e),(0,p.jsx)("br",null))))),(0,p.jsx)("hr",null),(0,p.jsx)("h2",null,a("ui.errorBoundary.detailsHeading")),(0,p.jsx)("p",null,t),n&&i&&(0,p.jsx)(_,{entry:n,t:a})):this.props.children}}t.ErrorBoundary=x,m(x,"propTypes",{children:a.default.node,t:a.default.func.isRequired,config:a.default.object.isRequired}),t.default=(0,s.translate)()(x)},95921:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileUploadButton=a,o(n(2784));var r=o(n(13980)),i=n(28165);function o(e){return e&&e.__esModule?e:{default:e}}function a({label:e,imagesOnly:t,onChange:n,disabled:r,className:o}){return(0,i.jsx)("label",{tabIndex:"0",className:`nc-fileUploadButton ${o||""}`},(0,i.jsx)("span",null,e),(0,i.jsx)("input",{type:"file",accept:t?"image/*":"*/*",onChange:n,disabled:r}))}a.propTypes={className:r.default.string,label:r.default.string.isRequired,imagesOnly:r.default.bool,onChange:r.default.func.isRequired,disabled:r.default.bool}},21904:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Modal=void 0;var r=l(n(2784)),i=l(n(13980)),o=n(28165),a=l(n(37149)),s=n(30762);function l(e){return e&&e.__esModule?e:{default:e}}var u={name:"1o9c9d2-ReactModalGlobalStyles",styles:".ReactModal__Body--open{overflow:hidden;};label:ReactModalGlobalStyles;"};function c(){return(0,o.jsx)(o.Global,{styles:u})}const d=`\n ${s.shadows.dropDeep};\n background-color: #fff;\n border-radius: ${s.lengths.borderRadius};\n height: 80%;\n text-align: center;\n max-width: 2200px;\n padding: 20px;\n\n &:focus {\n outline: none;\n }\n `,f=`\n z-index: ${s.zIndex.zIndex99999};\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n opacity: 0;\n background-color: rgba(0, 0, 0, 0);\n transition: background-color ${s.transitions.main}, opacity ${s.transitions.main};\n `;class p extends r.default.Component{componentDidMount(){a.default.setAppElement("#nc-root")}render(){const{isOpen:e,children:t,className:n,onClose:i}=this.props;return(0,o.jsx)(r.default.Fragment,null,(0,o.jsx)(c,null),(0,o.jsx)(o.ClassNames,null,(({css:r,cx:s})=>(0,o.jsx)(a.default,{isOpen:e,onRequestClose:i,closeTimeoutMS:300,className:{base:s(r` + `);const r=this.wrappedControlValid();return"boolean"==typeof r?{error:!r}:Object.prototype.hasOwnProperty.call(r,"error")?r:r instanceof Promise?(r.then((()=>{this.validate({error:!1})}),(t=>{const n={type:u.default.CUSTOM,message:`${e.get("label",e.get("name"))} - ${t}.`};this.validate({error:n})})),{error:{type:u.default.CUSTOM,parentIds:n,message:t("editor.editorControlPane.widget.processing",{fieldLabel:e.get("label",e.get("name"))})}}):{error:!1}})),f(this,"getObjectValue",(()=>this.props.value||(0,a.Map)())),f(this,"onChangeObject",((e,t,n)=>{const r=this.getObjectValue().set(e.get("name"),t);return this.props.onChange(r,n&&{[this.props.field.get("name")]:n})})),f(this,"setInactiveStyle",(()=>{this.props.setInactiveStyle(),this.props.field.has("pattern")&&!h(this.getValidateValue())&&this.validate()}))}shouldComponentUpdate(e){return(!this.props.isLoadingAsset||!e.isLoadingAsset)&&(this.wrappedControlShouldComponentUpdate?this.wrappedControlShouldComponentUpdate(e):this.props.value!==e.value||this.props.classNameWrapper!==e.classNameWrapper||this.props.hasActiveStyle!==e.hasActiveStyle)}render(){const{controlComponent:e,entry:t,collection:n,config:r,field:o,value:a,mediaPaths:s,metadata:u,onChange:c,onValidateObject:d,onOpenMediaLibrary:f,onRemoveMediaControl:p,onPersistMedia:h,onClearMediaControl:m,onAddAsset:g,onRemoveInsertedMedia:v,getAsset:y,classNameWrapper:b,classNameWidget:w,classNameWidgetActive:_,classNameLabel:x,classNameLabelActive:k,setActiveStyle:E,hasActiveStyle:C,editorControl:S,uniqueFieldId:A,resolveWidget:T,widget:O,getEditorComponents:P,query:R,queryHits:D,clearSearch:M,clearFieldErrors:I,isFetching:L,loadEntry:j,fieldsErrors:N,controlRef:F,isEditorComponent:B,isNewEditorComponent:z,parentIds:U,t:q,isDisabled:W,isFieldDuplicate:$,isFieldHidden:H,locale:V,isParentListCollapsed:G}=this.props;return i.default.createElement(e,{entry:t,collection:n,config:r,field:o,value:a,mediaPaths:s,metadata:u,onChange:c,onChangeObject:this.onChangeObject,onValidateObject:d,onOpenMediaLibrary:f,onClearMediaControl:m,onRemoveMediaControl:p,onPersistMedia:h,onAddAsset:g,onRemoveInsertedMedia:v,getAsset:y,forID:A,ref:this.processInnerControlRef,validate:this.validate,classNameWrapper:b,classNameWidget:w,classNameWidgetActive:_,classNameLabel:x,classNameLabelActive:k,setActiveStyle:E,setInactiveStyle:()=>this.setInactiveStyle(),hasActiveStyle:C,editorControl:S,resolveWidget:T,widget:O,getEditorComponents:P,getRemarkPlugins:l.getRemarkPlugins,query:R,queryHits:D,clearSearch:M,clearFieldErrors:I,isFetching:L,loadEntry:j,isEditorComponent:B,isNewEditorComponent:z,fieldsErrors:N,controlRef:F,parentIds:U,t:q,isDisabled:W,isFieldDuplicate:$,isFieldHidden:H,locale:V,isParentListCollapsed:G})}}t.default=m,f(m,"propTypes",{controlComponent:r.default.func.isRequired,field:o.default.map.isRequired,hasActiveStyle:r.default.bool,setActiveStyle:r.default.func.isRequired,setInactiveStyle:r.default.func.isRequired,classNameWrapper:r.default.string.isRequired,classNameWidget:r.default.string.isRequired,classNameWidgetActive:r.default.string.isRequired,classNameLabel:r.default.string.isRequired,classNameLabelActive:r.default.string.isRequired,value:r.default.oneOfType([r.default.node,r.default.object,r.default.string,r.default.bool]),mediaPaths:o.default.map.isRequired,metadata:o.default.map,fieldsErrors:o.default.map,onChange:r.default.func.isRequired,onValidate:r.default.func,onOpenMediaLibrary:r.default.func.isRequired,onClearMediaControl:r.default.func.isRequired,onRemoveMediaControl:r.default.func.isRequired,onPersistMedia:r.default.func.isRequired,onAddAsset:r.default.func.isRequired,onRemoveInsertedMedia:r.default.func.isRequired,getAsset:r.default.func.isRequired,resolveWidget:r.default.func.isRequired,widget:r.default.object.isRequired,getEditorComponents:r.default.func.isRequired,isFetching:r.default.bool,controlRef:r.default.func,query:r.default.func.isRequired,clearSearch:r.default.func.isRequired,clearFieldErrors:r.default.func.isRequired,queryHits:r.default.oneOfType([r.default.array,r.default.object]),editorControl:r.default.elementType.isRequired,uniqueFieldId:r.default.string.isRequired,loadEntry:r.default.func.isRequired,t:r.default.func.isRequired,onValidateObject:r.default.func,isEditorComponent:r.default.bool,isNewEditorComponent:r.default.bool,entry:o.default.map.isRequired,isDisabled:r.default.bool,isFieldDuplicate:r.default.func,isFieldHidden:r.default.func,locale:r.default.string,isParentListCollapsed:r.default.bool})},78767:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=y(n(70894)),i=y(n(13980)),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=v(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(2784)),a=y(n(19155)),s=n(28165),l=y(n(31396)),u=n(30762),c=n(93232),d=y(n(46776)),f=y(n(75904)),p=y(n(6714)),h=n(13943),m=n(48781),g=n(45624);function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}function y(e){return e&&e.__esModule?e:{default:e}}function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;te.blockEntry?"none":"auto"),";overflow-y:",(e=>e.overFlow?"auto":"hidden"),";"),M=(0,r.default)(D,{target:"e1nx103k1",label:"ControlPaneContainer"})({name:"b2tic3",styles:"padding:0 16px;position:relative;overflow-x:hidden"}),I=(0,r.default)("div",{target:"e1nx103k0",label:"ViewControls"})("position:absolute;top:10px;right:10px;z-index:",u.zIndex.zIndex299,";");function L({i18nVisible:e,previewVisible:t,editor:n,editorWithEditor:r,editorWithPreview:i}){return e?r:t?i:(0,s.jsx)(O,null,n)}class j extends o.Component{constructor(...e){super(...e),w(this,"state",{showEventBlocker:!1,previewVisible:"false"!==localStorage.getItem(_),scrollSyncEnabled:"false"!==localStorage.getItem(x),i18nVisible:"false"!==localStorage.getItem(E)}),w(this,"handleSplitPaneDragStart",(()=>{this.setState({showEventBlocker:!0})})),w(this,"handleSplitPaneDragFinished",(()=>{this.setState({showEventBlocker:!1})})),w(this,"handleOnPersist",(async(e={})=>{const{createNew:t=!1,duplicate:n=!1}=e;await this.controlPaneRef.switchToDefaultLocale(),this.controlPaneRef.validate(),this.props.onPersist({createNew:t,duplicate:n})})),w(this,"handleOnPublish",(async(e={})=>{const{createNew:t=!1,duplicate:n=!1}=e;await this.controlPaneRef.switchToDefaultLocale(),this.controlPaneRef.validate(),this.props.onPublish({createNew:t,duplicate:n})})),w(this,"handleTogglePreview",(()=>{const e=!this.state.previewVisible;this.setState({previewVisible:e}),localStorage.setItem(_,e)})),w(this,"handleToggleScrollSync",(()=>{const e=!this.state.scrollSyncEnabled;this.setState({scrollSyncEnabled:e}),localStorage.setItem(x,e)})),w(this,"handleToggleI18n",(()=>{const e=!this.state.i18nVisible;this.setState({i18nVisible:e}),localStorage.setItem(E,e)})),w(this,"handleLeftPanelLocaleChange",(e=>{this.setState({leftPanelLocale:e})}))}render(){const{collection:e,entry:t,fields:n,fieldsMetaData:r,fieldsErrors:i,onChange:o,showDelete:a,onDelete:l,onDeleteUnpublishedChanges:u,onChangeStatus:v,onPublish:y,unPublish:w,onDuplicate:_,onValidate:x,user:E,hasChanged:C,displayUrl:O,hasWorkflow:j,useOpenAuthoring:N,hasUnpublishedChanges:F,isNewEntry:B,isModification:z,currentStatus:U,onLogoutClick:q,loadDeployPreview:W,deployPreview:$,draftKey:H,editorBackLink:V,t:G}=this.props,{scrollSyncEnabled:K,showEventBlocker:Z}=this.state,Y=function(e,t){if(e.get("type")===m.FILES){const n=(0,g.getFileFromSlug)(e,t.get("slug")),r=null==n?void 0:n.getIn(["editor","preview"]);if(null!=r)return r}return e.getIn(["editor","preview"],!0)}(e,t),{locales:X,defaultLocale:Q}=(0,h.getI18nInfo)(this.props.collection),J=(0,h.hasI18n)(e)&&X.length>1,ee={collection:e,entry:t,fields:n,fieldsMetaData:r,fieldsErrors:i,onChange:o,onValidate:x},te=this.state.leftPanelLocale||(null==X?void 0:X[0]),ne=(0,s.jsx)(M,{overFlow:!0,blockEntry:Z},(0,s.jsx)(d.default,b({},ee,{ref:e=>this.controlPaneRef=e,locale:te,t:G,onLocaleChange:this.handleLeftPanelLocaleChange}))),re=(0,s.jsx)(M,{overFlow:!this.state.scrollSyncEnabled,blockEntry:Z},(0,s.jsx)(d.default,b({},ee,{locale:null==X?void 0:X[1],t:G}))),ie=J?(0,h.getPreviewEntry)(t,te,Q):t,oe=(0,s.jsx)(c.ScrollSync,{enabled:this.state.scrollSyncEnabled},(0,s.jsx)("div",null,(0,s.jsx)(A,null),(0,s.jsx)(T,{maxSize:-100,minSize:400,defaultSize:parseInt(localStorage.getItem(k),10)||"50%",onChange:e=>localStorage.setItem(k,e),onDragStarted:this.handleSplitPaneDragStart,onDragFinished:this.handleSplitPaneDragFinished},(0,s.jsx)(c.ScrollSyncPane,null,ne),(0,s.jsx)(D,{blockEntry:Z},(0,s.jsx)(f.default,{collection:e,entry:ie,fields:n,fieldsMetaData:r,locale:te}))))),ae=(0,s.jsx)(c.ScrollSync,{enabled:this.state.scrollSyncEnabled},(0,s.jsx)("div",null,(0,s.jsx)(T,{maxSize:-100,defaultSize:parseInt(localStorage.getItem(k),10)||"50%",onChange:e=>localStorage.setItem(k,e),onDragStarted:this.handleSplitPaneDragStart,onDragFinished:this.handleSplitPaneDragFinished},(0,s.jsx)(c.ScrollSyncPane,null,ne),(0,s.jsx)(c.ScrollSyncPane,null,re)))),se=J&&this.state.i18nVisible,le=Y&&this.state.previewVisible,ue=se||le;return(0,s.jsx)(P,null,(0,s.jsx)(p.default,{isPersisting:t.get("isPersisting"),isPublishing:t.get("isPublishing"),isUpdatingStatus:t.get("isUpdatingStatus"),isDeleting:t.get("isDeleting"),onPersist:this.handleOnPersist,onPersistAndNew:()=>this.handleOnPersist({createNew:!0}),onPersistAndDuplicate:()=>this.handleOnPersist({createNew:!0,duplicate:!0}),onDelete:l,onDeleteUnpublishedChanges:u,onChangeStatus:v,showDelete:a,onPublish:y,unPublish:w,onDuplicate:_,onPublishAndNew:()=>this.handleOnPublish({createNew:!0}),onPublishAndDuplicate:()=>this.handleOnPublish({createNew:!0,duplicate:!0}),user:E,hasChanged:C,displayUrl:O,collection:e,hasWorkflow:j,useOpenAuthoring:N,hasUnpublishedChanges:F,isNewEntry:B,isModification:z,currentStatus:U,onLogoutClick:q,loadDeployPreview:W,deployPreview:$,editorBackLink:V}),(0,s.jsx)(R,{key:H},(0,s.jsx)(I,null,J&&(0,s.jsx)(S,{isActive:se,onClick:this.handleToggleI18n,size:"large",type:"page",title:G("editor.editorInterface.toggleI18n"),marginTop:"70px"}),Y&&(0,s.jsx)(S,{isActive:le,onClick:this.handleTogglePreview,size:"large",type:"eye",title:G("editor.editorInterface.togglePreview")}),ue&&(0,s.jsx)(S,{isActive:K,onClick:this.handleToggleScrollSync,size:"large",type:"scroll",title:G("editor.editorInterface.toggleScrollSync")})),(0,s.jsx)(L,{i18nVisible:se,previewVisible:le,editor:ne,editorWithEditor:ae,editorWithPreview:oe})))}}j.propTypes={collection:a.default.map.isRequired,entry:a.default.map.isRequired,fields:a.default.list.isRequired,fieldsMetaData:a.default.map.isRequired,fieldsErrors:a.default.map.isRequired,onChange:i.default.func.isRequired,onValidate:i.default.func.isRequired,onPersist:i.default.func.isRequired,showDelete:i.default.bool.isRequired,onDelete:i.default.func.isRequired,onDeleteUnpublishedChanges:i.default.func.isRequired,onPublish:i.default.func.isRequired,unPublish:i.default.func.isRequired,onDuplicate:i.default.func.isRequired,onChangeStatus:i.default.func.isRequired,user:i.default.object,hasChanged:i.default.bool,displayUrl:i.default.string,hasWorkflow:i.default.bool,useOpenAuthoring:i.default.bool,hasUnpublishedChanges:i.default.bool,isNewEntry:i.default.bool,isModification:i.default.bool,currentStatus:i.default.string,onLogoutClick:i.default.func.isRequired,deployPreview:i.default.object,loadDeployPreview:i.default.func.isRequired,draftKey:i.default.string.isRequired,t:i.default.func.isRequired},t.default=j},4488:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(70894)),i=l(n(2784)),o=l(n(13980)),a=l(n(19155)),s=n(28165);function l(e){return e&&e.__esModule?e:{default:e}}function u(e){return"hidden"!==e.get("widget")}const c=(0,r.default)("div",{target:"e1iji6y40",label:"PreviewContainer"})({name:"9bq7s9",styles:"font-family:Roboto,'Helvetica Neue',HelveticaNeue,Helvetica,Arial,sans-serif"});class d extends i.default.Component{render(){const{collection:e,fields:t,widgetFor:n}=this.props;return e&&t?(0,s.jsx)(c,null,t.filter(u).map((e=>(0,s.jsx)("div",{key:e.get("name")},n(e.get("name")))))):null}}t.default=d,d.propTypes={collection:a.default.map.isRequired,entry:a.default.map.isRequired,fields:a.default.list.isRequired,getAsset:o.default.func.isRequired,widgetFor:o.default.func.isRequired}},86545:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(13980)),i=u(n(2784)),o=n(48570),a=n(93232),s=n(12693),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}class c extends i.default.Component{render(){const{previewComponent:e,previewProps:t}=this.props;return(0,l.jsx)(s.FrameContextConsumer,null,(n=>(0,l.jsx)(a.ScrollSyncPane,{attachTo:n.document.scrollingElement},(0,o.isElement)(e)?i.default.cloneElement(e,t):i.default.createElement(e,t))))}}c.propTypes={previewComponent:r.default.func.isRequired,previewProps:r.default.object},t.default=c},75904:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.PreviewPane=void 0;var r=k(n(70894)),i=k(n(13980)),o=k(n(2784)),a=n(46670),s=k(n(19155)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=x(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(12693)),u=n(30762),c=n(57903),d=n(41891),f=n(50236),p=n(50758),h=n(45624),m=n(71033),g=n(33474),v=n(39010),y=k(n(86545)),b=k(n(16791)),w=k(n(4488)),_=n(28165);function x(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(x=function(e){return e?n:t})(e)}function k(e){return e&&e.__esModule?e:{default:e}}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t{const{getAsset:o,entry:s}=r,l=(0,d.resolveWidget)(e.get("widget")),u=i?e.get("name")+"_"+i:e.get("name"),c=t&&!l.allowMapValue&&a.Map.isMap(t);return l.preview?(0,_.jsx)(b.default,{previewComponent:l.preview,key:u,field:e,getAsset:o,value:c?t.get(e.get("name")):t,entry:s,fieldsMetaData:n,resolveWidget:d.resolveWidget,getRemarkPlugins:d.getRemarkPlugins}):null})),S(this,"inferredFields",{}),S(this,"widgetFor",((e,t=this.props.fields,n=this.props.entry.get("data"),r=this.props.fieldsMetaData)=>{let i=t&&t.find((t=>t.get("name")===e)),o=a.Map.isMap(n)&&n.get(i.get("name"));i.get("meta")&&(o=this.props.entry.getIn(["meta",i.get("name")]));const s=i.get("fields"),l=i.get("field"),u=r&&r.get(i.get("name"),(0,a.Map)());s&&(i=i.set("fields",this.getNestedWidgets(s,o,u))),l&&(i=i.set("field",this.getSingleNested(l,o,u)));const c=Object.entries(this.inferredFields).filter((([e])=>(0,h.selectField)(this.props.collection,e)===i)).map((([,e])=>e))[0];return c?o=c.defaultPreview(o):o&&-1!==["string","text","number"].indexOf(i.get("widget"))&&o.toString().length<50&&(o=(0,_.jsx)("div",null,(0,_.jsx)("strong",null,i.get("label",i.get("name")),":")," ",o)),o?this.getWidget(i,o,u,this.props):null})),S(this,"getNestedWidgets",((e,t,n)=>a.List.isList(t)?t.map((t=>this.widgetsForNestedFields(e,t,n))):this.widgetsForNestedFields(e,t,n))),S(this,"getSingleNested",((e,t,n)=>a.List.isList(t)?t.map(((t,r)=>this.getWidget(e,t,n.get(e.get("name")),this.props,r))):this.getWidget(e,t,n.get(e.get("name")),this.props))),S(this,"widgetsForNestedFields",((e,t,n)=>e.map((r=>this.widgetFor(r.get("name"),e,t,n))))),S(this,"widgetsFor",(e=>{const{fields:t,entry:n,fieldsMetaData:r}=this.props,i=t.find((t=>t.get("name")===e)),o=i&&i.get("fields"),s=n.getIn(["data",i.get("name")]),l=r.get(i.get("name"),(0,a.Map)());return a.List.isList(s)?s.map((e=>{const t=o&&(0,a.Map)(o.map(((t,n)=>[t.get("name"),(0,_.jsx)("div",{key:n},this.getWidget(t,e,l.get(t.get("name")),this.props))])));return(0,a.Map)({data:e,widgets:t})})):(0,a.Map)({data:s,widgets:o&&(0,a.Map)(o.map((e=>[e.get("name"),this.getWidget(e,s,l.get(e.get("name")),this.props)])))})})),S(this,"getCollection",(async(e,t)=>{const{state:n}=this.props,r=n.collections.get(e);if(void 0===t)return(await(0,f.getAllEntries)(n,r)).map((e=>(0,a.Map)().set("data",e.data)));const i=await(0,f.tryLoadEntry)(n,r,t);return(0,a.Map)().set("data",i.data)}))}inferFields(){const e=(0,h.selectInferredField)(this.props.collection,"title"),t=(0,h.selectInferredField)(this.props.collection,"shortTitle"),n=(0,h.selectInferredField)(this.props.collection,"author");this.inferredFields={},e&&(this.inferredFields[e]=v.INFERABLE_FIELDS.title),t&&(this.inferredFields[t]=v.INFERABLE_FIELDS.shortTitle),n&&(this.inferredFields[n]=v.INFERABLE_FIELDS.author)}render(){const{entry:e,collection:t,config:n}=this.props;if(!e||!e.get("data"))return null;const r=(0,d.getPreviewTemplate)((0,h.selectTemplateName)(t,e.get("slug")))||w.default;this.inferFields();const i=C(C({},this.props),{},{widgetFor:this.widgetFor,widgetsFor:this.widgetsFor,getCollection:this.getCollection}),o=(0,d.getPreviewStyles)().map(((e,t)=>e.raw?(0,_.jsx)("style",{key:t},e.value):(0,_.jsx)("link",{key:t,href:e.value,type:"text/css",rel:"stylesheet"})));return t||(0,_.jsx)(A,{id:"preview-pane",head:o}),(0,_.jsx)(p.ErrorBoundary,{config:n},(0,_.jsx)(A,{id:"preview-pane",head:o,initialContent:'\n\n\n \n
\n\n'},(0,_.jsx)(l.FrameContextConsumer,null,(({document:e,window:t})=>(0,_.jsx)(y.default,{previewComponent:r,previewProps:C(C({},i),{},{document:e,window:t})})))))}}t.PreviewPane=T,T.propTypes={collection:s.default.map.isRequired,fields:s.default.list.isRequired,entry:s.default.map.isRequired,fieldsMetaData:s.default.map.isRequired,getAsset:i.default.func.isRequired},t.default=(0,c.connect)((function(e){return{isLoadingAsset:(0,g.selectIsLoadingAsset)(e.medias),config:e.config,state:e}}),(function(e){return{boundGetAsset:(t,n)=>(0,m.boundGetAsset)(e,t,n)}}),(function(e,t,n){return C(C(C(C({},e),t),n),{},{getAsset:t.boundGetAsset(n.collection,n.entry)})}))(T)},16791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(2784)),i=s(n(13980)),o=s(n(19155));const a=["previewComponent"];function s(e){return e&&e.__esModule?e:{default:e}}class l extends r.default.Component{shouldComponentUpdate(e){return["object","list"].includes(e.field.get("widget"))||this.props.value!==e.value||this.props.fieldsMetaData!==e.fieldsMetaData||this.props.getAsset!==e.getAsset}render(){const e=this.props,{previewComponent:t}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,a);return r.default.createElement(t,n)}}l.propTypes={previewComponent:i.default.func.isRequired,field:o.default.map.isRequired,value:i.default.oneOfType([i.default.node,i.default.object,i.default.string,i.default.bool])},t.default=l},6714:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.EditorToolbar=void 0;var r=p(n(70894)),i=p(n(2784)),o=p(n(13980)),a=p(n(19155)),s=n(28165),l=n(9316),u=n(34752),c=n(30762),d=n(61928),f=n(50758);function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const m={noOverflow:{name:"1ctb18k-noOverflow",styles:"overflow:hidden;white-space:nowrap;text-overflow:ellipsis;label:noOverflow;"},buttonMargin:{name:"bx8mhy-buttonMargin",styles:"margin:0 10px;label:buttonMargin;"},toolbarSection:(0,s.css)("height:100%;display:flex;align-items:center;border:0 solid ",c.colors.textFieldBorder,";;label:toolbarSection;"),publishedButton:(0,s.css)("background-color:",c.colorsRaw.tealLight,";color:",c.colorsRaw.tealDark,";;label:publishedButton;")},g=(0,r.default)("div",{target:"e1d2l9mo26",label:"TooltipText"})({name:"1ykbu60",styles:"visibility:hidden;width:321px;background-color:#555;color:#fff;text-align:unset;border-radius:6px;padding:5px;position:absolute;z-index:1;top:145%;left:50%;margin-left:-320px;opacity:0;transition:opacity 0.3s"}),v=(0,r.default)("div",{target:"e1d2l9mo25",label:"Tooltip"})("position:relative;display:inline-block;&:hover+",g,"{visibility:visible;opacity:0.9;}"),y=(0,r.default)("div",{target:"e1d2l9mo24",label:"TooltipContainer"})({name:"bjn8wh",styles:"position:relative"}),b=(0,r.default)(c.StyledDropdownButton,{target:"e1d2l9mo23",label:"DropdownButton"})(m.noOverflow,"@media (max-width: 1200px){padding-left:10px;}"),w=(0,r.default)("div",{target:"e1d2l9mo22",label:"ToolbarContainer"})("box-shadow:0 2px 6px 0 rgba(68, 74, 87, 0.05),0 1px 3px 0 rgba(68, 74, 87, 0.1),0 2px 54px rgba(0, 0, 0, 0.1);position:absolute;top:0;left:0;width:100%;min-width:800px;z-index:",c.zIndex.zIndex300,";background-color:#fff;height:66px;display:flex;justify-content:space-between;"),_=(0,r.default)("div",{target:"e1d2l9mo21",label:"ToolbarSectionMain"})(m.toolbarSection,";flex:10;display:flex;justify-content:space-between;padding:0 10px;"),x=(0,r.default)("div",{target:"e1d2l9mo20",label:"ToolbarSubSectionFirst"})({name:"s5xdrg",styles:"display:flex;align-items:center"}),k=(0,r.default)(x,{target:"e1d2l9mo19",label:"ToolbarSubSectionLast"})({name:"1f60if8",styles:"justify-content:flex-end"}),E=(0,r.default)(u.Link,{target:"e1d2l9mo18",label:"ToolbarSectionBackLink"})(m.toolbarSection,";border-right-width:1px;font-weight:normal;padding:0 20px;&:hover,&:focus{background-color:#f1f2f4;}"),C=(0,r.default)("div",{target:"e1d2l9mo17",label:"ToolbarSectionMeta"})(m.toolbarSection,";border-left-width:1px;padding:0 7px;"),S=(0,r.default)(c.Dropdown,{target:"e1d2l9mo16",label:"ToolbarDropdown"})(m.buttonMargin,";",c.Icon,"{color:",c.colorsRaw.teal,";}"),A=(0,r.default)("div",{target:"e1d2l9mo15",label:"BackArrow"})("color:",c.colors.textLead,";font-size:21px;font-weight:600;margin-right:16px;"),T=(0,r.default)("div",{target:"e1d2l9mo14",label:"BackCollection"})("color:",c.colors.textLead,";font-size:14px;"),O=(0,r.default)("div",{target:"e1d2l9mo13",label:"BackStatus"})({name:"j9a02z",styles:"margin-top:6px"}),P=(0,r.default)(O,{target:"e1d2l9mo12",label:"BackStatusUnchanged"})(c.components.textBadgeSuccess,";"),R=(0,r.default)(O,{target:"e1d2l9mo11",label:"BackStatusChanged"})(c.components.textBadgeDanger,";"),D=(0,r.default)("button",{target:"e1d2l9mo10",label:"ToolbarButton"})(c.buttons.button,";",c.buttons.default,";",m.buttonMargin,";",m.noOverflow,";display:block;@media (max-width: 1200px){padding:0 10px;}"),M=(0,r.default)(D,{target:"e1d2l9mo9",label:"DeleteButton"})(c.buttons.lightRed,";"),I=(0,r.default)(D,{target:"e1d2l9mo8",label:"SaveButton"})(c.buttons.lightBlue,";&[disabled]{",c.buttons.disabled,";}"),L=(0,r.default)(b,{target:"e1d2l9mo7",label:"PublishedToolbarButton"})(m.publishedButton,";"),j=(0,r.default)(D,{target:"e1d2l9mo6",label:"PublishedButton"})(m.publishedButton,";"),N=(0,r.default)(b,{target:"e1d2l9mo5",label:"PublishButton"})("background-color:",c.colorsRaw.teal,";"),F=(0,r.default)(b,{target:"e1d2l9mo4",label:"StatusButton"})("background-color:",c.colorsRaw.tealLight,";color:",c.colorsRaw.teal,";"),B=(0,r.default)("div",{target:"e1d2l9mo3",label:"PreviewButtonContainer"})("margin-right:12px;color:",c.colorsRaw.blue,";display:flex;align-items:center;a,",c.Icon,"{color:",c.colorsRaw.blue,";}",c.Icon,"{position:relative;top:1px;}"),z=(0,r.default)("button",{target:"e1d2l9mo2",label:"RefreshPreviewButton"})("background:none;border:0;cursor:pointer;color:",c.colorsRaw.blue,";span{margin-right:6px;}"),U=z.withComponent("a",{target:"e1d2l9mo27",label:"PreviewLink"}),q=(0,r.default)(c.DropdownItem,{target:"e1d2l9mo1",label:"PublishDropDownItem"})({name:"svxjwj",styles:"min-width:initial"}),W=(0,r.default)(c.DropdownItem,{target:"e1d2l9mo0",label:"StatusDropdownItem"})(c.Icon,"{color:",c.colors.infoText,";}");class $ extends i.default.Component{constructor(...e){super(...e),h(this,"renderSimpleControls",(()=>{const{collection:e,hasChanged:t,isNewEntry:n,showDelete:r,onDelete:o,t:a}=this.props,l=e.get("create");return(0,s.jsx)(i.default.Fragment,null,n||t?this.renderNewEntrySimplePublishControls({canCreate:l}):this.renderExistingEntrySimplePublishControls({canCreate:l}),(0,s.jsx)("div",null,r?(0,s.jsx)(M,{onClick:o},a("editor.editorToolbar.deleteEntry")):null))})),h(this,"renderDeployPreviewControls",(e=>{const{deployPreview:t={},loadDeployPreview:n,t:r}=this.props,{url:i,status:o,isFetching:a}=t;if(!o)return;const l="SUCCESS"===o&&!a;return(0,s.jsx)(B,null,l?(0,s.jsx)(U,{rel:"noopener noreferrer",target:"_blank",href:i},(0,s.jsx)("span",null,e),(0,s.jsx)(c.Icon,{type:"new-tab",size:"xsmall"})):(0,s.jsx)(z,{onClick:n},(0,s.jsx)("span",null,r("editor.editorToolbar.deployPreviewPendingButtonLabel")),(0,s.jsx)(c.Icon,{type:"refresh",size:"xsmall"})))})),h(this,"renderStatusInfoTooltip",(()=>{const{t:e,currentStatus:t}=this.props,n={[d.status.get("DRAFT")]:"statusInfoTooltipDraft",[d.status.get("PENDING_REVIEW")]:"statusInfoTooltipInReview"},r=Object.keys(n).find((e=>e===t));return(0,s.jsx)(y,null,(0,s.jsx)(v,null,(0,s.jsx)(c.Icon,{type:"info-circle",size:"small",className:"tooltip"})),r&&(0,s.jsx)(g,null,e(`editor.editorToolbar.${n[r]}`)))})),h(this,"renderWorkflowStatusControls",(()=>{const{isUpdatingStatus:e,onChangeStatus:t,currentStatus:n,t:r,useOpenAuthoring:o}=this.props,a={[d.status.get("DRAFT")]:r("editor.editorToolbar.draft"),[d.status.get("PENDING_REVIEW")]:r("editor.editorToolbar.inReview"),[d.status.get("PENDING_PUBLISH")]:r("editor.editorToolbar.ready")},l=e?r("editor.editorToolbar.updating"):r("editor.editorToolbar.status",{status:a[n]});return(0,s.jsx)(i.default.Fragment,null,(0,s.jsx)(S,{dropdownTopOverlap:"40px",dropdownWidth:"120px",renderButton:()=>(0,s.jsx)(F,null,l)},(0,s.jsx)(W,{label:r("editor.editorToolbar.draft"),onClick:()=>t("DRAFT"),icon:n===d.status.get("DRAFT")?"check":null}),(0,s.jsx)(W,{label:r("editor.editorToolbar.inReview"),onClick:()=>t("PENDING_REVIEW"),icon:n===d.status.get("PENDING_REVIEW")?"check":null}),o?"":(0,s.jsx)(W,{label:r("editor.editorToolbar.ready"),onClick:()=>t("PENDING_PUBLISH"),icon:n===d.status.get("PENDING_PUBLISH")?"check":null})),o&&this.renderStatusInfoTooltip())})),h(this,"renderNewEntryWorkflowPublishControls",(({canCreate:e,canPublish:t})=>{const{isPublishing:n,onPublish:r,onPublishAndNew:o,onPublishAndDuplicate:a,t:l}=this.props;return t?(0,s.jsx)(S,{dropdownTopOverlap:"40px",dropdownWidth:"200px",renderButton:()=>(0,s.jsx)(N,null,l(n?"editor.editorToolbar.publishing":"editor.editorToolbar.publish"))},(0,s.jsx)(q,{label:l("editor.editorToolbar.publishNow"),icon:"arrow",iconDirection:"right",onClick:r}),e?(0,s.jsx)(i.default.Fragment,null,(0,s.jsx)(q,{label:l("editor.editorToolbar.publishAndCreateNew"),icon:"add",onClick:o}),(0,s.jsx)(q,{label:l("editor.editorToolbar.publishAndDuplicate"),icon:"add",onClick:a})):null):""})),h(this,"renderExistingEntryWorkflowPublishControls",(({canCreate:e,canPublish:t,canDelete:n})=>{const{unPublish:r,onDuplicate:i,isPersisting:o,t:a}=this.props;return t||e?(0,s.jsx)(S,{dropdownTopOverlap:"40px",dropdownWidth:"150px",key:"td-publish-create",renderButton:()=>(0,s.jsx)(L,null,a(o?"editor.editorToolbar.unpublishing":"editor.editorToolbar.published"))},n&&t&&(0,s.jsx)(c.DropdownItem,{label:a("editor.editorToolbar.unpublish"),icon:"arrow",iconDirection:"right",onClick:r}),e&&(0,s.jsx)(c.DropdownItem,{label:a("editor.editorToolbar.duplicate"),icon:"add",onClick:i})):""})),h(this,"renderExistingEntrySimplePublishControls",(({canCreate:e})=>{const{onDuplicate:t,t:n}=this.props;return e?(0,s.jsx)(S,{dropdownTopOverlap:"40px",dropdownWidth:"150px",renderButton:()=>(0,s.jsx)(L,null,n("editor.editorToolbar.published"))},(0,s.jsx)(c.DropdownItem,{label:n("editor.editorToolbar.duplicate"),icon:"add",onClick:t})):(0,s.jsx)(j,null,n("editor.editorToolbar.published"))})),h(this,"renderNewEntrySimplePublishControls",(({canCreate:e})=>{const{onPersist:t,onPersistAndNew:n,onPersistAndDuplicate:r,isPersisting:o,t:a}=this.props;return(0,s.jsx)("div",null,(0,s.jsx)(S,{dropdownTopOverlap:"40px",dropdownWidth:"150px",renderButton:()=>(0,s.jsx)(N,null,a(o?"editor.editorToolbar.publishing":"editor.editorToolbar.publish"))},(0,s.jsx)(c.DropdownItem,{label:a("editor.editorToolbar.publishNow"),icon:"arrow",iconDirection:"right",onClick:t}),e?(0,s.jsx)(i.default.Fragment,null,(0,s.jsx)(c.DropdownItem,{label:a("editor.editorToolbar.publishAndCreateNew"),icon:"add",onClick:n}),(0,s.jsx)(c.DropdownItem,{label:a("editor.editorToolbar.publishAndDuplicate"),icon:"add",onClick:r})):null))})),h(this,"renderSimpleDeployPreviewControls",(()=>{const{hasChanged:e,isNewEntry:t,t:n}=this.props;if(!t&&!e)return this.renderDeployPreviewControls(n("editor.editorToolbar.deployButtonLabel"))})),h(this,"renderWorkflowControls",(()=>{const{onPersist:e,onDelete:t,onDeleteUnpublishedChanges:n,showDelete:r,hasChanged:i,hasUnpublishedChanges:o,useOpenAuthoring:a,isPersisting:l,isDeleting:u,isNewEntry:c,isModification:d,currentStatus:f,collection:p,t:h}=this.props,m=p.get("create"),g=p.get("publish")&&!a,v=p.get("delete",!0),y=o&&d&&h("editor.editorToolbar.deleteUnpublishedChanges")||o&&(c||!d)&&h("editor.editorToolbar.deleteUnpublishedEntry")||!o&&!d&&h("editor.editorToolbar.deletePublishedEntry");return[(0,s.jsx)(I,{disabled:!i,key:"save-button",onClick:()=>i&&e()},h(l?"editor.editorToolbar.saving":"editor.editorToolbar.save")),f?[this.renderWorkflowStatusControls(),this.renderNewEntryWorkflowPublishControls({canCreate:m,canPublish:g})]:!c&&this.renderExistingEntryWorkflowPublishControls({canCreate:m,canPublish:g,canDelete:v}),r&&!a||o||d?(0,s.jsx)(M,{key:"delete-button",onClick:o?n:t},u?h("editor.editorToolbar.deleting"):y):null]})),h(this,"renderWorkflowDeployPreviewControls",(()=>{const{currentStatus:e,isNewEntry:t,t:n}=this.props;return e?this.renderDeployPreviewControls(n("editor.editorToolbar.deployPreviewButtonLabel")):t?void 0:this.renderDeployPreviewControls(n("editor.editorToolbar.deployButtonLabel"))}))}componentDidMount(){const{isNewEntry:e,loadDeployPreview:t}=this.props;e||t({maxAttempts:3})}componentDidUpdate(e){const{isNewEntry:t,isPersisting:n,loadDeployPreview:r}=this.props;t||!e.isPersisting||n||r({maxAttempts:3})}render(){const{user:e,hasChanged:t,displayUrl:n,collection:r,hasWorkflow:i,onLogoutClick:o,t:a,editorBackLink:l}=this.props;return(0,s.jsx)(w,null,(0,s.jsx)(E,{to:l},(0,s.jsx)(A,null,"←"),(0,s.jsx)("div",null,(0,s.jsx)(T,null,a("editor.editorToolbar.backCollection",{collectionLabel:r.get("label")})),t?(0,s.jsx)(R,null,a("editor.editorToolbar.unsavedChanges")):(0,s.jsx)(P,null,a("editor.editorToolbar.changesSaved")))),(0,s.jsx)(_,null,(0,s.jsx)(x,null,i?this.renderWorkflowControls():this.renderSimpleControls()),(0,s.jsx)(k,null,i?this.renderWorkflowDeployPreviewControls():this.renderSimpleDeployPreviewControls())),(0,s.jsx)(C,null,(0,s.jsx)(f.SettingsDropdown,{displayUrl:n,imageUrl:null==e?void 0:e.avatar_url,onLogoutClick:o})))}}t.EditorToolbar=$,h($,"propTypes",{isPersisting:o.default.bool,isPublishing:o.default.bool,isUpdatingStatus:o.default.bool,isDeleting:o.default.bool,onPersist:o.default.func.isRequired,onPersistAndNew:o.default.func.isRequired,onPersistAndDuplicate:o.default.func.isRequired,showDelete:o.default.bool.isRequired,onDelete:o.default.func.isRequired,onDeleteUnpublishedChanges:o.default.func.isRequired,onChangeStatus:o.default.func.isRequired,onPublish:o.default.func.isRequired,unPublish:o.default.func.isRequired,onDuplicate:o.default.func.isRequired,onPublishAndNew:o.default.func.isRequired,onPublishAndDuplicate:o.default.func.isRequired,user:o.default.object,hasChanged:o.default.bool,displayUrl:o.default.string,collection:a.default.map.isRequired,hasWorkflow:o.default.bool,useOpenAuthoring:o.default.bool,hasUnpublishedChanges:o.default.bool,isNewEntry:o.default.bool,isModification:o.default.bool,currentStatus:o.default.string,onLogoutClick:o.default.func.isRequired,deployPreview:o.default.object,loadDeployPreview:o.default.func.isRequired,t:o.default.func.isRequired,editorBackLink:o.default.string.isRequired}),t.default=(0,l.translate)()($)},42531:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.connect)(h,null,m)(class extends i.default.Component{render(){return(0,c.jsx)(e,this.props)}})};var r,i=(r=n(2784))&&r.__esModule?r:{default:r},o=n(57903),a=n(61928),s=n(36642),l=n(45624),u=n(91358),c=n(28165);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;to((0,u.loadUnpublishedEntry)(e,t)),a.persistEntry=e=>o((0,u.persistUnpublishedEntry)(e,i))),f(f(f({},n),e),a)}},93698:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,s(n(2784));var r=n(9316),i=s(n(19155)),o=s(n(13980)),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}function l({field:e,t}){return(0,a.jsx)("div",null,t("editor.editorWidgets.unknownControl.noControl",{widget:e.get("widget")}))}l.propTypes={field:i.default.map,t:o.default.func.isRequired},t.default=(0,r.translate)()(l)},86618:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,s(n(2784));var r=n(9316),i=s(n(19155)),o=s(n(13980)),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}function l({field:e,t}){return(0,a.jsx)("div",{className:"nc-widgetPreview"},t("editor.editorWidgets.unknownPreview.noPreview",{widget:e.get("widget")}))}l.propTypes={field:i.default.map,t:o.default.func.isRequired},t.default=(0,r.translate)()(l)},29192:(e,t,n)=>{"use strict";var r=n(41891),i=a(n(93698)),o=a(n(86618));function a(e){return e&&e.__esModule?e:{default:e}}(0,r.registerWidget)("unknown",i.default,o.default)},52545:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(70894)),i=(s(n(2784)),s(n(13980))),o=n(30762),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("div",{target:"e156433y0",label:"EmptyMessageContainer"})("height:100%;width:100%;display:flex;justify-content:center;align-items:center;color:",(e=>e.isPrivate&&o.colors.textFieldBorder),";");function u({content:e,isPrivate:t}){return(0,a.jsx)(l,{isPrivate:t},(0,a.jsx)("h1",null,e))}u.propTypes={content:i.default.string.isRequired,isPrivate:i.default.bool},t.default=u},80306:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=v(n(16760)),i=v(n(34498)),o=v(n(2784)),a=v(n(13980)),s=v(n(19155)),l=n(57903),u=n(9316),c=v(n(14478)),d=n(33806),f=n(68104),p=n(90694),h=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=g(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(94366)),m=n(28165);function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t{const{loadMediaDisplayURL:t}=this.props;t(e)})),w(this,"filterImages",(e=>e.filter((e=>{const t=(0,d.fileExtension)(e.name).toLowerCase();return x.includes(t)})))),w(this,"toTableData",(e=>{const t=e&&e.map((({key:e,name:t,id:n,size:r,path:i,queryOrder:o,displayURL:a,draft:s})=>{const l=(0,d.fileExtension)(t).toLowerCase();return{key:e,id:n,name:t,path:i,type:l.toUpperCase(),size:r,queryOrder:o,displayURL:a,draft:s,isImage:x.includes(l),isViewableImage:_.includes(l)}})),{sortFields:n}=this.state,o=(0,r.default)(n,"fieldName").concat("queryOrder"),a=(0,r.default)(n,"direction").concat("asc");return(0,i.default)(t,o,a)})),w(this,"handleClose",(()=>{this.props.closeMediaLibrary()})),w(this,"handleAssetClick",(e=>{const t=this.state.selectedFile.key===e.key?{}:e;this.setState({selectedFile:t})})),w(this,"handlePersist",(async e=>{e.persist(),e.stopPropagation(),e.preventDefault();const{persistMedia:t,privateUpload:n,config:r,t:i,field:o}=this.props,{files:a}=e.dataTransfer||e.target,s=[...a][0],l=r.get("max_file_size");l&&s.size>l?window.alert(i("mediaLibrary.mediaLibrary.fileTooLarge",{size:Math.floor(l/1e3)})):(await t(s,{privateUpload:n,field:o}),this.setState({isPersisted:!0}),this.scrollToTop()),e.target.value=null})),w(this,"handleInsert",(()=>{const{selectedFile:e}=this.state,{path:t}=e,{insertMedia:n,field:r}=this.props;n(t,r),this.handleClose()})),w(this,"handleDelete",(()=>{const{selectedFile:e}=this.state,{files:t,deleteMedia:n,privateUpload:r,t:i}=this.props;window.confirm(i("mediaLibrary.mediaLibrary.onDelete"))&&n(t.find((t=>e.key===t.key)),{privateUpload:r}).then((()=>{this.setState({selectedFile:{}})}))})),w(this,"handleDownload",(()=>{const{selectedFile:e}=this.state,{displayURLs:t}=this.props,n=t.getIn([e.id,"url"])||e.url;if(!n)return;const r=e.name,i=document.createElement("a");i.setAttribute("href",n),i.setAttribute("download",r),i.style.display="none",document.body.appendChild(i),i.click(),document.body.removeChild(i),this.setState({selectedFile:{}})})),w(this,"handleLoadMore",(()=>{const{loadMedia:e,dynamicSearchQuery:t,page:n,privateUpload:r}=this.props;e({query:t,page:n+1,privateUpload:r})})),w(this,"handleSearchKeyDown",(async e=>{const{dynamicSearch:t,loadMedia:n,privateUpload:r}=this.props;"Enter"===e.key&&t&&(await n({query:this.state.query,privateUpload:r}),this.scrollToTop())})),w(this,"scrollToTop",(()=>{this.scrollContainerRef.scrollTop=0})),w(this,"handleSearchChange",(e=>{this.setState({query:e.target.value})})),w(this,"queryFilter",((e,t)=>{const n=e.replace(/ /g,"");return c.default.filter(n,t,{extract:e=>e.name}).map(((e,n)=>b(b({},t[e.index]),{},{queryIndex:n})))}))}componentDidMount(){this.props.loadMedia()}UNSAFE_componentWillReceiveProps(e){!this.props.isVisible&&e.isVisible&&this.setState({selectedFile:{},query:""}),this.state.isPersisted&&this.setState({selectedFile:e.files[0],isPersisted:!1})}componentDidUpdate(e){!e.isVisible&&this.props.isVisible&&e.privateUpload!==this.props.privateUpload&&this.props.loadMedia({privateUpload:this.props.privateUpload}),this.state.isPersisted&&this.setState({selectedFile:this.props.files[0],isPersisted:!1})}render(){const{isVisible:e,canInsert:t,files:n,dynamicSearch:r,dynamicSearchActive:i,forImage:o,isLoading:a,isPersisting:s,isDeleting:l,hasNextPage:u,isPaginating:c,privateUpload:d,displayURLs:f,t:p}=this.props;return(0,m.jsx)(h.default,{isVisible:e,canInsert:t,files:n,dynamicSearch:r,dynamicSearchActive:i,forImage:o,isLoading:a,isPersisting:s,isDeleting:l,hasNextPage:u,isPaginating:c,privateUpload:d,query:this.state.query,selectedFile:this.state.selectedFile,handleFilter:this.filterImages,handleQuery:this.queryFilter,toTableData:this.toTableData,handleClose:this.handleClose,handleSearchChange:this.handleSearchChange,handleSearchKeyDown:this.handleSearchKeyDown,handlePersist:this.handlePersist,handleDelete:this.handleDelete,handleInsert:this.handleInsert,handleDownload:this.handleDownload,setScrollContainerRef:e=>this.scrollContainerRef=e,handleAssetClick:this.handleAssetClick,handleLoadMore:this.handleLoadMore,displayURLs:f,loadDisplayURL:this.loadDisplayURL,t:p})}}w(k,"propTypes",{isVisible:a.default.bool,loadMediaDisplayURL:a.default.func,displayURLs:s.default.map,canInsert:a.default.bool,files:a.default.arrayOf(a.default.shape(h.fileShape)).isRequired,dynamicSearch:a.default.bool,dynamicSearchActive:a.default.bool,forImage:a.default.bool,isLoading:a.default.bool,isPersisting:a.default.bool,isDeleting:a.default.bool,hasNextPage:a.default.bool,isPaginating:a.default.bool,privateUpload:a.default.bool,config:s.default.map,loadMedia:a.default.func.isRequired,dynamicSearchQuery:a.default.string,page:a.default.number,persistMedia:a.default.func.isRequired,deleteMedia:a.default.func.isRequired,insertMedia:a.default.func.isRequired,closeMediaLibrary:a.default.func.isRequired,t:a.default.func.isRequired}),w(k,"defaultProps",{files:[]});const E={loadMedia:f.loadMedia,persistMedia:f.persistMedia,deleteMedia:f.deleteMedia,insertMedia:f.insertMedia,loadMediaDisplayURL:f.loadMediaDisplayURL,closeMediaLibrary:f.closeMediaLibrary};t.default=(0,l.connect)((function(e){const{mediaLibrary:t}=e,n=t.get("field");return b({},{isVisible:t.get("isVisible"),canInsert:t.get("canInsert"),files:(0,p.selectMediaFiles)(e,n),displayURLs:t.get("displayURLs"),dynamicSearch:t.get("dynamicSearch"),dynamicSearchActive:t.get("dynamicSearchActive"),dynamicSearchQuery:t.get("dynamicSearchQuery"),forImage:t.get("forImage"),isLoading:t.get("isLoading"),isPersisting:t.get("isPersisting"),isDeleting:t.get("isDeleting"),privateUpload:t.get("privateUpload"),config:t.get("config"),page:t.get("page"),hasNextPage:t.get("hasNextPage"),isPaginating:t.get("isPaginating"),field:n})}),E)((0,u.translate)()(k))},69302:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UploadButton=t.InsertButton=t.DownloadButton=t.DeleteButton=t.CopyToClipBoardButton=void 0;var r=d(n(70894)),i=d(n(2784)),o=d(n(13980)),a=n(28165),s=d(n(85411)),l=n(33806),u=n(30762),c=n(50758);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p={button:(0,a.css)(u.buttons.button,";",u.buttons.default,";display:inline-block;margin-left:15px;margin-right:2px;&[disabled]{",u.buttons.disabled,";cursor:default;};label:button;")},h=(t.UploadButton=(0,r.default)(c.FileUploadButton,{target:"e288rjk3",label:"UploadButton"})(p.button,";",u.buttons.gray,";",u.shadows.dropMain,";margin-bottom:0;span{font-size:14px;font-weight:500;display:flex;justify-content:center;align-items:center;}input{height:0.1px;width:0.1px;margin:0;padding:0;opacity:0;overflow:hidden;position:absolute;z-index:",u.zIndex.zIndex0,";outline:none;}"),t.DeleteButton=(0,r.default)("button",{target:"e288rjk2",label:"DeleteButton"})(p.button,";",u.buttons.lightRed,";"),t.InsertButton=(0,r.default)("button",{target:"e288rjk1",label:"InsertButton"})(p.button,";",u.buttons.green,";"),(0,r.default)("button",{target:"e288rjk0",label:"ActionButton"})(p.button,";",(e=>!e.disabled&&(0,a.css)(u.buttons.gray,";;label:ActionButton;")),";"));t.DownloadButton=h;class m extends i.default.Component{constructor(...e){super(...e),f(this,"mounted",!1),f(this,"timeout",void 0),f(this,"state",{copied:!1}),f(this,"handleCopy",(()=>{clearTimeout(this.timeout);const{path:e,draft:t,name:n}=this.props;(0,s.default)((0,l.isAbsolutePath)(e)||!t?e:n),this.setState({copied:!0}),this.timeout=setTimeout((()=>this.mounted&&this.setState({copied:!1})),1500)})),f(this,"getTitle",(()=>{const{t:e,path:t,draft:n}=this.props;return this.state.copied?e("mediaLibrary.mediaLibraryCard.copied"):t?(0,l.isAbsolutePath)(t)?e("mediaLibrary.mediaLibraryCard.copyUrl"):e(n?"mediaLibrary.mediaLibraryCard.copyName":"mediaLibrary.mediaLibraryCard.copyPath"):e("mediaLibrary.mediaLibraryCard.copy")}))}componentDidMount(){this.mounted=!0}componentWillUnmount(){this.mounted=!1}render(){const{disabled:e}=this.props;return(0,a.jsx)(h,{disabled:e,onClick:this.handleCopy},this.getTitle())}}t.CopyToClipBoardButton=m,m.propTypes={disabled:o.default.bool.isRequired,draft:o.default.bool,path:o.default.string,name:o.default.string,t:o.default.func.isRequired}},93100:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=u(n(2784)),o=u(n(13980)),a=u(n(19155)),s=n(30762),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}const c=(0,r.default)("div",{target:"e2etv5a5",label:"Card"})("width:",(e=>e.width),";height:",(e=>e.height),";margin:",(e=>e.margin),";border:",s.borders.textField,";border-color:",(e=>e.isSelected&&s.colors.active),";border-radius:",s.lengths.borderRadius,";cursor:pointer;overflow:hidden;background-color:",(e=>e.isPrivate&&s.colors.textFieldBorder),";&:focus{outline:none;}"),d=(0,r.default)("div",{target:"e2etv5a4",label:"CardImageWrapper"})("height:",162,"px;",s.effects.checkerboard,";",s.shadows.inset,";border-bottom:solid ",s.lengths.borderWidth," ",s.colors.textFieldBorder,";position:relative;"),f=(0,r.default)("img",{target:"e2etv5a3",label:"CardImage"})("width:100%;height:",160,"px;object-fit:contain;border-radius:2px 2px 0 0;"),p=(0,r.default)("div",{target:"e2etv5a2",label:"CardFileIcon"})({name:"viljxp",styles:"width:100%;height:160px;object-fit:cover;border-radius:2px 2px 0 0;padding:1em;font-size:3em"}),h=(0,r.default)("p",{target:"e2etv5a1",label:"CardText"})("color:",s.colors.text,";padding:8px;margin-top:20px;overflow-wrap:break-word;line-height:1.3!important;"),m=(0,r.default)("p",{target:"e2etv5a0",label:"DraftText"})("color:",s.colors.mediaDraftText,";background-color:",s.colors.mediaDraftBackground,";position:absolute;padding:8px;border-radius:",s.lengths.borderRadius," 0 ",s.lengths.borderRadius," 0;");class g extends i.default.Component{render(){const{isSelected:e,displayURL:t,text:n,onClick:r,draftText:i,width:o,height:a,margin:s,isPrivate:u,type:g,isViewableImage:v,isDraft:y}=this.props,b=t.get("url");return(0,l.jsx)(c,{isSelected:e,onClick:r,width:o,height:a,margin:s,tabIndex:"-1",isPrivate:u},(0,l.jsx)(d,null,y?(0,l.jsx)(m,{"data-testid":"draft-text"},i):null,b&&v?(0,l.jsx)(f,{loading:"lazy",src:b}):(0,l.jsx)(p,{"data-testid":"card-file-icon"},g)),(0,l.jsx)(h,null,n))}componentDidMount(){const{displayURL:e,loadDisplayURL:t}=this.props;e.get("url")||t()}}g.propTypes={isSelected:o.default.bool,displayURL:a.default.map.isRequired,text:o.default.string.isRequired,onClick:o.default.func.isRequired,draftText:o.default.string.isRequired,width:o.default.string.isRequired,height:o.default.string.isRequired,margin:o.default.string.isRequired,isPrivate:o.default.bool,type:o.default.string,isViewableImage:o.default.bool.isRequired,loadDisplayURL:o.default.func.isRequired,isDraft:o.default.bool},t.default=g},63435:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(70894)),i=(f(n(2784)),f(n(13980))),o=n(94076),a=n(46670),s=n(30762),l=n(50166),u=f(n(6738)),c=f(n(93100)),d=n(28165);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t=i.length)return null;const w=i[b];return(0,d.jsx)("div",{tabIndex:"0",style:h(h({},r),{},{left:r.left+y*n,top:r.top+y,width:r.width-y,height:r.height-y})},(0,d.jsx)(c.default,{key:w.key,isSelected:o(w),text:w.name,onClick:()=>s(w),isDraft:w.draft,draftText:l,width:u,height:f,margin:"0px",isPrivate:p,displayURL:m.get(w.id,w.url?(0,a.Map)({url:w.url}):(0,a.Map)()),loadDisplayURL:()=>g(w),type:w.type,isViewableImage:w.isViewableImage}))}function g(e){const{mediaItems:t,setScrollContainerRef:n}=e;return(0,d.jsx)(y,{ref:n},(0,d.jsx)(u.default,null,(({height:n,width:r})=>{const i=parseInt(e.cardWidth,10),o=parseInt(e.cardHeight,10),a=parseInt(e.cardMargin,10),s=i+a,u=o+a,c=Math.floor(r/s),f=Math.ceil(t.length/c);return(0,d.jsx)(l.FixedSizeGrid,{columnCount:c,columnWidth:s,rowCount:f,rowHeight:u,width:r,height:n,itemData:h(h({},e),{},{gutter:a,columnCount:c})},m)})))}function v({setScrollContainerRef:e,mediaItems:t,isSelectedFile:n,onAssetClick:r,cardDraftText:i,cardWidth:s,cardHeight:l,cardMargin:u,isPrivate:f,displayURLs:p,loadDisplayURL:h,canLoadMore:m,onLoadMore:g,isPaginating:v,paginatingMessage:_}){return(0,d.jsx)(y,{ref:e},(0,d.jsx)(b,null,t.map((e=>(0,d.jsx)(c.default,{key:e.key,isSelected:n(e),text:e.name,onClick:()=>r(e),isDraft:e.draft,draftText:i,width:s,height:l,margin:u,isPrivate:f,displayURL:p.get(e.id,e.url?(0,a.Map)({url:e.url}):(0,a.Map)()),loadDisplayURL:()=>h(e),type:e.type,isViewableImage:e.isViewableImage}))),m?(0,d.jsx)(o.Waypoint,{onEnter:g}):null),v?(0,d.jsx)(w,{isPrivate:f},_):null)}const y=(0,r.default)("div",{target:"e1l5oka22",label:"CardGridContainer"})({name:"bv8zlo",styles:"overflow-y:auto;overflow-x:hidden"}),b=(0,r.default)("div",{target:"e1l5oka21",label:"CardGrid"})({name:"15jhlc1",styles:"display:flex;flex-wrap:wrap;margin-left:-10px;margin-right:-10px"}),w=(0,r.default)("h1",{target:"e1l5oka20",label:"PaginatingMessage"})("color:",(e=>e.isPrivate&&s.colors.textFieldBorder),";");function _(e){const{canLoadMore:t,isPaginating:n}=e;return t||n?(0,d.jsx)(v,e):(0,d.jsx)(g,e)}_.propTypes={setScrollContainerRef:i.default.func.isRequired,mediaItems:i.default.arrayOf(i.default.shape({displayURL:i.default.oneOfType([i.default.string,i.default.object]),id:i.default.string.isRequired,key:i.default.string.isRequired,name:i.default.string.isRequired,type:i.default.string.isRequired,draft:i.default.bool})).isRequired,isSelectedFile:i.default.func.isRequired,onAssetClick:i.default.func.isRequired,canLoadMore:i.default.bool,onLoadMore:i.default.func.isRequired,isPaginating:i.default.bool,paginatingMessage:i.default.string,cardDraftText:i.default.string.isRequired,cardWidth:i.default.string.isRequired,cardMargin:i.default.string.isRequired,loadDisplayURL:i.default.func.isRequired,isPrivate:i.default.bool,displayURLs:i.default.instanceOf(a.Map).isRequired},t.default=_},63298:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(70894)),i=(s(n(2784)),s(n(13980))),o=n(30762),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("button",{target:"estf6121",label:"CloseButton"})(o.buttons.button,";",o.shadows.dropMiddle,";position:absolute;margin-right:-40px;left:-40px;top:-40px;width:40px;height:40px;border-radius:50%;background-color:white;padding:0;display:flex;justify-content:center;align-items:center;"),u=(0,r.default)("h1",{target:"estf6120",label:"LibraryTitle"})("line-height:36px;font-size:22px;text-align:left;margin-bottom:25px;color:",(e=>e.isPrivate&&o.colors.textFieldBorder),";");function c({onClose:e,title:t,isPrivate:n}){return(0,a.jsx)("div",null,(0,a.jsx)(l,{onClick:e},(0,a.jsx)(o.Icon,{type:"close"})),(0,a.jsx)(u,{isPrivate:n},t))}c.propTypes={onClose:i.default.func.isRequired,title:i.default.string.isRequired,isPrivate:i.default.bool},t.default=c},94366:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fileShape=t.default=void 0;var r=h(n(70894)),i=h(n(45455)),o=(h(n(2784)),h(n(13980))),a=n(46670),s=n(9316),l=n(30762),u=n(50758),c=h(n(77951)),d=h(n(63435)),f=h(n(52545)),p=n(28165);function h(e){return e&&e.__esModule?e:{default:e}}const m="300px",g=(0,r.default)(u.Modal,{target:"e4d0svf0",label:"StyledModal"})("display:grid;grid-template-rows:120px auto;width:calc(",m," + 20px);background-color:",(e=>e.isPrivate&&l.colors.grayDark),";@media (min-width: 800px){width:calc(",m," * 2 + 20px);}@media (min-width: 1120px){width:calc(",m," * 3 + 20px);}@media (min-width: 1440px){width:calc(",m," * 4 + 20px);}@media (min-width: 1760px){width:calc(",m," * 5 + 20px);}@media (min-width: 2080px){width:calc(",m," * 6 + 20px);}h1{color:",(e=>e.isPrivate&&l.colors.textFieldBorder),";}button:disabled,label[disabled]{background-color:",(e=>e.isPrivate&&"rgba(217, 217, 217, 0.15)"),";}");function v({isVisible:e,canInsert:t,files:n,dynamicSearch:r,dynamicSearchActive:o,forImage:a,isLoading:s,isPersisting:l,isDeleting:u,hasNextPage:h,isPaginating:m,privateUpload:v,query:y,selectedFile:b,handleFilter:w,handleQuery:_,toTableData:x,handleClose:k,handleSearchChange:E,handleSearchKeyDown:C,handlePersist:S,handleDelete:A,handleInsert:T,handleDownload:O,setScrollContainerRef:P,handleAssetClick:R,handleLoadMore:D,loadDisplayURL:M,displayURLs:I,t:L}){const j=a?w(n):n,N=!r&&y?_(y,j):j,F=x(N),B=n&&!!n.length,z=j&&!!j.length,U=N&&!!N.length,q=U,W=!q,$=s&&!q&&L("mediaLibrary.mediaLibraryModal.loading")||o&&L("mediaLibrary.mediaLibraryModal.noResults")||!B&&L("mediaLibrary.mediaLibraryModal.noAssetsFound")||!z&&L("mediaLibrary.mediaLibraryModal.noImagesFound")||!U&&L("mediaLibrary.mediaLibraryModal.noResults"),H=q&&!(0,i.default)(b);return(0,p.jsx)(g,{isOpen:e,onClose:k,isPrivate:v},(0,p.jsx)(c.default,{t:L,onClose:k,privateUpload:v,forImage:a,onDownload:O,onUpload:S,query:y,onSearchChange:E,onSearchKeyDown:C,searchDisabled:!o&&!z,onDelete:A,canInsert:t,onInsert:T,hasSelection:H,isPersisting:l,isDeleting:u,selectedFile:b}),W?(0,p.jsx)(f.default,{content:$,isPrivate:v}):null,(0,p.jsx)(d.default,{setScrollContainerRef:P,mediaItems:F,isSelectedFile:e=>b.key===e.key,onAssetClick:R,canLoadMore:h,onLoadMore:D,isPaginating:m,paginatingMessage:L("mediaLibrary.mediaLibraryModal.loading"),cardDraftText:L("mediaLibrary.mediaLibraryCard.draft"),cardWidth:"280px",cardHeight:"240px",cardMargin:"10px",isPrivate:v,loadDisplayURL:M,displayURLs:I}))}const y=t.fileShape={displayURL:o.default.oneOfType([o.default.string,o.default.object]).isRequired,id:o.default.string.isRequired,key:o.default.string.isRequired,name:o.default.string.isRequired,queryOrder:o.default.number,size:o.default.number,path:o.default.string.isRequired};v.propTypes={isVisible:o.default.bool,canInsert:o.default.bool,files:o.default.arrayOf(o.default.shape(y)).isRequired,dynamicSearch:o.default.bool,dynamicSearchActive:o.default.bool,forImage:o.default.bool,isLoading:o.default.bool,isPersisting:o.default.bool,isDeleting:o.default.bool,hasNextPage:o.default.bool,isPaginating:o.default.bool,privateUpload:o.default.bool,query:o.default.string,selectedFile:o.default.oneOfType([o.default.shape(y),o.default.shape({})]),handleFilter:o.default.func.isRequired,handleQuery:o.default.func.isRequired,toTableData:o.default.func.isRequired,handleClose:o.default.func.isRequired,handleSearchChange:o.default.func.isRequired,handleSearchKeyDown:o.default.func.isRequired,handlePersist:o.default.func.isRequired,handleDelete:o.default.func.isRequired,handleInsert:o.default.func.isRequired,setScrollContainerRef:o.default.func.isRequired,handleAssetClick:o.default.func.isRequired,handleLoadMore:o.default.func.isRequired,loadDisplayURL:o.default.func.isRequired,t:o.default.func.isRequired,displayURLs:o.default.instanceOf(a.Map).isRequired},t.default=(0,s.translate)()(v)},96218:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(70894)),i=(s(n(2784)),s(n(13980))),o=n(30762),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("div",{target:"el0uck02",label:"SearchContainer"})({name:"sycyb7",styles:"height:37px;display:flex;align-items:center;position:relative;width:400px"}),u=(0,r.default)("input",{target:"el0uck01",label:"SearchInput"})("background-color:#eff0f4;border-radius:",o.lengths.borderRadius,";font-size:14px;padding:10px 6px 10px 32px;width:100%;position:relative;z-index:",o.zIndex.zIndex1,";&:focus{outline:none;box-shadow:inset 0 0 0 2px ",o.colors.active,";}"),c=(0,r.default)(o.Icon,{target:"el0uck00",label:"SearchIcon"})("position:absolute;top:50%;left:6px;z-index:",o.zIndex.zIndex2,";transform:translate(0, -50%);");function d({value:e,onChange:t,onKeyDown:n,placeholder:r,disabled:i}){return(0,a.jsx)(l,null,(0,a.jsx)(c,{type:"search",size:"small"}),(0,a.jsx)(u,{value:e,onChange:t,onKeyDown:n,placeholder:r,disabled:i}))}d.propTypes={value:i.default.string,onChange:i.default.func.isRequired,onKeyDown:i.default.func.isRequired,placeholder:i.default.string.isRequired,disabled:i.default.bool},t.default=d},77951:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=(u(n(2784)),u(n(13980))),o=u(n(96218)),a=u(n(63298)),s=n(69302),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}const c=(0,r.default)("div",{target:"e1n0ky5z2",label:"LibraryTop"})({name:"16hjiy4",styles:"position:relative;display:flex;flex-direction:column"}),d=(0,r.default)("div",{target:"e1n0ky5z1",label:"RowContainer"})({name:"1eoy87d",styles:"display:flex;justify-content:space-between"}),f=(0,r.default)("div",{target:"e1n0ky5z0",label:"ButtonsContainer"})({name:"ozd7xs",styles:"flex-shrink:0"});function p({t:e,onClose:t,privateUpload:n,forImage:r,onDownload:i,onUpload:u,query:p,onSearchChange:h,onSearchKeyDown:m,searchDisabled:g,onDelete:v,canInsert:y,onInsert:b,hasSelection:w,isPersisting:_,isDeleting:x,selectedFile:k}){const E=_||x,C=!E,S=!E&&w,A=e(_?"mediaLibrary.mediaLibraryModal.uploading":"mediaLibrary.mediaLibraryModal.upload"),T=e(x?"mediaLibrary.mediaLibraryModal.deleting":"mediaLibrary.mediaLibraryModal.deleteSelected"),O=e("mediaLibrary.mediaLibraryModal.download"),P=e("mediaLibrary.mediaLibraryModal.chooseSelected");return(0,l.jsx)(c,null,(0,l.jsx)(d,null,(0,l.jsx)(a.default,{onClose:t,title:`${n?e("mediaLibrary.mediaLibraryModal.private"):""}${e(r?"mediaLibrary.mediaLibraryModal.images":"mediaLibrary.mediaLibraryModal.mediaAssets")}`,isPrivate:n}),(0,l.jsx)(f,null,(0,l.jsx)(s.CopyToClipBoardButton,{disabled:!w,path:k.path,name:k.name,draft:k.draft,t:e}),(0,l.jsx)(s.DownloadButton,{onClick:i,disabled:!w},O),(0,l.jsx)(s.UploadButton,{label:A,imagesOnly:r,onChange:u,disabled:!C}))),(0,l.jsx)(d,null,(0,l.jsx)(o.default,{value:p,onChange:h,onKeyDown:m,placeholder:e("mediaLibrary.mediaLibraryModal.search"),disabled:g}),(0,l.jsx)(f,null,(0,l.jsx)(s.DeleteButton,{onClick:v,disabled:!S},T),y?(0,l.jsx)(s.InsertButton,{onClick:b,disabled:!w},P):null)))}p.propTypes={t:i.default.func.isRequired,onClose:i.default.func.isRequired,privateUpload:i.default.bool,forImage:i.default.bool,onDownload:i.default.func.isRequired,onUpload:i.default.func.isRequired,query:i.default.string,onSearchChange:i.default.func.isRequired,onSearchKeyDown:i.default.func.isRequired,searchDisabled:i.default.bool.isRequired,onDelete:i.default.func.isRequired,canInsert:i.default.bool,onInsert:i.default.func.isRequired,hasSelection:i.default.bool.isRequired,isPersisting:i.default.bool,isDeleting:i.default.bool,selectedFile:i.default.oneOfType([i.default.shape({path:i.default.string.isRequired,draft:i.default.bool.isRequired,name:i.default.string.isRequired}),i.default.shape({})])},t.default=p},12086:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DragSource=p,t.DropTarget=h,t.HTML5DragDrop=function(e){return class extends o.default.Component{render(){return(0,s.jsx)(i.DndProvider,{backend:r.HTML5Backend},(0,s.jsx)(e,this.props))}}};var r=n(51092),i=n(99273),o=d(n(2784)),a=d(n(13980)),s=n(28165);const l=["namespace"],u=["children","isDragging","connectDragComponent"],c=["onDrop","namespace"];function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function p(e){let{namespace:t}=e,n=f(e,l);const r=(0,i.DragSource)(t,{beginDrag(e){let{children:t,isDragging:n,connectDragComponent:r}=e;return f(e,u)}},(e=>({connectDragComponent:e.dragSource()})))((({children:e,connectDragComponent:t})=>e(t)));return o.default.createElement(r,n,n.children)}function h(e){let{onDrop:t,namespace:n}=e,r=f(e,c);const a=(0,i.DropTarget)(n,{drop(e,n){t(n.getItem())}},((e,t)=>({connectDropTarget:e.dropTarget(),isHovered:t.isOver()})))((({children:e,connectDropTarget:t,isHovered:n})=>e(t,{isHovered:n})));return o.default.createElement(a,r,r.children)}p.propTypes={namespace:a.default.any.isRequired,children:a.default.func.isRequired},h.propTypes={onDrop:a.default.func.isRequired,namespace:a.default.any.isRequired,children:a.default.func.isRequired}},55059:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ErrorBoundary=void 0;var r=h(n(70894)),i=h(n(36585)),o=h(n(2784)),a=h(n(13980)),s=n(9316),l=h(n(60155)),u=h(n(85411)),c=n(33806),d=n(30762),f=h(n(46994)),p=n(28165);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g="https://github.com/decaporg/decap-cms/issues/new?";function v({title:e,config:t}){try{const n=function({config:e}){let t="";t="decap-cms@3.3.2";const n=function({version:e,provider:t,browser:n,config:r}){return`\n**Describe the bug**\n\n**To Reproduce**\n\n**Expected behavior**\n\n**Screenshots**\n\n**Applicable Versions:**\n - Decap CMS version: \`${e}\`\n - Git provider: \`${t}\`\n - Browser version: \`${n}\`\n\n**CMS configuration**\n\`\`\`\n${r}\n\`\`\`\n\n**Additional context**\n`}({version:"decap-cms@3.3.2",provider:e.backend.name,browser:navigator.userAgent,config:l.default.stringify(e)});return n}({config:t}),r=new URLSearchParams;return r.append("title",(0,i.default)(e,{length:100})),r.append("body",(0,i.default)(n,{length:4e3,omission:"\n..."})),r.append("labels","type: bug"),`${g}${r.toString()}`}catch(e){return console.log(e),`${g}template=bug_report.md`}}const y=(0,r.default)("div",{target:"emw4gx72",label:"ErrorBoundaryContainer"})("padding:40px;h1{font-size:28px;color:",d.colors.text,";}h2{font-size:20px;}strong{color:",d.colors.textLead,";font-weight:500;}hr{width:200px;margin:30px 0;border:0;height:1px;background-color:",d.colors.text,";}a{color:",d.colors.active,";}"),b=(0,r.default)("span",{target:"emw4gx71",label:"PrivacyWarning"})("color:",d.colors.text,";"),w=(0,r.default)("button",{target:"emw4gx70",label:"CopyButton"})(d.buttons.button,";",d.buttons.default,";",d.buttons.gray,";display:block;margin:12px 0;");function _({entry:e,t}){return console.log(e),(0,p.jsx)(o.default.Fragment,null,(0,p.jsx)("hr",null),(0,p.jsx)("h2",null,t("ui.errorBoundary.recoveredEntry.heading")),(0,p.jsx)("strong",null,t("ui.errorBoundary.recoveredEntry.warning")),(0,p.jsx)(w,{onClick:()=>(0,u.default)(e)},t("ui.errorBoundary.recoveredEntry.copyButtonLabel")),(0,p.jsx)("pre",null,(0,p.jsx)("code",null,e)))}class x extends o.default.Component{constructor(...e){super(...e),m(this,"state",{hasError:!1,errorMessage:"",errorTitle:"",backup:""})}static getDerivedStateFromError(e){return console.error(e),{hasError:!0,errorMessage:(0,f.default)(e.stack,{basePath:window.location.origin||""}),errorTitle:e.toString()}}shouldComponentUpdate(e,t){return!this.props.showBackup||this.state.errorMessage!==t.errorMessage||this.state.backup!==t.backup}async componentDidUpdate(){if(this.props.showBackup){const e=await c.localForage.getItem("backup");e&&console.log(e),this.setState({backup:e})}}render(){const{hasError:e,errorMessage:t,backup:n,errorTitle:r}=this.state,{showBackup:i,t:a}=this.props;return e?(0,p.jsx)(y,null,(0,p.jsx)("h1",null,a("ui.errorBoundary.title")),(0,p.jsx)("p",null,(0,p.jsx)("span",null,a("ui.errorBoundary.details")),(0,p.jsx)("a",{href:v({title:r,config:this.props.config}),target:"_blank",rel:"noopener noreferrer","data-testid":"issue-url"},a("ui.errorBoundary.reportIt"))),(0,p.jsx)("p",null,a("ui.errorBoundary.privacyWarning").split("\n").map(((e,t)=>(0,p.jsx)(o.default.Fragment,null,(0,p.jsx)(b,{key:t},e),(0,p.jsx)("br",null))))),(0,p.jsx)("hr",null),(0,p.jsx)("h2",null,a("ui.errorBoundary.detailsHeading")),(0,p.jsx)("p",null,t),n&&i&&(0,p.jsx)(_,{entry:n,t:a})):this.props.children}}t.ErrorBoundary=x,m(x,"propTypes",{children:a.default.node,t:a.default.func.isRequired,config:a.default.object.isRequired}),t.default=(0,s.translate)()(x)},95921:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileUploadButton=a,o(n(2784));var r=o(n(13980)),i=n(28165);function o(e){return e&&e.__esModule?e:{default:e}}function a({label:e,imagesOnly:t,onChange:n,disabled:r,className:o}){return(0,i.jsx)("label",{tabIndex:"0",className:`nc-fileUploadButton ${o||""}`},(0,i.jsx)("span",null,e),(0,i.jsx)("input",{type:"file",accept:t?"image/*":"*/*",onChange:n,disabled:r}))}a.propTypes={className:r.default.string,label:r.default.string.isRequired,imagesOnly:r.default.bool,onChange:r.default.func.isRequired,disabled:r.default.bool}},21904:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Modal=void 0;var r=l(n(2784)),i=l(n(13980)),o=n(28165),a=l(n(37149)),s=n(30762);function l(e){return e&&e.__esModule?e:{default:e}}var u={name:"1o9c9d2-ReactModalGlobalStyles",styles:".ReactModal__Body--open{overflow:hidden;};label:ReactModalGlobalStyles;"};function c(){return(0,o.jsx)(o.Global,{styles:u})}const d=`\n ${s.shadows.dropDeep};\n background-color: #fff;\n border-radius: ${s.lengths.borderRadius};\n height: 80%;\n text-align: center;\n max-width: 2200px;\n padding: 20px;\n\n &:focus {\n outline: none;\n }\n `,f=`\n z-index: ${s.zIndex.zIndex99999};\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n opacity: 0;\n background-color: rgba(0, 0, 0, 0);\n transition: background-color ${s.transitions.main}, opacity ${s.transitions.main};\n `;class p extends r.default.Component{componentDidMount(){a.default.setAppElement("#nc-root")}render(){const{isOpen:e,children:t,className:n,onClose:i}=this.props;return(0,o.jsx)(r.default.Fragment,null,(0,o.jsx)(c,null),(0,o.jsx)(o.ClassNames,null,(({css:r,cx:s})=>(0,o.jsx)(a.default,{isOpen:e,onRequestClose:i,closeTimeoutMS:300,className:{base:s(r` ${d}; `,n),afterOpen:"",beforeClose:""},overlayClassName:{base:r` ${f}; @@ -419,16 +419,16 @@ ${"\n background-color: rgba(0, 0, 0, 0.6);\n opacity: 1;\n "}; `,beforeClose:r` ${"\n background-color: rgba(0, 0, 0, 0);\n opacity: 0;\n "}; - `}},t))))}}var h,m,g;t.Modal=p,h=p,m="propTypes",g={children:i.default.node.isRequired,isOpen:i.default.bool.isRequired,className:i.default.string,onClose:i.default.func.isRequired},(m=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(m))in h?Object.defineProperty(h,m,{value:g,enumerable:!0,configurable:!0,writable:!0}):h[m]=g},92458:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(2784)),i=n(61116),o=n(48919),a=n(57903),s=n(9316),l=n(5690),u=n(28165);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(0,i.injectStyle)(),t.default=(0,a.connect)((function({notifications:e}){return{notifications:e.notifications}}))((function({notifications:e}){const t=(0,s.useTranslate)(),n=(0,a.useDispatch)(),[i,c]=r.default.useState({});return(0,r.useEffect)((()=>{e.filter((e=>!i[e.id])).forEach((e=>{const r=(0,o.toast)("string"==typeof e.message?e.message:t(e.message.key,function(e){for(var t=1;t{n((0,l.dismissNotification)(e.id))}),e.dismissAfter)})),Object.entries(i).forEach((([t,n])=>{e.find((e=>e.id===t))||(o.toast.dismiss(n),delete i[t],c(i))}))}),[e]),o.toast.onChange((e=>{if("removed"==e.status){var t;const r=null===(t=Object.entries(i).find((([,t])=>t===e.id)))||void 0===t?void 0:t[0];r&&n((0,l.dismissNotification)(r))}})),(0,u.jsx)(r.default.Fragment,null,(0,u.jsx)(o.ToastContainer,{position:"top-right",theme:"colored",className:"notif__container"}))}))},79708:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(70894)),i=c(n(2784)),o=c(n(13980)),a=n(28165),s=n(9316),l=n(30762),u=n(9904);function c(e){return e&&e.__esModule?e:{default:e}}const d={name:"m2n7c1-avatarImage",styles:"width:32px;border-radius:32px;label:avatarImage;"},f=(0,r.default)(l.DropdownButton,{target:"e1gt62yu4",label:"AvatarDropdownButton"})({name:"dtukf8",styles:"display:inline-block;padding:8px;cursor:pointer;color:#1e2532;background-color:transparent"}),p=(0,r.default)("img",{target:"e1gt62yu3",label:"AvatarImage"})(d,";"),h=(0,r.default)(l.Icon,{target:"e1gt62yu2",label:"AvatarPlaceholderIcon"})(d,";height:32px;color:#1e2532;background-color:",l.colors.textFieldBorder,";"),m=(0,r.default)("a",{target:"e1gt62yu1",label:"AppHeaderSiteLink"})({name:"1uk00au",styles:"font-size:14px;font-weight:400;color:#7b8290;padding:10px 16px"}),g=(0,r.default)("a",{target:"e1gt62yu0",label:"AppHeaderTestRepoIndicator"})({name:"1uk00au",styles:"font-size:14px;font-weight:400;color:#7b8290;padding:10px 16px"});function v({imageUrl:e}){return e?(0,a.jsx)(p,{src:e}):(0,a.jsx)(h,{type:"user",size:"large"})}function y({displayUrl:e,isTestRepo:t,imageUrl:n,onLogoutClick:r,t:o}){return(0,a.jsx)(i.default.Fragment,null,t&&(0,a.jsx)(g,{href:"https://www.decapcms.org/docs/test-backend",target:"_blank",rel:"noopener noreferrer"},"Test Backend ↗"),e?(0,a.jsx)(m,{href:e,target:"_blank"},(0,u.stripProtocol)(e)):null,(0,a.jsx)(l.Dropdown,{dropdownTopOverlap:"50px",dropdownWidth:"100px",dropdownPosition:"right",renderButton:()=>(0,a.jsx)(f,null,(0,a.jsx)(v,{imageUrl:n}))},(0,a.jsx)(l.DropdownItem,{label:o("ui.settingsDropdown.logOut"),onClick:r})))}v.propTypes={imageUrl:o.default.string},y.propTypes={displayUrl:o.default.string,isTestRepo:o.default.bool,imageUrl:o.default.string,onLogoutClick:o.default.func.isRequired,t:o.default.func.isRequired},t.default=(0,s.translate)()(y)},50758:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DragSource",{enumerable:!0,get:function(){return r.DragSource}}),Object.defineProperty(t,"DropTarget",{enumerable:!0,get:function(){return r.DropTarget}}),Object.defineProperty(t,"ErrorBoundary",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"FileUploadButton",{enumerable:!0,get:function(){return o.FileUploadButton}}),Object.defineProperty(t,"HTML5DragDrop",{enumerable:!0,get:function(){return r.HTML5DragDrop}}),Object.defineProperty(t,"Modal",{enumerable:!0,get:function(){return a.Modal}}),Object.defineProperty(t,"Notifications",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"SettingsDropdown",{enumerable:!0,get:function(){return l.default}});var r=n(12086),i=u(n(55059)),o=n(95921),a=n(21904),s=u(n(92458)),l=u(n(79708));function u(e){return e&&e.__esModule?e:{default:e}}},33407:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=y(n(70894)),i=y(n(13980)),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=v(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(2784)),a=y(n(19155)),s=n(46670),l=n(9316),u=n(57903),c=n(30762),d=n(1582),f=n(91358),p=n(36642),h=n(61928),m=y(n(91678)),g=n(28165);function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}function y(e){return e&&e.__esModule?e:{default:e}}const b=(0,r.default)("div",{target:"e1t9l5ui4",label:"WorkflowContainer"})("padding:",c.lengths.pageMargin," 0;height:100vh;"),w=(0,r.default)("div",{target:"e1t9l5ui3",label:"WorkflowTop"})(c.components.cardTop,";"),_=(0,r.default)("div",{target:"e1t9l5ui2",label:"WorkflowTopRow"})("display:flex;justify-content:space-between;span[role='button']{",c.shadows.dropDeep,";}"),x=(0,r.default)("h1",{target:"e1t9l5ui1",label:"WorkflowTopHeading"})(c.components.cardTopHeading,";"),k=(0,r.default)("p",{target:"e1t9l5ui0",label:"WorkflowTopDescription"})(c.components.cardTopDescription,";");class E extends o.Component{componentDidMount(){const{loadUnpublishedEntries:e,isEditorialWorkflow:t,collections:n}=this.props;t&&e(n)}render(){const{isEditorialWorkflow:e,isOpenAuthoring:t,isFetching:n,unpublishedEntries:r,updateUnpublishedEntryStatus:i,publishUnpublishedEntry:o,deleteUnpublishedEntry:a,collections:s,t:l}=this.props;if(!e)return null;if(n)return(0,g.jsx)(c.Loader,{active:!0},l("workflow.workflow.loading"));const u=r.get("pending_review").size,f=r.get("pending_publish").size;return(0,g.jsx)(b,null,(0,g.jsx)(w,null,(0,g.jsx)(_,null,(0,g.jsx)(x,null,l("workflow.workflow.workflowHeading")),(0,g.jsx)(c.Dropdown,{dropdownWidth:"160px",dropdownPosition:"left",dropdownTopOverlap:"40px",renderButton:()=>(0,g.jsx)(c.StyledDropdownButton,null,l("workflow.workflow.newPost"))},s.filter((e=>e.get("create"))).toList().map((e=>(0,g.jsx)(c.DropdownItem,{key:e.get("name"),label:e.get("label"),onClick:()=>(0,d.createNewEntry)(e.get("name"))}))))),(0,g.jsx)(k,null,l("workflow.workflow.description",{smart_count:u,readyCount:f}))),(0,g.jsx)(m.default,{entries:r,handleChangeStatus:i,handlePublish:o,handleDelete:a,isOpenAuthoring:t,collections:s}))}}var S,C,T;S=E,C="propTypes",T={collections:a.default.map.isRequired,isEditorialWorkflow:i.default.bool.isRequired,isOpenAuthoring:i.default.bool,isFetching:i.default.bool,unpublishedEntries:a.default.map,loadUnpublishedEntries:i.default.func.isRequired,updateUnpublishedEntryStatus:i.default.func.isRequired,publishUnpublishedEntry:i.default.func.isRequired,deleteUnpublishedEntry:i.default.func.isRequired,t:i.default.func.isRequired},(C=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(C))in S?Object.defineProperty(S,C,{value:T,enumerable:!0,configurable:!0,writable:!0}):S[C]=T,t.default=(0,u.connect)((function(e){const{collections:t,config:n,globalUI:r}=e,i=n.publish_mode===h.EDITORIAL_WORKFLOW,o={collections:t,isEditorialWorkflow:i,isOpenAuthoring:r.useOpenAuthoring};return i&&(o.isFetching=e.editorialWorkflow.getIn(["pages","isFetching"],!1),o.unpublishedEntries=h.status.reduce(((t,n)=>{const r=(0,p.selectUnpublishedEntriesByStatus)(e,n);return t.set(n,r)}),(0,s.OrderedMap)())),o}),{loadUnpublishedEntries:f.loadUnpublishedEntries,updateUnpublishedEntryStatus:f.updateUnpublishedEntryStatus,publishUnpublishedEntry:f.publishUnpublishedEntry,deleteUnpublishedEntry:f.deleteUnpublishedEntry})((0,l.translate)()(E))},69689:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=(u(n(2784)),u(n(13980))),o=n(28165),a=n(9316),s=n(34752),l=n(30762);function u(e){return e&&e.__esModule?e:{default:e}}const c={text:{name:"1lc6g5t-text",styles:"font-size:13px;font-weight:normal;margin-top:4px;label:text;"},button:(0,o.css)(l.buttons.button,";width:auto;flex:1 0 0;font-size:13px;padding:6px 0;;label:button;")},d=(0,r.default)(s.Link,{target:"ewffzyy8",label:"WorkflowLink"})({name:"am2158",styles:"display:block;padding:0 18px 18px;height:200px;overflow:hidden"}),f=(0,r.default)("div",{target:"ewffzyy7",label:"CardCollection"})("font-size:14px;color:",l.colors.textLead,";text-transform:uppercase;margin-top:12px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;"),p=(0,r.default)("h2",{target:"ewffzyy6",label:"CardTitle"})("margin:28px 0 0;color:",l.colors.textLead,";"),h=(0,r.default)("div",{target:"ewffzyy5",label:"CardDateContainer"})(c.text,";"),m=(0,r.default)("p",{target:"ewffzyy4",label:"CardBody"})(c.text,";color:",l.colors.text,";margin:24px 0 0;overflow-wrap:break-word;word-break:break-word;hyphens:auto;"),g=(0,r.default)("div",{target:"ewffzyy3",label:"CardButtonContainer"})("background-color:",l.colors.foreground,";position:absolute;bottom:0;width:100%;padding:12px 18px;display:flex;opacity:0;transition:opacity ",l.transitions.main,";cursor:pointer;"),v=(0,r.default)("button",{target:"ewffzyy2",label:"DeleteButton"})(c.button,";background-color:",l.colorsRaw.redLight,";color:",l.colorsRaw.red,";margin-right:6px;"),y=(0,r.default)("button",{target:"ewffzyy1",label:"PublishButton"})(c.button,";background-color:",l.colorsRaw.teal,";color:",l.colors.textLight,";margin-left:6px;&[disabled]{",l.buttons.disabled,";}"),b=(0,r.default)("div",{target:"ewffzyy0",label:"WorkflowCardContainer"})(l.components.card,";margin-bottom:24px;position:relative;overflow:hidden;&:hover ",g,"{opacity:1;}"),w=(0,a.translate)()((({t:e,date:t,author:n})=>{const r=function(e,t){return e&&t?"lastChange":e?"lastChangeNoAuthor":t?"lastChangeNoDate":void 0}(t,n);if(r)return(0,o.jsx)(h,null,e(`workflow.workflowCard.${r}`,{date:t,author:n}))}));function _({collectionLabel:e,title:t,authorLastChange:n,body:r,isModification:i,editLink:a,timestamp:s,onDelete:l,allowPublish:u,canPublish:c,onPublish:h,postAuthor:_,t:x}){return(0,o.jsx)(b,null,(0,o.jsx)(d,{to:a},(0,o.jsx)(f,null,e),_,(0,o.jsx)(p,null,t),(s||n)&&(0,o.jsx)(w,{date:s,author:n}),(0,o.jsx)(m,null,r)),(0,o.jsx)(g,null,(0,o.jsx)(v,{onClick:l},x(i?"workflow.workflowCard.deleteChanges":"workflow.workflowCard.deleteNewEntry")),u&&(0,o.jsx)(y,{disabled:!c,onClick:h},x(i?"workflow.workflowCard.publishChanges":"workflow.workflowCard.publishNewEntry"))))}_.propTypes={collectionLabel:i.default.string.isRequired,title:i.default.string,authorLastChange:i.default.string,body:i.default.string,isModification:i.default.bool,editLink:i.default.string.isRequired,timestamp:i.default.string.isRequired,onDelete:i.default.func.isRequired,allowPublish:i.default.bool.isRequired,canPublish:i.default.bool.isRequired,onPublish:i.default.func.isRequired,postAuthor:i.default.string,t:i.default.func.isRequired},t.default=(0,a.translate)()(_)},91678:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=m(n(70894)),i=m(n(13980)),o=m(n(2784)),a=m(n(19155)),s=n(28165),l=m(n(28879)),u=n(9316),c=n(30762),d=n(61928),f=n(50758),p=m(n(69689)),h=n(45624);function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const v=(0,r.default)("div",{target:"e190xgae3",label:"WorkflowListContainer"})({name:"16oyyfa",styles:"min-height:60%;display:grid;grid-template-columns:33.3% 33.3% 33.3%"}),y=(0,r.default)("div",{target:"e190xgae2",label:"WorkflowListContainerOpenAuthoring"})({name:"1e70u5x",styles:"min-height:60%;display:grid;grid-template-columns:50% 50% 0%"});var b={name:"108sck7-columnPosition",styles:"margin-right:0;label:columnPosition;"},w={name:"l4owvh-columnPosition",styles:"margin-left:0;label:columnPosition;"};const _={columnPosition:e=>0===e&&w||2===e&&b||(0,s.css)("&:before,&:after{content:'';display:block;position:absolute;width:2px;height:80%;top:76px;background-color:",c.colors.textFieldBorder,";}&:before{left:-23px;}&:after{right:-23px;};label:columnPosition;"),column:{name:"m4x6w5-column",styles:"margin:0 20px;transition:background-color 0.5s ease;border:2px dashed transparent;border-radius:4px;position:relative;height:100%;label:column;"},columnHovered:(0,s.css)("border-color:",c.colors.active,";;label:columnHovered;"),hiddenColumn:{name:"1woovtn-hiddenColumn",styles:"display:none;label:hiddenColumn;"},hiddenRightBorder:{name:"hg8806-hiddenRightBorder",styles:"&:not(:first-child):not(:last-child){&:after{display:none;}};label:hiddenRightBorder;"}},x=(0,r.default)("h2",{target:"e190xgae1",label:"ColumnHeader"})("font-size:20px;font-weight:normal;padding:4px 14px;border-radius:",c.lengths.borderRadius,";margin-bottom:28px;",(e=>"draft"===e.name&&(0,s.css)("background-color:",c.colors.statusDraftBackground,";color:",c.colors.statusDraftText,";;label:ColumnHeader;"))," ",(e=>"pending_review"===e.name&&(0,s.css)("background-color:",c.colors.statusReviewBackground,";color:",c.colors.statusReviewText,";;label:ColumnHeader;"))," ",(e=>"pending_publish"===e.name&&(0,s.css)("background-color:",c.colors.statusReadyBackground,";color:",c.colors.statusReadyText,";;label:ColumnHeader;")),";"),k=(0,r.default)("p",{target:"e190xgae0",label:"ColumnCount"})("font-size:13px;font-weight:500;color:",c.colors.text,";text-transform:uppercase;margin-bottom:6px;"),E="cms-workflow";class S extends o.default.Component{constructor(...e){super(...e),g(this,"handleChangeStatus",((e,t)=>{const n=t.slug,r=t.collection,i=t.ownStatus;this.props.handleChangeStatus(r,n,i,e)})),g(this,"requestDelete",((e,t,n)=>{window.confirm(this.props.t("workflow.workflowList.onDeleteEntry"))&&this.props.handleDelete(e,t,n)})),g(this,"requestPublish",((e,t,n)=>{n===d.status.last()?window.confirm(this.props.t("workflow.workflowList.onPublishEntry"))&&this.props.handlePublish(e,t):window.alert(this.props.t("workflow.workflowList.onPublishingNotReadyEntry"))})),g(this,"renderColumns",((e,t)=>{const{isOpenAuthoring:n,collections:r,t:i}=this.props;return e?t?(0,s.jsx)("div",null,e.map((e=>{const t=(0,l.default)(e.get("updatedOn")).format(i("workflow.workflow.dateFormat")),n=e.get("slug"),o=e.get("collection"),a=`collections/${o}/entries/${n}?ref=workflow`,u=e.get("status"),c=r.find((e=>e.get("name")===o)),m=null==c?void 0:c.get("label"),g=e.get("isModification"),v=null==c?void 0:c.get("publish"),y=u===d.status.last()&&!e.get("isPersisting",!1),b=e.get("author");return(0,s.jsx)(f.DragSource,{namespace:E,key:`${o}-${n}`,slug:n,collection:o,ownStatus:u},(r=>r((0,s.jsx)("div",null,(0,s.jsx)(p.default,{collectionLabel:m||o,title:(0,h.selectEntryCollectionTitle)(c,e),authorLastChange:e.getIn(["metaData","user"]),body:e.getIn(["data","body"]),isModification:g,editLink:a,timestamp:t,onDelete:this.requestDelete.bind(this,o,n,u),allowPublish:v,canPublish:y,onPublish:this.requestPublish.bind(this,o,n,u),postAuthor:b})))))}))):e.entrySeq().map((([e,t],r)=>(0,s.jsx)(f.DropTarget,{namespace:E,key:e,onDrop:this.handleChangeStatus.bind(this,e)},((i,{isHovered:o})=>i((0,s.jsx)("div",{style:{height:"100%"}},(0,s.jsx)("div",{css:[_.column,_.columnPosition(r),o&&_.columnHovered,n&&"pending_publish"===e&&_.hiddenColumn,n&&"pending_review"===e&&_.hiddenRightBorder,";label:WorkflowList;"]},(0,s.jsx)(x,{name:e},function(e,t){switch(e){case"draft":return t("workflow.workflowList.draftHeader");case"pending_review":return t("workflow.workflowList.inReviewHeader");case"pending_publish":return t("workflow.workflowList.readyHeader")}}(e,this.props.t)),(0,s.jsx)(k,null,this.props.t("workflow.workflowList.currentEntries",{smart_count:t.size})),this.renderColumns(t,e)))))))):null}))}render(){const e=this.renderColumns(this.props.entries),t=this.props.isOpenAuthoring?y:v;return(0,s.jsx)(t,null,e)}}g(S,"propTypes",{entries:a.default.orderedMap,handleChangeStatus:i.default.func.isRequired,handlePublish:i.default.func.isRequired,handleDelete:i.default.func.isRequired,t:i.default.func.isRequired,isOpenAuthoring:i.default.bool,collections:a.default.map.isRequired}),t.default=(0,f.HTML5DragDrop)((0,u.translate)()(S))},48781:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FOLDER=t.FILES=void 0,t.FILES="file_based_collection",t.FOLDER="folder_based_collection"},78882:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VIEW_STYLE_LIST=t.VIEW_STYLE_GRID=void 0,t.VIEW_STYLE_LIST="VIEW_STYLE_LIST",t.VIEW_STYLE_GRID="VIEW_STYLE_GRID"},93492:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.COMMIT_DATE=t.COMMIT_AUTHOR=void 0,t.COMMIT_AUTHOR="commit_author",t.COMMIT_DATE="commit_date"},35276:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateConfig=function(e){const t=new r.default({allErrors:!0,$data:!0,strict:!1});if((0,i.uniqueItemProperties)(t),(0,i.select)(t),(0,i.instanceof)(t),(0,i.prohibited)(t),(0,o.default)(t),!t.validate({type:"object",properties:{backend:{type:"object",properties:{name:{type:"string",examples:["test-repo"]},auth_scope:{type:"string",examples:["repo","public_repo"],enum:["repo","public_repo"]},cms_label_prefix:{type:"string",minLength:1},open_authoring:{type:"boolean",examples:[!0]}},required:["name"]},local_backend:{oneOf:[{type:"boolean"},{type:"object",properties:{url:{type:"string",examples:["http://localhost:8081/api/v1"]},allowed_hosts:{type:"array",items:{type:"string"}}},additionalProperties:!1}]},locale:{type:"string",examples:["en","fr","de"]},i18n:m,site_url:{type:"string",examples:["https://example.com"]},display_url:{type:"string",examples:["https://example.com"]},logo_url:{type:"string",examples:["https://example.com/images/logo.svg"]},show_preview_links:{type:"boolean"},media_folder:{type:"string",examples:["assets/uploads"]},public_folder:{type:"string",examples:["/uploads"]},media_folder_relative:{type:"boolean"},media_library:{type:"object",properties:{name:{type:"string",examples:["uploadcare"]},config:{type:"object"}},required:["name"]},publish_mode:{type:"string",enum:["simple","editorial_workflow",""],examples:["editorial_workflow"]},slug:{type:"object",properties:{encoding:{type:"string",enum:["unicode","ascii"]},clean_accents:{type:"boolean"}}},collections:{type:"array",minItems:1,items:{type:"object",properties:{name:{type:"string"},label:{type:"string"},label_singular:{type:"string"},description:{type:"string"},folder:{type:"string"},files:{type:"array",items:{type:"object",properties:{name:{type:"string"},label:{type:"string"},label_singular:{type:"string"},description:{type:"string"},file:{type:"string"},preview_path:{type:"string"},preview_path_date_field:{type:"string"},fields:y()},required:["name","label","file","fields"]},uniqueItemProperties:["name"]},identifier_field:{type:"string"},summary:{type:"string"},slug:{type:"string"},path:{type:"string"},preview_path:{type:"string"},preview_path_date_field:{type:"string"},create:{type:"boolean"},publish:{type:"boolean"},hide:{type:"boolean"},editor:{type:"object",properties:{preview:{type:"boolean"}}},format:{type:"string"},extension:{type:"string"},frontmatter_delimiter:{type:["string","array"],minItems:2,maxItems:2,items:{type:"string"}},fields:y(),sortable_fields:{type:"array",items:{type:"string"}},sortableFields:{type:"array",items:{type:"string"}},view_filters:b,view_groups:w,nested:{type:"object",properties:{depth:{type:"number",minimum:1,maximum:1e3},summary:{type:"string"}},required:["depth"]},meta:{type:"object",properties:{path:{type:"object",properties:{label:{type:"string"},widget:{type:"string"},index_file:{type:"string"}},required:["label","widget","index_file"]}},additionalProperties:!1,minProperties:1},i18n:g},required:["name","label"],oneOf:[{required:["files"]},{required:["folder","fields"]}],not:{required:["sortable_fields","sortableFields"]},if:{required:["extension"]},then:{if:{properties:{extension:{enum:Object.keys(s.extensionFormatters)}}},else:{required:["format"]}},dependencies:{frontmatter_delimiter:{properties:{format:{enum:s.frontmatterFormats}},required:["format"]}}},uniqueItemProperties:["name"]},editor:{type:"object",properties:{preview:{type:"boolean"}}}},required:["backend","collections"],anyOf:[{required:["media_folder"]},{required:["media_library"]}]},e)){const e=t.errors.map((e=>{switch(e.keyword){case"uniqueItemProperties":{const t=e.instancePath||"";let n=e;return t.endsWith("/fields")?n=f(f({},e),{},{message:"fields names must be unique"}):t.endsWith("/files")?n=f(f({},e),{},{message:"files names must be unique"}):t.endsWith("/collections")&&(n=f(f({},e),{},{message:"collections names must be unique"})),n}case"instanceof":{const t=e.instancePath||"";let n=e;return/fields\/\d+\/pattern\/\d+/.test(t)&&(n=f(f({},e),{},{message:"must be a regular expression"})),n}default:return e}}));throw console.error("Config Errors",e),new x(e)}};var r=c(n(96477)),i=n(66454),o=c(n(53521)),a=n(29987),s=n(85575),l=n(41891),u=n(13943);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t({[e.name]:e.schema})));return Object.assign(...e)}class x extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e,...t){const n=e.map((({message:e,instancePath:t})=>{const n=t.slice(1).split("/").map((e=>e.match(/^\d+$/)?`[${e}]`:`.${e}`)).join("").slice(1);return`${n?`'${n}'`:"config"} ${e}`})).join("\n");super(n,...t),this.errors=e,this.message=n}toString(){return this.message}}},39010:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SORTABLE_FIELDS=t.INFERABLE_FIELDS=t.IDENTIFIER_FIELDS=void 0,(r=n(2784))&&r.__esModule;var r,i=n(28165);t.IDENTIFIER_FIELDS=["title","path"],t.SORTABLE_FIELDS=["title","date","author","description"],t.INFERABLE_FIELDS={title:{type:"string",secondaryTypes:[],synonyms:["title","name","label","headline","header"],defaultPreview:e=>(0,i.jsx)("h1",null,e),fallbackToFirstField:!0,showError:!0},shortTitle:{type:"string",secondaryTypes:[],synonyms:["short_title","shortTitle","short"],defaultPreview:e=>(0,i.jsx)("h2",null,e),fallbackToFirstField:!1,showError:!1},author:{type:"string",secondaryTypes:[],synonyms:["author","name","by","byline","owner"],defaultPreview:e=>(0,i.jsx)("strong",null,e),fallbackToFirstField:!1,showError:!1},date:{type:"datetime",secondaryTypes:["date"],synonyms:["date","publishDate","publish_date"],defaultPreview:e=>e,fallbackToFirstField:!1,showError:!1},description:{type:"string",secondaryTypes:["text","markdown"],synonyms:["shortDescription","short_description","shortdescription","description","intro","introduction","brief","content","biography","bio","summary"],defaultPreview:e=>e,fallbackToFirstField:!1,showError:!1},image:{type:"image",secondaryTypes:[],synonyms:["image","thumbnail","thumb","picture","avatar","photo","cover","hero","logo"],defaultPreview:e=>e,fallbackToFirstField:!1,showError:!1}}},61928:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statusDescriptions=t.status=t.Statues=t.SIMPLE=t.EDITORIAL_WORKFLOW=void 0;var r=n(46670);t.SIMPLE="simple",t.EDITORIAL_WORKFLOW="editorial_workflow";const i=t.Statues={DRAFT:"draft",PENDING_REVIEW:"pending_review",PENDING_PUBLISH:"pending_publish"},o=t.status=(0,r.OrderedMap)(i);t.statusDescriptions=(0,r.Map)({[o.get("DRAFT")]:"Draft",[o.get("PENDING_REVIEW")]:"Waiting for Review",[o.get("PENDING_PUBLISH")]:"Waiting to go live"})},1757:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={PRESENCE:"PRESENCE",PATTERN:"PATTERN",RANGE:"RANGE",CUSTOM:"CUSTOM"}},85575:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.frontmatterFormats=t.formatExtensions=t.extensionFormatters=void 0,t.getFormatExtensions=function(){return f(f({},p),(0,u.getCustomFormatsExtensions)())},t.resolveFormat=function(e,t){const n=e.get("frontmatter_delimiter"),o=(s=n,i.List.isList(s)?n.toArray():n),a=e.get("format");var s;if(a)return m(a,o);const l=t&&t.path;if(l){const e=l.split(".").pop();if(e)return(0,r.default)(h,e)}const u=e.get("extension");return u?(0,r.default)(h,u):m("frontmatter",o)};var r=c(n(72579)),i=n(46670),o=c(n(45367)),a=c(n(94379)),s=c(n(93223)),l=n(43303),u=n(41891);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FrontmatterInfer=t.FrontmatterFormatter=void 0,t.frontmatterJSON=function(e){return new m(f.JSON,e)},t.frontmatterTOML=function(e){return new m(f.TOML,e)},t.frontmatterYAML=function(e){return new m(f.YAML,e)},t.getFormatOpts=h;var r=l(n(61035)),i=l(n(94379)),o=l(n(45367)),a=l(n(93223));const s=["body"];function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;ti.default.fromFile(e),stringify:(e,t)=>{const{sortedKeys:n}=t||{};return i.default.toFile(e,n)}},json:{parse:e=>{let t=e.trim();return"{"!==t.slice(0,1)&&(t="{"+t+"}"),a.default.fromFile(t)},stringify:e=>{let t=a.default.toFile(e).trim();return"{"===t.slice(0,1)&&"}"===t.slice(-1)&&(t=t.slice(1,-1)),t}},yaml:{parse:e=>o.default.fromFile(e),stringify:(e,t)=>{const{sortedKeys:n,comments:r}=t||{};return o.default.toFile(e,n,r)}}};function h(e,t){if(!e)return;const n={yaml:{language:f.YAML,delimiters:"---"},toml:{language:f.TOML,delimiters:"+++"},json:{language:f.JSON,delimiters:["{","}"]}},{language:r,delimiters:i}=n[e];return{language:r,delimiters:t||i}}class m{constructor(e,t){d(this,"format",void 0),this.format=h(e,t)}fromFile(e){const t=this.format||function(e){const t=e.indexOf("\n"),n=e.slice(0,-1!==t?t:0).trim();if(!(n.length>3&&"---"===n.slice(0,3)))switch(n){case"---":return h(f.YAML);case"+++":return h(f.TOML);case"{":return h(f.JSON);default:console.warn("Unrecognized front-matter format.")}}(e),n=(0,r.default)(e,c({engines:p},t));return c(c({},n.data),n.content.trim()&&{body:n.content})}toFile(e,t,n){const{body:i=""}=e,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,s),a=this.format||h(f.YAML),l="\n"!==i.slice(-1),u=r.default.stringify(i,o,c({engines:p,sortedKeys:t,comments:n},a));return l&&"\n"===u.slice(-1)?u.slice(0,-1):u}}t.FrontmatterFormatter=m,t.FrontmatterInfer=new m},67048:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortKeys=function(e,t=(e=>e)){return(n,r)=>{const i=e.indexOf(t(n)),o=e.indexOf(t(r));return-1===i||-1===o?0:i>o?1:i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={fromFile:e=>JSON.parse(e),toFile:e=>JSON.stringify(e,null,2)}},94379:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(6901)),i=l(n(56330)),o=l(n(28879)),a=l(n(25606)),s=n(67048);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return o.default.isDayjs(t)?t.format(t._f):t instanceof a.default?`${t.path}`:!("number"!=typeof t||!Number.isInteger(t))&&t.toString()}t.default={fromFile:e=>r.default.parse(e),toFile:(e,t=[])=>i.default.toToml(e,{replace:u,sort:(0,s.sortKeys)(t)})}},45367:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(60155))&&r.__esModule?r:{default:r},o=n(67048);function a(e,t,n=""){e.forEach((e=>{if(void 0!==e.key){var r;const i=e.key.toString(),o=n?`${n}.${i}`:i;if(t[o]){const n=t[o].split("\\n").join("\n ");e.commentBefore=` ${n}`}Array.isArray(null===(r=e.value)||void 0===r?void 0:r.items)&&a(e.value.items,t,o)}}))}const s={identify:e=>e instanceof Date,default:!0,tag:"!timestamp",test:RegExp("^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2}(\\.[0-9]+)?)Z$"),resolve:e=>new Date(e),stringify:e=>e.toISOString()};t.default={fromFile:e=>(e&&e.trim().endsWith("---")&&(e=e.trim().slice(0,-3)),i.default.parse(e,{customTags:[s]})),toFile(e,t=[],n={}){const r=i.default.createNode(e);a(r.items,n),r.items.sort((0,o.sortKeys)(t,(e=>{var t;return null===(t=e.key)||void 0===t?void 0:t.toString()})));const s=new i.default.Document;return s.contents=r,s.toString()}}},84185:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsCore=void 0;var r=o(n(4342)),i=o(n(41891));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIntegrationProvider=void 0,t.resolveIntegrations=s;var r=n(46670),i=a(n(615)),o=a(n(99238));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){let n=(0,r.Map)({});return e.get("providers").forEach(((e,r)=>{switch(r){case"algolia":n=n.set("algolia",new i.default(e));break;case"assetStore":n=n.set("assetStore",new o.default(e,t))}})),n}t.getIntegrationProvider=function(){let e=null;return(t,n,r)=>(e||(e=s(t,n)),e.get(r))}()},615:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(35676))&&r.__esModule?r:{default:r},o=n(33806),a=n(15583),s=n(45624);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;te.ok?t:Promise.reject(t)))}urlFor(e,t){const n=[];if(t.params)for(const e in t.params)n.push(`${e}=${encodeURIComponent(t.params[e])}`);return n.length&&(e+=`?${n.join("&")}`),e}request(e,t={}){const n=this.requestHeaders(t.headers||{}),r=this.urlFor(e,t);return d(r,u(u({},t),{},{headers:n})).then((e=>{const t=e.headers.get("Content-Type");return t&&t.match(/json/)?this.parseJsonResponse(e):e.text()}))}search(e,t,n){const r=e.map((e=>({indexName:`${this.indexPrefix}${e}`,params:`query=${t}&page=${n}`})));return this.request(`${this.searchURL}/indexes/*/queries`,{method:"POST",body:JSON.stringify({requests:r})}).then((t=>{const r=t.results.map(((t,n)=>t.hits.map((t=>{const r=t.path.split("/").pop().replace(/\.[^.]+$/,"");return(0,a.createEntry)(e[n],r,t.path,{data:t.data,partial:!0})}))));return{entries:(0,i.default)(r),pagination:n}}))}searchBy(e,t,n){return this.request(`${this.searchURL}/indexes/${this.indexPrefix}${t}`,{params:{restrictSearchableAttributes:e,query:n}})}listEntries(e,t){return this.entriesCache.collection===e&&this.entriesCache.page===t?Promise.resolve({page:this.entriesCache.page,entries:this.entriesCache.entries}):this.request(`${this.searchURL}/indexes/${this.indexPrefix}${e.get("name")}`,{params:{page:t}}).then((t=>{const n=t.hits.map((t=>{const n=(0,s.selectEntrySlug)(e,t.path);return(0,a.createEntry)(e.get("name"),n,t.path,{data:t.data,partial:!0})}));return this.entriesCache={collection:e,pagination:t.page,entries:n},{entries:n,pagination:t.page}}))}async listAllEntries(e){const t={hitsPerPage:1e3};let n=await this.request(`${this.searchURL}/indexes/${this.indexPrefix}${e.get("name")}`,{params:t}),{nbPages:r=0,hits:i,page:o}=n;for(o+=1;o{const n=(0,s.selectEntrySlug)(e,t.path);return(0,a.createEntry)(e.get("name"),n,t.path,{data:t.data,partial:!0})}))}getEntry(e,t){return this.searchBy("slug",e.get("name"),t).then((n=>{const r=n.hits.filter((e=>e.slug===t))[0];return(0,a.createEntry)(e.get("name"),t,r.path,{data:r.data,partial:!0})}))}}},99238:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(1573)),i=s(n(42208)),o=n(33806),a=n(9904);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;te.ok?t:Promise.reject(t)))}urlFor(e,t){const n=[];if(t.params)for(const e in t.params)n.push(`${e}=${encodeURIComponent(t.params[e])}`);return n.length&&(e+=`?${n.join("&")}`),e}requestHeaders(e={}){return u({},e)}confirmRequest(e){this.getToken().then((t=>this.request(`${this.getSignedFormURL}/${e}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify({state:"uploaded"})})))}async request(e,t={}){const n=this.requestHeaders(t.headers||{}),r=this.urlFor(e,t),i=await c(r,u(u({},t),{},{headers:n})),o=i.headers.get("Content-Type");return o&&o.match(/json/)?await this.parseJsonResponse(i):i.text()}async retrieve(e,t,n){const r=(0,i.default)({search:e,page:t,filter:n?"private":"public"},(e=>!!e)),o=(0,a.addParams)(this.getSignedFormURL,r),s={"Content-Type":"application/json",Authorization:`Bearer ${await this.getToken()}`};return(await this.request(o,{headers:s})).map((({id:e,name:t,size:n,url:r})=>({id:e,name:t,size:n,displayURL:r,url:r,path:r})))}delete(e){const t=`${this.getSignedFormURL}/${e}`;return this.getToken().then((e=>this.request(t,{method:"DELETE",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}})))}async upload(e,t=!1){const n={name:e.name,size:e.size};e.type&&(n.content_type=e.type),t&&(n.visibility="private");try{const t=await this.getToken(),r=await this.request(this.getSignedFormURL,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify(n)}),i=r.form.url,o=r.form.fields,{id:a,name:s,size:l,url:u}=r.asset,c=new FormData;return Object.keys(o).forEach((e=>c.append(e,o[e]))),c.append("file",e,e.name),await this.request(i,{method:"POST",body:c}),this.shouldConfirmUpload&&await this.confirmRequest(a),{success:!0,asset:{id:a,name:s,size:l,displayURL:u,url:u,path:u}}}catch(e){throw console.error(e),e}}}},54876:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){console.error(`%c ⛔ ${e}\n%c${t}\n\n`,"color: black; font-weight: bold; font-size: 16px; line-height: 50px;","color: black;")}},59311:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commitMessageFormatter=function(e,t,{slug:n,path:r,collection:i,authorLogin:o,authorName:a},s){const l=m(m({},_),t.backend.commit_messages||{}),u=l[e].replace(x,((e,t)=>{switch(t){case"slug":return n||"";case"path":return r||"";case"collection":return i?i.get("label_singular")||i.get("label"):"";case"author-login":return o||"";case"author-name":return a||"";default:return console.warn(`Ignoring unknown variable “${t}” in commit message template.`),""}}));return s?l.openAuthoring.replace(x,((e,t)=>{switch(t){case"message":return u;case"author-login":return o||"";case"author-name":return a||"";default:return console.warn(`Ignoring unknown variable “${t}” in open authoring message template.`),""}})):u},t.folderFormatter=function(e,t,n,r,i,o){if(!t||!t.get("data"))return e;let a=t.get("data").set(i,r);a=w(t.get("path"),a,n.get("folder"));const s=v(t,(0,u.selectInferredField)(n,"date"))||null,l=a.getIn(b((0,u.selectIdentifier)(n))),c=E(o,[r,a.get("dirname")]);return g(e,s,l,a,c)},t.getProcessSegment=E,t.prepareSlug=k,t.previewUrlFormatter=function(e,t,n,o,a){if(!e)return;const s=(0,i.default)(e,"/"),c=t.get("type")===d.FILES?(0,u.getFileFromSlug)(t,o.get("slug")):void 0,f=null!==(p=null==c?void 0:c.get("preview_path"))&&void 0!==p?p:t.get("preview_path");var p;if(!f)return e;let h=o.get("data");h=w(o.get("path"),h,t.get("folder"));const m=(null!==(x=null==c?void 0:c.get("preview_path_date_field"))&&void 0!==x?x:t.get("preview_path_date_field"))||(0,u.selectInferredField)(t,"date"),b=v(o,m),_=E(a,[h.get("dirname")]);var x;let k;try{k=g(f,b,n,h,_)}catch(e){if(e.name===y)return console.error(l.stripIndent` + `}},t))))}}var h,m,g;t.Modal=p,h=p,m="propTypes",g={children:i.default.node.isRequired,isOpen:i.default.bool.isRequired,className:i.default.string,onClose:i.default.func.isRequired},(m=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(m))in h?Object.defineProperty(h,m,{value:g,enumerable:!0,configurable:!0,writable:!0}):h[m]=g},92458:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(2784)),i=n(61116),o=n(48919),a=n(57903),s=n(9316),l=n(5690),u=n(28165);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(0,i.injectStyle)(),t.default=(0,a.connect)((function({notifications:e}){return{notifications:e.notifications}}))((function({notifications:e}){const t=(0,s.useTranslate)(),n=(0,a.useDispatch)(),[i,c]=r.default.useState({});return(0,r.useEffect)((()=>{e.filter((e=>!i[e.id])).forEach((e=>{const r=(0,o.toast)("string"==typeof e.message?e.message:t(e.message.key,function(e){for(var t=1;t{n((0,l.dismissNotification)(e.id))}),e.dismissAfter)})),Object.entries(i).forEach((([t,n])=>{e.find((e=>e.id===t))||(o.toast.dismiss(n),delete i[t],c(i))}))}),[e]),o.toast.onChange((e=>{if("removed"==e.status){var t;const r=null===(t=Object.entries(i).find((([,t])=>t===e.id)))||void 0===t?void 0:t[0];r&&n((0,l.dismissNotification)(r))}})),(0,u.jsx)(r.default.Fragment,null,(0,u.jsx)(o.ToastContainer,{position:"top-right",theme:"colored",className:"notif__container"}))}))},79708:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(70894)),i=c(n(2784)),o=c(n(13980)),a=n(28165),s=n(9316),l=n(30762),u=n(9904);function c(e){return e&&e.__esModule?e:{default:e}}const d={name:"m2n7c1-avatarImage",styles:"width:32px;border-radius:32px;label:avatarImage;"},f=(0,r.default)(l.DropdownButton,{target:"e1gt62yu4",label:"AvatarDropdownButton"})({name:"dtukf8",styles:"display:inline-block;padding:8px;cursor:pointer;color:#1e2532;background-color:transparent"}),p=(0,r.default)("img",{target:"e1gt62yu3",label:"AvatarImage"})(d,";"),h=(0,r.default)(l.Icon,{target:"e1gt62yu2",label:"AvatarPlaceholderIcon"})(d,";height:32px;color:#1e2532;background-color:",l.colors.textFieldBorder,";"),m=(0,r.default)("a",{target:"e1gt62yu1",label:"AppHeaderSiteLink"})({name:"1uk00au",styles:"font-size:14px;font-weight:400;color:#7b8290;padding:10px 16px"}),g=(0,r.default)("a",{target:"e1gt62yu0",label:"AppHeaderTestRepoIndicator"})({name:"1uk00au",styles:"font-size:14px;font-weight:400;color:#7b8290;padding:10px 16px"});function v({imageUrl:e}){return e?(0,a.jsx)(p,{src:e}):(0,a.jsx)(h,{type:"user",size:"large"})}function y({displayUrl:e,isTestRepo:t,imageUrl:n,onLogoutClick:r,t:o}){return(0,a.jsx)(i.default.Fragment,null,t&&(0,a.jsx)(g,{href:"https://www.decapcms.org/docs/test-backend",target:"_blank",rel:"noopener noreferrer"},"Test Backend ↗"),e?(0,a.jsx)(m,{href:e,target:"_blank"},(0,u.stripProtocol)(e)):null,(0,a.jsx)(l.Dropdown,{dropdownTopOverlap:"50px",dropdownWidth:"100px",dropdownPosition:"right",renderButton:()=>(0,a.jsx)(f,null,(0,a.jsx)(v,{imageUrl:n}))},(0,a.jsx)(l.DropdownItem,{label:o("ui.settingsDropdown.logOut"),onClick:r})))}v.propTypes={imageUrl:o.default.string},y.propTypes={displayUrl:o.default.string,isTestRepo:o.default.bool,imageUrl:o.default.string,onLogoutClick:o.default.func.isRequired,t:o.default.func.isRequired},t.default=(0,s.translate)()(y)},50758:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DragSource",{enumerable:!0,get:function(){return r.DragSource}}),Object.defineProperty(t,"DropTarget",{enumerable:!0,get:function(){return r.DropTarget}}),Object.defineProperty(t,"ErrorBoundary",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"FileUploadButton",{enumerable:!0,get:function(){return o.FileUploadButton}}),Object.defineProperty(t,"HTML5DragDrop",{enumerable:!0,get:function(){return r.HTML5DragDrop}}),Object.defineProperty(t,"Modal",{enumerable:!0,get:function(){return a.Modal}}),Object.defineProperty(t,"Notifications",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"SettingsDropdown",{enumerable:!0,get:function(){return l.default}});var r=n(12086),i=u(n(55059)),o=n(95921),a=n(21904),s=u(n(92458)),l=u(n(79708));function u(e){return e&&e.__esModule?e:{default:e}}},33407:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=y(n(70894)),i=y(n(13980)),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=v(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(2784)),a=y(n(19155)),s=n(46670),l=n(9316),u=n(57903),c=n(30762),d=n(1582),f=n(91358),p=n(36642),h=n(61928),m=y(n(91678)),g=n(28165);function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}function y(e){return e&&e.__esModule?e:{default:e}}const b=(0,r.default)("div",{target:"e1t9l5ui4",label:"WorkflowContainer"})("padding:",c.lengths.pageMargin," 0;height:100vh;"),w=(0,r.default)("div",{target:"e1t9l5ui3",label:"WorkflowTop"})(c.components.cardTop,";"),_=(0,r.default)("div",{target:"e1t9l5ui2",label:"WorkflowTopRow"})("display:flex;justify-content:space-between;span[role='button']{",c.shadows.dropDeep,";}"),x=(0,r.default)("h1",{target:"e1t9l5ui1",label:"WorkflowTopHeading"})(c.components.cardTopHeading,";"),k=(0,r.default)("p",{target:"e1t9l5ui0",label:"WorkflowTopDescription"})(c.components.cardTopDescription,";");class E extends o.Component{componentDidMount(){const{loadUnpublishedEntries:e,isEditorialWorkflow:t,collections:n}=this.props;t&&e(n)}render(){const{isEditorialWorkflow:e,isOpenAuthoring:t,isFetching:n,unpublishedEntries:r,updateUnpublishedEntryStatus:i,publishUnpublishedEntry:o,deleteUnpublishedEntry:a,collections:s,t:l}=this.props;if(!e)return null;if(n)return(0,g.jsx)(c.Loader,{active:!0},l("workflow.workflow.loading"));const u=r.get("pending_review").size,f=r.get("pending_publish").size;return(0,g.jsx)(b,null,(0,g.jsx)(w,null,(0,g.jsx)(_,null,(0,g.jsx)(x,null,l("workflow.workflow.workflowHeading")),(0,g.jsx)(c.Dropdown,{dropdownWidth:"160px",dropdownPosition:"left",dropdownTopOverlap:"40px",renderButton:()=>(0,g.jsx)(c.StyledDropdownButton,null,l("workflow.workflow.newPost"))},s.filter((e=>e.get("create"))).toList().map((e=>(0,g.jsx)(c.DropdownItem,{key:e.get("name"),label:e.get("label"),onClick:()=>(0,d.createNewEntry)(e.get("name"))}))))),(0,g.jsx)(k,null,l("workflow.workflow.description",{smart_count:u,readyCount:f}))),(0,g.jsx)(m.default,{entries:r,handleChangeStatus:i,handlePublish:o,handleDelete:a,isOpenAuthoring:t,collections:s}))}}var C,S,A;C=E,S="propTypes",A={collections:a.default.map.isRequired,isEditorialWorkflow:i.default.bool.isRequired,isOpenAuthoring:i.default.bool,isFetching:i.default.bool,unpublishedEntries:a.default.map,loadUnpublishedEntries:i.default.func.isRequired,updateUnpublishedEntryStatus:i.default.func.isRequired,publishUnpublishedEntry:i.default.func.isRequired,deleteUnpublishedEntry:i.default.func.isRequired,t:i.default.func.isRequired},(S=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(S))in C?Object.defineProperty(C,S,{value:A,enumerable:!0,configurable:!0,writable:!0}):C[S]=A,t.default=(0,u.connect)((function(e){const{collections:t,config:n,globalUI:r}=e,i=n.publish_mode===h.EDITORIAL_WORKFLOW,o={collections:t,isEditorialWorkflow:i,isOpenAuthoring:r.useOpenAuthoring};return i&&(o.isFetching=e.editorialWorkflow.getIn(["pages","isFetching"],!1),o.unpublishedEntries=h.status.reduce(((t,n)=>{const r=(0,p.selectUnpublishedEntriesByStatus)(e,n);return t.set(n,r)}),(0,s.OrderedMap)())),o}),{loadUnpublishedEntries:f.loadUnpublishedEntries,updateUnpublishedEntryStatus:f.updateUnpublishedEntryStatus,publishUnpublishedEntry:f.publishUnpublishedEntry,deleteUnpublishedEntry:f.deleteUnpublishedEntry})((0,l.translate)()(E))},69689:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=(u(n(2784)),u(n(13980))),o=n(28165),a=n(9316),s=n(34752),l=n(30762);function u(e){return e&&e.__esModule?e:{default:e}}const c={text:{name:"1lc6g5t-text",styles:"font-size:13px;font-weight:normal;margin-top:4px;label:text;"},button:(0,o.css)(l.buttons.button,";width:auto;flex:1 0 0;font-size:13px;padding:6px 0;;label:button;")},d=(0,r.default)(s.Link,{target:"ewffzyy8",label:"WorkflowLink"})({name:"am2158",styles:"display:block;padding:0 18px 18px;height:200px;overflow:hidden"}),f=(0,r.default)("div",{target:"ewffzyy7",label:"CardCollection"})("font-size:14px;color:",l.colors.textLead,";text-transform:uppercase;margin-top:12px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;"),p=(0,r.default)("h2",{target:"ewffzyy6",label:"CardTitle"})("margin:28px 0 0;color:",l.colors.textLead,";"),h=(0,r.default)("div",{target:"ewffzyy5",label:"CardDateContainer"})(c.text,";"),m=(0,r.default)("p",{target:"ewffzyy4",label:"CardBody"})(c.text,";color:",l.colors.text,";margin:24px 0 0;overflow-wrap:break-word;word-break:break-word;hyphens:auto;"),g=(0,r.default)("div",{target:"ewffzyy3",label:"CardButtonContainer"})("background-color:",l.colors.foreground,";position:absolute;bottom:0;width:100%;padding:12px 18px;display:flex;opacity:0;transition:opacity ",l.transitions.main,";cursor:pointer;"),v=(0,r.default)("button",{target:"ewffzyy2",label:"DeleteButton"})(c.button,";background-color:",l.colorsRaw.redLight,";color:",l.colorsRaw.red,";margin-right:6px;"),y=(0,r.default)("button",{target:"ewffzyy1",label:"PublishButton"})(c.button,";background-color:",l.colorsRaw.teal,";color:",l.colors.textLight,";margin-left:6px;&[disabled]{",l.buttons.disabled,";}"),b=(0,r.default)("div",{target:"ewffzyy0",label:"WorkflowCardContainer"})(l.components.card,";margin-bottom:24px;position:relative;overflow:hidden;&:hover ",g,"{opacity:1;}"),w=(0,a.translate)()((({t:e,date:t,author:n})=>{const r=function(e,t){return e&&t?"lastChange":e?"lastChangeNoAuthor":t?"lastChangeNoDate":void 0}(t,n);if(r)return(0,o.jsx)(h,null,e(`workflow.workflowCard.${r}`,{date:t,author:n}))}));function _({collectionLabel:e,title:t,authorLastChange:n,body:r,isModification:i,editLink:a,timestamp:s,onDelete:l,allowPublish:u,canPublish:c,onPublish:h,postAuthor:_,t:x}){return(0,o.jsx)(b,null,(0,o.jsx)(d,{to:a},(0,o.jsx)(f,null,e),_,(0,o.jsx)(p,null,t),(s||n)&&(0,o.jsx)(w,{date:s,author:n}),(0,o.jsx)(m,null,r)),(0,o.jsx)(g,null,(0,o.jsx)(v,{onClick:l},x(i?"workflow.workflowCard.deleteChanges":"workflow.workflowCard.deleteNewEntry")),u&&(0,o.jsx)(y,{disabled:!c,onClick:h},x(i?"workflow.workflowCard.publishChanges":"workflow.workflowCard.publishNewEntry"))))}_.propTypes={collectionLabel:i.default.string.isRequired,title:i.default.string,authorLastChange:i.default.string,body:i.default.string,isModification:i.default.bool,editLink:i.default.string.isRequired,timestamp:i.default.string.isRequired,onDelete:i.default.func.isRequired,allowPublish:i.default.bool.isRequired,canPublish:i.default.bool.isRequired,onPublish:i.default.func.isRequired,postAuthor:i.default.string,t:i.default.func.isRequired},t.default=(0,a.translate)()(_)},91678:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=m(n(70894)),i=m(n(13980)),o=m(n(2784)),a=m(n(19155)),s=n(28165),l=m(n(28879)),u=n(9316),c=n(30762),d=n(61928),f=n(50758),p=m(n(69689)),h=n(45624);function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const v=(0,r.default)("div",{target:"e190xgae3",label:"WorkflowListContainer"})({name:"16oyyfa",styles:"min-height:60%;display:grid;grid-template-columns:33.3% 33.3% 33.3%"}),y=(0,r.default)("div",{target:"e190xgae2",label:"WorkflowListContainerOpenAuthoring"})({name:"1e70u5x",styles:"min-height:60%;display:grid;grid-template-columns:50% 50% 0%"});var b={name:"108sck7-columnPosition",styles:"margin-right:0;label:columnPosition;"},w={name:"l4owvh-columnPosition",styles:"margin-left:0;label:columnPosition;"};const _={columnPosition:e=>0===e&&w||2===e&&b||(0,s.css)("&:before,&:after{content:'';display:block;position:absolute;width:2px;height:80%;top:76px;background-color:",c.colors.textFieldBorder,";}&:before{left:-23px;}&:after{right:-23px;};label:columnPosition;"),column:{name:"m4x6w5-column",styles:"margin:0 20px;transition:background-color 0.5s ease;border:2px dashed transparent;border-radius:4px;position:relative;height:100%;label:column;"},columnHovered:(0,s.css)("border-color:",c.colors.active,";;label:columnHovered;"),hiddenColumn:{name:"1woovtn-hiddenColumn",styles:"display:none;label:hiddenColumn;"},hiddenRightBorder:{name:"hg8806-hiddenRightBorder",styles:"&:not(:first-child):not(:last-child){&:after{display:none;}};label:hiddenRightBorder;"}},x=(0,r.default)("h2",{target:"e190xgae1",label:"ColumnHeader"})("font-size:20px;font-weight:normal;padding:4px 14px;border-radius:",c.lengths.borderRadius,";margin-bottom:28px;",(e=>"draft"===e.name&&(0,s.css)("background-color:",c.colors.statusDraftBackground,";color:",c.colors.statusDraftText,";;label:ColumnHeader;"))," ",(e=>"pending_review"===e.name&&(0,s.css)("background-color:",c.colors.statusReviewBackground,";color:",c.colors.statusReviewText,";;label:ColumnHeader;"))," ",(e=>"pending_publish"===e.name&&(0,s.css)("background-color:",c.colors.statusReadyBackground,";color:",c.colors.statusReadyText,";;label:ColumnHeader;")),";"),k=(0,r.default)("p",{target:"e190xgae0",label:"ColumnCount"})("font-size:13px;font-weight:500;color:",c.colors.text,";text-transform:uppercase;margin-bottom:6px;"),E="cms-workflow";class C extends o.default.Component{constructor(...e){super(...e),g(this,"handleChangeStatus",((e,t)=>{const n=t.slug,r=t.collection,i=t.ownStatus;this.props.handleChangeStatus(r,n,i,e)})),g(this,"requestDelete",((e,t,n)=>{window.confirm(this.props.t("workflow.workflowList.onDeleteEntry"))&&this.props.handleDelete(e,t,n)})),g(this,"requestPublish",((e,t,n)=>{n===d.status.last()?window.confirm(this.props.t("workflow.workflowList.onPublishEntry"))&&this.props.handlePublish(e,t):window.alert(this.props.t("workflow.workflowList.onPublishingNotReadyEntry"))})),g(this,"renderColumns",((e,t)=>{const{isOpenAuthoring:n,collections:r,t:i}=this.props;return e?t?(0,s.jsx)("div",null,e.map((e=>{const t=(0,l.default)(e.get("updatedOn")).format(i("workflow.workflow.dateFormat")),n=e.get("slug"),o=e.get("collection"),a=`collections/${o}/entries/${n}?ref=workflow`,u=e.get("status"),c=r.find((e=>e.get("name")===o)),m=null==c?void 0:c.get("label"),g=e.get("isModification"),v=null==c?void 0:c.get("publish"),y=u===d.status.last()&&!e.get("isPersisting",!1),b=e.get("author");return(0,s.jsx)(f.DragSource,{namespace:E,key:`${o}-${n}`,slug:n,collection:o,ownStatus:u},(r=>r((0,s.jsx)("div",null,(0,s.jsx)(p.default,{collectionLabel:m||o,title:(0,h.selectEntryCollectionTitle)(c,e),authorLastChange:e.getIn(["metaData","user"]),body:e.getIn(["data","body"]),isModification:g,editLink:a,timestamp:t,onDelete:this.requestDelete.bind(this,o,n,u),allowPublish:v,canPublish:y,onPublish:this.requestPublish.bind(this,o,n,u),postAuthor:b})))))}))):e.entrySeq().map((([e,t],r)=>(0,s.jsx)(f.DropTarget,{namespace:E,key:e,onDrop:this.handleChangeStatus.bind(this,e)},((i,{isHovered:o})=>i((0,s.jsx)("div",{style:{height:"100%"}},(0,s.jsx)("div",{css:[_.column,_.columnPosition(r),o&&_.columnHovered,n&&"pending_publish"===e&&_.hiddenColumn,n&&"pending_review"===e&&_.hiddenRightBorder,";label:WorkflowList;"]},(0,s.jsx)(x,{name:e},function(e,t){switch(e){case"draft":return t("workflow.workflowList.draftHeader");case"pending_review":return t("workflow.workflowList.inReviewHeader");case"pending_publish":return t("workflow.workflowList.readyHeader")}}(e,this.props.t)),(0,s.jsx)(k,null,this.props.t("workflow.workflowList.currentEntries",{smart_count:t.size})),this.renderColumns(t,e)))))))):null}))}render(){const e=this.renderColumns(this.props.entries),t=this.props.isOpenAuthoring?y:v;return(0,s.jsx)(t,null,e)}}g(C,"propTypes",{entries:a.default.orderedMap,handleChangeStatus:i.default.func.isRequired,handlePublish:i.default.func.isRequired,handleDelete:i.default.func.isRequired,t:i.default.func.isRequired,isOpenAuthoring:i.default.bool,collections:a.default.map.isRequired}),t.default=(0,f.HTML5DragDrop)((0,u.translate)()(C))},48781:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FOLDER=t.FILES=void 0,t.FILES="file_based_collection",t.FOLDER="folder_based_collection"},78882:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VIEW_STYLE_LIST=t.VIEW_STYLE_GRID=void 0,t.VIEW_STYLE_LIST="VIEW_STYLE_LIST",t.VIEW_STYLE_GRID="VIEW_STYLE_GRID"},93492:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.COMMIT_DATE=t.COMMIT_AUTHOR=void 0,t.COMMIT_AUTHOR="commit_author",t.COMMIT_DATE="commit_date"},35276:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateConfig=function(e){const t=new r.default({allErrors:!0,$data:!0,strict:!1});if((0,i.uniqueItemProperties)(t),(0,i.select)(t),(0,i.instanceof)(t),(0,i.prohibited)(t),(0,o.default)(t),!t.validate({type:"object",properties:{backend:{type:"object",properties:{name:{type:"string",examples:["test-repo"]},auth_scope:{type:"string",examples:["repo","public_repo"],enum:["repo","public_repo"]},cms_label_prefix:{type:"string",minLength:1},open_authoring:{type:"boolean",examples:[!0]}},required:["name"]},local_backend:{oneOf:[{type:"boolean"},{type:"object",properties:{url:{type:"string",examples:["http://localhost:8081/api/v1"]},allowed_hosts:{type:"array",items:{type:"string"}}},additionalProperties:!1}]},locale:{type:"string",examples:["en","fr","de"]},i18n:m,site_url:{type:"string",examples:["https://example.com"]},display_url:{type:"string",examples:["https://example.com"]},logo_url:{type:"string",examples:["https://example.com/images/logo.svg"]},show_preview_links:{type:"boolean"},media_folder:{type:"string",examples:["assets/uploads"]},public_folder:{type:"string",examples:["/uploads"]},media_folder_relative:{type:"boolean"},media_library:{type:"object",properties:{name:{type:"string",examples:["uploadcare"]},config:{type:"object"}},required:["name"]},publish_mode:{type:"string",enum:["simple","editorial_workflow",""],examples:["editorial_workflow"]},slug:{type:"object",properties:{encoding:{type:"string",enum:["unicode","ascii"]},clean_accents:{type:"boolean"}}},collections:{type:"array",minItems:1,items:{type:"object",properties:{name:{type:"string"},label:{type:"string"},label_singular:{type:"string"},description:{type:"string"},folder:{type:"string"},files:{type:"array",items:{type:"object",properties:{name:{type:"string"},label:{type:"string"},label_singular:{type:"string"},description:{type:"string"},file:{type:"string"},preview_path:{type:"string"},preview_path_date_field:{type:"string"},fields:y()},required:["name","label","file","fields"]},uniqueItemProperties:["name"]},identifier_field:{type:"string"},summary:{type:"string"},slug:{type:"string"},path:{type:"string"},preview_path:{type:"string"},preview_path_date_field:{type:"string"},create:{type:"boolean"},publish:{type:"boolean"},hide:{type:"boolean"},editor:{type:"object",properties:{preview:{type:"boolean"}}},format:{type:"string"},extension:{type:"string"},frontmatter_delimiter:{type:["string","array"],minItems:2,maxItems:2,items:{type:"string"}},fields:y(),sortable_fields:{type:"array",items:{type:"string"}},sortableFields:{type:"array",items:{type:"string"}},view_filters:b,view_groups:w,nested:{type:"object",properties:{depth:{type:"number",minimum:1,maximum:1e3},summary:{type:"string"}},required:["depth"]},meta:{type:"object",properties:{path:{type:"object",properties:{label:{type:"string"},widget:{type:"string"},index_file:{type:"string"}},required:["label","widget","index_file"]}},additionalProperties:!1,minProperties:1},i18n:g},required:["name","label"],oneOf:[{required:["files"]},{required:["folder","fields"]}],not:{required:["sortable_fields","sortableFields"]},if:{required:["extension"]},then:{if:{properties:{extension:{enum:Object.keys(s.extensionFormatters)}}},else:{required:["format"]}},dependencies:{frontmatter_delimiter:{properties:{format:{enum:s.frontmatterFormats}},required:["format"]}}},uniqueItemProperties:["name"]},editor:{type:"object",properties:{preview:{type:"boolean"}}}},required:["backend","collections"],anyOf:[{required:["media_folder"]},{required:["media_library"]}]},e)){const e=t.errors.map((e=>{switch(e.keyword){case"uniqueItemProperties":{const t=e.instancePath||"";let n=e;return t.endsWith("/fields")?n=f(f({},e),{},{message:"fields names must be unique"}):t.endsWith("/files")?n=f(f({},e),{},{message:"files names must be unique"}):t.endsWith("/collections")&&(n=f(f({},e),{},{message:"collections names must be unique"})),n}case"instanceof":{const t=e.instancePath||"";let n=e;return/fields\/\d+\/pattern\/\d+/.test(t)&&(n=f(f({},e),{},{message:"must be a regular expression"})),n}default:return e}}));throw console.error("Config Errors",e),new x(e)}};var r=c(n(96477)),i=n(66454),o=c(n(53521)),a=n(29987),s=n(85575),l=n(41891),u=n(13943);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t({[e.name]:e.schema})));return Object.assign(...e)}class x extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e,...t){const n=e.map((({message:e,instancePath:t})=>{const n=t.slice(1).split("/").map((e=>e.match(/^\d+$/)?`[${e}]`:`.${e}`)).join("").slice(1);return`${n?`'${n}'`:"config"} ${e}`})).join("\n");super(n,...t),this.errors=e,this.message=n}toString(){return this.message}}},39010:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SORTABLE_FIELDS=t.INFERABLE_FIELDS=t.IDENTIFIER_FIELDS=void 0,(r=n(2784))&&r.__esModule;var r,i=n(28165);t.IDENTIFIER_FIELDS=["title","path"],t.SORTABLE_FIELDS=["title","date","author","description"],t.INFERABLE_FIELDS={title:{type:"string",secondaryTypes:[],synonyms:["title","name","label","headline","header"],defaultPreview:e=>(0,i.jsx)("h1",null,e),fallbackToFirstField:!0,showError:!0},shortTitle:{type:"string",secondaryTypes:[],synonyms:["short_title","shortTitle","short"],defaultPreview:e=>(0,i.jsx)("h2",null,e),fallbackToFirstField:!1,showError:!1},author:{type:"string",secondaryTypes:[],synonyms:["author","name","by","byline","owner"],defaultPreview:e=>(0,i.jsx)("strong",null,e),fallbackToFirstField:!1,showError:!1},date:{type:"datetime",secondaryTypes:["date"],synonyms:["date","publishDate","publish_date"],defaultPreview:e=>e,fallbackToFirstField:!1,showError:!1},description:{type:"string",secondaryTypes:["text","markdown"],synonyms:["shortDescription","short_description","shortdescription","description","intro","introduction","brief","content","biography","bio","summary"],defaultPreview:e=>e,fallbackToFirstField:!1,showError:!1},image:{type:"image",secondaryTypes:[],synonyms:["image","thumbnail","thumb","picture","avatar","photo","cover","hero","logo"],defaultPreview:e=>e,fallbackToFirstField:!1,showError:!1}}},61928:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statusDescriptions=t.status=t.Statues=t.SIMPLE=t.EDITORIAL_WORKFLOW=void 0;var r=n(46670);t.SIMPLE="simple",t.EDITORIAL_WORKFLOW="editorial_workflow";const i=t.Statues={DRAFT:"draft",PENDING_REVIEW:"pending_review",PENDING_PUBLISH:"pending_publish"},o=t.status=(0,r.OrderedMap)(i);t.statusDescriptions=(0,r.Map)({[o.get("DRAFT")]:"Draft",[o.get("PENDING_REVIEW")]:"Waiting for Review",[o.get("PENDING_PUBLISH")]:"Waiting to go live"})},1757:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={PRESENCE:"PRESENCE",PATTERN:"PATTERN",RANGE:"RANGE",CUSTOM:"CUSTOM"}},85575:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.frontmatterFormats=t.formatExtensions=t.extensionFormatters=void 0,t.getFormatExtensions=function(){return f(f({},p),(0,u.getCustomFormatsExtensions)())},t.resolveFormat=function(e,t){const n=e.get("frontmatter_delimiter"),o=(s=n,i.List.isList(s)?n.toArray():n),a=e.get("format");var s;if(a)return m(a,o);const l=t&&t.path;if(l){const e=l.split(".").pop();if(e)return(0,r.default)(h,e)}const u=e.get("extension");return u?(0,r.default)(h,u):m("frontmatter",o)};var r=c(n(72579)),i=n(46670),o=c(n(45367)),a=c(n(94379)),s=c(n(93223)),l=n(43303),u=n(41891);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FrontmatterInfer=t.FrontmatterFormatter=void 0,t.frontmatterJSON=function(e){return new m(f.JSON,e)},t.frontmatterTOML=function(e){return new m(f.TOML,e)},t.frontmatterYAML=function(e){return new m(f.YAML,e)},t.getFormatOpts=h;var r=l(n(61035)),i=l(n(94379)),o=l(n(45367)),a=l(n(93223));const s=["body"];function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;ti.default.fromFile(e),stringify:(e,t)=>{const{sortedKeys:n}=t||{};return i.default.toFile(e,n)}},json:{parse:e=>{let t=e.trim();return"{"!==t.slice(0,1)&&(t="{"+t+"}"),a.default.fromFile(t)},stringify:e=>{let t=a.default.toFile(e).trim();return"{"===t.slice(0,1)&&"}"===t.slice(-1)&&(t=t.slice(1,-1)),t}},yaml:{parse:e=>o.default.fromFile(e),stringify:(e,t)=>{const{sortedKeys:n,comments:r}=t||{};return o.default.toFile(e,n,r)}}};function h(e,t){if(!e)return;const n={yaml:{language:f.YAML,delimiters:"---"},toml:{language:f.TOML,delimiters:"+++"},json:{language:f.JSON,delimiters:["{","}"]}},{language:r,delimiters:i}=n[e];return{language:r,delimiters:t||i}}class m{constructor(e,t){d(this,"format",void 0),this.format=h(e,t)}fromFile(e){const t=this.format||function(e){const t=e.indexOf("\n"),n=e.slice(0,-1!==t?t:0).trim();if(!(n.length>3&&"---"===n.slice(0,3)))switch(n){case"---":return h(f.YAML);case"+++":return h(f.TOML);case"{":return h(f.JSON);default:console.warn("Unrecognized front-matter format.")}}(e),n=(0,r.default)(e,c({engines:p},t));return c(c({},n.data),n.content.trim()&&{body:n.content})}toFile(e,t,n){const{body:i=""}=e,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,s),a=this.format||h(f.YAML),l="\n"!==i.slice(-1),u=r.default.stringify(i,o,c({engines:p,sortedKeys:t,comments:n},a));return l&&"\n"===u.slice(-1)?u.slice(0,-1):u}}t.FrontmatterFormatter=m,t.FrontmatterInfer=new m},67048:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortKeys=function(e,t=(e=>e)){return(n,r)=>{const i=e.indexOf(t(n)),o=e.indexOf(t(r));return-1===i||-1===o?0:i>o?1:i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={fromFile:e=>JSON.parse(e),toFile:e=>JSON.stringify(e,null,2)}},94379:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(6901)),i=l(n(56330)),o=l(n(28879)),a=l(n(25606)),s=n(67048);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return o.default.isDayjs(t)?t.format(t._f):t instanceof a.default?`${t.path}`:!("number"!=typeof t||!Number.isInteger(t))&&t.toString()}t.default={fromFile:e=>r.default.parse(e),toFile:(e,t=[])=>i.default.toToml(e,{replace:u,sort:(0,s.sortKeys)(t)})}},45367:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(60155))&&r.__esModule?r:{default:r},o=n(67048);function a(e,t,n=""){e.forEach((e=>{if(void 0!==e.key){var r;const i=e.key.toString(),o=n?`${n}.${i}`:i;if(t[o]){const n=t[o].split("\\n").join("\n ");e.commentBefore=` ${n}`}Array.isArray(null===(r=e.value)||void 0===r?void 0:r.items)&&a(e.value.items,t,o)}}))}const s={identify:e=>e instanceof Date,default:!0,tag:"!timestamp",test:RegExp("^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2}(\\.[0-9]+)?)Z$"),resolve:e=>new Date(e),stringify:e=>e.toISOString()};t.default={fromFile:e=>(e&&e.trim().endsWith("---")&&(e=e.trim().slice(0,-3)),i.default.parse(e,{customTags:[s]})),toFile(e,t=[],n={}){const r=i.default.createNode(e);a(r.items,n),r.items.sort((0,o.sortKeys)(t,(e=>{var t;return null===(t=e.key)||void 0===t?void 0:t.toString()})));const s=new i.default.Document;return s.contents=r,s.toString()}}},84185:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsCore=void 0;var r=o(n(4342)),i=o(n(41891));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIntegrationProvider=void 0,t.resolveIntegrations=s;var r=n(46670),i=a(n(615)),o=a(n(99238));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){let n=(0,r.Map)({});return e.get("providers").forEach(((e,r)=>{switch(r){case"algolia":n=n.set("algolia",new i.default(e));break;case"assetStore":n=n.set("assetStore",new o.default(e,t))}})),n}t.getIntegrationProvider=function(){let e=null;return(t,n,r)=>(e||(e=s(t,n)),e.get(r))}()},615:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(35676))&&r.__esModule?r:{default:r},o=n(33806),a=n(15583),s=n(45624);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;te.ok?t:Promise.reject(t)))}urlFor(e,t){const n=[];if(t.params)for(const e in t.params)n.push(`${e}=${encodeURIComponent(t.params[e])}`);return n.length&&(e+=`?${n.join("&")}`),e}request(e,t={}){const n=this.requestHeaders(t.headers||{}),r=this.urlFor(e,t);return d(r,u(u({},t),{},{headers:n})).then((e=>{const t=e.headers.get("Content-Type");return t&&t.match(/json/)?this.parseJsonResponse(e):e.text()}))}search(e,t,n){const r=e.map((e=>({indexName:`${this.indexPrefix}${e}`,params:`query=${t}&page=${n}`})));return this.request(`${this.searchURL}/indexes/*/queries`,{method:"POST",body:JSON.stringify({requests:r})}).then((t=>{const r=t.results.map(((t,n)=>t.hits.map((t=>{const r=t.path.split("/").pop().replace(/\.[^.]+$/,"");return(0,a.createEntry)(e[n],r,t.path,{data:t.data,partial:!0})}))));return{entries:(0,i.default)(r),pagination:n}}))}searchBy(e,t,n){return this.request(`${this.searchURL}/indexes/${this.indexPrefix}${t}`,{params:{restrictSearchableAttributes:e,query:n}})}listEntries(e,t){return this.entriesCache.collection===e&&this.entriesCache.page===t?Promise.resolve({page:this.entriesCache.page,entries:this.entriesCache.entries}):this.request(`${this.searchURL}/indexes/${this.indexPrefix}${e.get("name")}`,{params:{page:t}}).then((t=>{const n=t.hits.map((t=>{const n=(0,s.selectEntrySlug)(e,t.path);return(0,a.createEntry)(e.get("name"),n,t.path,{data:t.data,partial:!0})}));return this.entriesCache={collection:e,pagination:t.page,entries:n},{entries:n,pagination:t.page}}))}async listAllEntries(e){const t={hitsPerPage:1e3};let n=await this.request(`${this.searchURL}/indexes/${this.indexPrefix}${e.get("name")}`,{params:t}),{nbPages:r=0,hits:i,page:o}=n;for(o+=1;o{const n=(0,s.selectEntrySlug)(e,t.path);return(0,a.createEntry)(e.get("name"),n,t.path,{data:t.data,partial:!0})}))}getEntry(e,t){return this.searchBy("slug",e.get("name"),t).then((n=>{const r=n.hits.filter((e=>e.slug===t))[0];return(0,a.createEntry)(e.get("name"),t,r.path,{data:r.data,partial:!0})}))}}},99238:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(1573)),i=s(n(42208)),o=n(33806),a=n(9904);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;te.ok?t:Promise.reject(t)))}urlFor(e,t){const n=[];if(t.params)for(const e in t.params)n.push(`${e}=${encodeURIComponent(t.params[e])}`);return n.length&&(e+=`?${n.join("&")}`),e}requestHeaders(e={}){return u({},e)}confirmRequest(e){this.getToken().then((t=>this.request(`${this.getSignedFormURL}/${e}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify({state:"uploaded"})})))}async request(e,t={}){const n=this.requestHeaders(t.headers||{}),r=this.urlFor(e,t),i=await c(r,u(u({},t),{},{headers:n})),o=i.headers.get("Content-Type");return o&&o.match(/json/)?await this.parseJsonResponse(i):i.text()}async retrieve(e,t,n){const r=(0,i.default)({search:e,page:t,filter:n?"private":"public"},(e=>!!e)),o=(0,a.addParams)(this.getSignedFormURL,r),s={"Content-Type":"application/json",Authorization:`Bearer ${await this.getToken()}`};return(await this.request(o,{headers:s})).map((({id:e,name:t,size:n,url:r})=>({id:e,name:t,size:n,displayURL:r,url:r,path:r})))}delete(e){const t=`${this.getSignedFormURL}/${e}`;return this.getToken().then((e=>this.request(t,{method:"DELETE",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}})))}async upload(e,t=!1){const n={name:e.name,size:e.size};e.type&&(n.content_type=e.type),t&&(n.visibility="private");try{const t=await this.getToken(),r=await this.request(this.getSignedFormURL,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify(n)}),i=r.form.url,o=r.form.fields,{id:a,name:s,size:l,url:u}=r.asset,c=new FormData;return Object.keys(o).forEach((e=>c.append(e,o[e]))),c.append("file",e,e.name),await this.request(i,{method:"POST",body:c}),this.shouldConfirmUpload&&await this.confirmRequest(a),{success:!0,asset:{id:a,name:s,size:l,displayURL:u,url:u,path:u}}}catch(e){throw console.error(e),e}}}},54876:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){console.error(`%c ⛔ ${e}\n%c${t}\n\n`,"color: black; font-weight: bold; font-size: 16px; line-height: 50px;","color: black;")}},59311:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commitMessageFormatter=function(e,t,{slug:n,path:r,collection:i,authorLogin:o,authorName:a},s){const l=m(m({},_),t.backend.commit_messages||{}),u=l[e].replace(x,((e,t)=>{switch(t){case"slug":return n||"";case"path":return r||"";case"collection":return i?i.get("label_singular")||i.get("label"):"";case"author-login":return o||"";case"author-name":return a||"";default:return console.warn(`Ignoring unknown variable “${t}” in commit message template.`),""}}));return s?l.openAuthoring.replace(x,((e,t)=>{switch(t){case"message":return u;case"author-login":return o||"";case"author-name":return a||"";default:return console.warn(`Ignoring unknown variable “${t}” in open authoring message template.`),""}})):u},t.folderFormatter=function(e,t,n,r,i,o){if(!t||!t.get("data"))return e;let a=t.get("data").set(i,r);a=w(t.get("path"),a,n.get("folder"));const s=v(t,(0,u.selectInferredField)(n,"date"))||null,l=a.getIn(b((0,u.selectIdentifier)(n))),c=E(o,[r,a.get("dirname")]);return g(e,s,l,a,c)},t.getProcessSegment=E,t.prepareSlug=k,t.previewUrlFormatter=function(e,t,n,o,a){if(!e)return;const s=(0,i.default)(e,"/"),c=t.get("type")===d.FILES?(0,u.getFileFromSlug)(t,o.get("slug")):void 0,f=null!==(p=null==c?void 0:c.get("preview_path"))&&void 0!==p?p:t.get("preview_path");var p;if(!f)return e;let h=o.get("data");h=w(o.get("path"),h,t.get("folder"));const m=(null!==(x=null==c?void 0:c.get("preview_path_date_field"))&&void 0!==x?x:t.get("preview_path_date_field"))||(0,u.selectInferredField)(t,"date"),b=v(o,m),_=E(a,[h.get("dirname")]);var x;let k;try{k=g(f,b,n,h,_)}catch(e){if(e.name===y)return console.error(l.stripIndent` Collection "${t.get("name")}" configuration error: \`preview_path_date_field\` must be a field with a valid date. Ignoring \`preview_path\`. - `),s;throw e}return`${s}/${(0,r.default)(k," /")}`},t.slugFormatter=function(e,t,n){const r=e.get("slug")||"{{slug}}",i=t.getIn(b((0,u.selectIdentifier)(e)));if(!i)throw new Error("Collection must have a field name that is a valid entry identifier, or must have `identifier_field` set");const o=E(n),a=new Date,s=g(r,a,i,t,o);if(e.has("path")){const n=k(e.get("path"));return g(n,a,s,t,(e=>e===s?e:o(e)))}return s},t.summaryFormatter=function(e,t,n){let r=t.get("data");const i=v(t,(0,u.selectInferredField)(n,"date"))||null,o=r.getIn(b((0,u.selectIdentifier)(n)));return r=w(t.get("path"),r,n.get("folder")),t.get("author")&&!(0,u.selectField)(n,f.COMMIT_AUTHOR)&&(r=r.set(f.COMMIT_AUTHOR,t.get("author"))),t.get("updatedOn")&&!(0,u.selectField)(n,f.COMMIT_DATE)&&(r=r.set(f.COMMIT_DATE,t.get("updatedOn"))),g(e,i,o,r)};var r=p(n(93433)),i=p(n(1573)),o=p(n(26434)),a=p(n(85395)),s=n(1704),l=n(13856),u=n(45624),c=n(9904),d=n(48781),f=n(93492);function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;tt&&t.includes(n)?n:(0,a.default)([e=>String(e),k,(0,o.default)(c.sanitizeSlug,e)])(n)}},13943:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.I18N_STRUCTURE=t.I18N_FIELD=t.I18N=void 0,t.duplicateDefaultI18nFields=function(e,t){const{locales:n,defaultLocale:r}=m(e);return Object.fromEntries(n.filter((e=>e!==r)).map((e=>[e,{data:t}])))},t.duplicateI18nFields=function e(t,n,r,i,o=[n.get("name")]){const s=t.getIn(["entry","data",...o]);return n.get(d)===p.DUPLICATE&&r.filter((e=>e!==i)).forEach((e=>{t=t.setIn(["entry",...v(e,i),...o],s)})),n.has("field")&&!a.List.isList(s)?[n.get("field")].forEach((n=>{t=e(t,n,r,i,[...o,n.get("name")])})):n.has("fields")&&!a.List.isList(s)&&n.get("fields").toArray().forEach((n=>{t=e(t,n,r,i,[...o,n.get("name")])})),t},t.formatI18nBackup=function(e,t){return Object.entries(e).reduce(((e,[n,{raw:r}])=>{const i=t(r);return c(c({},e),{},{[n]:{data:i.data}})}),{})},t.getDataPath=v,t.getFilePath=y,t.getFilePaths=w,t.getI18nBackup=function(e,t,n){const{locales:r,defaultLocale:i}=m(e);return r.filter((e=>e!==i)).reduce(((e,r)=>{const o=v(r,i),a=t.getIn(o);if(!a)return e;const s=t.set("data",a);return c(c({},e),{},{[r]:{raw:n(s)}})}),{})},t.getI18nDataFiles=function(e,t,n,r,i){const{structure:o}=m(e);return o===f.SINGLE_FILE?i:w(e,t,n,r).reduce(((e,t)=>{const n=i.find((e=>e.path===t));return n?[...e,n]:[...e,{path:t,id:"",newFile:!1}]}),[])},t.getI18nEntry=async function(e,t,n,r,i){const{structure:o,locales:a,defaultLocale:s}=m(e);let l;if(o===f.SINGLE_FILE)l=k(await i(n),s,a);else{const u=(await Promise.all(a.map((async e=>{const a=y(o,t,n,r,e);return{value:await i(a).catch((()=>null)),locale:e}})))).filter((e=>null!==e.value));l=x(e,o,s,u)}return l},t.getI18nFiles=function(e,t,n,r,i,o,s){const{structure:l,defaultLocale:u,locales:d}=m(e);if(l===f.SINGLE_FILE){const e=d.reduce(((e,t)=>{const r=v(t,u);return e.set(t,n.getIn(r))}),(0,a.Map)({})),f=n.set("data",e);return[c({path:y(l,t,i,o,d[0]),slug:o,raw:r(f)},s&&{newPath:y(l,t,s,o,d[0])})]}return d.map((e=>{const a=v(e,u),d=n.set("data",n.getIn(a));return c({path:y(l,t,i,o,e),slug:o,raw:d.get("data")?r(d):""},s&&{newPath:y(l,t,s,o,e)})})).filter((e=>e.raw))},t.getI18nFilesDepth=function(e,t){const{structure:n}=m(e);return n===f.MULTIPLE_FOLDERS?t+1:t},t.getI18nInfo=m,t.getLocaleDataPath=g,t.getLocaleFromPath=b,t.getPreviewEntry=function(e,t,n){return t===n?e:e.set("data",e.getIn([d,t,"data"]))},t.groupEntries=function(e,t,n){const{structure:r,defaultLocale:o,locales:a}=m(e);if(r===f.SINGLE_FILE)return n.map((e=>k(e,o,a)));const s=(0,i.default)(n.map((e=>({locale:b(r,t,e.path),value:e}))),(({locale:e,value:t})=>_(r,t.path,e)));return Object.values(s).reduce(((t,n)=>[...t,x(e,r,o,n)]),[])},t.hasI18n=h,t.isFieldDuplicate=function(e,t,n){return t!==n&&e.get(d)===p.DUPLICATE},t.isFieldHidden=function(e,t,n){return t!==n&&e.get(d)===p.NONE},t.isFieldTranslatable=function(e,t,n){return t!==n&&e.get(d)===p.TRANSLATE},t.normalizeFilePath=_,t.serializeI18n=function(e,t,n){const{locales:r,defaultLocale:i}=m(e);return r.filter((e=>e!==i)).forEach((e=>{const r=g(e);t=t.setIn(r,n(t.getIn(r)))})),t};var r=l(n(89166)),i=l(n(3440)),o=l(n(16765)),a=n(46670),s=n(45624);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;ty(i,t,n,r,e)))}function _(e,t,n){switch(e){case f.MULTIPLE_FOLDERS:return t.replace(`${n}/`,"");case f.MULTIPLE_FILES:return t.replace(`.${n}`,"");case f.SINGLE_FILE:default:return t}}function x(e,t,n,r){let i=r.find((e=>e.locale===n));i||(i=r[0],console.warn(`Could not locale entry for default locale '${n}'`));const a=r.filter((e=>e.locale!==i.locale)).reduce(((e,{locale:t,value:n})=>{const r=g(t);return(0,o.default)(e,r,n.data)}),{}),l=_(t,i.value.path,n),u=(0,s.selectEntrySlug)(e,l);return c(c(c({},i.value),{},{raw:""},a),{},{path:l,slug:u})}function k(e,t,n){const r=e.data[t]||{},i=n.filter((e=>e!==t)).map((t=>({locale:t,value:e.data[t]}))).filter((e=>e.value)).reduce(((e,t)=>c(c({},e),{},{[t.locale]:{data:t.value}})),{});return c(c({},e),{},{data:r,i18n:i,raw:""})}},99187:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPhrases=function(e){return(0,i.default)({},(0,o.getLocale)("en"),(0,o.getLocale)(e))};var r,i=(r=n(98537))&&r.__esModule?r:{default:r},o=n(41891)},41891:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getBackend=P,t.getCustomFormats=U,t.getCustomFormatsExtensions=q,t.getCustomFormatsFormatters=W,t.getEditorComponents=E,t.getEventListeners=I,t.getFormatter=function(e){var t;return null===(t=h.formats[e])||void 0===t?void 0:t.formatter},t.getLocale=B,t.getMediaLibrary=D,t.getPreviewStyles=g,t.getPreviewTemplate=y,t.getRemarkPlugins=C,t.getWidget=w,t.getWidgetValueSerializer=O,t.getWidgets=_,t.invokeEvent=j,t.registerBackend=A,t.registerCustomFormat=z,t.registerEditorComponent=k,t.registerEventListener=L,t.registerLocale=F,t.registerMediaLibrary=R,t.registerPreviewStyle=m,t.registerPreviewTemplate=v,t.registerRemarkPlugin=S,t.registerWidget=b,t.registerWidgetValueSerializer=T,t.removeEventListener=N,t.resolveWidget=x;var r,i=n(46670),o=n(30412),a=n(13856),s=(r=n(57331))&&r.__esModule?r:{default:r};const l=["name","controlComponent","previewComponent","schema","allowMapValue","globalStyles"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t{p[e]=[]}));const h={backends:{},templates:{},previewStyles:[],widgets:{},editorComponents:(0,i.Map)(),remarkPlugins:[],widgetValueSerializers:{},mediaLibraries:[],locales:{},eventHandlers:p,formats:{}};function m(e,t){h.previewStyles.push(c(c({},t),{},{value:e}))}function g(){return h.previewStyles}function v(e,t){h.templates[e]=t}function y(e){return h.templates[e]}function b(e,t,n,r={}){if(Array.isArray(e))e.forEach((e=>{"object"!=typeof e?console.error(`Cannot register widget: ${e}`):b(e)}));else if("string"==typeof e){const i="string"==typeof t?h.widgets[t].control:t;h.widgets[e]={control:i,preview:n,schema:r}}else if("object"==typeof e){const{name:t,controlComponent:n,previewComponent:r,schema:i={},allowMapValue:o,globalStyles:s}=e,u=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,l);if(h.widgets[t]&&console.warn(a.oneLine` + `),s;throw e}return`${s}/${(0,r.default)(k," /")}`},t.slugFormatter=function(e,t,n){const r=e.get("slug")||"{{slug}}",i=t.getIn(b((0,u.selectIdentifier)(e)));if(!i)throw new Error("Collection must have a field name that is a valid entry identifier, or must have `identifier_field` set");const o=E(n),a=new Date,s=g(r,a,i,t,o);if(e.has("path")){const n=k(e.get("path"));return g(n,a,s,t,(e=>e===s?e:o(e)))}return s},t.summaryFormatter=function(e,t,n){let r=t.get("data");const i=v(t,(0,u.selectInferredField)(n,"date"))||null,o=r.getIn(b((0,u.selectIdentifier)(n)));return r=w(t.get("path"),r,n.get("folder")),t.get("author")&&!(0,u.selectField)(n,f.COMMIT_AUTHOR)&&(r=r.set(f.COMMIT_AUTHOR,t.get("author"))),t.get("updatedOn")&&!(0,u.selectField)(n,f.COMMIT_DATE)&&(r=r.set(f.COMMIT_DATE,t.get("updatedOn"))),g(e,i,o,r)};var r=p(n(93433)),i=p(n(1573)),o=p(n(26434)),a=p(n(85395)),s=n(1704),l=n(13856),u=n(45624),c=n(9904),d=n(48781),f=n(93492);function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;tt&&t.includes(n)?n:(0,a.default)([e=>String(e),k,(0,o.default)(c.sanitizeSlug,e)])(n)}},13943:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.I18N_STRUCTURE=t.I18N_FIELD=t.I18N=void 0,t.duplicateDefaultI18nFields=function(e,t){const{locales:n,defaultLocale:r}=m(e);return Object.fromEntries(n.filter((e=>e!==r)).map((e=>[e,{data:t}])))},t.duplicateI18nFields=function e(t,n,r,i,o=[n.get("name")]){const s=t.getIn(["entry","data",...o]);return n.get(d)===p.DUPLICATE&&r.filter((e=>e!==i)).forEach((e=>{t=t.setIn(["entry",...v(e,i),...o],s)})),n.has("field")&&!a.List.isList(s)?[n.get("field")].forEach((n=>{t=e(t,n,r,i,[...o,n.get("name")])})):n.has("fields")&&!a.List.isList(s)&&n.get("fields").toArray().forEach((n=>{t=e(t,n,r,i,[...o,n.get("name")])})),t},t.formatI18nBackup=function(e,t){return Object.entries(e).reduce(((e,[n,{raw:r}])=>{const i=t(r);return c(c({},e),{},{[n]:{data:i.data}})}),{})},t.getDataPath=v,t.getFilePath=y,t.getFilePaths=w,t.getI18nBackup=function(e,t,n){const{locales:r,defaultLocale:i}=m(e);return r.filter((e=>e!==i)).reduce(((e,r)=>{const o=v(r,i),a=t.getIn(o);if(!a)return e;const s=t.set("data",a);return c(c({},e),{},{[r]:{raw:n(s)}})}),{})},t.getI18nDataFiles=function(e,t,n,r,i){const{structure:o}=m(e);return o===f.SINGLE_FILE?i:w(e,t,n,r).reduce(((e,t)=>{const n=i.find((e=>e.path===t));return n?[...e,n]:[...e,{path:t,id:"",newFile:!1}]}),[])},t.getI18nEntry=async function(e,t,n,r,i){const{structure:o,locales:a,defaultLocale:s}=m(e);let l;if(o===f.SINGLE_FILE)l=k(await i(n),s,a);else{const u=(await Promise.all(a.map((async e=>{const a=y(o,t,n,r,e);return{value:await i(a).catch((()=>null)),locale:e}})))).filter((e=>null!==e.value));l=x(e,o,s,u)}return l},t.getI18nFiles=function(e,t,n,r,i,o,s){const{structure:l,defaultLocale:u,locales:d}=m(e);if(l===f.SINGLE_FILE){const e=d.reduce(((e,t)=>{const r=v(t,u);return e.set(t,n.getIn(r))}),(0,a.Map)({})),f=n.set("data",e);return[c({path:y(l,t,i,o,d[0]),slug:o,raw:r(f)},s&&{newPath:y(l,t,s,o,d[0])})]}return d.map((e=>{const a=v(e,u),d=n.set("data",n.getIn(a));return c({path:y(l,t,i,o,e),slug:o,raw:d.get("data")?r(d):""},s&&{newPath:y(l,t,s,o,e)})})).filter((e=>e.raw))},t.getI18nFilesDepth=function(e,t){const{structure:n}=m(e);return n===f.MULTIPLE_FOLDERS?t+1:t},t.getI18nInfo=m,t.getLocaleDataPath=g,t.getLocaleFromPath=b,t.getPreviewEntry=function(e,t,n){return t===n?e:e.set("data",e.getIn([d,t,"data"]))},t.groupEntries=function(e,t,n){const{structure:r,defaultLocale:o,locales:a}=m(e);if(r===f.SINGLE_FILE)return n.map((e=>k(e,o,a)));const s=(0,i.default)(n.map((e=>({locale:b(r,t,e.path),value:e}))),(({locale:e,value:t})=>_(r,t.path,e)));return Object.values(s).reduce(((t,n)=>[...t,x(e,r,o,n)]),[])},t.hasI18n=h,t.isFieldDuplicate=function(e,t,n){return t!==n&&e.get(d)===p.DUPLICATE},t.isFieldHidden=function(e,t,n){return t!==n&&e.get(d)===p.NONE},t.isFieldTranslatable=function(e,t,n){return t!==n&&e.get(d)===p.TRANSLATE},t.normalizeFilePath=_,t.serializeI18n=function(e,t,n){const{locales:r,defaultLocale:i}=m(e);return r.filter((e=>e!==i)).forEach((e=>{const r=g(e);t=t.setIn(r,n(t.getIn(r)))})),t};var r=l(n(89166)),i=l(n(3440)),o=l(n(16765)),a=n(46670),s=n(45624);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;ty(i,t,n,r,e)))}function _(e,t,n){switch(e){case f.MULTIPLE_FOLDERS:return t.replace(`${n}/`,"");case f.MULTIPLE_FILES:return t.replace(`.${n}`,"");case f.SINGLE_FILE:default:return t}}function x(e,t,n,r){let i=r.find((e=>e.locale===n));i||(i=r[0],console.warn(`Could not locale entry for default locale '${n}'`));const a=r.filter((e=>e.locale!==i.locale)).reduce(((e,{locale:t,value:n})=>{const r=g(t);return(0,o.default)(e,r,n.data)}),{}),l=_(t,i.value.path,n),u=(0,s.selectEntrySlug)(e,l);return c(c(c({},i.value),{},{raw:""},a),{},{path:l,slug:u})}function k(e,t,n){const r=e.data[t]||{},i=n.filter((e=>e!==t)).map((t=>({locale:t,value:e.data[t]}))).filter((e=>e.value)).reduce(((e,t)=>c(c({},e),{},{[t.locale]:{data:t.value}})),{});return c(c({},e),{},{data:r,i18n:i,raw:""})}},99187:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPhrases=function(e){return(0,i.default)({},(0,o.getLocale)("en"),(0,o.getLocale)(e))};var r,i=(r=n(98537))&&r.__esModule?r:{default:r},o=n(41891)},41891:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getBackend=P,t.getCustomFormats=U,t.getCustomFormatsExtensions=q,t.getCustomFormatsFormatters=W,t.getEditorComponents=E,t.getEventListeners=I,t.getFormatter=function(e){var t;return null===(t=h.formats[e])||void 0===t?void 0:t.formatter},t.getLocale=B,t.getMediaLibrary=D,t.getPreviewStyles=g,t.getPreviewTemplate=y,t.getRemarkPlugins=S,t.getWidget=w,t.getWidgetValueSerializer=T,t.getWidgets=_,t.invokeEvent=j,t.registerBackend=O,t.registerCustomFormat=z,t.registerEditorComponent=k,t.registerEventListener=L,t.registerLocale=F,t.registerMediaLibrary=R,t.registerPreviewStyle=m,t.registerPreviewTemplate=v,t.registerRemarkPlugin=C,t.registerWidget=b,t.registerWidgetValueSerializer=A,t.removeEventListener=N,t.resolveWidget=x;var r,i=n(46670),o=n(30412),a=n(13856),s=(r=n(57331))&&r.__esModule?r:{default:r};const l=["name","controlComponent","previewComponent","schema","allowMapValue","globalStyles"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t{p[e]=[]}));const h={backends:{},templates:{},previewStyles:[],widgets:{},editorComponents:(0,i.Map)(),remarkPlugins:[],widgetValueSerializers:{},mediaLibraries:[],locales:{},eventHandlers:p,formats:{}};function m(e,t){h.previewStyles.push(c(c({},t),{},{value:e}))}function g(){return h.previewStyles}function v(e,t){h.templates[e]=t}function y(e){return h.templates[e]}function b(e,t,n,r={}){if(Array.isArray(e))e.forEach((e=>{"object"!=typeof e?console.error(`Cannot register widget: ${e}`):b(e)}));else if("string"==typeof e){const i="string"==typeof t?h.widgets[t].control:t;h.widgets[e]={control:i,preview:n,schema:r}}else if("object"==typeof e){const{name:t,controlComponent:n,previewComponent:r,schema:i={},allowMapValue:o,globalStyles:s}=e,u=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,l);if(h.widgets[t]&&console.warn(a.oneLine` Multiple widgets registered with name "${t}". Only the last widget registered with this name will be used. `),!n)throw Error(`Widget "${t}" registered without \`controlComponent\`.`);h.widgets[t]=c({control:n,preview:r,schema:i,globalStyles:s,allowMapValue:o},u)}else console.error("`registerWidget` failed, called with incorrect arguments.")}function w(e){return h.widgets[e]}function _(){return(0,o.produce)(Object.entries(h.widgets),(e=>e.map((([e,t])=>c({name:e},t)))))}function x(e){return w(e||"string")||w("unknown")}function k(e){const t=(0,s.default)(e);if("code-block"===t.type){const e=h.editorComponents.find((e=>"code-block"===e.type));e&&(console.warn(a.oneLine` Only one editor component of type "code-block" may be registered. Previously registered code block component(s) will be overwritten. - `),h.editorComponents=h.editorComponents.delete(e.id))}h.editorComponents=h.editorComponents.set(t.id,t)}function E(){return h.editorComponents}function S(e){h.remarkPlugins.push(e)}function C(){return h.remarkPlugins}function T(e,t){h.widgetValueSerializers[e]=t}function O(e){return h.widgetValueSerializers[e]}function A(e,t){e&&t?h.backends[e]?console.error(`Backend [${e}] already registered. Please choose a different name.`):h.backends[e]={init:(...e)=>new t(...e)}:console.error("Backend parameters invalid. example: CMS.registerBackend('myBackend', BackendClass)")}function P(e){return h.backends[e]}function R(e,t){if(h.mediaLibraries.find((t=>e.name===t.name)))throw new Error(`A media library named ${e.name} has already been registered.`);h.mediaLibraries.push(c(c({},e),{},{options:t}))}function D(e){return h.mediaLibraries.find((t=>t.name===e))}function M(e){if(!f.includes(e))throw new Error(`Invalid event name '${e}'`)}function I(e){return M(e),[...h.eventHandlers[e]]}function L({name:e,handler:t},n={}){M(e),h.eventHandlers[e].push({handler:t,options:n})}async function j({name:e,data:t}){M(e);const n=h.eventHandlers[e];let r=c({},t);for(const{handler:e,options:i}of n){const n=await e(r,i);if(void 0!==n){const e=r.entry.set("data",n);r=c(c({},t),{},{entry:e})}}return r.entry.get("data")}function N({name:e,handler:t}){M(e),h.eventHandlers[e]=t?h.eventHandlers[e].filter((e=>e.handler!==t)):[]}function F(e,t){e&&t?h.locales[e]=t:console.error("Locale parameters invalid. example: CMS.registerLocale('locale', phrases)")}function B(e){return h.locales[e]}function z(e,t,n){h.formats[e]={extension:t,formatter:n}}function U(){return h.formats}function q(){return Object.entries(h.formats).reduce((function(e,[t,{extension:n}]){return c(c({},e),{},{[t]:n})}),{})}function W(){return Object.entries(h.formats).reduce((function(e,[t,{formatter:n}]){return c(c({},e),{},{[t]:n})}),{})}t.default={registerPreviewStyle:m,getPreviewStyles:g,registerPreviewTemplate:v,getPreviewTemplate:y,registerWidget:b,getWidget:w,getWidgets:_,resolveWidget:x,registerEditorComponent:k,getEditorComponents:E,registerRemarkPlugin:S,getRemarkPlugins:C,registerWidgetValueSerializer:T,getWidgetValueSerializer:O,registerBackend:A,getBackend:P,registerMediaLibrary:R,getMediaLibrary:D,registerLocale:F,getLocale:B,registerEventListener:L,removeEventListener:N,getEventListeners:I,invokeEvent:j,registerCustomFormat:z,getCustomFormats:U,getCustomFormatsExtensions:q,getCustomFormatsFormatters:W}},33188:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeValues=function(e,t){return s(e,t,"deserialize")},t.serializeValues=function(e,t){return s(e,t,"serialize")};var r,i=(r=n(1842))&&r.__esModule?r:{default:r},o=n(46670),a=n(41891);function s(e,t,n){let r=t.reduce(((t,r)=>{const l=r.get("name"),u=e.get(l),c=(0,a.getWidgetValueSerializer)(r.get("widget")),d=r.get("fields");return d&&o.List.isList(u)?t.set(l,u.map((e=>s(e,d,n)))):d&&o.Map.isMap(u)?t.set(l,s(u,d,n)):c&&!(0,i.default)(u)?t.set(l,c[n](u)):(0,i.default)(u)?t:t.set(l,u)}),(0,o.Map)());return r=e.mergeDeep(r),r}},9904:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addParams=function(e,t){const n=s.default.parse(e,!0);return n.query=p(p({},n.query),t),s.default.format(n)},t.getCharReplacer=b,t.getCollectionUrl=function(e,t){return h(`/collections/${e}`,t)},t.getNewEntryUrl=function(e,t){return h(`/collections/${e}/new`,t)},t.joinUrlPath=function(e,...t){return(0,l.default)(e,...t)},t.sanitizeChar=function(e,t){const{encoding:n="unicode",sanitize_replacement:r=""}=t||{};return b(n,r)(e)},t.sanitizeSlug=function(e,t){if(!(0,a.default)(e))throw new Error("The input slug must be a string.");const{encoding:n,clean_accents:s,sanitize_replacement:l}=t||{},d=(0,i.default)([...s?[u.default.remove]:[],(0,r.default)(w,{replacement:l,encoding:n}),(0,r.default)(c.default,{replacement:l})])(e),f=new RegExp(`(?:${(0,o.default)(l)})+`,"g"),p=new RegExp(`${(0,o.default)(l)}$`),h=new RegExp(`^${(0,o.default)(l)}`);return d.replace(f,l).replace(h,"").replace(p,"")},t.sanitizeURI=w,t.stripProtocol=function(e){const t=e.indexOf("//");return t>-1?e.slice(t+2):e};var r=d(n(26434)),i=d(n(85395)),o=d(n(89166)),a=d(n(85505)),s=d(n(883)),l=d(n(49705)),u=d(n(63449)),c=d(n(17826));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;tn(e)?e:t}function w(e,t){const{replacement:n="",encoding:r="unicode"}=t||{};if(!(0,a.default)(e))throw new Error("The input slug must be a string.");if(!(0,a.default)(n))throw new Error("`options.replacement` must be a string.");return Array.from(e).map(b(r,n)).join("")}},72649:(e,t,n)=>{"use strict";var r,i=(r=n(25291))&&r.__esModule?r:{default:r},o=n(41891),a=n(21837),s=n(54750),l=n(68104);function u(e){return a.store.dispatch((0,l.insertMedia)(e,void 0))}const c=(0,i.default)((async function(e,t){const n=(0,o.getMediaLibrary)(e);if(n){const e=await n.init({options:t,handleInsert:u});a.store.dispatch((0,l.createMediaLibrary)(e))}else{const t=new Error(`Missing external media library '${e}'. Please use 'registerMediaLibrary' to register it.`);a.store.dispatch((0,s.configFailed)(t))}}));a.store.subscribe((()=>{const e=a.store.getState();if(e){var t;const n=null===(t=e.config.media_library)||void 0===t?void 0:t.name;if(n&&!e.mediaLibrary.get("externalLibrary")){const t=e.config.media_library;c(n,t)}}}))},11449:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=t.default=void 0;var r=n(30412),i=n(76167);const o=t.defaultState={isFetching:!1,user:void 0,error:void 0},a=(0,r.produce)(((e,t)=>{switch(t.type){case i.AUTH_REQUEST:e.isFetching=!0;break;case i.AUTH_SUCCESS:e.user=t.payload;break;case i.AUTH_FAILURE:e.error=t.payload&&t.payload.toString();break;case i.AUTH_REQUEST_DONE:e.isFetching=!1;break;case i.LOGOUT:e.user=void 0,e.isFetching=!1}}),o);t.default=a},45624:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getFieldsNames=S,t.getFileFromSlug=x,t.selectAllowDeletion=function(e){return w[e.get("type")].allowDeletion(e)},t.selectAllowNewEntries=function(e){return w[e.get("type")].allowNewEntries(e)},t.selectDefaultSortableFields=function(e,t,n){let r=d.SORTABLE_FIELDS.map((r=>{const i=A(e,r);return!t.isGitBackend()||"author"!==r||i||n?i:c.COMMIT_AUTHOR})).filter(Boolean);return t.isGitBackend()&&!n&&(r=[c.COMMIT_DATE,...r]),r},t.selectEntryCollectionTitle=function(e,t){const n=e.get("summary");if(n)return(0,h.summaryFormatter)(n,t,e);if(e.get("type")==u.FILES){const n=E(e,t.get("slug"));if(n)return n}const r=t.get("data"),i=A(e,"title"),o=i&&r.getIn(y(i));return o||"title"===i?o:r.getIn(y("title"))},t.selectEntryPath=function(e,t){return w[e.get("type")].entryPath(e,t)},t.selectEntrySlug=function(e,t){return w[e.get("type")].entrySlug(e,t)},t.selectField=C,t.selectFields=function(e,t){return w[e.get("type")].fields(e,t)},t.selectFieldsComments=function(e,t){let n=[];e.has("folder")?n=e.get("fields").toArray():e.has("files")&&(n=e.get("files").find((e=>(null==e?void 0:e.get("name"))===t.get("slug"))).get("fields").toArray());const r={};return S(n).forEach((t=>{const n=C(e,t);null!=n&&n.has("comment")&&(r[t]=n.get("comment"))})),r},t.selectFieldsWithMediaFolders=k,t.selectFileEntryLabel=E,t.selectFolderEntryExtension=function(e){return w[u.FOLDER].entryExtension(e)},t.selectHasMetaPath=function(e){var t;return e.has("folder")&&e.get("type")===u.FOLDER&&e.has("meta")&&(null===(t=e.get("meta"))||void 0===t?void 0:t.has("path"))},t.selectIdentifier=O,t.selectInferredField=A,t.selectMediaFolders=function(e,t,n){const r=k(t,n.get("slug")).map((r=>(0,p.selectMediaFolder)(e,t,n,r)));return t.has("files")&&x(t,n.get("slug"))&&r.unshift((0,p.selectMediaFolder)(e,t,n,void 0)),t.has("media_folder")&&(t=t.delete("files"),r.unshift((0,p.selectMediaFolder)(e,t,n,void 0))),(0,o.Set)(r).toArray()},t.selectSortDataPath=function(e,t){return t===c.COMMIT_DATE?"updatedOn":t!==c.COMMIT_AUTHOR||C(e,t)?`data.${t}`:"author"},t.selectSortableFields=function(e,t){return e.get("sortable_fields").toArray().map((n=>{if(n===c.COMMIT_DATE)return{key:n,field:{name:n,label:t("collection.defaultFields.updatedOn.label")}};const r=C(e,n);return n!==c.COMMIT_AUTHOR||r?{key:n,field:null==r?void 0:r.toJS()}:{key:n,field:{name:n,label:t("collection.defaultFields.author.label")}}})).filter((e=>!!e.field)).map((e=>v(v({},e.field),{},{key:e.key})))},t.selectTemplateName=function(e,t){return w[e.get("type")].templateName(e,t)},t.selectViewFilters=function(e){return e.get("view_filters").toJS()},t.selectViewGroups=function(e){return e.get("view_groups").toJS()},t.traverseFields=T,t.updateFieldByKey=function(e,t,n){const r=C(e,t);if(!r)return e;let i=!1;return e.set("fields",T(e.get("fields",(0,o.List)()),(function(e){const t=e;return t===r?(i=!0,n(t)):t}),(()=>i)))};var r=m(n(89166)),i=m(n(72579)),o=n(46670),a=n(1704),s=m(n(54876)),l=n(54750),u=n(48781),c=n(93492),d=n(39010),f=n(85575),p=n(58308),h=n(59311);function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;te.get("fields"),entryPath(e,t){return`${e.get("folder").replace(/\/$/,"")}/${t}.${this.entryExtension(e)}`},entrySlug(e,t){var n;const i=e.get("folder").replace(/\/$/,"");return null===(n=t.split(i+"/").pop())||void 0===n?void 0:n.replace(new RegExp(`\\.${(0,r.default)(this.entryExtension(e))}$`),"")},allowNewEntries:e=>e.get("create"),allowDeletion:e=>e.get("delete",!0),templateName:e=>e.get("name")},[u.FILES]:{fileForEntry(e,t){const n=e.get("files");return n&&n.filter((e=>(null==e?void 0:e.get("name"))===t)).get(0)},fields(e,t){const n=this.fileForEntry(e,t);return n&&n.get("fields")},entryPath(e,t){const n=this.fileForEntry(e,t);return n&&n.get("file")},entrySlug(e,t){const n=e.get("files").filter((e=>(null==e?void 0:e.get("file"))===t)).get(0);return n&&n.get("name")},entryLabel(e,t){const n=this.fileForEntry(e,t);return n&&n.get("label")},allowNewEntries:()=>!1,allowDeletion:e=>e.get("delete",!1),templateName:(e,t)=>t}};function _(e){return e.reduce(((e,t)=>{if(t.has("media_folder")&&(e=[...e,t]),t.has("fields")){var n;const r=null===(n=t.get("fields"))||void 0===n?void 0:n.toArray();e=[...e,..._(r)]}else if(t.has("field")){const n=t.get("field");e=[...e,..._([n])]}else if(t.has("types")){var r;const n=null===(r=t.get("types"))||void 0===r?void 0:r.toArray();e=[...e,..._(n)]}return e}),[])}function x(e,t){var n;return null===(n=e.get("files"))||void 0===n?void 0:n.toArray().find((e=>e.get("name")===t))}function k(e,t){return e.has("folder")?_(e.get("fields").toArray()):e.has("files")?_((null===(n=x(e,t))||void 0===n?void 0:n.get("fields").toArray())||[]):[];var n}function E(e,t){return w[u.FILES].entryLabel(e,t)}function S(e,t=""){let n=e.map((e=>`${t}${e.get("name")}`));return e.forEach(((e,t)=>{if(e.has("fields")){var r;const i=null===(r=e.get("fields"))||void 0===r?void 0:r.toArray();n=[...n,...S(i,`${n[t]}.`)]}else if(e.has("field")){const r=e.get("field");n=[...n,...S([r],`${n[t]}.`)]}else if(e.has("types")){var i;const r=null===(i=e.get("types"))||void 0===i?void 0:i.toArray();n=[...n,...S(r,`${n[t]}.`)]}})),n}function C(e,t){const n=y(t);let r,i,a=e.get("fields",(0,o.List)()).toArray();for(;(r=n.shift())&&a;){var s,l,u,c,d;if(i=a.find((e=>e.get("name")===r)),null!==(s=i)&&void 0!==s&&s.has("fields"))a=null===(c=i)||void 0===c||null===(d=c.get("fields"))||void 0===d?void 0:d.toArray();else if(null!==(l=i)&&void 0!==l&&l.has("field")){var f;a=[null===(f=i)||void 0===f?void 0:f.get("field")]}else if(null!==(u=i)&&void 0!==u&&u.has("types")){var p,h;a=null===(p=i)||void 0===p||null===(h=p.get("types"))||void 0===h?void 0:h.toArray()}}return i}function T(e,t,n=(()=>!1)){return n()?e:e=e.map((e=>{const r=t(e);return n()?r:r.has("fields")?r.set("fields",T(r.get("fields"),t,n)):r.has("field")?r.set("field",T((0,o.List)([r.get("field")]),t,n).get(0)):r.has("types")?r.set("types",T(r.get("types"),t,n)):r})).toList()}function O(e){const t=e.get("identifier_field"),n=t?[t,...d.IDENTIFIER_FIELDS]:[...d.IDENTIFIER_FIELDS],r=S(e.get("fields",(0,o.List)()).toArray());return n.find((e=>r.find((t=>t.toLowerCase().trim()===e.toLowerCase().trim()))))}function A(e,t){if("title"===t&&e.get("identifier_field"))return O(e);const n=d.INFERABLE_FIELDS[t],r=e.get("fields");let i;if(!r||!n)return null;const o=r.filter((e=>(null==e?void 0:e.get("widget","string"))===n.type)).map((e=>null==e?void 0:e.get("name")));return i=o.filter((e=>-1!==n.synonyms.indexOf(e))),i&&i.size>0?i.first():(i=r.filter((e=>-1!==n.secondaryTypes.indexOf(null==e?void 0:e.get("widget","string")))).map((e=>null==e?void 0:e.get("name"))).filter((e=>-1!==n.synonyms.indexOf(e))),i&&i.size>0?i.first():n.fallbackToFirstField&&o.size>0?o.first():(n.showError&&(0,s.default)(`The Field ${t} is missing for the collection “${e.get("name")}”`,`Decap CMS tries to infer the entry ${t} automatically, but one couldn't be found for entries of the collection “${e.get("name")}”. Please check your site configuration.`),null))}t.default=function(e=b,t){if(t.type===l.CONFIG_SUCCESS){const e=t.payload.collections;let n=(0,o.OrderedMap)({});return e.forEach((e=>{n=n.set(e.name,(0,o.fromJS)(e))})),n}return e}},16797:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(74081),o=(r=n(36642))&&r.__esModule?r:{default:r};function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){return(0,i.combineReducers)(function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectLocale=function(e){return e.locale||"en"},t.selectUseWorkflow=function(e){return e.publish_mode===o.EDITORIAL_WORKFLOW};var r=n(30412),i=n(54750),o=n(61928);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t{switch(t.type){case i.CONFIG_REQUEST:e.isFetching=!0;break;case i.CONFIG_SUCCESS:return s(s({},t.payload),{},{isFetching:!1,error:void 0});case i.CONFIG_FAILURE:e.isFetching=!1,e.error=t.payload.toString()}}),{isFetching:!0});t.default=l},63647:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectCollectionEntriesCursor=function(e,t){return new i.Cursor(e.getIn(["cursorsByType","collectionEntries",t]))};var r=n(46670),i=n(33806),o=n(50236);t.default=function(e=(0,r.fromJS)({cursorsByType:{collectionEntries:{}}}),t){switch(t.type){case o.ENTRIES_SUCCESS:return e.setIn(["cursorsByType","collectionEntries",t.payload.collection],i.Cursor.create(t.payload.cursor).store);case o.FILTER_ENTRIES_SUCCESS:case o.GROUP_ENTRIES_SUCCESS:case o.SORT_ENTRIES_SUCCESS:return e.deleteIn(["cursorsByType","collectionEntries",t.payload.collection]);default:return e}}},54989:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectDeployPreview=function(e,t,n){return e[`${t}.${n}`]};var r=n(30412),i=n(66145);const o=(0,r.produce)(((e,t)=>{switch(t.type){case i.DEPLOY_PREVIEW_REQUEST:{const{collection:n,slug:r}=t.payload,i=`${n}.${r}`;e[i]=e[i]||{},e[i].isFetching=!0;break}case i.DEPLOY_PREVIEW_SUCCESS:{const{collection:n,slug:r,url:i,status:o}=t.payload,a=`${n}.${r}`;e[a].isFetching=!1,e[a].url=i,e[a].status=o;break}case i.DEPLOY_PREVIEW_FAILURE:{const{collection:n,slug:r}=t.payload;e[`${n}.${r}`].isFetching=!1;break}}}),{});t.default=o},94778:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectUnpublishedEntriesByStatus=function(e,t){return e?e.get("entities").filter((e=>e.get("status")===t)).valueSeq():null},t.selectUnpublishedEntry=function(e,t,n){return e&&e.getIn(["entities",`${t}.${n}`])},t.selectUnpublishedSlugs=function(e,t){return e.get("entities")?e.get("entities").filter(((e,n)=>(0,i.default)(n,`${t}.`))).map((e=>e.get("slug"))).valueSeq():null};var r,i=(r=n(37994))&&r.__esModule?r:{default:r},o=n(46670),a=n(61928),s=n(91358),l=n(54750);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t{t.payload.entries.forEach((t=>e.setIn(["entities",`${t.collection}.${t.slug}`],(0,o.fromJS)(t).set("isFetching",!1)))),e.set("pages",(0,o.Map)(c(c({},t.payload.pages),{},{ids:(0,o.List)(t.payload.entries.map((e=>e.slug)))})))}));case s.UNPUBLISHED_ENTRY_PERSIST_REQUEST:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isPersisting"],!0);case s.UNPUBLISHED_ENTRY_PERSIST_SUCCESS:return e.withMutations((e=>{e.setIn(["entities",`${t.payload.collection}.${t.payload.entry.get("slug")}`],(0,o.fromJS)(t.payload.entry)),e.deleteIn(["entities",`${t.payload.collection}.${t.payload.entry.get("slug")}`,"isPersisting"]),e.updateIn(["pages","ids"],(0,o.List)(),(e=>e.push(t.payload.entry.get("slug"))))}));case s.UNPUBLISHED_ENTRY_PERSIST_FAILURE:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isPersisting"],!1);case s.UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isUpdatingStatus"],!0);case s.UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS:return e.withMutations((e=>{e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"status"],t.payload.newStatus),e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isUpdatingStatus"],!1)}));case s.UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isUpdatingStatus"],!1);case s.UNPUBLISHED_ENTRY_PUBLISH_REQUEST:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isPublishing"],!0);case s.UNPUBLISHED_ENTRY_PUBLISH_SUCCESS:case s.UNPUBLISHED_ENTRY_DELETE_SUCCESS:return e.deleteIn(["entities",`${t.payload.collection}.${t.payload.slug}`]);case s.UNPUBLISHED_ENTRY_PUBLISH_FAILURE:default:return e}}},58308:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectEditingDraft=function(e){const t=e.get("entry");return t&&!t.isEmpty()},t.selectEntries=function(e,t){const n=t.get("name");let r=q(e,n);const o=F(e,n);if(o&&o.length>0){const e=o.map((e=>(0,m.selectSortDataPath)(t,e.get("key")))),n=o.map((e=>e.get("direction")===p.SortDirection.Ascending?"asc":"desc"));r=(0,u.fromJS)((0,i.default)(r.toJS(),e,n))}const a=B(e,n);return a&&a.length>0&&(r=r.filter((e=>a.every((t=>{const n=t.get("pattern"),r=t.get("field"),i=(e.get("data")||(0,u.Map)()).getIn(k(r));return void 0!==i&&new RegExp(String(n)).test(String(i))})))).toList()),r},t.selectEntriesFilter=L,t.selectEntriesFilterFields=B,t.selectEntriesGroup=j,t.selectEntriesGroupField=N,t.selectEntriesLoaded=function(e,t){return!!e.getIn(["pages",t])},t.selectEntriesSort=I,t.selectEntriesSortFields=F,t.selectEntry=z,t.selectEntryByPath=function(e,t,n){const r=U(e,t),i=r&&r.map((n=>z(e,t,n)));return i&&i.find((e=>(null==e?void 0:e.get("path"))===n))},t.selectGroups=function(e,t){const n=t.get("name"),i=q(e,n),o=N(e,n);if(void 0===o)return[];let a={};const s=(0,r.default)(i.toArray(),(e=>{const t=function(e,t){const n=t.get("label"),r=t.get("field"),i=e.getIn(["data",...k(r)]);if(void 0===i)return{id:"missing_value",label:n,value:i};const o=String(i);if(t.has("pattern")){const e=t.get("pattern");let i="";try{const t=new RegExp(e),n=o.match(t);n&&(i=n[0])}catch(t){console.warn(`Invalid view group pattern '${e}' for field '${r}'`,t)}return{id:`${n}${i}`,label:n,value:i}}return{id:`${n}${i}`,label:n,value:"boolean"==typeof i?i:o}}(e,o);return a=x(x({},a),{},{[t.id]:t}),t.id})),l=Object.entries(s).map((([e,t])=>x(x({},a[e]),{},{paths:(0,u.Set)(t.map((e=>e.get("path"))))})));return l},t.selectIsFetching=function(e,t){return e.getIn(["pages",t,"isFetching"],!1)},t.selectMediaFilePath=function(e,t,n,r,i){if((0,d.isAbsolutePath)(r))return r;const o=K(e,t,n,i);return(0,c.join)(o,(0,d.basename)(r))},t.selectMediaFilePublicPath=function(e,t,n,r,i){if((0,d.isAbsolutePath)(n))return n;const o="public_folder";let a=e[o];return H(o,t,null==r?void 0:r.get("slug"),i)&&(a=G(o,e,t,r,i)),(0,d.isAbsolutePath)(a)?(0,b.joinUrlPath)(a,(0,d.basename)(n)):(0,c.join)(a,(0,d.basename)(n))},t.selectMediaFolder=K,t.selectPublishedSlugs=U,t.selectViewStyle=function(e){return e.get("viewStyle")};var r=w(n(3440)),i=w(n(34498)),o=w(n(16765)),a=w(n(829)),s=w(n(25291)),l=w(n(5648)),u=n(46670),c=n(21023),d=n(33806),f=n(1704),p=n(67964),h=n(59311),m=n(45624),g=n(15207),v=n(50236),y=n(78882),b=n(9904);function w(e){return e&&e.__esModule?e:{default:e}}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t{const e=localStorage.getItem(A);if(e)try{const t=JSON.parse(e);let n=(0,u.Map)();return Object.entries(t).forEach((([e,t])=>{let r=(0,u.OrderedMap)();(0,a.default)(Object.values(t),["index"]).forEach((e=>{const{key:t,direction:n}=e;r=r.set(t,(0,u.fromJS)({key:t,direction:n}))})),n=n.set(e,r)})),n}catch(e){return(0,u.Map)()}return(0,u.Map)()}));function D(e){if(e){const t={};e.keySeq().forEach((n=>{const r=n;e.get(r).valueSeq().toJS().map(((e,t)=>x(x({},e),{},{index:t}))).forEach((e=>{(0,o.default)(t,[r,e.key],e)}))})),localStorage.setItem(A,JSON.stringify(t))}else localStorage.removeItem(A)}const M=(0,s.default)((()=>localStorage.getItem(P)||(localStorage.setItem(P,y.VIEW_STYLE_LIST),y.VIEW_STYLE_LIST)));function I(e,t){const n=e.get("sort");return null==n?void 0:n.get(t)}function L(e,t){const n=e.get("filter");return(null==n?void 0:n.get(t))||(0,u.Map)()}function j(e,t){const n=e.get("group");return(null==n?void 0:n.get(t))||(0,u.Map)()}function N(e,t){const n=j(e,t);return null==n?void 0:n.valueSeq().find((e=>!0===(null==e?void 0:e.get("active"))))}function F(e,t){const n=I(e,t);return(null==n?void 0:n.valueSeq().filter((e=>(null==e?void 0:e.get("direction"))!==p.SortDirection.None)).toArray())||[]}function B(e,t){const n=L(e,t);return(null==n?void 0:n.valueSeq().filter((e=>!0===(null==e?void 0:e.get("active")))).toArray())||[]}function z(e,t,n){return e.getIn(["entities",`${t}.${n}`])}function U(e,t){return e.getIn(["pages",t,"ids"],(0,u.List)())}function q(e,t){const n=U(e,t);return n&&n.map((n=>z(e,t,n)))}const W="DRAFT_MEDIA_FILES";function $(e,t){return e.find((e=>(null==e?void 0:e.get("name"))===t))}function H(e,t,n,r){if(!t)return!1;if(r&&r.has(e))return!0;if(t.has("files")){const r=$(t.get("files"),n);if(r&&r.has(e))return!0}return!!t.has(e)}function V(e,t,n,r,i,o,a){const s=o.filter((e=>e===i))[0];if(s)return(0,h.folderFormatter)(s.has(e)?s.get(e):`{{${e}}}`,r,n,a,e,t.slug);for(let s of o){s.has(e)||(s=s.set(e,`{{${e}}}`));const o=(0,h.folderFormatter)(s.get(e),r,n,a,e,t.slug);let l=null;if(s.has("fields")?l=V(e,t,n,r,i,s.get("fields").toArray(),o):s.has("field")?l=V(e,t,n,r,i,[s.get("field")],o):s.has("types")&&(l=V(e,t,n,r,i,s.get("types").toArray(),o)),null!=l)return l}return null}function G(e,t,n,r,i){let o=t[e];if(n.has(e)||(n=n.set(e,`{{${e}}}`)),n.has("files")){o=(0,h.folderFormatter)(n.get(e),r,n,o,e,t.slug);let a=$(n.get("files"),null==r?void 0:r.get("slug"));if(a&&(a.has(e)||(a=a.set(e,`{{${e}}}`)),o=(0,h.folderFormatter)(a.get(e),r,n,o,e,t.slug),i)){const s=V(e,t,n,r,i,a.get("fields").toArray(),o);null!==s&&(o=s)}}else if(o=(0,h.folderFormatter)(n.get(e),r,n,o,e,t.slug),i){const a=V(e,t,n,r,i,n.get("fields").toArray(),o);null!==a&&(o=a)}return o}function K(e,t,n,r){const i="media_folder";let o=e[i];if(H(i,t,null==n?void 0:n.get("slug"),r)){const a=G(i,e,t,n,r);if(a.startsWith("/"))o=(0,c.join)(a);else{const e=null==n?void 0:n.get("path");o=e?(0,c.join)((0,c.dirname)(e),a):(0,c.join)(t.get("folder"),W)}}return(0,l.default)(o,"/")}t.default=function(e=(0,u.Map)({entities:(0,u.Map)(),pages:(0,u.Map)(),sort:R(),viewStyle:M()}),t){switch(t.type){case v.ENTRY_REQUEST:{const n=t.payload;return e.setIn(["entities",`${n.collection}.${n.slug}`,"isFetching"],!0)}case v.ENTRY_SUCCESS:{const n=t.payload;return E=n.collection,O=n.entry.slug,e.withMutations((e=>{e.setIn(["entities",`${E}.${O}`],(0,u.fromJS)(n.entry));const t=e.getIn(["pages",E,"ids"],(0,u.List)());t.includes(O)||e.setIn(["pages",E,"ids"],t.unshift(O))}))}case v.ENTRIES_REQUEST:{const n=t.payload;return e.withMutations((e=>{e.setIn(["pages",n.collection,"isFetching"],!0)}))}case v.ENTRIES_SUCCESS:{const n=t.payload;return E=n.collection,S=n.entries,C=n.append,T=n.page,e.withMutations((e=>{S.forEach((t=>e.setIn(["entities",`${E}.${t.slug}`],(0,u.fromJS)(t).set("isFetching",!1))));const t=(0,u.List)(S.map((e=>e.slug)));e.setIn(["pages",E],(0,u.Map)({page:T,ids:C?e.getIn(["pages",E,"ids"],(0,u.List)()).concat(t):t}))}))}case v.ENTRIES_FAILURE:return e.setIn(["pages",t.meta.collection,"isFetching"],!1);case v.ENTRY_FAILURE:{const n=t.payload;return e.withMutations((e=>{e.setIn(["entities",`${n.collection}.${n.slug}`,"isFetching"],!1),e.setIn(["entities",`${n.collection}.${n.slug}`,"error"],n.error.message)}))}case g.SEARCH_ENTRIES_SUCCESS:{const n=t.payload;return S=n.entries,e.withMutations((e=>{S.forEach((t=>e.setIn(["entities",`${t.collection}.${t.slug}`],(0,u.fromJS)(t).set("isFetching",!1))))}))}case v.ENTRY_DELETE_SUCCESS:{const n=t.payload;return e.withMutations((e=>{e.deleteIn(["entities",`${n.collectionName}.${n.entrySlug}`]),e.updateIn(["pages",n.collectionName,"ids"],(e=>e.filter((e=>e!==n.entrySlug))))}))}case v.SORT_ENTRIES_REQUEST:{const n=t.payload,{collection:r,key:i,direction:o}=n,a=e.withMutations((e=>{const t=(0,u.OrderedMap)({[i]:(0,u.Map)({key:i,direction:o})});e.setIn(["sort",r],t),e.setIn(["pages",r,"isFetching"],!0),e.deleteIn(["pages",r,"page"])}));return D(a.get("sort")),a}case v.GROUP_ENTRIES_SUCCESS:case v.FILTER_ENTRIES_SUCCESS:case v.SORT_ENTRIES_SUCCESS:{const n=t.payload,{collection:r,entries:i}=n;return S=i,e.withMutations((e=>{S.forEach((t=>e.setIn(["entities",`${t.collection}.${t.slug}`],(0,u.fromJS)(t).set("isFetching",!1)))),e.setIn(["pages",r,"isFetching"],!1);const t=(0,u.List)(S.map((e=>e.slug)));e.setIn(["pages",r],(0,u.Map)({page:1,ids:t}))}))}case v.SORT_ENTRIES_FAILURE:{const n=t.payload,{collection:r,key:i}=n,o=e.withMutations((e=>{e.deleteIn(["sort",r,i]),e.setIn(["pages",r,"isFetching"],!1)}));return D(o.get("sort")),o}case v.FILTER_ENTRIES_REQUEST:{const n=t.payload,{collection:r,filter:i}=n;return e.withMutations((e=>{const t=e.getIn(["filter",r,i.id],(0,u.fromJS)(i));e.setIn(["filter",r,t.get("id")],t.set("active",!t.get("active")))}))}case v.FILTER_ENTRIES_FAILURE:{const n=t.payload,{collection:r,filter:i}=n;return e.withMutations((e=>{e.deleteIn(["filter",r,i.id]),e.setIn(["pages",r,"isFetching"],!1)}))}case v.GROUP_ENTRIES_REQUEST:{const n=t.payload,{collection:r,group:i}=n;return e.withMutations((e=>{const t=e.getIn(["group",r,i.id],(0,u.fromJS)(i));e.deleteIn(["group",r]),e.setIn(["group",r,t.get("id")],t.set("active",!t.get("active")))}))}case v.GROUP_ENTRIES_FAILURE:{const n=t.payload,{collection:r,group:i}=n;return e.withMutations((e=>{e.deleteIn(["group",r,i.id]),e.setIn(["pages",r,"isFetching"],!1)}))}case v.CHANGE_VIEW_STYLE:{const r=t.payload,{style:i}=r,o=e.withMutations((e=>{e.setIn(["viewStyle"],i)}));return(n=o.get("viewStyle"))?localStorage.setItem(P,n):localStorage.removeItem(P),o}default:return e}var n}},51748:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectCustomPath=function(e,t){if(!(0,c.selectHasMetaPath)(e))return;const n=t.getIn(["entry","meta"]),r=n&&n.get("path"),o=(0,i.default)(e.toJS(),["meta","path","index_file"]),a=(0,c.selectFolderEntryExtension)(e);return r&&(0,s.join)(e.get("folder"),r,`${o}.${a}`)};var r,i=(r=n(72579))&&r.__esModule?r:{default:r},o=n(46670),a=n(29987),s=n(21023),l=n(50236),u=n(91358),c=n(45624),d=n(13943);const f=(0,o.Map)({entry:(0,o.Map)(),fieldsMetaData:(0,o.Map)(),fieldsErrors:(0,o.Map)(),hasChanged:!1,key:""});t.default=function(e=(0,o.Map)(),t){switch(t.type){case l.DRAFT_CREATE_FROM_ENTRY:return e.withMutations((e=>{e.set("entry",(0,o.fromJS)(t.payload.entry)),e.setIn(["entry","newRecord"],!1),e.set("fieldsMetaData",(0,o.Map)()),e.set("fieldsErrors",(0,o.Map)()),e.set("hasChanged",!1),e.set("key",(0,a.v4)())}));case l.DRAFT_CREATE_EMPTY:return e.withMutations((e=>{e.set("entry",(0,o.fromJS)(t.payload)),e.setIn(["entry","newRecord"],!0),e.set("fieldsMetaData",(0,o.Map)()),e.set("fieldsErrors",(0,o.Map)()),e.set("hasChanged",!1),e.set("key",(0,a.v4)())}));case l.DRAFT_CREATE_FROM_LOCAL_BACKUP:return e.withMutations((e=>{const t=e.get("localBackup").get("entry");e.delete("localBackup"),e.set("entry",t),e.setIn(["entry","newRecord"],!t.get("path")),e.set("fieldsMetaData",(0,o.Map)()),e.set("fieldsErrors",(0,o.Map)()),e.set("hasChanged",!0),e.set("key",(0,a.v4)())}));case l.DRAFT_CREATE_DUPLICATE_FROM_ENTRY:return e.withMutations((e=>{e.set("entry",(0,o.fromJS)(t.payload)),e.setIn(["entry","newRecord"],!0),e.set("mediaFiles",(0,o.List)()),e.set("fieldsMetaData",(0,o.Map)()),e.set("fieldsErrors",(0,o.Map)()),e.set("hasChanged",!0)}));case l.DRAFT_DISCARD:return f;case l.DRAFT_LOCAL_BACKUP_RETRIEVED:{const{entry:n}=t.payload,r=new o.Map({entry:(0,o.fromJS)(n)});return e.set("localBackup",r)}case l.DRAFT_CHANGE_FIELD:return e.withMutations((e=>{const{field:n,value:r,metadata:i,entries:a,i18n:s}=t.payload,l=n.get("name"),u=n.get("meta"),c=s&&(0,d.getDataPath)(s.currentLocale,s.defaultLocale)||["data"];u?e.setIn(["entry","meta",l],r):(e.setIn(["entry",...c,l],r),s&&(e=(0,d.duplicateI18nFields)(e,n,s.locales,s.defaultLocale))),e.mergeDeepIn(["fieldsMetaData"],(0,o.fromJS)(i));const f=e.getIn(["entry",...c]),p=e.getIn(["entry","meta"]);e.set("hasChanged",!a.some((e=>f.equals(e.get(...c))))||!a.some((e=>p.equals(e.get("meta")))))}));case l.DRAFT_VALIDATION_ERRORS:return 0===t.payload.errors.length?e.deleteIn(["fieldsErrors",t.payload.uniquefieldId]):e.setIn(["fieldsErrors",t.payload.uniquefieldId],t.payload.errors);case l.DRAFT_CLEAR_ERRORS:return e.set("fieldsErrors",(0,o.Map)());case l.ENTRY_PERSIST_REQUEST:case u.UNPUBLISHED_ENTRY_PERSIST_REQUEST:return e.setIn(["entry","isPersisting"],!0);case l.ENTRY_PERSIST_FAILURE:case u.UNPUBLISHED_ENTRY_PERSIST_FAILURE:return e.deleteIn(["entry","isPersisting"]);case u.UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST:return e.setIn(["entry","isUpdatingStatus"],!0);case u.UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE:case u.UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS:return e.deleteIn(["entry","isUpdatingStatus"]);case u.UNPUBLISHED_ENTRY_PUBLISH_REQUEST:return e.setIn(["entry","isPublishing"],!0);case u.UNPUBLISHED_ENTRY_PUBLISH_SUCCESS:case u.UNPUBLISHED_ENTRY_PUBLISH_FAILURE:return e.deleteIn(["entry","isPublishing"]);case l.ENTRY_PERSIST_SUCCESS:case u.UNPUBLISHED_ENTRY_PERSIST_SUCCESS:return e.withMutations((e=>{e.deleteIn(["entry","isPersisting"]),e.set("hasChanged",!1),e.getIn(["entry","slug"])||e.setIn(["entry","slug"],t.payload.slug)}));case l.ENTRY_DELETE_SUCCESS:return e.withMutations((e=>{e.deleteIn(["entry","isPersisting"]),e.set("hasChanged",!1)}));case l.ADD_DRAFT_ENTRY_MEDIA_FILE:return e.withMutations((e=>{const n=e.getIn(["entry","mediaFiles"]);e.setIn(["entry","mediaFiles"],n.filterNot((e=>e.get("id")===t.payload.id)).insert(0,(0,o.fromJS)(t.payload))),e.set("hasChanged",!0)}));case l.REMOVE_DRAFT_ENTRY_MEDIA_FILE:return e.withMutations((e=>{const n=e.getIn(["entry","mediaFiles"]);e.setIn(["entry","mediaFiles"],n.filterNot((e=>e.get("id")===t.payload.id))),e.set("hasChanged",!0)}));default:return e}}},3661:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(30412),i=n(76167);const o=["DEPLOY_PREVIEW","STATUS_REQUEST","STATUS_SUCCESS","STATUS_FAILURE"];function a(e){return o.some((t=>e.type.includes(t)))}const s=(0,r.produce)(((e,t)=>{!a(t)&&t.type.includes("REQUEST")?e.isFetching=!0:a(t)||!t.type.includes("SUCCESS")&&!t.type.includes("FAILURE")?t.type===i.USE_OPEN_AUTHORING&&(e.useOpenAuthoring=!0):e.isFetching=!1}),{isFetching:!1,useOpenAuthoring:!1});t.default=s},36642:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectDeployPreview=function(e,t,n){return b.selectDeployPreview(e.deploys,t,n)},t.selectEntries=function(e,t){return u.selectEntries(e.entries,t)},t.selectEntry=function(e,t,n){return u.selectEntry(e.entries,t,n)},t.selectIntegration=function(e,t,n){return s.selectIntegration(e.integrations,t,n)},t.selectPublishedSlugs=function(e,t){return u.selectPublishedSlugs(e.entries,t)},t.selectSearchedEntries=function(e,t){return(0,r.List)(e.search.entryIds).filter((e=>-1!==t.indexOf(e.collection))).map((t=>u.selectEntry(e.entries,t.collection,t.slug)))},t.selectUnpublishedEntriesByStatus=function(e,t){return f.selectUnpublishedEntriesByStatus(e.editorialWorkflow,t)},t.selectUnpublishedEntry=function(e,t,n){return f.selectUnpublishedEntry(e.editorialWorkflow,t,n)},t.selectUnpublishedSlugs=function(e,t){return f.selectUnpublishedSlugs(e.editorialWorkflow,t)};var r=n(46670),i=S(n(11449)),o=S(n(23260)),a=E(n(487)),s=a,l=E(n(58308)),u=l,c=S(n(63647)),d=E(n(94778)),f=d,p=S(n(51748)),h=S(n(45624)),m=S(n(56863)),g=S(n(33474)),v=S(n(90694)),y=E(n(54989)),b=y,w=S(n(3661)),_=S(n(18259)),x=S(n(85594));function k(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(k=function(e){return e?n:t})(e)}function E(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=k(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function S(e){return e&&e.__esModule?e:{default:e}}const C={auth:i.default,config:o.default,collections:h.default,search:m.default,integrations:a.default,entries:l.default,cursors:c.default,editorialWorkflow:d.default,entryDraft:p.default,medias:g.default,mediaLibrary:v.default,deploys:y.default,globalUI:w.default,status:_.default,notifications:x.default};t.default=C},487:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getIntegrations=s,t.selectIntegration=function(e,t,n){return t?e.getIn(["hooks",t,n],!1):e.getIn(["hooks",n],!1)};var r=n(46670),i=n(54750);const o=["hooks","collections","provider"];function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){const t=(e.integrations||[]).reduce(((t,n)=>{const{hooks:r,collections:i,provider:s}=n,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,o);return t.providers[s]=function(e){for(var t=1;te.name)):i).forEach((e=>{r.forEach((n=>{t.hooks[e]?t.hooks[e][n]=s:t.hooks[e]={[n]:s}}))})),t):(r.forEach((e=>{t.hooks[e]=s})),t)}),{providers:{},hooks:{}});return(0,r.fromJS)(t)}const l=(0,r.fromJS)({providers:{},hooks:{}});t.default=function(e=l,t){return t.type===i.CONFIG_SUCCESS?s(t.payload):e}},90694:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectMediaDisplayURL=function(e,t){return e.mediaLibrary.getIn(["displayURLs",t],(0,r.Map)())},t.selectMediaFileByPath=function(e,t){return f(e).find((e=>e.path===t))},t.selectMediaFiles=f;var r=n(46670),i=n(29987),o=n(21023),a=n(68104),s=n(58308),l=n(36642);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t(0,o.dirname)(e.path)===u)).map((e=>c({key:e.id},e)))}else d=n.get("files")||[];return d}t.default=function(e=(0,r.Map)(d),t){switch(t.type){case a.MEDIA_LIBRARY_CREATE:return e.withMutations((e=>{e.set("externalLibrary",t.payload),e.set("showMediaButton",t.payload.enableStandalone())}));case a.MEDIA_LIBRARY_OPEN:{const{controlID:n,forImage:i,privateUpload:o,config:a,field:s,value:l,replaceIndex:u}=t.payload,c=a||(0,r.Map)();return e.get("privateUpload")!==o?(0,r.Map)({isVisible:!0,forImage:i,controlID:n,canInsert:!!n,privateUpload:o,config:c,controlMedia:(0,r.Map)(),displayURLs:(0,r.Map)(),field:s,value:l,replaceIndex:u}):e.withMutations((e=>{e.set("isVisible",!0),e.set("forImage",null!=i&&i),e.set("controlID",null!=n?n:""),e.set("canInsert",!!n),e.set("privateUpload",o),e.set("config",c),e.set("field",null!=s?s:""),e.set("value",""==l&&c.get("multiple")?[]:null!=l?l:""),e.set("replaceIndex",null!=u&&u)}))}case a.MEDIA_LIBRARY_CLOSE:return e.set("isVisible",!1);case a.MEDIA_INSERT:{const{mediaPath:n}=t.payload,r=e.get("controlID"),i=e.get("value");if(!Array.isArray(i))return e.withMutations((e=>{e.setIn(["controlMedia",r],n)}));const o=e.get("replaceIndex"),a=Array.isArray(n)?n:[n],s=i;return"number"==typeof o?s[o]=a[0]:s.push(...a),e.withMutations((e=>{e.setIn(["controlMedia",r],s)}))}case a.MEDIA_REMOVE_INSERTED:{const n=t.payload.controlID;return e.setIn(["controlMedia",n],"")}case a.MEDIA_LOAD_REQUEST:return e.withMutations((e=>{e.set("isLoading",!0),e.set("isPaginating",t.payload.page>1)}));case a.MEDIA_LOAD_SUCCESS:{const{files:n=[],page:r,canPaginate:o,dynamicSearch:a,dynamicSearchQuery:s,privateUpload:l}=t.payload;if(e.get("privateUpload")!==l)return e;const u=n.map((e=>c(c({},e),{},{key:(0,i.v4)()})));return e.withMutations((e=>{if(e.set("isLoading",!1),e.set("isPaginating",!1),e.set("page",null!=r?r:1),e.set("hasNextPage",!!(o&&n.length>0)),e.set("dynamicSearch",null!=a&&a),e.set("dynamicSearchQuery",null!=s?s:""),e.set("dynamicSearchActive",!!s),r&&r>1){const t=e.get("files").concat(u);e.set("files",t)}else e.set("files",u)}))}case a.MEDIA_LOAD_FAILURE:return e.get("privateUpload")!==t.payload.privateUpload?e:e.set("isLoading",!1);case a.MEDIA_PERSIST_REQUEST:return e.set("isPersisting",!0);case a.MEDIA_PERSIST_SUCCESS:{const{file:n,privateUpload:r}=t.payload;return e.get("privateUpload")!==r?e:e.withMutations((e=>{const t=[c(c({},n),{},{key:(0,i.v4)()}),...e.get("files")];e.set("files",t),e.set("isPersisting",!1)}))}case a.MEDIA_PERSIST_FAILURE:return e.get("privateUpload")!==t.payload.privateUpload?e:e.set("isPersisting",!1);case a.MEDIA_DELETE_REQUEST:return e.set("isDeleting",!0);case a.MEDIA_DELETE_SUCCESS:{const{file:n,privateUpload:r}=t.payload,{key:i,id:o}=n;return e.get("privateUpload")!==r?e:e.withMutations((e=>{const t=e.get("files").filter((e=>i?e.key!==i:e.id!==o));e.set("files",t),e.deleteIn(["displayURLs",o]),e.set("isDeleting",!1)}))}case a.MEDIA_DELETE_FAILURE:return e.get("privateUpload")!==t.payload.privateUpload?e:e.set("isDeleting",!1);case a.MEDIA_DISPLAY_URL_REQUEST:return e.setIn(["displayURLs",t.payload.key,"isFetching"],!0);case a.MEDIA_DISPLAY_URL_SUCCESS:{const n=["displayURLs",t.payload.key];return e.setIn([...n,"isFetching"],!1).setIn([...n,"url"],t.payload.url)}case a.MEDIA_DISPLAY_URL_FAILURE:{const n=["displayURLs",t.payload.key];return e.setIn([...n,"isFetching"],!1).setIn([...n,"err"],t.payload.err||!0).deleteIn([...n,"url"])}default:return e}}},33474:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectIsLoadingAsset=function(e){return Object.values(e).some((e=>e.isLoading))};var r=n(30412),i=n(71033);const o=(0,r.produce)(((e,t)=>{switch(t.type){case i.ADD_ASSETS:t.payload.forEach((t=>{e[t.path]={asset:t,isLoading:!1,error:null}}));break;case i.ADD_ASSET:{const n=t.payload;e[n.path]={asset:n,isLoading:!1,error:null};break}case i.REMOVE_ASSET:{const n=t.payload;delete e[n];break}case i.LOAD_ASSET_REQUEST:{const{path:n}=t.payload;e[n]=e[n]||{},e[n].isLoading=!0;break}case i.LOAD_ASSET_SUCCESS:{const{path:n}=t.payload;e[n]=e[n]||{},e[n].isLoading=!1,e[n].error=null;break}case i.LOAD_ASSET_FAILURE:{const{path:n,error:r}=t.payload;e[n]=e[n]||{},e[n].isLoading=!1,e[n].error=r}}}),{});t.default=o},85594:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(30412),i=n(29987),o=n(5690);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t{switch(t.type){case o.NOTIFICATIONS_CLEAR:e.notifications=[];break;case o.NOTIFICATION_DISMISS:e.notifications=e.notifications.filter((e=>e.id!==t.id));break;case o.NOTIFICATION_SEND:e.notifications=[...e.notifications,s({id:(0,i.v4)()},t.payload)]}}),{notifications:[]});t.default=l},56863:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(30412),i=n(15207);const o={isFetching:!1,term:"",collections:[],page:0,entryIds:[],queryHits:{},error:void 0,requests:[]},a=(0,r.produce)(((e,t)=>{switch(t.type){case i.SEARCH_CLEAR:return o;case i.SEARCH_ENTRIES_REQUEST:{const{page:n,searchTerm:r,searchCollections:i}=t.payload;e.isFetching=!0,e.term=r,e.collections=i,e.page=n;break}case i.SEARCH_ENTRIES_SUCCESS:{const{entries:n,page:r}=t.payload,i=n.map((e=>({collection:e.collection,slug:e.slug})));e.isFetching=!1,e.page=r,e.entryIds=!r||isNaN(r)||0===r?i:e.entryIds.concat(i);break}case i.SEARCH_ENTRIES_FAILURE:{const{error:n}=t.payload;e.isFetching=!1,e.error=n;break}case i.QUERY_REQUEST:{const{searchTerm:n,request:r}=t.payload;e.isFetching=!0,e.term=n,r&&e.requests.push(r);break}case i.CLEAR_REQUESTS:e.requests=e.requests.filter((e=>e.expires>=new Date));break;case i.QUERY_SUCCESS:{const{namespace:n,hits:r}=t.payload;e.isFetching=!1,e.queryHits[n]=r;break}case i.QUERY_FAILURE:{const{error:n}=t.payload;e.isFetching=!1,e.error=n}}}),o);t.default=a},18259:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(30412),i=n(9687);const o=(0,r.produce)(((e,t)=>{switch(t.type){case i.STATUS_REQUEST:e.isFetching=!0;break;case i.STATUS_SUCCESS:e.isFetching=!1,e.status=t.payload.status;break;case i.STATUS_FAILURE:e.isFetching=!1,e.error=t.payload.error}}),{isFetching:!1,status:{auth:{status:!0},api:{status:!0,statusPage:""}},error:void 0});t.default=o},21837:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.store=void 0;var r=n(74081),i=n(58267),o=l(n(43292)),a=n(89258),s=l(n(16797));function l(e){return e&&e.__esModule?e:{default:e}}t.store=(0,r.createStore)((0,s.default)(),(0,i.composeWithDevTools)((0,r.applyMiddleware)(o.default,a.waitUntilAction)))},89258:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.waitUntilAction=t.WAIT_UNTIL_ACTION=void 0;const n=t.WAIT_UNTIL_ACTION="WAIT_UNTIL_ACTION";t.waitUntilAction=({dispatch:e,getState:t})=>{let r=[];return i=>o=>{if(o.type===n)return r.push(o),null;const a=i(o);return function(n){const i=[],o=[];for(const e of r)e.predicate(n)?i.push(e):o.push(e);r=o;for(const r of i)r.run(e,t,n)}(o),a}}},79278:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.history=void 0,t.navigateToCollection=function(e){return i.push(`/collections/${e}`)},t.navigateToEntry=function(e,t){return i.replace(`/collections/${e}/entries/${t}`)},t.navigateToNewEntry=function(e){return i.replace(`/collections/${e}/new`)};var r=n(70809);const i=t.history=(0,r.createHashHistory)()},67964:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SortDirection=void 0,t.SortDirection=function(e){return e.Ascending="Ascending",e.Descending="Descending",e.None="None",e}({})},25606:(e,t)=>{"use strict";function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.createAssetProxy=function({url:e,file:t,path:n,field:i}){return new r({url:e,file:t,path:n,field:i})},t.default=void 0;class r{constructor({url:e,file:t,path:r,field:i}){n(this,"url",void 0),n(this,"fileObj",void 0),n(this,"path",void 0),n(this,"field",void 0),this.url=e||(t?window.URL.createObjectURL(t):""),this.fileObj=t,this.path=r,this.field=i}toString(){return this.url}async toBase64(){const e=await fetch(this.url).then((e=>e.blob()));return e.size<=0?"":await new Promise((t=>{const n=new FileReader;n.onload=e=>{var n;const r=(null===(n=e.target)||void 0===n?void 0:n.result)||"";t(r.toString().split("base64,")[1])},n.readAsDataURL(e)}))}}t.default=r},57331:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const{id:t=null,label:n="unnamed component",icon:r="exclamation-triangle",type:i="shortcode",widget:d="object",pattern:f=u,fields:p=[],fromBlock:h,toBlock:m,toPreview:g}=e,v=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,a);return function(e){for(var t=1;t({})),toBlock:c(m)||(()=>"Plugin"),toPreview:c(g)||!d&&(c(m)||(()=>"Plugin")),fields:(0,o.fromJS)(p)},v)};var r,i=(r=n(61049))&&r.__esModule?r:{default:r},o=n(46670);const a=["id","label","icon","type","widget","pattern","fields","fromBlock","toBlock","toPreview"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u=/.^/;function c(e){return(0,i.default)(e)&&e.bind(null)}},15583:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createEntry=function(e,t="",n="",r={}){return{collection:e,slug:t,path:n,partial:r.partial||!1,raw:r.raw||"",data:r.data||{},label:r.label||null,isModification:(0,i.default)(r.isModification)?r.isModification:null,mediaFiles:r.mediaFiles||[],author:r.author||"",updatedOn:r.updatedOn||"",status:r.status||"",meta:r.meta||{},i18n:r.i18n||{}}};var r,i=(r=n(4335))&&r.__esModule?r:{default:r}},40299:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsEditorComponentImage=void 0,(r=n(2784))&&r.__esModule;var r,i=n(28165);const o={label:"Image",id:"image",fromBlock:e=>e&&{image:e[2],alt:e[1],title:e[4]},toBlock:({alt:e,image:t,title:n})=>`![${e||""}](${t||""}${n?` "${n.replace(/"/g,'\\"')}"`:""})`,toPreview:({alt:e,image:t,title:n},r,o)=>{const a=r(t,null==o?void 0:o.find((e=>"image"===e.get("widget"))));return(0,i.jsx)("img",{src:a||"",alt:e||"",title:n||""})},pattern:/^!\[(.*)\]\((.*?)(\s"(.*)")?\)$/,fields:[{label:"Image",name:"image",widget:"image",media_library:{allow_multiple:!1}},{label:"Alt Text",name:"alt"},{label:"Title",name:"title"}]};t.DecapCmsEditorComponentImage=o,t.default=o},84299:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(46670),i=l(n(5648)),o=l(n(1573)),a=n(85555);const s=["access_token"];function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.default=class{constructor(e={}){const t=(0,o.default)(e.base_url,"/"),n=(0,i.default)(e.auth_endpoint,"/");this.auth_url=`${t}/${n}`,this.appID=e.app_id,this.clearHash=e.clearHash}authenticate(e,t){if((0,a.isInsecureProtocol)())return t(new Error("Cannot authenticate over insecure protocol!"));const n=new URL(this.auth_url);n.searchParams.set("client_id",this.appID),n.searchParams.set("redirect_uri",document.location.origin+document.location.pathname),n.searchParams.set("response_type","token"),n.searchParams.set("scope",e.scope),null!=e.prompt&&null!=e.prompt&&n.searchParams.set("prompt",e.prompt),null!=e.resource&&null!=e.resource&&n.searchParams.set("resource",e.resource);const r=JSON.stringify({auth_type:"implicit",nonce:(0,a.createNonce)()});n.searchParams.set("state",r),document.location.assign(n.href)}completeAuth(e){const t=new URLSearchParams(document.location.hash.replace(/^#?\/?/,""));if(!t.has("access_token")&&!t.has("error"))return;this.clearHash();const n=(0,r.Map)(t.entries()),{nonce:i}=JSON.parse(n.get("state"));if(!(0,a.validateNonce)(i))return e(new Error("Invalid nonce"));if(n.has("error"))return e(new Error(`${n.get("error")}: ${n.get("error_description")}`));if(n.has("access_token")){const t=n.toJS(),{access_token:r}=t;e(null,function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,s)))}}}},76320:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DecapCmsLibAuth=void 0,Object.defineProperty(t,"ImplicitAuthenticator",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"NetlifyAuthenticator",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"PkceAuthenticator",{enumerable:!0,get:function(){return o.default}});var r=a(n(55746)),i=a(n(84299)),o=a(n(76814));function a(e){return e&&e.__esModule?e:{default:e}}t.DecapCmsLibAuth={NetlifyAuthenticator:r.default,ImplicitAuthenticator:i.default,PkceAuthenticator:o.default}},55746:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(5648)),i=o(n(1573));function o(e){return e&&e.__esModule?e:{default:e}}class a{constructor(e){this.err=e}toString(){return this.err&&this.err.message}}const s={github:{width:960,height:600},gitlab:{width:960,height:600},bitbucket:{width:960,height:500},email:{width:500,height:400}};t.default=class{constructor(e={}){this.site_id=e.site_id||null,this.base_url=(0,i.default)(e.base_url,"/")||"https://api.netlify.com",this.auth_endpoint=(0,r.default)(e.auth_endpoint,"/")||"auth"}handshakeCallback(e,t){const n=r=>{if(r.data==="authorizing:"+e.provider&&r.origin===this.base_url)return window.removeEventListener("message",n,!1),window.addEventListener("message",this.authorizeCallback(e,t),!1),this.authWindow.postMessage(r.data,r.origin)};return n}authorizeCallback(e,t){const n=r=>{if(r.origin===this.base_url){if(0===r.data.indexOf("authorization:"+e.provider+":success:")){const i=JSON.parse(r.data.match(new RegExp("^authorization:"+e.provider+":success:(.+)$"))[1]);window.removeEventListener("message",n,!1),this.authWindow.close(),t(null,i)}if(0===r.data.indexOf("authorization:"+e.provider+":error:")){const i=JSON.parse(r.data.match(new RegExp("^authorization:"+e.provider+":error:(.+)$"))[1]);window.removeEventListener("message",n,!1),this.authWindow.close(),t(new a(i))}}};return n}getSiteID(){if(this.site_id)return this.site_id;const e=document.location.host.split(":")[0];return"localhost"===e?"demo.decapcms.org":e}authenticate(e,t){const{provider:n}=e,r=this.getSiteID();if(!n)return t(new a({message:"You must specify a provider when calling netlify.authenticate"}));if(!r)return t(new a({message:"You must set a site_id with netlify.configure({site_id: 'your-site-id'}) to make authentication work from localhost"}));const i=s[n]||s.github,o=screen.width/2-i.width/2,l=screen.height/2-i.height/2;window.addEventListener("message",this.handshakeCallback(e,t),!1);let u=`${this.base_url}/${this.auth_endpoint}?provider=${e.provider}&site_id=${r}`;e.scope&&(u+="&scope="+e.scope),!0===e.login&&(u+="&login=true"),e.beta_invite&&(u+="&beta_invite="+e.beta_invite),e.invite_code&&(u+="&invite_code="+e.invite_code),this.authWindow=window.open(u,"Netlify Authorization",`width=${i.width}, height=${i.height}, top=${l}, left=${o}`),this.authWindow.focus()}refresh(e,t){const{provider:n,refresh_token:r}=e,i=this.getSiteID(),o=t||Promise.reject.bind(Promise);if(!n||!r)return o(new a({message:"You must specify a provider and refresh token when calling netlify.refresh"}));if(!i)return o(new a({message:"You must set a site_id with netlify.configure({site_id: 'your-site-id'}) to make token refresh work from localhost"}));const s=`${this.base_url}/${this.auth_endpoint}/refresh?provider=${n}&site_id=${i}&refresh_token=${r}`,l=fetch(s,{method:"POST",body:""}).then((e=>e.json()));if(!t)return l;l.then((e=>t(null,e))).catch(t)}}},76814:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(5648)),i=a(n(1573)),o=n(85555);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l="decap-cms-pkce-verifier-code";t.default=class{constructor(e={}){const t=(0,i.default)(e.base_url,"/"),n=(0,r.default)(e.auth_endpoint,"/"),o=(0,r.default)(e.auth_token_endpoint,"/");this.auth_url=`${t}/${n}`,this.auth_token_url=`${t}/${o}`,this.auth_token_endpoint_content_type=e.auth_token_endpoint_content_type,this.appID=e.app_id}async authenticate(e,t){if((0,o.isInsecureProtocol)())return t(new Error("Cannot authenticate over insecure protocol!"));const n=new URL(this.auth_url);n.searchParams.set("client_id",this.appID),n.searchParams.set("redirect_uri",document.location.origin+document.location.pathname),n.searchParams.set("response_type","code"),n.searchParams.set("scope",e.scope);const r=JSON.stringify({auth_type:"pkce",nonce:(0,o.createNonce)()});n.searchParams.set("state",r),n.searchParams.set("code_challenge_method","S256");const i=function(){const e=Array.from(window.crypto.getRandomValues(new Uint8Array(128))).map((e=>"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-."[e%64])).join("");return window.sessionStorage.setItem(l,e),e}(),a=await async function(e){const t=await async function(e){const t=(new TextEncoder).encode(e),n=await window.crypto.subtle.digest("SHA-256",t);return String.fromCharCode(...new Uint8Array(n))}(e);return btoa(t).split("=")[0].replace(/\+/g,"-").replace(/\//g,"_")}(i);n.searchParams.set("code_challenge",a),document.location.assign(n.href)}async completeAuth(e){const t=new URLSearchParams(document.location.search);if(window.history.replaceState(null,"",document.location.pathname),!t.has("code")&&!t.has("error"))return;let n;try{n=JSON.parse(t.get("state")).nonce}catch(e){n=JSON.parse(t.get("state").replace(/\\"/g,'"')).nonce}if(!(0,o.validateNonce)(n))return e(new Error("Invalid nonce"));if(t.has("error"))return e(new Error(`${t.get("error")}: ${t.get("error_description")}`));if(t.has("code")){const n=t.get("code"),r=new URL(this.auth_token_url),i={client_id:this.appID,code:n,grant_type:"authorization_code",redirect_uri:document.location.origin+document.location.pathname,code_verifier:window.sessionStorage.getItem(l)},o=await fetch(r.href,{method:"POST",body:this.auth_token_endpoint_content_type.startsWith("application/x-www-form-urlencoded")?new URLSearchParams(Object.entries(i)).toString():JSON.stringify(i),headers:{"Content-Type":this.auth_token_endpoint_content_type}}),a=await o.json();window.sessionStorage.removeItem(l),e(null,function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createNonce=function(){const e=(0,r.v4)();return window.sessionStorage.setItem("decap-cms-auth",JSON.stringify({nonce:e})),e},t.isInsecureProtocol=function(){return"https:"!==document.location.protocol&&"localhost"!==document.location.hostname&&"127.0.0.1"!==document.location.hostname},t.validateNonce=function(e){const t=window.sessionStorage.getItem("decap-cms-auth"),n=t&&JSON.parse(t).nonce;return window.localStorage.removeItem("decap-cms-auth"),e===n};var r=n(29987)},65727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PreviewState=void 0,t.apiRequest=g,t.endpointConstants=t.apiRoots=void 0,t.getDefaultBranchName=async function(e){let t;const{token:n,backend:r,repo:i}=e;switch(r){case"gitlab":t=`/projects/${encodeURIComponent(i)}`;break;case"bitbucket":t=`/repositories/${i}`;break;default:t=`/repos/${i}`}const o=await g(t,{token:n,backend:r});let a;if("bitbucket"===r){const{mainbranch:{name:e}}=o;a=e}else{const{default_branch:e}=o;a=e}return a},t.getPreviewStatus=function(e,t){return e.find((({context:e})=>y(e,t)))},t.isPreviewContext=y,t.parseResponse=f,t.readFile=async function(e,t,n,r){const i=e?r?`gh.${e}`:`gh.${e}.blob`:null,o=i?await n.getItem(i):null;if(o)return o;const a=await t();return i&&await n.setItem(i,a),a},t.readFileMetadata=async function(e,t,n){const r=e?function(e){return`gh.${e}.meta`}(e):null,i=r&&await n.getItem(r);if(i)return i;const o=await t();return r&&await n.setItem(r,o),o},t.requestWithBackoff=p,t.throwOnConflictingBranches=async function(e,t,n){const r=function(e){const t=e.split("/");return t.pop(),t.reduce(((e,n,r)=>[...e,t.slice(0,r+1).join("/")]),[])}(e),i=(await Promise.all(r.map((e=>t(e).then((e=>e.name)).catch((()=>"")))))).filter(Boolean)[0];if(i)throw new o.default(`Failed creating branch '${e}' since there is already a branch named '${i}'. Please delete the '${i}' branch and try again`,500,n)};var r=n(87131),i=s(n(25664)),o=s(n(67026));const a=["token","backend"];function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t3600?3600:t}}function f(e){const t=e.headers.get("Content-Type");return t&&t.match(/json/)?async function(e){const t=await e.json();return e.ok?t:Promise.reject(t)}(e):e.text().then((t=>e.ok?t:Promise.reject(t)))}async function p(e,t,n=1){e.rateLimiter&&await e.rateLimiter.acquire();try{const n=await e.buildRequest(t),r=e.requestFunction||i.default.performRequest,o=await r(n);if(429===o.status){const e=await o.text().catch((()=>"Too many requests"));throw new Error(e)}if(403===o.status){const e=await o.json().catch((()=>({message:""})));if(e.message.match("API rate limit exceeded")){const t=new Date,n=o.headers.has("X-RateLimit-Reset")?parseInt(o.headers.get("X-RateLimit-Reset")):t.getTime()/1e3+60;throw new d(e.message,n)}o.json=()=>Promise.resolve(e)}return o}catch(i){if(n>5||"Can't refresh access token when using implicit auth"===i.message)throw i;if(!e.rateLimiter){const t=i.resetSeconds||n*n;console.log(`Pausing requests for ${t} ${1===n?"second":"seconds"} due to fetch failures:`,i.message),e.rateLimiter=(0,r.asyncLock)(),e.rateLimiter.acquire(),setTimeout((()=>{var t;null===(t=e.rateLimiter)||void 0===t||t.release(),e.rateLimiter=void 0,console.log("Done pausing requests")}),1e3*t)}return p(e,t,n+1)}}const h=t.apiRoots={github:"https://api.github.com",gitlab:"https://gitlab.com/api/v4",bitbucket:"https://api.bitbucket.org/2.0"},m=(t.endpointConstants={singleRepo:{bitbucket:"/repositories",github:"/repos",gitlab:"/projects"}},{buildRequest:e=>e});async function g(e,t,n=(e=>f(e))){const{token:r,backend:s}=t,l=u({cache:"no-cache"},function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,a)),c=await async function(e){const{token:t,headers:n}=e,r=u({"Content-Type":"application/json; charset=utf-8"},n);return t&&(r.Authorization=`token ${t}`),Promise.resolve(r)}({headers:l.headers||{},token:r}),d=function(e,t){if(t){const n=[];for(const e in t)n.push(`${e}=${encodeURIComponent(t[e])}`);n.length&&(e+=`?${n.join("&")}`)}return e}(`${h[s]}${e}`,l.params);let g=500;try{const e=i.default.fromFetchArguments(d,u(u({},l),{},{headers:c})),t=await p(m,e);return g=t.status,await n(t)}catch(e){return function(e,t,n){throw new o.default(e.message,t,n)}(e,g,s)}}const v=["deploy"];function y(e,t){return t?e===t:v.some((t=>e.includes(t)))}t.PreviewState=function(e){return e.Other="other",e.Success="success",e}({})},67026:(e,t)=>{"use strict";function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.API_ERROR=void 0;const r=t.API_ERROR="API_ERROR";class i extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e,t,i,o={}){super(e),n(this,"message",void 0),n(this,"status",void 0),n(this,"api",void 0),n(this,"meta",void 0),this.message=e,this.status=t,this.api=i,this.name=r,this.meta=o}}t.default=i},97478:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MERGE_COMMIT_MESSAGE=t.DEFAULT_PR_BODY=t.CMS_BRANCH_PREFIX=void 0,t.branchFromContentKey=function(e){return`${n}/${e}`},t.contentKeyFromBranch=function(e){return e.slice(`${n}/`.length)},t.generateContentKey=function(e,t){return`${e}/${t}`},t.isCMSLabel=function(e,t){return e.startsWith(i(t))},t.labelToStatus=function(e,t){return e.slice(i(t).length)},t.parseContentKey=function(e){const t=e.indexOf("/");return{collection:e.slice(0,t),slug:e.slice(t+1)}},t.statusToLabel=function(e,t){return`${i(t)}${e}`};const n=t.CMS_BRANCH_PREFIX="cms",r=(t.DEFAULT_PR_BODY="Automatically generated by Decap CMS",t.MERGE_COMMIT_MESSAGE="Automatically generated. Merged on Decap CMS.","decap-cms/");function i(e){return e||r}},6137:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ACCESS_TOKEN_ERROR=void 0;const n=t.ACCESS_TOKEN_ERROR="ACCESS_TOKEN_ERROR";class r extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e){var t,r,i;super(e),t=this,i=void 0,(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(r="message"))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,this.message=e,this.name=n}}t.default=r},68075:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CURSOR_COMPATIBILITY_SYMBOL=void 0;var r=n(46670);function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){if(void 0===e)return(0,r.Map)();const t=(0,r.fromJS)(e);if(!r.Map.isMap(t))throw new Error("Object must be equivalent to a Map.");return t}const a=(0,r.Set)(["index","page","count","pageSize","pageCount","usingOldPaginationAPI","extension","folder","depth"]);function s(e){return e.filter(((e,t)=>a.has(t)))}class l{static create(...e){return new l(...e)}constructor(...e){if(i(this,"store",void 0),i(this,"actions",void 0),i(this,"data",void 0),i(this,"meta",void 0),e[0]instanceof l)return e[0];this.store=function(...e){const{actions:t,data:n,meta:i}=1===e.length?o(e[0]).toObject():{actions:e[0],data:e[1],meta:e[2]};return(0,r.Map)({actions:(0,r.Set)(t),data:o(n),meta:o(i).update(s)})}(...e),this.actions=this.store.get("actions"),this.data=this.store.get("data"),this.meta=this.store.get("meta")}updateStore(...e){return new l(this.store.update(...e))}updateInStore(...e){return new l(this.store.updateIn(...e))}hasAction(e){return function(e,t){return e.hasIn(["actions",t])}(this.store,e)}addAction(e){return this.updateStore("actions",(t=>t.add(e)))}removeAction(e){return this.updateStore("actions",(t=>t.delete(e)))}setActions(e){return this.updateStore((t=>t.set("actions",(0,r.Set)(e))))}mergeActions(e){return this.updateStore("actions",(t=>t.union(e)))}getActionHandlers(e){return function(e,t){return e.get("actions",(0,r.Set)()).toMap().map((e=>t(e)))}(this.store,e)}setData(e){return new l(this.store.set("data",o(e)))}mergeData(e){return new l(this.store.mergeIn(["data"],o(e)))}wrapData(e){return this.updateStore("data",(t=>o(e).set("wrapped_cursor_data",t)))}unwrapData(){return[this.store.get("data").delete("wrapped_cursor_data"),this.updateStore("data",(e=>e.get("wrapped_cursor_data")))]}clearData(){return this.updateStore("data",(()=>(0,r.Map)()))}setMeta(e){return this.updateStore((t=>t.set("meta",o(e))))}mergeMeta(e){return this.updateStore((t=>t.update("meta",(t=>t.merge(o(e))))))}}t.default=l,t.CURSOR_COMPATIBILITY_SYMBOL=Symbol("cursor key for compatibility with old backends")},67097:(e,t)=>{"use strict";function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.EDITORIAL_WORKFLOW_ERROR=void 0;const r=t.EDITORIAL_WORKFLOW_ERROR="EDITORIAL_WORKFLOW_ERROR";class i extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e,t){super(e),n(this,"message",void 0),n(this,"notUnderEditorialWorkflow",void 0),this.message=e,this.notUnderEditorialWorkflow=t,this.name=r}}t.default=i},87131:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.asyncLock=function(){let e=(0,i.default)(1);return{acquire:function(t=15e3){return new Promise((n=>{const r=setTimeout((()=>{e=(0,i.default)(1),n(!1)}),t);e.take((()=>{clearTimeout(r),n(!0)}))}))},release:function(){try{e.leave()}catch(t){if("leave called too many times."!==t.message)throw t;console.warn("leave called too many times."),e=(0,i.default)(1)}}}};var r,i=(r=n(63252))&&r.__esModule?r:{default:r}},47021:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filterByExtension=function(e,t){return((null==e?void 0:e.path)||"").endsWith(t.startsWith(".")?t:`.${t}`)},t.getAllResponses=async function(e,t={},n,r){let i=1,o=s.default.fromFetchArguments(e,t);const a=[];for(;o&&i<30;){const e=await s.default.performRequest(o),l=e.headers.get("Link"),u=l&&p(l)[n],{headers:c={}}=t;o=u&&s.default.fromFetchArguments(r(u),{headers:c}),a.push(e),i++}return a},t.getPathDepth=function(e){return e.split("/").length},t.parseLinkHeader=p,t.parseResponse=f,t.responseParser=function(e){return t=>f(t,e)};var r=u(n(65159)),i=u(n(10017)),o=u(n(85395)),a=n(46670),s=u(n(25664)),l=u(n(67026));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){return n=>{try{return t(n)}catch(t){throw new Error(`Response cannot be parsed into the expected format (${e}): ${t.message}`)}}}const d=(0,a.fromJS)({json:async e=>{const t=e.headers.get("Content-Type")||"";if(!t.startsWith("application/json")&&!t.startsWith("text/json"))throw new Error(`${t} is not a valid JSON Content-Type`);return e.json()},text:async e=>e.text(),blob:async e=>e.blob()}).mapEntries((([e,t])=>[e,c(e,t)]));async function f(e,{expectingOk:t=!0,format:n="text",apiName:r=""}){let i;try{const t=d.get(n,!1);if(!t)throw new Error(`${n} is not a supported response format.`);i=await t(e)}catch(t){throw new l.default(t.message,e.status,r)}if(t&&!e.ok){var o;const t="json"===n,a=t?i.message||i.msg||(null===(o=i.error)||void 0===o?void 0:o.message):i;throw new l.default(t&&a?a:i,e.status,r)}return i}function p(e){return e?(0,o.default)([e=>e.split(","),(0,r.default)((e=>e.trim().split(";"))),(0,r.default)((([e,t])=>[t.match(/rel="(.*?)"/)[1],e.trim().match(/<(.*?)>/)[1].replace(/\+/g,"%20")])),i.default])(e):{}}},44951:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(91965);t.default=e=>new Promise(((t,n)=>{const i=new FileReader;i.onload=({target:e})=>t((0,r.sha256)((null==e?void 0:e.result)||"")),i.onerror=e=>{i.abort(),n(e)},i.readAsArrayBuffer(e)}))},80120:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createPointerFile=y,t.getLargeMediaFilteredMediaFiles=async function(e,t){return await Promise.all(t.map((async t=>{const{fileObj:n,path:r}=t,i=r.startsWith("/")?r.slice(1):r;if(!e.matchPath(i))return t;const o=await b(e,n,r);return d(d({},t),o)})))},t.getLargeMediaPatternsFromGitAttributesFile=void 0,t.getPointerFileForMediaFileObj=b,t.parsePointerFile=void 0;var r=u(n(65159)),i=u(n(23162)),o=u(n(10094)),a=u(n(58072)),s=u(n(44951));const l=["size","oid"];function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;te.trim())),(0,a.default)((function(e){return""!==e}))]);t.parsePointerFile=(0,o.default)([f,h,(0,r.default)(p),i.default,e=>{let{size:t,oid:n}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,l);return d({size:parseInt(t),sha:null==n?void 0:n.split(":")[1]},r)}]);const m=(0,o.default)([(0,r.default)((function(e){return e.includes("=")?e.split("="):e.startsWith("-")?[e.slice(1),!1]:[e,!0]})),i.default]),g=(0,o.default)([p,([e,...t])=>[e,m(t)]]),v=(0,o.default)([f,(0,r.default)((function(e){return e.split("#")[0]})),h,(0,r.default)(g)]);function y({size:e,sha:t}){return`version https://git-lfs.github.com/spec/v1\noid sha256:${t}\nsize ${e}\n`}async function b(e,t,n){const{name:r,size:i}=t,o=await(0,s.default)(t);await e.uploadResource({sha:o,size:i},t);const a=y({sha:o,size:i}),l=new Blob([a]),u=new File([l],r,{type:"text/plain"}),c=await(0,s.default)(u);return{fileObj:u,size:l.size,sha:c,raw:a,path:n}}t.getLargeMediaPatternsFromGitAttributesFile=(0,o.default)([v,(0,a.default)((([,e])=>"lfs"===e.filter&&"lfs"===e.diff&&"lfs"===e.merge)),(0,r.default)((([e])=>e))])},86314:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allEntriesByFolder=async function({listAllFiles:e,readFile:t,readFileMetadata:n,apiName:o,branch:s,localForage:l,folder:c,extension:f,depth:p,getDefaultBranch:h,isShaExistsInBranch:v,getDifferences:y,getFileId:b,filterFile:w,customFetch:_}){async function x(){const t=await e(c,f,p),n=await h();return await m({localForage:l,localTree:{head:n.sha,files:t.map((e=>({id:e.id,path:e.path,name:(0,a.basename)(e.path)})))},branch:n.name,depth:p,extension:f,folder:c}),t}const k=await async function(){const e=await g({localForage:l,branch:s,folder:c,extension:f,depth:p});if(e){const t=await h();if(!await v(t.name,e.head))return console.log(`Can't find local tree head '${e.head}' in branch '${t.name}', rebuilding local tree`),x();const n=await async function({branch:e,localTree:t,folder:n,getDifferences:r,filterFile:i,getFileId:o}){const s=(await r(e.sha,t.head)).filter((e=>{var t,r;return(null===(t=e.oldPath)||void 0===t?void 0:t.startsWith(n))||(null===(r=e.newPath)||void 0===r?void 0:r.startsWith(n))})).reduce(((e,t)=>("renamed"===t.status?(e.push({path:t.oldPath,name:(0,a.basename)(t.oldPath),deleted:!0}),e.push({path:t.newPath,name:(0,a.basename)(t.newPath),deleted:!1})):"deleted"===t.status?e.push({path:t.oldPath,name:(0,a.basename)(t.oldPath),deleted:!0}):e.push({path:t.newPath||t.oldPath,name:(0,a.basename)(t.newPath||t.oldPath),deleted:!1}),e)),[]).filter(i);return await Promise.all(s.map((async e=>{if(e.deleted)return u(u({},e),{},{id:""});{const t=await o(e.path);return u(u({},e),{},{id:t})}})))}({branch:t,localTree:e,folder:c,extension:f,depth:p,getDifferences:y,getFileId:b,filterFile:w}).catch((e=>(console.log("Failed getting diff from local tree:",e),null)));if(!n)return console.log("Diff is null, rebuilding local tree"),x();if(0===n.length)return e.files;{const o=n.reduce(((e,t)=>(e[t.path]=t.deleted,e)),{}),a=(0,r.default)((0,i.default)(n.filter((e=>!o[e.path])),e.files.filter((e=>!o[e.path])),(e=>e.path)),(e=>e.path));return await m({localForage:l,localTree:{head:t.sha,files:a},branch:t.name,depth:p,extension:f,folder:c}),a}}return x()}();return _?await _(k):await d(k,t,n,o)},t.blobToFileObj=function(e,t){const n=e.match(/.svg$/)?{type:"image/svg+xml"}:{};return new File([t],e,n)},t.entriesByFiles=async function(e,t,n,r){return d(e,t,n,r)},t.entriesByFolder=async function(e,t,n,r){return d(await e(),t,n,r)},t.getLocalTree=g,t.getMediaAsBlob=f,t.getMediaDisplayURL=async function(e,t,n){const{path:r,id:i}=e;return new Promise(((e,o)=>n.take((()=>f(r,i,t).then((e=>URL.createObjectURL(e))).then(e,o).finally((()=>n.leave()))))))},t.persistLocalTree=m,t.runWithLock=async function(e,t,n){try{return await e.acquire()||console.warn(n),await t()}finally{e.release()}},t.unpublishedEntries=async function(e){try{return await e()}catch(e){if("Not Found"===e.message)return Promise.resolve([]);throw e}};var r=s(n(829)),i=s(n(15316)),o=s(n(63252)),a=n(92478);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t{a.push(new Promise((o=>i.take((async()=>{try{const[r,a]=await Promise.all([t(e.path,e.id,{parseText:!0}),n(e.path,e.id)]);o({file:u(u({},e),a),data:r}),i.leave()}catch(t){i.leave(),console.error(`failed to load file from ${r}: ${e.path}`),o({error:!0})}})))))})),Promise.all(a).then((e=>e.filter((e=>!e.error))))}async function f(e,t,n){let r;if(e.match(/.svg$/)){const i=await n(e,t,{parseText:!0});r=new Blob([i],{type:"image/svg+xml"})}else r=await n(e,t,{parseText:!1});return r}const p="git.local";function h({branch:e,folder:t,extension:n,depth:r}){return`${p}.${e}.${t}.${n}.${r}`}async function m({localForage:e,localTree:t,branch:n,folder:r,extension:i,depth:o}){await e.setItem(h({branch:n,folder:r,extension:i,depth:o}),t)}async function g({localForage:e,branch:t,folder:n,extension:r,depth:i}){return await e.getItem(h({branch:t,folder:n,extension:r,depth:i}))}},33806:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"APIError",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"AccessTokenError",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"CMS_BRANCH_PREFIX",{enumerable:!0,get:function(){return v.CMS_BRANCH_PREFIX}}),Object.defineProperty(t,"CURSOR_COMPATIBILITY_SYMBOL",{enumerable:!0,get:function(){return i.CURSOR_COMPATIBILITY_SYMBOL}}),Object.defineProperty(t,"Cursor",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"DEFAULT_PR_BODY",{enumerable:!0,get:function(){return v.DEFAULT_PR_BODY}}),t.DecapCmsLibUtil=void 0,Object.defineProperty(t,"EDITORIAL_WORKFLOW_ERROR",{enumerable:!0,get:function(){return o.EDITORIAL_WORKFLOW_ERROR}}),Object.defineProperty(t,"EditorialWorkflowError",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"MERGE_COMMIT_MESSAGE",{enumerable:!0,get:function(){return v.MERGE_COMMIT_MESSAGE}}),Object.defineProperty(t,"PreviewState",{enumerable:!0,get:function(){return g.PreviewState}}),Object.defineProperty(t,"allEntriesByFolder",{enumerable:!0,get:function(){return m.allEntriesByFolder}}),Object.defineProperty(t,"asyncLock",{enumerable:!0,get:function(){return h.asyncLock}}),Object.defineProperty(t,"basename",{enumerable:!0,get:function(){return l.basename}}),Object.defineProperty(t,"blobToFileObj",{enumerable:!0,get:function(){return m.blobToFileObj}}),Object.defineProperty(t,"branchFromContentKey",{enumerable:!0,get:function(){return v.branchFromContentKey}}),Object.defineProperty(t,"contentKeyFromBranch",{enumerable:!0,get:function(){return v.contentKeyFromBranch}}),Object.defineProperty(t,"createPointerFile",{enumerable:!0,get:function(){return y.createPointerFile}}),Object.defineProperty(t,"entriesByFiles",{enumerable:!0,get:function(){return m.entriesByFiles}}),Object.defineProperty(t,"entriesByFolder",{enumerable:!0,get:function(){return m.entriesByFolder}}),Object.defineProperty(t,"fileExtension",{enumerable:!0,get:function(){return l.fileExtension}}),Object.defineProperty(t,"fileExtensionWithSeparator",{enumerable:!0,get:function(){return l.fileExtensionWithSeparator}}),Object.defineProperty(t,"filterByExtension",{enumerable:!0,get:function(){return d.filterByExtension}}),Object.defineProperty(t,"flowAsync",{enumerable:!0,get:function(){return u.flowAsync}}),Object.defineProperty(t,"generateContentKey",{enumerable:!0,get:function(){return v.generateContentKey}}),Object.defineProperty(t,"getAllResponses",{enumerable:!0,get:function(){return d.getAllResponses}}),Object.defineProperty(t,"getBlobSHA",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"getDefaultBranchName",{enumerable:!0,get:function(){return g.getDefaultBranchName}}),Object.defineProperty(t,"getLargeMediaFilteredMediaFiles",{enumerable:!0,get:function(){return y.getLargeMediaFilteredMediaFiles}}),Object.defineProperty(t,"getLargeMediaPatternsFromGitAttributesFile",{enumerable:!0,get:function(){return y.getLargeMediaPatternsFromGitAttributesFile}}),Object.defineProperty(t,"getMediaAsBlob",{enumerable:!0,get:function(){return m.getMediaAsBlob}}),Object.defineProperty(t,"getMediaDisplayURL",{enumerable:!0,get:function(){return m.getMediaDisplayURL}}),Object.defineProperty(t,"getPathDepth",{enumerable:!0,get:function(){return d.getPathDepth}}),Object.defineProperty(t,"getPointerFileForMediaFileObj",{enumerable:!0,get:function(){return y.getPointerFileForMediaFileObj}}),Object.defineProperty(t,"getPreviewStatus",{enumerable:!0,get:function(){return g.getPreviewStatus}}),Object.defineProperty(t,"isAbsolutePath",{enumerable:!0,get:function(){return l.isAbsolutePath}}),Object.defineProperty(t,"isCMSLabel",{enumerable:!0,get:function(){return v.isCMSLabel}}),Object.defineProperty(t,"isPreviewContext",{enumerable:!0,get:function(){return g.isPreviewContext}}),Object.defineProperty(t,"labelToStatus",{enumerable:!0,get:function(){return v.labelToStatus}}),Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"localForage",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"onlySuccessfulPromises",{enumerable:!0,get:function(){return u.onlySuccessfulPromises}}),Object.defineProperty(t,"parseContentKey",{enumerable:!0,get:function(){return v.parseContentKey}}),Object.defineProperty(t,"parseLinkHeader",{enumerable:!0,get:function(){return d.parseLinkHeader}}),Object.defineProperty(t,"parsePointerFile",{enumerable:!0,get:function(){return y.parsePointerFile}}),Object.defineProperty(t,"parseResponse",{enumerable:!0,get:function(){return d.parseResponse}}),Object.defineProperty(t,"readFile",{enumerable:!0,get:function(){return g.readFile}}),Object.defineProperty(t,"readFileMetadata",{enumerable:!0,get:function(){return g.readFileMetadata}}),Object.defineProperty(t,"requestWithBackoff",{enumerable:!0,get:function(){return g.requestWithBackoff}}),Object.defineProperty(t,"responseParser",{enumerable:!0,get:function(){return d.responseParser}}),Object.defineProperty(t,"runWithLock",{enumerable:!0,get:function(){return m.runWithLock}}),Object.defineProperty(t,"statusToLabel",{enumerable:!0,get:function(){return v.statusToLabel}}),Object.defineProperty(t,"then",{enumerable:!0,get:function(){return u.then}}),Object.defineProperty(t,"throwOnConflictingBranches",{enumerable:!0,get:function(){return g.throwOnConflictingBranches}}),Object.defineProperty(t,"unpublishedEntries",{enumerable:!0,get:function(){return m.unpublishedEntries}}),Object.defineProperty(t,"unsentRequest",{enumerable:!0,get:function(){return c.default}});var r=_(n(67026)),i=w(n(68075)),o=w(n(67097)),a=_(n(6137)),s=_(n(55538)),l=n(92478),u=n(44486),c=_(n(25664)),d=n(47021),f=_(n(73209)),p=_(n(44951)),h=n(87131),m=n(86314),g=n(65727),v=n(97478),y=n(80120);function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(b=function(e){return e?n:t})(e)}function w(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=b(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function _(e){return e&&e.__esModule?e:{default:e}}t.DecapCmsLibUtil={APIError:r.default,Cursor:i.default,CURSOR_COMPATIBILITY_SYMBOL:i.CURSOR_COMPATIBILITY_SYMBOL,EditorialWorkflowError:o.default,EDITORIAL_WORKFLOW_ERROR:o.EDITORIAL_WORKFLOW_ERROR,localForage:s.default,basename:l.basename,fileExtensionWithSeparator:l.fileExtensionWithSeparator,fileExtension:l.fileExtension,onlySuccessfulPromises:u.onlySuccessfulPromises,flowAsync:u.flowAsync,then:u.then,unsentRequest:c.default,filterByExtension:d.filterByExtension,parseLinkHeader:d.parseLinkHeader,parseResponse:d.parseResponse,responseParser:d.responseParser,loadScript:f.default,getBlobSHA:p.default,getPathDepth:d.getPathDepth,entriesByFiles:m.entriesByFiles,entriesByFolder:m.entriesByFolder,unpublishedEntries:m.unpublishedEntries,getMediaDisplayURL:m.getMediaDisplayURL,getMediaAsBlob:m.getMediaAsBlob,readFile:g.readFile,readFileMetadata:g.readFileMetadata,CMS_BRANCH_PREFIX:v.CMS_BRANCH_PREFIX,generateContentKey:v.generateContentKey,isCMSLabel:v.isCMSLabel,labelToStatus:v.labelToStatus,statusToLabel:v.statusToLabel,DEFAULT_PR_BODY:v.DEFAULT_PR_BODY,MERGE_COMMIT_MESSAGE:v.MERGE_COMMIT_MESSAGE,isPreviewContext:g.isPreviewContext,getPreviewStatus:g.getPreviewStatus,runWithLock:m.runWithLock,PreviewState:g.PreviewState,parseContentKey:v.parseContentKey,createPointerFile:y.createPointerFile,getLargeMediaFilteredMediaFiles:y.getLargeMediaFilteredMediaFiles,getLargeMediaPatternsFromGitAttributesFile:y.getLargeMediaPatternsFromGitAttributesFile,parsePointerFile:y.parsePointerFile,getPointerFileForMediaFileObj:y.getPointerFileForMediaFileObj,branchFromContentKey:v.branchFromContentKey,contentKeyFromBranch:v.contentKeyFromBranch,blobToFileObj:m.blobToFileObj,requestWithBackoff:g.requestWithBackoff,getDefaultBranchName:g.getDefaultBranchName,allEntriesByFolder:m.allEntriesByFolder,AccessTokenError:a.default,throwOnConflictingBranches:g.throwOnConflictingBranches}},73209:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return new Promise(((t,n)=>{let r=!1;const i=document.getElementsByTagName("head")[0],o=document.createElement("script");o.src=e,o.onload=o.onreadystatechange=function(){r||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState?n():(r=!0,t())},o.onerror=e=>n(e),i.appendChild(o)}))}},55538:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(75486))&&r.__esModule?r:{default:r};!function(){const e="localForageTest";i.default.setItem(e,{expires:Date.now()+3e5}).then((()=>{i.default.removeItem(e)})).catch((e=>{if(22===e.code){const e="Unable to set localStorage key. Quota exceeded! Full disk?";console.warn(e)}console.log(e)}))}(),t.default=i.default},92478:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.basename=function(e,t=""){if(""===e)return e;const n=(e=r(e)).split("/"),i=n[n.length-1];return""===i&&n.length>1?n[n.length-2]:t.length>0&&i.slice(-t.length)===t?i.slice(0,-t.length):i},t.fileExtension=function(e){const t=i(e);return""===t?t:t.slice(1)},t.fileExtensionWithSeparator=i,t.isAbsolutePath=function(e){return n.test(e)};const n=new RegExp("^(?:[a-z]+:)?//","i");function r(e){return e.replace(/[\\/]+/g,"/")}function i(e){const t=(e=r(e)).split("/");if(""===(e=t.pop())&&t.length>0&&(e=t.pop()),".."===e)return"";const n=e.lastIndexOf(".");return-1===n||0===n?"":e.slice(n)}},44486:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flowAsync=function(e){return(0,i.default)(e.map((e=>function(e){return async t=>e(await t)}(e))))},t.onlySuccessfulPromises=function(e){return Promise.all(e.map((e=>e.catch((()=>o))))).then((e=>e.filter((e=>e!==o))))},t.then=function(e){return t=>Promise.resolve(t).then(e)};var r,i=(r=n(85395))&&r.__esModule?r:{default:r};const o=Symbol("filterPromiseSymbol")},25664:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(46670),i=s(n(12957)),o=s(n(85395)),a=s(n(85505));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;tn.abort()),6e4);return fetch(e,u(u({},t),{},{signal:n.signal})).then((e=>(clearTimeout(r),e))).catch((e=>{if("AbortError"===e.name||"DOMException"===e.name)throw new Error("Request timed out after 60 seconds");throw e}))}function d(e){const[t,n]=e.split("?");return(0,r.Map)(u({url:t},n?{params:(i=n,(0,r.List)(i.split("&")).map((e=>(0,r.List)(e.split("=")).map(decodeURIComponent))).update(r.Map))}:{}));var i}function f(e){return`${e.get("url")}${e.get("params")?`?${t=e.get("params"),t.entrySeq().map((([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`)).join("&")}`:""}`;var t}function p(e){return(0,a.default)(e)?d(e):e?(0,r.fromJS)(e):(0,r.Map)()}const h=(m=e=>{const t=function(e){return[f(e),e.remove("url").remove("params").toJS()]}(e);return c(...t)},e=>m(p(e)));var m;const g=(0,o.default)([function(e){return(t,n)=>e(t,p(n))},i.default]);function v(e){return g(((t,n)=>n.setIn(e,t)))}function y(e){return g(((t,n)=>n.updateIn(e,((e=(0,r.Map)())=>e.merge(t)))))}const b=v(["method"]),w=v(["body"]),_=v(["cache"])("no-cache"),x=y(["params"]),k=y(["headers"]),E=new RegExp("^(?:[a-z]+:)?//","i"),S=g(((e,t)=>t.update("url",(t=>E.test(t)?t:e&&t&&"/"!==t[0]&&"/"!==e[e.length-1]?`${e}/${t}`:`${e}${t}`))));t.default={toURL:f,fromURL:d,fromFetchArguments:function(e,t){return d(e).merge((t?(0,r.fromJS)(t):(0,r.Map)()).remove("url").remove("params"))},performRequest:h,withMethod:b,withBody:w,withHeaders:k,withParams:x,withRoot:S,withNoCache:_,fetchWithTimeout:c}},1704:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validations=t.stringTemplate=t.DecapCmsLibWidgets=void 0;var r=a(n(34635));t.stringTemplate=r;var i=a(n(13433));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}t.validations=i,t.DecapCmsLibWidgets={stringTemplate:r,validations:i}},34635:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SLUG_MISSING_REQUIRED_DATE=void 0,t.addFileTemplateFields=function(e,t,n=""){if(!e)return t;const r=(0,l.extname)(e),i=(0,l.basename)(e,r),o=(0,l.dirname)(e).replace(new RegExp(`^(/?)${n}/?`),"$1");return t.withMutations((e=>{e.set("dirname",o),e.set("filename",i),e.set("extension",""===r?r:r.slice(1))}))},t.compileStringTemplate=function(e,t,n="",r=(0,a.Map)(),i){let o;const s=null!==t,l=e.replace(RegExp(p,"g"),((e,a,s,l)=>{let u;const f=function(e,t){if(!e.startsWith(d))return;const n=e.slice(d.length),r=t.getIn(v(n));return"object"==typeof r&&null!==r?JSON.stringify(r):r}(a,r);if(f)u=f;else{if(m[a]&&!t)return o=!0,"";u=m[a]?m[a](t):"slug"===a?n:r.getIn(v(a),"")}if(i)return i(u);{const e=function(e){if(e){let t=null;const n=c.find((n=>(t=e.match(n.pattern),!!t)));if(n)return e=>n.transform(e,t)}return null}(l);e&&(u=e(u))}return u}));if(s&&o){const e=new Error;throw e.name=g,e}return l},t.dateParsers=void 0,t.expandPath=function e({data:t,path:n,paths:r=[]}){n.endsWith(".*")&&(n+=".");const a=n.split(".*.");if(1===a.length)r.push(n);else{const n=a[0],s=(0,o.default)(t,n);Array.isArray(s)&&s.forEach(((o,s)=>{e({data:t,path:(0,i.default)(`${n}.${s}.${a.slice(1).join(".*.")}`,"."),paths:r})}))}return r},t.extractTemplateVars=function(e){const t=RegExp(p,"g"),n=RegExp(f,"g");return(e.match(t)||[]).map((e=>{const t=e.match(n);return t?t[0]:""}))},t.keyToPathArray=v,t.parseDateFromEntry=function(e,t){if(!t)return;const n=e.getIn(["data",t]),r=n&&(0,s.default)(n);return r&&r.isValid()?r.toDate():void 0};var r=u(n(36585)),i=u(n(1573)),o=u(n(72579)),a=n(46670),s=u(n(28879)),l=n(21023);function u(e){return e&&e.__esModule?e:{default:e}}const c=[{pattern:/^upper$/,transform:e=>e.toUpperCase()},{pattern:/^lower$/,transform:e=>e.toLowerCase()},{pattern:/^date\('(.+)'\)$/,transform:(e,t)=>(0,s.default)(e).format(t[1])},{pattern:/^default\('(.+)'\)$/,transform:(e,t)=>e||t[1]},{pattern:/^ternary\('(.*)',\s*'(.*)'\)$/,transform:(e,t)=>e?t[1]:t[2]},{pattern:/^truncate\(([0-9]+)(?:(?:,\s*['"])([^'"]*)(?:['"]))?\)$/,transform:(e,t)=>{const n=t[2]||"...",i=parseInt(t[1])+n.length;return(0,r.default)(e,{length:i,omission:n})}}],d="fields.",f="([^}{|]+)",p=`{{${f}( \\| ([^}{]+))?}}`;function h(e){return`0${e}`.slice(-2)}const m=t.dateParsers={year:e=>`${e.getUTCFullYear()}`,month:e=>h(e.getUTCMonth()+1),day:e=>h(e.getUTCDate()),hour:e=>h(e.getUTCHours()),minute:e=>h(e.getUTCMinutes()),second:e=>h(e.getUTCSeconds())},g=t.SLUG_MISSING_REQUIRED_DATE="SLUG_MISSING_REQUIRED_DATE";function v(e){if(!e)return[];const t=[],n=e.split("");let r,i=[];for(;r=n.shift();)["[","]","."].includes(r)?(i.length>0&&t.push(i.join("")),i=[]):i.push(r);return i.length>0&&t.push(i.join("")),t}},13433:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateMinMax=function(e,t,n,r,o){function a(n){return{type:"RANGE",message:e(`editor.editorControlPane.widget.${n}`,{fieldLabel:t,minCount:r,maxCount:o,count:r})}}return[r,o,null==n?void 0:n.size].every(i.default)&&(n.sizeo)?a(r===o?"rangeCountExact":"rangeCount"):(0,i.default)(r)&&r>0&&null!=n&&n.size&&n.sizeo?a("rangeMax"):void 0};var r,i=(r=n(80537))&&r.__esModule?r:{default:r}},63379:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Вход",loggingIn:"Влизане...",loginWithNetlifyIdentity:"Вход с Netlify Identity",loginWithAzure:"Вход с Azure",loginWithBitbucket:"Вход с Bitbucket",loginWithGitHub:"Вход с GitHub",loginWithGitLab:"Вход с GitLab",loginWithGitea:"Вход с Gitea",errors:{email:"Въведете вашия имейл.",password:"Въведете паролата.",identitySettings:"Няма достъп до настройките. Ако използвате git-gateway, не забравяйте да активирате услугата Identity и Git Gateway."}},app:{header:{content:"Съдържание",workflow:"Работен процес",media:"Мултимедийни файлове",quickAdd:"Бързо добавяне"},app:{errorHeader:"Грешка при зареждането на конфигурацията на CMS",configErrors:"Грешки в конфигурацията",checkConfigYml:"Проверете вашия файл config.yml.",loadingConfig:"Зареждане на конфигурация ...",waitingBackend:"В очакване на отговор от бекенда ..."},notFoundPage:{header:"Не е намерен"}},collection:{sidebar:{collections:"Колекции",allCollections:"Всички колекции",searchAll:"Търсете навсякъде",searchIn:"Търсене в"},collectionTop:{sortBy:"Сортирай по",viewAs:"Виж като",newButton:"Създай %{collectionLabel}",ascending:"Възходящ",descending:"Низходящ",searchResults:'Ресултати от търсенето за "%{searchTerm}"',searchResultsInCollection:'Ресултати от търсенето за "%{searchTerm}" в %{collection}',filterBy:"Филтрирай по",groupBy:"Групирай по"},entries:{loadingEntries:"Зареждане на записи...",cachingEntries:"Кеширане на записи...",longerLoading:"Това може да отнеме няколко минути",noEntries:"Няма записи"},groups:{other:"Други",negateLabel:"Не %{label}"},defaultFields:{author:{label:"Автор"},updatedOn:{label:"Обновено"}}},editor:{editorControl:{field:{optional:"незадължителен"}},editorControlPane:{widget:{required:"%{fieldLabel} е задължително.",regexPattern:"%{fieldLabel} не съответства на модела: %{pattern}.",processing:"%{fieldLabel} се обработва.",min:"%{fieldLabel} трябва да бъде поне %{minValue}.",range:"%{fieldLabel} трябва да бъде между %{minValue} и %{maxValue}.",max:"%{fieldLabel} трябва да бъде %{maxValue} или по-малко.",rangeCount:"%{fieldLabel} трябва да има между %{minCount} и %{maxCount} елемент(и).",rangeCountExact:"%{fieldLabel} трябва да има точно %{count} елемент(и).",minCount:"%{fieldLabel} трябва да бъде поне %{minCount} елемент(и).",maxCount:"%{fieldLabel} трябва да бъде %{maxCount} или по-малко елемент(и).",invalidPath:"'%{path}' не е валиден път",pathExists:"Пътят '%{path}' вече съществува"},i18n:{writingInLocale:"Писане на %{locale}"}},editor:{onLeavePage:"Наистина ли искате да напуснете тази страница?",onUpdatingWithUnsavedChanges:"Имате незапазени промени, моля, запазете преди актуализиране на състоянието.",onPublishingNotReady:"Моля, актуализирайте състоянието на „Готово“, преди да публикувате",onPublishingWithUnsavedChanges:"Имате незапазени промени, моля, запазете преди публикуване.",onPublishing:"Наистина ли искате да публикувате този запис?",onUnpublishing:"Наистина ли искате да прекратите публикуването на този запис?",onDeleteWithUnsavedChanges:"Наистина ли искате да изтриете този публикуван запис, както и незаписаните промени от текущата сесия?",onDeletePublishedEntry:"Наистина ли искате да изтриете този публикуван запис?",onDeleteUnpublishedChangesWithUnsavedChanges:"Това ще изтрие всички непубликувани промени в този запис, както и незаписаните ви промени от текущата сесия. Все още ли искате да изтриете?",onDeleteUnpublishedChanges:"Всички непубликувани промени в този запис ще бъдат изтрити. Все още ли искате да изтриете?",loadingEntry:"Зареждане на запис...",confirmLoadBackup:"За този запис беше възстановен локален архив, бихте ли искали да го използвате?"},editorInterface:{toggleI18n:"Превключване i18n",togglePreview:"Превключване на визуализация",toggleScrollSync:"Синхронизирай превъртане"},editorToolbar:{publishing:"Публикуване...",publish:"Публикувай",published:"Публикуван",unpublish:"Непубликувай",duplicate:"Дублирай",unpublishing:"Непубликуване...",publishAndCreateNew:"Публикувай и създай нов",publishAndDuplicate:"Публикувай и дублирай",deleteUnpublishedChanges:"Изтриване на непубликувани промени",deleteUnpublishedEntry:"Изтрий непубликувани записи",deletePublishedEntry:"Изтрий публикувани записи",deleteEntry:"Изтрий запис",saving:"Запазване...",save:"Запази",deleting:"Изтриване...",updating:"Актуализиране...",status:"Cъстояние: %{status}",backCollection:"Записване в %{collectionLabel} колекция",unsavedChanges:"Незапазени Промени",changesSaved:"Запазени промени",draft:"Чернова",inReview:"В ревю",ready:"Готово",publishNow:"Публикувай сега",deployPreviewPendingButtonLabel:"Проверете визуализацията",deployPreviewButtonLabel:"Визуализация",deployButtonLabel:"Изглед"},editorWidgets:{markdown:{bold:"Удебелен",italic:"Курсив",code:"Код",link:"Връзка",linkPrompt:"Моля, въведете URL на връзката",headings:"Заглавия",quote:"Цитат",bulletedList:"Маркиран Списък",numberedList:"Номериран Списък",addComponent:"Добави Компонент",richText:"Форматиране на текст",markdown:"Markdown"},image:{choose:"Избери изображение",chooseUrl:"Вмъкване от URL",replaceUrl:"Замяна с URL",promptUrl:"Въведете URL адреса на изображението",chooseDifferent:"Избери различно изображение",remove:"Премахни изображение"},file:{choose:"Избери файл file",chooseUrl:"Вмъкване от URL",replaceUrl:"Замяна с URL",promptUrl:"Въведете URL адреса на файла",chooseDifferent:"Избери различен файл",remove:"Премахни файл"},unknownControl:{noControl:"Няма контрол за приспособлението '%{widget}'."},unknownPreview:{noPreview:"Няма визуализация за приспособлението '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Сега",clear:"Изчисти"}}},mediaLibrary:{mediaLibraryCard:{draft:"Чернова",copy:"Копирай",copyUrl:"Копирай URL",copyPath:"Копитай път",copyName:"Копитай име",copied:"Копирано"},mediaLibrary:{onDelete:"Наистина ли искате да изтриете избрания медиен файл?",fileTooLarge:"Файлът е твърде голям.\nНастройките не позволяват запазване на файлове по-големи от %{size} kB."},mediaLibraryModal:{loading:"Зареждане...",noResults:"Няма резултати.",noAssetsFound:"Няма намерени ресурси.",noImagesFound:"Няма намерени изображения.",private:"Частен ",images:"Изображения",mediaAssets:"Медийни ресурси",search:"Търсене...",uploading:"Качване...",upload:"Качи",download:"Изтегли",deleting:"Изтриване...",deleteSelected:"Изтрай избрани",chooseSelected:"Избери избрани"}},ui:{default:{goBackToSite:"Обратно към сайта"},errorBoundary:{title:"Грешка",details:"Възникна грешка - моля ",reportIt:"докладвайте в GitHub.",detailsHeading:"Детайли",privacyWarning:"При отваряне на билет той автоматично се попълва предварително със съобщение за грешка и информация за отстраняване на грешки.\nМоля, проверете дали данните са верни и не съдържат поверителна информация.",recoveredEntry:{heading:"Възстановен документ",warning:"Моля, копирайте това съобщение някъде, преди да напуснете страницата!",copyButtonLabel:"Копиране в клипборда"}},settingsDropdown:{logOut:"Изход"},toast:{onFailToLoadEntries:"Неуспешно зареждане на записа: %{details}",onFailToLoadDeployPreview:"Неуспешно зареждане на визуализация: %{details}",onFailToPersist:"Неуспешно запазване на записа: %{details}",onFailToDelete:"Неуспешно изтриване на записа: %{details}",onFailToUpdateStatus:"Неуспешно актуализиране на състоянието: %{details}",missingRequiredField:"Извинете, пропуснахте задължително поле. Моля, попълнете преди запазване.",entrySaved:"Записът е запазен",entryPublished:"Записът е публикуван",entryUnpublished:"Записът е непубликуван",onFailToPublishEntry:"Неуспешно публикуване на запис: %{details}",onFailToUnpublishEntry:"Неуспешно премахване на публикацията на записа: %{details}",entryUpdated:"Статусът на записа е актуализиран",onDeleteUnpublishedChanges:"Непубликуваните промени са изтрити",onFailToAuth:"%{details}",onLoggedOut:"Излезли сте. Моля, запазете всички данни и влезте отново",onBackendDown:"Има прекъсване в работата на бекенда. Виж детайлите %{details}"}},workflow:{workflow:{loading:"Зареждане на редакционни записи",workflowHeading:"Редакционен работен процес",newPost:"Нова публикация",description:"Броят на записите, които очакват проверка -% {smart_count}, готови за публикуване -% {readyCount}. |||| Броят на записите, които очакват проверка -% {smart_count}, готови за публикуване -% {readyCount}. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Изтриване на промените",deleteNewEntry:"Изтриване на нов запис",pubChanges:"Публикуване на промени",objavNewEntry:"Публикуване на нов запис"},workflowList:{onDeleteEntry:"Наистина ли искате да изтриете този запис?",onPublishingNotReadyEntry:'Могат да се публикуват само елементи със статус "Готов". Плъзенете картата в колоната "Готов" за да активирате публикуването.',onPublishEntry:"Наистина ли искате да публикувате този запис?",draftHeader:"Чернови",inReviewHeader:"В Ревю",readyHeader:"Готов",currentEntries:"%{smart_count} запис |||| %{smart_count} записи"}}}},20026:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Iniciar sessió",loggingIn:"Iniciant sessió...",loginWithNetlifyIdentity:"Iniciar sessió amb l'identitat de Netlify",loginWithBitbucket:"Iniciar sessió amb Bitbucket",loginWithGitHub:"Iniciar sessió amb GitHub",loginWithGitLab:"Iniciar sessió amb GitLab",loginWithGitea:"Iniciar sessió amb Gitea",errors:{email:"Comprova que has escrit el teu email.",password:"Si us plau escriu la teva contrasenya.",identitySettings:"No s'ha pogut obtenir accés a les configuracions d'identitat. Quan feu servir backend de git-gateway, assegureu-vos que activeu el servei d’identitat i la passarel·la de Git."}},app:{header:{content:"Contingut",workflow:"Flux Editorial",media:"Multimèdia",quickAdd:"Afegir"},app:{errorHeader:"Error al carregar la configuració del CMS",configErrors:"Errors de configuració",checkConfigYml:"Comprovi l'arxiu config.yml.",loadingConfig:"Carregant configuració....",waitingBackend:"Esperant al servidor..."},notFoundPage:{header:"No trobat"}},collection:{sidebar:{collections:"Col·leccions",allCollections:"Totes les col·leccions",searchAll:"Buscar tots",searchIn:"Buscar a"},collectionTop:{sortBy:"Ordenar per",viewAs:"Veure com",newButton:"Nou %{collectionLabel}",ascending:"Ascendent",descending:"Descendent",searchResults:'Buscar resultats per "%{searchTerm}"',searchResultsInCollection:'Buscar resultats per "%{searchTerm}" a %{collection}',filterBy:"Filtrar per",groupBy:"Agrupar per"},entries:{loadingEntries:"Carregant entrades",cachingEntries:"Emmagatzemant entrades a la caché",longerLoading:"Això podria tardar uns minuts",noEntries:"Cap entrada"},groups:{other:"Altre",negateLabel:"No %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Actualitzat el"}}},editor:{editorControl:{field:{optional:"opcional"}},editorControlPane:{widget:{required:"%{fieldLabel} és obligatori.",regexPattern:"%{fieldLabel} no coincideix amb el patró: %{pattern}.",processing:"%{fieldLabel} està processant.",range:"%{fieldLabel} ha d'estar entre %{minValue} i %{maxValue}.",min:"%{fieldLabel} ha ser com a mínim %{minValue}.",max:"%{fieldLabel} ha de ser %{maxValue} o més.",rangeCount:"%{fieldLabel} ha de tenir entre %{minCount} i %{maxCount} element(s).",rangeCountExact:"%{fieldLabel} ha de tenir exactament %{count} element(s).",rangeMin:"%{fieldLabel} ha de tenir com a mínim %{minCount} d'element(s).",rangeMax:"%{fieldLabel} ha de ser %{maxCount} o inferior.",invalidPath:"'%{path}' no és una ruta valida",pathExists:"'%{path}' ja existeix"},i18n:{writingInLocale:"Escriure en %{locale}"}},editor:{onLeavePage:"Estàs segur que vols deixar aquesta pàgina?",onUpdatingWithUnsavedChanges:"Tens canvis no guardats, si us plau, guarda'ls abans d'actualitzar l'estat.",onPublishingNotReady:'Si us plau, actualitza l\'estat a "Llest" abans de publicar.',onPublishingWithUnsavedChanges:"Tens canvis no guardats, si us plau, guarda'ls abans de publicar-los.",onPublishing:"Estàs segur que vols publicar aquesta entrada?",onUnpublishing:"Estàs segur que vols esborrar aquesta entrada?",onDeleteWithUnsavedChanges:"Està segur que vol eliminar aquesta entrada publicada, així com els canvis no guardats de la sessió actual?",onDeletePublishedEntry:"Està segur que vol eliminar aquesta entrada publicada?",onDeleteUnpublishedChangesWithUnsavedChanges:"Això eliminarà tots els canvis no publicats d'aquesta entrada així com els canvis no guardats de la sessió actual. Encara vol procedir?",onDeleteUnpublishedChanges:"Tots els canvis no publicats en aquesta entrada seràn esborrats. Encara els vol eliminar?",loadingEntry:"Carregant entrada...",confirmLoadBackup:"S'ha recuperat una copia de seguretat local per aquesta entrada. La vol utilitzar?"},editorInterface:{toggleI18n:"Mostrar/Amagar traduccions",togglePreview:"Mostrar/Amagar previsualització"},editorToolbar:{publishing:"Publicant...",publish:"Publicar",published:"Publicat",unpublish:"Despublicar",duplicate:"Duplicar",unpublishing:"Despublicant...",publishAndCreateNew:"Publicar i crear de nou",publishAndDuplicate:"Publica i duplica",deleteUnpublishedChanges:"Eliminar canvis no publicats",deleteUnpublishedEntry:"Eliminar entrada no publicada",deletePublishedEntry:"Eliminar entrada publicada",deleteEntry:"Eliminar entrada",saving:"Guardant...",save:"Guardar",deleting:"Eliminant...",updating:"Actualizant...",status:"Estat: %{status}",backCollection:"Escrivint a la colecció %{collectionLabel}",unsavedChanges:"Canvis no guardats",changesSaved:"Canvis guardats",draft:"Esborrany",inReview:"En revisió",ready:"Llest",publishNow:"Publicar ara",deployPreviewPendingButtonLabel:"Comprovar Vista Prèvia",deployPreviewButtonLabel:"Veure Vista Prèvia",deployButtonLabel:"Veure publicació"},editorWidgets:{markdown:{bold:"Negreta",italic:"Cursiva",code:"Codi",link:"Enllaç",linkPrompt:"Introdueix l'URL de l'enllaç",headings:"Encapçalaments",bulletedList:"Llista",numberedList:"Llista numèrica",addComponent:"Afegir component",richText:"Text enriquit",markdown:"Markdown"},image:{choose:"Escull una imatge",chooseUrl:"Introdueix una URL",replaceUrl:"Substitueix per una URL",promptUrl:"Introdueix l'URL de la imatge",chooseDifferent:"Escull una imatge diferent",remove:"Treu la imatge"},file:{choose:"Escull un arxiu",chooseUrl:"Introdueix una URL",replaceUrl:"Substitueix per una URL",promptUrl:"Introdueix l'URL de l'arxiu",chooseDifferent:"Escull un arxiu diferent",remove:"Esborrar arxiu"},unknownControl:{noControl:"No existeix un control per al widget '%{widget}'."},unknownPreview:{noPreview:"No existeix una vista prèvia per al widget '%{widget}'."},headingOptions:{headingOne:"Encapçalament 1",headingTwo:"Encapçalament 2",headingThree:"Encapçalament 3",headingFour:"Encapçalament 4",headingFive:"Encapçalament 5",headingSix:"Encapçalament 6"},datetime:{now:"Ara",clear:"Netejar"}}},mediaLibrary:{mediaLibraryCard:{draft:"Esborrany",copy:"Copiar",copyUrl:"Copiar URL",copyPath:"Copiar path",copyName:"Copiar nom",copied:"Copiat"},mediaLibrary:{onDelete:"Està segur de que vol eliminar el mitjà seleccionat?",fileTooLarge:"El fitxer és massa gran.\nLa configuració no permet fitxers més grans de %{size} kB."},mediaLibraryModal:{loading:"Carregant...",noResults:"Sense resultats.",noAssetsFound:"Arxius no trobats.",noImagesFound:"Imatges no trobades.",private:"Privat",images:"Imatges",mediaAssets:"Arxius multimèdia",search:"Buscar...",uploading:"Penjant...",upload:"Penjar nou",download:"Descarregar",deleting:"Eliminant...",deleteSelected:"Eliminar selecció",chooseSelected:"Confirmar selecció"}},ui:{default:{goBackToSite:"Torna enrere al lloc"},errorBoundary:{title:"Error",details:"S'ha produït un error - si us plau ",reportIt:"Informa'ns d'això a GitHub.",detailsHeading:"Detalls",recoveredEntry:{heading:"Document recuperat",warning:"Si us plau, copiï/enganxi això en algun lloc abans de navegar a una altre pàgina!",copyButtonLabel:"Copiar al porta-retalls"}},settingsDropdown:{logOut:"Tancar sessió"},toast:{onFailToLoadEntries:"No s'ha ha pogut carregar l'entrada: %{details}",onFailToLoadDeployPreview:"No s'ha pogut carregar la vista prèvia: %{details}",onFailToPersist:"No s'ha pogut guardar l'entrada: %{details}",onFailToDelete:"No s'ha pogut eliminar l'entrada: %{details}",onFailToUpdateStatus:"No s'ha pogut actualitzar l'estat: %{details}",missingRequiredField:"Ups, no ha omplert un camp obligatori. Si us plau, ompli'l abans de guardar.",entrySaved:"Entrada guardada",entryPublished:"Entrada publicada",entryUnpublished:"Entrada despublicada",onFailToPublishEntry:"No s'ha pogut publicar: %{details}",onFailToUnpublishEntry:"No s'ha pogut despublicar l'entrada: %{details}",entryUpdated:"Estat de l'entrada actualitzat",onDeleteUnpublishedChanges:"Canvis no publicats eliminats",onFailToAuth:"%{details}",onLoggedOut:"La teva sessió ha estat tancada. Si us plau, torna a iniciar-la",onBackendDown:"El servidor està patint problemes. Consulta %{details} per a més informació"}},workflow:{workflow:{loading:"Carregant Entradas del Flux Editorial",workflowHeading:"Flux Editorial",newPost:"Nou article",description:"%{smart_count} entrada esperant revisió, %{readyCount} llesta per a publicar |||| %{smart_count} entrades esperant revisió, %{readyCount} llestes per a publicar. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} per %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"per %{author}",deleteChanges:"Eliminar canvis",deleteNewEntry:"Eliminar nova entrada",publishChanges:"Publicar canvis",publishNewEntry:"Publicar nova entrada"},workflowList:{onDeleteEntry:"Està segur que vol borrar aquesta entrada?",onPublishingNotReadyEntry:'Només es poden publicar elements amb estat "Llest". Si us plau, arrossegui la targeta fins la columna "Llest" per a permetre\'n la publicació',onPublishEntry:"Està segur que vol publicar aquesta entrada?",draftHeader:"Esborranys",inReviewHeader:"En revisió",readyHeader:"Llest",currentEntries:"%{smart_count} entrada |||| %{smart_count} entrades"}}}},47775:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Přihlásit",loggingIn:"Přihlašování…",loginWithNetlifyIdentity:"Přihlásit pomocí Netlify Identity",loginWithAzure:"Přihlásit pomocí Azure",loginWithBitbucket:"Přihlásit pomocí Bitbucket",loginWithGitHub:"Přihlásit pomocí GitHub",loginWithGitLab:"Přihlásit pomocí GitLab",loginWithGitea:"Přihlásit pomocí Gitea",errors:{email:"Vyplňte e-mailovou adresu.",password:"Vyplňte heslo.",identitySettings:"Nastavení identity nenalezeno. Používáte-li git-gateway server nezapomeňte aktivovat službu Identity a Git Gateway."}},app:{header:{content:"Obsah",workflow:"Workflow",media:"Média",quickAdd:"Přidat"},app:{errorHeader:"Chyba při načítání CMS konfigurace",configErrors:"Chyba konfigurace",checkConfigYml:"Zkontrolujte soubor config.yml.",loadingConfig:"Načítání konfigurace…",waitingBackend:"Čekání na server…"},notFoundPage:{header:"Nenalezeno"}},collection:{sidebar:{collections:"Kolekce",allCollections:"Všechny kolekce",searchAll:"Hledat",searchIn:"Hledat v"},collectionTop:{sortBy:"Seřadit podle",viewAs:"Zobrazit jako",newButton:"Nový %{collectionLabel}",ascending:"Vzestupné",descending:"Sestupné",searchResults:'Výsledky vyhledávání pro "%{searchTerm}"',searchResultsInCollection:'Výsledky vyhledávání pro "%{searchTerm}" v kolekci %{collection}',filterBy:"Filtrovat podle",groupBy:"Seskupit podle"},entries:{loadingEntries:"Načítání záznamů",cachingEntries:"Úkládání záznamů do mezipaměti",longerLoading:"Načítání může trvat několik minut",noEntries:"Žádné záznamy"},groups:{other:"Ostatní",negateLabel:"Není %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Poslední aktualizace"}}},editor:{editorControl:{field:{optional:"volitelný"}},editorControlPane:{widget:{required:"%{fieldLabel} je povinný.",regexPattern:"%{fieldLabel} nesouhlasí s předepsaným vzorem: %{pattern}.",processing:"%{fieldLabel} se zpracovává.",range:"%{fieldLabel} musí být mezi %{minValue} a %{maxValue}.",min:"%{fieldLabel} musí být alespoň %{minValue}.",max:"%{fieldLabel} musí být %{maxValue} nebo méně.",rangeCount:"%{fieldLabel} musí mít %{minCount} až %{maxCount} položek.",rangeCountExact:"%{fieldLabel} musí mít přesně %{count} položek.",rangeMin:"%{fieldLabel} musí mít nejméně %{minCount} položky.",rangeMax:"%{fieldLabel} musí mít %{maxCount} nebo méně položek.",invalidPath:"'%{path}' není platnou cestou.",pathExists:"Cesta '%{path}' už existuje."},i18n:{writingInLocale:"Psát v %{locale}"}},editor:{onLeavePage:"Chcete opravdu opustit tuto stránku?",onUpdatingWithUnsavedChanges:"Máte neuložené změny. Uložte je prosím před změnou statusu.",onPublishingNotReady:"Změňte stav na „Připraveno“ před publikováním.",onPublishingWithUnsavedChanges:"Máte neuložené změny, prosím uložte je před publikováním.",onPublishing:"Chcete opravdu publikovat tento záznam?",onUnpublishing:"Chcete opravdu zrušit publikování tohoto záznamu?",onDeleteWithUnsavedChanges:"Chcete opravdu vymazat tento publikovaný záznam a všechny neuložené změny z této relace?",onDeletePublishedEntry:"Chcete opravdu smazat tento publikovaný záznam?",onDeleteUnpublishedChangesWithUnsavedChanges:"Tato akce vymaže všechny nepublikované změny v tomto záznamu a také všechny neuložené změny z této relace. Chcete záznam skutečně vymazat?",onDeleteUnpublishedChanges:"Všechny nepublivkoané změny v tomto záznamu budou vymazány. Chcete ho skuteně vymazat?",loadingEntry:"Načítání záznamu…",confirmLoadBackup:"Lokální kopie tohoto záznamu byla nalezena, chcete ji použít?"},editorInterface:{toggleI18n:"Přepnout lokalizaci",togglePreview:"Přepnout náhled",toggleScrollSync:"Sladit skrolování"},editorToolbar:{publishing:"Publikování…",publish:"Publikovat",published:"Publikovaný",unpublish:"Zrušit publikování",duplicate:"Duplikovat",unpublishing:"Rušení publikování…",publishAndCreateNew:"Publikovat a vytvořit nový",publishAndDuplicate:"Publikovat a duplikovat",deleteUnpublishedChanges:"Vymazat nepublikované změny",deleteUnpublishedEntry:"Vymazat nepublikovaný záznam",deletePublishedEntry:"Vymazat publikovaný záznam",deleteEntry:"Vymazat záznam",saving:"Ukládání…",save:"Uložit",deleting:"Vymazávání…",updating:"Aktualizace…",status:"Status: %{status}",backCollection:" Píšete v kolekci %{collectionLabel}",unsavedChanges:"Neuložené změny",changesSaved:"Změny uloženy",draft:"Koncept",inReview:"V revizi",ready:"Připraveno",publishNow:"Publikovat teď",deployPreviewPendingButtonLabel:"Zkontrolovat náhled",deployPreviewButtonLabel:"Zobrazit náhled",deployButtonLabel:"Zobrazit na webu"},editorWidgets:{markdown:{bold:"Tučně",italic:"Kurzíva",code:"Kód",link:"Odkaz",linkPrompt:"Zadejte URL odkazu",headings:"Nadpisy",quote:"Citovat",bulletedList:"Odrážkový seznam",numberedList:"Číslovaný seznam",addComponent:"Přidat součástku",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Vyberte obrázek",chooseUrl:"Přidat z URL",replaceUrl:"Nahradit z URL",promptUrl:"Zadejte URL obrázku",chooseDifferent:"Vyberte jiný obrázek",remove:"Odstranit obrázek"},file:{choose:"Vyberte soubor",chooseUrl:"Přidat z URL",replaceUrl:"Nahradit z URL",promptUrl:"Zadejte URL souboru",chooseDifferent:"Vyberte jiný soubor",remove:"Odebrat soubor"},unknownControl:{noControl:"Žádné ovládání pro widget '%{widget}'."},unknownPreview:{noPreview:"Žádný náhled pro widget '%{widget}'."},headingOptions:{headingOne:"Nadpis 1",headingTwo:"Nadpis 2",headingThree:"Nadpis 3",headingFour:"Nadpis 4",headingFive:"Nadpis 5",headingSix:"Nadpis 6"},datetime:{now:"Teď",clear:"Vymazat"}}},mediaLibrary:{mediaLibraryCard:{draft:"Koncept",copy:"Kopírovat",copyUrl:"Kopírovat URL",copyPath:"Kopírovat cestu",copyName:"Kopírovat název",copied:"Zkopírováno"},mediaLibrary:{onDelete:"Chcete skutečně vymazat označená média?",fileTooLarge:"Soubor je příliš velký.\nSoubor musí být menší než %{size} kB."},mediaLibraryModal:{loading:"Načítání…",noResults:"Nic nenalezeno.",noAssetsFound:"Média nenalezena.",noImagesFound:"Obrázky nenalezeny.",private:"Soukromé ",images:"Obrázky",mediaAssets:"Média",search:"Hledat…",uploading:"Nahrávání…",upload:"Nahrát nový",download:"Stáhnout",deleting:"Vymazávání…",deleteSelected:"Smazat označené",chooseSelected:"Vybrat označené"}},ui:{default:{goBackToSite:"Vrátit se na stránku"},errorBoundary:{title:"Chyba",details:"Nastala chyba – prosím ",reportIt:"nahlašte ji.",detailsHeading:"Detaily",privacyWarning:"Při otevření problému budou předvyplněny ladící data a chybová zpráva.\nProsím zkontrolujte, jestli jsou informace správné, a případně odstraňte citlivé údaje.",recoveredEntry:{heading:"Nalezený dokument",warning:"Prosím zkopírujte dokument do schránky před tím než odejte z této stránky!",copyButtonLabel:"Zkopírovat do schránky"}},settingsDropdown:{logOut:"Odhlásit"},toast:{onFailToLoadEntries:"Chyba při načítání záznamu: %{details}",onFailToLoadDeployPreview:"Chyba při načítání náhledu: %{details}",onFailToPersist:"Chyba při ukládání záznamu: %{details}",onFailToDelete:"Chyba při vymazávání záznamu: %{details}",onFailToUpdateStatus:"Chyba při změně stavu záznamu: %{details}",missingRequiredField:"Vynechali jste povinné pole. Prosím vyplňte ho.",entrySaved:"Záznam uložen",entryPublished:"Záznam publikován",entryUnpublished:"Publikování záznamu zrušeno",onFailToPublishEntry:"Chyba při publikování záznamu: %{details}",onFailToUnpublishEntry:"Chyba při rušení publikování záznamu: %{details}",entryUpdated:"Stav záznamu byl změněn",onDeleteUnpublishedChanges:"Nepublikované změny byly smazány",onFailToAuth:"%{details}",onLoggedOut:"Byli jste odhlášeni, prosím zálohujte všechna data a znova se přihlašte",onBackendDown:"Backend zaznamenal výpadek. Podívejte se do %{details} pro více informací."}},workflow:{workflow:{loading:"Načítání workflow záznamů",workflowHeading:"Schvalovací Workflow",newPost:"Nový post",description:"%{smart_count} záznam čeká na schválení, %{readyCount} připraven k publikaci. |||| %{smart_count} čeká na schválení, %{readyCount} připraveno k publikaci. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} (%{author})",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Vymazat změny",deleteNewEntry:"Vymazat nový záznam",publishChanges:"Publikovat změny",publishNewEntry:"Publikovat nový záznam"},workflowList:{onDeleteEntry:"Opravdu chcete smazat tento záznam?",onPublishingNotReadyEntry:'Pouze položky se statusem "Připraveno" mohou být publikováno. Pro umožnění publikace musíte přetáhnout kartu do sloupce "Připraveno"',onPublishEntry:"Opravdu chcete publikovat tento záznam?",draftHeader:"Koncepty",inReviewHeader:"V revizi",readyHeader:"Připraveno",currentEntries:"%{smart_count} záznam |||| %{smart_count} záznamů"}}}},49312:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Log ind",loggingIn:"Logger ind...",loginWithNetlifyIdentity:"Log ind med Netlify Identity",loginWithAzure:"Log ind med Azure",loginWithBitbucket:"Log ind med Bitbucket",loginWithGitHub:"Log ind med GitHub",loginWithGitLab:"Log ind med GitLab",loginWithGitea:"Log ind med Gitea",errors:{email:"Vær sikker på du har indtastet din e-mail.",password:"Indtast dit kodeord.",identitySettings:"Kunne ikke tilgå identity opsætning. Ved brug af git-gateway som bagvedliggende service, sørg for at aktivere Identity service og Git Gateway."}},app:{header:{content:"Indhold",workflow:"Arbejdsgang",media:"Medier",quickAdd:"Hurtig opret"},app:{errorHeader:"Fejl ved indlæsning af CMS opsætningen",configErrors:"Opsætningsfejl",checkConfigYml:"Kontroller din config.yml fil.",loadingConfig:"Indlæser opsætning...",waitingBackend:"Venter på bagvedliggende service..."},notFoundPage:{header:"Ikke fundet"}},collection:{sidebar:{collections:"Samlinger",allCollections:"Alle samlinger",searchAll:"Søg i alt",searchIn:"Søg i"},collectionTop:{sortBy:"Sorter efter",viewAs:"Vis som",newButton:"Ny %{collectionLabel}",ascending:"Stigende",descending:"Faldende",searchResults:'Søgeresultater for "%{searchTerm}"',searchResultsInCollection:'Søgeresultater for "%{searchTerm}" i %{collection}',filterBy:"Filtrer efter",groupBy:"Grupper efter"},entries:{loadingEntries:"Indlæser dokumenter...",cachingEntries:"Caching af dokumenter...",longerLoading:"Dette kan tage adskillige minutter",noEntries:"Ingen dokumenter"},groups:{other:"Anden",negateLabel:"Ikke %{label}"},defaultFields:{author:{label:"Forfatter"},updatedOn:{label:"Opdateret "}}},editor:{editorControl:{field:{optional:"kan udelades"}},editorControlPane:{widget:{required:"%{fieldLabel} er påkrævet.",regexPattern:"%{fieldLabel} matchede ikke: %{pattern}.",processing:"%{fieldLabel} behandles.",range:"%{fieldLabel} skal være mellem %{minValue} og %{maxValue}.",min:"%{fieldLabel} skal være mindst %{minValue}.",max:"%{fieldLabel} være være %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} skal have mellem %{minCount} og %{maxCount} element(er).",rangeCountExact:"%{fieldLabel} skal have præcis %{count} element(er).",rangeMin:"%{fieldLabel} skal have mindst %{minCount} element(er).",rangeMax:"%{fieldLabel} skal have %{maxCount} eller færre element(er).",invalidPath:"'%{path}' er ikke en gyldig sti",pathExists:"Stien '%{path}' findes allerede"},i18n:{writingInLocale:"Skriver på %{locale}",copyFromLocale:"Kopier fra et andet sprog",copyFromLocaleConfirm:"Vil du indsætte data fra sproget %{locale}?\nAlt eksisterende indhold vil blive overskrevet."}},editor:{onLeavePage:"Er du sikker på at du vil forlade siden?",onUpdatingWithUnsavedChanges:"Du har ændringer der ikke er gemt, gem disse før status ændres.",onPublishingNotReady:'Skift status til "Klar" inden publicering.',onPublishingWithUnsavedChanges:"Du har ændringer der ikke er gemt, gem inden publicing.",onPublishing:"Er du sikker på at du vil publicere dette dokument?",onUnpublishing:"Er du sikker på at du vil afpublicere dette dokument?",onDeleteWithUnsavedChanges:"Er du sikker på at du vil slette dette tidliere publiceret dokument, samt dine nuværende ugemte ændringer fra denne session?",onDeletePublishedEntry:"Er du sikker på at du vil slette dette tidliere publiceret dokument?",onDeleteUnpublishedChangesWithUnsavedChanges:"Alle ikke publicerede ændringer til dette dokument vil blive slettet ligesom dine nuværende ugemte ændringer fra denne session. Er du sikker på at du vil slette?",onDeleteUnpublishedChanges:"Alle ikke publicerede ændringer til dette dokument vil blive slettet. Er du sikker på at du vil slette?",loadingEntry:"Indlæser dokument...",confirmLoadBackup:"En lokal sikkerhedskopi blev gendannet for dette dokument, vil du anvende denne?"},editorToolbar:{publishing:"Publicerer...",publish:"Publicer",published:"Publiceret",unpublish:"Afpublicer",duplicate:"Kopier",unpublishing:"Afpublicerer...",publishAndCreateNew:"Publicer og opret ny",publishAndDuplicate:"Publicer og kopier",deleteUnpublishedChanges:"Slet upublicerede ændringer",deleteUnpublishedEntry:"Slet upubliceret dokument",deletePublishedEntry:"Slet publiceret dokument",deleteEntry:"Slet dokument",saving:"Gemmer...",save:"Gem",statusInfoTooltipDraft:"Status for elementet er kladde. For at afslutte og sende til gennemsyn, skift status til ‘Til gennemsyn’",statusInfoTooltipInReview:"Elementet er til gennemsyn, det er ikke nødvendigt med yderligere handlinger. Du kan dog stadig lave yderligere ændringer mens det er til gennemsyn.",deleting:"Sletter...",updating:"Opdaterer...",status:"Status: %{status}",backCollection:" Skriver til %{collectionLabel} samlingen",unsavedChanges:"Ugemte ændringer",changesSaved:"Ændringer gemt",draft:"Kladder",inReview:"Til gennemsyn",ready:"Klar",publishNow:"Publicer nu",deployPreviewPendingButtonLabel:"Lav preview",deployPreviewButtonLabel:"Vis preview",deployButtonLabel:"Vis live"},editorWidgets:{markdown:{bold:"Fed",italic:"Kursiv",code:"Kode",link:"Link",linkPrompt:"Indtast URL for link",headings:"Overskrifter",quote:"Citat",bulletedList:"Punktopstilling",numberedList:"Nummeret liste",addComponent:"Tilføj komponent",richText:"Formatteret tekst",markdown:"Markdown"},image:{choose:"Vælg et billede",chooseMultiple:"Vælg billeder",chooseUrl:"Indsæt fra URL",replaceUrl:"Erstat med URL",promptUrl:"Indtast URL for billeder",chooseDifferent:"Vælg et andet billede",addMore:"Tilføj flere billeder",remove:"Fjern billede",removeAll:"Fjern alle billeder"},file:{choose:"Vælg fil",chooseUrl:"Indsæt fra URL",chooseMultiple:"Vælg filer",replaceUrl:"Erstat med URL",promptUrl:"Indtast URL for filen",chooseDifferent:"Vælg en anden fil",addMore:"Tilføj flere filer",remove:"Fjern fil",removeAll:"Fjern alle filer"},unknownControl:{noControl:"Ingen kontrol for '%{widget}'."},unknownPreview:{noPreview:"Ingen preview for '%{widget}'."},headingOptions:{headingOne:"Overskrift 1",headingTwo:"Overskrift 2",headingThree:"Overskrift 3",headingFour:"Overskrift 4",headingFive:"Overskrift 5",headingSix:"Overskrift 6"},datetime:{now:"Nu",clear:"Ryd"},list:{add:"Tilføj %{item}",addType:"Tilføj %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Kladde",copy:"Kopier",copyUrl:"Kopier URL",copyPath:"Kopier sti",copyName:"Kopier navn",copied:"Kopieret"},mediaLibrary:{onDelete:"Er du sikker på at du vil slette det valgte medie?",fileTooLarge:"Filen er for stor.\nOpsætningen tillader ikke filer større end %{size} kB."},mediaLibraryModal:{loading:"Indlæser...",noResults:"Ingen resultater.",noAssetsFound:"Ingen elementer fundet.",noImagesFound:"Ingen billeder fundet.",private:"Privat ",images:"Billeder",mediaAssets:"Medie elementer",search:"Søg...",uploading:"Uploader...",upload:"Upload",download:"Download",deleting:"Slet...",deleteSelected:"Slet valgte",chooseSelected:"Anvend valgte"}},ui:{default:{goBackToSite:"Tilbage til hjemmesiden"},errorBoundary:{title:"Fejl",details:"Der opstod en fejl - venligst ",reportIt:"opret et issue på GitHub.",detailsHeading:"Detalger",privacyWarning:"Ved at oprette et issue forudfyldes det med fejlbeskeden og data til debugging.\nKontroller venligst at informationerne er korrekte og fjern eventuelle følsomme data.",recoveredEntry:{heading:"Gendannet dokument",warning:"Kopier dette et sted hen inden du navigerer væk!",copyButtonLabel:"Kopier til udklipsholder"}},settingsDropdown:{logOut:"Log af"},toast:{onFailToLoadEntries:"Fejl ved indlæsning af dokumenter: %{details}",onFailToLoadDeployPreview:"Preview kunne ikke indlæses: %{details}",onFailToPersist:"Dokumentet kunne ikke gemmes: %{details}",onFailToDelete:"Dokumentet kunne ikke slettes: %{details}",onFailToUpdateStatus:"Status kunne ikke opdateres: %{details}",missingRequiredField:"Ups, du mangler et påkrævet felt. Udfyld de påkrævede felter før dokumentet gemmes.",entrySaved:"Dokumentet er gemt",entryPublished:"Dokumentet er publiceret ",entryUnpublished:"Dokumentet er afpubliceret",onFailToPublishEntry:"Kunne ikke publicere på grund af en fejl: %{details}",onFailToUnpublishEntry:"Kunne ikke afpublicere på grund af en fejl: %{details}",entryUpdated:"Dokumentstatus er opdateret",onDeleteUnpublishedChanges:"Upublicerede ændringer blev slettet",onFailToAuth:"%{details}",onLoggedOut:"Du er blevet logget ind, gem venligst evt. ændringer og log på igen",onBackendDown:"Den bagvedliggende service er ikke tilgængelig i øjeblikket. Se %{details} for mere information"}},workflow:{workflow:{loading:"Indlæser dokumenter i redaktionel arbejdsgang",workflowHeading:"Redaktionel arbejdsgang",newPost:"Nyt indlæg",description:"%{smart_count} dokumenter afventer gennemsyn, %{readyCount} er klar til live. |||| %{smart_count} dokumenter afventer gennemsyn, %{readyCount} klar til go live. ",dateFormat:"D. MMMM"},workflowCard:{lastChange:"%{date} af %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"af %{author}",deleteChanges:"Slet ændringer",deleteNewEntry:"Slet nye dokumenter",publishChanges:"Publicer ændringer",publishNewEntry:"Publicer nye dokumenter"},workflowList:{onDeleteEntry:"Er du sikker på at du vil slette dette dokument?",onPublishingNotReadyEntry:'Kun dokumenter med "Klar" status kan publiceres. Træk kortet til "Klar" kolonnen for at tillade publicering.',onPublishEntry:"Er du sikker på at du vil publicere dokumentet?",draftHeader:"Kladder",inReviewHeader:"Til gennemsyn",readyHeader:"Klar",currentEntries:"%{smart_count} dokument |||| %{smart_count} dokumenter"}}}},36407:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Login",loggingIn:"Sie werden eingeloggt...",loginWithNetlifyIdentity:"Mit Netlify Identity einloggen",loginWithAzure:"Mit Azure einloggen",loginWithBitbucket:"Mit Bitbucket einloggen",loginWithGitHub:"Mit GitHub einloggen",loginWithGitLab:"Mit GitLab einloggen",loginWithGitea:"Mit Gitea einloggen",errors:{email:"Stellen Sie sicher, Ihre E-Mail-Adresse einzugeben.",password:"Bitte geben Sie Ihr Passwort ein.",identitySettings:"Identity Einstellungen konnten nicht abgerufen werden. Stellen Sie bei der Verwendung des Git-Gateway Backends sicher, den Identity Service und das Git Gateway zu aktivieren."}},app:{header:{content:"Inhalt",workflow:"Arbeitsablauf",media:"Medien",quickAdd:"Schnell-Erstellung"},app:{errorHeader:"Fehler beim Laden der CMS-Konfiguration.",configErrors:"Konfigurationsfehler",checkConfigYml:"Überprüfen Sie die config.yml Konfigurationsdatei.",loadingConfig:"Konfiguration laden...",waitingBackend:"Auf Server warten..."},notFoundPage:{header:"Nicht gefunden"}},collection:{sidebar:{collections:"Inhaltstypen",allCollections:"Allen Inhaltstypen",searchAll:"Alles durchsuchen",searchIn:"Suchen in"},collectionTop:{sortBy:"Sortieren nach",viewAs:"Anzeigen als",newButton:"Neue(r/s) %{collectionLabel}",ascending:"Aufsteigend",descending:"Absteigend",searchResults:'Suchergebnisse für "%{searchTerm}"',searchResultsInCollection:'Suchergebnisse für "%{searchTerm}" in %{collection}',filterBy:"Filtern nach",groupBy:"Gruppieren nach"},entries:{loadingEntries:"Beiträge laden",cachingEntries:"Beiträge zwischenspeichern",longerLoading:"Diese Aktion kann einige Minuten in Anspruch nehmen",noEntries:"Keine Beiträge"},groups:{other:"Andere",negateLabel:"Nicht %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Änderungsdatum"}}},editor:{editorControl:{field:{optional:"optional"}},editorControlPane:{widget:{required:"%{fieldLabel} ist erforderlich.",regexPattern:"%{fieldLabel} entspricht nicht dem Muster: %{pattern}.",processing:"%{fieldLabel} wird verarbeitet.",range:"%{fieldLabel} muss zwischen %{minValue} und %{maxValue} liegen.",min:"%{fieldLabel} muss größer als %{minValue} sein.",max:"%{fieldLabel} darf nicht größer als %{maxValue} sein.",rangeCount:"%{fieldLabel} muss %{minCount} bis %{maxCount} Element(e) enthalten.",rangeCountExact:"%{fieldLabel} muss exakt %{count} Element(e) enthalten.",rangeMin:"%{fieldLabel} muss mindestens %{minCount} Element(e) enthalten.",rangeMax:"%{fieldLabel} darf maximal %{maxCount} Element(e) enthalten.",invalidPath:"'%{path}' ist kein gültiger Pfad",pathExists:"Pfad '%{path}' existiert bereits"},i18n:{writingInLocale:"Aktuelle Sprache: %{locale}",copyFromLocale:"Aus anderer Sprache übernehmen",copyFromLocaleConfirm:"Wollen Sie wirklich die Daten aus der Sprache %{locale} übernehmen?\nAlle bishergen Inhalte werden überschrieben."}},editor:{onLeavePage:"Möchten Sie diese Seite wirklich verlassen?",onUpdatingWithUnsavedChanges:"Es sind noch ungespeicherte Änderungen vorhanden. Bitte speichern Sie diese, bevor Sie den Status aktualisieren.",onPublishingNotReady:'Bitte setzten die den Status vor dem Veröffentlichen auf "Abgeschlossen".',onPublishingWithUnsavedChanges:"Es sind noch ungespeicherte Änderungen vorhanden. Bitte speicheren Sie vor dem Veröffentlichen.",onPublishing:"Soll dieser Beitrag wirklich veröffentlicht werden?",onUnpublishing:"Soll die Veröffentlichung dieses Beitrags wirklich zurückgezogen werden?",onDeleteWithUnsavedChanges:"Möchten Sie diesen veröffentlichten Beitrag, sowie Ihre nicht gespeicherten Änderungen löschen?",onDeletePublishedEntry:"Soll dieser veröffentlichte Beitrag wirklich gelöscht werden?",onDeleteUnpublishedChangesWithUnsavedChanges:"Möchten Sie diesen unveröffentlichten Beitrag, sowie Ihre nicht gespeicherten Änderungen löschen?",onDeleteUnpublishedChanges:"Alle unveröffentlichten Änderungen werden gelöscht. Möchten Sie wirklich löschen?",loadingEntry:"Beitrag laden...",confirmLoadBackup:"Für diesen Beitrag ist ein lokales Backup vorhanden. Möchten Sie dieses benutzen?"},editorInterface:{toggleI18n:"Übersetzungen",togglePreview:"Vorschau",toggleScrollSync:"Synchron scrollen"},editorToolbar:{publishing:"Veröffentlichen...",publish:"Veröffentlichen",published:"Veröffentlicht",unpublish:"Veröffentlichung zurückziehen",duplicate:"Duplizieren",unpublishing:"Veröffentlichung wird zurückgezogen...",publishAndCreateNew:"Veröffentlichen und neuen Beitrag erstellen",publishAndDuplicate:"Veröffentlichen und Beitrag duplizieren",deleteUnpublishedChanges:"Unveröffentlichte Änderungen verwerfen",deleteUnpublishedEntry:"Lösche unveröffentlichten Beitrag",deletePublishedEntry:"Lösche veröffentlichten Beitrag",deleteEntry:"Lösche Beitrag",saving:"Speichern...",save:"Speichern",statusInfoTooltipDraft:"Beitrag ist im Entwurfsstatus. Um ihn fertigzustellen und zur Überprüfung freizugeben, setzen Sie den Status auf ‘Zur Überprüfung‘.",statusInfoTooltipInReview:"Beitrag wird überprüft, keine weitere Aktion erforderlich. Sie können weitere Änderungen vornehmen, während die Überprüfung läuft.",deleting:"Löschen...",updating:"Aktualisieren...",status:"Status: %{status}",backCollection:"Zurück zu allen %{collectionLabel}",unsavedChanges:"Ungespeicherte Änderungen",changesSaved:"Änderungen gespeichert",draft:"Entwurf",inReview:"Zur Überprüfung",ready:"Abgeschlossen",publishNow:"Jetzt veröffentlichen",deployPreviewPendingButtonLabel:"Überprüfen ob eine Vorschau vorhanden ist",deployPreviewButtonLabel:"Vorschau anzeigen",deployButtonLabel:"Live ansehen"},editorWidgets:{markdown:{bold:"Fett",italic:"Kursiv",code:"Code",link:"Link",linkPrompt:"Link-URL eingeben",headings:"Überschriften",quote:"Zitat",bulletedList:"Aufzählungsliste",numberedList:"Nummerierte Liste",addComponent:"Komponente hinzufügen",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Wähle ein Bild",chooseUrl:"Von URL hinzufügen",replaceUrl:"Von URL ersetzen",promptUrl:"Bild-URL eingeben",chooseDifferent:"Wähle ein anderes Bild",remove:"Entferne Bild"},file:{choose:"Wählen Sie eine Datei",chooseUrl:"Von URL hinzufügen",replaceUrl:"Von URL ersetzen",promptUrl:"Datei-URL eingeben",chooseDifferent:"Wählen Sie eine andere Datei",remove:"Datei löschen"},unknownControl:{noControl:"Kein Bedienelement für Widget '%{widget}'."},unknownPreview:{noPreview:"Keine Vorschau für Widget '%{widget}'."},headingOptions:{headingOne:"Überschrift 1",headingTwo:"Überschrift 2",headingThree:"Überschrift 3",headingFour:"Überschrift 4",headingFive:"Überschrift 5",headingSix:"Überschrift 6"},datetime:{now:"Jetzt",clear:"Löschen"},list:{add:"%{item} hinzufügen",addType:"%{item} hinzufügen"}}},mediaLibrary:{mediaLibraryCard:{draft:"Entwurf",copy:"Kopieren",copyUrl:"URL kopieren",copyPath:"Pfad kopieren",copyName:"Name kopieren",copied:"Kopiert"},mediaLibrary:{onDelete:"Soll das ausgewählte Medium wirklich gelöscht werden?",fileTooLarge:"Datei zu groß.\nErlaubt sind nur Dateien bis %{size} kB."},mediaLibraryModal:{loading:"Laden...",noResults:"Keine Egebnisse.",noAssetsFound:"Keine Medien gefunden.",noImagesFound:"Keine Bilder gefunden.",private:"Privat ",images:"Bilder",mediaAssets:"Medien",search:"Suchen...",uploading:"Hochladen...",upload:"Hochladen",download:"Download",deleting:"Löschen...",deleteSelected:"Ausgewähltes Element löschen",chooseSelected:"Ausgewähltes Element verwenden"}},ui:{default:{goBackToSite:"Zurück zur Seite"},errorBoundary:{title:"Fehler",details:"Ein Fehler ist aufgetreten - bitte ",reportIt:"berichte ihn.",detailsHeading:"Details",privacyWarning:"Beim Eröffnen eines Fehlerberichts werden automatisch die Fehlermeldung und Debugdaten eingefügt.\nBitte überprüfen Sie, ob die Informationen korrrekt sind und entfernen Sie ggfs. sensible Daten.",recoveredEntry:{heading:"Wiederhergestellter Beitrag",warning:"Bitte sichern Sie sich diese Informationen, bevor Sie die Seite verlassen!",copyButtonLabel:"In Zwischenablage speichern"}},settingsDropdown:{logOut:"Abmelden"},toast:{onFailToLoadEntries:"Beitrag konnte nicht geladen werden: %{details}",onFailToLoadDeployPreview:"Vorschau konnte nicht geladen werden: %{details}",onFailToPersist:"Beitrag speichern fehlgeschlagen: %{details}",onFailToDelete:"Beitrag löschen fehlgeschlagen: %{details}",onFailToUpdateStatus:"Status aktualisieren fehlgeschlagen: %{details}",missingRequiredField:"Oops, einige zwingend erforderliche Felder sind nicht ausgefüllt.",entrySaved:"Beitrag gespeichert",entryPublished:"Beitrag veröffentlicht",entryUnpublished:"Beitrag nicht mehr öffentlich",onFailToPublishEntry:"Veröffentlichen fehlgeschlagen: %{details}",onFailToUnpublishEntry:"Veröffentlichung des Beitrags konnte nicht rückgängig gemacht werden: %{details}",entryUpdated:"Beitragsstatus aktualisiert",onDeleteUnpublishedChanges:"Unveröffentlichte Änderungen verworfen",onFailToAuth:"%{details}",onLoggedOut:"Sie wurden ausgeloggt. Bitte sichern Sie Ihre Daten und melden Sie sich erneut an.",onBackendDown:"Der Server ist aktuell nicht erreichbar. Für weitere Informationen, siehe: %{details}"}},workflow:{workflow:{loading:"Arbeitsablauf Beiträge laden",workflowHeading:"Redaktioneller Arbeitsablauf",newPost:"Neuer Beitrag",description:"%{smart_count} Beitrag zur Überprüfung bereit, %{readyCount} bereit zur Veröffentlichung. |||| %{smart_count} Beiträge zur Überprüfung bereit, %{readyCount} bereit zur Veröffentlichung. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} von %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"von %{author}",deleteChanges:"Änderungen verwerfen",deleteNewEntry:"Lösche neuen Beitrag",publishChanges:"Veröffentliche Änderungen",publishNewEntry:"Veröffentliche neuen Beitrag"},workflowList:{onDeleteEntry:"Soll dieser Beitrag wirklich gelöscht werden?",onPublishingNotReadyEntry:'Nur Beiträge im Status "Abgeschlossen" können veröffentlicht werden. Bitte ziehen Sie den Beitrag in die "Abgeschlossen" Spalte um die Veröffentlichung zu aktivieren.',onPublishEntry:"Soll dieser Beitrag wirklich veröffentlicht werden soll?",draftHeader:"Entwurf",inReviewHeader:"In Prüfung",readyHeader:"Abgeschlossen",currentEntries:"%{smart_count} Beitrag |||| %{smart_count} Beiträge"}}}},95590:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Login",loggingIn:"Logging in...",loginWithNetlifyIdentity:"Login with Netlify Identity",loginWithAzure:"Login with Azure",loginWithBitbucket:"Login with Bitbucket",loginWithGitHub:"Login with GitHub",loginWithGitLab:"Login with GitLab",loginWithGitea:"Login with Gitea",errors:{email:"Make sure to enter your email.",password:"Please enter your password.",identitySettings:"Unable to access identity settings. When using git-gateway backend make sure to enable Identity service and Git Gateway."}},app:{header:{content:"Contents",workflow:"Workflow",media:"Media",quickAdd:"Quick add"},app:{errorHeader:"Error loading the CMS configuration",configErrors:"Config Errors",checkConfigYml:"Check your config.yml file.",loadingConfig:"Loading configuration...",waitingBackend:"Waiting for backend..."},notFoundPage:{header:"Not Found"}},collection:{sidebar:{collections:"Collections",allCollections:"All Collections",searchAll:"Search all",searchIn:"Search in"},collectionTop:{sortBy:"Sort by",viewAs:"View as",newButton:"New %{collectionLabel}",ascending:"Ascending",descending:"Descending",searchResults:'Search Results for "%{searchTerm}"',searchResultsInCollection:'Search Results for "%{searchTerm}" in %{collection}',filterBy:"Filter by",groupBy:"Group by"},entries:{loadingEntries:"Loading Entries...",cachingEntries:"Caching Entries...",longerLoading:"This might take several minutes",noEntries:"No Entries"},groups:{other:"Other",negateLabel:"Not %{label}"},defaultFields:{author:{label:"Author"},updatedOn:{label:"Updated On"}}},editor:{editorControl:{field:{optional:"optional"}},editorControlPane:{widget:{required:"%{fieldLabel} is required.",regexPattern:"%{fieldLabel} didn't match the pattern: %{pattern}.",processing:"%{fieldLabel} is processing.",range:"%{fieldLabel} must be between %{minValue} and %{maxValue}.",min:"%{fieldLabel} must be at least %{minValue}.",max:"%{fieldLabel} must be %{maxValue} or less.",rangeCount:"%{fieldLabel} must have between %{minCount} and %{maxCount} item(s).",rangeCountExact:"%{fieldLabel} must have exactly %{count} item(s).",rangeMin:"%{fieldLabel} must be at least %{minCount} item(s).",rangeMax:"%{fieldLabel} must be %{maxCount} or less item(s).",invalidPath:"'%{path}' is not a valid path",pathExists:"Path '%{path}' already exists"},i18n:{writingInLocale:"Writing in %{locale}",copyFromLocale:"Fill in from another locale",copyFromLocaleConfirm:"Do you want to fill in data from %{locale} locale?\nAll existing content will be overwritten."}},editor:{onLeavePage:"Are you sure you want to leave this page?",onUpdatingWithUnsavedChanges:"You have unsaved changes, please save before updating status.",onPublishingNotReady:'Please update status to "Ready" before publishing.',onPublishingWithUnsavedChanges:"You have unsaved changes, please save before publishing.",onPublishing:"Are you sure you want to publish this entry?",onUnpublishing:"Are you sure you want to unpublish this entry?",onDeleteWithUnsavedChanges:"Are you sure you want to delete this published entry, as well as your unsaved changes from the current session?",onDeletePublishedEntry:"Are you sure you want to delete this published entry?",onDeleteUnpublishedChangesWithUnsavedChanges:"This will delete all unpublished changes to this entry, as well as your unsaved changes from the current session. Do you still want to delete?",onDeleteUnpublishedChanges:"All unpublished changes to this entry will be deleted. Do you still want to delete?",loadingEntry:"Loading entry...",confirmLoadBackup:"A local backup was recovered for this entry, would you like to use it?"},editorInterface:{toggleI18n:"Toggle i18n",togglePreview:"Toggle preview",toggleScrollSync:"Sync scrolling"},editorToolbar:{publishing:"Publishing...",publish:"Publish",published:"Published",unpublish:"Unpublish",duplicate:"Duplicate",unpublishing:"Unpublishing...",publishAndCreateNew:"Publish and create new",publishAndDuplicate:"Publish and duplicate",deleteUnpublishedChanges:"Delete unpublished changes",deleteUnpublishedEntry:"Delete unpublished entry",deletePublishedEntry:"Delete published entry",deleteEntry:"Delete entry",saving:"Saving...",save:"Save",statusInfoTooltipDraft:"Entry status is set to draft. To finalize and submit it for review, set the status to ‘In review’",statusInfoTooltipInReview:"Entry is being reviewed, no further actions are required. However, you can still make additional changes while it is being reviewed.",deleting:"Deleting...",updating:"Updating...",status:"Status: %{status}",backCollection:" Writing in %{collectionLabel} collection",unsavedChanges:"Unsaved Changes",changesSaved:"Changes saved",draft:"Draft",inReview:"In review",ready:"Ready",publishNow:"Publish now",deployPreviewPendingButtonLabel:"Check for Preview",deployPreviewButtonLabel:"View Preview",deployButtonLabel:"View Live"},editorWidgets:{markdown:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",linkPrompt:"Enter the URL of the link",headings:"Headings",quote:"Quote",bulletedList:"Bulleted List",numberedList:"Numbered List",addComponent:"Add Component",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Choose an image",chooseMultiple:"Choose images",chooseUrl:"Insert from URL",replaceUrl:"Replace with URL",promptUrl:"Enter the URL of the image",chooseDifferent:"Choose different image",addMore:"Add more images",remove:"Remove image",removeAll:"Remove all images"},file:{choose:"Choose a file",chooseUrl:"Insert from URL",chooseMultiple:"Choose files",replaceUrl:"Replace with URL",promptUrl:"Enter the URL of the file",chooseDifferent:"Choose different file",addMore:"Add more files",remove:"Remove file",removeAll:"Remove all files"},unknownControl:{noControl:"No control for widget '%{widget}'."},unknownPreview:{noPreview:"No preview for widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Now",clear:"Clear"},list:{add:"Add %{item}",addType:"Add %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Draft",copy:"Copy",copyUrl:"Copy URL",copyPath:"Copy Path",copyName:"Copy Name",copied:"Copied"},mediaLibrary:{onDelete:"Are you sure you want to delete selected media?",fileTooLarge:"File too large.\nConfigured to not allow files greater than %{size} kB."},mediaLibraryModal:{loading:"Loading...",noResults:"No results.",noAssetsFound:"No assets found.",noImagesFound:"No images found.",private:"Private ",images:"Images",mediaAssets:"Media assets",search:"Search...",uploading:"Uploading...",upload:"Upload",download:"Download",deleting:"Deleting...",deleteSelected:"Delete selected",chooseSelected:"Choose selected"}},ui:{default:{goBackToSite:"Go back to site"},errorBoundary:{title:"Error",details:"There's been an error - please ",reportIt:"open an issue on GitHub.",detailsHeading:"Details",privacyWarning:"Opening an issue pre-populates it with the error message and debugging data.\nPlease verify the information is correct and remove sensitive data if exists.",recoveredEntry:{heading:"Recovered document",warning:"Please copy/paste this somewhere before navigating away!",copyButtonLabel:"Copy to clipboard"}},settingsDropdown:{logOut:"Log Out"},toast:{onFailToLoadEntries:"Failed to load entry: %{details}",onFailToLoadDeployPreview:"Failed to load preview: %{details}",onFailToPersist:"Failed to persist entry: %{details}",onFailToDelete:"Failed to delete entry: %{details}",onFailToUpdateStatus:"Failed to update status: %{details}",missingRequiredField:"Oops, you've missed a required field. Please complete before saving.",entrySaved:"Entry saved",entryPublished:"Entry published",entryUnpublished:"Entry unpublished",onFailToPublishEntry:"Failed to publish: %{details}",onFailToUnpublishEntry:"Failed to unpublish entry: %{details}",entryUpdated:"Entry status updated",onDeleteUnpublishedChanges:"Unpublished changes deleted",onFailToAuth:"%{details}",onLoggedOut:"You have been logged out, please back up any data and login again",onBackendDown:"The backend service is experiencing an outage. See %{details} for more information"}},workflow:{workflow:{loading:"Loading Editorial Workflow Entries",workflowHeading:"Editorial Workflow",newPost:"New Post",description:"%{smart_count} entry waiting for review, %{readyCount} ready to go live. |||| %{smart_count} entries waiting for review, %{readyCount} ready to go live. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"Delete changes",deleteNewEntry:"Delete new entry",publishChanges:"Publish changes",publishNewEntry:"Publish new entry"},workflowList:{onDeleteEntry:"Are you sure you want to delete this entry?",onPublishingNotReadyEntry:'Only items with a "Ready" status can be published. Please drag the card to the "Ready" column to enable publishing.',onPublishEntry:"Are you sure you want to publish this entry?",draftHeader:"Drafts",inReviewHeader:"In Review",readyHeader:"Ready",currentEntries:"%{smart_count} entry |||| %{smart_count} entries"}}}},33321:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Iniciar sesión",loggingIn:"Iniciando sesión...",loginWithNetlifyIdentity:"Iniciar sesión con Netlify Identity",loginWithBitbucket:"Iniciar sesión con Bitbucket",loginWithGitHub:"Iniciar sesión con GitHub",loginWithGitLab:"Iniciar sesión con GitLab",loginWithGitea:"Iniciar sesión con Gitea",errors:{email:"Asegúrate de introducir tu correo electrónico.",password:"Por favor introduce tu contraseña.",identitySettings:"No se pudo acceder a la configuración de Identity. Cuando uses el backend git-gateway asegurate de habilitar el servicio Identity y Git Gateway."}},app:{header:{content:"Contenido",workflow:"Flujo Editorial",media:"Medios",quickAdd:"Añadir rápido"},app:{errorHeader:"Error al cargar la configuración del CMS",configErrors:"Errores de configuración",checkConfigYml:"Compruebe el archivo config.yml.",loadingConfig:"Cargando configuración....",waitingBackend:"Esperando al servidor..."},notFoundPage:{header:"No encontrado"}},collection:{sidebar:{collections:"Colecciones",searchAll:"Buscar todas"},collectionTop:{sortBy:"Ordenar por",viewAs:"Ver como",newButton:"Nuevo %{collectionLabel}",ascending:"Ascendente",descending:"Descendente"},entries:{loadingEntries:"Cargando entradas",cachingEntries:"Almacenando entradas en caché",longerLoading:"Esto puede tardar varios minutos",noEntries:"Ninguna entrada"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Actualizado en"}}},editor:{editorControl:{field:{optional:"opcional"}},editorControlPane:{widget:{required:"%{fieldLabel} es obligatorio.",regexPattern:"%{fieldLabel} no coincide con el patrón: %{pattern}.",processing:"%{fieldLabel} está procesando.",range:"%{fieldLabel} debe estar entre %{minValue} y %{maxValue}.",min:"%{fieldLabel} debe ser por lo menos %{minValue}.",max:"%{fieldLabel} debe ser %{maxValue} o menos.",rangeCount:"%{fieldLabel} debe tener entre %{minCount} y %{maxCount} elemento(s).",rangeCountExact:"%{fieldLabel} debe tener exactamente %{count} elemento(s).",rangeMin:"%{fieldLabel} debe ser por lo menos %{minCount} elemento(s).",rangeMax:"%{fieldLabel} debe ser %{maxCount} o menos elemento(s)."}},editor:{onLeavePage:"¿Estás seguro de que quieres dejar esta página?",onUpdatingWithUnsavedChanges:"Tiene cambios no guardados, por favor, guárdelos antes de actualizar el estado.",onPublishingNotReady:'Por favor, actualice el estado a "Ready" antes de publicar.',onPublishingWithUnsavedChanges:"Tiene cambios no guardados, por favor guárdelos antes de publicarlos.",onPublishing:"¿Estás seguro de que quieres publicar esta entrada?",onUnpublishing:"¿Estás seguro de que quieres retirar esta entrada?",onDeleteWithUnsavedChanges:"¿Está seguro de que desea eliminar esta entrada publicada, así como los cambios no guardados de la sesión actual?",onDeletePublishedEntry:"¿Estás seguro de que quieres borrar esta entrada publicada?",onDeleteUnpublishedChangesWithUnsavedChanges:"Esto eliminará todos los cambios no publicados de esta entrada, así como los cambios no guardados de la sesión actual. ¿Todavía quieres borrar?",onDeleteUnpublishedChanges:"Todos los cambios no publicados en esta entrada serán eliminados. ¿Todavía quieres borrar?",loadingEntry:"Cargando entrada...",confirmLoadBackup:"Se recuperó una copia de seguridad local para esta entrada, ¿le gustaría utilizarla?"},editorToolbar:{publishing:"Publicando...",publish:"Publicar",published:"Publicado",unpublish:"Retirar",duplicate:"Duplicar",unpublishing:"Retirando...",publishAndCreateNew:"Publicar y crear nuevo",publishAndDuplicate:"Publicar y duplicar",deleteUnpublishedChanges:"Eliminar cambios no publicados",deleteUnpublishedEntry:"Eliminar entrada no publicada",deletePublishedEntry:"Eliminar entrada publicada",deleteEntry:"Eliminar entrada",saving:"Guardando...",save:"Guardar",deleting:"Eliminando...",updating:"Actualizando...",status:"Estado: %{status}",backCollection:" Escribiendo en la colección %{collectionLabel}",unsavedChanges:"Cambios no guardados",changesSaved:"Cambios guardados",draft:"Borrador",inReview:"En revisión",ready:"Listo",publishNow:"Publicar ahora",deployPreviewPendingButtonLabel:"Comprobar Vista Previa",deployPreviewButtonLabel:"Ver Vista Previa",deployButtonLabel:"Ver publicación"},editorWidgets:{markdown:{richText:"Texto enriquecido",markdown:"Markdown"},image:{choose:"Elige una imagen",chooseDifferent:"Elige una imagen diferente",remove:"Quita la imagen"},file:{choose:"Escoge un archivo",chooseDifferent:"Elige un archivo diferente",remove:"Remover archivo"},unknownControl:{noControl:"No existe un control para el widget '%{widget}'."},unknownPreview:{noPreview:"No existe una vista previa para el widget '%{widget}'."},headingOptions:{headingOne:"Encabezado 1",headingTwo:"Encabezado 2",headingThree:"Encabezado 3",headingFour:"Encabezado 4",headingFive:"Encabezado 5",headingSix:"Encabezado 6"},datetime:{now:"Ahora",clear:"Limpiar"}}},mediaLibrary:{mediaLibraryCard:{draft:"Borrador"},mediaLibrary:{onDelete:"¿Está seguro de que desea eliminar el archivo seleccionado?",fileTooLarge:"Archivo muy pesado.\nConfigurado para no permitir archivos más pesados que %{size} kB."},mediaLibraryModal:{loading:"Cargando...",noResults:"Sin resultados.",noAssetsFound:"Archivos no encontrados.",noImagesFound:"Imágenes no encontradas.",private:"Privado ",images:"Imágenes",mediaAssets:"Archivos multimedia",search:"Buscar...",uploading:"Subiendo...",upload:"Subir nuevo",download:"Descargar",deleting:"Eliminando...",deleteSelected:"Eliminar selección",chooseSelected:"Confirmar selección"}},ui:{default:{goBackToSite:"Regresar al sitio"},errorBoundary:{title:"Error",details:"Se ha producido un error - por favor ",reportIt:"infórmenos de ello.",detailsHeading:"Detalles",privacyWarning:"Abrir un reporte lo rellena previamente con el mensaje de error y los datos de depuración.\nPor favor verifica que la información es correcta y elimina cualquier dato sensible.",recoveredEntry:{heading:"Documento recuperado",warning:"¡Por favor, copie/pegue esto en algún lugar antes de ir a otra página!",copyButtonLabel:"Copiar al portapapeles"}},settingsDropdown:{logOut:"Cerrar sesión"},toast:{onFailToLoadEntries:"No se ha podido cargar la entrada: %{details}",onFailToLoadDeployPreview:"No se ha podido cargar la vista previa: %{details}",onFailToPersist:"No se ha podido guardar la entrada: %{details}",onFailToDelete:"No se ha podido borrar la entrada: %{details}",onFailToUpdateStatus:"No se ha podido actualizar el estado: %{details}",missingRequiredField:"Oops, no ha rellenado un campo obligatorio. Por favor, rellénelo antes de guardar.",entrySaved:"Entrada guardada",entryPublished:"Entrada publicada",entryUnpublished:"Entrada retirada",onFailToPublishEntry:"No se ha podido publicar: %{details}",onFailToUnpublishEntry:"No se ha podido retirar la entrada: %{details}",entryUpdated:"Estado de entrada actualizado",onDeleteUnpublishedChanges:"Cambios no publicados eliminados",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Cargando Entradas del Flujo Editorial",workflowHeading:"Flujo Editorial",newPost:"Nuevo artículo",description:"%{smart_count} entrada esperando revisión, %{readyCount} lista para publicar |||| %{smart_count} entradas esperando revisión, %{readyCount} listas para publicar. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} por %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"por %{author}",deleteChanges:"Eliminar cambios",deleteNewEntry:"Eliminar nueva entrada",publishChanges:"Publicar cambios",publishNewEntry:"Publicar nueva entrada"},workflowList:{onDeleteEntry:"¿Está seguro de que quiere borrar esta entrada?",onPublishingNotReadyEntry:'Sólo se pueden publicar los elementos con el estado "Listo". Por favor, arrastre la tarjeta hasta la columna "Listo" para permitir la publicación.',onPublishEntry:"¿Estás seguro de que quieres publicar esta entrada?",draftHeader:"Borradores",inReviewHeader:"En revisión",readyHeader:"Listo",currentEntries:"%{smart_count} entrada |||| %{smart_count} entradas"}}}},86187:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"وارد شدن",loggingIn:"ورود به سیستم در...",loginWithNetlifyIdentity:"با Netlify Identity وارد شوید",loginWithAzure:"با Azure وارد شوید",loginWithBitbucket:"با Bitbucket وارد شوید",loginWithGitHub:"با GitHub وارد شوید",loginWithGitLab:"با GitLab وارد شوید",loginWithGitea:"با Gitea وارد شوید",errors:{email:"ایمیل خود را حتما وارد کنید.",password:"لطفا رمز عبور خود را وارد کنید.",identitySettings:"دسترسی به تنظیمات هویت امکان پذیر نیست. هنگام استفاده از باطن git-gateway، حتماً سرویس Identity و Git Gateway را فعال کنید."}},app:{header:{content:"فهرست",workflow:"جریان کار",media:"رسانه ها",quickAdd:"اضافه کردن سریع"},app:{errorHeader:"خطا در بارگیری پیکربندی CMS",configErrors:"خطاهای پیکربندی",checkConfigYml:"فایل config.yml خود را بررسی کنید.",loadingConfig:"در حال بارگیری پیکربندی...",waitingBackend:"در انتظار باطن..."},notFoundPage:{header:"پیدا نشد"}},collection:{sidebar:{collections:"مجموعه ها",allCollections:"همه مجموعه ها",searchAll:"جستجو در همه",searchIn:"جستجو در"},collectionTop:{sortBy:"مرتب سازی بر اساس",viewAs:"نمایش به صورت",newButton:"%{collectionLabel} جدید",ascending:"صعودی",descending:"نزولی",searchResults:'نتایج جستجو برای "%{searchTerm}"',searchResultsInCollection:'نتایج جستجو برای "%{searchTerm}" در %{collection}',filterBy:"محدود شده توسط",groupBy:"دسته بندی بر اساس"},entries:{loadingEntries:"در حال بارگیری ورودی ها...",cachingEntries:"ذخیره ورودی ها...",longerLoading:"این ممکن است چند دقیقه طول بکشد",noEntries:"بدون ورودی"},groups:{other:"دیگر",negateLabel:"نه %{label}"},defaultFields:{author:{label:"نویسنده"},updatedOn:{label:"به روز شد"}}},editor:{editorControl:{field:{optional:"اختیاری"}},editorControlPane:{widget:{required:"%{fieldLabel} مورد نیاز است.",regexPattern:"%{fieldLabel} با الگوی %{pattern} مطابقت نداشت.",processing:"%{fieldLabel} در حال پردازش است.",range:"%{fieldLabel} باید بین %{minValue} و %{maxValue} باشد.",min:"%{fieldLabel} باید حداقل %{minValue} باشد.",max:"%{fieldLabel} باید %{maxValue} یا کمتر باشد.",rangeCount:"%{fieldLabel} باید بین %{minCount} و %{maxCount} مورد (ها) داشته باشد.",rangeCountExact:"%{fieldLabel} باید دقیقا %{count} مورد(ها) داشته باشد.",rangeMin:"%{fieldLabel} باید حداقل %{minCount} مورد(ها) باشد.",rangeMax:"%{fieldLabel} باید %{maxCount} یا کمتر از موارد باشد.",invalidPath:"'%{path}' یک مسیر معتبر نیست",pathExists:"مسیر '%{path}' از قبل وجود دارد"},i18n:{writingInLocale:"نوشتن به %{locale}",copyFromLocale:"از محلی دیگر پر کنید",copyFromLocaleConfirm:"آیا می خواهید داده ها را از %{locale} محلی پر کنید؟\nتمام محتوای موجود رونویسی خواهد شد."}},editor:{onLeavePage:"آیا مطمئن هستید که می خواهید این صفحه را ترک کنید؟",onUpdatingWithUnsavedChanges:"شما تغییرات ذخیره نشده ای دارید، لطفا قبل از به روز رسانی وضعیت را ذخیره کنید.",onPublishingNotReady:'لطفاً قبل از انتشار وضعیت را به "آماده" به روز کنید.',onPublishingWithUnsavedChanges:"شما تغییرات ذخیره نشده ای دارید، لطفاً قبل از انتشار ذخیره کنید.",onPublishing:"آیا شما مطمئن هستید که می خواهید این مطلب را منتشر کنید؟",onUnpublishing:"آیا مطمئن هستید که می خواهید این ورودی را لغو انتشار کنید؟",onDeleteWithUnsavedChanges:"آیا مطمئن هستید که می خواهید این ورودی منتشر شده و همچنین تغییرات ذخیره نشده خود را از جلسه فعلی حذف کنید؟",onDeletePublishedEntry:"آیا مطمئنید که می خواهید این ورودی منتشر شده را حذف کنید؟",onDeleteUnpublishedChangesWithUnsavedChanges:"با این کار همه تغییرات منتشر نشده در این ورودی و همچنین تغییرات ذخیره نشده شما از جلسه فعلی حذف می شود. آیا هنوز می خواهید حذف کنید؟",onDeleteUnpublishedChanges:"همه تغییرات منتشر نشده در این ورودی حذف خواهند شد. آیا هنوز می خواهید حذف کنید؟",loadingEntry:"در حال بارگیری ورودی...",confirmLoadBackup:"یک نسخه پشتیبان محلی برای این ورودی بازیابی شد، آیا می خواهید از آن استفاده کنید؟"},editorInterface:{toggleI18n:"i18n را تغییر دهید",togglePreview:"پیش نمایش را تغییر دهید",toggleScrollSync:"همگام سازی پیمایش"},editorToolbar:{publishing:"در حال انتشار...",publish:"انتشار",published:"منتشر شده",unpublish:"لغو انتشار",duplicate:"تکراری",unpublishing:"در حال لغو انتشار...",publishAndCreateNew:"انتشار و ایجاد جدید",publishAndDuplicate:"انتشار و تکثیر",deleteUnpublishedChanges:"حذف تغییرات منتشر نشده",deleteUnpublishedEntry:"حذف ورودی منتشر نشده",deletePublishedEntry:"حذف ورودی منتشر شده",deleteEntry:"حذف ورودی",saving:"صرفه جویی در...",save:"صرفه جویی",statusInfoTooltipDraft:"وضعیت ورودی روی پیش نویس تنظیم شده است. برای نهایی کردن و ارسال آن برای بررسی، وضعیت را روی «در حال بررسی» تنظیم کنید",statusInfoTooltipInReview:"ورودی در حال بررسی است، هیچ اقدام دیگری لازم نیست. با این حال، همچنان می‌توانید در حین بررسی، تغییرات بیشتری ایجاد کنید.",deleting:"در حال حذف...",updating:"در حال بروز رسانی...",status:"وضعیت: %{status}",backCollection:"نوشتن در مجموعه %{collectionLabel}",unsavedChanges:"تغییرات ذخیره نشده",changesSaved:"تغییرات ذخیره شد",draft:"پیش نویس",inReview:"در بررسی",ready:"آماده",publishNow:"اکنون منتشر کنید",deployPreviewPendingButtonLabel:"پیش نمایش را بررسی کنید",deployPreviewButtonLabel:"مشاهده پیش نمایش",deployButtonLabel:"مشاهده زنده"},editorWidgets:{markdown:{bold:"پررنگ",italic:"کج",code:"کد",link:"ارتباط دادن",linkPrompt:"آدرس لینک را وارد کنید",headings:"سرفصل ها",quote:"نقل قول",bulletedList:"لیست گلوله شده",numberedList:"لیست شماره گذاری شده",addComponent:"افزودن کامپوننت",richText:"متن غنی",markdown:"مارک داون"},image:{choose:"یک تصویر را انتخاب کنید",chooseMultiple:"تصاویر را انتخاب کنید",chooseUrl:"درج از URL",replaceUrl:"با URL جایگزین کنید",promptUrl:"آدرس تصویر را وارد کنید",chooseDifferent:"تصویر متفاوت را انتخاب کنید",addMore:"تصاویر بیشتری اضافه کنید",remove:"حذف تصویر",removeAll:"حذف همه تصاویر"},file:{choose:"یک فایل را انتخاب کنید",chooseUrl:"درج از URL",chooseMultiple:"فایل ها را انتخاب کنید",replaceUrl:"با URL جایگزین کنید",promptUrl:"آدرس فایل را وارد کنید",chooseDifferent:"فایل های مختلف را انتخاب کنید",addMore:"فایل های بیشتری اضافه کنید",remove:"حذف فایل",removeAll:"تمام فایل ها را حذف کنید"},unknownControl:{noControl:'هیچ کنترلی برای ویجت "%{widget}" وجود ندارد.'},unknownPreview:{noPreview:'هیچ پیش نمایشی برای ویجت "%{widget}" وجود ندارد.'},headingOptions:{headingOne:"سرفصل 1",headingTwo:"سرفصل 2",headingThree:"سرفصل 3",headingFour:"سرفصل 4",headingFive:"سرفصل 5",headingSix:"سرفصل 6"},datetime:{now:"اکنون"},list:{add:"این مورد را اضافه کنید}",addType:"این مورد را اضافه کنید}"}}},mediaLibrary:{mediaLibraryCard:{draft:"پیش نویس",copy:"کپی",copyUrl:"URL را کپی کنید",copyPath:"مسیر را کپی کنید",copyName:"کپی نام",copied:"کپی شده است"},mediaLibrary:{onDelete:"آیا مطمئن هستید که می خواهید رسانه انتخابی را حذف کنید؟",fileTooLarge:"فایل خیلی بزرگ است.\nپیکربندی شده است تا فایل های بزرگتر از %{size} کیلوبایت مجاز نباشد."},mediaLibraryModal:{loading:"بارگذاری...",noResults:"هیچ نتیجه ای.",noAssetsFound:"هیچ دارایی یافت نشد.",noImagesFound:"هیچ تصویری یافت نشد",private:"خصوصی",images:"تصاویر",mediaAssets:"دارایی های رسانه ای",search:"جستجو کردن...",uploading:"در حال آپلود...",upload:"بارگذاری",download:"دانلود",deleting:"در حال حذف...",deleteSelected:"انتخاب شده را پاک کن",chooseSelected:"انتخاب شده را انتخاب کنید"}},ui:{default:{goBackToSite:"به سایت برگردید"},errorBoundary:{title:"خطا",details:"خطایی رخ داده است - لطفا",reportIt:"یک مسئله را در GitHub باز کنید.",detailsHeading:"جزئیات",privacyWarning:"باز کردن یک مشکل، آن را با پیام خطا و داده‌های اشکال‌زدایی از قبل پر می‌کند.\nلطفاً صحت اطلاعات را تأیید کنید و در صورت وجود داده های حساس را حذف کنید.",recoveredEntry:{heading:"سند بازیابی شده",warning:"لطفاً قبل از حرکت، این را در جایی کپی/پیست کنید!",copyButtonLabel:"کپی به کلیپ بورد"}},settingsDropdown:{logOut:"خروج"},toast:{onFailToLoadEntries:"ورودی بارگیری نشد: %{details}",onFailToLoadDeployPreview:"پیش نمایش بارگیری نشد: %{details}",onFailToPersist:"ادامه ورود ناموفق بود: %{details}",onFailToDelete:"ورودی حذف نشد: %{details}",onFailToUpdateStatus:"وضعیت به‌روزرسانی نشد: %{details}",missingRequiredField:"اوه، شما یک قسمت الزامی را از دست داده اید. لطفاً قبل از ذخیره تکمیل کنید.",entrySaved:"ورودی ذخیره شد",entryPublished:"مدخل منتشر شد",entryUnpublished:"ورودی منتشر نشده است",onFailToPublishEntry:"منتشر نشد: %{details}",onFailToUnpublishEntry:"لغو انتشار ورودی انجام نشد: %{details}",entryUpdated:"وضعیت ورودی به روز شد",onDeleteUnpublishedChanges:"تغییرات منتشر نشده حذف شد",onFailToAuth:"%{details}",onLoggedOut:"شما از سیستم خارج شده اید، لطفاً از داده ها نسخه پشتیبان تهیه کنید و دوباره وارد شوید",onBackendDown:"سرویس باطن در حال تجربه قطعی است. جهت اطلاعات بیشتر جزئیات را ببینید"}},workflow:{workflow:{loading:"در حال بارگیری ورودی های گردش کار ویرایشی",workflowHeading:"گردش کار تحریریه",newPost:"مطلب جدید",description:"%{smart_count} ورودی در انتظار بررسی، %{readyCount} آماده انتشار است. |||| %{smart_count} ورودی در انتظار بازبینی، %{readyCount} آماده انتشار است.",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} توسط %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"توسط %{author}",deleteChanges:"حذف تغییرات",deleteNewEntry:"حذف ورودی جدید",publishChanges:"انتشار تغییرات",publishNewEntry:"مطلب جدید را منتشر کنید"},workflowList:{onDeleteEntry:"آیا مطمئن هستید که می خواهید این ورودی را حذف کنید؟",onPublishingNotReadyEntry:'فقط مواردی با وضعیت "آماده" قابل انتشار هستند. لطفاً کارت را به ستون "آماده" بکشید تا انتشار فعال شود.',onPublishEntry:"آیا شما مطمئن هستید که می خواهید این مطلب را منتشر کنید؟",draftHeader:"پیش نویس",inReviewHeader:"در بررسی",readyHeader:"آماده",currentEntries:"%{smart_count} ورودی |||| %{smart_count} ورودی"}}}},97421:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Se connecter",loggingIn:"Connexion en cours...",loginWithNetlifyIdentity:"Se connecter avec Netlify Identity",loginWithAzure:"Se connecter avec Azure",loginWithBitbucket:"Se connecter avec Bitbucket",loginWithGitHub:"Se connecter avec GitHub",loginWithGitLab:"Se connecter avec GitLab",loginWithGitea:"Se connecter avec Gitea",errors:{email:"Assurez-vous d'avoir entré votre email.",password:"Merci de saisir votre mot de passe.",identitySettings:"Impsosible d'accéder aux paramètres d'identité. Si vous utilisez le backend git-gateway, merci de vous assurer que vous avez bien activé le service Identity et la passerelle Git."}},app:{header:{content:"Contenus",workflow:"Flux",media:"Media",quickAdd:"Ajout rapide"},app:{errorHeader:"Erreur au chargement de la configuration du CMS",configErrors:"Erreurs de configuration",checkConfigYml:"Vérifiez votre fichier config.yml.",loadingConfig:"Chargement de la configuration...",waitingBackend:"En attente du serveur..."},notFoundPage:{header:"Introuvable"}},collection:{sidebar:{collections:"Collections",allCollections:"Toutes les collections",searchAll:"Tout rechercher",searchIn:"Rechercher dans"},collectionTop:{sortBy:"Trier par",viewAs:"Voir comme",newButton:"Créer une entrée de type %{collectionLabel}",ascending:"Croissant",descending:"Décroissant",searchResults:'Résultats de la recherche pour "%{searchTerm}"',searchResultsInCollection:'Résultats de la recherche pour "%{searchTerm}" dans %{collection}',filterBy:"Filtrer par",groupBy:"Grouper par"},entries:{loadingEntries:"Chargement des entrées",cachingEntries:"Mise en cache des entrées",longerLoading:"Cela peut prendre quelques minutes",noEntries:"Aucune entrée"},groups:{other:"Autre",negateLabel:"Non %{label}"},defaultFields:{author:{label:"Auteur"},updatedOn:{label:"Mis à jour le"}}},editor:{editorControl:{field:{optional:"optionnel"}},editorControlPane:{widget:{required:"Le champ %{fieldLabel} est requis.",regexPattern:"Le champ %{fieldLabel} ne correspond pas au schéma: %{pattern}.",processing:"Le champ %{fieldLabel} est en cours de traitement.",range:"Le champ %{fieldLabel} doit être compris entre %{minValue} et %{maxValue}.",min:"Le champ %{fieldLabel} doit avoir une valeur de %{minValue} ou plus.",max:"Le champ %{fieldLabel} doit avoir une valeur de %{maxValue} ou moins.",rangeCount:"%{fieldLabel} doit avoir entre %{minCount} et %{maxCount} élément(s).",rangeCountExact:"%{fieldLabel} doit avoir exactement %{count} éléments(s).",rangeMin:"%{fieldLabel} doit avoir au moins %{minCount} éléments(s).",rangeMax:"%{fieldLabel} doit avoir %{maxCount} éléments(s) ou moins.",invalidPath:"'%{path}' n'est pas un chemin valide",pathExists:"Le chemin '%{path}' existe déjà"},i18n:{writingInLocale:"Écrire en %{locale}"}},editor:{onLeavePage:"Voulez-vous vraiment quitter cette page ?",onUpdatingWithUnsavedChanges:"Veuillez enregistrer vos modifications avant de mettre à jour le statut.",onPublishingNotReady:'Veuillez mettre à jour le statut à "Prêt" avant de publier.',onPublishingWithUnsavedChanges:"Veuillez enregistrer vos modifications avant de publier.",onPublishing:"Voulez-vous vraiment publier cette entrée ?",onUnpublishing:"Voulez-vous vraiment dépublier cette entrée ?",onDeleteWithUnsavedChanges:"Voulez-vous vraiment supprimer cette entrée publiée ainsi que vos modifications non enregistrées de cette session ?",onDeletePublishedEntry:"Voulez-vous vraiment supprimer cette entrée publiée ?",onDeleteUnpublishedChangesWithUnsavedChanges:"Ceci supprimera toutes les modifications non publiées de cette entrée ainsi que vos modifications non enregistrées de cette session. Voulez-vous toujours supprimer ?",onDeleteUnpublishedChanges:"Toutes les modifications non publiées de cette entrée seront supprimées. Voulez-vous toujours supprimer ?",loadingEntry:"Chargement de l'entrée...",confirmLoadBackup:"Une sauvegarde locale a été trouvée pour cette entrée. Voulez-vous l'utiliser ?"},editorInterface:{toggleI18n:"Édition multilingue",togglePreview:"Aperçu",toggleScrollSync:"Défilement synchronisé"},editorToolbar:{publishing:"Publication...",publish:"Publier",published:"Publiée",unpublish:"Dépublier",duplicate:"Dupliquer",unpublishing:"Dépublication...",publishAndCreateNew:"Publier et créer une nouvelle entrée",publishAndDuplicate:"Publier et dupliquer",deleteUnpublishedChanges:"Supprimer les modications non publiées",deleteUnpublishedEntry:"Supprimer l'entrée non publiée",deletePublishedEntry:"Supprimer l'entrée publiée",deleteEntry:"Supprimer l'entrée",saving:"Enregistrement...",save:"Enregistrer",deleting:"Suppression...",updating:"Mise à jour...",status:"Statut: %{status}",backCollection:" Écriture dans la collection %{collectionLabel}",unsavedChanges:"Modifications non enregistrées",changesSaved:"Modifications enregistrées",draft:"Brouillon",inReview:"En cours de révision",ready:"Prêt",publishNow:"Publier maintenant",deployPreviewPendingButtonLabel:"Vérifier l'aperçu",deployPreviewButtonLabel:"Voir l'aperçu",deployButtonLabel:"Voir en direct"},editorWidgets:{markdown:{bold:"Gras",italic:"Italique",code:"Code",link:"Lien",linkPrompt:"Entrer l'adresse web du lien",headings:"Titres",quote:"Citation",bulletedList:"Liste à puces",numberedList:"Liste numérotée",addComponent:"Ajouter un composant",richText:"Texte enrichi",markdown:"Markdown"},image:{choose:"Choisir une image",chooseUrl:"Insérer depuis une adresse web",replaceUrl:"Remplacer depuis une adresse web",promptUrl:"Entrer l'adresse web de l'image",chooseDifferent:"Choisir une image différente",remove:"Supprimer l'image"},file:{choose:"Choisir un fichier",chooseUrl:"Insérer depuis une adresse web",replaceUrl:"Remplacer depuis une adresse web",promptUrl:"Entrer l'adresse web du fichier",chooseDifferent:"Choisir un fichier différent",remove:"Effacer le fichier"},unknownControl:{noControl:"Pas de contrôle pour le gadget '%{widget}'."},unknownPreview:{noPreview:"Pas d'aperçu pour le gadget '%{widget}'."},headingOptions:{headingOne:"Titre 1",headingTwo:"Titre 2",headingThree:"Titre 3",headingFour:"Titre 4",headingFive:"Titre 5",headingSix:"Titre 6"},datetime:{now:"Maintenant",clear:"Effacer"},list:{add:"Ajouter %{item}",addType:"Ajouter une entrée de type %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Brouillon",copy:"Copier",copyUrl:"Copier l'adresse web",copyPath:"Copier le chemin d'accès",copyName:"Copier le nom",copied:"Copié"},mediaLibrary:{onDelete:"Voulez-vous vraiment supprimer la ressource sélectionné ?",fileTooLarge:"Le fichier est trop volumineux.\nL'instance est configurée pour bloquer les envois de plus de %{size} kB."},mediaLibraryModal:{loading:"Chargement...",noResults:"Aucun résultat.",noAssetsFound:"Aucune ressource trouvée.",noImagesFound:"Aucune image trouvée.",private:"Privé ",images:"Images",mediaAssets:"Ressources",search:"Recherche...",uploading:"Téléversement...",upload:"Téléverser une nouvelle ressource",download:"Télécharger",deleting:"Suppression...",deleteSelected:"Supprimer les éléments sélectionnés",chooseSelected:"Choisir les éléments sélectionnés"}},ui:{default:{goBackToSite:"Retourner sur le site"},errorBoundary:{title:"Erreur",details:"Une erreur est survenue, veuillez ",reportIt:"la signaler sur GitHub.",detailsHeading:"Détails",privacyWarning:"Ouvrir une issue la préremplie avec le message d'erreur et des données de déboggage.\nMerci de vérifier l'exactitude des informations et de supprimer toute donnée sensible si nécessaire.",recoveredEntry:{heading:"Document récupéré",warning:"Veuillez copier/coller ceci quelque part avant de naviguer ailleurs!",copyButtonLabel:"Copier dans le presse-papier"}},settingsDropdown:{logOut:"Déconnexion"},toast:{onFailToLoadEntries:"Échec du chargement de l'entrée : %{details}",onFailToLoadDeployPreview:"Échec du chargement de l'aperçu : %{details}",onFailToPersist:"Échec de l'enregistrement de l'entrée : %{details}",onFailToDelete:"Échec de la suppression de l'entrée : %{details}",onFailToUpdateStatus:"Échec de la mise à jour du statut : %{details}",missingRequiredField:"Oops, il manque un champ requis. Veuillez le renseigner avant de soumettre.",entrySaved:"Entrée enregistrée",entryPublished:"Entrée publiée",entryUnpublished:"Entrée dépubliée",onFailToPublishEntry:"Échec de la publication : %{details}",onFailToUnpublishEntry:"Impossible de dépublier l'entrée : %{details}",entryUpdated:"Statut de l'entrée mis à jour",onDeleteUnpublishedChanges:"Modifications non publiées supprimées",onFailToAuth:"%{details}",onLoggedOut:"Vous avez été déconnecté, merci de sauvegarder les données et vous reconnecter",onBackendDown:"Le serveur est actuellement hors-service. Pour plus d'informations : %{details}"}},workflow:{workflow:{loading:"Chargement des entrées du flux éditorial",workflowHeading:"Flux éditorial",newPost:"Nouvel article",description:"%{smart_count} entrée(s) en attente de revue, %{readyCount} prête(s) à être publiée(s). |||| %{smart_count} entrée(s) en attente de revue, %{readyCount} prête(s) à être publiée(s). ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} par %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"par %{author}",deleteChanges:"Supprimer les mofications",deleteNewEntry:"Supprimer la nouvelle entrée",publishChanges:"Publier les modifications",publishNewEntry:"Publier la nouvelle entrée"},workflowList:{onDeleteEntry:"Voulez-vous vraiment supprimer cette entrée ?",onPublishingNotReadyEntry:'Seuls les éléments ayant le statut "Prêt" peuvent être publiés. Veuillez glisser/déposer la carte dans la colonne "Prêt" pour activer la publication',onPublishEntry:"Voulez-vous vraiment publier cette entrée ?",draftHeader:"Brouillons",inReviewHeader:"En cours de révision",readyHeader:"Prêt",currentEntries:"%{smart_count} entrée |||| %{smart_count} entrées"}}}},1107:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Σύνδεση",loggingIn:"Σύνδεση στο...",loginWithNetlifyIdentity:"Σύνδεση μέσω Netlify",loginWithBitbucket:"Σύνδεση μέσω Bitbucket",loginWithGitHub:"Σύνδεση μέσω GitHub",loginWithGitLab:"Σύνδεση μέσω GitLab",loginWithGitea:"Σύνδεση μέσω Gitea",errors:{email:"Βεβαιωθείτε ότι έχετε εισαγάγει το email σας.",password:"Παρακαλώ εισάγετε τον κωδικό πρόσβασής σας.",identitySettings:"Δεν είναι δυνατή η πρόσβαση στις ρυθμίσεις ταυτότητας. Όταν χρησιμοποιείτε το παρασκήνιο του git Gateway, φροντίστε να ενεργοποιήσετε την υπηρεσία Identity και το git Gateway."}},app:{header:{content:"Περιεχόμενα",workflow:"Ροής εργασίας",media:"Πολυμέσα",quickAdd:"Γρήγορη προσθήκη"},app:{errorHeader:"Σφάλμα κατά τη φόρτωση της ρύθμισης παραμέτρων CMS",configErrors:"Σφάλματα ρύθμισης παραμέτρων",checkConfigYml:"Ελέγξτε το αρχείο config.yml.",loadingConfig:"Φόρτωση ρύθμισης παραμέτρων...",waitingBackend:"Αναμονή για παρασκηνιακό..."},notFoundPage:{header:"Δεν βρέθηκε"}},collection:{sidebar:{collections:"Συλλογές",searchAll:"Αναζήτηση όλων"},collectionTop:{viewAs:"Προβολή ως",newButton:"Νέο %{collectionLabel}"},entries:{loadingEntries:"Εγγραφές φόρτωσης",cachingEntries:"Εγγραφές προσωρινής αποθήκευσης",longerLoading:"Αυτό μπορεί να διαρκέσει αρκετά λεπτά"}},editor:{editorControl:{field:{optional:"προαιρετικός"}},editorControlPane:{widget:{required:"Το %{fieldLabel} είναι απαραίτητο.",regexPattern:"Το %{fieldLabel} δεν ταιριάζει με το μοτίβο: %{pattern}.",processing:"Το %{fieldLabel} επεξεργάζεται.",range:"Το %{fieldLabel} πρέπει να είναι μεταξύ %{minValue} και %{maxValue}.",min:"Το %{fieldLabel} πρέπει να είναι τουλάχιστον %{minValue}.",max:"Το %{fieldLabel} πρέπει να είναι %{maxValue} ή μικρότερο."}},editor:{onLeavePage:"Είστε βέβαιοι ότι θέλετε να αφήσετε αυτήν τη σελίδα;",onUpdatingWithUnsavedChanges:"Έχετε μη αποθηκευμένες αλλαγές, αποθηκεύστε πριν να ενημερώσετε την κατάσταση.",onPublishingNotReady:'Ενημερώστε την κατάσταση σε "έτοιμο" πριν από τη δημοσίευση.',onPublishingWithUnsavedChanges:"Έχετε μη αποθηκευμένες αλλαγές, αποθηκεύστε πριν από τη δημοσίευση.",onPublishing:"Είστε βέβαιοι ότι θέλετε να δημοσιεύσετε αυτήν την καταχώρηση;",onUnpublishing:"Είστε βέβαιοι ότι θέλετε να καταργήσετε τη δημοσίευση αυτής της καταχώρησης;",onDeleteWithUnsavedChanges:"Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτήν τη δημοσιευμένη καταχώρηση, καθώς και τις αλλαγές που δεν αποθηκεύσατε από την τρέχουσα περίοδο λειτουργίας;",onDeletePublishedEntry:"Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτήν τη δημοσιευμένη καταχώρηση;",onDeleteUnpublishedChangesWithUnsavedChanges:"Αυτό θα διαγράψει όλες τις μη δημοσιευμένες αλλαγές σε αυτήν την καταχώρηση, καθώς και τις αλλαγές που δεν έχετε αποθηκεύσει από την τρέχουσα περίοδο λειτουργίας. Θέλετε ακόμα να διαγράψετε;",onDeleteUnpublishedChanges:"Όλες οι μη δημοσιευμένες αλλαγές σε αυτήν την καταχώρηση θα διαγραφούν. Θέλετε ακόμα να διαγράψετε;",loadingEntry:"Φόρτωση εισόδου...",confirmLoadBackup:"Ανακτήθηκε ένα τοπικό αντίγραφο ασφαλείας για αυτήν την καταχώρηση, θέλετε να το χρησιμοποιήσετε;"},editorToolbar:{publishing:"Δημοσίευση...",publish:"Δημοσίευση",published:"Δημοσιεύθηκε",unpublish:"Κατάργηση δημοσίευσης",duplicate:"Διπλότυπο",unpublishing:"Κατάργηση δημοσίευσης...",publishAndCreateNew:"Δημοσίευση και δημιουργία νέων",publishAndDuplicate:"Δημοσίευση και αντίγραφο",deleteUnpublishedChanges:"Διαγραφή μη δημοσιευμένων αλλαγών",deleteUnpublishedEntry:"Διαγραφή μη δημοσιευμένης καταχώρησης",deletePublishedEntry:"Διαγραφή δημοσιευμένης καταχώρησης",deleteEntry:"Διαγραφή καταχώρησης",saving:"Εξοικονόμηση...",save:"Αποθήκευση",deleting:"Διαγραφή...",updating:"Ενημέρωση...",status:"Κατάστασης: %{status}",backCollection:" Εγγραφή στη συλλογή %{collectionLabel}",unsavedChanges:"Μη αποθηκευμένες αλλαγές",changesSaved:"Αλλαγές που αποθηκεύτηκαν",draft:"Σχέδιο",inReview:"Σε επανεξέταση",ready:"Έτοιμα",publishNow:"Δημοσίευση τώρα",deployPreviewPendingButtonLabel:"Έλεγχος για προεπισκόπηση",deployPreviewButtonLabel:"Προβολή προεπισκόπησης",deployButtonLabel:"Προβολή Live"},editorWidgets:{image:{choose:"Επιλέξτε μια εικόνα",chooseDifferent:"Επιλέξτε διαφορετική εικόνα",remove:"Αφαιρέστε την εικόνα"},file:{choose:"Επιλέξτε ένα αρχείο",chooseDifferent:"Επιλέξτε διαφορετικό αρχείο",remove:"Αφαιρέστε το αρχείο"},unknownControl:{noControl:"Δεν υπάρχει έλεγχος για το widget '%{widget}'."},unknownPreview:{noPreview:"Δεν υπάρχει προεπισκόπηση για το widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"}}},mediaLibrary:{mediaLibraryCard:{draft:"Προσχέδιο"},mediaLibrary:{onDelete:"Είστε βέβαιοι ότι θέλετε να διαγράψετε τα επιλεγμένα πολυμέσα;",fileTooLarge:"Το αρχείο είναι πολύ μεγάλο.\nΔεν επιτρέπονται αρχεία μεγαλύτερα από %{size} kB."},mediaLibraryModal:{loading:"Φόρτωση...",noResults:"Χωρίς αποτελέσματα.",noAssetsFound:"Δεν βρέθηκαν αρχεία.",noImagesFound:"Δεν βρέθηκαν εικόνες.",private:"Ιδιωτικό",images:"Εικόνες",mediaAssets:"Αρχεία πολυμέσων",search:"Αναζήτηση...",uploading:"Φόρτωμα...",upload:"Ανεβάστε νέα",deleting:"Διαγραφή...",deleteSelected:"Διαγραφή επιλεγμένου",chooseSelected:"Επιλέξτε επιλεγμένο"}},ui:{errorBoundary:{title:"Σφάλμα",details:"Υπάρχει ένα λάθος ",reportIt:"παρακαλώ να το αναφέρετε.",detailsHeading:"Λεπτομέρειες",recoveredEntry:{heading:"Ανακτημένο έγγραφο",warning:"Παρακαλώ αντιγράψτε/επικολλήστε αυτό κάπου πριν πλοηγηθείτε μακριά!",copyButtonLabel:"Αντιγραφή στο Πρόχειρο"}},settingsDropdown:{logOut:"Αποσύνδεση"},toast:{onFailToLoadEntries:"Απέτυχε η φόρτωση της καταχώρησης: %{details}",onFailToLoadDeployPreview:"Απέτυχε η φόρτωση της προεπισκόπησης: %{details}",onFailToPersist:"Απέτυχε η διατήρηση της καταχώρησης:% {Details}",onFailToDelete:"Απέτυχε η διαγραφή της καταχώρησης: %{details}",onFailToUpdateStatus:"Απέτυχε η ενημέρωση της κατάστασης: %{details}",missingRequiredField:"Ουπς, ξεχάσατε ένα απαιτούμενο πεδίο. Συμπληρώστε το πριν από την αποθήκευση.",entrySaved:"Η καταχώρηση Αποθηκεύτηκε",entryPublished:"Η καταχώρηση δημοσιεύτηκε",entryUnpublished:"Μη δημοσιευμένη καταχώρηση",onFailToPublishEntry:"Η δημοσίευση απέτυχε: %{details}",onFailToUnpublishEntry:"Απέτυχε η κατάργηση δημοσίευσης καταχώρησης: %{details}",entryUpdated:"Η κατάσταση εισόδου ενημερώθηκε",onDeleteUnpublishedChanges:"Οι μη δημοσιευμένες αλλαγές διαγράφηκαν",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Φόρτωση καταχωρήσεων ροής εργασίας σύνταξης",workflowHeading:"Ροή εργασιών",newPost:"Νέα δημοσίευση",description:"%{smart_count} καταχώρησεις σε αναμονή για αναθεώρηση, %{readyCount} έτοιμες για Live μετάβαση. |||| %{smart_count} καταχωρήσεις σε αναμονή για αναθεώρηση, %{readyCount} έτοιμες για Live μετάβαση. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} από %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"από %{author}",deleteChanges:"Διαγραφή αλλαγών",deleteNewEntry:"Διαγραφή νέας καταχώρησης",publishChanges:"Δημοσίευση αλλαγών",publishNewEntry:"Δημοσίευση νέας καταχώρησης"},workflowList:{onDeleteEntry:"Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτήν την καταχώρηση;",onPublishingNotReadyEntry:'Μόνο τα στοιχεία με κατάσταση "Ready" μπορούν να δημοσιευτούν. Σύρετε την κάρτα στη στήλη "έτοιμο" για να ενεργοποιήσετε τη δημοσίευση.',onPublishEntry:"Είστε βέβαιοι ότι θέλετε να δημοσιεύσετε αυτήν την καταχώρηση;",draftHeader:"Προσχέδια",inReviewHeader:"Σε ανασκόπηση",readyHeader:"Έτοιμα",currentEntries:"%{smart_count} καταχωρηση |||| %{smart_count} καταχωρησεις"}}}},8102:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"התחברות",loggingIn:"התחברות...",loginWithNetlifyIdentity:"התחברות עם Netlify Identity",loginWithAzure:"התחברות עם Azure",loginWithBitbucket:"התחברות עם Bitbucket",loginWithGitHub:"התחברות עם GitHub",loginWithGitLab:"התחברות עם GitLab",loginWithGitea:"התחברות עם Gitea",errors:{email:"נא לא לשכוח להקליד את כתובת המייל",password:"נא להקליד את הסיסמה.",identitySettings:"הגדרות אימות הזהות אינן נגישות. כאשר משתמשים ב-git-gateway כשירות ה-backend יש לוודא ששירות אימות הזהות ו-Git Gateway הופעלו."}},app:{header:{content:"תוכן",workflow:"ניהול אייטמים לפני הפרסום",media:"מדיה",quickAdd:"הוספה מהירה"},app:{errorHeader:"אירעה שגיאה בטעינת הגדרות מערכת ניהול התוכן",configErrors:"שגיאות בהגדרות",checkConfigYml:"יש לבדוק את הקובץ config.yml.",loadingConfig:"טעינת הגדרות...",waitingBackend:"ממתין לטעינת ה-backend..."},notFoundPage:{header:"לא נמצא"}},collection:{sidebar:{collections:"קטגוריות",allCollections:"כל הקטגוריות",searchAll:"חיפוש כללי",searchIn:"חיפוש בקטגוריית"},collectionTop:{sortBy:"מיון לפי",viewAs:"תצוגה לפי",newButton:"חדש %{collectionLabel}",ascending:"בסדר עולה",descending:"בסדר יורד",searchResults:'תוצאות חיפוש עבור "%{searchTerm}"',searchResultsInCollection:'תוצאות חיפוש עבור "%{searchTerm}" ב%{collection}',filterBy:"סינון לפי",groupBy:"ארגון לפי"},entries:{loadingEntries:"טעינת אייטמים...",cachingEntries:"שמירת אייטמים בזכרון המטמון",longerLoading:"התהליך עשוי להימשך כמה דקות",noEntries:"לא נמצאו אייטמים"},groups:{other:"אחר",negateLabel:"לא %{label}"},defaultFields:{author:{label:"מאת"},updatedOn:{label:"עודכן בתאריך"}}},editor:{editorControl:{field:{optional:"רשות"}},editorControlPane:{widget:{required:"%{fieldLabel} הוא שדה חובה.",regexPattern:"%{fieldLabel} לא תואם לדפוס %{pattern}.",processing:"%{fieldLabel} מעובד.",range:"%{fieldLabel} חייב להיות בין %{minValue} לבין %{maxValue}.",min:"%{fieldLabel} חייב להיות לפחות %{minValue}.",max:"%{fieldLabel} חייב להיות %{maxValue} או פחות.",rangeCount:"%{fieldLabel} חייב לכלול בין %{minCount} לבין %{maxCount} אייטמים.",rangeCountExact:"%{fieldLabel} חייב לכלול בדיוק %{count} אייטמים.",rangeMin:"%{fieldLabel} חייב לכלול לפחות %{minCount} אייטמים",rangeMax:"%{fieldLabel} חייב לכלול %{maxCount} אייטמים לכל היותר.",invalidPath:"'%{path}' אינו URL תקין",pathExists:"'%{path}' כבר קיים"},i18n:{writingInLocale:"כתיבה בשפה ה%{locale}"}},editor:{onLeavePage:"האם ברצונך לעבור לעמוד אחר ללא שמירה?",onUpdatingWithUnsavedChanges:"בוצעו שינויים שלא נשמרו. יש לבצע שמירה לפני עדכון מצב האייטם.",onPublishingNotReady:"נא לשנות את מצב האייטם ל״מוכן לפרסום״ לפני הפרסום.",onPublishingWithUnsavedChanges:"בוצעו שינויים שלא נשמרו. יש לבצע שמירה לפני הפרסום.",onPublishing:"האם ברצונך לפרסם את האייטם?",onUnpublishing:"האם ברצונך לבטל את פרסום האייטם?",onDeleteWithUnsavedChanges:"האם ברצונך למחוק את האייטם הזה לפני פרסומו, וכן את השינויים שבוצעו כעת וטרם נשמרו?",onDeletePublishedEntry:"האם ברצונך למחוק את האייטם הזה לאחר פרסומו?",onDeleteUnpublishedChangesWithUnsavedChanges:"פעולה זו תמחק את כל השינויים שבוצעו באייטם זה ולא פורסמו, וכן את השינויים שבוצעו כעת וטרם נשמרו. האם ברצונך למחוק?",onDeleteUnpublishedChanges:"כל השינויים שבוצעו באייטם זה ולא פורסמו יימחקו. האם ברצונך למחוק אותו?",loadingEntry:"טעינת אייטם...",confirmLoadBackup:"קיים עותק מקומי שמור של האייטם. האם ברצונך לטעון אותו?"},editorInterface:{toggleI18n:"החלפת שפות",togglePreview:"הפעלת תצוגה מקדימה",toggleScrollSync:"סנכרון הגלילה"},editorToolbar:{publishing:"פרסום...",publish:"פרסום",published:"פורסם",unpublish:"ביטול הפרסום",duplicate:"שכפול",unpublishing:"ביטול הפרסום...",publishAndCreateNew:"פרסום ויצירת אייטם חדש",publishAndDuplicate:"פרסום ושכפול",deleteUnpublishedChanges:"מחיקת השינויים שלא פורסמו",deleteUnpublishedEntry:"מחיקת אייטם שטרם פורסם",deletePublishedEntry:"מחיקת אייטם שפורסם",deleteEntry:"מחיקת האייטם",saving:"שמירה...",save:"שמירה",statusInfoTooltipDraft:"האייטם מוגדר כטיוטה. כדי להשלים את הפעולה ולהעביר אותו למצב ״ממתין לאישור״ יש להעביר אותו למצב ״ממתין לאישור״",statusInfoTooltipInReview:"האייטם ממתין לאישור - לא נדרשת פעולה נוספת. ניתן עדיין לבצע שינויים בעת שהאייטם ממתין לאישור.",deleting:"מחיקה...",updating:"עדכון...",status:"מצב: %{status}",backCollection:"כתיבה בקטגוריית %{collectionLabel}",unsavedChanges:"שינויים לא שמורים",changesSaved:"השינויים נשמרו",draft:"טיוטה",inReview:"ממתין לאישור",ready:"מוכן לפרסום",publishNow:"פרסום מיידי",deployPreviewPendingButtonLabel:"בדיקת תצוגה מקדימה",deployPreviewButtonLabel:"צפייה בתצוגה מקדימה",deployButtonLabel:"צפייה באתר"},editorWidgets:{markdown:{bold:"מודגש",italic:"נטוי",code:"קוד",link:"קישור",linkPrompt:"נא להקליד את הכתובת לקישור",headings:"כותרת",quote:"ציטוט",bulletedList:"רשימה לא-ממוספרת",numberedList:"רשימה ממוספרת",addComponent:"הוספת רכיב",richText:"טקסט עשיר",markdown:"Markdown"},image:{choose:"בחירת תמונה",chooseUrl:"הוספה מכתובת אינטרנט",replaceUrl:"החלפת תמונה מכתובת אינטרנט",promptUrl:"נא להכניס את ה-URL של התמונה",chooseDifferent:"בחירת תמונה אחרת",remove:"הסרת תמונה"},file:{choose:"בחירת קובץ",chooseUrl:"הוספה מכתובת אינטרנט",replaceUrl:"החלפת קובץ מכתובת אינטרנט",promptUrl:"נא להכניס את ה-URL של הקובץ",chooseDifferent:"בחירת קובץ אחר",remove:"הסרת קובץ"},unknownControl:{noControl:"לא הוגדרו פעולות ל'%{widget}'."},unknownPreview:{noPreview:"אין תצוגה מקדימה ל'%{widget}'."},headingOptions:{headingOne:"כותרת 1",headingTwo:"כותרת 2",headingThree:"כותרת 3",headingFour:"כותרת 4",headingFive:"כותרת 5",headingSix:"כותרת 6"},datetime:{now:"עכשיו",clear:"ניקוי"},list:{add:"הוספת %{item}",addType:"הוספת אייטם מסוג %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"טיוטה",copy:"העתקה",copyUrl:"העתקת ה-URL",copyPath:"העתקת הנתיב",copyName:"העתקת השם",copied:"העתקה הושלמה"},mediaLibrary:{onDelete:"האם ברצונך למחוק את פריט המדיה הזה?",fileTooLarge:"הקובץ גדול מדי.\nמוגדר לא לאפשר העלאת קבצים גדולים מ-%{size} קילובייט."},mediaLibraryModal:{loading:"טעינה...",noResults:"לא נמצאו תוצאות.",noAssetsFound:"לא נמצאו קבצים.",noImagesFound:"לא נמצאו תמונות.",private:"פרטי ",images:"תמונות",mediaAssets:"קבצי מדיה",search:"חיפוש...",uploading:"העלאה...",upload:"העלאה",download:"הורדה",deleting:"מחיקה...",deleteSelected:"למחוק את הקובץ המסומן",chooseSelected:"לבחור את הקובץ המסומן"}},ui:{default:{goBackToSite:"בחזרה לאתר"},errorBoundary:{title:"שגיאה",details:"אירעה שגיאה. נא ",reportIt:"דווחו על הבעיה ב-GitHub.",detailsHeading:"פרטים",privacyWarning:"פתיחת Issue מעתיקה את הודעת השגיאה ונתונים רלוונטיים לאיתור הבעיה (debugging).\nיש לוודא שהמידע מדויק ולמחוק נתונים אישיים כלשהם.",recoveredEntry:{heading:"מסמך משוחזר",warning:"נא להעתיק ולהדביק את זה לפני ניווט לחלון אחר!",copyButtonLabel:"העתקה"}},settingsDropdown:{logOut:"התנתקות"},toast:{onFailToLoadEntries:"טעינת האייטם %{details} נכשלה",onFailToLoadDeployPreview:"טעינת התצוגה המקדימה של האייטם %{details} נכשלה",onFailToPersist:"אחסון האייטם %{details} נכשל",onFailToDelete:"מחיקת האייטם %{details} נכשלה",onFailToUpdateStatus:"עדכון מצב האייטם %{details} נכשל",missingRequiredField:"אופס, שכחת למלא שדה חובה. נא להשלים את המידע החסר לפני השמירה",entrySaved:"האייטם נשמר",entryPublished:"האייטם פורסם",entryUnpublished:"האייטם הועבר לטיוטות",onFailToPublishEntry:"פרסום האייטם %{details} נכשל",onFailToUnpublishEntry:"ביטול פרסום האייטם %{details} נכשל",entryUpdated:"מצב האייטם עודכן",onDeleteUnpublishedChanges:"השינויים שלא פורסמו נמחקו",onFailToAuth:"%{details}",onLoggedOut:"נותקת מהמערכת. יש לגבות מידע לא שמור ולהתחבר שוב",onBackendDown:"ה-backend המוגדר אינו זמין. ראו %{details} למידע נוסף"}},workflow:{workflow:{loading:"טעינת אייטמים",workflowHeading:"ניהול אייטמים לפני הפרסום",newPost:"אייטם חדש",description:"%אייטם {smart_count} ממתין לאישור, אייטם %{readyCount} מוכן לפרסום |||| %{smart_count} אייטמים ממתינים לאישור, %{readyCount} מוכנים לפרסום",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} מאת %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"מאת %{author}",deleteChanges:"למחוק את השינויים",deleteNewEntry:"למחוק אייטם חדש",publishChanges:"פרסום השינויים",publishNewEntry:"פרסום אייטם חדש"},workflowList:{onDeleteEntry:"האם ברצונך למחוק אייטם זה?",onPublishingNotReadyEntry:"ניתן לפרסם רק אייטמים שנמצאים במצב ״מוכן לפרסום״. נא לגרור את האייטם לטור ״מוכן לפרסום״ כדי לפרסם.",onPublishEntry:"האם ברצונך לפרסם אייטם זה?",draftHeader:"טיוטות",inReviewHeader:"ממתין לאישור",readyHeader:"מוכן לפרסום",currentEntries:"אייטם %{smart_count} |||| %{smart_count} אייטמים"}}}},62827:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Prijava",loggingIn:"Prijava u tijeku...",loginWithNetlifyIdentity:"Prijava sa Netlify računom",loginWithAzure:"Prijava za Azure računom",loginWithBitbucket:"Prijava sa Bitbucket računom",loginWithGitHub:"Prijava sa GitHub računom",loginWithGitLab:"Prijava sa GitLab računom",loginWithGitea:"Prijava sa Gitea računom",errors:{email:"Unesite email.",password:"Molimo unisite lozinku.",identitySettings:'Nemoguće pristupiti postavkama identita. Kod korištenja git-gateway backenda morate uključiti "Identity service" te "Git Gateway"'}},app:{header:{content:"Sadržaj",workflow:"Tijek rada",media:"Mediji",quickAdd:"Dodaj"},app:{errorHeader:"Greška pri učitavanju CMS konfiguracije",configErrors:"Greška u konfiguraciji",checkConfigYml:"Provjeri config.yml datoteku.",loadingConfig:"Učitavanje konfiguracije...",waitingBackend:"Čekanje na backend..."},notFoundPage:{header:"Stranica nije pronađena"}},collection:{sidebar:{collections:"Zbirke",allCollections:"Sve zbirke",searchAll:"Pretraži sve",searchIn:"Pretraži u"},collectionTop:{sortBy:"Sortiraj",viewAs:"Pogledaj kao",newButton:"Nova %{collectionLabel}",ascending:"Uzlazno",descending:"Silzano",searchResults:'Rezulatati pretraživanja za "%{searchTerm}"',searchResultsInCollection:'Rezulatati pretraživanja za "%{searchTerm}" u %{collection}',filterBy:"Filtriraj po",groupBy:"Grupiraj po"},entries:{loadingEntries:"Učitavanje unosa...",cachingEntries:"Predmemoriranje unosa...",longerLoading:"Ovo bi moglo potrajati par minuta",noEntries:"Nema unosa"},groups:{other:"Ostalo",negateLabel:"Nije %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Ažurirano na"}}},editor:{editorControl:{field:{optional:"opcionalno"}},editorControlPane:{widget:{required:"%{fieldLabel} je obvezan.",regexPattern:"%{fieldLabel} se ne podudara sa uzorkom: %{pattern}.",processing:"%{fieldLabel} se procesira.",range:"%{fieldLabel} mora biti između %{minValue} i %{maxValue}.",min:"%{fieldLabel} mora biti najmanje %{minValue}.",max:"%{fieldLabel} mora biti %{maxValue} ili manje.",rangeCount:"%{fieldLabel} mora imati između %{minCount} i %{maxCount} predmeta.",rangeCountExact:"%{fieldLabel} mora imati točno %{count} predmeta.",rangeMin:"%{fieldLabel} mora imati najmanje %{minCount} predmet(a).",rangeMax:"%{fieldLabel} mora imate %{maxCount} ili manje predmeta.",invalidPath:"'%{path}' nije valjana putanja",pathExists:"Putanja '%{path}' već postoji"},i18n:{writingInLocale:"Pisanje na %{locale}"}},editor:{onLeavePage:"Jeste li sigurni da želite napustiti stranicu?",onUpdatingWithUnsavedChanges:"Imate nespremljene promjene, molimo spremite prije ažuriranja statusa.",onPublishingNotReady:'Molimo ažurirajte status na "Spremno" prije objavljivanja.',onPublishingWithUnsavedChanges:"Imate nespremljene promjene, molimo spremite prije objavljivanja.",onPublishing:"Jeste li sigurni da želite objaviti ovaj unos?",onUnpublishing:"Jeste li sigurni da želite maknuti objavu za ovaj unos?",onDeleteWithUnsavedChanges:"Jeste li sigurni da želite obrisati objavljeni unos, te nespremljene promjene u trenutnoj sesiji?",onDeletePublishedEntry:"Jeste li sigurni da želite obrisati ovaj objavljeni unos?",onDeleteUnpublishedChangesWithUnsavedChanges:"Obrisat ćete sve neobjavljene promjene na ovom unosu, te sve nespremljene promjene u trenutnoj sesiji. Želite li i dalje obrisati?",onDeleteUnpublishedChanges:"Sve nespremljene promjene na ovom unosu će biti obrisane. Želite li i dalje obrisati?",loadingEntry:"Učitavanje unosa...",confirmLoadBackup:"Lokalna kopija je dohvaćena za ovaj unos, želite li ju koristiti?"},editorToolbar:{publishing:"Objavljivanje...",publish:"Objavi",published:"Objavljeno",unpublish:"Obriši iz objava",duplicate:"Dupliciraj",unpublishing:"Brisanje iz objava...",publishAndCreateNew:"Objavi i kreiraj novo",publishAndDuplicate:"Objavi i dupliciraj",deleteUnpublishedChanges:"Obriši neobjavljene promjene",deleteUnpublishedEntry:"Obriši neobjavljene unose",deletePublishedEntry:"Obriši objavljeni unos",deleteEntry:"Obriši unos",saving:"Spremanje...",save:"Spremi",deleting:"Brisanje...",updating:"Ažuriranje...",status:"Status: %{status}",backCollection:"Pisanje u %{collectionLabel} zbirci",unsavedChanges:"Nespremljene promjene",changesSaved:"Promjene spremljene",draft:"Skica",inReview:"Osvrt",ready:"Spremno",publishNow:"Objavi sad",deployPreviewPendingButtonLabel:"Provjeri za osvrt",deployPreviewButtonLabel:"Pogledaj osvrt",deployButtonLabel:"Pogledaj na produkciji"},editorWidgets:{markdown:{bold:"Podebljano",italic:"Kurziv",code:"Kod",link:"Link",linkPrompt:"Unesi URL linka",headings:"Naslovi",quote:"Citat",bulletedList:"Nabrajan popis",numberedList:"Numeriran popis",addComponent:"Dodaj komponentu",richText:"Bogati tekst",markdown:"Markdown"},image:{choose:"Odaberi sliku",chooseDifferent:"Odaberi drugu sliku",remove:"Izbriši sliku"},file:{choose:"Odaberi datoteku",chooseDifferent:"Odaberi drugu datoteku",remove:"Obriši datoteku"},unknownControl:{noControl:"Kontrola nije pronađena za widget '%{widget}'."},unknownPreview:{noPreview:"Prikaz nije pronađen za widget '%{widget}'."},headingOptions:{headingOne:"Naslov 1",headingTwo:"Naslov 2",headingThree:"Naslov 3",headingFour:"Naslov 4",headingFive:"Naslov 5",headingSix:"Naslov 6"},datetime:{now:"Sad",clear:"Očisti"}}},mediaLibrary:{mediaLibraryCard:{draft:"Skica"},mediaLibrary:{onDelete:"Jeste li sigurni da želite obrisati odabrane medijske datoteke?",fileTooLarge:"Datoteka prevelika.\nKonfigurirano da ne podržava datoteke veće od %{size} kB."},mediaLibraryModal:{loading:"Učitavanje...",noResults:"Nema rezultata.",noAssetsFound:"Sredstva nisu pronađena.",noImagesFound:"Slike nisu pronađene.",private:"Privatno ",images:"Slike",mediaAssets:"Medijska sredstva",search:"Pretraži...",uploading:"Učitavanje...",upload:"Učitaj",download:"Preuzmi",deleting:"Brisanje...",deleteSelected:"Obriši označeno",chooseSelected:"Odaberi označeno"}},ui:{default:{goBackToSite:"Povratak na stranicu"},errorBoundary:{title:"Greška",details:"Dogodila se greška - molimo ",reportIt:"otvori issue (problem) na GitHubu.",detailsHeading:"Detalji",privacyWarning:"Otvaranje issue-a (problema) populira ga sa porukom od greške i debug podacima.\nProvjerite jesu li infomacije točne i obrišite osjetljive podatke ako postoje.",recoveredEntry:{heading:"Obnovljen dokument",warning:"Molimo kopiraj/zalijepi ovo negdje prije odlaska dalje!",copyButtonLabel:"Kopiraj u međuspremnik"}},settingsDropdown:{logOut:"Odjava"},toast:{onFailToLoadEntries:"Neuspjelo dohvaćanje unosa: %{details}",onFailToLoadDeployPreview:"Neuspjelo dohvaćanje pregleda: %{details}",onFailToPersist:"Neuspjelo spremanje unosa: %{details}",onFailToDelete:"Neuspjelo brisanje unosa: %{details}",onFailToUpdateStatus:"Neuspjelo ažuriranje statusa: %{details}",missingRequiredField:"Uups, preskočili ste obvezno polje. Molimo popunite prije spremanja.",entrySaved:"Unos spremljen",entryPublished:"Unos objavljen",entryUnpublished:"Unos obrisan",onFailToPublishEntry:"Neuspjelo objavljivanje unosa: %{details}",onFailToUnpublishEntry:"Neuspjelo brisanje unosa: %{details}",entryUpdated:"Status unosa ažuriran",onDeleteUnpublishedChanges:"Otkrivene neobjavljene objave",onFailToAuth:"%{details}",onLoggedOut:"Odjavljeni ste, molimo spremite sve podatke i prijavite se ponovno",onBackendDown:"Backend servis ima prekid rada. Pogledaj %{details} za više informacija"}},workflow:{workflow:{loading:"Učitavanje unosa uredničkog tijeka rada",workflowHeading:"Urednički tijek rada",newPost:"Nova objava",description:"%{smart_count} unos čeka pregled, %{readyCount} unos spreman za produkciju. |||| %{smart_count} unosa čeka pregled, %{readyCount} unosa spremno za produkciju. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} od strane %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"od strane %{author}",deleteChanges:"Obriši promjene",deleteNewEntry:"Obriši novi unos",publishChanges:"Objavi promjene",publishNewEntry:"Objavi novi unos"},workflowList:{onDeleteEntry:"Jeste li sigurni da želite obrisati unos?",onPublishingNotReadyEntry:'Samo promjene sa statusom "Spremno" mogu biti objavljene. Molimo povucite karticu u kolumnu "Spremno" prije objavljivanja.',onPublishEntry:"Jeste li sigurni da želite objaviti unos?",draftHeader:"Skice",inReviewHeader:"U osvrtu",readyHeader:"Spremno",currentEntries:"%{smart_count} unos |||| %{smart_count} unosa"}}}},9169:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={app:{header:{content:"Tartalom",workflow:"Munkafolyamat",media:"Média",quickAdd:"Gyors hozzáadás"},app:{errorHeader:"Hiba történt a CMS konfiguráció betöltése közben",configErrors:"Configurációs hibák",checkConfigYml:"Ellenőrizd a config.yml filet.",loadingConfig:"Konfiguráció betöltése...",waitingBackend:"Várakozás hattérrendszerekre..."},notFoundPage:{header:"Nincs találat"}},collection:{sidebar:{collections:"Gyűjtemények",searchAll:"Keresés mindenre"},collectionTop:{viewAs:"Nézet mint",newButton:"Új %{collectionLabel}"},entries:{loadingEntries:"Bejegyzések betöltése",cachingEntries:"Bejegyzések cacheelése",longerLoading:"Ez még eltarthat néhany percig"}},editor:{editorControl:{field:{optional:"választható"}},editorControlPane:{widget:{required:"%{fieldLabel} kötelező mező.",regexPattern:"%{fieldLabel} nem egyezik a %{pattern} mintával.",processing:"%{fieldLabel} feldolgozás alatt.",range:"%{fieldLabel}, %{minValue} és %{maxValue} értékek között kell legyen.",min:"%{fieldLabel} legalább %{minValue} kell legyen vagy több.",max:"%{fieldLabel} legalabb %{maxValue} vagy kevesebb kell legyen."}},editor:{onLeavePage:"Biztos hogy el akarod hagyni az oldalt?",onUpdatingWithUnsavedChanges:"Mentettlen változtatások vannak, kérjük, mentse az állapot frissítése előtt.",onPublishingNotReady:'Változtasd az állapotot "Kész"-re publikálás előtt.',onPublishingWithUnsavedChanges:"Mentetlen változtatások vannak, kérjük, mentsen a publikálás előtt.",onPublishing:"Publikálod ezt a bejegyzést?",onUnpublishing:"Publikálás visszavonása erre a bejegyzésre?",onDeleteWithUnsavedChanges:"Töröljük ezt a publikált bejegyzést, a többi mentetlen modositással együtt?",onDeletePublishedEntry:"Töröljük ezt a publikált bejegyzést?",onDeleteUnpublishedChangesWithUnsavedChanges:"Ezzel törli a bejegyzés összes nem közzétett módosítását, valamint az aktuális munkamenetből nem mentett módosításokat. Még mindig törli?",onDeleteUnpublishedChanges:"A bejegyzés összes, nem közzétett módosítása törlődik. Még mindig törli?",loadingEntry:"Bejegyzés betöltése...",confirmLoadBackup:"Helyi biztonsági másolat került helyre ehhez a bejegyzéshez, szeretné használni?"},editorToolbar:{publishing:"Publikálás...",publish:"Publikáció",published:"Publikálás",unpublish:"Publikálás visszavonása",duplicate:"Duplikált",unpublishing:"Publikálás visszavonása...",publishAndCreateNew:"Publikálás és új létrehozása",publishAndDuplicate:"Publikálás és duplikál",deleteUnpublishedChanges:"Nempublikált változtatások törlése",deleteUnpublishedEntry:"Nempublikált bejegyzés törlése",deletePublishedEntry:"Publikált bejegyzés törlése",deleteEntry:"Bejegyzés törlése",saving:"Mentés...",save:"Mentés",deleting:"Törlés...",updating:"Frissítés...",status:"Beállitása: %{status}",backCollection:" Írás a %{collectionLabel} gyűjteménybe",unsavedChanges:"Nemmentett változtatások",changesSaved:"Változások elmentve",draft:"Piszkozat",inReview:"Felülvizsgálat alatt",ready:"Kész",publishNow:"Publikálás most",deployPreviewPendingButtonLabel:"Előnézet ellenörzése",deployPreviewButtonLabel:"Előnézet megtekintése",deployButtonLabel:"Élő megtekintése"},editorWidgets:{image:{choose:"Válasszon képet",chooseDifferent:"Válasszon másik képet",remove:"Távolítsa el a képet"},file:{choose:"Válasszon fájlt",chooseDifferent:"Válasszon másik fájlt",remove:"Távolítsa el a fájlt"},unknownControl:{noControl:"Nincs vezérlés a '%{widget}' widget számára."},unknownPreview:{noPreview:"Nincs előnézet a '%{widget}' widget számára."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},list:{add:"Új %{item}",addType:"Új típus %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Piszkozat"},mediaLibrary:{onDelete:"Biztos törli a kiválasztott média tartalmat?"},mediaLibraryModal:{loading:"Betöltés...",noResults:"Nincs találat.",noAssetsFound:"Nem található tartalom.",noImagesFound:"Nem található kép.",private:"Privát ",images:"Képek",mediaAssets:"Média tartalmak",search:"Keresés...",uploading:"Feltöltés...",upload:"Új feltöltés",deleting:"Törlés...",deleteSelected:"Kijelöltek törlése",chooseSelected:"Kijelöl"}},ui:{errorBoundary:{title:"Hiba",details:"Hiba történt - kérjük ",reportIt:"jelentse.",detailsHeading:"Részletek",recoveredEntry:{heading:"Helyreállitott dokumentum",warning:"Kérjük mentse ezt el (vágólapra) mielőtt elhagyná az oldalt!",copyButtonLabel:"Másolás a vágólapra"}},settingsDropdown:{logOut:"Kijelentkezés"},toast:{onFailToLoadEntries:"A bejegyzés betöltése nem sikerült: %{details}",onFailToLoadDeployPreview:"Az előnézet betöltése nem sikerült: %{details}",onFailToPersist:"Bejegyzés megtartása sikertelen: %{details}",onFailToDelete:"A bejegyzés törlése sikertelen: %{details}",onFailToUpdateStatus:"Az állapot frissítése nem sikerült: %{details}",missingRequiredField:"Hoppá, kihagytál egy kötelező mezőt. Mentés előtt töltsd ki.",entrySaved:"Bejegyzés elmentve",entryPublished:"Bejegyzés publikálva",entryUnpublished:"Bejegyzés publikálása visszavonva",onFailToPublishEntry:"Bejegyzés publikálása sikertelen: %{details}",onFailToUnpublishEntry:"Bejegyzés publikálásának visszavonása sikertelen: %{details}",entryUpdated:"Bejegyzés állapota frissült",onDeleteUnpublishedChanges:"Unpublished changes deleted",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"A szerkesztési munkafolyamat-bejegyzések betöltése",workflowHeading:"Szerkesztői Folyamat",newPost:"New Post",description:"%{smart_count} bejegyzés felülvizsgálatra vár, %{readyCount} élesítésre vár. |||| %{smart_count} bejegyzés felülvizsgálatra vár, %{readyCount} élesítésre vár. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, írta %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Változtatások törlése",deleteNewEntry:"Új bejegyzés törlése",publishChanges:"Változtatások publikálása",publishNewEntry:"Új bejegyzés publikálása"},workflowList:{onDeleteEntry:"Biztosan törli ezt a bejegyzést?",onPublishingNotReadyEntry:'Csak a "Kész" állapotú tételek tehetők közzé. A közzététel engedélyezéséhez húzza a kártyát a „Kész” oszlopba.',onPublishEntry:"Biztosan közzéteszi ezt a bejegyzést?",draftHeader:"Piszkozat",inReviewHeader:"Vizsgálat alatt",readyHeader:"Kész",currentEntries:"%{smart_count} bejegyzés |||| %{smart_count} bejegyzések"}}}},92035:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bg",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"ca",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"cs",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"da",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"de",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"en",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"es",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"fa",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"fr",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"gr",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"he",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"hr",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"hu",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"it",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"ja",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"ko",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"lt",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"nb_no",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"nl",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"nn_no",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"pl",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"pt",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"ro",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"ru",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"sl",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"sv",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"th",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"tr",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"ua",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"uk",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"vi",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"zh_Hans",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"zh_Hant",{enumerable:!0,get:function(){return O.default}});var r=j(n(47775)),i=j(n(49312)),o=j(n(36407)),a=j(n(95590)),s=j(n(33321)),l=j(n(20026)),u=j(n(97421)),c=j(n(86187)),d=j(n(1107)),f=j(n(9169)),p=j(n(60062)),h=j(n(36221)),m=j(n(18694)),g=j(n(79791)),v=j(n(65954)),y=j(n(37277)),b=j(n(62423)),w=j(n(49968)),_=j(n(64425)),x=j(n(57312)),k=j(n(10869)),E=j(n(15340)),S=j(n(95093)),C=j(n(72872)),T=j(n(3409)),O=j(n(15029)),A=j(n(42221)),P=j(n(62827)),R=j(n(48821)),D=j(n(63379)),M=j(n(61522)),I=j(n(8102)),L=j(n(57722));function j(e){return e&&e.__esModule?e:{default:e}}},60062:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Accedi",loggingIn:"Effettuando l'accesso...",loginWithNetlifyIdentity:"Accedi con Netlify Identity",loginWithBitbucket:"Accedi con Bitbucket",loginWithGitHub:"Accedi con GitHub",loginWithGitLab:"Accedi con GitLab",loginWithGitea:"Accedi con Gitea",errors:{email:"Assicurati di inserire la tua mail.",password:"Inserisci la tua password.",identitySettings:"Impossibile accedere alle impostazioni di Identity. Quando usi git-gateway come backend assicurati di abilitare il servizio Itentity e Git Gateway."}},app:{header:{content:"Contenuti",workflow:"Workflow",media:"Media",quickAdd:"Aggiunta veloce"},app:{errorHeader:"Errore nel caricamento della configurazione CMS",configErrors:"Errori di Configurazione",checkConfigYml:"Controlla il tuo file config.yml.",loadingConfig:"Caricando la configurazione...",waitingBackend:"Attendi il backend..."},notFoundPage:{header:"Non trovato"}},collection:{sidebar:{collections:"Collezioni",searchAll:"Cerca su tutto"},collectionTop:{viewAs:"Vedi come",newButton:"Nuovo/a %{collectionLabel}"},entries:{loadingEntries:"Caricando le voci",cachingEntries:"Cachando le voci",longerLoading:"Questa operazione potrebbe durare diversi minuti"}},editor:{editorControl:{field:{optional:"opzionale"}},editorControlPane:{widget:{required:"%{fieldLabel} è richiesto.",regexPattern:"%{fieldLabel} non corrisponde allo schema: %{pattern}.",processing:"%{fieldLabel} sta elaborando.",range:"%{fieldLabel} deve essere tra %{minValue} e %{maxValue}.",min:"%{fieldLabel} deve essere almeno %{minValue}.",max:"%{fieldLabel} deve essere %{maxValue} o meno."}},editor:{onLeavePage:"Sei sicuro di voler lasciare questa pagina?",onUpdatingWithUnsavedChanges:"Hai delle modifiche non salvate, salvale prima di aggiornare lo status.",onPublishingNotReady:'Aggiorna lo status a "Pronto" prima di pubblicare.',onPublishingWithUnsavedChanges:"Hai delle modifiche non salvate, salvale prima di pubblicare.",onPublishing:"Sei sicuro di voler pubblicare questa voce?",onUnpublishing:"Sei sicuro di voler nascondere questa voce?",onDeleteWithUnsavedChanges:"Sei sicuro di voler cancellare questa voce pubblicata e tutte le modifiche non salvate della tua sessione corrente?",onDeletePublishedEntry:"Sei sicuro di voler cancellare questa voce pubblicata?",onDeleteUnpublishedChangesWithUnsavedChanges:"Questo cancellerà tutte le modifiche non pubblicate di questa voce, come anche tutte le modifiche non salvate della sessione corrente. Vuoi ancora cancellarle?",onDeleteUnpublishedChanges:"Tutte le modifiche non pubblicate a questa voce saranno cancellate. Vuoi ancora cancellarle?",loadingEntry:"Caricando la voce...",confirmLoadBackup:"Un backup locale è stato recuperato per questa voce, vuoi utilizzarlo?"},editorToolbar:{publishing:"Pubblicando...",publish:"Pubblica",published:"Pubblicato",unpublish:"Rimuovi dalla pubblicazione",duplicate:"Duplica",unpublishing:"Rimuovendo dalla pubblicazione...",publishAndCreateNew:"Pubblica e creane uno nuovo",publishAndDuplicate:"Pubblica e duplica",deleteUnpublishedChanges:"Cancella le modifiche non pubblicate",deleteUnpublishedEntry:"Cancella le voci non pubblicate",deletePublishedEntry:"Cancella la voce pubblicata",deleteEntry:"Cancella voce",saving:"Salvando...",save:"Salva",deleting:"Cancellando...",updating:"Aggiornando...",status:"Status: %{status}",backCollection:" Scrivendo nella sezione %{collectionLabel}",unsavedChanges:"Modifiche non salvate",changesSaved:"Modifiche salvate",draft:"Bozza",inReview:"In revisione",ready:"Pronto",publishNow:"Pubblica ora",deployPreviewPendingButtonLabel:"Controlla l'anteprima",deployPreviewButtonLabel:"Guarda l'anteprima",deployButtonLabel:"Guarda Live"},editorWidgets:{image:{choose:"Scegli un'immagine",chooseDifferent:"Scegli un'immagine diversa",remove:"Rimuovi immagine"},file:{choose:"Scegli un file",chooseDifferent:"Scegli un altro file",remove:"Rimuovi il file"},unknownControl:{noControl:"Nessun controllo per il widget '%{widget}'."},unknownPreview:{noPreview:"Nessuna preview per il widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"}}},mediaLibrary:{mediaLibraryCard:{draft:"Bozza"},mediaLibrary:{onDelete:"Sei sicuro di voler cancellare il media selezionato?",fileTooLarge:"File troppo grande.\nConfigurato per non accettare file piú grandi di %{size} kB."},mediaLibraryModal:{loading:"Caricamento...",noResults:"Nessun risultato.",noAssetsFound:"Nessun assets trovato.",noImagesFound:"Nessuna immagine trovata.",private:"Privato ",images:"Immagini",mediaAssets:"Media assets",search:"Cerca...",uploading:"Uploading...",upload:"Upload",deleting:"Deleting...",deleteSelected:"Cancella selezionato",chooseSelected:"Prendi selezionato"}},ui:{errorBoundary:{title:"Errore",details:"C'è stato un errore - per favore ",reportIt:"riportalo.",detailsHeading:"Dettagli",recoveredEntry:{heading:"Documento recuperato",warning:"Per favore copia/incollalo da qualche parte prima di navigare altrove!",copyButtonLabel:"Copialo negli appunti"}},settingsDropdown:{logOut:"Esci"},toast:{onFailToLoadEntries:"Caricamento voce non riuscito: %{details}",onFailToLoadDeployPreview:"Caricamento della preview non riuscito: %{details}",onFailToPersist:"Salvataggio della voce non riuscito: %{details}",onFailToDelete:"Cancellazione della voce non riuscita: %{details}",onFailToUpdateStatus:"Aggiornamento dello status non riuscito: %{details}",missingRequiredField:"Oops, ti sei perso un campo obbligatorio. Per favore completalo prima di salvare.",entrySaved:"Voce salvata",entryPublished:"Voce pubblicata",entryUnpublished:"Voce rimossa dalla pubblicazione",onFailToPublishEntry:"Pubblicazione fallita: %{details}",onFailToUnpublishEntry:"Rimozione della pubblicazione fallita: %{details}",entryUpdated:"Status della voce aggiornato",onDeleteUnpublishedChanges:"Modifiche non pubblicate cancellate",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Caricando le voci del Flusso Editoriale",workflowHeading:"Flusso Editoriale",newPost:"Nuovo Post",description:"%{smart_count} voce attende la revisione, %{readyCount} pronte per la pubblicazione. |||| %{smart_count} voci attendono la revisione, %{readyCount} pronte per la pubblicazione. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} da %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"da %{author}",deleteChanges:"Cancella le modifiche",deleteNewEntry:"Cancella nuova voce",publishChanges:"Pubblica modifiche",publishNewEntry:"Pubblica una nuova voce"},workflowList:{onDeleteEntry:"Sei sicuro di voler cancellare questa voce?",onPublishingNotReadyEntry:'Solo gli oggetti con lo status "Pronto" possono essere pubblicati. Sposta la Card nella colonna "Pronto" per abilitare la pubblicazione.',onPublishEntry:"Sei sicuro di voler pubblicare questa voce?",draftHeader:"Bozze",inReviewHeader:"In Revisione",readyHeader:"Pronto",currentEntries:"%{smart_count} voce |||| %{smart_count} voci"}}}},18694:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"ログイン",loggingIn:"ログインしています...",loginWithNetlifyIdentity:"Netlify Identity でログインする",loginWithAzure:"Azure でログインする",loginWithBitbucket:"Bitbucket でログインする",loginWithGitHub:"GitHub でログインする",loginWithGitLab:"GitLab でログインする",loginWithGitea:"Gitea でログインする",errors:{email:"メールアドレスを確認してください。",password:"パスワードを入力してください。",identitySettings:"認証情報にアクセスできませんでした。git-gateway backend を利用している場合は、認証サービスと Git Gateway が有効になっているかを確認してください。"}},app:{header:{content:"コンテンツ",workflow:"ワークフロー",media:"メディア",quickAdd:"新規作成"},app:{errorHeader:"CMS設定の読み込みエラー",configErrors:"設定エラー",checkConfigYml:"config.ymlを確認してください。",loadingConfig:"設定を読み込んでいます...",waitingBackend:"バックエンドの応答を待機しています..."},notFoundPage:{header:"ページが見つかりません"}},collection:{sidebar:{collections:"コレクション",allCollections:"すべてのコレクション",searchAll:"検索",searchIn:"検索対象"},collectionTop:{sortBy:"ソート",viewAs:"表示モード",newButton:"%{collectionLabel}を作成",ascending:"昇順",descending:"降順",searchResults:"「%{searchTerm}」の検索結果",searchResultsInCollection:"%{collection}内の「%{searchTerm}」の検索結果",filterBy:"絞り込み",groupBy:"グルーピング"},entries:{loadingEntries:"エントリを読み込み中",cachingEntries:"エントリをキャッシュ中",longerLoading:"少々お待ちください",noEntries:"エントリがありません"},groups:{other:"その他",negateLabel:"%{label}以外"},defaultFields:{author:{label:"作成者"},updatedOn:{label:"最終更新"}}},editor:{editorControl:{field:{optional:"任意"}},editorControlPane:{widget:{required:"%{fieldLabel}は必須です。",regexPattern:"%{fieldLabel}が入力規則(%{pattern})と一致しません。",processing:"%{fieldLabel}を処理しています。",range:"%{fieldLabel}は%{minValue}から%{maxValue}まで入力可能です。",min:"%{fieldLabel}の最小値は%{minValue}です。",max:"%{fieldLabel}の最大値は%{maxValue}です。",rangeCount:"%{fieldLabel}は%{minCount}個から%{maxCount}個まで選択してください。",rangeCountExact:"%{fieldLabel}はちょうど%{count}個選択してください。",rangeMin:"%{fieldLabel}は%{minCount}個以上選択してください。",rangeMax:"%{fieldLabel}は%{maxCount}個以下選択してください。",invalidPath:"'%{path}'は有効なパスではありません。",pathExists:"'%{path}'というパスはすでに存在しています。"},i18n:{writingInLocale:"言語: %{locale}"}},editor:{onLeavePage:"このページから遷移しますか?",onUpdatingWithUnsavedChanges:"変更した項目があります。ステータスを更新する前に保存してください。",onPublishingNotReady:"公開する前に、ステータスを「準備完了」に更新してください。",onPublishingWithUnsavedChanges:"変更した項目があります。公開する前に保存してください。",onPublishing:"このエントリを公開しますか?",onUnpublishing:"このエントリを未公開にしますか?",onDeleteWithUnsavedChanges:"保存されていない変更も削除されますが、この公開エントリを削除しますか?",onDeletePublishedEntry:"この公開エントリを削除しますか?",onDeleteUnpublishedChangesWithUnsavedChanges:"保存されていない変更も削除されますが、このエントリの未公開の変更を削除しますか?",onDeleteUnpublishedChanges:"公開されていない変更も削除されますが、このエントリを削除しますか?",loadingEntry:"エントリの読込中...",confirmLoadBackup:"ローカルのバックアップが復旧できました。利用しますか?"},editorInterface:{toggleI18n:"言語を切り替える",togglePreview:"プレビュー表示を切り替える",toggleScrollSync:"スクロール同期を切り替える"},editorToolbar:{publishing:"公開しています...",publish:"公開",published:"公開済",unpublish:"未公開",duplicate:"複製",unpublishing:"未公開にしています...",publishAndCreateNew:"公開して新規作成",publishAndDuplicate:"公開して複製する",deleteUnpublishedChanges:"未公開の変更を削除",deleteUnpublishedEntry:"未公開エントリを削除",deletePublishedEntry:"公開エントリを削除",deleteEntry:"エントリを削除",saving:"保存中...",save:"保存",statusInfoTooltipDraft:"エントリのステータスは下書きに設定されています。最終決定してレビューに提出するには、ステータスを「レビュー中」に設定します。",statusInfoTooltipInReview:"エントリはレビュー中なので、それ以上のアクションは必要ありません。ただし、レビュー中でも追加の変更を行うことができます。",deleting:"削除しています...",updating:"更新しています...",status:"ステータス: %{status}",backCollection:"%{collectionLabel}のエントリを作成中",unsavedChanges:"未保存",changesSaved:"保存済",draft:"下書き",inReview:"レビュー中",ready:"準備完了",publishNow:"公開する",deployPreviewPendingButtonLabel:"プレビューのチェック",deployPreviewButtonLabel:"プレビューを見る",deployButtonLabel:"ライブで見る"},editorWidgets:{markdown:{bold:"太字",italic:"斜体",code:"コード",link:"リンク",linkPrompt:"リンクのURLを入力してください",headings:"見出し",quote:"引用",bulletedList:"箇条書き",numberedList:"番号付きリスト",addComponent:"コンポーネント追加",richText:"リッチテキスト",markdown:"マークダウン"},image:{choose:"画像を選択",chooseUrl:"URLを入力する",replaceUrl:"URLを変更する",promptUrl:"画像のURLを入力してください",chooseDifferent:"他の画像を選択",remove:"画像を削除"},file:{choose:"ファイルを選択",chooseUrl:"URLを入力する",replaceUrl:"URLを変更する",promptUrl:"ファイルのURLを入力してください",chooseDifferent:"他のファイルを選択",remove:"ファイルを削除"},unknownControl:{noControl:"'%{widget}'はウィジェットとして利用できません。"},unknownPreview:{noPreview:"'%{widget}'のウィジェットにはプレビューがありません。"},headingOptions:{headingOne:"見出し 1",headingTwo:"見出し 2",headingThree:"見出し 3",headingFour:"見出し 4",headingFive:"見出し 5",headingSix:"見出し 6"},datetime:{now:"現時刻",clear:"クリア"}}},mediaLibrary:{mediaLibraryCard:{draft:"下書き",copy:"コピー",copyUrl:"URLをコピー",copyPath:"パスをコピー",copyName:"名前をコピー",copied:"コピーしました"},mediaLibrary:{onDelete:"選択しているデータを削除しますか?",fileTooLarge:"ファイルサイズが大きすぎます。\n%{size} kB 以下にしてください。"},mediaLibraryModal:{loading:"読込中...",noResults:"データがありません。",noAssetsFound:"データがありません。",noImagesFound:"データがありません。",private:"プライベート",images:"画像",mediaAssets:"メディア",search:"検索",uploading:"アップロード中...",upload:"アップロードする",download:"ダウンロードする",deleting:"削除中...",deleteSelected:"削除する",chooseSelected:"選択する"}},ui:{default:{goBackToSite:"サイトに戻る"},errorBoundary:{title:"エラー",details:"エラーが発生しました。",reportIt:"レポートする",detailsHeading:"詳細",privacyWarning:"エラーメッセージとデバッグのデータがレポートする前に表示されます。\n情報が正しいことを確認し、機密データが存在する場合は削除してください。",recoveredEntry:{heading:"復旧したエントリ",warning:"必要あれば、このページから遷移する前にコピーしてください。",copyButtonLabel:"コピーする"}},settingsDropdown:{logOut:"ログアウト"},toast:{onFailToLoadEntries:"エントリの読み込みに失敗しました。%{details}",onFailToLoadDeployPreview:"プレビューの読み込みに失敗しました。%{details}",onFailToPersist:"エントリの保存に失敗しました。%{details}",onFailToDelete:"エントリの削除に失敗しました。%{details}",onFailToUpdateStatus:"エントリのステータス更新に失敗しました。%{details}",missingRequiredField:"すべての必須項目を入力してください。",entrySaved:"保存しました。",entryPublished:"公開しました。",entryUnpublished:"未公開にしました。",onFailToPublishEntry:"エントリの公開に失敗しました。%{details}",onFailToUnpublishEntry:"エントリを未公開にするのに失敗しました。%{details}",entryUpdated:"エントリのステータスを更新しました。",onDeleteUnpublishedChanges:"未公開の変更を削除しました。",onFailToAuth:"%{details}",onLoggedOut:"ログアウトされています。データをバックアップし、再度ログインしてください。",onBackendDown:"バックエンドのシステムが停止しています。%{details}"}},workflow:{workflow:{loading:"ワークフロー内のエントリを読込中",workflowHeading:"ワークフロー",newPost:"新規作成",description:"%{smart_count}件がレビュー中、%{readyCount}件が準備完了です。",dateFormat:"M月D日"},workflowCard:{lastChange:"%{author}が%{date}に更新",lastChangeNoAuthor:"最終更新日:%{date}",lastChangeNoDate:"最終更新者:%{author}",deleteChanges:"変更を削除",deleteNewEntry:"エントリを削除",publishChanges:"変更を公開",publishNewEntry:"エントリを公開"},workflowList:{onDeleteEntry:"このエントリを削除しますか?",onPublishingNotReadyEntry:"「準備完了」のエントリのみを公開できます。「準備完了」列にカードを移動し、ステータスを更新してください。",onPublishEntry:"このエントリを公開しますか?",draftHeader:"下書き",inReviewHeader:"レビュー中",readyHeader:"準備完了",currentEntries:"%{smart_count}件のエントリ"}}}},42221:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"로그인",loggingIn:"로그인 중...",loginWithNetlifyIdentity:"Netlify Identity 로 로그인",loginWithAzure:"Azure 로 로그인",loginWithBitbucket:"Bitbucket 으로 로그인",loginWithGitHub:"GitHub 로 로그인",loginWithGitLab:"GitLab 으로 로그인",loginWithGitea:"Gitea 으로 로그인",errors:{email:"반드시 이메일을 입력해 주세요.",password:"암호를 입력해 주세요.",identitySettings:"설정에 접근할 수 없습니다. git-gateway 백엔드 사용시 Identity service와 Git Gateway를 활성화 해야 합니다."}},app:{header:{content:"콘텐츠",workflow:"워크플로우",media:"미디어",quickAdd:"빠른 추가"},app:{errorHeader:"CMS 구성을 불러오는 중 오류가 발생했습니다.",configErrors:"구성 오류",checkConfigYml:"config.yml 파일을 확인하세요.",loadingConfig:"구성 불러오는 중...",waitingBackend:"백엔드 기다리는 중..."},notFoundPage:{header:"찾을 수 없음"}},collection:{sidebar:{collections:"컬렉션",allCollections:"모든 컬렉션",searchAll:"모든 컬렉션에서 검색",searchIn:"다음 컬렉션에서 검색"},collectionTop:{sortBy:"정렬 기준",viewAs:"다음으로 보기",newButton:"새 %{collectionLabel} 항목",ascending:"오름차순",descending:"내림차순",searchResults:'"%{searchTerm}"에 대한 검색결과',searchResultsInCollection:'%{collection} 컬랙션에서 "%{searchTerm}"에 대한 검색결과',filterBy:"필터 기준",groupBy:"그룹화 기준"},entries:{loadingEntries:"항목 불러오는 중...",cachingEntries:"항목 캐시 중...",longerLoading:"몇 분 정도 걸릴 수 있습니다.",noEntries:"항목 없음"},groups:{other:"다른 그룹",negateLabel:"%{label} 제외"},defaultFields:{author:{label:"저자"},updatedOn:{label:"업데이트 시각"}}},editor:{editorControl:{field:{optional:"선택사항"}},editorControlPane:{widget:{required:"%{fieldLabel} 은(는) 필수입니다.",regexPattern:"%{fieldLabel} 이(가) %{pattern} 패턴과 일치하지 않습니다.",processing:"%{fieldLabel} 은(는) 처리중 입니다.",range:"%{fieldLabel} 은(는) 반드시 %{minValue} 에서 %{maxValue} 사이여야 합니다.",min:"%{fieldLabel} 은(는) 적어도 %{minValue} 이상 이여야 합니다.",max:"%{fieldLabel} 은(는) 최대 %{maxValue} 여야 합니다.",rangeCount:"%{fieldLabel} 개수는 %{minCount} 개 에서 %{maxCount} 개 사이여야 합니다.",rangeCountExact:"%{fieldLabel} 개수는 정확히 %{count} 개 여야 합니다.",rangeMin:"%{fieldLabel} 개수는 적어도 %{minCount} 개 이상 이여야 합니다.",rangeMax:"%{fieldLabel} 개수는 최대 %{maxCount} 개 여야 합니다.",invalidPath:"'%{path}' 은(는) 올바른 경로가 아닙니다.",pathExists:"'%{path}' 경로가 이미 존재합니다."},i18n:{writingInLocale:"%{locale}로 작성 중",copyFromLocale:"다른 로케일로부터 채우기",copyFromLocaleConfirm:"%{locale} 로케일로부터 데이터를 채우시겠습니까?\n모든 기존 내용을 덮어쓰기 합니다."}},editor:{onLeavePage:"이 페이지를 떠나시겠습니까?",onUpdatingWithUnsavedChanges:"저장하지 않은 변경사항이 있습니다. 상태 업데이트 전 먼저 저장하세요.",onPublishingNotReady:'게시 하기 앞서 상태를 "준비됨" 으로 업데이트 하세요.',onPublishingWithUnsavedChanges:"저장하지 않은 변경사항이 있습니다, 게시하기 전 먼저 저장하세요.",onPublishing:"이 항목을 게시하시곘습니까?",onUnpublishing:"이 항목을 게시 철회 하시겠습니까?",onDeleteWithUnsavedChanges:"현재 세션에서의 저장되지 않은 변경사항과 이 게시된 항목을 삭제하시겠습니까?",onDeletePublishedEntry:"이 게시된 항목을 삭제하시겠습니까?",onDeleteUnpublishedChangesWithUnsavedChanges:"이 항목의 게시되지 않은 모든 변경사항과 현재 세션의 저장되지 않은 변경사항이 삭제됩니다. 정말로 삭제하시겠습니까?",onDeleteUnpublishedChanges:"이 항목에 대해 게시되지 않은 변경사항이 삭제됩니다. 정말로 삭제하시겠습니까?",loadingEntry:"항목 불러오는 중...",confirmLoadBackup:"이 항목에 대한 로컬 백업이 복구되었습니다, 복구된 것으로 사용하시겠습니까?"},editorInterface:{toggleI18n:"국제화(i18n) 토글",togglePreview:"미리보기 토글",toggleScrollSync:"스크롤 동기화"},editorToolbar:{publishing:"게시 중...",publish:"게시",published:"게시됨",unpublish:"게시 철회",duplicate:"복제",unpublishing:"게시 철회 중...",publishAndCreateNew:"게시하고 새로 만들기",publishAndDuplicate:"게시하고 복제",deleteUnpublishedChanges:"게시 안된 변경사항 삭제",deleteUnpublishedEntry:"게시 안된 항목 삭제",deletePublishedEntry:"게시된 항목 삭제",deleteEntry:"항목 삭제",saving:"저장 중...",save:"저장",deleting:"삭제 중...",updating:"업데이트 중...",status:"상태: %{status}",backCollection:"%{collectionLabel} 컬랙션에 작성하는 중",unsavedChanges:"변경사항 저장되지 않음",changesSaved:"변경사항 저장됨",draft:"초안",inReview:"검토중",ready:"준비됨",publishNow:"지금 게시",deployPreviewPendingButtonLabel:"미리보기 확인",deployPreviewButtonLabel:"미리보기 보기",deployButtonLabel:"라이브 보기"},editorWidgets:{markdown:{bold:"굵은체",italic:"기울임체",code:"코드",link:"링크",linkPrompt:"링크의 URL을 입력하세요",headings:"제목",quote:"인용",bulletedList:"글머리 기호 목록",numberedList:"번호 매기기 목록",addComponent:"구성요소 추가",richText:"리치 텍스트",markdown:"마크다운"},image:{choose:"이미지 선택",chooseMultiple:"이미지 여러개 선택",chooseUrl:"URL에서 삽입",replaceUrl:"URL 변경",promptUrl:"이미지 URL을 입력하세요",chooseDifferent:"다른 이미지 선택",addMore:"더 많은 이미지 추가",remove:"이미지 삭제",removeAll:"모든 이미지 삭제"},file:{choose:"파일 선택",chooseUrl:"URL에서 삽입",chooseMultiple:"파일 여러개 선택",replaceUrl:"URL 변경",promptUrl:"파일 URL을 입력하세요",chooseDifferent:"다른 파일 선택",addMore:"더 많은 파일 추가",remove:"파일 삭제",removeAll:"모든 파일 삭제"},unknownControl:{noControl:"'%{widget}' 위젯에 대한 컨트롤이 없습니다."},unknownPreview:{noPreview:"'%{widget}' 위젯에 대한 미리보기가 없습니다."},headingOptions:{headingOne:"제목 1",headingTwo:"제목 2",headingThree:"제목 3",headingFour:"제목 4",headingFive:"제목 5",headingSix:"제목 6"},datetime:{now:"현재시각",clear:"지우기"},list:{add:"%{item} 추가",addType:"%{item} 추가"}}},mediaLibrary:{mediaLibraryCard:{draft:"초안",copy:"복사",copyUrl:"URL 복사",copyPath:"경로 복사",copyName:"이름 복사",copied:"복사됨"},mediaLibrary:{onDelete:"선택하신 미디어를 삭제하시겠습니까?",fileTooLarge:"파일이 너무 큽니다.\n%{size} kB 보다 큰 파일을 허용하지 않도록 구성되어 있습니다."},mediaLibraryModal:{loading:"불러오는 중...",noResults:"일치 항목 없음.",noAssetsFound:"발견된 에셋 없음.",noImagesFound:"발견된 이미지 없음.",private:"개인 ",images:"이미지",mediaAssets:"미디어 에셋",search:"검색...",uploading:"업로드 중...",upload:"업로드",download:"다운로드",deleting:"삭제 중...",deleteSelected:"선택항목 삭제",chooseSelected:"선택한 것으로 결정"}},ui:{default:{goBackToSite:"사이트로 돌아가기"},errorBoundary:{title:"오류",details:"오류가 발생했습니다.",reportIt:"GitHub에서 이슈를 열어 보고해 주세요.",detailsHeading:"자세한 내용",privacyWarning:"이슈를 열면 사전에 오류 메시지와 디버깅 데이터로 채워집니다.\n정보가 올바른지 확인하시고 민감한 정보가 있다면 지워주세요.",recoveredEntry:{heading:"복구된 문서",warning:"다른 곳으로 가시기 전에 이 내용을 꼭 복사해두세요!",copyButtonLabel:"클립보드로 복사"}},settingsDropdown:{logOut:"로그아웃"},toast:{onFailToLoadEntries:"항목 불러오기 실패: %{details}",onFailToLoadDeployPreview:"미리보기 불러오기 실패: %{details}",onFailToPersist:"항목 저장 실패: %{details}",onFailToDelete:"항목 삭제 실패: %{details}",onFailToUpdateStatus:"상태 업데이트 실패: %{details}",missingRequiredField:"이런! 필수 필드를 놓치셨습니다. 저장하기 전에 먼저 채우세요.",entrySaved:"항목 저장됨",entryPublished:"항목 게시됨",entryUnpublished:"항목 게시 철회됨",onFailToPublishEntry:"게시 실패: %{details}",onFailToUnpublishEntry:"항목 게시 철회 실해: %{details}",entryUpdated:"항목 상태 업데이트됨",onDeleteUnpublishedChanges:"게시되지 않은 변경사항 삭제됨",onFailToAuth:"%{details}",onLoggedOut:"로그아웃 하셨습니다, 데티어를 백업하시고 다시 로그인 하세요.",onBackendDown:"백엔드 서비스가 장애를 겪고 있습니다. 자세한 사항은 %{details} 을(를) 참고하세요."}},workflow:{workflow:{loading:"편집 워크플로우의 항목을 불러오는 중",workflowHeading:"편집 워크플로우",newPost:"새 게시물",description:"%{smart_count}개 항목 검토 대기중, %{readyCount}개 항목 게시 준비 완료됨. |||| %{smart_count}개 항목 검토 대기중, %{readyCount}개 항목 게시 준비 완료됨. ",dateFormat:"M월 D일"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"변경사항 삭제",deleteNewEntry:"새 항목 삭제",publishChanges:"변경사항 게시",publishNewEntry:"새 항목 게시"},workflowList:{onDeleteEntry:"정말로 이 항목을 삭제하시겠습니까?",onPublishingNotReadyEntry:'"준비됨" 상태의 항목만 게시할 수 있습니다. 게시를 활성화 하려면 카드를 "준비됨" 열에 끌어 놓으세요.',onPublishEntry:"이 항목을 게시하시곘습니까?",draftHeader:"초안",inReviewHeader:"검토 진행중",readyHeader:"준비됨",currentEntries:"%{smart_count}개 항목 |||| %{smart_count}개 항목"}}}},36221:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Prisijungti",loggingIn:"Prisijungiama...",loginWithNetlifyIdentity:"Prisijungti su Netlify Identity",loginWithAzure:"Prisijungti su Azure",loginWithBitbucket:"Prisijungti su Bitbucket",loginWithGitHub:"Prisijungti su GitHub",loginWithGitLab:"Prisijungti su GitLab",loginWithGitea:"Prisijungti su Gitea",errors:{email:"Įveskite savo elektroninį paštą.",password:"Įveskite savo slaptažodį.",identitySettings:"Deja, nepavyksta pasiekti Identity paslaugos nustatymus. Kai naudojate git-gateway backend metodą, įjunkite „Identity service“ ir „Git Gateway“."}},app:{header:{content:"Turinys",workflow:"Darbo eiga",media:"Medija",quickAdd:"Sukurti naują"},app:{errorHeader:"Klaida, neišėjo užkrauti/pasiekti CMS konfigūracijos failą",configErrors:"Konfigūracijos (nustatymų) klaidos",checkConfigYml:"Patikrinkite config.yml balsą.",loadingConfig:"Kraunamas nustatymų (konfigūracijos) failas...",waitingBackend:"Laukiama serverio..."},notFoundPage:{header:"Nerasta"}},collection:{sidebar:{collections:"Kolekcijos",allCollections:"Visos kolekcijos",searchAll:"Ieškoti viską",searchIn:"Ieškoti tik čia"},collectionTop:{sortBy:"Rikiavimo tvarka",viewAs:"Peržiūrėti kaip",newButton:"Nauja(s) %{collectionLabel}",ascending:"Didėjimo tvarka (A-Z)",descending:"Mažėjimo tvarka (Z-A)",searchResults:"Paieškos rezultatai: „%{searchTerm}“",searchResultsInCollection:"Paieškos rezultatai: „%{searchTerm}“ iš %{collection}",filterBy:"Filtruoti",groupBy:"Grupuoti"},entries:{loadingEntries:"Kraunamas turinys...",cachingEntries:"Talpinami įrašai...",longerLoading:"Šis procesas gali trukti keletą minučių",noEntries:"Nėra turinio"},groups:{other:"Kita",negateLabel:"Ne %{label}"},defaultFields:{author:{label:"Autorius"},updatedOn:{label:"Atnaujinta"}}},editor:{editorControl:{field:{optional:"neprivaloma"}},editorControlPane:{widget:{required:"Privaloma užpildyti laukelį %{fieldLabel}.",regexPattern:"%{fieldLabel} laukelis neatitiko konfigūracijoje nustatytų taisyklių: %{pattern}.",processing:"Apdorojame %{fieldLabel}.",range:"%{fieldLabel} turi būti tarp %{minValue} ir %{maxValue}.",min:"%{fieldLabel} turi būti bent %{minValue}.",max:"%{fieldLabel} turi būti %{maxValue} arba mažiau.",rangeCount:"%{fieldLabel} turi būti tarp %{minCount} ir %{maxCount} elementų/-o.",rangeCountExact:"%{fieldLabel} turi turėti būtent tik %{count} elementų/-us.",rangeMin:"%{fieldLabel} turi būti bent %{minCount} elementų.",rangeMax:"%{fieldLabel} turi būti %{maxCount} arba mažiau elementų.",invalidPath:"'%{path}' nėra taisyklinga nuoroda/adresas į resursą/-us",pathExists:"Adresas '%{path}' jau egzistuoja"},i18n:{writingInLocale:"Rašome %{locale} kalboje"}},editor:{onLeavePage:"Ar tikrai norite uždaryti šį puslapį?",onUpdatingWithUnsavedChanges:"Turite neišsaugotų pakeitimų! Prašome išsaugoti prieš pakeičiant statusą.",onPublishingNotReady:"Prieš publikuojant, privalote pakeisti statusą į „Paruošta“.",onPublishingWithUnsavedChanges:"Yra neišsaugotų pakeitimų, prašome išsaugoti juos prieš publikuojant.",onPublishing:"Ae tikrai norite publikuoti šį įrašą?",onUnpublishing:"Tikrai norite panaikinti publikavimo statusą?",onDeleteWithUnsavedChanges:"Tikrai norite panaikinti publikuotą įrašą ir Jūsų pakeiitmus iš dabartinės sesijos?",onDeletePublishedEntry:"Tikrai norite ištrinti šį publikuotą įrašą?",onDeleteUnpublishedChangesWithUnsavedChanges:"Tai ištrins visus nepublikuotus pakeitimus įraše, taip pat neišsaugotus pakeitimus per dabartinę sesiją. Vis tiek norite trinti?",onDeleteUnpublishedChanges:"Visi Jūsų pakeitimai įraše bus panaikinti. Ar tikrai norite trinti jį?",loadingEntry:"Kraunamas įrašas...",confirmLoadBackup:"Radome Jūsų įrenginyje išsaugota juodraštį šiam įrašui, ar norite jį atgaivinti ir naudoti?"},editorToolbar:{publishing:"Publikuojama...",publish:"Publikuoti",published:"Jau publikuota",unpublish:"Atšaukti paskelbimą",duplicate:"Daryti dublį",unpublishing:"Nebeskelbiama...",publishAndCreateNew:"Publikuoti šitą, po to kurti kažką naujo",publishAndDuplicate:"Publikuoti šitą, po to kurti šito dublį",deleteUnpublishedChanges:"Ištrinti publikuotus pakeitimus",deleteUnpublishedEntry:"Ištrinti nepaskelbtą įrašą",deletePublishedEntry:"Ištrinti paskelbtą įrašą",deleteEntry:"Panaikinti įrašą",saving:"Išsaugojama...",save:"Išsaugoti",deleting:"Trinama...",updating:"Atnaujinama...",status:"Statusą: %{status}",backCollection:" Rašoma %{collectionLabel} kolekcijoje",unsavedChanges:"Neišsaugoti pakeitimai",changesSaved:"Pakeitimai išsauogti",draft:"Juodraštis",inReview:"Peržiūrima redakcijoje",ready:"Paruošta",publishNow:"Skelbti naują",deployPreviewPendingButtonLabel:"Tikrinti, ar yra demonstracija",deployPreviewButtonLabel:"Žiūrėti demonstraciją (netiesiogiai)",deployButtonLabel:"Žiūrėti tiesiogiai tinklalapyje"},editorWidgets:{markdown:{bold:"Paryškinta",italic:"Pasvariu tekstu (italic)",code:"Kodo šriftas",link:"Nuoroda (adresas)",linkPrompt:"Įveskite adresą čia",headings:"Antraštės",quote:"Citata",bulletedList:"Sąrašas su ženkleliais",numberedList:"Sąrašas su numeriais",addComponent:"Pridėti komponentą",richText:"Normali peržiūra",markdown:"Rodyti be formatavimo (Markdown)"},image:{choose:"Pasirinkti vaizdą",chooseDifferent:"Pasirinkti skirtingą vaizdą",remove:"Panaikinti vaizdą"},file:{choose:"Pasirinkti failą",chooseDifferent:"Pasirinkti kitą failą",remove:"Panaikinti failą"},unknownControl:{noControl:"Klaida: valdiklis taisyklingai neveikia. No control for widget '%{widget}'."},unknownPreview:{noPreview:"Klaida: valdiklis taisyklingai neveikia. No preview for widget '%{widget}'."},headingOptions:{headingOne:"Antraštė 1",headingTwo:"Antraštė 2",headingThree:"Antraštė 3",headingFour:"Antraštė 4",headingFive:"Antraštė 5",headingSix:"Antraštė 6"},datetime:{now:"Dabar",clear:"Išvalyti"}}},mediaLibrary:{mediaLibraryCard:{draft:"Juodraštis"},mediaLibrary:{onDelete:"Ar jūs tikrai norite ištrinti pasirinktą mediją?",fileTooLarge:"Failas per didelis.\nNustatymuose (konfigūracijoje) nurodyta, kad failai negali viršyti %{size} kB."},mediaLibraryModal:{loading:"Kraunama...",noResults:"Nėra rezultatų.",noAssetsFound:"Turinio nerasta.",noImagesFound:"Vaizdų nerasta.",private:"Privatu ",images:"Vaizdai",mediaAssets:"Medijos turinys",search:"Paieška...",uploading:"Keliama...",upload:"Įkelti",download:"Parsiųsti",deleting:"Trinama...",deleteSelected:"Ištrinti parinktus",chooseSelected:"Pasirinkti parinktus"}},ui:{default:{goBackToSite:"Grįžti atgal į tinklalapį"},errorBoundary:{title:"Klaida",details:"Buvo klaida - jeigu galite, prašome ",reportIt:"pranešti apie techninę problemą „GitHub“ puslapyje.",detailsHeading:"Detalės",privacyWarning:"Opening an issue pre-populates it with the error message and debugging data.\nPlease verify the information is correct and remove sensitive data if exists.",recoveredEntry:{heading:"Sugrąžintas dokumentas",warning:"Prašome kopijuoti/įkluoti šitą kažkur prieš uždarant puslapį!",copyButtonLabel:"Nukopijuoti į iškarpinę"}},settingsDropdown:{logOut:"Atsijungti"},toast:{onFailToLoadEntries:"Nepavyko užkrauti įrašo: %{details}",onFailToLoadDeployPreview:"Nepavyko užkrauti demonstracijos lango: %{details}",onFailToPersist:"Nepavyko išlaikyti įrašo: %{details}",onFailToDelete:"Nepayvko ištrinti: %{details}",onFailToUpdateStatus:"Nepavyko pakeisti statusą: %{details}",missingRequiredField:"Pasitikrinkite — kažkurio (ar kelių) laukelių neužpildėte. Tai padarius galėsite išsaugoti įrašą.",entrySaved:"Įrašas išsaugotos",entryPublished:"Įrašas publikuotas",entryUnpublished:"Įrašas nepublikuotas",onFailToPublishEntry:"Nepavyko publikuoti: %{details}",onFailToUnpublishEntry:"Nepavyko panaikinti publikavimą: %{details}",entryUpdated:"Įrašo statusas pakeistas",onDeleteUnpublishedChanges:"Nepublikuoti pakeitimai ištrinti",onFailToAuth:"Nepavyko prisijungti: %{details}",onLoggedOut:"Mes jus atjungėme. Jeigu yra poreikis, sukurkite duomenų atsarginę kopiją. Galite tiesiog iš naujo prisijungti.",onBackendDown:"Deja, serveris šiuo metu neveikia. Bandykite iš naujo dar sykį arba šiek tiek vėliau. Detalės: %{details}"}},workflow:{workflow:{loading:"Kraunamas turinys",workflowHeading:"Redakcijos darbo eiga",newPost:"Naujas įrašas",description:"%{smart_count} įrašas laukia Jūsų peržiūrėjimo, %{readyCount} jau gali būti publikuojamas. |||| %{smart_count} elementai laukia Jūsų peržiūrėjimo, %{readyCount} jau gali būti publikuojami. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} pagal %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"oagal %{author}",deleteChanges:"Trinti keitimus",deleteNewEntry:"Trinti naują įrašą",publishChanges:"Publikuoti keitimus",publishNewEntry:"Kurti naują įrašą"},workflowList:{onDeleteEntry:"Ar tikrai norite ištrinti šį įrašą?",onPublishingNotReadyEntry:"Tik įrašai su statusu „Paruošta“ gali būti patvirtinti. Prašome pajudinti įrašo kortelę link „Paruošta“ stulpelio, kad galėtumėte publikuoti įrašą.",onPublishEntry:"Ar jūs tikrai norite publikuoti šį įrašą?",draftHeader:"Juodraščiai",inReviewHeader:"Peržiūrima redakcijoje",readyHeader:"Paruošta",currentEntries:"%{smart_count} įrašas |||| %{smart_count} įrašai"}}}},65954:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Logg inn",loggingIn:"Logger inn..",loginWithNetlifyIdentity:"Logg på med Netlify Identity",loginWithBitbucket:"Logg på med Bitbucket",loginWithGitHub:"Logg på med GitHub",loginWithGitLab:"Logg på med GitLab",loginWithGitea:"Logg på med Gitea",errors:{email:"Du må skrive inn e-posten din.",password:"Du må skrive inn passordet ditt.",identitySettings:"Fant ingen innstillinger for Identity. Hvis du skal bruke git-gateway må du skru på Identity service og Git Gateway."}},app:{header:{content:"Innhold",workflow:"Arbeidsflyt",media:"Media",quickAdd:"Hurtiginnlegg"},app:{errorHeader:"Det oppstod en feil under lastingen av CMS konfigurasjonen",configErrors:"Konfigurasjonsfeil",checkConfigYml:"Sjekk config.yml filen.",loadingConfig:"Laster konfigurasjon...",waitingBackend:"Venter på backend..."},notFoundPage:{header:"Ikke funnet"}},collection:{sidebar:{collections:"Samlinger",searchAll:"Søk i alle"},collectionTop:{sortBy:"Sorter etter",viewAs:"Vis som",newButton:"Ny %{collectionLabel}",ascending:"Stigende",descending:"Synkende"},entries:{loadingEntries:"Laster innlegg...",cachingEntries:"Mellomlagrer innlegg...",longerLoading:"Dette kan ta opptil flere minutter",noEntries:"Ingen innlegg"},defaultFields:{author:{label:"Forfatter"},updatedOn:{label:"Oppdatert"}}},editor:{editorControl:{field:{optional:"valgfritt"}},editorControlPane:{widget:{required:"%{fieldLabel} er påkrevd.",regexPattern:"%{fieldLabel} samsvarer ikke med mønsteret: %{pattern}.",processing:"%{fieldLabel} blir prosessert.",range:"%{fieldLabel} må være mellom %{minValue} og %{maxValue}.",min:"%{fieldLabel} må minst være %{minValue}.",max:"%{fieldLabel} må være %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} må ha mellom %{minCount} og %{maxCount} element(er).",rangeCountExact:"%{fieldLabel} må ha nøyaktig %{count} element(er).",rangeMin:"%{fieldLabel} må minst ha %{minCount} element(er).",rangeMax:"%{fieldLabel} må ha %{maxCount} eller færre element(er)."}},editor:{onLeavePage:"Er du sikker på du vil navigere bort fra denne siden?",onUpdatingWithUnsavedChanges:"Du må lagre endringene dine før du oppdaterer status.",onPublishingNotReady:'Du må endre status til "Klar" før du publiserer.',onPublishingWithUnsavedChanges:"Du må lagre endringene dine før du kan publisere.",onPublishing:"Er du sikker på at du vil publisere?",onUnpublishing:"Er du sikker på at du vil avpublisere innlegget?",onDeleteWithUnsavedChanges:"Er du sikker på at du vil slette et publisert innlegg med tilhørende ulagrede endringer?",onDeletePublishedEntry:"Er du sikker på at du vil slette dette publiserte innlegget?",onDeleteUnpublishedChangesWithUnsavedChanges:"Handlingen sletter endringer som ikke er publisert eller lagret enda. Er du sikker på du vil fortsette?",onDeleteUnpublishedChanges:"Alle endringer som ikke er publisert i dette innlegget vil gå tapt. Vil du fortsette?",loadingEntry:"Laster innlegg...",confirmLoadBackup:"Vil du gjenopprette tidligere endringer som ikke har blitt lagret?"},editorToolbar:{publishing:"Publiserer...",publish:"Publiser",published:"Publisert",unpublish:"Avpubliser",duplicate:"Dupliser",unpublishing:"Avpubliserer...",publishAndCreateNew:"Publiser og lag nytt",publishAndDuplicate:"Publiser og dupliser",deleteUnpublishedChanges:"Slett upubliserte endringer",deleteUnpublishedEntry:"Slett upublisert innlegg",deletePublishedEntry:"Slett publisert innlegg",deleteEntry:"Slett innlegg",saving:"Lagrer...",save:"Lagre",deleting:"Sletter...",updating:"Oppdaterer...",status:"Status: %{status}",backCollection:" Skriver i samlingen %{collectionLabel}",unsavedChanges:"Ulagrede endringer",changesSaved:"Endringer lagret",draft:"Kladd",inReview:"Til godkjenning",ready:"Klar",publishNow:"Publiser nå",deployPreviewPendingButtonLabel:"Kontroller forhåndsvisning",deployPreviewButtonLabel:"Vis forhåndsvisning",deployButtonLabel:"Vis i produksjon"},editorWidgets:{markdown:{richText:"Rik-tekst",markdown:"Markdown"},image:{choose:"Velg et bilde",chooseDifferent:"Velg et annet bilde",remove:"Fjern bilde"},file:{choose:"Velg en fil",chooseDifferent:"Velg en annen fil",remove:"Fjern fil"},unknownControl:{noControl:"Ingen konfigurasjon for widget '%{widget}'."},unknownPreview:{noPreview:"Ingen forhåndsvisning tilgjengelig for '%{widget}'."},headingOptions:{headingOne:"Overskrift 1",headingTwo:"Overskrift 2",headingThree:"Overskrift 3",headingFour:"Overskrift 4",headingFive:"Overskrift 5",headingSix:"Overskrift 6"},datetime:{now:"Nå",clear:"Nullstill"}}},mediaLibrary:{mediaLibraryCard:{draft:"Kladd"},mediaLibrary:{onDelete:"Er du sikker på at du vil slette markert element?",fileTooLarge:"Filen er for stor.\nMaksimal konfiguert filstørrelse er %{size} kB."},mediaLibraryModal:{loading:"Laster...",noResults:"Ingen resultater.",noAssetsFound:"Ingen elementer funnet.",noImagesFound:"Ingen bilder funnet.",private:"Privat ",images:"Bilder",mediaAssets:"Mediebibliotek",search:"Søk...",uploading:"Laster opp...",upload:"Last opp",download:"Last ned",deleting:"Sletter...",deleteSelected:"Slett markert",chooseSelected:"Velg markert"}},ui:{default:{goBackToSite:"Gå tilbake til siden"},errorBoundary:{title:"Feil",details:"Det har oppstått en feil. Det er fint om du ",reportIt:"oppretter et issue på GitHub.",detailsHeading:"Detaljer",privacyWarning:"Når du åpner et issue forhåndsutfylles feil og feilsøkingsdata. Dobbeltsjekk at informasjonen er riktig, og fjern eventuelle sensitive data.",recoveredEntry:{heading:"Gjenopprettet dokument",warning:"Det kan være lurt å ta kopi av innholdet før navigerer bort fra denne siden!",copyButtonLabel:"Kopier til utklippstavle"}},settingsDropdown:{logOut:"Logg ut"},toast:{onFailToLoadEntries:"Kunne ikke laste innlegg: %{details}",onFailToLoadDeployPreview:"Kunne ikke laste forhåndsvisning: %{details}",onFailToPersist:"Kunne ikke lagre: %{details}",onFailToDelete:"Kunne ikke slette: %{details}",onFailToUpdateStatus:"Kunne ikke laste opp: %{details}",missingRequiredField:"Oisann, ser ut som du glemte et påkrevd felt. Du må fylle det ut før du kan fortsette.",entrySaved:"Innlegg lagret",entryPublished:"Innlegg publisert",entryUnpublished:"Innlegg avpublisert",onFailToPublishEntry:"Kunne ikke publisere: %{details}",onFailToUnpublishEntry:"Kunne ikke avpublisere: %{details}",entryUpdated:"Innleggsstatus oppdatert",onDeleteUnpublishedChanges:"Avpubliserte endringer slettet",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Laster innlegg for redaksjonell arbeidsflyt",workflowHeading:"Redaksjonell arbeidsflyt",newPost:"Nytt innlegg",description:"%{smart_count} innlegg trenger gjennomgang, og %{readyCount} er klar til publisering. |||| %{smart_count} innlegg trenger gjennomgang, og %{readyCount} er klar til publisering ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} av %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"av %{author}",deleteChanges:"Slett endringer",deleteNewEntry:"Slett nytt innlegg",publishChanges:"Publiser endringer",publishNewEntry:"Publiser nytt innlegg"},workflowList:{onDeleteEntry:"Er du sikker på du vil slette innlegget?",onPublishingNotReadyEntry:'Du kan bare publisere innlegg i "Klar" kolonnen. Trekk kortet til riktig kolonne for å fortsette.',onPublishEntry:"Er du sikker på du vil publisere innlegget?",draftHeader:"Kladd",inReviewHeader:"Gjennomgås",readyHeader:"Klar",currentEntries:"%{smart_count} innlegg |||| %{smart_count} innlegg"}}}},79791:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Inloggen",loggingIn:"Inloggen...",loginWithNetlifyIdentity:"Inloggen met Netlify Identity",loginWithAzure:"Inloggen met Azure",loginWithBitbucket:"Inloggen met Bitbucket",loginWithGitHub:"Inloggen met GitHub",loginWithGitLab:"Inloggen met GitLab",loginWithGitea:"Inloggen met Gitea",errors:{email:"Voer uw email in.",password:"Voer uw wachtwoord in.",identitySettings:"Netlify Identity instellingen niet gevonden. Wanneer u git-gateway als backend gebruikt moet u de Identity service en Git Gateway activeren in uw Netlify instellingen."}},app:{header:{content:"Inhoud",workflow:"Workflow",media:"Media",quickAdd:"Snel toevoegen"},app:{errorHeader:"Fout bij het laden van de CMS configuratie",configErrors:"configuratiefouten",checkConfigYml:"Controleer je config.yml bestand",loadingConfig:"Configuatie laden...",waitingBackend:"Wachten op server..."},notFoundPage:{header:"Niet gevonden"}},collection:{sidebar:{collections:"Inhoudstypen",allCollections:"Alle inhoudstypen",searchAll:"Zoeken",searchIn:"Zoeken in"},collectionTop:{sortBy:"Sorteer op",viewAs:"Bekijk als",newButton:"Voeg %{collectionLabel} toe",ascending:"Oplopend",descending:"Aflopend",searchResults:'Zoekresultaten voor "%{searchTerm}"',searchResultsInCollection:'Zoekresultaten voor "%{searchTerm}" in %{collection}',filterBy:"Filteren op",groupBy:"Groepeer op"},entries:{loadingEntries:"Items laden",cachingEntries:"Items cachen",longerLoading:"Dit kan een paar minuten duren",noEntries:"Geen items"},groups:{other:"Anders",negateLabel:"Geen %{label}"},defaultFields:{author:{label:"Auteur"},updatedOn:{label:"Bijgewerkt op"}}},editor:{editorControl:{field:{optional:"optioneel"}},editorControlPane:{widget:{required:"%{fieldLabel} is vereist.",regexPattern:"%{fieldLabel} komt niet overeen met het patroon: %{pattern}.",processing:"%{fieldLabel} wordt verwerkt.",range:"%{fieldLabel} moet tussen %{minValue} en %{maxValue} liggen.",min:"%{fieldLabel} moet tenminste %{minValue} bevatten.",max:"%{fieldLabel} moet hoogstens %{maxValue} bevatten.",rangeCount:"%{fieldLabel} moet tussen %{minCount} en %{maxCount} item(s) bevatten.",rangeCountExact:"%{fieldLabel} moet exact %{count} item(s) bevatten.",rangeMin:"%{fieldLabel} moet tenminste %{minCount} item(s) bevatten.",rangeMax:"%{fieldLabel} moet hoogstens %{maxCount} item(s) bevatten."},i18n:{writingInLocale:"%{locale} aan het bewerken"}},editor:{onLeavePage:"Weet je zeker dat je deze pagina wilt verlaten?",onUpdatingWithUnsavedChanges:"Er zijn nog niet-opgeslagen wijzigingen. Bewaar ze voordat u de status bijwerkt.",onPublishingNotReady:'Stel de status in op "Voltooid" voordat u publiceert.',onPublishingWithUnsavedChanges:"Er zijn nog niet-opgeslagen wijzigingen. Bewaar deze voordat u publiceert.",onPublishing:"Weet u zeker dat u dit item wil publiceren?",onUnpublishing:"Weet u zeker dat u de publicatie voor dit item ongedaan wilt maken?",onDeleteWithUnsavedChanges:"Weet u zeker dat u dit gepubliceerde item en uw niet-opgeslagen wijzigingen uit de huidige sessie wilt verwijderen?",onDeletePublishedEntry:"Weet u zeker dat u dit gepubliceerde item wilt verwijderen?",onDeleteUnpublishedChangesWithUnsavedChanges:"Alle niet-gepubliceerde wijzigingen in dit item worden verwijderd, evenals uw niet-opgeslagen wijzigingen uit de huidige sessie. Wilt u nog steeds verwijderen?",onDeleteUnpublishedChanges:"Alle niet-gepubliceerde wijzigingen in dit item worden verwijderd. Wilt u nog steeds verwijderen?",loadingEntry:"Item laden...",confirmLoadBackup:"Voor dit item is een lokale back-up hersteld, wilt u deze gebruiken?"},editorInterface:{toggleI18n:"Wissel i18n",togglePreview:"Wissel voorvertoning",toggleScrollSync:"Synchroniseer scrollen"},editorToolbar:{publishing:"Publiceren...",publish:"Publiceer",published:"Gepubliceerd",unpublish:"Publicatie terugtrekken",duplicate:"Dupliceren",unpublishing:"Publicatie ongedaan maken...",publishAndCreateNew:"Publiceer en maak nieuw item aan",publishAndDuplicate:"Publiceer en dupliceer item",deleteUnpublishedChanges:"Verwijder niet-gepubliceerde wijzigingen",deleteUnpublishedEntry:"Niet-gepubliceerd item verwijderen",deletePublishedEntry:"Gepubliceerd item verwijderen",deleteEntry:"Item verwijderen",saving:"Opslaan...",save:"Opslaan",deleting:"Verwijderen...",updating:"Bijwerken...",status:"Status: %{status}",backCollection:" Terug naar %{collectionLabel}",unsavedChanges:"Niet-opgeslagen wijzigingen",changesSaved:"Wijzigingen opgeslagen",draft:"Concept",inReview:"Wordt beoordeeld",ready:"Klaar",publishNow:"Publiceer nu",deployPreviewPendingButtonLabel:"Controleer of voorvertoning geladen is",deployPreviewButtonLabel:"Bekijk voorvertoning",deployButtonLabel:"Bekijk Live"},editorWidgets:{markdown:{bold:"Vet",italic:"Cursief",code:"Code",link:"Link",linkPrompt:"Voer de URL in",headings:"Hoofdtekst",quote:"Quote",bulletedList:"Lijst met opsommingstekens",numberedList:"Genummerde lijst",addComponent:"Voeg component toe",richText:"Rijke tekst",markdown:"Markdown"},image:{choose:"Kies een afbeelding",chooseUrl:"Voeg toe via URL",replaceUrl:"Vervang met URL",promptUrl:"Voer de URL van de afbeelding in",chooseDifferent:"Kies een andere afbeelding",remove:"Verwijder afbeelding"},file:{choose:"Kies een bestand",chooseUrl:"Voeg toe via URL",replaceUrl:"Vervang met URL",promptUrl:"Voer de URL van het bestand in",chooseDifferent:"Kies een ander bestand",remove:"Verwijder bestand"},unknownControl:{noControl:"Geen control voor widget '%{widget}'."},unknownPreview:{noPreview:"Geen voorvertoning voor widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Nu",clear:"Wissen"},list:{add:"Voeg %{item} toe"}}},mediaLibrary:{mediaLibraryCard:{draft:"Concept",copy:"Kopieer",copyUrl:"Kopieer URL",copyPath:"Kopieer pad",copyName:"Kopieer naam",copied:"Gekopieerd"},mediaLibrary:{onDelete:"Weet u zeker dat u de geselecteerde media wilt verwijderen?",fileTooLarge:"Het bestand is te groot.\n De instellingen staan geen bestanden toe groter dan %{size} kB."},mediaLibraryModal:{loading:"Laden...",noResults:"Geen resultaten.",noAssetsFound:"Geen media gevonden.",noImagesFound:"Geen afbeeldingen gevonden.",private:"Privé",images:"Afbeeldingen",mediaAssets:"Media",search:"Zoeken...",uploading:"Uploaden...",upload:"Nieuwe uploaden",download:"Downloaden",deleting:"Verwijderen...",deleteSelected:"Verwijder selectie",chooseSelected:"Gebruik selectie"}},ui:{default:{goBackToSite:"Ga terug naar site"},errorBoundary:{title:"Fout",details:"Er is een fout opgetreden - ",reportIt:"maak er alstublieft een melding van.",detailsHeading:"Details",privacyWarning:"Als u een probleem opent, wordt het vooraf gevuld met het foutbericht en foutopsporingsgegevens. \nControleer of de informatie correct is en verwijder, indien aanwezig, gevoelige gegevens.",recoveredEntry:{heading:"Hersteld document",warning:"Kopieer / plak dit ergens voordat u weggaat!",copyButtonLabel:"Kopieer naar klembord"}},settingsDropdown:{logOut:"Uitloggen"},toast:{onFailToLoadEntries:"Kan item niet laden: %{details}",onFailToLoadDeployPreview:"Kan voorvertoning niet laden: %{details}",onFailToPersist:"Kan item niet opslaan: %{details}",onFailToDelete:"Kan item niet verwijderen: %{details}",onFailToUpdateStatus:"Kan status niet updaten: %{details}",missingRequiredField:"Oeps, sommige verplichte velden zijn niet ingevuld.",entrySaved:"Item opgeslagen",entryPublished:"Item gepubliceerd",entryUnpublished:"Publicatie teruggetrokken",onFailToPublishEntry:"Kan item niet publiceren: %{details}",onFailToUnpublishEntry:"Kan item niet terugtrekken: %{details}",entryUpdated:"Status van item geüpdatet",onDeleteUnpublishedChanges:"Niet-gepubliceerde wijzigingen verwijderd",onFailToAuth:"%{details}",onLoggedOut:"Je bent uitgelogd, back-up alstublieft uw data log daarna in",onBackendDown:"De backend-service ondervindt een storing. Zie% {details} voor meer informatie"}},workflow:{workflow:{loading:"Redactionele Workflow items laden",workflowHeading:"Redactionele Workflow",newPost:"Nieuw bericht",description:"%{smart_count} item wacht op beoordeling, %{readyCount} klaar om live te gaan. |||| %{smart_count} items wachten op beoordeling, %{readyCount} klaar om live te gaan. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} door %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"door %{author}",deleteChanges:"Verwijder wijzigingen",deleteNewEntry:"Verwijder nieuw item",publishChanges:"Publiceer wijzigingen",publishNewEntry:"Publiceer nieuw item"},workflowList:{onDeleteEntry:"Weet u zeker dat u dit item wilt verwijderen?",onPublishingNotReadyEntry:'Alleen items met de status "Gereed" kunnen worden gepubliceerd. Sleep de kaart naar de kolom "Gereed" om publiceren mogelijk te maken.',onPublishEntry:"Weet u zeker dat u dit item wilt publiceren?",draftHeader:"Concepten",inReviewHeader:"Wordt beoordeeld",readyHeader:"Klaar",currentEntries:"%{smart_count} item |||| %{smart_count} items"}}}},37277:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Logg inn",loggingIn:"Loggar inn..",loginWithNetlifyIdentity:"Logg på med Netlify Identity",loginWithBitbucket:"Logg på med Bitbucket",loginWithGitHub:"Logg på med GitHub",loginWithGitLab:"Logg på med GitLab",loginWithGitea:"Logg på med Gitea",errors:{email:"Du må skriva inn e-posten din.",password:"Du må skriva inn passordet ditt.",identitySettings:"Fann ingen innstillingar for Identity. Om du ynskjer å nytte git-gateway må du hugse å skru på Identity service og Git Gateway"}},app:{header:{content:"Innhald",workflow:"Arbeidsflyt",media:"Media",quickAdd:"Hurtiginnlegg"},app:{errorHeader:"Noko gjekk gale under lastinga av CMS konfigurasjonen",configErrors:"Konfigurasjonsfeil",checkConfigYml:"Sjå over config.yml fila.",loadingConfig:"Lastar konfigurasjon...",waitingBackend:"Ventar på backend..."},notFoundPage:{header:"Ikkje funnen"}},collection:{sidebar:{collections:"Samlingar",searchAll:"Søk i alle"},collectionTop:{sortBy:"Sorter etter",viewAs:"Vis som",newButton:"Ny %{collectionLabel}",ascending:"Stigande",descending:"Synkande"},entries:{loadingEntries:"Laster innlegg...",cachingEntries:"Mellomlagrar innlegg...",longerLoading:"Dette kan ta fleire minutt",noEntries:"Ingen innlegg"},defaultFields:{author:{label:"Forfatter"},updatedOn:{label:"Oppdatert"}}},editor:{editorControl:{field:{optional:"valfritt"}},editorControlPane:{widget:{required:"%{fieldLabel} krevast.",regexPattern:"%{fieldLabel} samsvarar ikkje med mønsteret: %{pattern}.",processing:"%{fieldLabel} vart prosessert.",range:"%{fieldLabel} må vera mellom %{minValue} og %{maxValue}.",min:"%{fieldLabel} må minst vera %{minValue}.",max:"%{fieldLabel} må vera %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} må ha mellom %{minCount} og %{maxCount} element.",rangeCountExact:"%{fieldLabel} må ha nøyaktig %{count} element.",rangeMin:"%{fieldLabel} må minst ha %{minCount} element.",rangeMax:"%{fieldLabel} må ha %{maxCount} eller færre element."}},editor:{onLeavePage:"Er du sikker på at du vil navigere bort frå denne sida?",onUpdatingWithUnsavedChanges:"Du må lagra endringane dine før du endrar status",onPublishingNotReady:'Du må endre status til "Klar" før du publiserer',onPublishingWithUnsavedChanges:"Du må laga endringane dine før du kan publisere.",onPublishing:"Er du sikker på at vil publisere?",onUnpublishing:"Er du sikker på at du vil avpublisere innlegget?",onDeleteWithUnsavedChanges:"Er du sikkert på at du vil slette eit publisert innlegg med tilhøyrande ulagra endringar?",onDeletePublishedEntry:"Er du sikker på at du vil slette dette publiserte innlegget?",onDeleteUnpublishedChangesWithUnsavedChanges:"Handlinga slettar endringar som ikkje er publisert eller lagra. Vil du halde fram?",onDeleteUnpublishedChanges:"Alle endringar som ikkje er publisert vil gå tapt. Vil du halde fram?",loadingEntry:"Lastar innlegg...",confirmLoadBackup:"Ynskjer du å gjennopprette tidlegare endringar som ikkje har verta lagra?"},editorToolbar:{publishing:"Publiserer...",publish:"Publiser",published:"Publisert",unpublish:"Avpubliser",duplicate:"Dupliser",unpublishing:"Avpubliserer...",publishAndCreateNew:"Publiser og lag nytt",publishAndDuplicate:"Publiser og dupliser",deleteUnpublishedChanges:"Slett upubliserte endringar",deleteUnpublishedEntry:"Slett upublisert innlegg",deletePublishedEntry:"Slett publisert innlegg",deleteEntry:"Slettar innlegg",saving:"Lagrar...",save:"Lagre",deleting:"Slettar...",updating:"Oppdaterer...",status:"Status: %{status}",backCollection:" Skriv i samlinga %{collectionLabel}",unsavedChanges:"Ulagra endringar",changesSaved:"Endringar lagret",draft:"Kladd",inReview:"Til godkjenning",ready:"Klar",publishNow:"Publiser no",deployPreviewPendingButtonLabel:"Kontroller førehandsvisning",deployPreviewButtonLabel:"Sjå førehandsvisning",deployButtonLabel:"Sjå i produksjon"},editorWidgets:{markdown:{richText:"Rik-tekst",markdown:"Markdown"},image:{choose:"Vel bilete",chooseDifferent:"Vel eit anna bilete",remove:"Fjern bilete"},file:{choose:"Vel fil",chooseDifferent:"Vel ei anna fil",remove:"Fjern fil"},unknownControl:{noControl:"Ingen konfigurasjon for widget '%{widget}'."},unknownPreview:{noPreview:"Ingen førehandsvisning tilgjengeleg for '%{widget}'."},headingOptions:{headingOne:"Overskrift 1",headingTwo:"Overskrift 2",headingThree:"Overskrift 3",headingFour:"Overskrift 4",headingFive:"Overskrift 5",headingSix:"Overskrift 6"},datetime:{now:"No",clear:"Nullstill"}}},mediaLibrary:{mediaLibraryCard:{draft:"Kladd"},mediaLibrary:{onDelete:"Er du sikker på at du vil slette markert element?",fileTooLarge:"Fila er for stor.\nMaksimal konfiguert filstorleik er %{size} kB."},mediaLibraryModal:{loading:"Lastar...",noResults:"Ingen resultat.",noAssetsFound:"Ingen elementer funne.",noImagesFound:"Ingen bilete funne.",private:"Privat ",images:"Bileter",mediaAssets:"Mediebibliotek",search:"Søk...",uploading:"Lastar opp...",upload:"Last opp",download:"Last ned",deleting:"Slettar...",deleteSelected:"Slett markert",chooseSelected:"Vel markert"}},ui:{default:{goBackToSite:"Attende til sida"},errorBoundary:{title:"Feil",details:"Ein feil har oppstått. Det er fint om du ",reportIt:"opnar eit issue på GitHub.",detailsHeading:"Detaljer",privacyWarning:"Når du opnar eit issue vart feil og feilsøkingsdata automatisk fylt ut. Hugs å sjå over at alt ser greitt ut, og ikkje inneheld sensitive data.",recoveredEntry:{heading:"Gjenopprettet dokument",warning:"Det kan vere lurt å ta kopi av innhaldet før du navigerer bort frå denne sida!",copyButtonLabel:"Kopier til utklippstavle"}},settingsDropdown:{logOut:"Logg ut"},toast:{onFailToLoadEntries:"Kunne ikkje laste innlegg: %{details}",onFailToLoadDeployPreview:"Kunne ikkje laste førehandsvisning: %{details}",onFailToPersist:"Kunne ikkje lagre: %{details}",onFailToDelete:"Kunne ikkje slette: %{details}",onFailToUpdateStatus:"Kunne ikkje laste opp: %{details}",missingRequiredField:"Oisann, gløymte du noko? Alle påkrevde felt må fyllast ut før du kan halde fram",entrySaved:"Innlegg lagra",entryPublished:"Innlegg publisert",entryUnpublished:"Innlegg avpublisert",onFailToPublishEntry:"Kunne ikkje publisere: %{details}",onFailToUnpublishEntry:"Kunne ikkje avpublisere: %{details}",entryUpdated:"Innleggsstatus oppdatert",onDeleteUnpublishedChanges:"Avpubliserte endringar sletta",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Lastar innlegg for redaksjonell arbeidsflyt",workflowHeading:"Redaksjonell arbeidsflyt",newPost:"Nytt innlegg",description:"%{smart_count} innlegg treng gjennomgong, og %{readyCount} er klar til publisering. |||| %{smart_count} innlegg treng gjennomgong, og %{readyCount} er klar til publisering ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} av %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"av %{author}",deleteChanges:"Slett endringar",deleteNewEntry:"Slett nytt innlegg",publishChanges:"Publiser endringar",publishNewEntry:"Publiser nytt innlegg"},workflowList:{onDeleteEntry:"Er du sikker på du vil slette innlegget?",onPublishingNotReadyEntry:'Du kan berre publisere innlegg i "Klar" kolonna. Dra kortet til riktig stad for å halde fram.',onPublishEntry:"Er du sikker på du vil publisere innlegget?",draftHeader:"Kladd",inReviewHeader:"Gjennomgås",readyHeader:"Klar",currentEntries:"%{smart_count} innlegg |||| %{smart_count} innlegg"}}}},62423:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Zaloguj się",loggingIn:"Logowanie...",loginWithNetlifyIdentity:"Zaloguj przez konto Netlify",loginWithAzure:"Zaloguj przez konto Azure",loginWithBitbucket:"Zaloguj przez Bitbucket",loginWithGitHub:"Zaloguj przez GitHub",loginWithGitLab:"Zaloguj przez GitLab",loginWithGitea:"Zaloguj przez Gitea",errors:{email:"Wprowadź swój adres email",password:"Wprowadź swoje hasło",identitySettings:"Brak dostępu do ustawień tożsamości. Jeśli używasza backendu git-gateway upewnij się, że usługa tożsamośći (Identity service) oraz Git Gateway są włączone."}},app:{header:{content:"Treść",workflow:"Przebieg redakcyjny",media:"Multimedia",quickAdd:"Szybkie dodawanie"},app:{errorHeader:"Błąd ładowania konfiguracji CMS",configErrors:"Błędy konfiguracji",checkConfigYml:"Sprawdź plik config.yml.",loadingConfig:"Ładowanie konfiguracji...",waitingBackend:"Oczekiwanie na backend..."},notFoundPage:{header:"Nie znaleziono"}},collection:{sidebar:{collections:"Kolekcje",allCollections:"Wszystkie kolekcje",searchAll:"Wyszukaj wszystkie",searchIn:"Wyszukaj w"},collectionTop:{sortBy:"Sortuj po",viewAs:"Wyświetl jako",newButton:"Nowy %{collectionLabel}",ascending:"Rosnąco",descending:"Malejąco",searchResults:"Wyszukaj wyniki dla %{searchTerm}",searchResultsInCollection:"Wyszukaj wyniki dla %{searchTerm} w %{collection}",filterBy:"Filtruj po",groupBy:"Grupuj po"},entries:{loadingEntries:"Ładowanie pozycji...",cachingEntries:"Ładowanie pozycji do pamięci podręcznej...",longerLoading:"To może zająć kilka minut",noEntries:"Brak pozycji"},groups:{other:"Inne",negateLabel:"Nie %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Zaktualizowano"}}},editor:{editorControl:{field:{optional:"opcjonalne"}},editorControlPane:{widget:{required:"%{fieldLabel} jest wymagane.",regexPattern:"%{fieldLabel} nie pasuje do formatu: %{pattern}.",processing:"%{fieldLabel} jest przetwarzane.",range:"%{fieldLabel} musi być pomiędzy %{minValue} a %{maxValue}.",min:"%{fieldLabel} musi być co najmniej %{minValue}.",max:"%{fieldLabel} musi być %{maxValue} lub mniej.",rangeCount:"%{fieldLabel} musi mieć od %{minCount} do %{maxCount} elementów",rangeCountExact:"%{fieldLabel} musi mieć %{count} elementów",rangeMin:"%{fieldLabel} musi mieć przynajmniej %{minCount} elementów",rangeMax:"%{fieldLabel} może mieć maksymalnie %{maxCount} elementów",invalidPath:"'%{path}' nie jest poprawna",pathExists:"Ścieżka '%{path}' już istnieje"},i18n:{writingInLocale:"Pisz w języku %{locale}"}},editor:{onLeavePage:"Czy na pewno chcesz opuścić tę stronę?",onUpdatingWithUnsavedChanges:"Masz niezapisane zmiany, proszę zapisz je przed aktualizacją statusu.",onPublishingNotReady:'Proszę zaktualizować status do "Gotowe" przed publikacją.',onPublishingWithUnsavedChanges:"Masz niezapisane zmiany, proszę zapisz je przed publikacją.",onPublishing:"Czy na pewno chcesz opublikować tę pozycję?",onUnpublishing:"Czy na pewno chcesz cofnąć publikację tej pozycji?",onDeleteWithUnsavedChanges:"Czy na pewno chcesz usunąć tę opublikowaną pozycję, a także niezapisane zmiany z bieżącej sesji?",onDeletePublishedEntry:"Czy na pewno chcesz usunąć tę opublikowaną pozycję?",onDeleteUnpublishedChangesWithUnsavedChanges:"Spowoduje to usunięcie wszystkich nieopublikowanych zmian tej pozycji, a także niezapisanych zmian z bieżącej sesji. Czy nadal chcesz usunąć?",onDeleteUnpublishedChanges:"Wszystkie nieopublikowane zmiany tej pozycji zostaną usunięte. Czy nadal chcesz usunąć?",loadingEntry:"Ładowanie pozycji...",confirmLoadBackup:"Odzyskano lokalną kopię zapasową tej pozycji, czy chcesz jej użyć?"},editorInterface:{toggleI18n:"Przełącz i18n",togglePreview:"Przełącz podgląd",toggleScrollSync:"Synchroniczne przesuwanie"},editorToolbar:{publishing:"Publikowanie...",publish:"Opublikuj",published:"Opublikowane",unpublish:"Cofnij publikację",duplicate:"Zduplikuj",unpublishing:"Cofanie publikacji...",publishAndCreateNew:"Opublikuj i dodaj nowy",publishAndDuplicate:"Opublikuj i zduplikuj",deleteUnpublishedChanges:"Usuń nieopublikowane zmiany",deleteUnpublishedEntry:"Usuń nieopublikowaną pozycję",deletePublishedEntry:"Usuń opublikowaną pozycję",deleteEntry:"Usuń pozycję",saving:"Zapisywanie...",save:"Zapisz",statusInfoTooltipDraft:"Dodano jako wersję roboczą. Aby zakończyć i oddać do recenzji zmień status na `Do recenzji`",statusInfoTooltipInReview:"Wpis jest w trakcie recenzji, żadne dodatkowe akcje nie są wymagane. Jeśli chcesz, możesz jeszcze nanieść zmiany.",deleting:"Usuwanie...",updating:"Uaktualnianie...",status:"Status: %{status}",backCollection:" Edycja treści w zbiorze %{collectionLabel}",unsavedChanges:"Niezapisane zmiany",changesSaved:"Zmiany zapisane",draft:"Wersja robocza",inReview:"W recenzji",ready:"Gotowe",publishNow:"Opublikuj teraz",deployPreviewPendingButtonLabel:"Sprawdź, czy istnieje podgląd",deployPreviewButtonLabel:"Zobacz podgląd",deployButtonLabel:"Zobacz na żywo"},editorWidgets:{markdown:{bold:"Pogrubienie",italic:"Kursywa",code:"Kod",link:"Link",linkPrompt:"Dodaj adres URL",headings:"Nagłówki",quote:"Cytat",bulletedList:"Lista punktowana",numberedList:"Lista numerowana",addComponent:"Dodaj komponent",richText:"Tekst sformatowany",markdown:"Markdown"},image:{choose:"Wybierz zdjęcie",chooseUrl:"Dodaj adres URL zdjęcia",replaceUrl:"Zmień adres URL zdjęcia",promptUrl:"Wprować adres URL zdjęcia",chooseDifferent:"Zmień zdjęcie",remove:"Usuń zdjęcie"},file:{choose:"Wybierz plik",chooseUrl:"Dodaj adres URL pliku",replaceUrl:"Zmień adres URL zdjęcia",promptUrl:"Dodaj adres URL pliku",chooseDifferent:"Wybierz inny plik",remove:"Usuń plik"},unknownControl:{noControl:"Brak kontrolki dla widżetu '%{widget}'."},unknownPreview:{noPreview:"Brak podglądu dla widżetu '%{widget}'."},headingOptions:{headingOne:"Nagłówek 1",headingTwo:"Nagłówek 2",headingThree:"Nagłówek 3",headingFour:"Nagłówek 4",headingFive:"Nagłówek 5",headingSix:"Nagłówek 6"},datetime:{now:"Teraz",clear:"Wyczyść"},list:{add:"Dodaj %{item}",addType:"Dodaj nowy %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Wersja robocza",copy:"Kopiuj",copyUrl:"Kopiuj URL",copyPath:"Kopiuj ścieżkę",copyName:"Kopiuj nazwę",copied:"Skopiowano"},mediaLibrary:{onDelete:"Czy na pewno chcesz usunąć zaznaczone multimedia?",fileTooLarge:"Plik jest za duży.\nUstawiony maksymalny rozmiar pliku: %{size} kB."},mediaLibraryModal:{loading:"Ładowanie...",noResults:"Brak wyników.",noAssetsFound:"Nie znaleziono żadnych zasobów.",noImagesFound:"Nie znaleziono żadnych obrazów.",private:"Prywatne ",images:"Obrazy",mediaAssets:"Zasoby multimedialne",search:"Szukaj...",uploading:"Przesyłanie...",upload:"Prześlij nowe",download:"Pobierz",deleting:"Usuwanie...",deleteSelected:"Usuń zaznaczone",chooseSelected:"Wybierz zaznaczone"}},ui:{default:{goBackToSite:"Wróć do strony"},errorBoundary:{title:"Błąd",details:"Wystąpił błąd - proszę ",reportIt:"zgłoś to.",detailsHeading:"Szczegóły",privacyWarning:"Nowe zgłoszenie zostanie wstępnie wypełnione danymi o błędzie.\nZweryfikuj czy dane są poprawne i usuń wrażliwe informacje jeśli takie zostały dodane.",recoveredEntry:{heading:"Odzyskany dokument",warning:"Proszę skopiuj/wklej to gdzieś zanim opuścisz tę stronę!",copyButtonLabel:"Skopiuj do schowka"}},settingsDropdown:{logOut:"Wyloguj się"},toast:{onFailToLoadEntries:"Nie udało się załadować pozycji: %{details}",onFailToLoadDeployPreview:"Nie udało się załadować podglądu: %{details}",onFailToPersist:"Nie udało się zapisać pozycji: %{details}",onFailToDelete:"Nie udało się usunąć pozycji: %{details}",onFailToUpdateStatus:"Nie udało się zaktualizować statusu: %{details}",missingRequiredField:"Ups, przegapiłeś wymagane pole. Proszę uzupełnij przed zapisaniem.",entrySaved:"Pozycja zapisana",entryPublished:"Pozycja opublikowana",entryUnpublished:"Cofnięto publikację pozycji",onFailToPublishEntry:"Nie udało się opublikować: %{details}",onFailToUnpublishEntry:"Nie udało się cofnąć publikacji pozycji: %{details}",entryUpdated:"Zaktualizowano status pozycji",onDeleteUnpublishedChanges:"Nieopublikowane zmiany zostały usunięte",onFailToAuth:"%{details}",onLoggedOut:"Zostałeś wylogowany, utwórz kopię zapasową danych i zaloguj się ponownie.",onBackendDown:"Usługa backendu uległa awarii. Zobacz więcej informacji: %{details}"}},workflow:{workflow:{loading:"Ładowanie pozycji przebiegu redakcyjnego",workflowHeading:"Przebieg redakcyjny",newPost:"Nowa pozycja",description:"%{smart_count} pozycja oczekuje na recenzję, %{readyCount} oczekuje na publikacje. |||| %{smart_count} pozycje oczekują na recenzję, %{readyCount} oczekuje na publikacje. |||| %{smart_count} pozycji oczekuje na recenzje, %{readyCount} oczekuje na publikacje. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} przez %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"przez %{author}",deleteChanges:"Usuń zmiany",deleteNewEntry:"Usuń nową pozycję",publishChanges:"Opublikuj zmiany",publishNewEntry:"Opublikuj nową pozycję"},workflowList:{onDeleteEntry:"Czy na pewno chcesz usunąć tę pozycję?",onPublishingNotReadyEntry:"Tylko pozycje o statusie „Gotowe” mogą być publikowane. Przeciągnij proszę kartę do kolumny „Gotowe do publikacji”, aby umożliwić publikowanie.",onPublishEntry:"Czy na pewno chcesz opublikować tę pozycję?",draftHeader:"Wersje robocze",inReviewHeader:"W recenzji",readyHeader:"Gotowe do publikacji",currentEntries:"%{smart_count} pozycja |||| %{smart_count} pozycje |||| %{smart_count} pozycji"}}}},49968:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Entrar",loggingIn:"Entrando...",loginWithNetlifyIdentity:"Entrar com o Netlify Identity",loginWithAzure:"Entrar com o Azure",loginWithBitbucket:"Entrar com o Bitbucket",loginWithGitHub:"Entrar com o GitHub",loginWithGitLab:"Entrar com o GitLab",loginWithGitea:"Entrar com o Gitea",errors:{email:"Certifique-se de inserir seu e-mail.",password:"Por favor, insira sua senha.",identitySettings:"Não foi possível acessar as configurações de identidade. Ao usar o back-end git-gateway, certifique-se de habilitar o serviço Identity e o Git Gateway."}},app:{header:{content:"Conteúdos",workflow:"Fluxo de Trabalho",media:"Mídia",quickAdd:"Adição rápida"},app:{errorHeader:"Erro ao carregar a configuração do CMS",configErrors:"Erros de configuração",checkConfigYml:"Verifique o arquivo config.yml.",loadingConfig:"Carregando configuração...",waitingBackend:"Aguardando o back-end..."},notFoundPage:{header:"Não Encontrado"}},collection:{sidebar:{collections:"Coleções",allCollections:"Todas as Coleções",searchAll:"Pesquisar em todos",searchIn:"Pesquisar em"},collectionTop:{sortBy:"Ordenar por",viewAs:"Visualizar como",newButton:"Novo(a) %{collectionLabel}",ascending:"Ascendente",descending:"Descendente",searchResults:'Resultados da busca por "%{searchTerm}"',searchResultsInCollection:'Resultados da busca por "%{searchTerm}" em %{collection}',filterBy:"Filtrar por",groupBy:"Agrupar por"},entries:{loadingEntries:"Carregando Entradas",cachingEntries:"Armazenando Entradas em Cache",longerLoading:"Isso pode levar alguns minutos",noEntries:"Nenhuma Entrada"},groups:{other:"Outro",negateLabel:"Não %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Atualizado em"}}},editor:{editorControl:{field:{optional:"opcional"}},editorControlPane:{widget:{required:"%{fieldLabel} é obrigatório.",regexPattern:"%{fieldLabel} não corresponde com o padrão: %{pattern}.",processing:"%{fieldLabel} está processando.",range:"%{fieldLabel} deve estar entre %{minValue} e %{maxValue}.",min:"%{fieldLabel} deve ser, no mínimo, %{minValue}.",max:"%{fieldLabel} deve ser igual ou menor que %{maxValue}.",rangeCount:"%{fieldLabel} deve ser entre %{minCount} e %{maxCount}.",rangeCountExact:"%{fieldLabel} deve ser exatamente %{count}.",rangeMin:"%{fieldLabel} deve ter, pelo menos, %{minCount}.",rangeMax:"%{fieldLabel} deve ter %{maxCount} ou menos.",invalidPath:"'%{path}' não é um caminho válido",pathExists:"O caminho '%{path}' já existe"},i18n:{writingInLocale:"Escrevendo em %{locale}"}},editor:{onLeavePage:"Tem certeza que deseja sair desta página?",onUpdatingWithUnsavedChanges:"Há mudanças não salvas. Por favor, salve-as antes de atualizar o status.",onPublishingNotReady:'Por favor, altere o status para "Pronto" antes de publicar.',onPublishingWithUnsavedChanges:"Há mudanças não salvas. Por favor, salve-as antes de publicar.",onPublishing:"Tem certeza que deseja publicar essa entrada?",onUnpublishing:"Tem certeza que deseja cancelar a publicação dessa entrada?",onDeleteWithUnsavedChanges:"Tem certeza de que deseja excluir esta entrada publicada, bem como as alterações não salvas da sessão atual?",onDeletePublishedEntry:"Tem certeza de que deseja excluir esta entrada publicada?",onDeleteUnpublishedChangesWithUnsavedChanges:"Isso excluirá todas as alterações não publicadas nesta entrada, bem como as alterações não salvas da sessão atual. Você ainda deseja excluir?",onDeleteUnpublishedChanges:"Todas as alterações não publicadas nesta entrada serão excluídas. Você ainda deseja excluir?",loadingEntry:"Carregando entrada...",confirmLoadBackup:"Um backup local foi recuperado para esta entrada. Deseja usá-lo?"},editorInterface:{toggleI18n:"Mudar i18n",togglePreview:"Mudar pré-visualização",toggleScrollSync:"Sincronizar rolagem"},editorToolbar:{publishing:"Publicando...",publish:"Publicar",published:"Publicado",unpublish:"Despublicar",duplicate:"Duplicado",unpublishing:"Despublicando...",publishAndCreateNew:"Publicar e criar novo(a)",publishAndDuplicate:"Publicar e duplicar",deleteUnpublishedChanges:"Excluir alterações não publicadas",deleteUnpublishedEntry:"Excluir entrada não publicada",deletePublishedEntry:"Excluir entrada publicada",deleteEntry:"Excluir entrada",saving:"Salvando...",save:"Salvar",statusInfoTooltipDraft:"Entrada definida como rascunho. Para finalizar e enviá-la a revisão, mude seu estado para 'Em revisão'",statusInfoTooltipInReview:"Entrada está sendo revisada, nenhuma ação extra é requirida. Porém, você ainda pode fazer mudanças adicionais enquanto ela está sendo revisada.",deleting:"Excluindo...",updating:"Atualizando...",status:"Status: %{status}",backCollection:" Escrevendo na coleção %{collectionLabel}",unsavedChanges:"Alterações não salvas",changesSaved:"Alterações salvas",draft:"Rascunho",inReview:"Em revisão",ready:"Pronto",publishNow:"Publicar agora",deployPreviewPendingButtonLabel:"Verificar se há Pré-visualização",deployPreviewButtonLabel:"Ver Pré-visualização",deployButtonLabel:"Ver em Produção"},editorWidgets:{markdown:{bold:"Negrito",italic:"Itálico",code:"Código",link:"Link",linkPrompt:"Insira a URL do link",headings:"Cabeçalho",quote:"Citação",bulletedList:"Lista Pontilhada",numberedList:"Lista Numerada",addComponent:"Adicionar Componente",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Escolha uma imagem",chooseUrl:"Inserir de uma URL",replaceUrl:"Substituir com uma URL",promptUrl:"Insira a URL da imagem",chooseDifferent:"Escolha uma imagem diferente",remove:"Remover imagem"},file:{choose:"Escolha um arquivo",chooseUrl:"Inserir de uma URL",replaceUrl:"Substituir com uma URL",promptUrl:"Insira a URL do arquivo",chooseDifferent:"Escolha um arquivo diferente",remove:"Remover arquivo"},unknownControl:{noControl:"Nenhum controle para o widget '%{widget}'."},unknownPreview:{noPreview:"Nenhuma pré-visualização para o widget '%{widget}'."},headingOptions:{headingOne:"Título nível 1",headingTwo:"Título nível 2",headingThree:"Título nível 3",headingFour:"Título nível 4",headingFive:"Título nível 5",headingSix:"Título nível 6"},datetime:{now:"Agora",clear:"Limpar"},list:{add:"Adicionar %{item}",addType:"Adicionar %{item} item"}}},mediaLibrary:{mediaLibraryCard:{draft:"Rascunho",copy:"Copiar",copyUrl:"Copiar URL",copyPath:"Copiar Caminho",copyName:"Copiar Nome",copied:"Copiado"},mediaLibrary:{onDelete:"Tem certeza de que deseja excluir a mídia selecionada?",fileTooLarge:"Arquivo muito grande.\nConfigurado para não permitir arquivos maiores que %{size} kB."},mediaLibraryModal:{loading:"Carregando...",noResults:"Nenhum resultado.",noAssetsFound:"Nenhum recurso encontrado.",noImagesFound:"Nenhuma imagem encontrada.",private:"Privado ",images:"Imagens",mediaAssets:"Recursos de mídia",search:"Pesquisar...",uploading:"Enviando...",upload:"Enviar novo",download:"Download",deleting:"Excluindo...",deleteSelected:"Excluir selecionado",chooseSelected:"Escolher selecionado"}},ui:{default:{goBackToSite:"Voltar ao site"},errorBoundary:{title:"Erro",details:"Ocorreu um erro - por favor ",reportIt:"relatar.",detailsHeading:"Detalhes",privacyWarning:"Ao abrir uma issue, ela é preenchida com a mensagem de erro e o log de debug.\nPor favor, verifique se a informação está correta e remova dados sensíveis caso existam.",recoveredEntry:{heading:"Documento recuperado",warning:"Copie/cole isso em algum lugar antes de sair!",copyButtonLabel:"Copiar para área de transferência"}},settingsDropdown:{logOut:"Sair"},toast:{onFailToLoadEntries:"Falha ao carregar a entrada: %{details}",onFailToLoadDeployPreview:"Falha ao carregar a pré-visualização: %{details}",onFailToPersist:"Falha ao persistir na entrada: %{details}",onFailToDelete:"Falha ao excluir a entrada: %{details}",onFailToUpdateStatus:"Falha ao atualizar status: %{details}",missingRequiredField:"Ops, você perdeu um campo obrigatório. Por favor, preencha antes de salvar.",entrySaved:"Entrada salva",entryPublished:"Entrada publicada",entryUnpublished:"Entrada despublicada",onFailToPublishEntry:"Falha ao publicar: %{details}",onFailToUnpublishEntry:"Falha ao cancelar a publicação da entrada: %{details}",entryUpdated:"Status da entrada atualizado",onDeleteUnpublishedChanges:"Alterações não publicadas excluídas",onFailToAuth:"%{details}",onLoggedOut:"Você foi desconectado. Por favor, salve as alterações e entre novamente",onBackendDown:"O serviço de back-end está fora do ar. Veja %{details} para mais informações"}},workflow:{workflow:{loading:"Carregando entradas do Fluxo de Trabalho Editorial",workflowHeading:"Fluxo de Trabalho Editorial",newPost:"Nova Publicação",description:"%{smart_count} entrada aguardando revisão, %{readyCount} pronta para publicação. |||| %{smart_count} entradas aguardando revisão, %{readyCount} pronta para publicação.",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} por %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"por %{author}",deleteChanges:"Excluir alterações",deleteNewEntry:"Excluir nova entrada",publishChanges:"Publicar alterações",publishNewEntry:"Publicar nova entrada"},workflowList:{onDeleteEntry:"Tem certeza de que deseja excluir esta entrada?",onPublishingNotReadyEntry:'Somente itens com o status "Pronto" podem ser publicados. Arraste o cartão para a coluna "Pronto" para poder publicar.',onPublishEntry:"Tem certeza de que quer publicar esta entrada?",draftHeader:"Rascunhos",inReviewHeader:"Em Revisão",readyHeader:"Prontos",currentEntries:"%{smart_count} entrada |||| %{smart_count} entradas"}}}},64425:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Autentifică-te",loggingIn:"Te autentificăm...",loginWithNetlifyIdentity:"Autentifică-te cu Netlify Identity",loginWithAzure:"Autentifică-te cu Azure",loginWithBitbucket:"Autentifică-te cu Bitbucket",loginWithGitHub:"Autentifică-te cu GitHub",loginWithGitLab:"Autentifică-te cu GitLab",loginWithGitea:"Autentifică-te cu Gitea",errors:{email:"Asigură-te că ai introdus email-ul.",password:"Te rugăm introdu parola.",identitySettings:"Nu s-a putut accesa serviciul de autentificare. Dacă folosești git-gateway, asigură-te că ai activat serviciul Identity și Git-Gateway."}},app:{header:{content:"Conținut",workflow:"Workflow",media:"Fișiere",quickAdd:"Adaugă"},app:{errorHeader:"A apărut o eroare cu configurarea CMS-ului.",configErrors:"Au apărut erori de configurare.",checkConfigYml:"Verifică fișierul de configurare (config.yml).",loadingConfig:"Se încarcă configurările...",waitingBackend:"Așteptăm după backend..."},notFoundPage:{header:"Pagină inexistentă."}},collection:{sidebar:{collections:"Colecții",allCollections:"Toate colecțiile",searchAll:"Căutare",searchIn:"Caută în"},collectionTop:{sortBy:"Sortează",viewAs:"Vizualizează ca",newButton:"Adaugă %{collectionLabel}",ascending:"Ascendent",descending:"Descendent",searchResults:'Rezultatele căutării pentru "%{searchTerm}"',searchResultsInCollection:'Rezultatele căutării pentru "%{searchTerm}" în %{collection}',filterBy:"Filtrează după",groupBy:"Grupează după"},entries:{loadingEntries:"Se încarcă intrările...",cachingEntries:"Se salvează temporar intrările...",longerLoading:"Ar putea dura câteva minute.",noEntries:"Nu există intrări."},groups:{other:"Altul",negateLabel:"Nu %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Actualizat la"}}},editor:{editorControl:{field:{optional:"opțional"}},editorControlPane:{widget:{required:"%{fieldLabel}” este obligatoriu.",regexPattern:"%{fieldLabel} nu se potrivește după modelul: %{pattern}.",processing:"%{fieldLabel} se procesează.",range:"%{fieldLabel} poate fi între %{minValue} și %{maxValue}.",min:"%{fieldLabel} poate fi mai mare sau egal cu %{minValue}.",max:"%{fieldLabel} poate fi mai mic sau egal cu %{maxValue}.",rangeCount:"%{fieldLabel} poate avea între %{minCount} și %{maxCount} intrări.",rangeCountExact:"%{fieldLabel} trebuie să conțină exact %{count} intrări.",minCount:"%{fieldLabel} trebuie să conțină cel puțin %{minCount} intrări.",maxCount:"%{fieldLabel} trebuie să conțină cel mult %{maxCount} intrări.",invalidPath:"'%{path}' nu este o cale validă.",pathExists:"Calea '%{path}' există deja."},i18n:{writingInLocale:"Scrii în limba %{locale}"}},editor:{onLeavePage:"Ești sigur/ă că dorești să părăsești pagina?",onUpdatingWithUnsavedChanges:"Există modificări nesalvate! Te rugăm salvează înainte de a actualiza statusul.",onPublishingNotReady:"Actualizează statusul la „Gata” înainte de publicare.",onPublishingWithUnsavedChanges:"Există modificări nesalvate, salvează-le înainte de publicare.",onPublishing:"Ești sigur/ă că dorești să publici acest articol?",onUnpublishing:"Ești sigur/ă că dorești să anulezi publicarea acestui articol?",onDeleteWithUnsavedChanges:"Ești sigur/ă că dorești să ștergi această publicare, dar și modificările nesalvate din sesiunea curentă?",onDeletePublishedEntry:"Ești sigur/ă că dorești să ștergi această publicare?",onDeleteUnpublishedChangesWithUnsavedChanges:"Se vor șterge toate modificările nepublicate din aceast articol și modificările nesalvate din sesiunea curentă. Continui cu ștergerea?",onDeleteUnpublishedChanges:"Toate modificările nepublicate din acest articol vor fi șterse. Continui cu ștergerea?",loadingEntry:"Se încarcă...",confirmLoadBackup:"Un backup local a fost recuperat pentru această intrare, dorești să îl folosești?"},editorInterface:{toggleI18n:"Comută limba",togglePreview:"Comută previzualizarea",toggleScrollSync:"Sincronizează scroll-ul"},editorToolbar:{publishing:"Se publică...",publish:"Publicare",published:"Publicat",unpublish:"Anulează publicarea",duplicate:"Duplifică",unpublishing:"Se anulează publicarea...",publishAndCreateNew:"Publicare apoi crează altul",publishAndDuplicate:"Publicare apoi duplifică",deleteUnpublishedChanges:"Șterge modificări nepublicate",deleteUnpublishedEntry:"Șterge intrarea nepublicată",deletePublishedEntry:"Șterge intrarea publicată",deleteEntry:"Șterge intrare",saving:"Se salvează...",save:"Salvează",deleting:"Se șterge...",updating:"Se actualizează...",status:"Status: %{status}",backCollection:" Scrii în colecția „%{collectionLabel}”",unsavedChanges:"Modificări nesalvate",changesSaved:"Modificări salvate",draft:"Ciornă",inReview:"În revizuire",ready:"Gata",publishNow:"Publicare",deployPreviewPendingButtonLabel:"Verifică publicare",deployPreviewButtonLabel:"Previzualizare",deployButtonLabel:"Vezi publicarea"},editorWidgets:{markdown:{bold:"Bold",italic:"Italic",code:"Cod sursă",link:"Link",linkPrompt:"Scrie URL-ul",headings:"Titluri",quote:"Citat",bulletedList:"Listă cu puncte",numberedList:"Listă cu numere",addComponent:"Adaugă componentă",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Alege o imagine",chooseUrl:"Inserează din URL",replaceUrl:"Schimbă cu URL",promptUrl:"Introdu URL-ul imaginii",chooseDifferent:"Alege altă imagine",remove:"Șterge imaginea"},file:{choose:"Alege un fișier",chooseUrl:"Inserează din URL",replaceUrl:"Schimbă cu URL",promptUrl:"Introdu URL-ul fișierului",chooseDifferent:"Alege alt fișier",remove:"Șterge fișier"},unknownControl:{noControl:"Widget-ul „%{widget}” nu are configurări valabile."},unknownPreview:{noPreview:"Nu există previzualizare pentru widget-ul „%{widget}”."},headingOptions:{headingOne:"Titlu 1",headingTwo:"Titlu 2",headingThree:"Titlu 3",headingFour:"Titlu 4",headingFive:"Titlu 5",headingSix:"Titlu 6"},datetime:{now:"Acum",clear:"Șterge"}}},mediaLibrary:{mediaLibraryCard:{draft:"Ciornă",copy:"Copiază",copyUrl:"Copiază URL",copyPath:"Copiază cale",copyName:"Copiaza nume",copied:"Copiat"},mediaLibrary:{onDelete:"Ești sigur/ă că dorești să ștergi fișierul selectat?",fileTooLarge:"Fișier prea mare.\nConfigurarea nu permite fișiere mai mari de %{size} KB."},mediaLibraryModal:{loading:"Se încarcă...",noResults:"Nu sunt rezultate.",noAssetsFound:"Nu s-au găsit fișiere.",noImagesFound:"Nu s-au găsit imagini.",private:"Privat ",images:"Imagini",mediaAssets:"Fișiere media",search:"Caută...",uploading:"Se încarcă...",upload:"Încarcă",download:"Descarcă",deleting:"Se șterge...",deleteSelected:"Șterge fișierele selectate",chooseSelected:"Alege fișierele selectate"}},ui:{default:{goBackToSite:"Înapoi la site"},errorBoundary:{title:"Eroare",details:"A apărut o eroare - te rugăm ",reportIt:"Deschide o problemă pe GitHub.",detailsHeading:"Detalii",privacyWarning:"Problema deschisă va fi precompletată cu mesajul de eroare și datele de depanare.\nTe rugăm verifică datele să fie corecte și șterge orice fel de date personale.",recoveredEntry:{heading:"Document recuperat",warning:"Te rugăm să faci copy/paste la datele acestea undeva înainte de ieșire!",copyButtonLabel:"Copiază în clipboard"}},settingsDropdown:{logOut:"Ieșire din cont"},toast:{onFailToLoadEntries:"A eșuat încărcarea intrării: %{details}",onFailToLoadDeployPreview:"A eșuat încărcarea previzualizării: %{details}",onFailToPersist:"A eșuat persistarea intrării: %{details}",onFailToDelete:"A eșuat ștergerea intrării: %{details}",onFailToUpdateStatus:"A eșuat actualizarea status-ului: %{details}",missingRequiredField:"Oops, ai ratat un câmp obligatoriu. Completează-l pentru a salva.",entrySaved:"Intrare salvată",entryPublished:"Intrare publicată",entryUnpublished:"Publicare anulată",onFailToPublishEntry:"A eșuat publicarea: %{details}",onFailToUnpublishEntry:"A eșuat anularea publicării: %{details}",entryUpdated:"S-a actualizat status-ul intrării",onDeleteUnpublishedChanges:"Modificări nepublicate șterse",onFailToAuth:"%{details}",onLoggedOut:"Ai fost delogat, te rugăm salvează orice date și autentifică-te din nou.",onBackendDown:"Există probleme la server. Vezi %{details} pentru mai multe informații."}},workflow:{workflow:{loading:"Se încarcă intrările din Workflow-ul Editorial",workflowHeading:"Workflow Editorial",newPost:"Postare nouă",description:"%{smart_count} pregătite de revizuire, %{readyCount} gata de publicare. |||| %{smart_count} pregătite de revizuire, %{readyCount} gata de publicare. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} de %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"de %{author}",deleteChanges:"Modificări șterse",deleteNewEntry:"Șterge intrarea nouă",publishChanges:"Publicare modificări",publishNewEntry:"Publicare intrare nouă"},workflowList:{onDeleteEntry:"Ești sigur/ă că dorești ștergerea intrării?",onPublishingNotReadyEntry:"Numai intrări cu status-ul „Gata” pot fi publicate. Trage un card în coloana „Gata” pentru a putea publica.",onPublishEntry:"Ești sigur/ă că dorești să faci publicarea?",draftHeader:"Ciorne",inReviewHeader:"În revizuire",readyHeader:"Gata",currentEntries:"%{smart_count} intrări |||| %{smart_count} intrări"}}}},57312:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Войти",loggingIn:"Вхожу...",loginWithNetlifyIdentity:"Войти через Netlify Identity",loginWithAzure:"Войти через Azure",loginWithBitbucket:"Войти через Bitbucket",loginWithGitHub:"Войти через GitHub",loginWithGitLab:"Войти через GitLab",loginWithGitea:"Войти через Gitea",errors:{email:"Введите ваш email.",password:"Введите пароль.",identitySettings:"Нет доступа к настройкам. Если используете git-gateway, убедитесь, что включили Identity service и Git Gateway."}},app:{header:{content:"Записи",workflow:"Рабочая область",media:"Медиафайлы",quickAdd:"Быстрое добавление"},app:{errorHeader:"Ошибка загрузки конфигурации CMS",configErrors:"Ошибки конфигурации",checkConfigYml:"Проверьте свой config.yml файл.",loadingConfig:"Загрузка конфигурации…",waitingBackend:"Ожидание ответа от бэкенда…"},notFoundPage:{header:"Не найден"}},collection:{sidebar:{collections:"Коллекции",allCollections:"Все коллекции",searchAll:"Искать повсюду",searchIn:"Искать в"},collectionTop:{sortBy:"Сортировать по",viewAs:"Вид",newButton:"Создать %{collectionLabel}",ascending:"По возрастанию",descending:"По убывания",searchResults:'Результаты по запросу "%{searchTerm}"',searchResultsInCollection:'Результаты по запросу "%{searchTerm}" в %{collection}',filterBy:"Фильтровать по",groupBy:"Группировать по"},entries:{loadingEntries:"Загрузка записей…",cachingEntries:"Кэширование записей…",longerLoading:"Это может занять несколько минут",noEntries:"Нет записей"},groups:{other:"Другая",negateLabel:"Не %{label}"},defaultFields:{author:{label:"Автор"},updatedOn:{label:"Дате обновления"}}},editor:{editorControl:{field:{optional:"необязательный"}},editorControlPane:{widget:{required:"Необходимо указать значение поля %{fieldLabel}.",regexPattern:"Значение поля %{fieldLabel} не соответствует шаблону: %{pattern}.",processing:"Значение поля %{fieldLabel} обрабатывается…",range:"Значение поля %{fieldLabel} должно быть между %{minValue} и %{maxValue}.",min:"Значение поля %{fieldLabel} должно быть не менее %{minValue}.",max:"Значение поля %{fieldLabel} должно быть %{maxValue} или менее.",rangeCount:"%{fieldLabel} должно содержать от %{minCount} до %{maxCount} элементов.",rangeCountExact:"%{fieldLabel} должно содержать строго %{count} элементов.",rangeMin:"%{fieldLabel} должно содержать не менее %{minCount} элементов.",rangeMax:"%{fieldLabel} должно содержать %{maxCount} или менее элементов.",invalidPath:"Путь '%{path}' содежрит ошибки",pathExists:"Путь '%{path}' уже существует"},i18n:{writingInLocale:"Пишем на %{locale}",copyFromLocale:"Заполнить из другого региона",copyFromLocaleConfirm:"Вы хотите заполнять данные используя %{locale} локализацию?\nВесь существующий контент будет перезаписан."}},editor:{onLeavePage:"Вы уверены, что хотите покинуть эту страницу?",onUpdatingWithUnsavedChanges:"У вас есть несохраненные изменения, сохраните их перед обновлением статуса.",onPublishingNotReady:"Пожалуйста, измените статус на «Готов» перед публикацией.",onPublishingWithUnsavedChanges:"У вас есть несохраненные изменения, сохраните их перед публикацией.",onPublishing:"Вы уверены, что хотите опубликовать эту запись?",onUnpublishing:"Вы уверены, что хотите отменить публикацию этой записи?",onDeleteWithUnsavedChanges:"Вы уверены, что хотите удалить эту опубликованную запись, а также несохраненные изменения из текущего сеанса?",onDeletePublishedEntry:"Вы уверены, что хотите удалить эту опубликованную запись?",onDeleteUnpublishedChangesWithUnsavedChanges:"Это удалит все неопубликованные изменения в этой записи, а также ваши несохраненные изменения из текущего сеанса. Вы все еще хотите удалить?",onDeleteUnpublishedChanges:"Все неопубликованные изменения в этой записи будут удалены. Вы все еще хотите удалить?",loadingEntry:"Загрузка записи…",confirmLoadBackup:"Для этой записи была восстановлена локальная резервная копия, хотите ли вы ее использовать?"},editorInterface:{toggleI18n:"Переключиться на i18n",togglePreview:"Переключиться на предварительный просмотр",toggleScrollSync:"Синхронизация прокрутки"},editorToolbar:{publishing:"Публикация…",publish:"Опубликовать",published:"Опубликовано",unpublish:"Отменить публикацию",duplicate:"Дублировать",unpublishing:"Отмена публикации…",publishAndCreateNew:"Опубликовать и создать новую",publishAndDuplicate:"Опубликовать и дублировать",deleteUnpublishedChanges:"Удалить неопубликованные изменения",deleteUnpublishedEntry:"Удалить неопубликованную запись",deletePublishedEntry:"Удалить опубликованную запись",deleteEntry:"Удалить запись",saving:"Сохранение…",save:"Сохранить",deleting:"Удаление…",updating:"Обновление…",status:"Cтатус: %{status}",backCollection:"Запись в коллекцию %{collectionLabel}",unsavedChanges:"Несохраненные изменения",changesSaved:"Изменения сохранены",draft:"Черновик",inReview:"На рассмотрении",ready:"Одобрен",publishNow:"Опубликовать сейчас",deployPreviewPendingButtonLabel:"Проверить предварительный просмотр",deployPreviewButtonLabel:"Предварительный просмотр",deployButtonLabel:"Просмотр",statusInfoTooltipDraft:"Статус записи установлен на черновик. Чтобы доработать и отправить его на рассмотрение, установите статус «На рассмотрении».",statusInfoTooltipInReview:"Запись находится на рассмотрении, дальнейших действий не требуется. Тем не менее, вы все еще можете внести дополнительные изменения, пока она находится на рассмотрении."},editorWidgets:{markdown:{bold:"Полужиный",italic:"Курсив",code:"Код",link:"Ссылка",linkPrompt:"Укажите URL ссылки",headings:"Заголовки",quote:"Цитата",bulletedList:"Маркированный список",numberedList:"Нумерованный список",addComponent:"Добавить компонент",richText:"Форматированный текст",markdown:"Markdown"},image:{choose:"Выберите изображение",chooseMultiple:"Выберите изображения",chooseUrl:"Вставить из URL",replaceUrl:"Заменить на URL",promptUrl:"Введите URL изображения",chooseDifferent:"Выберите другое изображение",addMore:"Добавьте еще изображений",remove:"Удалить изображение",removeAll:"Удалить все изображения"},file:{choose:"Выберите файл",chooseUrl:"Вставить из URL",chooseMultiple:"Выбрать файлы",replaceUrl:"Заменить на URL",promptUrl:"Введите URL файла",chooseDifferent:"Выберите другой файл",addMore:"Добавить больше файлов",remove:"Удалить файл",removeAll:"Удалить все файлы"},unknownControl:{noControl:"Нет контрола для виджета '%{widget}'."},unknownPreview:{noPreview:"Нет превью для виджета '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Сейчас",clear:"Очистить"},list:{add:"Добавить %{item}",addType:"Добавить %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Черновик",copy:"Копировать",copyUrl:"Копировать URL",copyPath:"Копировать путь",copyName:"Копировать имя",copied:"Скопировано"},mediaLibrary:{onDelete:"Вы уверены, что хотите удалить выбранный медиафайл?",fileTooLarge:"Файл слишком большой.\nНастройки не позволяют сохранять файлы более %{size} kB."},mediaLibraryModal:{loading:"Загрузка медифайлов…",noResults:"Нет результатов.",noAssetsFound:"Ресурсы не найдены.",noImagesFound:"Изображения не найдены.",private:"Приватные ",images:"Изображения",mediaAssets:"Медиаресурсы",search:"Идёт поиск…",uploading:"Загрузка…",upload:"Загрузить новый",download:"Скачать",deleting:"Удаление…",deleteSelected:"Удалить помеченные",chooseSelected:"Выбрать помеченные"}},ui:{default:{goBackToSite:"Вернуться на сайт"},errorBoundary:{title:"Ошибка",details:"Произошла ошибка. Пожалуйста, ",reportIt:"сообщите о ней.",detailsHeading:"Подробности",privacyWarning:"При открытии тикет автоматически предзаполняется сообщением об ошибке и отладочной информацией.\nПожалуйста, проверьте, что данные верны и не содержат конфиденциальной информации.",recoveredEntry:{heading:"Восстановленный документ",warning:"Пожалуйста, скопируйте это сообщение куда-нибудь, прежде чем уйти со страницы!",copyButtonLabel:"Скопировать в буфер обмена"}},settingsDropdown:{logOut:"Выйти"},toast:{onFailToLoadEntries:"Не удалось загрузить запись: %{details}",onFailToLoadDeployPreview:"Не удалось загрузить превью: %{details}",onFailToPersist:"Не удалось сохранить запись: %{details}",onFailToDelete:"Не удалось удалить запись: %{details}",onFailToUpdateStatus:"Не удалось обновить статус: %{details}",missingRequiredField:"К сожалению, вы пропустили обязательное поле. Пожалуйста, заполните перед сохранением.",entrySaved:"Запись сохранена",entryPublished:"Запись опубликована",entryUnpublished:"Публикация записи отменена",onFailToPublishEntry:"Не удалось опубликовать запись: %{details}",onFailToUnpublishEntry:"Не удалось отменить публикацию записи: %{details}",entryUpdated:"Статус записи обновлен",onDeleteUnpublishedChanges:"Неопубликованные изменения удалены",onFailToAuth:"%{details}",onLoggedOut:"Вы вышли. Пожалуйста, сохраните все данные и войдите снова",onBackendDown:"Происходят перебои в работе бекенда. См. %{details}"}},workflow:{workflow:{loading:"Загрузка записей в рабочей области",workflowHeading:"Рабочая область",newPost:"Новая запись",description:"Число записей, ожидающих проверки — %{smart_count}, готовых к публикации — %{readyCount}. |||| Число записей, ожидающих проверки — %{smart_count}, готовых к публикации — %{readyCount}. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Удалить изменения",deleteNewEntry:"Удалить новую запись",publishChanges:"Опубликовать изменения",publishNewEntry:"Опубликовать новую запись"},workflowList:{onDeleteEntry:"Вы уверены, что хотите удалить эту запись?",onPublishingNotReadyEntry:"Только элементы со статусом «Готов» могут быть опубликованы. Перетащите карточку в столбец «Одобренные», чтобы разрешить публикацию.",onPublishEntry:"Вы уверены, что хотите опубликовать эту запись?",draftHeader:"Черновики",inReviewHeader:"На рассмотрении",readyHeader:"Одобренные",currentEntries:"%{smart_count} entry |||| %{smart_count} entries"}}}},48821:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Vpiši se",loggingIn:"Prijavljanje...",loginWithNetlifyIdentity:"Prijavi se z Netlify Identity",loginWithAzure:"Prijavi se z Azure računom",loginWithBitbucket:"Prijavi se z BitBucket računom",loginWithGitHub:"Prijavi se z GitHub računom",loginWithGitLab:"Prijavi se z Gitlab računom",errors:{email:"Vnesi svoj pravi e-poštni naslov.",password:"Vnesi svoje geslo.",identitySettings:"Ni mogoče dostopati do nastavitev identitete. Ko uporabljate Git-Gateway zaledje, se prepričajte, da omogočite Identity Service in Git Gateway."}},app:{header:{content:"Vsebina",workflow:"Potek dela",media:"Media",quickAdd:"Hitro dodajanje"},app:{errorHeader:"Napaka pri nalaganju CMS konfiguracije",configErrors:"Konfiguracijske napake",checkConfigYml:"Preverite svojo datoteko config.yml.",loadingConfig:"Nalaganje konfiguracije ...",waitingBackend:"Čakanje na zaledje ..."},notFoundPage:{header:"Ni najdeno"}},collection:{sidebar:{collections:"Zbirke",allCollections:"Vse zbirke",searchAll:"Išči vse",searchIn:"Išči v"},collectionTop:{sortBy:"Razvrsti po",viewAs:"Poglej kot",newButton:"Nov %{collectionLabel}",ascending:"Naraščajoče",descending:"Padajoče",searchResults:'Rezultati iskanja za "%{searchTerm}"',searchResultsInCollection:'Rezultati iskanja za "%{searchTerm}" v %{collection}',filterBy:"Filtriraj po",groupBy:"Grupiraj po"},entries:{loadingEntries:"Nalaganje vnosov ...",cachingEntries:"Predpomnjenje vnosov ...",longerLoading:"To lahko traja nekaj minut",noEntries:"Ni vnosov"},groups:{other:"Drugo",negateLabel:"Ne %{label}"},defaultFields:{author:{label:"Avtor"},updatedOn:{label:"Nazadnje posodobljeno"}}},editor:{editorControl:{field:{optional:"opcijsko"}},editorControlPane:{widget:{required:"%{fieldLabel} je obvezen.",regexPattern:"%{fieldLabel} se ni ujemal z vzorcem: %{pattern}.",processing:"%{fieldLabel} je v obdelavi.",range:"%{fieldLabel} mora biti med %{minValue} in %{maxValue}.",min:"%{fieldLabel} mora biti vsaj %{minValue}.",max:"%{fieldLabel} mora biti %{maxValue} ali manj.",rangeCount:"%{fieldLabel} mora imeti med %{minCount} in %{maxCount} elementov.",rangeCountExact:"%{fieldLabel} mora imeti točno %{count} elemente.",rangeMin:"%{fieldLabel} mora imeti vsaj %{minCount} elementov.",rangeMax:"%{fieldLabel} mora imeti %{maxCount} ali manj elementov.",invalidPath:"'%{path}' ni veljavna pot",pathExists:"Pot '%{path}' že obstaja"},i18n:{writingInLocale:"Pisanje v %{locale}",copyFromLocale:"Izpolnite iz drugega jezika",copyFromLocaleConfirm:"Ali želiš izpolniti podatke iz %{locale} jezika?\nVsa obstoječa vsebina bo prepisana."}},editor:{onLeavePage:"Ste prepričani, da želite zapustiti to stran?",onUpdatingWithUnsavedChanges:"Imaš neshranjene spremembe. Shrani pred posodobitvijo stanja.",onPublishingNotReady:'Pred objavo posodobi status na "pripravljen".',onPublishingWithUnsavedChanges:"Imaš neshranjene spremembe. Shrani pred objavo.",onPublishing:"Ste prepričani, da želite objaviti ta vnos?",onUnpublishing:"Ste prepričani, da želite preklicati objavo tega vnosa?",onDeleteWithUnsavedChanges:"Ste prepričani, da želite izbrisati ta objavljen vnos, pa tudi neshrannjene spremembe iz trenutne seje?",onDeletePublishedEntry:"Ste prepričani, da želite izbrisati ta objavljeni vnos?",onDeleteUnpublishedChangesWithUnsavedChanges:"To bo izbrisalo vse neobjavljene spremembe tega vnosa, pa tudi neshranjene spremembe iz trenutne seje. Ali še vedno želiš izbrisati?",onDeleteUnpublishedChanges:"Vse neobjavljene spremembe tega vnosa bodo izbrisane. Ali še vedno želiš izbrisati?",loadingEntry:"Nalaganje vnosa ...",confirmLoadBackup:"Za ta vnos je bila povrnjena lokalna varnostna kopija, ali bi jo radi uporabili?"},editorInterface:{toggleI18n:"Preklopi i18n",togglePreview:"Preklopi predogled",toggleScrollSync:"Sinhroniziraj drsenje"},editorToolbar:{publishing:"Objavljanje ...",publish:"Objavi",published:"Objavljeno",unpublish:"Prekliči objavo",duplicate:"Podvoji",unpublishing:"Preklicevanje objave ...",publishAndCreateNew:"Objavi in ustvari novo",publishAndDuplicate:"Objavi in podvoji",deleteUnpublishedChanges:"Izbriši neobjavljene spremembe",deleteUnpublishedEntry:"Izbriši neobjavljen vnos",deletePublishedEntry:"Izbriši objavljen vnos",deleteEntry:"Izbriši vnos",saving:"Shranjevanje ...",save:"Shrani",statusInfoTooltipDraft:"Status vnosa je nastavljen na osnutek. Če ga želiš dokončati in predložiti v pregled, nastavi stanje na „v pregledu“",statusInfoTooltipInReview:"Vnos je v pregledu, nadaljnja dejanja niso potrebna. Vendar lahko med pregledovanjem še vedno narediš spremembe.",deleting:"Brisanje ...",updating:"Posodabljanje ...",status:"status: %{status}",backCollection:" Pisanje v %{collectionLabel} zbirko",unsavedChanges:"Neshranjene spremembe",changesSaved:"Spremembe shranjene",draft:"Osnutek",inReview:"V pregledu",ready:"Pripravljen",publishNow:"Objavi zdaj",deployPreviewPendingButtonLabel:"Preveri za predogled",deployPreviewButtonLabel:"Ogled predogleda",deployButtonLabel:"Pogled v živo"},editorWidgets:{markdown:{bold:"Debelo",italic:"Poševno",code:"Koda",link:"Povezava",linkPrompt:"Vnesite URL povezave",headings:"Naslovi",quote:"Citat",bulletedList:"Seznam z oznakami",numberedList:"Oštevilčen seznam",addComponent:"Dodaj komponento",richText:"Bogato besedilo",markdown:"Markdown"},image:{choose:"Izberi sliko",chooseMultiple:"Izberi slike",chooseUrl:"Vstavi iz URL-ja",replaceUrl:"Zamenjaj z URL",promptUrl:"Vnesi URL slike",chooseDifferent:"Izberi drugo sliko",addMore:"Dodaj več slik",remove:"Odstrani sliko",removeAll:"Odstrani vse slike"},file:{choose:"Izberi datoteko",chooseUrl:"Vstavi iz URL-ja",chooseMultiple:"Izberi datoteke",replaceUrl:"Zamenjaj z URL",promptUrl:"Vnesi URL datoteke",chooseDifferent:"Izberi drugo datoteko",addMore:"Dodaj več datotek",remove:"Odstrani datoteko",removeAll:"Odstrani vse datoteke"},unknownControl:{noControl:"Ni kontrole za gradnik '%{widget}'."},unknownPreview:{noPreview:"Nipredogleda za widget '%{widget}'."},headingOptions:{headingOne:"Naslov 1",headingTwo:"Naslov 2",headingThree:"Naslov 3",headingFour:"Naslov 4",headingFive:"Naslov 5",headingSix:"Naslov 6"},datetime:{now:"Zdaj",clear:"Počisti"},list:{add:"Dodaj %{item}",addType:"Dodaj %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Osnutek",copy:"Kopiraj",copyUrl:"Kopiraj URL",copyPath:"Kopiraj pot",copyName:"Kopiraj ime",copied:"Kopirano"},mediaLibrary:{onDelete:"Ste prepričani, da želite izbrisati izbrane medije?",fileTooLarge:"Datoteka je prevelika.\n Ne sme biti večja od %{size} kb."},mediaLibraryModal:{loading:"Nalaganje...",noResults:"Ni rezultatov.",noAssetsFound:"Ni najdenih sredstev.",noImagesFound:"Ni najdenih slik.",private:"Private",images:"Slike",mediaAssets:"Multimedijska sredstva",search:"Iskanje ...",uploading:"Nalaganje ...",upload:"Naloži",download:"Prenesi",deleting:"Brisanje ...",deleteSelected:"Izbriši izbrano",chooseSelected:"Dodaj izbrano"}},ui:{default:{goBackToSite:"Vrni se na spletno mesto"},errorBoundary:{title:"Napaka",details:"Prišlo je do napake.",reportIt:"Odprite težavo na GitHubu.",detailsHeading:"Podrobnosti",privacyWarning:"Odpiranje Github Issue bo javno objavilo vašo napako. Ne vključujte osebnih podatkov v vaši napaki.",recoveredEntry:{heading:"Obnovljen dokument",warning:"Prosimo, tole kopirajte/prilepite nekam, preden navigirate drugam!",copyButtonLabel:"Kopiraj v odložišče"}},settingsDropdown:{logOut:"Odjava"},toast:{onFailToLoadEntries:"Ni naložilo vnosa: %{details}",onFailToLoadDeployPreview:"Ni naložilo predogleda: %{details}",onFailToPersist:"Ni uspelo vztrajati: %{details}",onFailToDelete:"Ni uspelo izbrisati vnosa: %{details}",onFailToUpdateStatus:"Ni uspelo posodobiti stanja: %{details}",missingRequiredField:"Ups, zgrešili ste obvezno polje. Pred shranjevanjem izpolnite.",entrySaved:"Vnos shranjen",entryPublished:"Vnos objavljen",entryUnpublished:"Objava vnosa preklicana",onFailToPublishEntry:"Vnosa ni uspelo objaviti: %{details}",onFailToUnpublishEntry:"Preklicanje objave vnosa ni uspelo: %{details}",entryUpdated:"Status vnosa posodobljen",onDeleteUnpublishedChanges:"Neobjavljene spremembe izbrisane",onFailToAuth:"%{details}",onLoggedOut:"Bili ste odjavljeni, varnostno kopirate vse podatke in se ponovno prijavite",onBackendDown:"Zaledna storitev doživlja izpad. Glejte %{details} za več informacij"}},workflow:{workflow:{loading:"Nalaganje uredniških vnosov",workflowHeading:"Uredniški potek dela",newPost:"Nov vnos",description:"%{smart_count} vnos čaka na pregled, %{readyCount} pripravljen za objavo. |||| %{smart_count} vnosov čaka na pregled, %{readyCount} pripravljenih za objavo.",dateFormat:"DD. MM. YYYY"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"Izbriši spremembe",deleteNewEntry:"Izbriši nov vnos",publishChanges:"Objavi spremembe",publishNewEntry:"Objavi nov vnos"},workflowList:{onDeleteEntry:"Ali ste prepričani, da želite izbrisati ta vnos?",onPublishingNotReadyEntry:'Objavijo se lahko samo elementi s statusom "pripravljen". Prosimo, povlecite kartico v stolpec "pripravljen", da omogočite objavo.',onPublishEntry:"Ste prepričani, da želite objaviti ta vnos?",draftHeader:"Osnutki",inReviewHeader:"V pregledu",readyHeader:"Pripravljen",currentEntries:"%{smart_count} vnos |||| %{smart_count} vnosov"}}}},10869:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Logga in",loggingIn:"Loggar in...",loginWithNetlifyIdentity:"Logga in med Netlify Identity",loginWithAzure:"Logga in med Azure",loginWithBitbucket:"Logga in med Bitbucket",loginWithGitHub:"Logga in med GitHub",loginWithGitLab:"Logga in med GitLab",loginWithGitea:"Logga in med Gitea",errors:{email:"Fyll i din epostadress.",password:"Vänligen skriv ditt lösenord.",identitySettings:"Kan inte hämta inställningar för Identity. Vid användade av git-gateway backend, kontrollera att Identity service och Git Gateway är aktiverade."}},app:{header:{content:"Innehåll",workflow:"Arbetsflöde",media:"Media",quickAdd:"Snabbt tillägg"},app:{errorHeader:"Ett fel uppstod vid hämtning av CMS-konfigurationen",configErrors:"Konfigurationsfel",checkConfigYml:"Kontrollera din config.yml-fil.",loadingConfig:"Hämtar konfiguration...",waitingBackend:"Väntar på backend..."},notFoundPage:{header:"Sidan finns inte"}},collection:{sidebar:{collections:"Samlingar",allCollections:"Alla Samlingar",searchAll:"Sök",searchIn:"Sök i"},collectionTop:{sortBy:"Sortera efter",viewAs:"Visa som",newButton:"Ny %{collectionLabel}",ascending:"Stigande",descending:"Fallande",searchResults:'Sökresultat för "%{searchTerm}"',searchResultsInCollection:'Sökresultat för "%{searchTerm}" i %{collection}',filterBy:"Filtrera efter",groupBy:"Gruppera efter"},entries:{loadingEntries:"Hämtar inlägg...",cachingEntries:"Sparar inlägg i cache...",longerLoading:"Det här kan ta några minuter",noEntries:"Inga inlägg"},groups:{other:"Annat",negateLabel:"Inte %{label}"},defaultFields:{author:{label:"Författare"},updatedOn:{label:"Uppdaterad vid"}}},editor:{editorControl:{field:{optional:"frivillig"}},editorControlPane:{widget:{required:"%{fieldLabel} är obligatoriskt.",regexPattern:"%{fieldLabel} matchar inte mönstret: %{pattern}.",processing:"%{fieldLabel} bearbetas.",range:"%{fieldLabel} måste vara mellan %{minValue} och %{maxValue}.",min:"%{fieldLabel} måste vara åtminstone %{minValue}.",max:"%{fieldLabel} måste vara %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} måste ha mellan %{minCount} och %{maxCount} element.",rangeCountExact:"%{fieldLabel} måste ha exakt %{count} element.",rangeMin:"%{fieldLabel} måste ha åtminstone %{minCount} element.",rangeMax:"%{fieldLabel} måste ha %{maxCount} eller färre element.",invalidPath:"'%{path}' är inte en giltig sökväg",pathExists:"Sökvägen '%{path}' existerar redan"},i18n:{writingInLocale:"Skriver i %{locale}"}},editor:{onLeavePage:"Är du säker på att du vill lämna sidan?",onUpdatingWithUnsavedChanges:"Du har osparade ändringar, vänligen spara dem innan du uppdaterar status.",onPublishingNotReady:'Vänligen uppdatera status till "Redo" innan du publicerar.',onPublishingWithUnsavedChanges:"Du har osparade ändringar, vänligen spara innan du publicerar.",onPublishing:"Är du säker på att du vill publicera det här inlägget?",onUnpublishing:"Är du säker på att du vill avpublicera det här inlägget?",onDeleteWithUnsavedChanges:"Är du säker på att du vill radera det här publicerade inlägget, inklusive dina osparade ändringar från nuvarande session?",onDeletePublishedEntry:"Är du säker på att du vill radera det här publicerade inlägget?",onDeleteUnpublishedChangesWithUnsavedChanges:"Du är på väg att radera alla opublicerade ändringar för det här inlägget, inklusive dina osparade ändringar från nuvarande session. Vill du fortfarande radera?",onDeleteUnpublishedChanges:"Alla opublicerade ändringar kommer raderas. Vill du fortfarande radera?",loadingEntry:"Hämtar inlägg...",confirmLoadBackup:"En lokal kopia hittades för det här inlägget, vill du använda den?"},editorInterface:{toggleI18n:"Slå på/av i18n",togglePreview:"Visa/Dölj förhandsvisning",toggleScrollSync:"Synka scrollning"},editorToolbar:{publishing:"Publicerar...",publish:"Publicera",published:"Publicerad",unpublish:"Avpublicera",duplicate:"Duplicera",unpublishing:"Avpublicerar...",publishAndCreateNew:"Publicera och skapa ny",publishAndDuplicate:"Publicera och duplicera",deleteUnpublishedChanges:"Radera opublicerade ändringar",deleteUnpublishedEntry:"Radera opublicerat inlägg",deletePublishedEntry:"Radera publicerat inlägg",deleteEntry:"Radera inlägg",saving:"Sparar...",save:"Spara",deleting:"Raderar...",updating:"Updaterar...",status:"Status: %{status}",backCollection:" Redigerar i samlingen %{collectionLabel}",unsavedChanges:"Osparade ändringar",changesSaved:"Ändringar sparade",draft:"Utkast",inReview:"Under granskning",ready:"Redo",publishNow:"Publicera nu",deployPreviewPendingButtonLabel:"Kontrollera förhandsvisning",deployPreviewButtonLabel:"Visa förhandsvisning",deployButtonLabel:"Visa Live"},editorWidgets:{markdown:{bold:"Fetstil",italic:"Kursiv",code:"Kod",link:"Länk",linkPrompt:"Ange en URL för länken",headings:"Rubriker",quote:"Citat",bulletedList:"Punktlista",numberedList:"Numrerad lista",addComponent:"Lägg till komponent",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Välj en bild",chooseUrl:"Infoga från URL",replaceUrl:"Ersätt med URL",promptUrl:"Ange en URL för bilden",chooseDifferent:"Välj en annan bild",remove:"Ta bort bild"},file:{choose:"Välj en fil",chooseUrl:"Infoga från URL",replaceUrl:"Ersätt med URL",promptUrl:"Ange en URL för filen",chooseDifferent:"Välj en annan fil",remove:"Ta bort fil"},unknownControl:{noControl:"Inget reglage för widget '%{widget}'."},unknownPreview:{noPreview:"Ingen förhandsvisning för widget '%{widget}'."},headingOptions:{headingOne:"Rubrik 1",headingTwo:"Rubrik 2",headingThree:"Rubrik 3",headingFour:"Rubrik 4",headingFive:"Rubrik 5",headingSix:"Rubrik 6"},datetime:{now:"Nu",clear:"Rensa"}}},mediaLibrary:{mediaLibraryCard:{draft:"Utkast",copy:"Kopiera",copyUrl:"Kopiera URL",copyPath:"Kopiera Sökväg",copyName:"Kopiera Namn",copied:"Kopierad"},mediaLibrary:{onDelete:"Är du säker på att du vill radera valt mediaobjekt?",fileTooLarge:"Maximal filstorlek överskriden.\nKonfigurerad att inte tillåta filer större än %{size} kB."},mediaLibraryModal:{loading:"Hämtar...",noResults:"Inga resultat.",noAssetsFound:"Hittade inga mediaobjekt.",noImagesFound:"Hittade inga bilder.",private:"Privat ",images:"Bilder",mediaAssets:"Mediaobjekt",search:"Sök...",uploading:"Laddar upp...",upload:"Ladda upp",download:"Ladda ner",deleting:"Raderar...",deleteSelected:"Radera markerad",chooseSelected:"Välj markerad"}},ui:{default:{goBackToSite:"Tillbaka till sida"},errorBoundary:{title:"Fel",details:"Ett fel har uppstått - vänligen ",reportIt:"öppna ett ärende på GitHub.",detailsHeading:"Detaljer",privacyWarning:"När ett ärende öppnas bifogas felsökningsdata automatiskt.\nVänligen kontrollera att informationen är korrekt och ta bort känslig data om det skulle finnas sådan.",recoveredEntry:{heading:"Återskapade dokument",warning:"Vänligen kopiera materialet någon annanstans innan du navigerar från sidan!",copyButtonLabel:"Kopiera till urklipp"}},settingsDropdown:{logOut:"Logga ut"},toast:{onFailToLoadEntries:"Kunde inte hämta inlägg: %{details}",onFailToLoadDeployPreview:"Kunde inte ladda förhandsvisning: %{details}",onFailToPersist:"Kunde inte spara inlägg: %{details}",onFailToDelete:"Kunde inte radera inlägg: %{details}",onFailToUpdateStatus:"Kunde inte uppdatera status: %{details}",missingRequiredField:"Oops, du har missat ett obligatoriskt fält. Vänligen fyll i det innan du sparar.",entrySaved:"Inlägg sparat",entryPublished:"Inlägg publicerat",entryUnpublished:"Inlägg avpublicerat",onFailToPublishEntry:"Kunde inte publicera: %{details}",onFailToUnpublishEntry:"Kunde inte avpublicera inlägg: %{details}",entryUpdated:"Inläggsstatus uppdaterad",onDeleteUnpublishedChanges:"Opublicerade ändringar raderade",onFailToAuth:"%{details}",onLoggedOut:"Du har blivit utloggad, vänligen spara en kopia av eventuella ändringar och logga in på nytt",onBackendDown:"Tjänsten är drabbad av en störning. Se %{details} för mer information"}},workflow:{workflow:{loading:"Hämtar inlägg för redaktionellt arbetsflöde",workflowHeading:"Redaktionellt arbetsflöde",newPost:"Nytt inlägg",description:"%{smart_count} inlägg väntar på granskning, %{readyCount} redo att publiceras. |||| %{smart_count} inlägg väntar på granskning, %{readyCount} redo att publiceras. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} av %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"av %{author}",deleteChanges:"Radera ändringar",deleteNewEntry:"Radera nytt inlägg",publishChanges:"Publicera ändringar",publishNewEntry:"Publicera nytt inlägg"},workflowList:{onDeleteEntry:"Är du säker på att du vill radera det här inlägget?",onPublishingNotReadyEntry:'Bara inlägg med statusen "Redo" kan publiceras. Vänligen dra kortet till "Redo"-kolumnen för att möjliggöra publicering',onPublishEntry:"Är du säker på att du vill publicera det här inlägget?",draftHeader:"Utkast",inReviewHeader:"Under granskning",readyHeader:"Redo",currentEntries:"%{smart_count} inlägg |||| %{smart_count} inlägg"}}}},15340:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"เข้าสู่ระบบ",loggingIn:"กำลังเข้าสู่ระบบ...",loginWithNetlifyIdentity:"เข้าสู่ระบบด้วย Netlify Identity",loginWithBitbucket:"เข้าสู่ระบบด้วย Bitbucket",loginWithGitHub:"เข้าสู่ระบบด้วย GitHub",loginWithGitLab:"เข้าสู่ระบบด้วย GitLab",loginWithGitea:"เข้าสู่ระบบด้วย Gitea",errors:{email:"ตรวจสอบให้แน่ใจว่าได้ใส่อีเมลล์แล้ว",password:"โปรดใส่รหัสผ่านของคุณ",identitySettings:"ไม่สามารถเข้าถึงการตั้งค่าส่วนตัว เมื่อใช้ git-gateway backend ตรวจสอบให้แน่ใจว่าได้เปิดใช้งานระบบยืนยันตัวตนและ Git Gateway."}},app:{header:{content:"เนื้อหา",workflow:"ขั้นตอนการทำงาน",media:"มีเดีย",quickAdd:"เพิ่มเนื้อหา อย่างเร็ว"},app:{errorHeader:"เกิดข้อผิดพลาดในการโหลดการตั้งค่า CMS",configErrors:"คอนฟิกมีข้อผิดพลาด",checkConfigYml:"กรุณาตรวจสอบไฟล์ config.yml ของคุณ",loadingConfig:"กำลังโหลดการตั้งค่า...",waitingBackend:"กำลังรอการตอบกลับจาก backend..."},notFoundPage:{header:"ไม่พบหน้านี้"}},collection:{sidebar:{collections:"กลุ่ม",allCollections:"ทุกกลุ่ม",searchAll:"ค้นหาทั้งหมด",searchIn:"ค้าหาใน"},collectionTop:{sortBy:"จัดเรียงตาม",viewAs:"ดูในฐานะ",newButton:"สร้าง %{collectionLabel}",ascending:"น้อยไปมาก",descending:"มากไปน้อย",searchResults:'ค้นหาผลลัพธ์สำหรับ "%{searchTerm}"',searchResultsInCollection:'ค้นหาผลลัพธ์สำหรับ "%{searchTerm}" ใน %{collection}',filterBy:"กรองตาม"},entries:{loadingEntries:"กำลังโหลดเนิ้อหา...",cachingEntries:"กำลังแคชข้อมูลเนื้อหา...",longerLoading:"อาจจะโหลดนานหลายนาที",noEntries:"ไม่มีเนื้อหา"},defaultFields:{author:{label:"ผู้เขียน"},updatedOn:{label:"อัพเดตเมื่อ"}}},editor:{editorControl:{field:{optional:"ทางเลือก"}},editorControlPane:{widget:{required:"%{fieldLabel} ต้องระบุ",regexPattern:"%{fieldLabel} ไม่ตรงกับรูปแบบ: %{pattern}",processing:"%{fieldLabel} กำลังประมวลผล",range:"%{fieldLabel} ต้องอยู่ระหว่าง %{minValue} และ %{maxValue}",min:"%{fieldLabel} จะต้องมีค่าไม่ต่ำกว่า %{minValue}",max:"%{fieldLabel} จะต้องมีค่าไม่มากกว่า %{maxValue}",rangeCount:"%{fieldLabel} จะต้องอยู่ระหว่าง %{minCount} และ %{maxCount} รายการ",rangeCountExact:"%{fieldLabel} จะต้องมี %{count} รายการ",rangeMin:"%{fieldLabel} จะต้องมีไม่ต่ำกว่า %{minCount} รายการ",rangeMax:"%{fieldLabel} จะต้องมีไม่มากกว่า %{maxCount} รายการ",invalidPath:"'%{path}' พาทไม่ถูกต้อง",pathExists:"พาท '%{path}' มีอยู่แล้ว"},i18n:{writingInLocale:"เขียนด้วยภาษา %{locale}"}},editor:{onLeavePage:"คุณแน่ใจหรือว่าจะออกจากหน้านี้?",onUpdatingWithUnsavedChanges:"คุณมีการเปลี่ยนแปลงที่ยังไม่ได้บันทึก โปรดบันทึกก่อนอัปเดตสถานะ",onPublishingNotReady:'โปรดอัปเดตสถานะเป็น "พร้อม" ก่อนจะเผยแพร่',onPublishingWithUnsavedChanges:"คุณมีการเปลี่ยนแปลงที่ยังไม่ได้บันทึก โปรดบันทึกก่อนจะเผยแพร่",onPublishing:"คุณแน่ใจหรือว่าจะเผยแพร่เนื้อหานี้?",onUnpublishing:"คุณแน่ใจหรือว่าจะไม่ต้องการเผยแพร่เนื้อหานี้?",onDeleteWithUnsavedChanges:"คุณแน่ใจหรือว่าจะต้องการลบการเผยแพร่เนื้อหานี้ รวมถึงการเปลี่ยนแปลงที่ยังไม่ได้บันทึก?",onDeletePublishedEntry:"คุณแน่ใจหรือว่าจะต้องการลบการเผยแพร่เนื้อหานี้?",onDeleteUnpublishedChangesWithUnsavedChanges:"คุณแน่ใจหรือว่าจะต้องการลบเนื้อหาที่ยังไม่ได้เผยแพร่ทั้งหมดนี้ รวมถึงการเปลี่ยนแปลงที่ยังไม่ได้บันทึก?",onDeleteUnpublishedChanges:"คุณแน่ใจหรือว่าจะต้องการลบเนื้อหาที่ยังไม่ได้เผยแพร่ทั้งหมดนี้?",loadingEntry:"กำลังโหลดเนื้อหา...",confirmLoadBackup:"ข้อมูลสำรองได้ถูกกู้คืนสำหรับเนื้อหานี้ คุณต้องการใช้มันไหม?"},editorToolbar:{publishing:"กำลังเผยแพร่...",publish:"เผยแพร่",published:"เผยแพร่แล้ว",unpublish:"ไม่ได้เผยแพร่",duplicate:"ทำซ้ำ",unpublishing:"ไม่ทำการเผยแพร่...",publishAndCreateNew:"เผยแพร่ และ สร้างใหม่",publishAndDuplicate:"เผยแพร่ และ ทำซ้ำ",deleteUnpublishedChanges:"ลบการเปลี่ยแปลงเนื้อหาที่ยังไม่ได้เผยแพร่",deleteUnpublishedEntry:"ลบเนื้อหาที่ยังไม่ได้เผยแพร่",deletePublishedEntry:"ลบเนื้อหาที่เผยแพร่",deleteEntry:"ลบเนื้อหา",saving:"กำลังบันทึก...",save:"บันทึก",deleting:"กำลังลบ...",updating:"กำลังอัปเดต...",status:"สถานะ: %{status}",backCollection:" เขียนในกลุ่ม %{collectionLabel}",unsavedChanges:"การเปลี่ยนแปลงยังไม่ได้บันทึก",changesSaved:"การเปลี่ยนเปลงถูกบันทึกแล้ว",draft:"ร่าง",inReview:"อยู่ระหว่างการตรวจสอบ",ready:"พร้อม",publishNow:"เผยแพร่ตอนนี้",deployPreviewPendingButtonLabel:"ตรวจสอบตัวอย่าง",deployPreviewButtonLabel:"ดูตัวอย่าง",deployButtonLabel:"ดูตัวอย่างจากหน้าจริง"},editorWidgets:{markdown:{richText:"Rich Text",markdown:"Markdown"},image:{choose:"เลือกรูปภาพ",chooseDifferent:"เลือกรูปภาพอื่น",remove:"เอารูปภาพออก"},file:{choose:"เลือกไฟล์",chooseDifferent:"เลือกไฟล์อื่น",remove:"เอาไฟล์ออก"},unknownControl:{noControl:"ไม่มีการควบคุม widget '%{widget}'."},unknownPreview:{noPreview:"ไม่มีตัวอย่างสำหรับ widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"เวลาตอนนี้",clear:"ล้าง"}}},mediaLibrary:{mediaLibraryCard:{draft:"ร่าง"},mediaLibrary:{onDelete:"คุณแน่ใจหรือว่าจะลบมีเดียที่ถูกเลือก?",fileTooLarge:"ไฟล์ใหญ่เกินไป\n ค่าที่ตั้งไว้ไม่ยอมรับไฟล์ที่ใหญ่กว่า %{size} kB."},mediaLibraryModal:{loading:"กำลังโหลด...",noResults:"ไม่มีผลลัพธ์",noAssetsFound:"ไม่พบข้อมูล",noImagesFound:"ไม่พบรูปภาพ",private:"ส่วนตัว ",images:"รูปภาพ",mediaAssets:"ข้อมูลมีเดีย",search:"ค้นหา...",uploading:"กำลังอัปโหลด...",upload:"อัปโหลด",download:"ดาวน์โหลด",deleting:"กำลังลบ...",deleteSelected:"ลบข้อมูลที่เลือก",chooseSelected:"เลือกข้อมูลที่ถูกเลือก"}},ui:{default:{goBackToSite:"กลับไปยังเว็บไซต์"},errorBoundary:{title:"มีข้อผิดพลาด",details:"มีข้อผิดพลาดเกิดขึ้น",reportIt:"แจ้งข้อผิดพลาดบน GitHub",detailsHeading:"รายละเอียด",privacyWarning:"การแจ้งปัญหาจะเติมข้อมูลล่วงหน้าด้วยข้อความแสดงข้อผิดพลาดและข้อมูลการดีบัก\nโปรดตรวจสอบข้อมูลว่าถูกต้องและลบข้อมูลที่สำคัญหากมีอยู่",recoveredEntry:{heading:"เอกสารถูกกู้คืน",warning:"โปรด คัดลอก/วาง ที่ใดที่หนึ่งก่อนจะทำอย่างอื่น!",copyButtonLabel:"คัดลอกไปที่คลิปบอร์ด"}},settingsDropdown:{logOut:"ออกจากระบบ"},toast:{onFailToLoadEntries:"ล้มเหลวในการโหลดเนื้อหา: %{details}",onFailToLoadDeployPreview:"ล้มเหลวในการโหลดตัวอย่าง: %{details}",onFailToPersist:"ล้มเหลวในการยืนยันเนื้อหา: %{details}",onFailToDelete:"ล้มเหลวในการลบเนื้อหา: %{details}",onFailToUpdateStatus:"ล้มเหลวในการอัปเดตสถานะ: %{details}",missingRequiredField:"คุณไม่ได้ใส่ข้อมูลในช่องที่ต้องการ กรุณาใส่ข้อมูลก่อนบันทึก",entrySaved:"เนื้อหาถูกบันทึก",entryPublished:"เนื้อหาถูกเผยแพร่",entryUnpublished:"เนื้อหาไม่ได้ถูกเผยแพร่",onFailToPublishEntry:"ล้มเหลวในการเผยแพร่เนื้อหา: %{details}",onFailToUnpublishEntry:"ล้มเหลวในการไม่เผยแพร่เนื้อหา: %{details}",entryUpdated:"สถานะเนื้อหาถูกอัปเดต",onDeleteUnpublishedChanges:"การเปลี่ยนแปลงเนื้อหาไม่ถูกเผยแพร่ได้ถูกลบ",onFailToAuth:"%{details}",onLoggedOut:"คุณได้ออกจากระบบ โปรดสำรองข้อมูลแล้วเข้าสู่ระบบอีกครั้ง",onBackendDown:"บริการแบ็กเอนด์เกิดการขัดข้อง ดู %{details} สำหรับข้อมูลเพิ่มเติม"}},workflow:{workflow:{loading:"กำลังโหลดเนื้อหาขั้นตอนการทำงานของบรรณาธิการ",workflowHeading:"ขั้นตอนการทำงานของบรรณาธิการ",newPost:"สร้างโพสต์ใหม่",description:"%{smart_count} เนื้อหารอการตรวจสอบ, %{readyCount} พร้อมที่จะเผยแพร่ ่",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} โดย %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"โดย %{author}",deleteChanges:"ลบการเปลี่ยนแปลง",deleteNewEntry:"ลบเนื้อหาใหม่",publishChanges:"เผยแพร่การเปลี่ยนแปลง",publishNewEntry:"เผยแพร่เนื้อหาใหม่"},workflowList:{onDeleteEntry:"คุณแน่ใจหรือว่าจะต้องการลบเนื้อหานี้?",onPublishingNotReadyEntry:'เฉพาะรายการที่มีสถานะ "พร้อม" สามารถทำการเผยแพร่ โปรดลากเนื้อหาไปยังช่อง "พร้อม" เพื่อจะทำการเผยแพร่.',onPublishEntry:"คุณแน่ใจหรือว่าจะต้องการเผยแพร่เนื้อหานี้?",draftHeader:"ร่าง",inReviewHeader:"อยู่ในการตรวจสอบ",readyHeader:"พร้อม",currentEntries:"%{smart_count} เนื้อหา"}}}},95093:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Giriş",loggingIn:"Giriş yapılıyor..",loginWithNetlifyIdentity:"Netlify Identity ile Giriş",loginWithAzure:"Azure ile Giriş",loginWithBitbucket:"Bitbucket ile Giriş",loginWithGitHub:"GitHub ile Giriş",loginWithGitLab:"GitLab ile Giriş",loginWithGitea:"Gitea ile Giriş",errors:{email:"E-postanızı girdiğinizden emin olun.",password:"Lütfen şifrenizi girin.",identitySettings:"Identity ayarlarına erişilemiyor. Git-gateway sunucusunu kullanmak için Identity servisi ve Git Gateway'in etkin olduğundan emin olun."}},app:{header:{content:"İçerikler",workflow:"İş Akışı",media:"Medya",quickAdd:"Hızlı ekle"},app:{errorHeader:"CMS yapılandırması yüklenirken hata oluştu",configErrors:"Yapılandırma Hataları",checkConfigYml:"config.yml dosyanızı kontrol edin.",loadingConfig:"Yapılandırma yükleniyor...",waitingBackend:"Arka uç bekleniyor..."},notFoundPage:{header:"Bulunamadı"}},collection:{sidebar:{collections:"Koleksiyonlar",allCollections:"Bütün Koleksiyonlar",searchAll:"Tümünü ara",searchIn:"İçinde ara"},collectionTop:{sortBy:"Sırala ...",viewAs:"Görüntüle",newButton:"Yeni %{collectionLabel}",ascending:"Artan",descending:"Azalan",searchResults:'"%{searchTerm}" için Arama Sonuçları',searchResultsInCollection:'%{collection} koleksiyonunda, "%{searchTerm}" için Arama Sonuçları',filterBy:"Filtrele",groupBy:"Grupla"},entries:{loadingEntries:"Girdiler yükleniyor...",cachingEntries:"Girdi önbelleği...",longerLoading:"Bu birkaç dakika sürebilir",noEntries:"Hiç Girdi Yok"},groups:{other:"Diğer",negateLabel:"%{label} hariç"},defaultFields:{author:{label:"Yazar"},updatedOn:{label:"Güncellenme Tarihi"}}},editor:{editorControl:{field:{optional:"isteğe bağlı"}},editorControlPane:{widget:{required:"%{fieldLabel} gerekli.",regexPattern:"%{fieldLabel} eşleşmeyen kalıp: %{pattern}.",processing:"%{fieldLabel} işleniyor.",range:"%{fieldLabel} %{minValue} ve %{maxValue} arasında olmalı.",min:"%{fieldLabel} en az %{minValue} olmalı.",max:"%{fieldLabel}, %{maxValue} veya daha az olmalı.",rangeCount:"%{fieldLabel}, %{minCount} ve %{maxCount} öğeleri arasında olmalı.",rangeCountExact:"%{fieldLabel}, %{count} öğe olmalıdır.",rangeMin:"%{fieldLabel}, en az %{minCount} öğe olmalıdır.",rangeMax:"%{fieldLabel}, %{maxCount} veya daha az öğe olmalıdır.",invalidPath:"'%{path}' geçerli bir yol değil",pathExists:"'%{path}' yolu zaten var"},i18n:{writingInLocale:"%{locale} için yazılıyor",copyFromLocale:"Başka bir dilden doldurun",copyFromLocaleConfirm:"Verileri %{locale} dilinden mi doldurmak istiyorsun?\nVarolan bütün verilerin üzerine yazılacak."}},editor:{onLeavePage:"Bu sayfadan ayrılmak istediğinize emin misiniz?",onUpdatingWithUnsavedChanges:"Kaydedilmemiş değişiklikleriniz var, lütfen içeriği güncellemeden önce kaydedin.",onPublishingNotReady:'Lütfen yayınlamadan önce içeriği "Hazır" olarak güncelleyin.',onPublishingWithUnsavedChanges:"Kaydedilmemiş değişiklikleriniz var, lütfen yayınlamadan önce kaydedin.",onPublishing:"Bu girdiyi yayınlamak istediğinize emin misiniz?",onUnpublishing:"Bu girdiyi yayından kaldırmak istediğinizden emin misiniz?",onDeleteWithUnsavedChanges:"Bu oturumda kaydedilmiş değişikliklerin yanı sıra geçerli oturumdaki kaydedilmemiş değişikliklerinizi silmek istediğinize emin misiniz?",onDeletePublishedEntry:"Bu yayınlanmış girdiyi silmek istediğinize emin misiniz?",onDeleteUnpublishedChangesWithUnsavedChanges:"Bu girdide yayınlanmamış tüm değişiklikleri ve geçerli oturumdaki kaydedilmemiş değişikliklerinizi siler. Hala silmek istiyor musun?",onDeleteUnpublishedChanges:"Bu girdide yayınlanmamış tüm değişiklikler silinecek. Hala silmek istiyor musun?",loadingEntry:"Girdiler yükleniyor...",confirmLoadBackup:"Bu girdi için yerel bir yedekleme kurtarıldı, kullanmak ister misiniz?"},editorInterface:{toggleI18n:"i18n değiştir",togglePreview:"Önizlemeyi değiştir",toggleScrollSync:"Kaydırmayı senkronize et"},editorToolbar:{publishing:"Yayınlanıyor...",publish:"Yayınla",published:"Yayınlanan",unpublish:"Yayından Kaldır",duplicate:"Kopyala",unpublishing:"Yayından kaldırılıyor...",publishAndCreateNew:"Yayınla ve yeni oluştur",publishAndDuplicate:"Yayınla ve kopya oluştur",deleteUnpublishedChanges:"Yayımlanmamış değişiklikleri sil",deleteUnpublishedEntry:"Yayımlanmamış girdiyi sil",deletePublishedEntry:"Yayınlanan girdiyi sil",deleteEntry:"Girdiyi sil",saving:"Kaydediliyor...",save:"Kaydet",statusInfoTooltipDraft:"Giriş durumu taslak olarak ayarlandı. Girişi bitirmek ve incelemeye göndermek için giriş durumunu ‘İncelemede’ olarak ayarlayın",statusInfoTooltipInReview:"Giriş gözden geçiriliyor, başka bir işlem yapılmasına gerek yok. Ancak, incelenirken yine de ek değişiklikler yapabilirsiniz.",deleting:"Siliniyor...",updating:"Güncelleniyor...",status:"Durumu: %{status}",backCollection:" %{collectionLabel} koleksiyonunda yazılı",unsavedChanges:"Kaydedilmemiş Değişiklikler",changesSaved:"Değişiklikler kaydedildi",draft:"Taslak",inReview:"İncelemede",ready:"Hazır",publishNow:"Şimdi yayımla",deployPreviewPendingButtonLabel:"Önizlemeyi Denetle",deployPreviewButtonLabel:"Önizlemeyi Görüntüle",deployButtonLabel:"Canlı Görüntüle"},editorWidgets:{markdown:{bold:"Kalın",italic:"İtalik",code:"Kod",link:"Bağlantı",linkPrompt:"Bağlantının URL'sini girin",headings:"Başlıklar",quote:"Alıntı",bulletedList:"Maddeli Liste",numberedList:"Numaralı Liste",addComponent:"Bileşen Ekle",richText:"Zengin Metin",markdown:"Markdown"},image:{choose:"Bir resim seçin",chooseUrl:"URL'den ekle",replaceUrl:"URL ile değiştir",promptUrl:"Resmin URL'sini girin",chooseDifferent:"Farklı bir resim seçin",remove:"Resmi kaldır"},file:{choose:"Bir dosya seçin",chooseUrl:"URL'den ekle",replaceUrl:"URL ile değiştir",promptUrl:"Dosyanın URL'sini girin",chooseDifferent:"Farklı bir dosya seçin",remove:"Dosyayı kaldır"},unknownControl:{noControl:"'%{widget}' bileşeni için kontrol yok."},unknownPreview:{noPreview:"'%{widget}' bileşeni için önizleme yok."},headingOptions:{headingOne:"Başlık 1",headingTwo:"Başlık 2",headingThree:"Başlık 3",headingFour:"Başlık 4",headingFive:"Başlık 5",headingSix:"Başlık 6"},datetime:{now:"Şimdi",clear:"Temizle"},list:{add:"%{item} Ekle",addType:"%{item} Ekle"}}},mediaLibrary:{mediaLibraryCard:{draft:"Taslak",copy:"Kopyala",copyUrl:"URLyi Kopyala",copyPath:"Dosya Yolunu Kopyala",copyName:"Adını Kopyala",copied:"Kopyalandı"},mediaLibrary:{onDelete:"Seçilen medyayı silmek istediğinize emin misiniz?",fileTooLarge:"Dosya çok büyük.\n%{size} kilobaytdan daha büyük dosyaların yüklenmemesi için ayarlanmış."},mediaLibraryModal:{loading:"Yükleniyor...",noResults:"Sonuç yok.",noAssetsFound:"Hiçbir dosya bulunamadı.",noImagesFound:"Resim bulunamadı.",private:"Özel ",images:"Görseller",mediaAssets:"Medya dosyaları",search:"Ara...",uploading:"Yükleniyor...",upload:"Yükle",download:"İndir",deleting:"Siliniyor...",deleteSelected:"Seçileni sil",chooseSelected:"Seçileni kullan"}},ui:{default:{goBackToSite:"Siteye geri git"},errorBoundary:{title:"Hata",details:"Bir hata oluştu - lütfen ",reportIt:"GitHub üzerinde hata raporu aç.",detailsHeading:"Ayrıntılar",privacyWarning:"Bir hata raporu oluşturmak için gereken form otomatik olarak hata mesajı ve hata ayıklama verileriyle doldurulur.\nLütfen bilgilerin doğru olduğunu doğrulayın ve varsa hassas verileri kaldırın.",recoveredEntry:{heading:"Kurtarılan belge",warning:"Lütfen gitmeden önce bunu bir yere kopyalayın / yapıştırın!",copyButtonLabel:"Panoya kopyala"}},settingsDropdown:{logOut:"Çıkış Yap"},toast:{onFailToLoadEntries:"Girdi yüklenemedi: %{details}",onFailToLoadDeployPreview:"Önizleme yüklenemedi: %{details}",onFailToPersist:"Girdi devam ettirilemedi: %{details}",onFailToDelete:"Girdi silinemedi: %{details}",onFailToUpdateStatus:"Durum güncellenemedi: %{details}",missingRequiredField:"Gerekli bir alan eksik. Lütfen kaydetmeden önce tamamlayın.",entrySaved:"Girdi kaydedildi",entryPublished:"Girdi yayınlandı",entryUnpublished:"Girdi yayınlanmamış",onFailToPublishEntry:"Yayınlanamadı: %{details}",onFailToUnpublishEntry:"Girdi yayından kaldırılamadı: %{details}",entryUpdated:"Girdi durumu güncellendi",onDeleteUnpublishedChanges:"Yayımlanmamış değişiklikler silindi",onFailToAuth:"%{details}",onLoggedOut:"Çıkış yaptınız, lütfen tüm verileri yedekleyin ve tekrar giriş yapın",onBackendDown:"Arka uç hizmetinde bir kesinti yaşanıyor. Daha fazla bilgi için %{details} gör"}},workflow:{workflow:{loading:"İş Akışı Girdileri Yükleniyor",workflowHeading:"Editoryal İş Akışı",newPost:"Yeni Mesaj",description:"%{smart_count} girdi incelemeyi bekliyor, %{readyCount} yayına hazır. |||| %{smart_count} girdi incelemeyi bekliyor, %{readyCount} yayınlanmaya hazır. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} tarafından %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author} tarafından",deleteChanges:"Değişiklikleri sil",deleteNewEntry:"Yeni girdiyi sil",publishChanges:"Değişiklikleri yayınla",publishNewEntry:"Yeni girdi yayınla"},workflowList:{onDeleteEntry:"Bu girdiyi silmek istediğinize emin misiniz?",onPublishingNotReadyEntry:'Yalnızca "Hazır" durumu olan öğeler yayınlanabilir. Lütfen yayınlamayı etkinleştirmek için kartı "Hazır" sütununa sürükleyin.',onPublishEntry:"Bu girdiyi yayınlamak istediğinize emin misiniz?",draftHeader:"Taslaklar",inReviewHeader:"İncelemede",readyHeader:"Hazır",currentEntries:"%{smart_count} girdi |||| %{smart_count} girdiler"}}}},57722:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Увійти",loggingIn:"Вхід...",loginWithNetlifyIdentity:"Увійти через Netlify Identity",loginWithAzure:"Увійти через Azure",loginWithBitbucket:"Увійти через Bitbucket",loginWithGitHub:"Увійти через GitHub",loginWithGitLab:"Увійти через GitLab",loginWithGitea:"Увійти через Gitea",errors:{email:"Введіть ваш email.",password:"Введіть пароль.",identitySettings:"Немає доступу до налаштувань. Якщо використовуєте git-gateway, переконайтеся, що включили Identity service та Git Gateway."}},app:{header:{content:"Записи",workflow:"Документообіг",media:"Медіафайли",quickAdd:"Швидке додавання"},app:{errorHeader:"Помилка завантаження конфігурації CMS",configErrors:"Помилки конфігурації",checkConfigYml:"Перевірте свій config.yml файл.",loadingConfig:"Завантаження конфігурації...",waitingBackend:"Очікування відповіді від бекенду..."},notFoundPage:{header:"Не знайдено"}},collection:{sidebar:{collections:"Колекції",allCollections:"Всі колекції",searchAll:"Шукати всюди",searchIn:"Шукати в"},collectionTop:{sortBy:"Сортувати за",viewAs:"Вигляд",newButton:"Створити %{collectionLabel}",ascending:"За зростанням",descending:"За спаданням",searchResults:'Результати по запиту "%{searchTerm}"',searchResultsInCollection:'Результати по запиту "%{searchTerm}" в %{collection}',filterBy:"Фільтрувати за",groupBy:"Групувати за"},entries:{loadingEntries:"Завантаження записів...",cachingEntries:"Кешування записів...",longerLoading:"Це може зайняти деякий час",noEntries:"Немає записів"},groups:{other:"Інша",negateLabel:"Не %{label}"},defaultFields:{author:{label:"Автор"},updatedOn:{label:"Оновлено"}}},editor:{editorControl:{field:{optional:"необов’язковий"}},editorControlPane:{widget:{required:"Необхідно вказати значення поля %{fieldLabel}.",regexPattern:"Значення поля %{fieldLabel} не відповідає шаблону: %{pattern}.",processing:"Значення поля %{fieldLabel} обробляється…",range:"Значення поля %{fieldLabel} повинно бути між %{minValue} і %{maxValue}.",min:"Значення поля %{fieldLabel} повинно бути не менше %{minValue}.",max:"Значення поля %{fieldLabel} повинно бути %{maxValue} або менше.",rangeCount:"%{fieldLabel} повинно містити від %{minCount} до %{maxCount} елементів.",rangeCountExact:"%{fieldLabel} повинно містити строго %{count} елементів.",rangeMin:"%{fieldLabel} повинно містити не менше %{minCount} елементів.",rangeMax:"%{fieldLabel} повинно містити %{maxCount} або менше елементів.",invalidPath:"Шлях '%{path}' містить помилки",pathExists:"Шлях '%{path}' вже існує"},i18n:{writingInLocale:"Пишемо на %{locale}"}},editor:{onLeavePage:"Ви впевнені, що хочете залишити цю сторінку?",onUpdatingWithUnsavedChanges:"У вас є незбережені зміни, будь ласка, збережіть їх перед оновленням статусу.",onPublishingNotReady:"Будь ласка, змініть статус на «Готово» перед публікацією.",onPublishingWithUnsavedChanges:"У вас є незбережені зміни, будь ласка, збережіть їх перед публікацією.",onPublishing:"Ви впевнені, що хочете опублікувати цей запис?",onUnpublishing:"Ви впевнені, що хочете скасувати публікацію цієї записи?",onDeleteWithUnsavedChanges:"Ви впевнені, що хочете видалити цю опубліковану запис, а також незбережені зміни з поточного сеансу?",onDeletePublishedEntry:"Ви впевнені, що хочете видалити цю опубліковану запис?",onDeleteUnpublishedChangesWithUnsavedChanges:"Це видалить всі неопубліковані зміни в цій записі, а також ваші незбережені зміни з поточного сеансу. Ви все ще хочете видалити?",onDeleteUnpublishedChanges:"Всі неопубліковані зміни в цій записі будуть видалені. Ви все ще хочете видалити?",loadingEntry:"Завантаження запису ...",confirmLoadBackup:"Для цієї запису була відновлена локальна резервна копія, хочете використовувати її?"},editorToolbar:{publishing:"Публікація...",publish:"Опублікувати",published:"Опубліковано",unpublish:"Скасувати публікацію",duplicate:"Дублювати",unpublishing:"Скасування публікації...",publishAndCreateNew:"Опублікувати і створити нову",publishAndDuplicate:"Опублікувати і дублювати",deleteUnpublishedChanges:"Видалити неопубліковані зміни",deleteUnpublishedEntry:"Видалити неопубліковану запис",deletePublishedEntry:"Видалити опубліковану запис",deleteEntry:"Видалити запис",saving:"Збереження...",save:"Зберегти",deleting:"Видалення...",updating:"Оновлення...",status:"Статус: %{status}",backCollection:"Запис в колекцію %{collectionLabel}",unsavedChanges:"Незбережені зміни",changesSaved:"Зміни збережені",draft:"Чернетка",inReview:"На розгляді",ready:"Готово до публікації",publishNow:"Опублікувати зараз",deployPreviewPendingButtonLabel:"Перевірити попередній перегляд",deployPreviewButtonLabel:"Попередній перегляд",deployButtonLabel:"Перегляд"},editorWidgets:{markdown:{bold:"Напівжирний",italic:"Курсив",code:"Код",link:"Посилання",linkPrompt:"Введіть URL посилання",headings:"Заголовки",quote:"Цитата",bulletedList:"Маркований список",numberedList:"Нумерований список",addComponent:"Додати компонент",richText:"Форматований текст",markdown:"Markdown"},image:{choose:"Обрати зображення",chooseUrl:"Вставити з URL",replaceUrl:"Замінити на URL",promptUrl:"Введіть URL зображення",chooseDifferent:"Обрати інше зображення",remove:"Видалити зображення"},file:{choose:"Обрати файл",chooseUrl:"Вставити з URL",replaceUrl:"Замінити на URL",promptUrl:"Введіть URL файлу",chooseDifferent:"Обрати інший файл",remove:"Видалити файл"},unknownControl:{noControl:"Немає контролу для віджета '%{widget}'."},unknownPreview:{noPreview:"Немає попереднього перегляду для віджета '%{widget}'."},headingOptions:{headingOne:"Заголовок 1",headingTwo:"Заголовок 2",headingThree:"Заголовок 3",headingFour:"Заголовок 4",headingFive:"Заголовок 5",headingSix:"Заголовок 6"},datetime:{now:"Зараз"}}},mediaLibrary:{mediaLibraryCard:{draft:"Чорновик",copy:"Копіювати",copyUrl:"Копіювати URL",copyPath:"Копіювати шлях",copyName:"Копіювати ім’я",copied:"Скопійовано"},mediaLibrary:{onDelete:"Ви впевнені, що хочете видалити вибраний медіафайл?",fileTooLarge:"Файл занадто великий.\nНалаштування не дозволяють зберігати файли більше %{size} kB."},mediaLibraryModal:{loading:"Завантаження медіафайлів…",noResults:"Немає результатів.",noAssetsFound:"Ресурси не знайдені.",noImagesFound:"Зображення не знайдені.",private:"Приватні ",images:"Зображення",mediaAssets:"Медіаресурси",search:"Йде пошук…",uploading:"Завантаження…",upload:"Завантажити новий",download:"Завантажити",deleting:"Видалення…",deleteSelected:"Видалити позначені",chooseSelected:"Вибрати позначені"}},ui:{default:{goBackToSite:"Повернутися на сайт"},errorBoundary:{title:"Помилка",details:"Сталася помилка. Будь ласка, ",reportIt:"повідомте про неї.",detailsHeading:"Деталі",privacyWarning:"При відкритті тікету автоматично заповнюється повідомленням про помилку та відлагоджувальною інформацією.\nБудь ласка, перевірте, що дані є вірними та не містять конфіденційної інформації.",recoveredEntry:{heading:"Відновлений документ",warning:"Будь ласка, скопіюйте це повідомлення кудись, перед тим як залишити сторінку!",copyButtonLabel:"Скопіювати до буферу обміну"}},settingsDropdown:{logOut:"Вийти"},toast:{onFailToLoadEntries:"Не вдалося завантажити запис: %{details}",onFailToLoadDeployPreview:"Не вдалося завантажити попередній перегляд: %{details}",onFailToPersist:"Не вдалося зберегти запис: %{details}",onFailToDelete:"Не вдалося видалити запис: %{details}",onFailToUpdateStatus:"Не вдалося оновити статус: %{details}",missingRequiredField:"На жаль, ви пропустили обов'язкове поле. Будь ласка, заповніть перед збереженням.",entrySaved:"Запис збережений",entryPublished:"Запис опублікований",entryUnpublished:"Публікація запису скасована",onFailToPublishEntry:"Не вдалося опублікувати запис: %{details}",onFailToUnpublishEntry:"Не вдалося скасувати публікацію запису: %{details}",entryUpdated:"Статус запису оновлено",onDeleteUnpublishedChanges:"Неопубліковані зміни видалені",onFailToAuth:"%{details}",onLoggedOut:"Ви вийшли. Будь ласка, збережіть усі дані та увійдіть знову",onBackendDown:"Трапилися збої в роботі бекенду. Див. %{details}"}},workflow:{workflow:{loading:"Завантаження записів редакційного документообігу",workflowHeading:"Редакційний документообіг",newPost:"Новий запис",description:"Кількість записів, очікуючих перевірки - %{smart_count}, готових до публікації - %{readyCount}. |||| Кількість записів, очікуючих перевірки - %{smart_count}, готових до публікації - %{readyCount}.",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Видалити зміни",deleteNewEntry:"Видалити новий запис",publishChanges:"Опублікувати зміни",publishNewEntry:"Опублікувати новий запис"},workflowList:{onDeleteEntry:"Ви впевнені, що хочете видалити цей запис?",onPublishingNotReadyEntry:'Лише елементи зі статусом "Готово" можуть бути опубліковані. Перетягніть картку в стовпчик "Схвалено", щоб дозволити публікацію.',onPublishEntry:"Ви впевнені, що хочете опублікувати цей запис?",draftHeader:"Чернетки",inReviewHeader:"На розгляді",readyHeader:"Схвалено",currentEntries:"%{smart_count} запис |||| %{smart_count} записів"}}}},72872:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={app:{header:{content:"Зміст",workflow:"Робочий процес",media:"Медіа",quickAdd:"Додати"},app:{errorHeader:"Помилка завантаження конфігурації",configErrors:"Помилка конфігурації",checkConfigYml:"Перевірте config.yml файл.",loadingConfig:"Завантаження конфігурації...",waitingBackend:"Очікування серверу..."},notFoundPage:{header:"Сторінку не знайдено "}},collection:{sidebar:{collections:"Колекції",searchAll:"Пошук"},collectionTop:{viewAs:"Змінити вигляд",newButton:"Створити %{collectionLabel}"},entries:{loadingEntries:"Завантаження записів",cachingEntries:"Кешування записів",longerLoading:"Це може зайняти декілька хвилинок"}},editor:{editorControl:{field:{optional:"необов’язково"}},editorControlPane:{widget:{required:"%{fieldLabel} є обов'язковим.",regexPattern:"%{fieldLabel} не задовільняє умові: %{pattern}.",processing:"обробляється %{fieldLabel}.",range:"значення %{fieldLabel} повинне бути від %{minValue} до %{maxValue}.",min:"значення %{fieldLabel} має бути від %{minValue}.",max:"значення %{fieldLabel} має бути %{maxValue} та менше."}},editor:{onLeavePage:"Ви дійсно бажаєте залишити сторінку?",onUpdatingWithUnsavedChanges:"Присутні незбережені зміни, будь ласка збережіть перед зміною статусу.",onPublishingNotReady:'Будь ласка, встановіть статус "Готово" перед публікацією.',onPublishingWithUnsavedChanges:"Присутні незбережені зміни, будь ласка збережіть їх перед публікацією.",onPublishing:"Ви дійсно бажаєте опублікувати запис?",onDeleteWithUnsavedChanges:"Ви дійсно бажаєте видалити опублікований запис, як і всі незбережені зміни під час поточної сесії?",onDeletePublishedEntry:"Ви дійсно бажаєте видалити опублікований запис?",onDeleteUnpublishedChangesWithUnsavedChanges:"Видаляться всі неопубліковані зміни до цього запису, а також всі незбережені зміни під час поточної сесії. Бажаєте продовжити?",onDeleteUnpublishedChanges:"Всі незбережені зміни до цього запису буде видалено. Бажаєте продовжити?",loadingEntry:"Завантаження...",confirmLoadBackup:"Відновлено резервну копію, бажаєте її використати?"},editorToolbar:{publishing:"Публікація...",publish:"Опублікувати",published:"Опубліковано",publishAndCreateNew:"Опублікувати і створити нову",deleteUnpublishedChanges:"Видалити неопубліковані зміни",deleteUnpublishedEntry:"Видалити неопубліковану сторінку",deletePublishedEntry:"Видалити опубліковану сторінку",deleteEntry:"Видалити",saving:"Збереження...",save:"Зберегти",deleting:"Видалення...",updating:"Оновлення...",status:"Cтан: %{status}",backCollection:" Робота над %{collectionLabel} колекцією",unsavedChanges:"Незбережені зміни",changesSaved:"Зміни збережено",draft:"В роботі",inReview:"На розгляді",ready:"Готово",publishNow:"Опублікувати",deployPreviewPendingButtonLabel:"Перевірити оновлення",deployPreviewButtonLabel:"Попередній перегляд",deployButtonLabel:"Переглянути наживо"},editorWidgets:{image:{choose:"Виберіть зображення",chooseDifferent:"Виберіть інше зображення",remove:"Видалити зображення"},file:{choose:"Виберіть файл",chooseDifferent:"Виберіть інший файл",remove:"Видалити файл"},unknownControl:{noControl:"Відсутній модуль для '%{widget}'."},unknownPreview:{noPreview:"Відсутній перегляд для '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"}}},mediaLibrary:{mediaLibraryCard:{draft:"В роботі"},mediaLibrary:{onDelete:"Ви дійсно бажаєте видалити обрані матеріали?"},mediaLibraryModal:{loading:"Завантаження...",noResults:"Результати відсутні.",noAssetsFound:"Матеріали відсутні.",noImagesFound:"Зображення відсутні.",private:"Private ",images:"Зображення",mediaAssets:"Медіа матеріали",search:"Пошук...",uploading:"Завантаження...",upload:"Завантажити",deleting:"Видалення...",deleteSelected:"Видалити обране",chooseSelected:"Додати обране"}},ui:{errorBoundary:{title:"Помилка",details:"Відбулась помилка - будь ласка ",reportIt:"надішліть нам деталі.",detailsHeading:"Деталі",recoveredEntry:{heading:"Відновлено документ",warning:"Будь ласка, збережіть це десь перед тим як піти!",copyButtonLabel:"Скопіювати в буфер"}},settingsDropdown:{logOut:"Вихід"},toast:{onFailToLoadEntries:"Помилка завантаження: %{details}",onFailToLoadDeployPreview:"Помилка завантаження перегляду: %{details}",onFailToPersist:"Помилка перезапису: %{details}",onFailToDelete:"Помилка видалення: %{details}",onFailToUpdateStatus:"Помилка оновлення статусу: %{details}",missingRequiredField:"Йой, здається пропущено обов'язкове поле. Будь ласка, заповніть перед збереженням.",entrySaved:"Збережено",entryPublished:"Опубліковано",onFailToPublishEntry:"Помилка публікації: %{details}",entryUpdated:"Статус оновлено",onDeleteUnpublishedChanges:"Видалено неопубліковані зміни",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Завантаження редакційних матеріалів",workflowHeading:"Редакція",newPost:"Новий запис",description:"%{smart_count} записів очікують розгляду, %{readyCount} готові до публікації. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} від %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"від %{author}",deleteChanges:"Видалити зміни",deleteNewEntry:"Видалити новий запис",publishChanges:"Опублікувати всі зміни",publishNewEntry:"Опублікувати новий запис"},workflowList:{onDeleteEntry:"Ви дійсно бажаєте видалити запис?",onPublishingNotReadyEntry:'Тільки елементи з статусом "Готово" можуть бути опубліковані. Будь ласка перемістіть картку в колонку "Готово" для публікації.',onPublishEntry:"Дійсно бажаєте опублікувати запис?",draftHeader:"В роботі",inReviewHeader:"На розгляді",readyHeader:"Готово",currentEntries:"%{smart_count} запис |||| %{smart_count} записів"}}}},3409:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Đăng nhập",loggingIn:"Đang đăng nhập...",loginWithNetlifyIdentity:"Đăng nhập bằng Netlify Identity",loginWithBitbucket:"Đăng nhập bằng Bitbucket",loginWithGitHub:"Đăng nhập bằng GitHub",loginWithGitLab:"Đăng nhập bằng GitLab",loginWithGitea:"Đăng nhập bằng Gitea",errors:{email:"Hãy nhập email của bạn.",password:"Hãy nhập mật khẩu của bạn.",identitySettings:"Không thể truy cập thiêt lập danh tính. Hãy chắc chắn rằng bạn đã bật dịch vụ Identity và Git Gateway khi sử dụng git-gateway."}},app:{header:{content:"Nội dung",workflow:"Biên tập",media:"Tập tin",quickAdd:"Tạo nhanh"},app:{errorHeader:"Xảy ra lỗi khi tải cấu hình CMS",configErrors:"Lỗi cấu hình",checkConfigYml:"Kiểm tra lại file config.yml của bạn.",loadingConfig:"Đang tải cấu hình...",waitingBackend:"Đang chờ backend..."},notFoundPage:{header:"Không tìm thấy"}},collection:{sidebar:{collections:"Bộ sưu tập",allCollections:"Tất cả bộ sưu tập",searchAll:"Tìm kiếm tất cả",searchIn:"Tìm kiếm trong"},collectionTop:{sortBy:"Sắp xếp theo",viewAs:"View as",newButton:"%{collectionLabel} mới",ascending:"Tăng dần",descending:"Giảm dần",searchResults:'Kết quả tìm kiếm cho "%{searchTerm}"',searchResultsInCollection:'Kết quả tìm kiếm cho "%{searchTerm}" trong %{collection}',filterBy:"Lọc theo"},entries:{loadingEntries:"Đang tải...",cachingEntries:"Đang lưu...",longerLoading:"Sẽ mất vài phút",noEntries:"Không có mục nào"},defaultFields:{author:{label:"Tác giả"},updatedOn:{label:"Ngày cập nhật"}}},editor:{editorControl:{field:{optional:"không bắt buộc"}},editorControlPane:{widget:{required:"%{fieldLabel} bắt buộc nhập.",regexPattern:"%{fieldLabel} không khớp với mẫu: %{pattern}.",processing:"%{fieldLabel} đang xử lý.",range:"%{fieldLabel} phải nằm trong khoảng từ %{minValue} đến %{maxValue}.",min:"%{fieldLabel} phải ít nhất %{minValue}.",max:"%{fieldLabel} tối đa %{maxValue} hoặc ít hơn.",rangeCount:"%{fieldLabel} phải nằm trong khoảng từ %{minCount} đến %{maxCount} mục.",rangeCountExact:"%{fieldLabel} phải có %{count} mục.",rangeMin:"%{fieldLabel} phải có ít nhất %{minCount} mục.",rangeMax:"%{fieldLabel} phải có tối đa %{maxCount} mục hoặc ít hơn.",invalidPath:"Đường dẫn '%{path}' không hợp lệ",pathExists:"Đường dẫn '%{path}' đã tồn tại"}},editor:{onLeavePage:"Bạn có chắc rằng bạn muốn rời khỏi trang này?",onUpdatingWithUnsavedChanges:"Bạn chưa lưu những thay đổi, hãy lưu trước khi thay đổi trạng thái.",onPublishingNotReady:'Hãy thay đổi trạng thái thành "Sẵn sàng" trước khi công bố.',onPublishingWithUnsavedChanges:"Bạn có thay đổi chưa lưu, hãy lưu trước khi công bố.",onPublishing:"Bạn có chắc rằng bạn muốn công bố mục này?",onUnpublishing:"Bạn có chắc rằng bạn muốn ngừng công bố mục này?",onDeleteWithUnsavedChanges:"Bạn có chắc rằng bạn muốn xoá mục đã được công bố này, cũng như là những thay đổi chưa lưu của bạn trong phiên làm việc này?",onDeletePublishedEntry:"Bạn có chắc rằng bạn muốn xoá mục đã được công bố này?",onDeleteUnpublishedChangesWithUnsavedChanges:"Điều này sẽ xoá tất cả những thay đổi chưa được lưu trong mục này, cũng như là những thay đổi chưa được lưu của bạn trong phiên làm việc này. Bạn vẫn muốn xoá chứ?",onDeleteUnpublishedChanges:"Tất cả những thay đổi chưa được lưu trong mục này sẽ bị xoá. Bạn vẫn muốn xoá chứ?",loadingEntry:"Đang tải...",confirmLoadBackup:"Một bản sao lưu trên máy đã được phục hồi cho mục này, bạn có muốn tải lên không?"},editorToolbar:{publishing:"Đang công bố...",publish:"Công bố",published:"Đã công bố",unpublish:"Ngừng công bố",duplicate:"Sao chép",unpublishing:"Đang ngừng công bố...",publishAndCreateNew:"Công bố và tạo mới",publishAndDuplicate:"Công bố và sao chép",deleteUnpublishedChanges:"Xoá thay đổi chưa công bố này",deleteUnpublishedEntry:"Xoá mục chưa được công bố này",deletePublishedEntry:"Xoá mục đã được công bố này",deleteEntry:"Xoá mục này",saving:"Đang lưu...",save:"Lưu",deleting:"Đang xoá...",updating:"Đang cập nhật...",status:"Trạng: %{status}",backCollection:" Đang viết trong bộ sưu tập %{collectionLabel}",unsavedChanges:"Thay đổi chưa được lưu",changesSaved:"Thay đổi đã được lưu",draft:"Bản nháp",inReview:"Đang xét duyệt",ready:"Sẵn sàng",publishNow:"Công bố ngay",deployPreviewPendingButtonLabel:"Kiểm tra Xem trước",deployPreviewButtonLabel:"Xem trước",deployButtonLabel:"Xem bản hoàn chỉnh"},editorWidgets:{markdown:{richText:"Văn bản định dạng",markdown:"Markdown"},image:{choose:"Chọn một hình",chooseDifferent:"Chọn hình khác",remove:"Gỡ bỏ hình"},file:{choose:"Chọn một tập tin",chooseDifferent:"Chọn tập tin khác",remove:"Gỡ bỏ tập tin"},unknownControl:{noControl:"Không tìm thấy control cho widget '%{widget}'."},unknownPreview:{noPreview:"Không tìm thấy preview cho widget '%{widget}'."},headingOptions:{headingOne:"Tiêu đề cấp 1",headingTwo:"Tiêu đề cấp 2",headingThree:"Tiêu đề cấp 3",headingFour:"Tiêu đề cấp 4",headingFive:"Tiêu đề cấp 5",headingSix:"Tiêu đề cấp 6"},datetime:{now:"Ngay lúc này",clear:"Xóa"}}},mediaLibrary:{mediaLibraryCard:{draft:"Bản nháp"},mediaLibrary:{onDelete:"Bạn có chắc rằng bạn muốn xoá tập tin này?",fileTooLarge:"Tập tin quá lớn.\nCấu hình không cho phép những tập tin lớn hơn %{size} kB."},mediaLibraryModal:{loading:"Đang tải...",noResults:"Không có kết quả.",noAssetsFound:"Không tìm thấy tập tin nào.",noImagesFound:"Không tìm thấy hình nào.",private:"Riêng tư ",images:"Hình ảnh",mediaAssets:"Tập tin",search:"Tìm kiếm...",uploading:"Đang tải lên...",upload:"Tải lên",download:"Tải về",deleting:"Đang xoá...",deleteSelected:"Xoá những cái đã chọn",chooseSelected:"Lấy những cái đã chọn"}},ui:{default:{goBackToSite:"Quay về trang web"},errorBoundary:{title:"Lỗi",details:"Đã xảy ra lỗi - xin hãy ",reportIt:"tạo một issue trên GitHub.",detailsHeading:"Chi tiết",privacyWarning:"Tạo một issue với nội dung lỗi và dữ liệu debug được nhập sẵn.\nHãy xác nhận những thông tin này là đúng và gỡ bỏ dữ liệu nhạy cảm nếu cần thiết.",recoveredEntry:{heading:"Tài liệu đã được phục hồi",warning:"Hãy sao chép/dán nội dung này ở đâu đó trước khi chuyển sang trang khác!",copyButtonLabel:"Sao chép vào vùng nhớ"}},settingsDropdown:{logOut:"Đăng xuất"},toast:{onFailToLoadEntries:"Không thể tải mục: %{details}",onFailToLoadDeployPreview:"Không thể tải xem trước: %{details}",onFailToPersist:"Không thể giữ lại mục: %{details}",onFailToDelete:"Không thể xoá mục: %{details}",onFailToUpdateStatus:"Không thể cập nhật trạng thái: %{details}",missingRequiredField:"Bạn còn thiếu vài thông tin bắt buộc. Hãy hoàn thành trước khi lưu.",entrySaved:"Mục đã được lưu",entryPublished:"Mục đã được công bố",entryUnpublished:"Mục đã ngừng công bố",onFailToPublishEntry:"Không thể công bố: %{details}",onFailToUnpublishEntry:"Không thể ngừng công bố mục: %{details}",entryUpdated:"Trạng thái của mục đã được cập nhật",onDeleteUnpublishedChanges:"Những thay đổi chưa được công bố đã được xoá",onFailToAuth:"%{details}",onLoggedOut:"Bạn đã đăng xuất, hãy sao lưu dữ liệu và đăng nhập lại",onBackendDown:"Dịch vụ backend đang gặp trục trặc. Hãy xem {details} để biết thêm thông tin"}},workflow:{workflow:{loading:"Đang tải bài viết",workflowHeading:"Quy trình biên tập",newPost:"Bài mới",description:"%{smart_count} bài đang chờ duyệt, %{readyCount} bài đã sẵn sàng để công bố. |||| %{smart_count} bài đang chờ duyệt, %{readyCount} bài đã sẵn sàng để công bố. ",dateFormat:"D MMMM"},workflowCard:{lastChange:"%{date} bởi %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"bởi %{author}",deleteChanges:"Xoá thay đổi",deleteNewEntry:"Xoá bài mới",publishChanges:"Công bố thay đổi",publishNewEntry:"Công bố bài mới"},workflowList:{onDeleteEntry:"Bạn có chắc rằng bạn muốn xoá bài này?",onPublishingNotReadyEntry:'Chỉ những bài với trạng thái "Sẵn sàng" mới có thể được công bố. Hãy kéo thẻ vào cột "Sẵn sàng" để cho phép công bố.',onPublishEntry:"Bạn có chắc rằng bạn muốn công khai bài này?",draftHeader:"Bản nháp",inReviewHeader:"Đang xét duyệt",readyHeader:"Sẵn sàng",currentEntries:"%{smart_count} bài |||| %{smart_count} bài"}}}},61522:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"登录",loggingIn:"正在登录...",loginWithNetlifyIdentity:"使用 Netlify Identity 登录",loginWithAzure:"使用 Azure 登录",loginWithBitbucket:"使用 Bitbucket 登录",loginWithGitHub:"使用 GitHub 登录",loginWithGitLab:"使用 GitLab 登录",loginWithGitea:"使用 Gitea 登录",errors:{email:"请输入电子邮箱",password:"请输入密码",identitySettings:"无法连接账户认证系统(如果正在使用 git-gateway 作为 backend,请确保已经开启 Netlify Identity 服务以及 Git Gateway)"}},app:{header:{content:"内容",workflow:"工作流",media:"媒体",quickAdd:"快速新建"},app:{errorHeader:"加载 CMS 配置时发生错误",configErrors:"配置错误",checkConfigYml:"请检查 config.yml 文件是否配置正确",loadingConfig:"正在加载配置...",waitingBackend:"等待 backend 数据..."},notFoundPage:{header:"页面不存在"}},collection:{sidebar:{collections:"集合",allCollections:"所有集合",searchAll:"查找所有...",searchIn:"查找"},collectionTop:{sortBy:"排序",viewAs:"查看",newButton:"新建%{collectionLabel}",ascending:"升序",descending:"降序",searchResults:"有关“%{searchTerm}”的搜索结果",searchResultsInCollection:"在%{collection}中有关“%{searchTerm}”的搜索结果",filterBy:"筛选",groupBy:"分组"},entries:{loadingEntries:"正在加载内容...",cachingEntries:"正在缓存内容...",longerLoading:"这可能需要花费几分钟时间",noEntries:"暂无内容"},groups:{other:"其他",negateLabel:"非%{label}"},defaultFields:{author:{label:"作者"},updatedOn:{label:"更新于"}}},editor:{editorControl:{field:{optional:"可选"}},editorControlPane:{widget:{required:"“%{fieldLabel}”是必填项",regexPattern:"“%{fieldLabel}”不满足模式%{pattern}",processing:"“%{fieldLabel}”正在处理中",range:"“%{fieldLabel}”必须位于 %{minValue} 和 %{maxValue} 之间",min:"“%{fieldLabel}”必须至少为 %{minValue}",max:"“%{fieldLabel}”必须小于等于 %{maxValue}",rangeCount:"“%{fieldLabel}”必须包含 %{minCount} 到 %{maxCount} 个项目",rangeCountExact:"“%{fieldLabel}”必须且只能包含 %{count} 个项目",minCount:"“%{fieldLabel}”必须为至少 %{minCount} 个项目",maxCount:"“%{fieldLabel}”必须为小于等于 %{maxCount} 个项目",invalidPath:"“%{path}”为无效路径",pathExists:"路径“%{path}”已经存在"},i18n:{writingInLocale:"正在使用%{locale}撰写",copyFromLocale:"用其他语言进行填充",copyFromLocaleConfirm:"你确定要用“%{locale}”进行填充吗?\n这将会覆盖所有现有的内容。"}},editor:{onLeavePage:"你确定要离开此页面吗?",onUpdatingWithUnsavedChanges:"你有尚未保存的修改,请在更新状态前进行保存",onPublishingNotReady:"请在发布之前将状态更新为“就绪”",onPublishingWithUnsavedChanges:"你有尚未保存的修改,请在发布前进行保存",onPublishing:"你确定要发布此内容吗?",onUnpublishing:"你确定要撤销发布此内容吗?",onDeleteWithUnsavedChanges:"你确定要删除这个已经发布的内容,以及当前尚未保存的修改吗?",onDeletePublishedEntry:"你确定要删除这个已经发布的内容吗?",onDeleteUnpublishedChangesWithUnsavedChanges:"此内容所有未被发布的修改,以及当前尚未保存的修改都将被删除,你确定吗?",onDeleteUnpublishedChanges:"此内容所有未被发布的修改都将被删除,你确定吗?",loadingEntry:"正在加载内容...",confirmLoadBackup:"发现了一个对应此内容的本地备份,你要加载它吗?"},editorInterface:{toggleI18n:"打开/关闭国际化",togglePreview:"打开/关闭预览",toggleScrollSync:"同步滚动"},editorToolbar:{publishing:"正在发布...",publish:"发布",published:"已发布",unpublish:"撤销发布",duplicate:"复制",unpublishing:"正在撤销发布...",publishAndCreateNew:"发布,然后新建内容",publishAndDuplicate:"发布,然后复制内容",deleteUnpublishedChanges:"删除未发布的修改",deleteUnpublishedEntry:"删除未发布的内容",deletePublishedEntry:"删除已发布的内容",deleteEntry:"删除内容",saving:"正在保存...",save:"保存",deleting:"正在删除...",updating:"正在更新...",status:"状态: %{status}",backCollection:"正在集合“%{collectionLabel}”中编写",unsavedChanges:"含未保存的修改",changesSaved:"修改已保存",draft:"草稿",inReview:"审核中",ready:"就绪",publishNow:"立即发布",deployPreviewPendingButtonLabel:"点击以预览",deployPreviewButtonLabel:"查看预览",deployButtonLabel:"查看发布"},editorWidgets:{markdown:{bold:"粗体",italic:"斜体",code:"代码",link:"链接",linkPrompt:"输入链接的 URL",headings:"标题",quote:"引用",bulletedList:"无序列表",numberedList:"有序列表",addComponent:"添加组件",richText:"富文本",markdown:"Markdown"},image:{choose:"选择图片",chooseUrl:"从 URL 插入",replaceUrl:"用 URL 替代",promptUrl:"输入图片的 URL",chooseDifferent:"选择其他图片",remove:"移除图片"},file:{choose:"选择文件",chooseUrl:"从 URL 插入",replaceUrl:"用 URL 替代",promptUrl:"输入文件的 URL",chooseDifferent:"选择其他文件",remove:"移除文件"},unknownControl:{noControl:"'%{widget}'的控件不存在"},unknownPreview:{noPreview:"'%{widget}'无法预览"},headingOptions:{headingOne:"标题 1",headingTwo:"标题 2",headingThree:"标题 3",headingFour:"标题 4",headingFive:"标题 5",headingSix:"标题 6"},datetime:{now:"现在",clear:"清除"},list:{add:"新增%{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"草稿",copy:"复制",copyUrl:"复制 URL",copyPath:"复制路径",copyName:"复制名称",copied:"已复制"},mediaLibrary:{onDelete:"你确定要删除此媒体项目吗?",fileTooLarge:"文件体积过大\n目前的配置中不允许文件体积超过 %{size} kB"},mediaLibraryModal:{loading:"正在加载...",noResults:"暂无结果",noAssetsFound:"未找到资源",noImagesFound:"未找到图片",private:"私有",images:"图片",mediaAssets:"媒体资源",search:"搜索...",uploading:"正在上传...",upload:"上传",download:"下载",deleting:"正在下载...",deleteSelected:"删除已选中项目",chooseSelected:"选用已选中项目"}},ui:{default:{goBackToSite:"返回主页"},errorBoundary:{title:"错误",details:"程序发生了一个错误,请",reportIt:"在 Github 上发布一个 Issue",detailsHeading:"详情",privacyWarning:"发布一个 Issue 会将错误信息和调试数据预置其中\n请确保这些信息是正确的,同时移除那些敏感数据",recoveredEntry:{heading:"已恢复的文档",warning:"请在切换至其他页面之前,将它复制并粘贴到某个地方",copyButtonLabel:"复制到剪贴板"}},settingsDropdown:{logOut:"注销"},toast:{onFailToLoadEntries:"加载内容失败: %{details}",onFailToLoadDeployPreview:"加载预览失败: %{details}",onFailToPersist:"保存内容失败: %{details}",onFailToDelete:"删除内容失败: %{details}",onFailToUpdateStatus:"更新状态失败: %{details}",missingRequiredField:"你漏掉了一个必填项,请在保存之前将它填写好",entrySaved:"内容已保存",entryPublished:"内容已发布",entryUnpublished:"内容已撤销发布",onFailToPublishEntry:"发布失败: %{details}",onFailToUnpublishEntry:"撤销发布失败: %{details}",entryUpdated:"内容状态已更新",onDeleteUnpublishedChanges:"未发布的修改已删除",onFailToAuth:"%{details}",onLoggedOut:"你已注销,请先保存好数据然后再次登录",onBackendDown:"Backend 服务已中断,欲知详情请查看:%{details}"}},workflow:{workflow:{loading:"正在加载编辑工作流项目",workflowHeading:"编辑工作流",newPost:"新建帖子",description:"%{smart_count} 个待审查的内容、%{readyCount} 个已就绪的内容 |||| %{smart_count} 个待检查的内容、%{readyCount} 个已就绪的内容",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} 由 %{author} 修改",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"由 %{author} 修改",deleteChanges:"删除修改",deleteNewEntry:"删除新内容",publishChanges:"发布修改",publishNewEntry:"发布新内容"},workflowList:{onDeleteEntry:"你确定要删除此内容吗?",onPublishingNotReadyEntry:"只有状态为“就绪”的项目才能被发布。需要先将卡片拖动到“就绪”一列才能发布",onPublishEntry:"你确定要发布此内容吗?",draftHeader:"草稿",inReviewHeader:"审查中",readyHeader:"就绪",currentEntries:"%{smart_count} 个内容 |||| %{smart_count} 个内容"}}}},15029:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"登入",loggingIn:"正在登入...",loginWithNetlifyIdentity:"使用你的 Netlify 帳號來進行登入",loginWithBitbucket:"使用你的 Bitbucket 帳號來進行登入",loginWithGitHub:"使用你的 GitHub 帳號來進行登入",loginWithGitLab:"使用你的 GitLab 帳號來進行登入",loginWithGitea:"使用你的 Gitea 帳號來進行登入",errors:{email:"請確認你已經輸入你的電子郵件。",password:"請輸入你的密碼。",identitySettings:"無法連接認證系統!當使用 git-gateway 作為後端資料庫時,請確認您已開啟認證服務及 Git Gateway。"}},app:{header:{content:"內容",workflow:"作業流程",media:"媒體",quickAdd:"快速新增"},app:{errorHeader:"載入 CMS 設定時發生錯誤",configErrors:"設定錯誤",checkConfigYml:"請確認你的 config.yml 設定檔的內容是否正確",loadingConfig:"正在載入設定...",waitingBackend:"正在等待後端資料連接..."},notFoundPage:{header:"找不到頁面"}},collection:{sidebar:{collections:"集合",allCollections:"所有集合",searchAll:"尋找所有集合",searchIn:"搜尋範圍"},collectionTop:{sortBy:"排序方式",viewAs:"瀏覽方式",newButton:"新增 %{collectionLabel}",ascending:"由小到大",descending:"由大到小",searchResults:'搜尋 "%{searchTerm}" 的結果',searchResultsInCollection:'在 %{collection} 中搜尋 %{searchTerm}" 的結果',filterBy:"篩選方式"},entries:{loadingEntries:"載入內容",cachingEntries:"快取內容",longerLoading:"這可能需要幾分鐘的時間",noEntries:"沒有內容"},defaultFields:{author:{label:"作者"},updatedOn:{label:"更新於"}}},editor:{editorControl:{field:{optional:"選填"}},editorControlPane:{widget:{required:"%{fieldLabel} 是必須的。",regexPattern:"%{fieldLabel} 並不符合 %{pattern} 的型態",processing:"%{fieldLabel} 正在處理",range:"%{fieldLabel} 必須介於 %{minValue} 和 %{maxValue} 之間",min:"%{fieldLabel} 必須至少為 %{minValue}",max:"%{fieldLabel} 必須小於或等於 %{maxValue}",rangeCount:"%{fieldLabel} 必須有 %{minCount} 到 %{maxCount} 個項目。",rangeCountExact:"%{fieldLabel} 必須正好有 %{count} 個項目。",rangeMin:"%{fieldLabel} 必須至少有 %{minCount} 個項目。",rangeMax:"%{fieldLabel} 最多只能有 %{maxCount} 個項目。",invalidPath:"'%{path}' 不是有效的路徑",pathExists:"路徑 '%{path}' 已經存在"},i18n:{writingInLocale:"以 %{locale} 書寫",copyFromLocale:"用其他語言進行填充",copyFromLocaleConfirm:"你確定要用“%{locale}”進行填充嗎?\n這將會覆蓋所有現有的內容。"}},editor:{onLeavePage:"您確定要離開這頁嗎?",onUpdatingWithUnsavedChanges:"您有未儲存的變更,在更新狀態前請先進行儲存。",onPublishingNotReady:"在發布前,請先將狀態設定為:預備發布。",onPublishingWithUnsavedChanges:"您有未儲存的變更,在發布前請先進行儲存。",onPublishing:"你確定要發表此內容嗎?",onUnpublishing:"你確定要取消發表此內容嗎?",onDeleteWithUnsavedChanges:"你確定要刪除這篇已發布的內容以及你尚未儲存的變更?",onDeletePublishedEntry:"你確定要刪除這篇已發布的內容?",onDeleteUnpublishedChangesWithUnsavedChanges:"這將會刪除此內容所有未發布的變更,以及未儲存的變更。你確定還是要刪除?",onDeleteUnpublishedChanges:"此內容所有未發布的變更都將會被刪除。你確定還是要刪除?",loadingEntry:"載入內容中...",confirmLoadBackup:"此內容的本地備份已經還原,你想要使用嗎?"},editorToolbar:{publishing:"發布中...",publish:"發布",published:"已發布",unpublish:"取消發布",duplicate:"建立新內容",unpublishing:"取消發布中...",publishAndCreateNew:"發布並建立內容",publishAndDuplicate:"發布並複製內容",deleteUnpublishedChanges:"刪除未發布的變更",deleteUnpublishedEntry:"刪除未發布的內容",deletePublishedEntry:"刪除已發布的內容",deleteEntry:"刪除內容",saving:"儲存中...",save:"儲存",deleting:"刪除中...",updating:"更新中...",status:"狀態: %{status}",backCollection:"在集合 %{collectionLabel} 新增內容",unsavedChanges:"未儲存變更",changesSaved:"已儲存變更",draft:"草稿",inReview:"正在審核",ready:"預備發布",publishNow:"立即發布",deployPreviewPendingButtonLabel:"點擊來進行預覽",deployPreviewButtonLabel:"進行預覽",deployButtonLabel:"觀看已發布的內容"},editorWidgets:{markdown:{bold:"粗體",italic:"斜體",code:"程式碼",link:"連結",linkPrompt:"輸入連結網址",headings:"標題",quote:"引言",bulletedList:"項目符號清單",numberedList:"編號清單",addComponent:"加入元件",richText:"Rich Text",markdown:"Markdown"},image:{choose:"選擇一張圖片",chooseDifferent:"選擇其他圖片",remove:"刪除圖片"},file:{choose:"選擇一個檔案",chooseDifferent:"選擇其他檔案",remove:"刪除檔案"},unknownControl:{noControl:"無法控制元件: '%{widget}'."},unknownPreview:{noPreview:"無法預覽元件: '%{widget}'."},headingOptions:{headingOne:"標題 1",headingTwo:"標題 2",headingThree:"標題 3",headingFour:"標題 4",headingFive:"標題 5",headingSix:"標題 6"},datetime:{now:"現在",clear:"清除"},list:{add:"新增%{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"草稿"},mediaLibrary:{onDelete:"你確定要刪除已選擇的媒體嗎?",fileTooLarge:"檔案太大。\n已設定不允許大於 %{size} kB 的檔案。"},mediaLibraryModal:{loading:"載入中...",noResults:"沒有結果",noAssetsFound:"沒有發現媒體資產。",noImagesFound:"沒有發現影像。",private:"私人",images:"影像",mediaAssets:"媒體資產",search:"搜尋中...",uploading:"上傳中...",upload:"上傳新內容",download:"下載",deleting:"刪除中...",deleteSelected:"刪除已選擇的項目",chooseSelected:"選擇已選擇的項目"}},ui:{default:{goBackToSite:"回到網站"},errorBoundary:{title:"錯誤",details:"發生錯誤!請 ",reportIt:"回報錯誤",detailsHeading:"細節",privacyWarning:"建立 issue,並加上錯誤訊息及除錯資訊。\n請確認資訊正確,敏感資料也已經去除。",recoveredEntry:{heading:"已恢復的內容",warning:"在你離開本頁前,請將此處的內容複製貼上到其他地方來進行備份!",copyButtonLabel:"複製到剪貼簿"}},settingsDropdown:{logOut:"登出"},toast:{onFailToLoadEntries:"無法載入內容: %{details}",onFailToLoadDeployPreview:"無法預覽內容: %{details}",onFailToPersist:"無法暫存內容: %{details}",onFailToDelete:"無法刪除內容: %{details}",onFailToUpdateStatus:"無法更新狀態: %{details}",missingRequiredField:"糟了!你漏填了一個必須填入的欄位,在儲存前請先填完所有內容",entrySaved:"已儲存內容",entryPublished:"已發布內容",entryUnpublished:"已取消發布內容",onFailToPublishEntry:"無法發布: %{details}",onFailToUnpublishEntry:"無法取消發布: %{details}",entryUpdated:"內容狀態已更新",onDeleteUnpublishedChanges:"已刪除未發布的變更",onFailToAuth:"%{details}",onLoggedOut:"你已經登出,請備份任何資料然後重新登入",onBackendDown:"後端服務發生中斷。看 %{details} 取得更多資訊"}},workflow:{workflow:{loading:"正在載入編輯流程的內容",workflowHeading:"編輯作業流程",newPost:"建立新的內容",description:"%{smart_count} 篇內容正在等待審核, %{readyCount} 篇已經準備進行發布。 |||| %{smart_count} 篇內容正在等待審核, %{readyCount} 篇已經準備進行發布。",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"刪除變更",deleteNewEntry:"刪除新內容",publishChanges:"發布變更",publishNewEntry:"發布新內容"},workflowList:{onDeleteEntry:"你確定要刪除這個項目嗎?",onPublishingNotReadyEntry:"只有狀態為 預備發布 的內容可以被發布,請將本內容的狀態設定為 預備發布 來進行發布前的準備",onPublishEntry:"你確定要發表這篇內容嗎?",draftHeader:"草稿",inReviewHeader:"正在預覽",readyHeader:"準備完成",currentEntries:"%{smart_count} 篇內容 |||| %{smart_count} 篇內容"}}}},19138:(e,t,n)=>{"use strict";t.ZP=void 0;var r,i=(r=n(13888))&&r.__esModule?r:{default:r},o=n(33806);const a=["config"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,a),s=l(l({},c),r),u=l(l(l({},f),n),d),p=(0,i.default)(u,["default_transformations","max_files","multiple"]);await(0,o.loadScript)("https://media-library.cloudinary.com/global/all.js");const h=window.cloudinary.createMediaLibrary(u,{insertHandler:function(e){const r=e.assets.map((e=>function(e,{use_secure_url:t,use_transformations:n,output_filename_only:r}){return r?`${e.public_id}.${e.format}`:(e.derived&&n?e.derived[0]:e)[t?"secure_url":"url"]}(e,s)));t(n.multiple||r.length>1?r:r[0])}});return{show:({config:e={},allowMultiple:t}={})=>(!1===t&&(e.multiple=!1),h.show(l(l({},p),e))),hide:()=>h.hide(),enableStandalone:()=>!0}}};t.ZP=p},80087:(e,t,n)=>{"use strict";t.ZP=void 0;var r=s(n(38625)),i=s(n(50836)),o=n(46670);const a=["publicKey"];function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t{const r=Boolean(t);return e().then((e=>{if(r)return Promise.all(t().map((e=>e.then((e=>o(e)))))).then((e=>n(e)));n(o(e))}))}))}const p={name:"uploadcare",init:async function({options:e={config:{},settings:{}},handleInsert:t}={}){const n=e.config,{publicKey:s}=n,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,a),p=u(u({},c),l);return window.UPLOADCARE_PUBLIC_KEY=s,r.default.registerTab("preview",i.default),{show:({value:n,config:i={},allowMultiple:a,imagesOnly:s=!1}={})=>{const l=u(u({},p),{},{imagesOnly:s},i),c=!1!==a&&!!l.multiple,h=u(u({},l),{},{multiple:c}),m=function(e){if(Array.isArray(e)||o.Iterable.isIterable(e)){const t=Array.isArray(e)?e:e.toJS();return function(e){const t=`~${e.length}/nth/`;return Array.from({length:e.length},(function(e,n){return new RegExp(`${t}${n}/$`)})).every((t=>e.some((e=>t.test(e)))))}(t)?function(e){const t=new RegExp(`^.+/([^/]+~${e.length})/nth/`).exec(e[0])[1];return new Promise((e=>r.default.loadFileGroup(t).done((t=>e(t)))))}(t):Promise.all(t.map((e=>d(e))))}return e&&"string"==typeof e?d(e):null}(n);return m&&!m.state?m.then((n=>f({files:n,config:h,settings:e.settings,handleInsert:t}))):f({files:m,config:h,settings:e.settings,handleInsert:t})},enableStandalone:()=>!1}}};t.ZP=p},54530:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=(u(n(2784)),u(n(13980))),o=u(n(10304)),a=n(29309),s=u(n(98718)),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}const c=(0,r.default)("section",{target:"exus10f5",label:"StyledAuthenticationPage"})({name:"14ts7qn",styles:"display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;gap:50px;height:100vh"}),d=(0,r.default)("span",{target:"exus10f4",label:"CustomIconWrapper"})({name:"1hhl19u",styles:"width:300px;height:auto"}),f=(0,r.default)(o.default,{target:"exus10f3",label:"DecapLogoIcon"})({name:"pit38s",styles:"height:auto"}),p=(0,r.default)(o.default,{target:"exus10f2",label:"NetlifyCreditIcon"})({name:"iy5sn8",styles:"color:#c4c6d2;position:absolute;bottom:10px"});function h({url:e}){return(0,l.jsx)(d,null,(0,l.jsx)("img",{src:e,alt:"Logo"}))}const m=(0,r.default)("button",{target:"exus10f1",label:"LoginButton"})(a.buttons.button,";",a.shadows.dropDeep,";",a.buttons.default,";",a.buttons.gray,";&[disabled]{",a.buttons.disabled,";}padding:0 12px;margin-top:0;display:flex;align-items:center;position:relative;"),g=(0,r.default)("button",{target:"exus10f0",label:"TextButton"})(a.buttons.button,";",a.buttons.default,";",a.buttons.grayText,";margin-top:0;display:flex;align-items:center;position:relative;");function v({onLogin:e,loginDisabled:t,loginErrorMessage:n,renderButtonContent:r,renderPageContent:i,logoUrl:o,siteUrl:a,t:u}){return(0,l.jsx)(c,null,function(e){return e?(0,l.jsx)(h,{url:e}):(0,l.jsx)(f,{size:"300px",type:"decap-cms"})}(o),n?(0,l.jsx)("p",null,n):null,i?i({LoginButton:m,TextButton:g,showAbortButton:!a}):null,r?(0,l.jsx)(m,{disabled:t,onClick:e},r()):null,a&&(0,l.jsx)(s.default,{href:a,t:u}),o?(0,l.jsx)(p,{size:"100px",type:"decap-cms"}):null)}v.propTypes={onLogin:i.default.func,logoUrl:i.default.string,siteUrl:i.default.string,loginDisabled:i.default.bool,loginErrorMessage:i.default.node,renderButtonContent:i.default.func,renderPageContent:i.default.func,t:i.default.func.isRequired},t.default=v},87509:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DropdownButton",{enumerable:!0,get:function(){return a.Button}}),t.DropdownCheckedItem=w,t.DropdownItem=v,t.StyledDropdownButton=void 0,t.default=g;var r=c(n(70894)),i=(c(n(2784)),c(n(13980))),o=n(28165),a=n(6448),s=n(29309),l=c(n(10304));const u=["isActive","isCheckedItem"];function c(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t(0,o.css)("width:",e.width,";top:",e.top,";left:","left"===e.position?0:"auto",";right:","right"===e.position?0:"auto",";;label:DropdownList;")),";"));function h(e){let{isActive:t,isCheckedItem:n=!1}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,u);return(0,o.jsx)(a.MenuItem,d({css:(0,o.css)(s.components.dropdownItem,";&:focus,&:active,&:not(:focus),&:not(:active){background-color:",t?s.colors.activeBackground:"inherit",";color:",t?s.colors.active:"#313d3e",";",n?"display: flex; justify-content: start":"",";}&:hover{color:",s.colors.active,";background-color:",s.colors.activeBackground,";}&.active{text-decoration:underline;};label:StyledMenuItem;")},r))}const m=(0,r.default)("div",{target:"efqlgsg0",label:"MenuItemIconContainer"})("flex:1 0 32px;text-align:right;position:relative;top:",(e=>e.iconSmall?"0":"2px"),";");function g({closeOnSelection:e=!0,renderButton:t,dropdownWidth:n="auto",dropdownPosition:r="left",dropdownTopOverlap:i="0",className:s,children:l}){return(0,o.jsx)(f,{closeOnSelection:e,onSelection:e=>e(),className:s},t(),(0,o.jsx)(a.Menu,null,(0,o.jsx)(p,{width:n,top:i,position:r},l)))}function v({label:e,icon:t,iconDirection:n,iconSmall:r,isActive:i,onClick:a,className:s}){return(0,o.jsx)(h,{value:a,isActive:i,className:s},(0,o.jsx)("span",null,e),t?(0,o.jsx)(m,{iconSmall:r},(0,o.jsx)(l.default,{type:t,direction:n,size:r?"xsmall":"small"})):null)}g.propTypes={renderButton:i.default.func.isRequired,dropdownWidth:i.default.string,dropdownPosition:i.default.string,dropdownTopOverlap:i.default.string,className:i.default.string,children:i.default.node},v.propTypes={label:i.default.string,icon:i.default.string,iconDirection:i.default.string,onClick:i.default.func,className:i.default.string};var y={name:"1ak2sn3-StyledDropdownCheckbox",styles:"margin-right:10px;label:StyledDropdownCheckbox;"};function b({checked:e,id:t}){return(0,o.jsx)("input",{readOnly:!0,type:"checkbox",css:y,checked:e,id:t})}function w({label:e,id:t,checked:n,onClick:r}){return(0,o.jsx)(h,{isCheckedItem:!0,isActive:n,onClick:r},(0,o.jsx)(b,{checked:n,id:t}),(0,o.jsx)("span",{htmlFor:t},e))}w.propTypes={label:i.default.string.isRequired,id:i.default.string.isRequired,checked:i.default.bool.isRequired,onClick:i.default.func.isRequired}},36881:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(70894))&&r.__esModule?r:{default:r},o=n(29309);const a={default:{background:o.colors.textFieldBorder,text:o.colors.controlLabel},active:{background:o.colors.active,text:o.colors.textLight},error:{background:o.colors.errorText,text:o.colorsRaw.white}};function s({isActive:e,hasErrors:t}){return t?a.error:e?a.active:a.default}const l=(0,i.default)("label",{target:"e1xtv0oy0",label:"FieldLabel"})(o.text.fieldLabel,";color:",(e=>s(e).text),";background-color:",(e=>s(e).background),";display:inline-block;border:0;border-radius:3px 3px 0 0;padding:3px 6px 2px;margin:0;transition:all ",o.transitions.main,";position:relative;&:before,&:after{content:'';display:block;position:absolute;top:0;right:-4px;height:100%;width:4px;background-color:inherit;}&:after{border-bottom-left-radius:3px;background-color:#fff;}");t.default=l},98718:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=u(n(2784)),o=u(n(13980)),a=n(29309),s=u(n(10304)),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}const c=(0,r.default)("a",{target:"e1sptrq41",label:"GoBackButtonStyle"})({name:"1d6fxhx",styles:"display:flex;align-items:center;margin-top:50px;padding:10px;font-size:14px"}),d=(0,r.default)("p",{target:"e1sptrq40",label:"ButtonText"})("color:",a.colorsRaw.gray,";margin:0 10px;");class f extends i.default.Component{render(){const{href:e,t}=this.props;return(0,l.jsx)(c,{href:e},(0,l.jsx)(s.default,{type:"arrow",size:"small"}),(0,l.jsx)(d,null,t("ui.default.goBackToSite")))}}var p,h,m;t.default=f,p=f,h="propTypes",m={href:o.default.string.isRequired,t:o.default.func.isRequired},(h=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(h))in p?Object.defineProperty(p,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):p[h]=m},10304:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(70894)),i=(s(n(2784)),s(n(13980))),o=s(n(72134)),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("span",{target:"e1jeq5dr1",label:"IconWrapper"})("display:inline-block;line-height:0;width:",(e=>e.size),";height:",(e=>e.size),";transform:",(e=>`rotate(${e.rotation})`),";& path:not(.no-fill),& circle:not(.no-fill),& polygon:not(.no-fill),& rect:not(.no-fill){fill:currentColor;}& path.clipped{fill:transparent;}svg{width:100%;height:100%;}");function u(e,t){if(!e||!t)return"0deg";const n={right:90,down:180,left:270,up:360};return n[t]-n[e]+"deg"}const c={xsmall:"12px",small:"18px",medium:"24px",large:"32px"};function d({type:e,direction:t,size:n="medium",className:r}){const i=o.default[e].image;return(0,a.jsx)(l,{className:r,size:c[n]||n,rotation:u(o.default[e].direction,t)},(0,a.jsx)(i,null))}d.propTypes={type:i.default.string.isRequired,direction:i.default.oneOf(["right","down","left","up"]),size:i.default.string,className:i.default.string},t.default=(0,r.default)(d,{target:"e1jeq5dr0"})("")},72134:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(34519)),i=o(n(82880));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const s={arrow:{direction:"left"},chevron:{direction:"down"},"chevron-double":{direction:"down"}},l=(0,r.default)(i.default,((e,t)=>function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,(r=n(2784))&&r.__esModule;var r,i=n(28165),o=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M19 14h-4a1 1 0 0 0-1 1v4a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-4a1 1 0 0 0-1-1H5a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h4a1 1 0 0 0 1-1V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1Z"}))};o.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var a=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",fillRule:"evenodd",d:"M16.5 16 13 12h7l-3.5 4Zm-4-5.75H9.75a.5.5 0 0 0-.5.5v2.75a.5.5 0 0 1-.5.5h-1.5a.5.5 0 0 1-.5-.5v-2.75a.5.5 0 0 0-.5-.5H3.5a.5.5 0 0 1-.5-.5v-1.5a.5.5 0 0 1 .5-.5h2.75a.5.5 0 0 0 .5-.5V4.5a.5.5 0 0 1 .5-.5h1.5a.5.5 0 0 1 .5.5v2.75a.5.5 0 0 0 .5.5h2.75a.5.5 0 0 1 .5.5v1.5a.5.5 0 0 1-.5.5Z"}))};a.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var s=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#313D3E",d:"m10.506 19.916 1.903-1.953-4.744-4.67H21.31V10.55H7.665l4.744-4.682-1.903-1.953-7.95 8z"}))};s.defaultProps={viewBox:"0 0 24 24"};var l=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M14.015 4.217 7.1 9.927 1.5 19.751l5.27.055zm.77 1.263-3.02 8.014 5.6 6.313-10.76 1.92 17.895.056Z",fill:"#2684FF"}))};l.defaultProps={viewBox:"0 0 26 26",height:"26",width:"26"};var u=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M2.776 3a.655.655 0 0 0-.655.76l2.781 16.886c.072.427.44.74.872.744h13.344a.655.655 0 0 0 .655-.55l2.782-17.077a.655.655 0 0 0-.655-.76L2.776 3Zm11.713 12.204h-4.26L9.076 9.18h6.445l-1.032 6.025Z",fill:"#2684FF"}))};u.defaultProps={width:"26",height:"26",viewBox:"0 0 26 26"};var c=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M13.2 9.819c.812-.577 1.381-1.525 1.381-2.404 0-1.948-1.465-3.448-3.348-3.448H6v12.066h5.894c1.75 0 3.106-1.465 3.106-3.267 0-1.31-.72-2.43-1.8-2.947ZM8.108 6.122h2.85c.788 0 1.424.577 1.424 1.293 0 .715-.636 1.292-1.425 1.292h-2.85V6.122Zm3.324 7.756H8.108v-2.585h3.324c.789 0 1.425.577 1.425 1.292 0 .716-.636 1.293-1.425 1.293Z"}))};c.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var d=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"m4.016 11-.648-.946a6.202 6.202 0 0 0-.157-.22 9.526 9.526 0 0 1-.096-.133l-.511-.7a7.413 7.413 0 0 0-.162-.214l-.102-.134-.265-.346a26.903 26.903 0 0 0-.543-.687l-.11-.136a21.767 21.767 0 0 0-.442-.54l-.278-.332a8.854 8.854 0 0 0-.192-.225L.417 6.28l-.283-.324L0 5.805l1.376-1.602c.04.027.186.132.186.132l.377.272.129.095c.08.058.16.115.237.175l.37.28c.192.142.382.292.565.436l.162.126c.27.21.503.398.714.574l.477.393c.078.064.156.127.23.194l.433.375.171-.205A50.865 50.865 0 0 1 8.18 4.023a35.163 35.163 0 0 1 2.382-2.213c.207-.174.42-.349.635-.518l.328-.255.333-.245c.072-.055.146-.107.221-.159l.117-.083c.11-.077.225-.155.341-.23.163-.11.334-.217.503-.32l1.158 1.74a11.908 11.908 0 0 0-.64.55l-.065.06c-.07.062-.139.125-.207.192l-.258.249-.26.265a21.72 21.72 0 0 0-.512.539 32.626 32.626 0 0 0-1.915 2.313 52.115 52.115 0 0 0-2.572 3.746l-.392.642-.19.322-.233.382H4.016z"}))};d.defaultProps={viewBox:"-1 -2 16 16"};var f=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"m5.123 6.33-2.26 2.137 8.656 9.15 9.344-9.105-2.17-2.228-7.084 6.902z"}))};f.defaultProps={viewBox:"0 0 24 24"};var p=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"m5.123 3.33-2.26 2.137 8.656 9.15 9.344-9.105-2.17-2.228-7.084 6.902z"}),(0,i.jsx)("path",{d:"m5.123 10.33-2.26 2.137 8.656 9.15 9.344-9.105-2.17-2.228-7.084 6.902z"}))};p.defaultProps={viewBox:"0 0 24 24"};var h=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("circle",{cx:"12",cy:"12",r:"4"}))};h.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var m=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M11.916 9.96 6.282 4.345 4.398 6.401l5.634 5.616-5.616 5.617 1.849 2.022 5.616-5.617 5.616 5.6 1.884-2.04L13.765 12l5.633-5.634-1.866-2.022z"}))};m.defaultProps={viewBox:"0 0 24 24"};var g=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M9 14.6 4.649 10 9 5.4 7.676 4 2 10l5.676 6L9 14.6Zm3 0 4.351-4.6L12 5.4 13.324 4 19 10l-5.676 6L12 14.6Z"}))};g.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var v=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M10.103 13.32 7.05 10l3.052-3.32-1.325-1.01L4.798 10l3.98 4.33 1.325-1.01ZM5 4h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm6.927 9.32 1.217.935 3.98-4.33-3.98-4.33-1.217 1.085L14.978 10l-3.05 3.32Z"}))};v.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var y=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M3 15v-2h18v2H3Zm0-4V9h18v2H3Z"}))};y.defaultProps={viewBox:"0 0 24 24"};var b=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M22.557 11.492C21.13 10 16.849 6 12.395 6c-4.8 0-8.844 4-10.184 5.492a.798.798 0 0 0 0 1.081C3.55 14.043 7.616 18 12.395 18c4.756 0 8.8-3.914 10.162-5.405a.783.783 0 0 0 0-1.103Zm-10.14 4.692a4.152 4.152 0 0 1 0-8.303 4.152 4.152 0 0 1 4.15 4.151c0 2.292-1.88 4.152-4.15 4.152Zm0-2.79a1.362 1.362 0 1 0 0-2.724 1.362 1.362 0 0 0 0 2.725Z"}))};b.defaultProps={viewBox:"0 0 24 24"};var w=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M10 5H5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-7l-2-2Z"}))};w.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var _=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fillRule:"evenodd",d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"}))};_.defaultProps={width:"32",height:"32",viewBox:"0 0 16 16"};var x=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("g",{fill:"none"},(0,i.jsx)("path",{d:"M22.616 14.971 21.52 11.5l-2.173-6.882a.37.37 0 0 0-.71 0L16.465 11.5H9.252L7.079 4.617a.37.37 0 0 0-.71 0l-2.172 6.882L3.1 14.971c-.1.317.01.664.27.86l9.487 7.094 9.487-7.094a.781.781 0 0 0 .27-.86",fill:"#FC6D26"}),(0,i.jsx)("path",{d:"M12.858 22.925 16.465 11.5H9.251z",fill:"#E24329"}),(0,i.jsx)("path",{d:"M12.858 22.925 9.251 11.5H4.197z",fill:"#FC6D26"}),(0,i.jsx)("path",{d:"M4.197 11.499 3.1 14.971c-.1.317.01.664.27.86l9.487 7.094L4.197 11.5z",fill:"#FCA326"}),(0,i.jsx)("path",{d:"M4.197 11.499H9.25L7.08 4.617a.37.37 0 0 0-.71 0l-2.172 6.882z",fill:"#E24329"}),(0,i.jsx)("path",{d:"M12.858 22.925 16.465 11.5h5.055z",fill:"#FC6D26"}),(0,i.jsx)("path",{d:"m21.52 11.499 1.096 3.472c.1.317-.01.664-.271.86l-9.487 7.094L21.52 11.5z",fill:"#FCA326"}),(0,i.jsx)("path",{d:"M21.52 11.499h-5.055l2.172-6.882a.37.37 0 0 1 .71 0l2.173 6.882z",fill:"#E24329"})))};x.defaultProps={width:"26",height:"26",xmlns:"http://www.w3.org/2000/svg"};var k=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("g",{fill:"#609926"},(0,i.jsx)("path",{d:"M622.7 149.8c-4.1-4.1-9.6-4-9.6-4s-117.2 6.6-177.9 8c-13.3.3-26.5.6-39.6.7v117.2c-5.5-2.6-11.1-5.3-16.6-7.9 0-36.4-.1-109.2-.1-109.2-29 .4-89.2-2.2-89.2-2.2s-141.4-7.1-156.8-8.5c-9.8-.6-22.5-2.1-39 1.5-8.7 1.8-33.5 7.4-53.8 26.9C-4.9 212.4 6.6 276.2 8 285.8c1.7 11.7 6.9 44.2 31.7 72.5 45.8 56.1 144.4 54.8 144.4 54.8s12.1 28.9 30.6 55.5c25 33.1 50.7 58.9 75.7 62 63 0 188.9-.1 188.9-.1s12 .1 28.3-10.3c14-8.5 26.5-23.4 26.5-23.4S547 483 565 451.5c5.5-9.7 10.1-19.1 14.1-28 0 0 55.2-117.1 55.2-231.1-1.1-34.5-9.6-40.6-11.6-42.6zM125.6 353.9c-25.9-8.5-36.9-18.7-36.9-18.7S69.6 321.8 60 295.4c-16.5-44.2-1.4-71.2-1.4-71.2s8.4-22.5 38.5-30c13.8-3.7 31-3.1 31-3.1s7.1 59.4 15.7 94.2c7.2 29.2 24.8 77.7 24.8 77.7s-26.1-3.1-43-9.1zm300.3 107.6s-6.1 14.5-19.6 15.4c-5.8.4-10.3-1.2-10.3-1.2s-.3-.1-5.3-2.1l-112.9-55s-10.9-5.7-12.8-15.6c-2.2-8.1 2.7-18.1 2.7-18.1L322 273s4.8-9.7 12.2-13c.6-.3 2.3-1 4.5-1.5 8.1-2.1 18 2.8 18 2.8L467.4 315s12.6 5.7 15.3 16.2c1.9 7.4-.5 14-1.8 17.2-6.3 15.4-55 113.1-55 113.1z"}),(0,i.jsx)("path",{d:"M326.8 380.1c-8.2.1-15.4 5.8-17.3 13.8-1.9 8 2 16.3 9.1 20 7.7 4 17.5 1.8 22.7-5.4 5.1-7.1 4.3-16.9-1.8-23.1l24-49.1c1.5.1 3.7.2 6.2-.5 4.1-.9 7.1-3.6 7.1-3.6 4.2 1.8 8.6 3.8 13.2 6.1 4.8 2.4 9.3 4.9 13.4 7.3.9.5 1.8 1.1 2.8 1.9 1.6 1.3 3.4 3.1 4.7 5.5 1.9 5.5-1.9 14.9-1.9 14.9-2.3 7.6-18.4 40.6-18.4 40.6-8.1-.2-15.3 5-17.7 12.5-2.6 8.1 1.1 17.3 8.9 21.3 7.8 4 17.4 1.7 22.5-5.3 5-6.8 4.6-16.3-1.1-22.6 1.9-3.7 3.7-7.4 5.6-11.3 5-10.4 13.5-30.4 13.5-30.4.9-1.7 5.7-10.3 2.7-21.3-2.5-11.4-12.6-16.7-12.6-16.7-12.2-7.9-29.2-15.2-29.2-15.2s0-4.1-1.1-7.1c-1.1-3.1-2.8-5.1-3.9-6.3 4.7-9.7 9.4-19.3 14.1-29-4.1-2-8.1-4-12.2-6.1-4.8 9.8-9.7 19.7-14.5 29.5-6.7-.1-12.9 3.5-16.1 9.4-3.4 6.3-2.7 14.1 1.9 19.8l-24.6 50.4z"})))};k.defaultProps={viewBox:"0 0 640 640",className:"svg gitea-gitea",width:"16",height:"16","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg"};var E=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M5 3h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Zm11 0h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2h-3a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Zm0 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2h-3a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2ZM5 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2Z"}))};E.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var S=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M3 4h10v12H3V4Zm2 0v5h6V4H5Zm0 7v5h6v-5H5Zm12.068 5v-5.695h-.026l-1.612.767-.325-1.482 2.236-1.04h1.638V16h-1.911Z"}))};S.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var C=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",fillRule:"evenodd",d:"M18.036 16h-5.532v-1.104l1.008-.912c1.704-1.524 2.532-2.4 2.556-3.312 0-.636-.384-1.14-1.284-1.14-.672 0-1.26.336-1.668.648L12.6 8.872c.588-.444 1.5-.804 2.556-.804 1.764 0 2.736 1.032 2.736 2.448 0 1.308-.948 2.352-2.076 3.36l-.72.6v.024h2.94V16ZM3 8h7v8H3V8Zm2 0v3h3V8H5Zm0 5v3h3v-3H5Z"}))};C.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var T=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M3 4h10v12H3V4zm2 0v5h6V4H5zm0 7v5h6v-5H5m12.874 5.91-3.493-4.117h6.986l-3.493 4.117z"}))};T.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var O=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M21 13h-2a1 1 0 0 0-1 1v6h-4v-5a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v5H6v-6a1 1 0 0 0-1-1H3l9-9 9 9Z"}))};O.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};var A=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M5 3h12a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3Zm2.487 7.205-2.34 3.232a1 1 0 0 0 .81 1.586h9.954a1 1 0 0 0 .792-1.611L13.297 9l-3.451 4.469-2.36-3.264ZM8.5 8a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"}))};A.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var P=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}),(0,i.jsx)("path",{d:"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"}))};P.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",className:"bi bi-info-circle",viewBox:"0 0 16 16"};var R=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M8 4.012V6h2.312l-2.925 8H5v1.988h7V14H9.953l2.925-8H15V4.012z"}))};R.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var D=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"m14.683 10.315-1.256-1.253 1.253-1.254a1.767 1.767 0 0 0 0-2.503 1.765 1.765 0 0 0-2.503 0L9.67 7.81a1.766 1.766 0 0 0 0 2.504l-1.25 1.247-.625-.626a2.657 2.657 0 0 1-.002-3.756l3.135-3.136a3.543 3.543 0 0 1 5.007.009 3.544 3.544 0 0 1 .003 5.007l-1.255 1.255Zm-9.394-.626v-.003l1.252 1.249L5.29 12.19a1.767 1.767 0 0 0 0 2.505c.697.695 1.813.69 2.504 0l2.506-2.506a1.766 1.766 0 0 0 0-2.504l1.249-1.249.622.625a2.654 2.654 0 0 1 .006 3.756L9.04 15.953a3.539 3.539 0 0 1-5.004-.002 3.544 3.544 0 0 1-.003-5.008L5.29 9.69Z"}))};D.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var M=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M4.5 3h15a1.5 1.5 0 0 1 0 3h-15a1.5 1.5 0 0 1 0-3Zm0 5h15a1.5 1.5 0 0 1 0 3h-15a1.5 1.5 0 0 1 0-3Zm0 5h15a1.5 1.5 0 0 1 0 3h-15a1.5 1.5 0 0 1 0-3Zm0 5h15a1.5 1.5 0 0 1 0 3h-15a1.5 1.5 0 0 1 0-3Z"}))};M.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var I=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M5 6.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm0 5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm0 5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3ZM9 4h10v1.964H9V4Zm0 5h10v2H9V9Zm0 5h10v2H9v-2Z"}))};I.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var L=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M20.014 4.023v2h-11v-2h11Zm0 5v2h-11v-2h11Zm0 5v2h-11v-2h11ZM3.604 8.985V4.23h-.018l-1.095.545-.22-1.053 1.518-.738h1.113v6H3.604Zm2.458 7.997h-4v-.835l.73-.69c1.231-1.152 1.83-1.814 1.847-2.503 0-.481-.277-.862-.928-.862-.486 0-.911.254-1.206.49l-.373-.99c.425-.335 1.084-.607 1.848-.607 1.275 0 1.978.78 1.978 1.85 0 .99-.685 1.779-1.5 2.54l-.522.455v.018h2.126v1.134Z"}))};L.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var j=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M1 17V8h2.75l2.75 3.309L9.25 8H12v9H9.25v-5.162l-2.75 3.31-2.75-3.31V17H1Zm18 0-4-4.368h2.667V8h2.666v4.632H23L19 17Z"}))};j.defaultProps={viewBox:"0 0 24 24"};var N=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M21 15.25V4.75C21 3.788 20.212 3 19.25 3H8.75C7.787 3 7 3.788 7 4.75v10.5c0 .962.787 1.75 1.75 1.75h10.5c.962 0 1.75-.788 1.75-1.75Zm-9.641-3.773 1.787 2.394 2.615-3.277 3.522 4.417H8.717l2.642-3.534ZM3 7v12.25c0 .962.788 1.75 1.75 1.75H17v-1.956H5.98a1 1 0 0 1-1-1V7H3Z"}))};N.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var F=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M5.027 4.045h13.975a3 3 0 0 1 3 3v9.99a3 3 0 0 1-3 3H5.027a3 3 0 0 1-3-3v-9.99a3 3 0 0 1 3-3Zm2.874 8.48-4.114 5.504h16.455l-5.485-6.88-4.073 5.105-2.783-3.73ZM9.493 10a1.507 1.507 0 1 0 0-3.014 1.507 1.507 0 0 0 0 3.014Z"}))};F.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var B=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M30.73.15 0 2.95l3.67 40.21 20.03-1.83-1.99-21.86 10.71-.98c10.61-.97 19.14 7.53 20.29 20.19l19.67-1.79C70.34 14.72 51.64-1.75 30.73.15ZM73.61 49.51c0 12.72-7.73 21.95-18.37 21.95H44.49V49.47H24.38v40.42h30.86c21.02 0 38.12-18.11 38.12-40.38v-.04H73.61v.04Z",fill:"#FF0082",className:"no-fill"}),(0,i.jsx)("path",{d:"M131.65 23.71h20.01c14.41 0 24.29 9.09 24.29 23.06 0 13.97-9.88 23.06-24.29 23.06h-20.01V23.71Zm19.51 37.35c8.75 0 14.47-5.47 14.47-14.29s-5.73-14.29-14.47-14.29h-9.31v28.59h9.31v-.01ZM207.61 58.69l5.22 5.93c-3.15 3.75-7.87 5.73-13.97 5.73-11.7 0-19.32-7.71-19.32-18.25s7.68-18.25 18.12-18.25c9.56 0 17.43 6.59 17.49 17.92l-25.04 5.07c1.45 3.49 4.59 5.27 9 5.27 3.59 0 6.17-1.12 8.5-3.43v.01Zm-18.44-7.64 16.49-3.36c-.94-3.62-3.9-6.06-7.99-6.06-4.91 0-8.31 3.43-8.5 9.42ZM218.25 52.1c0-10.67 7.87-18.25 18.88-18.25 7.11 0 12.71 3.23 15.17 9.02l-7.61 4.28c-1.83-3.36-4.53-4.87-7.61-4.87-4.97 0-8.87 3.62-8.87 9.81s3.9 9.81 8.87 9.81c3.08 0 5.79-1.45 7.61-4.87l7.61 4.35c-2.45 5.67-8.05 8.96-15.17 8.96-11.01 0-18.88-7.58-18.88-18.25v.01ZM290.93 34.38v35.44h-9.38v-4.08c-2.45 3.1-6.04 4.61-10.57 4.61-9.57 0-16.93-7.11-16.93-18.25s7.36-18.25 16.93-18.25c4.15 0 7.68 1.38 10.13 4.28v-3.75h9.82ZM281.3 52.1c0-6.13-3.78-9.81-8.62-9.81S264 45.98 264 52.1c0 6.12 3.78 9.81 8.68 9.81s8.62-3.69 8.62-9.81ZM334.54 52.1c0 11.13-7.36 18.25-16.86 18.25-4.22 0-7.68-1.38-10.19-4.28V82.6h-9.82V34.38h9.38v4.08c2.45-3.1 6.1-4.61 10.63-4.61 9.5 0 16.86 7.11 16.86 18.25Zm-9.94 0c0-6.13-3.71-9.81-8.62-9.81-4.91 0-8.62 3.69-8.62 9.81 0 6.12 3.71 9.81 8.62 9.81 4.91 0 8.62-3.69 8.62-9.81Z",fill:"#000",className:"no-fill"}))};B.defaultProps={width:"335",height:"90",viewBox:"0 0 335 90",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var z=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("g",{fillRule:"evenodd"},(0,i.jsx)("path",{d:"M4.7 20.5H15c2.1 0 3.8-1.7 3.8-3.8v-6.4c0-.5-.4-.9-.8-.9-.5 0-1 .4-1 .9v6.4a2 2 0 0 1-2 2H4.7a2 2 0 0 1-2-2V6.2c0-1.1.8-2 2-2H11c.5 0 .8-.4.8-1 0-.4-.3-.8-.8-.8H4.7C2.6 2.4.9 4.1.9 6.2v10.5c0 2 1.7 3.8 3.8 3.8z"}),(0,i.jsx)("path",{d:"M20.9 7.2V1.7h-.1v-.2l-.1-.1-.2-.2h-.1l-.2-.2h-5.7c-.5 0-.8.3-.8.8s.3 1 .8 1H18l-8 8c-.4.3-.4.8 0 1.2.3.3.9.3 1.2 0l8-8v3.2c0 .5.4.9.9.9s.8-.4.9-1z"})))};z.defaultProps={width:"21",height:"21",viewBox:"0 0 21 21",xmlns:"http://www.w3.org/2000/svg"};var U=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"m13.366 3 5.625 5.493L19 19.169C19 20.176 18.156 21 17.125 21H5.865C4.836 21 4 20.176 4 19.17V4.83C4 3.825 4.834 3 5.866 3h7.5ZM6.94 12.11a.94.94 0 1 0 0 1.88h9.12a.94.94 0 0 0 0-1.88H6.94Zm0 3.89a.94.94 0 1 0 0 1.88h9.12a.94.94 0 1 0 0-1.88H6.94Zm5.073-6h5.139l-5.14-5.053V10Z"}))};U.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var q=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M3 8h1.98v11.044a1 1 0 0 0 1 1H17V22H4.75C3.788 22 3 21.212 3 20.25V8Zm6-6h6.074L20 7.041V16a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2Zm.94 8.11a.94.94 0 1 0 0 1.88h7.12a.94.94 0 0 0 0-1.88H9.94Zm0 3.89a.94.94 0 1 0 0 1.88h7.12a.94.94 0 1 0 0-1.88H9.94Zm4.054-6.124h4.344l-4.344-4.342v4.342Z"}))};q.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var W=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M21 15.25c0 .962-.788 1.75-1.75 1.75H8.75C7.787 17 7 16.212 7 15.25V4.75C7 3.788 7.787 3 8.75 3h10.5c.962 0 1.75.788 1.75 1.75v10.5ZM9 10v2h10v-2H9Zm0-4v2h10V6H9ZM3 7v12.25c0 .962.788 1.75 1.75 1.75H17v-1.956H5.98a1 1 0 0 1-1-1V7H3Z"}))};W.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var $=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M4.995 14.954h2.986l1.991-3.982V5H4v5.972h2.986l-1.99 3.982Zm7.963 0h2.986l1.991-3.982V5h-5.972v5.972h2.986l-1.99 3.982Z"}))};$.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var H=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M13.3 1A9.8 9.8 0 0 0 1.1 7a9.4 9.4 0 0 0 6.2 12c5 1.5 10.3-1 12.1-5.8.2-.6-.1-1.3-.7-1.5-.7-.2-1.4.1-1.6.7a7.3 7.3 0 0 1-9 4.3 7 7 0 0 1-4.7-8.9 7.3 7.3 0 0 1 12-2.8L13 7.4c-.5.5-.3.8.3.8h5.5c.7 0 1.2-.5 1.2-1.1V1.8c0-.7-.4-.8-.9-.4l-2 2c-1-1-2.3-1.9-3.8-2.4z",fillRule:"evenodd"}))};H.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};var V=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M12.809 8.182a.898.898 0 1 1-1.798 0V4.058L8.576 6.494a.898.898 0 1 1-1.271-1.271l3.97-3.97a.925.925 0 0 1 1.27 0l4.026 4.026a.898.898 0 1 1-1.27 1.27l-2.492-2.49v4.123Zm.015 11.75 2.435-2.436a.899.899 0 1 1 1.27 1.271l-3.969 3.97a.896.896 0 0 1-1.27 0L7.264 18.71a.898.898 0 1 1 1.27-1.271l2.492 2.491v-4.124a.898.898 0 1 1 1.798 0v4.124Zm-.902-6.479a1.516 1.516 0 1 1 0-3.032 1.516 1.516 0 0 1 0 3.032Z"}))};V.defaultProps={viewBox:"0 0 24 24"};var G=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M20.526 18.236a1.619 1.619 0 1 1-2.29 2.29l-3.341-3.342c-.237-.237-.666-.296-.964-.137 0 0 .04-.01-.22.108a6.881 6.881 0 1 1 3.44-3.436c-.117.258-.105.214-.105.214a.86.86 0 0 0 .138.962l3.342 3.341Zm-9.677-3.466a3.921 3.921 0 1 0 0-7.842 3.921 3.921 0 0 0 0 7.842Z"}))};G.defaultProps={viewBox:"0 0 24 24"};var K=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M18.887 12.874c.037-.287.065-.575.065-.88 0-.306-.028-.594-.065-.881l1.954-1.484a.445.445 0 0 0 .11-.575L19.1 5.944c-.111-.198-.361-.27-.565-.198l-2.306.9c-.482-.36-1-.657-1.565-.882l-.352-2.382a.448.448 0 0 0-.454-.377h-3.704a.448.448 0 0 0-.454.377l-.352 2.382a7.17 7.17 0 0 0-1.565.881l-2.306-.899a.458.458 0 0 0-.565.198L3.06 9.054a.435.435 0 0 0 .111.575l1.954 1.484a6.923 6.923 0 0 0-.064.88c0 .297.027.594.064.881l-1.954 1.484a.445.445 0 0 0-.11.575l1.851 3.11c.112.198.362.27.565.198l2.306-.9c.482.36 1 .657 1.565.882l.352 2.382a.448.448 0 0 0 .454.377h3.704a.448.448 0 0 0 .454-.377l.352-2.382a7.17 7.17 0 0 0 1.565-.881l2.306.899c.213.08.454 0 .565-.198l1.852-3.11a.445.445 0 0 0-.111-.575l-1.954-1.484Zm-6.878 2.132a3.017 3.017 0 0 1-3.013-3.013 3.017 3.017 0 0 1 3.013-3.014 3.017 3.017 0 0 1 3.014 3.014 3.017 3.017 0 0 1-3.014 3.013Z"}))};K.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var Z=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#1E2532",fillRule:"nonzero",d:"M16.5 18c-3.025 0-5.5-2.634-5.5-5.854v-.292C11 8.634 13.475 6 16.5 6S22 8.634 22 11.854v.292C22 15.366 19.525 18 16.5 18ZM16 29c-3.738 0-7.192-1.689-9.39-4.335-.908-1.064-.798-2.7.302-3.601C7.736 20.409 8.753 20 9.88 20h12.645c.742 0 1.43.191 2.062.491 1.43.737 1.869 2.592.88 3.874C23.24 27.175 19.875 29 16 29Z"}))};Z.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32"};var Y=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M10 4h3a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm7 0h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1ZM3 4h3a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Z"}))};Y.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var X=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M2.975 7.004c.002-.477.412-.947.897-.948h9.451l-.816 1.896H3.872c-.485 0-.895-.47-.897-.948Zm.017 8.97c.001.478.395 1.063.88 1.064H8.57c.01-.58.1-1.425.205-1.996H3.872c-.485.001-.879.524-.88 1.001v-.068Zm7.921-5.008.762-1.997H3.872c-.486 0-.933.521-.933.999 0 .477.447.998.933.998h7.041ZM2.95 13.041c0 .477.437.965.922.966H9.18c.096-.258.301-.716.419-.968l.445-.964H3.872c-.485 0-.921.489-.922.966Zm17.099-5.908.395-.849a2.296 2.296 0 0 0-.176-2.374 2.39 2.39 0 0 0-2.207-.984 2.368 2.368 0 0 0-1.936 1.433l-4.712 10.19a9.619 9.619 0 0 0-.699 5.953.608.608 0 0 0 .35.435c.182.081.392.071.564-.027a9.846 9.846 0 0 0 4.104-4.436l3.628-7.843.689-1.498Z"}))};X.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};const Q={add:o,"add-with":a,arrow:s,azure:l,bitbucket:u,bold:c,check:d,chevron:f,"chevron-double":p,circle:h,close:m,code:g,"code-block":v,"drag-handle":y,eye:b,folder:w,github:_,gitlab:x,gitea:k,grid:E,h1:S,h2:C,hOptions:T,home:O,image:A,"info-circle":P,italic:R,link:D,list:M,"list-bulleted":I,"list-numbered":L,markdown:j,media:N,"media-alt":F,decap:B,"decap-cms":B,"new-tab":z,page:U,pages:q,"pages-alt":W,quote:$,refresh:H,scroll:V,search:G,settings:K,user:Z,workflow:Y,write:X};t.default=Q},52798:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(70894)),i=(s(n(2784)),s(n(10304))),o=n(29309),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}const l={small:"28px",large:"40px"},u=(0,r.default)("button",{target:"em2wuvj0",label:"ButtonRound"})(o.buttons.button,";",o.shadows.dropMiddle,";background-color:",o.colorsRaw.white,";color:",(e=>o.colors[e.isActive?"active":"inactive"]),";border-radius:32px;display:flex;justify-content:center;align-items:center;width:",(e=>l[e.size]),";height:",(e=>l[e.size]),";padding:0;");t.default=function({size:e,isActive:t,type:n,onClick:r,className:o,title:s}){return(0,a.jsx)(u,{size:e,isActive:t,className:o,onClick:r,title:s},(0,a.jsx)(i.default,{type:n,size:e}))}},83913:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(70894)),i=(l(n(2784)),l(n(13980))),o=l(n(10304)),a=n(29309),s=n(28165);function l(e){return e&&e.__esModule?e:{default:e}}const u=(0,r.default)("div",{target:"e11ki7in3",label:"TopBar"})("display:flex;justify-content:space-between;height:26px;border-radius:",a.lengths.borderRadius," ",a.lengths.borderRadius," 0 0;position:relative;"),c=(0,r.default)("button",{target:"e11ki7in2",label:"TopBarButton"})(a.buttons.button,";color:",a.colors.controlLabel,";background:transparent;font-size:16px;line-height:1;padding:0;width:32px;text-align:center;cursor:pointer;display:flex;justify-content:center;align-items:center;"),d=c.withComponent("span",{target:"e11ki7in4",label:"TopBarButtonSpan"}),f=(0,r.default)(d,{target:"e11ki7in1",label:"DragIconContainer"})({name:"1nwpzc",styles:"width:100%;cursor:move"});function p({Wrapper:e,id:t}){return(0,s.jsx)(e,{id:t},(0,s.jsx)(f,null,(0,s.jsx)(o.default,{type:"drag-handle",size:"small"})))}function h(e){const{className:t,collapsed:n,onCollapseToggle:r,onRemove:i,dragHandle:a,id:l}=e;return(0,s.jsx)(u,{className:t},r?(0,s.jsx)(c,{onClick:r},(0,s.jsx)(o.default,{type:"chevron",size:"small",direction:n?"right":"down"})):null,a?(0,s.jsx)(p,{Wrapper:a,id:l}):null,i?(0,s.jsx)(c,{onClick:i},(0,s.jsx)(o.default,{type:"close",size:"small"})):null)}h.propTypes={className:i.default.string,collapsed:i.default.bool,onCollapseToggle:i.default.func,onRemove:i.default.func};const m=(0,r.default)(h,{target:"e11ki7in0",label:"StyledListItemTopBar"})("display:flex;justify-content:space-between;height:26px;border-radius:",a.lengths.borderRadius," ",a.lengths.borderRadius," 0 0;position:relative;");t.default=m},26103:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Loader=void 0;var r=u(n(70894)),i=u(n(2784)),o=u(n(13980)),a=n(28165),s=n(7411),l=n(29309);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d={disabled:{name:"v06iuk-disabled",styles:"display:none;label:disabled;"},active:{name:"1426nog-active",styles:"display:block;label:active;"},enter:{name:"1rrod3j-enter",styles:"opacity:0.01;label:enter;"},enterActive:{name:"ssvs1t-enterActive",styles:"opacity:1;transition:opacity 500ms ease-in;label:enterActive;"},exit:{name:"t407yk-exit",styles:"opacity:1;label:exit;"},exitActive:{name:"1npgmu6-exitActive",styles:"opacity:0.01;transition:opacity 300ms ease-in;label:exitActive;"}},f={loader:a.keyframes` + `),h.editorComponents=h.editorComponents.delete(e.id))}h.editorComponents=h.editorComponents.set(t.id,t)}function E(){return h.editorComponents}function C(e){h.remarkPlugins.push(e)}function S(){return h.remarkPlugins}function A(e,t){h.widgetValueSerializers[e]=t}function T(e){return h.widgetValueSerializers[e]}function O(e,t){e&&t?h.backends[e]?console.error(`Backend [${e}] already registered. Please choose a different name.`):h.backends[e]={init:(...e)=>new t(...e)}:console.error("Backend parameters invalid. example: CMS.registerBackend('myBackend', BackendClass)")}function P(e){return h.backends[e]}function R(e,t){if(h.mediaLibraries.find((t=>e.name===t.name)))throw new Error(`A media library named ${e.name} has already been registered.`);h.mediaLibraries.push(c(c({},e),{},{options:t}))}function D(e){return h.mediaLibraries.find((t=>t.name===e))}function M(e){if(!f.includes(e))throw new Error(`Invalid event name '${e}'`)}function I(e){return M(e),[...h.eventHandlers[e]]}function L({name:e,handler:t},n={}){M(e),h.eventHandlers[e].push({handler:t,options:n})}async function j({name:e,data:t}){M(e);const n=h.eventHandlers[e];let r=c({},t);for(const{handler:e,options:i}of n){const n=await e(r,i);if(void 0!==n){const e=r.entry.set("data",n);r=c(c({},t),{},{entry:e})}}return r.entry.get("data")}function N({name:e,handler:t}){M(e),h.eventHandlers[e]=t?h.eventHandlers[e].filter((e=>e.handler!==t)):[]}function F(e,t){e&&t?h.locales[e]=t:console.error("Locale parameters invalid. example: CMS.registerLocale('locale', phrases)")}function B(e){return h.locales[e]}function z(e,t,n){h.formats[e]={extension:t,formatter:n}}function U(){return h.formats}function q(){return Object.entries(h.formats).reduce((function(e,[t,{extension:n}]){return c(c({},e),{},{[t]:n})}),{})}function W(){return Object.entries(h.formats).reduce((function(e,[t,{formatter:n}]){return c(c({},e),{},{[t]:n})}),{})}t.default={registerPreviewStyle:m,getPreviewStyles:g,registerPreviewTemplate:v,getPreviewTemplate:y,registerWidget:b,getWidget:w,getWidgets:_,resolveWidget:x,registerEditorComponent:k,getEditorComponents:E,registerRemarkPlugin:C,getRemarkPlugins:S,registerWidgetValueSerializer:A,getWidgetValueSerializer:T,registerBackend:O,getBackend:P,registerMediaLibrary:R,getMediaLibrary:D,registerLocale:F,getLocale:B,registerEventListener:L,removeEventListener:N,getEventListeners:I,invokeEvent:j,registerCustomFormat:z,getCustomFormats:U,getCustomFormatsExtensions:q,getCustomFormatsFormatters:W}},33188:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeValues=function(e,t){return s(e,t,"deserialize")},t.serializeValues=function(e,t){return s(e,t,"serialize")};var r,i=(r=n(1842))&&r.__esModule?r:{default:r},o=n(46670),a=n(41891);function s(e,t,n){let r=t.reduce(((t,r)=>{const l=r.get("name"),u=e.get(l),c=(0,a.getWidgetValueSerializer)(r.get("widget")),d=r.get("fields");return d&&o.List.isList(u)?t.set(l,u.map((e=>s(e,d,n)))):d&&o.Map.isMap(u)?t.set(l,s(u,d,n)):c&&!(0,i.default)(u)?t.set(l,c[n](u)):(0,i.default)(u)?t:t.set(l,u)}),(0,o.Map)());return r=e.mergeDeep(r),r}},9904:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addParams=function(e,t){const n=s.default.parse(e,!0);return n.query=p(p({},n.query),t),s.default.format(n)},t.getCharReplacer=b,t.getCollectionUrl=function(e,t){return h(`/collections/${e}`,t)},t.getNewEntryUrl=function(e,t){return h(`/collections/${e}/new`,t)},t.joinUrlPath=function(e,...t){return(0,l.default)(e,...t)},t.sanitizeChar=function(e,t){const{encoding:n="unicode",sanitize_replacement:r=""}=t||{};return b(n,r)(e)},t.sanitizeSlug=function(e,t){if(!(0,a.default)(e))throw new Error("The input slug must be a string.");const{encoding:n,clean_accents:s,sanitize_replacement:l}=t||{},d=(0,i.default)([...s?[u.default.remove]:[],(0,r.default)(w,{replacement:l,encoding:n}),(0,r.default)(c.default,{replacement:l})])(e),f=new RegExp(`(?:${(0,o.default)(l)})+`,"g"),p=new RegExp(`${(0,o.default)(l)}$`),h=new RegExp(`^${(0,o.default)(l)}`);return d.replace(f,l).replace(h,"").replace(p,"")},t.sanitizeURI=w,t.stripProtocol=function(e){const t=e.indexOf("//");return t>-1?e.slice(t+2):e};var r=d(n(26434)),i=d(n(85395)),o=d(n(89166)),a=d(n(85505)),s=d(n(883)),l=d(n(49705)),u=d(n(63449)),c=d(n(17826));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;tn(e)?e:t}function w(e,t){const{replacement:n="",encoding:r="unicode"}=t||{};if(!(0,a.default)(e))throw new Error("The input slug must be a string.");if(!(0,a.default)(n))throw new Error("`options.replacement` must be a string.");return Array.from(e).map(b(r,n)).join("")}},72649:(e,t,n)=>{"use strict";var r,i=(r=n(25291))&&r.__esModule?r:{default:r},o=n(41891),a=n(21837),s=n(54750),l=n(68104);function u(e){return a.store.dispatch((0,l.insertMedia)(e,void 0))}const c=(0,i.default)((async function(e,t){const n=(0,o.getMediaLibrary)(e);if(n){const e=await n.init({options:t,handleInsert:u});a.store.dispatch((0,l.createMediaLibrary)(e))}else{const t=new Error(`Missing external media library '${e}'. Please use 'registerMediaLibrary' to register it.`);a.store.dispatch((0,s.configFailed)(t))}}));a.store.subscribe((()=>{const e=a.store.getState();if(e){var t;const n=null===(t=e.config.media_library)||void 0===t?void 0:t.name;if(n&&!e.mediaLibrary.get("externalLibrary")){const t=e.config.media_library;c(n,t)}}}))},11449:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=t.default=void 0;var r=n(30412),i=n(76167);const o=t.defaultState={isFetching:!1,user:void 0,error:void 0},a=(0,r.produce)(((e,t)=>{switch(t.type){case i.AUTH_REQUEST:e.isFetching=!0;break;case i.AUTH_SUCCESS:e.user=t.payload;break;case i.AUTH_FAILURE:e.error=t.payload&&t.payload.toString();break;case i.AUTH_REQUEST_DONE:e.isFetching=!1;break;case i.LOGOUT:e.user=void 0,e.isFetching=!1}}),o);t.default=a},45624:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getFieldsNames=C,t.getFileFromSlug=x,t.selectAllowDeletion=function(e){return w[e.get("type")].allowDeletion(e)},t.selectAllowNewEntries=function(e){return w[e.get("type")].allowNewEntries(e)},t.selectDefaultSortableFields=function(e,t,n){let r=d.SORTABLE_FIELDS.map((r=>{const i=O(e,r);return!t.isGitBackend()||"author"!==r||i||n?i:c.COMMIT_AUTHOR})).filter(Boolean);return t.isGitBackend()&&!n&&(r=[c.COMMIT_DATE,...r]),r},t.selectEntryCollectionTitle=function(e,t){const n=e.get("summary");if(n)return(0,h.summaryFormatter)(n,t,e);if(e.get("type")==u.FILES){const n=E(e,t.get("slug"));if(n)return n}const r=t.get("data"),i=O(e,"title"),o=i&&r.getIn(y(i));return o||"title"===i?o:r.getIn(y("title"))},t.selectEntryPath=function(e,t){return w[e.get("type")].entryPath(e,t)},t.selectEntrySlug=function(e,t){return w[e.get("type")].entrySlug(e,t)},t.selectField=S,t.selectFields=function(e,t){return w[e.get("type")].fields(e,t)},t.selectFieldsComments=function(e,t){let n=[];e.has("folder")?n=e.get("fields").toArray():e.has("files")&&(n=e.get("files").find((e=>(null==e?void 0:e.get("name"))===t.get("slug"))).get("fields").toArray());const r={};return C(n).forEach((t=>{const n=S(e,t);null!=n&&n.has("comment")&&(r[t]=n.get("comment"))})),r},t.selectFieldsWithMediaFolders=k,t.selectFileEntryLabel=E,t.selectFolderEntryExtension=function(e){return w[u.FOLDER].entryExtension(e)},t.selectHasMetaPath=function(e){var t;return e.has("folder")&&e.get("type")===u.FOLDER&&e.has("meta")&&(null===(t=e.get("meta"))||void 0===t?void 0:t.has("path"))},t.selectIdentifier=T,t.selectInferredField=O,t.selectMediaFolders=function(e,t,n){const r=k(t,n.get("slug")).map((r=>(0,p.selectMediaFolder)(e,t,n,r)));return t.has("files")&&x(t,n.get("slug"))&&r.unshift((0,p.selectMediaFolder)(e,t,n,void 0)),t.has("media_folder")&&(t=t.delete("files"),r.unshift((0,p.selectMediaFolder)(e,t,n,void 0))),(0,o.Set)(r).toArray()},t.selectSortDataPath=function(e,t){return t===c.COMMIT_DATE?"updatedOn":t!==c.COMMIT_AUTHOR||S(e,t)?`data.${t}`:"author"},t.selectSortableFields=function(e,t){return e.get("sortable_fields").toArray().map((n=>{if(n===c.COMMIT_DATE)return{key:n,field:{name:n,label:t("collection.defaultFields.updatedOn.label")}};const r=S(e,n);return n!==c.COMMIT_AUTHOR||r?{key:n,field:null==r?void 0:r.toJS()}:{key:n,field:{name:n,label:t("collection.defaultFields.author.label")}}})).filter((e=>!!e.field)).map((e=>v(v({},e.field),{},{key:e.key})))},t.selectTemplateName=function(e,t){return w[e.get("type")].templateName(e,t)},t.selectViewFilters=function(e){return e.get("view_filters").toJS()},t.selectViewGroups=function(e){return e.get("view_groups").toJS()},t.traverseFields=A,t.updateFieldByKey=function(e,t,n){const r=S(e,t);if(!r)return e;let i=!1;return e.set("fields",A(e.get("fields",(0,o.List)()),(function(e){const t=e;return t===r?(i=!0,n(t)):t}),(()=>i)))};var r=m(n(89166)),i=m(n(72579)),o=n(46670),a=n(1704),s=m(n(54876)),l=n(54750),u=n(48781),c=n(93492),d=n(39010),f=n(85575),p=n(58308),h=n(59311);function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;te.get("fields"),entryPath(e,t){return`${e.get("folder").replace(/\/$/,"")}/${t}.${this.entryExtension(e)}`},entrySlug(e,t){var n;const i=e.get("folder").replace(/\/$/,"");return null===(n=t.split(i+"/").pop())||void 0===n?void 0:n.replace(new RegExp(`\\.${(0,r.default)(this.entryExtension(e))}$`),"")},allowNewEntries:e=>e.get("create"),allowDeletion:e=>e.get("delete",!0),templateName:e=>e.get("name")},[u.FILES]:{fileForEntry(e,t){const n=e.get("files");return n&&n.filter((e=>(null==e?void 0:e.get("name"))===t)).get(0)},fields(e,t){const n=this.fileForEntry(e,t);return n&&n.get("fields")},entryPath(e,t){const n=this.fileForEntry(e,t);return n&&n.get("file")},entrySlug(e,t){const n=e.get("files").filter((e=>(null==e?void 0:e.get("file"))===t)).get(0);return n&&n.get("name")},entryLabel(e,t){const n=this.fileForEntry(e,t);return n&&n.get("label")},allowNewEntries:()=>!1,allowDeletion:e=>e.get("delete",!1),templateName:(e,t)=>t}};function _(e){return e.reduce(((e,t)=>{if(t.has("media_folder")&&(e=[...e,t]),t.has("fields")){var n;const r=null===(n=t.get("fields"))||void 0===n?void 0:n.toArray();e=[...e,..._(r)]}else if(t.has("field")){const n=t.get("field");e=[...e,..._([n])]}else if(t.has("types")){var r;const n=null===(r=t.get("types"))||void 0===r?void 0:r.toArray();e=[...e,..._(n)]}return e}),[])}function x(e,t){var n;return null===(n=e.get("files"))||void 0===n?void 0:n.toArray().find((e=>e.get("name")===t))}function k(e,t){return e.has("folder")?_(e.get("fields").toArray()):e.has("files")?_((null===(n=x(e,t))||void 0===n?void 0:n.get("fields").toArray())||[]):[];var n}function E(e,t){return w[u.FILES].entryLabel(e,t)}function C(e,t=""){let n=e.map((e=>`${t}${e.get("name")}`));return e.forEach(((e,t)=>{if(e.has("fields")){var r;const i=null===(r=e.get("fields"))||void 0===r?void 0:r.toArray();n=[...n,...C(i,`${n[t]}.`)]}else if(e.has("field")){const r=e.get("field");n=[...n,...C([r],`${n[t]}.`)]}else if(e.has("types")){var i;const r=null===(i=e.get("types"))||void 0===i?void 0:i.toArray();n=[...n,...C(r,`${n[t]}.`)]}})),n}function S(e,t){const n=y(t);let r,i,a=e.get("fields",(0,o.List)()).toArray();for(;(r=n.shift())&&a;){var s,l,u,c,d;if(i=a.find((e=>e.get("name")===r)),null!==(s=i)&&void 0!==s&&s.has("fields"))a=null===(c=i)||void 0===c||null===(d=c.get("fields"))||void 0===d?void 0:d.toArray();else if(null!==(l=i)&&void 0!==l&&l.has("field")){var f;a=[null===(f=i)||void 0===f?void 0:f.get("field")]}else if(null!==(u=i)&&void 0!==u&&u.has("types")){var p,h;a=null===(p=i)||void 0===p||null===(h=p.get("types"))||void 0===h?void 0:h.toArray()}}return i}function A(e,t,n=(()=>!1)){return n()?e:e=e.map((e=>{const r=t(e);return n()?r:r.has("fields")?r.set("fields",A(r.get("fields"),t,n)):r.has("field")?r.set("field",A((0,o.List)([r.get("field")]),t,n).get(0)):r.has("types")?r.set("types",A(r.get("types"),t,n)):r})).toList()}function T(e){const t=e.get("identifier_field"),n=t?[t,...d.IDENTIFIER_FIELDS]:[...d.IDENTIFIER_FIELDS],r=C(e.get("fields",(0,o.List)()).toArray());return n.find((e=>r.find((t=>t.toLowerCase().trim()===e.toLowerCase().trim()))))}function O(e,t){if("title"===t&&e.get("identifier_field"))return T(e);const n=d.INFERABLE_FIELDS[t],r=e.get("fields");let i;if(!r||!n)return null;const o=r.filter((e=>(null==e?void 0:e.get("widget","string"))===n.type)).map((e=>null==e?void 0:e.get("name")));return i=o.filter((e=>-1!==n.synonyms.indexOf(e))),i&&i.size>0?i.first():(i=r.filter((e=>-1!==n.secondaryTypes.indexOf(null==e?void 0:e.get("widget","string")))).map((e=>null==e?void 0:e.get("name"))).filter((e=>-1!==n.synonyms.indexOf(e))),i&&i.size>0?i.first():n.fallbackToFirstField&&o.size>0?o.first():(n.showError&&(0,s.default)(`The Field ${t} is missing for the collection “${e.get("name")}”`,`Decap CMS tries to infer the entry ${t} automatically, but one couldn't be found for entries of the collection “${e.get("name")}”. Please check your site configuration.`),null))}t.default=function(e=b,t){if(t.type===l.CONFIG_SUCCESS){const e=t.payload.collections;let n=(0,o.OrderedMap)({});return e.forEach((e=>{n=n.set(e.name,(0,o.fromJS)(e))})),n}return e}},16797:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(74081),o=(r=n(36642))&&r.__esModule?r:{default:r};function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){return(0,i.combineReducers)(function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectLocale=function(e){return e.locale||"en"},t.selectUseWorkflow=function(e){return e.publish_mode===o.EDITORIAL_WORKFLOW};var r=n(30412),i=n(54750),o=n(61928);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t{switch(t.type){case i.CONFIG_REQUEST:e.isFetching=!0;break;case i.CONFIG_SUCCESS:return s(s({},t.payload),{},{isFetching:!1,error:void 0});case i.CONFIG_FAILURE:e.isFetching=!1,e.error=t.payload.toString()}}),{isFetching:!0});t.default=l},63647:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectCollectionEntriesCursor=function(e,t){return new i.Cursor(e.getIn(["cursorsByType","collectionEntries",t]))};var r=n(46670),i=n(33806),o=n(50236);t.default=function(e=(0,r.fromJS)({cursorsByType:{collectionEntries:{}}}),t){switch(t.type){case o.ENTRIES_SUCCESS:return e.setIn(["cursorsByType","collectionEntries",t.payload.collection],i.Cursor.create(t.payload.cursor).store);case o.FILTER_ENTRIES_SUCCESS:case o.GROUP_ENTRIES_SUCCESS:case o.SORT_ENTRIES_SUCCESS:return e.deleteIn(["cursorsByType","collectionEntries",t.payload.collection]);default:return e}}},54989:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectDeployPreview=function(e,t,n){return e[`${t}.${n}`]};var r=n(30412),i=n(66145);const o=(0,r.produce)(((e,t)=>{switch(t.type){case i.DEPLOY_PREVIEW_REQUEST:{const{collection:n,slug:r}=t.payload,i=`${n}.${r}`;e[i]=e[i]||{},e[i].isFetching=!0;break}case i.DEPLOY_PREVIEW_SUCCESS:{const{collection:n,slug:r,url:i,status:o}=t.payload,a=`${n}.${r}`;e[a].isFetching=!1,e[a].url=i,e[a].status=o;break}case i.DEPLOY_PREVIEW_FAILURE:{const{collection:n,slug:r}=t.payload;e[`${n}.${r}`].isFetching=!1;break}}}),{});t.default=o},94778:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectUnpublishedEntriesByStatus=function(e,t){return e?e.get("entities").filter((e=>e.get("status")===t)).valueSeq():null},t.selectUnpublishedEntry=function(e,t,n){return e&&e.getIn(["entities",`${t}.${n}`])},t.selectUnpublishedSlugs=function(e,t){return e.get("entities")?e.get("entities").filter(((e,n)=>(0,i.default)(n,`${t}.`))).map((e=>e.get("slug"))).valueSeq():null};var r,i=(r=n(37994))&&r.__esModule?r:{default:r},o=n(46670),a=n(61928),s=n(91358),l=n(54750);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t{t.payload.entries.forEach((t=>e.setIn(["entities",`${t.collection}.${t.slug}`],(0,o.fromJS)(t).set("isFetching",!1)))),e.set("pages",(0,o.Map)(c(c({},t.payload.pages),{},{ids:(0,o.List)(t.payload.entries.map((e=>e.slug)))})))}));case s.UNPUBLISHED_ENTRY_PERSIST_REQUEST:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isPersisting"],!0);case s.UNPUBLISHED_ENTRY_PERSIST_SUCCESS:return e.withMutations((e=>{e.setIn(["entities",`${t.payload.collection}.${t.payload.entry.get("slug")}`],(0,o.fromJS)(t.payload.entry)),e.deleteIn(["entities",`${t.payload.collection}.${t.payload.entry.get("slug")}`,"isPersisting"]),e.updateIn(["pages","ids"],(0,o.List)(),(e=>e.push(t.payload.entry.get("slug"))))}));case s.UNPUBLISHED_ENTRY_PERSIST_FAILURE:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isPersisting"],!1);case s.UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isUpdatingStatus"],!0);case s.UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS:return e.withMutations((e=>{e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"status"],t.payload.newStatus),e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isUpdatingStatus"],!1)}));case s.UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isUpdatingStatus"],!1);case s.UNPUBLISHED_ENTRY_PUBLISH_REQUEST:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isPublishing"],!0);case s.UNPUBLISHED_ENTRY_PUBLISH_SUCCESS:case s.UNPUBLISHED_ENTRY_DELETE_SUCCESS:return e.deleteIn(["entities",`${t.payload.collection}.${t.payload.slug}`]);case s.UNPUBLISHED_ENTRY_PUBLISH_FAILURE:default:return e}}},58308:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectEditingDraft=function(e){const t=e.get("entry");return t&&!t.isEmpty()},t.selectEntries=function(e,t){const n=t.get("name");let r=q(e,n);const o=F(e,n);if(o&&o.length>0){const e=o.map((e=>(0,m.selectSortDataPath)(t,e.get("key")))),n=o.map((e=>e.get("direction")===p.SortDirection.Ascending?"asc":"desc"));r=(0,u.fromJS)((0,i.default)(r.toJS(),e,n))}const a=B(e,n);return a&&a.length>0&&(r=r.filter((e=>a.every((t=>{const n=t.get("pattern"),r=t.get("field"),i=(e.get("data")||(0,u.Map)()).getIn(k(r));return void 0!==i&&new RegExp(String(n)).test(String(i))})))).toList()),r},t.selectEntriesFilter=L,t.selectEntriesFilterFields=B,t.selectEntriesGroup=j,t.selectEntriesGroupField=N,t.selectEntriesLoaded=function(e,t){return!!e.getIn(["pages",t])},t.selectEntriesSort=I,t.selectEntriesSortFields=F,t.selectEntry=z,t.selectEntryByPath=function(e,t,n){const r=U(e,t),i=r&&r.map((n=>z(e,t,n)));return i&&i.find((e=>(null==e?void 0:e.get("path"))===n))},t.selectGroups=function(e,t){const n=t.get("name"),i=q(e,n),o=N(e,n);if(void 0===o)return[];let a={};const s=(0,r.default)(i.toArray(),(e=>{const t=function(e,t){const n=t.get("label"),r=t.get("field"),i=e.getIn(["data",...k(r)]);if(void 0===i)return{id:"missing_value",label:n,value:i};const o=String(i);if(t.has("pattern")){const e=t.get("pattern");let i="";try{const t=new RegExp(e),n=o.match(t);n&&(i=n[0])}catch(t){console.warn(`Invalid view group pattern '${e}' for field '${r}'`,t)}return{id:`${n}${i}`,label:n,value:i}}return{id:`${n}${i}`,label:n,value:"boolean"==typeof i?i:o}}(e,o);return a=x(x({},a),{},{[t.id]:t}),t.id})),l=Object.entries(s).map((([e,t])=>x(x({},a[e]),{},{paths:(0,u.Set)(t.map((e=>e.get("path"))))})));return l},t.selectIsFetching=function(e,t){return e.getIn(["pages",t,"isFetching"],!1)},t.selectMediaFilePath=function(e,t,n,r,i){if((0,d.isAbsolutePath)(r))return r;const o=K(e,t,n,i);return(0,c.join)(o,(0,d.basename)(r))},t.selectMediaFilePublicPath=function(e,t,n,r,i){if((0,d.isAbsolutePath)(n))return n;const o="public_folder";let a=e[o];return H(o,t,null==r?void 0:r.get("slug"),i)&&(a=G(o,e,t,r,i)),(0,d.isAbsolutePath)(a)?(0,b.joinUrlPath)(a,(0,d.basename)(n)):(0,c.join)(a,(0,d.basename)(n))},t.selectMediaFolder=K,t.selectPublishedSlugs=U,t.selectViewStyle=function(e){return e.get("viewStyle")};var r=w(n(3440)),i=w(n(34498)),o=w(n(16765)),a=w(n(829)),s=w(n(25291)),l=w(n(5648)),u=n(46670),c=n(21023),d=n(33806),f=n(1704),p=n(67964),h=n(59311),m=n(45624),g=n(15207),v=n(50236),y=n(78882),b=n(9904);function w(e){return e&&e.__esModule?e:{default:e}}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t{const e=localStorage.getItem(O);if(e)try{const t=JSON.parse(e);let n=(0,u.Map)();return Object.entries(t).forEach((([e,t])=>{let r=(0,u.OrderedMap)();(0,a.default)(Object.values(t),["index"]).forEach((e=>{const{key:t,direction:n}=e;r=r.set(t,(0,u.fromJS)({key:t,direction:n}))})),n=n.set(e,r)})),n}catch(e){return(0,u.Map)()}return(0,u.Map)()}));function D(e){if(e){const t={};e.keySeq().forEach((n=>{const r=n;e.get(r).valueSeq().toJS().map(((e,t)=>x(x({},e),{},{index:t}))).forEach((e=>{(0,o.default)(t,[r,e.key],e)}))})),localStorage.setItem(O,JSON.stringify(t))}else localStorage.removeItem(O)}const M=(0,s.default)((()=>localStorage.getItem(P)||(localStorage.setItem(P,y.VIEW_STYLE_LIST),y.VIEW_STYLE_LIST)));function I(e,t){const n=e.get("sort");return null==n?void 0:n.get(t)}function L(e,t){const n=e.get("filter");return(null==n?void 0:n.get(t))||(0,u.Map)()}function j(e,t){const n=e.get("group");return(null==n?void 0:n.get(t))||(0,u.Map)()}function N(e,t){const n=j(e,t);return null==n?void 0:n.valueSeq().find((e=>!0===(null==e?void 0:e.get("active"))))}function F(e,t){const n=I(e,t);return(null==n?void 0:n.valueSeq().filter((e=>(null==e?void 0:e.get("direction"))!==p.SortDirection.None)).toArray())||[]}function B(e,t){const n=L(e,t);return(null==n?void 0:n.valueSeq().filter((e=>!0===(null==e?void 0:e.get("active")))).toArray())||[]}function z(e,t,n){return e.getIn(["entities",`${t}.${n}`])}function U(e,t){return e.getIn(["pages",t,"ids"],(0,u.List)())}function q(e,t){const n=U(e,t);return n&&n.map((n=>z(e,t,n)))}const W="DRAFT_MEDIA_FILES";function $(e,t){return e.find((e=>(null==e?void 0:e.get("name"))===t))}function H(e,t,n,r){if(!t)return!1;if(r&&r.has(e))return!0;if(t.has("files")){const r=$(t.get("files"),n);if(r&&r.has(e))return!0}return!!t.has(e)}function V(e,t,n,r,i,o,a){const s=o.filter((e=>e===i))[0];if(s)return(0,h.folderFormatter)(s.has(e)?s.get(e):`{{${e}}}`,r,n,a,e,t.slug);for(let s of o){s.has(e)||(s=s.set(e,`{{${e}}}`));const o=(0,h.folderFormatter)(s.get(e),r,n,a,e,t.slug);let l=null;if(s.has("fields")?l=V(e,t,n,r,i,s.get("fields").toArray(),o):s.has("field")?l=V(e,t,n,r,i,[s.get("field")],o):s.has("types")&&(l=V(e,t,n,r,i,s.get("types").toArray(),o)),null!=l)return l}return null}function G(e,t,n,r,i){let o=t[e];if(n.has(e)||(n=n.set(e,`{{${e}}}`)),n.has("files")){o=(0,h.folderFormatter)(n.get(e),r,n,o,e,t.slug);let a=$(n.get("files"),null==r?void 0:r.get("slug"));if(a&&(a.has(e)||(a=a.set(e,`{{${e}}}`)),o=(0,h.folderFormatter)(a.get(e),r,n,o,e,t.slug),i)){const s=V(e,t,n,r,i,a.get("fields").toArray(),o);null!==s&&(o=s)}}else if(o=(0,h.folderFormatter)(n.get(e),r,n,o,e,t.slug),i){const a=V(e,t,n,r,i,n.get("fields").toArray(),o);null!==a&&(o=a)}return o}function K(e,t,n,r){const i="media_folder";let o=e[i];if(H(i,t,null==n?void 0:n.get("slug"),r)){const a=G(i,e,t,n,r);if(a.startsWith("/"))o=(0,c.join)(a);else{const e=null==n?void 0:n.get("path");o=e?(0,c.join)((0,c.dirname)(e),a):(0,c.join)(t.get("folder"),W)}}return(0,l.default)(o,"/")}t.default=function(e=(0,u.Map)({entities:(0,u.Map)(),pages:(0,u.Map)(),sort:R(),viewStyle:M()}),t){switch(t.type){case v.ENTRY_REQUEST:{const n=t.payload;return e.setIn(["entities",`${n.collection}.${n.slug}`,"isFetching"],!0)}case v.ENTRY_SUCCESS:{const n=t.payload;return E=n.collection,T=n.entry.slug,e.withMutations((e=>{e.setIn(["entities",`${E}.${T}`],(0,u.fromJS)(n.entry));const t=e.getIn(["pages",E,"ids"],(0,u.List)());t.includes(T)||e.setIn(["pages",E,"ids"],t.unshift(T))}))}case v.ENTRIES_REQUEST:{const n=t.payload;return e.withMutations((e=>{e.setIn(["pages",n.collection,"isFetching"],!0)}))}case v.ENTRIES_SUCCESS:{const n=t.payload;return E=n.collection,C=n.entries,S=n.append,A=n.page,e.withMutations((e=>{C.forEach((t=>e.setIn(["entities",`${E}.${t.slug}`],(0,u.fromJS)(t).set("isFetching",!1))));const t=(0,u.List)(C.map((e=>e.slug)));e.setIn(["pages",E],(0,u.Map)({page:A,ids:S?e.getIn(["pages",E,"ids"],(0,u.List)()).concat(t):t}))}))}case v.ENTRIES_FAILURE:return e.setIn(["pages",t.meta.collection,"isFetching"],!1);case v.ENTRY_FAILURE:{const n=t.payload;return e.withMutations((e=>{e.setIn(["entities",`${n.collection}.${n.slug}`,"isFetching"],!1),e.setIn(["entities",`${n.collection}.${n.slug}`,"error"],n.error.message)}))}case g.SEARCH_ENTRIES_SUCCESS:{const n=t.payload;return C=n.entries,e.withMutations((e=>{C.forEach((t=>e.setIn(["entities",`${t.collection}.${t.slug}`],(0,u.fromJS)(t).set("isFetching",!1))))}))}case v.ENTRY_DELETE_SUCCESS:{const n=t.payload;return e.withMutations((e=>{e.deleteIn(["entities",`${n.collectionName}.${n.entrySlug}`]),e.updateIn(["pages",n.collectionName,"ids"],(e=>e.filter((e=>e!==n.entrySlug))))}))}case v.SORT_ENTRIES_REQUEST:{const n=t.payload,{collection:r,key:i,direction:o}=n,a=e.withMutations((e=>{const t=(0,u.OrderedMap)({[i]:(0,u.Map)({key:i,direction:o})});e.setIn(["sort",r],t),e.setIn(["pages",r,"isFetching"],!0),e.deleteIn(["pages",r,"page"])}));return D(a.get("sort")),a}case v.GROUP_ENTRIES_SUCCESS:case v.FILTER_ENTRIES_SUCCESS:case v.SORT_ENTRIES_SUCCESS:{const n=t.payload,{collection:r,entries:i}=n;return C=i,e.withMutations((e=>{C.forEach((t=>e.setIn(["entities",`${t.collection}.${t.slug}`],(0,u.fromJS)(t).set("isFetching",!1)))),e.setIn(["pages",r,"isFetching"],!1);const t=(0,u.List)(C.map((e=>e.slug)));e.setIn(["pages",r],(0,u.Map)({page:1,ids:t}))}))}case v.SORT_ENTRIES_FAILURE:{const n=t.payload,{collection:r,key:i}=n,o=e.withMutations((e=>{e.deleteIn(["sort",r,i]),e.setIn(["pages",r,"isFetching"],!1)}));return D(o.get("sort")),o}case v.FILTER_ENTRIES_REQUEST:{const n=t.payload,{collection:r,filter:i}=n;return e.withMutations((e=>{const t=e.getIn(["filter",r,i.id],(0,u.fromJS)(i));e.setIn(["filter",r,t.get("id")],t.set("active",!t.get("active")))}))}case v.FILTER_ENTRIES_FAILURE:{const n=t.payload,{collection:r,filter:i}=n;return e.withMutations((e=>{e.deleteIn(["filter",r,i.id]),e.setIn(["pages",r,"isFetching"],!1)}))}case v.GROUP_ENTRIES_REQUEST:{const n=t.payload,{collection:r,group:i}=n;return e.withMutations((e=>{const t=e.getIn(["group",r,i.id],(0,u.fromJS)(i));e.deleteIn(["group",r]),e.setIn(["group",r,t.get("id")],t.set("active",!t.get("active")))}))}case v.GROUP_ENTRIES_FAILURE:{const n=t.payload,{collection:r,group:i}=n;return e.withMutations((e=>{e.deleteIn(["group",r,i.id]),e.setIn(["pages",r,"isFetching"],!1)}))}case v.CHANGE_VIEW_STYLE:{const r=t.payload,{style:i}=r,o=e.withMutations((e=>{e.setIn(["viewStyle"],i)}));return(n=o.get("viewStyle"))?localStorage.setItem(P,n):localStorage.removeItem(P),o}default:return e}var n}},51748:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectCustomPath=function(e,t){if(!(0,c.selectHasMetaPath)(e))return;const n=t.getIn(["entry","meta"]),r=n&&n.get("path"),o=(0,i.default)(e.toJS(),["meta","path","index_file"]),a=(0,c.selectFolderEntryExtension)(e);return r&&(0,s.join)(e.get("folder"),r,`${o}.${a}`)};var r,i=(r=n(72579))&&r.__esModule?r:{default:r},o=n(46670),a=n(29987),s=n(21023),l=n(50236),u=n(91358),c=n(45624),d=n(13943);const f=(0,o.Map)({entry:(0,o.Map)(),fieldsMetaData:(0,o.Map)(),fieldsErrors:(0,o.Map)(),hasChanged:!1,key:""});t.default=function(e=(0,o.Map)(),t){switch(t.type){case l.DRAFT_CREATE_FROM_ENTRY:return e.withMutations((e=>{e.set("entry",(0,o.fromJS)(t.payload.entry)),e.setIn(["entry","newRecord"],!1),e.set("fieldsMetaData",(0,o.Map)()),e.set("fieldsErrors",(0,o.Map)()),e.set("hasChanged",!1),e.set("key",(0,a.v4)())}));case l.DRAFT_CREATE_EMPTY:return e.withMutations((e=>{e.set("entry",(0,o.fromJS)(t.payload)),e.setIn(["entry","newRecord"],!0),e.set("fieldsMetaData",(0,o.Map)()),e.set("fieldsErrors",(0,o.Map)()),e.set("hasChanged",!1),e.set("key",(0,a.v4)())}));case l.DRAFT_CREATE_FROM_LOCAL_BACKUP:return e.withMutations((e=>{const t=e.get("localBackup").get("entry");e.delete("localBackup"),e.set("entry",t),e.setIn(["entry","newRecord"],!t.get("path")),e.set("fieldsMetaData",(0,o.Map)()),e.set("fieldsErrors",(0,o.Map)()),e.set("hasChanged",!0),e.set("key",(0,a.v4)())}));case l.DRAFT_CREATE_DUPLICATE_FROM_ENTRY:return e.withMutations((e=>{e.set("entry",(0,o.fromJS)(t.payload)),e.setIn(["entry","newRecord"],!0),e.set("mediaFiles",(0,o.List)()),e.set("fieldsMetaData",(0,o.Map)()),e.set("fieldsErrors",(0,o.Map)()),e.set("hasChanged",!0)}));case l.DRAFT_DISCARD:return f;case l.DRAFT_LOCAL_BACKUP_RETRIEVED:{const{entry:n}=t.payload,r=new o.Map({entry:(0,o.fromJS)(n)});return e.set("localBackup",r)}case l.DRAFT_CHANGE_FIELD:return e.withMutations((e=>{const{field:n,value:r,metadata:i,entries:a,i18n:s}=t.payload,l=n.get("name"),u=n.get("meta"),c=s&&(0,d.getDataPath)(s.currentLocale,s.defaultLocale)||["data"];u?e.setIn(["entry","meta",l],r):(e.setIn(["entry",...c,l],r),s&&(e=(0,d.duplicateI18nFields)(e,n,s.locales,s.defaultLocale))),e.mergeDeepIn(["fieldsMetaData"],(0,o.fromJS)(i));const f=e.getIn(["entry",...c]),p=e.getIn(["entry","meta"]);e.set("hasChanged",!a.some((e=>f.equals(e.get(...c))))||!a.some((e=>p.equals(e.get("meta")))))}));case l.DRAFT_VALIDATION_ERRORS:return 0===t.payload.errors.length?e.deleteIn(["fieldsErrors",t.payload.uniquefieldId]):e.setIn(["fieldsErrors",t.payload.uniquefieldId],t.payload.errors);case l.DRAFT_CLEAR_ERRORS:return e.set("fieldsErrors",(0,o.Map)());case l.ENTRY_PERSIST_REQUEST:case u.UNPUBLISHED_ENTRY_PERSIST_REQUEST:return e.setIn(["entry","isPersisting"],!0);case l.ENTRY_PERSIST_FAILURE:case u.UNPUBLISHED_ENTRY_PERSIST_FAILURE:return e.deleteIn(["entry","isPersisting"]);case u.UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST:return e.setIn(["entry","isUpdatingStatus"],!0);case u.UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE:case u.UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS:return e.deleteIn(["entry","isUpdatingStatus"]);case u.UNPUBLISHED_ENTRY_PUBLISH_REQUEST:return e.setIn(["entry","isPublishing"],!0);case u.UNPUBLISHED_ENTRY_PUBLISH_SUCCESS:case u.UNPUBLISHED_ENTRY_PUBLISH_FAILURE:return e.deleteIn(["entry","isPublishing"]);case l.ENTRY_PERSIST_SUCCESS:case u.UNPUBLISHED_ENTRY_PERSIST_SUCCESS:return e.withMutations((e=>{e.deleteIn(["entry","isPersisting"]),e.set("hasChanged",!1),e.getIn(["entry","slug"])||e.setIn(["entry","slug"],t.payload.slug)}));case l.ENTRY_DELETE_SUCCESS:return e.withMutations((e=>{e.deleteIn(["entry","isPersisting"]),e.set("hasChanged",!1)}));case l.ADD_DRAFT_ENTRY_MEDIA_FILE:return e.withMutations((e=>{const n=e.getIn(["entry","mediaFiles"]);e.setIn(["entry","mediaFiles"],n.filterNot((e=>e.get("id")===t.payload.id)).insert(0,(0,o.fromJS)(t.payload))),e.set("hasChanged",!0)}));case l.REMOVE_DRAFT_ENTRY_MEDIA_FILE:return e.withMutations((e=>{const n=e.getIn(["entry","mediaFiles"]);e.setIn(["entry","mediaFiles"],n.filterNot((e=>e.get("id")===t.payload.id))),e.set("hasChanged",!0)}));default:return e}}},3661:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(30412),i=n(76167);const o=["DEPLOY_PREVIEW","STATUS_REQUEST","STATUS_SUCCESS","STATUS_FAILURE"];function a(e){return o.some((t=>e.type.includes(t)))}const s=(0,r.produce)(((e,t)=>{!a(t)&&t.type.includes("REQUEST")?e.isFetching=!0:a(t)||!t.type.includes("SUCCESS")&&!t.type.includes("FAILURE")?t.type===i.USE_OPEN_AUTHORING&&(e.useOpenAuthoring=!0):e.isFetching=!1}),{isFetching:!1,useOpenAuthoring:!1});t.default=s},36642:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectDeployPreview=function(e,t,n){return b.selectDeployPreview(e.deploys,t,n)},t.selectEntries=function(e,t){return u.selectEntries(e.entries,t)},t.selectEntry=function(e,t,n){return u.selectEntry(e.entries,t,n)},t.selectIntegration=function(e,t,n){return s.selectIntegration(e.integrations,t,n)},t.selectPublishedSlugs=function(e,t){return u.selectPublishedSlugs(e.entries,t)},t.selectSearchedEntries=function(e,t){return(0,r.List)(e.search.entryIds).filter((e=>-1!==t.indexOf(e.collection))).map((t=>u.selectEntry(e.entries,t.collection,t.slug)))},t.selectUnpublishedEntriesByStatus=function(e,t){return f.selectUnpublishedEntriesByStatus(e.editorialWorkflow,t)},t.selectUnpublishedEntry=function(e,t,n){return f.selectUnpublishedEntry(e.editorialWorkflow,t,n)},t.selectUnpublishedSlugs=function(e,t){return f.selectUnpublishedSlugs(e.editorialWorkflow,t)};var r=n(46670),i=C(n(11449)),o=C(n(23260)),a=E(n(487)),s=a,l=E(n(58308)),u=l,c=C(n(63647)),d=E(n(94778)),f=d,p=C(n(51748)),h=C(n(45624)),m=C(n(56863)),g=C(n(33474)),v=C(n(90694)),y=E(n(54989)),b=y,w=C(n(3661)),_=C(n(18259)),x=C(n(85594));function k(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(k=function(e){return e?n:t})(e)}function E(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=k(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function C(e){return e&&e.__esModule?e:{default:e}}const S={auth:i.default,config:o.default,collections:h.default,search:m.default,integrations:a.default,entries:l.default,cursors:c.default,editorialWorkflow:d.default,entryDraft:p.default,medias:g.default,mediaLibrary:v.default,deploys:y.default,globalUI:w.default,status:_.default,notifications:x.default};t.default=S},487:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getIntegrations=s,t.selectIntegration=function(e,t,n){return t?e.getIn(["hooks",t,n],!1):e.getIn(["hooks",n],!1)};var r=n(46670),i=n(54750);const o=["hooks","collections","provider"];function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){const t=(e.integrations||[]).reduce(((t,n)=>{const{hooks:r,collections:i,provider:s}=n,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,o);return t.providers[s]=function(e){for(var t=1;te.name)):i).forEach((e=>{r.forEach((n=>{t.hooks[e]?t.hooks[e][n]=s:t.hooks[e]={[n]:s}}))})),t):(r.forEach((e=>{t.hooks[e]=s})),t)}),{providers:{},hooks:{}});return(0,r.fromJS)(t)}const l=(0,r.fromJS)({providers:{},hooks:{}});t.default=function(e=l,t){return t.type===i.CONFIG_SUCCESS?s(t.payload):e}},90694:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectMediaDisplayURL=function(e,t){return e.mediaLibrary.getIn(["displayURLs",t],(0,r.Map)())},t.selectMediaFileByPath=function(e,t){return f(e).find((e=>e.path===t))},t.selectMediaFiles=f;var r=n(46670),i=n(29987),o=n(21023),a=n(68104),s=n(58308),l=n(36642);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t(0,o.dirname)(e.path)===u)).map((e=>c({key:e.id},e)))}else d=n.get("files")||[];return d}t.default=function(e=(0,r.Map)(d),t){switch(t.type){case a.MEDIA_LIBRARY_CREATE:return e.withMutations((e=>{e.set("externalLibrary",t.payload),e.set("showMediaButton",t.payload.enableStandalone())}));case a.MEDIA_LIBRARY_OPEN:{const{controlID:n,forImage:i,privateUpload:o,config:a,field:s,value:l,replaceIndex:u}=t.payload,c=a||(0,r.Map)();return e.get("privateUpload")!==o?(0,r.Map)({isVisible:!0,forImage:i,controlID:n,canInsert:!!n,privateUpload:o,config:c,controlMedia:(0,r.Map)(),displayURLs:(0,r.Map)(),field:s,value:l,replaceIndex:u}):e.withMutations((e=>{e.set("isVisible",!0),e.set("forImage",null!=i&&i),e.set("controlID",null!=n?n:""),e.set("canInsert",!!n),e.set("privateUpload",o),e.set("config",c),e.set("field",null!=s?s:""),e.set("value",""==l&&c.get("multiple")?[]:null!=l?l:""),e.set("replaceIndex",null!=u&&u)}))}case a.MEDIA_LIBRARY_CLOSE:return e.set("isVisible",!1);case a.MEDIA_INSERT:{const{mediaPath:n}=t.payload,r=e.get("controlID"),i=e.get("value");if(!Array.isArray(i))return e.withMutations((e=>{e.setIn(["controlMedia",r],n)}));const o=e.get("replaceIndex"),a=Array.isArray(n)?n:[n],s=i;return"number"==typeof o?s[o]=a[0]:s.push(...a),e.withMutations((e=>{e.setIn(["controlMedia",r],s)}))}case a.MEDIA_REMOVE_INSERTED:{const n=t.payload.controlID;return e.setIn(["controlMedia",n],"")}case a.MEDIA_LOAD_REQUEST:return e.withMutations((e=>{e.set("isLoading",!0),e.set("isPaginating",t.payload.page>1)}));case a.MEDIA_LOAD_SUCCESS:{const{files:n=[],page:r,canPaginate:o,dynamicSearch:a,dynamicSearchQuery:s,privateUpload:l}=t.payload;if(e.get("privateUpload")!==l)return e;const u=n.map((e=>c(c({},e),{},{key:(0,i.v4)()})));return e.withMutations((e=>{if(e.set("isLoading",!1),e.set("isPaginating",!1),e.set("page",null!=r?r:1),e.set("hasNextPage",!!(o&&n.length>0)),e.set("dynamicSearch",null!=a&&a),e.set("dynamicSearchQuery",null!=s?s:""),e.set("dynamicSearchActive",!!s),r&&r>1){const t=e.get("files").concat(u);e.set("files",t)}else e.set("files",u)}))}case a.MEDIA_LOAD_FAILURE:return e.get("privateUpload")!==t.payload.privateUpload?e:e.set("isLoading",!1);case a.MEDIA_PERSIST_REQUEST:return e.set("isPersisting",!0);case a.MEDIA_PERSIST_SUCCESS:{const{file:n,privateUpload:r}=t.payload;return e.get("privateUpload")!==r?e:e.withMutations((e=>{const t=[c(c({},n),{},{key:(0,i.v4)()}),...e.get("files")];e.set("files",t),e.set("isPersisting",!1)}))}case a.MEDIA_PERSIST_FAILURE:return e.get("privateUpload")!==t.payload.privateUpload?e:e.set("isPersisting",!1);case a.MEDIA_DELETE_REQUEST:return e.set("isDeleting",!0);case a.MEDIA_DELETE_SUCCESS:{const{file:n,privateUpload:r}=t.payload,{key:i,id:o}=n;return e.get("privateUpload")!==r?e:e.withMutations((e=>{const t=e.get("files").filter((e=>i?e.key!==i:e.id!==o));e.set("files",t),e.deleteIn(["displayURLs",o]),e.set("isDeleting",!1)}))}case a.MEDIA_DELETE_FAILURE:return e.get("privateUpload")!==t.payload.privateUpload?e:e.set("isDeleting",!1);case a.MEDIA_DISPLAY_URL_REQUEST:return e.setIn(["displayURLs",t.payload.key,"isFetching"],!0);case a.MEDIA_DISPLAY_URL_SUCCESS:{const n=["displayURLs",t.payload.key];return e.setIn([...n,"isFetching"],!1).setIn([...n,"url"],t.payload.url)}case a.MEDIA_DISPLAY_URL_FAILURE:{const n=["displayURLs",t.payload.key];return e.setIn([...n,"isFetching"],!1).setIn([...n,"err"],t.payload.err||!0).deleteIn([...n,"url"])}default:return e}}},33474:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectIsLoadingAsset=function(e){return Object.values(e).some((e=>e.isLoading))};var r=n(30412),i=n(71033);const o=(0,r.produce)(((e,t)=>{switch(t.type){case i.ADD_ASSETS:t.payload.forEach((t=>{e[t.path]={asset:t,isLoading:!1,error:null}}));break;case i.ADD_ASSET:{const n=t.payload;e[n.path]={asset:n,isLoading:!1,error:null};break}case i.REMOVE_ASSET:{const n=t.payload;delete e[n];break}case i.LOAD_ASSET_REQUEST:{const{path:n}=t.payload;e[n]=e[n]||{},e[n].isLoading=!0;break}case i.LOAD_ASSET_SUCCESS:{const{path:n}=t.payload;e[n]=e[n]||{},e[n].isLoading=!1,e[n].error=null;break}case i.LOAD_ASSET_FAILURE:{const{path:n,error:r}=t.payload;e[n]=e[n]||{},e[n].isLoading=!1,e[n].error=r}}}),{});t.default=o},85594:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(30412),i=n(29987),o=n(5690);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t{switch(t.type){case o.NOTIFICATIONS_CLEAR:e.notifications=[];break;case o.NOTIFICATION_DISMISS:e.notifications=e.notifications.filter((e=>e.id!==t.id));break;case o.NOTIFICATION_SEND:e.notifications=[...e.notifications,s({id:(0,i.v4)()},t.payload)]}}),{notifications:[]});t.default=l},56863:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(30412),i=n(15207);const o={isFetching:!1,term:"",collections:[],page:0,entryIds:[],queryHits:{},error:void 0,requests:[]},a=(0,r.produce)(((e,t)=>{switch(t.type){case i.SEARCH_CLEAR:return o;case i.SEARCH_ENTRIES_REQUEST:{const{page:n,searchTerm:r,searchCollections:i}=t.payload;e.isFetching=!0,e.term=r,e.collections=i,e.page=n;break}case i.SEARCH_ENTRIES_SUCCESS:{const{entries:n,page:r}=t.payload,i=n.map((e=>({collection:e.collection,slug:e.slug})));e.isFetching=!1,e.page=r,e.entryIds=!r||isNaN(r)||0===r?i:e.entryIds.concat(i);break}case i.SEARCH_ENTRIES_FAILURE:{const{error:n}=t.payload;e.isFetching=!1,e.error=n;break}case i.QUERY_REQUEST:{const{searchTerm:n,request:r}=t.payload;e.isFetching=!0,e.term=n,r&&e.requests.push(r);break}case i.CLEAR_REQUESTS:e.requests=e.requests.filter((e=>e.expires>=new Date));break;case i.QUERY_SUCCESS:{const{namespace:n,hits:r}=t.payload;e.isFetching=!1,e.queryHits[n]=r;break}case i.QUERY_FAILURE:{const{error:n}=t.payload;e.isFetching=!1,e.error=n}}}),o);t.default=a},18259:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(30412),i=n(9687);const o=(0,r.produce)(((e,t)=>{switch(t.type){case i.STATUS_REQUEST:e.isFetching=!0;break;case i.STATUS_SUCCESS:e.isFetching=!1,e.status=t.payload.status;break;case i.STATUS_FAILURE:e.isFetching=!1,e.error=t.payload.error}}),{isFetching:!1,status:{auth:{status:!0},api:{status:!0,statusPage:""}},error:void 0});t.default=o},21837:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.store=void 0;var r=n(74081),i=n(58267),o=l(n(43292)),a=n(89258),s=l(n(16797));function l(e){return e&&e.__esModule?e:{default:e}}t.store=(0,r.createStore)((0,s.default)(),(0,i.composeWithDevTools)((0,r.applyMiddleware)(o.default,a.waitUntilAction)))},89258:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.waitUntilAction=t.WAIT_UNTIL_ACTION=void 0;const n=t.WAIT_UNTIL_ACTION="WAIT_UNTIL_ACTION";t.waitUntilAction=({dispatch:e,getState:t})=>{let r=[];return i=>o=>{if(o.type===n)return r.push(o),null;const a=i(o);return function(n){const i=[],o=[];for(const e of r)e.predicate(n)?i.push(e):o.push(e);r=o;for(const r of i)r.run(e,t,n)}(o),a}}},79278:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.history=void 0,t.navigateToCollection=function(e){return i.push(`/collections/${e}`)},t.navigateToEntry=function(e,t){return i.replace(`/collections/${e}/entries/${t}`)},t.navigateToNewEntry=function(e){return i.replace(`/collections/${e}/new`)};var r=n(70809);const i=t.history=(0,r.createHashHistory)()},67964:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SortDirection=void 0,t.SortDirection=function(e){return e.Ascending="Ascending",e.Descending="Descending",e.None="None",e}({})},25606:(e,t)=>{"use strict";function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.createAssetProxy=function({url:e,file:t,path:n,field:i}){return new r({url:e,file:t,path:n,field:i})},t.default=void 0;class r{constructor({url:e,file:t,path:r,field:i}){n(this,"url",void 0),n(this,"fileObj",void 0),n(this,"path",void 0),n(this,"field",void 0),this.url=e||(t?window.URL.createObjectURL(t):""),this.fileObj=t,this.path=r,this.field=i}toString(){return this.url}async toBase64(){const e=await fetch(this.url).then((e=>e.blob()));return e.size<=0?"":await new Promise((t=>{const n=new FileReader;n.onload=e=>{var n;const r=(null===(n=e.target)||void 0===n?void 0:n.result)||"";t(r.toString().split("base64,")[1])},n.readAsDataURL(e)}))}}t.default=r},57331:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const{id:t=null,label:n="unnamed component",icon:r="exclamation-triangle",type:i="shortcode",widget:d="object",pattern:f=u,fields:p=[],fromBlock:h,toBlock:m,toPreview:g}=e,v=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,a);return function(e){for(var t=1;t({})),toBlock:c(m)||(()=>"Plugin"),toPreview:c(g)||!d&&(c(m)||(()=>"Plugin")),fields:(0,o.fromJS)(p)},v)};var r,i=(r=n(61049))&&r.__esModule?r:{default:r},o=n(46670);const a=["id","label","icon","type","widget","pattern","fields","fromBlock","toBlock","toPreview"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u=/.^/;function c(e){return(0,i.default)(e)&&e.bind(null)}},15583:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createEntry=function(e,t="",n="",r={}){return{collection:e,slug:t,path:n,partial:r.partial||!1,raw:r.raw||"",data:r.data||{},label:r.label||null,isModification:(0,i.default)(r.isModification)?r.isModification:null,mediaFiles:r.mediaFiles||[],author:r.author||"",updatedOn:r.updatedOn||"",status:r.status||"",meta:r.meta||{},i18n:r.i18n||{}}};var r,i=(r=n(4335))&&r.__esModule?r:{default:r}},40299:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsEditorComponentImage=void 0,(r=n(2784))&&r.__esModule;var r,i=n(28165);const o={label:"Image",id:"image",fromBlock:e=>e&&{image:e[2],alt:e[1],title:e[4]},toBlock:({alt:e,image:t,title:n})=>`![${e||""}](${t||""}${n?` "${n.replace(/"/g,'\\"')}"`:""})`,toPreview:({alt:e,image:t,title:n},r,o)=>{const a=r(t,null==o?void 0:o.find((e=>"image"===e.get("widget"))));return(0,i.jsx)("img",{src:a||"",alt:e||"",title:n||""})},pattern:/^!\[(.*)\]\((.*?)(\s"(.*)")?\)$/,fields:[{label:"Image",name:"image",widget:"image",media_library:{allow_multiple:!1}},{label:"Alt Text",name:"alt"},{label:"Title",name:"title"}]};t.DecapCmsEditorComponentImage=o,t.default=o},84299:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(46670),i=l(n(5648)),o=l(n(1573)),a=n(85555);const s=["access_token"];function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.default=class{constructor(e={}){const t=(0,o.default)(e.base_url,"/"),n=(0,i.default)(e.auth_endpoint,"/");this.auth_url=`${t}/${n}`,this.appID=e.app_id,this.clearHash=e.clearHash}authenticate(e,t){if((0,a.isInsecureProtocol)())return t(new Error("Cannot authenticate over insecure protocol!"));const n=new URL(this.auth_url);n.searchParams.set("client_id",this.appID),n.searchParams.set("redirect_uri",document.location.origin+document.location.pathname),n.searchParams.set("response_type","token"),n.searchParams.set("scope",e.scope),null!=e.prompt&&null!=e.prompt&&n.searchParams.set("prompt",e.prompt),null!=e.resource&&null!=e.resource&&n.searchParams.set("resource",e.resource);const r=JSON.stringify({auth_type:"implicit",nonce:(0,a.createNonce)()});n.searchParams.set("state",r),document.location.assign(n.href)}completeAuth(e){const t=new URLSearchParams(document.location.hash.replace(/^#?\/?/,""));if(!t.has("access_token")&&!t.has("error"))return;this.clearHash();const n=(0,r.Map)(t.entries()),{nonce:i}=JSON.parse(n.get("state"));if(!(0,a.validateNonce)(i))return e(new Error("Invalid nonce"));if(n.has("error"))return e(new Error(`${n.get("error")}: ${n.get("error_description")}`));if(n.has("access_token")){const t=n.toJS(),{access_token:r}=t;e(null,function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,s)))}}}},76320:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DecapCmsLibAuth=void 0,Object.defineProperty(t,"ImplicitAuthenticator",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"NetlifyAuthenticator",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"PkceAuthenticator",{enumerable:!0,get:function(){return o.default}});var r=a(n(55746)),i=a(n(84299)),o=a(n(76814));function a(e){return e&&e.__esModule?e:{default:e}}t.DecapCmsLibAuth={NetlifyAuthenticator:r.default,ImplicitAuthenticator:i.default,PkceAuthenticator:o.default}},55746:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(5648)),i=o(n(1573));function o(e){return e&&e.__esModule?e:{default:e}}class a{constructor(e){this.err=e}toString(){return this.err&&this.err.message}}const s={github:{width:960,height:600},gitlab:{width:960,height:600},bitbucket:{width:960,height:500},email:{width:500,height:400}};t.default=class{constructor(e={}){this.site_id=e.site_id||null,this.base_url=(0,i.default)(e.base_url,"/")||"https://api.netlify.com",this.auth_endpoint=(0,r.default)(e.auth_endpoint,"/")||"auth"}handshakeCallback(e,t){const n=r=>{if(r.data==="authorizing:"+e.provider&&r.origin===this.base_url)return window.removeEventListener("message",n,!1),window.addEventListener("message",this.authorizeCallback(e,t),!1),this.authWindow.postMessage(r.data,r.origin)};return n}authorizeCallback(e,t){const n=r=>{if(r.origin===this.base_url){if(0===r.data.indexOf("authorization:"+e.provider+":success:")){const i=JSON.parse(r.data.match(new RegExp("^authorization:"+e.provider+":success:(.+)$"))[1]);window.removeEventListener("message",n,!1),this.authWindow.close(),t(null,i)}if(0===r.data.indexOf("authorization:"+e.provider+":error:")){const i=JSON.parse(r.data.match(new RegExp("^authorization:"+e.provider+":error:(.+)$"))[1]);window.removeEventListener("message",n,!1),this.authWindow.close(),t(new a(i))}}};return n}getSiteID(){if(this.site_id)return this.site_id;const e=document.location.host.split(":")[0];return"localhost"===e?"demo.decapcms.org":e}authenticate(e,t){const{provider:n}=e,r=this.getSiteID();if(!n)return t(new a({message:"You must specify a provider when calling netlify.authenticate"}));if(!r)return t(new a({message:"You must set a site_id with netlify.configure({site_id: 'your-site-id'}) to make authentication work from localhost"}));const i=s[n]||s.github,o=screen.width/2-i.width/2,l=screen.height/2-i.height/2;window.addEventListener("message",this.handshakeCallback(e,t),!1);let u=`${this.base_url}/${this.auth_endpoint}?provider=${e.provider}&site_id=${r}`;e.scope&&(u+="&scope="+e.scope),!0===e.login&&(u+="&login=true"),e.beta_invite&&(u+="&beta_invite="+e.beta_invite),e.invite_code&&(u+="&invite_code="+e.invite_code),this.authWindow=window.open(u,"Netlify Authorization",`width=${i.width}, height=${i.height}, top=${l}, left=${o}`),this.authWindow.focus()}refresh(e,t){const{provider:n,refresh_token:r}=e,i=this.getSiteID(),o=t||Promise.reject.bind(Promise);if(!n||!r)return o(new a({message:"You must specify a provider and refresh token when calling netlify.refresh"}));if(!i)return o(new a({message:"You must set a site_id with netlify.configure({site_id: 'your-site-id'}) to make token refresh work from localhost"}));const s=`${this.base_url}/${this.auth_endpoint}/refresh?provider=${n}&site_id=${i}&refresh_token=${r}`,l=fetch(s,{method:"POST",body:""}).then((e=>e.json()));if(!t)return l;l.then((e=>t(null,e))).catch(t)}}},76814:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(5648)),i=a(n(1573)),o=n(85555);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l="decap-cms-pkce-verifier-code";t.default=class{constructor(e={}){const t=(0,i.default)(e.base_url,"/"),n=(0,r.default)(e.auth_endpoint,"/"),o=(0,r.default)(e.auth_token_endpoint,"/");this.auth_url=`${t}/${n}`,this.auth_token_url=`${t}/${o}`,this.auth_token_endpoint_content_type=e.auth_token_endpoint_content_type,this.appID=e.app_id}async authenticate(e,t){if((0,o.isInsecureProtocol)())return t(new Error("Cannot authenticate over insecure protocol!"));const n=new URL(this.auth_url);n.searchParams.set("client_id",this.appID),n.searchParams.set("redirect_uri",document.location.origin+document.location.pathname),n.searchParams.set("response_type","code"),n.searchParams.set("scope",e.scope);const r=JSON.stringify({auth_type:"pkce",nonce:(0,o.createNonce)()});n.searchParams.set("state",r),n.searchParams.set("code_challenge_method","S256");const i=function(){const e=Array.from(window.crypto.getRandomValues(new Uint8Array(128))).map((e=>"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-."[e%64])).join("");return window.sessionStorage.setItem(l,e),e}(),a=await async function(e){const t=await async function(e){const t=(new TextEncoder).encode(e),n=await window.crypto.subtle.digest("SHA-256",t);return String.fromCharCode(...new Uint8Array(n))}(e);return btoa(t).split("=")[0].replace(/\+/g,"-").replace(/\//g,"_")}(i);n.searchParams.set("code_challenge",a),document.location.assign(n.href)}async completeAuth(e){const t=new URLSearchParams(document.location.search);if(window.history.replaceState(null,"",document.location.pathname),!t.has("code")&&!t.has("error"))return;let n;try{n=JSON.parse(t.get("state")).nonce}catch(e){n=JSON.parse(t.get("state").replace(/\\"/g,'"')).nonce}if(!(0,o.validateNonce)(n))return e(new Error("Invalid nonce"));if(t.has("error"))return e(new Error(`${t.get("error")}: ${t.get("error_description")}`));if(t.has("code")){const n=t.get("code"),r=new URL(this.auth_token_url),i={client_id:this.appID,code:n,grant_type:"authorization_code",redirect_uri:document.location.origin+document.location.pathname,code_verifier:window.sessionStorage.getItem(l)},o=await fetch(r.href,{method:"POST",body:this.auth_token_endpoint_content_type.startsWith("application/x-www-form-urlencoded")?new URLSearchParams(Object.entries(i)).toString():JSON.stringify(i),headers:{"Content-Type":this.auth_token_endpoint_content_type}}),a=await o.json();window.sessionStorage.removeItem(l),e(null,function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createNonce=function(){const e=(0,r.v4)();return window.sessionStorage.setItem("decap-cms-auth",JSON.stringify({nonce:e})),e},t.isInsecureProtocol=function(){return"https:"!==document.location.protocol&&"localhost"!==document.location.hostname&&"127.0.0.1"!==document.location.hostname},t.validateNonce=function(e){const t=window.sessionStorage.getItem("decap-cms-auth"),n=t&&JSON.parse(t).nonce;return window.localStorage.removeItem("decap-cms-auth"),e===n};var r=n(29987)},65727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PreviewState=void 0,t.apiRequest=g,t.endpointConstants=t.apiRoots=void 0,t.getDefaultBranchName=async function(e){let t;const{token:n,backend:r,repo:i,apiRoot:o}=e;switch(r){case"gitlab":t=`/projects/${encodeURIComponent(i)}`;break;case"bitbucket":t=`/repositories/${i}`;break;default:t=`/repos/${i}`}const a=await g(t,{token:n,backend:r,apiRoot:o});let s;if("bitbucket"===r){const{mainbranch:{name:e}}=a;s=e}else{const{default_branch:e}=a;s=e}return s},t.getPreviewStatus=function(e,t){return e.find((({context:e})=>y(e,t)))},t.isPreviewContext=y,t.parseResponse=f,t.readFile=async function(e,t,n,r){const i=e?r?`gh.${e}`:`gh.${e}.blob`:null,o=i?await n.getItem(i):null;if(o)return o;const a=await t();return i&&await n.setItem(i,a),a},t.readFileMetadata=async function(e,t,n){const r=e?function(e){return`gh.${e}.meta`}(e):null,i=r&&await n.getItem(r);if(i)return i;const o=await t();return r&&await n.setItem(r,o),o},t.requestWithBackoff=p,t.throwOnConflictingBranches=async function(e,t,n){const r=function(e){const t=e.split("/");return t.pop(),t.reduce(((e,n,r)=>[...e,t.slice(0,r+1).join("/")]),[])}(e),i=(await Promise.all(r.map((e=>t(e).then((e=>e.name)).catch((()=>"")))))).filter(Boolean)[0];if(i)throw new o.default(`Failed creating branch '${e}' since there is already a branch named '${i}'. Please delete the '${i}' branch and try again`,500,n)};var r=n(87131),i=s(n(25664)),o=s(n(67026));const a=["token","backend"];function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t3600?3600:t}}function f(e){const t=e.headers.get("Content-Type");return t&&t.match(/json/)?async function(e){const t=await e.json();return e.ok?t:Promise.reject(t)}(e):e.text().then((t=>e.ok?t:Promise.reject(t)))}async function p(e,t,n=1){e.rateLimiter&&await e.rateLimiter.acquire();try{const n=await e.buildRequest(t),r=e.requestFunction||i.default.performRequest,o=await r(n);if(429===o.status){const e=await o.text().catch((()=>"Too many requests"));throw new Error(e)}if(403===o.status){const e=await o.json().catch((()=>({message:""})));if(e.message.match("API rate limit exceeded")){const t=new Date,n=o.headers.has("X-RateLimit-Reset")?parseInt(o.headers.get("X-RateLimit-Reset")):t.getTime()/1e3+60;throw new d(e.message,n)}o.json=()=>Promise.resolve(e)}return o}catch(i){if(n>5||"Can't refresh access token when using implicit auth"===i.message)throw i;if(!e.rateLimiter){const t=i.resetSeconds||n*n;console.log(`Pausing requests for ${t} ${1===n?"second":"seconds"} due to fetch failures:`,i.message),e.rateLimiter=(0,r.asyncLock)(),e.rateLimiter.acquire(),setTimeout((()=>{var t;null===(t=e.rateLimiter)||void 0===t||t.release(),e.rateLimiter=void 0,console.log("Done pausing requests")}),1e3*t)}return p(e,t,n+1)}}const h=t.apiRoots={github:"https://api.github.com",gitlab:"https://gitlab.com/api/v4",bitbucket:"https://api.bitbucket.org/2.0"},m=(t.endpointConstants={singleRepo:{bitbucket:"/repositories",github:"/repos",gitlab:"/projects"}},{buildRequest:e=>e});async function g(e,t,n=(e=>f(e))){var r;const{token:s,backend:l}=t,c=u({cache:"no-cache"},function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,a)),d=await async function(e){const{token:t,headers:n}=e,r=u({"Content-Type":"application/json; charset=utf-8"},n);return t&&(r.Authorization=`Bearer ${t}`),Promise.resolve(r)}({headers:c.headers||{},token:s}),g=function(e,t){if(t){const n=[];for(const e in t)n.push(`${e}=${encodeURIComponent(t[e])}`);n.length&&(e+=`?${n.join("&")}`)}return e}(`${null!==(r=t.apiRoot)&&void 0!==r?r:h[l]}${e}`,c.params);let v=500;try{const e=i.default.fromFetchArguments(g,u(u({},c),{},{headers:d})),t=await p(m,e);return v=t.status,await n(t)}catch(e){return function(e,t,n){throw new o.default(e.message,t,n)}(e,v,l)}}const v=["deploy"];function y(e,t){return t?e===t:v.some((t=>e.includes(t)))}t.PreviewState=function(e){return e.Other="other",e.Success="success",e}({})},67026:(e,t)=>{"use strict";function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.API_ERROR=void 0;const r=t.API_ERROR="API_ERROR";class i extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e,t,i,o={}){super(e),n(this,"message",void 0),n(this,"status",void 0),n(this,"api",void 0),n(this,"meta",void 0),this.message=e,this.status=t,this.api=i,this.name=r,this.meta=o}}t.default=i},97478:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MERGE_COMMIT_MESSAGE=t.DEFAULT_PR_BODY=t.CMS_BRANCH_PREFIX=void 0,t.branchFromContentKey=function(e){return`${n}/${e}`},t.contentKeyFromBranch=function(e){return e.slice(`${n}/`.length)},t.generateContentKey=function(e,t){return`${e}/${t}`},t.isCMSLabel=function(e,t){return e.startsWith(i(t))},t.labelToStatus=function(e,t){return e.slice(i(t).length)},t.parseContentKey=function(e){const t=e.indexOf("/");return{collection:e.slice(0,t),slug:e.slice(t+1)}},t.statusToLabel=function(e,t){return`${i(t)}${e}`};const n=t.CMS_BRANCH_PREFIX="cms",r=(t.DEFAULT_PR_BODY="Automatically generated by Decap CMS",t.MERGE_COMMIT_MESSAGE="Automatically generated. Merged on Decap CMS.","decap-cms/");function i(e){return e||r}},6137:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ACCESS_TOKEN_ERROR=void 0;const n=t.ACCESS_TOKEN_ERROR="ACCESS_TOKEN_ERROR";class r extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e){var t,r,i;super(e),t=this,i=void 0,(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(r="message"))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,this.message=e,this.name=n}}t.default=r},68075:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CURSOR_COMPATIBILITY_SYMBOL=void 0;var r=n(46670);function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){if(void 0===e)return(0,r.Map)();const t=(0,r.fromJS)(e);if(!r.Map.isMap(t))throw new Error("Object must be equivalent to a Map.");return t}const a=(0,r.Set)(["index","page","count","pageSize","pageCount","usingOldPaginationAPI","extension","folder","depth"]);function s(e){return e.filter(((e,t)=>a.has(t)))}class l{static create(...e){return new l(...e)}constructor(...e){if(i(this,"store",void 0),i(this,"actions",void 0),i(this,"data",void 0),i(this,"meta",void 0),e[0]instanceof l)return e[0];this.store=function(...e){const{actions:t,data:n,meta:i}=1===e.length?o(e[0]).toObject():{actions:e[0],data:e[1],meta:e[2]};return(0,r.Map)({actions:(0,r.Set)(t),data:o(n),meta:o(i).update(s)})}(...e),this.actions=this.store.get("actions"),this.data=this.store.get("data"),this.meta=this.store.get("meta")}updateStore(...e){return new l(this.store.update(...e))}updateInStore(...e){return new l(this.store.updateIn(...e))}hasAction(e){return function(e,t){return e.hasIn(["actions",t])}(this.store,e)}addAction(e){return this.updateStore("actions",(t=>t.add(e)))}removeAction(e){return this.updateStore("actions",(t=>t.delete(e)))}setActions(e){return this.updateStore((t=>t.set("actions",(0,r.Set)(e))))}mergeActions(e){return this.updateStore("actions",(t=>t.union(e)))}getActionHandlers(e){return function(e,t){return e.get("actions",(0,r.Set)()).toMap().map((e=>t(e)))}(this.store,e)}setData(e){return new l(this.store.set("data",o(e)))}mergeData(e){return new l(this.store.mergeIn(["data"],o(e)))}wrapData(e){return this.updateStore("data",(t=>o(e).set("wrapped_cursor_data",t)))}unwrapData(){return[this.store.get("data").delete("wrapped_cursor_data"),this.updateStore("data",(e=>e.get("wrapped_cursor_data")))]}clearData(){return this.updateStore("data",(()=>(0,r.Map)()))}setMeta(e){return this.updateStore((t=>t.set("meta",o(e))))}mergeMeta(e){return this.updateStore((t=>t.update("meta",(t=>t.merge(o(e))))))}}t.default=l,t.CURSOR_COMPATIBILITY_SYMBOL=Symbol("cursor key for compatibility with old backends")},67097:(e,t)=>{"use strict";function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.EDITORIAL_WORKFLOW_ERROR=void 0;const r=t.EDITORIAL_WORKFLOW_ERROR="EDITORIAL_WORKFLOW_ERROR";class i extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e,t){super(e),n(this,"message",void 0),n(this,"notUnderEditorialWorkflow",void 0),this.message=e,this.notUnderEditorialWorkflow=t,this.name=r}}t.default=i},87131:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.asyncLock=function(){let e=(0,i.default)(1);return{acquire:function(t=15e3){return new Promise((n=>{const r=setTimeout((()=>{e=(0,i.default)(1),n(!1)}),t);e.take((()=>{clearTimeout(r),n(!0)}))}))},release:function(){try{e.leave()}catch(t){if("leave called too many times."!==t.message)throw t;console.warn("leave called too many times."),e=(0,i.default)(1)}}}};var r,i=(r=n(63252))&&r.__esModule?r:{default:r}},47021:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filterByExtension=function(e,t){return((null==e?void 0:e.path)||"").endsWith(t.startsWith(".")?t:`.${t}`)},t.getAllResponses=async function(e,t={},n,r){let i=1,o=s.default.fromFetchArguments(e,t);const a=[];for(;o&&i<30;){const e=await s.default.performRequest(o),l=e.headers.get("Link"),u=l&&p(l)[n],{headers:c={}}=t;o=u&&s.default.fromFetchArguments(r(u),{headers:c}),a.push(e),i++}return a},t.getPathDepth=function(e){return e.split("/").length},t.parseLinkHeader=p,t.parseResponse=f,t.responseParser=function(e){return t=>f(t,e)};var r=u(n(65159)),i=u(n(10017)),o=u(n(85395)),a=n(46670),s=u(n(25664)),l=u(n(67026));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){return n=>{try{return t(n)}catch(t){throw new Error(`Response cannot be parsed into the expected format (${e}): ${t.message}`)}}}const d=(0,a.fromJS)({json:async e=>{const t=e.headers.get("Content-Type")||"";if(!t.startsWith("application/json")&&!t.startsWith("text/json"))throw new Error(`${t} is not a valid JSON Content-Type`);return e.json()},text:async e=>e.text(),blob:async e=>e.blob()}).mapEntries((([e,t])=>[e,c(e,t)]));async function f(e,{expectingOk:t=!0,format:n="text",apiName:r=""}){let i;try{const t=d.get(n,!1);if(!t)throw new Error(`${n} is not a supported response format.`);i=await t(e)}catch(t){throw new l.default(t.message,e.status,r)}if(t&&!e.ok){var o;const t="json"===n,a=t?i.message||i.msg||(null===(o=i.error)||void 0===o?void 0:o.message):i;throw new l.default(t&&a?a:i,e.status,r)}return i}function p(e){return e?(0,o.default)([e=>e.split(","),(0,r.default)((e=>e.trim().split(";"))),(0,r.default)((([e,t])=>[t.match(/rel="(.*?)"/)[1],e.trim().match(/<(.*?)>/)[1].replace(/\+/g,"%20")])),i.default])(e):{}}},44951:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(91965);t.default=e=>new Promise(((t,n)=>{const i=new FileReader;i.onload=({target:e})=>t((0,r.sha256)((null==e?void 0:e.result)||"")),i.onerror=e=>{i.abort(),n(e)},i.readAsArrayBuffer(e)}))},80120:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createPointerFile=y,t.getLargeMediaFilteredMediaFiles=async function(e,t){return await Promise.all(t.map((async t=>{const{fileObj:n,path:r}=t,i=r.startsWith("/")?r.slice(1):r;if(!e.matchPath(i))return t;const o=await b(e,n,r);return d(d({},t),o)})))},t.getLargeMediaPatternsFromGitAttributesFile=void 0,t.getPointerFileForMediaFileObj=b,t.parsePointerFile=void 0;var r=u(n(65159)),i=u(n(23162)),o=u(n(10094)),a=u(n(58072)),s=u(n(44951));const l=["size","oid"];function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;te.trim())),(0,a.default)((function(e){return""!==e}))]);t.parsePointerFile=(0,o.default)([f,h,(0,r.default)(p),i.default,e=>{let{size:t,oid:n}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,l);return d({size:parseInt(t),sha:null==n?void 0:n.split(":")[1]},r)}]);const m=(0,o.default)([(0,r.default)((function(e){return e.includes("=")?e.split("="):e.startsWith("-")?[e.slice(1),!1]:[e,!0]})),i.default]),g=(0,o.default)([p,([e,...t])=>[e,m(t)]]),v=(0,o.default)([f,(0,r.default)((function(e){return e.split("#")[0]})),h,(0,r.default)(g)]);function y({size:e,sha:t}){return`version https://git-lfs.github.com/spec/v1\noid sha256:${t}\nsize ${e}\n`}async function b(e,t,n){const{name:r,size:i}=t,o=await(0,s.default)(t);await e.uploadResource({sha:o,size:i},t);const a=y({sha:o,size:i}),l=new Blob([a]),u=new File([l],r,{type:"text/plain"}),c=await(0,s.default)(u);return{fileObj:u,size:l.size,sha:c,raw:a,path:n}}t.getLargeMediaPatternsFromGitAttributesFile=(0,o.default)([v,(0,a.default)((([,e])=>"lfs"===e.filter&&"lfs"===e.diff&&"lfs"===e.merge)),(0,r.default)((([e])=>e))])},86314:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allEntriesByFolder=async function({listAllFiles:e,readFile:t,readFileMetadata:n,apiName:o,branch:s,localForage:l,folder:c,extension:f,depth:p,getDefaultBranch:h,isShaExistsInBranch:v,getDifferences:y,getFileId:b,filterFile:w,customFetch:_}){async function x(){const t=await e(c,f,p),n=await h();return await m({localForage:l,localTree:{head:n.sha,files:t.map((e=>({id:e.id,path:e.path,name:(0,a.basename)(e.path)})))},branch:n.name,depth:p,extension:f,folder:c}),t}const k=await async function(){const e=await g({localForage:l,branch:s,folder:c,extension:f,depth:p});if(e){const t=await h();if(!await v(t.name,e.head))return console.log(`Can't find local tree head '${e.head}' in branch '${t.name}', rebuilding local tree`),x();const n=await async function({branch:e,localTree:t,folder:n,getDifferences:r,filterFile:i,getFileId:o}){const s=(await r(e.sha,t.head)).filter((e=>{var t,r;return(null===(t=e.oldPath)||void 0===t?void 0:t.startsWith(n))||(null===(r=e.newPath)||void 0===r?void 0:r.startsWith(n))})).reduce(((e,t)=>("renamed"===t.status?(e.push({path:t.oldPath,name:(0,a.basename)(t.oldPath),deleted:!0}),e.push({path:t.newPath,name:(0,a.basename)(t.newPath),deleted:!1})):"deleted"===t.status?e.push({path:t.oldPath,name:(0,a.basename)(t.oldPath),deleted:!0}):e.push({path:t.newPath||t.oldPath,name:(0,a.basename)(t.newPath||t.oldPath),deleted:!1}),e)),[]).filter(i);return await Promise.all(s.map((async e=>{if(e.deleted)return u(u({},e),{},{id:""});{const t=await o(e.path);return u(u({},e),{},{id:t})}})))}({branch:t,localTree:e,folder:c,extension:f,depth:p,getDifferences:y,getFileId:b,filterFile:w}).catch((e=>(console.log("Failed getting diff from local tree:",e),null)));if(!n)return console.log("Diff is null, rebuilding local tree"),x();if(0===n.length)return e.files;{const o=n.reduce(((e,t)=>(e[t.path]=t.deleted,e)),{}),a=(0,r.default)((0,i.default)(n.filter((e=>!o[e.path])),e.files.filter((e=>!o[e.path])),(e=>e.path)),(e=>e.path));return await m({localForage:l,localTree:{head:t.sha,files:a},branch:t.name,depth:p,extension:f,folder:c}),a}}return x()}();return _?await _(k):await d(k,t,n,o)},t.blobToFileObj=function(e,t){const n=e.match(/.svg$/)?{type:"image/svg+xml"}:{};return new File([t],e,n)},t.entriesByFiles=async function(e,t,n,r){return d(e,t,n,r)},t.entriesByFolder=async function(e,t,n,r){return d(await e(),t,n,r)},t.getLocalTree=g,t.getMediaAsBlob=f,t.getMediaDisplayURL=async function(e,t,n){const{path:r,id:i}=e;return new Promise(((e,o)=>n.take((()=>f(r,i,t).then((e=>URL.createObjectURL(e))).then(e,o).finally((()=>n.leave()))))))},t.persistLocalTree=m,t.runWithLock=async function(e,t,n){try{return await e.acquire()||console.warn(n),await t()}finally{e.release()}},t.unpublishedEntries=async function(e){try{return await e()}catch(e){if("Not Found"===e.message)return Promise.resolve([]);throw e}};var r=s(n(829)),i=s(n(15316)),o=s(n(63252)),a=n(92478);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t{a.push(new Promise((o=>i.take((async()=>{try{const[r,a]=await Promise.all([t(e.path,e.id,{parseText:!0}),n(e.path,e.id)]);o({file:u(u({},e),a),data:r}),i.leave()}catch(t){i.leave(),console.error(`failed to load file from ${r}: ${e.path}`),o({error:!0})}})))))})),Promise.all(a).then((e=>e.filter((e=>!e.error))))}async function f(e,t,n){let r;if(e.match(/.svg$/)){const i=await n(e,t,{parseText:!0});r=new Blob([i],{type:"image/svg+xml"})}else r=await n(e,t,{parseText:!1});return r}const p="git.local";function h({branch:e,folder:t,extension:n,depth:r}){return`${p}.${e}.${t}.${n}.${r}`}async function m({localForage:e,localTree:t,branch:n,folder:r,extension:i,depth:o}){await e.setItem(h({branch:n,folder:r,extension:i,depth:o}),t)}async function g({localForage:e,branch:t,folder:n,extension:r,depth:i}){return await e.getItem(h({branch:t,folder:n,extension:r,depth:i}))}},33806:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"APIError",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"AccessTokenError",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"CMS_BRANCH_PREFIX",{enumerable:!0,get:function(){return v.CMS_BRANCH_PREFIX}}),Object.defineProperty(t,"CURSOR_COMPATIBILITY_SYMBOL",{enumerable:!0,get:function(){return i.CURSOR_COMPATIBILITY_SYMBOL}}),Object.defineProperty(t,"Cursor",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"DEFAULT_PR_BODY",{enumerable:!0,get:function(){return v.DEFAULT_PR_BODY}}),t.DecapCmsLibUtil=void 0,Object.defineProperty(t,"EDITORIAL_WORKFLOW_ERROR",{enumerable:!0,get:function(){return o.EDITORIAL_WORKFLOW_ERROR}}),Object.defineProperty(t,"EditorialWorkflowError",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"MERGE_COMMIT_MESSAGE",{enumerable:!0,get:function(){return v.MERGE_COMMIT_MESSAGE}}),Object.defineProperty(t,"PreviewState",{enumerable:!0,get:function(){return g.PreviewState}}),Object.defineProperty(t,"allEntriesByFolder",{enumerable:!0,get:function(){return m.allEntriesByFolder}}),Object.defineProperty(t,"asyncLock",{enumerable:!0,get:function(){return h.asyncLock}}),Object.defineProperty(t,"basename",{enumerable:!0,get:function(){return l.basename}}),Object.defineProperty(t,"blobToFileObj",{enumerable:!0,get:function(){return m.blobToFileObj}}),Object.defineProperty(t,"branchFromContentKey",{enumerable:!0,get:function(){return v.branchFromContentKey}}),Object.defineProperty(t,"contentKeyFromBranch",{enumerable:!0,get:function(){return v.contentKeyFromBranch}}),Object.defineProperty(t,"createPointerFile",{enumerable:!0,get:function(){return y.createPointerFile}}),Object.defineProperty(t,"entriesByFiles",{enumerable:!0,get:function(){return m.entriesByFiles}}),Object.defineProperty(t,"entriesByFolder",{enumerable:!0,get:function(){return m.entriesByFolder}}),Object.defineProperty(t,"fileExtension",{enumerable:!0,get:function(){return l.fileExtension}}),Object.defineProperty(t,"fileExtensionWithSeparator",{enumerable:!0,get:function(){return l.fileExtensionWithSeparator}}),Object.defineProperty(t,"filterByExtension",{enumerable:!0,get:function(){return d.filterByExtension}}),Object.defineProperty(t,"flowAsync",{enumerable:!0,get:function(){return u.flowAsync}}),Object.defineProperty(t,"generateContentKey",{enumerable:!0,get:function(){return v.generateContentKey}}),Object.defineProperty(t,"getAllResponses",{enumerable:!0,get:function(){return d.getAllResponses}}),Object.defineProperty(t,"getBlobSHA",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"getDefaultBranchName",{enumerable:!0,get:function(){return g.getDefaultBranchName}}),Object.defineProperty(t,"getLargeMediaFilteredMediaFiles",{enumerable:!0,get:function(){return y.getLargeMediaFilteredMediaFiles}}),Object.defineProperty(t,"getLargeMediaPatternsFromGitAttributesFile",{enumerable:!0,get:function(){return y.getLargeMediaPatternsFromGitAttributesFile}}),Object.defineProperty(t,"getMediaAsBlob",{enumerable:!0,get:function(){return m.getMediaAsBlob}}),Object.defineProperty(t,"getMediaDisplayURL",{enumerable:!0,get:function(){return m.getMediaDisplayURL}}),Object.defineProperty(t,"getPathDepth",{enumerable:!0,get:function(){return d.getPathDepth}}),Object.defineProperty(t,"getPointerFileForMediaFileObj",{enumerable:!0,get:function(){return y.getPointerFileForMediaFileObj}}),Object.defineProperty(t,"getPreviewStatus",{enumerable:!0,get:function(){return g.getPreviewStatus}}),Object.defineProperty(t,"isAbsolutePath",{enumerable:!0,get:function(){return l.isAbsolutePath}}),Object.defineProperty(t,"isCMSLabel",{enumerable:!0,get:function(){return v.isCMSLabel}}),Object.defineProperty(t,"isPreviewContext",{enumerable:!0,get:function(){return g.isPreviewContext}}),Object.defineProperty(t,"labelToStatus",{enumerable:!0,get:function(){return v.labelToStatus}}),Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"localForage",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"onlySuccessfulPromises",{enumerable:!0,get:function(){return u.onlySuccessfulPromises}}),Object.defineProperty(t,"parseContentKey",{enumerable:!0,get:function(){return v.parseContentKey}}),Object.defineProperty(t,"parseLinkHeader",{enumerable:!0,get:function(){return d.parseLinkHeader}}),Object.defineProperty(t,"parsePointerFile",{enumerable:!0,get:function(){return y.parsePointerFile}}),Object.defineProperty(t,"parseResponse",{enumerable:!0,get:function(){return d.parseResponse}}),Object.defineProperty(t,"readFile",{enumerable:!0,get:function(){return g.readFile}}),Object.defineProperty(t,"readFileMetadata",{enumerable:!0,get:function(){return g.readFileMetadata}}),Object.defineProperty(t,"requestWithBackoff",{enumerable:!0,get:function(){return g.requestWithBackoff}}),Object.defineProperty(t,"responseParser",{enumerable:!0,get:function(){return d.responseParser}}),Object.defineProperty(t,"runWithLock",{enumerable:!0,get:function(){return m.runWithLock}}),Object.defineProperty(t,"statusToLabel",{enumerable:!0,get:function(){return v.statusToLabel}}),Object.defineProperty(t,"then",{enumerable:!0,get:function(){return u.then}}),Object.defineProperty(t,"throwOnConflictingBranches",{enumerable:!0,get:function(){return g.throwOnConflictingBranches}}),Object.defineProperty(t,"unpublishedEntries",{enumerable:!0,get:function(){return m.unpublishedEntries}}),Object.defineProperty(t,"unsentRequest",{enumerable:!0,get:function(){return c.default}});var r=_(n(67026)),i=w(n(68075)),o=w(n(67097)),a=_(n(6137)),s=_(n(55538)),l=n(92478),u=n(44486),c=_(n(25664)),d=n(47021),f=_(n(73209)),p=_(n(44951)),h=n(87131),m=n(86314),g=n(65727),v=n(97478),y=n(80120);function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(b=function(e){return e?n:t})(e)}function w(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=b(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function _(e){return e&&e.__esModule?e:{default:e}}t.DecapCmsLibUtil={APIError:r.default,Cursor:i.default,CURSOR_COMPATIBILITY_SYMBOL:i.CURSOR_COMPATIBILITY_SYMBOL,EditorialWorkflowError:o.default,EDITORIAL_WORKFLOW_ERROR:o.EDITORIAL_WORKFLOW_ERROR,localForage:s.default,basename:l.basename,fileExtensionWithSeparator:l.fileExtensionWithSeparator,fileExtension:l.fileExtension,onlySuccessfulPromises:u.onlySuccessfulPromises,flowAsync:u.flowAsync,then:u.then,unsentRequest:c.default,filterByExtension:d.filterByExtension,parseLinkHeader:d.parseLinkHeader,parseResponse:d.parseResponse,responseParser:d.responseParser,loadScript:f.default,getBlobSHA:p.default,getPathDepth:d.getPathDepth,entriesByFiles:m.entriesByFiles,entriesByFolder:m.entriesByFolder,unpublishedEntries:m.unpublishedEntries,getMediaDisplayURL:m.getMediaDisplayURL,getMediaAsBlob:m.getMediaAsBlob,readFile:g.readFile,readFileMetadata:g.readFileMetadata,CMS_BRANCH_PREFIX:v.CMS_BRANCH_PREFIX,generateContentKey:v.generateContentKey,isCMSLabel:v.isCMSLabel,labelToStatus:v.labelToStatus,statusToLabel:v.statusToLabel,DEFAULT_PR_BODY:v.DEFAULT_PR_BODY,MERGE_COMMIT_MESSAGE:v.MERGE_COMMIT_MESSAGE,isPreviewContext:g.isPreviewContext,getPreviewStatus:g.getPreviewStatus,runWithLock:m.runWithLock,PreviewState:g.PreviewState,parseContentKey:v.parseContentKey,createPointerFile:y.createPointerFile,getLargeMediaFilteredMediaFiles:y.getLargeMediaFilteredMediaFiles,getLargeMediaPatternsFromGitAttributesFile:y.getLargeMediaPatternsFromGitAttributesFile,parsePointerFile:y.parsePointerFile,getPointerFileForMediaFileObj:y.getPointerFileForMediaFileObj,branchFromContentKey:v.branchFromContentKey,contentKeyFromBranch:v.contentKeyFromBranch,blobToFileObj:m.blobToFileObj,requestWithBackoff:g.requestWithBackoff,getDefaultBranchName:g.getDefaultBranchName,allEntriesByFolder:m.allEntriesByFolder,AccessTokenError:a.default,throwOnConflictingBranches:g.throwOnConflictingBranches}},73209:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return new Promise(((t,n)=>{let r=!1;const i=document.getElementsByTagName("head")[0],o=document.createElement("script");o.src=e,o.onload=o.onreadystatechange=function(){r||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState?n():(r=!0,t())},o.onerror=e=>n(e),i.appendChild(o)}))}},55538:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(75486))&&r.__esModule?r:{default:r};!function(){const e="localForageTest";i.default.setItem(e,{expires:Date.now()+3e5}).then((()=>{i.default.removeItem(e)})).catch((e=>{if(22===e.code){const e="Unable to set localStorage key. Quota exceeded! Full disk?";console.warn(e)}console.log(e)}))}(),t.default=i.default},92478:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.basename=function(e,t=""){if(""===e)return e;const n=(e=r(e)).split("/"),i=n[n.length-1];return""===i&&n.length>1?n[n.length-2]:t.length>0&&i.slice(-t.length)===t?i.slice(0,-t.length):i},t.fileExtension=function(e){const t=i(e);return""===t?t:t.slice(1)},t.fileExtensionWithSeparator=i,t.isAbsolutePath=function(e){return n.test(e)};const n=new RegExp("^(?:[a-z]+:)?//","i");function r(e){return e.replace(/[\\/]+/g,"/")}function i(e){const t=(e=r(e)).split("/");if(""===(e=t.pop())&&t.length>0&&(e=t.pop()),".."===e)return"";const n=e.lastIndexOf(".");return-1===n||0===n?"":e.slice(n)}},44486:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flowAsync=function(e){return(0,i.default)(e.map((e=>function(e){return async t=>e(await t)}(e))))},t.onlySuccessfulPromises=function(e){return Promise.all(e.map((e=>e.catch((()=>o))))).then((e=>e.filter((e=>e!==o))))},t.then=function(e){return t=>Promise.resolve(t).then(e)};var r,i=(r=n(85395))&&r.__esModule?r:{default:r};const o=Symbol("filterPromiseSymbol")},25664:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(46670),i=s(n(12957)),o=s(n(85395)),a=s(n(85505));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;tn.abort()),6e4);return fetch(e,u(u({},t),{},{signal:n.signal})).then((e=>(clearTimeout(r),e))).catch((e=>{if("AbortError"===e.name||"DOMException"===e.name)throw new Error("Request timed out after 60 seconds");throw e}))}function d(e){const[t,n]=e.split("?");return(0,r.Map)(u({url:t},n?{params:(i=n,(0,r.List)(i.split("&")).map((e=>(0,r.List)(e.split("=")).map(decodeURIComponent))).update(r.Map))}:{}));var i}function f(e){return`${e.get("url")}${e.get("params")?`?${t=e.get("params"),t.entrySeq().map((([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`)).join("&")}`:""}`;var t}function p(e){return(0,a.default)(e)?d(e):e?(0,r.fromJS)(e):(0,r.Map)()}const h=(m=e=>{const t=function(e){return[f(e),e.remove("url").remove("params").toJS()]}(e);return c(...t)},e=>m(p(e)));var m;const g=(0,o.default)([function(e){return(t,n)=>e(t,p(n))},i.default]);function v(e){return g(((t,n)=>n.setIn(e,t)))}function y(e){return g(((t,n)=>n.updateIn(e,((e=(0,r.Map)())=>e.merge(t)))))}const b=v(["method"]),w=v(["body"]),_=v(["cache"])("no-cache"),x=y(["params"]),k=y(["headers"]),E=new RegExp("^(?:[a-z]+:)?//","i"),C=g(((e,t)=>t.update("url",(t=>E.test(t)?t:e&&t&&"/"!==t[0]&&"/"!==e[e.length-1]?`${e}/${t}`:`${e}${t}`))));t.default={toURL:f,fromURL:d,fromFetchArguments:function(e,t){return d(e).merge((t?(0,r.fromJS)(t):(0,r.Map)()).remove("url").remove("params"))},performRequest:h,withMethod:b,withBody:w,withHeaders:k,withParams:x,withRoot:C,withNoCache:_,fetchWithTimeout:c}},1704:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validations=t.stringTemplate=t.DecapCmsLibWidgets=void 0;var r=a(n(34635));t.stringTemplate=r;var i=a(n(13433));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}t.validations=i,t.DecapCmsLibWidgets={stringTemplate:r,validations:i}},34635:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SLUG_MISSING_REQUIRED_DATE=void 0,t.addFileTemplateFields=function(e,t,n=""){if(!e)return t;const r=(0,l.extname)(e),i=(0,l.basename)(e,r),o=(0,l.dirname)(e).replace(new RegExp(`^(/?)${n}/?`),"$1");return t.withMutations((e=>{e.set("dirname",o),e.set("filename",i),e.set("extension",""===r?r:r.slice(1))}))},t.compileStringTemplate=function(e,t,n="",r=(0,a.Map)(),i){let o;const s=null!==t,l=e.replace(RegExp(p,"g"),((e,a,s,l)=>{let u;const f=function(e,t){if(!e.startsWith(d))return;const n=e.slice(d.length),r=t.getIn(v(n));return"object"==typeof r&&null!==r?JSON.stringify(r):r}(a,r);if(f)u=f;else{if(m[a]&&!t)return o=!0,"";u=m[a]?m[a](t):"slug"===a?n:r.getIn(v(a),"")}if(i)return i(u);{const e=function(e){if(e){let t=null;const n=c.find((n=>(t=e.match(n.pattern),!!t)));if(n)return e=>n.transform(e,t)}return null}(l);e&&(u=e(u))}return u}));if(s&&o){const e=new Error;throw e.name=g,e}return l},t.dateParsers=void 0,t.expandPath=function e({data:t,path:n,paths:r=[]}){n.endsWith(".*")&&(n+=".");const a=n.split(".*.");if(1===a.length)r.push(n);else{const n=a[0],s=(0,o.default)(t,n);Array.isArray(s)&&s.forEach(((o,s)=>{e({data:t,path:(0,i.default)(`${n}.${s}.${a.slice(1).join(".*.")}`,"."),paths:r})}))}return r},t.extractTemplateVars=function(e){const t=RegExp(p,"g"),n=RegExp(f,"g");return(e.match(t)||[]).map((e=>{const t=e.match(n);return t?t[0]:""}))},t.keyToPathArray=v,t.parseDateFromEntry=function(e,t){if(!t)return;const n=e.getIn(["data",t]),r=n&&(0,s.default)(n);return r&&r.isValid()?r.toDate():void 0};var r=u(n(36585)),i=u(n(1573)),o=u(n(72579)),a=n(46670),s=u(n(28879)),l=n(21023);function u(e){return e&&e.__esModule?e:{default:e}}const c=[{pattern:/^upper$/,transform:e=>e.toUpperCase()},{pattern:/^lower$/,transform:e=>e.toLowerCase()},{pattern:/^date\('(.+)'\)$/,transform:(e,t)=>(0,s.default)(e).format(t[1])},{pattern:/^default\('(.+)'\)$/,transform:(e,t)=>e||t[1]},{pattern:/^ternary\('(.*)',\s*'(.*)'\)$/,transform:(e,t)=>e?t[1]:t[2]},{pattern:/^truncate\(([0-9]+)(?:(?:,\s*['"])([^'"]*)(?:['"]))?\)$/,transform:(e,t)=>{const n=t[2]||"...",i=parseInt(t[1])+n.length;return(0,r.default)(e,{length:i,omission:n})}}],d="fields.",f="([^}{|]+)",p=`{{${f}( \\| ([^}{]+))?}}`;function h(e){return`0${e}`.slice(-2)}const m=t.dateParsers={year:e=>`${e.getUTCFullYear()}`,month:e=>h(e.getUTCMonth()+1),day:e=>h(e.getUTCDate()),hour:e=>h(e.getUTCHours()),minute:e=>h(e.getUTCMinutes()),second:e=>h(e.getUTCSeconds())},g=t.SLUG_MISSING_REQUIRED_DATE="SLUG_MISSING_REQUIRED_DATE";function v(e){if(!e)return[];const t=[],n=e.split("");let r,i=[];for(;r=n.shift();)["[","]","."].includes(r)?(i.length>0&&t.push(i.join("")),i=[]):i.push(r);return i.length>0&&t.push(i.join("")),t}},13433:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateMinMax=function(e,t,n,r,o){function a(n){return{type:"RANGE",message:e(`editor.editorControlPane.widget.${n}`,{fieldLabel:t,minCount:r,maxCount:o,count:r})}}return[r,o,null==n?void 0:n.size].every(i.default)&&(n.sizeo)?a(r===o?"rangeCountExact":"rangeCount"):(0,i.default)(r)&&r>0&&null!=n&&n.size&&n.sizeo?a("rangeMax"):void 0};var r,i=(r=n(80537))&&r.__esModule?r:{default:r}},63379:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Вход",loggingIn:"Влизане...",loginWithNetlifyIdentity:"Вход с Netlify Identity",loginWithAzure:"Вход с Azure",loginWithBitbucket:"Вход с Bitbucket",loginWithGitHub:"Вход с GitHub",loginWithGitLab:"Вход с GitLab",loginWithGitea:"Вход с Gitea",errors:{email:"Въведете вашия имейл.",password:"Въведете паролата.",identitySettings:"Няма достъп до настройките. Ако използвате git-gateway, не забравяйте да активирате услугата Identity и Git Gateway."}},app:{header:{content:"Съдържание",workflow:"Работен процес",media:"Мултимедийни файлове",quickAdd:"Бързо добавяне"},app:{errorHeader:"Грешка при зареждането на конфигурацията на CMS",configErrors:"Грешки в конфигурацията",checkConfigYml:"Проверете вашия файл config.yml.",loadingConfig:"Зареждане на конфигурация ...",waitingBackend:"В очакване на отговор от бекенда ..."},notFoundPage:{header:"Не е намерен"}},collection:{sidebar:{collections:"Колекции",allCollections:"Всички колекции",searchAll:"Търсете навсякъде",searchIn:"Търсене в"},collectionTop:{sortBy:"Сортирай по",viewAs:"Виж като",newButton:"Създай %{collectionLabel}",ascending:"Възходящ",descending:"Низходящ",searchResults:'Ресултати от търсенето за "%{searchTerm}"',searchResultsInCollection:'Ресултати от търсенето за "%{searchTerm}" в %{collection}',filterBy:"Филтрирай по",groupBy:"Групирай по"},entries:{loadingEntries:"Зареждане на записи...",cachingEntries:"Кеширане на записи...",longerLoading:"Това може да отнеме няколко минути",noEntries:"Няма записи"},groups:{other:"Други",negateLabel:"Не %{label}"},defaultFields:{author:{label:"Автор"},updatedOn:{label:"Обновено"}}},editor:{editorControl:{field:{optional:"незадължителен"}},editorControlPane:{widget:{required:"%{fieldLabel} е задължително.",regexPattern:"%{fieldLabel} не съответства на модела: %{pattern}.",processing:"%{fieldLabel} се обработва.",min:"%{fieldLabel} трябва да бъде поне %{minValue}.",range:"%{fieldLabel} трябва да бъде между %{minValue} и %{maxValue}.",max:"%{fieldLabel} трябва да бъде %{maxValue} или по-малко.",rangeCount:"%{fieldLabel} трябва да има между %{minCount} и %{maxCount} елемент(и).",rangeCountExact:"%{fieldLabel} трябва да има точно %{count} елемент(и).",minCount:"%{fieldLabel} трябва да бъде поне %{minCount} елемент(и).",maxCount:"%{fieldLabel} трябва да бъде %{maxCount} или по-малко елемент(и).",invalidPath:"'%{path}' не е валиден път",pathExists:"Пътят '%{path}' вече съществува"},i18n:{writingInLocale:"Писане на %{locale}"}},editor:{onLeavePage:"Наистина ли искате да напуснете тази страница?",onUpdatingWithUnsavedChanges:"Имате незапазени промени, моля, запазете преди актуализиране на състоянието.",onPublishingNotReady:"Моля, актуализирайте състоянието на „Готово“, преди да публикувате",onPublishingWithUnsavedChanges:"Имате незапазени промени, моля, запазете преди публикуване.",onPublishing:"Наистина ли искате да публикувате този запис?",onUnpublishing:"Наистина ли искате да прекратите публикуването на този запис?",onDeleteWithUnsavedChanges:"Наистина ли искате да изтриете този публикуван запис, както и незаписаните промени от текущата сесия?",onDeletePublishedEntry:"Наистина ли искате да изтриете този публикуван запис?",onDeleteUnpublishedChangesWithUnsavedChanges:"Това ще изтрие всички непубликувани промени в този запис, както и незаписаните ви промени от текущата сесия. Все още ли искате да изтриете?",onDeleteUnpublishedChanges:"Всички непубликувани промени в този запис ще бъдат изтрити. Все още ли искате да изтриете?",loadingEntry:"Зареждане на запис...",confirmLoadBackup:"За този запис беше възстановен локален архив, бихте ли искали да го използвате?"},editorInterface:{toggleI18n:"Превключване i18n",togglePreview:"Превключване на визуализация",toggleScrollSync:"Синхронизирай превъртане"},editorToolbar:{publishing:"Публикуване...",publish:"Публикувай",published:"Публикуван",unpublish:"Непубликувай",duplicate:"Дублирай",unpublishing:"Непубликуване...",publishAndCreateNew:"Публикувай и създай нов",publishAndDuplicate:"Публикувай и дублирай",deleteUnpublishedChanges:"Изтриване на непубликувани промени",deleteUnpublishedEntry:"Изтрий непубликувани записи",deletePublishedEntry:"Изтрий публикувани записи",deleteEntry:"Изтрий запис",saving:"Запазване...",save:"Запази",deleting:"Изтриване...",updating:"Актуализиране...",status:"Cъстояние: %{status}",backCollection:"Записване в %{collectionLabel} колекция",unsavedChanges:"Незапазени Промени",changesSaved:"Запазени промени",draft:"Чернова",inReview:"В ревю",ready:"Готово",publishNow:"Публикувай сега",deployPreviewPendingButtonLabel:"Проверете визуализацията",deployPreviewButtonLabel:"Визуализация",deployButtonLabel:"Изглед"},editorWidgets:{markdown:{bold:"Удебелен",italic:"Курсив",code:"Код",link:"Връзка",linkPrompt:"Моля, въведете URL на връзката",headings:"Заглавия",quote:"Цитат",bulletedList:"Маркиран Списък",numberedList:"Номериран Списък",addComponent:"Добави Компонент",richText:"Форматиране на текст",markdown:"Markdown"},image:{choose:"Избери изображение",chooseUrl:"Вмъкване от URL",replaceUrl:"Замяна с URL",promptUrl:"Въведете URL адреса на изображението",chooseDifferent:"Избери различно изображение",remove:"Премахни изображение"},file:{choose:"Избери файл file",chooseUrl:"Вмъкване от URL",replaceUrl:"Замяна с URL",promptUrl:"Въведете URL адреса на файла",chooseDifferent:"Избери различен файл",remove:"Премахни файл"},unknownControl:{noControl:"Няма контрол за приспособлението '%{widget}'."},unknownPreview:{noPreview:"Няма визуализация за приспособлението '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Сега",clear:"Изчисти"}}},mediaLibrary:{mediaLibraryCard:{draft:"Чернова",copy:"Копирай",copyUrl:"Копирай URL",copyPath:"Копитай път",copyName:"Копитай име",copied:"Копирано"},mediaLibrary:{onDelete:"Наистина ли искате да изтриете избрания медиен файл?",fileTooLarge:"Файлът е твърде голям.\nНастройките не позволяват запазване на файлове по-големи от %{size} kB."},mediaLibraryModal:{loading:"Зареждане...",noResults:"Няма резултати.",noAssetsFound:"Няма намерени ресурси.",noImagesFound:"Няма намерени изображения.",private:"Частен ",images:"Изображения",mediaAssets:"Медийни ресурси",search:"Търсене...",uploading:"Качване...",upload:"Качи",download:"Изтегли",deleting:"Изтриване...",deleteSelected:"Изтрай избрани",chooseSelected:"Избери избрани"}},ui:{default:{goBackToSite:"Обратно към сайта"},errorBoundary:{title:"Грешка",details:"Възникна грешка - моля ",reportIt:"докладвайте в GitHub.",detailsHeading:"Детайли",privacyWarning:"При отваряне на билет той автоматично се попълва предварително със съобщение за грешка и информация за отстраняване на грешки.\nМоля, проверете дали данните са верни и не съдържат поверителна информация.",recoveredEntry:{heading:"Възстановен документ",warning:"Моля, копирайте това съобщение някъде, преди да напуснете страницата!",copyButtonLabel:"Копиране в клипборда"}},settingsDropdown:{logOut:"Изход"},toast:{onFailToLoadEntries:"Неуспешно зареждане на записа: %{details}",onFailToLoadDeployPreview:"Неуспешно зареждане на визуализация: %{details}",onFailToPersist:"Неуспешно запазване на записа: %{details}",onFailToDelete:"Неуспешно изтриване на записа: %{details}",onFailToUpdateStatus:"Неуспешно актуализиране на състоянието: %{details}",missingRequiredField:"Извинете, пропуснахте задължително поле. Моля, попълнете преди запазване.",entrySaved:"Записът е запазен",entryPublished:"Записът е публикуван",entryUnpublished:"Записът е непубликуван",onFailToPublishEntry:"Неуспешно публикуване на запис: %{details}",onFailToUnpublishEntry:"Неуспешно премахване на публикацията на записа: %{details}",entryUpdated:"Статусът на записа е актуализиран",onDeleteUnpublishedChanges:"Непубликуваните промени са изтрити",onFailToAuth:"%{details}",onLoggedOut:"Излезли сте. Моля, запазете всички данни и влезте отново",onBackendDown:"Има прекъсване в работата на бекенда. Виж детайлите %{details}"}},workflow:{workflow:{loading:"Зареждане на редакционни записи",workflowHeading:"Редакционен работен процес",newPost:"Нова публикация",description:"Броят на записите, които очакват проверка -% {smart_count}, готови за публикуване -% {readyCount}. |||| Броят на записите, които очакват проверка -% {smart_count}, готови за публикуване -% {readyCount}. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Изтриване на промените",deleteNewEntry:"Изтриване на нов запис",pubChanges:"Публикуване на промени",objavNewEntry:"Публикуване на нов запис"},workflowList:{onDeleteEntry:"Наистина ли искате да изтриете този запис?",onPublishingNotReadyEntry:'Могат да се публикуват само елементи със статус "Готов". Плъзенете картата в колоната "Готов" за да активирате публикуването.',onPublishEntry:"Наистина ли искате да публикувате този запис?",draftHeader:"Чернови",inReviewHeader:"В Ревю",readyHeader:"Готов",currentEntries:"%{smart_count} запис |||| %{smart_count} записи"}}}},20026:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Iniciar sessió",loggingIn:"Iniciant sessió...",loginWithNetlifyIdentity:"Iniciar sessió amb l'identitat de Netlify",loginWithBitbucket:"Iniciar sessió amb Bitbucket",loginWithGitHub:"Iniciar sessió amb GitHub",loginWithGitLab:"Iniciar sessió amb GitLab",loginWithGitea:"Iniciar sessió amb Gitea",errors:{email:"Comprova que has escrit el teu email.",password:"Si us plau escriu la teva contrasenya.",identitySettings:"No s'ha pogut obtenir accés a les configuracions d'identitat. Quan feu servir backend de git-gateway, assegureu-vos que activeu el servei d’identitat i la passarel·la de Git."}},app:{header:{content:"Contingut",workflow:"Flux Editorial",media:"Multimèdia",quickAdd:"Afegir"},app:{errorHeader:"Error al carregar la configuració del CMS",configErrors:"Errors de configuració",checkConfigYml:"Comprovi l'arxiu config.yml.",loadingConfig:"Carregant configuració....",waitingBackend:"Esperant al servidor..."},notFoundPage:{header:"No trobat"}},collection:{sidebar:{collections:"Col·leccions",allCollections:"Totes les col·leccions",searchAll:"Buscar tots",searchIn:"Buscar a"},collectionTop:{sortBy:"Ordenar per",viewAs:"Veure com",newButton:"Nou %{collectionLabel}",ascending:"Ascendent",descending:"Descendent",searchResults:'Buscar resultats per "%{searchTerm}"',searchResultsInCollection:'Buscar resultats per "%{searchTerm}" a %{collection}',filterBy:"Filtrar per",groupBy:"Agrupar per"},entries:{loadingEntries:"Carregant entrades",cachingEntries:"Emmagatzemant entrades a la caché",longerLoading:"Això podria tardar uns minuts",noEntries:"Cap entrada"},groups:{other:"Altre",negateLabel:"No %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Actualitzat el"}}},editor:{editorControl:{field:{optional:"opcional"}},editorControlPane:{widget:{required:"%{fieldLabel} és obligatori.",regexPattern:"%{fieldLabel} no coincideix amb el patró: %{pattern}.",processing:"%{fieldLabel} està processant.",range:"%{fieldLabel} ha d'estar entre %{minValue} i %{maxValue}.",min:"%{fieldLabel} ha ser com a mínim %{minValue}.",max:"%{fieldLabel} ha de ser %{maxValue} o més.",rangeCount:"%{fieldLabel} ha de tenir entre %{minCount} i %{maxCount} element(s).",rangeCountExact:"%{fieldLabel} ha de tenir exactament %{count} element(s).",rangeMin:"%{fieldLabel} ha de tenir com a mínim %{minCount} d'element(s).",rangeMax:"%{fieldLabel} ha de ser %{maxCount} o inferior.",invalidPath:"'%{path}' no és una ruta valida",pathExists:"'%{path}' ja existeix"},i18n:{writingInLocale:"Escriure en %{locale}"}},editor:{onLeavePage:"Estàs segur que vols deixar aquesta pàgina?",onUpdatingWithUnsavedChanges:"Tens canvis no guardats, si us plau, guarda'ls abans d'actualitzar l'estat.",onPublishingNotReady:'Si us plau, actualitza l\'estat a "Llest" abans de publicar.',onPublishingWithUnsavedChanges:"Tens canvis no guardats, si us plau, guarda'ls abans de publicar-los.",onPublishing:"Estàs segur que vols publicar aquesta entrada?",onUnpublishing:"Estàs segur que vols esborrar aquesta entrada?",onDeleteWithUnsavedChanges:"Està segur que vol eliminar aquesta entrada publicada, així com els canvis no guardats de la sessió actual?",onDeletePublishedEntry:"Està segur que vol eliminar aquesta entrada publicada?",onDeleteUnpublishedChangesWithUnsavedChanges:"Això eliminarà tots els canvis no publicats d'aquesta entrada així com els canvis no guardats de la sessió actual. Encara vol procedir?",onDeleteUnpublishedChanges:"Tots els canvis no publicats en aquesta entrada seràn esborrats. Encara els vol eliminar?",loadingEntry:"Carregant entrada...",confirmLoadBackup:"S'ha recuperat una copia de seguretat local per aquesta entrada. La vol utilitzar?"},editorInterface:{toggleI18n:"Mostrar/Amagar traduccions",togglePreview:"Mostrar/Amagar previsualització"},editorToolbar:{publishing:"Publicant...",publish:"Publicar",published:"Publicat",unpublish:"Despublicar",duplicate:"Duplicar",unpublishing:"Despublicant...",publishAndCreateNew:"Publicar i crear de nou",publishAndDuplicate:"Publica i duplica",deleteUnpublishedChanges:"Eliminar canvis no publicats",deleteUnpublishedEntry:"Eliminar entrada no publicada",deletePublishedEntry:"Eliminar entrada publicada",deleteEntry:"Eliminar entrada",saving:"Guardant...",save:"Guardar",deleting:"Eliminant...",updating:"Actualizant...",status:"Estat: %{status}",backCollection:"Escrivint a la colecció %{collectionLabel}",unsavedChanges:"Canvis no guardats",changesSaved:"Canvis guardats",draft:"Esborrany",inReview:"En revisió",ready:"Llest",publishNow:"Publicar ara",deployPreviewPendingButtonLabel:"Comprovar Vista Prèvia",deployPreviewButtonLabel:"Veure Vista Prèvia",deployButtonLabel:"Veure publicació"},editorWidgets:{markdown:{bold:"Negreta",italic:"Cursiva",code:"Codi",link:"Enllaç",linkPrompt:"Introdueix l'URL de l'enllaç",headings:"Encapçalaments",bulletedList:"Llista",numberedList:"Llista numèrica",addComponent:"Afegir component",richText:"Text enriquit",markdown:"Markdown"},image:{choose:"Escull una imatge",chooseUrl:"Introdueix una URL",replaceUrl:"Substitueix per una URL",promptUrl:"Introdueix l'URL de la imatge",chooseDifferent:"Escull una imatge diferent",remove:"Treu la imatge"},file:{choose:"Escull un arxiu",chooseUrl:"Introdueix una URL",replaceUrl:"Substitueix per una URL",promptUrl:"Introdueix l'URL de l'arxiu",chooseDifferent:"Escull un arxiu diferent",remove:"Esborrar arxiu"},unknownControl:{noControl:"No existeix un control per al widget '%{widget}'."},unknownPreview:{noPreview:"No existeix una vista prèvia per al widget '%{widget}'."},headingOptions:{headingOne:"Encapçalament 1",headingTwo:"Encapçalament 2",headingThree:"Encapçalament 3",headingFour:"Encapçalament 4",headingFive:"Encapçalament 5",headingSix:"Encapçalament 6"},datetime:{now:"Ara",clear:"Netejar"}}},mediaLibrary:{mediaLibraryCard:{draft:"Esborrany",copy:"Copiar",copyUrl:"Copiar URL",copyPath:"Copiar path",copyName:"Copiar nom",copied:"Copiat"},mediaLibrary:{onDelete:"Està segur de que vol eliminar el mitjà seleccionat?",fileTooLarge:"El fitxer és massa gran.\nLa configuració no permet fitxers més grans de %{size} kB."},mediaLibraryModal:{loading:"Carregant...",noResults:"Sense resultats.",noAssetsFound:"Arxius no trobats.",noImagesFound:"Imatges no trobades.",private:"Privat",images:"Imatges",mediaAssets:"Arxius multimèdia",search:"Buscar...",uploading:"Penjant...",upload:"Penjar nou",download:"Descarregar",deleting:"Eliminant...",deleteSelected:"Eliminar selecció",chooseSelected:"Confirmar selecció"}},ui:{default:{goBackToSite:"Torna enrere al lloc"},errorBoundary:{title:"Error",details:"S'ha produït un error - si us plau ",reportIt:"Informa'ns d'això a GitHub.",detailsHeading:"Detalls",recoveredEntry:{heading:"Document recuperat",warning:"Si us plau, copiï/enganxi això en algun lloc abans de navegar a una altre pàgina!",copyButtonLabel:"Copiar al porta-retalls"}},settingsDropdown:{logOut:"Tancar sessió"},toast:{onFailToLoadEntries:"No s'ha ha pogut carregar l'entrada: %{details}",onFailToLoadDeployPreview:"No s'ha pogut carregar la vista prèvia: %{details}",onFailToPersist:"No s'ha pogut guardar l'entrada: %{details}",onFailToDelete:"No s'ha pogut eliminar l'entrada: %{details}",onFailToUpdateStatus:"No s'ha pogut actualitzar l'estat: %{details}",missingRequiredField:"Ups, no ha omplert un camp obligatori. Si us plau, ompli'l abans de guardar.",entrySaved:"Entrada guardada",entryPublished:"Entrada publicada",entryUnpublished:"Entrada despublicada",onFailToPublishEntry:"No s'ha pogut publicar: %{details}",onFailToUnpublishEntry:"No s'ha pogut despublicar l'entrada: %{details}",entryUpdated:"Estat de l'entrada actualitzat",onDeleteUnpublishedChanges:"Canvis no publicats eliminats",onFailToAuth:"%{details}",onLoggedOut:"La teva sessió ha estat tancada. Si us plau, torna a iniciar-la",onBackendDown:"El servidor està patint problemes. Consulta %{details} per a més informació"}},workflow:{workflow:{loading:"Carregant Entradas del Flux Editorial",workflowHeading:"Flux Editorial",newPost:"Nou article",description:"%{smart_count} entrada esperant revisió, %{readyCount} llesta per a publicar |||| %{smart_count} entrades esperant revisió, %{readyCount} llestes per a publicar. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} per %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"per %{author}",deleteChanges:"Eliminar canvis",deleteNewEntry:"Eliminar nova entrada",publishChanges:"Publicar canvis",publishNewEntry:"Publicar nova entrada"},workflowList:{onDeleteEntry:"Està segur que vol borrar aquesta entrada?",onPublishingNotReadyEntry:'Només es poden publicar elements amb estat "Llest". Si us plau, arrossegui la targeta fins la columna "Llest" per a permetre\'n la publicació',onPublishEntry:"Està segur que vol publicar aquesta entrada?",draftHeader:"Esborranys",inReviewHeader:"En revisió",readyHeader:"Llest",currentEntries:"%{smart_count} entrada |||| %{smart_count} entrades"}}}},47775:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Přihlásit",loggingIn:"Přihlašování…",loginWithNetlifyIdentity:"Přihlásit pomocí Netlify Identity",loginWithAzure:"Přihlásit pomocí Azure",loginWithBitbucket:"Přihlásit pomocí Bitbucket",loginWithGitHub:"Přihlásit pomocí GitHub",loginWithGitLab:"Přihlásit pomocí GitLab",loginWithGitea:"Přihlásit pomocí Gitea",errors:{email:"Vyplňte e-mailovou adresu.",password:"Vyplňte heslo.",identitySettings:"Nastavení identity nenalezeno. Používáte-li git-gateway server nezapomeňte aktivovat službu Identity a Git Gateway."}},app:{header:{content:"Obsah",workflow:"Workflow",media:"Média",quickAdd:"Přidat"},app:{errorHeader:"Chyba při načítání CMS konfigurace",configErrors:"Chyba konfigurace",checkConfigYml:"Zkontrolujte soubor config.yml.",loadingConfig:"Načítání konfigurace…",waitingBackend:"Čekání na server…"},notFoundPage:{header:"Nenalezeno"}},collection:{sidebar:{collections:"Kolekce",allCollections:"Všechny kolekce",searchAll:"Hledat",searchIn:"Hledat v"},collectionTop:{sortBy:"Seřadit podle",viewAs:"Zobrazit jako",newButton:"Nový %{collectionLabel}",ascending:"Vzestupné",descending:"Sestupné",searchResults:'Výsledky vyhledávání pro "%{searchTerm}"',searchResultsInCollection:'Výsledky vyhledávání pro "%{searchTerm}" v kolekci %{collection}',filterBy:"Filtrovat podle",groupBy:"Seskupit podle"},entries:{loadingEntries:"Načítání záznamů",cachingEntries:"Úkládání záznamů do mezipaměti",longerLoading:"Načítání může trvat několik minut",noEntries:"Žádné záznamy"},groups:{other:"Ostatní",negateLabel:"Není %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Poslední aktualizace"}}},editor:{editorControl:{field:{optional:"volitelný"}},editorControlPane:{widget:{required:"%{fieldLabel} je povinný.",regexPattern:"%{fieldLabel} nesouhlasí s předepsaným vzorem: %{pattern}.",processing:"%{fieldLabel} se zpracovává.",range:"%{fieldLabel} musí být mezi %{minValue} a %{maxValue}.",min:"%{fieldLabel} musí být alespoň %{minValue}.",max:"%{fieldLabel} musí být %{maxValue} nebo méně.",rangeCount:"%{fieldLabel} musí mít %{minCount} až %{maxCount} položek.",rangeCountExact:"%{fieldLabel} musí mít přesně %{count} položek.",rangeMin:"%{fieldLabel} musí mít nejméně %{minCount} položky.",rangeMax:"%{fieldLabel} musí mít %{maxCount} nebo méně položek.",invalidPath:"'%{path}' není platnou cestou.",pathExists:"Cesta '%{path}' už existuje."},i18n:{writingInLocale:"Psát v %{locale}"}},editor:{onLeavePage:"Chcete opravdu opustit tuto stránku?",onUpdatingWithUnsavedChanges:"Máte neuložené změny. Uložte je prosím před změnou statusu.",onPublishingNotReady:"Změňte stav na „Připraveno“ před publikováním.",onPublishingWithUnsavedChanges:"Máte neuložené změny, prosím uložte je před publikováním.",onPublishing:"Chcete opravdu publikovat tento záznam?",onUnpublishing:"Chcete opravdu zrušit publikování tohoto záznamu?",onDeleteWithUnsavedChanges:"Chcete opravdu vymazat tento publikovaný záznam a všechny neuložené změny z této relace?",onDeletePublishedEntry:"Chcete opravdu smazat tento publikovaný záznam?",onDeleteUnpublishedChangesWithUnsavedChanges:"Tato akce vymaže všechny nepublikované změny v tomto záznamu a také všechny neuložené změny z této relace. Chcete záznam skutečně vymazat?",onDeleteUnpublishedChanges:"Všechny nepublivkoané změny v tomto záznamu budou vymazány. Chcete ho skuteně vymazat?",loadingEntry:"Načítání záznamu…",confirmLoadBackup:"Lokální kopie tohoto záznamu byla nalezena, chcete ji použít?"},editorInterface:{toggleI18n:"Přepnout lokalizaci",togglePreview:"Přepnout náhled",toggleScrollSync:"Sladit skrolování"},editorToolbar:{publishing:"Publikování…",publish:"Publikovat",published:"Publikovaný",unpublish:"Zrušit publikování",duplicate:"Duplikovat",unpublishing:"Rušení publikování…",publishAndCreateNew:"Publikovat a vytvořit nový",publishAndDuplicate:"Publikovat a duplikovat",deleteUnpublishedChanges:"Vymazat nepublikované změny",deleteUnpublishedEntry:"Vymazat nepublikovaný záznam",deletePublishedEntry:"Vymazat publikovaný záznam",deleteEntry:"Vymazat záznam",saving:"Ukládání…",save:"Uložit",deleting:"Vymazávání…",updating:"Aktualizace…",status:"Status: %{status}",backCollection:" Píšete v kolekci %{collectionLabel}",unsavedChanges:"Neuložené změny",changesSaved:"Změny uloženy",draft:"Koncept",inReview:"V revizi",ready:"Připraveno",publishNow:"Publikovat teď",deployPreviewPendingButtonLabel:"Zkontrolovat náhled",deployPreviewButtonLabel:"Zobrazit náhled",deployButtonLabel:"Zobrazit na webu"},editorWidgets:{markdown:{bold:"Tučně",italic:"Kurzíva",code:"Kód",link:"Odkaz",linkPrompt:"Zadejte URL odkazu",headings:"Nadpisy",quote:"Citovat",bulletedList:"Odrážkový seznam",numberedList:"Číslovaný seznam",addComponent:"Přidat součástku",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Vyberte obrázek",chooseUrl:"Přidat z URL",replaceUrl:"Nahradit z URL",promptUrl:"Zadejte URL obrázku",chooseDifferent:"Vyberte jiný obrázek",remove:"Odstranit obrázek"},file:{choose:"Vyberte soubor",chooseUrl:"Přidat z URL",replaceUrl:"Nahradit z URL",promptUrl:"Zadejte URL souboru",chooseDifferent:"Vyberte jiný soubor",remove:"Odebrat soubor"},unknownControl:{noControl:"Žádné ovládání pro widget '%{widget}'."},unknownPreview:{noPreview:"Žádný náhled pro widget '%{widget}'."},headingOptions:{headingOne:"Nadpis 1",headingTwo:"Nadpis 2",headingThree:"Nadpis 3",headingFour:"Nadpis 4",headingFive:"Nadpis 5",headingSix:"Nadpis 6"},datetime:{now:"Teď",clear:"Vymazat"}}},mediaLibrary:{mediaLibraryCard:{draft:"Koncept",copy:"Kopírovat",copyUrl:"Kopírovat URL",copyPath:"Kopírovat cestu",copyName:"Kopírovat název",copied:"Zkopírováno"},mediaLibrary:{onDelete:"Chcete skutečně vymazat označená média?",fileTooLarge:"Soubor je příliš velký.\nSoubor musí být menší než %{size} kB."},mediaLibraryModal:{loading:"Načítání…",noResults:"Nic nenalezeno.",noAssetsFound:"Média nenalezena.",noImagesFound:"Obrázky nenalezeny.",private:"Soukromé ",images:"Obrázky",mediaAssets:"Média",search:"Hledat…",uploading:"Nahrávání…",upload:"Nahrát nový",download:"Stáhnout",deleting:"Vymazávání…",deleteSelected:"Smazat označené",chooseSelected:"Vybrat označené"}},ui:{default:{goBackToSite:"Vrátit se na stránku"},errorBoundary:{title:"Chyba",details:"Nastala chyba – prosím ",reportIt:"nahlašte ji.",detailsHeading:"Detaily",privacyWarning:"Při otevření problému budou předvyplněny ladící data a chybová zpráva.\nProsím zkontrolujte, jestli jsou informace správné, a případně odstraňte citlivé údaje.",recoveredEntry:{heading:"Nalezený dokument",warning:"Prosím zkopírujte dokument do schránky před tím než odejte z této stránky!",copyButtonLabel:"Zkopírovat do schránky"}},settingsDropdown:{logOut:"Odhlásit"},toast:{onFailToLoadEntries:"Chyba při načítání záznamu: %{details}",onFailToLoadDeployPreview:"Chyba při načítání náhledu: %{details}",onFailToPersist:"Chyba při ukládání záznamu: %{details}",onFailToDelete:"Chyba při vymazávání záznamu: %{details}",onFailToUpdateStatus:"Chyba při změně stavu záznamu: %{details}",missingRequiredField:"Vynechali jste povinné pole. Prosím vyplňte ho.",entrySaved:"Záznam uložen",entryPublished:"Záznam publikován",entryUnpublished:"Publikování záznamu zrušeno",onFailToPublishEntry:"Chyba při publikování záznamu: %{details}",onFailToUnpublishEntry:"Chyba při rušení publikování záznamu: %{details}",entryUpdated:"Stav záznamu byl změněn",onDeleteUnpublishedChanges:"Nepublikované změny byly smazány",onFailToAuth:"%{details}",onLoggedOut:"Byli jste odhlášeni, prosím zálohujte všechna data a znova se přihlašte",onBackendDown:"Backend zaznamenal výpadek. Podívejte se do %{details} pro více informací."}},workflow:{workflow:{loading:"Načítání workflow záznamů",workflowHeading:"Schvalovací Workflow",newPost:"Nový post",description:"%{smart_count} záznam čeká na schválení, %{readyCount} připraven k publikaci. |||| %{smart_count} čeká na schválení, %{readyCount} připraveno k publikaci. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} (%{author})",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Vymazat změny",deleteNewEntry:"Vymazat nový záznam",publishChanges:"Publikovat změny",publishNewEntry:"Publikovat nový záznam"},workflowList:{onDeleteEntry:"Opravdu chcete smazat tento záznam?",onPublishingNotReadyEntry:'Pouze položky se statusem "Připraveno" mohou být publikováno. Pro umožnění publikace musíte přetáhnout kartu do sloupce "Připraveno"',onPublishEntry:"Opravdu chcete publikovat tento záznam?",draftHeader:"Koncepty",inReviewHeader:"V revizi",readyHeader:"Připraveno",currentEntries:"%{smart_count} záznam |||| %{smart_count} záznamů"}}}},49312:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Log ind",loggingIn:"Logger ind...",loginWithNetlifyIdentity:"Log ind med Netlify Identity",loginWithAzure:"Log ind med Azure",loginWithBitbucket:"Log ind med Bitbucket",loginWithGitHub:"Log ind med GitHub",loginWithGitLab:"Log ind med GitLab",loginWithGitea:"Log ind med Gitea",errors:{email:"Vær sikker på du har indtastet din e-mail.",password:"Indtast dit kodeord.",identitySettings:"Kunne ikke tilgå identity opsætning. Ved brug af git-gateway som bagvedliggende service, sørg for at aktivere Identity service og Git Gateway."}},app:{header:{content:"Indhold",workflow:"Arbejdsgang",media:"Medier",quickAdd:"Hurtig opret"},app:{errorHeader:"Fejl ved indlæsning af CMS opsætningen",configErrors:"Opsætningsfejl",checkConfigYml:"Kontroller din config.yml fil.",loadingConfig:"Indlæser opsætning...",waitingBackend:"Venter på bagvedliggende service..."},notFoundPage:{header:"Ikke fundet"}},collection:{sidebar:{collections:"Samlinger",allCollections:"Alle samlinger",searchAll:"Søg i alt",searchIn:"Søg i"},collectionTop:{sortBy:"Sorter efter",viewAs:"Vis som",newButton:"Ny %{collectionLabel}",ascending:"Stigende",descending:"Faldende",searchResults:'Søgeresultater for "%{searchTerm}"',searchResultsInCollection:'Søgeresultater for "%{searchTerm}" i %{collection}',filterBy:"Filtrer efter",groupBy:"Grupper efter"},entries:{loadingEntries:"Indlæser dokumenter...",cachingEntries:"Caching af dokumenter...",longerLoading:"Dette kan tage adskillige minutter",noEntries:"Ingen dokumenter"},groups:{other:"Anden",negateLabel:"Ikke %{label}"},defaultFields:{author:{label:"Forfatter"},updatedOn:{label:"Opdateret "}}},editor:{editorControl:{field:{optional:"kan udelades"}},editorControlPane:{widget:{required:"%{fieldLabel} er påkrævet.",regexPattern:"%{fieldLabel} matchede ikke: %{pattern}.",processing:"%{fieldLabel} behandles.",range:"%{fieldLabel} skal være mellem %{minValue} og %{maxValue}.",min:"%{fieldLabel} skal være mindst %{minValue}.",max:"%{fieldLabel} være være %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} skal have mellem %{minCount} og %{maxCount} element(er).",rangeCountExact:"%{fieldLabel} skal have præcis %{count} element(er).",rangeMin:"%{fieldLabel} skal have mindst %{minCount} element(er).",rangeMax:"%{fieldLabel} skal have %{maxCount} eller færre element(er).",invalidPath:"'%{path}' er ikke en gyldig sti",pathExists:"Stien '%{path}' findes allerede"},i18n:{writingInLocale:"Skriver på %{locale}",copyFromLocale:"Kopier fra et andet sprog",copyFromLocaleConfirm:"Vil du indsætte data fra sproget %{locale}?\nAlt eksisterende indhold vil blive overskrevet."}},editor:{onLeavePage:"Er du sikker på at du vil forlade siden?",onUpdatingWithUnsavedChanges:"Du har ændringer der ikke er gemt, gem disse før status ændres.",onPublishingNotReady:'Skift status til "Klar" inden publicering.',onPublishingWithUnsavedChanges:"Du har ændringer der ikke er gemt, gem inden publicing.",onPublishing:"Er du sikker på at du vil publicere dette dokument?",onUnpublishing:"Er du sikker på at du vil afpublicere dette dokument?",onDeleteWithUnsavedChanges:"Er du sikker på at du vil slette dette tidliere publiceret dokument, samt dine nuværende ugemte ændringer fra denne session?",onDeletePublishedEntry:"Er du sikker på at du vil slette dette tidliere publiceret dokument?",onDeleteUnpublishedChangesWithUnsavedChanges:"Alle ikke publicerede ændringer til dette dokument vil blive slettet ligesom dine nuværende ugemte ændringer fra denne session. Er du sikker på at du vil slette?",onDeleteUnpublishedChanges:"Alle ikke publicerede ændringer til dette dokument vil blive slettet. Er du sikker på at du vil slette?",loadingEntry:"Indlæser dokument...",confirmLoadBackup:"En lokal sikkerhedskopi blev gendannet for dette dokument, vil du anvende denne?"},editorToolbar:{publishing:"Publicerer...",publish:"Publicer",published:"Publiceret",unpublish:"Afpublicer",duplicate:"Kopier",unpublishing:"Afpublicerer...",publishAndCreateNew:"Publicer og opret ny",publishAndDuplicate:"Publicer og kopier",deleteUnpublishedChanges:"Slet upublicerede ændringer",deleteUnpublishedEntry:"Slet upubliceret dokument",deletePublishedEntry:"Slet publiceret dokument",deleteEntry:"Slet dokument",saving:"Gemmer...",save:"Gem",statusInfoTooltipDraft:"Status for elementet er kladde. For at afslutte og sende til gennemsyn, skift status til ‘Til gennemsyn’",statusInfoTooltipInReview:"Elementet er til gennemsyn, det er ikke nødvendigt med yderligere handlinger. Du kan dog stadig lave yderligere ændringer mens det er til gennemsyn.",deleting:"Sletter...",updating:"Opdaterer...",status:"Status: %{status}",backCollection:" Skriver til %{collectionLabel} samlingen",unsavedChanges:"Ugemte ændringer",changesSaved:"Ændringer gemt",draft:"Kladder",inReview:"Til gennemsyn",ready:"Klar",publishNow:"Publicer nu",deployPreviewPendingButtonLabel:"Lav preview",deployPreviewButtonLabel:"Vis preview",deployButtonLabel:"Vis live"},editorWidgets:{markdown:{bold:"Fed",italic:"Kursiv",code:"Kode",link:"Link",linkPrompt:"Indtast URL for link",headings:"Overskrifter",quote:"Citat",bulletedList:"Punktopstilling",numberedList:"Nummeret liste",addComponent:"Tilføj komponent",richText:"Formatteret tekst",markdown:"Markdown"},image:{choose:"Vælg et billede",chooseMultiple:"Vælg billeder",chooseUrl:"Indsæt fra URL",replaceUrl:"Erstat med URL",promptUrl:"Indtast URL for billeder",chooseDifferent:"Vælg et andet billede",addMore:"Tilføj flere billeder",remove:"Fjern billede",removeAll:"Fjern alle billeder"},file:{choose:"Vælg fil",chooseUrl:"Indsæt fra URL",chooseMultiple:"Vælg filer",replaceUrl:"Erstat med URL",promptUrl:"Indtast URL for filen",chooseDifferent:"Vælg en anden fil",addMore:"Tilføj flere filer",remove:"Fjern fil",removeAll:"Fjern alle filer"},unknownControl:{noControl:"Ingen kontrol for '%{widget}'."},unknownPreview:{noPreview:"Ingen preview for '%{widget}'."},headingOptions:{headingOne:"Overskrift 1",headingTwo:"Overskrift 2",headingThree:"Overskrift 3",headingFour:"Overskrift 4",headingFive:"Overskrift 5",headingSix:"Overskrift 6"},datetime:{now:"Nu",clear:"Ryd"},list:{add:"Tilføj %{item}",addType:"Tilføj %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Kladde",copy:"Kopier",copyUrl:"Kopier URL",copyPath:"Kopier sti",copyName:"Kopier navn",copied:"Kopieret"},mediaLibrary:{onDelete:"Er du sikker på at du vil slette det valgte medie?",fileTooLarge:"Filen er for stor.\nOpsætningen tillader ikke filer større end %{size} kB."},mediaLibraryModal:{loading:"Indlæser...",noResults:"Ingen resultater.",noAssetsFound:"Ingen elementer fundet.",noImagesFound:"Ingen billeder fundet.",private:"Privat ",images:"Billeder",mediaAssets:"Medie elementer",search:"Søg...",uploading:"Uploader...",upload:"Upload",download:"Download",deleting:"Slet...",deleteSelected:"Slet valgte",chooseSelected:"Anvend valgte"}},ui:{default:{goBackToSite:"Tilbage til hjemmesiden"},errorBoundary:{title:"Fejl",details:"Der opstod en fejl - venligst ",reportIt:"opret et issue på GitHub.",detailsHeading:"Detalger",privacyWarning:"Ved at oprette et issue forudfyldes det med fejlbeskeden og data til debugging.\nKontroller venligst at informationerne er korrekte og fjern eventuelle følsomme data.",recoveredEntry:{heading:"Gendannet dokument",warning:"Kopier dette et sted hen inden du navigerer væk!",copyButtonLabel:"Kopier til udklipsholder"}},settingsDropdown:{logOut:"Log af"},toast:{onFailToLoadEntries:"Fejl ved indlæsning af dokumenter: %{details}",onFailToLoadDeployPreview:"Preview kunne ikke indlæses: %{details}",onFailToPersist:"Dokumentet kunne ikke gemmes: %{details}",onFailToDelete:"Dokumentet kunne ikke slettes: %{details}",onFailToUpdateStatus:"Status kunne ikke opdateres: %{details}",missingRequiredField:"Ups, du mangler et påkrævet felt. Udfyld de påkrævede felter før dokumentet gemmes.",entrySaved:"Dokumentet er gemt",entryPublished:"Dokumentet er publiceret ",entryUnpublished:"Dokumentet er afpubliceret",onFailToPublishEntry:"Kunne ikke publicere på grund af en fejl: %{details}",onFailToUnpublishEntry:"Kunne ikke afpublicere på grund af en fejl: %{details}",entryUpdated:"Dokumentstatus er opdateret",onDeleteUnpublishedChanges:"Upublicerede ændringer blev slettet",onFailToAuth:"%{details}",onLoggedOut:"Du er blevet logget ind, gem venligst evt. ændringer og log på igen",onBackendDown:"Den bagvedliggende service er ikke tilgængelig i øjeblikket. Se %{details} for mere information"}},workflow:{workflow:{loading:"Indlæser dokumenter i redaktionel arbejdsgang",workflowHeading:"Redaktionel arbejdsgang",newPost:"Nyt indlæg",description:"%{smart_count} dokumenter afventer gennemsyn, %{readyCount} er klar til live. |||| %{smart_count} dokumenter afventer gennemsyn, %{readyCount} klar til go live. ",dateFormat:"D. MMMM"},workflowCard:{lastChange:"%{date} af %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"af %{author}",deleteChanges:"Slet ændringer",deleteNewEntry:"Slet nye dokumenter",publishChanges:"Publicer ændringer",publishNewEntry:"Publicer nye dokumenter"},workflowList:{onDeleteEntry:"Er du sikker på at du vil slette dette dokument?",onPublishingNotReadyEntry:'Kun dokumenter med "Klar" status kan publiceres. Træk kortet til "Klar" kolonnen for at tillade publicering.',onPublishEntry:"Er du sikker på at du vil publicere dokumentet?",draftHeader:"Kladder",inReviewHeader:"Til gennemsyn",readyHeader:"Klar",currentEntries:"%{smart_count} dokument |||| %{smart_count} dokumenter"}}}},36407:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Login",loggingIn:"Sie werden eingeloggt...",loginWithNetlifyIdentity:"Mit Netlify Identity einloggen",loginWithAzure:"Mit Azure einloggen",loginWithBitbucket:"Mit Bitbucket einloggen",loginWithGitHub:"Mit GitHub einloggen",loginWithGitLab:"Mit GitLab einloggen",loginWithGitea:"Mit Gitea einloggen",errors:{email:"Stellen Sie sicher, Ihre E-Mail-Adresse einzugeben.",password:"Bitte geben Sie Ihr Passwort ein.",identitySettings:"Identity Einstellungen konnten nicht abgerufen werden. Stellen Sie bei der Verwendung des Git-Gateway Backends sicher, den Identity Service und das Git Gateway zu aktivieren."}},app:{header:{content:"Inhalt",workflow:"Arbeitsablauf",media:"Medien",quickAdd:"Schnell-Erstellung"},app:{errorHeader:"Fehler beim Laden der CMS-Konfiguration.",configErrors:"Konfigurationsfehler",checkConfigYml:"Überprüfen Sie die config.yml Konfigurationsdatei.",loadingConfig:"Konfiguration laden...",waitingBackend:"Auf Server warten..."},notFoundPage:{header:"Nicht gefunden"}},collection:{sidebar:{collections:"Inhaltstypen",allCollections:"Allen Inhaltstypen",searchAll:"Alles durchsuchen",searchIn:"Suchen in"},collectionTop:{sortBy:"Sortieren nach",viewAs:"Anzeigen als",newButton:"Neue(r/s) %{collectionLabel}",ascending:"Aufsteigend",descending:"Absteigend",searchResults:'Suchergebnisse für "%{searchTerm}"',searchResultsInCollection:'Suchergebnisse für "%{searchTerm}" in %{collection}',filterBy:"Filtern nach",groupBy:"Gruppieren nach"},entries:{loadingEntries:"Beiträge laden",cachingEntries:"Beiträge zwischenspeichern",longerLoading:"Diese Aktion kann einige Minuten in Anspruch nehmen",noEntries:"Keine Beiträge"},groups:{other:"Andere",negateLabel:"Nicht %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Änderungsdatum"}}},editor:{editorControl:{field:{optional:"optional"}},editorControlPane:{widget:{required:"%{fieldLabel} ist erforderlich.",regexPattern:"%{fieldLabel} entspricht nicht dem Muster: %{pattern}.",processing:"%{fieldLabel} wird verarbeitet.",range:"%{fieldLabel} muss zwischen %{minValue} und %{maxValue} liegen.",min:"%{fieldLabel} muss größer als %{minValue} sein.",max:"%{fieldLabel} darf nicht größer als %{maxValue} sein.",rangeCount:"%{fieldLabel} muss %{minCount} bis %{maxCount} Element(e) enthalten.",rangeCountExact:"%{fieldLabel} muss exakt %{count} Element(e) enthalten.",rangeMin:"%{fieldLabel} muss mindestens %{minCount} Element(e) enthalten.",rangeMax:"%{fieldLabel} darf maximal %{maxCount} Element(e) enthalten.",invalidPath:"'%{path}' ist kein gültiger Pfad",pathExists:"Pfad '%{path}' existiert bereits"},i18n:{writingInLocale:"Aktuelle Sprache: %{locale}",copyFromLocale:"Aus anderer Sprache übernehmen",copyFromLocaleConfirm:"Wollen Sie wirklich die Daten aus der Sprache %{locale} übernehmen?\nAlle bishergen Inhalte werden überschrieben."}},editor:{onLeavePage:"Möchten Sie diese Seite wirklich verlassen?",onUpdatingWithUnsavedChanges:"Es sind noch ungespeicherte Änderungen vorhanden. Bitte speichern Sie diese, bevor Sie den Status aktualisieren.",onPublishingNotReady:'Bitte setzten die den Status vor dem Veröffentlichen auf "Abgeschlossen".',onPublishingWithUnsavedChanges:"Es sind noch ungespeicherte Änderungen vorhanden. Bitte speicheren Sie vor dem Veröffentlichen.",onPublishing:"Soll dieser Beitrag wirklich veröffentlicht werden?",onUnpublishing:"Soll die Veröffentlichung dieses Beitrags wirklich zurückgezogen werden?",onDeleteWithUnsavedChanges:"Möchten Sie diesen veröffentlichten Beitrag, sowie Ihre nicht gespeicherten Änderungen löschen?",onDeletePublishedEntry:"Soll dieser veröffentlichte Beitrag wirklich gelöscht werden?",onDeleteUnpublishedChangesWithUnsavedChanges:"Möchten Sie diesen unveröffentlichten Beitrag, sowie Ihre nicht gespeicherten Änderungen löschen?",onDeleteUnpublishedChanges:"Alle unveröffentlichten Änderungen werden gelöscht. Möchten Sie wirklich löschen?",loadingEntry:"Beitrag laden...",confirmLoadBackup:"Für diesen Beitrag ist ein lokales Backup vorhanden. Möchten Sie dieses benutzen?"},editorInterface:{toggleI18n:"Übersetzungen",togglePreview:"Vorschau",toggleScrollSync:"Synchron scrollen"},editorToolbar:{publishing:"Veröffentlichen...",publish:"Veröffentlichen",published:"Veröffentlicht",unpublish:"Veröffentlichung zurückziehen",duplicate:"Duplizieren",unpublishing:"Veröffentlichung wird zurückgezogen...",publishAndCreateNew:"Veröffentlichen und neuen Beitrag erstellen",publishAndDuplicate:"Veröffentlichen und Beitrag duplizieren",deleteUnpublishedChanges:"Unveröffentlichte Änderungen verwerfen",deleteUnpublishedEntry:"Lösche unveröffentlichten Beitrag",deletePublishedEntry:"Lösche veröffentlichten Beitrag",deleteEntry:"Lösche Beitrag",saving:"Speichern...",save:"Speichern",statusInfoTooltipDraft:"Beitrag ist im Entwurfsstatus. Um ihn fertigzustellen und zur Überprüfung freizugeben, setzen Sie den Status auf ‘Zur Überprüfung‘.",statusInfoTooltipInReview:"Beitrag wird überprüft, keine weitere Aktion erforderlich. Sie können weitere Änderungen vornehmen, während die Überprüfung läuft.",deleting:"Löschen...",updating:"Aktualisieren...",status:"Status: %{status}",backCollection:"Zurück zu allen %{collectionLabel}",unsavedChanges:"Ungespeicherte Änderungen",changesSaved:"Änderungen gespeichert",draft:"Entwurf",inReview:"Zur Überprüfung",ready:"Abgeschlossen",publishNow:"Jetzt veröffentlichen",deployPreviewPendingButtonLabel:"Überprüfen ob eine Vorschau vorhanden ist",deployPreviewButtonLabel:"Vorschau anzeigen",deployButtonLabel:"Live ansehen"},editorWidgets:{markdown:{bold:"Fett",italic:"Kursiv",code:"Code",link:"Link",linkPrompt:"Link-URL eingeben",headings:"Überschriften",quote:"Zitat",bulletedList:"Aufzählungsliste",numberedList:"Nummerierte Liste",addComponent:"Komponente hinzufügen",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Wähle ein Bild",chooseUrl:"Von URL hinzufügen",replaceUrl:"Von URL ersetzen",promptUrl:"Bild-URL eingeben",chooseDifferent:"Wähle ein anderes Bild",remove:"Entferne Bild"},file:{choose:"Wählen Sie eine Datei",chooseUrl:"Von URL hinzufügen",replaceUrl:"Von URL ersetzen",promptUrl:"Datei-URL eingeben",chooseDifferent:"Wählen Sie eine andere Datei",remove:"Datei löschen"},unknownControl:{noControl:"Kein Bedienelement für Widget '%{widget}'."},unknownPreview:{noPreview:"Keine Vorschau für Widget '%{widget}'."},headingOptions:{headingOne:"Überschrift 1",headingTwo:"Überschrift 2",headingThree:"Überschrift 3",headingFour:"Überschrift 4",headingFive:"Überschrift 5",headingSix:"Überschrift 6"},datetime:{now:"Jetzt",clear:"Löschen"},list:{add:"%{item} hinzufügen",addType:"%{item} hinzufügen"}}},mediaLibrary:{mediaLibraryCard:{draft:"Entwurf",copy:"Kopieren",copyUrl:"URL kopieren",copyPath:"Pfad kopieren",copyName:"Name kopieren",copied:"Kopiert"},mediaLibrary:{onDelete:"Soll das ausgewählte Medium wirklich gelöscht werden?",fileTooLarge:"Datei zu groß.\nErlaubt sind nur Dateien bis %{size} kB."},mediaLibraryModal:{loading:"Laden...",noResults:"Keine Egebnisse.",noAssetsFound:"Keine Medien gefunden.",noImagesFound:"Keine Bilder gefunden.",private:"Privat ",images:"Bilder",mediaAssets:"Medien",search:"Suchen...",uploading:"Hochladen...",upload:"Hochladen",download:"Download",deleting:"Löschen...",deleteSelected:"Ausgewähltes Element löschen",chooseSelected:"Ausgewähltes Element verwenden"}},ui:{default:{goBackToSite:"Zurück zur Seite"},errorBoundary:{title:"Fehler",details:"Ein Fehler ist aufgetreten - bitte ",reportIt:"berichte ihn.",detailsHeading:"Details",privacyWarning:"Beim Eröffnen eines Fehlerberichts werden automatisch die Fehlermeldung und Debugdaten eingefügt.\nBitte überprüfen Sie, ob die Informationen korrrekt sind und entfernen Sie ggfs. sensible Daten.",recoveredEntry:{heading:"Wiederhergestellter Beitrag",warning:"Bitte sichern Sie sich diese Informationen, bevor Sie die Seite verlassen!",copyButtonLabel:"In Zwischenablage speichern"}},settingsDropdown:{logOut:"Abmelden"},toast:{onFailToLoadEntries:"Beitrag konnte nicht geladen werden: %{details}",onFailToLoadDeployPreview:"Vorschau konnte nicht geladen werden: %{details}",onFailToPersist:"Beitrag speichern fehlgeschlagen: %{details}",onFailToDelete:"Beitrag löschen fehlgeschlagen: %{details}",onFailToUpdateStatus:"Status aktualisieren fehlgeschlagen: %{details}",missingRequiredField:"Oops, einige zwingend erforderliche Felder sind nicht ausgefüllt.",entrySaved:"Beitrag gespeichert",entryPublished:"Beitrag veröffentlicht",entryUnpublished:"Beitrag nicht mehr öffentlich",onFailToPublishEntry:"Veröffentlichen fehlgeschlagen: %{details}",onFailToUnpublishEntry:"Veröffentlichung des Beitrags konnte nicht rückgängig gemacht werden: %{details}",entryUpdated:"Beitragsstatus aktualisiert",onDeleteUnpublishedChanges:"Unveröffentlichte Änderungen verworfen",onFailToAuth:"%{details}",onLoggedOut:"Sie wurden ausgeloggt. Bitte sichern Sie Ihre Daten und melden Sie sich erneut an.",onBackendDown:"Der Server ist aktuell nicht erreichbar. Für weitere Informationen, siehe: %{details}"}},workflow:{workflow:{loading:"Arbeitsablauf Beiträge laden",workflowHeading:"Redaktioneller Arbeitsablauf",newPost:"Neuer Beitrag",description:"%{smart_count} Beitrag zur Überprüfung bereit, %{readyCount} bereit zur Veröffentlichung. |||| %{smart_count} Beiträge zur Überprüfung bereit, %{readyCount} bereit zur Veröffentlichung. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} von %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"von %{author}",deleteChanges:"Änderungen verwerfen",deleteNewEntry:"Lösche neuen Beitrag",publishChanges:"Veröffentliche Änderungen",publishNewEntry:"Veröffentliche neuen Beitrag"},workflowList:{onDeleteEntry:"Soll dieser Beitrag wirklich gelöscht werden?",onPublishingNotReadyEntry:'Nur Beiträge im Status "Abgeschlossen" können veröffentlicht werden. Bitte ziehen Sie den Beitrag in die "Abgeschlossen" Spalte um die Veröffentlichung zu aktivieren.',onPublishEntry:"Soll dieser Beitrag wirklich veröffentlicht werden soll?",draftHeader:"Entwurf",inReviewHeader:"In Prüfung",readyHeader:"Abgeschlossen",currentEntries:"%{smart_count} Beitrag |||| %{smart_count} Beiträge"}}}},95590:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Login",loggingIn:"Logging in...",loginWithNetlifyIdentity:"Login with Netlify Identity",loginWithAzure:"Login with Azure",loginWithBitbucket:"Login with Bitbucket",loginWithGitHub:"Login with GitHub",loginWithGitLab:"Login with GitLab",loginWithGitea:"Login with Gitea",errors:{email:"Make sure to enter your email.",password:"Please enter your password.",identitySettings:"Unable to access identity settings. When using git-gateway backend make sure to enable Identity service and Git Gateway."}},app:{header:{content:"Contents",workflow:"Workflow",media:"Media",quickAdd:"Quick add"},app:{errorHeader:"Error loading the CMS configuration",configErrors:"Config Errors",checkConfigYml:"Check your config.yml file.",loadingConfig:"Loading configuration...",waitingBackend:"Waiting for backend..."},notFoundPage:{header:"Not Found"}},collection:{sidebar:{collections:"Collections",allCollections:"All Collections",searchAll:"Search all",searchIn:"Search in"},collectionTop:{sortBy:"Sort by",viewAs:"View as",newButton:"New %{collectionLabel}",ascending:"Ascending",descending:"Descending",searchResults:'Search Results for "%{searchTerm}"',searchResultsInCollection:'Search Results for "%{searchTerm}" in %{collection}',filterBy:"Filter by",groupBy:"Group by"},entries:{loadingEntries:"Loading Entries...",cachingEntries:"Caching Entries...",longerLoading:"This might take several minutes",noEntries:"No Entries"},groups:{other:"Other",negateLabel:"Not %{label}"},defaultFields:{author:{label:"Author"},updatedOn:{label:"Updated On"}}},editor:{editorControl:{field:{optional:"optional"}},editorControlPane:{widget:{required:"%{fieldLabel} is required.",regexPattern:"%{fieldLabel} didn't match the pattern: %{pattern}.",processing:"%{fieldLabel} is processing.",range:"%{fieldLabel} must be between %{minValue} and %{maxValue}.",min:"%{fieldLabel} must be at least %{minValue}.",max:"%{fieldLabel} must be %{maxValue} or less.",rangeCount:"%{fieldLabel} must have between %{minCount} and %{maxCount} item(s).",rangeCountExact:"%{fieldLabel} must have exactly %{count} item(s).",rangeMin:"%{fieldLabel} must be at least %{minCount} item(s).",rangeMax:"%{fieldLabel} must be %{maxCount} or less item(s).",invalidPath:"'%{path}' is not a valid path",pathExists:"Path '%{path}' already exists"},i18n:{writingInLocale:"Writing in %{locale}",copyFromLocale:"Fill in from another locale",copyFromLocaleConfirm:"Do you want to fill in data from %{locale} locale?\nAll existing content will be overwritten."}},editor:{onLeavePage:"Are you sure you want to leave this page?",onUpdatingWithUnsavedChanges:"You have unsaved changes, please save before updating status.",onPublishingNotReady:'Please update status to "Ready" before publishing.',onPublishingWithUnsavedChanges:"You have unsaved changes, please save before publishing.",onPublishing:"Are you sure you want to publish this entry?",onUnpublishing:"Are you sure you want to unpublish this entry?",onDeleteWithUnsavedChanges:"Are you sure you want to delete this published entry, as well as your unsaved changes from the current session?",onDeletePublishedEntry:"Are you sure you want to delete this published entry?",onDeleteUnpublishedChangesWithUnsavedChanges:"This will delete all unpublished changes to this entry, as well as your unsaved changes from the current session. Do you still want to delete?",onDeleteUnpublishedChanges:"All unpublished changes to this entry will be deleted. Do you still want to delete?",loadingEntry:"Loading entry...",confirmLoadBackup:"A local backup was recovered for this entry, would you like to use it?"},editorInterface:{toggleI18n:"Toggle i18n",togglePreview:"Toggle preview",toggleScrollSync:"Sync scrolling"},editorToolbar:{publishing:"Publishing...",publish:"Publish",published:"Published",unpublish:"Unpublish",duplicate:"Duplicate",unpublishing:"Unpublishing...",publishAndCreateNew:"Publish and create new",publishAndDuplicate:"Publish and duplicate",deleteUnpublishedChanges:"Delete unpublished changes",deleteUnpublishedEntry:"Delete unpublished entry",deletePublishedEntry:"Delete published entry",deleteEntry:"Delete entry",saving:"Saving...",save:"Save",statusInfoTooltipDraft:"Entry status is set to draft. To finalize and submit it for review, set the status to ‘In review’",statusInfoTooltipInReview:"Entry is being reviewed, no further actions are required. However, you can still make additional changes while it is being reviewed.",deleting:"Deleting...",updating:"Updating...",status:"Status: %{status}",backCollection:" Writing in %{collectionLabel} collection",unsavedChanges:"Unsaved Changes",changesSaved:"Changes saved",draft:"Draft",inReview:"In review",ready:"Ready",publishNow:"Publish now",deployPreviewPendingButtonLabel:"Check for Preview",deployPreviewButtonLabel:"View Preview",deployButtonLabel:"View Live"},editorWidgets:{markdown:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",linkPrompt:"Enter the URL of the link",headings:"Headings",quote:"Quote",bulletedList:"Bulleted List",numberedList:"Numbered List",addComponent:"Add Component",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Choose an image",chooseMultiple:"Choose images",chooseUrl:"Insert from URL",replaceUrl:"Replace with URL",promptUrl:"Enter the URL of the image",chooseDifferent:"Choose different image",addMore:"Add more images",remove:"Remove image",removeAll:"Remove all images"},file:{choose:"Choose a file",chooseUrl:"Insert from URL",chooseMultiple:"Choose files",replaceUrl:"Replace with URL",promptUrl:"Enter the URL of the file",chooseDifferent:"Choose different file",addMore:"Add more files",remove:"Remove file",removeAll:"Remove all files"},unknownControl:{noControl:"No control for widget '%{widget}'."},unknownPreview:{noPreview:"No preview for widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Now",clear:"Clear"},list:{add:"Add %{item}",addType:"Add %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Draft",copy:"Copy",copyUrl:"Copy URL",copyPath:"Copy Path",copyName:"Copy Name",copied:"Copied"},mediaLibrary:{onDelete:"Are you sure you want to delete selected media?",fileTooLarge:"File too large.\nConfigured to not allow files greater than %{size} kB."},mediaLibraryModal:{loading:"Loading...",noResults:"No results.",noAssetsFound:"No assets found.",noImagesFound:"No images found.",private:"Private ",images:"Images",mediaAssets:"Media assets",search:"Search...",uploading:"Uploading...",upload:"Upload",download:"Download",deleting:"Deleting...",deleteSelected:"Delete selected",chooseSelected:"Choose selected"}},ui:{default:{goBackToSite:"Go back to site"},errorBoundary:{title:"Error",details:"There's been an error - please ",reportIt:"open an issue on GitHub.",detailsHeading:"Details",privacyWarning:"Opening an issue pre-populates it with the error message and debugging data.\nPlease verify the information is correct and remove sensitive data if exists.",recoveredEntry:{heading:"Recovered document",warning:"Please copy/paste this somewhere before navigating away!",copyButtonLabel:"Copy to clipboard"}},settingsDropdown:{logOut:"Log Out"},toast:{onFailToLoadEntries:"Failed to load entry: %{details}",onFailToLoadDeployPreview:"Failed to load preview: %{details}",onFailToPersist:"Failed to persist entry: %{details}",onFailToDelete:"Failed to delete entry: %{details}",onFailToUpdateStatus:"Failed to update status: %{details}",missingRequiredField:"Oops, you've missed a required field. Please complete before saving.",entrySaved:"Entry saved",entryPublished:"Entry published",entryUnpublished:"Entry unpublished",onFailToPublishEntry:"Failed to publish: %{details}",onFailToUnpublishEntry:"Failed to unpublish entry: %{details}",entryUpdated:"Entry status updated",onDeleteUnpublishedChanges:"Unpublished changes deleted",onFailToAuth:"%{details}",onLoggedOut:"You have been logged out, please back up any data and login again",onBackendDown:"The backend service is experiencing an outage. See %{details} for more information"}},workflow:{workflow:{loading:"Loading Editorial Workflow Entries",workflowHeading:"Editorial Workflow",newPost:"New Post",description:"%{smart_count} entry waiting for review, %{readyCount} ready to go live. |||| %{smart_count} entries waiting for review, %{readyCount} ready to go live. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"Delete changes",deleteNewEntry:"Delete new entry",publishChanges:"Publish changes",publishNewEntry:"Publish new entry"},workflowList:{onDeleteEntry:"Are you sure you want to delete this entry?",onPublishingNotReadyEntry:'Only items with a "Ready" status can be published. Please drag the card to the "Ready" column to enable publishing.',onPublishEntry:"Are you sure you want to publish this entry?",draftHeader:"Drafts",inReviewHeader:"In Review",readyHeader:"Ready",currentEntries:"%{smart_count} entry |||| %{smart_count} entries"}}}},33321:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Iniciar sesión",loggingIn:"Iniciando sesión...",loginWithNetlifyIdentity:"Iniciar sesión con Netlify Identity",loginWithBitbucket:"Iniciar sesión con Bitbucket",loginWithGitHub:"Iniciar sesión con GitHub",loginWithGitLab:"Iniciar sesión con GitLab",loginWithGitea:"Iniciar sesión con Gitea",errors:{email:"Asegúrate de introducir tu correo electrónico.",password:"Por favor introduce tu contraseña.",identitySettings:"No se pudo acceder a la configuración de Identity. Cuando uses el backend git-gateway asegurate de habilitar el servicio Identity y Git Gateway."}},app:{header:{content:"Contenido",workflow:"Flujo Editorial",media:"Medios",quickAdd:"Añadir rápido"},app:{errorHeader:"Error al cargar la configuración del CMS",configErrors:"Errores de configuración",checkConfigYml:"Compruebe el archivo config.yml.",loadingConfig:"Cargando configuración....",waitingBackend:"Esperando al servidor..."},notFoundPage:{header:"No encontrado"}},collection:{sidebar:{collections:"Colecciones",searchAll:"Buscar todas"},collectionTop:{sortBy:"Ordenar por",viewAs:"Ver como",newButton:"Nuevo %{collectionLabel}",ascending:"Ascendente",descending:"Descendente"},entries:{loadingEntries:"Cargando entradas",cachingEntries:"Almacenando entradas en caché",longerLoading:"Esto puede tardar varios minutos",noEntries:"Ninguna entrada"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Actualizado en"}}},editor:{editorControl:{field:{optional:"opcional"}},editorControlPane:{widget:{required:"%{fieldLabel} es obligatorio.",regexPattern:"%{fieldLabel} no coincide con el patrón: %{pattern}.",processing:"%{fieldLabel} está procesando.",range:"%{fieldLabel} debe estar entre %{minValue} y %{maxValue}.",min:"%{fieldLabel} debe ser por lo menos %{minValue}.",max:"%{fieldLabel} debe ser %{maxValue} o menos.",rangeCount:"%{fieldLabel} debe tener entre %{minCount} y %{maxCount} elemento(s).",rangeCountExact:"%{fieldLabel} debe tener exactamente %{count} elemento(s).",rangeMin:"%{fieldLabel} debe ser por lo menos %{minCount} elemento(s).",rangeMax:"%{fieldLabel} debe ser %{maxCount} o menos elemento(s)."}},editor:{onLeavePage:"¿Estás seguro de que quieres dejar esta página?",onUpdatingWithUnsavedChanges:"Tiene cambios no guardados, por favor, guárdelos antes de actualizar el estado.",onPublishingNotReady:'Por favor, actualice el estado a "Ready" antes de publicar.',onPublishingWithUnsavedChanges:"Tiene cambios no guardados, por favor guárdelos antes de publicarlos.",onPublishing:"¿Estás seguro de que quieres publicar esta entrada?",onUnpublishing:"¿Estás seguro de que quieres retirar esta entrada?",onDeleteWithUnsavedChanges:"¿Está seguro de que desea eliminar esta entrada publicada, así como los cambios no guardados de la sesión actual?",onDeletePublishedEntry:"¿Estás seguro de que quieres borrar esta entrada publicada?",onDeleteUnpublishedChangesWithUnsavedChanges:"Esto eliminará todos los cambios no publicados de esta entrada, así como los cambios no guardados de la sesión actual. ¿Todavía quieres borrar?",onDeleteUnpublishedChanges:"Todos los cambios no publicados en esta entrada serán eliminados. ¿Todavía quieres borrar?",loadingEntry:"Cargando entrada...",confirmLoadBackup:"Se recuperó una copia de seguridad local para esta entrada, ¿le gustaría utilizarla?"},editorToolbar:{publishing:"Publicando...",publish:"Publicar",published:"Publicado",unpublish:"Retirar",duplicate:"Duplicar",unpublishing:"Retirando...",publishAndCreateNew:"Publicar y crear nuevo",publishAndDuplicate:"Publicar y duplicar",deleteUnpublishedChanges:"Eliminar cambios no publicados",deleteUnpublishedEntry:"Eliminar entrada no publicada",deletePublishedEntry:"Eliminar entrada publicada",deleteEntry:"Eliminar entrada",saving:"Guardando...",save:"Guardar",deleting:"Eliminando...",updating:"Actualizando...",status:"Estado: %{status}",backCollection:" Escribiendo en la colección %{collectionLabel}",unsavedChanges:"Cambios no guardados",changesSaved:"Cambios guardados",draft:"Borrador",inReview:"En revisión",ready:"Listo",publishNow:"Publicar ahora",deployPreviewPendingButtonLabel:"Comprobar Vista Previa",deployPreviewButtonLabel:"Ver Vista Previa",deployButtonLabel:"Ver publicación"},editorWidgets:{markdown:{richText:"Texto enriquecido",markdown:"Markdown"},image:{choose:"Elige una imagen",chooseDifferent:"Elige una imagen diferente",remove:"Quita la imagen"},file:{choose:"Escoge un archivo",chooseDifferent:"Elige un archivo diferente",remove:"Remover archivo"},unknownControl:{noControl:"No existe un control para el widget '%{widget}'."},unknownPreview:{noPreview:"No existe una vista previa para el widget '%{widget}'."},headingOptions:{headingOne:"Encabezado 1",headingTwo:"Encabezado 2",headingThree:"Encabezado 3",headingFour:"Encabezado 4",headingFive:"Encabezado 5",headingSix:"Encabezado 6"},datetime:{now:"Ahora",clear:"Limpiar"}}},mediaLibrary:{mediaLibraryCard:{draft:"Borrador"},mediaLibrary:{onDelete:"¿Está seguro de que desea eliminar el archivo seleccionado?",fileTooLarge:"Archivo muy pesado.\nConfigurado para no permitir archivos más pesados que %{size} kB."},mediaLibraryModal:{loading:"Cargando...",noResults:"Sin resultados.",noAssetsFound:"Archivos no encontrados.",noImagesFound:"Imágenes no encontradas.",private:"Privado ",images:"Imágenes",mediaAssets:"Archivos multimedia",search:"Buscar...",uploading:"Subiendo...",upload:"Subir nuevo",download:"Descargar",deleting:"Eliminando...",deleteSelected:"Eliminar selección",chooseSelected:"Confirmar selección"}},ui:{default:{goBackToSite:"Regresar al sitio"},errorBoundary:{title:"Error",details:"Se ha producido un error - por favor ",reportIt:"infórmenos de ello.",detailsHeading:"Detalles",privacyWarning:"Abrir un reporte lo rellena previamente con el mensaje de error y los datos de depuración.\nPor favor verifica que la información es correcta y elimina cualquier dato sensible.",recoveredEntry:{heading:"Documento recuperado",warning:"¡Por favor, copie/pegue esto en algún lugar antes de ir a otra página!",copyButtonLabel:"Copiar al portapapeles"}},settingsDropdown:{logOut:"Cerrar sesión"},toast:{onFailToLoadEntries:"No se ha podido cargar la entrada: %{details}",onFailToLoadDeployPreview:"No se ha podido cargar la vista previa: %{details}",onFailToPersist:"No se ha podido guardar la entrada: %{details}",onFailToDelete:"No se ha podido borrar la entrada: %{details}",onFailToUpdateStatus:"No se ha podido actualizar el estado: %{details}",missingRequiredField:"Oops, no ha rellenado un campo obligatorio. Por favor, rellénelo antes de guardar.",entrySaved:"Entrada guardada",entryPublished:"Entrada publicada",entryUnpublished:"Entrada retirada",onFailToPublishEntry:"No se ha podido publicar: %{details}",onFailToUnpublishEntry:"No se ha podido retirar la entrada: %{details}",entryUpdated:"Estado de entrada actualizado",onDeleteUnpublishedChanges:"Cambios no publicados eliminados",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Cargando Entradas del Flujo Editorial",workflowHeading:"Flujo Editorial",newPost:"Nuevo artículo",description:"%{smart_count} entrada esperando revisión, %{readyCount} lista para publicar |||| %{smart_count} entradas esperando revisión, %{readyCount} listas para publicar. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} por %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"por %{author}",deleteChanges:"Eliminar cambios",deleteNewEntry:"Eliminar nueva entrada",publishChanges:"Publicar cambios",publishNewEntry:"Publicar nueva entrada"},workflowList:{onDeleteEntry:"¿Está seguro de que quiere borrar esta entrada?",onPublishingNotReadyEntry:'Sólo se pueden publicar los elementos con el estado "Listo". Por favor, arrastre la tarjeta hasta la columna "Listo" para permitir la publicación.',onPublishEntry:"¿Estás seguro de que quieres publicar esta entrada?",draftHeader:"Borradores",inReviewHeader:"En revisión",readyHeader:"Listo",currentEntries:"%{smart_count} entrada |||| %{smart_count} entradas"}}}},86187:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"وارد شدن",loggingIn:"ورود به سیستم در...",loginWithNetlifyIdentity:"با Netlify Identity وارد شوید",loginWithAzure:"با Azure وارد شوید",loginWithBitbucket:"با Bitbucket وارد شوید",loginWithGitHub:"با GitHub وارد شوید",loginWithGitLab:"با GitLab وارد شوید",loginWithGitea:"با Gitea وارد شوید",errors:{email:"ایمیل خود را حتما وارد کنید.",password:"لطفا رمز عبور خود را وارد کنید.",identitySettings:"دسترسی به تنظیمات هویت امکان پذیر نیست. هنگام استفاده از باطن git-gateway، حتماً سرویس Identity و Git Gateway را فعال کنید."}},app:{header:{content:"فهرست",workflow:"جریان کار",media:"رسانه ها",quickAdd:"اضافه کردن سریع"},app:{errorHeader:"خطا در بارگیری پیکربندی CMS",configErrors:"خطاهای پیکربندی",checkConfigYml:"فایل config.yml خود را بررسی کنید.",loadingConfig:"در حال بارگیری پیکربندی...",waitingBackend:"در انتظار باطن..."},notFoundPage:{header:"پیدا نشد"}},collection:{sidebar:{collections:"مجموعه ها",allCollections:"همه مجموعه ها",searchAll:"جستجو در همه",searchIn:"جستجو در"},collectionTop:{sortBy:"مرتب سازی بر اساس",viewAs:"نمایش به صورت",newButton:"%{collectionLabel} جدید",ascending:"صعودی",descending:"نزولی",searchResults:'نتایج جستجو برای "%{searchTerm}"',searchResultsInCollection:'نتایج جستجو برای "%{searchTerm}" در %{collection}',filterBy:"محدود شده توسط",groupBy:"دسته بندی بر اساس"},entries:{loadingEntries:"در حال بارگیری ورودی ها...",cachingEntries:"ذخیره ورودی ها...",longerLoading:"این ممکن است چند دقیقه طول بکشد",noEntries:"بدون ورودی"},groups:{other:"دیگر",negateLabel:"نه %{label}"},defaultFields:{author:{label:"نویسنده"},updatedOn:{label:"به روز شد"}}},editor:{editorControl:{field:{optional:"اختیاری"}},editorControlPane:{widget:{required:"%{fieldLabel} مورد نیاز است.",regexPattern:"%{fieldLabel} با الگوی %{pattern} مطابقت نداشت.",processing:"%{fieldLabel} در حال پردازش است.",range:"%{fieldLabel} باید بین %{minValue} و %{maxValue} باشد.",min:"%{fieldLabel} باید حداقل %{minValue} باشد.",max:"%{fieldLabel} باید %{maxValue} یا کمتر باشد.",rangeCount:"%{fieldLabel} باید بین %{minCount} و %{maxCount} مورد (ها) داشته باشد.",rangeCountExact:"%{fieldLabel} باید دقیقا %{count} مورد(ها) داشته باشد.",rangeMin:"%{fieldLabel} باید حداقل %{minCount} مورد(ها) باشد.",rangeMax:"%{fieldLabel} باید %{maxCount} یا کمتر از موارد باشد.",invalidPath:"'%{path}' یک مسیر معتبر نیست",pathExists:"مسیر '%{path}' از قبل وجود دارد"},i18n:{writingInLocale:"نوشتن به %{locale}",copyFromLocale:"از محلی دیگر پر کنید",copyFromLocaleConfirm:"آیا می خواهید داده ها را از %{locale} محلی پر کنید؟\nتمام محتوای موجود رونویسی خواهد شد."}},editor:{onLeavePage:"آیا مطمئن هستید که می خواهید این صفحه را ترک کنید؟",onUpdatingWithUnsavedChanges:"شما تغییرات ذخیره نشده ای دارید، لطفا قبل از به روز رسانی وضعیت را ذخیره کنید.",onPublishingNotReady:'لطفاً قبل از انتشار وضعیت را به "آماده" به روز کنید.',onPublishingWithUnsavedChanges:"شما تغییرات ذخیره نشده ای دارید، لطفاً قبل از انتشار ذخیره کنید.",onPublishing:"آیا شما مطمئن هستید که می خواهید این مطلب را منتشر کنید؟",onUnpublishing:"آیا مطمئن هستید که می خواهید این ورودی را لغو انتشار کنید؟",onDeleteWithUnsavedChanges:"آیا مطمئن هستید که می خواهید این ورودی منتشر شده و همچنین تغییرات ذخیره نشده خود را از جلسه فعلی حذف کنید؟",onDeletePublishedEntry:"آیا مطمئنید که می خواهید این ورودی منتشر شده را حذف کنید؟",onDeleteUnpublishedChangesWithUnsavedChanges:"با این کار همه تغییرات منتشر نشده در این ورودی و همچنین تغییرات ذخیره نشده شما از جلسه فعلی حذف می شود. آیا هنوز می خواهید حذف کنید؟",onDeleteUnpublishedChanges:"همه تغییرات منتشر نشده در این ورودی حذف خواهند شد. آیا هنوز می خواهید حذف کنید؟",loadingEntry:"در حال بارگیری ورودی...",confirmLoadBackup:"یک نسخه پشتیبان محلی برای این ورودی بازیابی شد، آیا می خواهید از آن استفاده کنید؟"},editorInterface:{toggleI18n:"i18n را تغییر دهید",togglePreview:"پیش نمایش را تغییر دهید",toggleScrollSync:"همگام سازی پیمایش"},editorToolbar:{publishing:"در حال انتشار...",publish:"انتشار",published:"منتشر شده",unpublish:"لغو انتشار",duplicate:"تکراری",unpublishing:"در حال لغو انتشار...",publishAndCreateNew:"انتشار و ایجاد جدید",publishAndDuplicate:"انتشار و تکثیر",deleteUnpublishedChanges:"حذف تغییرات منتشر نشده",deleteUnpublishedEntry:"حذف ورودی منتشر نشده",deletePublishedEntry:"حذف ورودی منتشر شده",deleteEntry:"حذف ورودی",saving:"صرفه جویی در...",save:"صرفه جویی",statusInfoTooltipDraft:"وضعیت ورودی روی پیش نویس تنظیم شده است. برای نهایی کردن و ارسال آن برای بررسی، وضعیت را روی «در حال بررسی» تنظیم کنید",statusInfoTooltipInReview:"ورودی در حال بررسی است، هیچ اقدام دیگری لازم نیست. با این حال، همچنان می‌توانید در حین بررسی، تغییرات بیشتری ایجاد کنید.",deleting:"در حال حذف...",updating:"در حال بروز رسانی...",status:"وضعیت: %{status}",backCollection:"نوشتن در مجموعه %{collectionLabel}",unsavedChanges:"تغییرات ذخیره نشده",changesSaved:"تغییرات ذخیره شد",draft:"پیش نویس",inReview:"در بررسی",ready:"آماده",publishNow:"اکنون منتشر کنید",deployPreviewPendingButtonLabel:"پیش نمایش را بررسی کنید",deployPreviewButtonLabel:"مشاهده پیش نمایش",deployButtonLabel:"مشاهده زنده"},editorWidgets:{markdown:{bold:"پررنگ",italic:"کج",code:"کد",link:"ارتباط دادن",linkPrompt:"آدرس لینک را وارد کنید",headings:"سرفصل ها",quote:"نقل قول",bulletedList:"لیست گلوله شده",numberedList:"لیست شماره گذاری شده",addComponent:"افزودن کامپوننت",richText:"متن غنی",markdown:"مارک داون"},image:{choose:"یک تصویر را انتخاب کنید",chooseMultiple:"تصاویر را انتخاب کنید",chooseUrl:"درج از URL",replaceUrl:"با URL جایگزین کنید",promptUrl:"آدرس تصویر را وارد کنید",chooseDifferent:"تصویر متفاوت را انتخاب کنید",addMore:"تصاویر بیشتری اضافه کنید",remove:"حذف تصویر",removeAll:"حذف همه تصاویر"},file:{choose:"یک فایل را انتخاب کنید",chooseUrl:"درج از URL",chooseMultiple:"فایل ها را انتخاب کنید",replaceUrl:"با URL جایگزین کنید",promptUrl:"آدرس فایل را وارد کنید",chooseDifferent:"فایل های مختلف را انتخاب کنید",addMore:"فایل های بیشتری اضافه کنید",remove:"حذف فایل",removeAll:"تمام فایل ها را حذف کنید"},unknownControl:{noControl:'هیچ کنترلی برای ویجت "%{widget}" وجود ندارد.'},unknownPreview:{noPreview:'هیچ پیش نمایشی برای ویجت "%{widget}" وجود ندارد.'},headingOptions:{headingOne:"سرفصل 1",headingTwo:"سرفصل 2",headingThree:"سرفصل 3",headingFour:"سرفصل 4",headingFive:"سرفصل 5",headingSix:"سرفصل 6"},datetime:{now:"اکنون"},list:{add:"این مورد را اضافه کنید}",addType:"این مورد را اضافه کنید}"}}},mediaLibrary:{mediaLibraryCard:{draft:"پیش نویس",copy:"کپی",copyUrl:"URL را کپی کنید",copyPath:"مسیر را کپی کنید",copyName:"کپی نام",copied:"کپی شده است"},mediaLibrary:{onDelete:"آیا مطمئن هستید که می خواهید رسانه انتخابی را حذف کنید؟",fileTooLarge:"فایل خیلی بزرگ است.\nپیکربندی شده است تا فایل های بزرگتر از %{size} کیلوبایت مجاز نباشد."},mediaLibraryModal:{loading:"بارگذاری...",noResults:"هیچ نتیجه ای.",noAssetsFound:"هیچ دارایی یافت نشد.",noImagesFound:"هیچ تصویری یافت نشد",private:"خصوصی",images:"تصاویر",mediaAssets:"دارایی های رسانه ای",search:"جستجو کردن...",uploading:"در حال آپلود...",upload:"بارگذاری",download:"دانلود",deleting:"در حال حذف...",deleteSelected:"انتخاب شده را پاک کن",chooseSelected:"انتخاب شده را انتخاب کنید"}},ui:{default:{goBackToSite:"به سایت برگردید"},errorBoundary:{title:"خطا",details:"خطایی رخ داده است - لطفا",reportIt:"یک مسئله را در GitHub باز کنید.",detailsHeading:"جزئیات",privacyWarning:"باز کردن یک مشکل، آن را با پیام خطا و داده‌های اشکال‌زدایی از قبل پر می‌کند.\nلطفاً صحت اطلاعات را تأیید کنید و در صورت وجود داده های حساس را حذف کنید.",recoveredEntry:{heading:"سند بازیابی شده",warning:"لطفاً قبل از حرکت، این را در جایی کپی/پیست کنید!",copyButtonLabel:"کپی به کلیپ بورد"}},settingsDropdown:{logOut:"خروج"},toast:{onFailToLoadEntries:"ورودی بارگیری نشد: %{details}",onFailToLoadDeployPreview:"پیش نمایش بارگیری نشد: %{details}",onFailToPersist:"ادامه ورود ناموفق بود: %{details}",onFailToDelete:"ورودی حذف نشد: %{details}",onFailToUpdateStatus:"وضعیت به‌روزرسانی نشد: %{details}",missingRequiredField:"اوه، شما یک قسمت الزامی را از دست داده اید. لطفاً قبل از ذخیره تکمیل کنید.",entrySaved:"ورودی ذخیره شد",entryPublished:"مدخل منتشر شد",entryUnpublished:"ورودی منتشر نشده است",onFailToPublishEntry:"منتشر نشد: %{details}",onFailToUnpublishEntry:"لغو انتشار ورودی انجام نشد: %{details}",entryUpdated:"وضعیت ورودی به روز شد",onDeleteUnpublishedChanges:"تغییرات منتشر نشده حذف شد",onFailToAuth:"%{details}",onLoggedOut:"شما از سیستم خارج شده اید، لطفاً از داده ها نسخه پشتیبان تهیه کنید و دوباره وارد شوید",onBackendDown:"سرویس باطن در حال تجربه قطعی است. جهت اطلاعات بیشتر جزئیات را ببینید"}},workflow:{workflow:{loading:"در حال بارگیری ورودی های گردش کار ویرایشی",workflowHeading:"گردش کار تحریریه",newPost:"مطلب جدید",description:"%{smart_count} ورودی در انتظار بررسی، %{readyCount} آماده انتشار است. |||| %{smart_count} ورودی در انتظار بازبینی، %{readyCount} آماده انتشار است.",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} توسط %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"توسط %{author}",deleteChanges:"حذف تغییرات",deleteNewEntry:"حذف ورودی جدید",publishChanges:"انتشار تغییرات",publishNewEntry:"مطلب جدید را منتشر کنید"},workflowList:{onDeleteEntry:"آیا مطمئن هستید که می خواهید این ورودی را حذف کنید؟",onPublishingNotReadyEntry:'فقط مواردی با وضعیت "آماده" قابل انتشار هستند. لطفاً کارت را به ستون "آماده" بکشید تا انتشار فعال شود.',onPublishEntry:"آیا شما مطمئن هستید که می خواهید این مطلب را منتشر کنید؟",draftHeader:"پیش نویس",inReviewHeader:"در بررسی",readyHeader:"آماده",currentEntries:"%{smart_count} ورودی |||| %{smart_count} ورودی"}}}},97421:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Se connecter",loggingIn:"Connexion en cours...",loginWithNetlifyIdentity:"Se connecter avec Netlify Identity",loginWithAzure:"Se connecter avec Azure",loginWithBitbucket:"Se connecter avec Bitbucket",loginWithGitHub:"Se connecter avec GitHub",loginWithGitLab:"Se connecter avec GitLab",loginWithGitea:"Se connecter avec Gitea",errors:{email:"Assurez-vous d'avoir entré votre email.",password:"Merci de saisir votre mot de passe.",identitySettings:"Impsosible d'accéder aux paramètres d'identité. Si vous utilisez le backend git-gateway, merci de vous assurer que vous avez bien activé le service Identity et la passerelle Git."}},app:{header:{content:"Contenus",workflow:"Flux",media:"Media",quickAdd:"Ajout rapide"},app:{errorHeader:"Erreur au chargement de la configuration du CMS",configErrors:"Erreurs de configuration",checkConfigYml:"Vérifiez votre fichier config.yml.",loadingConfig:"Chargement de la configuration...",waitingBackend:"En attente du serveur..."},notFoundPage:{header:"Introuvable"}},collection:{sidebar:{collections:"Collections",allCollections:"Toutes les collections",searchAll:"Tout rechercher",searchIn:"Rechercher dans"},collectionTop:{sortBy:"Trier par",viewAs:"Voir comme",newButton:"Créer une entrée de type %{collectionLabel}",ascending:"Croissant",descending:"Décroissant",searchResults:'Résultats de la recherche pour "%{searchTerm}"',searchResultsInCollection:'Résultats de la recherche pour "%{searchTerm}" dans %{collection}',filterBy:"Filtrer par",groupBy:"Grouper par"},entries:{loadingEntries:"Chargement des entrées",cachingEntries:"Mise en cache des entrées",longerLoading:"Cela peut prendre quelques minutes",noEntries:"Aucune entrée"},groups:{other:"Autre",negateLabel:"Non %{label}"},defaultFields:{author:{label:"Auteur"},updatedOn:{label:"Mis à jour le"}}},editor:{editorControl:{field:{optional:"optionnel"}},editorControlPane:{widget:{required:"Le champ %{fieldLabel} est requis.",regexPattern:"Le champ %{fieldLabel} ne correspond pas au schéma: %{pattern}.",processing:"Le champ %{fieldLabel} est en cours de traitement.",range:"Le champ %{fieldLabel} doit être compris entre %{minValue} et %{maxValue}.",min:"Le champ %{fieldLabel} doit avoir une valeur de %{minValue} ou plus.",max:"Le champ %{fieldLabel} doit avoir une valeur de %{maxValue} ou moins.",rangeCount:"%{fieldLabel} doit avoir entre %{minCount} et %{maxCount} élément(s).",rangeCountExact:"%{fieldLabel} doit avoir exactement %{count} éléments(s).",rangeMin:"%{fieldLabel} doit avoir au moins %{minCount} éléments(s).",rangeMax:"%{fieldLabel} doit avoir %{maxCount} éléments(s) ou moins.",invalidPath:"'%{path}' n'est pas un chemin valide",pathExists:"Le chemin '%{path}' existe déjà"},i18n:{writingInLocale:"Écrire en %{locale}"}},editor:{onLeavePage:"Voulez-vous vraiment quitter cette page ?",onUpdatingWithUnsavedChanges:"Veuillez enregistrer vos modifications avant de mettre à jour le statut.",onPublishingNotReady:'Veuillez mettre à jour le statut à "Prêt" avant de publier.',onPublishingWithUnsavedChanges:"Veuillez enregistrer vos modifications avant de publier.",onPublishing:"Voulez-vous vraiment publier cette entrée ?",onUnpublishing:"Voulez-vous vraiment dépublier cette entrée ?",onDeleteWithUnsavedChanges:"Voulez-vous vraiment supprimer cette entrée publiée ainsi que vos modifications non enregistrées de cette session ?",onDeletePublishedEntry:"Voulez-vous vraiment supprimer cette entrée publiée ?",onDeleteUnpublishedChangesWithUnsavedChanges:"Ceci supprimera toutes les modifications non publiées de cette entrée ainsi que vos modifications non enregistrées de cette session. Voulez-vous toujours supprimer ?",onDeleteUnpublishedChanges:"Toutes les modifications non publiées de cette entrée seront supprimées. Voulez-vous toujours supprimer ?",loadingEntry:"Chargement de l'entrée...",confirmLoadBackup:"Une sauvegarde locale a été trouvée pour cette entrée. Voulez-vous l'utiliser ?"},editorInterface:{toggleI18n:"Édition multilingue",togglePreview:"Aperçu",toggleScrollSync:"Défilement synchronisé"},editorToolbar:{publishing:"Publication...",publish:"Publier",published:"Publiée",unpublish:"Dépublier",duplicate:"Dupliquer",unpublishing:"Dépublication...",publishAndCreateNew:"Publier et créer une nouvelle entrée",publishAndDuplicate:"Publier et dupliquer",deleteUnpublishedChanges:"Supprimer les modications non publiées",deleteUnpublishedEntry:"Supprimer l'entrée non publiée",deletePublishedEntry:"Supprimer l'entrée publiée",deleteEntry:"Supprimer l'entrée",saving:"Enregistrement...",save:"Enregistrer",deleting:"Suppression...",updating:"Mise à jour...",status:"Statut: %{status}",backCollection:" Écriture dans la collection %{collectionLabel}",unsavedChanges:"Modifications non enregistrées",changesSaved:"Modifications enregistrées",draft:"Brouillon",inReview:"En cours de révision",ready:"Prêt",publishNow:"Publier maintenant",deployPreviewPendingButtonLabel:"Vérifier l'aperçu",deployPreviewButtonLabel:"Voir l'aperçu",deployButtonLabel:"Voir en direct"},editorWidgets:{markdown:{bold:"Gras",italic:"Italique",code:"Code",link:"Lien",linkPrompt:"Entrer l'adresse web du lien",headings:"Titres",quote:"Citation",bulletedList:"Liste à puces",numberedList:"Liste numérotée",addComponent:"Ajouter un composant",richText:"Texte enrichi",markdown:"Markdown"},image:{choose:"Choisir une image",chooseUrl:"Insérer depuis une adresse web",replaceUrl:"Remplacer depuis une adresse web",promptUrl:"Entrer l'adresse web de l'image",chooseDifferent:"Choisir une image différente",remove:"Supprimer l'image"},file:{choose:"Choisir un fichier",chooseUrl:"Insérer depuis une adresse web",replaceUrl:"Remplacer depuis une adresse web",promptUrl:"Entrer l'adresse web du fichier",chooseDifferent:"Choisir un fichier différent",remove:"Effacer le fichier"},unknownControl:{noControl:"Pas de contrôle pour le gadget '%{widget}'."},unknownPreview:{noPreview:"Pas d'aperçu pour le gadget '%{widget}'."},headingOptions:{headingOne:"Titre 1",headingTwo:"Titre 2",headingThree:"Titre 3",headingFour:"Titre 4",headingFive:"Titre 5",headingSix:"Titre 6"},datetime:{now:"Maintenant",clear:"Effacer"},list:{add:"Ajouter %{item}",addType:"Ajouter une entrée de type %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Brouillon",copy:"Copier",copyUrl:"Copier l'adresse web",copyPath:"Copier le chemin d'accès",copyName:"Copier le nom",copied:"Copié"},mediaLibrary:{onDelete:"Voulez-vous vraiment supprimer la ressource sélectionné ?",fileTooLarge:"Le fichier est trop volumineux.\nL'instance est configurée pour bloquer les envois de plus de %{size} kB."},mediaLibraryModal:{loading:"Chargement...",noResults:"Aucun résultat.",noAssetsFound:"Aucune ressource trouvée.",noImagesFound:"Aucune image trouvée.",private:"Privé ",images:"Images",mediaAssets:"Ressources",search:"Recherche...",uploading:"Téléversement...",upload:"Téléverser une nouvelle ressource",download:"Télécharger",deleting:"Suppression...",deleteSelected:"Supprimer les éléments sélectionnés",chooseSelected:"Choisir les éléments sélectionnés"}},ui:{default:{goBackToSite:"Retourner sur le site"},errorBoundary:{title:"Erreur",details:"Une erreur est survenue, veuillez ",reportIt:"la signaler sur GitHub.",detailsHeading:"Détails",privacyWarning:"Ouvrir une issue la préremplie avec le message d'erreur et des données de déboggage.\nMerci de vérifier l'exactitude des informations et de supprimer toute donnée sensible si nécessaire.",recoveredEntry:{heading:"Document récupéré",warning:"Veuillez copier/coller ceci quelque part avant de naviguer ailleurs!",copyButtonLabel:"Copier dans le presse-papier"}},settingsDropdown:{logOut:"Déconnexion"},toast:{onFailToLoadEntries:"Échec du chargement de l'entrée : %{details}",onFailToLoadDeployPreview:"Échec du chargement de l'aperçu : %{details}",onFailToPersist:"Échec de l'enregistrement de l'entrée : %{details}",onFailToDelete:"Échec de la suppression de l'entrée : %{details}",onFailToUpdateStatus:"Échec de la mise à jour du statut : %{details}",missingRequiredField:"Oops, il manque un champ requis. Veuillez le renseigner avant de soumettre.",entrySaved:"Entrée enregistrée",entryPublished:"Entrée publiée",entryUnpublished:"Entrée dépubliée",onFailToPublishEntry:"Échec de la publication : %{details}",onFailToUnpublishEntry:"Impossible de dépublier l'entrée : %{details}",entryUpdated:"Statut de l'entrée mis à jour",onDeleteUnpublishedChanges:"Modifications non publiées supprimées",onFailToAuth:"%{details}",onLoggedOut:"Vous avez été déconnecté, merci de sauvegarder les données et vous reconnecter",onBackendDown:"Le serveur est actuellement hors-service. Pour plus d'informations : %{details}"}},workflow:{workflow:{loading:"Chargement des entrées du flux éditorial",workflowHeading:"Flux éditorial",newPost:"Nouvel article",description:"%{smart_count} entrée(s) en attente de revue, %{readyCount} prête(s) à être publiée(s). |||| %{smart_count} entrée(s) en attente de revue, %{readyCount} prête(s) à être publiée(s). ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} par %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"par %{author}",deleteChanges:"Supprimer les mofications",deleteNewEntry:"Supprimer la nouvelle entrée",publishChanges:"Publier les modifications",publishNewEntry:"Publier la nouvelle entrée"},workflowList:{onDeleteEntry:"Voulez-vous vraiment supprimer cette entrée ?",onPublishingNotReadyEntry:'Seuls les éléments ayant le statut "Prêt" peuvent être publiés. Veuillez glisser/déposer la carte dans la colonne "Prêt" pour activer la publication',onPublishEntry:"Voulez-vous vraiment publier cette entrée ?",draftHeader:"Brouillons",inReviewHeader:"En cours de révision",readyHeader:"Prêt",currentEntries:"%{smart_count} entrée |||| %{smart_count} entrées"}}}},1107:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Σύνδεση",loggingIn:"Σύνδεση στο...",loginWithNetlifyIdentity:"Σύνδεση μέσω Netlify",loginWithBitbucket:"Σύνδεση μέσω Bitbucket",loginWithGitHub:"Σύνδεση μέσω GitHub",loginWithGitLab:"Σύνδεση μέσω GitLab",loginWithGitea:"Σύνδεση μέσω Gitea",errors:{email:"Βεβαιωθείτε ότι έχετε εισαγάγει το email σας.",password:"Παρακαλώ εισάγετε τον κωδικό πρόσβασής σας.",identitySettings:"Δεν είναι δυνατή η πρόσβαση στις ρυθμίσεις ταυτότητας. Όταν χρησιμοποιείτε το παρασκήνιο του git Gateway, φροντίστε να ενεργοποιήσετε την υπηρεσία Identity και το git Gateway."}},app:{header:{content:"Περιεχόμενα",workflow:"Ροής εργασίας",media:"Πολυμέσα",quickAdd:"Γρήγορη προσθήκη"},app:{errorHeader:"Σφάλμα κατά τη φόρτωση της ρύθμισης παραμέτρων CMS",configErrors:"Σφάλματα ρύθμισης παραμέτρων",checkConfigYml:"Ελέγξτε το αρχείο config.yml.",loadingConfig:"Φόρτωση ρύθμισης παραμέτρων...",waitingBackend:"Αναμονή για παρασκηνιακό..."},notFoundPage:{header:"Δεν βρέθηκε"}},collection:{sidebar:{collections:"Συλλογές",searchAll:"Αναζήτηση όλων"},collectionTop:{viewAs:"Προβολή ως",newButton:"Νέο %{collectionLabel}"},entries:{loadingEntries:"Εγγραφές φόρτωσης",cachingEntries:"Εγγραφές προσωρινής αποθήκευσης",longerLoading:"Αυτό μπορεί να διαρκέσει αρκετά λεπτά"}},editor:{editorControl:{field:{optional:"προαιρετικός"}},editorControlPane:{widget:{required:"Το %{fieldLabel} είναι απαραίτητο.",regexPattern:"Το %{fieldLabel} δεν ταιριάζει με το μοτίβο: %{pattern}.",processing:"Το %{fieldLabel} επεξεργάζεται.",range:"Το %{fieldLabel} πρέπει να είναι μεταξύ %{minValue} και %{maxValue}.",min:"Το %{fieldLabel} πρέπει να είναι τουλάχιστον %{minValue}.",max:"Το %{fieldLabel} πρέπει να είναι %{maxValue} ή μικρότερο."}},editor:{onLeavePage:"Είστε βέβαιοι ότι θέλετε να αφήσετε αυτήν τη σελίδα;",onUpdatingWithUnsavedChanges:"Έχετε μη αποθηκευμένες αλλαγές, αποθηκεύστε πριν να ενημερώσετε την κατάσταση.",onPublishingNotReady:'Ενημερώστε την κατάσταση σε "έτοιμο" πριν από τη δημοσίευση.',onPublishingWithUnsavedChanges:"Έχετε μη αποθηκευμένες αλλαγές, αποθηκεύστε πριν από τη δημοσίευση.",onPublishing:"Είστε βέβαιοι ότι θέλετε να δημοσιεύσετε αυτήν την καταχώρηση;",onUnpublishing:"Είστε βέβαιοι ότι θέλετε να καταργήσετε τη δημοσίευση αυτής της καταχώρησης;",onDeleteWithUnsavedChanges:"Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτήν τη δημοσιευμένη καταχώρηση, καθώς και τις αλλαγές που δεν αποθηκεύσατε από την τρέχουσα περίοδο λειτουργίας;",onDeletePublishedEntry:"Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτήν τη δημοσιευμένη καταχώρηση;",onDeleteUnpublishedChangesWithUnsavedChanges:"Αυτό θα διαγράψει όλες τις μη δημοσιευμένες αλλαγές σε αυτήν την καταχώρηση, καθώς και τις αλλαγές που δεν έχετε αποθηκεύσει από την τρέχουσα περίοδο λειτουργίας. Θέλετε ακόμα να διαγράψετε;",onDeleteUnpublishedChanges:"Όλες οι μη δημοσιευμένες αλλαγές σε αυτήν την καταχώρηση θα διαγραφούν. Θέλετε ακόμα να διαγράψετε;",loadingEntry:"Φόρτωση εισόδου...",confirmLoadBackup:"Ανακτήθηκε ένα τοπικό αντίγραφο ασφαλείας για αυτήν την καταχώρηση, θέλετε να το χρησιμοποιήσετε;"},editorToolbar:{publishing:"Δημοσίευση...",publish:"Δημοσίευση",published:"Δημοσιεύθηκε",unpublish:"Κατάργηση δημοσίευσης",duplicate:"Διπλότυπο",unpublishing:"Κατάργηση δημοσίευσης...",publishAndCreateNew:"Δημοσίευση και δημιουργία νέων",publishAndDuplicate:"Δημοσίευση και αντίγραφο",deleteUnpublishedChanges:"Διαγραφή μη δημοσιευμένων αλλαγών",deleteUnpublishedEntry:"Διαγραφή μη δημοσιευμένης καταχώρησης",deletePublishedEntry:"Διαγραφή δημοσιευμένης καταχώρησης",deleteEntry:"Διαγραφή καταχώρησης",saving:"Εξοικονόμηση...",save:"Αποθήκευση",deleting:"Διαγραφή...",updating:"Ενημέρωση...",status:"Κατάστασης: %{status}",backCollection:" Εγγραφή στη συλλογή %{collectionLabel}",unsavedChanges:"Μη αποθηκευμένες αλλαγές",changesSaved:"Αλλαγές που αποθηκεύτηκαν",draft:"Σχέδιο",inReview:"Σε επανεξέταση",ready:"Έτοιμα",publishNow:"Δημοσίευση τώρα",deployPreviewPendingButtonLabel:"Έλεγχος για προεπισκόπηση",deployPreviewButtonLabel:"Προβολή προεπισκόπησης",deployButtonLabel:"Προβολή Live"},editorWidgets:{image:{choose:"Επιλέξτε μια εικόνα",chooseDifferent:"Επιλέξτε διαφορετική εικόνα",remove:"Αφαιρέστε την εικόνα"},file:{choose:"Επιλέξτε ένα αρχείο",chooseDifferent:"Επιλέξτε διαφορετικό αρχείο",remove:"Αφαιρέστε το αρχείο"},unknownControl:{noControl:"Δεν υπάρχει έλεγχος για το widget '%{widget}'."},unknownPreview:{noPreview:"Δεν υπάρχει προεπισκόπηση για το widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"}}},mediaLibrary:{mediaLibraryCard:{draft:"Προσχέδιο"},mediaLibrary:{onDelete:"Είστε βέβαιοι ότι θέλετε να διαγράψετε τα επιλεγμένα πολυμέσα;",fileTooLarge:"Το αρχείο είναι πολύ μεγάλο.\nΔεν επιτρέπονται αρχεία μεγαλύτερα από %{size} kB."},mediaLibraryModal:{loading:"Φόρτωση...",noResults:"Χωρίς αποτελέσματα.",noAssetsFound:"Δεν βρέθηκαν αρχεία.",noImagesFound:"Δεν βρέθηκαν εικόνες.",private:"Ιδιωτικό",images:"Εικόνες",mediaAssets:"Αρχεία πολυμέσων",search:"Αναζήτηση...",uploading:"Φόρτωμα...",upload:"Ανεβάστε νέα",deleting:"Διαγραφή...",deleteSelected:"Διαγραφή επιλεγμένου",chooseSelected:"Επιλέξτε επιλεγμένο"}},ui:{errorBoundary:{title:"Σφάλμα",details:"Υπάρχει ένα λάθος ",reportIt:"παρακαλώ να το αναφέρετε.",detailsHeading:"Λεπτομέρειες",recoveredEntry:{heading:"Ανακτημένο έγγραφο",warning:"Παρακαλώ αντιγράψτε/επικολλήστε αυτό κάπου πριν πλοηγηθείτε μακριά!",copyButtonLabel:"Αντιγραφή στο Πρόχειρο"}},settingsDropdown:{logOut:"Αποσύνδεση"},toast:{onFailToLoadEntries:"Απέτυχε η φόρτωση της καταχώρησης: %{details}",onFailToLoadDeployPreview:"Απέτυχε η φόρτωση της προεπισκόπησης: %{details}",onFailToPersist:"Απέτυχε η διατήρηση της καταχώρησης:% {Details}",onFailToDelete:"Απέτυχε η διαγραφή της καταχώρησης: %{details}",onFailToUpdateStatus:"Απέτυχε η ενημέρωση της κατάστασης: %{details}",missingRequiredField:"Ουπς, ξεχάσατε ένα απαιτούμενο πεδίο. Συμπληρώστε το πριν από την αποθήκευση.",entrySaved:"Η καταχώρηση Αποθηκεύτηκε",entryPublished:"Η καταχώρηση δημοσιεύτηκε",entryUnpublished:"Μη δημοσιευμένη καταχώρηση",onFailToPublishEntry:"Η δημοσίευση απέτυχε: %{details}",onFailToUnpublishEntry:"Απέτυχε η κατάργηση δημοσίευσης καταχώρησης: %{details}",entryUpdated:"Η κατάσταση εισόδου ενημερώθηκε",onDeleteUnpublishedChanges:"Οι μη δημοσιευμένες αλλαγές διαγράφηκαν",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Φόρτωση καταχωρήσεων ροής εργασίας σύνταξης",workflowHeading:"Ροή εργασιών",newPost:"Νέα δημοσίευση",description:"%{smart_count} καταχώρησεις σε αναμονή για αναθεώρηση, %{readyCount} έτοιμες για Live μετάβαση. |||| %{smart_count} καταχωρήσεις σε αναμονή για αναθεώρηση, %{readyCount} έτοιμες για Live μετάβαση. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} από %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"από %{author}",deleteChanges:"Διαγραφή αλλαγών",deleteNewEntry:"Διαγραφή νέας καταχώρησης",publishChanges:"Δημοσίευση αλλαγών",publishNewEntry:"Δημοσίευση νέας καταχώρησης"},workflowList:{onDeleteEntry:"Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτήν την καταχώρηση;",onPublishingNotReadyEntry:'Μόνο τα στοιχεία με κατάσταση "Ready" μπορούν να δημοσιευτούν. Σύρετε την κάρτα στη στήλη "έτοιμο" για να ενεργοποιήσετε τη δημοσίευση.',onPublishEntry:"Είστε βέβαιοι ότι θέλετε να δημοσιεύσετε αυτήν την καταχώρηση;",draftHeader:"Προσχέδια",inReviewHeader:"Σε ανασκόπηση",readyHeader:"Έτοιμα",currentEntries:"%{smart_count} καταχωρηση |||| %{smart_count} καταχωρησεις"}}}},8102:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"התחברות",loggingIn:"התחברות...",loginWithNetlifyIdentity:"התחברות עם Netlify Identity",loginWithAzure:"התחברות עם Azure",loginWithBitbucket:"התחברות עם Bitbucket",loginWithGitHub:"התחברות עם GitHub",loginWithGitLab:"התחברות עם GitLab",loginWithGitea:"התחברות עם Gitea",errors:{email:"נא לא לשכוח להקליד את כתובת המייל",password:"נא להקליד את הסיסמה.",identitySettings:"הגדרות אימות הזהות אינן נגישות. כאשר משתמשים ב-git-gateway כשירות ה-backend יש לוודא ששירות אימות הזהות ו-Git Gateway הופעלו."}},app:{header:{content:"תוכן",workflow:"ניהול אייטמים לפני הפרסום",media:"מדיה",quickAdd:"הוספה מהירה"},app:{errorHeader:"אירעה שגיאה בטעינת הגדרות מערכת ניהול התוכן",configErrors:"שגיאות בהגדרות",checkConfigYml:"יש לבדוק את הקובץ config.yml.",loadingConfig:"טעינת הגדרות...",waitingBackend:"ממתין לטעינת ה-backend..."},notFoundPage:{header:"לא נמצא"}},collection:{sidebar:{collections:"קטגוריות",allCollections:"כל הקטגוריות",searchAll:"חיפוש כללי",searchIn:"חיפוש בקטגוריית"},collectionTop:{sortBy:"מיון לפי",viewAs:"תצוגה לפי",newButton:"חדש %{collectionLabel}",ascending:"בסדר עולה",descending:"בסדר יורד",searchResults:'תוצאות חיפוש עבור "%{searchTerm}"',searchResultsInCollection:'תוצאות חיפוש עבור "%{searchTerm}" ב%{collection}',filterBy:"סינון לפי",groupBy:"ארגון לפי"},entries:{loadingEntries:"טעינת אייטמים...",cachingEntries:"שמירת אייטמים בזכרון המטמון",longerLoading:"התהליך עשוי להימשך כמה דקות",noEntries:"לא נמצאו אייטמים"},groups:{other:"אחר",negateLabel:"לא %{label}"},defaultFields:{author:{label:"מאת"},updatedOn:{label:"עודכן בתאריך"}}},editor:{editorControl:{field:{optional:"רשות"}},editorControlPane:{widget:{required:"%{fieldLabel} הוא שדה חובה.",regexPattern:"%{fieldLabel} לא תואם לדפוס %{pattern}.",processing:"%{fieldLabel} מעובד.",range:"%{fieldLabel} חייב להיות בין %{minValue} לבין %{maxValue}.",min:"%{fieldLabel} חייב להיות לפחות %{minValue}.",max:"%{fieldLabel} חייב להיות %{maxValue} או פחות.",rangeCount:"%{fieldLabel} חייב לכלול בין %{minCount} לבין %{maxCount} אייטמים.",rangeCountExact:"%{fieldLabel} חייב לכלול בדיוק %{count} אייטמים.",rangeMin:"%{fieldLabel} חייב לכלול לפחות %{minCount} אייטמים",rangeMax:"%{fieldLabel} חייב לכלול %{maxCount} אייטמים לכל היותר.",invalidPath:"'%{path}' אינו URL תקין",pathExists:"'%{path}' כבר קיים"},i18n:{writingInLocale:"כתיבה בשפה ה%{locale}"}},editor:{onLeavePage:"האם ברצונך לעבור לעמוד אחר ללא שמירה?",onUpdatingWithUnsavedChanges:"בוצעו שינויים שלא נשמרו. יש לבצע שמירה לפני עדכון מצב האייטם.",onPublishingNotReady:"נא לשנות את מצב האייטם ל״מוכן לפרסום״ לפני הפרסום.",onPublishingWithUnsavedChanges:"בוצעו שינויים שלא נשמרו. יש לבצע שמירה לפני הפרסום.",onPublishing:"האם ברצונך לפרסם את האייטם?",onUnpublishing:"האם ברצונך לבטל את פרסום האייטם?",onDeleteWithUnsavedChanges:"האם ברצונך למחוק את האייטם הזה לפני פרסומו, וכן את השינויים שבוצעו כעת וטרם נשמרו?",onDeletePublishedEntry:"האם ברצונך למחוק את האייטם הזה לאחר פרסומו?",onDeleteUnpublishedChangesWithUnsavedChanges:"פעולה זו תמחק את כל השינויים שבוצעו באייטם זה ולא פורסמו, וכן את השינויים שבוצעו כעת וטרם נשמרו. האם ברצונך למחוק?",onDeleteUnpublishedChanges:"כל השינויים שבוצעו באייטם זה ולא פורסמו יימחקו. האם ברצונך למחוק אותו?",loadingEntry:"טעינת אייטם...",confirmLoadBackup:"קיים עותק מקומי שמור של האייטם. האם ברצונך לטעון אותו?"},editorInterface:{toggleI18n:"החלפת שפות",togglePreview:"הפעלת תצוגה מקדימה",toggleScrollSync:"סנכרון הגלילה"},editorToolbar:{publishing:"פרסום...",publish:"פרסום",published:"פורסם",unpublish:"ביטול הפרסום",duplicate:"שכפול",unpublishing:"ביטול הפרסום...",publishAndCreateNew:"פרסום ויצירת אייטם חדש",publishAndDuplicate:"פרסום ושכפול",deleteUnpublishedChanges:"מחיקת השינויים שלא פורסמו",deleteUnpublishedEntry:"מחיקת אייטם שטרם פורסם",deletePublishedEntry:"מחיקת אייטם שפורסם",deleteEntry:"מחיקת האייטם",saving:"שמירה...",save:"שמירה",statusInfoTooltipDraft:"האייטם מוגדר כטיוטה. כדי להשלים את הפעולה ולהעביר אותו למצב ״ממתין לאישור״ יש להעביר אותו למצב ״ממתין לאישור״",statusInfoTooltipInReview:"האייטם ממתין לאישור - לא נדרשת פעולה נוספת. ניתן עדיין לבצע שינויים בעת שהאייטם ממתין לאישור.",deleting:"מחיקה...",updating:"עדכון...",status:"מצב: %{status}",backCollection:"כתיבה בקטגוריית %{collectionLabel}",unsavedChanges:"שינויים לא שמורים",changesSaved:"השינויים נשמרו",draft:"טיוטה",inReview:"ממתין לאישור",ready:"מוכן לפרסום",publishNow:"פרסום מיידי",deployPreviewPendingButtonLabel:"בדיקת תצוגה מקדימה",deployPreviewButtonLabel:"צפייה בתצוגה מקדימה",deployButtonLabel:"צפייה באתר"},editorWidgets:{markdown:{bold:"מודגש",italic:"נטוי",code:"קוד",link:"קישור",linkPrompt:"נא להקליד את הכתובת לקישור",headings:"כותרת",quote:"ציטוט",bulletedList:"רשימה לא-ממוספרת",numberedList:"רשימה ממוספרת",addComponent:"הוספת רכיב",richText:"טקסט עשיר",markdown:"Markdown"},image:{choose:"בחירת תמונה",chooseUrl:"הוספה מכתובת אינטרנט",replaceUrl:"החלפת תמונה מכתובת אינטרנט",promptUrl:"נא להכניס את ה-URL של התמונה",chooseDifferent:"בחירת תמונה אחרת",remove:"הסרת תמונה"},file:{choose:"בחירת קובץ",chooseUrl:"הוספה מכתובת אינטרנט",replaceUrl:"החלפת קובץ מכתובת אינטרנט",promptUrl:"נא להכניס את ה-URL של הקובץ",chooseDifferent:"בחירת קובץ אחר",remove:"הסרת קובץ"},unknownControl:{noControl:"לא הוגדרו פעולות ל'%{widget}'."},unknownPreview:{noPreview:"אין תצוגה מקדימה ל'%{widget}'."},headingOptions:{headingOne:"כותרת 1",headingTwo:"כותרת 2",headingThree:"כותרת 3",headingFour:"כותרת 4",headingFive:"כותרת 5",headingSix:"כותרת 6"},datetime:{now:"עכשיו",clear:"ניקוי"},list:{add:"הוספת %{item}",addType:"הוספת אייטם מסוג %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"טיוטה",copy:"העתקה",copyUrl:"העתקת ה-URL",copyPath:"העתקת הנתיב",copyName:"העתקת השם",copied:"העתקה הושלמה"},mediaLibrary:{onDelete:"האם ברצונך למחוק את פריט המדיה הזה?",fileTooLarge:"הקובץ גדול מדי.\nמוגדר לא לאפשר העלאת קבצים גדולים מ-%{size} קילובייט."},mediaLibraryModal:{loading:"טעינה...",noResults:"לא נמצאו תוצאות.",noAssetsFound:"לא נמצאו קבצים.",noImagesFound:"לא נמצאו תמונות.",private:"פרטי ",images:"תמונות",mediaAssets:"קבצי מדיה",search:"חיפוש...",uploading:"העלאה...",upload:"העלאה",download:"הורדה",deleting:"מחיקה...",deleteSelected:"למחוק את הקובץ המסומן",chooseSelected:"לבחור את הקובץ המסומן"}},ui:{default:{goBackToSite:"בחזרה לאתר"},errorBoundary:{title:"שגיאה",details:"אירעה שגיאה. נא ",reportIt:"דווחו על הבעיה ב-GitHub.",detailsHeading:"פרטים",privacyWarning:"פתיחת Issue מעתיקה את הודעת השגיאה ונתונים רלוונטיים לאיתור הבעיה (debugging).\nיש לוודא שהמידע מדויק ולמחוק נתונים אישיים כלשהם.",recoveredEntry:{heading:"מסמך משוחזר",warning:"נא להעתיק ולהדביק את זה לפני ניווט לחלון אחר!",copyButtonLabel:"העתקה"}},settingsDropdown:{logOut:"התנתקות"},toast:{onFailToLoadEntries:"טעינת האייטם %{details} נכשלה",onFailToLoadDeployPreview:"טעינת התצוגה המקדימה של האייטם %{details} נכשלה",onFailToPersist:"אחסון האייטם %{details} נכשל",onFailToDelete:"מחיקת האייטם %{details} נכשלה",onFailToUpdateStatus:"עדכון מצב האייטם %{details} נכשל",missingRequiredField:"אופס, שכחת למלא שדה חובה. נא להשלים את המידע החסר לפני השמירה",entrySaved:"האייטם נשמר",entryPublished:"האייטם פורסם",entryUnpublished:"האייטם הועבר לטיוטות",onFailToPublishEntry:"פרסום האייטם %{details} נכשל",onFailToUnpublishEntry:"ביטול פרסום האייטם %{details} נכשל",entryUpdated:"מצב האייטם עודכן",onDeleteUnpublishedChanges:"השינויים שלא פורסמו נמחקו",onFailToAuth:"%{details}",onLoggedOut:"נותקת מהמערכת. יש לגבות מידע לא שמור ולהתחבר שוב",onBackendDown:"ה-backend המוגדר אינו זמין. ראו %{details} למידע נוסף"}},workflow:{workflow:{loading:"טעינת אייטמים",workflowHeading:"ניהול אייטמים לפני הפרסום",newPost:"אייטם חדש",description:"%אייטם {smart_count} ממתין לאישור, אייטם %{readyCount} מוכן לפרסום |||| %{smart_count} אייטמים ממתינים לאישור, %{readyCount} מוכנים לפרסום",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} מאת %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"מאת %{author}",deleteChanges:"למחוק את השינויים",deleteNewEntry:"למחוק אייטם חדש",publishChanges:"פרסום השינויים",publishNewEntry:"פרסום אייטם חדש"},workflowList:{onDeleteEntry:"האם ברצונך למחוק אייטם זה?",onPublishingNotReadyEntry:"ניתן לפרסם רק אייטמים שנמצאים במצב ״מוכן לפרסום״. נא לגרור את האייטם לטור ״מוכן לפרסום״ כדי לפרסם.",onPublishEntry:"האם ברצונך לפרסם אייטם זה?",draftHeader:"טיוטות",inReviewHeader:"ממתין לאישור",readyHeader:"מוכן לפרסום",currentEntries:"אייטם %{smart_count} |||| %{smart_count} אייטמים"}}}},62827:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Prijava",loggingIn:"Prijava u tijeku...",loginWithNetlifyIdentity:"Prijava sa Netlify računom",loginWithAzure:"Prijava za Azure računom",loginWithBitbucket:"Prijava sa Bitbucket računom",loginWithGitHub:"Prijava sa GitHub računom",loginWithGitLab:"Prijava sa GitLab računom",loginWithGitea:"Prijava sa Gitea računom",errors:{email:"Unesite email.",password:"Molimo unisite lozinku.",identitySettings:'Nemoguće pristupiti postavkama identita. Kod korištenja git-gateway backenda morate uključiti "Identity service" te "Git Gateway"'}},app:{header:{content:"Sadržaj",workflow:"Tijek rada",media:"Mediji",quickAdd:"Dodaj"},app:{errorHeader:"Greška pri učitavanju CMS konfiguracije",configErrors:"Greška u konfiguraciji",checkConfigYml:"Provjeri config.yml datoteku.",loadingConfig:"Učitavanje konfiguracije...",waitingBackend:"Čekanje na backend..."},notFoundPage:{header:"Stranica nije pronađena"}},collection:{sidebar:{collections:"Zbirke",allCollections:"Sve zbirke",searchAll:"Pretraži sve",searchIn:"Pretraži u"},collectionTop:{sortBy:"Sortiraj",viewAs:"Pogledaj kao",newButton:"Nova %{collectionLabel}",ascending:"Uzlazno",descending:"Silzano",searchResults:'Rezulatati pretraživanja za "%{searchTerm}"',searchResultsInCollection:'Rezulatati pretraživanja za "%{searchTerm}" u %{collection}',filterBy:"Filtriraj po",groupBy:"Grupiraj po"},entries:{loadingEntries:"Učitavanje unosa...",cachingEntries:"Predmemoriranje unosa...",longerLoading:"Ovo bi moglo potrajati par minuta",noEntries:"Nema unosa"},groups:{other:"Ostalo",negateLabel:"Nije %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Ažurirano na"}}},editor:{editorControl:{field:{optional:"opcionalno"}},editorControlPane:{widget:{required:"%{fieldLabel} je obvezan.",regexPattern:"%{fieldLabel} se ne podudara sa uzorkom: %{pattern}.",processing:"%{fieldLabel} se procesira.",range:"%{fieldLabel} mora biti između %{minValue} i %{maxValue}.",min:"%{fieldLabel} mora biti najmanje %{minValue}.",max:"%{fieldLabel} mora biti %{maxValue} ili manje.",rangeCount:"%{fieldLabel} mora imati između %{minCount} i %{maxCount} predmeta.",rangeCountExact:"%{fieldLabel} mora imati točno %{count} predmeta.",rangeMin:"%{fieldLabel} mora imati najmanje %{minCount} predmet(a).",rangeMax:"%{fieldLabel} mora imate %{maxCount} ili manje predmeta.",invalidPath:"'%{path}' nije valjana putanja",pathExists:"Putanja '%{path}' već postoji"},i18n:{writingInLocale:"Pisanje na %{locale}"}},editor:{onLeavePage:"Jeste li sigurni da želite napustiti stranicu?",onUpdatingWithUnsavedChanges:"Imate nespremljene promjene, molimo spremite prije ažuriranja statusa.",onPublishingNotReady:'Molimo ažurirajte status na "Spremno" prije objavljivanja.',onPublishingWithUnsavedChanges:"Imate nespremljene promjene, molimo spremite prije objavljivanja.",onPublishing:"Jeste li sigurni da želite objaviti ovaj unos?",onUnpublishing:"Jeste li sigurni da želite maknuti objavu za ovaj unos?",onDeleteWithUnsavedChanges:"Jeste li sigurni da želite obrisati objavljeni unos, te nespremljene promjene u trenutnoj sesiji?",onDeletePublishedEntry:"Jeste li sigurni da želite obrisati ovaj objavljeni unos?",onDeleteUnpublishedChangesWithUnsavedChanges:"Obrisat ćete sve neobjavljene promjene na ovom unosu, te sve nespremljene promjene u trenutnoj sesiji. Želite li i dalje obrisati?",onDeleteUnpublishedChanges:"Sve nespremljene promjene na ovom unosu će biti obrisane. Želite li i dalje obrisati?",loadingEntry:"Učitavanje unosa...",confirmLoadBackup:"Lokalna kopija je dohvaćena za ovaj unos, želite li ju koristiti?"},editorToolbar:{publishing:"Objavljivanje...",publish:"Objavi",published:"Objavljeno",unpublish:"Obriši iz objava",duplicate:"Dupliciraj",unpublishing:"Brisanje iz objava...",publishAndCreateNew:"Objavi i kreiraj novo",publishAndDuplicate:"Objavi i dupliciraj",deleteUnpublishedChanges:"Obriši neobjavljene promjene",deleteUnpublishedEntry:"Obriši neobjavljene unose",deletePublishedEntry:"Obriši objavljeni unos",deleteEntry:"Obriši unos",saving:"Spremanje...",save:"Spremi",deleting:"Brisanje...",updating:"Ažuriranje...",status:"Status: %{status}",backCollection:"Pisanje u %{collectionLabel} zbirci",unsavedChanges:"Nespremljene promjene",changesSaved:"Promjene spremljene",draft:"Skica",inReview:"Osvrt",ready:"Spremno",publishNow:"Objavi sad",deployPreviewPendingButtonLabel:"Provjeri za osvrt",deployPreviewButtonLabel:"Pogledaj osvrt",deployButtonLabel:"Pogledaj na produkciji"},editorWidgets:{markdown:{bold:"Podebljano",italic:"Kurziv",code:"Kod",link:"Link",linkPrompt:"Unesi URL linka",headings:"Naslovi",quote:"Citat",bulletedList:"Nabrajan popis",numberedList:"Numeriran popis",addComponent:"Dodaj komponentu",richText:"Bogati tekst",markdown:"Markdown"},image:{choose:"Odaberi sliku",chooseDifferent:"Odaberi drugu sliku",remove:"Izbriši sliku"},file:{choose:"Odaberi datoteku",chooseDifferent:"Odaberi drugu datoteku",remove:"Obriši datoteku"},unknownControl:{noControl:"Kontrola nije pronađena za widget '%{widget}'."},unknownPreview:{noPreview:"Prikaz nije pronađen za widget '%{widget}'."},headingOptions:{headingOne:"Naslov 1",headingTwo:"Naslov 2",headingThree:"Naslov 3",headingFour:"Naslov 4",headingFive:"Naslov 5",headingSix:"Naslov 6"},datetime:{now:"Sad",clear:"Očisti"}}},mediaLibrary:{mediaLibraryCard:{draft:"Skica"},mediaLibrary:{onDelete:"Jeste li sigurni da želite obrisati odabrane medijske datoteke?",fileTooLarge:"Datoteka prevelika.\nKonfigurirano da ne podržava datoteke veće od %{size} kB."},mediaLibraryModal:{loading:"Učitavanje...",noResults:"Nema rezultata.",noAssetsFound:"Sredstva nisu pronađena.",noImagesFound:"Slike nisu pronađene.",private:"Privatno ",images:"Slike",mediaAssets:"Medijska sredstva",search:"Pretraži...",uploading:"Učitavanje...",upload:"Učitaj",download:"Preuzmi",deleting:"Brisanje...",deleteSelected:"Obriši označeno",chooseSelected:"Odaberi označeno"}},ui:{default:{goBackToSite:"Povratak na stranicu"},errorBoundary:{title:"Greška",details:"Dogodila se greška - molimo ",reportIt:"otvori issue (problem) na GitHubu.",detailsHeading:"Detalji",privacyWarning:"Otvaranje issue-a (problema) populira ga sa porukom od greške i debug podacima.\nProvjerite jesu li infomacije točne i obrišite osjetljive podatke ako postoje.",recoveredEntry:{heading:"Obnovljen dokument",warning:"Molimo kopiraj/zalijepi ovo negdje prije odlaska dalje!",copyButtonLabel:"Kopiraj u međuspremnik"}},settingsDropdown:{logOut:"Odjava"},toast:{onFailToLoadEntries:"Neuspjelo dohvaćanje unosa: %{details}",onFailToLoadDeployPreview:"Neuspjelo dohvaćanje pregleda: %{details}",onFailToPersist:"Neuspjelo spremanje unosa: %{details}",onFailToDelete:"Neuspjelo brisanje unosa: %{details}",onFailToUpdateStatus:"Neuspjelo ažuriranje statusa: %{details}",missingRequiredField:"Uups, preskočili ste obvezno polje. Molimo popunite prije spremanja.",entrySaved:"Unos spremljen",entryPublished:"Unos objavljen",entryUnpublished:"Unos obrisan",onFailToPublishEntry:"Neuspjelo objavljivanje unosa: %{details}",onFailToUnpublishEntry:"Neuspjelo brisanje unosa: %{details}",entryUpdated:"Status unosa ažuriran",onDeleteUnpublishedChanges:"Otkrivene neobjavljene objave",onFailToAuth:"%{details}",onLoggedOut:"Odjavljeni ste, molimo spremite sve podatke i prijavite se ponovno",onBackendDown:"Backend servis ima prekid rada. Pogledaj %{details} za više informacija"}},workflow:{workflow:{loading:"Učitavanje unosa uredničkog tijeka rada",workflowHeading:"Urednički tijek rada",newPost:"Nova objava",description:"%{smart_count} unos čeka pregled, %{readyCount} unos spreman za produkciju. |||| %{smart_count} unosa čeka pregled, %{readyCount} unosa spremno za produkciju. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} od strane %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"od strane %{author}",deleteChanges:"Obriši promjene",deleteNewEntry:"Obriši novi unos",publishChanges:"Objavi promjene",publishNewEntry:"Objavi novi unos"},workflowList:{onDeleteEntry:"Jeste li sigurni da želite obrisati unos?",onPublishingNotReadyEntry:'Samo promjene sa statusom "Spremno" mogu biti objavljene. Molimo povucite karticu u kolumnu "Spremno" prije objavljivanja.',onPublishEntry:"Jeste li sigurni da želite objaviti unos?",draftHeader:"Skice",inReviewHeader:"U osvrtu",readyHeader:"Spremno",currentEntries:"%{smart_count} unos |||| %{smart_count} unosa"}}}},9169:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={app:{header:{content:"Tartalom",workflow:"Munkafolyamat",media:"Média",quickAdd:"Gyors hozzáadás"},app:{errorHeader:"Hiba történt a CMS konfiguráció betöltése közben",configErrors:"Configurációs hibák",checkConfigYml:"Ellenőrizd a config.yml filet.",loadingConfig:"Konfiguráció betöltése...",waitingBackend:"Várakozás hattérrendszerekre..."},notFoundPage:{header:"Nincs találat"}},collection:{sidebar:{collections:"Gyűjtemények",searchAll:"Keresés mindenre"},collectionTop:{viewAs:"Nézet mint",newButton:"Új %{collectionLabel}"},entries:{loadingEntries:"Bejegyzések betöltése",cachingEntries:"Bejegyzések cacheelése",longerLoading:"Ez még eltarthat néhany percig"}},editor:{editorControl:{field:{optional:"választható"}},editorControlPane:{widget:{required:"%{fieldLabel} kötelező mező.",regexPattern:"%{fieldLabel} nem egyezik a %{pattern} mintával.",processing:"%{fieldLabel} feldolgozás alatt.",range:"%{fieldLabel}, %{minValue} és %{maxValue} értékek között kell legyen.",min:"%{fieldLabel} legalább %{minValue} kell legyen vagy több.",max:"%{fieldLabel} legalabb %{maxValue} vagy kevesebb kell legyen."}},editor:{onLeavePage:"Biztos hogy el akarod hagyni az oldalt?",onUpdatingWithUnsavedChanges:"Mentettlen változtatások vannak, kérjük, mentse az állapot frissítése előtt.",onPublishingNotReady:'Változtasd az állapotot "Kész"-re publikálás előtt.',onPublishingWithUnsavedChanges:"Mentetlen változtatások vannak, kérjük, mentsen a publikálás előtt.",onPublishing:"Publikálod ezt a bejegyzést?",onUnpublishing:"Publikálás visszavonása erre a bejegyzésre?",onDeleteWithUnsavedChanges:"Töröljük ezt a publikált bejegyzést, a többi mentetlen modositással együtt?",onDeletePublishedEntry:"Töröljük ezt a publikált bejegyzést?",onDeleteUnpublishedChangesWithUnsavedChanges:"Ezzel törli a bejegyzés összes nem közzétett módosítását, valamint az aktuális munkamenetből nem mentett módosításokat. Még mindig törli?",onDeleteUnpublishedChanges:"A bejegyzés összes, nem közzétett módosítása törlődik. Még mindig törli?",loadingEntry:"Bejegyzés betöltése...",confirmLoadBackup:"Helyi biztonsági másolat került helyre ehhez a bejegyzéshez, szeretné használni?"},editorToolbar:{publishing:"Publikálás...",publish:"Publikáció",published:"Publikálás",unpublish:"Publikálás visszavonása",duplicate:"Duplikált",unpublishing:"Publikálás visszavonása...",publishAndCreateNew:"Publikálás és új létrehozása",publishAndDuplicate:"Publikálás és duplikál",deleteUnpublishedChanges:"Nempublikált változtatások törlése",deleteUnpublishedEntry:"Nempublikált bejegyzés törlése",deletePublishedEntry:"Publikált bejegyzés törlése",deleteEntry:"Bejegyzés törlése",saving:"Mentés...",save:"Mentés",deleting:"Törlés...",updating:"Frissítés...",status:"Beállitása: %{status}",backCollection:" Írás a %{collectionLabel} gyűjteménybe",unsavedChanges:"Nemmentett változtatások",changesSaved:"Változások elmentve",draft:"Piszkozat",inReview:"Felülvizsgálat alatt",ready:"Kész",publishNow:"Publikálás most",deployPreviewPendingButtonLabel:"Előnézet ellenörzése",deployPreviewButtonLabel:"Előnézet megtekintése",deployButtonLabel:"Élő megtekintése"},editorWidgets:{image:{choose:"Válasszon képet",chooseDifferent:"Válasszon másik képet",remove:"Távolítsa el a képet"},file:{choose:"Válasszon fájlt",chooseDifferent:"Válasszon másik fájlt",remove:"Távolítsa el a fájlt"},unknownControl:{noControl:"Nincs vezérlés a '%{widget}' widget számára."},unknownPreview:{noPreview:"Nincs előnézet a '%{widget}' widget számára."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},list:{add:"Új %{item}",addType:"Új típus %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Piszkozat"},mediaLibrary:{onDelete:"Biztos törli a kiválasztott média tartalmat?"},mediaLibraryModal:{loading:"Betöltés...",noResults:"Nincs találat.",noAssetsFound:"Nem található tartalom.",noImagesFound:"Nem található kép.",private:"Privát ",images:"Képek",mediaAssets:"Média tartalmak",search:"Keresés...",uploading:"Feltöltés...",upload:"Új feltöltés",deleting:"Törlés...",deleteSelected:"Kijelöltek törlése",chooseSelected:"Kijelöl"}},ui:{errorBoundary:{title:"Hiba",details:"Hiba történt - kérjük ",reportIt:"jelentse.",detailsHeading:"Részletek",recoveredEntry:{heading:"Helyreállitott dokumentum",warning:"Kérjük mentse ezt el (vágólapra) mielőtt elhagyná az oldalt!",copyButtonLabel:"Másolás a vágólapra"}},settingsDropdown:{logOut:"Kijelentkezés"},toast:{onFailToLoadEntries:"A bejegyzés betöltése nem sikerült: %{details}",onFailToLoadDeployPreview:"Az előnézet betöltése nem sikerült: %{details}",onFailToPersist:"Bejegyzés megtartása sikertelen: %{details}",onFailToDelete:"A bejegyzés törlése sikertelen: %{details}",onFailToUpdateStatus:"Az állapot frissítése nem sikerült: %{details}",missingRequiredField:"Hoppá, kihagytál egy kötelező mezőt. Mentés előtt töltsd ki.",entrySaved:"Bejegyzés elmentve",entryPublished:"Bejegyzés publikálva",entryUnpublished:"Bejegyzés publikálása visszavonva",onFailToPublishEntry:"Bejegyzés publikálása sikertelen: %{details}",onFailToUnpublishEntry:"Bejegyzés publikálásának visszavonása sikertelen: %{details}",entryUpdated:"Bejegyzés állapota frissült",onDeleteUnpublishedChanges:"Unpublished changes deleted",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"A szerkesztési munkafolyamat-bejegyzések betöltése",workflowHeading:"Szerkesztői Folyamat",newPost:"New Post",description:"%{smart_count} bejegyzés felülvizsgálatra vár, %{readyCount} élesítésre vár. |||| %{smart_count} bejegyzés felülvizsgálatra vár, %{readyCount} élesítésre vár. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, írta %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Változtatások törlése",deleteNewEntry:"Új bejegyzés törlése",publishChanges:"Változtatások publikálása",publishNewEntry:"Új bejegyzés publikálása"},workflowList:{onDeleteEntry:"Biztosan törli ezt a bejegyzést?",onPublishingNotReadyEntry:'Csak a "Kész" állapotú tételek tehetők közzé. A közzététel engedélyezéséhez húzza a kártyát a „Kész” oszlopba.',onPublishEntry:"Biztosan közzéteszi ezt a bejegyzést?",draftHeader:"Piszkozat",inReviewHeader:"Vizsgálat alatt",readyHeader:"Kész",currentEntries:"%{smart_count} bejegyzés |||| %{smart_count} bejegyzések"}}}},92035:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bg",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"ca",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"cs",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"da",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"de",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"en",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"es",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"fa",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"fr",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"gr",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"he",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"hr",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"hu",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"it",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"ja",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"ko",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"lt",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"nb_no",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"nl",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"nn_no",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"pl",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"pt",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"ro",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"ru",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"sl",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"sv",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"th",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"tr",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"ua",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"uk",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"vi",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"zh_Hans",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"zh_Hant",{enumerable:!0,get:function(){return T.default}});var r=j(n(47775)),i=j(n(49312)),o=j(n(36407)),a=j(n(95590)),s=j(n(33321)),l=j(n(20026)),u=j(n(97421)),c=j(n(86187)),d=j(n(1107)),f=j(n(9169)),p=j(n(60062)),h=j(n(36221)),m=j(n(18694)),g=j(n(79791)),v=j(n(65954)),y=j(n(37277)),b=j(n(62423)),w=j(n(49968)),_=j(n(64425)),x=j(n(57312)),k=j(n(10869)),E=j(n(15340)),C=j(n(95093)),S=j(n(72872)),A=j(n(3409)),T=j(n(15029)),O=j(n(42221)),P=j(n(62827)),R=j(n(48821)),D=j(n(63379)),M=j(n(61522)),I=j(n(8102)),L=j(n(57722));function j(e){return e&&e.__esModule?e:{default:e}}},60062:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Accedi",loggingIn:"Effettuando l'accesso...",loginWithNetlifyIdentity:"Accedi con Netlify Identity",loginWithBitbucket:"Accedi con Bitbucket",loginWithGitHub:"Accedi con GitHub",loginWithGitLab:"Accedi con GitLab",loginWithGitea:"Accedi con Gitea",errors:{email:"Assicurati di inserire la tua mail.",password:"Inserisci la tua password.",identitySettings:"Impossibile accedere alle impostazioni di Identity. Quando usi git-gateway come backend assicurati di abilitare il servizio Itentity e Git Gateway."}},app:{header:{content:"Contenuti",workflow:"Workflow",media:"Media",quickAdd:"Aggiunta veloce"},app:{errorHeader:"Errore nel caricamento della configurazione CMS",configErrors:"Errori di Configurazione",checkConfigYml:"Controlla il tuo file config.yml.",loadingConfig:"Caricando la configurazione...",waitingBackend:"Attendi il backend..."},notFoundPage:{header:"Non trovato"}},collection:{sidebar:{collections:"Collezioni",searchAll:"Cerca su tutto"},collectionTop:{viewAs:"Vedi come",newButton:"Nuovo/a %{collectionLabel}"},entries:{loadingEntries:"Caricando le voci",cachingEntries:"Cachando le voci",longerLoading:"Questa operazione potrebbe durare diversi minuti"}},editor:{editorControl:{field:{optional:"opzionale"}},editorControlPane:{widget:{required:"%{fieldLabel} è richiesto.",regexPattern:"%{fieldLabel} non corrisponde allo schema: %{pattern}.",processing:"%{fieldLabel} sta elaborando.",range:"%{fieldLabel} deve essere tra %{minValue} e %{maxValue}.",min:"%{fieldLabel} deve essere almeno %{minValue}.",max:"%{fieldLabel} deve essere %{maxValue} o meno."}},editor:{onLeavePage:"Sei sicuro di voler lasciare questa pagina?",onUpdatingWithUnsavedChanges:"Hai delle modifiche non salvate, salvale prima di aggiornare lo status.",onPublishingNotReady:'Aggiorna lo status a "Pronto" prima di pubblicare.',onPublishingWithUnsavedChanges:"Hai delle modifiche non salvate, salvale prima di pubblicare.",onPublishing:"Sei sicuro di voler pubblicare questa voce?",onUnpublishing:"Sei sicuro di voler nascondere questa voce?",onDeleteWithUnsavedChanges:"Sei sicuro di voler cancellare questa voce pubblicata e tutte le modifiche non salvate della tua sessione corrente?",onDeletePublishedEntry:"Sei sicuro di voler cancellare questa voce pubblicata?",onDeleteUnpublishedChangesWithUnsavedChanges:"Questo cancellerà tutte le modifiche non pubblicate di questa voce, come anche tutte le modifiche non salvate della sessione corrente. Vuoi ancora cancellarle?",onDeleteUnpublishedChanges:"Tutte le modifiche non pubblicate a questa voce saranno cancellate. Vuoi ancora cancellarle?",loadingEntry:"Caricando la voce...",confirmLoadBackup:"Un backup locale è stato recuperato per questa voce, vuoi utilizzarlo?"},editorToolbar:{publishing:"Pubblicando...",publish:"Pubblica",published:"Pubblicato",unpublish:"Rimuovi dalla pubblicazione",duplicate:"Duplica",unpublishing:"Rimuovendo dalla pubblicazione...",publishAndCreateNew:"Pubblica e creane uno nuovo",publishAndDuplicate:"Pubblica e duplica",deleteUnpublishedChanges:"Cancella le modifiche non pubblicate",deleteUnpublishedEntry:"Cancella le voci non pubblicate",deletePublishedEntry:"Cancella la voce pubblicata",deleteEntry:"Cancella voce",saving:"Salvando...",save:"Salva",deleting:"Cancellando...",updating:"Aggiornando...",status:"Status: %{status}",backCollection:" Scrivendo nella sezione %{collectionLabel}",unsavedChanges:"Modifiche non salvate",changesSaved:"Modifiche salvate",draft:"Bozza",inReview:"In revisione",ready:"Pronto",publishNow:"Pubblica ora",deployPreviewPendingButtonLabel:"Controlla l'anteprima",deployPreviewButtonLabel:"Guarda l'anteprima",deployButtonLabel:"Guarda Live"},editorWidgets:{image:{choose:"Scegli un'immagine",chooseDifferent:"Scegli un'immagine diversa",remove:"Rimuovi immagine"},file:{choose:"Scegli un file",chooseDifferent:"Scegli un altro file",remove:"Rimuovi il file"},unknownControl:{noControl:"Nessun controllo per il widget '%{widget}'."},unknownPreview:{noPreview:"Nessuna preview per il widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"}}},mediaLibrary:{mediaLibraryCard:{draft:"Bozza"},mediaLibrary:{onDelete:"Sei sicuro di voler cancellare il media selezionato?",fileTooLarge:"File troppo grande.\nConfigurato per non accettare file piú grandi di %{size} kB."},mediaLibraryModal:{loading:"Caricamento...",noResults:"Nessun risultato.",noAssetsFound:"Nessun assets trovato.",noImagesFound:"Nessuna immagine trovata.",private:"Privato ",images:"Immagini",mediaAssets:"Media assets",search:"Cerca...",uploading:"Uploading...",upload:"Upload",deleting:"Deleting...",deleteSelected:"Cancella selezionato",chooseSelected:"Prendi selezionato"}},ui:{errorBoundary:{title:"Errore",details:"C'è stato un errore - per favore ",reportIt:"riportalo.",detailsHeading:"Dettagli",recoveredEntry:{heading:"Documento recuperato",warning:"Per favore copia/incollalo da qualche parte prima di navigare altrove!",copyButtonLabel:"Copialo negli appunti"}},settingsDropdown:{logOut:"Esci"},toast:{onFailToLoadEntries:"Caricamento voce non riuscito: %{details}",onFailToLoadDeployPreview:"Caricamento della preview non riuscito: %{details}",onFailToPersist:"Salvataggio della voce non riuscito: %{details}",onFailToDelete:"Cancellazione della voce non riuscita: %{details}",onFailToUpdateStatus:"Aggiornamento dello status non riuscito: %{details}",missingRequiredField:"Oops, ti sei perso un campo obbligatorio. Per favore completalo prima di salvare.",entrySaved:"Voce salvata",entryPublished:"Voce pubblicata",entryUnpublished:"Voce rimossa dalla pubblicazione",onFailToPublishEntry:"Pubblicazione fallita: %{details}",onFailToUnpublishEntry:"Rimozione della pubblicazione fallita: %{details}",entryUpdated:"Status della voce aggiornato",onDeleteUnpublishedChanges:"Modifiche non pubblicate cancellate",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Caricando le voci del Flusso Editoriale",workflowHeading:"Flusso Editoriale",newPost:"Nuovo Post",description:"%{smart_count} voce attende la revisione, %{readyCount} pronte per la pubblicazione. |||| %{smart_count} voci attendono la revisione, %{readyCount} pronte per la pubblicazione. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} da %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"da %{author}",deleteChanges:"Cancella le modifiche",deleteNewEntry:"Cancella nuova voce",publishChanges:"Pubblica modifiche",publishNewEntry:"Pubblica una nuova voce"},workflowList:{onDeleteEntry:"Sei sicuro di voler cancellare questa voce?",onPublishingNotReadyEntry:'Solo gli oggetti con lo status "Pronto" possono essere pubblicati. Sposta la Card nella colonna "Pronto" per abilitare la pubblicazione.',onPublishEntry:"Sei sicuro di voler pubblicare questa voce?",draftHeader:"Bozze",inReviewHeader:"In Revisione",readyHeader:"Pronto",currentEntries:"%{smart_count} voce |||| %{smart_count} voci"}}}},18694:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"ログイン",loggingIn:"ログインしています...",loginWithNetlifyIdentity:"Netlify Identity でログインする",loginWithAzure:"Azure でログインする",loginWithBitbucket:"Bitbucket でログインする",loginWithGitHub:"GitHub でログインする",loginWithGitLab:"GitLab でログインする",loginWithGitea:"Gitea でログインする",errors:{email:"メールアドレスを確認してください。",password:"パスワードを入力してください。",identitySettings:"認証情報にアクセスできませんでした。git-gateway backend を利用している場合は、認証サービスと Git Gateway が有効になっているかを確認してください。"}},app:{header:{content:"コンテンツ",workflow:"ワークフロー",media:"メディア",quickAdd:"新規作成"},app:{errorHeader:"CMS設定の読み込みエラー",configErrors:"設定エラー",checkConfigYml:"config.ymlを確認してください。",loadingConfig:"設定を読み込んでいます...",waitingBackend:"バックエンドの応答を待機しています..."},notFoundPage:{header:"ページが見つかりません"}},collection:{sidebar:{collections:"コレクション",allCollections:"すべてのコレクション",searchAll:"検索",searchIn:"検索対象"},collectionTop:{sortBy:"ソート",viewAs:"表示モード",newButton:"%{collectionLabel}を作成",ascending:"昇順",descending:"降順",searchResults:"「%{searchTerm}」の検索結果",searchResultsInCollection:"%{collection}内の「%{searchTerm}」の検索結果",filterBy:"絞り込み",groupBy:"グルーピング"},entries:{loadingEntries:"エントリを読み込み中",cachingEntries:"エントリをキャッシュ中",longerLoading:"少々お待ちください",noEntries:"エントリがありません"},groups:{other:"その他",negateLabel:"%{label}以外"},defaultFields:{author:{label:"作成者"},updatedOn:{label:"最終更新"}}},editor:{editorControl:{field:{optional:"任意"}},editorControlPane:{widget:{required:"%{fieldLabel}は必須です。",regexPattern:"%{fieldLabel}が入力規則(%{pattern})と一致しません。",processing:"%{fieldLabel}を処理しています。",range:"%{fieldLabel}は%{minValue}から%{maxValue}まで入力可能です。",min:"%{fieldLabel}の最小値は%{minValue}です。",max:"%{fieldLabel}の最大値は%{maxValue}です。",rangeCount:"%{fieldLabel}は%{minCount}個から%{maxCount}個まで選択してください。",rangeCountExact:"%{fieldLabel}はちょうど%{count}個選択してください。",rangeMin:"%{fieldLabel}は%{minCount}個以上選択してください。",rangeMax:"%{fieldLabel}は%{maxCount}個以下選択してください。",invalidPath:"'%{path}'は有効なパスではありません。",pathExists:"'%{path}'というパスはすでに存在しています。"},i18n:{writingInLocale:"言語: %{locale}"}},editor:{onLeavePage:"このページから遷移しますか?",onUpdatingWithUnsavedChanges:"変更した項目があります。ステータスを更新する前に保存してください。",onPublishingNotReady:"公開する前に、ステータスを「準備完了」に更新してください。",onPublishingWithUnsavedChanges:"変更した項目があります。公開する前に保存してください。",onPublishing:"このエントリを公開しますか?",onUnpublishing:"このエントリを未公開にしますか?",onDeleteWithUnsavedChanges:"保存されていない変更も削除されますが、この公開エントリを削除しますか?",onDeletePublishedEntry:"この公開エントリを削除しますか?",onDeleteUnpublishedChangesWithUnsavedChanges:"保存されていない変更も削除されますが、このエントリの未公開の変更を削除しますか?",onDeleteUnpublishedChanges:"公開されていない変更も削除されますが、このエントリを削除しますか?",loadingEntry:"エントリの読込中...",confirmLoadBackup:"ローカルのバックアップが復旧できました。利用しますか?"},editorInterface:{toggleI18n:"言語を切り替える",togglePreview:"プレビュー表示を切り替える",toggleScrollSync:"スクロール同期を切り替える"},editorToolbar:{publishing:"公開しています...",publish:"公開",published:"公開済",unpublish:"未公開",duplicate:"複製",unpublishing:"未公開にしています...",publishAndCreateNew:"公開して新規作成",publishAndDuplicate:"公開して複製する",deleteUnpublishedChanges:"未公開の変更を削除",deleteUnpublishedEntry:"未公開エントリを削除",deletePublishedEntry:"公開エントリを削除",deleteEntry:"エントリを削除",saving:"保存中...",save:"保存",statusInfoTooltipDraft:"エントリのステータスは下書きに設定されています。最終決定してレビューに提出するには、ステータスを「レビュー中」に設定します。",statusInfoTooltipInReview:"エントリはレビュー中なので、それ以上のアクションは必要ありません。ただし、レビュー中でも追加の変更を行うことができます。",deleting:"削除しています...",updating:"更新しています...",status:"ステータス: %{status}",backCollection:"%{collectionLabel}のエントリを作成中",unsavedChanges:"未保存",changesSaved:"保存済",draft:"下書き",inReview:"レビュー中",ready:"準備完了",publishNow:"公開する",deployPreviewPendingButtonLabel:"プレビューのチェック",deployPreviewButtonLabel:"プレビューを見る",deployButtonLabel:"ライブで見る"},editorWidgets:{markdown:{bold:"太字",italic:"斜体",code:"コード",link:"リンク",linkPrompt:"リンクのURLを入力してください",headings:"見出し",quote:"引用",bulletedList:"箇条書き",numberedList:"番号付きリスト",addComponent:"コンポーネント追加",richText:"リッチテキスト",markdown:"マークダウン"},image:{choose:"画像を選択",chooseUrl:"URLを入力する",replaceUrl:"URLを変更する",promptUrl:"画像のURLを入力してください",chooseDifferent:"他の画像を選択",remove:"画像を削除"},file:{choose:"ファイルを選択",chooseUrl:"URLを入力する",replaceUrl:"URLを変更する",promptUrl:"ファイルのURLを入力してください",chooseDifferent:"他のファイルを選択",remove:"ファイルを削除"},unknownControl:{noControl:"'%{widget}'はウィジェットとして利用できません。"},unknownPreview:{noPreview:"'%{widget}'のウィジェットにはプレビューがありません。"},headingOptions:{headingOne:"見出し 1",headingTwo:"見出し 2",headingThree:"見出し 3",headingFour:"見出し 4",headingFive:"見出し 5",headingSix:"見出し 6"},datetime:{now:"現時刻",clear:"クリア"}}},mediaLibrary:{mediaLibraryCard:{draft:"下書き",copy:"コピー",copyUrl:"URLをコピー",copyPath:"パスをコピー",copyName:"名前をコピー",copied:"コピーしました"},mediaLibrary:{onDelete:"選択しているデータを削除しますか?",fileTooLarge:"ファイルサイズが大きすぎます。\n%{size} kB 以下にしてください。"},mediaLibraryModal:{loading:"読込中...",noResults:"データがありません。",noAssetsFound:"データがありません。",noImagesFound:"データがありません。",private:"プライベート",images:"画像",mediaAssets:"メディア",search:"検索",uploading:"アップロード中...",upload:"アップロードする",download:"ダウンロードする",deleting:"削除中...",deleteSelected:"削除する",chooseSelected:"選択する"}},ui:{default:{goBackToSite:"サイトに戻る"},errorBoundary:{title:"エラー",details:"エラーが発生しました。",reportIt:"レポートする",detailsHeading:"詳細",privacyWarning:"エラーメッセージとデバッグのデータがレポートする前に表示されます。\n情報が正しいことを確認し、機密データが存在する場合は削除してください。",recoveredEntry:{heading:"復旧したエントリ",warning:"必要あれば、このページから遷移する前にコピーしてください。",copyButtonLabel:"コピーする"}},settingsDropdown:{logOut:"ログアウト"},toast:{onFailToLoadEntries:"エントリの読み込みに失敗しました。%{details}",onFailToLoadDeployPreview:"プレビューの読み込みに失敗しました。%{details}",onFailToPersist:"エントリの保存に失敗しました。%{details}",onFailToDelete:"エントリの削除に失敗しました。%{details}",onFailToUpdateStatus:"エントリのステータス更新に失敗しました。%{details}",missingRequiredField:"すべての必須項目を入力してください。",entrySaved:"保存しました。",entryPublished:"公開しました。",entryUnpublished:"未公開にしました。",onFailToPublishEntry:"エントリの公開に失敗しました。%{details}",onFailToUnpublishEntry:"エントリを未公開にするのに失敗しました。%{details}",entryUpdated:"エントリのステータスを更新しました。",onDeleteUnpublishedChanges:"未公開の変更を削除しました。",onFailToAuth:"%{details}",onLoggedOut:"ログアウトされています。データをバックアップし、再度ログインしてください。",onBackendDown:"バックエンドのシステムが停止しています。%{details}"}},workflow:{workflow:{loading:"ワークフロー内のエントリを読込中",workflowHeading:"ワークフロー",newPost:"新規作成",description:"%{smart_count}件がレビュー中、%{readyCount}件が準備完了です。",dateFormat:"M月D日"},workflowCard:{lastChange:"%{author}が%{date}に更新",lastChangeNoAuthor:"最終更新日:%{date}",lastChangeNoDate:"最終更新者:%{author}",deleteChanges:"変更を削除",deleteNewEntry:"エントリを削除",publishChanges:"変更を公開",publishNewEntry:"エントリを公開"},workflowList:{onDeleteEntry:"このエントリを削除しますか?",onPublishingNotReadyEntry:"「準備完了」のエントリのみを公開できます。「準備完了」列にカードを移動し、ステータスを更新してください。",onPublishEntry:"このエントリを公開しますか?",draftHeader:"下書き",inReviewHeader:"レビュー中",readyHeader:"準備完了",currentEntries:"%{smart_count}件のエントリ"}}}},42221:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"로그인",loggingIn:"로그인 중...",loginWithNetlifyIdentity:"Netlify Identity 로 로그인",loginWithAzure:"Azure 로 로그인",loginWithBitbucket:"Bitbucket 으로 로그인",loginWithGitHub:"GitHub 로 로그인",loginWithGitLab:"GitLab 으로 로그인",loginWithGitea:"Gitea 으로 로그인",errors:{email:"반드시 이메일을 입력해 주세요.",password:"암호를 입력해 주세요.",identitySettings:"설정에 접근할 수 없습니다. git-gateway 백엔드 사용시 Identity service와 Git Gateway를 활성화 해야 합니다."}},app:{header:{content:"콘텐츠",workflow:"워크플로우",media:"미디어",quickAdd:"빠른 추가"},app:{errorHeader:"CMS 구성을 불러오는 중 오류가 발생했습니다.",configErrors:"구성 오류",checkConfigYml:"config.yml 파일을 확인하세요.",loadingConfig:"구성 불러오는 중...",waitingBackend:"백엔드 기다리는 중..."},notFoundPage:{header:"찾을 수 없음"}},collection:{sidebar:{collections:"컬렉션",allCollections:"모든 컬렉션",searchAll:"모든 컬렉션에서 검색",searchIn:"다음 컬렉션에서 검색"},collectionTop:{sortBy:"정렬 기준",viewAs:"다음으로 보기",newButton:"새 %{collectionLabel} 항목",ascending:"오름차순",descending:"내림차순",searchResults:'"%{searchTerm}"에 대한 검색결과',searchResultsInCollection:'%{collection} 컬랙션에서 "%{searchTerm}"에 대한 검색결과',filterBy:"필터 기준",groupBy:"그룹화 기준"},entries:{loadingEntries:"항목 불러오는 중...",cachingEntries:"항목 캐시 중...",longerLoading:"몇 분 정도 걸릴 수 있습니다.",noEntries:"항목 없음"},groups:{other:"다른 그룹",negateLabel:"%{label} 제외"},defaultFields:{author:{label:"저자"},updatedOn:{label:"업데이트 시각"}}},editor:{editorControl:{field:{optional:"선택사항"}},editorControlPane:{widget:{required:"%{fieldLabel} 은(는) 필수입니다.",regexPattern:"%{fieldLabel} 이(가) %{pattern} 패턴과 일치하지 않습니다.",processing:"%{fieldLabel} 은(는) 처리중 입니다.",range:"%{fieldLabel} 은(는) 반드시 %{minValue} 에서 %{maxValue} 사이여야 합니다.",min:"%{fieldLabel} 은(는) 적어도 %{minValue} 이상 이여야 합니다.",max:"%{fieldLabel} 은(는) 최대 %{maxValue} 여야 합니다.",rangeCount:"%{fieldLabel} 개수는 %{minCount} 개 에서 %{maxCount} 개 사이여야 합니다.",rangeCountExact:"%{fieldLabel} 개수는 정확히 %{count} 개 여야 합니다.",rangeMin:"%{fieldLabel} 개수는 적어도 %{minCount} 개 이상 이여야 합니다.",rangeMax:"%{fieldLabel} 개수는 최대 %{maxCount} 개 여야 합니다.",invalidPath:"'%{path}' 은(는) 올바른 경로가 아닙니다.",pathExists:"'%{path}' 경로가 이미 존재합니다."},i18n:{writingInLocale:"%{locale}로 작성 중",copyFromLocale:"다른 로케일로부터 채우기",copyFromLocaleConfirm:"%{locale} 로케일로부터 데이터를 채우시겠습니까?\n모든 기존 내용을 덮어쓰기 합니다."}},editor:{onLeavePage:"이 페이지를 떠나시겠습니까?",onUpdatingWithUnsavedChanges:"저장하지 않은 변경사항이 있습니다. 상태 업데이트 전 먼저 저장하세요.",onPublishingNotReady:'게시 하기 앞서 상태를 "준비됨" 으로 업데이트 하세요.',onPublishingWithUnsavedChanges:"저장하지 않은 변경사항이 있습니다, 게시하기 전 먼저 저장하세요.",onPublishing:"이 항목을 게시하시곘습니까?",onUnpublishing:"이 항목을 게시 철회 하시겠습니까?",onDeleteWithUnsavedChanges:"현재 세션에서의 저장되지 않은 변경사항과 이 게시된 항목을 삭제하시겠습니까?",onDeletePublishedEntry:"이 게시된 항목을 삭제하시겠습니까?",onDeleteUnpublishedChangesWithUnsavedChanges:"이 항목의 게시되지 않은 모든 변경사항과 현재 세션의 저장되지 않은 변경사항이 삭제됩니다. 정말로 삭제하시겠습니까?",onDeleteUnpublishedChanges:"이 항목에 대해 게시되지 않은 변경사항이 삭제됩니다. 정말로 삭제하시겠습니까?",loadingEntry:"항목 불러오는 중...",confirmLoadBackup:"이 항목에 대한 로컬 백업이 복구되었습니다, 복구된 것으로 사용하시겠습니까?"},editorInterface:{toggleI18n:"국제화(i18n) 토글",togglePreview:"미리보기 토글",toggleScrollSync:"스크롤 동기화"},editorToolbar:{publishing:"게시 중...",publish:"게시",published:"게시됨",unpublish:"게시 철회",duplicate:"복제",unpublishing:"게시 철회 중...",publishAndCreateNew:"게시하고 새로 만들기",publishAndDuplicate:"게시하고 복제",deleteUnpublishedChanges:"게시 안된 변경사항 삭제",deleteUnpublishedEntry:"게시 안된 항목 삭제",deletePublishedEntry:"게시된 항목 삭제",deleteEntry:"항목 삭제",saving:"저장 중...",save:"저장",deleting:"삭제 중...",updating:"업데이트 중...",status:"상태: %{status}",backCollection:"%{collectionLabel} 컬랙션에 작성하는 중",unsavedChanges:"변경사항 저장되지 않음",changesSaved:"변경사항 저장됨",draft:"초안",inReview:"검토중",ready:"준비됨",publishNow:"지금 게시",deployPreviewPendingButtonLabel:"미리보기 확인",deployPreviewButtonLabel:"미리보기 보기",deployButtonLabel:"라이브 보기"},editorWidgets:{markdown:{bold:"굵은체",italic:"기울임체",code:"코드",link:"링크",linkPrompt:"링크의 URL을 입력하세요",headings:"제목",quote:"인용",bulletedList:"글머리 기호 목록",numberedList:"번호 매기기 목록",addComponent:"구성요소 추가",richText:"리치 텍스트",markdown:"마크다운"},image:{choose:"이미지 선택",chooseMultiple:"이미지 여러개 선택",chooseUrl:"URL에서 삽입",replaceUrl:"URL 변경",promptUrl:"이미지 URL을 입력하세요",chooseDifferent:"다른 이미지 선택",addMore:"더 많은 이미지 추가",remove:"이미지 삭제",removeAll:"모든 이미지 삭제"},file:{choose:"파일 선택",chooseUrl:"URL에서 삽입",chooseMultiple:"파일 여러개 선택",replaceUrl:"URL 변경",promptUrl:"파일 URL을 입력하세요",chooseDifferent:"다른 파일 선택",addMore:"더 많은 파일 추가",remove:"파일 삭제",removeAll:"모든 파일 삭제"},unknownControl:{noControl:"'%{widget}' 위젯에 대한 컨트롤이 없습니다."},unknownPreview:{noPreview:"'%{widget}' 위젯에 대한 미리보기가 없습니다."},headingOptions:{headingOne:"제목 1",headingTwo:"제목 2",headingThree:"제목 3",headingFour:"제목 4",headingFive:"제목 5",headingSix:"제목 6"},datetime:{now:"현재시각",clear:"지우기"},list:{add:"%{item} 추가",addType:"%{item} 추가"}}},mediaLibrary:{mediaLibraryCard:{draft:"초안",copy:"복사",copyUrl:"URL 복사",copyPath:"경로 복사",copyName:"이름 복사",copied:"복사됨"},mediaLibrary:{onDelete:"선택하신 미디어를 삭제하시겠습니까?",fileTooLarge:"파일이 너무 큽니다.\n%{size} kB 보다 큰 파일을 허용하지 않도록 구성되어 있습니다."},mediaLibraryModal:{loading:"불러오는 중...",noResults:"일치 항목 없음.",noAssetsFound:"발견된 에셋 없음.",noImagesFound:"발견된 이미지 없음.",private:"개인 ",images:"이미지",mediaAssets:"미디어 에셋",search:"검색...",uploading:"업로드 중...",upload:"업로드",download:"다운로드",deleting:"삭제 중...",deleteSelected:"선택항목 삭제",chooseSelected:"선택한 것으로 결정"}},ui:{default:{goBackToSite:"사이트로 돌아가기"},errorBoundary:{title:"오류",details:"오류가 발생했습니다.",reportIt:"GitHub에서 이슈를 열어 보고해 주세요.",detailsHeading:"자세한 내용",privacyWarning:"이슈를 열면 사전에 오류 메시지와 디버깅 데이터로 채워집니다.\n정보가 올바른지 확인하시고 민감한 정보가 있다면 지워주세요.",recoveredEntry:{heading:"복구된 문서",warning:"다른 곳으로 가시기 전에 이 내용을 꼭 복사해두세요!",copyButtonLabel:"클립보드로 복사"}},settingsDropdown:{logOut:"로그아웃"},toast:{onFailToLoadEntries:"항목 불러오기 실패: %{details}",onFailToLoadDeployPreview:"미리보기 불러오기 실패: %{details}",onFailToPersist:"항목 저장 실패: %{details}",onFailToDelete:"항목 삭제 실패: %{details}",onFailToUpdateStatus:"상태 업데이트 실패: %{details}",missingRequiredField:"이런! 필수 필드를 놓치셨습니다. 저장하기 전에 먼저 채우세요.",entrySaved:"항목 저장됨",entryPublished:"항목 게시됨",entryUnpublished:"항목 게시 철회됨",onFailToPublishEntry:"게시 실패: %{details}",onFailToUnpublishEntry:"항목 게시 철회 실해: %{details}",entryUpdated:"항목 상태 업데이트됨",onDeleteUnpublishedChanges:"게시되지 않은 변경사항 삭제됨",onFailToAuth:"%{details}",onLoggedOut:"로그아웃 하셨습니다, 데티어를 백업하시고 다시 로그인 하세요.",onBackendDown:"백엔드 서비스가 장애를 겪고 있습니다. 자세한 사항은 %{details} 을(를) 참고하세요."}},workflow:{workflow:{loading:"편집 워크플로우의 항목을 불러오는 중",workflowHeading:"편집 워크플로우",newPost:"새 게시물",description:"%{smart_count}개 항목 검토 대기중, %{readyCount}개 항목 게시 준비 완료됨. |||| %{smart_count}개 항목 검토 대기중, %{readyCount}개 항목 게시 준비 완료됨. ",dateFormat:"M월 D일"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"변경사항 삭제",deleteNewEntry:"새 항목 삭제",publishChanges:"변경사항 게시",publishNewEntry:"새 항목 게시"},workflowList:{onDeleteEntry:"정말로 이 항목을 삭제하시겠습니까?",onPublishingNotReadyEntry:'"준비됨" 상태의 항목만 게시할 수 있습니다. 게시를 활성화 하려면 카드를 "준비됨" 열에 끌어 놓으세요.',onPublishEntry:"이 항목을 게시하시곘습니까?",draftHeader:"초안",inReviewHeader:"검토 진행중",readyHeader:"준비됨",currentEntries:"%{smart_count}개 항목 |||| %{smart_count}개 항목"}}}},36221:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Prisijungti",loggingIn:"Prisijungiama...",loginWithNetlifyIdentity:"Prisijungti su Netlify Identity",loginWithAzure:"Prisijungti su Azure",loginWithBitbucket:"Prisijungti su Bitbucket",loginWithGitHub:"Prisijungti su GitHub",loginWithGitLab:"Prisijungti su GitLab",loginWithGitea:"Prisijungti su Gitea",errors:{email:"Įveskite savo elektroninį paštą.",password:"Įveskite savo slaptažodį.",identitySettings:"Deja, nepavyksta pasiekti Identity paslaugos nustatymus. Kai naudojate git-gateway backend metodą, įjunkite „Identity service“ ir „Git Gateway“."}},app:{header:{content:"Turinys",workflow:"Darbo eiga",media:"Medija",quickAdd:"Sukurti naują"},app:{errorHeader:"Klaida, neišėjo užkrauti/pasiekti CMS konfigūracijos failą",configErrors:"Konfigūracijos (nustatymų) klaidos",checkConfigYml:"Patikrinkite config.yml balsą.",loadingConfig:"Kraunamas nustatymų (konfigūracijos) failas...",waitingBackend:"Laukiama serverio..."},notFoundPage:{header:"Nerasta"}},collection:{sidebar:{collections:"Kolekcijos",allCollections:"Visos kolekcijos",searchAll:"Ieškoti viską",searchIn:"Ieškoti tik čia"},collectionTop:{sortBy:"Rikiavimo tvarka",viewAs:"Peržiūrėti kaip",newButton:"Nauja(s) %{collectionLabel}",ascending:"Didėjimo tvarka (A-Z)",descending:"Mažėjimo tvarka (Z-A)",searchResults:"Paieškos rezultatai: „%{searchTerm}“",searchResultsInCollection:"Paieškos rezultatai: „%{searchTerm}“ iš %{collection}",filterBy:"Filtruoti",groupBy:"Grupuoti"},entries:{loadingEntries:"Kraunamas turinys...",cachingEntries:"Talpinami įrašai...",longerLoading:"Šis procesas gali trukti keletą minučių",noEntries:"Nėra turinio"},groups:{other:"Kita",negateLabel:"Ne %{label}"},defaultFields:{author:{label:"Autorius"},updatedOn:{label:"Atnaujinta"}}},editor:{editorControl:{field:{optional:"neprivaloma"}},editorControlPane:{widget:{required:"Privaloma užpildyti laukelį %{fieldLabel}.",regexPattern:"%{fieldLabel} laukelis neatitiko konfigūracijoje nustatytų taisyklių: %{pattern}.",processing:"Apdorojame %{fieldLabel}.",range:"%{fieldLabel} turi būti tarp %{minValue} ir %{maxValue}.",min:"%{fieldLabel} turi būti bent %{minValue}.",max:"%{fieldLabel} turi būti %{maxValue} arba mažiau.",rangeCount:"%{fieldLabel} turi būti tarp %{minCount} ir %{maxCount} elementų/-o.",rangeCountExact:"%{fieldLabel} turi turėti būtent tik %{count} elementų/-us.",rangeMin:"%{fieldLabel} turi būti bent %{minCount} elementų.",rangeMax:"%{fieldLabel} turi būti %{maxCount} arba mažiau elementų.",invalidPath:"'%{path}' nėra taisyklinga nuoroda/adresas į resursą/-us",pathExists:"Adresas '%{path}' jau egzistuoja"},i18n:{writingInLocale:"Rašome %{locale} kalboje"}},editor:{onLeavePage:"Ar tikrai norite uždaryti šį puslapį?",onUpdatingWithUnsavedChanges:"Turite neišsaugotų pakeitimų! Prašome išsaugoti prieš pakeičiant statusą.",onPublishingNotReady:"Prieš publikuojant, privalote pakeisti statusą į „Paruošta“.",onPublishingWithUnsavedChanges:"Yra neišsaugotų pakeitimų, prašome išsaugoti juos prieš publikuojant.",onPublishing:"Ae tikrai norite publikuoti šį įrašą?",onUnpublishing:"Tikrai norite panaikinti publikavimo statusą?",onDeleteWithUnsavedChanges:"Tikrai norite panaikinti publikuotą įrašą ir Jūsų pakeiitmus iš dabartinės sesijos?",onDeletePublishedEntry:"Tikrai norite ištrinti šį publikuotą įrašą?",onDeleteUnpublishedChangesWithUnsavedChanges:"Tai ištrins visus nepublikuotus pakeitimus įraše, taip pat neišsaugotus pakeitimus per dabartinę sesiją. Vis tiek norite trinti?",onDeleteUnpublishedChanges:"Visi Jūsų pakeitimai įraše bus panaikinti. Ar tikrai norite trinti jį?",loadingEntry:"Kraunamas įrašas...",confirmLoadBackup:"Radome Jūsų įrenginyje išsaugota juodraštį šiam įrašui, ar norite jį atgaivinti ir naudoti?"},editorToolbar:{publishing:"Publikuojama...",publish:"Publikuoti",published:"Jau publikuota",unpublish:"Atšaukti paskelbimą",duplicate:"Daryti dublį",unpublishing:"Nebeskelbiama...",publishAndCreateNew:"Publikuoti šitą, po to kurti kažką naujo",publishAndDuplicate:"Publikuoti šitą, po to kurti šito dublį",deleteUnpublishedChanges:"Ištrinti publikuotus pakeitimus",deleteUnpublishedEntry:"Ištrinti nepaskelbtą įrašą",deletePublishedEntry:"Ištrinti paskelbtą įrašą",deleteEntry:"Panaikinti įrašą",saving:"Išsaugojama...",save:"Išsaugoti",deleting:"Trinama...",updating:"Atnaujinama...",status:"Statusą: %{status}",backCollection:" Rašoma %{collectionLabel} kolekcijoje",unsavedChanges:"Neišsaugoti pakeitimai",changesSaved:"Pakeitimai išsauogti",draft:"Juodraštis",inReview:"Peržiūrima redakcijoje",ready:"Paruošta",publishNow:"Skelbti naują",deployPreviewPendingButtonLabel:"Tikrinti, ar yra demonstracija",deployPreviewButtonLabel:"Žiūrėti demonstraciją (netiesiogiai)",deployButtonLabel:"Žiūrėti tiesiogiai tinklalapyje"},editorWidgets:{markdown:{bold:"Paryškinta",italic:"Pasvariu tekstu (italic)",code:"Kodo šriftas",link:"Nuoroda (adresas)",linkPrompt:"Įveskite adresą čia",headings:"Antraštės",quote:"Citata",bulletedList:"Sąrašas su ženkleliais",numberedList:"Sąrašas su numeriais",addComponent:"Pridėti komponentą",richText:"Normali peržiūra",markdown:"Rodyti be formatavimo (Markdown)"},image:{choose:"Pasirinkti vaizdą",chooseDifferent:"Pasirinkti skirtingą vaizdą",remove:"Panaikinti vaizdą"},file:{choose:"Pasirinkti failą",chooseDifferent:"Pasirinkti kitą failą",remove:"Panaikinti failą"},unknownControl:{noControl:"Klaida: valdiklis taisyklingai neveikia. No control for widget '%{widget}'."},unknownPreview:{noPreview:"Klaida: valdiklis taisyklingai neveikia. No preview for widget '%{widget}'."},headingOptions:{headingOne:"Antraštė 1",headingTwo:"Antraštė 2",headingThree:"Antraštė 3",headingFour:"Antraštė 4",headingFive:"Antraštė 5",headingSix:"Antraštė 6"},datetime:{now:"Dabar",clear:"Išvalyti"}}},mediaLibrary:{mediaLibraryCard:{draft:"Juodraštis"},mediaLibrary:{onDelete:"Ar jūs tikrai norite ištrinti pasirinktą mediją?",fileTooLarge:"Failas per didelis.\nNustatymuose (konfigūracijoje) nurodyta, kad failai negali viršyti %{size} kB."},mediaLibraryModal:{loading:"Kraunama...",noResults:"Nėra rezultatų.",noAssetsFound:"Turinio nerasta.",noImagesFound:"Vaizdų nerasta.",private:"Privatu ",images:"Vaizdai",mediaAssets:"Medijos turinys",search:"Paieška...",uploading:"Keliama...",upload:"Įkelti",download:"Parsiųsti",deleting:"Trinama...",deleteSelected:"Ištrinti parinktus",chooseSelected:"Pasirinkti parinktus"}},ui:{default:{goBackToSite:"Grįžti atgal į tinklalapį"},errorBoundary:{title:"Klaida",details:"Buvo klaida - jeigu galite, prašome ",reportIt:"pranešti apie techninę problemą „GitHub“ puslapyje.",detailsHeading:"Detalės",privacyWarning:"Opening an issue pre-populates it with the error message and debugging data.\nPlease verify the information is correct and remove sensitive data if exists.",recoveredEntry:{heading:"Sugrąžintas dokumentas",warning:"Prašome kopijuoti/įkluoti šitą kažkur prieš uždarant puslapį!",copyButtonLabel:"Nukopijuoti į iškarpinę"}},settingsDropdown:{logOut:"Atsijungti"},toast:{onFailToLoadEntries:"Nepavyko užkrauti įrašo: %{details}",onFailToLoadDeployPreview:"Nepavyko užkrauti demonstracijos lango: %{details}",onFailToPersist:"Nepavyko išlaikyti įrašo: %{details}",onFailToDelete:"Nepayvko ištrinti: %{details}",onFailToUpdateStatus:"Nepavyko pakeisti statusą: %{details}",missingRequiredField:"Pasitikrinkite — kažkurio (ar kelių) laukelių neužpildėte. Tai padarius galėsite išsaugoti įrašą.",entrySaved:"Įrašas išsaugotos",entryPublished:"Įrašas publikuotas",entryUnpublished:"Įrašas nepublikuotas",onFailToPublishEntry:"Nepavyko publikuoti: %{details}",onFailToUnpublishEntry:"Nepavyko panaikinti publikavimą: %{details}",entryUpdated:"Įrašo statusas pakeistas",onDeleteUnpublishedChanges:"Nepublikuoti pakeitimai ištrinti",onFailToAuth:"Nepavyko prisijungti: %{details}",onLoggedOut:"Mes jus atjungėme. Jeigu yra poreikis, sukurkite duomenų atsarginę kopiją. Galite tiesiog iš naujo prisijungti.",onBackendDown:"Deja, serveris šiuo metu neveikia. Bandykite iš naujo dar sykį arba šiek tiek vėliau. Detalės: %{details}"}},workflow:{workflow:{loading:"Kraunamas turinys",workflowHeading:"Redakcijos darbo eiga",newPost:"Naujas įrašas",description:"%{smart_count} įrašas laukia Jūsų peržiūrėjimo, %{readyCount} jau gali būti publikuojamas. |||| %{smart_count} elementai laukia Jūsų peržiūrėjimo, %{readyCount} jau gali būti publikuojami. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} pagal %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"oagal %{author}",deleteChanges:"Trinti keitimus",deleteNewEntry:"Trinti naują įrašą",publishChanges:"Publikuoti keitimus",publishNewEntry:"Kurti naują įrašą"},workflowList:{onDeleteEntry:"Ar tikrai norite ištrinti šį įrašą?",onPublishingNotReadyEntry:"Tik įrašai su statusu „Paruošta“ gali būti patvirtinti. Prašome pajudinti įrašo kortelę link „Paruošta“ stulpelio, kad galėtumėte publikuoti įrašą.",onPublishEntry:"Ar jūs tikrai norite publikuoti šį įrašą?",draftHeader:"Juodraščiai",inReviewHeader:"Peržiūrima redakcijoje",readyHeader:"Paruošta",currentEntries:"%{smart_count} įrašas |||| %{smart_count} įrašai"}}}},65954:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Logg inn",loggingIn:"Logger inn..",loginWithNetlifyIdentity:"Logg på med Netlify Identity",loginWithBitbucket:"Logg på med Bitbucket",loginWithGitHub:"Logg på med GitHub",loginWithGitLab:"Logg på med GitLab",loginWithGitea:"Logg på med Gitea",errors:{email:"Du må skrive inn e-posten din.",password:"Du må skrive inn passordet ditt.",identitySettings:"Fant ingen innstillinger for Identity. Hvis du skal bruke git-gateway må du skru på Identity service og Git Gateway."}},app:{header:{content:"Innhold",workflow:"Arbeidsflyt",media:"Media",quickAdd:"Hurtiginnlegg"},app:{errorHeader:"Det oppstod en feil under lastingen av CMS konfigurasjonen",configErrors:"Konfigurasjonsfeil",checkConfigYml:"Sjekk config.yml filen.",loadingConfig:"Laster konfigurasjon...",waitingBackend:"Venter på backend..."},notFoundPage:{header:"Ikke funnet"}},collection:{sidebar:{collections:"Samlinger",searchAll:"Søk i alle"},collectionTop:{sortBy:"Sorter etter",viewAs:"Vis som",newButton:"Ny %{collectionLabel}",ascending:"Stigende",descending:"Synkende"},entries:{loadingEntries:"Laster innlegg...",cachingEntries:"Mellomlagrer innlegg...",longerLoading:"Dette kan ta opptil flere minutter",noEntries:"Ingen innlegg"},defaultFields:{author:{label:"Forfatter"},updatedOn:{label:"Oppdatert"}}},editor:{editorControl:{field:{optional:"valgfritt"}},editorControlPane:{widget:{required:"%{fieldLabel} er påkrevd.",regexPattern:"%{fieldLabel} samsvarer ikke med mønsteret: %{pattern}.",processing:"%{fieldLabel} blir prosessert.",range:"%{fieldLabel} må være mellom %{minValue} og %{maxValue}.",min:"%{fieldLabel} må minst være %{minValue}.",max:"%{fieldLabel} må være %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} må ha mellom %{minCount} og %{maxCount} element(er).",rangeCountExact:"%{fieldLabel} må ha nøyaktig %{count} element(er).",rangeMin:"%{fieldLabel} må minst ha %{minCount} element(er).",rangeMax:"%{fieldLabel} må ha %{maxCount} eller færre element(er)."}},editor:{onLeavePage:"Er du sikker på du vil navigere bort fra denne siden?",onUpdatingWithUnsavedChanges:"Du må lagre endringene dine før du oppdaterer status.",onPublishingNotReady:'Du må endre status til "Klar" før du publiserer.',onPublishingWithUnsavedChanges:"Du må lagre endringene dine før du kan publisere.",onPublishing:"Er du sikker på at du vil publisere?",onUnpublishing:"Er du sikker på at du vil avpublisere innlegget?",onDeleteWithUnsavedChanges:"Er du sikker på at du vil slette et publisert innlegg med tilhørende ulagrede endringer?",onDeletePublishedEntry:"Er du sikker på at du vil slette dette publiserte innlegget?",onDeleteUnpublishedChangesWithUnsavedChanges:"Handlingen sletter endringer som ikke er publisert eller lagret enda. Er du sikker på du vil fortsette?",onDeleteUnpublishedChanges:"Alle endringer som ikke er publisert i dette innlegget vil gå tapt. Vil du fortsette?",loadingEntry:"Laster innlegg...",confirmLoadBackup:"Vil du gjenopprette tidligere endringer som ikke har blitt lagret?"},editorToolbar:{publishing:"Publiserer...",publish:"Publiser",published:"Publisert",unpublish:"Avpubliser",duplicate:"Dupliser",unpublishing:"Avpubliserer...",publishAndCreateNew:"Publiser og lag nytt",publishAndDuplicate:"Publiser og dupliser",deleteUnpublishedChanges:"Slett upubliserte endringer",deleteUnpublishedEntry:"Slett upublisert innlegg",deletePublishedEntry:"Slett publisert innlegg",deleteEntry:"Slett innlegg",saving:"Lagrer...",save:"Lagre",deleting:"Sletter...",updating:"Oppdaterer...",status:"Status: %{status}",backCollection:" Skriver i samlingen %{collectionLabel}",unsavedChanges:"Ulagrede endringer",changesSaved:"Endringer lagret",draft:"Kladd",inReview:"Til godkjenning",ready:"Klar",publishNow:"Publiser nå",deployPreviewPendingButtonLabel:"Kontroller forhåndsvisning",deployPreviewButtonLabel:"Vis forhåndsvisning",deployButtonLabel:"Vis i produksjon"},editorWidgets:{markdown:{richText:"Rik-tekst",markdown:"Markdown"},image:{choose:"Velg et bilde",chooseDifferent:"Velg et annet bilde",remove:"Fjern bilde"},file:{choose:"Velg en fil",chooseDifferent:"Velg en annen fil",remove:"Fjern fil"},unknownControl:{noControl:"Ingen konfigurasjon for widget '%{widget}'."},unknownPreview:{noPreview:"Ingen forhåndsvisning tilgjengelig for '%{widget}'."},headingOptions:{headingOne:"Overskrift 1",headingTwo:"Overskrift 2",headingThree:"Overskrift 3",headingFour:"Overskrift 4",headingFive:"Overskrift 5",headingSix:"Overskrift 6"},datetime:{now:"Nå",clear:"Nullstill"}}},mediaLibrary:{mediaLibraryCard:{draft:"Kladd"},mediaLibrary:{onDelete:"Er du sikker på at du vil slette markert element?",fileTooLarge:"Filen er for stor.\nMaksimal konfiguert filstørrelse er %{size} kB."},mediaLibraryModal:{loading:"Laster...",noResults:"Ingen resultater.",noAssetsFound:"Ingen elementer funnet.",noImagesFound:"Ingen bilder funnet.",private:"Privat ",images:"Bilder",mediaAssets:"Mediebibliotek",search:"Søk...",uploading:"Laster opp...",upload:"Last opp",download:"Last ned",deleting:"Sletter...",deleteSelected:"Slett markert",chooseSelected:"Velg markert"}},ui:{default:{goBackToSite:"Gå tilbake til siden"},errorBoundary:{title:"Feil",details:"Det har oppstått en feil. Det er fint om du ",reportIt:"oppretter et issue på GitHub.",detailsHeading:"Detaljer",privacyWarning:"Når du åpner et issue forhåndsutfylles feil og feilsøkingsdata. Dobbeltsjekk at informasjonen er riktig, og fjern eventuelle sensitive data.",recoveredEntry:{heading:"Gjenopprettet dokument",warning:"Det kan være lurt å ta kopi av innholdet før navigerer bort fra denne siden!",copyButtonLabel:"Kopier til utklippstavle"}},settingsDropdown:{logOut:"Logg ut"},toast:{onFailToLoadEntries:"Kunne ikke laste innlegg: %{details}",onFailToLoadDeployPreview:"Kunne ikke laste forhåndsvisning: %{details}",onFailToPersist:"Kunne ikke lagre: %{details}",onFailToDelete:"Kunne ikke slette: %{details}",onFailToUpdateStatus:"Kunne ikke laste opp: %{details}",missingRequiredField:"Oisann, ser ut som du glemte et påkrevd felt. Du må fylle det ut før du kan fortsette.",entrySaved:"Innlegg lagret",entryPublished:"Innlegg publisert",entryUnpublished:"Innlegg avpublisert",onFailToPublishEntry:"Kunne ikke publisere: %{details}",onFailToUnpublishEntry:"Kunne ikke avpublisere: %{details}",entryUpdated:"Innleggsstatus oppdatert",onDeleteUnpublishedChanges:"Avpubliserte endringer slettet",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Laster innlegg for redaksjonell arbeidsflyt",workflowHeading:"Redaksjonell arbeidsflyt",newPost:"Nytt innlegg",description:"%{smart_count} innlegg trenger gjennomgang, og %{readyCount} er klar til publisering. |||| %{smart_count} innlegg trenger gjennomgang, og %{readyCount} er klar til publisering ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} av %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"av %{author}",deleteChanges:"Slett endringer",deleteNewEntry:"Slett nytt innlegg",publishChanges:"Publiser endringer",publishNewEntry:"Publiser nytt innlegg"},workflowList:{onDeleteEntry:"Er du sikker på du vil slette innlegget?",onPublishingNotReadyEntry:'Du kan bare publisere innlegg i "Klar" kolonnen. Trekk kortet til riktig kolonne for å fortsette.',onPublishEntry:"Er du sikker på du vil publisere innlegget?",draftHeader:"Kladd",inReviewHeader:"Gjennomgås",readyHeader:"Klar",currentEntries:"%{smart_count} innlegg |||| %{smart_count} innlegg"}}}},79791:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Inloggen",loggingIn:"Inloggen...",loginWithNetlifyIdentity:"Inloggen met Netlify Identity",loginWithAzure:"Inloggen met Azure",loginWithBitbucket:"Inloggen met Bitbucket",loginWithGitHub:"Inloggen met GitHub",loginWithGitLab:"Inloggen met GitLab",loginWithGitea:"Inloggen met Gitea",errors:{email:"Voer uw email in.",password:"Voer uw wachtwoord in.",identitySettings:"Netlify Identity instellingen niet gevonden. Wanneer u git-gateway als backend gebruikt moet u de Identity service en Git Gateway activeren in uw Netlify instellingen."}},app:{header:{content:"Inhoud",workflow:"Workflow",media:"Media",quickAdd:"Snel toevoegen"},app:{errorHeader:"Fout bij het laden van de CMS configuratie",configErrors:"configuratiefouten",checkConfigYml:"Controleer je config.yml bestand",loadingConfig:"Configuatie laden...",waitingBackend:"Wachten op server..."},notFoundPage:{header:"Niet gevonden"}},collection:{sidebar:{collections:"Inhoudstypen",allCollections:"Alle inhoudstypen",searchAll:"Zoeken",searchIn:"Zoeken in"},collectionTop:{sortBy:"Sorteer op",viewAs:"Bekijk als",newButton:"Voeg %{collectionLabel} toe",ascending:"Oplopend",descending:"Aflopend",searchResults:'Zoekresultaten voor "%{searchTerm}"',searchResultsInCollection:'Zoekresultaten voor "%{searchTerm}" in %{collection}',filterBy:"Filteren op",groupBy:"Groepeer op"},entries:{loadingEntries:"Items laden",cachingEntries:"Items cachen",longerLoading:"Dit kan een paar minuten duren",noEntries:"Geen items"},groups:{other:"Anders",negateLabel:"Geen %{label}"},defaultFields:{author:{label:"Auteur"},updatedOn:{label:"Bijgewerkt op"}}},editor:{editorControl:{field:{optional:"optioneel"}},editorControlPane:{widget:{required:"%{fieldLabel} is vereist.",regexPattern:"%{fieldLabel} komt niet overeen met het patroon: %{pattern}.",processing:"%{fieldLabel} wordt verwerkt.",range:"%{fieldLabel} moet tussen %{minValue} en %{maxValue} liggen.",min:"%{fieldLabel} moet tenminste %{minValue} bevatten.",max:"%{fieldLabel} moet hoogstens %{maxValue} bevatten.",rangeCount:"%{fieldLabel} moet tussen %{minCount} en %{maxCount} item(s) bevatten.",rangeCountExact:"%{fieldLabel} moet exact %{count} item(s) bevatten.",rangeMin:"%{fieldLabel} moet tenminste %{minCount} item(s) bevatten.",rangeMax:"%{fieldLabel} moet hoogstens %{maxCount} item(s) bevatten."},i18n:{writingInLocale:"%{locale} aan het bewerken"}},editor:{onLeavePage:"Weet je zeker dat je deze pagina wilt verlaten?",onUpdatingWithUnsavedChanges:"Er zijn nog niet-opgeslagen wijzigingen. Bewaar ze voordat u de status bijwerkt.",onPublishingNotReady:'Stel de status in op "Voltooid" voordat u publiceert.',onPublishingWithUnsavedChanges:"Er zijn nog niet-opgeslagen wijzigingen. Bewaar deze voordat u publiceert.",onPublishing:"Weet u zeker dat u dit item wil publiceren?",onUnpublishing:"Weet u zeker dat u de publicatie voor dit item ongedaan wilt maken?",onDeleteWithUnsavedChanges:"Weet u zeker dat u dit gepubliceerde item en uw niet-opgeslagen wijzigingen uit de huidige sessie wilt verwijderen?",onDeletePublishedEntry:"Weet u zeker dat u dit gepubliceerde item wilt verwijderen?",onDeleteUnpublishedChangesWithUnsavedChanges:"Alle niet-gepubliceerde wijzigingen in dit item worden verwijderd, evenals uw niet-opgeslagen wijzigingen uit de huidige sessie. Wilt u nog steeds verwijderen?",onDeleteUnpublishedChanges:"Alle niet-gepubliceerde wijzigingen in dit item worden verwijderd. Wilt u nog steeds verwijderen?",loadingEntry:"Item laden...",confirmLoadBackup:"Voor dit item is een lokale back-up hersteld, wilt u deze gebruiken?"},editorInterface:{toggleI18n:"Wissel i18n",togglePreview:"Wissel voorvertoning",toggleScrollSync:"Synchroniseer scrollen"},editorToolbar:{publishing:"Publiceren...",publish:"Publiceer",published:"Gepubliceerd",unpublish:"Publicatie terugtrekken",duplicate:"Dupliceren",unpublishing:"Publicatie ongedaan maken...",publishAndCreateNew:"Publiceer en maak nieuw item aan",publishAndDuplicate:"Publiceer en dupliceer item",deleteUnpublishedChanges:"Verwijder niet-gepubliceerde wijzigingen",deleteUnpublishedEntry:"Niet-gepubliceerd item verwijderen",deletePublishedEntry:"Gepubliceerd item verwijderen",deleteEntry:"Item verwijderen",saving:"Opslaan...",save:"Opslaan",deleting:"Verwijderen...",updating:"Bijwerken...",status:"Status: %{status}",backCollection:" Terug naar %{collectionLabel}",unsavedChanges:"Niet-opgeslagen wijzigingen",changesSaved:"Wijzigingen opgeslagen",draft:"Concept",inReview:"Wordt beoordeeld",ready:"Klaar",publishNow:"Publiceer nu",deployPreviewPendingButtonLabel:"Controleer of voorvertoning geladen is",deployPreviewButtonLabel:"Bekijk voorvertoning",deployButtonLabel:"Bekijk Live"},editorWidgets:{markdown:{bold:"Vet",italic:"Cursief",code:"Code",link:"Link",linkPrompt:"Voer de URL in",headings:"Hoofdtekst",quote:"Quote",bulletedList:"Lijst met opsommingstekens",numberedList:"Genummerde lijst",addComponent:"Voeg component toe",richText:"Rijke tekst",markdown:"Markdown"},image:{choose:"Kies een afbeelding",chooseUrl:"Voeg toe via URL",replaceUrl:"Vervang met URL",promptUrl:"Voer de URL van de afbeelding in",chooseDifferent:"Kies een andere afbeelding",remove:"Verwijder afbeelding"},file:{choose:"Kies een bestand",chooseUrl:"Voeg toe via URL",replaceUrl:"Vervang met URL",promptUrl:"Voer de URL van het bestand in",chooseDifferent:"Kies een ander bestand",remove:"Verwijder bestand"},unknownControl:{noControl:"Geen control voor widget '%{widget}'."},unknownPreview:{noPreview:"Geen voorvertoning voor widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Nu",clear:"Wissen"},list:{add:"Voeg %{item} toe"}}},mediaLibrary:{mediaLibraryCard:{draft:"Concept",copy:"Kopieer",copyUrl:"Kopieer URL",copyPath:"Kopieer pad",copyName:"Kopieer naam",copied:"Gekopieerd"},mediaLibrary:{onDelete:"Weet u zeker dat u de geselecteerde media wilt verwijderen?",fileTooLarge:"Het bestand is te groot.\n De instellingen staan geen bestanden toe groter dan %{size} kB."},mediaLibraryModal:{loading:"Laden...",noResults:"Geen resultaten.",noAssetsFound:"Geen media gevonden.",noImagesFound:"Geen afbeeldingen gevonden.",private:"Privé",images:"Afbeeldingen",mediaAssets:"Media",search:"Zoeken...",uploading:"Uploaden...",upload:"Nieuwe uploaden",download:"Downloaden",deleting:"Verwijderen...",deleteSelected:"Verwijder selectie",chooseSelected:"Gebruik selectie"}},ui:{default:{goBackToSite:"Ga terug naar site"},errorBoundary:{title:"Fout",details:"Er is een fout opgetreden - ",reportIt:"maak er alstublieft een melding van.",detailsHeading:"Details",privacyWarning:"Als u een probleem opent, wordt het vooraf gevuld met het foutbericht en foutopsporingsgegevens. \nControleer of de informatie correct is en verwijder, indien aanwezig, gevoelige gegevens.",recoveredEntry:{heading:"Hersteld document",warning:"Kopieer / plak dit ergens voordat u weggaat!",copyButtonLabel:"Kopieer naar klembord"}},settingsDropdown:{logOut:"Uitloggen"},toast:{onFailToLoadEntries:"Kan item niet laden: %{details}",onFailToLoadDeployPreview:"Kan voorvertoning niet laden: %{details}",onFailToPersist:"Kan item niet opslaan: %{details}",onFailToDelete:"Kan item niet verwijderen: %{details}",onFailToUpdateStatus:"Kan status niet updaten: %{details}",missingRequiredField:"Oeps, sommige verplichte velden zijn niet ingevuld.",entrySaved:"Item opgeslagen",entryPublished:"Item gepubliceerd",entryUnpublished:"Publicatie teruggetrokken",onFailToPublishEntry:"Kan item niet publiceren: %{details}",onFailToUnpublishEntry:"Kan item niet terugtrekken: %{details}",entryUpdated:"Status van item geüpdatet",onDeleteUnpublishedChanges:"Niet-gepubliceerde wijzigingen verwijderd",onFailToAuth:"%{details}",onLoggedOut:"Je bent uitgelogd, back-up alstublieft uw data log daarna in",onBackendDown:"De backend-service ondervindt een storing. Zie% {details} voor meer informatie"}},workflow:{workflow:{loading:"Redactionele Workflow items laden",workflowHeading:"Redactionele Workflow",newPost:"Nieuw bericht",description:"%{smart_count} item wacht op beoordeling, %{readyCount} klaar om live te gaan. |||| %{smart_count} items wachten op beoordeling, %{readyCount} klaar om live te gaan. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} door %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"door %{author}",deleteChanges:"Verwijder wijzigingen",deleteNewEntry:"Verwijder nieuw item",publishChanges:"Publiceer wijzigingen",publishNewEntry:"Publiceer nieuw item"},workflowList:{onDeleteEntry:"Weet u zeker dat u dit item wilt verwijderen?",onPublishingNotReadyEntry:'Alleen items met de status "Gereed" kunnen worden gepubliceerd. Sleep de kaart naar de kolom "Gereed" om publiceren mogelijk te maken.',onPublishEntry:"Weet u zeker dat u dit item wilt publiceren?",draftHeader:"Concepten",inReviewHeader:"Wordt beoordeeld",readyHeader:"Klaar",currentEntries:"%{smart_count} item |||| %{smart_count} items"}}}},37277:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Logg inn",loggingIn:"Loggar inn..",loginWithNetlifyIdentity:"Logg på med Netlify Identity",loginWithBitbucket:"Logg på med Bitbucket",loginWithGitHub:"Logg på med GitHub",loginWithGitLab:"Logg på med GitLab",loginWithGitea:"Logg på med Gitea",errors:{email:"Du må skriva inn e-posten din.",password:"Du må skriva inn passordet ditt.",identitySettings:"Fann ingen innstillingar for Identity. Om du ynskjer å nytte git-gateway må du hugse å skru på Identity service og Git Gateway"}},app:{header:{content:"Innhald",workflow:"Arbeidsflyt",media:"Media",quickAdd:"Hurtiginnlegg"},app:{errorHeader:"Noko gjekk gale under lastinga av CMS konfigurasjonen",configErrors:"Konfigurasjonsfeil",checkConfigYml:"Sjå over config.yml fila.",loadingConfig:"Lastar konfigurasjon...",waitingBackend:"Ventar på backend..."},notFoundPage:{header:"Ikkje funnen"}},collection:{sidebar:{collections:"Samlingar",searchAll:"Søk i alle"},collectionTop:{sortBy:"Sorter etter",viewAs:"Vis som",newButton:"Ny %{collectionLabel}",ascending:"Stigande",descending:"Synkande"},entries:{loadingEntries:"Laster innlegg...",cachingEntries:"Mellomlagrar innlegg...",longerLoading:"Dette kan ta fleire minutt",noEntries:"Ingen innlegg"},defaultFields:{author:{label:"Forfatter"},updatedOn:{label:"Oppdatert"}}},editor:{editorControl:{field:{optional:"valfritt"}},editorControlPane:{widget:{required:"%{fieldLabel} krevast.",regexPattern:"%{fieldLabel} samsvarar ikkje med mønsteret: %{pattern}.",processing:"%{fieldLabel} vart prosessert.",range:"%{fieldLabel} må vera mellom %{minValue} og %{maxValue}.",min:"%{fieldLabel} må minst vera %{minValue}.",max:"%{fieldLabel} må vera %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} må ha mellom %{minCount} og %{maxCount} element.",rangeCountExact:"%{fieldLabel} må ha nøyaktig %{count} element.",rangeMin:"%{fieldLabel} må minst ha %{minCount} element.",rangeMax:"%{fieldLabel} må ha %{maxCount} eller færre element."}},editor:{onLeavePage:"Er du sikker på at du vil navigere bort frå denne sida?",onUpdatingWithUnsavedChanges:"Du må lagra endringane dine før du endrar status",onPublishingNotReady:'Du må endre status til "Klar" før du publiserer',onPublishingWithUnsavedChanges:"Du må laga endringane dine før du kan publisere.",onPublishing:"Er du sikker på at vil publisere?",onUnpublishing:"Er du sikker på at du vil avpublisere innlegget?",onDeleteWithUnsavedChanges:"Er du sikkert på at du vil slette eit publisert innlegg med tilhøyrande ulagra endringar?",onDeletePublishedEntry:"Er du sikker på at du vil slette dette publiserte innlegget?",onDeleteUnpublishedChangesWithUnsavedChanges:"Handlinga slettar endringar som ikkje er publisert eller lagra. Vil du halde fram?",onDeleteUnpublishedChanges:"Alle endringar som ikkje er publisert vil gå tapt. Vil du halde fram?",loadingEntry:"Lastar innlegg...",confirmLoadBackup:"Ynskjer du å gjennopprette tidlegare endringar som ikkje har verta lagra?"},editorToolbar:{publishing:"Publiserer...",publish:"Publiser",published:"Publisert",unpublish:"Avpubliser",duplicate:"Dupliser",unpublishing:"Avpubliserer...",publishAndCreateNew:"Publiser og lag nytt",publishAndDuplicate:"Publiser og dupliser",deleteUnpublishedChanges:"Slett upubliserte endringar",deleteUnpublishedEntry:"Slett upublisert innlegg",deletePublishedEntry:"Slett publisert innlegg",deleteEntry:"Slettar innlegg",saving:"Lagrar...",save:"Lagre",deleting:"Slettar...",updating:"Oppdaterer...",status:"Status: %{status}",backCollection:" Skriv i samlinga %{collectionLabel}",unsavedChanges:"Ulagra endringar",changesSaved:"Endringar lagret",draft:"Kladd",inReview:"Til godkjenning",ready:"Klar",publishNow:"Publiser no",deployPreviewPendingButtonLabel:"Kontroller førehandsvisning",deployPreviewButtonLabel:"Sjå førehandsvisning",deployButtonLabel:"Sjå i produksjon"},editorWidgets:{markdown:{richText:"Rik-tekst",markdown:"Markdown"},image:{choose:"Vel bilete",chooseDifferent:"Vel eit anna bilete",remove:"Fjern bilete"},file:{choose:"Vel fil",chooseDifferent:"Vel ei anna fil",remove:"Fjern fil"},unknownControl:{noControl:"Ingen konfigurasjon for widget '%{widget}'."},unknownPreview:{noPreview:"Ingen førehandsvisning tilgjengeleg for '%{widget}'."},headingOptions:{headingOne:"Overskrift 1",headingTwo:"Overskrift 2",headingThree:"Overskrift 3",headingFour:"Overskrift 4",headingFive:"Overskrift 5",headingSix:"Overskrift 6"},datetime:{now:"No",clear:"Nullstill"}}},mediaLibrary:{mediaLibraryCard:{draft:"Kladd"},mediaLibrary:{onDelete:"Er du sikker på at du vil slette markert element?",fileTooLarge:"Fila er for stor.\nMaksimal konfiguert filstorleik er %{size} kB."},mediaLibraryModal:{loading:"Lastar...",noResults:"Ingen resultat.",noAssetsFound:"Ingen elementer funne.",noImagesFound:"Ingen bilete funne.",private:"Privat ",images:"Bileter",mediaAssets:"Mediebibliotek",search:"Søk...",uploading:"Lastar opp...",upload:"Last opp",download:"Last ned",deleting:"Slettar...",deleteSelected:"Slett markert",chooseSelected:"Vel markert"}},ui:{default:{goBackToSite:"Attende til sida"},errorBoundary:{title:"Feil",details:"Ein feil har oppstått. Det er fint om du ",reportIt:"opnar eit issue på GitHub.",detailsHeading:"Detaljer",privacyWarning:"Når du opnar eit issue vart feil og feilsøkingsdata automatisk fylt ut. Hugs å sjå over at alt ser greitt ut, og ikkje inneheld sensitive data.",recoveredEntry:{heading:"Gjenopprettet dokument",warning:"Det kan vere lurt å ta kopi av innhaldet før du navigerer bort frå denne sida!",copyButtonLabel:"Kopier til utklippstavle"}},settingsDropdown:{logOut:"Logg ut"},toast:{onFailToLoadEntries:"Kunne ikkje laste innlegg: %{details}",onFailToLoadDeployPreview:"Kunne ikkje laste førehandsvisning: %{details}",onFailToPersist:"Kunne ikkje lagre: %{details}",onFailToDelete:"Kunne ikkje slette: %{details}",onFailToUpdateStatus:"Kunne ikkje laste opp: %{details}",missingRequiredField:"Oisann, gløymte du noko? Alle påkrevde felt må fyllast ut før du kan halde fram",entrySaved:"Innlegg lagra",entryPublished:"Innlegg publisert",entryUnpublished:"Innlegg avpublisert",onFailToPublishEntry:"Kunne ikkje publisere: %{details}",onFailToUnpublishEntry:"Kunne ikkje avpublisere: %{details}",entryUpdated:"Innleggsstatus oppdatert",onDeleteUnpublishedChanges:"Avpubliserte endringar sletta",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Lastar innlegg for redaksjonell arbeidsflyt",workflowHeading:"Redaksjonell arbeidsflyt",newPost:"Nytt innlegg",description:"%{smart_count} innlegg treng gjennomgong, og %{readyCount} er klar til publisering. |||| %{smart_count} innlegg treng gjennomgong, og %{readyCount} er klar til publisering ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} av %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"av %{author}",deleteChanges:"Slett endringar",deleteNewEntry:"Slett nytt innlegg",publishChanges:"Publiser endringar",publishNewEntry:"Publiser nytt innlegg"},workflowList:{onDeleteEntry:"Er du sikker på du vil slette innlegget?",onPublishingNotReadyEntry:'Du kan berre publisere innlegg i "Klar" kolonna. Dra kortet til riktig stad for å halde fram.',onPublishEntry:"Er du sikker på du vil publisere innlegget?",draftHeader:"Kladd",inReviewHeader:"Gjennomgås",readyHeader:"Klar",currentEntries:"%{smart_count} innlegg |||| %{smart_count} innlegg"}}}},62423:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Zaloguj się",loggingIn:"Logowanie...",loginWithNetlifyIdentity:"Zaloguj przez konto Netlify",loginWithAzure:"Zaloguj przez konto Azure",loginWithBitbucket:"Zaloguj przez Bitbucket",loginWithGitHub:"Zaloguj przez GitHub",loginWithGitLab:"Zaloguj przez GitLab",loginWithGitea:"Zaloguj przez Gitea",errors:{email:"Wprowadź swój adres email",password:"Wprowadź swoje hasło",identitySettings:"Brak dostępu do ustawień tożsamości. Jeśli używasza backendu git-gateway upewnij się, że usługa tożsamośći (Identity service) oraz Git Gateway są włączone."}},app:{header:{content:"Treść",workflow:"Przebieg redakcyjny",media:"Multimedia",quickAdd:"Szybkie dodawanie"},app:{errorHeader:"Błąd ładowania konfiguracji CMS",configErrors:"Błędy konfiguracji",checkConfigYml:"Sprawdź plik config.yml.",loadingConfig:"Ładowanie konfiguracji...",waitingBackend:"Oczekiwanie na backend..."},notFoundPage:{header:"Nie znaleziono"}},collection:{sidebar:{collections:"Kolekcje",allCollections:"Wszystkie kolekcje",searchAll:"Wyszukaj wszystkie",searchIn:"Wyszukaj w"},collectionTop:{sortBy:"Sortuj po",viewAs:"Wyświetl jako",newButton:"Nowy %{collectionLabel}",ascending:"Rosnąco",descending:"Malejąco",searchResults:"Wyszukaj wyniki dla %{searchTerm}",searchResultsInCollection:"Wyszukaj wyniki dla %{searchTerm} w %{collection}",filterBy:"Filtruj po",groupBy:"Grupuj po"},entries:{loadingEntries:"Ładowanie pozycji...",cachingEntries:"Ładowanie pozycji do pamięci podręcznej...",longerLoading:"To może zająć kilka minut",noEntries:"Brak pozycji"},groups:{other:"Inne",negateLabel:"Nie %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Zaktualizowano"}}},editor:{editorControl:{field:{optional:"opcjonalne"}},editorControlPane:{widget:{required:"%{fieldLabel} jest wymagane.",regexPattern:"%{fieldLabel} nie pasuje do formatu: %{pattern}.",processing:"%{fieldLabel} jest przetwarzane.",range:"%{fieldLabel} musi być pomiędzy %{minValue} a %{maxValue}.",min:"%{fieldLabel} musi być co najmniej %{minValue}.",max:"%{fieldLabel} musi być %{maxValue} lub mniej.",rangeCount:"%{fieldLabel} musi mieć od %{minCount} do %{maxCount} elementów",rangeCountExact:"%{fieldLabel} musi mieć %{count} elementów",rangeMin:"%{fieldLabel} musi mieć przynajmniej %{minCount} elementów",rangeMax:"%{fieldLabel} może mieć maksymalnie %{maxCount} elementów",invalidPath:"'%{path}' nie jest poprawna",pathExists:"Ścieżka '%{path}' już istnieje"},i18n:{writingInLocale:"Pisz w języku %{locale}"}},editor:{onLeavePage:"Czy na pewno chcesz opuścić tę stronę?",onUpdatingWithUnsavedChanges:"Masz niezapisane zmiany, proszę zapisz je przed aktualizacją statusu.",onPublishingNotReady:'Proszę zaktualizować status do "Gotowe" przed publikacją.',onPublishingWithUnsavedChanges:"Masz niezapisane zmiany, proszę zapisz je przed publikacją.",onPublishing:"Czy na pewno chcesz opublikować tę pozycję?",onUnpublishing:"Czy na pewno chcesz cofnąć publikację tej pozycji?",onDeleteWithUnsavedChanges:"Czy na pewno chcesz usunąć tę opublikowaną pozycję, a także niezapisane zmiany z bieżącej sesji?",onDeletePublishedEntry:"Czy na pewno chcesz usunąć tę opublikowaną pozycję?",onDeleteUnpublishedChangesWithUnsavedChanges:"Spowoduje to usunięcie wszystkich nieopublikowanych zmian tej pozycji, a także niezapisanych zmian z bieżącej sesji. Czy nadal chcesz usunąć?",onDeleteUnpublishedChanges:"Wszystkie nieopublikowane zmiany tej pozycji zostaną usunięte. Czy nadal chcesz usunąć?",loadingEntry:"Ładowanie pozycji...",confirmLoadBackup:"Odzyskano lokalną kopię zapasową tej pozycji, czy chcesz jej użyć?"},editorInterface:{toggleI18n:"Przełącz i18n",togglePreview:"Przełącz podgląd",toggleScrollSync:"Synchroniczne przesuwanie"},editorToolbar:{publishing:"Publikowanie...",publish:"Opublikuj",published:"Opublikowane",unpublish:"Cofnij publikację",duplicate:"Zduplikuj",unpublishing:"Cofanie publikacji...",publishAndCreateNew:"Opublikuj i dodaj nowy",publishAndDuplicate:"Opublikuj i zduplikuj",deleteUnpublishedChanges:"Usuń nieopublikowane zmiany",deleteUnpublishedEntry:"Usuń nieopublikowaną pozycję",deletePublishedEntry:"Usuń opublikowaną pozycję",deleteEntry:"Usuń pozycję",saving:"Zapisywanie...",save:"Zapisz",statusInfoTooltipDraft:"Dodano jako wersję roboczą. Aby zakończyć i oddać do recenzji zmień status na `Do recenzji`",statusInfoTooltipInReview:"Wpis jest w trakcie recenzji, żadne dodatkowe akcje nie są wymagane. Jeśli chcesz, możesz jeszcze nanieść zmiany.",deleting:"Usuwanie...",updating:"Uaktualnianie...",status:"Status: %{status}",backCollection:" Edycja treści w zbiorze %{collectionLabel}",unsavedChanges:"Niezapisane zmiany",changesSaved:"Zmiany zapisane",draft:"Wersja robocza",inReview:"W recenzji",ready:"Gotowe",publishNow:"Opublikuj teraz",deployPreviewPendingButtonLabel:"Sprawdź, czy istnieje podgląd",deployPreviewButtonLabel:"Zobacz podgląd",deployButtonLabel:"Zobacz na żywo"},editorWidgets:{markdown:{bold:"Pogrubienie",italic:"Kursywa",code:"Kod",link:"Link",linkPrompt:"Dodaj adres URL",headings:"Nagłówki",quote:"Cytat",bulletedList:"Lista punktowana",numberedList:"Lista numerowana",addComponent:"Dodaj komponent",richText:"Tekst sformatowany",markdown:"Markdown"},image:{choose:"Wybierz zdjęcie",chooseUrl:"Dodaj adres URL zdjęcia",replaceUrl:"Zmień adres URL zdjęcia",promptUrl:"Wprować adres URL zdjęcia",chooseDifferent:"Zmień zdjęcie",remove:"Usuń zdjęcie"},file:{choose:"Wybierz plik",chooseUrl:"Dodaj adres URL pliku",replaceUrl:"Zmień adres URL zdjęcia",promptUrl:"Dodaj adres URL pliku",chooseDifferent:"Wybierz inny plik",remove:"Usuń plik"},unknownControl:{noControl:"Brak kontrolki dla widżetu '%{widget}'."},unknownPreview:{noPreview:"Brak podglądu dla widżetu '%{widget}'."},headingOptions:{headingOne:"Nagłówek 1",headingTwo:"Nagłówek 2",headingThree:"Nagłówek 3",headingFour:"Nagłówek 4",headingFive:"Nagłówek 5",headingSix:"Nagłówek 6"},datetime:{now:"Teraz",clear:"Wyczyść"},list:{add:"Dodaj %{item}",addType:"Dodaj nowy %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Wersja robocza",copy:"Kopiuj",copyUrl:"Kopiuj URL",copyPath:"Kopiuj ścieżkę",copyName:"Kopiuj nazwę",copied:"Skopiowano"},mediaLibrary:{onDelete:"Czy na pewno chcesz usunąć zaznaczone multimedia?",fileTooLarge:"Plik jest za duży.\nUstawiony maksymalny rozmiar pliku: %{size} kB."},mediaLibraryModal:{loading:"Ładowanie...",noResults:"Brak wyników.",noAssetsFound:"Nie znaleziono żadnych zasobów.",noImagesFound:"Nie znaleziono żadnych obrazów.",private:"Prywatne ",images:"Obrazy",mediaAssets:"Zasoby multimedialne",search:"Szukaj...",uploading:"Przesyłanie...",upload:"Prześlij nowe",download:"Pobierz",deleting:"Usuwanie...",deleteSelected:"Usuń zaznaczone",chooseSelected:"Wybierz zaznaczone"}},ui:{default:{goBackToSite:"Wróć do strony"},errorBoundary:{title:"Błąd",details:"Wystąpił błąd - proszę ",reportIt:"zgłoś to.",detailsHeading:"Szczegóły",privacyWarning:"Nowe zgłoszenie zostanie wstępnie wypełnione danymi o błędzie.\nZweryfikuj czy dane są poprawne i usuń wrażliwe informacje jeśli takie zostały dodane.",recoveredEntry:{heading:"Odzyskany dokument",warning:"Proszę skopiuj/wklej to gdzieś zanim opuścisz tę stronę!",copyButtonLabel:"Skopiuj do schowka"}},settingsDropdown:{logOut:"Wyloguj się"},toast:{onFailToLoadEntries:"Nie udało się załadować pozycji: %{details}",onFailToLoadDeployPreview:"Nie udało się załadować podglądu: %{details}",onFailToPersist:"Nie udało się zapisać pozycji: %{details}",onFailToDelete:"Nie udało się usunąć pozycji: %{details}",onFailToUpdateStatus:"Nie udało się zaktualizować statusu: %{details}",missingRequiredField:"Ups, przegapiłeś wymagane pole. Proszę uzupełnij przed zapisaniem.",entrySaved:"Pozycja zapisana",entryPublished:"Pozycja opublikowana",entryUnpublished:"Cofnięto publikację pozycji",onFailToPublishEntry:"Nie udało się opublikować: %{details}",onFailToUnpublishEntry:"Nie udało się cofnąć publikacji pozycji: %{details}",entryUpdated:"Zaktualizowano status pozycji",onDeleteUnpublishedChanges:"Nieopublikowane zmiany zostały usunięte",onFailToAuth:"%{details}",onLoggedOut:"Zostałeś wylogowany, utwórz kopię zapasową danych i zaloguj się ponownie.",onBackendDown:"Usługa backendu uległa awarii. Zobacz więcej informacji: %{details}"}},workflow:{workflow:{loading:"Ładowanie pozycji przebiegu redakcyjnego",workflowHeading:"Przebieg redakcyjny",newPost:"Nowa pozycja",description:"%{smart_count} pozycja oczekuje na recenzję, %{readyCount} oczekuje na publikacje. |||| %{smart_count} pozycje oczekują na recenzję, %{readyCount} oczekuje na publikacje. |||| %{smart_count} pozycji oczekuje na recenzje, %{readyCount} oczekuje na publikacje. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} przez %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"przez %{author}",deleteChanges:"Usuń zmiany",deleteNewEntry:"Usuń nową pozycję",publishChanges:"Opublikuj zmiany",publishNewEntry:"Opublikuj nową pozycję"},workflowList:{onDeleteEntry:"Czy na pewno chcesz usunąć tę pozycję?",onPublishingNotReadyEntry:"Tylko pozycje o statusie „Gotowe” mogą być publikowane. Przeciągnij proszę kartę do kolumny „Gotowe do publikacji”, aby umożliwić publikowanie.",onPublishEntry:"Czy na pewno chcesz opublikować tę pozycję?",draftHeader:"Wersje robocze",inReviewHeader:"W recenzji",readyHeader:"Gotowe do publikacji",currentEntries:"%{smart_count} pozycja |||| %{smart_count} pozycje |||| %{smart_count} pozycji"}}}},49968:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Entrar",loggingIn:"Entrando...",loginWithNetlifyIdentity:"Entrar com o Netlify Identity",loginWithAzure:"Entrar com o Azure",loginWithBitbucket:"Entrar com o Bitbucket",loginWithGitHub:"Entrar com o GitHub",loginWithGitLab:"Entrar com o GitLab",loginWithGitea:"Entrar com o Gitea",errors:{email:"Certifique-se de inserir seu e-mail.",password:"Por favor, insira sua senha.",identitySettings:"Não foi possível acessar as configurações de identidade. Ao usar o back-end git-gateway, certifique-se de habilitar o serviço Identity e o Git Gateway."}},app:{header:{content:"Conteúdos",workflow:"Fluxo de Trabalho",media:"Mídia",quickAdd:"Adição rápida"},app:{errorHeader:"Erro ao carregar a configuração do CMS",configErrors:"Erros de configuração",checkConfigYml:"Verifique o arquivo config.yml.",loadingConfig:"Carregando configuração...",waitingBackend:"Aguardando o back-end..."},notFoundPage:{header:"Não Encontrado"}},collection:{sidebar:{collections:"Coleções",allCollections:"Todas as Coleções",searchAll:"Pesquisar em todos",searchIn:"Pesquisar em"},collectionTop:{sortBy:"Ordenar por",viewAs:"Visualizar como",newButton:"Novo(a) %{collectionLabel}",ascending:"Ascendente",descending:"Descendente",searchResults:'Resultados da busca por "%{searchTerm}"',searchResultsInCollection:'Resultados da busca por "%{searchTerm}" em %{collection}',filterBy:"Filtrar por",groupBy:"Agrupar por"},entries:{loadingEntries:"Carregando Entradas",cachingEntries:"Armazenando Entradas em Cache",longerLoading:"Isso pode levar alguns minutos",noEntries:"Nenhuma Entrada"},groups:{other:"Outro",negateLabel:"Não %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Atualizado em"}}},editor:{editorControl:{field:{optional:"opcional"}},editorControlPane:{widget:{required:"%{fieldLabel} é obrigatório.",regexPattern:"%{fieldLabel} não corresponde com o padrão: %{pattern}.",processing:"%{fieldLabel} está processando.",range:"%{fieldLabel} deve estar entre %{minValue} e %{maxValue}.",min:"%{fieldLabel} deve ser, no mínimo, %{minValue}.",max:"%{fieldLabel} deve ser igual ou menor que %{maxValue}.",rangeCount:"%{fieldLabel} deve ser entre %{minCount} e %{maxCount}.",rangeCountExact:"%{fieldLabel} deve ser exatamente %{count}.",rangeMin:"%{fieldLabel} deve ter, pelo menos, %{minCount}.",rangeMax:"%{fieldLabel} deve ter %{maxCount} ou menos.",invalidPath:"'%{path}' não é um caminho válido",pathExists:"O caminho '%{path}' já existe"},i18n:{writingInLocale:"Escrevendo em %{locale}"}},editor:{onLeavePage:"Tem certeza que deseja sair desta página?",onUpdatingWithUnsavedChanges:"Há mudanças não salvas. Por favor, salve-as antes de atualizar o status.",onPublishingNotReady:'Por favor, altere o status para "Pronto" antes de publicar.',onPublishingWithUnsavedChanges:"Há mudanças não salvas. Por favor, salve-as antes de publicar.",onPublishing:"Tem certeza que deseja publicar essa entrada?",onUnpublishing:"Tem certeza que deseja cancelar a publicação dessa entrada?",onDeleteWithUnsavedChanges:"Tem certeza de que deseja excluir esta entrada publicada, bem como as alterações não salvas da sessão atual?",onDeletePublishedEntry:"Tem certeza de que deseja excluir esta entrada publicada?",onDeleteUnpublishedChangesWithUnsavedChanges:"Isso excluirá todas as alterações não publicadas nesta entrada, bem como as alterações não salvas da sessão atual. Você ainda deseja excluir?",onDeleteUnpublishedChanges:"Todas as alterações não publicadas nesta entrada serão excluídas. Você ainda deseja excluir?",loadingEntry:"Carregando entrada...",confirmLoadBackup:"Um backup local foi recuperado para esta entrada. Deseja usá-lo?"},editorInterface:{toggleI18n:"Mudar i18n",togglePreview:"Mudar pré-visualização",toggleScrollSync:"Sincronizar rolagem"},editorToolbar:{publishing:"Publicando...",publish:"Publicar",published:"Publicado",unpublish:"Despublicar",duplicate:"Duplicado",unpublishing:"Despublicando...",publishAndCreateNew:"Publicar e criar novo(a)",publishAndDuplicate:"Publicar e duplicar",deleteUnpublishedChanges:"Excluir alterações não publicadas",deleteUnpublishedEntry:"Excluir entrada não publicada",deletePublishedEntry:"Excluir entrada publicada",deleteEntry:"Excluir entrada",saving:"Salvando...",save:"Salvar",statusInfoTooltipDraft:"Entrada definida como rascunho. Para finalizar e enviá-la a revisão, mude seu estado para 'Em revisão'",statusInfoTooltipInReview:"Entrada está sendo revisada, nenhuma ação extra é requirida. Porém, você ainda pode fazer mudanças adicionais enquanto ela está sendo revisada.",deleting:"Excluindo...",updating:"Atualizando...",status:"Status: %{status}",backCollection:" Escrevendo na coleção %{collectionLabel}",unsavedChanges:"Alterações não salvas",changesSaved:"Alterações salvas",draft:"Rascunho",inReview:"Em revisão",ready:"Pronto",publishNow:"Publicar agora",deployPreviewPendingButtonLabel:"Verificar se há Pré-visualização",deployPreviewButtonLabel:"Ver Pré-visualização",deployButtonLabel:"Ver em Produção"},editorWidgets:{markdown:{bold:"Negrito",italic:"Itálico",code:"Código",link:"Link",linkPrompt:"Insira a URL do link",headings:"Cabeçalho",quote:"Citação",bulletedList:"Lista Pontilhada",numberedList:"Lista Numerada",addComponent:"Adicionar Componente",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Escolha uma imagem",chooseUrl:"Inserir de uma URL",replaceUrl:"Substituir com uma URL",promptUrl:"Insira a URL da imagem",chooseDifferent:"Escolha uma imagem diferente",remove:"Remover imagem"},file:{choose:"Escolha um arquivo",chooseUrl:"Inserir de uma URL",replaceUrl:"Substituir com uma URL",promptUrl:"Insira a URL do arquivo",chooseDifferent:"Escolha um arquivo diferente",remove:"Remover arquivo"},unknownControl:{noControl:"Nenhum controle para o widget '%{widget}'."},unknownPreview:{noPreview:"Nenhuma pré-visualização para o widget '%{widget}'."},headingOptions:{headingOne:"Título nível 1",headingTwo:"Título nível 2",headingThree:"Título nível 3",headingFour:"Título nível 4",headingFive:"Título nível 5",headingSix:"Título nível 6"},datetime:{now:"Agora",clear:"Limpar"},list:{add:"Adicionar %{item}",addType:"Adicionar %{item} item"}}},mediaLibrary:{mediaLibraryCard:{draft:"Rascunho",copy:"Copiar",copyUrl:"Copiar URL",copyPath:"Copiar Caminho",copyName:"Copiar Nome",copied:"Copiado"},mediaLibrary:{onDelete:"Tem certeza de que deseja excluir a mídia selecionada?",fileTooLarge:"Arquivo muito grande.\nConfigurado para não permitir arquivos maiores que %{size} kB."},mediaLibraryModal:{loading:"Carregando...",noResults:"Nenhum resultado.",noAssetsFound:"Nenhum recurso encontrado.",noImagesFound:"Nenhuma imagem encontrada.",private:"Privado ",images:"Imagens",mediaAssets:"Recursos de mídia",search:"Pesquisar...",uploading:"Enviando...",upload:"Enviar novo",download:"Download",deleting:"Excluindo...",deleteSelected:"Excluir selecionado",chooseSelected:"Escolher selecionado"}},ui:{default:{goBackToSite:"Voltar ao site"},errorBoundary:{title:"Erro",details:"Ocorreu um erro - por favor ",reportIt:"relatar.",detailsHeading:"Detalhes",privacyWarning:"Ao abrir uma issue, ela é preenchida com a mensagem de erro e o log de debug.\nPor favor, verifique se a informação está correta e remova dados sensíveis caso existam.",recoveredEntry:{heading:"Documento recuperado",warning:"Copie/cole isso em algum lugar antes de sair!",copyButtonLabel:"Copiar para área de transferência"}},settingsDropdown:{logOut:"Sair"},toast:{onFailToLoadEntries:"Falha ao carregar a entrada: %{details}",onFailToLoadDeployPreview:"Falha ao carregar a pré-visualização: %{details}",onFailToPersist:"Falha ao persistir na entrada: %{details}",onFailToDelete:"Falha ao excluir a entrada: %{details}",onFailToUpdateStatus:"Falha ao atualizar status: %{details}",missingRequiredField:"Ops, você perdeu um campo obrigatório. Por favor, preencha antes de salvar.",entrySaved:"Entrada salva",entryPublished:"Entrada publicada",entryUnpublished:"Entrada despublicada",onFailToPublishEntry:"Falha ao publicar: %{details}",onFailToUnpublishEntry:"Falha ao cancelar a publicação da entrada: %{details}",entryUpdated:"Status da entrada atualizado",onDeleteUnpublishedChanges:"Alterações não publicadas excluídas",onFailToAuth:"%{details}",onLoggedOut:"Você foi desconectado. Por favor, salve as alterações e entre novamente",onBackendDown:"O serviço de back-end está fora do ar. Veja %{details} para mais informações"}},workflow:{workflow:{loading:"Carregando entradas do Fluxo de Trabalho Editorial",workflowHeading:"Fluxo de Trabalho Editorial",newPost:"Nova Publicação",description:"%{smart_count} entrada aguardando revisão, %{readyCount} pronta para publicação. |||| %{smart_count} entradas aguardando revisão, %{readyCount} pronta para publicação.",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} por %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"por %{author}",deleteChanges:"Excluir alterações",deleteNewEntry:"Excluir nova entrada",publishChanges:"Publicar alterações",publishNewEntry:"Publicar nova entrada"},workflowList:{onDeleteEntry:"Tem certeza de que deseja excluir esta entrada?",onPublishingNotReadyEntry:'Somente itens com o status "Pronto" podem ser publicados. Arraste o cartão para a coluna "Pronto" para poder publicar.',onPublishEntry:"Tem certeza de que quer publicar esta entrada?",draftHeader:"Rascunhos",inReviewHeader:"Em Revisão",readyHeader:"Prontos",currentEntries:"%{smart_count} entrada |||| %{smart_count} entradas"}}}},64425:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Autentifică-te",loggingIn:"Te autentificăm...",loginWithNetlifyIdentity:"Autentifică-te cu Netlify Identity",loginWithAzure:"Autentifică-te cu Azure",loginWithBitbucket:"Autentifică-te cu Bitbucket",loginWithGitHub:"Autentifică-te cu GitHub",loginWithGitLab:"Autentifică-te cu GitLab",loginWithGitea:"Autentifică-te cu Gitea",errors:{email:"Asigură-te că ai introdus email-ul.",password:"Te rugăm introdu parola.",identitySettings:"Nu s-a putut accesa serviciul de autentificare. Dacă folosești git-gateway, asigură-te că ai activat serviciul Identity și Git-Gateway."}},app:{header:{content:"Conținut",workflow:"Workflow",media:"Fișiere",quickAdd:"Adaugă"},app:{errorHeader:"A apărut o eroare cu configurarea CMS-ului.",configErrors:"Au apărut erori de configurare.",checkConfigYml:"Verifică fișierul de configurare (config.yml).",loadingConfig:"Se încarcă configurările...",waitingBackend:"Așteptăm după backend..."},notFoundPage:{header:"Pagină inexistentă."}},collection:{sidebar:{collections:"Colecții",allCollections:"Toate colecțiile",searchAll:"Căutare",searchIn:"Caută în"},collectionTop:{sortBy:"Sortează",viewAs:"Vizualizează ca",newButton:"Adaugă %{collectionLabel}",ascending:"Ascendent",descending:"Descendent",searchResults:'Rezultatele căutării pentru "%{searchTerm}"',searchResultsInCollection:'Rezultatele căutării pentru "%{searchTerm}" în %{collection}',filterBy:"Filtrează după",groupBy:"Grupează după"},entries:{loadingEntries:"Se încarcă intrările...",cachingEntries:"Se salvează temporar intrările...",longerLoading:"Ar putea dura câteva minute.",noEntries:"Nu există intrări."},groups:{other:"Altul",negateLabel:"Nu %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Actualizat la"}}},editor:{editorControl:{field:{optional:"opțional"}},editorControlPane:{widget:{required:"%{fieldLabel}” este obligatoriu.",regexPattern:"%{fieldLabel} nu se potrivește după modelul: %{pattern}.",processing:"%{fieldLabel} se procesează.",range:"%{fieldLabel} poate fi între %{minValue} și %{maxValue}.",min:"%{fieldLabel} poate fi mai mare sau egal cu %{minValue}.",max:"%{fieldLabel} poate fi mai mic sau egal cu %{maxValue}.",rangeCount:"%{fieldLabel} poate avea între %{minCount} și %{maxCount} intrări.",rangeCountExact:"%{fieldLabel} trebuie să conțină exact %{count} intrări.",minCount:"%{fieldLabel} trebuie să conțină cel puțin %{minCount} intrări.",maxCount:"%{fieldLabel} trebuie să conțină cel mult %{maxCount} intrări.",invalidPath:"'%{path}' nu este o cale validă.",pathExists:"Calea '%{path}' există deja."},i18n:{writingInLocale:"Scrii în limba %{locale}"}},editor:{onLeavePage:"Ești sigur/ă că dorești să părăsești pagina?",onUpdatingWithUnsavedChanges:"Există modificări nesalvate! Te rugăm salvează înainte de a actualiza statusul.",onPublishingNotReady:"Actualizează statusul la „Gata” înainte de publicare.",onPublishingWithUnsavedChanges:"Există modificări nesalvate, salvează-le înainte de publicare.",onPublishing:"Ești sigur/ă că dorești să publici acest articol?",onUnpublishing:"Ești sigur/ă că dorești să anulezi publicarea acestui articol?",onDeleteWithUnsavedChanges:"Ești sigur/ă că dorești să ștergi această publicare, dar și modificările nesalvate din sesiunea curentă?",onDeletePublishedEntry:"Ești sigur/ă că dorești să ștergi această publicare?",onDeleteUnpublishedChangesWithUnsavedChanges:"Se vor șterge toate modificările nepublicate din aceast articol și modificările nesalvate din sesiunea curentă. Continui cu ștergerea?",onDeleteUnpublishedChanges:"Toate modificările nepublicate din acest articol vor fi șterse. Continui cu ștergerea?",loadingEntry:"Se încarcă...",confirmLoadBackup:"Un backup local a fost recuperat pentru această intrare, dorești să îl folosești?"},editorInterface:{toggleI18n:"Comută limba",togglePreview:"Comută previzualizarea",toggleScrollSync:"Sincronizează scroll-ul"},editorToolbar:{publishing:"Se publică...",publish:"Publicare",published:"Publicat",unpublish:"Anulează publicarea",duplicate:"Duplifică",unpublishing:"Se anulează publicarea...",publishAndCreateNew:"Publicare apoi crează altul",publishAndDuplicate:"Publicare apoi duplifică",deleteUnpublishedChanges:"Șterge modificări nepublicate",deleteUnpublishedEntry:"Șterge intrarea nepublicată",deletePublishedEntry:"Șterge intrarea publicată",deleteEntry:"Șterge intrare",saving:"Se salvează...",save:"Salvează",deleting:"Se șterge...",updating:"Se actualizează...",status:"Status: %{status}",backCollection:" Scrii în colecția „%{collectionLabel}”",unsavedChanges:"Modificări nesalvate",changesSaved:"Modificări salvate",draft:"Ciornă",inReview:"În revizuire",ready:"Gata",publishNow:"Publicare",deployPreviewPendingButtonLabel:"Verifică publicare",deployPreviewButtonLabel:"Previzualizare",deployButtonLabel:"Vezi publicarea"},editorWidgets:{markdown:{bold:"Bold",italic:"Italic",code:"Cod sursă",link:"Link",linkPrompt:"Scrie URL-ul",headings:"Titluri",quote:"Citat",bulletedList:"Listă cu puncte",numberedList:"Listă cu numere",addComponent:"Adaugă componentă",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Alege o imagine",chooseUrl:"Inserează din URL",replaceUrl:"Schimbă cu URL",promptUrl:"Introdu URL-ul imaginii",chooseDifferent:"Alege altă imagine",remove:"Șterge imaginea"},file:{choose:"Alege un fișier",chooseUrl:"Inserează din URL",replaceUrl:"Schimbă cu URL",promptUrl:"Introdu URL-ul fișierului",chooseDifferent:"Alege alt fișier",remove:"Șterge fișier"},unknownControl:{noControl:"Widget-ul „%{widget}” nu are configurări valabile."},unknownPreview:{noPreview:"Nu există previzualizare pentru widget-ul „%{widget}”."},headingOptions:{headingOne:"Titlu 1",headingTwo:"Titlu 2",headingThree:"Titlu 3",headingFour:"Titlu 4",headingFive:"Titlu 5",headingSix:"Titlu 6"},datetime:{now:"Acum",clear:"Șterge"}}},mediaLibrary:{mediaLibraryCard:{draft:"Ciornă",copy:"Copiază",copyUrl:"Copiază URL",copyPath:"Copiază cale",copyName:"Copiaza nume",copied:"Copiat"},mediaLibrary:{onDelete:"Ești sigur/ă că dorești să ștergi fișierul selectat?",fileTooLarge:"Fișier prea mare.\nConfigurarea nu permite fișiere mai mari de %{size} KB."},mediaLibraryModal:{loading:"Se încarcă...",noResults:"Nu sunt rezultate.",noAssetsFound:"Nu s-au găsit fișiere.",noImagesFound:"Nu s-au găsit imagini.",private:"Privat ",images:"Imagini",mediaAssets:"Fișiere media",search:"Caută...",uploading:"Se încarcă...",upload:"Încarcă",download:"Descarcă",deleting:"Se șterge...",deleteSelected:"Șterge fișierele selectate",chooseSelected:"Alege fișierele selectate"}},ui:{default:{goBackToSite:"Înapoi la site"},errorBoundary:{title:"Eroare",details:"A apărut o eroare - te rugăm ",reportIt:"Deschide o problemă pe GitHub.",detailsHeading:"Detalii",privacyWarning:"Problema deschisă va fi precompletată cu mesajul de eroare și datele de depanare.\nTe rugăm verifică datele să fie corecte și șterge orice fel de date personale.",recoveredEntry:{heading:"Document recuperat",warning:"Te rugăm să faci copy/paste la datele acestea undeva înainte de ieșire!",copyButtonLabel:"Copiază în clipboard"}},settingsDropdown:{logOut:"Ieșire din cont"},toast:{onFailToLoadEntries:"A eșuat încărcarea intrării: %{details}",onFailToLoadDeployPreview:"A eșuat încărcarea previzualizării: %{details}",onFailToPersist:"A eșuat persistarea intrării: %{details}",onFailToDelete:"A eșuat ștergerea intrării: %{details}",onFailToUpdateStatus:"A eșuat actualizarea status-ului: %{details}",missingRequiredField:"Oops, ai ratat un câmp obligatoriu. Completează-l pentru a salva.",entrySaved:"Intrare salvată",entryPublished:"Intrare publicată",entryUnpublished:"Publicare anulată",onFailToPublishEntry:"A eșuat publicarea: %{details}",onFailToUnpublishEntry:"A eșuat anularea publicării: %{details}",entryUpdated:"S-a actualizat status-ul intrării",onDeleteUnpublishedChanges:"Modificări nepublicate șterse",onFailToAuth:"%{details}",onLoggedOut:"Ai fost delogat, te rugăm salvează orice date și autentifică-te din nou.",onBackendDown:"Există probleme la server. Vezi %{details} pentru mai multe informații."}},workflow:{workflow:{loading:"Se încarcă intrările din Workflow-ul Editorial",workflowHeading:"Workflow Editorial",newPost:"Postare nouă",description:"%{smart_count} pregătite de revizuire, %{readyCount} gata de publicare. |||| %{smart_count} pregătite de revizuire, %{readyCount} gata de publicare. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} de %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"de %{author}",deleteChanges:"Modificări șterse",deleteNewEntry:"Șterge intrarea nouă",publishChanges:"Publicare modificări",publishNewEntry:"Publicare intrare nouă"},workflowList:{onDeleteEntry:"Ești sigur/ă că dorești ștergerea intrării?",onPublishingNotReadyEntry:"Numai intrări cu status-ul „Gata” pot fi publicate. Trage un card în coloana „Gata” pentru a putea publica.",onPublishEntry:"Ești sigur/ă că dorești să faci publicarea?",draftHeader:"Ciorne",inReviewHeader:"În revizuire",readyHeader:"Gata",currentEntries:"%{smart_count} intrări |||| %{smart_count} intrări"}}}},57312:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Войти",loggingIn:"Вхожу...",loginWithNetlifyIdentity:"Войти через Netlify Identity",loginWithAzure:"Войти через Azure",loginWithBitbucket:"Войти через Bitbucket",loginWithGitHub:"Войти через GitHub",loginWithGitLab:"Войти через GitLab",loginWithGitea:"Войти через Gitea",errors:{email:"Введите ваш email.",password:"Введите пароль.",identitySettings:"Нет доступа к настройкам. Если используете git-gateway, убедитесь, что включили Identity service и Git Gateway."}},app:{header:{content:"Записи",workflow:"Рабочая область",media:"Медиафайлы",quickAdd:"Быстрое добавление"},app:{errorHeader:"Ошибка загрузки конфигурации CMS",configErrors:"Ошибки конфигурации",checkConfigYml:"Проверьте свой config.yml файл.",loadingConfig:"Загрузка конфигурации…",waitingBackend:"Ожидание ответа от бэкенда…"},notFoundPage:{header:"Не найден"}},collection:{sidebar:{collections:"Коллекции",allCollections:"Все коллекции",searchAll:"Искать повсюду",searchIn:"Искать в"},collectionTop:{sortBy:"Сортировать по",viewAs:"Вид",newButton:"Создать %{collectionLabel}",ascending:"По возрастанию",descending:"По убывания",searchResults:'Результаты по запросу "%{searchTerm}"',searchResultsInCollection:'Результаты по запросу "%{searchTerm}" в %{collection}',filterBy:"Фильтровать по",groupBy:"Группировать по"},entries:{loadingEntries:"Загрузка записей…",cachingEntries:"Кэширование записей…",longerLoading:"Это может занять несколько минут",noEntries:"Нет записей"},groups:{other:"Другая",negateLabel:"Не %{label}"},defaultFields:{author:{label:"Автор"},updatedOn:{label:"Дате обновления"}}},editor:{editorControl:{field:{optional:"необязательный"}},editorControlPane:{widget:{required:"Необходимо указать значение поля %{fieldLabel}.",regexPattern:"Значение поля %{fieldLabel} не соответствует шаблону: %{pattern}.",processing:"Значение поля %{fieldLabel} обрабатывается…",range:"Значение поля %{fieldLabel} должно быть между %{minValue} и %{maxValue}.",min:"Значение поля %{fieldLabel} должно быть не менее %{minValue}.",max:"Значение поля %{fieldLabel} должно быть %{maxValue} или менее.",rangeCount:"%{fieldLabel} должно содержать от %{minCount} до %{maxCount} элементов.",rangeCountExact:"%{fieldLabel} должно содержать строго %{count} элементов.",rangeMin:"%{fieldLabel} должно содержать не менее %{minCount} элементов.",rangeMax:"%{fieldLabel} должно содержать %{maxCount} или менее элементов.",invalidPath:"Путь '%{path}' содежрит ошибки",pathExists:"Путь '%{path}' уже существует"},i18n:{writingInLocale:"Пишем на %{locale}",copyFromLocale:"Заполнить из другого региона",copyFromLocaleConfirm:"Вы хотите заполнять данные используя %{locale} локализацию?\nВесь существующий контент будет перезаписан."}},editor:{onLeavePage:"Вы уверены, что хотите покинуть эту страницу?",onUpdatingWithUnsavedChanges:"У вас есть несохраненные изменения, сохраните их перед обновлением статуса.",onPublishingNotReady:"Пожалуйста, измените статус на «Готов» перед публикацией.",onPublishingWithUnsavedChanges:"У вас есть несохраненные изменения, сохраните их перед публикацией.",onPublishing:"Вы уверены, что хотите опубликовать эту запись?",onUnpublishing:"Вы уверены, что хотите отменить публикацию этой записи?",onDeleteWithUnsavedChanges:"Вы уверены, что хотите удалить эту опубликованную запись, а также несохраненные изменения из текущего сеанса?",onDeletePublishedEntry:"Вы уверены, что хотите удалить эту опубликованную запись?",onDeleteUnpublishedChangesWithUnsavedChanges:"Это удалит все неопубликованные изменения в этой записи, а также ваши несохраненные изменения из текущего сеанса. Вы все еще хотите удалить?",onDeleteUnpublishedChanges:"Все неопубликованные изменения в этой записи будут удалены. Вы все еще хотите удалить?",loadingEntry:"Загрузка записи…",confirmLoadBackup:"Для этой записи была восстановлена локальная резервная копия, хотите ли вы ее использовать?"},editorInterface:{toggleI18n:"Переключиться на i18n",togglePreview:"Переключиться на предварительный просмотр",toggleScrollSync:"Синхронизация прокрутки"},editorToolbar:{publishing:"Публикация…",publish:"Опубликовать",published:"Опубликовано",unpublish:"Отменить публикацию",duplicate:"Дублировать",unpublishing:"Отмена публикации…",publishAndCreateNew:"Опубликовать и создать новую",publishAndDuplicate:"Опубликовать и дублировать",deleteUnpublishedChanges:"Удалить неопубликованные изменения",deleteUnpublishedEntry:"Удалить неопубликованную запись",deletePublishedEntry:"Удалить опубликованную запись",deleteEntry:"Удалить запись",saving:"Сохранение…",save:"Сохранить",deleting:"Удаление…",updating:"Обновление…",status:"Cтатус: %{status}",backCollection:"Запись в коллекцию %{collectionLabel}",unsavedChanges:"Несохраненные изменения",changesSaved:"Изменения сохранены",draft:"Черновик",inReview:"На рассмотрении",ready:"Одобрен",publishNow:"Опубликовать сейчас",deployPreviewPendingButtonLabel:"Проверить предварительный просмотр",deployPreviewButtonLabel:"Предварительный просмотр",deployButtonLabel:"Просмотр",statusInfoTooltipDraft:"Статус записи установлен на черновик. Чтобы доработать и отправить его на рассмотрение, установите статус «На рассмотрении».",statusInfoTooltipInReview:"Запись находится на рассмотрении, дальнейших действий не требуется. Тем не менее, вы все еще можете внести дополнительные изменения, пока она находится на рассмотрении."},editorWidgets:{markdown:{bold:"Полужиный",italic:"Курсив",code:"Код",link:"Ссылка",linkPrompt:"Укажите URL ссылки",headings:"Заголовки",quote:"Цитата",bulletedList:"Маркированный список",numberedList:"Нумерованный список",addComponent:"Добавить компонент",richText:"Форматированный текст",markdown:"Markdown"},image:{choose:"Выберите изображение",chooseMultiple:"Выберите изображения",chooseUrl:"Вставить из URL",replaceUrl:"Заменить на URL",promptUrl:"Введите URL изображения",chooseDifferent:"Выберите другое изображение",addMore:"Добавьте еще изображений",remove:"Удалить изображение",removeAll:"Удалить все изображения"},file:{choose:"Выберите файл",chooseUrl:"Вставить из URL",chooseMultiple:"Выбрать файлы",replaceUrl:"Заменить на URL",promptUrl:"Введите URL файла",chooseDifferent:"Выберите другой файл",addMore:"Добавить больше файлов",remove:"Удалить файл",removeAll:"Удалить все файлы"},unknownControl:{noControl:"Нет контрола для виджета '%{widget}'."},unknownPreview:{noPreview:"Нет превью для виджета '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Сейчас",clear:"Очистить"},list:{add:"Добавить %{item}",addType:"Добавить %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Черновик",copy:"Копировать",copyUrl:"Копировать URL",copyPath:"Копировать путь",copyName:"Копировать имя",copied:"Скопировано"},mediaLibrary:{onDelete:"Вы уверены, что хотите удалить выбранный медиафайл?",fileTooLarge:"Файл слишком большой.\nНастройки не позволяют сохранять файлы более %{size} kB."},mediaLibraryModal:{loading:"Загрузка медифайлов…",noResults:"Нет результатов.",noAssetsFound:"Ресурсы не найдены.",noImagesFound:"Изображения не найдены.",private:"Приватные ",images:"Изображения",mediaAssets:"Медиаресурсы",search:"Идёт поиск…",uploading:"Загрузка…",upload:"Загрузить новый",download:"Скачать",deleting:"Удаление…",deleteSelected:"Удалить помеченные",chooseSelected:"Выбрать помеченные"}},ui:{default:{goBackToSite:"Вернуться на сайт"},errorBoundary:{title:"Ошибка",details:"Произошла ошибка. Пожалуйста, ",reportIt:"сообщите о ней.",detailsHeading:"Подробности",privacyWarning:"При открытии тикет автоматически предзаполняется сообщением об ошибке и отладочной информацией.\nПожалуйста, проверьте, что данные верны и не содержат конфиденциальной информации.",recoveredEntry:{heading:"Восстановленный документ",warning:"Пожалуйста, скопируйте это сообщение куда-нибудь, прежде чем уйти со страницы!",copyButtonLabel:"Скопировать в буфер обмена"}},settingsDropdown:{logOut:"Выйти"},toast:{onFailToLoadEntries:"Не удалось загрузить запись: %{details}",onFailToLoadDeployPreview:"Не удалось загрузить превью: %{details}",onFailToPersist:"Не удалось сохранить запись: %{details}",onFailToDelete:"Не удалось удалить запись: %{details}",onFailToUpdateStatus:"Не удалось обновить статус: %{details}",missingRequiredField:"К сожалению, вы пропустили обязательное поле. Пожалуйста, заполните перед сохранением.",entrySaved:"Запись сохранена",entryPublished:"Запись опубликована",entryUnpublished:"Публикация записи отменена",onFailToPublishEntry:"Не удалось опубликовать запись: %{details}",onFailToUnpublishEntry:"Не удалось отменить публикацию записи: %{details}",entryUpdated:"Статус записи обновлен",onDeleteUnpublishedChanges:"Неопубликованные изменения удалены",onFailToAuth:"%{details}",onLoggedOut:"Вы вышли. Пожалуйста, сохраните все данные и войдите снова",onBackendDown:"Происходят перебои в работе бекенда. См. %{details}"}},workflow:{workflow:{loading:"Загрузка записей в рабочей области",workflowHeading:"Рабочая область",newPost:"Новая запись",description:"Число записей, ожидающих проверки — %{smart_count}, готовых к публикации — %{readyCount}. |||| Число записей, ожидающих проверки — %{smart_count}, готовых к публикации — %{readyCount}. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Удалить изменения",deleteNewEntry:"Удалить новую запись",publishChanges:"Опубликовать изменения",publishNewEntry:"Опубликовать новую запись"},workflowList:{onDeleteEntry:"Вы уверены, что хотите удалить эту запись?",onPublishingNotReadyEntry:"Только элементы со статусом «Готов» могут быть опубликованы. Перетащите карточку в столбец «Одобренные», чтобы разрешить публикацию.",onPublishEntry:"Вы уверены, что хотите опубликовать эту запись?",draftHeader:"Черновики",inReviewHeader:"На рассмотрении",readyHeader:"Одобренные",currentEntries:"%{smart_count} entry |||| %{smart_count} entries"}}}},48821:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Vpiši se",loggingIn:"Prijavljanje...",loginWithNetlifyIdentity:"Prijavi se z Netlify Identity",loginWithAzure:"Prijavi se z Azure računom",loginWithBitbucket:"Prijavi se z BitBucket računom",loginWithGitHub:"Prijavi se z GitHub računom",loginWithGitLab:"Prijavi se z Gitlab računom",errors:{email:"Vnesi svoj pravi e-poštni naslov.",password:"Vnesi svoje geslo.",identitySettings:"Ni mogoče dostopati do nastavitev identitete. Ko uporabljate Git-Gateway zaledje, se prepričajte, da omogočite Identity Service in Git Gateway."}},app:{header:{content:"Vsebina",workflow:"Potek dela",media:"Media",quickAdd:"Hitro dodajanje"},app:{errorHeader:"Napaka pri nalaganju CMS konfiguracije",configErrors:"Konfiguracijske napake",checkConfigYml:"Preverite svojo datoteko config.yml.",loadingConfig:"Nalaganje konfiguracije ...",waitingBackend:"Čakanje na zaledje ..."},notFoundPage:{header:"Ni najdeno"}},collection:{sidebar:{collections:"Zbirke",allCollections:"Vse zbirke",searchAll:"Išči vse",searchIn:"Išči v"},collectionTop:{sortBy:"Razvrsti po",viewAs:"Poglej kot",newButton:"Nov %{collectionLabel}",ascending:"Naraščajoče",descending:"Padajoče",searchResults:'Rezultati iskanja za "%{searchTerm}"',searchResultsInCollection:'Rezultati iskanja za "%{searchTerm}" v %{collection}',filterBy:"Filtriraj po",groupBy:"Grupiraj po"},entries:{loadingEntries:"Nalaganje vnosov ...",cachingEntries:"Predpomnjenje vnosov ...",longerLoading:"To lahko traja nekaj minut",noEntries:"Ni vnosov"},groups:{other:"Drugo",negateLabel:"Ne %{label}"},defaultFields:{author:{label:"Avtor"},updatedOn:{label:"Nazadnje posodobljeno"}}},editor:{editorControl:{field:{optional:"opcijsko"}},editorControlPane:{widget:{required:"%{fieldLabel} je obvezen.",regexPattern:"%{fieldLabel} se ni ujemal z vzorcem: %{pattern}.",processing:"%{fieldLabel} je v obdelavi.",range:"%{fieldLabel} mora biti med %{minValue} in %{maxValue}.",min:"%{fieldLabel} mora biti vsaj %{minValue}.",max:"%{fieldLabel} mora biti %{maxValue} ali manj.",rangeCount:"%{fieldLabel} mora imeti med %{minCount} in %{maxCount} elementov.",rangeCountExact:"%{fieldLabel} mora imeti točno %{count} elemente.",rangeMin:"%{fieldLabel} mora imeti vsaj %{minCount} elementov.",rangeMax:"%{fieldLabel} mora imeti %{maxCount} ali manj elementov.",invalidPath:"'%{path}' ni veljavna pot",pathExists:"Pot '%{path}' že obstaja"},i18n:{writingInLocale:"Pisanje v %{locale}",copyFromLocale:"Izpolnite iz drugega jezika",copyFromLocaleConfirm:"Ali želiš izpolniti podatke iz %{locale} jezika?\nVsa obstoječa vsebina bo prepisana."}},editor:{onLeavePage:"Ste prepričani, da želite zapustiti to stran?",onUpdatingWithUnsavedChanges:"Imaš neshranjene spremembe. Shrani pred posodobitvijo stanja.",onPublishingNotReady:'Pred objavo posodobi status na "pripravljen".',onPublishingWithUnsavedChanges:"Imaš neshranjene spremembe. Shrani pred objavo.",onPublishing:"Ste prepričani, da želite objaviti ta vnos?",onUnpublishing:"Ste prepričani, da želite preklicati objavo tega vnosa?",onDeleteWithUnsavedChanges:"Ste prepričani, da želite izbrisati ta objavljen vnos, pa tudi neshrannjene spremembe iz trenutne seje?",onDeletePublishedEntry:"Ste prepričani, da želite izbrisati ta objavljeni vnos?",onDeleteUnpublishedChangesWithUnsavedChanges:"To bo izbrisalo vse neobjavljene spremembe tega vnosa, pa tudi neshranjene spremembe iz trenutne seje. Ali še vedno želiš izbrisati?",onDeleteUnpublishedChanges:"Vse neobjavljene spremembe tega vnosa bodo izbrisane. Ali še vedno želiš izbrisati?",loadingEntry:"Nalaganje vnosa ...",confirmLoadBackup:"Za ta vnos je bila povrnjena lokalna varnostna kopija, ali bi jo radi uporabili?"},editorInterface:{toggleI18n:"Preklopi i18n",togglePreview:"Preklopi predogled",toggleScrollSync:"Sinhroniziraj drsenje"},editorToolbar:{publishing:"Objavljanje ...",publish:"Objavi",published:"Objavljeno",unpublish:"Prekliči objavo",duplicate:"Podvoji",unpublishing:"Preklicevanje objave ...",publishAndCreateNew:"Objavi in ustvari novo",publishAndDuplicate:"Objavi in podvoji",deleteUnpublishedChanges:"Izbriši neobjavljene spremembe",deleteUnpublishedEntry:"Izbriši neobjavljen vnos",deletePublishedEntry:"Izbriši objavljen vnos",deleteEntry:"Izbriši vnos",saving:"Shranjevanje ...",save:"Shrani",statusInfoTooltipDraft:"Status vnosa je nastavljen na osnutek. Če ga želiš dokončati in predložiti v pregled, nastavi stanje na „v pregledu“",statusInfoTooltipInReview:"Vnos je v pregledu, nadaljnja dejanja niso potrebna. Vendar lahko med pregledovanjem še vedno narediš spremembe.",deleting:"Brisanje ...",updating:"Posodabljanje ...",status:"status: %{status}",backCollection:" Pisanje v %{collectionLabel} zbirko",unsavedChanges:"Neshranjene spremembe",changesSaved:"Spremembe shranjene",draft:"Osnutek",inReview:"V pregledu",ready:"Pripravljen",publishNow:"Objavi zdaj",deployPreviewPendingButtonLabel:"Preveri za predogled",deployPreviewButtonLabel:"Ogled predogleda",deployButtonLabel:"Pogled v živo"},editorWidgets:{markdown:{bold:"Debelo",italic:"Poševno",code:"Koda",link:"Povezava",linkPrompt:"Vnesite URL povezave",headings:"Naslovi",quote:"Citat",bulletedList:"Seznam z oznakami",numberedList:"Oštevilčen seznam",addComponent:"Dodaj komponento",richText:"Bogato besedilo",markdown:"Markdown"},image:{choose:"Izberi sliko",chooseMultiple:"Izberi slike",chooseUrl:"Vstavi iz URL-ja",replaceUrl:"Zamenjaj z URL",promptUrl:"Vnesi URL slike",chooseDifferent:"Izberi drugo sliko",addMore:"Dodaj več slik",remove:"Odstrani sliko",removeAll:"Odstrani vse slike"},file:{choose:"Izberi datoteko",chooseUrl:"Vstavi iz URL-ja",chooseMultiple:"Izberi datoteke",replaceUrl:"Zamenjaj z URL",promptUrl:"Vnesi URL datoteke",chooseDifferent:"Izberi drugo datoteko",addMore:"Dodaj več datotek",remove:"Odstrani datoteko",removeAll:"Odstrani vse datoteke"},unknownControl:{noControl:"Ni kontrole za gradnik '%{widget}'."},unknownPreview:{noPreview:"Nipredogleda za widget '%{widget}'."},headingOptions:{headingOne:"Naslov 1",headingTwo:"Naslov 2",headingThree:"Naslov 3",headingFour:"Naslov 4",headingFive:"Naslov 5",headingSix:"Naslov 6"},datetime:{now:"Zdaj",clear:"Počisti"},list:{add:"Dodaj %{item}",addType:"Dodaj %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Osnutek",copy:"Kopiraj",copyUrl:"Kopiraj URL",copyPath:"Kopiraj pot",copyName:"Kopiraj ime",copied:"Kopirano"},mediaLibrary:{onDelete:"Ste prepričani, da želite izbrisati izbrane medije?",fileTooLarge:"Datoteka je prevelika.\n Ne sme biti večja od %{size} kb."},mediaLibraryModal:{loading:"Nalaganje...",noResults:"Ni rezultatov.",noAssetsFound:"Ni najdenih sredstev.",noImagesFound:"Ni najdenih slik.",private:"Private",images:"Slike",mediaAssets:"Multimedijska sredstva",search:"Iskanje ...",uploading:"Nalaganje ...",upload:"Naloži",download:"Prenesi",deleting:"Brisanje ...",deleteSelected:"Izbriši izbrano",chooseSelected:"Dodaj izbrano"}},ui:{default:{goBackToSite:"Vrni se na spletno mesto"},errorBoundary:{title:"Napaka",details:"Prišlo je do napake.",reportIt:"Odprite težavo na GitHubu.",detailsHeading:"Podrobnosti",privacyWarning:"Odpiranje Github Issue bo javno objavilo vašo napako. Ne vključujte osebnih podatkov v vaši napaki.",recoveredEntry:{heading:"Obnovljen dokument",warning:"Prosimo, tole kopirajte/prilepite nekam, preden navigirate drugam!",copyButtonLabel:"Kopiraj v odložišče"}},settingsDropdown:{logOut:"Odjava"},toast:{onFailToLoadEntries:"Ni naložilo vnosa: %{details}",onFailToLoadDeployPreview:"Ni naložilo predogleda: %{details}",onFailToPersist:"Ni uspelo vztrajati: %{details}",onFailToDelete:"Ni uspelo izbrisati vnosa: %{details}",onFailToUpdateStatus:"Ni uspelo posodobiti stanja: %{details}",missingRequiredField:"Ups, zgrešili ste obvezno polje. Pred shranjevanjem izpolnite.",entrySaved:"Vnos shranjen",entryPublished:"Vnos objavljen",entryUnpublished:"Objava vnosa preklicana",onFailToPublishEntry:"Vnosa ni uspelo objaviti: %{details}",onFailToUnpublishEntry:"Preklicanje objave vnosa ni uspelo: %{details}",entryUpdated:"Status vnosa posodobljen",onDeleteUnpublishedChanges:"Neobjavljene spremembe izbrisane",onFailToAuth:"%{details}",onLoggedOut:"Bili ste odjavljeni, varnostno kopirate vse podatke in se ponovno prijavite",onBackendDown:"Zaledna storitev doživlja izpad. Glejte %{details} za več informacij"}},workflow:{workflow:{loading:"Nalaganje uredniških vnosov",workflowHeading:"Uredniški potek dela",newPost:"Nov vnos",description:"%{smart_count} vnos čaka na pregled, %{readyCount} pripravljen za objavo. |||| %{smart_count} vnosov čaka na pregled, %{readyCount} pripravljenih za objavo.",dateFormat:"DD. MM. YYYY"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"Izbriši spremembe",deleteNewEntry:"Izbriši nov vnos",publishChanges:"Objavi spremembe",publishNewEntry:"Objavi nov vnos"},workflowList:{onDeleteEntry:"Ali ste prepričani, da želite izbrisati ta vnos?",onPublishingNotReadyEntry:'Objavijo se lahko samo elementi s statusom "pripravljen". Prosimo, povlecite kartico v stolpec "pripravljen", da omogočite objavo.',onPublishEntry:"Ste prepričani, da želite objaviti ta vnos?",draftHeader:"Osnutki",inReviewHeader:"V pregledu",readyHeader:"Pripravljen",currentEntries:"%{smart_count} vnos |||| %{smart_count} vnosov"}}}},10869:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Logga in",loggingIn:"Loggar in...",loginWithNetlifyIdentity:"Logga in med Netlify Identity",loginWithAzure:"Logga in med Azure",loginWithBitbucket:"Logga in med Bitbucket",loginWithGitHub:"Logga in med GitHub",loginWithGitLab:"Logga in med GitLab",loginWithGitea:"Logga in med Gitea",errors:{email:"Fyll i din epostadress.",password:"Vänligen skriv ditt lösenord.",identitySettings:"Kan inte hämta inställningar för Identity. Vid användade av git-gateway backend, kontrollera att Identity service och Git Gateway är aktiverade."}},app:{header:{content:"Innehåll",workflow:"Arbetsflöde",media:"Media",quickAdd:"Snabbt tillägg"},app:{errorHeader:"Ett fel uppstod vid hämtning av CMS-konfigurationen",configErrors:"Konfigurationsfel",checkConfigYml:"Kontrollera din config.yml-fil.",loadingConfig:"Hämtar konfiguration...",waitingBackend:"Väntar på backend..."},notFoundPage:{header:"Sidan finns inte"}},collection:{sidebar:{collections:"Samlingar",allCollections:"Alla Samlingar",searchAll:"Sök",searchIn:"Sök i"},collectionTop:{sortBy:"Sortera efter",viewAs:"Visa som",newButton:"Ny %{collectionLabel}",ascending:"Stigande",descending:"Fallande",searchResults:'Sökresultat för "%{searchTerm}"',searchResultsInCollection:'Sökresultat för "%{searchTerm}" i %{collection}',filterBy:"Filtrera efter",groupBy:"Gruppera efter"},entries:{loadingEntries:"Hämtar inlägg...",cachingEntries:"Sparar inlägg i cache...",longerLoading:"Det här kan ta några minuter",noEntries:"Inga inlägg"},groups:{other:"Annat",negateLabel:"Inte %{label}"},defaultFields:{author:{label:"Författare"},updatedOn:{label:"Uppdaterad vid"}}},editor:{editorControl:{field:{optional:"frivillig"}},editorControlPane:{widget:{required:"%{fieldLabel} är obligatoriskt.",regexPattern:"%{fieldLabel} matchar inte mönstret: %{pattern}.",processing:"%{fieldLabel} bearbetas.",range:"%{fieldLabel} måste vara mellan %{minValue} och %{maxValue}.",min:"%{fieldLabel} måste vara åtminstone %{minValue}.",max:"%{fieldLabel} måste vara %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} måste ha mellan %{minCount} och %{maxCount} element.",rangeCountExact:"%{fieldLabel} måste ha exakt %{count} element.",rangeMin:"%{fieldLabel} måste ha åtminstone %{minCount} element.",rangeMax:"%{fieldLabel} måste ha %{maxCount} eller färre element.",invalidPath:"'%{path}' är inte en giltig sökväg",pathExists:"Sökvägen '%{path}' existerar redan"},i18n:{writingInLocale:"Skriver i %{locale}"}},editor:{onLeavePage:"Är du säker på att du vill lämna sidan?",onUpdatingWithUnsavedChanges:"Du har osparade ändringar, vänligen spara dem innan du uppdaterar status.",onPublishingNotReady:'Vänligen uppdatera status till "Redo" innan du publicerar.',onPublishingWithUnsavedChanges:"Du har osparade ändringar, vänligen spara innan du publicerar.",onPublishing:"Är du säker på att du vill publicera det här inlägget?",onUnpublishing:"Är du säker på att du vill avpublicera det här inlägget?",onDeleteWithUnsavedChanges:"Är du säker på att du vill radera det här publicerade inlägget, inklusive dina osparade ändringar från nuvarande session?",onDeletePublishedEntry:"Är du säker på att du vill radera det här publicerade inlägget?",onDeleteUnpublishedChangesWithUnsavedChanges:"Du är på väg att radera alla opublicerade ändringar för det här inlägget, inklusive dina osparade ändringar från nuvarande session. Vill du fortfarande radera?",onDeleteUnpublishedChanges:"Alla opublicerade ändringar kommer raderas. Vill du fortfarande radera?",loadingEntry:"Hämtar inlägg...",confirmLoadBackup:"En lokal kopia hittades för det här inlägget, vill du använda den?"},editorInterface:{toggleI18n:"Slå på/av i18n",togglePreview:"Visa/Dölj förhandsvisning",toggleScrollSync:"Synka scrollning"},editorToolbar:{publishing:"Publicerar...",publish:"Publicera",published:"Publicerad",unpublish:"Avpublicera",duplicate:"Duplicera",unpublishing:"Avpublicerar...",publishAndCreateNew:"Publicera och skapa ny",publishAndDuplicate:"Publicera och duplicera",deleteUnpublishedChanges:"Radera opublicerade ändringar",deleteUnpublishedEntry:"Radera opublicerat inlägg",deletePublishedEntry:"Radera publicerat inlägg",deleteEntry:"Radera inlägg",saving:"Sparar...",save:"Spara",deleting:"Raderar...",updating:"Updaterar...",status:"Status: %{status}",backCollection:" Redigerar i samlingen %{collectionLabel}",unsavedChanges:"Osparade ändringar",changesSaved:"Ändringar sparade",draft:"Utkast",inReview:"Under granskning",ready:"Redo",publishNow:"Publicera nu",deployPreviewPendingButtonLabel:"Kontrollera förhandsvisning",deployPreviewButtonLabel:"Visa förhandsvisning",deployButtonLabel:"Visa Live"},editorWidgets:{markdown:{bold:"Fetstil",italic:"Kursiv",code:"Kod",link:"Länk",linkPrompt:"Ange en URL för länken",headings:"Rubriker",quote:"Citat",bulletedList:"Punktlista",numberedList:"Numrerad lista",addComponent:"Lägg till komponent",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Välj en bild",chooseUrl:"Infoga från URL",replaceUrl:"Ersätt med URL",promptUrl:"Ange en URL för bilden",chooseDifferent:"Välj en annan bild",remove:"Ta bort bild"},file:{choose:"Välj en fil",chooseUrl:"Infoga från URL",replaceUrl:"Ersätt med URL",promptUrl:"Ange en URL för filen",chooseDifferent:"Välj en annan fil",remove:"Ta bort fil"},unknownControl:{noControl:"Inget reglage för widget '%{widget}'."},unknownPreview:{noPreview:"Ingen förhandsvisning för widget '%{widget}'."},headingOptions:{headingOne:"Rubrik 1",headingTwo:"Rubrik 2",headingThree:"Rubrik 3",headingFour:"Rubrik 4",headingFive:"Rubrik 5",headingSix:"Rubrik 6"},datetime:{now:"Nu",clear:"Rensa"}}},mediaLibrary:{mediaLibraryCard:{draft:"Utkast",copy:"Kopiera",copyUrl:"Kopiera URL",copyPath:"Kopiera Sökväg",copyName:"Kopiera Namn",copied:"Kopierad"},mediaLibrary:{onDelete:"Är du säker på att du vill radera valt mediaobjekt?",fileTooLarge:"Maximal filstorlek överskriden.\nKonfigurerad att inte tillåta filer större än %{size} kB."},mediaLibraryModal:{loading:"Hämtar...",noResults:"Inga resultat.",noAssetsFound:"Hittade inga mediaobjekt.",noImagesFound:"Hittade inga bilder.",private:"Privat ",images:"Bilder",mediaAssets:"Mediaobjekt",search:"Sök...",uploading:"Laddar upp...",upload:"Ladda upp",download:"Ladda ner",deleting:"Raderar...",deleteSelected:"Radera markerad",chooseSelected:"Välj markerad"}},ui:{default:{goBackToSite:"Tillbaka till sida"},errorBoundary:{title:"Fel",details:"Ett fel har uppstått - vänligen ",reportIt:"öppna ett ärende på GitHub.",detailsHeading:"Detaljer",privacyWarning:"När ett ärende öppnas bifogas felsökningsdata automatiskt.\nVänligen kontrollera att informationen är korrekt och ta bort känslig data om det skulle finnas sådan.",recoveredEntry:{heading:"Återskapade dokument",warning:"Vänligen kopiera materialet någon annanstans innan du navigerar från sidan!",copyButtonLabel:"Kopiera till urklipp"}},settingsDropdown:{logOut:"Logga ut"},toast:{onFailToLoadEntries:"Kunde inte hämta inlägg: %{details}",onFailToLoadDeployPreview:"Kunde inte ladda förhandsvisning: %{details}",onFailToPersist:"Kunde inte spara inlägg: %{details}",onFailToDelete:"Kunde inte radera inlägg: %{details}",onFailToUpdateStatus:"Kunde inte uppdatera status: %{details}",missingRequiredField:"Oops, du har missat ett obligatoriskt fält. Vänligen fyll i det innan du sparar.",entrySaved:"Inlägg sparat",entryPublished:"Inlägg publicerat",entryUnpublished:"Inlägg avpublicerat",onFailToPublishEntry:"Kunde inte publicera: %{details}",onFailToUnpublishEntry:"Kunde inte avpublicera inlägg: %{details}",entryUpdated:"Inläggsstatus uppdaterad",onDeleteUnpublishedChanges:"Opublicerade ändringar raderade",onFailToAuth:"%{details}",onLoggedOut:"Du har blivit utloggad, vänligen spara en kopia av eventuella ändringar och logga in på nytt",onBackendDown:"Tjänsten är drabbad av en störning. Se %{details} för mer information"}},workflow:{workflow:{loading:"Hämtar inlägg för redaktionellt arbetsflöde",workflowHeading:"Redaktionellt arbetsflöde",newPost:"Nytt inlägg",description:"%{smart_count} inlägg väntar på granskning, %{readyCount} redo att publiceras. |||| %{smart_count} inlägg väntar på granskning, %{readyCount} redo att publiceras. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} av %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"av %{author}",deleteChanges:"Radera ändringar",deleteNewEntry:"Radera nytt inlägg",publishChanges:"Publicera ändringar",publishNewEntry:"Publicera nytt inlägg"},workflowList:{onDeleteEntry:"Är du säker på att du vill radera det här inlägget?",onPublishingNotReadyEntry:'Bara inlägg med statusen "Redo" kan publiceras. Vänligen dra kortet till "Redo"-kolumnen för att möjliggöra publicering',onPublishEntry:"Är du säker på att du vill publicera det här inlägget?",draftHeader:"Utkast",inReviewHeader:"Under granskning",readyHeader:"Redo",currentEntries:"%{smart_count} inlägg |||| %{smart_count} inlägg"}}}},15340:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"เข้าสู่ระบบ",loggingIn:"กำลังเข้าสู่ระบบ...",loginWithNetlifyIdentity:"เข้าสู่ระบบด้วย Netlify Identity",loginWithAzure:"เข้าสู่ระบบด้วย Azure",loginWithBitbucket:"เข้าสู่ระบบด้วย Bitbucket",loginWithGitHub:"เข้าสู่ระบบด้วย GitHub",loginWithGitLab:"เข้าสู่ระบบด้วย GitLab",loginWithGitea:"เข้าสู่ระบบด้วย Gitea",errors:{email:"ตรวจสอบให้แน่ใจว่าได้ใส่อีเมลแล้ว",password:"โปรดใส่รหัสผ่านของคุณ",identitySettings:"ไม่สามารถเข้าถึงการตั้งค่าส่วนตัว เมื่อใช้ git-gateway backend ตรวจสอบให้แน่ใจว่าได้เปิดใช้งานระบบยืนยันตัวตนและ Git Gateway แล้ว"}},app:{header:{content:"เนื้อหา",workflow:"กระแสงาน",media:"ไฟล์สื่อ",quickAdd:"เพิ่มเนื้อหาด่วน"},app:{errorHeader:"เกิดข้อผิดพลาดในการโหลดการตั้งค่า CMS",configErrors:"คอนฟิกมีข้อผิดพลาด",checkConfigYml:"กรุณาตรวจสอบไฟล์ config.yml ของคุณ",loadingConfig:"กำลังโหลดการตั้งค่า...",waitingBackend:"กำลังรอการตอบกลับจาก backend..."},notFoundPage:{header:"ไม่พบหน้านี้"}},collection:{sidebar:{collections:"กลุ่ม",allCollections:"ทุกกลุ่ม",searchAll:"ค้นหาทั้งหมด",searchIn:"ค้าหาใน"},collectionTop:{sortBy:"จัดเรียงตาม",viewAs:"ดูในฐานะ",newButton:"สร้าง %{collectionLabel}",ascending:"น้อยไปมาก",descending:"มากไปน้อย",searchResults:'ผลลัพธ์การค้นหา "%{searchTerm}"',searchResultsInCollection:'ผลลัพธ์การค้นหา "%{searchTerm}" ในกลุ่ม %{collection}',filterBy:"กรองตาม",groupBy:"จัดกลุ่มตาม"},entries:{loadingEntries:"กำลังโหลดเนิ้อหา...",cachingEntries:"กำลังแคชข้อมูลเนื้อหา...",longerLoading:"อาจจะโหลดนานหลายนาที",noEntries:"ไม่มีเนื้อหา"},groups:{other:"อื่น ๆ",negateLabel:"ไม่ใช่ %{label}"},defaultFields:{author:{label:"ผู้เขียน"},updatedOn:{label:"เวลาที่อัปเดต"}}},editor:{editorControl:{field:{optional:"ทางเลือก"}},editorControlPane:{widget:{required:"จำเป็นต้องระบุ %{fieldLabel}",regexPattern:"%{fieldLabel} ไม่ตรงกับรูปแบบ: %{pattern}",processing:"%{fieldLabel} กำลังประมวลผล",range:"%{fieldLabel} ต้องอยู่ระหว่าง %{minValue} และ %{maxValue}",min:"%{fieldLabel} จะต้องมีค่าไม่ต่ำกว่า %{minValue}",max:"%{fieldLabel} จะต้องมีค่าไม่มากกว่า %{maxValue}",rangeCount:"%{fieldLabel} จะต้องอยู่ระหว่าง %{minCount} และ %{maxCount} รายการ",rangeCountExact:"%{fieldLabel} จะต้องมี %{count} รายการ",rangeMin:"%{fieldLabel} จะต้องมีไม่ต่ำกว่า %{minCount} รายการ",rangeMax:"%{fieldLabel} จะต้องมีไม่มากกว่า %{maxCount} รายการ",invalidPath:"'%{path}' ไม่ใช่พาทที่ถูกต้อง",pathExists:"พาท '%{path}' มีอยู่แล้ว"},i18n:{writingInLocale:"กำลังเขียนด้วยภาษา %{locale}",copyFromLocale:"คัดลอกจากภาษาอื่น",copyFromLocaleConfirm:"คุณต้องการคัดลอกข้อมูลจากภาษา %{locale} หรือไม่?\nเนื้อหาทั้งหมดจะถูกแทนที่"}},editor:{onLeavePage:"คุณแน่ใจหรือว่าจะออกจากหน้านี้?",onUpdatingWithUnsavedChanges:"คุณมีการเปลี่ยนแปลงที่ยังไม่ได้บันทึก โปรดบันทึกก่อนอัปเดตสถานะ",onPublishingNotReady:'โปรดอัปเดตสถานะเป็น "พร้อม" ก่อนจะเผยแพร่',onPublishingWithUnsavedChanges:"คุณมีการเปลี่ยนแปลงที่ยังไม่ได้บันทึก โปรดบันทึกก่อนจะเผยแพร่",onPublishing:"คุณแน่ใจหรือว่าจะเผยแพร่เนื้อหานี้?",onUnpublishing:"คุณแน่ใจหรือว่าจะไม่ต้องการเผยแพร่เนื้อหานี้?",onDeleteWithUnsavedChanges:"คุณแน่ใจหรือว่าจะต้องการลบการเผยแพร่เนื้อหานี้ รวมถึงการเปลี่ยนแปลงที่ยังไม่ได้บันทึก?",onDeletePublishedEntry:"คุณแน่ใจหรือว่าจะต้องการลบการเผยแพร่เนื้อหานี้?",onDeleteUnpublishedChangesWithUnsavedChanges:"คุณแน่ใจหรือว่าจะต้องการลบเนื้อหาที่ยังไม่ได้เผยแพร่ทั้งหมดนี้ รวมถึงการเปลี่ยนแปลงที่ยังไม่ได้บันทึก?",onDeleteUnpublishedChanges:"คุณแน่ใจหรือว่าจะต้องการลบเนื้อหาที่ยังไม่ได้เผยแพร่ทั้งหมดนี้?",loadingEntry:"กำลังโหลดเนื้อหา...",confirmLoadBackup:"มีการกู้คืนข้อมูลสำรองสำหรับเนื้อหานี้ คุณต้องการใช้มันหรือไม่?"},editorInterface:{toggleI18n:"เปิด/ปิด i18n",togglePreview:"เปิด/ปิดการแสดงตัวอย่าง",toggleScrollSync:"เปิด/ปิดการเลื่อนพร้อมกัน"},editorToolbar:{publishing:"กำลังเผยแพร่...",publish:"เผยแพร่",published:"เผยแพร่แล้ว",unpublish:"ไม่ได้เผยแพร่",duplicate:"ทำซ้ำ",unpublishing:"กำยังยกเลิกการเผยแพร่...",publishAndCreateNew:"เผยแพร่ และสร้างใหม่",publishAndDuplicate:"เผยแพร่ และทำซ้ำ",deleteUnpublishedChanges:"ลบการเปลี่ยแปลงเนื้อหาที่ยังไม่ได้เผยแพร่",deleteUnpublishedEntry:"ลบเนื้อหาที่ยังไม่ได้เผยแพร่",deletePublishedEntry:"ลบเนื้อหาที่เผยแพร่แล้ว",deleteEntry:"ลบเนื้อหา",saving:"กำลังบันทึก...",save:"บันทึก",statusInfoTooltipDraft:"เนื้อหาอยู่ในสถานะร่าง หากเนื้อหาเสร็จสมบูรณ์แล้วและต้องการส่งเพื่อตรวจสอบ ให้ปรับเปลี่ยนสถานะเป็น ‘อยู่ระหว่างการตรวจสอบ’",statusInfoTooltipInReview:"เนื้อหาอยู่ระหว่างการตรวจสอบ ไม่จำเป็นต้องทำอะไรเพิ่มเติม อย่างไรก็ตาม คุณสามารถแก้ไขเนื้อหาเพิ่มเติมได้ระหว่างการตรวจสอบ",deleting:"กำลังลบ...",updating:"กำลังอัปเดต...",status:"สถานะ: %{status}",backCollection:" เขียนในกลุ่ม %{collectionLabel}",unsavedChanges:"การเปลี่ยนแปลงยังไม่ได้บันทึก",changesSaved:"การเปลี่ยนเปลงถูกบันทึกแล้ว",draft:"ร่าง",inReview:"อยู่ระหว่างการตรวจสอบ",ready:"พร้อม",publishNow:"เผยแพร่ตอนนี้",deployPreviewPendingButtonLabel:"ตรวจสอบตัวอย่าง",deployPreviewButtonLabel:"ดูตัวอย่าง",deployButtonLabel:"ดูตัวอย่างจากหน้าจริง"},editorWidgets:{markdown:{bold:"ตัวหนา",italic:"ตัวเอียง",code:"โคด",link:"ลิงก์",linkPrompt:"ระบุ URL ของลิงก์",headings:"หัวข้อ",quote:"ยกคำพูดมา",bulletedList:"รายการแบบไม่มีหมายเลข",numberedList:"รายการแบบมีหมายเลข",addComponent:"เพิ่มองค์ประกอบ",richText:"ข้อความฟอร์แมต",markdown:"มาร์คดาวน์"},image:{choose:"เลือกรูปภาพ",chooseMultiple:"เลือกรูปภาพหลายรูป",chooseUrl:"แทรกจาก URL",replaceUrl:"แทนที่ด้วย URL",promptUrl:"ระบุ URL ของรูปภาพ",chooseDifferent:"เลือกรูปภาพอื่น",addMore:"เพิ่มรูปภาพ",remove:"เอารูปภาพออก",removeAll:"เอารูปภาพออกทั้งหมด"},file:{choose:"เลือกไฟล์",chooseUrl:"แทรกจาก URL",chooseMultiple:"เลือกหลายไฟล์",replaceUrl:"แทนที่ด้วย URL",promptUrl:"ระบุ URL ของไฟล์",chooseDifferent:"เลือกไฟล์อื่น",addMore:"เพิ่มไฟล์",remove:"เอาไฟล์ออก",removeAll:"เอาไฟล์ออกทั้งหมด"},unknownControl:{noControl:"ไม่มีการควบคุม widget '%{widget}'."},unknownPreview:{noPreview:"ไม่มีตัวอย่างสำหรับ widget '%{widget}'."},headingOptions:{headingOne:"หัวข้อ 1",headingTwo:"หัวข้อ 2",headingThree:"หัวข้อ 3",headingFour:"หัวข้อ 4",headingFive:"หัวข้อ 5",headingSix:"หัวข้อ 6"},datetime:{now:"เวลาตอนนี้",clear:"ล้าง"},list:{add:"เพิ่ม %{item}",addType:"เพิ่ม %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"ร่าง",copy:"คัดลอก",copyUrl:"คัดลอก URL",copyPath:"คัดลอกพาท",copyName:"คัดลอกชื่อ",copied:"คัดลอกแล้ว"},mediaLibrary:{onDelete:"คุณแน่ใจหรือว่าจะลบไฟล์สื่อที่ถูกเลือก?",fileTooLarge:"ไฟล์ใหญ่เกินไป\n ค่าที่ตั้งไว้ไม่ยอมรับไฟล์ที่ใหญ่กว่า %{size} kB."},mediaLibraryModal:{loading:"กำลังโหลด...",noResults:"ไม่มีผลลัพธ์",noAssetsFound:"ไม่พบข้อมูล",noImagesFound:"ไม่พบรูปภาพ",private:"ส่วนตัว ",images:"รูปภาพ",mediaAssets:"ข้อมูลไฟล์สื่อ",search:"ค้นหา...",uploading:"กำลังอัปโหลด...",upload:"อัปโหลด",download:"ดาวน์โหลด",deleting:"กำลังลบ...",deleteSelected:"ลบข้อมูลที่เลือก",chooseSelected:"เลือกข้อมูลที่ถูกเลือก"}},ui:{default:{goBackToSite:"กลับไปยังเว็บไซต์"},errorBoundary:{title:"มีข้อผิดพลาด",details:"มีข้อผิดพลาดเกิดขึ้น",reportIt:"แจ้งข้อผิดพลาดบน GitHub",detailsHeading:"รายละเอียด",privacyWarning:"การแจ้งปัญหาจะเติมข้อมูลล่วงหน้าด้วยข้อความแสดงข้อผิดพลาดและข้อมูลการดีบัก\nโปรดตรวจสอบข้อมูลว่าถูกต้องและลบข้อมูลที่สำคัญหากมีอยู่",recoveredEntry:{heading:"เอกสารถูกกู้คืน",warning:"โปรด คัดลอก/วาง ที่ใดที่หนึ่งก่อนจะทำอย่างอื่น!",copyButtonLabel:"คัดลอกไปที่คลิปบอร์ด"}},settingsDropdown:{logOut:"ออกจากระบบ"},toast:{onFailToLoadEntries:"ล้มเหลวในการโหลดเนื้อหา: %{details}",onFailToLoadDeployPreview:"ล้มเหลวในการโหลดตัวอย่าง: %{details}",onFailToPersist:"ล้มเหลวในการยืนยันเนื้อหา: %{details}",onFailToDelete:"ล้มเหลวในการลบเนื้อหา: %{details}",onFailToUpdateStatus:"ล้มเหลวในการอัปเดตสถานะ: %{details}",missingRequiredField:"คุณไม่ได้ใส่ข้อมูลในช่องที่จำเป็น กรุณาใส่ข้อมูลก่อนบันทึก",entrySaved:"เนื้อหาถูกบันทึก",entryPublished:"เนื้อหาถูกเผยแพร่",entryUnpublished:"เนื้อหาถูกยกเลิกการเผยแพร่",onFailToPublishEntry:"ล้มเหลวในการเผยแพร่เนื้อหา: %{details}",onFailToUnpublishEntry:"ล้มเหลวในการยกเลิกการเผยแพร่เนื้อหา: %{details}",entryUpdated:"สถานะเนื้อหาถูกอัปเดต",onDeleteUnpublishedChanges:"การเปลี่ยนแปลงเนื้อหาไม่ถูกเผยแพร่ได้ถูกลบ",onFailToAuth:"%{details}",onLoggedOut:"คุณได้ออกจากระบบ โปรดสำรองข้อมูลแล้วเข้าสู่ระบบอีกครั้ง",onBackendDown:"บริการแบ็กเอนด์เกิดการขัดข้อง ดู %{details} สำหรับข้อมูลเพิ่มเติม"}},workflow:{workflow:{loading:"กำลังโหลดเนื้อหากระแสงานของบรรณาธิการ",workflowHeading:"กระแสงานของบรรณาธิการ",newPost:"สร้างโพสต์ใหม่",description:"เนื้อหา %{smart_count} รายการอยู่ระหว่างการตรวจสอบ, %{readyCount} รายการพร้อมที่จะเผยแพร่",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} โดย %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"โดย %{author}",deleteChanges:"ลบการเปลี่ยนแปลง",deleteNewEntry:"ลบเนื้อหาใหม่",publishChanges:"เผยแพร่การเปลี่ยนแปลง",publishNewEntry:"เผยแพร่เนื้อหาใหม่"},workflowList:{onDeleteEntry:"คุณแน่ใจหรือว่าจะต้องการลบเนื้อหานี้?",onPublishingNotReadyEntry:'สามารถเผยแพร่เฉพาะรายการที่มีสถานะ "พร้อม" โปรดลากเนื้อหาไปยังช่อง "พร้อม" เพื่อให้เผยแพร่ได้',onPublishEntry:"คุณแน่ใจหรือว่าจะต้องการเผยแพร่เนื้อหานี้?",draftHeader:"ร่าง",inReviewHeader:"อยู่ระหว่างการตรวจสอบ",readyHeader:"พร้อม",currentEntries:"เนื้อหา %{smart_count} รายการ"}}}},95093:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Giriş",loggingIn:"Giriş yapılıyor..",loginWithNetlifyIdentity:"Netlify Identity ile Giriş",loginWithAzure:"Azure ile Giriş",loginWithBitbucket:"Bitbucket ile Giriş",loginWithGitHub:"GitHub ile Giriş",loginWithGitLab:"GitLab ile Giriş",loginWithGitea:"Gitea ile Giriş",errors:{email:"E-postanızı girdiğinizden emin olun.",password:"Lütfen şifrenizi girin.",identitySettings:"Identity ayarlarına erişilemiyor. Git-gateway sunucusunu kullanmak için Identity servisi ve Git Gateway'in etkin olduğundan emin olun."}},app:{header:{content:"İçerikler",workflow:"İş Akışı",media:"Medya",quickAdd:"Hızlı ekle"},app:{errorHeader:"CMS yapılandırması yüklenirken hata oluştu",configErrors:"Yapılandırma Hataları",checkConfigYml:"config.yml dosyanızı kontrol edin.",loadingConfig:"Yapılandırma yükleniyor...",waitingBackend:"Arka uç bekleniyor..."},notFoundPage:{header:"Bulunamadı"}},collection:{sidebar:{collections:"Koleksiyonlar",allCollections:"Bütün Koleksiyonlar",searchAll:"Tümünü ara",searchIn:"İçinde ara"},collectionTop:{sortBy:"Sırala ...",viewAs:"Görüntüle",newButton:"Yeni %{collectionLabel}",ascending:"Artan",descending:"Azalan",searchResults:'"%{searchTerm}" için Arama Sonuçları',searchResultsInCollection:'%{collection} koleksiyonunda, "%{searchTerm}" için Arama Sonuçları',filterBy:"Filtrele",groupBy:"Grupla"},entries:{loadingEntries:"Girdiler yükleniyor...",cachingEntries:"Girdi önbelleği...",longerLoading:"Bu birkaç dakika sürebilir",noEntries:"Hiç Girdi Yok"},groups:{other:"Diğer",negateLabel:"%{label} hariç"},defaultFields:{author:{label:"Yazar"},updatedOn:{label:"Güncellenme Tarihi"}}},editor:{editorControl:{field:{optional:"isteğe bağlı"}},editorControlPane:{widget:{required:"%{fieldLabel} gerekli.",regexPattern:"%{fieldLabel} eşleşmeyen kalıp: %{pattern}.",processing:"%{fieldLabel} işleniyor.",range:"%{fieldLabel} %{minValue} ve %{maxValue} arasında olmalı.",min:"%{fieldLabel} en az %{minValue} olmalı.",max:"%{fieldLabel}, %{maxValue} veya daha az olmalı.",rangeCount:"%{fieldLabel}, %{minCount} ve %{maxCount} öğeleri arasında olmalı.",rangeCountExact:"%{fieldLabel}, %{count} öğe olmalıdır.",rangeMin:"%{fieldLabel}, en az %{minCount} öğe olmalıdır.",rangeMax:"%{fieldLabel}, %{maxCount} veya daha az öğe olmalıdır.",invalidPath:"'%{path}' geçerli bir yol değil",pathExists:"'%{path}' yolu zaten var"},i18n:{writingInLocale:"%{locale} için yazılıyor",copyFromLocale:"Başka bir dilden doldurun",copyFromLocaleConfirm:"Verileri %{locale} dilinden mi doldurmak istiyorsun?\nVarolan bütün verilerin üzerine yazılacak."}},editor:{onLeavePage:"Bu sayfadan ayrılmak istediğinize emin misiniz?",onUpdatingWithUnsavedChanges:"Kaydedilmemiş değişiklikleriniz var, lütfen içeriği güncellemeden önce kaydedin.",onPublishingNotReady:'Lütfen yayınlamadan önce içeriği "Hazır" olarak güncelleyin.',onPublishingWithUnsavedChanges:"Kaydedilmemiş değişiklikleriniz var, lütfen yayınlamadan önce kaydedin.",onPublishing:"Bu girdiyi yayınlamak istediğinize emin misiniz?",onUnpublishing:"Bu girdiyi yayından kaldırmak istediğinizden emin misiniz?",onDeleteWithUnsavedChanges:"Bu oturumda kaydedilmiş değişikliklerin yanı sıra geçerli oturumdaki kaydedilmemiş değişikliklerinizi silmek istediğinize emin misiniz?",onDeletePublishedEntry:"Bu yayınlanmış girdiyi silmek istediğinize emin misiniz?",onDeleteUnpublishedChangesWithUnsavedChanges:"Bu girdide yayınlanmamış tüm değişiklikleri ve geçerli oturumdaki kaydedilmemiş değişikliklerinizi siler. Hala silmek istiyor musun?",onDeleteUnpublishedChanges:"Bu girdide yayınlanmamış tüm değişiklikler silinecek. Hala silmek istiyor musun?",loadingEntry:"Girdiler yükleniyor...",confirmLoadBackup:"Bu girdi için yerel bir yedekleme kurtarıldı, kullanmak ister misiniz?"},editorInterface:{toggleI18n:"i18n değiştir",togglePreview:"Önizlemeyi değiştir",toggleScrollSync:"Kaydırmayı senkronize et"},editorToolbar:{publishing:"Yayınlanıyor...",publish:"Yayınla",published:"Yayınlanan",unpublish:"Yayından Kaldır",duplicate:"Kopyala",unpublishing:"Yayından kaldırılıyor...",publishAndCreateNew:"Yayınla ve yeni oluştur",publishAndDuplicate:"Yayınla ve kopya oluştur",deleteUnpublishedChanges:"Yayımlanmamış değişiklikleri sil",deleteUnpublishedEntry:"Yayımlanmamış girdiyi sil",deletePublishedEntry:"Yayınlanan girdiyi sil",deleteEntry:"Girdiyi sil",saving:"Kaydediliyor...",save:"Kaydet",statusInfoTooltipDraft:"Giriş durumu taslak olarak ayarlandı. Girişi bitirmek ve incelemeye göndermek için giriş durumunu ‘İncelemede’ olarak ayarlayın",statusInfoTooltipInReview:"Giriş gözden geçiriliyor, başka bir işlem yapılmasına gerek yok. Ancak, incelenirken yine de ek değişiklikler yapabilirsiniz.",deleting:"Siliniyor...",updating:"Güncelleniyor...",status:"Durumu: %{status}",backCollection:" %{collectionLabel} koleksiyonunda yazılı",unsavedChanges:"Kaydedilmemiş Değişiklikler",changesSaved:"Değişiklikler kaydedildi",draft:"Taslak",inReview:"İncelemede",ready:"Hazır",publishNow:"Şimdi yayımla",deployPreviewPendingButtonLabel:"Önizlemeyi Denetle",deployPreviewButtonLabel:"Önizlemeyi Görüntüle",deployButtonLabel:"Canlı Görüntüle"},editorWidgets:{markdown:{bold:"Kalın",italic:"İtalik",code:"Kod",link:"Bağlantı",linkPrompt:"Bağlantının URL'sini girin",headings:"Başlıklar",quote:"Alıntı",bulletedList:"Maddeli Liste",numberedList:"Numaralı Liste",addComponent:"Bileşen Ekle",richText:"Zengin Metin",markdown:"Markdown"},image:{choose:"Bir resim seçin",chooseUrl:"URL'den ekle",replaceUrl:"URL ile değiştir",promptUrl:"Resmin URL'sini girin",chooseDifferent:"Farklı bir resim seçin",remove:"Resmi kaldır"},file:{choose:"Bir dosya seçin",chooseUrl:"URL'den ekle",replaceUrl:"URL ile değiştir",promptUrl:"Dosyanın URL'sini girin",chooseDifferent:"Farklı bir dosya seçin",remove:"Dosyayı kaldır"},unknownControl:{noControl:"'%{widget}' bileşeni için kontrol yok."},unknownPreview:{noPreview:"'%{widget}' bileşeni için önizleme yok."},headingOptions:{headingOne:"Başlık 1",headingTwo:"Başlık 2",headingThree:"Başlık 3",headingFour:"Başlık 4",headingFive:"Başlık 5",headingSix:"Başlık 6"},datetime:{now:"Şimdi",clear:"Temizle"},list:{add:"%{item} Ekle",addType:"%{item} Ekle"}}},mediaLibrary:{mediaLibraryCard:{draft:"Taslak",copy:"Kopyala",copyUrl:"URLyi Kopyala",copyPath:"Dosya Yolunu Kopyala",copyName:"Adını Kopyala",copied:"Kopyalandı"},mediaLibrary:{onDelete:"Seçilen medyayı silmek istediğinize emin misiniz?",fileTooLarge:"Dosya çok büyük.\n%{size} kilobaytdan daha büyük dosyaların yüklenmemesi için ayarlanmış."},mediaLibraryModal:{loading:"Yükleniyor...",noResults:"Sonuç yok.",noAssetsFound:"Hiçbir dosya bulunamadı.",noImagesFound:"Resim bulunamadı.",private:"Özel ",images:"Görseller",mediaAssets:"Medya dosyaları",search:"Ara...",uploading:"Yükleniyor...",upload:"Yükle",download:"İndir",deleting:"Siliniyor...",deleteSelected:"Seçileni sil",chooseSelected:"Seçileni kullan"}},ui:{default:{goBackToSite:"Siteye geri git"},errorBoundary:{title:"Hata",details:"Bir hata oluştu - lütfen ",reportIt:"GitHub üzerinde hata raporu aç.",detailsHeading:"Ayrıntılar",privacyWarning:"Bir hata raporu oluşturmak için gereken form otomatik olarak hata mesajı ve hata ayıklama verileriyle doldurulur.\nLütfen bilgilerin doğru olduğunu doğrulayın ve varsa hassas verileri kaldırın.",recoveredEntry:{heading:"Kurtarılan belge",warning:"Lütfen gitmeden önce bunu bir yere kopyalayın / yapıştırın!",copyButtonLabel:"Panoya kopyala"}},settingsDropdown:{logOut:"Çıkış Yap"},toast:{onFailToLoadEntries:"Girdi yüklenemedi: %{details}",onFailToLoadDeployPreview:"Önizleme yüklenemedi: %{details}",onFailToPersist:"Girdi devam ettirilemedi: %{details}",onFailToDelete:"Girdi silinemedi: %{details}",onFailToUpdateStatus:"Durum güncellenemedi: %{details}",missingRequiredField:"Gerekli bir alan eksik. Lütfen kaydetmeden önce tamamlayın.",entrySaved:"Girdi kaydedildi",entryPublished:"Girdi yayınlandı",entryUnpublished:"Girdi yayınlanmamış",onFailToPublishEntry:"Yayınlanamadı: %{details}",onFailToUnpublishEntry:"Girdi yayından kaldırılamadı: %{details}",entryUpdated:"Girdi durumu güncellendi",onDeleteUnpublishedChanges:"Yayımlanmamış değişiklikler silindi",onFailToAuth:"%{details}",onLoggedOut:"Çıkış yaptınız, lütfen tüm verileri yedekleyin ve tekrar giriş yapın",onBackendDown:"Arka uç hizmetinde bir kesinti yaşanıyor. Daha fazla bilgi için %{details} gör"}},workflow:{workflow:{loading:"İş Akışı Girdileri Yükleniyor",workflowHeading:"Editoryal İş Akışı",newPost:"Yeni Mesaj",description:"%{smart_count} girdi incelemeyi bekliyor, %{readyCount} yayına hazır. |||| %{smart_count} girdi incelemeyi bekliyor, %{readyCount} yayınlanmaya hazır. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} tarafından %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author} tarafından",deleteChanges:"Değişiklikleri sil",deleteNewEntry:"Yeni girdiyi sil",publishChanges:"Değişiklikleri yayınla",publishNewEntry:"Yeni girdi yayınla"},workflowList:{onDeleteEntry:"Bu girdiyi silmek istediğinize emin misiniz?",onPublishingNotReadyEntry:'Yalnızca "Hazır" durumu olan öğeler yayınlanabilir. Lütfen yayınlamayı etkinleştirmek için kartı "Hazır" sütununa sürükleyin.',onPublishEntry:"Bu girdiyi yayınlamak istediğinize emin misiniz?",draftHeader:"Taslaklar",inReviewHeader:"İncelemede",readyHeader:"Hazır",currentEntries:"%{smart_count} girdi |||| %{smart_count} girdiler"}}}},57722:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Увійти",loggingIn:"Вхід...",loginWithNetlifyIdentity:"Увійти через Netlify Identity",loginWithAzure:"Увійти через Azure",loginWithBitbucket:"Увійти через Bitbucket",loginWithGitHub:"Увійти через GitHub",loginWithGitLab:"Увійти через GitLab",loginWithGitea:"Увійти через Gitea",errors:{email:"Введіть ваш email.",password:"Введіть пароль.",identitySettings:"Немає доступу до налаштувань. Якщо використовуєте git-gateway, переконайтеся, що включили Identity service та Git Gateway."}},app:{header:{content:"Записи",workflow:"Документообіг",media:"Медіафайли",quickAdd:"Швидке додавання"},app:{errorHeader:"Помилка завантаження конфігурації CMS",configErrors:"Помилки конфігурації",checkConfigYml:"Перевірте свій config.yml файл.",loadingConfig:"Завантаження конфігурації...",waitingBackend:"Очікування відповіді від бекенду..."},notFoundPage:{header:"Не знайдено"}},collection:{sidebar:{collections:"Колекції",allCollections:"Всі колекції",searchAll:"Шукати всюди",searchIn:"Шукати в"},collectionTop:{sortBy:"Сортувати за",viewAs:"Вигляд",newButton:"Створити %{collectionLabel}",ascending:"За зростанням",descending:"За спаданням",searchResults:'Результати по запиту "%{searchTerm}"',searchResultsInCollection:'Результати по запиту "%{searchTerm}" в %{collection}',filterBy:"Фільтрувати за",groupBy:"Групувати за"},entries:{loadingEntries:"Завантаження записів...",cachingEntries:"Кешування записів...",longerLoading:"Це може зайняти деякий час",noEntries:"Немає записів"},groups:{other:"Інша",negateLabel:"Не %{label}"},defaultFields:{author:{label:"Автор"},updatedOn:{label:"Оновлено"}}},editor:{editorControl:{field:{optional:"необов’язковий"}},editorControlPane:{widget:{required:"Необхідно вказати значення поля %{fieldLabel}.",regexPattern:"Значення поля %{fieldLabel} не відповідає шаблону: %{pattern}.",processing:"Значення поля %{fieldLabel} обробляється…",range:"Значення поля %{fieldLabel} повинно бути між %{minValue} і %{maxValue}.",min:"Значення поля %{fieldLabel} повинно бути не менше %{minValue}.",max:"Значення поля %{fieldLabel} повинно бути %{maxValue} або менше.",rangeCount:"%{fieldLabel} повинно містити від %{minCount} до %{maxCount} елементів.",rangeCountExact:"%{fieldLabel} повинно містити строго %{count} елементів.",rangeMin:"%{fieldLabel} повинно містити не менше %{minCount} елементів.",rangeMax:"%{fieldLabel} повинно містити %{maxCount} або менше елементів.",invalidPath:"Шлях '%{path}' містить помилки",pathExists:"Шлях '%{path}' вже існує"},i18n:{writingInLocale:"Пишемо на %{locale}"}},editor:{onLeavePage:"Ви впевнені, що хочете залишити цю сторінку?",onUpdatingWithUnsavedChanges:"У вас є незбережені зміни, будь ласка, збережіть їх перед оновленням статусу.",onPublishingNotReady:"Будь ласка, змініть статус на «Готово» перед публікацією.",onPublishingWithUnsavedChanges:"У вас є незбережені зміни, будь ласка, збережіть їх перед публікацією.",onPublishing:"Ви впевнені, що хочете опублікувати цей запис?",onUnpublishing:"Ви впевнені, що хочете скасувати публікацію цієї записи?",onDeleteWithUnsavedChanges:"Ви впевнені, що хочете видалити цю опубліковану запис, а також незбережені зміни з поточного сеансу?",onDeletePublishedEntry:"Ви впевнені, що хочете видалити цю опубліковану запис?",onDeleteUnpublishedChangesWithUnsavedChanges:"Це видалить всі неопубліковані зміни в цій записі, а також ваші незбережені зміни з поточного сеансу. Ви все ще хочете видалити?",onDeleteUnpublishedChanges:"Всі неопубліковані зміни в цій записі будуть видалені. Ви все ще хочете видалити?",loadingEntry:"Завантаження запису ...",confirmLoadBackup:"Для цієї запису була відновлена локальна резервна копія, хочете використовувати її?"},editorToolbar:{publishing:"Публікація...",publish:"Опублікувати",published:"Опубліковано",unpublish:"Скасувати публікацію",duplicate:"Дублювати",unpublishing:"Скасування публікації...",publishAndCreateNew:"Опублікувати і створити нову",publishAndDuplicate:"Опублікувати і дублювати",deleteUnpublishedChanges:"Видалити неопубліковані зміни",deleteUnpublishedEntry:"Видалити неопубліковану запис",deletePublishedEntry:"Видалити опубліковану запис",deleteEntry:"Видалити запис",saving:"Збереження...",save:"Зберегти",deleting:"Видалення...",updating:"Оновлення...",status:"Статус: %{status}",backCollection:"Запис в колекцію %{collectionLabel}",unsavedChanges:"Незбережені зміни",changesSaved:"Зміни збережені",draft:"Чернетка",inReview:"На розгляді",ready:"Готово до публікації",publishNow:"Опублікувати зараз",deployPreviewPendingButtonLabel:"Перевірити попередній перегляд",deployPreviewButtonLabel:"Попередній перегляд",deployButtonLabel:"Перегляд"},editorWidgets:{markdown:{bold:"Напівжирний",italic:"Курсив",code:"Код",link:"Посилання",linkPrompt:"Введіть URL посилання",headings:"Заголовки",quote:"Цитата",bulletedList:"Маркований список",numberedList:"Нумерований список",addComponent:"Додати компонент",richText:"Форматований текст",markdown:"Markdown"},image:{choose:"Обрати зображення",chooseUrl:"Вставити з URL",replaceUrl:"Замінити на URL",promptUrl:"Введіть URL зображення",chooseDifferent:"Обрати інше зображення",remove:"Видалити зображення"},file:{choose:"Обрати файл",chooseUrl:"Вставити з URL",replaceUrl:"Замінити на URL",promptUrl:"Введіть URL файлу",chooseDifferent:"Обрати інший файл",remove:"Видалити файл"},unknownControl:{noControl:"Немає контролу для віджета '%{widget}'."},unknownPreview:{noPreview:"Немає попереднього перегляду для віджета '%{widget}'."},headingOptions:{headingOne:"Заголовок 1",headingTwo:"Заголовок 2",headingThree:"Заголовок 3",headingFour:"Заголовок 4",headingFive:"Заголовок 5",headingSix:"Заголовок 6"},datetime:{now:"Зараз"}}},mediaLibrary:{mediaLibraryCard:{draft:"Чорновик",copy:"Копіювати",copyUrl:"Копіювати URL",copyPath:"Копіювати шлях",copyName:"Копіювати ім’я",copied:"Скопійовано"},mediaLibrary:{onDelete:"Ви впевнені, що хочете видалити вибраний медіафайл?",fileTooLarge:"Файл занадто великий.\nНалаштування не дозволяють зберігати файли більше %{size} kB."},mediaLibraryModal:{loading:"Завантаження медіафайлів…",noResults:"Немає результатів.",noAssetsFound:"Ресурси не знайдені.",noImagesFound:"Зображення не знайдені.",private:"Приватні ",images:"Зображення",mediaAssets:"Медіаресурси",search:"Йде пошук…",uploading:"Завантаження…",upload:"Завантажити новий",download:"Завантажити",deleting:"Видалення…",deleteSelected:"Видалити позначені",chooseSelected:"Вибрати позначені"}},ui:{default:{goBackToSite:"Повернутися на сайт"},errorBoundary:{title:"Помилка",details:"Сталася помилка. Будь ласка, ",reportIt:"повідомте про неї.",detailsHeading:"Деталі",privacyWarning:"При відкритті тікету автоматично заповнюється повідомленням про помилку та відлагоджувальною інформацією.\nБудь ласка, перевірте, що дані є вірними та не містять конфіденційної інформації.",recoveredEntry:{heading:"Відновлений документ",warning:"Будь ласка, скопіюйте це повідомлення кудись, перед тим як залишити сторінку!",copyButtonLabel:"Скопіювати до буферу обміну"}},settingsDropdown:{logOut:"Вийти"},toast:{onFailToLoadEntries:"Не вдалося завантажити запис: %{details}",onFailToLoadDeployPreview:"Не вдалося завантажити попередній перегляд: %{details}",onFailToPersist:"Не вдалося зберегти запис: %{details}",onFailToDelete:"Не вдалося видалити запис: %{details}",onFailToUpdateStatus:"Не вдалося оновити статус: %{details}",missingRequiredField:"На жаль, ви пропустили обов'язкове поле. Будь ласка, заповніть перед збереженням.",entrySaved:"Запис збережений",entryPublished:"Запис опублікований",entryUnpublished:"Публікація запису скасована",onFailToPublishEntry:"Не вдалося опублікувати запис: %{details}",onFailToUnpublishEntry:"Не вдалося скасувати публікацію запису: %{details}",entryUpdated:"Статус запису оновлено",onDeleteUnpublishedChanges:"Неопубліковані зміни видалені",onFailToAuth:"%{details}",onLoggedOut:"Ви вийшли. Будь ласка, збережіть усі дані та увійдіть знову",onBackendDown:"Трапилися збої в роботі бекенду. Див. %{details}"}},workflow:{workflow:{loading:"Завантаження записів редакційного документообігу",workflowHeading:"Редакційний документообіг",newPost:"Новий запис",description:"Кількість записів, очікуючих перевірки - %{smart_count}, готових до публікації - %{readyCount}. |||| Кількість записів, очікуючих перевірки - %{smart_count}, готових до публікації - %{readyCount}.",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Видалити зміни",deleteNewEntry:"Видалити новий запис",publishChanges:"Опублікувати зміни",publishNewEntry:"Опублікувати новий запис"},workflowList:{onDeleteEntry:"Ви впевнені, що хочете видалити цей запис?",onPublishingNotReadyEntry:'Лише елементи зі статусом "Готово" можуть бути опубліковані. Перетягніть картку в стовпчик "Схвалено", щоб дозволити публікацію.',onPublishEntry:"Ви впевнені, що хочете опублікувати цей запис?",draftHeader:"Чернетки",inReviewHeader:"На розгляді",readyHeader:"Схвалено",currentEntries:"%{smart_count} запис |||| %{smart_count} записів"}}}},72872:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Увійти",loggingIn:"Вхід...",loginWithNetlifyIdentity:"Увійти через Netlify Identity",loginWithAzure:"Увійти через Azure",loginWithBitbucket:"Увійти через Bitbucket",loginWithGitHub:"Увійти через GitHub",loginWithGitLab:"Увійти через GitLab",loginWithGitea:"Увійти через Gitea",errors:{email:"Введіть email.",password:"Введіть пароль.",identitySettings:"Немає доступу до налаштувань. Якщо використовуєте git-gateway, переконайтеся, що включили Identity service та Git Gateway."}},app:{header:{content:"Зміст",workflow:"Робочий процес",media:"Медіафайли",quickAdd:"Додати"},app:{errorHeader:"Помилка завантаження конфігурації",configErrors:"Помилка конфігурації",checkConfigYml:"Перевірте config.yml файл.",loadingConfig:"Завантаження конфігурації...",waitingBackend:"Очікування серверу..."},notFoundPage:{header:"Сторінку не знайдено "}},collection:{sidebar:{collections:"Колекції",allCollections:"Всі колекції",searchAll:"Пошук всюди",searchIn:"Шукати в"},collectionTop:{viewAs:"Змінити вигляд",newButton:"Створити %{collectionLabel}",ascending:"За зростанням",descending:"За спаданням",searchResults:'Результати по запиту "%{searchTerm}"',searchResultsInCollection:'Результати по запиту "%{searchTerm}" в %{collection}',sortBy:"Сортувати за",filterBy:"Фільтрувати за",groupBy:"Групувати за"},entries:{loadingEntries:"Завантаження записів...",cachingEntries:"Кешування записів...",longerLoading:"Це може зайняти певний час",noEntries:"Немає записів"}},editor:{editorControl:{field:{optional:"необов’язково"}},editorControlPane:{widget:{required:"Поле %{fieldLabel} є обов'язковим.",regexPattern:"%{fieldLabel} не задовільняє умові: %{pattern}.",processing:"Обробляється %{fieldLabel}...",range:"Значення %{fieldLabel} повинне бути від %{minValue} до %{maxValue}.",min:"Значення %{fieldLabel} має бути від %{minValue}.",max:"Значення %{fieldLabel} має бути %{maxValue} та менше.",rangeCount:"%{fieldLabel} повинно містити від %{minCount} до %{maxCount} елементів.",rangeCountExact:"%{fieldLabel} повинно містити чітко %{count} елементів.",rangeMin:"%{fieldLabel} повинно містити не менше %{minCount} елементів.",rangeMax:"%{fieldLabel} повинно містити %{maxCount} або менше елементів.",invalidPath:"Шлях '%{path}' містить помилки.",pathExists:"Шлях '%{path}' вже існує."},i18n:{writingInLocale:"Мова запису %{locale}",copyFromLocale:"Заповнити з іншої мови",copyFromLocaleConfirm:"Дійсно бажаєте заповнити дані з мови %{locale}?\nУсі наявні дані буде перезаписано."}},editor:{onLeavePage:"Ви дійсно бажаєте залишити сторінку?",onUpdatingWithUnsavedChanges:"Присутні незбережені зміни, будь ласка збережіть перед зміною статусу.",onPublishingNotReady:'Будь ласка, встановіть статус "Готово" перед публікацією.',onPublishingWithUnsavedChanges:"Присутні незбережені зміни, будь ласка збережіть їх перед публікацією.",onPublishing:"Ви дійсно бажаєте опублікувати запис?",onDeleteWithUnsavedChanges:"Ви дійсно бажаєте видалити опублікований запис, як і всі незбережені зміни під час поточної сесії?",onDeletePublishedEntry:"Ви дійсно бажаєте видалити опублікований запис?",onDeleteUnpublishedChangesWithUnsavedChanges:"Видаляться всі неопубліковані зміни до цього запису, а також всі незбережені зміни під час поточної сесії. Бажаєте продовжити?",onDeleteUnpublishedChanges:"Всі незбережені зміни до цього запису буде видалено. Бажаєте продовжити?",loadingEntry:"Завантаження...",confirmLoadBackup:"Відновлено резервну копію, бажаєте її використати?"},editorInterface:{toggleI18n:"Порівняння записів",togglePreview:"Попередній перегляд",toggleScrollSync:"Синхронна прокрутка"},editorToolbar:{publishing:"Публікація...",publish:"Опублікувати",published:"Опубліковано",unpublish:"Скасувати публікацію",duplicate:"Продублювати",unpublishing:"Скасування публікації...",publishAndCreateNew:"Опублікувати та створити нову",publishAndDuplicate:"Опублікувати та продублювати",deleteUnpublishedChanges:"Видалити неопубліковані зміни",deleteUnpublishedEntry:"Видалити неопубліковану сторінку",deletePublishedEntry:"Видалити опубліковану сторінку",deleteEntry:"Видалити",saving:"Збереження...",save:"Зберегти",deleting:"Видалення...",updating:"Оновлення...",status:"Cтан: %{status}",backCollection:"Колекція %{collectionLabel}",unsavedChanges:"Незбережені зміни",changesSaved:"Зміни збережено",draft:"В роботі",inReview:"На розгляді",ready:"Готово",publishNow:"Опублікувати",deployPreviewPendingButtonLabel:"Перевірити оновлення",deployPreviewButtonLabel:"Попередній перегляд",deployButtonLabel:"Переглянути наживо"},editorWidgets:{markdown:{bold:"Напівжирний",italic:"Курсив",code:"Код",link:"Посилання",linkPrompt:"Введіть URL посилання",headings:"Заголовки",quote:"Цитата",bulletedList:"Маркований список",numberedList:"Нумерований список",addComponent:"Додати компонент",richText:"RichText",markdown:"Markdown"},image:{choose:"Вибрати зображення",chooseMultiple:"Вибрати зображення",chooseUrl:"Вставити з URL",replaceUrl:"Замінити на URL",promptUrl:"Введіть URL зображення",chooseDifferent:"Обрати інше зображення",addMore:"Додати більше зображень",remove:"Видалити",removeAll:"Видалити всі"},file:{choose:"Вибрати файл",chooseUrl:"Вставити з URL",chooseMultiple:"Вибрати файли",replaceUrl:"Замінити на URL",promptUrl:"Введіть URL файлу",chooseDifferent:"Виберіть інший файл",addMore:"Додати більше",remove:"Видалити",removeAll:"Видалити всі"},unknownControl:{noControl:"Відсутній модуль для '%{widget}'."},unknownPreview:{noPreview:"Відсутній перегляд для '%{widget}'."},headingOptions:{headingOne:"Заголовок 1",headingTwo:"Заголовок 2",headingThree:"Заголовок 3",headingFour:"Заголовок 4",headingFive:"Заголовок 5",headingSix:"Заголовок 6"},datetime:{now:"Зараз",clear:"Скинути"},list:{add:"Додати %{item}",addType:"Додати %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"В роботі",copy:"Копіювати",copyUrl:"Копіювати URL",copyPath:"Копіювати шлях",copyName:"Копіювати ім’я",copied:"Скопійовано"},mediaLibrary:{onDelete:"Ви дійсно бажаєте видалити обрані матеріали?",fileTooLarge:"Файл занадто великий.\nНалаштування не дозволяють зберігати файли більше %{size} kB."},mediaLibraryModal:{loading:"Завантаження...",noResults:"Результати відсутні.",noAssetsFound:"Матеріали відсутні.",noImagesFound:"Зображення відсутні.",private:"Приватні ",images:"Зображення",mediaAssets:"Медіафайли",search:"Пошук...",uploading:"Завантаження...",upload:"Завантажити",download:"Отримати",deleting:"Видалення...",deleteSelected:"Видалити",chooseSelected:"Обрати виділені"}},ui:{default:{goBackToSite:"Повернутися на сайт"},errorBoundary:{title:"Помилка",details:"Сталася помилка. Будь ласка, ",reportIt:"повідомте про неї.",detailsHeading:"Деталі",privacyWarning:"При відкритті тікету автоматично заповнюється повідомленням про помилку та відлагоджувальною інформацією.\nБудь ласка, перевірте, що дані є вірними та не містять конфіденційної інформації.",recoveredEntry:{heading:"Відновлено документ",warning:"Будь ласка, скопіюйте це повідомлення кудись, перед тим як залишити сторінку!",copyButtonLabel:"Скопіювати в буфер"}},settingsDropdown:{logOut:"Вийти"},toast:{onFailToLoadEntries:"Не вдалося завантажити запис: %{details}",onFailToLoadDeployPreview:"Не вдалося завантажити попередній перегляд: %{details}",onFailToPersist:"Не вдалося зберегти запис: %{details}",onFailToDelete:"Не вдалося видалити запис: %{details}",onFailToUpdateStatus:"Не вдалося оновити статус: %{details}",missingRequiredField:"На жаль, ви пропустили обов'язкове поле. Будь ласка, заповніть перед збереженням.",entrySaved:"Запис збережений",entryPublished:"Запис опублікований",entryUnpublished:"Публікація запису скасована",onFailToPublishEntry:"Не вдалося опублікувати запис: %{details}",onFailToUnpublishEntry:"Не вдалося скасувати публікацію запису: %{details}",entryUpdated:"Статус запису оновлено",onDeleteUnpublishedChanges:"Неопубліковані зміни видалені",onFailToAuth:"%{details}",onLoggedOut:"Ви вийшли. Будь ласка, збережіть усі дані та увійдіть знову",onBackendDown:"Трапився збій у роботі серверу. Див. %{details}"}},workflow:{workflow:{loading:"Завантаження редакційних матеріалів",workflowHeading:"Редакція",newPost:"Новий запис",description:"%{smart_count} запис очікує розгляду, %{readyCount} до публікації. |||| %{smart_count} записи очікують розгляду, %{readyCount} до публікації. |||| %{smart_count} записів очікують розгляду, %{readyCount} до публікації.",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"— %{author}",deleteChanges:"Видалити зміни",deleteNewEntry:"Видалити запис",publishChanges:"Опублікувати зміни",publishNewEntry:"Опублікувати запис"},workflowList:{onDeleteEntry:"Ви дійсно бажаєте видалити запис?",onPublishingNotReadyEntry:'Лише елементи зі статусом "Готово" можуть бути опубліковані. Перетягніть картку в стовпчик "Готово", щоб дозволити публікацію.',onPublishEntry:"Дійсно бажаєте опублікувати запис?",draftHeader:"В роботі",inReviewHeader:"На розгляді",readyHeader:"Готово",currentEntries:"%{smart_count} запис |||| %{smart_count} записи |||| %{smart_count} записів"}}}},3409:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"Đăng nhập",loggingIn:"Đang đăng nhập...",loginWithNetlifyIdentity:"Đăng nhập bằng Netlify Identity",loginWithBitbucket:"Đăng nhập bằng Bitbucket",loginWithGitHub:"Đăng nhập bằng GitHub",loginWithGitLab:"Đăng nhập bằng GitLab",loginWithGitea:"Đăng nhập bằng Gitea",errors:{email:"Hãy nhập email của bạn.",password:"Hãy nhập mật khẩu của bạn.",identitySettings:"Không thể truy cập thiêt lập danh tính. Hãy chắc chắn rằng bạn đã bật dịch vụ Identity và Git Gateway khi sử dụng git-gateway."}},app:{header:{content:"Nội dung",workflow:"Biên tập",media:"Tập tin",quickAdd:"Tạo nhanh"},app:{errorHeader:"Xảy ra lỗi khi tải cấu hình CMS",configErrors:"Lỗi cấu hình",checkConfigYml:"Kiểm tra lại file config.yml của bạn.",loadingConfig:"Đang tải cấu hình...",waitingBackend:"Đang chờ backend..."},notFoundPage:{header:"Không tìm thấy"}},collection:{sidebar:{collections:"Bộ sưu tập",allCollections:"Tất cả bộ sưu tập",searchAll:"Tìm kiếm tất cả",searchIn:"Tìm kiếm trong"},collectionTop:{sortBy:"Sắp xếp theo",viewAs:"View as",newButton:"%{collectionLabel} mới",ascending:"Tăng dần",descending:"Giảm dần",searchResults:'Kết quả tìm kiếm cho "%{searchTerm}"',searchResultsInCollection:'Kết quả tìm kiếm cho "%{searchTerm}" trong %{collection}',filterBy:"Lọc theo"},entries:{loadingEntries:"Đang tải...",cachingEntries:"Đang lưu...",longerLoading:"Sẽ mất vài phút",noEntries:"Không có mục nào"},defaultFields:{author:{label:"Tác giả"},updatedOn:{label:"Ngày cập nhật"}}},editor:{editorControl:{field:{optional:"không bắt buộc"}},editorControlPane:{widget:{required:"%{fieldLabel} bắt buộc nhập.",regexPattern:"%{fieldLabel} không khớp với mẫu: %{pattern}.",processing:"%{fieldLabel} đang xử lý.",range:"%{fieldLabel} phải nằm trong khoảng từ %{minValue} đến %{maxValue}.",min:"%{fieldLabel} phải ít nhất %{minValue}.",max:"%{fieldLabel} tối đa %{maxValue} hoặc ít hơn.",rangeCount:"%{fieldLabel} phải nằm trong khoảng từ %{minCount} đến %{maxCount} mục.",rangeCountExact:"%{fieldLabel} phải có %{count} mục.",rangeMin:"%{fieldLabel} phải có ít nhất %{minCount} mục.",rangeMax:"%{fieldLabel} phải có tối đa %{maxCount} mục hoặc ít hơn.",invalidPath:"Đường dẫn '%{path}' không hợp lệ",pathExists:"Đường dẫn '%{path}' đã tồn tại"}},editor:{onLeavePage:"Bạn có chắc rằng bạn muốn rời khỏi trang này?",onUpdatingWithUnsavedChanges:"Bạn chưa lưu những thay đổi, hãy lưu trước khi thay đổi trạng thái.",onPublishingNotReady:'Hãy thay đổi trạng thái thành "Sẵn sàng" trước khi công bố.',onPublishingWithUnsavedChanges:"Bạn có thay đổi chưa lưu, hãy lưu trước khi công bố.",onPublishing:"Bạn có chắc rằng bạn muốn công bố mục này?",onUnpublishing:"Bạn có chắc rằng bạn muốn ngừng công bố mục này?",onDeleteWithUnsavedChanges:"Bạn có chắc rằng bạn muốn xoá mục đã được công bố này, cũng như là những thay đổi chưa lưu của bạn trong phiên làm việc này?",onDeletePublishedEntry:"Bạn có chắc rằng bạn muốn xoá mục đã được công bố này?",onDeleteUnpublishedChangesWithUnsavedChanges:"Điều này sẽ xoá tất cả những thay đổi chưa được lưu trong mục này, cũng như là những thay đổi chưa được lưu của bạn trong phiên làm việc này. Bạn vẫn muốn xoá chứ?",onDeleteUnpublishedChanges:"Tất cả những thay đổi chưa được lưu trong mục này sẽ bị xoá. Bạn vẫn muốn xoá chứ?",loadingEntry:"Đang tải...",confirmLoadBackup:"Một bản sao lưu trên máy đã được phục hồi cho mục này, bạn có muốn tải lên không?"},editorToolbar:{publishing:"Đang công bố...",publish:"Công bố",published:"Đã công bố",unpublish:"Ngừng công bố",duplicate:"Sao chép",unpublishing:"Đang ngừng công bố...",publishAndCreateNew:"Công bố và tạo mới",publishAndDuplicate:"Công bố và sao chép",deleteUnpublishedChanges:"Xoá thay đổi chưa công bố này",deleteUnpublishedEntry:"Xoá mục chưa được công bố này",deletePublishedEntry:"Xoá mục đã được công bố này",deleteEntry:"Xoá mục này",saving:"Đang lưu...",save:"Lưu",deleting:"Đang xoá...",updating:"Đang cập nhật...",status:"Trạng: %{status}",backCollection:" Đang viết trong bộ sưu tập %{collectionLabel}",unsavedChanges:"Thay đổi chưa được lưu",changesSaved:"Thay đổi đã được lưu",draft:"Bản nháp",inReview:"Đang xét duyệt",ready:"Sẵn sàng",publishNow:"Công bố ngay",deployPreviewPendingButtonLabel:"Kiểm tra Xem trước",deployPreviewButtonLabel:"Xem trước",deployButtonLabel:"Xem bản hoàn chỉnh"},editorWidgets:{markdown:{richText:"Văn bản định dạng",markdown:"Markdown"},image:{choose:"Chọn một hình",chooseDifferent:"Chọn hình khác",remove:"Gỡ bỏ hình"},file:{choose:"Chọn một tập tin",chooseDifferent:"Chọn tập tin khác",remove:"Gỡ bỏ tập tin"},unknownControl:{noControl:"Không tìm thấy control cho widget '%{widget}'."},unknownPreview:{noPreview:"Không tìm thấy preview cho widget '%{widget}'."},headingOptions:{headingOne:"Tiêu đề cấp 1",headingTwo:"Tiêu đề cấp 2",headingThree:"Tiêu đề cấp 3",headingFour:"Tiêu đề cấp 4",headingFive:"Tiêu đề cấp 5",headingSix:"Tiêu đề cấp 6"},datetime:{now:"Ngay lúc này",clear:"Xóa"}}},mediaLibrary:{mediaLibraryCard:{draft:"Bản nháp"},mediaLibrary:{onDelete:"Bạn có chắc rằng bạn muốn xoá tập tin này?",fileTooLarge:"Tập tin quá lớn.\nCấu hình không cho phép những tập tin lớn hơn %{size} kB."},mediaLibraryModal:{loading:"Đang tải...",noResults:"Không có kết quả.",noAssetsFound:"Không tìm thấy tập tin nào.",noImagesFound:"Không tìm thấy hình nào.",private:"Riêng tư ",images:"Hình ảnh",mediaAssets:"Tập tin",search:"Tìm kiếm...",uploading:"Đang tải lên...",upload:"Tải lên",download:"Tải về",deleting:"Đang xoá...",deleteSelected:"Xoá những cái đã chọn",chooseSelected:"Lấy những cái đã chọn"}},ui:{default:{goBackToSite:"Quay về trang web"},errorBoundary:{title:"Lỗi",details:"Đã xảy ra lỗi - xin hãy ",reportIt:"tạo một issue trên GitHub.",detailsHeading:"Chi tiết",privacyWarning:"Tạo một issue với nội dung lỗi và dữ liệu debug được nhập sẵn.\nHãy xác nhận những thông tin này là đúng và gỡ bỏ dữ liệu nhạy cảm nếu cần thiết.",recoveredEntry:{heading:"Tài liệu đã được phục hồi",warning:"Hãy sao chép/dán nội dung này ở đâu đó trước khi chuyển sang trang khác!",copyButtonLabel:"Sao chép vào vùng nhớ"}},settingsDropdown:{logOut:"Đăng xuất"},toast:{onFailToLoadEntries:"Không thể tải mục: %{details}",onFailToLoadDeployPreview:"Không thể tải xem trước: %{details}",onFailToPersist:"Không thể giữ lại mục: %{details}",onFailToDelete:"Không thể xoá mục: %{details}",onFailToUpdateStatus:"Không thể cập nhật trạng thái: %{details}",missingRequiredField:"Bạn còn thiếu vài thông tin bắt buộc. Hãy hoàn thành trước khi lưu.",entrySaved:"Mục đã được lưu",entryPublished:"Mục đã được công bố",entryUnpublished:"Mục đã ngừng công bố",onFailToPublishEntry:"Không thể công bố: %{details}",onFailToUnpublishEntry:"Không thể ngừng công bố mục: %{details}",entryUpdated:"Trạng thái của mục đã được cập nhật",onDeleteUnpublishedChanges:"Những thay đổi chưa được công bố đã được xoá",onFailToAuth:"%{details}",onLoggedOut:"Bạn đã đăng xuất, hãy sao lưu dữ liệu và đăng nhập lại",onBackendDown:"Dịch vụ backend đang gặp trục trặc. Hãy xem {details} để biết thêm thông tin"}},workflow:{workflow:{loading:"Đang tải bài viết",workflowHeading:"Quy trình biên tập",newPost:"Bài mới",description:"%{smart_count} bài đang chờ duyệt, %{readyCount} bài đã sẵn sàng để công bố. |||| %{smart_count} bài đang chờ duyệt, %{readyCount} bài đã sẵn sàng để công bố. ",dateFormat:"D MMMM"},workflowCard:{lastChange:"%{date} bởi %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"bởi %{author}",deleteChanges:"Xoá thay đổi",deleteNewEntry:"Xoá bài mới",publishChanges:"Công bố thay đổi",publishNewEntry:"Công bố bài mới"},workflowList:{onDeleteEntry:"Bạn có chắc rằng bạn muốn xoá bài này?",onPublishingNotReadyEntry:'Chỉ những bài với trạng thái "Sẵn sàng" mới có thể được công bố. Hãy kéo thẻ vào cột "Sẵn sàng" để cho phép công bố.',onPublishEntry:"Bạn có chắc rằng bạn muốn công khai bài này?",draftHeader:"Bản nháp",inReviewHeader:"Đang xét duyệt",readyHeader:"Sẵn sàng",currentEntries:"%{smart_count} bài |||| %{smart_count} bài"}}}},61522:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"登录",loggingIn:"正在登录...",loginWithNetlifyIdentity:"使用 Netlify Identity 登录",loginWithAzure:"使用 Azure 登录",loginWithBitbucket:"使用 Bitbucket 登录",loginWithGitHub:"使用 GitHub 登录",loginWithGitLab:"使用 GitLab 登录",loginWithGitea:"使用 Gitea 登录",errors:{email:"请输入电子邮箱",password:"请输入密码",identitySettings:"无法连接账户认证系统(如果正在使用 git-gateway 作为 backend,请确保已经开启 Netlify Identity 服务以及 Git Gateway)"}},app:{header:{content:"内容",workflow:"工作流",media:"媒体",quickAdd:"快速新建"},app:{errorHeader:"加载 CMS 配置时发生错误",configErrors:"配置错误",checkConfigYml:"请检查 config.yml 文件是否配置正确",loadingConfig:"正在加载配置...",waitingBackend:"等待 backend 数据..."},notFoundPage:{header:"页面不存在"}},collection:{sidebar:{collections:"集合",allCollections:"所有集合",searchAll:"查找所有...",searchIn:"查找"},collectionTop:{sortBy:"排序",viewAs:"查看",newButton:"新建%{collectionLabel}",ascending:"升序",descending:"降序",searchResults:"有关“%{searchTerm}”的搜索结果",searchResultsInCollection:"在%{collection}中有关“%{searchTerm}”的搜索结果",filterBy:"筛选",groupBy:"分组"},entries:{loadingEntries:"正在加载内容...",cachingEntries:"正在缓存内容...",longerLoading:"这可能需要花费几分钟时间",noEntries:"暂无内容"},groups:{other:"其他",negateLabel:"非%{label}"},defaultFields:{author:{label:"作者"},updatedOn:{label:"更新于"}}},editor:{editorControl:{field:{optional:"可选"}},editorControlPane:{widget:{required:"“%{fieldLabel}”是必填项",regexPattern:"“%{fieldLabel}”不满足模式%{pattern}",processing:"“%{fieldLabel}”正在处理中",range:"“%{fieldLabel}”必须位于 %{minValue} 和 %{maxValue} 之间",min:"“%{fieldLabel}”必须至少为 %{minValue}",max:"“%{fieldLabel}”必须小于等于 %{maxValue}",rangeCount:"“%{fieldLabel}”必须包含 %{minCount} 到 %{maxCount} 个项目",rangeCountExact:"“%{fieldLabel}”必须且只能包含 %{count} 个项目",minCount:"“%{fieldLabel}”必须为至少 %{minCount} 个项目",maxCount:"“%{fieldLabel}”必须为小于等于 %{maxCount} 个项目",invalidPath:"“%{path}”为无效路径",pathExists:"路径“%{path}”已经存在"},i18n:{writingInLocale:"正在使用%{locale}撰写",copyFromLocale:"用其他语言进行填充",copyFromLocaleConfirm:"你确定要用“%{locale}”进行填充吗?\n这将会覆盖所有现有的内容。"}},editor:{onLeavePage:"你确定要离开此页面吗?",onUpdatingWithUnsavedChanges:"你有尚未保存的修改,请在更新状态前进行保存",onPublishingNotReady:"请在发布之前将状态更新为“就绪”",onPublishingWithUnsavedChanges:"你有尚未保存的修改,请在发布前进行保存",onPublishing:"你确定要发布此内容吗?",onUnpublishing:"你确定要撤销发布此内容吗?",onDeleteWithUnsavedChanges:"你确定要删除这个已经发布的内容,以及当前尚未保存的修改吗?",onDeletePublishedEntry:"你确定要删除这个已经发布的内容吗?",onDeleteUnpublishedChangesWithUnsavedChanges:"此内容所有未被发布的修改,以及当前尚未保存的修改都将被删除,你确定吗?",onDeleteUnpublishedChanges:"此内容所有未被发布的修改都将被删除,你确定吗?",loadingEntry:"正在加载内容...",confirmLoadBackup:"发现了一个对应此内容的本地备份,你要加载它吗?"},editorInterface:{toggleI18n:"打开/关闭国际化",togglePreview:"打开/关闭预览",toggleScrollSync:"同步滚动"},editorToolbar:{publishing:"正在发布...",publish:"发布",published:"已发布",unpublish:"撤销发布",duplicate:"复制",unpublishing:"正在撤销发布...",publishAndCreateNew:"发布,然后新建内容",publishAndDuplicate:"发布,然后复制内容",deleteUnpublishedChanges:"删除未发布的修改",deleteUnpublishedEntry:"删除未发布的内容",deletePublishedEntry:"删除已发布的内容",deleteEntry:"删除内容",saving:"正在保存...",save:"保存",deleting:"正在删除...",updating:"正在更新...",status:"状态: %{status}",backCollection:"正在集合“%{collectionLabel}”中编写",unsavedChanges:"含未保存的修改",changesSaved:"修改已保存",draft:"草稿",inReview:"审核中",ready:"就绪",publishNow:"立即发布",deployPreviewPendingButtonLabel:"点击以预览",deployPreviewButtonLabel:"查看预览",deployButtonLabel:"查看发布"},editorWidgets:{markdown:{bold:"粗体",italic:"斜体",code:"代码",link:"链接",linkPrompt:"输入链接的 URL",headings:"标题",quote:"引用",bulletedList:"无序列表",numberedList:"有序列表",addComponent:"添加组件",richText:"富文本",markdown:"Markdown"},image:{choose:"选择图片",chooseUrl:"从 URL 插入",replaceUrl:"用 URL 替代",promptUrl:"输入图片的 URL",chooseDifferent:"选择其他图片",remove:"移除图片"},file:{choose:"选择文件",chooseUrl:"从 URL 插入",replaceUrl:"用 URL 替代",promptUrl:"输入文件的 URL",chooseDifferent:"选择其他文件",remove:"移除文件"},unknownControl:{noControl:"'%{widget}'的控件不存在"},unknownPreview:{noPreview:"'%{widget}'无法预览"},headingOptions:{headingOne:"标题 1",headingTwo:"标题 2",headingThree:"标题 3",headingFour:"标题 4",headingFive:"标题 5",headingSix:"标题 6"},datetime:{now:"现在",clear:"清除"},list:{add:"新增%{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"草稿",copy:"复制",copyUrl:"复制 URL",copyPath:"复制路径",copyName:"复制名称",copied:"已复制"},mediaLibrary:{onDelete:"你确定要删除此媒体项目吗?",fileTooLarge:"文件体积过大\n目前的配置中不允许文件体积超过 %{size} kB"},mediaLibraryModal:{loading:"正在加载...",noResults:"暂无结果",noAssetsFound:"未找到资源",noImagesFound:"未找到图片",private:"私有",images:"图片",mediaAssets:"媒体资源",search:"搜索...",uploading:"正在上传...",upload:"上传",download:"下载",deleting:"正在下载...",deleteSelected:"删除已选中项目",chooseSelected:"选用已选中项目"}},ui:{default:{goBackToSite:"返回主页"},errorBoundary:{title:"错误",details:"程序发生了一个错误,请",reportIt:"在 Github 上发布一个 Issue",detailsHeading:"详情",privacyWarning:"发布一个 Issue 会将错误信息和调试数据预置其中\n请确保这些信息是正确的,同时移除那些敏感数据",recoveredEntry:{heading:"已恢复的文档",warning:"请在切换至其他页面之前,将它复制并粘贴到某个地方",copyButtonLabel:"复制到剪贴板"}},settingsDropdown:{logOut:"注销"},toast:{onFailToLoadEntries:"加载内容失败: %{details}",onFailToLoadDeployPreview:"加载预览失败: %{details}",onFailToPersist:"保存内容失败: %{details}",onFailToDelete:"删除内容失败: %{details}",onFailToUpdateStatus:"更新状态失败: %{details}",missingRequiredField:"你漏掉了一个必填项,请在保存之前将它填写好",entrySaved:"内容已保存",entryPublished:"内容已发布",entryUnpublished:"内容已撤销发布",onFailToPublishEntry:"发布失败: %{details}",onFailToUnpublishEntry:"撤销发布失败: %{details}",entryUpdated:"内容状态已更新",onDeleteUnpublishedChanges:"未发布的修改已删除",onFailToAuth:"%{details}",onLoggedOut:"你已注销,请先保存好数据然后再次登录",onBackendDown:"Backend 服务已中断,欲知详情请查看:%{details}"}},workflow:{workflow:{loading:"正在加载编辑工作流项目",workflowHeading:"编辑工作流",newPost:"新建帖子",description:"%{smart_count} 个待审查的内容、%{readyCount} 个已就绪的内容 |||| %{smart_count} 个待检查的内容、%{readyCount} 个已就绪的内容",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} 由 %{author} 修改",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"由 %{author} 修改",deleteChanges:"删除修改",deleteNewEntry:"删除新内容",publishChanges:"发布修改",publishNewEntry:"发布新内容"},workflowList:{onDeleteEntry:"你确定要删除此内容吗?",onPublishingNotReadyEntry:"只有状态为“就绪”的项目才能被发布。需要先将卡片拖动到“就绪”一列才能发布",onPublishEntry:"你确定要发布此内容吗?",draftHeader:"草稿",inReviewHeader:"审查中",readyHeader:"就绪",currentEntries:"%{smart_count} 个内容 |||| %{smart_count} 个内容"}}}},15029:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={auth:{login:"登入",loggingIn:"正在登入...",loginWithNetlifyIdentity:"使用你的 Netlify 帳號來進行登入",loginWithBitbucket:"使用你的 Bitbucket 帳號來進行登入",loginWithGitHub:"使用你的 GitHub 帳號來進行登入",loginWithGitLab:"使用你的 GitLab 帳號來進行登入",loginWithGitea:"使用你的 Gitea 帳號來進行登入",errors:{email:"請確認你已經輸入你的電子郵件。",password:"請輸入你的密碼。",identitySettings:"無法連接認證系統!當使用 git-gateway 作為後端資料庫時,請確認您已開啟認證服務及 Git Gateway。"}},app:{header:{content:"內容",workflow:"作業流程",media:"媒體",quickAdd:"快速新增"},app:{errorHeader:"載入 CMS 設定時發生錯誤",configErrors:"設定錯誤",checkConfigYml:"請確認你的 config.yml 設定檔的內容是否正確",loadingConfig:"正在載入設定...",waitingBackend:"正在等待後端資料連接..."},notFoundPage:{header:"找不到頁面"}},collection:{sidebar:{collections:"集合",allCollections:"所有集合",searchAll:"尋找所有集合",searchIn:"搜尋範圍"},collectionTop:{sortBy:"排序方式",viewAs:"瀏覽方式",newButton:"新增 %{collectionLabel}",ascending:"由小到大",descending:"由大到小",searchResults:'搜尋 "%{searchTerm}" 的結果',searchResultsInCollection:'在 %{collection} 中搜尋 %{searchTerm}" 的結果',filterBy:"篩選方式"},entries:{loadingEntries:"載入內容",cachingEntries:"快取內容",longerLoading:"這可能需要幾分鐘的時間",noEntries:"沒有內容"},defaultFields:{author:{label:"作者"},updatedOn:{label:"更新於"}}},editor:{editorControl:{field:{optional:"選填"}},editorControlPane:{widget:{required:"%{fieldLabel} 是必須的。",regexPattern:"%{fieldLabel} 並不符合 %{pattern} 的型態",processing:"%{fieldLabel} 正在處理",range:"%{fieldLabel} 必須介於 %{minValue} 和 %{maxValue} 之間",min:"%{fieldLabel} 必須至少為 %{minValue}",max:"%{fieldLabel} 必須小於或等於 %{maxValue}",rangeCount:"%{fieldLabel} 必須有 %{minCount} 到 %{maxCount} 個項目。",rangeCountExact:"%{fieldLabel} 必須正好有 %{count} 個項目。",rangeMin:"%{fieldLabel} 必須至少有 %{minCount} 個項目。",rangeMax:"%{fieldLabel} 最多只能有 %{maxCount} 個項目。",invalidPath:"'%{path}' 不是有效的路徑",pathExists:"路徑 '%{path}' 已經存在"},i18n:{writingInLocale:"以 %{locale} 書寫",copyFromLocale:"用其他語言進行填充",copyFromLocaleConfirm:"你確定要用“%{locale}”進行填充嗎?\n這將會覆蓋所有現有的內容。"}},editor:{onLeavePage:"您確定要離開這頁嗎?",onUpdatingWithUnsavedChanges:"您有未儲存的變更,在更新狀態前請先進行儲存。",onPublishingNotReady:"在發布前,請先將狀態設定為:預備發布。",onPublishingWithUnsavedChanges:"您有未儲存的變更,在發布前請先進行儲存。",onPublishing:"你確定要發表此內容嗎?",onUnpublishing:"你確定要取消發表此內容嗎?",onDeleteWithUnsavedChanges:"你確定要刪除這篇已發布的內容以及你尚未儲存的變更?",onDeletePublishedEntry:"你確定要刪除這篇已發布的內容?",onDeleteUnpublishedChangesWithUnsavedChanges:"這將會刪除此內容所有未發布的變更,以及未儲存的變更。你確定還是要刪除?",onDeleteUnpublishedChanges:"此內容所有未發布的變更都將會被刪除。你確定還是要刪除?",loadingEntry:"載入內容中...",confirmLoadBackup:"此內容的本地備份已經還原,你想要使用嗎?"},editorToolbar:{publishing:"發布中...",publish:"發布",published:"已發布",unpublish:"取消發布",duplicate:"建立新內容",unpublishing:"取消發布中...",publishAndCreateNew:"發布並建立內容",publishAndDuplicate:"發布並複製內容",deleteUnpublishedChanges:"刪除未發布的變更",deleteUnpublishedEntry:"刪除未發布的內容",deletePublishedEntry:"刪除已發布的內容",deleteEntry:"刪除內容",saving:"儲存中...",save:"儲存",deleting:"刪除中...",updating:"更新中...",status:"狀態: %{status}",backCollection:"在集合 %{collectionLabel} 新增內容",unsavedChanges:"未儲存變更",changesSaved:"已儲存變更",draft:"草稿",inReview:"正在審核",ready:"預備發布",publishNow:"立即發布",deployPreviewPendingButtonLabel:"點擊來進行預覽",deployPreviewButtonLabel:"進行預覽",deployButtonLabel:"觀看已發布的內容"},editorWidgets:{markdown:{bold:"粗體",italic:"斜體",code:"程式碼",link:"連結",linkPrompt:"輸入連結網址",headings:"標題",quote:"引言",bulletedList:"項目符號清單",numberedList:"編號清單",addComponent:"加入元件",richText:"Rich Text",markdown:"Markdown"},image:{choose:"選擇一張圖片",chooseDifferent:"選擇其他圖片",remove:"刪除圖片"},file:{choose:"選擇一個檔案",chooseDifferent:"選擇其他檔案",remove:"刪除檔案"},unknownControl:{noControl:"無法控制元件: '%{widget}'."},unknownPreview:{noPreview:"無法預覽元件: '%{widget}'."},headingOptions:{headingOne:"標題 1",headingTwo:"標題 2",headingThree:"標題 3",headingFour:"標題 4",headingFive:"標題 5",headingSix:"標題 6"},datetime:{now:"現在",clear:"清除"},list:{add:"新增%{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"草稿"},mediaLibrary:{onDelete:"你確定要刪除已選擇的媒體嗎?",fileTooLarge:"檔案太大。\n已設定不允許大於 %{size} kB 的檔案。"},mediaLibraryModal:{loading:"載入中...",noResults:"沒有結果",noAssetsFound:"沒有發現媒體資產。",noImagesFound:"沒有發現影像。",private:"私人",images:"影像",mediaAssets:"媒體資產",search:"搜尋中...",uploading:"上傳中...",upload:"上傳新內容",download:"下載",deleting:"刪除中...",deleteSelected:"刪除已選擇的項目",chooseSelected:"選擇已選擇的項目"}},ui:{default:{goBackToSite:"回到網站"},errorBoundary:{title:"錯誤",details:"發生錯誤!請 ",reportIt:"回報錯誤",detailsHeading:"細節",privacyWarning:"建立 issue,並加上錯誤訊息及除錯資訊。\n請確認資訊正確,敏感資料也已經去除。",recoveredEntry:{heading:"已恢復的內容",warning:"在你離開本頁前,請將此處的內容複製貼上到其他地方來進行備份!",copyButtonLabel:"複製到剪貼簿"}},settingsDropdown:{logOut:"登出"},toast:{onFailToLoadEntries:"無法載入內容: %{details}",onFailToLoadDeployPreview:"無法預覽內容: %{details}",onFailToPersist:"無法暫存內容: %{details}",onFailToDelete:"無法刪除內容: %{details}",onFailToUpdateStatus:"無法更新狀態: %{details}",missingRequiredField:"糟了!你漏填了一個必須填入的欄位,在儲存前請先填完所有內容",entrySaved:"已儲存內容",entryPublished:"已發布內容",entryUnpublished:"已取消發布內容",onFailToPublishEntry:"無法發布: %{details}",onFailToUnpublishEntry:"無法取消發布: %{details}",entryUpdated:"內容狀態已更新",onDeleteUnpublishedChanges:"已刪除未發布的變更",onFailToAuth:"%{details}",onLoggedOut:"你已經登出,請備份任何資料然後重新登入",onBackendDown:"後端服務發生中斷。看 %{details} 取得更多資訊"}},workflow:{workflow:{loading:"正在載入編輯流程的內容",workflowHeading:"編輯作業流程",newPost:"建立新的內容",description:"%{smart_count} 篇內容正在等待審核, %{readyCount} 篇已經準備進行發布。 |||| %{smart_count} 篇內容正在等待審核, %{readyCount} 篇已經準備進行發布。",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"刪除變更",deleteNewEntry:"刪除新內容",publishChanges:"發布變更",publishNewEntry:"發布新內容"},workflowList:{onDeleteEntry:"你確定要刪除這個項目嗎?",onPublishingNotReadyEntry:"只有狀態為 預備發布 的內容可以被發布,請將本內容的狀態設定為 預備發布 來進行發布前的準備",onPublishEntry:"你確定要發表這篇內容嗎?",draftHeader:"草稿",inReviewHeader:"正在預覽",readyHeader:"準備完成",currentEntries:"%{smart_count} 篇內容 |||| %{smart_count} 篇內容"}}}},19138:(e,t,n)=>{"use strict";t.ZP=void 0;var r,i=(r=n(13888))&&r.__esModule?r:{default:r},o=n(33806);const a=["config"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,a),s=l(l({},c),r),u=l(l(l({},f),n),d),p=(0,i.default)(u,["default_transformations","max_files","multiple"]);await(0,o.loadScript)("https://media-library.cloudinary.com/global/all.js");const h=window.cloudinary.createMediaLibrary(u,{insertHandler:function(e){const r=e.assets.map((e=>function(e,{use_secure_url:t,use_transformations:n,output_filename_only:r}){return r?`${e.public_id}.${e.format}`:(e.derived&&n?e.derived[0]:e)[t?"secure_url":"url"]}(e,s)));t(n.multiple||r.length>1?r:r[0])}});return{show:({config:e={},allowMultiple:t}={})=>(!1===t&&(e.multiple=!1),h.show(l(l({},p),e))),hide:()=>h.hide(),enableStandalone:()=>!0}}};t.ZP=p},80087:(e,t,n)=>{"use strict";t.ZP=void 0;var r=s(n(38625)),i=s(n(50836)),o=n(46670);const a=["publicKey"];function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t{const r=Boolean(t);return e().then((e=>{if(r)return Promise.all(t().map((e=>e.then((e=>o(e)))))).then((e=>n(e)));n(o(e))}))}))}const p={name:"uploadcare",init:async function({options:e={config:{},settings:{}},handleInsert:t}={}){const n=e.config,{publicKey:s}=n,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,a),p=u(u({},c),l);return window.UPLOADCARE_PUBLIC_KEY=s,r.default.registerTab("preview",i.default),{show:({value:n,config:i={},allowMultiple:a,imagesOnly:s=!1}={})=>{const l=u(u({},p),{},{imagesOnly:s},i),c=!1!==a&&!!l.multiple,h=u(u({},l),{},{multiple:c}),m=function(e){if(Array.isArray(e)||o.Iterable.isIterable(e)){const t=Array.isArray(e)?e:e.toJS();return function(e){const t=`~${e.length}/nth/`;return Array.from({length:e.length},(function(e,n){return new RegExp(`${t}${n}/$`)})).every((t=>e.some((e=>t.test(e)))))}(t)?function(e){const t=new RegExp(`^.+/([^/]+~${e.length})/nth/`).exec(e[0])[1];return new Promise((e=>r.default.loadFileGroup(t).done((t=>e(t)))))}(t):Promise.all(t.map((e=>d(e))))}return e&&"string"==typeof e?d(e):null}(n);return m&&!m.state?m.then((n=>f({files:n,config:h,settings:e.settings,handleInsert:t}))):f({files:m,config:h,settings:e.settings,handleInsert:t})},enableStandalone:()=>!1}}};t.ZP=p},54530:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=y,t.renderPageLogo=m;var r=u(n(70894)),i=(u(n(2784)),u(n(13980))),o=u(n(10304)),a=n(29309),s=u(n(98718)),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}const c=(0,r.default)("section",{target:"exus10f5",label:"StyledAuthenticationPage"})({name:"14ts7qn",styles:"display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;gap:50px;height:100vh"}),d=(0,r.default)("span",{target:"exus10f4",label:"CustomIconWrapper"})({name:"1hhl19u",styles:"width:300px;height:auto"}),f=(0,r.default)(o.default,{target:"exus10f3",label:"DecapLogoIcon"})({name:"pit38s",styles:"height:auto"}),p=(0,r.default)(o.default,{target:"exus10f2",label:"NetlifyCreditIcon"})({name:"iy5sn8",styles:"color:#c4c6d2;position:absolute;bottom:10px"});function h({url:e}){return(0,l.jsx)(d,null,(0,l.jsx)("img",{src:e,alt:"Logo"}))}function m(e){return e?(0,l.jsx)(h,{url:e}):(0,l.jsx)(f,{size:"300px",type:"decap-cms"})}const g=(0,r.default)("button",{target:"exus10f1",label:"LoginButton"})(a.buttons.button,";",a.shadows.dropDeep,";",a.buttons.default,";",a.buttons.gray,";&[disabled]{",a.buttons.disabled,";}padding:0 12px;margin-top:0;display:flex;align-items:center;position:relative;"),v=(0,r.default)("button",{target:"exus10f0",label:"TextButton"})(a.buttons.button,";",a.buttons.default,";",a.buttons.grayText,";margin-top:0;display:flex;align-items:center;position:relative;");function y({onLogin:e,loginDisabled:t,loginErrorMessage:n,renderButtonContent:r,renderPageContent:i,logoUrl:o,siteUrl:a,t:u}){return(0,l.jsx)(c,null,m(o),n?(0,l.jsx)("p",null,n):null,i?i({LoginButton:g,TextButton:v,showAbortButton:!a}):null,r?(0,l.jsx)(g,{disabled:t,onClick:e},r()):null,a&&(0,l.jsx)(s.default,{href:a,t:u}),o?(0,l.jsx)(p,{size:"100px",type:"decap-cms"}):null)}y.propTypes={onLogin:i.default.func,logoUrl:i.default.string,siteUrl:i.default.string,loginDisabled:i.default.bool,loginErrorMessage:i.default.node,renderButtonContent:i.default.func,renderPageContent:i.default.func,t:i.default.func.isRequired}},87509:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DropdownButton",{enumerable:!0,get:function(){return a.Button}}),t.DropdownCheckedItem=w,t.DropdownItem=v,t.StyledDropdownButton=void 0,t.default=g;var r=c(n(70894)),i=(c(n(2784)),c(n(13980))),o=n(28165),a=n(6448),s=n(29309),l=c(n(10304));const u=["isActive","isCheckedItem"];function c(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t(0,o.css)("width:",e.width,";top:",e.top,";left:","left"===e.position?0:"auto",";right:","right"===e.position?0:"auto",";;label:DropdownList;")),";"));function h(e){let{isActive:t,isCheckedItem:n=!1}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,u);return(0,o.jsx)(a.MenuItem,d({css:(0,o.css)(s.components.dropdownItem,";&:focus,&:active,&:not(:focus),&:not(:active){background-color:",t?s.colors.activeBackground:"inherit",";color:",t?s.colors.active:"#313d3e",";",n?"display: flex; justify-content: start":"",";}&:hover{color:",s.colors.active,";background-color:",s.colors.activeBackground,";}&.active{text-decoration:underline;};label:StyledMenuItem;")},r))}const m=(0,r.default)("div",{target:"efqlgsg0",label:"MenuItemIconContainer"})("flex:1 0 32px;text-align:right;position:relative;top:",(e=>e.iconSmall?"0":"2px"),";");function g({closeOnSelection:e=!0,renderButton:t,dropdownWidth:n="auto",dropdownPosition:r="left",dropdownTopOverlap:i="0",className:s,children:l}){return(0,o.jsx)(f,{closeOnSelection:e,onSelection:e=>e(),className:s},t(),(0,o.jsx)(a.Menu,null,(0,o.jsx)(p,{width:n,top:i,position:r},l)))}function v({label:e,icon:t,iconDirection:n,iconSmall:r,isActive:i,onClick:a,className:s}){return(0,o.jsx)(h,{value:a,isActive:i,className:s},(0,o.jsx)("span",null,e),t?(0,o.jsx)(m,{iconSmall:r},(0,o.jsx)(l.default,{type:t,direction:n,size:r?"xsmall":"small"})):null)}g.propTypes={renderButton:i.default.func.isRequired,dropdownWidth:i.default.string,dropdownPosition:i.default.string,dropdownTopOverlap:i.default.string,className:i.default.string,children:i.default.node},v.propTypes={label:i.default.string,icon:i.default.string,iconDirection:i.default.string,onClick:i.default.func,className:i.default.string};var y={name:"1ak2sn3-StyledDropdownCheckbox",styles:"margin-right:10px;label:StyledDropdownCheckbox;"};function b({checked:e,id:t}){return(0,o.jsx)("input",{readOnly:!0,type:"checkbox",css:y,checked:e,id:t})}function w({label:e,id:t,checked:n,onClick:r}){return(0,o.jsx)(h,{isCheckedItem:!0,isActive:n,onClick:r},(0,o.jsx)(b,{checked:n,id:t}),(0,o.jsx)("span",{htmlFor:t},e))}w.propTypes={label:i.default.string.isRequired,id:i.default.string.isRequired,checked:i.default.bool.isRequired,onClick:i.default.func.isRequired}},36881:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(70894))&&r.__esModule?r:{default:r},o=n(29309);const a={default:{background:o.colors.textFieldBorder,text:o.colors.controlLabel},active:{background:o.colors.active,text:o.colors.textLight},error:{background:o.colors.errorText,text:o.colorsRaw.white}};function s({isActive:e,hasErrors:t}){return t?a.error:e?a.active:a.default}const l=(0,i.default)("label",{target:"e1xtv0oy0",label:"FieldLabel"})(o.text.fieldLabel,";color:",(e=>s(e).text),";background-color:",(e=>s(e).background),";display:inline-block;border:0;border-radius:3px 3px 0 0;padding:3px 6px 2px;margin:0;transition:all ",o.transitions.main,";position:relative;&:before,&:after{content:'';display:block;position:absolute;top:0;right:-4px;height:100%;width:4px;background-color:inherit;}&:after{border-bottom-left-radius:3px;background-color:#fff;}");t.default=l},98718:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(70894)),i=u(n(2784)),o=u(n(13980)),a=n(29309),s=u(n(10304)),l=n(28165);function u(e){return e&&e.__esModule?e:{default:e}}const c=(0,r.default)("a",{target:"e1sptrq41",label:"GoBackButtonStyle"})({name:"1d6fxhx",styles:"display:flex;align-items:center;margin-top:50px;padding:10px;font-size:14px"}),d=(0,r.default)("p",{target:"e1sptrq40",label:"ButtonText"})("color:",a.colorsRaw.gray,";margin:0 10px;");class f extends i.default.Component{render(){const{href:e,t}=this.props;return(0,l.jsx)(c,{href:e},(0,l.jsx)(s.default,{type:"arrow",size:"small"}),(0,l.jsx)(d,null,t("ui.default.goBackToSite")))}}var p,h,m;t.default=f,p=f,h="propTypes",m={href:o.default.string.isRequired,t:o.default.func.isRequired},(h=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(h))in p?Object.defineProperty(p,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):p[h]=m},10304:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(70894)),i=(s(n(2784)),s(n(13980))),o=s(n(72134)),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("span",{target:"e1jeq5dr1",label:"IconWrapper"})("display:inline-block;line-height:0;width:",(e=>e.size),";height:",(e=>e.size),";transform:",(e=>`rotate(${e.rotation})`),";& path:not(.no-fill),& circle:not(.no-fill),& polygon:not(.no-fill),& rect:not(.no-fill){fill:currentColor;}& path.clipped{fill:transparent;}svg{width:100%;height:100%;}");function u(e,t){if(!e||!t)return"0deg";const n={right:90,down:180,left:270,up:360};return n[t]-n[e]+"deg"}const c={xsmall:"12px",small:"18px",medium:"24px",large:"32px"};function d({type:e,direction:t,size:n="medium",className:r}){const i=o.default[e].image;return(0,a.jsx)(l,{className:r,size:c[n]||n,rotation:u(o.default[e].direction,t)},(0,a.jsx)(i,null))}d.propTypes={type:i.default.string.isRequired,direction:i.default.oneOf(["right","down","left","up"]),size:i.default.string,className:i.default.string},t.default=(0,r.default)(d,{target:"e1jeq5dr0"})("")},72134:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(34519)),i=o(n(82880));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const s={arrow:{direction:"left"},chevron:{direction:"down"},"chevron-double":{direction:"down"}},l=(0,r.default)(i.default,((e,t)=>function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,(r=n(2784))&&r.__esModule;var r,i=n(28165),o=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M19 14h-4a1 1 0 0 0-1 1v4a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-4a1 1 0 0 0-1-1H5a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h4a1 1 0 0 0 1-1V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1Z"}))};o.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var a=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",fillRule:"evenodd",d:"M16.5 16 13 12h7l-3.5 4Zm-4-5.75H9.75a.5.5 0 0 0-.5.5v2.75a.5.5 0 0 1-.5.5h-1.5a.5.5 0 0 1-.5-.5v-2.75a.5.5 0 0 0-.5-.5H3.5a.5.5 0 0 1-.5-.5v-1.5a.5.5 0 0 1 .5-.5h2.75a.5.5 0 0 0 .5-.5V4.5a.5.5 0 0 1 .5-.5h1.5a.5.5 0 0 1 .5.5v2.75a.5.5 0 0 0 .5.5h2.75a.5.5 0 0 1 .5.5v1.5a.5.5 0 0 1-.5.5Z"}))};a.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var s=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#313D3E",d:"m10.506 19.916 1.903-1.953-4.744-4.67H21.31V10.55H7.665l4.744-4.682-1.903-1.953-7.95 8z"}))};s.defaultProps={viewBox:"0 0 24 24"};var l=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M14.015 4.217 7.1 9.927 1.5 19.751l5.27.055zm.77 1.263-3.02 8.014 5.6 6.313-10.76 1.92 17.895.056Z",fill:"#2684FF"}))};l.defaultProps={viewBox:"0 0 26 26",height:"26",width:"26"};var u=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M2.776 3a.655.655 0 0 0-.655.76l2.781 16.886c.072.427.44.74.872.744h13.344a.655.655 0 0 0 .655-.55l2.782-17.077a.655.655 0 0 0-.655-.76L2.776 3Zm11.713 12.204h-4.26L9.076 9.18h6.445l-1.032 6.025Z",fill:"#2684FF"}))};u.defaultProps={width:"26",height:"26",viewBox:"0 0 26 26"};var c=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M13.2 9.819c.812-.577 1.381-1.525 1.381-2.404 0-1.948-1.465-3.448-3.348-3.448H6v12.066h5.894c1.75 0 3.106-1.465 3.106-3.267 0-1.31-.72-2.43-1.8-2.947ZM8.108 6.122h2.85c.788 0 1.424.577 1.424 1.293 0 .715-.636 1.292-1.425 1.292h-2.85V6.122Zm3.324 7.756H8.108v-2.585h3.324c.789 0 1.425.577 1.425 1.292 0 .716-.636 1.293-1.425 1.293Z"}))};c.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var d=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"m4.016 11-.648-.946a6.202 6.202 0 0 0-.157-.22 9.526 9.526 0 0 1-.096-.133l-.511-.7a7.413 7.413 0 0 0-.162-.214l-.102-.134-.265-.346a26.903 26.903 0 0 0-.543-.687l-.11-.136a21.767 21.767 0 0 0-.442-.54l-.278-.332a8.854 8.854 0 0 0-.192-.225L.417 6.28l-.283-.324L0 5.805l1.376-1.602c.04.027.186.132.186.132l.377.272.129.095c.08.058.16.115.237.175l.37.28c.192.142.382.292.565.436l.162.126c.27.21.503.398.714.574l.477.393c.078.064.156.127.23.194l.433.375.171-.205A50.865 50.865 0 0 1 8.18 4.023a35.163 35.163 0 0 1 2.382-2.213c.207-.174.42-.349.635-.518l.328-.255.333-.245c.072-.055.146-.107.221-.159l.117-.083c.11-.077.225-.155.341-.23.163-.11.334-.217.503-.32l1.158 1.74a11.908 11.908 0 0 0-.64.55l-.065.06c-.07.062-.139.125-.207.192l-.258.249-.26.265a21.72 21.72 0 0 0-.512.539 32.626 32.626 0 0 0-1.915 2.313 52.115 52.115 0 0 0-2.572 3.746l-.392.642-.19.322-.233.382H4.016z"}))};d.defaultProps={viewBox:"-1 -2 16 16"};var f=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"m5.123 6.33-2.26 2.137 8.656 9.15 9.344-9.105-2.17-2.228-7.084 6.902z"}))};f.defaultProps={viewBox:"0 0 24 24"};var p=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"m5.123 3.33-2.26 2.137 8.656 9.15 9.344-9.105-2.17-2.228-7.084 6.902z"}),(0,i.jsx)("path",{d:"m5.123 10.33-2.26 2.137 8.656 9.15 9.344-9.105-2.17-2.228-7.084 6.902z"}))};p.defaultProps={viewBox:"0 0 24 24"};var h=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("circle",{cx:"12",cy:"12",r:"4"}))};h.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var m=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M11.916 9.96 6.282 4.345 4.398 6.401l5.634 5.616-5.616 5.617 1.849 2.022 5.616-5.617 5.616 5.6 1.884-2.04L13.765 12l5.633-5.634-1.866-2.022z"}))};m.defaultProps={viewBox:"0 0 24 24"};var g=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M9 14.6 4.649 10 9 5.4 7.676 4 2 10l5.676 6L9 14.6Zm3 0 4.351-4.6L12 5.4 13.324 4 19 10l-5.676 6L12 14.6Z"}))};g.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var v=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M10.103 13.32 7.05 10l3.052-3.32-1.325-1.01L4.798 10l3.98 4.33 1.325-1.01ZM5 4h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm6.927 9.32 1.217.935 3.98-4.33-3.98-4.33-1.217 1.085L14.978 10l-3.05 3.32Z"}))};v.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var y=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M3 15v-2h18v2H3Zm0-4V9h18v2H3Z"}))};y.defaultProps={viewBox:"0 0 24 24"};var b=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M22.557 11.492C21.13 10 16.849 6 12.395 6c-4.8 0-8.844 4-10.184 5.492a.798.798 0 0 0 0 1.081C3.55 14.043 7.616 18 12.395 18c4.756 0 8.8-3.914 10.162-5.405a.783.783 0 0 0 0-1.103Zm-10.14 4.692a4.152 4.152 0 0 1 0-8.303 4.152 4.152 0 0 1 4.15 4.151c0 2.292-1.88 4.152-4.15 4.152Zm0-2.79a1.362 1.362 0 1 0 0-2.724 1.362 1.362 0 0 0 0 2.725Z"}))};b.defaultProps={viewBox:"0 0 24 24"};var w=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M10 5H5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-7l-2-2Z"}))};w.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var _=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fillRule:"evenodd",d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"}))};_.defaultProps={width:"32",height:"32",viewBox:"0 0 16 16"};var x=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("g",{fill:"none"},(0,i.jsx)("path",{d:"M22.616 14.971 21.52 11.5l-2.173-6.882a.37.37 0 0 0-.71 0L16.465 11.5H9.252L7.079 4.617a.37.37 0 0 0-.71 0l-2.172 6.882L3.1 14.971c-.1.317.01.664.27.86l9.487 7.094 9.487-7.094a.781.781 0 0 0 .27-.86",fill:"#FC6D26"}),(0,i.jsx)("path",{d:"M12.858 22.925 16.465 11.5H9.251z",fill:"#E24329"}),(0,i.jsx)("path",{d:"M12.858 22.925 9.251 11.5H4.197z",fill:"#FC6D26"}),(0,i.jsx)("path",{d:"M4.197 11.499 3.1 14.971c-.1.317.01.664.27.86l9.487 7.094L4.197 11.5z",fill:"#FCA326"}),(0,i.jsx)("path",{d:"M4.197 11.499H9.25L7.08 4.617a.37.37 0 0 0-.71 0l-2.172 6.882z",fill:"#E24329"}),(0,i.jsx)("path",{d:"M12.858 22.925 16.465 11.5h5.055z",fill:"#FC6D26"}),(0,i.jsx)("path",{d:"m21.52 11.499 1.096 3.472c.1.317-.01.664-.271.86l-9.487 7.094L21.52 11.5z",fill:"#FCA326"}),(0,i.jsx)("path",{d:"M21.52 11.499h-5.055l2.172-6.882a.37.37 0 0 1 .71 0l2.173 6.882z",fill:"#E24329"})))};x.defaultProps={width:"26",height:"26",xmlns:"http://www.w3.org/2000/svg"};var k=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("g",{fill:"#609926"},(0,i.jsx)("path",{d:"M622.7 149.8c-4.1-4.1-9.6-4-9.6-4s-117.2 6.6-177.9 8c-13.3.3-26.5.6-39.6.7v117.2c-5.5-2.6-11.1-5.3-16.6-7.9 0-36.4-.1-109.2-.1-109.2-29 .4-89.2-2.2-89.2-2.2s-141.4-7.1-156.8-8.5c-9.8-.6-22.5-2.1-39 1.5-8.7 1.8-33.5 7.4-53.8 26.9C-4.9 212.4 6.6 276.2 8 285.8c1.7 11.7 6.9 44.2 31.7 72.5 45.8 56.1 144.4 54.8 144.4 54.8s12.1 28.9 30.6 55.5c25 33.1 50.7 58.9 75.7 62 63 0 188.9-.1 188.9-.1s12 .1 28.3-10.3c14-8.5 26.5-23.4 26.5-23.4S547 483 565 451.5c5.5-9.7 10.1-19.1 14.1-28 0 0 55.2-117.1 55.2-231.1-1.1-34.5-9.6-40.6-11.6-42.6zM125.6 353.9c-25.9-8.5-36.9-18.7-36.9-18.7S69.6 321.8 60 295.4c-16.5-44.2-1.4-71.2-1.4-71.2s8.4-22.5 38.5-30c13.8-3.7 31-3.1 31-3.1s7.1 59.4 15.7 94.2c7.2 29.2 24.8 77.7 24.8 77.7s-26.1-3.1-43-9.1zm300.3 107.6s-6.1 14.5-19.6 15.4c-5.8.4-10.3-1.2-10.3-1.2s-.3-.1-5.3-2.1l-112.9-55s-10.9-5.7-12.8-15.6c-2.2-8.1 2.7-18.1 2.7-18.1L322 273s4.8-9.7 12.2-13c.6-.3 2.3-1 4.5-1.5 8.1-2.1 18 2.8 18 2.8L467.4 315s12.6 5.7 15.3 16.2c1.9 7.4-.5 14-1.8 17.2-6.3 15.4-55 113.1-55 113.1z"}),(0,i.jsx)("path",{d:"M326.8 380.1c-8.2.1-15.4 5.8-17.3 13.8-1.9 8 2 16.3 9.1 20 7.7 4 17.5 1.8 22.7-5.4 5.1-7.1 4.3-16.9-1.8-23.1l24-49.1c1.5.1 3.7.2 6.2-.5 4.1-.9 7.1-3.6 7.1-3.6 4.2 1.8 8.6 3.8 13.2 6.1 4.8 2.4 9.3 4.9 13.4 7.3.9.5 1.8 1.1 2.8 1.9 1.6 1.3 3.4 3.1 4.7 5.5 1.9 5.5-1.9 14.9-1.9 14.9-2.3 7.6-18.4 40.6-18.4 40.6-8.1-.2-15.3 5-17.7 12.5-2.6 8.1 1.1 17.3 8.9 21.3 7.8 4 17.4 1.7 22.5-5.3 5-6.8 4.6-16.3-1.1-22.6 1.9-3.7 3.7-7.4 5.6-11.3 5-10.4 13.5-30.4 13.5-30.4.9-1.7 5.7-10.3 2.7-21.3-2.5-11.4-12.6-16.7-12.6-16.7-12.2-7.9-29.2-15.2-29.2-15.2s0-4.1-1.1-7.1c-1.1-3.1-2.8-5.1-3.9-6.3 4.7-9.7 9.4-19.3 14.1-29-4.1-2-8.1-4-12.2-6.1-4.8 9.8-9.7 19.7-14.5 29.5-6.7-.1-12.9 3.5-16.1 9.4-3.4 6.3-2.7 14.1 1.9 19.8l-24.6 50.4z"})))};k.defaultProps={viewBox:"0 0 640 640",className:"svg gitea-gitea",width:"16",height:"16","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg"};var E=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M5 3h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Zm11 0h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2h-3a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Zm0 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2h-3a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2ZM5 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2Z"}))};E.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var C=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M3 4h10v12H3V4Zm2 0v5h6V4H5Zm0 7v5h6v-5H5Zm12.068 5v-5.695h-.026l-1.612.767-.325-1.482 2.236-1.04h1.638V16h-1.911Z"}))};C.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var S=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",fillRule:"evenodd",d:"M18.036 16h-5.532v-1.104l1.008-.912c1.704-1.524 2.532-2.4 2.556-3.312 0-.636-.384-1.14-1.284-1.14-.672 0-1.26.336-1.668.648L12.6 8.872c.588-.444 1.5-.804 2.556-.804 1.764 0 2.736 1.032 2.736 2.448 0 1.308-.948 2.352-2.076 3.36l-.72.6v.024h2.94V16ZM3 8h7v8H3V8Zm2 0v3h3V8H5Zm0 5v3h3v-3H5Z"}))};S.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var A=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M3 4h10v12H3V4zm2 0v5h6V4H5zm0 7v5h6v-5H5m12.874 5.91-3.493-4.117h6.986l-3.493 4.117z"}))};A.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var T=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M21 13h-2a1 1 0 0 0-1 1v6h-4v-5a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v5H6v-6a1 1 0 0 0-1-1H3l9-9 9 9Z"}))};T.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};var O=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M5 3h12a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3Zm2.487 7.205-2.34 3.232a1 1 0 0 0 .81 1.586h9.954a1 1 0 0 0 .792-1.611L13.297 9l-3.451 4.469-2.36-3.264ZM8.5 8a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"}))};O.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var P=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}),(0,i.jsx)("path",{d:"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"}))};P.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",className:"bi bi-info-circle",viewBox:"0 0 16 16"};var R=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M8 4.012V6h2.312l-2.925 8H5v1.988h7V14H9.953l2.925-8H15V4.012z"}))};R.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var D=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"m14.683 10.315-1.256-1.253 1.253-1.254a1.767 1.767 0 0 0 0-2.503 1.765 1.765 0 0 0-2.503 0L9.67 7.81a1.766 1.766 0 0 0 0 2.504l-1.25 1.247-.625-.626a2.657 2.657 0 0 1-.002-3.756l3.135-3.136a3.543 3.543 0 0 1 5.007.009 3.544 3.544 0 0 1 .003 5.007l-1.255 1.255Zm-9.394-.626v-.003l1.252 1.249L5.29 12.19a1.767 1.767 0 0 0 0 2.505c.697.695 1.813.69 2.504 0l2.506-2.506a1.766 1.766 0 0 0 0-2.504l1.249-1.249.622.625a2.654 2.654 0 0 1 .006 3.756L9.04 15.953a3.539 3.539 0 0 1-5.004-.002 3.544 3.544 0 0 1-.003-5.008L5.29 9.69Z"}))};D.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var M=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M4.5 3h15a1.5 1.5 0 0 1 0 3h-15a1.5 1.5 0 0 1 0-3Zm0 5h15a1.5 1.5 0 0 1 0 3h-15a1.5 1.5 0 0 1 0-3Zm0 5h15a1.5 1.5 0 0 1 0 3h-15a1.5 1.5 0 0 1 0-3Zm0 5h15a1.5 1.5 0 0 1 0 3h-15a1.5 1.5 0 0 1 0-3Z"}))};M.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var I=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M5 6.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm0 5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm0 5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3ZM9 4h10v1.964H9V4Zm0 5h10v2H9V9Zm0 5h10v2H9v-2Z"}))};I.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var L=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M20.014 4.023v2h-11v-2h11Zm0 5v2h-11v-2h11Zm0 5v2h-11v-2h11ZM3.604 8.985V4.23h-.018l-1.095.545-.22-1.053 1.518-.738h1.113v6H3.604Zm2.458 7.997h-4v-.835l.73-.69c1.231-1.152 1.83-1.814 1.847-2.503 0-.481-.277-.862-.928-.862-.486 0-.911.254-1.206.49l-.373-.99c.425-.335 1.084-.607 1.848-.607 1.275 0 1.978.78 1.978 1.85 0 .99-.685 1.779-1.5 2.54l-.522.455v.018h2.126v1.134Z"}))};L.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var j=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M1 17V8h2.75l2.75 3.309L9.25 8H12v9H9.25v-5.162l-2.75 3.31-2.75-3.31V17H1Zm18 0-4-4.368h2.667V8h2.666v4.632H23L19 17Z"}))};j.defaultProps={viewBox:"0 0 24 24"};var N=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M21 15.25V4.75C21 3.788 20.212 3 19.25 3H8.75C7.787 3 7 3.788 7 4.75v10.5c0 .962.787 1.75 1.75 1.75h10.5c.962 0 1.75-.788 1.75-1.75Zm-9.641-3.773 1.787 2.394 2.615-3.277 3.522 4.417H8.717l2.642-3.534ZM3 7v12.25c0 .962.788 1.75 1.75 1.75H17v-1.956H5.98a1 1 0 0 1-1-1V7H3Z"}))};N.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var F=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M5.027 4.045h13.975a3 3 0 0 1 3 3v9.99a3 3 0 0 1-3 3H5.027a3 3 0 0 1-3-3v-9.99a3 3 0 0 1 3-3Zm2.874 8.48-4.114 5.504h16.455l-5.485-6.88-4.073 5.105-2.783-3.73ZM9.493 10a1.507 1.507 0 1 0 0-3.014 1.507 1.507 0 0 0 0 3.014Z"}))};F.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var B=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M30.73.15 0 2.95l3.67 40.21 20.03-1.83-1.99-21.86 10.71-.98c10.61-.97 19.14 7.53 20.29 20.19l19.67-1.79C70.34 14.72 51.64-1.75 30.73.15ZM73.61 49.51c0 12.72-7.73 21.95-18.37 21.95H44.49V49.47H24.38v40.42h30.86c21.02 0 38.12-18.11 38.12-40.38v-.04H73.61v.04Z",fill:"#FF0082",className:"no-fill"}),(0,i.jsx)("path",{d:"M131.65 23.71h20.01c14.41 0 24.29 9.09 24.29 23.06 0 13.97-9.88 23.06-24.29 23.06h-20.01V23.71Zm19.51 37.35c8.75 0 14.47-5.47 14.47-14.29s-5.73-14.29-14.47-14.29h-9.31v28.59h9.31v-.01ZM207.61 58.69l5.22 5.93c-3.15 3.75-7.87 5.73-13.97 5.73-11.7 0-19.32-7.71-19.32-18.25s7.68-18.25 18.12-18.25c9.56 0 17.43 6.59 17.49 17.92l-25.04 5.07c1.45 3.49 4.59 5.27 9 5.27 3.59 0 6.17-1.12 8.5-3.43v.01Zm-18.44-7.64 16.49-3.36c-.94-3.62-3.9-6.06-7.99-6.06-4.91 0-8.31 3.43-8.5 9.42ZM218.25 52.1c0-10.67 7.87-18.25 18.88-18.25 7.11 0 12.71 3.23 15.17 9.02l-7.61 4.28c-1.83-3.36-4.53-4.87-7.61-4.87-4.97 0-8.87 3.62-8.87 9.81s3.9 9.81 8.87 9.81c3.08 0 5.79-1.45 7.61-4.87l7.61 4.35c-2.45 5.67-8.05 8.96-15.17 8.96-11.01 0-18.88-7.58-18.88-18.25v.01ZM290.93 34.38v35.44h-9.38v-4.08c-2.45 3.1-6.04 4.61-10.57 4.61-9.57 0-16.93-7.11-16.93-18.25s7.36-18.25 16.93-18.25c4.15 0 7.68 1.38 10.13 4.28v-3.75h9.82ZM281.3 52.1c0-6.13-3.78-9.81-8.62-9.81S264 45.98 264 52.1c0 6.12 3.78 9.81 8.68 9.81s8.62-3.69 8.62-9.81ZM334.54 52.1c0 11.13-7.36 18.25-16.86 18.25-4.22 0-7.68-1.38-10.19-4.28V82.6h-9.82V34.38h9.38v4.08c2.45-3.1 6.1-4.61 10.63-4.61 9.5 0 16.86 7.11 16.86 18.25Zm-9.94 0c0-6.13-3.71-9.81-8.62-9.81-4.91 0-8.62 3.69-8.62 9.81 0 6.12 3.71 9.81 8.62 9.81 4.91 0 8.62-3.69 8.62-9.81Z",fill:"#000",className:"no-fill"}))};B.defaultProps={width:"335",height:"90",viewBox:"0 0 335 90",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var z=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("g",{fillRule:"evenodd"},(0,i.jsx)("path",{d:"M4.7 20.5H15c2.1 0 3.8-1.7 3.8-3.8v-6.4c0-.5-.4-.9-.8-.9-.5 0-1 .4-1 .9v6.4a2 2 0 0 1-2 2H4.7a2 2 0 0 1-2-2V6.2c0-1.1.8-2 2-2H11c.5 0 .8-.4.8-1 0-.4-.3-.8-.8-.8H4.7C2.6 2.4.9 4.1.9 6.2v10.5c0 2 1.7 3.8 3.8 3.8z"}),(0,i.jsx)("path",{d:"M20.9 7.2V1.7h-.1v-.2l-.1-.1-.2-.2h-.1l-.2-.2h-5.7c-.5 0-.8.3-.8.8s.3 1 .8 1H18l-8 8c-.4.3-.4.8 0 1.2.3.3.9.3 1.2 0l8-8v3.2c0 .5.4.9.9.9s.8-.4.9-1z"})))};z.defaultProps={width:"21",height:"21",viewBox:"0 0 21 21",xmlns:"http://www.w3.org/2000/svg"};var U=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"m13.366 3 5.625 5.493L19 19.169C19 20.176 18.156 21 17.125 21H5.865C4.836 21 4 20.176 4 19.17V4.83C4 3.825 4.834 3 5.866 3h7.5ZM6.94 12.11a.94.94 0 1 0 0 1.88h9.12a.94.94 0 0 0 0-1.88H6.94Zm0 3.89a.94.94 0 1 0 0 1.88h9.12a.94.94 0 1 0 0-1.88H6.94Zm5.073-6h5.139l-5.14-5.053V10Z"}))};U.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var q=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M3 8h1.98v11.044a1 1 0 0 0 1 1H17V22H4.75C3.788 22 3 21.212 3 20.25V8Zm6-6h6.074L20 7.041V16a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2Zm.94 8.11a.94.94 0 1 0 0 1.88h7.12a.94.94 0 0 0 0-1.88H9.94Zm0 3.89a.94.94 0 1 0 0 1.88h7.12a.94.94 0 1 0 0-1.88H9.94Zm4.054-6.124h4.344l-4.344-4.342v4.342Z"}))};q.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var W=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M21 15.25c0 .962-.788 1.75-1.75 1.75H8.75C7.787 17 7 16.212 7 15.25V4.75C7 3.788 7.787 3 8.75 3h10.5c.962 0 1.75.788 1.75 1.75v10.5ZM9 10v2h10v-2H9Zm0-4v2h10V6H9ZM3 7v12.25c0 .962.788 1.75 1.75 1.75H17v-1.956H5.98a1 1 0 0 1-1-1V7H3Z"}))};W.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var $=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M4.995 14.954h2.986l1.991-3.982V5H4v5.972h2.986l-1.99 3.982Zm7.963 0h2.986l1.991-3.982V5h-5.972v5.972h2.986l-1.99 3.982Z"}))};$.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var H=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M13.3 1A9.8 9.8 0 0 0 1.1 7a9.4 9.4 0 0 0 6.2 12c5 1.5 10.3-1 12.1-5.8.2-.6-.1-1.3-.7-1.5-.7-.2-1.4.1-1.6.7a7.3 7.3 0 0 1-9 4.3 7 7 0 0 1-4.7-8.9 7.3 7.3 0 0 1 12-2.8L13 7.4c-.5.5-.3.8.3.8h5.5c.7 0 1.2-.5 1.2-1.1V1.8c0-.7-.4-.8-.9-.4l-2 2c-1-1-2.3-1.9-3.8-2.4z",fillRule:"evenodd"}))};H.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};var V=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M12.809 8.182a.898.898 0 1 1-1.798 0V4.058L8.576 6.494a.898.898 0 1 1-1.271-1.271l3.97-3.97a.925.925 0 0 1 1.27 0l4.026 4.026a.898.898 0 1 1-1.27 1.27l-2.492-2.49v4.123Zm.015 11.75 2.435-2.436a.899.899 0 1 1 1.27 1.271l-3.969 3.97a.896.896 0 0 1-1.27 0L7.264 18.71a.898.898 0 1 1 1.27-1.271l2.492 2.491v-4.124a.898.898 0 1 1 1.798 0v4.124Zm-.902-6.479a1.516 1.516 0 1 1 0-3.032 1.516 1.516 0 0 1 0 3.032Z"}))};V.defaultProps={viewBox:"0 0 24 24"};var G=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M20.526 18.236a1.619 1.619 0 1 1-2.29 2.29l-3.341-3.342c-.237-.237-.666-.296-.964-.137 0 0 .04-.01-.22.108a6.881 6.881 0 1 1 3.44-3.436c-.117.258-.105.214-.105.214a.86.86 0 0 0 .138.962l3.342 3.341Zm-9.677-3.466a3.921 3.921 0 1 0 0-7.842 3.921 3.921 0 0 0 0 7.842Z"}))};G.defaultProps={viewBox:"0 0 24 24"};var K=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M18.887 12.874c.037-.287.065-.575.065-.88 0-.306-.028-.594-.065-.881l1.954-1.484a.445.445 0 0 0 .11-.575L19.1 5.944c-.111-.198-.361-.27-.565-.198l-2.306.9c-.482-.36-1-.657-1.565-.882l-.352-2.382a.448.448 0 0 0-.454-.377h-3.704a.448.448 0 0 0-.454.377l-.352 2.382a7.17 7.17 0 0 0-1.565.881l-2.306-.899a.458.458 0 0 0-.565.198L3.06 9.054a.435.435 0 0 0 .111.575l1.954 1.484a6.923 6.923 0 0 0-.064.88c0 .297.027.594.064.881l-1.954 1.484a.445.445 0 0 0-.11.575l1.851 3.11c.112.198.362.27.565.198l2.306-.9c.482.36 1 .657 1.565.882l.352 2.382a.448.448 0 0 0 .454.377h3.704a.448.448 0 0 0 .454-.377l.352-2.382a7.17 7.17 0 0 0 1.565-.881l2.306.899c.213.08.454 0 .565-.198l1.852-3.11a.445.445 0 0 0-.111-.575l-1.954-1.484Zm-6.878 2.132a3.017 3.017 0 0 1-3.013-3.013 3.017 3.017 0 0 1 3.013-3.014 3.017 3.017 0 0 1 3.014 3.014 3.017 3.017 0 0 1-3.014 3.013Z"}))};K.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var Z=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#1E2532",fillRule:"nonzero",d:"M16.5 18c-3.025 0-5.5-2.634-5.5-5.854v-.292C11 8.634 13.475 6 16.5 6S22 8.634 22 11.854v.292C22 15.366 19.525 18 16.5 18ZM16 29c-3.738 0-7.192-1.689-9.39-4.335-.908-1.064-.798-2.7.302-3.601C7.736 20.409 8.753 20 9.88 20h12.645c.742 0 1.43.191 2.062.491 1.43.737 1.869 2.592.88 3.874C23.24 27.175 19.875 29 16 29Z"}))};Z.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32"};var Y=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M10 4h3a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm7 0h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1ZM3 4h3a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Z"}))};Y.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var X=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M2.975 7.004c.002-.477.412-.947.897-.948h9.451l-.816 1.896H3.872c-.485 0-.895-.47-.897-.948Zm.017 8.97c.001.478.395 1.063.88 1.064H8.57c.01-.58.1-1.425.205-1.996H3.872c-.485.001-.879.524-.88 1.001v-.068Zm7.921-5.008.762-1.997H3.872c-.486 0-.933.521-.933.999 0 .477.447.998.933.998h7.041ZM2.95 13.041c0 .477.437.965.922.966H9.18c.096-.258.301-.716.419-.968l.445-.964H3.872c-.485 0-.921.489-.922.966Zm17.099-5.908.395-.849a2.296 2.296 0 0 0-.176-2.374 2.39 2.39 0 0 0-2.207-.984 2.368 2.368 0 0 0-1.936 1.433l-4.712 10.19a9.619 9.619 0 0 0-.699 5.953.608.608 0 0 0 .35.435c.182.081.392.071.564-.027a9.846 9.846 0 0 0 4.104-4.436l3.628-7.843.689-1.498Z"}))};X.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};const Q={add:o,"add-with":a,arrow:s,azure:l,bitbucket:u,bold:c,check:d,chevron:f,"chevron-double":p,circle:h,close:m,code:g,"code-block":v,"drag-handle":y,eye:b,folder:w,github:_,gitlab:x,gitea:k,grid:E,h1:C,h2:S,hOptions:A,home:T,image:O,"info-circle":P,italic:R,link:D,list:M,"list-bulleted":I,"list-numbered":L,markdown:j,media:N,"media-alt":F,decap:B,"decap-cms":B,"new-tab":z,page:U,pages:q,"pages-alt":W,quote:$,refresh:H,scroll:V,search:G,settings:K,user:Z,workflow:Y,write:X};t.default=Q},52798:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(70894)),i=(s(n(2784)),s(n(10304))),o=n(29309),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}const l={small:"28px",large:"40px"},u=(0,r.default)("button",{target:"em2wuvj0",label:"ButtonRound"})(o.buttons.button,";",o.shadows.dropMiddle,";background-color:",o.colorsRaw.white,";color:",(e=>o.colors[e.isActive?"active":"inactive"]),";border-radius:32px;display:flex;justify-content:center;align-items:center;width:",(e=>l[e.size]),";height:",(e=>l[e.size]),";padding:0;");t.default=function({size:e,isActive:t,type:n,onClick:r,className:o,title:s}){return(0,a.jsx)(u,{size:e,isActive:t,className:o,onClick:r,title:s},(0,a.jsx)(i.default,{type:n,size:e}))}},83913:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(70894)),i=(l(n(2784)),l(n(13980))),o=l(n(10304)),a=n(29309),s=n(28165);function l(e){return e&&e.__esModule?e:{default:e}}const u=(0,r.default)("div",{target:"e11ki7in3",label:"TopBar"})("display:flex;justify-content:space-between;height:26px;border-radius:",a.lengths.borderRadius," ",a.lengths.borderRadius," 0 0;position:relative;"),c=(0,r.default)("button",{target:"e11ki7in2",label:"TopBarButton"})(a.buttons.button,";color:",a.colors.controlLabel,";background:transparent;font-size:16px;line-height:1;padding:0;width:32px;text-align:center;cursor:pointer;display:flex;justify-content:center;align-items:center;"),d=c.withComponent("span",{target:"e11ki7in4",label:"TopBarButtonSpan"}),f=(0,r.default)(d,{target:"e11ki7in1",label:"DragIconContainer"})({name:"1nwpzc",styles:"width:100%;cursor:move"});function p({Wrapper:e,id:t}){return(0,s.jsx)(e,{id:t},(0,s.jsx)(f,null,(0,s.jsx)(o.default,{type:"drag-handle",size:"small"})))}function h(e){const{className:t,collapsed:n,onCollapseToggle:r,onRemove:i,dragHandle:a,id:l}=e;return(0,s.jsx)(u,{className:t},r?(0,s.jsx)(c,{onClick:r},(0,s.jsx)(o.default,{type:"chevron",size:"small",direction:n?"right":"down"})):null,a?(0,s.jsx)(p,{Wrapper:a,id:l}):null,i?(0,s.jsx)(c,{onClick:i},(0,s.jsx)(o.default,{type:"close",size:"small"})):null)}h.propTypes={className:i.default.string,collapsed:i.default.bool,onCollapseToggle:i.default.func,onRemove:i.default.func};const m=(0,r.default)(h,{target:"e11ki7in0",label:"StyledListItemTopBar"})("display:flex;justify-content:space-between;height:26px;border-radius:",a.lengths.borderRadius," ",a.lengths.borderRadius," 0 0;position:relative;");t.default=m},26103:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Loader=void 0;var r=u(n(70894)),i=u(n(2784)),o=u(n(13980)),a=n(28165),s=n(7411),l=n(29309);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d={disabled:{name:"v06iuk-disabled",styles:"display:none;label:disabled;"},active:{name:"1426nog-active",styles:"display:block;label:active;"},enter:{name:"1rrod3j-enter",styles:"opacity:0.01;label:enter;"},enterActive:{name:"ssvs1t-enterActive",styles:"opacity:1;transition:opacity 500ms ease-in;label:enterActive;"},exit:{name:"t407yk-exit",styles:"opacity:1;label:exit;"},exitActive:{name:"1npgmu6-exitActive",styles:"opacity:0.01;transition:opacity 300ms ease-in;label:exitActive;"}},f={loader:a.keyframes` from { transform: rotate(0deg); } @@ -436,11 +436,11 @@ to { transform: rotate(360deg); } - `},p=(0,r.default)("div",{target:"ep2bezb2",label:"LoaderText"})({name:"xpdb8l",styles:"width:auto!important;height:auto!important;text-align:center;color:#767676;margin-top:55px;line-height:35px"}),h=(0,r.default)("div",{target:"ep2bezb1",label:"LoaderItem"})({name:"12zl32h",styles:"position:absolute;white-space:nowrap;transform:translateX(-50%)"});class m extends i.default.Component{constructor(...e){super(...e),c(this,"state",{currentItem:0}),c(this,"setAnimation",(()=>{if(this.interval)return;const{children:e}=this.props;this.interval=setInterval((()=>{const t=this.state.currentItem===e.length-1?0:this.state.currentItem+1;this.setState({currentItem:t})}),5e3)})),c(this,"renderChild",(()=>{const{children:e}=this.props,{currentItem:t}=this.state;return e?"string"==typeof e?(0,a.jsx)(p,null,e):Array.isArray(e)?(this.setAnimation(),(0,a.jsx)(p,null,(0,a.jsx)(s.CSSTransition,{className:{enter:d.enter,enterActive:d.enterActive,exit:d.exit,exitActive:d.exitActive},timeout:500},(0,a.jsx)(h,{key:t},e[t])))):void 0:null}))}componentWillUnmount(){this.interval&&clearInterval(this.interval)}render(){const{className:e}=this.props;return(0,a.jsx)("div",{className:e},this.renderChild())}}t.Loader=m,c(m,"propTypes",{children:o.default.node,className:o.default.string});const g=(0,r.default)(m,{target:"ep2bezb0",label:"StyledLoader"})("display:",(e=>e.active?"block":"none"),";position:absolute;top:50%;left:50%;margin:0;text-align:center;z-index:",l.zIndex.zIndex1000,";transform:translateX(-50%) translateY(-50%);&:before,&:after{content:'';position:absolute;top:0%;left:50%;width:2.2857rem;height:2.2857rem;margin:0 0 0 -1.1429rem;border-radius:500rem;border-style:solid;border-width:0.2em;}&:before{border-color:rgba(0, 0, 0, 0.1);}&:after{animation:",f.loader," 0.6s linear;animation-iteration-count:infinite;border-color:",l.colors.active," transparent transparent;box-shadow:0 0 0 1px transparent;}");t.default=g},24764:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(70894)),i=f(n(2784)),o=f(n(13980)),a=n(28165),s=f(n(19155)),l=f(n(10304)),u=n(29309),c=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(87509));function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function f(e){return e&&e.__esModule?e:{default:e}}const p=(0,r.default)("div",{target:"ekazr9y3",label:"TopBarContainer"})("align-items:center;background-color:",u.colors.textFieldBorder,";display:flex;justify-content:space-between;margin:0 -14px;padding:13px;");var h={name:"5r0eyy-ExpandButtonContainer",styles:"display:flex;align-items:center;font-size:14px;font-weight:500;line-height:1;label:ExpandButtonContainer;"};const m=(0,r.default)("div",{target:"ekazr9y2",label:"ExpandButtonContainer"})((e=>e.hasHeading&&h),";"),g=(0,r.default)("button",{target:"ekazr9y1",label:"ExpandButton"})(u.buttons.button,";padding:4px;background-color:transparent;color:inherit;&:last-of-type{margin-right:4px;}"),v=(0,r.default)("button",{target:"ekazr9y0",label:"AddButton"})(u.buttons.button," ",u.buttons.widget," ",l.default,"{margin-left:6px;}");class y extends i.default.Component{renderAddUI(){return this.props.allowAdd?this.props.types&&this.props.types.size>0?this.renderTypesDropdown(this.props.types):this.renderAddButton():null}renderTypesDropdown(e){return(0,a.jsx)(c.default,{renderButton:()=>(0,a.jsx)(c.StyledDropdownButton,null,this.props.t("editor.editorWidgets.list.addType",{item:this.props.label}))},e.map(((e,t)=>(0,a.jsx)(c.DropdownItem,{key:t,label:e.get("label",e.get("name")),onClick:()=>this.props.onAddType(e.get("name"))}))))}renderAddButton(){return(0,a.jsx)(v,{onClick:this.props.onAdd},this.props.t("editor.editorWidgets.list.add",{item:this.props.label}),(0,a.jsx)(l.default,{type:"add",size:"xsmall"}))}render(){const{onCollapseToggle:e,collapsed:t,heading:n=null}=this.props;return(0,a.jsx)(p,null,(0,a.jsx)(m,{hasHeading:!!n},(0,a.jsx)(g,{onClick:e,"data-testid":"expand-button"},(0,a.jsx)(l.default,{type:"chevron",direction:t?"right":"down",size:"small"})),n),this.renderAddUI())}}var b,w,_;b=y,w="propTypes",_={allowAdd:o.default.bool,types:s.default.list,onAdd:o.default.func,onAddType:o.default.func,onCollapseToggle:o.default.func,collapsed:o.default.bool,heading:o.default.node,label:o.default.string,t:o.default.func.isRequired},(w=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(w))in b?Object.defineProperty(b,w,{value:_,enumerable:!0,configurable:!0,writable:!0}):b[w]=_,t.default=y},46126:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ToggleHandle=t.ToggleContainer=t.ToggleBackground=void 0;var r=u(n(70894)),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(2784)),o=u(n(13980)),a=n(28165),s=n(29309);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e){return e&&e.__esModule?e:{default:e}}const c=t.ToggleContainer=(0,r.default)("button",{target:"ek00w7u3",label:"ToggleContainer"})({name:"1afa32y",styles:"display:inline-flex;align-items:center;justify-content:center;position:relative;width:40px;height:20px;cursor:pointer;border:none;padding:0;margin:0;background:transparent"});var d={name:"18x3ccc-ToggleHandle",styles:"transform:translateX(20px);label:ToggleHandle;"};const f=t.ToggleHandle=(0,r.default)("span",{target:"ek00w7u2",label:"ToggleHandle"})(s.shadows.dropDeep,";position:absolute;left:0;top:0;width:20px;height:20px;border-radius:50%;background-color:",s.colorsRaw.white,";transition:transform ",s.transitions.main,";",(e=>e.isActive&&d),";"),p=t.ToggleBackground=(0,r.default)("span",{target:"ek00w7u1",label:"ToggleBackground"})("width:34px;height:14px;border-radius:10px;background-color:",s.colors.active,";");function h({id:e,active:t,onChange:n,onFocus:r,onBlur:o,className:s,Container:l=c,Background:u=p,Handle:d=f}){const[h,m]=(0,i.useState)(t);return(0,a.jsx)(l,{id:e,onFocus:r,onBlur:o,className:s,onClick:function(){m((e=>!e)),n&&n(!h)},role:"switch","aria-checked":null==h?void 0:h.toString(),"aria-expanded":null},(0,a.jsx)(u,{isActive:h}),(0,a.jsx)(d,{isActive:h}))}h.propTypes={id:o.default.string,active:o.default.bool,onChange:o.default.func,onFocus:o.default.func,onBlur:o.default.func,className:o.default.string,Container:o.default.func,Background:o.default.func,Handle:o.default.func},t.default=(0,r.default)(h,{target:"ek00w7u0",label:"StyledToggle"})("")},75076:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const i=(0,((r=n(70894))&&r.__esModule?r:{default:r}).default)("div",{target:"es44anv0",label:"WidgetPreviewContainer"})({name:"1wf5os2",styles:"margin:15px 2px"});t.default=i},30762:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return c.default}}),t.DecapCmsUiDefault=void 0,Object.defineProperty(t,"Dropdown",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"DropdownButton",{enumerable:!0,get:function(){return r.DropdownButton}}),Object.defineProperty(t,"DropdownCheckedItem",{enumerable:!0,get:function(){return r.DropdownCheckedItem}}),Object.defineProperty(t,"DropdownItem",{enumerable:!0,get:function(){return r.DropdownItem}}),Object.defineProperty(t,"FieldLabel",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"GlobalStyles",{enumerable:!0,get:function(){return h.GlobalStyles}}),Object.defineProperty(t,"GoBackButton",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"Icon",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"IconButton",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"ListItemTopBar",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Loader",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"ObjectWidgetTopBar",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"StyledDropdownButton",{enumerable:!0,get:function(){return r.StyledDropdownButton}}),Object.defineProperty(t,"Toggle",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"ToggleBackground",{enumerable:!0,get:function(){return u.ToggleBackground}}),Object.defineProperty(t,"ToggleContainer",{enumerable:!0,get:function(){return u.ToggleContainer}}),Object.defineProperty(t,"ToggleHandle",{enumerable:!0,get:function(){return u.ToggleHandle}}),Object.defineProperty(t,"WidgetPreviewContainer",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"borders",{enumerable:!0,get:function(){return h.borders}}),Object.defineProperty(t,"buttons",{enumerable:!0,get:function(){return h.buttons}}),Object.defineProperty(t,"colors",{enumerable:!0,get:function(){return h.colors}}),Object.defineProperty(t,"colorsRaw",{enumerable:!0,get:function(){return h.colorsRaw}}),Object.defineProperty(t,"components",{enumerable:!0,get:function(){return h.components}}),Object.defineProperty(t,"effects",{enumerable:!0,get:function(){return h.effects}}),Object.defineProperty(t,"fonts",{enumerable:!0,get:function(){return h.fonts}}),Object.defineProperty(t,"lengths",{enumerable:!0,get:function(){return h.lengths}}),Object.defineProperty(t,"reactSelectStyles",{enumerable:!0,get:function(){return h.reactSelectStyles}}),Object.defineProperty(t,"shadows",{enumerable:!0,get:function(){return h.shadows}}),Object.defineProperty(t,"text",{enumerable:!0,get:function(){return h.text}}),Object.defineProperty(t,"transitions",{enumerable:!0,get:function(){return h.transitions}}),Object.defineProperty(t,"zIndex",{enumerable:!0,get:function(){return h.zIndex}});var r=v(n(87509)),i=m(n(10304)),o=m(n(83913)),a=m(n(26103)),s=m(n(36881)),l=m(n(52798)),u=v(n(46126)),c=m(n(54530)),d=m(n(75076)),f=m(n(24764)),p=m(n(98718)),h=n(29309);function m(e){return e&&e.__esModule?e:{default:e}}function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function v(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}t.DecapCmsUiDefault={Dropdown:r.default,DropdownItem:r.DropdownItem,DropdownCheckedItem:r.DropdownCheckedItem,DropdownButton:r.DropdownButton,StyledDropdownButton:r.StyledDropdownButton,ListItemTopBar:o.default,FieldLabel:s.default,Icon:i.default,IconButton:l.default,Loader:a.default,Toggle:u.default,ToggleContainer:u.ToggleContainer,ToggleBackground:u.ToggleBackground,ToggleHandle:u.ToggleHandle,AuthenticationPage:c.default,WidgetPreviewContainer:d.default,ObjectWidgetTopBar:f.default,fonts:h.fonts,colorsRaw:h.colorsRaw,colors:h.colors,lengths:h.lengths,components:h.components,buttons:h.buttons,shadows:h.shadows,text:h.text,borders:h.borders,transitions:h.transitions,effects:h.effects,zIndex:h.zIndex,reactSelectStyles:h.reactSelectStyles,GlobalStyles:h.GlobalStyles}},29309:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalStyles=function(){return(0,i.jsx)(i.Global,{styles:(0,i.css)("*,*:before,*:after{box-sizing:border-box;}:focus{outline:-webkit-focus-ring-color auto ",d.borderRadius,";}[data-whatintent='mouse'] *:focus{outline:none;}input{border:0;}body{font-family:",l.primary,";font-weight:normal;background-color:",c.background,";color:",c.text,";margin:0;}ul,ol{padding-left:0;}h1,h2,h3,h4,h5,h6,p{font-family:",l.primary,";color:",c.textLead,";font-size:15px;line-height:1.5;margin-top:0;}h1,h2,h3,h4,h5,h6{font-weight:500;}h1{font-size:24px;letter-spacing:0.4px;color:",c.textLead,";}a,button{font-size:14px;font-weight:500;}a{color:",c.text,";text-decoration:none;}button{font-family:inherit;}img{max-width:100%;}textarea{resize:none;};label:GlobalStyles;")})},t.zIndex=t.transitions=t.text=t.shadows=t.reactSelectStyles=t.lengths=t.fonts=t.effects=t.components=t.colorsRaw=t.colors=t.buttons=t.borders=void 0,(r=n(2784))&&r.__esModule;var r,i=n(28165);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;ta(a({},e),{},{border:0,boxShadow:"none",padding:"9px 0 9px 12px"}),option:(e,t)=>a(a({},e),{},{backgroundColor:t.isSelected?`${c.active}`:t.isFocused?`${c.activeBackground}`:"transparent",paddingLeft:"22px"}),menu:e=>a(a({},e),{},{right:0,zIndex:w.zIndex300}),container:e=>a(a({},e),{},{padding:"0 !important"}),indicatorSeparator:(e,t)=>t.hasValue&&t.selectProps.isClearable?a(a({},e),{},{backgroundColor:`${c.textFieldBorder}`}):{display:"none"},dropdownIndicator:e=>a(a({},e),{},{color:`${c.controlLabel}`}),clearIndicator:e=>a(a({},e),{},{color:`${c.controlLabel}`}),multiValue:e=>a(a({},e),{},{backgroundColor:c.background}),multiValueLabel:e=>a(a({},e),{},{color:c.textLead,fontWeight:500}),multiValueRemove:e=>a(a({},e),{},{color:c.controlLabel,":hover":{color:c.errorText,backgroundColor:c.errorBackground}})},t.zIndex={zIndex0:0,zIndex1:1,zIndex2:2,zIndex10:10,zIndex100:100,zIndex200:200,zIndex299:299,zIndex300:300,zIndex1000:1e3,zIndex10000:1e4,zIndex99999:99999})},32070:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(13980)),i=u(n(2784)),o=u(n(19155)),a=n(28165),s=n(30762);const l=["isActive"];function u(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,l);return(0,a.jsx)(s.ToggleBackground,c({css:(0,a.css)("background-color:",t?s.colors.active:s.colors.textFieldBorder,";;label:BooleanBackground;")},n))}class f extends i.default.Component{render(){const{value:e,forID:t,onChange:n,classNameWrapper:r,setActiveStyle:i,setInactiveStyle:o}=this.props;return(0,a.jsx)("div",{className:r},(0,a.jsx)(s.Toggle,{id:t,active:e,onChange:n,onFocus:i,onBlur:o,Background:d}))}}t.default=f,f.propTypes={field:o.default.map.isRequired,onChange:r.default.func.isRequired,classNameWrapper:r.default.string.isRequired,setActiveStyle:r.default.func.isRequired,setInactiveStyle:r.default.func.isRequired,forID:r.default.string,value:r.default.bool},f.defaultProps={value:!1}},56293:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsWidgetBoolean=void 0;var r,i=(r=n(32070))&&r.__esModule?r:{default:r};function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s=t.DecapCmsWidgetBoolean={Widget:function(e={}){return function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=y(n(45455)),i=y(n(18149)),o=y(n(75652)),a=y(n(2784)),s=y(n(13980)),l=y(n(19155)),u=n(28165),c=n(46670),d=n(29987),f=n(50730),p=y(n(23326));n(50832),n(94521),n(83280);var h=y(n(49470)),m=y(n(84085)),g=y(n(8674)),v=y(n(33081));function y(e){return e&&e.__esModule?e:{default:e}}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t({label:e.label,name:e.identifiers[0],mode:e.codemirror_mode,mimeType:e.codemirror_mime_type}))),k={name:"",mode:"",label:"none"};function E(e){return"string"==typeof e?{value:e,label:e}:{value:e.name,label:e.label||e.name}}const S=x.map(E),C=["default","material"],T={theme:"cms.codemirror.theme",keyMap:"cms.codemirror.keymap"};class O extends a.default.Component{constructor(...e){var t;super(...e),_(this,"keys",this.getKeys(this.props.field)),_(this,"state",{isActive:!1,unknownLang:null,lang:"",keyMap:localStorage.getItem(T.keyMap)||"default",settingsVisible:!1,codeMirrorKey:(0,d.v4)(),theme:localStorage.getItem(T.theme)||C[C.length-1],lastKnownValue:this.valueIsMap()?null===(t=this.props.value)||void 0===t?void 0:t.get(this.keys.code):this.props.value}),_(this,"visibility",{isInvisibleOnInit:!0===this.props.isParentListCollapsed,isRefreshedAfterInvisible:!1}),_(this,"getLanguageByName",(e=>x.find((t=>t.name===e)))),_(this,"getKeyMapOptions",(()=>Object.keys(p.default.keyMap).sort().filter((e=>["emacs","vim","sublime","default"].includes(e))).map((e=>({value:e,label:e}))))),_(this,"getInitialLang",(()=>{const{value:e,field:t}=this.props,n=this.valueIsMap()&&e&&e.get(this.keys.lang)||t.get("default_language"),r=this.getLanguageByName(n);return n&&!r&&this.setState({unknownLang:n}),n})),_(this,"allowLanguageSelection",!this.props.field.has("allow_language_selection")||!!this.props.field.get("allow_language_selection")),_(this,"toValue",this.valueIsMap()?(e,t)=>(this.props.value||(0,c.Map)()).set(this.keys[e],t):(e,t)=>"code"===e?t:this.props.value),_(this,"showSettings",(()=>{this.setState({settingsVisible:!0})})),_(this,"hideSettings",(()=>{this.state.settingsVisible&&this.setState({settingsVisible:!1}),this.cm.focus()})),_(this,"handleFocus",(()=>{this.hideSettings(),this.props.setActiveStyle(),this.setActive()})),_(this,"handleBlur",(()=>{this.setInactive(),this.props.setInactiveStyle()})),_(this,"setActive",(()=>this.setState({isActive:!0}))),_(this,"setInactive",(()=>this.setState({isActive:!1})))}shouldComponentUpdate(e,t){return!(0,i.default)(this.state,t)||this.props.classNameWrapper!==e.classNameWrapper||this.visibility.isInvisibleOnInit&&!this.visibility.isRefreshedAfterInvisible}componentDidMount(){this.setState({lang:this.getInitialLang()||""})}componentDidUpdate(e,t){this.updateCodeMirrorProps(t),!this.visibility.isInvisibleOnInit||this.visibility.isRefreshedAfterInvisible||this.props.isParentListCollapsed||this.refreshCodeMirrorInstance()}updateCodeMirrorProps(e){const t=function(e,t,n){const i=(["lang","theme","keyMap"]||(0,o.default)(Object.keys(e),Object.keys(t))).reduce(((n,r)=>(e[r]!==t[r]&&(n[r]=t[r]),n)),{});if(!(0,r.default)(i))return i}(e,this.state);t&&this.handleChangeCodeMirrorProps(t)}refreshCodeMirrorInstance(){var e;null!==(e=this.cm)&&void 0!==e&&e.getWrapperElement().offsetHeight&&(this.cm.refresh(),this.visibility.isRefreshedAfterInvisible=!0)}getKeys(e){const t={code:"code",lang:"lang"};if(this.props.isEditorComponent)return t;const n=e.get("keys",(0,c.Map)()).toJS();return w(w({},t),n)}valueIsMap(){const{field:e,isEditorComponent:t}=this.props;return!e.get("output_code_only")||t}async handleChangeCodeMirrorProps(e){const{onChange:t}=this.props;if(e.lang){const{mode:t}=this.getLanguageByName(e.lang)||{};t&&n(52106)(`./${t}/${t}.js`)}if(this.cm){const e=this.cm.doc.getCursor(),t=this.cm.doc.listSelections();this.setState({codeMirrorKey:(0,d.v4)()},(()=>{this.cm.doc.setCursor(e),this.cm.doc.setSelections(t)}))}for(const t of["theme","keyMap"])e[t]&&localStorage.setItem(T[t],e[t]);e.lang&&this.valueIsMap()&&t(this.toValue("lang",e.lang))}handleChange(e){const t=this.cm.doc.getCursor(),n=this.cm.doc.listSelections();this.setState({lastKnownValue:e}),this.props.onChange(this.toValue("code",e),{cursor:t,selections:n})}render(){const{classNameWrapper:e,forID:t,widget:n,isNewEditorComponent:r}=this.props,{lang:i,settingsVisible:o,keyMap:a,codeMirrorKey:s,theme:l,lastKnownValue:c}=this.state,d=this.getLanguageByName(i),p=(null==d?void 0:d.mimeType)||(null==d?void 0:d.mode);return(0,u.jsx)(u.ClassNames,null,(({css:i,cx:y})=>(0,u.jsx)("div",{className:y(e,i` + `},p=(0,r.default)("div",{target:"ep2bezb2",label:"LoaderText"})({name:"xpdb8l",styles:"width:auto!important;height:auto!important;text-align:center;color:#767676;margin-top:55px;line-height:35px"}),h=(0,r.default)("div",{target:"ep2bezb1",label:"LoaderItem"})({name:"12zl32h",styles:"position:absolute;white-space:nowrap;transform:translateX(-50%)"});class m extends i.default.Component{constructor(...e){super(...e),c(this,"state",{currentItem:0}),c(this,"setAnimation",(()=>{if(this.interval)return;const{children:e}=this.props;this.interval=setInterval((()=>{const t=this.state.currentItem===e.length-1?0:this.state.currentItem+1;this.setState({currentItem:t})}),5e3)})),c(this,"renderChild",(()=>{const{children:e}=this.props,{currentItem:t}=this.state;return e?"string"==typeof e?(0,a.jsx)(p,null,e):Array.isArray(e)?(this.setAnimation(),(0,a.jsx)(p,null,(0,a.jsx)(s.CSSTransition,{className:{enter:d.enter,enterActive:d.enterActive,exit:d.exit,exitActive:d.exitActive},timeout:500},(0,a.jsx)(h,{key:t},e[t])))):void 0:null}))}componentWillUnmount(){this.interval&&clearInterval(this.interval)}render(){const{className:e}=this.props;return(0,a.jsx)("div",{className:e},this.renderChild())}}t.Loader=m,c(m,"propTypes",{children:o.default.node,className:o.default.string});const g=(0,r.default)(m,{target:"ep2bezb0",label:"StyledLoader"})("display:",(e=>e.active?"block":"none"),";position:absolute;top:50%;left:50%;margin:0;text-align:center;z-index:",l.zIndex.zIndex1000,";transform:translateX(-50%) translateY(-50%);&:before,&:after{content:'';position:absolute;top:0%;left:50%;width:2.2857rem;height:2.2857rem;margin:0 0 0 -1.1429rem;border-radius:500rem;border-style:solid;border-width:0.2em;}&:before{border-color:rgba(0, 0, 0, 0.1);}&:after{animation:",f.loader," 0.6s linear;animation-iteration-count:infinite;border-color:",l.colors.active," transparent transparent;box-shadow:0 0 0 1px transparent;}");t.default=g},24764:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(70894)),i=f(n(2784)),o=f(n(13980)),a=n(28165),s=f(n(19155)),l=f(n(10304)),u=n(29309),c=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(87509));function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function f(e){return e&&e.__esModule?e:{default:e}}const p=(0,r.default)("div",{target:"ekazr9y3",label:"TopBarContainer"})("align-items:center;background-color:",u.colors.textFieldBorder,";display:flex;justify-content:space-between;margin:0 -14px;padding:13px;");var h={name:"5r0eyy-ExpandButtonContainer",styles:"display:flex;align-items:center;font-size:14px;font-weight:500;line-height:1;label:ExpandButtonContainer;"};const m=(0,r.default)("div",{target:"ekazr9y2",label:"ExpandButtonContainer"})((e=>e.hasHeading&&h),";"),g=(0,r.default)("button",{target:"ekazr9y1",label:"ExpandButton"})(u.buttons.button,";padding:4px;background-color:transparent;color:inherit;&:last-of-type{margin-right:4px;}"),v=(0,r.default)("button",{target:"ekazr9y0",label:"AddButton"})(u.buttons.button," ",u.buttons.widget," ",l.default,"{margin-left:6px;}");class y extends i.default.Component{renderAddUI(){return this.props.allowAdd?this.props.types&&this.props.types.size>0?this.renderTypesDropdown(this.props.types):this.renderAddButton():null}renderTypesDropdown(e){return(0,a.jsx)(c.default,{renderButton:()=>(0,a.jsx)(c.StyledDropdownButton,null,this.props.t("editor.editorWidgets.list.addType",{item:this.props.label}))},e.map(((e,t)=>(0,a.jsx)(c.DropdownItem,{key:t,label:e.get("label",e.get("name")),onClick:()=>this.props.onAddType(e.get("name"))}))))}renderAddButton(){return(0,a.jsx)(v,{onClick:this.props.onAdd},this.props.t("editor.editorWidgets.list.add",{item:this.props.label}),(0,a.jsx)(l.default,{type:"add",size:"xsmall"}))}render(){const{onCollapseToggle:e,collapsed:t,heading:n=null}=this.props;return(0,a.jsx)(p,null,(0,a.jsx)(m,{hasHeading:!!n},(0,a.jsx)(g,{onClick:e,"data-testid":"expand-button"},(0,a.jsx)(l.default,{type:"chevron",direction:t?"right":"down",size:"small"})),n),this.renderAddUI())}}var b,w,_;b=y,w="propTypes",_={allowAdd:o.default.bool,types:s.default.list,onAdd:o.default.func,onAddType:o.default.func,onCollapseToggle:o.default.func,collapsed:o.default.bool,heading:o.default.node,label:o.default.string,t:o.default.func.isRequired},(w=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(w))in b?Object.defineProperty(b,w,{value:_,enumerable:!0,configurable:!0,writable:!0}):b[w]=_,t.default=y},46126:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ToggleHandle=t.ToggleContainer=t.ToggleBackground=void 0;var r=u(n(70894)),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(2784)),o=u(n(13980)),a=n(28165),s=n(29309);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e){return e&&e.__esModule?e:{default:e}}const c=t.ToggleContainer=(0,r.default)("button",{target:"ek00w7u3",label:"ToggleContainer"})({name:"1afa32y",styles:"display:inline-flex;align-items:center;justify-content:center;position:relative;width:40px;height:20px;cursor:pointer;border:none;padding:0;margin:0;background:transparent"});var d={name:"18x3ccc-ToggleHandle",styles:"transform:translateX(20px);label:ToggleHandle;"};const f=t.ToggleHandle=(0,r.default)("span",{target:"ek00w7u2",label:"ToggleHandle"})(s.shadows.dropDeep,";position:absolute;left:0;top:0;width:20px;height:20px;border-radius:50%;background-color:",s.colorsRaw.white,";transition:transform ",s.transitions.main,";",(e=>e.isActive&&d),";"),p=t.ToggleBackground=(0,r.default)("span",{target:"ek00w7u1",label:"ToggleBackground"})("width:34px;height:14px;border-radius:10px;background-color:",s.colors.active,";");function h({id:e,active:t,onChange:n,onFocus:r,onBlur:o,className:s,Container:l=c,Background:u=p,Handle:d=f}){const[h,m]=(0,i.useState)(t);return(0,a.jsx)(l,{id:e,onFocus:r,onBlur:o,className:s,onClick:function(){m((e=>!e)),n&&n(!h)},role:"switch","aria-checked":null==h?void 0:h.toString(),"aria-expanded":null},(0,a.jsx)(u,{isActive:h}),(0,a.jsx)(d,{isActive:h}))}h.propTypes={id:o.default.string,active:o.default.bool,onChange:o.default.func,onFocus:o.default.func,onBlur:o.default.func,className:o.default.string,Container:o.default.func,Background:o.default.func,Handle:o.default.func},t.default=(0,r.default)(h,{target:"ek00w7u0",label:"StyledToggle"})("")},75076:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const i=(0,((r=n(70894))&&r.__esModule?r:{default:r}).default)("div",{target:"es44anv0",label:"WidgetPreviewContainer"})({name:"1wf5os2",styles:"margin:15px 2px"});t.default=i},30762:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return c.default}}),t.DecapCmsUiDefault=void 0,Object.defineProperty(t,"Dropdown",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"DropdownButton",{enumerable:!0,get:function(){return r.DropdownButton}}),Object.defineProperty(t,"DropdownCheckedItem",{enumerable:!0,get:function(){return r.DropdownCheckedItem}}),Object.defineProperty(t,"DropdownItem",{enumerable:!0,get:function(){return r.DropdownItem}}),Object.defineProperty(t,"FieldLabel",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"GlobalStyles",{enumerable:!0,get:function(){return h.GlobalStyles}}),Object.defineProperty(t,"GoBackButton",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"Icon",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"IconButton",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"ListItemTopBar",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Loader",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"ObjectWidgetTopBar",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"StyledDropdownButton",{enumerable:!0,get:function(){return r.StyledDropdownButton}}),Object.defineProperty(t,"Toggle",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"ToggleBackground",{enumerable:!0,get:function(){return u.ToggleBackground}}),Object.defineProperty(t,"ToggleContainer",{enumerable:!0,get:function(){return u.ToggleContainer}}),Object.defineProperty(t,"ToggleHandle",{enumerable:!0,get:function(){return u.ToggleHandle}}),Object.defineProperty(t,"WidgetPreviewContainer",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"borders",{enumerable:!0,get:function(){return h.borders}}),Object.defineProperty(t,"buttons",{enumerable:!0,get:function(){return h.buttons}}),Object.defineProperty(t,"colors",{enumerable:!0,get:function(){return h.colors}}),Object.defineProperty(t,"colorsRaw",{enumerable:!0,get:function(){return h.colorsRaw}}),Object.defineProperty(t,"components",{enumerable:!0,get:function(){return h.components}}),Object.defineProperty(t,"effects",{enumerable:!0,get:function(){return h.effects}}),Object.defineProperty(t,"fonts",{enumerable:!0,get:function(){return h.fonts}}),Object.defineProperty(t,"lengths",{enumerable:!0,get:function(){return h.lengths}}),Object.defineProperty(t,"reactSelectStyles",{enumerable:!0,get:function(){return h.reactSelectStyles}}),Object.defineProperty(t,"renderPageLogo",{enumerable:!0,get:function(){return c.renderPageLogo}}),Object.defineProperty(t,"shadows",{enumerable:!0,get:function(){return h.shadows}}),Object.defineProperty(t,"text",{enumerable:!0,get:function(){return h.text}}),Object.defineProperty(t,"transitions",{enumerable:!0,get:function(){return h.transitions}}),Object.defineProperty(t,"zIndex",{enumerable:!0,get:function(){return h.zIndex}});var r=v(n(87509)),i=m(n(10304)),o=m(n(83913)),a=m(n(26103)),s=m(n(36881)),l=m(n(52798)),u=v(n(46126)),c=v(n(54530)),d=m(n(75076)),f=m(n(24764)),p=m(n(98718)),h=n(29309);function m(e){return e&&e.__esModule?e:{default:e}}function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function v(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}t.DecapCmsUiDefault={Dropdown:r.default,DropdownItem:r.DropdownItem,DropdownCheckedItem:r.DropdownCheckedItem,DropdownButton:r.DropdownButton,StyledDropdownButton:r.StyledDropdownButton,ListItemTopBar:o.default,FieldLabel:s.default,Icon:i.default,IconButton:l.default,Loader:a.default,Toggle:u.default,ToggleContainer:u.ToggleContainer,ToggleBackground:u.ToggleBackground,ToggleHandle:u.ToggleHandle,AuthenticationPage:c.default,WidgetPreviewContainer:d.default,ObjectWidgetTopBar:f.default,fonts:h.fonts,colorsRaw:h.colorsRaw,colors:h.colors,lengths:h.lengths,components:h.components,buttons:h.buttons,shadows:h.shadows,text:h.text,borders:h.borders,transitions:h.transitions,effects:h.effects,zIndex:h.zIndex,reactSelectStyles:h.reactSelectStyles,GlobalStyles:h.GlobalStyles,renderPageLogo:c.renderPageLogo}},29309:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalStyles=function(){return(0,i.jsx)(i.Global,{styles:(0,i.css)("*,*:before,*:after{box-sizing:border-box;}:focus{outline:-webkit-focus-ring-color auto ",d.borderRadius,";}[data-whatintent='mouse'] *:focus{outline:none;}input{border:0;}body{font-family:",l.primary,";font-weight:normal;background-color:",c.background,";color:",c.text,";margin:0;}ul,ol{padding-left:0;}h1,h2,h3,h4,h5,h6,p{font-family:",l.primary,";color:",c.textLead,";font-size:15px;line-height:1.5;margin-top:0;}h1,h2,h3,h4,h5,h6{font-weight:500;}h1{font-size:24px;letter-spacing:0.4px;color:",c.textLead,";}a,button{font-size:14px;font-weight:500;}a{color:",c.text,";text-decoration:none;}button{font-family:inherit;}img{max-width:100%;}textarea{resize:none;};label:GlobalStyles;")})},t.zIndex=t.transitions=t.text=t.shadows=t.reactSelectStyles=t.lengths=t.fonts=t.effects=t.components=t.colorsRaw=t.colors=t.buttons=t.borders=void 0,(r=n(2784))&&r.__esModule;var r,i=n(28165);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;ta(a({},e),{},{border:0,boxShadow:"none",padding:"9px 0 9px 12px"}),option:(e,t)=>a(a({},e),{},{backgroundColor:t.isSelected?`${c.active}`:t.isFocused?`${c.activeBackground}`:"transparent",paddingLeft:"22px"}),menu:e=>a(a({},e),{},{right:0,zIndex:w.zIndex300}),container:e=>a(a({},e),{},{padding:"0 !important"}),indicatorSeparator:(e,t)=>t.hasValue&&t.selectProps.isClearable?a(a({},e),{},{backgroundColor:`${c.textFieldBorder}`}):{display:"none"},dropdownIndicator:e=>a(a({},e),{},{color:`${c.controlLabel}`}),clearIndicator:e=>a(a({},e),{},{color:`${c.controlLabel}`}),multiValue:e=>a(a({},e),{},{backgroundColor:c.background}),multiValueLabel:e=>a(a({},e),{},{color:c.textLead,fontWeight:500}),multiValueRemove:e=>a(a({},e),{},{color:c.controlLabel,":hover":{color:c.errorText,backgroundColor:c.errorBackground}})},t.zIndex={zIndex0:0,zIndex1:1,zIndex2:2,zIndex10:10,zIndex100:100,zIndex200:200,zIndex299:299,zIndex300:300,zIndex1000:1e3,zIndex10000:1e4,zIndex99999:99999})},32070:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(13980)),i=u(n(2784)),o=u(n(19155)),a=n(28165),s=n(30762);const l=["isActive"];function u(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,l);return(0,a.jsx)(s.ToggleBackground,c({css:(0,a.css)("background-color:",t?s.colors.active:s.colors.textFieldBorder,";;label:BooleanBackground;")},n))}class f extends i.default.Component{render(){const{value:e,forID:t,onChange:n,classNameWrapper:r,setActiveStyle:i,setInactiveStyle:o}=this.props;return(0,a.jsx)("div",{className:r},(0,a.jsx)(s.Toggle,{id:t,active:e,onChange:n,onFocus:i,onBlur:o,Background:d}))}}t.default=f,f.propTypes={field:o.default.map.isRequired,onChange:r.default.func.isRequired,classNameWrapper:r.default.string.isRequired,setActiveStyle:r.default.func.isRequired,setInactiveStyle:r.default.func.isRequired,forID:r.default.string,value:r.default.bool},f.defaultProps={value:!1}},56293:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsWidgetBoolean=void 0;var r,i=(r=n(32070))&&r.__esModule?r:{default:r};function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s=t.DecapCmsWidgetBoolean={Widget:function(e={}){return function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=y(n(45455)),i=y(n(18149)),o=y(n(75652)),a=y(n(2784)),s=y(n(13980)),l=y(n(19155)),u=n(28165),c=n(46670),d=n(29987),f=n(50730),p=y(n(23326));n(50832),n(94521),n(83280);var h=y(n(49470)),m=y(n(84085)),g=y(n(8674)),v=y(n(33081));function y(e){return e&&e.__esModule?e:{default:e}}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t({label:e.label,name:e.identifiers[0],mode:e.codemirror_mode,mimeType:e.codemirror_mime_type}))),k={name:"",mode:"",label:"none"};function E(e){return"string"==typeof e?{value:e,label:e}:{value:e.name,label:e.label||e.name}}const C=x.map(E),S=["default","material"],A={theme:"cms.codemirror.theme",keyMap:"cms.codemirror.keymap"};class T extends a.default.Component{constructor(...e){var t;super(...e),_(this,"keys",this.getKeys(this.props.field)),_(this,"state",{isActive:!1,unknownLang:null,lang:"",keyMap:localStorage.getItem(A.keyMap)||"default",settingsVisible:!1,codeMirrorKey:(0,d.v4)(),theme:localStorage.getItem(A.theme)||S[S.length-1],lastKnownValue:this.valueIsMap()?null===(t=this.props.value)||void 0===t?void 0:t.get(this.keys.code):this.props.value}),_(this,"visibility",{isInvisibleOnInit:!0===this.props.isParentListCollapsed,isRefreshedAfterInvisible:!1}),_(this,"getLanguageByName",(e=>x.find((t=>t.name===e)))),_(this,"getKeyMapOptions",(()=>Object.keys(p.default.keyMap).sort().filter((e=>["emacs","vim","sublime","default"].includes(e))).map((e=>({value:e,label:e}))))),_(this,"getInitialLang",(()=>{const{value:e,field:t}=this.props,n=this.valueIsMap()&&e&&e.get(this.keys.lang)||t.get("default_language"),r=this.getLanguageByName(n);return n&&!r&&this.setState({unknownLang:n}),n})),_(this,"allowLanguageSelection",!this.props.field.has("allow_language_selection")||!!this.props.field.get("allow_language_selection")),_(this,"toValue",this.valueIsMap()?(e,t)=>(this.props.value||(0,c.Map)()).set(this.keys[e],t):(e,t)=>"code"===e?t:this.props.value),_(this,"showSettings",(()=>{this.setState({settingsVisible:!0})})),_(this,"hideSettings",(()=>{this.state.settingsVisible&&this.setState({settingsVisible:!1}),this.cm.focus()})),_(this,"handleFocus",(()=>{this.hideSettings(),this.props.setActiveStyle(),this.setActive()})),_(this,"handleBlur",(()=>{this.setInactive(),this.props.setInactiveStyle()})),_(this,"setActive",(()=>this.setState({isActive:!0}))),_(this,"setInactive",(()=>this.setState({isActive:!1})))}shouldComponentUpdate(e,t){return!(0,i.default)(this.state,t)||this.props.classNameWrapper!==e.classNameWrapper||this.visibility.isInvisibleOnInit&&!this.visibility.isRefreshedAfterInvisible}componentDidMount(){this.setState({lang:this.getInitialLang()||""})}componentDidUpdate(e,t){this.updateCodeMirrorProps(t),!this.visibility.isInvisibleOnInit||this.visibility.isRefreshedAfterInvisible||this.props.isParentListCollapsed||this.refreshCodeMirrorInstance()}updateCodeMirrorProps(e){const t=function(e,t,n){const i=(["lang","theme","keyMap"]||(0,o.default)(Object.keys(e),Object.keys(t))).reduce(((n,r)=>(e[r]!==t[r]&&(n[r]=t[r]),n)),{});if(!(0,r.default)(i))return i}(e,this.state);t&&this.handleChangeCodeMirrorProps(t)}refreshCodeMirrorInstance(){var e;null!==(e=this.cm)&&void 0!==e&&e.getWrapperElement().offsetHeight&&(this.cm.refresh(),this.visibility.isRefreshedAfterInvisible=!0)}getKeys(e){const t={code:"code",lang:"lang"};if(this.props.isEditorComponent)return t;const n=e.get("keys",(0,c.Map)()).toJS();return w(w({},t),n)}valueIsMap(){const{field:e,isEditorComponent:t}=this.props;return!e.get("output_code_only")||t}async handleChangeCodeMirrorProps(e){const{onChange:t}=this.props;if(e.lang){const{mode:t}=this.getLanguageByName(e.lang)||{};t&&n(52106)(`./${t}/${t}.js`)}if(this.cm){const e=this.cm.doc.getCursor(),t=this.cm.doc.listSelections();this.setState({codeMirrorKey:(0,d.v4)()},(()=>{this.cm.doc.setCursor(e),this.cm.doc.setSelections(t)}))}for(const t of["theme","keyMap"])e[t]&&localStorage.setItem(A[t],e[t]);e.lang&&this.valueIsMap()&&t(this.toValue("lang",e.lang))}handleChange(e){const t=this.cm.doc.getCursor(),n=this.cm.doc.listSelections();this.setState({lastKnownValue:e}),this.props.onChange(this.toValue("code",e),{cursor:t,selections:n})}render(){const{classNameWrapper:e,forID:t,widget:n,isNewEditorComponent:r}=this.props,{lang:i,settingsVisible:o,keyMap:a,codeMirrorKey:s,theme:l,lastKnownValue:c}=this.state,d=this.getLanguageByName(i),p=(null==d?void 0:d.mimeType)||(null==d?void 0:d.mode);return(0,u.jsx)(u.ClassNames,null,(({css:i,cx:y})=>(0,u.jsx)("div",{className:y(e,i` ${h.default}; ${m.default}; ${"\n padding: 0;\n"}; - `)},!o&&(0,u.jsx)(v.default,{onClick:this.showSettings}),o&&(0,u.jsx)(g.default,{hideSettings:this.hideSettings,forID:t,modes:S,mode:E(d||k),theme:C.find((e=>e===l)),themes:C,keyMap:{value:a,label:a},keyMaps:this.getKeyMapOptions(),allowLanguageSelection:this.allowLanguageSelection,onChangeLang:e=>this.setState({lang:e}),onChangeTheme:e=>this.setState({theme:e}),onChangeKeyMap:e=>this.setState({keyMap:e})}),(0,u.jsx)(f.UnControlled,{key:s,id:t,className:i` + `)},!o&&(0,u.jsx)(v.default,{onClick:this.showSettings}),o&&(0,u.jsx)(g.default,{hideSettings:this.hideSettings,forID:t,modes:C,mode:E(d||k),theme:S.find((e=>e===l)),themes:S,keyMap:{value:a,label:a},keyMaps:this.getKeyMapOptions(),allowLanguageSelection:this.allowLanguageSelection,onChangeLang:e=>this.setState({lang:e}),onChangeTheme:e=>this.setState({theme:e}),onChangeKeyMap:e=>this.setState({keyMap:e})}),(0,u.jsx)(f.UnControlled,{key:s,id:t,className:i` height: 100%; border-radius: 0 3px 3px; overflow: hidden; @@ -454,27 +454,27 @@ .CodeMirror-scroll { min-height: 300px; } - `,options:w(w({lineNumbers:!0},n.codeMirrorConfig),{},{extraKeys:w({"Shift-Tab":"indentLess",Tab:"indentMore"},n.codeMirrorConfig.extraKeys||{}),theme:l,mode:p,keyMap:a,viewportMargin:1/0}),detach:!0,editorDidMount:e=>{this.cm=e,r&&this.handleFocus()},value:c,onChange:(e,t,n)=>this.handleChange(n),onFocus:this.handleFocus,onBlur:this.handleBlur}))))}}t.default=O,_(O,"propTypes",{field:l.default.map.isRequired,onChange:s.default.func.isRequired,value:s.default.node,forID:s.default.string.isRequired,classNameWrapper:s.default.string.isRequired,widget:s.default.object.isRequired,isParentListCollapsed:s.default.bool})},31595:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(85505)),i=(l(n(2784)),l(n(13980))),o=n(46670),a=n(30762),s=n(28165);function l(e){return e&&e.__esModule?e:{default:e}}function u(e){return(0,s.jsx)(a.WidgetPreviewContainer,null,(0,s.jsx)("pre",null,(0,s.jsx)("code",null,(t=e.value,n=e.field,(0,r.default)(t)?t:o.Map.isMap(t)?t.get(n.getIn(["keys","code"],"code"),""):""))));var t,n}u.propTypes={value:i.default.node},t.default=u},33081:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(70894)),i=(a(n(2784)),n(30762)),o=n(28165);function a(e){return e&&e.__esModule?e:{default:e}}const s=(0,r.default)("button",{target:"epeop3r0",label:"StyledSettingsButton"})(i.buttons.button,";",i.buttons.default,";",i.shadows.drop,";display:block;position:absolute;z-index:",i.zIndex.zIndex100,";right:8px;top:8px;opacity:0.8;padding:2px 4px;line-height:1;height:auto;",i.Icon,"{position:relative;top:1px;}");t.default=function({showClose:e,onClick:t}){return(0,o.jsx)(s,{onClick:t},(0,o.jsx)(i.Icon,{type:e?"close":"settings",size:"small"}))}},8674:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(70894)),i=d(n(2784)),o=d(n(31776)),a=d(n(87202)),s=n(30762),l=d(n(33081)),u=d(n(15389)),c=n(28165);function d(e){return e&&e.__esModule?e:{default:e}}const f=(0,r.default)("div",{target:"e147sj9s2",label:"SettingsPaneContainer"})("position:absolute;right:0;width:200px;z-index:",s.zIndex.zIndex10,";height:100%;background-color:#fff;overflow:hidden;overflow-y:scroll;padding:12px;border-radius:0 3px 3px 0;",s.shadows.drop,";"),p=(0,r.default)("label",{target:"e147sj9s1",label:"SettingsFieldLabel"})(s.text.fieldLabel,";font-size:11px;display:block;margin-top:8px;margin-bottom:2px;"),h=(0,r.default)("h3",{target:"e147sj9s0",label:"SettingsSectionTitle"})({name:"punfmt",styles:"font-size:14px;margin-top:14px;margin-bottom:0;&:first-of-type{margin-top:4px;}"});function m({value:e,options:t,onChange:n,forID:r,type:i,autoFocus:a}){return(0,c.jsx)(o.default,{inputId:`${r}-select-${i}`,styles:u.default,value:e,options:t,onChange:e=>n(e.value),menuPlacement:"auto",captureMenuScroll:!1,autoFocus:a})}t.default=function({hideSettings:e,forID:t,modes:n,mode:r,theme:o,themes:s,keyMap:u,keyMaps:d,allowLanguageSelection:g,onChangeLang:v,onChangeTheme:y,onChangeKeyMap:b}){return(0,c.jsx)(f,{onKeyDown:t=>(0,a.default)("esc",t)&&e()},(0,c.jsx)(l.default,{onClick:e,showClose:!0}),g&&(0,c.jsx)(i.default.Fragment,null,(0,c.jsx)(h,null,"Field Settings"),(0,c.jsx)(p,{htmlFor:`${t}-select-mode`},"Mode"),(0,c.jsx)(m,{type:"mode",forID:t,value:r,options:n,onChange:v,autoFocus:!0})),(0,c.jsx)(i.default.Fragment,null,(0,c.jsx)(h,null,"Global Settings"),s&&(0,c.jsx)(i.default.Fragment,null,(0,c.jsx)(p,{htmlFor:`${t}-select-theme`},"Theme"),(0,c.jsx)(m,{type:"theme",forID:t,value:{value:o,label:o},options:s.map((e=>({value:e,label:e}))),onChange:y,autoFocus:!g})),(0,c.jsx)(p,{htmlFor:`${t}-select-keymap`},"KeyMap"),(0,c.jsx)(m,{type:"keymap",forID:t,value:u,options:d,onChange:b})))}},15646:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsWidgetCode=void 0;var r=a(n(41740)),i=a(n(31595)),o=a(n(40557));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l=t.DecapCmsWidgetCode={Widget:function(e={}){return function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(30762);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;to(o({},r.reactSelectStyles.container(e)),{},{"margin-top":"2px"}),control:e=>o(o({},r.reactSelectStyles.control(e)),{},{border:r.borders.textField,padding:0,fontSize:"13px",minHeight:"auto"}),dropdownIndicator:e=>o(o({},r.reactSelectStyles.dropdownIndicator(e)),{},{padding:"4px"}),option:(e,t)=>o(o({},r.reactSelectStyles.option(e,t)),{},{padding:0,paddingLeft:"8px"}),menu:e=>o(o({},r.reactSelectStyles.menu(e)),{},{margin:"2px 0"}),menuList:e=>o(o({},e),{},{"max-height":"200px"})});t.default=a},40557:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{default_language:{type:"string"},allow_language_selection:{type:"boolean"},output_code_only:{type:"boolean"},keys:{type:"object",properties:{code:{type:"string"},lang:{type:"string"}}}}}},2025:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(70894)),i=c(n(2784)),o=c(n(13980)),a=c(n(20977)),s=c(n(80184)),l=n(30762),u=n(28165);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(){return(0,u.jsx)("svg",{height:"20",width:"20",viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false"},(0,u.jsx)("path",{fill:"rgb(122, 130, 145)",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"}))}const p=(0,r.default)("div",{target:"e1bv0wj45",label:"ClearButton"})("position:absolute;right:6px;z-index:",l.zIndex.zIndex1000,";padding:8px;margin-top:11px;"),h=(0,r.default)("div",{target:"e1bv0wj44",label:"ClearButtonWrapper"})({name:"pw7jst",styles:"position:relative;width:100%"}),m=(0,r.default)("div",{target:"e1bv0wj43",label:"ColorSwatchBackground"})("position:absolute;z-index:",l.zIndex.zIndex1,";background:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==');height:38px;width:48px;margin-top:10px;margin-left:10px;border-radius:5px;"),g=(0,r.default)("div",{target:"e1bv0wj42",label:"ColorSwatch"})("position:absolute;z-index:",l.zIndex.zIndex2,";background:",(e=>e.background),";cursor:pointer;height:38px;width:48px;margin-top:10px;margin-left:10px;border-radius:5px;border:2px solid rgb(223, 223, 227);text-align:center;font-size:27px;line-height:1;padding-top:4px;user-select:none;color:",(e=>e.color),";"),v=(0,r.default)("div",{target:"e1bv0wj41",label:"ColorPickerContainer"})("position:absolute;z-index:",l.zIndex.zIndex1000,";margin-top:48px;margin-left:12px;"),y=(0,r.default)("div",{target:"e1bv0wj40",label:"ClickOutsideDiv"})({name:"yfl0u7",styles:"position:fixed;top:0;right:0;bottom:0;left:0"});class b extends i.default.Component{constructor(...e){super(...e),d(this,"state",{showColorPicker:!1}),d(this,"handleClick",(()=>{this.setState({showColorPicker:!this.state.showColorPicker})})),d(this,"handleClear",(()=>{this.props.onChange("")})),d(this,"handleClose",(()=>{this.setState({showColorPicker:!1})})),d(this,"handleChange",(e=>{const t=e.rgb.a<1?`rgba(${e.rgb.r}, ${e.rgb.g}, ${e.rgb.b}, ${e.rgb.a})`:e.hex;this.props.onChange(t)}))}render(){const{forID:e,value:t,field:n,onChange:r,classNameWrapper:o,setActiveStyle:l,setInactiveStyle:c}=this.props,d=n.get("allowInput",!1),b=!d&&t;return(0,u.jsx)(i.default.Fragment,null," ",b&&(0,u.jsx)(h,null,(0,u.jsx)(p,{onClick:this.handleClear},(0,u.jsx)(f,null))),(0,u.jsx)(m,null),(0,u.jsx)(g,{background:(0,s.default)(this.props.value).isValid()?this.props.value:"#fff",color:(0,s.default)(this.props.value).isValid()?"rgba(255, 255, 255, 0)":"rgb(223, 223, 227)",onClick:this.handleClick},"?"),this.state.showColorPicker&&(0,u.jsx)(v,null,(0,u.jsx)(y,{onClick:this.handleClose}),(0,u.jsx)(a.default,{color:t||"",onChange:this.handleChange,disableAlpha:!n.get("enableAlpha",!1)})),(0,u.jsx)("input",{type:"text",id:e,className:o,value:t||"",onChange:e=>r(e.target.value),onFocus:l,onBlur:c,style:{paddingLeft:"75px",paddingRight:"70px",color:!d&&"#bbb"},onClick:d?void 0:this.handleClick,readOnly:!d}))}}t.default=b,d(b,"propTypes",{onChange:o.default.func.isRequired,forID:o.default.string,value:o.default.node,classNameWrapper:o.default.string.isRequired,setActiveStyle:o.default.func.isRequired,setInactiveStyle:o.default.func.isRequired}),d(b,"defaultProps",{value:""})},65964:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(n(2784));var r=a(n(13980)),i=n(30762),o=n(28165);function a(e){return e&&e.__esModule?e:{default:e}}function s({value:e}){return(0,o.jsx)(i.WidgetPreviewContainer,null,e)}s.propTypes={value:r.default.node},t.default=s},4875:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsWidgetColorString=void 0;var r=o(n(2025)),i=o(n(65964));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const s=t.DecapCmsWidgetColorString={Widget:function(e={}){return function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(2784)),i=d(n(13980)),o=n(28165),a=d(n(28879)),s=d(n(89945)),l=d(n(33147)),u=d(n(10264)),c=n(30762);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}a.default.extend(s.default),a.default.extend(l.default),a.default.extend(u.default);var p={name:"1tfa1p6-Buttons",styles:"display:flex;gap:20px;width:fit-content;label:Buttons;"};function h({t:e,handleChange:t,inputFormat:n,isUtc:r}){return(0,o.jsx)("div",{css:p},(0,o.jsx)("button",{css:(0,o.css)(c.buttons.button," ",c.buttons.widget,";;label:Buttons;"),onClick:()=>t(r?a.default.utc().format(n):(0,a.default)().format(n))},e("editor.editorWidgets.datetime.now")),(0,o.jsx)("button",{css:(0,o.css)(c.buttons.button," ",c.buttons.widget,";;label:Buttons;"),onClick:()=>t("")},e("editor.editorWidgets.datetime.clear")))}var m={name:"ptu1mf-DateTimeControl",styles:"display:flex!important;gap:20px;align-items:center;label:DateTimeControl;"};class g extends r.default.Component{constructor(...e){super(...e),f(this,"isUtc",this.props.field.get("picker_utc")||!1),f(this,"isValidDate",(e=>(0,a.default)(e).isValid()||""===e)),f(this,"defaultValue",this.getDefaultValue()),f(this,"handleChange",(e=>{if(!this.isValidDate(e))return;const{onChange:t}=this.props;if(""===e)t("");else{const{format:n,inputFormat:r}=this.getFormat();t((0,a.default)(e,r).format(n))}})),f(this,"onInputChange",(e=>{const t=e.target.value,n=(0,a.default)(t);this.handleChange(""===t?"":n)}))}getFormat(){const{field:e}=this.props,t=(null==e?void 0:e.get("format"))||"YYYY-MM-DDTHH:mm:ss.SSS[Z]",n=null==e?void 0:e.get("date_format"),r=null==e?void 0:e.get("time_format");let i="YYYY-MM-DDTHH:mm",o="datetime-local";return n&&r?{format:`${n}T${r}`,inputType:o,inputFormat:i}:r?(o="time",i="HH:mm",{format:r,inputType:o,inputFormat:i}):n?(o="date",i="YYYY-MM-DD",{format:n,inputType:o,inputFormat:i}):{format:t,inputType:o,inputFormat:i}}getDefaultValue(){const{field:e}=this.props;return e.get("default")}componentDidMount(){const{value:e}=this.props,{inputFormat:t}=this.getFormat();void 0===e&&setTimeout((()=>{this.handleChange(void 0===this.defaultValue?(0,a.default)().format(t):this.defaultValue)}),0)}formatInputValue(e){if(""===e)return e;const{format:t,inputFormat:n}=this.getFormat(),r=this.isUtc?a.default.utc(e,t).format(n):(0,a.default)(e,t).format(n);return this.isValidDate(r)?r:this.isUtc?a.default.utc(e).format(n):(0,a.default)(e).format(n)}render(){const{forID:e,value:t,classNameWrapper:n,setActiveStyle:r,setInactiveStyle:i,t:a,isDisabled:s}=this.props,{inputType:l,inputFormat:u}=this.getFormat();return(0,o.jsx)("div",{className:n,css:m},(0,o.jsx)("input",{id:e,type:l,value:this.formatInputValue(t),onChange:this.onInputChange,onFocus:r,onBlur:i,disabled:s}),!s&&(0,o.jsx)(h,{t:a,handleChange:e=>this.handleChange(e),inputFormat:u,isUtc:this.isUtc}))}}f(g,"propTypes",{field:i.default.object.isRequired,forID:i.default.string,onChange:i.default.func.isRequired,classNameWrapper:i.default.string.isRequired,setActiveStyle:i.default.func.isRequired,setInactiveStyle:i.default.func.isRequired,value:i.default.oneOfType([i.default.object,i.default.string]),t:i.default.func.isRequired,isDisabled:i.default.bool}),f(g,"defaultProps",{isDisabled:!1}),t.default=g},94870:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(n(2784));var r=a(n(13980)),i=n(30762),o=n(28165);function a(e){return e&&e.__esModule?e:{default:e}}function s({value:e}){return(0,o.jsx)(i.WidgetPreviewContainer,null,e?e.toString():null)}s.propTypes={value:r.default.oneOfType([r.default.object,r.default.string])},t.default=s},23827:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsWidgetDatetime=void 0;var r=a(n(73811)),i=a(n(94870)),o=a(n(57217));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l=t.DecapCmsWidgetDatetime={Widget:function(e={}){return function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{format:{type:"string"},date_format:{oneOf:[{type:"string"},{type:"boolean"}]},time_format:{oneOf:[{type:"string"},{type:"boolean"}]},picker_utc:{type:"boolean"}}}},38437:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(70894)),i=(l(n(2784)),l(n(13980))),o=n(46670),a=n(30762),s=n(28165);function l(e){return e&&e.__esModule?e:{default:e}}const u=(0,r.default)((({href:e,path:t})=>(0,s.jsx)("a",{href:e,rel:"noopener noreferrer",target:"_blank"},t)),{target:"ecp3s3o0",label:"FileLink"})({name:"4zleql",styles:"display:block"});function c({values:e,getAsset:t,field:n}){return(0,s.jsx)("div",null,e.map((e=>(0,s.jsx)(u,{key:e,path:e,href:t(e,n)}))))}function d(e){const{value:t,getAsset:n,field:r}=e;return Array.isArray(t)||o.List.isList(t)?(0,s.jsx)(c,{values:t,getAsset:n,field:r}):(0,s.jsx)(u,{key:t,path:t,href:n(t,r)})}function f(e){return(0,s.jsx)(a.WidgetPreviewContainer,null,e.value?(0,s.jsx)(d,e):null)}f.propTypes={getAsset:i.default.func.isRequired,value:i.default.node},t.default=f},76889:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsWidgetFile=void 0;var r=a(n(28049)),i=a(n(38437)),o=a(n(14557));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l=(0,r.default)(),u=t.DecapCmsWidgetFile={Widget:function(e={}){return function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{allow_multiple:{type:"boolean"}}}},28049:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({forImage:e}={}){var t;return t=class extends o.default.Component{constructor(t){super(t),w(this,"handleChange",(t=>{const{field:n,onOpenMediaLibrary:r,value:i}=this.props;t.preventDefault();const o=this.getMediaLibraryFieldOptions();return r({controlID:this.controlID,forImage:e,privateUpload:n.get("private"),value:N(i),allowMultiple:!!o.get("allow_multiple",!0),config:o.get("config"),field:n})})),w(this,"handleUrl",(e=>t=>{t.preventDefault();const n=window.prompt(this.props.t(`editor.editorWidgets.${e}.promptUrl`));if(n)return this.props.onChange(n)})),w(this,"handleRemove",(e=>(e.preventDefault(),this.props.onClearMediaControl(this.controlID),this.props.onChange("")))),w(this,"onRemoveOne",(e=>()=>{const t=N(this.props.value);return t.splice(e,1),this.props.onChange(function(e){return Array.isArray(e)?e.length:u.List.isList(e)?e.size:e?1:0}(t)>0?[...t]:null)})),w(this,"onReplaceOne",(t=>()=>{const{field:n,onOpenMediaLibrary:r,value:i}=this.props,o=this.getMediaLibraryFieldOptions();return r({controlID:this.controlID,forImage:e,privateUpload:n.get("private"),value:N(i),replaceIndex:t,allowMultiple:!1,config:o.get("config"),field:n})})),w(this,"getMediaLibraryFieldOptions",(()=>{const{field:e}=this.props;return e.hasIn(["options","media_library"])?(F(e),e.getIn(["options","media_library"],(0,u.Map)())):e.get("media_library",(0,u.Map)())})),w(this,"allowsMultiple",(()=>{const e=this.getMediaLibraryFieldOptions();return e.get("config",!1)&&e.get("config").get("multiple",!1)})),w(this,"onSortEnd",(({oldIndex:e,newIndex:t})=>{const{value:n}=this.props,r=(0,h.arrayMoveImmutable)(n,e,t);return this.props.onChange(r)})),w(this,"getValidateValue",(()=>{const{value:e}=this.props;return e?j(e)?e.map((e=>(0,p.basename)(e))):(0,p.basename)(e):e})),w(this,"renderFileLink",(e=>{const t=x;if(!e||e.length<=t)return e;const n=`${e.slice(0,t/2)}…${e.slice(-t/2+1)}`;return(0,l.jsx)(R,{href:e,rel:"noopener",target:"_blank"},n)})),w(this,"renderFileLinks",(()=>{const{value:e}=this.props;return j(e)?(0,l.jsx)(D,null,(0,l.jsx)(M,null,e.map((e=>(0,l.jsx)("li",{key:e},this.renderFileLink(e)))))):(0,l.jsx)(D,null,this.renderFileLink(e))})),w(this,"renderImages",(()=>{const{getAsset:e,value:t,field:n}=this.props,r=function(e){return j(e)?N(e).map((e=>({id:(0,c.v4)(),value:e}))):e}(t);if(j(t))return(0,l.jsx)(P,{items:r,onSortEnd:this.onSortEnd,onRemoveOne:this.onRemoveOne,onReplaceOne:this.onReplaceOne,distance:4,getAsset:e,field:n,axis:"xy",lockToContainerEdges:!0});const i=e(t,n);return(0,l.jsx)(k,null,(0,l.jsx)(C,{src:i||""}))})),w(this,"renderSelection",(t=>{const{t:n,field:r}=this.props,i=this.allowsMultiple();return(0,l.jsx)("div",null,e?this.renderImages():null,(0,l.jsx)("div",null,e?null:this.renderFileLinks(),(0,l.jsx)(I,{onClick:this.handleChange},n(`editor.editorWidgets.${t}.${this.allowsMultiple()?"addMore":"chooseDifferent"}`)),r.get("choose_url",!0)&&!this.allowsMultiple()?(0,l.jsx)(I,{onClick:this.handleUrl(t)},n(`editor.editorWidgets.${t}.replaceUrl`)):null,(0,l.jsx)(L,{onClick:this.handleRemove},n(`editor.editorWidgets.${t}.remove${i?"All":""}`))))})),w(this,"renderNoSelection",(e=>{const{t,field:n}=this.props;return(0,l.jsx)(o.default.Fragment,null,(0,l.jsx)(I,{onClick:this.handleChange},t(`editor.editorWidgets.${e}.choose${this.allowsMultiple()?"Multiple":""}`)),n.get("choose_url",!0)?(0,l.jsx)(I,{onClick:this.handleUrl(e)},t(`editor.editorWidgets.${e}.chooseUrl`)):null)})),this.controlID=(0,c.v4)()}shouldComponentUpdate(e){if(this.props.value!==e.value||this.props.getAsset!==e.getAsset)return!0;const t=e.mediaPaths.get(this.controlID);return!(!t||e.value===t)}componentDidUpdate(){const{mediaPaths:e,value:t,onRemoveInsertedMedia:n,onChange:r}=this.props,i=e.get(this.controlID);i&&i!==t?r(i):i&&i===t&&n(this.controlID)}componentWillUnmount(){this.props.onRemoveMediaControl(this.controlID)}render(){const{value:t,classNameWrapper:n}=this.props,r=e?"image":"file";return(0,l.jsx)("div",{className:n},(0,l.jsx)("span",null,t?this.renderSelection(r):this.renderNoSelection(r)))}},w(t,"propTypes",{field:a.default.object.isRequired,getAsset:a.default.func.isRequired,mediaPaths:s.default.map.isRequired,onAddAsset:a.default.func.isRequired,onChange:a.default.func.isRequired,onRemoveInsertedMedia:a.default.func.isRequired,onOpenMediaLibrary:a.default.func.isRequired,onClearMediaControl:a.default.func.isRequired,onRemoveMediaControl:a.default.func.isRequired,classNameWrapper:a.default.string.isRequired,value:a.default.oneOfType([a.default.string,a.default.arrayOf(a.default.string),s.default.listOf(a.default.string)]),t:a.default.func.isRequired}),w(t,"defaultProps",{value:""}),t};var r=b(n(70894)),i=b(n(25291)),o=b(n(2784)),a=b(n(13980)),s=b(n(19155)),l=n(28165),u=n(46670),c=n(29987),d=n(13856),f=n(30762),p=n(33806),h=n(62045),m=n(61540),g=n(66548),v=n(82851),y=n(88366);function b(e){return e&&e.__esModule?e:{default:e}}function w(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;te.sortable?"pointer":"auto"),";"),E=(0,r.default)("div",{target:"e1hax4ql6",label:"SortableImageButtonsWrapper"})({name:"1ekgmip",styles:"display:flex;justify-content:center;column-gap:10px;margin-right:20px;margin-top:-10px;margin-bottom:10px"}),S=(0,r.default)("img",{target:"e1hax4ql5",label:"StyledImage"})({name:"ukfjzf",styles:"width:100%;height:100%;object-fit:contain"});function C(e){return(0,l.jsx)(S,_({role:"presentation"},e))}function T({onRemove:e,onReplace:t}){return(0,l.jsx)(E,null,(0,l.jsx)(f.IconButton,{size:"small",type:"media",onClick:t}),(0,l.jsx)(f.IconButton,{size:"small",type:"close",onClick:e}))}function O(e){const{attributes:t,listeners:n,setNodeRef:r,transform:i,transition:o}=(0,g.useSortable)({id:e.id}),a={transform:v.CSS.Transform.toString(i),transition:o},{itemValue:s,getAsset:u,field:c,onRemove:d,onReplace:f}=e;return(0,l.jsx)("div",_({ref:r,style:a},t,n),(0,l.jsx)(k,{sortable:!0},(0,l.jsx)(C,{src:u(s,c)||""})),(0,l.jsx)(T,{item:s,onRemove:d,onReplace:f}))}var A={name:"a42x49-SortableMultiImageWrapper",styles:"display:flex;flex-wrap:wrap;label:SortableMultiImageWrapper;"};function P({items:e,getAsset:t,field:n,onSortEnd:r,onRemoveOne:i,onReplaceOne:o}){const a={distance:4},s=(0,m.useSensors)((0,m.useSensor)(m.MouseSensor,{activationConstraint:a}),(0,m.useSensor)(m.TouchSensor,{activationConstraint:a}));return(0,l.jsx)("div",{css:A},(0,l.jsx)(m.DndContext,{modifiers:[y.restrictToParentElement],collisionDetection:m.closestCenter,sensors:s,onDragEnd:function({active:t,over:n}){r({oldIndex:e.findIndex((e=>e.id===t.id)),newIndex:e.findIndex((e=>e.id===n.id))})}},(0,l.jsx)(g.SortableContext,{items:e},e.map(((e,r)=>(0,l.jsx)(O,{key:e.id,id:e.id,index:r,itemValue:e.value,getAsset:t,field:n,onRemove:i(r),onReplace:o(r)}))))))}const R=(0,r.default)("a",{target:"e1hax4ql4",label:"FileLink"})({name:"7mbjrw",styles:"margin-bottom:20px;font-weight:normal;color:inherit;&:hover,&:active,&:focus{text-decoration:underline;}"}),D=(0,r.default)("div",{target:"e1hax4ql3",label:"FileLinks"})({name:"cn3xcj",styles:"margin-bottom:12px"}),M=(0,r.default)("ul",{target:"e1hax4ql2",label:"FileLinkList"})({name:"ffhm6p",styles:"list-style-type:none"}),I=(0,r.default)("button",{target:"e1hax4ql1",label:"FileWidgetButton"})(f.buttons.button,";",f.components.badge,";margin-bottom:12px;"),L=(0,r.default)("button",{target:"e1hax4ql0",label:"FileWidgetButtonRemove"})(f.buttons.button,";",f.components.badgeDanger,";");function j(e){return Array.isArray(e)||u.List.isList(e)}function N(e){return u.List.isList(e)?e.toArray():null!=e?e:""}const F=(0,i.default)((e=>console.warn(d.oneLine` + `,options:w(w({lineNumbers:!0},n.codeMirrorConfig),{},{extraKeys:w({"Shift-Tab":"indentLess",Tab:"indentMore"},n.codeMirrorConfig.extraKeys||{}),theme:l,mode:p,keyMap:a,viewportMargin:1/0}),detach:!0,editorDidMount:e=>{this.cm=e,r&&this.handleFocus()},value:c,onChange:(e,t,n)=>this.handleChange(n),onFocus:this.handleFocus,onBlur:this.handleBlur}))))}}t.default=T,_(T,"propTypes",{field:l.default.map.isRequired,onChange:s.default.func.isRequired,value:s.default.node,forID:s.default.string.isRequired,classNameWrapper:s.default.string.isRequired,widget:s.default.object.isRequired,isParentListCollapsed:s.default.bool})},31595:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(85505)),i=(l(n(2784)),l(n(13980))),o=n(46670),a=n(30762),s=n(28165);function l(e){return e&&e.__esModule?e:{default:e}}function u(e){return(0,s.jsx)(a.WidgetPreviewContainer,null,(0,s.jsx)("pre",null,(0,s.jsx)("code",null,(t=e.value,n=e.field,(0,r.default)(t)?t:o.Map.isMap(t)?t.get(n.getIn(["keys","code"],"code"),""):""))));var t,n}u.propTypes={value:i.default.node},t.default=u},33081:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(70894)),i=(a(n(2784)),n(30762)),o=n(28165);function a(e){return e&&e.__esModule?e:{default:e}}const s=(0,r.default)("button",{target:"epeop3r0",label:"StyledSettingsButton"})(i.buttons.button,";",i.buttons.default,";",i.shadows.drop,";display:block;position:absolute;z-index:",i.zIndex.zIndex100,";right:8px;top:8px;opacity:0.8;padding:2px 4px;line-height:1;height:auto;",i.Icon,"{position:relative;top:1px;}");t.default=function({showClose:e,onClick:t}){return(0,o.jsx)(s,{onClick:t},(0,o.jsx)(i.Icon,{type:e?"close":"settings",size:"small"}))}},8674:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(70894)),i=d(n(2784)),o=d(n(31776)),a=d(n(87202)),s=n(30762),l=d(n(33081)),u=d(n(15389)),c=n(28165);function d(e){return e&&e.__esModule?e:{default:e}}const f=(0,r.default)("div",{target:"e147sj9s2",label:"SettingsPaneContainer"})("position:absolute;right:0;width:200px;z-index:",s.zIndex.zIndex10,";height:100%;background-color:#fff;overflow:hidden;overflow-y:scroll;padding:12px;border-radius:0 3px 3px 0;",s.shadows.drop,";"),p=(0,r.default)("label",{target:"e147sj9s1",label:"SettingsFieldLabel"})(s.text.fieldLabel,";font-size:11px;display:block;margin-top:8px;margin-bottom:2px;"),h=(0,r.default)("h3",{target:"e147sj9s0",label:"SettingsSectionTitle"})({name:"punfmt",styles:"font-size:14px;margin-top:14px;margin-bottom:0;&:first-of-type{margin-top:4px;}"});function m({value:e,options:t,onChange:n,forID:r,type:i,autoFocus:a}){return(0,c.jsx)(o.default,{inputId:`${r}-select-${i}`,styles:u.default,value:e,options:t,onChange:e=>n(e.value),menuPlacement:"auto",captureMenuScroll:!1,autoFocus:a})}t.default=function({hideSettings:e,forID:t,modes:n,mode:r,theme:o,themes:s,keyMap:u,keyMaps:d,allowLanguageSelection:g,onChangeLang:v,onChangeTheme:y,onChangeKeyMap:b}){return(0,c.jsx)(f,{onKeyDown:t=>(0,a.default)("esc",t)&&e()},(0,c.jsx)(l.default,{onClick:e,showClose:!0}),g&&(0,c.jsx)(i.default.Fragment,null,(0,c.jsx)(h,null,"Field Settings"),(0,c.jsx)(p,{htmlFor:`${t}-select-mode`},"Mode"),(0,c.jsx)(m,{type:"mode",forID:t,value:r,options:n,onChange:v,autoFocus:!0})),(0,c.jsx)(i.default.Fragment,null,(0,c.jsx)(h,null,"Global Settings"),s&&(0,c.jsx)(i.default.Fragment,null,(0,c.jsx)(p,{htmlFor:`${t}-select-theme`},"Theme"),(0,c.jsx)(m,{type:"theme",forID:t,value:{value:o,label:o},options:s.map((e=>({value:e,label:e}))),onChange:y,autoFocus:!g})),(0,c.jsx)(p,{htmlFor:`${t}-select-keymap`},"KeyMap"),(0,c.jsx)(m,{type:"keymap",forID:t,value:u,options:d,onChange:b})))}},15646:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsWidgetCode=void 0;var r=a(n(41740)),i=a(n(31595)),o=a(n(40557));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l=t.DecapCmsWidgetCode={Widget:function(e={}){return function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(30762);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;to(o({},r.reactSelectStyles.container(e)),{},{"margin-top":"2px"}),control:e=>o(o({},r.reactSelectStyles.control(e)),{},{border:r.borders.textField,padding:0,fontSize:"13px",minHeight:"auto"}),dropdownIndicator:e=>o(o({},r.reactSelectStyles.dropdownIndicator(e)),{},{padding:"4px"}),option:(e,t)=>o(o({},r.reactSelectStyles.option(e,t)),{},{padding:0,paddingLeft:"8px"}),menu:e=>o(o({},r.reactSelectStyles.menu(e)),{},{margin:"2px 0"}),menuList:e=>o(o({},e),{},{"max-height":"200px"})});t.default=a},40557:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{default_language:{type:"string"},allow_language_selection:{type:"boolean"},output_code_only:{type:"boolean"},keys:{type:"object",properties:{code:{type:"string"},lang:{type:"string"}}}}}},2025:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(70894)),i=c(n(2784)),o=c(n(13980)),a=c(n(20977)),s=c(n(80184)),l=n(30762),u=n(28165);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(){return(0,u.jsx)("svg",{height:"20",width:"20",viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false"},(0,u.jsx)("path",{fill:"rgb(122, 130, 145)",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"}))}const p=(0,r.default)("div",{target:"e1bv0wj45",label:"ClearButton"})("position:absolute;right:6px;z-index:",l.zIndex.zIndex1000,";padding:8px;margin-top:11px;"),h=(0,r.default)("div",{target:"e1bv0wj44",label:"ClearButtonWrapper"})({name:"pw7jst",styles:"position:relative;width:100%"}),m=(0,r.default)("div",{target:"e1bv0wj43",label:"ColorSwatchBackground"})("position:absolute;z-index:",l.zIndex.zIndex1,";background:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==');height:38px;width:48px;margin-top:10px;margin-left:10px;border-radius:5px;"),g=(0,r.default)("div",{target:"e1bv0wj42",label:"ColorSwatch"})("position:absolute;z-index:",l.zIndex.zIndex2,";background:",(e=>e.background),";cursor:pointer;height:38px;width:48px;margin-top:10px;margin-left:10px;border-radius:5px;border:2px solid rgb(223, 223, 227);text-align:center;font-size:27px;line-height:1;padding-top:4px;user-select:none;color:",(e=>e.color),";"),v=(0,r.default)("div",{target:"e1bv0wj41",label:"ColorPickerContainer"})("position:absolute;z-index:",l.zIndex.zIndex1000,";margin-top:48px;margin-left:12px;"),y=(0,r.default)("div",{target:"e1bv0wj40",label:"ClickOutsideDiv"})({name:"yfl0u7",styles:"position:fixed;top:0;right:0;bottom:0;left:0"});class b extends i.default.Component{constructor(...e){super(...e),d(this,"state",{showColorPicker:!1}),d(this,"handleClick",(()=>{this.setState({showColorPicker:!this.state.showColorPicker})})),d(this,"handleClear",(()=>{this.props.onChange("")})),d(this,"handleClose",(()=>{this.setState({showColorPicker:!1})})),d(this,"handleChange",(e=>{const t=e.rgb.a<1?`rgba(${e.rgb.r}, ${e.rgb.g}, ${e.rgb.b}, ${e.rgb.a})`:e.hex;this.props.onChange(t)}))}render(){const{forID:e,value:t,field:n,onChange:r,classNameWrapper:o,setActiveStyle:l,setInactiveStyle:c}=this.props,d=n.get("allowInput",!1),b=!d&&t;return(0,u.jsx)(i.default.Fragment,null," ",b&&(0,u.jsx)(h,null,(0,u.jsx)(p,{onClick:this.handleClear},(0,u.jsx)(f,null))),(0,u.jsx)(m,null),(0,u.jsx)(g,{background:(0,s.default)(this.props.value).isValid()?this.props.value:"#fff",color:(0,s.default)(this.props.value).isValid()?"rgba(255, 255, 255, 0)":"rgb(223, 223, 227)",onClick:this.handleClick},"?"),this.state.showColorPicker&&(0,u.jsx)(v,null,(0,u.jsx)(y,{onClick:this.handleClose}),(0,u.jsx)(a.default,{color:t||"",onChange:this.handleChange,disableAlpha:!n.get("enableAlpha",!1)})),(0,u.jsx)("input",{type:"text",id:e,className:o,value:t||"",onChange:e=>r(e.target.value),onFocus:l,onBlur:c,style:{paddingLeft:"75px",paddingRight:"70px",color:!d&&"#bbb"},onClick:d?void 0:this.handleClick,readOnly:!d}))}}t.default=b,d(b,"propTypes",{onChange:o.default.func.isRequired,forID:o.default.string,value:o.default.node,classNameWrapper:o.default.string.isRequired,setActiveStyle:o.default.func.isRequired,setInactiveStyle:o.default.func.isRequired}),d(b,"defaultProps",{value:""})},65964:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(n(2784));var r=a(n(13980)),i=n(30762),o=n(28165);function a(e){return e&&e.__esModule?e:{default:e}}function s({value:e}){return(0,o.jsx)(i.WidgetPreviewContainer,null,e)}s.propTypes={value:r.default.node},t.default=s},4875:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsWidgetColorString=void 0;var r=o(n(2025)),i=o(n(65964));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const s=t.DecapCmsWidgetColorString={Widget:function(e={}){return function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(2784)),i=d(n(13980)),o=n(28165),a=d(n(28879)),s=d(n(89945)),l=d(n(33147)),u=d(n(10264)),c=n(30762);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}a.default.extend(s.default),a.default.extend(l.default),a.default.extend(u.default);var p={name:"1tfa1p6-Buttons",styles:"display:flex;gap:20px;width:fit-content;label:Buttons;"};function h({t:e,handleChange:t,getNow:n}){return(0,o.jsx)("div",{css:p},(0,o.jsx)("button",{css:(0,o.css)(c.buttons.button," ",c.buttons.widget,";;label:Buttons;"),onClick:()=>t(n()),"data-testid":"now-button"},e("editor.editorWidgets.datetime.now")),(0,o.jsx)("button",{css:(0,o.css)(c.buttons.button," ",c.buttons.widget,";;label:Buttons;"),onClick:()=>t(""),"data-testid":"clear-button"},e("editor.editorWidgets.datetime.clear")))}var m={name:"1mn76l5-DateTimeControl",styles:"font-size:0.8em;color:#666;label:DateTimeControl;"},g={name:"ptu1mf-DateTimeControl",styles:"display:flex!important;gap:20px;align-items:center;label:DateTimeControl;"};class v extends r.default.Component{constructor(...e){super(...e),f(this,"isUtc",this.props.field.get("picker_utc")||!1),f(this,"isValidDate",(e=>(0,a.default)(e,this.getFormat().inputFormat).isValid()||""===e)),f(this,"handleChange",(e=>{if(!this.isValidDate(e))return;const{onChange:t}=this.props;if(""===e)t("");else{const{format:n,inputFormat:r}=this.getFormat();t((0,a.default)(e,r).format(n))}})),f(this,"onInputChange",(e=>{const t=e.target.value;this.handleChange(t)}))}escapeZ(e){return/Z(?![\]])/.test(e)?e.replace("Z","[Z]"):e}getFormat(){const{field:e}=this.props;let t="datetime-local",n="YYYY-MM-DDTHH:mm",r="YYYY-MM-DDTHH:mm:ss.SSS[Z]",i=null==e?void 0:e.get("format"),o=null==e?void 0:e.get("date_format"),a=null==e?void 0:e.get("time_format");return!0===o&&(o="YYYY-MM-DD"),!0===a&&(a="HH:mm"),this.isUtc&&(i=this.escapeZ(i),o=this.escapeZ(o),a=this.escapeZ(a)),"string"==typeof o&&"string"==typeof a?r=`${o}T${a}`:"string"==typeof a?(t="time",r=a):"string"==typeof o&&(t="date",r=o),"string"==typeof i&&(r=i,t="datetime-local"),!1===o&&(t="time"),!1===a&&(t="date"),"datetime-local"===t&&(n="YYYY-MM-DDTHH:mm"),"date"===t&&(n="YYYY-MM-DD"),"time"===t&&(n="HH:mm"),{format:r,inputType:t,inputFormat:n}}getNow(){const{inputFormat:e}=this.getFormat();return this.isUtc?a.default.utc().format(e):(0,a.default)().format(e)}formatInputValue(e){if(""===e)return e;const{format:t,inputFormat:n}=this.getFormat();if("string"==typeof e&&"{{now}}"===(null==e?void 0:e.replace(/\s+/g,"")))return this.getNow();const r=this.isUtc?a.default.utc(e,t).format(n):(0,a.default)(e,t).format(n);return this.isValidDate(r)?r:this.isUtc?a.default.utc(e).format(n):(0,a.default)(e).format(n)}render(){const{forID:e,value:t,classNameWrapper:n,setActiveStyle:r,setInactiveStyle:i,t:a,isDisabled:s}=this.props,{inputType:l}=this.getFormat();return(0,o.jsx)("div",{className:n,css:g},(0,o.jsx)("input",{id:e,"data-testid":e,type:l,value:t?this.formatInputValue(t):"",onChange:this.onInputChange,onFocus:r,onBlur:i,disabled:s}),this.isUtc&&(0,o.jsx)("span",{css:m},"UTC"),!s&&(0,o.jsx)(h,{t:a,handleChange:e=>this.handleChange(e),getNow:()=>this.getNow()}))}}f(v,"propTypes",{field:i.default.object.isRequired,forID:i.default.string,onChange:i.default.func.isRequired,classNameWrapper:i.default.string.isRequired,setActiveStyle:i.default.func.isRequired,setInactiveStyle:i.default.func.isRequired,value:i.default.oneOfType([i.default.object,i.default.string]),t:i.default.func.isRequired,isDisabled:i.default.bool}),f(v,"defaultProps",{isDisabled:!1}),t.default=v},94870:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(n(2784));var r=a(n(13980)),i=n(30762),o=n(28165);function a(e){return e&&e.__esModule?e:{default:e}}function s({value:e}){return(0,o.jsx)(i.WidgetPreviewContainer,null,e?e.toString():null)}s.propTypes={value:r.default.oneOfType([r.default.object,r.default.string])},t.default=s},23827:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsWidgetDatetime=void 0;var r=a(n(73811)),i=a(n(94870)),o=a(n(57217));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l=t.DecapCmsWidgetDatetime={Widget:function(e={}){return function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{format:{type:"string"},date_format:{oneOf:[{type:"string"},{type:"boolean"}]},time_format:{oneOf:[{type:"string"},{type:"boolean"}]},picker_utc:{type:"boolean"}}}},38437:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(70894)),i=(l(n(2784)),l(n(13980))),o=n(46670),a=n(30762),s=n(28165);function l(e){return e&&e.__esModule?e:{default:e}}const u=(0,r.default)((({href:e,path:t})=>(0,s.jsx)("a",{href:e,rel:"noopener noreferrer",target:"_blank"},t)),{target:"ecp3s3o0",label:"FileLink"})({name:"4zleql",styles:"display:block"});function c({values:e,getAsset:t,field:n}){return(0,s.jsx)("div",null,e.map((e=>(0,s.jsx)(u,{key:e,path:e,href:t(e,n)}))))}function d(e){const{value:t,getAsset:n,field:r}=e;return Array.isArray(t)||o.List.isList(t)?(0,s.jsx)(c,{values:t,getAsset:n,field:r}):(0,s.jsx)(u,{key:t,path:t,href:n(t,r)})}function f(e){return(0,s.jsx)(a.WidgetPreviewContainer,null,e.value?(0,s.jsx)(d,e):null)}f.propTypes={getAsset:i.default.func.isRequired,value:i.default.node},t.default=f},76889:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsWidgetFile=void 0;var r=a(n(28049)),i=a(n(38437)),o=a(n(14557));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l=(0,r.default)(),u=t.DecapCmsWidgetFile={Widget:function(e={}){return function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{allow_multiple:{type:"boolean"}}}},28049:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({forImage:e}={}){var t;return t=class extends o.default.Component{constructor(t){super(t),w(this,"handleChange",(t=>{const{field:n,onOpenMediaLibrary:r,value:i}=this.props;t.preventDefault();const o=this.getMediaLibraryFieldOptions();return r({controlID:this.controlID,forImage:e,privateUpload:n.get("private"),value:N(i),allowMultiple:!!o.get("allow_multiple",!0),config:o.get("config"),field:n})})),w(this,"handleUrl",(e=>t=>{t.preventDefault();const n=window.prompt(this.props.t(`editor.editorWidgets.${e}.promptUrl`));if(n)return this.props.onChange(n)})),w(this,"handleRemove",(e=>(e.preventDefault(),this.props.onClearMediaControl(this.controlID),this.props.onChange("")))),w(this,"onRemoveOne",(e=>()=>{const t=N(this.props.value);return t.splice(e,1),this.props.onChange(function(e){return Array.isArray(e)?e.length:u.List.isList(e)?e.size:e?1:0}(t)>0?[...t]:null)})),w(this,"onReplaceOne",(t=>()=>{const{field:n,onOpenMediaLibrary:r,value:i}=this.props,o=this.getMediaLibraryFieldOptions();return r({controlID:this.controlID,forImage:e,privateUpload:n.get("private"),value:N(i),replaceIndex:t,allowMultiple:!1,config:o.get("config"),field:n})})),w(this,"getMediaLibraryFieldOptions",(()=>{const{field:e}=this.props;return e.hasIn(["options","media_library"])?(F(e),e.getIn(["options","media_library"],(0,u.Map)())):e.get("media_library",(0,u.Map)())})),w(this,"allowsMultiple",(()=>{const e=this.getMediaLibraryFieldOptions();return e.get("config",!1)&&e.get("config").get("multiple",!1)})),w(this,"onSortEnd",(({oldIndex:e,newIndex:t})=>{const{value:n}=this.props,r=(0,h.arrayMoveImmutable)(n,e,t);return this.props.onChange(r)})),w(this,"getValidateValue",(()=>{const{value:e}=this.props;return e?j(e)?e.map((e=>(0,p.basename)(e))):(0,p.basename)(e):e})),w(this,"renderFileLink",(e=>{const t=x;if(!e||e.length<=t)return e;const n=`${e.slice(0,t/2)}…${e.slice(-t/2+1)}`;return(0,l.jsx)(R,{href:e,rel:"noopener",target:"_blank"},n)})),w(this,"renderFileLinks",(()=>{const{value:e}=this.props;return j(e)?(0,l.jsx)(D,null,(0,l.jsx)(M,null,e.map((e=>(0,l.jsx)("li",{key:e},this.renderFileLink(e)))))):(0,l.jsx)(D,null,this.renderFileLink(e))})),w(this,"renderImages",(()=>{const{getAsset:e,value:t,field:n}=this.props,r=function(e){return j(e)?N(e).map((e=>({id:(0,c.v4)(),value:e}))):e}(t);if(j(t))return(0,l.jsx)(P,{items:r,onSortEnd:this.onSortEnd,onRemoveOne:this.onRemoveOne,onReplaceOne:this.onReplaceOne,distance:4,getAsset:e,field:n,axis:"xy",lockToContainerEdges:!0});const i=e(t,n);return(0,l.jsx)(k,null,(0,l.jsx)(S,{src:i||""}))})),w(this,"renderSelection",(t=>{const{t:n,field:r}=this.props,i=this.allowsMultiple();return(0,l.jsx)("div",null,e?this.renderImages():null,(0,l.jsx)("div",null,e?null:this.renderFileLinks(),(0,l.jsx)(I,{onClick:this.handleChange},n(`editor.editorWidgets.${t}.${this.allowsMultiple()?"addMore":"chooseDifferent"}`)),r.get("choose_url",!0)&&!this.allowsMultiple()?(0,l.jsx)(I,{onClick:this.handleUrl(t)},n(`editor.editorWidgets.${t}.replaceUrl`)):null,(0,l.jsx)(L,{onClick:this.handleRemove},n(`editor.editorWidgets.${t}.remove${i?"All":""}`))))})),w(this,"renderNoSelection",(e=>{const{t,field:n}=this.props;return(0,l.jsx)(o.default.Fragment,null,(0,l.jsx)(I,{onClick:this.handleChange},t(`editor.editorWidgets.${e}.choose${this.allowsMultiple()?"Multiple":""}`)),n.get("choose_url",!0)?(0,l.jsx)(I,{onClick:this.handleUrl(e)},t(`editor.editorWidgets.${e}.chooseUrl`)):null)})),this.controlID=(0,c.v4)()}shouldComponentUpdate(e){if(this.props.value!==e.value||this.props.getAsset!==e.getAsset)return!0;const t=e.mediaPaths.get(this.controlID);return!(!t||e.value===t)}componentDidUpdate(){const{mediaPaths:e,value:t,onRemoveInsertedMedia:n,onChange:r}=this.props,i=e.get(this.controlID);i&&i!==t?r(i):i&&i===t&&n(this.controlID)}componentWillUnmount(){this.props.onRemoveMediaControl(this.controlID)}render(){const{value:t,classNameWrapper:n}=this.props,r=e?"image":"file";return(0,l.jsx)("div",{className:n},(0,l.jsx)("span",null,t?this.renderSelection(r):this.renderNoSelection(r)))}},w(t,"propTypes",{field:a.default.object.isRequired,getAsset:a.default.func.isRequired,mediaPaths:s.default.map.isRequired,onAddAsset:a.default.func.isRequired,onChange:a.default.func.isRequired,onRemoveInsertedMedia:a.default.func.isRequired,onOpenMediaLibrary:a.default.func.isRequired,onClearMediaControl:a.default.func.isRequired,onRemoveMediaControl:a.default.func.isRequired,classNameWrapper:a.default.string.isRequired,value:a.default.oneOfType([a.default.string,a.default.arrayOf(a.default.string),s.default.listOf(a.default.string)]),t:a.default.func.isRequired}),w(t,"defaultProps",{value:""}),t};var r=b(n(70894)),i=b(n(25291)),o=b(n(2784)),a=b(n(13980)),s=b(n(19155)),l=n(28165),u=n(46670),c=n(29987),d=n(13856),f=n(30762),p=n(33806),h=n(62045),m=n(61540),g=n(66548),v=n(82851),y=n(88366);function b(e){return e&&e.__esModule?e:{default:e}}function w(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;te.sortable?"pointer":"auto"),";"),E=(0,r.default)("div",{target:"e1hax4ql6",label:"SortableImageButtonsWrapper"})({name:"1ekgmip",styles:"display:flex;justify-content:center;column-gap:10px;margin-right:20px;margin-top:-10px;margin-bottom:10px"}),C=(0,r.default)("img",{target:"e1hax4ql5",label:"StyledImage"})({name:"ukfjzf",styles:"width:100%;height:100%;object-fit:contain"});function S(e){return(0,l.jsx)(C,_({role:"presentation"},e))}function A({onRemove:e,onReplace:t}){return(0,l.jsx)(E,null,(0,l.jsx)(f.IconButton,{size:"small",type:"media",onClick:t}),(0,l.jsx)(f.IconButton,{size:"small",type:"close",onClick:e}))}function T(e){const{attributes:t,listeners:n,setNodeRef:r,transform:i,transition:o}=(0,g.useSortable)({id:e.id}),a={transform:v.CSS.Transform.toString(i),transition:o},{itemValue:s,getAsset:u,field:c,onRemove:d,onReplace:f}=e;return(0,l.jsx)("div",_({ref:r,style:a},t,n),(0,l.jsx)(k,{sortable:!0},(0,l.jsx)(S,{src:u(s,c)||""})),(0,l.jsx)(A,{item:s,onRemove:d,onReplace:f}))}var O={name:"a42x49-SortableMultiImageWrapper",styles:"display:flex;flex-wrap:wrap;label:SortableMultiImageWrapper;"};function P({items:e,getAsset:t,field:n,onSortEnd:r,onRemoveOne:i,onReplaceOne:o}){const a={distance:4},s=(0,m.useSensors)((0,m.useSensor)(m.MouseSensor,{activationConstraint:a}),(0,m.useSensor)(m.TouchSensor,{activationConstraint:a}));return(0,l.jsx)("div",{css:O},(0,l.jsx)(m.DndContext,{modifiers:[y.restrictToParentElement],collisionDetection:m.closestCenter,sensors:s,onDragEnd:function({active:t,over:n}){r({oldIndex:e.findIndex((e=>e.id===t.id)),newIndex:e.findIndex((e=>e.id===n.id))})}},(0,l.jsx)(g.SortableContext,{items:e},e.map(((e,r)=>(0,l.jsx)(T,{key:e.id,id:e.id,index:r,itemValue:e.value,getAsset:t,field:n,onRemove:i(r),onReplace:o(r)}))))))}const R=(0,r.default)("a",{target:"e1hax4ql4",label:"FileLink"})({name:"7mbjrw",styles:"margin-bottom:20px;font-weight:normal;color:inherit;&:hover,&:active,&:focus{text-decoration:underline;}"}),D=(0,r.default)("div",{target:"e1hax4ql3",label:"FileLinks"})({name:"cn3xcj",styles:"margin-bottom:12px"}),M=(0,r.default)("ul",{target:"e1hax4ql2",label:"FileLinkList"})({name:"ffhm6p",styles:"list-style-type:none"}),I=(0,r.default)("button",{target:"e1hax4ql1",label:"FileWidgetButton"})(f.buttons.button,";",f.components.badge,";margin-bottom:12px;"),L=(0,r.default)("button",{target:"e1hax4ql0",label:"FileWidgetButtonRemove"})(f.buttons.button,";",f.components.badgeDanger,";");function j(e){return Array.isArray(e)||u.List.isList(e)}function N(e){return u.List.isList(e)?e.toArray():null!=e?e:""}const F=(0,i.default)((e=>console.warn(d.oneLine` Decap CMS config: ${e.get("name")} field: property "options" has been deprecated for the ${e.get("widget")} widget and will be removed in the next major release. Rather than \`field.options.media_library\`, apply media library options for this widget under \`field.media_library\`. -`)))},60699:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(70894)),i=(l(n(2784)),l(n(13980))),o=n(46670),a=n(30762),s=n(28165);function l(e){return e&&e.__esModule?e:{default:e}}const u=(0,r.default)((({src:e})=>(0,s.jsx)("img",{src:e||"",role:"presentation"})),{target:"eeuykvb0",label:"StyledImage"})({name:"waguu7",styles:"display:block;max-width:100%;height:auto"});function c({getAsset:e,value:t,field:n}){return(0,s.jsx)(u,{src:e(t,n)})}function d(e){const{value:t,getAsset:n,field:r}=e;return Array.isArray(t)||o.List.isList(t)?t.map(((e,t)=>(0,s.jsx)(c,{key:t,value:e,getAsset:n,field:r}))):(0,s.jsx)(c,e)}function f(e){return(0,s.jsx)(a.WidgetPreviewContainer,null,e.value?(0,s.jsx)(d,e):null)}f.propTypes={getAsset:i.default.func.isRequired,value:i.default.node},t.default=f},79386:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsWidgetImage=void 0;var r=a(n(76889)),i=a(n(60699)),o=a(n(79368));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l=r.default.withFileControl({forImage:!0}),u=t.DecapCmsWidgetImage={Widget:function(e={}){return function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{allow_multiple:{type:"boolean"}}}},11761:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=_(n(70894)),i=_(n(74930)),o=_(n(45455)),a=_(n(83465)),s=_(n(2784)),l=_(n(13980)),u=_(n(19155)),c=n(28165),d=n(46670),f=n(29987),p=_(n(16044)),h=n(61540),m=n(66548),g=n(88366),v=n(82851),y=n(30762),b=n(1704),w=n(95639);function _(e){return e&&e.__esModule?e:{default:e}}function x(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;te.collapsed?"block":"none"),";border-top:0;color:",(e=>e.error?y.colors.errorText:"inherit"),";background-color:",y.colors.textFieldBorder,";padding:13px;border-radius:0 0 ",y.lengths.borderRadius," ",y.lengths.borderRadius,";"),O=`\n padding: ${y.lengths.objectWidgetTopBarContainerPadding};\n `,A={listControlItem:{name:"1pb8r5b-listControlItem",styles:"margin-top:18px;&:first-of-type{margin-top:26px;};label:listControlItem;"},listControlItemCollapsed:{name:"1gjco9g-listControlItemCollapsed",styles:"padding-bottom:0;label:listControlItemCollapsed;"}};function P({items:e,children:t,onSortEnd:n,keys:r}){const i={distance:4},o=(0,h.useSensors)((0,h.useSensor)(h.MouseSensor,{activationConstraint:i}),(0,h.useSensor)(h.TouchSensor,{activationConstraint:i}));return(0,c.jsx)("div",null,(0,c.jsx)(h.DndContext,{modifiers:[g.restrictToParentElement],collisionDetection:h.closestCenter,sensors:o,onDragEnd:function({active:e,over:t}){n({oldIndex:r.indexOf(e.id),newIndex:r.indexOf(t.id)})}},(0,c.jsx)(m.SortableContext,{items:e},t)))}function R(e){const{setNodeRef:t,transform:n,transition:r}=(0,m.useSortable)({id:e.id}),i={transform:v.CSS.Transform.toString(n),transition:r},{collapsed:o}=e;return(0,c.jsx)(S,{sortable:!0,ref:t,style:i,css:[A.listControlItem,o&&A.listControlItemCollapsed,";label:SortableListItem;"]},e.children)}function D({children:e,id:t}){const{attributes:n,listeners:r}=(0,m.useSortable)({id:t});return(0,c.jsx)("div",k({},n,r),e)}const M="SINGLE",I="MULTIPLE",L="MIXED";function j(e,t,n,r){const i=b.stringTemplate.addFileTemplateFields(t.get("path"),r.set("fields.label",n));return b.stringTemplate.compileStringTemplate(e,null,"",i)}function N(e,t){return!!d.Map.isMap(t)||(console.warn(`'${e.get("name")}' field item value value should be a map but is a '${typeof t}'`),!1)}function F({field:e,isActive:t,hasErrors:n,uniqueFieldId:r,isFieldOptional:i,t:o}){const a=`${e.get("label",e.get("name"))}`;return(0,c.jsx)(y.FieldLabel,{isActive:t,hasErrors:n,htmlFor:r},a," ",i?` (${o("editor.editorControl.field.optional")})`:"")}class B extends s.default.Component{constructor(e){super(e),x(this,"validations",[]),x(this,"valueToString",(e=>{let t;return d.List.isList(e)||Array.isArray(e)?t=e.join(","):(console.warn(`Expected List value to be an array but received '${e}' with type of '${typeof e}'. Please check the value provided to the '${this.props.field.get("name")}' field`),t=String(e)),t.replace(/,([^\s]|$)/g,", $1")})),x(this,"getValueType",(()=>{const{field:e}=this.props;return e.get("fields")?I:e.get("field")?M:e.get(w.TYPES_KEY)?L:null})),x(this,"uniqueFieldId",(0,i.default)(`${this.props.field.get("name")}-field-`)),x(this,"handleChange",(e=>{const{onChange:t}=this.props,n=this.state.value,r=e.target.value.trim(),i=r?r.split(","):[];r.match(/,$/)&&n.match(/, $/)&&i.pop();const o=this.valueToString(i);this.setState({value:o}),t((0,d.List)(i.map((e=>e.trim()))))})),x(this,"handleFocus",(()=>{this.props.setActiveStyle()})),x(this,"handleBlur",(e=>{const t=e.target.value.split(",").map((e=>e.trim())).filter((e=>e));this.setState({value:this.valueToString(t)}),this.props.setInactiveStyle()})),x(this,"handleAdd",(e=>{e.preventDefault();const{field:t}=this.props,n=this.getValueType()===M?this.singleDefault():(0,d.fromJS)(this.multipleDefault(t.get("fields")));this.addItem(n)})),x(this,"singleDefault",(()=>this.props.field.getIn(["field","default"],null))),x(this,"multipleDefault",(e=>this.getFieldsDefault(e))),x(this,"handleAddType",((e,t)=>{const n=(0,d.fromJS)(this.mixedDefault(t,e));this.addItem(n)})),x(this,"mixedDefault",((e,t)=>{const n=this.props.field.get(w.TYPES_KEY).find((e=>e.get("name")===t)),r=n.get("fields")||[n.get("field")];return this.getFieldsDefault(r,{[e]:t})})),x(this,"getFieldsDefault",((e,t={})=>e.reduce(((e,t)=>{const n=t.get("field")||t.get("fields"),r="object"==t.get("widget"),i=t.get("name"),a=t.get("default",null);if(d.List.isList(n)&&r){const t=this.getFieldsDefault(n);return!(0,o.default)(t)&&(e[i]=t),e}if(d.Map.isMap(n)&&r){const t=this.getFieldsDefault([n]);return!(0,o.default)(t)&&(e[i]=t),e}return null!==a&&(e[i]=a),e}),t))),x(this,"addItem",(e=>{const{value:t,onChange:n,field:r}=this.props,i=r.get("add_to_top",!1),o=(0,f.v4)();this.setState({itemsCollapsed:i?[!1,...this.state.itemsCollapsed]:[...this.state.itemsCollapsed,!1],keys:i?[o,...this.state.keys]:[...this.state.keys,o]});const a=t||(0,d.List)();n(i?a.unshift(e):a.push(e))})),x(this,"processControlRef",(e=>{if(!e)return;const{validate:t,props:{validationKey:n}}=e;this.validations.push({key:n,validate:t})})),x(this,"validate",(()=>{this.getValueType()?this.validations.forEach((e=>{e.validate()})):this.props.validate(),this.props.onValidateObject(this.props.forID,this.validateSize())})),x(this,"validateSize",(()=>{const{field:e,value:t,t:n}=this.props,r=e.get("min"),i=e.get("max");if(!(e.get("required",!0)||null!=t&&t.size))return[];const o=b.validations.validateMinMax(n,e.get("label",e.get("name")),t,r,i);return o?[o]:[]})),x(this,"getObjectValue",(e=>this.props.value.get(e)||(0,d.Map)())),x(this,"handleRemove",((e,t)=>{t.preventDefault();const{itemsCollapsed:n}=this.state,{value:r,metadata:i,onChange:o,field:a,clearFieldErrors:s}=this.props,l=a.get("name"),u=this.getValueType()===M?r.get(e):r.get(e).valueSeq(),c=i&&!i.isEmpty()?{[l]:i.removeIn(u)}:i;n.splice(e,1),this.validations=[],this.setState({itemsCollapsed:[...n],keys:Array.from({length:r.size-1},(()=>(0,f.v4)()))}),o(r.remove(e),c),s()})),x(this,"handleItemCollapseToggle",((e,t)=>{t.preventDefault();const{itemsCollapsed:n}=this.state,r=n.map(((t,n)=>e===n?!t:t));this.setState({itemsCollapsed:r})})),x(this,"handleCollapseAllToggle",(e=>{e.preventDefault();const{value:t,field:n}=this.props,{itemsCollapsed:r,listCollapsed:i}=this.state,o=n.get("minimize_collapsed",!1),a=n.get("collapsed",!0),s=r.every((e=>!0===e));if(o){let e=r;i&&a||(e=Array(t.size).fill(!i)),this.setState({listCollapsed:!i,itemsCollapsed:e})}else this.setState({itemsCollapsed:Array(t.size).fill(!s)})})),x(this,"onSortEnd",(({oldIndex:e,newIndex:t})=>{const{value:n,clearFieldErrors:r}=this.props,{itemsCollapsed:i,keys:o}=this.state,a=n.get(e),s=n.delete(e).insert(t,a);this.props.onChange(s);const l=i[e];i.splice(e,1);const u=[...i];u.splice(t,0,l);const c=o.map(((n,r)=>r===e||r===t?(0,f.v4)():n));this.setState({itemsCollapsed:u,keys:c}),r(),this.validations=this.validations.filter((e=>c.includes(e.key)))})),x(this,"hasError",(e=>{const{fieldsErrors:t}=this.props;if(t&&t.size>0)return Object.values(t.toJS()).some((t=>t.some((t=>t.parentIds&&t.parentIds.includes(this.state.keys[e])))))})),x(this,"renderItem",((e,t)=>{const{classNameWrapper:n,editorControl:r,onValidateObject:i,metadata:o,clearFieldErrors:s,fieldsErrors:l,controlRef:u,resolveWidget:d,parentIds:f,forID:p,t:h}=this.props,{itemsCollapsed:m,keys:g}=this.state,v=m[t],y=g[t];let b=this.props.field;const _=this.hasError(t),x=this.getValueType()===L;return x&&(b=(0,w.getTypedFieldForValue)(b,e),!b)?this.renderErroneousTypedItem(t,e):(0,c.jsx)(R,{css:[A.listControlItem,v&&A.listControlItemCollapsed,";label:ListControl;"],index:t,key:y,id:y,keys:g},x&&(0,c.jsx)(F,{field:b,isActive:!1,hasErrors:_,uniqueFieldId:this.uniqueFieldId,isFieldOptional:!1===b.get("required"),t:h}),(0,c.jsx)(C,{collapsed:v,onCollapseToggle:(0,a.default)(this.handleItemCollapseToggle,t),dragHandle:D,id:y,onRemove:(0,a.default)(this.handleRemove,t),"data-testid":`styled-list-item-top-bar-${y}`}),(0,c.jsx)(T,{collapsed:v,error:_},this.objectLabel(e)),(0,c.jsx)(c.ClassNames,null,(({css:a,cx:h})=>(0,c.jsx)(E,{classNameWrapper:h(n,{[a` +`)))},60699:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(70894)),i=(l(n(2784)),l(n(13980))),o=n(46670),a=n(30762),s=n(28165);function l(e){return e&&e.__esModule?e:{default:e}}const u=(0,r.default)((({src:e})=>(0,s.jsx)("img",{src:e||"",role:"presentation"})),{target:"eeuykvb0",label:"StyledImage"})({name:"waguu7",styles:"display:block;max-width:100%;height:auto"});function c({getAsset:e,value:t,field:n}){return(0,s.jsx)(u,{src:e(t,n)})}function d(e){const{value:t,getAsset:n,field:r}=e;return Array.isArray(t)||o.List.isList(t)?t.map(((e,t)=>(0,s.jsx)(c,{key:t,value:e,getAsset:n,field:r}))):(0,s.jsx)(c,e)}function f(e){return(0,s.jsx)(a.WidgetPreviewContainer,null,e.value?(0,s.jsx)(d,e):null)}f.propTypes={getAsset:i.default.func.isRequired,value:i.default.node},t.default=f},79386:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsWidgetImage=void 0;var r=a(n(76889)),i=a(n(60699)),o=a(n(79368));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l=r.default.withFileControl({forImage:!0}),u=t.DecapCmsWidgetImage={Widget:function(e={}){return function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{allow_multiple:{type:"boolean"}}}},11761:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=_(n(70894)),i=_(n(74930)),o=_(n(45455)),a=_(n(83465)),s=_(n(2784)),l=_(n(13980)),u=_(n(19155)),c=n(28165),d=n(46670),f=n(29987),p=_(n(16044)),h=n(61540),m=n(66548),g=n(88366),v=n(82851),y=n(30762),b=n(1704),w=n(95639);function _(e){return e&&e.__esModule?e:{default:e}}function x(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;te.collapsed?"block":"none"),";border-top:0;color:",(e=>e.error?y.colors.errorText:"inherit"),";background-color:",y.colors.textFieldBorder,";padding:13px;border-radius:0 0 ",y.lengths.borderRadius," ",y.lengths.borderRadius,";"),T=`\n padding: ${y.lengths.objectWidgetTopBarContainerPadding};\n `,O={listControlItem:{name:"1pb8r5b-listControlItem",styles:"margin-top:18px;&:first-of-type{margin-top:26px;};label:listControlItem;"},listControlItemCollapsed:{name:"1gjco9g-listControlItemCollapsed",styles:"padding-bottom:0;label:listControlItemCollapsed;"}};function P({items:e,children:t,onSortEnd:n,keys:r}){const i={distance:4},o=(0,h.useSensors)((0,h.useSensor)(h.MouseSensor,{activationConstraint:i}),(0,h.useSensor)(h.TouchSensor,{activationConstraint:i}));return(0,c.jsx)("div",null,(0,c.jsx)(h.DndContext,{modifiers:[g.restrictToParentElement],collisionDetection:h.closestCenter,sensors:o,onDragEnd:function({active:e,over:t}){n({oldIndex:r.indexOf(e.id),newIndex:r.indexOf(t.id)})}},(0,c.jsx)(m.SortableContext,{items:e},t)))}function R(e){const{setNodeRef:t,transform:n,transition:r}=(0,m.useSortable)({id:e.id}),i={transform:v.CSS.Transform.toString(n),transition:r},{collapsed:o}=e;return(0,c.jsx)(C,{sortable:!0,ref:t,style:i,css:[O.listControlItem,o&&O.listControlItemCollapsed,";label:SortableListItem;"]},e.children)}function D({children:e,id:t}){const{attributes:n,listeners:r}=(0,m.useSortable)({id:t});return(0,c.jsx)("div",k({},n,r),e)}const M="SINGLE",I="MULTIPLE",L="MIXED";function j(e,t,n,r){const i=b.stringTemplate.addFileTemplateFields(t.get("path"),r.set("fields.label",n));return b.stringTemplate.compileStringTemplate(e,null,"",i)}function N(e,t){return!!d.Map.isMap(t)||(console.warn(`'${e.get("name")}' field item value value should be a map but is a '${typeof t}'`),!1)}function F({field:e,isActive:t,hasErrors:n,uniqueFieldId:r,isFieldOptional:i,t:o}){const a=`${e.get("label",e.get("name"))}`;return(0,c.jsx)(y.FieldLabel,{isActive:t,hasErrors:n,htmlFor:r},a," ",i?` (${o("editor.editorControl.field.optional")})`:"")}class B extends s.default.Component{constructor(e){super(e),x(this,"validations",[]),x(this,"valueToString",(e=>{let t;return d.List.isList(e)||Array.isArray(e)?t=e.join(","):(console.warn(`Expected List value to be an array but received '${e}' with type of '${typeof e}'. Please check the value provided to the '${this.props.field.get("name")}' field`),t=String(e)),t.replace(/,([^\s]|$)/g,", $1")})),x(this,"getValueType",(()=>{const{field:e}=this.props;return e.get("fields")?I:e.get("field")?M:e.get(w.TYPES_KEY)?L:null})),x(this,"uniqueFieldId",(0,i.default)(`${this.props.field.get("name")}-field-`)),x(this,"handleChange",(e=>{const{onChange:t}=this.props,n=this.state.value,r=e.target.value.trim(),i=r?r.split(","):[];r.match(/,$/)&&n.match(/, $/)&&i.pop();const o=this.valueToString(i);this.setState({value:o}),t((0,d.List)(i.map((e=>e.trim()))))})),x(this,"handleFocus",(()=>{this.props.setActiveStyle()})),x(this,"handleBlur",(e=>{const t=e.target.value.split(",").map((e=>e.trim())).filter((e=>e));this.setState({value:this.valueToString(t)}),this.props.setInactiveStyle()})),x(this,"handleAdd",(e=>{e.preventDefault();const{field:t}=this.props,n=this.getValueType()===M?this.singleDefault():(0,d.fromJS)(this.multipleDefault(t.get("fields")));this.addItem(n)})),x(this,"singleDefault",(()=>this.props.field.getIn(["field","default"],null))),x(this,"multipleDefault",(e=>this.getFieldsDefault(e))),x(this,"handleAddType",((e,t)=>{const n=(0,d.fromJS)(this.mixedDefault(t,e));this.addItem(n)})),x(this,"mixedDefault",((e,t)=>{const n=this.props.field.get(w.TYPES_KEY).find((e=>e.get("name")===t)),r=n.get("fields")||[n.get("field")];return this.getFieldsDefault(r,{[e]:t})})),x(this,"getFieldsDefault",((e,t={})=>e.reduce(((e,t)=>{const n=t.get("field")||t.get("fields"),r="object"==t.get("widget"),i=t.get("name"),a=t.get("default",null);if(d.List.isList(n)&&r){const t=this.getFieldsDefault(n);return!(0,o.default)(t)&&(e[i]=t),e}if(d.Map.isMap(n)&&r){const t=this.getFieldsDefault([n]);return!(0,o.default)(t)&&(e[i]=t),e}return null!==a&&(e[i]=a),e}),t))),x(this,"addItem",(e=>{const{value:t,onChange:n,field:r}=this.props,i=r.get("add_to_top",!1),o=(0,f.v4)();this.setState({itemsCollapsed:i?[!1,...this.state.itemsCollapsed]:[...this.state.itemsCollapsed,!1],keys:i?[o,...this.state.keys]:[...this.state.keys,o]});const a=t||(0,d.List)();n(i?a.unshift(e):a.push(e))})),x(this,"processControlRef",(e=>{if(!e)return;const{validate:t,props:{validationKey:n}}=e;this.validations.push({key:n,validate:t})})),x(this,"validate",(()=>{this.getValueType()?this.validations.forEach((e=>{e.validate()})):this.props.validate(),this.props.onValidateObject(this.props.forID,this.validateSize())})),x(this,"validateSize",(()=>{const{field:e,value:t,t:n}=this.props,r=e.get("min"),i=e.get("max");if(!(e.get("required",!0)||null!=t&&t.size))return[];const o=b.validations.validateMinMax(n,e.get("label",e.get("name")),t,r,i);return o?[o]:[]})),x(this,"getObjectValue",(e=>this.props.value.get(e)||(0,d.Map)())),x(this,"handleRemove",((e,t)=>{t.preventDefault();const{itemsCollapsed:n}=this.state,{value:r,metadata:i,onChange:o,field:a,clearFieldErrors:s}=this.props,l=a.get("name"),u=this.getValueType()===M?r.get(e):r.get(e).valueSeq(),c=i&&!i.isEmpty()?{[l]:i.removeIn(u)}:i;n.splice(e,1),this.validations=[],this.setState({itemsCollapsed:[...n],keys:Array.from({length:r.size-1},(()=>(0,f.v4)()))}),o(r.remove(e),c),s()})),x(this,"handleItemCollapseToggle",((e,t)=>{t.preventDefault();const{itemsCollapsed:n}=this.state,r=n.map(((t,n)=>e===n?!t:t));this.setState({itemsCollapsed:r})})),x(this,"handleCollapseAllToggle",(e=>{e.preventDefault();const{value:t,field:n}=this.props,{itemsCollapsed:r,listCollapsed:i}=this.state,o=n.get("minimize_collapsed",!1),a=n.get("collapsed",!0),s=r.every((e=>!0===e));if(o){let e=r;i&&a||(e=Array(t.size).fill(!i)),this.setState({listCollapsed:!i,itemsCollapsed:e})}else this.setState({itemsCollapsed:Array(t.size).fill(!s)})})),x(this,"onSortEnd",(({oldIndex:e,newIndex:t})=>{const{value:n,clearFieldErrors:r}=this.props,{itemsCollapsed:i,keys:o}=this.state,a=n.get(e),s=n.delete(e).insert(t,a);this.props.onChange(s);const l=i[e];i.splice(e,1);const u=[...i];u.splice(t,0,l);const c=o.map(((n,r)=>r===e||r===t?(0,f.v4)():n));this.setState({itemsCollapsed:u,keys:c}),r(),this.validations=this.validations.filter((e=>c.includes(e.key)))})),x(this,"hasError",(e=>{const{fieldsErrors:t}=this.props;if(t&&t.size>0)return Object.values(t.toJS()).some((t=>t.some((t=>t.parentIds&&t.parentIds.includes(this.state.keys[e])))))})),x(this,"renderItem",((e,t)=>{const{classNameWrapper:n,editorControl:r,onValidateObject:i,metadata:o,clearFieldErrors:s,fieldsErrors:l,controlRef:u,resolveWidget:d,parentIds:f,forID:p,t:h}=this.props,{itemsCollapsed:m,keys:g}=this.state,v=m[t],y=g[t];let b=this.props.field;const _=this.hasError(t),x=this.getValueType()===L;return x&&(b=(0,w.getTypedFieldForValue)(b,e),!b)?this.renderErroneousTypedItem(t,e):(0,c.jsx)(R,{css:[O.listControlItem,v&&O.listControlItemCollapsed,";label:ListControl;"],index:t,key:y,id:y,keys:g},x&&(0,c.jsx)(F,{field:b,isActive:!1,hasErrors:_,uniqueFieldId:this.uniqueFieldId,isFieldOptional:!1===b.get("required"),t:h}),(0,c.jsx)(S,{collapsed:v,onCollapseToggle:(0,a.default)(this.handleItemCollapseToggle,t),dragHandle:D,id:y,onRemove:(0,a.default)(this.handleRemove,t),"data-testid":`styled-list-item-top-bar-${y}`}),(0,c.jsx)(A,{collapsed:v,error:_},this.objectLabel(e)),(0,c.jsx)(c.ClassNames,null,(({css:a,cx:h})=>(0,c.jsx)(E,{classNameWrapper:h(n,{[a` ${"\n display: none;\n "}; - `]:v}),value:e,field:b,onChangeObject:this.handleChangeFor(t),editorControl:r,resolveWidget:d,metadata:o,forList:!0,onValidateObject:i,clearFieldErrors:s,fieldsErrors:l,ref:this.processControlRef,controlRef:u,validationKey:y,collapsed:v,"data-testid":`object-control-${y}`,hasError:_,parentIds:[...f,p,y]}))))}));const{field:t,value:n}=e,r=t.get("collapsed",!0),s=n&&Array(n.size).fill(r)||[],l=n&&Array.from({length:n.size},(()=>(0,f.v4)()))||[];this.state={listCollapsed:r,itemsCollapsed:s,value:this.valueToString(n),keys:l}}shouldComponentUpdate(){return!0}handleChangeFor(e){return(t,n,r)=>{const{value:i,metadata:o,onChange:a,field:s}=this.props,l=s.get("name"),u="object"===s.getIn(["field","widget"]),c=this.getValueType()!==M||this.getValueType()===M&&u?this.getObjectValue(e).set(t.get("name"),n):n,d={[l]:Object.assign(o?o.toJS():{},r||{})};a(i.set(e,c),d)}}objectLabel(e){const{field:t,entry:n}=this.props;switch(this.getValueType()){case L:{if(!N(t,e))return;const r=(0,w.getTypedFieldForValue)(t,e),i=r.get("label",r.get("name")),o=r.get("summary",t.get("summary"));return o?j(o,n,i,e):i}case M:{const r=t.get("field"),i=r.get("label",r.get("name")),o=t.get("summary"),a=(0,d.fromJS)({[r.get("name")]:e});return o?j(o,n,i,a):i}case I:{if(!N(t,e))return;const r=t.get("fields"),i=r&&r.first(),o=e.get(i.get("name")),a=t.get("summary");return((a?j(a,n,o,e):o)||`No ${i.get("name")}`).toString()}}return""}renderErroneousTypedItem(e,t){const n=this.props.field,r=(0,w.getErrorMessageForTypedFieldAndValue)(n,t),i=`item-${e}`;return(0,c.jsx)(R,{css:[A.listControlItem,A.listControlItemCollapsed,";label:ListControl;"],index:e,key:i},(0,c.jsx)(C,{onCollapseToggle:null,onRemove:(0,a.default)(this.handleRemove,e,i),dragHandle:D,id:i}),(0,c.jsx)(T,{collapsed:!0,error:!0},r,"aaaasdd"))}renderListControl(){const{value:e,forID:t,field:n,classNameWrapper:r,t:i}=this.props,{itemsCollapsed:o,listCollapsed:a,keys:s}=this.state,l=e||(0,d.List)(),u=n.get("label",n.get("name")),f=n.get("label_singular")||n.get("label",n.get("name")),p=1===l.size?f.toLowerCase():u.toLowerCase(),h=n.get("minimize_collapsed",!1),m=o.every((e=>!0===e))&&(a||!h),g=s.map((e=>({id:e})));return(0,c.jsx)(c.ClassNames,null,(({cx:e,css:o})=>(0,c.jsx)("div",{id:t,className:e(r,o` - ${O} - `)},(0,c.jsx)(y.ObjectWidgetTopBar,{allowAdd:n.get("allow_add",!0),onAdd:this.handleAdd,types:n.get(w.TYPES_KEY,null),onAddType:e=>this.handleAddType(e,(0,w.resolveFieldKeyType)(n)),heading:`${l.size} ${p}`,label:f.toLowerCase(),onCollapseToggle:this.handleCollapseAllToggle,collapsed:m,t:i}),(!m||!h)&&(0,c.jsx)(P,{items:g,keys:s,onSortEnd:this.onSortEnd},l.map(this.renderItem)))))}renderInput(){const{forID:e,classNameWrapper:t}=this.props,{value:n}=this.state;return(0,c.jsx)("input",{type:"text",id:e,value:n,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,className:t})}render(){return null!==this.getValueType()?this.renderListControl():this.renderInput()}}t.default=B,x(B,"propTypes",{metadata:u.default.map,onChange:l.default.func.isRequired,onChangeObject:l.default.func.isRequired,onValidateObject:l.default.func.isRequired,validate:l.default.func.isRequired,value:u.default.list,field:l.default.object,forID:l.default.string,controlRef:l.default.func,mediaPaths:u.default.map.isRequired,getAsset:l.default.func.isRequired,onOpenMediaLibrary:l.default.func.isRequired,onAddAsset:l.default.func.isRequired,onRemoveInsertedMedia:l.default.func.isRequired,classNameWrapper:l.default.string.isRequired,setActiveStyle:l.default.func.isRequired,setInactiveStyle:l.default.func.isRequired,editorControl:l.default.elementType.isRequired,resolveWidget:l.default.func.isRequired,clearFieldErrors:l.default.func.isRequired,fieldsErrors:u.default.map.isRequired,entry:u.default.map.isRequired,t:l.default.func}),x(B,"defaultProps",{value:(0,d.List)(),parentIds:[]})},57677:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsWidgetList=void 0;var r=a(n(16044)),i=a(n(11761)),o=a(n(25698));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l=r.default.previewComponent,u=t.DecapCmsWidgetList={Widget:function(e={}){return function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{allow_add:{type:"boolean"},collapsed:{type:"boolean"},summary:{type:"string"},minimize_collapsed:{type:"boolean"},label_singular:{type:"string"},i18n:{type:"boolean"},min:{type:"number"},max:{type:"number"}}}},95639:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TYPE_KEY=t.TYPES_KEY=t.DEFAULT_TYPE_KEY=void 0,t.getErrorMessageForTypedFieldAndValue=function(e,t){const n=o(e),r=t.get(n);let i;return i=r?`Error: item has illegal '${n}' property: '${r}'`:`Error: item has no '${n}' property`,i},t.getTypedFieldForValue=function(e,t){const r=o(e),i=e.get(n),a=t.get(r);return i.find((e=>e.get("name")===a))},t.resolveFieldKeyType=o,t.resolveFunctionForTypedField=function(e){const t=o(e),r=e.get(n);return e=>{const n=e.get(t);return r.find((e=>e.get("name")===n))}};const n=t.TYPES_KEY="types",r=t.TYPE_KEY="typeKey",i=t.DEFAULT_TYPE_KEY="type";function o(e){return e.get(r,i)}},50017:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(n(2784));var r=a(n(13980)),i=n(30762),o=n(28165);function a(e){return e&&e.__esModule?e:{default:e}}function s({value:e}){return(0,o.jsx)(i.WidgetPreviewContainer,null,e?e.toString():null)}s.propTypes={value:r.default.string},t.default=s},71515:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsWidgetMap=void 0;var r=a(n(70680)),i=a(n(50017)),o=a(n(23384));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l=(0,r.default)(),u=t.DecapCmsWidgetMap={Widget:function(e={}){return function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{decimals:{type:"integer"},type:{type:"string",enum:["Point","LineString","Polygon"]}}}},70680:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({getFormat:e,getMap:t}={}){var n;return g(n=class extends r.default.Component{constructor(e){super(e),this.mapContainer=r.default.createRef()}componentDidMount(){const{field:n,onChange:r,value:i}=this.props,o=e?e(n):new u.default(v),a=i?[o.readFeature(i)]:[],m=new h.default({features:a,wrapX:!1}),g=new f.default({source:m}),y=this.mapContainer.current,b=t?t(y,g):function(e,t){return new s.default({target:e,layers:[new d.default({source:new p.default}),t],view:new l.default({center:[0,0],zoom:2})})}(y,g);a.length>0&&b.getView().fit(m.getExtent(),{maxZoom:16,padding:[80,80,80,80]});const w=new c.default({source:m,type:n.get("type","Point")});b.addInteraction(w);const _={decimals:n.get("decimals",7)};w.on("drawend",(({feature:e})=>{m.clear(),r(o.writeGeometry(e.getGeometry(),_))}))}render(){const{height:e}=this.props;return(0,o.jsx)(o.ClassNames,null,(({cx:t,css:n})=>(0,o.jsx)("div",{className:t(this.props.classNameWrapper,n` + `]:v}),value:e,field:b,onChangeObject:this.handleChangeFor(t),editorControl:r,resolveWidget:d,metadata:o,forList:!0,onValidateObject:i,clearFieldErrors:s,fieldsErrors:l,ref:this.processControlRef,controlRef:u,validationKey:y,collapsed:v,"data-testid":`object-control-${y}`,hasError:_,parentIds:[...f,p,y]}))))}));const{field:t,value:n}=e,r=t.get("collapsed",!0),s=n&&Array(n.size).fill(r)||[],l=n&&Array.from({length:n.size},(()=>(0,f.v4)()))||[];this.state={listCollapsed:r,itemsCollapsed:s,value:this.valueToString(n),keys:l}}shouldComponentUpdate(){return!0}handleChangeFor(e){return(t,n,r)=>{const{value:i,metadata:o,onChange:a,field:s}=this.props,l=s.get("name"),u="object"===s.getIn(["field","widget"]),c=this.getValueType()!==M||this.getValueType()===M&&u?this.getObjectValue(e).set(t.get("name"),n):n,d={[l]:Object.assign(o?o.toJS():{},r||{})};a(i.set(e,c),d)}}objectLabel(e){const{field:t,entry:n}=this.props;switch(this.getValueType()){case L:{if(!N(t,e))return;const r=(0,w.getTypedFieldForValue)(t,e),i=r.get("label",r.get("name")),o=r.get("summary",t.get("summary"));return o?j(o,n,i,e):i}case M:{const r=t.get("field"),i=r.get("label",r.get("name")),o=t.get("summary"),a=(0,d.fromJS)({[r.get("name")]:e});return o?j(o,n,i,a):i}case I:{if(!N(t,e))return;const r=t.get("fields"),i=r&&r.first(),o=e.get(i.get("name")),a=t.get("summary");return((a?j(a,n,o,e):o)||`No ${i.get("name")}`).toString()}}return""}renderErroneousTypedItem(e,t){const n=this.props.field,r=(0,w.getErrorMessageForTypedFieldAndValue)(n,t),i=`item-${e}`;return(0,c.jsx)(R,{css:[O.listControlItem,O.listControlItemCollapsed,";label:ListControl;"],index:e,key:i},(0,c.jsx)(S,{onCollapseToggle:null,onRemove:(0,a.default)(this.handleRemove,e,i),dragHandle:D,id:i}),(0,c.jsx)(A,{collapsed:!0,error:!0},r))}renderListControl(){const{value:e,forID:t,field:n,classNameWrapper:r,t:i}=this.props,{itemsCollapsed:o,listCollapsed:a,keys:s}=this.state,l=e||(0,d.List)(),u=n.get("label",n.get("name")),f=n.get("label_singular")||n.get("label",n.get("name")),p=1===l.size?f.toLowerCase():u.toLowerCase(),h=n.get("minimize_collapsed",!1),m=o.every((e=>!0===e))&&(a||!h),g=s.map((e=>({id:e})));return(0,c.jsx)(c.ClassNames,null,(({cx:e,css:o})=>(0,c.jsx)("div",{id:t,className:e(r,o` + ${T} + `)},(0,c.jsx)(y.ObjectWidgetTopBar,{allowAdd:n.get("allow_add",!0),onAdd:this.handleAdd,types:n.get(w.TYPES_KEY,null),onAddType:e=>this.handleAddType(e,(0,w.resolveFieldKeyType)(n)),heading:`${l.size} ${p}`,label:f.toLowerCase(),onCollapseToggle:this.handleCollapseAllToggle,collapsed:m,t:i}),(!m||!h)&&(0,c.jsx)(P,{items:g,keys:s,onSortEnd:this.onSortEnd},l.map(this.renderItem)))))}renderInput(){const{forID:e,classNameWrapper:t}=this.props,{value:n}=this.state;return(0,c.jsx)("input",{type:"text",id:e,value:n,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,className:t})}render(){return null!==this.getValueType()?this.renderListControl():this.renderInput()}}t.default=B,x(B,"propTypes",{metadata:u.default.map,onChange:l.default.func.isRequired,onChangeObject:l.default.func.isRequired,onValidateObject:l.default.func.isRequired,validate:l.default.func.isRequired,value:u.default.list,field:l.default.object,forID:l.default.string,controlRef:l.default.func,mediaPaths:u.default.map.isRequired,getAsset:l.default.func.isRequired,onOpenMediaLibrary:l.default.func.isRequired,onAddAsset:l.default.func.isRequired,onRemoveInsertedMedia:l.default.func.isRequired,classNameWrapper:l.default.string.isRequired,setActiveStyle:l.default.func.isRequired,setInactiveStyle:l.default.func.isRequired,editorControl:l.default.elementType.isRequired,resolveWidget:l.default.func.isRequired,clearFieldErrors:l.default.func.isRequired,fieldsErrors:u.default.map.isRequired,entry:u.default.map.isRequired,t:l.default.func}),x(B,"defaultProps",{value:(0,d.List)(),parentIds:[]})},57677:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsWidgetList=void 0;var r=a(n(16044)),i=a(n(11761)),o=a(n(25698));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l=r.default.previewComponent,u=t.DecapCmsWidgetList={Widget:function(e={}){return function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{allow_add:{type:"boolean"},collapsed:{type:"boolean"},summary:{type:"string"},minimize_collapsed:{type:"boolean"},label_singular:{type:"string"},i18n:{type:"boolean"},min:{type:"number"},max:{type:"number"}}}},95639:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TYPE_KEY=t.TYPES_KEY=t.DEFAULT_TYPE_KEY=void 0,t.getErrorMessageForTypedFieldAndValue=function(e,t){const n=o(e),r=t.get(n);let i;return i=r?`Error: item has illegal '${n}' property: '${r}'`:`Error: item has no '${n}' property`,i},t.getTypedFieldForValue=function(e,t){const r=o(e),i=e.get(n),a=t.get(r);return i.find((e=>e.get("name")===a))},t.resolveFieldKeyType=o,t.resolveFunctionForTypedField=function(e){const t=o(e),r=e.get(n);return e=>{const n=e.get(t);return r.find((e=>e.get("name")===n))}};const n=t.TYPES_KEY="types",r=t.TYPE_KEY="typeKey",i=t.DEFAULT_TYPE_KEY="type";function o(e){return e.get(r,i)}},50017:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(n(2784));var r=a(n(13980)),i=n(30762),o=n(28165);function a(e){return e&&e.__esModule?e:{default:e}}function s({value:e}){return(0,o.jsx)(i.WidgetPreviewContainer,null,e?e.toString():null)}s.propTypes={value:r.default.string},t.default=s},71515:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsWidgetMap=void 0;var r=a(n(70680)),i=a(n(50017)),o=a(n(23384));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l=(0,r.default)(),u=t.DecapCmsWidgetMap={Widget:function(e={}){return function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{decimals:{type:"integer"},type:{type:"string",enum:["Point","LineString","Polygon"]}}}},70680:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({getFormat:e,getMap:t}={}){var n;return g(n=class extends r.default.Component{constructor(e){super(e),this.mapContainer=r.default.createRef(),this.resizeObserver=null}componentDidMount(){const{field:n,onChange:r,value:i}=this.props,o=e?e(n):new u.default(v),a=i?[o.readFeature(i)]:[],m=new h.default({features:a,wrapX:!1}),g=new f.default({source:m}),y=this.mapContainer.current,b=t?t(y,g):function(e,t){return new s.default({target:e,layers:[new d.default({source:new p.default}),t],view:new l.default({center:[0,0],zoom:2})})}(y,g);a.length>0&&b.getView().fit(m.getExtent(),{maxZoom:16,padding:[80,80,80,80]});const w=new c.default({source:m,type:n.get("type","Point")});b.addInteraction(w);const _={decimals:n.get("decimals",7)};w.on("drawend",(({feature:e})=>{m.clear(),r(o.writeGeometry(e.getGeometry(),_))})),this.resizeObserver=new ResizeObserver((()=>{b.updateSize()})),this.resizeObserver.observe(y)}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}render(){const{height:e}=this.props;return(0,o.jsx)(o.ClassNames,null,(({cx:t,css:n})=>(0,o.jsx)("div",{className:t(this.props.classNameWrapper,n` ${a.default}; padding: 0; overflow: hidden; height: ${e}; `),ref:this.mapContainer})))}},"propTypes",{onChange:i.default.func.isRequired,field:i.default.object.isRequired,height:i.default.string,value:i.default.node}),g(n,"defaultProps",{value:"",height:"400px"}),n};var r=m(n(2784)),i=m(n(13980)),o=n(28165),a=m(n(64552)),s=m(n(18529)),l=m(n(66319)),u=m(n(85738)),c=m(n(78369)),d=m(n(10608)),f=m(n(2247)),p=m(n(64127)),h=m(n(29820));function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const v={dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"}},75988:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=g(n(70894)),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=m(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(2784)),o=g(n(13980)),a=g(n(19155)),s=n(28165),l=n(30762),u=n(72056),c=n(77713),d=n(20672),f=n(98685),p=g(n(76912)),h=g(n(13598));function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}function g(e){return e&&e.__esModule?e:{default:e}}function v({minimal:e}){return`\n position: relative;\n overflow: hidden;\n overflow-x: auto;\n min-height: ${e?"auto":l.lengths.richTextEditorMinHeight};\n font-family: ${l.fonts.mono};\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n border-top: 0;\n margin-top: -${f.editorStyleVars.stickyDistanceBottom};\n`}const y=(0,r.default)("div",{target:"e12tj7710",label:"RawEditorContainer"})({name:"bjn8wh",styles:"position:relative"});function b(e){const{className:t,field:n,isShowModeToggle:r,t:o,onChange:a}=e,l=(0,i.useMemo)((()=>(0,c.withReact)((0,d.withHistory)((0,u.createEditor)()))),[]),[m,g]=(0,i.useState)(e.value?e.value.split("\n").map((e=>(0,h.default)(e))):[(0,h.default)()]);function b(e){a(e.map((e=>e.children[0].text)).join("\n")),g(e)}return(0,i.useEffect)((()=>{e.pendingFocus&&c.ReactEditor.focus(l)}),[]),(0,s.jsx)(c.Slate,{editor:l,value:m,onChange:b},(0,s.jsx)(y,null,(0,s.jsx)(f.EditorControlBar,null,(0,s.jsx)(p.default,{onToggleMode:function(){e.onMode("rich_text")},buttons:n.get("buttons"),disabled:!0,rawMode:!0,isShowModeToggle:r,t:o})),(0,s.jsx)(s.ClassNames,null,(({css:e,cx:r})=>(0,s.jsx)(c.Editable,{className:r(t,e` ${v({minimal:n.get("minimal")})} - `),value:m,onChange:b})))))}b.propTypes={onChange:o.default.func.isRequired,onMode:o.default.func.isRequired,className:o.default.string.isRequired,value:o.default.string,field:a.default.map.isRequired,isShowModeToggle:o.default.bool.isRequired,t:o.default.func.isRequired},t.default=b},76912:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(70894)),i=d(n(2784)),o=d(n(13980)),a=d(n(19155)),s=n(28165),l=n(46670),u=n(30762),c=d(n(15388));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p=(0,r.default)("div",{target:"e11cox783",label:"ToolbarContainer"})("background-color:",u.colors.textFieldBorder,";border-top-right-radius:",u.lengths.borderRadius,";position:relative;display:flex;justify-content:space-between;align-items:center;padding:11px 14px;min-height:58px;transition:background-color ",u.transitions.main,",color ",u.transitions.main,";color:",u.colors.text,";"),h=(0,r.default)("div",{target:"e11cox782",label:"ToolbarDropdownWrapper"})({name:"11ffxfj",styles:"display:inline-block;position:relative"}),m=(0,r.default)("div",{target:"e11cox781",label:"ToolbarToggle"})({name:"1qi6e7n",styles:"flex-shrink:0;display:flex;align-items:center;font-size:14px;margin:0 10px"}),g=m.withComponent(u.Toggle,{target:"e11cox784",label:"StyledToggle"}),v=(0,r.default)("span",{target:"e11cox780",label:"ToolbarToggleLabel"})("display:inline-block;text-align:center;white-space:nowrap;line-height:20px;min-width:",(e=>e.offPosition?"62px":"70px"),";",(e=>e.isActive&&(0,s.css)("font-weight:600;color:",u.colors.active,";;label:ToolbarToggleLabel;")),";");class y extends i.default.Component{constructor(...e){super(...e),f(this,"isVisible",(e=>{const{buttons:t}=this.props;return!l.List.isList(t)||t.includes(e)})),f(this,"handleBlockClick",((e,t)=>{e&&e.preventDefault(),this.props.onBlockClick(t)})),f(this,"handleMarkClick",((e,t)=>{e.preventDefault(),this.props.onMarkClick(t)}))}render(){const{onLinkClick:e,onToggleMode:t,rawMode:n,isShowModeToggle:r,plugins:i,disabled:o,onSubmit:a,hasMark:d=(()=>{}),hasInline:f=(()=>{}),hasBlock:y=(()=>{}),hasQuote:b=(()=>{}),hasListItems:w=(()=>{}),editorComponents:_,t:x}=this.props,k=this.isVisible,E=!_||_.size>=1,S=i?i.toList().filter((function({id:e}){return!_||_.includes(e)})):(0,l.List)(),C={"heading-one":x("editor.editorWidgets.headingOptions.headingOne"),"heading-two":x("editor.editorWidgets.headingOptions.headingTwo"),"heading-three":x("editor.editorWidgets.headingOptions.headingThree"),"heading-four":x("editor.editorWidgets.headingOptions.headingFour"),"heading-five":x("editor.editorWidgets.headingOptions.headingFive"),"heading-six":x("editor.editorWidgets.headingOptions.headingSix")};return(0,s.jsx)(p,null,(0,s.jsx)("div",null,k("bold")&&(0,s.jsx)(c.default,{type:"bold",label:x("editor.editorWidgets.markdown.bold"),icon:"bold",onClick:this.handleMarkClick,isActive:d("bold"),disabled:o}),k("italic")&&(0,s.jsx)(c.default,{type:"italic",label:x("editor.editorWidgets.markdown.italic"),icon:"italic",onClick:this.handleMarkClick,isActive:d("italic"),disabled:o}),k("code")&&(0,s.jsx)(c.default,{type:"code",label:x("editor.editorWidgets.markdown.code"),icon:"code",onClick:this.handleMarkClick,isActive:d("code"),disabled:o}),k("link")&&(0,s.jsx)(c.default,{type:"link",label:x("editor.editorWidgets.markdown.link"),icon:"link",onClick:e,isActive:f("link"),disabled:o}),Object.keys(C).some(k)&&(0,s.jsx)(h,null,(0,s.jsx)(u.Dropdown,{dropdownWidth:"max-content",dropdownTopOverlap:"36px",renderButton:()=>(0,s.jsx)(u.DropdownButton,null,(0,s.jsx)(c.default,{type:"headings",label:x("editor.editorWidgets.markdown.headings"),icon:"hOptions",disabled:o,isActive:!o&&Object.keys(C).some(y)}))},!o&&Object.keys(C).map(((e,t)=>k(e)&&(0,s.jsx)(u.DropdownItem,{key:t,label:C[e],className:y(e)?"active":"",onClick:()=>this.handleBlockClick(null,e)}))))),k("quote")&&(0,s.jsx)(c.default,{type:"quote",label:x("editor.editorWidgets.markdown.quote"),icon:"quote",onClick:this.handleBlockClick,isActive:b("quote"),disabled:o}),k("bulleted-list")&&(0,s.jsx)(c.default,{type:"bulleted-list",label:x("editor.editorWidgets.markdown.bulletedList"),icon:"list-bulleted",onClick:this.handleBlockClick,isActive:w("bulleted-list"),disabled:o}),k("numbered-list")&&(0,s.jsx)(c.default,{type:"numbered-list",label:x("editor.editorWidgets.markdown.numberedList"),icon:"list-numbered",onClick:this.handleBlockClick,isActive:w("numbered-list"),disabled:o}),E&&(0,s.jsx)(h,null,(0,s.jsx)(u.Dropdown,{dropdownTopOverlap:"36px",dropdownWidth:"max-content",renderButton:()=>(0,s.jsx)(u.DropdownButton,null,(0,s.jsx)(c.default,{label:x("editor.editorWidgets.markdown.addComponent"),icon:"add-with",onClick:this.handleComponentsMenuToggle,disabled:o}))},S.map(((e,t)=>(0,s.jsx)(u.DropdownItem,{key:t,label:e.label,onClick:()=>a(e)})))))),r&&(0,s.jsx)(m,null,(0,s.jsx)(v,{isActive:!n,offPosition:!0},x("editor.editorWidgets.markdown.richText")),(0,s.jsx)(g,{active:n,onChange:t}),(0,s.jsx)(v,{isActive:n},x("editor.editorWidgets.markdown.markdown"))))}}t.default=y,f(y,"propTypes",{buttons:a.default.list,editorComponents:a.default.list,onToggleMode:o.default.func.isRequired,rawMode:o.default.bool,isShowModeToggle:o.default.bool.isRequired,plugins:a.default.map,onSubmit:o.default.func,onAddAsset:o.default.func,getAsset:o.default.func,disabled:o.default.bool,onMarkClick:o.default.func,onBlockClick:o.default.func,onLinkClick:o.default.func,hasMark:o.default.func,hasInline:o.default.func,hasBlock:o.default.func,t:o.default.func.isRequired})},15388:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(70894)),i=(s(n(2784)),s(n(13980))),o=n(30762),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("button",{target:"e1ps9s9m0",label:"StyledToolbarButton"})(o.buttons.button,";display:inline-block;padding:6px;border:none;background-color:transparent;font-size:16px;color:",(e=>e.isActive?"#1e2532":"inherit"),";cursor:pointer;&:disabled{cursor:auto;opacity:0.5;}",o.Icon,"{display:block;}");function u({type:e,label:t,icon:n,onClick:r,isActive:i,disabled:s}){return(0,a.jsx)(l,{isActive:i,onClick:t=>r&&r(t,e),title:t,disabled:s},n?(0,a.jsx)(o.Icon,{type:n}):t)}u.propTypes={type:i.default.string,label:i.default.string.isRequired,icon:i.default.string,onClick:i.default.func,isActive:i.default.bool,disabled:i.default.bool},t.default=u},98328:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.mergeMediaConfig=I;var r=P(n(70894)),i=P(n(18149)),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=A(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(2784)),a=P(n(13980)),s=P(n(19155)),l=n(28165),u=n(30762),c=n(72056),d=n(77713),f=n(20672),p=n(46670),h=n(98685),m=P(n(76912)),g=n(21276),v=P(n(34514)),y=P(n(32786)),b=P(n(63669)),w=P(n(55145)),_=P(n(80082)),x=P(n(33856)),k=P(n(2826)),E=P(n(51818)),S=n(32322),C=P(n(29366)),T=P(n(35118)),O=P(n(13598));function A(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(A=function(e){return e?n:t})(e)}function P(e){return e&&e.__esModule?e:{default:e}}function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t"image"===e.get("widget"))),(e=>(t.has("media_library")&&(e=e.set("media_library",t.get("media_library").mergeDeep(e.get("media_library")))),t.has("media_folder")&&!e.has("media_folder")&&(e=e.set("media_folder",t.get("media_folder"))),t.has("public_folder")&&!e.has("public_folder")&&(e=e.set("public_folder",t.get("public_folder"))),e))))}}var L={name:"j8ayvn-Editor",styles:"position:relative;label:Editor;"};function j(e){const{onAddAsset:t,getAsset:n,className:r,field:a,isShowModeToggle:s,t:u,isDisabled:A,getEditorComponents:P,getRemarkPlugins:j,onChange:N}=e,F=(0,o.useMemo)((()=>(0,d.withReact)((0,f.withHistory)((0,C.default)((0,y.default)((0,v.default)((0,b.default)((0,c.createEditor)()))))))),[]),B=[(0,O.default)()];let z=P();const U=(0,p.fromJS)(z.find((({type:e})=>"code-block"===e)));z=U||z.has("code-block")?z:z.set("code-block",{label:"Code Block",type:"code-block"}),I(z,a);const[q,W]=(0,o.useState)(e.value?(0,S.markdownToSlate)(e.value,{voidCodeBlock:!!U,remarkPlugins:j()}):B),$=(0,o.useCallback)((e=>(0,l.jsx)(g.Element,R({},e,{classNameWrapper:r,codeBlockComponent:U}))),[]),H=(0,o.useCallback)((e=>(0,l.jsx)(g.Leaf,e)),[]);function V(e){for(const t of F.keyDownHandlers||[])if(!1===t(e,F))break;d.ReactEditor.focus(F)}function G(){d.ReactEditor.focus(F),c.Transforms.select(F,{path:[0,0],offset:0}),c.Transforms.select(F,c.Editor.end(F,[]))}(0,o.useEffect)((()=>{e.pendingFocus&&d.ReactEditor.focus(F)}),[]);const[K,Z]=(0,o.useState)(0);return(0,l.jsx)("div",{css:L},(0,l.jsx)(d.Slate,{editor:F,value:q,onChange:function(e){(0,i.default)(e,q)||(W((()=>e)),N((0,S.slateToMarkdown)(e,{voidCodeBlock:!!U,remarkPlugins:j()}))),Z((e=>e+1))}},(0,l.jsx)(h.EditorControlBar,null,(0,l.jsx)(m.default,{key:K,onMarkClick:function(e){d.ReactEditor.focus(F),(0,w.default)(F,e)},onBlockClick:function(e){d.ReactEditor.focus(F),e.endsWith("-list")?F.toggleList(e):F.toggleBlock(e)},onLinkClick:function(){(0,_.default)(F,u("editor.editorWidgets.markdown.linkPrompt")),d.ReactEditor.focus(F)},onToggleMode:function(){e.onMode("raw")},plugins:z,onSubmit:function(e){(0,T.default)(F,e)},onAddAsset:t,getAsset:n,buttons:a.get("buttons"),editorComponents:a.get("editor_components"),hasMark:function(e){return(0,k.default)(F,e)},hasInline:function(e){return"link"==e&&!!(0,x.default)(F)},hasBlock:function(e){return(0,E.default)(F,e)},hasQuote:function(){return(0,E.default)(F,"quote")},hasListItems:function(e){return(0,E.default)(F,e)},isShowModeToggle:s,t:u,disabled:A})),(0,l.jsx)(l.ClassNames,null,(({css:e,cx:t})=>(0,l.jsx)("div",{className:t(r,e` + `),value:m,onChange:b})))))}b.propTypes={onChange:o.default.func.isRequired,onMode:o.default.func.isRequired,className:o.default.string.isRequired,value:o.default.string,field:a.default.map.isRequired,isShowModeToggle:o.default.bool.isRequired,t:o.default.func.isRequired},t.default=b},76912:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(70894)),i=d(n(2784)),o=d(n(13980)),a=d(n(19155)),s=n(28165),l=n(46670),u=n(30762),c=d(n(15388));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p=(0,r.default)("div",{target:"e11cox783",label:"ToolbarContainer"})("background-color:",u.colors.textFieldBorder,";border-top-right-radius:",u.lengths.borderRadius,";position:relative;display:flex;justify-content:space-between;align-items:center;padding:11px 14px;min-height:58px;transition:background-color ",u.transitions.main,",color ",u.transitions.main,";color:",u.colors.text,";"),h=(0,r.default)("div",{target:"e11cox782",label:"ToolbarDropdownWrapper"})({name:"11ffxfj",styles:"display:inline-block;position:relative"}),m=(0,r.default)("div",{target:"e11cox781",label:"ToolbarToggle"})({name:"1qi6e7n",styles:"flex-shrink:0;display:flex;align-items:center;font-size:14px;margin:0 10px"}),g=m.withComponent(u.Toggle,{target:"e11cox784",label:"StyledToggle"}),v=(0,r.default)("span",{target:"e11cox780",label:"ToolbarToggleLabel"})("display:inline-block;text-align:center;white-space:nowrap;line-height:20px;min-width:",(e=>e.offPosition?"62px":"70px"),";",(e=>e.isActive&&(0,s.css)("font-weight:600;color:",u.colors.active,";;label:ToolbarToggleLabel;")),";");class y extends i.default.Component{constructor(...e){super(...e),f(this,"isVisible",(e=>{const{buttons:t}=this.props;return!l.List.isList(t)||t.includes(e)})),f(this,"handleBlockClick",((e,t)=>{e&&e.preventDefault(),this.props.onBlockClick(t)})),f(this,"handleMarkClick",((e,t)=>{e.preventDefault(),this.props.onMarkClick(t)}))}render(){const{onLinkClick:e,onToggleMode:t,rawMode:n,isShowModeToggle:r,plugins:i,disabled:o,onSubmit:a,hasMark:d=(()=>{}),hasInline:f=(()=>{}),hasBlock:y=(()=>{}),hasQuote:b=(()=>{}),hasListItems:w=(()=>{}),editorComponents:_,t:x}=this.props,k=this.isVisible,E=!_||_.size>=1,C=i?i.toList().filter((function({id:e}){return!_||_.includes(e)})):(0,l.List)(),S={"heading-one":x("editor.editorWidgets.headingOptions.headingOne"),"heading-two":x("editor.editorWidgets.headingOptions.headingTwo"),"heading-three":x("editor.editorWidgets.headingOptions.headingThree"),"heading-four":x("editor.editorWidgets.headingOptions.headingFour"),"heading-five":x("editor.editorWidgets.headingOptions.headingFive"),"heading-six":x("editor.editorWidgets.headingOptions.headingSix")};return(0,s.jsx)(p,null,(0,s.jsx)("div",null,k("bold")&&(0,s.jsx)(c.default,{type:"bold",label:x("editor.editorWidgets.markdown.bold"),icon:"bold",onClick:this.handleMarkClick,isActive:d("bold"),disabled:o}),k("italic")&&(0,s.jsx)(c.default,{type:"italic",label:x("editor.editorWidgets.markdown.italic"),icon:"italic",onClick:this.handleMarkClick,isActive:d("italic"),disabled:o}),k("code")&&(0,s.jsx)(c.default,{type:"code",label:x("editor.editorWidgets.markdown.code"),icon:"code",onClick:this.handleMarkClick,isActive:d("code"),disabled:o}),k("link")&&(0,s.jsx)(c.default,{type:"link",label:x("editor.editorWidgets.markdown.link"),icon:"link",onClick:e,isActive:f("link"),disabled:o}),Object.keys(S).some(k)&&(0,s.jsx)(h,null,(0,s.jsx)(u.Dropdown,{dropdownWidth:"max-content",dropdownTopOverlap:"36px",renderButton:()=>(0,s.jsx)(u.DropdownButton,null,(0,s.jsx)(c.default,{type:"headings",label:x("editor.editorWidgets.markdown.headings"),icon:"hOptions",disabled:o,isActive:!o&&Object.keys(S).some(y)}))},!o&&Object.keys(S).map(((e,t)=>k(e)&&(0,s.jsx)(u.DropdownItem,{key:t,label:S[e],className:y(e)?"active":"",onClick:()=>this.handleBlockClick(null,e)}))))),k("quote")&&(0,s.jsx)(c.default,{type:"quote",label:x("editor.editorWidgets.markdown.quote"),icon:"quote",onClick:this.handleBlockClick,isActive:b("quote"),disabled:o}),k("bulleted-list")&&(0,s.jsx)(c.default,{type:"bulleted-list",label:x("editor.editorWidgets.markdown.bulletedList"),icon:"list-bulleted",onClick:this.handleBlockClick,isActive:w("bulleted-list"),disabled:o}),k("numbered-list")&&(0,s.jsx)(c.default,{type:"numbered-list",label:x("editor.editorWidgets.markdown.numberedList"),icon:"list-numbered",onClick:this.handleBlockClick,isActive:w("numbered-list"),disabled:o}),E&&(0,s.jsx)(h,null,(0,s.jsx)(u.Dropdown,{dropdownTopOverlap:"36px",dropdownWidth:"max-content",renderButton:()=>(0,s.jsx)(u.DropdownButton,null,(0,s.jsx)(c.default,{label:x("editor.editorWidgets.markdown.addComponent"),icon:"add-with",onClick:this.handleComponentsMenuToggle,disabled:o}))},C.map(((e,t)=>(0,s.jsx)(u.DropdownItem,{key:t,label:e.label,onClick:()=>a(e)})))))),r&&(0,s.jsx)(m,null,(0,s.jsx)(v,{isActive:!n,offPosition:!0},x("editor.editorWidgets.markdown.richText")),(0,s.jsx)(g,{active:n,onChange:t}),(0,s.jsx)(v,{isActive:n},x("editor.editorWidgets.markdown.markdown"))))}}t.default=y,f(y,"propTypes",{buttons:a.default.list,editorComponents:a.default.list,onToggleMode:o.default.func.isRequired,rawMode:o.default.bool,isShowModeToggle:o.default.bool.isRequired,plugins:a.default.map,onSubmit:o.default.func,onAddAsset:o.default.func,getAsset:o.default.func,disabled:o.default.bool,onMarkClick:o.default.func,onBlockClick:o.default.func,onLinkClick:o.default.func,hasMark:o.default.func,hasInline:o.default.func,hasBlock:o.default.func,t:o.default.func.isRequired})},15388:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(70894)),i=(s(n(2784)),s(n(13980))),o=n(30762),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("button",{target:"e1ps9s9m0",label:"StyledToolbarButton"})(o.buttons.button,";display:inline-block;padding:6px;border:none;background-color:transparent;font-size:16px;color:",(e=>e.isActive?"#1e2532":"inherit"),";cursor:pointer;&:disabled{cursor:auto;opacity:0.5;}",o.Icon,"{display:block;}");function u({type:e,label:t,icon:n,onClick:r,isActive:i,disabled:s}){return(0,a.jsx)(l,{isActive:i,onClick:t=>r&&r(t,e),title:t,disabled:s},n?(0,a.jsx)(o.Icon,{type:n}):t)}u.propTypes={type:i.default.string,label:i.default.string.isRequired,icon:i.default.string,onClick:i.default.func,isActive:i.default.bool,disabled:i.default.bool},t.default=u},98328:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.mergeMediaConfig=I;var r=P(n(70894)),i=P(n(18149)),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=O(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(2784)),a=P(n(13980)),s=P(n(19155)),l=n(28165),u=n(30762),c=n(72056),d=n(77713),f=n(20672),p=n(46670),h=n(98685),m=P(n(76912)),g=n(21276),v=P(n(34514)),y=P(n(32786)),b=P(n(63669)),w=P(n(55145)),_=P(n(80082)),x=P(n(33856)),k=P(n(2826)),E=P(n(51818)),C=n(32322),S=P(n(29366)),A=P(n(35118)),T=P(n(13598));function O(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(O=function(e){return e?n:t})(e)}function P(e){return e&&e.__esModule?e:{default:e}}function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t"image"===e.get("widget"))),(e=>(t.has("media_library")&&(e=e.set("media_library",t.get("media_library").mergeDeep(e.get("media_library")))),t.has("media_folder")&&!e.has("media_folder")&&(e=e.set("media_folder",t.get("media_folder"))),t.has("public_folder")&&!e.has("public_folder")&&(e=e.set("public_folder",t.get("public_folder"))),e))))}}var L={name:"j8ayvn-Editor",styles:"position:relative;label:Editor;"};function j(e){const{onAddAsset:t,getAsset:n,className:r,field:a,isShowModeToggle:s,t:u,isDisabled:O,getEditorComponents:P,getRemarkPlugins:j,onChange:N}=e,F=(0,o.useMemo)((()=>(0,d.withReact)((0,f.withHistory)((0,S.default)((0,y.default)((0,v.default)((0,b.default)((0,c.createEditor)()))))))),[]),B=[(0,T.default)()];let z=P();const U=(0,p.fromJS)(z.find((({type:e})=>"code-block"===e)));z=U||z.has("code-block")?z:z.set("code-block",{label:"Code Block",type:"code-block"}),I(z,a);const[q,W]=(0,o.useState)(e.value?(0,C.markdownToSlate)(e.value,{voidCodeBlock:!!U,remarkPlugins:j()}):B),$=(0,o.useCallback)((e=>(0,l.jsx)(g.Element,R({},e,{classNameWrapper:r,codeBlockComponent:U}))),[]),H=(0,o.useCallback)((e=>(0,l.jsx)(g.Leaf,e)),[]);function V(e){for(const t of F.keyDownHandlers||[])if(!1===t(e,F))break;d.ReactEditor.focus(F)}function G(){d.ReactEditor.focus(F),c.Transforms.select(F,{path:[0,0],offset:0}),c.Transforms.select(F,c.Editor.end(F,[]))}(0,o.useEffect)((()=>{e.pendingFocus&&d.ReactEditor.focus(F)}),[]);const[K,Z]=(0,o.useState)(0);return(0,l.jsx)("div",{css:L},(0,l.jsx)(d.Slate,{editor:F,value:q,onChange:function(e){(0,i.default)(e,q)||(W((()=>e)),N((0,C.slateToMarkdown)(e,{voidCodeBlock:!!U,remarkPlugins:j()}))),Z((e=>e+1))}},(0,l.jsx)(h.EditorControlBar,null,(0,l.jsx)(m.default,{key:K,onMarkClick:function(e){d.ReactEditor.focus(F),(0,w.default)(F,e)},onBlockClick:function(e){d.ReactEditor.focus(F),e.endsWith("-list")?F.toggleList(e):F.toggleBlock(e)},onLinkClick:function(){(0,_.default)(F,u("editor.editorWidgets.markdown.linkPrompt")),d.ReactEditor.focus(F)},onToggleMode:function(){e.onMode("raw")},plugins:z,onSubmit:function(e){(0,A.default)(F,e)},onAddAsset:t,getAsset:n,buttons:a.get("buttons"),editorComponents:a.get("editor_components"),hasMark:function(e){return(0,k.default)(F,e)},hasInline:function(e){return"link"==e&&!!(0,x.default)(F)},hasBlock:function(e){return(0,E.default)(F,e)},hasQuote:function(){return(0,E.default)(F,"quote")},hasListItems:function(e){return(0,E.default)(F,e)},isShowModeToggle:s,t:u,disabled:O})),(0,l.jsx)(l.ClassNames,null,(({css:e,cx:t})=>(0,l.jsx)("div",{className:t(r,e` ${D({minimal:a.get("minimal")})} `)},0!==q.length&&(0,l.jsx)(d.Editable,{className:e` padding: 16px 20px 0; - `,renderElement:$,renderLeaf:H,onKeyDown:V,autoFocus:!1}),(0,l.jsx)(M,{onClick:G}))))))}j.propTypes={onAddAsset:a.default.func.isRequired,getAsset:a.default.func.isRequired,onChange:a.default.func.isRequired,onMode:a.default.func.isRequired,className:a.default.string.isRequired,value:a.default.string,field:s.default.map.isRequired,getEditorComponents:a.default.func.isRequired,getRemarkPlugins:a.default.func.isRequired,isShowModeToggle:a.default.bool.isRequired,t:a.default.func.isRequired},t.default=j},69076:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(17620))&&r.__esModule?r:{default:r},o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(2784)),a=n(28165),s=n(46670),l=n(77713),u=n(72056),c=n(64767);function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t{},isNewEditorComponent:n.data.shortcodeNew,isSelected:_}),d)}},4611:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,l(n(2784));var r=n(28165),i=n(30762),o=n(77713),a=n(72056),s=l(n(13598));function l(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getEditorComponents=function(){return h()},t.getEditorControl=function(){return p};var r=c(n(2784)),i=c(n(13980)),o=c(n(19155)),a=n(46670),s=c(n(75988)),l=c(n(98328)),u=n(28165);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f="cms.md-mode";let p,h=()=>(0,a.Map)();class m extends r.default.Component{constructor(e){var t;super(e),d(this,"handleMode",(e=>{this.setState({mode:e,pendingFocus:!0}),localStorage.setItem(f,e)})),d(this,"processRef",(e=>this.ref=e)),d(this,"setFocusReceived",(()=>{this.setState({pendingFocus:!1})})),d(this,"getAllowedModes",(()=>this.props.field.get("modes",(0,a.List)(["rich_text","raw"])).toArray())),p=e.editorControl;const n=null!==(t=localStorage.getItem(f))&&void 0!==t?t:"rich_text";h=e.getEditorComponents,this.state={mode:-1!==this.getAllowedModes().indexOf(n)?n:this.getAllowedModes()[0],pendingFocus:!1}}render(){const{onChange:e,onAddAsset:t,getAsset:n,value:r,classNameWrapper:i,field:o,getEditorComponents:a,getRemarkPlugins:c,resolveWidget:d,t:f,isDisabled:p}=this.props,{mode:h,pendingFocus:m}=this.state,g=this.getAllowedModes().length>1,v=(0,u.jsx)("div",{className:"cms-editor-visual",ref:this.processRef},(0,u.jsx)(l.default,{onChange:e,onAddAsset:t,isShowModeToggle:g,onMode:this.handleMode,getAsset:n,className:i,value:r,field:o,getEditorComponents:a,getRemarkPlugins:c,resolveWidget:d,pendingFocus:m&&this.setFocusReceived,t:f,isDisabled:p})),y=(0,u.jsx)("div",{className:"cms-editor-raw",ref:this.processRef},(0,u.jsx)(s.default,{onChange:e,onAddAsset:t,isShowModeToggle:g,onMode:this.handleMode,getAsset:n,className:i,value:r,field:o,pendingFocus:m&&this.setFocusReceived,t:f}));return"rich_text"===h?v:y}}t.default=m,d(m,"propTypes",{onChange:i.default.func.isRequired,onAddAsset:i.default.func.isRequired,getAsset:i.default.func.isRequired,classNameWrapper:i.default.string.isRequired,editorControl:i.default.elementType.isRequired,value:i.default.string,field:o.default.map.isRequired,getEditorComponents:i.default.func,t:i.default.func.isRequired}),d(m,"defaultProps",{value:""})},13598:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e=""){return{type:"paragraph",children:[{text:e}]}}},74752:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(87202)),i=l(n(40860)),o=l(n(77074)),a=l(n(66324)),s=l(n(53243));function l(e){return e&&e.__esModule?e:{default:e}}const u={"mod+1":"heading-one","mod+2":"heading-two","mod+3":"heading-three","mod+4":"heading-four","mod+5":"heading-five","mod+6":"heading-six"};t.default=function(e,t){if(t.selection){for(const n in u)if((0,r.default)(n,e))return(0,s.default)(t,u[n]),e.preventDefault(),!1;if((0,a.default)(t)){if((0,r.default)("enter",e)&&(0,i.default)(t))return e.preventDefault(),!1;if((0,r.default)("backspace",e)&&(0,o.default)(t))return e.preventDefault(),!1}}}},77074:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=u(n(55930)),o=u(n(8717)),a=u(n(64838)),s=u(n(29818)),l=u(n(86803));function u(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){if(e.selection&&!(0,o.default)(e))return(0,l.default)(e,"quote")&&(0,s.default)(e,"quote")?(r.Transforms.mergeNodes(e,(0,a.default)(e,"quote")),!0):(0,i.default)(e,!0)}},40860:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(51818)),i=s(n(76922)),o=s(n(55930)),a=s(n(13306));function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){if(e.selection)return(0,r.default)(e,"heading",!0)?function(e){if((0,a.default)(e))return(0,i.default)(e),!0}(e):(0,o.default)(e)}},53243:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=s(n(51818)),o=s(n(48457)),a=s(n(54958));function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){const{selection:n}=e;if(!n)return;const s=t.startsWith("heading-"),l=(0,i.default)(e,t,s,r.Range.isExpanded(n)),u=(0,o.default)(e);if(s)return void r.Transforms.setNodes(e,{type:l?"paragraph":t});const{focus:c,anchor:d}=n;return!l&&u&&c.path[c.path.length-3]!=d.path[d.path.length-3]?(0,a.default)(e,t,u):l?void r.Transforms.unwrapNodes(e,{match:e=>e.type===t}):r.Transforms.wrapNodes(e,{type:t})}},29818:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e,t){const{selection:n}=e;if(!n)return!1;const[r]=i.Editor.nodes(e,(0,o.default)(e,"block")),a=i.Editor.previous(e,(0,o.default)(e,t));return r&&a&&r[0].type===a[0].type}},48457:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e){const t=i.Editor.above(e,(0,o.default)(e,"list"));return t?t[0].type:null}},13306:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e){const{selection:t}=e;if(!t)return!1;const n=i.Editor.above(e,(0,o.default)(e,"paragraph"));return!!n&&i.Editor.isEnd(e,e.selection.focus,n[1])}},86803:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e,t){const{selection:n}=e;if(!n)return!1;const r=i.Editor.above(e,(0,o.default)(e,t));return!!r&&i.Editor.isStart(e,e.selection.focus,r[1])}},8717:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e){const{selection:t}=e;if(!t)return!1;const[n]=Array.from(r.Editor.nodes(e,{match:t=>r.Element.isElement(t)&&r.Editor.isBlock(e,t)&&`${t.type}`.startsWith("heading-"),mode:"lowest"}));return!!n&&r.Editor.isStart(e,e.selection.focus,n[1])&&!r.Editor.isEmpty(e,n[0])}},51818:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e,t,n,i){const{selection:o}=e;if(!o)return!1;const[a]=Array.from(r.Editor.nodes(e,{match:t=>r.Element.isElement(t)&&r.Editor.isBlock(e,t)&&"paragraph"!==t.type&&"list-item"!==t.type&&(n||!`${t.type}`.startsWith("heading-"))&&(!i||!`${t.type}`.endsWith("-list")),mode:"lowest"}));return!!a&&(a[0].type===t||`${a[0].type}`.startsWith(`${t}-`||`${a[0].type}`.endsWith(`-${t}`)))}},66324:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e){const{selection:t}=e;if(!t)return!1;const[n]=Array.from(r.Editor.nodes(e,{match:t=>r.Element.isElement(t)&&r.Editor.isBlock(e,t)&&"paragraph"!==t.type,mode:"lowest"}));return!!n&&!r.Editor.isEditor(n[0])}},76922:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e){return r.Editor.withoutNormalizing(e,(()=>{r.Transforms.splitNodes(e,{always:!0}),r.Transforms.setNodes(e,{type:"paragraph"})})),r.Editor.normalize(e,{force:!0}),!0}},55930:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e,t=!1){if(0!==e.selection.anchor.offset)return!1;const n=i.Editor.above(e,(0,o.default)(e,"non-default"));return 0!=n[1].length&&(`${n[0].type}`.startsWith("heading-")?(i.Transforms.setNodes(e,{type:"paragraph"}),!1):(i.Editor.withoutNormalizing(e,(()=>{i.Transforms.unwrapNodes(e,{match:e=>e.type===n[0].type,split:!0}),t&&i.Transforms.mergeNodes(e)})),i.Editor.normalize(e,{force:!0}),!0))}},54958:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e,t,n){r.Editor.withoutNormalizing(e,(()=>{r.Transforms.wrapNodes(e,{type:n}),r.Transforms.wrapNodes(e,{type:t},{match:e=>e.type===n}),r.Transforms.liftNodes(e,{match:e=>e.type===t})})),r.Editor.normalize(e,{force:!0})}},32786:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(74752)),i=o(n(53243));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return void 0===e.keyDownHandlers&&(e.keyDownHandlers=[]),e.keyDownHandlers.push(((e,t)=>(0,r.default)(e,t))),e.toggleBlock=t=>(0,i.default)(e,t),e}},65849:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(87202)),i=s(n(55145)),o=s(n(9283)),a=s(n(80082));function s(e){return e&&e.__esModule?e:{default:e}}const l={"mod+b":"bold","mod+i":"italic","mod+u":"underline","mod+`":"code","mod+shift+s":"delete","mod+shift+c":"code"};t.default=function(e,t){if(t.selection){for(const n in l)if((0,r.default)(n,e))return(0,i.default)(t,l[n]),e.preventDefault(),!1;return(0,r.default)("mod+k",e)?(e.preventDefault(),(0,a.default)(t)):(0,r.default)("shift+enter",e)?(e.preventDefault(),(0,o.default)(t)):void 0}}},9283:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e){if(!e.selection)return;const t={path:[...e.selection.focus.path.slice(0,-1),e.selection.focus.path[e.selection.focus.path.length-1]+2],offset:0};return r.Transforms.insertNodes(e,{type:"break",children:[{text:""}]}),r.Editor.normalize(e,{force:!0}),r.Transforms.select(e,t),!1}},80082:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(33856)),i=a(n(4734)),o=a(n(1675));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var n,a;const s=(0,r.default)(e),l=s?null===(n=s[0])||void 0===n||null===(a=n.data)||void 0===a?void 0:a.url:"",u=window.prompt(t,l);null!=u&&(""!==u?(0,o.default)(e,u):(0,i.default)(e))}},55145:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(2826))&&r.__esModule?r:{default:r};t.default=function(e,t){(0,o.default)(e,t)?i.Editor.removeMark(e,t):i.Editor.addMark(e,t,!0)}},2826:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e,t){const{selection:n}=e;if(!n)return!1;const i=r.Editor.marks(e);return!!i&&!0===i[t]}},33856:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(60466))&&r.__esModule?r:{default:r};t.default=function(e){const[t]=i.Editor.nodes(e,(0,o.default)(e));return t}},4734:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(60466))&&r.__esModule?r:{default:r};t.default=function(e){i.Transforms.unwrapNodes(e,(0,o.default)())}},1675:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=a(n(33856)),o=a(n(60466));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if((0,i.default)(e))return void r.Transforms.setNodes(e,{data:{url:t}},(0,o.default)());const{selection:n}=e,a=n&&r.Range.isCollapsed(n),s={type:"link",data:{url:t},children:a?[{text:t}]:[]};a?r.Transforms.insertNodes(e,s):(r.Transforms.wrapNodes(e,s,{split:!0}),r.Transforms.collapse(e,{edge:"end"}))}},63669:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(65849))&&r.__esModule?r:{default:r};t.default=function(e){const{isInline:t,isVoid:n}=e;return e.isInline=e=>["link","button","break","image"].includes(e.type)||t(e),e.isVoid=e=>["break","image","thematic-break"].includes(e.type)||n(e),void 0===e.keyDownHandlers&&(e.keyDownHandlers=[]),e.keyDownHandlers.push(((e,t)=>(0,i.default)(e,t))),e}},22411:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(87202)),i=l(n(37131)),o=l(n(89868)),a=l(n(86172)),s=l(n(47269));function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(t.isListItem())return(0,r.default)("enter",e)?(e.preventDefault(),(0,i.default)(t),!1):(0,r.default)("backspace",e)?!1===(0,s.default)(t)?(e.preventDefault(),!1):void 0:(0,r.default)("tab",e)?(e.preventDefault(),(0,o.default)(t)):(0,r.default)("shift+tab",e)?(e.preventDefault(),(0,a.default)(t)):void 0}},47269:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=u(n(83106)),o=u(n(75592)),a=u(n(5084)),s=u(n(58729)),l=u(n(37082));function u(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){if(e.selection&&r.Range.isCollapsed(e.selection)&&0===e.selection.anchor.offset&&(0,i.default)(e,!0)&&!(0,l.default)(e))return(0,o.default)(e)?(0,s.default)(e):(0,a.default)(e),!1}},37131:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=d(n(5795)),o=d(n(74922)),a=d(n(60011)),s=d(n(51641)),l=d(n(37082)),u=d(n(72117)),c=d(n(3091));function d(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){if(!e.selection)return;if(r.Range.isExpanded(e.selection)&&r.Transforms.delete(e),(0,o.default)(e))return(0,a.default)(e);const t=(0,c.default)(e);return t&&`${t[0].type}`.endsWith("-list")?(0,u.default)(e,t[0].type):(0,l.default)(e)?(0,s.default)(e):void(0,i.default)(e)}},86172:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=a(n(64838)),o=a(n(90630));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t{r.Transforms.liftNodes(e,l(l({},(0,i.default)(e,"list-item")),{},{split:!0})),r.Transforms.liftNodes(e,l(l({},(0,i.default)(e,"list-item")),{},{split:!0}))})),r.Editor.normalize(e)))}},89868:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=s(n(75592)),o=s(n(64838)),a=s(n(75626));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;tn.path.length?n.path.length:t.path.length,l={anchor:{offset:0,path:[...n.path.slice(0,s-2),0,0]},focus:{offset:0,path:[...t.path.slice(0,s-2),0,0]}};r.Editor.withoutNormalizing(e,(()=>{r.Transforms.wrapNodes(e,{type:"bulleted-list"},u(u({},(0,o.default)(e,"list-item")),{},{at:l}));const[,t]=r.Editor.above(e,(0,o.default)(e,"list")),n=r.Editor.previous(e,{at:t});(0,a.default)(e,t,n)})),r.Editor.normalize(e)}},96933:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(83106)),i=l(n(80953)),o=l(n(94478)),a=l(n(65874)),s=l(n(5084));function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(!(0,r.default)(e))return(0,o.default)(e,t);const n=(0,i.default)(e);return n&&n[0].type!==t?(0,a.default)(e,t):(0,s.default)(e)}},74922:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e){if(!e.selection)return!1;const{offset:t,path:n}=r.Range.start(e.selection);return 0===t&&n.length>=2&&0===n[n.length-1]&&0===n[n.length-2]}},37082:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e){if(!e.selection)return!1;const{offset:t,path:n}=r.Range.start(e.selection);return 0==t&&n.length>2&&n[n.length-2]>0}},83106:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e,t){const{selection:n}=e;if(!n)return!1;const[i]=Array.from(r.Editor.nodes(e,{match:n=>r.Element.isElement(n)&&r.Editor.isBlock(e,n)&&"paragraph"!==n.type&&(t||!`${n.type}`.startsWith("heading-")),mode:"lowest"}));return!!i&&"list-item"===i[0].type}},75592:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e){if(!e.selection)return!1;const[,t]=r.Editor.above(e,{match:e=>"list-item"===e.type,mode:"lowest",at:r.Range.start(e.selection)});return!!(t&&t.length>0&&t[t.length-1]>0)||void 0}},3091:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e){if(!e.selection)return!1;const[,t]=i.Editor.above(e,(0,o.default)(e,"paragraph"));return i.Editor.next(e,{at:t})}},80953:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e){return!!e.selection&&i.Editor.above(e,(0,o.default)(e,"list"))}},31917:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e){return!!e.selection&&i.Editor.above(e,(0,o.default)(e,"quote"))}},65874:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e,t){i.Editor.withoutNormalizing(e,(()=>{i.Transforms.wrapNodes(e,{type:t},(0,o.default)(e,"list-item")),i.Transforms.liftNodes(e,(0,o.default)(e,t))})),i.Editor.normalize(e,{force:!0})}},51641:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=a(n(86656)),o=a(n(98872));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){r.Editor.withoutNormalizing(e,(()=>{(0,o.default)(e,"paragraph",{type:"list-item"}),(0,i.default)(e,"list-item",{split:!0})})),r.Editor.normalize(e,{force:!0})}},86656:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.default=function(e,t,n){r.Transforms.liftNodes(e,function(e){for(var t=1;te.type===t||"paragraph"===t&&`${e.type}`.startsWith("heading"),mode:"lowest"},n))}},60011:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=l(n(23332)),o=l(n(86656)),a=l(n(80953)),s=l(n(31917));function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){r.Editor.withoutNormalizing(e,(()=>{(0,o.default)(e,"list-item",{split:!0});const t=(0,a.default)(e),n=(0,s.default)(e);t&&!n||t&&n&&t[1].length>n[1].length?(0,o.default)(e,"list-item",{split:!0}):(0,i.default)(e,"list-item")})),r.Editor.normalize(e,{force:!0})}},58729:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e){i.Editor.withoutNormalizing(e,(()=>{i.Transforms.mergeNodes(e,(0,o.default)(e,"list-item"))})),i.Editor.normalize(e,{force:!0})}},75626:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e,t,n){const[i,o]=n;r.Transforms.moveNodes(e,{at:t,to:[...o,i.children.length]})}},5795:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=a(n(86656)),o=a(n(98872));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){if(!e.selection)return!1;r.Range.isExpanded(e.selection)&&r.Transforms.delete(e),r.Editor.withoutNormalizing(e,(()=>{r.Transforms.splitNodes(e,{always:!0}),r.Transforms.setNodes(e,{type:"paragraph"}),(0,o.default)(e,"paragraph",{type:"list-item"}),(0,i.default)(e,"list-item")})),r.Editor.normalize(e,{force:!0})}},72117:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(98872))&&r.__esModule?r:{default:r};t.default=function(e,t){if(!e.selection)return!1;i.Range.isExpanded(e.selection)&&i.Transforms.delete(e),i.Editor.withoutNormalizing(e,(()=>{i.Transforms.splitNodes(e,{always:!0}),i.Transforms.setNodes(e,{type:"paragraph"}),(0,o.default)(e,"paragraph",{type:"list-item"}),(0,o.default)(e,"list-item",{type:t})})),i.Editor.normalize(e,{force:!0})}},23332:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e,t){i.Transforms.unwrapNodes(e,(0,o.default)(e,t))}},5084:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t{i.Transforms.unwrapNodes(e,s(s({},(0,o.default)(e,"list")),{},{split:!0})),i.Transforms.unwrapNodes(e,(0,o.default)(e,"list-item"))})),i.Editor.normalize(e)}},98872:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e,t,n){i.Transforms.wrapNodes(e,n,(0,o.default)(e,t))}},94478:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e,t){i.Editor.withoutNormalizing(e,(()=>{i.Transforms.wrapNodes(e,{type:t});const n=i.Editor.nodes(e,(0,o.default)(e,"paragraph"));for(const t of n)i.Transforms.wrapNodes(e,{type:"list-item"},{at:t[1]})})),i.Editor.normalize(e)}},34514:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=s(n(22411)),o=s(n(75626)),a=s(n(96933));function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){const{normalizeNode:t}=e;return void 0===e.keyDownHandlers&&(e.keyDownHandlers=[]),e.keyDownHandlers.push(((e,t)=>(0,i.default)(e,t))),e.toggleList=t=>(0,a.default)(e,t),e.isListItem=()=>{const{selection:t}=e;if(!t)return!1;const[n]=Array.from(r.Editor.nodes(e,{at:r.Editor.unhangRange(e,t),match:t=>!r.Editor.isEditor(t)&&r.Element.isElement(t)&&r.Editor.isBlock(e,t)&&"paragraph"!==t.type&&!`${t.type}`.startsWith("heading-"),mode:"lowest"}));return!!n&&"list-item"===n[0].type},e.normalizeNode=n=>{t(n);const[i,a]=n;let s=null;if(r.Element.isElement(i)||r.Editor.isEditor(i))for(const[t,n]of r.Node.children(e,a)){if(`${t.type}`.endsWith("-list")&&t.type===s){r.Transforms.mergeNodes(e,{at:n});break}s=t.type}if(r.Element.isElement(i)&&`${i.type}`.endsWith("-list")){const t=r.Editor.previous(e,{at:a}),[n,i]=r.Editor.parent(e,a);if(!t&&"list-item"===n.type){const t=r.Editor.previous(e,{at:i});(0,o.default)(e,a,t),r.Transforms.removeNodes(e,{at:i})}}},e}},64838:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(90630))&&r.__esModule?r:{default:r};t.default=function(e,t){return(0,i.default)(e,t,"lowest")}},60466:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(){return{match:e=>!r.Editor.isEditor(e)&&r.Element.isElement(e)&&"link"===e.type}}},90630:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e,t,n){return{match:n=>!r.Editor.isEditor(n)&&r.Element.isElement(n)&&r.Editor.isBlock(e,n)&&(n.type===t||"heading"===t&&`${n.type}`.startsWith("heading-")||"paragraph"===t&&`${n.type}`.startsWith("heading-")||"block"===t&&!`${n.type}`.startsWith("heading-")&&"paragraph"!==n.type||"list"===t&&`${n.type}`.endsWith("-list"))||"non-default"===t&&"paragraph"!==n.type,mode:n}}},35118:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(68192))&&r.__esModule?r:{default:r};t.default=function(e,t){const n=t.fields.toMap().mapKeys(((e,t)=>t.get("name"))).filter((e=>e.has("default"))).map((e=>e.get("default"))),r={type:"shortcode",id:t.id,data:{shortcode:t.id,shortcodeNew:!0,shortcodeData:n.toJS()},children:[{text:""}]};(0,o.default)(e)?i.Transforms.setNodes(e,r):i.Transforms.insertNodes(e,r)}},68192:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e){const{selection:t}=e;if(!t)return!1;const[n]=Array.from(r.Editor.nodes(e,{match:t=>r.Element.isElement(t)&&r.Editor.isBlock(e,t)&&"paragraph"===t.type,mode:"lowest"}));return!!n&&r.Editor.isEmpty(e,n[0])}},29366:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(13598))&&r.__esModule?r:{default:r};t.default=function(e){const{isVoid:t,normalizeNode:n}=e;return e.isVoid=e=>"shortcode"===e.type||t(e),e.normalizeNode=t=>{const[r]=t;i.Editor.isEditor(r)&&0==r.children.length&&i.Transforms.insertNodes(e,(0,o.default)()),n(t)},e}},21276:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Element=function(e){const{children:t,element:n,classNameWrapper:r,codeBlockComponent:i}=e,a={textAlign:n.align};switch(n.type){case"bulleted-list":return(0,o.jsx)(K,null,t);case"quote":return(0,o.jsx)(j,null,t);case"heading-one":return(0,o.jsx)(N,null,t);case"heading-two":return(0,o.jsx)(F,null,t);case"heading-three":return(0,o.jsx)(B,null,t);case"heading-four":return(0,o.jsx)(z,null,t);case"heading-five":return(0,o.jsx)(U,null,t);case"heading-six":return(0,o.jsx)(q,null,t);case"list-item":return(0,o.jsx)(L,null,t);case"numbered-list":return(0,o.jsx)(Z,null,t);case"table":return(0,o.jsx)(W,e);case"table-row":return(0,o.jsx)($,e);case"table-cell":return(0,o.jsx)(H,e);case"thematic-break":return(0,o.jsx)(l.default,e,(0,o.jsx)(V,e));case"link":return(0,o.jsx)(Y,e);case"image":return(0,o.jsx)(X,e);case"break":return(0,o.jsx)(G,e);case"shortcode":return"code-block"===n.id&&i?(0,o.jsx)(l.default,e,(0,o.jsx)(u.default,d({classNameWrapper:r,typeOverload:"code-block"},e))):(0,o.jsx)(l.default,e,(0,o.jsx)(u.default,e,t));default:return(0,o.jsx)(I,{style:a},t)}},t.Leaf=function({attributes:e,children:t,leaf:n}){return n.bold&&(t=(0,o.jsx)(P,null,t)),n.italic&&(t=(0,o.jsx)(R,null,t)),n.delete&&(t=(0,o.jsx)(D,null,t)),n.code&&(t=(0,o.jsx)(M,null,t)),(0,o.jsx)("span",e,t)},t.renderInline__DEPRECATED=function(){return e=>{switch(e.node.type){case"link":return(0,o.jsx)(Y,e);case"image":return(0,o.jsx)(X,e);case"break":return(0,o.jsx)(G,e)}}};var r=c(n(70894)),i=c(n(2784)),o=n(28165),a=n(30762),s=n(77713),l=c(n(4611)),u=c(n(69076));function c(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;tp:first-of-type{margin-top:8px;}&>p:last-of-type{margin-bottom:8px;}"}),C=(0,r.default)("a",{target:"evlbpgx3",label:"StyledA"})({name:"11z7vuy",styles:"text-decoration:underline;font-size:inherit"}),T=(0,r.default)("hr",{target:"evlbpgx2",label:"StyledHr"})({name:"1y2p2hw",styles:"border:1px solid;margin-bottom:16px"}),O=(0,r.default)("table",{target:"evlbpgx1",label:"StyledTable"})({name:"tkxk5i",styles:"border-collapse:collapse"}),A=(0,r.default)("td",{target:"evlbpgx0",label:"StyledTd"})({name:"zsehaa",styles:"border:2px solid black;padding:8px;text-align:left"});function P(e){return(0,o.jsx)("strong",null,e.children)}function R(e){return(0,o.jsx)("em",null,e.children)}function D(e){return(0,o.jsx)("s",null,e.children)}function M(e){return(0,o.jsx)(x,null,e.children)}function I(e){return(0,o.jsx)(w,e.attributes,e.children)}function L(e){return(0,o.jsx)(S,e.attributes,e.children)}function j(e){return(0,o.jsx)(_,e.attributes,e.children)}function N(e){return(0,o.jsx)(h,e.attributes,e.children)}function F(e){return(0,o.jsx)(m,e.attributes,e.children)}function B(e){return(0,o.jsx)(g,e.attributes,e.children)}function z(e){return(0,o.jsx)(v,e.attributes,e.children)}function U(e){return(0,o.jsx)(y,e.attributes,e.children)}function q(e){return(0,o.jsx)(b,e.attributes,e.children)}function W(e){return(0,o.jsx)(O,null,(0,o.jsx)("tbody",e.attributes,e.children))}function $(e){return(0,o.jsx)("tr",e.attributes,e.children)}function H(e){return(0,o.jsx)(A,e.attributes,e.children)}function V(e){const t=(0,s.useSelected)();return(0,o.jsx)("div",e.attributes,e.children,(0,o.jsx)("div",{contentEditable:!1},(0,o.jsx)(T,d({},e.attributes,{css:t&&(0,o.css)("box-shadow:0 0 0 2px ",a.colors.active,";border-radius:8px;color:",a.colors.active,";;label:ThematicBreak;")}))))}function G(e){return(0,o.jsx)(i.default.Fragment,null,(0,o.jsx)("br",e.attributes),e.children)}function K(e){return(0,o.jsx)(k,e.attributes,e.children)}function Z(e){return(0,o.jsx)(E,d({},e.attributes,{start:1}),e.children)}function Y(e){const t=e.url,n=e.title||t;return(0,o.jsx)(C,d({href:t,title:n},e.attributes),e.children)}function X(e){const{url:t,title:n,alt:r}=e.element.data,i=(0,s.useSelected)();return(0,o.jsx)("span",e.attributes,e.children,(0,o.jsx)("img",d({src:t,title:n,alt:r},e.attributes,{css:i&&(0,o.css)("box-shadow:0 0 0 2px ",a.colors.active,";;label:Image;")})))}},41719:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i,o,a=f(n(2784)),s=f(n(13980)),l=n(30762),u=f(n(35368)),c=n(32322),d=n(28165);function f(e){return e&&e.__esModule?e:{default:e}}class p extends a.default.Component{render(){const{value:e,getAsset:t,resolveWidget:n,field:r,getRemarkPlugins:i}=this.props;if(null===e)return null;const o=(0,c.markdownToHtml)(e,{getAsset:t,resolveWidget:n},null==i?void 0:i()),a=null!=r&&r.get("sanitize_preview",!1)?u.default.sanitize(o):o;return(0,d.jsx)(l.WidgetPreviewContainer,{dangerouslySetInnerHTML:{__html:a}})}}r=p,i="propTypes",o={getAsset:s.default.func.isRequired,resolveWidget:s.default.func.isRequired,value:s.default.string},(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,t.default=p},79425:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsWidgetMarkdown=void 0;var r=a(n(64767)),i=a(n(41719)),o=a(n(60794));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l=t.DecapCmsWidgetMarkdown={Widget:function(e={}){return function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combinePatterns=function(e){return e.map((e=>`(?:${e.source})`)).join("|")},t.joinPatternSegments=function(e){return e.map((e=>e.source)).join("")},t.replaceWhen=function(e,t,n,r){function o(e,t,n,r=!1){e.push({index:t,text:n,match:r})}const a=function e(t,n,r){const a=t.exec(n),s=(0,i.default)(r);if(!a)return r;if(0===a.index)o(r,0,a[0],!0);else if(s)if(a.index===s.index+s.text.length)o(r,a.index,a[0],!0);else{const e=s.index+s.text.length;o(r,e,a.input.slice(e,a.index)),o(r,a.index,a[0],!0)}else o(r,0,a.input.slice(0,a.index)),o(r,a.index,a[0],!0);return e(t,n,r)}(e,n,[]),s=(0,i.default)(a);if(!s)return t(n);const l=s.index+s.text.length;return n.length>l&&a.push({index:l,text:n.slice(l)}),a.map((e=>(r?!e.match:e.match)?t(e.text):e.text)).join("")};var r,i=(r=n(56974))&&r.__esModule?r:{default:r}},60794:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{minimal:{type:"boolean"},buttons:{type:"array",items:{type:"string",enum:["bold","italic","code","link","heading-one","heading-two","heading-three","heading-four","heading-five","heading-six","quote","bulleted-list","numbered-list"]}},editor_components:{type:"array",items:{type:"string"}},modes:{type:"array",items:{type:"string",enum:["raw","rich_text"]},minItems:1}}}},32322:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToSlate=function(e){const t=(0,i.default)().use(c.default,{fragment:!0}).parse(e),n=(0,i.default)().use(p.default).use(d.default,{minify:!1}).runSync(t);return(0,i.default)().use(h.default).use(m.default).use(g.default).use(v.default).runSync(n)},t.markdownToHtml=function(e,{getAsset:t,resolveWidget:n,remarkPlugins:r=[]}={}){const o=C(e,r),a=(0,i.default)().use(f.default,{plugins:(0,E.getEditorComponents)(),getAsset:t,resolveWidget:n}).use(l.default,{allowDangerousHTML:!0}).runSync(o);return(0,i.default)().use(u.default,{allowDangerousHtml:!0,allowDangerousCharacters:!0,closeSelfClosing:!0,entities:{useNamedReferences:!0}}).stringify(a)},t.markdownToRemark=C,t.markdownToSlate=function(e,{voidCodeBlock:t,remarkPlugins:n=[]}={}){const r=C(e,n);return(0,i.default)().use(g.default).use(v.default,{voidCodeBlock:t}).runSync(r).children},t.remarkToMarkdown=O,t.slateToMarkdown=function(e,{voidCodeBlock:t,remarkPlugins:n=[]}={}){return O((0,k.default)(e,{voidCodeBlock:t}),n)};var r=S(n(1573)),i=S(n(43367)),o=S(n(73610)),a=S(n(98431)),s=S(n(48283)),l=S(n(32578)),u=S(n(27809)),c=S(n(52824)),d=S(n(62100)),f=S(n(74961)),p=S(n(38052)),h=S(n(64906)),m=S(n(68236)),g=S(n(19108)),v=S(n(82704)),y=S(n(74099)),b=n(61517),w=S(n(25960)),_=S(n(24669)),x=S(n(96117)),k=S(n(13533)),E=n(64767);function S(e){return e&&e.__esModule?e:{default:e}}function C(e,t){const n=(0,i.default)().use(a.default,{fences:!0,commonmark:!0}).use(T,{inlineTokenizers:["url"]}).use(b.remarkParseShortcodes,{plugins:(0,E.getEditorComponents)()}).use(x.default).use(y.default).use(t),r=n.parse(e);return n.runSync(r)}function T({inlineTokenizers:e}){e&&e.forEach((e=>{delete this.Parser.prototype.inlineTokenizers[e]}))}function O(e,t){const n=e||(0,o.default)("root",[(0,o.default)("paragraph",[(0,o.default)("text","")])]),a=(0,i.default)().use({settings:{commonmark:!0,fences:!0,listItemIndent:"1",bullet:"*",emphasis:"*",strong:"*",rule:"-"}}).use(w.default).use(_.default).use(s.default).use((function(){this.Compiler.prototype.visitors.text=e=>e.value})).use((0,b.createRemarkShortcodeStringifier)({plugins:(0,E.getEditorComponents)()})).use(t),l=a.runSync(n),u=a.stringify(l).replace(/\r?/g,"");return(0,r.default)(u)}},38052:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function e(t){return"img"===t.tagName&&t.properties.dataEmojiCh?{type:"text",value:t.properties.dataEmojiCh}:(t.children=t.children?t.children.map(e):t.children,t)}}},96117:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){this.Parser.prototype.inlineTokenizers.text=function(e,t,n){var r,i,o,a,s,l,u,c,d,f=this;if(n)return!0;for(a=(r=f.inlineMethods).length,i=f.inlineTokenizers,o=-1,d=t.length;++o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function e(t){const n=function(e){const t=["paragraph","heading","code","blockquote","list","table","thematicBreak"],n=["root","blockquote","listItem","tableCell"];let i;return(0,s.default)(e,((e,s)=>{const l=!(0,r.default)(s)&&(0,o.default)(s).type;if(t.includes(e.type)&&!n.includes(l))return i=(0,a.default)(s,e),!1})),i}(t);return n?(function(e,t){const n=(0,i.default)(t,-3)||e,s=(0,i.default)(t,-2),l=(0,o.default)(t),u=n.children.indexOf(s),d=n.children,f=s.children.indexOf(l),p=s.children.slice(0,f),h=s.children.slice(f+1),m=[!(0,r.default)(p)&&c(c({},s),{},{children:p}),l,!(0,r.default)(h)&&c(c({},s),{},{children:h})].filter((e=>!(0,r.default)(e))),g=d.slice(0,u),v=d.slice(u+1),y=(0,a.default)(g,m,v);n.children=y}(t,n),e(t)):t}};var r=l(n(45455)),i=l(n(77180)),o=l(n(56974)),a=l(n(22487)),s=l(n(26578));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function e(t,n){if((0,a.default)(t.data,"shortcode"))return t;const r=t.children?{children:t.children.map(e)}:{};if(["text","html"].includes(t.type)&&t.value){const e=0===n?v(t.value).replace(/^\s*([-#*>=|]| {4,}|`{3,})/,"$`\\$1"):v(t.value);return c(c({},t),{},{value:e},r)}return c(c({},t),r)}};var r=l(n(16760)),i=l(n(83465)),o=l(n(85395)),a=l(n(93352)),s=n(92521);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t/},f={htmlTags:[/<(?!pre|style|script)[\w]+/,d.htmlOpeningTagEnd],preformattedHtmlBlocks:[/<(pre|style|script)/,d.htmlOpeningTagEnd,/(.|[\n\r])*?/,/<\/\1>/]},p=(0,r.default)(f,(e=>new RegExp((0,s.joinPatternSegments)(e)))),h=(0,s.combinePatterns)(p),m=[/(\*+)[^*]*(\1)/g,/(_)[^_]+(_)\b/g,/(_{2,})[^_]*(\1)/g,/(~+)[^~]*(\1)/g,/(`+)[^`]*(\1)/g,/(\[(?!\^)+)[^\]]*]/g].map((e=>(0,i.default)(y,e))),g=(0,o.default)(m);function v(e){const t=new RegExp(h,"gm");return(0,s.replaceWhen)(t,g,e,!0)}function y(e,t){return t.replace(e,((e,t,n)=>{const r="string"==typeof n,i=r?e.length-n.length:e.length,o=e.slice(t.length,i);return`${b(t)}${o}${r?b(n):""}`}))}function b(e){let t="";for(const n of e)t+=`\\${n}`;return t}},68236:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){function e(e){if("link"!==e.type)return e;const n=(0,d.default)(e),r=(0,s.default)(n," ")&&t(e),l=(0,a.default)(n," ")&&t(e,!0);return r||l?(r&&(r.value=(0,o.default)(r.value)),l&&(l.value=(0,i.default)(l.value)),[r&&(0,c.default)("text"," "),e,l&&(0,c.default)("text"," ")].filter((e=>e))):e}function t(e,t){let n,r;return n=t?l.default:u.default,function e(t){!r&&t.value&&(r=t),n(t.children,e)}(e),r}return function t(n){if(!n.children)return n;const i=(n.children.some((e=>"link"===e.type))?(0,r.default)(n.children,e):n.children).map(t);return h(h({},n),{},{children:i})}};var r=f(n(35838)),i=f(n(1573)),o=f(n(93433)),a=f(n(48559)),s=f(n(37994)),l=f(n(72960)),u=f(n(17452)),c=f(n(73610)),d=f(n(75330));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({plugins:e,getAsset:t,resolveWidget:n}){return function(e){const t=(0,i.default)(e.children,l);return c(c({},e),{},{children:t})};function l(i){if(!(0,r.default)(i,["data","shortcode"]))return i;const{shortcode:l,shortcodeData:u}=i.data,d=function(e,r){const{toPreview:i,widget:a,fields:s}=e;if(i)return i(r,t,s);const l=n(a);return o.default.createElement(l.preview,{value:r,field:e,getAsset:t})}(e.get(l),u),f="string"==typeof d?d:(0,a.renderToString)(d),p=[(0,s.default)("html",f)];return c(c({},i),{},{children:p})}};var r=l(n(93352)),i=l(n(16760)),o=l(n(2784)),a=n(48090),s=l(n(73610));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t{"use strict";function n(e){return e.split("\n\n").reduce(((e,t)=>{const{start:n,originalLength:r}=e[e.length-1];return[...e,{line:t.trimEnd(),start:n+r+2,originalLength:t.length}]}),[{start:-2,originalLength:0}]).slice(1).map((({line:e,start:t})=>({line:e,start:t})))}function r({trimmedLines:e,plugin:t}){for(const{line:n,start:r}of e){const e=n.match(t.pattern);if(e)return e.index+=r,e}}Object.defineProperty(t,"__esModule",{value:!0}),t.createRemarkShortcodeStringifier=function({plugins:e}){return function(){this.Compiler.prototype.visitors.shortcode=function(t){const{data:n}=t;return e.find((e=>n.shortcode===e.id)).toBlock(n.shortcodeData)}}},t.getLinesWithOffsets=n,t.remarkParseShortcodes=function({plugins:e}){const t=this.Parser,i=t.prototype.blockTokenizers,o=t.prototype.blockMethods;i.shortcode=function({plugins:e}){return function(t,i,o){const a=n(i),[{plugin:s,match:l}={}]=e.toArray().map((e=>({match:i.match(e.pattern)||r({trimmedLines:a,plugin:e}),plugin:e}))).filter((({match:e})=>!!e)).sort(((e,t)=>e.match.index-t.match.index));if(l){if(o)return!0;const e=s.fromBlock(l);try{return t(l[0])({type:"shortcode",data:{shortcode:s.id,shortcodeData:e}})}catch(t){return console.warn(`Sent invalid data to remark. Plugin: ${s.id}. Value: ${l[0]}. Data: ${JSON.stringify(e)}`),!1}}}}({plugins:e}),o.unshift("shortcode")}},82704:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({voidCodeBlock:e}={}){return t;function t(e){let n=!["strong","emphasis","delete"].includes(e.type)&&!(0,l.default)(e.children)&&(0,a.default)(e.children,t).filter((e=>e));return Array.isArray(n)&&(n=m(n)),y(e,n||void 0)}function n(e,t){return t?d(d({},e),{},{children:t}):e}function r(e,t,r={}){(0,s.default)(t)||(r=t,t=void 0);const i=(0,l.default)(t)?[c("")]:t;return n(d({type:e},r),i)}function u(e,t={},r){return n(d({type:e},t),(0,l.default)(r)?[c("")]:r)}function c(e){const t={};if("string"==typeof e)return d(d({},t),{},{text:e});const{text:n,marks:r}=e;return v(d(d({},t),{},{text:n,marks:r}))}function h(e,n){switch(e.type){case"html":case"text":return d(d({},y(e)),{},{marks:n});case"inlineCode":return d(d({},y(e)),{},{marks:[...n,{type:"code"}]});case"strong":case"emphasis":case"delete":return g(e,n);case"link":{const t=(0,o.default)(e.children,(e=>v(h(e,n))));return y(e,(0,i.default)(t))}default:return t(d(d({},e),{},{data:d(d({},e.data),{},{marks:n})}))}}function g(e,t=[]){const n=p[e.type],r=n?[...t.filter((({type:e})=>e!==n)),{type:n}]:t;return(0,a.default)(e.children,(e=>v(h(e,r))))}function v(e){return e.marks&&e.marks.forEach((t=>{e[t.type]=!0})),e}function y(t,n){switch(t.type){case"root":case"paragraph":case"blockquote":case"tableRow":case"tableCell":return r(f[t.type],n);case"listItem":{const e=(0,l.default)(n)?[r("paragraph")]:n;return r(f[t.type],e)}case"shortcode":{const e=[c("")],n=d(d({},t.data),{},{id:t.data.shortcode,shortcodeNew:!0});return r(f[t.type],e,{data:n})}case"text":case"html":return c(t.value);case"inlineCode":return c({text:t.value,code:!0,marks:[{type:"code"}]});case"strong":case"emphasis":case"delete":return g(t);case"heading":return r(`heading-${{1:"one",2:"two",3:"three",4:"four",5:"five",6:"six"}[t.depth]}`,n);case"code":{const n=d(d({lang:t.lang},e?{code:t.value}:{}),{},{shortcode:"code-block",shortcodeData:{code:t.value,lang:t.lang}});return r("shortcode",[c(e?"":t.value)],{data:n})}case"list":return r(t.ordered?"numbered-list":"bulleted-list",n,{data:{start:t.start}});case"break":{const{data:e}=t;return u("break",{data:e})}case"thematicBreak":return r(f[t.type]);case"link":{const{title:e,url:r,data:i}=t,o=d(d({},i),{},{title:e,url:r});return u(f[t.type],{data:o},n)}case"image":{const{title:e,url:n,alt:r,data:i}=t,o=d(d({},i),{},{title:e,alt:r,url:n});return u(f[t.type],{data:o})}case"table":{const e={align:t.align};return r(f[t.type],n,{data:e})}}}},t.mergeAdjacentTexts=m;var r=u(n(18149)),i=u(n(35676)),o=u(n(16760)),a=u(n(35838)),s=u(n(86152)),l=u(n(45455));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function(t){const n=(0,a.default)(t);return e.call(null,n,t)};function e(t,n){const a=e.bind(null,t),s=n.children?n.children.map(a):n.children;if(["imageReference","linkReference"].includes(n.type)){const e="imageReference"===n.type?"image":"link",r=t(n.identifier);if(r){const{title:t,url:i}=r;return(0,o.default)(e,{title:t,url:i,alt:n.alt},s)}const i=(0,o.default)("text","imageReference"===n.type?"![":"["),a=(0,o.default)("text","]");return[i,...s||[(0,o.default)("text",n.alt)],a]}if("definition"===n.type)return null;const l=(0,i.default)(s,null);return u(u({},n),{},{children:(0,r.default)(l)})}};var r=s(n(35676)),i=s(n(67304)),o=s(n(73610)),a=s(n(99983));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function e(t){return t.children&&(t.children=t.children.map(((e,t,n)=>{if("break"===e.type){const r={type:"root",children:n.slice(t+1)};return(0,i.default)(r).trim()?e:null}return e})).filter((e=>e)).map(e)),t}};var r,i=(r=n(75330))&&r.__esModule?r:{default:r}},19108:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function(e){return e.children=e.children.map((e=>"html"===e.type?(0,i.default)("paragraph",[e]):e)),e}};var r,i=(r=n(73610))&&r.__esModule?r:{default:r}},13533:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,{voidCodeBlock:t}){return function e(n){const r=n.children&&n.children[0]&&b.includes(n.children[0].type)?n.children.map(e).filter((e=>e)):A(n.children);return function(e,n){switch("shortcode"==e.type&&"code-block"==e.data.shortcode&&(e=function(e){return g(g({},e),{},{type:"code-block",data:g(g({},e.data),e.data.shortcodeData)})}(e)),e.type){case"root":case"paragraph":case"quote":case"list-item":case"table":case"table-row":case"table-cell":return(0,u.default)(v[e.type],n);case"shortcode":{const{data:t}=e;return(0,u.default)(v[e.type],{data:t})}case"heading-one":case"heading-two":case"heading-three":case"heading-four":case"heading-five":case"heading-six":{const t={one:1,two:2,three:3,four:4,five:5,six:6}[e.type.split("-")[1]],r=(0,u.default)(v[e.type],{depth:t},n);return(0,c.default)(r)?r:void 0}case"code-block":{var r;const i=(0,l.default)(e,"data",{}),{lang:o,code:a}=i,s=h(i,d),c=t?a:null===(r=n[0])||void 0===r?void 0:r.value;return(0,u.default)(v[e.type],{lang:o,data:s},c||"")}case"numbered-list":case"bulleted-list":{const t={ordered:"numbered-list"===e.type,start:(0,l.default)(e.data,"start")||1};return(0,u.default)(v[e.type],t,n)}case"thematic-break":return(0,u.default)(v[e.type])}}(n,r)}({type:"root",children:e});function n(e,t){return e.map((e=>{const i=g({},e);switch(e.type){case"link":{const r=n(e.children,t);return g(g({},e),{},{children:r})}case"image":case"break":{const t=(0,r.default)(e.data,"marks");return g(g({},e),{},{data:t})}default:return delete i[t],i.marks=i.marks?i.marks.filter((({type:e})=>e!==t)):[],0===i.marks.length&&delete i.marks,i}}))}function p(e){switch(e.type){case"link":{const t=e.children.map((e=>{const t=g({},e);return t.marks=e.marks?e.marks.filter((({type:e})=>"code"!==e)):e.marks,delete t.code,t})),n=(0,o.default)(t,p);return(0,i.default)(...n)}case"break":case"image":return(0,o.default)((0,l.default)(e,["data","marks"]),(e=>e.type));default:return m(e)}}function m(e){return Object.keys(y).filter((t=>!!e[t]))}function k(e,t){const n=p(t),r=(0,i.default)(e,n);return"code"===r[0]?1===n.length?e:[]:r}function E(e){let t=p(e[0])||[];"code"===t[0]&&t.length>1&&(t=[...(0,s.default)("firstGroupMarks","code"),"code"]);let r=1;if(t.length>0)for(;r0))break;t=n}r+=1}const i=t[0],o=e.slice(0,r);return[i,i?n(o,i):o,e.slice(r)]}function S(e,{trailing:t}={}){if(!e.text)return{trimmedNode:e};const n=t?x:_,r=e.text.search(n);if(r>-1){const n=t?r:r+1,i=e.text.slice(0,n),o=e.text.slice(n),a=t?i:o;return{whitespace:t?o:i,trimmedNode:g(g({},e),{},{text:a})}}return{trimmedNode:e}}function C(e){const{whitespace:t,trimmedNode:n}=S(e[0]),r=S(e.length>1?(0,a.default)(e):n,{trailing:!0}),{whitespace:i,trimmedNode:o}=r,s=function(e,t,n){switch(e.length){case 0:return[];case 1:return[n];case 2:return[t,n];default:return[t,...e.slice(1,-1),n]}}(e,n,o).filter((e=>e));return{leadingWhitespace:t,centerNodes:s,trailingWhitespace:i}}function T(e){return e&&(0,u.default)("html",e)}function O(e){return w.includes(e.type)}function A(e=[]){const t=[];let n=[...e];for(;n.length>0;){const e=n[0];if(O(e)||m(e).length>0){const[r,i,o]=E(n);if("code"===r){const e=i[0];t.push((0,u.default)(y[r],e.data,e.text))}else if(!r&&1===i.length&&O(e)){const e=i[0];t.push(P(e,A(e.children)))}else{const{leadingWhitespace:e,trailingWhitespace:a,centerNodes:s}=C(i),l=A(s),d=(0,u.default)(y[r],l);if(""===(0,c.default)(d)){n=o;continue}const f=[T(e),d,T(a)].filter((e=>e));t.push(...f)}n=o}else"break"===e.type?(n=n.slice(1),t.push(P(e))):(n.shift(),t.push((0,u.default)("html",e.text)))}return t}function P(e,t){switch(e.type){case"break":return(0,u.default)(v[e.type]);case"link":{const{title:n,data:r}=e;return(0,u.default)(v[e.type],g({url:null==r?void 0:r.url,title:n},r),t)}case"image":{const t=(0,l.default)(e,"data",{}),{url:n,title:r,alt:i}=t,o=h(t,f);return(0,u.default)(v[e.type],{url:n,title:r,alt:i,data:o})}}}};var r=p(n(17620)),i=p(n(30898)),o=p(n(16760)),a=p(n(56974)),s=p(n(67304)),l=p(n(72579)),u=p(n(73610)),c=p(n(75330));const d=["lang","code"],f=["url","title","alt"];function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.editorStyleVars=t.EditorControlBar=void 0;var r,i=(r=n(70894))&&r.__esModule?r:{default:r},o=n(30762);const a=t.editorStyleVars={stickyDistanceBottom:"100px"};t.EditorControlBar=(0,i.default)("div",{target:"ehaqqzm0",label:"EditorControlBar"})("z-index:",o.zIndex.zIndex200,";position:sticky;top:0;margin-bottom:",a.stickyDistanceBottom,";")},69298:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.validateMinMax=c;var r=s(n(2784)),i=s(n(13980)),o=s(n(19155)),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u={PRESENCE:"PRESENCE",PATTERN:"PATTERN",RANGE:"RANGE",CUSTOM:"CUSTOM"};function c(e,t,n,r,i){let o;switch(!0){case""!==e&&!1!==t&&!1!==n&&(en):o={type:u.RANGE,message:i("editor.editorControlPane.widget.range",{fieldLabel:r.get("label",r.get("name")),minValue:t,maxValue:n})};break;case""!==e&&!1!==t&&en:o={type:u.RANGE,message:i("editor.editorControlPane.widget.max",{fieldLabel:r.get("label",r.get("name")),maxValue:n})};break;default:o=null}return o}class d extends r.default.Component{constructor(...e){super(...e),l(this,"handleChange",(e=>{const t=this.props.field.get("value_type"),{onChange:n}=this.props,r="float"===t?parseFloat(e.target.value):parseInt(e.target.value,10);isNaN(r)?n(""):n(r)})),l(this,"isValid",(()=>{const{field:e,value:t,t:n}=this.props,r=!!e.get("pattern",!1),i=e.get("min",!1),o=e.get("max",!1);if(r)return!0;const a=c(t,i,o,e,n);return!a||{error:a}}))}render(){const{field:e,value:t,classNameWrapper:n,forID:r,setActiveStyle:i,setInactiveStyle:o}=this.props,s=e.get("min",""),l=e.get("max",""),u=e.get("step","int"===e.get("value_type")?1:"");return(0,a.jsx)("input",{type:"number",id:r,className:n,onFocus:i,onBlur:o,value:t||(0===t?t:""),step:u,min:s,max:l,onChange:this.handleChange})}}t.default=d,l(d,"propTypes",{field:o.default.map.isRequired,onChange:i.default.func.isRequired,classNameWrapper:i.default.string.isRequired,setActiveStyle:i.default.func.isRequired,setInactiveStyle:i.default.func.isRequired,value:i.default.node,forID:i.default.string,valueType:i.default.string,step:i.default.number,min:i.default.number,max:i.default.number,t:i.default.func.isRequired}),l(d,"defaultProps",{value:""})},1484:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(n(2784));var r=a(n(13980)),i=n(30762),o=n(28165);function a(e){return e&&e.__esModule?e:{default:e}}function s({value:e}){return(0,o.jsx)(i.WidgetPreviewContainer,null,e)}s.propTypes={value:r.default.node},t.default=s},82133:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsWidgetNumber=void 0;var r=a(n(69298)),i=a(n(1484)),o=a(n(60704));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l=t.DecapCmsWidgetNumber={Widget:function(e={}){return function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{step:{type:"number"},value_type:{type:"string"},min:{type:"number"},max:{type:"number"}}}},53998:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(2784)),i=c(n(13980)),o=c(n(19155)),a=n(28165),s=n(46670),l=n(30762),u=n(1704);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f=`\n padding: ${l.lengths.objectWidgetTopBarContainerPadding};\n `;class p extends r.default.Component{constructor(e){super(e),d(this,"componentValidate",{}),d(this,"validate",(()=>{const{field:e}=this.props;let t=e.get("field")||e.get("fields");t=s.List.isList(t)?t:(0,s.List)([t]),t.forEach((e=>{"hidden"!==e.get("widget")&&this.componentValidate[e.get("name")]()}))})),d(this,"handleCollapseToggle",(()=>{this.setState({collapsed:!this.state.collapsed})})),d(this,"renderFields",((e,t)=>e?e.map(((e,t)=>this.controlFor(e,t))):this.controlFor(t))),d(this,"objectLabel",(()=>{const{value:e,field:t}=this.props,n=t.get("label",t.get("name")),r=t.get("summary");return r?u.stringTemplate.compileStringTemplate(r,null,"",e):n})),this.state={collapsed:e.field.get("collapsed",!1)}}shouldComponentUpdate(){return!0}controlFor(e,t){const{value:n,onChangeObject:r,onValidateObject:i,clearFieldErrors:o,metadata:l,fieldsErrors:u,editorControl:c,controlRef:d,parentIds:f,isFieldDuplicate:p,isFieldHidden:h,locale:m,collapsed:g}=this.props;if("hidden"===e.get("widget"))return null;const v=e.get("name"),y=n&&s.Map.isMap(n)?n.get(v):n,b=p&&p(e),w=h&&h(e);return(0,a.jsx)(c,{key:t,field:e,value:y,onChange:r,clearFieldErrors:o,fieldsMetaData:l,fieldsErrors:u,onValidate:i,processControlRef:d&&d.bind(this),controlRef:d,parentIds:f,isDisabled:b,isHidden:w,isFieldDuplicate:p,isFieldHidden:h,locale:m,isParentListCollapsed:g})}render(){const{field:e,forID:t,classNameWrapper:n,forList:r,hasError:i,t:o}=this.props,s=r?this.props.collapsed:this.state.collapsed,u=e.get("fields"),c=e.get("field");return u||c?(0,a.jsx)(a.ClassNames,null,(({css:e,cx:d})=>(0,a.jsx)("div",{id:t,className:d(n,e` + `,renderElement:$,renderLeaf:H,onKeyDown:V,autoFocus:!1}),(0,l.jsx)(M,{onClick:G}))))))}j.propTypes={onAddAsset:a.default.func.isRequired,getAsset:a.default.func.isRequired,onChange:a.default.func.isRequired,onMode:a.default.func.isRequired,className:a.default.string.isRequired,value:a.default.string,field:s.default.map.isRequired,getEditorComponents:a.default.func.isRequired,getRemarkPlugins:a.default.func.isRequired,isShowModeToggle:a.default.bool.isRequired,t:a.default.func.isRequired},t.default=j},69076:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(17620))&&r.__esModule?r:{default:r},o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(void 0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(2784)),a=n(28165),s=n(46670),l=n(77713),u=n(72056),c=n(64767);function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t{},isNewEditorComponent:n.data.shortcodeNew,isSelected:_}),d)}},4611:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,l(n(2784));var r=n(28165),i=n(30762),o=n(77713),a=n(72056),s=l(n(13598));function l(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getEditorComponents=function(){return h()},t.getEditorControl=function(){return p};var r=c(n(2784)),i=c(n(13980)),o=c(n(19155)),a=n(46670),s=c(n(75988)),l=c(n(98328)),u=n(28165);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f="cms.md-mode";let p,h=()=>(0,a.Map)();class m extends r.default.Component{constructor(e){var t;super(e),d(this,"handleMode",(e=>{this.setState({mode:e,pendingFocus:!0}),localStorage.setItem(f,e)})),d(this,"processRef",(e=>this.ref=e)),d(this,"setFocusReceived",(()=>{this.setState({pendingFocus:!1})})),d(this,"getAllowedModes",(()=>this.props.field.get("modes",(0,a.List)(["rich_text","raw"])).toArray())),p=e.editorControl;const n=null!==(t=localStorage.getItem(f))&&void 0!==t?t:"rich_text";h=e.getEditorComponents,this.state={mode:-1!==this.getAllowedModes().indexOf(n)?n:this.getAllowedModes()[0],pendingFocus:!1}}render(){const{onChange:e,onAddAsset:t,getAsset:n,value:r,classNameWrapper:i,field:o,getEditorComponents:a,getRemarkPlugins:c,resolveWidget:d,t:f,isDisabled:p}=this.props,{mode:h,pendingFocus:m}=this.state,g=this.getAllowedModes().length>1,v=(0,u.jsx)("div",{className:"cms-editor-visual",ref:this.processRef},(0,u.jsx)(l.default,{onChange:e,onAddAsset:t,isShowModeToggle:g,onMode:this.handleMode,getAsset:n,className:i,value:r,field:o,getEditorComponents:a,getRemarkPlugins:c,resolveWidget:d,pendingFocus:m&&this.setFocusReceived,t:f,isDisabled:p})),y=(0,u.jsx)("div",{className:"cms-editor-raw",ref:this.processRef},(0,u.jsx)(s.default,{onChange:e,onAddAsset:t,isShowModeToggle:g,onMode:this.handleMode,getAsset:n,className:i,value:r,field:o,pendingFocus:m&&this.setFocusReceived,t:f}));return"rich_text"===h?v:y}}t.default=m,d(m,"propTypes",{onChange:i.default.func.isRequired,onAddAsset:i.default.func.isRequired,getAsset:i.default.func.isRequired,classNameWrapper:i.default.string.isRequired,editorControl:i.default.elementType.isRequired,value:i.default.string,field:o.default.map.isRequired,getEditorComponents:i.default.func,t:i.default.func.isRequired}),d(m,"defaultProps",{value:""})},13598:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e=""){return{type:"paragraph",children:[{text:e}]}}},74752:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(87202)),i=n(72056),o=c(n(40860)),a=c(n(77074)),s=c(n(66324)),l=c(n(53243)),u=c(n(10348));function c(e){return e&&e.__esModule?e:{default:e}}const d={"mod+1":"heading-one","mod+2":"heading-two","mod+3":"heading-three","mod+4":"heading-four","mod+5":"heading-five","mod+6":"heading-six"};t.default=function(e,t){if(t.selection){for(const n in d)if((0,r.default)(n,e))return(0,l.default)(t,d[n]),e.preventDefault(),!1;if((0,r.default)("backspace",e)&&(0,u.default)(t)){const[,n]=i.Editor.previous(t);return i.Transforms.removeNodes(t,{at:n}),e.preventDefault(),!1}if((0,s.default)(t)){if((0,r.default)("enter",e)&&(0,o.default)(t))return e.preventDefault(),!1;if((0,r.default)("backspace",e)&&(0,a.default)(t))return e.preventDefault(),!1}}}},77074:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=u(n(55930)),o=u(n(8717)),a=u(n(64838)),s=u(n(29818)),l=u(n(86803));function u(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){if(e.selection&&!(0,o.default)(e))return(0,l.default)(e,"quote")&&(0,s.default)(e,"quote")?(r.Transforms.mergeNodes(e,(0,a.default)(e,"quote")),!0):(0,i.default)(e,!0)}},40860:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(51818)),i=s(n(76922)),o=s(n(55930)),a=s(n(13306));function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){if(e.selection)return(0,r.default)(e,"heading",!0)?function(e){if((0,a.default)(e))return(0,i.default)(e),!0}(e):(0,o.default)(e)}},53243:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=s(n(51818)),o=s(n(48457)),a=s(n(54958));function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){const{selection:n}=e;if(!n)return;const s=t.startsWith("heading-"),l=(0,i.default)(e,t,s,r.Range.isExpanded(n)),u=(0,o.default)(e);if(s)return void r.Transforms.setNodes(e,{type:l?"paragraph":t});const{focus:c,anchor:d}=n;return!l&&u&&c.path[c.path.length-3]!=d.path[d.path.length-3]?(0,a.default)(e,t,u):l?void r.Transforms.unwrapNodes(e,{match:e=>e.type===t}):r.Transforms.wrapNodes(e,{type:t})}},29818:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e,t){const{selection:n}=e;if(!n)return!1;const[r]=i.Editor.nodes(e,(0,o.default)(e,"block")),a=i.Editor.previous(e,(0,o.default)(e,t));return r&&a&&r[0].type===a[0].type}},48457:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e){const t=i.Editor.above(e,(0,o.default)(e,"list"));return t?t[0].type:null}},13306:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e){const{selection:t}=e;if(!t)return!1;const n=i.Editor.above(e,(0,o.default)(e,"paragraph"));return!!n&&i.Editor.isEnd(e,e.selection.focus,n[1])}},86803:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e,t){const{selection:n}=e;if(!n)return!1;const r=i.Editor.above(e,(0,o.default)(e,t));return!!r&&i.Editor.isStart(e,e.selection.focus,r[1])}},8717:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e){const{selection:t}=e;if(!t)return!1;const[n]=Array.from(r.Editor.nodes(e,{match:t=>r.Element.isElement(t)&&r.Editor.isBlock(e,t)&&`${t.type}`.startsWith("heading-"),mode:"lowest"}));return!!n&&r.Editor.isStart(e,e.selection.focus,n[1])&&!r.Editor.isEmpty(e,n[0])}},10348:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e){const{selection:t}=e;if(!t)return!1;if(r.Range.isExpanded(t))return!1;const n=r.Editor.previous(e);return n&&"break"==n[0].type}},51818:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e,t,n,i){const{selection:o}=e;if(!o)return!1;const[a]=Array.from(r.Editor.nodes(e,{match:t=>r.Element.isElement(t)&&r.Editor.isBlock(e,t)&&"paragraph"!==t.type&&"list-item"!==t.type&&(n||!`${t.type}`.startsWith("heading-"))&&(!i||!`${t.type}`.endsWith("-list")),mode:"lowest"}));return!!a&&(a[0].type===t||`${a[0].type}`.startsWith(`${t}-`||`${a[0].type}`.endsWith(`-${t}`)))}},66324:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e){const{selection:t}=e;if(!t)return!1;const[n]=Array.from(r.Editor.nodes(e,{match:t=>r.Element.isElement(t)&&r.Editor.isBlock(e,t)&&"paragraph"!==t.type,mode:"lowest"}));return!!n&&!r.Editor.isEditor(n[0])}},76922:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e){return r.Editor.withoutNormalizing(e,(()=>{r.Transforms.splitNodes(e,{always:!0}),r.Transforms.setNodes(e,{type:"paragraph"})})),r.Editor.normalize(e,{force:!0}),!0}},55930:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e,t=!1){if(0!==e.selection.anchor.offset)return!1;let[n,r]=i.Editor.above(e,(0,o.default)(e,"non-default"));if(0==r.length)return!1;if(`${n.type}`.startsWith("heading-"))return i.Transforms.setNodes(e,{type:"paragraph"}),!1;const a=i.Editor.isBlock(e,n),[s,l]=i.Editor.above(e,(0,o.default)(e,"block"));if(!a){if(!i.Editor.isStart(e,r,l))return!1;[n,r]=[s,l]}return i.Editor.withoutNormalizing(e,(()=>{i.Transforms.unwrapNodes(e,{match:e=>e.type===n.type,split:!0}),t&&i.Transforms.mergeNodes(e)})),i.Editor.normalize(e,{force:!0}),!0}},54958:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e,t,n){r.Editor.withoutNormalizing(e,(()=>{r.Transforms.wrapNodes(e,{type:n}),r.Transforms.wrapNodes(e,{type:t},{match:e=>e.type===n}),r.Transforms.liftNodes(e,{match:e=>e.type===t})})),r.Editor.normalize(e,{force:!0})}},32786:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(74752)),i=o(n(53243));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return void 0===e.keyDownHandlers&&(e.keyDownHandlers=[]),e.keyDownHandlers.push(((e,t)=>(0,r.default)(e,t))),e.toggleBlock=t=>(0,i.default)(e,t),e}},65849:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(87202)),i=s(n(55145)),o=s(n(9283)),a=s(n(80082));function s(e){return e&&e.__esModule?e:{default:e}}const l={"mod+b":"bold","mod+i":"italic","mod+u":"underline","mod+`":"code","mod+shift+s":"delete","mod+shift+c":"code"};t.default=function(e,t){if(t.selection){for(const n in l)if((0,r.default)(n,e))return(0,i.default)(t,l[n]),e.preventDefault(),!1;return(0,r.default)("mod+k",e)?(e.preventDefault(),(0,a.default)(t)):(0,r.default)("shift+enter",e)?(e.preventDefault(),(0,o.default)(t)):void 0}}},9283:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e){if(!e.selection)return;const t={path:[...e.selection.focus.path.slice(0,-1),e.selection.focus.path[e.selection.focus.path.length-1]+2],offset:0};return r.Transforms.insertNodes(e,{type:"break",children:[{text:""}]}),r.Editor.normalize(e,{force:!0}),r.Transforms.select(e,t),!1}},80082:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(33856)),i=a(n(4734)),o=a(n(1675));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var n,a;const s=(0,r.default)(e),l=s?null===(n=s[0])||void 0===n||null===(a=n.data)||void 0===a?void 0:a.url:"",u=window.prompt(t,l);null!=u&&(""!==u?(0,o.default)(e,u):(0,i.default)(e))}},55145:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(2826))&&r.__esModule?r:{default:r};t.default=function(e,t){(0,o.default)(e,t)?i.Editor.removeMark(e,t):i.Editor.addMark(e,t,!0)}},2826:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e,t){const{selection:n}=e;if(!n)return!1;const i=r.Editor.marks(e);return!!i&&!0===i[t]}},33856:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(60466))&&r.__esModule?r:{default:r};t.default=function(e){const[t]=i.Editor.nodes(e,(0,o.default)(e));return t}},4734:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(60466))&&r.__esModule?r:{default:r};t.default=function(e){i.Transforms.unwrapNodes(e,(0,o.default)())}},1675:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=a(n(33856)),o=a(n(60466));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if((0,i.default)(e))return void r.Transforms.setNodes(e,{data:{url:t}},(0,o.default)());const{selection:n}=e,a=n&&r.Range.isCollapsed(n),s={type:"link",data:{url:t},children:a?[{text:t}]:[]};a?r.Transforms.insertNodes(e,s):(r.Transforms.wrapNodes(e,s,{split:!0}),r.Transforms.collapse(e,{edge:"end"}))}},63669:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(65849))&&r.__esModule?r:{default:r};t.default=function(e){const{isInline:t,isVoid:n}=e;return e.isInline=e=>["link","button","break","image"].includes(e.type)||t(e),e.isVoid=e=>["break","image","thematic-break"].includes(e.type)||n(e),void 0===e.keyDownHandlers&&(e.keyDownHandlers=[]),e.keyDownHandlers.push(((e,t)=>(0,i.default)(e,t))),e}},22411:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(87202)),i=l(n(37131)),o=l(n(89868)),a=l(n(86172)),s=l(n(47269));function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(t.isListItem())return(0,r.default)("enter",e)?(e.preventDefault(),(0,i.default)(t),!1):(0,r.default)("backspace",e)?!1===(0,s.default)(t)?(e.preventDefault(),!1):void 0:(0,r.default)("tab",e)?(e.preventDefault(),(0,o.default)(t)):(0,r.default)("shift+tab",e)?(e.preventDefault(),(0,a.default)(t)):void 0}},47269:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=u(n(83106)),o=u(n(75592)),a=u(n(5084)),s=u(n(58729)),l=u(n(37082));function u(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){if(e.selection&&r.Range.isCollapsed(e.selection)&&0===e.selection.anchor.offset&&(0,i.default)(e,!0)&&!(0,l.default)(e))return(0,o.default)(e)?(0,s.default)(e):(0,a.default)(e),!1}},37131:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=d(n(5795)),o=d(n(74922)),a=d(n(60011)),s=d(n(51641)),l=d(n(37082)),u=d(n(72117)),c=d(n(3091));function d(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){if(!e.selection)return;if(r.Range.isExpanded(e.selection)&&r.Transforms.delete(e),(0,o.default)(e))return(0,a.default)(e);const t=(0,c.default)(e);return t&&`${t[0].type}`.endsWith("-list")?(0,u.default)(e,t[0].type):(0,l.default)(e)?(0,s.default)(e):void(0,i.default)(e)}},86172:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=a(n(64838)),o=a(n(90630));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t{r.Transforms.liftNodes(e,l(l({},(0,i.default)(e,"list-item")),{},{split:!0})),r.Transforms.liftNodes(e,l(l({},(0,i.default)(e,"list-item")),{},{split:!0}))})),r.Editor.normalize(e)))}},89868:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=s(n(75592)),o=s(n(64838)),a=s(n(75626));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;tn.path.length?n.path.length:t.path.length,l={anchor:{offset:0,path:[...n.path.slice(0,s-2),0,0]},focus:{offset:0,path:[...t.path.slice(0,s-2),0,0]}};r.Editor.withoutNormalizing(e,(()=>{r.Transforms.wrapNodes(e,{type:"bulleted-list"},u(u({},(0,o.default)(e,"list-item")),{},{at:l}));const[,t]=r.Editor.above(e,(0,o.default)(e,"list")),n=r.Editor.previous(e,{at:t});(0,a.default)(e,t,n)})),r.Editor.normalize(e)}},96933:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(83106)),i=l(n(80953)),o=l(n(94478)),a=l(n(65874)),s=l(n(5084));function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(!(0,r.default)(e))return(0,o.default)(e,t);const n=(0,i.default)(e);return n&&n[0].type!==t?(0,a.default)(e,t):(0,s.default)(e)}},74922:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e){if(!e.selection)return!1;const{offset:t,path:n}=r.Range.start(e.selection);return 0===t&&n.length>=2&&0===n[n.length-1]&&0===n[n.length-2]}},37082:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e){if(!e.selection)return!1;const{offset:t,path:n}=r.Range.start(e.selection);return 0==t&&n.length>2&&n[n.length-2]>0}},83106:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e,t){const{selection:n}=e;if(!n)return!1;const[i]=Array.from(r.Editor.nodes(e,{match:n=>r.Element.isElement(n)&&r.Editor.isBlock(e,n)&&"paragraph"!==n.type&&(t||!`${n.type}`.startsWith("heading-")),mode:"lowest"}));return!!i&&"list-item"===i[0].type}},75592:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e){if(!e.selection)return!1;const[,t]=r.Editor.above(e,{match:e=>"list-item"===e.type,mode:"lowest",at:r.Range.start(e.selection)});return!!(t&&t.length>0&&t[t.length-1]>0)||void 0}},3091:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e){if(!e.selection)return!1;const[,t]=i.Editor.above(e,(0,o.default)(e,"paragraph"));return i.Editor.next(e,{at:t})}},80953:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e){return!!e.selection&&i.Editor.above(e,(0,o.default)(e,"list"))}},31917:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e){return!!e.selection&&i.Editor.above(e,(0,o.default)(e,"quote"))}},65874:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e,t){i.Editor.withoutNormalizing(e,(()=>{i.Transforms.wrapNodes(e,{type:t},(0,o.default)(e,"list-item")),i.Transforms.liftNodes(e,(0,o.default)(e,t))})),i.Editor.normalize(e,{force:!0})}},51641:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=a(n(86656)),o=a(n(98872));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){r.Editor.withoutNormalizing(e,(()=>{(0,o.default)(e,"paragraph",{type:"list-item"}),(0,i.default)(e,"list-item",{split:!0})})),r.Editor.normalize(e,{force:!0})}},86656:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.default=function(e,t,n){r.Transforms.liftNodes(e,function(e){for(var t=1;te.type===t||"paragraph"===t&&`${e.type}`.startsWith("heading"),mode:"lowest"},n))}},60011:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=l(n(23332)),o=l(n(86656)),a=l(n(80953)),s=l(n(31917));function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){r.Editor.withoutNormalizing(e,(()=>{(0,o.default)(e,"list-item",{split:!0});const t=(0,a.default)(e),n=(0,s.default)(e);t&&!n||t&&n&&t[1].length>n[1].length?(0,o.default)(e,"list-item",{split:!0}):(0,i.default)(e,"list-item")})),r.Editor.normalize(e,{force:!0})}},58729:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e){i.Editor.withoutNormalizing(e,(()=>{i.Transforms.mergeNodes(e,(0,o.default)(e,"list-item"))})),i.Editor.normalize(e,{force:!0})}},75626:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e,t,n){const[i,o]=n;r.Transforms.moveNodes(e,{at:t,to:[...o,i.children.length]})}},5795:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=a(n(86656)),o=a(n(98872));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){if(!e.selection)return!1;r.Range.isExpanded(e.selection)&&r.Transforms.delete(e),r.Editor.withoutNormalizing(e,(()=>{r.Transforms.splitNodes(e,{always:!0}),r.Transforms.setNodes(e,{type:"paragraph"}),(0,o.default)(e,"paragraph",{type:"list-item"}),(0,i.default)(e,"list-item")})),r.Editor.normalize(e,{force:!0})}},72117:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(98872))&&r.__esModule?r:{default:r};t.default=function(e,t){if(!e.selection)return!1;i.Range.isExpanded(e.selection)&&i.Transforms.delete(e),i.Editor.withoutNormalizing(e,(()=>{i.Transforms.splitNodes(e,{always:!0}),i.Transforms.setNodes(e,{type:"paragraph"}),(0,o.default)(e,"paragraph",{type:"list-item"}),(0,o.default)(e,"list-item",{type:t})})),i.Editor.normalize(e,{force:!0})}},23332:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e,t){i.Transforms.unwrapNodes(e,(0,o.default)(e,t))}},5084:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t{i.Transforms.unwrapNodes(e,s(s({},(0,o.default)(e,"list")),{},{split:!0})),i.Transforms.unwrapNodes(e,(0,o.default)(e,"list-item"))})),i.Editor.normalize(e)}},98872:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e,t,n){i.Transforms.wrapNodes(e,n,(0,o.default)(e,t))}},94478:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(64838))&&r.__esModule?r:{default:r};t.default=function(e,t){i.Editor.withoutNormalizing(e,(()=>{i.Transforms.wrapNodes(e,{type:t});const n=i.Editor.nodes(e,(0,o.default)(e,"paragraph"));for(const t of n)i.Transforms.wrapNodes(e,{type:"list-item"},{at:t[1]})})),i.Editor.normalize(e)}},34514:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056),i=s(n(22411)),o=s(n(75626)),a=s(n(96933));function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){const{normalizeNode:t}=e;return void 0===e.keyDownHandlers&&(e.keyDownHandlers=[]),e.keyDownHandlers.push(((e,t)=>(0,i.default)(e,t))),e.toggleList=t=>(0,a.default)(e,t),e.isListItem=()=>{const{selection:t}=e;if(!t)return!1;const[n]=Array.from(r.Editor.nodes(e,{at:r.Editor.unhangRange(e,t),match:t=>!r.Editor.isEditor(t)&&r.Element.isElement(t)&&r.Editor.isBlock(e,t)&&"paragraph"!==t.type&&!`${t.type}`.startsWith("heading-"),mode:"lowest"}));return!!n&&"list-item"===n[0].type},e.normalizeNode=n=>{t(n);const[i,a]=n;let s=null;if(r.Element.isElement(i)||r.Editor.isEditor(i))for(const[t,n]of r.Node.children(e,a)){if(`${t.type}`.endsWith("-list")&&t.type===s){r.Transforms.mergeNodes(e,{at:n});break}s=t.type}if(r.Element.isElement(i)&&`${i.type}`.endsWith("-list")){const t=r.Editor.previous(e,{at:a}),[n,i]=r.Editor.parent(e,a);if(!t&&"list-item"===n.type){const t=r.Editor.previous(e,{at:i});(0,o.default)(e,a,t),r.Transforms.removeNodes(e,{at:i})}}},e}},64838:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(90630))&&r.__esModule?r:{default:r};t.default=function(e,t){return(0,i.default)(e,t,"lowest")}},60466:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(){return{match:e=>!r.Editor.isEditor(e)&&r.Element.isElement(e)&&"link"===e.type}}},90630:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e,t,n){return{match:n=>!r.Editor.isEditor(n)&&r.Element.isElement(n)&&r.Editor.isBlock(e,n)&&(n.type===t||"heading"===t&&`${n.type}`.startsWith("heading-")||"paragraph"===t&&`${n.type}`.startsWith("heading-")||"block"===t&&!`${n.type}`.startsWith("heading-")&&"paragraph"!==n.type||"list"===t&&`${n.type}`.endsWith("-list"))||"non-default"===t&&"paragraph"!==n.type,mode:n}}},35118:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(68192))&&r.__esModule?r:{default:r};t.default=function(e,t){const n=t.fields.toMap().mapKeys(((e,t)=>t.get("name"))).filter((e=>e.has("default"))).map((e=>e.get("default"))),r={type:"shortcode",id:t.id,data:{shortcode:t.id,shortcodeNew:!0,shortcodeData:n.toJS()},children:[{text:""}]};(0,o.default)(e)?i.Transforms.setNodes(e,r):i.Transforms.insertNodes(e,r)}},68192:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(72056);t.default=function(e){const{selection:t}=e;if(!t)return!1;const[n]=Array.from(r.Editor.nodes(e,{match:t=>r.Element.isElement(t)&&r.Editor.isBlock(e,t)&&"paragraph"===t.type,mode:"lowest"}));return!!n&&r.Editor.isEmpty(e,n[0])}},29366:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(72056),o=(r=n(13598))&&r.__esModule?r:{default:r};t.default=function(e){const{isVoid:t,normalizeNode:n}=e;return e.isVoid=e=>"shortcode"===e.type||t(e),e.normalizeNode=t=>{const[r]=t;i.Editor.isEditor(r)&&0==r.children.length&&i.Transforms.insertNodes(e,(0,o.default)()),n(t)},e}},21276:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Element=function(e){const{children:t,element:n,classNameWrapper:r,codeBlockComponent:i}=e,a={textAlign:n.align};switch(n.type){case"bulleted-list":return(0,o.jsx)(K,null,t);case"quote":return(0,o.jsx)(j,null,t);case"heading-one":return(0,o.jsx)(N,null,t);case"heading-two":return(0,o.jsx)(F,null,t);case"heading-three":return(0,o.jsx)(B,null,t);case"heading-four":return(0,o.jsx)(z,null,t);case"heading-five":return(0,o.jsx)(U,null,t);case"heading-six":return(0,o.jsx)(q,null,t);case"list-item":return(0,o.jsx)(L,null,t);case"numbered-list":return(0,o.jsx)(Z,null,t);case"table":return(0,o.jsx)(W,e);case"table-row":return(0,o.jsx)($,e);case"table-cell":return(0,o.jsx)(H,e);case"thematic-break":return(0,o.jsx)(l.default,e,(0,o.jsx)(V,e));case"link":return(0,o.jsx)(Y,e);case"image":return(0,o.jsx)(X,e);case"break":return(0,o.jsx)(G,e);case"shortcode":return"code-block"===n.id&&i?(0,o.jsx)(l.default,e,(0,o.jsx)(u.default,d({classNameWrapper:r,typeOverload:"code-block"},e))):(0,o.jsx)(l.default,e,(0,o.jsx)(u.default,e,t));default:return(0,o.jsx)(I,{style:a},t)}},t.Leaf=function({attributes:e,children:t,leaf:n}){return n.bold&&(t=(0,o.jsx)(P,null,t)),n.italic&&(t=(0,o.jsx)(R,null,t)),n.delete&&(t=(0,o.jsx)(D,null,t)),n.code&&(t=(0,o.jsx)(M,null,t)),(0,o.jsx)("span",e,t)},t.renderInline__DEPRECATED=function(){return e=>{switch(e.node.type){case"link":return(0,o.jsx)(Y,e);case"image":return(0,o.jsx)(X,e);case"break":return(0,o.jsx)(G,e)}}};var r=c(n(70894)),i=c(n(2784)),o=n(28165),a=n(30762),s=n(77713),l=c(n(4611)),u=c(n(69076));function c(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;tp:first-of-type{margin-top:8px;}&>p:last-of-type{margin-bottom:8px;}"}),S=(0,r.default)("a",{target:"evlbpgx3",label:"StyledA"})({name:"11z7vuy",styles:"text-decoration:underline;font-size:inherit"}),A=(0,r.default)("hr",{target:"evlbpgx2",label:"StyledHr"})({name:"1y2p2hw",styles:"border:1px solid;margin-bottom:16px"}),T=(0,r.default)("table",{target:"evlbpgx1",label:"StyledTable"})({name:"tkxk5i",styles:"border-collapse:collapse"}),O=(0,r.default)("td",{target:"evlbpgx0",label:"StyledTd"})({name:"zsehaa",styles:"border:2px solid black;padding:8px;text-align:left"});function P(e){return(0,o.jsx)("strong",null,e.children)}function R(e){return(0,o.jsx)("em",null,e.children)}function D(e){return(0,o.jsx)("s",null,e.children)}function M(e){return(0,o.jsx)(x,null,e.children)}function I(e){return(0,o.jsx)(w,e.attributes,e.children)}function L(e){return(0,o.jsx)(C,e.attributes,e.children)}function j(e){return(0,o.jsx)(_,e.attributes,e.children)}function N(e){return(0,o.jsx)(h,e.attributes,e.children)}function F(e){return(0,o.jsx)(m,e.attributes,e.children)}function B(e){return(0,o.jsx)(g,e.attributes,e.children)}function z(e){return(0,o.jsx)(v,e.attributes,e.children)}function U(e){return(0,o.jsx)(y,e.attributes,e.children)}function q(e){return(0,o.jsx)(b,e.attributes,e.children)}function W(e){return(0,o.jsx)(T,null,(0,o.jsx)("tbody",e.attributes,e.children))}function $(e){return(0,o.jsx)("tr",e.attributes,e.children)}function H(e){return(0,o.jsx)(O,e.attributes,e.children)}function V(e){const t=(0,s.useSelected)();return(0,o.jsx)("div",e.attributes,e.children,(0,o.jsx)("div",{contentEditable:!1},(0,o.jsx)(A,d({},e.attributes,{css:t&&(0,o.css)("box-shadow:0 0 0 2px ",a.colors.active,";border-radius:8px;color:",a.colors.active,";;label:ThematicBreak;")}))))}function G(e){return(0,o.jsx)(i.default.Fragment,null,(0,o.jsx)("br",e.attributes),e.children)}function K(e){return(0,o.jsx)(k,e.attributes,e.children)}function Z(e){return(0,o.jsx)(E,d({},e.attributes,{start:1}),e.children)}function Y(e){const t=e.url,n=e.title||t;return(0,o.jsx)(S,d({href:t,title:n},e.attributes),e.children)}function X(e){const{url:t,title:n,alt:r}=e.element.data,i=(0,s.useSelected)();return(0,o.jsx)("span",e.attributes,e.children,(0,o.jsx)("img",d({src:t,title:n,alt:r},e.attributes,{css:i&&(0,o.css)("box-shadow:0 0 0 2px ",a.colors.active,";;label:Image;")})))}},41719:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i,o,a=f(n(2784)),s=f(n(13980)),l=n(30762),u=f(n(35368)),c=n(32322),d=n(28165);function f(e){return e&&e.__esModule?e:{default:e}}class p extends a.default.Component{render(){const{value:e,getAsset:t,resolveWidget:n,field:r,getRemarkPlugins:i}=this.props;if(null===e)return null;const o=(0,c.markdownToHtml)(e,{getAsset:t,resolveWidget:n},null==i?void 0:i()),a=null!=r&&r.get("sanitize_preview",!1)?u.default.sanitize(o):o;return(0,d.jsx)(l.WidgetPreviewContainer,{dangerouslySetInnerHTML:{__html:a}})}}r=p,i="propTypes",o={getAsset:s.default.func.isRequired,resolveWidget:s.default.func.isRequired,value:s.default.string},(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,t.default=p},79425:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsWidgetMarkdown=void 0;var r=a(n(64767)),i=a(n(41719)),o=a(n(60794));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l=t.DecapCmsWidgetMarkdown={Widget:function(e={}){return function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combinePatterns=function(e){return e.map((e=>`(?:${e.source})`)).join("|")},t.joinPatternSegments=function(e){return e.map((e=>e.source)).join("")},t.replaceWhen=function(e,t,n,r){function o(e,t,n,r=!1){e.push({index:t,text:n,match:r})}const a=function e(t,n,r){const a=t.exec(n),s=(0,i.default)(r);if(!a)return r;if(0===a.index)o(r,0,a[0],!0);else if(s)if(a.index===s.index+s.text.length)o(r,a.index,a[0],!0);else{const e=s.index+s.text.length;o(r,e,a.input.slice(e,a.index)),o(r,a.index,a[0],!0)}else o(r,0,a.input.slice(0,a.index)),o(r,a.index,a[0],!0);return e(t,n,r)}(e,n,[]),s=(0,i.default)(a);if(!s)return t(n);const l=s.index+s.text.length;return n.length>l&&a.push({index:l,text:n.slice(l)}),a.map((e=>(r?!e.match:e.match)?t(e.text):e.text)).join("")};var r,i=(r=n(56974))&&r.__esModule?r:{default:r}},60794:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{minimal:{type:"boolean"},buttons:{type:"array",items:{type:"string",enum:["bold","italic","code","link","heading-one","heading-two","heading-three","heading-four","heading-five","heading-six","quote","bulleted-list","numbered-list"]}},editor_components:{type:"array",items:{type:"string"}},modes:{type:"array",items:{type:"string",enum:["raw","rich_text"]},minItems:1}}}},32322:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToSlate=function(e){const t=(0,i.default)().use(c.default,{fragment:!0}).parse(e),n=(0,i.default)().use(p.default).use(d.default,{minify:!1}).runSync(t);return(0,i.default)().use(h.default).use(m.default).use(g.default).use(v.default).runSync(n)},t.markdownToHtml=function(e,{getAsset:t,resolveWidget:n,remarkPlugins:r=[]}={}){const o=S(e,r),a=(0,i.default)().use(f.default,{plugins:(0,E.getEditorComponents)(),getAsset:t,resolveWidget:n}).use(l.default,{allowDangerousHTML:!0}).runSync(o);return(0,i.default)().use(u.default,{allowDangerousHtml:!0,allowDangerousCharacters:!0,closeSelfClosing:!0,entities:{useNamedReferences:!0}}).stringify(a)},t.markdownToRemark=S,t.markdownToSlate=function(e,{voidCodeBlock:t,remarkPlugins:n=[]}={}){const r=S(e,n);return(0,i.default)().use(g.default).use(v.default,{voidCodeBlock:t}).runSync(r).children},t.remarkToMarkdown=T,t.slateToMarkdown=function(e,{voidCodeBlock:t,remarkPlugins:n=[]}={}){return T((0,k.default)(e,{voidCodeBlock:t}),n)};var r=C(n(1573)),i=C(n(43367)),o=C(n(73610)),a=C(n(98431)),s=C(n(48283)),l=C(n(32578)),u=C(n(27809)),c=C(n(52824)),d=C(n(62100)),f=C(n(74961)),p=C(n(38052)),h=C(n(64906)),m=C(n(68236)),g=C(n(19108)),v=C(n(82704)),y=C(n(74099)),b=n(61517),w=C(n(25960)),_=C(n(24669)),x=C(n(96117)),k=C(n(13533)),E=n(64767);function C(e){return e&&e.__esModule?e:{default:e}}function S(e,t){const n=(0,i.default)().use(a.default,{fences:!0,commonmark:!0}).use(A,{inlineTokenizers:["url"]}).use(b.remarkParseShortcodes,{plugins:(0,E.getEditorComponents)()}).use(x.default).use(y.default).use(t),r=n.parse(e);return n.runSync(r)}function A({inlineTokenizers:e}){e&&e.forEach((e=>{delete this.Parser.prototype.inlineTokenizers[e]}))}function T(e,t){const n=e||(0,o.default)("root",[(0,o.default)("paragraph",[(0,o.default)("text","")])]),a=(0,i.default)().use({settings:{commonmark:!0,fences:!0,listItemIndent:"1",bullet:"*",emphasis:"*",strong:"*",rule:"-"}}).use(w.default).use(_.default).use(s.default).use((function(){this.Compiler.prototype.visitors.text=e=>e.value})).use((0,b.createRemarkShortcodeStringifier)({plugins:(0,E.getEditorComponents)()})).use(t),l=a.runSync(n),u=a.stringify(l).replace(/\r?/g,"");return(0,r.default)(u)}},38052:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function e(t){return"img"===t.tagName&&t.properties.dataEmojiCh?{type:"text",value:t.properties.dataEmojiCh}:(t.children=t.children?t.children.map(e):t.children,t)}}},96117:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){this.Parser.prototype.inlineTokenizers.text=function(e,t,n){var r,i,o,a,s,l,u,c,d,f=this;if(n)return!0;for(a=(r=f.inlineMethods).length,i=f.inlineTokenizers,o=-1,d=t.length;++o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function e(t){const n=function(e){const t=["paragraph","heading","code","blockquote","list","table","thematicBreak"],n=["root","blockquote","listItem","tableCell"];let i;return(0,s.default)(e,((e,s)=>{const l=!(0,r.default)(s)&&(0,o.default)(s).type;if(t.includes(e.type)&&!n.includes(l))return i=(0,a.default)(s,e),!1})),i}(t);return n?(function(e,t){const n=(0,i.default)(t,-3)||e,s=(0,i.default)(t,-2),l=(0,o.default)(t),u=n.children.indexOf(s),d=n.children,f=s.children.indexOf(l),p=s.children.slice(0,f),h=s.children.slice(f+1),m=[!(0,r.default)(p)&&c(c({},s),{},{children:p}),l,!(0,r.default)(h)&&c(c({},s),{},{children:h})].filter((e=>!(0,r.default)(e))),g=d.slice(0,u),v=d.slice(u+1),y=(0,a.default)(g,m,v);n.children=y}(t,n),e(t)):t}};var r=l(n(45455)),i=l(n(77180)),o=l(n(56974)),a=l(n(22487)),s=l(n(26578));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function e(t,n){if((0,a.default)(t.data,"shortcode"))return t;const r=t.children?{children:t.children.map(e)}:{};if(["text","html"].includes(t.type)&&t.value){const e=0===n?v(t.value).replace(/^\s*([-#*>=|]| {4,}|`{3,})/,"$`\\$1"):v(t.value);return c(c({},t),{},{value:e},r)}return c(c({},t),r)}};var r=l(n(16760)),i=l(n(83465)),o=l(n(85395)),a=l(n(93352)),s=n(92521);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t/},f={htmlTags:[/<(?!pre|style|script)[\w]+/,d.htmlOpeningTagEnd],preformattedHtmlBlocks:[/<(pre|style|script)/,d.htmlOpeningTagEnd,/(.|[\n\r])*?/,/<\/\1>/]},p=(0,r.default)(f,(e=>new RegExp((0,s.joinPatternSegments)(e)))),h=(0,s.combinePatterns)(p),m=[/(\*+)[^*]*(\1)/g,/(_)[^_]+(_)\b/g,/(_{2,})[^_]*(\1)/g,/(~+)[^~]*(\1)/g,/(`+)[^`]*(\1)/g,/(\[(?!\^)+)[^\]]*]/g].map((e=>(0,i.default)(y,e))),g=(0,o.default)(m);function v(e){const t=new RegExp(h,"gm");return(0,s.replaceWhen)(t,g,e,!0)}function y(e,t){return t.replace(e,((e,t,n)=>{const r="string"==typeof n,i=r?e.length-n.length:e.length,o=e.slice(t.length,i);return`${b(t)}${o}${r?b(n):""}`}))}function b(e){let t="";for(const n of e)t+=`\\${n}`;return t}},68236:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){function e(e){if("link"!==e.type)return e;const n=(0,d.default)(e),r=(0,s.default)(n," ")&&t(e),l=(0,a.default)(n," ")&&t(e,!0);return r||l?(r&&(r.value=(0,o.default)(r.value)),l&&(l.value=(0,i.default)(l.value)),[r&&(0,c.default)("text"," "),e,l&&(0,c.default)("text"," ")].filter((e=>e))):e}function t(e,t){let n,r;return n=t?l.default:u.default,function e(t){!r&&t.value&&(r=t),n(t.children,e)}(e),r}return function t(n){if(!n.children)return n;const i=(n.children.some((e=>"link"===e.type))?(0,r.default)(n.children,e):n.children).map(t);return h(h({},n),{},{children:i})}};var r=f(n(35838)),i=f(n(1573)),o=f(n(93433)),a=f(n(48559)),s=f(n(37994)),l=f(n(72960)),u=f(n(17452)),c=f(n(73610)),d=f(n(75330));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({plugins:e,getAsset:t,resolveWidget:n}){return function(e){const t=(0,i.default)(e.children,l);return c(c({},e),{},{children:t})};function l(i){if(!(0,r.default)(i,["data","shortcode"]))return i;const{shortcode:l,shortcodeData:u}=i.data,d=function(e,r){const{toPreview:i,widget:a,fields:s}=e;if(i)return i(r,t,s);const l=n(a);return o.default.createElement(l.preview,{value:r,field:e,getAsset:t})}(e.get(l),u),f="string"==typeof d?d:(0,a.renderToString)(d),p=[(0,s.default)("html",f)];return c(c({},i),{},{children:p})}};var r=l(n(93352)),i=l(n(16760)),o=l(n(2784)),a=n(48090),s=l(n(73610));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t{"use strict";function n(e){return e.split("\n\n").reduce(((e,t)=>{const{start:n,originalLength:r}=e[e.length-1];return[...e,{line:t.trimEnd(),start:n+r+2,originalLength:t.length}]}),[{start:-2,originalLength:0}]).slice(1).map((({line:e,start:t})=>({line:e,start:t})))}function r({trimmedLines:e,plugin:t}){for(const{line:n,start:r}of e){const e=n.match(t.pattern);if(e)return e.index+=r,e}}Object.defineProperty(t,"__esModule",{value:!0}),t.createRemarkShortcodeStringifier=function({plugins:e}){return function(){this.Compiler.prototype.visitors.shortcode=function(t){const{data:n}=t;return e.find((e=>n.shortcode===e.id)).toBlock(n.shortcodeData)}}},t.getLinesWithOffsets=n,t.remarkParseShortcodes=function({plugins:e}){const t=this.Parser,i=t.prototype.blockTokenizers,o=t.prototype.blockMethods;i.shortcode=function({plugins:e}){return function(t,i,o){const a=n(i),[{plugin:s,match:l}={}]=e.toArray().map((e=>({match:i.match(e.pattern)||r({trimmedLines:a,plugin:e}),plugin:e}))).filter((({match:e})=>!!e)).sort(((e,t)=>e.match.index-t.match.index));if(l){if(o)return!0;const e=s.fromBlock(l);try{return t(l[0])({type:"shortcode",data:{shortcode:s.id,shortcodeData:e}})}catch(t){return console.warn(`Sent invalid data to remark. Plugin: ${s.id}. Value: ${l[0]}. Data: ${JSON.stringify(e)}`),!1}}}}({plugins:e}),o.unshift("shortcode")}},82704:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({voidCodeBlock:e}={}){return t;function t(e){let n=!["strong","emphasis","delete"].includes(e.type)&&!(0,l.default)(e.children)&&(0,a.default)(e.children,t).filter((e=>e));return Array.isArray(n)&&(n=m(n)),y(e,n||void 0)}function n(e,t){return t?d(d({},e),{},{children:t}):e}function r(e,t,r={}){(0,s.default)(t)||(r=t,t=void 0);const i=(0,l.default)(t)?[c("")]:t;return n(d({type:e},r),i)}function u(e,t={},r){return n(d({type:e},t),(0,l.default)(r)?[c("")]:r)}function c(e){const t={};if("string"==typeof e)return d(d({},t),{},{text:e});const{text:n,marks:r}=e;return v(d(d({},t),{},{text:n,marks:r}))}function h(e,n){switch(e.type){case"html":case"text":return d(d({},y(e)),{},{marks:n});case"inlineCode":return d(d({},y(e)),{},{marks:[...n,{type:"code"}]});case"strong":case"emphasis":case"delete":return g(e,n);case"link":{const t=(0,o.default)(e.children,(e=>v(h(e,n))));return y(e,(0,i.default)(t))}default:return t(d(d({},e),{},{data:d(d({},e.data),{},{marks:n})}))}}function g(e,t=[]){const n=p[e.type],r=n?[...t.filter((({type:e})=>e!==n)),{type:n}]:t;return(0,a.default)(e.children,(e=>v(h(e,r))))}function v(e){return e.marks&&e.marks.forEach((t=>{e[t.type]=!0})),e}function y(t,n){switch(t.type){case"paragraph":case"blockquote":case"tableRow":case"tableCell":return r(f[t.type],n);case"root":{const e=(0,l.default)(n)?[r("paragraph")]:n;return r(f[t.type],e)}case"listItem":{const e=(0,l.default)(n)?[r("paragraph")]:n;return r(f[t.type],e)}case"shortcode":{const e=[c("")],n=d(d({},t.data),{},{id:t.data.shortcode,shortcodeNew:!0});return r(f[t.type],e,{data:n})}case"text":case"html":return c(t.value);case"inlineCode":return c({text:t.value,code:!0,marks:[{type:"code"}]});case"strong":case"emphasis":case"delete":return g(t);case"heading":return r(`heading-${{1:"one",2:"two",3:"three",4:"four",5:"five",6:"six"}[t.depth]}`,n);case"code":{const n=d(d({lang:t.lang},e?{code:t.value}:{}),{},{shortcode:"code-block",shortcodeData:{code:t.value,lang:t.lang}});return r("shortcode",[c(e?"":t.value)],{data:n})}case"list":return r(t.ordered?"numbered-list":"bulleted-list",n,{data:{start:t.start}});case"break":{const{data:e}=t;return u("break",{data:e})}case"thematicBreak":return r(f[t.type]);case"link":{const{title:e,url:r,data:i}=t,o=d(d({},i),{},{title:e,url:r});return u(f[t.type],{data:o},n)}case"image":{const{title:e,url:n,alt:r,data:i}=t,o=d(d({},i),{},{title:e,alt:r,url:n});return u(f[t.type],{data:o})}case"table":{const e={align:t.align};return r(f[t.type],n,{data:e})}}}},t.mergeAdjacentTexts=m;var r=u(n(18149)),i=u(n(35676)),o=u(n(16760)),a=u(n(35838)),s=u(n(86152)),l=u(n(45455));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function(t){const n=(0,a.default)(t);return e.call(null,n,t)};function e(t,n){const a=e.bind(null,t),s=n.children?n.children.map(a):n.children;if(["imageReference","linkReference"].includes(n.type)){const e="imageReference"===n.type?"image":"link",r=t(n.identifier);if(r){const{title:t,url:i}=r;return(0,o.default)(e,{title:t,url:i,alt:n.alt},s)}const i=(0,o.default)("text","imageReference"===n.type?"![":"["),a=(0,o.default)("text","]");return[i,...s||[(0,o.default)("text",n.alt)],a]}if("definition"===n.type)return null;const l=(0,i.default)(s,null);return u(u({},n),{},{children:(0,r.default)(l)})}};var r=s(n(35676)),i=s(n(67304)),o=s(n(73610)),a=s(n(99983));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function e(t){return t.children&&(t.children=t.children.map(((e,t,n)=>{if("break"===e.type){const r={type:"root",children:n.slice(t+1)};return(0,i.default)(r).trim()?e:null}return e})).filter((e=>e)).map(e)),t}};var r,i=(r=n(75330))&&r.__esModule?r:{default:r}},19108:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function(e){return e.children=e.children.map((e=>"html"===e.type?(0,i.default)("paragraph",[e]):e)),e}};var r,i=(r=n(73610))&&r.__esModule?r:{default:r}},13533:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,{voidCodeBlock:t}){return function e(n){const r=n.children&&n.children[0]&&b.includes(n.children[0].type)?n.children.map(e).filter((e=>e)):O(n.children);return function(e,n){switch("shortcode"==e.type&&"code-block"==e.data.shortcode&&(e=function(e){return g(g({},e),{},{type:"code-block",data:g(g({},e.data),e.data.shortcodeData)})}(e)),e.type){case"root":case"paragraph":case"quote":case"list-item":case"table":case"table-row":case"table-cell":return(0,u.default)(v[e.type],n);case"shortcode":{const{data:t}=e;return(0,u.default)(v[e.type],{data:t})}case"heading-one":case"heading-two":case"heading-three":case"heading-four":case"heading-five":case"heading-six":{const t={one:1,two:2,three:3,four:4,five:5,six:6}[e.type.split("-")[1]],r=(0,u.default)(v[e.type],{depth:t},n);return(0,c.default)(r)?r:void 0}case"code-block":{var r;const i=(0,l.default)(e,"data",{}),{lang:o,code:a}=i,s=h(i,d),c=t?a:null===(r=n[0])||void 0===r?void 0:r.value;return(0,u.default)(v[e.type],{lang:o,data:s},c||"")}case"numbered-list":case"bulleted-list":{const t={ordered:"numbered-list"===e.type,start:(0,l.default)(e.data,"start")||1};return(0,u.default)(v[e.type],t,n)}case"thematic-break":return(0,u.default)(v[e.type])}}(n,r)}({type:"root",children:e});function n(e,t){return e.map((e=>{const i=g({},e);switch(e.type){case"link":{const r=n(e.children,t);return g(g({},e),{},{children:r})}case"image":case"break":{const t=(0,r.default)(e.data,"marks");return g(g({},e),{},{data:t})}default:return delete i[t],i.marks=i.marks?i.marks.filter((({type:e})=>e!==t)):[],0===i.marks.length&&delete i.marks,i}}))}function p(e){switch(e.type){case"link":{const t=e.children.map((e=>{const t=g({},e);return t.marks=e.marks?e.marks.filter((({type:e})=>"code"!==e)):e.marks,delete t.code,t})),n=(0,o.default)(t,p);return(0,i.default)(...n)}case"break":case"image":return(0,o.default)((0,l.default)(e,["data","marks"]),(e=>e.type));default:return m(e)}}function m(e){return Object.keys(y).filter((t=>!!e[t]))}function k(e,t){const n=p(t),r=(0,i.default)(e,n);return"code"===r[0]?1===n.length?e:[]:r}function E(e){let t=p(e[0])||[];"code"===t[0]&&t.length>1&&(t=[...(0,s.default)("firstGroupMarks","code"),"code"]);let r=1;if(t.length>0)for(;r0))break;t=n}r+=1}const i=t[0],o=e.slice(0,r);return[i,i?n(o,i):o,e.slice(r)]}function C(e,{trailing:t}={}){if(!e.text)return{trimmedNode:e};const n=t?x:_,r=e.text.search(n);if(r>-1){const n=t?r:r+1,i=e.text.slice(0,n),o=e.text.slice(n),a=t?i:o;return{whitespace:t?o:i,trimmedNode:g(g({},e),{},{text:a})}}return{trimmedNode:e}}function S(e){const{whitespace:t,trimmedNode:n}=C(e[0]),r=C(e.length>1?(0,a.default)(e):n,{trailing:!0}),{whitespace:i,trimmedNode:o}=r,s=function(e,t,n){switch(e.length){case 0:return[];case 1:return[n];case 2:return[t,n];default:return[t,...e.slice(1,-1),n]}}(e,n,o).filter((e=>e));return{leadingWhitespace:t,centerNodes:s,trailingWhitespace:i}}function A(e){return e&&(0,u.default)("html",e)}function T(e){return w.includes(e.type)}function O(e=[]){const t=[];let n=[...e];for(;n.length>0;){const e=n[0];if(T(e)||m(e).length>0){const[r,i,o]=E(n);if("code"===r){const e=i[0];t.push((0,u.default)(y[r],e.data,e.text))}else if(!r&&1===i.length&&T(e)){const e=i[0];t.push(P(e,O(e.children)))}else{const{leadingWhitespace:e,trailingWhitespace:a,centerNodes:s}=S(i),l=O(s),d=(0,u.default)(y[r],l);if(""===(0,c.default)(d)){n=o;continue}const f=[A(e),d,A(a)].filter((e=>e));t.push(...f)}n=o}else"break"===e.type?(n=n.slice(1),t.push(P(e))):(n.shift(),t.push((0,u.default)("html",e.text)))}return t}function P(e,t){switch(e.type){case"break":return(0,u.default)(v[e.type]);case"link":{const{title:n,data:r}=e;return(0,u.default)(v[e.type],g({url:null==r?void 0:r.url,title:n},r),t)}case"image":{const t=(0,l.default)(e,"data",{}),{url:n,title:r,alt:i}=t,o=h(t,f);return(0,u.default)(v[e.type],{url:n,title:r,alt:i,data:o})}}}};var r=p(n(17620)),i=p(n(30898)),o=p(n(16760)),a=p(n(56974)),s=p(n(67304)),l=p(n(72579)),u=p(n(73610)),c=p(n(75330));const d=["lang","code"],f=["url","title","alt"];function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.editorStyleVars=t.EditorControlBar=void 0;var r,i=(r=n(70894))&&r.__esModule?r:{default:r},o=n(30762);const a=t.editorStyleVars={stickyDistanceBottom:"100px"};t.EditorControlBar=(0,i.default)("div",{target:"ehaqqzm0",label:"EditorControlBar"})("z-index:",o.zIndex.zIndex200,";position:sticky;top:0;margin-bottom:",a.stickyDistanceBottom,";")},69298:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.validateMinMax=c;var r=s(n(2784)),i=s(n(13980)),o=s(n(19155)),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u={PRESENCE:"PRESENCE",PATTERN:"PATTERN",RANGE:"RANGE",CUSTOM:"CUSTOM"};function c(e,t,n,r,i){let o;switch(!0){case""!==e&&!1!==t&&!1!==n&&(en):o={type:u.RANGE,message:i("editor.editorControlPane.widget.range",{fieldLabel:r.get("label",r.get("name")),minValue:t,maxValue:n})};break;case""!==e&&!1!==t&&en:o={type:u.RANGE,message:i("editor.editorControlPane.widget.max",{fieldLabel:r.get("label",r.get("name")),maxValue:n})};break;default:o=null}return o}class d extends r.default.Component{constructor(...e){super(...e),l(this,"handleChange",(e=>{const t=this.props.field.get("value_type"),{onChange:n}=this.props,r="float"===t?parseFloat(e.target.value):parseInt(e.target.value,10);isNaN(r)?n(""):n(r)})),l(this,"isValid",(()=>{const{field:e,value:t,t:n}=this.props,r=!!e.get("pattern",!1),i=e.get("min",!1),o=e.get("max",!1);if(r)return!0;const a=c(t,i,o,e,n);return!a||{error:a}}))}render(){const{field:e,value:t,classNameWrapper:n,forID:r,setActiveStyle:i,setInactiveStyle:o}=this.props,s=e.get("min",""),l=e.get("max",""),u=e.get("step","int"===e.get("value_type")?1:"");return(0,a.jsx)("input",{type:"number",id:r,className:n,onFocus:i,onBlur:o,value:t||(0===t?t:""),step:u,min:s,max:l,onChange:this.handleChange})}}t.default=d,l(d,"propTypes",{field:o.default.map.isRequired,onChange:i.default.func.isRequired,classNameWrapper:i.default.string.isRequired,setActiveStyle:i.default.func.isRequired,setInactiveStyle:i.default.func.isRequired,value:i.default.node,forID:i.default.string,valueType:i.default.string,step:i.default.number,min:i.default.number,max:i.default.number,t:i.default.func.isRequired}),l(d,"defaultProps",{value:""})},1484:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(n(2784));var r=a(n(13980)),i=n(30762),o=n(28165);function a(e){return e&&e.__esModule?e:{default:e}}function s({value:e}){return(0,o.jsx)(i.WidgetPreviewContainer,null,e)}s.propTypes={value:r.default.node},t.default=s},82133:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsWidgetNumber=void 0;var r=a(n(69298)),i=a(n(1484)),o=a(n(60704));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l=t.DecapCmsWidgetNumber={Widget:function(e={}){return function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{step:{type:"number"},value_type:{type:"string"},min:{type:"number"},max:{type:"number"}}}},53998:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(2784)),i=c(n(13980)),o=c(n(19155)),a=n(28165),s=n(46670),l=n(30762),u=n(1704);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f=`\n padding: ${l.lengths.objectWidgetTopBarContainerPadding};\n `;class p extends r.default.Component{constructor(e){super(e),d(this,"componentValidate",{}),d(this,"validate",(()=>{const{field:e}=this.props;let t=e.get("field")||e.get("fields");t=s.List.isList(t)?t:(0,s.List)([t]),t.forEach((e=>{"hidden"!==e.get("widget")&&this.componentValidate[e.get("name")]()}))})),d(this,"handleCollapseToggle",(()=>{this.setState({collapsed:!this.state.collapsed})})),d(this,"renderFields",((e,t)=>e?e.map(((e,t)=>this.controlFor(e,t))):this.controlFor(t))),d(this,"objectLabel",(()=>{const{value:e,field:t}=this.props,n=t.get("label",t.get("name")),r=t.get("summary");return r?u.stringTemplate.compileStringTemplate(r,null,"",e):n})),this.state={collapsed:e.field.get("collapsed",!1)}}shouldComponentUpdate(){return!0}controlFor(e,t){const{value:n,onChangeObject:r,onValidateObject:i,clearFieldErrors:o,metadata:l,fieldsErrors:u,editorControl:c,controlRef:d,parentIds:f,isFieldDuplicate:p,isFieldHidden:h,locale:m,collapsed:g}=this.props;if("hidden"===e.get("widget"))return null;const v=e.get("name"),y=n&&s.Map.isMap(n)?n.get(v):n,b=p&&p(e),w=h&&h(e);return(0,a.jsx)(c,{key:t,field:e,value:y,onChange:r,clearFieldErrors:o,fieldsMetaData:l,fieldsErrors:u,onValidate:i,processControlRef:d&&d.bind(this),controlRef:d,parentIds:f,isDisabled:b,isHidden:w,isFieldDuplicate:p,isFieldHidden:h,locale:m,isParentListCollapsed:g})}render(){const{field:e,forID:t,classNameWrapper:n,forList:r,hasError:i,t:o}=this.props,s=r?this.props.collapsed:this.state.collapsed,u=e.get("fields"),c=e.get("field");return u||c?(0,a.jsx)(a.ClassNames,null,(({css:e,cx:d})=>(0,a.jsx)("div",{id:t,className:d(n,e` ${f} `,{[e` ${"\n padding: 6px 14px 14px;\n border-top: 0;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n "} @@ -482,10 +482,10 @@ border-color: ${l.colors.textFieldBorder}; `]:!!r&&!i})},r?null:(0,a.jsx)(l.ObjectWidgetTopBar,{collapsed:s,onCollapseToggle:this.handleCollapseToggle,heading:s&&this.objectLabel(),t:o}),(0,a.jsx)("div",{className:d({[e` ${"\n display: none;\n "} - `]:s})},this.renderFields(u,c))))):(0,a.jsx)("h3",null,"No field(s) defined for this widget")}}t.default=p,d(p,"propTypes",{onChangeObject:i.default.func.isRequired,onValidateObject:i.default.func,value:i.default.oneOfType([i.default.node,i.default.object,i.default.bool]),field:i.default.object,forID:i.default.string,classNameWrapper:i.default.string.isRequired,forList:i.default.bool,controlRef:i.default.func,editorControl:i.default.elementType.isRequired,resolveWidget:i.default.func.isRequired,clearFieldErrors:i.default.func.isRequired,fieldsErrors:o.default.map,hasError:i.default.bool,t:i.default.func,locale:i.default.string,collapsed:i.default.bool}),d(p,"defaultProps",{value:(0,s.Map)()})},5186:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(n(2784));var r=a(n(13980)),i=n(30762),o=n(28165);function a(e){return e&&e.__esModule?e:{default:e}}function s({field:e}){return(0,o.jsx)(i.WidgetPreviewContainer,null,e&&e.get("fields")||e.get("field")||null)}s.propTypes={field:r.default.node},t.default=s},16044:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsWidgetObject=void 0;var r=a(n(53998)),i=a(n(5186)),o=a(n(18551));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l=t.DecapCmsWidgetObject={Widget:function(e={}){return function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{collapsed:{type:"boolean"},i18n:{type:"boolean"}}}},89869:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=E(n(84636)),i=E(n(56974)),o=E(n(45455)),a=E(n(72579)),s=E(n(17452)),l=E(n(54073)),u=E(n(2784)),c=E(n(13980)),d=E(n(19155)),f=n(31776),p=E(n(81209)),h=n(46670),m=n(30762),g=n(1704),v=n(50166),y=n(61540),b=n(66548),w=n(88366),_=n(82851),x=n(29987),k=n(28165);function E(e){return e&&e.__esModule?e:{default:e}}function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;te.id)):[],a={distance:t},s=(0,y.useSensors)((0,y.useSensor)(y.MouseSensor,{activationConstraint:a}),(0,y.useSensor)(y.TouchSensor,{activationConstraint:a}));return(0,k.jsx)(y.DndContext,{modifiers:[w.restrictToParentElement],collisionDetection:y.closestCenter,sensors:s,onDragEnd:function({active:e,over:t}){r({oldIndex:o.indexOf(e.id),newIndex:o.indexOf(t.id)})}},(0,k.jsx)(b.SortableContext,{items:o,strategy:b.horizontalListSortingStrategy},(0,k.jsx)(p.default,e)))}function D({index:e,style:t,data:n}){return(0,k.jsx)("div",{style:t},n.options[e])}function M(e){if(e.isLoading||e.options.length<=0||!Array.isArray(e.children))return e.children;const t=e.children;return(0,k.jsx)(v.FixedSizeList,{style:{width:"100%"},width:300,height:Math.min(300,30*t.length+10),itemCount:t.length,itemSize:30,itemData:{options:t}},D)}function I(e){return e&&e.value?e.value:""}function L(e){const t=h.List.isList(e)?e.toJS():e;return t&&Array.isArray(t)?t:null}function j(e,t){return(0,r.default)(e.concat(t),(e=>e.value))}function N(e){return e?h.List.isList(e)?e.toJS():[e]:[]}function F(e){const t=function(e){return"string"==typeof e?{label:e,value:e}:h.Map.isMap(e)?e.toJS():e}(e);return T(T({},t),{},{data:T(T({},t.data),{},{id:(0,x.v4)()})})}class B extends u.default.Component{constructor(...e){super(...e),O(this,"mounted",!1),O(this,"state",{initialOptions:[]}),O(this,"isValid",(()=>{const{field:e,value:t,t:n}=this.props,r=e.get("min"),i=e.get("max");if(!this.isMultiple())return{error:!1};const o=g.validations.validateMinMax(n,e.get("label",e.get("name")),t,r,i);return o?{error:o}:{error:!1}})),O(this,"onSortEnd",(e=>({oldIndex:t,newIndex:n})=>{const{onChange:r,field:a}=this.props,s=function(e,t,n){const r=e.slice();return r.splice(n<0?e.length+n:n,0,r.splice(t,1)[0]),r}(e.map(I),t,n),l=!(0,o.default)(e)&&{[a.get("name")]:{[a.get("collection")]:{[(0,i.default)(s)]:(0,i.default)(e).data}}}||{};r((0,h.fromJS)(s),l)})),O(this,"handleChange",(e=>{const{onChange:t,field:n}=this.props;if(this.isMultiple()){const r=e;this.setState({initialOptions:r.filter(Boolean)});const a=r.map(I),s=!(0,o.default)(r)&&{[n.get("name")]:{[n.get("collection")]:{[(0,i.default)(a)]:(0,i.default)(r).data}}}||{};t((0,h.fromJS)(a),s)}else{this.setState({initialOptions:[e].filter(Boolean)});const r=I(e);t(r,e&&{[n.get("name")]:{[n.get("collection")]:{[r]:e.data}}})}})),O(this,"parseNestedFields",((e,t)=>{const{locale:n}=this.props,r=null!=n&&null!=e.i18n&&null!=e.i18n[n]?e.i18n[n].data:e.data;if(g.stringTemplate.extractTemplateVars(t).length<=0)return(0,a.default)(r,t);const i=g.stringTemplate.addFileTemplateFields(e.path,(0,h.fromJS)(r));return g.stringTemplate.compileStringTemplate(t,null,e.slug,i)})),O(this,"parseHitOptions",(e=>{const{field:t}=this.props,n=t.get("value_field"),r=t.get("display_fields")||(0,h.List)([t.get("value_field")]),i=N(t.get("filters"));return e.reduce(((e,t)=>{if(i.every((e=>{const n=e.field.split(".");let r=t.data;for(let e=0;e{const r=g.stringTemplate.expandPath({data:t.data,path:e});return this.parseNestedFields(t,r[n]||r[0])})).join(" "),a=this.parseNestedFields(t,i[n]);e.push({data:t.data,value:a,label:o})}}return e}),[])})),O(this,"loadOptions",(0,l.default)(((e,t)=>{const{field:n,query:r,forID:i}=this.props,o=n.get("collection"),a=n.get("options_length")||20;r(i,o,N(n.get("search_fields")),e,n.get("file")).then((({payload:e})=>{const n=e.hits||[],r=this.parseHitOptions(n),i=j(this.state.initialOptions,r).slice(0,a);t(i)}))}),500))}shouldComponentUpdate(e){return this.props.value!==e.value||this.props.hasActiveStyle!==e.hasActiveStyle||this.props.queryHits!==e.queryHits}async componentDidMount(){this.mounted=!0;const{forID:e,field:t,value:n,query:r,onChange:i}=this.props,o=t.get("collection"),a=t.get("file"),s=n&&(this.isMultiple()?L(n):[n]);if(s&&s.length>0){const n={},l=N(t.get("search_fields")),{payload:u}=await r(e,o,l,"",a),c=u.hits||[],d=this.parseHitOptions(c),f=s.map((e=>{const t=d.find((t=>t.value===e));return n[e]=null==t?void 0:t.data,t})).filter(Boolean),p=f.map((e=>e.value));this.mounted&&this.setState({initialOptions:f}),this.mounted&&i(1!==p.length||this.isMultiple()?(0,h.fromJS)(p):p[0],{[t.get("name")]:{[t.get("collection")]:n}})}}componentWillUnmount(){this.mounted=!1}isMultiple(){return this.props.field.get("multiple",!1)}render(){const{value:e,field:t,forID:n,classNameWrapper:r,setActiveStyle:i,setInactiveStyle:o,queryHits:a}=this.props,l=this.isMultiple(),u=!t.get("required",!0)||l,c=this.parseHitOptions(a),d=function({value:e,options:t,isMultiple:n}){if(n){const n=L(e);return null===n?null:n.map((e=>t.find((t=>t.value===(e.value||e))))).filter(Boolean).map(F)}return(0,s.default)(t,["value",e])||null}({options:j(this.state.initialOptions,c),value:e,isMultiple:l});return(0,k.jsx)(R,{useDragHandle:!0,onSortEnd:this.onSortEnd(d),distance:4,components:{MenuList:M,MultiValue:A,MultiValueLabel:P},value:d,inputId:n,cacheOptions:!0,defaultOptions:!0,loadOptions:this.loadOptions,onChange:this.handleChange,className:r,onFocus:i,onBlur:o,styles:m.reactSelectStyles,isMulti:l,isClearable:u,placeholder:""})}}t.default=B,O(B,"propTypes",{onChange:c.default.func.isRequired,forID:c.default.string.isRequired,value:c.default.node,field:d.default.map,query:c.default.func.isRequired,queryHits:c.default.array,classNameWrapper:c.default.string.isRequired,setActiveStyle:c.default.func.isRequired,setInactiveStyle:c.default.func.isRequired,locale:c.default.string})},65029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(n(2784));var r=a(n(13980)),i=n(30762),o=n(28165);function a(e){return e&&e.__esModule?e:{default:e}}function s({value:e}){return(0,o.jsx)(i.WidgetPreviewContainer,null,e)}s.propTypes={value:r.default.node},t.default=s},73884:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsWidgetRelation=void 0;var r=a(n(89869)),i=a(n(65029)),o=a(n(37979));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l=t.DecapCmsWidgetRelation={Widget:function(e={}){return function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{collection:{type:"string"},value_field:{type:"string"},search_fields:{type:"array",minItems:1,items:{type:"string"}},file:{type:"string"},multiple:{type:"boolean"},min:{type:"integer"},max:{type:"integer"},display_fields:{type:"array",minItems:1,items:{type:"string"}},options_length:{type:"integer"},filters:{type:"array",items:{type:"object",properties:{field:{type:"string"},values:{type:"array",minItems:1,items:{type:["string","boolean","integer"]}}},required:["field","values"]}}},oneOf:[{required:["collection","value_field","search_fields"]},{required:["collection","valueField","searchFields"]}]}},37381:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(17452)),i=f(n(2784)),o=f(n(13980)),a=f(n(19155)),s=n(46670),l=f(n(31776)),u=n(30762),c=n(1704),d=n(28165);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){return e&&e.value?e.value:null}function m(e){return"string"==typeof e?{label:e,value:e}:s.Map.isMap(e)?e.toJS():e}class g extends i.default.Component{constructor(...e){super(...e),p(this,"isValid",(()=>{const{field:e,value:t,t:n}=this.props,r=e.get("min"),i=e.get("max");if(!e.get("multiple"))return{error:!1};const o=c.validations.validateMinMax(n,e.get("label",e.get("name")),t,r,i);return o?{error:o}:{error:!1}})),p(this,"handleChange",(e=>{const{onChange:t,field:n}=this.props,r=n.get("multiple",!1),i=r?!(null!=e&&e.length):!e;if(n.get("required")&&i&&r)t((0,s.List)());else if(i)t(null);else if(r){const n=e.map(h);t((0,s.fromJS)(n))}else t(h(e))}))}componentDidMount(){const{field:e,onChange:t,value:n}=this.props;e.get("required")&&e.get("multiple")&&(n&&!s.List.isList(n)?t((0,s.fromJS)([n])):n||t((0,s.fromJS)([])))}render(){const{field:e,value:t,forID:n,classNameWrapper:i,setActiveStyle:o,setInactiveStyle:a}=this.props,c=e.get("options"),f=e.get("multiple",!1),p=!e.get("required",!0)||f,h=[...c.map(m)],g=function({value:e,options:t,isMultiple:n}){if(n){const n=s.List.isList(e)?e.toJS():e;return n&&Array.isArray(n)?n.map((e=>t.find((t=>t.value===(e.value||e))))).filter(Boolean).map(m):null}return(0,r.default)(t,["value",e])||null}({options:h,value:t,isMultiple:f});return(0,d.jsx)(l.default,{inputId:n,value:g,onChange:this.handleChange,className:i,onFocus:o,onBlur:a,options:h,styles:u.reactSelectStyles,isMulti:f,isClearable:p,placeholder:""})}}t.default=g,p(g,"propTypes",{onChange:o.default.func.isRequired,value:o.default.node,forID:o.default.string.isRequired,classNameWrapper:o.default.string.isRequired,setActiveStyle:o.default.func.isRequired,setInactiveStyle:o.default.func.isRequired,field:a.default.contains({options:a.default.listOf(o.default.oneOfType([o.default.string,a.default.contains({label:o.default.string.isRequired,value:o.default.string.isRequired})])).isRequired})})},62097:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(13980)),i=(l(n(2784)),n(46670)),o=l(n(19155)),a=n(30762),s=n(28165);function l(e){return e&&e.__esModule?e:{default:e}}function u({values:e}){return(0,s.jsx)("ul",null,e.map(((e,t)=>(0,s.jsx)("li",{key:t},e))))}function c({value:e}){return(0,s.jsx)(a.WidgetPreviewContainer,null,e&&(i.List.isList(e)?(0,s.jsx)(u,{values:e}):e),!e&&null)}c.propTypes={value:r.default.oneOfType([r.default.string,o.default.list])},t.default=c},31540:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsWidgetSelect=void 0;var r=a(n(37381)),i=a(n(62097)),o=a(n(93371));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l=t.DecapCmsWidgetSelect={Widget:function(e={}){return function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={properties:{multiple:{type:"boolean"},min:{type:"integer"},max:{type:"integer"},options:{type:"array",items:{oneOf:[{type:"string"},{type:"number"},{type:"object",properties:{label:{type:"string"},value:{oneOf:[{type:"string"},{type:"number"}]}},required:["label","value"]}]}}},required:["options"]}},93711:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(2784)),i=a(n(13980)),o=n(28165);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l extends r.default.Component{constructor(...e){super(...e),s(this,"_sel",0),s(this,"_el",null),s(this,"handleChange",(e=>{this._sel=e.target.selectionStart,this.props.onChange(e.target.value)}))}componentDidUpdate(){this._el&&this._el.selectionStart!==this._sel&&this._el.setSelectionRange(this._sel,this._sel)}render(){const{forID:e,value:t,classNameWrapper:n,setActiveStyle:r,setInactiveStyle:i}=this.props;return(0,o.jsx)("input",{ref:e=>{this._el=e},type:"text",id:e,className:n,value:t||"",onChange:this.handleChange,onFocus:r,onBlur:i})}}t.default=l,s(l,"propTypes",{onChange:i.default.func.isRequired,forID:i.default.string,value:i.default.node,classNameWrapper:i.default.string.isRequired,setActiveStyle:i.default.func.isRequired,setInactiveStyle:i.default.func.isRequired}),s(l,"defaultProps",{value:""})},30946:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(n(2784));var r=a(n(13980)),i=n(30762),o=n(28165);function a(e){return e&&e.__esModule?e:{default:e}}function s({value:e}){return(0,o.jsx)(i.WidgetPreviewContainer,null,e)}s.propTypes={value:r.default.node},t.default=s},67353:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsWidgetString=void 0;var r=o(n(93711)),i=o(n(30946));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const s=t.DecapCmsWidgetString={Widget:function(e={}){return function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(2784)),i=s(n(13980)),o=s(n(94633)),a=n(28165);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u={name:"1mnv7s1-TextControl",styles:"font-family:inherit;label:TextControl;"};class c extends r.default.Component{shouldComponentUpdate(){return!0}render(){const{forID:e,value:t,onChange:n,classNameWrapper:r,setActiveStyle:i,setInactiveStyle:s}=this.props;return(0,a.jsx)(o.default,{id:e,value:t||"",className:r,onFocus:i,onBlur:s,minRows:5,css:u,onChange:e=>n(e.target.value)})}}t.default=c,l(c,"propTypes",{onChange:i.default.func.isRequired,forID:i.default.string,value:i.default.node,classNameWrapper:i.default.string.isRequired,setActiveStyle:i.default.func.isRequired,setInactiveStyle:i.default.func.isRequired}),l(c,"defaultProps",{value:""})},39727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(n(2784));var r=a(n(13980)),i=n(30762),o=n(28165);function a(e){return e&&e.__esModule?e:{default:e}}function s({value:e}){return(0,o.jsx)(i.WidgetPreviewContainer,null,e)}s.propTypes={value:r.default.node},t.default=s},53651:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DecapCmsWidgetText=void 0;var r=o(n(40331)),i=o(n(39727));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const s=t.DecapCmsWidgetText={Widget:function(e={}){return function(e){for(var t=1;t{"use strict";e.exports=function(e){if(e)throw e}},82294:e=>{"use strict";function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,a,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){if(e===t)return[l,u];for(r=[],o=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},95766:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=s(e),a=o[0],l=o[1],u=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),c=0,d=l>0?a-4:a;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,u=r-i;su?u:s+a));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var i,o,a=[],s=t;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},48834:(e,t,n)=>{"use strict";const r=n(95766),i=n(62333),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=s(n);const i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Z(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Z(e,ArrayBuffer)||e&&Z(e.buffer,ArrayBuffer))return p(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(Z(e,SharedArrayBuffer)||e&&Z(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);const i=function(e){if(l.isBuffer(e)){const t=0|h(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||Y(e.length)?s(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return c(e),s(e<0?0:0|h(e))}function f(e){const t=e.length<0?0:0|h(e.length),n=s(t);for(let r=0;r=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Z(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(i)return r?-1:V(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Y(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){let n=!0;for(let r=0;ri&&(r=i):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(o=l));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){const t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rr.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tn&&(e+=" ... "),""},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(Z(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n);for(let e=0;e>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":case"latin1":case"binary":return x(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const T=4096;function O(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;ir)&&(n=r);let i="";for(let r=t;rn)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function I(e,t,n,r,i){q(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function L(e,t,n,r,i){q(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function j(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,o){return t=+t,n>>>=0,o||j(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,o){return t=+t,n>>>=0,o||j(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||D(e,t,this.length);let r=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,n||D(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=Q((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||D(e,t,this.length);let r=this[e],i=1,o=0;for(;++o=i&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=Q((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||D(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||M(this,e,t,n,Math.pow(2,8*n)-1,0);let i=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,r||M(this,e,t,n,Math.pow(2,8*n)-1,0);let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=Q((function(e,t=0){return I(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=Q((function(e,t=0){return L(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);M(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i>>=0,!r){const r=Math.pow(2,8*n-1);M(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=Q((function(e,t=0){return I(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=Q((function(e,t=0){return L(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function q(e,t,n,r,i,o){if(e>n||e3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new B.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){W(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||$(t,e.length-(n+1))}(r,i,o)}function W(e,t){if("number"!=typeof e)throw new B.ERR_INVALID_ARG_TYPE(t,"number",e)}function $(e,t,n){if(Math.floor(e)!==e)throw W(e,n),new B.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new B.ERR_BUFFER_OUT_OF_BOUNDS;throw new B.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}z("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),z("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),z("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=U(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=U(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const H=/[^+/0-9A-Za-z-_]/g;function V(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function G(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function K(e,t,n,r){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Z(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function Q(e){return"undefined"==typeof BigInt?J:e}function J(){throw new Error("BigInt not supported")}},62680:(e,t,n)=>{"use strict";var r=n(67286),i=n(89429),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},89429:(e,t,n)=>{"use strict";var r=n(4090),i=n(67286),o=n(47669),a=i("%TypeError%"),s=i("%Function.prototype.apply%"),l=i("%Function.prototype.call%"),u=i("%Reflect.apply%",!0)||r.call(l,s),c=i("%Object.defineProperty%",!0),d=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=u(r,l,arguments);return o(t,1+d(0,e.length-(arguments.length-1)),!0)};var f=function(){return u(r,s,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f},53404:e=>{"use strict";e.exports=function(e,t){var n,r=String(e),i=0;if("string"!=typeof t)throw new Error("Expected character");for(n=r.indexOf(t);-1!==n;)i++,n=r.indexOf(t,n+t.length);return i}},6277:(e,t,n)=>{"use strict";function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;ti,default:()=>o});const o=i},15971:(e,t,n)=>{!function(e){function t(t,n,r){var i,o=t.getWrapperElement();return(i=o.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),e.addClass(o,"dialog-opened"),i}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",(function(r,i,o){o||(o={}),n(this,null);var a=t(this,r,o.bottom),s=!1,l=this;function u(t){if("string"==typeof t)d.value=t;else{if(s)return;s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),l.focus(),o.onClose&&o.onClose(a)}}var c,d=a.getElementsByTagName("input")[0];return d?(d.focus(),o.value&&(d.value=o.value,!1!==o.selectValueOnOpen&&d.select()),o.onInput&&e.on(d,"input",(function(e){o.onInput(e,d.value,u)})),o.onKeyUp&&e.on(d,"keyup",(function(e){o.onKeyUp(e,d.value,u)})),e.on(d,"keydown",(function(t){o&&o.onKeyDown&&o.onKeyDown(t,d.value,u)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(d.blur(),e.e_stop(t),u()),13==t.keyCode&&i(d.value,t))})),!1!==o.closeOnBlur&&e.on(a,"focusout",(function(e){null!==e.relatedTarget&&u()}))):(c=a.getElementsByTagName("button")[0])&&(e.on(c,"click",(function(){u(),l.focus()})),!1!==o.closeOnBlur&&e.on(c,"blur",u),c.focus()),u})),e.defineExtension("openConfirm",(function(r,i,o){n(this,null);var a=t(this,r,o&&o.bottom),s=a.getElementsByTagName("button"),l=!1,u=this,c=1;function d(){l||(l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),u.focus())}s[0].focus();for(var f=0;f{!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var s=e.getLineHandle(t.line),l=t.ch-1,u=o&&o.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=i(o),d=!u&&l>=0&&c.test(s.text.charAt(l))&&r[s.text.charAt(l)]||c.test(s.text.charAt(l+1))&&r[s.text.charAt(++l)];if(!d)return null;var f=">"==d.charAt(1)?1:-1;if(o&&o.strict&&f>0!=(l==t.ch))return null;var p=e.getTokenTypeAt(n(t.line,l+1)),h=a(e,n(t.line,l+(f>0?1:0)),f,p,o);return null==h?null:{from:n(t.line,l),to:h&&h.pos,match:h&&h.ch==d.charAt(0),forward:f>0}}function a(e,t,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,u=s&&s.maxScanLines||1e3,c=[],d=i(s),f=o>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),p=t.line;p!=f;p+=o){var h=e.getLine(p);if(h){var m=o>0?0:h.length-1,g=o>0?h.length:-1;if(!(h.length>l))for(p==t.line&&(m=t.ch-(o<0?1:0));m!=g;m+=o){var v=h.charAt(m);if(d.test(v)&&(void 0===a||(e.getTokenTypeAt(n(p,m+1))||"")==(a||""))){var y=r[v];if(y&&">"==y.charAt(1)==o>0)c.push(v);else{if(!c.length)return{pos:n(p,m),ch:v};c.pop()}}}}}return p-o!=(o>0?e.lastLine():e.firstLine())&&null}function s(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=i&&i.highlightNonMatching,l=[],u=e.listSelections(),c=0;c{!function(e){"use strict";e.multiplexingMode=function(t){var n=Array.prototype.slice.call(arguments,1);function r(e,t,n,r){if("string"==typeof t){var i=e.indexOf(t,n);return r&&i>-1?i+t.length:i}var o=t.exec(n?e.slice(n):e);return o?o.index+n+(r?o[0].length:0):-1}return{startState:function(){return{outer:e.startState(t),innerActive:null,inner:null,startingInner:!1}},copyState:function(n){return{outer:e.copyState(t,n.outer),innerActive:n.innerActive,inner:n.innerActive&&e.copyState(n.innerActive.mode,n.inner),startingInner:n.startingInner}},token:function(i,o){if(o.innerActive){var a=o.innerActive;if(u=i.string,!a.close&&i.sol())return o.innerActive=o.inner=null,this.token(i,o);if((d=a.close&&!o.startingInner?r(u,a.close,i.pos,a.parseDelimiters):-1)==i.pos&&!a.parseDelimiters)return i.match(a.close),o.innerActive=o.inner=null,a.delimStyle&&a.delimStyle+" "+a.delimStyle+"-close";d>-1&&(i.string=u.slice(0,d));var s=a.mode.token(i,o.inner);return d>-1?i.string=u:i.pos>i.start&&(o.startingInner=!1),d==i.pos&&a.parseDelimiters&&(o.innerActive=o.inner=null),a.innerStyle&&(s=s?s+" "+a.innerStyle:a.innerStyle),s}for(var l=1/0,u=i.string,c=0;c{!function(e){"use strict";e.overlayMode=function(t,n,r){return{startState:function(){return{base:e.startState(t),overlay:e.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:e.copyState(t,r.base),overlay:e.copyState(n,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(e,i){return(e!=i.streamSeen||Math.min(i.basePos,i.overlayPos){!function(e){"use strict";function t(e,t){if(!e.hasOwnProperty(t))throw new Error("Undefined state "+t+" in simple mode")}function n(e,t){if(!e)return/(?:)/;var n="";return e instanceof RegExp?(e.ignoreCase&&(n="i"),e.unicode&&(n+="u"),e=e.source):e=String(e),new RegExp((!1===t?"":"^")+"(?:"+e+")",n)}function r(e,r){(e.next||e.push)&&t(r,e.next||e.push),this.regex=n(e.regex),this.token=function(e){if(!e)return null;if(e.apply)return e;if("string"==typeof e)return e.replace(/\./g," ");for(var t=[],n=0;n2&&c.token&&"string"!=typeof c.token){for(var p=2;p-1)return e.Pass;var a=r.indent.length-1,s=t[r.state];e:for(;;){for(var l=0;l{!function(e){"use strict";var t,n,r=e.Pos;function i(e,t){for(var n=function(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}(e),r=n,i=0;ic);d++){var f=e.getLine(u++);s=null==s?f:s+"\n"+f}l*=2,t.lastIndex=n.ch;var p=t.exec(s);if(p){var h=s.slice(0,p.index).split("\n"),m=p[0].split("\n"),g=n.line+h.length-1,v=h[h.length-1].length;return{from:r(g,v),to:r(g+m.length-1,1==m.length?v+m[0].length:m[m.length-1].length),match:p}}}}function l(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function u(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.firstLine();o>=s;o--,a=-1){var u=e.getLine(o),c=l(u,t,a<0?0:u.length-a);if(c)return{from:r(o,c.index),to:r(o,c.index+c[0].length),match:c}}}function c(e,t,n){if(!o(t))return u(e,t,n);t=i(t,"gm");for(var a,s=1,c=e.getLine(n.line).length-n.ch,d=n.line,f=e.firstLine();d>=f;){for(var p=0;p=f;p++){var h=e.getLine(d--);a=null==a?h:h+"\n"+a}s*=2;var m=l(a,t,c);if(m){var g=a.slice(0,m.index).split("\n"),v=m[0].split("\n"),y=d+g.length,b=g[g.length-1].length;return{from:r(y,b),to:r(y+v.length-1,1==v.length?b+v[0].length:v[v.length-1].length),match:m}}}}function d(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function f(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,f=e.lastLine()+1-l.length;u<=f;u++,c=0){var p=e.getLine(u).slice(c),h=s(p);if(1==l.length){var m=h.indexOf(l[0]);if(-1==m)continue e;return o=d(p,h,m,s)+c,{from:r(u,d(p,h,m,s)+c),to:r(u,d(p,h,m+l[0].length,s)+c)}}var g=h.length-l[0].length;if(h.slice(g)==l[0]){for(var v=1;v=f;u--,c=-1){var p=e.getLine(u);c>-1&&(p=p.slice(0,c));var h=s(p);if(1==l.length){var m=h.lastIndexOf(l[0]);if(-1==m)continue e;return{from:r(u,d(p,h,m,s)),to:r(u,d(p,h,m+l[0].length,s))}}var g=l[l.length-1];if(h.slice(0,g.length)==g){var v=1;for(o=u-l.length+1;v(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var i=this.matches(t,n);if(this.afterEmptyMatch=i&&0==e.cmpPos(i.from,i.to),i)return this.pos=i,this.atOccurrence=!0,this.pos.match||!0;var o=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,n){return new h(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new h(this,e,t,n)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(n(23326))},83280:(e,t,n)=>{!function(e){"use strict";var t=e.commands,n=e.Pos;function r(e,t){return e.line==t.line&&e.ch==t.ch}var i=[];function o(e){i.push(e),i.length>50&&i.shift()}function a(e){return i[i.length-(e?Math.min(e,1):1)]||""}var s=null;function l(e,t,n,a,l){null==l&&(l=e.getRange(t,n)),"grow"==a&&s&&s.cm==e&&r(t,s.pos)&&e.isClean(s.gen)?function(e){if(!i.length)return o(e);i[i.length-1]+=e}(l):!1!==a&&o(l),e.replaceRange("",t,n,"+delete"),s="grow"==a?{cm:e,pos:t,gen:e.changeGeneration()}:null}function u(e,t,n){return e.findPosH(t,n,"char",!0)}function c(e,t,n){return e.findPosH(t,n,"word",!0)}function d(e,t,n){return e.findPosV(t,n,"line",e.doc.sel.goalColumn)}function f(e,t,n){return e.findPosV(t,n,"page",e.doc.sel.goalColumn)}function p(e,t,r){for(var i=t.line,o=e.getLine(i),a=/\S/.test(r<0?o.slice(0,t.ch):o.slice(t.ch)),s=e.firstLine(),l=e.lastLine();;){if((i+=r)l)return e.clipPos(n(i-r,r<0?0:null));if(o=e.getLine(i),/\S/.test(o))a=!0;else if(a)return n(i,0)}}function h(e,t,r){for(var i=t.line,o=t.ch,a=e.getLine(t.line),s=!1;;){var l=a.charAt(o+(r<0?-1:0));if(l){if(s&&/[!?.]/.test(l))return n(i,o+(r>0?1:0));s||(s=/\w/.test(l)),o+=r}else{if(i==(r<0?e.firstLine():e.lastLine()))return n(i,o);if(a=e.getLine(i+r),!/\S/.test(a))return n(i,o);i+=r,o=r<0?a.length:0}}}function m(e,t,i){var o;if(e.findMatchingBracket&&(o=e.findMatchingBracket(t,{strict:!0}))&&o.match&&(o.forward?1:-1)==i)return i>0?n(o.to.line,o.to.ch+1):o.to;for(var a=!0;;a=!1){var s=e.getTokenAt(t),l=n(t.line,i<0?s.start:s.end);if(!(a&&i>0&&s.end==t.ch)&&/\w/.test(s.string))return l;var u=e.findPosH(l,i,"char");if(r(l,u))return t;t=u}}function g(e,t){var n=e.state.emacsPrefix;return n?(S(e),"-"==n?-1:Number(n)):t?null:1}function v(e){var t="string"==typeof e?function(t){t.execCommand(e)}:e;return function(e){var n=g(e);t(e);for(var r=1;r1&&"+input"==t.origin){for(var r=t.text.join("\n"),i="",o=1;o1&&i.pop(),a()),"around","paste")},t.forwardChar=b(u,1),t.backwardChar=b(u,-1),t.deleteChar=function(e){w(e,u,1,!1)},t.deleteForwardChar=function(e){_(e,!1)||w(e,u,1,!1)},t.deleteBackwardChar=function(e){_(e,!1)||w(e,u,-1,!1)},t.forwardWord=b(c,1),t.backwardWord=b(c,-1),t.killWord=function(e){w(e,c,1,"grow")},t.backwardKillWord=function(e){w(e,c,-1,"grow")},t.nextLine=b(d,1),t.previousLine=b(d,-1),t.scrollDownCommand=b(f,-1),t.scrollUpCommand=b(f,1),t.backwardParagraph=b(p,-1),t.forwardParagraph=b(p,1),t.backwardSentence=b(h,-1),t.forwardSentence=b(h,1),t.killSentence=function(e){w(e,h,1,"grow")},t.backwardKillSentence=function(e){l(e,e.getCursor(),h(e,e.getCursor(),1),"grow")},t.killSexp=function(e){w(e,m,1,"grow")},t.backwardKillSexp=function(e){w(e,m,-1,"grow")},t.forwardSexp=b(m,1),t.backwardSexp=b(m,-1),t.markSexp=function(e){var t=e.getCursor();e.setSelection(y(e,t,m,1),t)},t.transposeSexps=function(e){var t=m(e,e.getCursor(),-1),n=m(e,t,1),r=m(e,n,1),i=m(e,r,-1);e.replaceRange(e.getRange(i,r)+e.getRange(n,i)+e.getRange(t,n),t,r)},t.backwardUpList=v((function(e){for(var t=e.getCursor(),r=t.line,i=t.ch,o=[];r>=e.firstLine();){for(var a=e.getLine(r),s=null==i?a.length:i;s>0;)if(")"==(i=a.charAt(--s)))o.push("(");else if("]"==i)o.push("[");else if("}"==i)o.push("{");else if(/[\(\{\[]/.test(i)&&(!o.length||o.pop()!=i))return e.extendSelection(n(r,s));--r,i=null}})),t.justOneSpace=function(e){for(var t=e.getCursor(),r=t.ch,i=t.ch,o=e.getLine(t.line);r&&/\s/.test(o.charAt(r-1));)--r;for(;i0)return e.setCursor(t-1);!function(e,t,n){e.openDialog?e.openDialog(function(e){var t=document.createDocumentFragment(),n=document.createElement("input");return n.setAttribute("type","text"),n.style.width="10em",t.appendChild(document.createTextNode(e+": ")),t.appendChild(n),t}(t),n,{bottom:!0}):n(prompt(t,""))}(e,"Goto line",(function(t){var n;t&&!isNaN(n=Number(t))&&n==(0|n)&&n>0&&e.setCursor(n-1)}))},t.indentRigidly=function(e){e.indentSelection(g(e,!0)||e.getOption("indentUnit"))},t.exchangePointAndMark=function(e){e.setSelection(e.getCursor("head"),e.getCursor("anchor"))},t.quotedInsertTab=v("insertTab"),t.universalArgument=function(e){e.state.emacsPrefixMap=!0,e.addKeyMap(R),e.on("keyHandled",T),e.on("inputRead",T)},e.emacs={kill:l,killRegion:_,repeated:v};var P=e.keyMap.emacs=e.normalizeKeyMap({"Ctrl-W":"killRegion","Ctrl-K":"killLineEmacs","Alt-W":"killRingSave","Ctrl-Y":"yank","Alt-Y":"yankPop","Ctrl-Space":"setMark","Ctrl-Shift-2":"setMark","Ctrl-F":"forwardChar","Ctrl-B":"backwardChar",Right:"forwardChar",Left:"backwardChar","Ctrl-D":"deleteChar",Delete:"deleteForwardChar","Ctrl-H":"deleteBackwardChar",Backspace:"deleteBackwardChar","Alt-F":"forwardWord","Alt-B":"backwardWord","Alt-Right":"forwardWord","Alt-Left":"backwardWord","Alt-D":"killWord","Alt-Backspace":"backwardKillWord","Ctrl-N":"nextLine","Ctrl-P":"previousLine",Down:"nextLine",Up:"previousLine","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd",End:"goLineEnd",Home:"goLineStart","Alt-V":"scrollDownCommand","Ctrl-V":"scrollUpCommand",PageUp:"scrollDownCommand",PageDown:"scrollUpCommand","Ctrl-Up":"backwardParagraph","Ctrl-Down":"forwardParagraph","Alt-{":"backwardParagraph","Alt-}":"forwardParagraph","Alt-A":"backwardSentence","Alt-E":"forwardSentence","Alt-K":"killSentence","Ctrl-X Delete":"backwardKillSentence","Ctrl-Alt-K":"killSexp","Ctrl-Alt-Backspace":"backwardKillSexp","Ctrl-Alt-F":"forwardSexp","Ctrl-Alt-B":"backwardSexp","Shift-Ctrl-Alt-2":"markSexp","Ctrl-Alt-T":"transposeSexps","Ctrl-Alt-U":"backwardUpList","Alt-Space":"justOneSpace","Ctrl-O":"openLine","Ctrl-T":"transposeCharsRepeatable","Alt-C":"capitalizeWord","Alt-U":"upcaseWord","Alt-L":"downcaseWord","Alt-;":"toggleComment","Ctrl-/":"undoRepeatable","Shift-Ctrl--":"undoRepeatable","Ctrl-Z":"undoRepeatable","Cmd-Z":"undoRepeatable","Ctrl-X U":"undoRepeatable","Shift-Ctrl-Z":"redo","Shift-Alt-,":"goDocStart","Shift-Alt-.":"goDocEnd","Ctrl-S":"findPersistentNext","Ctrl-R":"findPersistentPrev","Ctrl-G":"keyboardQuit","Shift-Alt-5":"replace","Alt-/":"autocomplete",Enter:"newlineAndIndent","Ctrl-J":"newline",Tab:"indentAuto","Alt-G G":"gotoLine","Ctrl-X Tab":"indentRigidly","Ctrl-X Ctrl-X":"exchangePointAndMark","Ctrl-X Ctrl-S":"save","Ctrl-X Ctrl-W":"save","Ctrl-X S":"saveAll","Ctrl-X F":"open","Ctrl-X K":"close","Ctrl-X H":"selectAll","Ctrl-Q Tab":"quotedInsertTab","Ctrl-U":"universalArgument",fallthrough:"default"}),R={"Ctrl-G":S};function D(e){R[e]=function(t){x(t,e)},P["Ctrl-"+e]=function(t){x(t,e)},k["Ctrl-"+e]=!0}for(var M=0;M<10;++M)D(String(M));D("-")}(n(23326))},94521:(e,t,n)=>{!function(e){"use strict";var t=e.commands,n=e.Pos;function r(t,r){t.extendSelectionsBy((function(i){return t.display.shift||t.doc.extend||i.empty()?function(t,r,i){if(i<0&&0==r.ch)return t.clipPos(n(r.line-1));var o=t.getLine(r.line);if(i>0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var a,s="start",l=r.ch,u=l,c=i<0?0:o.length,d=0;u!=c;u+=i,d++){var f=o.charAt(i<0?u-1:u),p="_"!=f&&e.isWordChar(f)?"w":"o";if("w"==p&&f.toUpperCase()==f&&(p="W"),"start"==s)"o"!=p?(s="in",a=p):l=u+i;else if("in"==s&&a!=p){if("w"==a&&"W"==p&&i<0&&u--,"W"==a&&"w"==p&&i>0){if(u==l+1){a="w";continue}u--}break}}return n(r.line,u)}(t.doc,i.head,r):r<0?i.from():i.to()}))}function i(t,r){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,i=[],o=-1,a=0;a=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;io.line&&s==a.line&&0==a.ch||r.push({anchor:s==o.line?o:n(s,0),head:s==a.line?a:n(s)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i=0;s--){var u=r[i[s]];if(!(l&&e.cmpPos(u.head,l)>0)){var c=o(t,u.head);l=c.from,t.replaceRange(n(c.word),c.from,c.to)}}}))}function f(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=o(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function p(e,t){var r=f(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}t.selectScope=function(e){l(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!l(t))return e.Pass},t.goToBracket=function(t){t.extendSelectionsBy((function(r){var i=t.scanForBracket(r.head,1,u(t.getTokenTypeAt(r.head)));if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1,u(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,a=[],s=0;so?i.push(u,c):i.length&&(i[i.length-1]=c),o=c}t.operation((function(){for(var e=0;et.lastLine()?t.replaceRange("\n"+s,n(t.lastLine()),null,"+swapLine"):t.replaceRange(s+"\n",n(o,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,a=r.length-1;a>=0;a--){var s=r[a],l=s.to().line+1,u=s.from().line;0!=s.to().ch||s.empty()||l--,l=0;e-=2){var r=i[e],o=i[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i=0;o--){var a=r[o].head,s=t.getRange({line:a.line,ch:0},a),l=e.countColumn(s,null,t.getOption("tabSize")),u=t.findPosH(a,-1,"char",!1);if(s&&!/\S/.test(s)&&l%i==0){var c=new n(a.line,e.findColumn(s,l-i,i));c.ch!=a.ch&&(u=c)}t.replaceRange("",u,a,"+delete")}}))},t.delLineRight=function(e){e.operation((function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()}))},t.upcaseAtCursor=function(e){d(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){d(e,(function(e){return e.toLowerCase()}))},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},t.findUnder=function(e){p(e,!0)},t.findUnderPrevious=function(e){p(e,!1)},t.findAllUnder=function(e){var t=f(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var h=e.keyMap;h.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(h.macSublime),h.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(h.pcSublime);var m=h.default==h.macDefault;h.sublime=m?h.macSublime:h.pcSublime}(n(23326),n(19757),n(32407))},50832:(e,t,n)=>{!function(e){"use strict";var t;e.Vim=((t=e).Vim=function(e){var t=e.Pos;function n(e,n){var r=e.state.vim;if(!r||r.insertMode)return n.head;var i=r.sel.head;return i?r.visualBlock&&n.head.line!=i.line?void 0:n.from()!=n.anchor||n.empty()||n.head.line!=i.line||n.head.ch==i.ch?n.head:new t(n.head.line,n.head.ch-1):n.head}var r=[{keys:"",type:"keyToKey",toKeys:"h"},{keys:"",type:"keyToKey",toKeys:"l"},{keys:"",type:"keyToKey",toKeys:"k"},{keys:"",type:"keyToKey",toKeys:"j"},{keys:"g",type:"keyToKey",toKeys:"gk"},{keys:"g",type:"keyToKey",toKeys:"gj"},{keys:"",type:"keyToKey",toKeys:"l"},{keys:"",type:"keyToKey",toKeys:"h",context:"normal"},{keys:"",type:"keyToKey",toKeys:"x",context:"normal"},{keys:"",type:"keyToKey",toKeys:"W"},{keys:"",type:"keyToKey",toKeys:"B",context:"normal"},{keys:"",type:"keyToKey",toKeys:"w"},{keys:"",type:"keyToKey",toKeys:"b",context:"normal"},{keys:"",type:"keyToKey",toKeys:"j"},{keys:"",type:"keyToKey",toKeys:"k"},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:"",context:"insert"},{keys:"",type:"keyToKey",toKeys:"",context:"insert"},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:"",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"",type:"keyToKey",toKeys:"0"},{keys:"",type:"keyToKey",toKeys:"$"},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"",type:"keyToKey",toKeys:"i",context:"normal"},{keys:"",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"g$",type:"motion",motion:"moveToEndOfDisplayLine"},{keys:"g^",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"g0",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"",type:"operatorMotion",operator:"delete",motion:"moveToStartOfLine",context:"insert"},{keys:"",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"",type:"idle",context:"normal"},{keys:"",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r",type:"action",action:"replace",isEdit:!0},{keys:"@",type:"action",action:"replayMacro"},{keys:"q",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"",type:"action",action:"redo"},{keys:"m",type:"action",action:"setMark"},{keys:'"',type:"action",action:"setRegister"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a",type:"motion",motion:"textObjectManipulation"},{keys:"i",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],i=r.length,o=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"unmap"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"vglobal",shortName:"v"},{name:"global",shortName:"g"}];function a(t){t.setOption("disableInput",!0),t.setOption("showCursorWhenSelecting",!1),e.signal(t,"vim-mode-change",{mode:"normal"}),t.on("cursorActivity",tt),F(t),e.on(t.getInputField(),"paste",f(t))}function s(t,n){this==e.keyMap.vim&&(t.options.$customCursor=null,e.rmClass(t.getWrapperElement(),"cm-fat-cursor")),n&&n.attach==l||function(t){t.setOption("disableInput",!1),t.off("cursorActivity",tt),e.off(t.getInputField(),"paste",f(t)),t.state.vim=null,ze&&clearTimeout(ze)}(t)}function l(t,r){this==e.keyMap.vim&&(t.curOp&&(t.curOp.selectionChanged=!0),t.options.$customCursor=n,e.addClass(t.getWrapperElement(),"cm-fat-cursor")),r&&r.attach==l||a(t)}function u(t,n){if(n){if(this[t])return this[t];var r=function(e){if("'"==e.charAt(0))return e.charAt(1);var t=e.split(/-(?!$)/),n=t[t.length-1];if(1==t.length&&1==t[0].length)return!1;if(2==t.length&&"Shift"==t[0]&&1==n.length)return!1;for(var r=!1,i=0;i")}(t);if(!r)return!1;var i=z.findKey(n,r);return"function"==typeof i&&e.signal(n,"vim-keypress",r),i}}e.defineOption("vimMode",!1,(function(t,n,r){n&&"vim"!=t.getOption("keyMap")?t.setOption("keyMap","vim"):!n&&r!=e.Init&&/^vim/.test(t.getOption("keyMap"))&&t.setOption("keyMap","default")}));var c={Shift:"S",Ctrl:"C",Alt:"A",Cmd:"D",Mod:"A",CapsLock:""},d={Enter:"CR",Backspace:"BS",Delete:"Del",Insert:"Ins"};function f(e){var t=e.state.vim;return t.onPasteFn||(t.onPasteFn=function(){t.insertMode||(e.setCursor(J(e.getCursor(),0,1)),Y.enterInsertMode(e,{},t))}),t.onPasteFn}var p=/[\d]/,h=[e.isWordChar,function(t){return t&&!e.isWordChar(t)&&!/\s/.test(t)}],m=[function(e){return/\S/.test(e)}];function g(e,t){for(var n=[],r=e;r"]),x=[].concat(y,b,w,["-",'"',".",":","_","/"]);try{v=new RegExp("^[\\p{Lu}]$","u")}catch(e){v=/^[A-Z]$/}function k(e,t){return t>=e.firstLine()&&t<=e.lastLine()}function E(e){return/^[a-z]$/.test(e)}function S(e){return v.test(e)}function C(e){return/^\s*$/.test(e)}function T(e){return-1!=".?!".indexOf(e)}function O(e,t){for(var n=0;nn?t=n:t0?1:-1,c=o.getCursor();do{if((s=i[(e+(t+=u))%e])&&(l=s.find())&&!re(c,l))break}while(tr)}return s}return{cachedCursor:void 0,add:function(o,a,s){var l=i[t%e];function u(n){var r=++t%e,a=i[r];a&&a.clear(),i[r]=o.setBookmark(n)}if(l){var c=l.find();c&&!re(c,a)&&u(a)}else u(a);u(s),n=t,(r=t-e+1)<0&&(r=0)},find:function(e,n){var r=t,i=o(e,n);return t=r,i&&i.find()},move:o}},j=function(e){return e?{changes:e.changes,expectCursorActivityForChange:e.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};function N(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=j()}function F(e){return e.state.vim||(e.state.vim={inputState:new U,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},insertMode:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{}}),e.state.vim}function B(){for(var e in M={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:L(),macroModeState:new N,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new $({}),searchHistoryController:new H,exCommandHistoryController:new H},A){var t=A[e];t.value=t.defaultValue}}N.prototype={exitMacroRecordMode:function(){var e=M.macroModeState;e.onRecordingDone&&e.onRecordingDone(),e.onRecordingDone=void 0,e.isRecording=!1},enterMacroRecordMode:function(e,t){var n=M.registerController.getRegister(t);if(n){if(n.clear(),this.latestRegister=t,e.openDialog){var r=je("span",{class:"cm-vim-message"},"recording @"+t);this.onRecordingDone=e.openDialog(r,null,{bottom:!0})}this.isRecording=!0}}};var z={enterVimMode:a,buildKeyMap:function(){},getRegisterController:function(){return M.registerController},resetVimGlobalState_:B,getVimGlobalState_:function(){return M},maybeInitVimState_:F,suppressErrorLogging:!1,InsertModeKey:rt,map:function(e,t,n){Ye.map(e,t,n)},unmap:function(e,t){return Ye.unmap(e,t)},noremap:function(e,t,n){function o(e){return e?[e]:["normal","insert","visual"]}for(var a=o(n),s=r.length,l=s-i;l=0;a--){var s=o[a];if(e!==s.context)if(s.context)this._mapCommand(s);else{var l=["normal","insert","visual"];for(var u in l)if(l[u]!==e){var c={};for(var d in s)c[d]=s[d];c.context=l[u],this._mapCommand(c)}}}},setOption:R,getOption:D,defineOption:P,defineEx:function(e,t,n){if(t){if(0!==e.indexOf(t))throw new Error('(Vim.defineEx) "'+t+'" is not a prefix of "'+e+'", command not registered')}else t=e;Ze[e]=n,Ye.commandMap_[t]={name:e,shortName:t,type:"api"}},handleKey:function(e,t,n){var r=this.findKey(e,t,n);if("function"==typeof r)return r()},multiSelectHandleKey:function(e,t,n){var r=!1,i=z.maybeInitVimState_(e),o=i.visualBlock||i.wasInVisualBlock,a=e.isInMultiSelectMode();if(i.wasInVisualBlock&&!a?i.wasInVisualBlock=!1:a&&i.visualBlock&&(i.wasInVisualBlock=!0),""!=t||i.insertMode||i.visualMode||!a||""!=i.status)if(o||!a||e.inVirtualSelectionMode)r=z.handleKey(e,t,n);else{var s=st(i);e.operation((function(){e.curOp.isVimOp=!0,e.forEachSelection((function(){var i=e.getCursor("head"),o=e.getCursor("anchor"),a=ie(i,o)?0:-1,l=ie(i,o)?-1:0;i=J(i,0,a),o=J(o,0,l),e.state.vim.sel.head=i,e.state.vim.sel.anchor=o,r=z.handleKey(e,t,n),e.virtualSelection&&(e.state.vim=st(s))})),e.curOp.cursorActivity&&!r&&(e.curOp.cursorActivity=!1),e.state.vim=i}),!0)}else q(e);return!r||i.visualMode||i.insert||i.visualMode==e.somethingSelected()||nt(e,i),r},findKey:function(e,t,n){var i,o=F(e);function a(){var r=M.macroModeState;if(r.isRecording){if("q"==t)return r.exitMacroRecordMode(),q(e),!0;"mapping"!=n&&function(e,t){if(!e.isPlaying){var n=e.latestRegister,r=M.registerController.getRegister(n);r&&r.pushText(t)}}(r,t)}}function s(){if(""==t){if(o.visualMode)ge(e);else{if(!o.insertMode)return;Xe(e)}return q(e),!0}}return!1===(i=o.insertMode?function(){if(s())return!0;for(var n=o.inputState.keyBuffer=o.inputState.keyBuffer+t,i=1==t.length,a=V.matchCommand(n,r,o.inputState,"insert");n.length>1&&"full"!=a.type;){n=o.inputState.keyBuffer=n.slice(1);var l=V.matchCommand(n,r,o.inputState,"insert");"none"!=l.type&&(a=l)}if("none"==a.type)return q(e),!1;if("partial"==a.type)return I&&window.clearTimeout(I),I=window.setTimeout((function(){o.insertMode&&o.inputState.keyBuffer&&q(e)}),D("insertModeEscKeysTimeout")),!i;if(I&&window.clearTimeout(I),i){for(var u=e.listSelections(),c=0;c|<\w+>|./.exec(n),t=r[0],n=n.substring(r.index+t.length),z.handleKey(e,t,"mapping")}(i.toKeys):V.processCommand(e,o,i)}catch(t){throw e.state.vim=void 0,F(e),z.suppressErrorLogging||console.log(t),t}return!0}))}},handleEx:function(e,t){Ye.processCommand(e,t)},defineMotion:function(e,t){G[e]=t},defineAction:function(e,t){Y[e]=t},defineOperator:function(e,t){Z[e]=t},mapCommand:function(e,t,n,r,i){var o={keys:e,type:t};for(var a in o[t]=n,o[t+"Args"]=r,i)o[a]=i[a];Qe(o)},_mapCommand:Qe,defineRegister:function(e,t){var n=M.registerController.registers;if(!e||1!=e.length)throw Error("Register name must be 1 character");if(n[e])throw Error("Register already defined "+e);n[e]=t,x.push(e)},exitVisualMode:ge,exitInsertMode:Xe};function U(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null}function q(t,n){t.state.vim.inputState=new U,e.signal(t,"vim-command-done",n)}function W(e,t,n){this.clear(),this.keyBuffer=[e||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!t,this.blockwise=!!n}function $(e){this.registers=e,this.unnamedRegister=e['"']=new W,e["."]=new W,e[":"]=new W,e["/"]=new W}function H(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}U.prototype.pushRepeatDigit=function(e){this.operator?this.motionRepeat=this.motionRepeat.concat(e):this.prefixRepeat=this.prefixRepeat.concat(e)},U.prototype.getRepeat=function(){var e=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(e=1,this.prefixRepeat.length>0&&(e*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(e*=parseInt(this.motionRepeat.join(""),10))),e},W.prototype={setText:function(e,t,n){this.keyBuffer=[e||""],this.linewise=!!t,this.blockwise=!!n},pushText:function(e,t){t&&(this.linewise||this.keyBuffer.push("\n"),this.linewise=!0),this.keyBuffer.push(e)},pushInsertModeChanges:function(e){this.insertModeChanges.push(j(e))},pushSearchQuery:function(e){this.searchQueries.push(e)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}},$.prototype={pushText:function(e,t,n,r,i){if("_"!==e){r&&"\n"!==n.charAt(n.length-1)&&(n+="\n");var o=this.isValidRegister(e)?this.getRegister(e):null;if(o)S(e)?o.pushText(n,r):o.setText(n,r,i),this.unnamedRegister.setText(o.toString(),r);else{switch(t){case"yank":this.registers[0]=new W(n,r,i);break;case"delete":case"change":-1==n.indexOf("\n")?this.registers["-"]=new W(n,r):(this.shiftNumericRegisters_(),this.registers[1]=new W(n,r))}this.unnamedRegister.setText(n,r,i)}}},getRegister:function(e){return this.isValidRegister(e)?(e=e.toLowerCase(),this.registers[e]||(this.registers[e]=new W),this.registers[e]):this.unnamedRegister},isValidRegister:function(e){return e&&O(e,x)},shiftNumericRegisters_:function(){for(var e=9;e>=2;e--)this.registers[e]=this.getRegister(""+(e-1))}},H.prototype={nextMatch:function(e,t){var n=this.historyBuffer,r=t?-1:1;null===this.initialPrefix&&(this.initialPrefix=e);for(var i=this.iterator+r;t?i>=0:i=n.length?(this.iterator=n.length,this.initialPrefix):i<0?e:void 0},pushInput:function(e){var t=this.historyBuffer.indexOf(e);t>-1&&this.historyBuffer.splice(t,1),e.length&&this.historyBuffer.push(e)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var V={matchCommand:function(e,t,n,r){var i,o=function(e,t,n,r){for(var i,o=[],a=[],s=0;s"==i.keys.slice(-11)){var l=function(e){var t=/^.*(<[^>]+>)$/.exec(e),n=t?t[1]:e.slice(-1);if(n.length>1)switch(n){case"":n="\n";break;case"":n=" ";break;default:n=""}return n}(e);if(!l||l.length>1)return{type:"clear"};n.selectedCharacter=l}return{type:"full",command:i}},processCommand:function(e,t,n){switch(t.inputState.repeatOverride=n.repeatOverride,n.type){case"motion":this.processMotion(e,t,n);break;case"operator":this.processOperator(e,t,n);break;case"operatorMotion":this.processOperatorMotion(e,t,n);break;case"action":this.processAction(e,t,n);break;case"search":this.processSearch(e,t,n);break;case"ex":case"keyToEx":this.processEx(e,t,n)}},processMotion:function(e,t,n){t.inputState.motion=n.motion,t.inputState.motionArgs=Q(n.motionArgs),this.evalInput(e,t)},processOperator:function(e,t,n){var r=t.inputState;if(r.operator){if(r.operator==n.operator)return r.motion="expandToLine",r.motionArgs={linewise:!0},void this.evalInput(e,t);q(e)}r.operator=n.operator,r.operatorArgs=Q(n.operatorArgs),n.keys.length>1&&(r.operatorShortcut=n.keys),n.exitVisualBlock&&(t.visualBlock=!1,he(e)),t.visualMode&&this.evalInput(e,t)},processOperatorMotion:function(e,t,n){var r=t.visualMode,i=Q(n.operatorMotionArgs);i&&r&&i.visualLine&&(t.visualLine=!0),this.processOperator(e,t,n),r||this.processMotion(e,t,n)},processAction:function(e,t,n){var r=t.inputState,i=r.getRepeat(),o=!!i,a=Q(n.actionArgs)||{};r.selectedCharacter&&(a.selectedCharacter=r.selectedCharacter),n.operator&&this.processOperator(e,t,n),n.motion&&this.processMotion(e,t,n),(n.motion||n.operator)&&this.evalInput(e,t),a.repeat=i||1,a.repeatIsExplicit=o,a.registerName=r.registerName,q(e),t.lastMotion=null,n.isEdit&&this.recordLastEdit(t,r,n),Y[n.action](e,a,t)},processSearch:function(t,n,r){if(t.getSearchCursor){var i=r.searchArgs.forward,o=r.searchArgs.wholeWordOnly;Re(t).setReversed(!i);var a=i?"/":"?",s=Re(t).getQuery(),l=t.getScrollInfo();switch(r.searchArgs.querySrc){case"prompt":var u=M.macroModeState;u.isPlaying?p(f=u.replaySearchQueries.shift(),!0,!1):Fe(t,{onClose:function(e){t.scrollTo(l.left,l.top),p(e,!0,!0);var n=M.macroModeState;n.isRecording&&function(e,t){if(!e.isPlaying){var n=e.latestRegister,r=M.registerController.getRegister(n);r&&r.pushSearchQuery&&r.pushSearchQuery(t)}}(n,e)},prefix:a,desc:"(JavaScript regexp)",onKeyUp:function(n,r,o){var a,s,u,c=e.keyName(n);"Up"==c||"Down"==c?(a="Up"==c,s=n.target?n.target.selectionEnd:0,o(r=M.searchHistoryController.nextMatch(r,a)||""),s&&n.target&&(n.target.selectionEnd=n.target.selectionStart=Math.min(s,n.target.value.length))):"Left"!=c&&"Right"!=c&&"Ctrl"!=c&&"Alt"!=c&&"Shift"!=c&&M.searchHistoryController.reset();try{u=Be(t,r,!0,!0)}catch(n){}u?t.scrollIntoView(qe(t,!i,u),30):(We(t),t.scrollTo(l.left,l.top))},onKeyDown:function(n,r,i){var o=e.keyName(n);"Esc"==o||"Ctrl-C"==o||"Ctrl-["==o||"Backspace"==o&&""==r?(M.searchHistoryController.pushInput(r),M.searchHistoryController.reset(),Be(t,s),We(t),t.scrollTo(l.left,l.top),e.e_stop(n),q(t),i(),t.focus()):"Up"==o||"Down"==o?e.e_stop(n):"Ctrl-U"==o&&(e.e_stop(n),i(""))}});break;case"wordUnderCursor":var c=ye(t,!1,0,!1,!0),d=!0;if(c||(c=ye(t,!1,0,!1,!1),d=!1),!c)return;var f=t.getLine(c.start.line).substring(c.start.ch,c.end.ch);f=d&&o?"\\b"+f+"\\b":f.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1"),M.jumpList.cachedCursor=t.getCursor(),t.setCursor(c.start),p(f,!0,!1)}}function p(e,i,o){M.searchHistoryController.pushInput(e),M.searchHistoryController.reset();try{Be(t,e,i,o)}catch(n){return Ne(t,"Invalid regex: "+e),void q(t)}V.processMotion(t,n,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:r.searchArgs.toJumplist}})}},processEx:function(t,n,r){function i(e){M.exCommandHistoryController.pushInput(e),M.exCommandHistoryController.reset(),Ye.processCommand(t,e),q(t)}function o(n,r,i){var o,a,s=e.keyName(n);("Esc"==s||"Ctrl-C"==s||"Ctrl-["==s||"Backspace"==s&&""==r)&&(M.exCommandHistoryController.pushInput(r),M.exCommandHistoryController.reset(),e.e_stop(n),q(t),i(),t.focus()),"Up"==s||"Down"==s?(e.e_stop(n),o="Up"==s,a=n.target?n.target.selectionEnd:0,i(r=M.exCommandHistoryController.nextMatch(r,o)||""),a&&n.target&&(n.target.selectionEnd=n.target.selectionStart=Math.min(a,n.target.value.length))):"Ctrl-U"==s?(e.e_stop(n),i("")):"Left"!=s&&"Right"!=s&&"Ctrl"!=s&&"Alt"!=s&&"Shift"!=s&&M.exCommandHistoryController.reset()}"keyToEx"==r.type?Ye.processCommand(t,r.exArgs.input):n.visualMode?Fe(t,{onClose:i,prefix:":",value:"'<,'>",onKeyDown:o,selectValueOnOpen:!1}):Fe(t,{onClose:i,prefix:":",onKeyDown:o})},evalInput:function(e,n){var r,i,o,a=n.inputState,s=a.motion,l=a.motionArgs||{},u=a.operator,c=a.operatorArgs||{},d=a.registerName,f=n.sel,p=ne(n.visualMode?X(e,f.head):e.getCursor("head")),h=ne(n.visualMode?X(e,f.anchor):e.getCursor("anchor")),m=ne(p),g=ne(h);if(u&&this.recordLastEdit(n,a),(o=void 0!==a.repeatOverride?a.repeatOverride:a.getRepeat())>0&&l.explicitRepeat?l.repeatIsExplicit=!0:(l.noRepeat||!l.explicitRepeat&&0===o)&&(o=1,l.repeatIsExplicit=!1),a.selectedCharacter&&(l.selectedCharacter=c.selectedCharacter=a.selectedCharacter),l.repeat=o,q(e),s){var v=G[s](e,p,l,n,a);if(n.lastMotion=G[s],!v)return;if(l.toJumplist){var y=M.jumpList,b=y.cachedCursor;b?(be(e,b,v),delete y.cachedCursor):be(e,p,v)}v instanceof Array?(i=v[0],r=v[1]):r=v,r||(r=ne(p)),n.visualMode?(n.visualBlock&&r.ch===1/0||(r=X(e,r)),i&&(i=X(e,i)),i=i||g,f.anchor=i,f.head=r,he(e),Ce(e,n,"<",ie(i,r)?i:r),Ce(e,n,">",ie(i,r)?r:i)):u||(r=X(e,r),e.setCursor(r.line,r.ch))}if(u){if(c.lastSel){i=g;var w=c.lastSel,_=Math.abs(w.head.line-w.anchor.line),x=Math.abs(w.head.ch-w.anchor.ch);r=w.visualLine?new t(g.line+_,g.ch):w.visualBlock?new t(g.line+_,g.ch+x):w.head.line==w.anchor.line?new t(g.line,g.ch+x):new t(g.line+_,g.ch),n.visualMode=!0,n.visualLine=w.visualLine,n.visualBlock=w.visualBlock,f=n.sel={anchor:i,head:r},he(e)}else n.visualMode&&(c.lastSel={anchor:ne(f.anchor),head:ne(f.head),visualBlock:n.visualBlock,visualLine:n.visualLine});var k,E,S,T,O;if(n.visualMode){if(k=oe(f.head,f.anchor),E=ae(f.head,f.anchor),S=n.visualLine||c.linewise,O=me(e,{anchor:k,head:E},T=n.visualBlock?"block":S?"line":"char"),S){var A=O.ranges;if("block"==T)for(var P=0;P0&&o&&C(o);o=i.pop())n.line--,n.ch=0;o?(n.line--,n.ch=le(e,n.line)):n.ch=0}}(e,k,E),O=me(e,{anchor:k,head:E},T="char",!l.inclusive||S)}e.setSelections(O.ranges,O.primary),n.lastMotion=null,c.repeat=o,c.registerName=d,c.linewise=S;var D=Z[u](e,c,O.ranges,g,r);n.visualMode&&ge(e,null!=D),D&&e.setCursor(D)}},recordLastEdit:function(e,t,n){var r=M.macroModeState;r.isPlaying||(e.lastEditInputState=t,e.lastEditActionCommand=n,r.lastInsertModeChanges.changes=[],r.lastInsertModeChanges.expectCursorActivityForChange=!1,r.lastInsertModeChanges.visualBlock=e.visualBlock?e.sel.head.line-e.sel.anchor.line:0)}},G={moveToTopLine:function(e,n,r){var i=He(e).top+r.repeat-1;return new t(i,ve(e.getLine(i)))},moveToMiddleLine:function(e){var n=He(e),r=Math.floor(.5*(n.top+n.bottom));return new t(r,ve(e.getLine(r)))},moveToBottomLine:function(e,n,r){var i=He(e).bottom-r.repeat+1;return new t(i,ve(e.getLine(i)))},expandToLine:function(e,n,r){return new t(n.line+r.repeat-1,1/0)},findNext:function(e,t,n){var r=Re(e),i=r.getQuery();if(i){var o=!n.forward;return o=r.isReversed()?!o:o,Ue(e,i),qe(e,o,i,n.repeat)}},findAndSelectNextInclusive:function(n,r,i,o,a){var s=Re(n),l=s.getQuery();if(l){var u=!i.forward,c=function(e,n,r,i,o){return void 0===i&&(i=1),e.operation((function(){var a=e.getCursor(),s=e.getSearchCursor(r,a),l=s.find(!n);!o.visualMode&&l&&re(s.from(),a)&&s.find(!n);for(var u=0;ul:d.linec&&o.line==c?Ee(e,n,r,i,!0):(r.toFirstChar&&(a=ve(e.getLine(l)),i.lastHPos=a),i.lastHSPos=e.charCoords(new t(l,a),"div").left,new t(l,a))},moveByDisplayLines:function(e,n,r,i){var o=n;switch(i.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:i.lastHSPos=e.charCoords(o,"div").left}var a=r.repeat;if((l=e.findPosV(o,r.forward?a:-a,"line",i.lastHSPos)).hitSide)if(r.forward)var s={top:e.charCoords(l,"div").top+8,left:i.lastHSPos},l=e.coordsChar(s,"div");else{var u=e.charCoords(new t(e.firstLine(),0),"div");u.left=i.lastHSPos,l=e.coordsChar(u,"div")}return i.lastHPos=l.ch,l},moveByPage:function(e,t,n){var r=t,i=n.repeat;return e.findPosV(r,n.forward?i:-i,"page")},moveByParagraph:function(e,t,n){var r=n.forward?1:-1;return Oe(e,t,n.repeat,r)},moveBySentence:function(e,n,r){var i=r.forward?1:-1;return function(e,n,r,i){function o(e,t){if(t.pos+t.dir<0||t.pos+t.dir>=t.line.length){if(t.ln+=t.dir,!k(e,t.ln))return t.line=null,t.ln=null,void(t.pos=null);t.line=e.getLine(t.ln),t.pos=t.dir>0?0:t.line.length-1}else t.pos+=t.dir}function a(e,t,n,r){var i=""===(u=e.getLine(t)),a={line:u,ln:t,pos:n,dir:r},s={ln:a.ln,pos:a.pos},l=""===a.line;for(o(e,a);null!==a.line;){if(s.ln=a.ln,s.pos=a.pos,""===a.line&&!l)return{ln:a.ln,pos:a.pos};if(i&&""!==a.line&&!C(a.line[a.pos]))return{ln:a.ln,pos:a.pos};!T(a.line[a.pos])||i||a.pos!==a.line.length-1&&!C(a.line[a.pos+1])||(i=!0),o(e,a)}var u=e.getLine(s.ln);s.pos=0;for(var c=u.length-1;c>=0;--c)if(!C(u[c])){s.pos=c;break}return s}function s(e,t,n,r){var i={line:e.getLine(t),ln:t,pos:n,dir:r},a={ln:i.ln,pos:null},s=""===i.line;for(o(e,i);null!==i.line;){if(""===i.line&&!s)return null!==a.pos?a:{ln:i.ln,pos:i.pos};if(T(i.line[i.pos])&&null!==a.pos&&(i.ln!==a.ln||i.pos+1!==a.pos))return a;""===i.line||C(i.line[i.pos])||(s=!1,a={ln:i.ln,pos:i.pos}),o(e,i)}var l=e.getLine(a.ln);a.pos=0;for(var u=0;u0;)l=i<0?s(e,l.ln,l.pos,i):a(e,l.ln,l.pos,i),r--;return new t(l.ln,l.pos)}(e,n,r.repeat,i)},moveByScroll:function(e,t,n,r){var i,o=e.getScrollInfo(),a=n.repeat;a||(a=o.clientHeight/(2*e.defaultTextHeight()));var s=e.charCoords(t,"local");if(n.repeat=a,!(i=G.moveByDisplayLines(e,t,n,r)))return null;var l=e.charCoords(i,"local");return e.scrollTo(null,o.top+l.top-s.top),i},moveByWords:function(e,n,r){return function(e,n,r,i,o,a){var s=ne(n),l=[];(i&&!o||!i&&o)&&r++;for(var u=!(i&&o),c=0;c0)d.index=0;else{var m=d.lineText.length;d.index=m>0?m-1:0}d.nextCh=d.lineText.charAt(d.index)}h(d)&&(o.line=u,o.ch=d.index,n--)}return d.nextCh||d.curMoveThrough?new t(u,d.index):o}(e,r.repeat,r.forward,r.selectedCharacter)||n},moveToColumn:function(e,n,r,i){var o=r.repeat;return i.lastHPos=o-1,i.lastHSPos=e.charCoords(n,"div").left,function(e,n){var r=e.getCursor().line;return X(e,new t(r,n-1))}(e,o)},moveToEol:function(e,t,n,r){return Ee(e,t,n,r,!1)},moveToFirstNonWhiteSpaceCharacter:function(e,n){var r=n;return new t(r.line,ve(e.getLine(r.line)))},moveToMatchedSymbol:function(e,n){for(var r,i=n,o=i.line,a=i.ch,s=e.getLine(o);a"===a?/[(){}[\]<>]/:/[(){}[\]]/;return e.findMatchingBracket(new t(o,a),{bracketRegex:u}).to}return i},moveToStartOfLine:function(e,n){return new t(n.line,0)},moveToLineOrEdgeOfDocument:function(e,n,r){var i=r.forward?e.lastLine():e.firstLine();return r.repeatIsExplicit&&(i=r.repeat-e.getOption("firstLineNumber")),new t(i,ve(e.getLine(i)))},moveToStartOfDisplayLine:function(e){return e.execCommand("goLineLeft"),e.getCursor()},moveToEndOfDisplayLine:function(e){e.execCommand("goLineRight");var t=e.getCursor();return"before"==t.sticky&&t.ch--,t},textObjectManipulation:function(n,r,i,o){var a=i.selectedCharacter;"b"==a?a="(":"B"==a&&(a="{");var s,l=!i.textObjectInner;if({"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"}[a])s=function(e,n,r,i){var o,a,s=n,l={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[r],u={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[r],c=e.getLine(s.line).charAt(s.ch)===u?1:0;if(o=e.scanForBracket(new t(s.line,s.ch+c),-1,void 0,{bracketRegex:l}),a=e.scanForBracket(new t(s.line,s.ch+c),1,void 0,{bracketRegex:l}),!o||!a)return{start:s,end:s};if(o=o.pos,a=a.pos,o.line==a.line&&o.ch>a.ch||o.line>a.line){var d=o;o=a,a=d}return i?a.ch+=1:o.ch+=1,{start:o,end:a}}(n,r,a,l);else if({"'":!0,'"':!0,"`":!0}[a])s=function(e,n,r,i){var o,a,s,l,u=ne(n),c=e.getLine(u.line).split(""),d=c.indexOf(r);if(u.ch-1&&!o;s--)c[s]==r&&(o=s+1);else o=u.ch+1;if(o&&!a)for(s=o,l=c.length;s0&&T(c[r.ch])&&(r.ch-=1);var d=Ae(n,r,i.repeat,1,l),f=Ae(n,r,i.repeat,-1,l);C(n.getLine(f.line)[f.ch])&&C(n.getLine(d.line)[d.ch-1])&&(f={line:f.line,ch:f.ch+1}),s={start:f,end:d}}return n.state.vim.visualMode?function(e,n,r){var i,o=e.state.vim.sel,a=o.head,s=o.anchor;return ie(r,n)&&(i=r,r=n,n=i),ie(a,s)?(a=oe(n,a),s=ae(s,r)):(s=oe(n,s),-1==(a=J(a=ae(a,r),0,-1)).ch&&a.line!=e.firstLine()&&(a=new t(a.line-1,le(e,a.line-1)))),[s,a]}(n,s.start,s.end):[s.start,s.end]},repeatLastCharacterSearch:function(e,t,n){var r=M.lastCharacterSearch,i=n.repeat,o=n.forward===r.forward,a=(r.increment?1:0)*(o?-1:1);e.moveH(-a,"char"),n.inclusive=!!o;var s=Se(e,i,o,r.selectedCharacter);return s?(s.ch+=a,s):(e.moveH(a,"char"),t)}};function K(e,t){for(var n=[],r=0;rn.lastLine()&&r.linewise&&!h?n.replaceRange("",p,u):n.replaceRange("",l,u),r.linewise&&(h||(n.setCursor(p),e.commands.newlineAndIndent(n)),l.ch=Number.MAX_VALUE),o=l}M.registerController.pushText(r.registerName,"change",a,r.linewise,i.length>1),Y.enterInsertMode(n,{head:o},n.state.vim)},delete:function(e,n,r){var i,o,a=e.state.vim;if(a.visualBlock){o=e.getSelection();var s=K("",r.length);e.replaceSelections(s),i=oe(r[0].head,r[0].anchor)}else{var l=r[0].anchor,u=r[0].head;n.linewise&&u.line!=e.firstLine()&&l.line==e.lastLine()&&l.line==u.line-1&&(l.line==e.firstLine()?l.ch=0:l=new t(l.line-1,le(e,l.line-1))),o=e.getRange(l,u),e.replaceRange("",l,u),i=l,n.linewise&&(i=G.moveToFirstNonWhiteSpaceCharacter(e,l))}return M.registerController.pushText(n.registerName,"delete",o,n.linewise,a.visualBlock),X(e,i)},indent:function(e,t,n){var r=e.state.vim;if(e.indentMore)for(var i=r.visualMode?t.repeat:1,o=0;ou.top?(l.line+=(s-u.top)/i,l.line=Math.ceil(l.line),e.setCursor(l),u=e.charCoords(l,"local"),e.scrollTo(null,u.top)):e.scrollTo(null,s);else{var c=s+e.getScrollInfo().clientHeight;c=a.anchor.line?J(a.head,0,1):new t(a.anchor.line,0)}else if("inplace"==o){if(i.visualMode)return}else"lastEdit"==o&&(s=Ge(n)||s);n.setOption("disableInput",!1),r&&r.replace?(n.toggleOverwrite(!0),n.setOption("keyMap","vim-replace"),e.signal(n,"vim-mode-change",{mode:"replace"})):(n.toggleOverwrite(!1),n.setOption("keyMap","vim-insert"),e.signal(n,"vim-mode-change",{mode:"insert"})),M.macroModeState.isPlaying||(n.on("change",et),e.on(n.getInputField(),"keydown",it)),i.visualMode&&ge(n),fe(n,s,l)}},toggleVisualMode:function(n,r,i){var o,a=r.repeat,s=n.getCursor();i.visualMode?i.visualLine^r.linewise||i.visualBlock^r.blockwise?(i.visualLine=!!r.linewise,i.visualBlock=!!r.blockwise,e.signal(n,"vim-mode-change",{mode:"visual",subMode:i.visualLine?"linewise":i.visualBlock?"blockwise":""}),he(n)):ge(n):(i.visualMode=!0,i.visualLine=!!r.linewise,i.visualBlock=!!r.blockwise,o=X(n,new t(s.line,s.ch+a-1)),i.sel={anchor:s,head:o},e.signal(n,"vim-mode-change",{mode:"visual",subMode:i.visualLine?"linewise":i.visualBlock?"blockwise":""}),he(n),Ce(n,i,"<",oe(s,o)),Ce(n,i,">",ae(s,o)))},reselectLastSelection:function(t,n,r){var i=r.lastSelection;if(r.visualMode&&pe(t,r),i){var o=i.anchorMark.find(),a=i.headMark.find();if(!o||!a)return;r.sel={anchor:o,head:a},r.visualMode=!0,r.visualLine=i.visualLine,r.visualBlock=i.visualBlock,he(t),Ce(t,r,"<",oe(o,a)),Ce(t,r,">",ae(o,a)),e.signal(t,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""})}},joinLines:function(e,n,r){var i,o;if(r.visualMode){if(i=e.getCursor("anchor"),ie(o=e.getCursor("head"),i)){var a=o;o=i,i=a}o.ch=le(e,o.line)-1}else{var s=Math.max(n.repeat,2);i=e.getCursor(),o=X(e,new t(i.line+s-1,1/0))}for(var l=0,u=i.line;u1&&(p=Array(n.repeat+1).join(p));var h,m,g=o.linewise,v=o.blockwise;if(v){p=p.split("\n"),g&&p.pop();for(var y=0;ye.lastLine()&&e.replaceRange("\n",new t(C,0)),le(e,C)c.length&&(o=c.length),a=new t(l.line,o)}if("\n"==s)i.visualMode||n.replaceRange("",l,a),(e.commands.newlineAndIndentContinueComment||e.commands.newlineAndIndent)(n);else{var d=n.getRange(l,a);if(d=d.replace(/[^\n]/g,s),i.visualBlock){var f=new Array(n.getOption("tabSize")+1).join(" ");d=(d=n.getSelection()).replace(/\t/g,f).replace(/[^\n]/g,s).split("\n"),n.replaceSelections(d)}else n.replaceRange(d,l,a);i.visualMode?(l=ie(u[0].anchor,u[0].head)?u[0].anchor:u[0].head,n.setCursor(l),ge(n,!1)):n.setCursor(J(a,0,-1))}},incrementNumberToken:function(e,n){for(var r,i,o,a,s=e.getCursor(),l=e.getLine(s.line),u=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi;null!==(r=u.exec(l))&&(o=(i=r.index)+r[0].length,!(s.ch"==t.slice(-11)){var n=t.length-11,r=e.slice(0,n),i=t.slice(0,n);return r==i&&e.length>n?"full":0==i.indexOf(r)&&"partial"}return e==t?"full":0==t.indexOf(e)&&"partial"}function te(e,t,n){return function(){for(var r=0;r2&&(t=oe.apply(void 0,Array.prototype.slice.call(arguments,1))),ie(e,t)?e:t}function ae(e,t){return arguments.length>2&&(t=ae.apply(void 0,Array.prototype.slice.call(arguments,1))),ie(e,t)?t:e}function se(e,t,n){var r=ie(e,t),i=ie(t,n);return r&&i}function le(e,t){return e.getLine(t).length}function ue(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function ce(e,n,r){var i=le(e,n),o=new Array(r-i+1).join(" ");e.setCursor(new t(n,i)),e.replaceRange(o,e.getCursor())}function de(e,n){var r=[],i=e.listSelections(),o=ne(e.clipPos(n)),a=!re(n,o),s=function(e,t,n){for(var r=0;rs?u:0,d=i[c].anchor,f=Math.min(d.line,o.line),p=Math.max(d.line,o.line),h=d.ch,m=o.ch,g=i[c].head.ch-h,v=m-h;g>0&&v<=0?(h++,a||m--):g<0&&v>=0?(h--,l||m++):g<0&&-1==v&&(h--,m++);for(var y=f;y<=p;y++){var b={anchor:new t(y,h),head:new t(y,m)};r.push(b)}return e.setSelections(r),n.ch=m,d.ch=h,d}function fe(e,t,n){for(var r=[],i=0;iu&&(o.line=u),o.ch=le(e,o.line)}return{ranges:[{anchor:a,head:o}],primary:0}}if("block"==r){var c=Math.min(a.line,o.line),d=a.ch,f=Math.max(a.line,o.line),p=o.ch;d=s.length)return null;i?u=m[0]:(u=h[0])(s.charAt(l))||(u=h[1]);for(var c=l,d=l;u(s.charAt(c))&&c=0;)d--;if(d++,n){for(var f=c;/\s/.test(s.charAt(c))&&c0;)d--;d||(d=p)}}return{start:new t(a.line,d),end:new t(a.line,c)}}function be(e,t,n){re(t,n)||M.jumpList.add(e,t,n)}function we(e,t){M.lastCharacterSearch.increment=e,M.lastCharacterSearch.forward=t.forward,M.lastCharacterSearch.selectedCharacter=t.selectedCharacter}var _e={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},xe={bracket:{isComplete:function(e){if(e.nextCh===e.symb){if(e.depth++,e.depth>=1)return!0}else e.nextCh===e.reverseSymb&&e.depth--;return!1}},section:{init:function(e){e.curMoveThrough=!0,e.symb=(e.forward?"]":"[")===e.symb?"{":"}"},isComplete:function(e){return 0===e.index&&e.nextCh===e.symb}},comment:{isComplete:function(e){var t="*"===e.lastCh&&"/"===e.nextCh;return e.lastCh=e.nextCh,t}},method:{init:function(e){e.symb="m"===e.symb?"{":"}",e.reverseSymb="{"===e.symb?"}":"{"},isComplete:function(e){return e.nextCh===e.symb}},preprocess:{init:function(e){e.index=0},isComplete:function(e){if("#"===e.nextCh){var t=e.lineText.match(/^#(\w+)/)[1];if("endif"===t){if(e.forward&&0===e.depth)return!0;e.depth++}else if("if"===t){if(!e.forward&&0===e.depth)return!0;e.depth--}if("else"===t&&0===e.depth)return!0}return!1}}};function ke(e,t,n,r,i){var o=t.line,a=t.ch,s=e.getLine(o),l=n?1:-1,u=r?m:h;if(i&&""==s){if(o+=l,s=e.getLine(o),!k(e,o))return null;a=n?0:s.length}for(;;){if(i&&""==s)return{from:0,to:0,line:o};for(var c=l>0?s.length:-1,d=c,f=c;a!=c;){for(var p=!1,g=0;g0?0:s.length}}function Ee(e,n,r,i,o){var a=new t(n.line+r.repeat-1,1/0),s=e.clipPos(a);return s.ch--,o||(i.lastHPos=1/0,i.lastHSPos=e.charCoords(s,"div").left),a}function Se(e,n,r,i){for(var o,a=e.getCursor(),s=a.ch,l=0;l0;)f(c,i)&&r--,c+=i;return new t(c,0)}var p=e.state.vim;if(p.visualLine&&f(s,1,!0)){var h=p.sel.anchor;f(h.line,-1,!0)&&(o&&h.line==s||(s+=1))}var m=d(s);for(c=s;c<=u&&r;c++)f(c,1,!0)&&(o&&d(c)==m||r--);for(a=new t(c,0),c>u&&!m?m=!0:o=!1,c=s;c>l&&(o&&d(c)!=m&&c!=s||!f(c,-1,!0));c--);return{start:new t(c,0),end:a}}function Ae(e,n,r,i,o){function a(e){e.pos+e.dir<0||e.pos+e.dir>=e.line.length?e.line=null:e.pos+=e.dir}function s(e,t,n,r){var i={line:e.getLine(t),ln:t,pos:n,dir:r};if(""===i.line)return{ln:i.ln,pos:i.pos};var s=i.pos;for(a(i);null!==i.line;){if(s=i.pos,T(i.line[i.pos])){if(o){for(a(i);null!==i.line&&C(i.line[i.pos]);)s=i.pos,a(i);return{ln:i.ln,pos:s+1}}return{ln:i.ln,pos:i.pos+1}}a(i)}return{ln:i.ln,pos:s+1}}function l(e,t,n,r){var i=e.getLine(t),s={line:i,ln:t,pos:n,dir:r};if(""===s.line)return{ln:s.ln,pos:s.pos};var l=s.pos;for(a(s);null!==s.line;){if(C(s.line[s.pos])||T(s.line[s.pos])){if(T(s.line[s.pos]))return o&&C(s.line[s.pos+1])?{ln:s.ln,pos:s.pos+1}:{ln:s.ln,pos:l}}else l=s.pos;a(s)}return s.line=i,o&&C(s.line[s.pos])?{ln:s.ln,pos:s.pos}:{ln:s.ln,pos:l}}for(var u={ln:n.line,pos:n.ch};r>0;)u=i<0?l(e,u.ln,u.pos,i):s(e,u.ln,u.pos,i),r--;return new t(u.ln,u.pos)}function Pe(){}function Re(e){var t=e.state.vim;return t.searchState_||(t.searchState_=new Pe)}function De(e,t){var n=Me(e,t)||[];if(!n.length)return[];var r=[];if(0===n[0]){for(var i=0;i=t&&e<=n:e==t}function He(e){var t=e.getScrollInfo(),n=e.coordsChar({left:0,top:6+t.top},"local"),r=t.clientHeight-10+t.top,i=e.coordsChar({left:0,top:r},"local");return{top:n.line,bottom:i.line}}function Ve(e,n,r){if("'"==r||"`"==r)return M.jumpList.find(e,-1)||new t(0,0);if("."==r)return Ge(e);var i=n.marks[r];return i&&i.find()}function Ge(e){for(var t=e.doc.history.done,n=t.length;n--;)if(t[n].changes)return ne(t[n].changes[0].to)}var Ke=function(){this.buildCommandMap_()};Ke.prototype={processCommand:function(e,t,n){var r=this;e.operation((function(){e.curOp.isVimOp=!0,r._processCommand(e,t,n)}))},_processCommand:function(t,n,r){var i=t.state.vim,o=M.registerController.getRegister(":"),a=o.toString();i.visualMode&&ge(t);var s=new e.StringStream(n);o.setText(n);var l,u,c=r||{};c.input=n;try{this.parseInput_(t,s,c)}catch(e){throw Ne(t,e.toString()),e}if(c.commandName){if(l=this.matchCommand_(c.commandName)){if(u=l.name,l.excludeFromCommandHistory&&o.setText(a),this.parseCommandArgs_(s,c,l),"exToKey"==l.type){for(var d=0;d@~])/);return n.commandName=r?r[1]:t.match(/.*/)[0],n},parseLineSpec_:function(e,t){var n=t.match(/^(\d+)/);if(n)return parseInt(n[1],10)-1;switch(t.next()){case".":return this.parseLineSpecOffset_(t,e.getCursor().line);case"$":return this.parseLineSpecOffset_(t,e.lastLine());case"'":var r=t.next(),i=Ve(e,e.state.vim,r);if(!i)throw new Error("Mark not set");return this.parseLineSpecOffset_(t,i.line);case"-":case"+":return t.backUp(1),this.parseLineSpecOffset_(t,e.getCursor().line);default:return void t.backUp(1)}},parseLineSpecOffset_:function(e,t){var n=e.match(/^([+-])?(\d+)/);if(n){var r=parseInt(n[2],10);"-"==n[1]?t-=r:t+=r}return t},parseCommandArgs_:function(e,t,n){if(!e.eol()){t.argString=e.match(/.*/)[0];var r=n.argDelimiter||/\s+/,i=ue(t.argString).split(r);i.length&&i[0]&&(t.args=i)}},matchCommand_:function(e){for(var t=e.length;t>0;t--){var n=e.substring(0,t);if(this.commandMap_[n]){var r=this.commandMap_[n];if(0===r.name.indexOf(e))return r}}return null},buildCommandMap_:function(){this.commandMap_={};for(var e=0;e1)return"Invalid arguments";s=(u?"decimal":c&&"hex")||d&&"octal"}n[2]&&(l=new RegExp(n[2].substr(1,n[2].length-2),o?"i":""))}}();if(u)Ne(n,u+": "+r.argString);else{var c=r.line||n.firstLine(),d=r.lineEnd||r.line||n.lastLine();if(c!=d){var f=new t(c,0),p=new t(d,le(n,d)),h=n.getRange(f,p).split("\n"),m=l||("decimal"==s?/(-?)([\d]+)/:"hex"==s?/(-?)(?:0x)?([0-9a-f]+)/i:"octal"==s?/([0-7]+)/:null),g="decimal"==s?10:"hex"==s?16:"octal"==s?8:null,v=[],y=[];if(s||l)for(var b=0;b=c)return void Ne(t,"Invalid argument: "+n.argString.substring(o));for(var d=0;d<=c-u;d++){var f=String.fromCharCode(u+d);delete r.marks[f]}}else delete r.marks[a]}else Ne(t,"Argument required")}},Ye=new Ke;function Xe(t){var n=t.state.vim,r=M.macroModeState,i=M.registerController.getRegister("."),o=r.isPlaying,a=r.lastInsertModeChanges;o||(t.off("change",et),e.off(t.getInputField(),"keydown",it)),!o&&n.insertModeRepeat>1&&(ot(t,n,n.insertModeRepeat-1,!0),n.lastEditInputState.repeatOverride=n.insertModeRepeat),delete n.insertModeRepeat,n.insertMode=!1,t.setCursor(t.getCursor().line,t.getCursor().ch-1),t.setOption("keyMap","vim"),t.setOption("disableInput",!0),t.toggleOverwrite(!1),i.setText(a.changes.join("")),e.signal(t,"vim-mode-change",{mode:"normal"}),r.isRecording&&function(e){if(!e.isPlaying){var t=e.latestRegister,n=M.registerController.getRegister(t);n&&n.pushInsertModeChanges&&n.pushInsertModeChanges(e.lastInsertModeChanges)}}(r)}function Qe(e){r.unshift(e)}function Je(e,t,n,r){var i=M.registerController.getRegister(r);if(":"==r)return i.keyBuffer[0]&&Ye.processCommand(e,i.keyBuffer[0]),void(n.isPlaying=!1);var o=i.keyBuffer,a=0;n.isPlaying=!0,n.replaySearchQueries=i.searchQueries.slice(0);for(var s=0;s|<\w+>|./.exec(c))[0],c=c.substring(l.index+u.length),z.handleKey(e,u,"macro"),t.insertMode){var d=i.insertModeChanges[a++].changes;M.macroModeState.lastInsertModeChanges.changes=d,at(e,d,1),Xe(e)}n.isPlaying=!1}function et(e,t){var n=M.macroModeState,r=n.lastInsertModeChanges;if(!n.isPlaying)for(;t;){if(r.expectCursorActivityForChange=!0,r.ignoreCount>1)r.ignoreCount--;else if("+input"==t.origin||"paste"==t.origin||void 0===t.origin){var i=e.listSelections().length;i>1&&(r.ignoreCount=i);var o=t.text.join("\n");r.maybeReset&&(r.changes=[],r.maybeReset=!1),o&&(e.state.overwrite&&!/\n/.test(o)?r.changes.push([o]):r.changes.push(o))}t=t.next}}function tt(e){var t=e.state.vim;if(t.insertMode){var n=M.macroModeState;if(n.isPlaying)return;var r=n.lastInsertModeChanges;r.expectCursorActivityForChange?r.expectCursorActivityForChange=!1:r.maybeReset=!0}else e.curOp.isVimOp||nt(e,t)}function nt(t,n){var r=t.getCursor("anchor"),i=t.getCursor("head");if(n.visualMode&&!t.somethingSelected()?ge(t,!1):n.visualMode||n.insertMode||!t.somethingSelected()||(n.visualMode=!0,n.visualLine=!1,e.signal(t,"vim-mode-change",{mode:"visual"})),n.visualMode){var o=ie(i,r)?0:-1,a=ie(i,r)?-1:0;i=J(i,0,o),r=J(r,0,a),n.sel={anchor:r,head:i},Ce(t,n,"<",oe(i,r)),Ce(t,n,">",ae(i,r))}else n.insertMode||(n.lastHPos=t.getCursor().ch)}function rt(e){this.keyName=e}function it(t){var n=M.macroModeState.lastInsertModeChanges,r=e.keyName(t);r&&(-1==r.indexOf("Delete")&&-1==r.indexOf("Backspace")||e.lookupKey(r,"vim-insert",(function(){return n.maybeReset&&(n.changes=[],n.maybeReset=!1),n.changes.push(new rt(r)),!0})))}function ot(e,t,n,r){var i=M.macroModeState;i.isPlaying=!0;var o=!!t.lastEditActionCommand,a=t.inputState;function s(){o?V.processAction(e,t,t.lastEditActionCommand):V.evalInput(e,t)}function l(n){if(i.lastInsertModeChanges.changes.length>0){n=t.lastEditActionCommand?n:1;var r=i.lastInsertModeChanges;at(e,r.changes,n)}}if(t.inputState=t.lastEditInputState,o&&t.lastEditActionCommand.interlaceInsertRepeat)for(var u=0;u2),v=/Android/.test(e),y=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=g||/Mac/.test(t),w=/\bCrOS\b/.test(e),_=/win/i.test(t),x=f&&e.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(f=!1,l=!0);var k=b&&(u||f&&(null==x||x<12.11)),E=n||a&&s>=9;function S(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var C,T=function(e,t){var n=e.className,r=S(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function O(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function A(e,t){return O(e).appendChild(t)}function P(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}g?j=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(j=function(e){try{e.select()}catch(e){}});var q=function(){this.id=null,this.f=null,this.time=0,this.handler=B(this.onTimeout,this)};function W(e,t){for(var n=0;n=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var Y=[""];function X(e){for(;Y.length<=e;)Y.push(Q(Y)+" ");return Y[e]}function Q(e){return e[e.length-1]}function J(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||ne.test(e))}function ie(e,t){return t?!!(t.source.indexOf("\\w")>-1&&re(e))||t.test(e):re(e)}function oe(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ae=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function se(e){return e.charCodeAt(0)>=768&&ae.test(e)}function le(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}var ce=null;function de(e,t,n){var r;ce=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ce=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ce=i)}return null!=r?r:ce}var fe=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function o(e,t,n){this.level=e,this.from=t,this.to=n}return function(a,s){var l,u="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!e.test(a))return!1;for(var c=a.length,d=[],f=0;f-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function ye(e,t){var n=ge(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function xe(e){e.prototype.on=function(e,t){me(this,e,t)},e.prototype.off=function(e,t){ve(this,e,t)}}function ke(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ee(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Se(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ce(e){ke(e),Ee(e)}function Te(e){return e.target||e.srcElement}function Oe(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var Ae,Pe,Re=function(){if(a&&s<9)return!1;var e=P("div");return"draggable"in e||"dragDrop"in e}();function De(e){if(null==Ae){var t=P("span","​");A(e,P("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ae=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Ae?P("span","​"):P("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Me(e){if(null!=Pe)return Pe;var t=A(e,document.createTextNode("AخA")),n=C(t,0,1).getBoundingClientRect(),r=C(t,1,2).getBoundingClientRect();return O(e),!(!n||n.left==n.right)&&(Pe=r.right-n.right<3)}var Ie,Le=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},je=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ne="oncopy"in(Ie=P("div"))||(Ie.setAttribute("oncopy","return;"),"function"==typeof Ie.oncopy),Fe=null,Be={},ze={};function Ue(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Be[e]=t}function qe(e){if("string"==typeof e&&ze.hasOwnProperty(e))e=ze[e];else if(e&&"string"==typeof e.name&&ze.hasOwnProperty(e.name)){var t=ze[e.name];"string"==typeof t&&(t={name:t}),(e=te(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return qe("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return qe("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function We(e,t){t=qe(t);var n=Be[t.name];if(!n)return We(e,"text/plain");var r=n(e,t);if($e.hasOwnProperty(t.name)){var i=$e[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var $e={};function He(e,t){z(t,$e.hasOwnProperty(e)?$e[e]:$e[e]={})}function Ve(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ge(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ke(e,t,n){return!e.startState||e.startState(t,n)}var Ze=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Ye(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?it(n,Ye(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?it(e.line,t):n<0?it(e.line,0):e}(t,Ye(e,t.line).text.length)}function ft(e,t){for(var n=[],r=0;r=this.string.length},Ze.prototype.sol=function(){return this.pos==this.lineStart},Ze.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ze.prototype.next=function(){if(this.post},Ze.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ze.prototype.skipToEnd=function(){this.pos=this.string.length},Ze.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ze.prototype.backUp=function(e){this.pos-=e},Ze.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Ze.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ze.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ze.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ze.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var pt=function(e,t){this.state=e,this.lookAhead=t},ht=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function mt(e,t,n,r){var i=[e.state.modeGen],o={};Et(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,u=0;n.state=!0,Et(e,t.text,s.mode,n,(function(e,t){for(var n=l;ue&&i.splice(l,1,e,i[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;ne.options.maxHighlightLength&&Ve(e.doc.mode,r.state),o=mt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function vt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new ht(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=Ye(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof pt?u.lookAhead:0)<=o.modeFrontier))return s;var c=U(l.text,null,e.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}(e,t,n),a=o>r.first&&Ye(r,o-1).stateAfter,s=a?ht.fromSaved(r,a,o):new ht(r,Ke(r.mode),o);return r.iter(o,t,(function(n){yt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&rt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}ht.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ht.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ht.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ht.fromSaved=function(e,t,n){return t instanceof pt?new ht(e,Ve(e.mode,t.state),n,t.lookAhead):new ht(e,Ve(e.mode,t),n)},ht.prototype.save=function(e){var t=!1!==e?Ve(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new pt(t,this.maxLookAhead):t};var _t=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function xt(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=Ye(a,(t=dt(a,t)).line),u=vt(e,t.line,n),c=new Ze(l.text,e.options.tabSize,u);for(r&&(o=[]);(r||c.pose.options.maxHighlightLength?(s=!1,a&&yt(e,t,r,d.pos),d.pos=t.length,l=null):l=kt(wt(n,d,r.state,f),o),f){var p=f[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!s||c!=l){for(;u=t:o.to>t);(r||(r=[])).push(new Tt(a,o.from,s?null:o.to))}}return r}(n,i,a),l=function(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(var b=0;bt)&&(!n||jt(n,o.marker)<0)&&(n=o.marker)}return n}function Ut(e,t,n,r,i){var o=Ye(e,t),a=Ct&&o.markedSpans;if(a)for(var s=0;s=0&&d<=0||c<=0&&d>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ot(u.to,n)>=0:ot(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ot(u.from,r)<=0:ot(u.from,r)<0)))return!0}}}function qt(e){for(var t;t=Ft(e);)e=t.find(-1,!0).line;return e}function Wt(e,t){var n=Ye(e,t),r=qt(n);return n==r?t:et(r)}function $t(e,t){if(t>e.lastLine())return t;var n,r=Ye(e,t);if(!Ht(e,r))return t;for(;n=Bt(r);)r=n.find(1,!0).line;return et(r)+1}function Ht(e,t){var n=Ct&&t.markedSpans;if(n)for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var Yt=function(e,t,n){this.text=e,Mt(this,t),this.height=n?n(this):1};function Xt(e){e.parent=null,Dt(e)}Yt.prototype.lineNo=function(){return et(this)},xe(Yt);var Qt={},Jt={};function en(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Jt:Qt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function tn(e,t){var n=R("span",null,null,l?"padding-right: .1px":null),r={pre:R("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=rn,Me(e.display.measure)&&(a=pe(o,e.doc.direction))&&(r.addToken=on(r.addToken,a)),r.map=[],sn(o,r,gt(e,o,t!=e.display.externalMeasured&&et(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=L(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=L(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(De(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ye(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=L(r.pre.className,r.textClass||"")),r}function nn(e){var t=P("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function rn(e,t,n,r,i,o,l){if(t){var u,c=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;iu&&d.from<=u);f++);if(d.to>=c)return e(n,r,i,o,a,s,l);e(n,r.slice(0,d.to-u),i,o,null,s,l),o=null,r=r.slice(d.to-u),u=d.to}}}function an(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function sn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,u,c,d,f,p=i.length,h=0,m=1,g="",v=0;;){if(v==h){l=u=c=s="",f=null,d=null,v=1/0;for(var y=[],b=void 0,w=0;wh||x.collapsed&&_.to==h&&_.from==h)){if(null!=_.to&&_.to!=h&&v>_.to&&(v=_.to,u=""),x.className&&(l+=" "+x.className),x.css&&(s=(s?s+";":"")+x.css),x.startStyle&&_.from==h&&(c+=" "+x.startStyle),x.endStyle&&_.to==v&&(b||(b=[])).push(x.endStyle,_.to),x.title&&((f||(f={})).title=x.title),x.attributes)for(var k in x.attributes)(f||(f={}))[k]=x.attributes[k];x.collapsed&&(!d||jt(d.marker,x)<0)&&(d=_)}else _.from>h&&v>_.from&&(v=_.from)}if(b)for(var E=0;E=p)break;for(var C=Math.min(p,v);;){if(g){var T=h+g.length;if(!d){var O=T>C?g.slice(0,C-h):g;t.addToken(t,O,a?a+l:l,c,h+O.length==v?u:"",s,f)}if(T>=C){g=g.slice(C-h),h=C;break}h=T,c=""}g=i.slice(o,o=n[m++]),a=en(n[m++],t.cm.options)}}else for(var A=1;An)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function In(e,t,n,r){return Nn(e,jn(e,t),n,r)}function Ln(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&t2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=zn(t.map,n,r),l=o.node,u=o.start,c=o.end,d=o.collapse;if(3==l.nodeType){for(var f=0;f<4;f++){for(;u&&se(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var p;u>0&&(d=r="right"),i=e.options.lineWrapping&&(p=l.getClientRects()).length>1?p["right"==r?p.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!u&&(!i||!i.left&&!i.right)){var h=l.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+lr(e.display),top:h.top,bottom:h.bottom}:Bn}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,b=0;bt)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[u+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],a="left";if("right"==n&&i==l-s)for(;u=0&&(n=e[i]).left==n.right;i--);return n}function qn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t=r.text.length?(l=r.text.length,u="before"):l<=0&&(l=0,u="after"),!s)return a("before"==u?l-1:l,"before"==u);function c(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var d=de(s,l,u),f=ce,p=c(l,d,"before"==u);return null!=f&&(p.other=c(l,f,"before"!=u)),p}function Qn(e,t){var n=0;t=dt(e.doc,t),e.options.lineWrapping||(n=lr(e.display)*t.ch);var r=Ye(e.doc,t.line),i=Gt(r)+Tn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Jn(e,t,n,r,i){var o=it(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function er(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Jn(r.first,0,null,-1,-1);var i=tt(r,n),o=r.first+r.size-1;if(i>o)return Jn(r.first+r.size-1,Ye(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Ye(r,i);;){var s=ir(e,a,i,t,n),l=zt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==i)return u;a=Ye(r,i=u.line)}}function tr(e,t,n,r){r-=Gn(t);var i=t.text.length,o=ue((function(t){return Nn(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=ue((function(t){return Nn(e,n,t).top>r}),o,i)}}function nr(e,t,n,r){return n||(n=jn(e,t)),tr(e,t,n,Kn(e,t,Nn(e,n,r),"line").top)}function rr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function ir(e,t,n,r,i){i-=Gt(t);var o=jn(e,t),a=Gn(t),s=0,l=t.text.length,u=!0,c=pe(t,e.doc.direction);if(c){var d=(e.options.lineWrapping?ar:or)(e,t,n,o,c,r,i);s=(u=1!=d.level)?d.from:d.to-1,l=u?d.to:d.from-1}var f,p,h=null,m=null,g=ue((function(t){var n=Nn(e,o,t);return n.top+=a,n.bottom+=a,!!rr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)}),s,l),v=!1;if(m){var y=r-m.left=w.bottom?1:0}return Jn(n,g=le(t.text,g,1),p,v,r-f)}function or(e,t,n,r,i,o,a){var s=ue((function(s){var l=i[s],u=1!=l.level;return rr(Xn(e,it(n,u?l.to:l.from,u?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var u=1!=l.level,c=Xn(e,it(n,u?l.from:l.to,u?"after":"before"),"line",t,r);rr(c,o,a,!0)&&c.top>a&&(l=i[s-1])}return l}function ar(e,t,n,r,i,o,a){var s=tr(e,t,r,a),l=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,d=null,f=0;f=u||p.to<=l)){var h=Nn(e,r,1!=p.level?Math.min(u,p.to)-1:Math.max(l,p.from)).right,m=hm)&&(c=p,d=m)}}return c||(c=i[i.length-1]),c.fromu&&(c={from:c.from,to:u,level:c.level}),c}function sr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Fn){Fn=P("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Fn.appendChild(document.createTextNode("x")),Fn.appendChild(P("br"));Fn.appendChild(document.createTextNode("x"))}A(e.measure,Fn);var n=Fn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),O(e.measure),n||1}function lr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=P("span","xxxxxxxxxx"),n=P("pre",[t],"CodeMirror-line-like");A(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function ur(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:cr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function cr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function dr(e){var t=sr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/lr(e.display)-3);return function(i){if(Ht(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a0&&(l=Ye(e.doc,u.line).text).length==u.ch){var c=U(l,l.length,e.options.tabSize)-l.length;u=it(u.line,Math.max(0,Math.round((o-An(e.display).left)/lr(e.display))-c))}return u}function hr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Ct&&Wt(e.doc,t)i.viewFrom?vr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)vr(e);else if(t<=i.viewFrom){var o=yr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):vr(e)}else if(n>=i.viewTo){var a=yr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):vr(e)}else{var s=yr(e,t,t,-1),l=yr(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(un(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):vr(e)}var u=i.externalMeasured;u&&(n=i.lineN&&t=r.viewTo)){var o=r.view[hr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==W(a,n)&&a.push(n)}}}function vr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function yr(e,t,n,r){var i,o=hr(e,t),a=e.display.view;if(!Ct||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;Wt(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function br(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||l.to().line0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(P("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function kr(e,t){return e.top-t.top||e.left-t.left}function Er(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=An(e.display),s=a.left,l=Math.max(r.sizerWidth,Rn(e)-r.sizer.offsetLeft)-a.right,u="ltr"==i.direction;function c(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(P("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n height: "+(r-t)+"px"))}function d(t,n,r){var o,a,d=Ye(i,t),f=d.text.length;function p(n,r){return Yn(e,it(t,n),"div",d,r)}function h(t,n,r){var i=nr(e,d,null,t),o="ltr"==n==("after"==r)?"left":"right";return p("after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1),o)[o]}var m=pe(d,i.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(m,n||0,null==r?f:r,(function(e,t,i,d){var g="ltr"==i,v=p(e,g?"left":"right"),y=p(t-1,g?"right":"left"),b=null==n&&0==e,w=null==r&&t==f,_=0==d,x=!m||d==m.length-1;if(y.top-v.top<=3){var k=(u?w:b)&&x,E=(u?b:w)&&_?s:(g?v:y).left,S=k?l:(g?y:v).right;c(E,v.top,S-E,v.bottom)}else{var C,T,O,A;g?(C=u&&b&&_?s:v.left,T=u?l:h(e,i,"before"),O=u?s:h(t,i,"after"),A=u&&w&&x?l:y.right):(C=u?h(e,i,"before"):s,T=!u&&b&&_?l:v.right,O=!u&&w&&x?s:y.left,A=u?h(t,i,"after"):l),c(C,v.top,T-C,v.bottom),v.bottom0?t.blinker=setInterval((function(){e.hasFocus()||Ar(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Cr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Or(e))}function Tr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Ar(e))}),100)}function Or(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ye(e,"focus",e,t),e.state.focused=!0,I(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Sr(e))}function Ar(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ye(e,"blur",e,t),e.state.focused=!1,T(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Pr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l.005||m<-.005)&&(ie.display.sizerWidth){var v=Math.ceil(f/lr(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function Rr(e){if(e.widgets)for(var t=0;t=a&&(o=tt(t,Gt(Ye(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function Mr(e,t){var n=e.display,r=sr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Dn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+On(n),l=t.tops-r;if(t.topi+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(a.scrollTop=c)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,p=Rn(e)-n.gutters.offsetWidth,h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.leftp+f-3&&(a.scrollLeft=t.right+(h?0:10)-p),a}function Ir(e,t){null!=t&&(Nr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Lr(e){Nr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function jr(e,t,n){null==t&&null==n||Nr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Nr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Fr(e,Qn(e,t.from),Qn(e,t.to),t.margin))}function Fr(e,t,n,r){var i=Mr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});jr(e,i.scrollLeft,i.scrollTop)}function Br(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||fi(e,{top:t}),zr(e,t,!0),n&&fi(e),si(e,100))}function zr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Ur(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,mi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function qr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+On(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Pn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Wr=function(e,t,n){this.cm=n;var r=this.vert=P("div",[P("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=P("div",[P("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),me(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),me(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Wr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Wr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Wr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Wr.prototype.zeroWidthHack=function(){var e=b&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new q,this.disableVert=new q},Wr.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility="",t.set(1e3,(function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,r)}))},Wr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var $r=function(){};function Hr(e,t){t||(t=qr(e));var n=e.display.barWidth,r=e.display.barHeight;Vr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Pr(e),Vr(e,qr(e)),n=e.display.barWidth,r=e.display.barHeight}function Vr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}$r.prototype.update=function(){return{bottom:0,right:0}},$r.prototype.setScrollLeft=function(){},$r.prototype.setScrollTop=function(){},$r.prototype.clear=function(){};var Gr={native:Wr,null:$r};function Kr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&T(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Gr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),me(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?Ur(e,t):Br(e,t)}),e),e.display.scrollbars.addClass&&I(e.display.wrapper,e.display.scrollbars.addClass)}var Zr=0;function Yr(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Zr,markArrays:null},t=e.curOp,cn?cn.ops.push(t):t.ownsGroup=cn={ops:[t],delayedCallbacks:[]}}function Xr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ui(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Jr(e){e.updatedDisplay=e.mustUpdate&&ci(e.cm,e.update)}function ei(e){var t=e.cm,n=t.display;e.updatedDisplay&&Pr(t),e.barMeasure=qr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=In(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Pn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Rn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function ti(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!m){var a=P("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Tn(e.display))+"px;\n height: "+(t.bottom-t.top+Pn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?it(t.line,t.ch+1,"before"):t,t=t.ch?it(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=Xn(e,t),l=n&&n!=t?Xn(e,n):s,u=Mr(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),c=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=u.scrollTop&&(Br(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(Ur(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}(t,dt(r,e.scrollToPos.from),dt(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a=e.display.viewTo)){var n=+new Date+e.options.workTime,r=vt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Ve(t.mode,r.state):null,l=mt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),f=0;!d&&fn)return si(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&ri(e,(function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==br(e))return!1;gi(e)&&(vr(e),t.dims=ur(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Ct&&(o=Wt(e.doc,o),a=$t(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;(function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=un(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=un(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,hr(e,n)))),r.viewTo=n})(e,o,a),n.viewOffset=Gt(Ye(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var u=br(e);if(!s&&0==u&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=function(e){if(e.hasFocus())return null;var t=M(N(e));if(!t||!D(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=F(e).getSelection();r.anchorNode&&r.extend&&D(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return u>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=r.view,c=r.viewFrom,d=0;d-1&&(p=!1),hn(e,f,c,n)),p&&(O(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(rt(e.options,c)))),a=f.node.nextSibling}else{var h=_n(e,f,c,n);o.insertBefore(h,a)}c+=f.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=M(e.activeElt.ownerDocument)&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&D(document.body,e.anchorNode)&&D(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,n=t.defaultView.getSelection(),r=t.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),n.removeAllRanges(),n.addRange(r),n.extend(e.focusNode,e.focusOffset)}}(c),O(n.cursorDiv),O(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,si(e,400)),n.updateLineNumbers=null,!0}function di(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Rn(e))r&&(t.visible=Dr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+On(e.display)-Dn(e),n.top)}),t.visible=Dr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!ci(e,t))break;Pr(e);var i=qr(e);wr(e),Hr(e,i),hi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function fi(e,t){var n=new ui(e,t);if(ci(e,n)){Pr(e),di(e,n);var r=qr(e);wr(e),Hr(e,r),hi(e,r),n.finish()}}function pi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",fn(e,"gutterChanged",e)}function hi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Pn(e)+"px"}function mi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=cr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a=105&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=vi(i.gutters,i.lineNumbers),yi(o),r.init(o)}ui.prototype.signal=function(e,t){_e(e,t)&&this.events.push(arguments)},ui.prototype.finish=function(){for(var e=0;eu.clientWidth,h=u.scrollHeight>u.clientHeight;if(i&&p||o&&h){if(o&&b&&l)e:for(var m=t.target,g=s.view;m!=u;m=m.parentNode)for(var v=0;v=0&&ot(e,r.to())<=0)return n}return-1};var Ti=function(e,t){this.anchor=e,this.head=t};function Oi(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return ot(e.from(),t.from())})),n=W(t,i);for(var o=1;o0:l>=0){var u=ut(s.from(),a.from()),c=lt(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new Ti(d?c:u,d?u:c))}}return new Ci(t,n)}function Ai(e,t){return new Ci([new Ti(e,t||e)],0)}function Pi(e){return e.text?it(e.from.line+e.text.length-1,Q(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Ri(e,t){if(ot(e,t.from)<0)return e;if(ot(e,t.to)<=0)return Pi(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Pi(t).ch-t.to.ch),it(n,r)}function Di(e,t){for(var n=[],r=0;r1&&e.remove(s.line+1,h-1),e.insert(s.line+1,v)}fn(e,"change",e,t)}function Fi(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;as-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Wi(e.done),Q(e.done)):e.done.length&&!Q(e.done).ranges?Q(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Q(e.done)):void 0}(i,i.lastOp==r)))a=Q(o.changes),0==ot(t.from,t.to)&&0==ot(t.from,a.to)?a.to=Pi(t):o.changes.push(qi(e,t));else{var l=Q(i.done);for(l&&l.ranges||Hi(e.sel,i.done),o={changes:[qi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||ye(e,"historyAdded")}function Hi(e,t){var n=Q(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Vi(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Gi(e){if(!e)return null;for(var t,n=0;n-1&&(Q(s)[d]=u[d],delete u[d])}}}return r}function Yi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ot(t,i)<0;o!=ot(n,i)<0?(i=t,t=n):o!=ot(t,n)<0&&(t=n)}return new Ti(i,t)}return new Ti(n||t,t)}function Xi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),no(e,new Ci([Yi(e.sel.primary(),t,n,i)],0),r)}function Qi(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:s.to>t.ch))){if(i&&(ye(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),f=void 0;if((r<0?c:u)&&(d=uo(e,d,-r,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(f=ot(d,n))&&(r<0?f<0:f>0))return so(e,d,t,r,i)}var p=l.find(r<0?-1:1);return(r<0?u:c)&&(p=uo(e,p,r,p.line==t.line?o:null)),p?so(e,p,t,r,i):null}}return t}function lo(e,t,n,r,i){var o=r||1;return so(e,t,n,o,i)||!i&&so(e,t,n,o,!0)||so(e,t,n,-o,i)||!i&&so(e,t,n,-o,!0)||(e.cantEdit=!0,it(e.first,0))}function uo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?dt(e,it(t.line-1)):null:n>0&&t.ch==(r||Ye(e,t.line)).text.length?t.line0)){var c=[l,1],d=ot(u.from,s.from),f=ot(u.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&c.push({from:u.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)ho(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else ho(e,t)}}function ho(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ot(t.from,t.to)){var n=Di(e,t);$i(e,t,n,e.cm?e.cm.curOp.id:NaN),vo(e,t,n,Pt(e,t));var r=[];Fi(e,(function(e,n){n||-1!=W(r,e.history)||(_o(e.history,t),r.push(e.history)),vo(e,t,null,Pt(e,t))}))}}function mo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,u=0;u=0;--p){var h=f(p);if(h)return h.v}}}}function go(e,t){if(0!=t&&(e.first+=t,e.sel=new Ci(J(e.sel.ranges,(function(e){return new Ti(it(e.anchor.line+t,e.anchor.ch),it(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){mr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:it(o,Ye(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Xe(e,t.from,t.to),n||(n=Di(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=et(qt(Ye(r,o.line))),r.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&we(e),Ni(r,t,n,dr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=Kt(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=Ye(e,r).stateAfter;if(i&&(!(i instanceof pt)||r+i.lookAhead1||!(this.children[0]instanceof ko))){var s=[];this.collapse(s),this.children=[new ko(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=R("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Ut(e,t.line,t,n,o)||t.line!=n.line&&Ut(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ct=!0}o.addToHistory&&$i(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,(function(r){u&&o.collapsed&&!u.options.lineWrapping&&qt(r)==u.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&Je(r,0),function(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}(r,new Tt(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){Ht(e,t)&&Je(t,0)})),o.clearOnEnter&&me(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(St=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++To,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)mr(u,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)gr(u,c,"text");o.atomic&&oo(u.doc),fn(u,"markerAdded",u,o)}return o}Oo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Yr(e),_e(this,"clear")){var n=this.find();n&&fn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&mr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&oo(e.doc)),e&&fn(e,"markerCleared",e,this,r,i),t&&Xr(e),this.parent&&this.parent.clear()}},Oo.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;l--)po(this,r[l]);s?to(this,s):this.cm&&Lr(this.cm)})),undo:ai((function(){mo(this,"undo")})),redo:ai((function(){mo(this,"redo")})),undoSelection:ai((function(){mo(this,"undo",!0)})),redoSelection:ai((function(){mo(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=dt(this,e),t=dt(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n})),dt(this,it(n,t))},indexFromPos:function(e){var t=(e=dt(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var d=e.dataTransfer.getData("Text");if(d){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),ro(t.doc,Ai(n,n)),f)for(var p=0;p=0;t--)yo(e.doc,"",r[t].from,r[t].to,"+delete");Lr(e)}))}function ea(e,t,n){var r=le(e.text,t+n,n);return r<0||r>e.text.length?null:r}function ta(e,t,n){var r=ea(e,t.ch,n);return null==r?null:new it(t.line,r,n<0?"after":"before")}function na(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=pe(n,t.doc.direction);if(o){var a,s=i<0?Q(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=jn(t,n);a=i<0?n.text.length-1:0;var c=Nn(t,u,a).top;a=ue((function(e){return Nn(t,u,e).top==c}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=ea(n,a,1))}else a=i<0?s.to:s.from;return new it(r,a,l)}}return new it(r,i<0?n.text.length:0,i<0?"before":"after")}Ho.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ho.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ho.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ho.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ho.default=b?Ho.macDefault:Ho.pcDefault;var ra={selectAll:co,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),V)},killLine:function(e){return Jo(e,(function(t){if(t.empty()){var n=Ye(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new it(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),it(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Ye(e.doc,i.line-1).text;a&&(i=new it(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),it(i.line-1,a.length-1),i,"+transpose"))}n.push(new Ti(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return ri(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(ot((i=u.ranges[i]).from(),t)<0||t.xRel>0)&&(ot(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,u=ii(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Tr(e)),ve(i.wrapper.ownerDocument,"mouseup",u),ve(i.wrapper.ownerDocument,"mousemove",c),ve(i.scroller,"dragstart",d),ve(i.scroller,"drop",u),o||(ke(t),r.addNew||Xi(e.doc,n,null,null,r.extend),l&&!p||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=u,u.copy=!r.moveOnDrag,me(i.wrapper.ownerDocument,"mouseup",u),me(i.wrapper.ownerDocument,"mousemove",c),me(i.scroller,"dragstart",d),me(i.scroller,"drop",u),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}(e,r,t,o):function(e,t,n,r){a&&Tr(e);var i=e.display,o=e.doc;ke(t);var s,l,u=o.sel,c=u.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),s=l>-1?c[l]:new Ti(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new Ti(n,n)),n=pr(e,t,!0,!0),l=-1;else{var d=ba(e,n,r.unit);s=r.extend?Yi(s,d.anchor,d.head,r.extend):d}r.addNew?-1==l?(l=c.length,no(o,Oi(e,c.concat([s]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&"char"==r.unit&&!r.extend?(no(o,Oi(e,c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):Ji(o,l,s,G):(l=0,no(o,new Ci([s],0),G),u=o.sel);var f=n;function p(t){if(0!=ot(f,t))if(f=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,c=U(Ye(o,n.line).text,n.ch,a),d=U(Ye(o,t.line).text,t.ch,a),p=Math.min(c,d),h=Math.max(c,d),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=Ye(o,m).text,y=Z(v,p,a);p==h?i.push(new Ti(it(m,y),it(m,y))):v.length>y&&i.push(new Ti(it(m,y),it(m,Z(v,h,a))))}i.length||i.push(new Ti(n,n)),no(o,Oi(e,u.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,w=s,_=ba(e,t,r.unit),x=w.anchor;ot(_.anchor,x)>0?(b=_.head,x=ut(w.from(),_.anchor)):(b=_.anchor,x=lt(w.to(),_.head));var k=u.ranges.slice(0);k[l]=function(e,t){var n=t.anchor,r=t.head,i=Ye(e.doc,n.line);if(0==ot(n,r)&&n.sticky==r.sticky)return t;var o=pe(i);if(!o)return t;var a=de(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=de(o,r.ch,r.sticky),d=c-a||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?d<0:d>0}var f=o[u+(l?-1:0)],p=l==(1==f.level),h=p?f.from:f.to,m=p?"after":"before";return n.ch==h&&n.sticky==m?t:new Ti(new it(n.line,h,m),r)}(e,new Ti(dt(o,x),b)),no(o,Oi(e,k,l),G)}}var h=i.wrapper.getBoundingClientRect(),m=0;function g(t){var n=++m,a=pr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=ot(a,f)){e.curOp.focus=M(N(e)),p(a);var s=Dr(i,o);(a.line>=s.to||a.lineh.bottom?20:0;l&&setTimeout(ii(e,(function(){m==n&&(i.scroller.scrollTop+=l,g(t))})),50)}}function v(t){e.state.selectingText=!1,m=1/0,t&&(ke(t),i.input.focus()),ve(i.wrapper.ownerDocument,"mousemove",y),ve(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var y=ii(e,(function(e){0!==e.buttons&&Oe(e)?g(e):v(e)})),b=ii(e,v);e.state.selectingText=b,me(i.wrapper.ownerDocument,"mousemove",y),me(i.wrapper.ownerDocument,"mouseup",b)}(e,r,t,o)}(t,r,o,e):Te(e)==n.scroller&&ke(e):2==i?(r&&Xi(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(E?t.display.input.onContextMenu(e):Tr(t)))}}function ba(e,t,n){if("char"==n)return new Ti(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new Ti(it(t.line,0),dt(e.doc,it(t.line+1,0)));var r=n(e,t);return new Ti(r.from,r.to)}function wa(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&ke(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!_e(e,n))return Se(t);o-=s.top-a.viewOffset;for(var l=0;l=i)return ye(e,n,e,tt(e.doc,o),e.display.gutterSpecs[l].className,t),Se(t)}}function _a(e,t){return wa(e,t,"gutterClick",!0)}function xa(e,t){Cn(e.display,t)||function(e,t){return!!_e(e,"gutterContextMenu")&&wa(e,t,"gutterContextMenu",!1)}(e,t)||be(e,t,"contextmenu")||E||e.display.input.onContextMenu(t)}function ka(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),$n(e)}va.prototype.compare=function(e,t,n){return this.time+400>e&&0==ot(t,this.pos)&&n==this.button};var Ea={toString:function(){return"CodeMirror.Init"}},Sa={},Ca={};function Ta(e,t,n){if(!t!=!(n&&n!=Ea)){var r=e.display.dragFunctions,i=t?me:ve;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Oa(e){e.options.lineWrapping?(I(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(T(e.display.wrapper,"CodeMirror-wrap"),Zt(e)),fr(e),mr(e),$n(e),setTimeout((function(){return Hr(e)}),100)}function Aa(e,t){var n=this;if(!(this instanceof Aa))return new Aa(e,t);this.options=t=t?z(t):{},z(Sa,t,!1);var r=t.value;"string"==typeof r?r=new Io(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Aa.inputStyles[t.inputStyle](this),o=this.display=new wi(e,r,i,t);for(var u in o.wrapper.CodeMirror=this,ka(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Kr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new q,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(e){var t=e.display;me(t.scroller,"mousedown",ii(e,ya)),me(t.scroller,"dblclick",a&&s<11?ii(e,(function(t){if(!be(e,t)){var n=pr(e,t);if(n&&!_a(e,t)&&!Cn(e.display,t)){ke(t);var r=e.findWordAt(n);Xi(e.doc,r.anchor,r.head)}}})):function(t){return be(e,t)||ke(t)}),me(t.scroller,"contextmenu",(function(t){return xa(e,t)})),me(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||xa(e,n)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function o(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}me(t.scroller,"touchstart",(function(i){if(!be(e,i)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(i)&&!_a(e,i)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),me(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),me(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Cn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,s=e.coordsChar(t.activeTouch,"page");a=!r.prev||o(r,r.prev)?new Ti(s,s):!r.prev.prev||o(r,r.prev.prev)?e.findWordAt(s):new Ti(it(s.line,0),dt(e.doc,it(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),ke(n)}i()})),me(t.scroller,"touchcancel",i),me(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(Br(e,t.scroller.scrollTop),Ur(e,t.scroller.scrollLeft,!0),ye(e,"scroll",e))})),me(t.scroller,"mousewheel",(function(t){return Si(e,t)})),me(t.scroller,"DOMMouseScroll",(function(t){return Si(e,t)})),me(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){be(e,t)||Ce(t)},over:function(t){be(e,t)||(function(e,t){var n=pr(e,t);if(n){var r=document.createDocumentFragment();xr(e,n,r),e.display.dragCursor||(e.display.dragCursor=P("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),A(e.display.dragCursor,r)}}(e,t),Ce(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-Lo<100))Ce(t);else if(!be(e,t)&&!Cn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!p)){var n=P("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}(e,t)},drop:ii(e,jo),leave:function(t){be(e,t)||No(e)}};var l=t.input.getField();me(l,"keyup",(function(t){return pa.call(e,t)})),me(l,"keydown",ii(e,fa)),me(l,"keypress",ii(e,ha)),me(l,"focus",(function(t){return Or(e,t)})),me(l,"blur",(function(t){return Ar(e,t)}))}(this),function(){var e;Bo||(me(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Fo(zo)}),100))})),me(window,"blur",(function(){return Fo(Ar)})),Bo=!0)}(),Yr(this),this.curOp.forceUpdate=!0,Bi(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Or(n)}),20):Ar(this),Ca)Ca.hasOwnProperty(u)&&Ca[u](this,t[u],Ea);gi(this),t.finishInit&&t.finishInit(this);for(var c=0;c150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?U(Ye(o,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var d="",f=0;if(e.options.indentWithTabs)for(var p=Math.floor(u/a);p;--p)f+=a,d+="\t";if(fa,l=Le(t),u=null;if(s&&r.ranges.length>1)if(Da&&Da.text.join("\n")==t){if(r.ranges.length%Da.text.length==0){u=[];for(var c=0;c=0;f--){var p=r.ranges[f],h=p.from(),m=p.to();p.empty()&&(n&&n>0?h=it(h.line,h.ch-n):e.state.overwrite&&!s?m=it(m.line,Math.min(Ye(o,m.line).text.length,m.ch+Q(l).length)):s&&Da&&Da.lineWise&&Da.text.join("\n")==l.join("\n")&&(h=m=it(h.line,0)));var g={from:h,to:m,text:u?u[f%u.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};po(e.doc,g),fn(e,"inputRead",e,g)}t&&!s&&ja(e,t),Lr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function La(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||ri(t,(function(){return Ia(t,n,0,null,"paste")})),!0}function ja(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=Ra(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Ye(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Ra(e,i.head.line,"smart"));a&&fn(e,"electricInput",e,i.head.line)}}}function Na(e){for(var t=[],n=[],r=0;r0?0:-1));if(isNaN(u))a=null;else{var c=n>0?u>=55296&&u<56320:u>=56320&&u<57343;a=new it(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(c?2:1))),-n)}}else a=i?function(e,t,n,r){var i=pe(t,e.doc.direction);if(!i)return ta(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=de(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&f>=c.begin)){var p=d?"before":"after";return new it(n.line,f,p)}}var h=function(e,t,r){for(var o=function(e,t){return t?new it(n.line,l(e,1),"before"):new it(n.line,e,"after")};e>=0&&e0==(1!=a.level),u=s?r.begin:l(r.end,-1);if(a.from<=u&&u0?c.end:l(c.begin,-1);return null==g||r>0&&g==t.text.length||!(m=h(r>0?0:i.length-1,r,u(g)))?null:m}(e.cm,s,t,n):ta(s,t,n);if(null==a){if(o||!function(){var n=t.line+l;return!(n=e.first+e.size)&&(t=new it(n,t.ch,t.sticky),s=Ye(e,n))}())return!1;t=na(i,e.cm,s,t.line,l)}else t=a;return!0}if("char"==r||"codepoint"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var c=null,d="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||u(!p);p=!1){var h=s.text.charAt(t.ch)||"\n",m=ie(h,f)?"w":d&&"\n"==h?"n":!d||/\s/.test(h)?null:"p";if(!d||p||m||(m="s"),c&&c!=m){n<0&&(n=1,u(),t.sticky="after");break}if(m&&(c=m),n>0&&!u(!p))break}var g=lo(e,t,o,a,!0);return at(o,g)&&(g.hitSide=!0),g}function Ua(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,F(e).innerHeight||a(e).documentElement.clientHeight),u=Math.max(l-.5*sr(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=er(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var qa=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new q,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Wa(e,t){var n=Ln(e,t.line);if(!n||n.hidden)return null;var r=Ye(e.doc,t.line),i=Mn(n,r,t.line),o=pe(r,e.doc.direction),a="left";o&&(a=de(o,t.ch)%2?"right":"left");var s=zn(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function $a(e,t){return t&&(e.bad=!0),e}function Ha(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return $a(e.clipPos(it(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i=t.display.viewTo||o.line=t.display.viewFrom&&Wa(t,i)||{node:l[0].measure.map[2],offset:0},c=o.liner.firstLine()&&(a=it(a.line-1,Ye(r.doc,a.line-1).length)),s.ch==Ye(r.doc,s.line).text.length&&s.linei.viewTo-1)return!1;a.line==i.viewFrom||0==(e=hr(r,a.line))?(t=et(i.view[0].line),n=i.view[0].node):(t=et(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,u,c=hr(r,s.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=et(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var d=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function u(){a&&(o+=s,l&&(o+=s),a=l=!1)}function c(e){e&&(u(),o+=e)}function d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void c(n);var o,f=t.getAttribute("cm-marker");if(f){var p=e.findMarks(it(r,0),it(i+1,0),(g=+f,function(e){return e.id==g}));return void(p.length&&(o=p[0].find(0))&&c(Xe(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;h&&u();for(var m=0;m1&&f.length>1;)if(Q(d)==Q(f))d.pop(),f.pop(),l--;else{if(d[0]!=f[0])break;d.shift(),f.shift(),t++}for(var p=0,h=0,m=d[0],g=f[0],v=Math.min(m.length,g.length);pa.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)p--,h++;d[d.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),d[0]=d[0].slice(p).replace(/\u200b+$/,"");var _=it(t,p),x=it(l,f.length?Q(f).length-h:0);return d.length>1||d[0]||ot(_,x)?(yo(r.doc,d,_,x,"+input"),!0):void 0},qa.prototype.ensurePolled=function(){this.forceCompositionEnd()},qa.prototype.reset=function(){this.forceCompositionEnd()},qa.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},qa.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},qa.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||ri(this.cm,(function(){return mr(e.cm)}))},qa.prototype.setUneditable=function(e){e.contentEditable="false"},qa.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ii(this.cm,Ia)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},qa.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},qa.prototype.onContextMenu=function(){},qa.prototype.resetPosition=function(){},qa.prototype.needsContentAttribute=!0;var Ga=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new q,this.hasSelection=!1,this.composing=null,this.resetting=!1};Ga.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!be(r,e)){if(r.somethingSelected())Ma({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Na(r);Ma({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,V):(n.prevInput="",i.value=t.text.join("\n"),j(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(i.style.width="0px"),me(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),me(i,"paste",(function(e){be(r,e)||La(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),me(i,"cut",o),me(i,"copy",o),me(e.scroller,"paste",(function(t){if(!Cn(e,t)&&!be(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),me(e.lineSpace,"selectstart",(function(t){Cn(e,t)||ke(t)})),me(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),me(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Ga.prototype.createField=function(e){this.wrapper=Ba(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;Fa(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},Ga.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ga.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=_r(e);if(e.options.moveInputWithCursor){var i=Xn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Ga.prototype.showSelection=function(e){var t=this.cm.display;A(t.cursorDiv,e.cursors),A(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ga.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&j(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.resetting=!1}},Ga.prototype.getField=function(){return this.textarea},Ga.prototype.supportsTouch=function(){return!1},Ga.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||M(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(e){}},Ga.prototype.blur=function(){this.textarea.blur()},Ga.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ga.prototype.receivedFocus=function(){this.slowPoll()},Ga.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},Ga.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}))},Ga.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||je(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,u=Math.min(r.length,i.length);l1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Ga.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ga.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Ga.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=pr(n,e),u=r.scroller.scrollTop;if(o&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ii(n,no)(n.doc,Ai(o),V);var c,d=i.style.cssText,p=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(c=i.ownerDocument.defaultView.scrollY),r.input.focus(),l&&i.ownerDocument.defaultView.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&g(),E){Ce(e);var m=function(){ve(window,"mouseup",m),setTimeout(v,20)};me(window,"mouseup",m)}else setTimeout(v,50)}function g(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=p,i.style.cssText=d,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart)){(!a||a&&s<9)&&g();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?ii(n,co)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Ga.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},Ga.prototype.setUneditable=function(){},Ga.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Ea&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Ea,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,Ii(e)}),!0),n("indentUnit",2,Ii,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){Li(e),$n(e),mr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(it(r,o))}r++}));for(var i=n.length-1;i>=0;i--)yo(e.doc,t,n[i],it(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Ea&&e.refresh()})),n("specialCharPlaceholder",nn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!_),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){ka(e),bi(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Qo(t),i=n!=Ea&&Qo(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Oa,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=vi(t,e.options.lineNumbers),bi(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?cr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return Hr(e)}),!0),n("scrollbarStyle","native",(function(e){Kr(e),Hr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=vi(e.options.gutters,t),bi(e)}),!0),n("firstLineNumber",1,bi,!0),n("lineNumberFormatter",(function(e){return e}),bi,!0),n("showCursorWhenSelecting",!1,wr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Ar(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Ta),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,wr,!0),n("singleCursorHeightPerLine",!0,wr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Li,!0),n("addModeClass",!1,Li,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,Li,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}(Aa),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){F(this).focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&ii(this,t[e])(this,n,i),ye(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Qo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nn&&(Ra(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Lr(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l0&&Ji(this.doc,r,new Ti(o,u[r].to()),V)}}})),getTokenAt:function(e,t){return xt(this,e,t)},getLineTokens:function(e,t){return xt(this,it(e),t,!0)},getTokenTypeAt:function(e){e=dt(this.doc,e);var t,n=gt(this,Ye(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(e=o,i=!0),r=Ye(this.doc,e)}else r=e;return Kn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-Gt(r):0)},defaultTextHeight:function(){return sr(this.display)},defaultCharWidth:function(){return lr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a=this.display,s=(e=Xn(this,dt(this.doc,e))).bottom,l=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),a.sizer.appendChild(t),"over"==r)s=e.top;else if("above"==r||"near"==r){var u=Math.max(a.wrapper.clientHeight,this.doc.height),c=Math.max(a.sizer.clientWidth,a.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>u)&&e.top>t.offsetHeight?s=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=u&&(s=e.bottom),l+t.offsetWidth>c&&(l=c-t.offsetWidth)}t.style.top=s+"px",t.style.left=t.style.right="","right"==i?(l=a.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?l=0:"middle"==i&&(l=(a.sizer.clientWidth-t.offsetWidth)/2),t.style.left=l+"px"),n&&(null!=(o=Mr(this,{left:l,top:s,right:l+t.offsetWidth,bottom:s+t.offsetHeight})).scrollTop&&Br(this,o.scrollTop),null!=o.scrollLeft&&Ur(this,o.scrollLeft))},triggerOnKeyDown:oi(fa),triggerOnKeyPress:oi(ha),triggerOnKeyUp:pa,triggerOnMouseDown:oi(ya),execCommand:function(e){if(ra.hasOwnProperty(e))return ra[e].call(null,this)},triggerElectric:oi((function(e){ja(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=dt(this.doc,e),a=0;a0&&a(t.charAt(n-1));)--n;for(;r.5||this.options.lineWrapping)&&fr(this),ye(this,"refresh",this)})),swapDoc:oi((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Bi(this,e),$n(this),this.display.input.reset(),jr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,fn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},xe(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(Aa);var Ka="iter insert remove copy getEditor constructor".split(" ");for(var Za in Io.prototype)Io.prototype.hasOwnProperty(Za)&&W(Ka,Za)<0&&(Aa.prototype[Za]=function(e){return function(){return e.apply(this.doc,arguments)}}(Io.prototype[Za]));return xe(Io),Aa.inputStyles={textarea:Ga,contenteditable:qa},Aa.defineMode=function(e){Aa.defaults.mode||"null"==e||(Aa.defaults.mode=e),Ue.apply(this,arguments)},Aa.defineMIME=function(e,t){ze[e]=t},Aa.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Aa.defineMIME("text/plain","null"),Aa.defineExtension=function(e,t){Aa.prototype[e]=t},Aa.defineDocExtension=function(e,t){Io.prototype[e]=t},Aa.fromTextArea=function(e,t){if((t=t?z(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=M(e.ownerDocument);t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(me(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ve(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Aa((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s},function(e){e.off=ve,e.on=me,e.wheelEventPixels=Ei,e.Doc=Io,e.splitLines=Le,e.countColumn=U,e.findColumn=Z,e.isWordChar=re,e.Pass=H,e.signal=ye,e.Line=Yt,e.changeEnd=Pi,e.scrollbarModel=Gr,e.Pos=it,e.cmpPos=ot,e.modes=Be,e.mimeModes=ze,e.resolveMode=qe,e.getMode=We,e.modeExtensions=$e,e.extendMode=He,e.copyState=Ve,e.startState=Ke,e.innerMode=Ge,e.commands=ra,e.keyMap=Ho,e.keyName=Xo,e.isModifierKey=Zo,e.lookupKey=Ko,e.normalizeKeyMap=Go,e.StringStream=Ze,e.SharedTextMarker=Po,e.TextMarker=Oo,e.LineWidget=So,e.e_preventDefault=ke,e.e_stopPropagation=Ee,e.e_stop=Ce,e.addClass=I,e.contains=D,e.rmClass=T,e.keyNames=Uo}(Aa),Aa.version="5.65.15",Aa}()},66317:(e,t,n)=>{!function(e){"use strict";e.defineMode("apl",(function(){var e={".":"innerProduct","\\":"scan","/":"reduce","⌿":"reduce1Axis","⍀":"scan1Axis","¨":"each","⍣":"power"},t={"+":["conjugate","add"],"−":["negate","subtract"],"×":["signOf","multiply"],"÷":["reciprocal","divide"],"⌈":["ceiling","greaterOf"],"⌊":["floor","lesserOf"],"∣":["absolute","residue"],"⍳":["indexGenerate","indexOf"],"?":["roll","deal"],"⋆":["exponentiate","toThePowerOf"],"⍟":["naturalLog","logToTheBase"],"○":["piTimes","circularFuncs"],"!":["factorial","binomial"],"⌹":["matrixInverse","matrixDivide"],"<":[null,"lessThan"],"≤":[null,"lessThanOrEqual"],"=":[null,"equals"],">":[null,"greaterThan"],"≥":[null,"greaterThanOrEqual"],"≠":[null,"notEqual"],"≡":["depth","match"],"≢":[null,"notMatch"],"∈":["enlist","membership"],"⍷":[null,"find"],"∪":["unique","union"],"∩":[null,"intersection"],"∼":["not","without"],"∨":[null,"or"],"∧":[null,"and"],"⍱":[null,"nor"],"⍲":[null,"nand"],"⍴":["shapeOf","reshape"],",":["ravel","catenate"],"⍪":[null,"firstAxisCatenate"],"⌽":["reverse","rotate"],"⊖":["axis1Reverse","axis1Rotate"],"⍉":["transpose",null],"↑":["first","take"],"↓":[null,"drop"],"⊂":["enclose","partitionWithAxis"],"⊃":["diclose","pick"],"⌷":[null,"index"],"⍋":["gradeUp",null],"⍒":["gradeDown",null],"⊤":["encode",null],"⊥":["decode",null],"⍕":["format","formatByExample"],"⍎":["execute",null],"⊣":["stop","left"],"⊢":["pass","right"]},n=/[\.\/⌿⍀¨⍣]/,r=/⍬/,i=/[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/,o=/←/,a=/[⍝#].*$/;return{startState:function(){return{prev:!1,func:!1,op:!1,string:!1,escape:!1}},token:function(s,l){var u,c,d,f;return s.eatSpace()?null:'"'===(u=s.next())||"'"===u?(s.eatWhile((d=u,f=!1,function(e){return f=e,e!==d||"\\"===f})),s.next(),l.prev=!0,"string"):/[\[{\(]/.test(u)?(l.prev=!1,null):/[\]}\)]/.test(u)?(l.prev=!0,null):r.test(u)?(l.prev=!1,"niladic"):/[¯\d]/.test(u)?(l.func?(l.func=!1,l.prev=!1):l.prev=!0,s.eatWhile(/[\w\.]/),"number"):n.test(u)?"operator apl-"+e[u]:o.test(u)?"apl-arrow":i.test(u)?(c="apl-",null!=t[u]&&(l.prev?c+=t[u][1]:c+=t[u][0]),l.func=!0,l.prev=!1,"function "+c):a.test(u)?(s.skipToEnd(),"comment"):"∘"===u&&"."===s.peek()?(s.next(),"function jot-dot"):(s.eatWhile(/[\w\$_]/),l.prev=!0,"keyword")}}})),e.defineMIME("text/apl","apl")}(n(23326))},64617:(e,t,n)=>{!function(e){"use strict";function t(e){var t=e.match(/^\s*\S/);return e.skipToEnd(),t?"error":null}e.defineMode("asciiarmor",(function(){return{token:function(e,n){var r;if("top"==n.state)return e.sol()&&(r=e.match(/^-----BEGIN (.*)?-----\s*$/))?(n.state="headers",n.type=r[1],"tag"):t(e);if("headers"==n.state){if(e.sol()&&e.match(/^\w+:/))return n.state="header","atom";var i=t(e);return i&&(n.state="body"),i}return"header"==n.state?(e.skipToEnd(),n.state="headers","string"):"body"==n.state?e.sol()&&(r=e.match(/^-----END (.*)?-----\s*$/))?r[1]!=n.type?"error":(n.state="end","tag"):e.eatWhile(/[A-Za-z0-9+\/=]/)?null:(e.next(),"error"):"end"==n.state?t(e):void 0},blankLine:function(e){"headers"==e.state&&(e.state="body")},startState:function(){return{state:"top",type:null}}}})),e.defineMIME("application/pgp","asciiarmor"),e.defineMIME("application/pgp-encrypted","asciiarmor"),e.defineMIME("application/pgp-keys","asciiarmor"),e.defineMIME("application/pgp-signature","asciiarmor")}(n(23326))},34474:(e,t,n)=>{!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r{!function(e){"use strict";e.defineMode("asterisk",(function(){var e=["exten","same","include","ignorepat","switch"],t=["#include","#exec"],n=["addqueuemember","adsiprog","aelsub","agentlogin","agentmonitoroutgoing","agi","alarmreceiver","amd","answer","authenticate","background","backgrounddetect","bridge","busy","callcompletioncancel","callcompletionrequest","celgenuserevent","changemonitor","chanisavail","channelredirect","chanspy","clearhash","confbridge","congestion","continuewhile","controlplayback","dahdiacceptr2call","dahdibarge","dahdiras","dahdiscan","dahdisendcallreroutingfacility","dahdisendkeypadfacility","datetime","dbdel","dbdeltree","deadagi","dial","dictate","directory","disa","dumpchan","eagi","echo","endwhile","exec","execif","execiftime","exitwhile","extenspy","externalivr","festival","flash","followme","forkcdr","getcpeid","gosub","gosubif","goto","gotoif","gotoiftime","hangup","iax2provision","ices","importvar","incomplete","ivrdemo","jabberjoin","jabberleave","jabbersend","jabbersendgroup","jabberstatus","jack","log","macro","macroexclusive","macroexit","macroif","mailboxexists","meetme","meetmeadmin","meetmechanneladmin","meetmecount","milliwatt","minivmaccmess","minivmdelete","minivmgreet","minivmmwi","minivmnotify","minivmrecord","mixmonitor","monitor","morsecode","mp3player","mset","musiconhold","nbscat","nocdr","noop","odbc","odbc","odbcfinish","originate","ospauth","ospfinish","osplookup","ospnext","page","park","parkandannounce","parkedcall","pausemonitor","pausequeuemember","pickup","pickupchan","playback","playtones","privacymanager","proceeding","progress","queue","queuelog","raiseexception","read","readexten","readfile","receivefax","receivefax","receivefax","record","removequeuemember","resetcdr","retrydial","return","ringing","sayalpha","saycountedadj","saycountednoun","saycountpl","saydigits","saynumber","sayphonetic","sayunixtime","senddtmf","sendfax","sendfax","sendfax","sendimage","sendtext","sendurl","set","setamaflags","setcallerpres","setmusiconhold","sipaddheader","sipdtmfmode","sipremoveheader","skel","slastation","slatrunk","sms","softhangup","speechactivategrammar","speechbackground","speechcreate","speechdeactivategrammar","speechdestroy","speechloadgrammar","speechprocessingsound","speechstart","speechunloadgrammar","stackpop","startmusiconhold","stopmixmonitor","stopmonitor","stopmusiconhold","stopplaytones","system","testclient","testserver","transfer","tryexec","trysystem","unpausemonitor","unpausequeuemember","userevent","verbose","vmauthenticate","vmsayname","voicemail","voicemailmain","wait","waitexten","waitfornoise","waitforring","waitforsilence","waitmusiconhold","waituntil","while","zapateller"];return{startState:function(){return{blockComment:!1,extenStart:!1,extenSame:!1,extenInclude:!1,extenExten:!1,extenPriority:!1,extenApplication:!1}},token:function(r,i){var o="";return r.eatSpace()?null:i.extenStart?(r.eatWhile(/[^\s]/),o=r.current(),/^=>?$/.test(o)?(i.extenExten=!0,i.extenStart=!1,"strong"):(i.extenStart=!1,r.skipToEnd(),"error")):i.extenExten?(i.extenExten=!1,i.extenPriority=!0,r.eatWhile(/[^,]/),i.extenInclude&&(r.skipToEnd(),i.extenPriority=!1,i.extenInclude=!1),i.extenSame&&(i.extenPriority=!1,i.extenSame=!1,i.extenApplication=!0),"tag"):i.extenPriority?(i.extenPriority=!1,i.extenApplication=!0,r.next(),i.extenSame?null:(r.eatWhile(/[^,]/),"number")):i.extenApplication?(r.eatWhile(/,/),","===(o=r.current())?null:(r.eatWhile(/\w/),o=r.current().toLowerCase(),i.extenApplication=!1,-1!==n.indexOf(o)?"def strong":null)):function(n,r){var i="",o=n.next();if(r.blockComment)return"-"==o&&n.match("-;",!0)?r.blockComment=!1:n.skipTo("--;")?(n.next(),n.next(),n.next(),r.blockComment=!1):n.skipToEnd(),"comment";if(";"==o)return n.match("--",!0)&&!n.match("-",!1)?(r.blockComment=!0,"comment"):(n.skipToEnd(),"comment");if("["==o)return n.skipTo("]"),n.eat("]"),"header";if('"'==o)return n.skipTo('"'),"string";if("'"==o)return n.skipTo("'"),"string-2";if("#"==o&&(n.eatWhile(/\w/),i=n.current(),-1!==t.indexOf(i)))return n.skipToEnd(),"strong";if("$"==o&&"{"==n.peek())return n.skipTo("}"),n.eat("}"),"variable-3";if(n.eatWhile(/\w/),i=n.current(),-1!==e.indexOf(i)){switch(r.extenStart=!0,i){case"same":r.extenSame=!0;break;case"include":case"switch":case"ignorepat":r.extenInclude=!0}return"atom"}}(r,i)},blockCommentStart:";--",blockCommentEnd:"--;",lineComment:";"}})),e.defineMIME("text/x-asterisk","asterisk")}(n(23326))},91352:(e,t,n)=>{!function(e){"use strict";var t="><+-.,[]".split("");e.defineMode("brainfuck",(function(){return{startState:function(){return{commentLine:!1,left:0,right:0,commentLoop:!1}},token:function(e,n){if(e.eatSpace())return null;e.sol()&&(n.commentLine=!1);var r=e.next().toString();return-1===t.indexOf(r)?(n.commentLine=!0,e.eol()&&(n.commentLine=!1),"comment"):!0===n.commentLine?(e.eol()&&(n.commentLine=!1),"comment"):"]"===r||"["===r?("["===r?n.left++:n.right++,"bracket"):"+"===r||"-"===r?"keyword":"<"===r||">"===r?"atom":"."===r||","===r?"def":void(e.eol()&&(n.commentLine=!1))}}})),e.defineMIME("text/x-brainfuck","brainfuck")}(n(23326))},80011:(e,t,n)=>{!function(e){"use strict";function t(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.info=r,this.align=i,this.prev=o}function n(e,n,r,i){var o=e.indented;return e.context&&"statement"==e.context.type&&"statement"!=r&&(o=e.context.indented),e.context=new t(o,n,r,i,null,e.context)}function r(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function i(e,t,n){return"variable"==t.prevToken||"type"==t.prevToken||!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n))||!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0}function o(e){for(;;){if(!e||"top"==e.type)return!0;if("}"==e.type&&"namespace"!=e.prev.info)return!1;e=e.prev}}function a(e){for(var t={},n=e.split(" "),r=0;r!?|\/]/,A=l.isIdentifierChar||/[\w\$_\xa1-\uffff]/,P=l.isReservedIdentifier||!1;function R(e,t){var n,r=e.next();if(w[r]){var i=w[r](e,t);if(!1!==i)return i}if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return(o||!i&&!_)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(C.test(r)){if(e.backUp(1),e.match(T))return"number";e.next()}if(S.test(r))return u=r,null;if("/"==r){if(e.eat("*"))return t.tokenize=D,D(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(O.test(r)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(O););return"operator"}if(e.eatWhile(A),E)for(;e.match(E);)e.eatWhile(A);var o=e.current();return s(h,o)?(s(v,o)&&(u="newstatement"),s(y,o)&&(c=!0),"keyword"):s(m,o)?"type":s(g,o)||P&&P(o)?(s(v,o)&&(u="newstatement"),"builtin"):s(b,o)?"atom":"variable"}function D(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function M(e,t){l.typeFirstDefinitions&&e.eol()&&o(t.context)&&(t.typeAtEndOfLine=i(e,t,e.pos))}return{startState:function(e){return{tokenize:null,context:new t((e||0)-d,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,t){var a=t.context;if(e.sol()&&(null==a.align&&(a.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return M(e,t),null;u=c=null;var s=(t.tokenize||R)(e,t);if("comment"==s||"meta"==s)return s;if(null==a.align&&(a.align=!0),";"==u||":"==u||","==u&&e.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==t.context.type;)r(t);else if("{"==u)n(t,e.column(),"}");else if("["==u)n(t,e.column(),"]");else if("("==u)n(t,e.column(),")");else if("}"==u){for(;"statement"==a.type;)a=r(t);for("}"==a.type&&(a=r(t));"statement"==a.type;)a=r(t)}else u==a.type?r(t):x&&(("}"==a.type||"top"==a.type)&&";"!=u||"statement"==a.type&&"newstatement"==u)&&n(t,e.column(),"statement",e.current());if("variable"==s&&("def"==t.prevToken||l.typeFirstDefinitions&&i(e,t,e.start)&&o(t.context)&&e.match(/^\s*\(/,!1))&&(s="def"),w.token){var d=w.token(e,t,s);void 0!==d&&(s=d)}return"def"==s&&!1===l.styleDefs&&(s="variable"),t.startOfLine=!1,t.prevToken=c?"def":s||u,M(e,t),s},indent:function(t,n){if(t.tokenize!=R&&null!=t.tokenize||t.typeAtEndOfLine&&o(t.context))return e.Pass;var r=t.context,i=n&&n.charAt(0),a=i==r.type;if("statement"==r.type&&"}"==i&&(r=r.prev),l.dontIndentStatements)for(;"statement"==r.type&&l.dontIndentStatements.test(r.info);)r=r.prev;if(w.indent){var s=w.indent(t,r,n,d);if("number"==typeof s)return s}var u=r.prev&&"switch"==r.prev.info;if(l.allmanIndentation&&/[{(]/.test(i)){for(;"top"!=r.type&&"}"!=r.type;)r=r.prev;return r.indented}return"statement"==r.type?r.indented+("{"==i?0:f):!r.align||p&&")"==r.type?")"!=r.type||a?r.indented+(a?0:d)+(a||!u||/^(?:case|default)\b/.test(n)?0:d):r.indented+f:r.column+(a?0:1)},electricInput:k?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}}));var l="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",u="alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq",c="bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available",d="FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT",f=a("int long char short double float unsigned signed void bool"),p=a("SEL instancetype id Class Protocol BOOL");function h(e){return s(f,e)||/.+_t$/.test(e)}function m(e){return h(e)||s(p,e)}var g="case do else for if switch while struct enum union",v="struct enum union";function y(e,t){if(!t.startOfLine)return!1;for(var n,r=null;n=e.peek();){if("\\"==n&&e.match(/^.$/)){r=y;break}if("/"==n&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=r,"meta"}function b(e,t){return"type"==t.prevToken&&"type"}function w(e){return!(!e||e.length<2||"_"!=e[0]||"_"!=e[1]&&e[1]===e[1].toLowerCase())}function _(e){return e.eatWhile(/[\w\.']/),"number"}function x(e,t){if(e.backUp(1),e.match(/^(?:R|u8R|uR|UR|LR)/)){var n=e.match(/^"([^\s\\()]{0,16})\(/);return!!n&&(t.cpp11RawStringDelim=n[1],t.tokenize=S,S(e,t))}return e.match(/^(?:u8|u|U|L)/)?!!e.match(/^["']/,!1)&&"string":(e.next(),!1)}function k(e){var t=/(\w+)::~?(\w+)$/.exec(e);return t&&t[1]==t[2]}function E(e,t){for(var n;null!=(n=e.next());)if('"'==n&&!e.eat('"')){t.tokenize=null;break}return"string"}function S(e,t){var n=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return e.match(new RegExp(".*?\\)"+n+'"'))?t.tokenize=null:e.skipToEnd(),"string"}function C(t,n){"string"==typeof t&&(t=[t]);var r=[];function i(e){if(e)for(var t in e)e.hasOwnProperty(t)&&r.push(t)}i(n.keywords),i(n.types),i(n.builtin),i(n.atoms),r.length&&(n.helperType=t[0],e.registerHelper("hintWords",t[0],r));for(var o=0;o!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=T,t.tokenize(e,t))},"'":function(e){return e.match(/^(\\[^'\s]+|[^\\'])'/)?"string-2":(e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom")},"=":function(e,n){var r=n.context;return!("}"!=r.type||!r.align||!e.eat(">"))&&(n.context=new t(r.indented,r.column,r.type,r.info,null,r.prev),"operator")},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=O(1),t.tokenize(e,t))}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}}),C("text/x-kotlin",{name:"clike",keywords:a("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam value"),types:a("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:a("catch class do else finally for if where try while enum"),defKeywords:a("class val var object interface fun"),atoms:a("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},"*":function(e,t){return"."==t.prevToken?"variable":"operator"},'"':function(e,t){return t.tokenize=(n=e.match('""'),function(e,t){for(var r,i=!1,o=!1;!e.eol();){if(!n&&!i&&e.match('"')){o=!0;break}if(n&&e.match('"""')){o=!0;break}r=e.next(),!i&&"$"==r&&e.match("{")&&e.skipTo("}"),i=!i&&"\\"==r&&!n}return!o&&n||(t.tokenize=null),"string"}),t.tokenize(e,t);var n},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=O(1),t.tokenize(e,t))},indent:function(e,t,n,r){var i=n&&n.charAt(0);return"}"!=e.prevToken&&")"!=e.prevToken||""!=n?"operator"==e.prevToken&&"}"!=n&&"}"!=e.context.type||"variable"==e.prevToken&&"."==i||("}"==e.prevToken||")"==e.prevToken)&&"."==i?2*r+t.indented:t.align&&"}"==t.type?t.indented+(e.context.type==(n||"").charAt(0)?0:r):void 0:e.indented}},modeProps:{closeBrackets:{triples:'"'}}}),C(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:a("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:a("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:a("for while do if else struct"),builtin:a("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:a("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":y},modeProps:{fold:["brace","include"]}}),C("text/x-nesc",{name:"clike",keywords:a(l+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:h,blockKeywords:a(g),atoms:a("null true false"),hooks:{"#":y},modeProps:{fold:["brace","include"]}}),C("text/x-objectivec",{name:"clike",keywords:a(l+" "+c),types:m,builtin:a(d),blockKeywords:a(g+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:a(v+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:w,hooks:{"#":y,"*":b},modeProps:{fold:["brace","include"]}}),C("text/x-objectivec++",{name:"clike",keywords:a(l+" "+c+" "+u),types:m,builtin:a(d),blockKeywords:a(g+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:a(v+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:w,hooks:{"#":y,"*":b,u:x,U:x,L:x,R:x,0:_,1:_,2:_,3:_,4:_,5:_,6:_,7:_,8:_,9:_,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&k(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),C("text/x-squirrel",{name:"clike",keywords:a("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:h,blockKeywords:a("case catch class else for foreach if switch try while"),defKeywords:a("function local class"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"#":y},modeProps:{fold:["brace","include"]}});var A=null;function P(e){return function(t,n){for(var r,i=!1,o=!1;!t.eol();){if(!i&&t.match('"')&&("single"==e||t.match('""'))){o=!0;break}if(!i&&t.match("``")){A=P(e),o=!0;break}r=t.next(),i="single"==e&&!i&&"\\"==r}return o&&(n.tokenize=null),"string"}}C("text/x-ceylon",{name:"clike",keywords:a("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:a("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:a("class dynamic function interface module object package value"),builtin:a("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:a("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=P(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!A||!e.match("`"))&&(t.tokenize=A,A=null,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(e,t,n){if(("variable"==n||"type"==n)&&"."==t.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})}(n(23326))},3463:(e,t,n)=>{!function(e){"use strict";e.defineMode("clojure",(function(t){var n=["false","nil","true"],r=[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],i=["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"];e.registerHelper("hintWords","clojure",[].concat(n,r,i));var o=g(n),a=g(r),s=g(i),l=g(["->","->>","as->","binding","bound-fn","case","catch","comment","cond","cond->","cond->>","condp","def","definterface","defmethod","defn","defmacro","defprotocol","defrecord","defstruct","deftype","do","doseq","dotimes","doto","extend","extend-protocol","extend-type","fn","for","future","if","if-let","if-not","if-some","let","letfn","locking","loop","ns","proxy","reify","struct-map","some->","some->>","try","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn"]),u=/^(?:[\\\[\]\s"(),;@^`{}~]|$)/,c=/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,d=/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,f=/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/;function p(e,t){if(e.eatSpace()||e.eat(","))return["space",null];if(e.match(c))return[null,"number"];if(e.match(d))return[null,"string-2"];if(e.eat(/^"/))return(t.tokenize=h)(e,t);if(e.eat(/^[(\[{]/))return["open","bracket"];if(e.eat(/^[)\]}]/))return["close","bracket"];if(e.eat(/^;/))return e.skipToEnd(),["space","comment"];if(e.eat(/^[#'@^`~]/))return[null,"meta"];var n=e.match(f),r=n&&n[0];return r?"comment"===r&&"("===t.lastToken?(t.tokenize=m)(e,t):v(r,o)||":"===r.charAt(0)?["symbol","atom"]:v(r,a)||v(r,s)?["symbol","keyword"]:"("===t.lastToken?["symbol","builtin"]:["symbol","variable"]:(e.next(),e.eatWhile((function(e){return!v(e,u)})),[null,"error"])}function h(e,t){for(var n,r=!1;n=e.next();){if('"'===n&&!r){t.tokenize=p;break}r=!r&&"\\"===n}return[null,"string"]}function m(e,t){for(var n,r=1;n=e.next();)if(")"===n&&r--,"("===n&&r++,0===r){e.backUp(1),t.tokenize=p;break}return["space","comment"]}function g(e){for(var t={},n=0;n{!function(e){"use strict";e.defineMode("cmake",(function(){var e=/({)?[a-zA-Z0-9_]+(})?/;function t(e,t){for(var n,r,i=!1;!e.eol()&&(n=e.next())!=t.pending;){if("$"===n&&"\\"!=r&&'"'==t.pending){i=!0;break}r=n}return i&&e.backUp(1),n==t.pending?t.continueString=!1:t.continueString=!0,"string"}return{startState:function(){return{inDefinition:!1,inInclude:!1,continueString:!1,pending:!1}},token:function(n,r){return n.eatSpace()?null:function(n,r){var i=n.next();return"$"===i?n.match(e)?"variable-2":"variable":r.continueString?(n.backUp(1),t(n,r)):n.match(/(\s+)?\w+\(/)||n.match(/(\s+)?\w+\ \(/)?(n.backUp(1),"def"):"#"==i?(n.skipToEnd(),"comment"):"'"==i||'"'==i?(r.pending=i,t(n,r)):"("==i||")"==i?"bracket":i.match(/[0-9]/)?"number":(n.eatWhile(/[\w-]/),null)}(n,r)}}})),e.defineMIME("text/x-cmake","cmake")}(n(23326))},25619:(e,t,n)=>{!function(e){"use strict";e.defineMode("cobol",(function(){var e="string",t="atom";function n(e){for(var t={},n=e.split(" "),r=0;r >= "),a={digit:/\d/,digit_or_colon:/[\d:]/,hex:/[0-9a-f]/i,sign:/[+-]/,exponent:/e/i,keyword_char:/[^\s\(\[\;\)\]]/,symbol:/[\w*+\-]/};return{startState:function(){return{indentStack:null,indentation:0,mode:!1}},token:function(n,s){if(null==s.indentStack&&n.sol()&&(s.indentation=6),n.eatSpace())return null;var l=null;if("string"===s.mode){for(var u=!1;null!=(u=n.next());)if(('"'==u||"'"==u)&&!n.match(/['"]/,!1)){s.mode=!1;break}l=e}else{var c=n.next(),d=n.column();if(d>=0&&d<=5)l="def";else if(d>=72&&d<=79)n.skipToEnd(),l="header";else if("*"==c&&6==d)n.skipToEnd(),l="comment";else if('"'==c||"'"==c)s.mode="string",l=e;else if("'"!=c||a.digit_or_colon.test(n.peek()))if("."==c)l="link";else if(function(e,t){return"0"===e&&t.eat(/x/i)?(t.eatWhile(a.hex),!0):("+"!=e&&"-"!=e||!a.digit.test(t.peek())||(t.eat(a.sign),e=t.next()),!!a.digit.test(e)&&(t.eat(e),t.eatWhile(a.digit),"."==t.peek()&&(t.eat("."),t.eatWhile(a.digit)),t.eat(a.exponent)&&(t.eat(a.sign),t.eatWhile(a.digit)),!0))}(c,n))l="number";else{if(n.current().match(a.symbol))for(;d<71&&void 0!==n.eat(a.symbol);)d++;l=i&&i.propertyIsEnumerable(n.current().toUpperCase())?"keyword":o&&o.propertyIsEnumerable(n.current().toUpperCase())?"builtin":r&&r.propertyIsEnumerable(n.current().toUpperCase())?t:null}else l=t}return l},indent:function(e){return null==e.indentStack?e.indentation:e.indentStack.indent}}})),e.defineMIME("text/x-cobol","cobol")}(n(23326))},86386:(e,t,n)=>{!function(e){"use strict";e.defineMode("coffeescript",(function(e,t){var n="error";function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var i=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,o=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,a=/^[_A-Za-z$][_A-Za-z$0-9]*/,s=/^@[_A-Za-z$][_A-Za-z$0-9]*/,l=r(["and","or","not","is","isnt","in","instanceof","typeof"]),u=["for","while","loop","if","unless","else","switch","try","catch","finally","class"],c=r(u.concat(["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"]));u=r(u);var d=/^('{3}|\"{3}|['\"])/,f=/^(\/{3}|\/)/,p=r(["Infinity","NaN","undefined","null","true","false","on","off","yes","no"]);function h(e,t){if(e.sol()){null===t.scope.align&&(t.scope.align=!1);var r=t.scope.offset;if(e.eatSpace()){var u=e.indentation();return u>r&&"coffee"==t.scope.type?"indent":u0&&y(e,t)}if(e.eatSpace())return null;var h=e.peek();if(e.match("####"))return e.skipToEnd(),"comment";if(e.match("###"))return t.tokenize=g,t.tokenize(e,t);if("#"===h)return e.skipToEnd(),"comment";if(e.match(/^-?[0-9\.]/,!1)){var v=!1;if(e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(v=!0),e.match(/^-?\d+\.\d*/)&&(v=!0),e.match(/^-?\.\d+/)&&(v=!0),v)return"."==e.peek()&&e.backUp(1),"number";var b=!1;if(e.match(/^-?0x[0-9a-f]+/i)&&(b=!0),e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(b=!0),e.match(/^-?0(?![\dx])/i)&&(b=!0),b)return"number"}if(e.match(d))return t.tokenize=m(e.current(),!1,"string"),t.tokenize(e,t);if(e.match(f)){if("/"!=e.current()||e.match(/^.*\//,!1))return t.tokenize=m(e.current(),!0,"string-2"),t.tokenize(e,t);e.backUp(1)}return e.match(i)||e.match(l)?"operator":e.match(o)?"punctuation":e.match(p)?"atom":e.match(s)||t.prop&&e.match(a)?"property":e.match(c)?"keyword":e.match(a)?"variable":(e.next(),n)}function m(e,r,i){return function(o,a){for(;!o.eol();)if(o.eatWhile(/[^'"\/\\]/),o.eat("\\")){if(o.next(),r&&o.eol())return i}else{if(o.match(e))return a.tokenize=h,i;o.eat(/['"\/]/)}return r&&(t.singleLineStringErrors?i=n:a.tokenize=h),i}}function g(e,t){for(;!e.eol();){if(e.eatWhile(/[^#]/),e.match("###")){t.tokenize=h;break}e.eatWhile("#")}return"comment"}function v(t,n,r){r=r||"coffee";for(var i=0,o=!1,a=null,s=n.scope;s;s=s.prev)if("coffee"===s.type||"}"==s.type){i=s.offset+e.indentUnit;break}"coffee"!==r?(o=null,a=t.column()+t.current().length):n.scope.align&&(n.scope.align=!1),n.scope={offset:i,type:r,prev:n.scope,align:o,alignOffset:a}}function y(e,t){if(t.scope.prev){if("coffee"===t.scope.type){for(var n=e.indentation(),r=!1,i=t.scope;i;i=i.prev)if(n===i.offset){r=!0;break}if(!r)return!0;for(;t.scope.prev&&t.scope.offset!==n;)t.scope=t.scope.prev;return!1}return t.scope=t.scope.prev,!1}}return{startState:function(e){return{tokenize:h,scope:{offset:e||0,type:"coffee",prev:null,align:!1},prop:!1,dedent:0}},token:function(e,t){var r=null===t.scope.align&&t.scope;r&&e.sol()&&(r.align=!1);var i=function(e,t){var r=t.tokenize(e,t),i=e.current();"return"===i&&(t.dedent=!0),(("->"===i||"=>"===i)&&e.eol()||"indent"===r)&&v(e,t);var o="[({".indexOf(i);if(-1!==o&&v(e,t,"])}".slice(o,o+1)),u.exec(i)&&v(e,t),"then"==i&&y(e,t),"dedent"===r&&y(e,t))return n;if(-1!==(o="])}".indexOf(i))){for(;"coffee"==t.scope.type&&t.scope.prev;)t.scope=t.scope.prev;t.scope.type==i&&(t.scope=t.scope.prev)}return t.dedent&&e.eol()&&("coffee"==t.scope.type&&t.scope.prev&&(t.scope=t.scope.prev),t.dedent=!1),r}(e,t);return i&&"comment"!=i&&(r&&(r.align=!0),t.prop="punctuation"==i&&"."==e.current()),i},indent:function(e,t){if(e.tokenize!=h)return 0;var n=e.scope,r=t&&"])}".indexOf(t.charAt(0))>-1;if(r)for(;"coffee"==n.type&&n.prev;)n=n.prev;var i=r&&n.type===t.charAt(0);return n.align?n.alignOffset-(i?1:0):(i?n.prev:n).offset},lineComment:"#",fold:"indent"}})),e.defineMIME("application/vnd.coffeescript","coffeescript"),e.defineMIME("text/x-coffeescript","coffeescript"),e.defineMIME("text/coffeescript","coffeescript")}(n(23326))},98824:(e,t,n)=>{!function(e){"use strict";e.defineMode("commonlisp",(function(e){var t,n=/^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/,r=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/,i=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/,o=/[^\s'`,@()\[\]";]/;function a(e){for(var t;t=e.next();)if("\\"==t)e.next();else if(!o.test(t)){e.backUp(1);break}return e.current()}function s(e,o){if(e.eatSpace())return t="ws",null;if(e.match(i))return"number";var s;if("\\"==(s=e.next())&&(s=e.next()),'"'==s)return(o.tokenize=l)(e,o);if("("==s)return t="open","bracket";if(")"==s||"]"==s)return t="close","bracket";if(";"==s)return e.skipToEnd(),t="ws","comment";if(/['`,@]/.test(s))return null;if("|"==s)return e.skipTo("|")?(e.next(),"symbol"):(e.skipToEnd(),"error");if("#"==s)return"("==(s=e.next())?(t="open","bracket"):/[+\-=\.']/.test(s)||/\d/.test(s)&&e.match(/^\d*#/)?null:"|"==s?(o.tokenize=u)(e,o):":"==s?(a(e),"meta"):"\\"==s?(e.next(),a(e),"string-2"):"error";var c=a(e);return"."==c?null:(t="symbol","nil"==c||"t"==c||":"==c.charAt(0)?"atom":"open"==o.lastType&&(n.test(c)||r.test(c))?"keyword":"&"==c.charAt(0)?"variable-2":"variable")}function l(e,t){for(var n,r=!1;n=e.next();){if('"'==n&&!r){t.tokenize=s;break}r=!r&&"\\"==n}return"string"}function u(e,n){for(var r,i;r=e.next();){if("#"==r&&"|"==i){n.tokenize=s;break}i=r}return t="ws","comment"}return{startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastType:null,tokenize:s}},token:function(n,i){n.sol()&&"number"!=typeof i.ctx.indentTo&&(i.ctx.indentTo=i.ctx.start+1),t=null;var o=i.tokenize(n,i);return"ws"!=t&&(null==i.ctx.indentTo?"symbol"==t&&r.test(n.current())?i.ctx.indentTo=i.ctx.start+e.indentUnit:i.ctx.indentTo="next":"next"==i.ctx.indentTo&&(i.ctx.indentTo=n.column()),i.lastType=t),"open"==t?i.ctx={prev:i.ctx,start:n.column(),indentTo:null}:"close"==t&&(i.ctx=i.ctx.prev||i.ctx),o},indent:function(e,t){var n=e.ctx.indentTo;return"number"==typeof n?n:e.ctx.start+1},closeBrackets:{pairs:'()[]{}""'},lineComment:";;",fold:"brace-paren",blockCommentStart:"#|",blockCommentEnd:"|#"}})),e.defineMIME("text/x-common-lisp","commonlisp")}(n(23326))},67400:(e,t,n)=>{!function(e){"use strict";e.defineMode("crystal",(function(e){function t(e,t){return new RegExp((t?"":"^")+"(?:"+e.join("|")+")"+(t?"$":"\\b"))}function n(e,t,n){return n.tokenize.push(e),e(t,n)}var r=/^(?:[-+/%|&^]|\*\*?|[<>]{2})/,i=/^(?:[=!]~|===|<=>|[<>=!]=?|[|&]{2}|~)/,o=/^(?:\[\][?=]?)/,a=/^(?:\.(?:\.{2})?|->|[?:])/,s=/^[a-z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,l=/^[A-Z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,u=t(["abstract","alias","as","asm","begin","break","case","class","def","do","else","elsif","end","ensure","enum","extend","for","fun","if","include","instance_sizeof","lib","macro","module","next","of","out","pointerof","private","protected","rescue","return","require","select","sizeof","struct","super","then","type","typeof","uninitialized","union","unless","until","when","while","with","yield","__DIR__","__END_LINE__","__FILE__","__LINE__"]),c=t(["true","false","nil","self"]),d=t(["def","fun","macro","class","module","struct","lib","enum","union","do","for"]),f=t(["if","unless","case","while","until","begin","then"]),p=["end","else","elsif","rescue","ensure"],h=t(p),m=["\\)","\\}","\\]"],g=new RegExp("^(?:"+m.join("|")+")$"),v={def:x,fun:x,macro:function(e,t){if(e.eatSpace())return null;var n;if(n=e.match(s)){if("def"==n)return"keyword";e.eat(/[?!]/)}return t.tokenize.pop(),"def"},class:k,module:k,struct:k,lib:k,enum:k,union:k},y={"[":"]","{":"}","(":")","<":">"};function b(e,t){if(e.eatSpace())return null;if("\\"!=t.lastToken&&e.match("{%",!1))return n(_("%","%"),e,t);if("\\"!=t.lastToken&&e.match("{{",!1))return n(_("{","}"),e,t);if("#"==e.peek())return e.skipToEnd(),"comment";var p;if(e.match(s))return e.eat(/[?!]/),p=e.current(),e.eat(":")?"atom":"."==t.lastToken?"property":u.test(p)?(d.test(p)?"fun"==p&&t.blocks.indexOf("lib")>=0||"def"==p&&"abstract"==t.lastToken||(t.blocks.push(p),t.currentIndent+=1):"operator"!=t.lastStyle&&t.lastStyle||!f.test(p)?"end"==p&&(t.blocks.pop(),t.currentIndent-=1):(t.blocks.push(p),t.currentIndent+=1),v.hasOwnProperty(p)&&t.tokenize.push(v[p]),"keyword"):c.test(p)?"atom":"variable";if(e.eat("@"))return"["==e.peek()?n(w("[","]","meta"),e,t):(e.eat("@"),e.match(s)||e.match(l),"variable-2");if(e.match(l))return"tag";if(e.eat(":"))return e.eat('"')?n(E('"',"atom",!1),e,t):e.match(s)||e.match(l)||e.match(r)||e.match(i)||e.match(o)?"atom":(e.eat(":"),"operator");if(e.eat('"'))return n(E('"',"string",!0),e,t);if("%"==e.peek()){var h,m="string",g=!0;if(e.match("%r"))m="string-2",h=e.next();else if(e.match("%w"))g=!1,h=e.next();else if(e.match("%q"))g=!1,h=e.next();else if(h=e.match(/^%([^\w\s=])/))h=h[1];else{if(e.match(/^%[a-zA-Z_\u009F-\uFFFF][\w\u009F-\uFFFF]*/))return"meta";if(e.eat("%"))return"operator"}return y.hasOwnProperty(h)&&(h=y[h]),n(E(h,m,g),e,t)}return(p=e.match(/^<<-('?)([A-Z]\w*)\1/))?n(function(e,t){return function(n,r){if(n.sol()&&(n.eatSpace(),n.match(e)))return r.tokenize.pop(),"string";for(var i=!1;n.peek();)if(i)n.next(),i=!1;else{if(n.match("{%",!1))return r.tokenize.push(_("%","%")),"string";if(n.match("{{",!1))return r.tokenize.push(_("{","}")),"string";if(t&&n.match("#{",!1))return r.tokenize.push(w("#{","}","meta")),"string";i=t&&"\\"==n.next()}return"string"}}(p[2],!p[1]),e,t):e.eat("'")?(e.match(/^(?:[^']|\\(?:[befnrtv0'"]|[0-7]{3}|u(?:[0-9a-fA-F]{4}|\{[0-9a-fA-F]{1,6}\})))/),e.eat("'"),"atom"):e.eat("0")?(e.eat("x")?e.match(/^[0-9a-fA-F_]+/):e.eat("o")?e.match(/^[0-7_]+/):e.eat("b")&&e.match(/^[01_]+/),"number"):e.eat(/^\d/)?(e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+-]?\d+)?/),"number"):e.match(r)?(e.eat("="),"operator"):e.match(i)||e.match(a)?"operator":(p=e.match(/[({[]/,!1))?n(w(p=p[0],y[p],null),e,t):e.eat("\\")?(e.next(),"meta"):(e.next(),null)}function w(e,t,n,r){return function(i,o){if(!r&&i.match(e))return o.tokenize[o.tokenize.length-1]=w(e,t,n,!0),o.currentIndent+=1,n;var a=b(i,o);return i.current()===t&&(o.tokenize.pop(),o.currentIndent-=1,a=n),a}}function _(e,t,n){return function(r,i){return!n&&r.match("{"+e)?(i.currentIndent+=1,i.tokenize[i.tokenize.length-1]=_(e,t,!0),"meta"):r.match(t+"}")?(i.currentIndent-=1,i.tokenize.pop(),"meta"):b(r,i)}}function x(e,t){return e.eatSpace()?null:(e.match(s)?e.eat(/[!?]/):e.match(r)||e.match(i)||e.match(o),t.tokenize.pop(),"def")}function k(e,t){return e.eatSpace()?null:(e.match(l),t.tokenize.pop(),"def")}function E(e,t,n){return function(r,i){for(var o=!1;r.peek();)if(o)r.next(),o=!1;else{if(r.match("{%",!1))return i.tokenize.push(_("%","%")),t;if(r.match("{{",!1))return i.tokenize.push(_("{","}")),t;if(n&&r.match("#{",!1))return i.tokenize.push(w("#{","}","meta")),t;var a=r.next();if(a==e)return i.tokenize.pop(),t;o=n&&"\\"==a}return t}}return{startState:function(){return{tokenize:[b],currentIndent:0,lastToken:null,lastStyle:null,blocks:[]}},token:function(e,t){var n=t.tokenize[t.tokenize.length-1](e,t),r=e.current();return n&&"comment"!=n&&(t.lastToken=r,t.lastStyle=n),n},indent:function(t,n){return n=n.replace(/^\s*(?:\{%)?\s*|\s*(?:%\})?\s*$/g,""),h.test(n)||g.test(n)?e.indentUnit*(t.currentIndent-1):e.indentUnit*t.currentIndent},fold:"indent",electricInput:t(m.concat(p),!0),lineComment:"#"}})),e.defineMIME("text/x-crystal","crystal")}(n(23326))},98627:(e,t,n)=>{!function(e){"use strict";function t(e){for(var t={},n=0;n*\/]/.test(n)?x(null,"select-op"):"."==n&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?x("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?x(null,n):e.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(t.tokenize=S),x("variable callee","variable")):/[\w\\\-]/.test(n)?(e.eatWhile(/[\w\\\-]/),x("property","word")):x(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),x("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?x("variable-2","variable-definition"):x("variable-2","variable")):e.match(/^\w+-/)?x("meta","meta"):void 0}function E(e){return function(t,n){for(var r,i=!1;null!=(r=t.next());){if(r==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==r}return(r==e||!i&&")"!=e)&&(n.tokenize=null),x("string","string")}}function S(e,t){return e.next(),e.match(/^\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=E(")"),x(null,"(")}function C(e,t,n){this.type=e,this.indent=t,this.prev=n}function T(e,t,n,r){return e.context=new C(n,t.indentation()+(!1===r?0:a),e.context),n}function O(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function A(e,t,n){return D[n.context.type](e,t,n)}function P(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return A(e,t,n)}function R(e){var t=e.current().toLowerCase();o=v.hasOwnProperty(t)?"atom":g.hasOwnProperty(t)?"keyword":"variable"}var D={top:function(e,t,n){if("{"==e)return T(n,t,"block");if("}"==e&&n.context.prev)return O(n);if(w&&/@component/i.test(e))return T(n,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return T(n,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return T(n,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return n.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return T(n,t,"at");if("hash"==e)o="builtin";else if("word"==e)o="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return T(n,t,"interpolation");if(":"==e)return"pseudo";if(y&&"("==e)return T(n,t,"parens")}return n.context.type},block:function(e,t,n){if("word"==e){var r=t.current().toLowerCase();return f.hasOwnProperty(r)?(o="property","maybeprop"):p.hasOwnProperty(r)?(o=_?"string-2":"property","maybeprop"):y?(o=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(o+=" error","maybeprop")}return"meta"==e?"block":y||"hash"!=e&&"qualifier"!=e?D.top(e,t,n):(o="error","block")},maybeprop:function(e,t,n){return":"==e?T(n,t,"prop"):A(e,t,n)},prop:function(e,t,n){if(";"==e)return O(n);if("{"==e&&y)return T(n,t,"propBlock");if("}"==e||"{"==e)return P(e,t,n);if("("==e)return T(n,t,"parens");if("hash"!=e||/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(t.current())){if("word"==e)R(t);else if("interpolation"==e)return T(n,t,"interpolation")}else o+=" error";return"prop"},propBlock:function(e,t,n){return"}"==e?O(n):"word"==e?(o="property","maybeprop"):n.context.type},parens:function(e,t,n){return"{"==e||"}"==e?P(e,t,n):")"==e?O(n):"("==e?T(n,t,"parens"):"interpolation"==e?T(n,t,"interpolation"):("word"==e&&R(t),"parens")},pseudo:function(e,t,n){return"meta"==e?"pseudo":"word"==e?(o="variable-3",n.context.type):A(e,t,n)},documentTypes:function(e,t,n){return"word"==e&&l.hasOwnProperty(t.current())?(o="tag",n.context.type):D.atBlock(e,t,n)},atBlock:function(e,t,n){if("("==e)return T(n,t,"atBlock_parens");if("}"==e||";"==e)return P(e,t,n);if("{"==e)return O(n)&&T(n,t,y?"block":"top");if("interpolation"==e)return T(n,t,"interpolation");if("word"==e){var r=t.current().toLowerCase();o="only"==r||"not"==r||"and"==r||"or"==r?"keyword":u.hasOwnProperty(r)?"attribute":c.hasOwnProperty(r)?"property":d.hasOwnProperty(r)?"keyword":f.hasOwnProperty(r)?"property":p.hasOwnProperty(r)?_?"string-2":"property":v.hasOwnProperty(r)?"atom":g.hasOwnProperty(r)?"keyword":"error"}return n.context.type},atComponentBlock:function(e,t,n){return"}"==e?P(e,t,n):"{"==e?O(n)&&T(n,t,y?"block":"top",!1):("word"==e&&(o="error"),n.context.type)},atBlock_parens:function(e,t,n){return")"==e?O(n):"{"==e||"}"==e?P(e,t,n,2):D.atBlock(e,t,n)},restricted_atBlock_before:function(e,t,n){return"{"==e?T(n,t,"restricted_atBlock"):"word"==e&&"@counter-style"==n.stateArg?(o="variable","restricted_atBlock_before"):A(e,t,n)},restricted_atBlock:function(e,t,n){return"}"==e?(n.stateArg=null,O(n)):"word"==e?(o="@font-face"==n.stateArg&&!h.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==n.stateArg&&!m.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,n){return"word"==e?(o="variable","keyframes"):"{"==e?T(n,t,"top"):A(e,t,n)},at:function(e,t,n){return";"==e?O(n):"{"==e||"}"==e?P(e,t,n):("word"==e?o="tag":"hash"==e&&(o="builtin"),"at")},interpolation:function(e,t,n){return"}"==e?O(n):"{"==e||";"==e?P(e,t,n):("word"==e?o="variable":"variable"!=e&&"("!=e&&")"!=e&&(o="error"),"interpolation")}};return{startState:function(e){return{tokenize:null,state:r?"block":"top",stateArg:null,context:new C(r?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var n=(t.tokenize||k)(e,t);return n&&"object"==typeof n&&(i=n[1],n=n[0]),o=n,"comment"!=i&&(t.state=D[t.state](i,e,t)),o},indent:function(e,t){var n=e.context,r=t&&t.charAt(0),i=n.indent;return"prop"!=n.type||"}"!=r&&")"!=r||(n=n.prev),n.prev&&("}"!=r||"block"!=n.type&&"top"!=n.type&&"interpolation"!=n.type&&"restricted_atBlock"!=n.type?(")"!=r||"parens"!=n.type&&"atBlock_parens"!=n.type)&&("{"!=r||"at"!=n.type&&"atBlock"!=n.type)||(i=Math.max(0,n.indent-a)):i=(n=n.prev).indent),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:b,fold:"brace"}}));var n=["domain","regexp","url","url-prefix"],r=t(n),i=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],o=t(i),a=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],s=t(a),l=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],u=t(l),c=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],d=t(c),f=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],p=t(f),h=t(["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),m=t(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),g=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","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","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","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","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],v=t(g),y=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],b=t(y),w=n.concat(i).concat(a).concat(l).concat(c).concat(f).concat(g).concat(y);function _(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}e.registerHelper("hintWords","css",w),e.defineMIME("text/css",{documentTypes:r,mediaTypes:o,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:d,nonStandardPropertyKeywords:p,fontProperties:h,counterDescriptors:m,colorKeywords:v,valueKeywords:b,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=_,_(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:o,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:d,nonStandardPropertyKeywords:p,colorKeywords:v,valueKeywords:b,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=_,_(e,t)):["operator","operator"]},":":function(e){return!!e.match(/^\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:o,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:d,nonStandardPropertyKeywords:p,colorKeywords:v,valueKeywords:b,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=_,_(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:r,mediaTypes:o,mediaFeatures:s,propertyKeywords:d,nonStandardPropertyKeywords:p,fontProperties:h,counterDescriptors:m,colorKeywords:v,valueKeywords:b,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=_,_(e,t))}},name:"css",helperType:"gss"})}(n(23326))},28320:(e,t,n)=>{!function(e){"use strict";var t=function(e){return new RegExp("^(?:"+e.join("|")+")$","i")};e.defineMode("cypher",(function(n){var r,i=function(e){r=null;var t=e.next();if('"'===t)return e.match(/^[^"]*"/),"string";if("'"===t)return e.match(/^[^']*'/),"string";if(/[{}\(\),\.;\[\]]/.test(t))return r=t,"node";if("/"===t&&e.eat("/"))return e.skipToEnd(),"comment";if(f.test(t))return e.eatWhile(f),null;if(e.eatWhile(/[_\w\d]/),e.eat(":"))return e.eatWhile(/[\w\d_\-]/),"atom";var n=e.current();return l.test(n)?"builtin":u.test(n)?"def":c.test(n)||d.test(n)?"keyword":"variable"},o=function(e,t,n){return e.context={prev:e.context,indent:e.indent,col:n,type:t}},a=function(e){return e.indent=e.context.indent,e.context=e.context.prev},s=n.indentUnit,l=t(["abs","acos","allShortestPaths","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endnode","exp","extract","filter","floor","haversin","head","id","keys","labels","last","left","length","log","log10","lower","ltrim","max","min","node","nodes","percentileCont","percentileDisc","pi","radians","rand","range","reduce","rel","relationship","relationships","replace","reverse","right","round","rtrim","shortestPath","sign","sin","size","split","sqrt","startnode","stdev","stdevp","str","substring","sum","tail","tan","timestamp","toFloat","toInt","toString","trim","type","upper"]),u=t(["all","and","any","contains","exists","has","in","none","not","or","single","xor"]),c=t(["as","asc","ascending","assert","by","case","commit","constraint","create","csv","cypher","delete","desc","descending","detach","distinct","drop","else","end","ends","explain","false","fieldterminator","foreach","from","headers","in","index","is","join","limit","load","match","merge","null","on","optional","order","periodic","profile","remove","return","scan","set","skip","start","starts","then","true","union","unique","unwind","using","when","where","with","call","yield"]),d=t(["access","active","assign","all","alter","as","catalog","change","copy","create","constraint","constraints","current","database","databases","dbms","default","deny","drop","element","elements","exists","from","grant","graph","graphs","if","index","indexes","label","labels","management","match","name","names","new","node","nodes","not","of","on","or","password","populated","privileges","property","read","relationship","relationships","remove","replace","required","revoke","role","roles","set","show","start","status","stop","suspended","to","traverse","type","types","user","users","with","write"]),f=/[*+\-<>=&|~%^]/;return{startState:function(){return{tokenize:i,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()&&(t.context&&null==t.context.align&&(t.context.align=!1),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"!==n&&t.context&&null==t.context.align&&"pattern"!==t.context.type&&(t.context.align=!0),"("===r)o(t,")",e.column());else if("["===r)o(t,"]",e.column());else if("{"===r)o(t,"}",e.column());else if(/[\]\}\)]/.test(r)){for(;t.context&&"pattern"===t.context.type;)a(t);t.context&&r===t.context.type&&a(t)}else"."===r&&t.context&&"pattern"===t.context.type?a(t):/atom|string|variable/.test(n)&&t.context&&(/[\}\]]/.test(t.context.type)?o(t,"pattern",e.column()):"pattern"!==t.context.type||t.context.align||(t.context.align=!0,t.context.col=e.column()));return n},indent:function(t,n){var r=n&&n.charAt(0),i=t.context;if(/[\]\}]/.test(r))for(;i&&"pattern"===i.type;)i=i.prev;var o=i&&r===i.type;return i?"keywords"===i.type?e.commands.newlineAndIndent:i.align?i.col+(o?0:1):i.indent+(o?0:s):0}}})),e.modeExtensions.cypher={autoFormatLineBreaks:function(e){for(var t=e.split("\n"),n=/\s+\b(return|where|order by|match|with|skip|limit|create|delete|set)\b\s/g,r=0;r{!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r!?|\/]/;function p(e,t){var n,i=e.next();if(c[i]){var o=c[i](e,t);if(!1!==o)return o}if('"'==i||"'"==i||"`"==i)return t.tokenize=(n=i,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return(o||!i&&!d)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(i))return r=i,null;if(/\d/.test(i))return e.eatWhile(/[\w\.]/),"number";if("/"==i){if(e.eat("+"))return t.tokenize=m,m(e,t);if(e.eat("*"))return t.tokenize=h,h(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(f.test(i))return e.eatWhile(f),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var p=e.current();return a.propertyIsEnumerable(p)?(l.propertyIsEnumerable(p)&&(r="newstatement"),"keyword"):s.propertyIsEnumerable(p)?(l.propertyIsEnumerable(p)&&(r="newstatement"),"builtin"):u.propertyIsEnumerable(p)?"atom":"variable"}function h(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function m(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="+"==n}return"comment"}function g(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function v(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new g(r,t,n,null,e.context)}function y(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new g((e||0)-i,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;r=null;var i=(t.tokenize||p)(e,t);if("comment"==i||"meta"==i)return i;if(null==n.align&&(n.align=!0),";"!=r&&":"!=r&&","!=r||"statement"!=n.type)if("{"==r)v(t,e.column(),"}");else if("["==r)v(t,e.column(),"]");else if("("==r)v(t,e.column(),")");else if("}"==r){for(;"statement"==n.type;)n=y(t);for("}"==n.type&&(n=y(t));"statement"==n.type;)n=y(t)}else r==n.type?y(t):(("}"==n.type||"top"==n.type)&&";"!=r||"statement"==n.type&&"newstatement"==r)&&v(t,e.column(),"statement");else y(t);return t.startOfLine=!1,i},indent:function(t,n){if(t.tokenize!=p&&null!=t.tokenize)return e.Pass;var r=t.context,a=n&&n.charAt(0);"statement"==r.type&&"}"==a&&(r=r.prev);var s=a==r.type;return"statement"==r.type?r.indented+("{"==a?0:o):r.align?r.column+(s?0:1):r.indented+(s?0:i)},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}}));var n="body catch class do else enum for foreach foreach_reverse if in interface mixin out scope struct switch try union unittest version while with";e.defineMIME("text/x-d",{name:"d",keywords:t("abstract alias align asm assert auto break case cast cdouble cent cfloat const continue debug default delegate delete deprecated export extern final finally function goto immutable import inout invariant is lazy macro module new nothrow override package pragma private protected public pure ref return shared short static super synchronized template this throw typedef typeid typeof volatile __FILE__ __LINE__ __gshared __traits __vector __parameters "+n),blockKeywords:t(n),builtin:t("bool byte char creal dchar double float idouble ifloat int ireal long real short ubyte ucent uint ulong ushort wchar wstring void size_t sizediff_t"),atoms:t("exit failure success true false null"),hooks:{"@":function(e,t){return e.eatWhile(/[\w\$_]/),"meta"}}})}(n(23326))},31061:(e,t,n)=>{!function(e){"use strict";var t="this super static final const abstract class extends external factory implements mixin get native set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as extension on yield late required sealed base interface when inline".split(" "),n="try catch finally do else for if switch while".split(" "),r="true false null".split(" "),i="void bool num int double dynamic var String Null Never".split(" ");function o(e){for(var t={},n=0;n0&&(t.tokenize=s(t),null)},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=d(1),t.tokenize(e,t))},token:function(e,t,n){if("variable"==n&&RegExp("^[_$]*[A-Z][a-zA-Z0-9_$]*$","g").test(e.current()))return"variable-2"}}}),e.registerHelper("hintWords","application/dart",t.concat(r).concat(i)),e.defineMode("dart",(function(t){return e.getMode(t,"application/dart")}),"clike")}(n(23326),n(80011))},16357:(e,t,n)=>{!function(e){"use strict";e.defineMode("diff",(function(){var e={"+":"positive","-":"negative","@":"meta"};return{token:function(t){var n=t.string.search(/[\t ]+?$/);if(!t.sol()||0===n)return t.skipToEnd(),("error "+(e[t.string.charAt(0)]||"")).replace(/ $/,"");var r=e[t.peek()]||t.skipToEnd();return-1===n?t.skipToEnd():t.pos=n,r}}})),e.defineMIME("text/x-diff","diff")}(n(23326))},51872:(e,t,n)=>{!function(e){"use strict";e.defineMode("django:inner",(function(){var e=["block","endblock","for","endfor","true","false","filter","endfilter","loop","none","self","super","if","elif","endif","as","else","import","with","endwith","without","context","ifequal","endifequal","ifnotequal","endifnotequal","extends","include","load","comment","endcomment","empty","url","static","trans","blocktrans","endblocktrans","now","regroup","lorem","ifchanged","endifchanged","firstof","debug","cycle","csrf_token","autoescape","endautoescape","spaceless","endspaceless","ssi","templatetag","verbatim","endverbatim","widthratio"],t=["add","addslashes","capfirst","center","cut","date","default","default_if_none","dictsort","dictsortreversed","divisibleby","escape","escapejs","filesizeformat","first","floatformat","force_escape","get_digit","iriencode","join","last","length","length_is","linebreaks","linebreaksbr","linenumbers","ljust","lower","make_list","phone2numeric","pluralize","pprint","random","removetags","rjust","safe","safeseq","slice","slugify","stringformat","striptags","time","timesince","timeuntil","title","truncatechars","truncatechars_html","truncatewords","truncatewords_html","unordered_list","upper","urlencode","urlize","urlizetrunc","wordcount","wordwrap","yesno"],n=["==","!=","<",">","<=",">="],r=["in","not","or","and"];function i(e,t){if(e.match("{{"))return t.tokenize=a,"tag";if(e.match("{%"))return t.tokenize=s,"tag";if(e.match("{#"))return t.tokenize=l,"comment";for(;null!=e.next()&&!e.match(/\{[{%#]/,!1););return null}function o(e,t){return function(n,r){return!r.escapeNext&&n.eat(e)?r.tokenize=t:(r.escapeNext&&(r.escapeNext=!1),"\\"==n.next()&&(r.escapeNext=!0)),"string"}}function a(e,n){if(n.waitDot){if(n.waitDot=!1,"."!=e.peek())return"null";if(e.match(/\.\W+/))return"error";if(e.eat("."))return n.waitProperty=!0,"null";throw Error("Unexpected error while waiting for property.")}if(n.waitPipe){if(n.waitPipe=!1,"|"!=e.peek())return"null";if(e.match(/\.\W+/))return"error";if(e.eat("|"))return n.waitFilter=!0,"null";throw Error("Unexpected error while waiting for filter.")}return n.waitProperty&&(n.waitProperty=!1,e.match(/\b(\w+)\b/))?(n.waitDot=!0,n.waitPipe=!0,"property"):n.waitFilter&&(n.waitFilter=!1,e.match(t))?"variable-2":e.eatSpace()?(n.waitProperty=!1,"null"):e.match(/\b\d+(\.\d+)?\b/)?"number":e.match("'")?(n.tokenize=o("'",n.tokenize),"string"):e.match('"')?(n.tokenize=o('"',n.tokenize),"string"):e.match(/\b(\w+)\b/)&&!n.foundVariable?(n.waitDot=!0,n.waitPipe=!0,"variable"):e.match("}}")?(n.waitProperty=null,n.waitFilter=null,n.waitDot=null,n.waitPipe=null,n.tokenize=i,"tag"):(e.next(),"null")}function s(a,s){if(s.waitDot){if(s.waitDot=!1,"."!=a.peek())return"null";if(a.match(/\.\W+/))return"error";if(a.eat("."))return s.waitProperty=!0,"null";throw Error("Unexpected error while waiting for property.")}if(s.waitPipe){if(s.waitPipe=!1,"|"!=a.peek())return"null";if(a.match(/\.\W+/))return"error";if(a.eat("|"))return s.waitFilter=!0,"null";throw Error("Unexpected error while waiting for filter.")}if(s.waitProperty&&(s.waitProperty=!1,a.match(/\b(\w+)\b/)))return s.waitDot=!0,s.waitPipe=!0,"property";if(s.waitFilter&&(s.waitFilter=!1,a.match(t)))return"variable-2";if(a.eatSpace())return s.waitProperty=!1,"null";if(a.match(/\b\d+(\.\d+)?\b/))return"number";if(a.match("'"))return s.tokenize=o("'",s.tokenize),"string";if(a.match('"'))return s.tokenize=o('"',s.tokenize),"string";if(a.match(n))return"operator";if(a.match(r))return"keyword";var l=a.match(e);return l?("comment"==l[0]&&(s.blockCommentTag=!0),"keyword"):a.match(/\b(\w+)\b/)?(s.waitDot=!0,s.waitPipe=!0,"variable"):a.match("%}")?(s.waitProperty=null,s.waitFilter=null,s.waitDot=null,s.waitPipe=null,s.blockCommentTag?(s.blockCommentTag=!1,s.tokenize=u):s.tokenize=i,"tag"):(a.next(),"null")}function l(e,t){return e.match(/^.*?#\}/)?t.tokenize=i:e.skipToEnd(),"comment"}function u(e,t){return e.match(/\{%\s*endcomment\s*%\}/,!1)?(t.tokenize=s,e.match("{%"),"tag"):(e.next(),"comment")}return e=new RegExp("^\\b("+e.join("|")+")\\b"),t=new RegExp("^\\b("+t.join("|")+")\\b"),n=new RegExp("^\\b("+n.join("|")+")\\b"),r=new RegExp("^\\b("+r.join("|")+")\\b"),{startState:function(){return{tokenize:i}},token:function(e,t){return t.tokenize(e,t)},blockCommentStart:"{% comment %}",blockCommentEnd:"{% endcomment %}"}})),e.defineMode("django",(function(t){var n=e.getMode(t,"text/html"),r=e.getMode(t,"django:inner");return e.overlayMode(n,r)})),e.defineMIME("text/x-django","django")}(n(23326),n(38425),n(19962))},72694:(e,t,n)=>{!function(e){"use strict";var t="from",n=new RegExp("^(\\s*)\\b("+t+")\\b","i"),r=["run","cmd","entrypoint","shell"],i=new RegExp("^(\\s*)("+r.join("|")+")(\\s+\\[)","i"),o="expose",a=new RegExp("^(\\s*)("+o+")(\\s+)","i"),s="("+[t,o].concat(r).concat(["arg","from","maintainer","label","env","add","copy","volume","user","workdir","onbuild","stopsignal","healthcheck","shell"]).join("|")+")",l=new RegExp("^(\\s*)"+s+"(\\s*)(#.*)?$","i"),u=new RegExp("^(\\s*)"+s+"(\\s+)","i");e.defineSimpleMode("dockerfile",{start:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:n,token:[null,"keyword"],sol:!0,next:"from"},{regex:l,token:[null,"keyword",null,"error"],sol:!0},{regex:i,token:[null,"keyword",null],sol:!0,next:"array"},{regex:a,token:[null,"keyword",null],sol:!0,next:"expose"},{regex:u,token:[null,"keyword",null],sol:!0,next:"arguments"},{regex:/./,token:null}],from:[{regex:/\s*$/,token:null,next:"start"},{regex:/(\s*)(#.*)$/,token:[null,"error"],next:"start"},{regex:/(\s*\S+\s+)(as)/i,token:[null,"keyword"],next:"start"},{token:null,next:"start"}],single:[{regex:/(?:[^\\']|\\.)/,token:"string"},{regex:/'/,token:"string",pop:!0}],double:[{regex:/(?:[^\\"]|\\.)/,token:"string"},{regex:/"/,token:"string",pop:!0}],array:[{regex:/\]/,token:null,next:"start"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"}],expose:[{regex:/\d+$/,token:"number",next:"start"},{regex:/[^\d]+$/,token:null,next:"start"},{regex:/\d+/,token:"number"},{regex:/[^\d]+/,token:null},{token:null,next:"start"}],arguments:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:/"(?:[^\\"]|\\.)*"?$/,token:"string",next:"start"},{regex:/"/,token:"string",push:"double"},{regex:/'(?:[^\\']|\\.)*'?$/,token:"string",next:"start"},{regex:/'/,token:"string",push:"single"},{regex:/[^#"']+[\\`]$/,token:null},{regex:/[^#"']+$/,token:null,next:"start"},{regex:/[^#"']+/,token:null},{token:null,next:"start"}],meta:{lineComment:"#"}}),e.defineMIME("text/x-dockerfile","dockerfile")}(n(23326),n(81094))},39974:(e,t,n)=>{!function(e){"use strict";e.defineMode("dtd",(function(e){var t,n=e.indentUnit;function r(e,n){return t=n,e}function i(e,t){var n,a=e.next();if("<"!=a||!e.eat("!")){if("<"==a&&e.eat("?"))return t.tokenize=function(e,t){for(;!e.eol();){if(e.match("?>")){t.tokenize=i;break}e.next()}return"meta"},r("meta",a);if("#"==a&&e.eatWhile(/[\w]/))return r("atom","tag");if("|"==a)return r("keyword","separator");if(a.match(/[\(\)\[\]\-\.,\+\?>]/))return r(null,a);if(a.match(/[\[\]]/))return r("rule",a);if('"'==a||"'"==a)return t.tokenize=(n=a,function(e,t){for(var o,a=!1;null!=(o=e.next());){if(o==n&&!a){t.tokenize=i;break}a=!a&&"\\"==o}return r("string","tag")}),t.tokenize(e,t);if(e.eatWhile(/[a-zA-Z\?\+\d]/)){var s=e.current();return null!==s.substr(s.length-1,s.length).match(/\?|\+/)&&e.backUp(1),r("tag","tag")}return"%"==a||"*"==a?r("number","number"):(e.eatWhile(/[\w\\\-_%.{,]/),r(null,null))}return e.eatWhile(/[\-]/)?(t.tokenize=o,o(e,t)):e.eatWhile(/[\w]/)?r("keyword","doindent"):void 0}function o(e,t){for(var n,o=0;null!=(n=e.next());){if(o>=2&&">"==n){t.tokenize=i;break}o="-"==n?o+1:0}return r("comment","comment")}return{startState:function(e){return{tokenize:i,baseIndent:e||0,stack:[]}},token:function(e,n){if(e.eatSpace())return null;var r=n.tokenize(e,n),i=n.stack[n.stack.length-1];return"["==e.current()||"doindent"===t||"["==t?n.stack.push("rule"):"endtag"===t?n.stack[n.stack.length-1]="endtag":"]"==e.current()||"]"==t||">"==t&&"rule"==i?n.stack.pop():"["==t&&n.stack.push("["),r},indent:function(e,r){var i=e.stack.length;return"]"===r.charAt(0)?i--:">"===r.substr(r.length-1,r.length)&&("<"===r.substr(0,1)||"doindent"==t&&r.length>1||("doindent"==t?i--:">"==t&&r.length>1||"tag"==t&&">"!==r||("tag"==t&&"rule"==e.stack[e.stack.length-1]?i--:"tag"==t?i++:">"===r&&"rule"==e.stack[e.stack.length-1]&&">"===t?i--:">"===r&&"rule"==e.stack[e.stack.length-1]||("<"!==r.substr(0,1)&&">"===r.substr(0,1)?i-=1:">"===r||(i-=1)))),null!=t&&"]"!=t||i--),e.baseIndent+i*n},electricChars:"]>"}})),e.defineMIME("application/xml-dtd","dtd")}(n(23326))},49024:(e,t,n)=>{!function(e){"use strict";function t(e,t){for(var n=0;n",symbolGlobal:"\\*"+i+"\\*",symbolConstant:"\\$"+i},s={symbolKeyword:"atom",symbolClass:"tag",symbolGlobal:"variable-2",symbolConstant:"variable-3"};for(var l in a)a.hasOwnProperty(l)&&(a[l]=new RegExp("^"+a[l]));a.keyword=[/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/];var u={keyword:"keyword",definition:"def",simpleDefinition:"def",signalingCalls:"builtin"},c={},d={};function f(e,t,n){return t.tokenize=n,n(e,t)}function p(e,t){var r=e.peek();if("'"==r||'"'==r)return e.next(),f(e,t,m(r,"string"));if("/"==r){if(e.next(),e.eat("*"))return f(e,t,h);if(e.eat("/"))return e.skipToEnd(),"comment";e.backUp(1)}else if(/[+\-\d\.]/.test(r)){if(e.match(/^[+-]?[0-9]*\.[0-9]*([esdx][+-]?[0-9]+)?/i)||e.match(/^[+-]?[0-9]+([esdx][+-]?[0-9]+)/i)||e.match(/^[+-]?\d+/))return"number"}else{if("#"==r)return e.next(),'"'==(r=e.peek())?(e.next(),f(e,t,m('"',"string"))):"b"==r?(e.next(),e.eatWhile(/[01]/),"number"):"x"==r?(e.next(),e.eatWhile(/[\da-f]/i),"number"):"o"==r?(e.next(),e.eatWhile(/[0-7]/),"number"):"#"==r?(e.next(),"punctuation"):"["==r||"("==r?(e.next(),"bracket"):e.match(/f|t|all-keys|include|key|next|rest/i)?"atom":(e.eatWhile(/[-a-zA-Z]/),"error");if("~"==r)return e.next(),"="==(r=e.peek())?(e.next(),"="==(r=e.peek())?(e.next(),"operator"):"operator"):"operator";if(":"==r){if(e.next(),"="==(r=e.peek()))return e.next(),"operator";if(":"==r)return e.next(),"punctuation"}else{if(-1!="[](){}".indexOf(r))return e.next(),"bracket";if(-1!=".,".indexOf(r))return e.next(),"punctuation";if(e.match("end"))return"keyword"}}for(var i in a)if(a.hasOwnProperty(i)){var l=a[i];if(l instanceof Array&&n(l,(function(t){return e.match(t)}))||e.match(l))return s[i]}return/[+\-*\/^=<>&|]/.test(r)?(e.next(),"operator"):e.match("define")?"def":(e.eatWhile(/[\w\-]/),c.hasOwnProperty(e.current())?d[e.current()]:e.current().match(o)?"variable":(e.next(),"variable-2"))}function h(e,t){for(var n,r=!1,i=!1,o=0;n=e.next();){if("/"==n&&r){if(!(o>0)){t.tokenize=p;break}o--}else"*"==n&&i&&o++;r="*"==n,i="/"==n}return"comment"}function m(e,t){return function(n,r){for(var i,o=!1,a=!1;null!=(i=n.next());){if(i==e&&!o){a=!0;break}o=!o&&"\\"==i}return!a&&o||(r.tokenize=p),t}}return t(["keyword","definition","simpleDefinition","signalingCalls"],(function(e){t(r[e],(function(t){c[t]=e,d[t]=u[e]}))})),{startState:function(){return{tokenize:p,currentIndent:0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"/*",blockCommentEnd:"*/"}})),e.defineMIME("text/x-dylan","dylan")}(n(23326))},5807:(e,t,n)=>{!function(e){"use strict";e.defineMode("ebnf",(function(t){var n=null;return t.bracesMode&&(n=e.getMode(t,t.bracesMode)),{startState:function(){return{stringType:null,commentType:null,braced:0,lhs:!0,localState:null,stack:[],inDefinition:!1}},token:function(t,r){if(t){switch(0===r.stack.length&&('"'==t.peek()||"'"==t.peek()?(r.stringType=t.peek(),t.next(),r.stack.unshift(1)):t.match("/*")?(r.stack.unshift(0),r.commentType=0):t.match("(*")&&(r.stack.unshift(0),r.commentType=1)),r.stack[0]){case 1:for(;1===r.stack[0]&&!t.eol();)t.peek()===r.stringType?(t.next(),r.stack.shift()):"\\"===t.peek()?(t.next(),t.next()):t.match(/^.[^\\\"\']*/);return r.lhs?"property string":"string";case 0:for(;0===r.stack[0]&&!t.eol();)0===r.commentType&&t.match("*/")||1===r.commentType&&t.match("*)")?(r.stack.shift(),r.commentType=null):t.match(/^.[^\*]*/);return"comment";case 2:for(;2===r.stack[0]&&!t.eol();)t.match(/^[^\]\\]+/)||t.match(".")||r.stack.shift();return"operator"}var i=t.peek();if(null!==n&&(r.braced||"{"===i)){null===r.localState&&(r.localState=e.startState(n));var o=n.token(t,r.localState),a=t.current();if(!o)for(var s=0;s>/))return"builtin"}return t.match("//")?(t.skipToEnd(),"comment"):t.match("return")?"operator":t.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)?t.match(/(?=[\(.])/)?"variable":t.match(/(?=[\s\n]*[:=])/)?"def":"variable-2":-1!=["[","]","(",")"].indexOf(t.peek())?(t.next(),"bracket"):(t.eatSpace()||t.next(),null)}}}})),e.defineMIME("text/x-ebnf","ebnf")}(n(23326))},53002:(e,t,n)=>{!function(e){"use strict";e.defineMode("ecl",(function(e){function t(e){for(var t={},n=e.split(" "),r=0;r!?|\/]/;function p(e,t){var r,m=e.next();if(d[m]){var g=d[m](e,t);if(!1!==g)return g}if('"'==m||"'"==m)return t.tokenize=(r=m,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){o=!0;break}i=!i&&"\\"==n}return!o&&i||(t.tokenize=p),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(m))return n=m,null;if(/\d/.test(m))return e.eatWhile(/[\w\.]/),"number";if("/"==m){if(e.eat("*"))return t.tokenize=h,h(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(f.test(m))return e.eatWhile(f),"operator";e.eatWhile(/[\w\$_]/);var v=e.current().toLowerCase();if(i.propertyIsEnumerable(v))return u.propertyIsEnumerable(v)&&(n="newstatement"),"keyword";if(o.propertyIsEnumerable(v))return u.propertyIsEnumerable(v)&&(n="newstatement"),"variable";if(a.propertyIsEnumerable(v))return u.propertyIsEnumerable(v)&&(n="newstatement"),"variable-2";if(s.propertyIsEnumerable(v))return u.propertyIsEnumerable(v)&&(n="newstatement"),"variable-3";if(l.propertyIsEnumerable(v))return u.propertyIsEnumerable(v)&&(n="newstatement"),"builtin";for(var y=v.length-1;y>=0&&(!isNaN(v[y])||"_"==v[y]);)--y;if(y>0){var b=v.substr(0,y+1);if(s.propertyIsEnumerable(b))return u.propertyIsEnumerable(b)&&(n="newstatement"),"variable-3"}return c.propertyIsEnumerable(v)?"atom":null}function h(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=p;break}r="*"==n}return"comment"}function m(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function g(e,t,n){return e.context=new m(e.indented,t,n,null,e.context)}function v(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new m((e||0)-r,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;n=null;var i=(t.tokenize||p)(e,t);if("comment"==i||"meta"==i)return i;if(null==r.align&&(r.align=!0),";"!=n&&":"!=n||"statement"!=r.type)if("{"==n)g(t,e.column(),"}");else if("["==n)g(t,e.column(),"]");else if("("==n)g(t,e.column(),")");else if("}"==n){for(;"statement"==r.type;)r=v(t);for("}"==r.type&&(r=v(t));"statement"==r.type;)r=v(t)}else n==r.type?v(t):("}"==r.type||"top"==r.type||"statement"==r.type&&"newstatement"==n)&&g(t,e.column(),"statement");else v(t);return t.startOfLine=!1,i},indent:function(e,t){if(e.tokenize!=p&&null!=e.tokenize)return 0;var n=e.context,i=t&&t.charAt(0);"statement"==n.type&&"}"==i&&(n=n.prev);var o=i==n.type;return"statement"==n.type?n.indented+("{"==i?0:r):n.align?n.column+(o?0:1):n.indented+(o?0:r)},electricChars:"{}"}})),e.defineMIME("text/x-ecl","ecl")}(n(23326))},57921:(e,t,n)=>{!function(e){"use strict";e.defineMode("eiffel",(function(){function e(e){for(var t={},n=0,r=e.length;n>"]);function r(e,t){if(e.eatSpace())return null;var n,r=e.next();return'"'==r||"'"==r?function(e,t,n){return n.tokenize.push(e),e(t,n)}((n=r,function(e,t){for(var r,i=!1;null!=(r=e.next());){if(r==n&&!i){t.tokenize.pop();break}i=!i&&"%"==r}return"string"}),e,t):"-"==r&&e.eat("-")?(e.skipToEnd(),"comment"):":"==r&&e.eat("=")?"operator":/[0-9]/.test(r)?(e.eatWhile(/[xXbBCc0-9\.]/),e.eat(/[\?\!]/),"ident"):/[a-zA-Z_0-9]/.test(r)?(e.eatWhile(/[a-zA-Z_0-9]/),e.eat(/[\?\!]/),"ident"):/[=+\-\/*^%<>~]/.test(r)?(e.eatWhile(/[=+\-\/*^%<>~]/),"operator"):null}return{startState:function(){return{tokenize:[r]}},token:function(e,r){var i=r.tokenize[r.tokenize.length-1](e,r);if("ident"==i){var o=e.current();i=t.propertyIsEnumerable(e.current())?"keyword":n.propertyIsEnumerable(e.current())?"operator":/^[A-Z][A-Z_0-9]*$/g.test(o)?"tag":/^0[bB][0-1]+$/g.test(o)||/^0[cC][0-7]+$/g.test(o)||/^0[xX][a-fA-F0-9]+$/g.test(o)||/^([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)$/g.test(o)||/^[0-9]+$/g.test(o)?"number":"variable"}return i},lineComment:"--"}})),e.defineMIME("text/x-eiffel","eiffel")}(n(23326))},12589:(e,t,n)=>{!function(e){"use strict";e.defineMode("elm",(function(){function e(e,t,n){return t(n),n(e,t)}var t=/[a-z]/,n=/[A-Z]/,r=/[a-zA-Z0-9_]/,i=/[0-9]/,o=/[0-9A-Fa-f]/,a=/[-&*+.\\/<>=?^|:]/,s=/[(),[\]{}]/,l=/[ \v\f]/;function u(){return function(u,m){if(u.eatWhile(l))return null;var g=u.next();if(s.test(g))return"{"===g&&u.eat("-")?e(u,m,c(1)):"["===g&&u.match("glsl|")?e(u,m,h):"builtin";if("'"===g)return e(u,m,p);if('"'===g)return u.eat('"')?u.eat('"')?e(u,m,d):"string":e(u,m,f);if(n.test(g))return u.eatWhile(r),"variable-2";if(t.test(g)){var v=1===u.pos;return u.eatWhile(r),v?"def":"variable"}if(i.test(g)){if("0"===g){if(u.eat(/[xX]/))return u.eatWhile(o),"number"}else u.eatWhile(i);return u.eat(".")&&u.eatWhile(i),u.eat(/[eE]/)&&(u.eat(/[-+]/),u.eatWhile(i)),"number"}return a.test(g)?"-"===g&&u.eat("-")?(u.skipToEnd(),"comment"):(u.eatWhile(a),"keyword"):"_"===g?"keyword":"error"}}function c(e){return 0==e?u():function(t,n){for(;!t.eol();){var r=t.next();if("{"==r&&t.eat("-"))++e;else if("-"==r&&t.eat("}")&&0==--e)return n(u()),"comment"}return n(c(e)),"comment"}}function d(e,t){for(;!e.eol();)if('"'===e.next()&&e.eat('"')&&e.eat('"'))return t(u()),"string";return"string"}function f(e,t){for(;e.skipTo('\\"');)e.next(),e.next();return e.skipTo('"')?(e.next(),t(u()),"string"):(e.skipToEnd(),t(u()),"error")}function p(e,t){for(;e.skipTo("\\'");)e.next(),e.next();return e.skipTo("'")?(e.next(),t(u()),"string"):(e.skipToEnd(),t(u()),"error")}function h(e,t){for(;!e.eol();)if("|"===e.next()&&e.eat("]"))return t(u()),"string";return"string"}var m={case:1,of:1,as:1,if:1,then:1,else:1,let:1,in:1,type:1,alias:1,module:1,where:1,import:1,exposing:1,port:1};return{startState:function(){return{f:u()}},copyState:function(e){return{f:e.f}},lineComment:"--",token:function(e,t){var n=t.f(e,(function(e){t.f=e})),r=e.current();return m.hasOwnProperty(r)?"keyword":n}}})),e.defineMIME("text/x-elm","elm")}(n(23326))},93710:(e,t,n)=>{!function(e){"use strict";e.defineMIME("text/x-erlang","erlang"),e.defineMode("erlang",(function(t){var n=["-type","-spec","-export_type","-opaque"],r=["after","begin","catch","case","cond","end","fun","if","let","of","query","receive","try","when"],i=/[\->,;]/,o=["->",";",","],a=["and","andalso","band","bnot","bor","bsl","bsr","bxor","div","not","or","orelse","rem","xor"],s=/[\+\-\*\/<>=\|:!]/,l=["=","+","-","*","/",">",">=","<","=<","=:=","==","=/=","/=","||","<-","!"],u=/[<\(\[\{]/,c=["<<","(","[","{"],d=/[>\)\]\}]/,f=["}","]",")",">>"],p=["is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_record","is_reference","is_tuple","atom","binary","bitstring","boolean","function","integer","list","number","pid","port","record","reference","tuple"],h=["abs","adler32","adler32_combine","alive","apply","atom_to_binary","atom_to_list","binary_to_atom","binary_to_existing_atom","binary_to_list","binary_to_term","bit_size","bitstring_to_list","byte_size","check_process_code","contact_binary","crc32","crc32_combine","date","decode_packet","delete_module","disconnect_node","element","erase","exit","float","float_to_list","garbage_collect","get","get_keys","group_leader","halt","hd","integer_to_list","internal_bif","iolist_size","iolist_to_binary","is_alive","is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_process_alive","is_record","is_reference","is_tuple","length","link","list_to_atom","list_to_binary","list_to_bitstring","list_to_existing_atom","list_to_float","list_to_integer","list_to_pid","list_to_tuple","load_module","make_ref","module_loaded","monitor_node","node","node_link","node_unlink","nodes","notalive","now","open_port","pid_to_list","port_close","port_command","port_connect","port_control","pre_loaded","process_flag","process_info","processes","purge_module","put","register","registered","round","self","setelement","size","spawn","spawn_link","spawn_monitor","spawn_opt","split_binary","statistics","term_to_binary","time","throw","tl","trunc","tuple_size","tuple_to_list","unlink","unregister","whereis"],m=/[\w@Ø-ÞÀ-Öß-öø-ÿ]/,g=/[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;function v(e,t,n){if(1==e.current().length&&t.test(e.current())){for(e.backUp(1);t.test(e.peek());)if(e.next(),x(e.current(),n))return!0;e.backUp(e.current().length-1)}return!1}function y(e,t,n){if(1==e.current().length&&t.test(e.current())){for(;t.test(e.peek());)e.next();for(;01&&"fun"===e[t].type&&"fun"===e[t-1].token)return e.slice(0,t-1);switch(e[t].token){case"}":return T(e,{g:["{"]});case"]":return T(e,{i:["["]});case")":return T(e,{i:["("]});case">>":return T(e,{i:["<<"]});case"end":return T(e,{i:["begin","case","fun","if","receive","try"]});case",":return T(e,{e:["begin","try","when","->",",","(","[","{","<<"]});case"->":return T(e,{r:["when"],m:["try","if","case","receive"]});case";":return T(e,{E:["case","fun","if","receive","try","when"]});case"catch":return T(e,{e:["try"]});case"of":return T(e,{e:["case"]});case"after":return T(e,{e:["receive","try"]});default:return e}}(e.tokenStack))}(e,function(e,t){return E(t.current(),t.column(),t.indentation(),e)}(n,t)),n){case"atom":case"boolean":return"atom";case"attribute":return"attribute";case"builtin":return"builtin";case"close_paren":case"colon":case"dot":case"open_paren":case"separator":default:return null;case"comment":return"comment";case"error":return"error";case"fun":return"meta";case"function":return"tag";case"guard":return"property";case"keyword":return"keyword";case"macro":return"variable-2";case"number":return"number";case"operator":return"operator";case"record":return"bracket";case"string":return"string";case"type":return"def";case"variable":return"variable"}}function E(e,t,n,r){return{token:e,column:t,indent:n,type:r}}function S(e){return E(e,0,0,e)}function C(e,t){var n=e.tokenStack.length,r=t||1;return!(n>|\|+|\(/))&&0===o.index?o[0]:"",l=C(n,1),u=C(n,2);return n.in_string||n.in_atom?e.Pass:u?"when"==l.token?l.column+a:"when"===s&&"function"===u.type?u.indent+a:"("===s&&"fun"===l.token?l.column+3:"catch"===s&&(i=A(n,["try"]))?i.column:x(s,["end","after","of"])?(i=A(n,["begin","case","fun","if","receive","try"]))?i.column:e.Pass:x(s,f)?(i=A(n,c))?i.column:e.Pass:x(l.token,[",","|","||"])||x(s,[",","|","||"])?(i=function(e){var t=e.tokenStack.slice(0,-1),n=P(t,"type",["open_paren"]);return!!R(t[n])&&t[n]}(n))?i.column+i.token.length:a:"->"==l.token?x(u.token,["receive","case","if","try"])?u.column+a+a:u.column+a:x(l.token,c)?l.column+l.token.length:R(i=function(e){var t=e.tokenStack,n=P(t,"type",["open_paren","separator","keyword"]),r=P(t,"type",["operator"]);return R(n)&&R(r)&&n{!function(e){"use strict";e.defineSimpleMode("factor",{start:[{regex:/#?!.*/,token:"comment"},{regex:/"""/,token:"string",next:"string3"},{regex:/(STRING:)(\s)/,token:["keyword",null],next:"string2"},{regex:/\S*?"/,token:"string",next:"string"},{regex:/(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\-?\d+.?\d*)(?=\s)/,token:"number"},{regex:/((?:GENERIC)|\:?\:)(\s+)(\S+)(\s+)(\()/,token:["keyword",null,"def",null,"bracket"],next:"stack"},{regex:/(M\:)(\s+)(\S+)(\s+)(\S+)/,token:["keyword",null,"def",null,"tag"]},{regex:/USING\:/,token:"keyword",next:"vocabulary"},{regex:/(USE\:|IN\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"tag"]},{regex:/(\S+\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"def"]},{regex:/(?:;|\\|t|f|if|loop|while|until|do|PRIVATE>|\.\*\?]+(?=\s|$)/,token:"builtin"},{regex:/[\)><]+\S+(?=\s|$)/,token:"builtin"},{regex:/(?:[\+\-\=\/\*<>])(?=\s|$)/,token:"keyword"},{regex:/\S+/,token:"variable"},{regex:/\s+|./,token:null}],vocabulary:[{regex:/;/,token:"keyword",next:"start"},{regex:/\S+/,token:"tag"},{regex:/\s+|./,token:null}],string:[{regex:/(?:[^\\]|\\.)*?"/,token:"string",next:"start"},{regex:/.*/,token:"string"}],string2:[{regex:/^;/,token:"keyword",next:"start"},{regex:/.*/,token:"string"}],string3:[{regex:/(?:[^\\]|\\.)*?"""/,token:"string",next:"start"},{regex:/.*/,token:"string"}],stack:[{regex:/\)/,token:"bracket",next:"start"},{regex:/--/,token:"bracket"},{regex:/\S+/,token:"meta"},{regex:/\s+|./,token:null}],meta:{dontIndentStates:["start","vocabulary","string","string3","stack"],lineComment:"!"}}),e.defineMIME("text/x-factor","factor")}(n(23326),n(81094))},5801:(e,t,n)=>{!function(e){"use strict";e.defineMode("fcl",(function(e){var t=e.indentUnit,n={term:!0,method:!0,accu:!0,rule:!0,then:!0,is:!0,and:!0,or:!0,if:!0,default:!0},r={var_input:!0,var_output:!0,fuzzify:!0,defuzzify:!0,function_block:!0,ruleblock:!0},i={end_ruleblock:!0,end_defuzzify:!0,end_function_block:!0,end_fuzzify:!0,end_var:!0},o={true:!0,false:!0,nan:!0,real:!0,min:!0,max:!0,cog:!0,cogs:!0},a=/[+\-*&^%:=<>!|\/]/;function s(e,t){var s=e.next();if(/[\d\.]/.test(s))return"."==s?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==s?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if("/"==s||"("==s){if(e.eat("*"))return t.tokenize=l,l(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(a.test(s))return e.eatWhile(a),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var u=e.current().toLowerCase();return n.propertyIsEnumerable(u)||r.propertyIsEnumerable(u)||i.propertyIsEnumerable(u)?"keyword":o.propertyIsEnumerable(u)?"atom":"variable"}function l(e,t){for(var n,r=!1;n=e.next();){if(("/"==n||")"==n)&&r){t.tokenize=s;break}r="*"==n}return"comment"}function u(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}return{startState:function(e){return{tokenize:null,context:new u((e||0)-t,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;var o=(t.tokenize||s)(e,t);if("comment"==o)return o;null==n.align&&(n.align=!0);var a=e.current().toLowerCase();return r.propertyIsEnumerable(a)?function(e,t,n){e.context=new u(e.indented,t,"end_block",null,e.context)}(t,e.column()):i.propertyIsEnumerable(a)&&function(e){e.context.prev&&("end_block"==e.context.type&&(e.indented=e.context.indented),e.context=e.context.prev)}(t),t.startOfLine=!1,o},indent:function(e,n){if(e.tokenize!=s&&null!=e.tokenize)return 0;var r=e.context,o=i.propertyIsEnumerable(n);return r.align?r.column+(o?0:1):r.indented+(o?0:t)},electricChars:"ryk",fold:"brace",blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:"//"}})),e.defineMIME("text/x-fcl","fcl")}(n(23326))},45729:(e,t,n)=>{!function(e){"use strict";function t(e){var t=[];return e.split(" ").forEach((function(e){t.push({name:e})})),t}var n=t("INVERT AND OR XOR 2* 2/ LSHIFT RSHIFT 0= = 0< < > U< MIN MAX 2DROP 2DUP 2OVER 2SWAP ?DUP DEPTH DROP DUP OVER ROT SWAP >R R> R@ + - 1+ 1- ABS NEGATE S>D * M* UM* FM/MOD SM/REM UM/MOD */ */MOD / /MOD MOD HERE , @ ! CELL+ CELLS C, C@ C! CHARS 2@ 2! ALIGN ALIGNED +! ALLOT CHAR [CHAR] [ ] BL FIND EXECUTE IMMEDIATE COUNT LITERAL STATE ; DOES> >BODY EVALUATE SOURCE >IN <# # #S #> HOLD SIGN BASE >NUMBER HEX DECIMAL FILL MOVE . CR EMIT SPACE SPACES TYPE U. .R U.R ACCEPT TRUE FALSE <> U> 0<> 0> NIP TUCK ROLL PICK 2>R 2R@ 2R> WITHIN UNUSED MARKER I J TO COMPILE, [COMPILE] SAVE-INPUT RESTORE-INPUT PAD ERASE 2LITERAL DNEGATE D- D+ D0< D0= D2* D2/ D< D= DMAX DMIN D>S DABS M+ M*/ D. D.R 2ROT DU< CATCH THROW FREE RESIZE ALLOCATE CS-PICK CS-ROLL GET-CURRENT SET-CURRENT FORTH-WORDLIST GET-ORDER SET-ORDER PREVIOUS SEARCH-WORDLIST WORDLIST FIND ALSO ONLY FORTH DEFINITIONS ORDER -TRAILING /STRING SEARCH COMPARE CMOVE CMOVE> BLANK SLITERAL"),r=t("IF ELSE THEN BEGIN WHILE REPEAT UNTIL RECURSE [IF] [ELSE] [THEN] ?DO DO LOOP +LOOP UNLOOP LEAVE EXIT AGAIN CASE OF ENDOF ENDCASE");e.defineMode("forth",(function(){function e(e,t){var n;for(n=e.length-1;n>=0;n--)if(e[n].name===t.toUpperCase())return e[n]}return{startState:function(){return{state:"",base:10,coreWordList:n,immediateWordList:r,wordList:[]}},token:function(t,n){var r;if(t.eatSpace())return null;if(""===n.state){if(t.match(/^(\]|:NONAME)(\s|$)/i))return n.state=" compilation","builtin compilation";if(r=t.match(/^(\:)\s+(\S+)(\s|$)+/))return n.wordList.push({name:r[2].toUpperCase()}),n.state=" compilation","def"+n.state;if(r=t.match(/^(VARIABLE|2VARIABLE|CONSTANT|2CONSTANT|CREATE|POSTPONE|VALUE|WORD)\s+(\S+)(\s|$)+/i))return n.wordList.push({name:r[2].toUpperCase()}),"def"+n.state;if(r=t.match(/^(\'|\[\'\])\s+(\S+)(\s|$)+/))return"builtin"+n.state}else{if(t.match(/^(\;|\[)(\s)/))return n.state="",t.backUp(1),"builtin compilation";if(t.match(/^(\;|\[)($)/))return n.state="","builtin compilation";if(t.match(/^(POSTPONE)\s+\S+(\s|$)+/))return"builtin"}return(r=t.match(/^(\S+)(\s+|$)/))?void 0!==e(n.wordList,r[1])?"variable"+n.state:"\\"===r[1]?(t.skipToEnd(),"comment"+n.state):void 0!==e(n.coreWordList,r[1])?"builtin"+n.state:void 0!==e(n.immediateWordList,r[1])?"keyword"+n.state:"("===r[1]?(t.eatWhile((function(e){return")"!==e})),t.eat(")"),"comment"+n.state):".("===r[1]?(t.eatWhile((function(e){return")"!==e})),t.eat(")"),"string"+n.state):'S"'===r[1]||'."'===r[1]||'C"'===r[1]?(t.eatWhile((function(e){return'"'!==e})),t.eat('"'),"string"+n.state):r[1]-68719476735?"number"+n.state:"atom"+n.state:void 0}}})),e.defineMIME("text/x-forth","forth")}(n(23326))},81640:(e,t,n)=>{!function(e){"use strict";e.defineMode("fortran",(function(){function e(e){for(var t={},n=0;n\/\:]/,o=/^\.(and|or|eq|lt|le|gt|ge|ne|not|eqv|neqv)\./i;function a(e,a){if(e.match(o))return"operator";var s,l=e.next();if("!"==l)return e.skipToEnd(),"comment";if('"'==l||"'"==l)return a.tokenize=(s=l,function(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if(n==s&&!r){i=!0;break}r=!r&&"\\"==n}return!i&&r||(t.tokenize=null),"string"}),a.tokenize(e,a);if(/[\[\]\(\),]/.test(l))return null;if(/\d/.test(l))return e.eatWhile(/[\w\.]/),"number";if(i.test(l))return e.eatWhile(i),"operator";e.eatWhile(/[\w\$_]/);var u=e.current().toLowerCase();return t.hasOwnProperty(u)?"keyword":n.hasOwnProperty(u)||r.hasOwnProperty(u)?"builtin":"variable"}return{startState:function(){return{tokenize:null}},token:function(e,t){return e.eatSpace()?null:(t.tokenize||a)(e,t)}}})),e.defineMIME("text/x-fortran","fortran")}(n(23326))},37471:(e,t,n)=>{!function(e){"use strict";e.defineMode("gas",(function(e,t){var n=[],r="",i={".abort":"builtin",".align":"builtin",".altmacro":"builtin",".ascii":"builtin",".asciz":"builtin",".balign":"builtin",".balignw":"builtin",".balignl":"builtin",".bundle_align_mode":"builtin",".bundle_lock":"builtin",".bundle_unlock":"builtin",".byte":"builtin",".cfi_startproc":"builtin",".comm":"builtin",".data":"builtin",".def":"builtin",".desc":"builtin",".dim":"builtin",".double":"builtin",".eject":"builtin",".else":"builtin",".elseif":"builtin",".end":"builtin",".endef":"builtin",".endfunc":"builtin",".endif":"builtin",".equ":"builtin",".equiv":"builtin",".eqv":"builtin",".err":"builtin",".error":"builtin",".exitm":"builtin",".extern":"builtin",".fail":"builtin",".file":"builtin",".fill":"builtin",".float":"builtin",".func":"builtin",".global":"builtin",".gnu_attribute":"builtin",".hidden":"builtin",".hword":"builtin",".ident":"builtin",".if":"builtin",".incbin":"builtin",".include":"builtin",".int":"builtin",".internal":"builtin",".irp":"builtin",".irpc":"builtin",".lcomm":"builtin",".lflags":"builtin",".line":"builtin",".linkonce":"builtin",".list":"builtin",".ln":"builtin",".loc":"builtin",".loc_mark_labels":"builtin",".local":"builtin",".long":"builtin",".macro":"builtin",".mri":"builtin",".noaltmacro":"builtin",".nolist":"builtin",".octa":"builtin",".offset":"builtin",".org":"builtin",".p2align":"builtin",".popsection":"builtin",".previous":"builtin",".print":"builtin",".protected":"builtin",".psize":"builtin",".purgem":"builtin",".pushsection":"builtin",".quad":"builtin",".reloc":"builtin",".rept":"builtin",".sbttl":"builtin",".scl":"builtin",".section":"builtin",".set":"builtin",".short":"builtin",".single":"builtin",".size":"builtin",".skip":"builtin",".sleb128":"builtin",".space":"builtin",".stab":"builtin",".string":"builtin",".struct":"builtin",".subsection":"builtin",".symver":"builtin",".tag":"builtin",".text":"builtin",".title":"builtin",".type":"builtin",".uleb128":"builtin",".val":"builtin",".version":"builtin",".vtable_entry":"builtin",".vtable_inherit":"builtin",".warning":"builtin",".weak":"builtin",".weakref":"builtin",".word":"builtin"},o={},a=(t.architecture||"x86").toLowerCase();function s(e,t){for(var n,r=!1;null!=(n=e.next());){if("/"===n&&r){t.tokenize=null;break}r="*"===n}return"comment"}return"x86"===a?(r="#",o.al="variable",o.ah="variable",o.ax="variable",o.eax="variable-2",o.rax="variable-3",o.bl="variable",o.bh="variable",o.bx="variable",o.ebx="variable-2",o.rbx="variable-3",o.cl="variable",o.ch="variable",o.cx="variable",o.ecx="variable-2",o.rcx="variable-3",o.dl="variable",o.dh="variable",o.dx="variable",o.edx="variable-2",o.rdx="variable-3",o.si="variable",o.esi="variable-2",o.rsi="variable-3",o.di="variable",o.edi="variable-2",o.rdi="variable-3",o.sp="variable",o.esp="variable-2",o.rsp="variable-3",o.bp="variable",o.ebp="variable-2",o.rbp="variable-3",o.ip="variable",o.eip="variable-2",o.rip="variable-3",o.cs="keyword",o.ds="keyword",o.ss="keyword",o.es="keyword",o.fs="keyword",o.gs="keyword"):"arm"!==a&&"armv6"!==a||(r="@",i.syntax="builtin",o.r0="variable",o.r1="variable",o.r2="variable",o.r3="variable",o.r4="variable",o.r5="variable",o.r6="variable",o.r7="variable",o.r8="variable",o.r9="variable",o.r10="variable",o.r11="variable",o.r12="variable",o.sp="variable-2",o.lr="variable-2",o.pc="variable-2",o.r13=o.sp,o.r14=o.lr,o.r15=o.pc,n.push((function(e,t){if("#"===e)return t.eatWhile(/\w/),"number"}))),{startState:function(){return{tokenize:null}},token:function(e,t){if(t.tokenize)return t.tokenize(e,t);if(e.eatSpace())return null;var a,l,u=e.next();if("/"===u&&e.eat("*"))return t.tokenize=s,s(e,t);if(u===r)return e.skipToEnd(),"comment";if('"'===u)return function(e,t){for(var n,r=!1;null!=(n=e.next());){if('"'===n&&!r)return!1;r=!r&&"\\"===n}}(e),"string";if("."===u)return e.eatWhile(/\w/),l=e.current().toLowerCase(),(a=i[l])||null;if("="===u)return e.eatWhile(/\w/),"tag";if("{"===u)return"bracket";if("}"===u)return"bracket";if(/\d/.test(u))return"0"===u&&e.eat("x")?(e.eatWhile(/[0-9a-fA-F]/),"number"):(e.eatWhile(/\d/),"number");if(/\w/.test(u))return e.eatWhile(/\w/),e.eat(":")?"tag":(l=e.current().toLowerCase(),(a=o[l])||null);for(var c=0;c{!function(e){"use strict";var t=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;e.defineMode("gfm",(function(n,r){var i=0,o={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(e){return{code:e.code,codeBlock:e.codeBlock,ateSpace:e.ateSpace}},token:function(e,n){if(n.combineTokens=null,n.codeBlock)return e.match(/^```+/)?(n.codeBlock=!1,null):(e.skipToEnd(),null);if(e.sol()&&(n.code=!1),e.sol()&&e.match(/^```+/))return e.skipToEnd(),n.codeBlock=!0,null;if("`"===e.peek()){e.next();var o=e.pos;e.eatWhile("`");var a=1+e.pos-o;return n.code?a===i&&(n.code=!1):(i=a,n.code=!0),null}if(n.code)return e.next(),null;if(e.eatSpace())return n.ateSpace=!0,null;if((e.sol()||n.ateSpace)&&(n.ateSpace=!1,!1!==r.gitHubSpice)){if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return n.combineTokens=!0,"link"}return e.match(t)&&"]("!=e.string.slice(e.start-2,e.start)&&(0==e.start||/\W/.test(e.string.charAt(e.start-1)))?(n.combineTokens=!0,"link"):(e.next(),null)},blankLine:function(e){return e.code=!1,null}},a={taskLists:!0,strikethrough:!0,emoji:!0};for(var s in r)a[s]=r[s];return a.name="markdown",e.overlayMode(e.getMode(n,a),o)}),"markdown"),e.defineMIME("text/x-gfm","gfm")}(n(23326),n(48033),n(19962))},41028:(e,t,n)=>{!function(e){"use strict";e.defineMode("gherkin",(function(){return{startState:function(){return{lineNumber:0,tableHeaderLine:!1,allowFeature:!0,allowBackground:!1,allowScenario:!1,allowSteps:!1,allowPlaceholders:!1,allowMultilineArgument:!1,inMultilineString:!1,inMultilineTable:!1,inKeywordLine:!1}},token:function(e,t){if(e.sol()&&(t.lineNumber++,t.inKeywordLine=!1,t.inMultilineTable&&(t.tableHeaderLine=!1,e.match(/\s*\|/,!1)||(t.allowMultilineArgument=!1,t.inMultilineTable=!1))),e.eatSpace(),t.allowMultilineArgument){if(t.inMultilineString)return e.match('"""')?(t.inMultilineString=!1,t.allowMultilineArgument=!1):e.match(/.*/),"string";if(t.inMultilineTable)return e.match(/\|\s*/)?"bracket":(e.match(/[^\|]*/),t.tableHeaderLine?"header":"string");if(e.match('"""'))return t.inMultilineString=!0,"string";if(e.match("|"))return t.inMultilineTable=!0,t.tableHeaderLine=!0,"bracket"}return e.match(/#.*/)?"comment":!t.inKeywordLine&&e.match(/@\S+/)?"tag":!t.inKeywordLine&&t.allowFeature&&e.match(/(機能|功能|フィーチャ|기능|โครงหลัก|ความสามารถ|ความต้องการทางธุรกิจ|ಹೆಚ್ಚಳ|గుణము|ਮੁਹਾਂਦਰਾ|ਨਕਸ਼ ਨੁਹਾਰ|ਖਾਸੀਅਤ|रूप लेख|وِیژگی|خاصية|תכונה|Функціонал|Функция|Функционалност|Функционал|Үзенчәлеклелек|Свойство|Особина|Мөмкинлек|Могућност|Λειτουργία|Δυνατότητα|Właściwość|Vlastnosť|Trajto|Tính năng|Savybė|Pretty much|Požiadavka|Požadavek|Potrzeba biznesowa|Özellik|Osobina|Ominaisuus|Omadus|OH HAI|Mogućnost|Mogucnost|Jellemző|Hwæt|Hwaet|Funzionalità|Funktionalitéit|Funktionalität|Funkcja|Funkcionalnost|Funkcionalitāte|Funkcia|Fungsi|Functionaliteit|Funcționalitate|Funcţionalitate|Functionalitate|Funcionalitat|Funcionalidade|Fonctionnalité|Fitur|Fīča|Feature|Eiginleiki|Egenskap|Egenskab|Característica|Caracteristica|Business Need|Aspekt|Arwedd|Ahoy matey!|Ability):/)?(t.allowScenario=!0,t.allowBackground=!0,t.allowPlaceholders=!1,t.allowSteps=!1,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):!t.inKeywordLine&&t.allowBackground&&e.match(/(背景|배경|แนวคิด|ಹಿನ್ನೆಲೆ|నేపథ్యం|ਪਿਛੋਕੜ|पृष्ठभूमि|زمینه|الخلفية|רקע|Тарих|Предыстория|Предистория|Позадина|Передумова|Основа|Контекст|Кереш|Υπόβαθρο|Założenia|Yo\-ho\-ho|Tausta|Taust|Situācija|Rerefons|Pozadina|Pozadie|Pozadí|Osnova|Latar Belakang|Kontext|Konteksts|Kontekstas|Kontekst|Háttér|Hannergrond|Grundlage|Geçmiş|Fundo|Fono|First off|Dis is what went down|Dasar|Contexto|Contexte|Context|Contesto|Cenário de Fundo|Cenario de Fundo|Cefndir|Bối cảnh|Bakgrunnur|Bakgrunn|Bakgrund|Baggrund|Background|B4|Antecedents|Antecedentes|Ær|Aer|Achtergrond):/)?(t.allowPlaceholders=!1,t.allowSteps=!0,t.allowBackground=!1,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):!t.inKeywordLine&&t.allowScenario&&e.match(/(場景大綱|场景大纲|劇本大綱|剧本大纲|テンプレ|シナリオテンプレート|シナリオテンプレ|シナリオアウトライン|시나리오 개요|สรุปเหตุการณ์|โครงสร้างของเหตุการณ์|ವಿವರಣೆ|కథనం|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਟਕਥਾ ਢਾਂਚਾ|परिदृश्य रूपरेखा|سيناريو مخطط|الگوی سناریو|תבנית תרחיש|Сценарийның төзелеше|Сценарий структураси|Структура сценарію|Структура сценария|Структура сценарија|Скица|Рамка на сценарий|Концепт|Περιγραφή Σεναρίου|Wharrimean is|Template Situai|Template Senario|Template Keadaan|Tapausaihio|Szenariogrundriss|Szablon scenariusza|Swa hwær swa|Swa hwaer swa|Struktura scenarija|Structură scenariu|Structura scenariu|Skica|Skenario konsep|Shiver me timbers|Senaryo taslağı|Schema dello scenario|Scenariomall|Scenariomal|Scenario Template|Scenario Outline|Scenario Amlinellol|Scenārijs pēc parauga|Scenarijaus šablonas|Reckon it's like|Raamstsenaarium|Plang vum Szenario|Plan du Scénario|Plan du scénario|Osnova scénáře|Osnova Scenára|Náčrt Scenáru|Náčrt Scénáře|Náčrt Scenára|MISHUN SRSLY|Menggariskan Senario|Lýsing Dæma|Lýsing Atburðarásar|Konturo de la scenaro|Koncept|Khung tình huống|Khung kịch bản|Forgatókönyv vázlat|Esquema do Cenário|Esquema do Cenario|Esquema del escenario|Esquema de l'escenari|Esbozo do escenario|Delineação do Cenário|Delineacao do Cenario|All y'all|Abstrakt Scenario|Abstract Scenario):/)?(t.allowPlaceholders=!0,t.allowSteps=!0,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):t.allowScenario&&e.match(/(例子|例|サンプル|예|ชุดของเหตุการณ์|ชุดของตัวอย่าง|ಉದಾಹರಣೆಗಳು|ఉదాహరణలు|ਉਦਾਹਰਨਾਂ|उदाहरण|نمونه ها|امثلة|דוגמאות|Үрнәкләр|Сценарији|Примеры|Примери|Приклади|Мисоллар|Мисаллар|Σενάρια|Παραδείγματα|You'll wanna|Voorbeelden|Variantai|Tapaukset|Se þe|Se the|Se ðe|Scenarios|Scenariji|Scenarijai|Przykłady|Primjeri|Primeri|Příklady|Príklady|Piemēri|Példák|Pavyzdžiai|Paraugs|Örnekler|Juhtumid|Exemplos|Exemples|Exemple|Exempel|EXAMPLZ|Examples|Esempi|Enghreifftiau|Ekzemploj|Eksempler|Ejemplos|Dữ liệu|Dead men tell no tales|Dæmi|Contoh|Cenários|Cenarios|Beispiller|Beispiele|Atburðarásir):/)?(t.allowPlaceholders=!1,t.allowSteps=!0,t.allowBackground=!1,t.allowMultilineArgument=!0,"keyword"):!t.inKeywordLine&&t.allowScenario&&e.match(/(場景|场景|劇本|剧本|シナリオ|시나리오|เหตุการณ์|ಕಥಾಸಾರಾಂಶ|సన్నివేశం|ਪਟਕਥਾ|परिदृश्य|سيناريو|سناریو|תרחיש|Сценарій|Сценарио|Сценарий|Пример|Σενάριο|Tình huống|The thing of it is|Tapaus|Szenario|Swa|Stsenaarium|Skenario|Situai|Senaryo|Senario|Scenaro|Scenariusz|Scenariu|Scénario|Scenario|Scenarijus|Scenārijs|Scenarij|Scenarie|Scénář|Scenár|Primer|MISHUN|Kịch bản|Keadaan|Heave to|Forgatókönyv|Escenario|Escenari|Cenário|Cenario|Awww, look mate|Atburðarás):/)?(t.allowPlaceholders=!1,t.allowSteps=!0,t.allowBackground=!1,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):!t.inKeywordLine&&t.allowSteps&&e.match(/(那麼|那么|而且|當|当|并且|同時|同时|前提|假设|假設|假定|假如|但是|但し|並且|もし|ならば|ただし|しかし|かつ|하지만|조건|먼저|만일|만약|단|그리고|그러면|และ |เมื่อ |แต่ |ดังนั้น |กำหนดให้ |ಸ್ಥಿತಿಯನ್ನು |ಮತ್ತು |ನೀಡಿದ |ನಂತರ |ಆದರೆ |మరియు |చెప్పబడినది |కాని |ఈ పరిస్థితిలో |అప్పుడు |ਪਰ |ਤਦ |ਜੇਕਰ |ਜਿਵੇਂ ਕਿ |ਜਦੋਂ |ਅਤੇ |यदि |परन्तु |पर |तब |तदा |तथा |जब |चूंकि |किन्तु |कदा |और |अगर |و |هنگامی |متى |لكن |عندما |ثم |بفرض |با فرض |اما |اذاً |آنگاه |כאשר |וגם |בהינתן |אזי |אז |אבל |Якщо |Һәм |Унда |Тоді |Тогда |То |Также |Та |Пусть |Припустимо, що |Припустимо |Онда |Но |Нехай |Нәтиҗәдә |Лекин |Ләкин |Коли |Когда |Когато |Када |Кад |К тому же |І |И |Задато |Задати |Задате |Если |Допустим |Дано |Дадено |Вә |Ва |Бирок |Әмма |Әйтик |Әгәр |Аммо |Али |Але |Агар |А також |А |Τότε |Όταν |Και |Δεδομένου |Αλλά |Þurh |Þegar |Þa þe |Þá |Þa |Zatati |Zakładając |Zadato |Zadate |Zadano |Zadani |Zadan |Za předpokladu |Za predpokladu |Youse know when youse got |Youse know like when |Yna |Yeah nah |Y'know |Y |Wun |Wtedy |When y'all |When |Wenn |WEN |wann |Ve |Và |Und |Un |ugeholl |Too right |Thurh |Thì |Then y'all |Then |Tha the |Tha |Tetapi |Tapi |Tak |Tada |Tad |Stel |Soit |Siis |Și |Şi |Si |Sed |Se |Så |Quando |Quand |Quan |Pryd |Potom |Pokud |Pokiaľ |Però |Pero |Pak |Oraz |Onda |Ond |Oletetaan |Og |Och |O zaman |Niin |Nhưng |När |Når |Mutta |Men |Mas |Maka |Majd |Mając |Mais |Maar |mä |Ma |Lorsque |Lorsqu'|Logo |Let go and haul |Kun |Kuid |Kui |Kiedy |Khi |Ketika |Kemudian |Keď |Když |Kaj |Kai |Kada |Kad |Jeżeli |Jeśli |Ja |It's just unbelievable |Ir |I CAN HAZ |I |Ha |Givun |Givet |Given y'all |Given |Gitt |Gegeven |Gegeben seien |Gegeben sei |Gdy |Gangway! |Fakat |Étant donnés |Etant donnés |Étant données |Etant données |Étant donnée |Etant donnée |Étant donné |Etant donné |Et |És |Entonces |Entón |Então |Entao |En |Eğer ki |Ef |Eeldades |E |Ðurh |Duota |Dun |Donitaĵo |Donat |Donada |Do |Diyelim ki |Diberi |Dengan |Den youse gotta |DEN |De |Dato |Dați fiind |Daţi fiind |Dati fiind |Dati |Date fiind |Date |Data |Dat fiind |Dar |Dann |dann |Dan |Dados |Dado |Dadas |Dada |Ða ðe |Ða |Cuando |Cho |Cando |Când |Cand |Cal |But y'all |But at the end of the day I reckon |BUT |But |Buh |Blimey! |Biết |Bet |Bagi |Aye |awer |Avast! |Atunci |Atesa |Atès |Apabila |Anrhegedig a |Angenommen |And y'all |And |AN |An |an |Amikor |Amennyiben |Ama |Als |Alors |Allora |Ali |Aleshores |Ale |Akkor |Ak |Adott |Ac |Aber |A zároveň |A tiež |A taktiež |A také |A |a |7 |\* )/)?(t.inStep=!0,t.allowPlaceholders=!0,t.allowMultilineArgument=!0,t.inKeywordLine=!0,"keyword"):e.match(/"[^"]*"?/)?"string":t.allowPlaceholders&&e.match(/<[^>]*>?/)?"variable":(e.next(),e.eatWhile(/[^@"<#]/),null)}}})),e.defineMIME("text/x-feature","gherkin")}(n(23326))},68459:(e,t,n)=>{!function(e){"use strict";e.defineMode("go",(function(t){var n,r=t.indentUnit,i={break:!0,case:!0,chan:!0,const:!0,continue:!0,default:!0,defer:!0,else:!0,fallthrough:!0,for:!0,func:!0,go:!0,goto:!0,if:!0,import:!0,interface:!0,map:!0,package:!0,range:!0,return:!0,select:!0,struct:!0,switch:!0,type:!0,var:!0,bool:!0,byte:!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,int:!0,uint:!0,uintptr:!0,error:!0,rune:!0,any:!0,comparable:!0},o={true:!0,false:!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,delete:!0,imag:!0,len:!0,make:!0,new:!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},a=/[+\-*&^%:=<>!|\/]/;function s(e,t){var r,u=e.next();if('"'==u||"'"==u||"`"==u)return t.tokenize=(r=u,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){o=!0;break}i=!i&&"`"!=r&&"\\"==n}return(o||!i&&"`"!=r)&&(t.tokenize=s),"string"}),t.tokenize(e,t);if(/[\d\.]/.test(u))return"."==u?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==u?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(u))return n=u,null;if("/"==u){if(e.eat("*"))return t.tokenize=l,l(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(a.test(u))return e.eatWhile(a),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var c=e.current();return i.propertyIsEnumerable(c)?("case"!=c&&"default"!=c||(n="case"),"keyword"):o.propertyIsEnumerable(c)?"atom":"variable"}function l(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=s;break}r="*"==n}return"comment"}function u(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function c(e,t,n){return e.context=new u(e.indented,t,n,null,e.context)}return{startState:function(e){return{tokenize:null,context:new u((e||0)-r,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0,"case"==r.type&&(r.type="}")),e.eatSpace())return null;n=null;var i=(t.tokenize||s)(e,t);return"comment"==i||(null==r.align&&(r.align=!0),"{"==n?c(t,e.column(),"}"):"["==n?c(t,e.column(),"]"):"("==n?c(t,e.column(),")"):"case"==n?r.type="case":("}"==n&&"}"==r.type||n==r.type)&&function(e){if(e.context.prev){var t=e.context.type;")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}}(t),t.startOfLine=!1),i},indent:function(t,n){if(t.tokenize!=s&&null!=t.tokenize)return e.Pass;var i=t.context,o=n&&n.charAt(0);if("case"==i.type&&/^(?:case|default)\b/.test(n))return t.context.type="}",i.indented;var a=o==i.type;return i.align?i.column+(a?0:1):i.indented+(a?0:r)},electricChars:"{}):",closeBrackets:"()[]{}''\"\"``",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}})),e.defineMIME("text/x-go","go")}(n(23326))},36275:(e,t,n)=>{!function(e){"use strict";e.defineMode("groovy",(function(t){function n(e){for(var t={},n=e.split(" "),r=0;r"))return r="->",null;if(/[+\-*&%=<>!?|\/~]/.test(n))return e.eatWhile(/[+\-*&%=<>|~]/),"operator";if(e.eatWhile(/[\w\$_]/),"@"==n)return e.eatWhile(/[\w\$_\.]/),"meta";if("."==t.lastToken)return"property";if(e.eat(":"))return r="proplabel","property";var l=e.current();return s.propertyIsEnumerable(l)?"atom":i.propertyIsEnumerable(l)?(o.propertyIsEnumerable(l)?r="newstatement":a.propertyIsEnumerable(l)&&(r="standalone"),"keyword"):"variable"}function u(e,t,n){var r=!1;if("/"!=e&&t.eat(e)){if(!t.eat(e))return"string";r=!0}function i(t,n){for(var i,o=!1,a=!r;null!=(i=t.next());){if(i==e&&!o){if(!r)break;if(t.match(e+e)){a=!0;break}}if('"'==e&&"$"==i&&!o){if(t.eat("{"))return n.tokenize.push(c()),"string";if(t.match(/^\w/,!1))return n.tokenize.push(d),"string"}o=!o&&"\\"==i}return a&&n.tokenize.pop(),"string"}return n.tokenize.push(i),i(t,n)}function c(){var e=1;function t(t,n){if("}"==t.peek()){if(0==--e)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n)}else"{"==t.peek()&&e++;return l(t,n)}return t.isBase=!0,t}function d(e,t){var n=e.match(/^(\.|[\w\$_]+)/);return n?"."==n[0]?null:"variable":(t.tokenize.pop(),t.tokenize[t.tokenize.length-1](e,t))}function f(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize.pop();break}r="*"==n}return"comment"}function p(e,t){return!e||"operator"==e||"->"==e||/[\.\[\{\(,;:]/.test(e)||"newstatement"==e||"keyword"==e||"proplabel"==e||"standalone"==e&&!t}function h(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function m(e,t,n){return e.context=new h(e.indented,t,n,null,e.context)}function g(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return l.isBase=!0,{startState:function(e){return{tokenize:[l],context:new h((e||0)-t.indentUnit,0,"top",!1),indented:0,startOfLine:!0,lastToken:null}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0,"statement"!=n.type||p(t.lastToken,!0)||(g(t),n=t.context)),e.eatSpace())return null;r=null;var i=t.tokenize[t.tokenize.length-1](e,t);if("comment"==i)return i;if(null==n.align&&(n.align=!0),";"!=r&&":"!=r||"statement"!=n.type)if("->"==r&&"statement"==n.type&&"}"==n.prev.type)g(t),t.context.align=!1;else if("{"==r)m(t,e.column(),"}");else if("["==r)m(t,e.column(),"]");else if("("==r)m(t,e.column(),")");else if("}"==r){for(;"statement"==n.type;)n=g(t);for("}"==n.type&&(n=g(t));"statement"==n.type;)n=g(t)}else r==n.type?g(t):("}"==n.type||"top"==n.type||"statement"==n.type&&"newstatement"==r)&&m(t,e.column(),"statement");else g(t);return t.startOfLine=!1,t.lastToken=r||i,i},indent:function(n,r){if(!n.tokenize[n.tokenize.length-1].isBase)return e.Pass;var i=r&&r.charAt(0),o=n.context;"statement"!=o.type||p(n.lastToken,!0)||(o=o.prev);var a=i==o.type;return"statement"==o.type?o.indented+("{"==i?0:t.indentUnit):o.align?o.column+(a?0:1):o.indented+(a?0:t.indentUnit)},electricChars:"{}",closeBrackets:{triples:"'\""},fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}})),e.defineMIME("text/x-groovy","groovy")}(n(23326))},88099:(e,t,n)=>{!function(e){"use strict";e.defineMode("haml",(function(t){var n=e.getMode(t,{name:"htmlmixed"}),r=e.getMode(t,"ruby");function i(e){return function(t,n){return t.peek()==e&&1==n.rubyState.tokenize.length?(t.next(),n.tokenize=a,"closeAttributeTag"):o(t,n)}}function o(e,t){return e.match("-#")?(e.skipToEnd(),"comment"):r.token(e,t.rubyState)}function a(e,t){var r=e.peek();if("comment"==t.previousToken.style&&t.indented>t.previousToken.indented)return e.skipToEnd(),"commentLine";if(t.startOfLine){if("!"==r&&e.match("!!"))return e.skipToEnd(),"tag";if(e.match(/^%[\w:#\.]+=/))return t.tokenize=o,"hamlTag";if(e.match(/^%[\w:]+/))return"hamlTag";if("/"==r)return e.skipToEnd(),"comment"}if((t.startOfLine||"hamlTag"==t.previousToken.style)&&("#"==r||"."==r))return e.match(/[\w-#\.]*/),"hamlAttribute";if(t.startOfLine&&!e.match("--\x3e",!1)&&("="==r||"-"==r))return t.tokenize=o,t.tokenize(e,t);if("hamlTag"==t.previousToken.style||"closeAttributeTag"==t.previousToken.style||"hamlAttribute"==t.previousToken.style){if("("==r)return t.tokenize=i(")"),t.tokenize(e,t);if("{"==r&&!e.match(/^\{%.*/))return t.tokenize=i("}"),t.tokenize(e,t)}return n.token(e,t.htmlState)}return{startState:function(){return{htmlState:e.startState(n),rubyState:e.startState(r),indented:0,previousToken:{style:null,indented:0},tokenize:a}},copyState:function(t){return{htmlState:e.copyState(n,t.htmlState),rubyState:e.copyState(r,t.rubyState),indented:t.indented,previousToken:t.previousToken,tokenize:t.tokenize}},token:function(e,t){if(e.sol()&&(t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;var n=t.tokenize(e,t);if(t.startOfLine=!1,n&&"commentLine"!=n&&(t.previousToken={style:n,indented:t.indented}),e.eol()&&t.tokenize==o){e.backUp(1);var r=e.peek();e.next(),r&&","!=r&&(t.tokenize=a)}return"hamlTag"==n?n="tag":"commentLine"==n?n="comment":"hamlAttribute"==n?n="attribute":"closeAttributeTag"==n&&(n=null),n}}}),"htmlmixed","ruby"),e.defineMIME("text/x-haml","haml")}(n(23326),n(38425),n(53019))},42336:(e,t,n)=>{!function(e){"use strict";e.defineSimpleMode("handlebars-tags",{start:[{regex:/\{\{\{/,push:"handlebars_raw",token:"tag"},{regex:/\{\{!--/,push:"dash_comment",token:"comment"},{regex:/\{\{!/,push:"comment",token:"comment"},{regex:/\{\{/,push:"handlebars",token:"tag"}],handlebars_raw:[{regex:/\}\}\}/,pop:!0,token:"tag"}],handlebars:[{regex:/\}\}/,pop:!0,token:"tag"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/>|[#\/]([A-Za-z_]\w*)/,token:"keyword"},{regex:/(?:else|this)\b/,token:"keyword"},{regex:/\d+/i,token:"number"},{regex:/=|~|@|true|false/,token:"atom"},{regex:/(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/,token:"variable-2"}],dash_comment:[{regex:/--\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],comment:[{regex:/\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],meta:{blockCommentStart:"{{--",blockCommentEnd:"--}}"}}),e.defineMode("handlebars",(function(t,n){var r=e.getMode(t,"handlebars-tags");return n&&n.base?e.multiplexingMode(e.getMode(t,n.base),{open:"{{",close:/\}\}\}?/,mode:r,parseDelimiters:!0}):r})),e.defineMIME("text/x-handlebars-template","handlebars")}(n(23326),n(81094),n(15718))},93476:(e,t,n)=>{!function(e){"use strict";e.defineMode("haskell-literate",(function(t,n){var r=e.getMode(t,n&&n.base||"haskell");return{startState:function(){return{inCode:!1,baseState:e.startState(r)}},token:function(e,t){return e.sol()&&(t.inCode=e.eat(">"))?"meta":t.inCode?r.token(e,t.baseState):(e.skipToEnd(),"comment")},innerMode:function(e){return e.inCode?{state:e.baseState,mode:r}:null}}}),"haskell"),e.defineMIME("text/x-literate-haskell","haskell-literate")}(n(23326),n(88216))},88216:(e,t,n)=>{!function(e){"use strict";e.defineMode("haskell",(function(e,t){function n(e,t,n){return t(n),n(e,t)}var r=/[a-z_]/,i=/[A-Z]/,o=/\d/,a=/[0-9A-Fa-f]/,s=/[0-7]/,l=/[a-z_A-Z0-9'\xa1-\uffff]/,u=/[-!#$%&*+.\/<=>?@\\^|~:]/,c=/[(),;[\]`{}]/,d=/[ \t\v\f]/;function f(e,t){if(e.eatWhile(d))return null;var f=e.next();if(c.test(f)){if("{"==f&&e.eat("-")){var m="comment";return e.eat("#")&&(m="meta"),n(e,t,p(m,1))}return null}if("'"==f)return e.eat("\\"),e.next(),e.eat("'")?"string":"string error";if('"'==f)return n(e,t,h);if(i.test(f))return e.eatWhile(l),e.eat(".")?"qualifier":"variable-2";if(r.test(f))return e.eatWhile(l),"variable";if(o.test(f)){if("0"==f){if(e.eat(/[xX]/))return e.eatWhile(a),"integer";if(e.eat(/[oO]/))return e.eatWhile(s),"number"}return e.eatWhile(o),m="number",e.match(/^\.\d+/)&&(m="number"),e.eat(/[eE]/)&&(m="number",e.eat(/[-+]/),e.eatWhile(o)),m}return"."==f&&e.eat(".")?"keyword":u.test(f)?"-"==f&&e.eat(/-/)&&(e.eatWhile(/-/),!e.eat(u))?(e.skipToEnd(),"comment"):(m="variable",":"==f&&(m="variable-2"),e.eatWhile(u),m):"error"}function p(e,t){return 0==t?f:function(n,r){for(var i=t;!n.eol();){var o=n.next();if("{"==o&&n.eat("-"))++i;else if("-"==o&&n.eat("}")&&0==--i)return r(f),e}return r(p(e,i)),e}}function h(e,t){for(;!e.eol();){var n=e.next();if('"'==n)return t(f),"string";if("\\"==n){if(e.eol()||e.eat(d))return t(m),"string";e.eat("&")||e.next()}}return t(f),"string error"}function m(e,t){return e.eat("\\")?n(e,t,h):(e.next(),t(f),"error")}var g=function(){var e={};function n(t){return function(){for(var n=0;n","@","~","=>"),n("builtin")("!!","$!","$","&&","+","++","-",".","/","/=","<","<*","<=","<$>","<*>","=<<","==",">",">=",">>",">>=","^","^^","||","*","*>","**"),n("builtin")("Applicative","Bool","Bounded","Char","Double","EQ","Either","Enum","Eq","False","FilePath","Float","Floating","Fractional","Functor","GT","IO","IOError","Int","Integer","Integral","Just","LT","Left","Maybe","Monad","Nothing","Num","Ord","Ordering","Rational","Read","ReadS","Real","RealFloat","RealFrac","Right","Show","ShowS","String","True"),n("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","div","divMod","drop","dropWhile","either","elem","encodeFloat","enumFrom","enumFromThen","enumFromThenTo","enumFromTo","error","even","exp","exponent","fail","filter","flip","floatDigits","floatRadix","floatRange","floor","fmap","foldl","foldl1","foldr","foldr1","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise","pi","pred","print","product","properFraction","pure","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail","take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3");var r=t.overrideKeywords;if(r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i]);return e}();return{startState:function(){return{f}},copyState:function(e){return{f:e.f}},token:function(e,t){var n=t.f(e,(function(e){t.f=e})),r=e.current();return g.hasOwnProperty(r)?g[r]:n},blockCommentStart:"{-",blockCommentEnd:"-}",lineComment:"--"}})),e.defineMIME("text/x-haskell","haskell")}(n(23326))},45930:(e,t,n)=>{!function(e){"use strict";e.defineMode("haxe",(function(e,t){var n=e.indentUnit;function r(e){return{type:e,style:"keyword"}}var i,o=r("keyword a"),a=r("keyword b"),s=r("keyword c"),l=r("operator"),u={type:"atom",style:"atom"},c={type:"attribute",style:"attribute"},d=r("typedef"),f={if:o,while:o,else:a,do:a,try:a,return:s,break:s,continue:s,new:s,throw:s,var:r("var"),inline:c,static:c,using:r("import"),public:c,private:c,cast:r("cast"),import:r("import"),macro:r("macro"),function:r("function"),catch:r("catch"),untyped:r("untyped"),callback:r("cb"),for:r("for"),switch:r("switch"),case:r("case"),default:r("default"),in:l,never:r("property_access"),trace:r("trace"),class:d,abstract:d,enum:d,interface:d,typedef:d,extends:d,implements:d,dynamic:d,true:u,false:u,null:u},p=/[+\-*&%=<>!?|]/;function h(e,t,n){return t.tokenize=n,n(e,t)}function m(e,t){for(var n,r=!1;null!=(n=e.next());){if(n==t&&!r)return!0;r=!r&&"\\"==n}}function g(e,t,n){return d=e,i=n,t}function v(e,t){var n,r=e.next();if('"'==r||"'"==r)return h(e,t,(n=r,function(e,t){return m(e,n)&&(t.tokenize=v),g("string","string")}));if(/[\[\]{}\(\),;\:\.]/.test(r))return g(r);if("0"==r&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),g("number","number");if(/\d/.test(r)||"-"==r&&e.eat(/\d/))return e.match(/^\d*(?:\.\d*(?!\.))?(?:[eE][+\-]?\d+)?/),g("number","number");if(t.reAllowed&&"~"==r&&e.eat(/\//))return m(e,"/"),e.eatWhile(/[gimsu]/),g("regexp","string-2");if("/"==r)return e.eat("*")?h(e,t,y):e.eat("/")?(e.skipToEnd(),g("comment","comment")):(e.eatWhile(p),g("operator",null,e.current()));if("#"==r)return e.skipToEnd(),g("conditional","meta");if("@"==r)return e.eat(/:/),e.eatWhile(/[\w_]/),g("metadata","meta");if(p.test(r))return e.eatWhile(p),g("operator",null,e.current());if(/[A-Z]/.test(r))return e.eatWhile(/[\w_<>]/),g("type","variable-3",i=e.current());e.eatWhile(/[\w_]/);var i=e.current(),o=f.propertyIsEnumerable(i)&&f[i];return o&&t.kwAllowed?g(o.type,o.style,i):g("variable","variable",i)}function y(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=v;break}r="*"==n}return g("comment","comment")}var b={atom:!0,number:!0,variable:!0,string:!0,regexp:!0};function w(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function _(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0}function x(e,t){if(/[a-z]/.test(t.charAt(0)))return!1;for(var n=e.importedtypes.length,r=0;r=0;e--)E.cc.push(arguments[e])}function C(){return S.apply(null,arguments),!0}function T(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function O(e){var t=E.state;if(t.context){if(E.marked="def",T(e,t.localVars))return;t.localVars={name:e,next:t.localVars}}else if(t.globalVars){if(T(e,t.globalVars))return;t.globalVars={name:e,next:t.globalVars}}}var A={name:"this",next:null};function P(){E.state.context||(E.state.localVars=A),E.state.context={prev:E.state.context,vars:E.state.localVars}}function R(){E.state.localVars=E.state.context.vars,E.state.context=E.state.context.prev}function D(e,t){var n=function(){var n=E.state;n.lexical=new w(n.indented,E.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function M(){var e=E.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function I(e){return function t(n){return n==e?C():";"==e?S():C(t)}}function L(e){return"@"==e?C(z):"var"==e?C(D("vardef"),Z,I(";"),M):"keyword a"==e?C(D("form"),j,L,M):"keyword b"==e?C(D("form"),L,M):"{"==e?C(D("}"),P,K,M,R):";"==e?C():"attribute"==e?C(B):"function"==e?C(J):"for"==e?C(D("form"),I("("),D(")"),X,I(")"),M,L,M):"variable"==e?C(D("stat"),$):"switch"==e?C(D("form"),j,D("}","switch"),I("{"),K,M,M):"case"==e?C(j,I(":")):"default"==e?C(I(":")):"catch"==e?C(D("form"),P,I("("),re,I(")"),L,M,R):"import"==e?C(q,I(";")):"typedef"==e?C(W):S(D("stat"),j,I(";"),M)}function j(e){return b.hasOwnProperty(e)||"type"==e?C(F):"function"==e?C(J):"keyword c"==e?C(N):"("==e?C(D(")"),N,I(")"),M,F):"operator"==e?C(j):"["==e?C(D("]"),G(N,"]"),M,F):"{"==e?C(D("}"),G(V,"}"),M,F):C()}function N(e){return e.match(/[;\}\)\],]/)?S():S(j)}function F(e,t){return"operator"==e&&/\+\+|--/.test(t)?C(F):"operator"==e||":"==e?C(j):";"!=e?"("==e?C(D(")"),G(j,")"),M,F):"."==e?C(H,F):"["==e?C(D("]"),j,I("]"),M,F):void 0:void 0}function B(e){return"attribute"==e?C(B):"function"==e?C(J):"var"==e?C(Z):void 0}function z(e){return":"==e||"variable"==e?C(z):"("==e?C(D(")"),G(U,")"),M,L):void 0}function U(e){if("variable"==e)return C()}function q(e,t){return"variable"==e&&/[A-Z]/.test(t.charAt(0))?(k(t),C()):"variable"==e||"property"==e||"."==e||"*"==t?C(q):void 0}function W(e,t){return"variable"==e&&/[A-Z]/.test(t.charAt(0))?(k(t),C()):"type"==e&&/[A-Z]/.test(t.charAt(0))?C():void 0}function $(e){return":"==e?C(M,L):S(F,I(";"),M)}function H(e){if("variable"==e)return E.marked="property",C()}function V(e){if("variable"==e&&(E.marked="property"),b.hasOwnProperty(e))return C(I(":"),j)}function G(e,t){function n(r){return","==r?C(e,n):r==t?C():C(I(t))}return function(r){return r==t?C():S(e,n)}}function K(e){return"}"==e?C():S(L,K)}function Z(e,t){return"variable"==e?(O(t),C(ee,Y)):C()}function Y(e,t){return"="==t?C(j,Y):","==e?C(Z):void 0}function X(e,t){return"variable"==e?(O(t),C(Q,j)):S()}function Q(e,t){if("in"==t)return C()}function J(e,t){return"variable"==e||"type"==e?(O(t),C(J)):"new"==t?C(J):"("==e?C(D(")"),P,G(re,")"),M,ee,L,R):void 0}function ee(e){if(":"==e)return C(te)}function te(e){return"type"==e||"variable"==e?C():"{"==e?C(D("}"),G(ne,"}"),M):void 0}function ne(e){if("variable"==e)return C(ee)}function re(e,t){if("variable"==e)return O(t),C(ee)}return R.lex=!0,M.lex=!0,{startState:function(e){var r={tokenize:v,reAllowed:!0,kwAllowed:!0,cc:[],lexical:new w((e||0)-n,0,"block",!1),localVars:t.localVars,importedtypes:["Int","Float","String","Void","Std","Bool","Dynamic","Array"],context:t.localVars&&{vars:t.localVars},indented:0};return t.globalVars&&"object"==typeof t.globalVars&&(r.globalVars=t.globalVars),r},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==d?n:(t.reAllowed=!("operator"!=d&&"keyword c"!=d&&!d.match(/^[\[{}\(,;:]$/)),t.kwAllowed="."!=d,function(e,t,n,r,i){var o=e.cc;for(E.state=e,E.stream=i,E.marked=null,E.cc=o,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():L)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return E.marked?E.marked:"variable"==n&&_(e,r)?"variable-2":"variable"==n&&x(e,r)?"variable-3":t}}(t,n,d,i,e))},indent:function(e,t){if(e.tokenize!=v)return 0;var r=t&&t.charAt(0),i=e.lexical;"stat"==i.type&&"}"==r&&(i=i.prev);var o=i.type,a=r==o;return"vardef"==o?i.indented+4:"form"==o&&"{"==r?i.indented:"stat"==o||"form"==o?i.indented+n:"switch"!=i.info||a?i.align?i.column+(a?0:1):i.indented+(a?0:n):i.indented+(/^(?:case|default)\b/.test(t)?n:2*n)},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}})),e.defineMIME("text/x-haxe","haxe"),e.defineMode("hxml",(function(){return{startState:function(){return{define:!1,inString:!1}},token:function(e,t){var n=e.peek(),r=e.sol();if("#"==n)return e.skipToEnd(),"comment";if(r&&"-"==n){var i="variable-2";return e.eat(/-/),"-"==e.peek()&&(e.eat(/-/),i="keyword a"),"D"==e.peek()&&(e.eat(/[D]/),i="keyword c",t.define=!0),e.eatWhile(/[A-Z]/i),i}return n=e.peek(),0==t.inString&&"'"==n&&(t.inString=!0,e.next()),1==t.inString?(e.skipTo("'")||e.skipToEnd(),"'"==e.peek()&&(e.next(),t.inString=!1),"string"):(e.next(),null)},lineComment:"#"}})),e.defineMIME("text/x-hxml","hxml")}(n(23326))},39119:(e,t,n)=>{!function(e){"use strict";e.defineMode("htmlembedded",(function(t,n){var r=n.closeComment||"--%>";return e.multiplexingMode(e.getMode(t,"htmlmixed"),{open:n.openComment||"<%--",close:r,delimStyle:"comment",mode:{token:function(e){return e.skipTo(r)||e.skipToEnd(),"comment"}}},{open:n.open||n.scriptStartRegex||"<%",close:n.close||n.scriptEndRegex||"%>",mode:e.getMode(t,n.scriptingModeSpec)})}),"htmlmixed"),e.defineMIME("application/x-ejs",{name:"htmlembedded",scriptingModeSpec:"javascript"}),e.defineMIME("application/x-aspx",{name:"htmlembedded",scriptingModeSpec:"text/x-csharp"}),e.defineMIME("application/x-jsp",{name:"htmlembedded",scriptingModeSpec:"text/x-java"}),e.defineMIME("application/x-erb",{name:"htmlembedded",scriptingModeSpec:"ruby"})}(n(23326),n(38425),n(15718))},38425:(e,t,n)=>{!function(e){"use strict";var t={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]},n={};function r(e,t){var r=e.match(function(e){return n[e]||(n[e]=new RegExp("\\s+"+e+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}(t));return r?/^\s*(.*?)\s*$/.exec(r[2])[1]:""}function i(e,t){return new RegExp((t?"^":"")+"","i")}function o(e,t){for(var n in e)for(var r=t[n]||(t[n]=[]),i=e[n],o=i.length-1;o>=0;o--)r.unshift(i[o])}e.defineMode("htmlmixed",(function(n,a){var s=e.getMode(n,{name:"xml",htmlMode:!0,multilineTagIndentFactor:a.multilineTagIndentFactor,multilineTagIndentPastTag:a.multilineTagIndentPastTag,allowMissingTagName:a.allowMissingTagName}),l={},u=a&&a.tags,c=a&&a.scriptTypes;if(o(t,l),u&&o(u,l),c)for(var d=c.length-1;d>=0;d--)l.script.unshift(["type",c[d].matches,c[d].mode]);function f(t,o){var a,u=s.token(t,o.htmlState),c=/\btag\b/.test(u);if(c&&!/[<>\s\/]/.test(t.current())&&(a=o.htmlState.tagName&&o.htmlState.tagName.toLowerCase())&&l.hasOwnProperty(a))o.inTag=a+" ";else if(o.inTag&&c&&/>$/.test(t.current())){var d=/^([\S]+) (.*)/.exec(o.inTag);o.inTag=null;var p=">"==t.current()&&function(e,t){for(var n=0;n-1?e.backUp(r.length-i):r.match(/<\/?$/)&&(e.backUp(r.length),e.match(t,!1)||e.match(r)),n}(e,g,t.localMode.token(e,t.localState))},o.localMode=h,o.localState=e.startState(h,s.indent(o.htmlState,"",""))}else o.inTag&&(o.inTag+=t.current(),t.eol()&&(o.inTag+=" "));return u}return{startState:function(){return{token:f,inTag:null,localMode:null,localState:null,htmlState:e.startState(s)}},copyState:function(t){var n;return t.localState&&(n=e.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:n,htmlState:e.copyState(s,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,n,r){return!t.localMode||/^\s*<\//.test(n)?s.indent(t.htmlState,n,r):t.localMode.indent?t.localMode.indent(t.localState,n,r):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||s}}}}),"xml","javascript","css"),e.defineMIME("text/html","htmlmixed")}(n(23326),n(9812),n(49055),n(98627))},58527:(e,t,n)=>{!function(e){"use strict";e.defineMode("http",(function(){function e(e,t){return e.skipToEnd(),t.cur=a,"error"}function t(t,r){return t.match(/^HTTP\/\d\.\d/)?(r.cur=n,"keyword"):t.match(/^[A-Z]+/)&&/[ \t]/.test(t.peek())?(r.cur=i,"keyword"):e(t,r)}function n(t,n){var i=t.match(/^\d+/);if(!i)return e(t,n);n.cur=r;var o=Number(i[0]);return o>=100&&o<200?"positive informational":o>=200&&o<300?"positive success":o>=300&&o<400?"positive redirect":o>=400&&o<500?"negative client-error":o>=500&&o<600?"negative server-error":"error"}function r(e,t){return e.skipToEnd(),t.cur=a,null}function i(e,t){return e.eatWhile(/\S/),t.cur=o,"string-2"}function o(t,n){return t.match(/^HTTP\/\d\.\d$/)?(n.cur=a,"keyword"):e(t,n)}function a(e){return e.sol()&&!e.eat(/[ \t]/)?e.match(/^.*?:/)?"atom":(e.skipToEnd(),"error"):(e.skipToEnd(),"string")}function s(e){return e.skipToEnd(),null}return{token:function(e,t){var n=t.cur;return n!=a&&n!=s&&e.eatSpace()?null:n(e,t)},blankLine:function(e){e.cur=s},startState:function(){return{cur:t}}}})),e.defineMIME("message/http","http")}(n(23326))},91017:(e,t,n)=>{!function(e){"use strict";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var n=["a_correlate","abs","acos","adapt_hist_equal","alog","alog2","alog10","amoeba","annotate","app_user_dir","app_user_dir_query","arg_present","array_equal","array_indices","arrow","ascii_template","asin","assoc","atan","axis","axis","bandpass_filter","bandreject_filter","barplot","bar_plot","beseli","beselj","beselk","besely","beta","biginteger","bilinear","bin_date","binary_template","bindgen","binomial","bit_ffs","bit_population","blas_axpy","blk_con","boolarr","boolean","boxplot","box_cursor","breakpoint","broyden","bubbleplot","butterworth","bytarr","byte","byteorder","bytscl","c_correlate","calendar","caldat","call_external","call_function","call_method","call_procedure","canny","catch","cd","cdf","ceil","chebyshev","check_math","chisqr_cvf","chisqr_pdf","choldc","cholsol","cindgen","cir_3pnt","clipboard","close","clust_wts","cluster","cluster_tree","cmyk_convert","code_coverage","color_convert","color_exchange","color_quan","color_range_map","colorbar","colorize_sample","colormap_applicable","colormap_gradient","colormap_rotation","colortable","comfit","command_line_args","common","compile_opt","complex","complexarr","complexround","compute_mesh_normals","cond","congrid","conj","constrained_min","contour","contour","convert_coord","convol","convol_fft","coord2to3","copy_lun","correlate","cos","cosh","cpu","cramer","createboxplotdata","create_cursor","create_struct","create_view","crossp","crvlength","ct_luminance","cti_test","cursor","curvefit","cv_coord","cvttobm","cw_animate","cw_animate_getp","cw_animate_load","cw_animate_run","cw_arcball","cw_bgroup","cw_clr_index","cw_colorsel","cw_defroi","cw_field","cw_filesel","cw_form","cw_fslider","cw_light_editor","cw_light_editor_get","cw_light_editor_set","cw_orient","cw_palette_editor","cw_palette_editor_get","cw_palette_editor_set","cw_pdmenu","cw_rgbslider","cw_tmpl","cw_zoom","db_exists","dblarr","dcindgen","dcomplex","dcomplexarr","define_key","define_msgblk","define_msgblk_from_file","defroi","defsysv","delvar","dendro_plot","dendrogram","deriv","derivsig","determ","device","dfpmin","diag_matrix","dialog_dbconnect","dialog_message","dialog_pickfile","dialog_printersetup","dialog_printjob","dialog_read_image","dialog_write_image","dictionary","digital_filter","dilate","dindgen","dissolve","dist","distance_measure","dlm_load","dlm_register","doc_library","double","draw_roi","edge_dog","efont","eigenql","eigenvec","ellipse","elmhes","emboss","empty","enable_sysrtn","eof","eos","erase","erf","erfc","erfcx","erode","errorplot","errplot","estimator_filter","execute","exit","exp","expand","expand_path","expint","extract","extract_slice","f_cvf","f_pdf","factorial","fft","file_basename","file_chmod","file_copy","file_delete","file_dirname","file_expand_path","file_gunzip","file_gzip","file_info","file_lines","file_link","file_mkdir","file_move","file_poll_input","file_readlink","file_same","file_search","file_tar","file_test","file_untar","file_unzip","file_which","file_zip","filepath","findgen","finite","fix","flick","float","floor","flow3","fltarr","flush","format_axis_values","forward_function","free_lun","fstat","fulstr","funct","function","fv_test","fx_root","fz_roots","gamma","gamma_ct","gauss_cvf","gauss_pdf","gauss_smooth","gauss2dfit","gaussfit","gaussian_function","gaussint","get_drive_list","get_dxf_objects","get_kbrd","get_login_info","get_lun","get_screen_size","getenv","getwindows","greg2jul","grib","grid_input","grid_tps","grid3","griddata","gs_iter","h_eq_ct","h_eq_int","hanning","hash","hdf","hdf5","heap_free","heap_gc","heap_nosave","heap_refcount","heap_save","help","hilbert","hist_2d","hist_equal","histogram","hls","hough","hqr","hsv","i18n_multibytetoutf8","i18n_multibytetowidechar","i18n_utf8tomultibyte","i18n_widechartomultibyte","ibeta","icontour","iconvertcoord","idelete","identity","idl_base64","idl_container","idl_validname","idlexbr_assistant","idlitsys_createtool","idlunit","iellipse","igamma","igetcurrent","igetdata","igetid","igetproperty","iimage","image","image_cont","image_statistics","image_threshold","imaginary","imap","indgen","int_2d","int_3d","int_tabulated","intarr","interpol","interpolate","interval_volume","invert","ioctl","iopen","ir_filter","iplot","ipolygon","ipolyline","iputdata","iregister","ireset","iresolve","irotate","isa","isave","iscale","isetcurrent","isetproperty","ishft","isocontour","isosurface","isurface","itext","itranslate","ivector","ivolume","izoom","journal","json_parse","json_serialize","jul2greg","julday","keyword_set","krig2d","kurtosis","kw_test","l64indgen","la_choldc","la_cholmprove","la_cholsol","la_determ","la_eigenproblem","la_eigenql","la_eigenvec","la_elmhes","la_gm_linear_model","la_hqr","la_invert","la_least_square_equality","la_least_squares","la_linear_equation","la_ludc","la_lumprove","la_lusol","la_svd","la_tridc","la_trimprove","la_triql","la_trired","la_trisol","label_date","label_region","ladfit","laguerre","lambda","lambdap","lambertw","laplacian","least_squares_filter","leefilt","legend","legendre","linbcg","lindgen","linfit","linkimage","list","ll_arc_distance","lmfit","lmgr","lngamma","lnp_test","loadct","locale_get","logical_and","logical_or","logical_true","lon64arr","lonarr","long","long64","lsode","lu_complex","ludc","lumprove","lusol","m_correlate","machar","make_array","make_dll","make_rt","map","mapcontinents","mapgrid","map_2points","map_continents","map_grid","map_image","map_patch","map_proj_forward","map_proj_image","map_proj_info","map_proj_init","map_proj_inverse","map_set","matrix_multiply","matrix_power","max","md_test","mean","meanabsdev","mean_filter","median","memory","mesh_clip","mesh_decimate","mesh_issolid","mesh_merge","mesh_numtriangles","mesh_obj","mesh_smooth","mesh_surfacearea","mesh_validate","mesh_volume","message","min","min_curve_surf","mk_html_help","modifyct","moment","morph_close","morph_distance","morph_gradient","morph_hitormiss","morph_open","morph_thin","morph_tophat","multi","n_elements","n_params","n_tags","ncdf","newton","noise_hurl","noise_pick","noise_scatter","noise_slur","norm","obj_class","obj_destroy","obj_hasmethod","obj_isa","obj_new","obj_valid","objarr","on_error","on_ioerror","online_help","openr","openu","openw","oplot","oploterr","orderedhash","p_correlate","parse_url","particle_trace","path_cache","path_sep","pcomp","plot","plot3d","plot","plot_3dbox","plot_field","ploterr","plots","polar_contour","polar_surface","polyfill","polyshade","pnt_line","point_lun","polarplot","poly","poly_2d","poly_area","poly_fit","polyfillv","polygon","polyline","polywarp","popd","powell","pref_commit","pref_get","pref_set","prewitt","primes","print","printf","printd","pro","product","profile","profiler","profiles","project_vol","ps_show_fonts","psafm","pseudo","ptr_free","ptr_new","ptr_valid","ptrarr","pushd","qgrid3","qhull","qromb","qromo","qsimp","query_*","query_ascii","query_bmp","query_csv","query_dicom","query_gif","query_image","query_jpeg","query_jpeg2000","query_mrsid","query_pict","query_png","query_ppm","query_srf","query_tiff","query_video","query_wav","r_correlate","r_test","radon","randomn","randomu","ranks","rdpix","read","readf","read_ascii","read_binary","read_bmp","read_csv","read_dicom","read_gif","read_image","read_interfile","read_jpeg","read_jpeg2000","read_mrsid","read_pict","read_png","read_ppm","read_spr","read_srf","read_sylk","read_tiff","read_video","read_wav","read_wave","read_x11_bitmap","read_xwd","reads","readu","real_part","rebin","recall_commands","recon3","reduce_colors","reform","region_grow","register_cursor","regress","replicate","replicate_inplace","resolve_all","resolve_routine","restore","retall","return","reverse","rk4","roberts","rot","rotate","round","routine_filepath","routine_info","rs_test","s_test","save","savgol","scale3","scale3d","scatterplot","scatterplot3d","scope_level","scope_traceback","scope_varfetch","scope_varname","search2d","search3d","sem_create","sem_delete","sem_lock","sem_release","set_plot","set_shading","setenv","sfit","shade_surf","shade_surf_irr","shade_volume","shift","shift_diff","shmdebug","shmmap","shmunmap","shmvar","show3","showfont","signum","simplex","sin","sindgen","sinh","size","skewness","skip_lun","slicer3","slide_image","smooth","sobel","socket","sort","spawn","sph_4pnt","sph_scat","spher_harm","spl_init","spl_interp","spline","spline_p","sprsab","sprsax","sprsin","sprstp","sqrt","standardize","stddev","stop","strarr","strcmp","strcompress","streamline","streamline","stregex","stretch","string","strjoin","strlen","strlowcase","strmatch","strmessage","strmid","strpos","strput","strsplit","strtrim","struct_assign","struct_hide","strupcase","surface","surface","surfr","svdc","svdfit","svsol","swap_endian","swap_endian_inplace","symbol","systime","t_cvf","t_pdf","t3d","tag_names","tan","tanh","tek_color","temporary","terminal_size","tetra_clip","tetra_surface","tetra_volume","text","thin","thread","threed","tic","time_test2","timegen","timer","timestamp","timestamptovalues","tm_test","toc","total","trace","transpose","tri_surf","triangulate","trigrid","triql","trired","trisol","truncate_lun","ts_coef","ts_diff","ts_fcast","ts_smooth","tv","tvcrs","tvlct","tvrd","tvscl","typename","uindgen","uint","uintarr","ul64indgen","ulindgen","ulon64arr","ulonarr","ulong","ulong64","uniq","unsharp_mask","usersym","value_locate","variance","vector","vector_field","vel","velovect","vert_t3d","voigt","volume","voronoi","voxel_proj","wait","warp_tri","watershed","wdelete","wf_draw","where","widget_base","widget_button","widget_combobox","widget_control","widget_displaycontextmenu","widget_draw","widget_droplist","widget_event","widget_info","widget_label","widget_list","widget_propertysheet","widget_slider","widget_tab","widget_table","widget_text","widget_tree","widget_tree_move","widget_window","wiener_filter","window","window","write_bmp","write_csv","write_gif","write_image","write_jpeg","write_jpeg2000","write_nrif","write_pict","write_png","write_ppm","write_spr","write_srf","write_sylk","write_tiff","write_video","write_wav","write_wave","writeu","wset","wshow","wtn","wv_applet","wv_cwt","wv_cw_wavelet","wv_denoise","wv_dwt","wv_fn_coiflet","wv_fn_daubechies","wv_fn_gaussian","wv_fn_haar","wv_fn_morlet","wv_fn_paul","wv_fn_symlet","wv_import_data","wv_import_wavelet","wv_plot3d_wps","wv_plot_multires","wv_pwt","wv_tool_denoise","xbm_edit","xdisplayfile","xdxf","xfont","xinteranimate","xloadct","xmanager","xmng_tmpl","xmtool","xobjview","xobjview_rotate","xobjview_write_image","xpalette","xpcolor","xplot3d","xregistered","xroi","xsq_test","xsurface","xvaredit","xvolume","xvolume_rotate","xvolume_write_image","xyouts","zlib_compress","zlib_uncompress","zoom","zoom_24"],r=t(n),i=["begin","end","endcase","endfor","endwhile","endif","endrep","endforeach","break","case","continue","for","foreach","goto","if","then","else","repeat","until","switch","while","do","pro","function"],o=t(i);e.registerHelper("hintWords","idl",n.concat(i));var a=new RegExp("^[_a-z¡-￿][_a-z0-9¡-￿]*","i"),s=/[+\-*&=<>\/@#~$]/,l=new RegExp("(and|or|eq|lt|le|gt|ge|ne|not)","i");e.defineMode("idl",(function(){return{token:function(e){return function(e){if(e.eatSpace())return null;if(e.match(";"))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return"number"}return e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(o)?"keyword":e.match(r)?"builtin":e.match(a)?"variable":e.match(s)||e.match(l)?"operator":(e.next(),null)}(e)}}})),e.defineMIME("text/x-idl","idl")}(n(23326))},49055:(e,t,n)=>{!function(e){"use strict";e.defineMode("javascript",(function(t,n){var r,i,o=t.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,u=!1!==n.trackScope,c=n.typescript,d=n.wordCharacters||/[\w$\xa1-\uffff]/,f=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),p=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function m(e,t,n){return r=e,i=n,t}function g(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){var r,i=!1;if(s&&"@"==e.peek()&&e.match(h))return t.tokenize=g,m("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.tokenize=g),m("string","string")}),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return m("number","number");if("."==r&&e.match(".."))return m("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return m(r);if("="==r&&e.eat(">"))return m("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return m("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),m("number","number");if("/"==r)return e.eat("*")?(t.tokenize=v,v(e,t)):e.eat("/")?(e.skipToEnd(),m("comment","comment")):et(e,t,1)?(function(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),m("regexp","string-2")):(e.eat("="),m("operator","operator",e.current()));if("`"==r)return t.tokenize=y,y(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),m("meta","meta");if("#"==r&&e.eatWhile(d))return m("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),m("comment","comment");if(p.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-|&?]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?m("."):m("operator","operator",e.current());if(d.test(r)){e.eatWhile(d);var i=e.current();if("."!=t.lastType){if(f.propertyIsEnumerable(i)){var o=f[i];return m(o.type,o.style,i)}if("async"==i&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return m("async","keyword",i)}return m("variable","variable",i)}}function v(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=g;break}r="*"==n}return m("comment","comment")}function y(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=g;break}r=!r&&"\\"==n}return m("quasi","string-2",e.current())}var b="([{}])";function w(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(c){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l=b.indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(d.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}var _={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function x(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function k(e,t){if(!u)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function E(e,t,n,r,i){var o=e.cc;for(S.state=e,S.stream=i,S.marked=null,S.cc=o,S.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():l?W:U)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return S.marked?S.marked:"variable"==n&&k(e,r)?"variable-2":t}}var S={state:null,column:null,marked:null,cc:null};function C(){for(var e=arguments.length-1;e>=0;e--)S.cc.push(arguments[e])}function T(){return C.apply(null,arguments),!0}function O(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function A(e){var t=S.state;if(S.marked="def",u){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=P(e,t.context);if(null!=r)return void(t.context=r)}else if(!O(e,t.localVars))return void(t.localVars=new M(e,t.localVars));n.globalVars&&!O(e,t.globalVars)&&(t.globalVars=new M(e,t.globalVars))}}function P(e,t){if(t){if(t.block){var n=P(e,t.prev);return n?n==t.prev?t:new D(n,t.vars,!0):null}return O(e,t.vars)?t:new D(t.prev,new M(e,t.vars),!1)}return null}function R(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function D(e,t,n){this.prev=e,this.vars=t,this.block=n}function M(e,t){this.name=e,this.next=t}var I=new M("this",new M("arguments",null));function L(){S.state.context=new D(S.state.context,S.state.localVars,!1),S.state.localVars=I}function j(){S.state.context=new D(S.state.context,S.state.localVars,!0),S.state.localVars=null}function N(){S.state.localVars=S.state.context.vars,S.state.context=S.state.context.prev}function F(e,t){var n=function(){var n=S.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new x(r,S.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function B(){var e=S.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function z(e){return function t(n){return n==e?T():";"==e||"}"==n||")"==n||"]"==n?C():T(t)}}function U(e,t){return"var"==e?T(F("vardef",t),Se,z(";"),B):"keyword a"==e?T(F("form"),H,U,B):"keyword b"==e?T(F("form"),U,B):"keyword d"==e?S.stream.match(/^\s*$/,!1)?T():T(F("stat"),G,z(";"),B):"debugger"==e?T(z(";")):"{"==e?T(F("}"),j,ue,B,N):";"==e?T():"if"==e?("else"==S.state.lexical.info&&S.state.cc[S.state.cc.length-1]==B&&S.state.cc.pop()(),T(F("form"),H,U,B,Re)):"function"==e?T(Le):"for"==e?T(F("form"),j,De,U,N,B):"class"==e||c&&"interface"==t?(S.marked="keyword",T(F("form","class"==e?e:t),ze,B)):"variable"==e?c&&"declare"==t?(S.marked="keyword",T(U)):c&&("module"==t||"enum"==t||"type"==t)&&S.stream.match(/^\s*\w/,!1)?(S.marked="keyword","enum"==t?T(Qe):"type"==t?T(Ne,z("operator"),he,z(";")):T(F("form"),Ce,z("{"),F("}"),ue,B,B)):c&&"namespace"==t?(S.marked="keyword",T(F("form"),W,U,B)):c&&"abstract"==t?(S.marked="keyword",T(U)):T(F("stat"),ne):"switch"==e?T(F("form"),H,z("{"),F("}","switch"),j,ue,B,B,N):"case"==e?T(W,z(":")):"default"==e?T(z(":")):"catch"==e?T(F("form"),L,q,U,B,N):"export"==e?T(F("stat"),$e,B):"import"==e?T(F("stat"),Ve,B):"async"==e?T(U):"@"==t?T(W,U):C(F("stat"),W,z(";"),B)}function q(e){if("("==e)return T(Fe,z(")"))}function W(e,t){return V(e,t,!1)}function $(e,t){return V(e,t,!0)}function H(e){return"("!=e?C():T(F(")"),G,z(")"),B)}function V(e,t,n){if(S.state.fatArrowAt==S.stream.start){var r=n?J:Q;if("("==e)return T(L,F(")"),se(Fe,")"),B,z("=>"),r,N);if("variable"==e)return C(L,Ce,z("=>"),r,N)}var i=n?Z:K;return _.hasOwnProperty(e)?T(i):"function"==e?T(Le,i):"class"==e||c&&"interface"==t?(S.marked="keyword",T(F("form"),Be,B)):"keyword c"==e||"async"==e?T(n?$:W):"("==e?T(F(")"),G,z(")"),B,i):"operator"==e||"spread"==e?T(n?$:W):"["==e?T(F("]"),Xe,B,i):"{"==e?le(ie,"}",null,i):"quasi"==e?C(Y,i):"new"==e?T(function(e){return function(t){return"."==t?T(e?te:ee):"variable"==t&&c?T(xe,e?Z:K):C(e?$:W)}}(n)):T()}function G(e){return e.match(/[;\}\)\],]/)?C():C(W)}function K(e,t){return","==e?T(G):Z(e,t,!1)}function Z(e,t,n){var r=0==n?K:Z,i=0==n?W:$;return"=>"==e?T(L,n?J:Q,N):"operator"==e?/\+\+|--/.test(t)||c&&"!"==t?T(r):c&&"<"==t&&S.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?T(F(">"),se(he,">"),B,r):"?"==t?T(W,z(":"),i):T(i):"quasi"==e?C(Y,r):";"!=e?"("==e?le($,")","call",r):"."==e?T(re,r):"["==e?T(F("]"),G,z("]"),B,r):c&&"as"==t?(S.marked="keyword",T(he,r)):"regexp"==e?(S.state.lastType=S.marked="operator",S.stream.backUp(S.stream.pos-S.stream.start-1),T(i)):void 0:void 0}function Y(e,t){return"quasi"!=e?C():"${"!=t.slice(t.length-2)?T(Y):T(G,X)}function X(e){if("}"==e)return S.marked="string-2",S.state.tokenize=y,T(Y)}function Q(e){return w(S.stream,S.state),C("{"==e?U:W)}function J(e){return w(S.stream,S.state),C("{"==e?U:$)}function ee(e,t){if("target"==t)return S.marked="keyword",T(K)}function te(e,t){if("target"==t)return S.marked="keyword",T(Z)}function ne(e){return":"==e?T(B,U):C(K,z(";"),B)}function re(e){if("variable"==e)return S.marked="property",T()}function ie(e,t){return"async"==e?(S.marked="property",T(ie)):"variable"==e||"keyword"==S.style?(S.marked="property","get"==t||"set"==t?T(oe):(c&&S.state.fatArrowAt==S.stream.start&&(n=S.stream.match(/^\s*:\s*/,!1))&&(S.state.fatArrowAt=S.stream.pos+n[0].length),T(ae))):"number"==e||"string"==e?(S.marked=s?"property":S.style+" property",T(ae)):"jsonld-keyword"==e?T(ae):c&&R(t)?(S.marked="keyword",T(ie)):"["==e?T(W,ce,z("]"),ae):"spread"==e?T($,ae):"*"==t?(S.marked="keyword",T(ie)):":"==e?C(ae):void 0;var n}function oe(e){return"variable"!=e?C(ae):(S.marked="property",T(Le))}function ae(e){return":"==e?T($):"("==e?C(Le):void 0}function se(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=S.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),T((function(n,r){return n==t||r==t?C():C(e)}),r)}return i==t||o==t?T():n&&n.indexOf(";")>-1?C(e):T(z(t))}return function(n,i){return n==t||i==t?T():C(e,r)}}function le(e,t,n){for(var r=3;r"),he):"quasi"==e?C(ye,_e):void 0}function me(e){if("=>"==e)return T(he)}function ge(e){return e.match(/[\}\)\]]/)?T():","==e||";"==e?T(ge):C(ve,ge)}function ve(e,t){return"variable"==e||"keyword"==S.style?(S.marked="property",T(ve)):"?"==t||"number"==e||"string"==e?T(ve):":"==e?T(he):"["==e?T(z("variable"),de,z("]"),ve):"("==e?C(je,ve):e.match(/[;\}\)\],]/)?void 0:T()}function ye(e,t){return"quasi"!=e?C():"${"!=t.slice(t.length-2)?T(ye):T(he,be)}function be(e){if("}"==e)return S.marked="string-2",S.state.tokenize=y,T(ye)}function we(e,t){return"variable"==e&&S.stream.match(/^\s*[?:]/,!1)||"?"==t?T(we):":"==e?T(he):"spread"==e?T(we):C(he)}function _e(e,t){return"<"==t?T(F(">"),se(he,">"),B,_e):"|"==t||"."==e||"&"==t?T(he):"["==e?T(he,z("]"),_e):"extends"==t||"implements"==t?(S.marked="keyword",T(he)):"?"==t?T(he,z(":"),he):void 0}function xe(e,t){if("<"==t)return T(F(">"),se(he,">"),B,_e)}function ke(){return C(he,Ee)}function Ee(e,t){if("="==t)return T(he)}function Se(e,t){return"enum"==t?(S.marked="keyword",T(Qe)):C(Ce,ce,Ae,Pe)}function Ce(e,t){return c&&R(t)?(S.marked="keyword",T(Ce)):"variable"==e?(A(t),T()):"spread"==e?T(Ce):"["==e?le(Oe,"]"):"{"==e?le(Te,"}"):void 0}function Te(e,t){return"variable"!=e||S.stream.match(/^\s*:/,!1)?("variable"==e&&(S.marked="property"),"spread"==e?T(Ce):"}"==e?C():"["==e?T(W,z("]"),z(":"),Te):T(z(":"),Ce,Ae)):(A(t),T(Ae))}function Oe(){return C(Ce,Ae)}function Ae(e,t){if("="==t)return T($)}function Pe(e){if(","==e)return T(Se)}function Re(e,t){if("keyword b"==e&&"else"==t)return T(F("form","else"),U,B)}function De(e,t){return"await"==t?T(De):"("==e?T(F(")"),Me,B):void 0}function Me(e){return"var"==e?T(Se,Ie):"variable"==e?T(Ie):C(Ie)}function Ie(e,t){return")"==e?T():";"==e?T(Ie):"in"==t||"of"==t?(S.marked="keyword",T(W,Ie)):C(W,Ie)}function Le(e,t){return"*"==t?(S.marked="keyword",T(Le)):"variable"==e?(A(t),T(Le)):"("==e?T(L,F(")"),se(Fe,")"),B,fe,U,N):c&&"<"==t?T(F(">"),se(ke,">"),B,Le):void 0}function je(e,t){return"*"==t?(S.marked="keyword",T(je)):"variable"==e?(A(t),T(je)):"("==e?T(L,F(")"),se(Fe,")"),B,fe,N):c&&"<"==t?T(F(">"),se(ke,">"),B,je):void 0}function Ne(e,t){return"keyword"==e||"variable"==e?(S.marked="type",T(Ne)):"<"==t?T(F(">"),se(ke,">"),B):void 0}function Fe(e,t){return"@"==t&&T(W,Fe),"spread"==e?T(Fe):c&&R(t)?(S.marked="keyword",T(Fe)):c&&"this"==e?T(ce,Ae):C(Ce,ce,Ae)}function Be(e,t){return"variable"==e?ze(e,t):Ue(e,t)}function ze(e,t){if("variable"==e)return A(t),T(Ue)}function Ue(e,t){return"<"==t?T(F(">"),se(ke,">"),B,Ue):"extends"==t||"implements"==t||c&&","==e?("implements"==t&&(S.marked="keyword"),T(c?he:W,Ue)):"{"==e?T(F("}"),qe,B):void 0}function qe(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||c&&R(t))&&S.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1)?(S.marked="keyword",T(qe)):"variable"==e||"keyword"==S.style?(S.marked="property",T(We,qe)):"number"==e||"string"==e?T(We,qe):"["==e?T(W,ce,z("]"),We,qe):"*"==t?(S.marked="keyword",T(qe)):c&&"("==e?C(je,qe):";"==e||","==e?T(qe):"}"==e?T():"@"==t?T(W,qe):void 0}function We(e,t){if("!"==t)return T(We);if("?"==t)return T(We);if(":"==e)return T(he,Ae);if("="==t)return T($);var n=S.state.lexical.prev;return C(n&&"interface"==n.info?je:Le)}function $e(e,t){return"*"==t?(S.marked="keyword",T(Ye,z(";"))):"default"==t?(S.marked="keyword",T(W,z(";"))):"{"==e?T(se(He,"}"),Ye,z(";")):C(U)}function He(e,t){return"as"==t?(S.marked="keyword",T(z("variable"))):"variable"==e?C($,He):void 0}function Ve(e){return"string"==e?T():"("==e?C(W):"."==e?C(K):C(Ge,Ke,Ye)}function Ge(e,t){return"{"==e?le(Ge,"}"):("variable"==e&&A(t),"*"==t&&(S.marked="keyword"),T(Ze))}function Ke(e){if(","==e)return T(Ge,Ke)}function Ze(e,t){if("as"==t)return S.marked="keyword",T(Ge)}function Ye(e,t){if("from"==t)return S.marked="keyword",T(W)}function Xe(e){return"]"==e?T():C(se($,"]"))}function Qe(){return C(F("form"),Ce,z("{"),F("}"),se(Je,"}"),B,B)}function Je(){return C(Ce,Ae)}function et(e,t,n){return t.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return L.lex=j.lex=!0,N.lex=!0,B.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new x((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new D(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),w(e,t)),t.tokenize!=v&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",E(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==v||t.tokenize==y)return e.Pass;if(t.tokenize!=g)return 0;var i,s=r&&r.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(r))for(var u=t.cc.length-1;u>=0;--u){var c=t.cc[u];if(c==B)l=l.prev;else if(c!=Re&&c!=N)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==K||i==Z)&&!/^[,\.=+\-*:?[\(]/.test(r));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var d=l.type,f=s==d;return"vardef"==d?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==d&&"{"==s?l.indented:"form"==d?l.indented+o:"stat"==d?l.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||p.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,r)?a||o:0):"switch"!=l.info||f||0==n.doubleIndentSwitch?l.align?l.column+(f?0:1):l.indented+(f?0:o):l.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:et,skipExpression:function(t){E(t,"atom","atom","true",new e.StringStream("",2,null))}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n(23326))},81032:(e,t,n)=>{!function(e){"use strict";e.defineMode("jinja2",(function(){var e=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","do","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","set","raw","endraw","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","call","endcall","macro","endmacro","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","without","context","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","pluralize","autoescape","endautoescape"],t=/^[+\-*&%=<>!?|~^]/,n=/^[:\[\(\{]/,r=["true","false"],i=/^(\d[+\-\*\/])?\d+(\.\d+)?/;function o(o,a){var s=o.peek();if(a.incomment)return o.skipTo("#}")?(o.eatWhile(/\#|}/),a.incomment=!1):o.skipToEnd(),"comment";if(a.intag){if(a.operator){if(a.operator=!1,o.match(r))return"atom";if(o.match(i))return"number"}if(a.sign){if(a.sign=!1,o.match(r))return"atom";if(o.match(i))return"number"}if(a.instring)return s==a.instring&&(a.instring=!1),o.next(),"string";if("'"==s||'"'==s)return a.instring=s,o.next(),"string";if(a.inbraces>0&&")"==s)o.next(),a.inbraces--;else if("("==s)o.next(),a.inbraces++;else if(a.inbrackets>0&&"]"==s)o.next(),a.inbrackets--;else if("["==s)o.next(),a.inbrackets++;else{if(!a.lineTag&&(o.match(a.intag+"}")||o.eat("-")&&o.match(a.intag+"}")))return a.intag=!1,"tag";if(o.match(t))return a.operator=!0,"operator";if(o.match(n))a.sign=!0;else{if(1==o.column()&&a.lineTag&&o.match(e))return"keyword";if(o.eat(" ")||o.sol()){if(o.match(e))return"keyword";if(o.match(r))return"atom";if(o.match(i))return"number";o.sol()&&o.next()}else o.next()}}return"variable"}if(o.eat("{")){if(o.eat("#"))return a.incomment=!0,o.skipTo("#}")?(o.eatWhile(/\#|}/),a.incomment=!1):o.skipToEnd(),"comment";if(s=o.eat(/\{|%/))return a.intag=s,a.inbraces=0,a.inbrackets=0,"{"==s&&(a.intag="}"),o.eat("-"),"tag"}else if(o.eat("#")){if("#"==o.peek())return o.skipToEnd(),"comment";if(!o.eol())return a.intag=!0,a.lineTag=!0,a.inbraces=0,a.inbrackets=0,"tag"}o.next()}return e=new RegExp("(("+e.join(")|(")+"))\\b"),r=new RegExp("(("+r.join(")|(")+"))\\b"),{startState:function(){return{tokenize:o,inbrackets:0,inbraces:0}},token:function(e,t){var n=t.tokenize(e,t);return e.eol()&&t.lineTag&&!t.instring&&0==t.inbraces&&0==t.inbrackets&&(t.intag=!1,t.lineTag=!1),n},blockCommentStart:"{#",blockCommentEnd:"#}",lineComment:"##"}})),e.defineMIME("text/jinja2","jinja2")}(n(23326))},27968:(e,t,n)=>{!function(e){"use strict";function t(e,t,n,r){this.state=e,this.mode=t,this.depth=n,this.prev=r}function n(r){return new t(e.copyState(r.mode,r.state),r.mode,r.depth,r.prev&&n(r.prev))}e.defineMode("jsx",(function(r,i){var o=e.getMode(r,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),a=e.getMode(r,i&&i.base||"javascript");function s(e){var t=e.tagName;e.tagName=null;var n=o.indent(e,"","");return e.tagName=t,n}return{startState:function(){return{context:new t(e.startState(a),a)}},copyState:function(e){return{context:n(e.context)}},token:function n(i,l){return l.context.mode==o?function(i,l,u){if(2==u.depth)return i.match(/^.*?\*\//)?u.depth=1:i.skipToEnd(),"comment";if("{"==i.peek()){o.skipAttribute(u.state);var c=s(u.state),d=u.state.context;if(d&&i.match(/^[^>]*>\s*$/,!1)){for(;d.prev&&!d.startOfLine;)d=d.prev;d.startOfLine?c-=r.indentUnit:u.prev.state.lexical&&(c=u.prev.state.lexical.indented)}else 1==u.depth&&(c+=r.indentUnit);return l.context=new t(e.startState(a,c),a,0,l.context),null}if(1==u.depth){if("<"==i.peek())return o.skipAttribute(u.state),l.context=new t(e.startState(o,s(u.state)),o,0,l.context),null;if(i.match("//"))return i.skipToEnd(),"comment";if(i.match("/*"))return u.depth=2,n(i,l)}var f,p=o.token(i,u.state),h=i.current();return/\btag\b/.test(p)?/>$/.test(h)?u.state.context?u.depth=0:l.context=l.context.prev:/^-1&&i.backUp(h.length-f),p}(i,l,l.context):function(n,r,i){if("<"==n.peek()&&a.expressionAllowed(n,i.state))return r.context=new t(e.startState(o,a.indent(i.state,"","")),o,0,r.context),a.skipExpression(i.state),null;var s=a.token(n,i.state);if(!s&&null!=i.depth){var l=n.current();"{"==l?i.depth++:"}"==l&&0==--i.depth&&(r.context=r.context.prev)}return s}(i,l,l.context)},indent:function(e,t,n){return e.context.mode.indent(e.context.state,t,n)},innerMode:function(e){return e.context}}}),"xml","javascript"),e.defineMIME("text/jsx","jsx"),e.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})}(n(23326),n(9812),n(49055))},38519:(e,t,n)=>{!function(e){"use strict";e.defineMode("julia",(function(t,n){function r(e,t,n){return void 0===n&&(n=""),void 0===t&&(t="\\b"),new RegExp("^"+n+"(("+e.join(")|(")+"))"+t)}var i=["[<>]:","[<>=]=","<<=?",">>>?=?","=>","--?>","<--[->]?","\\/\\/","\\.{2,3}","[\\.\\\\%*+\\-<>!\\/^|&]=?","\\?","\\$","~",":"],o=n.operators||r(["[<>]:","[<>=]=","[!=]==","<<=?",">>>?=?","=>?","--?>","<--[->]?","\\/\\/","[\\\\%*+\\-<>!\\/^|&\\u00F7\\u22BB]=?","\\?","\\$","~",":","\\u00D7","\\u2208","\\u2209","\\u220B","\\u220C","\\u2218","\\u221A","\\u221B","\\u2229","\\u222A","\\u2260","\\u2264","\\u2265","\\u2286","\\u2288","\\u228A","\\u22C5","\\b(in|isa)\\b(?!.?\\()"],""),a=n.delimiters||/^[;,()[\]{}]/,s=n.identifiers||/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,l=r(["\\\\[0-7]{1,3}","\\\\x[A-Fa-f0-9]{1,2}","\\\\[abefnrtv0%?'\"\\\\]","([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])"],"'"),u=["if","else","elseif","while","for","begin","let","end","do","try","catch","finally","return","break","continue","global","local","const","export","import","importall","using","function","where","macro","module","baremodule","struct","type","mutable","immutable","quote","typealias","abstract","primitive","bitstype"],c=["true","false","nothing","NaN","Inf"];e.registerHelper("hintWords","julia",u.concat(c));var d=r(["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"]),f=r(["end","else","elseif","catch","finally"]),p=r(u),h=r(c),m=/^@[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,g=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,v=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/,y=r(i,"","@"),b=r(i,"",":");function w(e){return e.nestedArrays>0}function _(e,t){return void 0===t&&(t=0),e.scopes.length<=t?null:e.scopes[e.scopes.length-(t+1)]}function x(e,t){if(e.match("#=",!1))return t.tokenize=E,t.tokenize(e,t);var n=t.leavingExpr;if(e.sol()&&(n=!1),t.leavingExpr=!1,n&&e.match(/^'+/))return"operator";if(e.match(/\.{4,}/))return"error";if(e.match(/\.{1,3}/))return"operator";if(e.eatSpace())return null;var r,i=e.peek();if("#"===i)return e.skipToEnd(),"comment";if("["===i&&(t.scopes.push("["),t.nestedArrays++),"("===i&&(t.scopes.push("("),t.nestedGenerators++),w(t)&&"]"===i){for(;t.scopes.length&&"["!==_(t);)t.scopes.pop();t.scopes.pop(),t.nestedArrays--,t.leavingExpr=!0}if(function(e){return e.nestedGenerators>0}(t)&&")"===i){for(;t.scopes.length&&"("!==_(t);)t.scopes.pop();t.scopes.pop(),t.nestedGenerators--,t.leavingExpr=!0}if(w(t)){if("end"==t.lastToken&&e.match(":"))return"operator";if(e.match("end"))return"number"}if((r=e.match(d,!1))&&t.scopes.push(r[0]),e.match(f,!1)&&t.scopes.pop(),e.match(/^::(?![:\$])/))return t.tokenize=k,t.tokenize(e,t);if(!n&&(e.match(g)||e.match(b)))return"builtin";if(e.match(o))return"operator";if(e.match(/^\.?\d/,!1)){var l=RegExp(/^im\b/),u=!1;if(e.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)&&(u=!0),e.match(/^0x[0-9a-f_]+/i)&&(u=!0),e.match(/^0b[01_]+/i)&&(u=!0),e.match(/^0o[0-7_]+/i)&&(u=!0),e.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)&&(u=!0),e.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)&&(u=!0),u)return e.match(l),t.leavingExpr=!0,"number"}if(e.match("'"))return t.tokenize=S,t.tokenize(e,t);if(e.match(v))return t.tokenize=function(e){return'"""'===e.substr(-3)?e='"""':'"'===e.substr(-1)&&(e='"'),function(t,n){if(t.eat("\\"))t.next();else{if(t.match(e))return n.tokenize=x,n.leavingExpr=!0,"string";t.eat(/[`"]/)}return t.eatWhile(/[^\\`"]/),"string"}}(e.current()),t.tokenize(e,t);if(e.match(m)||e.match(y))return"meta";if(e.match(a))return null;if(e.match(p))return"keyword";if(e.match(h))return"builtin";var c=t.isDefinition||"function"==t.lastToken||"macro"==t.lastToken||"type"==t.lastToken||"struct"==t.lastToken||"immutable"==t.lastToken;return e.match(s)?c?"."===e.peek()?(t.isDefinition=!0,"variable"):(t.isDefinition=!1,"def"):(t.leavingExpr=!0,"variable"):(e.next(),"error")}function k(e,t){return e.match(/.*?(?=[,;{}()=\s]|$)/),e.match("{")?t.nestedParameters++:e.match("}")&&t.nestedParameters>0&&t.nestedParameters--,t.nestedParameters>0?e.match(/.*?(?={|})/)||e.next():0==t.nestedParameters&&(t.tokenize=x),"builtin"}function E(e,t){return e.match("#=")&&t.nestedComments++,e.match(/.*?(?=(#=|=#))/)||e.skipToEnd(),e.match("=#")&&(t.nestedComments--,0==t.nestedComments&&(t.tokenize=x)),"comment"}function S(e,t){var n,r=!1;if(e.match(l))r=!0;else if(n=e.match(/\\u([a-f0-9]{1,4})(?=')/i))((i=parseInt(n[1],16))<=55295||i>=57344)&&(r=!0,e.next());else if(n=e.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var i;(i=parseInt(n[1],16))<=1114111&&(r=!0,e.next())}return r?(t.leavingExpr=!0,t.tokenize=x,"string"):(e.match(/^[^']+(?=')/)||e.skipToEnd(),e.match("'")&&(t.tokenize=x),"error")}return{startState:function(){return{tokenize:x,scopes:[],lastToken:null,leavingExpr:!1,isDefinition:!1,nestedArrays:0,nestedComments:0,nestedGenerators:0,nestedParameters:0,firstParenPos:-1}},token:function(e,t){var n=t.tokenize(e,t),r=e.current();return r&&n&&(t.lastToken=r),n},indent:function(e,n){var r=0;return("]"===n||")"===n||/^end\b/.test(n)||/^else/.test(n)||/^catch\b/.test(n)||/^elseif\b/.test(n)||/^finally/.test(n))&&(r=-1),(e.scopes.length+r)*t.indentUnit},electricInput:/\b(end|else|catch|finally)\b/,blockCommentStart:"#=",blockCommentEnd:"=#",lineComment:"#",closeBrackets:'()[]{}""',fold:"indent"}})),e.defineMIME("text/x-julia","julia")}(n(23326))},70688:(e,t,n)=>{!function(e){"use strict";e.defineMode("livescript",(function(){var e=function(e,t){var n=t.next||"start";if(n){t.next=t.next;var r=o[n];if(r.splice){for(var i=0;i|\\b(?:e(?:lse|xport)|d(?:o|efault)|t(?:ry|hen)|finally|import(?:\\s*all)?|const|var|let|new|catch(?:\\s*"+t+")?))\\s*$"),r="(?![$\\w]|-[A-Za-z]|\\s*:(?![:=]))",i={token:"string",regex:".+"},o={start:[{token:"comment.doc",regex:"/\\*",next:"comment"},{token:"comment",regex:"#.*"},{token:"keyword",regex:"(?:t(?:h(?:is|row|en)|ry|ypeof!?)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])|d(?:e(?:fault|lete|bugger)|o)|f(?:or(?:\\s+own)?|inally|unction)|s(?:uper|witch)|e(?:lse|x(?:tends|port)|val)|a(?:nd|rguments)|n(?:ew|ot)|un(?:less|til)|w(?:hile|ith)|o[fr]|return|break|let|var|loop)"+r},{token:"constant.language",regex:"(?:true|false|yes|no|on|off|null|void|undefined)"+r},{token:"invalid.illegal",regex:"(?:p(?:ackage|r(?:ivate|otected)|ublic)|i(?:mplements|nterface)|enum|static|yield)"+r},{token:"language.support.class",regex:"(?:R(?:e(?:gExp|ferenceError)|angeError)|S(?:tring|yntaxError)|E(?:rror|valError)|Array|Boolean|Date|Function|Number|Object|TypeError|URIError)"+r},{token:"language.support.function",regex:"(?:is(?:NaN|Finite)|parse(?:Int|Float)|Math|JSON|(?:en|de)codeURI(?:Component)?)"+r},{token:"variable.language",regex:"(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)"+r},{token:"identifier",regex:t+"\\s*:(?![:=])"},{token:"variable",regex:t},{token:"keyword.operator",regex:"(?:\\.{3}|\\s+\\?)"},{token:"keyword.variable",regex:"(?:@+|::|\\.\\.)",next:"key"},{token:"keyword.operator",regex:"\\.\\s*",next:"key"},{token:"string",regex:"\\\\\\S[^\\s,;)}\\]]*"},{token:"string.doc",regex:"'''",next:"qdoc"},{token:"string.doc",regex:'"""',next:"qqdoc"},{token:"string",regex:"'",next:"qstring"},{token:"string",regex:'"',next:"qqstring"},{token:"string",regex:"`",next:"js"},{token:"string",regex:"<\\[",next:"words"},{token:"string.regex",regex:"//",next:"heregex"},{token:"string.regex",regex:"\\/(?:[^[\\/\\n\\\\]*(?:(?:\\\\.|\\[[^\\]\\n\\\\]*(?:\\\\.[^\\]\\n\\\\]*)*\\])[^[\\/\\n\\\\]*)*)\\/[gimy$]{0,4}",next:"key"},{token:"constant.numeric",regex:"(?:0x[\\da-fA-F][\\da-fA-F_]*|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)(?:e[+-]?\\d[\\d_]*)?[\\w$]*)"},{token:"lparen",regex:"[({[]"},{token:"rparen",regex:"[)}\\]]",next:"key"},{token:"keyword.operator",regex:"\\S+"},{token:"text",regex:"\\s+"}],heregex:[{token:"string.regex",regex:".*?//[gimy$?]{0,4}",next:"start"},{token:"string.regex",regex:"\\s*#{"},{token:"comment.regex",regex:"\\s+(?:#.*)?"},{token:"string.regex",regex:"\\S+"}],key:[{token:"keyword.operator",regex:"[.?@!]+"},{token:"identifier",regex:t,next:"start"},{token:"text",regex:"",next:"start"}],comment:[{token:"comment.doc",regex:".*?\\*/",next:"start"},{token:"comment.doc",regex:".+"}],qdoc:[{token:"string",regex:".*?'''",next:"key"},i],qqdoc:[{token:"string",regex:'.*?"""',next:"key"},i],qstring:[{token:"string",regex:"[^\\\\']*(?:\\\\.[^\\\\']*)*'",next:"key"},i],qqstring:[{token:"string",regex:'[^\\\\"]*(?:\\\\.[^\\\\"]*)*"',next:"key"},i],js:[{token:"string",regex:"[^\\\\`]*(?:\\\\.[^\\\\`]*)*`",next:"key"},i],words:[{token:"string",regex:".*?\\]>",next:"key"},i]};for(var a in o){var s=o[a];if(s.splice)for(var l=0,u=s.length;l{!function(e){"use strict";e.defineMode("lua",(function(e,t){var n=e.indentUnit;function r(e){return new RegExp("^(?:"+e.join("|")+")$","i")}var i=r(t.specials||[]),o=r(["_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load","loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require","select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall","coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield","debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable","debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable","debug.setupvalue","debug.traceback","close","flush","lines","read","seek","setvbuf","write","io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin","io.stdout","io.tmpfile","io.type","io.write","math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg","math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max","math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh","math.sqrt","math.tan","math.tanh","os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale","os.time","os.tmpname","package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload","package.seeall","string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub","string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper","table.concat","table.insert","table.maxn","table.remove","table.sort"]),a=r(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]),s=r(["function","if","repeat","do","\\(","{"]),l=r(["end","until","\\)","}"]),u=new RegExp("^(?:"+["end","until","\\)","}","else","elseif"].join("|")+")","i");function c(e){for(var t=0;e.eat("=");)++t;return e.eat("["),t}function d(e,t){var n,r=e.next();return"-"==r&&e.eat("-")?e.eat("[")&&e.eat("[")?(t.cur=f(c(e),"comment"))(e,t):(e.skipToEnd(),"comment"):'"'==r||"'"==r?(t.cur=(n=r,function(e,t){for(var r,i=!1;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.cur=d),"string"}))(e,t):"["==r&&/[\[=]/.test(e.peek())?(t.cur=f(c(e),"string"))(e,t):/\d/.test(r)?(e.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(r)?(e.eatWhile(/[\w\\\-_.]/),"variable"):null}function f(e,t){return function(n,r){for(var i,o=null;null!=(i=n.next());)if(null==o)"]"==i&&(o=0);else if("="==i)++o;else{if("]"==i&&o==e){r.cur=d;break}o=null}return t}}return{startState:function(e){return{basecol:e||0,indentDepth:0,cur:d}},token:function(e,t){if(e.eatSpace())return null;var n=t.cur(e,t),r=e.current();return"variable"==n&&(a.test(r)?n="keyword":o.test(r)?n="builtin":i.test(r)&&(n="variable-2")),"comment"!=n&&"string"!=n&&(s.test(r)?++t.indentDepth:l.test(r)&&--t.indentDepth),n},indent:function(e,t){var r=u.test(t);return e.basecol+n*(e.indentDepth-(r?1:0))},electricInput:/^\s*(?:end|until|else|\)|\})$/,lineComment:"--",blockCommentStart:"--[[",blockCommentEnd:"]]"}})),e.defineMIME("text/x-lua","lua")}(n(23326))},48033:(e,t,n)=>{!function(e){"use strict";e.defineMode("markdown",(function(t,n){var r=e.getMode(t,"text/html"),i="null"==r.name;void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.emoji&&(n.emoji=!1),void 0===n.fencedCodeBlockHighlighting&&(n.fencedCodeBlockHighlighting=!0),void 0===n.fencedCodeBlockDefaultMode&&(n.fencedCodeBlockDefaultMode="text/plain"),void 0===n.xml&&(n.xml=!0),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var o={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var a in o)o.hasOwnProperty(a)&&n.tokenTypeOverrides[a]&&(o[a]=n.tokenTypeOverrides[a]);var s=/^([*\-_])(?:\s*\1){2,}\s*$/,l=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,u=/^\[(x| )\](?=\s)/i,c=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,d=/^ {0,3}(?:\={1,}|-{2,})\s*$/,f=/^[^#!\[\]*_\\<>` "'(~:]+/,p=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,h=/^\s*\[[^\]]+?\]:.*$/,m=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/;function g(e,t,n){return t.f=t.inline=n,n(e,t)}function v(e,t,n){return t.f=t.block=n,n(e,t)}function y(t){if(t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==w){var n=i;if(!n){var o=e.innerMode(r,t.htmlState);n="xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText}n&&(t.f=E,t.block=b,t.htmlState=null)}return t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function b(r,i){var a,f=r.column()===i.indentation,m=!(a=i.prevLine.stream)||!/\S/.test(a.string),v=i.indentedCode,y=i.prevLine.hr,b=!1!==i.list,w=(i.listStack[i.listStack.length-1]||0)+3;i.indentedCode=!1;var k=i.indentation;if(null===i.indentationDiff&&(i.indentationDiff=i.indentation,b)){for(i.list=null;k=4&&(v||i.prevLine.fencedCodeEnd||i.prevLine.header||m))return r.skipToEnd(),i.indentedCode=!0,o.code;if(r.eatSpace())return null;if(f&&i.indentation<=w&&(C=r.match(c))&&C[1].length<=6)return i.quote=0,i.header=C[1].length,i.thisLine.header=!0,n.highlightFormatting&&(i.formatting="header"),i.f=i.inline,x(i);if(i.indentation<=w&&r.eat(">"))return i.quote=f?1:i.quote+1,n.highlightFormatting&&(i.formatting="quote"),r.eatSpace(),x(i);if(!S&&!i.setext&&f&&i.indentation<=w&&(C=r.match(l))){var T=C[1]?"ol":"ul";return i.indentation=k+r.current().length,i.list=!0,i.quote=0,i.listStack.push(i.indentation),i.em=!1,i.strong=!1,i.code=!1,i.strikethrough=!1,n.taskLists&&r.match(u,!1)&&(i.taskList=!0),i.f=i.inline,n.highlightFormatting&&(i.formatting=["list","list-"+T]),x(i)}return f&&i.indentation<=w&&(C=r.match(p,!0))?(i.quote=0,i.fencedEndRE=new RegExp(C[1]+"+ *$"),i.localMode=n.fencedCodeBlockHighlighting&&function(n){if(e.findModeByName){var r=e.findModeByName(n);r&&(n=r.mime||r.mimes[0])}var i=e.getMode(t,n);return"null"==i.name?null:i}(C[2]||n.fencedCodeBlockDefaultMode),i.localMode&&(i.localState=e.startState(i.localMode)),i.f=i.block=_,n.highlightFormatting&&(i.formatting="code-block"),i.code=-1,x(i)):i.setext||!(E&&b||i.quote||!1!==i.list||i.code||S||h.test(r.string))&&(C=r.lookAhead(1))&&(C=C.match(d))?(i.setext?(i.header=i.setext,i.setext=0,r.skipToEnd(),n.highlightFormatting&&(i.formatting="header")):(i.header="="==C[0].charAt(0)?1:2,i.setext=i.header),i.thisLine.header=!0,i.f=i.inline,x(i)):S?(r.skipToEnd(),i.hr=!0,i.thisLine.hr=!0,o.hr):"["===r.peek()?g(r,i,O):g(r,i,i.inline)}function w(t,n){var o=r.token(t,n.htmlState);if(!i){var a=e.innerMode(r,n.htmlState);("xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText||n.md_inside&&t.current().indexOf(">")>-1)&&(n.f=E,n.block=b,n.htmlState=null)}return o}function _(e,t){var r,i=t.listStack[t.listStack.length-1]||0,a=t.indentation=e.quote?t.push(o.formatting+"-"+e.formatting[r]+"-"+e.quote):t.push("error"))}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref?t.push(o.linkHref,"url"):(e.strong&&t.push(o.strong),e.em&&t.push(o.em),e.strikethrough&&t.push(o.strikethrough),e.emoji&&t.push(o.emoji),e.linkText&&t.push(o.linkText),e.code&&t.push(o.code),e.image&&t.push(o.image),e.imageAltText&&t.push(o.imageAltText,"link"),e.imageMarker&&t.push(o.imageMarker)),e.header&&t.push(o.header,o.header+"-"+e.header),e.quote&&(t.push(o.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(o.quote+"-"+e.quote):t.push(o.quote+"-"+n.maxBlockquoteDepth)),!1!==e.list){var i=(e.listStack.length-1)%3;i?1===i?t.push(o.list2):t.push(o.list3):t.push(o.list1)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function k(e,t){if(e.match(f,!0))return x(t)}function E(t,i){var a=i.text(t,i);if(void 0!==a)return a;if(i.list)return i.list=null,x(i);if(i.taskList)return" "===t.match(u,!0)[1]?i.taskOpen=!0:i.taskClosed=!0,n.highlightFormatting&&(i.formatting="task"),i.taskList=!1,x(i);if(i.taskOpen=!1,i.taskClosed=!1,i.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(i.formatting="header"),x(i);var s=t.next();if(i.linkTitle){i.linkTitle=!1;var l=s;"("===s&&(l=")");var c="^\\s*(?:[^"+(l=(l+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+l;if(t.match(new RegExp(c),!0))return o.linkHref}if("`"===s){var d=i.formatting;n.highlightFormatting&&(i.formatting="code"),t.eatWhile("`");var f=t.current().length;if(0!=i.code||i.quote&&1!=f){if(f==i.code){var p=x(i);return i.code=0,p}return i.formatting=d,x(i)}return i.code=f,x(i)}if(i.code)return x(i);if("\\"===s&&(t.next(),n.highlightFormatting)){var h=x(i),g=o.formatting+"-escape";return h?h+" "+g:g}if("!"===s&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,n.highlightFormatting&&(i.formatting="image"),x(i);if("["===s&&i.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,n.highlightFormatting&&(i.formatting="image"),x(i);if("]"===s&&i.imageAltText)return n.highlightFormatting&&(i.formatting="image"),h=x(i),i.imageAltText=!1,i.image=!1,i.inline=i.f=C,h;if("["===s&&!i.image)return i.linkText&&t.match(/^.*?\]/)||(i.linkText=!0,n.highlightFormatting&&(i.formatting="link")),x(i);if("]"===s&&i.linkText)return n.highlightFormatting&&(i.formatting="link"),h=x(i),i.linkText=!1,i.inline=i.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?C:E,h;if("<"===s&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=S,n.highlightFormatting&&(i.formatting="link"),(h=x(i))?h+=" ":h="",h+o.linkInline;if("<"===s&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=S,n.highlightFormatting&&(i.formatting="link"),(h=x(i))?h+=" ":h="",h+o.linkEmail;if(n.xml&&"<"===s&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var y=t.string.indexOf(">",t.pos);if(-1!=y){var b=t.string.substring(t.start,y);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(b)&&(i.md_inside=!0)}return t.backUp(1),i.htmlState=e.startState(r),v(t,i,w)}if(n.xml&&"<"===s&&t.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===s||"_"===s){for(var _=1,k=1==t.pos?" ":t.string.charAt(t.pos-2);_<3&&t.eat(s);)_++;var T=t.peek()||" ",O=!/\s/.test(T)&&(!m.test(T)||/\s/.test(k)||m.test(k)),A=!/\s/.test(k)&&(!m.test(k)||/\s/.test(T)||m.test(T)),P=null,R=null;if(_%2&&(i.em||!O||"*"!==s&&A&&!m.test(k)?i.em!=s||!A||"*"!==s&&O&&!m.test(T)||(P=!1):P=!0),_>1&&(i.strong||!O||"*"!==s&&A&&!m.test(k)?i.strong!=s||!A||"*"!==s&&O&&!m.test(T)||(R=!1):R=!0),null!=R||null!=P)return n.highlightFormatting&&(i.formatting=null==P?"strong":null==R?"em":"strong em"),!0===P&&(i.em=s),!0===R&&(i.strong=s),p=x(i),!1===P&&(i.em=!1),!1===R&&(i.strong=!1),p}else if(" "===s&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return x(i);t.backUp(1)}if(n.strikethrough)if("~"===s&&t.eatWhile(s)){if(i.strikethrough)return n.highlightFormatting&&(i.formatting="strikethrough"),p=x(i),i.strikethrough=!1,p;if(t.match(/^[^\s]/,!1))return i.strikethrough=!0,n.highlightFormatting&&(i.formatting="strikethrough"),x(i)}else if(" "===s&&t.match("~~",!0)){if(" "===t.peek())return x(i);t.backUp(2)}if(n.emoji&&":"===s&&t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,n.highlightFormatting&&(i.formatting="emoji");var D=x(i);return i.emoji=!1,D}return" "===s&&(t.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),x(i)}function S(e,t){if(">"===e.next()){t.f=t.inline=E,n.highlightFormatting&&(t.formatting="link");var r=x(t);return r?r+=" ":r="",r+o.linkInline}return e.match(/^[^>]+/,!0),o.linkInline}function C(e,t){if(e.eatSpace())return null;var r,i=e.next();return"("===i||"["===i?(t.f=t.inline=(r="("===i?")":"]",function(e,t){if(e.next()===r){t.f=t.inline=E,n.highlightFormatting&&(t.formatting="link-string");var i=x(t);return t.linkHref=!1,i}return e.match(T[r]),t.linkHref=!0,x(t)}),n.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,x(t)):"error"}var T={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function O(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=A,e.next(),n.highlightFormatting&&(t.formatting="link"),t.linkText=!0,x(t)):g(e,t,E)}function A(e,t){if(e.match("]:",!0)){t.f=t.inline=P,n.highlightFormatting&&(t.formatting="link");var r=x(t);return t.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),o.linkText}function P(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),t.f=t.inline=E,o.linkHref+" url")}var R={startState:function(){return{f:b,prevLine:{stream:null},thisLine:{stream:null},block:b,htmlState:null,indentation:0,inline:E,text:k,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(r,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return y(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=w)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g," ").length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==w?{state:e.htmlState,mode:r}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:R}},indent:function(t,n,i){return t.block==w&&r.indent?r.indent(t.htmlState,n,i):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,n,i):e.Pass},blankLine:y,getType:x,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return R}),"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")}(n(23326),n(9812),n(2312))},87448:(e,t,n)=>{!function(e){"use strict";e.defineMode("mathematica",(function(e,t){var n="[a-zA-Z\\$][a-zA-Z0-9\\$]*",r="(?:\\.\\d+|\\d+\\.\\d*|\\d+)",i="(?:`(?:`?"+r+")?)",o=new RegExp("(?:(?:\\d+)(?:\\^\\^(?:\\.\\w+|\\w+\\.\\w*|\\w+)"+i+"?(?:\\*\\^[+-]?\\d+)?))"),a=new RegExp("(?:"+r+i+"?(?:\\*\\^[+-]?\\d+)?)"),s=new RegExp("(?:`?)(?:"+n+")(?:`(?:"+n+"))*(?:`?)");function l(e,t){var n;return'"'===(n=e.next())?(t.tokenize=u,t.tokenize(e,t)):"("===n&&e.eat("*")?(t.commentLevel++,t.tokenize=c,t.tokenize(e,t)):(e.backUp(1),e.match(o,!0,!1)||e.match(a,!0,!1)?"number":e.match(/(?:In|Out)\[[0-9]*\]/,!0,!1)?"atom":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::usage)/,!0,!1)?"meta":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::[a-zA-Z\$][a-zA-Z0-9\$]*):?/,!0,!1)?"string-2":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*\s*:)(?:(?:[a-zA-Z\$][a-zA-Z0-9\$]*)|(?:[^:=>~@\^\&\*\)\[\]'\?,\|])).*/,!0,!1)||e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)||e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+/,!0,!1)||e.match(/_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)?"variable-2":e.match(/\\\[[a-zA-Z\$][a-zA-Z0-9\$]*\]/,!0,!1)?"variable-3":e.match(/(?:\[|\]|{|}|\(|\))/,!0,!1)?"bracket":e.match(/(?:#[a-zA-Z\$][a-zA-Z0-9\$]*|#+[0-9]?)/,!0,!1)?"variable-2":e.match(s,!0,!1)?"keyword":e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/,!0,!1)?"operator":(e.next(),"error"))}function u(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if('"'===n&&!i){r=!0;break}i=!i&&"\\"===n}return r&&!i&&(t.tokenize=l),"string"}function c(e,t){for(var n,r;t.commentLevel>0&&null!=(r=e.next());)"("===n&&"*"===r&&t.commentLevel++,"*"===n&&")"===r&&t.commentLevel--,n=r;return t.commentLevel<=0&&(t.tokenize=l),"comment"}return{startState:function(){return{tokenize:l,commentLevel:0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"(*",blockCommentEnd:"*)"}})),e.defineMIME("text/x-mathematica",{name:"mathematica"})}(n(23326))},80704:(e,t,n)=>{!function(e){"use strict";var t=["From","Sender","Reply-To","To","Cc","Bcc","Message-ID","In-Reply-To","References","Resent-From","Resent-Sender","Resent-To","Resent-Cc","Resent-Bcc","Resent-Message-ID","Return-Path","Received"],n=["Date","Subject","Comments","Keywords","Resent-Date"];e.registerHelper("hintWords","mbox",t.concat(n));var r=/^[ \t]/,i=/^From /,o=new RegExp("^("+t.join("|")+"): "),a=new RegExp("^("+n.join("|")+"): "),s=/^[^:]+:/,l=/^[^ ]+@[^ ]+/,u=/^.*?(?=[^ ]+?@[^ ]+)/,c=/^<.*?>/,d=/^.*?(?=<.*>)/;function f(e,t){if(e.sol()){if(t.inSeparator=!1,t.inHeader&&e.match(r))return null;if(t.inHeader=!1,t.header=null,e.match(i))return t.inHeaders=!0,t.inSeparator=!0,"atom";var n,f=!1;return(n=e.match(a))||(f=!0)&&(n=e.match(o))?(t.inHeaders=!0,t.inHeader=!0,t.emailPermitted=f,t.header=n[1],"atom"):t.inHeaders&&(n=e.match(s))?(t.inHeader=!0,t.emailPermitted=!0,t.header=n[1],"atom"):(t.inHeaders=!1,e.skipToEnd(),null)}if(t.inSeparator)return e.match(l)?"link":(e.match(u)||e.skipToEnd(),"atom");if(t.inHeader){var p=function(e){return"Subject"===e?"header":"string"}(t.header);if(t.emailPermitted){if(e.match(c))return p+" link";if(e.match(d))return p}return e.skipToEnd(),p}return e.skipToEnd(),null}e.defineMode("mbox",(function(){return{startState:function(){return{inSeparator:!1,inHeader:!1,emailPermitted:!1,header:null,inHeaders:!1}},token:f,blankLine:function(e){e.inHeaders=e.inSeparator=e.inHeader=!1}}})),e.defineMIME("application/mbox","mbox")}(n(23326))},2312:(e,t,n)=>{!function(e){"use strict";e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var t=0;t-1&&t.substring(i+1,t.length);if(o)return e.findModeByExtension(o)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n{!function(e){"use strict";e.defineMIME("text/mirc","mirc"),e.defineMode("mirc",(function(){function e(e){for(var t={},n=e.split(" "),r=0;r!?^\/\|]/;function o(e,t,n){return t.tokenize=n,n(e,t)}function a(e,a){var u=a.beforeParams;a.beforeParams=!1;var c=e.next();if(/[\[\]{}\(\),\.]/.test(c))return"("==c&&u?a.inParams=!0:")"==c&&(a.inParams=!1),null;if(/\d/.test(c))return e.eatWhile(/[\w\.]/),"number";if("\\"==c)return e.eat("\\"),e.eat(/./),"number";if("/"==c&&e.eat("*"))return o(e,a,s);if(";"==c&&e.match(/ *\( *\(/))return o(e,a,l);if(";"!=c||a.inParams){if('"'==c)return e.eat(/"/),"keyword";if("$"==c)return e.eatWhile(/[$_a-z0-9A-Z\.:]/),t&&t.propertyIsEnumerable(e.current().toLowerCase())?"keyword":(a.beforeParams=!0,"builtin");if("%"==c)return e.eatWhile(/[^,\s()]/),a.beforeParams=!0,"string";if(i.test(c))return e.eatWhile(i),"operator";e.eatWhile(/[\w\$_{}]/);var d=e.current().toLowerCase();return n&&n.propertyIsEnumerable(d)?"keyword":r&&r.propertyIsEnumerable(d)?(a.beforeParams=!0,"keyword"):null}return e.skipToEnd(),"comment"}function s(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=a;break}r="*"==n}return"comment"}function l(e,t){for(var n,r=0;n=e.next();){if(";"==n&&2==r){t.tokenize=a;break}")"==n?r++:" "!=n&&(r=0)}return"meta"}return{startState:function(){return{tokenize:a,beforeParams:!1,inParams:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}}))}(n(23326))},65994:(e,t,n)=>{!function(e){"use strict";e.defineMode("mllike",(function(t,n){var r={as:"keyword",do:"keyword",else:"keyword",end:"keyword",exception:"keyword",fun:"keyword",functor:"keyword",if:"keyword",in:"keyword",include:"keyword",let:"keyword",of:"keyword",open:"keyword",rec:"keyword",struct:"keyword",then:"keyword",type:"keyword",val:"keyword",while:"keyword",with:"keyword"},i=n.extraWords||{};for(var o in i)i.hasOwnProperty(o)&&(r[o]=n.extraWords[o]);var a=[];for(var s in r)a.push(s);function l(e,t){var i=e.next();if('"'===i)return t.tokenize=u,t.tokenize(e,t);if("{"===i&&e.eat("|"))return t.longString=!0,t.tokenize=d,t.tokenize(e,t);if("("===i&&e.match(/^\*(?!\))/))return t.commentLevel++,t.tokenize=c,t.tokenize(e,t);if("~"===i||"?"===i)return e.eatWhile(/\w/),"variable-2";if("`"===i)return e.eatWhile(/\w/),"quote";if("/"===i&&n.slashComments&&e.eat("/"))return e.skipToEnd(),"comment";if(/\d/.test(i))return"0"===i&&e.eat(/[bB]/)&&e.eatWhile(/[01]/),"0"===i&&e.eat(/[xX]/)&&e.eatWhile(/[0-9a-fA-F]/),"0"===i&&e.eat(/[oO]/)?e.eatWhile(/[0-7]/):(e.eatWhile(/[\d_]/),e.eat(".")&&e.eatWhile(/[\d]/),e.eat(/[eE]/)&&e.eatWhile(/[\d\-+]/)),"number";if(/[+\-*&%=<>!?|@\.~:]/.test(i))return"operator";if(/[\w\xa1-\uffff]/.test(i)){e.eatWhile(/[\w\xa1-\uffff]/);var o=e.current();return r.hasOwnProperty(o)?r[o]:"variable"}return null}function u(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if('"'===n&&!i){r=!0;break}i=!i&&"\\"===n}return r&&!i&&(t.tokenize=l),"string"}function c(e,t){for(var n,r;t.commentLevel>0&&null!=(r=e.next());)"("===n&&"*"===r&&t.commentLevel++,"*"===n&&")"===r&&t.commentLevel--,n=r;return t.commentLevel<=0&&(t.tokenize=l),"comment"}function d(e,t){for(var n,r;t.longString&&null!=(r=e.next());)"|"===n&&"}"===r&&(t.longString=!1),n=r;return t.longString||(t.tokenize=l),"string"}return e.registerHelper("hintWords","mllike",a),{startState:function(){return{tokenize:l,commentLevel:0,longString:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:n.slashComments?"//":null}})),e.defineMIME("text/x-ocaml",{name:"mllike",extraWords:{and:"keyword",assert:"keyword",begin:"keyword",class:"keyword",constraint:"keyword",done:"keyword",downto:"keyword",external:"keyword",function:"keyword",initializer:"keyword",lazy:"keyword",match:"keyword",method:"keyword",module:"keyword",mutable:"keyword",new:"keyword",nonrec:"keyword",object:"keyword",private:"keyword",sig:"keyword",to:"keyword",try:"keyword",value:"keyword",virtual:"keyword",when:"keyword",raise:"builtin",failwith:"builtin",true:"builtin",false:"builtin",asr:"builtin",land:"builtin",lor:"builtin",lsl:"builtin",lsr:"builtin",lxor:"builtin",mod:"builtin",or:"builtin",raise_notrace:"builtin",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin",int:"type",float:"type",bool:"type",char:"type",string:"type",unit:"type",List:"builtin"}}),e.defineMIME("text/x-fsharp",{name:"mllike",extraWords:{abstract:"keyword",assert:"keyword",base:"keyword",begin:"keyword",class:"keyword",default:"keyword",delegate:"keyword","do!":"keyword",done:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",extern:"keyword",finally:"keyword",for:"keyword",function:"keyword",global:"keyword",inherit:"keyword",inline:"keyword",interface:"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",match:"keyword",member:"keyword",module:"keyword",mutable:"keyword",namespace:"keyword",new:"keyword",null:"keyword",override:"keyword",private:"keyword",public:"keyword","return!":"keyword",return:"keyword",select:"keyword",static:"keyword",to:"keyword",try:"keyword",upcast:"keyword","use!":"keyword",use:"keyword",void:"keyword",when:"keyword","yield!":"keyword",yield:"keyword",atomic:"keyword",break:"keyword",checked:"keyword",component:"keyword",const:"keyword",constraint:"keyword",constructor:"keyword",continue:"keyword",eager:"keyword",event:"keyword",external:"keyword",fixed:"keyword",method:"keyword",mixin:"keyword",object:"keyword",parallel:"keyword",process:"keyword",protected:"keyword",pure:"keyword",sealed:"keyword",tailcall:"keyword",trait:"keyword",virtual:"keyword",volatile:"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin",Option:"builtin",int:"builtin",string:"builtin",not:"builtin",true:"builtin",false:"builtin",raise:"builtin",failwith:"builtin"},slashComments:!0}),e.defineMIME("text/x-sml",{name:"mllike",extraWords:{abstype:"keyword",and:"keyword",andalso:"keyword",case:"keyword",datatype:"keyword",fn:"keyword",handle:"keyword",infix:"keyword",infixr:"keyword",local:"keyword",nonfix:"keyword",op:"keyword",orelse:"keyword",raise:"keyword",withtype:"keyword",eqtype:"keyword",sharing:"keyword",sig:"keyword",signature:"keyword",structure:"keyword",where:"keyword",true:"keyword",false:"keyword",int:"builtin",real:"builtin",string:"builtin",char:"builtin",bool:"builtin"},slashComments:!0})}(n(23326))},51755:(e,t,n)=>{!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r+\-\/^\[\]]/,l=/(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/,u=/[0-9]/,c=/[_a-zA-Z]/;function d(e,t){return e.skipToEnd(),t.tokenize=null,"comment"}function f(e,t){for(var n,r=!1;n=e.next();){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return"comment"}function p(e,t){for(var n,r=!1;null!=(n=e.next());){if('"'==n&&!r){t.tokenize=null,t.sol=!1;break}r=!r&&"\\"==n}return"string"}function h(e,t){for(e.eatWhile(u);e.eat(u)||e.eat(c););var n=e.current();return!t.sol||"package"!=n&&"model"!=n&&"when"!=n&&"connector"!=n?t.sol&&"end"==n&&t.level>0&&t.level--:t.level++,t.tokenize=null,t.sol=!1,i.propertyIsEnumerable(n)?"keyword":o.propertyIsEnumerable(n)?"builtin":a.propertyIsEnumerable(n)?"atom":"variable"}function m(e,t){for(;e.eat(/[^']/););return t.tokenize=null,t.sol=!1,e.eat("'")?"variable":"error"}function g(e,t){return e.eatWhile(u),e.eat(".")&&e.eatWhile(u),(e.eat("e")||e.eat("E"))&&(e.eat("-")||e.eat("+"),e.eatWhile(u)),t.tokenize=null,t.sol=!1,"number"}return{startState:function(){return{tokenize:null,level:0,sol:!0}},token:function(e,t){if(null!=t.tokenize)return t.tokenize(e,t);if(e.sol()&&(t.sol=!0),e.eatSpace())return t.tokenize=null,null;var n=e.next();if("/"==n&&e.eat("/"))t.tokenize=d;else if("/"==n&&e.eat("*"))t.tokenize=f;else{if(l.test(n+e.peek()))return e.next(),t.tokenize=null,"operator";if(s.test(n))return t.tokenize=null,"operator";if(c.test(n))t.tokenize=h;else if("'"==n&&e.peek()&&"'"!=e.peek())t.tokenize=m;else if('"'==n)t.tokenize=p;else{if(!u.test(n))return t.tokenize=null,"error";t.tokenize=g}}return t.tokenize(e,t)},indent:function(t,n){if(null!=t.tokenize)return e.Pass;var i=t.level;return/(algorithm)/.test(n)&&i--,/(equation)/.test(n)&&i--,/(initial algorithm)/.test(n)&&i--,/(initial equation)/.test(n)&&i--,/(end)/.test(n)&&i--,i>0?r*i:0},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}})),function(t,n){"string"==typeof t&&(t=[t]);var r=[];function i(e){if(e)for(var t in e)e.hasOwnProperty(t)&&r.push(t)}i(n.keywords),i(n.builtin),i(n.atoms),r.length&&(n.helperType=t[0],e.registerHelper("hintWords",t[0],r));for(var o=0;o{!function(e){"use strict";var t={mscgen:{keywords:["msc"],options:["hscale","width","arcgradient","wordwraparcs"],constants:["true","false","on","off"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]},xu:{keywords:["msc","xu"],options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip","title","deactivate","activate","activation"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]},msgenny:{keywords:null,options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:null,brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]}};function n(e){return new RegExp("^\\b(?:"+e.join("|")+")\\b","i")}function r(e){return new RegExp("^(?:"+e.join("|")+")","i")}function i(){return{inComment:!1,inString:!1,inAttributeList:!1,inScript:!1}}function o(e){return{inComment:e.inComment,inString:e.inString,inAttributeList:e.inAttributeList,inScript:e.inScript}}e.defineMode("mscgen",(function(e,a){return{startState:i,copyState:o,token:(s=t[a&&a.language||"mscgen"],function(e,t){if(e.match(r(s.brackets),!0,!0))return"bracket";if(!t.inComment){if(e.match(/\/\*[^\*\/]*/,!0,!0))return t.inComment=!0,"comment";if(e.match(r(s.singlecomment),!0,!0))return e.skipToEnd(),"comment"}if(t.inComment)return e.match(/[^\*\/]*\*\//,!0,!0)?t.inComment=!1:e.skipToEnd(),"comment";if(!t.inString&&e.match(/\"(\\\"|[^\"])*/,!0,!0))return t.inString=!0,"string";if(t.inString)return e.match(/[^\"]*\"/,!0,!0)?t.inString=!1:e.skipToEnd(),"string";if(s.keywords&&e.match(n(s.keywords),!0,!0))return"keyword";if(e.match(n(s.options),!0,!0))return"keyword";if(e.match(n(s.arcsWords),!0,!0))return"keyword";if(e.match(r(s.arcsOthers),!0,!0))return"keyword";if(s.operators&&e.match(r(s.operators),!0,!0))return"operator";if(s.constants&&e.match(r(s.constants),!0,!0))return"variable";if(!s.inAttributeList&&s.attributes&&e.match("[",!0,!0))return s.inAttributeList=!0,"bracket";if(s.inAttributeList){if(null!==s.attributes&&e.match(n(s.attributes),!0,!0))return"attribute";if(e.match("]",!0,!0))return s.inAttributeList=!1,"bracket"}return e.next(),"base"}),lineComment:"#",blockCommentStart:"/*",blockCommentEnd:"*/"};var s})),e.defineMIME("text/x-mscgen","mscgen"),e.defineMIME("text/x-xu",{name:"mscgen",language:"xu"}),e.defineMIME("text/x-msgenny",{name:"mscgen",language:"msgenny"})}(n(23326))},81482:(e,t,n)=>{!function(e){"use strict";e.defineMode("mumps",(function(){function e(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var t=new RegExp("^[\\+\\-\\*/&#!_?\\\\<>=\\'\\[\\]]"),n=new RegExp("^(('=)|(<=)|(>=)|('>)|('<)|([[)|(]])|(^$))"),r=new RegExp("^[\\.,:]"),i=new RegExp("[()]"),o=new RegExp("^[%A-Za-z][A-Za-z0-9]*"),a=e(["\\$ascii","\\$char","\\$data","\\$ecode","\\$estack","\\$etrap","\\$extract","\\$find","\\$fnumber","\\$get","\\$horolog","\\$io","\\$increment","\\$job","\\$justify","\\$length","\\$name","\\$next","\\$order","\\$piece","\\$qlength","\\$qsubscript","\\$query","\\$quit","\\$random","\\$reverse","\\$select","\\$stack","\\$test","\\$text","\\$translate","\\$view","\\$x","\\$y","\\$a","\\$c","\\$d","\\$e","\\$ec","\\$es","\\$et","\\$f","\\$fn","\\$g","\\$h","\\$i","\\$j","\\$l","\\$n","\\$na","\\$o","\\$p","\\$q","\\$ql","\\$qs","\\$r","\\$re","\\$s","\\$st","\\$t","\\$tr","\\$v","\\$z"]),s=e(["break","close","do","else","for","goto","halt","hang","if","job","kill","lock","merge","new","open","quit","read","set","tcommit","trollback","tstart","use","view","write","xecute","b","c","d","e","f","g","h","i","j","k","l","m","n","o","q","r","s","tc","tro","ts","u","v","w","x"]);return{startState:function(){return{label:!1,commandMode:0}},token:function(e,l){var u=function(e,l){e.sol()&&(l.label=!0,l.commandMode=0);var u=e.peek();return" "==u||"\t"==u?(l.label=!1,0==l.commandMode?l.commandMode=1:(l.commandMode<0||2==l.commandMode)&&(l.commandMode=0)):"."!=u&&l.commandMode>0&&(l.commandMode=":"==u?-1:2),"("!==u&&"\t"!==u||(l.label=!1),";"===u?(e.skipToEnd(),"comment"):e.match(/^[-+]?\d+(\.\d+)?([eE][-+]?\d+)?/)?"number":'"'==u?e.skipTo('"')?(e.next(),"string"):(e.skipToEnd(),"error"):e.match(n)||e.match(t)?"operator":e.match(r)?null:i.test(u)?(e.next(),"bracket"):l.commandMode>0&&e.match(s)?"variable-2":e.match(a)?"builtin":e.match(o)?"variable":"$"===u||"^"===u?(e.next(),"builtin"):"@"===u?(e.next(),"string-2"):/[\w%]/.test(u)?(e.eatWhile(/[\w%]/),"variable"):(e.next(),"error")}(e,l);return l.label?"tag":u}}})),e.defineMIME("text/x-mumps","mumps")}(n(23326))},77549:(e,t,n)=>{!function(e){"use strict";e.defineMode("nginx",(function(e){function t(e){for(var t={},n=e.split(" "),r=0;r*\/]/.test(d)?s(null,"select-op"):/[;{}:\[\]]/.test(d)?s(null,d):(e.eatWhile(/[\w\\\-]/),s("variable","variable")):s(null,"compare"):void s(null,"compare")}function u(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=l;break}r="*"==n}return s("comment","comment")}function c(e,t){for(var n,r=0;null!=(n=e.next());){if(r>=2&&">"==n){t.tokenize=l;break}r="-"==n?r+1:0}return s("comment","comment")}return{startState:function(e){return{tokenize:l,baseIndent:e||0,stack:[]}},token:function(e,t){if(e.eatSpace())return null;n=null;var r=t.tokenize(e,t),i=t.stack[t.stack.length-1];return"hash"==n&&"rule"==i?r="atom":"variable"==r&&("rule"==i?r="number":i&&"@media{"!=i||(r="tag")),"rule"==i&&/^[\{\};]$/.test(n)&&t.stack.pop(),"{"==n?"@media"==i?t.stack[t.stack.length-1]="@media{":t.stack.push("{"):"}"==n?t.stack.pop():"@media"==n?t.stack.push("@media"):"{"==i&&"comment"!=n&&t.stack.push("rule"),r},indent:function(e,t){var n=e.stack.length;return/^\}/.test(t)&&(n-="rule"==e.stack[e.stack.length-1]?2:1),e.baseIndent+n*a},electricChars:"}"}})),e.defineMIME("text/x-nginx-conf","nginx")}(n(23326))},13939:(e,t,n)=>{!function(e){"use strict";e.defineSimpleMode("nsis",{start:[{regex:/(?:[+-]?)(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\d+.?\d*)/,token:"number"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/`(?:[^\\`]|\\.)*`?/,token:"string"},{regex:/^\s*(?:\!(addincludedir|addplugindir|appendfile|assert|cd|define|delfile|echo|error|execute|finalize|getdllversion|gettlbversion|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|uninstfinalize|verbose|warning))\b/i,token:"keyword"},{regex:/^\s*(?:\!(if(?:n?def)?|ifmacron?def|macro))\b/i,token:"keyword",indent:!0},{regex:/^\s*(?:\!(else|endif|macroend))\b/i,token:"keyword",dedent:!0},{regex:/^\s*(?:Abort|AddBrandingImage|AddSize|AllowRootDirInstall|AllowSkipFiles|AutoCloseWindow|BGFont|BGGradient|BrandingText|BringToFront|Call|CallInstDLL|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|CreateDirectory|CreateFont|CreateShortCut|Delete|DeleteINISec|DeleteINIStr|DeleteRegKey|DeleteRegValue|DetailPrint|DetailsButtonText|DirText|DirVar|DirVerify|EnableWindow|EnumRegKey|EnumRegValue|Exch|Exec|ExecShell|ExecShellWait|ExecWait|ExpandEnvStrings|File|FileBufSize|FileClose|FileErrorText|FileOpen|FileRead|FileReadByte|FileReadUTF16LE|FileReadWord|FileWriteUTF16LE|FileSeek|FileWrite|FileWriteByte|FileWriteWord|FindClose|FindFirst|FindNext|FindWindow|FlushINI|GetCurInstType|GetCurrentAddress|GetDlgItem|GetDLLVersion|GetDLLVersionLocal|GetErrorLevel|GetFileTime|GetFileTimeLocal|GetFullPathName|GetFunctionAddress|GetInstDirError|GetKnownFolderPath|GetLabelAddress|GetTempFileName|GetWinVer|Goto|HideWindow|Icon|IfAbort|IfErrors|IfFileExists|IfRebootFlag|IfRtlLanguage|IfShellVarContextAll|IfSilent|InitPluginsDir|InstallButtonText|InstallColors|InstallDir|InstallDirRegKey|InstProgressFlags|InstType|InstTypeGetText|InstTypeSetText|Int64Cmp|Int64CmpU|Int64Fmt|IntCmp|IntCmpU|IntFmt|IntOp|IntPtrCmp|IntPtrCmpU|IntPtrOp|IsWindow|LangString|LicenseBkColor|LicenseData|LicenseForceSelection|LicenseLangString|LicenseText|LoadAndSetImage|LoadLanguageFile|LockWindow|LogSet|LogText|ManifestDPIAware|ManifestLongPathAware|ManifestMaxVersionTested|ManifestSupportedOS|MessageBox|MiscButtonText|Name|Nop|OutFile|Page|PageCallbacks|PEAddResource|PEDllCharacteristics|PERemoveResource|PESubsysVer|Pop|Push|Quit|ReadEnvStr|ReadINIStr|ReadRegDWORD|ReadRegStr|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|SectionGetFlags|SectionGetInstTypes|SectionGetSize|SectionGetText|SectionIn|SectionSetFlags|SectionSetInstTypes|SectionSetSize|SectionSetText|SendMessage|SetAutoClose|SetBrandingImage|SetCompress|SetCompressor|SetCompressorDictSize|SetCtlColors|SetCurInstType|SetDatablockOptimize|SetDateSave|SetDetailsPrint|SetDetailsView|SetErrorLevel|SetErrors|SetFileAttributes|SetFont|SetOutPath|SetOverwrite|SetRebootFlag|SetRegView|SetShellVarContext|SetSilent|ShowInstDetails|ShowUninstDetails|ShowWindow|SilentInstall|SilentUnInstall|Sleep|SpaceTexts|StrCmp|StrCmpS|StrCpy|StrLen|SubCaption|Target|Unicode|UninstallButtonText|UninstallCaption|UninstallIcon|UninstallSubCaption|UninstallText|UninstPage|UnRegDLL|Var|VIAddVersionKey|VIFileVersion|VIProductVersion|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|WriteRegMultiStr|WriteRegNone|WriteRegStr|WriteUninstaller|XPStyle)\b/i,token:"keyword"},{regex:/^\s*(?:Function|PageEx|Section(?:Group)?)\b/i,token:"keyword",indent:!0},{regex:/^\s*(?:(Function|PageEx|Section(?:Group)?)End)\b/i,token:"keyword",dedent:!0},{regex:/\b(?:ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HIDDEN|HKCC|HKCR(32|64)?|HKCU(32|64)?|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM(32|64)?|HKPD|HKU|IDABORT|IDCANCEL|IDD_DIR|IDD_INST|IDD_INSTFILES|IDD_LICENSE|IDD_SELCOM|IDD_UNINST|IDD_VERIFY|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|MB_YESNOCANCEL|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SW_HIDE|SW_SHOWDEFAULT|SW_SHOWMAXIMIZED|SW_SHOWMINIMIZED|SW_SHOWNORMAL|SYSTEM|TEMPORARY)\b/i,token:"atom"},{regex:/\b(?:admin|all|amd64-unicode|auto|both|bottom|bzip2|components|current|custom|directory|false|force|hide|highest|ifdiff|ifnewer|instfiles|lastused|leave|left|license|listonly|lzma|nevershow|none|normal|notset|off|on|right|show|silent|silentlog|textonly|top|true|try|un\.components|un\.custom|un\.directory|un\.instfiles|un\.license|uninstConfirm|user|Win10|Win7|Win8|WinVista|x-86-(ansi|unicode)|zlib)\b/i,token:"builtin"},{regex:/\$\{(?:And(?:If(?:Not)?|Unless)|Break|Case(?:2|3|4|5|Else)?|Continue|Default|Do(?:Until|While)?|Else(?:If(?:Not)?|Unless)?|End(?:If|Select|Switch)|Exit(?:Do|For|While)|For(?:Each)?|If(?:Cmd|Not(?:Then)?|Then)?|Loop(?:Until|While)?|Or(?:If(?:Not)?|Unless)|Select|Switch|Unless|While)\}/i,token:"variable-2",indent:!0},{regex:/\$\{(?:BannerTrimPath|DirState|DriveSpace|Get(BaseName|Drives|ExeName|ExePath|FileAttributes|FileExt|FileName|FileVersion|Options|OptionsS|Parameters|Parent|Root|Size|Time)|Locate|RefreshShellIcons)\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:Memento(?:Section(?:Done|End|Restore|Save)?|UnselectedSection))\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:Config(?:Read|ReadS|Write|WriteS)|File(?:Join|ReadFromEnd|Recode)|Line(?:Find|Read|Sum)|Text(?:Compare|CompareS)|TrimNewLines)\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:(?:At(?:Least|Most)|Is)(?:ServicePack|Win(?:7|8|10|95|98|200(?:0|3|8(?:R2)?)|ME|NT4|Vista|XP))|Is(?:NT|Server))\}/i,token:"variable",dedent:!0},{regex:/\$\{(?:StrFilterS?|Version(?:Compare|Convert)|Word(?:AddS?|Find(?:(?:2|3)X)?S?|InsertS?|ReplaceS?))\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:RunningX64)\}/i,token:"variable",dedent:!0},{regex:/\$\{(?:Disable|Enable)X64FSRedirection\}/i,token:"variable-2",dedent:!0},{regex:/(#|;).*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/\$\w[\w\.]*/,token:"variable"},{regex:/\${[\!\w\.:-]+}/,token:"variable-2"},{regex:/\$\([\!\w\.:-]+\)/,token:"variable-3"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{electricInput:/^\s*((Function|PageEx|Section|Section(Group)?)End|(\!(endif|macroend))|\$\{(End(If|Unless|While)|Loop(Until)|Next)\})$/i,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:["#",";"]}}),e.defineMIME("text/x-nsis","nsis")}(n(23326),n(81094))},53921:(e,t,n)=>{!function(e){"use strict";e.defineMode("ntriples",(function(){function e(e,t){var n,r=e.location;n=0==r&&"<"==t?1:0==r&&"_"==t?2:3==r&&"<"==t?4:5==r&&"<"==t?6:5==r&&"_"==t?7:5==r&&'"'==t?8:1==r&&">"==t||2==r&&" "==t?3:4==r&&">"==t?5:6==r&&">"==t||7==r&&" "==t||8==r&&'"'==t||9==r&&" "==t||10==r&&">"==t?11:8==r&&"@"==t?9:8==r&&"^"==t?10:" "!=t||0!=r&&3!=r&&5!=r&&11!=r?11==r&&"."==t?0:12:r,e.location=n}return{startState:function(){return{location:0,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(t,n){var r=t.next();if("<"==r){e(n,r);var i="";return t.eatWhile((function(e){return"#"!=e&&">"!=e&&(i+=e,!0)})),n.uris.push(i),t.match("#",!1)||(t.next(),e(n,">")),"variable"}if("#"==r){var o="";return t.eatWhile((function(e){return">"!=e&&" "!=e&&(o+=e,!0)})),n.anchors.push(o),"variable-2"}if(">"==r)return e(n,">"),"variable";if("_"==r){e(n,r);var a="";return t.eatWhile((function(e){return" "!=e&&(a+=e,!0)})),n.bnodes.push(a),t.next(),e(n," "),"builtin"}if('"'==r)return e(n,r),t.eatWhile((function(e){return'"'!=e})),t.next(),"@"!=t.peek()&&"^"!=t.peek()&&e(n,'"'),"string";if("@"==r){e(n,"@");var s="";return t.eatWhile((function(e){return" "!=e&&(s+=e,!0)})),n.langs.push(s),t.next(),e(n," "),"string-2"}if("^"==r){t.next(),e(n,"^");var l="";return t.eatWhile((function(e){return">"!=e&&(l+=e,!0)})),n.types.push(l),t.next(),e(n,">"),"variable"}" "==r&&e(n,r),"."==r&&e(n,r)}}})),e.defineMIME("application/n-triples","ntriples"),e.defineMIME("application/n-quads","ntriples"),e.defineMIME("text/n-triples","ntriples")}(n(23326))},55118:(e,t,n)=>{!function(e){"use strict";e.defineMode("octave",(function(){function e(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var t=new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]"),n=new RegExp("^[\\(\\[\\{\\},:=;\\.]"),r=new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))"),i=new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))"),o=new RegExp("^((>>=)|(<<=))"),a=new RegExp("^[\\]\\)]"),s=new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*"),l=e(["error","eval","function","abs","acos","atan","asin","cos","cosh","exp","log","prod","sum","log10","max","min","sign","sin","sinh","sqrt","tan","reshape","break","zeros","default","margin","round","ones","rand","syn","ceil","floor","size","clear","zeros","eye","mean","std","cov","det","eig","inv","norm","rank","trace","expm","logm","sqrtm","linspace","plot","title","xlabel","ylabel","legend","text","grid","meshgrid","mesh","num2str","fft","ifft","arrayfun","cellfun","input","fliplr","flipud","ismember"]),u=e(["return","case","switch","else","elseif","end","endif","endfunction","if","otherwise","do","for","while","try","catch","classdef","properties","events","methods","global","persistent","endfor","endwhile","printf","sprintf","disp","until","continue","pkg"]);function c(e,t){return e.sol()||"'"!==e.peek()?(t.tokenize=f,f(e,t)):(e.next(),t.tokenize=f,"operator")}function d(e,t){return e.match(/^.*%}/)?(t.tokenize=f,"comment"):(e.skipToEnd(),"comment")}function f(p,h){if(p.eatSpace())return null;if(p.match("%{"))return h.tokenize=d,p.skipToEnd(),"comment";if(p.match(/^[%#]/))return p.skipToEnd(),"comment";if(p.match(/^[0-9\.+-]/,!1)){if(p.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/))return p.tokenize=f,"number";if(p.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/))return"number";if(p.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/))return"number"}if(p.match(e(["nan","NaN","inf","Inf"])))return"number";var m=p.match(/^"(?:[^"]|"")*("|$)/)||p.match(/^'(?:[^']|'')*('|$)/);return m?m[1]?"string":"string error":p.match(u)?"keyword":p.match(l)?"builtin":p.match(s)?"variable":p.match(t)||p.match(r)?"operator":p.match(n)||p.match(i)||p.match(o)?null:p.match(a)?(h.tokenize=c,null):(p.next(),"error")}return{startState:function(){return{tokenize:f}},token:function(e,t){var n=t.tokenize(e,t);return"number"!==n&&"variable"!==n||(t.tokenize=c),n},lineComment:"%",fold:"indent"}})),e.defineMIME("text/x-octave","octave")}(n(23326))},46768:(e,t,n)=>{!function(e){"use strict";e.defineMode("oz",(function(e){function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var n,r=/[\^@!\|<>#~\.\*\-\+\\/,=]/,i=/(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/,o=/(:::)|(\.\.\.)|(=<:)|(>=:)/,a=["in","then","else","of","elseof","elsecase","elseif","catch","finally","with","require","prepare","import","export","define","do"],s=["end"],l=t(["true","false","nil","unit"]),u=t(["andthen","at","attr","declare","feat","from","lex","mod","div","mode","orelse","parser","prod","prop","scanner","self","syn","token"]),c=t(["local","proc","fun","case","class","if","cond","or","dis","choice","not","thread","try","raise","lock","for","suchthat","meth","functor"]),d=t(a),f=t(s);function p(e,t){if(e.eatSpace())return null;if(e.match(/[{}]/))return"bracket";if(e.match("[]"))return"keyword";if(e.match(o)||e.match(i))return"operator";if(e.match(l))return"atom";var n=e.match(c);if(n)return t.doInCurrentLine?t.doInCurrentLine=!1:t.currentIndent++,"proc"==n[0]||"fun"==n[0]?t.tokenize=g:"class"==n[0]?t.tokenize=h:"meth"==n[0]&&(t.tokenize=m),"keyword";if(e.match(d)||e.match(u))return"keyword";if(e.match(f))return t.currentIndent--,"keyword";var a,s=e.next();if('"'==s||"'"==s)return t.tokenize=(a=s,function(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if(n==a&&!r){i=!0;break}r=!r&&"\\"==n}return!i&&r||(t.tokenize=p),"string"}),t.tokenize(e,t);if(/[~\d]/.test(s)){if("~"==s){if(!/^[0-9]/.test(e.peek()))return null;if("0"==e.next()&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))return"number"}return"0"==s&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/)?"number":null}return"%"==s?(e.skipToEnd(),"comment"):"/"==s&&e.eat("*")?(t.tokenize=v,v(e,t)):r.test(s)?"operator":(e.eatWhile(/\w/),"variable")}function h(e,t){return e.eatSpace()?null:(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/),t.tokenize=p,"variable-3")}function m(e,t){return e.eatSpace()?null:(e.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/),t.tokenize=p,"def")}function g(e,t){return e.eatSpace()?null:!t.hasPassedFirstStage&&e.eat("{")?(t.hasPassedFirstStage=!0,"bracket"):t.hasPassedFirstStage?(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/),t.hasPassedFirstStage=!1,t.tokenize=p,"def"):(t.tokenize=p,null)}function v(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=p;break}r="*"==n}return"comment"}return{startState:function(){return{tokenize:p,currentIndent:0,doInCurrentLine:!1,hasPassedFirstStage:!1}},token:function(e,t){return e.sol()&&(t.doInCurrentLine=0),t.tokenize(e,t)},indent:function(t,n){var r=n.replace(/^\s+|\s+$/g,"");return r.match(f)||r.match(d)||r.match(/(\[])/)?e.indentUnit*(t.currentIndent-1):t.currentIndent<0?0:t.currentIndent*e.indentUnit},fold:"indent",electricInput:(n=a.concat(s),new RegExp("[\\[\\]]|("+n.join("|")+")$")),lineComment:"%",blockCommentStart:"/*",blockCommentEnd:"*/"}})),e.defineMIME("text/x-oz","oz")}(n(23326))},44199:(e,t,n)=>{!function(e){"use strict";e.defineMode("pascal",(function(){var e=function(e){for(var t={},n="absolute and array asm begin case const constructor destructor div do downto else end file for function goto if implementation in inherited inline interface label mod nil not object of operator or packed procedure program record reintroduce repeat self set shl shr string then to type unit until uses var while with xor as class dispinterface except exports finalization finally initialization inline is library on out packed property raise resourcestring threadvar try absolute abstract alias assembler bitpacked break cdecl continue cppdecl cvar default deprecated dynamic enumerator experimental export external far far16 forward generic helper implements index interrupt iocheck local message name near nodefault noreturn nostackframe oldfpccall otherwise overload override pascal platform private protected public published read register reintroduce result safecall saveregisters softfloat specialize static stdcall stored strict unaligned unimplemented varargs virtual write".split(" "),r=0;r!?|\/]/;function r(r,a){var s,l=r.next();if("#"==l&&a.startOfLine)return r.skipToEnd(),"meta";if('"'==l||"'"==l)return a.tokenize=(s=l,function(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if(n==s&&!r){i=!0;break}r=!r&&"\\"==n}return!i&&r||(t.tokenize=null),"string"}),a.tokenize(r,a);if("("==l&&r.eat("*"))return a.tokenize=i,i(r,a);if("{"==l)return a.tokenize=o,o(r,a);if(/[\[\]\(\),;\:\.]/.test(l))return null;if(/\d/.test(l))return r.eatWhile(/[\w\.]/),"number";if("/"==l&&r.eat("/"))return r.skipToEnd(),"comment";if(n.test(l))return r.eatWhile(n),"operator";r.eatWhile(/[\w\$_]/);var u=r.current();return e.propertyIsEnumerable(u)?"keyword":t.propertyIsEnumerable(u)?"atom":"variable"}function i(e,t){for(var n,r=!1;n=e.next();){if(")"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function o(e,t){for(var n;n=e.next();)if("}"==n){t.tokenize=null;break}return"comment"}return{startState:function(){return{tokenize:null}},token:function(e,t){return e.eatSpace()?null:(t.tokenize||r)(e,t)},electricChars:"{}"}})),e.defineMIME("text/x-pascal","pascal")}(n(23326))},6575:(e,t,n)=>{!function(e){"use strict";e.defineMode("pegjs",(function(t){var n=e.getMode(t,"javascript");return{startState:function(){return{inString:!1,stringType:null,inComment:!1,inCharacterClass:!1,braced:0,lhs:!0,localState:null}},token:function(t,r){if(r.inString||r.inComment||'"'!=t.peek()&&"'"!=t.peek()||(r.stringType=t.peek(),t.next(),r.inString=!0),r.inString||r.inComment||!t.match("/*")||(r.inComment=!0),r.inString){for(;r.inString&&!t.eol();)t.peek()===r.stringType?(t.next(),r.inString=!1):"\\"===t.peek()?(t.next(),t.next()):t.match(/^.[^\\\"\']*/);return r.lhs?"property string":"string"}if(r.inComment){for(;r.inComment&&!t.eol();)t.match("*/")?r.inComment=!1:t.match(/^.[^\*]*/);return"comment"}if(r.inCharacterClass)for(;r.inCharacterClass&&!t.eol();)t.match(/^[^\]\\]+/)||t.match(/^\\./)||(r.inCharacterClass=!1);else{if("["===t.peek())return t.next(),r.inCharacterClass=!0,"bracket";if(t.match("//"))return t.skipToEnd(),"comment";if(r.braced||"{"===t.peek()){null===r.localState&&(r.localState=e.startState(n));var i=n.token(t,r.localState),o=t.current();if(!i)for(var a=0;a{!function(e){"use strict";function t(e,t){return e.string.charAt(e.pos+(t||0))}function n(e,t){if(t){var n=e.pos-t;return e.string.substr(n>=0?n:0,t)}return e.string.substr(0,e.pos-1)}function r(e,t){var n=e.string.length,r=n-e.pos+1;return e.string.substr(e.pos,t&&t=(n=e.string.length-1)?e.pos=n:e.pos=r}e.defineMode("perl",(function(){var e={"->":4,"++":4,"--":4,"**":4,"=~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"<<":4,">>":4,"<":4,">":4,"<=":4,">=":4,lt:4,gt:4,le:4,ge:4,"==":4,"!=":4,"<=>":4,eq:4,ne:4,cmp:4,"~~":4,"&":4,"|":4,"^":4,"&&":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"=":4,"+=":4,"-=":4,"*=":4,",":4,"=>":4,"::":4,not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$<":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$>":5,$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$&":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$=":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,"$[":5,$OLD_PERL_VERSION:5,"$]":5,if:[1,1],elsif:[1,1],else:[1,1],while:[1,1],unless:[1,1],for:[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,break:1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,continue:[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,default:1,defined:1,delete:1,die:1,do:1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,goto:1,grep:1,hex:1,import:1,index:1,int:1,ioctl:1,join:1,keys:1,kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,new:1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,package:1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,return:1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null},o="string-2",a=/[goseximacplud]/;function s(e,t,n,r,i){return t.chain=null,t.style=null,t.tail=null,t.tokenize=function(e,t){for(var o,a=!1,s=0;o=e.next();){if(o===n[s]&&!a)return void 0!==n[++s]?(t.chain=n[s],t.style=r,t.tail=i):i&&e.eatWhile(i),t.tokenize=u,r;a=!a&&"\\"==o}return r},t.tokenize(e,t)}function l(e,t,n){return t.tokenize=function(e,t){return e.string==n&&(t.tokenize=u),e.skipToEnd(),"string"},t.tokenize(e,t)}function u(u,c){if(u.eatSpace())return null;if(c.chain)return s(u,c,c.chain,c.style,c.tail);if(u.match(/^(\-?((\d[\d_]*)?\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F_]+|0b[01_]+|\d[\d_]*(e[+-]?\d+)?)/))return"number";if(u.match(/^<<(?=[_a-zA-Z])/))return u.eatWhile(/\w/),l(u,c,u.current().substr(2));if(u.sol()&&u.match(/^\=item(?!\w)/))return l(u,c,"=cut");var d=u.next();if('"'==d||"'"==d){if(n(u,3)=="<<"+d){var f=u.pos;u.eatWhile(/\w/);var p=u.current().substr(1);if(p&&u.eat(d))return l(u,c,p);u.pos=f}return s(u,c,[d],"string")}if(!("q"!=d||(h=t(u,-2))&&/\w/.test(h)))if("x"==(h=t(u,0))){if("("==(h=t(u,1)))return i(u,2),s(u,c,[")"],o,a);if("["==h)return i(u,2),s(u,c,["]"],o,a);if("{"==h)return i(u,2),s(u,c,["}"],o,a);if("<"==h)return i(u,2),s(u,c,[">"],o,a);if(/[\^'"!~\/]/.test(h))return i(u,1),s(u,c,[u.eat(h)],o,a)}else if("q"==h){if("("==(h=t(u,1)))return i(u,2),s(u,c,[")"],"string");if("["==h)return i(u,2),s(u,c,["]"],"string");if("{"==h)return i(u,2),s(u,c,["}"],"string");if("<"==h)return i(u,2),s(u,c,[">"],"string");if(/[\^'"!~\/]/.test(h))return i(u,1),s(u,c,[u.eat(h)],"string")}else if("w"==h){if("("==(h=t(u,1)))return i(u,2),s(u,c,[")"],"bracket");if("["==h)return i(u,2),s(u,c,["]"],"bracket");if("{"==h)return i(u,2),s(u,c,["}"],"bracket");if("<"==h)return i(u,2),s(u,c,[">"],"bracket");if(/[\^'"!~\/]/.test(h))return i(u,1),s(u,c,[u.eat(h)],"bracket")}else if("r"==h){if("("==(h=t(u,1)))return i(u,2),s(u,c,[")"],o,a);if("["==h)return i(u,2),s(u,c,["]"],o,a);if("{"==h)return i(u,2),s(u,c,["}"],o,a);if("<"==h)return i(u,2),s(u,c,[">"],o,a);if(/[\^'"!~\/]/.test(h))return i(u,1),s(u,c,[u.eat(h)],o,a)}else if(/[\^'"!~\/(\[{<]/.test(h)){if("("==h)return i(u,1),s(u,c,[")"],"string");if("["==h)return i(u,1),s(u,c,["]"],"string");if("{"==h)return i(u,1),s(u,c,["}"],"string");if("<"==h)return i(u,1),s(u,c,[">"],"string");if(/[\^'"!~\/]/.test(h))return s(u,c,[u.eat(h)],"string")}if("m"==d&&(!(h=t(u,-2))||!/\w/.test(h))&&(h=u.eat(/[(\[{<\^'"!~\/]/))){if(/[\^'"!~\/]/.test(h))return s(u,c,[h],o,a);if("("==h)return s(u,c,[")"],o,a);if("["==h)return s(u,c,["]"],o,a);if("{"==h)return s(u,c,["}"],o,a);if("<"==h)return s(u,c,[">"],o,a)}if("s"==d&&!(h=/[\/>\]})\w]/.test(t(u,-2)))&&(h=u.eat(/[(\[{<\^'"!~\/]/)))return s(u,c,"["==h?["]","]"]:"{"==h?["}","}"]:"<"==h?[">",">"]:"("==h?[")",")"]:[h,h],o,a);if("y"==d&&!(h=/[\/>\]})\w]/.test(t(u,-2)))&&(h=u.eat(/[(\[{<\^'"!~\/]/)))return s(u,c,"["==h?["]","]"]:"{"==h?["}","}"]:"<"==h?[">",">"]:"("==h?[")",")"]:[h,h],o,a);if("t"==d&&!(h=/[\/>\]})\w]/.test(t(u,-2)))&&(h=u.eat("r"))&&(h=u.eat(/[(\[{<\^'"!~\/]/)))return s(u,c,"["==h?["]","]"]:"{"==h?["}","}"]:"<"==h?[">",">"]:"("==h?[")",")"]:[h,h],o,a);if("`"==d)return s(u,c,[d],"variable-2");if("/"==d)return/~\s*$/.test(n(u))?s(u,c,[d],o,a):"operator";if("$"==d){if(f=u.pos,u.eatWhile(/\d/)||u.eat("{")&&u.eatWhile(/\d/)&&u.eat("}"))return"variable-2";u.pos=f}if(/[$@%]/.test(d)){if(f=u.pos,u.eat("^")&&u.eat(/[A-Z]/)||!/[@$%&]/.test(t(u,-2))&&u.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var h=u.current();if(e[h])return"variable-2"}u.pos=f}if(/[$@%&]/.test(d)&&(u.eatWhile(/[\w$]/)||u.eat("{")&&u.eatWhile(/[\w$]/)&&u.eat("}")))return h=u.current(),e[h]?"variable-2":"variable";if("#"==d&&"$"!=t(u,-2))return u.skipToEnd(),"comment";if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(d)){if(f=u.pos,u.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/),e[u.current()])return"operator";u.pos=f}if("_"==d&&1==u.pos){if("_END__"==r(u,6))return s(u,c,["\0"],"comment");if("_DATA__"==r(u,7))return s(u,c,["\0"],"variable-2");if("_C__"==r(u,7))return s(u,c,["\0"],"string")}if(/\w/.test(d)){if(f=u.pos,"{"==t(u,-2)&&("}"==t(u,0)||u.eatWhile(/\w/)&&"}"==t(u,0)))return"string";u.pos=f}if(/[A-Z]/.test(d)){var m=t(u,-2);if(f=u.pos,u.eatWhile(/[A-Z_]/),!/[\da-z]/.test(t(u,0)))return(h=e[u.current()])?(h[1]&&(h=h[0]),":"!=m?1==h?"keyword":2==h?"def":3==h?"atom":4==h?"operator":5==h?"variable-2":"meta":"meta"):"meta";u.pos=f}return/[a-zA-Z_]/.test(d)?(m=t(u,-2),u.eatWhile(/\w/),(h=e[u.current()])?(h[1]&&(h=h[0]),":"!=m?1==h?"keyword":2==h?"def":3==h?"atom":4==h?"operator":5==h?"variable-2":"meta":"meta"):"meta"):null}return{startState:function(){return{tokenize:u,chain:null,style:null,tail:null}},token:function(e,t){return(t.tokenize||u)(e,t)},lineComment:"#"}})),e.registerHelper("wordChars","perl",/[\w$]/),e.defineMIME("text/x-perl","perl")}(n(23326))},98800:(e,t,n)=>{!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r\w/,!1)&&(t.tokenize=n([[["->",null]],[[/[\w]+/,"variable"]]],r,i)),"variable-2";for(var o=!1;!e.eol()&&(o||!1===i||!e.match("{$",!1)&&!e.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!o&&e.match(r)){t.tokenize=null,t.tokStack.pop(),t.tokStack.pop();break}o="\\"==e.next()&&!o}return"string"}(r,i,e,t)}}var i="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile enum extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally readonly match",o="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",a="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage memory_get_peak_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";e.registerHelper("hintWords","php",[i,o,a].join(" ").split(" ")),e.registerHelper("wordChars","php",/[\w$]/);var s={name:"clike",helperType:"php",keywords:t(i),blockKeywords:t("catch do else elseif for foreach if switch try while finally"),defKeywords:t("class enum function interface namespace trait"),atoms:t(o),builtin:t(a),multiLineStrings:!0,hooks:{$:function(e){return e.eatWhile(/[\w\$_]/),"variable-2"},"<":function(e,t){var n;if(n=e.match(/^<<\s*/)){var i=e.eat(/['"]/);e.eatWhile(/[\w\.]/);var o=e.current().slice(n[0].length+(i?2:1));if(i&&e.eat(i),o)return(t.tokStack||(t.tokStack=[])).push(o,0),t.tokenize=r(o,"'"!=i),"string"}return!1},"#":function(e){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"},"/":function(e){if(e.eat("/")){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"}return!1},'"':function(e,t){return(t.tokStack||(t.tokStack=[])).push('"',0),t.tokenize=r('"'),"string"},"{":function(e,t){return t.tokStack&&t.tokStack.length&&t.tokStack[t.tokStack.length-1]++,!1},"}":function(e,t){return t.tokStack&&t.tokStack.length>0&&! --t.tokStack[t.tokStack.length-1]&&(t.tokenize=r(t.tokStack[t.tokStack.length-2])),!1}}};e.defineMode("php",(function(t,n){var r=e.getMode(t,n&&n.htmlMode||"text/html"),i=e.getMode(t,s);return{startState:function(){var t=e.startState(r),o=n.startOpen?e.startState(i):null;return{html:t,php:o,curMode:n.startOpen?i:r,curState:n.startOpen?o:t,pending:null}},copyState:function(t){var n,o=t.html,a=e.copyState(r,o),s=t.php,l=s&&e.copyState(i,s);return n=t.curMode==r?a:l,{html:a,php:l,curMode:t.curMode,curState:n,pending:t.pending}},token:function(t,n){var o=n.curMode==i;if(t.sol()&&n.pending&&'"'!=n.pending&&"'"!=n.pending&&(n.pending=null),o)return o&&null==n.php.tokenize&&t.match("?>")?(n.curMode=r,n.curState=n.html,n.php.context.prev||(n.php=null),"meta"):i.token(t,n.curState);if(t.match(/^<\?\w*/))return n.curMode=i,n.php||(n.php=e.startState(i,r.indent(n.html,"",""))),n.curState=n.php,"meta";if('"'==n.pending||"'"==n.pending){for(;!t.eol()&&t.next()!=n.pending;);var a="string"}else n.pending&&t.pos/.test(l)?n.pending=s[0]:n.pending={end:t.pos,style:a},t.backUp(l.length-u)),a},indent:function(e,t,n){return e.curMode!=i&&/^\s*<\//.test(t)||e.curMode==i&&/^\?>/.test(t)?r.indent(e.html,t,n):e.curMode.indent(e.curState,t,n)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(e){return{state:e.curState,mode:e.curMode}}}}),"htmlmixed","clike"),e.defineMIME("application/x-httpd-php","php"),e.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),e.defineMIME("text/x-php",s)}(n(23326),n(38425),n(80011))},20997:(e,t,n)=>{!function(e){"use strict";e.defineMode("pig",(function(e,t){var n=t.keywords,r=t.builtins,i=t.types,o=t.multiLineStrings,a=/[*+\-%<>=&?:\/!|]/;function s(e,t,n){return t.tokenize=n,n(e,t)}function l(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=u;break}r="*"==n}return"comment"}function u(e,t){var c,d=e.next();return'"'==d||"'"==d?s(e,t,(c=d,function(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if(n==c&&!r){i=!0;break}r=!r&&"\\"==n}return(i||!r&&!o)&&(t.tokenize=u),"error"})):/[\[\]{}\(\),;\.]/.test(d)?null:/\d/.test(d)?(e.eatWhile(/[\w\.]/),"number"):"/"==d?e.eat("*")?s(e,t,l):(e.eatWhile(a),"operator"):"-"==d?e.eat("-")?(e.skipToEnd(),"comment"):(e.eatWhile(a),"operator"):a.test(d)?(e.eatWhile(a),"operator"):(e.eatWhile(/[\w\$_]/),n&&n.propertyIsEnumerable(e.current().toUpperCase())&&!e.eat(")")&&!e.eat(".")?"keyword":r&&r.propertyIsEnumerable(e.current().toUpperCase())?"variable-2":i&&i.propertyIsEnumerable(e.current().toUpperCase())?"variable-3":"variable")}return{startState:function(){return{tokenize:u,startOfLine:!0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}})),function(){function t(e){for(var t={},n=e.split(" "),r=0;r{!function(e){"use strict";var t;(t=n(23326)).defineMode("powershell",(function(){function e(e,t){for(var n=void 0!==(t=t||{}).prefix?t.prefix:"^",r=void 0!==t.suffix?t.suffix:"\\b",i=0;i/],{suffix:""}),a=e([/Add-(Computer|Content|History|Member|PSSnapin|Type)/,/Checkpoint-Computer/,/Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,/Compare-Object/,/Complete-Transaction/,/Connect-PSSession/,/ConvertFrom-(Csv|Json|SecureString|StringData)/,/Convert-Path/,/ConvertTo-(Csv|Html|Json|SecureString|Xml)/,/Copy-Item(Property)?/,/Debug-Process/,/Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/Disconnect-PSSession/,/Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/(Enter|Exit)-PSSession/,/Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,/ForEach-Object/,/Format-(Custom|List|Table|Wide)/,new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),/Group-Object/,/Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,/ImportSystemModules/,/Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,/Join-Path/,/Limit-EventLog/,/Measure-(Command|Object)/,/Move-Item(Property)?/,new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),/Out-(Default|File|GridView|Host|Null|Printer|String)/,/Pause/,/(Pop|Push)-Location/,/Read-Host/,/Receive-(Job|PSSession)/,/Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,/Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,/Rename-(Computer|Item(Property)?)/,/Reset-ComputerMachinePassword/,/Resolve-Path/,/Restart-(Computer|Service)/,/Restore-Computer/,/Resume-(Job|Service)/,/Save-Help/,/Select-(Object|String|Xml)/,/Send-MailMessage/,new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),/Show-(Command|ControlPanelItem|EventLog)/,/Sort-Object/,/Split-Path/,/Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,/Stop-(Computer|Job|Process|Service|Transcript)/,/Suspend-(Job|Service)/,/TabExpansion2/,/Tee-Object/,/Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,/Trace-Command/,/Unblock-File/,/Undo-Transaction/,/Unregister-(Event|PSSessionConfiguration)/,/Update-(FormatData|Help|List|TypeData)/,/Use-Transaction/,/Wait-(Event|Job|Process)/,/Where-Object/,/Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,/cd|help|mkdir|more|oss|prompt/,/ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,/echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,/group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,/measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,/rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,/sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/],{prefix:"",suffix:""}),s=e([/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,/FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,/MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,/PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,/PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,/WarningPreference|WhatIfPreference/,/Event|EventArgs|EventSubscriber|Sender/,/Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,/true|false|null/],{prefix:"\\$",suffix:""}),l={keyword:r,number:/^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i,operator:o,builtin:e([/[A-Z]:|%|\?/i,a,s],{suffix:t}),punctuation:/[\[\]{},;`\\\.]|@[({]/,identifier:/^[A-Za-z\_][A-Za-z\-\_\d]*\b/};function u(e,t){var r=t.returnStack[t.returnStack.length-1];if(r&&r.shouldReturnFrom(t))return t.tokenize=r.tokenize,t.returnStack.pop(),t.tokenize(e,t);if(e.eatSpace())return null;if(e.eat("("))return t.bracketNesting+=1,"punctuation";if(e.eat(")"))return t.bracketNesting-=1,"punctuation";for(var i in l)if(e.match(l[i]))return i;var o=e.next();if("'"===o)return function(e,t){for(var n;null!=(n=e.peek());)if(e.next(),"'"===n&&!e.eat("'"))return t.tokenize=u,"string";return"error"}(e,t);if("$"===o)return g(e,t);if('"'===o)return c(e,t);if("<"===o&&e.eat("#"))return t.tokenize=m,m(e,t);if("#"===o)return e.skipToEnd(),"comment";if("@"===o){var a=e.eat(/["']/);if(a&&e.eol())return t.tokenize=y,t.startQuote=a[0],y(e,t);if(e.eol())return"error";if(e.peek().match(/[({]/))return"punctuation";if(e.peek().match(n))return g(e,t)}return"error"}function c(e,t){for(var n;null!=(n=e.peek());){if("$"===n)return t.tokenize=d,"string";if(e.next(),"`"!==n){if('"'===n&&!e.eat('"'))return t.tokenize=u,"string"}else e.next()}return"error"}function d(e,t){return h(e,t,c)}function f(e,t){return t.tokenize=y,t.startQuote='"',y(e,t)}function p(e,t){return h(e,t,f)}function h(e,t,n){if(e.match("$(")){var r=t.bracketNesting;return t.returnStack.push({shouldReturnFrom:function(e){return e.bracketNesting===r},tokenize:n}),t.tokenize=u,t.bracketNesting+=1,"punctuation"}return e.next(),t.returnStack.push({shouldReturnFrom:function(){return!0},tokenize:n}),t.tokenize=g,t.tokenize(e,t)}function m(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&">"==n){t.tokenize=u;break}r="#"===n}return"comment"}function g(e,t){var r=e.peek();return e.eat("{")?(t.tokenize=v,v(e,t)):null!=r&&r.match(n)?(e.eatWhile(n),t.tokenize=u,"variable-2"):(t.tokenize=u,"error")}function v(e,t){for(var n;null!=(n=e.next());)if("}"===n){t.tokenize=u;break}return"variable-2"}function y(e,t){var n=t.startQuote;if(e.sol()&&e.match(new RegExp(n+"@")))t.tokenize=u;else if('"'===n)for(;!e.eol();){var r=e.peek();if("$"===r)return t.tokenize=p,"string";e.next(),"`"===r&&e.next()}else e.skipToEnd();return"string"}return{startState:function(){return{returnStack:[],bracketNesting:0,tokenize:u}},token:function(e,t){return t.tokenize(e,t)},blockCommentStart:"<#",blockCommentEnd:"#>",lineComment:"#",fold:"brace"}})),t.defineMIME("application/x-powershell","powershell")}()},16557:(e,t,n)=>{!function(e){"use strict";e.defineMode("properties",(function(){return{token:function(e,t){var n=e.sol()||t.afterSection,r=e.eol();if(t.afterSection=!1,n&&(t.nextMultiline?(t.inMultiline=!0,t.nextMultiline=!1):t.position="def"),r&&!t.nextMultiline&&(t.inMultiline=!1,t.position="def"),n)for(;e.eatSpace(););var i=e.next();return!n||"#"!==i&&"!"!==i&&";"!==i?n&&"["===i?(t.afterSection=!0,e.skipTo("]"),e.eat("]"),"header"):"="===i||":"===i?(t.position="quote",null):("\\"===i&&"quote"===t.position&&e.eol()&&(t.nextMultiline=!0),t.position):(t.position="comment",e.skipToEnd(),"comment")},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}}})),e.defineMIME("text/x-properties","properties"),e.defineMIME("text/x-ini","properties")}(n(23326))},38487:(e,t,n)=>{!function(e){"use strict";var t=["package","message","import","syntax","required","optional","repeated","reserved","default","extensions","packed","bool","bytes","double","enum","float","string","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","option","service","rpc","returns"],n=new RegExp("^(("+t.join(")|(")+"))\\b","i");e.registerHelper("hintWords","protobuf",t);var r=new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*");function i(e){if(e.eatSpace())return null;if(e.match("//"))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return"number"}return e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(n)?"keyword":e.match(r)?"variable":(e.next(),null)}e.defineMode("protobuf",(function(){return{token:i,fold:"brace"}})),e.defineMIME("text/x-protobuf","protobuf")}(n(23326))},12904:(e,t,n)=>{!function(e){"use strict";e.defineMode("pug",(function(t){var n="keyword",r={"{":"}","(":")","[":"]"},i=e.getMode(t,"javascript");function o(){this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=e.startState(i),this.restOfLine="",this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag="",this.scriptType="",this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue="",this.indentOf=1/0,this.indentToken="",this.innerMode=null,this.innerState=null,this.innerModeForLine=!1}function a(e,t){if(e.match("#{"))return t.isInterpolating=!0,t.interpolationNesting=0,"punctuation"}function s(n,r){var i;if(n.match(/^:([\w\-]+)/))return t&&t.innerModes&&(i=t.innerModes(n.current().substring(1))),i||(i=n.current().substring(1)),"string"==typeof i&&(i=e.getMode(t,i)),u(n,r,i),"atom"}function l(t,n){if(n.isAttrs){if(r[t.peek()]&&n.attrsNest.push(r[t.peek()]),n.attrsNest[n.attrsNest.length-1]===t.peek())n.attrsNest.pop();else if(t.eat(")"))return n.isAttrs=!1,"punctuation";if(n.inAttributeName&&t.match(/^[^=,\)!]+/))return"="!==t.peek()&&"!"!==t.peek()||(n.inAttributeName=!1,n.jsState=e.startState(i),"script"===n.lastTag&&"type"===t.current().trim().toLowerCase()?n.attributeIsType=!0:n.attributeIsType=!1),"attribute";var o=i.token(t,n.jsState);if(n.attributeIsType&&"string"===o&&(n.scriptType=t.current().toString()),0===n.attrsNest.length&&("string"===o||"variable"===o||"keyword"===o))try{return Function("","var x "+n.attrValue.replace(/,\s*$/,"").replace(/^!/,"")),n.inAttributeName=!0,n.attrValue="",t.backUp(t.current().length),l(t,n)}catch(e){}return n.attrValue+=t.current(),o||!0}}function u(n,r,i){i=e.mimeModes[i]||i,i=t.innerModes&&t.innerModes(i)||i,i=e.mimeModes[i]||i,i=e.getMode(t,i),r.indentOf=n.indentation(),i&&"null"!==i.name?r.innerMode=i:r.indentToken="string"}function c(t,n,r){if(t.indentation()>n.indentOf||n.innerModeForLine&&!t.sol()||r)return n.innerMode?(n.innerState||(n.innerState=n.innerMode.startState?e.startState(n.innerMode,t.indentation()):{}),t.hideFirstChars(n.indentOf+2,(function(){return n.innerMode.token(t,n.innerState)||!0}))):(t.skipToEnd(),n.indentToken);t.sol()&&(n.indentOf=1/0,n.indentToken=null,n.innerMode=null,n.innerState=null)}return o.prototype.copy=function(){var t=new o;return t.javaScriptLine=this.javaScriptLine,t.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,t.javaScriptArguments=this.javaScriptArguments,t.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,t.isInterpolating=this.isInterpolating,t.interpolationNesting=this.interpolationNesting,t.jsState=e.copyState(i,this.jsState),t.innerMode=this.innerMode,this.innerMode&&this.innerState&&(t.innerState=e.copyState(this.innerMode,this.innerState)),t.restOfLine=this.restOfLine,t.isIncludeFiltered=this.isIncludeFiltered,t.isEach=this.isEach,t.lastTag=this.lastTag,t.scriptType=this.scriptType,t.isAttrs=this.isAttrs,t.attrsNest=this.attrsNest.slice(),t.inAttributeName=this.inAttributeName,t.attributeIsType=this.attributeIsType,t.attrValue=this.attrValue,t.indentOf=this.indentOf,t.indentToken=this.indentToken,t.innerModeForLine=this.innerModeForLine,t},{startState:function(){return new o},copyState:function(e){return e.copy()},token:function(e,t){var r=c(e,t)||function(e,t){if(e.sol()&&(t.restOfLine=""),t.restOfLine){e.skipToEnd();var n=t.restOfLine;return t.restOfLine="",n}}(e,t)||function(e,t){if(t.isInterpolating){if("}"===e.peek()){if(t.interpolationNesting--,t.interpolationNesting<0)return e.next(),t.isInterpolating=!1,"punctuation"}else"{"===e.peek()&&t.interpolationNesting++;return i.token(e,t.jsState)||!0}}(e,t)||function(e,t){if(t.isIncludeFiltered){var n=s(e,t);return t.isIncludeFiltered=!1,t.restOfLine="string",n}}(e,t)||function(e,t){if(t.isEach){if(e.match(/^ in\b/))return t.javaScriptLine=!0,t.isEach=!1,n;if(e.sol()||e.eol())t.isEach=!1;else if(e.next()){for(;!e.match(/^ in\b/,!1)&&e.next(););return"variable"}}}(e,t)||l(e,t)||function(e,t){if(e.sol()&&(t.javaScriptLine=!1,t.javaScriptLineExcludesColon=!1),t.javaScriptLine){if(t.javaScriptLineExcludesColon&&":"===e.peek())return t.javaScriptLine=!1,void(t.javaScriptLineExcludesColon=!1);var n=i.token(e,t.jsState);return e.eol()&&(t.javaScriptLine=!1),n||!0}}(e,t)||function(e,t){if(t.javaScriptArguments)return 0===t.javaScriptArgumentsDepth&&"("!==e.peek()?void(t.javaScriptArguments=!1):("("===e.peek()?t.javaScriptArgumentsDepth++:")"===e.peek()&&t.javaScriptArgumentsDepth--,0===t.javaScriptArgumentsDepth?void(t.javaScriptArguments=!1):i.token(e,t.jsState)||!0)}(e,t)||function(e,t){if(t.mixinCallAfter)return t.mixinCallAfter=!1,e.match(/^\( *[-\w]+ *=/,!1)||(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0),!0}(e,t)||function(e){if(e.match(/^yield\b/))return"keyword"}(e)||function(e){if(e.match(/^(?:doctype) *([^\n]+)?/))return"meta"}(e)||a(e,t)||function(e,t){if(e.match(/^case\b/))return t.javaScriptLine=!0,n}(e,t)||function(e,t){if(e.match(/^when\b/))return t.javaScriptLine=!0,t.javaScriptLineExcludesColon=!0,n}(e,t)||function(e){if(e.match(/^default\b/))return n}(e)||function(e,t){if(e.match(/^extends?\b/))return t.restOfLine="string",n}(e,t)||function(e,t){if(e.match(/^append\b/))return t.restOfLine="variable",n}(e,t)||function(e,t){if(e.match(/^prepend\b/))return t.restOfLine="variable",n}(e,t)||function(e,t){if(e.match(/^block\b *(?:(prepend|append)\b)?/))return t.restOfLine="variable",n}(e,t)||function(e,t){if(e.match(/^include\b/))return t.restOfLine="string",n}(e,t)||function(e,t){if(e.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&e.match("include"))return t.isIncludeFiltered=!0,n}(e,t)||function(e,t){if(e.match(/^mixin\b/))return t.javaScriptLine=!0,n}(e,t)||function(e,t){return e.match(/^\+([-\w]+)/)?(e.match(/^\( *[-\w]+ *=/,!1)||(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0),"variable"):e.match("+#{",!1)?(e.next(),t.mixinCallAfter=!0,a(e,t)):void 0}(e,t)||function(e,t){if(e.match(/^(if|unless|else if|else)\b/))return t.javaScriptLine=!0,n}(e,t)||function(e,t){if(e.match(/^(- *)?(each|for)\b/))return t.isEach=!0,n}(e,t)||function(e,t){if(e.match(/^while\b/))return t.javaScriptLine=!0,n}(e,t)||function(e,t){var n;if(n=e.match(/^(\w(?:[-:\w]*\w)?)\/?/))return t.lastTag=n[1].toLowerCase(),"script"===t.lastTag&&(t.scriptType="application/javascript"),"tag"}(e,t)||s(e,t)||function(e,t){if(e.match(/^(!?=|-)/))return t.javaScriptLine=!0,"punctuation"}(e,t)||function(e){if(e.match(/^#([\w-]+)/))return"builtin"}(e)||function(e){if(e.match(/^\.([\w-]+)/))return"qualifier"}(e)||function(e,t){if("("==e.peek())return e.next(),t.isAttrs=!0,t.attrsNest=[],t.inAttributeName=!0,t.attrValue="",t.attributeIsType=!1,"punctuation"}(e,t)||function(e,t){if(e.match(/^&attributes\b/))return t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0,"keyword"}(e,t)||function(e){if(e.sol()&&e.eatSpace())return"indent"}(e)||function(e,t){return e.match(/^(?:\| ?| )([^\n]+)/)?"string":e.match(/^(<[^\n]*)/,!1)?(u(e,t,"htmlmixed"),t.innerModeForLine=!0,c(e,t,!0)):void 0}(e,t)||function(e,t){if(e.match(/^ *\/\/(-)?([^\n]*)/))return t.indentOf=e.indentation(),t.indentToken="comment","comment"}(e,t)||function(e){if(e.match(/^: */))return"colon"}(e)||function(e,t){if(e.eat(".")){var n=null;return"script"===t.lastTag&&-1!=t.scriptType.toLowerCase().indexOf("javascript")?n=t.scriptType.toLowerCase().replace(/"|'/g,""):"style"===t.lastTag&&(n="css"),u(e,t,n),"dot"}}(e,t)||function(e){return e.next(),null}(e);return!0===r?null:r}}}),"javascript","css","htmlmixed"),e.defineMIME("text/x-pug","pug"),e.defineMIME("text/x-jade","pug")}(n(23326),n(49055),n(98627),n(38425))},47912:(e,t,n)=>{!function(e){"use strict";e.defineMode("puppet",(function(){var e={},t=/({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;function n(t,n){for(var r=n.split(" "),i=0;i.*/,!1),s=n.match(/(\s+)?[\w:_]+(\s+)?{/,!1),l=n.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/,!1),u=n.next();if("$"===u)return n.match(t)?i.continueString?"variable-2":"variable":"error";if(i.continueString)return n.backUp(1),r(n,i);if(i.inDefinition){if(n.match(/(\s+)?[\w:_]+(\s+)?/))return"def";n.match(/\s+{/),i.inDefinition=!1}return i.inInclude?(n.match(/(\s+)?\S+(\s+)?/),i.inInclude=!1,"def"):n.match(/(\s+)?\w+\(/)?(n.backUp(1),"def"):a?(n.match(/(\s+)?\w+/),"tag"):o&&e.hasOwnProperty(o)?(n.backUp(1),n.match(/[\w]+/),n.match(/\s+\S+\s+{/,!1)&&(i.inDefinition=!0),"include"==o&&(i.inInclude=!0),e[o]):/(^|\s+)[A-Z][\w:_]+/.test(o)?(n.backUp(1),n.match(/(^|\s+)[A-Z][\w:_]+/),"def"):s?(n.match(/(\s+)?[\w:_]+/),"def"):l?(n.match(/(\s+)?[@]{1,2}/),"special"):"#"==u?(n.skipToEnd(),"comment"):"'"==u||'"'==u?(i.pending=u,r(n,i)):"{"==u||"}"==u?"bracket":"/"==u?(n.match(/^[^\/]*\//),"variable-3"):u.match(/[0-9]/)?(n.eatWhile(/[0-9]+/),"number"):"="==u?(">"==n.peek()&&n.next(),"operator"):(n.eatWhile(/[\w-]/),null)}(n,i)}}})),e.defineMIME("text/x-puppet","puppet")}(n(23326))},56141:(e,t,n)=>{!function(e){"use strict";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var n=t(["and","or","not","is"]),r=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in","False","True"],i=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];function o(e){return e.scopes[e.scopes.length-1]}e.registerHelper("hintWords","python",r.concat(i).concat(["exec","print"])),e.defineMode("python",(function(a,s){for(var l="error",u=s.delimiters||s.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,c=[s.singleOperators,s.doubleOperators,s.doubleDelimiters,s.tripleDelimiters,s.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],d=0;dr?x(t):i0&&k(e,t)&&(a+=" "+l),a}return _(e,t)}function _(e,t,r){if(e.eatSpace())return null;if(!r&&e.match(/^#.*/))return"comment";if(e.match(/^[0-9\.]/,!1)){var i=!1;if(e.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(i=!0),e.match(/^[\d_]+\.\d*/)&&(i=!0),e.match(/^\.\d+/)&&(i=!0),i)return e.eat(/J/i),"number";var o=!1;if(e.match(/^0x[0-9a-f_]+/i)&&(o=!0),e.match(/^0b[01_]+/i)&&(o=!0),e.match(/^0o[0-7_]+/i)&&(o=!0),e.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(e.eat(/J/i),o=!0),e.match(/^0(?![\dx])/i)&&(o=!0),o)return e.eat(/L/i),"number"}if(e.match(v))return-1!==e.current().toLowerCase().indexOf("f")?(t.tokenize=function(e,t){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var n=1==e.length,r="string";function i(e){return function(t,n){var r=_(t,n,!0);return"punctuation"==r&&("{"==t.current()?n.tokenize=i(e+1):"}"==t.current()&&(n.tokenize=e>1?i(e-1):o)),r}}function o(o,a){for(;!o.eol();)if(o.eatWhile(/[^'"\{\}\\]/),o.eat("\\")){if(o.next(),n&&o.eol())return r}else{if(o.match(e))return a.tokenize=t,r;if(o.match("{{"))return r;if(o.match("{",!1))return a.tokenize=i(0),o.current()?r:a.tokenize(o,a);if(o.match("}}"))return r;if(o.match("}"))return l;o.eat(/['"]/)}if(n){if(s.singleLineStringErrors)return l;a.tokenize=t}return r}return o.isString=!0,o}(e.current(),t.tokenize),t.tokenize(e,t)):(t.tokenize=function(e,t){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var n=1==e.length,r="string";function i(i,o){for(;!i.eol();)if(i.eatWhile(/[^'"\\]/),i.eat("\\")){if(i.next(),n&&i.eol())return r}else{if(i.match(e))return o.tokenize=t,r;i.eat(/['"]/)}if(n){if(s.singleLineStringErrors)return l;o.tokenize=t}return r}return i.isString=!0,i}(e.current(),t.tokenize),t.tokenize(e,t));for(var a=0;a1&&o(t).offset>n;){if("py"!=o(t).type)return!0;t.scopes.pop()}return o(t).offset!=n}return{startState:function(e){return{tokenize:w,scopes:[{offset:e||0,type:"py",align:null}],indent:e||0,lastToken:null,lambda:!1,dedent:0}},token:function(e,t){var n=t.errorToken;n&&(t.errorToken=!1);var r=function(e,t){e.sol()&&(t.beginningOfLine=!0,t.dedent=!1);var n=t.tokenize(e,t),r=e.current();if(t.beginningOfLine&&"@"==r)return e.match(g,!1)?"meta":m?"operator":l;if(/\S/.test(r)&&(t.beginningOfLine=!1),"variable"!=n&&"builtin"!=n||"meta"!=t.lastToken||(n="meta"),"pass"!=r&&"return"!=r||(t.dedent=!0),"lambda"==r&&(t.lambda=!0),":"==r&&!t.lambda&&"py"==o(t).type&&e.match(/^\s*(?:#|$)/,!1)&&x(t),1==r.length&&!/string|comment/.test(n)){var i="[({".indexOf(r);if(-1!=i&&function(e,t,n){var r=e.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:e.column()+1;t.scopes.push({offset:t.indent+f,type:n,align:r})}(e,t,"])}".slice(i,i+1)),-1!=(i="])}".indexOf(r))){if(o(t).type!=r)return l;t.indent=t.scopes.pop().offset-f}}return t.dedent&&e.eol()&&"py"==o(t).type&&t.scopes.length>1&&t.scopes.pop(),n}(e,t);return r&&"comment"!=r&&(t.lastToken="keyword"==r||"punctuation"==r?e.current():r),"punctuation"==r&&(r=null),e.eol()&&t.lambda&&(t.lambda=!1),n?r+" "+l:r},indent:function(t,n){if(t.tokenize!=w)return t.tokenize.isString?e.Pass:0;var r=o(t),i=r.type==n.charAt(0)||"py"==r.type&&!t.dedent&&/^(else:|elif |except |finally:)/.test(n);return null!=r.align?r.align-(i?1:0):r.offset-(i?f:0)},electricInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,closeBrackets:{triples:"'\""},lineComment:"#",fold:"indent"}})),e.defineMIME("text/x-python","python"),e.defineMIME("text/x-cython",{name:"python",extra_keywords:"by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE".split(" ")})}(n(23326))},68106:(e,t,n)=>{!function(e){"use strict";e.defineMode("q",(function(e){var t,n=e.indentUnit,r=new RegExp("^("+["abs","acos","aj","aj0","all","and","any","asc","asin","asof","atan","attr","avg","avgs","bin","by","ceiling","cols","cor","cos","count","cov","cross","csv","cut","delete","deltas","desc","dev","differ","distinct","div","do","each","ej","enlist","eval","except","exec","exit","exp","fby","fills","first","fkeys","flip","floor","from","get","getenv","group","gtime","hclose","hcount","hdel","hopen","hsym","iasc","idesc","if","ij","in","insert","inter","inv","key","keys","last","like","list","lj","load","log","lower","lsq","ltime","ltrim","mavg","max","maxs","mcount","md5","mdev","med","meta","min","mins","mmax","mmin","mmu","mod","msum","neg","next","not","null","or","over","parse","peach","pj","plist","prd","prds","prev","prior","rand","rank","ratios","raze","read0","read1","reciprocal","reverse","rload","rotate","rsave","rtrim","save","scan","select","set","setenv","show","signum","sin","sqrt","ss","ssr","string","sublist","sum","sums","sv","system","tables","tan","til","trim","txf","type","uj","ungroup","union","update","upper","upsert","value","var","view","views","vs","wavg","where","where","while","within","wj","wj1","wsum","xasc","xbar","xcol","xcols","xdesc","xexp","xgroup","xkey","xlog","xprev","xrank"].join("|")+")$"),i=/[|/&^!+:\\\-*%$=~#;@><,?_\'\"\[\(\]\)\s{}]/;function o(e,n){var s=e.sol(),c=e.next();if(t=null,s){if("/"==c)return(n.tokenize=a)(e,n);if("\\"==c)return e.eol()||/\s/.test(e.peek())?(e.skipToEnd(),/^\\\s*$/.test(e.current())?(n.tokenize=l)(e):n.tokenize=o,"comment"):(n.tokenize=o,"builtin")}if(/\s/.test(c))return"/"==e.peek()?(e.skipToEnd(),"comment"):"whitespace";if('"'==c)return(n.tokenize=u)(e,n);if("`"==c)return e.eatWhile(/[A-Za-z\d_:\/.]/),"symbol";if("."==c&&/\d/.test(e.peek())||/\d/.test(c)){var d=null;return e.backUp(1),e.match(/^\d{4}\.\d{2}(m|\.\d{2}([DT](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/)||e.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/)||e.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/)||e.match(/^\d+[ptuv]{1}/)?d="temporal":(e.match(/^0[NwW]{1}/)||e.match(/^0x[\da-fA-F]*/)||e.match(/^[01]+[b]{1}/)||e.match(/^\d+[chijn]{1}/)||e.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/))&&(d="number"),!d||(c=e.peek())&&!i.test(c)?(e.next(),"error"):d}return/[A-Za-z]|\./.test(c)?(e.eatWhile(/[A-Za-z._\d]/),r.test(e.current())?"keyword":"variable"):/[|/&^!+:\\\-*%$=~#;@><\.,?_\']/.test(c)||/[{}\(\[\]\)]/.test(c)?null:"error"}function a(e,t){return e.skipToEnd(),/\/\s*$/.test(e.current())?(t.tokenize=s)(e,t):t.tokenize=o,"comment"}function s(e,t){var n=e.sol()&&"\\"==e.peek();return e.skipToEnd(),n&&/^\\\s*$/.test(e.current())&&(t.tokenize=o),"comment"}function l(e){return e.skipToEnd(),"comment"}function u(e,t){for(var n,r=!1,i=!1;n=e.next();){if('"'==n&&!r){i=!0;break}r=!r&&"\\"==n}return i&&(t.tokenize=o),"string"}function c(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function d(e){e.indent=e.context.indent,e.context=e.context.prev}return{startState:function(){return{tokenize:o,context:null,indent:0,col:0}},token:function(e,n){e.sol()&&(n.context&&null==n.context.align&&(n.context.align=!1),n.indent=e.indentation());var r=n.tokenize(e,n);if("comment"!=r&&n.context&&null==n.context.align&&"pattern"!=n.context.type&&(n.context.align=!0),"("==t)c(n,")",e.column());else if("["==t)c(n,"]",e.column());else if("{"==t)c(n,"}",e.column());else if(/[\]\}\)]/.test(t)){for(;n.context&&"pattern"==n.context.type;)d(n);n.context&&t==n.context.type&&d(n)}else"."==t&&n.context&&"pattern"==n.context.type?d(n):/atom|string|variable/.test(r)&&n.context&&(/[\}\]]/.test(n.context.type)?c(n,"pattern",e.column()):"pattern"!=n.context.type||n.context.align||(n.context.align=!0,n.context.col=e.column()));return r},indent:function(e,t){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&"pattern"==i.type;)i=i.prev;var o=i&&r==i.type;return i?"pattern"==i.type?i.col:i.align?i.col+(o?0:1):i.indent+(o?0:n):0}}})),e.defineMIME("text/x-q","q")}(n(23326))},32848:(e,t,n)=>{!function(e){"use strict";e.registerHelper("wordChars","r",/[\w.]/),e.defineMode("r",(function(t){function n(e){for(var t={},n=0;n=!&|~$:]/;function f(e,t){a=null;var n,r=e.next();if("#"==r)return e.skipToEnd(),"comment";if("0"==r&&e.eat("x"))return e.eatWhile(/[\da-f]/i),"number";if("."==r&&e.eat(/\d/))return e.match(/\d*(?:e[+\-]?\d+)?/),"number";if(/\d/.test(r))return e.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/),"number";if("'"==r||'"'==r)return t.tokenize=(n=r,function(e,t){if(e.eat("\\")){var r=e.next();return"x"==r?e.match(/^[a-f0-9]{2}/i):("u"==r||"U"==r)&&e.eat("{")&&e.skipTo("}")?e.next():"u"==r?e.match(/^[a-f0-9]{4}/i):"U"==r?e.match(/^[a-f0-9]{8}/i):/[0-7]/.test(r)&&e.match(/^[0-7]{1,2}/),"string-2"}for(var i;null!=(i=e.next());){if(i==n){t.tokenize=f;break}if("\\"==i){e.backUp(1);break}}return"string"}),"string";if("`"==r)return e.match(/[^`]+`/),"variable-3";if("."==r&&e.match(/.(?:[.]|\d+)/))return"keyword";if(/[a-zA-Z\.]/.test(r)){e.eatWhile(/[\w\.]/);var i=e.current();return s.propertyIsEnumerable(i)?"atom":u.propertyIsEnumerable(i)?(c.propertyIsEnumerable(i)&&!e.match(/\s*if(\s+|$)/,!1)&&(a="block"),"keyword"):l.propertyIsEnumerable(i)?"builtin":"variable"}return"%"==r?(e.skipTo("%")&&e.next(),"operator variable-2"):"<"==r&&e.eat("-")||"<"==r&&e.match("<-")||"-"==r&&e.match(/>>?/)?"operator arrow":"="==r&&t.ctx.argList?"arg-is":d.test(r)?"$"==r?"operator dollar":(e.eatWhile(d),"operator"):/[\(\){}\[\];]/.test(r)?(a=r,";"==r?"semi":null):null}function p(e,t,n){e.ctx={type:t,indent:e.indent,flags:0,column:n.column(),prev:e.ctx}}function h(e,t){var n=e.ctx;e.ctx={type:n.type,indent:n.indent,flags:n.flags|t,column:n.column,prev:n.prev}}function m(e){e.indent=e.ctx.indent,e.ctx=e.ctx.prev}return{startState:function(){return{tokenize:f,ctx:{type:"top",indent:-t.indentUnit,flags:2},indent:0,afterIdent:!1}},token:function(e,t){if(e.sol()&&(!(3&t.ctx.flags)&&(t.ctx.flags|=2),4&t.ctx.flags&&m(t),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"!=n&&!(2&t.ctx.flags)&&h(t,1),";"!=a&&"{"!=a&&"}"!=a||"block"!=t.ctx.type||m(t),"{"==a?p(t,"}",e):"("==a?(p(t,")",e),t.afterIdent&&(t.ctx.argList=!0)):"["==a?p(t,"]",e):"block"==a?p(t,"block",e):a==t.ctx.type?m(t):"block"==t.ctx.type&&"comment"!=n&&h(t,4),t.afterIdent="variable"==n||"keyword"==n,n},indent:function(e,n){if(e.tokenize!=f)return 0;var r=n&&n.charAt(0),i=e.ctx,o=r==i.type;return 4&i.flags&&(i=i.prev),"block"==i.type?i.indent+("{"==r?0:t.indentUnit):1&i.flags?i.column+(o?0:1):i.indent+(o?0:t.indentUnit)},lineComment:"#"}})),e.defineMIME("text/x-rsrc","r")}(n(23326))},87660:(e,t,n)=>{!function(e){"use strict";e.defineMode("rpm-changes",(function(){var e=/^-+$/,t=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /,n=/^[\w+.-]+@[\w.-]+/;return{token:function(r){if(r.sol()){if(r.match(e))return"tag";if(r.match(t))return"tag"}return r.match(n)?"string":(r.next(),null)}}})),e.defineMIME("text/x-rpm-changes","rpm-changes"),e.defineMode("rpm-spec",(function(){var e=/^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/,t=/^[a-zA-Z0-9()]+:/,n=/^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/,r=/^%(ifnarch|ifarch|if)/,i=/^%(else|endif)/,o=/^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/;return{startState:function(){return{controlFlow:!1,macroParameters:!1,section:!1}},token:function(a,s){if("#"==a.peek())return a.skipToEnd(),"comment";if(a.sol()){if(a.match(t))return"header";if(a.match(n))return"atom"}if(a.match(/^\$\w+/))return"def";if(a.match(/^\$\{\w+\}/))return"def";if(a.match(i))return"keyword";if(a.match(r))return s.controlFlow=!0,"keyword";if(s.controlFlow){if(a.match(o))return"operator";if(a.match(/^(\d+)/))return"number";a.eol()&&(s.controlFlow=!1)}if(a.match(e))return a.eol()&&(s.controlFlow=!1),"number";if(a.match(/^%[\w]+/))return a.match("(")&&(s.macroParameters=!0),"keyword";if(s.macroParameters){if(a.match(/^\d+/))return"number";if(a.match(")"))return s.macroParameters=!1,"keyword"}return a.match(/^%\{\??[\w \-\:\!]+\}/)?(a.eol()&&(s.controlFlow=!1),"def"):(a.next(),null)}}})),e.defineMIME("text/x-rpm-spec","rpm-spec")}(n(23326))},93315:(e,t,n)=>{!function(e){"use strict";e.defineMode("rst",(function(t,n){var r=/^\*\*[^\*\s](?:[^\*]*[^\*\s])?\*\*/,i=/^\*[^\*\s](?:[^\*]*[^\*\s])?\*/,o=/^``[^`\s](?:[^`]*[^`\s])``/,a=/^(?:[\d]+(?:[\.,]\d+)*)/,s=/^(?:\s\+[\d]+(?:[\.,]\d+)*)/,l=/^(?:\s\-[\d]+(?:[\.,]\d+)*)/,u=new RegExp("^[Hh][Tt][Tt][Pp][Ss]?://(?:[\\d\\w.-]+)\\.(?:\\w{2,6})(?:/[\\d\\w\\#\\%\\&\\-\\.\\,\\/\\:\\=\\?\\~]+)*"),c={token:function(e){if(e.match(r)&&e.match(/\W+|$/,!1))return"strong";if(e.match(i)&&e.match(/\W+|$/,!1))return"em";if(e.match(o)&&e.match(/\W+|$/,!1))return"string-2";if(e.match(a))return"number";if(e.match(s))return"positive";if(e.match(l))return"negative";if(e.match(u))return"link";for(;!(null==e.next()||e.match(r,!1)||e.match(i,!1)||e.match(o,!1)||e.match(a,!1)||e.match(s,!1)||e.match(l,!1)||e.match(u,!1)););return null}},d=e.getMode(t,n.backdrop||"rst-base");return e.overlayMode(d,c,!0)}),"python","stex"),e.defineMode("rst-base",(function(t){function n(e){var t=Array.prototype.slice.call(arguments,1);return e.replace(/{(\d+)}/g,(function(e,n){return void 0!==t[n]?t[n]:e}))}var r=e.getMode(t,"python"),i=e.getMode(t,"stex"),o="\\s+",a="(?:\\s*|\\W|$)",s=new RegExp(n("^{0}",a)),l="(?:[^\\W\\d_](?:[\\w!\"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)",u=new RegExp(n("^{0}",l)),c=n("(?:{0}|`{1}`)",l,"(?:[^\\W\\d_](?:[\\w\\s!\"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)"),d="(?:[^\\s\\|](?:[^\\|]*[^\\s\\|])?)",f="(?:[^\\`]+)",p=new RegExp(n("^{0}",f)),h=new RegExp("^([!'#$%&\"()*+,-./:;<=>?@\\[\\\\\\]^_`{|}~])\\1{3,}\\s*$"),m=new RegExp(n("^\\.\\.{0}",o)),g=new RegExp(n("^_{0}:{1}|^__:{1}",c,a)),v=new RegExp(n("^{0}::{1}",c,a)),y=new RegExp(n("^\\|{0}\\|{1}{2}::{3}",d,o,c,a)),b=new RegExp(n("^\\[(?:\\d+|#{0}?|\\*)]{1}",c,a)),w=new RegExp(n("^\\[{0}\\]{1}",c,a)),_=new RegExp(n("^\\|{0}\\|",d)),x=new RegExp(n("^\\[(?:\\d+|#{0}?|\\*)]_",c)),k=new RegExp(n("^\\[{0}\\]_",c)),E=new RegExp(n("^{0}__?",c)),S=new RegExp(n("^`{0}`_",f)),C=new RegExp(n("^:{0}:`{1}`{2}",l,f,a)),T=new RegExp(n("^`{1}`:{0}:{2}",l,f,a)),O=new RegExp(n("^:{0}:{1}",l,a)),A=new RegExp(n("^{0}",c)),P=new RegExp(n("^::{0}",a)),R=new RegExp(n("^\\|{0}\\|",d)),D=new RegExp(n("^{0}",o)),M=new RegExp(n("^{0}",c)),I=new RegExp(n("^::{0}",a)),L=new RegExp("^_"),j=new RegExp(n("^{0}|_",c)),N=new RegExp(n("^:{0}",a)),F=new RegExp("^::\\s*$"),B=new RegExp("^\\s+(?:>>>|In \\[\\d+\\]:)\\s");function z(t,n){var o=null;if(t.sol()&&t.match(B,!1))G(n,H,{mode:r,local:e.startState(r)});else if(t.sol()&&t.match(m))G(n,U),o="meta";else if(t.sol()&&t.match(h))G(n,z),o="header";else if(Z(n)==C||t.match(C,!1))switch(K(n)){case 0:G(n,z,V(C,1)),t.match(/^:/),o="meta";break;case 1:G(n,z,V(C,2)),t.match(u),o="keyword",t.current().match(/^(?:math|latex)/)&&(n.tmp_stex=!0);break;case 2:G(n,z,V(C,3)),t.match(/^:`/),o="meta";break;case 3:if(n.tmp_stex&&(n.tmp_stex=void 0,n.tmp={mode:i,local:e.startState(i)}),n.tmp){if("`"==t.peek()){G(n,z,V(C,4)),n.tmp=void 0;break}o=n.tmp.mode.token(t,n.tmp.local);break}G(n,z,V(C,4)),t.match(p),o="string";break;case 4:G(n,z,V(C,5)),t.match(/^`/),o="meta";break;case 5:G(n,z,V(C,6)),t.match(s);break;default:G(n,z)}else if(Z(n)==T||t.match(T,!1))switch(K(n)){case 0:G(n,z,V(T,1)),t.match(/^`/),o="meta";break;case 1:G(n,z,V(T,2)),t.match(p),o="string";break;case 2:G(n,z,V(T,3)),t.match(/^`:/),o="meta";break;case 3:G(n,z,V(T,4)),t.match(u),o="keyword";break;case 4:G(n,z,V(T,5)),t.match(/^:/),o="meta";break;case 5:G(n,z,V(T,6)),t.match(s);break;default:G(n,z)}else if(Z(n)==O||t.match(O,!1))switch(K(n)){case 0:G(n,z,V(O,1)),t.match(/^:/),o="meta";break;case 1:G(n,z,V(O,2)),t.match(u),o="keyword";break;case 2:G(n,z,V(O,3)),t.match(/^:/),o="meta";break;case 3:G(n,z,V(O,4)),t.match(s);break;default:G(n,z)}else if(Z(n)==_||t.match(_,!1))switch(K(n)){case 0:G(n,z,V(_,1)),t.match(R),o="variable-2";break;case 1:G(n,z,V(_,2)),t.match(/^_?_?/)&&(o="link");break;default:G(n,z)}else if(t.match(x))G(n,z),o="quote";else if(t.match(k))G(n,z),o="quote";else if(t.match(E))G(n,z),t.peek()&&!t.peek().match(/^\W$/)||(o="link");else if(Z(n)==S||t.match(S,!1))switch(K(n)){case 0:!t.peek()||t.peek().match(/^\W$/)?G(n,z,V(S,1)):t.match(S);break;case 1:G(n,z,V(S,2)),t.match(/^`/),o="link";break;case 2:G(n,z,V(S,3)),t.match(p);break;case 3:G(n,z,V(S,4)),t.match(/^`_/),o="link";break;default:G(n,z)}else t.match(F)?G(n,W):t.next()&&G(n,z);return o}function U(t,n){var o=null;if(Z(n)==y||t.match(y,!1))switch(K(n)){case 0:G(n,U,V(y,1)),t.match(R),o="variable-2";break;case 1:G(n,U,V(y,2)),t.match(D);break;case 2:G(n,U,V(y,3)),t.match(M),o="keyword";break;case 3:G(n,U,V(y,4)),t.match(I),o="meta";break;default:G(n,z)}else if(Z(n)==v||t.match(v,!1))switch(K(n)){case 0:G(n,U,V(v,1)),t.match(A),o="keyword",t.current().match(/^(?:math|latex)/)?n.tmp_stex=!0:t.current().match(/^python/)&&(n.tmp_py=!0);break;case 1:G(n,U,V(v,2)),t.match(P),o="meta",(t.match(/^latex\s*$/)||n.tmp_stex)&&(n.tmp_stex=void 0,G(n,H,{mode:i,local:e.startState(i)}));break;case 2:G(n,U,V(v,3)),(t.match(/^python\s*$/)||n.tmp_py)&&(n.tmp_py=void 0,G(n,H,{mode:r,local:e.startState(r)}));break;default:G(n,z)}else if(Z(n)==g||t.match(g,!1))switch(K(n)){case 0:G(n,U,V(g,1)),t.match(L),t.match(j),o="link";break;case 1:G(n,U,V(g,2)),t.match(N),o="meta";break;default:G(n,z)}else t.match(b)||t.match(w)?(G(n,z),o="quote"):(t.eatSpace(),t.eol()?G(n,z):(t.skipToEnd(),G(n,q),o="comment"));return o}function q(e,t){return $(e,t,"comment")}function W(e,t){return $(e,t,"meta")}function $(e,t,n){return e.eol()||e.eatSpace()?(e.skipToEnd(),n):(G(t,z),null)}function H(e,t){return t.ctx.mode&&t.ctx.local?e.sol()?(e.eatSpace()||G(t,z),null):t.ctx.mode.token(e,t.ctx.local):(G(t,z),null)}function V(e,t,n,r){return{phase:e,stage:t,mode:n,local:r}}function G(e,t,n){e.tok=t,e.ctx=n||{}}function K(e){return e.ctx.stage||0}function Z(e){return e.ctx.phase}return{startState:function(){return{tok:z,ctx:V(void 0,0)}},copyState:function(t){var n=t.ctx,r=t.tmp;return n.local&&(n={mode:n.mode,local:e.copyState(n.mode,n.local)}),r&&(r={mode:r.mode,local:e.copyState(r.mode,r.local)}),{tok:t.tok,ctx:n,tmp:r}},innerMode:function(e){return e.tmp?{state:e.tmp.local,mode:e.tmp.mode}:e.ctx.mode?{state:e.ctx.local,mode:e.ctx.mode}:null},token:function(e,t){return t.tok(e,t)}}}),"python","stex"),e.defineMIME("text/x-rst","rst")}(n(23326),n(56141),n(38234),n(19962))},53019:(e,t,n)=>{!function(e){"use strict";function t(e){for(var t={},n=0,r=e.length;n-1)r++;else if("]})".indexOf(t)>-1){if(--r<0)break}else if("/"==t&&0==r){i=!0;break}o="\\"==t}return e.backUp(e.pos-n),i}(e)?l(f(s,"string-2",!0),e,t):"operator";if("%"==s){var u="string",c=!0;e.eat("s")?u="atom":e.eat(/[WQ]/)?u="string":e.eat(/[r]/)?u="string-2":e.eat(/[wxq]/)&&(u="string",c=!1);var d=e.eat(/[^\w\s=]/);return d?(a.propertyIsEnumerable(d)&&(d=a[d]),l(f(d,u,c,!0),e,t)):"operator"}if("#"==s)return e.skipToEnd(),"comment";if("<"==s&&(r=e.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))return l((i=r[2],o=r[1],function(e,t){return o&&e.eatSpace(),e.match(i)?t.tokenize.pop():e.skipToEnd(),"string"}),e,t);if("0"==s)return e.eat("x")?e.eatWhile(/[\da-fA-F]/):e.eat("b")?e.eatWhile(/[01]/):e.eatWhile(/[0-7]/),"number";if(/\d/.test(s))return e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if("?"==s){for(;e.match(/^\\[CM]-/););return e.eat("\\")?e.eatWhile(/\w/):e.next(),"string"}if(":"==s)return e.eat("'")?l(f("'","atom",!1),e,t):e.eat('"')?l(f('"',"atom",!0),e,t):e.eat(/[\<\>]/)?(e.eat(/[\<\>]/),"atom"):e.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":e.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(e.eatWhile(/[\w$\xa1-\uffff]/),e.eat(/[\?\!\=]/),"atom"):"operator";if("@"==s&&e.match(/^@?[a-zA-Z_\xa1-\uffff]/))return e.eat("@"),e.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if("$"==s)return e.eat(/[a-zA-Z_]/)?e.eatWhile(/[\w]/):e.eat(/\d/)?e.eat(/\d/):e.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(s))return e.eatWhile(/[\w\xa1-\uffff]/),e.eat(/[\?\!]/),e.eat(":")?"atom":"ident";if("|"!=s||!t.varList&&"{"!=t.lastTok&&"do"!=t.lastTok){if(/[\(\)\[\]{}\\;]/.test(s))return n=s,null;if("-"==s&&e.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(s)){var h=e.eatWhile(/[=+\-\/*:\.^%<>~|]/);return"."!=s||h||(n="."),"operator"}return null}return n="|",null}function c(e){return e||(e=1),function(t,n){if("}"==t.peek()){if(1==e)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n);n.tokenize[n.tokenize.length-1]=c(e-1)}else"{"==t.peek()&&(n.tokenize[n.tokenize.length-1]=c(e+1));return u(t,n)}}function d(){var e=!1;return function(t,n){return e?(n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n)):(e=!0,u(t,n))}}function f(e,t,n,r){return function(i,o){var a,s=!1;for("read-quoted-paused"===o.context.type&&(o.context=o.context.prev,i.eat("}"));null!=(a=i.next());){if(a==e&&(r||!s)){o.tokenize.pop();break}if(n&&"#"==a&&!s){if(i.eat("{")){"}"==e&&(o.context={prev:o.context,type:"read-quoted-paused"}),o.tokenize.push(c());break}if(/[@\$]/.test(i.peek())){o.tokenize.push(d());break}}s=!s&&"\\"==a}return t}}function p(e,t){return e.sol()&&e.match("=end")&&e.eol()&&t.tokenize.pop(),e.skipToEnd(),"comment"}return{startState:function(){return{tokenize:[u],indented:0,context:{type:"top",indented:-t.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(e,t){n=null,e.sol()&&(t.indented=e.indentation());var a,s=t.tokenize[t.tokenize.length-1](e,t),l=n;if("ident"==s){var u=e.current();"keyword"==(s="."==t.lastTok?"property":r.propertyIsEnumerable(e.current())?"keyword":/^[A-Z]/.test(u)?"tag":"def"==t.lastTok||"class"==t.lastTok||t.varList?"def":"variable")&&(l=u,i.propertyIsEnumerable(u)?a="indent":o.propertyIsEnumerable(u)?a="dedent":"if"!=u&&"unless"!=u||e.column()!=e.indentation()?"do"==u&&t.context.indented{!function(e){"use strict";e.defineSimpleMode("rust",{start:[{regex:/b?"/,token:"string",next:"string"},{regex:/b?r"/,token:"string",next:"string_raw"},{regex:/b?r#+"/,token:"string",next:"string_raw_hash"},{regex:/'(?:[^'\\]|\\(?:[nrt0'"]|x[\da-fA-F]{2}|u\{[\da-fA-F]{6}\}))'/,token:"string-2"},{regex:/b'(?:[^']|\\(?:['\\nrt0]|x[\da-fA-F]{2}))'/,token:"string-2"},{regex:/(?:(?:[0-9][0-9_]*)(?:(?:[Ee][+-]?[0-9_]+)|\.[0-9_]+(?:[Ee][+-]?[0-9_]+)?)(?:f32|f64)?)|(?:0(?:b[01_]+|(?:o[0-7_]+)|(?:x[0-9a-fA-F_]+))|(?:[0-9][0-9_]*))(?:u8|u16|u32|u64|i8|i16|i32|i64|isize|usize)?/,token:"number"},{regex:/(let(?:\s+mut)?|fn|enum|mod|struct|type|union)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/(?:abstract|alignof|as|async|await|box|break|continue|const|crate|do|dyn|else|enum|extern|fn|for|final|if|impl|in|loop|macro|match|mod|move|offsetof|override|priv|proc|pub|pure|ref|return|self|sizeof|static|struct|super|trait|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,token:"keyword"},{regex:/\b(?:Self|isize|usize|char|bool|u8|u16|u32|u64|f16|f32|f64|i8|i16|i32|i64|str|Option)\b/,token:"atom"},{regex:/\b(?:true|false|Some|None|Ok|Err)\b/,token:"builtin"},{regex:/\b(fn)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/#!?\[.*\]/,token:"meta"},{regex:/\/\/.*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/[a-zA-Z_]\w*!/,token:"variable-3"},{regex:/[a-zA-Z_]\w*/,token:"variable"},{regex:/[\{\[\(]/,indent:!0},{regex:/[\}\]\)]/,dedent:!0}],string:[{regex:/"/,token:"string",next:"start"},{regex:/(?:[^\\"]|\\(?:.|$))*/,token:"string"}],string_raw:[{regex:/"/,token:"string",next:"start"},{regex:/[^"]*/,token:"string"}],string_raw_hash:[{regex:/"#+/,token:"string",next:"start"},{regex:/(?:[^"]|"(?!#))*/,token:"string"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{dontIndentStates:["comment"],electricInput:/^\s*\}$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}}),e.defineMIME("text/x-rustsrc","rust"),e.defineMIME("text/rust","rust")}(n(23326),n(81094))},17547:(e,t,n)=>{!function(e){"use strict";e.defineMode("sas",(function(){var e={},t={eq:"operator",lt:"operator",le:"operator",gt:"operator",ge:"operator",in:"operator",ne:"operator",or:"operator"},n=/(<=|>=|!=|<>)/,r=/[=\(:\),{}.*<>+\-\/^\[\]]/;function i(t,n,r){if(r)for(var i=n.split(" "),o=0;o{!function(e){"use strict";e.defineMode("sass",(function(t){var n,r=e.mimeModes["text/css"],i=r.propertyKeywords||{},o=r.colorKeywords||{},a=r.valueKeywords||{},s=r.fontProperties||{},l=new RegExp("^"+["true","false","null","auto"].join("|")),u=new RegExp("^"+["\\(","\\)","=",">","<","==",">=","<=","\\+","-","\\!=","/","\\*","%","and","or","not",";","\\{","\\}",":"].join("|")),c=/^::?[a-zA-Z_][\w\-]*/;function d(e){return!e.peek()||e.match(/\s+$/,!1)}function f(e,t){var n=e.peek();return")"===n?(e.next(),t.tokenizer=y,"operator"):"("===n?(e.next(),e.eatSpace(),"operator"):"'"===n||'"'===n?(t.tokenizer=h(e.next()),"string"):(t.tokenizer=h(")",!1),"string")}function p(e,t){return function(n,r){return n.sol()&&n.indentation()<=e?(r.tokenizer=y,y(n,r)):(t&&n.skipTo("*/")?(n.next(),n.next(),r.tokenizer=y):n.skipToEnd(),"comment")}}function h(e,t){return null==t&&(t=!0),function n(r,i){var o=r.next(),a=r.peek(),s=r.string.charAt(r.pos-2);return"\\"!==o&&a===e||o===e&&"\\"!==s?(o!==e&&t&&r.next(),d(r)&&(i.cursorHalf=0),i.tokenizer=y,"string"):"#"===o&&"{"===a?(i.tokenizer=m(n),r.next(),"operator"):"string"}}function m(e){return function(t,n){return"}"===t.peek()?(t.next(),n.tokenizer=e,"operator"):y(t,n)}}function g(e){if(0==e.indentCount){e.indentCount++;var n=e.scopes[0].offset+t.indentUnit;e.scopes.unshift({offset:n})}}function v(e){1!=e.scopes.length&&e.scopes.shift()}function y(e,t){var r=e.peek();if(e.match("/*"))return t.tokenizer=p(e.indentation(),!0),t.tokenizer(e,t);if(e.match("//"))return t.tokenizer=p(e.indentation(),!1),t.tokenizer(e,t);if(e.match("#{"))return t.tokenizer=m(y),"operator";if('"'===r||"'"===r)return e.next(),t.tokenizer=h(r),"string";if(t.cursorHalf){if("#"===r&&(e.next(),e.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/)))return d(e)&&(t.cursorHalf=0),"number";if(e.match(/^-?[0-9\.]+/))return d(e)&&(t.cursorHalf=0),"number";if(e.match(/^(px|em|in)\b/))return d(e)&&(t.cursorHalf=0),"unit";if(e.match(l))return d(e)&&(t.cursorHalf=0),"keyword";if(e.match(/^url/)&&"("===e.peek())return t.tokenizer=f,d(e)&&(t.cursorHalf=0),"atom";if("$"===r)return e.next(),e.eatWhile(/[\w-]/),d(e)&&(t.cursorHalf=0),"variable-2";if("!"===r)return e.next(),t.cursorHalf=0,e.match(/^[\w]+/)?"keyword":"operator";if(e.match(u))return d(e)&&(t.cursorHalf=0),"operator";if(e.eatWhile(/[\w-]/))return d(e)&&(t.cursorHalf=0),n=e.current().toLowerCase(),a.hasOwnProperty(n)?"atom":o.hasOwnProperty(n)?"keyword":i.hasOwnProperty(n)?(t.prevProp=e.current().toLowerCase(),"property"):"tag";if(d(e))return t.cursorHalf=0,null}else{if("-"===r&&e.match(/^-\w+-/))return"meta";if("."===r){if(e.next(),e.match(/^[\w-]+/))return g(t),"qualifier";if("#"===e.peek())return g(t),"tag"}if("#"===r){if(e.next(),e.match(/^[\w-]+/))return g(t),"builtin";if("#"===e.peek())return g(t),"tag"}if("$"===r)return e.next(),e.eatWhile(/[\w-]/),"variable-2";if(e.match(/^-?[0-9\.]+/))return"number";if(e.match(/^(px|em|in)\b/))return"unit";if(e.match(l))return"keyword";if(e.match(/^url/)&&"("===e.peek())return t.tokenizer=f,"atom";if("="===r&&e.match(/^=[\w-]+/))return g(t),"meta";if("+"===r&&e.match(/^\+[\w-]+/))return"variable-3";if("@"===r&&e.match("@extend")&&(e.match(/\s*[\w]/)||v(t)),e.match(/^@(else if|if|media|else|for|each|while|mixin|function)/))return g(t),"def";if("@"===r)return e.next(),e.eatWhile(/[\w-]/),"def";if(e.eatWhile(/[\w-]/)){if(e.match(/ *: *[\w-\+\$#!\("']/,!1)){n=e.current().toLowerCase();var b=t.prevProp+"-"+n;return i.hasOwnProperty(b)?"property":i.hasOwnProperty(n)?(t.prevProp=n,"property"):s.hasOwnProperty(n)?"property":"tag"}return e.match(/ *:/,!1)?(g(t),t.cursorHalf=1,t.prevProp=e.current().toLowerCase(),"property"):(e.match(/ *,/,!1)||g(t),"tag")}if(":"===r)return e.match(c)?"variable-3":(e.next(),t.cursorHalf=1,"operator")}return e.match(u)?"operator":(e.next(),null)}return{startState:function(){return{tokenizer:y,scopes:[{offset:0,type:"sass"}],indentCount:0,cursorHalf:0,definedVars:[],definedMixins:[]}},token:function(e,n){var r=function(e,n){e.sol()&&(n.indentCount=0);var r=n.tokenizer(e,n),i=e.current();if("@return"!==i&&"}"!==i||v(n),null!==r){for(var o=e.pos-i.length+t.indentUnit*n.indentCount,a=[],s=0;s{!function(e){"use strict";e.defineMode("scheme",(function(){var e="comment",t="string",n="symbol",r="atom",i="number",o="bracket";function a(e){for(var t={},n=e.split(" "),r=0;rinteger char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"),l=a("define let letrec let* lambda define-macro defmacro let-syntax letrec-syntax let-values let*-values define-syntax syntax-rules define-values when unless");function u(e,t,n){this.indent=e,this.type=t,this.prev=n}function c(e,t,n){e.indentStack=new u(t,n,e.indentStack)}var d=new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i),f=new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i),p=new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i),h=new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i);function m(e){return e.match(d)}function g(e){return e.match(f)}function v(e,t){return!0===t&&e.backUp(1),e.match(h)}function y(e){return e.match(p)}function b(e,t){for(var n,r=!1;null!=(n=e.next());){if(n==t.token&&!r){t.state.mode=!1;break}r=!r&&"\\"==n}}return{startState:function(){return{indentStack:null,indentation:0,mode:!1,sExprComment:!1,sExprQuote:!1}},token:function(a,u){if(null==u.indentStack&&a.sol()&&(u.indentation=a.indentation()),a.eatSpace())return null;var d=null;switch(u.mode){case"string":b(a,{token:'"',state:u}),d=t;break;case"symbol":b(a,{token:"|",state:u}),d=n;break;case"comment":for(var f,p=!1;null!=(f=a.next());){if("#"==f&&p){u.mode=!1;break}p="|"==f}d=e;break;case"s-expr-comment":if(u.mode=!1,"("!=a.peek()&&"["!=a.peek()){a.eatWhile(/[^\s\(\)\[\]]/),d=e;break}u.sExprComment=0;default:var h=a.next();if('"'==h)u.mode="string",d=t;else if("'"==h)"("==a.peek()||"["==a.peek()?("number"!=typeof u.sExprQuote&&(u.sExprQuote=0),d=r):(a.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),d=r);else if("|"==h)u.mode="symbol",d=n;else if("#"==h)if(a.eat("|"))u.mode="comment",d=e;else if(a.eat(/[tf]/i))d=r;else if(a.eat(";"))u.mode="s-expr-comment",d=e;else{var w=null,_=!1,x=!0;a.eat(/[ei]/i)?_=!0:a.backUp(1),a.match(/^#b/i)?w=m:a.match(/^#o/i)?w=g:a.match(/^#x/i)?w=y:a.match(/^#d/i)?w=v:a.match(/^[-+0-9.]/,!1)?(x=!1,w=v):_||a.eat("#"),null!=w&&(x&&!_&&a.match(/^#[ei]/i),w(a)&&(d=i))}else if(/^[-+0-9.]/.test(h)&&v(a,!0))d=i;else if(";"==h)a.skipToEnd(),d=e;else if("("==h||"["==h){for(var k,E="",S=a.column();null!=(k=a.eat(/[^\s\(\[\;\)\]]/));)E+=k;E.length>0&&l.propertyIsEnumerable(E)?c(u,S+2,h):(a.eatSpace(),a.eol()||";"==a.peek()?c(u,S+1,h):c(u,S+a.current().length,h)),a.backUp(a.current().length-1),"number"==typeof u.sExprComment&&u.sExprComment++,"number"==typeof u.sExprQuote&&u.sExprQuote++,d=o}else")"==h||"]"==h?(d=o,null!=u.indentStack&&u.indentStack.type==(")"==h?"(":"[")&&(function(e){e.indentStack=e.indentStack.prev}(u),"number"==typeof u.sExprComment&&0==--u.sExprComment&&(d=e,u.sExprComment=!1),"number"==typeof u.sExprQuote&&0==--u.sExprQuote&&(d=r,u.sExprQuote=!1))):(a.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),d=s&&s.propertyIsEnumerable(a.current())?"builtin":"variable")}return"number"==typeof u.sExprComment?e:"number"==typeof u.sExprQuote?r:d},indent:function(e){return null==e.indentStack?e.indentation:e.indentStack.indent},fold:"brace-paren",closeBrackets:{pairs:'()[]{}""'},lineComment:";;"}})),e.defineMIME("text/x-scheme","scheme")}(n(23326))},25397:(e,t,n)=>{!function(e){"use strict";e.defineMode("shell",(function(){var t={};function n(e,n){for(var r=0;r1&&e.eat("$");var n=e.next();return/['"({]/.test(n)?(t.tokens[0]=s(n,"("==n?"quote":"{"==n?"def":"string"),c(e,t)):(/\d/.test(n)||e.eatWhile(/\w/),t.tokens.shift(),"def")};function c(e,t){return(t.tokens[0]||a)(e,t)}return{startState:function(){return{tokens:[]}},token:function(e,t){return c(e,t)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}})),e.defineMIME("text/x-sh","shell"),e.defineMIME("application/x-sh","shell")}(n(23326))},84712:(e,t,n)=>{!function(e){"use strict";e.defineMode("sieve",(function(e){function t(e){for(var t={},n=e.split(" "),r=0;r{!function(e){"use strict";e.defineMode("slim",(function(t){var n=e.getMode(t,{name:"htmlmixed"}),r=e.getMode(t,"ruby"),i={html:n,ruby:r},o={ruby:"ruby",javascript:"javascript",css:"text/css",sass:"text/x-sass",scss:"text/x-scss",less:"text/x-less",styl:"text/x-styl",coffee:"coffeescript",asciidoc:"text/x-asciidoc",markdown:"text/x-markdown",textile:"text/x-textile",creole:"text/x-creole",wiki:"text/x-wiki",mediawiki:"text/x-mediawiki",rdoc:"text/x-rdoc",builder:"text/x-builder",nokogiri:"text/x-nokogiri",erb:"application/x-erb"},a=function(e){var t=[];for(var n in e)t.push(n);return new RegExp("^("+t.join("|")+"):")}(o),s={commentLine:"comment",slimSwitch:"operator special",slimTag:"tag",slimId:"attribute def",slimClass:"attribute qualifier",slimAttribute:"attribute",slimSubmode:"keyword special",closeAttributeTag:null,slimDoctype:null,lineContinuation:null},l={"{":"}","[":"]","(":")"},u="_a-zA-ZÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�",c=u+"\\-0-9·̀-ͯ‿-⁀",d=new RegExp("^[:"+u+"](?::["+c+"]|["+c+"]*)"),f=new RegExp("^[:"+u+"][:\\."+c+"]*(?=\\s*=)"),p=new RegExp("^[:"+u+"][:\\."+c+"]*"),h=/^\.-?[_a-zA-Z]+[\w\-]*/,m=/^#[_a-zA-Z]+[\w\-]*/;function g(e,t){e.stack={parent:e.stack,style:"continuation",indented:t,tokenize:e.line},e.line=e.tokenize}function v(e){e.line==e.tokenize&&(e.line=e.stack.tokenize,e.stack=e.stack.parent)}function y(e,t){return function(n,r){return n.peek()==e&&1==r.rubyState.tokenize.length?(n.next(),r.tokenize=t,"closeAttributeTag"):w(n,r)}}function b(t){var n,i=function(e,r){if(1==r.rubyState.tokenize.length&&!r.rubyState.context.prev){if(e.backUp(1),e.eatSpace())return r.rubyState=n,r.tokenize=t,t(e,r);e.next()}return w(e,r)};return function(t,o){return n=o.rubyState,o.rubyState=e.startState(r),o.tokenize=i,w(t,o)}}function w(e,t){return r.token(e,t.rubyState)}function _(e,t){return e.match(/^#\{/)?(t.tokenize=y("}",t.tokenize),null):function(e,t,n,r,i){var o=e.current(),a=o.search(/[^\\]#\{/);return a>-1&&(t.tokenize=function(e,t,n){var r=function(r,i){return i.tokenize=t,r.pos]?)/))return n.tokenize=function(e,t){return function(n,r){if(v(r),n.match(/^\\$/))return g(r,e),"lineContinuation";var i=t(n,r);return n.eol()&&n.current().match(/(?:^|[^\\])(?:\\\\)*\\$/)&&n.backUp(1),i}}(t.column(),(r=t.column(),i=w,function(e,t){v(t);var n=i(e,t);return e.eol()&&e.current().match(/,$/)&&g(t,r),n})),"slimSwitch";var r,i;if(t.match(/^doctype\b/))return n.tokenize=P,"keyword";var o=t.match(a);return o?function(t,n){var r=A(t),i=e.startState(r);return n.subMode=r,n.subState=i,n.stack={parent:n.stack,style:"sub",indented:n.indented+1,tokenize:n.line},n.line=n.tokenize=O,"slimSubmode"}(o[1],n):M(t,n)}function D(e,t){return t.startOfLine?R(e,t):M(e,t)}function M(e,t){return e.eat("*")?(t.tokenize=b(I),null):e.match(d)?(t.tokenize=I,"slimTag"):L(e,t)}function I(e,t){return e.match(/^(<>?|>t.indented&&"slimSubmode"!=t.last;)t.line=t.tokenize=t.stack.tokenize,t.stack=t.stack.parent,t.subMode=null,t.subState=null;if(e.eatSpace())return null;var n=t.tokenize(e,t);return t.startOfLine=!1,n&&(t.last=n),s.hasOwnProperty(n)?s[n]:n},blankLine:function(e){if(e.subMode&&e.subMode.blankLine)return e.subMode.blankLine(e.subState)},innerMode:function(e){return e.subMode?{state:e.subState,mode:e.subMode}:{state:e,mode:q}}};return q}),"htmlmixed","ruby"),e.defineMIME("text/x-slim","slim"),e.defineMIME("application/x-slim","slim")}(n(23326),n(38425),n(53019))},57434:(e,t,n)=>{!function(e){"use strict";e.defineMode("smalltalk",(function(e){var t=/[+\-\/\\*~<>=@%|&?!.,:;^]/,n=/true|false|nil|self|super|thisContext/,r=function(e,t){this.next=e,this.parent=t},i=function(e,t,n){this.name=e,this.context=t,this.eos=n},o=function(){this.context=new r(a,null),this.expectVariable=!0,this.indentation=0,this.userIndentationDelta=0};o.prototype.userIndent=function(t){this.userIndentationDelta=t>0?t/e.indentUnit-this.indentation:0};var a=function(e,o,a){var d=new i(null,o,!1),f=e.next();return'"'===f?d=s(e,new r(s,o)):"'"===f?d=l(e,new r(l,o)):"#"===f?"'"===e.peek()?(e.next(),d=u(e,new r(u,o))):e.eatWhile(/[^\s.{}\[\]()]/)?d.name="string-2":d.name="meta":"$"===f?("<"===e.next()&&(e.eatWhile(/[^\s>]/),e.next()),d.name="string-2"):"|"===f&&a.expectVariable?d.context=new r(c,o):/[\[\]{}()]/.test(f)?(d.name="bracket",d.eos=/[\[{(]/.test(f),"["===f?a.indentation++:"]"===f&&(a.indentation=Math.max(0,a.indentation-1))):t.test(f)?(e.eatWhile(t),d.name="operator",d.eos=";"!==f):/\d/.test(f)?(e.eatWhile(/[\w\d]/),d.name="number"):/[\w_]/.test(f)?(e.eatWhile(/[\w\d_]/),d.name=a.expectVariable?n.test(e.current())?"keyword":"variable":null):d.eos=a.expectVariable,d},s=function(e,t){return e.eatWhile(/[^"]/),new i("comment",e.eat('"')?t.parent:t,!0)},l=function(e,t){return e.eatWhile(/[^']/),new i("string",e.eat("'")?t.parent:t,!1)},u=function(e,t){return e.eatWhile(/[^']/),new i("string-2",e.eat("'")?t.parent:t,!1)},c=function(e,t){var n=new i(null,t,!1);return"|"===e.next()?(n.context=t.parent,n.eos=!0):(e.eatWhile(/[^|]/),n.name="variable"),n};return{startState:function(){return new o},token:function(e,t){if(t.userIndent(e.indentation()),e.eatSpace())return null;var n=t.context.next(e,t.context,t);return t.context=n.context,t.expectVariable=n.eos,n.name},blankLine:function(e){e.userIndent(0)},indent:function(t,n){var r=t.context.next===a&&n&&"]"===n.charAt(0)?-1:t.userIndentationDelta;return(t.indentation+r)*e.indentUnit},electricChars:"]"}})),e.defineMIME("text/x-stsrc",{name:"smalltalk"})}(n(23326))},69595:(e,t,n)=>{!function(e){"use strict";e.defineMode("smarty",(function(t,n){var r,i=n.rightDelimiter||"}",o=n.leftDelimiter||"{",a=n.version||2,s=e.getMode(t,n.baseMode||"null"),l=["debug","extends","function","include","literal"],u={operatorChars:/[+\-*&%=<>!?]/,validIdentifier:/[a-zA-Z0-9_]/,stringChar:/['"]/};function c(e,t){return r=t,e}function d(e,t){return null==t&&(t=e.pos),3===a&&"{"==o&&(t==e.string.length||/\s/.test(e.string.charAt(t)))}function f(e,t){for(var n=e.string,a=e.pos;;){var l=n.indexOf(o,a);if(a=l+o.length,-1==l||!d(e,l+o.length))break}if(l==e.pos)return e.match(o),e.eat("*")?function(e,t,n){return t.tokenize=n,n(e,t)}(e,t,(u="*"+i,function(e,t){for(;!e.eol();){if(e.match(u)){t.tokenize=f;break}e.next()}return"comment"})):(t.depth++,t.tokenize=p,r="startTag","tag");var u;l>-1&&(e.string=n.slice(0,l));var c=s.token(e,t.base);return l>-1&&(e.string=n),c}function p(e,t){if(e.match(i,!0))return 3===a?(t.depth--,t.depth<=0&&(t.tokenize=f)):t.tokenize=f,c("tag",null);if(e.match(o,!0))return t.depth++,c("tag","startTag");var n,s=e.next();if("$"==s)return e.eatWhile(u.validIdentifier),c("variable-2","variable");if("|"==s)return c("operator","pipe");if("."==s)return c("operator","property");if(u.stringChar.test(s))return t.tokenize=(n=s,function(e,t){for(var r=null,i=null;!e.eol();){if(i=e.peek(),e.next()==n&&"\\"!==r){t.tokenize=p;break}r=i}return"string"}),c("string","string");if(u.operatorChars.test(s))return e.eatWhile(u.operatorChars),c("operator","operator");if("["==s||"]"==s)return c("bracket","bracket");if("("==s||")"==s)return c("bracket","operator");if(/\d/.test(s))return e.eatWhile(/\d/),c("number","number");if("variable"==t.last){if("@"==s)return e.eatWhile(u.validIdentifier),c("property","property");if("|"==s)return e.eatWhile(u.validIdentifier),c("qualifier","modifier")}else{if("pipe"==t.last)return e.eatWhile(u.validIdentifier),c("qualifier","modifier");if("whitespace"==t.last)return e.eatWhile(u.validIdentifier),c("attribute","modifier")}if("property"==t.last)return e.eatWhile(u.validIdentifier),c("property",null);if(/\s/.test(s))return r="whitespace",null;var d="";"/"!=s&&(d+=s);for(var h=null;h=e.eat(u.validIdentifier);)d+=h;for(var m=0,g=l.length;m{!function(e){"use strict";e.defineMode("solr",(function(){var e=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,t=/[\|\!\+\-\*\?\~\^\&]/,n=/^(OR|AND|NOT|TO)$/i;function r(t){return function(r,o){for(var a=t;(t=r.peek())&&null!=t.match(e);)a+=r.next();return o.tokenize=i,n.test(a)?"operator":function(e){return parseFloat(e).toString()===e}(a)?"number":":"==r.peek()?"field":"string"}}function i(n,o){var a,s,l=n.next();return'"'==l?o.tokenize=(s=l,function(e,t){for(var n,r=!1;null!=(n=e.next())&&(n!=s||r);)r=!r&&"\\"==n;return r||(t.tokenize=i),"string"}):t.test(l)?o.tokenize=(a=l,function(e,t){var n="operator";return"+"==a?n+=" positive":"-"==a?n+=" negative":"|"==a?e.eat(/\|/):"&"==a?e.eat(/\&/):"^"==a&&(n+=" boost"),t.tokenize=i,n}):e.test(l)&&(o.tokenize=r(l)),o.tokenize!=i?o.tokenize(n,o):null}return{startState:function(){return{tokenize:i}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}})),e.defineMIME("text/x-solr","solr")}(n(23326))},34785:(e,t,n)=>{!function(e){"use strict";var t={noEndTag:!0,soyState:"param-def"},n={alias:{noEndTag:!0},delpackage:{noEndTag:!0},namespace:{noEndTag:!0,soyState:"namespace-def"},"@attribute":t,"@attribute?":t,"@param":t,"@param?":t,"@inject":t,"@inject?":t,"@state":t,template:{soyState:"templ-def",variableScope:!0},extern:{soyState:"param-def"},export:{soyState:"export"},literal:{},msg:{},fallbackmsg:{noEndTag:!0,reduceIndent:!0},select:{},plural:{},let:{soyState:"var-def"},if:{},javaimpl:{},jsimpl:{},elseif:{noEndTag:!0,reduceIndent:!0},else:{noEndTag:!0,reduceIndent:!0},switch:{},case:{noEndTag:!0,reduceIndent:!0},default:{noEndTag:!0,reduceIndent:!0},foreach:{variableScope:!0,soyState:"for-loop"},ifempty:{noEndTag:!0,reduceIndent:!0},for:{variableScope:!0,soyState:"for-loop"},call:{soyState:"templ-ref"},param:{soyState:"param-ref"},print:{noEndTag:!0},deltemplate:{soyState:"templ-def",variableScope:!0},delcall:{soyState:"templ-ref"},log:{},element:{variableScope:!0},velog:{},const:{soyState:"const-def"}},r=Object.keys(n).filter((function(e){return!n[e].noEndTag||n[e].reduceIndent}));e.defineMode("soy",(function(t){var i=e.getMode(t,"text/plain"),o={html:e.getMode(t,{name:"text/html",multilineTagIndentFactor:2,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),attributes:i,text:i,uri:i,trusted_resource_uri:i,css:e.getMode(t,"text/css"),js:e.getMode(t,{name:"text/javascript",statementIndent:2*t.indentUnit})};function a(e){return e[e.length-1]}function s(e,t,n){if(e.sol()){for(var r=0;r]=?)/)?"operator":(n=e.match(/^\$([\w]+)/))?c(t.variables,n[1],!t.lookupVariables):(n=e.match(/^\w+/))?/^(?:as|and|or|not|in|if)$/.test(n[0])?"keyword":null:(e.next(),null)}return{startState:function(){return{soyState:[],variables:l(null,"ij"),scopes:null,indent:0,quoteKind:null,context:null,lookupVariables:!0,localStates:[{mode:o.html,state:e.startState(o.html)}]}},copyState:function(t){return{tag:t.tag,soyState:t.soyState.concat([]),variables:t.variables,context:t.context,indent:t.indent,quoteKind:t.quoteKind,lookupVariables:t.lookupVariables,localStates:t.localStates.map((function(t){return{mode:t.mode,state:e.copyState(t.mode,t.state)}}))}},token:function(i,p){switch(a(p.soyState)){case"comment":if(i.match(/^.*?\*\//)?p.soyState.pop():i.skipToEnd(),!p.context||!p.context.scope)for(var h=/@param\??\s+(\S+)/g,m=i.current();g=h.exec(m);)p.variables=l(p.variables,g[1]);return"comment";case"string":var g;return(g=i.match(/^.*?(["']|\\[\s\S])/))?g[1]==p.quoteKind&&(p.quoteKind=null,p.soyState.pop()):i.skipToEnd(),"string"}if(!p.soyState.length||"literal"!=a(p.soyState)){if(i.match(/^\/\*/))return p.soyState.push("comment"),"comment";if(i.match(i.sol()?/^\s*\/\/.*/:/^\s+\/\/.*/))return"comment"}switch(a(p.soyState)){case"templ-def":return(g=i.match(/^\.?([\w]+(?!\.[\w]+)*)/))?(p.soyState.pop(),"def"):(i.next(),null);case"templ-ref":return(g=i.match(/(\.?[a-zA-Z_][a-zA-Z_0-9]+)+/))?(p.soyState.pop(),"."==g[0][0]?"variable-2":"variable"):(g=i.match(/^\$([\w]+)/))?(p.soyState.pop(),c(p.variables,g[1],!p.lookupVariables)):(i.next(),null);case"namespace-def":return(g=i.match(/^\.?([\w\.]+)/))?(p.soyState.pop(),"variable"):(i.next(),null);case"param-def":return(g=i.match(/^\*/))?(p.soyState.pop(),p.soyState.push("param-type"),"type"):(g=i.match(/^\w+/))?(p.variables=l(p.variables,g[0]),p.soyState.pop(),p.soyState.push("param-type"),"def"):(i.next(),null);case"param-ref":return(g=i.match(/^\w+/))?(p.soyState.pop(),"property"):(i.next(),null);case"open-parentheses":return i.match(/[)]/)?(p.soyState.pop(),null):f(i,p);case"param-type":var v=i.peek();return-1!="}]=>,".indexOf(v)?(p.soyState.pop(),null):"["==v?(p.soyState.push("param-type-record"),null):"("==v?(p.soyState.push("param-type-template"),null):"<"==v?(p.soyState.push("param-type-parameter"),null):(g=i.match(/^([\w]+|[?])/))?"type":(i.next(),null);case"param-type-record":return"]"==(v=i.peek())?(p.soyState.pop(),null):i.match(/^\w+/)?(p.soyState.push("param-type"),"property"):(i.next(),null);case"param-type-parameter":return i.match(/^[>]/)?(p.soyState.pop(),null):i.match(/^[<,]/)?(p.soyState.push("param-type"),null):(i.next(),null);case"param-type-template":return i.match(/[>]/)?(p.soyState.pop(),p.soyState.push("param-type"),null):i.match(/^\w+/)?(p.soyState.push("param-type"),"def"):(i.next(),null);case"var-def":return(g=i.match(/^\$([\w]+)/))?(p.variables=l(p.variables,g[1]),p.soyState.pop(),"def"):(i.next(),null);case"for-loop":return i.match(/\bin\b/)?(p.soyState.pop(),"keyword"):"$"==i.peek()?(p.soyState.push("var-def"),null):(i.next(),null);case"record-literal":return i.match(/^[)]/)?(p.soyState.pop(),null):i.match(/[(,]/)?(p.soyState.push("map-value"),p.soyState.push("record-key"),null):(i.next(),null);case"map-literal":return i.match(/^[)]/)?(p.soyState.pop(),null):i.match(/[(,]/)?(p.soyState.push("map-value"),p.soyState.push("map-value"),null):(i.next(),null);case"list-literal":return i.match("]")?(p.soyState.pop(),p.lookupVariables=!0,u(p),null):i.match(/\bfor\b/)?(p.lookupVariables=!0,p.soyState.push("for-loop"),"keyword"):f(i,p);case"record-key":return i.match(/[\w]+/)?"property":i.match(/^[:]/)?(p.soyState.pop(),null):(i.next(),null);case"map-value":return")"==i.peek()||","==i.peek()||i.match(/^[:)]/)?(p.soyState.pop(),null):f(i,p);case"import":return i.eat(";")?(p.soyState.pop(),p.indent-=2*t.indentUnit,null):i.match(/\w+(?=\s+as\b)/)?"variable":(g=i.match(/\w+/))?/\b(from|as)\b/.test(g[0])?"keyword":"def":(g=i.match(/^["']/))?(p.soyState.push("string"),p.quoteKind=g[0],"string"):(i.next(),null);case"tag":void 0===p.tag?(k=!0,S=""):S=(k="/"==p.tag[0])?p.tag.substring(1):p.tag;var y=n[S];if(i.match(/^\/?}/)){var b="/}"==i.current();return b&&!k&&u(p),"/template"==p.tag||"/deltemplate"==p.tag?(p.variables=l(null,"ij"),p.indent=0):p.indent-=t.indentUnit*(b||-1==r.indexOf(p.tag)?2:1),p.soyState.pop(),"keyword"}if(i.match(/^([\w?]+)(?==)/)){if(p.context&&p.context.tag==S&&"kind"==i.current()&&(g=i.match(/^="([^"]+)/,!1))){var w=g[1];p.context.kind=w;var _=o[w]||o.html;(O=a(p.localStates)).mode.indent&&(p.indent+=O.mode.indent(O.state,"","")),p.localStates.push({mode:_,state:e.startState(_)})}return"attribute"}return f(i,p);case"template-call-expression":return i.match(/^([\w-?]+)(?==)/)?"attribute":i.eat(">")||i.eat("/>")?(p.soyState.pop(),"keyword"):f(i,p);case"literal":return i.match("{/literal}",!1)?(p.soyState.pop(),this.token(i,p)):s(i,p,/\{\/literal}/);case"export":if(g=i.match(/\w+/)){if(p.soyState.pop(),"const"==g)return p.soyState.push("const-def"),"keyword";if("extern"==g)return p.soyState.push("param-def"),"keyword"}else i.next();return null;case"const-def":return i.match(/^\w+/)?(p.soyState.pop(),"def"):(i.next(),null)}if(i.match("{literal}"))return p.indent+=t.indentUnit,p.soyState.push("literal"),p.context=new d(p.context,"literal",p.variables),"keyword";if(g=i.match(/^\{([/@\\]?\w+\??)(?=$|[\s}]|\/[/*])/)){var x=p.tag;p.tag=g[1];var k="/"==p.tag[0],E=!!n[p.tag],S=k?p.tag.substring(1):p.tag;y=n[S],"/switch"!=p.tag&&(p.indent+=((k||y&&y.reduceIndent)&&"switch"!=x?1:2)*t.indentUnit),p.soyState.push("tag");var C=!1;if(y)if(k||y.soyState&&p.soyState.push(y.soyState),y.noEndTag||!E&&k){if(k){var T="extern"==S&&p.context&&"export"==p.context.tag;if(!p.context||p.context.tag!=S&&!T)C=!0;else if(p.context){var O;p.context.kind&&(p.localStates.pop(),(O=a(p.localStates)).mode.indent&&(p.indent-=O.mode.indent(O.state,"",""))),u(p)}}}else p.context=new d(p.context,p.tag,y.variableScope?p.variables:null);else k&&(C=!0);return(C?"error ":"")+"keyword"}return i.eat("{")?(p.tag="print",p.indent+=2*t.indentUnit,p.soyState.push("tag"),"keyword"):!p.context&&i.sol()&&i.match(/import\b/)?(p.soyState.push("import"),p.indent+=2*t.indentUnit,"keyword"):(g=i.match("<{"))?(p.soyState.push("template-call-expression"),p.indent+=2*t.indentUnit,p.soyState.push("tag"),"keyword"):(g=i.match(""))?(p.indent-=1*t.indentUnit,"keyword"):s(i,p,/\{|\s+\/\/|\/\*/)},indent:function(n,r,i){var o=n.indent,s=a(n.soyState);if("comment"==s)return e.Pass;if("literal"==s)/^\{\/literal}/.test(r)&&(o-=t.indentUnit);else{if(/^\s*\{\/(template|deltemplate)\b/.test(r))return 0;/^\{(\/|(fallbackmsg|elseif|else|ifempty)\b)/.test(r)&&(o-=t.indentUnit),"switch"!=n.tag&&/^\{(case|default)\b/.test(r)&&(o-=t.indentUnit),/^\{\/switch\b/.test(r)&&(o-=t.indentUnit)}var l=a(n.localStates);return o&&l.mode.indent&&(o+=l.mode.indent(l.state,r,i)),o},innerMode:function(e){return e.soyState.length&&"literal"!=a(e.soyState)?null:a(e.localStates)},electricInput:/^\s*\{(\/|\/template|\/deltemplate|\/switch|fallbackmsg|elseif|else|case|default|ifempty|\/literal\})$/,lineComment:"//",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",useInnerComments:!1,fold:"indent"}}),"htmlmixed"),e.registerHelper("wordChars","soy",/[\w$]/),e.registerHelper("hintWords","soy",Object.keys(n).concat(["css","debugger"])),e.defineMIME("text/x-soy","soy")}(n(23326),n(38425))},16683:(e,t,n)=>{!function(e){"use strict";e.defineMode("sparql",(function(e){var t,n=e.indentUnit;function r(e){return new RegExp("^(?:"+e.join("|")+")$","i")}var i=r(["str","lang","langmatches","datatype","bound","sameterm","isiri","isuri","iri","uri","bnode","count","sum","min","max","avg","sample","group_concat","rand","abs","ceil","floor","round","concat","substr","strlen","replace","ucase","lcase","encode_for_uri","contains","strstarts","strends","strbefore","strafter","year","month","day","hours","minutes","seconds","timezone","tz","now","uuid","struuid","md5","sha1","sha256","sha384","sha512","coalesce","if","strlang","strdt","isnumeric","regex","exists","isblank","isliteral","a","bind"]),o=r(["base","prefix","select","distinct","reduced","construct","describe","ask","from","named","where","order","limit","offset","filter","optional","graph","by","asc","desc","as","having","undef","values","group","minus","in","not","service","silent","using","insert","delete","union","true","false","with","data","copy","to","move","add","create","drop","clear","load","into"]),a=/[*+\-<>=&|\^\/!\?]/,s="[A-Za-z_\\-0-9]",l=new RegExp("[A-Za-z]"),u=new RegExp("(("+s+"|\\.)*("+s+"))?:");function c(e,n){var r,s=e.next();if(t=null,"$"==s||"?"==s)return"?"==s&&e.match(/\s/,!1)?"operator":(e.match(/^[A-Za-z0-9_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][A-Za-z0-9_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*/),"variable-2");if("<"==s&&!e.match(/^[\s\u00a0=]/,!1))return e.match(/^[^\s\u00a0>]*>?/),"atom";if('"'==s||"'"==s)return n.tokenize=(r=s,function(e,t){for(var n,i=!1;null!=(n=e.next());){if(n==r&&!i){t.tokenize=c;break}i=!i&&"\\"==n}return"string"}),n.tokenize(e,n);if(/[{}\(\),\.;\[\]]/.test(s))return t=s,"bracket";if("#"==s)return e.skipToEnd(),"comment";if(a.test(s))return"operator";if(":"==s)return d(e),"atom";if("@"==s)return e.eatWhile(/[a-z\d\-]/i),"meta";if(l.test(s)&&e.match(u))return d(e),"atom";e.eatWhile(/[_\w\d]/);var f=e.current();return i.test(f)?"builtin":o.test(f)?"keyword":"variable"}function d(e){e.match(/(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/i)}function f(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function p(e){e.indent=e.context.indent,e.context=e.context.prev}return{startState:function(){return{tokenize:c,context:null,indent:0,col:0}},token:function(e,n){if(e.sol()&&(n.context&&null==n.context.align&&(n.context.align=!1),n.indent=e.indentation()),e.eatSpace())return null;var r=n.tokenize(e,n);if("comment"!=r&&n.context&&null==n.context.align&&"pattern"!=n.context.type&&(n.context.align=!0),"("==t)f(n,")",e.column());else if("["==t)f(n,"]",e.column());else if("{"==t)f(n,"}",e.column());else if(/[\]\}\)]/.test(t)){for(;n.context&&"pattern"==n.context.type;)p(n);n.context&&t==n.context.type&&(p(n),"}"==t&&n.context&&"pattern"==n.context.type&&p(n))}else"."==t&&n.context&&"pattern"==n.context.type?p(n):/atom|string|variable/.test(r)&&n.context&&(/[\}\]]/.test(n.context.type)?f(n,"pattern",e.column()):"pattern"!=n.context.type||n.context.align||(n.context.align=!0,n.context.col=e.column()));return r},indent:function(e,t){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&"pattern"==i.type;)i=i.prev;var o=i&&r==i.type;return i?"pattern"==i.type?i.col:i.align?i.col+(o?0:1):i.indent+(o?0:n):0},lineComment:"#"}})),e.defineMIME("application/sparql-query","sparql")}(n(23326))},77977:(e,t,n)=>{!function(e){"use strict";e.defineMode("spreadsheet",(function(){return{startState:function(){return{stringType:null,stack:[]}},token:function(e,t){if(e){switch(0===t.stack.length&&('"'!=e.peek()&&"'"!=e.peek()||(t.stringType=e.peek(),e.next(),t.stack.unshift("string"))),t.stack[0]){case"string":for(;"string"===t.stack[0]&&!e.eol();)e.peek()===t.stringType?(e.next(),t.stack.shift()):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return"string";case"characterClass":for(;"characterClass"===t.stack[0]&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(/^\\./)||t.stack.shift();return"operator"}var n=e.peek();switch(n){case"[":return e.next(),t.stack.unshift("characterClass"),"bracket";case":":return e.next(),"operator";case"\\":return e.match(/\\[a-z]+/)?"string-2":(e.next(),"atom");case".":case",":case";":case"*":case"-":case"+":case"^":case"<":case"/":case"=":return e.next(),"atom";case"$":return e.next(),"builtin"}return e.match(/\d+/)?e.match(/^\w+/)?"error":"number":e.match(/^[a-zA-Z_]\w*/)?e.match(/(?=[\(.])/,!1)?"keyword":"variable-2":-1!=["[","]","(",")","{","}"].indexOf(n)?(e.next(),"bracket"):(e.eatSpace()||e.next(),null)}}}})),e.defineMIME("text/x-spreadsheet","spreadsheet")}(n(23326))},14149:(e,t,n)=>{!function(e){"use strict";function t(e){for(var t;null!=(t=e.next());)if("`"==t&&!e.eat("`"))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null}function n(e){return e.eat("@")&&(e.match("session."),e.match("local."),e.match("global.")),e.eat("'")?(e.match(/^.*'/),"variable-2"):e.eat('"')?(e.match(/^.*"/),"variable-2"):e.eat("`")?(e.match(/^.*`/),"variable-2"):e.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function r(e){return e.eat("N")?"atom":e.match(/^[a-zA-Z.#!?]/)?"variable-2":null}e.defineMode("sql",(function(t,n){var r=n.client||{},s=n.atoms||{false:!0,true:!0,null:!0},l=n.builtin||o(a),u=n.keywords||o(i),c=n.operatorChars||/^[*+\-%<>!=&|~^\/]/,d=n.support||{},f=n.hooks||{},p=n.dateSQL||{date:!0,time:!0,timestamp:!0},h=!1!==n.backslashStringEscapes,m=n.brackets||/^[\{}\(\)\[\]]/,g=n.punctuation||/^[;.,:]/;function v(e,t){var n=e.next();if(f[n]){var i=f[n](e,t);if(!1!==i)return i}if(d.hexNumber&&("0"==n&&e.match(/^[xX][0-9a-fA-F]+/)||("x"==n||"X"==n)&&e.match(/^'[0-9a-fA-F]*'/)))return"number";if(d.binaryNumber&&(("b"==n||"B"==n)&&e.match(/^'[01]*'/)||"0"==n&&e.match(/^b[01]+/)))return"number";if(n.charCodeAt(0)>47&&n.charCodeAt(0)<58)return e.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),d.decimallessFloat&&e.match(/^\.(?!\.)/),"number";if("?"==n&&(e.eatSpace()||e.eol()||e.eat(";")))return"variable-3";if("'"==n||'"'==n&&d.doubleQuote)return t.tokenize=y(n),t.tokenize(e,t);if((d.nCharCast&&("n"==n||"N"==n)||d.charsetCast&&"_"==n&&e.match(/[a-z][a-z0-9]*/i))&&("'"==e.peek()||'"'==e.peek()))return"keyword";if(d.escapeConstant&&("e"==n||"E"==n)&&("'"==e.peek()||'"'==e.peek()&&d.doubleQuote))return t.tokenize=function(e,t){return(t.tokenize=y(e.next(),!0))(e,t)},"keyword";if(d.commentSlashSlash&&"/"==n&&e.eat("/"))return e.skipToEnd(),"comment";if(d.commentHash&&"#"==n||"-"==n&&e.eat("-")&&(!d.commentSpaceRequired||e.eat(" ")))return e.skipToEnd(),"comment";if("/"==n&&e.eat("*"))return t.tokenize=b(1),t.tokenize(e,t);if("."!=n){if(c.test(n))return e.eatWhile(c),"operator";if(m.test(n))return"bracket";if(g.test(n))return e.eatWhile(g),"punctuation";if("{"==n&&(e.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||e.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";e.eatWhile(/^[_\w\d]/);var o=e.current().toLowerCase();return p.hasOwnProperty(o)&&(e.match(/^( )+'[^']*'/)||e.match(/^( )+"[^"]*"/))?"number":s.hasOwnProperty(o)?"atom":l.hasOwnProperty(o)?"type":u.hasOwnProperty(o)?"keyword":r.hasOwnProperty(o)?"builtin":null}return d.zerolessFloat&&e.match(/^(?:\d+(?:e[+-]?\d+)?)/i)?"number":e.match(/^\.+/)?null:e.match(/^[\w\d_$#]+/)?"variable-2":void 0}function y(e,t){return function(n,r){for(var i,o=!1;null!=(i=n.next());){if(i==e&&!o){r.tokenize=v;break}o=(h||t)&&!o&&"\\"==i}return"string"}}function b(e){return function(t,n){var r=t.match(/^.*?(\/\*|\*\/)/);return r?"/*"==r[1]?n.tokenize=b(e+1):n.tokenize=e>1?b(e-1):v:t.skipToEnd(),"comment"}}function w(e,t,n){t.context={prev:t.context,indent:e.indentation(),col:e.column(),type:n}}return{startState:function(){return{tokenize:v,context:null}},token:function(e,t){if(e.sol()&&t.context&&null==t.context.align&&(t.context.align=!1),t.tokenize==v&&e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"==n)return n;t.context&&null==t.context.align&&(t.context.align=!0);var r=e.current();return"("==r?w(e,t,")"):"["==r?w(e,t,"]"):t.context&&t.context.type==r&&function(e){e.indent=e.context.indent,e.context=e.context.prev}(t),n},indent:function(n,r){var i=n.context;if(!i)return e.Pass;var o=r.charAt(0)==i.type;return i.align?i.col+(o?0:1):i.indent+(o?0:t.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:d.commentSlashSlash?"//":d.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``",config:n}}));var i="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function o(e){for(var t={},n=e.split(" "),r=0;r!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:o("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":n}}),e.defineMIME("text/x-mysql",{name:"sql",client:o("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:o(i+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:o("date time timestamp"),support:o("decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":n,"`":t,"\\":r}}),e.defineMIME("text/x-mariadb",{name:"sql",client:o("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:o(i+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group group_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:o("date time timestamp"),support:o("decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":n,"`":t,"\\":r}}),e.defineMIME("text/x-sqlite",{name:"sql",client:o("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:o(i+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:o("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:o("date time timestamp datetime"),support:o("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":n,":":n,"?":n,$:n,'"':function(e){for(var t;null!=(t=e.next());)if('"'==t&&!e.eat('"'))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null},"`":t}}),e.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:o("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:o("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:o("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:o("commentSlashSlash decimallessFloat"),hooks:{}}),e.defineMIME("text/x-plsql",{name:"sql",client:o("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:o("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:o("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:o("date time timestamp"),support:o("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),e.defineMIME("text/x-hive",{name:"sql",keywords:o("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:o("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:o("date timestamp"),support:o("doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-pgsql",{name:"sql",client:o("source"),keywords:o(i+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:o("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time zone timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:o("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:o("date time timestamp"),support:o("decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),e.defineMIME("text/x-gql",{name:"sql",keywords:o("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:o("false true"),builtin:o("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),e.defineMIME("text/x-gpsql",{name:"sql",client:o("source"),keywords:o("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:o("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:o("date time timestamp"),support:o("decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),e.defineMIME("text/x-sparksql",{name:"sql",keywords:o("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:o("abs acos acosh add_months aggregate and any approx_count_distinct approx_percentile array array_contains array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_repeat array_sort array_union arrays_overlap arrays_zip ascii asin asinh assert_true atan atan2 atanh avg base64 between bigint bin binary bit_and bit_count bit_get bit_length bit_or bit_xor bool_and bool_or boolean bround btrim cardinality case cast cbrt ceil ceiling char char_length character_length chr coalesce collect_list collect_set concat concat_ws conv corr cos cosh cot count count_if count_min_sketch covar_pop covar_samp crc32 cume_dist current_catalog current_database current_date current_timestamp current_timezone current_user date date_add date_format date_from_unix_date date_part date_sub date_trunc datediff day dayofmonth dayofweek dayofyear decimal decode degrees delimited dense_rank div double e element_at elt encode every exists exp explode explode_outer expm1 extract factorial filter find_in_set first first_value flatten float floor forall format_number format_string from_csv from_json from_unixtime from_utc_timestamp get_json_object getbit greatest grouping grouping_id hash hex hour hypot if ifnull in initcap inline inline_outer input_file_block_length input_file_block_start input_file_name inputformat instr int isnan isnotnull isnull java_method json_array_length json_object_keys json_tuple kurtosis lag last last_day last_value lcase lead least left length levenshtein like ln locate log log10 log1p log2 lower lpad ltrim make_date make_dt_interval make_interval make_timestamp make_ym_interval map map_concat map_entries map_filter map_from_arrays map_from_entries map_keys map_values map_zip_with max max_by md5 mean min min_by minute mod monotonically_increasing_id month months_between named_struct nanvl negative next_day not now nth_value ntile nullif nvl nvl2 octet_length or outputformat overlay parse_url percent_rank percentile percentile_approx pi pmod posexplode posexplode_outer position positive pow power printf quarter radians raise_error rand randn random rank rcfile reflect regexp regexp_extract regexp_extract_all regexp_like regexp_replace repeat replace reverse right rint rlike round row_number rpad rtrim schema_of_csv schema_of_json second sentences sequence sequencefile serde session_window sha sha1 sha2 shiftleft shiftright shiftrightunsigned shuffle sign signum sin sinh size skewness slice smallint some sort_array soundex space spark_partition_id split sqrt stack std stddev stddev_pop stddev_samp str_to_map string struct substr substring substring_index sum tan tanh textfile timestamp timestamp_micros timestamp_millis timestamp_seconds tinyint to_csv to_date to_json to_timestamp to_unix_timestamp to_utc_timestamp transform transform_keys transform_values translate trim trunc try_add try_divide typeof ucase unbase64 unhex uniontype unix_date unix_micros unix_millis unix_seconds unix_timestamp upper uuid var_pop var_samp variance version weekday weekofyear when width_bucket window xpath xpath_boolean xpath_double xpath_float xpath_int xpath_long xpath_number xpath_short xpath_string xxhash64 year zip_with"),atoms:o("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:o("date time timestamp"),support:o("doubleQuote zerolessFloat")}),e.defineMIME("text/x-esper",{name:"sql",client:o("source"),keywords:o("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:o("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:o("time"),support:o("decimallessFloat zerolessFloat binaryNumber hexNumber")}),e.defineMIME("text/x-trino",{name:"sql",keywords:o("abs absent acos add admin after all all_match alter analyze and any any_match approx_distinct approx_most_frequent approx_percentile approx_set arbitrary array_agg array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_sort array_union arrays_overlap as asc asin at at_timezone atan atan2 authorization avg bar bernoulli beta_cdf between bing_tile bing_tile_at bing_tile_coordinates bing_tile_polygon bing_tile_quadkey bing_tile_zoom_level bing_tiles_around bit_count bitwise_and bitwise_and_agg bitwise_left_shift bitwise_not bitwise_or bitwise_or_agg bitwise_right_shift bitwise_right_shift_arithmetic bitwise_xor bool_and bool_or both by call cardinality cascade case cast catalogs cbrt ceil ceiling char2hexint checksum chr classify coalesce codepoint column columns combinations comment commit committed concat concat_ws conditional constraint contains contains_sequence convex_hull_agg copartition corr cos cosh cosine_similarity count count_if covar_pop covar_samp crc32 create cross cube cume_dist current current_catalog current_date current_groups current_path current_role current_schema current_time current_timestamp current_timezone current_user data date_add date_diff date_format date_parse date_trunc day day_of_month day_of_week day_of_year deallocate default define definer degrees delete dense_rank deny desc describe descriptor distinct distributed dow doy drop e element_at else empty empty_approx_set encoding end error escape evaluate_classifier_predictions every except excluding execute exists exp explain extract false features fetch filter final first first_value flatten floor following for format format_datetime format_number from from_base from_base32 from_base64 from_base64url from_big_endian_32 from_big_endian_64 from_encoded_polyline from_geojson_geometry from_hex from_ieee754_32 from_ieee754_64 from_iso8601_date from_iso8601_timestamp from_iso8601_timestamp_nanos from_unixtime from_unixtime_nanos from_utf8 full functions geometric_mean geometry_from_hadoop_shape geometry_invalid_reason geometry_nearest_points geometry_to_bing_tiles geometry_union geometry_union_agg grant granted grants graphviz great_circle_distance greatest group grouping groups hamming_distance hash_counts having histogram hmac_md5 hmac_sha1 hmac_sha256 hmac_sha512 hour human_readable_seconds if ignore in including index infinity initial inner input insert intersect intersection_cardinality into inverse_beta_cdf inverse_normal_cdf invoker io is is_finite is_infinite is_json_scalar is_nan isolation jaccard_index join json_array json_array_contains json_array_get json_array_length json_exists json_extract json_extract_scalar json_format json_object json_parse json_query json_size json_value keep key keys kurtosis lag last last_day_of_month last_value lateral lead leading learn_classifier learn_libsvm_classifier learn_libsvm_regressor learn_regressor least left length level levenshtein_distance like limit line_interpolate_point line_interpolate_points line_locate_point listagg ln local localtime localtimestamp log log10 log2 logical lower lpad ltrim luhn_check make_set_digest map_agg map_concat map_entries map_filter map_from_entries map_keys map_union map_values map_zip_with match match_recognize matched matches materialized max max_by md5 measures merge merge_set_digest millisecond min min_by minute mod month multimap_agg multimap_from_entries murmur3 nan natural next nfc nfd nfkc nfkd ngrams no none none_match normal_cdf normalize not now nth_value ntile null nullif nulls numeric_histogram object objectid_timestamp of offset omit on one only option or order ordinality outer output over overflow parse_data_size parse_datetime parse_duration partition partitions passing past path pattern per percent_rank permute pi position pow power preceding prepare privileges properties prune qdigest_agg quarter quotes radians rand random range rank read recursive reduce reduce_agg refresh regexp_count regexp_extract regexp_extract_all regexp_like regexp_position regexp_replace regexp_split regr_intercept regr_slope regress rename render repeat repeatable replace reset respect restrict returning reverse revoke rgb right role roles rollback rollup round row_number rows rpad rtrim running scalar schema schemas second security seek select sequence serializable session set sets sha1 sha256 sha512 show shuffle sign simplify_geometry sin skewness skip slice some soundex spatial_partitioning spatial_partitions split split_part split_to_map split_to_multimap spooky_hash_v2_32 spooky_hash_v2_64 sqrt st_area st_asbinary st_astext st_boundary st_buffer st_centroid st_contains st_convexhull st_coorddim st_crosses st_difference st_dimension st_disjoint st_distance st_endpoint st_envelope st_envelopeaspts st_equals st_exteriorring st_geometries st_geometryfromtext st_geometryn st_geometrytype st_geomfrombinary st_interiorringn st_interiorrings st_intersection st_intersects st_isclosed st_isempty st_isring st_issimple st_isvalid st_length st_linefromtext st_linestring st_multipoint st_numgeometries st_numinteriorring st_numpoints st_overlaps st_point st_pointn st_points st_polygon st_relate st_startpoint st_symdifference st_touches st_union st_within st_x st_xmax st_xmin st_y st_ymax st_ymin start starts_with stats stddev stddev_pop stddev_samp string strpos subset substr substring sum system table tables tablesample tan tanh tdigest_agg text then ties timestamp_objectid timezone_hour timezone_minute to to_base to_base32 to_base64 to_base64url to_big_endian_32 to_big_endian_64 to_char to_date to_encoded_polyline to_geojson_geometry to_geometry to_hex to_ieee754_32 to_ieee754_64 to_iso8601 to_milliseconds to_spherical_geography to_timestamp to_unixtime to_utf8 trailing transaction transform transform_keys transform_values translate trim trim_array true truncate try try_cast type typeof uescape unbounded uncommitted unconditional union unique unknown unmatched unnest update upper url_decode url_encode url_extract_fragment url_extract_host url_extract_parameter url_extract_path url_extract_port url_extract_protocol url_extract_query use user using utf16 utf32 utf8 validate value value_at_quantile values values_at_quantiles var_pop var_samp variance verbose version view week week_of_year when where width_bucket wilson_interval_lower wilson_interval_upper window with with_timezone within without word_stem work wrapper write xxhash64 year year_of_week yow zip zip_with"),builtin:o("array bigint bingtile boolean char codepoints color date decimal double function geometry hyperloglog int integer interval ipaddress joniregexp json json2016 jsonpath kdbtree likepattern map model objectid p4hyperloglog precision qdigest re2jregexp real regressor row setdigest smallint sphericalgeography tdigest time timestamp tinyint uuid varbinary varchar zone"),atoms:o("false true null unknown"),operatorChars:/^[[\]|<>=!\-+*/%]/,dateSQL:o("date time timestamp zone"),support:o("decimallessFloat zerolessFloat hexNumber")})}(n(23326))},38234:(e,t,n)=>{!function(e){"use strict";e.defineMode("stex",(function(e,t){function n(e,t){e.cmdState.push(t)}function r(e){return e.cmdState.length>0?e.cmdState[e.cmdState.length-1]:null}function i(e,t,n){return function(){this.name=e,this.bracketNo=0,this.style=t,this.styles=n,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var o={};function a(e,t){e.f=t}function s(e,t){var i;if(e.match(/^\\[a-zA-Z@]+/)){var s=e.current().slice(1);return n(t,i=new(i=o.hasOwnProperty(s)?o[s]:o.DEFAULT)),a(t,u),i.style}if(e.match(/^\\[$&%#{}_]/))return"tag";if(e.match(/^\\[,;!\/\\]/))return"tag";if(e.match("\\["))return a(t,(function(e,t){return l(e,t,"\\]")})),"keyword";if(e.match("\\("))return a(t,(function(e,t){return l(e,t,"\\)")})),"keyword";if(e.match("$$"))return a(t,(function(e,t){return l(e,t,"$$")})),"keyword";if(e.match("$"))return a(t,(function(e,t){return l(e,t,"$")})),"keyword";var c=e.next();return"%"==c?(e.skipToEnd(),"comment"):"}"==c||"]"==c?(i=r(t))?(i.closeBracket(c),a(t,u),"bracket"):"error":"{"==c||"["==c?(n(t,i=new(i=o.DEFAULT)),"bracket"):/\d/.test(c)?(e.eatWhile(/[\w.%]/),"atom"):(e.eatWhile(/[\w\-_]/),"begin"==(i=function(e){for(var t=e.cmdState,n=t.length-1;n>=0;n--){var r=t[n];if("DEFAULT"!=r.name)return r}return{styleIdentifier:function(){return null}}}(t)).name&&(i.argument=e.current()),i.styleIdentifier())}function l(e,t,n){if(e.eatSpace())return null;if(n&&e.match(n))return a(t,s),"keyword";if(e.match(/^\\[a-zA-Z@]+/))return"tag";if(e.match(/^[a-zA-Z]+/))return"variable-2";if(e.match(/^\\[$&%#{}_]/))return"tag";if(e.match(/^\\[,;!\/]/))return"tag";if(e.match(/^[\^_&]/))return"tag";if(e.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(e.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var r=e.next();return"{"==r||"}"==r||"["==r||"]"==r||"("==r||")"==r?"bracket":"%"==r?(e.skipToEnd(),"comment"):"error"}function u(e,t){var n=e.peek();return"{"==n||"["==n?(r(t).openBracket(n),e.eat(n),a(t,s),"bracket"):/[ \t\r]/.test(n)?(e.eat(n),null):(a(t,s),function(e){var t=e.cmdState.pop();t&&t.closeBracket()}(t),s(e,t))}return o.importmodule=i("importmodule","tag",["string","builtin"]),o.documentclass=i("documentclass","tag",["","atom"]),o.usepackage=i("usepackage","tag",["atom"]),o.begin=i("begin","tag",["atom"]),o.end=i("end","tag",["atom"]),o.label=i("label","tag",["atom"]),o.ref=i("ref","tag",["atom"]),o.eqref=i("eqref","tag",["atom"]),o.cite=i("cite","tag",["atom"]),o.bibitem=i("bibitem","tag",["atom"]),o.Bibitem=i("Bibitem","tag",["atom"]),o.RBibitem=i("RBibitem","tag",["atom"]),o.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}},{startState:function(){return{cmdState:[],f:t.inMathMode?function(e,t){return l(e,t)}:s}},copyState:function(e){return{cmdState:e.cmdState.slice(),f:e.f}},token:function(e,t){return t.f(e,t)},blankLine:function(e){e.f=s,e.cmdState.length=0},lineComment:"%"}})),e.defineMIME("text/x-stex","stex"),e.defineMIME("text/x-latex","stex")}(n(23326))},98660:(e,t,n)=>{!function(e){"use strict";e.defineMode("stylus",(function(e){for(var p,g,v,y,b=e.indentUnit,w="",_=m(t),x=/^(a|b|i|s|col|em)$/i,k=m(o),E=m(a),S=m(u),C=m(l),T=m(n),O=h(n),A=m(i),P=m(r),R=m(s),D=/^\s*([.]{2,3}|&&|\|\||\*\*|[?!=:]?=|[-+*\/%<>]=?|\?:|\~)/,M=h(c),I=m(d),L=new RegExp(/^\-(moz|ms|o|webkit)-/i),j=m(f),N="",F={};w.length|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/),t.context.line.firstWord=N?N[0].replace(/^\s*/,""):"",t.context.line.indent=e.indentation(),p=e.peek(),e.match("//"))return e.skipToEnd(),["comment","comment"];if(e.match("/*"))return t.tokenize=z,z(e,t);if('"'==p||"'"==p)return e.next(),t.tokenize=U(p),t.tokenize(e,t);if("@"==p)return e.next(),e.eatWhile(/[\w\\-]/),["def",e.current()];if("#"==p){if(e.next(),e.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i))return["atom","atom"];if(e.match(/^[a-z][\w-]*/i))return["builtin","hash"]}return e.match(L)?["meta","vendor-prefixes"]:e.match(/^-?[0-9]?\.?[0-9]/)?(e.eatWhile(/[a-z%]/i),["number","unit"]):"!"==p?(e.next(),[e.match(/^(important|optional)/i)?"keyword":"operator","important"]):"."==p&&e.match(/^\.[a-z][\w-]*/i)?["qualifier","qualifier"]:e.match(O)?("("==e.peek()&&(t.tokenize=q),["property","word"]):e.match(/^[a-z][\w-]*\(/i)?(e.backUp(1),["keyword","mixin"]):e.match(/^(\+|-)[a-z][\w-]*\(/i)?(e.backUp(1),["keyword","block-mixin"]):e.string.match(/^\s*&/)&&e.match(/^[-_]+[a-z][\w-]*/)?["qualifier","qualifier"]:e.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)?(e.backUp(1),["variable-3","reference"]):e.match(/^&{1}\s*$/)?["variable-3","reference"]:e.match(M)?["operator","operator"]:e.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)?e.match(/^(\.|\[)[\w-\'\"\]]+/i,!1)&&!G(e.current())?(e.match("."),["variable-2","variable-name"]):["variable-2","word"]:e.match(D)?["operator",e.current()]:/[:;,{}\[\]\(\)]/.test(p)?(e.next(),[null,p]):(e.next(),[null,null])}function z(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}function U(e){return function(t,n){for(var r,i=!1;null!=(r=t.next());){if(r==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==r}return(r==e||!i&&")"!=e)&&(n.tokenize=null),["string","string"]}}function q(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=U(")"),[null,"("]}function W(e,t,n,r){this.type=e,this.indent=t,this.prev=n,this.line=r||{firstWord:"",indent:0}}function $(e,t,n,r){return r=r>=0?r:b,e.context=new W(n,t.indentation()+r,e.context),n}function H(e,t){var n=e.context.indent-b;return t=t||!1,e.context=e.context.prev,t&&(e.context.indent=n),e.context.type}function V(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return function(e,t,n){return F[n.context.type](e,t,n)}(e,t,n)}function G(e){return e.toLowerCase()in _}function K(e){return(e=e.toLowerCase())in k||e in R}function Z(e){return e.toLowerCase()in I}function Y(e){return e.toLowerCase().match(L)}function X(e){var t=e.toLowerCase(),n="variable-2";return G(e)?n="tag":Z(e)?n="block-keyword":K(e)?n="property":t in S||t in j?n="atom":"return"==t||t in C?n="keyword":e.match(/^[A-Z]/)&&(n="string"),n}function Q(e,t){return ne(t)&&("{"==e||"]"==e||"hash"==e||"qualifier"==e)||"block-mixin"==e}function J(e,t){return"{"==e&&t.match(/^\s*\$?[\w-]+/i,!1)}function ee(e,t){return":"==e&&t.match(/^[a-z-]+/,!1)}function te(e){return e.sol()||e.string.match(new RegExp("^\\s*"+e.current().replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")))}function ne(e){return e.eol()||e.match(/^\s*$/,!1)}function re(e){var t=/^\s*[-_]*[a-z0-9]+[\w-]*/i,n="string"==typeof e?e.match(t):e.string.match(t);return n?n[0].replace(/^\s*/,""):""}return F.block=function(e,t,n){if("comment"==e&&te(t)||","==e&&ne(t)||"mixin"==e)return $(n,t,"block",0);if(J(e,t))return $(n,t,"interpolation");if(ne(t)&&"]"==e&&!/^\s*(\.|#|:|\[|\*|&)/.test(t.string)&&!G(re(t)))return $(n,t,"block",0);if(Q(e,t))return $(n,t,"block");if("}"==e&&ne(t))return $(n,t,"block",0);if("variable-name"==e)return t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)||Z(re(t))?$(n,t,"variableName"):$(n,t,"variableName",0);if("="==e)return ne(t)||Z(re(t))?$(n,t,"block"):$(n,t,"block",0);if("*"==e&&(ne(t)||t.match(/\s*(,|\.|#|\[|:|{)/,!1)))return y="tag",$(n,t,"block");if(ee(e,t))return $(n,t,"pseudo");if(/@(font-face|media|supports|(-moz-)?document)/.test(e))return $(n,t,ne(t)?"block":"atBlock");if(/@(-(moz|ms|o|webkit)-)?keyframes$/.test(e))return $(n,t,"keyframes");if(/@extends?/.test(e))return $(n,t,"extend",0);if(e&&"@"==e.charAt(0))return t.indentation()>0&&K(t.current().slice(1))?(y="variable-2","block"):/(@import|@require|@charset)/.test(e)?$(n,t,"block",0):$(n,t,"block");if("reference"==e&&ne(t))return $(n,t,"block");if("("==e)return $(n,t,"parens");if("vendor-prefixes"==e)return $(n,t,"vendorPrefixes");if("word"==e){var r=t.current();if("property"==(y=X(r)))return te(t)?$(n,t,"block",0):(y="atom","block");if("tag"==y){if(/embed|menu|pre|progress|sub|table/.test(r)&&K(re(t)))return y="atom","block";if(t.string.match(new RegExp("\\[\\s*"+r+"|"+r+"\\s*\\]")))return y="atom","block";if(x.test(r)&&(te(t)&&t.string.match(/=/)||!te(t)&&!t.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/)&&!G(re(t))))return y="variable-2",Z(re(t))?"block":$(n,t,"block",0);if(ne(t))return $(n,t,"block")}if("block-keyword"==y)return y="keyword",t.current(/(if|unless)/)&&!te(t)?"block":$(n,t,"block");if("return"==r)return $(n,t,"block",0);if("variable-2"==y&&t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/))return $(n,t,"block")}return n.context.type},F.parens=function(e,t,n){if("("==e)return $(n,t,"parens");if(")"==e)return"parens"==n.context.prev.type?H(n):t.string.match(/^[a-z][\w-]*\(/i)&&ne(t)||Z(re(t))||/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(re(t))||!t.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/)&&G(re(t))?$(n,t,"block"):t.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/)||t.string.match(/^\s*(\(|\)|[0-9])/)||t.string.match(/^\s+[a-z][\w-]*\(/i)||t.string.match(/^\s+[\$-]?[a-z]/i)?$(n,t,"block",0):ne(t)?$(n,t,"block"):$(n,t,"block",0);if(e&&"@"==e.charAt(0)&&K(t.current().slice(1))&&(y="variable-2"),"word"==e){var r=t.current();"tag"==(y=X(r))&&x.test(r)&&(y="variable-2"),"property"!=y&&"to"!=r||(y="atom")}return"variable-name"==e?$(n,t,"variableName"):ee(e,t)?$(n,t,"pseudo"):n.context.type},F.vendorPrefixes=function(e,t,n){return"word"==e?(y="property",$(n,t,"block",0)):H(n)},F.pseudo=function(e,t,n){return K(re(t.string))?V(e,t,n):(t.match(/^[a-z-]+/),y="variable-3",ne(t)?$(n,t,"block"):H(n))},F.atBlock=function(e,t,n){if("("==e)return $(n,t,"atBlock_parens");if(Q(e,t))return $(n,t,"block");if(J(e,t))return $(n,t,"interpolation");if("word"==e){var r=t.current().toLowerCase();if("tag"==(y=/^(only|not|and|or)$/.test(r)?"keyword":T.hasOwnProperty(r)?"tag":P.hasOwnProperty(r)?"attribute":A.hasOwnProperty(r)?"property":E.hasOwnProperty(r)?"string-2":X(t.current()))&&ne(t))return $(n,t,"block")}return"operator"==e&&/^(not|and|or)$/.test(t.current())&&(y="keyword"),n.context.type},F.atBlock_parens=function(e,t,n){if("{"==e||"}"==e)return n.context.type;if(")"==e)return ne(t)?$(n,t,"block"):$(n,t,"atBlock");if("word"==e){var r=t.current().toLowerCase();return y=X(r),/^(max|min)/.test(r)&&(y="property"),"tag"==y&&(y=x.test(r)?"variable-2":"atom"),n.context.type}return F.atBlock(e,t,n)},F.keyframes=function(e,t,n){return"0"==t.indentation()&&("}"==e&&te(t)||"]"==e||"hash"==e||"qualifier"==e||G(t.current()))?V(e,t,n):"{"==e?$(n,t,"keyframes"):"}"==e?te(t)?H(n,!0):$(n,t,"keyframes"):"unit"==e&&/^[0-9]+\%$/.test(t.current())?$(n,t,"keyframes"):"word"==e&&"block-keyword"==(y=X(t.current()))?(y="keyword",$(n,t,"keyframes")):/@(font-face|media|supports|(-moz-)?document)/.test(e)?$(n,t,ne(t)?"block":"atBlock"):"mixin"==e?$(n,t,"block",0):n.context.type},F.interpolation=function(e,t,n){return"{"==e&&H(n)&&$(n,t,"block"),"}"==e?t.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i)||t.string.match(/^\s*[a-z]/i)&&G(re(t))?$(n,t,"block"):!t.string.match(/^(\{|\s*\&)/)||t.match(/\s*[\w-]/,!1)?$(n,t,"block",0):$(n,t,"block"):"variable-name"==e?$(n,t,"variableName",0):("word"==e&&"tag"==(y=X(t.current()))&&(y="atom"),n.context.type)},F.extend=function(e,t,n){return"["==e||"="==e?"extend":"]"==e?H(n):"word"==e?(y=X(t.current()),"extend"):H(n)},F.variableName=function(e,t,n){return"string"==e||"["==e||"]"==e||t.current().match(/^(\.|\$)/)?(t.current().match(/^\.[\w-]+/i)&&(y="variable-2"),"variableName"):V(e,t,n)},{startState:function(e){return{tokenize:null,state:"block",context:new W("block",e||0,null)}},token:function(e,t){return!t.tokenize&&e.eatSpace()?null:((g=(t.tokenize||B)(e,t))&&"object"==typeof g&&(v=g[1],g=g[0]),y=g,t.state=F[t.state](v,e,t),y)},indent:function(e,t,n){var r=e.context,i=t&&t.charAt(0),o=r.indent,a=re(t),s=n.match(/^\s*/)[0].replace(/\t/g,w).length,l=e.context.prev?e.context.prev.line.firstWord:"",u=e.context.prev?e.context.prev.line.indent:s;return r.prev&&("}"==i&&("block"==r.type||"atBlock"==r.type||"keyframes"==r.type)||")"==i&&("parens"==r.type||"atBlock_parens"==r.type)||"{"==i&&"at"==r.type)?o=r.indent-b:/(\})/.test(i)||(/@|\$|\d/.test(i)||/^\{/.test(t)||/^\s*\/(\/|\*)/.test(t)||/^\s*\/\*/.test(l)||/^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(t)||/^(\+|-)?[a-z][\w-]*\(/i.test(t)||/^return/.test(t)||Z(a)?o=s:/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(i)||G(a)?o=/\,\s*$/.test(l)?u:/^\s+/.test(n)&&(/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(l)||G(l))?s<=u?u:u+b:s:/,\s*$/.test(n)||!Y(a)&&!K(a)||(o=Z(l)?s<=u?u:u+b:/^\{/.test(l)?s<=u?s:u+b:Y(l)||K(l)?s>=u?u:s:/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(l)||/=\s*$/.test(l)||G(l)||/^\$[\w-\.\[\]\'\"]/.test(l)?u+b:s)),o},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"indent"}}));var t=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","bgsound","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","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","nobr","noframes","noscript","object","ol","optgroup","option","output","p","param","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","tr","track","u","ul","var","video"],n=["domain","regexp","url-prefix","url"],r=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],i=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","dynamic-range","video-dynamic-range"],o=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode","font-smoothing","osx-font-smoothing"],a=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],s=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],l=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],u=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","high","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","malayalam","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","standard","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","x-large","x-small","xor","xx-large","xx-small","bicubic","optimizespeed","grayscale","row","row-reverse","wrap","wrap-reverse","column-reverse","flex-start","flex-end","space-between","space-around","unset"],c=["in","and","or","not","is not","is a","is","isnt","defined","if unless"],d=["for","if","else","unless","from","to"],f=["null","true","false","href","title","type","not-allowed","readonly","disabled"],p=t.concat(n,r,i,o,a,l,u,s,c,d,f,["@font-face","@keyframes","@media","@viewport","@page","@host","@supports","@block","@css"]);function h(e){return e=e.sort((function(e,t){return t>e})),new RegExp("^(("+e.join(")|(")+"))\\b")}function m(e){for(var t={},n=0;n{!function(e){"use strict";function t(e){for(var t={},n=0;n~^?!",s=":;,.(){}[]",l=/^\-?0b[01][01_]*/,u=/^\-?0o[0-7][0-7_]*/,c=/^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/,d=/^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/,f=/^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/,p=/^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/,h=/^\#[A-Za-z]+/,m=/^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;function g(e,t,g){if(e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;var v,w=e.peek();if("/"==w){if(e.match("//"))return e.skipToEnd(),"comment";if(e.match("/*"))return t.tokenize.push(b),b(e,t)}if(e.match(h))return"builtin";if(e.match(m))return"attribute";if(e.match(l))return"number";if(e.match(u))return"number";if(e.match(c))return"number";if(e.match(d))return"number";if(e.match(p))return"property";if(a.indexOf(w)>-1)return e.next(),"operator";if(s.indexOf(w)>-1)return e.next(),e.match(".."),"punctuation";if(v=e.match(/("""|"|')/)){var _=y.bind(null,v[0]);return t.tokenize.push(_),_(e,t)}if(e.match(f)){var x=e.current();return o.hasOwnProperty(x)?"variable-2":i.hasOwnProperty(x)?"atom":n.hasOwnProperty(x)?(r.hasOwnProperty(x)&&(t.prev="define"),"keyword"):"define"==g?"def":"variable"}return e.next(),null}function v(){var e=0;return function(t,n,r){var i=g(t,n,r);if("punctuation"==i)if("("==t.current())++e;else if(")"==t.current()){if(0==e)return t.backUp(1),n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n);--e}return i}}function y(e,t,n){for(var r,i=1==e.length,o=!1;r=t.peek();)if(o){if(t.next(),"("==r)return n.tokenize.push(v()),"string";o=!1}else{if(t.match(e))return n.tokenize.pop(),"string";t.next(),o="\\"==r}return i&&n.tokenize.pop(),"string"}function b(e,t){for(var n;n=e.next();)if("/"===n&&e.eat("*"))t.tokenize.push(b);else if("*"===n&&e.eat("/")){t.tokenize.pop();break}return"comment"}function w(e,t,n){this.prev=e,this.align=t,this.indented=n}function _(e,t){var n=t.match(/^\s*($|\/[\/\*])/,!1)?null:t.column()+1;e.context=new w(e.context,n,e.indented)}function x(e){e.context&&(e.indented=e.context.indented,e.context=e.context.prev)}e.defineMode("swift",(function(e){return{startState:function(){return{prev:null,context:null,indented:0,tokenize:[]}},token:function(e,t){var n=t.prev;t.prev=null;var r=(t.tokenize[t.tokenize.length-1]||g)(e,t,n);if(r&&"comment"!=r?t.prev||(t.prev=r):t.prev=n,"punctuation"==r){var i=/[\(\[\{]|([\]\)\}])/.exec(e.current());i&&(i[1]?x:_)(t,e)}return r},indent:function(t,n){var r=t.context;if(!r)return 0;var i=/^[\]\}\)]/.test(n);return null!=r.align?r.align-(i?1:0):r.indented+(i?0:e.indentUnit)},electricInput:/^\s*[\)\}\]]$/,lineComment:"//",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace",closeBrackets:"()[]{}''\"\"``"}})),e.defineMIME("text/x-swift","swift")}(n(23326))},27220:(e,t,n)=>{!function(e){"use strict";e.defineMode("tcl",(function(){function e(e){for(var t={},n=e.split(" "),r=0;r!?^\/\|]/;function i(e,t,n){return t.tokenize=n,n(e,t)}function o(e,l){var u=l.beforeParams;l.beforeParams=!1;var c,d=e.next();if('"'!=d&&"'"!=d||!l.inParams){if(/[\[\]{}\(\),;\.]/.test(d))return"("==d&&u?l.inParams=!0:")"==d&&(l.inParams=!1),null;if(/\d/.test(d))return e.eatWhile(/[\w\.]/),"number";if("#"==d)return e.eat("*")?i(e,l,a):"#"==d&&e.match(/ *\[ *\[/)?i(e,l,s):(e.skipToEnd(),"comment");if('"'==d)return e.skipTo(/"/),"comment";if("$"==d)return e.eatWhile(/[$_a-z0-9A-Z\.{:]/),e.eatWhile(/}/),l.beforeParams=!0,"builtin";if(r.test(d))return e.eatWhile(r),"comment";e.eatWhile(/[\w\$_{}\xa1-\uffff]/);var f=e.current().toLowerCase();return t&&t.propertyIsEnumerable(f)?"keyword":n&&n.propertyIsEnumerable(f)?(l.beforeParams=!0,"keyword"):null}return i(e,l,(c=d,function(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if(n==c&&!r){i=!0;break}r=!r&&"\\"==n}return i&&(t.tokenize=o),"string"}))}function a(e,t){for(var n,r=!1;n=e.next();){if("#"==n&&r){t.tokenize=o;break}r="*"==n}return"comment"}function s(e,t){for(var n,r=0;n=e.next();){if("#"==n&&2==r){t.tokenize=o;break}"]"==n?r++:" "!=n&&(r=0)}return"meta"}return{startState:function(){return{tokenize:o,beforeParams:!1,inParams:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},lineComment:"#"}})),e.defineMIME("text/x-tcl","tcl")}(n(23326))},17028:(e,t,n)=>{!function(e){"use strict";var t={addition:"positive",attributes:"attribute",bold:"strong",cite:"keyword",code:"atom",definitionList:"number",deletion:"negative",div:"punctuation",em:"em",footnote:"variable",footCite:"qualifier",header:"header",html:"comment",image:"string",italic:"em",link:"link",linkDefinition:"link",list1:"variable-2",list2:"variable-3",list3:"keyword",notextile:"string-2",pre:"operator",p:"property",quote:"bracket",span:"quote",specialChar:"tag",strong:"strong",sub:"builtin",sup:"builtin",table:"variable-3",tableHeading:"operator"};function n(e,n,o){if("_"===o)return e.eat("_")?r(e,n,"italic",/__/,2):r(e,n,"em",/_/,1);if("*"===o)return e.eat("*")?r(e,n,"bold",/\*\*/,2):r(e,n,"strong",/\*/,1);if("["===o)return e.match(/\d+\]/)&&(n.footCite=!0),i(n);if("("===o&&e.match(/^(r|tm|c)\)/))return a(n,t.specialChar);if("<"===o&&e.match(/(\w+)[^>]+>[^<]+<\/\1>/))return a(n,t.html);if("?"===o&&e.eat("?"))return r(e,n,"cite",/\?\?/,2);if("="===o&&e.eat("="))return r(e,n,"notextile",/==/,2);if("-"===o&&!e.eat("-"))return r(e,n,"deletion",/-/,1);if("+"===o)return r(e,n,"addition",/\+/,1);if("~"===o)return r(e,n,"sub",/~/,1);if("^"===o)return r(e,n,"sup",/\^/,1);if("%"===o)return r(e,n,"span",/%/,1);if("@"===o)return r(e,n,"code",/@/,1);if("!"===o){var s=r(e,n,"image",/(?:\([^\)]+\))?!/,1);return e.match(/^:\S+/),s}return i(n)}function r(e,t,n,r,o){var a=e.pos>o?e.string.charAt(e.pos-o-1):null,s=e.peek();if(t[n]){if((!s||/\W/.test(s))&&a&&/\S/.test(a)){var l=i(t);return t[n]=!1,l}}else(!a||/\W/.test(a))&&s&&/\S/.test(s)&&e.match(new RegExp("^.*\\S"+r.source+"(?:\\W|$)"),!1)&&(t[n]=!0,t.mode=c.attributes);return i(t)}function i(e){var n=o(e);if(n)return n;var r=[];return e.layoutType&&r.push(t[e.layoutType]),r=r.concat(function(e){for(var n=[],r=1;r]+)?>(?:[^<]+<\/\1>)?/,link:/[^"]+":\S/,linkDefinition:/\[[^\s\]]+\]\S+/,list:/(?:#+|\*+)/,notextile:"notextile",para:"p",pre:"pre",table:"table",tableCellAttributes:/[\/\\]\d+/,tableHeading:/\|_\./,tableText:/[^"_\*\[\(\?\+~\^%@|-]+/,text:/[^!"_=\*\[\(<\?\+~\^%@-]+/},attributes:{align:/(?:<>|<|>|=)/,selector:/\([^\(][^\)]+\)/,lang:/\[[^\[\]]+\]/,pad:/(?:\(+|\)+){1,2}/,css:/\{[^\}]+\}/},createRe:function(e){switch(e){case"drawTable":return l.makeRe("^",l.single.drawTable,"$");case"html":return l.makeRe("^",l.single.html,"(?:",l.single.html,")*","$");case"linkDefinition":return l.makeRe("^",l.single.linkDefinition,"$");case"listLayout":return l.makeRe("^",l.single.list,u("allAttributes"),"*\\s+");case"tableCellAttributes":return l.makeRe("^",l.choiceRe(l.single.tableCellAttributes,u("allAttributes")),"+\\.");case"type":return l.makeRe("^",u("allTypes"));case"typeLayout":return l.makeRe("^",u("allTypes"),u("allAttributes"),"*\\.\\.?","(\\s+|$)");case"attributes":return l.makeRe("^",u("allAttributes"),"+");case"allTypes":return l.choiceRe(l.single.div,l.single.foot,l.single.header,l.single.bc,l.single.bq,l.single.notextile,l.single.pre,l.single.table,l.single.para);case"allAttributes":return l.choiceRe(l.attributes.selector,l.attributes.css,l.attributes.lang,l.attributes.align,l.attributes.pad);default:return l.makeRe("^",l.single[e])}},makeRe:function(){for(var e="",t=0;t{!function(e){"use strict";e.defineMode("tiddlywiki",(function(){var e={},t={allTags:!0,closeAll:!0,list:!0,newJournal:!0,newTiddler:!0,permaview:!0,saveChanges:!0,search:!0,slider:!0,tabs:!0,tag:!0,tagging:!0,tags:!0,tiddler:!0,timeline:!0,today:!0,version:!0,option:!0,with:!0,filter:!0},n=/[\w_\-]/i,r=/^\-\-\-\-+$/,i=/^\/\*\*\*$/,o=/^\*\*\*\/$/,a=/^<<<$/,s=/^\/\/\{\{\{$/,l=/^\/\/\}\}\}$/,u=/^$/,c=/^$/,d=/^\{\{\{$/,f=/^\}\}\}$/,p=/.*?\}\}\}/;function h(e,t,n){return t.tokenize=n,n(e,t)}function m(t,f){var p=t.sol(),m=t.peek();if(f.block=!1,p&&/[<\/\*{}\-]/.test(m)){if(t.match(d))return f.block=!0,h(t,f,y);if(t.match(a))return"quote";if(t.match(i)||t.match(o))return"comment";if(t.match(s)||t.match(l)||t.match(u)||t.match(c))return"comment";if(t.match(r))return"hr"}if(t.next(),p&&/[\/\*!#;:>|]/.test(m)){if("!"==m)return t.skipToEnd(),"header";if("*"==m)return t.eatWhile("*"),"comment";if("#"==m)return t.eatWhile("#"),"comment";if(";"==m)return t.eatWhile(";"),"comment";if(":"==m)return t.eatWhile(":"),"comment";if(">"==m)return t.eatWhile(">"),"quote";if("|"==m)return"header"}if("{"==m&&t.match("{{"))return h(t,f,y);if(/[hf]/i.test(m)&&/[ti]/i.test(t.peek())&&t.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i))return"link";if('"'==m)return"string";if("~"==m)return"brace";if(/[\[\]]/.test(m)&&t.match(m))return"brace";if("@"==m)return t.eatWhile(n),"link";if(/\d/.test(m))return t.eatWhile(/\d/),"number";if("/"==m){if(t.eat("%"))return h(t,f,g);if(t.eat("/"))return h(t,f,b)}if("_"==m&&t.eat("_"))return h(t,f,w);if("-"==m&&t.eat("-")){if(" "!=t.peek())return h(t,f,_);if(" "==t.peek())return"brace"}return"'"==m&&t.eat("'")?h(t,f,v):"<"==m&&t.eat("<")?h(t,f,x):(t.eatWhile(/[\w\$_]/),e.propertyIsEnumerable(t.current())?"keyword":null)}function g(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=m;break}r="%"==n}return"comment"}function v(e,t){for(var n,r=!1;n=e.next();){if("'"==n&&r){t.tokenize=m;break}r="'"==n}return"strong"}function y(e,t){var n=t.block;return n&&e.current()?"comment":!n&&e.match(p)||n&&e.sol()&&e.match(f)?(t.tokenize=m,"comment"):(e.next(),"comment")}function b(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=m;break}r="/"==n}return"em"}function w(e,t){for(var n,r=!1;n=e.next();){if("_"==n&&r){t.tokenize=m;break}r="_"==n}return"underlined"}function _(e,t){for(var n,r=!1;n=e.next();){if("-"==n&&r){t.tokenize=m;break}r="-"==n}return"strikethrough"}function x(e,n){if("<<"==e.current())return"macro";var r=e.next();return r?">"==r&&">"==e.peek()?(e.next(),n.tokenize=m,"macro"):(e.eatWhile(/[\w\$_]/),t.propertyIsEnumerable(e.current())?"keyword":null):(n.tokenize=m,null)}return{startState:function(){return{tokenize:m}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}})),e.defineMIME("text/x-tiddlywiki","tiddlywiki")}(n(23326))},19750:(e,t,n)=>{!function(e){"use strict";e.defineMode("tiki",(function(e){function t(e,t,n){return function(i,o){for(;!i.eol();){if(i.match(t)){o.tokenize=r;break}i.next()}return n&&(o.tokenize=n),e}}function n(e){return function(t,n){for(;!t.eol();)t.next();return n.tokenize=r,e}}function r(e,i){function o(t){return i.tokenize=t,t(e,i)}var a=e.sol(),s=e.next();switch(s){case"{":return e.eat("/"),e.eatSpace(),e.eatWhile(/[^\s\u00a0=\"\'\/?(}]/),i.tokenize=u,"tag";case"_":if(e.eat("_"))return o(t("strong","__",r));break;case"'":if(e.eat("'"))return o(t("em","''",r));break;case"(":if(e.eat("("))return o(t("variable-2","))",r));break;case"[":return o(t("variable-3","]",r));case"|":if(e.eat("|"))return o(t("comment","||"));break;case"-":if(e.eat("="))return o(t("header string","=-",r));if(e.eat("-"))return o(t("error tw-deleted","--",r));break;case"=":if(e.match("=="))return o(t("tw-underline","===",r));break;case":":if(e.eat(":"))return o(t("comment","::"));break;case"^":return o(t("tw-box","^"));case"~":if(e.match("np~"))return o(t("meta","~/np~"))}if(a)switch(s){case"!":return e.match("!!!!!")||e.match("!!!!")||e.match("!!!")||e.match("!!"),o(n("header string"));case"*":case"#":case"+":return o(n("tw-listitem bracket"))}return null}var i,o,a,s,l=e.indentUnit;function u(e,t){var n,i=e.next(),a=e.peek();return"}"==i?(t.tokenize=r,"tag"):"("==i||")"==i?"bracket":"="==i?(o="equals",">"==a&&(e.next(),a=e.peek()),/[\'\"]/.test(a)||(t.tokenize=function(e,t){for(;!e.eol();){var n=e.next(),r=e.peek();if(" "==n||","==n||/[ )}]/.test(r)){t.tokenize=u;break}}return"string"}),"operator"):/[\'\"]/.test(i)?(t.tokenize=(n=i,function(e,t){for(;!e.eol();)if(e.next()==n){t.tokenize=u;break}return"string"}),t.tokenize(e,t)):(e.eatWhile(/[^\s\u00a0=\"\'\/?]/),"keyword")}function c(){for(var e=arguments.length-1;e>=0;e--)a.cc.push(arguments[e])}function d(){return c.apply(null,arguments),!0}function f(e,t){var n=a.context&&a.context.noIndent;a.context={prev:a.context,pluginName:e,indent:a.indented,startOfLine:t,noIndent:n}}function p(){a.context&&(a.context=a.context.prev)}function h(e){if("openPlugin"==e)return a.pluginName=i,d(m,(t=a.startOfLine,function(e){return"selfclosePlugin"==e||"endPlugin"==e?d():"endPlugin"==e?(f(a.pluginName,t),d()):d()}));var t;if("closePlugin"==e){var n=!1;return a.context?(n=a.context.pluginName!=i,p()):n=!0,n&&(s="error"),d(function(e){return function(t){return e&&(s="error"),"endPlugin"==t?d():c()}}(n))}return"string"==e?(a.context&&"!cdata"==a.context.name||f("!cdata"),a.tokenize==r&&p(),d()):d()}function m(e){return"keyword"==e?(s="attribute",d(m)):"equals"==e?d(g,m):c()}function g(e){return"keyword"==e?(s="string",d()):"string"==e?d(v):c()}function v(e){return"string"==e?d(v):c()}return{startState:function(){return{tokenize:r,cc:[],indented:0,startOfLine:!0,pluginName:null,context:null}},token:function(e,t){if(e.sol()&&(t.startOfLine=!0,t.indented=e.indentation()),e.eatSpace())return null;s=o=i=null;var n=t.tokenize(e,t);if((n||o)&&"comment"!=n)for(a=t;!(t.cc.pop()||h)(o||n););return t.startOfLine=!1,s||n},indent:function(e,t){var n=e.context;if(n&&n.noIndent)return 0;for(n&&/^{\//.test(t)&&(n=n.prev);n&&!n.startOfLine;)n=n.prev;return n?n.indent+l:0},electricChars:"/"}})),e.defineMIME("text/tiki","tiki")}(n(23326))},218:(e,t,n)=>{!function(e){"use strict";e.defineMode("toml",(function(){return{startState:function(){return{inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(e,t){if(t.inString||'"'!=e.peek()&&"'"!=e.peek()||(t.stringType=e.peek(),e.next(),t.inString=!0),e.sol()&&0===t.inArray&&(t.lhs=!0),t.inString){for(;t.inString&&!e.eol();)e.peek()===t.stringType?(e.next(),t.inString=!1):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return t.lhs?"property string":"string"}return t.inArray&&"]"===e.peek()?(e.next(),t.inArray--,"bracket"):t.lhs&&"["===e.peek()&&e.skipTo("]")?(e.next(),"]"===e.peek()&&e.next(),"atom"):"#"===e.peek()?(e.skipToEnd(),"comment"):e.eatSpace()?null:t.lhs&&e.eatWhile((function(e){return"="!=e&&" "!=e}))?"property":t.lhs&&"="===e.peek()?(e.next(),t.lhs=!1,null):!t.lhs&&e.match(/^\d\d\d\d[\d\-\:\.T]*Z/)?"atom":t.lhs||!e.match("true")&&!e.match("false")?t.lhs||"["!==e.peek()?!t.lhs&&e.match(/^\-?\d+(?:\.\d+)?/)?"number":(e.eatSpace()||e.next(),null):(t.inArray++,e.next(),"bracket"):"atom"}}})),e.defineMIME("text/x-toml","toml")}(n(23326))},87815:(e,t,n)=>{!function(e){"use strict";e.defineMode("tornado:inner",(function(){var e=["and","as","assert","autoescape","block","break","class","comment","context","continue","datetime","def","del","elif","else","end","escape","except","exec","extends","false","finally","for","from","global","if","import","in","include","is","json_encode","lambda","length","linkify","load","module","none","not","or","pass","print","put","raise","raw","return","self","set","squeeze","super","true","try","url_escape","while","with","without","xhtml_escape","yield"];function t(n,r){n.eatWhile(/[^\{]/);var i,o=n.next();if("{"==o&&(o=n.eat(/\{|%|#/)))return r.tokenize=("{"==(i=o)&&(i="}"),function(n,r){return n.next()==i&&n.eat("}")?(r.tokenize=t,"tag"):n.match(e)?"keyword":"#"==i?"comment":"string"}),"tag"}return e=new RegExp("^(("+e.join(")|(")+"))\\b"),{startState:function(){return{tokenize:t}},token:function(e,t){return t.tokenize(e,t)}}})),e.defineMode("tornado",(function(t){var n=e.getMode(t,"text/html"),r=e.getMode(t,"tornado:inner");return e.overlayMode(n,r)})),e.defineMIME("text/x-tornado","tornado")}(n(23326),n(38425),n(19962))},40957:(e,t,n)=>{!function(e){"use strict";e.defineMode("troff",(function(){var e={};function t(t){if(t.eatSpace())return null;var n=t.sol(),r=t.next();if("\\"===r)return t.match("fB")||t.match("fR")||t.match("fI")||t.match("u")||t.match("d")||t.match("%")||t.match("&")?"string":t.match("m[")?(t.skipTo("]"),t.next(),"string"):t.match("s+")||t.match("s-")?(t.eatWhile(/[\d-]/),"string"):t.match("(")||t.match("*(")?(t.eatWhile(/[\w-]/),"string"):"string";if(n&&("."===r||"'"===r)&&t.eat("\\")&&t.eat('"'))return t.skipToEnd(),"comment";if(n&&"."===r){if(t.match("B ")||t.match("I ")||t.match("R "))return"attribute";if(t.match("TH ")||t.match("SH ")||t.match("SS ")||t.match("HP "))return t.skipToEnd(),"quote";if(t.match(/[A-Z]/)&&t.match(/[A-Z]/)||t.match(/[a-z]/)&&t.match(/[a-z]/))return"attribute"}t.eatWhile(/[\w-]/);var i=t.current();return e.hasOwnProperty(i)?e[i]:null}function n(e,n){return(n.tokens[0]||t)(e,n)}return{startState:function(){return{tokens:[]}},token:function(e,t){return n(e,t)}}})),e.defineMIME("text/troff","troff"),e.defineMIME("text/x-troff","troff"),e.defineMIME("application/x-troff","troff")}(n(23326))},78175:(e,t,n)=>{!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r{!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r!\/]/;function _(e,t){var r,b=e.next();if('"'==b||"'"==b)return t.tokenize=(r=b,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){var a=e.peek();a&&("b"!=(a=a.toLowerCase())&&"h"!=a&&"o"!=a||e.next()),o=!0;break}i=!i&&"\\"==n}return(o||!i&&!y)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\\:\?\.]/.test(b))return n=b,"punctuation";if("#"==b)return e.skipToEnd(),"atom preprocessor";if("%"==b)return e.eatWhile(/\b/),"atom ttcn3Macros";if(/\d/.test(b))return e.eatWhile(/[\w\.]/),"number";if("/"==b){if(e.eat("*"))return t.tokenize=x,x(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(w.test(b))return"@"==b&&(e.match("try")||e.match("catch")||e.match("lazy"))?"keyword":(e.eatWhile(w),"operator");e.eatWhile(/[\w\$_\xa1-\uffff]/);var _=e.current();return i.propertyIsEnumerable(_)?"keyword":o.propertyIsEnumerable(_)?"builtin":a.propertyIsEnumerable(_)?"def timerOps":l.propertyIsEnumerable(_)?"def configOps":u.propertyIsEnumerable(_)?"def verdictOps":s.propertyIsEnumerable(_)?"def portOps":c.propertyIsEnumerable(_)?"def sutOps":d.propertyIsEnumerable(_)?"def functionOps":f.propertyIsEnumerable(_)?"string verdictConsts":p.propertyIsEnumerable(_)?"string booleanConsts":h.propertyIsEnumerable(_)?"string otherConsts":m.propertyIsEnumerable(_)?"builtin types":g.propertyIsEnumerable(_)?"builtin visibilityModifiers":v.propertyIsEnumerable(_)?"atom templateMatch":"variable"}function x(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function k(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function E(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new k(r,t,n,null,e.context)}function S(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new k((e||0)-r,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;n=null;var i=(t.tokenize||_)(e,t);if("comment"==i)return i;if(null==r.align&&(r.align=!0),";"!=n&&":"!=n&&","!=n||"statement"!=r.type)if("{"==n)E(t,e.column(),"}");else if("["==n)E(t,e.column(),"]");else if("("==n)E(t,e.column(),")");else if("}"==n){for(;"statement"==r.type;)r=S(t);for("}"==r.type&&(r=S(t));"statement"==r.type;)r=S(t)}else n==r.type?S(t):b&&(("}"==r.type||"top"==r.type)&&";"!=n||"statement"==r.type&&"newstatement"==n)&&E(t,e.column(),"statement");else S(t);return t.startOfLine=!1,i},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}})),function(t,n){"string"==typeof t&&(t=[t]);var r=[];function i(e){if(e)for(var t in e)e.hasOwnProperty(t)&&r.push(t)}i(n.keywords),i(n.builtin),i(n.timerOps),i(n.portOps),r.length&&(n.helperType=t[0],e.registerHelper("hintWords",t[0],r));for(var o=0;o{!function(e){"use strict";e.defineMode("turtle",(function(e){var t,n=e.indentUnit;function r(e){return new RegExp("^(?:"+e.join("|")+")$","i")}r([]);var i=r(["@prefix","@base","a"]),o=/[*+\-<>=&|]/;function a(e,n){var r,s=e.next();if(t=null,"<"!=s||e.match(/^[\s\u00a0=]/,!1)){if('"'==s||"'"==s)return n.tokenize=(r=s,function(e,t){for(var n,i=!1;null!=(n=e.next());){if(n==r&&!i){t.tokenize=a;break}i=!i&&"\\"==n}return"string"}),n.tokenize(e,n);if(/[{}\(\),\.;\[\]]/.test(s))return t=s,null;if("#"==s)return e.skipToEnd(),"comment";if(o.test(s))return e.eatWhile(o),null;if(":"==s)return"operator";if(e.eatWhile(/[_\w\d]/),":"==e.peek())return"variable-3";var l=e.current();return i.test(l)?"meta":s>="A"&&s<="Z"?"comment":"keyword"}return e.match(/^[^\s\u00a0>]*>?/),"atom"}function s(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function l(e){e.indent=e.context.indent,e.context=e.context.prev}return{startState:function(){return{tokenize:a,context:null,indent:0,col:0}},token:function(e,n){if(e.sol()&&(n.context&&null==n.context.align&&(n.context.align=!1),n.indent=e.indentation()),e.eatSpace())return null;var r=n.tokenize(e,n);if("comment"!=r&&n.context&&null==n.context.align&&"pattern"!=n.context.type&&(n.context.align=!0),"("==t)s(n,")",e.column());else if("["==t)s(n,"]",e.column());else if("{"==t)s(n,"}",e.column());else if(/[\]\}\)]/.test(t)){for(;n.context&&"pattern"==n.context.type;)l(n);n.context&&t==n.context.type&&l(n)}else"."==t&&n.context&&"pattern"==n.context.type?l(n):/atom|string|variable/.test(r)&&n.context&&(/[\}\]]/.test(n.context.type)?s(n,"pattern",e.column()):"pattern"!=n.context.type||n.context.align||(n.context.align=!0,n.context.col=e.column()));return r},indent:function(e,t){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&"pattern"==i.type;)i=i.prev;var o=i&&r==i.type;return i?"pattern"==i.type?i.col:i.align?i.col+(o?0:1):i.indent+(o?0:n):0},lineComment:"#"}})),e.defineMIME("text/turtle","turtle")}(n(23326))},21649:(e,t,n)=>{!function(e){"use strict";e.defineMode("twig:inner",(function(){var e=["and","as","autoescape","endautoescape","block","do","endblock","else","elseif","extends","for","endfor","embed","endembed","filter","endfilter","flush","from","if","endif","in","is","include","import","not","or","set","spaceless","endspaceless","with","endwith","trans","endtrans","blocktrans","endblocktrans","macro","endmacro","use","verbatim","endverbatim"],t=/^[+\-*&%=<>!?|~^]/,n=/^[:\[\(\{]/,r=["true","false","null","empty","defined","divisibleby","divisible by","even","odd","iterable","sameas","same as"],i=/^(\d[+\-\*\/])?\d+(\.\d+)?/;return e=new RegExp("(("+e.join(")|(")+"))\\b"),r=new RegExp("(("+r.join(")|(")+"))\\b"),{startState:function(){return{}},token:function(o,a){return function(o,a){var s=o.peek();if(a.incomment)return o.skipTo("#}")?(o.eatWhile(/\#|}/),a.incomment=!1):o.skipToEnd(),"comment";if(a.intag){if(a.operator){if(a.operator=!1,o.match(r))return"atom";if(o.match(i))return"number"}if(a.sign){if(a.sign=!1,o.match(r))return"atom";if(o.match(i))return"number"}if(a.instring)return s==a.instring&&(a.instring=!1),o.next(),"string";if("'"==s||'"'==s)return a.instring=s,o.next(),"string";if(o.match(a.intag+"}")||o.eat("-")&&o.match(a.intag+"}"))return a.intag=!1,"tag";if(o.match(t))return a.operator=!0,"operator";if(o.match(n))a.sign=!0;else if(o.eat(" ")||o.sol()){if(o.match(e))return"keyword";if(o.match(r))return"atom";if(o.match(i))return"number";o.sol()&&o.next()}else o.next();return"variable"}if(o.eat("{")){if(o.eat("#"))return a.incomment=!0,o.skipTo("#}")?(o.eatWhile(/\#|}/),a.incomment=!1):o.skipToEnd(),"comment";if(s=o.eat(/\{|%/))return a.intag=s,"{"==s&&(a.intag="}"),o.eat("-"),"tag"}o.next()}(o,a)}}})),e.defineMode("twig",(function(t,n){var r=e.getMode(t,"twig:inner");return n&&n.base?e.multiplexingMode(e.getMode(t,n.base),{open:/\{[{#%]/,close:/[}#%]\}/,mode:r,parseDelimiters:!0}):r})),e.defineMIME("text/x-twig","twig")}(n(23326),n(15718))},35053:(e,t,n)=>{!function(e){"use strict";e.defineMode("vb",(function(t,n){var r="error";function i(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var o=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),a=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),s=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),l=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),u=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),c=new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),d=["class","module","sub","enum","select","while","if","function","get","set","property","try","structure","synclock","using","with"],f=["else","elseif","case","catch","finally"],p=["next","loop"],h=["and","andalso","or","orelse","xor","in","not","is","isnot","like"],m=i(h),g=["#const","#else","#elseif","#end","#if","#region","addhandler","addressof","alias","as","byref","byval","cbool","cbyte","cchar","cdate","cdbl","cdec","cint","clng","cobj","compare","const","continue","csbyte","cshort","csng","cstr","cuint","culng","cushort","declare","default","delegate","dim","directcast","each","erase","error","event","exit","explicit","false","for","friend","gettype","goto","handles","implements","imports","infer","inherits","interface","isfalse","istrue","lib","me","mod","mustinherit","mustoverride","my","mybase","myclass","namespace","narrowing","new","nothing","notinheritable","notoverridable","of","off","on","operator","option","optional","out","overloads","overridable","overrides","paramarray","partial","private","protected","public","raiseevent","readonly","redim","removehandler","resume","return","shadows","shared","static","step","stop","strict","then","throw","to","true","trycast","typeof","until","until","when","widening","withevents","writeonly"],v=["object","boolean","char","string","byte","sbyte","short","ushort","int16","uint16","integer","uinteger","int32","uint32","long","ulong","int64","uint64","decimal","single","double","float","date","datetime","intptr","uintptr"],y=i(g),b=i(v),w=i(d),_=i(f),x=i(p),k=i(["end"]),E=i(["do"]);function S(e,t){t.currentIndent++}function C(e,t){t.currentIndent--}function T(e,t){if(e.eatSpace())return null;if("'"===e.peek())return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var i=!1;if((e.match(/^\d*\.\d+F?/i)||e.match(/^\d+\.\d*F?/)||e.match(/^\.\d+F?/))&&(i=!0),i)return e.eat(/J/i),"number";var d=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?d=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),d=!0):e.match(/^0(?![\dx])/i)&&(d=!0),d)return e.eat(/L/i),"number"}return e.match('"')?(t.tokenize=(f=e.current(),p=1==f.length,h="string",function(e,t){for(;!e.eol();){if(e.eatWhile(/[^'"]/),e.match(f))return t.tokenize=T,h;e.eat(/['"]/)}if(p){if(n.singleLineStringErrors)return r;t.tokenize=T}return h}),t.tokenize(e,t)):e.match(u)||e.match(l)?null:e.match(s)||e.match(o)||e.match(m)?"operator":e.match(a)?null:e.match(E)?(S(0,t),t.doInCurrentLine=!0,"keyword"):e.match(w)?(t.doInCurrentLine?t.doInCurrentLine=!1:S(0,t),"keyword"):e.match(_)?"keyword":e.match(k)?(C(0,t),C(0,t),"keyword"):e.match(x)?(C(0,t),"keyword"):e.match(b)||e.match(y)?"keyword":e.match(c)?"variable":(e.next(),r);var f,p,h}return e.registerHelper("hintWords","vb",d.concat(f).concat(p).concat(h).concat(g).concat(v)),{electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:T,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(e,t){e.sol()&&(t.currentIndent+=t.nextLineIndent,t.nextLineIndent=0,t.doInCurrentLine=0);var n=function(e,t){var n=t.tokenize(e,t),i=e.current();if("."===i)return"variable"===(n=t.tokenize(e,t))?"variable":r;var o="[({".indexOf(i);return-1!==o&&S(0,t),-1!==(o="])}".indexOf(i))&&C(0,t)?r:n}(e,t);return t.lastToken={style:n,content:e.current()},n},indent:function(e,n){var r=n.replace(/^\s+|\s+$/g,"");return r.match(x)||r.match(k)||r.match(_)?t.indentUnit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*t.indentUnit},lineComment:"'"}})),e.defineMIME("text/x-vb","vb")}(n(23326))},29048:(e,t,n)=>{!function(e){"use strict";e.defineMode("vbscript",(function(e,t){var n="error";function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var i=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),o=new RegExp("^((<>)|(<=)|(>=))"),a=new RegExp("^[\\.,]"),s=new RegExp("^[\\(\\)]"),l=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),u=r(["and","or","not","xor","is","mod","eqv","imp"]),c=["WScript","err","debug","RegExp"],d=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"].concat(["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"]);c=c.concat(["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"]),e.isASP&&(c=c.concat(["server","response","request","session","application"]),d=d.concat(["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"]));var f=r(["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"]),p=r(["true","false","nothing","empty","null"]),h=r(["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"]),m=r(c),g=r(d),v=r(["class","sub","select","while","if","function","property","with","for"]),y=r(["else","elseif","case"]),b=r(["next","loop","wend"]),w=r(["end"]),_=r(["do"]),x=r(["on error resume next","exit"]),k=r(["rem"]);function E(e,t){t.currentIndent++}function S(e,t){t.currentIndent--}function C(e,r){if(e.eatSpace())return"space";if("'"===e.peek())return e.skipToEnd(),"comment";if(e.match(k))return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var c=!1;if((e.match(/^\d*\.\d+/i)||e.match(/^\d+\.\d*/)||e.match(/^\.\d+/))&&(c=!0),c)return e.eat(/J/i),"number";var d=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?d=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),d=!0):e.match(/^0(?![\dx])/i)&&(d=!0),d)return e.eat(/L/i),"number"}return e.match('"')?(r.tokenize=(T=e.current(),O=1==T.length,A="string",function(e,r){for(;!e.eol();){if(e.eatWhile(/[^'"]/),e.match(T))return r.tokenize=C,A;e.eat(/['"]/)}if(O){if(t.singleLineStringErrors)return n;r.tokenize=C}return A}),r.tokenize(e,r)):e.match(o)||e.match(i)||e.match(u)?"operator":e.match(a)?null:e.match(s)?"bracket":e.match(x)?(r.doInCurrentLine=!0,"keyword"):e.match(_)?(E(0,r),r.doInCurrentLine=!0,"keyword"):e.match(v)?(r.doInCurrentLine?r.doInCurrentLine=!1:E(0,r),"keyword"):e.match(y)?"keyword":e.match(w)?(S(0,r),S(0,r),"keyword"):e.match(b)?(r.doInCurrentLine?r.doInCurrentLine=!1:S(0,r),"keyword"):e.match(f)?"keyword":e.match(p)?"atom":e.match(g)?"variable-2":e.match(h)?"builtin":e.match(m)?"variable-2":e.match(l)?"variable":(e.next(),n);var T,O,A}return{electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:C,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(e,t){e.sol()&&(t.currentIndent+=t.nextLineIndent,t.nextLineIndent=0,t.doInCurrentLine=0);var r=function(e,t){var r=t.tokenize(e,t),i=e.current();return"."===i?(r=t.tokenize(e,t),i=e.current(),!r||"variable"!==r.substr(0,8)&&"builtin"!==r&&"keyword"!==r?n:("builtin"!==r&&"keyword"!==r||(r="variable"),d.indexOf(i.substr(1))>-1&&(r="variable-2"),r)):r}(e,t);return t.lastToken={style:r,content:e.current()},"space"===r&&(r=null),r},indent:function(t,n){var r=n.replace(/^\s+|\s+$/g,"");return r.match(b)||r.match(w)||r.match(y)?e.indentUnit*(t.currentIndent-1):t.currentIndent<0?0:t.currentIndent*e.indentUnit}}})),e.defineMIME("text/vbscript","vbscript")}(n(23326))},8989:(e,t,n)=>{!function(e){"use strict";e.defineMode("velocity",(function(){function e(e){for(var t={},n=e.split(" "),r=0;r!?:\/|]/;function o(e,t,n){return t.tokenize=n,n(e,t)}function a(e,a){var c=a.beforeParams;a.beforeParams=!1;var d=e.next();if("'"==d&&!a.inString&&a.inParams)return a.lastTokenWasBuiltin=!1,o(e,a,s(d));if('"'!=d){if(/[\[\]{}\(\),;\.]/.test(d))return"("==d&&c?a.inParams=!0:")"==d&&(a.inParams=!1,a.lastTokenWasBuiltin=!0),null;if(/\d/.test(d))return a.lastTokenWasBuiltin=!1,e.eatWhile(/[\w\.]/),"number";if("#"==d&&e.eat("*"))return a.lastTokenWasBuiltin=!1,o(e,a,l);if("#"==d&&e.match(/ *\[ *\[/))return a.lastTokenWasBuiltin=!1,o(e,a,u);if("#"==d&&e.eat("#"))return a.lastTokenWasBuiltin=!1,e.skipToEnd(),"comment";if("$"==d)return e.eat("!"),e.eatWhile(/[\w\d\$_\.{}-]/),r&&r.propertyIsEnumerable(e.current())?"keyword":(a.lastTokenWasBuiltin=!0,a.beforeParams=!0,"builtin");if(i.test(d))return a.lastTokenWasBuiltin=!1,e.eatWhile(i),"operator";e.eatWhile(/[\w\$_{}@]/);var f=e.current();return t&&t.propertyIsEnumerable(f)?"keyword":n&&n.propertyIsEnumerable(f)||e.current().match(/^#@?[a-z0-9_]+ *$/i)&&"("==e.peek()&&(!n||!n.propertyIsEnumerable(f.toLowerCase()))?(a.beforeParams=!0,a.lastTokenWasBuiltin=!1,"keyword"):a.inString?(a.lastTokenWasBuiltin=!1,"string"):e.pos>f.length&&"."==e.string.charAt(e.pos-f.length-1)&&a.lastTokenWasBuiltin?"builtin":(a.lastTokenWasBuiltin=!1,null)}return a.lastTokenWasBuiltin=!1,a.inString?(a.inString=!1,"string"):a.inParams?o(e,a,s(d)):void 0}function s(e){return function(t,n){for(var r,i=!1,o=!1;null!=(r=t.next());){if(r==e&&!i){o=!0;break}if('"'==e&&"$"==t.peek()&&!i){n.inString=!0,o=!0;break}i=!i&&"\\"==r}return o&&(n.tokenize=a),"string"}}function l(e,t){for(var n,r=!1;n=e.next();){if("#"==n&&r){t.tokenize=a;break}r="*"==n}return"comment"}function u(e,t){for(var n,r=0;n=e.next();){if("#"==n&&2==r){t.tokenize=a;break}"]"==n?r++:" "!=n&&(r=0)}return"meta"}return{startState:function(){return{tokenize:a,beforeParams:!1,inParams:!1,inString:!1,lastTokenWasBuiltin:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"#*",blockCommentEnd:"*#",lineComment:"##",fold:"velocity"}})),e.defineMIME("text/velocity","velocity")}(n(23326))},75942:(e,t,n)=>{!function(e){"use strict";e.defineMode("verilog",(function(t,n){var r=t.indentUnit,i=n.statementIndentUnit||r,o=n.dontAlignCalls,a=n.compilerDirectivesUseRegularIndentation,s=n.noIndentKeywords||[],l=n.multiLineStrings,u=n.hooks||{};function c(e){for(var t={},n=e.split(" "),r=0;r]/,m=/[\[\]{}()]/,g=/\d[0-9_]*/,v=/\d*\s*'s?d\s*\d[0-9_]*/i,y=/\d*\s*'s?b\s*[xz01][xz01_]*/i,b=/\d*\s*'s?o\s*[xz0-7][xz0-7_]*/i,w=/\d*\s*'s?h\s*[0-9a-fxz?][0-9a-fxz?_]*/i,_=/(\d[\d_]*(\.\d[\d_]*)?E-?[\d_]+)|(\d[\d_]*\.\d[\d_]*)/i,x=/^((`?\w+)|[)}\]])/,k=/[)}\]]/,E=new RegExp("^(`(?:ifdef|ifndef|elsif|else|endif|undef|undefineall|define|include|begin_keywords|celldefine|default|nettype|end_keywords|endcelldefine|line|nounconnected_drive|pragma|resetall|timescale|unconnected_drive))\\b"),S=/^(`(?:ifdef|ifndef|elsif|else))\b/,C=/^(`(?:elsif|else|endif))\b/,T=c("case checker class clocking config function generate interface module package primitive program property specify sequence table task"),O={};for(var A in T)O[A]="end"+A;for(var P in O.begin="end",O.casex="endcase",O.casez="endcase",O.do="while",O.fork="join;join_any;join_none",O.covergroup="endgroup",O.macro_begin="macro_end",s)A=s[P],O[A]&&(O[A]=void 0);var R=c("always always_comb always_ff always_latch assert assign assume else export for foreach forever if import initial repeat while extern typedef");function D(e,t){var n,r,i=e.peek();if(u[i]&&0!=(n=u[i](e,t)))return n;if(u.tokenBase&&0!=(n=u.tokenBase(e,t)))return n;if(/[,;:\.]/.test(i))return d=e.next(),null;if(m.test(i))return d=e.next(),"bracket";if("`"==i){if(e.next(),e.eatWhile(/[\w\$_]/)){var o=e.current();if(f=o,o.startsWith("`uvm_")&&o.endsWith("_begin")){var a=f.substr(0,f.length-5)+"end";O[o]=a,d="newblock"}else{e.eatSpace(),"("==e.peek()&&(d="newmacro");var s=e.current();e.backUp(s.length-o.length)}return"def"}return null}if("$"==i)return e.next(),e.eatWhile(/[\w\$_]/)?"meta":null;if("#"==i)return e.next(),e.eatWhile(/[\d_.]/),"def";if("@"==i)return e.next(),e.eatWhile(/[@]/),"def";if('"'==i)return e.next(),t.tokenize=(r=i,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){o=!0;break}i=!i&&"\\"==n}return(o||!i&&!l)&&(t.tokenize=D),"string"}),t.tokenize(e,t);if("/"==i){if(e.next(),e.eat("*"))return t.tokenize=M,M(e,t);if(e.eat("/"))return e.skipToEnd(),"comment";e.backUp(1)}return e.match(_)||e.match(v)||e.match(y)||e.match(b)||e.match(w)||e.match(g)||e.match(_)?"number":e.eatWhile(h)?(d=e.current(),"meta"):e.eatWhile(/[\w\$_]/)?(o=e.current(),p[o]?(O[o]&&(d="newblock","fork"===o&&(e.eatSpace(),";"==e.peek()&&(d="newstatement"),e.backUp(e.current().length-o.length))),R[o]&&(d="newstatement"),f=o,"keyword"):"variable"):(e.next(),null)}function M(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=D;break}r="*"==n}return"comment"}function I(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.scopekind=r,this.align=i,this.prev=o}function L(e,t,n,r){var i=new I(e.indented,t,n,r||"",null,e.context);return e.context=i}function j(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function N(e,t){if(e==t)return!0;var n=t.split(";");for(var r in n)if(e==n[r])return!0;return!1}function F(e,t){return null!=e&&(e.scopekind===t||F(e.prev,t))}return{electricInput:function(){var e=[];for(var t in O)if(O[t]){var n=O[t].split(";");for(var r in n)e.push(n[r])}return new RegExp("[{}()\\[\\]]|("+e.join("|")+")$")}(),startState:function(e){var t={tokenize:null,context:new I((e||0)-r,0,"top","top",!1),indented:0,compilerDirectiveIndented:0,startOfLine:!0};return u.startState&&u.startState(t),t},token:function(e,t){var n,r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0),u.token&&void 0!==(n=u.token(e,t)))return n;if(e.eatSpace())return null;if(d=null,f=null,"comment"==(n=(t.tokenize||D)(e,t))||"meta"==n||"variable"==n)return"="!==d&&"<="!==d||F(r,"assignment")||(L(t,e.column()+d.length,"assignment","assignment"),null==r.align&&(r.align=!0)),n;null==r.align&&(r.align=!0);var o="assignment"==r.type&&k.test(d)&&r.prev&&r.prev.type===d;if(d==r.type||o){if(o&&(r=j(t)),r=j(t),")"==d){if(r&&"macro"===r.type)for(r=j(t);r&&("statement"==r.type||"assignment"==r.type);)r=j(t)}else if("}"==d&&r&&"statement"===r.type)for(;r&&"statement"==r.type;)r=j(t)}else if((";"==d||","==d)&&("statement"==r.type||"assignment"==r.type)||r.type&&N(f,r.type))for(r=j(t);r&&("statement"==r.type||"assignment"==r.type);)r=j(t);else if("{"==d)L(t,e.column(),"}");else if("["==d)L(t,e.column(),"]");else if("("==d)L(t,e.column(),")");else if(r&&"endcase"==r.type&&":"==d)L(t,e.column(),"statement","case");else if("newstatement"==d)L(t,e.column(),"statement",f);else if("newblock"==d){if("function"!=f||!r||"statement"!=r.type&&"endgroup"!=r.type)if("task"==f&&r&&"statement"==r.type);else if("class"==f&&r&&"statement"==r.type);else{var a=O[f];L(t,e.column(),a,f)}}else("newmacro"==d||f&&f.match(E))&&("newmacro"==d&&L(t,e.column(),"macro","macro"),f.match(C)&&(t.compilerDirectiveIndented-=i),f.match(S)&&(t.compilerDirectiveIndented+=i));return t.startOfLine=!1,n},indent:function(t,n){if(t.tokenize!=D&&null!=t.tokenize)return e.Pass;if(u.indent){var s=u.indent(t);if(s>=0)return s}var l=t.context,c=n&&n.charAt(0);"statement"==l.type&&"}"==c&&(l=l.prev);var d=!1,f=n.match(x);return f&&(d=N(f[0],l.type)),!a&&n.match(E)?n.match(C)?t.compilerDirectiveIndented-i:t.compilerDirectiveIndented:"statement"==l.type?l.indented+("{"==c?0:i):!k.test(l.type)&&"assignment"!=l.type||!l.align||o?")"!=l.type||d?l.indented+(d?0:r):l.indented+i:l.column+(d?0:1)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"indent"}})),e.defineMIME("text/x-verilog",{name:"verilog"}),e.defineMIME("text/x-systemverilog",{name:"verilog"});var t={"|":"link",">":"property",$:"variable",$$:"variable","?$":"qualifier","?*":"qualifier","-":"hr","/":"property","/-":"property","@":"variable-3","@-":"variable-3","@++":"variable-3","@+=":"variable-3","@+=-":"variable-3","@--":"variable-3","@-=":"variable-3","%+":"tag","%-":"tag","%":"tag",">>":"tag","<<":"tag","<>":"tag","#":"tag","^":"attribute","^^":"attribute","^!":"attribute","*":"variable-2","**":"variable-2","\\":"keyword",'"':"comment"},n={"/":"beh-hier",">":"beh-hier","-":"phys-hier","|":"pipe","?":"when","@":"stage","\\":"keyword"},r=/^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/,i=/^[! ] /,o=/^[! ] */,a=/^\/[\/\*]/;function s(e,t,n){var r=t/3;return"tlv-"+e.tlvIndentationStyle[r]+"-"+n}e.defineMIME("text/x-tlv",{name:"verilog",hooks:{electricInput:!1,token:function(e,l){var u,c=void 0;if(e.sol()&&!l.tlvInBlockComment){"\\"==e.peek()&&(c="def",e.skipToEnd(),e.string.match(/\\SV/)?l.tlvCodeActive=!1:e.string.match(/\\TLV/)&&(l.tlvCodeActive=!0)),l.tlvCodeActive&&0==e.pos&&0==l.indented&&(u=e.match(o,!1))&&(l.indented=u[0].length);var d=l.indented,f=d/3;if(f<=l.tlvIndentationStyle.length){var p=e.string.length==d,h=3*f;if(h0||(l.tlvIndentationStyle[f]=n[g],f++))}if(!p)for(;l.tlvIndentationStyle.length>f;)l.tlvIndentationStyle.pop()}l.tlvNextIndent=d}if(l.tlvCodeActive)if(void 0!==c)c+=" "+s(l,0,"scope-ident");else if(e.pos/30}(e)&&(c+=" "+s(l,e.pos,"before-scope-ident"));else if(l.tlvInBlockComment)e.match(/^.*?\*\//)?l.tlvInBlockComment=!1:e.skipToEnd(),c="comment";else if((u=e.match(a))&&!l.tlvInBlockComment)"//"==u[0]?e.skipToEnd():l.tlvInBlockComment=!0,c="comment";else if(u=e.match(r)){var v=u[1],y=u[2];t.hasOwnProperty(v)&&(y.length>0||e.eol())?(c=t[v],e.column()==l.indented&&(c+=" "+s(l,e.column(),"scope-ident"))):(e.backUp(e.current().length-1),c="tlv-default")}else e.match(/^\t+/)?c="tlv-tab":e.match(/^[\[\]{}\(\);\:]+/)?c="meta":(u=e.match(/^[mM]4([\+_])?[\w\d_]*/))?c="+"==u[1]?"tlv-m4-plus":"tlv-m4":e.match(/^ +/)?c=e.eol()?"error":"tlv-default":e.match(/^[\w\d_]+/)?c="number":(e.next(),c="tlv-default");else e.match(/^[mM]4([\w\d_]*)/)&&(c="tlv-m4");return c},indent:function(e){return 1==e.tlvCodeActive?e.tlvNextIndent:-1},startState:function(e){e.tlvIndentationStyle=[],e.tlvCodeActive=!0,e.tlvNextIndent=-1,e.tlvInBlockComment=!1}}})}(n(23326))},41838:(e,t,n)=>{!function(e){"use strict";function t(e){for(var t={},n=e.split(","),r=0;r{!function(e){"use strict";var t,r;t=n(23326),n(19962),n(9812),n(49055),n(86386),n(98627),n(67838),n(98660),n(12904),n(42336),r={script:[["lang",/coffee(script)?/,"coffeescript"],["type",/^(?:text|application)\/(?:x-)?coffee(?:script)?$/,"coffeescript"],["lang",/^babel$/,"javascript"],["type",/^text\/babel$/,"javascript"],["type",/^text\/ecmascript-\d+$/,"javascript"]],style:[["lang",/^stylus$/i,"stylus"],["lang",/^sass$/i,"sass"],["lang",/^less$/i,"text/x-less"],["lang",/^scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?styl(us)?$/i,"stylus"],["type",/^text\/sass/i,"sass"],["type",/^(text\/)?(x-)?scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?less$/i,"text/x-less"]],template:[["lang",/^vue-template$/i,"vue"],["lang",/^pug$/i,"pug"],["lang",/^handlebars$/i,"handlebars"],["type",/^(text\/)?(x-)?pug$/i,"pug"],["type",/^text\/x-handlebars-template$/i,"handlebars"],[null,null,"vue-template"]]},t.defineMode("vue-template",(function(e,n){return t.overlayMode(t.getMode(e,n.backdrop||"text/html"),{token:function(e){if(e.match(/^\{\{.*?\}\}/))return"meta mustache";for(;e.next()&&!e.match("{{",!1););return null}})})),t.defineMode("vue",(function(e){return t.getMode(e,{name:"htmlmixed",tags:r})}),"htmlmixed","xml","javascript","coffeescript","css","sass","stylus","pug","handlebars"),t.defineMIME("script/x-vue","vue"),t.defineMIME("text/x-vue","vue")}()},69693:(e,t,n)=>{!function(e){"use strict";e.defineSimpleMode("wast",{start:[{regex:/[+\-]?(?:nan(?::0x[0-9a-fA-F]+)?|infinity|inf|0x[0-9a-fA-F]+\.?[0-9a-fA-F]*p[+\/-]?\d+|\d+(?:\.\d*)?[eE][+\-]?\d*|\d+\.\d*|0x[0-9a-fA-F]+|\d+)/,token:"number"},{regex:new RegExp(["align","block","br(_if|_table|_on_(cast|data|func|i31|null))?","call(_indirect|_ref)?","current_memory","\\bdata\\b","catch(_all)?","delegate","drop","elem","else","end","export","\\bextern\\b","\\bfunc\\b","global(\\.(get|set))?","if","import","local(\\.(get|set|tee))?","loop","module","mut","nop","offset","param","result","rethrow","return(_call(_indirect|_ref)?)?","select","start","table(\\.(size|get|set|size|grow|fill|init|copy))?","then","throw","try","type","unreachable","unwind","i(32|64)\\.(store(8|16)|(load(8|16)_[su]))","i64\\.(load32_[su]|store32)","[fi](32|64)\\.(const|load|store)","f(32|64)\\.(abs|add|ceil|copysign|div|eq|floor|[gl][et]|max|min|mul|nearest|neg?|sqrt|sub|trunc)","i(32|64)\\.(a[dn]d|c[lt]z|(div|rem)_[su]|eqz?|[gl][te]_[su]|mul|ne|popcnt|rot[lr]|sh(l|r_[su])|sub|x?or)","i64\\.extend_[su]_i32","i32\\.wrap_i64","i(32|64)\\.trunc_f(32|64)_[su]","f(32|64)\\.convert_i(32|64)_[su]","f64\\.promote_f32","f32\\.demote_f64","f32\\.reinterpret_i32","i32\\.reinterpret_f32","f64\\.reinterpret_i64","i64\\.reinterpret_f64","memory(\\.((atomic\\.(notify|wait(32|64)))|grow|size))?","i64.atomic\\.(load32_u|store32|rmw32\\.(a[dn]d|sub|x?or|(cmp)?xchg)_u)","i(32|64)\\.atomic\\.(load((8|16)_u)?|store(8|16)?|rmw(\\.(a[dn]d|sub|x?or|(cmp)?xchg)|(8|16)\\.(a[dn]d|sub|x?or|(cmp)?xchg)_u))","v128\\.load(8x8|16x4|32x2)_[su]","v128\\.load(8|16|32|64)_splat","v128\\.(load|store)(8|16|32|64)_lane","v128\\.load(32|64)_zero","v128.(load|store|const|not|andnot|and|or|xor|bitselect|any_true)","i(8x16|16x8)\\.(extract_lane_[su]|(add|sub)_sat_[su]|avgr_u)","i(8x16|16x8|32x4|64x2)\\.(neg|add|sub|abs|shl|shr_[su]|all_true|bitmask|eq|ne|[lg][te]_s)","(i(8x16|16x8|32x4|64x2)|f(32x4|64x2)).(splat|replace_lane)","i(8x16|16x8|32x4)\\.(([lg][te]_u)|((min|max)_[su]))","f(32x4|64x2)\\.(neg|add|sub|abs|nearest|eq|ne|[lg][te]|sqrt|mul|div|min|max|ceil|floor|trunc)","[fi](32x4|64x2)\\.extract_lane","i8x16\\.(shuffle|swizzle|popcnt|narrow_i16x8_[su])","i16x8\\.(narrow_i32x4_[su]|mul|extadd_pairwise_i8x16_[su]|q15mulr_sat_s)","i16x8\\.(extend|extmul)_(low|high)_i8x16_[su]","i32x4\\.(mul|dot_i16x8_s|trunc_sat_f64x2_[su]_zero)","i32x4\\.((extend|extmul)_(low|high)_i16x8_|trunc_sat_f32x4_|extadd_pairwise_i16x8_)[su]","i64x2\\.(mul|(extend|extmul)_(low|high)_i32x4_[su])","f32x4\\.(convert_i32x4_[su]|demote_f64x2_zero)","f64x2\\.(promote_low_f32x4|convert_low_i32x4_[su])","\\bany\\b","array\\.len","(array|struct)(\\.(new_(default_)?with_rtt|get(_[su])?|set))?","\\beq\\b","field","i31\\.(new|get_[su])","\\bnull\\b","ref(\\.(([ai]s_(data|func|i31))|cast|eq|func|(is_|as_non_)?null|test))?","rtt(\\.(canon|sub))?"].join("|")),token:"keyword"},{regex:/\b((any|data|eq|extern|i31|func)ref|[fi](32|64)|i(8|16))\b/,token:"atom"},{regex:/\$([a-zA-Z0-9_`\+\-\*\/\\\^~=<>!\?@#$%&|:\.]+)/,token:"variable-2"},{regex:/"(?:[^"\\\x00-\x1f\x7f]|\\[nt\\'"]|\\[0-9a-fA-F][0-9a-fA-F])*"/,token:"string"},{regex:/\(;.*?/,token:"comment",next:"comment"},{regex:/;;.*$/,token:"comment"},{regex:/\(/,indent:!0},{regex:/\)/,dedent:!0}],comment:[{regex:/.*?;\)/,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{dontIndentStates:["comment"]}}),e.defineMIME("text/webassembly","wast")}(n(23326),n(81094))},29178:(e,t,n)=>{!function(e){"use strict";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var n=["Clamp","Constructor","EnforceRange","Exposed","ImplicitThis","Global","PrimaryGlobal","LegacyArrayClass","LegacyUnenumerableNamedProperties","LenientThis","NamedConstructor","NewObject","NoInterfaceObject","OverrideBuiltins","PutForwards","Replaceable","SameObject","TreatNonObjectAsNull","TreatNullAs","EmptyString","Unforgeable","Unscopeable"],r=t(n),i=["unsigned","short","long","unrestricted","float","double","boolean","byte","octet","Promise","ArrayBuffer","DataView","Int8Array","Int16Array","Int32Array","Uint8Array","Uint16Array","Uint32Array","Uint8ClampedArray","Float32Array","Float64Array","ByteString","DOMString","USVString","sequence","object","RegExp","Error","DOMException","FrozenArray","any","void"],o=t(i),a=["attribute","callback","const","deleter","dictionary","enum","getter","implements","inherit","interface","iterable","legacycaller","maplike","partial","required","serializer","setlike","setter","static","stringifier","typedef","optional","readonly","or"],s=t(a),l=["true","false","Infinity","NaN","null"],u=t(l);e.registerHelper("hintWords","webidl",n.concat(i).concat(a).concat(l));var c=t(["callback","dictionary","enum","interface"]),d=t(["typedef"]),f=/^[:<=>?]/,p=/^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/,h=/^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/,m=/^_?[A-Za-z][0-9A-Z_a-z-]*/,g=/^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/,v=/^"[^"]*"/,y=/^\/\*.*?\*\//,b=/^\/\*.*/,w=/^.*?\*\//;e.defineMode("webidl",(function(){return{startState:function(){return{inComment:!1,lastToken:"",startDef:!1,endDef:!1}},token:function(e,t){var n=function(e,t){if(e.eatSpace())return null;if(t.inComment)return e.match(w)?(t.inComment=!1,"comment"):(e.skipToEnd(),"comment");if(e.match("//"))return e.skipToEnd(),"comment";if(e.match(y))return"comment";if(e.match(b))return t.inComment=!0,"comment";if(e.match(/^-?[0-9\.]/,!1)&&(e.match(p)||e.match(h)))return"number";if(e.match(v))return"string";if(t.startDef&&e.match(m))return"def";if(t.endDef&&e.match(g))return t.endDef=!1,"def";if(e.match(s))return"keyword";if(e.match(o)){var n=t.lastToken,i=(e.match(/^\s*(.+?)\b/,!1)||[])[1];return":"===n||"implements"===n||"implements"===i||"="===i?"builtin":"variable-3"}return e.match(r)?"builtin":e.match(u)?"atom":e.match(m)?"variable":e.match(f)?"operator":(e.next(),null)}(e,t);if(n){var i=e.current();t.lastToken=i,"keyword"===n?(t.startDef=c.test(i),t.endDef=t.endDef||d.test(i)):t.startDef=!1}return n}}})),e.defineMIME("text/x-webidl","webidl")}(n(23326))},9812:(e,t,n)=>{!function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",(function(r,i){var o,a,s=r.indentUnit,l={},u=i.htmlMode?t:n;for(var c in u)l[c]=u[c];for(var c in i)l[c]=i[c];function d(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();return"<"==r?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(p("atom","]]>")):null:e.match("--")?n(p("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(h(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=p("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=f,"tag bracket"):"&"==r?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function f(e,t){var n,r,i=e.next();if(">"==i||"/"==i&&e.eat(">"))return t.tokenize=d,o=">"==i?"endTag":"selfcloseTag","tag bracket";if("="==i)return o="equals",null;if("<"==i){t.tokenize=d,t.state=b,t.tagName=t.tagStart=null;var a=t.tokenize(e,t);return a?a+" tag error":"tag error"}return/[\'\"]/.test(i)?(t.tokenize=(n=i,r=function(e,t){for(;!e.eol();)if(e.next()==n){t.tokenize=f;break}return"string"},r.isInAttribute=!0,r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function p(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=d;break}n.next()}return e}}function h(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=h(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=d;break}return n.tokenize=h(e-1),n.tokenize(t,n)}}return"meta"}}function m(e){return e&&e.toLowerCase()}function g(e,t,n){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function v(e){e.context&&(e.context=e.context.prev)}function y(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(m(n))||!l.contextGrabbers[m(n)].hasOwnProperty(m(t)))return;v(e)}}function b(e,t,n){return"openTag"==e?(n.tagStart=t.column(),w):"closeTag"==e?_:b}function w(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",E):l.allowMissingTagName&&"endTag"==e?(a="tag bracket",E(e,0,n)):(a="error",w)}function _(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(m(n.context.tagName))&&v(n),n.context&&n.context.tagName==r||!1===l.matchClosing?(a="tag",x):(a="tag error",k)}return l.allowMissingTagName&&"endTag"==e?(a="tag bracket",x(e,0,n)):(a="error",k)}function x(e,t,n){return"endTag"!=e?(a="error",x):(v(n),b)}function k(e,t,n){return a="error",x(e,0,n)}function E(e,t,n){if("word"==e)return a="attribute",S;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(m(r))?y(n,r):(y(n,r),n.context=new g(n,r,i==n.indented)),b}return a="error",E}function S(e,t,n){return"equals"==e?C:(l.allowMissing||(a="error"),E(e,0,n))}function C(e,t,n){return"string"==e?T:"word"==e&&l.allowUnquoted?(a="string",E):(a="error",E(e,0,n))}function T(e,t,n){return"string"==e?T:E(e,0,n)}return d.isInText=!0,{startState:function(e){var t={tokenize:d,state:b,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var n=t.tokenize(e,t);return(n||o)&&"comment"!=n&&(a=null,t.state=t.state(o||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(t,n,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=f&&t.tokenize!=d)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==C&&(e.state=E)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)t.push(n.tagName);return t.reverse()}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(23326))},58757:(e,t,n)=>{!function(e){"use strict";e.defineMode("xquery",(function(){var e=function(){function e(e){return{type:e,style:"keyword"}}for(var t=e("operator"),n={type:"atom",style:"atom"},r={type:"axis_specifier",style:"qualifier"},i={",":{type:"punctuation",style:null}},o=["after","all","allowing","ancestor","ancestor-or-self","any","array","as","ascending","at","attribute","base-uri","before","boundary-space","by","case","cast","castable","catch","child","collation","comment","construction","contains","content","context","copy","copy-namespaces","count","decimal-format","declare","default","delete","descendant","descendant-or-self","descending","diacritics","different","distance","document","document-node","element","else","empty","empty-sequence","encoding","end","entire","every","exactly","except","external","first","following","following-sibling","for","from","ftand","ftnot","ft-option","ftor","function","fuzzy","greatest","group","if","import","in","inherit","insensitive","insert","instance","intersect","into","invoke","is","item","language","last","lax","least","let","levels","lowercase","map","modify","module","most","namespace","next","no","node","nodes","no-inherit","no-preserve","not","occurs","of","only","option","order","ordered","ordering","paragraph","paragraphs","parent","phrase","preceding","preceding-sibling","preserve","previous","processing-instruction","relationship","rename","replace","return","revalidation","same","satisfies","schema","schema-attribute","schema-element","score","self","sensitive","sentence","sentences","sequence","skip","sliding","some","stable","start","stemming","stop","strict","strip","switch","text","then","thesaurus","times","to","transform","treat","try","tumbling","type","typeswitch","union","unordered","update","updating","uppercase","using","validate","value","variable","version","weight","when","where","wildcards","window","with","without","word","words","xquery"],a=0,s=o.length;a",">=","<","<=",".","|","?","and","or","div","idiv","mod","*","/","+","-"];for(a=0,s=u.length;a\"\'\/?]/);)_+=w;return t(d,m,function(e,t){return function(r,i){return r.eatSpace(),t&&r.eat(">")?(h(i),i.tokenize=n,"tag"):(r.eat("/")||p(i,{type:"tag",name:e,tokenize:n}),r.eat(">")?(i.tokenize=n,"tag"):(i.tokenize=a,"tag"))}}(_,b))}if("{"==g)return p(m,{type:"codeblock"}),null;if("}"==g)return h(m),null;if(c(m))return">"==g?"tag":"/"==g&&d.eat(">")?(h(m),"tag"):"variable";if(/\d/.test(g))return d.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/),"atom";if("("===g&&d.eat(":"))return p(m,{type:"comment"}),t(d,m,r);if(y||'"'!==g&&"'"!==g){if("$"===g)return t(d,m,o);if(":"===g&&d.eat("="))return"keyword";if("("===g)return p(m,{type:"paren"}),null;if(")"===g)return h(m),null;if("["===g)return p(m,{type:"bracket"}),null;if("]"===g)return h(m),null;var x=e.propertyIsEnumerable(g)&&e[g];if(y&&'"'===g)for(;'"'!==d.next(););if(y&&"'"===g)for(;"'"!==d.next(););x||d.eatWhile(/[\w\$_-]/);var k=d.eat(":");!d.eat(":")&&k&&d.eatWhile(/[\w\$_-]/),d.match(/^[ \t]*\(/,!1)&&(v=!0);var E=d.current();return x=e.propertyIsEnumerable(E)&&e[E],v&&!x&&(x={type:"function_call",style:"variable def"}),function(e){return f(e,"xmlconstructor")}(m)?(h(m),"variable"):("element"!=E&&"attribute"!=E&&"axis_specifier"!=x.type||p(m,{type:"xmlconstructor"}),x?x.style:"variable")}return t(d,m,i(g))}function r(e,t){for(var n,r=!1,i=!1,o=0;n=e.next();){if(")"==n&&r){if(!(o>0)){h(t);break}o--}else":"==n&&i&&o++;r=":"==n,i="("==n}return"comment"}function i(e,t){return function(r,o){var a;if(function(e){return f(e,"string")}(o)&&r.current()==e)return h(o),t&&(o.tokenize=t),"string";if(p(o,{type:"string",name:e,tokenize:i(e,t)}),r.match("{",!1)&&d(o))return o.tokenize=n,"string";for(;a=r.next();){if(a==e){h(o),t&&(o.tokenize=t);break}if(r.match("{",!1)&&d(o))return o.tokenize=n,"string"}return"string"}}function o(e,t){var r=/[\w\$_-]/;if(e.eat('"')){for(;'"'!==e.next(););e.eat(":")}else e.eatWhile(r),e.match(":=",!1)||e.eat(":");return e.eatWhile(r),t.tokenize=n,"variable"}function a(e,r){var o=e.next();return"/"==o&&e.eat(">")?(d(r)&&h(r),c(r)&&h(r),"tag"):">"==o?(d(r)&&h(r),"tag"):"="==o?null:'"'==o||"'"==o?t(e,r,i(o,a)):(d(r)||p(r,{type:"attribute",tokenize:a}),e.eat(/[a-zA-Z_:]/),e.eatWhile(/[-a-zA-Z0-9_:.]/),e.eatSpace(),(e.match(">",!1)||e.match("/",!1))&&(h(r),r.tokenize=n),"attribute")}function s(e,t){for(var r;r=e.next();)if("-"==r&&e.match("->",!0))return t.tokenize=n,"comment"}function l(e,t){for(var r;r=e.next();)if("]"==r&&e.match("]",!0))return t.tokenize=n,"comment"}function u(e,t){for(var r;r=e.next();)if("?"==r&&e.match(">",!0))return t.tokenize=n,"comment meta"}function c(e){return f(e,"tag")}function d(e){return f(e,"attribute")}function f(e,t){return e.stack.length&&e.stack[e.stack.length-1].type==t}function p(e,t){e.stack.push(t)}function h(e){e.stack.pop();var t=e.stack.length&&e.stack[e.stack.length-1].tokenize;e.tokenize=t||n}return{startState:function(){return{tokenize:n,cc:[],stack:[]}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"(:",blockCommentEnd:":)"}})),e.defineMIME("application/xquery","xquery")}(n(23326))},82644:(e,t,n)=>{!function(e){"use strict";e.defineMode("yacas",(function(t,n){var r=function(e){for(var t={},n="Assert BackQuote D Defun Deriv For ForEach FromFile FromString Function Integrate InverseTaylor Limit LocalSymbols Macro MacroRule MacroRulePattern NIntegrate Rule RulePattern Subst TD TExplicitSum TSum Taylor Taylor1 Taylor2 Taylor3 ToFile ToStdout ToString TraceRule Until While".split(" "),r=0;r|<|&|\||_|`|'|\^|\?|!|%|#)/,!0,!1)?"operator":"error"}function c(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if('"'===n&&!i){r=!0;break}i=!i&&"\\"===n}return r&&!i&&(t.tokenize=u),"string"}function d(e,t){for(var n,r;null!=(r=e.next());){if("*"===n&&"/"===r){t.tokenize=u;break}n=r}return"comment"}function f(e){var t=null;return e.scopes.length>0&&(t=e.scopes[e.scopes.length-1]),t}return{startState:function(){return{tokenize:u,scopes:[]}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},indent:function(n,r){if(n.tokenize!==u&&null!==n.tokenize)return e.Pass;var i=0;return"]"!==r&&"];"!==r&&"}"!==r&&"};"!==r&&");"!==r||(i=-1),(n.scopes.length+i)*t.indentUnit},electricChars:"{}[]();",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}})),e.defineMIME("text/x-yacas",{name:"yacas"})}(n(23326))},19515:(e,t,n)=>{var r;r=n(23326),n(35306),r.defineMode("yaml-frontmatter",(function(e,t){var n=r.getMode(e,"yaml"),i=r.getMode(e,t&&t.base||"gfm");function o(e){return 1==e.state?{mode:n,state:e.yaml}:{mode:i,state:e.inner}}return{startState:function(){return{state:0,yaml:null,inner:r.startState(i)}},copyState:function(e){return{state:e.state,yaml:e.yaml&&r.copyState(n,e.yaml),inner:r.copyState(i,e.inner)}},token:function(e,t){if(0==t.state)return e.match("---",!1)?(t.state=1,t.yaml=r.startState(n),n.token(e,t.yaml)):(t.state=2,i.token(e,t.inner));if(1==t.state){var o=e.sol()&&e.match(/(---|\.\.\.)/,!1),a=n.token(e,t.yaml);return o&&(t.state=2,t.yaml=null),a}return i.token(e,t.inner)},innerMode:o,indent:function(e,t,n){var i=o(e);return i.mode.indent?i.mode.indent(i.state,t,n):r.Pass},blankLine:function(e){var t=o(e);if(t.mode.blankLine)return t.mode.blankLine(t.state)}}}))},35306:(e,t,n)=>{!function(e){"use strict";e.defineMode("yaml",(function(){var e=new RegExp("\\b(("+["true","false","on","off","yes","no"].join(")|(")+"))$","i");return{token:function(t,n){var r=t.peek(),i=n.escaped;if(n.escaped=!1,"#"==r&&(0==t.pos||/\s/.test(t.string.charAt(t.pos-1))))return t.skipToEnd(),"comment";if(t.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(n.literal&&t.indentation()>n.keyCol)return t.skipToEnd(),"string";if(n.literal&&(n.literal=!1),t.sol()){if(n.keyCol=0,n.pair=!1,n.pairStart=!1,t.match("---"))return"def";if(t.match("..."))return"def";if(t.match(/\s*-\s+/))return"meta"}if(t.match(/^(\{|\}|\[|\])/))return"{"==r?n.inlinePairs++:"}"==r?n.inlinePairs--:"["==r?n.inlineList++:n.inlineList--,"meta";if(n.inlineList>0&&!i&&","==r)return t.next(),"meta";if(n.inlinePairs>0&&!i&&","==r)return n.keyCol=0,n.pair=!1,n.pairStart=!1,t.next(),"meta";if(n.pairStart){if(t.match(/^\s*(\||\>)\s*/))return n.literal=!0,"meta";if(t.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(0==n.inlinePairs&&t.match(/^\s*-?[0-9\.\,]+\s?$/))return"number";if(n.inlinePairs>0&&t.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(t.match(e))return"keyword"}return!n.pair&&t.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^\s,\[\]{}#&*!|>'"%@`])[^#:]*(?=:($|\s))/)?(n.pair=!0,n.keyCol=t.indentation(),"atom"):n.pair&&t.match(/^:\s*/)?(n.pairStart=!0,"meta"):(n.pairStart=!1,n.escaped="\\"==r,t.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}})),e.defineMIME("text/x-yaml","yaml"),e.defineMIME("text/yaml","yaml")}(n(23326))},76215:(e,t,n)=>{!function(e){"use strict";e.defineMode("z80",(function(e,t){var n,r,i=t.ez80;i?(n=/^(exx?|(ld|cp)([di]r?)?|[lp]ea|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|[de]i|halt|im|in([di]mr?|ir?|irx|2r?)|ot(dmr?|[id]rx|imr?)|out(0?|[di]r?|[di]2r?)|tst(io)?|slp)(\.([sl]?i)?[sl])?\b/i,r=/^(((call|j[pr]|rst|ret[in]?)(\.([sl]?i)?[sl])?)|(rs|st)mix)\b/i):(n=/^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i,r=/^(call|j[pr]|ret[in]?|b_?(call|jump))\b/i);var o=/^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i,a=/^(n?[zc]|p[oe]?|m)\b/i,s=/^([hl][xy]|i[xy][hl]|slia|sll)\b/i,l=/^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i;return{startState:function(){return{context:0}},token:function(e,t){if(e.column()||(t.context=0),e.eatSpace())return null;var u;if(e.eatWhile(/\w/)){if(i&&e.eat(".")&&e.eatWhile(/\w/),u=e.current(),!e.indentation())return e.match(l)?"number":null;if((1==t.context||4==t.context)&&o.test(u))return t.context=4,"var2";if(2==t.context&&a.test(u))return t.context=4,"var3";if(n.test(u))return t.context=1,"keyword";if(r.test(u))return t.context=2,"keyword";if(4==t.context&&l.test(u))return"number";if(s.test(u))return"error"}else{if(e.eat(";"))return e.skipToEnd(),"comment";if(e.eat('"')){for(;(u=e.next())&&'"'!=u;)"\\"==u&&e.next();return"string"}if(e.eat("'")){if(e.match(/\\?.'/))return"number"}else if(e.eat(".")||e.sol()&&e.eat("#")){if(t.context=5,e.eatWhile(/\w/))return"def"}else if(e.eat("$")){if(e.eatWhile(/[\da-f]/i))return"number"}else if(e.eat("%")){if(e.eatWhile(/[01]/))return"number"}else e.next()}return null}}})),e.defineMIME("text/x-z80","z80"),e.defineMIME("text/x-ez80",{name:"z80",ez80:!0})}(n(23326))},52106:(e,t,n)=>{var r={"./apl/apl.js":66317,"./asciiarmor/asciiarmor.js":64617,"./asn.1/asn.1.js":34474,"./asterisk/asterisk.js":94147,"./brainfuck/brainfuck.js":91352,"./clike/clike.js":80011,"./clojure/clojure.js":3463,"./cmake/cmake.js":26055,"./cobol/cobol.js":25619,"./coffeescript/coffeescript.js":86386,"./commonlisp/commonlisp.js":98824,"./crystal/crystal.js":67400,"./css/css.js":98627,"./cypher/cypher.js":28320,"./d/d.js":76184,"./dart/dart.js":31061,"./diff/diff.js":16357,"./django/django.js":51872,"./dockerfile/dockerfile.js":72694,"./dtd/dtd.js":39974,"./dylan/dylan.js":49024,"./ebnf/ebnf.js":5807,"./ecl/ecl.js":53002,"./eiffel/eiffel.js":57921,"./elm/elm.js":12589,"./erlang/erlang.js":93710,"./factor/factor.js":20601,"./fcl/fcl.js":5801,"./forth/forth.js":45729,"./fortran/fortran.js":81640,"./gas/gas.js":37471,"./gfm/gfm.js":48239,"./gherkin/gherkin.js":41028,"./go/go.js":68459,"./groovy/groovy.js":36275,"./haml/haml.js":88099,"./handlebars/handlebars.js":42336,"./haskell-literate/haskell-literate.js":93476,"./haskell/haskell.js":88216,"./haxe/haxe.js":45930,"./htmlembedded/htmlembedded.js":39119,"./htmlmixed/htmlmixed.js":38425,"./http/http.js":58527,"./idl/idl.js":91017,"./javascript/javascript.js":49055,"./jinja2/jinja2.js":81032,"./jsx/jsx.js":27968,"./julia/julia.js":38519,"./livescript/livescript.js":70688,"./lua/lua.js":41574,"./markdown/markdown.js":48033,"./mathematica/mathematica.js":87448,"./mbox/mbox.js":80704,"./mirc/mirc.js":13038,"./mllike/mllike.js":65994,"./modelica/modelica.js":51755,"./mscgen/mscgen.js":88907,"./mumps/mumps.js":81482,"./nginx/nginx.js":77549,"./nsis/nsis.js":13939,"./ntriples/ntriples.js":53921,"./octave/octave.js":55118,"./oz/oz.js":46768,"./pascal/pascal.js":44199,"./pegjs/pegjs.js":6575,"./perl/perl.js":82193,"./php/php.js":98800,"./pig/pig.js":20997,"./powershell/powershell.js":50261,"./properties/properties.js":16557,"./protobuf/protobuf.js":38487,"./pug/pug.js":12904,"./puppet/puppet.js":47912,"./python/python.js":56141,"./q/q.js":68106,"./r/r.js":32848,"./rpm/rpm.js":87660,"./rst/rst.js":93315,"./ruby/ruby.js":53019,"./rust/rust.js":56987,"./sas/sas.js":17547,"./sass/sass.js":67838,"./scheme/scheme.js":84169,"./shell/shell.js":25397,"./sieve/sieve.js":84712,"./slim/slim.js":1051,"./smalltalk/smalltalk.js":57434,"./smarty/smarty.js":69595,"./solr/solr.js":83172,"./soy/soy.js":34785,"./sparql/sparql.js":16683,"./spreadsheet/spreadsheet.js":77977,"./sql/sql.js":14149,"./stex/stex.js":38234,"./stylus/stylus.js":98660,"./swift/swift.js":93251,"./tcl/tcl.js":27220,"./textile/textile.js":17028,"./tiddlywiki/tiddlywiki.js":2362,"./tiki/tiki.js":19750,"./toml/toml.js":218,"./tornado/tornado.js":87815,"./troff/troff.js":40957,"./ttcn-cfg/ttcn-cfg.js":78175,"./ttcn/ttcn.js":95655,"./turtle/turtle.js":42944,"./twig/twig.js":21649,"./vb/vb.js":35053,"./vbscript/vbscript.js":29048,"./velocity/velocity.js":8989,"./verilog/verilog.js":75942,"./vhdl/vhdl.js":41838,"./vue/vue.js":58568,"./wast/wast.js":69693,"./webidl/webidl.js":29178,"./xml/xml.js":9812,"./xquery/xquery.js":58757,"./yacas/yacas.js":82644,"./yaml-frontmatter/yaml-frontmatter.js":19515,"./yaml/yaml.js":35306,"./z80/z80.js":76215};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=52106},38925:e=>{"use strict";e.exports=function(e){return String(e).replace(/\s+/g," ")}},97327:(e,t)=>{"use strict";t.parse=function(e){for(var t,r=[],o=String(e||i),a=o.indexOf(n),s=0,l=!1;!l;)-1===a&&(a=o.length,l=!0),!(t=o.slice(s,a).trim())&&l||r.push(t),s=a+1,a=o.indexOf(n,s);return r},t.stringify=function(e,t){var o=t||{},a=!1===o.padLeft?i:r,s=o.padRight?r:i;return e[e.length-1]===i&&(e=e.concat(i)),e.join(s+n+a).trim()};var n=",",r=" ",i=""},13856:(e,t,n)=>{"use strict";n.r(t),n.d(t,{TemplateTag:()=>l,codeBlock:()=>x,commaLists:()=>b,commaListsAnd:()=>w,commaListsOr:()=>_,html:()=>x,inlineArrayTransformer:()=>m,inlineLists:()=>A,oneLine:()=>E,oneLineCommaLists:()=>C,oneLineCommaListsAnd:()=>O,oneLineCommaListsOr:()=>T,oneLineInlineLists:()=>P,oneLineTrim:()=>S,removeNonPrintingValuesTransformer:()=>y,replaceResultTransformer:()=>d,replaceStringTransformer:()=>p,replaceSubstitutionTransformer:()=>f,safeHtml:()=>k,source:()=>x,splitStringTransformer:()=>g,stripIndent:()=>R,stripIndentTransformer:()=>c,stripIndents:()=>D,trimResultTransformer:()=>u});var r,i,o=function(){function e(e,t){for(var n=0;n1?n-1:0),i=1;i0&&Array.isArray(r[0])&&(r=r[0]),this.transformers=r.map((function(e){return"function"==typeof e?e():e})),this.tag}return o(e,[{key:"interimTag",value:function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i0&&void 0!==arguments[0]?arguments[0]:"";return{onEndResult:function(t){if(""===e)return t.trim();if("start"===(e=e.toLowerCase())||"left"===e)return t.replace(/^\s*/,"");if("end"===e||"right"===e)return t.replace(/\s*$/,"");throw new Error("Side not supported: "+e)}}},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"initial";return{onEndResult:function(t){if("initial"===e){var n=t.match(/^[^\S\n]*(?=\S)/gm),r=n&&Math.min.apply(Math,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:h;return{onSubstitution:function(t,n){if(Array.isArray(t)){var r=t.length,i=e.separator,o=e.conjunction,a=e.serial,s=n.match(/(\n?[^\S\n]+)$/);if(t=s?t.join(i+s[1]):t.join(i+" "),o&&r>1){var l=t.lastIndexOf(i);t=t.slice(0,l)+(a?i:"")+" "+o+t.slice(l+1)}}return t}}},g=function(e){return{onSubstitution:function(t,n){if(null==e||"string"!=typeof e)throw new Error("You need to specify a string character to split by.");return"string"==typeof t&&t.includes(e)&&(t=t.split(e)),t}}};var v=function(e){return null!=e&&!Number.isNaN(e)&&"boolean"!=typeof e};const y=function(){return{onSubstitution:function(e){return Array.isArray(e)?e.filter(v):v(e)?e:""}}},b=new l(m({separator:","}),c,u),w=new l(m({separator:",",conjunction:"and"}),c,u),_=new l(m({separator:",",conjunction:"or"}),c,u),x=new l(g("\n"),y,m,c,u),k=new l(g("\n"),m,c,u,f(/&/g,"&"),f(//g,">"),f(/"/g,"""),f(/'/g,"'"),f(/`/g,"`")),E=new l(d(/(?:\n(?:\s*))+/g," "),u),S=new l(d(/(?:\n\s*)/g,""),u),C=new l(m({separator:","}),d(/(?:\s+)/g," "),u),T=new l(m({separator:",",conjunction:"or"}),d(/(?:\s+)/g," "),u),O=new l(m({separator:",",conjunction:"and"}),d(/(?:\s+)/g," "),u),A=new l(m,c,u),P=new l(m,d(/(?:\s+)/g," "),u),R=new l(c,u),D=new l(c("all"),u)},64114:e=>{e.exports=function(e,n){for(var r=[],i=0;i{"use strict";var r=n(37320),i={};function o(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}var a="mixins";e.exports=function(e,t,n){var s=[],l={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},u={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},c={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n{"use strict";var r=n(2784),i=n(15592);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var o=(new r.Component).updater;e.exports=i(r.Component,r.isValidElement,o)},29764:(e,t,n)=>{(t=n(82609)(!1)).push([e.id,"/* BASICS */\n\n.CodeMirror {\n /* Set height, width, borders, and global font properties here */\n font-family: monospace;\n height: 300px;\n color: black;\n direction: ltr;\n}\n\n/* PADDING */\n\n.CodeMirror-lines {\n padding: 4px 0; /* Vertical padding around content */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n padding: 0 4px; /* Horizontal padding of content */\n}\n\n.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n background-color: white; /* The little square between H and V scrollbars */\n}\n\n/* GUTTER */\n\n.CodeMirror-gutters {\n border-right: 1px solid #ddd;\n background-color: #f7f7f7;\n white-space: nowrap;\n}\n.CodeMirror-linenumbers {}\n.CodeMirror-linenumber {\n padding: 0 3px 0 5px;\n min-width: 20px;\n text-align: right;\n color: #999;\n white-space: nowrap;\n}\n\n.CodeMirror-guttermarker { color: black; }\n.CodeMirror-guttermarker-subtle { color: #999; }\n\n/* CURSOR */\n\n.CodeMirror-cursor {\n border-left: 1px solid black;\n border-right: none;\n width: 0;\n}\n/* Shown when moving in bi-directional text */\n.CodeMirror div.CodeMirror-secondarycursor {\n border-left: 1px solid silver;\n}\n.cm-fat-cursor .CodeMirror-cursor {\n width: auto;\n border: 0 !important;\n background: #7e7;\n}\n.cm-fat-cursor div.CodeMirror-cursors {\n z-index: 1;\n}\n.cm-fat-cursor .CodeMirror-line::selection,\n.cm-fat-cursor .CodeMirror-line > span::selection, \n.cm-fat-cursor .CodeMirror-line > span > span::selection { background: transparent; }\n.cm-fat-cursor .CodeMirror-line::-moz-selection,\n.cm-fat-cursor .CodeMirror-line > span::-moz-selection,\n.cm-fat-cursor .CodeMirror-line > span > span::-moz-selection { background: transparent; }\n.cm-fat-cursor { caret-color: transparent; }\n@-moz-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@-webkit-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n\n/* Can style cursor different in overwrite (non-insert) mode */\n.CodeMirror-overwrite .CodeMirror-cursor {}\n\n.cm-tab { display: inline-block; text-decoration: inherit; }\n\n.CodeMirror-rulers {\n position: absolute;\n left: 0; right: 0; top: -50px; bottom: 0;\n overflow: hidden;\n}\n.CodeMirror-ruler {\n border-left: 1px solid #ccc;\n top: 0; bottom: 0;\n position: absolute;\n}\n\n/* DEFAULT THEME */\n\n.cm-s-default .cm-header {color: blue;}\n.cm-s-default .cm-quote {color: #090;}\n.cm-negative {color: #d44;}\n.cm-positive {color: #292;}\n.cm-header, .cm-strong {font-weight: bold;}\n.cm-em {font-style: italic;}\n.cm-link {text-decoration: underline;}\n.cm-strikethrough {text-decoration: line-through;}\n\n.cm-s-default .cm-keyword {color: #708;}\n.cm-s-default .cm-atom {color: #219;}\n.cm-s-default .cm-number {color: #164;}\n.cm-s-default .cm-def {color: #00f;}\n.cm-s-default .cm-variable,\n.cm-s-default .cm-punctuation,\n.cm-s-default .cm-property,\n.cm-s-default .cm-operator {}\n.cm-s-default .cm-variable-2 {color: #05a;}\n.cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}\n.cm-s-default .cm-comment {color: #a50;}\n.cm-s-default .cm-string {color: #a11;}\n.cm-s-default .cm-string-2 {color: #f50;}\n.cm-s-default .cm-meta {color: #555;}\n.cm-s-default .cm-qualifier {color: #555;}\n.cm-s-default .cm-builtin {color: #30a;}\n.cm-s-default .cm-bracket {color: #997;}\n.cm-s-default .cm-tag {color: #170;}\n.cm-s-default .cm-attribute {color: #00c;}\n.cm-s-default .cm-hr {color: #999;}\n.cm-s-default .cm-link {color: #00c;}\n\n.cm-s-default .cm-error {color: #f00;}\n.cm-invalidchar {color: #f00;}\n\n.CodeMirror-composing { border-bottom: 2px solid; }\n\n/* Default styles for common addons */\n\ndiv.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}\ndiv.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}\n.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }\n.CodeMirror-activeline-background {background: #e8f2ff;}\n\n/* STOP */\n\n/* The rest of this file contains styles related to the mechanics of\n the editor. You probably shouldn't touch them. */\n\n.CodeMirror {\n position: relative;\n overflow: hidden;\n background: white;\n}\n\n.CodeMirror-scroll {\n overflow: scroll !important; /* Things will break if this is overridden */\n /* 50px is the magic margin used to hide the element's real scrollbars */\n /* See overflow: hidden in .CodeMirror */\n margin-bottom: -50px; margin-right: -50px;\n padding-bottom: 50px;\n height: 100%;\n outline: none; /* Prevent dragging from highlighting the element */\n position: relative;\n z-index: 0;\n}\n.CodeMirror-sizer {\n position: relative;\n border-right: 50px solid transparent;\n}\n\n/* The fake, visible scrollbars. Used to force redraw during scrolling\n before actual scrolling happens, thus preventing shaking and\n flickering artifacts. */\n.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n position: absolute;\n z-index: 6;\n display: none;\n outline: none;\n}\n.CodeMirror-vscrollbar {\n right: 0; top: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n}\n.CodeMirror-hscrollbar {\n bottom: 0; left: 0;\n overflow-y: hidden;\n overflow-x: scroll;\n}\n.CodeMirror-scrollbar-filler {\n right: 0; bottom: 0;\n}\n.CodeMirror-gutter-filler {\n left: 0; bottom: 0;\n}\n\n.CodeMirror-gutters {\n position: absolute; left: 0; top: 0;\n min-height: 100%;\n z-index: 3;\n}\n.CodeMirror-gutter {\n white-space: normal;\n height: 100%;\n display: inline-block;\n vertical-align: top;\n margin-bottom: -50px;\n}\n.CodeMirror-gutter-wrapper {\n position: absolute;\n z-index: 4;\n background: none !important;\n border: none !important;\n}\n.CodeMirror-gutter-background {\n position: absolute;\n top: 0; bottom: 0;\n z-index: 4;\n}\n.CodeMirror-gutter-elt {\n position: absolute;\n cursor: default;\n z-index: 4;\n}\n.CodeMirror-gutter-wrapper ::selection { background-color: transparent }\n.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }\n\n.CodeMirror-lines {\n cursor: text;\n min-height: 1px; /* prevents collapsing before first draw */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n /* Reset some styles that the rest of the page might have set */\n -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;\n border-width: 0;\n background: transparent;\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n white-space: pre;\n word-wrap: normal;\n line-height: inherit;\n color: inherit;\n z-index: 2;\n position: relative;\n overflow: visible;\n -webkit-tap-highlight-color: transparent;\n -webkit-font-variant-ligatures: contextual;\n font-variant-ligatures: contextual;\n}\n.CodeMirror-wrap pre.CodeMirror-line,\n.CodeMirror-wrap pre.CodeMirror-line-like {\n word-wrap: break-word;\n white-space: pre-wrap;\n word-break: normal;\n}\n\n.CodeMirror-linebackground {\n position: absolute;\n left: 0; right: 0; top: 0; bottom: 0;\n z-index: 0;\n}\n\n.CodeMirror-linewidget {\n position: relative;\n z-index: 2;\n padding: 0.1px; /* Force widget margins to stay inside of the container */\n}\n\n.CodeMirror-widget {}\n\n.CodeMirror-rtl pre { direction: rtl; }\n\n.CodeMirror-code {\n outline: none;\n}\n\n/* Force content-box sizing for the elements where we expect it */\n.CodeMirror-scroll,\n.CodeMirror-sizer,\n.CodeMirror-gutter,\n.CodeMirror-gutters,\n.CodeMirror-linenumber {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n}\n\n.CodeMirror-measure {\n position: absolute;\n width: 100%;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n}\n\n.CodeMirror-cursor {\n position: absolute;\n pointer-events: none;\n}\n.CodeMirror-measure pre { position: static; }\n\ndiv.CodeMirror-cursors {\n visibility: hidden;\n position: relative;\n z-index: 3;\n}\ndiv.CodeMirror-dragcursors {\n visibility: visible;\n}\n\n.CodeMirror-focused div.CodeMirror-cursors {\n visibility: visible;\n}\n\n.CodeMirror-selected { background: #d9d9d9; }\n.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }\n.CodeMirror-crosshair { cursor: crosshair; }\n.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }\n.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }\n\n.cm-searching {\n background-color: #ffa;\n background-color: rgba(255, 255, 0, .4);\n}\n\n/* Used to force a border model for a node */\n.cm-force-border { padding-right: .1px; }\n\n@media print {\n /* Hide the cursor when printing */\n .CodeMirror div.CodeMirror-cursors {\n visibility: hidden;\n }\n}\n\n/* See issue #2901 */\n.cm-tab-wrap-hack:after { content: ''; }\n\n/* Help users use markselection to safely style text background */\nspan.CodeMirror-selectedtext { background: none; }\n",""]),e.exports=t},19467:(e,t,n)=>{(t=n(82609)(!1)).push([e.id,"/*\n Name: material\n Author: Mattia Astorino (http://github.com/equinusocio)\n Website: https://material-theme.site/\n*/\n\n.cm-s-material.CodeMirror {\n background-color: #263238;\n color: #EEFFFF;\n}\n\n.cm-s-material .CodeMirror-gutters {\n background: #263238;\n color: #546E7A;\n border: none;\n}\n\n.cm-s-material .CodeMirror-guttermarker,\n.cm-s-material .CodeMirror-guttermarker-subtle,\n.cm-s-material .CodeMirror-linenumber {\n color: #546E7A;\n}\n\n.cm-s-material .CodeMirror-cursor {\n border-left: 1px solid #FFCC00;\n}\n.cm-s-material.cm-fat-cursor .CodeMirror-cursor {\n background-color: #5d6d5c80 !important;\n}\n.cm-s-material .cm-animate-fat-cursor {\n background-color: #5d6d5c80 !important;\n}\n\n.cm-s-material div.CodeMirror-selected {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material.CodeMirror-focused div.CodeMirror-selected {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material .CodeMirror-line::selection,\n.cm-s-material .CodeMirror-line>span::selection,\n.cm-s-material .CodeMirror-line>span>span::selection {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material .CodeMirror-line::-moz-selection,\n.cm-s-material .CodeMirror-line>span::-moz-selection,\n.cm-s-material .CodeMirror-line>span>span::-moz-selection {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material .CodeMirror-activeline-background {\n background: rgba(0, 0, 0, 0.5);\n}\n\n.cm-s-material .cm-keyword {\n color: #C792EA;\n}\n\n.cm-s-material .cm-operator {\n color: #89DDFF;\n}\n\n.cm-s-material .cm-variable-2 {\n color: #EEFFFF;\n}\n\n.cm-s-material .cm-variable-3,\n.cm-s-material .cm-type {\n color: #f07178;\n}\n\n.cm-s-material .cm-builtin {\n color: #FFCB6B;\n}\n\n.cm-s-material .cm-atom {\n color: #F78C6C;\n}\n\n.cm-s-material .cm-number {\n color: #FF5370;\n}\n\n.cm-s-material .cm-def {\n color: #82AAFF;\n}\n\n.cm-s-material .cm-string {\n color: #C3E88D;\n}\n\n.cm-s-material .cm-string-2 {\n color: #f07178;\n}\n\n.cm-s-material .cm-comment {\n color: #546E7A;\n}\n\n.cm-s-material .cm-variable {\n color: #f07178;\n}\n\n.cm-s-material .cm-tag {\n color: #FF5370;\n}\n\n.cm-s-material .cm-meta {\n color: #FFCB6B;\n}\n\n.cm-s-material .cm-attribute {\n color: #C792EA;\n}\n\n.cm-s-material .cm-property {\n color: #C792EA;\n}\n\n.cm-s-material .cm-qualifier {\n color: #DECB6B;\n}\n\n.cm-s-material .cm-variable-3,\n.cm-s-material .cm-type {\n color: #DECB6B;\n}\n\n\n.cm-s-material .cm-error {\n color: rgba(255, 255, 255, 1.0);\n background-color: #FF5370;\n}\n\n.cm-s-material .CodeMirror-matchingbracket {\n text-decoration: underline;\n color: white !important;\n}\n",""]),e.exports=t},61077:(e,t,n)=>{(t=n(82609)(!1)).push([e.id,'.ol-box {\n box-sizing: border-box;\n border-radius: 2px;\n border: 1.5px solid rgb(179,197,219);\n background-color: rgba(255,255,255,0.4);\n}\n\n.ol-mouse-position {\n top: 8px;\n right: 8px;\n position: absolute;\n}\n\n.ol-scale-line {\n background: rgba(0,60,136,0.3);\n border-radius: 4px;\n bottom: 8px;\n left: 8px;\n padding: 2px;\n position: absolute;\n}\n.ol-scale-line-inner {\n border: 1px solid #eee;\n border-top: none;\n color: #eee;\n font-size: 10px;\n text-align: center;\n margin: 1px;\n will-change: contents, width;\n transition: all 0.25s;\n}\n.ol-scale-singlebar-even{\n background-color: #000000;\n}\n.ol-scale-singlebar-odd{\n background-color: #ffffff;\n}\n.ol-scale-bar {\n position: absolute;\n bottom: 8px;\n left: 8px;\n}\n.ol-scale-step-marker {\n width: 1px;\n height: 15px;\n background-color: #000000;\n float: right;\n z-index: 10;\n}\n.ol-scale-step-text {\n position: absolute;\n bottom: -5px;\n font-size: 12px;\n z-index: 11;\n color: #000000;\n text-shadow: -2px 0 #FFFFFF, 0 2px #FFFFFF, 2px 0 #FFFFFF, 0 -2px #FFFFFF;\n}\n.ol-scale-text {\n position: absolute;\n font-size: 14px;\n text-align: center;\n bottom: 25px;\n color: #000000;\n text-shadow: -2px 0 #FFFFFF, 0 2px #FFFFFF, 2px 0 #FFFFFF, 0 -2px #FFFFFF;\n}\n.ol-scale-singlebar {\n position: relative;\n height: 10px;\n z-index: 9;\n box-sizing: border-box;\n border: 1px solid black;\n}\n\n.ol-unsupported {\n display: none;\n}\n.ol-viewport, .ol-unselectable {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n}\n.ol-viewport canvas {\n all: unset;\n}\n.ol-selectable {\n -webkit-touch-callout: default;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n}\n.ol-grabbing {\n cursor: -webkit-grabbing;\n cursor: -moz-grabbing;\n cursor: grabbing;\n}\n.ol-grab {\n cursor: move;\n cursor: -webkit-grab;\n cursor: -moz-grab;\n cursor: grab;\n}\n.ol-control {\n position: absolute;\n background-color: rgba(255,255,255,0.4);\n border-radius: 4px;\n padding: 2px;\n}\n.ol-control:hover {\n background-color: rgba(255,255,255,0.6);\n}\n.ol-zoom {\n top: .5em;\n left: .5em;\n}\n.ol-rotate {\n top: .5em;\n right: .5em;\n transition: opacity .25s linear, visibility 0s linear;\n}\n.ol-rotate.ol-hidden {\n opacity: 0;\n visibility: hidden;\n transition: opacity .25s linear, visibility 0s linear .25s;\n}\n.ol-zoom-extent {\n top: 4.643em;\n left: .5em;\n}\n.ol-full-screen {\n right: .5em;\n top: .5em;\n}\n\n.ol-control button {\n display: block;\n margin: 1px;\n padding: 0;\n color: white;\n font-weight: bold;\n text-decoration: none;\n font-size: inherit;\n text-align: center;\n height: 1.375em;\n width: 1.375em;\n line-height: .4em;\n background-color: rgba(0,60,136,0.5);\n border: none;\n border-radius: 2px;\n}\n.ol-control button::-moz-focus-inner {\n border: none;\n padding: 0;\n}\n.ol-zoom-extent button {\n line-height: 1.4em;\n}\n.ol-compass {\n display: block;\n font-weight: normal;\n font-size: 1.2em;\n will-change: transform;\n}\n.ol-touch .ol-control button {\n font-size: 1.5em;\n}\n.ol-touch .ol-zoom-extent {\n top: 5.5em;\n}\n.ol-control button:hover,\n.ol-control button:focus {\n text-decoration: none;\n background-color: rgba(0,60,136,0.7);\n}\n.ol-zoom .ol-zoom-in {\n border-radius: 2px 2px 0 0;\n}\n.ol-zoom .ol-zoom-out {\n border-radius: 0 0 2px 2px;\n}\n\n\n.ol-attribution {\n text-align: right;\n bottom: .5em;\n right: .5em;\n max-width: calc(100% - 1.3em);\n display: flex;\n flex-flow: row-reverse;\n align-items: center;\n}\n.ol-attribution a {\n color: rgba(0,60,136,0.7);\n text-decoration: none;\n}\n.ol-attribution ul {\n margin: 0;\n padding: 1px .5em;\n color: #000;\n text-shadow: 0 0 2px #fff;\n font-size: 12px;\n}\n.ol-attribution li {\n display: inline;\n list-style: none;\n}\n.ol-attribution li:not(:last-child):after {\n content: " ";\n}\n.ol-attribution img {\n max-height: 2em;\n max-width: inherit;\n vertical-align: middle;\n}\n.ol-attribution button {\n flex-shrink: 0;\n}\n.ol-attribution.ol-collapsed ul {\n display: none;\n}\n.ol-attribution:not(.ol-collapsed) {\n background: rgba(255,255,255,0.8);\n}\n.ol-attribution.ol-uncollapsible {\n bottom: 0;\n right: 0;\n border-radius: 4px 0 0;\n}\n.ol-attribution.ol-uncollapsible img {\n margin-top: -.2em;\n max-height: 1.6em;\n}\n.ol-attribution.ol-uncollapsible button {\n display: none;\n}\n\n.ol-zoomslider {\n top: 4.5em;\n left: .5em;\n height: 200px;\n}\n.ol-zoomslider button {\n position: relative;\n height: 10px;\n}\n\n.ol-touch .ol-zoomslider {\n top: 5.5em;\n}\n\n.ol-overviewmap {\n left: 0.5em;\n bottom: 0.5em;\n}\n.ol-overviewmap.ol-uncollapsible {\n bottom: 0;\n left: 0;\n border-radius: 0 4px 0 0;\n}\n.ol-overviewmap .ol-overviewmap-map,\n.ol-overviewmap button {\n display: block;\n}\n.ol-overviewmap .ol-overviewmap-map {\n border: 1px solid #7b98bc;\n height: 150px;\n margin: 2px;\n width: 150px;\n}\n.ol-overviewmap:not(.ol-collapsed) button {\n bottom: 2px;\n left: 2px;\n position: absolute;\n}\n.ol-overviewmap.ol-collapsed .ol-overviewmap-map,\n.ol-overviewmap.ol-uncollapsible button {\n display: none;\n}\n.ol-overviewmap:not(.ol-collapsed) {\n background: rgba(255,255,255,0.8);\n}\n.ol-overviewmap-box {\n border: 2px dotted rgba(0,60,136,0.7);\n}\n\n.ol-overviewmap .ol-overviewmap-box:hover {\n cursor: move;\n}\n',""]),e.exports=t},82609:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r,i,o=e[1]||"",a=e[3];if(!a)return o;if(t&&"function"==typeof btoa){var s=(n=a,r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(i," */")),l=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[o].concat(l).concat([s]).join("\n")}return[o].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o=t?e:""+Array(t+1-r.length).join(n)+e},v={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(i,2,"0")},m:function e(t,n){if(t.date()1)return e(a[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},k=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new S(n)},E=v;E.l=x,E.i=_,E.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var S=function(){function m(e){this.$L=x(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return E},g.isValid=function(){return!(this.$d.toString()===f)},g.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return k(e)68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},c=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[i,function(e){this.afternoon=c(e,!1)}],a:[i,function(e){this.afternoon=c(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[i,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[i,function(e){var t=u("months"),n=(u("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,s("year")],Z:l,ZZ:l};function f(n){var r,i;r=n,i=o&&o.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,l=0;l-1)return new Date(("X"===t?1e3:1)*e);var r=f(t)(e),i=r.year,o=r.month,a=r.day,s=r.hours,l=r.minutes,u=r.seconds,c=r.milliseconds,d=r.zone,p=new Date,h=a||(i||o?1:p.getDate()),m=i||p.getFullYear(),g=0;i&&!o||(g=o>0?o-1:p.getMonth());var v=s||0,y=l||0,b=u||0,w=c||0;return d?new Date(Date.UTC(m,g,h,v,y,b,w+60*d.offset*1e3)):n?new Date(Date.UTC(m,g,h,v,y,b,w)):new Date(m,g,h,v,y,b,w)}catch(e){return new Date("")}}(t,s,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),c&&t!=this.format(s)&&(this.$d=new Date("")),o={}}else if(s instanceof Array)for(var p=s.length,h=1;h<=p;h+=1){a[1]=s[h-1];var m=n.apply(this,a);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}h===p&&(this.$d=new Date(""))}else i.call(this,e)}}}()},33147:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,r){var i=n.prototype,o=i.format;r.en.formats=e,i.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var o=i&&i.toUpperCase();return r||n[i]||e[i]||n[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,void 0===n?{}:n);return o.call(this,r)}}}()},10264:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,o){var a=i.prototype;o.utc=function(e){return new i({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var u=a.utcOffset;a.utcOffset=function(r,i){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?u.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],o=i[0],a=60*+i[1]+ +i[2];return 0===a?0:"+"===o?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,s=this;if(i)return s.$offset=a,s.$u=0===r,s;if(0!==r){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+l,e)).$offset=a,s.$x.$localOffset=l}else s=this.utc();return s};var c=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var d=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var f=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=o(e).local();return f.call(r,i,t,n)}}}()},39714:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,n,l){(l=l||{}).arrayMerge=l.arrayMerge||i,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=r;var u=Array.isArray(n);return u===Array.isArray(e)?u?l.arrayMerge(e,n,l):function(e,t,n){var i={};return n.isMergeableObject(e)&&o(e).forEach((function(t){i[t]=r(e[t],n)})),o(t).forEach((function(o){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(a(e,o)&&n.isMergeableObject(t[o])?i[o]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(o,n)(e[o],t[o],n):i[o]=r(t[o],n))})),i}(e,n,l):r(n,l)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return s(e,n,t)}),{})};var l=s;e.exports=l},75195:(e,t,n)=>{"use strict";var r=n(81181)(),i=n(67286),o=r&&i("%Object.defineProperty%",!0);if(o)try{o({},"a",{value:1})}catch(e){o=!1}var a=i("%SyntaxError%"),s=i("%TypeError%"),l=n(50326);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new s("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],d=!!l&&l(e,t);if(o)o(e,t,{configurable:null===u&&d?d.configurable:!u,enumerable:null===r&&d?d.enumerable:!r,value:n,writable:null===i&&d?d.writable:!i});else{if(!c&&(r||i||u))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},14926:(e,t,n)=>{"use strict";var r=n(33464),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=n(75195),l=n(81181)(),u=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(i=r)||"[object Function]"!==o.call(i)||!r())return;var i;l?s(e,t,n,!0):s(e,t,n)},c=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s{"use strict";e.exports=function(e,t){var n,o,a,s=t||4,l=[],u=0,c=0,d=-1;if("string"!=typeof e)throw new Error("detab expected string");for(;c{t.remove=function(e){return e.replace(/[^\u0000-\u007e]/g,(function(e){return r[e]||e}))};for(var n=[{base:" ",chars:" "},{base:"0",chars:"߀"},{base:"A",chars:"ⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",chars:"Ꜳ"},{base:"AE",chars:"ÆǼǢ"},{base:"AO",chars:"Ꜵ"},{base:"AU",chars:"Ꜷ"},{base:"AV",chars:"ꜸꜺ"},{base:"AY",chars:"Ꜽ"},{base:"B",chars:"ⒷBḂḄḆɃƁ"},{base:"C",chars:"ⒸCꜾḈĆCĈĊČÇƇȻ"},{base:"D",chars:"ⒹDḊĎḌḐḒḎĐƊƉᴅꝹ"},{base:"Dh",chars:"Ð"},{base:"DZ",chars:"DZDŽ"},{base:"Dz",chars:"DzDž"},{base:"E",chars:"ɛⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎᴇ"},{base:"F",chars:"ꝼⒻFḞƑꝻ"},{base:"G",chars:"ⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾɢ"},{base:"H",chars:"ⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",chars:"ⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",chars:"ⒿJĴɈȷ"},{base:"K",chars:"ⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",chars:"ⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",chars:"LJ"},{base:"Lj",chars:"Lj"},{base:"M",chars:"ⓂMḾṀṂⱮƜϻ"},{base:"N",chars:"ꞤȠⓃNǸŃÑṄŇṆŅṊṈƝꞐᴎ"},{base:"NJ",chars:"NJ"},{base:"Nj",chars:"Nj"},{base:"O",chars:"ⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OE",chars:"Œ"},{base:"OI",chars:"Ƣ"},{base:"OO",chars:"Ꝏ"},{base:"OU",chars:"Ȣ"},{base:"P",chars:"ⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",chars:"ⓆQꝖꝘɊ"},{base:"R",chars:"ⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",chars:"ⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",chars:"ⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"Th",chars:"Þ"},{base:"TZ",chars:"Ꜩ"},{base:"U",chars:"ⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",chars:"ⓋVṼṾƲꝞɅ"},{base:"VY",chars:"Ꝡ"},{base:"W",chars:"ⓌWẀẂŴẆẄẈⱲ"},{base:"X",chars:"ⓍXẊẌ"},{base:"Y",chars:"ⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",chars:"ⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",chars:"ⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐɑ"},{base:"aa",chars:"ꜳ"},{base:"ae",chars:"æǽǣ"},{base:"ao",chars:"ꜵ"},{base:"au",chars:"ꜷ"},{base:"av",chars:"ꜹꜻ"},{base:"ay",chars:"ꜽ"},{base:"b",chars:"ⓑbḃḅḇƀƃɓƂ"},{base:"c",chars:"cⓒćĉċčçḉƈȼꜿↄ"},{base:"d",chars:"ⓓdḋďḍḑḓḏđƌɖɗƋᏧԁꞪ"},{base:"dh",chars:"ð"},{base:"dz",chars:"dzdž"},{base:"e",chars:"ⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇǝ"},{base:"f",chars:"ⓕfḟƒ"},{base:"ff",chars:"ff"},{base:"fi",chars:"fi"},{base:"fl",chars:"fl"},{base:"ffi",chars:"ffi"},{base:"ffl",chars:"ffl"},{base:"g",chars:"ⓖgǵĝḡğġǧģǥɠꞡꝿᵹ"},{base:"h",chars:"ⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",chars:"ƕ"},{base:"i",chars:"ⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",chars:"ⓙjĵǰɉ"},{base:"k",chars:"ⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",chars:"ⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇɭ"},{base:"lj",chars:"lj"},{base:"m",chars:"ⓜmḿṁṃɱɯ"},{base:"n",chars:"ⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥлԉ"},{base:"nj",chars:"nj"},{base:"o",chars:"ⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿꝋꝍɵɔᴑ"},{base:"oe",chars:"œ"},{base:"oi",chars:"ƣ"},{base:"oo",chars:"ꝏ"},{base:"ou",chars:"ȣ"},{base:"p",chars:"ⓟpṕṗƥᵽꝑꝓꝕρ"},{base:"q",chars:"ⓠqɋꝗꝙ"},{base:"r",chars:"ⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",chars:"ⓢsśṥŝṡšṧṣṩșşȿꞩꞅẛʂ"},{base:"ss",chars:"ß"},{base:"t",chars:"ⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"th",chars:"þ"},{base:"tz",chars:"ꜩ"},{base:"u",chars:"ⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",chars:"ⓥvṽṿʋꝟʌ"},{base:"vy",chars:"ꝡ"},{base:"w",chars:"ⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",chars:"ⓧxẋẍ"},{base:"y",chars:"ⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",chars:"ⓩzźẑżžẓẕƶȥɀⱬꝣ"}],r={},i=0;i{"use strict";e.exports=function(e){return e=String(e||""),r.test(e)?"rtl":i.test(e)?"ltr":"neutral"};var t="֑-߿יִ-﷽ﹰ-ﻼ",n="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",r=new RegExp("^[^"+n+"]*["+t+"]"),i=new RegExp("^[^"+t+"]*["+n+"]")},35368:function(e){e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(e,r,i){return n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,n,r){var i=[null];i.push.apply(i,n);var o=new(Function.bind.apply(e,i));return r&&t(o,r.prototype),o},n.apply(null,arguments)}function r(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?n-1:0),i=1;i/gm),H=d(/\${[\w\W]*}/gm),V=d(/^data-[\-\w.\u00B7-\uFFFF]/),G=d(/^aria-[\-\w]+$/),K=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Z=d(/^(?:\w+script|data):/i),Y=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=d(/^html$/i);return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,i=function(e){return t(e)};if(i.version="2.4.7",i.removed=[],!n||!n.document||9!==n.document.nodeType)return i.isSupported=!1,i;var o=n.document,a=n.document,s=n.DocumentFragment,l=n.HTMLTemplateElement,u=n.Node,d=n.Element,f=n.NodeFilter,p=n.NamedNodeMap,h=void 0===p?n.NamedNodeMap||n.MozNamedAttrMap:p,m=n.HTMLFormElement,g=n.DOMParser,O=n.trustedTypes,Q=d.prototype,J=R(Q,"cloneNode"),ee=R(Q,"nextSibling"),te=R(Q,"childNodes"),ne=R(Q,"parentNode");if("function"==typeof l){var re=a.createElement("template");re.content&&re.content.ownerDocument&&(a=re.content.ownerDocument)}var ie=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,i="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(i)&&(r=n.currentScript.getAttribute(i));var o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(O,o),oe=ie?ie.createHTML(""):"",ae=a,se=ae.implementation,le=ae.createNodeIterator,ue=ae.createDocumentFragment,ce=ae.getElementsByTagName,de=o.importNode,fe={};try{fe=P(a).documentMode?a.documentMode:{}}catch(e){}var pe={};i.isSupported="function"==typeof ne&&se&&void 0!==se.createHTMLDocument&&9!==fe;var he,me,ge=W,ve=$,ye=H,be=V,we=G,_e=Z,xe=Y,ke=K,Ee=null,Se=A({},[].concat(r(D),r(M),r(I),r(j),r(F))),Ce=null,Te=A({},[].concat(r(B),r(z),r(U),r(q))),Oe=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ae=null,Pe=null,Re=!0,De=!0,Me=!1,Ie=!0,Le=!1,je=!1,Ne=!1,Fe=!1,Be=!1,ze=!1,Ue=!1,qe=!0,We=!1,$e=!0,He=!1,Ve={},Ge=null,Ke=A({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ze=null,Ye=A({},["audio","video","img","source","image","track"]),Xe=null,Qe=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Je="http://www.w3.org/1998/Math/MathML",et="http://www.w3.org/2000/svg",tt="http://www.w3.org/1999/xhtml",nt=tt,rt=!1,it=null,ot=A({},[Je,et,tt],_),at=["application/xhtml+xml","text/html"],st=null,lt=a.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},ct=function(t){st&&st===t||(t&&"object"===e(t)||(t={}),t=P(t),he=he=-1===at.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,me="application/xhtml+xml"===he?_:w,Ee="ALLOWED_TAGS"in t?A({},t.ALLOWED_TAGS,me):Se,Ce="ALLOWED_ATTR"in t?A({},t.ALLOWED_ATTR,me):Te,it="ALLOWED_NAMESPACES"in t?A({},t.ALLOWED_NAMESPACES,_):ot,Xe="ADD_URI_SAFE_ATTR"in t?A(P(Qe),t.ADD_URI_SAFE_ATTR,me):Qe,Ze="ADD_DATA_URI_TAGS"in t?A(P(Ye),t.ADD_DATA_URI_TAGS,me):Ye,Ge="FORBID_CONTENTS"in t?A({},t.FORBID_CONTENTS,me):Ke,Ae="FORBID_TAGS"in t?A({},t.FORBID_TAGS,me):{},Pe="FORBID_ATTR"in t?A({},t.FORBID_ATTR,me):{},Ve="USE_PROFILES"in t&&t.USE_PROFILES,Re=!1!==t.ALLOW_ARIA_ATTR,De=!1!==t.ALLOW_DATA_ATTR,Me=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Le=t.SAFE_FOR_TEMPLATES||!1,je=t.WHOLE_DOCUMENT||!1,Be=t.RETURN_DOM||!1,ze=t.RETURN_DOM_FRAGMENT||!1,Ue=t.RETURN_TRUSTED_TYPE||!1,Fe=t.FORCE_BODY||!1,qe=!1!==t.SANITIZE_DOM,We=t.SANITIZE_NAMED_PROPS||!1,$e=!1!==t.KEEP_CONTENT,He=t.IN_PLACE||!1,ke=t.ALLOWED_URI_REGEXP||ke,nt=t.NAMESPACE||tt,Oe=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ut(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Oe.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ut(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Oe.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Oe.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Le&&(De=!1),ze&&(Be=!0),Ve&&(Ee=A({},r(F)),Ce=[],!0===Ve.html&&(A(Ee,D),A(Ce,B)),!0===Ve.svg&&(A(Ee,M),A(Ce,z),A(Ce,q)),!0===Ve.svgFilters&&(A(Ee,I),A(Ce,z),A(Ce,q)),!0===Ve.mathMl&&(A(Ee,j),A(Ce,U),A(Ce,q))),t.ADD_TAGS&&(Ee===Se&&(Ee=P(Ee)),A(Ee,t.ADD_TAGS,me)),t.ADD_ATTR&&(Ce===Te&&(Ce=P(Ce)),A(Ce,t.ADD_ATTR,me)),t.ADD_URI_SAFE_ATTR&&A(Xe,t.ADD_URI_SAFE_ATTR,me),t.FORBID_CONTENTS&&(Ge===Ke&&(Ge=P(Ge)),A(Ge,t.FORBID_CONTENTS,me)),$e&&(Ee["#text"]=!0),je&&A(Ee,["html","head","body"]),Ee.table&&(A(Ee,["tbody"]),delete Ae.tbody),c&&c(t),st=t)},dt=A({},["mi","mo","mn","ms","mtext"]),ft=A({},["foreignobject","desc","title","annotation-xml"]),pt=A({},["title","style","font","a","script"]),ht=A({},M);A(ht,I),A(ht,L);var mt=A({},j);A(mt,N);var gt=function(e){b(i.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=oe}catch(t){e.remove()}}},vt=function(e,t){try{b(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){b(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ce[e])if(Be||ze)try{gt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},yt=function(e){var t,n;if(Fe)e=""+e;else{var r=x(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===he&&nt===tt&&(e=''+e+"");var i=ie?ie.createHTML(e):e;if(nt===tt)try{t=(new g).parseFromString(i,he)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(nt,"template",null);try{t.documentElement.innerHTML=rt?oe:i}catch(e){}}var o=t.body||t.documentElement;return e&&n&&o.insertBefore(a.createTextNode(n),o.childNodes[0]||null),nt===tt?ce.call(t,je?"html":"body")[0]:je?t.documentElement:o},bt=function(e){return le.call(e.ownerDocument||e,e,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT,null,!1)},wt=function(t){return"object"===e(u)?t instanceof u:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},_t=function(e,t,n){pe[e]&&v(pe[e],(function(e){e.call(i,t,n,st)}))},xt=function(e){var t,n;if(_t("beforeSanitizeElements",e,null),(n=e)instanceof m&&("string"!=typeof n.nodeName||"string"!=typeof n.textContent||"function"!=typeof n.removeChild||!(n.attributes instanceof h)||"function"!=typeof n.removeAttribute||"function"!=typeof n.setAttribute||"string"!=typeof n.namespaceURI||"function"!=typeof n.insertBefore||"function"!=typeof n.hasChildNodes))return gt(e),!0;if(C(/[\u0080-\uFFFF]/,e.nodeName))return gt(e),!0;var r=me(e.nodeName);if(_t("uponSanitizeElement",e,{tagName:r,allowedTags:Ee}),e.hasChildNodes()&&!wt(e.firstElementChild)&&(!wt(e.content)||!wt(e.content.firstElementChild))&&C(/<[/\w]/g,e.innerHTML)&&C(/<[/\w]/g,e.textContent))return gt(e),!0;if("select"===r&&C(/