@zealicsolutions/web-ui 0.3.8 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cjs/index.js CHANGED
@@ -252,7 +252,7 @@ function Be(e,t){let n;if(n=t?s.default(e).withConfig({displayName:t.label,shoul
252
252
  * Copyright (c) 2014-2017, Jon Schlinkert.
253
253
  * Released under the MIT License.
254
254
  */
255
- function g_(e){return"[object Object]"===Object.prototype.toString.call(e)}function b_(e){var t,n;return!1!==g_(e)&&(void 0===(t=e.constructor)||!1!==g_(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function y_(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if("production"!==process.env.NODE_ENV){var r=sI[e],i=r?"function"==typeof r?r.apply(null,n):r:"unknown error nr: "+e;throw Error("[Immer] "+i)}throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function w_(e){return!!e&&!!e[aI]}function C_(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===lI}(e)||Array.isArray(e)||!!e[iI]||!!(null===(t=e.constructor)||void 0===t?void 0:t[iI])||k_(e)||T_(e))}function E_(e,t,n){void 0===n&&(n=!1),0===O_(e)?(n?Object.keys:cI)(e).forEach((function(o){n&&"symbol"==typeof o||t(o,e[o],e)})):e.forEach((function(n,o){return t(o,n,e)}))}function O_(e){var t=e[aI];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:k_(e)?2:T_(e)?3:0}function D_(e,t){return 2===O_(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function S_(e,t,n){var o=O_(e);2===o?e.set(t,n):3===o?(e.delete(t),e.add(n)):e[t]=n}function k_(e){return tI&&e instanceof Map}function T_(e){return nI&&e instanceof Set}function j_(e){return e.o||e.t}function M_(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=uI(e);delete t[aI];for(var n=cI(t),o=0;o<n.length;o++){var r=n[o],i=t[r];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[r]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[r]})}return Object.create(Object.getPrototypeOf(e),t)}function A_(e,t){return void 0===t&&(t=!1),R_(e)||w_(e)||!C_(e)||(O_(e)>1&&(e.set=e.add=e.clear=e.delete=N_),Object.freeze(e),t&&E_(e,(function(e,t){return A_(t,!0)}),!0)),e}function N_(){y_(2)}function R_(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function P_(e){var t=pI[e];return t||y_(18,e),t}function B_(){return"production"===process.env.NODE_ENV||Q_||y_(0),Q_}function F_(e,t){t&&(P_("Patches"),e.u=[],e.s=[],e.v=t)}function L_(e){__(e),e.p.forEach($_),e.p=null}function __(e){e===Q_&&(Q_=e.l)}function I_(e){return Q_={p:[],l:Q_,h:e,m:!0,_:0}}function $_(e){var t=e[aI];0===t.i||1===t.i?t.j():t.O=!0}function z_(e,t){t._=t.p.length;var n=t.p[0],o=void 0!==e&&e!==n;return t.h.g||P_("ES5").S(t,e,o),o?(n[aI].P&&(L_(t),y_(4)),C_(e)&&(e=V_(t,e),t.l||U_(t,e)),t.u&&P_("Patches").M(n[aI].t,e,t.u,t.s)):e=V_(t,n,[]),L_(t),t.u&&t.v(t.u,t.s),e!==rI?e:void 0}function V_(e,t,n){if(R_(t))return t;var o=t[aI];if(!o)return E_(t,(function(r,i){return W_(e,o,t,r,i,n)}),!0),t;if(o.A!==e)return t;if(!o.P)return U_(e,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=M_(o.k):o.o;E_(3===o.i?new Set(r):r,(function(t,i){return W_(e,o,r,t,i,n)})),U_(e,r,!1),n&&e.u&&P_("Patches").R(o,n,e.u,e.s)}return o.o}function W_(e,t,n,o,r,i){if("production"!==process.env.NODE_ENV&&r===n&&y_(5),w_(r)){var a=V_(e,r,i&&t&&3!==t.i&&!D_(t.D,o)?i.concat(o):void 0);if(S_(n,o,a),!w_(a))return;e.m=!1}if(C_(r)&&!R_(r)){if(!e.h.F&&e._<1)return;V_(e,r),t&&t.A.l||U_(e,r)}}function U_(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&A_(t,n)}function H_(e,t){var n=e[aI];return(n?j_(n):e)[t]}function q_(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var o=Object.getOwnPropertyDescriptor(n,t);if(o)return o;n=Object.getPrototypeOf(n)}}function X_(e){e.P||(e.P=!0,e.l&&X_(e.l))}function G_(e){e.o||(e.o=M_(e.t))}function Y_(e,t,n){var o=k_(t)?P_("MapSet").N(t,n):T_(t)?P_("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),o={i:n?1:0,A:t?t.A:B_(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},r=o,i=dI;n&&(r=[o],i=fI);var a=Proxy.revocable(r,i),s=a.revoke,l=a.proxy;return o.k=l,o.j=s,l}(t,n):P_("ES5").J(t,n);return(n?n.A:B_()).p.push(o),o}function K_(e){return w_(e)||y_(22,e),function e(t){if(!C_(t))return t;var n,o=t[aI],r=O_(t);if(o){if(!o.P&&(o.i<4||!P_("ES5").K(o)))return o.t;o.I=!0,n=Z_(t,r),o.I=!1}else n=Z_(t,r);return E_(n,(function(t,r){o&&function(e,t){return 2===O_(e)?e.get(t):e[t]}(o.t,t)===r||S_(n,t,e(r))})),3===r?new Set(n):n}(e)}function Z_(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return M_(e)}var J_,Q_,eI="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),tI="undefined"!=typeof Map,nI="undefined"!=typeof Set,oI="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,rI=eI?Symbol.for("immer-nothing"):((J_={})["immer-nothing"]=!0,J_),iI=eI?Symbol.for("immer-draftable"):"__$immer_draftable",aI=eI?Symbol.for("immer-state"):"__$immer_state",sI={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},lI=""+Object.prototype.constructor,cI="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,uI=Object.getOwnPropertyDescriptors||function(e){var t={};return cI(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},pI={},dI={get:function(e,t){if(t===aI)return e;var n=j_(e);if(!D_(n,t))return function(e,t,n){var o,r=q_(t,n);return r?"value"in r?r.value:null===(o=r.get)||void 0===o?void 0:o.call(e.k):void 0}(e,n,t);var o=n[t];return e.I||!C_(o)?o:o===H_(e.t,t)?(G_(e),e.o[t]=Y_(e.A.h,o,e)):o},has:function(e,t){return t in j_(e)},ownKeys:function(e){return Reflect.ownKeys(j_(e))},set:function(e,t,n){var o=q_(j_(e),t);if(null==o?void 0:o.set)return o.set.call(e.k,n),!0;if(!e.P){var r=H_(j_(e),t),i=null==r?void 0:r[aI];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,r)&&(void 0!==n||D_(e.t,t)))return!0;G_(e),X_(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==H_(e.t,t)||t in e.t?(e.D[t]=!1,G_(e),X_(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=j_(e),o=Reflect.getOwnPropertyDescriptor(n,t);return o?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:o.enumerable,value:n[t]}:o},defineProperty:function(){y_(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){y_(12)}},fI={};E_(dI,(function(e,t){fI[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),fI.deleteProperty=function(e,t){return"production"!==process.env.NODE_ENV&&isNaN(parseInt(t))&&y_(13),fI.set.call(this,e,t,void 0)},fI.set=function(e,t,n){return"production"!==process.env.NODE_ENV&&"length"!==t&&isNaN(parseInt(t))&&y_(14),dI.set.call(this,e[0],t,n,e[0])};var hI=function(){function e(e){var t=this;this.g=oI,this.F=!0,this.produce=function(e,n,o){if("function"==typeof e&&"function"!=typeof n){var r=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=r);for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return i.produce(e,(function(e){var o;return(o=n).call.apply(o,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&y_(6),void 0!==o&&"function"!=typeof o&&y_(7),C_(e)){var s=I_(t),l=Y_(t,e,void 0),c=!0;try{a=n(l),c=!1}finally{c?L_(s):__(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return F_(s,o),z_(e,s)}),(function(e){throw L_(s),e})):(F_(s,o),z_(a,s))}if(!e||"object"!=typeof e){if(void 0===(a=n(e))&&(a=e),a===rI&&(a=void 0),t.F&&A_(a,!0),o){var u=[],p=[];P_("Patches").M(e,a,u,p),o(u,p)}return a}y_(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var o=arguments.length,r=Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(r))}))};var o,r,i=t.produce(e,n,(function(e,t){o=e,r=t}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(e){return[e,o,r]})):[i,o,r]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){C_(e)||y_(8),w_(e)&&(e=K_(e));var t=I_(this),n=Y_(this,e,void 0);return n[aI].C=!0,__(t),n},t.finishDraft=function(e,t){var n=e&&e[aI];"production"!==process.env.NODE_ENV&&(n&&n.C||y_(9),n.I&&y_(10));var o=n.A;return F_(o,t),z_(void 0,o)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!oI&&y_(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var o=t[n];if(0===o.path.length&&"replace"===o.op){e=o.value;break}}n>-1&&(t=t.slice(n+1));var r=P_("Patches").$;return w_(e)?r(e,t):this.produce(e,(function(e){return r(e,t)}))},e}(),mI=new hI,vI=mI.produce;mI.produceWithPatches.bind(mI),mI.setAutoFreeze.bind(mI),mI.setUseProxies.bind(mI),mI.applyPatches.bind(mI);var xI=mI.createDraft.bind(mI),gI=mI.finishDraft.bind(mI);function bI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yI=new WeakMap,wI=new WeakMap,CI=new WeakMap,EI=new WeakMap,OI=new WeakMap,DI=new WeakMap,SI=new WeakMap;function kI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function TI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kI(Object(n),!0).forEach((function(t){bI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jI(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var MI,AI=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,o=t?LI(e):e,r=MI.None,i=MI.None,a=0,s=null;for(var l of o){var c=l.codePointAt(0);if(!c)break;var u=YI(l,c);if([r,i]=n?[i,u]:[u,r],KI(r,MI.ZWJ)&&KI(i,MI.ExtPict)&&!e$(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(KI(r,MI.RI)&&KI(i,MI.RI)&&!(s=null!==s?!s:!!n||n$(e.substring(0,e.length-a))))break;if(r!==MI.None&&i!==MI.None&&JI(r,i))break;a+=l.length}return a||1},NI=/\s/,RI=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,PI=/['\u2018\u2019]/,BI=(e,t,n)=>{if(n){var o=e.length-t;return[e.slice(o,e.length),e.slice(0,o)]}return[e.slice(0,t),e.slice(t)]},FI=function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(NI.test(t))return!1;if(PI.test(t)){var r=AI(n,o),[i,a]=BI(n,r,o);if(e(i,a,o))return!0}return!RI.test(t)},LI=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var o=e.charAt(t-n);if(II(o.charCodeAt(0))){var r=e.charAt(t-n-1);if(_I(r.charCodeAt(0))){yield r+o,n++;continue}}yield o}},_I=e=>e>=55296&&e<=56319,II=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(MI||(MI={}));var $I=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,zI=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,VI=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,WI=/^[\u1100-\u115F\uA960-\uA97C]$/,UI=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,HI=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,qI=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,XI=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,GI=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,YI=(e,t)=>{var n=MI.Any;return-1!==e.search($I)&&(n|=MI.Extend),8205===t&&(n|=MI.ZWJ),t>=127462&&t<=127487&&(n|=MI.RI),-1!==e.search(zI)&&(n|=MI.Prepend),-1!==e.search(VI)&&(n|=MI.SpacingMark),-1!==e.search(WI)&&(n|=MI.L),-1!==e.search(UI)&&(n|=MI.V),-1!==e.search(HI)&&(n|=MI.T),-1!==e.search(qI)&&(n|=MI.LV),-1!==e.search(XI)&&(n|=MI.LVT),-1!==e.search(GI)&&(n|=MI.ExtPict),n};function KI(e,t){return 0!=(e&t)}var ZI=[[MI.L,MI.L|MI.V|MI.LV|MI.LVT],[MI.LV|MI.V,MI.V|MI.T],[MI.LVT|MI.T,MI.T],[MI.Any,MI.Extend|MI.ZWJ],[MI.Any,MI.SpacingMark],[MI.Prepend,MI.Any],[MI.ZWJ,MI.ExtPict],[MI.RI,MI.RI]];function JI(e,t){return-1===ZI.findIndex((n=>KI(e,n[0])&&KI(t,n[1])))}var QI=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,e$=e=>-1!==e.search(QI),t$=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,n$=e=>{var t=e.match(t$);return null!==t&&t[0].length/2%2==1},o$=e=>b_(e)&&m$.isNodeList(e.children)&&!u$.isEditor(e),r$={isAncestor:e=>b_(e)&&m$.isNodeList(e.children),isElement:o$,isElementList:e=>Array.isArray(e)&&e.every((e=>r$.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return o$(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},i$=["text"],a$=["text"];function s$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s$(Object(n),!0).forEach((function(t){bI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c$=new WeakMap,u$={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:o="lowest",at:r=e.selection,match:i}=t;if(r){var a=u$.path(e,r),s="lowest"===o;for(var[l,c]of u$.levels(e,{at:a,voids:n,match:i,reverse:s})){if(F$.isText(l))return;if(k$.isRange(r)){if(b$.isAncestor(c,r.anchor.path)&&b$.isAncestor(c,r.focus.path))return[l,c]}else if(!b$.equals(a,c))return[l,c]}}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={anchor:u$.point(e,t,{edge:"end"}),focus:u$.end(e,[])},{distance:i=1}=o,a=0;for(var s of u$.positions(e,l$(l$({},o),{},{at:r}))){if(a>i)break;0!==a&&(n=s),a++}return n},before(e,t){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={anchor:u$.start(e,[]),focus:u$.point(e,t,{edge:"start"})},{distance:i=1}=o,a=0;for(var s of u$.positions(e,l$(l$({},o),{},{at:r,reverse:!0}))){if(a>i)break;0!==a&&(n=s),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[u$.start(e,t),u$.end(e,t)],end:(e,t)=>u$.point(e,t,{edge:"end"}),first(e,t){var n=u$.path(e,t,{edge:"start"});return u$.node(e,n)},fragment(e,t){var n=u$.range(e,t);return m$.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>u$.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>F$.isText(t)||u$.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>F$.isText(e))),insertBreak(e){e.insertBreak()},insertSoftBreak(e){e.insertSoftBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>r$.isElement(t)&&!e.isInline(t),isEditor(e){var t=c$.get(e);if(void 0!==t)return t;if(!b_(e))return!1;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertSoftBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&"function"==typeof e.getDirtyPaths&&(null===e.marks||b_(e.marks))&&(null===e.selection||k$.isRange(e.selection))&&m$.isNodeList(e.children)&&g$.isOperationList(e.operations);return c$.set(e,n),n},isEnd(e,t,n){var o=u$.end(e,n);return E$.equals(t,o)},isEdge:(e,t,n)=>u$.isStart(e,t,n)||u$.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[o]=n;return 0===n.length||1===n.length&&F$.isText(o)&&""===o.text&&!e.isVoid(t)},isInline:(e,t)=>r$.isElement(t)&&e.isInline(t),isNormalizing(e){var t=EI.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var o=u$.start(e,n);return E$.equals(t,o)},isVoid:(e,t)=>r$.isElement(t)&&e.isVoid(t),last(e,t){var n=u$.path(e,t,{edge:"end"});return u$.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=u$.path(e,t,n);return[m$.leaf(e,o),o]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:o=!1,voids:r=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],s=u$.path(e,n);for(var[l,c]of m$.levels(e,s))if(i(l,c)&&(a.push([l,c]),!r&&u$.isVoid(e,l)))break;o&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(k$.isExpanded(n)){var[o]=u$.nodes(e,{match:F$.isText});if(o){var[r]=o;return jI(r,i$)}return{}}var{anchor:i}=n,{path:a}=i,[s]=u$.leaf(e,a);if(0===i.offset){var l=u$.previous(e,{at:a,match:F$.isText}),c=u$.above(e,{match:t=>u$.isBlock(e,t)});if(l&&c){var[u,p]=l,[,d]=c;b$.isAncestor(d,p)&&(s=u)}}return jI(s,a$)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:o=!1}=t,{match:r,at:i=e.selection}=t;if(i){var a=u$.after(e,i,{voids:o});if(a){var[,s]=u$.last(e,[]),l=[a.path,s];if(b$.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==r)if(b$.isPath(i)){var[c]=u$.parent(e,i);r=e=>c.children.includes(e)}else r=()=>!0;var[u]=u$.nodes(e,{at:l,match:r,mode:n,voids:o});return u}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=u$.path(e,t,n);return[m$.get(e,o),o]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:o="all",universal:r=!1,reverse:i=!1,voids:a=!1}=t,{match:s}=t;if(s||(s=()=>!0),n){var l,c;if(p$.isSpan(n))l=n[0],c=n[1];else{var u=u$.path(e,n,{edge:"start"}),p=u$.path(e,n,{edge:"end"});l=i?p:u,c=i?u:p}var d,f=m$.nodes(e,{reverse:i,from:l,to:c,pass:t=>{var[n]=t;return!a&&u$.isVoid(e,n)}}),h=[];for(var[m,v]of f){var x=d&&0===b$.compare(v,d[1]);if("highest"!==o||!x)if(s(m,v))if("lowest"===o&&x)d=[m,v];else{var g="lowest"===o?d:[m,v];g&&(r?h.push(g):yield g),d=[m,v]}else if(r&&!x&&F$.isText(m))return}"lowest"===o&&d&&(r?h.push(d):yield d),r&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,o=e=>yI.get(e)||[],r=e=>{var t=o(e).pop(),n=t.join(",");return(e=>wI.get(e)||new Set)(e).delete(n),t};if(u$.isNormalizing(e)){if(n){var i=Array.from(m$.nodes(e),(e=>{var[,t]=e;return t})),a=new Set(i.map((e=>e.join(","))));yI.set(e,i),wI.set(e,a)}0!==o(e).length&&u$.withoutNormalizing(e,(()=>{for(var t of o(e))if(m$.has(e,t)){var n=u$.node(e,t),[i,a]=n;r$.isElement(i)&&0===i.children.length&&e.normalizeNode(n)}for(var s=42*o(e).length,l=0;0!==o(e).length;){if(l>s)throw new Error("\n Could not completely normalize the editor after ".concat(s," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var c=r(e);if(m$.has(e,c)){var u=u$.node(e,c);e.normalizeNode(u)}l++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=u$.path(e,t,n),r=b$.parent(o);return u$.node(e,r)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:o,edge:r}=n;if(b$.isPath(t))if("start"===r){var[,i]=m$.first(e,t);t=i}else if("end"===r){var[,a]=m$.last(e,t);t=a}return k$.isRange(t)&&(t="start"===r?k$.start(t):"end"===r?k$.end(t):b$.common(t.anchor.path,t.focus.path)),E$.isPoint(t)&&(t=t.path),null!=o&&(t=t.slice(0,o)),t},hasPath:(e,t)=>m$.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:o="forward"}=n,r={current:t,affinity:o,unref(){var{current:t}=r;return u$.pathRefs(e).delete(r),r.current=null,t}};return u$.pathRefs(e).add(r),r},pathRefs(e){var t=OI.get(e);return t||(t=new Set,OI.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:o="start"}=n;if(b$.isPath(t)){var r;if("end"===o){var[,i]=m$.last(e,t);r=i}else{var[,a]=m$.first(e,t);r=a}var s=m$.get(e,r);if(!F$.isText(s))throw new Error("Cannot get the ".concat(o," point in the node at path [").concat(t,"] because it has no ").concat(o," text node."));return{path:r,offset:"end"===o?s.text.length:0}}if(k$.isRange(t)){var[l,c]=k$.edges(t);return"start"===o?l:c}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:o="forward"}=n,r={current:t,affinity:o,unref(){var{current:t}=r;return u$.pointRefs(e).delete(r),r.current=null,t}};return u$.pointRefs(e).add(r),r},pointRefs(e){var t=DI.get(e);return t||(t=new Set,DI.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:o="offset",reverse:r=!1,voids:i=!1}=t;if(n){var a=u$.range(e,n),[s,l]=k$.edges(a),c=r?l:s,u=!1,p="",d=0,f=0,h=0;for(var[m,v]of u$.nodes(e,{at:n,reverse:r,voids:i})){if(r$.isElement(m)){if(!i&&e.isVoid(m)){yield u$.start(e,v);continue}if(e.isInline(m))continue;if(u$.hasInlines(e,m)){var x=b$.isAncestor(v,l.path)?l:u$.end(e,v),g=b$.isAncestor(v,s.path)?s:u$.start(e,v);p=u$.string(e,{anchor:g,focus:x},{voids:i}),u=!0}}if(F$.isText(m)){var b=b$.equals(v,c.path);for(b?(f=r?c.offset:m.text.length-c.offset,h=c.offset):(f=m.text.length,h=r?f:0),(b||u||"offset"===o)&&(yield{path:v,offset:h},u=!1);;){if(0===d){if(""===p)break;d=y(p,o,r),p=BI(p,d,r)[1]}if(h=r?h-d:h+d,(f-=d)<0){d=-f;break}d=0,yield{path:v,offset:h}}}}}function y(e,t,n){return"character"===t?AI(e,n):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,o=!1;e.length>0;){var r=AI(e,t),[i,a]=BI(e,r,t);if(FI(i,a,t))o=!0,n+=r;else{if(o)break;n+=r}e=a}return n}(e,n):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:o=!1}=t,{match:r,at:i=e.selection}=t;if(i){var a=u$.before(e,i,{voids:o});if(a){var[,s]=u$.first(e,[]),l=[a.path,s];if(b$.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==r)if(b$.isPath(i)){var[c]=u$.parent(e,i);r=e=>c.children.includes(e)}else r=()=>!0;var[u]=u$.nodes(e,{reverse:!0,at:l,match:r,mode:n,voids:o});return u}}},range:(e,t,n)=>k$.isRange(t)&&!n?t:{anchor:u$.start(e,t),focus:u$.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:o="forward"}=n,r={current:t,affinity:o,unref(){var{current:t}=r;return u$.rangeRefs(e).delete(r),r.current=null,t}};return u$.rangeRefs(e).add(r),r},rangeRefs(e){var t=SI.get(e);return t||(t=new Set,SI.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){EI.set(e,t)},start:(e,t)=>u$.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:o=!1}=n,r=u$.range(e,t),[i,a]=k$.edges(r),s="";for(var[l,c]of u$.nodes(e,{at:r,match:F$.isText,voids:o})){var u=l.text;b$.equals(c,a.path)&&(u=u.slice(0,a.offset)),b$.equals(c,i.path)&&(u=u.slice(i.offset)),s+=u}return s},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:o=!1}=n,[r,i]=k$.edges(t);if(0!==r.offset||0!==i.offset||k$.isCollapsed(t))return t;var a=u$.above(e,{at:i,match:t=>u$.isBlock(e,t)}),s=a?a[1]:[],l={anchor:u$.start(e,r),focus:i},c=!0;for(var[u,p]of u$.nodes(e,{at:l,match:F$.isText,reverse:!0,voids:o}))if(c)c=!1;else if(""!==u.text||b$.isBefore(p,s)){i={path:p,offset:u.text.length};break}return{anchor:r,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u$.above(e,l$(l$({},t),{},{match:t=>u$.isVoid(e,t)}))},withoutNormalizing(e,t){var n=u$.isNormalizing(e);u$.setNormalizing(e,!1);try{t()}finally{u$.setNormalizing(e,n)}u$.normalize(e)}},p$={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(b$.isPath)},d$=["children"],f$=["text"],h$=new WeakMap,m$={ancestor(e,t){var n=m$.get(e,t);if(F$.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(M$.stringify(n)));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var o of b$.ancestors(t,n)){var r=[m$.ancestor(e,o),o];yield r}},child(e,t){if(F$.isText(e))throw new Error("Cannot get the child of a text node: ".concat(M$.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(M$.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:o=!1}=n,r=m$.ancestor(e,t),{children:i}=r,a=o?i.length-1:0;o?a>=0:a<i.length;){var s=m$.child(r,a),l=t.concat(a);yield[s,l],a=o?a-1:a+1}},common(e,t,n){var o=b$.common(t,n);return[m$.get(e,o),o]},descendant(e,t){var n=m$.get(e,t);if(u$.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(M$.stringify(n)));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,o]of m$.nodes(e,t))0!==o.length&&(yield[n,o])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,o]of m$.nodes(e,t))r$.isElement(n)&&(yield[n,o])},extractProps:e=>r$.isAncestor(e)?jI(e,d$):jI(e,f$),first(e,t){for(var n=t.slice(),o=m$.get(e,n);o&&!F$.isText(o)&&0!==o.children.length;)o=o.children[0],n.push(0);return[o,n]},fragment(e,t){if(F$.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(M$.stringify(e)));var n=vI({children:e.children},(e=>{var[n,o]=k$.edges(t),r=m$.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!k$.includes(t,n)}});for(var[,i]of r){if(!k$.includes(t,i)){var a=m$.parent(e,i),s=i[i.length-1];a.children.splice(s,1)}if(b$.equals(i,o.path)){var l=m$.leaf(e,i);l.text=l.text.slice(0,o.offset)}if(b$.equals(i,n.path)){var c=m$.leaf(e,i);c.text=c.text.slice(n.offset)}}u$.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){for(var n=e,o=0;o<t.length;o++){var r=t[o];if(F$.isText(n)||!n.children[r])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(M$.stringify(e)));n=n.children[r]}return n},has(e,t){for(var n=e,o=0;o<t.length;o++){var r=t[o];if(F$.isText(n)||!n.children[r])return!1;n=n.children[r]}return!0},isNode:e=>F$.isText(e)||r$.isElement(e)||u$.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=h$.get(e);if(void 0!==t)return t;var n=e.every((e=>m$.isNode(e)));return h$.set(e,n),n},last(e,t){for(var n=t.slice(),o=m$.get(e,n);o&&!F$.isText(o)&&0!==o.children.length;){var r=o.children.length-1;o=o.children[r],n.push(r)}return[o,n]},leaf(e,t){var n=m$.get(e,t);if(!F$.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(M$.stringify(n)));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var o of b$.levels(t,n)){var r=m$.get(e,o);yield[r,o]}},matches:(e,t)=>r$.isElement(e)&&r$.isElementProps(t)&&r$.matches(e,t)||F$.isText(e)&&F$.isTextProps(t)&&F$.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:o=!1}=t,{from:r=[],to:i}=t,a=new Set,s=[],l=e;!i||!(o?b$.isBefore(s,i):b$.isAfter(s,i));)if(a.has(l)||(yield[l,s]),a.has(l)||F$.isText(l)||0===l.children.length||null!=n&&!1!==n([l,s])){if(0===s.length)break;if(!o){var c=b$.next(s);if(m$.has(e,c)){s=c,l=m$.get(e,s);continue}}if(o&&0!==s[s.length-1])s=b$.previous(s),l=m$.get(e,s);else s=b$.parent(s),l=m$.get(e,s),a.add(l)}else{a.add(l);var u=o?l.children.length-1:0;b$.isAncestor(s,r)&&(u=r[s.length]),s=s.concat(u),l=m$.get(e,s)}},parent(e,t){var n=b$.parent(t),o=m$.get(e,n);if(F$.isText(o))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return o},string:e=>F$.isText(e)?e.text:e.children.map(m$.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,o]of m$.nodes(e,t))F$.isText(n)&&(yield[n,o])}};function v$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function x$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v$(Object(n),!0).forEach((function(t){bI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g$={isNodeOperation:e=>g$.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!b_(e))return!1;switch(e.type){case"insert_node":case"remove_node":return b$.isPath(e.path)&&m$.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&b$.isPath(e.path);case"merge_node":return"number"==typeof e.position&&b$.isPath(e.path)&&b_(e.properties);case"move_node":return b$.isPath(e.path)&&b$.isPath(e.newPath);case"set_node":return b$.isPath(e.path)&&b_(e.properties)&&b_(e.newProperties);case"set_selection":return null===e.properties&&k$.isRange(e.newProperties)||null===e.newProperties&&k$.isRange(e.properties)||b_(e.properties)&&b_(e.newProperties);case"split_node":return b$.isPath(e.path)&&"number"==typeof e.position&&b_(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>g$.isOperation(e))),isSelectionOperation:e=>g$.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>g$.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return x$(x$({},e),{},{type:"remove_node"});case"insert_text":return x$(x$({},e),{},{type:"remove_text"});case"merge_node":return x$(x$({},e),{},{type:"split_node",path:b$.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(b$.equals(t,n))return e;if(b$.isSibling(n,t))return x$(x$({},e),{},{path:t,newPath:n});var o=b$.transform(n,e),r=b$.transform(b$.next(n),e);return x$(x$({},e),{},{path:o,newPath:r});case"remove_node":return x$(x$({},e),{},{type:"insert_node"});case"remove_text":return x$(x$({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return x$(x$({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:s,newProperties:l}=e;return x$(x$({},e),{},null==s?{properties:l,newProperties:null}:null==l?{properties:null,newProperties:s}:{properties:l,newProperties:s});case"split_node":return x$(x$({},e),{},{type:"merge_node",path:b$.next(e.path)})}}},b$={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,o=b$.levels(e,t);return o=n?o.slice(1):o.slice(0,-1)},common(e,t){for(var n=[],o=0;o<e.length&&o<t.length;o++){var r=e[o];if(r!==t[o])break;n.push(r)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),o=0;o<n;o++){if(e[o]<t[o])return-1;if(e[o]>t[o])return 1}return 0},endsAfter(e,t){var n=e.length-1,o=e.slice(0,n),r=t.slice(0,n),i=e[n],a=t[n];return b$.equals(o,r)&&i>a},endsAt(e,t){var n=e.length,o=e.slice(0,n),r=t.slice(0,n);return b$.equals(o,r)},endsBefore(e,t){var n=e.length-1,o=e.slice(0,n),r=t.slice(0,n),i=e[n],a=t[n];return b$.equals(o,r)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===b$.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===b$.compare(e,t),isBefore:(e,t)=>-1===b$.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===b$.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===b$.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===b$.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===b$.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),o=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&b$.equals(n,o)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,o=[],r=0;r<=e.length;r++)o.push(e.slice(0,r));return n&&o.reverse(),o},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!b$.isAncestor(t,e)&&!b$.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return null;var o=[...e],{affinity:r="forward"}=n;if(0===e.length)return o;switch(t.type){case"insert_node":var{path:i}=t;(b$.equals(i,o)||b$.endsBefore(i,o)||b$.isAncestor(i,o))&&(o[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(b$.equals(a,o)||b$.isAncestor(a,o))return null;b$.endsBefore(a,o)&&(o[a.length-1]-=1);break;case"merge_node":var{path:s,position:l}=t;b$.equals(s,o)||b$.endsBefore(s,o)?o[s.length-1]-=1:b$.isAncestor(s,o)&&(o[s.length-1]-=1,o[s.length]+=l);break;case"split_node":var{path:c,position:u}=t;if(b$.equals(c,o)){if("forward"===r)o[o.length-1]+=1;else if("backward"!==r)return null}else b$.endsBefore(c,o)?o[c.length-1]+=1:b$.isAncestor(c,o)&&e[c.length]>=u&&(o[c.length-1]+=1,o[c.length]-=u);break;case"move_node":var{path:p,newPath:d}=t;if(b$.equals(p,d))return o;if(b$.isAncestor(p,o)||b$.equals(p,o)){var f=d.slice();return b$.endsBefore(p,d)&&p.length<d.length&&(f[p.length-1]-=1),f.concat(o.slice(p.length))}b$.isSibling(p,d)&&(b$.isAncestor(d,o)||b$.equals(d,o))?b$.endsBefore(p,o)?o[p.length-1]-=1:o[p.length-1]+=1:b$.endsBefore(d,o)||b$.equals(d,o)||b$.isAncestor(d,o)?(b$.endsBefore(p,o)&&(o[p.length-1]-=1),o[d.length-1]+=1):b$.endsBefore(p,o)&&(b$.equals(d,o)&&(o[d.length-1]+=1),o[p.length-1]-=1)}return o}},y$={transform(e,t){var{current:n,affinity:o}=e;if(null!=n){var r=b$.transform(n,t,{affinity:o});e.current=r,null==r&&e.unref()}}};function w$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function C$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w$(Object(n),!0).forEach((function(t){bI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var E$={compare(e,t){var n=b$.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===E$.compare(e,t),isBefore:(e,t)=>-1===E$.compare(e,t),equals:(e,t)=>e.offset===t.offset&&b$.equals(e.path,t.path),isPoint:e=>b_(e)&&"number"==typeof e.offset&&b$.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return vI(e,(e=>{if(null===e)return null;var{affinity:o="forward"}=n,{path:r,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=b$.transform(r,t,n);break;case"insert_text":b$.equals(t.path,r)&&(t.offset<i||t.offset===i&&"forward"===o)&&(e.offset+=t.text.length);break;case"merge_node":b$.equals(t.path,r)&&(e.offset+=t.position),e.path=b$.transform(r,t,n);break;case"remove_text":b$.equals(t.path,r)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(b$.equals(t.path,r)||b$.isAncestor(t.path,r))return null;e.path=b$.transform(r,t,n);break;case"split_node":if(b$.equals(t.path,r)){if(t.position===i&&null==o)return null;(t.position<i||t.position===i&&"forward"===o)&&(e.offset-=t.position,e.path=b$.transform(r,t,C$(C$({},n),{},{affinity:"forward"})))}else e.path=b$.transform(r,t,n)}}))}},O$={transform(e,t){var{current:n,affinity:o}=e;if(null!=n){var r=E$.transform(n,t,{affinity:o});e.current=r,null==r&&e.unref()}}},D$=["anchor","focus"];function S$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var k$={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:o,focus:r}=e;return k$.isBackward(e)===n?[o,r]:[r,o]},end(e){var[,t]=k$.edges(e);return t},equals:(e,t)=>E$.equals(e.anchor,t.anchor)&&E$.equals(e.focus,t.focus),includes(e,t){if(k$.isRange(t)){if(k$.includes(e,t.anchor)||k$.includes(e,t.focus))return!0;var[n,o]=k$.edges(e),[r,i]=k$.edges(t);return E$.isBefore(n,r)&&E$.isAfter(o,i)}var[a,s]=k$.edges(e),l=!1,c=!1;return E$.isPoint(t)?(l=E$.compare(t,a)>=0,c=E$.compare(t,s)<=0):(l=b$.compare(t,a.path)>=0,c=b$.compare(t,s.path)<=0),l&&c},intersection(e,t){var n=jI(e,D$),[o,r]=k$.edges(e),[i,a]=k$.edges(t),s=E$.isBefore(o,i)?i:o,l=E$.isBefore(r,a)?r:a;return E$.isBefore(l,s)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S$(Object(n),!0).forEach((function(t){bI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:s,focus:l},n)},isBackward(e){var{anchor:t,focus:n}=e;return E$.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return E$.equals(t,n)},isExpanded:e=>!k$.isCollapsed(e),isForward:e=>!k$.isBackward(e),isRange:e=>b_(e)&&E$.isPoint(e.anchor)&&E$.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=k$.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return vI(e,(e=>{if(null===e)return null;var o,r,{affinity:i="inward"}=n;if("inward"===i){var a=k$.isCollapsed(e);k$.isForward(e)?(o="forward",r=a?o:"backward"):(o="backward",r=a?o:"forward")}else"outward"===i?k$.isForward(e)?(o="backward",r="forward"):(o="forward",r="backward"):(o=i,r=i);var s=E$.transform(e.anchor,t,{affinity:o}),l=E$.transform(e.focus,t,{affinity:r});if(!s||!l)return null;e.anchor=s,e.focus=l}))}},T$={transform(e,t){var{current:n,affinity:o}=e;if(null!=n){var r=k$.transform(n,t,{affinity:o});e.current=r,null==r&&e.unref()}}},j$=void 0,M$={setScrubber(e){j$=e},stringify:e=>JSON.stringify(e,j$)},A$=(e,t)=>{for(var n in e){var o=e[n],r=t[n];if(b_(o)&&b_(r)){if(!A$(o,r))return!1}else if(Array.isArray(o)&&Array.isArray(r)){if(o.length!==r.length)return!1;for(var i=0;i<o.length;i++)if(o[i]!==r[i])return!1}else if(o!==r)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},N$=["text"],R$=["anchor","focus"];function P$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function B$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P$(Object(n),!0).forEach((function(t){bI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var F$={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:o=!1}=n;function r(e){return jI(e,N$)}return A$(o?r(e):e,o?r(t):t)},isText:e=>b_(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>F$.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[B$({},e)];for(var o of t){var r=jI(o,R$),[i,a]=k$.edges(o),s=[],l=0,c=i.offset,u=a.offset;for(var p of n){var{length:d}=p.text,f=l;if(l+=d,c<=f&&l<=u)Object.assign(p,r),s.push(p);else if(c!==u&&(c===l||u===f)||c>l||u<f||u===f&&0!==f)s.push(p);else{var h=p,m=void 0,v=void 0;if(u<l){var x=u-f;v=B$(B$({},h),{},{text:h.text.slice(x)}),h=B$(B$({},h),{},{text:h.text.slice(0,x)})}if(c>f){var g=c-f;m=B$(B$({},h),{},{text:h.text.slice(0,g)}),h=B$(B$({},h),{},{text:h.text.slice(g)})}Object.assign(h,r),m&&s.push(m),s.push(h),v&&s.push(v)}}n=s}return n}};function L$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L$(Object(n),!0).forEach((function(t){bI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var I$={transform(e,t){e.children=xI(e.children);var n=e.selection&&xI(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:o,node:r}=n,i=m$.parent(e,o),a=o[o.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(o,"] because the destination is past the end of the node."));if(i.children.splice(a,0,r),t)for(var[s,l]of k$.points(t))t[l]=E$.transform(s,n);break;case"insert_text":var{path:c,offset:u,text:p}=n;if(0===p.length)break;var d=m$.leaf(e,c),f=d.text.slice(0,u),h=d.text.slice(u);if(d.text=f+p+h,t)for(var[m,v]of k$.points(t))t[v]=E$.transform(m,n);break;case"merge_node":var{path:x}=n,g=m$.get(e,x),b=b$.previous(x),y=m$.get(e,b),w=m$.parent(e,x),C=x[x.length-1];if(F$.isText(g)&&F$.isText(y))y.text+=g.text;else{if(F$.isText(g)||F$.isText(y))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(x,"] to nodes of different interfaces: ").concat(M$.stringify(g)," ").concat(M$.stringify(y)));y.children.push(...g.children)}if(w.children.splice(C,1),t)for(var[E,O]of k$.points(t))t[O]=E$.transform(E,n);break;case"move_node":var{path:D,newPath:S}=n;if(b$.isAncestor(D,S))throw new Error("Cannot move a path [".concat(D,"] to new path [").concat(S,"] because the destination is inside itself."));var k=m$.get(e,D),T=m$.parent(e,D),j=D[D.length-1];T.children.splice(j,1);var M=b$.transform(D,n),A=m$.get(e,b$.parent(M)),N=M[M.length-1];if(A.children.splice(N,0,k),t)for(var[R,P]of k$.points(t))t[P]=E$.transform(R,n);break;case"remove_node":var{path:B}=n,F=B[B.length-1];if(m$.parent(e,B).children.splice(F,1),t)for(var[L,_]of k$.points(t)){var I=E$.transform(L,n);if(null!=t&&null!=I)t[_]=I;else{var $=void 0,z=void 0;for(var[V,W]of m$.texts(e)){if(-1!==b$.compare(W,B)){z=[V,W];break}$=[V,W]}var U=!1;$&&z&&(U=b$.equals(z[1],B)?!b$.hasPrevious(z[1]):b$.common($[1],B).length<b$.common(z[1],B).length),$&&!U?(L.path=$[1],L.offset=$[0].text.length):z?(L.path=z[1],L.offset=0):t=null}}break;case"remove_text":var{path:H,offset:q,text:X}=n;if(0===X.length)break;var G=m$.leaf(e,H),Y=G.text.slice(0,q),K=G.text.slice(q+X.length);if(G.text=Y+K,t)for(var[Z,J]of k$.points(t))t[J]=E$.transform(Z,n);break;case"set_node":var{path:Q,properties:ee,newProperties:te}=n;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var ne=m$.get(e,Q);for(var oe in te){if("children"===oe||"text"===oe)throw new Error('Cannot set the "'.concat(oe,'" property of nodes!'));var re=te[oe];null==re?delete ne[oe]:ne[oe]=re}for(var ie in ee)te.hasOwnProperty(ie)||delete ne[ie];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!k$.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(M$.stringify(ae)," when there is no current selection."));t=_$({},ae)}for(var se in ae){var le=ae[se];if(null==le){if("anchor"===se||"focus"===se)throw new Error('Cannot remove the "'.concat(se,'" selection property'));delete t[se]}else t[se]=le}}break;case"split_node":var{path:ce,position:ue,properties:pe}=n;if(0===ce.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(ce,"] because the root node cannot be split."));var de,fe=m$.get(e,ce),he=m$.parent(e,ce),me=ce[ce.length-1];if(F$.isText(fe)){var ve=fe.text.slice(0,ue),xe=fe.text.slice(ue);fe.text=ve,de=_$(_$({},pe),{},{text:xe})}else{var ge=fe.children.slice(0,ue),be=fe.children.slice(ue);fe.children=ge,de=_$(_$({},pe),{},{children:be})}if(he.children.splice(me+1,0,de),t)for(var[ye,we]of k$.points(t))t[we]=E$.transform(ye,n)}return t})(e,n,t)}finally{e.children=gI(e.children),e.selection=n?w_(n)?gI(n):n:null}}},$$=["text"],z$=["children"];function V$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function W$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V$(Object(n),!0).forEach((function(t){bI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var U$={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u$.withoutNormalizing(e,(()=>{var{hanging:o=!1,voids:r=!1,mode:i="lowest"}=n,{at:a,match:s,select:l}=n;if(m$.isNode(t)&&(t=[t]),0!==t.length){var[c]=t;if(a||(a=e.selection?e.selection:e.children.length>0?u$.end(e,[]):[0],l=!0),null==l&&(l=!1),k$.isRange(a))if(o||(a=u$.unhangRange(e,a)),k$.isCollapsed(a))a=a.anchor;else{var[,u]=k$.edges(a),p=u$.pointRef(e,u);ez.delete(e,{at:a}),a=p.unref()}if(E$.isPoint(a)){null==s&&(s=F$.isText(c)?e=>F$.isText(e):e.isInline(c)?t=>F$.isText(t)||u$.isInline(e,t):t=>u$.isBlock(e,t));var[d]=u$.nodes(e,{at:a.path,match:s,mode:i,voids:r});if(!d)return;var[,f]=d,h=u$.pathRef(e,f),m=u$.isEnd(e,a,f);ez.splitNodes(e,{at:a,match:s,mode:i,voids:r});var v=h.unref();a=m?b$.next(v):v}var x=b$.parent(a),g=a[a.length-1];if(r||!u$.void(e,{at:x})){for(var b of t){var y=x.concat(g);g++,e.apply({type:"insert_node",path:y,node:b}),a=b$.next(a)}if(a=b$.previous(a),l){var w=u$.end(e,a);w&&ez.select(e,w)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u$.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:o="lowest",voids:r=!1}=t,{match:i}=t;if(null==i&&(i=b$.isPath(n)?X$(e,n):t=>u$.isBlock(e,t)),n){var a=u$.nodes(e,{at:n,match:i,mode:o,voids:r}),s=Array.from(a,(t=>{var[,n]=t;return u$.pathRef(e,n)}));for(var l of s){var c=l.unref();if(c.length<2)throw new Error("Cannot lift node at a path [".concat(c,"] because it has a depth of less than `2`."));var u=u$.node(e,b$.parent(c)),[p,d]=u,f=c[c.length-1],{length:h}=p.children;if(1===h){var m=b$.next(d);ez.moveNodes(e,{at:c,to:m,voids:r}),ez.removeNodes(e,{at:d,voids:r})}else if(0===f)ez.moveNodes(e,{at:c,to:d,voids:r});else if(f===h-1){var v=b$.next(d);ez.moveNodes(e,{at:c,to:v,voids:r})}else{var x=b$.next(c),g=b$.next(d);ez.splitNodes(e,{at:x,voids:r}),ez.moveNodes(e,{at:c,to:g,voids:r})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u$.withoutNormalizing(e,(()=>{var{match:n,at:o=e.selection}=t,{hanging:r=!1,voids:i=!1,mode:a="lowest"}=t;if(o){if(null==n)if(b$.isPath(o)){var[s]=u$.parent(e,o);n=e=>s.children.includes(e)}else n=t=>u$.isBlock(e,t);if(!r&&k$.isRange(o)&&(o=u$.unhangRange(e,o)),k$.isRange(o))if(k$.isCollapsed(o))o=o.anchor;else{var[,l]=k$.edges(o),c=u$.pointRef(e,l);ez.delete(e,{at:o}),o=c.unref(),null==t.at&&ez.select(e,o)}var[u]=u$.nodes(e,{at:o,match:n,voids:i,mode:a}),p=u$.previous(e,{at:o,match:n,voids:i,mode:a});if(u&&p){var[d,f]=u,[h,m]=p;if(0!==f.length&&0!==m.length){var v,x,g=b$.next(m),b=b$.common(f,m),y=b$.isSibling(f,m),w=Array.from(u$.levels(e,{at:f}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),C=u$.above(e,{at:f,mode:"highest",match:t=>w.includes(t)&&H$(e,t)}),E=C&&u$.pathRef(e,C[1]);if(F$.isText(d)&&F$.isText(h)){var O=jI(d,$$);x=h.text.length,v=O}else{if(!r$.isElement(d)||!r$.isElement(h))throw new Error("Cannot merge the node at path [".concat(f,"] with the previous sibling because it is not the same kind: ").concat(M$.stringify(d)," ").concat(M$.stringify(h)));O=jI(d,z$);x=h.children.length,v=O}y||ez.moveNodes(e,{at:f,to:g,voids:i}),E&&ez.removeNodes(e,{at:E.current,voids:i}),r$.isElement(h)&&u$.isEmpty(e,h)||F$.isText(h)&&""===h.text&&0!==m[m.length-1]?ez.removeNodes(e,{at:m,voids:i}):e.apply({type:"merge_node",path:g,position:x,properties:v}),E&&E.unref()}}}}))},moveNodes(e,t){u$.withoutNormalizing(e,(()=>{var{to:n,at:o=e.selection,mode:r="lowest",voids:i=!1}=t,{match:a}=t;if(o){null==a&&(a=b$.isPath(o)?X$(e,o):t=>u$.isBlock(e,t));var s=u$.pathRef(e,n),l=u$.nodes(e,{at:o,match:a,mode:r,voids:i}),c=Array.from(l,(t=>{var[,n]=t;return u$.pathRef(e,n)}));for(var u of c){var p=u.unref(),d=s.current;0!==p.length&&e.apply({type:"move_node",path:p,newPath:d}),s.current&&b$.isSibling(d,p)&&b$.isAfter(d,p)&&(s.current=b$.next(s.current))}s.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u$.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:o=!1,mode:r="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=b$.isPath(i)?X$(e,i):t=>u$.isBlock(e,t)),!n&&k$.isRange(i)&&(i=u$.unhangRange(e,i));var s=u$.nodes(e,{at:i,match:a,mode:r,voids:o}),l=Array.from(s,(t=>{var[,n]=t;return u$.pathRef(e,n)}));for(var c of l){var u=c.unref();if(u){var[p]=u$.node(e,u);e.apply({type:"remove_node",path:u,node:p})}}}}))},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u$.withoutNormalizing(e,(()=>{var{match:o,at:r=e.selection,compare:i,merge:a}=n,{hanging:s=!1,mode:l="lowest",split:c=!1,voids:u=!1}=n;if(r){if(null==o&&(o=b$.isPath(r)?X$(e,r):t=>u$.isBlock(e,t)),!s&&k$.isRange(r)&&(r=u$.unhangRange(e,r)),c&&k$.isRange(r)){if(k$.isCollapsed(r)&&u$.leaf(e,r.anchor)[0].text.length>0)return;var p=u$.rangeRef(e,r,{affinity:"inward"}),[d,f]=k$.edges(r),h="lowest"===l?"lowest":"highest",m=u$.isEnd(e,f,f.path);ez.splitNodes(e,{at:f,match:o,mode:h,voids:u,always:!m});var v=u$.isStart(e,d,d.path);ez.splitNodes(e,{at:d,match:o,mode:h,voids:u,always:!v}),r=p.unref(),null==n.at&&ez.select(e,r)}for(var[x,g]of(i||(i=(e,t)=>e!==t),u$.nodes(e,{at:r,match:o,mode:l,voids:u}))){var b={},y={};if(0!==g.length){var w=!1;for(var C in t)"children"!==C&&"text"!==C&&i(t[C],x[C])&&(w=!0,x.hasOwnProperty(C)&&(b[C]=x[C]),a?null!=t[C]&&(y[C]=a(x[C],t[C])):null!=t[C]&&(y[C]=t[C]));w&&e.apply({type:"set_node",path:g,properties:b,newProperties:y})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u$.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:o=!1}=t,{match:r,at:i=e.selection,height:a=0,always:s=!1}=t;if(null==r&&(r=t=>u$.isBlock(e,t)),k$.isRange(i)&&(i=q$(e,i)),b$.isPath(i)){var l=i,c=u$.point(e,l),[u]=u$.parent(e,l);r=e=>e===u,a=c.path.length-l.length+1,i=c,s=!0}if(i){var p,d=u$.pointRef(e,i,{affinity:"backward"});try{var[f]=u$.nodes(e,{at:i,match:r,mode:n,voids:o});if(!f)return;var h=u$.void(e,{at:i,mode:"highest"});if(!o&&h){var[m,v]=h;if(r$.isElement(m)&&e.isInline(m)){var x=u$.after(e,v);if(!x){var g=b$.next(v);ez.insertNodes(e,{text:""},{at:g,voids:o}),x=u$.point(e,g)}i=x,s=!0}a=i.path.length-v.length+1,s=!0}p=u$.pointRef(e,i);var b=i.path.length-a,[,y]=f,w=i.path.slice(0,b),C=0===a?i.offset:i.path[b]+0;for(var[E,O]of u$.levels(e,{at:w,reverse:!0,voids:o})){var D=!1;if(O.length<y.length||0===O.length||!o&&u$.isVoid(e,E))break;var S=d.current,k=u$.isEnd(e,S,O);if(s||!d||!u$.isEdge(e,S,O)){D=!0;var T=m$.extractProps(E);e.apply({type:"split_node",path:O,position:C,properties:T})}C=O[O.length-1]+(D||k?1:0)}if(null==t.at){var j=p.current||u$.end(e,[]);ez.select(e,j)}}finally{var M;d.unref(),null===(M=p)||void 0===M||M.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var o={};for(var r of t)o[r]=null;ez.setNodes(e,o,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u$.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:o=!1,voids:r=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=b$.isPath(i)?X$(e,i):t=>u$.isBlock(e,t)),b$.isPath(i)&&(i=u$.range(e,i));var s=k$.isRange(i)?u$.rangeRef(e,i):null,l=u$.nodes(e,{at:i,match:a,mode:n,voids:r}),c=Array.from(l,(t=>{var[,n]=t;return u$.pathRef(e,n)})).reverse(),u=function(t){var n=t.unref(),[i]=u$.node(e,n),a=u$.range(e,n);o&&s&&(a=k$.intersection(s.current,a)),ez.liftNodes(e,{at:a,match:e=>r$.isAncestor(i)&&i.children.includes(e),voids:r})};for(var p of c)u(p);s&&s.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u$.withoutNormalizing(e,(()=>{var{mode:o="lowest",split:r=!1,voids:i=!1}=n,{match:a,at:s=e.selection}=n;if(s){if(null==a&&(a=b$.isPath(s)?X$(e,s):e.isInline(t)?t=>u$.isInline(e,t)||F$.isText(t):t=>u$.isBlock(e,t)),r&&k$.isRange(s)){var[l,c]=k$.edges(s),u=u$.rangeRef(e,s,{affinity:"inward"});ez.splitNodes(e,{at:c,match:a,voids:i}),ez.splitNodes(e,{at:l,match:a,voids:i}),s=u.unref(),null==n.at&&ez.select(e,s)}var p=Array.from(u$.nodes(e,{at:s,match:e.isInline(t)?t=>u$.isBlock(e,t):e=>u$.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of p){var f=k$.isRange(s)?k$.intersection(s,u$.range(e,d)):s;if(f){var h=Array.from(u$.nodes(e,{at:f,match:a,mode:o,voids:i}));if(h.length>0){var m=function(){var[n]=h,o=h[h.length-1],[,r]=n,[,a]=o;if(0===r.length&&0===a.length)return"continue";var s=b$.equals(r,a)?b$.parent(r):b$.common(r,a),l=u$.range(e,r,a),c=u$.node(e,s),[u]=c,p=s.length+1,d=b$.next(a.slice(0,p)),f=W$(W$({},t),{},{children:[]});ez.insertNodes(e,f,{at:d,voids:i}),ez.moveNodes(e,{at:l,match:e=>r$.isAncestor(u)&&u.children.includes(e),to:d.concat(0),voids:i})}();if("continue"===m)continue}}}}}))}},H$=(e,t)=>{if(r$.isElement(t)){var n=t;return!!u$.isVoid(e,t)||1===n.children.length&&H$(e,n.children[0])}return!u$.isEditor(t)},q$=(e,t)=>{if(k$.isCollapsed(t))return t.anchor;var[,n]=k$.edges(t),o=u$.pointRef(e,n);return ez.delete(e,{at:t}),o.unref()},X$=(e,t)=>{var[n]=u$.node(e,t);return e=>e===n};function G$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Y$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G$(Object(n),!0).forEach((function(t){bI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var K$={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:o}=e;if(o)if("anchor"===n)ez.select(e,o.anchor);else if("focus"===n)ez.select(e,o.focus);else if("start"===n){var[r]=k$.edges(o);ez.select(e,r)}else if("end"===n){var[,i]=k$.edges(o);ez.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:o=1,unit:r="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=k$.isBackward(n)?"focus":"anchor"),"end"===a&&(a=k$.isBackward(n)?"anchor":"focus");var{anchor:s,focus:l}=n,c={distance:o,unit:r},u={};if(null==a||"anchor"===a){var p=i?u$.before(e,s,c):u$.after(e,s,c);p&&(u.anchor=p)}if(null==a||"focus"===a){var d=i?u$.before(e,l,c):u$.after(e,l,c);d&&(u.focus=d)}ez.setSelection(e,u)}},select(e,t){var{selection:n}=e;if(t=u$.range(e,t),n)ez.setSelection(e,t);else{if(!k$.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(M$.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:o}=e,{edge:r="both"}=n;if(o){"start"===r&&(r=k$.isBackward(o)?"focus":"anchor"),"end"===r&&(r=k$.isBackward(o)?"anchor":"focus");var{anchor:i,focus:a}=o,s="anchor"===r?i:a;ez.setSelection(e,{["anchor"===r?"anchor":"focus"]:Y$(Y$({},s),t)})}},setSelection(e,t){var{selection:n}=e,o={},r={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!E$.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!E$.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(o[i]=n[i],r[i]=t[i]);Object.keys(o).length>0&&e.apply({type:"set_selection",properties:o,newProperties:r})}}},Z$={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u$.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:o="character",distance:r=1,voids:i=!1}=t,{at:a=e.selection,hanging:s=!1}=t;if(a){var l=!1;if(k$.isRange(a)&&k$.isCollapsed(a)&&(l=!0,a=a.anchor),E$.isPoint(a)){var c=u$.void(e,{at:a,mode:"highest"});if(!i&&c){var[,u]=c;a=u}else{var p={unit:o,distance:r};a={anchor:a,focus:n?u$.before(e,a,p)||u$.start(e,[]):u$.after(e,a,p)||u$.end(e,[])},s=!0}}if(b$.isPath(a))ez.removeNodes(e,{at:a,voids:i});else if(!k$.isCollapsed(a)){if(!s){var[,d]=k$.edges(a),f=u$.end(e,[]);E$.equals(d,f)||(a=u$.unhangRange(e,a,{voids:i}))}var[h,m]=k$.edges(a),v=u$.above(e,{match:t=>u$.isBlock(e,t),at:h,voids:i}),x=u$.above(e,{match:t=>u$.isBlock(e,t),at:m,voids:i}),g=v&&x&&!b$.equals(v[1],x[1]),b=b$.equals(h.path,m.path),y=i?null:u$.void(e,{at:h,mode:"highest"}),w=i?null:u$.void(e,{at:m,mode:"highest"});if(y){var C=u$.before(e,h);C&&v&&b$.isAncestor(v[1],C.path)&&(h=C)}if(w){var E=u$.after(e,m);E&&x&&b$.isAncestor(x[1],E.path)&&(m=E)}var O,D=[];for(var S of u$.nodes(e,{at:a,voids:i})){var[k,T]=S;O&&0===b$.compare(T,O)||(!i&&u$.isVoid(e,k)||!b$.isCommon(T,h.path)&&!b$.isCommon(T,m.path))&&(D.push(S),O=T)}var j=Array.from(D,(t=>{var[,n]=t;return u$.pathRef(e,n)})),M=u$.pointRef(e,h),A=u$.pointRef(e,m),N="";if(!b&&!y){var R=M.current,[P]=u$.leaf(e,R),{path:B}=R,{offset:F}=h,L=P.text.slice(F);L.length>0&&(e.apply({type:"remove_text",path:B,offset:F,text:L}),N=L)}if(j.reverse().map((e=>e.unref())).filter((e=>null!==e)).forEach((t=>ez.removeNodes(e,{at:t,voids:i}))),!w){var _=A.current,[I]=u$.leaf(e,_),{path:$}=_,z=b?h.offset:0,V=I.text.slice(z,m.offset);V.length>0&&(e.apply({type:"remove_text",path:$,offset:z,text:V}),N=V)}!b&&g&&A.current&&M.current&&ez.mergeNodes(e,{at:A.current,hanging:!0,voids:i}),l&&n&&"character"===o&&N.length>1&&N.match(/[\u0E00-\u0E7F]+/)&&ez.insertText(e,N.slice(0,N.length-r));var W=M.unref(),U=A.unref(),H=n?W||U:U||W;null==t.at&&H&&ez.select(e,H)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u$.withoutNormalizing(e,(()=>{var{hanging:o=!1,voids:r=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(k$.isRange(i))if(o||(i=u$.unhangRange(e,i)),k$.isCollapsed(i))i=i.anchor;else{var[,a]=k$.edges(i);if(!r&&u$.void(e,{at:a}))return;var s=u$.pointRef(e,a);ez.delete(e,{at:i}),i=s.unref()}else b$.isPath(i)&&(i=u$.start(e,i));if(r||!u$.void(e,{at:i})){var l=u$.above(e,{at:i,match:t=>u$.isInline(e,t),mode:"highest",voids:r});if(l){var[,c]=l;if(u$.isEnd(e,i,c))i=u$.after(e,c);else if(u$.isStart(e,i,c)){i=u$.before(e,c)}}var u=u$.above(e,{match:t=>u$.isBlock(e,t),at:i,voids:r}),[,p]=u,d=u$.isStart(e,i,p),f=u$.isEnd(e,i,p),h=d&&f,m=!d||d&&f,v=!f,[,x]=m$.first({children:t},[]),[,g]=m$.last({children:t},[]),b=[],y=t=>{var[n,o]=t;return!(0===o.length)&&(!!h||!(m&&b$.isAncestor(o,x)&&r$.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(v&&b$.isAncestor(o,g)&&r$.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var w of m$.nodes({children:t},{pass:y}))y(w)&&b.push(w);var C=[],E=[],O=[],D=!0,S=!1;for(var[k]of b)r$.isElement(k)&&!e.isInline(k)?(D=!1,S=!0,E.push(k)):D?C.push(k):O.push(k);var[T]=u$.nodes(e,{at:i,match:t=>F$.isText(t)||u$.isInline(e,t),mode:"highest",voids:r}),[,j]=T,M=u$.isStart(e,i,j),A=u$.isEnd(e,i,j),N=u$.pathRef(e,f&&!O.length?b$.next(p):p),R=u$.pathRef(e,A?b$.next(j):j);ez.splitNodes(e,{at:i,match:t=>S?u$.isBlock(e,t):F$.isText(t)||u$.isInline(e,t),mode:S?"lowest":"highest",always:S&&(!d||C.length>0)&&(!f||O.length>0),voids:r});var P,B=u$.pathRef(e,!M||M&&A?b$.next(j):j);if(ez.insertNodes(e,C,{at:B.current,match:t=>F$.isText(t)||u$.isInline(e,t),mode:"highest",voids:r}),h&&!C.length&&E.length&&!O.length&&ez.delete(e,{at:p,voids:r}),ez.insertNodes(e,E,{at:N.current,match:t=>u$.isBlock(e,t),mode:"lowest",voids:r}),ez.insertNodes(e,O,{at:R.current,match:t=>F$.isText(t)||u$.isInline(e,t),mode:"highest",voids:r}),!n.at)if(O.length>0&&R.current?P=b$.previous(R.current):E.length>0&&N.current?P=b$.previous(N.current):B.current&&(P=b$.previous(B.current)),P){var F=u$.end(e,P);ez.select(e,F)}B.unref(),N.unref(),R.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u$.withoutNormalizing(e,(()=>{var{voids:o=!1}=n,{at:r=e.selection}=n;if(r){if(b$.isPath(r)&&(r=u$.range(e,r)),k$.isRange(r))if(k$.isCollapsed(r))r=r.anchor;else{var i=k$.end(r);if(!o&&u$.void(e,{at:i}))return;var a=k$.start(r),s=u$.pointRef(e,a),l=u$.pointRef(e,i);ez.delete(e,{at:r,voids:o});var c=s.unref(),u=l.unref();r=c||u,ez.setSelection(e,{anchor:r,focus:r})}if(o||!u$.void(e,{at:r})){var{path:p,offset:d}=r;t.length>0&&e.apply({type:"insert_text",path:p,offset:d,text:t})}}}))}};function J$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Q$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J$(Object(n),!0).forEach((function(t){bI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ez=Q$(Q$(Q$(Q$({},I$),U$),K$),Z$),tz=function(e){if(e=String(e||""),oz.test(e))return"rtl";if(rz.test(e))return"ltr";return"neutral"},nz="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",oz=new RegExp("^[^"+nz+"]*[֑-߿יִ-﷽ﹰ-ﻼ]"),rz=new RegExp("^[^֑-߿יִ-﷽ﹰ-ﻼ]*["+nz+"]");var iz=aA,az=/\s/;var sz=function(e){for(var t=e.length;t--&&az.test(e.charAt(t)););return t},lz=sz,cz=/^\s+/;var uz=gA,pz=uR;var dz=function(e){return"symbol"==typeof e||pz(e)&&"[object Symbol]"==uz(e)},fz=function(e){return e?e.slice(0,lz(e)+1).replace(cz,""):e},hz=bA,mz=dz,vz=/^[-+]0x[0-9a-f]+$/i,xz=/^0b[01]+$/i,gz=/^0o[0-7]+$/i,bz=parseInt;var yz=function(e){if("number"==typeof e)return e;if(mz(e))return NaN;if(hz(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=hz(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=fz(e);var n=xz.test(e);return n||gz.test(e)?bz(e.slice(2),n?2:8):vz.test(e)?NaN:+e},wz=bA,Cz=function(){return iz.Date.now()},Ez=yz,Oz=Math.max,Dz=Math.min;var Sz=function(e,t,n){var o,r,i,a,s,l,c=0,u=!1,p=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=o,i=r;return o=r=void 0,c=t,a=e.apply(i,n)}function h(e){return c=e,s=setTimeout(v,t),u?f(e):a}function m(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-c>=i}function v(){var e=Cz();if(m(e))return x(e);s=setTimeout(v,function(e){var n=t-(e-l);return p?Dz(n,i-(e-c)):n}(e))}function x(e){return s=void 0,d&&o?f(e):(o=r=void 0,a)}function g(){var e=Cz(),n=m(e);if(o=arguments,r=this,l=e,n){if(void 0===s)return h(l);if(p)return clearTimeout(s),s=setTimeout(v,t),f(l)}return void 0===s&&(s=setTimeout(v,t)),a}return t=Ez(t)||0,wz(n)&&(u=!!n.leading,i=(p="maxWait"in n)?Oz(Ez(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),g.cancel=function(){void 0!==s&&clearTimeout(s),c=0,o=l=r=s=void 0},g.flush=function(){return void 0===s?a:x(Cz())},g},kz=Sz,Tz=bA;var jz=function(e,t,n){var o=!0,r=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Tz(n)&&(o="leading"in n?!!n.leading:o,r="trailing"in n?!!n.trailing:r),kz(e,t,{leading:o,maxWait:t,trailing:r})};function Mz(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function Az(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function Nz(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Az(n.overflowY,t)||Az(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function Rz(e,t,n,o,r,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-o:a>t&&s<n||i<e&&s>n?a-t+r:0}function Pz(e,t){var n=window,o=t.scrollMode,r=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!Mz(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,u=[],p=e;Mz(p)&&l(p);){if((p=p.parentElement)===c){u.push(p);break}null!=p&&p===document.body&&Nz(p)&&!Nz(document.documentElement)||null!=p&&Nz(p,s)&&u.push(p)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,f=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),x=v.height,g=v.width,b=v.top,y=v.right,w=v.bottom,C=v.left,E="start"===r||"nearest"===r?b:"end"===r?w:b+x/2,O="center"===i?C+g/2:"end"===i?y:C,D=[],S=0;S<u.length;S++){var k=u[S],T=k.getBoundingClientRect(),j=T.height,M=T.width,A=T.top,N=T.right,R=T.bottom,P=T.left;if("if-needed"===o&&b>=0&&C>=0&&w<=f&&y<=d&&b>=A&&w<=R&&C>=P&&y<=N)return D;var B=getComputedStyle(k),F=parseInt(B.borderLeftWidth,10),L=parseInt(B.borderTopWidth,10),_=parseInt(B.borderRightWidth,10),I=parseInt(B.borderBottomWidth,10),$=0,z=0,V="offsetWidth"in k?k.offsetWidth-k.clientWidth-F-_:0,W="offsetHeight"in k?k.offsetHeight-k.clientHeight-L-I:0;if(c===k)$="start"===r?E:"end"===r?E-f:"nearest"===r?Rz(m,m+f,f,L,I,m+E,m+E+x,x):E-f/2,z="start"===i?O:"center"===i?O-d/2:"end"===i?O-d:Rz(h,h+d,d,F,_,h+O,h+O+g,g),$=Math.max(0,$+m),z=Math.max(0,z+h);else{$="start"===r?E-A-L:"end"===r?E-R+I+W:"nearest"===r?Rz(A,R,j,L,I+W,E,E+x,x):E-(A+j/2)+W/2,z="start"===i?O-P-F:"center"===i?O-(P+M/2)+V/2:"end"===i?O-N+_+V:Rz(P,N,M,F,_+V,O,O+g,g);var U=k.scrollLeft,H=k.scrollTop;E+=H-($=Math.max(0,Math.min(H+$,k.scrollHeight-j+W))),O+=U-(z=Math.max(0,Math.min(U+z,k.scrollWidth-M+V)))}D.push({el:k,top:$,left:z})}return D}function Bz(e){return e===Object(e)&&0!==Object.keys(e).length}function Fz(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(Bz(t)&&"function"==typeof t.behavior)return t.behavior(n?Pz(e,t):[]);if(n){var o=function(e){return!1===e?{block:"end",inline:"nearest"}:Bz(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var o=e.el,r=e.top,i=e.left;o.scroll&&n?o.scroll({top:r,left:i,behavior:t}):(o.scrollTop=r,o.scrollLeft=i)}))}(Pz(e,o),o.behavior)}}var Lz={};Object.defineProperty(Lz,"__esModule",{value:!0});for(var _z="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Iz={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},$z={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:_z?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},zz={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},Vz=1;Vz<20;Vz++)zz["f"+Vz]=111+Vz;function Wz(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var o=e.map((function(e){return Uz(e,t)})),r=function(e){return o.some((function(t){return Hz(t,e)}))};return null==n?r:r(n)}function Uz(e,t){var n=t&&t.byKey,o={},r=(e=e.replace("++","+add")).split("+"),i=r.length;for(var a in Iz)o[Iz[a]]=!1;var s=!0,l=!1,c=void 0;try{for(var u,p=r[Symbol.iterator]();!(s=(u=p.next()).done);s=!0){var d=u.value,f=d.endsWith("?")&&d.length>1;f&&(d=d.slice(0,-1));var h=Xz(d),m=Iz[h];1!==i&&m||(n?o.key=h:o.which=qz(d)),m&&(o[m]=!f||null)}}catch(e){l=!0,c=e}finally{try{!s&&p.return&&p.return()}finally{if(l)throw c}}return o}function Hz(e,t){for(var n in e){var o=e[n],r=void 0;if(null!=o&&((null!=(r="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===o&&93===t.which?91:t.which:t[n])||!1!==o)&&r!==o))return!1}return!0}function qz(e){return e=Xz(e),zz[e]||e.toUpperCase().charCodeAt(0)}function Xz(e){return e=e.toLowerCase(),e=$z[e]||e}Lz.default=Wz,Lz.isHotkey=Wz,Lz.isCodeHotkey=function(e,t){return Wz(e,t)};var Gz=Lz.isKeyHotkey=function(e,t){return Wz(e,{byKey:!0},t)};function Yz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kz(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}Lz.parseHotkey=Uz,Lz.compareHotkey=Hz,Lz.toKeyCode=qz,Lz.toKeyName=Xz;var Zz=0;class Jz{constructor(){this.id="".concat(Zz++)}}var Qz=new WeakMap,eV=new WeakMap,tV=new WeakMap,nV=new WeakMap,oV=new WeakMap,rV=new WeakMap,iV=new WeakMap,aV=new WeakMap,sV=new WeakMap,lV=new WeakMap,cV=new WeakMap,uV=new WeakMap,pV=new WeakMap,dV=new WeakMap,fV=new WeakMap,hV=new WeakMap,mV=new WeakMap,vV=new WeakMap,xV=new WeakMap,gV=new WeakMap,bV=new WeakMap,yV=Symbol("placeholder"),wV=Symbol("mark-placeholder"),CV=globalThis.Text,EV=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,OV=e=>DV(e)&&1===e.nodeType,DV=e=>{var t=EV(e);return!!t&&e instanceof t.Node},SV=e=>{var t=e&&e.anchorNode&&EV(e.anchorNode);return!!t&&e instanceof t.Selection},kV=e=>DV(e)&&3===e.nodeType,TV=(e,t,n)=>{for(var o,{childNodes:r}=e,i=r[t],a=t,s=!1,l=!1;(DV(o=i)&&8===o.nodeType||OV(i)&&0===i.childNodes.length||OV(i)&&"false"===i.getAttribute("contenteditable"))&&(!s||!l);)a>=r.length?(s=!0,a=t-1,n="backward"):a<0?(l=!0,a=t+1,n="forward"):(i=r[a],t=a,a+="forward"===n?1:-1);return[i,t]},jV=(e,t,n)=>{var[o]=TV(e,t,n);return o},MV=e=>{var t="";if(kV(e)&&e.nodeValue)return e.nodeValue;if(OV(e)){for(var n of Array.from(e.childNodes))t+=MV(n);var o=getComputedStyle(e).getPropertyValue("display");"block"!==o&&"list"!==o&&"BR"!==e.tagName||(t+="\n")}return t},AV=/data-slate-fragment="(.+?)"/m,NV=(e,t,n)=>{var{target:o}=t;if(OV(o)&&o.matches('[contentEditable="false"]'))return!1;var{document:r}=GV.getWindow(e);if(r.contains(o))return GV.hasDOMNode(e,o,{editable:!0});var i=n.find((e=>{var{addedNodes:t,removedNodes:n}=e;for(var r of t)if(r===o||r.contains(o))return!0;for(var i of n)if(i===o||i.contains(o))return!0}));return!(!i||i===t)&&NV(e,i,n)},RV=parseInt(c.default.version.split(".")[0],10)>=17,PV="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,BV="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),FV="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),LV="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),_V="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),IV="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),$V="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),zV="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),VV="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),WV="undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent),UV="undefined"!=typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),HV="undefined"!=typeof navigator&&/.*Wechat/.test(navigator.userAgent),qV=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),XV=!zV&&!IV&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,GV={isComposing:e=>!!uV.get(e),getWindow(e){var t=tV.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey(e,t){var n=aV.get(t);return n||(n=new Jz,aV.set(t,n)),n},findPath(e,t){for(var n=[],o=t;;){var r=eV.get(o);if(null==r){if(u$.isEditor(o))return n;break}var i=Qz.get(o);if(null==i)break;n.unshift(i),o=r}throw new Error("Unable to find the path for Slate node: ".concat(M$.stringify(t)))},findDocumentOrShadowRoot(e){var t=GV.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},isFocused:e=>!!cV.get(e),isReadOnly:e=>!!lV.get(e),blur(e){var t=GV.toDOMNode(e,e),n=GV.findDocumentOrShadowRoot(e);cV.set(e,!1),n.activeElement===t&&t.blur()},focus(e){var t=GV.toDOMNode(e,e),n=GV.findDocumentOrShadowRoot(e);cV.set(e,!0),n.activeElement!==t&&t.focus({preventScroll:!0})},deselect(e){var{selection:t}=e,n=GV.findDocumentOrShadowRoot(e).getSelection();n&&n.rangeCount>0&&n.removeAllRanges(),t&&ez.deselect(e)},hasDOMNode(e,t){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{editable:r=!1}=o,i=GV.toDOMNode(e,e);try{n=OV(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!n&&!(n.closest("[data-slate-editor]")!==i||r&&!n.isContentEditable&&("boolean"!=typeof n.isContentEditable||n.closest('[contenteditable="false"]')!==i)&&!n.getAttribute("data-slate-zero-width"))},insertData(e,t){e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),setFragmentData(e,t,n){e.setFragmentData(t,n)},toDOMNode(e,t){var n=sV.get(e),o=u$.isEditor(t)?nV.get(e):null==n?void 0:n.get(GV.findKey(e,t));if(!o)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(M$.stringify(t)));return o},toDOMPoint(e,t){var n,[o]=u$.node(e,t.path),r=GV.toDOMNode(e,o);u$.void(e,{at:t})&&(t={path:t.path,offset:0});for(var i=Array.from(r.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),a=0,s=0;s<i.length;s++){var l=i[s],c=l.childNodes[0];if(null!=c&&null!=c.textContent){var{length:u}=c.textContent,p=l.getAttribute("data-slate-length"),d=a+(null==p?u:parseInt(p,10)),f=i[s+1];if(t.offset===d&&null!=f&&f.hasAttribute("data-slate-mark-placeholder")){var h,m=f.childNodes[0];n=[m instanceof CV?m:f,null!==(h=f.textContent)&&void 0!==h&&h.startsWith("\ufeff")?1:0];break}if(t.offset<=d){n=[c,Math.min(u,Math.max(0,t.offset-a))];break}a=d}}if(!n)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(M$.stringify(t)));return n},toDOMRange(e,t){var{anchor:n,focus:o}=t,r=k$.isBackward(t),i=GV.toDOMPoint(e,n),a=k$.isCollapsed(t)?i:GV.toDOMPoint(e,o),s=GV.getWindow(e).document.createRange(),[l,c]=r?a:i,[u,p]=r?i:a,d=!!(OV(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),f=!!(OV(u)?u:u.parentElement).getAttribute("data-slate-zero-width");return s.setStart(l,d?1:c),s.setEnd(u,f?1:p),s},toSlateNode(e,t){var n=OV(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var o=n?rV.get(n):null;if(!o)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return o},findEventRange(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:n,clientY:o,target:r}=t;if(null==n||null==o)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var i,a=GV.toSlateNode(e,t.target),s=GV.findPath(e,a);if(u$.isVoid(e,a)){var l=r.getBoundingClientRect(),c=e.isInline(a)?n-l.left<l.left+l.width-n:o-l.top<l.top+l.height-o,u=u$.point(e,s,{edge:c?"start":"end"}),p=c?u$.before(e,u):u$.after(e,u);if(p)return u$.range(e,p)}var{document:d}=GV.getWindow(e);if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,o);else{var f=d.caretPositionFromPoint(n,o);f&&((i=d.createRange()).setStart(f.offsetNode,f.offset),i.setEnd(f.offsetNode,f.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));return GV.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlatePoint(e,t,n){var{exactMatch:o,suppressThrow:r}=n,[i,a]=o?t:(e=>{var[t,n]=e;if(OV(t)&&t.childNodes.length){var o=n===t.childNodes.length,r=o?n-1:n;for([t,r]=TV(t,r,o?"backward":"forward"),o=r<n;OV(t)&&t.childNodes.length;){var i=o?t.childNodes.length-1:0;t=jV(t,i,o?"backward":"forward")}n=o&&null!=t.textContent?t.textContent.length:0}return[t,n]})(t),s=i.parentNode,l=null,c=0;if(s){var u,p,d=GV.toDOMNode(e,e),f=s.closest('[data-slate-void="true"]'),h=f&&d.contains(f)?f:null,m=s.closest("[data-slate-leaf]"),v=null;if(m){if(l=m.closest('[data-slate-node="text"]')){var x=GV.getWindow(e).document.createRange();x.setStart(l,0),x.setEnd(i,a);var g=x.cloneContents();[...Array.prototype.slice.call(g.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(g.querySelectorAll("[contenteditable=false]"))].forEach((e=>{FV&&!o&&e.hasAttribute("data-slate-zero-width")&&e.textContent.length>0&&"\ufeff"!==e.textContext?e.textContent.startsWith("\ufeff")&&(e.textContent=e.textContent.slice(1)):e.parentNode.removeChild(e)})),c=g.textContent.length,v=l}}else if(h){for(var b=h.querySelectorAll("[data-slate-leaf]"),y=0;y<b.length;y++){var w=b[y];if(GV.hasDOMNode(e,w)){m=w;break}}m?(l=m.closest('[data-slate-node="text"]'),c=(v=m).textContent.length,v.querySelectorAll("[data-slate-zero-width]").forEach((e=>{c-=e.textContent.length}))):c=1}v&&c===v.textContent.length&&FV&&"z"===v.getAttribute("data-slate-zero-width")&&null!==(u=v.textContent)&&void 0!==u&&u.startsWith("\ufeff")&&(s.hasAttribute("data-slate-zero-width")||LV&&null!==(p=v.textContent)&&void 0!==p&&p.endsWith("\n\n"))&&c--}if(FV&&!l&&!o){var C=s.hasAttribute("data-slate-node")?s:s.closest("[data-slate-node]");if(C&&GV.hasDOMNode(e,C,{editable:!0})){var E=GV.toSlateNode(e,C),{path:O,offset:D}=u$.start(e,GV.findPath(e,E));return C.querySelector("[data-slate-leaf]")||(D=a),{path:O,offset:D}}}if(!l){if(r)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var S=GV.toSlateNode(e,l);return{path:GV.findPath(e,S),offset:c}},toSlateRange(e,t,n){var o,r,i,a,s,{exactMatch:l,suppressThrow:c}=n;if((SV(t)?t.anchorNode:t.startContainer)&&(SV(t)?(o=t.anchorNode,r=t.anchorOffset,i=t.focusNode,a=t.focusOffset,s=$V&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(o=t.startContainer,r=t.startOffset,i=t.endContainer,a=t.endOffset,s=t.collapsed)),null==o||null==i||null==r||null==a)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));var u=GV.toSlatePoint(e,[o,r],{exactMatch:l,suppressThrow:c});if(!u)return null;var p=s?u:GV.toSlatePoint(e,[i,a],{exactMatch:l,suppressThrow:c});if(!p)return null;var d={anchor:u,focus:p};return k$.isExpanded(d)&&k$.isForward(d)&&OV(i)&&u$.void(e,{at:d.focus,mode:"highest"})&&(d=u$.unhangRange(e,d,{voids:!0})),d},hasRange(e,t){var{anchor:n,focus:o}=t;return u$.hasPath(e,n.path)&&u$.hasPath(e,o.path)},androidScheduleFlush(e){var t;null===(t=fV.get(e))||void 0===t||t()},androidPendingDiffs:e=>vV.get(e)},YV=qV?n.useLayoutEffect:n.useEffect,KV=["anchor","focus"],ZV=["anchor","focus"],JV=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every((n=>t.hasOwnProperty(n)&&e[n]===t[n])),QV=(e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var o=e[n],r=t[n],i=Kz(o,KV),a=Kz(r,ZV);if(!k$.equals(o,r)||o[yV]!==r[yV]||!JV(i,a))return!1}return!0},eW=e=>{var{isLast:t,leaf:n,parent:o,text:r}=e,i=rW(),a=GV.findPath(i,r),s=b$.parent(a),l=!0===n[wV];return i.isVoid(o)?c.default.createElement(nW,{length:m$.string(o).length}):""!==n.text||o.children[o.children.length-1]!==r||i.isInline(o)||""!==u$.string(i,s)?""===n.text?c.default.createElement(nW,{isMarkPlaceholder:l}):t&&"\n"===n.text.slice(-1)?c.default.createElement(tW,{isTrailing:!0,text:n.text}):c.default.createElement(tW,{text:n.text}):c.default.createElement(nW,{isLineBreak:!0,isMarkPlaceholder:l})},tW=e=>{var{text:t,isTrailing:o=!1}=e,r=n.useRef(null),i=()=>"".concat(null!=t?t:"").concat(o?"\n":"");return YV((()=>{var e=i();r.current&&r.current.textContent!==e&&(r.current.textContent=e)})),r.current?c.default.createElement("span",{"data-slate-string":!0,ref:r}):c.default.createElement("span",{"data-slate-string":!0,ref:r},i())},nW=e=>{var{length:t=0,isLineBreak:n=!1,isMarkPlaceholder:o=!1}=e,r={"data-slate-zero-width":n?"n":"z","data-slate-length":t};return o&&(r["data-slate-mark-placeholder"]=!0),c.default.createElement("span",Object.assign({},r),FV&&n?null:"\ufeff",n?c.default.createElement("br",null):null)},oW=n.createContext(null),rW=()=>{var e=n.useContext(oW);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},iW=e=>{var{leaf:t,isLast:o,text:r,parent:i,renderPlaceholder:a,renderLeaf:s=(e=>c.default.createElement(sW,Object.assign({},e)))}=e,l=n.useRef(null),u=rW();n.useEffect((()=>{var e=null==l?void 0:l.current,t=GV.toDOMNode(u,u);if(e&&t)return t.style.minHeight="".concat(e.clientHeight,"px"),oV.set(u,e),()=>{t.style.minHeight="auto",oV.delete(u)}}),[l,t]);var p=c.default.createElement(eW,{isLast:o,leaf:t,parent:i,text:r});if(t[yV]){var d={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none"},contentEditable:!1,ref:l}};p=c.default.createElement(c.default.Fragment,null,a(d),p)}return s({attributes:{"data-slate-leaf":!0},children:p,leaf:t,text:r})},aW=c.default.memo(iW,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&F$.equals(t.leaf,e.leaf)&&t.leaf[yV]===e.leaf[yV])),sW=e=>{var{attributes:t,children:n}=e;return c.default.createElement("span",Object.assign({},t),n)},lW=e=>{for(var{decorations:t,isLast:o,parent:r,renderPlaceholder:i,renderLeaf:a,text:s}=e,l=rW(),u=n.useRef(null),p=F$.decorations(s,t),d=GV.findKey(l,s),f=[],h=0;h<p.length;h++){var m=p[h];f.push(c.default.createElement(aW,{isLast:o&&h===p.length-1,key:"".concat(d.id,"-").concat(h),renderPlaceholder:i,leaf:m,text:s,parent:r,renderLeaf:a}))}return YV((()=>{var e=sV.get(l);u.current?(null==e||e.set(d,u.current),iV.set(s,u.current),rV.set(u.current,s)):(null==e||e.delete(d),iV.delete(s))})),c.default.createElement("span",{"data-slate-node":"text",ref:u},f)},cW=c.default.memo(lW,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.text===e.text&&QV(t.decorations,e.decorations))),uW=e=>{var{decorations:t,element:o,renderElement:r=(e=>c.default.createElement(dW,Object.assign({},e))),renderPlaceholder:i,renderLeaf:a,selection:s}=e,l=rW(),u=xW(),p=l.isInline(o),d=GV.findKey(l,o),f=n.useCallback((e=>{var t=sV.get(l);e?(null==t||t.set(d,e),iV.set(o,e),rV.set(e,o)):(null==t||t.delete(d),iV.delete(o))}),[l,d,o]),h=mW({decorations:t,node:o,renderElement:r,renderPlaceholder:i,renderLeaf:a,selection:s}),m={"data-slate-node":"element",ref:f};if(p&&(m["data-slate-inline"]=!0),!p&&u$.hasInlines(l,o)){var v=m$.string(o),x=tz(v);"rtl"===x&&(m.dir=x)}if(u$.isVoid(l,o)){m["data-slate-void"]=!0,!u&&p&&(m.contentEditable=!1);var g=p?"span":"div",[[b]]=m$.texts(o);h=c.default.createElement(g,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},c.default.createElement(cW,{renderPlaceholder:i,decorations:[],isLast:!1,parent:o,text:b})),Qz.set(b,0),eV.set(b,o)}return r({attributes:m,children:h,element:o})},pW=c.default.memo(uW,((e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&QV(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&k$.equals(e.selection,t.selection)))),dW=e=>{var{attributes:t,children:n,element:o}=e,r=rW().isInline(o)?"span":"div";return c.default.createElement(r,Object.assign({},t,{style:{position:"relative"}}),n)},fW=n.createContext((()=>[])),hW=n.createContext(!1),mW=e=>{for(var{decorations:t,node:o,renderElement:r,renderPlaceholder:i,renderLeaf:a,selection:s}=e,l=n.useContext(fW),u=rW(),p=GV.findPath(u,o),d=[],f=r$.isElement(o)&&!u.isInline(o)&&u$.hasInlines(u,o),h=0;h<o.children.length;h++){var m=p.concat(h),v=o.children[h],x=GV.findKey(u,v),g=u$.range(u,m),b=s&&k$.intersection(g,s),y=l([v,m]);for(var w of t){var C=k$.intersection(w,g);C&&y.push(C)}r$.isElement(v)?d.push(c.default.createElement(hW.Provider,{key:"provider-".concat(x.id),value:!!b},c.default.createElement(pW,{decorations:y,element:v,key:x.id,renderElement:r,renderPlaceholder:i,renderLeaf:a,selection:b}))):d.push(c.default.createElement(cW,{decorations:y,key:x.id,isLast:f&&h===o.children.length-1,parent:o,renderPlaceholder:i,renderLeaf:a,text:v})),Qz.set(v,h),eV.set(v,o)}return d},vW=n.createContext(!1),xW=()=>n.useContext(vW),gW=n.createContext(null),bW={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},yW={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},wW={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},CW=e=>{var t=bW[e],n=yW[e],o=wW[e],r=t&&Gz(t),i=n&&Gz(n),a=o&&Gz(o);return e=>!(!r||!r(e))||(!!(BV&&i&&i(e))||!(BV||!a||!a(e)))},EW={isBold:CW("bold"),isCompose:CW("compose"),isMoveBackward:CW("moveBackward"),isMoveForward:CW("moveForward"),isDeleteBackward:CW("deleteBackward"),isDeleteForward:CW("deleteForward"),isDeleteLineBackward:CW("deleteLineBackward"),isDeleteLineForward:CW("deleteLineForward"),isDeleteWordBackward:CW("deleteWordBackward"),isDeleteWordForward:CW("deleteWordForward"),isExtendBackward:CW("extendBackward"),isExtendForward:CW("extendForward"),isExtendLineBackward:CW("extendLineBackward"),isExtendLineForward:CW("extendLineForward"),isItalic:CW("italic"),isMoveLineBackward:CW("moveLineBackward"),isMoveLineForward:CW("moveLineForward"),isMoveWordBackward:CW("moveWordBackward"),isMoveWordForward:CW("moveWordForward"),isRedo:CW("redo"),isSoftBreak:CW("insertSoftBreak"),isSplitBlock:CW("splitBlock"),isTransposeCharacter:CW("transposeCharacter"),isUndo:CW("undo")},OW={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class DW extends n.Component{constructor(){super(...arguments),this.context=null,this.manager=null,this.mutationObserver=null}observe(){var e,{node:t}=this.props;if(!t.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");null===(e=this.mutationObserver)||void 0===e||e.observe(t.current,OW)}componentDidMount(){var{receivedUserInput:e}=this.props,t=this.context;this.manager=((e,t)=>{var n=[],o=()=>{n=[]};return{registerMutations:o=>{if(t.current){var r=o.filter((t=>NV(e,t,o)));n.push(...r)}},restoreDOM:function(){n.reverse().forEach((e=>{"characterData"!==e.type?(e.removedNodes.forEach((t=>{e.target.insertBefore(t,e.nextSibling)})),e.addedNodes.forEach((t=>{e.target.removeChild(t)}))):e.target.textContent=e.oldValue})),o()},clear:o}})(t,e),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var e,t,n,o,r=null===(e=this.mutationObserver)||void 0===e?void 0:e.takeRecords();null!=r&&r.length&&(null===(o=this.manager)||void 0===o||o.registerMutations(r));return null===(t=this.mutationObserver)||void 0===t||t.disconnect(),null===(n=this.manager)||void 0===n||n.restoreDOM(),null}componentDidUpdate(){var e;null===(e=this.manager)||void 0===e||e.clear(),this.observe()}componentWillUnmount(){var e;null===(e=this.mutationObserver)||void 0===e||e.disconnect()}render(){return this.props.children}}DW.contextType=oW;var SW=FV?DW:e=>{var{children:t}=e;return c.default.createElement(c.default.Fragment,null,t)};function kW(e,t){var{path:n,diff:o}=t;if(!u$.hasPath(e,n))return!1;var r=m$.get(e,n);if(!F$.isText(r))return!1;if(o.start!==r.text.length||0===o.text.length)return r.text.slice(o.start,o.start+o.text.length)===o.text;var i=b$.next(n);if(!u$.hasPath(e,i))return!1;var a=m$.get(e,i);return F$.isText(a)&&a.text.startsWith(o.text)}function TW(e,t){var{start:n,end:o,text:r}=t,i=e.slice(n,o),a=function(e,t){for(var n=Math.min(e.length,t.length),o=0;o<n;o++)if(e.charAt(o)!==t.charAt(o))return o;return n}(i,r),s=function(e,t,n){for(var o=Math.min(e.length,t.length,n),r=0;r<o;r++)if(e.charAt(e.length-r-1)!==t.charAt(t.length-r-1))return r;return o}(i,r,Math.min(i.length-a,r.length-a)),l={start:n+a,end:o-s,text:r.slice(a,r.length-s)};return l.start===l.end&&0===l.text.length?null:l}function jW(e,t,n){var o=Math.min(t.start,n.start),r=Math.max(0,Math.min(t.start+t.text.length,n.end)-n.start),i=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return n.reduce(((e,t)=>e.slice(0,t.start)+t.text+e.slice(t.end)),e)}(e,t,n),a=Math.max(n.start+n.text.length,t.start+t.text.length+(t.start+t.text.length>n.start?n.text.length:0)-r),s=i.slice(o,a);return TW(e,{start:o,end:Math.max(t.end,n.end-t.text.length+(t.end-t.start)),text:s})}function MW(e){var{path:t,diff:n}=e;return{anchor:{path:t,offset:n.start},focus:{path:t,offset:n.end}}}function AW(e,t){var{path:n,offset:o}=t;if(!u$.hasPath(e,n))return null;var r=m$.get(e,n);if(!F$.isText(r))return null;var i=u$.above(e,{match:t=>u$.isBlock(e,t),at:n});if(!i)return null;for(;o>r.text.length;){var a=u$.next(e,{at:n,match:F$.isText});if(!a||!b$.isDescendant(a[1],i[1]))return null;o-=r.text.length,r=a[0],n=a[1]}return{path:n,offset:o}}function NW(e,t){var n=AW(e,t.anchor);if(!n)return null;if(k$.isCollapsed(t))return{anchor:n,focus:n};var o=AW(e,t.focus);return o?{anchor:n,focus:o}:null}function RW(e,t,n){var o=vV.get(e),r=null==o?void 0:o.find((e=>{var{path:n}=e;return b$.equals(n,t.path)}));if(!r||t.offset<=r.diff.start)return E$.transform(t,n,{affinity:"backward"});var{diff:i}=r;if(t.offset<=i.start+i.text.length){var a={path:t.path,offset:i.start},s=E$.transform(a,n,{affinity:"backward"});return s?{path:s.path,offset:s.offset+t.offset-i.start}:null}var l={path:t.path,offset:t.offset-i.text.length+i.end-i.start},c=E$.transform(l,n,{affinity:"backward"});return c?"split_node"===n.type&&b$.equals(n.path,t.path)&&l.offset<n.position&&i.start<n.position?c:{path:c.path,offset:c.offset+i.text.length-i.end+i.start}:null}function PW(e,t,n){var o=RW(e,t.anchor,n);if(!o)return null;if(k$.isCollapsed(t))return{anchor:o,focus:o};var r=RW(e,t.focus,n);return r?{anchor:o,focus:r}:null}function BW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function FW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BW(Object(n),!0).forEach((function(t){Yz(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function LW(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:o}=e,r=!1,i=null,a=null,s=null,l=0,c=!1,u=()=>{var e=gV.get(t);if(gV.delete(t),e){var{selection:n}=t,o=NW(t,e);!o||n&&k$.equals(o,n)||ez.select(t,o)}},p=()=>{var e;if(a&&(clearTimeout(a),a=null),s&&(clearTimeout(s),s=null),v()||m()){r||(r=!0,setTimeout((()=>r=!1))),m()&&(r="action");var i=t.selection&&u$.rangeRef(t,t.selection,{affinity:"forward"});mV.set(t,t.marks),xV.get(t),vV.get(t);for(var l,p=!(null===(e=vV.get(t))||void 0===e||!e.length);l=null===(d=vV.get(t))||void 0===d?void 0:d[0];){var d,f,h=hV.get(t);void 0!==h&&(hV.delete(t),t.marks=h),h&&!1===c&&(c=null);var x=MW(l);t.selection&&k$.equals(t.selection,x)||ez.select(t,x),l.diff.text?u$.insertText(t,l.diff.text):u$.deleteFragment(t),vV.set(t,null===(f=vV.get(t))||void 0===f?void 0:f.filter((e=>{var{id:t}=e;return t!==l.id}))),kW(t,l)||(p=!1,xV.delete(t),mV.delete(t),r="action",gV.delete(t),n.cancel(),o.cancel(),null==i||i.unref())}var g=null==i?void 0:i.unref();if(!g||gV.get(t)||t.selection&&k$.equals(g,t.selection)||ez.select(t,g),m())(()=>{var e=xV.get(t);if(xV.delete(t),e){if(e.at){var n=E$.isPoint(e.at)?AW(t,e.at):NW(t,e.at);if(!n)return;var o=u$.range(t,n);t.selection&&k$.equals(t.selection,o)||ez.select(t,n)}e.run()}})();else{p&&n(),n.flush(),o.flush(),u();var b=mV.get(t);mV.delete(t),void 0!==b&&(t.marks=b,t.onChange())}}else u()},d=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=oV.get(t);n&&(v()||e?n.style.display="none":n.style.removeProperty("display"))},f=(e,n)=>{var o,r=null!==(o=vV.get(t))&&void 0!==o?o:[];vV.set(t,r);var i=m$.leaf(t,e),a=r.findIndex((t=>b$.equals(t.path,e)));if(a<0)return TW(i.text,n)&&r.push({path:e,diff:n,id:l++}),void d();var s=jW(i.text,r[a].diff,n);if(!s)return r.splice(a,1),void d();r[a]=FW(FW({},r[a]),{},{diff:s})},h=function(e){var{at:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c=!1,gV.delete(t),n.cancel(),o.cancel(),m()&&p(),xV.set(t,{at:r,run:e}),s=setTimeout(p)},m=()=>!!xV.get(t),v=()=>{var e;return!(null===(e=vV.get(t))||void 0===e||!e.length)},x=()=>{m()||(s=setTimeout(p))};return{flush:p,scheduleFlush:x,hasPendingDiffs:v,hasPendingAction:m,hasPendingChanges:()=>m()||v(),isFlushing:()=>r,handleUserSelect:e=>{gV.set(t,e),a&&(clearTimeout(a),a=null);var{selection:n}=t;if(e){var o=!n||!b$.equals(n.anchor.path,e.anchor.path),r=!n||!b$.equals(n.anchor.path.slice(0,-1),e.anchor.path.slice(0,-1));(o&&c||r)&&(c=!1),!o&&v()||(a=setTimeout(p,200))}},handleCompositionEnd:e=>{i&&clearTimeout(i),i=setTimeout((()=>{uV.set(t,!1),p()}),25)},handleCompositionStart:e=>{uV.set(t,!0),i&&(clearTimeout(i),i=null)},handleDOMBeforeInput:e=>{var n;a&&(clearTimeout(a),a=null);var{inputType:o}=e,r=null,i=e.dataTransfer||e.data||void 0;!1!==c&&"insertText"!==o&&"insertCompositionText"!==o&&(c=!1);var[s]=e.getTargetRanges();s&&(r=GV.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!0}));var l=GV.getWindow(t).getSelection();if(!r&&l&&(s=l,r=GV.toSlateRange(t,l,{exactMatch:!1,suppressThrow:!0})),r=null!==(n=r)&&void 0!==n?n:t.selection){if(k$.isExpanded(r)&&o.startsWith("delete")){var[u,p]=k$.edges(r);if(m$.leaf(t,u.path).text.length===u.offset&&0===p.offset){var d=u$.next(t,{at:u.path,match:F$.isText});d&&b$.equals(d[1],p.path)&&(r={anchor:p,focus:p})}}if(k$.isExpanded(r)&&o.startsWith("delete")){if(b$.equals(r.anchor.path,r.focus.path)){var[m,v]=k$.edges(r);return f(r.anchor.path,{text:"",end:v.offset,start:m.offset})}var g=o.endsWith("Backward")?"backward":"forward";return h((()=>u$.deleteFragment(t,{direction:g})),{at:r})}switch(o){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return h((()=>u$.deleteFragment(t)),{at:r});case"deleteContent":case"deleteContentForward":var{anchor:b}=r;if(k$.isCollapsed(r)){var y=m$.leaf(t,b.path);if(b.offset<y.text.length)return f(b.path,{text:"",start:b.offset,end:b.offset+1})}return h((()=>u$.deleteForward(t)),{at:r});case"deleteContentBackward":var w,{anchor:C}=r;return(SV(s)?s.isCollapsed:!(null===(w=s)||void 0===w||!w.collapsed))&&k$.isCollapsed(r)&&C.offset>0?f(C.path,{text:"",start:C.offset-1,end:C.offset}):h((()=>u$.deleteBackward(t)),{at:r});case"deleteEntireSoftLine":return h((()=>{u$.deleteBackward(t,{unit:"line"}),u$.deleteForward(t,{unit:"line"})}),{at:r});case"deleteHardLineBackward":return h((()=>u$.deleteBackward(t,{unit:"block"})),{at:r});case"deleteSoftLineBackward":return h((()=>u$.deleteBackward(t,{unit:"line"})),{at:r});case"deleteHardLineForward":return h((()=>u$.deleteForward(t,{unit:"block"})),{at:r});case"deleteSoftLineForward":return h((()=>u$.deleteForward(t,{unit:"line"})),{at:r});case"deleteWordBackward":return h((()=>u$.deleteBackward(t,{unit:"word"})),{at:r});case"deleteWordForward":return h((()=>u$.deleteForward(t,{unit:"word"})),{at:r});case"insertLineBreak":return h((()=>u$.insertSoftBreak(t)),{at:r});case"insertParagraph":return h((()=>u$.insertBreak(t)),{at:r});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("DataTransfer"===(null==i?void 0:i.constructor.name))return h((()=>GV.insertData(t,i)),{at:r});if("string"==typeof i&&i.includes("\n"))return h((()=>u$.insertSoftBreak(t)),{at:k$.end(r)});var E=null!=i?i:"";if(hV.get(t)&&(E=E.replace("\ufeff","")),b$.equals(r.anchor.path,r.focus.path)){var[O,D]=k$.edges(r),S={start:O.offset,end:D.offset,text:E};if(E&&c&&"insertCompositionText"===o){var k=c.start+c.text.search(/\S|$/);S.start+S.text.search(/\S|$/)===k+1&&S.end===c.start+c.text.length?(S.start-=1,c=null,x()):c=!1}else c="insertText"===o&&(null===c?S:!(!c||!k$.isCollapsed(r)||c.end+c.text.length!==O.offset)&&FW(FW({},c),{},{text:c.text+E}));return void f(O.path,S)}return h((()=>u$.insertText(t,E)),{at:r})}}},handleKeyDown:e=>{v()||(d(!0),setTimeout(d))},handleDomMutations:e=>{var n;v()||m()||e.some((n=>NV(t,n,e)))&&(null===(n=bV.get(t))||void 0===n||n())},handleInput:()=>{!m()&&v()||p()}}}var _W=["node"];function IW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var $W={subtree:!0,childList:!0,characterData:!0};function zW(e){var{node:t}=e,o=Kz(e,_W);if(!FV)return null;var r,i=rW(),a=(r=n.useRef(!1),n.useEffect((()=>(r.current=!0,()=>{r.current=!1})),[]),r.current),[s]=n.useState((()=>LW(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IW(Object(n),!0).forEach((function(t){Yz(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({editor:i},o))));return function(e,t,o){var[r]=n.useState((()=>new MutationObserver(t)));YV((()=>{r.takeRecords()})),n.useEffect((()=>{if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return r.observe(e.current,o),()=>r.disconnect()}),[])}(t,s.handleDomMutations,$W),fV.set(i,s.scheduleFlush),a&&s.flush(),s}var VW=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as"],WW=["text"];function UW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function HW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UW(Object(n),!0).forEach((function(t){Yz(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qW=e=>c.default.createElement(c.default.Fragment,null,mW(e)),XW=e=>{var{autoFocus:t,decorate:o=YW,onDOMBeforeInput:r,placeholder:i,readOnly:a=!1,renderElement:s,renderLeaf:l,renderPlaceholder:u=(e=>c.default.createElement(GW,Object.assign({},e))),scrollSelectionIntoView:p=KW,style:d={},as:f="div"}=e,h=Kz(e,VW),m=(()=>{var e=n.useContext(gW);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:t}=e;return t})(),[v,x]=n.useState(!1),g=n.useRef(null),b=n.useRef([]),{onUserInput:y,receivedUserInput:w}=function(){var e=rW(),t=n.useRef(!1),o=n.useRef(0),r=n.useCallback((()=>{if(!t.current){t.current=!0;var n=GV.getWindow(e);n.cancelAnimationFrame(o.current),o.current=n.requestAnimationFrame((()=>{t.current=!1}))}}),[]);return n.useEffect((()=>()=>cancelAnimationFrame(o.current)),[]),{receivedUserInput:t,onUserInput:r}}(),[,C]=n.useReducer((e=>e+1),0);bV.set(m,C),lV.set(m,a);var E=n.useMemo((()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1})),[]);n.useEffect((()=>{g.current&&t&&g.current.focus()}),[t]);var O=n.useCallback(jz((()=>{if((FV||!GV.isComposing(m))&&(!E.isUpdatingSelection||null!=S&&S.isFlushing())&&!E.isDraggingInternally){var e=GV.findDocumentOrShadowRoot(m),{activeElement:t}=e,n=GV.toDOMNode(m,m),o=e.getSelection();if(t===n?(E.latestElement=t,cV.set(m,!0)):cV.delete(m),!o)return ez.deselect(m);var{anchorNode:r,focusNode:i}=o,s=JW(m,r)||QW(m,r),l=JW(m,i)||QW(m,i);if(s&&l){var c=GV.toSlateRange(m,o,{exactMatch:!1,suppressThrow:!0});c&&(GV.isComposing(m)||null!=S&&S.hasPendingChanges()||null!=S&&S.isFlushing()?null==S||S.handleUserSelect(c):ez.select(m,c))}!a||s&&l||ez.deselect(m)}}),100),[a]),D=n.useMemo((()=>Sz(O,0)),[O]),S=zW({node:g,onDOMSelectionChange:O,scheduleOnDOMSelectionChange:D});YV((()=>{var e;g.current&&(e=EV(g.current))?(tV.set(m,e),nV.set(m,g.current),iV.set(m,g.current),rV.set(g.current,m)):iV.delete(m);var{selection:t}=m,n=GV.findDocumentOrShadowRoot(m).getSelection();if(n&&GV.isFocused(m)&&(null==S||!S.hasPendingAction())){var o=e=>{var o="None"!==n.type;if(t||o){var r=nV.get(m),i=!1;if(r.contains(n.anchorNode)&&r.contains(n.focusNode)&&(i=!0),o&&i&&t&&!e){var a=GV.toSlateRange(m,n,{exactMatch:!0,suppressThrow:!0});if(a&&k$.equals(a,t)){var s;if(!E.hasMarkPlaceholder)return;var{anchorNode:l}=n;if(null!=l&&null!==(s=l.parentElement)&&void 0!==s&&s.hasAttribute("data-slate-mark-placeholder"))return}}if(!t||GV.hasRange(m,t)){E.isUpdatingSelection=!0;var c=t&&GV.toDOMRange(m,t);return c?(k$.isBackward(t)?n.setBaseAndExtent(c.endContainer,c.endOffset,c.startContainer,c.startOffset):n.setBaseAndExtent(c.startContainer,c.startOffset,c.endContainer,c.endOffset),p(m,c)):n.removeAllRanges(),c}m.selection=GV.toSlateRange(m,n,{exactMatch:!1,suppressThrow:!0})}},r=o(),i="action"===(null==S?void 0:S.isFlushing());if(FV&&i){var a=null,s=requestAnimationFrame((()=>{if(i){var e=e=>{try{GV.toDOMNode(m,m).focus(),o(e)}catch(e){}};e(),a=setTimeout((()=>{e(!0),E.isUpdatingSelection=!1}))}}));return()=>{cancelAnimationFrame(s),a&&clearTimeout(a)}}setTimeout((()=>{r&&LV&&GV.toDOMNode(m,m).focus();E.isUpdatingSelection=!1}))}}));var k=n.useCallback((e=>{if(y(),!a&&JW(m,e.target)&&!tU(e,r)){var t;if(S)return S.handleDOMBeforeInput(e);D.flush(),O.flush();var{selection:n}=m,{inputType:o}=e,i=e.dataTransfer||e.data||void 0,s="insertCompositionText"===o||"deleteCompositionText"===o;if(s&&GV.isComposing(m))return;var l=!1;if("insertText"===o&&n&&k$.isCollapsed(n)&&e.data&&1===e.data.length&&/[a-z ]/i.test(e.data)&&0!==n.anchor.offset){var c,u;l=!0,m.marks&&(l=!1);var{anchor:p}=n,[d,f]=GV.toDOMPoint(m,p),h=null===(c=d.parentElement)||void 0===c?void 0:c.closest("a"),v=GV.getWindow(m);if(l&&h&&GV.hasDOMNode(m,h)){var g,w=null==v?void 0:v.document.createTreeWalker(h,NodeFilter.SHOW_TEXT).lastChild();w===d&&(null===(g=w.textContent)||void 0===g?void 0:g.length)===f&&(l=!1)}if(l&&d.parentElement&&"pre"===(null==v||null===(u=v.getComputedStyle(d.parentElement))||void 0===u?void 0:u.whiteSpace)){var C=u$.above(m,{at:p.path,match:e=>u$.isBlock(m,e)});C&&m$.string(C[0]).includes("\t")&&(l=!1)}}if(!o.startsWith("delete")||o.startsWith("deleteBy")){var[E]=e.getTargetRanges();if(E){var k=GV.toSlateRange(m,E,{exactMatch:!1,suppressThrow:!1});if(!n||!k$.equals(n,k)){l=!1;var T=!s&&m.selection&&u$.rangeRef(m,m.selection);ez.select(m,k),T&&pV.set(m,T)}}}if(s)return;if(l||e.preventDefault(),n&&k$.isExpanded(n)&&o.startsWith("delete")){var j=o.endsWith("Backward")?"backward":"forward";return void u$.deleteFragment(m,{direction:j})}switch(o){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":u$.deleteFragment(m);break;case"deleteContent":case"deleteContentForward":u$.deleteForward(m);break;case"deleteContentBackward":u$.deleteBackward(m);break;case"deleteEntireSoftLine":u$.deleteBackward(m,{unit:"line"}),u$.deleteForward(m,{unit:"line"});break;case"deleteHardLineBackward":u$.deleteBackward(m,{unit:"block"});break;case"deleteSoftLineBackward":u$.deleteBackward(m,{unit:"line"});break;case"deleteHardLineForward":u$.deleteForward(m,{unit:"block"});break;case"deleteSoftLineForward":u$.deleteForward(m,{unit:"line"});break;case"deleteWordBackward":u$.deleteBackward(m,{unit:"word"});break;case"deleteWordForward":u$.deleteForward(m,{unit:"word"});break;case"insertLineBreak":u$.insertSoftBreak(m);break;case"insertParagraph":u$.insertBreak(m);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":"insertFromComposition"===o&&GV.isComposing(m)&&(x(!1),uV.set(m,!1)),"DataTransfer"===(null==i?void 0:i.constructor.name)?GV.insertData(m,i):"string"==typeof i&&(l?b.current.push((()=>u$.insertText(m,i))):u$.insertText(m,i))}var M=null===(t=pV.get(m))||void 0===t?void 0:t.unref();pV.delete(m),!M||m.selection&&k$.equals(m.selection,M)||ez.select(m,M)}}),[a,r]);YV((()=>(g.current&&XV&&g.current.addEventListener("beforeinput",k),()=>{g.current&&XV&&g.current.removeEventListener("beforeinput",k)})),[k]),YV((()=>{var e=GV.getWindow(m);return e.document.addEventListener("selectionchange",D),()=>{e.document.removeEventListener("selectionchange",D)}}),[D]);var T=o([m,[]]);if(i&&1===m.children.length&&1===Array.from(m$.texts(m)).length&&""===m$.string(m)&&!v){var j=u$.start(m,[]);T.push({[yV]:!0,placeholder:i,anchor:j,focus:j})}var{marks:M}=m;if(E.hasMarkPlaceholder=!1,m.selection&&k$.isCollapsed(m.selection)&&M){var{anchor:A}=m.selection,N=m$.leaf(m,A.path),R=Kz(N,WW);if(!F$.equals(N,M,{loose:!0})){E.hasMarkPlaceholder=!0;var P=Object.fromEntries(Object.keys(R).map((e=>[e,null])));T.push(HW(HW(HW({[wV]:!0},P),M),{},{anchor:A,focus:A}))}}return n.useEffect((()=>{setTimeout((()=>{var{selection:e}=m;if(e){var{anchor:t}=e,n=m$.leaf(m,t.path);if(M&&!F$.equals(n,M,{loose:!0}))return void hV.set(m,M)}hV.delete(m)}))})),c.default.createElement(vW.Provider,{value:a},c.default.createElement(fW.Provider,{value:o},c.default.createElement(SW,{node:g,receivedUserInput:w},c.default.createElement(f,Object.assign({role:a?void 0:"textbox","aria-multiline":!a||void 0},h,{spellCheck:!(!XV&&qV)&&h.spellCheck,autoCorrect:XV||!qV?h.autoCorrect:"false",autoCapitalize:XV||!qV?h.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!a,zindex:-1,suppressContentEditableWarning:!0,ref:g,style:HW({position:"relative",outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},d),onBeforeInput:n.useCallback((e=>{if(!XV&&!a&&!eU(e,h.onBeforeInput)&&JW(m,e.target)&&(e.preventDefault(),!GV.isComposing(m))){var t=e.data;u$.insertText(m,t)}}),[a]),onInput:n.useCallback((e=>{if(S)S.handleInput();else{for(var t of b.current)t();b.current=[]}}),[]),onBlur:n.useCallback((e=>{if(!a&&!E.isUpdatingSelection&&JW(m,e.target)&&!eU(e,h.onBlur)){var t=GV.findDocumentOrShadowRoot(m);if(E.latestElement!==t.activeElement){var{relatedTarget:n}=e;if(!(n===GV.toDOMNode(m,m)||OV(n)&&n.hasAttribute("data-slate-spacer"))){if(null!=n&&DV(n)&&GV.hasDOMNode(m,n)){var o=GV.toSlateNode(m,n);if(r$.isElement(o)&&!m.isVoid(o))return}if(_V){var r=t.getSelection();null==r||r.removeAllRanges()}cV.delete(m)}}}}),[a,h.onBlur]),onClick:n.useCallback((e=>{if(ZW(m,e.target)&&!eU(e,h.onClick)&&DV(e.target)){var t=GV.toSlateNode(m,e.target),n=GV.findPath(m,t);if(!u$.hasPath(m,n)||m$.get(m,n)!==t)return;if(3===e.detail&&n.length>=1){var o=n;if(!u$.isBlock(m,t)){var r,i=u$.above(m,{match:e=>u$.isBlock(m,e),at:n});o=null!==(r=null==i?void 0:i[1])&&void 0!==r?r:n.slice(0,1)}var s=u$.range(m,o);return void ez.select(m,s)}if(a)return;var l=u$.start(m,n),c=u$.end(m,n),u=u$.void(m,{at:l}),p=u$.void(m,{at:c});if(u&&p&&b$.equals(u[1],p[1])){var d=u$.range(m,l);ez.select(m,d)}}}),[a,h.onClick]),onCompositionEnd:n.useCallback((e=>{if(JW(m,e.target)){if(GV.isComposing(m)&&(x(!1),uV.set(m,!1)),null==S||S.handleCompositionEnd(e),eU(e,h.onCompositionEnd)||FV)return;if(!_V&&!VV&&!PV&&!WV&&!HV&&!UV&&e.data){var t=hV.get(m);hV.delete(m),void 0!==t&&(mV.set(m,m.marks),m.marks=t),u$.insertText(m,e.data);var n=mV.get(m);mV.delete(m),void 0!==n&&(m.marks=n)}}}),[h.onCompositionEnd]),onCompositionUpdate:n.useCallback((e=>{JW(m,e.target)&&!eU(e,h.onCompositionUpdate)&&(GV.isComposing(m)||(x(!0),uV.set(m,!0)))}),[h.onCompositionUpdate]),onCompositionStart:n.useCallback((e=>{if(JW(m,e.target)){if(null==S||S.handleCompositionStart(e),eU(e,h.onCompositionStart)||FV)return;x(!0);var{selection:t}=m;if(t){if(k$.isExpanded(t))return void u$.deleteFragment(m);var n=u$.above(m,{match:e=>u$.isInline(m,e),mode:"highest"});if(n){var[,o]=n;if(u$.isEnd(m,t.anchor,o)){var r=u$.after(m,o);ez.setSelection(m,{anchor:r,focus:r})}}}}}),[h.onCompositionStart]),onCopy:n.useCallback((e=>{JW(m,e.target)&&!eU(e,h.onCopy)&&(e.preventDefault(),GV.setFragmentData(m,e.clipboardData,"copy"))}),[h.onCopy]),onCut:n.useCallback((e=>{if(!a&&JW(m,e.target)&&!eU(e,h.onCut)){e.preventDefault(),GV.setFragmentData(m,e.clipboardData,"cut");var{selection:t}=m;if(t)if(k$.isExpanded(t))u$.deleteFragment(m);else{var n=m$.parent(m,t.anchor.path);u$.isVoid(m,n)&&ez.delete(m)}}}),[a,h.onCut]),onDragOver:n.useCallback((e=>{if(ZW(m,e.target)&&!eU(e,h.onDragOver)){var t=GV.toSlateNode(m,e.target);u$.isVoid(m,t)&&e.preventDefault()}}),[h.onDragOver]),onDragStart:n.useCallback((e=>{if(!a&&ZW(m,e.target)&&!eU(e,h.onDragStart)){var t=GV.toSlateNode(m,e.target),n=GV.findPath(m,t);if(u$.isVoid(m,t)||u$.void(m,{at:n,voids:!0})){var o=u$.range(m,n);ez.select(m,o)}E.isDraggingInternally=!0,GV.setFragmentData(m,e.dataTransfer,"drag")}}),[a,h.onDragStart]),onDrop:n.useCallback((e=>{if(!a&&ZW(m,e.target)&&!eU(e,h.onDrop)){e.preventDefault();var t=m.selection,n=GV.findEventRange(m,e),o=e.dataTransfer;ez.select(m,n),E.isDraggingInternally&&(!t||k$.equals(t,n)||u$.void(m,{at:n,voids:!0})||ez.delete(m,{at:t})),GV.insertData(m,o),GV.isFocused(m)||GV.focus(m)}E.isDraggingInternally=!1}),[a,h.onDrop]),onDragEnd:n.useCallback((e=>{!a&&E.isDraggingInternally&&h.onDragEnd&&ZW(m,e.target)&&h.onDragEnd(e),E.isDraggingInternally=!1}),[a,h.onDragEnd]),onFocus:n.useCallback((e=>{if(!a&&!E.isUpdatingSelection&&JW(m,e.target)&&!eU(e,h.onFocus)){var t=GV.toDOMNode(m,m),n=GV.findDocumentOrShadowRoot(m);if(E.latestElement=n.activeElement,LV&&e.target!==t)return void t.focus();cV.set(m,!0)}}),[a,h.onFocus]),onKeyDown:n.useCallback((e=>{if(!a&&JW(m,e.target)){null==S||S.handleKeyDown(e);var{nativeEvent:t}=e;if(GV.isComposing(m)&&!1===t.isComposing&&(uV.set(m,!1),x(!1)),eU(e,h.onKeyDown)||GV.isComposing(m))return;var{selection:n}=m,o=m.children[null!==n?n.focus.path[0]:0],r="rtl"===tz(m$.string(o));if(EW.isRedo(t)){e.preventDefault();var i=m;return void("function"==typeof i.redo&&i.redo())}if(EW.isUndo(t)){e.preventDefault();var s=m;return void("function"==typeof s.undo&&s.undo())}if(EW.isMoveLineBackward(t))return e.preventDefault(),void ez.move(m,{unit:"line",reverse:!0});if(EW.isMoveLineForward(t))return e.preventDefault(),void ez.move(m,{unit:"line"});if(EW.isExtendLineBackward(t))return e.preventDefault(),void ez.move(m,{unit:"line",edge:"focus",reverse:!0});if(EW.isExtendLineForward(t))return e.preventDefault(),void ez.move(m,{unit:"line",edge:"focus"});if(EW.isMoveBackward(t))return e.preventDefault(),void(n&&k$.isCollapsed(n)?ez.move(m,{reverse:!r}):ez.collapse(m,{edge:"start"}));if(EW.isMoveForward(t))return e.preventDefault(),void(n&&k$.isCollapsed(n)?ez.move(m,{reverse:r}):ez.collapse(m,{edge:"end"}));if(EW.isMoveWordBackward(t))return e.preventDefault(),n&&k$.isExpanded(n)&&ez.collapse(m,{edge:"focus"}),void ez.move(m,{unit:"word",reverse:!r});if(EW.isMoveWordForward(t))return e.preventDefault(),n&&k$.isExpanded(n)&&ez.collapse(m,{edge:"focus"}),void ez.move(m,{unit:"word",reverse:r});if(XV){if(($V||_V)&&n&&(EW.isDeleteBackward(t)||EW.isDeleteForward(t))&&k$.isCollapsed(n)){var l=m$.parent(m,n.anchor.path);if(r$.isElement(l)&&u$.isVoid(m,l)&&(u$.isInline(m,l)||u$.isBlock(m,l)))return e.preventDefault(),void u$.deleteBackward(m,{unit:"block"})}}else{if(EW.isBold(t)||EW.isItalic(t)||EW.isTransposeCharacter(t))return void e.preventDefault();if(EW.isSoftBreak(t))return e.preventDefault(),void u$.insertSoftBreak(m);if(EW.isSplitBlock(t))return e.preventDefault(),void u$.insertBreak(m);if(EW.isDeleteBackward(t))return e.preventDefault(),void(n&&k$.isExpanded(n)?u$.deleteFragment(m,{direction:"backward"}):u$.deleteBackward(m));if(EW.isDeleteForward(t))return e.preventDefault(),void(n&&k$.isExpanded(n)?u$.deleteFragment(m,{direction:"forward"}):u$.deleteForward(m));if(EW.isDeleteLineBackward(t))return e.preventDefault(),void(n&&k$.isExpanded(n)?u$.deleteFragment(m,{direction:"backward"}):u$.deleteBackward(m,{unit:"line"}));if(EW.isDeleteLineForward(t))return e.preventDefault(),void(n&&k$.isExpanded(n)?u$.deleteFragment(m,{direction:"forward"}):u$.deleteForward(m,{unit:"line"}));if(EW.isDeleteWordBackward(t))return e.preventDefault(),void(n&&k$.isExpanded(n)?u$.deleteFragment(m,{direction:"backward"}):u$.deleteBackward(m,{unit:"word"}));if(EW.isDeleteWordForward(t))return e.preventDefault(),void(n&&k$.isExpanded(n)?u$.deleteFragment(m,{direction:"forward"}):u$.deleteForward(m,{unit:"word"}))}}}),[a,h.onKeyDown]),onPaste:n.useCallback((e=>{a||!JW(m,e.target)||eU(e,h.onPaste)||XV&&!(e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length)(e.nativeEvent)||(e.preventDefault(),GV.insertData(m,e.clipboardData))}),[a,h.onPaste])}),c.default.createElement(qW,{decorations:T,node:m,renderElement:s,renderPlaceholder:u,renderLeaf:l,selection:m.selection})))))},GW=e=>{var{attributes:t,children:n}=e;return c.default.createElement("span",Object.assign({},t),n,FV&&c.default.createElement("br",null))},YW=()=>[],KW=(e,t)=>{if(!e.selection||e.selection&&k$.isCollapsed(e.selection)){var n=t.startContainer.parentElement;n.getBoundingClientRect=t.getBoundingClientRect.bind(t),Fz(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},ZW=(e,t)=>DV(t)&&GV.hasDOMNode(e,t),JW=(e,t)=>DV(t)&&GV.hasDOMNode(e,t,{editable:!0}),QW=(e,t)=>{if(lV.get(e))return!1;var n=ZW(e,t)&&GV.toSlateNode(e,t);return u$.isVoid(e,n)},eU=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.isDefaultPrevented()||e.isPropagationStopped()},tU=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.defaultPrevented},nU=n.createContext(!1),oU=n.createContext({});var rU=["editor","children","onChange","value"],iU=e=>{var{editor:t,children:o,onChange:r,value:i}=e,a=Kz(e,rU),s=n.useRef(!1),[l,u]=c.default.useState((()=>{if(!m$.isNodeList(i))throw new Error("[Slate] value is invalid! Expected a list of elements"+"but got: ".concat(M$.stringify(i)));if(!u$.isEditor(t))throw new Error("[Slate] editor is invalid! you passed:"+"".concat(M$.stringify(t)));return t.children=i,Object.assign(t,a),{v:0,editor:t}})),{selectorContext:p,onChange:d}=function(e){var t=n.useRef([]).current,o=n.useRef({editor:e}).current,r=n.useCallback((e=>{o.editor=e,t.forEach((t=>t(e)))}),[]);return{selectorContext:n.useMemo((()=>({getSlate:()=>o.editor,addEventListener:e=>(t.push(e),()=>{t.splice(t.indexOf(e),1)})})),[t,o]),onChange:r}}(t),f=n.useCallback((()=>{r&&r(t.children),u((e=>({v:e.v+1,editor:t}))),d(t)}),[r]);dV.set(t,f),n.useEffect((()=>()=>{dV.set(t,(()=>{})),s.current=!0}),[]);var[h,m]=n.useState(GV.isFocused(t));return n.useEffect((()=>{m(GV.isFocused(t))})),YV((()=>{var e=()=>m(GV.isFocused(t));return RV?(document.addEventListener("focusin",e),document.addEventListener("focusout",e),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",e)}):(document.addEventListener("focus",e,!0),document.addEventListener("blur",e,!0),()=>{document.removeEventListener("focus",e,!0),document.removeEventListener("blur",e,!0)})}),[]),c.default.createElement(oU.Provider,{value:p},c.default.createElement(gW.Provider,{value:l},c.default.createElement(oW.Provider,{value:l.editor},c.default.createElement(nU.Provider,{value:h},o))))},aU=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},sU=(e,t,n)=>{var o=GV.toDOMRange(e,t).getBoundingClientRect(),r=GV.toDOMRange(e,n).getBoundingClientRect();return aU(o,r)&&aU(r,o)};function lU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function cU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lU(Object(n),!0).forEach((function(t){Yz(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var uU,pU,dU,fU,hU,mU,vU,xU,gU,bU,yU,wU,CU,EU,OU,DU,SU,kU,TU,jU,MU,AU,NU,RU,PU,BU=e=>{var t=e,{apply:n,onChange:o,deleteBackward:r,addMark:i,removeMark:a}=t;return sV.set(t,new WeakMap),t.addMark=(e,n)=>{var o,r;null===(o=fV.get(t))||void 0===o||o(),!hV.get(t)&&null!==(r=vV.get(t))&&void 0!==r&&r.length&&hV.set(t,null),mV.delete(t),i(e,n)},t.removeMark=e=>{var n;!hV.get(t)&&null!==(n=vV.get(t))&&void 0!==n&&n.length&&hV.set(t,null),mV.delete(t),a(e)},t.deleteBackward=e=>{if("line"!==e)return r(e);if(t.selection&&k$.isCollapsed(t.selection)){var n=u$.above(t,{match:e=>u$.isBlock(t,e),at:t.selection});if(n){var[,o]=n,i=u$.range(t,o,t.selection.anchor),a=((e,t)=>{var n=u$.range(e,k$.end(t)),o=Array.from(u$.positions(e,{at:t})),r=0,i=o.length,a=Math.floor(i/2);if(sU(e,u$.range(e,o[r]),n))return u$.range(e,o[r],n);if(o.length<2)return u$.range(e,o[o.length-1],n);for(;a!==o.length&&a!==r;)sU(e,u$.range(e,o[a]),n)?i=a:r=a,a=Math.floor((r+i)/2);return u$.range(e,o[i],n)})(t,i);k$.isCollapsed(a)||ez.delete(t,{at:a})}}},t.apply=e=>{var o=[],r=vV.get(t);if(null!=r&&r.length){var i=r.map((t=>function(e,t){var{path:n,diff:o,id:r}=e;switch(t.type){case"insert_text":return!b$.equals(t.path,n)||t.offset>=o.end?e:t.offset<=o.start?{diff:{start:t.text.length+o.start,end:t.text.length+o.end,text:o.text},id:r,path:n}:{diff:{start:o.start,end:o.end+t.text.length,text:o.text},id:r,path:n};case"remove_text":return!b$.equals(t.path,n)||t.offset>=o.end?e:t.offset+t.text.length<=o.start?{diff:{start:o.start-t.text.length,end:o.end-t.text.length,text:o.text},id:r,path:n}:{diff:{start:o.start,end:o.end-t.text.length,text:o.text},id:r,path:n};case"split_node":return!b$.equals(t.path,n)||t.position>=o.end?{diff:o,id:r,path:b$.transform(n,t,{affinity:"backward"})}:t.position>o.start?{diff:{start:o.start,end:Math.min(t.position,o.end),text:o.text},id:r,path:n}:{diff:{start:o.start-t.position,end:o.end-t.position,text:o.text},id:r,path:b$.transform(n,t,{affinity:"forward"})};case"merge_node":return b$.equals(t.path,n)?{diff:{start:o.start+t.position,end:o.end+t.position,text:o.text},id:r,path:b$.transform(n,t)}:{diff:o,id:r,path:b$.transform(n,t)}}var i=b$.transform(n,t);return i?{diff:o,path:i,id:r}:null}(t,e))).filter(Boolean);vV.set(t,i)}var a=gV.get(t);a&&gV.set(t,PW(t,a,e));var s=xV.get(t);if(null!=s&&s.at){var l=E$.isPoint(null==s?void 0:s.at)?RW(t,s.at,e):PW(t,s.at,e);xV.set(t,l?cU(cU({},s),{},{at:l}):null)}switch(e.type){case"insert_text":case"remove_text":case"set_node":case"split_node":o.push(...FU(t,e.path));break;case"set_selection":var c;null===(c=pV.get(t))||void 0===c||c.unref(),pV.delete(t);break;case"insert_node":case"remove_node":o.push(...FU(t,b$.parent(e.path)));break;case"merge_node":var u=b$.previous(e.path);o.push(...FU(t,u));break;case"move_node":var p=b$.common(b$.parent(e.path),b$.parent(e.newPath));o.push(...FU(t,p))}for(var[d,f]of(n(e),o)){var[h]=u$.node(t,d);aV.set(h,f)}},t.setFragmentData=e=>{var{selection:n}=t;if(n){var[o,r]=k$.edges(n),i=u$.void(t,{at:o.path}),a=u$.void(t,{at:r.path});if(!k$.isCollapsed(n)||i){var s=GV.toDOMRange(t,n),l=s.cloneContents(),c=l.childNodes[0];if(l.childNodes.forEach((e=>{e.textContent&&""!==e.textContent.trim()&&(c=e)})),a){var[u]=a,p=s.cloneRange(),d=GV.toDOMNode(t,u);p.setEndAfter(d),l=p.cloneContents()}if(i&&(c=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach((e=>{var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),kV(c)){var f=c.ownerDocument.createElement("span");f.style.whiteSpace="pre",f.appendChild(c),l.appendChild(f),c=f}var h=t.getFragment(),m=JSON.stringify(h),v=window.btoa(encodeURIComponent(m));c.setAttribute("data-slate-fragment",v),e.setData("application/x-slate-fragment",v);var x=l.ownerDocument.createElement("div");return x.appendChild(l),x.setAttribute("hidden","true"),l.ownerDocument.body.appendChild(x),e.setData("text/html",x.innerHTML),e.setData("text/plain",MV(x)),l.ownerDocument.body.removeChild(x),e}}},t.insertData=e=>{t.insertFragmentData(e)||t.insertTextData(e)},t.insertFragmentData=e=>{var n=e.getData("application/x-slate-fragment")||(e=>{var t=e.getData("text/html"),[,n]=t.match(AV)||[];return n})(e);if(n){var o=decodeURIComponent(window.atob(n)),r=JSON.parse(o);return t.insertFragment(r),!0}return!1},t.insertTextData=e=>{var n=e.getData("text/plain");if(n){var o=n.split(/\r\n|\r|\n/),r=!1;for(var i of o)r&&ez.splitNodes(t,{always:!0}),t.insertText(i),r=!0;return!0}return!1},t.onChange=()=>{p.default.unstable_batchedUpdates((()=>{var e=dV.get(t);e&&e(),o()}))},t},FU=(e,t)=>{var n=[];for(var[o,r]of u$.levels(e,{at:t})){var i=GV.findKey(e,o);n.push([r,i])}return n},LU=function(e){var n=e.element,o=e.children,r=e.attributes;switch(n.type){case"list-item":return t.jsx("li",d({},r,{children:o}));case"numbered-list":return t.jsx(_U,d({type:"1"},r,{children:o}));case"bulleted-list":return t.jsx(IU,d({},r,{children:o}));default:return t.jsx("p",d({},r,{children:o}))}},_U=s.default.ol(uU||(uU=x(["\n list-style: decimal;\n list-style-position: inside;\n"],["\n list-style: decimal;\n list-style-position: inside;\n"]))),IU=s.default.ul(pU||(pU=x(["\n list-style: disc;\n list-style-position: inside;\n"],["\n list-style: disc;\n list-style-position: inside;\n"]))),$U=function(e){var n,o,r,i=e.leaf,a=e.children,s=e.attributes,l=IO(),c=l.showAnnotations,u=l.annotationsList,p=l.isMLRReview;if(i.tag){var f=u.tags.findIndex((function(e){var t,n=e.id;return(null===(t=i.tag)||void 0===t?void 0:t.id)===n}))+1;p&&c&&f&&(a=t.jsxs(iw,d({component:"span",display:"inline-flex",direction:"row",alignItems:"center",gap:.5,id:WU},((n={})["data-".concat(HU)]=null===(r=i.tag)||void 0===r?void 0:r.id,n),{children:[t.jsx("span",d({style:{backgroundColor:"#FFF0D0B5"}},{children:a})),t.jsx(Yne,{index:u.tags.findIndex((function(e){var t,n,o=e.id,r=e.label;return(null===(t=i.tag)||void 0===t?void 0:t.id)===o||(null===(n=i.tag)||void 0===n?void 0:n.label)===r}))+1,type:"message"})]})))}if(i.bold&&(a=t.jsx("span",d({style:{fontWeight:"bold"}},{children:a}))),i.strikethrough&&(a=t.jsx("s",{children:a})),i.italic&&(a=t.jsx("span",d({style:{fontStyle:"italic"}},{children:a}))),i.underline&&(a=t.jsx("u",{children:a})),i.variable&&(a=t.jsxs(zU,{children:[t.jsx("span",d({style:{left:0},contentEditable:!1},{children:"["})),t.jsx("span",{children:a}),t.jsx("span",d({style:{right:0},contentEditable:!1},{children:"]"}))]})),i.communicationLink){var h=window.location,m=h.host,v=h.protocol,x=i.communicationLink,g=x.type,b=x.url,y="internalLink"===g?"".concat(v,"//").concat(m,"/").concat(b):b,w=u.links.findIndex((function(e){return b===e.url&&i.text===e.text}))+1;a=t.jsx(t.Fragment,{children:p&&c&&w?t.jsxs(iw,d({component:"span",display:"inline-flex",alignItems:"center",gap:.2,marginBottom:.2,id:UU},(o={},o["data-".concat(qU)]=b,o["data-".concat(XU)]=i.text,o),{children:[t.jsx("a",d({style:{color:D.colors.blue}},s,{href:y,target:"_blank"},{children:a})),t.jsx(Yne,{index:w,type:"link"})]})):t.jsx("a",d({style:{color:D.colors.blue}},s,{href:y,target:"_blank"},{children:a}))})}return t.jsx("span",d({},s,{children:a}))},zU=s.default.span(dU||(dU=x(["\n position: relative;\n white-space: nowrap;\n padding: 0;\n"],["\n position: relative;\n white-space: nowrap;\n padding: 0;\n"]))),VU=[{type:"paragraph",children:[{text:""}]}],WU="matrix-message",UU="communication-link",HU="matrix-message-id",qU="communication-link-url",XU="communication-link-text",GU=function(e){var o=e.value,r=e.color,i=void 0===r?"gray1":r,a=e.textStyles,s=e.font,l=void 0===s?"XS":s,c=e.numberOfLines,u=e.extraTextProps,p=n.useState((function(){return BU((()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of u$.pathRefs(e))y$.transform(n,t);for(var o of u$.pointRefs(e))O$.transform(o,t);for(var r of u$.rangeRefs(e))T$.transform(r,t);var i,a,s=yI.get(e)||[],l=wI.get(e)||new Set,c=e=>{if(e){var t=e.join(",");a.has(t)||(a.add(t),i.push(e))}};if(b$.operationCanTransformPath(t))for(var u of(i=[],a=new Set,s))c(b$.transform(u,t));else i=s,a=l;var p=e.getDirtyPaths(t);for(var d of p)c(d);yI.set(e,i),wI.set(e,a),ez.transform(e,t),e.operations.push(t),u$.normalize(e),"set_selection"===t.type&&(e.marks=null),CI.get(e)||(CI.set(e,!0),Promise.resolve().then((()=>{CI.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:o,markableVoid:r}=e;if(o){var i=(t,n)=>{if(!F$.isText(t))return!1;var[o,r]=u$.parent(e,n);return!e.isVoid(o)||e.markableVoid(o)},a=k$.isExpanded(o),s=!1;if(!a){var[l,c]=u$.node(e,o);if(l&&i(l,c)){var[u]=u$.parent(e,c);s=u&&e.markableVoid(u)}}if(a||s)ez.setNodes(e,{[t]:n},{match:i,split:!0,voids:!0});else{var p=TI(TI({},u$.marks(e)||{}),{},{[t]:n});e.marks=p,CI.get(e)||e.onChange()}}},deleteBackward:t=>{var{selection:n}=e;n&&k$.isCollapsed(n)&&ez.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&k$.isCollapsed(n)&&ez.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&k$.isExpanded(n)&&ez.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?m$.fragment(e,t):[]},insertBreak:()=>{ez.splitNodes(e,{always:!0})},insertSoftBreak:()=>{ez.splitNodes(e,{always:!0})},insertFragment:t=>{ez.insertFragment(e,t)},insertNode:t=>{ez.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:o}=e;if(n){if(o){var r=TI({text:t},o);ez.insertNodes(e,r)}else ez.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,o]=t;if(!F$.isText(n))if(r$.isElement(n)&&0===n.children.length)ez.insertNodes(e,{text:""},{at:o.concat(0),voids:!0});else for(var r=!u$.isEditor(n)&&r$.isElement(n)&&(e.isInline(n)||0===n.children.length||F$.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var s=m$.get(e,o);if(!F$.isText(s)){var l=n.children[a],c=s.children[i-1],u=a===n.children.length-1;(F$.isText(l)||r$.isElement(l)&&e.isInline(l))!==r?(ez.removeNodes(e,{at:o.concat(i),voids:!0}),i--):r$.isElement(l)?e.isInline(l)&&(null!=c&&F$.isText(c)?u&&(ez.insertNodes(e,{text:""},{at:o.concat(i+1),voids:!0}),i++):(ez.insertNodes(e,{text:""},{at:o.concat(i),voids:!0}),i++)):null!=c&&F$.isText(c)&&(F$.equals(l,c,{loose:!0})?(ez.mergeNodes(e,{at:o.concat(i),voids:!0}),i--):""===c.text?(ez.removeNodes(e,{at:o.concat(i-1),voids:!0}),i--):""===l.text&&(ez.removeNodes(e,{at:o.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n){var o=(t,n)=>{if(!F$.isText(t))return!1;var[o,r]=u$.parent(e,n);return!e.isVoid(o)||e.markableVoid(o)},r=k$.isExpanded(n),i=!1;if(!r){var[a,s]=u$.node(e,n);if(a&&o(a,s)){var[l]=u$.parent(e,s);i=l&&e.markableVoid(l)}}if(r||i)ez.unsetNodes(e,t,{match:o,split:!0,voids:!0});else{var c=TI({},u$.marks(e)||{});delete c[t],e.marks=c,CI.get(e)||e.onChange()}}},getDirtyPaths:e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return b$.levels(t);case"insert_node":var{node:n,path:o}=e,r=b$.levels(o),i=F$.isText(n)?[]:Array.from(m$.nodes(n),(e=>{var[,t]=e;return o.concat(t)}));return[...r,...i];case"merge_node":var{path:a}=e;return[...b$.ancestors(a),b$.previous(a)];case"move_node":var{path:s,newPath:l}=e;if(b$.equals(s,l))return[];var c=[],u=[];for(var p of b$.ancestors(s)){var d=b$.transform(p,e);c.push(d)}for(var f of b$.ancestors(l)){var h=b$.transform(f,e);u.push(h)}var m=u[u.length-1],v=l[l.length-1],x=m.concat(v);return[...c,...u,x];case"remove_node":var{path:g}=e;return[...b$.ancestors(g)];case"split_node":var{path:b}=e;return[...b$.levels(b),b$.next(b)];default:return[]}}};return e})())}))[0];if(void 0===o)return null;var f=VU,h=o.replace(/\\/g,"");try{f=JSON.parse(o)}catch(e){console.error(e,"Value was parsed incorrectly. Trying to parse it...");try{f=JSON.parse(h)}catch(t){console.error(e,"Most probably that it's not possible to parse this value")}}return t.jsx(YU,d({font:l,color:i},{children:t.jsx(iU,d({editor:p,value:f},{children:t.jsx(XW,{readOnly:!0,renderElement:function(e){return t.jsx(Mq,d({numberOfLines:c,styles:a,color:i,variant:l},u,{children:t.jsx(LU,d({},e))}))},renderLeaf:function(e){return t.jsx($U,d({},e))}})}),JSON.stringify(f))}))},YU=s.default(Up)(hU||(hU=x(["\n ",";\n"],["\n ",";\n"])),(function(t){var n=t.theme,o=n.colors,r=n.fonts,i=t.color,a=void 0===i?"gray1":i,s=t.font,l=void 0===s?"XS":s;return e.css(fU||(fU=x(["\n color: ",";\n ","\n "],["\n color: ",";\n ","\n "])),o[a],r[l])})),KU=s.default.button(xU||(xU=x(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);\n user-select: none;\n outline: none;\n height: 51px;\n position: relative;\n ",";\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);\n user-select: none;\n outline: none;\n height: 51px;\n position: relative;\n ",";\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.colors,i=n.fonts,a=t.disabled,s=t.fullWidth,l=t.variant,c=void 0===l?"primary":l,u=t.size,p=void 0===u?"medium":u,d="primary"===c?r.primary:"transparent",f="primary"===c?r.white:r.gray2,h="medium"===p?"".concat(o.M,"px"):"".concat(o.S,"px ").concat(o.M,"px");return e.css(vU||(vU=x(["\n padding: ",";\n height: ","px;\n border: 2.5px solid transparent;\n background-color: ",";\n ",";\n color: ",";\n border-radius: ","px;\n background-position: center;\n transition: box-shadow 0.25s ease-in-out;\n width: ",";\n &:hover {\n box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);\n }\n &:focus {\n border: 2.5px solid\n ",";\n box-shadow: none;\n }\n\n ","\n "],["\n padding: ",";\n height: ","px;\n border: 2.5px solid transparent;\n background-color: ",";\n ",";\n color: ",";\n border-radius: ","px;\n background-position: center;\n transition: box-shadow 0.25s ease-in-out;\n width: ",";\n &:hover {\n box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);\n }\n &:focus {\n border: 2.5px solid\n ",";\n box-shadow: none;\n }\n\n ","\n "])),h,"medium"===p?51:33,d,"medium"===p?i.XL:i.L,f,o.S,s?"100%":"auto","primary"===c?O(r.primary,-.38):r.gray2,a&&e.css(mU||(mU=x(["\n cursor: unset;\n pointer-events: none;\n background-color: ",";\n box-shadow: none;\n "],["\n cursor: unset;\n pointer-events: none;\n background-color: ",";\n box-shadow: none;\n "])),E(r.primary)))})),ZU=s.default(KU).attrs({variant:"secondary"})(yU||(yU=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.colors,o=t.disabled;return e.css(bU||(bU=x(["\n border: 1.5px solid ",";\n box-shadow: 0 0 0 1.5px transparent inset;\n &:focus {\n border: 1.5px solid ",";\n box-shadow: 0 0 0 1.5px "," inset;\n }\n &:hover {\n box-shadow: 0 0 0 1.5px "," inset;\n }\n\n ","\n "],["\n border: 1.5px solid ",";\n box-shadow: 0 0 0 1.5px transparent inset;\n &:focus {\n border: 1.5px solid ",";\n box-shadow: 0 0 0 1.5px "," inset;\n }\n &:hover {\n box-shadow: 0 0 0 1.5px "," inset;\n }\n\n ","\n "])),n.gray2,n.gray2,n.gray2,n.gray2,o&&e.css(gU||(gU=x(["\n box-shadow: 0 0 0 1.5px ",";\n color: ",";\n background-color: transparent;\n "],["\n box-shadow: 0 0 0 1.5px ",";\n color: ",";\n background-color: transparent;\n "])),n.gray3,n.gray3))})),JU=s.default(KU).attrs({variant:"custom"})(SU||(SU=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.colors,i=n.fonts,a=t.disabled,s=t.size,l=void 0===s?"medium":s,c=t.hoverButtonColor,u=t.hoverStrokeColor,p=void 0===u?"#00000040":u,d=t.buttonFont,f=void 0===d?"XL":d,h=t.textColor,m=void 0===h?"white":h,v=t.textSize,g=void 0===v?16:v,b=t.verticalPadding,y=t.horizontalPadding,w=t.buttonColor,C=void 0===w?"primary":w,D=t.buttonStroke,S=void 0===D?"primary":D,k=t.cornerRadius,T=void 0===k?"S":k,j=t.inactiveButtonColor,M=t.inactiveStrokeColor,A=t.inactiveTextColor,N=t.styles,R=r[C]||C,P="medium"===l?"".concat(o.M,"px"):"".concat(o.S,"px ").concat(o.M,"px"),B="medium"===l?i.XL:i.L,F=C?r[C]||C:r[p]||p;return e.css(DU||(DU=x(["\n padding: ",";\n border-color: ",";\n background-color: ",";\n font-size: ","px;\n ",";\n color: ",";\n border-radius: ","px;\n box-shadow: none;\n transition: border 0.2s ease-in-out;\n &:focus {\n border: 2.5px solid ",";\n }\n &:hover {\n border: 2.5px solid ",";\n ","\n }\n\n ","\n\n ","\n "],["\n padding: ",";\n border-color: ",";\n background-color: ",";\n font-size: ","px;\n ",";\n color: ",";\n border-radius: ","px;\n box-shadow: none;\n transition: border 0.2s ease-in-out;\n &:focus {\n border: 2.5px solid ",";\n }\n &:hover {\n border: 2.5px solid ",";\n ","\n }\n\n ","\n\n ","\n "])),y||b?"".concat(o[b||"M"],"px ").concat(o[y||"M"],"px"):P,r[S]||S,R,g,f?i[f]:B,r[m]||m,"number"==typeof T?T:o[T],O(F,-.33),r[p]||p,c&&e.css(wU||(wU=x(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),r[c]||c),a&&e.css(OU||(OU=x(["\n background-color: ",";\n color: ","\n ","\n ",";\n "],["\n background-color: ",";\n color: ","\n ","\n ",";\n "])),E(R||r.primary),r[A]||A,j&&e.css(CU||(CU=x(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),r[j]||j),M&&e.css(EU||(EU=x(["\n border: 2.5px solid ",";\n "],["\n border: 2.5px solid ",";\n "])),r[M]||M)),N)})),QU=s.default.div(TU||(TU=x(["\n display: inline-flex;\n ","\n"],["\n display: inline-flex;\n ","\n"])),(function(t){var n=t.$fullWidth,o=t.$styles;return e.css(kU||(kU=x(["\n width: ",";\n ","\n "],["\n width: ",";\n ","\n "])),n?"100%":"auto",o)})),eH=function(n){var o,r=n.text,i=n.onClick,a=n.loading,s=n.disabled,l=n.variant,c=void 0===l?"primary":l,u=n.isRichText,p=n.fullWidth,h=void 0===p||p,m=n.elementId,v=n.link,g=n.containerStyle,b=n.children,y=n.buttonStyle,w=n.size,C=n.textColor,E=void 0===C?"gray2":C,O=n.inactiveTextColor,D=void 0===O?"gray3":O,S=n.state,k=void 0===S?"enabled":S,T=n.href,j=f(n,["text","onClick","loading","disabled","variant","isRichText","fullWidth","elementId","link","containerStyle","children","buttonStyle","size","textColor","inactiveTextColor","state","href"]),M={primary:KU,secondary:ZU,custom:JU,text:aX}[c],A=s||"disabled"===k,N=e.useTheme().colors,R=IO(),P=R.showAnnotations,B=R.annotationsList,F=R.isMLRReview,L=B.links.findIndex((function(e){return m===e.moleculeId||v===e.url}))+1;if(!r&&!b)return null;var _={primary:"white",secondary:N[E],custom:N[E]||E,text:"blue"},I={primary:"white",secondary:N[D],custom:N[D]||D,text:N[D]},$=e.css(MU||(MU=x(["\n ","\n ","\n ","\n "],["\n ","\n ","\n ","\n "])),(null==j?void 0:j.textSize)&&e.css(jU||(jU=x(["\n font-size: ","px;\n "],["\n font-size: ","px;\n "])),j.textSize),y,j.styles),z=u?t.jsx(GU,{color:A?I[c]:_[c],font:"custom"===c&&j.buttonFont?j.buttonFont:"XL",value:r,extraTextProps:{behaveAs:"button",variant:"custom"===c&&j.buttonFont?j.buttonFont:"XL",styles:$}}):r;return t.jsx(QU,d({},L&&((o={id:UU})["data-".concat(qU)]=v,o["data-".concat(XU)]=m,o),{id:L?"annotation-link":"","data-link-url":v,"data-link-text":m,className:"z-button-container",$fullWidth:h,$styles:g},{children:t.jsxs(M,d({fullWidth:h,variant:c,disabled:a||A,onClick:i,style:d(d({},y),null==j?void 0:j.styles),size:w,textColor:E,inactiveTextColor:D,href:"text"===c?T:void 0},j,{children:[z||b,a&&t.jsxs(t.Fragment,{children:[t.jsx(jq,{width:6}),t.jsx(oX,{color:"gray1"})]}),F&&P&&!!L&&t.jsx("span",d({style:{position:"absolute",bottom:-6,left:"50%",zIndex:1,transform:"translate(-50%, 100%)"}},{children:t.jsx(Yne,{index:L,type:"link"})}))]}))}))},tH=function(e){var n=e.children,o=e.wrapperStyles,r=e.padding,i=void 0===r?64:r,a=e.onKeyDown,s=e.modalStyles,l=e.onClose,c=f(e,["children","wrapperStyles","padding","onKeyDown","modalStyles","onClose"]);return t.jsx(jf,d({},c,{style:s,onKeyDown:a},{children:t.jsxs(nH,d({style:d({padding:i},o)},{children:[n,t.jsx(Kk,d({onClick:l},{children:t.jsx(Tq,{size:32,name:"Close",color:D.colors.gray1})}))]}))}))},nH=s.default.div(NU||(NU=x(["\n position: absolute;\n left: 50%;\n outline: none;\n min-width: 510px;\n max-height: 90vh;\n overflow-y: auto;\n transform: translate(-50%);\n ","\n"],["\n position: absolute;\n left: 50%;\n outline: none;\n min-width: 510px;\n max-height: 90vh;\n overflow-y: auto;\n transform: translate(-50%);\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes,i=t.$styles;return e.css(AU||(AU=x(["\n top: ","px;\n box-shadow: ","px;\n border-radius: ","px;\n background-color: ",";\n ","\n "],["\n top: ","px;\n box-shadow: ","px;\n border-radius: ","px;\n background-color: ",";\n ","\n "])),r.XL,r.L,r.M,o.background,i)})),oH=function(e){var n=e.mode,o=void 0===n?"onChange":n,r=e.children,i=bS({mode:o});return t.jsx(wD,d({},i,{children:r}))},rH=function(e){var n=e.children,o=e.wide,r=e.compact,i=e.type,a=e.props,s=oq("xs"),l=o||{},c=l.containerProps,u=void 0===c?{}:c,p=l.containerStyle,f=void 0===p?{}:p,h=r||{},m=h.containerProps,v=void 0===m?{}:m,x=h.containerStyle,g=void 0===x?{}:x,b=s?v:u,y=function(){switch(i){case"slider":return t.jsx(p_,{children:n});case"form":return t.jsx(oH,d({},null==a?void 0:a.formProps,{children:n}));default:return n}}();return t.jsx(aH,d({containerProps:d(d({},a),b),style:s?g:f,type:i},{children:y}))},iH=["slider","form"],aH=s.default.div(PU||(PU=x(["\n ","\n"],["\n ","\n"])),(function(t){var n,o=t.type,r=void 0===o?"row":o,i=t.containerProps;return e.css(RU||(RU=x(["\n display: flex;\n align-items: stretch;\n flex-direction: ",";\n position: ",";\n border-radius: ","px;\n ",";\n ",";\n "],["\n display: flex;\n align-items: stretch;\n flex-direction: ",";\n position: ",";\n border-radius: ","px;\n ",";\n ",";\n "])),"column"===r?"column":"row",(null==i?void 0:i.position)||"static",(null==i?void 0:i.cornerRadius)||0,"vertical"===(n=iH.includes(r)?"none":null==i?void 0:i.scrollBehaviour)?"overflow-y: scroll":"horizontal"===n?"overflow-x: scroll":"none"===n?"overflow: visible":"overflow: unset",null==i?void 0:i.styles)}));require("./AppLogo.png"),require("./HomeBannerImage.png"),require("./ProfileGraphic.png"),require("./PulseEmblem.png"),require("./Logo.png"),require("./AppleLogo.png"),require("./ModernaLogo.png"),require("./Pfizer.png");var sH,lH,cH,uH,pH,dH,fH,hH,mH,vH,xH,gH,bH,yH,wH,CH,EH,OH,DH,SH,kH,TH,jH,MH,AH,NH,RH,PH,BH,FH,LH,_H,IH,$H,zH,VH,WH,UH,HH,qH,XH={id:"331258c2-da09-46e2-b79b-1e1dec021837",instance:"container",type:"form",config:{props:{formProps:{mode:"onTouched"},styles:{display:"flex",flexDirection:"column",gap:"24px",padding:"16px"}}},items:[{id:"5609bb9c-600f-41cd-b878-4f4946e79d52",instance:"molecule",type:"input_field",attributes:{label:{attributeType:"text",text:'[{"type":"paragraph","children":[{"text":"Input Field Title"}]}]',isRichText:!0},required:{attributeType:"boolean",value:!0},inputType:{attributeType:"select",options:[{id:"any",label:"Any"},{id:"numerical",label:"Numerical"},{id:"text",label:"Text"},{id:"email",label:"Email"},{id:"phone-number",label:"Phone Number"}],value:"numerical"}},config:{props:{state:"default",name:"inputField",labelsProps:{tooltipText:"Tooltip text"}}}},{instance:"molecule",type:"select_field",attributes:{label:{attributeType:"text",text:'[{"type":"paragraph","children":[{"text":"Select Field Title"}]}]',isRichText:!0},required:{attributeType:"boolean",value:!0},options:{attributeType:"iterable",options:[{id:"label-1",label:'[{"type":"paragraph","children":[{"text":"First Option"}]}]'},{id:"label-2",label:'[{"type":"paragraph","children":[{"text":"Second Option"}]}]'},{id:"1689153736917",label:'[{"type":"paragraph","children":[{"text":"3rd Option"}]}]'}]}},config:{props:{state:"default",name:"selectField",labelsProps:{tooltipText:"Tooltip text"}}},id:"9b2f7c20-8884-473b-ba5f-edb69cbeea05"},{instance:"molecule",type:"radio_button_field",attributes:{label:{attributeType:"text",text:'[{"type":"paragraph","children":[{"text":"Radio Button Field Title"}]}]',isRichText:!0},required:{attributeType:"boolean",value:!0},options:{attributeType:"iterable",options:[{id:"label-1",label:'[{"type":"paragraph","children":[{"text":"First Option"}]}]'},{id:"label-2",label:'[{"type":"paragraph","children":[{"text":"Second Option"}]}]'},{id:"1689153736917",label:'[{"type":"paragraph","children":[{"text":"3rd Option"}]}]'}]}},config:{props:{state:"default",name:"radioButtonField",labelsProps:{tooltipText:"Tooltip text"},radioButtonsProps:{internalConfig:{buttonOptionSpacing:"XS"}}}},id:"9b2f7c20-8884-473b-ba5f-edb69cbeea05"},{instance:"molecule",type:"checkbox_field",attributes:{label:{attributeType:"text",text:'[{"type":"paragraph","children":[{"text":"Checkbox Field Title"}]}]',isRichText:!0},required:{attributeType:"boolean",value:!0},options:{attributeType:"iterable",options:[{id:"checkbox_1",label:'[{"type":"paragraph","children":[{"text":"Default checkbox option"}]}]'},{id:"checkbox_2",label:'[{"type":"paragraph","children":[{"text":"Error checkbox option"}]}]'},{id:"checkbox_3",label:'[{"type":"paragraph","children":[{"text":"Disable checkbox option"}]}]'}]}},config:{props:{state:"default",name:"checkboxField",labelsProps:{tooltipText:"Checkbox tooltip text"},checkboxesProps:{isRichText:!0,internalConfig:{buttonOptionSpacing:"M"}}}},id:"9b2f7c20-8884-473b-ba5f-edb69cbeea09"},{id:"e940fff4-fb98-4262-b8bf-b10f23ba9eab",instance:"molecule",metadata:{},form:null,type:"button",attributes:{title:{id:"test",isRichText:!0,attributeType:"text",text:'[{"type":"paragraph","children":[{"text":"Submit"}]}]'},action:{action:{type:"popup"}}},config:{props:{type:"submit",fullWidth:!1}}},{id:"e940fff4-fb98-4262-b8bf-b10f23ba9eaa",instance:"molecule",type:"text",attributes:{text:{isRichText:!0,text:'[{\\"type\\":\\"paragraph\\",\\"children\\":[{\\"text\\":\\"Hello World \\"}]}]',attributeType:"text"},seoStyle:{attributeType:"select",value:"h1",options:[{id:"h1",label:"H1"}]}},config:{props:{variant:"custom",styles:{color:"red","font-size":"32px"}}}}]},GH=function(e){var t=window.location,n=t.host,o=t.protocol;return"".concat(o,"//").concat(n,"/").concat(e)},YH=function(e){var n,o,r=e.type,i=e.config,a=e.attributes,s=e.tabsProps,l=e.form,c=e.id,u=zO(),p=u.setModalVisible,v=u.setDrawerVisible,x=u.setActionContent;switch(r){case"text":var g=null===(n=null==a?void 0:a.seoStyle)||void 0===n?void 0:n.value,b=i.props;return t.jsx(VO,d({},a.text,b,{seoTag:g}));case"button":var y=a||{},w=y.title.text,C=y.action,E=(i||{}).props,O=E.variant,D=f(E,["variant"]),S=(null==C?void 0:C.action)||{},k=S.link;S.popup,S.drawer;var T=S.download,j={link:function(){if(null==k?void 0:k.type){var e=k.type,t=k[e]||"";"internalLink"===e?function(e){var t=GH(e);window.open(t,"_blank")}(t):window.open(t,"_blank")}},popup:function(){p(!0),x(XH)},drawer:function(){v(!0),x(XH)},download:function(){return T?(e=T.url,t=T.name,void 0===e&&(e=""),void 0===t&&(t="Downloaded file"),h(void 0,void 0,void 0,(function(){var n,o,r,i;return m(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),[4,fetch(e)];case 1:return[4,a.sent().blob()];case 2:return n=a.sent(),o=URL.createObjectURL(n),(r=document.createElement("a")).href=o,r.download=t,r.click(),URL.revokeObjectURL(o),[3,4];case 3:return i=a.sent(),fG({message:"Failed to download the file: ".concat(i),type:"error"}),[3,4];case 4:return[2]}}))}))):fG({message:"File not found to download",type:"warning"});var e,t},submit:function(){return h(void 0,void 0,void 0,(function(){return m(this,(function(e){switch(e.label){case 0:return[4,null==l?void 0:l.trigger()];case 1:return e.sent(),[2]}}))}))},reset:function(){return fG({message:"Reset action triggerred",type:"warning"})},destroy:function(){return fG({message:"Destroy action triggerred",type:"warning"})}};return t.jsx(eH,d({text:w,isRichText:!0},D,{variant:O,elementId:c,link:(null==k?void 0:k[null==k?void 0:k.type])||"",onClick:j[null===(o=null==C?void 0:C.action)||void 0===o?void 0:o.type],href:"text"===O?(null==k?void 0:k[null==k?void 0:k.type])||"":void 0}));case"image":var M=a.image.imageSource,A=a.link,N=a.altText;b=i.props;return t.jsx(u_,d({id:c,src:M,link:GH(A[A.type]||""),altText:null==N?void 0:N.text},b));case"video":var R=a.video.videoSource,P=a.enableCoverImage,B=a.autoPlayVideo;M=a.coverImage.imageSource,b=i.props;return t.jsx(a_,d({src:R,enableCoverImage:P.value,autoplay:B.value,coverImageSrc:M},b));case"header_tab_group":var F=s||{},L=F.tabs,_=F.onTabChange,I=F.activeTabKey,$=(b=i.props,i.wide),z=i.compact;return t.jsx(ZF,d({},b,{wide:$,compact:z,tabs:L||[],activeTabKey:I||"",onTabChange:_}));case"input_field":var V=i.props,W=V.inputProps,U=V.labelsProps,H=f(V,["inputProps","labelsProps"]),q=(w=a.label.text,a.inputType),X=(K=a.required).value;return t.jsx(mk,d({},H,{required:X,optional:!X,inputProps:d(d({},W),{type:q.value,placeholder:(null==W?void 0:W.placeholder)||"Enter a placeholder"}),labelsProps:d({label:w,isRichText:!0,ruleLabel:X?"REQUIRED":"OPTIONAL"},U),control:null==l?void 0:l.control}));case"select_field":var G=i.props,Y=G.selectProps,K=(U=G.labelsProps,H=f(G,["selectProps","labelsProps"]),w=a.label.text,a.required),Z=a.options.options;X=K.value;return t.jsx(kk,d({},H,{control:null==l?void 0:l.control,selectProps:d(d({},Y),{options:Z,isRichText:!0,placeholder:(null==Y?void 0:Y.placeholder)||"Enter a placeholder"}),required:X,optional:!X,labelsProps:d(d({},U),{label:w,isRichText:!0,ruleLabel:X?"REQUIRED":"OPTIONAL"})}));case"radio_button_field":var J=i.props,Q=J.radioButtonsProps,ee=(U=J.labelsProps,H=f(J,["radioButtonsProps","labelsProps"]),w=a.label.text,K=a.required,a.options.options);X=K.value;return t.jsx(nL,d({},H,{control:null==l?void 0:l.control,radioButtonsProps:d(d({},Q),{options:ee}),required:X,optional:!X,labelsProps:d(d({},U),{label:w,isRichText:!0,ruleLabel:X?"REQUIRED":"OPTIONAL"})}));case"checkbox_field":var te=i.props,ne=te.checkboxesProps,oe=(U=te.labelsProps,H=f(te,["checkboxesProps","labelsProps"]),w=a.label.text,K=a.required,a.options.options);X=K.value;return t.jsx(Dk,d({},H,{control:null==l?void 0:l.control,checkboxesProps:d(d({},ne),{options:oe}),required:X,optional:!X,labelsProps:d(d({},U),{label:w,isRichText:!0,ruleLabel:X?"REQUIRED":"OPTIONAL"})}));default:return t.jsx(t.Fragment,{children:"There is no such type of molecule yet."})}},KH=function(e){var n,o=e.item,r=e.tabsProps,i=yD();return"molecule"===o.instance?t.jsx(YH,d({},o,{tabsProps:r,form:i})):o.items&&o.items.length?t.jsx(rH,d({type:o.type},o.config,{children:null===(n=o.items)||void 0===n?void 0:n.map((function(e){return t.jsx(KH,{item:e,tabsProps:r},e.id)}))})):null},ZH=function(e){var o=e.children,r=n.useState(XH),i=r[0],a=r[1],s=n.useState(!1),l=s[0],c=s[1],u=n.useState(!1),p=u[0],f=u[1],h=function(){c(!1),f(!1)},m=n.useMemo((function(){return{actionContent:i,setActionContent:a,isModalVisible:l,setModalVisible:c,isDrawerVisible:p,setDrawerVisible:f}}),[i,l,p]),v=t.jsx(KH,{item:i});return t.jsxs($O.Provider,d({value:m},{children:[t.jsx(tH,d({open:l,onClose:h},{children:v})),t.jsx(Zk,d({open:p,onClose:h,anchor:"right"},{children:v})),o]}))},JH=D.colors,QH=D.sizes,eq=e.css(sH||(sH=x(["\n .rc-notification {\n transform: translate(-50%, 0);\n width: max-content;\n max-width: 90%;\n &-notice {\n margin: ","px 0;\n border-radius: 100px;\n padding: ","px;\n padding-right: ","px;\n &-close {\n top: 15px;\n right: 20px;\n opacity: 0.8;\n &:hover {\n opacity: 1;\n }\n }\n &.toast-success {\n background-color: ",";\n }\n &.toast-error {\n background-color: ",";\n }\n &.toast-warning {\n background-color: ",";\n }\n &.toast-infoTierOne {\n background-color: ",";\n }\n &.toast-infoTierTwo {\n background-color: ",";\n }\n }\n &-fade {\n overflow: hidden;\n transition: all 0.3s;\n }\n\n &-fade-appear-start {\n transform: translateY(-100%);\n opacity: 0;\n }\n\n &-fade-appear-active {\n transform: translateY(0);\n opacity: 1;\n }\n }\n"],["\n .rc-notification {\n transform: translate(-50%, 0);\n width: max-content;\n max-width: 90%;\n &-notice {\n margin: ","px 0;\n border-radius: 100px;\n padding: ","px;\n padding-right: ","px;\n &-close {\n top: 15px;\n right: 20px;\n opacity: 0.8;\n &:hover {\n opacity: 1;\n }\n }\n &.toast-success {\n background-color: ",";\n }\n &.toast-error {\n background-color: ",";\n }\n &.toast-warning {\n background-color: ",";\n }\n &.toast-infoTierOne {\n background-color: ",";\n }\n &.toast-infoTierTwo {\n background-color: ",";\n }\n }\n &-fade {\n overflow: hidden;\n transition: all 0.3s;\n }\n\n &-fade-appear-start {\n transform: translateY(-100%);\n opacity: 0;\n }\n\n &-fade-appear-active {\n transform: translateY(0);\n opacity: 1;\n }\n }\n"])),QH.S+QH.XS,QH.S,QH.M+QH.XS,JH.greenTint,JH.redTint,JH.yellowTint,JH.blueTint,E(JH.gray2)),tq=e.createGlobalStyle(lH||(lH=x(["\n * {\n font-family: 'Rubik', sans-serif;\n box-sizing: border-box;\n }\n body {\n margin: 0;\n ",";\n input:-webkit-autofill {\n -webkit-background-clip: text;\n }\n }\n \n h1,h2,h3,h4,h5,h6,p, ol, ul {\n padding: 0;\n margin: 0;\n }\n"],["\n * {\n font-family: 'Rubik', sans-serif;\n box-sizing: border-box;\n }\n body {\n margin: 0;\n ",";\n input:-webkit-autofill {\n -webkit-background-clip: text;\n }\n }\n \n h1,h2,h3,h4,h5,h6,p, ol, ul {\n padding: 0;\n margin: 0;\n }\n"])),eq),nq=Rs(),oq=function(e){var t,o,r,i,a=(t=e,o=D.devices,r=Object.keys(o),i=r[r.indexOf(t)+1],"xl"===t?"(min-width: ".concat(o[t]," )"):"(min-width: ".concat(o[t],") and (max-width: ").concat(o[i]||o[t],")")),s=function(){return"undefined"!=typeof window&&window.matchMedia(a).matches},l=n.useState(s()),c=l[0],u=l[1],p=function(){return u(s())};return n.useEffect((function(){var e=window.matchMedia(a);return p(),e.addEventListener("change",p),function(){e.removeEventListener("change",p)}}),[a]),c},rq=function(e){var n=e.fill,o=void 0===n?D.colors.gray5:n,r=e.color,i=void 0===r?D.colors.gray3:r,a=e.size,s=void 0===a?33:a,l=f(e,["fill","color","size"]);return t.jsx("svg",d({width:s,height:s,viewBox:"0 0 33 33",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l,{children:t.jsx("path",{d:"M21.734 24.2969L16.1687 20.8186L10.6035 24.2969V8.99253C10.6035 8.80803 10.6768 8.63109 10.8073 8.50063C10.9377 8.37017 11.1147 8.29688 11.2992 8.29688H21.0383C21.2228 8.29688 21.3997 8.37017 21.5302 8.50063C21.6607 8.63109 21.734 8.80803 21.734 8.99253V24.2969Z",stroke:i,fill:o,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}))},iq=function(e){var n=e.color,o=void 0===n?D.colors.gray1:n,r=e.size,i=void 0===r?32:r;return t.jsx("svg",d({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",style:w(i)},{children:t.jsx("path",{d:"M24 12.5417L16 20.5417L8 12.5417",stroke:o,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}))},aq=function(e){var n=e.color,o=void 0===n?D.colors.gray1:n,r=f(e,["color"]);return t.jsx("svg",d({width:18,height:11,fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{children:t.jsx("path",{d:"m1 9.5 8-8 8 8",stroke:o,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})}))},sq=function(e){var n=e.color,o=void 0===n?D.colors.blue:n,r=e.size,i=void 0===r?16:r,a=f(e,["color","size"]);return t.jsx("svg",d({width:17,height:16,viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:w(i)},a,{children:t.jsx("path",{d:"M10.7693 12L6.76929 8L10.7693 4",stroke:o,strokeLinecap:"round",strokeLinejoin:"round"})}))},lq=function(e){var n=e.color,o=void 0===n?D.colors.gray1:n,r=e.size,i=void 0===r?33:r,a=f(e,["color","size"]);return t.jsx("svg",d({width:"33",height:"33",viewBox:"0 0 33 33",fill:"none"},a,{style:w(i)},{children:t.jsx("path",{d:"M12.9968 8.5L20.9968 16.5L12.9968 24.5",stroke:o,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}))},cq=function(e){var n=e.size,o=void 0===n?16:n,r=e.color,i=void 0===r?D.colors.black:r;return t.jsx("svg",d({width:16,height:16,viewBox:"0 0 16 16",fill:"none",style:w(o)},{children:t.jsx("path",{d:"M12 5.83331L6.66667 11.1666L4 8.49998",stroke:i,strokeLinecap:"round",strokeLinejoin:"round"})}))},uq=function(e){var n=e.size,o=void 0===n?16:n,r=e.color,i=void 0===r?D.colors.black:r;return t.jsxs("svg",d({pointerEvents:"none",width:o,height:o,viewBox:"0 0 ".concat(o," ").concat(o),fill:"none"},{children:[t.jsx("path",{d:"M8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12Z",stroke:i,strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M7.6665 7.66663H7.99984V9.99996H8.33317",stroke:i,strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M7.91667 6.58333C8.14679 6.58333 8.33333 6.39679 8.33333 6.16667C8.33333 5.93655 8.14679 5.75 7.91667 5.75C7.68655 5.75 7.5 5.93655 7.5 6.16667C7.5 6.39679 7.68655 6.58333 7.91667 6.58333Z",fill:i})]}))},pq=function(e){var n=e.size,o=void 0===n?32:n,r=e.color,i=void 0===r?D.colors.gray1:r;return t.jsx("svg",d({width:32,height:32,viewBox:"0 0 32 32",style:w(o),fill:"none"},{children:t.jsx("path",{d:"M8.68138 8.45905H23.3186C23.4508 8.45909 23.5802 8.49758 23.6909 8.56983C23.8016 8.64208 23.8889 8.74498 23.9422 8.86598C23.9955 8.98698 24.0124 9.12086 23.991 9.25132C23.9695 9.38177 23.9105 9.50317 23.8213 9.60072L18.2237 15.7606C18.1072 15.8853 18.0431 16.0501 18.0448 16.2207V21.043C18.0458 21.1563 18.0183 21.268 17.9646 21.3677C17.911 21.4675 17.8331 21.5522 17.7381 21.6138L15.0117 23.4286C14.9094 23.4959 14.7909 23.5345 14.6686 23.5402C14.5462 23.5459 14.4246 23.5186 14.3165 23.461C14.2084 23.4035 14.1178 23.3179 14.0542 23.2132C13.9907 23.1086 13.9565 22.9887 13.9552 22.8663V16.2207C13.9569 16.0501 13.8928 15.8853 13.7763 15.7606L8.1787 9.60072C8.08946 9.50317 8.03051 9.38177 8.00905 9.25132C7.98758 9.12086 8.00451 8.98698 8.05779 8.86598C8.11107 8.74498 8.19838 8.64208 8.3091 8.56983C8.41982 8.49758 8.54917 8.45909 8.68138 8.45905V8.45905Z",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}))},dq=function(e){var n=e.size,o=void 0===n?18:n,r=e.color,i=void 0===r?D.colors.gray2:r;return t.jsxs("svg",d({width:32,height:32,viewBox:"0 0 32 32",style:w(o)},{children:[t.jsx("path",{d:"M24 8L8 24",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M24 24L8 8",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},fq=function(e){var n=e.color,o=void 0===n?D.colors.primary:n,r=e.size,i=void 0===r?32:r;return t.jsxs("svg",d({width:"33",height:"33",viewBox:"0 0 33 33",fill:"none",style:w(i)},{children:[t.jsx("path",{d:"M16.8203 11.111C11.106 11.111 8.82031 16.2539 8.82031 16.2539C8.82031 16.2539 11.106 21.3967 16.8203 21.3967C22.5346 21.3967 24.8203 16.2539 24.8203 16.2539C24.8203 16.2539 22.5346 11.111 16.8203 11.111Z",stroke:o,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M16.8205 19.111C18.3985 19.111 19.6777 17.8318 19.6777 16.2539C19.6777 14.6759 18.3985 13.3967 16.8205 13.3967C15.2426 13.3967 13.9634 14.6759 13.9634 16.2539C13.9634 17.8318 15.2426 19.111 16.8205 19.111Z",stroke:o,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},hq=function(e){var n=e.color,o=void 0===n?D.colors.gray1:n,r=e.size,i=void 0===r?32:r;return t.jsxs("svg",d({width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",style:w(i)},{children:[t.jsx("path",{d:"M11.8667 7.4231L12.8204 9.06807",stroke:o,strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M9.91357 8.33929L10.2093 10.0176",stroke:o,strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M7.72732 8.33508L7.43164 10.0175",stroke:o,strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M5.77398 7.4231L4.82031 9.07639",stroke:o,strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M4.82422 6.49023C5.52385 7.35645 6.80651 8.4517 8.82212 8.4517C10.8377 8.4517 12.1204 7.35645 12.82 6.49023",stroke:o,strokeLinecap:"round",strokeLinejoin:"round"})]}))},mq=function(e){var n=e.color,o=void 0===n?"#F20089":n,r=e.size,i=void 0===r?44:r;return t.jsxs("svg",d({width:i,height:i,viewBox:"0 0 ".concat(i," ").concat(i),fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[t.jsx("path",{d:"M3.90742 14.3118C2.63783 12.9106 1.95569 11.0749 2.00223 9.18463C2.04877 7.29439 2.82043 5.49444 4.15743 4.15743C5.49444 2.82043 7.29439 2.04877 9.18463 2.00223C11.0749 1.95569 12.9106 2.63783 14.3118 3.90742L40.0926 29.6882C41.3622 31.0894 42.0443 32.9251 41.9978 34.8154C41.9512 36.7056 41.1796 38.5056 39.8426 39.8426C38.5056 41.1796 36.7056 41.9512 34.8154 41.9978C32.9251 42.0443 31.0894 41.3622 29.6882 40.0926L3.90742 14.3118Z",stroke:o,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M29.6882 3.90742C31.0894 2.63783 32.9251 1.95569 34.8154 2.00223C36.7056 2.04877 38.5056 2.82043 39.8426 4.15743C41.1796 5.49444 41.9512 7.29439 41.9978 9.18463C42.0443 11.0749 41.3622 12.9106 40.0926 14.3118L14.3118 40.0926C12.9106 41.3622 11.0749 42.0443 9.18463 41.9978C7.29439 41.9512 5.49444 41.1796 4.15743 39.8426C2.82043 38.5056 2.04877 36.7056 2.00223 34.8154C1.95569 32.9251 2.63783 31.0894 3.90742 29.6882L29.6882 3.90742Z",stroke:o,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{opacity:"0.5",d:"M22 22.9208C22.5085 22.9208 22.9208 22.5086 22.9208 22.0001C22.9208 21.4916 22.5085 21.0793 22 21.0793C21.4915 21.0793 21.0793 21.4916 21.0793 22.0001C21.0793 22.5086 21.4915 22.9208 22 22.9208Z",stroke:o,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M22 24.7622C23.5256 24.7622 24.7622 23.5256 24.7622 22C24.7622 20.4745 23.5256 19.2378 22 19.2378C20.4745 19.2378 19.2378 20.4745 19.2378 22C19.2378 23.5256 20.4745 24.7622 22 24.7622Z",fill:"#F20089"})]}))},vq=function(e){var n=e.size,o=void 0===n?16:n,r=e.color,i=void 0===r?D.colors.gray2:r;return t.jsx("svg",d({width:o,height:o,viewBox:"0 0 ".concat(o," ").concat(o),fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:t.jsx("path",{d:"M4 8H12",stroke:i,strokeLinecap:"round",strokeLinejoin:"round"})}))},xq=function(e){var n=e.size,o=void 0===n?18:n,r=e.color,i=void 0===r?"#fff":r;return t.jsx("svg",d({width:18,height:18,viewBox:"0 0 18 18",fill:"none",style:w(o)},{children:t.jsx("path",{d:"M5.325 17h5.333M2.017 7a5.992 5.992 0 0 1 6.025-6c3.3.025 5.941 2.767 5.941 6.075v.592c0 2.983.625 4.716 1.175 5.666a.666.666 0 0 1-.575 1H1.417a.668.668 0 0 1-.575-1c.55-.95 1.175-2.683 1.175-5.666V7Z",stroke:i,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})}))},gq=function(e){var n=e.size,o=void 0===n?18:n,r=e.color,i=void 0===r?D.colors.yellowShade:r;return t.jsxs("svg",d({width:18,height:18,viewBox:"0 0 18 18",fill:"none",style:w(o)},{children:[t.jsx("path",{d:"M9 6.46v3.08M7.938 1.535 1.165 13.234a1.232 1.232 0 0 0 1.062 1.847h13.546a1.232 1.232 0 0 0 1.062-1.847L10.062 1.535a1.224 1.224 0 0 0-2.124 0v0Z",stroke:i,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M9 13.08a.77.77 0 1 0 0-1.54.77.77 0 0 0 0 1.54Z",fill:i})]}))},bq=function(e){var n=e.size,o=void 0===n?27:n,r=e.color,i=void 0===r?D.colors.gray1:r;return t.jsx("svg",d({width:18,height:27,fill:"none",viewBox:"0 0 18 27",style:w(o)},{children:t.jsx("path",{d:"M14.359 1.254H3.282c-1.02 0-1.846.826-1.846 1.846v20.308c0 1.02.826 1.846 1.846 1.846h11.077c1.02 0 1.846-.827 1.846-1.846V3.1c0-1.02-.827-1.846-1.846-1.846ZM1.436 4.946h14.769M1.436 21.562h14.769",stroke:i,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})}))},yq=function(e){var n=e.size,o=void 0===n?27:n,r=e.color,i=void 0===r?D.colors.gray1:r;return t.jsxs("svg",d({width:27,height:21,viewBox:"0 0 27 21",fill:"none",style:w(o)},{children:[t.jsx("path",{d:"M1.82 1.254h24v17a1 1 0 0 1-1 1h-22a1 1 0 0 1-1-1v-17Z",stroke:i,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"m25.82 1.254-12 11-12-11",stroke:i,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]}))},wq=function(e){var n=e.size,o=void 0===n?18:n,r=e.color,i=void 0===r?D.colors.gray2:r;return t.jsxs("svg",d({width:18,height:18,viewBox:"0 0 18 18",fill:"none",style:w(o)},{children:[t.jsx("path",{d:"M8.65273 12.1304H5.87012V9.34783L14.2179 1L17.0006 3.78261L8.65273 12.1304Z",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M12.1318 3.08698L14.9144 5.86958",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M16.3053 8.65217V16.3043C16.3053 16.4888 16.232 16.6658 16.1016 16.7962C15.9711 16.9267 15.7942 17 15.6097 17H1.69663C1.51213 17 1.33519 16.9267 1.20473 16.7962C1.07427 16.6658 1.00098 16.4888 1.00098 16.3043V2.3913C1.00098 2.2068 1.07427 2.02986 1.20473 1.8994C1.33519 1.76894 1.51213 1.69565 1.69663 1.69565H9.3488",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},Cq=function(e){var n=e.size,o=void 0===n?18:n,r=e.color,i=void 0===r?D.colors.gray2:r;return t.jsxs("svg",d({width:18,height:18,viewBox:"0 0 18 18",fill:"none",style:w(o)},{children:[t.jsx("path",{d:"M17.001 5.66364V16.2727C17.001 16.4656 16.9243 16.6506 16.788 16.787C16.6516 16.9234 16.4666 17 16.2737 17H1.72825C1.53536 17 1.35038 16.9234 1.21399 16.787C1.0776 16.6506 1.00098 16.4656 1.00098 16.2727V1.72728C1.00098 1.53439 1.0776 1.34941 1.21399 1.21302C1.35038 1.07663 1.53536 1 1.72825 1H12.3373C12.4318 0.999673 12.5253 1.01797 12.6127 1.05385C12.7001 1.08973 12.7795 1.14248 12.8464 1.2091L16.7919 5.15455C16.8585 5.22149 16.9112 5.30091 16.9471 5.38827C16.983 5.47563 17.0013 5.5692 17.001 5.66364V5.66364Z",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M4.6377 17V11.1819C4.6377 10.989 4.71432 10.804 4.85071 10.6676C4.9871 10.5312 5.17208 10.4546 5.36497 10.4546H12.6377C12.8306 10.4546 13.0156 10.5312 13.152 10.6676C13.2883 10.804 13.365 10.989 13.365 11.1819V17",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M11.1827 3.90906H6.0918",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},Eq=function(e){var n=e.size,o=void 0===n?19:n,r=e.color,i=void 0===r?D.colors.gray2:r;return t.jsxs("svg",d({width:19,height:14,viewBox:"0 0 19 14",fill:"none",style:w(o)},{children:[t.jsx("path",{d:"M1.28174 7.14917H17.2817",stroke:i,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M1.28174 1.33105H17.2817",stroke:i,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M1.28174 12.9675H17.2817",stroke:i,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]}))},Oq=function(e){var n=e.size,o=void 0===n?48:n,r=e.color,i=void 0===r?D.colors.gray4:r;return t.jsxs("svg",d({width:"49",height:"49",viewBox:"0 0 49 49",fill:"none",style:w(o)},{children:[t.jsx("path",{d:"M24.457 40.4443C33.2936 40.4443 40.457 33.2809 40.457 24.4443C40.457 15.6078 33.2936 8.44434 24.457 8.44434C15.6205 8.44434 8.45703 15.6078 8.45703 24.4443C8.45703 33.2809 15.6205 40.4443 24.457 40.4443Z",stroke:i,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M29.7827 24.4442L21.7827 19.1108V29.7775L29.7827 24.4442Z",stroke:i,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},Dq=function(e){var n=e.size,o=void 0===n?32:n,r=e.color,i=void 0===r?D.colors.gray3:r,a=f(e,["size","color"]);return t.jsxs("svg",d({width:32,height:32,viewBox:"0 0 32 32",style:w(o),fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{children:[t.jsx("path",{d:"M15 22.0391C18.866 22.0391 22 18.9051 22 15.0391C22 11.1731 18.866 8.03906 15 8.03906C11.134 8.03906 8 11.1731 8 15.0391C8 18.9051 11.134 22.0391 15 22.0391Z",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M19.9502 19.9891L24.0002 24.0391",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},Sq=function(e){var n=e.color,o=void 0===n?D.colors.gray1:n,r=f(e,["color"]);return t.jsxs("svg",d({width:"19",height:"15",viewBox:"0 0 19 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{children:[t.jsx("path",{d:"M1.33337 7.5H17.3334",stroke:o,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M10.7878 0.95459L17.3332 7.50004L10.7878 14.0455",stroke:o,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},kq={ArrowRight:Sq,Bell:xq,Bookmark:rq,CaretDown:iq,CaretLeft:sq,CaretRight:lq,CaretUp:aq,Check:cq,Close:dq,Edit:wq,Filter:pq,Hide:hq,Info:uq,InfoBoxIcon:mq,Mail:yq,Menu:Eq,Minus:vq,Mobile:bq,Play:Oq,Save:Cq,Search:Dq,View:fq,Warning:gq},Tq=function(n){var o=n.name,r=n.color,i=f(n,["name","color"]),a=(e.useTheme()||D).colors,s=kq[o];return t.jsx(s,d({},i,{color:a[r]||r}))},jq=s.default.div(uH||(uH=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.sizes,o=t.height,r=void 0===o?0:o,i=t.width,a=void 0===i?0:i,s=t.layout,l=void 0===s?"div":s;return e.css(cH||(cH=x(["\n height: ","px;\n width: ","px;\n display: ",";\n "],["\n height: ","px;\n width: ","px;\n display: ",";\n "])),"string"==typeof r?n[r]:r,"string"==typeof a?n[a]:a,"span"===l?"inline-flex":"block")})),Mq=function(e){var n=e.children,o=e.seoTag,r=void 0===o?"div":o,i=f(e,["children","seoTag"]);return t.jsx(Aq,d({},i,{as:r},{children:n}))},Aq=s.default.div(fH||(fH=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.fonts,i=t.layout,a=void 0===i?"div":i,s=t.variant,l=void 0===s?"L":s,c=t.styles,u=t.color,p=t.type,d=t.numberOfLines,f=t.textAlign,h=void 0===f?"left":f,m=t.behaveAs,v=void 0===m?"text":m;return e.css(dH||(dH=x(["\n display: ",";\n color: ",";\n ","\n ",";\n ",";\n text-align: ",";\n &:hover {\n cursor: ",";\n }\n "],["\n display: ",";\n color: ",";\n ","\n ",";\n ",";\n text-align: ",";\n &:hover {\n cursor: ",";\n }\n "])),"span"===a?"inline-flex":"block",o[null!=u?u:p]||u||o.gray1,r[l],c,function(t){return e.css(pH||(pH=x(["\n overflow: ",";\n text-overflow: ellipsis;\n display: ",";\n -webkit-line-clamp: ","; /* number of lines to show */\n line-clamp: ",";\n -webkit-box-orient: vertical;\n white-space: pre-wrap;\n word-wrap: break-word;\n"],["\n overflow: ",";\n text-overflow: ellipsis;\n display: ",";\n -webkit-line-clamp: ","; /* number of lines to show */\n line-clamp: ",";\n -webkit-box-orient: vertical;\n white-space: pre-wrap;\n word-wrap: break-word;\n"])),t?"hidden":"unset",t?"-webkit-box":"unset",t?"".concat(t):"unset",t?"".concat(t):"unset")}(d),h,"button"===v?"pointer":"auto")})),Nq=function(e){var n=e.text;return t.jsxs(t.Fragment,{children:[t.jsx(jq,{height:"XS"}),t.jsx(Mq,d({variant:"XS",color:"red"},{children:n}))]})},Rq={selected:"primary",disabled:"gray4",default:"white",error:"white"},Pq={selected:"primary",disabled:"gray4",default:"gray3",error:"red"},Bq={selected:"white",disabled:"gray2",default:"white",error:"red"},Fq={selected:"gray1",disabled:"gray3",default:"gray1",error:"red"},Lq=function(o){var r=o.id,i=o.onClick,a=o.label,s=o.isError,l=o.disabled,c=o.isEditMode,u=void 0===c||c,p=o.isSelected,f=void 0!==p&&p,h=o.isRichText,m=o.internalConfig,v=n.useState(!1),g=v[0],b=v[1],y=function(t,n,o){var r=o||{},i=r.selectedCheckboxBackgroundColor,a=void 0===i?Rq.selected:i,s=r.selectedCheckboxIconColor,l=void 0===s?Bq.default:s,c=r.styles,u=r.wrapperStyles,p=r.textPadding,d=void 0===p?0:p,f=r.buttonPadding,h=void 0===f?0:f,m="selected"===n?D.colors[l]||l:D.colors[Bq[n]||Bq.default],v=e.css((function(e){var o=e.theme.colors;return"\n border-color: ".concat(t?o.gray2:o[Pq[n]||Pq.default],";\n background-color: ").concat("selected"===n?o[a]||a:o[Rq[n]||Rq.default],";\n ")})),g=e.css((function(e){var t=e.theme.colors;return"\n color: ".concat(t[Fq[n]||Fq.default],";\n padding: ").concat(d,"px; \n ")}));return{checkboxIconWrapperColor:v,checkboxIconColor:m,checkboxTextStyles:g,checkboxWrapperStyles:e.css(hH||(hH=x(["\n padding: ","px;\n ","\n ","\n "],["\n padding: ","px;\n ","\n ","\n "])),h,c,u)}}(g,s?"error":l?"disabled":f?"selected":"default",m),w=y.checkboxIconWrapperColor,C=y.checkboxIconColor,E=y.checkboxWrapperStyles,O=y.checkboxTextStyles,S=a?t.jsx(zq,{children:h?t.jsx(GU,{textStyles:O,value:a,font:"M"}):t.jsx(Vq,d({$styles:O,behaveAs:l?"text":"button",variant:"M"},{children:a}))}):null;return t.jsx(t.Fragment,{children:t.jsxs(_q,d({activeOpacity:.8,disabled:l,$styles:E},!l&&u&&{onClick:function(){return i(r)},onMouseEnter:function(){return b(!0)},onMouseLeave:function(){return b(!1)}},{children:[t.jsx($q,d({$styles:w},{children:f&&t.jsx(Iq,{color:C,name:"Check"})})),t.jsx(jq,{width:"S"}),S]}))})},_q=s.default(y)(mH||(mH=x(["\n display: flex;\n width: max-content;\n ","\n"],["\n display: flex;\n width: max-content;\n ","\n"])),(function(e){return e.$styles})),Iq=s.default(Tq)(vH||(vH=x(["\n display: flex;\n"],["\n display: flex;\n"]))),$q=s.default.div(gH||(gH=x(["\n display: flex;\n border-width: 1px;\n align-items: center;\n justify-content: center;\n border-style: solid;\n ","\n"],["\n display: flex;\n border-width: 1px;\n align-items: center;\n justify-content: center;\n border-style: solid;\n ","\n"])),(function(t){var n=t.theme.sizes,o=t.$styles;return e.css(xH||(xH=x(["\n border-radius: ","px;\n ",";\n ","\n "],["\n border-radius: ","px;\n ",";\n ","\n "])),n.XS,w(n.M),o)})),zq=s.default.div(bH||(bH=x([""],[""]))),Vq=s.default(Mq)(yH||(yH=x(["\n ","\n"],["\n ","\n"])),(function(e){return e.$styles})),Wq=function(e){return e.map((function(e){return m$.string(e)})).join("\n")},Uq=s.default.div(wH||(wH=x(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),(function(e){var t=e.theme,n=t.colors,o=t.fonts,r=t.sizes,i=e.hasError,a=e.hasValue,s=e.disabled,l=e.isOpen;return"\n .select-wrapper {\n text-align: left;\n border: 1px solid ".concat(n.gray3,";\n position: relative;\n border-radius: ").concat(r.S,"px;\n &:hover,\n :active,\n :focus {\n border-color: ").concat(n.gray2,";\n }\n\n .select-input {\n padding: 10px ").concat(r.M,"px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n user-select: none;\n cursor: pointer;\n\n .selected-text-value {\n ").concat(o.M,";\n color: ").concat(a?n.gray1:n.gray3,";\n }\n\n .icon-container {\n transition: transform 0.2s ease-in-out;\n transform: rotate(0deg);\n ").concat(l&&"transform: rotate(180deg);","\n }\n }\n\n ").concat(s&&"\n border-color: ".concat(n.gray4," !important;\n cursor: not-allowed;\n .select-input {\n background-color: ").concat(n.gray4,";\n pointer-events: none;\n .selected-text-value {\n color: ").concat(n.gray3,";\n }\n .icon-container {\n svg path {\n stroke: ").concat(n.gray3,";\n }\n }\n }\n "),"\n }\n ").concat(i&&"\n .select-wrapper {\n border-color: ".concat(n.red," !important;\n .select-input {\n .selected-text-value {\n color: ").concat(n.red,";\n }\n .icon-container {\n svg path {\n stroke: ").concat(n.red,";\n }\n }\n }\n }\n "),"\n ")}),(function(e){return e.$styles})),Hq=s.default.div(CH||(CH=x(["\n ",";\n"],["\n ",";\n"])),(function(e){var t=e.theme,n=t.colors,o=t.sizes;return"\n position: absolute;\n width: 100%;\n border-radius: ".concat(o.S,"px;\n padding: ").concat(o.L,"px ").concat(o.M,"px;\n box-shadow: 0 0 ").concat(o.XL,"px 0 #0000001a;\n overflow: auto;\n max-height: 150px;\n z-index: 10;\n transform: translateY(").concat(o.S,"px);\n background-color: ").concat(n.white,";\n ")})),qq=s.default.div(EH||(EH=x(["\n width: 100%;\n cursor: pointer;\n ",";\n"],["\n width: 100%;\n cursor: pointer;\n ",";\n"])),(function(e){var t=e.theme,n=t.sizes,o=t.colors,r=t.fonts,i=e.$selected;return"\n border-radius: ".concat(n.S,"px;\n &:hover {\n background-color: ").concat(o.gray5,";\n }\n padding: ").concat(n.S,"px ").concat(n.M,"px;\n ").concat(r.M,";\n color: ").concat(o.gray2,";\n ").concat(i&&"\n background-color: ".concat(o.gray4," !important;\n color: ").concat(o.black,";\n "),";\n ")})),Xq=function(t,n){void 0===n&&(n=!1);var o=t||{},r=o.horizontalPadding,i=void 0===r?0:r,a=o.verticalPadding,s=void 0===a?0:a,l=o.selectedTextColor,c=o.selectedTextFontSize,u=o.placeholderTextColor,p=o.placeholderTextFontSize,d=o.styles,f=o.wrapperStyles;return e.css(DH||(DH=x(["\n ",";\n "],["\n ",";\n "])),(function(t){var o=t.theme.colors;return e.css(OH||(OH=x(["\n .select-wrapper {\n .select-input {\n ",";\n .selected-text-value {\n ",";\n }\n ",";\n }\n ",";\n }\n "],["\n .select-wrapper {\n .select-input {\n ",";\n .selected-text-value {\n ",";\n }\n ",";\n }\n ",";\n }\n "])),s||i?"padding: ".concat(s,"px ").concat(i,"px;"):"",n?"\n ".concat(l?"color: ".concat(o[l]||l,";"):"",";\n ").concat(c?"font-size: ".concat(c,"px;"):"",";\n "):"\n ".concat(u?"color: ".concat(o[u]||u,";"):"",";\n ").concat(p?"font-size: ".concat(p,"px;"):"",";\n "),d,f)}))},Gq=function(e){var o=e.ref,r=e.onBlur,i=e.onChange,a=e.value,s=e.placeholder,l=e.options,c=void 0===l?[]:l,u=e.disabled,p=void 0!==u&&u,f=e.optionsPresentation,h=void 0!==f&&f,m=e.isError,v=e.selectInternalConfig,x=e.isRichText,g=void 0!==x&&x,b=n.useState(h),y=b[0],w=b[1],C=n.useState(a),E=C[0],O=C[1],D=c.find((function(e){return e.id===E}));n.useEffect((function(){var e=function(){return!h&&w(!1)};return window.addEventListener("click",e),function(){return window.removeEventListener("click",e)}}));var S=function(e){return e===E};return t.jsx(Uq,d({ref:o,tabIndex:0,onBlur:r,disabled:p,hasValue:!!D,isOpen:y,hasError:!!m,$styles:Xq(v,!!D)},{children:t.jsxs("div",d({className:"select-wrapper"},{children:[t.jsxs("div",d({className:"select-input",onClick:function(e){h||(e.stopPropagation(),w((function(e){return!e})))}},{children:[t.jsx("div",d({className:"selected-text-value"},{children:D?g?Wq(JSON.parse(D.label)):D.label:s})),t.jsx("div",d({className:"icon-container"},{children:t.jsx(Tq,{name:"CaretDown"})}))]})),y&&t.jsx(Hq,{children:c.map((function(e){var n=e.id,o=e.label;return t.jsx(qq,d({$selected:S(n),onClick:function(){return function(e){O(e),null==i||i(e)}(n)}},{children:g?Wq(JSON.parse(o)):o}),n)}))})]}))}))},Yq=function(e,t){e.stopPropagation(),null==t||t()},Kq=function(o){var r=o.value,i=o.leftIcon,a=o.rightIcon,s=o.onChange,l=o.onBlur,c=o.disabled,u=o.isError,p=o.placeholder,h=o.isEditMode,m=void 0===h||h,v=o.type,g=void 0===v?"text":v,b=o.internalConfig,y=f(o,["value","leftIcon","rightIcon","onChange","onBlur","disabled","isError","placeholder","isEditMode","type","internalConfig"]),w=n.useState(!1),C=w[0],E=w[1],O=n.useRef(null),D=function(e){switch(e){case"text":return{type:"text",inputMode:"text"};case"email":return{type:"email",inputMode:"email"};case"number":return{inputMode:"numeric"};case"password":return{type:"password",inputMode:"text"};default:return{}}}(g),S=e.useTheme().colors,k=S[function(e){var t=e.isEditMode,n=e.isFocused,o=e.isError,r=e.disabled;return t?r?"gray3":o?"red":n?"gray1":"gray3":"gray1"}({isFocused:C,isError:u,disabled:c,isEditMode:m})],T=b||{},j=T.horizontalPadding,M=void 0===j?0:j,A=T.verticalPadding,N=void 0===A?0:A,R=T.placeholderTextColor,P=T.placeholderTextFontSize,B=T.textColor,F=T.textFontSize,L=T.styles,_=T.wrapperStyles,I=e.css(SH||(SH=x(["\n ",";\n ",";\n ",";\n &::placeholder {\n ",";\n ",";\n }\n ",";\n "],["\n ",";\n ",";\n ",";\n &::placeholder {\n ",";\n ",";\n }\n ",";\n "])),B?"color: ".concat(S[B]||B,";"):"",F?"font-size: ".concat(F,"px;"):"",M||N?"padding: ".concat(N,"px ").concat(M,"px;"):"",P?"font-size: ".concat(P,"px;"):"",R?"color: ".concat(S[R]||R,";"):"",L);return t.jsxs(Zq,d({withoutOpacityEffect:!0,disabled:!m||c,isEditMode:m,isFocused:C,isError:u,$styles:_,onClick:function(){var e;return null===(e=O.current)||void 0===e?void 0:e.focus()}},{children:[!!i&&t.jsx(eX,d({withoutOpacityEffect:!i.onClick,onClick:function(e){return Yq(e,i.onClick)}},{children:t.jsx(Tq,{name:i.name,color:k})})),t.jsx(Jq,d({value:r,$styles:I,onChange:function(e){return null==s?void 0:s(e.target.value)},onFocus:function(){return E(!0)},onBlur:function(){E(!1),null==l||l()},ref:O,isError:u,disabled:!m||c,placeholder:p,isEditMode:m},y,D)),!!a&&t.jsx(tX,d({withoutOpacityEffect:!a.onClick,onClick:function(e){return Yq(e,a.onClick)}},{children:t.jsx(Tq,{name:a.name,color:k})}))]}))},Zq=s.default(y)(jH||(jH=x(["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n transition: 0.25s;\n\n ","\n"],["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n transition: 0.25s;\n\n ","\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.colors,i=t.isEditMode,a=t.disabled,s=t.isFocused,l=t.isError,c=t.$styles,u=r.gray3,p="1px",d="53px",f="transparent";return i?a?(u="transparent",f=r.gray4):l?u=r.red:s&&(u=r.gray1):(u="transparent",p="0",d="auto"),e.css(TH||(TH=x(["\n border: "," solid ",";\n border-radius: ","px;\n height: ",";\n padding: ","px;\n cursor: ",";\n background-color: ",";\n\n ","\n ",";\n "],["\n border: "," solid ",";\n border-radius: ","px;\n height: ",";\n padding: ","px;\n cursor: ",";\n background-color: ",";\n\n ","\n ",";\n "])),p,u,o.S,d,i?o.M:0,i&&!a?"text":"unset",f,i&&!a&&e.css(kH||(kH=x(["\n &:hover {\n border-color: ",";\n }\n "],["\n &:hover {\n border-color: ",";\n }\n "])),r.gray1),c)})),Jq=s.default.input(AH||(AH=x(["\n width: 100%;\n height: 100%;\n outline: none;\n border: none;\n transition: 0.25s;\n padding: 0;\n ","\n"],["\n width: 100%;\n height: 100%;\n outline: none;\n border: none;\n transition: 0.25s;\n padding: 0;\n ","\n"])),(function(t){var n=t.theme,o=n.fonts,r=n.colors,i=t.isError,a=t.disabled,s=t.isEditMode,l=t.$styles,c=r.gray1,u=r.gray3,p=s?r.gray4:"transparent";return s?a?(c=r.gray3,u=r.gray3):i&&(c=r.red,u=r.red):(c=r.gray1,u=r.gray3),e.css(MH||(MH=x(["\n ",";\n color: ",";\n &::placeholder {\n ","\n color: ",";\n }\n background-color: transparent;\n\n &:disabled {\n background-color: ",";\n }\n ","\n "],["\n ",";\n color: ",";\n &::placeholder {\n ","\n color: ",";\n }\n background-color: transparent;\n\n &:disabled {\n background-color: ",";\n }\n ","\n "])),o.M,c,o.M,u,p,l)})),Qq=s.default(y)(NH||(NH=x(["\n display: flex;\n align-items: center;\n justify-content: center;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n"]))),eX=s.default(Qq)(RH||(RH=x(["\n margin-right: ","px;\n"],["\n margin-right: ","px;\n"])),(function(e){return e.theme.sizes.S})),tX=s.default(Qq)(PH||(PH=x(["\n margin-left: ","px;\n"],["\n margin-left: ","px;\n"])),(function(e){return e.theme.sizes.S})),nX=e.keyframes(BH||(BH=x(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"],["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"]))),oX=s.default.div(FH||(FH=x(["\n border: 0.2em solid rgba(0, 0, 0, 0.1);\n border-top: 0.2em solid ",";\n border-radius: 50%;\n width: ","px;\n height: ","px;\n animation: "," 0.6s linear infinite;\n"],["\n border: 0.2em solid rgba(0, 0, 0, 0.1);\n border-top: 0.2em solid ",";\n border-radius: 50%;\n width: ","px;\n height: ","px;\n animation: "," 0.6s linear infinite;\n"])),(function(e){var t=e.theme,n=e.color,o=void 0===n?"secondary":n;return t.colors[o]}),(function(e){var t=e.theme,n=e.size;return n?t.sizes[n]:12}),(function(e){var t=e.theme,n=e.size;return n?t.sizes[n]:12}),nX),rX=s.default.img(_H||(_H=x(["\n display: block;\n ","\n"],["\n display: block;\n ","\n"])),(function(t){var n=t.height,o=void 0===n?"100%":n,r=t.width,i=void 0===r?"100%":r,a=t.cornerRadius,s=void 0===a?0:a,l=t.$styles;return e.css(LH||(LH=x(["\n width: ",";\n height: ",";\n border-radius: ","px;\n ","\n "],["\n width: ",";\n height: ",";\n border-radius: ","px;\n ","\n "])),"number"==typeof i?"".concat(i,"px"):i,"number"==typeof o?"".concat(o,"px"):o,s,l)})),iX=s.default(rX)($H||($H=x(["\n object-fit: cover;\n position: absolute;\n justify-content: center;\n top: 0;\n left: 0;\n z-index: 0;\n ","\n"],["\n object-fit: cover;\n position: absolute;\n justify-content: center;\n top: 0;\n left: 0;\n z-index: 0;\n ","\n"])),(function(t){var n=t.height,o=void 0===n?"100%":n,r=t.width,i=void 0===r?"100%":r,a=t.cornerRadius,s=void 0===a?0:a,l=t.$styles;return e.css(IH||(IH=x(["\n width: ",";\n height: ",";\n border-radius: ","px;\n ","\n "],["\n width: ",";\n height: ",";\n border-radius: ","px;\n ","\n "])),"number"==typeof i?"".concat(i,"px"):i,"number"==typeof o?"".concat(o,"px"):o,s,l)})),aX=s.default.a(UH||(UH=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.fonts,i=t.disabled,a=t.size,s=void 0===a?"medium":a,l=t.colorTheme,c=void 0===l?"light":l,u=o["light"===c?"blue":"gray4"],p=o["light"===c?"blueShade":"white"],d=o["light"===c?"gray4":"indigoTint2"],f=o["light"===c?"blue":"white"],h=o["light"===c?"blueShade":"gray4"];return e.css(WH||(WH=x(["\n ",";\n cursor: pointer;\n text-decoration: none;\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n background-color: ",";\n }\n\n ","\n\n ","\n "],["\n ",";\n cursor: pointer;\n text-decoration: none;\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n background-color: ",";\n }\n\n ","\n\n ","\n "])),r["medium"===s?"M":"S"],u,u,h,p,f,d,"small"===s&&e.css(zH||(zH=x(["\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n background-color: ",";\n color: ",";\n }\n "],["\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n background-color: ",";\n color: ",";\n }\n "])),o.gray2,o.gray2,o.gray3,o.gray1,o.gray4,o.gray1),i&&e.css(VH||(VH=x(["\n cursor: auto;\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n background-color: transparent;\n }\n "],["\n cursor: auto;\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n background-color: transparent;\n }\n "])),o.gray3,o.gray3,o.gray3))})),sX={DEFAULT:"Minus",ERROR:"Close",SUCCESS:"Check"},lX=function(n){var o=n.text,r=n.status,i=function(t){var n=e.useTheme().colors;switch(t){case"SUCCESS":return{color:n.greenShade,backgroundColor:n.greenTint,borderColor:"transparent"};case"ERROR":return{color:n.redShade,backgroundColor:n.redTint,borderColor:"transparent"};default:return{color:n.gray2,backgroundColor:"transparent",borderColor:n.gray3}}}(r),a=i.backgroundColor,s=i.color,l=i.borderColor,c=e.useTheme().sizes;return t.jsxs(cX,d({style:{backgroundColor:a,borderColor:l}},{children:[t.jsx(Tq,{size:c.M,name:sX[r],color:s}),t.jsx(jq,{width:"S"}),t.jsx(Mq,d({variant:"M",color:s},{children:o}))]}))},cX=s.default.div(qH||(qH=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.sizes;return e.css(HH||(HH=x(["\n display: flex;\n width: fit-content;\n align-items: center;\n border-radius: ","px;\n border: 1.5px solid transparent;\n padding: ","px ","px ","px ","px;\n "],["\n display: flex;\n width: fit-content;\n align-items: center;\n border-radius: ","px;\n border: 1.5px solid transparent;\n padding: ","px ","px ","px ","px;\n "])),n.M,n.XS,n.M,n.XS,n.S)})),uX={adjustX:1,adjustY:1},pX=[0,0],dX={left:{points:["cr","cl"],overflow:uX,offset:[-4,0],targetOffset:pX},right:{points:["cl","cr"],overflow:uX,offset:[4,0],targetOffset:pX},top:{points:["bc","tc"],overflow:uX,offset:[0,-4],targetOffset:pX},bottom:{points:["tc","bc"],overflow:uX,offset:[0,4],targetOffset:pX},topLeft:{points:["bl","tl"],overflow:uX,offset:[0,-4],targetOffset:pX},leftTop:{points:["tr","tl"],overflow:uX,offset:[-4,0],targetOffset:pX},topRight:{points:["br","tr"],overflow:uX,offset:[0,-4],targetOffset:pX},rightTop:{points:["tl","tr"],overflow:uX,offset:[4,0],targetOffset:pX},bottomRight:{points:["tr","br"],overflow:uX,offset:[0,4],targetOffset:pX},rightBottom:{points:["bl","br"],overflow:uX,offset:[4,0],targetOffset:pX},bottomLeft:{points:["tl","bl"],overflow:uX,offset:[0,4],targetOffset:pX},leftBottom:{points:["br","bl"],overflow:uX,offset:[-4,0],targetOffset:pX}};function fX(e){var t=e.showArrow,n=e.arrowContent,o=e.children,r=e.prefixCls,i=e.id,a=e.overlayInnerStyle,s=e.className,c=e.style;return l.createElement("div",{className:JT("".concat(r,"-content"),s),style:c},!1!==t&&l.createElement("div",{className:"".concat(r,"-arrow"),key:"arrow"},n),l.createElement("div",{className:"".concat(r,"-inner"),id:i,role:"tooltip",style:a},"function"==typeof o?o():o))}var hX,mX,vX,xX=function(e,t){var o=e.overlayClassName,r=e.trigger,i=void 0===r?["hover"]:r,a=e.mouseEnterDelay,s=void 0===a?0:a,c=e.mouseLeaveDelay,u=void 0===c?.1:c,p=e.overlayStyle,d=e.prefixCls,f=void 0===d?"rc-tooltip":d,h=e.children,m=e.onVisibleChange,v=e.afterVisibleChange,x=e.transitionName,g=e.animation,b=e.motion,y=e.placement,w=void 0===y?"right":y,C=e.align,E=void 0===C?{}:C,O=e.destroyTooltipOnHide,D=void 0!==O&&O,S=e.defaultVisible,k=e.getTooltipContainer,T=e.overlayInnerStyle,j=e.arrowContent,M=e.overlay,A=e.id,N=e.showArrow,R=OT(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),P=n.useRef(null);n.useImperativeHandle(t,(function(){return P.current}));var B=yT({},R);"visible"in e&&(B.popupVisible=e.visible);var F=!1,L=!1;if("boolean"==typeof D)F=D;else if(D&&"object"===vT(D)){var _=D.keepParent;F=!0===_,L=!1===_}return l.createElement(MB,ae({popupClassName:o,prefixCls:f,popup:function(){return l.createElement(fX,{showArrow:N,arrowContent:j,key:"content",prefixCls:f,id:A,overlayInnerStyle:T},M)},action:i,builtinPlacements:dX,popupPlacement:w,ref:P,popupAlign:E,getPopupContainer:k,onPopupVisibleChange:m,afterPopupVisibleChange:v,popupTransitionName:x,popupAnimation:g,popupMotion:b,defaultPopupVisible:S,destroyPopupOnHide:F,autoDestroy:L,mouseLeaveDelay:u,popupStyle:p,mouseEnterDelay:s},B),h)},gX=n.forwardRef(xX),bX=s.default.div(mX||(mX=x(["\n ",";\n"],["\n ",";\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes,i=n.fonts,a=t.$styles;return e.css(hX||(hX=x(["\n .rc-tooltip {\n &-arrow {\n display: none;\n }\n &-inner {\n min-height: unset;\n padding: ","px;\n background-color: ",";\n color: ",";\n border-radius: ","px;\n ",";\n ",";\n }\n }\n "],["\n .rc-tooltip {\n &-arrow {\n display: none;\n }\n &-inner {\n min-height: unset;\n padding: ","px;\n background-color: ",";\n color: ",";\n border-radius: ","px;\n ",";\n ",";\n }\n }\n "])),r.S,o.indigo,o.white,r.S,i.S,a)})),yX=function(e){var o=e.trigger,r=void 0===o?"hover":o,i=e.placement,a=void 0===i?"top":i,s=e.styles,l=f(e,["trigger","placement","styles"]),c=n.useRef(null);return t.jsx(bX,d({ref:c,$styles:s},{children:t.jsx(gX,d({},l,{getTooltipContainer:function(){return c.current},trigger:r,placement:a}))}))},wX=yT({},u),CX=wX.version,EX=wX.render,OX=wX.unmountComponentAtNode;try{Number((CX||"").split(".")[0])>=18&&(vX=wX.createRoot)}catch(Az){}function DX(e){var t=wX.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===vT(t)&&(t.usingClientEntryPoint=e)}var SX="__rc_react_root__";function kX(e,t){vX?function(e,t){DX(!0);var n=t[SX]||vX(t);DX(!1),n.render(e),t[SX]=n}(e,t):function(e,t){EX(e,t)}(e,t)}function TX(e){return jX.apply(this,arguments)}function jX(){return(jX=bB(xB().mark((function e(t){return xB().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[SX])||void 0===e||e.unmount(),delete t[SX]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function MX(e){OX(e)}function AX(){return(AX=bB(xB().mark((function e(t){return xB().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===vX){e.next=2;break}return e.abrupt("return",TX(t));case 2:MX(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var NX=function(e){TT(o,n.Component);var t=AT(o);function o(){var e;DT(this,o);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).closeTimer=null,e.close=function(t){t&&t.stopPropagation(),e.clearCloseTimer();var n=e.props,o=n.onClose,r=n.noticeKey;o&&o(r)},e.startCloseTimer=function(){e.props.duration&&(e.closeTimer=window.setTimeout((function(){e.close()}),1e3*e.props.duration))},e.clearCloseTimer=function(){e.closeTimer&&(clearTimeout(e.closeTimer),e.closeTimer=null)},e}return kT(o,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(e){(this.props.duration!==e.duration||this.props.updateMark!==e.updateMark||this.props.visible!==e.visible&&this.props.visible)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,o=t.className,r=t.closable,i=t.closeIcon,a=t.style,s=t.onClick,c=t.children,u=t.holder,d="".concat(n,"-notice"),f=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{}),h=l.createElement("div",ae({className:JT(d,o,gT({},"".concat(d,"-closable"),r)),style:a,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:s},f),l.createElement("div",{className:"".concat(d,"-content")},c),r?l.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(d,"-close")},i||l.createElement("span",{className:"".concat(d,"-close-x")})):null);return u?p.default.createPortal(h,u):h}}]),o}();NX.defaultProps={onClose:function(){},duration:1.5};var RX=["getContainer"],PX=0,BX=Date.now();function FX(){var e=PX;return PX+=1,"rcNotification_".concat(BX,"_").concat(e)}var LX=function(e){TT(o,n.Component);var t=AT(o);function o(){var e;DT(this,o);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).state={notices:[]},e.hookRefs=new Map,e.add=function(t,n){var o=t.key||FX(),r=yT(yT({},t),{},{key:o}),i=e.props.maxCount;e.setState((function(e){var t=e.notices,a=t.map((function(e){return e.notice.key})).indexOf(o),s=t.concat();return-1!==a?s.splice(a,1,{notice:r,holderCallback:n}):(i&&t.length>=i&&(r.key=s[0].notice.key,r.updateMark=FX(),r.userPassKey=o,s.shift()),s.push({notice:r,holderCallback:n})),{notices:s}}))},e.remove=function(t){e.setState((function(e){return{notices:e.notices.filter((function(e){var n=e.notice,o=n.key;return(n.userPassKey||o)!==t}))}}))},e.noticePropsMap={},e}return kT(o,[{key:"getTransitionName",value:function(){var e=this.props,t=e.prefixCls,n=e.animation,o=this.props.transitionName;return!o&&n&&(o="".concat(t,"-").concat(n)),o}},{key:"render",value:function(){var e=this,t=this.state.notices,n=this.props,o=n.prefixCls,r=n.className,i=n.closeIcon,a=n.style,s=[];return t.forEach((function(n,r){var a=n.notice,l=n.holderCallback,c=r===t.length-1?a.updateMark:void 0,u=a.key,p=a.userPassKey,d=yT(yT(yT({prefixCls:o,closeIcon:i},a),a.props),{},{key:u,noticeKey:p||u,updateMark:c,onClose:function(t){var n;e.remove(t),null===(n=a.onClose)||void 0===n||n.call(a)},onClick:a.onClick,children:a.content});s.push(u),e.noticePropsMap[u]={props:d,holderCallback:l}})),l.createElement("div",{className:JT(o,r),style:a},l.createElement(jj,{keys:s,motionName:this.getTransitionName(),onVisibleChanged:function(t,n){var o=n.key;t||delete e.noticePropsMap[o]}},(function(t){var n=t.key,r=t.className,i=t.style,a=t.visible,s=e.noticePropsMap[n],c=s.props,u=s.holderCallback;return u?l.createElement("div",{key:n,className:JT(r,"".concat(o,"-hook-holder")),style:yT({},i),ref:function(t){void 0!==n&&(t?(e.hookRefs.set(n,t),u(t,c)):e.hookRefs.delete(n))}}):l.createElement(NX,ae({},c,{className:JT(r,null==c?void 0:c.className),style:yT(yT({},i),null==c?void 0:c.style),visible:a}))})))}}]),o}();LX.newInstance=void 0,LX.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},LX.newInstance=function(e,t){var n=e||{},o=n.getContainer,r=OT(n,RX),i=document.createElement("div");o?o().appendChild(i):document.body.appendChild(i);var a=!1;function s(e){a||(a=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){!function(e){AX.apply(this,arguments)}(i),i.parentNode&&i.parentNode.removeChild(i)},useNotification:function(){return t=e,n=l.useRef({}),o=ET(l.useState([]),2),r=o[0],i=o[1],[function(e){var o=!0;t.add(e,(function(e,t){var r=t.key;if(e&&(!n.current[r]||o)){var a=l.createElement(NX,ae({},t,{holder:e}));n.current[r]=a,i((function(e){var n=e.findIndex((function(e){return e.key===t.key}));if(-1===n)return[].concat(BB(e),[a]);var o=BB(e);return o[n]=a,o}))}o=!1}))},l.createElement(l.Fragment,null,r)];var t,n,o,r,i}}))}"test"===process.env.NODE_ENV&&e.TEST_RENDER?e.TEST_RENDER(l.createElement(LX,ae({},r,{ref:s}))):kX(l.createElement(LX,ae({},r,{ref:s})),i)};var _X,IX,$X,zX=D.colors,VX=D.fonts,WX=D.sizes,UX=s.default.span(_X||(_X=x(["\n color: ",";\n ",";\n"],["\n color: ",";\n ",";\n"])),(function(e){return e.textColor}),VX.L),HX=s.default.div(IX||(IX=x(["\n display: flex;\n height: ","px;\n column-gap: ","px;\n align-items: center;\n padding-right: ","px;\n"],["\n display: flex;\n height: ","px;\n column-gap: ","px;\n align-items: center;\n padding-right: ","px;\n"])),WX.XL,WX.M,WX.XL),qX=s.default.div($X||($X=x(["\n ",";\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: ",";\n"],["\n ",";\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: ",";\n"])),w(WX.XL),(function(e){return e.backgroundColor})),XX=function(e){var n=e.type,o=e.message,r=function(e){switch(e){case"success":return{icon:"Check",backgroundColor:zX.green,textColor:zX.greenShade};case"error":return{icon:"Close",backgroundColor:zX.red,textColor:zX.redShade};case"warning":return{icon:"Warning",backgroundColor:zX.yellow,textColor:zX.yellowShade,iconColor:zX.yellowShade,iconSize:18};case"infoTierOne":return{icon:"Bell",backgroundColor:zX.blue,textColor:zX.blueShade,iconSize:18};case"infoTierTwo":return{icon:"Bell",backgroundColor:zX.gray2,textColor:O(zX.gray2),iconSize:18};default:return{icon:"Bell",backgroundColor:zX.blue,textColor:zX.blueShade}}}(n),i=r.icon,a=r.iconColor,s=r.textColor,l=r.backgroundColor,c=r.iconSize;return t.jsxs(HX,{children:[t.jsx(qX,d({backgroundColor:l},{children:t.jsx(Tq,{size:c||32,name:i,color:a||zX.white})})),t.jsx(UX,d({textColor:s},{children:o}))]})},GX=null;LX.newInstance({maxCount:2},(function(e){return GX=e}));var YX,KX,ZX,JX,QX,eG,tG,nG,oG,rG,iG,aG,sG,lG,cG,uG,pG,dG,fG=function(e){var n=e.message,o=e.type,r=void 0===o?"success":o,i=e.duration,a=void 0===i?2.5:i;return null==GX?void 0:GX.notice({content:t.jsx(XX,{message:n,type:r}),className:"toast-".concat(r),closable:!0,closeIcon:t.jsx(Tq,{name:"Close"}),duration:a})},hG=function(e){var n=e.onClick,o=e.disabled,r=e.buttonOptions,i=e.selectedButtonId,a=e.error,s=(null==r?void 0:r.slice(0,2))||[];return t.jsx(mG,d({error:a,disabled:o},{children:s.map((function(e){var o=e.value,r=e.id;return t.jsx(vG,d({isActive:r===i,onClick:function(){return n(r)}},{children:o}),r)}))}))},mG=s.default.div(KX||(KX=x(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-width: 0.2px;\n border-style: solid;\n padding: 1px;\n ","\n"],["\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-width: 0.2px;\n border-style: solid;\n padding: 1px;\n ","\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.colors,i=t.disabled,a=t.error,s="transparent",l=r.gray4;return i?l=r.gray5:s=a?r.red:r.gray4,e.css(YX||(YX=x(["\n height: ","px;\n border-radius: ","px;\n border-color: ",";\n background-color: ",";\n "],["\n height: ","px;\n border-radius: ","px;\n border-color: ",";\n background-color: ",";\n "])),o.XL,o.XS,s,l)})),vG=s.default(y)(JX||(JX=x(["\n display: flex;\n text-align: center;\n align-items: center;\n justify-content: center;\n padding: 10px;\n height: 100%;\n width: 50%;\n ","\n"],["\n display: flex;\n text-align: center;\n align-items: center;\n justify-content: center;\n padding: 10px;\n height: 100%;\n width: 50%;\n ","\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.colors,i=t.isActive,a=i?r.white:"transparent";return e.css(ZX||(ZX=x(["\n background-color: ",";\n border-radius: ","px;\n box-shadow: ",";\n transition: background-color 0.4s ease-out;\n "],["\n background-color: ",";\n border-radius: ","px;\n box-shadow: ",";\n transition: background-color 0.4s ease-out;\n "])),a,o.XS,i?"0 0 5px rgba(0, 0, 0, 0.15)":"none")})),xG=function(n){var o=n.size,r=void 0===o?"XL":o,i=n.withShadow,a=n.label,s=n.backgroundColor,l=n.onPress,c=n.content,u=c.initials,p=c.iconName,f=c.imageUrl,h=n.textConfig,m=void 0===h?{}:h,v=m.color,x=void 0===v?"white":v,g=m.font,b=void 0===g?"L":g,y=e.useTheme().sizes,w="number"==typeof r?r:y[r],C=u?t.jsx(wG,d({variant:b,color:x,avatarSize:w},{children:u})):p?t.jsx(Tq,{name:p,color:"white",size:w/1.5}):f?t.jsx(CG,{avatarSize:w,src:f}):null;return t.jsxs(gG,{children:[t.jsx(yG,d({clickable:!!l,onClick:l,withShadow:i,backgroundColor:f?"white":s,avatarSize:w},{children:C})),!!a&&t.jsx(bG,d({variant:"L"},{children:a}))]})},gG=s.default.div(QX||(QX=x(["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n"],["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n"]))),bG=s.default(Mq)(eG||(eG=x(["\n margin-left: 14px;\n color: ",";\n"],["\n margin-left: 14px;\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),yG=s.default.div(rG||(rG=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes,i=t.avatarSize,a=t.withShadow,s=t.backgroundColor,l=t.clickable;return e.css(oG||(oG=x(["\n display: flex;\n justify-content: center;\n overflow: hidden;\n align-items: center;\n transition: 0.1s;\n background-color: ",";\n color: ",";\n border: ","px solid ",";\n border-radius: ","px;\n ",";\n ","\n ","\n "],["\n display: flex;\n justify-content: center;\n overflow: hidden;\n align-items: center;\n transition: 0.1s;\n background-color: ",";\n color: ",";\n border: ","px solid ",";\n border-radius: ","px;\n ",";\n ","\n ","\n "])),o[s||"indigoTint2"],o.white,Math.round(i/r["2XL"]),o.white,i/2,w(i),a&&e.css(tG||(tG=x(["\n filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));\n "],["\n filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));\n "]))),l&&e.css(nG||(nG=x(["\n cursor: pointer;\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n "],["\n cursor: pointer;\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n "])),E(o[s||"indigoTint2"]),o[s||"indigoTint2"]))})),wG=s.default(Mq)(aG||(aG=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.avatarSize;return e.css(iG||(iG=x(["\n user-select: none;\n font-size: ","px;\n "],["\n user-select: none;\n font-size: ","px;\n "])),n/2)})),CG=s.default(rX)(lG||(lG=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.avatarSize;return e.css(sG||(sG=x(["\n ",";\n object-fit: cover;\n transition: 0.1s;\n\n &:hover {\n opacity: 0.7;\n }\n &:active {\n opacity: 1;\n }\n "],["\n ",";\n object-fit: cover;\n transition: 0.1s;\n\n &:hover {\n opacity: 0.7;\n }\n &:active {\n opacity: 1;\n }\n "])),w(n))})),EG=s.default.div(cG||(cG=x(["\n padding: 0\n ","px;\n"],["\n padding: 0\n ","px;\n"])),(function(e){var t=e.theme,n=e.padding;return"number"==typeof n?n:t.sizes[n]})),OG=s.default.div(uG||(uG=x(["\n padding: ","px\n 0;\n"],["\n padding: ","px\n 0;\n"])),(function(e){var t=e.theme,n=e.padding;return"number"==typeof n?n:t.sizes[n]})),DG=s.default.div(dG||(dG=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes,i=t.color,a=void 0===i?"gray4":i,s=t.type,l=void 0===s?"horizontal":s,c=t.weight,u=void 0===c?1:c,p=t.marginHorizontal,d=t.marginVertical;return e.css(pG||(pG=x(["\n width: ",";\n height: ",";\n background-color: ",";\n margin: ","px\n ","px;\n "],["\n width: ",";\n height: ",";\n background-color: ",";\n margin: ","px\n ","px;\n "])),"vertical"===l?"".concat(u,"px"):"100%","horizontal"===l?"".concat(u,"px"):"100%",o[a]||a,"number"==typeof d?d:r[d]||0,"number"==typeof p?p:r[p]||0)})),SG={},kG={},TG={__esModule:!0,default:function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},jG={exports:{}},MG=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},AG=MG,NG=function(e){return Object(AG(e))},RG={}.hasOwnProperty,PG=function(e,t){return RG.call(e,t)},BG={exports:{}},FG={exports:{}},LG=FG.exports={version:"2.6.12"};"number"==typeof __e&&(__e=LG);var _G={exports:{}},IG=_G.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=IG);var $G=FG.exports,zG=_G.exports,VG=zG["__core-js_shared__"]||(zG["__core-js_shared__"]={});(BG.exports=function(e,t){return VG[e]||(VG[e]=void 0!==t?t:{})})("versions",[]).push({version:$G.version,mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var WG,UG,HG,qG,XG,GG,YG=0,KG=Math.random(),ZG=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++YG+KG).toString(36))},JG=BG.exports("keys"),QG=ZG,eY=function(e){return JG[e]||(JG[e]=QG(e))},tY=PG,nY=NG,oY=eY("IE_PROTO"),rY=Object.prototype,iY=Object.getPrototypeOf||function(e){return e=nY(e),tY(e,oY)?e[oY]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?rY:null},aY=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},sY=function(e,t,n){if(aY(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}},lY={},cY=function(e){return"object"==typeof e?null!==e:"function"==typeof e},uY=cY,pY=function(e){if(!uY(e))throw TypeError(e+" is not an object!");return e},dY=function(e){try{return!!e()}catch(e){return!0}};function fY(){return UG?WG:(UG=1,WG=!dY((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})))}function hY(){if(qG)return HG;qG=1;var e=cY,t=_G.exports.document,n=e(t)&&e(t.createElement);return HG=function(e){return n?t.createElement(e):{}}}function mY(){return GG?XG:(GG=1,XG=!fY()&&!dY((function(){return 7!=Object.defineProperty(hY()("div"),"a",{get:function(){return 7}}).a})))}var vY,xY=cY,gY=function(e,t){if(!xY(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!xY(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!xY(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!xY(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")};function bY(){if(vY)return lY;vY=1;var e=pY,t=mY(),n=gY,o=Object.defineProperty;return lY.f=fY()?Object.defineProperty:function(r,i,a){if(e(r),i=n(i,!0),e(a),t)try{return o(r,i,a)}catch(e){}if("get"in a||"set"in a)throw TypeError("Accessors not supported!");return"value"in a&&(r[i]=a.value),r},lY}var yY=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},wY=bY(),CY=yY,EY=fY()?function(e,t,n){return wY.f(e,t,CY(1,n))}:function(e,t,n){return e[t]=n,e},OY=_G.exports,DY=FG.exports,SY=sY,kY=EY,TY=PG,jY=function(e,t,n){var o,r,i,a=e&jY.F,s=e&jY.G,l=e&jY.S,c=e&jY.P,u=e&jY.B,p=e&jY.W,d=s?DY:DY[t]||(DY[t]={}),f=d.prototype,h=s?OY:l?OY[t]:(OY[t]||{}).prototype;for(o in s&&(n=t),n)(r=!a&&h&&void 0!==h[o])&&TY(d,o)||(i=r?h[o]:n[o],d[o]=s&&"function"!=typeof h[o]?n[o]:u&&r?SY(i,OY):p&&h[o]==i?function(e){var t=function(t,n,o){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,o)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(i):c&&"function"==typeof i?SY(Function.call,i):i,c&&((d.virtual||(d.virtual={}))[o]=i,e&jY.R&&f&&!f[o]&&kY(f,o,i)))};jY.F=1,jY.G=2,jY.S=4,jY.P=8,jY.B=16,jY.W=32,jY.U=64,jY.R=128;var MY=jY,AY=MY,NY=FG.exports,RY=dY,PY=NG,BY=iY;!function(e,t){var n=(NY.Object||{})[e]||Object[e],o={};o[e]=t(n),AY(AY.S+AY.F*RY((function(){n(1)})),"Object",o)}("getPrototypeOf",(function(){return function(e){return BY(PY(e))}}));var FY=FG.exports.Object.getPrototypeOf;jG.exports={default:FY,__esModule:!0};var LY={__esModule:!0,default:function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},_Y={},IY={exports:{}},$Y=MY;$Y($Y.S+$Y.F*!fY(),"Object",{defineProperty:bY().f});var zY=FG.exports.Object;IY.exports={default:function(e,t,n){return zY.defineProperty(e,t,n)},__esModule:!0},_Y.__esModule=!0;var VY,WY=(VY=IY.exports)&&VY.__esModule?VY:{default:VY};_Y.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),(0,WY.default)(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();var UY={},HY={},qY={exports:{}},XY=Math.ceil,GY=Math.floor,YY=function(e){return isNaN(e=+e)?0:(e>0?GY:XY)(e)},KY=YY,ZY=MG,JY={exports:{}};JY.exports=EY;var QY,eK,tK,nK={},oK={}.toString,rK=function(e){return oK.call(e).slice(8,-1)},iK=rK,aK=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==iK(e)?e.split(""):Object(e)},sK=aK,lK=MG,cK=function(e){return sK(lK(e))},uK=YY,pK=Math.min,dK=function(e){return e>0?pK(uK(e),9007199254740991):0},fK=YY,hK=Math.max,mK=Math.min,vK=cK,xK=dK,gK=function(e,t){return(e=fK(e))<0?hK(e+t,0):mK(e,t)},bK=PG,yK=cK,wK=(QY=!1,function(e,t,n){var o,r=vK(e),i=xK(r.length),a=gK(n,i);if(QY&&t!=t){for(;i>a;)if((o=r[a++])!=o)return!0}else for(;i>a;a++)if((QY||a in r)&&r[a]===t)return QY||a||0;return!QY&&-1}),CK=eY("IE_PROTO"),EK=function(e,t){var n,o=yK(e),r=0,i=[];for(n in o)n!=CK&&bK(o,n)&&i.push(n);for(;t.length>r;)bK(o,n=t[r++])&&(~wK(i,n)||i.push(n));return i};function OK(){return tK?eK:(tK=1,eK="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","))}var DK,SK,kK,TK,jK,MK,AK=EK,NK=OK(),RK=Object.keys||function(e){return AK(e,NK)};function PK(){if(MK)return jK;MK=1;var e=pY,t=function(){if(SK)return DK;SK=1;var e=bY(),t=pY,n=RK;return DK=fY()?Object.defineProperties:function(o,r){t(o);for(var i,a=n(r),s=a.length,l=0;s>l;)e.f(o,i=a[l++],r[i]);return o},DK}(),n=OK(),o=eY("IE_PROTO"),r=function(){},i=function(){var e,t=hY()("iframe"),o=n.length;for(t.style.display="none",function(){if(TK)return kK;TK=1;var e=_G.exports.document;return kK=e&&e.documentElement}().appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),i=e.F;o--;)delete i.prototype[n[o]];return i()};return jK=Object.create||function(n,a){var s;return null!==n?(r.prototype=e(n),s=new r,r.prototype=null,s[o]=n):s=i(),void 0===a?s:t(s,a)},jK}var BK={exports:{}},FK=BG.exports("wks"),LK=ZG,_K=_G.exports.Symbol,IK="function"==typeof _K;(BK.exports=function(e){return FK[e]||(FK[e]=IK&&_K[e]||(IK?_K:LK)("Symbol."+e))}).store=FK;var $K=bY().f,zK=PG,VK=BK.exports("toStringTag"),WK=function(e,t,n){e&&!zK(e=n?e:e.prototype,VK)&&$K(e,VK,{configurable:!0,value:t})},UK=PK(),HK=yY,qK=WK,XK={};EY(XK,BK.exports("iterator"),(function(){return this}));var GK,YK=MY,KK=JY.exports,ZK=EY,JK=nK,QK=function(e,t,n){e.prototype=UK(XK,{next:HK(1,n)}),qK(e,t+" Iterator")},eZ=WK,tZ=iY,nZ=BK.exports("iterator"),oZ=!([].keys&&"next"in[].keys()),rZ=function(){return this},iZ=function(e,t,n,o,r,i,a){QK(n,t,o);var s,l,c,u=function(e){if(!oZ&&e in h)return h[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},p=t+" Iterator",d="values"==r,f=!1,h=e.prototype,m=h[nZ]||h["@@iterator"]||r&&h[r],v=m||u(r),x=r?d?u("entries"):v:void 0,g="Array"==t&&h.entries||m;if(g&&(c=tZ(g.call(new e)))!==Object.prototype&&c.next&&eZ(c,p,!0),d&&m&&"values"!==m.name&&(f=!0,v=function(){return m.call(this)}),a&&(oZ||f||!h[nZ])&&ZK(h,nZ,v),JK[t]=v,JK[p]=rZ,r)if(s={values:d?v:u("values"),keys:i?v:u("keys"),entries:x},a)for(l in s)l in h||KK(h,l,s[l]);else YK(YK.P+YK.F*(oZ||f),t,s);return s},aZ=(GK=!0,function(e,t){var n,o,r=String(ZY(e)),i=KY(t),a=r.length;return i<0||i>=a?GK?"":void 0:(n=r.charCodeAt(i))<55296||n>56319||i+1===a||(o=r.charCodeAt(i+1))<56320||o>57343?GK?r.charAt(i):n:GK?r.slice(i,i+2):o-56320+(n-55296<<10)+65536});iZ(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=aZ(t,n),this._i+=e.length,{value:e,done:!1})}));var sZ=function(e,t){return{value:t,done:!!e}},lZ=nK,cZ=cK;iZ(Array,"Array",(function(e,t){this._t=cZ(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,sZ(1)):sZ(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),lZ.Arguments=lZ.Array;for(var uZ=_G.exports,pZ=EY,dZ=nK,fZ=BK.exports("toStringTag"),hZ="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),mZ=0;mZ<hZ.length;mZ++){var vZ=hZ[mZ],xZ=uZ[vZ],gZ=xZ&&xZ.prototype;gZ&&!gZ[fZ]&&pZ(gZ,fZ,vZ),dZ[vZ]=dZ.Array}var bZ={};bZ.f=BK.exports;var yZ=bZ.f("iterator");qY.exports={default:yZ,__esModule:!0};var wZ={exports:{}},CZ={exports:{}},EZ=ZG("meta"),OZ=cY,DZ=PG,SZ=bY().f,kZ=0,TZ=Object.isExtensible||function(){return!0},jZ=!dY((function(){return TZ(Object.preventExtensions({}))})),MZ=function(e){SZ(e,EZ,{value:{i:"O"+ ++kZ,w:{}}})},AZ=CZ.exports={KEY:EZ,NEED:!1,fastKey:function(e,t){if(!OZ(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!DZ(e,EZ)){if(!TZ(e))return"F";if(!t)return"E";MZ(e)}return e[EZ].i},getWeak:function(e,t){if(!DZ(e,EZ)){if(!TZ(e))return!0;if(!t)return!1;MZ(e)}return e[EZ].w},onFreeze:function(e){return jZ&&AZ.NEED&&TZ(e)&&!DZ(e,EZ)&&MZ(e),e}},NZ=FG.exports,RZ=bZ,PZ=bY().f,BZ=function(e){var t=NZ.Symbol||(NZ.Symbol={});"_"==e.charAt(0)||e in t||PZ(t,e,{value:RZ.f(e)})},FZ={};FZ.f=Object.getOwnPropertySymbols;var LZ={};LZ.f={}.propertyIsEnumerable;var _Z=RK,IZ=FZ,$Z=LZ,zZ=rK,VZ=Array.isArray||function(e){return"Array"==zZ(e)},WZ={},UZ={},HZ=EK,qZ=OK().concat("length","prototype");UZ.f=Object.getOwnPropertyNames||function(e){return HZ(e,qZ)};var XZ=cK,GZ=UZ.f,YZ={}.toString,KZ="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];WZ.f=function(e){return KZ&&"[object Window]"==YZ.call(e)?function(e){try{return GZ(e)}catch(e){return KZ.slice()}}(e):GZ(XZ(e))};var ZZ={},JZ=LZ,QZ=yY,eJ=cK,tJ=gY,nJ=PG,oJ=mY(),rJ=Object.getOwnPropertyDescriptor;ZZ.f=fY()?rJ:function(e,t){if(e=eJ(e),t=tJ(t,!0),oJ)try{return rJ(e,t)}catch(e){}if(nJ(e,t))return QZ(!JZ.f.call(e,t),e[t])};var iJ=_G.exports,aJ=PG,sJ=fY(),lJ=MY,cJ=JY.exports,uJ=CZ.exports.KEY,pJ=dY,dJ=BG.exports,fJ=WK,hJ=ZG,mJ=BK.exports,vJ=bZ,xJ=BZ,gJ=function(e){var t=_Z(e),n=IZ.f;if(n)for(var o,r=n(e),i=$Z.f,a=0;r.length>a;)i.call(e,o=r[a++])&&t.push(o);return t},bJ=VZ,yJ=pY,wJ=cY,CJ=NG,EJ=cK,OJ=gY,DJ=yY,SJ=PK(),kJ=WZ,TJ=ZZ,jJ=FZ,MJ=bY(),AJ=RK,NJ=TJ.f,RJ=MJ.f,PJ=kJ.f,BJ=iJ.Symbol,FJ=iJ.JSON,LJ=FJ&&FJ.stringify,_J=mJ("_hidden"),IJ=mJ("toPrimitive"),$J={}.propertyIsEnumerable,zJ=dJ("symbol-registry"),VJ=dJ("symbols"),WJ=dJ("op-symbols"),UJ=Object.prototype,HJ="function"==typeof BJ&&!!jJ.f,qJ=iJ.QObject,XJ=!qJ||!qJ.prototype||!qJ.prototype.findChild,GJ=sJ&&pJ((function(){return 7!=SJ(RJ({},"a",{get:function(){return RJ(this,"a",{value:7}).a}})).a}))?function(e,t,n){var o=NJ(UJ,t);o&&delete UJ[t],RJ(e,t,n),o&&e!==UJ&&RJ(UJ,t,o)}:RJ,YJ=function(e){var t=VJ[e]=SJ(BJ.prototype);return t._k=e,t},KJ=HJ&&"symbol"==typeof BJ.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof BJ},ZJ=function(e,t,n){return e===UJ&&ZJ(WJ,t,n),yJ(e),t=OJ(t,!0),yJ(n),aJ(VJ,t)?(n.enumerable?(aJ(e,_J)&&e[_J][t]&&(e[_J][t]=!1),n=SJ(n,{enumerable:DJ(0,!1)})):(aJ(e,_J)||RJ(e,_J,DJ(1,{})),e[_J][t]=!0),GJ(e,t,n)):RJ(e,t,n)},JJ=function(e,t){yJ(e);for(var n,o=gJ(t=EJ(t)),r=0,i=o.length;i>r;)ZJ(e,n=o[r++],t[n]);return e},QJ=function(e){var t=$J.call(this,e=OJ(e,!0));return!(this===UJ&&aJ(VJ,e)&&!aJ(WJ,e))&&(!(t||!aJ(this,e)||!aJ(VJ,e)||aJ(this,_J)&&this[_J][e])||t)},eQ=function(e,t){if(e=EJ(e),t=OJ(t,!0),e!==UJ||!aJ(VJ,t)||aJ(WJ,t)){var n=NJ(e,t);return!n||!aJ(VJ,t)||aJ(e,_J)&&e[_J][t]||(n.enumerable=!0),n}},tQ=function(e){for(var t,n=PJ(EJ(e)),o=[],r=0;n.length>r;)aJ(VJ,t=n[r++])||t==_J||t==uJ||o.push(t);return o},nQ=function(e){for(var t,n=e===UJ,o=PJ(n?WJ:EJ(e)),r=[],i=0;o.length>i;)!aJ(VJ,t=o[i++])||n&&!aJ(UJ,t)||r.push(VJ[t]);return r};HJ||(cJ((BJ=function(){if(this instanceof BJ)throw TypeError("Symbol is not a constructor!");var e=hJ(arguments.length>0?arguments[0]:void 0),t=function(n){this===UJ&&t.call(WJ,n),aJ(this,_J)&&aJ(this[_J],e)&&(this[_J][e]=!1),GJ(this,e,DJ(1,n))};return sJ&&XJ&&GJ(UJ,e,{configurable:!0,set:t}),YJ(e)}).prototype,"toString",(function(){return this._k})),TJ.f=eQ,MJ.f=ZJ,UZ.f=kJ.f=tQ,LZ.f=QJ,jJ.f=nQ,vJ.f=function(e){return YJ(mJ(e))}),lJ(lJ.G+lJ.W+lJ.F*!HJ,{Symbol:BJ});for(var oQ="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rQ=0;oQ.length>rQ;)mJ(oQ[rQ++]);for(var iQ=AJ(mJ.store),aQ=0;iQ.length>aQ;)xJ(iQ[aQ++]);lJ(lJ.S+lJ.F*!HJ,"Symbol",{for:function(e){return aJ(zJ,e+="")?zJ[e]:zJ[e]=BJ(e)},keyFor:function(e){if(!KJ(e))throw TypeError(e+" is not a symbol!");for(var t in zJ)if(zJ[t]===e)return t},useSetter:function(){XJ=!0},useSimple:function(){XJ=!1}}),lJ(lJ.S+lJ.F*!HJ,"Object",{create:function(e,t){return void 0===t?SJ(e):JJ(SJ(e),t)},defineProperty:ZJ,defineProperties:JJ,getOwnPropertyDescriptor:eQ,getOwnPropertyNames:tQ,getOwnPropertySymbols:nQ});var sQ=pJ((function(){jJ.f(1)}));lJ(lJ.S+lJ.F*sQ,"Object",{getOwnPropertySymbols:function(e){return jJ.f(CJ(e))}}),FJ&&lJ(lJ.S+lJ.F*(!HJ||pJ((function(){var e=BJ();return"[null]"!=LJ([e])||"{}"!=LJ({a:e})||"{}"!=LJ(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);if(n=t=o[1],(wJ(t)||void 0!==e)&&!KJ(e))return bJ(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!KJ(t))return t}),o[1]=t,LJ.apply(FJ,o)}}),BJ.prototype[IJ]||EY(BJ.prototype,IJ,BJ.prototype.valueOf),fJ(BJ,"Symbol"),fJ(Math,"Math",!0),fJ(iJ.JSON,"JSON",!0),BZ("asyncIterator"),BZ("observable");var lQ=FG.exports.Symbol;wZ.exports={default:lQ,__esModule:!0},HY.__esModule=!0;var cQ=dQ(qY.exports),uQ=dQ(wZ.exports),pQ="function"==typeof uQ.default&&"symbol"==typeof cQ.default?function(e){return typeof e}:function(e){return e&&"function"==typeof uQ.default&&e.constructor===uQ.default&&e!==uQ.default.prototype?"symbol":typeof e};function dQ(e){return e&&e.__esModule?e:{default:e}}HY.default="function"==typeof uQ.default&&"symbol"===pQ(cQ.default)?function(e){return void 0===e?"undefined":pQ(e)}:function(e){return e&&"function"==typeof uQ.default&&e.constructor===uQ.default&&e!==uQ.default.prototype?"symbol":void 0===e?"undefined":pQ(e)},UY.__esModule=!0;var fQ=function(e){return e&&e.__esModule?e:{default:e}}(HY);UY.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,fQ.default)(t))&&"function"!=typeof t?e:t};var hQ,mQ,vQ={},xQ={exports:{}};MY(MY.S,"Object",{setPrototypeOf:function(){if(mQ)return hQ;mQ=1;var e=cY,t=pY,n=function(n,o){if(t(n),!e(o)&&null!==o)throw TypeError(o+": can't set as prototype!")};return hQ={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{(o=sY(Function.call,ZZ.f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,r){return n(e,r),t?e.__proto__=r:o(e,r),e}}({},!1):void 0),check:n},hQ}().set});var gQ=FG.exports.Object.setPrototypeOf;xQ.exports={default:gQ,__esModule:!0};var bQ={exports:{}};MY(MY.S,"Object",{create:PK()});var yQ=FG.exports.Object,wQ=function(e,t){return yQ.create(e,t)};bQ.exports={default:wQ,__esModule:!0},vQ.__esModule=!0;var CQ=DQ(xQ.exports),EQ=DQ(bQ.exports),OQ=DQ(HY);function DQ(e){return e&&e.__esModule?e:{default:e}}vQ.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,OQ.default)(t)));e.prototype=(0,EQ.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(CQ.default?(0,CQ.default)(e,t):e.__proto__=t)};var SQ=function(e){return e};var kQ=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},TQ=kQ,jQ=Math.max;var MQ=function(e,t,n){return t=jQ(void 0===t?e.length-1:t,0),function(){for(var o=arguments,r=-1,i=jQ(o.length-t,0),a=Array(i);++r<i;)a[r]=o[t+r];r=-1;for(var s=Array(t+1);++r<t;)s[r]=o[r];return s[t]=n(a),TQ(e,this,s)}};var AQ=function(e){return function(){return e}},NQ=$A,RQ=function(){try{var e=NQ(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),PQ=AQ,BQ=RQ,FQ=BQ?function(e,t){return BQ(e,"toString",{configurable:!0,enumerable:!1,value:PQ(t),writable:!0})}:SQ,LQ=Date.now;var _Q=function(e){var t=0,n=0;return function(){var o=LQ(),r=16-(o-n);if(n=o,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},IQ=_Q(FQ),$Q=SQ,zQ=MQ,VQ=IQ;var WQ=function(e,t){return VQ(zQ(e,t,$Q),e+"")},UQ=hP&&new hP,HQ=UQ,qQ=HQ?function(e,t){return HQ.set(e,t),e}:SQ,XQ=bA,GQ=Object.create,YQ=function(){function e(){}return function(t){if(!XQ(t))return{};if(GQ)return GQ(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),KQ=YQ,ZQ=KQ,JQ=bA;var QQ=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=ZQ(e.prototype),o=e.apply(n,t);return JQ(o)?o:n}},e0=QQ,t0=aA;var n0=function(e,t,n){var o=1&t,r=e0(e);return function t(){var i=this&&this!==t0&&this instanceof t?r:e;return i.apply(o?n:this,arguments)}},o0=Math.max;var r0=function(e,t,n,o){for(var r=-1,i=e.length,a=n.length,s=-1,l=t.length,c=o0(i-a,0),u=Array(l+c),p=!o;++s<l;)u[s]=t[s];for(;++r<a;)(p||r<i)&&(u[n[r]]=e[r]);for(;c--;)u[s++]=e[r++];return u},i0=Math.max;var a0=function(e,t,n,o){for(var r=-1,i=e.length,a=-1,s=n.length,l=-1,c=t.length,u=i0(i-s,0),p=Array(u+c),d=!o;++r<u;)p[r]=e[r];for(var f=r;++l<c;)p[f+l]=t[l];for(;++a<s;)(d||r<i)&&(p[f+n[a]]=e[r++]);return p};var s0=function(e,t){for(var n=e.length,o=0;n--;)e[n]===t&&++o;return o};var l0=function(){},c0=KQ,u0=l0;function p0(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}p0.prototype=c0(u0.prototype),p0.prototype.constructor=p0;var d0=p0;var f0=UQ,h0=f0?function(e){return f0.get(e)}:function(){},m0={},v0=Object.prototype.hasOwnProperty;var x0=function(e){for(var t=e.name+"",n=m0[t],o=v0.call(m0,t)?n.length:0;o--;){var r=n[o],i=r.func;if(null==i||i==e)return r.name}return t},g0=KQ,b0=l0;function y0(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}y0.prototype=g0(b0.prototype),y0.prototype.constructor=y0;var w0=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t},C0=d0,E0=y0,O0=w0;var D0=function(e){if(e instanceof C0)return e.clone();var t=new E0(e.__wrapped__,e.__chain__);return t.__actions__=O0(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t},S0=d0,k0=y0,T0=l0,j0=JN,M0=uR,A0=D0,N0=Object.prototype.hasOwnProperty;function R0(e){if(M0(e)&&!j0(e)&&!(e instanceof S0)){if(e instanceof k0)return e;if(N0.call(e,"__wrapped__"))return A0(e)}return new k0(e)}R0.prototype=T0.prototype,R0.prototype.constructor=R0;var P0=d0,B0=h0,F0=x0,L0=R0;var _0=function(e){var t=F0(e),n=L0[t];if("function"!=typeof n||!(t in P0.prototype))return!1;if(e===n)return!0;var o=B0(n);return!!o&&e===o[0]},I0=_Q(qQ),$0=/\{\n\/\* \[wrapped with (.+)\] \*/,z0=/,? & /;var V0=function(e){var t=e.match($0);return t?t[1].split(z0):[]},W0=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;var U0=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e};var H0=function(e,t,n,o){for(var r=e.length,i=n+(o?1:-1);o?i--:++i<r;)if(t(e[i],i,e))return i;return-1};var q0=function(e,t,n){for(var o=n-1,r=e.length;++o<r;)if(e[o]===t)return o;return-1},X0=H0,G0=function(e){return e!=e},Y0=q0;var K0=function(e,t,n){return t==t?Y0(e,t,n):X0(e,G0,n)};var Z0=U0,J0=function(e,t){return!!(null==e?0:e.length)&&K0(e,t,0)>-1},Q0=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];var e1=V0,t1=function(e,t){var n=t.length;if(!n)return e;var o=n-1;return t[o]=(n>1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(W0,"{\n/* [wrapped with "+t+"] */\n")},n1=IQ,o1=function(e,t){return Z0(Q0,(function(n){var o="_."+n[0];t&n[1]&&!J0(e,o)&&e.push(o)})),e.sort()};var r1=function(e,t,n){var o=t+"";return n1(e,t1(o,o1(e1(o),n)))},i1=_0,a1=I0,s1=r1;var l1=function(e,t,n,o,r,i,a,s,l,c){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);var p=[e,t,r,u?i:void 0,u?a:void 0,u?void 0:i,u?void 0:a,s,l,c],d=n.apply(void 0,p);return i1(e)&&a1(d,p),d.placeholder=o,s1(d,e,t)};var c1=function(e){return e.placeholder},u1=w0,p1=CR,d1=Math.min;var f1=function(e,t){for(var n=e.length,o=d1(t.length,n),r=u1(e);o--;){var i=t[o];e[o]=p1(i,n)?r[i]:void 0}return e};var h1=function(e,t){for(var n=-1,o=e.length,r=0,i=[];++n<o;){var a=e[n];a!==t&&"__lodash_placeholder__"!==a||(e[n]="__lodash_placeholder__",i[r++]=n)}return i},m1=r0,v1=a0,x1=s0,g1=QQ,b1=l1,y1=c1,w1=f1,C1=h1,E1=aA;var O1=function e(t,n,o,r,i,a,s,l,c,u){var p=128&n,d=1&n,f=2&n,h=24&n,m=512&n,v=f?void 0:g1(t);return function x(){for(var g=arguments.length,b=Array(g),y=g;y--;)b[y]=arguments[y];if(h)var w=y1(x),C=x1(b,w);if(r&&(b=m1(b,r,i,h)),a&&(b=v1(b,a,s,h)),g-=C,h&&g<u){var E=C1(b,w);return b1(t,n,e,x.placeholder,o,b,E,l,c,u-g)}var O=d?o:this,D=f?O[t]:t;return g=b.length,l?b=w1(b,l):m&&g>1&&b.reverse(),p&&c<g&&(b.length=c),this&&this!==E1&&this instanceof x&&(D=v||g1(D)),D.apply(O,b)}},D1=kQ,S1=QQ,k1=O1,T1=l1,j1=c1,M1=h1,A1=aA;var N1=function(e,t,n){var o=S1(e);return function r(){for(var i=arguments.length,a=Array(i),s=i,l=j1(r);s--;)a[s]=arguments[s];var c=i<3&&a[0]!==l&&a[i-1]!==l?[]:M1(a,l);if((i-=c.length)<n)return T1(e,t,k1,r.placeholder,void 0,a,c,void 0,void 0,n-i);var u=this&&this!==A1&&this instanceof r?o:e;return D1(u,this,a)}},R1=kQ,P1=QQ,B1=aA;var F1=function(e,t,n,o){var r=1&t,i=P1(e);return function t(){for(var a=-1,s=arguments.length,l=-1,c=o.length,u=Array(c+s),p=this&&this!==B1&&this instanceof t?i:e;++l<c;)u[l]=o[l];for(;s--;)u[l++]=arguments[++a];return R1(p,r?n:this,u)}},L1=r0,_1=a0,I1=h1,$1=Math.min;var z1=yz;var V1=function(e){return e?Infinity===(e=z1(e))||-Infinity===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var W1=function(e){var t=V1(e),n=t%1;return t==t?n?t-n:t:0},U1=qQ,H1=n0,q1=N1,X1=O1,G1=F1,Y1=h0,K1=function(e,t){var n=e[1],o=t[1],r=n|o,i=r<131,a=128==o&&8==n||128==o&&256==n&&e[7].length<=t[8]||384==o&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&o&&(e[2]=t[2],r|=1&n?0:4);var s=t[3];if(s){var l=e[3];e[3]=l?L1(l,s,t[4]):s,e[4]=l?I1(e[3],"__lodash_placeholder__"):t[4]}return(s=t[5])&&(l=e[5],e[5]=l?_1(l,s,t[6]):s,e[6]=l?I1(e[5],"__lodash_placeholder__"):t[6]),(s=t[7])&&(e[7]=s),128&o&&(e[8]=null==e[8]?t[8]:$1(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=r,e},Z1=I0,J1=r1,Q1=W1,e2=Math.max;var t2=function(e,t,n,o,r,i,a,s){var l=2&t;if(!l&&"function"!=typeof e)throw new TypeError("Expected a function");var c=o?o.length:0;if(c||(t&=-97,o=r=void 0),a=void 0===a?a:e2(Q1(a),0),s=void 0===s?s:Q1(s),c-=r?r.length:0,64&t){var u=o,p=r;o=r=void 0}var d=l?void 0:Y1(e),f=[e,t,n,o,r,u,p,i,a,s];if(d&&K1(f,d),e=f[0],t=f[1],n=f[2],o=f[3],r=f[4],!(s=f[9]=void 0===f[9]?l?0:e.length:e2(f[9]-c,0))&&24&t&&(t&=-25),t&&1!=t)h=8==t||16==t?q1(e,t,s):32!=t&&33!=t||r.length?X1.apply(void 0,f):G1(e,t,n,o);else var h=H1(e,t,n);return J1((d?U1:Z1)(h,f),e,t)},n2=t2,o2=c1,r2=h1,i2=WQ((function(e,t,n){var o=1;if(n.length){var r=r2(n,o2(i2));o|=32}return n2(e,o,t,n,r)}));i2.placeholder={};var a2=i2,s2=process.env.NODE_ENV,l2=function(e,t,n,o,r,i,a,s){if("production"!==s2&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,r,i,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}},c2=!("undefined"==typeof window||!window.document||!window.document.createElement),u2={},p2=Object.prototype.hasOwnProperty;function d2(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}var f2=function(e,t){if(d2(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var r=0;r<n.length;r++)if(!p2.call(t,n[r])||!d2(e[n[r]],t[n[r]]))return!1;return!0},h2={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},m2={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},v2=Object.defineProperty,x2=Object.getOwnPropertyNames,g2=Object.getOwnPropertySymbols,b2=Object.getOwnPropertyDescriptor,y2=Object.getPrototypeOf,w2=y2&&y2(Object);var C2=function e(t,n,o){if("string"!=typeof n){if(w2){var r=y2(n);r&&r!==w2&&e(t,r,o)}var i=x2(n);g2&&(i=i.concat(g2(n)));for(var a=0;a<i.length;++a){var s=i[a];if(!(h2[s]||m2[s]||o&&o[s])){var l=b2(n,s);try{v2(t,s,l)}catch(e){}}}return t}return t},E2={};Object.defineProperty(E2,"__esModule",{value:!0}),E2.createChangeEmitter=function(){var e=[],t=e;function n(){t===e&&(t=e.slice())}return{listen:function(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var o=!0;return n(),t.push(e),function(){if(o){o=!1,n();var r=t.indexOf(e);t.splice(r,1)}}},emit:function(){for(var n=e=t,o=0;o<n.length;o++)n[o].apply(n,arguments)}}};var O2=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")()),D2=ce(Object.freeze({__proto__:null,default:O2}));function S2(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(u2,"__esModule",{value:!0});var k2=c.default,T2=S2(k2),j2=S2(f2),M2=S2(C2),A2=E2,N2=S2(D2),R2=function(e,t){return function(n){return n[e]=t,n}},P2=function(e){return R2("displayName",e)},B2=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":void 0},F2=function(e,t){return t+"("+B2(e)+")"},L2=function(e){return function(t){var n=k2.createFactory(t),o=function(t){return n(e(t))};return"production"!==process.env.NODE_ENV?P2(F2(t,"mapProps"))(o):o}},_2=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},I2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},$2=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},z2=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n},V2=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},W2=function(e,t){for(var n={},o=0;o<t.length;o++){var r=t[o];e.hasOwnProperty(r)&&(n[r]=e[r])}return n},U2=function(e,t){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=t(e[o],o));return n},H2=function(e,t){for(var n=z2(e,[]),o=0;o<t.length;o++){var r=t[o];n.hasOwnProperty(r)&&delete n[r]}return n},q2=Object.keys,X2=function(e){return e},G2=function(e){function t(){return _2(this,t),V2(this,e.apply(this,arguments))}return $2(t,e),t.prototype.render=function(){return null},t}(k2.Component),Y2=function(e){return function(t){var n=k2.createFactory(t),o=function(t){function o(){return _2(this,o),V2(this,t.apply(this,arguments))}return $2(o,t),o.prototype.shouldComponentUpdate=function(t){return e(this.props,t)},o.prototype.render=function(){return n(this.props)},o}(k2.Component);return"production"!==process.env.NODE_ENV?P2(F2(t,"shouldUpdate"))(o):o}},K2=function(e){var t=Y2((function(t,n){return!j2(W2(n,e),W2(t,e))}));return"production"!==process.env.NODE_ENV?function(e){return P2(F2(e,"onlyUpdateForKeys"))(t(e))}:t},Z2=function(e){return Boolean(e&&e.prototype&&"function"==typeof e.prototype.render)};var J2={fromESObservable:null,toESObservable:null},Q2={fromESObservable:function(e){return"function"==typeof J2.fromESObservable?J2.fromESObservable(e):e},toESObservable:function(e){return"function"==typeof J2.toESObservable?J2.toESObservable(e):e}},e3=function(e){return function(t){return function(n){function o(){var r,i,a;_2(this,o);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return i=a=V2(this,n.call.apply(n,[this].concat(l))),a.state={vdom:null},a.propsEmitter=A2.createChangeEmitter(),a.props$=e.fromESObservable(((r={subscribe:function(e){return{unsubscribe:a.propsEmitter.listen((function(t){t?e.next(t):e.complete()}))}}})[N2]=function(){return this},r)),a.vdom$=e.toESObservable(t(a.props$)),V2(a,i)}return $2(o,n),o.prototype.componentWillMount=function(){var e=this;this.subscription=this.vdom$.subscribe({next:function(t){e.setState({vdom:t})}}),this.propsEmitter.emit(this.props)},o.prototype.componentWillReceiveProps=function(e){this.propsEmitter.emit(e)},o.prototype.shouldComponentUpdate=function(e,t){return t.vdom!==this.state.vdom},o.prototype.componentWillUnmount=function(){this.propsEmitter.emit(),this.subscription.unsubscribe()},o.prototype.render=function(){return this.state.vdom},o}(k2.Component)}},t3=function(e){return e},n3=function(e){var t=e3({fromESObservable:t3,toESObservable:t3});return function(n){return function(o){var r=k2.createFactory(o),i=e.fromESObservable,a=e.toESObservable;return t((function(e){var t;return(t={subscribe:function(t){var o=a(n(i(e))).subscribe({next:function(e){return t.next(r(e))}});return{unsubscribe:function(){return o.unsubscribe()}}}})[N2]=function(){return this},t}))}}},o3=function(e){return function(){var t,n=A2.createChangeEmitter(),o=e.fromESObservable(((t={subscribe:function(e){return{unsubscribe:n.listen((function(t){return e.next(t)}))}}})[N2]=function(){return this},t));return{handler:n.emit,stream:o}}},r3=o3(Q2);u2.mapProps=L2,u2.withProps=function(e){var t=L2((function(t){return I2({},t,"function"==typeof e?e(t):e)}));return"production"!==process.env.NODE_ENV?function(e){return P2(F2(e,"withProps"))(t(e))}:t},u2.withPropsOnChange=function(e,t){return function(n){var o=k2.createFactory(n),r="function"==typeof e?e:function(t,n){return!j2(W2(t,e),W2(n,e))},i=function(e){function n(){var o,r;_2(this,n);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return o=r=V2(this,e.call.apply(e,[this].concat(a))),r.computedProps=t(r.props),V2(r,o)}return $2(n,e),n.prototype.componentWillReceiveProps=function(e){r(this.props,e)&&(this.computedProps=t(e))},n.prototype.render=function(){return o(I2({},this.props,this.computedProps))},n}(k2.Component);return"production"!==process.env.NODE_ENV?P2(F2(n,"withPropsOnChange"))(i):i}},u2.withHandlers=function(e){return function(t){var n=k2.createFactory(t),o=function(e){function t(){var n,o;_2(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=o=V2(this,e.call.apply(e,[this].concat(a))),r.call(o),V2(o,n)}return $2(t,e),t.prototype.componentWillReceiveProps=function(){this.cachedHandlers={}},t.prototype.render=function(){return n(I2({},this.props,this.handlers))},t}(k2.Component),r=function(){var t=this;this.cachedHandlers={},this.handlers=U2("function"==typeof e?e(this.props):e,(function(e,n){return function(){var o=t.cachedHandlers[n];if(o)return o.apply(void 0,arguments);var r=e(t.props);return t.cachedHandlers[n]=r,"production"!==process.env.NODE_ENV&&"function"!=typeof r&&console.error("withHandlers(): Expected a map of higher-order functions. Refer to the docs for more info."),r.apply(void 0,arguments)}}))};return"production"!==process.env.NODE_ENV?P2(F2(t,"withHandlers"))(o):o}},u2.defaultProps=function(e){return function(t){var n=k2.createFactory(t),o=function(e){return n(e)};return o.defaultProps=e,"production"!==process.env.NODE_ENV?P2(F2(t,"defaultProps"))(o):o}},u2.renameProp=function(e,t){var n=L2((function(n){var o;return I2({},H2(n,[e]),((o={})[t]=n[e],o))}));return"production"!==process.env.NODE_ENV?function(e){return P2(F2(e,"renameProp"))(n(e))}:n},u2.renameProps=function(e){var t=L2((function(t){return I2({},H2(t,q2(e)),function(e,t){return q2(e).reduce((function(n,o){var r=e[o];return n[t(r,o)]=r,n}),{})}(W2(t,q2(e)),(function(t,n){return e[n]})))}));return"production"!==process.env.NODE_ENV?function(e){return P2(F2(e,"renameProps"))(t(e))}:t},u2.flattenProp=function(e){return function(t){var n=k2.createFactory(t),o=function(t){return n(I2({},t,t[e]))};return"production"!==process.env.NODE_ENV?P2(F2(t,"flattenProp"))(o):o}},u2.withState=function(e,t,n){return function(o){var r=k2.createFactory(o),i=function(o){function i(){var e,t;_2(this,i);for(var r=arguments.length,a=Array(r),s=0;s<r;s++)a[s]=arguments[s];return e=t=V2(this,o.call.apply(o,[this].concat(a))),t.state={stateValue:"function"==typeof n?n(t.props):n},t.updateStateValue=function(e,n){return t.setState((function(t){var n=t.stateValue;return{stateValue:"function"==typeof e?e(n):e}}),n)},V2(t,e)}return $2(i,o),i.prototype.render=function(){var n;return r(I2({},this.props,((n={})[e]=this.state.stateValue,n[t]=this.updateStateValue,n)))},i}(k2.Component);return"production"!==process.env.NODE_ENV?P2(F2(o,"withState"))(i):i}},u2.withStateHandlers=function(e,t){return function(n){var o=k2.createFactory(n),r=function(e){function t(){var n,o;_2(this,t);for(var r=arguments.length,a=Array(r),s=0;s<r;s++)a[s]=arguments[s];return n=o=V2(this,e.call.apply(e,[this].concat(a))),i.call(o),V2(o,n)}return $2(t,e),t.prototype.shouldComponentUpdate=function(e,t){var n=e!==this.props,o=!j2(t,this.state);return n||o},t.prototype.render=function(){return o(I2({},this.props,this.state,this.stateUpdaters))},t}(k2.Component),i=function(){var n=this;this.state="function"==typeof e?e(this.props):e,this.stateUpdaters=U2(t,(function(e){return function(t){for(var o=arguments.length,r=Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];t&&"function"==typeof t.persist&&t.persist(),n.setState((function(n,o){return e(n,o).apply(void 0,[t].concat(r))}))}}))};return"production"!==process.env.NODE_ENV?P2(F2(n,"withStateHandlers"))(r):r}},u2.withReducer=function(e,t,n,o){return function(r){var i=k2.createFactory(r),a=function(r){function a(){var e,t;_2(this,a);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return e=t=V2(this,r.call.apply(r,[this].concat(i))),t.state={stateValue:t.initializeStateValue()},t.dispatch=function(e){return t.setState((function(t){var o=t.stateValue;return{stateValue:n(o,e)}}))},V2(t,e)}return $2(a,r),a.prototype.initializeStateValue=function(){return void 0!==o?"function"==typeof o?o(this.props):o:n(void 0,{type:"@@recompose/INIT"})},a.prototype.render=function(){var n;return i(I2({},this.props,((n={})[e]=this.state.stateValue,n[t]=this.dispatch,n)))},a}(k2.Component);return"production"!==process.env.NODE_ENV?P2(F2(r,"withReducer"))(a):a}},u2.branch=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:X2;return function(o){var r=void 0,i=void 0,a=function(a){return e(a)?(r=r||k2.createFactory(t(o)))(a):(i=i||k2.createFactory(n(o)))(a)};return"production"!==process.env.NODE_ENV?P2(F2(o,"branch"))(a):a}},u2.renderComponent=function(e){return function(t){var n=k2.createFactory(e),o=function(e){return n(e)};return"production"!==process.env.NODE_ENV&&(o.displayName=F2(e,"renderComponent")),o}},u2.renderNothing=function(e){return G2},u2.shouldUpdate=Y2,u2.pure=function(e){var t=Y2((function(e,t){return!j2(e,t)}));return"production"!==process.env.NODE_ENV?P2(F2(e,"pure"))(t(e)):t(e)},u2.onlyUpdateForKeys=K2,u2.onlyUpdateForPropTypes=function(e){var t=e.propTypes;"production"!==process.env.NODE_ENV&&(t||console.error('A component without any `propTypes` was passed to `onlyUpdateForPropTypes()`. Check the implementation of the component with display name "'+B2(e)+'".'));var n=Object.keys(t||{}),o=K2(n)(e);return"production"!==process.env.NODE_ENV?P2(F2(e,"onlyUpdateForPropTypes"))(o):o},u2.withContext=function(e,t){return function(n){var o=k2.createFactory(n),r=function(e){function n(){var o,r;_2(this,n);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return o=r=V2(this,e.call.apply(e,[this].concat(a))),r.getChildContext=function(){return t(r.props)},V2(r,o)}return $2(n,e),n.prototype.render=function(){return o(this.props)},n}(k2.Component);return r.childContextTypes=e,"production"!==process.env.NODE_ENV?P2(F2(n,"withContext"))(r):r}},u2.getContext=function(e){return function(t){var n=k2.createFactory(t),o=function(e,t){return n(I2({},e,t))};return o.contextTypes=e,"production"!==process.env.NODE_ENV?P2(F2(t,"getContext"))(o):o}},u2.lifecycle=function(e){return function(t){var n=k2.createFactory(t);"production"!==process.env.NODE_ENV&&e.hasOwnProperty("render")&&console.error("lifecycle() does not support the render method; its behavior is to pass all props and state to the base component.");var o=function(e){function t(){return _2(this,t),V2(this,e.apply(this,arguments))}return $2(t,e),t.prototype.render=function(){return n(I2({},this.props,this.state))},t}(k2.Component);return Object.keys(e).forEach((function(t){return o.prototype[t]=e[t]})),"production"!==process.env.NODE_ENV?P2(F2(t,"lifecycle"))(o):o}},u2.toClass=function(e){if(Z2(e))return e;var t=function(t){function n(){return _2(this,n),V2(this,t.apply(this,arguments))}return $2(n,t),n.prototype.render=function(){return"string"==typeof e?T2.createElement(e,this.props):e(this.props,this.context)},n}(k2.Component);return t.displayName=B2(e),t.propTypes=e.propTypes,t.contextTypes=e.contextTypes,t.defaultProps=e.defaultProps,t},u2.setStatic=R2,u2.setPropTypes=function(e){return R2("propTypes",e)},u2.setDisplayName=P2,u2.compose=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))},u2.getDisplayName=B2,u2.wrapDisplayName=F2,u2.shallowEqual=j2,u2.isClassComponent=Z2,u2.createSink=function(e){return function(t){function n(){return _2(this,n),V2(this,t.apply(this,arguments))}return $2(n,t),n.prototype.componentWillMount=function(){e(this.props)},n.prototype.componentWillReceiveProps=function(t){e(t)},n.prototype.render=function(){return null},n}(k2.Component)},u2.componentFromProp=function(e){var t=function(t){return k2.createElement(t[e],H2(t,[e]))};return t.displayName="componentFromProp("+e+")",t},u2.nest=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t.map(k2.createFactory),r=function(e){var t=z2(e,[]),n=e.children;return o.reduceRight((function(e,n){return n(t,e)}),n)};if("production"!==process.env.NODE_ENV){var i=t.map(B2);r.displayName="nest("+i.join(", ")+")"}return r},u2.hoistStatics=function(e){return function(t){var n=e(t);return M2(n,t),n}},u2.componentFromStream=function(e){return e3(Q2)(e)},u2.componentFromStreamWithConfig=e3,u2.mapPropsStream=function(e){var t=n3(Q2)(e);return"production"!==process.env.NODE_ENV?function(e){return P2(F2(e,"mapPropsStream"))(t(e))}:t},u2.mapPropsStreamWithConfig=n3,u2.createEventHandler=r3,u2.createEventHandlerWithConfig=o3,u2.setObservableConfig=function(e){J2=e};var i3,a3={exports:{}};
255
+ function g_(e){return"[object Object]"===Object.prototype.toString.call(e)}function b_(e){var t,n;return!1!==g_(e)&&(void 0===(t=e.constructor)||!1!==g_(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function y_(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if("production"!==process.env.NODE_ENV){var r=sI[e],i=r?"function"==typeof r?r.apply(null,n):r:"unknown error nr: "+e;throw Error("[Immer] "+i)}throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function w_(e){return!!e&&!!e[aI]}function C_(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===lI}(e)||Array.isArray(e)||!!e[iI]||!!(null===(t=e.constructor)||void 0===t?void 0:t[iI])||k_(e)||T_(e))}function E_(e,t,n){void 0===n&&(n=!1),0===O_(e)?(n?Object.keys:cI)(e).forEach((function(o){n&&"symbol"==typeof o||t(o,e[o],e)})):e.forEach((function(n,o){return t(o,n,e)}))}function O_(e){var t=e[aI];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:k_(e)?2:T_(e)?3:0}function D_(e,t){return 2===O_(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function S_(e,t,n){var o=O_(e);2===o?e.set(t,n):3===o?(e.delete(t),e.add(n)):e[t]=n}function k_(e){return tI&&e instanceof Map}function T_(e){return nI&&e instanceof Set}function j_(e){return e.o||e.t}function M_(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=uI(e);delete t[aI];for(var n=cI(t),o=0;o<n.length;o++){var r=n[o],i=t[r];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[r]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[r]})}return Object.create(Object.getPrototypeOf(e),t)}function A_(e,t){return void 0===t&&(t=!1),R_(e)||w_(e)||!C_(e)||(O_(e)>1&&(e.set=e.add=e.clear=e.delete=N_),Object.freeze(e),t&&E_(e,(function(e,t){return A_(t,!0)}),!0)),e}function N_(){y_(2)}function R_(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function P_(e){var t=pI[e];return t||y_(18,e),t}function B_(){return"production"===process.env.NODE_ENV||Q_||y_(0),Q_}function F_(e,t){t&&(P_("Patches"),e.u=[],e.s=[],e.v=t)}function L_(e){__(e),e.p.forEach($_),e.p=null}function __(e){e===Q_&&(Q_=e.l)}function I_(e){return Q_={p:[],l:Q_,h:e,m:!0,_:0}}function $_(e){var t=e[aI];0===t.i||1===t.i?t.j():t.O=!0}function z_(e,t){t._=t.p.length;var n=t.p[0],o=void 0!==e&&e!==n;return t.h.g||P_("ES5").S(t,e,o),o?(n[aI].P&&(L_(t),y_(4)),C_(e)&&(e=V_(t,e),t.l||U_(t,e)),t.u&&P_("Patches").M(n[aI].t,e,t.u,t.s)):e=V_(t,n,[]),L_(t),t.u&&t.v(t.u,t.s),e!==rI?e:void 0}function V_(e,t,n){if(R_(t))return t;var o=t[aI];if(!o)return E_(t,(function(r,i){return W_(e,o,t,r,i,n)}),!0),t;if(o.A!==e)return t;if(!o.P)return U_(e,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=M_(o.k):o.o;E_(3===o.i?new Set(r):r,(function(t,i){return W_(e,o,r,t,i,n)})),U_(e,r,!1),n&&e.u&&P_("Patches").R(o,n,e.u,e.s)}return o.o}function W_(e,t,n,o,r,i){if("production"!==process.env.NODE_ENV&&r===n&&y_(5),w_(r)){var a=V_(e,r,i&&t&&3!==t.i&&!D_(t.D,o)?i.concat(o):void 0);if(S_(n,o,a),!w_(a))return;e.m=!1}if(C_(r)&&!R_(r)){if(!e.h.F&&e._<1)return;V_(e,r),t&&t.A.l||U_(e,r)}}function U_(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&A_(t,n)}function H_(e,t){var n=e[aI];return(n?j_(n):e)[t]}function q_(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var o=Object.getOwnPropertyDescriptor(n,t);if(o)return o;n=Object.getPrototypeOf(n)}}function X_(e){e.P||(e.P=!0,e.l&&X_(e.l))}function G_(e){e.o||(e.o=M_(e.t))}function Y_(e,t,n){var o=k_(t)?P_("MapSet").N(t,n):T_(t)?P_("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),o={i:n?1:0,A:t?t.A:B_(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},r=o,i=dI;n&&(r=[o],i=fI);var a=Proxy.revocable(r,i),s=a.revoke,l=a.proxy;return o.k=l,o.j=s,l}(t,n):P_("ES5").J(t,n);return(n?n.A:B_()).p.push(o),o}function K_(e){return w_(e)||y_(22,e),function e(t){if(!C_(t))return t;var n,o=t[aI],r=O_(t);if(o){if(!o.P&&(o.i<4||!P_("ES5").K(o)))return o.t;o.I=!0,n=Z_(t,r),o.I=!1}else n=Z_(t,r);return E_(n,(function(t,r){o&&function(e,t){return 2===O_(e)?e.get(t):e[t]}(o.t,t)===r||S_(n,t,e(r))})),3===r?new Set(n):n}(e)}function Z_(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return M_(e)}var J_,Q_,eI="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),tI="undefined"!=typeof Map,nI="undefined"!=typeof Set,oI="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,rI=eI?Symbol.for("immer-nothing"):((J_={})["immer-nothing"]=!0,J_),iI=eI?Symbol.for("immer-draftable"):"__$immer_draftable",aI=eI?Symbol.for("immer-state"):"__$immer_state",sI={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},lI=""+Object.prototype.constructor,cI="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,uI=Object.getOwnPropertyDescriptors||function(e){var t={};return cI(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},pI={},dI={get:function(e,t){if(t===aI)return e;var n=j_(e);if(!D_(n,t))return function(e,t,n){var o,r=q_(t,n);return r?"value"in r?r.value:null===(o=r.get)||void 0===o?void 0:o.call(e.k):void 0}(e,n,t);var o=n[t];return e.I||!C_(o)?o:o===H_(e.t,t)?(G_(e),e.o[t]=Y_(e.A.h,o,e)):o},has:function(e,t){return t in j_(e)},ownKeys:function(e){return Reflect.ownKeys(j_(e))},set:function(e,t,n){var o=q_(j_(e),t);if(null==o?void 0:o.set)return o.set.call(e.k,n),!0;if(!e.P){var r=H_(j_(e),t),i=null==r?void 0:r[aI];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,r)&&(void 0!==n||D_(e.t,t)))return!0;G_(e),X_(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==H_(e.t,t)||t in e.t?(e.D[t]=!1,G_(e),X_(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=j_(e),o=Reflect.getOwnPropertyDescriptor(n,t);return o?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:o.enumerable,value:n[t]}:o},defineProperty:function(){y_(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){y_(12)}},fI={};E_(dI,(function(e,t){fI[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),fI.deleteProperty=function(e,t){return"production"!==process.env.NODE_ENV&&isNaN(parseInt(t))&&y_(13),fI.set.call(this,e,t,void 0)},fI.set=function(e,t,n){return"production"!==process.env.NODE_ENV&&"length"!==t&&isNaN(parseInt(t))&&y_(14),dI.set.call(this,e[0],t,n,e[0])};var hI=function(){function e(e){var t=this;this.g=oI,this.F=!0,this.produce=function(e,n,o){if("function"==typeof e&&"function"!=typeof n){var r=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=r);for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return i.produce(e,(function(e){var o;return(o=n).call.apply(o,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&y_(6),void 0!==o&&"function"!=typeof o&&y_(7),C_(e)){var s=I_(t),l=Y_(t,e,void 0),c=!0;try{a=n(l),c=!1}finally{c?L_(s):__(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return F_(s,o),z_(e,s)}),(function(e){throw L_(s),e})):(F_(s,o),z_(a,s))}if(!e||"object"!=typeof e){if(void 0===(a=n(e))&&(a=e),a===rI&&(a=void 0),t.F&&A_(a,!0),o){var u=[],p=[];P_("Patches").M(e,a,u,p),o(u,p)}return a}y_(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var o=arguments.length,r=Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(r))}))};var o,r,i=t.produce(e,n,(function(e,t){o=e,r=t}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(e){return[e,o,r]})):[i,o,r]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){C_(e)||y_(8),w_(e)&&(e=K_(e));var t=I_(this),n=Y_(this,e,void 0);return n[aI].C=!0,__(t),n},t.finishDraft=function(e,t){var n=e&&e[aI];"production"!==process.env.NODE_ENV&&(n&&n.C||y_(9),n.I&&y_(10));var o=n.A;return F_(o,t),z_(void 0,o)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!oI&&y_(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var o=t[n];if(0===o.path.length&&"replace"===o.op){e=o.value;break}}n>-1&&(t=t.slice(n+1));var r=P_("Patches").$;return w_(e)?r(e,t):this.produce(e,(function(e){return r(e,t)}))},e}(),mI=new hI,vI=mI.produce;mI.produceWithPatches.bind(mI),mI.setAutoFreeze.bind(mI),mI.setUseProxies.bind(mI),mI.applyPatches.bind(mI);var xI=mI.createDraft.bind(mI),gI=mI.finishDraft.bind(mI);function bI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yI=new WeakMap,wI=new WeakMap,CI=new WeakMap,EI=new WeakMap,OI=new WeakMap,DI=new WeakMap,SI=new WeakMap;function kI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function TI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kI(Object(n),!0).forEach((function(t){bI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jI(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var MI,AI=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,o=t?LI(e):e,r=MI.None,i=MI.None,a=0,s=null;for(var l of o){var c=l.codePointAt(0);if(!c)break;var u=YI(l,c);if([r,i]=n?[i,u]:[u,r],KI(r,MI.ZWJ)&&KI(i,MI.ExtPict)&&!e$(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(KI(r,MI.RI)&&KI(i,MI.RI)&&!(s=null!==s?!s:!!n||n$(e.substring(0,e.length-a))))break;if(r!==MI.None&&i!==MI.None&&JI(r,i))break;a+=l.length}return a||1},NI=/\s/,RI=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,PI=/['\u2018\u2019]/,BI=(e,t,n)=>{if(n){var o=e.length-t;return[e.slice(o,e.length),e.slice(0,o)]}return[e.slice(0,t),e.slice(t)]},FI=function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(NI.test(t))return!1;if(PI.test(t)){var r=AI(n,o),[i,a]=BI(n,r,o);if(e(i,a,o))return!0}return!RI.test(t)},LI=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var o=e.charAt(t-n);if(II(o.charCodeAt(0))){var r=e.charAt(t-n-1);if(_I(r.charCodeAt(0))){yield r+o,n++;continue}}yield o}},_I=e=>e>=55296&&e<=56319,II=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(MI||(MI={}));var $I=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,zI=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,VI=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,WI=/^[\u1100-\u115F\uA960-\uA97C]$/,UI=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,HI=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,qI=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,XI=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,GI=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,YI=(e,t)=>{var n=MI.Any;return-1!==e.search($I)&&(n|=MI.Extend),8205===t&&(n|=MI.ZWJ),t>=127462&&t<=127487&&(n|=MI.RI),-1!==e.search(zI)&&(n|=MI.Prepend),-1!==e.search(VI)&&(n|=MI.SpacingMark),-1!==e.search(WI)&&(n|=MI.L),-1!==e.search(UI)&&(n|=MI.V),-1!==e.search(HI)&&(n|=MI.T),-1!==e.search(qI)&&(n|=MI.LV),-1!==e.search(XI)&&(n|=MI.LVT),-1!==e.search(GI)&&(n|=MI.ExtPict),n};function KI(e,t){return 0!=(e&t)}var ZI=[[MI.L,MI.L|MI.V|MI.LV|MI.LVT],[MI.LV|MI.V,MI.V|MI.T],[MI.LVT|MI.T,MI.T],[MI.Any,MI.Extend|MI.ZWJ],[MI.Any,MI.SpacingMark],[MI.Prepend,MI.Any],[MI.ZWJ,MI.ExtPict],[MI.RI,MI.RI]];function JI(e,t){return-1===ZI.findIndex((n=>KI(e,n[0])&&KI(t,n[1])))}var QI=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,e$=e=>-1!==e.search(QI),t$=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,n$=e=>{var t=e.match(t$);return null!==t&&t[0].length/2%2==1},o$=e=>b_(e)&&m$.isNodeList(e.children)&&!u$.isEditor(e),r$={isAncestor:e=>b_(e)&&m$.isNodeList(e.children),isElement:o$,isElementList:e=>Array.isArray(e)&&e.every((e=>r$.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return o$(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},i$=["text"],a$=["text"];function s$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s$(Object(n),!0).forEach((function(t){bI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c$=new WeakMap,u$={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:o="lowest",at:r=e.selection,match:i}=t;if(r){var a=u$.path(e,r),s="lowest"===o;for(var[l,c]of u$.levels(e,{at:a,voids:n,match:i,reverse:s})){if(F$.isText(l))return;if(k$.isRange(r)){if(b$.isAncestor(c,r.anchor.path)&&b$.isAncestor(c,r.focus.path))return[l,c]}else if(!b$.equals(a,c))return[l,c]}}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={anchor:u$.point(e,t,{edge:"end"}),focus:u$.end(e,[])},{distance:i=1}=o,a=0;for(var s of u$.positions(e,l$(l$({},o),{},{at:r}))){if(a>i)break;0!==a&&(n=s),a++}return n},before(e,t){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={anchor:u$.start(e,[]),focus:u$.point(e,t,{edge:"start"})},{distance:i=1}=o,a=0;for(var s of u$.positions(e,l$(l$({},o),{},{at:r,reverse:!0}))){if(a>i)break;0!==a&&(n=s),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[u$.start(e,t),u$.end(e,t)],end:(e,t)=>u$.point(e,t,{edge:"end"}),first(e,t){var n=u$.path(e,t,{edge:"start"});return u$.node(e,n)},fragment(e,t){var n=u$.range(e,t);return m$.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>u$.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>F$.isText(t)||u$.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>F$.isText(e))),insertBreak(e){e.insertBreak()},insertSoftBreak(e){e.insertSoftBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>r$.isElement(t)&&!e.isInline(t),isEditor(e){var t=c$.get(e);if(void 0!==t)return t;if(!b_(e))return!1;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertSoftBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&"function"==typeof e.getDirtyPaths&&(null===e.marks||b_(e.marks))&&(null===e.selection||k$.isRange(e.selection))&&m$.isNodeList(e.children)&&g$.isOperationList(e.operations);return c$.set(e,n),n},isEnd(e,t,n){var o=u$.end(e,n);return E$.equals(t,o)},isEdge:(e,t,n)=>u$.isStart(e,t,n)||u$.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[o]=n;return 0===n.length||1===n.length&&F$.isText(o)&&""===o.text&&!e.isVoid(t)},isInline:(e,t)=>r$.isElement(t)&&e.isInline(t),isNormalizing(e){var t=EI.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var o=u$.start(e,n);return E$.equals(t,o)},isVoid:(e,t)=>r$.isElement(t)&&e.isVoid(t),last(e,t){var n=u$.path(e,t,{edge:"end"});return u$.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=u$.path(e,t,n);return[m$.leaf(e,o),o]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:o=!1,voids:r=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],s=u$.path(e,n);for(var[l,c]of m$.levels(e,s))if(i(l,c)&&(a.push([l,c]),!r&&u$.isVoid(e,l)))break;o&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(k$.isExpanded(n)){var[o]=u$.nodes(e,{match:F$.isText});if(o){var[r]=o;return jI(r,i$)}return{}}var{anchor:i}=n,{path:a}=i,[s]=u$.leaf(e,a);if(0===i.offset){var l=u$.previous(e,{at:a,match:F$.isText}),c=u$.above(e,{match:t=>u$.isBlock(e,t)});if(l&&c){var[u,p]=l,[,d]=c;b$.isAncestor(d,p)&&(s=u)}}return jI(s,a$)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:o=!1}=t,{match:r,at:i=e.selection}=t;if(i){var a=u$.after(e,i,{voids:o});if(a){var[,s]=u$.last(e,[]),l=[a.path,s];if(b$.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==r)if(b$.isPath(i)){var[c]=u$.parent(e,i);r=e=>c.children.includes(e)}else r=()=>!0;var[u]=u$.nodes(e,{at:l,match:r,mode:n,voids:o});return u}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=u$.path(e,t,n);return[m$.get(e,o),o]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:o="all",universal:r=!1,reverse:i=!1,voids:a=!1}=t,{match:s}=t;if(s||(s=()=>!0),n){var l,c;if(p$.isSpan(n))l=n[0],c=n[1];else{var u=u$.path(e,n,{edge:"start"}),p=u$.path(e,n,{edge:"end"});l=i?p:u,c=i?u:p}var d,f=m$.nodes(e,{reverse:i,from:l,to:c,pass:t=>{var[n]=t;return!a&&u$.isVoid(e,n)}}),h=[];for(var[m,v]of f){var x=d&&0===b$.compare(v,d[1]);if("highest"!==o||!x)if(s(m,v))if("lowest"===o&&x)d=[m,v];else{var g="lowest"===o?d:[m,v];g&&(r?h.push(g):yield g),d=[m,v]}else if(r&&!x&&F$.isText(m))return}"lowest"===o&&d&&(r?h.push(d):yield d),r&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,o=e=>yI.get(e)||[],r=e=>{var t=o(e).pop(),n=t.join(",");return(e=>wI.get(e)||new Set)(e).delete(n),t};if(u$.isNormalizing(e)){if(n){var i=Array.from(m$.nodes(e),(e=>{var[,t]=e;return t})),a=new Set(i.map((e=>e.join(","))));yI.set(e,i),wI.set(e,a)}0!==o(e).length&&u$.withoutNormalizing(e,(()=>{for(var t of o(e))if(m$.has(e,t)){var n=u$.node(e,t),[i,a]=n;r$.isElement(i)&&0===i.children.length&&e.normalizeNode(n)}for(var s=42*o(e).length,l=0;0!==o(e).length;){if(l>s)throw new Error("\n Could not completely normalize the editor after ".concat(s," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var c=r(e);if(m$.has(e,c)){var u=u$.node(e,c);e.normalizeNode(u)}l++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=u$.path(e,t,n),r=b$.parent(o);return u$.node(e,r)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:o,edge:r}=n;if(b$.isPath(t))if("start"===r){var[,i]=m$.first(e,t);t=i}else if("end"===r){var[,a]=m$.last(e,t);t=a}return k$.isRange(t)&&(t="start"===r?k$.start(t):"end"===r?k$.end(t):b$.common(t.anchor.path,t.focus.path)),E$.isPoint(t)&&(t=t.path),null!=o&&(t=t.slice(0,o)),t},hasPath:(e,t)=>m$.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:o="forward"}=n,r={current:t,affinity:o,unref(){var{current:t}=r;return u$.pathRefs(e).delete(r),r.current=null,t}};return u$.pathRefs(e).add(r),r},pathRefs(e){var t=OI.get(e);return t||(t=new Set,OI.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:o="start"}=n;if(b$.isPath(t)){var r;if("end"===o){var[,i]=m$.last(e,t);r=i}else{var[,a]=m$.first(e,t);r=a}var s=m$.get(e,r);if(!F$.isText(s))throw new Error("Cannot get the ".concat(o," point in the node at path [").concat(t,"] because it has no ").concat(o," text node."));return{path:r,offset:"end"===o?s.text.length:0}}if(k$.isRange(t)){var[l,c]=k$.edges(t);return"start"===o?l:c}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:o="forward"}=n,r={current:t,affinity:o,unref(){var{current:t}=r;return u$.pointRefs(e).delete(r),r.current=null,t}};return u$.pointRefs(e).add(r),r},pointRefs(e){var t=DI.get(e);return t||(t=new Set,DI.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:o="offset",reverse:r=!1,voids:i=!1}=t;if(n){var a=u$.range(e,n),[s,l]=k$.edges(a),c=r?l:s,u=!1,p="",d=0,f=0,h=0;for(var[m,v]of u$.nodes(e,{at:n,reverse:r,voids:i})){if(r$.isElement(m)){if(!i&&e.isVoid(m)){yield u$.start(e,v);continue}if(e.isInline(m))continue;if(u$.hasInlines(e,m)){var x=b$.isAncestor(v,l.path)?l:u$.end(e,v),g=b$.isAncestor(v,s.path)?s:u$.start(e,v);p=u$.string(e,{anchor:g,focus:x},{voids:i}),u=!0}}if(F$.isText(m)){var b=b$.equals(v,c.path);for(b?(f=r?c.offset:m.text.length-c.offset,h=c.offset):(f=m.text.length,h=r?f:0),(b||u||"offset"===o)&&(yield{path:v,offset:h},u=!1);;){if(0===d){if(""===p)break;d=y(p,o,r),p=BI(p,d,r)[1]}if(h=r?h-d:h+d,(f-=d)<0){d=-f;break}d=0,yield{path:v,offset:h}}}}}function y(e,t,n){return"character"===t?AI(e,n):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,o=!1;e.length>0;){var r=AI(e,t),[i,a]=BI(e,r,t);if(FI(i,a,t))o=!0,n+=r;else{if(o)break;n+=r}e=a}return n}(e,n):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:o=!1}=t,{match:r,at:i=e.selection}=t;if(i){var a=u$.before(e,i,{voids:o});if(a){var[,s]=u$.first(e,[]),l=[a.path,s];if(b$.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==r)if(b$.isPath(i)){var[c]=u$.parent(e,i);r=e=>c.children.includes(e)}else r=()=>!0;var[u]=u$.nodes(e,{reverse:!0,at:l,match:r,mode:n,voids:o});return u}}},range:(e,t,n)=>k$.isRange(t)&&!n?t:{anchor:u$.start(e,t),focus:u$.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:o="forward"}=n,r={current:t,affinity:o,unref(){var{current:t}=r;return u$.rangeRefs(e).delete(r),r.current=null,t}};return u$.rangeRefs(e).add(r),r},rangeRefs(e){var t=SI.get(e);return t||(t=new Set,SI.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){EI.set(e,t)},start:(e,t)=>u$.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:o=!1}=n,r=u$.range(e,t),[i,a]=k$.edges(r),s="";for(var[l,c]of u$.nodes(e,{at:r,match:F$.isText,voids:o})){var u=l.text;b$.equals(c,a.path)&&(u=u.slice(0,a.offset)),b$.equals(c,i.path)&&(u=u.slice(i.offset)),s+=u}return s},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:o=!1}=n,[r,i]=k$.edges(t);if(0!==r.offset||0!==i.offset||k$.isCollapsed(t))return t;var a=u$.above(e,{at:i,match:t=>u$.isBlock(e,t)}),s=a?a[1]:[],l={anchor:u$.start(e,r),focus:i},c=!0;for(var[u,p]of u$.nodes(e,{at:l,match:F$.isText,reverse:!0,voids:o}))if(c)c=!1;else if(""!==u.text||b$.isBefore(p,s)){i={path:p,offset:u.text.length};break}return{anchor:r,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u$.above(e,l$(l$({},t),{},{match:t=>u$.isVoid(e,t)}))},withoutNormalizing(e,t){var n=u$.isNormalizing(e);u$.setNormalizing(e,!1);try{t()}finally{u$.setNormalizing(e,n)}u$.normalize(e)}},p$={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(b$.isPath)},d$=["children"],f$=["text"],h$=new WeakMap,m$={ancestor(e,t){var n=m$.get(e,t);if(F$.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(M$.stringify(n)));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var o of b$.ancestors(t,n)){var r=[m$.ancestor(e,o),o];yield r}},child(e,t){if(F$.isText(e))throw new Error("Cannot get the child of a text node: ".concat(M$.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(M$.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:o=!1}=n,r=m$.ancestor(e,t),{children:i}=r,a=o?i.length-1:0;o?a>=0:a<i.length;){var s=m$.child(r,a),l=t.concat(a);yield[s,l],a=o?a-1:a+1}},common(e,t,n){var o=b$.common(t,n);return[m$.get(e,o),o]},descendant(e,t){var n=m$.get(e,t);if(u$.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(M$.stringify(n)));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,o]of m$.nodes(e,t))0!==o.length&&(yield[n,o])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,o]of m$.nodes(e,t))r$.isElement(n)&&(yield[n,o])},extractProps:e=>r$.isAncestor(e)?jI(e,d$):jI(e,f$),first(e,t){for(var n=t.slice(),o=m$.get(e,n);o&&!F$.isText(o)&&0!==o.children.length;)o=o.children[0],n.push(0);return[o,n]},fragment(e,t){if(F$.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(M$.stringify(e)));var n=vI({children:e.children},(e=>{var[n,o]=k$.edges(t),r=m$.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!k$.includes(t,n)}});for(var[,i]of r){if(!k$.includes(t,i)){var a=m$.parent(e,i),s=i[i.length-1];a.children.splice(s,1)}if(b$.equals(i,o.path)){var l=m$.leaf(e,i);l.text=l.text.slice(0,o.offset)}if(b$.equals(i,n.path)){var c=m$.leaf(e,i);c.text=c.text.slice(n.offset)}}u$.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){for(var n=e,o=0;o<t.length;o++){var r=t[o];if(F$.isText(n)||!n.children[r])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(M$.stringify(e)));n=n.children[r]}return n},has(e,t){for(var n=e,o=0;o<t.length;o++){var r=t[o];if(F$.isText(n)||!n.children[r])return!1;n=n.children[r]}return!0},isNode:e=>F$.isText(e)||r$.isElement(e)||u$.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=h$.get(e);if(void 0!==t)return t;var n=e.every((e=>m$.isNode(e)));return h$.set(e,n),n},last(e,t){for(var n=t.slice(),o=m$.get(e,n);o&&!F$.isText(o)&&0!==o.children.length;){var r=o.children.length-1;o=o.children[r],n.push(r)}return[o,n]},leaf(e,t){var n=m$.get(e,t);if(!F$.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(M$.stringify(n)));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var o of b$.levels(t,n)){var r=m$.get(e,o);yield[r,o]}},matches:(e,t)=>r$.isElement(e)&&r$.isElementProps(t)&&r$.matches(e,t)||F$.isText(e)&&F$.isTextProps(t)&&F$.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:o=!1}=t,{from:r=[],to:i}=t,a=new Set,s=[],l=e;!i||!(o?b$.isBefore(s,i):b$.isAfter(s,i));)if(a.has(l)||(yield[l,s]),a.has(l)||F$.isText(l)||0===l.children.length||null!=n&&!1!==n([l,s])){if(0===s.length)break;if(!o){var c=b$.next(s);if(m$.has(e,c)){s=c,l=m$.get(e,s);continue}}if(o&&0!==s[s.length-1])s=b$.previous(s),l=m$.get(e,s);else s=b$.parent(s),l=m$.get(e,s),a.add(l)}else{a.add(l);var u=o?l.children.length-1:0;b$.isAncestor(s,r)&&(u=r[s.length]),s=s.concat(u),l=m$.get(e,s)}},parent(e,t){var n=b$.parent(t),o=m$.get(e,n);if(F$.isText(o))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return o},string:e=>F$.isText(e)?e.text:e.children.map(m$.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,o]of m$.nodes(e,t))F$.isText(n)&&(yield[n,o])}};function v$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function x$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v$(Object(n),!0).forEach((function(t){bI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g$={isNodeOperation:e=>g$.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!b_(e))return!1;switch(e.type){case"insert_node":case"remove_node":return b$.isPath(e.path)&&m$.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&b$.isPath(e.path);case"merge_node":return"number"==typeof e.position&&b$.isPath(e.path)&&b_(e.properties);case"move_node":return b$.isPath(e.path)&&b$.isPath(e.newPath);case"set_node":return b$.isPath(e.path)&&b_(e.properties)&&b_(e.newProperties);case"set_selection":return null===e.properties&&k$.isRange(e.newProperties)||null===e.newProperties&&k$.isRange(e.properties)||b_(e.properties)&&b_(e.newProperties);case"split_node":return b$.isPath(e.path)&&"number"==typeof e.position&&b_(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>g$.isOperation(e))),isSelectionOperation:e=>g$.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>g$.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return x$(x$({},e),{},{type:"remove_node"});case"insert_text":return x$(x$({},e),{},{type:"remove_text"});case"merge_node":return x$(x$({},e),{},{type:"split_node",path:b$.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(b$.equals(t,n))return e;if(b$.isSibling(n,t))return x$(x$({},e),{},{path:t,newPath:n});var o=b$.transform(n,e),r=b$.transform(b$.next(n),e);return x$(x$({},e),{},{path:o,newPath:r});case"remove_node":return x$(x$({},e),{},{type:"insert_node"});case"remove_text":return x$(x$({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return x$(x$({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:s,newProperties:l}=e;return x$(x$({},e),{},null==s?{properties:l,newProperties:null}:null==l?{properties:null,newProperties:s}:{properties:l,newProperties:s});case"split_node":return x$(x$({},e),{},{type:"merge_node",path:b$.next(e.path)})}}},b$={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,o=b$.levels(e,t);return o=n?o.slice(1):o.slice(0,-1)},common(e,t){for(var n=[],o=0;o<e.length&&o<t.length;o++){var r=e[o];if(r!==t[o])break;n.push(r)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),o=0;o<n;o++){if(e[o]<t[o])return-1;if(e[o]>t[o])return 1}return 0},endsAfter(e,t){var n=e.length-1,o=e.slice(0,n),r=t.slice(0,n),i=e[n],a=t[n];return b$.equals(o,r)&&i>a},endsAt(e,t){var n=e.length,o=e.slice(0,n),r=t.slice(0,n);return b$.equals(o,r)},endsBefore(e,t){var n=e.length-1,o=e.slice(0,n),r=t.slice(0,n),i=e[n],a=t[n];return b$.equals(o,r)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===b$.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===b$.compare(e,t),isBefore:(e,t)=>-1===b$.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===b$.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===b$.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===b$.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===b$.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),o=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&b$.equals(n,o)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,o=[],r=0;r<=e.length;r++)o.push(e.slice(0,r));return n&&o.reverse(),o},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!b$.isAncestor(t,e)&&!b$.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return null;var o=[...e],{affinity:r="forward"}=n;if(0===e.length)return o;switch(t.type){case"insert_node":var{path:i}=t;(b$.equals(i,o)||b$.endsBefore(i,o)||b$.isAncestor(i,o))&&(o[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(b$.equals(a,o)||b$.isAncestor(a,o))return null;b$.endsBefore(a,o)&&(o[a.length-1]-=1);break;case"merge_node":var{path:s,position:l}=t;b$.equals(s,o)||b$.endsBefore(s,o)?o[s.length-1]-=1:b$.isAncestor(s,o)&&(o[s.length-1]-=1,o[s.length]+=l);break;case"split_node":var{path:c,position:u}=t;if(b$.equals(c,o)){if("forward"===r)o[o.length-1]+=1;else if("backward"!==r)return null}else b$.endsBefore(c,o)?o[c.length-1]+=1:b$.isAncestor(c,o)&&e[c.length]>=u&&(o[c.length-1]+=1,o[c.length]-=u);break;case"move_node":var{path:p,newPath:d}=t;if(b$.equals(p,d))return o;if(b$.isAncestor(p,o)||b$.equals(p,o)){var f=d.slice();return b$.endsBefore(p,d)&&p.length<d.length&&(f[p.length-1]-=1),f.concat(o.slice(p.length))}b$.isSibling(p,d)&&(b$.isAncestor(d,o)||b$.equals(d,o))?b$.endsBefore(p,o)?o[p.length-1]-=1:o[p.length-1]+=1:b$.endsBefore(d,o)||b$.equals(d,o)||b$.isAncestor(d,o)?(b$.endsBefore(p,o)&&(o[p.length-1]-=1),o[d.length-1]+=1):b$.endsBefore(p,o)&&(b$.equals(d,o)&&(o[d.length-1]+=1),o[p.length-1]-=1)}return o}},y$={transform(e,t){var{current:n,affinity:o}=e;if(null!=n){var r=b$.transform(n,t,{affinity:o});e.current=r,null==r&&e.unref()}}};function w$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function C$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w$(Object(n),!0).forEach((function(t){bI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var E$={compare(e,t){var n=b$.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===E$.compare(e,t),isBefore:(e,t)=>-1===E$.compare(e,t),equals:(e,t)=>e.offset===t.offset&&b$.equals(e.path,t.path),isPoint:e=>b_(e)&&"number"==typeof e.offset&&b$.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return vI(e,(e=>{if(null===e)return null;var{affinity:o="forward"}=n,{path:r,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=b$.transform(r,t,n);break;case"insert_text":b$.equals(t.path,r)&&(t.offset<i||t.offset===i&&"forward"===o)&&(e.offset+=t.text.length);break;case"merge_node":b$.equals(t.path,r)&&(e.offset+=t.position),e.path=b$.transform(r,t,n);break;case"remove_text":b$.equals(t.path,r)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(b$.equals(t.path,r)||b$.isAncestor(t.path,r))return null;e.path=b$.transform(r,t,n);break;case"split_node":if(b$.equals(t.path,r)){if(t.position===i&&null==o)return null;(t.position<i||t.position===i&&"forward"===o)&&(e.offset-=t.position,e.path=b$.transform(r,t,C$(C$({},n),{},{affinity:"forward"})))}else e.path=b$.transform(r,t,n)}}))}},O$={transform(e,t){var{current:n,affinity:o}=e;if(null!=n){var r=E$.transform(n,t,{affinity:o});e.current=r,null==r&&e.unref()}}},D$=["anchor","focus"];function S$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var k$={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:o,focus:r}=e;return k$.isBackward(e)===n?[o,r]:[r,o]},end(e){var[,t]=k$.edges(e);return t},equals:(e,t)=>E$.equals(e.anchor,t.anchor)&&E$.equals(e.focus,t.focus),includes(e,t){if(k$.isRange(t)){if(k$.includes(e,t.anchor)||k$.includes(e,t.focus))return!0;var[n,o]=k$.edges(e),[r,i]=k$.edges(t);return E$.isBefore(n,r)&&E$.isAfter(o,i)}var[a,s]=k$.edges(e),l=!1,c=!1;return E$.isPoint(t)?(l=E$.compare(t,a)>=0,c=E$.compare(t,s)<=0):(l=b$.compare(t,a.path)>=0,c=b$.compare(t,s.path)<=0),l&&c},intersection(e,t){var n=jI(e,D$),[o,r]=k$.edges(e),[i,a]=k$.edges(t),s=E$.isBefore(o,i)?i:o,l=E$.isBefore(r,a)?r:a;return E$.isBefore(l,s)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S$(Object(n),!0).forEach((function(t){bI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:s,focus:l},n)},isBackward(e){var{anchor:t,focus:n}=e;return E$.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return E$.equals(t,n)},isExpanded:e=>!k$.isCollapsed(e),isForward:e=>!k$.isBackward(e),isRange:e=>b_(e)&&E$.isPoint(e.anchor)&&E$.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=k$.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return vI(e,(e=>{if(null===e)return null;var o,r,{affinity:i="inward"}=n;if("inward"===i){var a=k$.isCollapsed(e);k$.isForward(e)?(o="forward",r=a?o:"backward"):(o="backward",r=a?o:"forward")}else"outward"===i?k$.isForward(e)?(o="backward",r="forward"):(o="forward",r="backward"):(o=i,r=i);var s=E$.transform(e.anchor,t,{affinity:o}),l=E$.transform(e.focus,t,{affinity:r});if(!s||!l)return null;e.anchor=s,e.focus=l}))}},T$={transform(e,t){var{current:n,affinity:o}=e;if(null!=n){var r=k$.transform(n,t,{affinity:o});e.current=r,null==r&&e.unref()}}},j$=void 0,M$={setScrubber(e){j$=e},stringify:e=>JSON.stringify(e,j$)},A$=(e,t)=>{for(var n in e){var o=e[n],r=t[n];if(b_(o)&&b_(r)){if(!A$(o,r))return!1}else if(Array.isArray(o)&&Array.isArray(r)){if(o.length!==r.length)return!1;for(var i=0;i<o.length;i++)if(o[i]!==r[i])return!1}else if(o!==r)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},N$=["text"],R$=["anchor","focus"];function P$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function B$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P$(Object(n),!0).forEach((function(t){bI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var F$={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:o=!1}=n;function r(e){return jI(e,N$)}return A$(o?r(e):e,o?r(t):t)},isText:e=>b_(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>F$.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[B$({},e)];for(var o of t){var r=jI(o,R$),[i,a]=k$.edges(o),s=[],l=0,c=i.offset,u=a.offset;for(var p of n){var{length:d}=p.text,f=l;if(l+=d,c<=f&&l<=u)Object.assign(p,r),s.push(p);else if(c!==u&&(c===l||u===f)||c>l||u<f||u===f&&0!==f)s.push(p);else{var h=p,m=void 0,v=void 0;if(u<l){var x=u-f;v=B$(B$({},h),{},{text:h.text.slice(x)}),h=B$(B$({},h),{},{text:h.text.slice(0,x)})}if(c>f){var g=c-f;m=B$(B$({},h),{},{text:h.text.slice(0,g)}),h=B$(B$({},h),{},{text:h.text.slice(g)})}Object.assign(h,r),m&&s.push(m),s.push(h),v&&s.push(v)}}n=s}return n}};function L$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L$(Object(n),!0).forEach((function(t){bI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var I$={transform(e,t){e.children=xI(e.children);var n=e.selection&&xI(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:o,node:r}=n,i=m$.parent(e,o),a=o[o.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(o,"] because the destination is past the end of the node."));if(i.children.splice(a,0,r),t)for(var[s,l]of k$.points(t))t[l]=E$.transform(s,n);break;case"insert_text":var{path:c,offset:u,text:p}=n;if(0===p.length)break;var d=m$.leaf(e,c),f=d.text.slice(0,u),h=d.text.slice(u);if(d.text=f+p+h,t)for(var[m,v]of k$.points(t))t[v]=E$.transform(m,n);break;case"merge_node":var{path:x}=n,g=m$.get(e,x),b=b$.previous(x),y=m$.get(e,b),w=m$.parent(e,x),C=x[x.length-1];if(F$.isText(g)&&F$.isText(y))y.text+=g.text;else{if(F$.isText(g)||F$.isText(y))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(x,"] to nodes of different interfaces: ").concat(M$.stringify(g)," ").concat(M$.stringify(y)));y.children.push(...g.children)}if(w.children.splice(C,1),t)for(var[E,O]of k$.points(t))t[O]=E$.transform(E,n);break;case"move_node":var{path:D,newPath:S}=n;if(b$.isAncestor(D,S))throw new Error("Cannot move a path [".concat(D,"] to new path [").concat(S,"] because the destination is inside itself."));var k=m$.get(e,D),T=m$.parent(e,D),j=D[D.length-1];T.children.splice(j,1);var M=b$.transform(D,n),A=m$.get(e,b$.parent(M)),N=M[M.length-1];if(A.children.splice(N,0,k),t)for(var[R,P]of k$.points(t))t[P]=E$.transform(R,n);break;case"remove_node":var{path:B}=n,F=B[B.length-1];if(m$.parent(e,B).children.splice(F,1),t)for(var[L,_]of k$.points(t)){var I=E$.transform(L,n);if(null!=t&&null!=I)t[_]=I;else{var $=void 0,z=void 0;for(var[V,W]of m$.texts(e)){if(-1!==b$.compare(W,B)){z=[V,W];break}$=[V,W]}var U=!1;$&&z&&(U=b$.equals(z[1],B)?!b$.hasPrevious(z[1]):b$.common($[1],B).length<b$.common(z[1],B).length),$&&!U?(L.path=$[1],L.offset=$[0].text.length):z?(L.path=z[1],L.offset=0):t=null}}break;case"remove_text":var{path:H,offset:q,text:X}=n;if(0===X.length)break;var G=m$.leaf(e,H),Y=G.text.slice(0,q),K=G.text.slice(q+X.length);if(G.text=Y+K,t)for(var[Z,J]of k$.points(t))t[J]=E$.transform(Z,n);break;case"set_node":var{path:Q,properties:ee,newProperties:te}=n;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var ne=m$.get(e,Q);for(var oe in te){if("children"===oe||"text"===oe)throw new Error('Cannot set the "'.concat(oe,'" property of nodes!'));var re=te[oe];null==re?delete ne[oe]:ne[oe]=re}for(var ie in ee)te.hasOwnProperty(ie)||delete ne[ie];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!k$.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(M$.stringify(ae)," when there is no current selection."));t=_$({},ae)}for(var se in ae){var le=ae[se];if(null==le){if("anchor"===se||"focus"===se)throw new Error('Cannot remove the "'.concat(se,'" selection property'));delete t[se]}else t[se]=le}}break;case"split_node":var{path:ce,position:ue,properties:pe}=n;if(0===ce.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(ce,"] because the root node cannot be split."));var de,fe=m$.get(e,ce),he=m$.parent(e,ce),me=ce[ce.length-1];if(F$.isText(fe)){var ve=fe.text.slice(0,ue),xe=fe.text.slice(ue);fe.text=ve,de=_$(_$({},pe),{},{text:xe})}else{var ge=fe.children.slice(0,ue),be=fe.children.slice(ue);fe.children=ge,de=_$(_$({},pe),{},{children:be})}if(he.children.splice(me+1,0,de),t)for(var[ye,we]of k$.points(t))t[we]=E$.transform(ye,n)}return t})(e,n,t)}finally{e.children=gI(e.children),e.selection=n?w_(n)?gI(n):n:null}}},$$=["text"],z$=["children"];function V$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function W$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V$(Object(n),!0).forEach((function(t){bI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var U$={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u$.withoutNormalizing(e,(()=>{var{hanging:o=!1,voids:r=!1,mode:i="lowest"}=n,{at:a,match:s,select:l}=n;if(m$.isNode(t)&&(t=[t]),0!==t.length){var[c]=t;if(a||(a=e.selection?e.selection:e.children.length>0?u$.end(e,[]):[0],l=!0),null==l&&(l=!1),k$.isRange(a))if(o||(a=u$.unhangRange(e,a)),k$.isCollapsed(a))a=a.anchor;else{var[,u]=k$.edges(a),p=u$.pointRef(e,u);ez.delete(e,{at:a}),a=p.unref()}if(E$.isPoint(a)){null==s&&(s=F$.isText(c)?e=>F$.isText(e):e.isInline(c)?t=>F$.isText(t)||u$.isInline(e,t):t=>u$.isBlock(e,t));var[d]=u$.nodes(e,{at:a.path,match:s,mode:i,voids:r});if(!d)return;var[,f]=d,h=u$.pathRef(e,f),m=u$.isEnd(e,a,f);ez.splitNodes(e,{at:a,match:s,mode:i,voids:r});var v=h.unref();a=m?b$.next(v):v}var x=b$.parent(a),g=a[a.length-1];if(r||!u$.void(e,{at:x})){for(var b of t){var y=x.concat(g);g++,e.apply({type:"insert_node",path:y,node:b}),a=b$.next(a)}if(a=b$.previous(a),l){var w=u$.end(e,a);w&&ez.select(e,w)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u$.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:o="lowest",voids:r=!1}=t,{match:i}=t;if(null==i&&(i=b$.isPath(n)?X$(e,n):t=>u$.isBlock(e,t)),n){var a=u$.nodes(e,{at:n,match:i,mode:o,voids:r}),s=Array.from(a,(t=>{var[,n]=t;return u$.pathRef(e,n)}));for(var l of s){var c=l.unref();if(c.length<2)throw new Error("Cannot lift node at a path [".concat(c,"] because it has a depth of less than `2`."));var u=u$.node(e,b$.parent(c)),[p,d]=u,f=c[c.length-1],{length:h}=p.children;if(1===h){var m=b$.next(d);ez.moveNodes(e,{at:c,to:m,voids:r}),ez.removeNodes(e,{at:d,voids:r})}else if(0===f)ez.moveNodes(e,{at:c,to:d,voids:r});else if(f===h-1){var v=b$.next(d);ez.moveNodes(e,{at:c,to:v,voids:r})}else{var x=b$.next(c),g=b$.next(d);ez.splitNodes(e,{at:x,voids:r}),ez.moveNodes(e,{at:c,to:g,voids:r})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u$.withoutNormalizing(e,(()=>{var{match:n,at:o=e.selection}=t,{hanging:r=!1,voids:i=!1,mode:a="lowest"}=t;if(o){if(null==n)if(b$.isPath(o)){var[s]=u$.parent(e,o);n=e=>s.children.includes(e)}else n=t=>u$.isBlock(e,t);if(!r&&k$.isRange(o)&&(o=u$.unhangRange(e,o)),k$.isRange(o))if(k$.isCollapsed(o))o=o.anchor;else{var[,l]=k$.edges(o),c=u$.pointRef(e,l);ez.delete(e,{at:o}),o=c.unref(),null==t.at&&ez.select(e,o)}var[u]=u$.nodes(e,{at:o,match:n,voids:i,mode:a}),p=u$.previous(e,{at:o,match:n,voids:i,mode:a});if(u&&p){var[d,f]=u,[h,m]=p;if(0!==f.length&&0!==m.length){var v,x,g=b$.next(m),b=b$.common(f,m),y=b$.isSibling(f,m),w=Array.from(u$.levels(e,{at:f}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),C=u$.above(e,{at:f,mode:"highest",match:t=>w.includes(t)&&H$(e,t)}),E=C&&u$.pathRef(e,C[1]);if(F$.isText(d)&&F$.isText(h)){var O=jI(d,$$);x=h.text.length,v=O}else{if(!r$.isElement(d)||!r$.isElement(h))throw new Error("Cannot merge the node at path [".concat(f,"] with the previous sibling because it is not the same kind: ").concat(M$.stringify(d)," ").concat(M$.stringify(h)));O=jI(d,z$);x=h.children.length,v=O}y||ez.moveNodes(e,{at:f,to:g,voids:i}),E&&ez.removeNodes(e,{at:E.current,voids:i}),r$.isElement(h)&&u$.isEmpty(e,h)||F$.isText(h)&&""===h.text&&0!==m[m.length-1]?ez.removeNodes(e,{at:m,voids:i}):e.apply({type:"merge_node",path:g,position:x,properties:v}),E&&E.unref()}}}}))},moveNodes(e,t){u$.withoutNormalizing(e,(()=>{var{to:n,at:o=e.selection,mode:r="lowest",voids:i=!1}=t,{match:a}=t;if(o){null==a&&(a=b$.isPath(o)?X$(e,o):t=>u$.isBlock(e,t));var s=u$.pathRef(e,n),l=u$.nodes(e,{at:o,match:a,mode:r,voids:i}),c=Array.from(l,(t=>{var[,n]=t;return u$.pathRef(e,n)}));for(var u of c){var p=u.unref(),d=s.current;0!==p.length&&e.apply({type:"move_node",path:p,newPath:d}),s.current&&b$.isSibling(d,p)&&b$.isAfter(d,p)&&(s.current=b$.next(s.current))}s.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u$.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:o=!1,mode:r="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=b$.isPath(i)?X$(e,i):t=>u$.isBlock(e,t)),!n&&k$.isRange(i)&&(i=u$.unhangRange(e,i));var s=u$.nodes(e,{at:i,match:a,mode:r,voids:o}),l=Array.from(s,(t=>{var[,n]=t;return u$.pathRef(e,n)}));for(var c of l){var u=c.unref();if(u){var[p]=u$.node(e,u);e.apply({type:"remove_node",path:u,node:p})}}}}))},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u$.withoutNormalizing(e,(()=>{var{match:o,at:r=e.selection,compare:i,merge:a}=n,{hanging:s=!1,mode:l="lowest",split:c=!1,voids:u=!1}=n;if(r){if(null==o&&(o=b$.isPath(r)?X$(e,r):t=>u$.isBlock(e,t)),!s&&k$.isRange(r)&&(r=u$.unhangRange(e,r)),c&&k$.isRange(r)){if(k$.isCollapsed(r)&&u$.leaf(e,r.anchor)[0].text.length>0)return;var p=u$.rangeRef(e,r,{affinity:"inward"}),[d,f]=k$.edges(r),h="lowest"===l?"lowest":"highest",m=u$.isEnd(e,f,f.path);ez.splitNodes(e,{at:f,match:o,mode:h,voids:u,always:!m});var v=u$.isStart(e,d,d.path);ez.splitNodes(e,{at:d,match:o,mode:h,voids:u,always:!v}),r=p.unref(),null==n.at&&ez.select(e,r)}for(var[x,g]of(i||(i=(e,t)=>e!==t),u$.nodes(e,{at:r,match:o,mode:l,voids:u}))){var b={},y={};if(0!==g.length){var w=!1;for(var C in t)"children"!==C&&"text"!==C&&i(t[C],x[C])&&(w=!0,x.hasOwnProperty(C)&&(b[C]=x[C]),a?null!=t[C]&&(y[C]=a(x[C],t[C])):null!=t[C]&&(y[C]=t[C]));w&&e.apply({type:"set_node",path:g,properties:b,newProperties:y})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u$.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:o=!1}=t,{match:r,at:i=e.selection,height:a=0,always:s=!1}=t;if(null==r&&(r=t=>u$.isBlock(e,t)),k$.isRange(i)&&(i=q$(e,i)),b$.isPath(i)){var l=i,c=u$.point(e,l),[u]=u$.parent(e,l);r=e=>e===u,a=c.path.length-l.length+1,i=c,s=!0}if(i){var p,d=u$.pointRef(e,i,{affinity:"backward"});try{var[f]=u$.nodes(e,{at:i,match:r,mode:n,voids:o});if(!f)return;var h=u$.void(e,{at:i,mode:"highest"});if(!o&&h){var[m,v]=h;if(r$.isElement(m)&&e.isInline(m)){var x=u$.after(e,v);if(!x){var g=b$.next(v);ez.insertNodes(e,{text:""},{at:g,voids:o}),x=u$.point(e,g)}i=x,s=!0}a=i.path.length-v.length+1,s=!0}p=u$.pointRef(e,i);var b=i.path.length-a,[,y]=f,w=i.path.slice(0,b),C=0===a?i.offset:i.path[b]+0;for(var[E,O]of u$.levels(e,{at:w,reverse:!0,voids:o})){var D=!1;if(O.length<y.length||0===O.length||!o&&u$.isVoid(e,E))break;var S=d.current,k=u$.isEnd(e,S,O);if(s||!d||!u$.isEdge(e,S,O)){D=!0;var T=m$.extractProps(E);e.apply({type:"split_node",path:O,position:C,properties:T})}C=O[O.length-1]+(D||k?1:0)}if(null==t.at){var j=p.current||u$.end(e,[]);ez.select(e,j)}}finally{var M;d.unref(),null===(M=p)||void 0===M||M.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var o={};for(var r of t)o[r]=null;ez.setNodes(e,o,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u$.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:o=!1,voids:r=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=b$.isPath(i)?X$(e,i):t=>u$.isBlock(e,t)),b$.isPath(i)&&(i=u$.range(e,i));var s=k$.isRange(i)?u$.rangeRef(e,i):null,l=u$.nodes(e,{at:i,match:a,mode:n,voids:r}),c=Array.from(l,(t=>{var[,n]=t;return u$.pathRef(e,n)})).reverse(),u=function(t){var n=t.unref(),[i]=u$.node(e,n),a=u$.range(e,n);o&&s&&(a=k$.intersection(s.current,a)),ez.liftNodes(e,{at:a,match:e=>r$.isAncestor(i)&&i.children.includes(e),voids:r})};for(var p of c)u(p);s&&s.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u$.withoutNormalizing(e,(()=>{var{mode:o="lowest",split:r=!1,voids:i=!1}=n,{match:a,at:s=e.selection}=n;if(s){if(null==a&&(a=b$.isPath(s)?X$(e,s):e.isInline(t)?t=>u$.isInline(e,t)||F$.isText(t):t=>u$.isBlock(e,t)),r&&k$.isRange(s)){var[l,c]=k$.edges(s),u=u$.rangeRef(e,s,{affinity:"inward"});ez.splitNodes(e,{at:c,match:a,voids:i}),ez.splitNodes(e,{at:l,match:a,voids:i}),s=u.unref(),null==n.at&&ez.select(e,s)}var p=Array.from(u$.nodes(e,{at:s,match:e.isInline(t)?t=>u$.isBlock(e,t):e=>u$.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of p){var f=k$.isRange(s)?k$.intersection(s,u$.range(e,d)):s;if(f){var h=Array.from(u$.nodes(e,{at:f,match:a,mode:o,voids:i}));if(h.length>0){var m=function(){var[n]=h,o=h[h.length-1],[,r]=n,[,a]=o;if(0===r.length&&0===a.length)return"continue";var s=b$.equals(r,a)?b$.parent(r):b$.common(r,a),l=u$.range(e,r,a),c=u$.node(e,s),[u]=c,p=s.length+1,d=b$.next(a.slice(0,p)),f=W$(W$({},t),{},{children:[]});ez.insertNodes(e,f,{at:d,voids:i}),ez.moveNodes(e,{at:l,match:e=>r$.isAncestor(u)&&u.children.includes(e),to:d.concat(0),voids:i})}();if("continue"===m)continue}}}}}))}},H$=(e,t)=>{if(r$.isElement(t)){var n=t;return!!u$.isVoid(e,t)||1===n.children.length&&H$(e,n.children[0])}return!u$.isEditor(t)},q$=(e,t)=>{if(k$.isCollapsed(t))return t.anchor;var[,n]=k$.edges(t),o=u$.pointRef(e,n);return ez.delete(e,{at:t}),o.unref()},X$=(e,t)=>{var[n]=u$.node(e,t);return e=>e===n};function G$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Y$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G$(Object(n),!0).forEach((function(t){bI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var K$={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:o}=e;if(o)if("anchor"===n)ez.select(e,o.anchor);else if("focus"===n)ez.select(e,o.focus);else if("start"===n){var[r]=k$.edges(o);ez.select(e,r)}else if("end"===n){var[,i]=k$.edges(o);ez.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:o=1,unit:r="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=k$.isBackward(n)?"focus":"anchor"),"end"===a&&(a=k$.isBackward(n)?"anchor":"focus");var{anchor:s,focus:l}=n,c={distance:o,unit:r},u={};if(null==a||"anchor"===a){var p=i?u$.before(e,s,c):u$.after(e,s,c);p&&(u.anchor=p)}if(null==a||"focus"===a){var d=i?u$.before(e,l,c):u$.after(e,l,c);d&&(u.focus=d)}ez.setSelection(e,u)}},select(e,t){var{selection:n}=e;if(t=u$.range(e,t),n)ez.setSelection(e,t);else{if(!k$.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(M$.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:o}=e,{edge:r="both"}=n;if(o){"start"===r&&(r=k$.isBackward(o)?"focus":"anchor"),"end"===r&&(r=k$.isBackward(o)?"anchor":"focus");var{anchor:i,focus:a}=o,s="anchor"===r?i:a;ez.setSelection(e,{["anchor"===r?"anchor":"focus"]:Y$(Y$({},s),t)})}},setSelection(e,t){var{selection:n}=e,o={},r={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!E$.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!E$.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(o[i]=n[i],r[i]=t[i]);Object.keys(o).length>0&&e.apply({type:"set_selection",properties:o,newProperties:r})}}},Z$={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u$.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:o="character",distance:r=1,voids:i=!1}=t,{at:a=e.selection,hanging:s=!1}=t;if(a){var l=!1;if(k$.isRange(a)&&k$.isCollapsed(a)&&(l=!0,a=a.anchor),E$.isPoint(a)){var c=u$.void(e,{at:a,mode:"highest"});if(!i&&c){var[,u]=c;a=u}else{var p={unit:o,distance:r};a={anchor:a,focus:n?u$.before(e,a,p)||u$.start(e,[]):u$.after(e,a,p)||u$.end(e,[])},s=!0}}if(b$.isPath(a))ez.removeNodes(e,{at:a,voids:i});else if(!k$.isCollapsed(a)){if(!s){var[,d]=k$.edges(a),f=u$.end(e,[]);E$.equals(d,f)||(a=u$.unhangRange(e,a,{voids:i}))}var[h,m]=k$.edges(a),v=u$.above(e,{match:t=>u$.isBlock(e,t),at:h,voids:i}),x=u$.above(e,{match:t=>u$.isBlock(e,t),at:m,voids:i}),g=v&&x&&!b$.equals(v[1],x[1]),b=b$.equals(h.path,m.path),y=i?null:u$.void(e,{at:h,mode:"highest"}),w=i?null:u$.void(e,{at:m,mode:"highest"});if(y){var C=u$.before(e,h);C&&v&&b$.isAncestor(v[1],C.path)&&(h=C)}if(w){var E=u$.after(e,m);E&&x&&b$.isAncestor(x[1],E.path)&&(m=E)}var O,D=[];for(var S of u$.nodes(e,{at:a,voids:i})){var[k,T]=S;O&&0===b$.compare(T,O)||(!i&&u$.isVoid(e,k)||!b$.isCommon(T,h.path)&&!b$.isCommon(T,m.path))&&(D.push(S),O=T)}var j=Array.from(D,(t=>{var[,n]=t;return u$.pathRef(e,n)})),M=u$.pointRef(e,h),A=u$.pointRef(e,m),N="";if(!b&&!y){var R=M.current,[P]=u$.leaf(e,R),{path:B}=R,{offset:F}=h,L=P.text.slice(F);L.length>0&&(e.apply({type:"remove_text",path:B,offset:F,text:L}),N=L)}if(j.reverse().map((e=>e.unref())).filter((e=>null!==e)).forEach((t=>ez.removeNodes(e,{at:t,voids:i}))),!w){var _=A.current,[I]=u$.leaf(e,_),{path:$}=_,z=b?h.offset:0,V=I.text.slice(z,m.offset);V.length>0&&(e.apply({type:"remove_text",path:$,offset:z,text:V}),N=V)}!b&&g&&A.current&&M.current&&ez.mergeNodes(e,{at:A.current,hanging:!0,voids:i}),l&&n&&"character"===o&&N.length>1&&N.match(/[\u0E00-\u0E7F]+/)&&ez.insertText(e,N.slice(0,N.length-r));var W=M.unref(),U=A.unref(),H=n?W||U:U||W;null==t.at&&H&&ez.select(e,H)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u$.withoutNormalizing(e,(()=>{var{hanging:o=!1,voids:r=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(k$.isRange(i))if(o||(i=u$.unhangRange(e,i)),k$.isCollapsed(i))i=i.anchor;else{var[,a]=k$.edges(i);if(!r&&u$.void(e,{at:a}))return;var s=u$.pointRef(e,a);ez.delete(e,{at:i}),i=s.unref()}else b$.isPath(i)&&(i=u$.start(e,i));if(r||!u$.void(e,{at:i})){var l=u$.above(e,{at:i,match:t=>u$.isInline(e,t),mode:"highest",voids:r});if(l){var[,c]=l;if(u$.isEnd(e,i,c))i=u$.after(e,c);else if(u$.isStart(e,i,c)){i=u$.before(e,c)}}var u=u$.above(e,{match:t=>u$.isBlock(e,t),at:i,voids:r}),[,p]=u,d=u$.isStart(e,i,p),f=u$.isEnd(e,i,p),h=d&&f,m=!d||d&&f,v=!f,[,x]=m$.first({children:t},[]),[,g]=m$.last({children:t},[]),b=[],y=t=>{var[n,o]=t;return!(0===o.length)&&(!!h||!(m&&b$.isAncestor(o,x)&&r$.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(v&&b$.isAncestor(o,g)&&r$.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var w of m$.nodes({children:t},{pass:y}))y(w)&&b.push(w);var C=[],E=[],O=[],D=!0,S=!1;for(var[k]of b)r$.isElement(k)&&!e.isInline(k)?(D=!1,S=!0,E.push(k)):D?C.push(k):O.push(k);var[T]=u$.nodes(e,{at:i,match:t=>F$.isText(t)||u$.isInline(e,t),mode:"highest",voids:r}),[,j]=T,M=u$.isStart(e,i,j),A=u$.isEnd(e,i,j),N=u$.pathRef(e,f&&!O.length?b$.next(p):p),R=u$.pathRef(e,A?b$.next(j):j);ez.splitNodes(e,{at:i,match:t=>S?u$.isBlock(e,t):F$.isText(t)||u$.isInline(e,t),mode:S?"lowest":"highest",always:S&&(!d||C.length>0)&&(!f||O.length>0),voids:r});var P,B=u$.pathRef(e,!M||M&&A?b$.next(j):j);if(ez.insertNodes(e,C,{at:B.current,match:t=>F$.isText(t)||u$.isInline(e,t),mode:"highest",voids:r}),h&&!C.length&&E.length&&!O.length&&ez.delete(e,{at:p,voids:r}),ez.insertNodes(e,E,{at:N.current,match:t=>u$.isBlock(e,t),mode:"lowest",voids:r}),ez.insertNodes(e,O,{at:R.current,match:t=>F$.isText(t)||u$.isInline(e,t),mode:"highest",voids:r}),!n.at)if(O.length>0&&R.current?P=b$.previous(R.current):E.length>0&&N.current?P=b$.previous(N.current):B.current&&(P=b$.previous(B.current)),P){var F=u$.end(e,P);ez.select(e,F)}B.unref(),N.unref(),R.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u$.withoutNormalizing(e,(()=>{var{voids:o=!1}=n,{at:r=e.selection}=n;if(r){if(b$.isPath(r)&&(r=u$.range(e,r)),k$.isRange(r))if(k$.isCollapsed(r))r=r.anchor;else{var i=k$.end(r);if(!o&&u$.void(e,{at:i}))return;var a=k$.start(r),s=u$.pointRef(e,a),l=u$.pointRef(e,i);ez.delete(e,{at:r,voids:o});var c=s.unref(),u=l.unref();r=c||u,ez.setSelection(e,{anchor:r,focus:r})}if(o||!u$.void(e,{at:r})){var{path:p,offset:d}=r;t.length>0&&e.apply({type:"insert_text",path:p,offset:d,text:t})}}}))}};function J$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Q$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J$(Object(n),!0).forEach((function(t){bI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ez=Q$(Q$(Q$(Q$({},I$),U$),K$),Z$),tz=function(e){if(e=String(e||""),oz.test(e))return"rtl";if(rz.test(e))return"ltr";return"neutral"},nz="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",oz=new RegExp("^[^"+nz+"]*[֑-߿יִ-﷽ﹰ-ﻼ]"),rz=new RegExp("^[^֑-߿יִ-﷽ﹰ-ﻼ]*["+nz+"]");var iz=aA,az=/\s/;var sz=function(e){for(var t=e.length;t--&&az.test(e.charAt(t)););return t},lz=sz,cz=/^\s+/;var uz=gA,pz=uR;var dz=function(e){return"symbol"==typeof e||pz(e)&&"[object Symbol]"==uz(e)},fz=function(e){return e?e.slice(0,lz(e)+1).replace(cz,""):e},hz=bA,mz=dz,vz=/^[-+]0x[0-9a-f]+$/i,xz=/^0b[01]+$/i,gz=/^0o[0-7]+$/i,bz=parseInt;var yz=function(e){if("number"==typeof e)return e;if(mz(e))return NaN;if(hz(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=hz(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=fz(e);var n=xz.test(e);return n||gz.test(e)?bz(e.slice(2),n?2:8):vz.test(e)?NaN:+e},wz=bA,Cz=function(){return iz.Date.now()},Ez=yz,Oz=Math.max,Dz=Math.min;var Sz=function(e,t,n){var o,r,i,a,s,l,c=0,u=!1,p=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=o,i=r;return o=r=void 0,c=t,a=e.apply(i,n)}function h(e){return c=e,s=setTimeout(v,t),u?f(e):a}function m(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-c>=i}function v(){var e=Cz();if(m(e))return x(e);s=setTimeout(v,function(e){var n=t-(e-l);return p?Dz(n,i-(e-c)):n}(e))}function x(e){return s=void 0,d&&o?f(e):(o=r=void 0,a)}function g(){var e=Cz(),n=m(e);if(o=arguments,r=this,l=e,n){if(void 0===s)return h(l);if(p)return clearTimeout(s),s=setTimeout(v,t),f(l)}return void 0===s&&(s=setTimeout(v,t)),a}return t=Ez(t)||0,wz(n)&&(u=!!n.leading,i=(p="maxWait"in n)?Oz(Ez(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),g.cancel=function(){void 0!==s&&clearTimeout(s),c=0,o=l=r=s=void 0},g.flush=function(){return void 0===s?a:x(Cz())},g},kz=Sz,Tz=bA;var jz=function(e,t,n){var o=!0,r=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Tz(n)&&(o="leading"in n?!!n.leading:o,r="trailing"in n?!!n.trailing:r),kz(e,t,{leading:o,maxWait:t,trailing:r})};function Mz(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function Az(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function Nz(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Az(n.overflowY,t)||Az(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function Rz(e,t,n,o,r,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-o:a>t&&s<n||i<e&&s>n?a-t+r:0}function Pz(e,t){var n=window,o=t.scrollMode,r=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!Mz(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,u=[],p=e;Mz(p)&&l(p);){if((p=p.parentElement)===c){u.push(p);break}null!=p&&p===document.body&&Nz(p)&&!Nz(document.documentElement)||null!=p&&Nz(p,s)&&u.push(p)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,f=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),x=v.height,g=v.width,b=v.top,y=v.right,w=v.bottom,C=v.left,E="start"===r||"nearest"===r?b:"end"===r?w:b+x/2,O="center"===i?C+g/2:"end"===i?y:C,D=[],S=0;S<u.length;S++){var k=u[S],T=k.getBoundingClientRect(),j=T.height,M=T.width,A=T.top,N=T.right,R=T.bottom,P=T.left;if("if-needed"===o&&b>=0&&C>=0&&w<=f&&y<=d&&b>=A&&w<=R&&C>=P&&y<=N)return D;var B=getComputedStyle(k),F=parseInt(B.borderLeftWidth,10),L=parseInt(B.borderTopWidth,10),_=parseInt(B.borderRightWidth,10),I=parseInt(B.borderBottomWidth,10),$=0,z=0,V="offsetWidth"in k?k.offsetWidth-k.clientWidth-F-_:0,W="offsetHeight"in k?k.offsetHeight-k.clientHeight-L-I:0;if(c===k)$="start"===r?E:"end"===r?E-f:"nearest"===r?Rz(m,m+f,f,L,I,m+E,m+E+x,x):E-f/2,z="start"===i?O:"center"===i?O-d/2:"end"===i?O-d:Rz(h,h+d,d,F,_,h+O,h+O+g,g),$=Math.max(0,$+m),z=Math.max(0,z+h);else{$="start"===r?E-A-L:"end"===r?E-R+I+W:"nearest"===r?Rz(A,R,j,L,I+W,E,E+x,x):E-(A+j/2)+W/2,z="start"===i?O-P-F:"center"===i?O-(P+M/2)+V/2:"end"===i?O-N+_+V:Rz(P,N,M,F,_+V,O,O+g,g);var U=k.scrollLeft,H=k.scrollTop;E+=H-($=Math.max(0,Math.min(H+$,k.scrollHeight-j+W))),O+=U-(z=Math.max(0,Math.min(U+z,k.scrollWidth-M+V)))}D.push({el:k,top:$,left:z})}return D}function Bz(e){return e===Object(e)&&0!==Object.keys(e).length}function Fz(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(Bz(t)&&"function"==typeof t.behavior)return t.behavior(n?Pz(e,t):[]);if(n){var o=function(e){return!1===e?{block:"end",inline:"nearest"}:Bz(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var o=e.el,r=e.top,i=e.left;o.scroll&&n?o.scroll({top:r,left:i,behavior:t}):(o.scrollTop=r,o.scrollLeft=i)}))}(Pz(e,o),o.behavior)}}var Lz={};Object.defineProperty(Lz,"__esModule",{value:!0});for(var _z="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Iz={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},$z={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:_z?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},zz={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},Vz=1;Vz<20;Vz++)zz["f"+Vz]=111+Vz;function Wz(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var o=e.map((function(e){return Uz(e,t)})),r=function(e){return o.some((function(t){return Hz(t,e)}))};return null==n?r:r(n)}function Uz(e,t){var n=t&&t.byKey,o={},r=(e=e.replace("++","+add")).split("+"),i=r.length;for(var a in Iz)o[Iz[a]]=!1;var s=!0,l=!1,c=void 0;try{for(var u,p=r[Symbol.iterator]();!(s=(u=p.next()).done);s=!0){var d=u.value,f=d.endsWith("?")&&d.length>1;f&&(d=d.slice(0,-1));var h=Xz(d),m=Iz[h];1!==i&&m||(n?o.key=h:o.which=qz(d)),m&&(o[m]=!f||null)}}catch(e){l=!0,c=e}finally{try{!s&&p.return&&p.return()}finally{if(l)throw c}}return o}function Hz(e,t){for(var n in e){var o=e[n],r=void 0;if(null!=o&&((null!=(r="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===o&&93===t.which?91:t.which:t[n])||!1!==o)&&r!==o))return!1}return!0}function qz(e){return e=Xz(e),zz[e]||e.toUpperCase().charCodeAt(0)}function Xz(e){return e=e.toLowerCase(),e=$z[e]||e}Lz.default=Wz,Lz.isHotkey=Wz,Lz.isCodeHotkey=function(e,t){return Wz(e,t)};var Gz=Lz.isKeyHotkey=function(e,t){return Wz(e,{byKey:!0},t)};function Yz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kz(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}Lz.parseHotkey=Uz,Lz.compareHotkey=Hz,Lz.toKeyCode=qz,Lz.toKeyName=Xz;var Zz=0;class Jz{constructor(){this.id="".concat(Zz++)}}var Qz=new WeakMap,eV=new WeakMap,tV=new WeakMap,nV=new WeakMap,oV=new WeakMap,rV=new WeakMap,iV=new WeakMap,aV=new WeakMap,sV=new WeakMap,lV=new WeakMap,cV=new WeakMap,uV=new WeakMap,pV=new WeakMap,dV=new WeakMap,fV=new WeakMap,hV=new WeakMap,mV=new WeakMap,vV=new WeakMap,xV=new WeakMap,gV=new WeakMap,bV=new WeakMap,yV=Symbol("placeholder"),wV=Symbol("mark-placeholder"),CV=globalThis.Text,EV=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,OV=e=>DV(e)&&1===e.nodeType,DV=e=>{var t=EV(e);return!!t&&e instanceof t.Node},SV=e=>{var t=e&&e.anchorNode&&EV(e.anchorNode);return!!t&&e instanceof t.Selection},kV=e=>DV(e)&&3===e.nodeType,TV=(e,t,n)=>{for(var o,{childNodes:r}=e,i=r[t],a=t,s=!1,l=!1;(DV(o=i)&&8===o.nodeType||OV(i)&&0===i.childNodes.length||OV(i)&&"false"===i.getAttribute("contenteditable"))&&(!s||!l);)a>=r.length?(s=!0,a=t-1,n="backward"):a<0?(l=!0,a=t+1,n="forward"):(i=r[a],t=a,a+="forward"===n?1:-1);return[i,t]},jV=(e,t,n)=>{var[o]=TV(e,t,n);return o},MV=e=>{var t="";if(kV(e)&&e.nodeValue)return e.nodeValue;if(OV(e)){for(var n of Array.from(e.childNodes))t+=MV(n);var o=getComputedStyle(e).getPropertyValue("display");"block"!==o&&"list"!==o&&"BR"!==e.tagName||(t+="\n")}return t},AV=/data-slate-fragment="(.+?)"/m,NV=(e,t,n)=>{var{target:o}=t;if(OV(o)&&o.matches('[contentEditable="false"]'))return!1;var{document:r}=GV.getWindow(e);if(r.contains(o))return GV.hasDOMNode(e,o,{editable:!0});var i=n.find((e=>{var{addedNodes:t,removedNodes:n}=e;for(var r of t)if(r===o||r.contains(o))return!0;for(var i of n)if(i===o||i.contains(o))return!0}));return!(!i||i===t)&&NV(e,i,n)},RV=parseInt(c.default.version.split(".")[0],10)>=17,PV="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,BV="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),FV="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),LV="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),_V="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),IV="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),$V="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),zV="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),VV="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),WV="undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent),UV="undefined"!=typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),HV="undefined"!=typeof navigator&&/.*Wechat/.test(navigator.userAgent),qV=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),XV=!zV&&!IV&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,GV={isComposing:e=>!!uV.get(e),getWindow(e){var t=tV.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey(e,t){var n=aV.get(t);return n||(n=new Jz,aV.set(t,n)),n},findPath(e,t){for(var n=[],o=t;;){var r=eV.get(o);if(null==r){if(u$.isEditor(o))return n;break}var i=Qz.get(o);if(null==i)break;n.unshift(i),o=r}throw new Error("Unable to find the path for Slate node: ".concat(M$.stringify(t)))},findDocumentOrShadowRoot(e){var t=GV.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},isFocused:e=>!!cV.get(e),isReadOnly:e=>!!lV.get(e),blur(e){var t=GV.toDOMNode(e,e),n=GV.findDocumentOrShadowRoot(e);cV.set(e,!1),n.activeElement===t&&t.blur()},focus(e){var t=GV.toDOMNode(e,e),n=GV.findDocumentOrShadowRoot(e);cV.set(e,!0),n.activeElement!==t&&t.focus({preventScroll:!0})},deselect(e){var{selection:t}=e,n=GV.findDocumentOrShadowRoot(e).getSelection();n&&n.rangeCount>0&&n.removeAllRanges(),t&&ez.deselect(e)},hasDOMNode(e,t){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{editable:r=!1}=o,i=GV.toDOMNode(e,e);try{n=OV(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!n&&!(n.closest("[data-slate-editor]")!==i||r&&!n.isContentEditable&&("boolean"!=typeof n.isContentEditable||n.closest('[contenteditable="false"]')!==i)&&!n.getAttribute("data-slate-zero-width"))},insertData(e,t){e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),setFragmentData(e,t,n){e.setFragmentData(t,n)},toDOMNode(e,t){var n=sV.get(e),o=u$.isEditor(t)?nV.get(e):null==n?void 0:n.get(GV.findKey(e,t));if(!o)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(M$.stringify(t)));return o},toDOMPoint(e,t){var n,[o]=u$.node(e,t.path),r=GV.toDOMNode(e,o);u$.void(e,{at:t})&&(t={path:t.path,offset:0});for(var i=Array.from(r.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),a=0,s=0;s<i.length;s++){var l=i[s],c=l.childNodes[0];if(null!=c&&null!=c.textContent){var{length:u}=c.textContent,p=l.getAttribute("data-slate-length"),d=a+(null==p?u:parseInt(p,10)),f=i[s+1];if(t.offset===d&&null!=f&&f.hasAttribute("data-slate-mark-placeholder")){var h,m=f.childNodes[0];n=[m instanceof CV?m:f,null!==(h=f.textContent)&&void 0!==h&&h.startsWith("\ufeff")?1:0];break}if(t.offset<=d){n=[c,Math.min(u,Math.max(0,t.offset-a))];break}a=d}}if(!n)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(M$.stringify(t)));return n},toDOMRange(e,t){var{anchor:n,focus:o}=t,r=k$.isBackward(t),i=GV.toDOMPoint(e,n),a=k$.isCollapsed(t)?i:GV.toDOMPoint(e,o),s=GV.getWindow(e).document.createRange(),[l,c]=r?a:i,[u,p]=r?i:a,d=!!(OV(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),f=!!(OV(u)?u:u.parentElement).getAttribute("data-slate-zero-width");return s.setStart(l,d?1:c),s.setEnd(u,f?1:p),s},toSlateNode(e,t){var n=OV(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var o=n?rV.get(n):null;if(!o)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return o},findEventRange(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:n,clientY:o,target:r}=t;if(null==n||null==o)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var i,a=GV.toSlateNode(e,t.target),s=GV.findPath(e,a);if(u$.isVoid(e,a)){var l=r.getBoundingClientRect(),c=e.isInline(a)?n-l.left<l.left+l.width-n:o-l.top<l.top+l.height-o,u=u$.point(e,s,{edge:c?"start":"end"}),p=c?u$.before(e,u):u$.after(e,u);if(p)return u$.range(e,p)}var{document:d}=GV.getWindow(e);if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,o);else{var f=d.caretPositionFromPoint(n,o);f&&((i=d.createRange()).setStart(f.offsetNode,f.offset),i.setEnd(f.offsetNode,f.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));return GV.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlatePoint(e,t,n){var{exactMatch:o,suppressThrow:r}=n,[i,a]=o?t:(e=>{var[t,n]=e;if(OV(t)&&t.childNodes.length){var o=n===t.childNodes.length,r=o?n-1:n;for([t,r]=TV(t,r,o?"backward":"forward"),o=r<n;OV(t)&&t.childNodes.length;){var i=o?t.childNodes.length-1:0;t=jV(t,i,o?"backward":"forward")}n=o&&null!=t.textContent?t.textContent.length:0}return[t,n]})(t),s=i.parentNode,l=null,c=0;if(s){var u,p,d=GV.toDOMNode(e,e),f=s.closest('[data-slate-void="true"]'),h=f&&d.contains(f)?f:null,m=s.closest("[data-slate-leaf]"),v=null;if(m){if(l=m.closest('[data-slate-node="text"]')){var x=GV.getWindow(e).document.createRange();x.setStart(l,0),x.setEnd(i,a);var g=x.cloneContents();[...Array.prototype.slice.call(g.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(g.querySelectorAll("[contenteditable=false]"))].forEach((e=>{FV&&!o&&e.hasAttribute("data-slate-zero-width")&&e.textContent.length>0&&"\ufeff"!==e.textContext?e.textContent.startsWith("\ufeff")&&(e.textContent=e.textContent.slice(1)):e.parentNode.removeChild(e)})),c=g.textContent.length,v=l}}else if(h){for(var b=h.querySelectorAll("[data-slate-leaf]"),y=0;y<b.length;y++){var w=b[y];if(GV.hasDOMNode(e,w)){m=w;break}}m?(l=m.closest('[data-slate-node="text"]'),c=(v=m).textContent.length,v.querySelectorAll("[data-slate-zero-width]").forEach((e=>{c-=e.textContent.length}))):c=1}v&&c===v.textContent.length&&FV&&"z"===v.getAttribute("data-slate-zero-width")&&null!==(u=v.textContent)&&void 0!==u&&u.startsWith("\ufeff")&&(s.hasAttribute("data-slate-zero-width")||LV&&null!==(p=v.textContent)&&void 0!==p&&p.endsWith("\n\n"))&&c--}if(FV&&!l&&!o){var C=s.hasAttribute("data-slate-node")?s:s.closest("[data-slate-node]");if(C&&GV.hasDOMNode(e,C,{editable:!0})){var E=GV.toSlateNode(e,C),{path:O,offset:D}=u$.start(e,GV.findPath(e,E));return C.querySelector("[data-slate-leaf]")||(D=a),{path:O,offset:D}}}if(!l){if(r)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var S=GV.toSlateNode(e,l);return{path:GV.findPath(e,S),offset:c}},toSlateRange(e,t,n){var o,r,i,a,s,{exactMatch:l,suppressThrow:c}=n;if((SV(t)?t.anchorNode:t.startContainer)&&(SV(t)?(o=t.anchorNode,r=t.anchorOffset,i=t.focusNode,a=t.focusOffset,s=$V&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(o=t.startContainer,r=t.startOffset,i=t.endContainer,a=t.endOffset,s=t.collapsed)),null==o||null==i||null==r||null==a)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));var u=GV.toSlatePoint(e,[o,r],{exactMatch:l,suppressThrow:c});if(!u)return null;var p=s?u:GV.toSlatePoint(e,[i,a],{exactMatch:l,suppressThrow:c});if(!p)return null;var d={anchor:u,focus:p};return k$.isExpanded(d)&&k$.isForward(d)&&OV(i)&&u$.void(e,{at:d.focus,mode:"highest"})&&(d=u$.unhangRange(e,d,{voids:!0})),d},hasRange(e,t){var{anchor:n,focus:o}=t;return u$.hasPath(e,n.path)&&u$.hasPath(e,o.path)},androidScheduleFlush(e){var t;null===(t=fV.get(e))||void 0===t||t()},androidPendingDiffs:e=>vV.get(e)},YV=qV?n.useLayoutEffect:n.useEffect,KV=["anchor","focus"],ZV=["anchor","focus"],JV=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every((n=>t.hasOwnProperty(n)&&e[n]===t[n])),QV=(e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var o=e[n],r=t[n],i=Kz(o,KV),a=Kz(r,ZV);if(!k$.equals(o,r)||o[yV]!==r[yV]||!JV(i,a))return!1}return!0},eW=e=>{var{isLast:t,leaf:n,parent:o,text:r}=e,i=rW(),a=GV.findPath(i,r),s=b$.parent(a),l=!0===n[wV];return i.isVoid(o)?c.default.createElement(nW,{length:m$.string(o).length}):""!==n.text||o.children[o.children.length-1]!==r||i.isInline(o)||""!==u$.string(i,s)?""===n.text?c.default.createElement(nW,{isMarkPlaceholder:l}):t&&"\n"===n.text.slice(-1)?c.default.createElement(tW,{isTrailing:!0,text:n.text}):c.default.createElement(tW,{text:n.text}):c.default.createElement(nW,{isLineBreak:!0,isMarkPlaceholder:l})},tW=e=>{var{text:t,isTrailing:o=!1}=e,r=n.useRef(null),i=()=>"".concat(null!=t?t:"").concat(o?"\n":"");return YV((()=>{var e=i();r.current&&r.current.textContent!==e&&(r.current.textContent=e)})),r.current?c.default.createElement("span",{"data-slate-string":!0,ref:r}):c.default.createElement("span",{"data-slate-string":!0,ref:r},i())},nW=e=>{var{length:t=0,isLineBreak:n=!1,isMarkPlaceholder:o=!1}=e,r={"data-slate-zero-width":n?"n":"z","data-slate-length":t};return o&&(r["data-slate-mark-placeholder"]=!0),c.default.createElement("span",Object.assign({},r),FV&&n?null:"\ufeff",n?c.default.createElement("br",null):null)},oW=n.createContext(null),rW=()=>{var e=n.useContext(oW);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},iW=e=>{var{leaf:t,isLast:o,text:r,parent:i,renderPlaceholder:a,renderLeaf:s=(e=>c.default.createElement(sW,Object.assign({},e)))}=e,l=n.useRef(null),u=rW();n.useEffect((()=>{var e=null==l?void 0:l.current,t=GV.toDOMNode(u,u);if(e&&t)return t.style.minHeight="".concat(e.clientHeight,"px"),oV.set(u,e),()=>{t.style.minHeight="auto",oV.delete(u)}}),[l,t]);var p=c.default.createElement(eW,{isLast:o,leaf:t,parent:i,text:r});if(t[yV]){var d={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none"},contentEditable:!1,ref:l}};p=c.default.createElement(c.default.Fragment,null,a(d),p)}return s({attributes:{"data-slate-leaf":!0},children:p,leaf:t,text:r})},aW=c.default.memo(iW,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&F$.equals(t.leaf,e.leaf)&&t.leaf[yV]===e.leaf[yV])),sW=e=>{var{attributes:t,children:n}=e;return c.default.createElement("span",Object.assign({},t),n)},lW=e=>{for(var{decorations:t,isLast:o,parent:r,renderPlaceholder:i,renderLeaf:a,text:s}=e,l=rW(),u=n.useRef(null),p=F$.decorations(s,t),d=GV.findKey(l,s),f=[],h=0;h<p.length;h++){var m=p[h];f.push(c.default.createElement(aW,{isLast:o&&h===p.length-1,key:"".concat(d.id,"-").concat(h),renderPlaceholder:i,leaf:m,text:s,parent:r,renderLeaf:a}))}return YV((()=>{var e=sV.get(l);u.current?(null==e||e.set(d,u.current),iV.set(s,u.current),rV.set(u.current,s)):(null==e||e.delete(d),iV.delete(s))})),c.default.createElement("span",{"data-slate-node":"text",ref:u},f)},cW=c.default.memo(lW,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.text===e.text&&QV(t.decorations,e.decorations))),uW=e=>{var{decorations:t,element:o,renderElement:r=(e=>c.default.createElement(dW,Object.assign({},e))),renderPlaceholder:i,renderLeaf:a,selection:s}=e,l=rW(),u=xW(),p=l.isInline(o),d=GV.findKey(l,o),f=n.useCallback((e=>{var t=sV.get(l);e?(null==t||t.set(d,e),iV.set(o,e),rV.set(e,o)):(null==t||t.delete(d),iV.delete(o))}),[l,d,o]),h=mW({decorations:t,node:o,renderElement:r,renderPlaceholder:i,renderLeaf:a,selection:s}),m={"data-slate-node":"element",ref:f};if(p&&(m["data-slate-inline"]=!0),!p&&u$.hasInlines(l,o)){var v=m$.string(o),x=tz(v);"rtl"===x&&(m.dir=x)}if(u$.isVoid(l,o)){m["data-slate-void"]=!0,!u&&p&&(m.contentEditable=!1);var g=p?"span":"div",[[b]]=m$.texts(o);h=c.default.createElement(g,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},c.default.createElement(cW,{renderPlaceholder:i,decorations:[],isLast:!1,parent:o,text:b})),Qz.set(b,0),eV.set(b,o)}return r({attributes:m,children:h,element:o})},pW=c.default.memo(uW,((e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&QV(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&k$.equals(e.selection,t.selection)))),dW=e=>{var{attributes:t,children:n,element:o}=e,r=rW().isInline(o)?"span":"div";return c.default.createElement(r,Object.assign({},t,{style:{position:"relative"}}),n)},fW=n.createContext((()=>[])),hW=n.createContext(!1),mW=e=>{for(var{decorations:t,node:o,renderElement:r,renderPlaceholder:i,renderLeaf:a,selection:s}=e,l=n.useContext(fW),u=rW(),p=GV.findPath(u,o),d=[],f=r$.isElement(o)&&!u.isInline(o)&&u$.hasInlines(u,o),h=0;h<o.children.length;h++){var m=p.concat(h),v=o.children[h],x=GV.findKey(u,v),g=u$.range(u,m),b=s&&k$.intersection(g,s),y=l([v,m]);for(var w of t){var C=k$.intersection(w,g);C&&y.push(C)}r$.isElement(v)?d.push(c.default.createElement(hW.Provider,{key:"provider-".concat(x.id),value:!!b},c.default.createElement(pW,{decorations:y,element:v,key:x.id,renderElement:r,renderPlaceholder:i,renderLeaf:a,selection:b}))):d.push(c.default.createElement(cW,{decorations:y,key:x.id,isLast:f&&h===o.children.length-1,parent:o,renderPlaceholder:i,renderLeaf:a,text:v})),Qz.set(v,h),eV.set(v,o)}return d},vW=n.createContext(!1),xW=()=>n.useContext(vW),gW=n.createContext(null),bW={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},yW={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},wW={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},CW=e=>{var t=bW[e],n=yW[e],o=wW[e],r=t&&Gz(t),i=n&&Gz(n),a=o&&Gz(o);return e=>!(!r||!r(e))||(!!(BV&&i&&i(e))||!(BV||!a||!a(e)))},EW={isBold:CW("bold"),isCompose:CW("compose"),isMoveBackward:CW("moveBackward"),isMoveForward:CW("moveForward"),isDeleteBackward:CW("deleteBackward"),isDeleteForward:CW("deleteForward"),isDeleteLineBackward:CW("deleteLineBackward"),isDeleteLineForward:CW("deleteLineForward"),isDeleteWordBackward:CW("deleteWordBackward"),isDeleteWordForward:CW("deleteWordForward"),isExtendBackward:CW("extendBackward"),isExtendForward:CW("extendForward"),isExtendLineBackward:CW("extendLineBackward"),isExtendLineForward:CW("extendLineForward"),isItalic:CW("italic"),isMoveLineBackward:CW("moveLineBackward"),isMoveLineForward:CW("moveLineForward"),isMoveWordBackward:CW("moveWordBackward"),isMoveWordForward:CW("moveWordForward"),isRedo:CW("redo"),isSoftBreak:CW("insertSoftBreak"),isSplitBlock:CW("splitBlock"),isTransposeCharacter:CW("transposeCharacter"),isUndo:CW("undo")},OW={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class DW extends n.Component{constructor(){super(...arguments),this.context=null,this.manager=null,this.mutationObserver=null}observe(){var e,{node:t}=this.props;if(!t.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");null===(e=this.mutationObserver)||void 0===e||e.observe(t.current,OW)}componentDidMount(){var{receivedUserInput:e}=this.props,t=this.context;this.manager=((e,t)=>{var n=[],o=()=>{n=[]};return{registerMutations:o=>{if(t.current){var r=o.filter((t=>NV(e,t,o)));n.push(...r)}},restoreDOM:function(){n.reverse().forEach((e=>{"characterData"!==e.type?(e.removedNodes.forEach((t=>{e.target.insertBefore(t,e.nextSibling)})),e.addedNodes.forEach((t=>{e.target.removeChild(t)}))):e.target.textContent=e.oldValue})),o()},clear:o}})(t,e),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var e,t,n,o,r=null===(e=this.mutationObserver)||void 0===e?void 0:e.takeRecords();null!=r&&r.length&&(null===(o=this.manager)||void 0===o||o.registerMutations(r));return null===(t=this.mutationObserver)||void 0===t||t.disconnect(),null===(n=this.manager)||void 0===n||n.restoreDOM(),null}componentDidUpdate(){var e;null===(e=this.manager)||void 0===e||e.clear(),this.observe()}componentWillUnmount(){var e;null===(e=this.mutationObserver)||void 0===e||e.disconnect()}render(){return this.props.children}}DW.contextType=oW;var SW=FV?DW:e=>{var{children:t}=e;return c.default.createElement(c.default.Fragment,null,t)};function kW(e,t){var{path:n,diff:o}=t;if(!u$.hasPath(e,n))return!1;var r=m$.get(e,n);if(!F$.isText(r))return!1;if(o.start!==r.text.length||0===o.text.length)return r.text.slice(o.start,o.start+o.text.length)===o.text;var i=b$.next(n);if(!u$.hasPath(e,i))return!1;var a=m$.get(e,i);return F$.isText(a)&&a.text.startsWith(o.text)}function TW(e,t){var{start:n,end:o,text:r}=t,i=e.slice(n,o),a=function(e,t){for(var n=Math.min(e.length,t.length),o=0;o<n;o++)if(e.charAt(o)!==t.charAt(o))return o;return n}(i,r),s=function(e,t,n){for(var o=Math.min(e.length,t.length,n),r=0;r<o;r++)if(e.charAt(e.length-r-1)!==t.charAt(t.length-r-1))return r;return o}(i,r,Math.min(i.length-a,r.length-a)),l={start:n+a,end:o-s,text:r.slice(a,r.length-s)};return l.start===l.end&&0===l.text.length?null:l}function jW(e,t,n){var o=Math.min(t.start,n.start),r=Math.max(0,Math.min(t.start+t.text.length,n.end)-n.start),i=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return n.reduce(((e,t)=>e.slice(0,t.start)+t.text+e.slice(t.end)),e)}(e,t,n),a=Math.max(n.start+n.text.length,t.start+t.text.length+(t.start+t.text.length>n.start?n.text.length:0)-r),s=i.slice(o,a);return TW(e,{start:o,end:Math.max(t.end,n.end-t.text.length+(t.end-t.start)),text:s})}function MW(e){var{path:t,diff:n}=e;return{anchor:{path:t,offset:n.start},focus:{path:t,offset:n.end}}}function AW(e,t){var{path:n,offset:o}=t;if(!u$.hasPath(e,n))return null;var r=m$.get(e,n);if(!F$.isText(r))return null;var i=u$.above(e,{match:t=>u$.isBlock(e,t),at:n});if(!i)return null;for(;o>r.text.length;){var a=u$.next(e,{at:n,match:F$.isText});if(!a||!b$.isDescendant(a[1],i[1]))return null;o-=r.text.length,r=a[0],n=a[1]}return{path:n,offset:o}}function NW(e,t){var n=AW(e,t.anchor);if(!n)return null;if(k$.isCollapsed(t))return{anchor:n,focus:n};var o=AW(e,t.focus);return o?{anchor:n,focus:o}:null}function RW(e,t,n){var o=vV.get(e),r=null==o?void 0:o.find((e=>{var{path:n}=e;return b$.equals(n,t.path)}));if(!r||t.offset<=r.diff.start)return E$.transform(t,n,{affinity:"backward"});var{diff:i}=r;if(t.offset<=i.start+i.text.length){var a={path:t.path,offset:i.start},s=E$.transform(a,n,{affinity:"backward"});return s?{path:s.path,offset:s.offset+t.offset-i.start}:null}var l={path:t.path,offset:t.offset-i.text.length+i.end-i.start},c=E$.transform(l,n,{affinity:"backward"});return c?"split_node"===n.type&&b$.equals(n.path,t.path)&&l.offset<n.position&&i.start<n.position?c:{path:c.path,offset:c.offset+i.text.length-i.end+i.start}:null}function PW(e,t,n){var o=RW(e,t.anchor,n);if(!o)return null;if(k$.isCollapsed(t))return{anchor:o,focus:o};var r=RW(e,t.focus,n);return r?{anchor:o,focus:r}:null}function BW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function FW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BW(Object(n),!0).forEach((function(t){Yz(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function LW(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:o}=e,r=!1,i=null,a=null,s=null,l=0,c=!1,u=()=>{var e=gV.get(t);if(gV.delete(t),e){var{selection:n}=t,o=NW(t,e);!o||n&&k$.equals(o,n)||ez.select(t,o)}},p=()=>{var e;if(a&&(clearTimeout(a),a=null),s&&(clearTimeout(s),s=null),v()||m()){r||(r=!0,setTimeout((()=>r=!1))),m()&&(r="action");var i=t.selection&&u$.rangeRef(t,t.selection,{affinity:"forward"});mV.set(t,t.marks),xV.get(t),vV.get(t);for(var l,p=!(null===(e=vV.get(t))||void 0===e||!e.length);l=null===(d=vV.get(t))||void 0===d?void 0:d[0];){var d,f,h=hV.get(t);void 0!==h&&(hV.delete(t),t.marks=h),h&&!1===c&&(c=null);var x=MW(l);t.selection&&k$.equals(t.selection,x)||ez.select(t,x),l.diff.text?u$.insertText(t,l.diff.text):u$.deleteFragment(t),vV.set(t,null===(f=vV.get(t))||void 0===f?void 0:f.filter((e=>{var{id:t}=e;return t!==l.id}))),kW(t,l)||(p=!1,xV.delete(t),mV.delete(t),r="action",gV.delete(t),n.cancel(),o.cancel(),null==i||i.unref())}var g=null==i?void 0:i.unref();if(!g||gV.get(t)||t.selection&&k$.equals(g,t.selection)||ez.select(t,g),m())(()=>{var e=xV.get(t);if(xV.delete(t),e){if(e.at){var n=E$.isPoint(e.at)?AW(t,e.at):NW(t,e.at);if(!n)return;var o=u$.range(t,n);t.selection&&k$.equals(t.selection,o)||ez.select(t,n)}e.run()}})();else{p&&n(),n.flush(),o.flush(),u();var b=mV.get(t);mV.delete(t),void 0!==b&&(t.marks=b,t.onChange())}}else u()},d=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=oV.get(t);n&&(v()||e?n.style.display="none":n.style.removeProperty("display"))},f=(e,n)=>{var o,r=null!==(o=vV.get(t))&&void 0!==o?o:[];vV.set(t,r);var i=m$.leaf(t,e),a=r.findIndex((t=>b$.equals(t.path,e)));if(a<0)return TW(i.text,n)&&r.push({path:e,diff:n,id:l++}),void d();var s=jW(i.text,r[a].diff,n);if(!s)return r.splice(a,1),void d();r[a]=FW(FW({},r[a]),{},{diff:s})},h=function(e){var{at:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c=!1,gV.delete(t),n.cancel(),o.cancel(),m()&&p(),xV.set(t,{at:r,run:e}),s=setTimeout(p)},m=()=>!!xV.get(t),v=()=>{var e;return!(null===(e=vV.get(t))||void 0===e||!e.length)},x=()=>{m()||(s=setTimeout(p))};return{flush:p,scheduleFlush:x,hasPendingDiffs:v,hasPendingAction:m,hasPendingChanges:()=>m()||v(),isFlushing:()=>r,handleUserSelect:e=>{gV.set(t,e),a&&(clearTimeout(a),a=null);var{selection:n}=t;if(e){var o=!n||!b$.equals(n.anchor.path,e.anchor.path),r=!n||!b$.equals(n.anchor.path.slice(0,-1),e.anchor.path.slice(0,-1));(o&&c||r)&&(c=!1),!o&&v()||(a=setTimeout(p,200))}},handleCompositionEnd:e=>{i&&clearTimeout(i),i=setTimeout((()=>{uV.set(t,!1),p()}),25)},handleCompositionStart:e=>{uV.set(t,!0),i&&(clearTimeout(i),i=null)},handleDOMBeforeInput:e=>{var n;a&&(clearTimeout(a),a=null);var{inputType:o}=e,r=null,i=e.dataTransfer||e.data||void 0;!1!==c&&"insertText"!==o&&"insertCompositionText"!==o&&(c=!1);var[s]=e.getTargetRanges();s&&(r=GV.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!0}));var l=GV.getWindow(t).getSelection();if(!r&&l&&(s=l,r=GV.toSlateRange(t,l,{exactMatch:!1,suppressThrow:!0})),r=null!==(n=r)&&void 0!==n?n:t.selection){if(k$.isExpanded(r)&&o.startsWith("delete")){var[u,p]=k$.edges(r);if(m$.leaf(t,u.path).text.length===u.offset&&0===p.offset){var d=u$.next(t,{at:u.path,match:F$.isText});d&&b$.equals(d[1],p.path)&&(r={anchor:p,focus:p})}}if(k$.isExpanded(r)&&o.startsWith("delete")){if(b$.equals(r.anchor.path,r.focus.path)){var[m,v]=k$.edges(r);return f(r.anchor.path,{text:"",end:v.offset,start:m.offset})}var g=o.endsWith("Backward")?"backward":"forward";return h((()=>u$.deleteFragment(t,{direction:g})),{at:r})}switch(o){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return h((()=>u$.deleteFragment(t)),{at:r});case"deleteContent":case"deleteContentForward":var{anchor:b}=r;if(k$.isCollapsed(r)){var y=m$.leaf(t,b.path);if(b.offset<y.text.length)return f(b.path,{text:"",start:b.offset,end:b.offset+1})}return h((()=>u$.deleteForward(t)),{at:r});case"deleteContentBackward":var w,{anchor:C}=r;return(SV(s)?s.isCollapsed:!(null===(w=s)||void 0===w||!w.collapsed))&&k$.isCollapsed(r)&&C.offset>0?f(C.path,{text:"",start:C.offset-1,end:C.offset}):h((()=>u$.deleteBackward(t)),{at:r});case"deleteEntireSoftLine":return h((()=>{u$.deleteBackward(t,{unit:"line"}),u$.deleteForward(t,{unit:"line"})}),{at:r});case"deleteHardLineBackward":return h((()=>u$.deleteBackward(t,{unit:"block"})),{at:r});case"deleteSoftLineBackward":return h((()=>u$.deleteBackward(t,{unit:"line"})),{at:r});case"deleteHardLineForward":return h((()=>u$.deleteForward(t,{unit:"block"})),{at:r});case"deleteSoftLineForward":return h((()=>u$.deleteForward(t,{unit:"line"})),{at:r});case"deleteWordBackward":return h((()=>u$.deleteBackward(t,{unit:"word"})),{at:r});case"deleteWordForward":return h((()=>u$.deleteForward(t,{unit:"word"})),{at:r});case"insertLineBreak":return h((()=>u$.insertSoftBreak(t)),{at:r});case"insertParagraph":return h((()=>u$.insertBreak(t)),{at:r});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("DataTransfer"===(null==i?void 0:i.constructor.name))return h((()=>GV.insertData(t,i)),{at:r});if("string"==typeof i&&i.includes("\n"))return h((()=>u$.insertSoftBreak(t)),{at:k$.end(r)});var E=null!=i?i:"";if(hV.get(t)&&(E=E.replace("\ufeff","")),b$.equals(r.anchor.path,r.focus.path)){var[O,D]=k$.edges(r),S={start:O.offset,end:D.offset,text:E};if(E&&c&&"insertCompositionText"===o){var k=c.start+c.text.search(/\S|$/);S.start+S.text.search(/\S|$/)===k+1&&S.end===c.start+c.text.length?(S.start-=1,c=null,x()):c=!1}else c="insertText"===o&&(null===c?S:!(!c||!k$.isCollapsed(r)||c.end+c.text.length!==O.offset)&&FW(FW({},c),{},{text:c.text+E}));return void f(O.path,S)}return h((()=>u$.insertText(t,E)),{at:r})}}},handleKeyDown:e=>{v()||(d(!0),setTimeout(d))},handleDomMutations:e=>{var n;v()||m()||e.some((n=>NV(t,n,e)))&&(null===(n=bV.get(t))||void 0===n||n())},handleInput:()=>{!m()&&v()||p()}}}var _W=["node"];function IW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var $W={subtree:!0,childList:!0,characterData:!0};function zW(e){var{node:t}=e,o=Kz(e,_W);if(!FV)return null;var r,i=rW(),a=(r=n.useRef(!1),n.useEffect((()=>(r.current=!0,()=>{r.current=!1})),[]),r.current),[s]=n.useState((()=>LW(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IW(Object(n),!0).forEach((function(t){Yz(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({editor:i},o))));return function(e,t,o){var[r]=n.useState((()=>new MutationObserver(t)));YV((()=>{r.takeRecords()})),n.useEffect((()=>{if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return r.observe(e.current,o),()=>r.disconnect()}),[])}(t,s.handleDomMutations,$W),fV.set(i,s.scheduleFlush),a&&s.flush(),s}var VW=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as"],WW=["text"];function UW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function HW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UW(Object(n),!0).forEach((function(t){Yz(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qW=e=>c.default.createElement(c.default.Fragment,null,mW(e)),XW=e=>{var{autoFocus:t,decorate:o=YW,onDOMBeforeInput:r,placeholder:i,readOnly:a=!1,renderElement:s,renderLeaf:l,renderPlaceholder:u=(e=>c.default.createElement(GW,Object.assign({},e))),scrollSelectionIntoView:p=KW,style:d={},as:f="div"}=e,h=Kz(e,VW),m=(()=>{var e=n.useContext(gW);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:t}=e;return t})(),[v,x]=n.useState(!1),g=n.useRef(null),b=n.useRef([]),{onUserInput:y,receivedUserInput:w}=function(){var e=rW(),t=n.useRef(!1),o=n.useRef(0),r=n.useCallback((()=>{if(!t.current){t.current=!0;var n=GV.getWindow(e);n.cancelAnimationFrame(o.current),o.current=n.requestAnimationFrame((()=>{t.current=!1}))}}),[]);return n.useEffect((()=>()=>cancelAnimationFrame(o.current)),[]),{receivedUserInput:t,onUserInput:r}}(),[,C]=n.useReducer((e=>e+1),0);bV.set(m,C),lV.set(m,a);var E=n.useMemo((()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1})),[]);n.useEffect((()=>{g.current&&t&&g.current.focus()}),[t]);var O=n.useCallback(jz((()=>{if((FV||!GV.isComposing(m))&&(!E.isUpdatingSelection||null!=S&&S.isFlushing())&&!E.isDraggingInternally){var e=GV.findDocumentOrShadowRoot(m),{activeElement:t}=e,n=GV.toDOMNode(m,m),o=e.getSelection();if(t===n?(E.latestElement=t,cV.set(m,!0)):cV.delete(m),!o)return ez.deselect(m);var{anchorNode:r,focusNode:i}=o,s=JW(m,r)||QW(m,r),l=JW(m,i)||QW(m,i);if(s&&l){var c=GV.toSlateRange(m,o,{exactMatch:!1,suppressThrow:!0});c&&(GV.isComposing(m)||null!=S&&S.hasPendingChanges()||null!=S&&S.isFlushing()?null==S||S.handleUserSelect(c):ez.select(m,c))}!a||s&&l||ez.deselect(m)}}),100),[a]),D=n.useMemo((()=>Sz(O,0)),[O]),S=zW({node:g,onDOMSelectionChange:O,scheduleOnDOMSelectionChange:D});YV((()=>{var e;g.current&&(e=EV(g.current))?(tV.set(m,e),nV.set(m,g.current),iV.set(m,g.current),rV.set(g.current,m)):iV.delete(m);var{selection:t}=m,n=GV.findDocumentOrShadowRoot(m).getSelection();if(n&&GV.isFocused(m)&&(null==S||!S.hasPendingAction())){var o=e=>{var o="None"!==n.type;if(t||o){var r=nV.get(m),i=!1;if(r.contains(n.anchorNode)&&r.contains(n.focusNode)&&(i=!0),o&&i&&t&&!e){var a=GV.toSlateRange(m,n,{exactMatch:!0,suppressThrow:!0});if(a&&k$.equals(a,t)){var s;if(!E.hasMarkPlaceholder)return;var{anchorNode:l}=n;if(null!=l&&null!==(s=l.parentElement)&&void 0!==s&&s.hasAttribute("data-slate-mark-placeholder"))return}}if(!t||GV.hasRange(m,t)){E.isUpdatingSelection=!0;var c=t&&GV.toDOMRange(m,t);return c?(k$.isBackward(t)?n.setBaseAndExtent(c.endContainer,c.endOffset,c.startContainer,c.startOffset):n.setBaseAndExtent(c.startContainer,c.startOffset,c.endContainer,c.endOffset),p(m,c)):n.removeAllRanges(),c}m.selection=GV.toSlateRange(m,n,{exactMatch:!1,suppressThrow:!0})}},r=o(),i="action"===(null==S?void 0:S.isFlushing());if(FV&&i){var a=null,s=requestAnimationFrame((()=>{if(i){var e=e=>{try{GV.toDOMNode(m,m).focus(),o(e)}catch(e){}};e(),a=setTimeout((()=>{e(!0),E.isUpdatingSelection=!1}))}}));return()=>{cancelAnimationFrame(s),a&&clearTimeout(a)}}setTimeout((()=>{r&&LV&&GV.toDOMNode(m,m).focus();E.isUpdatingSelection=!1}))}}));var k=n.useCallback((e=>{if(y(),!a&&JW(m,e.target)&&!tU(e,r)){var t;if(S)return S.handleDOMBeforeInput(e);D.flush(),O.flush();var{selection:n}=m,{inputType:o}=e,i=e.dataTransfer||e.data||void 0,s="insertCompositionText"===o||"deleteCompositionText"===o;if(s&&GV.isComposing(m))return;var l=!1;if("insertText"===o&&n&&k$.isCollapsed(n)&&e.data&&1===e.data.length&&/[a-z ]/i.test(e.data)&&0!==n.anchor.offset){var c,u;l=!0,m.marks&&(l=!1);var{anchor:p}=n,[d,f]=GV.toDOMPoint(m,p),h=null===(c=d.parentElement)||void 0===c?void 0:c.closest("a"),v=GV.getWindow(m);if(l&&h&&GV.hasDOMNode(m,h)){var g,w=null==v?void 0:v.document.createTreeWalker(h,NodeFilter.SHOW_TEXT).lastChild();w===d&&(null===(g=w.textContent)||void 0===g?void 0:g.length)===f&&(l=!1)}if(l&&d.parentElement&&"pre"===(null==v||null===(u=v.getComputedStyle(d.parentElement))||void 0===u?void 0:u.whiteSpace)){var C=u$.above(m,{at:p.path,match:e=>u$.isBlock(m,e)});C&&m$.string(C[0]).includes("\t")&&(l=!1)}}if(!o.startsWith("delete")||o.startsWith("deleteBy")){var[E]=e.getTargetRanges();if(E){var k=GV.toSlateRange(m,E,{exactMatch:!1,suppressThrow:!1});if(!n||!k$.equals(n,k)){l=!1;var T=!s&&m.selection&&u$.rangeRef(m,m.selection);ez.select(m,k),T&&pV.set(m,T)}}}if(s)return;if(l||e.preventDefault(),n&&k$.isExpanded(n)&&o.startsWith("delete")){var j=o.endsWith("Backward")?"backward":"forward";return void u$.deleteFragment(m,{direction:j})}switch(o){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":u$.deleteFragment(m);break;case"deleteContent":case"deleteContentForward":u$.deleteForward(m);break;case"deleteContentBackward":u$.deleteBackward(m);break;case"deleteEntireSoftLine":u$.deleteBackward(m,{unit:"line"}),u$.deleteForward(m,{unit:"line"});break;case"deleteHardLineBackward":u$.deleteBackward(m,{unit:"block"});break;case"deleteSoftLineBackward":u$.deleteBackward(m,{unit:"line"});break;case"deleteHardLineForward":u$.deleteForward(m,{unit:"block"});break;case"deleteSoftLineForward":u$.deleteForward(m,{unit:"line"});break;case"deleteWordBackward":u$.deleteBackward(m,{unit:"word"});break;case"deleteWordForward":u$.deleteForward(m,{unit:"word"});break;case"insertLineBreak":u$.insertSoftBreak(m);break;case"insertParagraph":u$.insertBreak(m);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":"insertFromComposition"===o&&GV.isComposing(m)&&(x(!1),uV.set(m,!1)),"DataTransfer"===(null==i?void 0:i.constructor.name)?GV.insertData(m,i):"string"==typeof i&&(l?b.current.push((()=>u$.insertText(m,i))):u$.insertText(m,i))}var M=null===(t=pV.get(m))||void 0===t?void 0:t.unref();pV.delete(m),!M||m.selection&&k$.equals(m.selection,M)||ez.select(m,M)}}),[a,r]);YV((()=>(g.current&&XV&&g.current.addEventListener("beforeinput",k),()=>{g.current&&XV&&g.current.removeEventListener("beforeinput",k)})),[k]),YV((()=>{var e=GV.getWindow(m);return e.document.addEventListener("selectionchange",D),()=>{e.document.removeEventListener("selectionchange",D)}}),[D]);var T=o([m,[]]);if(i&&1===m.children.length&&1===Array.from(m$.texts(m)).length&&""===m$.string(m)&&!v){var j=u$.start(m,[]);T.push({[yV]:!0,placeholder:i,anchor:j,focus:j})}var{marks:M}=m;if(E.hasMarkPlaceholder=!1,m.selection&&k$.isCollapsed(m.selection)&&M){var{anchor:A}=m.selection,N=m$.leaf(m,A.path),R=Kz(N,WW);if(!F$.equals(N,M,{loose:!0})){E.hasMarkPlaceholder=!0;var P=Object.fromEntries(Object.keys(R).map((e=>[e,null])));T.push(HW(HW(HW({[wV]:!0},P),M),{},{anchor:A,focus:A}))}}return n.useEffect((()=>{setTimeout((()=>{var{selection:e}=m;if(e){var{anchor:t}=e,n=m$.leaf(m,t.path);if(M&&!F$.equals(n,M,{loose:!0}))return void hV.set(m,M)}hV.delete(m)}))})),c.default.createElement(vW.Provider,{value:a},c.default.createElement(fW.Provider,{value:o},c.default.createElement(SW,{node:g,receivedUserInput:w},c.default.createElement(f,Object.assign({role:a?void 0:"textbox","aria-multiline":!a||void 0},h,{spellCheck:!(!XV&&qV)&&h.spellCheck,autoCorrect:XV||!qV?h.autoCorrect:"false",autoCapitalize:XV||!qV?h.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!a,zindex:-1,suppressContentEditableWarning:!0,ref:g,style:HW({position:"relative",outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},d),onBeforeInput:n.useCallback((e=>{if(!XV&&!a&&!eU(e,h.onBeforeInput)&&JW(m,e.target)&&(e.preventDefault(),!GV.isComposing(m))){var t=e.data;u$.insertText(m,t)}}),[a]),onInput:n.useCallback((e=>{if(S)S.handleInput();else{for(var t of b.current)t();b.current=[]}}),[]),onBlur:n.useCallback((e=>{if(!a&&!E.isUpdatingSelection&&JW(m,e.target)&&!eU(e,h.onBlur)){var t=GV.findDocumentOrShadowRoot(m);if(E.latestElement!==t.activeElement){var{relatedTarget:n}=e;if(!(n===GV.toDOMNode(m,m)||OV(n)&&n.hasAttribute("data-slate-spacer"))){if(null!=n&&DV(n)&&GV.hasDOMNode(m,n)){var o=GV.toSlateNode(m,n);if(r$.isElement(o)&&!m.isVoid(o))return}if(_V){var r=t.getSelection();null==r||r.removeAllRanges()}cV.delete(m)}}}}),[a,h.onBlur]),onClick:n.useCallback((e=>{if(ZW(m,e.target)&&!eU(e,h.onClick)&&DV(e.target)){var t=GV.toSlateNode(m,e.target),n=GV.findPath(m,t);if(!u$.hasPath(m,n)||m$.get(m,n)!==t)return;if(3===e.detail&&n.length>=1){var o=n;if(!u$.isBlock(m,t)){var r,i=u$.above(m,{match:e=>u$.isBlock(m,e),at:n});o=null!==(r=null==i?void 0:i[1])&&void 0!==r?r:n.slice(0,1)}var s=u$.range(m,o);return void ez.select(m,s)}if(a)return;var l=u$.start(m,n),c=u$.end(m,n),u=u$.void(m,{at:l}),p=u$.void(m,{at:c});if(u&&p&&b$.equals(u[1],p[1])){var d=u$.range(m,l);ez.select(m,d)}}}),[a,h.onClick]),onCompositionEnd:n.useCallback((e=>{if(JW(m,e.target)){if(GV.isComposing(m)&&(x(!1),uV.set(m,!1)),null==S||S.handleCompositionEnd(e),eU(e,h.onCompositionEnd)||FV)return;if(!_V&&!VV&&!PV&&!WV&&!HV&&!UV&&e.data){var t=hV.get(m);hV.delete(m),void 0!==t&&(mV.set(m,m.marks),m.marks=t),u$.insertText(m,e.data);var n=mV.get(m);mV.delete(m),void 0!==n&&(m.marks=n)}}}),[h.onCompositionEnd]),onCompositionUpdate:n.useCallback((e=>{JW(m,e.target)&&!eU(e,h.onCompositionUpdate)&&(GV.isComposing(m)||(x(!0),uV.set(m,!0)))}),[h.onCompositionUpdate]),onCompositionStart:n.useCallback((e=>{if(JW(m,e.target)){if(null==S||S.handleCompositionStart(e),eU(e,h.onCompositionStart)||FV)return;x(!0);var{selection:t}=m;if(t){if(k$.isExpanded(t))return void u$.deleteFragment(m);var n=u$.above(m,{match:e=>u$.isInline(m,e),mode:"highest"});if(n){var[,o]=n;if(u$.isEnd(m,t.anchor,o)){var r=u$.after(m,o);ez.setSelection(m,{anchor:r,focus:r})}}}}}),[h.onCompositionStart]),onCopy:n.useCallback((e=>{JW(m,e.target)&&!eU(e,h.onCopy)&&(e.preventDefault(),GV.setFragmentData(m,e.clipboardData,"copy"))}),[h.onCopy]),onCut:n.useCallback((e=>{if(!a&&JW(m,e.target)&&!eU(e,h.onCut)){e.preventDefault(),GV.setFragmentData(m,e.clipboardData,"cut");var{selection:t}=m;if(t)if(k$.isExpanded(t))u$.deleteFragment(m);else{var n=m$.parent(m,t.anchor.path);u$.isVoid(m,n)&&ez.delete(m)}}}),[a,h.onCut]),onDragOver:n.useCallback((e=>{if(ZW(m,e.target)&&!eU(e,h.onDragOver)){var t=GV.toSlateNode(m,e.target);u$.isVoid(m,t)&&e.preventDefault()}}),[h.onDragOver]),onDragStart:n.useCallback((e=>{if(!a&&ZW(m,e.target)&&!eU(e,h.onDragStart)){var t=GV.toSlateNode(m,e.target),n=GV.findPath(m,t);if(u$.isVoid(m,t)||u$.void(m,{at:n,voids:!0})){var o=u$.range(m,n);ez.select(m,o)}E.isDraggingInternally=!0,GV.setFragmentData(m,e.dataTransfer,"drag")}}),[a,h.onDragStart]),onDrop:n.useCallback((e=>{if(!a&&ZW(m,e.target)&&!eU(e,h.onDrop)){e.preventDefault();var t=m.selection,n=GV.findEventRange(m,e),o=e.dataTransfer;ez.select(m,n),E.isDraggingInternally&&(!t||k$.equals(t,n)||u$.void(m,{at:n,voids:!0})||ez.delete(m,{at:t})),GV.insertData(m,o),GV.isFocused(m)||GV.focus(m)}E.isDraggingInternally=!1}),[a,h.onDrop]),onDragEnd:n.useCallback((e=>{!a&&E.isDraggingInternally&&h.onDragEnd&&ZW(m,e.target)&&h.onDragEnd(e),E.isDraggingInternally=!1}),[a,h.onDragEnd]),onFocus:n.useCallback((e=>{if(!a&&!E.isUpdatingSelection&&JW(m,e.target)&&!eU(e,h.onFocus)){var t=GV.toDOMNode(m,m),n=GV.findDocumentOrShadowRoot(m);if(E.latestElement=n.activeElement,LV&&e.target!==t)return void t.focus();cV.set(m,!0)}}),[a,h.onFocus]),onKeyDown:n.useCallback((e=>{if(!a&&JW(m,e.target)){null==S||S.handleKeyDown(e);var{nativeEvent:t}=e;if(GV.isComposing(m)&&!1===t.isComposing&&(uV.set(m,!1),x(!1)),eU(e,h.onKeyDown)||GV.isComposing(m))return;var{selection:n}=m,o=m.children[null!==n?n.focus.path[0]:0],r="rtl"===tz(m$.string(o));if(EW.isRedo(t)){e.preventDefault();var i=m;return void("function"==typeof i.redo&&i.redo())}if(EW.isUndo(t)){e.preventDefault();var s=m;return void("function"==typeof s.undo&&s.undo())}if(EW.isMoveLineBackward(t))return e.preventDefault(),void ez.move(m,{unit:"line",reverse:!0});if(EW.isMoveLineForward(t))return e.preventDefault(),void ez.move(m,{unit:"line"});if(EW.isExtendLineBackward(t))return e.preventDefault(),void ez.move(m,{unit:"line",edge:"focus",reverse:!0});if(EW.isExtendLineForward(t))return e.preventDefault(),void ez.move(m,{unit:"line",edge:"focus"});if(EW.isMoveBackward(t))return e.preventDefault(),void(n&&k$.isCollapsed(n)?ez.move(m,{reverse:!r}):ez.collapse(m,{edge:"start"}));if(EW.isMoveForward(t))return e.preventDefault(),void(n&&k$.isCollapsed(n)?ez.move(m,{reverse:r}):ez.collapse(m,{edge:"end"}));if(EW.isMoveWordBackward(t))return e.preventDefault(),n&&k$.isExpanded(n)&&ez.collapse(m,{edge:"focus"}),void ez.move(m,{unit:"word",reverse:!r});if(EW.isMoveWordForward(t))return e.preventDefault(),n&&k$.isExpanded(n)&&ez.collapse(m,{edge:"focus"}),void ez.move(m,{unit:"word",reverse:r});if(XV){if(($V||_V)&&n&&(EW.isDeleteBackward(t)||EW.isDeleteForward(t))&&k$.isCollapsed(n)){var l=m$.parent(m,n.anchor.path);if(r$.isElement(l)&&u$.isVoid(m,l)&&(u$.isInline(m,l)||u$.isBlock(m,l)))return e.preventDefault(),void u$.deleteBackward(m,{unit:"block"})}}else{if(EW.isBold(t)||EW.isItalic(t)||EW.isTransposeCharacter(t))return void e.preventDefault();if(EW.isSoftBreak(t))return e.preventDefault(),void u$.insertSoftBreak(m);if(EW.isSplitBlock(t))return e.preventDefault(),void u$.insertBreak(m);if(EW.isDeleteBackward(t))return e.preventDefault(),void(n&&k$.isExpanded(n)?u$.deleteFragment(m,{direction:"backward"}):u$.deleteBackward(m));if(EW.isDeleteForward(t))return e.preventDefault(),void(n&&k$.isExpanded(n)?u$.deleteFragment(m,{direction:"forward"}):u$.deleteForward(m));if(EW.isDeleteLineBackward(t))return e.preventDefault(),void(n&&k$.isExpanded(n)?u$.deleteFragment(m,{direction:"backward"}):u$.deleteBackward(m,{unit:"line"}));if(EW.isDeleteLineForward(t))return e.preventDefault(),void(n&&k$.isExpanded(n)?u$.deleteFragment(m,{direction:"forward"}):u$.deleteForward(m,{unit:"line"}));if(EW.isDeleteWordBackward(t))return e.preventDefault(),void(n&&k$.isExpanded(n)?u$.deleteFragment(m,{direction:"backward"}):u$.deleteBackward(m,{unit:"word"}));if(EW.isDeleteWordForward(t))return e.preventDefault(),void(n&&k$.isExpanded(n)?u$.deleteFragment(m,{direction:"forward"}):u$.deleteForward(m,{unit:"word"}))}}}),[a,h.onKeyDown]),onPaste:n.useCallback((e=>{a||!JW(m,e.target)||eU(e,h.onPaste)||XV&&!(e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length)(e.nativeEvent)||(e.preventDefault(),GV.insertData(m,e.clipboardData))}),[a,h.onPaste])}),c.default.createElement(qW,{decorations:T,node:m,renderElement:s,renderPlaceholder:u,renderLeaf:l,selection:m.selection})))))},GW=e=>{var{attributes:t,children:n}=e;return c.default.createElement("span",Object.assign({},t),n,FV&&c.default.createElement("br",null))},YW=()=>[],KW=(e,t)=>{if(!e.selection||e.selection&&k$.isCollapsed(e.selection)){var n=t.startContainer.parentElement;n.getBoundingClientRect=t.getBoundingClientRect.bind(t),Fz(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},ZW=(e,t)=>DV(t)&&GV.hasDOMNode(e,t),JW=(e,t)=>DV(t)&&GV.hasDOMNode(e,t,{editable:!0}),QW=(e,t)=>{if(lV.get(e))return!1;var n=ZW(e,t)&&GV.toSlateNode(e,t);return u$.isVoid(e,n)},eU=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.isDefaultPrevented()||e.isPropagationStopped()},tU=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.defaultPrevented},nU=n.createContext(!1),oU=n.createContext({});var rU=["editor","children","onChange","value"],iU=e=>{var{editor:t,children:o,onChange:r,value:i}=e,a=Kz(e,rU),s=n.useRef(!1),[l,u]=c.default.useState((()=>{if(!m$.isNodeList(i))throw new Error("[Slate] value is invalid! Expected a list of elements"+"but got: ".concat(M$.stringify(i)));if(!u$.isEditor(t))throw new Error("[Slate] editor is invalid! you passed:"+"".concat(M$.stringify(t)));return t.children=i,Object.assign(t,a),{v:0,editor:t}})),{selectorContext:p,onChange:d}=function(e){var t=n.useRef([]).current,o=n.useRef({editor:e}).current,r=n.useCallback((e=>{o.editor=e,t.forEach((t=>t(e)))}),[]);return{selectorContext:n.useMemo((()=>({getSlate:()=>o.editor,addEventListener:e=>(t.push(e),()=>{t.splice(t.indexOf(e),1)})})),[t,o]),onChange:r}}(t),f=n.useCallback((()=>{r&&r(t.children),u((e=>({v:e.v+1,editor:t}))),d(t)}),[r]);dV.set(t,f),n.useEffect((()=>()=>{dV.set(t,(()=>{})),s.current=!0}),[]);var[h,m]=n.useState(GV.isFocused(t));return n.useEffect((()=>{m(GV.isFocused(t))})),YV((()=>{var e=()=>m(GV.isFocused(t));return RV?(document.addEventListener("focusin",e),document.addEventListener("focusout",e),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",e)}):(document.addEventListener("focus",e,!0),document.addEventListener("blur",e,!0),()=>{document.removeEventListener("focus",e,!0),document.removeEventListener("blur",e,!0)})}),[]),c.default.createElement(oU.Provider,{value:p},c.default.createElement(gW.Provider,{value:l},c.default.createElement(oW.Provider,{value:l.editor},c.default.createElement(nU.Provider,{value:h},o))))},aU=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},sU=(e,t,n)=>{var o=GV.toDOMRange(e,t).getBoundingClientRect(),r=GV.toDOMRange(e,n).getBoundingClientRect();return aU(o,r)&&aU(r,o)};function lU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function cU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lU(Object(n),!0).forEach((function(t){Yz(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var uU,pU,dU,fU,hU,mU,vU,xU,gU,bU,yU,wU,CU,EU,OU,DU,SU,kU,TU,jU,MU,AU,NU,RU,PU,BU=e=>{var t=e,{apply:n,onChange:o,deleteBackward:r,addMark:i,removeMark:a}=t;return sV.set(t,new WeakMap),t.addMark=(e,n)=>{var o,r;null===(o=fV.get(t))||void 0===o||o(),!hV.get(t)&&null!==(r=vV.get(t))&&void 0!==r&&r.length&&hV.set(t,null),mV.delete(t),i(e,n)},t.removeMark=e=>{var n;!hV.get(t)&&null!==(n=vV.get(t))&&void 0!==n&&n.length&&hV.set(t,null),mV.delete(t),a(e)},t.deleteBackward=e=>{if("line"!==e)return r(e);if(t.selection&&k$.isCollapsed(t.selection)){var n=u$.above(t,{match:e=>u$.isBlock(t,e),at:t.selection});if(n){var[,o]=n,i=u$.range(t,o,t.selection.anchor),a=((e,t)=>{var n=u$.range(e,k$.end(t)),o=Array.from(u$.positions(e,{at:t})),r=0,i=o.length,a=Math.floor(i/2);if(sU(e,u$.range(e,o[r]),n))return u$.range(e,o[r],n);if(o.length<2)return u$.range(e,o[o.length-1],n);for(;a!==o.length&&a!==r;)sU(e,u$.range(e,o[a]),n)?i=a:r=a,a=Math.floor((r+i)/2);return u$.range(e,o[i],n)})(t,i);k$.isCollapsed(a)||ez.delete(t,{at:a})}}},t.apply=e=>{var o=[],r=vV.get(t);if(null!=r&&r.length){var i=r.map((t=>function(e,t){var{path:n,diff:o,id:r}=e;switch(t.type){case"insert_text":return!b$.equals(t.path,n)||t.offset>=o.end?e:t.offset<=o.start?{diff:{start:t.text.length+o.start,end:t.text.length+o.end,text:o.text},id:r,path:n}:{diff:{start:o.start,end:o.end+t.text.length,text:o.text},id:r,path:n};case"remove_text":return!b$.equals(t.path,n)||t.offset>=o.end?e:t.offset+t.text.length<=o.start?{diff:{start:o.start-t.text.length,end:o.end-t.text.length,text:o.text},id:r,path:n}:{diff:{start:o.start,end:o.end-t.text.length,text:o.text},id:r,path:n};case"split_node":return!b$.equals(t.path,n)||t.position>=o.end?{diff:o,id:r,path:b$.transform(n,t,{affinity:"backward"})}:t.position>o.start?{diff:{start:o.start,end:Math.min(t.position,o.end),text:o.text},id:r,path:n}:{diff:{start:o.start-t.position,end:o.end-t.position,text:o.text},id:r,path:b$.transform(n,t,{affinity:"forward"})};case"merge_node":return b$.equals(t.path,n)?{diff:{start:o.start+t.position,end:o.end+t.position,text:o.text},id:r,path:b$.transform(n,t)}:{diff:o,id:r,path:b$.transform(n,t)}}var i=b$.transform(n,t);return i?{diff:o,path:i,id:r}:null}(t,e))).filter(Boolean);vV.set(t,i)}var a=gV.get(t);a&&gV.set(t,PW(t,a,e));var s=xV.get(t);if(null!=s&&s.at){var l=E$.isPoint(null==s?void 0:s.at)?RW(t,s.at,e):PW(t,s.at,e);xV.set(t,l?cU(cU({},s),{},{at:l}):null)}switch(e.type){case"insert_text":case"remove_text":case"set_node":case"split_node":o.push(...FU(t,e.path));break;case"set_selection":var c;null===(c=pV.get(t))||void 0===c||c.unref(),pV.delete(t);break;case"insert_node":case"remove_node":o.push(...FU(t,b$.parent(e.path)));break;case"merge_node":var u=b$.previous(e.path);o.push(...FU(t,u));break;case"move_node":var p=b$.common(b$.parent(e.path),b$.parent(e.newPath));o.push(...FU(t,p))}for(var[d,f]of(n(e),o)){var[h]=u$.node(t,d);aV.set(h,f)}},t.setFragmentData=e=>{var{selection:n}=t;if(n){var[o,r]=k$.edges(n),i=u$.void(t,{at:o.path}),a=u$.void(t,{at:r.path});if(!k$.isCollapsed(n)||i){var s=GV.toDOMRange(t,n),l=s.cloneContents(),c=l.childNodes[0];if(l.childNodes.forEach((e=>{e.textContent&&""!==e.textContent.trim()&&(c=e)})),a){var[u]=a,p=s.cloneRange(),d=GV.toDOMNode(t,u);p.setEndAfter(d),l=p.cloneContents()}if(i&&(c=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach((e=>{var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),kV(c)){var f=c.ownerDocument.createElement("span");f.style.whiteSpace="pre",f.appendChild(c),l.appendChild(f),c=f}var h=t.getFragment(),m=JSON.stringify(h),v=window.btoa(encodeURIComponent(m));c.setAttribute("data-slate-fragment",v),e.setData("application/x-slate-fragment",v);var x=l.ownerDocument.createElement("div");return x.appendChild(l),x.setAttribute("hidden","true"),l.ownerDocument.body.appendChild(x),e.setData("text/html",x.innerHTML),e.setData("text/plain",MV(x)),l.ownerDocument.body.removeChild(x),e}}},t.insertData=e=>{t.insertFragmentData(e)||t.insertTextData(e)},t.insertFragmentData=e=>{var n=e.getData("application/x-slate-fragment")||(e=>{var t=e.getData("text/html"),[,n]=t.match(AV)||[];return n})(e);if(n){var o=decodeURIComponent(window.atob(n)),r=JSON.parse(o);return t.insertFragment(r),!0}return!1},t.insertTextData=e=>{var n=e.getData("text/plain");if(n){var o=n.split(/\r\n|\r|\n/),r=!1;for(var i of o)r&&ez.splitNodes(t,{always:!0}),t.insertText(i),r=!0;return!0}return!1},t.onChange=()=>{p.default.unstable_batchedUpdates((()=>{var e=dV.get(t);e&&e(),o()}))},t},FU=(e,t)=>{var n=[];for(var[o,r]of u$.levels(e,{at:t})){var i=GV.findKey(e,o);n.push([r,i])}return n},LU=function(e){var n=e.element,o=e.children,r=e.attributes;switch(n.type){case"list-item":return t.jsx("li",d({},r,{children:o}));case"numbered-list":return t.jsx(_U,d({type:"1"},r,{children:o}));case"bulleted-list":return t.jsx(IU,d({},r,{children:o}));default:return t.jsx("p",d({},r,{children:o}))}},_U=s.default.ol(uU||(uU=x(["\n list-style: decimal;\n list-style-position: inside;\n"],["\n list-style: decimal;\n list-style-position: inside;\n"]))),IU=s.default.ul(pU||(pU=x(["\n list-style: disc;\n list-style-position: inside;\n"],["\n list-style: disc;\n list-style-position: inside;\n"]))),$U=function(e){var n,o,r,i=e.leaf,a=e.children,s=e.attributes,l=IO(),c=l.showAnnotations,u=l.annotationsList,p=l.isMLRReview;if(i.tag){var f=u.tags.findIndex((function(e){var t,n=e.id;return(null===(t=i.tag)||void 0===t?void 0:t.id)===n}))+1;p&&c&&f&&(a=t.jsxs(iw,d({component:"span",display:"inline-flex",direction:"row",alignItems:"center",gap:.5,id:WU},((n={})["data-".concat(HU)]=null===(r=i.tag)||void 0===r?void 0:r.id,n),{children:[t.jsx("span",d({style:{backgroundColor:"#FFF0D0B5"}},{children:a})),t.jsx(Yne,{index:u.tags.findIndex((function(e){var t,n,o=e.id,r=e.label;return(null===(t=i.tag)||void 0===t?void 0:t.id)===o||(null===(n=i.tag)||void 0===n?void 0:n.label)===r}))+1,type:"message"})]})))}if(i.bold&&(a=t.jsx("span",d({style:{fontWeight:"bold"}},{children:a}))),i.strikethrough&&(a=t.jsx("s",{children:a})),i.italic&&(a=t.jsx("span",d({style:{fontStyle:"italic"}},{children:a}))),i.underline&&(a=t.jsx("u",{children:a})),i.variable&&(a=t.jsxs(zU,{children:[t.jsx("span",d({style:{left:0},contentEditable:!1},{children:"["})),t.jsx("span",{children:a}),t.jsx("span",d({style:{right:0},contentEditable:!1},{children:"]"}))]})),i.communicationLink){var h=window.location,m=h.host,v=h.protocol,x=i.communicationLink,g=x.type,b=x.url,y="internalLink"===g?"".concat(v,"//").concat(m,"/").concat(b):b,w=u.links.findIndex((function(e){return b===e.url&&i.text===e.text}))+1;a=t.jsx(t.Fragment,{children:p&&c&&w?t.jsxs(iw,d({component:"span",display:"inline-flex",alignItems:"center",gap:.2,marginBottom:.2,id:UU},(o={},o["data-".concat(qU)]=b,o["data-".concat(XU)]=i.text,o),{children:[t.jsx("a",d({style:{color:D.colors.blue}},s,{href:y,target:"_blank"},{children:a})),t.jsx(Yne,{index:w,type:"link"})]})):t.jsx("a",d({style:{color:D.colors.blue}},s,{href:y,target:"_blank"},{children:a}))})}return t.jsx("span",d({},s,{children:a}))},zU=s.default.span(dU||(dU=x(["\n position: relative;\n white-space: nowrap;\n padding: 0;\n"],["\n position: relative;\n white-space: nowrap;\n padding: 0;\n"]))),VU=[{type:"paragraph",children:[{text:""}]}],WU="matrix-message",UU="communication-link",HU="matrix-message-id",qU="communication-link-url",XU="communication-link-text",GU=function(e){var o=e.value,r=e.color,i=void 0===r?"gray1":r,a=e.textStyles,s=e.font,l=void 0===s?"XS":s,c=e.numberOfLines,u=e.extraTextProps,p=n.useState((function(){return BU((()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of u$.pathRefs(e))y$.transform(n,t);for(var o of u$.pointRefs(e))O$.transform(o,t);for(var r of u$.rangeRefs(e))T$.transform(r,t);var i,a,s=yI.get(e)||[],l=wI.get(e)||new Set,c=e=>{if(e){var t=e.join(",");a.has(t)||(a.add(t),i.push(e))}};if(b$.operationCanTransformPath(t))for(var u of(i=[],a=new Set,s))c(b$.transform(u,t));else i=s,a=l;var p=e.getDirtyPaths(t);for(var d of p)c(d);yI.set(e,i),wI.set(e,a),ez.transform(e,t),e.operations.push(t),u$.normalize(e),"set_selection"===t.type&&(e.marks=null),CI.get(e)||(CI.set(e,!0),Promise.resolve().then((()=>{CI.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:o,markableVoid:r}=e;if(o){var i=(t,n)=>{if(!F$.isText(t))return!1;var[o,r]=u$.parent(e,n);return!e.isVoid(o)||e.markableVoid(o)},a=k$.isExpanded(o),s=!1;if(!a){var[l,c]=u$.node(e,o);if(l&&i(l,c)){var[u]=u$.parent(e,c);s=u&&e.markableVoid(u)}}if(a||s)ez.setNodes(e,{[t]:n},{match:i,split:!0,voids:!0});else{var p=TI(TI({},u$.marks(e)||{}),{},{[t]:n});e.marks=p,CI.get(e)||e.onChange()}}},deleteBackward:t=>{var{selection:n}=e;n&&k$.isCollapsed(n)&&ez.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&k$.isCollapsed(n)&&ez.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&k$.isExpanded(n)&&ez.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?m$.fragment(e,t):[]},insertBreak:()=>{ez.splitNodes(e,{always:!0})},insertSoftBreak:()=>{ez.splitNodes(e,{always:!0})},insertFragment:t=>{ez.insertFragment(e,t)},insertNode:t=>{ez.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:o}=e;if(n){if(o){var r=TI({text:t},o);ez.insertNodes(e,r)}else ez.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,o]=t;if(!F$.isText(n))if(r$.isElement(n)&&0===n.children.length)ez.insertNodes(e,{text:""},{at:o.concat(0),voids:!0});else for(var r=!u$.isEditor(n)&&r$.isElement(n)&&(e.isInline(n)||0===n.children.length||F$.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var s=m$.get(e,o);if(!F$.isText(s)){var l=n.children[a],c=s.children[i-1],u=a===n.children.length-1;(F$.isText(l)||r$.isElement(l)&&e.isInline(l))!==r?(ez.removeNodes(e,{at:o.concat(i),voids:!0}),i--):r$.isElement(l)?e.isInline(l)&&(null!=c&&F$.isText(c)?u&&(ez.insertNodes(e,{text:""},{at:o.concat(i+1),voids:!0}),i++):(ez.insertNodes(e,{text:""},{at:o.concat(i),voids:!0}),i++)):null!=c&&F$.isText(c)&&(F$.equals(l,c,{loose:!0})?(ez.mergeNodes(e,{at:o.concat(i),voids:!0}),i--):""===c.text?(ez.removeNodes(e,{at:o.concat(i-1),voids:!0}),i--):""===l.text&&(ez.removeNodes(e,{at:o.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n){var o=(t,n)=>{if(!F$.isText(t))return!1;var[o,r]=u$.parent(e,n);return!e.isVoid(o)||e.markableVoid(o)},r=k$.isExpanded(n),i=!1;if(!r){var[a,s]=u$.node(e,n);if(a&&o(a,s)){var[l]=u$.parent(e,s);i=l&&e.markableVoid(l)}}if(r||i)ez.unsetNodes(e,t,{match:o,split:!0,voids:!0});else{var c=TI({},u$.marks(e)||{});delete c[t],e.marks=c,CI.get(e)||e.onChange()}}},getDirtyPaths:e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return b$.levels(t);case"insert_node":var{node:n,path:o}=e,r=b$.levels(o),i=F$.isText(n)?[]:Array.from(m$.nodes(n),(e=>{var[,t]=e;return o.concat(t)}));return[...r,...i];case"merge_node":var{path:a}=e;return[...b$.ancestors(a),b$.previous(a)];case"move_node":var{path:s,newPath:l}=e;if(b$.equals(s,l))return[];var c=[],u=[];for(var p of b$.ancestors(s)){var d=b$.transform(p,e);c.push(d)}for(var f of b$.ancestors(l)){var h=b$.transform(f,e);u.push(h)}var m=u[u.length-1],v=l[l.length-1],x=m.concat(v);return[...c,...u,x];case"remove_node":var{path:g}=e;return[...b$.ancestors(g)];case"split_node":var{path:b}=e;return[...b$.levels(b),b$.next(b)];default:return[]}}};return e})())}))[0];if(void 0===o)return null;var f=VU,h=o.replace(/\\/g,"");try{f=JSON.parse(o)}catch(e){console.error(e,"Value was parsed incorrectly. Trying to parse it...");try{f=JSON.parse(h)}catch(t){console.error(e,"Most probably that it's not possible to parse this value")}}return t.jsx(YU,d({font:l,color:i},{children:t.jsx(iU,d({editor:p,value:f},{children:t.jsx(XW,{readOnly:!0,renderElement:function(e){return t.jsx(Mq,d({numberOfLines:c,styles:a,color:i,variant:l},u,{children:t.jsx(LU,d({},e))}))},renderLeaf:function(e){return t.jsx($U,d({},e))}})}),JSON.stringify(f))}))},YU=s.default(Up)(hU||(hU=x(["\n ",";\n"],["\n ",";\n"])),(function(t){var n=t.theme,o=n.colors,r=n.fonts,i=t.color,a=void 0===i?"gray1":i,s=t.font,l=void 0===s?"XS":s;return e.css(fU||(fU=x(["\n color: ",";\n ","\n "],["\n color: ",";\n ","\n "])),o[a],r[l])})),KU=s.default.button(xU||(xU=x(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);\n user-select: none;\n outline: none;\n height: 51px;\n position: relative;\n ",";\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);\n user-select: none;\n outline: none;\n height: 51px;\n position: relative;\n ",";\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.colors,i=n.fonts,a=t.disabled,s=t.fullWidth,l=t.variant,c=void 0===l?"primary":l,u=t.size,p=void 0===u?"medium":u,d="primary"===c?r.primary:"transparent",f="primary"===c?r.white:r.gray2,h="medium"===p?"".concat(o.M,"px"):"".concat(o.S,"px ").concat(o.M,"px");return e.css(vU||(vU=x(["\n padding: ",";\n height: ","px;\n border: 2.5px solid transparent;\n background-color: ",";\n ",";\n color: ",";\n border-radius: ","px;\n background-position: center;\n transition: box-shadow 0.25s ease-in-out;\n width: ",";\n &:hover {\n box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);\n }\n &:focus {\n border: 2.5px solid\n ",";\n box-shadow: none;\n }\n\n ","\n "],["\n padding: ",";\n height: ","px;\n border: 2.5px solid transparent;\n background-color: ",";\n ",";\n color: ",";\n border-radius: ","px;\n background-position: center;\n transition: box-shadow 0.25s ease-in-out;\n width: ",";\n &:hover {\n box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);\n }\n &:focus {\n border: 2.5px solid\n ",";\n box-shadow: none;\n }\n\n ","\n "])),h,"medium"===p?51:33,d,"medium"===p?i.XL:i.L,f,o.S,s?"100%":"auto","primary"===c?O(r.primary,-.38):r.gray2,a&&e.css(mU||(mU=x(["\n cursor: unset;\n pointer-events: none;\n background-color: ",";\n box-shadow: none;\n "],["\n cursor: unset;\n pointer-events: none;\n background-color: ",";\n box-shadow: none;\n "])),E(r.primary)))})),ZU=s.default(KU).attrs({variant:"secondary"})(yU||(yU=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.colors,o=t.disabled;return e.css(bU||(bU=x(["\n border: 1.5px solid ",";\n box-shadow: 0 0 0 1.5px transparent inset;\n &:focus {\n border: 1.5px solid ",";\n box-shadow: 0 0 0 1.5px "," inset;\n }\n &:hover {\n box-shadow: 0 0 0 1.5px "," inset;\n }\n\n ","\n "],["\n border: 1.5px solid ",";\n box-shadow: 0 0 0 1.5px transparent inset;\n &:focus {\n border: 1.5px solid ",";\n box-shadow: 0 0 0 1.5px "," inset;\n }\n &:hover {\n box-shadow: 0 0 0 1.5px "," inset;\n }\n\n ","\n "])),n.gray2,n.gray2,n.gray2,n.gray2,o&&e.css(gU||(gU=x(["\n box-shadow: 0 0 0 1.5px ",";\n color: ",";\n background-color: transparent;\n "],["\n box-shadow: 0 0 0 1.5px ",";\n color: ",";\n background-color: transparent;\n "])),n.gray3,n.gray3))})),JU=s.default(KU).attrs({variant:"custom"})(SU||(SU=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.colors,i=n.fonts,a=t.disabled,s=t.size,l=void 0===s?"medium":s,c=t.hoverButtonColor,u=t.hoverStrokeColor,p=void 0===u?"#00000040":u,d=t.buttonFont,f=void 0===d?"XL":d,h=t.textColor,m=void 0===h?"white":h,v=t.textSize,g=void 0===v?16:v,b=t.verticalPadding,y=t.horizontalPadding,w=t.buttonColor,C=void 0===w?"primary":w,D=t.buttonStroke,S=void 0===D?"primary":D,k=t.cornerRadius,T=void 0===k?"S":k,j=t.inactiveButtonColor,M=t.inactiveStrokeColor,A=t.inactiveTextColor,N=t.styles,R=r[C]||C,P="medium"===l?"".concat(o.M,"px"):"".concat(o.S,"px ").concat(o.M,"px"),B="medium"===l?i.XL:i.L,F=C?r[C]||C:r[p]||p;return e.css(DU||(DU=x(["\n padding: ",";\n border-color: ",";\n background-color: ",";\n font-size: ","px;\n ",";\n color: ",";\n border-radius: ","px;\n box-shadow: none;\n transition: border 0.2s ease-in-out;\n &:focus {\n border: 2.5px solid ",";\n }\n &:hover {\n border: 2.5px solid ",";\n ","\n }\n\n ","\n\n ","\n "],["\n padding: ",";\n border-color: ",";\n background-color: ",";\n font-size: ","px;\n ",";\n color: ",";\n border-radius: ","px;\n box-shadow: none;\n transition: border 0.2s ease-in-out;\n &:focus {\n border: 2.5px solid ",";\n }\n &:hover {\n border: 2.5px solid ",";\n ","\n }\n\n ","\n\n ","\n "])),y||b?"".concat(o[b||"M"],"px ").concat(o[y||"M"],"px"):P,r[S]||S,R,g,f?i[f]:B,r[m]||m,"number"==typeof T?T:o[T],O(F,-.33),r[p]||p,c&&e.css(wU||(wU=x(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),r[c]||c),a&&e.css(OU||(OU=x(["\n background-color: ",";\n color: ","\n ","\n ",";\n "],["\n background-color: ",";\n color: ","\n ","\n ",";\n "])),E(R||r.primary),r[A]||A,j&&e.css(CU||(CU=x(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),r[j]||j),M&&e.css(EU||(EU=x(["\n border: 2.5px solid ",";\n "],["\n border: 2.5px solid ",";\n "])),r[M]||M)),N)})),QU=s.default.div(TU||(TU=x(["\n display: inline-flex;\n ","\n"],["\n display: inline-flex;\n ","\n"])),(function(t){var n=t.$fullWidth,o=t.$styles;return e.css(kU||(kU=x(["\n width: ",";\n ","\n "],["\n width: ",";\n ","\n "])),n?"100%":"auto",o)})),eH=function(n){var o,r=n.text,i=n.onClick,a=n.loading,s=n.disabled,l=n.variant,c=void 0===l?"primary":l,u=n.isRichText,p=n.fullWidth,h=void 0===p||p,m=n.elementId,v=n.link,g=n.containerStyle,b=n.children,y=n.buttonStyle,w=n.size,C=n.textColor,E=void 0===C?"gray2":C,O=n.inactiveTextColor,D=void 0===O?"gray3":O,S=n.state,k=void 0===S?"enabled":S,T=n.href,j=f(n,["text","onClick","loading","disabled","variant","isRichText","fullWidth","elementId","link","containerStyle","children","buttonStyle","size","textColor","inactiveTextColor","state","href"]),M={primary:KU,secondary:ZU,custom:JU,text:aX}[c],A=s||"disabled"===k,N=e.useTheme().colors,R=IO(),P=R.showAnnotations,B=R.annotationsList,F=R.isMLRReview,L=B.links.findIndex((function(e){return m===e.moleculeId||v===e.url}))+1;if(!r&&!b)return null;var _={primary:"white",secondary:N[E],custom:N[E]||E,text:"blue"},I={primary:"white",secondary:N[D],custom:N[D]||D,text:N[D]},$=e.css(MU||(MU=x(["\n ","\n ","\n ","\n "],["\n ","\n ","\n ","\n "])),(null==j?void 0:j.textSize)&&e.css(jU||(jU=x(["\n font-size: ","px;\n "],["\n font-size: ","px;\n "])),j.textSize),y,j.styles),z=u?t.jsx(GU,{color:A?I[c]:_[c],font:"custom"===c&&j.buttonFont?j.buttonFont:"XL",value:r,extraTextProps:{behaveAs:"button",variant:"custom"===c&&j.buttonFont?j.buttonFont:"XL",styles:$}}):r;return t.jsx(QU,d({},L&&((o={id:UU})["data-".concat(qU)]=v,o["data-".concat(XU)]=m,o),{id:L?"annotation-link":"","data-link-url":v,"data-link-text":m,className:"z-button-container",$fullWidth:h,$styles:g},{children:t.jsxs(M,d({fullWidth:h,variant:c,disabled:a||A,onClick:i,style:d(d({},y),null==j?void 0:j.styles),size:w,textColor:E,inactiveTextColor:D,href:"text"===c?T:void 0},j,{children:[z||b,a&&t.jsxs(t.Fragment,{children:[t.jsx(jq,{width:6}),t.jsx(oX,{color:"gray1"})]}),F&&P&&!!L&&t.jsx("span",d({style:{position:"absolute",bottom:-6,left:"50%",zIndex:1,transform:"translate(-50%, 100%)"}},{children:t.jsx(Yne,{index:L,type:"link"})}))]}))}))},tH=function(e){var n=e.children,o=e.wrapperStyles,r=e.padding,i=void 0===r?64:r,a=e.onKeyDown,s=e.modalStyles,l=e.onClose,c=f(e,["children","wrapperStyles","padding","onKeyDown","modalStyles","onClose"]);return t.jsx(jf,d({},c,{style:s,onKeyDown:a},{children:t.jsxs(nH,d({style:d({padding:i},o)},{children:[n,t.jsx(Kk,d({onClick:l},{children:t.jsx(Tq,{size:32,name:"Close",color:D.colors.gray1})}))]}))}))},nH=s.default.div(NU||(NU=x(["\n position: absolute;\n left: 50%;\n outline: none;\n min-width: 510px;\n max-height: 90vh;\n overflow-y: auto;\n transform: translate(-50%);\n ","\n"],["\n position: absolute;\n left: 50%;\n outline: none;\n min-width: 510px;\n max-height: 90vh;\n overflow-y: auto;\n transform: translate(-50%);\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes,i=t.$styles;return e.css(AU||(AU=x(["\n top: ","px;\n box-shadow: ","px;\n border-radius: ","px;\n background-color: ",";\n ","\n "],["\n top: ","px;\n box-shadow: ","px;\n border-radius: ","px;\n background-color: ",";\n ","\n "])),r.XL,r.L,r.M,o.background,i)})),oH=function(e){var n=e.mode,o=void 0===n?"onChange":n,r=e.children,i=bS({mode:o});return t.jsx(wD,d({},i,{children:r}))},rH=function(e){var n=e.children,o=e.wide,r=e.compact,i=e.type,a=e.props,s=oq("xs"),l=o||{},c=l.containerProps,u=void 0===c?{}:c,p=l.containerStyle,f=void 0===p?{}:p,h=r||{},m=h.containerProps,v=void 0===m?{}:m,x=h.containerStyle,g=void 0===x?{}:x,b=s?v:u,y=function(){switch(i){case"slider":return t.jsx(p_,{children:n});case"form":return t.jsx(oH,d({},null==a?void 0:a.formProps,{children:n}));default:return n}}();return t.jsx(aH,d({containerProps:d(d({},a),b),style:s?g:f,type:i},{children:y}))},iH=["slider","form"],aH=s.default.div(PU||(PU=x(["\n ","\n"],["\n ","\n"])),(function(t){var n,o=t.type,r=void 0===o?"row":o,i=t.containerProps;return e.css(RU||(RU=x(["\n display: flex;\n align-items: stretch;\n flex-direction: ",";\n position: ",";\n border-radius: ","px;\n ",";\n ",";\n "],["\n display: flex;\n align-items: stretch;\n flex-direction: ",";\n position: ",";\n border-radius: ","px;\n ",";\n ",";\n "])),"column"===r?"column":"row",(null==i?void 0:i.position)||"static",(null==i?void 0:i.cornerRadius)||0,"vertical"===(n=iH.includes(r)?"none":null==i?void 0:i.scrollBehaviour)?"overflow-y: scroll":"horizontal"===n?"overflow-x: scroll":"none"===n?"overflow: visible":"overflow: unset",null==i?void 0:i.styles)}));HomeHeroImage,HomeHeroImage;var sH,lH,cH,uH,pH,dH,fH,hH,mH,vH,xH,gH,bH,yH,wH,CH,EH,OH,DH,SH,kH,TH,jH,MH,AH,NH,RH,PH,BH,FH,LH,_H,IH,$H,zH,VH,WH,UH,HH,qH,XH={id:"331258c2-da09-46e2-b79b-1e1dec021837",instance:"container",type:"form",config:{props:{formProps:{mode:"onTouched"},styles:{display:"flex",flexDirection:"column",gap:"24px",padding:"16px"}}},items:[{id:"5609bb9c-600f-41cd-b878-4f4946e79d52",instance:"molecule",type:"input_field",attributes:{label:{attributeType:"text",text:'[{"type":"paragraph","children":[{"text":"Input Field Title"}]}]',isRichText:!0},required:{attributeType:"boolean",value:!0},inputType:{attributeType:"select",options:[{id:"any",label:"Any"},{id:"numerical",label:"Numerical"},{id:"text",label:"Text"},{id:"email",label:"Email"},{id:"phone-number",label:"Phone Number"}],value:"numerical"}},config:{props:{state:"default",name:"inputField",labelsProps:{tooltipText:"Tooltip text"}}}},{instance:"molecule",type:"select_field",attributes:{label:{attributeType:"text",text:'[{"type":"paragraph","children":[{"text":"Select Field Title"}]}]',isRichText:!0},required:{attributeType:"boolean",value:!0},options:{attributeType:"iterable",options:[{id:"label-1",label:'[{"type":"paragraph","children":[{"text":"First Option"}]}]'},{id:"label-2",label:'[{"type":"paragraph","children":[{"text":"Second Option"}]}]'},{id:"1689153736917",label:'[{"type":"paragraph","children":[{"text":"3rd Option"}]}]'}]}},config:{props:{state:"default",name:"selectField",labelsProps:{tooltipText:"Tooltip text"}}},id:"9b2f7c20-8884-473b-ba5f-edb69cbeea05"},{instance:"molecule",type:"radio_button_field",attributes:{label:{attributeType:"text",text:'[{"type":"paragraph","children":[{"text":"Radio Button Field Title"}]}]',isRichText:!0},required:{attributeType:"boolean",value:!0},options:{attributeType:"iterable",options:[{id:"label-1",label:'[{"type":"paragraph","children":[{"text":"First Option"}]}]'},{id:"label-2",label:'[{"type":"paragraph","children":[{"text":"Second Option"}]}]'},{id:"1689153736917",label:'[{"type":"paragraph","children":[{"text":"3rd Option"}]}]'}]}},config:{props:{state:"default",name:"radioButtonField",labelsProps:{tooltipText:"Tooltip text"},radioButtonsProps:{internalConfig:{buttonOptionSpacing:"XS"}}}},id:"9b2f7c20-8884-473b-ba5f-edb69cbeea05"},{instance:"molecule",type:"checkbox_field",attributes:{label:{attributeType:"text",text:'[{"type":"paragraph","children":[{"text":"Checkbox Field Title"}]}]',isRichText:!0},required:{attributeType:"boolean",value:!0},options:{attributeType:"iterable",options:[{id:"checkbox_1",label:'[{"type":"paragraph","children":[{"text":"Default checkbox option"}]}]'},{id:"checkbox_2",label:'[{"type":"paragraph","children":[{"text":"Error checkbox option"}]}]'},{id:"checkbox_3",label:'[{"type":"paragraph","children":[{"text":"Disable checkbox option"}]}]'}]}},config:{props:{state:"default",name:"checkboxField",labelsProps:{tooltipText:"Checkbox tooltip text"},checkboxesProps:{isRichText:!0,internalConfig:{buttonOptionSpacing:"M"}}}},id:"9b2f7c20-8884-473b-ba5f-edb69cbeea09"},{id:"e940fff4-fb98-4262-b8bf-b10f23ba9eab",instance:"molecule",metadata:{},form:null,type:"button",attributes:{title:{id:"test",isRichText:!0,attributeType:"text",text:'[{"type":"paragraph","children":[{"text":"Submit"}]}]'},action:{action:{type:"popup"}}},config:{props:{type:"submit",fullWidth:!1}}},{id:"e940fff4-fb98-4262-b8bf-b10f23ba9eaa",instance:"molecule",type:"text",attributes:{text:{isRichText:!0,text:'[{\\"type\\":\\"paragraph\\",\\"children\\":[{\\"text\\":\\"Hello World \\"}]}]',attributeType:"text"},seoStyle:{attributeType:"select",value:"h1",options:[{id:"h1",label:"H1"}]}},config:{props:{variant:"custom",styles:{color:"red","font-size":"32px"}}}}]},GH=function(e){var t=window.location,n=t.host,o=t.protocol;return"".concat(o,"//").concat(n,"/").concat(e)},YH=function(e){var n,o,r=e.type,i=e.config,a=e.attributes,s=e.tabsProps,l=e.form,c=e.id,u=zO(),p=u.setModalVisible,v=u.setDrawerVisible,x=u.setActionContent;switch(r){case"text":var g=null===(n=null==a?void 0:a.seoStyle)||void 0===n?void 0:n.value,b=i.props;return t.jsx(VO,d({},a.text,b,{seoTag:g}));case"button":var y=a||{},w=y.title.text,C=y.action,E=(i||{}).props,O=E.variant,D=f(E,["variant"]),S=(null==C?void 0:C.action)||{},k=S.link;S.popup,S.drawer;var T=S.download,j={link:function(){if(null==k?void 0:k.type){var e=k.type,t=k[e]||"";"internalLink"===e?function(e){var t=GH(e);window.open(t,"_blank")}(t):window.open(t,"_blank")}},popup:function(){p(!0),x(XH)},drawer:function(){v(!0),x(XH)},download:function(){return T?(e=T.url,t=T.name,void 0===e&&(e=""),void 0===t&&(t="Downloaded file"),h(void 0,void 0,void 0,(function(){var n,o,r,i;return m(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),[4,fetch(e)];case 1:return[4,a.sent().blob()];case 2:return n=a.sent(),o=URL.createObjectURL(n),(r=document.createElement("a")).href=o,r.download=t,r.click(),URL.revokeObjectURL(o),[3,4];case 3:return i=a.sent(),fG({message:"Failed to download the file: ".concat(i),type:"error"}),[3,4];case 4:return[2]}}))}))):fG({message:"File not found to download",type:"warning"});var e,t},submit:function(){return h(void 0,void 0,void 0,(function(){return m(this,(function(e){switch(e.label){case 0:return[4,null==l?void 0:l.trigger()];case 1:return e.sent(),[2]}}))}))},reset:function(){return fG({message:"Reset action triggerred",type:"warning"})},destroy:function(){return fG({message:"Destroy action triggerred",type:"warning"})}};return t.jsx(eH,d({text:w,isRichText:!0},D,{variant:O,elementId:c,link:(null==k?void 0:k[null==k?void 0:k.type])||"",onClick:j[null===(o=null==C?void 0:C.action)||void 0===o?void 0:o.type],href:"text"===O?(null==k?void 0:k[null==k?void 0:k.type])||"":void 0}));case"image":var M=a.image.imageSource,A=a.link,N=a.altText;b=i.props;return t.jsx(u_,d({id:c,src:M,link:GH(A[A.type]||""),altText:null==N?void 0:N.text},b));case"video":var R=a.video.videoSource,P=a.enableCoverImage,B=a.autoPlayVideo;M=a.coverImage.imageSource,b=i.props;return t.jsx(a_,d({src:R,enableCoverImage:P.value,autoplay:B.value,coverImageSrc:M},b));case"header_tab_group":var F=s||{},L=F.tabs,_=F.onTabChange,I=F.activeTabKey,$=(b=i.props,i.wide),z=i.compact;return t.jsx(ZF,d({},b,{wide:$,compact:z,tabs:L||[],activeTabKey:I||"",onTabChange:_}));case"input_field":var V=i.props,W=V.inputProps,U=V.labelsProps,H=f(V,["inputProps","labelsProps"]),q=(w=a.label.text,a.inputType),X=(K=a.required).value;return t.jsx(mk,d({},H,{required:X,optional:!X,inputProps:d(d({},W),{type:q.value,placeholder:(null==W?void 0:W.placeholder)||"Enter a placeholder"}),labelsProps:d({label:w,isRichText:!0,ruleLabel:X?"REQUIRED":"OPTIONAL"},U),control:null==l?void 0:l.control}));case"select_field":var G=i.props,Y=G.selectProps,K=(U=G.labelsProps,H=f(G,["selectProps","labelsProps"]),w=a.label.text,a.required),Z=a.options.options;X=K.value;return t.jsx(kk,d({},H,{control:null==l?void 0:l.control,selectProps:d(d({},Y),{options:Z,isRichText:!0,placeholder:(null==Y?void 0:Y.placeholder)||"Enter a placeholder"}),required:X,optional:!X,labelsProps:d(d({},U),{label:w,isRichText:!0,ruleLabel:X?"REQUIRED":"OPTIONAL"})}));case"radio_button_field":var J=i.props,Q=J.radioButtonsProps,ee=(U=J.labelsProps,H=f(J,["radioButtonsProps","labelsProps"]),w=a.label.text,K=a.required,a.options.options);X=K.value;return t.jsx(nL,d({},H,{control:null==l?void 0:l.control,radioButtonsProps:d(d({},Q),{options:ee}),required:X,optional:!X,labelsProps:d(d({},U),{label:w,isRichText:!0,ruleLabel:X?"REQUIRED":"OPTIONAL"})}));case"checkbox_field":var te=i.props,ne=te.checkboxesProps,oe=(U=te.labelsProps,H=f(te,["checkboxesProps","labelsProps"]),w=a.label.text,K=a.required,a.options.options);X=K.value;return t.jsx(Dk,d({},H,{control:null==l?void 0:l.control,checkboxesProps:d(d({},ne),{options:oe}),required:X,optional:!X,labelsProps:d(d({},U),{label:w,isRichText:!0,ruleLabel:X?"REQUIRED":"OPTIONAL"})}));default:return t.jsx(t.Fragment,{children:"There is no such type of molecule yet."})}},KH=function(e){var n,o=e.item,r=e.tabsProps,i=yD();return"molecule"===o.instance?t.jsx(YH,d({},o,{tabsProps:r,form:i})):o.items&&o.items.length?t.jsx(rH,d({type:o.type},o.config,{children:null===(n=o.items)||void 0===n?void 0:n.map((function(e){return t.jsx(KH,{item:e,tabsProps:r},e.id)}))})):null},ZH=function(e){var o=e.children,r=n.useState(XH),i=r[0],a=r[1],s=n.useState(!1),l=s[0],c=s[1],u=n.useState(!1),p=u[0],f=u[1],h=function(){c(!1),f(!1)},m=n.useMemo((function(){return{actionContent:i,setActionContent:a,isModalVisible:l,setModalVisible:c,isDrawerVisible:p,setDrawerVisible:f}}),[i,l,p]),v=t.jsx(KH,{item:i});return t.jsxs($O.Provider,d({value:m},{children:[t.jsx(tH,d({open:l,onClose:h},{children:v})),t.jsx(Zk,d({open:p,onClose:h,anchor:"right"},{children:v})),o]}))},JH=D.colors,QH=D.sizes,eq=e.css(sH||(sH=x(["\n .rc-notification {\n transform: translate(-50%, 0);\n width: max-content;\n max-width: 90%;\n &-notice {\n margin: ","px 0;\n border-radius: 100px;\n padding: ","px;\n padding-right: ","px;\n &-close {\n top: 15px;\n right: 20px;\n opacity: 0.8;\n &:hover {\n opacity: 1;\n }\n }\n &.toast-success {\n background-color: ",";\n }\n &.toast-error {\n background-color: ",";\n }\n &.toast-warning {\n background-color: ",";\n }\n &.toast-infoTierOne {\n background-color: ",";\n }\n &.toast-infoTierTwo {\n background-color: ",";\n }\n }\n &-fade {\n overflow: hidden;\n transition: all 0.3s;\n }\n\n &-fade-appear-start {\n transform: translateY(-100%);\n opacity: 0;\n }\n\n &-fade-appear-active {\n transform: translateY(0);\n opacity: 1;\n }\n }\n"],["\n .rc-notification {\n transform: translate(-50%, 0);\n width: max-content;\n max-width: 90%;\n &-notice {\n margin: ","px 0;\n border-radius: 100px;\n padding: ","px;\n padding-right: ","px;\n &-close {\n top: 15px;\n right: 20px;\n opacity: 0.8;\n &:hover {\n opacity: 1;\n }\n }\n &.toast-success {\n background-color: ",";\n }\n &.toast-error {\n background-color: ",";\n }\n &.toast-warning {\n background-color: ",";\n }\n &.toast-infoTierOne {\n background-color: ",";\n }\n &.toast-infoTierTwo {\n background-color: ",";\n }\n }\n &-fade {\n overflow: hidden;\n transition: all 0.3s;\n }\n\n &-fade-appear-start {\n transform: translateY(-100%);\n opacity: 0;\n }\n\n &-fade-appear-active {\n transform: translateY(0);\n opacity: 1;\n }\n }\n"])),QH.S+QH.XS,QH.S,QH.M+QH.XS,JH.greenTint,JH.redTint,JH.yellowTint,JH.blueTint,E(JH.gray2)),tq=e.createGlobalStyle(lH||(lH=x(["\n * {\n font-family: 'Rubik', sans-serif;\n box-sizing: border-box;\n }\n body {\n margin: 0;\n ",";\n input:-webkit-autofill {\n -webkit-background-clip: text;\n }\n }\n \n h1,h2,h3,h4,h5,h6,p, ol, ul {\n padding: 0;\n margin: 0;\n }\n"],["\n * {\n font-family: 'Rubik', sans-serif;\n box-sizing: border-box;\n }\n body {\n margin: 0;\n ",";\n input:-webkit-autofill {\n -webkit-background-clip: text;\n }\n }\n \n h1,h2,h3,h4,h5,h6,p, ol, ul {\n padding: 0;\n margin: 0;\n }\n"])),eq),nq=Rs(),oq=function(e){var t,o,r,i,a=(t=e,o=D.devices,r=Object.keys(o),i=r[r.indexOf(t)+1],"xl"===t?"(min-width: ".concat(o[t]," )"):"(min-width: ".concat(o[t],") and (max-width: ").concat(o[i]||o[t],")")),s=function(){return"undefined"!=typeof window&&window.matchMedia(a).matches},l=n.useState(s()),c=l[0],u=l[1],p=function(){return u(s())};return n.useEffect((function(){var e=window.matchMedia(a);return p(),e.addEventListener("change",p),function(){e.removeEventListener("change",p)}}),[a]),c},rq=function(e){var n=e.fill,o=void 0===n?D.colors.gray5:n,r=e.color,i=void 0===r?D.colors.gray3:r,a=e.size,s=void 0===a?33:a,l=f(e,["fill","color","size"]);return t.jsx("svg",d({width:s,height:s,viewBox:"0 0 33 33",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l,{children:t.jsx("path",{d:"M21.734 24.2969L16.1687 20.8186L10.6035 24.2969V8.99253C10.6035 8.80803 10.6768 8.63109 10.8073 8.50063C10.9377 8.37017 11.1147 8.29688 11.2992 8.29688H21.0383C21.2228 8.29688 21.3997 8.37017 21.5302 8.50063C21.6607 8.63109 21.734 8.80803 21.734 8.99253V24.2969Z",stroke:i,fill:o,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}))},iq=function(e){var n=e.color,o=void 0===n?D.colors.gray1:n,r=e.size,i=void 0===r?32:r;return t.jsx("svg",d({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",style:w(i)},{children:t.jsx("path",{d:"M24 12.5417L16 20.5417L8 12.5417",stroke:o,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}))},aq=function(e){var n=e.color,o=void 0===n?D.colors.gray1:n,r=f(e,["color"]);return t.jsx("svg",d({width:18,height:11,fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{children:t.jsx("path",{d:"m1 9.5 8-8 8 8",stroke:o,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})}))},sq=function(e){var n=e.color,o=void 0===n?D.colors.blue:n,r=e.size,i=void 0===r?16:r,a=f(e,["color","size"]);return t.jsx("svg",d({width:17,height:16,viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:w(i)},a,{children:t.jsx("path",{d:"M10.7693 12L6.76929 8L10.7693 4",stroke:o,strokeLinecap:"round",strokeLinejoin:"round"})}))},lq=function(e){var n=e.color,o=void 0===n?D.colors.gray1:n,r=e.size,i=void 0===r?33:r,a=f(e,["color","size"]);return t.jsx("svg",d({width:"33",height:"33",viewBox:"0 0 33 33",fill:"none"},a,{style:w(i)},{children:t.jsx("path",{d:"M12.9968 8.5L20.9968 16.5L12.9968 24.5",stroke:o,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}))},cq=function(e){var n=e.size,o=void 0===n?16:n,r=e.color,i=void 0===r?D.colors.black:r;return t.jsx("svg",d({width:16,height:16,viewBox:"0 0 16 16",fill:"none",style:w(o)},{children:t.jsx("path",{d:"M12 5.83331L6.66667 11.1666L4 8.49998",stroke:i,strokeLinecap:"round",strokeLinejoin:"round"})}))},uq=function(e){var n=e.size,o=void 0===n?16:n,r=e.color,i=void 0===r?D.colors.black:r;return t.jsxs("svg",d({pointerEvents:"none",width:o,height:o,viewBox:"0 0 ".concat(o," ").concat(o),fill:"none"},{children:[t.jsx("path",{d:"M8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12Z",stroke:i,strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M7.6665 7.66663H7.99984V9.99996H8.33317",stroke:i,strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M7.91667 6.58333C8.14679 6.58333 8.33333 6.39679 8.33333 6.16667C8.33333 5.93655 8.14679 5.75 7.91667 5.75C7.68655 5.75 7.5 5.93655 7.5 6.16667C7.5 6.39679 7.68655 6.58333 7.91667 6.58333Z",fill:i})]}))},pq=function(e){var n=e.size,o=void 0===n?32:n,r=e.color,i=void 0===r?D.colors.gray1:r;return t.jsx("svg",d({width:32,height:32,viewBox:"0 0 32 32",style:w(o),fill:"none"},{children:t.jsx("path",{d:"M8.68138 8.45905H23.3186C23.4508 8.45909 23.5802 8.49758 23.6909 8.56983C23.8016 8.64208 23.8889 8.74498 23.9422 8.86598C23.9955 8.98698 24.0124 9.12086 23.991 9.25132C23.9695 9.38177 23.9105 9.50317 23.8213 9.60072L18.2237 15.7606C18.1072 15.8853 18.0431 16.0501 18.0448 16.2207V21.043C18.0458 21.1563 18.0183 21.268 17.9646 21.3677C17.911 21.4675 17.8331 21.5522 17.7381 21.6138L15.0117 23.4286C14.9094 23.4959 14.7909 23.5345 14.6686 23.5402C14.5462 23.5459 14.4246 23.5186 14.3165 23.461C14.2084 23.4035 14.1178 23.3179 14.0542 23.2132C13.9907 23.1086 13.9565 22.9887 13.9552 22.8663V16.2207C13.9569 16.0501 13.8928 15.8853 13.7763 15.7606L8.1787 9.60072C8.08946 9.50317 8.03051 9.38177 8.00905 9.25132C7.98758 9.12086 8.00451 8.98698 8.05779 8.86598C8.11107 8.74498 8.19838 8.64208 8.3091 8.56983C8.41982 8.49758 8.54917 8.45909 8.68138 8.45905V8.45905Z",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}))},dq=function(e){var n=e.size,o=void 0===n?18:n,r=e.color,i=void 0===r?D.colors.gray2:r;return t.jsxs("svg",d({width:32,height:32,viewBox:"0 0 32 32",style:w(o)},{children:[t.jsx("path",{d:"M24 8L8 24",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M24 24L8 8",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},fq=function(e){var n=e.color,o=void 0===n?D.colors.primary:n,r=e.size,i=void 0===r?32:r;return t.jsxs("svg",d({width:"33",height:"33",viewBox:"0 0 33 33",fill:"none",style:w(i)},{children:[t.jsx("path",{d:"M16.8203 11.111C11.106 11.111 8.82031 16.2539 8.82031 16.2539C8.82031 16.2539 11.106 21.3967 16.8203 21.3967C22.5346 21.3967 24.8203 16.2539 24.8203 16.2539C24.8203 16.2539 22.5346 11.111 16.8203 11.111Z",stroke:o,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M16.8205 19.111C18.3985 19.111 19.6777 17.8318 19.6777 16.2539C19.6777 14.6759 18.3985 13.3967 16.8205 13.3967C15.2426 13.3967 13.9634 14.6759 13.9634 16.2539C13.9634 17.8318 15.2426 19.111 16.8205 19.111Z",stroke:o,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},hq=function(e){var n=e.color,o=void 0===n?D.colors.gray1:n,r=e.size,i=void 0===r?32:r;return t.jsxs("svg",d({width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",style:w(i)},{children:[t.jsx("path",{d:"M11.8667 7.4231L12.8204 9.06807",stroke:o,strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M9.91357 8.33929L10.2093 10.0176",stroke:o,strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M7.72732 8.33508L7.43164 10.0175",stroke:o,strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M5.77398 7.4231L4.82031 9.07639",stroke:o,strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M4.82422 6.49023C5.52385 7.35645 6.80651 8.4517 8.82212 8.4517C10.8377 8.4517 12.1204 7.35645 12.82 6.49023",stroke:o,strokeLinecap:"round",strokeLinejoin:"round"})]}))},mq=function(e){var n=e.color,o=void 0===n?"#F20089":n,r=e.size,i=void 0===r?44:r;return t.jsxs("svg",d({width:i,height:i,viewBox:"0 0 ".concat(i," ").concat(i),fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[t.jsx("path",{d:"M3.90742 14.3118C2.63783 12.9106 1.95569 11.0749 2.00223 9.18463C2.04877 7.29439 2.82043 5.49444 4.15743 4.15743C5.49444 2.82043 7.29439 2.04877 9.18463 2.00223C11.0749 1.95569 12.9106 2.63783 14.3118 3.90742L40.0926 29.6882C41.3622 31.0894 42.0443 32.9251 41.9978 34.8154C41.9512 36.7056 41.1796 38.5056 39.8426 39.8426C38.5056 41.1796 36.7056 41.9512 34.8154 41.9978C32.9251 42.0443 31.0894 41.3622 29.6882 40.0926L3.90742 14.3118Z",stroke:o,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M29.6882 3.90742C31.0894 2.63783 32.9251 1.95569 34.8154 2.00223C36.7056 2.04877 38.5056 2.82043 39.8426 4.15743C41.1796 5.49444 41.9512 7.29439 41.9978 9.18463C42.0443 11.0749 41.3622 12.9106 40.0926 14.3118L14.3118 40.0926C12.9106 41.3622 11.0749 42.0443 9.18463 41.9978C7.29439 41.9512 5.49444 41.1796 4.15743 39.8426C2.82043 38.5056 2.04877 36.7056 2.00223 34.8154C1.95569 32.9251 2.63783 31.0894 3.90742 29.6882L29.6882 3.90742Z",stroke:o,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{opacity:"0.5",d:"M22 22.9208C22.5085 22.9208 22.9208 22.5086 22.9208 22.0001C22.9208 21.4916 22.5085 21.0793 22 21.0793C21.4915 21.0793 21.0793 21.4916 21.0793 22.0001C21.0793 22.5086 21.4915 22.9208 22 22.9208Z",stroke:o,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M22 24.7622C23.5256 24.7622 24.7622 23.5256 24.7622 22C24.7622 20.4745 23.5256 19.2378 22 19.2378C20.4745 19.2378 19.2378 20.4745 19.2378 22C19.2378 23.5256 20.4745 24.7622 22 24.7622Z",fill:"#F20089"})]}))},vq=function(e){var n=e.size,o=void 0===n?16:n,r=e.color,i=void 0===r?D.colors.gray2:r;return t.jsx("svg",d({width:o,height:o,viewBox:"0 0 ".concat(o," ").concat(o),fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:t.jsx("path",{d:"M4 8H12",stroke:i,strokeLinecap:"round",strokeLinejoin:"round"})}))},xq=function(e){var n=e.size,o=void 0===n?18:n,r=e.color,i=void 0===r?"#fff":r;return t.jsx("svg",d({width:18,height:18,viewBox:"0 0 18 18",fill:"none",style:w(o)},{children:t.jsx("path",{d:"M5.325 17h5.333M2.017 7a5.992 5.992 0 0 1 6.025-6c3.3.025 5.941 2.767 5.941 6.075v.592c0 2.983.625 4.716 1.175 5.666a.666.666 0 0 1-.575 1H1.417a.668.668 0 0 1-.575-1c.55-.95 1.175-2.683 1.175-5.666V7Z",stroke:i,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})}))},gq=function(e){var n=e.size,o=void 0===n?18:n,r=e.color,i=void 0===r?D.colors.yellowShade:r;return t.jsxs("svg",d({width:18,height:18,viewBox:"0 0 18 18",fill:"none",style:w(o)},{children:[t.jsx("path",{d:"M9 6.46v3.08M7.938 1.535 1.165 13.234a1.232 1.232 0 0 0 1.062 1.847h13.546a1.232 1.232 0 0 0 1.062-1.847L10.062 1.535a1.224 1.224 0 0 0-2.124 0v0Z",stroke:i,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M9 13.08a.77.77 0 1 0 0-1.54.77.77 0 0 0 0 1.54Z",fill:i})]}))},bq=function(e){var n=e.size,o=void 0===n?27:n,r=e.color,i=void 0===r?D.colors.gray1:r;return t.jsx("svg",d({width:18,height:27,fill:"none",viewBox:"0 0 18 27",style:w(o)},{children:t.jsx("path",{d:"M14.359 1.254H3.282c-1.02 0-1.846.826-1.846 1.846v20.308c0 1.02.826 1.846 1.846 1.846h11.077c1.02 0 1.846-.827 1.846-1.846V3.1c0-1.02-.827-1.846-1.846-1.846ZM1.436 4.946h14.769M1.436 21.562h14.769",stroke:i,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})}))},yq=function(e){var n=e.size,o=void 0===n?27:n,r=e.color,i=void 0===r?D.colors.gray1:r;return t.jsxs("svg",d({width:27,height:21,viewBox:"0 0 27 21",fill:"none",style:w(o)},{children:[t.jsx("path",{d:"M1.82 1.254h24v17a1 1 0 0 1-1 1h-22a1 1 0 0 1-1-1v-17Z",stroke:i,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"m25.82 1.254-12 11-12-11",stroke:i,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]}))},wq=function(e){var n=e.size,o=void 0===n?18:n,r=e.color,i=void 0===r?D.colors.gray2:r;return t.jsxs("svg",d({width:18,height:18,viewBox:"0 0 18 18",fill:"none",style:w(o)},{children:[t.jsx("path",{d:"M8.65273 12.1304H5.87012V9.34783L14.2179 1L17.0006 3.78261L8.65273 12.1304Z",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M12.1318 3.08698L14.9144 5.86958",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M16.3053 8.65217V16.3043C16.3053 16.4888 16.232 16.6658 16.1016 16.7962C15.9711 16.9267 15.7942 17 15.6097 17H1.69663C1.51213 17 1.33519 16.9267 1.20473 16.7962C1.07427 16.6658 1.00098 16.4888 1.00098 16.3043V2.3913C1.00098 2.2068 1.07427 2.02986 1.20473 1.8994C1.33519 1.76894 1.51213 1.69565 1.69663 1.69565H9.3488",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},Cq=function(e){var n=e.size,o=void 0===n?18:n,r=e.color,i=void 0===r?D.colors.gray2:r;return t.jsxs("svg",d({width:18,height:18,viewBox:"0 0 18 18",fill:"none",style:w(o)},{children:[t.jsx("path",{d:"M17.001 5.66364V16.2727C17.001 16.4656 16.9243 16.6506 16.788 16.787C16.6516 16.9234 16.4666 17 16.2737 17H1.72825C1.53536 17 1.35038 16.9234 1.21399 16.787C1.0776 16.6506 1.00098 16.4656 1.00098 16.2727V1.72728C1.00098 1.53439 1.0776 1.34941 1.21399 1.21302C1.35038 1.07663 1.53536 1 1.72825 1H12.3373C12.4318 0.999673 12.5253 1.01797 12.6127 1.05385C12.7001 1.08973 12.7795 1.14248 12.8464 1.2091L16.7919 5.15455C16.8585 5.22149 16.9112 5.30091 16.9471 5.38827C16.983 5.47563 17.0013 5.5692 17.001 5.66364V5.66364Z",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M4.6377 17V11.1819C4.6377 10.989 4.71432 10.804 4.85071 10.6676C4.9871 10.5312 5.17208 10.4546 5.36497 10.4546H12.6377C12.8306 10.4546 13.0156 10.5312 13.152 10.6676C13.2883 10.804 13.365 10.989 13.365 11.1819V17",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M11.1827 3.90906H6.0918",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},Eq=function(e){var n=e.size,o=void 0===n?19:n,r=e.color,i=void 0===r?D.colors.gray2:r;return t.jsxs("svg",d({width:19,height:14,viewBox:"0 0 19 14",fill:"none",style:w(o)},{children:[t.jsx("path",{d:"M1.28174 7.14917H17.2817",stroke:i,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M1.28174 1.33105H17.2817",stroke:i,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M1.28174 12.9675H17.2817",stroke:i,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]}))},Oq=function(e){var n=e.size,o=void 0===n?48:n,r=e.color,i=void 0===r?D.colors.gray4:r;return t.jsxs("svg",d({width:"49",height:"49",viewBox:"0 0 49 49",fill:"none",style:w(o)},{children:[t.jsx("path",{d:"M24.457 40.4443C33.2936 40.4443 40.457 33.2809 40.457 24.4443C40.457 15.6078 33.2936 8.44434 24.457 8.44434C15.6205 8.44434 8.45703 15.6078 8.45703 24.4443C8.45703 33.2809 15.6205 40.4443 24.457 40.4443Z",stroke:i,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M29.7827 24.4442L21.7827 19.1108V29.7775L29.7827 24.4442Z",stroke:i,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},Dq=function(e){var n=e.size,o=void 0===n?32:n,r=e.color,i=void 0===r?D.colors.gray3:r,a=f(e,["size","color"]);return t.jsxs("svg",d({width:32,height:32,viewBox:"0 0 32 32",style:w(o),fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{children:[t.jsx("path",{d:"M15 22.0391C18.866 22.0391 22 18.9051 22 15.0391C22 11.1731 18.866 8.03906 15 8.03906C11.134 8.03906 8 11.1731 8 15.0391C8 18.9051 11.134 22.0391 15 22.0391Z",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M19.9502 19.9891L24.0002 24.0391",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},Sq=function(e){var n=e.color,o=void 0===n?D.colors.gray1:n,r=f(e,["color"]);return t.jsxs("svg",d({width:"19",height:"15",viewBox:"0 0 19 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{children:[t.jsx("path",{d:"M1.33337 7.5H17.3334",stroke:o,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M10.7878 0.95459L17.3332 7.50004L10.7878 14.0455",stroke:o,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},kq={ArrowRight:Sq,Bell:xq,Bookmark:rq,CaretDown:iq,CaretLeft:sq,CaretRight:lq,CaretUp:aq,Check:cq,Close:dq,Edit:wq,Filter:pq,Hide:hq,Info:uq,InfoBoxIcon:mq,Mail:yq,Menu:Eq,Minus:vq,Mobile:bq,Play:Oq,Save:Cq,Search:Dq,View:fq,Warning:gq},Tq=function(n){var o=n.name,r=n.color,i=f(n,["name","color"]),a=(e.useTheme()||D).colors,s=kq[o];return t.jsx(s,d({},i,{color:a[r]||r}))},jq=s.default.div(uH||(uH=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.sizes,o=t.height,r=void 0===o?0:o,i=t.width,a=void 0===i?0:i,s=t.layout,l=void 0===s?"div":s;return e.css(cH||(cH=x(["\n height: ","px;\n width: ","px;\n display: ",";\n "],["\n height: ","px;\n width: ","px;\n display: ",";\n "])),"string"==typeof r?n[r]:r,"string"==typeof a?n[a]:a,"span"===l?"inline-flex":"block")})),Mq=function(e){var n=e.children,o=e.seoTag,r=void 0===o?"div":o,i=f(e,["children","seoTag"]);return t.jsx(Aq,d({},i,{as:r},{children:n}))},Aq=s.default.div(fH||(fH=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.fonts,i=t.layout,a=void 0===i?"div":i,s=t.variant,l=void 0===s?"L":s,c=t.styles,u=t.color,p=t.type,d=t.numberOfLines,f=t.textAlign,h=void 0===f?"left":f,m=t.behaveAs,v=void 0===m?"text":m;return e.css(dH||(dH=x(["\n display: ",";\n color: ",";\n ","\n ",";\n ",";\n text-align: ",";\n &:hover {\n cursor: ",";\n }\n "],["\n display: ",";\n color: ",";\n ","\n ",";\n ",";\n text-align: ",";\n &:hover {\n cursor: ",";\n }\n "])),"span"===a?"inline-flex":"block",o[null!=u?u:p]||u||o.gray1,r[l],c,function(t){return e.css(pH||(pH=x(["\n overflow: ",";\n text-overflow: ellipsis;\n display: ",";\n -webkit-line-clamp: ","; /* number of lines to show */\n line-clamp: ",";\n -webkit-box-orient: vertical;\n white-space: pre-wrap;\n word-wrap: break-word;\n"],["\n overflow: ",";\n text-overflow: ellipsis;\n display: ",";\n -webkit-line-clamp: ","; /* number of lines to show */\n line-clamp: ",";\n -webkit-box-orient: vertical;\n white-space: pre-wrap;\n word-wrap: break-word;\n"])),t?"hidden":"unset",t?"-webkit-box":"unset",t?"".concat(t):"unset",t?"".concat(t):"unset")}(d),h,"button"===v?"pointer":"auto")})),Nq=function(e){var n=e.text;return t.jsxs(t.Fragment,{children:[t.jsx(jq,{height:"XS"}),t.jsx(Mq,d({variant:"XS",color:"red"},{children:n}))]})},Rq={selected:"primary",disabled:"gray4",default:"white",error:"white"},Pq={selected:"primary",disabled:"gray4",default:"gray3",error:"red"},Bq={selected:"white",disabled:"gray2",default:"white",error:"red"},Fq={selected:"gray1",disabled:"gray3",default:"gray1",error:"red"},Lq=function(o){var r=o.id,i=o.onClick,a=o.label,s=o.isError,l=o.disabled,c=o.isEditMode,u=void 0===c||c,p=o.isSelected,f=void 0!==p&&p,h=o.isRichText,m=o.internalConfig,v=n.useState(!1),g=v[0],b=v[1],y=function(t,n,o){var r=o||{},i=r.selectedCheckboxBackgroundColor,a=void 0===i?Rq.selected:i,s=r.selectedCheckboxIconColor,l=void 0===s?Bq.default:s,c=r.styles,u=r.wrapperStyles,p=r.textPadding,d=void 0===p?0:p,f=r.buttonPadding,h=void 0===f?0:f,m="selected"===n?D.colors[l]||l:D.colors[Bq[n]||Bq.default],v=e.css((function(e){var o=e.theme.colors;return"\n border-color: ".concat(t?o.gray2:o[Pq[n]||Pq.default],";\n background-color: ").concat("selected"===n?o[a]||a:o[Rq[n]||Rq.default],";\n ")})),g=e.css((function(e){var t=e.theme.colors;return"\n color: ".concat(t[Fq[n]||Fq.default],";\n padding: ").concat(d,"px; \n ")}));return{checkboxIconWrapperColor:v,checkboxIconColor:m,checkboxTextStyles:g,checkboxWrapperStyles:e.css(hH||(hH=x(["\n padding: ","px;\n ","\n ","\n "],["\n padding: ","px;\n ","\n ","\n "])),h,c,u)}}(g,s?"error":l?"disabled":f?"selected":"default",m),w=y.checkboxIconWrapperColor,C=y.checkboxIconColor,E=y.checkboxWrapperStyles,O=y.checkboxTextStyles,S=a?t.jsx(zq,{children:h?t.jsx(GU,{textStyles:O,value:a,font:"M"}):t.jsx(Vq,d({$styles:O,behaveAs:l?"text":"button",variant:"M"},{children:a}))}):null;return t.jsx(t.Fragment,{children:t.jsxs(_q,d({activeOpacity:.8,disabled:l,$styles:E},!l&&u&&{onClick:function(){return i(r)},onMouseEnter:function(){return b(!0)},onMouseLeave:function(){return b(!1)}},{children:[t.jsx($q,d({$styles:w},{children:f&&t.jsx(Iq,{color:C,name:"Check"})})),t.jsx(jq,{width:"S"}),S]}))})},_q=s.default(y)(mH||(mH=x(["\n display: flex;\n width: max-content;\n ","\n"],["\n display: flex;\n width: max-content;\n ","\n"])),(function(e){return e.$styles})),Iq=s.default(Tq)(vH||(vH=x(["\n display: flex;\n"],["\n display: flex;\n"]))),$q=s.default.div(gH||(gH=x(["\n display: flex;\n border-width: 1px;\n align-items: center;\n justify-content: center;\n border-style: solid;\n ","\n"],["\n display: flex;\n border-width: 1px;\n align-items: center;\n justify-content: center;\n border-style: solid;\n ","\n"])),(function(t){var n=t.theme.sizes,o=t.$styles;return e.css(xH||(xH=x(["\n border-radius: ","px;\n ",";\n ","\n "],["\n border-radius: ","px;\n ",";\n ","\n "])),n.XS,w(n.M),o)})),zq=s.default.div(bH||(bH=x([""],[""]))),Vq=s.default(Mq)(yH||(yH=x(["\n ","\n"],["\n ","\n"])),(function(e){return e.$styles})),Wq=function(e){return e.map((function(e){return m$.string(e)})).join("\n")},Uq=s.default.div(wH||(wH=x(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),(function(e){var t=e.theme,n=t.colors,o=t.fonts,r=t.sizes,i=e.hasError,a=e.hasValue,s=e.disabled,l=e.isOpen;return"\n .select-wrapper {\n text-align: left;\n border: 1px solid ".concat(n.gray3,";\n position: relative;\n border-radius: ").concat(r.S,"px;\n &:hover,\n :active,\n :focus {\n border-color: ").concat(n.gray2,";\n }\n\n .select-input {\n padding: 10px ").concat(r.M,"px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n user-select: none;\n cursor: pointer;\n\n .selected-text-value {\n ").concat(o.M,";\n color: ").concat(a?n.gray1:n.gray3,";\n }\n\n .icon-container {\n transition: transform 0.2s ease-in-out;\n transform: rotate(0deg);\n ").concat(l&&"transform: rotate(180deg);","\n }\n }\n\n ").concat(s&&"\n border-color: ".concat(n.gray4," !important;\n cursor: not-allowed;\n .select-input {\n background-color: ").concat(n.gray4,";\n pointer-events: none;\n .selected-text-value {\n color: ").concat(n.gray3,";\n }\n .icon-container {\n svg path {\n stroke: ").concat(n.gray3,";\n }\n }\n }\n "),"\n }\n ").concat(i&&"\n .select-wrapper {\n border-color: ".concat(n.red," !important;\n .select-input {\n .selected-text-value {\n color: ").concat(n.red,";\n }\n .icon-container {\n svg path {\n stroke: ").concat(n.red,";\n }\n }\n }\n }\n "),"\n ")}),(function(e){return e.$styles})),Hq=s.default.div(CH||(CH=x(["\n ",";\n"],["\n ",";\n"])),(function(e){var t=e.theme,n=t.colors,o=t.sizes;return"\n position: absolute;\n width: 100%;\n border-radius: ".concat(o.S,"px;\n padding: ").concat(o.L,"px ").concat(o.M,"px;\n box-shadow: 0 0 ").concat(o.XL,"px 0 #0000001a;\n overflow: auto;\n max-height: 150px;\n z-index: 10;\n transform: translateY(").concat(o.S,"px);\n background-color: ").concat(n.white,";\n ")})),qq=s.default.div(EH||(EH=x(["\n width: 100%;\n cursor: pointer;\n ",";\n"],["\n width: 100%;\n cursor: pointer;\n ",";\n"])),(function(e){var t=e.theme,n=t.sizes,o=t.colors,r=t.fonts,i=e.$selected;return"\n border-radius: ".concat(n.S,"px;\n &:hover {\n background-color: ").concat(o.gray5,";\n }\n padding: ").concat(n.S,"px ").concat(n.M,"px;\n ").concat(r.M,";\n color: ").concat(o.gray2,";\n ").concat(i&&"\n background-color: ".concat(o.gray4," !important;\n color: ").concat(o.black,";\n "),";\n ")})),Xq=function(t,n){void 0===n&&(n=!1);var o=t||{},r=o.horizontalPadding,i=void 0===r?0:r,a=o.verticalPadding,s=void 0===a?0:a,l=o.selectedTextColor,c=o.selectedTextFontSize,u=o.placeholderTextColor,p=o.placeholderTextFontSize,d=o.styles,f=o.wrapperStyles;return e.css(DH||(DH=x(["\n ",";\n "],["\n ",";\n "])),(function(t){var o=t.theme.colors;return e.css(OH||(OH=x(["\n .select-wrapper {\n .select-input {\n ",";\n .selected-text-value {\n ",";\n }\n ",";\n }\n ",";\n }\n "],["\n .select-wrapper {\n .select-input {\n ",";\n .selected-text-value {\n ",";\n }\n ",";\n }\n ",";\n }\n "])),s||i?"padding: ".concat(s,"px ").concat(i,"px;"):"",n?"\n ".concat(l?"color: ".concat(o[l]||l,";"):"",";\n ").concat(c?"font-size: ".concat(c,"px;"):"",";\n "):"\n ".concat(u?"color: ".concat(o[u]||u,";"):"",";\n ").concat(p?"font-size: ".concat(p,"px;"):"",";\n "),d,f)}))},Gq=function(e){var o=e.ref,r=e.onBlur,i=e.onChange,a=e.value,s=e.placeholder,l=e.options,c=void 0===l?[]:l,u=e.disabled,p=void 0!==u&&u,f=e.optionsPresentation,h=void 0!==f&&f,m=e.isError,v=e.selectInternalConfig,x=e.isRichText,g=void 0!==x&&x,b=n.useState(h),y=b[0],w=b[1],C=n.useState(a),E=C[0],O=C[1],D=c.find((function(e){return e.id===E}));n.useEffect((function(){var e=function(){return!h&&w(!1)};return window.addEventListener("click",e),function(){return window.removeEventListener("click",e)}}));var S=function(e){return e===E};return t.jsx(Uq,d({ref:o,tabIndex:0,onBlur:r,disabled:p,hasValue:!!D,isOpen:y,hasError:!!m,$styles:Xq(v,!!D)},{children:t.jsxs("div",d({className:"select-wrapper"},{children:[t.jsxs("div",d({className:"select-input",onClick:function(e){h||(e.stopPropagation(),w((function(e){return!e})))}},{children:[t.jsx("div",d({className:"selected-text-value"},{children:D?g?Wq(JSON.parse(D.label)):D.label:s})),t.jsx("div",d({className:"icon-container"},{children:t.jsx(Tq,{name:"CaretDown"})}))]})),y&&t.jsx(Hq,{children:c.map((function(e){var n=e.id,o=e.label;return t.jsx(qq,d({$selected:S(n),onClick:function(){return function(e){O(e),null==i||i(e)}(n)}},{children:g?Wq(JSON.parse(o)):o}),n)}))})]}))}))},Yq=function(e,t){e.stopPropagation(),null==t||t()},Kq=function(o){var r=o.value,i=o.leftIcon,a=o.rightIcon,s=o.onChange,l=o.onBlur,c=o.disabled,u=o.isError,p=o.placeholder,h=o.isEditMode,m=void 0===h||h,v=o.type,g=void 0===v?"text":v,b=o.internalConfig,y=f(o,["value","leftIcon","rightIcon","onChange","onBlur","disabled","isError","placeholder","isEditMode","type","internalConfig"]),w=n.useState(!1),C=w[0],E=w[1],O=n.useRef(null),D=function(e){switch(e){case"text":return{type:"text",inputMode:"text"};case"email":return{type:"email",inputMode:"email"};case"number":return{inputMode:"numeric"};case"password":return{type:"password",inputMode:"text"};default:return{}}}(g),S=e.useTheme().colors,k=S[function(e){var t=e.isEditMode,n=e.isFocused,o=e.isError,r=e.disabled;return t?r?"gray3":o?"red":n?"gray1":"gray3":"gray1"}({isFocused:C,isError:u,disabled:c,isEditMode:m})],T=b||{},j=T.horizontalPadding,M=void 0===j?0:j,A=T.verticalPadding,N=void 0===A?0:A,R=T.placeholderTextColor,P=T.placeholderTextFontSize,B=T.textColor,F=T.textFontSize,L=T.styles,_=T.wrapperStyles,I=e.css(SH||(SH=x(["\n ",";\n ",";\n ",";\n &::placeholder {\n ",";\n ",";\n }\n ",";\n "],["\n ",";\n ",";\n ",";\n &::placeholder {\n ",";\n ",";\n }\n ",";\n "])),B?"color: ".concat(S[B]||B,";"):"",F?"font-size: ".concat(F,"px;"):"",M||N?"padding: ".concat(N,"px ").concat(M,"px;"):"",P?"font-size: ".concat(P,"px;"):"",R?"color: ".concat(S[R]||R,";"):"",L);return t.jsxs(Zq,d({withoutOpacityEffect:!0,disabled:!m||c,isEditMode:m,isFocused:C,isError:u,$styles:_,onClick:function(){var e;return null===(e=O.current)||void 0===e?void 0:e.focus()}},{children:[!!i&&t.jsx(eX,d({withoutOpacityEffect:!i.onClick,onClick:function(e){return Yq(e,i.onClick)}},{children:t.jsx(Tq,{name:i.name,color:k})})),t.jsx(Jq,d({value:r,$styles:I,onChange:function(e){return null==s?void 0:s(e.target.value)},onFocus:function(){return E(!0)},onBlur:function(){E(!1),null==l||l()},ref:O,isError:u,disabled:!m||c,placeholder:p,isEditMode:m},y,D)),!!a&&t.jsx(tX,d({withoutOpacityEffect:!a.onClick,onClick:function(e){return Yq(e,a.onClick)}},{children:t.jsx(Tq,{name:a.name,color:k})}))]}))},Zq=s.default(y)(jH||(jH=x(["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n transition: 0.25s;\n\n ","\n"],["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n transition: 0.25s;\n\n ","\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.colors,i=t.isEditMode,a=t.disabled,s=t.isFocused,l=t.isError,c=t.$styles,u=r.gray3,p="1px",d="53px",f="transparent";return i?a?(u="transparent",f=r.gray4):l?u=r.red:s&&(u=r.gray1):(u="transparent",p="0",d="auto"),e.css(TH||(TH=x(["\n border: "," solid ",";\n border-radius: ","px;\n height: ",";\n padding: ","px;\n cursor: ",";\n background-color: ",";\n\n ","\n ",";\n "],["\n border: "," solid ",";\n border-radius: ","px;\n height: ",";\n padding: ","px;\n cursor: ",";\n background-color: ",";\n\n ","\n ",";\n "])),p,u,o.S,d,i?o.M:0,i&&!a?"text":"unset",f,i&&!a&&e.css(kH||(kH=x(["\n &:hover {\n border-color: ",";\n }\n "],["\n &:hover {\n border-color: ",";\n }\n "])),r.gray1),c)})),Jq=s.default.input(AH||(AH=x(["\n width: 100%;\n height: 100%;\n outline: none;\n border: none;\n transition: 0.25s;\n padding: 0;\n ","\n"],["\n width: 100%;\n height: 100%;\n outline: none;\n border: none;\n transition: 0.25s;\n padding: 0;\n ","\n"])),(function(t){var n=t.theme,o=n.fonts,r=n.colors,i=t.isError,a=t.disabled,s=t.isEditMode,l=t.$styles,c=r.gray1,u=r.gray3,p=s?r.gray4:"transparent";return s?a?(c=r.gray3,u=r.gray3):i&&(c=r.red,u=r.red):(c=r.gray1,u=r.gray3),e.css(MH||(MH=x(["\n ",";\n color: ",";\n &::placeholder {\n ","\n color: ",";\n }\n background-color: transparent;\n\n &:disabled {\n background-color: ",";\n }\n ","\n "],["\n ",";\n color: ",";\n &::placeholder {\n ","\n color: ",";\n }\n background-color: transparent;\n\n &:disabled {\n background-color: ",";\n }\n ","\n "])),o.M,c,o.M,u,p,l)})),Qq=s.default(y)(NH||(NH=x(["\n display: flex;\n align-items: center;\n justify-content: center;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n"]))),eX=s.default(Qq)(RH||(RH=x(["\n margin-right: ","px;\n"],["\n margin-right: ","px;\n"])),(function(e){return e.theme.sizes.S})),tX=s.default(Qq)(PH||(PH=x(["\n margin-left: ","px;\n"],["\n margin-left: ","px;\n"])),(function(e){return e.theme.sizes.S})),nX=e.keyframes(BH||(BH=x(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"],["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"]))),oX=s.default.div(FH||(FH=x(["\n border: 0.2em solid rgba(0, 0, 0, 0.1);\n border-top: 0.2em solid ",";\n border-radius: 50%;\n width: ","px;\n height: ","px;\n animation: "," 0.6s linear infinite;\n"],["\n border: 0.2em solid rgba(0, 0, 0, 0.1);\n border-top: 0.2em solid ",";\n border-radius: 50%;\n width: ","px;\n height: ","px;\n animation: "," 0.6s linear infinite;\n"])),(function(e){var t=e.theme,n=e.color,o=void 0===n?"secondary":n;return t.colors[o]}),(function(e){var t=e.theme,n=e.size;return n?t.sizes[n]:12}),(function(e){var t=e.theme,n=e.size;return n?t.sizes[n]:12}),nX),rX=s.default.img(_H||(_H=x(["\n display: block;\n ","\n"],["\n display: block;\n ","\n"])),(function(t){var n=t.height,o=void 0===n?"100%":n,r=t.width,i=void 0===r?"100%":r,a=t.cornerRadius,s=void 0===a?0:a,l=t.$styles;return e.css(LH||(LH=x(["\n width: ",";\n height: ",";\n border-radius: ","px;\n ","\n "],["\n width: ",";\n height: ",";\n border-radius: ","px;\n ","\n "])),"number"==typeof i?"".concat(i,"px"):i,"number"==typeof o?"".concat(o,"px"):o,s,l)})),iX=s.default(rX)($H||($H=x(["\n object-fit: cover;\n position: absolute;\n justify-content: center;\n top: 0;\n left: 0;\n z-index: 0;\n ","\n"],["\n object-fit: cover;\n position: absolute;\n justify-content: center;\n top: 0;\n left: 0;\n z-index: 0;\n ","\n"])),(function(t){var n=t.height,o=void 0===n?"100%":n,r=t.width,i=void 0===r?"100%":r,a=t.cornerRadius,s=void 0===a?0:a,l=t.$styles;return e.css(IH||(IH=x(["\n width: ",";\n height: ",";\n border-radius: ","px;\n ","\n "],["\n width: ",";\n height: ",";\n border-radius: ","px;\n ","\n "])),"number"==typeof i?"".concat(i,"px"):i,"number"==typeof o?"".concat(o,"px"):o,s,l)})),aX=s.default.a(UH||(UH=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.fonts,i=t.disabled,a=t.size,s=void 0===a?"medium":a,l=t.colorTheme,c=void 0===l?"light":l,u=o["light"===c?"blue":"gray4"],p=o["light"===c?"blueShade":"white"],d=o["light"===c?"gray4":"indigoTint2"],f=o["light"===c?"blue":"white"],h=o["light"===c?"blueShade":"gray4"];return e.css(WH||(WH=x(["\n ",";\n cursor: pointer;\n text-decoration: none;\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n background-color: ",";\n }\n\n ","\n\n ","\n "],["\n ",";\n cursor: pointer;\n text-decoration: none;\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n background-color: ",";\n }\n\n ","\n\n ","\n "])),r["medium"===s?"M":"S"],u,u,h,p,f,d,"small"===s&&e.css(zH||(zH=x(["\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n background-color: ",";\n color: ",";\n }\n "],["\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n background-color: ",";\n color: ",";\n }\n "])),o.gray2,o.gray2,o.gray3,o.gray1,o.gray4,o.gray1),i&&e.css(VH||(VH=x(["\n cursor: auto;\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n background-color: transparent;\n }\n "],["\n cursor: auto;\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n background-color: transparent;\n }\n "])),o.gray3,o.gray3,o.gray3))})),sX={DEFAULT:"Minus",ERROR:"Close",SUCCESS:"Check"},lX=function(n){var o=n.text,r=n.status,i=function(t){var n=e.useTheme().colors;switch(t){case"SUCCESS":return{color:n.greenShade,backgroundColor:n.greenTint,borderColor:"transparent"};case"ERROR":return{color:n.redShade,backgroundColor:n.redTint,borderColor:"transparent"};default:return{color:n.gray2,backgroundColor:"transparent",borderColor:n.gray3}}}(r),a=i.backgroundColor,s=i.color,l=i.borderColor,c=e.useTheme().sizes;return t.jsxs(cX,d({style:{backgroundColor:a,borderColor:l}},{children:[t.jsx(Tq,{size:c.M,name:sX[r],color:s}),t.jsx(jq,{width:"S"}),t.jsx(Mq,d({variant:"M",color:s},{children:o}))]}))},cX=s.default.div(qH||(qH=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.sizes;return e.css(HH||(HH=x(["\n display: flex;\n width: fit-content;\n align-items: center;\n border-radius: ","px;\n border: 1.5px solid transparent;\n padding: ","px ","px ","px ","px;\n "],["\n display: flex;\n width: fit-content;\n align-items: center;\n border-radius: ","px;\n border: 1.5px solid transparent;\n padding: ","px ","px ","px ","px;\n "])),n.M,n.XS,n.M,n.XS,n.S)})),uX={adjustX:1,adjustY:1},pX=[0,0],dX={left:{points:["cr","cl"],overflow:uX,offset:[-4,0],targetOffset:pX},right:{points:["cl","cr"],overflow:uX,offset:[4,0],targetOffset:pX},top:{points:["bc","tc"],overflow:uX,offset:[0,-4],targetOffset:pX},bottom:{points:["tc","bc"],overflow:uX,offset:[0,4],targetOffset:pX},topLeft:{points:["bl","tl"],overflow:uX,offset:[0,-4],targetOffset:pX},leftTop:{points:["tr","tl"],overflow:uX,offset:[-4,0],targetOffset:pX},topRight:{points:["br","tr"],overflow:uX,offset:[0,-4],targetOffset:pX},rightTop:{points:["tl","tr"],overflow:uX,offset:[4,0],targetOffset:pX},bottomRight:{points:["tr","br"],overflow:uX,offset:[0,4],targetOffset:pX},rightBottom:{points:["bl","br"],overflow:uX,offset:[4,0],targetOffset:pX},bottomLeft:{points:["tl","bl"],overflow:uX,offset:[0,4],targetOffset:pX},leftBottom:{points:["br","bl"],overflow:uX,offset:[-4,0],targetOffset:pX}};function fX(e){var t=e.showArrow,n=e.arrowContent,o=e.children,r=e.prefixCls,i=e.id,a=e.overlayInnerStyle,s=e.className,c=e.style;return l.createElement("div",{className:JT("".concat(r,"-content"),s),style:c},!1!==t&&l.createElement("div",{className:"".concat(r,"-arrow"),key:"arrow"},n),l.createElement("div",{className:"".concat(r,"-inner"),id:i,role:"tooltip",style:a},"function"==typeof o?o():o))}var hX,mX,vX,xX=function(e,t){var o=e.overlayClassName,r=e.trigger,i=void 0===r?["hover"]:r,a=e.mouseEnterDelay,s=void 0===a?0:a,c=e.mouseLeaveDelay,u=void 0===c?.1:c,p=e.overlayStyle,d=e.prefixCls,f=void 0===d?"rc-tooltip":d,h=e.children,m=e.onVisibleChange,v=e.afterVisibleChange,x=e.transitionName,g=e.animation,b=e.motion,y=e.placement,w=void 0===y?"right":y,C=e.align,E=void 0===C?{}:C,O=e.destroyTooltipOnHide,D=void 0!==O&&O,S=e.defaultVisible,k=e.getTooltipContainer,T=e.overlayInnerStyle,j=e.arrowContent,M=e.overlay,A=e.id,N=e.showArrow,R=OT(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),P=n.useRef(null);n.useImperativeHandle(t,(function(){return P.current}));var B=yT({},R);"visible"in e&&(B.popupVisible=e.visible);var F=!1,L=!1;if("boolean"==typeof D)F=D;else if(D&&"object"===vT(D)){var _=D.keepParent;F=!0===_,L=!1===_}return l.createElement(MB,ae({popupClassName:o,prefixCls:f,popup:function(){return l.createElement(fX,{showArrow:N,arrowContent:j,key:"content",prefixCls:f,id:A,overlayInnerStyle:T},M)},action:i,builtinPlacements:dX,popupPlacement:w,ref:P,popupAlign:E,getPopupContainer:k,onPopupVisibleChange:m,afterPopupVisibleChange:v,popupTransitionName:x,popupAnimation:g,popupMotion:b,defaultPopupVisible:S,destroyPopupOnHide:F,autoDestroy:L,mouseLeaveDelay:u,popupStyle:p,mouseEnterDelay:s},B),h)},gX=n.forwardRef(xX),bX=s.default.div(mX||(mX=x(["\n ",";\n"],["\n ",";\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes,i=n.fonts,a=t.$styles;return e.css(hX||(hX=x(["\n .rc-tooltip {\n &-arrow {\n display: none;\n }\n &-inner {\n min-height: unset;\n padding: ","px;\n background-color: ",";\n color: ",";\n border-radius: ","px;\n ",";\n ",";\n }\n }\n "],["\n .rc-tooltip {\n &-arrow {\n display: none;\n }\n &-inner {\n min-height: unset;\n padding: ","px;\n background-color: ",";\n color: ",";\n border-radius: ","px;\n ",";\n ",";\n }\n }\n "])),r.S,o.indigo,o.white,r.S,i.S,a)})),yX=function(e){var o=e.trigger,r=void 0===o?"hover":o,i=e.placement,a=void 0===i?"top":i,s=e.styles,l=f(e,["trigger","placement","styles"]),c=n.useRef(null);return t.jsx(bX,d({ref:c,$styles:s},{children:t.jsx(gX,d({},l,{getTooltipContainer:function(){return c.current},trigger:r,placement:a}))}))},wX=yT({},u),CX=wX.version,EX=wX.render,OX=wX.unmountComponentAtNode;try{Number((CX||"").split(".")[0])>=18&&(vX=wX.createRoot)}catch(Az){}function DX(e){var t=wX.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===vT(t)&&(t.usingClientEntryPoint=e)}var SX="__rc_react_root__";function kX(e,t){vX?function(e,t){DX(!0);var n=t[SX]||vX(t);DX(!1),n.render(e),t[SX]=n}(e,t):function(e,t){EX(e,t)}(e,t)}function TX(e){return jX.apply(this,arguments)}function jX(){return(jX=bB(xB().mark((function e(t){return xB().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[SX])||void 0===e||e.unmount(),delete t[SX]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function MX(e){OX(e)}function AX(){return(AX=bB(xB().mark((function e(t){return xB().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===vX){e.next=2;break}return e.abrupt("return",TX(t));case 2:MX(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var NX=function(e){TT(o,n.Component);var t=AT(o);function o(){var e;DT(this,o);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).closeTimer=null,e.close=function(t){t&&t.stopPropagation(),e.clearCloseTimer();var n=e.props,o=n.onClose,r=n.noticeKey;o&&o(r)},e.startCloseTimer=function(){e.props.duration&&(e.closeTimer=window.setTimeout((function(){e.close()}),1e3*e.props.duration))},e.clearCloseTimer=function(){e.closeTimer&&(clearTimeout(e.closeTimer),e.closeTimer=null)},e}return kT(o,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(e){(this.props.duration!==e.duration||this.props.updateMark!==e.updateMark||this.props.visible!==e.visible&&this.props.visible)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,o=t.className,r=t.closable,i=t.closeIcon,a=t.style,s=t.onClick,c=t.children,u=t.holder,d="".concat(n,"-notice"),f=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{}),h=l.createElement("div",ae({className:JT(d,o,gT({},"".concat(d,"-closable"),r)),style:a,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:s},f),l.createElement("div",{className:"".concat(d,"-content")},c),r?l.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(d,"-close")},i||l.createElement("span",{className:"".concat(d,"-close-x")})):null);return u?p.default.createPortal(h,u):h}}]),o}();NX.defaultProps={onClose:function(){},duration:1.5};var RX=["getContainer"],PX=0,BX=Date.now();function FX(){var e=PX;return PX+=1,"rcNotification_".concat(BX,"_").concat(e)}var LX=function(e){TT(o,n.Component);var t=AT(o);function o(){var e;DT(this,o);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).state={notices:[]},e.hookRefs=new Map,e.add=function(t,n){var o=t.key||FX(),r=yT(yT({},t),{},{key:o}),i=e.props.maxCount;e.setState((function(e){var t=e.notices,a=t.map((function(e){return e.notice.key})).indexOf(o),s=t.concat();return-1!==a?s.splice(a,1,{notice:r,holderCallback:n}):(i&&t.length>=i&&(r.key=s[0].notice.key,r.updateMark=FX(),r.userPassKey=o,s.shift()),s.push({notice:r,holderCallback:n})),{notices:s}}))},e.remove=function(t){e.setState((function(e){return{notices:e.notices.filter((function(e){var n=e.notice,o=n.key;return(n.userPassKey||o)!==t}))}}))},e.noticePropsMap={},e}return kT(o,[{key:"getTransitionName",value:function(){var e=this.props,t=e.prefixCls,n=e.animation,o=this.props.transitionName;return!o&&n&&(o="".concat(t,"-").concat(n)),o}},{key:"render",value:function(){var e=this,t=this.state.notices,n=this.props,o=n.prefixCls,r=n.className,i=n.closeIcon,a=n.style,s=[];return t.forEach((function(n,r){var a=n.notice,l=n.holderCallback,c=r===t.length-1?a.updateMark:void 0,u=a.key,p=a.userPassKey,d=yT(yT(yT({prefixCls:o,closeIcon:i},a),a.props),{},{key:u,noticeKey:p||u,updateMark:c,onClose:function(t){var n;e.remove(t),null===(n=a.onClose)||void 0===n||n.call(a)},onClick:a.onClick,children:a.content});s.push(u),e.noticePropsMap[u]={props:d,holderCallback:l}})),l.createElement("div",{className:JT(o,r),style:a},l.createElement(jj,{keys:s,motionName:this.getTransitionName(),onVisibleChanged:function(t,n){var o=n.key;t||delete e.noticePropsMap[o]}},(function(t){var n=t.key,r=t.className,i=t.style,a=t.visible,s=e.noticePropsMap[n],c=s.props,u=s.holderCallback;return u?l.createElement("div",{key:n,className:JT(r,"".concat(o,"-hook-holder")),style:yT({},i),ref:function(t){void 0!==n&&(t?(e.hookRefs.set(n,t),u(t,c)):e.hookRefs.delete(n))}}):l.createElement(NX,ae({},c,{className:JT(r,null==c?void 0:c.className),style:yT(yT({},i),null==c?void 0:c.style),visible:a}))})))}}]),o}();LX.newInstance=void 0,LX.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},LX.newInstance=function(e,t){var n=e||{},o=n.getContainer,r=OT(n,RX),i=document.createElement("div");o?o().appendChild(i):document.body.appendChild(i);var a=!1;function s(e){a||(a=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){!function(e){AX.apply(this,arguments)}(i),i.parentNode&&i.parentNode.removeChild(i)},useNotification:function(){return t=e,n=l.useRef({}),o=ET(l.useState([]),2),r=o[0],i=o[1],[function(e){var o=!0;t.add(e,(function(e,t){var r=t.key;if(e&&(!n.current[r]||o)){var a=l.createElement(NX,ae({},t,{holder:e}));n.current[r]=a,i((function(e){var n=e.findIndex((function(e){return e.key===t.key}));if(-1===n)return[].concat(BB(e),[a]);var o=BB(e);return o[n]=a,o}))}o=!1}))},l.createElement(l.Fragment,null,r)];var t,n,o,r,i}}))}"test"===process.env.NODE_ENV&&e.TEST_RENDER?e.TEST_RENDER(l.createElement(LX,ae({},r,{ref:s}))):kX(l.createElement(LX,ae({},r,{ref:s})),i)};var _X,IX,$X,zX=D.colors,VX=D.fonts,WX=D.sizes,UX=s.default.span(_X||(_X=x(["\n color: ",";\n ",";\n"],["\n color: ",";\n ",";\n"])),(function(e){return e.textColor}),VX.L),HX=s.default.div(IX||(IX=x(["\n display: flex;\n height: ","px;\n column-gap: ","px;\n align-items: center;\n padding-right: ","px;\n"],["\n display: flex;\n height: ","px;\n column-gap: ","px;\n align-items: center;\n padding-right: ","px;\n"])),WX.XL,WX.M,WX.XL),qX=s.default.div($X||($X=x(["\n ",";\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: ",";\n"],["\n ",";\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: ",";\n"])),w(WX.XL),(function(e){return e.backgroundColor})),XX=function(e){var n=e.type,o=e.message,r=function(e){switch(e){case"success":return{icon:"Check",backgroundColor:zX.green,textColor:zX.greenShade};case"error":return{icon:"Close",backgroundColor:zX.red,textColor:zX.redShade};case"warning":return{icon:"Warning",backgroundColor:zX.yellow,textColor:zX.yellowShade,iconColor:zX.yellowShade,iconSize:18};case"infoTierOne":return{icon:"Bell",backgroundColor:zX.blue,textColor:zX.blueShade,iconSize:18};case"infoTierTwo":return{icon:"Bell",backgroundColor:zX.gray2,textColor:O(zX.gray2),iconSize:18};default:return{icon:"Bell",backgroundColor:zX.blue,textColor:zX.blueShade}}}(n),i=r.icon,a=r.iconColor,s=r.textColor,l=r.backgroundColor,c=r.iconSize;return t.jsxs(HX,{children:[t.jsx(qX,d({backgroundColor:l},{children:t.jsx(Tq,{size:c||32,name:i,color:a||zX.white})})),t.jsx(UX,d({textColor:s},{children:o}))]})},GX=null;LX.newInstance({maxCount:2},(function(e){return GX=e}));var YX,KX,ZX,JX,QX,eG,tG,nG,oG,rG,iG,aG,sG,lG,cG,uG,pG,dG,fG=function(e){var n=e.message,o=e.type,r=void 0===o?"success":o,i=e.duration,a=void 0===i?2.5:i;return null==GX?void 0:GX.notice({content:t.jsx(XX,{message:n,type:r}),className:"toast-".concat(r),closable:!0,closeIcon:t.jsx(Tq,{name:"Close"}),duration:a})},hG=function(e){var n=e.onClick,o=e.disabled,r=e.buttonOptions,i=e.selectedButtonId,a=e.error,s=(null==r?void 0:r.slice(0,2))||[];return t.jsx(mG,d({error:a,disabled:o},{children:s.map((function(e){var o=e.value,r=e.id;return t.jsx(vG,d({isActive:r===i,onClick:function(){return n(r)}},{children:o}),r)}))}))},mG=s.default.div(KX||(KX=x(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-width: 0.2px;\n border-style: solid;\n padding: 1px;\n ","\n"],["\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-width: 0.2px;\n border-style: solid;\n padding: 1px;\n ","\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.colors,i=t.disabled,a=t.error,s="transparent",l=r.gray4;return i?l=r.gray5:s=a?r.red:r.gray4,e.css(YX||(YX=x(["\n height: ","px;\n border-radius: ","px;\n border-color: ",";\n background-color: ",";\n "],["\n height: ","px;\n border-radius: ","px;\n border-color: ",";\n background-color: ",";\n "])),o.XL,o.XS,s,l)})),vG=s.default(y)(JX||(JX=x(["\n display: flex;\n text-align: center;\n align-items: center;\n justify-content: center;\n padding: 10px;\n height: 100%;\n width: 50%;\n ","\n"],["\n display: flex;\n text-align: center;\n align-items: center;\n justify-content: center;\n padding: 10px;\n height: 100%;\n width: 50%;\n ","\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.colors,i=t.isActive,a=i?r.white:"transparent";return e.css(ZX||(ZX=x(["\n background-color: ",";\n border-radius: ","px;\n box-shadow: ",";\n transition: background-color 0.4s ease-out;\n "],["\n background-color: ",";\n border-radius: ","px;\n box-shadow: ",";\n transition: background-color 0.4s ease-out;\n "])),a,o.XS,i?"0 0 5px rgba(0, 0, 0, 0.15)":"none")})),xG=function(n){var o=n.size,r=void 0===o?"XL":o,i=n.withShadow,a=n.label,s=n.backgroundColor,l=n.onPress,c=n.content,u=c.initials,p=c.iconName,f=c.imageUrl,h=n.textConfig,m=void 0===h?{}:h,v=m.color,x=void 0===v?"white":v,g=m.font,b=void 0===g?"L":g,y=e.useTheme().sizes,w="number"==typeof r?r:y[r],C=u?t.jsx(wG,d({variant:b,color:x,avatarSize:w},{children:u})):p?t.jsx(Tq,{name:p,color:"white",size:w/1.5}):f?t.jsx(CG,{avatarSize:w,src:f}):null;return t.jsxs(gG,{children:[t.jsx(yG,d({clickable:!!l,onClick:l,withShadow:i,backgroundColor:f?"white":s,avatarSize:w},{children:C})),!!a&&t.jsx(bG,d({variant:"L"},{children:a}))]})},gG=s.default.div(QX||(QX=x(["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n"],["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n"]))),bG=s.default(Mq)(eG||(eG=x(["\n margin-left: 14px;\n color: ",";\n"],["\n margin-left: 14px;\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),yG=s.default.div(rG||(rG=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes,i=t.avatarSize,a=t.withShadow,s=t.backgroundColor,l=t.clickable;return e.css(oG||(oG=x(["\n display: flex;\n justify-content: center;\n overflow: hidden;\n align-items: center;\n transition: 0.1s;\n background-color: ",";\n color: ",";\n border: ","px solid ",";\n border-radius: ","px;\n ",";\n ","\n ","\n "],["\n display: flex;\n justify-content: center;\n overflow: hidden;\n align-items: center;\n transition: 0.1s;\n background-color: ",";\n color: ",";\n border: ","px solid ",";\n border-radius: ","px;\n ",";\n ","\n ","\n "])),o[s||"indigoTint2"],o.white,Math.round(i/r["2XL"]),o.white,i/2,w(i),a&&e.css(tG||(tG=x(["\n filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));\n "],["\n filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));\n "]))),l&&e.css(nG||(nG=x(["\n cursor: pointer;\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n "],["\n cursor: pointer;\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n "])),E(o[s||"indigoTint2"]),o[s||"indigoTint2"]))})),wG=s.default(Mq)(aG||(aG=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.avatarSize;return e.css(iG||(iG=x(["\n user-select: none;\n font-size: ","px;\n "],["\n user-select: none;\n font-size: ","px;\n "])),n/2)})),CG=s.default(rX)(lG||(lG=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.avatarSize;return e.css(sG||(sG=x(["\n ",";\n object-fit: cover;\n transition: 0.1s;\n\n &:hover {\n opacity: 0.7;\n }\n &:active {\n opacity: 1;\n }\n "],["\n ",";\n object-fit: cover;\n transition: 0.1s;\n\n &:hover {\n opacity: 0.7;\n }\n &:active {\n opacity: 1;\n }\n "])),w(n))})),EG=s.default.div(cG||(cG=x(["\n padding: 0\n ","px;\n"],["\n padding: 0\n ","px;\n"])),(function(e){var t=e.theme,n=e.padding;return"number"==typeof n?n:t.sizes[n]})),OG=s.default.div(uG||(uG=x(["\n padding: ","px\n 0;\n"],["\n padding: ","px\n 0;\n"])),(function(e){var t=e.theme,n=e.padding;return"number"==typeof n?n:t.sizes[n]})),DG=s.default.div(dG||(dG=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes,i=t.color,a=void 0===i?"gray4":i,s=t.type,l=void 0===s?"horizontal":s,c=t.weight,u=void 0===c?1:c,p=t.marginHorizontal,d=t.marginVertical;return e.css(pG||(pG=x(["\n width: ",";\n height: ",";\n background-color: ",";\n margin: ","px\n ","px;\n "],["\n width: ",";\n height: ",";\n background-color: ",";\n margin: ","px\n ","px;\n "])),"vertical"===l?"".concat(u,"px"):"100%","horizontal"===l?"".concat(u,"px"):"100%",o[a]||a,"number"==typeof d?d:r[d]||0,"number"==typeof p?p:r[p]||0)})),SG={},kG={},TG={__esModule:!0,default:function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},jG={exports:{}},MG=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},AG=MG,NG=function(e){return Object(AG(e))},RG={}.hasOwnProperty,PG=function(e,t){return RG.call(e,t)},BG={exports:{}},FG={exports:{}},LG=FG.exports={version:"2.6.12"};"number"==typeof __e&&(__e=LG);var _G={exports:{}},IG=_G.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=IG);var $G=FG.exports,zG=_G.exports,VG=zG["__core-js_shared__"]||(zG["__core-js_shared__"]={});(BG.exports=function(e,t){return VG[e]||(VG[e]=void 0!==t?t:{})})("versions",[]).push({version:$G.version,mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var WG,UG,HG,qG,XG,GG,YG=0,KG=Math.random(),ZG=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++YG+KG).toString(36))},JG=BG.exports("keys"),QG=ZG,eY=function(e){return JG[e]||(JG[e]=QG(e))},tY=PG,nY=NG,oY=eY("IE_PROTO"),rY=Object.prototype,iY=Object.getPrototypeOf||function(e){return e=nY(e),tY(e,oY)?e[oY]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?rY:null},aY=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},sY=function(e,t,n){if(aY(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}},lY={},cY=function(e){return"object"==typeof e?null!==e:"function"==typeof e},uY=cY,pY=function(e){if(!uY(e))throw TypeError(e+" is not an object!");return e},dY=function(e){try{return!!e()}catch(e){return!0}};function fY(){return UG?WG:(UG=1,WG=!dY((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})))}function hY(){if(qG)return HG;qG=1;var e=cY,t=_G.exports.document,n=e(t)&&e(t.createElement);return HG=function(e){return n?t.createElement(e):{}}}function mY(){return GG?XG:(GG=1,XG=!fY()&&!dY((function(){return 7!=Object.defineProperty(hY()("div"),"a",{get:function(){return 7}}).a})))}var vY,xY=cY,gY=function(e,t){if(!xY(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!xY(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!xY(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!xY(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")};function bY(){if(vY)return lY;vY=1;var e=pY,t=mY(),n=gY,o=Object.defineProperty;return lY.f=fY()?Object.defineProperty:function(r,i,a){if(e(r),i=n(i,!0),e(a),t)try{return o(r,i,a)}catch(e){}if("get"in a||"set"in a)throw TypeError("Accessors not supported!");return"value"in a&&(r[i]=a.value),r},lY}var yY=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},wY=bY(),CY=yY,EY=fY()?function(e,t,n){return wY.f(e,t,CY(1,n))}:function(e,t,n){return e[t]=n,e},OY=_G.exports,DY=FG.exports,SY=sY,kY=EY,TY=PG,jY=function(e,t,n){var o,r,i,a=e&jY.F,s=e&jY.G,l=e&jY.S,c=e&jY.P,u=e&jY.B,p=e&jY.W,d=s?DY:DY[t]||(DY[t]={}),f=d.prototype,h=s?OY:l?OY[t]:(OY[t]||{}).prototype;for(o in s&&(n=t),n)(r=!a&&h&&void 0!==h[o])&&TY(d,o)||(i=r?h[o]:n[o],d[o]=s&&"function"!=typeof h[o]?n[o]:u&&r?SY(i,OY):p&&h[o]==i?function(e){var t=function(t,n,o){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,o)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(i):c&&"function"==typeof i?SY(Function.call,i):i,c&&((d.virtual||(d.virtual={}))[o]=i,e&jY.R&&f&&!f[o]&&kY(f,o,i)))};jY.F=1,jY.G=2,jY.S=4,jY.P=8,jY.B=16,jY.W=32,jY.U=64,jY.R=128;var MY=jY,AY=MY,NY=FG.exports,RY=dY,PY=NG,BY=iY;!function(e,t){var n=(NY.Object||{})[e]||Object[e],o={};o[e]=t(n),AY(AY.S+AY.F*RY((function(){n(1)})),"Object",o)}("getPrototypeOf",(function(){return function(e){return BY(PY(e))}}));var FY=FG.exports.Object.getPrototypeOf;jG.exports={default:FY,__esModule:!0};var LY={__esModule:!0,default:function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},_Y={},IY={exports:{}},$Y=MY;$Y($Y.S+$Y.F*!fY(),"Object",{defineProperty:bY().f});var zY=FG.exports.Object;IY.exports={default:function(e,t,n){return zY.defineProperty(e,t,n)},__esModule:!0},_Y.__esModule=!0;var VY,WY=(VY=IY.exports)&&VY.__esModule?VY:{default:VY};_Y.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),(0,WY.default)(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();var UY={},HY={},qY={exports:{}},XY=Math.ceil,GY=Math.floor,YY=function(e){return isNaN(e=+e)?0:(e>0?GY:XY)(e)},KY=YY,ZY=MG,JY={exports:{}};JY.exports=EY;var QY,eK,tK,nK={},oK={}.toString,rK=function(e){return oK.call(e).slice(8,-1)},iK=rK,aK=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==iK(e)?e.split(""):Object(e)},sK=aK,lK=MG,cK=function(e){return sK(lK(e))},uK=YY,pK=Math.min,dK=function(e){return e>0?pK(uK(e),9007199254740991):0},fK=YY,hK=Math.max,mK=Math.min,vK=cK,xK=dK,gK=function(e,t){return(e=fK(e))<0?hK(e+t,0):mK(e,t)},bK=PG,yK=cK,wK=(QY=!1,function(e,t,n){var o,r=vK(e),i=xK(r.length),a=gK(n,i);if(QY&&t!=t){for(;i>a;)if((o=r[a++])!=o)return!0}else for(;i>a;a++)if((QY||a in r)&&r[a]===t)return QY||a||0;return!QY&&-1}),CK=eY("IE_PROTO"),EK=function(e,t){var n,o=yK(e),r=0,i=[];for(n in o)n!=CK&&bK(o,n)&&i.push(n);for(;t.length>r;)bK(o,n=t[r++])&&(~wK(i,n)||i.push(n));return i};function OK(){return tK?eK:(tK=1,eK="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","))}var DK,SK,kK,TK,jK,MK,AK=EK,NK=OK(),RK=Object.keys||function(e){return AK(e,NK)};function PK(){if(MK)return jK;MK=1;var e=pY,t=function(){if(SK)return DK;SK=1;var e=bY(),t=pY,n=RK;return DK=fY()?Object.defineProperties:function(o,r){t(o);for(var i,a=n(r),s=a.length,l=0;s>l;)e.f(o,i=a[l++],r[i]);return o},DK}(),n=OK(),o=eY("IE_PROTO"),r=function(){},i=function(){var e,t=hY()("iframe"),o=n.length;for(t.style.display="none",function(){if(TK)return kK;TK=1;var e=_G.exports.document;return kK=e&&e.documentElement}().appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),i=e.F;o--;)delete i.prototype[n[o]];return i()};return jK=Object.create||function(n,a){var s;return null!==n?(r.prototype=e(n),s=new r,r.prototype=null,s[o]=n):s=i(),void 0===a?s:t(s,a)},jK}var BK={exports:{}},FK=BG.exports("wks"),LK=ZG,_K=_G.exports.Symbol,IK="function"==typeof _K;(BK.exports=function(e){return FK[e]||(FK[e]=IK&&_K[e]||(IK?_K:LK)("Symbol."+e))}).store=FK;var $K=bY().f,zK=PG,VK=BK.exports("toStringTag"),WK=function(e,t,n){e&&!zK(e=n?e:e.prototype,VK)&&$K(e,VK,{configurable:!0,value:t})},UK=PK(),HK=yY,qK=WK,XK={};EY(XK,BK.exports("iterator"),(function(){return this}));var GK,YK=MY,KK=JY.exports,ZK=EY,JK=nK,QK=function(e,t,n){e.prototype=UK(XK,{next:HK(1,n)}),qK(e,t+" Iterator")},eZ=WK,tZ=iY,nZ=BK.exports("iterator"),oZ=!([].keys&&"next"in[].keys()),rZ=function(){return this},iZ=function(e,t,n,o,r,i,a){QK(n,t,o);var s,l,c,u=function(e){if(!oZ&&e in h)return h[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},p=t+" Iterator",d="values"==r,f=!1,h=e.prototype,m=h[nZ]||h["@@iterator"]||r&&h[r],v=m||u(r),x=r?d?u("entries"):v:void 0,g="Array"==t&&h.entries||m;if(g&&(c=tZ(g.call(new e)))!==Object.prototype&&c.next&&eZ(c,p,!0),d&&m&&"values"!==m.name&&(f=!0,v=function(){return m.call(this)}),a&&(oZ||f||!h[nZ])&&ZK(h,nZ,v),JK[t]=v,JK[p]=rZ,r)if(s={values:d?v:u("values"),keys:i?v:u("keys"),entries:x},a)for(l in s)l in h||KK(h,l,s[l]);else YK(YK.P+YK.F*(oZ||f),t,s);return s},aZ=(GK=!0,function(e,t){var n,o,r=String(ZY(e)),i=KY(t),a=r.length;return i<0||i>=a?GK?"":void 0:(n=r.charCodeAt(i))<55296||n>56319||i+1===a||(o=r.charCodeAt(i+1))<56320||o>57343?GK?r.charAt(i):n:GK?r.slice(i,i+2):o-56320+(n-55296<<10)+65536});iZ(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=aZ(t,n),this._i+=e.length,{value:e,done:!1})}));var sZ=function(e,t){return{value:t,done:!!e}},lZ=nK,cZ=cK;iZ(Array,"Array",(function(e,t){this._t=cZ(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,sZ(1)):sZ(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),lZ.Arguments=lZ.Array;for(var uZ=_G.exports,pZ=EY,dZ=nK,fZ=BK.exports("toStringTag"),hZ="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),mZ=0;mZ<hZ.length;mZ++){var vZ=hZ[mZ],xZ=uZ[vZ],gZ=xZ&&xZ.prototype;gZ&&!gZ[fZ]&&pZ(gZ,fZ,vZ),dZ[vZ]=dZ.Array}var bZ={};bZ.f=BK.exports;var yZ=bZ.f("iterator");qY.exports={default:yZ,__esModule:!0};var wZ={exports:{}},CZ={exports:{}},EZ=ZG("meta"),OZ=cY,DZ=PG,SZ=bY().f,kZ=0,TZ=Object.isExtensible||function(){return!0},jZ=!dY((function(){return TZ(Object.preventExtensions({}))})),MZ=function(e){SZ(e,EZ,{value:{i:"O"+ ++kZ,w:{}}})},AZ=CZ.exports={KEY:EZ,NEED:!1,fastKey:function(e,t){if(!OZ(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!DZ(e,EZ)){if(!TZ(e))return"F";if(!t)return"E";MZ(e)}return e[EZ].i},getWeak:function(e,t){if(!DZ(e,EZ)){if(!TZ(e))return!0;if(!t)return!1;MZ(e)}return e[EZ].w},onFreeze:function(e){return jZ&&AZ.NEED&&TZ(e)&&!DZ(e,EZ)&&MZ(e),e}},NZ=FG.exports,RZ=bZ,PZ=bY().f,BZ=function(e){var t=NZ.Symbol||(NZ.Symbol={});"_"==e.charAt(0)||e in t||PZ(t,e,{value:RZ.f(e)})},FZ={};FZ.f=Object.getOwnPropertySymbols;var LZ={};LZ.f={}.propertyIsEnumerable;var _Z=RK,IZ=FZ,$Z=LZ,zZ=rK,VZ=Array.isArray||function(e){return"Array"==zZ(e)},WZ={},UZ={},HZ=EK,qZ=OK().concat("length","prototype");UZ.f=Object.getOwnPropertyNames||function(e){return HZ(e,qZ)};var XZ=cK,GZ=UZ.f,YZ={}.toString,KZ="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];WZ.f=function(e){return KZ&&"[object Window]"==YZ.call(e)?function(e){try{return GZ(e)}catch(e){return KZ.slice()}}(e):GZ(XZ(e))};var ZZ={},JZ=LZ,QZ=yY,eJ=cK,tJ=gY,nJ=PG,oJ=mY(),rJ=Object.getOwnPropertyDescriptor;ZZ.f=fY()?rJ:function(e,t){if(e=eJ(e),t=tJ(t,!0),oJ)try{return rJ(e,t)}catch(e){}if(nJ(e,t))return QZ(!JZ.f.call(e,t),e[t])};var iJ=_G.exports,aJ=PG,sJ=fY(),lJ=MY,cJ=JY.exports,uJ=CZ.exports.KEY,pJ=dY,dJ=BG.exports,fJ=WK,hJ=ZG,mJ=BK.exports,vJ=bZ,xJ=BZ,gJ=function(e){var t=_Z(e),n=IZ.f;if(n)for(var o,r=n(e),i=$Z.f,a=0;r.length>a;)i.call(e,o=r[a++])&&t.push(o);return t},bJ=VZ,yJ=pY,wJ=cY,CJ=NG,EJ=cK,OJ=gY,DJ=yY,SJ=PK(),kJ=WZ,TJ=ZZ,jJ=FZ,MJ=bY(),AJ=RK,NJ=TJ.f,RJ=MJ.f,PJ=kJ.f,BJ=iJ.Symbol,FJ=iJ.JSON,LJ=FJ&&FJ.stringify,_J=mJ("_hidden"),IJ=mJ("toPrimitive"),$J={}.propertyIsEnumerable,zJ=dJ("symbol-registry"),VJ=dJ("symbols"),WJ=dJ("op-symbols"),UJ=Object.prototype,HJ="function"==typeof BJ&&!!jJ.f,qJ=iJ.QObject,XJ=!qJ||!qJ.prototype||!qJ.prototype.findChild,GJ=sJ&&pJ((function(){return 7!=SJ(RJ({},"a",{get:function(){return RJ(this,"a",{value:7}).a}})).a}))?function(e,t,n){var o=NJ(UJ,t);o&&delete UJ[t],RJ(e,t,n),o&&e!==UJ&&RJ(UJ,t,o)}:RJ,YJ=function(e){var t=VJ[e]=SJ(BJ.prototype);return t._k=e,t},KJ=HJ&&"symbol"==typeof BJ.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof BJ},ZJ=function(e,t,n){return e===UJ&&ZJ(WJ,t,n),yJ(e),t=OJ(t,!0),yJ(n),aJ(VJ,t)?(n.enumerable?(aJ(e,_J)&&e[_J][t]&&(e[_J][t]=!1),n=SJ(n,{enumerable:DJ(0,!1)})):(aJ(e,_J)||RJ(e,_J,DJ(1,{})),e[_J][t]=!0),GJ(e,t,n)):RJ(e,t,n)},JJ=function(e,t){yJ(e);for(var n,o=gJ(t=EJ(t)),r=0,i=o.length;i>r;)ZJ(e,n=o[r++],t[n]);return e},QJ=function(e){var t=$J.call(this,e=OJ(e,!0));return!(this===UJ&&aJ(VJ,e)&&!aJ(WJ,e))&&(!(t||!aJ(this,e)||!aJ(VJ,e)||aJ(this,_J)&&this[_J][e])||t)},eQ=function(e,t){if(e=EJ(e),t=OJ(t,!0),e!==UJ||!aJ(VJ,t)||aJ(WJ,t)){var n=NJ(e,t);return!n||!aJ(VJ,t)||aJ(e,_J)&&e[_J][t]||(n.enumerable=!0),n}},tQ=function(e){for(var t,n=PJ(EJ(e)),o=[],r=0;n.length>r;)aJ(VJ,t=n[r++])||t==_J||t==uJ||o.push(t);return o},nQ=function(e){for(var t,n=e===UJ,o=PJ(n?WJ:EJ(e)),r=[],i=0;o.length>i;)!aJ(VJ,t=o[i++])||n&&!aJ(UJ,t)||r.push(VJ[t]);return r};HJ||(cJ((BJ=function(){if(this instanceof BJ)throw TypeError("Symbol is not a constructor!");var e=hJ(arguments.length>0?arguments[0]:void 0),t=function(n){this===UJ&&t.call(WJ,n),aJ(this,_J)&&aJ(this[_J],e)&&(this[_J][e]=!1),GJ(this,e,DJ(1,n))};return sJ&&XJ&&GJ(UJ,e,{configurable:!0,set:t}),YJ(e)}).prototype,"toString",(function(){return this._k})),TJ.f=eQ,MJ.f=ZJ,UZ.f=kJ.f=tQ,LZ.f=QJ,jJ.f=nQ,vJ.f=function(e){return YJ(mJ(e))}),lJ(lJ.G+lJ.W+lJ.F*!HJ,{Symbol:BJ});for(var oQ="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rQ=0;oQ.length>rQ;)mJ(oQ[rQ++]);for(var iQ=AJ(mJ.store),aQ=0;iQ.length>aQ;)xJ(iQ[aQ++]);lJ(lJ.S+lJ.F*!HJ,"Symbol",{for:function(e){return aJ(zJ,e+="")?zJ[e]:zJ[e]=BJ(e)},keyFor:function(e){if(!KJ(e))throw TypeError(e+" is not a symbol!");for(var t in zJ)if(zJ[t]===e)return t},useSetter:function(){XJ=!0},useSimple:function(){XJ=!1}}),lJ(lJ.S+lJ.F*!HJ,"Object",{create:function(e,t){return void 0===t?SJ(e):JJ(SJ(e),t)},defineProperty:ZJ,defineProperties:JJ,getOwnPropertyDescriptor:eQ,getOwnPropertyNames:tQ,getOwnPropertySymbols:nQ});var sQ=pJ((function(){jJ.f(1)}));lJ(lJ.S+lJ.F*sQ,"Object",{getOwnPropertySymbols:function(e){return jJ.f(CJ(e))}}),FJ&&lJ(lJ.S+lJ.F*(!HJ||pJ((function(){var e=BJ();return"[null]"!=LJ([e])||"{}"!=LJ({a:e})||"{}"!=LJ(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);if(n=t=o[1],(wJ(t)||void 0!==e)&&!KJ(e))return bJ(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!KJ(t))return t}),o[1]=t,LJ.apply(FJ,o)}}),BJ.prototype[IJ]||EY(BJ.prototype,IJ,BJ.prototype.valueOf),fJ(BJ,"Symbol"),fJ(Math,"Math",!0),fJ(iJ.JSON,"JSON",!0),BZ("asyncIterator"),BZ("observable");var lQ=FG.exports.Symbol;wZ.exports={default:lQ,__esModule:!0},HY.__esModule=!0;var cQ=dQ(qY.exports),uQ=dQ(wZ.exports),pQ="function"==typeof uQ.default&&"symbol"==typeof cQ.default?function(e){return typeof e}:function(e){return e&&"function"==typeof uQ.default&&e.constructor===uQ.default&&e!==uQ.default.prototype?"symbol":typeof e};function dQ(e){return e&&e.__esModule?e:{default:e}}HY.default="function"==typeof uQ.default&&"symbol"===pQ(cQ.default)?function(e){return void 0===e?"undefined":pQ(e)}:function(e){return e&&"function"==typeof uQ.default&&e.constructor===uQ.default&&e!==uQ.default.prototype?"symbol":void 0===e?"undefined":pQ(e)},UY.__esModule=!0;var fQ=function(e){return e&&e.__esModule?e:{default:e}}(HY);UY.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,fQ.default)(t))&&"function"!=typeof t?e:t};var hQ,mQ,vQ={},xQ={exports:{}};MY(MY.S,"Object",{setPrototypeOf:function(){if(mQ)return hQ;mQ=1;var e=cY,t=pY,n=function(n,o){if(t(n),!e(o)&&null!==o)throw TypeError(o+": can't set as prototype!")};return hQ={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{(o=sY(Function.call,ZZ.f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,r){return n(e,r),t?e.__proto__=r:o(e,r),e}}({},!1):void 0),check:n},hQ}().set});var gQ=FG.exports.Object.setPrototypeOf;xQ.exports={default:gQ,__esModule:!0};var bQ={exports:{}};MY(MY.S,"Object",{create:PK()});var yQ=FG.exports.Object,wQ=function(e,t){return yQ.create(e,t)};bQ.exports={default:wQ,__esModule:!0},vQ.__esModule=!0;var CQ=DQ(xQ.exports),EQ=DQ(bQ.exports),OQ=DQ(HY);function DQ(e){return e&&e.__esModule?e:{default:e}}vQ.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,OQ.default)(t)));e.prototype=(0,EQ.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(CQ.default?(0,CQ.default)(e,t):e.__proto__=t)};var SQ=function(e){return e};var kQ=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},TQ=kQ,jQ=Math.max;var MQ=function(e,t,n){return t=jQ(void 0===t?e.length-1:t,0),function(){for(var o=arguments,r=-1,i=jQ(o.length-t,0),a=Array(i);++r<i;)a[r]=o[t+r];r=-1;for(var s=Array(t+1);++r<t;)s[r]=o[r];return s[t]=n(a),TQ(e,this,s)}};var AQ=function(e){return function(){return e}},NQ=$A,RQ=function(){try{var e=NQ(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),PQ=AQ,BQ=RQ,FQ=BQ?function(e,t){return BQ(e,"toString",{configurable:!0,enumerable:!1,value:PQ(t),writable:!0})}:SQ,LQ=Date.now;var _Q=function(e){var t=0,n=0;return function(){var o=LQ(),r=16-(o-n);if(n=o,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},IQ=_Q(FQ),$Q=SQ,zQ=MQ,VQ=IQ;var WQ=function(e,t){return VQ(zQ(e,t,$Q),e+"")},UQ=hP&&new hP,HQ=UQ,qQ=HQ?function(e,t){return HQ.set(e,t),e}:SQ,XQ=bA,GQ=Object.create,YQ=function(){function e(){}return function(t){if(!XQ(t))return{};if(GQ)return GQ(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),KQ=YQ,ZQ=KQ,JQ=bA;var QQ=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=ZQ(e.prototype),o=e.apply(n,t);return JQ(o)?o:n}},e0=QQ,t0=aA;var n0=function(e,t,n){var o=1&t,r=e0(e);return function t(){var i=this&&this!==t0&&this instanceof t?r:e;return i.apply(o?n:this,arguments)}},o0=Math.max;var r0=function(e,t,n,o){for(var r=-1,i=e.length,a=n.length,s=-1,l=t.length,c=o0(i-a,0),u=Array(l+c),p=!o;++s<l;)u[s]=t[s];for(;++r<a;)(p||r<i)&&(u[n[r]]=e[r]);for(;c--;)u[s++]=e[r++];return u},i0=Math.max;var a0=function(e,t,n,o){for(var r=-1,i=e.length,a=-1,s=n.length,l=-1,c=t.length,u=i0(i-s,0),p=Array(u+c),d=!o;++r<u;)p[r]=e[r];for(var f=r;++l<c;)p[f+l]=t[l];for(;++a<s;)(d||r<i)&&(p[f+n[a]]=e[r++]);return p};var s0=function(e,t){for(var n=e.length,o=0;n--;)e[n]===t&&++o;return o};var l0=function(){},c0=KQ,u0=l0;function p0(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}p0.prototype=c0(u0.prototype),p0.prototype.constructor=p0;var d0=p0;var f0=UQ,h0=f0?function(e){return f0.get(e)}:function(){},m0={},v0=Object.prototype.hasOwnProperty;var x0=function(e){for(var t=e.name+"",n=m0[t],o=v0.call(m0,t)?n.length:0;o--;){var r=n[o],i=r.func;if(null==i||i==e)return r.name}return t},g0=KQ,b0=l0;function y0(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}y0.prototype=g0(b0.prototype),y0.prototype.constructor=y0;var w0=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t},C0=d0,E0=y0,O0=w0;var D0=function(e){if(e instanceof C0)return e.clone();var t=new E0(e.__wrapped__,e.__chain__);return t.__actions__=O0(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t},S0=d0,k0=y0,T0=l0,j0=JN,M0=uR,A0=D0,N0=Object.prototype.hasOwnProperty;function R0(e){if(M0(e)&&!j0(e)&&!(e instanceof S0)){if(e instanceof k0)return e;if(N0.call(e,"__wrapped__"))return A0(e)}return new k0(e)}R0.prototype=T0.prototype,R0.prototype.constructor=R0;var P0=d0,B0=h0,F0=x0,L0=R0;var _0=function(e){var t=F0(e),n=L0[t];if("function"!=typeof n||!(t in P0.prototype))return!1;if(e===n)return!0;var o=B0(n);return!!o&&e===o[0]},I0=_Q(qQ),$0=/\{\n\/\* \[wrapped with (.+)\] \*/,z0=/,? & /;var V0=function(e){var t=e.match($0);return t?t[1].split(z0):[]},W0=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;var U0=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e};var H0=function(e,t,n,o){for(var r=e.length,i=n+(o?1:-1);o?i--:++i<r;)if(t(e[i],i,e))return i;return-1};var q0=function(e,t,n){for(var o=n-1,r=e.length;++o<r;)if(e[o]===t)return o;return-1},X0=H0,G0=function(e){return e!=e},Y0=q0;var K0=function(e,t,n){return t==t?Y0(e,t,n):X0(e,G0,n)};var Z0=U0,J0=function(e,t){return!!(null==e?0:e.length)&&K0(e,t,0)>-1},Q0=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];var e1=V0,t1=function(e,t){var n=t.length;if(!n)return e;var o=n-1;return t[o]=(n>1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(W0,"{\n/* [wrapped with "+t+"] */\n")},n1=IQ,o1=function(e,t){return Z0(Q0,(function(n){var o="_."+n[0];t&n[1]&&!J0(e,o)&&e.push(o)})),e.sort()};var r1=function(e,t,n){var o=t+"";return n1(e,t1(o,o1(e1(o),n)))},i1=_0,a1=I0,s1=r1;var l1=function(e,t,n,o,r,i,a,s,l,c){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);var p=[e,t,r,u?i:void 0,u?a:void 0,u?void 0:i,u?void 0:a,s,l,c],d=n.apply(void 0,p);return i1(e)&&a1(d,p),d.placeholder=o,s1(d,e,t)};var c1=function(e){return e.placeholder},u1=w0,p1=CR,d1=Math.min;var f1=function(e,t){for(var n=e.length,o=d1(t.length,n),r=u1(e);o--;){var i=t[o];e[o]=p1(i,n)?r[i]:void 0}return e};var h1=function(e,t){for(var n=-1,o=e.length,r=0,i=[];++n<o;){var a=e[n];a!==t&&"__lodash_placeholder__"!==a||(e[n]="__lodash_placeholder__",i[r++]=n)}return i},m1=r0,v1=a0,x1=s0,g1=QQ,b1=l1,y1=c1,w1=f1,C1=h1,E1=aA;var O1=function e(t,n,o,r,i,a,s,l,c,u){var p=128&n,d=1&n,f=2&n,h=24&n,m=512&n,v=f?void 0:g1(t);return function x(){for(var g=arguments.length,b=Array(g),y=g;y--;)b[y]=arguments[y];if(h)var w=y1(x),C=x1(b,w);if(r&&(b=m1(b,r,i,h)),a&&(b=v1(b,a,s,h)),g-=C,h&&g<u){var E=C1(b,w);return b1(t,n,e,x.placeholder,o,b,E,l,c,u-g)}var O=d?o:this,D=f?O[t]:t;return g=b.length,l?b=w1(b,l):m&&g>1&&b.reverse(),p&&c<g&&(b.length=c),this&&this!==E1&&this instanceof x&&(D=v||g1(D)),D.apply(O,b)}},D1=kQ,S1=QQ,k1=O1,T1=l1,j1=c1,M1=h1,A1=aA;var N1=function(e,t,n){var o=S1(e);return function r(){for(var i=arguments.length,a=Array(i),s=i,l=j1(r);s--;)a[s]=arguments[s];var c=i<3&&a[0]!==l&&a[i-1]!==l?[]:M1(a,l);if((i-=c.length)<n)return T1(e,t,k1,r.placeholder,void 0,a,c,void 0,void 0,n-i);var u=this&&this!==A1&&this instanceof r?o:e;return D1(u,this,a)}},R1=kQ,P1=QQ,B1=aA;var F1=function(e,t,n,o){var r=1&t,i=P1(e);return function t(){for(var a=-1,s=arguments.length,l=-1,c=o.length,u=Array(c+s),p=this&&this!==B1&&this instanceof t?i:e;++l<c;)u[l]=o[l];for(;s--;)u[l++]=arguments[++a];return R1(p,r?n:this,u)}},L1=r0,_1=a0,I1=h1,$1=Math.min;var z1=yz;var V1=function(e){return e?Infinity===(e=z1(e))||-Infinity===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var W1=function(e){var t=V1(e),n=t%1;return t==t?n?t-n:t:0},U1=qQ,H1=n0,q1=N1,X1=O1,G1=F1,Y1=h0,K1=function(e,t){var n=e[1],o=t[1],r=n|o,i=r<131,a=128==o&&8==n||128==o&&256==n&&e[7].length<=t[8]||384==o&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&o&&(e[2]=t[2],r|=1&n?0:4);var s=t[3];if(s){var l=e[3];e[3]=l?L1(l,s,t[4]):s,e[4]=l?I1(e[3],"__lodash_placeholder__"):t[4]}return(s=t[5])&&(l=e[5],e[5]=l?_1(l,s,t[6]):s,e[6]=l?I1(e[5],"__lodash_placeholder__"):t[6]),(s=t[7])&&(e[7]=s),128&o&&(e[8]=null==e[8]?t[8]:$1(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=r,e},Z1=I0,J1=r1,Q1=W1,e2=Math.max;var t2=function(e,t,n,o,r,i,a,s){var l=2&t;if(!l&&"function"!=typeof e)throw new TypeError("Expected a function");var c=o?o.length:0;if(c||(t&=-97,o=r=void 0),a=void 0===a?a:e2(Q1(a),0),s=void 0===s?s:Q1(s),c-=r?r.length:0,64&t){var u=o,p=r;o=r=void 0}var d=l?void 0:Y1(e),f=[e,t,n,o,r,u,p,i,a,s];if(d&&K1(f,d),e=f[0],t=f[1],n=f[2],o=f[3],r=f[4],!(s=f[9]=void 0===f[9]?l?0:e.length:e2(f[9]-c,0))&&24&t&&(t&=-25),t&&1!=t)h=8==t||16==t?q1(e,t,s):32!=t&&33!=t||r.length?X1.apply(void 0,f):G1(e,t,n,o);else var h=H1(e,t,n);return J1((d?U1:Z1)(h,f),e,t)},n2=t2,o2=c1,r2=h1,i2=WQ((function(e,t,n){var o=1;if(n.length){var r=r2(n,o2(i2));o|=32}return n2(e,o,t,n,r)}));i2.placeholder={};var a2=i2,s2=process.env.NODE_ENV,l2=function(e,t,n,o,r,i,a,s){if("production"!==s2&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,r,i,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}},c2=!("undefined"==typeof window||!window.document||!window.document.createElement),u2={},p2=Object.prototype.hasOwnProperty;function d2(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}var f2=function(e,t){if(d2(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var r=0;r<n.length;r++)if(!p2.call(t,n[r])||!d2(e[n[r]],t[n[r]]))return!1;return!0},h2={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},m2={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},v2=Object.defineProperty,x2=Object.getOwnPropertyNames,g2=Object.getOwnPropertySymbols,b2=Object.getOwnPropertyDescriptor,y2=Object.getPrototypeOf,w2=y2&&y2(Object);var C2=function e(t,n,o){if("string"!=typeof n){if(w2){var r=y2(n);r&&r!==w2&&e(t,r,o)}var i=x2(n);g2&&(i=i.concat(g2(n)));for(var a=0;a<i.length;++a){var s=i[a];if(!(h2[s]||m2[s]||o&&o[s])){var l=b2(n,s);try{v2(t,s,l)}catch(e){}}}return t}return t},E2={};Object.defineProperty(E2,"__esModule",{value:!0}),E2.createChangeEmitter=function(){var e=[],t=e;function n(){t===e&&(t=e.slice())}return{listen:function(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var o=!0;return n(),t.push(e),function(){if(o){o=!1,n();var r=t.indexOf(e);t.splice(r,1)}}},emit:function(){for(var n=e=t,o=0;o<n.length;o++)n[o].apply(n,arguments)}}};var O2=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")()),D2=ce(Object.freeze({__proto__:null,default:O2}));function S2(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(u2,"__esModule",{value:!0});var k2=c.default,T2=S2(k2),j2=S2(f2),M2=S2(C2),A2=E2,N2=S2(D2),R2=function(e,t){return function(n){return n[e]=t,n}},P2=function(e){return R2("displayName",e)},B2=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":void 0},F2=function(e,t){return t+"("+B2(e)+")"},L2=function(e){return function(t){var n=k2.createFactory(t),o=function(t){return n(e(t))};return"production"!==process.env.NODE_ENV?P2(F2(t,"mapProps"))(o):o}},_2=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},I2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},$2=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},z2=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n},V2=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},W2=function(e,t){for(var n={},o=0;o<t.length;o++){var r=t[o];e.hasOwnProperty(r)&&(n[r]=e[r])}return n},U2=function(e,t){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=t(e[o],o));return n},H2=function(e,t){for(var n=z2(e,[]),o=0;o<t.length;o++){var r=t[o];n.hasOwnProperty(r)&&delete n[r]}return n},q2=Object.keys,X2=function(e){return e},G2=function(e){function t(){return _2(this,t),V2(this,e.apply(this,arguments))}return $2(t,e),t.prototype.render=function(){return null},t}(k2.Component),Y2=function(e){return function(t){var n=k2.createFactory(t),o=function(t){function o(){return _2(this,o),V2(this,t.apply(this,arguments))}return $2(o,t),o.prototype.shouldComponentUpdate=function(t){return e(this.props,t)},o.prototype.render=function(){return n(this.props)},o}(k2.Component);return"production"!==process.env.NODE_ENV?P2(F2(t,"shouldUpdate"))(o):o}},K2=function(e){var t=Y2((function(t,n){return!j2(W2(n,e),W2(t,e))}));return"production"!==process.env.NODE_ENV?function(e){return P2(F2(e,"onlyUpdateForKeys"))(t(e))}:t},Z2=function(e){return Boolean(e&&e.prototype&&"function"==typeof e.prototype.render)};var J2={fromESObservable:null,toESObservable:null},Q2={fromESObservable:function(e){return"function"==typeof J2.fromESObservable?J2.fromESObservable(e):e},toESObservable:function(e){return"function"==typeof J2.toESObservable?J2.toESObservable(e):e}},e3=function(e){return function(t){return function(n){function o(){var r,i,a;_2(this,o);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return i=a=V2(this,n.call.apply(n,[this].concat(l))),a.state={vdom:null},a.propsEmitter=A2.createChangeEmitter(),a.props$=e.fromESObservable(((r={subscribe:function(e){return{unsubscribe:a.propsEmitter.listen((function(t){t?e.next(t):e.complete()}))}}})[N2]=function(){return this},r)),a.vdom$=e.toESObservable(t(a.props$)),V2(a,i)}return $2(o,n),o.prototype.componentWillMount=function(){var e=this;this.subscription=this.vdom$.subscribe({next:function(t){e.setState({vdom:t})}}),this.propsEmitter.emit(this.props)},o.prototype.componentWillReceiveProps=function(e){this.propsEmitter.emit(e)},o.prototype.shouldComponentUpdate=function(e,t){return t.vdom!==this.state.vdom},o.prototype.componentWillUnmount=function(){this.propsEmitter.emit(),this.subscription.unsubscribe()},o.prototype.render=function(){return this.state.vdom},o}(k2.Component)}},t3=function(e){return e},n3=function(e){var t=e3({fromESObservable:t3,toESObservable:t3});return function(n){return function(o){var r=k2.createFactory(o),i=e.fromESObservable,a=e.toESObservable;return t((function(e){var t;return(t={subscribe:function(t){var o=a(n(i(e))).subscribe({next:function(e){return t.next(r(e))}});return{unsubscribe:function(){return o.unsubscribe()}}}})[N2]=function(){return this},t}))}}},o3=function(e){return function(){var t,n=A2.createChangeEmitter(),o=e.fromESObservable(((t={subscribe:function(e){return{unsubscribe:n.listen((function(t){return e.next(t)}))}}})[N2]=function(){return this},t));return{handler:n.emit,stream:o}}},r3=o3(Q2);u2.mapProps=L2,u2.withProps=function(e){var t=L2((function(t){return I2({},t,"function"==typeof e?e(t):e)}));return"production"!==process.env.NODE_ENV?function(e){return P2(F2(e,"withProps"))(t(e))}:t},u2.withPropsOnChange=function(e,t){return function(n){var o=k2.createFactory(n),r="function"==typeof e?e:function(t,n){return!j2(W2(t,e),W2(n,e))},i=function(e){function n(){var o,r;_2(this,n);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return o=r=V2(this,e.call.apply(e,[this].concat(a))),r.computedProps=t(r.props),V2(r,o)}return $2(n,e),n.prototype.componentWillReceiveProps=function(e){r(this.props,e)&&(this.computedProps=t(e))},n.prototype.render=function(){return o(I2({},this.props,this.computedProps))},n}(k2.Component);return"production"!==process.env.NODE_ENV?P2(F2(n,"withPropsOnChange"))(i):i}},u2.withHandlers=function(e){return function(t){var n=k2.createFactory(t),o=function(e){function t(){var n,o;_2(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=o=V2(this,e.call.apply(e,[this].concat(a))),r.call(o),V2(o,n)}return $2(t,e),t.prototype.componentWillReceiveProps=function(){this.cachedHandlers={}},t.prototype.render=function(){return n(I2({},this.props,this.handlers))},t}(k2.Component),r=function(){var t=this;this.cachedHandlers={},this.handlers=U2("function"==typeof e?e(this.props):e,(function(e,n){return function(){var o=t.cachedHandlers[n];if(o)return o.apply(void 0,arguments);var r=e(t.props);return t.cachedHandlers[n]=r,"production"!==process.env.NODE_ENV&&"function"!=typeof r&&console.error("withHandlers(): Expected a map of higher-order functions. Refer to the docs for more info."),r.apply(void 0,arguments)}}))};return"production"!==process.env.NODE_ENV?P2(F2(t,"withHandlers"))(o):o}},u2.defaultProps=function(e){return function(t){var n=k2.createFactory(t),o=function(e){return n(e)};return o.defaultProps=e,"production"!==process.env.NODE_ENV?P2(F2(t,"defaultProps"))(o):o}},u2.renameProp=function(e,t){var n=L2((function(n){var o;return I2({},H2(n,[e]),((o={})[t]=n[e],o))}));return"production"!==process.env.NODE_ENV?function(e){return P2(F2(e,"renameProp"))(n(e))}:n},u2.renameProps=function(e){var t=L2((function(t){return I2({},H2(t,q2(e)),function(e,t){return q2(e).reduce((function(n,o){var r=e[o];return n[t(r,o)]=r,n}),{})}(W2(t,q2(e)),(function(t,n){return e[n]})))}));return"production"!==process.env.NODE_ENV?function(e){return P2(F2(e,"renameProps"))(t(e))}:t},u2.flattenProp=function(e){return function(t){var n=k2.createFactory(t),o=function(t){return n(I2({},t,t[e]))};return"production"!==process.env.NODE_ENV?P2(F2(t,"flattenProp"))(o):o}},u2.withState=function(e,t,n){return function(o){var r=k2.createFactory(o),i=function(o){function i(){var e,t;_2(this,i);for(var r=arguments.length,a=Array(r),s=0;s<r;s++)a[s]=arguments[s];return e=t=V2(this,o.call.apply(o,[this].concat(a))),t.state={stateValue:"function"==typeof n?n(t.props):n},t.updateStateValue=function(e,n){return t.setState((function(t){var n=t.stateValue;return{stateValue:"function"==typeof e?e(n):e}}),n)},V2(t,e)}return $2(i,o),i.prototype.render=function(){var n;return r(I2({},this.props,((n={})[e]=this.state.stateValue,n[t]=this.updateStateValue,n)))},i}(k2.Component);return"production"!==process.env.NODE_ENV?P2(F2(o,"withState"))(i):i}},u2.withStateHandlers=function(e,t){return function(n){var o=k2.createFactory(n),r=function(e){function t(){var n,o;_2(this,t);for(var r=arguments.length,a=Array(r),s=0;s<r;s++)a[s]=arguments[s];return n=o=V2(this,e.call.apply(e,[this].concat(a))),i.call(o),V2(o,n)}return $2(t,e),t.prototype.shouldComponentUpdate=function(e,t){var n=e!==this.props,o=!j2(t,this.state);return n||o},t.prototype.render=function(){return o(I2({},this.props,this.state,this.stateUpdaters))},t}(k2.Component),i=function(){var n=this;this.state="function"==typeof e?e(this.props):e,this.stateUpdaters=U2(t,(function(e){return function(t){for(var o=arguments.length,r=Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];t&&"function"==typeof t.persist&&t.persist(),n.setState((function(n,o){return e(n,o).apply(void 0,[t].concat(r))}))}}))};return"production"!==process.env.NODE_ENV?P2(F2(n,"withStateHandlers"))(r):r}},u2.withReducer=function(e,t,n,o){return function(r){var i=k2.createFactory(r),a=function(r){function a(){var e,t;_2(this,a);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return e=t=V2(this,r.call.apply(r,[this].concat(i))),t.state={stateValue:t.initializeStateValue()},t.dispatch=function(e){return t.setState((function(t){var o=t.stateValue;return{stateValue:n(o,e)}}))},V2(t,e)}return $2(a,r),a.prototype.initializeStateValue=function(){return void 0!==o?"function"==typeof o?o(this.props):o:n(void 0,{type:"@@recompose/INIT"})},a.prototype.render=function(){var n;return i(I2({},this.props,((n={})[e]=this.state.stateValue,n[t]=this.dispatch,n)))},a}(k2.Component);return"production"!==process.env.NODE_ENV?P2(F2(r,"withReducer"))(a):a}},u2.branch=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:X2;return function(o){var r=void 0,i=void 0,a=function(a){return e(a)?(r=r||k2.createFactory(t(o)))(a):(i=i||k2.createFactory(n(o)))(a)};return"production"!==process.env.NODE_ENV?P2(F2(o,"branch"))(a):a}},u2.renderComponent=function(e){return function(t){var n=k2.createFactory(e),o=function(e){return n(e)};return"production"!==process.env.NODE_ENV&&(o.displayName=F2(e,"renderComponent")),o}},u2.renderNothing=function(e){return G2},u2.shouldUpdate=Y2,u2.pure=function(e){var t=Y2((function(e,t){return!j2(e,t)}));return"production"!==process.env.NODE_ENV?P2(F2(e,"pure"))(t(e)):t(e)},u2.onlyUpdateForKeys=K2,u2.onlyUpdateForPropTypes=function(e){var t=e.propTypes;"production"!==process.env.NODE_ENV&&(t||console.error('A component without any `propTypes` was passed to `onlyUpdateForPropTypes()`. Check the implementation of the component with display name "'+B2(e)+'".'));var n=Object.keys(t||{}),o=K2(n)(e);return"production"!==process.env.NODE_ENV?P2(F2(e,"onlyUpdateForPropTypes"))(o):o},u2.withContext=function(e,t){return function(n){var o=k2.createFactory(n),r=function(e){function n(){var o,r;_2(this,n);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return o=r=V2(this,e.call.apply(e,[this].concat(a))),r.getChildContext=function(){return t(r.props)},V2(r,o)}return $2(n,e),n.prototype.render=function(){return o(this.props)},n}(k2.Component);return r.childContextTypes=e,"production"!==process.env.NODE_ENV?P2(F2(n,"withContext"))(r):r}},u2.getContext=function(e){return function(t){var n=k2.createFactory(t),o=function(e,t){return n(I2({},e,t))};return o.contextTypes=e,"production"!==process.env.NODE_ENV?P2(F2(t,"getContext"))(o):o}},u2.lifecycle=function(e){return function(t){var n=k2.createFactory(t);"production"!==process.env.NODE_ENV&&e.hasOwnProperty("render")&&console.error("lifecycle() does not support the render method; its behavior is to pass all props and state to the base component.");var o=function(e){function t(){return _2(this,t),V2(this,e.apply(this,arguments))}return $2(t,e),t.prototype.render=function(){return n(I2({},this.props,this.state))},t}(k2.Component);return Object.keys(e).forEach((function(t){return o.prototype[t]=e[t]})),"production"!==process.env.NODE_ENV?P2(F2(t,"lifecycle"))(o):o}},u2.toClass=function(e){if(Z2(e))return e;var t=function(t){function n(){return _2(this,n),V2(this,t.apply(this,arguments))}return $2(n,t),n.prototype.render=function(){return"string"==typeof e?T2.createElement(e,this.props):e(this.props,this.context)},n}(k2.Component);return t.displayName=B2(e),t.propTypes=e.propTypes,t.contextTypes=e.contextTypes,t.defaultProps=e.defaultProps,t},u2.setStatic=R2,u2.setPropTypes=function(e){return R2("propTypes",e)},u2.setDisplayName=P2,u2.compose=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))},u2.getDisplayName=B2,u2.wrapDisplayName=F2,u2.shallowEqual=j2,u2.isClassComponent=Z2,u2.createSink=function(e){return function(t){function n(){return _2(this,n),V2(this,t.apply(this,arguments))}return $2(n,t),n.prototype.componentWillMount=function(){e(this.props)},n.prototype.componentWillReceiveProps=function(t){e(t)},n.prototype.render=function(){return null},n}(k2.Component)},u2.componentFromProp=function(e){var t=function(t){return k2.createElement(t[e],H2(t,[e]))};return t.displayName="componentFromProp("+e+")",t},u2.nest=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t.map(k2.createFactory),r=function(e){var t=z2(e,[]),n=e.children;return o.reduceRight((function(e,n){return n(t,e)}),n)};if("production"!==process.env.NODE_ENV){var i=t.map(B2);r.displayName="nest("+i.join(", ")+")"}return r},u2.hoistStatics=function(e){return function(t){var n=e(t);return M2(n,t),n}},u2.componentFromStream=function(e){return e3(Q2)(e)},u2.componentFromStreamWithConfig=e3,u2.mapPropsStream=function(e){var t=n3(Q2)(e);return"production"!==process.env.NODE_ENV?function(e){return P2(F2(e,"mapPropsStream"))(t(e))}:t},u2.mapPropsStreamWithConfig=n3,u2.createEventHandler=r3,u2.createEventHandlerWithConfig=o3,u2.setObservableConfig=function(e){J2=e};var i3,a3={exports:{}};
256
256
  /*!
257
257
  * $script.js JS loader & dependency manager
258
258
  * https://github.com/ded/script.js