PageSourceSearch

https://stfrancisacademybh.org/build/pagebuilder_section-BgMWFyoH.js

js stfrancisacademybh.org collected 2026-10-09 01:27:42 UTC 124,567 bytes, 1 lines download raw bytes

1import{y as m,au as ot,r as Q,g as js,C as Ps,av as Rs,f as Ms,K as xs,aw as $s,x as zs,ax as As,j as S,ak as $i,d as E,as as qs,ay as Ts,az as Cs}from"./index-D6EGPuBX.js";import{c as Rr}from"./index-D6eu1Y6_.js";import{H as Ls}from"./Helmet-CGPsIqcc.js";import{t as ks}from"./index-CzKlQJMC.js";import{u as Ns}from"./gql-pDldDZKs.js";var Oe="delete",z=5,et=1<<z,Y=et-1,w={};function Mr(){return{value:!1}}function rt(t){t&&(t.value=!0)}function Yr(){}function Ct(t){return t.size===void 0&&(t.size=t.__iterate(zi)),t.size}function Ot(t,e){if(typeof e!="number"){var r=e>>>0;if(""+r!==e||r===4294967295)return NaN;e=r}return e<0?Ct(t)+e:e}function zi(){return!0}function we(t,e,r){return(t===0&&!qi(t)||r!==void 0&&t<=-r)&&(e===void 0||r!==void 0&&e>=r)}function Vt(t,e){return Ai(t,e,0)}function Ee(t,e){return Ai(t,e,e)}function Ai(t,e,r){return t===void 0?r:qi(t)?e===1/0?e:Math.max(0,e+t)|0:e===void 0||e===t?t:Math.min(e,t)|0}function qi(t){return t<0||t===0&&1/t===-1/0}var Ti="@@__IMMUTABLE_ITERABLE__@@";function U(t){return!!(t&&t[Ti])}var Ci="@@__IMMUTABLE_KEYED__@@";function x(t){return!!(t&&t[Ci])}var Li="@@__IMMUTABLE_INDEXED__@@";function K(t){return!!(t&&t[Li])}function Ft(t){return x(t)||K(t)}var A=function(e){return U(e)?e:W(e)},st=function(t){function e(r){return x(r)?r:jt(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(A),zt=function(t){function e(r){return K(r)?r:at(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}
1(A),Yt=function(t){function e(r){return U(r)&&!Ft(r)?r:Jt(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(A);A.Keyed=st;A.Indexed=zt;A.Set=Yt;var ki="@@__IMMUTABLE_SEQ__@@";function Ie(t){return!!(t&&t[ki])}var Ni="@@__IMMUTABLE_RECORD__@@";function It(t){return!!(t&&t[Ni])}function J(t){return U(t)||It(t)}var Ht="@@__IMMUTABLE_ORDERED__@@";function tt(t){return!!(t&&t[Ht])}var je=0,ft=1,nt=2,xr=typeof Symbol=="function"&&Symbol.iterator,Ki="@@iterator",Ge=xr||Ki,I=function(e){this.next=e};I.prototype.toString=function(){return"[Iterator]"};I.KEYS=je;I.VALUES=ft;I.ENTRIES=nt;I.prototype.inspect=I.prototype.toSource=function(){return this.toString()};I.prototype[Ge]=function(){return this};function q(t,e,r,n){var i=t===0?e:t===1?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function H(){return{value:void 0,done:!0}}function Hr(t){return Array.isArray(t)?!0:!!Je(t)}function Vn(t){return t&&typeof t.next=="function"}function $r(t){var e=Je(t);return e&&e.call(t)}function Je(t){var e=t&&(xr&&t[xr]||t[Ki]);if(typeof e=="function")return e}function Ks(t){var e=Je(t);return e&&e===t.entries}function Bs(t){var e=Je(t);return e&&e===t.keys}var Gt=Object.prototype.hasOwnProperty;function Gr(t){return Array.isArray(t)||typeof t=="string"?!0:t&&typeof t=="object"&&Number.isInteger(t.length)&&t.length>=0&&(t.length===0?Object.keys(t).length===1:t.hasOwnProperty(t.length-1))}var W=function(t){function e(r){return r==null?Xr():J(r)?r.toSeq():Us(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq {","}")},e.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},e.prototype.__iterate=function(n,i){var o=this._cache;if(o){for(var s=o.length,a=0;a!==s;){var u=o[i?s-++a:a++];if(n(u[1],u[0],this)===!1)break}return a}return this.__iterateUncached(n,i)},e.prototype.__iterator=function(n,i){var o=this._cache;if(o){var s=o.length,a=0;return new I(function(){if(a===s)return H();var u=o[i?s-++a:a++];return q(n,u[0],u[1])})}return this.__iteratorUncached(n,i)},e}(A),jt=function(t){function e(r){return r==null?Xr().toKeyedSeq():U(r)?x(r)?r.toSeq():r.fromEntrySeq():It(r)?r.toSeq():Zr(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toKeyedSeq=function(){return this},e}(W),at=function(t){function e(r){return r==null?Xr():U(r)?x(r)?r.entrySeq():r.toIndexedSeq():It(r)?r.toSeq().entrySeq():Bi(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toIndexedSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq [","]")},e}(W),Jt=function(t){function e(r){return(U(r)&&!Ft(r)?r:at(r)).toSetSeq()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toSetSeq=function(){return this},e}(W);W.isSeq=Ie;W.Keyed=jt;W.Set=Jt;W.Indexed=at;W.prototype[ki]=!0;var xt=function(t){function e(r){this._array=r,this.size=r.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(n,i){return this.has(n)?this._array[Ot(this,n)]:i},e.prototype.__iterate=function(n,i){for(var o=this._array,s=o.length,a=0;a!==s;){var u=i?s-++a:a++;if(n(o[u],u,this)===!1)break}return a},e.prototype.__iterator=function(n,i){var o=this._array,s=o.length,a=0;return new I(function(){if(a===s)return H();var u=i?s-++a:a++;return q(n,u,o[u])})},e}(at),Jr=function(t){function e(r){var n=Object.keys(r).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r):[]);this._object=r,this._keys=n,this.size=n.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(n,i){return i!==void 0&&!this.has(n)?i:this._object[n]},e.prototype.has=function(n){return Gt.call(this._object,n)},e.prototype.__iterate=function(n,i){for(var o=this._object,s=this._keys,a=s.length,u=0;u!==a;){var f=s[i?a-++u:u++];if(n(o[f],f,this)===!1)break}return u},e.prototype.__iterator=function(n,i){var o=this._object,s=this._keys,a=s.length,u=0;return new I(function(){if(u===a)return H();var f=s[i?a-++u:u++];return q(n,f,o[f])})},e}(jt);Jr.prototype[Ht]=!0;var Ds=function(t){function e(r){this._collection=r,this.size=r.length||r.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__iterateUncached=function(n,i){if
vendor: 2,886 bytes, line 1
1(i)return this.cacheResult().__iterate(n,i);var o=this._collection,s=$r(o),a=0;if(Vn(s))for(var u;!(u=s.next()).done&&n(u.value,a++,this)!==!1;);return a},e.prototype.__iteratorUncached=function(n,i){if(i)return this.cacheResult().__iterator(n,i);var o=this._collection,s=$r(o);if(!Vn(s))return new I(H);var a=0;return new I(function(){var u=s.next();return u.done?u:q(n,a++,u.value)})},e}(at),Fn;function Xr(){return Fn||(Fn=new xt([]))}function Zr(t){var e=Qr(t);if(e)return e.fromEntrySeq();if(typeof t=="object")return new Jr(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function Bi(t){var e=Qr(t);if(e)return e;throw new TypeError("Expected Array or collection object of values: "+t)}function Us(t){var e=Qr(t);if(e)return Ks(t)?e.fromEntrySeq():Bs(t)?e.toSetSeq():e;if(typeof t=="object")return new Jr(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}function Qr(t){return Gr(t)?new xt(t):Hr(t)?new Ds(t):void 0}var Di="@@__IMMUTABLE_MAP__@@";function Pe(t){return!!(t&&t[Di])}function Xe(t){return Pe(t)&&tt(t)}function Ue(t){return!!(t&&typeof t.equals=="function"&&typeof t.hashCode=="function")}function N(t,e){if(t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1;if(typeof t.valueOf=="function"&&typeof e.valueOf=="function"){if(t=t.valueOf(),e=e.valueOf(),t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1}return!!(Ue(t)&&Ue(e)&&t.equals(e))}var re=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(e,r){e|=0,r|=0;var n=e&65535,i=r&65535;return n*i+((e>>>16)*i+n*(r>>>16)<<16>>>0)|0};function Ze(t){return t>>>1&1073741824|t&3221225471}var Ws=Object.prototype.valueOf;function F(t){if(t==null)return Yn(t);if(typeof t.hashCode=="function")return Ze(t.hashCode(t));var e=Js(t);if(e==null)return Yn(e);switch(typeof e){case"boolean":return e?1108378657:1108378656;case"number":return Vs(e);case"string":return e.length>Xs?Fs(e):zr(e);case"object":case"function":return Hs(e);case"symbol":return Ys(e);default:if(typeof e.toString=="function")return zr(e.toString());throw new Error("Value type "+typeof e+" cannot be hashed.")}}function Yn(t){return t===null?1108378658:1108378659}function Vs(t){if(t!==t||t===1/0)return 0;var e=t|0;for(e!==t&&(e^=t*4294967295);t>4294967295;)t/=4294967295,e^=t;return Ze(e)}function Fs(t){var e=vr[t];return e===void 0&&(e=zr(t),yr===Zs&&(yr=0,vr={}),yr++,vr[t]=e),e}function zr(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return Ze(e)}function Ys(t){var e=Jn[t];return e!==void 0||(e=Ui(),Jn[t]=e),e}function Hs(t){var e;if(Ar&&(e=qr.get(t),e!==void 0)||(e=t[Rt],e!==void 0)||!Gn&&(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Rt],e!==void 0||(e=Gs(t),e!==void 0)))return e;if(e=Ui(),Ar)qr.set(t,e);else{if(Hn!==void 0&&Hn(t)===!1)throw new Error("Non-extensible objects are not allowed as keys.");
1if(Gn)Object.defineProperty(t,Rt,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(t.propertyIsEnumerable!==void 0&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Rt]=e;else if(t.nodeType!==void 0)t[Rt]=e;else throw new Error("Unable to set a non-enumerable property on object.")}return e}var Hn=Object.isExtensible,Gn=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function Gs(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}function Js(t){return t.valueOf!==Ws&&typeof t.valueOf=="function"?t.valueOf(t):t}function Ui(){var t=++gr;return gr&1073741824&&(gr=0),t}var Ar=typeof WeakMap=="function",qr;Ar&&(qr=new WeakMap);var Jn=Object.create(null),gr=0,Rt="__immutablehash__";typeof Symbol=="function"&&(Rt=Symbol(Rt));var Xs=16,Zs=255,yr=0,vr={},Qe=function(t){function e(r,n){this._iter=r,this._useKeys=n,this.size=r.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(n,i){return this._iter.get(n,i)},e.prototype.has=function(n){return this._iter.has(n)},e.prototype.valueSeq=function(){return this._iter.valueSeq()},e.prototype.reverse=function(){var n=this,i=tn(this,!0);return this._useKeys||(i.valueSeq=function(){return n._iter.toSeq().reverse()}),i},e.prototype.map=function(n,i){var o=this,s=Hi(this,n,i);return this._useKeys||(s.valueSeq=function(){return o._iter.toSeq().map(n,i)}),s},e.prototype.__iterate=function(n,i){var o=this;return this._iter.__iterate(function(s,a){return n(s,a,o)},i)},e.prototype.__iterator=function(n,i){return this._iter.__iterator(n,i)},e}(jt);Qe.prototype[Ht]=!0;var Wi=function(t){function e(r){this._iter=r,this.size=r.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.includes=function(n){return this._iter.includes(n)},e.prototype.__iterate=function(n,i){var o=this,s=0;return i&&Ct(this),this._iter.__iterate(function(a){return n(a,i?o.size-++s:s++,o)},i)},e.prototype.__iterator=function(n,i){var o=this,s=this._iter.__iterator(ft,i),a=0;return i&&Ct(this),new I(function(){var u=s.next();return u.done?u:q(n,i?o.size-++a:a++,u.value,u)})},e}(at),Vi=function(t){function e(r){this._iter=r,this.size=r.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.has=function(n){return this._iter.includes(n)},e.prototype.__iterate=function(n,i){var o=this;return this._iter.__iterate(function(s){return n(s,s,o)},i)},e.prototype.__iterator=function(n,i){var o=this._iter.__iterator(ft,i);return new I(function(){var s=o.next();return s.done?s:q(n,s.value,s.value,s)})},e}(Jt),Fi=function(t){function e(r){this._iter=r,this.size=r.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.entrySeq=function(){return this._iter.toSeq()},e.prototype.__iterate=function(n,i){var o=this;return this._iter.__iterate(function(s){if(s){Zn(s);var a=U(s);return n(a?s.get(1):s[1],a?s.get(0):s[0],o)}},i)},e.prototype.__iterator=function(n,i){var o=this._iter.__iterator(ft,i);return new I(function(){for(;;){var s=o.next();if(s.done)return s;var a=s.value;if(a){Zn(a);var u=U(a);return q(n,u?a.get(0):a[0],u?a.get(1):a[1],s)}}})},e}(jt);Wi.prototype.cacheResult=Qe.prototype.cacheResult=Vi.prototype.cacheResult=Fi.prototype.cacheResult=nn;function Yi(t){var e=ht(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var r=t.reverse.apply(this);return r.flip=function(){return t.reverse()},r},e.has=function(r){return t.includes(r)},e.includes=function(r){return t.has(r)},e.cacheResult=nn,e.__iterateUncached=function(r,n){var i=this;return t.__iterate(function(o,s){return r(s,o,i)!==!1},n)},e.__iteratorUncached=function(r,n){if(r===nt){var i=t.__iterator(r,n);return new I(function(){var o=i.next();if(!o.done){var s=o.value[0];o.value[0]=o.value[1],o.value[1]=s}return o}
vendor: 49,028 bytes, line 1
1)}return t.__iterator(r===ft?je:ft,n)},e}function Hi(t,e,r){var n=ht(t);return n.size=t.size,n.has=function(i){return t.has(i)},n.get=function(i,o){var s=t.get(i,w);return s===w?o:e.call(r,s,i,t)},n.__iterateUncached=function(i,o){var s=this;return t.__iterate(function(a,u,f){return i(e.call(r,a,u,f),u,s)!==!1},o)},n.__iteratorUncached=function(i,o){var s=t.__iterator(nt,o);return new I(function(){var a=s.next();if(a.done)return a;var u=a.value,f=u[0];return q(i,f,e.call(r,u[1],f,t),a)})},n}function tn(t,e){var r=this,n=ht(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var i=Yi(t);return i.reverse=function(){return t.flip()},i}),n.get=function(i,o){return t.get(e?i:-1-i,o)},n.has=function(i){return t.has(e?i:-1-i)},n.includes=function(i){return t.includes(i)},n.cacheResult=nn,n.__iterate=function(i,o){var s=this,a=0;return o&&Ct(t),t.__iterate(function(u,f){return i(u,e?f:o?s.size-++a:a++,s)},!o)},n.__iterator=function(i,o){var s=0;o&&Ct(t);var a=t.__iterator(nt,!o);return new I(function(){var u=a.next();if(u.done)return u;var f=u.value;return q(i,e?f[0]:o?r.size-++s:s++,f[1],u)})},n}function Gi(t,e,r,n){var i=ht(t);return n&&(i.has=function(o){var s=t.get(o,w);return s!==w&&!!e.call(r,s,o,t)},i.get=function(o,s){var a=t.get(o,w);return a!==w&&e.call(r,a,o,t)?a:s}),i.__iterateUncached=function(o,s){var a=this,u=0;return t.__iterate(function(f,c,l){if(e.call(r,f,c,l))return u++,o(f,n?c:u-1,a)},s),u},i.__iteratorUncached=function(o,s){var a=t.__iterator(nt,s),u=0;return new I(function(){for(;;){var f=a.next();if(f.done)return f;var c=f.value,l=c[0],p=c[1];if(e.call(r,p,l,t))return q(o,n?l:u++,p,f)}})},i}function Qs(t,e,r){var n=_().asMutable();return t.__iterate(function(i,o){n.update(e.call(r,i,o,t),0,function(s){return s+1})}),n.asImmutable()}function ta(t,e,r){var n=x(t),i=(tt(t)?ct():_()).asMutable();t.__iterate(function(s,a){i.update(e.call(r,s,a,t),function(u){return u=u||[],u.push(n?[a,s]:s),u})});var o=rn(t);return i.map(function(s){return M(t,o(s))}).asImmutable()}function ea(t,e,r){var n=x(t),i=[[],[]];t.__iterate(function(s,a){i[e.call(r,s,a,t)?1:0].push(n?[a,s]:s)});var o=rn(t);return i.map(function(s){return M(t,o(s))})}function en(t,e,r,n){var i=t.size;if(we(e,r,i))return t;var o=Vt(e,i),s=Ee(r,i);if(o!==o||s!==s)return en(t.toSeq().cacheResult(),e,r,n);var a=s-o,u;a===a&&(u=a<0?0:a);var f=ht(t);return f.size=u===0?u:t.size&&u||void 0,!n&&Ie(t)&&u>=0&&(f.get=function(c,l){return c=Ot(this,c),c>=0&&c<u?t.get(c+o,l):l}),f.__iterateUncached=function(c,l){var p=this;if(u===0)return 0;if(l)return this.cacheResult().__iterate(c,l);var h=0,d=!0,y=0;return t.__iterate(function(b,P){if(!(d&&(d=h++<o)))return y++,c(b,n?P:y-1,p)!==!1&&y!==u}),y},f.__iteratorUncached=function(c,l){if(u!==0&&l)return this.cacheResult().__iterator(c,l);if(u===0)return new I(H);var p=t.__iterator(c,l),h=0,d=0;return new I(function(){for(;h++<o;)p.next();if(++d>u)return H();var y=p.next();return n||c===ft||y.done?y:c===je?q(c,d-1,void 0,y):q(c,d-1,y.value[1],y)})},f}function ra(t,e,r){var n=ht(t);return n.__iterateUncached=function(i,o){var s=this;if(o)return this.cacheResult().__iterate(i,o);var a=0;return t.__iterate(function(u,f,c){return e.call(r,u,f,c)&&++a&&i(u,f,s)}),a},n.__iteratorUncached=function(i,o){var s=this;if(o)return this.cacheResult().__iterator(i,o);var a=t.__iterator(nt,o),u=!0;return new I(function(){if(!u)return H();var f=a.next();if(f.done)return f;var c=f.value,l=c[0],p=c[1];return e.call(r,p,l,s)?i===nt?f:q(i,l,p,f):(u=!1,H())})},n}function Ji(t,e,r,n){var i=ht(t);return i.__iterateUncached=function(o,s){var a=this;if(s)return this.cacheResult().__iterate(o,s);var u=!0,f=0;return t.__iterate(function(c,l,p){if(!(u&&(u=e.call(r,c,l,p))))return f++,o(c,n?l:f-1,a)}),f},i.__iteratorUncached=function(o,s){var a=this;if(s)return this.cacheResult().__iterator(o,s);var u=t.__iterator(nt,s),f=!0,c=0;return new I(function(){var l,p,h;do{if(l=u.next(),l.done)return n||o===ft?l:o===je?q(o,c++,void 0,l):q(o,c++,l.value[1],l);var d=l.value;p=d[0],h=d[1],f&&(f=e.call(r,h,p,a))}while(f);return o===nt?l:q(o,p,h,l)})},i}function na(t,e){var r=x(t),n=[t].concat(e).map(function(s){return U(s)?r&&(s=st(s)):s=r?Zr(s):Bi(Array.isArray(s)?s:[s]),s}).filter(function(s){return s.size!==0});if(n.length===0)return t;if(n.length===1){var i=n[0];if(i===t||r&&x(i)||K(t)&&K(i))return i}var o=new xt(n);return r?o=o.toKeyedSeq():K(t)||(o=o.toSetSeq()),o=o.flatten(!0),o.size=n.reduce(function(s,a){if(s!==void 0){var u=a.size;if(u!==void 0)return s+u}},0),o}function Xi(t,e,r){var n=ht(t);return n.__iterateUncached=function(i,o){if(o)return this.cacheResult().__iterate(i,o);var s=0,a=!1;function u(f,c){f.__iterate(function(l,p){return(!e||c<e)&&U(l)?u(l,c+1):(s++,i(l,r?p:s-1,n)===!1&&(a=!0)),!a},o)}return u(t,0),s},n.__iteratorUncached=function(i,o){if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(i,o),a=[],u=0;return new I(function(){for(;s;){var f=s.next();if(f.done!==!1){s=a.pop();continue}var c=f.value;if(i===nt&&(c=c[1]),(!e||a.length<e)&&U(c))a.push(s),s=c.__iterator(i,o);else return r?f:q(i,u++,c,f)}return H()})},n}function ia(t,e,r){var n=rn(t);return t.toSeq().map(function(i,o){return n(e.call(r,i,o,t))}).flatten(!0)}function oa(t,e){var r=ht(t);return r.size=t.size&&t.size*2-1,r.__iterateUncached=function(n,i){var o=this,s=0;return t.__iterate(function(a){return(!s||n(e,s++,o)!==!1)&&n(a,s++,o)!==!1},i),s},r.__iteratorUncached=function(n,i){var o=t.__iterator(ft,i),s=0,a;return new I(function(){return(!a||s%2)&&(a=o.next(),a.done)?a:s%2?q(n,s++,e):q(n,s++,a.value,a)})},r}function Lt(t,e,r){e||(e=Zi);var n=x(t),i=0,o=t.toSeq().map(function(s,a){return[a,s,i++,r?r(s,a,t):s]}).valueSeq().toArray();return o.sort(function(s,a){return e(s[3],a[3])||s[2]-a[2]}).forEach(n?function(s,a){o[a].length=2}:function(s,a){o[a]=s[1]}),n?jt(o):K(t)?at(o):Jt(o)}function Ce(t,e,r){if(e||(e=Zi),r){var n=t.toSeq().map(function(i,o){return[i,r(i,o,t)]}).reduce(function(i,o){return Xn(e,i[1],o[1])?o:i});return n&&n[0]}return t.reduce(function(i,o){return Xn(e,i,o)?o:i})}function Xn(t,e,r){var n=t(r,e);return n===0&&r!==e&&(r==null||r!==r)||n>0}function Le(t,e,r,n){var i=ht(t),o=new xt(r).map(function(s){return s.size});return i.size=n?o.max():o.min(),i.__iterate=function(s,a){for(var u=this.__iterator(ft,a),f,c=0;!(f=u.next()).done&&s(f.value,c++,this)!==!1;);return c},i.__iteratorUncached=function(s,a){var u=r.map(function(l){return l=A(l),$r(a?l.reverse():l)}),f=0,c=!1;return new I(function(){var l;return c||(l=u.map(function(p){return p.next()}),c=n?l.every(function(p){return p.done}):l.some(function(p){return p.done})),c?H():q(s,f++,e.apply(null,l.map(function(p){return p.value})))})},i}function M(t,e){return t===e?t:Ie(t)?e:t.constructor(e)}function Zn(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function rn(t){return x(t)?st:K(t)?zt:Yt}function ht(t){return Object.create((x(t)?jt:K(t)?at:Jt).prototype)}function nn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):W.prototype.cacheResult.call(this)}function Zi(t,e){return t===void 0&&e===void 0?0:t===void 0?1:e===void 0?-1:t>e?1:t<e?-1:0}function pt(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=new Array(r),i=0;i<r;i++)n[i]=t[i+e];return n}function on(t,e){if(!t)throw new Error(e)}function Z(t){on(t!==1/0,"Cannot perform this action with an infinite size.")}function Qi(t){if(Gr(t)&&typeof t!="string")return t;if(tt(t))return t.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+t)}var sa=Object.prototype.toString;function tr(t){if(!t||typeof t!="object"||sa.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e,n=Object.getPrototypeOf(e);n!==null;)r=n,n=Object.getPrototypeOf(r);return r===e}function wt(t){return typeof t=="object"&&(J(t)||Array.isArray(t)||tr(t))}function ue(t){try{return typeof t=="string"?JSON.stringify(t):String(t)}catch{return JSON.stringify(t)}}function sn(t,e){return J(t)?t.has(e):wt(t)&&Gt.call(t,e)}function er(t,e,r){return J(t)?t.get(e,r):sn(t,e)?typeof t.get=="function"?t.get(e):t[e]:r}function We(t){if(Array.isArray(t))return pt(t);var e={};for(var r in t)Gt.call(t,r)&&(e[r]=t[r]);return e}function an(t,e){if(!wt(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(J(t)){if(!t.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+t);return t.remove(e)}if(!Gt.call(t,e))return t;var r=We(t);return Array.isArray(r)?r.splice(e,1):delete r[e],r}function un(t,e,r){if(!wt(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(J(t)){if(!t.set)throw new TypeError("Cannot update immutable value without .set() method: "+t);return t.set(e,r)}if(Gt.call(t,e)&&r===t[e])return t;var n=We(t);return n[e]=r,n}function Pt(t,e,r,n){n||(n=r,r=void 0);var i=to(J(t),t,Qi(e),0,r,n);return i===w?r:i}function to(t,e,r,n,i,o){var s=e===w;if(n===r.length){var a=s?i:e,u=o(a);return u===a?e:u}if(!s&&!wt(e))throw new TypeError("Cannot update within non-data-structure value in path ["+r.slice(0,n).map(ue)+"]: "+e);var f=r[n],c=s?w:er(e,f,w),l=to(c===w?t:J(c),c,r,n+1,i,o);return l===c?e:l===w?an(e,f):un(s?t?ut():{}:e,f,l)}function fn(t,e,r){return Pt(t,e,w,function(){return r})}function cn(t,e){return fn(this,t,e)}function ln(t,e){return Pt(t,e,function(){return w})}function pn(t){return ln(this,t)}function rr(t,e,r,n){return Pt(t,[e],r,n)}function hn(t,e,r){return arguments.length===1?t(this):rr(this,t,e,r)}function dn(t,e,r){return Pt(this,t,e,r)}function eo(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return no(this,t)}function ro(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];if(typeof t!="function")throw new TypeError("Invalid merger function: "+t);return no(this,e,t)}function no(t,e,r){for(var n=[],i=0;i<e.length;i++){var o=st(e[i]);o.size!==0&&n.push(o)}return n.length===0?t:t.toSeq().size===0&&!t.__ownerID&&n.length===1?t.constructor(n[0]):t.withMutations(function(s){for(var a=r?function(f,c){rr(s,c,w,function(l){return l===w?f:r(l,f,c)})}:function(f,c){s.set(c,f)},u=0;u<n.length;u++)n[u].forEach(a)})}function io(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return Me(t,e)}function oo(t,e){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return Me(e,r,t)}function so(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return Re(t,e)}function ao(t,e){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return Re(e,r,t)}function Re(t,e,r){return Me(t,e,aa(r))}function Me(t,e,r){if(!wt(t))throw new TypeError("Cannot merge into non-data-structure value: "+t);if(J(t))return typeof r=="function"&&t.mergeWith?t.mergeWith.apply(t,[r].concat(e)):t.merge?t.merge.apply(t,e):t.concat.apply(t,e);for(var n=Array.isArray(t),i=t,o=n?zt:st,s=n?function(u){i===t&&(i=We(i)),i.push(u)}:function(u,f){var c=Gt.call(i,f),l=c&&r?r(i[f],u,f):u;(!c||l!==i[f])&&(i===t&&(i=We(i)),i[f]=l)},a=0;a<e.length;a++)o(e[a]).forEach(s);return i}function aa(t){function e(r,n,i){return wt(r)&&wt(n)&&ua(r,n)?Me(r,[n],e):t?t(r,n,i):n}return e}function ua(t,e){var r=W(t),n=W(e);return K(r)===K(n)&&x(r)===x(n)}function uo(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Re(this,t)}function fo(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return Re(this,e,t)}function _n(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return Pt(this,t,ut(),function(n){return Me(n,e)})}function gn(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return Pt(this,t,ut(),function(n){return Re(n,e)})}function xe(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this}function $e(){return this.__ownerID?this:this.__ensureOwner(new Yr)}function ze(){return this.__ensureOwner()}function yn(){return this.__altered}var _=function(t){function e(r){return r==null?ut():Pe(r)&&!tt(r)?r:ut().withMutations(function(n){var i=t(r);Z(i.size),i.forEach(function(o,s){return n.set(s,o)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];return ut().withMutations(function(o){for(var s=0;s<n.length;s+=2){if(s+1>=n.length)throw new Error("Missing value for key: "+n[s]);o.set(n[s],n[s+1])}})},e.prototype.toString=function(){return this.__toString("Map {","}")},e.prototype.get=function(n,i){return this._root?this._root.get(0,void 0,n,i):i},e.prototype.set=function(n,i){return ei(this,n,i)},e.prototype.remove=function(n){return ei(this,n,w)},e.prototype.deleteAll=function(n){var i=A(n);return i.size===0?this:this.withMutations(function(o){i.forEach(function(s){return o.remove(s)})})},e.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ut()},e.prototype.sort=function(n){return ct(Lt(this,n))},e.prototype.sortBy=function(n,i){return ct(Lt(this,i,n))},e.prototype.map=function(n,i){var o=this;return this.withMutations(function(s){s.forEach(function(a,u){s.set(u,n.call(i,a,u,o))})})},e.prototype.__iterator=function(n,i){return new fa(this,n,i)},e.prototype.__iterate=function(n,i){var o=this,s=0;return this._root&&this._root.iterate(function(a){return s++,n(a[1],a[0],o)},i),s},e.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?vn(this.size,this._root,n,this.__hash):this.size===0?ut():(this.__ownerID=n,this.__altered=!1,this)},e}(st);_.isMap=Pe;var T=_.prototype;T[Di]=!0;T[Oe]=T.remove;T.removeAll=T.deleteAll;T.setIn=cn;T.removeIn=T.deleteIn=pn;T.update=hn;T.updateIn=dn;T.merge=T.concat=eo;T.mergeWith=ro;T.mergeDeep=uo;T.mergeDeepWith=fo;T.mergeIn=_n;T.mergeDeepIn=gn;T.withMutations=xe;T.wasAltered=yn;T.asImmutable=ze;T["@@transducer/init"]=T.asMutable=$e;T["@@transducer/step"]=function(t,e){return t.set(e[0],e[1])};T["@@transducer/result"]=function(t){return t.asImmutable()};var fe=function(e,r){this.ownerID=e,this.entries=r};fe.prototype.get=function(e,r,n,i){for(var o=this.entries,s=0,a=o.length;s<a;s++)if(N(n,o[s][0]))return o[s][1];return i};fe.prototype.update=function(e,r,n,i,o,s,a){for(var u=o===w,f=this.entries,c=0,l=f.length;c<l&&!N(i,f[c][0]);c++);var p=c<l;if(p?f[c][1]===o:u)return this;if(rt(a),(u||!p)&&rt(s),!(u&&f.length===1)){if(!p&&!u&&f.length>=_a)return ca(e,f,i,o);var h=e&&e===this.ownerID,d=h?f:pt(f);return p?u?c===l-1?d.pop():d[c]=d.pop():d[c]=[i,o]:d.push([i,o]),h?(this.entries=d,this):new fe(e,d)}};var kt=function(e,r,n){this.ownerID=e,this.bitmap=r,this.nodes=n};kt.prototype.get=function(e,r,n,i){r===void 0&&(r=F(n));var o=1<<((e===0?r:r>>>e)&Y),s=this.bitmap;return s&o?this.nodes[co(s&o-1)].get(e+z,r,n,i):i};kt.prototype.update=function(e,r,n,i,o,s,a){n===void 0&&(n=F(i));var u=(r===0?n:n>>>r)&Y,f=1<<u,c=this.bitmap,l=(c&f)!==0;if(!l&&o===w)return this;var p=co(c&f-1),h=this.nodes,d=l?h[p]:void 0,y=mn(d,e,r+z,n,i,o,s,a);if(y===d)return this;if(!l&&y&&h.length>=ga)return pa(e,h,c,u,y);if(l&&!y&&h.length===2&&ri(h[p^1]))return h[p^1];if(l&&y&&h.length===1&&ri(y))return y;var b=e&&e===this.ownerID,P=l?y?c:c^f:c|f,v=l?y?lo(h,p,y,b):da(h,p,b):ha(h,p,y,b);return b?(this.bitmap=P,this.nodes=v,this):new kt(e,P,v)};var ce=function(e,r,n){this.ownerID=e,this.count=r,this.nodes=n};ce.prototype.get=function(e,r,n,i){r===void 0&&(r=F(n));var o=(e===0?r:r>>>e)&Y,s=this.nodes[o];return s?s.get(e+z,r,n,i):i};ce.prototype.update=function(e,r,n,i,o,s,a){n===void 0&&(n=F(i));var u=(r===0?n:n>>>r)&Y,f=o===w,c=this.nodes,l=c[u];if(f&&!l)return this;var p=mn(l,e,r+z,n,i,o,s,a);if(p===l)return this;var h=this.count;if(!l)h++;else if(!p&&(h--,h<ya))return la(e,c,h,u);var d=e&&e===this.ownerID,y=lo(c,u,p,d);return d?(this.count=h,this.nodes=y,this):new ce(e,h,y)};var Nt=function(e,r,n){this.ownerID=e,this.keyHash=r,this.entries=n};Nt.prototype.get=function(e,r,n,i){for(var o=this.entries,s=0,a=o.length;s<a;s++)if(N(n,o[s][0]))return o[s][1];return i};Nt.prototype.update=function(e,r,n,i,o,s,a){n===void 0&&(n=F(i));var u=o===w;if(n!==this.keyHash)return u?this:(rt(a),rt(s),bn(this,e,r,n,[i,o]));for(var f=this.entries,c=0,l=f.length;c<l&&!N(i,f[c][0]);c++);var p=c<l;if(p?f[c][1]===o:u)return this;if(rt(a),(u||!p)&&rt(s),u&&l===2)return new gt(e,this.keyHash,f[c^1]);var h=e&&e===this.ownerID,d=h?f:pt(f);return p?u?c===l-1?d.pop():d[c]=d.pop():d[c]=[i,o]:d.push([i,o]),h?(this.entries=d,this):new Nt(e,this.keyHash,d)};var gt=function(e,r,n){this.ownerID=e,this.keyHash=r,this.entry=n};gt.prototype.get=function(e,r,n,i){return N(n,this.entry[0])?this.entry[1]:i};gt.prototype.update=function(e,r,n,i,o,s,a){var u=o===w,f=N(i,this.entry[0]);if(f?o===this.entry[1]:u)return this;if(rt(a),u){rt(s);return}return f?e&&e===this.ownerID?(this.entry[1]=o,this):new gt(e,this.keyHash,[i,o]):(rt(s),bn(this,e,r,F(i),[i,o]))};fe.prototype.iterate=Nt.prototype.iterate=function(t,e){for(var r=this.entries,n=0,i=r.length-1;n<=i;n++)if(t(r[e?i-n:n])===!1)return!1};kt.prototype.iterate=ce.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,i=r.length-1;n<=i;n++){var o=r[e?i-n:n];if(o&&o.iterate(t,e)===!1)return!1}};gt.prototype.iterate=function(t,e){return t(this.entry)};var fa=function(t){function e(r,n,i){this._type=n,this._reverse=i,this._stack=r._root&&Qn(r._root)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.next=function(){for(var n=this._type,i=this._stack;i;){var o=i.node,s=i.index++,a=void 0;if(o.entry){if(s===0)return mr(n,o.entry)}else if(o.entries){if(a=o.entries.length-1,s<=a)return mr(n,o.entries[this._reverse?a-s:s])}else if(a=o.nodes.length-1,s<=a){var u=o.nodes[this._reverse?a-s:s];if(u){if(u.entry)return mr(n,u.entry);i=this._stack=Qn(u,i)}continue}i=this._stack=this._stack.__prev}return H()},e}(I);function mr(t,e){return q(t,e[0],e[1])}function Qn(t,e){return{node:t,index:0,__prev:e}}function vn(t,e,r,n){var i=Object.create(T);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}var ti;function ut(){return ti||(ti=vn(0))}function ei(t,e,r){var n,i;if(t._root){var o=Mr(),s=Mr();if(n=mn(t._root,t.__ownerID,0,void 0,e,r,o,s),!s.value)return t;i=t.size+(o.value?r===w?-1:1:0)}else{if(r===w)return t;i=1,n=new fe(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?vn(i,n):ut()}function mn(t,e,r,n,i,o,s,a){return t?t.update(e,r,n,i,o,s,a):o===w?t:(rt(a),rt(s),new gt(e,n,[i,o]))}function ri(t){return t.constructor===gt||t.constructor===Nt}function bn(t,e,r,n,i){if(t.keyHash===n)return new Nt(e,n,[t.entry,i]);var o=(r===0?t.keyHash:t.keyHash>>>r)&Y,s=(r===0?n:n>>>r)&Y,a,u=o===s?[bn(t,e,r+z,n,i)]:(a=new gt(e,n,i),o<s?[t,a]:[a,t]);return new kt(e,1<<o|1<<s,u)}function ca(t,e,r,n){t||(t=new Yr);for(var i=new gt(t,F(r),[r,n]),o=0;o<e.length;o++){var s=e[o];i=i.update(t,0,void 0,s[0],s[1])}return i}function la(t,e,r,n){for(var i=0,o=0,s=new Array(r),a=0,u=1,f=e.length;a<f;a++,u<<=1){var c=e[a];c!==void 0&&a!==n&&(i|=u,s[o++]=c)}return new kt(t,i,s)}function pa(t,e,r,n,i){for(var o=0,s=new Array(et),a=0;r!==0;a++,r>>>=1)s[a]=r&1?e[o++]:void 0;return s[n]=i,new ce(t,o+1,s)}function co(t){return t-=t>>1&1431655765,t=(t&858993459)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,t+=t>>16,t&127}function lo(t,e,r,n){var i=n?t:pt(t);return i[e]=r,i}function ha(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=new Array(i),s=0,a=0;a<i;a++)a===e?(o[a]=r,s=-1):o[a]=t[a+s];return o}function da(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=new Array(n),o=0,s=0;s<n;s++)s===e&&(o=1),i[s]=t[s+o];return i}var _a=et/4,ga=et/2,ya=et/4,po="@@__IMMUTABLE_LIST__@@";function nr(t){return!!(t&&t[po])}var g=function(t){function e(r){var n=Ke();if(r==null)return n;if(nr(r))return r;var i=t(r),o=i.size;return o===0?n:(Z(o),o>0&&o<et?le(0,o,z,null,new St(i.toArray())):n.withMutations(function(s){s.setSize(o),i.forEach(function(a,u){return s.set(u,a)})}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("List [","]")},e.prototype.get=function(n,i){if(n=Ot(this,n),n>=0&&n<this.size){n+=this._origin;var o=ho(this,n);return o&&o.array[n&Y]}return i},e.prototype.set=function(n,i){return va(this,n,i)},e.prototype.remove=function(n){return this.has(n)?n===0?this.shift():n===this.size-1?this.pop():this.splice(n,1):this},e.prototype.insert=function(n,i){return this.splice(n,0,i)},e.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=z,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):Ke()},e.prototype.push=function(){var n=arguments,i=this.size;return this.withMutations(function(o){bt(o,0,i+n.length);for(var s=0;s<n.length;s++)o.set(i+s,n[s])})},e.prototype.pop=function(){return bt(this,0,-1)},e.prototype.unshift=function(){var n=arguments;return this.withMutations(function(i){bt(i,-n.length);for(var o=0;o<n.length;o++)i.set(o,n[o])})},e.prototype.shift=function(){return bt(this,1)},e.prototype.concat=function(){for(var n=arguments,i=[],o=0;o<arguments.length;o++){var s=n[o],a=t(typeof s!="string"&&Hr(s)?s:[s]);a.size!==0&&i.push(a)}return i.length===0?this:this.size===0&&!this.__ownerID&&i.length===1?this.constructor(i[0]):this.withMutations(function(u){i.forEach(function(f){return f.forEach(function(c){return u.push(c)})})})},e.prototype.setSize=function(n){return bt(this,0,n)},e.prototype.map=function(n,i){var o=this;return this.withMutations(function(s){for(var a=0;a<o.size;a++)s.set(a,n.call(i,s.get(a),a,o))})},e.prototype.slice=function(n,i){var o=this.size;return we(n,i,o)?this:bt(this,Vt(n,o),Ee(i,o))},e.prototype.__iterator=function(n,i){var o=i?this.size:0,s=ni(this,i);return new I(function(){var a=s();return a===ae?H():q(n,i?--o:o++,a)})},e.prototype.__iterate=function(n,i){for(var o=i?this.size:0,s=ni(this,i),a;(a=s())!==ae&&n(a,i?--o:o++,this)!==!1;);return o},e.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?le(this._origin,this._capacity,this._level,this._root,this._tail,n,this.__hash):this.size===0?Ke():(this.__ownerID=n,this.__altered=!1,this)},e}(zt);g.isList=nr;var L=g.prototype;L[po]=!0;L[Oe]=L.remove;L.merge=L.concat;L.setIn=cn;L.deleteIn=L.removeIn=pn;L.update=hn;L.updateIn=dn;L.mergeIn=_n;L.mergeDeepIn=gn;L.withMutations=xe;L.wasAltered=yn;L.asImmutable=ze;L["@@transducer/init"]=L.asMutable=$e;L["@@transducer/step"]=function(t,e){return t.push(e)};L["@@transducer/result"]=function(t){return t.asImmutable()};var St=function(e,r){this.array=e,this.ownerID=r};St.prototype.removeBefore=function(e,r,n){if(n===r?1<<r:this.array.length===0)return this;var i=n>>>r&Y;if(i>=this.array.length)return new St([],e);var o=i===0,s;if(r>0){var a=this.array[i];if(s=a&&a.removeBefore(e,r-z,n),s===a&&o)return this}if(o&&!s)return this;var u=Kt(this,e);if(!o)for(var f=0;f<i;f++)u.array[f]=void 0;return s&&(u.array[i]=s),u};St.prototype.removeAfter=function(e,r,n){if(n===(r?1<<r:0)||this.array.length===0)return this;var i=n-1>>>r&Y;if(i>=this.array.length)return this;var o;if(r>0){var s=this.array[i];if(o=s&&s.removeAfter(e,r-z,n),o===s&&i===this.array.length-1)return this}var a=Kt(this,e);return a.array.splice(i+1),o&&(a.array[i]=o),a};var ae={};function ni(t,e){var r=t._origin,n=t._capacity,i=pe(n),o=t._tail;return s(t._root,t._level,0);function s(f,c,l){return c===0?a(f,l):u(f,c,l)}function a(f,c){var l=c===i?o&&o.array:f&&f.array,p=c>r?0:r-c,h=n-c;return h>et&&(h=et),function(){if(p===h)return ae;var d=e?--h:p++;return l&&l[d]}}function u(f,c,l){var p,h=f&&f.array,d=l>r?0:r-l>>c,y=(n-l>>c)+1;return y>et&&(y=et),function(){for(;;){if(p){var b=p();if(b!==ae)return b;p=null}if(d===y)return ae;var P=e?--y:d++;p=s(h&&h[P],c-z,l+(P<<c))}}}}function le(t,e,r,n,i,o,s){var a=Object.create(L);return a.size=e-t,a._origin=t,a._capacity=e,a._level=r,a._root=n,a._tail=i,a.__ownerID=o,a.__hash=s,a.__altered=!1,a}var ii;function Ke(){return ii||(ii=le(0,0,z))}function va(t,e,r){if(e=Ot(t,e),e!==e)return t;if(e>=t.size||e<0)return t.withMutations(function(s){e<0?bt(s,e).set(0,r):bt(s,0,e+1).set(e,r)});e+=t._origin;var n=t._tail,i=t._root,o=Mr();return e>=pe(t._capacity)?n=Tr(n,t.__ownerID,0,e,r,o):i=Tr(i,t.__ownerID,t._level,e,r,o),o.value?t.__ownerID?(t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t):le(t._origin,t._capacity,t._level,i,n):t}function Tr(t,e,r,n,i,o){var s=n>>>r&Y,a=t&&s<t.array.length;if(!a&&i===void 0)return t;var u;if(r>0){var f=t&&t.array[s],c=Tr(f,e,r-z,n,i,o);return c===f?t:(u=Kt(t,e),u.array[s]=c,u)}return a&&t.array[s]===i?t:(o&&rt(o),u=Kt(t,e),i===void 0&&s===u.array.length-1?u.array.pop():u.array[s]=i,u)}function Kt(t,e){return e&&t&&e===t.ownerID?t:new St(t?t.array.slice():[],e)}function ho(t,e){if(e>=pe(t._capacity))return t._tail;if(e<1<<t._level+z){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&Y],n-=z;return r}}function bt(t,e,r){e!==void 0&&(e|=0),r!==void 0&&(r|=0);var n=t.__ownerID||new Yr,i=t._origin,o=t._capacity,s=i+e,a=r===void 0?o:r<0?o+r:i+r;if(s===i&&a===o)return t;if(s>=a)return t.clear();for(var u=t._level,f=t._root,c=0;s+c<0;)f=new St(f&&f.array.length?[void 0,f]:[],n),u+=z,c+=1<<u;c&&(s+=c,i+=c,a+=c,o+=c);for(var l=pe(o),p=pe(a);p>=1<<u+z;)f=new St(f&&f.array.length?[f]:[],n),u+=z;var h=t._tail,d=p<l?ho(t,a-1):p>l?new St([],n):h;if(h&&p>l&&s<o&&h.array.length){f=Kt(f,n);for(var y=f,b=u;b>z;b-=z){var P=l>>>b&Y;y=y.array[P]=Kt(y.array[P],n)}y.array[l>>>z&Y]=h}if(a<o&&(d=d&&d.removeAfter(n,0,a)),s>=p)s-=p,a-=p,u=z,f=null,d=d&&d.removeBefore(n,0,s);else if(s>i||p<l){for(c=0;f;){var v=s>>>u&Y;if(v!==p>>>u&Y)break;v&&(c+=(1<<u)*v),u-=z,f=f.array[v]}f&&s>i&&(f=f.removeBefore(n,u,s-c)),f&&p<l&&(f=f.removeAfter(n,u,p-c)),c&&(s-=c,a-=c)}return t.__ownerID?(t.size=a-s,t._origin=s,t._capacity=a,t._level=u,t._root=f,t._tail=d,t.__hash=void 0,t.__altered=!0,t):le(s,a,u,f,d)}function pe(t){return t<et?0:t-1>>>z<<z}var ct=function(t){function e(r){return r==null?ne():Xe(r)?r:ne().withMutations(function(n){var i=st(r);Z(i.size),i.forEach(function(o,s){return n.set(s,o)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("OrderedMap {","}")},e.prototype.get=function(n,i){var o=this._map.get(n);return o!==void 0?this._list.get(o)[1]:i},e.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):ne()},e.prototype.set=function(n,i){return si(this,n,i)},e.prototype.remove=function(n){return si(this,n,w)},e.prototype.__iterate=function(n,i){var o=this;return this._list.__iterate(function(s){return s&&n(s[1],s[0],o)},i)},e.prototype.__iterator=function(n,i){return this._list.fromEntrySeq().__iterator(n,i)},e.prototype.__ensureOwner=function(n){if(n===this.__ownerID)return this;var i=this._map.__ensureOwner(n),o=this._list.__ensureOwner(n);return n?Sn(i,o,n,this.__hash):this.size===0?ne():(this.__ownerID=n,this.__altered=!1,this._map=i,this._list=o,this)},e}(_);ct.isOrderedMap=Xe;ct.prototype[Ht]=!0;ct.prototype[Oe]=ct.prototype.remove;function Sn(t,e,r,n){var i=Object.create(ct.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}var oi;function ne(){return oi||(oi=Sn(ut(),Ke()))}function si(t,e,r){var n=t._map,i=t._list,o=n.get(e),s=o!==void 0,a,u;if(r===w){if(!s)return t;i.size>=et&&i.size>=n.size*2?(u=i.filter(function(f,c){return f!==void 0&&o!==c}),a=u.toKeyedSeq().map(function(f){return f[0]}).flip().toMap(),t.__ownerID&&(a.__ownerID=u.__ownerID=t.__ownerID)):(a=n.remove(e),u=o===i.size-1?i.pop():i.set(o,void 0))}else if(s){if(r===i.get(o)[1])return t;a=n,u=i.set(o,[e,r])}else a=n.set(e,i.size),u=i.set(i.size,[e,r]);return t.__ownerID?(t.size=a.size,t._map=a,t._list=u,t.__hash=void 0,t.__altered=!0,t):Sn(a,u)}var _o="@@__IMMUTABLE_STACK__@@";function he(t){return!!(t&&t[_o])}var Ae=function(t){function e(r){return r==null?ke():he(r)?r:ke().pushAll(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("Stack [","]")},e.prototype.get=function(n,i){var o=this._head;for(n=Ot(this,n);o&&n--;)o=o.next;return o?o.value:i},e.prototype.peek=function(){return this._head&&this._head.value},e.prototype.push=function(){var n=arguments;if(arguments.length===0)return this;for(var i=this.size+arguments.length,o=this._head,s=arguments.length-1;s>=0;s--)o={value:n[s],next:o};return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):ie(i,o)},e.prototype.pushAll=function(n){if(n=t(n),n.size===0)return this;if(this.size===0&&he(n))return n;Z(n.size);var i=this.size,o=this._head;return n.__iterate(function(s){i++,o={value:s,next:o}},!0),this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):ie(i,o)},e.prototype.pop=function(){return this.slice(1)},e.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):ke()},e.prototype.slice=function(n,i){if(we(n,i,this.size))return this;var o=Vt(n,this.size),s=Ee(i,this.size);if(s!==this.size)return t.prototype.slice.call(this,n,i);for(var a=this.size-o,u=this._head;o--;)u=u.next;return this.__ownerID?(this.size=a,this._head=u,this.__hash=void 0,this.__altered=!0,this):ie(a,u)},e.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?ie(this.size,this._head,n,this.__hash):this.size===0?ke():(this.__ownerID=n,this.__altered=!1,this)},e.prototype.__iterate=function(n,i){var o=this;if(i)return new xt(this.toArray()).__iterate(function(u,f){return n(u,f,o)},i);for(var s=0,a=this._head;a&&n(a.value,s++,this)!==!1;)a=a.next;return s},e.prototype.__iterator=function(n,i){if(i)return new xt(this.toArray()).__iterator(n,i);var o=0,s=this._head;return new I(function(){if(s){var a=s.value;return s=s.next,q(n,o++,a)}return H()})},e}(zt);Ae.isStack=he;var G=Ae.prototype;G[_o]=!0;G.shift=G.pop;G.unshift=G.push;G.unshiftAll=G.pushAll;G.withMutations=xe;G.wasAltered=yn;G.asImmutable=ze;G["@@transducer/init"]=G.asMutable=$e;G["@@transducer/step"]=function(t,e){return t.unshift(e)};G["@@transducer/result"]=function(t){return t.asImmutable()};function ie(t,e,r,n){var i=Object.create(G);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}var ai;function ke(){return ai||(ai=ie(0))}var go="@@__IMMUTABLE_SET__@@";function qe(t){return!!(t&&t[go])}function ir(t){return qe(t)&&tt(t)}function On(t,e){if(t===e)return!0;if(!U(e)||t.size!==void 0&&e.size!==void 0&&t.size!==e.size||t.__hash!==void 0&&e.__hash!==void 0&&t.__hash!==e.__hash||x(t)!==x(e)||K(t)!==K(e)||tt(t)!==tt(e))return!1;if(t.size===0&&e.size===0)return!0;var r=!Ft(t);if(tt(t)){var n=t.entries();return e.every(function(u,f){var c=n.next().value;return c&&N(c[1],u)&&(r||N(c[0],f))})&&n.next().done}var i=!1;if(t.size===void 0)if(e.size===void 0)typeof t.cacheResult=="function"&&t.cacheResult();else{i=!0;var o=t;t=e,e=o}var s=!0,a=e.__iterate(function(u,f){if(r?!t.has(u):i?!N(u,t.get(f,w)):!N(t.get(f,w),u))return s=!1,!1});return s&&t.size===a}function At(t,e){var r=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}function Ve(t){if(!t||typeof t!="object")return t;if(!U(t)){if(!wt(t))return t;t=W(t)}if(x(t)){var e={};return t.__iterate(function(n,i){e[i]=Ve(n)}),e}var r=[];return t.__iterate(function(n){r.push(Ve(n))}),r}var Xt=function(t){function e(r){return r==null?oe():qe(r)&&!tt(r)?r:oe().withMutations(function(n){var i=t(r);Z(i.size),i.forEach(function(o){return n.add(o)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(n){return this(st(n).keySeq())},e.intersect=function(n){return n=A(n).toArray(),n.length?B.intersect.apply(e(n.pop()),n):oe()},e.union=function(n){return n=A(n).toArray(),n.length?B.union.apply(e(n.pop()),n):oe()},e.prototype.toString=function(){return this.__toString("Set {","}")},e.prototype.has=function(n){return this._map.has(n)},e.prototype.add=function(n){return Ne(this,this._map.set(n,n))},e.prototype.remove=function(n){return Ne(this,this._map.remove(n))},e.prototype.clear=function(){return Ne(this,this._map.clear())},e.prototype.map=function(n,i){var o=this,s=!1,a=Ne(this,this._map.mapEntries(function(u){var f=u[1],c=n.call(i,f,f,o);return c!==f&&(s=!0),[c,c]},i));return s?a:this},e.prototype.union=function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];return n=n.filter(function(o){return o.size!==0}),n.length===0?this:this.size===0&&!this.__ownerID&&n.length===1?this.constructor(n[0]):this.withMutations(function(o){for(var s=0;s<n.length;s++)typeof n[s]=="string"?o.add(n[s]):t(n[s]).forEach(function(a){return o.add(a)})})},e.prototype.intersect=function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];if(n.length===0)return this;n=n.map(function(s){return t(s)});var o=[];return this.forEach(function(s){n.every(function(a){return a.includes(s)})||o.push(s)}),this.withMutations(function(s){o.forEach(function(a){s.remove(a)})})},e.prototype.subtract=function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];if(n.length===0)return this;n=n.map(function(s){return t(s)});var o=[];return this.forEach(function(s){n.some(function(a){return a.includes(s)})&&o.push(s)}),this.withMutations(function(s){o.forEach(function(a){s.remove(a)})})},e.prototype.sort=function(n){return $t(Lt(this,n))},e.prototype.sortBy=function(n,i){return $t(Lt(this,i,n))},e.prototype.wasAltered=function(){return this._map.wasAltered()},e.prototype.__iterate=function(n,i){var o=this;return this._map.__iterate(function(s){return n(s,s,o)},i)},e.prototype.__iterator=function(n,i){return this._map.__iterator(n,i)},e.prototype.__ensureOwner=function(n){if(n===this.__ownerID)return this;var i=this._map.__ensureOwner(n);return n?this.__make(i,n):this.size===0?this.__empty():(this.__ownerID=n,this._map=i,this)},e}(Yt);Xt.isSet=qe;var B=Xt.prototype;B[go]=!0;B[Oe]=B.remove;B.merge=B.concat=B.union;B.withMutations=xe;B.asImmutable=ze;B["@@transducer/init"]=B.asMutable=$e;B["@@transducer/step"]=function(t,e){return t.add(e)};B["@@transducer/result"]=function(t){return t.asImmutable()};B.__empty=oe;B.__make=yo;function Ne(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:e.size===0?t.__empty():t.__make(e)}function yo(t,e){var r=Object.create(B);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}var ui;function oe(){return ui||(ui=yo(ut()))}var wn=function(t){function e(r,n,i){if(!(this instanceof e))return new e(r,n,i);if(on(i!==0,"Cannot step a Range by 0"),r=r||0,n===void 0&&(n=1/0),i=i===void 0?1:Math.abs(i),n<r&&(i=-i),this._start=r,this._end=n,this._step=i,this.size=Math.max(0,Math.ceil((n-r)/i-1)+1),this.size===0){if(br)return br;br=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step!==1?" by "+this._step:"")+" ]"},e.prototype.get=function(n,i){return this.has(n)?this._start+Ot(this,n)*this._step:i},e.prototype.includes=function(n){var i=(n-this._start)/this._step;return i>=0&&i<this.size&&i===Math.floor(i)},e.prototype.slice=function(n,i){return we(n,i,this.size)?this:(n=Vt(n,this.size),i=Ee(i,this.size),i<=n?new e(0,0):new e(this.get(n,this._end),this.get(i,this._end),this._step))},e.prototype.indexOf=function(n){var i=n-this._start;if(i%this._step===0){var o=i/this._step;if(o>=0&&o<this.size)return o}return-1},e.prototype.lastIndexOf=function(n){return this.indexOf(n)},e.prototype.__iterate=function(n,i){for(var o=this.size,s=this._step,a=i?this._start+(o-1)*s:this._start,u=0;u!==o&&n(a,i?o-++u:u++,this)!==!1;)a+=i?-s:s;return u},e.prototype.__iterator=function(n,i){var o=this.size,s=this._step,a=i?this._start+(o-1)*s:this._start,u=0;return new I(function(){if(u===o)return H();var f=a;return a+=i?-s:s,q(n,i?o-++u:u++,f)})},e.prototype.equals=function(n){return n instanceof e?this._start===n._start&&this._end===n._end&&this._step===n._step:On(this,n)},e}(at),br;function or(t,e,r){for(var n=Qi(e),i=0;i!==n.length;)if(t=er(t,n[i++],w),t===w)return r;return t}function vo(t,e){return or(this,t,e)}function En(t,e){return or(t,e,w)!==w}function ma(t){return En(this,t)}function mo(){Z(this.size);var t={};return this.__iterate(function(e,r){t[r]=e}),t}A.isIterable=U;A.isKeyed=x;A.isIndexed=K;A.isAssociative=Ft;A.isOrdered=tt;A.Iterator=I;At(A,{toArray:function(){Z(this.size);var e=new Array(this.size||0),r=x(this),n=0;return this.__iterate(function(i,o){e[n++]=r?[o,i]:i}),e},toIndexedSeq:function(){return new Wi(this)},toJS:function(){return Ve(this)},toKeyedSeq:function(){return new Qe(this,!0)},toMap:function(){return _(this.toKeyedSeq())},toObject:mo,toOrderedMap:function(){return ct(this.toKeyedSeq())},toOrderedSet:function(){return $t(x(this)?this.valueSeq():this)},toSet:function(){return Xt(x(this)?this.valueSeq():this)},toSetSeq:function(){return new Vi(this)},toSeq:function(){return K(this)?this.toIndexedSeq():x(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ae(x(this)?this.valueSeq():this)},toList:function(){return g(x(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(e,r){return this.size===0?e+r:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+r},concat:function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return M(this,na(this,e))},includes:function(e){return this.some(function(r){return N(r,e)})},entries:function(){return this.__iterator(nt)},every:function(e,r){Z(this.size);var n=!0;return this.__iterate(function(i,o,s){if(!e.call(r,i,o,s))return n=!1,!1}),n},filter:function(e,r){return M(this,Gi(this,e,r,!0))},partition:function(e,r){return ea(this,e,r)},find:function(e,r,n){var i=this.findEntry(e,r);return i?i[1]:n},forEach:function(e,r){return Z(this.size),this.__iterate(r?e.bind(r):e)},join:function(e){Z(this.size),e=e!==void 0?""+e:",";var r="",n=!0;return this.__iterate(function(i){n?n=!1:r+=e,r+=i!=null?i.toString():""}),r},keys:function(){return this.__iterator(je)},map:function(e,r){return M(this,Hi(this,e,r))},reduce:function(e,r,n){return fi(this,e,r,n,arguments.length<2,!1)},reduceRight:function(e,r,n){return fi(this,e,r,n,arguments.length<2,!0)},reverse:function(){return M(this,tn(this,!0))},slice:function(e,r){return M(this,en(this,e,r,!0))},some:function(e,r){Z(this.size);var n=!1;return this.__iterate(function(i,o,s){if(e.call(r,i,o,s))return n=!0,!1}),n},sort:function(e){return M(this,Lt(this,e))},values:function(){return this.__iterator(ft)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(e,r){return Ct(e?this.toSeq().filter(e,r):this)},countBy:function(e,r){return Qs(this,e,r)},equals:function(e){return On(this,e)},entrySeq:function(){var e=this;if(e._cache)return new xt(e._cache);var r=e.toSeq().map(Sa).toIndexedSeq();return r.fromEntrySeq=function(){return e.toSeq()},r},filterNot:function(e,r){return this.filter(Sr(e),r)},findEntry:function(e,r,n){var i=n;return this.__iterate(function(o,s,a){if(e.call(r,o,s,a))return i=[s,o],!1}),i},findKey:function(e,r){var n=this.findEntry(e,r);return n&&n[0]},findLast:function(e,r,n){return this.toKeyedSeq().reverse().find(e,r,n)},findLastEntry:function(e,r,n){return this.toKeyedSeq().reverse().findEntry(e,r,n)},findLastKey:function(e,r){return this.toKeyedSeq().reverse().findKey(e,r)},first:function(e){return this.find(zi,null,e)},flatMap:function(e,r){return M(this,ia(this,e,r))},flatten:function(e){return M(this,Xi(this,e,!0))},fromEntrySeq:function(){return new Fi(this)},get:function(e,r){return this.find(function(n,i){return N(i,e)},void 0,r)},getIn:vo,groupBy:function(e,r){return ta(this,e,r)},has:function(e){return this.get(e,w)!==w},hasIn:ma,isSubset:function(e){return e=typeof e.includes=="function"?e:A(e),this.every(function(r){return e.includes(r)})},isSuperset:function(e){return e=typeof e.isSubset=="function"?e:A(e),e.isSubset(this)},keyOf:function(e){return this.findKey(function(r){return N(r,e)})},keySeq:function(){return this.toSeq().map(ba).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Ce(this,e)},maxBy:function(e,r){return Ce(this,r,e)},min:function(e){return Ce(this,e?ci(e):pi)},minBy:function(e,r){return Ce(this,r?ci(r):pi,e)},rest:function(){return this.slice(1)},skip:function(e){return e===0?this:this.slice(Math.max(0,e))},skipLast:function(e){return e===0?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,r){return M(this,Ji(this,e,r,!0))},skipUntil:function(e,r){return this.skipWhile(Sr(e),r)},sortBy:function(e,r){return M(this,Lt(this,r,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,r){return M(this,ra(this,e,r))},takeUntil:function(e,r){return this.takeWhile(Sr(e),r)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Oa(this))}});var V=A.prototype;V[Ti]=!0;V[Ge]=V.values;V.toJSON=V.toArray;V.__toStringMapper=ue;V.inspect=V.toSource=function(){return this.toString()};V.chain=V.flatMap;V.contains=V.includes;At(st,{flip:function(){return M(this,Yi(this))},mapEntries:function(e,r){var n=this,i=0;return M(this,this.toSeq().map(function(o,s){return e.call(r,[s,o],i++,n)}).fromEntrySeq())},mapKeys:function(e,r){var n=this;return M(this,this.toSeq().flip().map(function(i,o){return e.call(r,i,o,n)}).flip())}});var Te=st.prototype;Te[Ci]=!0;Te[Ge]=V.entries;Te.toJSON=mo;Te.__toStringMapper=function(t,e){return ue(e)+": "+ue(t)};At(zt,{toKeyedSeq:function(){return new Qe(this,!1)},filter:function(e,r){return M(this,Gi(this,e,r,!1))},findIndex:function(e,r){var n=this.findEntry(e,r);return n?n[0]:-1},indexOf:function(e){var r=this.keyOf(e);return r===void 0?-1:r},lastIndexOf:function(e){var r=this.lastKeyOf(e);return r===void 0?-1:r},reverse:function(){return M(this,tn(this,!1))},slice:function(e,r){return M(this,en(this,e,r,!1))},splice:function(e,r){var n=arguments.length;if(r=Math.max(r||0,0),n===0||n===2&&!r)return this;e=Vt(e,e<0?this.count():this.size);var i=this.slice(0,e);return M(this,n===1?i:i.concat(pt(arguments,2),this.slice(e+r)))},findLastIndex:function(e,r){var n=this.findLastEntry(e,r);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return M(this,Xi(this,e,!1))},get:function(e,r){return e=Ot(this,e),e<0||this.size===1/0||this.size!==void 0&&e>this.size?r:this.find(function(n,i){return i===e},void 0,r)},has:function(e){return e=Ot(this,e),e>=0&&(this.size!==void 0?this.size===1/0||e<this.size:this.indexOf(e)!==-1)},interpose:function(e){return M(this,oa(this,e))},interleave:function(){var e=[this].concat(pt(arguments)),r=Le(this.toSeq(),at.of,e),n=r.flatten(!0);return r.size&&(n.size=r.size*e.length),M(this,n)},keySeq:function(){return wn(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,r){return M(this,Ji(this,e,r,!1))},zip:function(){var e=[this].concat(pt(arguments));return M(this,Le(this,li,e))},zipAll:function(){var e=[this].concat(pt(arguments));return M(this,Le(this,li,e,!0))},zipWith:function(e){var r=pt(arguments);return r[0]=this,M(this,Le(this,e,r))}});var Zt=zt.prototype;Zt[Li]=!0;Zt[Ht]=!0;At(Yt,{get:function(e,r){return this.has(e)?e:r},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}});var Bt=Yt.prototype;Bt.has=V.includes;Bt.contains=Bt.includes;Bt.keys=Bt.values;At(jt,Te);At(at,Zt);At(Jt,Bt);function fi(t,e,r,n,i,o){return Z(t.size),t.__iterate(function(s,a,u){i?(i=!1,r=s):r=e.call(n,r,s,a,u)},o),r}function ba(t,e){return e}function Sa(t,e){return[e,t]}function Sr(t){return function(){return!t.apply(this,arguments)}}function ci(t){return function(){return-t.apply(this,arguments)}}function li(){return pt(arguments)}function pi(t,e){return t<e?1:t>e?-1:0}function Oa(t){if(t.size===1/0)return 0;var e=tt(t),r=x(t),n=e?1:0,i=t.__iterate(r?e?function(o,s){n=31*n+hi(F(o),F(s))|0}:function(o,s){n=n+hi(F(o),F(s))|0}:e?function(o){n=31*n+F(o)|0}:function(o){n=n+F(o)|0});return wa(i,n)}function wa(t,e){return e=re(e,3432918353),e=re(e<<15|e>>>-15,461845907),e=re(e<<13|e>>>-13,5),e=(e+3864292196|0)^t,e=re(e^e>>>16,2246822507),e=re(e^e>>>13,3266489909),e=Ze(e^e>>>16),e}function hi(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}var $t=function(t){function e(r){return r==null?Cr():ir(r)?r:Cr().withMutations(function(n){var i=Yt(r);Z(i.size),i.forEach(function(o){return n.add(o)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(n){return this(st(n).keySeq())},e.prototype.toString=function(){return this.__toString("OrderedSet {","}")},e}(Xt);$t.isOrderedSet=ir;var qt=$t.prototype;qt[Ht]=!0;qt.zip=Zt.zip;qt.zipWith=Zt.zipWith;qt.zipAll=Zt.zipAll;qt.__empty=Cr;qt.__make=bo;function bo(t,e){var r=Object.create(qt);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}var di;function Cr(){return di||(di=bo(ne()))}var So={LeftThenRight:-1,RightThenLeft:1};function Ea(t){if(It(t))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(J(t))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(t===null||typeof t!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var O=function(e,r){var n;Ea(e);var i=function(a){var u=this;if(a instanceof i)return a;if(!(this instanceof i))return new i(a);if(!n){n=!0;var f=Object.keys(e),c=o._indices={};o._name=r,o._keys=f,o._defaultValues=e;for(var l=0;l<f.length;l++){var p=f[l];c[p]=l,o[p]?typeof console=="object"&&console.warn&&console.warn("Cannot define "+jn(this)+' with property "'+p+'" since that property name is part of the Record API.'):Ia(o,p)}}return this.__ownerID=void 0,this._values=g().withMutations(function(h){h.setSize(u._keys.length),st(a).forEach(function(d,y){h.set(u._indices[y],d===u._defaultValues[y]?void 0:d)})}),this},o=i.prototype=Object.create($);return o.constructor=i,r&&(i.displayName=r),i};O.prototype.toString=function(){for(var e=jn(this)+" { ",r=this._keys,n,i=0,o=r.length;i!==o;i++)n=r[i],e+=(i?", ":"")+n+": "+ue(this.get(n));return e+" }"};O.prototype.equals=function(e){return this===e||It(e)&&Dt(this).equals(Dt(e))};O.prototype.hashCode=function(){return Dt(this).hashCode()};O.prototype.has=function(e){return this._indices.hasOwnProperty(e)};O.prototype.get=function(e,r){if(!this.has(e))return r;var n=this._indices[e],i=this._values.get(n);return i===void 0?this._defaultValues[e]:i};O.prototype.set=function(e,r){if(this.has(e)){var n=this._values.set(this._indices[e],r===this._defaultValues[e]?void 0:r);if(n!==this._values&&!this.__ownerID)return In(this,n)}return this};O.prototype.remove=function(e){return this.set(e)};O.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:In(this,e)};O.prototype.wasAltered=function(){return this._values.wasAltered()};O.prototype.toSeq=function(){return Dt(this)};O.prototype.toJS=function(){return Ve(this)};O.prototype.entries=function(){return this.__iterator(nt)};O.prototype.__iterator=function(e,r){return Dt(this).__iterator(e,r)};O.prototype.__iterate=function(e,r){return Dt(this).__iterate(e,r)};O.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var r=this._values.__ensureOwner(e);return e?In(this,r,e):(this.__ownerID=e,this._values=r,this)};O.isRecord=It;O.getDescriptiveName=jn;var $=O.prototype;$[Ni]=!0;$[Oe]=$.remove;$.deleteIn=$.removeIn=pn;$.getIn=vo;$.hasIn=V.hasIn;$.merge=eo;$.mergeWith=ro;$.mergeIn=_n;$.mergeDeep=uo;$.mergeDeepWith=fo;$.mergeDeepIn=gn;$.setIn=cn;$.update=hn;$.updateIn=dn;$.withMutations=xe;$.asMutable=$e;$.asImmutable=ze;$[Ge]=$.entries;$.toJSON=$.toObject=V.toObject;$.inspect=$.toSource=function(){return this.toString()};function In(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._values=e,n.__ownerID=r,n}function jn(t){return t.constructor.displayName||t.constructor.name||"Record"}function Dt(t){return Zr(t._keys.map(function(e){return[e,t.get(e)]}))}function Ia(t,e){try{Object.defineProperty(t,e,{get:function(){return this.get(e)}
1,set:function(r){on(this.__ownerID,"Cannot set on an immutable record."),this.set(e,r)}})}catch{}}var Oo=function(t){function e(r,n){if(!(this instanceof e))return new e(r,n);if(this._value=r,this.size=n===void 0?1/0:Math.max(0,n),this.size===0){if(Or)return Or;Or=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},e.prototype.get=function(n,i){return this.has(n)?this._value:i},e.prototype.includes=function(n){return N(this._value,n)},e.prototype.slice=function(n,i){var o=this.size;return we(n,i,o)?this:new e(this._value,Ee(i,o)-Vt(n,o))},e.prototype.reverse=function(){return this},e.prototype.indexOf=function(n){return N(this._value,n)?0:-1},e.prototype.lastIndexOf=function(n){return N(this._value,n)?this.size:-1},e.prototype.__iterate=function(n,i){for(var o=this.size,s=0;s!==o&&n(this._value,i?o-++s:s++,this)!==!1;);return s},e.prototype.__iterator=function(n,i){var o=this,s=this.size,a=0;return new I(function(){return a===s?H():q(n,i?s-++a:a++,o._value)})},e.prototype.equals=function(n){return n instanceof e?N(this._value,n._value):On(n)},e}(at),Or;function Mt(t,e){return wo([],e||ja,t,"",e&&e.length>2?[]:void 0,{"":t})}function wo(t,e,r,n,i,o){if(typeof r!="string"&&!J(r)&&(Gr(r)||Hr(r)||tr(r))){if(~t.indexOf(r))throw new TypeError("Cannot convert circular structure to Immutable");t.push(r),i&&n!==""&&i.push(n);var s=e.call(o,n,W(r).map(function(a,u){return wo(t,e,a,u,i,r)}),i&&i.slice());return t.pop(),i&&i.pop(),s}return r}function ja(t,e){return K(e)?e.toList():x(e)?e.toMap():e.toSet()}var Eo="4.3.4",Pa={version:Eo,Collection:A,Iterable:A,Seq:W,Map:_,OrderedMap:ct,List:g,Stack:Ae,Set:Xt,OrderedSet:$t,PairSorting:So,Record:O,Range:wn,Repeat:Oo,is:N,fromJS:Mt,hash:F,isImmutable:J,isCollection:U,isKeyed:x,isIndexed:K,isAssociative:Ft,isOrdered:tt,isValueObject:Ue,isPlainObject:tr,isSeq:Ie,isList:nr,isMap:Pe,isOrderedMap:Xe,isStack:he,isSet:qe,isOrderedSet:ir,isRecord:It,get:er,getIn:or,has:sn,hasIn:En,merge:io,mergeDeep:so,mergeWith:oo,mergeDeepWith:ao,remove:an,removeIn:ln,set:un,setIn:fn,update:rr,updateIn:Pt},Ra=A;const Ma=Object.freeze(Object.defineProperty({__proto__:null,Collection:A,Iterable:Ra,List:g,Map:_,OrderedMap:ct,OrderedSet:$t,PairSorting:So,Range:wn,Record:O,Repeat:Oo,Seq:W,Set:Xt,Stack:Ae,default:Pa,fromJS:Mt,get:er,getIn:or,has:sn,hasIn:En,hash:F,is:N,isAssociative:Ft,isCollection:U,isImmutable:J,isIndexed:K,isKeyed:x,isList:nr,isMap:Pe,isOrdered:tt,isOrderedMap:Xe,isOrderedSet:ir,isPlainObject:tr,isRecord:It,isSeq:Ie,isSet:qe,isStack:he,isValueObject:Ue,merge:io,mergeDeep:so,mergeDeepWith:ao,mergeWith:oo,remove:an,removeIn:ln,set:un,setIn:fn,update:rr,updateIn:Pt,version:Eo},Symbol.toStringTag,{value:"Module"}));function Et(t){return t.displayName||t.name||"Anonymous"}const Io=(t,e)=>g.isList(e)||_.isMap(e)||O.isRecord(e)?e.equals(t):Array.isArray(e)?t===e:typeof e=="object"?Object.is(t,e):t===e,jo=(t,e)=>{const r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length||!r.every(i=>n.includes(i)))return!1;for(const i in e)if(!Io(t[i],e[i]))return!1;return!0},xa=jo,it=t=>{const e=m.memo(t,jo);return e.displayName=Et(t),e},$a=Object.freeze(Object.defineProperty({__proto__:null,getDisplayName:Et,isEqual:xa,memo:it},Symbol.toStringTag,{value:"Module"})),za=["children"];function Lr(){return Lr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Lr.apply(this,arguments)}function _i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Aa(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?_i(Object(r),!0).forEach(function(n){qa(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_i(Object(r)).forEac
1h(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function qa(t,e,r){return e=Ta(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ta(t){var e=Ca(t,"string");return typeof e=="symbol"?e:String(e)}function Ca(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function La(t,e){if(t==null)return{};var r=ka(t,e),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function ka(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,o;for(o=0;o<n.length;o++)i=n[o],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}const Po=m.createContext({});function Na(t){let{children:e}=t,r=La(t,za);const n=m.useMemo(()=>Aa({},r),[...Object.values(r)]);return m.createElement(Po.Provider,{value:n},e)}const sr=()=>m.useContext(Po),Ka=t=>{const e=r=>{const n=sr();return m.createElement(t,Lr({},n,r))};return e.displayName="WithUIMeta(".concat(Et(t),")"),e},Ba=Object.freeze(Object.defineProperty({__proto__:null,UIMetaProvider:Na,useUIMeta:sr,withUIMeta:Ka},Symbol.toStringTag,{value:"Module"})),Ro=O({errors:_({}),childErrors:_({}),errCount:0,errorsToJS:function(){return this.get("errors").toJS()},getErrors:function(){return this.get("errors")},getChildErrors:function(){return this.get("childErrors")},addError:function(t,e=new _){let r=this.getIn(["errors",t]);return g.isList(r)||(r=new g),r=r.push(e),this.setIn(["errors",t],r).set("errCount",this.errCount+1)},addChildError:function(t,e=new _){let r=this.getIn(["childErrors",t]);return g.isList(r)||(r=new g),r=r.push(e),this.setIn(["childErrors",t],r).set("errCount",this.errCount+1)},addChildErrors:function(t){let e=this;return t.getChildErrors().keySeq().forEach(r=>{t.getChildError(r).forEach(n=>{e=e.addChildError(r,n)})}),e},addErrors:function(t){let e=this;return t.getErrors().keySeq().forEach(r=>{t.getError(r).forEach(n=>{e=e.addError(r,n)})}),e},addErrorsToChild:function(t){let e=this;return t.getErrors().keySeq().forEach(r=>{t.getError(r).forEach(n=>{e=e.addChildError(r,n)})}),e},hasError:function(t=void 0){let e=this.getIn(t?["errors",t]:["errors"]);return!!(g.isList(e)&&e.size||_.isMap(e)&&e.keySeq().size)},getError:function(t){return this.getIn(["errors",t])||new g},getChildError:function(t){return this.getIn(["childErrors",t])||new g}}),lt=()=>new Ro,Da=Object.freeze(Object.defineProperty({__proto__:null,ValidatorErrors:Ro,createValidatorErrors:lt},Symbol.toStringTag,{value:"Module"})),Mo=m.createContext({});function Ua({children:t,onChange:e}){const r=m.useMemo(()=>({onChange:e}),[e]);return m.createElement(Mo.Provider,{value:r},t)}function xo(){return m.useContext(Mo)}function kr(){return kr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},kr.apply(this,arguments)}const Wa=t=>{const e=r=>{const{store:n,showValidity:i}=Qt(),{onChange:o}=xo();return m.createElement(t,kr({},r,{validity:r.storeKeys.size?n==null?void 0:n.getValidity().getIn(r.storeKeys):n==null?void 0:n.getValidity(),onChange:o,showValidity:r.showValidity||i}))};return e.displayName="ExtractValidity(".concat(Et(t),")"),e};function Nr(){return Nr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Nr.apply(this,arguments)}function ar(t){const e=r=>{const{store:n,showValidity:i}=Qt(),{onChange:o}=xo(),s=n==null?void 0:n.extractValues(r.storeKeys);return m.createElement(t,Nr({},r,{showValidity:r.showValidity||i,onChange:o},s||{}))};return e.displayName="ExtractValue(".concat(Et(t),")"),e}const dt=(t,e)=>!!(typeof t<"u"&&(typeof t=="string"?t===e:t.includes(e))),$o=t=>dt(t,"number")||dt(t,"integer"),Va="internals",gi="values",Fa="validity",zo=O({values:void 0,internals:_(),validity:_(),meta:_(),valuesToJS:function(){const t=this.get(gi);return _.isMap(t)||g.isList(t)||O.isRecord(t)?t.toJS():t},getValues:function(){return this.get(gi)},getInternals:function(){return this.get(Va)},getValidity:function(){return this.get(Fa)},extractValues:function(t){return Pn(t,this)}}),Ao=t=>new zo({values:t,internals:_({internals:g.isList(t)?g():_()}),validity:_(),meta:_()}),Ya=(t="object")=>Ao(t==="array"?g([]):t==="string"?"":t==="number"||t==="integer"?0:t==="boolean"?!1:_()),Ha=(t,e)=>Array.isArray(t)?[e,...t]:t.splice(0,0,e),Ga=(t,e,r)=>{const n=typeof t;
1return!e&&!$o(r)?!1:n==="undefined"?!0:dt(r,"string")&&n==="string"||dt(r,"number")&&(n==="number"||n==="string")||dt(r,"integer")&&(n==="number"||n==="string")?t===""||n==="undefined"||n==="string"&&t.trim().length===0:dt(r,"boolean")&&n==="boolean"?!t:dt(r,"array")&&(g.isList(t)||Array.isArray(t))?g.isList(t)&&t.size===0||Array.isArray(t)&&t.length===0:dt(r,"object")&&(_.isMap(t)||O.isRecord(t)||n==="object")?(_.isMap(t)||O.isRecord(t))&&t.keySeq().size===0||n==="object"&&Object.keys(t).length===0:!1},qo=(t,e)=>t?e.reduce((r,n)=>r==null?void 0:r.concat(n,g([t])),g([t])).splice(-1,1):e,Ja=["children"],Xa=["children","showValidity","onChange","store"];function yi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Za(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?yi(Object(r),!0).forEach(function(n){Qa(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yi(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Qa(t,e,r){return e=tu(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function tu(t){var e=eu(t,"string");return typeof e=="symbol"?e:String(e)}function eu(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function To(t,e){if(t==null)return{};var r=ru(t,e),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function ru(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,o;for(o=0;o<n.length;o++)i=n[o],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}const Co=m.createContext({}),Lo=m.createContext({}),ko=t=>{let{children:e}=t,r=To(t,Ja);const n=m.useMemo(()=>Za({},r),[...Object.values(r)]);return m.createElement(Lo.Provider,{value:n},e)};function nu(t){let{children:e,showValidity:r,onChange:n,store:i}=t,o=To(t,Xa);const s=m.useMemo(()=>({showValidity:r,store:i}),[r,i]);return m.createElement(Co.Provider,{value:s},m.createElement(ko,o,m.createElement(Ua,{onChange:n},e)))}const iu=()=>Qt(),Qt=()=>m.useContext(Co);function No(){return m.useContext(Lo)}function Pn(t,e){return{value:t.size?O.isRecord(e.getValues())||_.isMap(e.getValues())||g.isList(e.getValues())?e.getValues().getIn(t):void 0:e.getValues(),internalValue:t.size?e.getInternals().getIn(qo("internals",t))||_():e.getInternals()}}const ou=Object.freeze(Object.defineProperty({__proto__:null,UIConfigProvider:ko,UIStore:zo,UIStoreProvider:nu,addNestKey:qo,createEmptyStore:Ya,createStore:Ao,doExtractValues:Pn,extractValidity:Wa,extractValue:ar,prependKey:Ha,shouldDeleteOnEmpty:Ga,useUI:iu,useUIConfig:No,useUIStore:Qt},Symbol.toStringTag,{value:"Module"}));function Fe(t){var e;const r=m.useRef(t);return(!J(r.current)&&!O.isRecord(t)||!((e=r.current)!==null&&e!==void 0&&e.equals(t)))&&(r.current=t),r.current}const su=Object.freeze(Object.defineProperty({__proto__:null,useImmutable:Fe},Symbol.toStringTag,{value:"Module"})),au=["StackWrapper","wrapperProps"],uu=["widgets"],fu=["currentPluginIndex"];function de(){return de=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},de.apply(this,arguments)}function Kr(t,e){if(t==null)return{};var r=cu(t,e),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function cu(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,o;for(o=0;o<n.length;o++)i=n[o],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}const lu=lt(),yt=t=>{let{StackWrapper:e,wrapperProps:r}=t,n=Kr(t,au);const i=sr(),{widgets:o}=i,s=Kr(i,uu),a=No(),{level:u=0,parentSchema:f,storeKeys:c=g([]),schemaKeys:l=g([]),schema:p,widgets:h}=n,d=Fe(c),y=Fe(l),b=h||o,P=!!(n.isVirtual||p!=null&&p.get("hidden"));let v=g([]);if(f){let C=f.get("required");C&&(v=C)}const R=m.createElement(Rn,de({},s,a,n,{currentPluginIndex:-1,widgets:b,level:u,storeKeys:d,schemaKeys:y,ownKey:c.last(),requiredList:v,required:!1,errors:lu,isVirtual:P,valid:!0})),j=e&&!P?m.createElement(e,de({schema:p,storeKeys:d,schemaKeys:y},r||{}),R):R;return n.schema?b!=null&&b.ErrorFallback?m.createElement(Bo,{FallbackComponent:b.ErrorFallback,type:p.get("type"),widget:p.get("widget"),storeKeys:d},j):j:null},Ko=(t,{pluginStack:e,WidgetRenderer:r})=>t<e.length?e[t]||(()=>"plugin-error"):r,Rn=t=>{let{currentPluginIndex:e}=t,r=Kr(t,fu);const n=e+1,i=Ko(n,r.widgets);return m.createElement(i,de({},r,{currentPluginIndex:n}))},Mn=it(Rn);function pu(t,e,r){return e=hu(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function hu(t){var e=du(t,"string");return typeof e=="symbol"?e:String(e)}function du(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Bo extends m.Component{constructor(...e){super(...e),pu(this,"state",{error:null})}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,r){console.error(e,r)}
1render(){if(this.state.error){const e=this.props.FallbackComponent;return m.createElement(e,{error:this.state.error,type:this.props.type,widget:this.props.widget,storeKeys:this.props.storeKeys})}return this.props.children}}const _u=Object.freeze(Object.defineProperty({__proto__:null,NextPluginRenderer:Rn,NextPluginRendererMemo:Mn,PluginStack:yt,PluginStackErrorBoundary:Bo,getNextPlugin:Ko},Symbol.toStringTag,{value:"Module"}));function Ye(){return Ye=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ye.apply(this,arguments)}function gu(t){const e=r=>m.createElement(yt,Ye({},r,{WidgetOverride:t}));return e.displayName="ApplyPluginStack(".concat(Et(t),")"),it(e)}function Xc(t,e){const r=n=>m.createElement(yt,Ye({},n,{StackWrapper:t,WidgetOverride:e}));return r.displayName="InjectPluginStack(".concat(Et(t)).concat(e?"(".concat(Et(e),")"):"",")"),it(r)}var ur={};Object.defineProperty(ur,"__esModule",{value:!0});ur.unescapePointer=void 0;var yu=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")};ur.unescapePointer=yu;var fr={};const cr=ot(Ma);Object.defineProperty(fr,"__esModule",{value:!0});var vu=fr.pointerToKeySeq=void 0,mu=cr,bu=ur;function Su(t){var e;return isNaN(t)?!1:(e=parseFloat(t),(e|0)===e)}var Ou=function(e){var r=e.split("/");return r.splice(0,1),r=r.map(function(n){var i=(0,bu.unescapePointer)(n),o=i.trim()!==""&&Number(i);return!isNaN(o)&&Su(o)&&i.indexOf(".")===-1&&(i=parseInt(i)),i}),r.length===1&&r[0]===""&&r.splice(0,1),(0,mu.List)(r)};vu=fr.pointerToKeySeq=Ou;const wu=["level","schema","storeKeys","schemaKeys","errors"];function Br(){return Br=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Br.apply(this,arguments)}function Eu(t,e){if(t==null)return{};var r=Iu(t,e),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Iu(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,o;for(o=0;o<n.length;o++)i=n[o],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}const ju=t=>{let{level:e,schema:r,storeKeys:n,schemaKeys:i,errors:o}=t,s=Eu(t,wu);const{isVirtual:a,widgets:u}=s,f=r.get("properties");if(!a&&!u.GroupRenderer)return null;const c=u.GroupRenderer,l=(f==null?void 0:f.map((p,h)=>m.createElement(yt,Br({key:h},s,{schema:p,parentSchema:r,storeKeys:n.push(h),schemaKeys:i==null?void 0:i.push("properties").push(h),level:e+1}))).valueSeq())||null;return a?l:f?m.createElement(c,{storeKeys:n,schemaKeys:i,level:e,noGrid:s.noGrid,schema:r},l):null},Pu=it(ju),Ru=Object.freeze(Object.defineProperty({__proto__:null,ObjectRenderer:Pu},Symbol.toStringTag,{value:"Module"})),Mu=({schema:t,children:e,onSchema:r})=>{const n=Fe(t);return m.useEffect(()=>{r&&r(n)},[r,n]),e};gu(Mu);var _e={};const xn="wrong-type",Do=(t,e)=>{if(typeof t>"u"||typeof e>"u")return!0;const r=(n,i)=>typeof n===i;return e==="string"?r(t,"string"):e==="number"?r(t,"number"):e==="integer"?!isNaN(t)&&Number.isInteger(t):e==="boolean"?r(t,"boolean"):e==="array"?Array.isArray(t)||g.isList(t):e==="object"?t!==null&&!(Array.isArray(t)||g.isList(t))&&(typeof t=="object"||_.isMap(t)||O.isRecord(t)):e==="null"?t===null:!1},xu=(t,e)=>typeof t>"u"?!0:(typeof e=="string"&&(e=g([e])),e.reduce((r,n)=>r||Do(t,n),!1)),Zc={handle:({schema:t,value:e,errors:r,valid:n})=>{let i=t.get("type");return typeof i<"u"&&!xu(e,i)&&(n=!1,r=r.addError(xn,_({actual:e===null?"null":g.isList(e)?"array":_.isMap(e)||O.isRecord(e)?"object":typeof e}))),{errors:r,valid:n}}},Uo="pattern-not-matching",Wo=(t,e,r)=>typeof e=="string"&&r?e.match(r)!==null:!0,Qc={handle:({schema:t,value:e,errors:r,valid:n})=>{let i=t.get("type"),o=t.get("pattern");return Wo(i,e,o)||(n=!1,r=r.addError(Uo,_({pattern:o,patternError:t.get("patternError")}))),{errors:r,valid:n}}},vt="min-length",mt="max-length",Vo=(t,e)=>{let r=lt();if(typeof e>"u")return r;if(typeof e=="string"){let l=t.get("minLength"),p=t.get("maxLength");l&&e.length<l&&(r=r.addError(vt,_({min:l}))),p&&e.length>p&&(r=r.addError(mt,_({max:p})))}let n=t.get("minItems"),i=t.get("maxItems");n&&(g.isList(e)?e.size<n&&(r=r.addError(vt,_({min:n}))):Array.isArray(e)&&e.length<n&&(r=r.addError(vt,_({min:n})))),i&&(g.isList(e)?e.size>i&&(r=r.addError(mt,_({max:i}))):Array.isArray(e)&&e.length>i&&(r=r.addError(mt,_({max:i}))));let o=t.get("minProperties"),s=t.get("maxProperties");o&&(_.isMap(e)||O.isRecord(e)?e.keySeq().size<o&&(r=r.addError(vt,_({min:o}))):typeof e=="object"&&Object.keys(e).length<o&&(r=r.addError(vt,_({min:o})))),s&&(_.isMap(e)||O.isRecord(e)?e.keySeq().size>s&&(r=r.addError(mt,_({max:s}))):typeof e=="object"&&Object.keys(e).length>s&&(r=r.addError(mt,_({max:s}))));let a=t.get("minimum"),u=t.get("exclusiveMinimum"),f=t.get("maximum"),c=t.get("exclusiveMaximum");return typeof e=="number"&&(typeof a=="number"&&(typeof u=="boolean"?u&&e<=a&&(r=r.addError(vt,_({exclMin:a}))):e<a&&(r=r.addError(vt,_({min:a})))),typeof u=="number"&&e<=u&&(r=r.addError(vt,_({exclMin:u}))),typeof f=="number"&&(typeof c=="boolean"?e>=f&&(r=r.addError(mt,_({exclMax:f}))):e>f&&(r=r.addError(mt,_({max:f})))),typeof c=="number"&&e>=c&&(r=r.addError(mt,_({exclMax:c})))),r},tl={handle:({schema:t,value:e,errors:r,valid:n})=>{let i=Vo(t,e);return i.hasError()&&(n=!1,r=r.addErrors(i)),{errors:r,valid:n}}},Fo="const-mismatch",Yo=(t,e)=>{if(typeof t>"u"||typeof e>"u")return!0;let r=e;return Array.isArray(e)?r=g(Mt(e)):typeof e=="object"&&e!==null&&!g.isList(e)&&!_.isMap(e)&&!O.isRecord(e)&&(r=_(Mt(e))),Io(r,t)},el={should:({schema:t,value:e})=>typeof t.get("const")<"u"&&typeof e<"u",handle:({schema:t,value:e,errors:r,valid:n})=>(Yo(t.get("const"),e)||(n=!1,r=r.addError(Fo,_({const:t.get("const")}))),{errors:r,valid:n})},Ho="enum-mismatch",Go=(t,e)=>{if(typeof t>"u"||typeof e>"u")return!0;
1if(Array.isArray(t)&&(t=g(Mt(t))),e!==null&&typeof e=="object"&&(Array.isArray(e)?e=g(Mt(e)):!g.isList(e)&&!_.isMap(e)&&(e=_(Mt(e))),g.isList(e)||_.isMap(e))){for(const r of t)if(e.equals(r))return!0;return!1}return!(g.isList(t)&&!t.contains(e))},rl={should:({schema:t,value:e})=>typeof t.get("enum")<"u"&&typeof e<"u",handle:({schema:t,value:e,errors:r,valid:n})=>(Go(t.get("enum"),e)||(n=!1,r=r.addError(Ho,_({enum:t.get("enum")}))),{errors:r,valid:n})},Jo="multiple-of",Xo=(t,e)=>{let r=t.get("multipleOf");if(typeof e=="number"&&typeof r=="number"){let n=(Math.abs(r)-Math.floor(Math.abs(r))).toLocaleString("fullwide",{useGrouping:!0,maximumSignificantDigits:9});n=typeof n=="string"?n.replace(/,/g,"."):n;let i=(Math.abs(e)-Math.floor(Math.abs(e))).toLocaleString("fullwide",{useGrouping:!0,maximumSignificantDigits:9});i=typeof i=="string"?i.replace(/,/g,"."):i;const o=n.indexOf(".")!==-1?n.slice(n.indexOf(".")+1).length:0,s=i.indexOf(".")!==-1?i.slice(i.indexOf(".")+1).length:0,a=o||s?Math.pow(10,o>s?o:s):1;if((e*a).toFixed(0)%(r*a).toFixed(0)!==0)return!1}return!0},nl={handle:({schema:t,value:e,errors:r,valid:n})=>(Xo(t,e)||(n=!1,r=r.addError(Jo,_({multipleOf:t.get("multipleOf")}))),{errors:r,valid:n})},$u="duplicate-items",zu="not-found-contains",Au="min-contains",qu="max-contains",Tu="additional-items",Cu=t=>t.filter((e,r)=>t.indexOf(e)!==r),Zo=(t,e,r=!0)=>{let n=lt(),i=0;if(g.isList(t)||Array.isArray(t))g.isList(e)||Array.isArray(e)?Lu(r,e,t)||(n=n.addError(Tu,_({})),i++):(n=n.addError(xn,_({actual:typeof e,arrayTupleValidation:!0})),i++);else if(Array.isArray(e)||g.isList(e))for(let o of e){let s=lt(),a=Ut(t,o);a.hasError()&&(s=s.addErrors(a)),s.errCount===0?i++:n=n.addErrors(s)}return{err:n,found:i}},Lu=(t,e,r)=>t===!0||t===!1&&(g.isList(e)&&e.size<=r.size||Array.isArray(e)&&e.length<=r.size),ku=(t,e)=>{let r=t.get("items");return r&&e?Zo(r,e,t.get("additionalItems")).err:lt()},Qo=(t,e)=>{let r=lt();if(!(Array.isArray(e)||g.isList(e)))return r;const n=t.get("contains");if(!n||!n.get("type"))return r;let o=t.get("minContains"),s=t.get("maxContains"),a=Zo(n,e,void 0);return(a.found<1&&typeof o>"u"&&typeof s>"u"||typeof o=="number"&&o>a.found||typeof s=="number"&&s<a.found)&&a.err.errCount!==0&&(r=r.addErrors(a.err)),typeof o=="number"&&o>a.found&&(r=r.addError(Au,_({minContains:o}))),typeof s=="number"&&s<a.found&&(r=r.addError(qu,_({maxContains:s}))),o!==0&&(Array.isArray(e)&&e.length===0||g.isList(e)&&e.size===0)&&(r=r.addError(zu)),r},Nu=(t,e)=>{if(t.get("uniqueItems")&&(g.isList(e)||Array.isArray(e))){let n=Cu(e);if(Array.isArray(n))return n.length===0;if(g.isList(n))return n.size===0}return!0},il={should:({value:t})=>g.isList(t)||Array.isArray(t),handle:({schema:t,value:e,errors:r,valid:n})=>{if(t.get("uniqueItems")&&e&&(Nu(t,e)||(n=!1,r=r.addError($u))),t.get("items")&&e){let a=ku(t,e);a.hasError()&&(n=!1,r=r.addErrorsToChild(a))}if(t.get("contains")&&e){const a=Qo(t,e);a.hasError()&&(n=!1,r=r.addErrors(a))}return{errors:r,valid:n}}},ts="required-not-set",es=(t,e)=>{const r=typeof e;return r==="undefined"?!1:dt(t,"string")&&r==="string"||r==="string"&&$o(t)?e!=="":!0},ol={should:({requiredList:t,storeKeys:e})=>t&&g.isList(t)?t.contains(e.last()):!1,noHandle:()=>({required:!1}),handle:({schema:t,value:e,errors:r,valid:n})=>{let i=t.get("type");return es(i,e)||(n=!1,r=r.addError(ts)),{errors:r,valid:n,required:!0}}},Ku="additional-properties",rs=(t,e,r=!1)=>{let n=lt();const i=typeof e<"u"&&(typeof e=="object"&&e!==null||_.isMap(e)||O.isRecord(e))&&!(g.isList(e)||Array.isArray(e));if(t.get("additionalProperties")===!1&&t.get("properties")&&i){let o=!1;const s=_.isMap(e)||O.isRecord(e)?e.keySeq():Object.keys(e),a=t.get("properties").keySeq();s.forEach(u=>{a.indexOf(u)===-1&&(o=!0)}),o&&(n=n.addError(Ku))}return t.get("propertyNames")&&i&&(_.isMap(e)||O.isRecord(e)?e.keySeq():Object.keys(e)).forEach(s=>{let a=Ut(t.get("propertyNames").set("type","string"),s,r);a.hasError()&&(n=n.addErrors(a))}),r&&t.get("properties")&&t.get("properties").forEach((o,s)=>{var a;let u=i?_.isMap(e)||O.isRecord(e)?e.get(s):e[s]:void 0;if((a=t.get("required"))!==null&&a!==void 0&&a.contains(s)&&!es(o.get("type"),u)){n=n.addError(ts);return}let f=Ut(o,u,r);f.hasError()&&(n=n.addErrors(f))}),n},sl={handle:({schema:t,value:e,errors:r,valid:n})=>{const i=rs(t,e);return i!=null&&i.hasError()&&(n=!1,r=r.addErrors(i)),{errors:r,valid:n}}},Bu="one-of-is-invalid",ns=(t,e,r=!1)=>{let n=lt(),i=0;if(g.isList(t)||Array.isArray(t)){const o=g.isList(t)?t.toArray():t;for(const s of o){const a=Ut(s,e,r);if(a.hasError())n=n.addErrors(a),i++;else{n=lt(),i=0;break}}}return{errors:n,errorCount:i}},al={should:({schema:t})=>g.isList(t==null?void 0:t.get("oneOf")),handle:({schema:t,value:e,errors:r,valid:n})=>{const i=ns(t==null?void 0:t.get("oneOf"),e);if(i.errorCount>0){var o,s;n=!1,r=(o=r)===null||o===void 0?void 0:o.addChildErrors(i.errors),r=(s=r)===null||s===void 0?void 0:s.addError(Bu,t)}return{errors:r,valid:n}}},Ut=(t,e,r=!1)=>{let n=t.get("type"),i=t.get("pattern"),o=lt(),s=t.get("not");if(s){let a=Ut(s,e,r);return a.hasError()?a.addError("not-is-valid"):o}if(!Do(e,n))o=o.addError(xn);else if(!Wo(n,e,i))o=o.addError(Uo);else if(!Yo(t.get("const"),e))o=o.addError(Fo);else if(!Go(t.get("enum"),e))o=o.addError(Ho);else if(!Xo(t,e))o=o.addError(Jo);else{const a=Vo(t,e);if(a.hasError())return a;const u=rs(t,e,r);
1if(u.hasError())return u;const f=Qo(t,e);if(f.hasError())return f;const c=ns(t.get("oneOf"),e,r);if(c.errors.hasError())return c.errors}return o},He=(t,e=_())=>{e.get("properties")&&(t.get("properties")?t=t.update("properties",n=>(n=n.merge(e.get("properties").map((i,o)=>n.get(o)?He(n.get(o),i):i)),n)):t=t.set("properties",e.get("properties"))),e.get("required")&&(t.get("required")?t=t.set("required",t.get("required").concat(e.get("required"))):t=t.set("required",e.get("required"))),e.get("enum")&&(t=t.update("enum",(n=g())=>n.concat(e.get("enum")).toSet().toList())),e.get("oneOf")&&(t=t.set("oneOf",t.get("oneOf")?t.get("oneOf").concat(e.get("oneOf")):e.get("oneOf")));let r=e;return r=r.deleteAll(["properties","required","enum"]),t=t.mergeDeep(r),t},Du=Object.freeze(Object.defineProperty({__proto__:null,mergeSchema:He},Symbol.toStringTag,{value:"Module"})),is=(t,e,r)=>{const n=t.get("if"),i=t.get("then"),o=t.get("else");return n&&(Ut(n,e,!0).errCount===0?i&&(r=He(r,i)):o&&(r=He(r,o))),r};function Dr(){return Dr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Dr.apply(this,arguments)}const Uu=t=>{let{schema:e,value:r}=t;return e.get("if")&&(e=is(e,r,e)),m.createElement(Mn,Dr({},t,{schema:e}))},Wu=Object.freeze(Object.defineProperty({__proto__:null,ConditionalHandler:Uu,handleIfElseThen:is},Symbol.toStringTag,{value:"Module"})),Vu=ot(Wu),Fu=ot(Du);
1Object.defineProperty(_e,"__esModule",{value:!0});var Yu=_e.useSchemaCombine=_e.handleSchemaCombine=void 0,vi=Vu,mi=Fu,Hu=Gu(Q);function Gu(t){return t&&t.__esModule?t:{default:t}}var os=function(e,r){var n=e.get("allOf");return n&&n.forEach(function(i){e=(0,mi.mergeSchema)(e,i.delete("if").delete("else").delete("then").delete("allOf")),e=(0,vi.handleIfElseThen)(i,r,e);var o=i.get("allOf");o&&o.forEach(function(s){e=(0,mi.mergeSchema)(e,s.delete("if").delete("else").delete("then")),e=(0,vi.handleIfElseThen)(s,r,e)})}),e};_e.handleSchemaCombine=os;var Ju=function(e,r){return Hu.default.useMemo(function(){return os(e,r)},[e,r])};Yu=_e.useSchemaCombine=Ju;var _t={};const Xu=ot($a),Zu=ot(Ba),Qu=ot(Da),ss=ot(ou),tf=ot(su),as=ot(_u);Object.defineProperty(_t,"__esModule",{value:!0});var ef=_t.getNextPlugin=_t.PluginStack=_t.NextPluginRendererMemo=_t.NextPluginRenderer=void 0,Be=lf(Q),wr=cr,rf=Xu,nf=Zu,of=Qu,sf=ss,bi=tf,af=as,uf=["StackWrapper","wrapperProps"],ff=["widgets"],cf=["currentPluginIndex"];function lf(t){return t&&t.__esModule?t:{default:t}}function ge(){return ge=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ge.apply(this,arguments)}function Ur(t,e){if(t==null)return{};var r=pf(t,e),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function pf(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,o;for(o=0;o<n.length;o++)i=n[o],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}var hf=(0,of.createValidatorErrors)(),df=function(e){var r=e.StackWrapper,n=e.wrapperProps,i=Ur(e,uf),o=(0,nf.useUIMeta)(),s=o.widgets,a=Ur(o,ff),u=(0,sf.useUIConfig)(),f=i.level,c=f===void 0?0:f,l=i.parentSchema,p=i.storeKeys,h=p===void 0?(0,wr.List)([]):p,d=i.schemaKeys,y=d===void 0?(0,wr.List)([]):d,b=i.schema,P=i.widgets,v=(0,bi.useImmutable)(h),R=(0,bi.useImmutable)(y),j=P||s,C=!!(i.isVirtual||b!=null&&b.get("hidden")),D=(0,wr.List)([]);if(l){var k=l.get("required");k&&(D=k)}var te=Be.default.createElement($n,ge({},a,u,i,{currentPluginIndex:-1,widgets:j,level:c,storeKeys:v,schemaKeys:R,ownKey:h.last(),requiredList:D,required:!1,errors:hf,isVirtual:C,valid:!0})),ee=r&&!C?Be.default.createElement(r,ge({schema:b,storeKeys:v,schemaKeys:R},n||{}),te):te;return i.schema?j!=null&&j.ErrorFallback?Be.default.createElement(af.PluginStackErrorBoundary,{FallbackComponent:j.ErrorFallback,type:b.get("type"),widget:b.get("widget"),storeKeys:v},ee):ee:null};_t.PluginStack=df;var us=function(e,r){var n=r.pluginStack,i=r.WidgetRenderer;return e<n.length?n[e]||function(){return"plugin-error"}:i};ef=_t.getNextPlugin=us;var $n=function(e){var r=e.currentPluginIndex,n=Ur(e,cf),i=r+1,o=us(i,n.widgets);return Be.default.createElement(o,ge({},n,{currentPluginIndex:i}))};_t.NextPluginRenderer=$n;var _f=(0,rf.memo)($n);_t.NextPluginRendererMemo=_f;const ul=ar(Mn),gf=t=>(t==null?void 0:t.get("$id"))||(t==null?void 0:t.get("id")),yf=["id","schema","children"];function Si(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function vf(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Si(Object(r),!0).forEach(function(n){mf(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Si(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function mf(t,e,r){return e=bf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bf(t){var e=Sf(t,"string");return typeof e=="symbol"?e:String(e)}function Sf(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Of(t,e){if(t==null)return{};var r=wf(t,e),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function wf(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,o;for(o=0;o<n.length;o++)i=n[o],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}const fl=t=>{const e=gf(t);return e&&e.indexOf("#")!==0},fs=m.createContext({id:void 0,schema:void 0}),Ef=(t={})=>{let{id:e,schema:r,children:n}=t,i=Of(t,yf);const o=m.useMemo(()=>vf({id:e,schema:r},i),[e,r,...Object.values(i)]);return m.createElement(fs.Provider,{value:o},n)},cl=it(Ef),ll=()=>m.useContext(fs);var zn={};Object.defineProperty(zn,"__esModule",{value:!0});zn.escapePointer=void 0;var If=function(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")};zn.escapePointer=If;var ye={},lr={};
1Object.defineProperty(lr,"__esModule",{value:!0});lr.resolvePointer=void 0;var jf=fr,Pf=function(e,r){var n=(0,jf.pointerToKeySeq)(e);return n.size?r.getIn(n):r};lr.resolvePointer=Pf;function Wt(t){"@babel/helpers - typeof";return Wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wt(t)}Object.defineProperty(ye,"__esModule",{value:!0});var Rf=ye.resolveRef=kf=ye.SchemaRefPending=void 0,Oi=lr;function wi(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,xf(n.key),n)}}function Mf(t,e,r){return e&&wi(t.prototype,e),r&&wi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function xf(t){var e=$f(t,"string");return Wt(e)==="symbol"?e:String(e)}function $f(t,e){if(Wt(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Wt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function zf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Af(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ve(t,e)}function qf(t){var e=cs();return function(){var n=me(t),i;if(e){var o=me(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Tf(this,i)}}function Tf(t,e){if(e&&(Wt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cf(t)}function Cf(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Wr(t){var e=typeof Map=="function"?new Map:void 0;return Wr=function(n){if(n===null||!Lf(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return De(n,arguments,me(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),ve(i,n)},Wr(t)}function De(t,e,r){return cs()?De=Reflect.construct.bind():De=function(i,o,s){var a=[null];a.push.apply(a,o);var u=Function.bind.apply(i,a),f=new u;return s&&ve(f,s.prototype),f},De.apply(null,arguments)}function cs(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Lf(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function ve(t,e){return ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ve(t,e)}function me(t){return me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},me(t)}var ls=function(t){Af(r,t);var e=qf(r);function r(){return zf(this,r),e.apply(this,arguments)}return Mf(r)}(Wr(Error)),kf=ye.SchemaRefPending=ls,Nf=function(e,r,n){var i=r.id,o=r.defs,s=r.root,a=r.getLoadedSchema,u;if(e.indexOf("#/definitions/")===0||e.indexOf("#/$defs/")===0){var f=e.replace(/^#\/definitions\//,"").replace(/^#\/\$defs\//,"");o&&o.get(f)&&(u=(0,Oi.resolvePointer)("#/"+f,o))}else if(e.indexOf("#/")===0||e==="#"){if(s){var c=(0,Oi.resolvePointer)(e,s);c&&(u=c)}}else if(e.indexOf("#")===0){if(o){var l=o.find(function(h){return h.get("id")===e||h.get("$id")===e||h.get("$anchor")===e.slice(1)});l&&(u=l)}}else{if(a){var p=a(e,i,n);if(p)return p}throw new ls(e)}return u};Rf=ye.resolveRef=Nf;const Ei=({t,text:e,context:r,schema:n,fallback:i})=>{const{t:o}=sr(),s=t?t(e,r,n):o(e,r,n);return!s&&s!==0&&s!=="0"?typeof i<"u"&&i!==""?i:e:typeof s=="string"||typeof s=="number"||typeof s=="object"?s:typeof s=="function"?m.createElement(s,null):e},Er=(t,e,r)=>t.split(e).join(r);let Ir=_();const Kf=(t,e)=>{switch(e){case"ol":if(typeof t=="number")return t+1+".";break;case"upper":if(typeof t=="string")return t.toUpperCase();break;case"lower":if(typeof t=="string")return t.toLowerCase();break;case"upper-beauty":if(typeof t=="string")return se(t).toUpperCase();break;case"lower-beauty":if(typeof t=="string")return se(t).toLowerCase();break;case"beauty-text":if(typeof t=="string"&&isNaN(t*1))return se(t);break;case"beauty-igno-lead":if(typeof t=="string"){let r=0;do{if(new RegExp(/[.\-_]/g).exec(t[r])===null)break;r++}while(r<t.length);return t.slice(0,r)+se(t.slice(r))}break}return t},se=t=>{if(typeof t!="string")return t;let e=Ir.get(t);if(e)return e;let r=Er(Er(Er(t,"_"," "),"."," "),"-"," ").replace(/  +/g," ").split(" ").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" ");return Ir=Ir.set(t,r),r},pl=(t,e=!0)=>e?typeof e=="string"?Kf(t,e):se(t):t,Bf=m.createContext({}),hl=()=>m.useContext(Bf);var An={};Object.defineProperty(An,"__esModule",{value:!0});var Df=An.updateStoreScope=void 0,Uf=ss,Wf=function(e,r,n,i){return e.setIn(n.size?(0,Uf.prepe
1ndKey)(n,r):[r],i)};Df=An.updateStoreScope=Wf;var qn={};const Vf=(t,e,r)=>{if(!t||r<0||t.size<=r||e<0||t.size<=e)return t;if(g.isList(t)){const n=t.get(e);return t.splice(e,1).splice(r,0,n)}return t},Ff=Object.freeze(Object.defineProperty({__proto__:null,moveItem:Vf},Symbol.toStringTag,{value:"Module"})),Yf=ot(Ff);function be(t){"@babel/helpers - typeof";return be=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},be(t)}Object.defineProperty(qn,"__esModule",{value:!0});qn.storeActionReducers=void 0;var X=cr,Ii=Yf,Hf=["value","internal"],Gf=["value","internal"],Jf=["value","internal"];function ji(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function jr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ji(Object(r),!0).forEach(function(n){Xf(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ji(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Xf(t,e,r){return e=Zf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zf(t){var e=Qf(t,"string");return be(e)==="symbol"?e:String(e)}function Qf(t,e){if(be(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(be(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Pr(t,e){if(t==null)return{};var r=tc(t,e),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function tc(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,o;for(o=0;o<n.length;o++)i=n[o],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}var ec=function(e){switch(e.type){case"list-item-add":return function(r){var n=r.value,i=n===void 0?(0,X.List)():n,o=r.internal,s=o===void 0?(0,X.Map)():o,a=Pr(r,Hf);if("itemValue"in e)i=i.push(e.itemValue);else{var u=e.schema,f=u.get("items"),c=u.getIn(["items","type"]);i=i.push(c==="object"?(0,X.OrderedMap)():X.List.isList(f)||c==="array"?(0,X.List)():c==="string"?"":c==="null"?null:void 0)}return jr({value:i,internal:s.update("internals",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:(0,X.List)();return l.push((0,X.Map)())})},a)};case"list-item-delete":return function(r){var n=r.value,i=n===void 0?(0,X.List)():n,o=r.internal,s=o===void 0?(0,X.Map)():o,a=Pr(r,Gf);return jr({value:i.splice(e.index,1),internal:s.update("internals",function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:(0,X.List)();return u.splice(e.index,1)})},a)};case"list-item-move":return function(r){var n=r.value,i=n===void 0?(0,X.List)():n,o=r.internal,s=o===void 0?(0,X.Map)():o,a=Pr(r,Jf);return jr({value:(0,Ii.moveItem)(i,e.fromIndex,e.toIndex),internal:s.update("internals",function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:(0,X.List)();return(0,Ii.moveItem)(u.size-1<e.toIndex?u.set(e.toIndex,void 0):u.size-1<e.fromIndex?u.set(e.fromIndex,void 0):u,e.fromIndex,e.toIndex)})},a)};case"set":return e.data;case"update":return e.updater;default:throw new Error("store updater for type not found: "+e.type)}};qn.storeActionReducers=ec;const rc=["rootRenderer"];function nc(t,e){if(t==null)return{};var r=ic(t,e),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function ic(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,o;for(o=0;o<n.length;o++)i=n[o],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}let Pi=t=>{let{rootRenderer:e}=t,r=nc(t,rc);return r.isVirtual?m.createElement(yt,r):m.createElement(e,null,m.createElement(yt,r))};Pi=it(Pi);const Vr=(t,e=["null"])=>{let r;if(!t)return r;if(typeof t=="string")r=t;else if(Array.isArray(t)&&t.length===1||"size"in t&&t.size===1)r=t.join();else{const n=t.reduce((i,o)=>e.includes(o)?i:i.push(o),g());n.size===1&&(r=n.join())}return r},oc=Object.freeze(Object.defineProperty({__proto__:null,schemaTypeToDistinct:Vr},Symbol.toStringTag,{value:"Module"}));var Se={};const sc=ot(Ru),ac=ot(oc);
1Object.defineProperty(Se,"__esModule",{value:!0});var uc=Se.VirtualWidgetRenderer=Se.VirtualArrayRenderer=void 0,ps=hc(Q),fc=cr,cc=as,lc=sc,pc=ac;function hc(t){return t&&t.__esModule?t:{default:t}}function Fr(){return Fr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Fr.apply(this,arguments)}var hs=function(e){var r=e.storeKeys,n=e.value,i=e.schema,o=e.virtualWidgets,s=e.widgets;return n?n.map(function(a,u){return ps.default.createElement(cc.PluginStack,{key:u,schema:fc.List.isList(i.get("items"))?i.get("items").get(u):i.get("items"),parentSchema:i,storeKeys:r.push(u),level:0,virtualWidgets:o,widgets:s,isVirtual:!0})}).valueSeq():null};Se.VirtualArrayRenderer=hs;var dc=function(e){var r=e.schema,n=e.value,i=e.virtualWidgets,o=i===void 0?{default:null,object:lc.ObjectRenderer,array:hs}:i,s=(0,pc.schemaTypeToDistinct)(r.get("type")),a=o.default;return s&&(s==="object"?a=o.object:s==="array"&&(a=o.array)),a?ps.default.createElement(a,Fr({},e,{value:n})):null};uc=Se.VirtualWidgetRenderer=dc;function ds(t,e="1200x",{position:r,extension:n="jpg",raw:i=!1}={}){if(t)return n==="svg"&&(i=!0),String(t).match("static")?`/image.${n}?file=${encodeURIComponent(t)}${e?`&size=${encodeURIComponent(e)}`:""}`:`/image.${n}?id=${encodeURIComponent(t)}${e?`&size=${encodeURIComponent(e)}`:""}${r?`&position=${encodeURIComponent(`${r.x}, ${r.y}`)}`:""}${i?"&raw=true":""}`}function dl(t,e=["1200x","800x","400x"],{position:r}={}){return t?e.map(i=>`${ds(t,i,{position:r})} ${i.replace("x","w")}`).join(", "):void 0}function _c(t,e="1920x",{position:r}={}){const n=ds(t,e,{position:r});return n?`url(${n})`:void 0}function gc(t={}){let e,r;return J(t)?(e=t.get("x",0),r=t.get("y",0)):(e=t.x||0,r=t.y||0),`${e*100}% ${r*100}%`}var yc=Ps,vc=Rs,mc=Ms,bc=xs,Sc=$s,Oc=As,wc=zs;function Ec(t){return mc(t)?yc(t,Oc):bc(t)?[t]:vc(Sc(wc(t)))}var Ic=Ec;const Ri=js(Ic),jc=ar(it(({value:t=g([]),showValidity:e,storeKeys:r,schema:n,asProps:i,as:o,wrapper:s=Q.Fragment,wrapperProps:a={},...u})=>{var f;return t.isEmpty()?null:S.jsx(s,{...a,children:((f=t==null?void 0:t.take(n.get("maxItems",1/0)))==null?void 0:f.map((c,l)=>{var p,h,d;return Q.createElement(yt,{...i,...u,index:l,"data-index":l,__id:(p=c==null?void 0:c.get)==null?void 0:p.call(c,"__id"),WidgetOverride:o,noGrid:!0,key:((h=c==null?void 0:c.get)==null?void 0:h.call(c,"__id"))||((d=c==null?void 0:c.get)==null?void 0:d.call(c,"@id"))||`item-${l}`,showValidity:e,storeKeys:r.push(l),parentSchema:n,schema:n.get("items")})}).valueSeq())??null})}));function Pc({storeKeys:t,locale:e="en",parentSchema:r}){var d;const{store:n}=Qt(),i=t.last().toString(),o=i===e,a=`${o?t.get(-2).toString():i}/styles`,u=r.getIn(["properties",a]),{data:f}=Ns(ks);if(!u)return{};const c=t.skipLast(o?2:1).push(a),{value:l}=Pn(c,n),p=(l==null?void 0:l.get("@id"))??(u==null?void 0:u.getIn(["@context","@id","default"])),h=(d=f==null?void 0:f.typographies)==null?void 0:d.find(y=>y.id===p);return h?{lineHeight:1.125,...h,letterSpacing:`${(h==null?void 0:h.letterSpacing)||0}em`,color:(l==null?void 0:l.get("color"))||(h==null?void 0:h.color),...h!=null&&h.fontSize?{"--font-size":`clamp(${Math.max(12,h.fontSize/2)}px, 10vw, ${h.fontSize}px)`,fontSize:`var(--font-size, ${h.fontSize}px)`}:void 0}:{color:l==null?void 0:l.get("color")}}function Rc(t){var n;const{editing:e=!1}=t;(n=t.schema)!=null&&n.getIn(["properties","section_properties"])?t={parentSchema:t.schema,storeKeys:t.storeKeys.push("section_properties"),schema:t.schema.getIn(["properties","section_properties"])}:t={parentSchema:t.parentSchema,storeKeys:t.storeKeys,schema:t.schema};function r(i){const o=t.storeKeys.concat(Ri(i.accessor)),s=t.schema.getIn(["properties",...Ri(i.accessor)]);if(!s||!o)return null;const a=$i(i,["accessor","as","storeKeys","schema","schemaKeys","parentSchema","previewPlaceholder"]),u=i.as,f=!i.showWhenEmpty;let c=it(({value:p,...h})=>{var y;const d=Pc(h);if(e&&!p&&"previewPlaceholder"in i){let b=i.previewPlaceholder;i.previewPlaceholder===!0&&(b=s.getIn(["view","placeholder"],"")),b&&(p=S.jsx(E.Box,{css:{opacity:.35},children:b}))}return f&&(!p||(y=p.isEmpty)!=null&&y.call(p))?null:S.jsxs(S.Fragment,{children:[d.fontFamily&&S.jsx(Ls,{children:S.jsx("link",{id:d.fontFamily+d.fontWeight,href:`https://fonts.googleapis.com/css2?family=${d.fontFamily.replace(" ","+")}${d.fontWeight?`:wght@${d.fontWeight}`:""}`,rel:"stylesheet"},d.fontFamily)}
1),S.jsx(u,{id:o.last(),style:d,...a,children:p})]})});const l=(i==null?void 0:i.wrapper)??Q.Fragment;return Vr(s.get("type"))==="array"?S.jsx(jc,{...t,...i,wrapper:i==null?void 0:i.wrapper,wrapperProps:i==null?void 0:i.wrapperProps,as:i==null?void 0:i.as,asProps:a,storeKeys:o,schema:s,showValidity:!1}):(Vr(s.get("type"))==="object"&&(c=i==null?void 0:i.as),S.jsx(l,{...i==null?void 0:i.wrapperProps,children:S.jsx(yt,{...i,noGrid:!0,storeKeys:o,schema:s,parentSchema:t.schema,WidgetOverride:i!=null&&i.as?c:void 0})}))}return r.displayName="PropertyComponent",it(r)}function _l(t){switch(t){case"left":return"start";case"center":return"center";case"right":return"end";default:return"start"}}function gl(t){switch(t){case"top":return"start";case"middle":return"center";case"bottom":return"end";default:return"center"}}const Mc=["default","none","small","medium","large"];function xc(t=g(),e,r){return e==="default"?r:t.isEmpty()||t.contains(e)?e:r}const Mi={fallback:{backgroundColor:!0,color:!0,containerWidth:!0},omit:[]};function $c(t=_({}),e=Mi,r,n=_({})){const{fallback:i,omit:o}=qs({},Mi,e),s=(r==null?void 0:r.current)||typeof document<"u"&&(document==null?void 0:document.body)||null;i.backgroundColor===!0&&(i.backgroundColor="inherit"),i.color===!0&&(i.color="inherit"),i.padding===!0&&(i.padding=t.getIn(["padding","default"],"default")),i.containerWidth===!0&&(i.containerWidth=n.getIn(["container_width","default"]));const a=t.getIn(["background","color"],i.backgroundColor)||i.backgroundColor,u=_c(t.getIn(["background","image","@id"],t.getIn(["background","images",0,"@id"]))),f=gc(t.getIn(["background","image","position"])),c=t.getIn(["text","align"]),l=c==="center"?"center":c==="right"?"end":"start",p=t.getIn(["text","color"])||i.color||"black",[h]=E.useColorContrast({backgroundColor:t.getIn(["text","color"],"black"),foregroundColors:["white","black"],element:s}),d=xc(n.getIn(["container_width","enum"]),t.getIn(["container_width"]),i.containerWidth);let y=`min($sizes$container-${d}, calc(100% - $$gutter))`;d==="full"&&(y=`$sizes$container-${d}`),d==="default"&&(y=`$sizes$container-${n.getIn(["container_width","default"],"default")}`),n.getIn(["container_width","hidden"])===!0&&(y="100%");let b;t.getIn(["padding","all"],"auto")==="auto"&&typeof i.padding=="string"?b=Mc.includes(i.padding)?`$space$padding-${i.padding}`:i.padding:b=`$space$padding-${t.getIn(["padding","all"],"default")}`,t.getIn(["padding","apply_to_top_and_bottom"])===!1&&(b=`var(--gc-space-${t.getIn(["padding","top"])||i.padding||b}) var(--gc-space-${t.getIn(["padding","bottom"])||i.padding||b})`);const P=t.mapEntries(([R,j])=>[`--ui-${R}`,j]).filter(R=>typeof R=="string").toJS();return Q.useMemo(()=>$i({...P,"--ui-background-color":a,"--ui-color":p,"--ui-contrast-over-color":h,"--ui-container-width":`$sizes$container-${d}`,backgroundColor:a,backgroundPosition:f,textAlign:c,justify:l,color:p,...!o.includes("containerWidth")&&{maxWidth:y,marginInline:y?"auto":void 0},paddingBlock:b,contrastOverColor:h,backgroundImage:{position:"relative",isolation:"isolate","&::before":{content:'""',backgroundImage:u,backgroundPosition:f,backgroundRepeat:"no-repeat",backgroundSize:"cover",position:"absolute",opacity:t.getIn(["background","image","opacity"],1),inset:0,zIndex:-1}}},o.filter(Boolean)),[P,a,p,h,d,f,c,l,o,y,b,u,t])}function zc({storeKeys:t,schemaKeys:e,schema:r,onChange:n,showValidity:i,required:o,ComponentItem:s,activeIds:a,sectionIds:u=g([]),preview:f=!1,isMultiColumn:c,t:l}){return u.size?u.map((p,h)=>S.jsx(s,{isMultiColumn:c,active:f||a.includes(p),index:h,storeKeys:t,schemaKeys:e,schema:r,onChange:n,listRequired:o,showValidity:i,t:l},p)):null}var xi=Ts();const Ac=E.styled(Rr.motion.div,{border:"5px solid $blue",mixBlendMode:"multiply",width:"100%",height:"100%",position:"absolute",pointerEvents:"none",top:0}
1),qc={initial:{opacity:0,transition:{duration:0,delay:1}},hide:{opacity:0,borderTopWidth:0,borderBottomWidth:0,transition:{duration:0}},active:{opacity:1,transition:{layout:{duration:0,delay:1}}},top:{borderTopLeftRadius:"5px",borderTopRightRadius:"5px"},bottom:{borderBottomLeftRadius:"5px",borderBottomRightRadius:"5px"}};function Tc({storeKeys:t,schema:e,sectionIds:r=g(),onChange:n,listSize:i=r.size}){const[{activeIndex:o,activeIds:s=[],activePosition:a,target:u,isRoot:f},c]=Tn();if(Q.useEffect(()=>{var P;if(s.length===0){const v=document.getElementById(r==null?void 0:r.first());if(!((P=v==null?void 0:v.getBoundingClientRect())!=null&&P.top))return;c(R=>({...R,target:v,activeIds:[r==null?void 0:r.first()],activeIndex:0,activePosition:{top:(window==null?void 0:window.scrollY)+v.getBoundingClientRect().top,left:v.getBoundingClientRect().left,width:v.getBoundingClientRect().width,height:v.getBoundingClientRect().height}}))}},[s.length,r,c]),Q.useEffect(()=>{let P;const v=new ResizeObserver(R=>{P=requestAnimationFrame(()=>{R.forEach(j=>{var C,D;if(j.target===u){if(!((D=(C=j.target)==null?void 0:C.getBoundingClientRect())!=null&&D.top))return;c(k=>({...k,activePosition:{top:(window==null?void 0:window.scrollY)+j.target.getBoundingClientRect().top,left:j.target.getBoundingClientRect().left,width:j.target.getBoundingClientRect().width,height:j.target.getBoundingClientRect().height}}))}})})});return u&&v.observe(u),()=>{P&&cancelAnimationFrame(P),u&&v.unobserve(u)}},[c,u]),!(a!=null&&a.height))return null;const l=f&&o!==0,p=f&&o!==i-1,h=f,d=f,y=f,b=!!a;return S.jsx(E.StackingProvider,{layer:"focused",children:P=>S.jsx(Rr.LayoutGroup,{children:b&&S.jsxs(E.Box,{className:E.theme.className,as:Rr.motion.div,style:{...a,zIndex:P,pointerEvents:"none",position:"absolute",display:"block"},children:[S.jsx(Ac,{variants:qc,animate:[b?"active":null,o===0&&"top",o===i-1&&"bottom"].filter(Boolean),layoutId:"active-outline",initial:"initial",transition:{opacity:{duration:0},layout:{duration:.3}}}),S.jsxs(E.HStack,{css:{padding:"$3",position:"relative",pointerEvents:"none"},children:[(p||l)&&S.jsx(E.Card,{css:{background:"white",padding:"$1",pointerEvents:"all"},elevation:2,children:S.jsxs(E.HStack,{space:"extraSmall",children:[p&&S.jsx(E.Tooltip,{content:S.jsx(Ei,{text:"labels.move-down",fallback:"Move Down"}),children:S.jsx(E.Button,{appearance:"minimal",icon:E.ArrowDownIcon,onPress:()=>{n({storeKeys:t,scopes:["value","internal"],type:"list-item-move",fromIndex:o,toIndex:o+1,schema:e,required:!1}),c(v=>({...v,activeIndex:o+1,activePosition:{...v.activePosition,top:v.activePosition.top+v.activePosition.height}})),scrollBy({top:a.height})}})}),l&&S.jsx(E.Tooltip,{content:S.jsx(Ei,{text:"labels.move-up",fallback:"Move Up"}),children:S.jsx(E.Button,{appearance:"minimal",icon:E.ArrowUpIcon,onPress:()=>{n({storeKeys:t,scopes:["value","internal"],type:"list-item-move",fromIndex:o,toIndex:o-1,schema:e,required:!1}),c(v=>({...v,activePosition:{...v.activePosition,top:v.activePosition.top-v.activePosition.height},activeIndex:o-1})),scrollBy({top:-a.height})}})})]})}),y&&i>1&&S.jsx(E.Card,{css:{background:"white",padding:"$1",marginInlineStart:"auto",pointerEvents:"all"},elevation:2,children:S.jsx(E.Popover,{placement:"bottom-end",content:S.jsxs(E.VStack,{css:{padding:"$5"},children:[S.jsx(E.Heading,{size:"subHeadline",children:"Are you sure you want to delete this section?"}),S.jsx(E.Text,{children:"This action cannot be undone"}),S.jsx(E.Button,{intent:"danger",iconBefore:E.TrashIcon,onPress:()=>{n({storeKeys:t,scopes:["value"],type:"update",updater:({value:v})=>{const R=s[0];return{value:v.filter(j=>(j==null?void 0:j.get("__id"))!==R)}},schema:e,required:!1}),c(v=>({...v,activeIds:[r.get(o-1)||r.get(o+1)],activePosition:null}))},children:"Delete"})]}),children:S.jsx(E.Button,{icon:E.TrashIcon,intent:"danger",appearance:"minimal"})})})]}),h&&S.jsx(E.Card,{css:{pointerEvents:"all",background:"white",position:"absolute",marginInlineStart:"auto",borderRadius:"$round",left:"50%",top:0,transform:"translateX(-50%) translateY(-50%)"},elevation:2,children:S.jsx(E.Button,{icon:E.AddIcon,round:!0,appearance:"minimal",onPress:()=>
1{const v=xi.Utils.uuid();n({storeKeys:t,scopes:["value"],type:"update",updater:({value:R=g()})=>({value:R.insert(o,_({__id:v,__t:"text_block_section"}))}),schema:e,required:!1}),requestAnimationFrame(()=>{u.previousElementSibling&&c(R=>{var j,C,D,k;return{...R,activeIds:[v],activeIndex:o-1,target:u.previousElementSibling,activePosition:{...R.activePosition,width:(j=u.previousElementSibling)==null?void 0:j.getBoundingClientRect().width,height:(C=u.previousElementSibling)==null?void 0:C.getBoundingClientRect().height,top:(window==null?void 0:window.scrollY)+((D=u.previousElementSibling)==null?void 0:D.getBoundingClientRect().top),left:(k=u.previousElementSibling)==null?void 0:k.getBoundingClientRect().left}}})})}})}),d&&S.jsx(E.Card,{css:{pointerEvents:"all",background:"white",position:"absolute",marginInlineStart:"auto",borderRadius:"$round",left:"50%",bottom:0,transform:"translateX(-50%) translateY(50%)"},elevation:2,children:S.jsx(E.Button,{icon:E.AddIcon,round:!0,appearance:"minimal",onPress:()=>{const v=xi.Utils.uuid();n({storeKeys:t,scopes:["value"],type:"update",updater:({value:R})=>({value:R.insert(o+1,_({__id:v,__t:"text_block_section"}))}),schema:e,required:!1}),requestAnimationFrame(()=>{c(R=>{var j,C,D,k;return{...R,activeIds:[v],activeIndex:o+1,target:u.nextElementSibling,activePosition:{...R.activePosition,width:(j=u.nextElementSibling)==null?void 0:j.getBoundingClientRect().width,height:(C=u.nextElementSibling)==null?void 0:C.getBoundingClientRect().height,top:(window==null?void 0:window.scrollY)+((D=u.nextElementSibling)==null?void 0:D.getBoundingClientRect().top),left
1:(k=u.nextElementSibling)==null?void 0:k.getBoundingClientRect().left}}})})}})})]})})})}const Cc=({active:t=!1,isMultiColumn:e,t:r,...n})=>{var p;const{index:i,schema:o,storeKeys:s,showValidity:a}=n,u=s.push(i),f=o.get("items"),c=(p=n.schemaKeys)==null?void 0:p.push("items"),l=o;return S.jsx(yt,{isVirtual:!t,isMultiColumn:e,showValidity:a,schema:f,parentSchema:l,storeKeys:u,schemaKeys:c,t:r},u.join("."))},Lc=it(Cc),Tn=Cs({activeIndex:void 0}),kc=it(zc);function Nc(t){const{store:e}=Qt(),{value:r}=(e==null?void 0:e.extractValues(t.storeKeys))||{},[{activeIndex:n,activeIds:i=[]}]=Tn(),o=r==null?void 0:r.map(s=>s==null?void 0:s.get("__id"));return S.jsxs(S.Fragment,{children:[S.jsx(kc,{...t,listSize:(r==null?void 0:r.size)||0,sectionIds:o,activeIds:i,activeSectionIndex:n,ComponentItem:Lc}),!t.isColumn&&t.editing&&t.preview?S.jsx(Tc,{sectionIds:o,schema:t.schema,storeKeys:t.storeKeys,onChange:t.onChange,listSize:o==null?void 0:o.size},i.reduce((s,a)=>s+a,"")):null]})}Nc.displayName="SectionList";const Kc=E.styled("section",{width:"100%",variants:{editing:{true:{position:"relative",cursor:"pointer","&:hover":{boxShadow:"0 0 0 5px #80808070 inset"}},false:{}},isMultiColumn:{true:{},false:{}},isColumn:{true:{}}},compoundVariants:[{editing:!0,isMultiColumn:!1,css:{">":{pointerEvents:"none"}}},{editing:!0,isColumn:!0,css:{">":{pointerEvents:"none"}}}]}),Bc=E.styled("div",{width:"100%",containerType:"inline-size",containerName:"section",variants:{editing:{true:{pointerEvents:"none"}}}});function Dc(t){const e=t.current,r=e.parentElement.closest(".pagebuilder-section");return r?[r.id,e.id]:[e.id]}function Uc(t){const e=t.current,r=e.parentElement.closest(".pagebuilder-column, .pagebuilder-theme");return Array.prototype.indexOf.call(r.children,e)}function Wc({schema:t,value:e}){var i;const r=["cards"],n=t.getIn(["@context","feed_key"],"cards");return!!(e.get("@type")==="content_spot"&&r.includes(n)&&((i=e.get(n))==null?void 0:i.size)===0)}function Vc(t){var kn;const{children:e,value:r=_({}),allowPointerEvents:n=!1,schema:i,fallback:o={},background:s=null,foreground:a=null,editing:u=!1,preview:f=!0,__id:c=r.get("__id"),...l}=t,[p,h]=Tn(),d=r.has("section_properties")?["section_properties"]:[],y=d.concat(["styles"]),b=r.has("section_properties")?["properties","section_properties","properties","styles","properties"]:["properties","styles","properties"],P=r.getIn(d,_({})),v=Q.useRef(null),R=c,j=r.get("__t"),C=t.isColumn,D=j==="multi_column_section",k=r.getIn(y,_()),te=k.getIn(["background","contain"],!1),ee=(typeof t.omit=="function"?t.omit(k):t.omit)??[];C&&ee.push("containerWidth");const{marginInline:_s,maxWidth:gs,paddingBlock:ys,backgroundColor:vs,backgroundImage:ms={},backgroundPosition:bs,...pr}=$c(k,{fallback:o,omit:ee},v,i.getIn(b)),Cn={backgroundColor:vs,backgroundPosition:bs,...ms},hr={minHeight:t.minHeight};k.getIn(["padding","apply_to_top_and_bottom"],!0)===!0&&k.getIn(["padding","all"],"auto")==="auto"&&(hr.height=t.defaultHeight);const Ln=Q.useMemo(()=>Rc({schema:i,parentSchema:l.parentSchema,storeKeys:l.storeKeys,preview:f,editing:u,isMultiColumn:D,isColumn:C}),[i,l.parentSchema,l.storeKeys,C,D,f,u]),dr=Q.useMemo(()=>({styles:pr,properties:P,styleSchema:k,id:R,type:j,Property:Ln}),[pr,P,k,R,j,Ln]),Ss=Tt=>{var Kn;if(!u)return;const ws=Uc(v),Nn=Dc(v);Tt.stopPropagation();const Es=l.storeKeys.findLastIndex(_r=>_r==="sections"),Is=l.storeKeys.slice(0,Es-1);h(_r=>{var Bn,Dn,Un,Wn;return{..._r,storeKeys:Is,schema:l.parentSchema,activeIds:Nn,activeIndex:ws,target:v.current,isRoot:Nn.length<=1,activePosition:{width:(Bn=Tt.currentTarget)==null?void 0:Bn.getBoundingClientRect().width,height:(Dn=Tt.currentTarget)==null?void 0:Dn.getBoundingClientRect().height,top:(window==null?void 0:window.scrollY)+((Un=Tt.currentTarget)==null?void 0:Un.getBoundingClientRect().top),left
1:(Wn=Tt.currentTarget)==null?void 0:Wn.getBoundingClientRect().left}}}),(Kn=Tt.currentTarget)==null||Kn.scrollIntoView({behavior:"smooth",block:"nearest"})},Os=k.getIn(["css","custom_class"],"");return!u&&Wc({schema:i,value:r})?null:S.jsxs(Kc,{id:R,"data-empty":!((kn=v==null?void 0:v.current)!=null&&kn.innerText),isMultiColumn:D,isColumn:C,className:`pagebuilder-section ${Os}`,ref:v,editing:u,onClick:Ss,css:{...te?{}:Cn,...pr,...t.css},children:[typeof s=="function"?s(dr):s,S.jsx(Bc,{editing:D||n?!1:u,css:C?hr:{marginInline:_s,maxWidth:gs,paddingBlock:ys,...hr,...te?Cn:{}},children:typeof e=="function"?e(dr):e}),typeof a=="function"?a(dr):a]},R)}const yl=ar(Q.memo(Vc,(t,e)=>{var s,a;if(!t.value||!e.value)return!1;const r=t.value.has("section_properties")?["section_properties"]:[],n=r.concat(["styles"]);if(((s=t.value)==null?void 0:s.get("__id"))!==((a=e.value)==null?void 0:a.get("__id")))return!1;const o=(t.__UNSAFE__DEOPTIMIZE||[]).map(u=>t.value.getIn(r.concat(u))===e.value.getIn(r.concat(u)));return t.value.get("__id")===e.value.get("__id")&&t.value.getIn(n,_()).equals(e.value.getIn(n))&&o.every(u=>u===!0)}));export{Ao as $,el as A,rl as B,Qc as C,il as D,sl as E,al as F,Vr as G,Pu as H,xi as I,ar as J,sr as K,g as L,_ as M,Mn as N,ct as O,yt as P,ds as Q,O as R,kf as S,Ei as T,dl as U,uc as V,gc as W,Pe as X,xn as Y,ul as Z,Uu as _,gu as a,nu as a0,Na as a1,yl as a2,_l as a3,Rc as a4,J as a5,Mt as a6,$c as a7,gl as a8,so as a9,Nc as aa,Xc as ab,pl as b,Yu as c,ef as d,He as e,gf as f,Ko as g,ll as h,fl as i,cl as j,W as k,hl as l,it as m,Fe as n,qo as o,vu as p,Ha as q,Rf as r,Ga as s,Df as t,Qt as u,Vf as v,ol as w,tl as x,Zc as y,nl as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.