/*! For license information please see vendor.js.LICENSE.txt */ (globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[]).push([[321],{134:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>i}),/^(114|262|591|61)$/.test(n.j))var r=n(271);function i(e){var t=(0,r.A)(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}},222:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>i}),/^(114|262|591|61)$/.test(n.j))var r=n(8979);function i(e){var t=(0,r.A)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},246:(e,t,n)=>{"use strict";function r(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 i(e){for(var t=1;tit});var u=l(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),c=l(/Edge/i),d=l(/firefox/i),f=l(/safari/i)&&!l(/chrome/i)&&!l(/android/i),p=l(/iP(ad|od|hone)/i),h=l(/chrome/i)&&l(/android/i),m={capture:!1,passive:!1};function v(e,t,n){e.addEventListener(t,n,!u&&m)}function g(e,t,n){e.removeEventListener(t,n,!u&&m)}function b(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function y(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function w(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&b(e,t):b(e,t))||r&&e===n)return e;if(e===n)break}while(e=y(e))}return null}var E,k=/\s+/g;function x(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(k," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(k," ")}}function T(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function S(e,t){var n="";if("string"==typeof e)n=e;else do{var r=T(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function O(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i=o:i<=o))return r;if(r===C())break;r=M(r,!1)}return!1}function N(e,t,n,r){for(var i=0,o=0,a=e.children;o2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,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}(n,K);U.pluginEvent.bind(je)(e,t,i({dragEl:q,parentEl:Q,ghostEl:Y,rootEl:G,nextEl:X,lastDownEl:Z,cloneEl:J,cloneHidden:ee,dragStarted:pe,putSortable:ae,activeSortable:je.active,originalEvent:r,oldIndex:te,oldDraggableIndex:re,newIndex:ne,newDraggableIndex:ie,hideGhostForTarget:Pe,unhideGhostForTarget:Me,cloneNowHidden:function(){ee=!0},cloneNowShown:function(){ee=!1},dispatchSortableEvent:function(e){H({sortable:t,name:e,originalEvent:r})}},o))};function H(e){!function(e){var t=e.sortable,n=e.rootEl,r=e.name,o=e.targetEl,a=e.cloneEl,s=e.toEl,l=e.fromEl,d=e.oldIndex,f=e.newIndex,p=e.oldDraggableIndex,h=e.newDraggableIndex,m=e.originalEvent,v=e.putSortable,g=e.extraEventProperties;if(t=t||n&&n[B]){var b,y=t.options,w="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||u||c?(b=document.createEvent("Event")).initEvent(r,!0,!0):b=new CustomEvent(r,{bubbles:!0,cancelable:!0}),b.to=s||n,b.from=l||n,b.item=o||n,b.clone=a,b.oldIndex=d,b.newIndex=f,b.oldDraggableIndex=p,b.newDraggableIndex=h,b.originalEvent=m,b.pullMode=v?v.lastPutMode:void 0;var E=i(i({},g),U.getEventProperties(r,t));for(var k in E)b[k]=E[k];n&&n.dispatchEvent(b),y[w]&&y[w].call(t,b)}}(i({putSortable:ae,cloneEl:J,targetEl:q,rootEl:G,oldIndex:te,oldDraggableIndex:re,newIndex:ne,newDraggableIndex:ie},e))}var q,Q,Y,G,X,Z,J,ee,te,ne,re,ie,oe,ae,se,le,ue,ce,de,fe,pe,he,me,ve,ge,be=!1,ye=!1,we=[],Ee=!1,ke=!1,xe=[],Te=!1,Se=[],Oe="undefined"!=typeof document,Ce=p,Ae=c||u?"cssFloat":"float",_e=Oe&&!h&&!p&&"draggable"in document.createElement("div"),Ne=function(){if(Oe){if(u)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),De=function(e,t){var n=T(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=N(e,0,t),o=N(e,1,t),a=i&&T(i),s=o&&T(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+A(i).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+A(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&"none"!==a.float){var c="left"===a.float?"left":"right";return!o||"both"!==s.clear&&s.clear!==c?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=r&&"none"===n[Ae]||o&&"none"===n[Ae]&&l+u>r)?"vertical":"horizontal"},Ie=function(e){function t(e,n){return function(r,i,o,a){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,i,o,a),n)(r,i,o,a);var l=(n?r:i).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},r=e.group;r&&"object"==o(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Pe=function(){!Ne&&Y&&T(Y,"display","none")},Me=function(){!Ne&&Y&&T(Y,"display","")};Oe&&!h&&document.addEventListener("click",function(e){if(ye)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ye=!1,!1},!0);var Fe=function(e){if(q){e=e.touches?e.touches[0]:e;var t=(i=e.clientX,o=e.clientY,we.some(function(e){var t=e[B].options.emptyInsertThreshold;if(t&&!D(e)){var n=A(e),r=i>=n.left-t&&i<=n.right+t,s=o>=n.top-t&&o<=n.bottom+t;return r&&s?a=e:void 0}}),a);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[B]._onDragOver(n)}}var i,o,a},Le=function(e){q&&q.parentNode[B]._isOutsideThisEl(e.target)};function je(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=s({},t),e[B]=this;var n,r,o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return De(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==je.supportPointer&&"PointerEvent"in window&&(!f||p),emptyInsertThreshold:5};for(var a in U.initializePlugins(this,e,o),o)!(a in t)&&(t[a]=o[a]);for(var l in Ie(t),this)"_"===l.charAt(0)&&"function"==typeof this[l]&&(this[l]=this[l].bind(this));this.nativeDraggable=!t.forceFallback&&_e,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?v(e,"pointerdown",this._onTapStart):(v(e,"mousedown",this._onTapStart),v(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(v(e,"dragover",this),v(e,"dragenter",this)),we.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),s(this,(r=[],{captureAnimationState:function(){r=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(e){if("none"!==T(e,"display")&&e!==je.ghost){r.push({target:e,rect:A(e)});var t=i({},r[r.length-1].rect);if(e.thisAnimationDuration){var n=S(e,!0);n&&(t.top-=n.f,t.left-=n.e)}e.fromRect=t}})},addAnimationState:function(e){r.push(e)},removeAnimationState:function(e){r.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(r,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof e&&e());var i=!1,o=0;r.forEach(function(e){var n=0,r=e.target,a=r.fromRect,s=A(r),l=r.prevFromRect,u=r.prevToRect,c=e.rect,d=S(r,!0);d&&(s.top-=d.f,s.left-=d.e),r.toRect=s,r.thisAnimationDuration&&F(l,s)&&!F(a,s)&&(c.top-s.top)/(c.left-s.left)===(a.top-s.top)/(a.left-s.left)&&(n=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(c,l,u,t.options)),F(s,a)||(r.prevFromRect=a,r.prevToRect=s,n||(n=t.options.animation),t.animate(r,c,s,n)),n&&(i=!0,o=Math.max(o,n),clearTimeout(r.animationResetTimer),r.animationResetTimer=setTimeout(function(){r.animationTime=0,r.prevFromRect=null,r.fromRect=null,r.prevToRect=null,r.thisAnimationDuration=null},n),r.thisAnimationDuration=n)}),clearTimeout(n),i?n=setTimeout(function(){"function"==typeof e&&e()},o):"function"==typeof e&&e(),r=[]},animate:function(e,t,n,r){if(r){T(e,"transition",""),T(e,"transform","");var i=S(this.el),o=i&&i.a,a=i&&i.d,s=(t.left-n.left)/(o||1),l=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!l,T(e,"transform","translate3d("+s+"px,"+l+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),T(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),T(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout(function(){T(e,"transition",""),T(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1},r)}}}))}function Re(e,t,n,r,i,o,a,s){var l,d,f=e[B],p=f.options.onMove;return!window.CustomEvent||u||c?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=i||t,l.relatedRect=o||A(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),p&&(d=p.call(f,l,a)),d}function $e(e){e.draggable=!1}function Be(){Te=!1}function Ve(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function ze(e){return setTimeout(e,0)}function Ue(e){return clearTimeout(e)}je.prototype={constructor:je,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(he=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,q):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,u=r.filter;if(function(e){Se.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&Se.push(r)}}(n),!q&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||r.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!f||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=w(s,r.draggable,n,!1))&&s.animated||Z===s)){if(te=I(s),re=I(s,r.draggable),"function"==typeof u){if(u.call(this,e,s,this))return H({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),W("filter",t,{evt:e}),void(i&&e.preventDefault())}else if(u&&(u=u.split(",").some(function(r){if(r=w(l,r.trim(),n,!1))return H({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),W("filter",t,{evt:e}),!0})))return void(i&&e.preventDefault());r.handle&&!w(l,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r,i=this,o=i.el,a=i.options,s=o.ownerDocument;if(n&&!q&&n.parentNode===o){var l=A(n);if(G=o,Q=(q=n).parentNode,X=q.nextSibling,Z=n,oe=a.group,je.dragged=q,se={target:q,clientX:(t||e).clientX,clientY:(t||e).clientY},de=se.clientX-l.left,fe=se.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,q.style["will-change"]="all",r=function(){W("delayEnded",i,{evt:e}),je.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!d&&i.nativeDraggable&&(q.draggable=!0),i._triggerDragStart(e,t),H({sortable:i,name:"choose",originalEvent:e}),x(q,a.chosenClass,!0))},a.ignore.split(",").forEach(function(e){O(q,e.trim(),$e)}),v(s,"dragover",Fe),v(s,"mousemove",Fe),v(s,"touchmove",Fe),a.supportPointer?(v(s,"pointerup",i._onDrop),!this.nativeDraggable&&v(s,"pointercancel",i._onDrop)):(v(s,"mouseup",i._onDrop),v(s,"touchend",i._onDrop),v(s,"touchcancel",i._onDrop)),d&&this.nativeDraggable&&(this.options.touchStartThreshold=4,q.draggable=!0),W("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(c||u))r();else{if(je.eventCanceled)return void this._onDrop();a.supportPointer?(v(s,"pointerup",i._disableDelayedDrag),v(s,"pointercancel",i._disableDelayedDrag)):(v(s,"mouseup",i._disableDelayedDrag),v(s,"touchend",i._disableDelayedDrag),v(s,"touchcancel",i._disableDelayedDrag)),v(s,"mousemove",i._delayedDragTouchMoveHandler),v(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&v(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){q&&$e(q),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;g(e,"mouseup",this._disableDelayedDrag),g(e,"touchend",this._disableDelayedDrag),g(e,"touchcancel",this._disableDelayedDrag),g(e,"pointerup",this._disableDelayedDrag),g(e,"pointercancel",this._disableDelayedDrag),g(e,"mousemove",this._delayedDragTouchMoveHandler),g(e,"touchmove",this._delayedDragTouchMoveHandler),g(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?v(document,"pointermove",this._onTouchMove):v(document,t?"touchmove":"mousemove",this._onTouchMove):(v(q,"dragend",this),v(G,"dragstart",this._onDragStart));try{document.selection?ze(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(be=!1,G&&q){W("dragStarted",this,{evt:t}),this.nativeDraggable&&v(document,"dragover",Le);var n=this.options;!e&&x(q,n.dragClass,!1),x(q,n.ghostClass,!0),je.active=this,e&&this._appendGhost(),H({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(le){this._lastX=le.clientX,this._lastY=le.clientY,Pe();for(var e=document.elementFromPoint(le.clientX,le.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(le.clientX,le.clientY))!==t;)t=e;if(q.parentNode[B]._isOutsideThisEl(e),t)do{if(t[B]&&t[B]._onDragOver({clientX:le.clientX,clientY:le.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=y(t));Me()}},_onTouchMove:function(e){if(se){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=Y&&S(Y,!0),a=Y&&o&&o.a,s=Y&&o&&o.d,l=Ce&&ge&&P(ge),u=(i.clientX-se.clientX+r.x)/(a||1)+(l?l[0]-xe[0]:0)/(a||1),c=(i.clientY-se.clientY+r.y)/(s||1)+(l?l[1]-xe[1]:0)/(s||1);if(!je.active&&!be){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))i.right+10||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>i.bottom+10||e.clientX>r.right&&e.clientY>r.top}(e,o,this)&&!v.animated){if(v===q)return U(!1);if(v&&a===e.target&&(s=v),s&&(n=A(s)),!1!==Re(G,a,q,t,s,n,e,!!s))return z(),v&&v.nextSibling?a.insertBefore(q,v.nextSibling):a.appendChild(q),Q=a,K(),U(!0)}else if(v&&function(e,t,n){var r=A(N(n.el,0,n.options,!0)),i=$(n.el,n.options,Y);return t?e.clientXc+u*o/2:ld-ve)return-me}else if(l>c+u*(1-i)/2&&ld-u*o/2)?l>c+u/2?1:-1:0}(e,s,n,o,S?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,ke,he===s),0!==b){var M=I(q);do{M-=b,E=Q.children[M]}while(E&&("none"===T(E,"display")||E===Y))}if(0===b||E===s)return U(!1);he=s,me=b;var F=s.nextElementSibling,L=!1,R=Re(G,a,q,t,s,n,e,L=1===b);if(!1!==R)return 1!==R&&-1!==R||(L=1===R),Te=!0,setTimeout(Be,30),z(),L&&!F?a.appendChild(q):s.parentNode.insertBefore(q,L?F:s),C&&j(C,0,P-C.scrollTop),Q=q.parentNode,void 0===y||ke||(ve=Math.abs(y-A(s)[O])),K(),U(!0)}if(a.contains(q))return U(!1)}return!1}function V(l,u){W(l,h,i({evt:e,isOwner:d,axis:o?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:f,fromSortable:p,target:s,completed:U,onMove:function(n,r){return Re(G,a,q,t,n,A(n),e,r)},changed:K},u))}function z(){V("dragOverAnimationCapture"),h.captureAnimationState(),h!==p&&p.captureAnimationState()}function U(t){return V("dragOverCompleted",{insertion:t}),t&&(d?c._hideClone():c._showClone(h),h!==p&&(x(q,ae?ae.options.ghostClass:c.options.ghostClass,!1),x(q,l.ghostClass,!0)),ae!==h&&h!==je.active?ae=h:h===je.active&&ae&&(ae=null),p===h&&(h._ignoreWhileAnimating=s),h.animateAll(function(){V("dragOverAnimationComplete"),h._ignoreWhileAnimating=null}),h!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(s===q&&!q.animated||s===a&&!s.animated)&&(he=null),l.dragoverBubble||e.rootEl||s===document||(q.parentNode[B]._isOutsideThisEl(e.target),!t&&Fe(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function K(){ne=I(q),ie=I(q,l.draggable),H({sortable:h,name:"change",toEl:a,newIndex:ne,newDraggableIndex:ie,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){g(document,"mousemove",this._onTouchMove),g(document,"touchmove",this._onTouchMove),g(document,"pointermove",this._onTouchMove),g(document,"dragover",Fe),g(document,"mousemove",Fe),g(document,"touchmove",Fe)},_offUpEvents:function(){var e=this.el.ownerDocument;g(e,"mouseup",this._onDrop),g(e,"touchend",this._onDrop),g(e,"pointerup",this._onDrop),g(e,"pointercancel",this._onDrop),g(e,"touchcancel",this._onDrop),g(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ne=I(q),ie=I(q,n.draggable),W("drop",this,{evt:e}),Q=q&&q.parentNode,ne=I(q),ie=I(q,n.draggable),je.eventCanceled||(be=!1,ke=!1,Ee=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ue(this.cloneId),Ue(this._dragStartId),this.nativeDraggable&&(g(document,"drop",this),g(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),f&&T(document.body,"user-select",""),T(q,"transform",""),e&&(pe&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),Y&&Y.parentNode&&Y.parentNode.removeChild(Y),(G===Q||ae&&"clone"!==ae.lastPutMode)&&J&&J.parentNode&&J.parentNode.removeChild(J),q&&(this.nativeDraggable&&g(q,"dragend",this),$e(q),q.style["will-change"]="",pe&&!be&&x(q,ae?ae.options.ghostClass:this.options.ghostClass,!1),x(q,this.options.chosenClass,!1),H({sortable:this,name:"unchoose",toEl:Q,newIndex:null,newDraggableIndex:null,originalEvent:e}),G!==Q?(ne>=0&&(H({rootEl:Q,name:"add",toEl:Q,fromEl:G,originalEvent:e}),H({sortable:this,name:"remove",toEl:Q,originalEvent:e}),H({rootEl:Q,name:"sort",toEl:Q,fromEl:G,originalEvent:e}),H({sortable:this,name:"sort",toEl:Q,originalEvent:e})),ae&&ae.save()):ne!==te&&ne>=0&&(H({sortable:this,name:"update",toEl:Q,originalEvent:e}),H({sortable:this,name:"sort",toEl:Q,originalEvent:e})),je.active&&(null!=ne&&-1!==ne||(ne=te,ie=re),H({sortable:this,name:"end",toEl:Q,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){W("nulling",this),G=q=Q=Y=X=J=Z=ee=se=le=pe=ne=ie=te=re=he=me=ae=oe=je.dragged=je.ghost=je.clone=je.active=null,Se.forEach(function(e){e.checked=!0}),Se.length=ue=ce=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":q&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,i=n.length,o=this.options;r{"use strict";if(n.d(t,{A:()=>i}),/^(114|262|591|61)$/.test(n.j))var r=n(8979);function i(e){return(0,r.A)(e).getComputedStyle(e)}},387:(e,t,n)=>{"use strict";n(2427),n(1458),n(3769)},554:(e,t,n)=>{"use strict";t.__esModule=!0,t.nameShape=void 0,t.transitionTimeout=function(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}},i(n(2427));var r=i(n(5556));function i(e){return e&&e.__esModule?e:{default:e}}t.nameShape=r.default.oneOfType([r.default.string,r.default.shape({enter:r.default.string,leave:r.default.string,active:r.default.string}),r.default.shape({enter:r.default.string,enterActive:r.default.string,leave:r.default.string,leaveActive:r.default.string,appear:r.default.string,appearActive:r.default.string})])},571:(e,t,n)=>{"use strict";function r(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}n.d(t,{A:()=>r})},598:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},788:e=>{"use strict";function t(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,n){e.classList?e.classList.remove(n):"string"==typeof e.className?e.className=t(e.className,n):e.setAttribute("class",t(e.className&&e.className.baseVal||"",n))}},793:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>a}),/^(114|262|591|61)$/.test(n.j))var r=n(6354);if(/^(114|262|591|61)$/.test(n.j))var i=n(9760);if(/^(114|262|591|61)$/.test(n.j))var o=n(222);function a(e){return(0,r.A)((0,i.A)(e)).left+(0,o.A)(e).scrollLeft}},844:(e,t,n)=>{"use strict";function r(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}n.d(t,{A:()=>r})},862:(e,t,n)=>{var r=n(1663);n(4160).CSSTransitionGroup=r,e.exports=r},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},1002:(e,t,n)=>{"use strict";function r(e,t){Object.entries(t).forEach(([t,n])=>{e.setAttribute(t,`${n}`)})}n.d(t,{$:()=>r})},1003:e=>{"use strict";function t(e,r,i){return t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,r){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return r&&n(o,r.prototype),o},t.apply(null,arguments)}function n(e,t){return n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(e,t)}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";function r(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}n.d(t,{A:()=>r})},1206:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>o}),/^(114|262|591|61)$/.test(n.j))var r=n(4278);function i(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||i(e)}),r}function o(e){var t=i(e);return r.GM.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}},1238:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2427);const i=/^(114|125|262|445|591|61)$/.test(n.j)?({children:e,className:t,name:n,title:i,...o})=>r.createElement(r.Fragment,null,r.createElement("svg",{...o,className:["icon",`icon-${n}`,t||""].filter(Boolean).join(" "),"aria-hidden":"true"},e||r.createElement("use",{href:`#icon-${n}`})),i&&r.createElement("span",{className:"w-sr-only"},i)):null},1245:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});const r=(0,n(8667).s)((e,{preventScroll:t=!1}={})=>{if(!e.hasAttribute("tabindex")){const t=()=>{e.removeAttribute("tabindex"),e.removeEventListener("blur",t),e.removeEventListener("focusout",t)};e.setAttribute("tabindex","-1"),e.addEventListener("blur",t),e.addEventListener("focusout",t)}t||e.scrollIntoView({behavior:"smooth",block:"center"}),e.focus({preventScroll:t})},50)},1319:(e,t,n)=>{"use strict";n.d(t,{$:()=>o});var r=n(8609),i=n.n(r);const o={id:"wagtailPreview",run(e,t,n,r){const o=document.getElementById("w-preview-iframe");if(o)i().utils.sendCommandToFrame(o,{command:"run-wagtailPreview",parameter:e,action:t,options:n},e=>{r(e)});else{const i=this._registry[e];i?.[t].call(i,n,r)}},commands:[{id:"run-wagtailPreview",callback:(e,t)=>i().plugins.wagtailPreview.run(e.parameter,e.action,e.options,t)}]}},1458:(e,t,n)=>{"use strict";n.d(t,{t:()=>o});var r=n(2427),i=n.n(r),o=/^(262|61)$/.test(n.j)?i().createContext(null):null},1504:(e,t,n)=>{"use strict";if(n.d(t,{Ay:()=>y}),/^(262|61)$/.test(n.j))var r=n(7381);var i=n(2427),o=n.n(i),a=n(6931);function s(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}var l="undefined"!=typeof window&&"undefined"!=typeof document;function u(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function c(){return l&&document.createElement("div")}function d(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!d(e[n],t[n]))return!1}return!0}return!1}function f(e){var t=[];return e.forEach(function(e){t.find(function(t){return d(e,t)})||t.push(e)}),t}var p=/^(262|61)$/.test(n.j)?l?i.useLayoutEffect:i.useEffect:null;function h(e,t,n){n.split(/\s+/).forEach(function(n){n&&e.classList[t](n)})}var m={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||h(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&h(t,"remove",e.props.className)},onAfterUpdate:r}}};function v(e){return function(t){var n,r,l=t.children,d=t.content,h=t.visible,v=t.singleton,g=t.render,b=t.reference,y=t.disabled,w=void 0!==y&&y,E=t.ignoreAttributes,k=void 0===E||E,x=(t.__source,t.__self,s(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),T=void 0!==h,S=void 0!==v,O=(0,i.useState)(!1),C=O[0],A=O[1],_=(0,i.useState)({}),N=_[0],D=_[1],I=(0,i.useState)(),P=I[0],M=I[1],F=(n=function(){return{container:c(),renders:1}},(r=(0,i.useRef)()).current||(r.current="function"==typeof n?n():n),r.current),L=Object.assign({ignoreAttributes:k},x,{content:F.container});T&&(L.trigger="manual",L.hideOnClick=!1),S&&(w=!0);var j=L,R=L.plugins||[];g&&(j=Object.assign({},L,{plugins:S&&null!=v.data?[].concat(R,[{fn:function(){return{onTrigger:function(e,t){var n=v.data.children.find(function(e){return e.instance.reference===t.currentTarget});e.state.$$activeSingletonInstance=n.instance,M(n.content)}}}}]):R,render:function(){return{popper:F.container}}}));var $=[b].concat(l?[l.type]:[]);return p(function(){var t=b;b&&b.hasOwnProperty("current")&&(t=b.current);var n=e(t||F.ref||c(),Object.assign({},j,{plugins:[m].concat(L.plugins||[])}));return F.instance=n,w&&n.disable(),h&&n.show(),S&&v.hook({instance:n,content:d,props:j,setSingletonContent:M}),A(!0),function(){n.destroy(),null==v||v.cleanup(n)}},$),p(function(){var e,t,n,r,i;if(1!==F.renders){var o=F.instance;o.setProps((t=o.props,n=j,Object.assign({},n,{popperOptions:Object.assign({},t.popperOptions,n.popperOptions,{modifiers:f([].concat((null==(r=t.popperOptions)?void 0:r.modifiers)||[],(null==(i=n.popperOptions)?void 0:i.modifiers)||[]))})}))),null==(e=o.popperInstance)||e.forceUpdate(),w?o.disable():o.enable(),T&&(h?o.show():o.hide()),S&&v.hook({instance:o,content:d,props:j,setSingletonContent:M})}else F.renders++}),p(function(){var e;if(g){var t=F.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter(function(e){return"$$tippyReact"!==e.name}),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;N.placement===n.placement&&N.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&N.escaped===(null==r?void 0:r.hasPopperEscaped)||D({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}},[N.placement,N.referenceHidden,N.escaped].concat($)),o().createElement(o().Fragment,null,l?(0,i.cloneElement)(l,{ref:function(e){F.ref=e,u(l.ref,e)}}):null,C&&(0,a.createPortal)(g?g(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(N),P,F.instance):d,F.container))}}var g,b=/^(262|61)$/.test(n.j)?(g=v(r.Ay),(0,i.forwardRef)(function(e,t){var n=e.children,r=s(e,["children"]);return o().createElement(g,Object.assign({},undefined,r),n?(0,i.cloneElement)(n,{ref:function(e){u(t,e),u(n.ref,e)}}):null)})):null;const y=/^(262|61)$/.test(n.j)?b:null},1663:(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t{var r=n(4708);n(4160).FocusTrapReact=r,e.exports=r},1815:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>s}),/^(114|262|591|61)$/.test(n.j))var r=n(2632);if(/^(114|262|591|61)$/.test(n.j))var i=n(8101);if(/^(114|262|591|61)$/.test(n.j))var o=n(9703);if(/^(114|262|591|61)$/.test(n.j))var a=n(4278);function s(e){var t,n=e.reference,s=e.element,l=e.placement,u=l?(0,r.A)(l):null,c=l?(0,i.A)(l):null,d=n.x+n.width/2-s.width/2,f=n.y+n.height/2-s.height/2;switch(u){case a.Mn:t={x:d,y:n.y-s.height};break;case a.sQ:t={x:d,y:n.y+n.height};break;case a.pG:t={x:n.x+n.width,y:f};break;case a.kb:t={x:n.x-s.width,y:f};break;default:t={x:n.x,y:n.y}}var p=u?(0,o.A)(u):null;if(null!=p){var h="y"===p?"height":"width";switch(c){case a.ni:t[p]=t[p]-(n[h]/2-s[h]/2);break;case a._N:t[p]=t[p]+(n[h]/2-s[h]/2)}}return t}},1833:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=n,e.exports=t.default},2063:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>i}),/^(114|262|591|61)$/.test(n.j))var r=n(7604);function i(e){return["table","td","th"].indexOf((0,r.A)(e))>=0}},2083:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>a}),/^(114|262|591|61)$/.test(n.j))var r=n(7604);if(/^(114|262|591|61)$/.test(n.j))var i=n(9760);if(/^(114|262|591|61)$/.test(n.j))var o=n(5581);function a(e){return"html"===(0,r.A)(e)?e:e.assignedSlot||e.parentNode||((0,o.Ng)(e)?e.host:null)||(0,i.A)(e)}},2178:(e,t,n)=>{"use strict";n.d(t,{$R:()=>s,ZG:()=>d,ip:()=>u,lc:()=>c});var r=n(8609),i=n.n(r);const o=e=>Array.isArray(e)?e.join(" "):e,a=(e,t)=>{if(!e||!t)return 0;const n=document.querySelector(o(e.target[0])),r=document.querySelector(o(t.target[0]));return n&&r?n.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_PRECEDING?1:-1:0},s=e=>{const t=e?.querySelector("#accessibility-axe-configuration");if(!t||!t.textContent)return null;try{return JSON.parse(t.textContent)}catch(e){console.error("Error loading Axe config"),console.error(e)}return null},l={"check-image-alt-text":(e,t)=>{const n=new RegExp(t.pattern,"i"),r=e.getAttribute("alt")||"";return!n.test(r)}},u=e=>{const t=e?.checks?.map(e=>l[e.id]?{...e,evaluate:l[e.id]}:e);return{...e,checks:t}},c=async e=>{const t=await i().run(e.context,e.options),n=t.violations.reduce((e,t)=>e+t.nodes.length,0);return n>0&&console.error("axe.run results",t.violations),{results:t,a11yErrorsNumber:n}},d=(e,t,n,r,i)=>{if(e.innerHTML="",t.violations.length){const s=t.violations.sort((e,t)=>{const n=e.nodes.sort(a)[0],r=t.nodes.sort(a)[0];return a(n,r)});let l=0;s.forEach(t=>{t.nodes.forEach(a=>{e.appendChild(r.content.cloneNode(!0));const s=e.querySelectorAll("[data-a11y-result-row]")[l];l+=1;const u=s.querySelector("[data-a11y-result-name]"),c=s.querySelector("[data-a11y-result-help]");u.id=`w-a11y-result__name-${l}`;const d=n.messages[t.id],f=("string"==typeof d?d:d?.error_name)||t.help;u.textContent=f,c.textContent=d?.help_text||t.description;const p="#w-preview-iframe"===a.target[0],h=o(a.target.filter(e=>"#w-preview-iframe"!==e)),m=s.querySelector("[data-a11y-result-selector]");m.setAttribute("aria-describedby",u.id),m.addEventListener("click",i.bind(null,h)),p&&(m.querySelector("[data-a11y-result-selector-text]").textContent=h.replace(/\[data-block-key="\w{5}"\]/,""))})})}}},2223:(e,t,n)=>{"use strict";n.d(t,{I:()=>o});var r=n(2891),i=n(6032);class o extends r.Controller{static values={keep:{default:!1,type:Boolean},reset:{default:!1,type:Boolean},target:{default:"",type:String}};connect(){this.append()}append(){const e=this.target;let t=!1;const n=()=>{t||(this.resetValue&&(e.innerHTML=""),e.append(...this.templateFragment.childNodes),this.dispatch("appended",{cancelable:!1,detail:{target:e}}),t=!0,this.keepValue||this.element.remove())};this.dispatch("append",{cancelable:!0,detail:{complete:n,target:e}}).defaultPrevented||n()}get target(){let e;const t=this.element.getRootNode();if(e=this.targetValue?t.querySelector(this.targetValue)||document.querySelector(this.targetValue):t instanceof Document?t.body:t.firstElementChild,!(e instanceof Element))throw new Error(`No valid target container found at ${this.targetValue?`'${this.targetValue}'`:"the root node"}.`);return e}get templateFragment(){const e=this.element.content.cloneNode(!0);return(0,i.v)(e),e}}},2277:(e,t,n)=>{"use strict";function r(e){return"message"===e.type&&e?.data?.wagtail?e.data.wagtail:null}n.d(t,{j:()=>r})},2312:(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t{"use strict";n.d(t,{Bp:()=>Se});var r=n(8587),i=n(8168),o=n(5556),a=n.n(o),s=n(2427),l=n.n(s);n(4363);const u=e=>"object"==typeof e&&null!=e&&1===e.nodeType,c=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,d=(e,t)=>{if(e.clientHeight{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightot||o>e&&a=t&&s>=n?o-e-r:a>t&&sn?a-t+i:0,p=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t};var h=function(){return h=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1?n-1:0),i=1;ia)&&(e=t>0?-1:a+1);var s=e+t;s<0?s=i?a:0:s>a&&(s=i?0:a);var l=T(s,t<0,n,r,i);return-1===l?e>=o?-1:e:l}function T(e,t,n,r,i){void 0===i&&(i=!1);var o=n.length;if(t){for(var a=e;a>=0;a--)if(!r(n[a],a))return a}else for(var s=e;s{var n,r,i,o;if("undefined"==typeof document)return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:h}=t,m="function"==typeof c?c:e=>e!==c;if(!u(e))throw new TypeError("Invalid target");const v=document.scrollingElement||document.documentElement,g=[];let b=e;for(;u(b)&&m(b);){if(b=p(b),b===v){g.push(b);break}null!=b&&b===document.body&&d(b)&&!d(document.documentElement)||null!=b&&d(b,h)&&g.push(b)}const y=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,w=null!=(o=null==(i=window.visualViewport)?void 0:i.height)?o:innerHeight,{scrollX:E,scrollY:k}=window,{height:x,width:T,top:S,right:O,bottom:C,left:A}=e.getBoundingClientRect(),{top:_,right:N,bottom:D,left:I}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let P="start"===s||"nearest"===s?S-_:"end"===s?C+D:S+x/2-_+D,M="center"===l?A+T/2-I+N:"end"===l?O+N:A-I;const F=[];for(let e=0;e=0&&A>=0&&C<=w&&O<=y&&(t===v&&!d(t)||S>=i&&C<=u&&A>=c&&O<=o))return F;const p=getComputedStyle(t),h=parseInt(p.borderLeftWidth,10),m=parseInt(p.borderTopWidth,10),b=parseInt(p.borderRightWidth,10),_=parseInt(p.borderBottomWidth,10);let N=0,D=0;const I="offsetWidth"in t?t.offsetWidth-t.clientWidth-h-b:0,L="offsetHeight"in t?t.offsetHeight-t.clientHeight-m-_:0,j="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,R="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(v===t)N="start"===s?P:"end"===s?P-w:"nearest"===s?f(k,k+w,w,m,_,k+P,k+P+x,x):P-w/2,D="start"===l?M:"center"===l?M-y/2:"end"===l?M-y:f(E,E+y,y,h,b,E+M,E+M+T,T),N=Math.max(0,N+k),D=Math.max(0,D+E);else{N="start"===s?P-i-m:"end"===s?P-u+_+L:"nearest"===s?f(i,u,n,m,_+L,P,P+x,x):P-(i+n/2)+L/2,D="start"===l?M-c-h:"center"===l?M-(c+r/2)+I/2:"end"===l?M-o+b+I:f(c,o,r,h,b+I,M,M+T,T);const{scrollLeft:e,scrollTop:a}=t;N=0===R?0:Math.max(0,Math.min(a+N/R,t.scrollHeight-n/R+L)),D=0===j?0:Math.max(0,Math.min(e+D/j,t.scrollWidth-r/j+I)),P+=a-N,M+=e-D}F.push({el:t,top:N,left:D})}return F})(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach(function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r})}},environment:"undefined"==typeof window?void 0:window};function L(e,t,n){void 0===n&&(n=A);var r=e["default"+I(t)];return void 0!==r?r:n[t]}function j(e,t,n){void 0===n&&(n=A);var r=e[t];if(void 0!==r)return r;var i=e["initial"+I(t)];return void 0!==i?i:L(e,t,n)}function R(e,t,n){var r=e.items,i=e.initialHighlightedIndex,o=e.defaultHighlightedIndex,a=e.isItemDisabled,s=e.itemToKey,l=t.selectedItem,u=t.highlightedIndex;return 0===r.length?-1:void 0===i||u!==i||a(r[i],i)?void 0===o||a(r[o],o)?l?r.findIndex(function(e){return s(l)===s(e)}):n<0&&!a(r[r.length-1],r.length-1)?r.length-1:n>0&&!a(r[0],0)?0:-1:o:i}var $=function(){return v};var B=v;function V(e,t,n){var r;void 0===n&&(n=!0);var o=(null==(r=e.items)?void 0:r.length)&&t>=0;return(0,i.A)({isOpen:!1,highlightedIndex:-1},o&&(0,i.A)({selectedItem:e.items[t],isOpen:L(e,"isOpen"),highlightedIndex:L(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function z(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function U(){var e=l().useRef(!0);return l().useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}function K(e){var t=L(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}var W={environment:a().shape({addEventListener:a().func.isRequired,removeEventListener:a().func.isRequired,document:a().shape({createElement:a().func.isRequired,getElementById:a().func.isRequired,activeElement:a().any.isRequired,body:a().any.isRequired}).isRequired,Node:a().func.isRequired}),itemToString:a().func,itemToKey:a().func,stateReducer:a().func},H=(0,i.A)({},W,{getA11yStatusMessage:a().func,highlightedIndex:a().number,defaultHighlightedIndex:a().number,initialHighlightedIndex:a().number,isOpen:a().bool,defaultIsOpen:a().bool,initialIsOpen:a().bool,selectedItem:a().any,initialSelectedItem:a().any,defaultSelectedItem:a().any,id:a().string,labelId:a().string,menuId:a().string,getItemId:a().func,toggleButtonId:a().string,onSelectedItemChange:a().func,onHighlightedIndexChange:a().func,onStateChange:a().func,onIsOpenChange:a().func,scrollIntoView:a().func});h(h({},H),{items:a().array.isRequired,isItemDisabled:a().func}),h(h({},F),{isItemDisabled:function(){return!1}});var q=0,Q=1,Y=2,G=3,X=4,Z=5,J=6,ee=7,te=8,ne=9,re=10,ie=11,oe=12,ae=13,se=14,le=15,ue=16,ce=17,de=18,fe=19,pe=20,he=21,me=22,ve=Object.freeze({__proto__:null,ControlledPropUpdatedSelectedItem:me,FunctionCloseMenu:ce,FunctionOpenMenu:ue,FunctionReset:he,FunctionSelectItem:fe,FunctionSetHighlightedIndex:de,FunctionSetInputValue:pe,FunctionToggleMenu:le,InputBlur:ne,InputChange:te,InputClick:re,InputKeyDownArrowDown:q,InputKeyDownArrowUp:Q,InputKeyDownEnd:X,InputKeyDownEnter:ee,InputKeyDownEscape:Y,InputKeyDownHome:G,InputKeyDownPageDown:J,InputKeyDownPageUp:Z,ItemClick:ae,ItemMouseMove:oe,MenuMouseLeave:ie,ToggleButtonClick:se});function ge(e){var t=function(e){var t=j(e,"selectedItem"),n=j(e,"isOpen"),r=function(e){var t=j(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}(e),i=j(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.findIndex(function(n){return e.itemToKey(n)===e.itemToKey(t)}):r,isOpen:n,selectedItem:t,inputValue:i}}(e),n=t.selectedItem,r=t.inputValue;return""===r&&n&&void 0===e.defaultInputValue&&void 0===e.initialInputValue&&void 0===e.inputValue&&(r=e.itemToString(n)),(0,i.A)({},t,{inputValue:r})}(0,i.A)({},H,{items:a().array.isRequired,isItemDisabled:a().func,inputValue:a().string,defaultInputValue:a().string,initialInputValue:a().string,inputId:a().string,onInputValueChange:a().func});var be=v,ye=(0,i.A)({},F,{isItemDisabled:function(){return!1}});function we(e,t){var n,r,o=t.type,a=t.props,s=t.altKey;switch(o){case ae:r={isOpen:L(a,"isOpen"),highlightedIndex:K(a),selectedItem:a.items[t.index],inputValue:a.itemToString(a.items[t.index])};break;case q:r=e.isOpen?{highlightedIndex:x(e.highlightedIndex,1,a.items,a.isItemDisabled,!0)}:{highlightedIndex:s&&null==e.selectedItem?-1:R(a,e,1),isOpen:a.items.length>=0};break;case Q:r=e.isOpen?s?V(a,e.highlightedIndex):{highlightedIndex:x(e.highlightedIndex,-1,a.items,a.isItemDisabled,!0)}:{highlightedIndex:R(a,e,-1),isOpen:a.items.length>=0};break;case ee:r=V(a,e.highlightedIndex);break;case Y:r=(0,i.A)({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case Z:r={highlightedIndex:x(e.highlightedIndex,-10,a.items,a.isItemDisabled,!0)};break;case J:r={highlightedIndex:x(e.highlightedIndex,10,a.items,a.isItemDisabled,!0)};break;case G:r={highlightedIndex:T(0,!1,a.items,a.isItemDisabled)};break;case X:r={highlightedIndex:T(a.items.length-1,!0,a.items,a.isItemDisabled)};break;case ne:r=(0,i.A)({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&(null==(n=a.items)?void 0:n.length)&&t.selectItem&&{selectedItem:a.items[e.highlightedIndex],inputValue:a.itemToString(a.items[e.highlightedIndex])});break;case te:r={isOpen:!0,highlightedIndex:K(a),inputValue:t.inputValue};break;case re:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:R(a,e,0)};break;case fe:r={selectedItem:t.selectedItem,inputValue:a.itemToString(t.selectedItem)};break;case me:r={inputValue:t.inputValue};break;default:return function(e,t,n){var r,o=t.type,a=t.props;switch(o){case n.ItemMouseMove:r={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:R(a,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:R(a,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:a.isItemDisabled(a.items[t.highlightedIndex],t.highlightedIndex)?-1:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:K(a),isOpen:L(a,"isOpen"),selectedItem:L(a,"selectedItem"),inputValue:L(a,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return(0,i.A)({},e,r)}(e,t,ve)}return(0,i.A)({},e,r)}var Ee=["onMouseLeave","refKey","ref"],ke=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],xe=["onClick","onPress","refKey","ref"],Te=["onKeyDown","onChange","onInput","onBlur","onChangeText","onClick","refKey","ref"];function Se(e){void 0===e&&(e={}),be(e,Se);var t=(0,i.A)({},ye,e),n=t.items,o=t.scrollIntoView,a=t.environment,l=t.getA11yStatusMessage,u=function(e,t,n,r){var i=(0,s.useRef)(),o=M(e,t,n,r),a=o[0],l=o[1],u=U();return(0,s.useEffect)(function(){k(t,"selectedItem")&&(u||t.itemToKey(t.selectedItem)!==t.itemToKey(i.current)&&l({type:me,inputValue:t.itemToString(t.selectedItem)}),i.current=a.selectedItem===i.current?t.selectedItem:a.selectedItem)},[a.selectedItem,t.selectedItem]),[E(a,t),l]}(we,t,ge,z),c=u[0],d=u[1],f=c.isOpen,p=c.highlightedIndex,h=c.selectedItem,m=c.inputValue,g=(0,s.useRef)(null),b=(0,s.useRef)({}),x=(0,s.useRef)(null),T=(0,s.useRef)(null),O=U(),C=D(t),A=(0,s.useRef)(),I=P({state:c,props:t}),F=(0,s.useCallback)(function(e){return b.current[C.getItemId(e)]},[C]);!function(e,t,n,r){void 0===r&&(r={});var i=r.document,o=U();(0,s.useEffect)(function(){if(e&&!o&&i){var n=e(t);_(n,i)}},n),(0,s.useEffect)(function(){return function(){var e,t;_.cancel(),(t=null==(e=i)?void 0:e.getElementById("a11y-status-message"))&&t.remove()}},[i])}(l,c,[f,p,h,m],a);var L=function(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,o=e.menuElement,a=e.scrollIntoView,l=(0,s.useRef)(!0);return N(function(){t<0||!n||!Object.keys(r.current).length||(!1===l.current?l.current=!0:a(i(t),o))},[t]),l}({menuElement:g.current,highlightedIndex:p,isOpen:f,itemRefs:b,scrollIntoView:o,getItemNodeFromIndex:F});B({props:t,state:c}),(0,s.useEffect)(function(){j(t,"isOpen")&&x.current&&x.current.focus()},[]),(0,s.useEffect)(function(){O||(A.current=n.length)});var R=function(e,t,n){var r=(0,s.useRef)({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1});return(0,s.useEffect)(function(){if(!e)return v;var i=n.map(function(e){return e.current});function o(){r.current.isTouchEnd=!1,r.current.isMouseDown=!0}function a(n){r.current.isMouseDown=!1,S(n.target,i,e)||t()}function s(){r.current.isTouchEnd=!1,r.current.isTouchMove=!1}function l(){r.current.isTouchMove=!0}function u(n){r.current.isTouchEnd=!0,r.current.isTouchMove||S(n.target,i,e,!1)||t()}return e.addEventListener("mousedown",o),e.addEventListener("mouseup",a),e.addEventListener("touchstart",s),e.addEventListener("touchmove",l),e.addEventListener("touchend",u),function(){e.removeEventListener("mousedown",o),e.removeEventListener("mouseup",a),e.removeEventListener("touchstart",s),e.removeEventListener("touchmove",l),e.removeEventListener("touchend",u)}},[n,e,t]),r.current}(a,(0,s.useCallback)(function(){I.current.state.isOpen&&d({type:ne,selectItem:!1})},[d,I]),(0,s.useMemo)(function(){return[g,T,x]},[g.current,T.current,x.current])),V=$("getInputProps","getMenuProps");(0,s.useEffect)(function(){f||(b.current={})},[f]),(0,s.useEffect)(function(){var e;f&&null!=a&&a.document&&null!=x&&null!=(e=x.current)&&e.focus&&a.document.activeElement!==x.current&&x.current.focus()},[f,a]);var K=(0,s.useMemo)(function(){return{ArrowDown:function(e){e.preventDefault(),d({type:q,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),d({type:Q,altKey:e.altKey})},Home:function(e){I.current.state.isOpen&&(e.preventDefault(),d({type:G}))},End:function(e){I.current.state.isOpen&&(e.preventDefault(),d({type:X}))},Escape:function(e){var t=I.current.state;(t.isOpen||t.inputValue||t.selectedItem||t.highlightedIndex>-1)&&(e.preventDefault(),d({type:Y}))},Enter:function(e){I.current.state.isOpen&&229!==e.which&&(e.preventDefault(),d({type:ee}))},PageUp:function(e){I.current.state.isOpen&&(e.preventDefault(),d({type:Z}))},PageDown:function(e){I.current.state.isOpen&&(e.preventDefault(),d({type:J}))}}},[d,I]),W=(0,s.useCallback)(function(e){return(0,i.A)({id:C.labelId,htmlFor:C.inputId},e)},[C]),H=(0,s.useCallback)(function(e,t){var n,o=void 0===e?{}:e,a=o.onMouseLeave,s=o.refKey,l=void 0===s?"ref":s,u=o.ref,c=(0,r.A)(o,Ee),f=(void 0===t?{}:t).suppressRefError;return V("getMenuProps",void 0!==f&&f,l,g),(0,i.A)(((n={})[l]=w(u,function(e){g.current=e}),n.id=C.menuId,n.role="listbox",n["aria-labelledby"]=c&&c["aria-label"]?void 0:""+C.labelId,n.onMouseLeave=y(a,function(){d({type:ie})}),n),c)},[d,V,C]),ve=(0,s.useCallback)(function(e){var t,n,o=void 0===e?{}:e,a=o.item,s=o.index,l=o.refKey,u=void 0===l?"ref":l,c=o.ref,f=o.onMouseMove,p=o.onMouseDown,h=o.onClick;o.onPress;var m=o.disabled,v=(0,r.A)(o,ke);void 0!==m&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');var g=I.current,E=g.props,k=g.state,x=function(e,t,n,r){var i,o;if(void 0===e){if(void 0===t)throw new Error(r);i=n[t],o=t}else o=void 0===t?n.indexOf(e):t,i=e;return[i,o]}(a,s,E.items,"Pass either item or index to getItemProps!"),T=x[0],S=x[1],O=E.isItemDisabled(T,S),A=h;return(0,i.A)(((t={})[u]=w(c,function(e){e&&(b.current[C.getItemId(S)]=e)}),t["aria-disabled"]=O,t["aria-selected"]=S===k.highlightedIndex,t.id=C.getItemId(S),t.role="option",t),!O&&((n={}).onClick=y(A,function(){d({type:ae,index:S})}),n),{onMouseMove:y(f,function(){R.isTouchEnd||S===k.highlightedIndex||(L.current=!1,d({type:oe,index:S,disabled:O}))}),onMouseDown:y(p,function(e){return e.preventDefault()})},v)},[d,C,I,R,L]),Oe=(0,s.useCallback)(function(e){var t,n=void 0===e?{}:e,o=n.onClick;n.onPress;var a=n.refKey,s=void 0===a?"ref":a,l=n.ref,u=(0,r.A)(n,xe),c=I.current.state;return(0,i.A)(((t={})[s]=w(l,function(e){T.current=e}),t["aria-controls"]=C.menuId,t["aria-expanded"]=c.isOpen,t.id=C.toggleButtonId,t.tabIndex=-1,t),!u.disabled&&(0,i.A)({},{onClick:y(o,function(){d({type:se})})}),u)},[d,I,C]),Ce=(0,s.useCallback)(function(e,t){var n,o=void 0===e?{}:e,s=o.onKeyDown,l=o.onChange,u=o.onInput,c=o.onBlur;o.onChangeText;var f=o.onClick,p=o.refKey,h=void 0===p?"ref":p,m=o.ref,v=(0,r.A)(o,Te),g=(void 0===t?{}:t).suppressRefError;V("getInputProps",void 0!==g&&g,h,x);var b,E=I.current.state,k={};return v.disabled||((b={}).onChange=y(l,u,function(e){d({type:te,inputValue:e.target.value})}),b.onKeyDown=y(s,function(e){var t=function(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}(e);t&&K[t]&&K[t](e)}),b.onBlur=y(c,function(e){if(null!=a&&a.document&&E.isOpen&&!R.isMouseDown){var t=null===e.relatedTarget&&a.document.activeElement!==a.document.body;d({type:ne,selectItem:!t})}}),b.onClick=y(f,function(){d({type:re})}),k=b),(0,i.A)(((n={})[h]=w(m,function(e){x.current=e}),n["aria-activedescendant"]=E.isOpen&&E.highlightedIndex>-1?C.getItemId(E.highlightedIndex):"",n["aria-autocomplete"]="list",n["aria-controls"]=C.menuId,n["aria-expanded"]=E.isOpen,n["aria-labelledby"]=v&&v["aria-label"]?void 0:C.labelId,n.autoComplete="off",n.id=C.inputId,n.role="combobox",n.value=E.inputValue,n),k,v)},[d,C,a,K,I,R,V]),Ae=(0,s.useCallback)(function(){d({type:le})},[d]),_e=(0,s.useCallback)(function(){d({type:ce})},[d]),Ne=(0,s.useCallback)(function(){d({type:ue})},[d]),De=(0,s.useCallback)(function(e){d({type:de,highlightedIndex:e})},[d]),Ie=(0,s.useCallback)(function(e){d({type:fe,selectedItem:e})},[d]);return{getItemProps:ve,getLabelProps:W,getMenuProps:H,getInputProps:Ce,getToggleButtonProps:Oe,toggleMenu:Ae,openMenu:Ne,closeMenu:_e,setHighlightedIndex:De,setInputValue:(0,s.useCallback)(function(e){d({type:pe,inputValue:e})},[d]),selectItem:Ie,reset:(0,s.useCallback)(function(){d({type:he})},[d]),highlightedIndex:p,isOpen:f,selectedItem:h,inputValue:m}}Se.stateChangeTypes=ve,a().array,a().array,a().array,a().func,a().number,a().number,a().number,a().func,a().func,a().string,a().string},2427:(e,t,n)=>{var r=n(6540);n(4160).React=r,e.exports=r},2551:(e,t,n)=>{"use strict";var r=n(2427),i=n(5228),o=n(9982);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n