Файловый менеджер - Редактировать - /home/harasnat/www/horse/wp-content/plugins/web-stories/assets/js/2239.js
Назад
(globalThis.webpackChunkweb_stories_wp=globalThis.webpackChunkweb_stories_wp||[]).push([[2239,6393],{679:t=>{"use strict";t.exports=function(t){return Object.keys(t).map((function(e){return t[e]}))}},723:(t,e,r)=>{"use strict";var n=r(90646),i=/\.textClipping$/,o={"text/plain":!0,"text/html":!0,"text/rtf":!0};t.exports=function(t,e){var a=0,s=[];t.forEach((function(u){!function(t,e){if(!r.g.FileReader||t.type&&!(t.type in o))return void e("");if(""===t.type){var a="";return i.test(t.name)&&(a=t.name.replace(i,"")),void e(a)}var s=new FileReader;s.onload=function(){var t=s.result;"string"!=typeof t&&n(!1),e(t)},s.onerror=function(){e("")},s.readAsText(t)}(u,(function(r){a++,r&&s.push(r.slice(0,5e3)),a==t.length&&e(s.join("\r"))}))}))}},944:t=>{"use strict";var e=TypeError;t.exports=function(t){var r=t&&t.alphabet;if(void 0===r||"base64"===r||"base64url"===r)return r||"base64";throw new e("Incorrect `alphabet` option")}},953:t=>{"use strict";t.exports={initODS:function(){},handleExtensionCausedError:function(){}}},1548:(t,e,r)=>{"use strict";var n=r(44576),i=r(79039),o=r(39519),a=r(84215),s=n.structuredClone;t.exports=!!s&&!i((function(){if("DENO"===a&&o>92||"NODE"===a&&o>94||"BROWSER"===a&&o>97)return!1;var t=new ArrayBuffer(8),e=s(t,{transfer:[t]});return 0!==t.byteLength||8!==e.byteLength}))},2383:(t,e,r)=>{"use strict";var n=r(12242),i=r(50580),o=r(77800),a=r(5188);t.exports=function(t){var e=a(t,(function(t){var e=t.getSelection(),r=t.getCurrentContent(),n=e.getAnchorKey(),a=e.getAnchorOffset(),s=r.getBlockForKey(n).getText()[a];return o(t,s?i.getUTF16Length(s,0):1)}),"forward");if(e===t.getCurrentContent())return t;var r=t.getSelection();return n.push(t,e.set("selectionBefore",r),r.isCollapsed()?"delete-character":"remove-range")}},2505:t=>{"use strict";var e={isImage:function(t){return"image"===r(t)[0]},isJpeg:function(t){var n=r(t);return e.isImage(t)&&("jpeg"===n[1]||"pjpeg"===n[1])}};function r(t){return t.split("/")}t.exports=e},2935:(t,e,r)=>{"use strict";function n(t,e){var r=i.get(t,e);return"auto"===r||"scroll"===r}var i={get:r(46892),getScrollParent:function(t){if(!t)return null;for(var e=t.ownerDocument;t&&t!==e.body;){if(n(t,"overflow")||n(t,"overflowY")||n(t,"overflowX"))return t;t=t.parentNode}return e.defaultView||e.parentWindow}};t.exports=i},3136:(t,e,r)=>{"use strict";var n=r(77337),i=r(56269),o=r(90646),a=n.Repeat;t.exports=function(t,e,r,n){e.isCollapsed()||o(!1);var s=null;if(null!=r&&(s=r.length),null==s||0===s)return t;var u=t.getBlockMap(),c=e.getStartKey(),l=e.getStartOffset(),f=u.get(c),p=f.getText(),h=f.merge({text:p.slice(0,l)+r+p.slice(l,f.getLength()),characterList:i(f.getCharacterList(),a(n,s).toList(),l)}),d=l+s;return t.merge({blockMap:u.set(c,h),selectionAfter:e.merge({anchorOffset:d,focusOffset:d})})}},3238:(t,e,r)=>{"use strict";var n=r(44576),i=r(77811),o=r(67394),a=n.DataView;t.exports=function(t){if(!i||0!==o(t))return!1;try{return new a(t),!1}catch(t){return!0}}},3694:(t,e,r)=>{"use strict";var n=r(31296);t.exports=function(t,e){t._latestEditorState.getSelection().isCollapsed()?e.preventDefault():t.setClipboard(n(t._latestEditorState))}},3885:t=>{"use strict";var e="-",r={encode:function(t,r,n){return t+e+r+e+n},decode:function(t){var r=t.split(e).reverse(),n=r[0],i=r[1];return{blockKey:r.slice(2).reverse().join(e),decoratorKey:parseInt(i,10),leafKey:parseInt(n,10)}}};t.exports=r},3914:(t,e,r)=>{"use strict";var n,i=r(61708),o=r(77337),a=r(56408),s=o.OrderedMap,u={getDirectionMap:function(t,e){n?n.reset():n=new i;var r=t.getBlockMap(),u=r.valueSeq().map((function(t){return a(n).getDirection(t.getText())})),c=s(r.keySeq().zip(u));return null!=e&&o.is(e,c)?e:c}};t.exports=u},4909:(t,e,r)=>{"use strict";var n=r(95423);t.exports=function t(e,r){return!(!e||!r)&&(e===r||!n(e)&&(n(r)?t(e,r.parentNode):"contains"in e?e.contains(r):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(r))))}},5091:(t,e,r)=>{"use strict";var n=r(49938),i=r(3885),o=r(12242),a=r(14134),s=r(51103).notEmptyKey,u=r(88372),c=r(47381),l=r(56408),f=a.isEngine("Gecko");t.exports=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var r=t.editor.ownerDocument.defaultView.getSelection(),a=r.anchorNode,p=r.isCollapsed,h=(null==a?void 0:a.nodeType)!==Node.TEXT_NODE&&(null==a?void 0:a.nodeType)!==Node.ELEMENT_NODE;if(null!=a&&!h){if(a.nodeType===Node.TEXT_NODE&&(null!==a.previousSibling||null!==a.nextSibling)){var d=a.parentNode;if(null==d)return;a.nodeValue=d.textContent;for(var v=d.firstChild;null!=v;v=v.nextSibling)v!==a&&d.removeChild(v)}var g=a.textContent,y=t._latestEditorState,m=l(u(a)),_=i.decode(m),b=_.blockKey,S=_.decoratorKey,w=_.leafKey,x=y.getBlockTree(b).getIn([S,"leaves",w]),E=x.start,M=x.end,O=y.getCurrentContent(),k=O.getBlockForKey(b),C=k.getText().slice(E,M);if(g.endsWith("\n\n")&&(g=g.slice(0,-1)),g!==C){var D,I,A,R,T=y.getSelection(),z=T.merge({anchorOffset:E,focusOffset:M,isBackward:!1}),B=k.getEntityAt(E),q=s(B)?O.getEntity(B):null,P="MUTABLE"===(null!=q?q.getMutability():null),j=P?"spellcheck-change":"apply-entity",L=n.replaceText(O,z,g,k.getInlineStyleAt(E),P?k.getEntityAt(E):null);if(f)D=r.anchorOffset,I=r.focusOffset,R=(A=E+Math.min(D,I))+Math.abs(D-I),D=A,I=R;else{var K=g.length-C.length;A=T.getStartOffset(),R=T.getEndOffset(),D=p?R+K:A,I=R+K}var N=L.merge({selectionBefore:O.getSelectionAfter(),selectionAfter:T.merge({anchorOffset:D,focusOffset:I})});t.update(o.push(y,N,j))}else{var F=e.nativeEvent.inputType;if(F){var U=function(t,e){return"deleteContentBackward"===t?c(e):e}(F,y);if(U!==y)return t.restoreEditorDOM(),void t.update(U)}}}}},5188:(t,e,r)=>{"use strict";var n=r(49938),i=r(47282)("draft_tree_data_support");t.exports=function(t,e,r){var o=t.getSelection(),a=t.getCurrentContent(),s=o,u=o.getAnchorKey(),c=o.getFocusKey(),l=a.getBlockForKey(u);if(i&&"forward"===r&&u!==c)return a;if(o.isCollapsed()){if("forward"===r){if(t.isSelectionAtEndOfContent())return a;if(i)if(o.getAnchorOffset()===a.getBlockForKey(u).getLength()){var f=a.getBlockForKey(l.nextSibling);if(!f||0===f.getLength())return a}}else if(t.isSelectionAtStartOfContent())return a;if((s=e(t))===o)return a}return n.removeRange(a,s,r)}},5407:(t,e,r)=>{"use strict";var n=function(t){var e,r;function DraftEntityInstance(){return t.apply(this,arguments)||this}r=t,(e=DraftEntityInstance).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var n=DraftEntityInstance.prototype;return n.getType=function(){return this.get("type")},n.getMutability=function(){return this.get("mutability")},n.getData=function(){return this.get("data")},DraftEntityInstance}((0,r(77337).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));t.exports=n},5462:(t,e,r)=>{"use strict";var n=r(77337).Map;t.exports=function(t,e,r){var i=e.getStartKey(),o=e.getEndKey(),a=t.getBlockMap(),s=a.toSeq().skipUntil((function(t,e){return e===i})).takeUntil((function(t,e){return e===o})).concat(n([[o,a.get(o)]])).map(r);return t.merge({blockMap:a.merge(s),selectionBefore:e,selectionAfter:e})}},6991:t=>{"use strict";var e={},r=Math.pow(2,24);t.exports=function(){for(var t;void 0===t||e.hasOwnProperty(t)||!isNaN(+t);)t=Math.floor(Math.random()*r).toString(32);return e[t]=!0,t}},7018:(t,e,r)=>{"use strict";var n=r(49938),i=r(12242),o=r(60286),a=r(56408),s={currentBlockContainsLink:function(t){var e=t.getSelection(),r=t.getCurrentContent(),n=r.getEntityMap();return r.getBlockForKey(e.getAnchorKey()).getCharacterList().slice(e.getStartOffset(),e.getEndOffset()).some((function(t){var e=t.getEntity();return!!e&&"LINK"===n.__get(e).getType()}))},getCurrentBlockType:function(t){var e=t.getSelection();return t.getCurrentContent().getBlockForKey(e.getStartKey()).getType()},getDataObjectForLinkURL:function(t){return{url:t.toString()}},handleKeyCommand:function(t,e,r){switch(e){case"bold":return s.toggleInlineStyle(t,"BOLD");case"italic":return s.toggleInlineStyle(t,"ITALIC");case"underline":return s.toggleInlineStyle(t,"UNDERLINE");case"code":return s.toggleCode(t);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return s.onBackspace(t);case"delete":case"delete-word":case"delete-to-end-of-block":return s.onDelete(t);default:return null}},insertSoftNewline:function(t){var e=n.insertText(t.getCurrentContent(),t.getSelection(),"\n",t.getCurrentInlineStyle(),null),r=i.push(t,e,"insert-characters");return i.forceSelection(r,e.getSelectionAfter())},onBackspace:function(t){var e=t.getSelection();if(!e.isCollapsed()||e.getAnchorOffset()||e.getFocusOffset())return null;var r=t.getCurrentContent(),n=e.getStartKey(),o=r.getBlockBefore(n);if(o&&"atomic"===o.getType()){var a=r.getBlockMap().delete(o.getKey()),u=r.merge({blockMap:a,selectionAfter:e});if(u!==r)return i.push(t,u,"remove-range")}var c=s.tryToRemoveBlockStyle(t);return c?i.push(t,c,"change-block-type"):null},onDelete:function(t){var e=t.getSelection();if(!e.isCollapsed())return null;var r=t.getCurrentContent(),o=e.getStartKey(),a=r.getBlockForKey(o).getLength();if(e.getStartOffset()<a)return null;var s=r.getBlockAfter(o);if(!s||"atomic"!==s.getType())return null;var u=e.merge({focusKey:s.getKey(),focusOffset:s.getLength()}),c=n.removeRange(r,u,"forward");return c!==r?i.push(t,c,"remove-range"):null},onTab:function(t,e,r){var n=e.getSelection(),a=n.getAnchorKey();if(a!==n.getFocusKey())return e;var s=e.getCurrentContent(),u=s.getBlockForKey(a),c=u.getType();if("unordered-list-item"!==c&&"ordered-list-item"!==c)return e;t.preventDefault();var l=u.getDepth();if(!t.shiftKey&&l===r)return e;var f=o(s,n,t.shiftKey?-1:1,r);return i.push(e,f,"adjust-depth")},toggleBlockType:function(t,e){var r=t.getSelection(),o=r.getStartKey(),s=r.getEndKey(),u=t.getCurrentContent(),c=r;if(o!==s&&0===r.getEndOffset()){var l=a(u.getBlockBefore(s));s=l.getKey(),c=c.merge({anchorKey:o,anchorOffset:r.getStartOffset(),focusKey:s,focusOffset:l.getLength(),isBackward:!1})}if(u.getBlockMap().skipWhile((function(t,e){return e!==o})).reverse().skipWhile((function(t,e){return e!==s})).some((function(t){return"atomic"===t.getType()})))return t;var f=u.getBlockForKey(o).getType()===e?"unstyled":e;return i.push(t,n.setBlockType(u,c,f),"change-block-type")},toggleCode:function(t){var e=t.getSelection(),r=e.getAnchorKey(),n=e.getFocusKey();return e.isCollapsed()||r!==n?s.toggleBlockType(t,"code-block"):s.toggleInlineStyle(t,"CODE")},toggleInlineStyle:function(t,e){var r=t.getSelection(),o=t.getCurrentInlineStyle();if(r.isCollapsed())return i.setInlineStyleOverride(t,o.has(e)?o.remove(e):o.add(e));var a,s=t.getCurrentContent();return a=o.has(e)?n.removeInlineStyle(s,r,e):n.applyInlineStyle(s,r,e),i.push(t,a,"change-inline-style")},toggleLink:function(t,e,r){var o=n.applyEntity(t.getCurrentContent(),e,r);return i.push(t,o,"apply-entity")},tryToRemoveBlockStyle:function(t){var e=t.getSelection(),r=e.getAnchorOffset();if(e.isCollapsed()&&0===r){var i=e.getAnchorKey(),o=t.getCurrentContent(),a=o.getBlockForKey(i).getType(),s=o.getBlockBefore(i);if("code-block"===a&&s&&"code-block"===s.getType()&&0!==s.getLength())return null;if("unstyled"!==a)return n.setBlockType(o,e,"unstyled")}return null}};t.exports=s},7296:(t,e,r)=>{"use strict";var n=r(93816);t.exports=function(t){return!(!t||!t.ownerDocument)&&(n(t)&&"IMG"===t.nodeName)}},7376:(t,e,r)=>{"use strict";var n=r(65224);t.exports=function(t,e){if(!(t instanceof n))return null;var r=t.getNextSiblingKey();if(r)return r;var i=t.getParentKey();if(!i)return null;for(var o=e.get(i);o&&!o.getNextSiblingKey();){var a=o.getParentKey();o=a?e.get(a):null}return o?o.getNextSiblingKey():null}},7470:(t,e,r)=>{"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=r(56840),o=r(65224),a=r(91439),s=r(55481),u=r(20702),c=r(90646),l=function(t,e){return{key:t.getKey(),text:t.getText(),type:t.getType(),depth:t.getDepth(),inlineStyleRanges:u(t),entityRanges:s(t,e),data:t.getData().toObject()}},f=function(t,e,r,a){if(t instanceof i)r.push(l(t,e));else{t instanceof o||c(!1);var s=t.getParentKey(),u=a[t.getKey()]=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),i.forEach((function(e){n(t,e,r[e])}))}return t}({},l(t,e),{children:[]});s?a[s].children.push(u):r.push(u)}};t.exports=function(t){var e={entityMap:{},blocks:[]};return e=function(t,e){var r=e.entityMap,n=[],i={},o={},s=0;return t.getBlockMap().forEach((function(t){t.findEntityRanges((function(t){return null!==t.getEntity()}),(function(e){var n=t.getEntityAt(e),i=a.stringify(n);o[i]||(o[i]=n,r[i]="".concat(s),s++)})),f(t,r,n,i)})),{blocks:n,entityMap:r}}(t,e),e=function(t,e){var r=e.blocks,n=e.entityMap,i={};return Object.keys(n).forEach((function(e,r){var n=t.getEntity(a.unstringify(e));i[r]={type:n.getType(),mutability:n.getMutability(),data:n.getData()}})),{blocks:r,entityMap:i}}(t,e),e}},7997:(t,e,r)=>{"use strict";r.d(e,{default:()=>i});var n=r(96540);function i(t,e,r=!1){const[i,o]=(0,n.useReducer)(function(t){return(e,r)=>r&&r.type&&t[r.type]?t[r.type](e,r):e}(e),t),a=(0,n.useMemo)((()=>function(t,e,r){const n=Object.keys(t);return n.reduce(((t,n)=>(t[n]||(t[n]=t=>{const i={type:n,payload:t};e(i),r&&console.log(i)}),t)),{})}(e,o,r)),[e]);return[i,a]}},8748:t=>{"use strict";var e=/-(.)/g;t.exports=function(t){return t.replace(e,(function(t,e){return e.toUpperCase()}))}},8952:(t,e,r)=>{"use strict";r.d(e,{default:()=>u});const n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let i;const o=new Uint8Array(16);const a=[];for(let t=0;t<256;++t)a.push((t+256).toString(16).slice(1));function s(t,e=0){return(a[t[e+0]]+a[t[e+1]]+a[t[e+2]]+a[t[e+3]]+"-"+a[t[e+4]]+a[t[e+5]]+"-"+a[t[e+6]]+a[t[e+7]]+"-"+a[t[e+8]]+a[t[e+9]]+"-"+a[t[e+10]]+a[t[e+11]]+a[t[e+12]]+a[t[e+13]]+a[t[e+14]]+a[t[e+15]]).toLowerCase()}const u=function(t,e,r){if(n.randomUUID&&!e&&!t)return n.randomUUID();const a=(t=t||{}).random??t.rng?.()??function(){if(!i){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");i=crypto.getRandomValues.bind(crypto)}return i(o)}();if(a.length<16)throw new Error("Random bytes length must be >= 16");if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e){if((r=r||0)<0||r+16>e.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let t=0;t<16;++t)e[r+t]=a[t];return e}return s(a)}},8976:(t,e,r)=>{"use strict";var n=r(12242);t.exports=function(t,e,r){var i=n.undo(e);if("spellcheck-change"!==e.getLastChangeType())t.preventDefault(),e.getNativelyRenderedContent()?(r(n.set(e,{nativelyRenderedContent:null})),setTimeout((function(){r(i)}),0)):r(i);else{var o=i.getCurrentContent();r(n.set(i,{nativelyRenderedContent:o}))}}},9539:(t,e,r)=>{"use strict";var n=r(69565),i=r(28551),o=r(55966);t.exports=function(t,e,r){var a,s;i(t);try{if(!(a=o(t,"return"))){if("throw"===e)throw r;return r}a=n(a,t)}catch(t){s=!0,a=t}if("throw"===e)throw r;if(s)throw a;return i(a),r}},9927:(t,e,r)=>{"use strict";var n=r(51103).notEmptyKey;function i(t,e){return n(e)&&"MUTABLE"===t.__get(e).getMutability()?e:null}t.exports=function(t,e){var r;if(e.isCollapsed()){var n=e.getAnchorKey(),o=e.getAnchorOffset();return o>0?(r=t.getBlockForKey(n).getEntityAt(o-1))!==t.getBlockForKey(n).getEntityAt(o)?null:i(t.getEntityMap(),r):null}var a=e.getStartKey(),s=e.getStartOffset(),u=t.getBlockForKey(a);return r=s===u.getLength()?null:u.getEntityAt(s),i(t.getEntityMap(),r)}},11608:(t,e,r)=>{"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=r(5407),o=r(77337),a=r(90646),s=r(24809),u=(0,o.Map)(),c=s();function l(t,e){console.warn("WARNING: "+t+' will be deprecated soon!\nPlease use "'+e+'" instead.')}var f={getLastCreatedEntityKey:function(){return l("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),f.__getLastCreatedEntityKey()},create:function(t,e,r){return l("DraftEntity.create","contentState.createEntity"),f.__create(t,e,r)},add:function(t){return l("DraftEntity.add","contentState.addEntity"),f.__add(t)},get:function(t){return l("DraftEntity.get","contentState.getEntity"),f.__get(t)},__getAll:function __getAll(){return u},__loadWithEntities:function __loadWithEntities(t){u=t,c=s()},mergeData:function(t,e){return l("DraftEntity.mergeData","contentState.mergeEntityData"),f.__mergeData(t,e)},replaceData:function(t,e){return l("DraftEntity.replaceData","contentState.replaceEntityData"),f.__replaceData(t,e)},__getLastCreatedEntityKey:function __getLastCreatedEntityKey(){return c},__create:function __create(t,e,r){return f.__add(new i({type:t,mutability:e,data:r||{}}))},__add:function __add(t){return c=s(),u=u.set(c,t),c},__get:function __get(t){var e=u.get(t);return e||a(!1),e},__mergeData:function __mergeData(t,e){var r=f.__get(t),i=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),i.forEach((function(e){n(t,e,r[e])}))}return t}({},r.getData(),e),o=r.set("data",i);return u=u.set(t,o),o},__replaceData:function __replaceData(t,e){var r=f.__get(t).set("data",e);return u=u.set(t,r),r}};t.exports=f},12242:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){i(t,e,r[e])}))}return t}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(19981),a=r(97656),s=r(3914),u=r(91381),c=r(77337),l=c.OrderedSet,f=c.Record,p=c.Stack,h=c.OrderedMap,d=c.List,v=f({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:p(),selection:null,treeMap:null,undoStack:p()}),g=function(){EditorState.createEmpty=function(t){return this.createWithText("",t)},EditorState.createWithText=function(t,e){return EditorState.createWithContent(a.createFromText(t),e)},EditorState.createWithContent=function(t,e){if(0===t.getBlockMap().count())return EditorState.createEmpty(e);var r=t.getBlockMap().first().getKey();return EditorState.create({currentContent:t,undoStack:p(),redoStack:p(),decorator:e||null,selection:u.createEmpty(r)})},EditorState.create=function(t){var e=t.currentContent,r=n({},t,{treeMap:m(e,t.decorator),directionMap:s.getDirectionMap(e)});return new EditorState(new v(r))},EditorState.fromJS=function(t){return new EditorState(new v(n({},t,{directionMap:null!=t.directionMap?h(t.directionMap):t.directionMap,inlineStyleOverride:null!=t.inlineStyleOverride?l(t.inlineStyleOverride):t.inlineStyleOverride,nativelyRenderedContent:null!=t.nativelyRenderedContent?a.fromJS(t.nativelyRenderedContent):t.nativelyRenderedContent,redoStack:null!=t.redoStack?p(t.redoStack.map((function(t){return a.fromJS(t)}))):t.redoStack,selection:null!=t.selection?new u(t.selection):t.selection,treeMap:null!=t.treeMap?h(t.treeMap).map((function(t){return d(t).map((function(t){return o.fromJS(t)}))})):t.treeMap,undoStack:null!=t.undoStack?p(t.undoStack.map((function(t){return a.fromJS(t)}))):t.undoStack,currentContent:a.fromJS(t.currentContent)})))},EditorState.set=function(t,e){return new EditorState(t.getImmutable().withMutations((function(r){var n=r.get("decorator"),i=n;null===e.decorator?i=null:e.decorator&&(i=e.decorator);var a=e.currentContent||t.getCurrentContent();if(i!==n){var s,u=r.get("treeMap");return s=i&&n?function(t,e,r,n,i){return r.merge(e.toSeq().filter((function(e){return n.getDecorations(e,t)!==i.getDecorations(e,t)})).map((function(e){return o.generate(t,e,n)})))}(a,a.getBlockMap(),u,i,n):m(a,i),void r.merge({decorator:i,treeMap:s,nativelyRenderedContent:null})}a!==t.getCurrentContent()&&r.set("treeMap",function(t,e,r,n){var i=t.getCurrentContent().set("entityMap",r),a=i.getBlockMap(),s=t.getImmutable().get("treeMap");return s.merge(e.toSeq().filter((function(t,e){return t!==a.get(e)})).map((function(t){return o.generate(i,t,n)})))}(t,a.getBlockMap(),a.getEntityMap(),i)),r.merge(e)})))};var t=EditorState.prototype;function EditorState(t){i(this,"_immutable",void 0),this._immutable=t}return t.toJS=function(){return this.getImmutable().toJS()},t.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},t.getCurrentContent=function(){return this.getImmutable().get("currentContent")},t.getUndoStack=function(){return this.getImmutable().get("undoStack")},t.getRedoStack=function(){return this.getImmutable().get("redoStack")},t.getSelection=function(){return this.getImmutable().get("selection")},t.getDecorator=function(){return this.getImmutable().get("decorator")},t.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},t.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},t.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},t.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},t.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},EditorState.setInlineStyleOverride=function(t,e){return EditorState.set(t,{inlineStyleOverride:e})},t.getCurrentInlineStyle=function(){var t=this.getInlineStyleOverride();if(null!=t)return t;var e=this.getCurrentContent(),r=this.getSelection();return r.isCollapsed()?function(t,e){var r=e.getStartKey(),n=e.getStartOffset(),i=t.getBlockForKey(r);if(n>0)return i.getInlineStyleAt(n-1);if(i.getLength())return i.getInlineStyleAt(0);return _(t,r)}(e,r):function(t,e){var r=e.getStartKey(),n=e.getStartOffset(),i=t.getBlockForKey(r);if(n<i.getLength())return i.getInlineStyleAt(n);if(n>0)return i.getInlineStyleAt(n-1);return _(t,r)}(e,r)},t.getBlockTree=function(t){return this.getImmutable().getIn(["treeMap",t])},t.isSelectionAtStartOfContent=function(){var t=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(t,0,0)},t.isSelectionAtEndOfContent=function(){var t=this.getCurrentContent().getBlockMap().last(),e=t.getLength();return this.getSelection().hasEdgeWithin(t.getKey(),e,e)},t.getDirectionMap=function(){return this.getImmutable().get("directionMap")},EditorState.acceptSelection=function(t,e){return y(t,e,!1)},EditorState.forceSelection=function(t,e){return e.getHasFocus()||(e=e.set("hasFocus",!0)),y(t,e,!0)},EditorState.moveSelectionToEnd=function(t){var e=t.getCurrentContent().getLastBlock(),r=e.getKey(),n=e.getLength();return EditorState.acceptSelection(t,new u({anchorKey:r,anchorOffset:n,focusKey:r,focusOffset:n,isBackward:!1}))},EditorState.moveFocusToEnd=function(t){var e=EditorState.moveSelectionToEnd(t);return EditorState.forceSelection(e,e.getSelection())},EditorState.push=function(t,e,r){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t.getCurrentContent()===e)return t;var i=s.getDirectionMap(e,t.getDirectionMap());if(!t.getAllowUndo())return EditorState.set(t,{currentContent:e,directionMap:i,lastChangeType:r,selection:e.getSelectionAfter(),forceSelection:n,inlineStyleOverride:null});var o=t.getSelection(),a=t.getCurrentContent(),u=t.getUndoStack(),c=e;o!==a.getSelectionAfter()||function(t,e){var r=t.getLastChangeType();return e!==r||"insert-characters"!==e&&"backspace-character"!==e&&"delete-character"!==e}(t,r)?(u=u.push(a),c=c.set("selectionBefore",o)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(c=c.set("selectionBefore",a.getSelectionBefore()));var l=t.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(l=null);var f={currentContent:c,directionMap:i,undoStack:u,redoStack:p(),lastChangeType:r,selection:e.getSelectionAfter(),forceSelection:n,inlineStyleOverride:l};return EditorState.set(t,f)},EditorState.undo=function(t){if(!t.getAllowUndo())return t;var e=t.getUndoStack(),r=e.peek();if(!r)return t;var n=t.getCurrentContent(),i=s.getDirectionMap(r,t.getDirectionMap());return EditorState.set(t,{currentContent:r,directionMap:i,undoStack:e.shift(),redoStack:t.getRedoStack().push(n),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:n.getSelectionBefore()})},EditorState.redo=function(t){if(!t.getAllowUndo())return t;var e=t.getRedoStack(),r=e.peek();if(!r)return t;var n=t.getCurrentContent(),i=s.getDirectionMap(r,t.getDirectionMap());return EditorState.set(t,{currentContent:r,directionMap:i,undoStack:t.getUndoStack().push(n),redoStack:e.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},t.getImmutable=function(){return this._immutable},EditorState}();function y(t,e,r){return g.set(t,{selection:e,forceSelection:r,nativelyRenderedContent:null,inlineStyleOverride:null})}function m(t,e){return t.getBlockMap().map((function(r){return o.generate(t,r,e)})).toOrderedMap()}function _(t,e){var r=t.getBlockMap().reverse().skipUntil((function(t,r){return r===e})).skip(1).skipUntil((function(t,e){return t.getLength()})).first();return r?r.getInlineStyleAt(r.getLength()-1):l()}t.exports=g},12623:(t,e,r)=>{"use strict";var n=r(93816);t.exports=function(t){return!(!t||!t.ownerDocument)&&(n(t)&&"BR"===t.nodeName)}},13136:(t,e,r)=>{"use strict";var n=r(47378),i=r(49938),o=r(3885),a=r(12242),s=r(45852),u=r(14134),c=r(16207),l=r(63564),f=r(80120),p=r(9927),h=r(56408),d=u.isBrowser("IE"),v=!1,g=!1,y=null;var m={onCompositionStart:function(t){g=!0,function(t){y||(y=new n(l(t))).start()}(t)},onCompositionEnd:function(t){v=!1,g=!1,setTimeout((function(){v||m.resolveComposition(t)}),20)},onSelect:c,onKeyDown:function(t,e){if(!g)return m.resolveComposition(t),void t._onKeyDown(e);e.which!==s.RIGHT&&e.which!==s.LEFT||e.preventDefault()},onKeyPress:function(t,e){e.which===s.RETURN&&e.preventDefault()},resolveComposition:function(t){if(!g){var e=h(y).stopAndFlushMutations();y=null,v=!0;var r=a.set(t._latestEditorState,{inCompositionMode:!1});if(t.exitCurrentMode(),e.size){var n=r.getCurrentContent();e.forEach((function(t,e){var s=o.decode(e),u=s.blockKey,c=s.decoratorKey,l=s.leafKey,f=r.getBlockTree(u).getIn([c,"leaves",l]),h=f.start,d=f.end,v=r.getSelection().merge({anchorKey:u,focusKey:u,anchorOffset:h,focusOffset:d,isBackward:!1}),g=p(n,v),y=n.getBlockForKey(u).getInlineStyleAt(h);n=i.replaceText(n,v,t,y,g),r=a.set(r,{currentContent:n})}));var s=f(r,l(t)).selectionState;t.restoreEditorDOM();var u=d?a.forceSelection(r,s):a.acceptSelection(r,s);t.update(a.push(u,n,"insert-characters"))}else t.update(r)}}};t.exports=m},13387:(t,e,r)=>{"use strict";var n=r(96540),i=r(98003),o=(0,r(77337).Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:n.createElement("ul",{className:i("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:n.createElement("ol",{className:i("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:n.createElement("pre",{className:i("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});t.exports=o},13925:(t,e,r)=>{"use strict";var n=r(20034);t.exports=function(t){return n(t)||null===t}},13998:t=>{"use strict";var e=/([A-Z])/g;t.exports=function(t){return t.replace(e,"-$1").toLowerCase()}},14134:(t,e,r)=>{"use strict";var n=r(94534),i=r(50953),o=r(83731),a=r(94793);function s(t,e,r,n){if(t===r)return!0;if(!r.startsWith(t))return!1;var o=r.slice(t.length);return!!e&&(o=n?n(o):o,i.contains(o,e))}function u(t){return"Windows"===n.platformName?t.replace(/^\s*NT/,""):t}var c={isBrowser:function(t){return s(n.browserName,n.browserFullVersion,t)},isBrowserArchitecture:function(t){return s(n.browserArchitecture,null,t)},isDevice:function(t){return s(n.deviceName,null,t)},isEngine:function(t){return s(n.engineName,n.engineVersion,t)},isPlatform:function(t){return s(n.platformName,n.platformFullVersion,t,u)},isPlatformArchitecture:function(t){return s(n.platformArchitecture,null,t)}};t.exports=o(c,a)},14245:(t,e,r)=>{"use strict";r.d(e,{Map:()=>Ce});var n="delete",i=32,o=31,a={};function SetRef(t){t&&(t.value=!0)}function OwnerID(){}function s(t){return void 0===t.size&&(t.size=t.__iterate(c)),t.size}function u(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return e<0?s(t)+e:e}function c(){return!0}function l(t,e,r){return(0===t&&!d(t)||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function f(t,e){return h(t,e,0)}function p(t,e){return h(t,e,e)}function h(t,e,r){return void 0===t?r:d(t)?e===1/0?e:0|Math.max(0,e+t):void 0===e||e===t?t:0|Math.min(e,t)}function d(t){return t<0||0===t&&1/t==-1/0}var v="@@__IMMUTABLE_ITERABLE__@@";function g(t){return Boolean(t&&t[v])}var y="@@__IMMUTABLE_KEYED__@@";function m(t){return Boolean(t&&t[y])}var _="@@__IMMUTABLE_INDEXED__@@";function b(t){return Boolean(t&&t[_])}function S(t){return m(t)||b(t)}var w=function Collection(t){return g(t)?t:H(t)},x=function(t){function KeyedCollection(t){return m(t)?t:W(t)}return t&&(KeyedCollection.__proto__=t),KeyedCollection.prototype=Object.create(t&&t.prototype),KeyedCollection.prototype.constructor=KeyedCollection,KeyedCollection}(w),E=function(t){function IndexedCollection(t){return b(t)?t:V(t)}return t&&(IndexedCollection.__proto__=t),IndexedCollection.prototype=Object.create(t&&t.prototype),IndexedCollection.prototype.constructor=IndexedCollection,IndexedCollection}(w),M=function(t){function SetCollection(t){return g(t)&&!S(t)?t:X(t)}return t&&(SetCollection.__proto__=t),SetCollection.prototype=Object.create(t&&t.prototype),SetCollection.prototype.constructor=SetCollection,SetCollection}(w);w.Keyed=x,w.Indexed=E,w.Set=M;var O="@@__IMMUTABLE_SEQ__@@";function k(t){return Boolean(t&&t[O])}var C="@@__IMMUTABLE_RECORD__@@";function D(t){return Boolean(t&&t[C])}function I(t){return g(t)||D(t)}var A="@@__IMMUTABLE_ORDERED__@@";function R(t){return Boolean(t&&t[A])}var T="function"==typeof Symbol&&Symbol.iterator,z="@@iterator",B=T||z,q=function Iterator(t){this.next=t};function P(t,e,r,n){var i=0===t?e:1===t?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function j(){return{value:void 0,done:!0}}function L(t){return!!Array.isArray(t)||!!F(t)}function K(t){return t&&"function"==typeof t.next}function N(t){var e=F(t);return e&&e.call(t)}function F(t){var e=t&&(T&&t[T]||t[z]);if("function"==typeof e)return e}q.prototype.toString=function(){return"[Iterator]"},q.KEYS=0,q.VALUES=1,q.ENTRIES=2,q.prototype.inspect=q.prototype.toSource=function(){return this.toString()},q.prototype[B]=function(){return this};var U=Object.prototype.hasOwnProperty;function G(t){return!(!Array.isArray(t)&&"string"!=typeof t)||t&&"object"==typeof t&&Number.isInteger(t.length)&&t.length>=0&&(0===t.length?1===Object.keys(t).length:t.hasOwnProperty(t.length-1))}var H=function(t){function Seq(t){return null==t?Q():I(t)?t.toSeq():function(t){var e=rt(t);if(e)return(n=F(r=t))&&n===r.entries?e.fromEntrySeq():function(t){var e=F(t);return e&&e===t.keys}(t)?e.toSetSeq():e;var r,n;if("object"==typeof t)return new $(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}(t)}return t&&(Seq.__proto__=t),Seq.prototype=Object.create(t&&t.prototype),Seq.prototype.constructor=Seq,Seq.prototype.toSeq=function(){return this},Seq.prototype.toString=function(){return this.__toString("Seq {","}")},Seq.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Seq.prototype.__iterate=function __iterate(t,e){var r=this._cache;if(r){for(var n=r.length,i=0;i!==n;){var o=r[e?n-++i:i++];if(!1===t(o[1],o[0],this))break}return i}return this.__iterateUncached(t,e)},Seq.prototype.__iterator=function __iterator(t,e){var r=this._cache;if(r){var n=r.length,i=0;return new q((function(){if(i===n)return{value:void 0,done:!0};var o=r[e?n-++i:i++];return P(t,o[0],o[1])}))}return this.__iteratorUncached(t,e)},Seq}(w),W=function(t){function KeyedSeq(t){return null==t?Q().toKeyedSeq():g(t)?m(t)?t.toSeq():t.fromEntrySeq():D(t)?t.toSeq():tt(t)}return t&&(KeyedSeq.__proto__=t),KeyedSeq.prototype=Object.create(t&&t.prototype),KeyedSeq.prototype.constructor=KeyedSeq,KeyedSeq.prototype.toKeyedSeq=function(){return this},KeyedSeq}(H),V=function(t){function IndexedSeq(t){return null==t?Q():g(t)?m(t)?t.entrySeq():t.toIndexedSeq():D(t)?t.toSeq().entrySeq():et(t)}return t&&(IndexedSeq.__proto__=t),IndexedSeq.prototype=Object.create(t&&t.prototype),IndexedSeq.prototype.constructor=IndexedSeq,IndexedSeq.of=function(){return IndexedSeq(arguments)},IndexedSeq.prototype.toIndexedSeq=function(){return this},IndexedSeq.prototype.toString=function(){return this.__toString("Seq [","]")},IndexedSeq}(H),X=function(t){function SetSeq(t){return(g(t)&&!S(t)?t:V(t)).toSetSeq()}return t&&(SetSeq.__proto__=t),SetSeq.prototype=Object.create(t&&t.prototype),SetSeq.prototype.constructor=SetSeq,SetSeq.of=function(){return SetSeq(arguments)},SetSeq.prototype.toSetSeq=function(){return this},SetSeq}(H);H.isSeq=k,H.Keyed=W,H.Set=X,H.Indexed=V,H.prototype[O]=!0;var Y=function(t){function ArraySeq(t){this._array=t,this.size=t.length}return t&&(ArraySeq.__proto__=t),ArraySeq.prototype=Object.create(t&&t.prototype),ArraySeq.prototype.constructor=ArraySeq,ArraySeq.prototype.get=function(t,e){return this.has(t)?this._array[u(this,t)]:e},ArraySeq.prototype.__iterate=function __iterate(t,e){for(var r=this._array,n=r.length,i=0;i!==n;){var o=e?n-++i:i++;if(!1===t(r[o],o,this))break}return i},ArraySeq.prototype.__iterator=function __iterator(t,e){var r=this._array,n=r.length,i=0;return new q((function(){if(i===n)return{value:void 0,done:!0};var o=e?n-++i:i++;return P(t,o,r[o])}))},ArraySeq}(V),$=function(t){function ObjectSeq(t){var e=Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]);this._object=t,this._keys=e,this.size=e.length}return t&&(ObjectSeq.__proto__=t),ObjectSeq.prototype=Object.create(t&&t.prototype),ObjectSeq.prototype.constructor=ObjectSeq,ObjectSeq.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},ObjectSeq.prototype.has=function(t){return U.call(this._object,t)},ObjectSeq.prototype.__iterate=function __iterate(t,e){for(var r=this._object,n=this._keys,i=n.length,o=0;o!==i;){var a=n[e?i-++o:o++];if(!1===t(r[a],a,this))break}return o},ObjectSeq.prototype.__iterator=function __iterator(t,e){var r=this._object,n=this._keys,i=n.length,o=0;return new q((function(){if(o===i)return{value:void 0,done:!0};var a=n[e?i-++o:o++];return P(t,a,r[a])}))},ObjectSeq}(W);$.prototype[A]=!0;var J,Z=function(t){function CollectionSeq(t){this._collection=t,this.size=t.length||t.size}return t&&(CollectionSeq.__proto__=t),CollectionSeq.prototype=Object.create(t&&t.prototype),CollectionSeq.prototype.constructor=CollectionSeq,CollectionSeq.prototype.__iterateUncached=function __iterateUncached(t,e){if(e)return this.cacheResult().__iterate(t,e);var r=N(this._collection),n=0;if(K(r))for(var i;!(i=r.next()).done&&!1!==t(i.value,n++,this););return n},CollectionSeq.prototype.__iteratorUncached=function __iteratorUncached(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=N(this._collection);if(!K(r))return new q(j);var n=0;return new q((function(){var e=r.next();return e.done?e:P(t,n++,e.value)}))},CollectionSeq}(V);function Q(){return J||(J=new Y([]))}function tt(t){var e=rt(t);if(e)return e.fromEntrySeq();if("object"==typeof t)return new $(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function et(t){var e=rt(t);if(e)return e;throw new TypeError("Expected Array or collection object of values: "+t)}function rt(t){return G(t)?new Y(t):L(t)?new Z(t):void 0}var nt="@@__IMMUTABLE_MAP__@@";function it(t){return Boolean(t&&t[nt])}function ot(t){return it(t)&&R(t)}function at(t){return Boolean(t&&"function"==typeof t.equals&&"function"==typeof t.hashCode)}function st(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!!(at(t)&&at(e)&&t.equals(e))}var ut="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var r=65535&(t|=0),n=65535&(e|=0);return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0};function ct(t){return t>>>1&1073741824|3221225471&t}var lt=Object.prototype.valueOf;function ft(t){if(null==t)return pt(t);if("function"==typeof t.hashCode)return ct(t.hashCode(t));var e,r=(e=t).valueOf!==lt&&"function"==typeof e.valueOf?e.valueOf(e):e;if(null==r)return pt(r);switch(typeof r){case"boolean":return r?1108378657:1108378656;case"number":return function(t){if(t!=t||t===1/0)return 0;var e=0|t;e!==t&&(e^=4294967295*t);for(;t>4294967295;)e^=t/=4294967295;return ct(e)}(r);case"string":return r.length>wt?function(t){var e=Mt[t];void 0===e&&(e=ht(t),Et===xt&&(Et=0,Mt={}),Et++,Mt[t]=e);return e}(r):ht(r);case"object":case"function":return function(t){var e;if(mt&&void 0!==(e=yt.get(t)))return e;if(e=t[St],void 0!==e)return e;if(!vt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[St]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=gt(),mt)yt.set(t,e);else{if(void 0!==dt&&!1===dt(t))throw new Error("Non-extensible objects are not allowed as keys.");if(vt)Object.defineProperty(t,St,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[St]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[St]=e}}return e}(r);case"symbol":return function(t){var e=_t[t];if(void 0!==e)return e;return e=gt(),_t[t]=e,e}(r);default:if("function"==typeof r.toString)return ht(r.toString());throw new Error("Value type "+typeof r+" cannot be hashed.")}}function pt(t){return null===t?1108378658:1108378659}function ht(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return ct(e)}var dt=Object.isExtensible,vt=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();function gt(){var t=++bt;return 1073741824&bt&&(bt=0),t}var yt,mt="function"==typeof WeakMap;mt&&(yt=new WeakMap);var _t=Object.create(null),bt=0,St="__immutablehash__";"function"==typeof Symbol&&(St=Symbol(St));var wt=16,xt=255,Et=0,Mt={},Ot=function(t){function ToKeyedSequence(t,e){this._iter=t,this._useKeys=e,this.size=t.size}return t&&(ToKeyedSequence.__proto__=t),ToKeyedSequence.prototype=Object.create(t&&t.prototype),ToKeyedSequence.prototype.constructor=ToKeyedSequence,ToKeyedSequence.prototype.get=function(t,e){return this._iter.get(t,e)},ToKeyedSequence.prototype.has=function(t){return this._iter.has(t)},ToKeyedSequence.prototype.valueSeq=function(){return this._iter.valueSeq()},ToKeyedSequence.prototype.reverse=function(){var t=this,e=Rt(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},ToKeyedSequence.prototype.map=function(t,e){var r=this,n=At(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},ToKeyedSequence.prototype.__iterate=function __iterate(t,e){var r=this;return this._iter.__iterate((function(e,n){return t(e,n,r)}),e)},ToKeyedSequence.prototype.__iterator=function __iterator(t,e){return this._iter.__iterator(t,e)},ToKeyedSequence}(W);Ot.prototype[A]=!0;var kt=function(t){function ToIndexedSequence(t){this._iter=t,this.size=t.size}return t&&(ToIndexedSequence.__proto__=t),ToIndexedSequence.prototype=Object.create(t&&t.prototype),ToIndexedSequence.prototype.constructor=ToIndexedSequence,ToIndexedSequence.prototype.includes=function(t){return this._iter.includes(t)},ToIndexedSequence.prototype.__iterate=function __iterate(t,e){var r=this,n=0;return e&&s(this),this._iter.__iterate((function(i){return t(i,e?r.size-++n:n++,r)}),e)},ToIndexedSequence.prototype.__iterator=function __iterator(t,e){var r=this,n=this._iter.__iterator(1,e),i=0;return e&&s(this),new q((function(){var o=n.next();return o.done?o:P(t,e?r.size-++i:i++,o.value,o)}))},ToIndexedSequence}(V),Ct=function(t){function ToSetSequence(t){this._iter=t,this.size=t.size}return t&&(ToSetSequence.__proto__=t),ToSetSequence.prototype=Object.create(t&&t.prototype),ToSetSequence.prototype.constructor=ToSetSequence,ToSetSequence.prototype.has=function(t){return this._iter.includes(t)},ToSetSequence.prototype.__iterate=function __iterate(t,e){var r=this;return this._iter.__iterate((function(e){return t(e,e,r)}),e)},ToSetSequence.prototype.__iterator=function __iterator(t,e){var r=this._iter.__iterator(1,e);return new q((function(){var e=r.next();return e.done?e:P(t,e.value,e.value,e)}))},ToSetSequence}(X),Dt=function(t){function FromEntriesSequence(t){this._iter=t,this.size=t.size}return t&&(FromEntriesSequence.__proto__=t),FromEntriesSequence.prototype=Object.create(t&&t.prototype),FromEntriesSequence.prototype.constructor=FromEntriesSequence,FromEntriesSequence.prototype.entrySeq=function(){return this._iter.toSeq()},FromEntriesSequence.prototype.__iterate=function __iterate(t,e){var r=this;return this._iter.__iterate((function(e){if(e){Ft(e);var n=g(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}}),e)},FromEntriesSequence.prototype.__iterator=function __iterator(t,e){var r=this._iter.__iterator(1,e);return new q((function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){Ft(n);var i=g(n);return P(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}}))},FromEntriesSequence}(W);function It(t){var e=Gt(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=Ht,e.__iterateUncached=function(e,r){var n=this;return t.__iterate((function(t,r){return!1!==e(r,t,n)}),r)},e.__iteratorUncached=function(e,r){if(2===e){var n=t.__iterator(e,r);return new q((function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t}))}return t.__iterator(1===e?0:1,r)},e}function At(t,e,r){var n=Gt(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,a);return o===a?i:e.call(r,o,n,t)},n.__iterateUncached=function(n,i){var o=this;return t.__iterate((function(t,i,a){return!1!==n(e.call(r,t,i,a),i,o)}),i)},n.__iteratorUncached=function(n,i){var o=t.__iterator(2,i);return new q((function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return P(n,s,e.call(r,a[1],s,t),i)}))},n}function Rt(t,e){var r=this,n=Gt(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=It(t);return e.reverse=function(){return t.flip()},e}),n.get=function(r,n){return t.get(e?r:-1-r,n)},n.has=function(r){return t.has(e?r:-1-r)},n.includes=function(e){return t.includes(e)},n.cacheResult=Ht,n.__iterate=function(r,n){var i=this,o=0;return n&&s(t),t.__iterate((function(t,a){return r(t,e?a:n?i.size-++o:o++,i)}),!n)},n.__iterator=function(n,i){var o=0;i&&s(t);var a=t.__iterator(2,!i);return new q((function(){var t=a.next();if(t.done)return t;var s=t.value;return P(n,e?s[0]:i?r.size-++o:o++,s[1],t)}))},n}function Tt(t,e,r,n){var i=Gt(t);return n&&(i.has=function(n){var i=t.get(n,a);return i!==a&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,a);return o!==a&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return t.__iterate((function(t,o,u){if(e.call(r,t,o,u))return s++,i(t,n?o:s-1,a)}),o),s},i.__iteratorUncached=function(i,o){var a=t.__iterator(2,o),s=0;return new q((function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,c=u[0],l=u[1];if(e.call(r,l,c,t))return P(i,n?c:s++,l,o)}}))},i}function zt(t,e,r,n){var i=t.size;if(l(e,r,i))return t;var o=f(e,i),a=p(r,i);if(o!=o||a!=a)return zt(t.toSeq().cacheResult(),e,r,n);var s,c=a-o;c==c&&(s=c<0?0:c);var h=Gt(t);return h.size=0===s?s:t.size&&s||void 0,!n&&k(t)&&s>=0&&(h.get=function(e,r){return(e=u(this,e))>=0&&e<s?t.get(e+o,r):r}),h.__iterateUncached=function(e,r){var i=this;if(0===s)return 0;if(r)return this.cacheResult().__iterate(e,r);var a=0,u=!0,c=0;return t.__iterate((function(t,r){if(!u||!(u=a++<o))return c++,!1!==e(t,n?r:c-1,i)&&c!==s})),c},h.__iteratorUncached=function(e,r){if(0!==s&&r)return this.cacheResult().__iterator(e,r);if(0===s)return new q(j);var i=t.__iterator(e,r),a=0,u=0;return new q((function(){for(;a++<o;)i.next();if(++u>s)return{value:void 0,done:!0};var t=i.next();return n||1===e||t.done?t:P(e,u-1,0===e?void 0:t.value[1],t)}))},h}function Bt(t,e,r,n){var i=Gt(t);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return t.__iterate((function(t,o,c){if(!s||!(s=e.call(r,t,o,c)))return u++,i(t,n?o:u-1,a)})),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(2,o),u=!0,c=0;return new q((function(){var t,o,l;do{if((t=s.next()).done)return n||1===i?t:P(i,c++,0===i?void 0:t.value[1],t);var f=t.value;o=f[0],l=f[1],u&&(u=e.call(r,l,o,a))}while(u);return 2===i?t:P(i,o,l,t)}))},i}function qt(t,e,r){var n=Gt(t);return n.__iterateUncached=function(i,o){if(o)return this.cacheResult().__iterate(i,o);var a=0,s=!1;return function t(u,c){u.__iterate((function(o,u){return(!e||c<e)&&g(o)?t(o,c+1):(a++,!1===i(o,r?u:a-1,n)&&(s=!0)),!s}),o)}(t,0),a},n.__iteratorUncached=function(n,i){if(i)return this.cacheResult().__iterator(n,i);var o=t.__iterator(n,i),a=[],s=0;return new q((function(){for(;o;){var t=o.next();if(!1===t.done){var u=t.value;if(2===n&&(u=u[1]),e&&!(a.length<e)||!g(u))return r?t:P(n,s++,u,t);a.push(o),o=u.__iterator(n,i)}else o=a.pop()}return{value:void 0,done:!0}}))},n}function Pt(t,e,r){e||(e=Wt);var n=m(t),i=0,o=t.toSeq().map((function(e,n){return[n,e,i++,r?r(e,n,t):e]})).valueSeq().toArray();return o.sort((function(t,r){return e(t[3],r[3])||t[2]-r[2]})).forEach(n?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),n?W(o):b(t)?V(o):X(o)}function jt(t,e,r){if(e||(e=Wt),r){var n=t.toSeq().map((function(e,n){return[e,r(e,n,t)]})).reduce((function(t,r){return Lt(e,t[1],r[1])?r:t}));return n&&n[0]}return t.reduce((function(t,r){return Lt(e,t,r)?r:t}))}function Lt(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(null==r||r!=r)||n>0}function Kt(t,e,r,n){var i=Gt(t),o=new Y(r).map((function(t){return t.size}));return i.size=n?o.max():o.min(),i.__iterate=function(t,e){for(var r,n=this.__iterator(1,e),i=0;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},i.__iteratorUncached=function(t,i){var o=r.map((function(t){return t=w(t),N(i?t.reverse():t)})),a=0,s=!1;return new q((function(){var r;return s||(r=o.map((function(t){return t.next()})),s=n?r.every((function(t){return t.done})):r.some((function(t){return t.done}))),s?{value:void 0,done:!0}:P(t,a++,e.apply(null,r.map((function(t){return t.value}))))}))},i}function Nt(t,e){return t===e?t:k(t)?e:t.constructor(e)}function Ft(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Ut(t){return m(t)?x:b(t)?E:M}function Gt(t){return Object.create((m(t)?W:b(t)?V:X).prototype)}function Ht(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):H.prototype.cacheResult.call(this)}function Wt(t,e){return void 0===t&&void 0===e?0:void 0===t?1:void 0===e?-1:t>e?1:t<e?-1:0}function Vt(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=new Array(r),i=0;i<r;i++)n[i]=t[i+e];return n}function Xt(t,e){if(!t)throw new Error(e)}function Yt(t){Xt(t!==1/0,"Cannot perform this action with an infinite size.")}function $t(t){if(G(t)&&"string"!=typeof t)return t;if(R(t))return t.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+t)}kt.prototype.cacheResult=Ot.prototype.cacheResult=Ct.prototype.cacheResult=Dt.prototype.cacheResult=Ht;var Jt=Object.prototype.toString;function Zt(t){if(!t||"object"!=typeof t||"[object Object]"!==Jt.call(t))return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var r=e,n=Object.getPrototypeOf(e);null!==n;)r=n,n=Object.getPrototypeOf(r);return r===e}function Qt(t){return"object"==typeof t&&(I(t)||Array.isArray(t)||Zt(t))}function te(t){try{return"string"==typeof t?JSON.stringify(t):String(t)}catch(e){return JSON.stringify(t)}}function ee(t,e){return I(t)?t.has(e):Qt(t)&&U.call(t,e)}function re(t,e,r){return I(t)?t.get(e,r):ee(t,e)?"function"==typeof t.get?t.get(e):t[e]:r}function ne(t){if(Array.isArray(t))return Vt(t);var e={};for(var r in t)U.call(t,r)&&(e[r]=t[r]);return e}function ie(t,e){if(!Qt(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(I(t)){if(!t.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+t);return t.remove(e)}if(!U.call(t,e))return t;var r=ne(t);return Array.isArray(r)?r.splice(e,1):delete r[e],r}function oe(t,e,r){if(!Qt(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(I(t)){if(!t.set)throw new TypeError("Cannot update immutable value without .set() method: "+t);return t.set(e,r)}if(U.call(t,e)&&r===t[e])return t;var n=ne(t);return n[e]=r,n}function ae(t,e,r,n){n||(n=r,r=void 0);var i=se(I(t),t,$t(e),0,r,n);return i===a?r:i}function se(t,e,r,n,i,o){var s=e===a;if(n===r.length){var u=s?i:e,c=o(u);return c===u?e:c}if(!s&&!Qt(e))throw new TypeError("Cannot update within non-data-structure value in path ["+r.slice(0,n).map(te)+"]: "+e);var l=r[n],f=s?a:re(e,l,a),p=se(f===a?t:I(f),f,r,n+1,i,o);return p===f?e:p===a?ie(e,l):oe(s?t?Ke():{}:e,l,p)}function ue(t,e,r){return ae(t,e,a,(function(){return r}))}function ce(t,e){return ue(this,t,e)}function le(t,e){return ae(t,e,(function(){return a}))}function fe(t){return le(this,t)}function pe(t,e,r,n){return ae(t,[e],r,n)}function he(t,e,r){return 1===arguments.length?t(this):pe(this,t,e,r)}function de(t,e,r){return ae(this,t,e,r)}function ve(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return ye(this,t)}function ge(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];if("function"!=typeof t)throw new TypeError("Invalid merger function: "+t);return ye(this,e,t)}function ye(t,e,r){for(var n=[],i=0;i<e.length;i++){var o=x(e[i]);0!==o.size&&n.push(o)}return 0===n.length?t:0!==t.toSeq().size||t.__ownerID||1!==n.length?t.withMutations((function(t){for(var e=r?function(e,n){pe(t,n,a,(function(t){return t===a?e:r(t,e,n)}))}:function(e,r){t.set(r,e)},i=0;i<n.length;i++)n[i].forEach(e)})):t.constructor(n[0])}function me(t,e,r){return _e(t,e,function(t){function e(r,n,i){return Qt(r)&&Qt(n)&&(o=n,a=H(r),s=H(o),b(a)===b(s)&&m(a)===m(s))?_e(r,[n],e):t?t(r,n,i):n;var o,a,s}return e}(r))}function _e(t,e,r){if(!Qt(t))throw new TypeError("Cannot merge into non-data-structure value: "+t);if(I(t))return"function"==typeof r&&t.mergeWith?t.mergeWith.apply(t,[r].concat(e)):t.merge?t.merge.apply(t,e):t.concat.apply(t,e);for(var n=Array.isArray(t),i=t,o=n?E:x,a=n?function(e){i===t&&(i=ne(i)),i.push(e)}:function(e,n){var o=U.call(i,n),a=o&&r?r(i[n],e,n):e;o&&a===i[n]||(i===t&&(i=ne(i)),i[n]=a)},s=0;s<e.length;s++)o(e[s]).forEach(a);return i}function be(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return me(this,t)}function Se(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return me(this,e,t)}function we(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return ae(this,t,Ke(),(function(t){return _e(t,e)}))}function xe(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return ae(this,t,Ke(),(function(t){return me(t,e)}))}function Ee(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this}function Me(){return this.__ownerID?this:this.__ensureOwner(new OwnerID)}function Oe(){return this.__ensureOwner()}function ke(){return this.__altered}var Ce=function(t){function Map(e){return null==e?Ke():it(e)&&!R(e)?e:Ke().withMutations((function(r){var n=t(e);Yt(n.size),n.forEach((function(t,e){return r.set(e,t)}))}))}return t&&(Map.__proto__=t),Map.prototype=Object.create(t&&t.prototype),Map.prototype.constructor=Map,Map.of=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Ke().withMutations((function(e){for(var r=0;r<t.length;r+=2){if(r+1>=t.length)throw new Error("Missing value for key: "+t[r]);e.set(t[r],t[r+1])}}))},Map.prototype.toString=function(){return this.__toString("Map {","}")},Map.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},Map.prototype.set=function(t,e){return Ne(this,t,e)},Map.prototype.remove=function(t){return Ne(this,t,a)},Map.prototype.deleteAll=function(t){var e=w(t);return 0===e.size?this:this.withMutations((function(t){e.forEach((function(e){return t.remove(e)}))}))},Map.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ke()},Map.prototype.sort=function(t){return pr(Pt(this,t))},Map.prototype.sortBy=function(t,e){return pr(Pt(this,e,t))},Map.prototype.map=function(t,e){var r=this;return this.withMutations((function(n){n.forEach((function(i,o){n.set(o,t.call(e,i,o,r))}))}))},Map.prototype.__iterator=function __iterator(t,e){return new qe(this,t,e)},Map.prototype.__iterate=function __iterate(t,e){var r=this,n=0;return this._root&&this._root.iterate((function(e){return n++,t(e[1],e[0],r)}),e),n},Map.prototype.__ensureOwner=function __ensureOwner(t){return t===this.__ownerID?this:t?Le(this.size,this._root,t,this.__hash):0===this.size?Ke():(this.__ownerID=t,this.__altered=!1,this)},Map}(x);Ce.isMap=it;var De=Ce.prototype;De[nt]=!0,De[n]=De.remove,De.removeAll=De.deleteAll,De.setIn=ce,De.removeIn=De.deleteIn=fe,De.update=he,De.updateIn=de,De.merge=De.concat=ve,De.mergeWith=ge,De.mergeDeep=be,De.mergeDeepWith=Se,De.mergeIn=we,De.mergeDeepIn=xe,De.withMutations=Ee,De.wasAltered=ke,De.asImmutable=Oe,De["@@transducer/init"]=De.asMutable=Me,De["@@transducer/step"]=function(t,e){return t.set(e[0],e[1])},De["@@transducer/result"]=function(t){return t.asImmutable()};var Ie=function ArrayMapNode(t,e){this.ownerID=t,this.entries=e};Ie.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(st(r,i[o][0]))return i[o][1];return n},Ie.prototype.update=function(t,e,r,n,i,o,s){for(var u=i===a,c=this.entries,l=0,f=c.length;l<f&&!st(n,c[l][0]);l++);var p=l<f;if(p?c[l][1]===i:u)return this;if(SetRef(s),(u||!p)&&SetRef(o),!u||1!==c.length){if(!p&&!u&&c.length>=Ve)return function(t,e,r,n){t||(t=new OwnerID);for(var i=new ze(t,ft(r),[r,n]),o=0;o<e.length;o++){var a=e[o];i=i.update(t,0,void 0,a[0],a[1])}return i}(t,c,n,i);var h=t&&t===this.ownerID,d=h?c:Vt(c);return p?u?l===f-1?d.pop():d[l]=d.pop():d[l]=[n,i]:d.push([n,i]),h?(this.entries=d,this):new Ie(t,d)}};var Ae=function BitmapIndexedNode(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r};Ae.prototype.get=function(t,e,r,n){void 0===e&&(e=ft(r));var i=1<<((0===t?e:e>>>t)&o),a=this.bitmap;return a&i?this.nodes[He(a&i-1)].get(t+5,e,r,n):n},Ae.prototype.update=function(t,e,r,n,s,u,c){void 0===r&&(r=ft(n));var l=(0===e?r:r>>>e)&o,f=1<<l,p=this.bitmap,h=!!(p&f);if(!h&&s===a)return this;var d=He(p&f-1),v=this.nodes,g=h?v[d]:void 0,y=Fe(g,t,e+5,r,n,s,u,c);if(y===g)return this;if(!h&&y&&v.length>=Xe)return function(t,e,r,n,o){for(var a=0,s=new Array(i),u=0;0!==r;u++,r>>>=1)s[u]=1&r?e[a++]:void 0;return s[n]=o,new Re(t,a+1,s)}(t,v,p,l,y);if(h&&!y&&2===v.length&&Ue(v[1^d]))return v[1^d];if(h&&y&&1===v.length&&Ue(y))return y;var m=t&&t===this.ownerID,_=h?y?p:p^f:p|f,b=h?y?We(v,d,y,m):function(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=new Array(n),o=0,a=0;a<n;a++)a===e&&(o=1),i[a]=t[a+o];return i}(v,d,m):function(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=new Array(i),a=0,s=0;s<i;s++)s===e?(o[s]=r,a=-1):o[s]=t[s+a];return o}(v,d,y,m);return m?(this.bitmap=_,this.nodes=b,this):new Ae(t,_,b)};var Re=function HashArrayMapNode(t,e,r){this.ownerID=t,this.count=e,this.nodes=r};Re.prototype.get=function(t,e,r,n){void 0===e&&(e=ft(r));var i=(0===t?e:e>>>t)&o,a=this.nodes[i];return a?a.get(t+5,e,r,n):n},Re.prototype.update=function(t,e,r,n,i,s,u){void 0===r&&(r=ft(n));var c=(0===e?r:r>>>e)&o,l=i===a,f=this.nodes,p=f[c];if(l&&!p)return this;var h=Fe(p,t,e+5,r,n,i,s,u);if(h===p)return this;var d=this.count;if(p){if(!h&&--d<Ye)return function(t,e,r,n){for(var i=0,o=0,a=new Array(r),s=0,u=1,c=e.length;s<c;s++,u<<=1){var l=e[s];void 0!==l&&s!==n&&(i|=u,a[o++]=l)}return new Ae(t,i,a)}(t,f,d,c)}else d++;var v=t&&t===this.ownerID,g=We(f,c,h,v);return v?(this.count=d,this.nodes=g,this):new Re(t,d,g)};var Te=function HashCollisionNode(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r};Te.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(st(r,i[o][0]))return i[o][1];return n},Te.prototype.update=function(t,e,r,n,i,o,s){void 0===r&&(r=ft(n));var u=i===a;if(r!==this.keyHash)return u?this:(SetRef(s),SetRef(o),Ge(this,t,e,r,[n,i]));for(var c=this.entries,l=0,f=c.length;l<f&&!st(n,c[l][0]);l++);var p=l<f;if(p?c[l][1]===i:u)return this;if(SetRef(s),(u||!p)&&SetRef(o),u&&2===f)return new ze(t,this.keyHash,c[1^l]);var h=t&&t===this.ownerID,d=h?c:Vt(c);return p?u?l===f-1?d.pop():d[l]=d.pop():d[l]=[n,i]:d.push([n,i]),h?(this.entries=d,this):new Te(t,this.keyHash,d)};var ze=function ValueNode(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r};ze.prototype.get=function(t,e,r,n){return st(r,this.entry[0])?this.entry[1]:n},ze.prototype.update=function(t,e,r,n,i,o,s){var u=i===a,c=st(n,this.entry[0]);return(c?i===this.entry[1]:u)?this:(SetRef(s),u?void SetRef(o):c?t&&t===this.ownerID?(this.entry[1]=i,this):new ze(t,this.keyHash,[n,i]):(SetRef(o),Ge(this,t,e,ft(n),[n,i])))},Ie.prototype.iterate=Te.prototype.iterate=function(t,e){for(var r=this.entries,n=0,i=r.length-1;n<=i;n++)if(!1===t(r[e?i-n:n]))return!1},Ae.prototype.iterate=Re.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,i=r.length-1;n<=i;n++){var o=r[e?i-n:n];if(o&&!1===o.iterate(t,e))return!1}},ze.prototype.iterate=function(t,e){return t(this.entry)};var Be,qe=function(t){function MapIterator(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&je(t._root)}return t&&(MapIterator.__proto__=t),MapIterator.prototype=Object.create(t&&t.prototype),MapIterator.prototype.constructor=MapIterator,MapIterator.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var r=e.node,n=e.index++,i=void 0;if(r.entry){if(0===n)return Pe(t,r.entry)}else if(r.entries){if(n<=(i=r.entries.length-1))return Pe(t,r.entries[this._reverse?i-n:n])}else if(n<=(i=r.nodes.length-1)){var o=r.nodes[this._reverse?i-n:n];if(o){if(o.entry)return Pe(t,o.entry);e=this._stack=je(o,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}},MapIterator}(q);function Pe(t,e){return P(t,e[0],e[1])}function je(t,e){return{node:t,index:0,__prev:e}}function Le(t,e,r,n){var i=Object.create(De);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Ke(){return Be||(Be=Le(0))}function Ne(t,e,r){var n,i;if(t._root){var o={value:!1},s={value:!1};if(n=Fe(t._root,t.__ownerID,0,void 0,e,r,o,s),!s.value)return t;i=t.size+(o.value?r===a?-1:1:0)}else{if(r===a)return t;i=1,n=new Ie(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?Le(i,n):Ke()}function Fe(t,e,r,n,i,o,s,u){return t?t.update(e,r,n,i,o,s,u):o===a?t:(SetRef(u),SetRef(s),new ze(e,n,[i,o]))}function Ue(t){return t.constructor===ze||t.constructor===Te}function Ge(t,e,r,n,i){if(t.keyHash===n)return new Te(e,n,[t.entry,i]);var a,s=(0===r?t.keyHash:t.keyHash>>>r)&o,u=(0===r?n:n>>>r)&o,c=s===u?[Ge(t,e,r+5,n,i)]:(a=new ze(e,n,i),s<u?[t,a]:[a,t]);return new Ae(e,1<<s|1<<u,c)}function He(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function We(t,e,r,n){var i=n?t:Vt(t);return i[e]=r,i}var Ve=8,Xe=16,Ye=8,$e="@@__IMMUTABLE_LIST__@@";function Je(t){return Boolean(t&&t[$e])}var Ze=function(t){function List(e){var r=or();if(null==e)return r;if(Je(e))return e;var n=t(e),o=n.size;return 0===o?r:(Yt(o),o>0&&o<i?ir(0,o,5,null,new tr(n.toArray())):r.withMutations((function(t){t.setSize(o),n.forEach((function(e,r){return t.set(r,e)}))})))}return t&&(List.__proto__=t),List.prototype=Object.create(t&&t.prototype),List.prototype.constructor=List,List.of=function(){return this(arguments)},List.prototype.toString=function(){return this.__toString("List [","]")},List.prototype.get=function(t,e){if((t=u(this,t))>=0&&t<this.size){var r=ur(this,t+=this._origin);return r&&r.array[t&o]}return e},List.prototype.set=function(t,e){return function(t,e,r){if(e=u(t,e),e!=e)return t;if(e>=t.size||e<0)return t.withMutations((function(t){e<0?cr(t,e).set(0,r):cr(t,0,e+1).set(e,r)}));e+=t._origin;var n=t._tail,i=t._root,o={value:!1};e>=lr(t._capacity)?n=ar(n,t.__ownerID,0,e,r,o):i=ar(i,t.__ownerID,t._level,e,r,o);if(!o.value)return t;if(t.__ownerID)return t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t;return ir(t._origin,t._capacity,t._level,i,n)}(this,t,e)},List.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},List.prototype.insert=function(t,e){return this.splice(t,0,e)},List.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):or()},List.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(r){cr(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])}))},List.prototype.pop=function(){return cr(this,0,-1)},List.prototype.unshift=function(){var t=arguments;return this.withMutations((function(e){cr(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])}))},List.prototype.shift=function(){return cr(this,1)},List.prototype.concat=function(){for(var e=arguments,r=[],n=0;n<arguments.length;n++){var i=e[n],o=t("string"!=typeof i&&L(i)?i:[i]);0!==o.size&&r.push(o)}return 0===r.length?this:0!==this.size||this.__ownerID||1!==r.length?this.withMutations((function(t){r.forEach((function(e){return e.forEach((function(e){return t.push(e)}))}))})):this.constructor(r[0])},List.prototype.setSize=function(t){return cr(this,0,t)},List.prototype.map=function(t,e){var r=this;return this.withMutations((function(n){for(var i=0;i<r.size;i++)n.set(i,t.call(e,n.get(i),i,r))}))},List.prototype.slice=function(t,e){var r=this.size;return l(t,e,r)?this:cr(this,f(t,r),p(e,r))},List.prototype.__iterator=function __iterator(t,e){var r=e?this.size:0,n=nr(this,e);return new q((function(){var i=n();return i===rr?{value:void 0,done:!0}:P(t,e?--r:r++,i)}))},List.prototype.__iterate=function __iterate(t,e){for(var r,n=e?this.size:0,i=nr(this,e);(r=i())!==rr&&!1!==t(r,e?--n:n++,this););return n},List.prototype.__ensureOwner=function __ensureOwner(t){return t===this.__ownerID?this:t?ir(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):0===this.size?or():(this.__ownerID=t,this.__altered=!1,this)},List}(E);Ze.isList=Je;var Qe=Ze.prototype;Qe[$e]=!0,Qe[n]=Qe.remove,Qe.merge=Qe.concat,Qe.setIn=ce,Qe.deleteIn=Qe.removeIn=fe,Qe.update=he,Qe.updateIn=de,Qe.mergeIn=we,Qe.mergeDeepIn=xe,Qe.withMutations=Ee,Qe.wasAltered=ke,Qe.asImmutable=Oe,Qe["@@transducer/init"]=Qe.asMutable=Me,Qe["@@transducer/step"]=function(t,e){return t.push(e)},Qe["@@transducer/result"]=function(t){return t.asImmutable()};var tr=function VNode(t,e){this.array=t,this.ownerID=e};tr.prototype.removeBefore=function(t,e,r){if(r===e?1<<e:0===this.array.length)return this;var n=r>>>e&o;if(n>=this.array.length)return new tr([],t);var i,a=0===n;if(e>0){var s=this.array[n];if((i=s&&s.removeBefore(t,e-5,r))===s&&a)return this}if(a&&!i)return this;var u=sr(this,t);if(!a)for(var c=0;c<n;c++)u.array[c]=void 0;return i&&(u.array[n]=i),u},tr.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e:0)||0===this.array.length)return this;var n,i=r-1>>>e&o;if(i>=this.array.length)return this;if(e>0){var a=this.array[i];if((n=a&&a.removeAfter(t,e-5,r))===a&&i===this.array.length-1)return this}var s=sr(this,t);return s.array.splice(i+1),n&&(s.array[i]=n),s};var er,rr={};function nr(t,e){var r=t._origin,n=t._capacity,o=lr(n),a=t._tail;return s(t._root,t._level,0);function s(t,u,c){return 0===u?function(t,s){var u=s===o?a&&a.array:t&&t.array,c=s>r?0:r-s,l=n-s;l>i&&(l=i);return function(){if(c===l)return rr;var t=e?--l:c++;return u&&u[t]}}(t,c):function(t,o,a){var u,c=t&&t.array,l=a>r?0:r-a>>o,f=1+(n-a>>o);f>i&&(f=i);return function(){for(;;){if(u){var t=u();if(t!==rr)return t;u=null}if(l===f)return rr;var r=e?--f:l++;u=s(c&&c[r],o-5,a+(r<<o))}}}(t,u,c)}}function ir(t,e,r,n,i,o,a){var s=Object.create(Qe);return s.size=e-t,s._origin=t,s._capacity=e,s._level=r,s._root=n,s._tail=i,s.__ownerID=o,s.__hash=a,s.__altered=!1,s}function or(){return er||(er=ir(0,0,5))}function ar(t,e,r,n,i,a){var s,u=n>>>r&o,c=t&&u<t.array.length;if(!c&&void 0===i)return t;if(r>0){var l=t&&t.array[u],f=ar(l,e,r-5,n,i,a);return f===l?t:((s=sr(t,e)).array[u]=f,s)}return c&&t.array[u]===i?t:(a&&SetRef(a),s=sr(t,e),void 0===i&&u===s.array.length-1?s.array.pop():s.array[u]=i,s)}function sr(t,e){return e&&t&&e===t.ownerID?t:new tr(t?t.array.slice():[],e)}function ur(t,e){if(e>=lr(t._capacity))return t._tail;if(e<1<<t._level+5){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&o],n-=5;return r}}function cr(t,e,r){void 0!==e&&(e|=0),void 0!==r&&(r|=0);var n=t.__ownerID||new OwnerID,i=t._origin,a=t._capacity,s=i+e,u=void 0===r?a:r<0?a+r:i+r;if(s===i&&u===a)return t;if(s>=u)return t.clear();for(var c=t._level,l=t._root,f=0;s+f<0;)l=new tr(l&&l.array.length?[void 0,l]:[],n),f+=1<<(c+=5);f&&(s+=f,i+=f,u+=f,a+=f);for(var p=lr(a),h=lr(u);h>=1<<c+5;)l=new tr(l&&l.array.length?[l]:[],n),c+=5;var d=t._tail,v=h<p?ur(t,u-1):h>p?new tr([],n):d;if(d&&h>p&&s<a&&d.array.length){for(var g=l=sr(l,n),y=c;y>5;y-=5){var m=p>>>y&o;g=g.array[m]=sr(g.array[m],n)}g.array[p>>>5&o]=d}if(u<a&&(v=v&&v.removeAfter(n,0,u)),s>=h)s-=h,u-=h,c=5,l=null,v=v&&v.removeBefore(n,0,s);else if(s>i||h<p){for(f=0;l;){var _=s>>>c&o;if(_!==h>>>c&o)break;_&&(f+=(1<<c)*_),c-=5,l=l.array[_]}l&&s>i&&(l=l.removeBefore(n,c,s-f)),l&&h<p&&(l=l.removeAfter(n,c,h-f)),f&&(s-=f,u-=f)}return t.__ownerID?(t.size=u-s,t._origin=s,t._capacity=u,t._level=c,t._root=l,t._tail=v,t.__hash=void 0,t.__altered=!0,t):ir(s,u,c,l,v)}function lr(t){return t<i?0:t-1>>>5<<5}var fr,pr=function(t){function OrderedMap(t){return null==t?dr():ot(t)?t:dr().withMutations((function(e){var r=x(t);Yt(r.size),r.forEach((function(t,r){return e.set(r,t)}))}))}return t&&(OrderedMap.__proto__=t),OrderedMap.prototype=Object.create(t&&t.prototype),OrderedMap.prototype.constructor=OrderedMap,OrderedMap.of=function(){return this(arguments)},OrderedMap.prototype.toString=function(){return this.__toString("OrderedMap {","}")},OrderedMap.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},OrderedMap.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):dr()},OrderedMap.prototype.set=function(t,e){return vr(this,t,e)},OrderedMap.prototype.remove=function(t){return vr(this,t,a)},OrderedMap.prototype.__iterate=function __iterate(t,e){var r=this;return this._list.__iterate((function(e){return e&&t(e[1],e[0],r)}),e)},OrderedMap.prototype.__iterator=function __iterator(t,e){return this._list.fromEntrySeq().__iterator(t,e)},OrderedMap.prototype.__ensureOwner=function __ensureOwner(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?hr(e,r,t,this.__hash):0===this.size?dr():(this.__ownerID=t,this.__altered=!1,this._map=e,this._list=r,this)},OrderedMap}(Ce);function hr(t,e,r,n){var i=Object.create(pr.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function dr(){return fr||(fr=hr(Ke(),or()))}function vr(t,e,r){var n,o,s=t._map,u=t._list,c=s.get(e),l=void 0!==c;if(r===a){if(!l)return t;u.size>=i&&u.size>=2*s.size?(n=(o=u.filter((function(t,e){return void 0!==t&&c!==e}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(n.__ownerID=o.__ownerID=t.__ownerID)):(n=s.remove(e),o=c===u.size-1?u.pop():u.set(c,void 0))}else if(l){if(r===u.get(c)[1])return t;n=s,o=u.set(c,[e,r])}else n=s.set(e,u.size),o=u.set(u.size,[e,r]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=o,t.__hash=void 0,t.__altered=!0,t):hr(n,o)}pr.isOrderedMap=ot,pr.prototype[A]=!0,pr.prototype[n]=pr.prototype.remove;var gr="@@__IMMUTABLE_STACK__@@";function yr(t){return Boolean(t&&t[gr])}var mr=function(t){function Stack(t){return null==t?wr():yr(t)?t:wr().pushAll(t)}return t&&(Stack.__proto__=t),Stack.prototype=Object.create(t&&t.prototype),Stack.prototype.constructor=Stack,Stack.of=function(){return this(arguments)},Stack.prototype.toString=function(){return this.__toString("Stack [","]")},Stack.prototype.get=function(t,e){var r=this._head;for(t=u(this,t);r&&t--;)r=r.next;return r?r.value:e},Stack.prototype.peek=function(){return this._head&&this._head.value},Stack.prototype.push=function(){var t=arguments;if(0===arguments.length)return this;for(var e=this.size+arguments.length,r=this._head,n=arguments.length-1;n>=0;n--)r={value:t[n],next:r};return this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):Sr(e,r)},Stack.prototype.pushAll=function(e){if(0===(e=t(e)).size)return this;if(0===this.size&&yr(e))return e;Yt(e.size);var r=this.size,n=this._head;return e.__iterate((function(t){r++,n={value:t,next:n}}),!0),this.__ownerID?(this.size=r,this._head=n,this.__hash=void 0,this.__altered=!0,this):Sr(r,n)},Stack.prototype.pop=function(){return this.slice(1)},Stack.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):wr()},Stack.prototype.slice=function(e,r){if(l(e,r,this.size))return this;var n=f(e,this.size);if(p(r,this.size)!==this.size)return t.prototype.slice.call(this,e,r);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Sr(i,o)},Stack.prototype.__ensureOwner=function __ensureOwner(t){return t===this.__ownerID?this:t?Sr(this.size,this._head,t,this.__hash):0===this.size?wr():(this.__ownerID=t,this.__altered=!1,this)},Stack.prototype.__iterate=function __iterate(t,e){var r=this;if(e)return new Y(this.toArray()).__iterate((function(e,n){return t(e,n,r)}),e);for(var n=0,i=this._head;i&&!1!==t(i.value,n++,this);)i=i.next;return n},Stack.prototype.__iterator=function __iterator(t,e){if(e)return new Y(this.toArray()).__iterator(t,e);var r=0,n=this._head;return new q((function(){if(n){var e=n.value;return n=n.next,P(t,r++,e)}return{value:void 0,done:!0}}))},Stack}(E);mr.isStack=yr;var _r,br=mr.prototype;function Sr(t,e,r,n){var i=Object.create(br);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function wr(){return _r||(_r=Sr(0))}br[gr]=!0,br.shift=br.pop,br.unshift=br.push,br.unshiftAll=br.pushAll,br.withMutations=Ee,br.wasAltered=ke,br.asImmutable=Oe,br["@@transducer/init"]=br.asMutable=Me,br["@@transducer/step"]=function(t,e){return t.unshift(e)},br["@@transducer/result"]=function(t){return t.asImmutable()};var xr="@@__IMMUTABLE_SET__@@";function Er(t){return Boolean(t&&t[xr])}function Mr(t){return Er(t)&&R(t)}function Or(t,e){if(t===e)return!0;if(!g(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||m(t)!==m(e)||b(t)!==b(e)||R(t)!==R(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!S(t);if(R(t)){var n=t.entries();return e.every((function(t,e){var i=n.next().value;return i&&st(i[1],t)&&(r||st(i[0],e))}))&&n.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var o=t;t=e,e=o}var s=!0,u=e.__iterate((function(e,n){if(r?!t.has(e):i?!st(e,t.get(n,a)):!st(t.get(n,a),e))return s=!1,!1}));return s&&t.size===u}function kr(t,e){var r=function(r){t.prototype[r]=e[r]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}function Cr(t){if(!t||"object"!=typeof t)return t;if(!g(t)){if(!Qt(t))return t;t=H(t)}if(m(t)){var e={};return t.__iterate((function(t,r){e[r]=Cr(t)})),e}var r=[];return t.__iterate((function(t){r.push(Cr(t))})),r}var Dr=function(t){function Set(e){return null==e?zr():Er(e)&&!R(e)?e:zr().withMutations((function(r){var n=t(e);Yt(n.size),n.forEach((function(t){return r.add(t)}))}))}return t&&(Set.__proto__=t),Set.prototype=Object.create(t&&t.prototype),Set.prototype.constructor=Set,Set.of=function(){return this(arguments)},Set.fromKeys=function(t){return this(x(t).keySeq())},Set.intersect=function(t){return(t=w(t).toArray()).length?Ar.intersect.apply(Set(t.pop()),t):zr()},Set.union=function(t){return(t=w(t).toArray()).length?Ar.union.apply(Set(t.pop()),t):zr()},Set.prototype.toString=function(){return this.__toString("Set {","}")},Set.prototype.has=function(t){return this._map.has(t)},Set.prototype.add=function(t){return Rr(this,this._map.set(t,t))},Set.prototype.remove=function(t){return Rr(this,this._map.remove(t))},Set.prototype.clear=function(){return Rr(this,this._map.clear())},Set.prototype.map=function(t,e){var r=this,n=!1,i=Rr(this,this._map.mapEntries((function(i){var o=i[1],a=t.call(e,o,o,r);return a!==o&&(n=!0),[a,a]}),e));return n?i:this},Set.prototype.union=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return 0===(e=e.filter((function(t){return 0!==t.size}))).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations((function(r){for(var n=0;n<e.length;n++)"string"==typeof e[n]?r.add(e[n]):t(e[n]).forEach((function(t){return r.add(t)}))})):this.constructor(e[0])},Set.prototype.intersect=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];if(0===e.length)return this;e=e.map((function(e){return t(e)}));var n=[];return this.forEach((function(t){e.every((function(e){return e.includes(t)}))||n.push(t)})),this.withMutations((function(t){n.forEach((function(e){t.remove(e)}))}))},Set.prototype.subtract=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];if(0===e.length)return this;e=e.map((function(e){return t(e)}));var n=[];return this.forEach((function(t){e.some((function(e){return e.includes(t)}))&&n.push(t)})),this.withMutations((function(t){n.forEach((function(e){t.remove(e)}))}))},Set.prototype.sort=function(t){return Qr(Pt(this,t))},Set.prototype.sortBy=function(t,e){return Qr(Pt(this,e,t))},Set.prototype.wasAltered=function(){return this._map.wasAltered()},Set.prototype.__iterate=function __iterate(t,e){var r=this;return this._map.__iterate((function(e){return t(e,e,r)}),e)},Set.prototype.__iterator=function __iterator(t,e){return this._map.__iterator(t,e)},Set.prototype.__ensureOwner=function __ensureOwner(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):0===this.size?this.__empty():(this.__ownerID=t,this._map=e,this)},Set}(M);Dr.isSet=Er;var Ir,Ar=Dr.prototype;function Rr(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function Tr(t,e){var r=Object.create(Ar);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function zr(){return Ir||(Ir=Tr(Ke()))}Ar[xr]=!0,Ar[n]=Ar.remove,Ar.merge=Ar.concat=Ar.union,Ar.withMutations=Ee,Ar.asImmutable=Oe,Ar["@@transducer/init"]=Ar.asMutable=Me,Ar["@@transducer/step"]=function(t,e){return t.add(e)},Ar["@@transducer/result"]=function(t){return t.asImmutable()},Ar.__empty=zr,Ar.__make=Tr;var Br,qr=function(t){function Range(t,e,r){if(!(this instanceof Range))return new Range(t,e,r);if(Xt(0!==r,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),r=void 0===r?1:Math.abs(r),e<t&&(r=-r),this._start=t,this._end=e,this._step=r,this.size=Math.max(0,Math.ceil((e-t)/r-1)+1),0===this.size){if(Br)return Br;Br=this}}return t&&(Range.__proto__=t),Range.prototype=Object.create(t&&t.prototype),Range.prototype.constructor=Range,Range.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},Range.prototype.get=function(t,e){return this.has(t)?this._start+u(this,t)*this._step:e},Range.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},Range.prototype.slice=function(t,e){return l(t,e,this.size)?this:(t=f(t,this.size),(e=p(e,this.size))<=t?new Range(0,0):new Range(this.get(t,this._end),this.get(e,this._end),this._step))},Range.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var r=e/this._step;if(r>=0&&r<this.size)return r}return-1},Range.prototype.lastIndexOf=function(t){return this.indexOf(t)},Range.prototype.__iterate=function __iterate(t,e){for(var r=this.size,n=this._step,i=e?this._start+(r-1)*n:this._start,o=0;o!==r&&!1!==t(i,e?r-++o:o++,this);)i+=e?-n:n;return o},Range.prototype.__iterator=function __iterator(t,e){var r=this.size,n=this._step,i=e?this._start+(r-1)*n:this._start,o=0;return new q((function(){if(o===r)return{value:void 0,done:!0};var a=i;return i+=e?-n:n,P(t,e?r-++o:o++,a)}))},Range.prototype.equals=function(t){return t instanceof Range?this._start===t._start&&this._end===t._end&&this._step===t._step:Or(this,t)},Range}(V);function Pr(t,e,r){for(var n=$t(e),i=0;i!==n.length;)if((t=re(t,n[i++],a))===a)return r;return t}function jr(t,e){return Pr(this,t,e)}function Lr(t,e){return Pr(t,e,a)!==a}function Kr(){Yt(this.size);var t={};return this.__iterate((function(e,r){t[r]=e})),t}w.isIterable=g,w.isKeyed=m,w.isIndexed=b,w.isAssociative=S,w.isOrdered=R,w.Iterator=q,kr(w,{toArray:function(){Yt(this.size);var t=new Array(this.size||0),e=m(this),r=0;return this.__iterate((function(n,i){t[r++]=e?[i,n]:n})),t},toIndexedSeq:function(){return new kt(this)},toJS:function(){return Cr(this)},toKeyedSeq:function(){return new Ot(this,!0)},toMap:function(){return Ce(this.toKeyedSeq())},toObject:Kr,toOrderedMap:function(){return pr(this.toKeyedSeq())},toOrderedSet:function(){return Qr(m(this)?this.valueSeq():this)},toSet:function(){return Dr(m(this)?this.valueSeq():this)},toSetSeq:function(){return new Ct(this)},toSeq:function(){return b(this)?this.toIndexedSeq():m(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return mr(m(this)?this.valueSeq():this)},toList:function(){return Ze(m(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function __toString(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Nt(this,function(t,e){var r=m(t),n=[t].concat(e).map((function(t){return g(t)?r&&(t=x(t)):t=r?tt(t):et(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===n.length)return t;if(1===n.length){var i=n[0];if(i===t||r&&m(i)||b(t)&&b(i))return i}var o=new Y(n);return r?o=o.toKeyedSeq():b(t)||(o=o.toSetSeq()),(o=o.flatten(!0)).size=n.reduce((function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}}),0),o}(this,t))},includes:function(t){return this.some((function(e){return st(e,t)}))},entries:function(){return this.__iterator(2)},every:function(t,e){Yt(this.size);var r=!0;return this.__iterate((function(n,i,o){if(!t.call(e,n,i,o))return r=!1,!1})),r},filter:function(t,e){return Nt(this,Tt(this,t,e,!0))},partition:function(t,e){return function(t,e,r){var n=m(t),i=[[],[]];t.__iterate((function(o,a){i[e.call(r,o,a,t)?1:0].push(n?[a,o]:o)}));var o=Ut(t);return i.map((function(e){return Nt(t,o(e))}))}(this,t,e)},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},forEach:function(t,e){return Yt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Yt(this.size),t=void 0!==t?""+t:",";var e="",r=!0;return this.__iterate((function(n){r?r=!1:e+=t,e+=null!=n?n.toString():""})),e},keys:function(){return this.__iterator(0)},map:function(t,e){return Nt(this,At(this,t,e))},reduce:function(t,e,r){return Hr(this,t,e,r,arguments.length<2,!1)},reduceRight:function(t,e,r){return Hr(this,t,e,r,arguments.length<2,!0)},reverse:function(){return Nt(this,Rt(this,!0))},slice:function(t,e){return Nt(this,zt(this,t,e,!0))},some:function(t,e){return!this.every(Xr(t),e)},sort:function(t){return Nt(this,Pt(this,t))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(t,e){return s(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,r){var n=Ce().asMutable();return t.__iterate((function(i,o){n.update(e.call(r,i,o,t),0,(function(t){return t+1}))})),n.asImmutable()}(this,t,e)},equals:function(t){return Or(this,t)},entrySeq:function(){var t=this;if(t._cache)return new Y(t._cache);var e=t.toSeq().map(Vr).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Xr(t),e)},findEntry:function(t,e,r){var n=r;return this.__iterate((function(r,i,o){if(t.call(e,r,i,o))return n=[i,r],!1})),n},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},findLastEntry:function(t,e,r){return this.toKeyedSeq().reverse().findEntry(t,e,r)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(t){return this.find(c,null,t)},flatMap:function(t,e){return Nt(this,function(t,e,r){var n=Ut(t);return t.toSeq().map((function(i,o){return n(e.call(r,i,o,t))})).flatten(!0)}(this,t,e))},flatten:function(t){return Nt(this,qt(this,t,!0))},fromEntrySeq:function(){return new Dt(this)},get:function(t,e){return this.find((function(e,r){return st(r,t)}),void 0,e)},getIn:jr,groupBy:function(t,e){return function(t,e,r){var n=m(t),i=(R(t)?pr():Ce()).asMutable();t.__iterate((function(o,a){i.update(e.call(r,o,a,t),(function(t){return(t=t||[]).push(n?[a,o]:o),t}))}));var o=Ut(t);return i.map((function(e){return Nt(t,o(e))})).asImmutable()}(this,t,e)},has:function(t){return this.get(t,a)!==a},hasIn:function(t){return Lr(this,t)},isSubset:function(t){return t="function"==typeof t.includes?t:w(t),this.every((function(e){return t.includes(e)}))},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:w(t)).isSubset(this)},keyOf:function(t){return this.findKey((function(e){return st(e,t)}))},keySeq:function(){return this.toSeq().map(Wr).toIndexedSeq()},last:function(t){return this.toSeq().reverse().first(t)},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return jt(this,t)},maxBy:function(t,e){return jt(this,e,t)},min:function(t){return jt(this,t?Yr(t):Jr)},minBy:function(t,e){return jt(this,e?Yr(e):Jr,t)},rest:function(){return this.slice(1)},skip:function(t){return 0===t?this:this.slice(Math.max(0,t))},skipLast:function(t){return 0===t?this:this.slice(0,-Math.max(0,t))},skipWhile:function(t,e){return Nt(this,Bt(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Xr(t),e)},sortBy:function(t,e){return Nt(this,Pt(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return this.slice(-Math.max(0,t))},takeWhile:function(t,e){return Nt(this,function(t,e,r){var n=Gt(t);return n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var a=0;return t.__iterate((function(t,i,s){return e.call(r,t,i,s)&&++a&&n(t,i,o)})),a},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var a=t.__iterator(2,i),s=!0;return new q((function(){if(!s)return{value:void 0,done:!0};var t=a.next();if(t.done)return t;var i=t.value,u=i[0],c=i[1];return e.call(r,c,u,o)?2===n?t:P(n,u,c,t):(s=!1,{value:void 0,done:!0})}))},n}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Xr(t),e)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=R(t),r=m(t),n=e?1:0;return function(t,e){return e=ut(e,3432918353),e=ut(e<<15|e>>>-15,461845907),e=ut(e<<13|e>>>-13,5),e=e+3864292196^t,e=ut(e^e>>>16,2246822507),e=ut(e^e>>>13,3266489909),e=ct(e^e>>>16),e}(t.__iterate(r?e?function(t,e){n=31*n+Zr(ft(t),ft(e))|0}:function(t,e){n=n+Zr(ft(t),ft(e))|0}:e?function(t){n=31*n+ft(t)|0}:function(t){n=n+ft(t)|0}),n)}(this))}});var Nr=w.prototype;Nr[v]=!0,Nr[B]=Nr.values,Nr.toJSON=Nr.toArray,Nr.__toStringMapper=te,Nr.inspect=Nr.toSource=function(){return this.toString()},Nr.chain=Nr.flatMap,Nr.contains=Nr.includes,kr(x,{flip:function(){return Nt(this,It(this))},mapEntries:function(t,e){var r=this,n=0;return Nt(this,this.toSeq().map((function(i,o){return t.call(e,[o,i],n++,r)})).fromEntrySeq())},mapKeys:function(t,e){var r=this;return Nt(this,this.toSeq().flip().map((function(n,i){return t.call(e,n,i,r)})).flip())}});var Fr=x.prototype;Fr[y]=!0,Fr[B]=Nr.entries,Fr.toJSON=Kr,Fr.__toStringMapper=function(t,e){return te(e)+": "+te(t)},kr(E,{toKeyedSeq:function(){return new Ot(this,!1)},filter:function(t,e){return Nt(this,Tt(this,t,e,!1))},findIndex:function(t,e){var r=this.findEntry(t,e);return r?r[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return Nt(this,Rt(this,!1))},slice:function(t,e){return Nt(this,zt(this,t,e,!1))},splice:function(t,e){var r=arguments.length;if(e=Math.max(e||0,0),0===r||2===r&&!e)return this;t=f(t,t<0?this.count():this.size);var n=this.slice(0,t);return Nt(this,1===r?n:n.concat(Vt(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.findLastEntry(t,e);return r?r[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return Nt(this,qt(this,t,!1))},get:function(t,e){return(t=u(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find((function(e,r){return r===t}),void 0,e)},has:function(t){return(t=u(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return Nt(this,function(t,e){var r=Gt(t);return r.size=t.size&&2*t.size-1,r.__iterateUncached=function(r,n){var i=this,o=0;return t.__iterate((function(t){return(!o||!1!==r(e,o++,i))&&!1!==r(t,o++,i)}),n),o},r.__iteratorUncached=function(r,n){var i,o=t.__iterator(1,n),a=0;return new q((function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?P(r,a++,e):P(r,a++,i.value,i)}))},r}(this,t))},interleave:function(){var t=[this].concat(Vt(arguments)),e=Kt(this.toSeq(),V.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),Nt(this,r)},keySeq:function(){return qr(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,e){return Nt(this,Bt(this,t,e,!1))},zip:function(){return Nt(this,Kt(this,$r,[this].concat(Vt(arguments))))},zipAll:function(){return Nt(this,Kt(this,$r,[this].concat(Vt(arguments)),!0))},zipWith:function(t){var e=Vt(arguments);return e[0]=this,Nt(this,Kt(this,t,e))}});var Ur=E.prototype;Ur[_]=!0,Ur[A]=!0,kr(M,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}});var Gr=M.prototype;function Hr(t,e,r,n,i,o){return Yt(t.size),t.__iterate((function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),o),r}function Wr(t,e){return e}function Vr(t,e){return[e,t]}function Xr(t){return function(){return!t.apply(this,arguments)}}function Yr(t){return function(){return-t.apply(this,arguments)}}function $r(){return Vt(arguments)}function Jr(t,e){return t<e?1:t>e?-1:0}function Zr(t,e){return t^e+2654435769+(t<<6)+(t>>2)}Gr.has=Nr.includes,Gr.contains=Gr.includes,Gr.keys=Gr.values,kr(W,Fr),kr(V,Ur),kr(X,Gr);var Qr=function(t){function OrderedSet(t){return null==t?nn():Mr(t)?t:nn().withMutations((function(e){var r=M(t);Yt(r.size),r.forEach((function(t){return e.add(t)}))}))}return t&&(OrderedSet.__proto__=t),OrderedSet.prototype=Object.create(t&&t.prototype),OrderedSet.prototype.constructor=OrderedSet,OrderedSet.of=function(){return this(arguments)},OrderedSet.fromKeys=function(t){return this(x(t).keySeq())},OrderedSet.prototype.toString=function(){return this.__toString("OrderedSet {","}")},OrderedSet}(Dr);Qr.isOrderedSet=Mr;var tn,en=Qr.prototype;function rn(t,e){var r=Object.create(en);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function nn(){return tn||(tn=rn(dr()))}en[A]=!0,en.zip=Ur.zip,en.zipWith=Ur.zipWith,en.zipAll=Ur.zipAll,en.__empty=nn,en.__make=rn;var on=function Record(t,e){var r;!function(t){if(D(t))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(I(t))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===t||"object"!=typeof t)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(t);var n=function Record(o){var a=this;if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var s=Object.keys(t),u=i._indices={};i._name=e,i._keys=s,i._defaultValues=t;for(var c=0;c<s.length;c++){var l=s[c];u[l]=c,i[l]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+un(this)+' with property "'+l+'" since that property name is part of the Record API.'):ln(i,l)}}return this.__ownerID=void 0,this._values=Ze().withMutations((function(t){t.setSize(a._keys.length),x(o).forEach((function(e,r){t.set(a._indices[r],e===a._defaultValues[r]?void 0:e)}))})),this},i=n.prototype=Object.create(an);return i.constructor=n,e&&(n.displayName=e),n};on.prototype.toString=function(){for(var t,e=un(this)+" { ",r=this._keys,n=0,i=r.length;n!==i;n++)e+=(n?", ":"")+(t=r[n])+": "+te(this.get(t));return e+" }"},on.prototype.equals=function(t){return this===t||D(t)&&cn(this).equals(cn(t))},on.prototype.hashCode=function(){return cn(this).hashCode()},on.prototype.has=function(t){return this._indices.hasOwnProperty(t)},on.prototype.get=function(t,e){if(!this.has(t))return e;var r=this._indices[t],n=this._values.get(r);return void 0===n?this._defaultValues[t]:n},on.prototype.set=function(t,e){if(this.has(t)){var r=this._values.set(this._indices[t],e===this._defaultValues[t]?void 0:e);if(r!==this._values&&!this.__ownerID)return sn(this,r)}return this},on.prototype.remove=function(t){return this.set(t)},on.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:sn(this,t)},on.prototype.wasAltered=function(){return this._values.wasAltered()},on.prototype.toSeq=function(){return cn(this)},on.prototype.toJS=function(){return Cr(this)},on.prototype.entries=function(){return this.__iterator(2)},on.prototype.__iterator=function __iterator(t,e){return cn(this).__iterator(t,e)},on.prototype.__iterate=function __iterate(t,e){return cn(this).__iterate(t,e)},on.prototype.__ensureOwner=function __ensureOwner(t){if(t===this.__ownerID)return this;var e=this._values.__ensureOwner(t);return t?sn(this,e,t):(this.__ownerID=t,this._values=e,this)},on.isRecord=D,on.getDescriptiveName=un;var an=on.prototype;function sn(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._values=e,n.__ownerID=r,n}function un(t){return t.constructor.displayName||t.constructor.name||"Record"}function cn(t){return tt(t._keys.map((function(e){return[e,t.get(e)]})))}function ln(t,e){try{Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){Xt(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}catch(t){}}an[C]=!0,an[n]=an.remove,an.deleteIn=an.removeIn=fe,an.getIn=jr,an.hasIn=Nr.hasIn,an.merge=ve,an.mergeWith=ge,an.mergeIn=we,an.mergeDeep=be,an.mergeDeepWith=Se,an.mergeDeepIn=xe,an.setIn=ce,an.update=he,an.updateIn=de,an.withMutations=Ee,an.asMutable=Me,an.asImmutable=Oe,an[B]=an.entries,an.toJSON=an.toObject=Nr.toObject,an.inspect=an.toSource=function(){return this.toString()}},14594:(t,e,r)=>{"use strict";var n=r(59395);t.exports=n},15169:(t,e,r)=>{"use strict";var n=r(12242);t.exports=function(t){var e=t.getSelection(),r=e.getEndKey(),i=t.getCurrentContent().getBlockForKey(r).getLength();return n.set(t,{selection:e.merge({anchorKey:r,anchorOffset:i,focusKey:r,focusOffset:i,isBackward:!1}),forceSelection:!0})}},15504:t=>{"use strict";t.exports=function(t){var e=(t?t.ownerDocument||t:document).defaultView||window;return!(!t||!("function"==typeof e.Node?t instanceof e.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}},16127:t=>{"use strict";t.exports=function(t,e){t.setMode("drag"),e.preventDefault()}},16193:(t,e,r)=>{"use strict";var n=r(79504),i=Error,o=n("".replace),a=String(new i("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,u=s.test(a);t.exports=function(t,e){if(u&&"string"==typeof t&&!i.prepareStackTrace)for(;e--;)t=o(t,s,"");return t}},16207:(t,e,r)=>{"use strict";var n=r(67204),i=r(12242),o=r(63564),a=r(80120);t.exports=function(t){if(t._blockSelectEvents||t._latestEditorState!==t.props.editorState){if(t._blockSelectEvents){var e=t.props.editorState.getSelection();n.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(e.toJS())})}}else{var r=t.props.editorState,s=a(r,o(t)),u=s.selectionState;u!==r.getSelection()&&(r=s.needsRecovery?i.forceSelection(r,u):i.acceptSelection(r,u),t.update(r))}}},16268:(t,e,r)=>{"use strict";function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(96540),a=r(14134),s=r(90646),u=r(93816),c=a.isBrowser("IE <= 11");var l=function(t){var e,r;function DraftEditorTextNode(e){var r;return i(n(r=t.call(this,e)||this),"_forceFlag",void 0),i(n(r),"_node",void 0),r._forceFlag=!1,r}r=t,(e=DraftEditorTextNode).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var a=DraftEditorTextNode.prototype;return a.shouldComponentUpdate=function(t){var e=this._node,r=""===t.children;u(e)||s(!1);var n=e;return r?!function(t){return c?"\n"===t.textContent:"BR"===t.tagName}(n):n.textContent!==t.children},a.componentDidMount=function(){this._forceFlag=!this._forceFlag},a.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},a.render=function(){var t=this;return""===this.props.children?this._forceFlag?function NEWLINE_A(t){return c?o.createElement("span",{key:"A","data-text":"true",ref:t},"\n"):o.createElement("br",{key:"A","data-text":"true",ref:t})}((function(e){return t._node=e})):function NEWLINE_B(t){return c?o.createElement("span",{key:"B","data-text":"true",ref:t},"\n"):o.createElement("br",{key:"B","data-text":"true",ref:t})}((function(e){return t._node=e})):o.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},DraftEditorTextNode}(o.Component);t.exports=l},16416:(t,e,r)=>{"use strict";var n=r(41952),i=r(77337);t.exports=function(t,e,r){var o=t.getBlockMap(),a=e.getStartKey(),s=e.getStartOffset(),u=e.getEndKey(),c=e.getEndOffset(),l=o.skipUntil((function(t,e){return e===a})).takeUntil((function(t,e){return e===u})).toOrderedMap().merge(i.OrderedMap([[u,o.get(u)]])).map((function(t,e){var i=e===a?s:0,o=e===u?c:t.getLength();return n(t,i,o,r)}));return t.merge({blockMap:o.merge(l),selectionBefore:e,selectionAfter:e})}},17078:(t,e,r)=>{"use strict";var n=r(4909);t.exports=function(t){var e=t.ownerDocument.documentElement;if(!("getBoundingClientRect"in t)||!n(e,t))return{left:0,right:0,top:0,bottom:0};var r=t.getBoundingClientRect();return{left:Math.round(r.left)-e.clientLeft,right:Math.round(r.right)-e.clientLeft,top:Math.round(r.top)-e.clientTop,bottom:Math.round(r.bottom)-e.clientTop}}},17176:(t,e,r)=>{"use strict";r.d(e,{default:()=>s});var n=r(94188),i=r(7767),o=r(70551),a=6e4;function s(t,e){return(0,o.default)(2,arguments),function(t,e){(0,o.default)(2,arguments);var r=(0,n.default)(e);return(0,i.default)(t,r*a)}(t,-(0,n.default)(e))}},17759:t=>{"use strict";t.exports=function(t){var e=t.getSelection(),r=e.getAnchorKey(),n=t.getBlockTree(r),i=e.getStartOffset(),o=!1;return n.some((function(t){return i===t.get("start")?(o=!0,!0):i<t.get("end")&&t.get("leaves").some((function(t){var e=t.get("start");return i===e&&(o=!0,!0)}))})),o}},18058:(t,e,r)=>{"use strict";var n=r(12242),i=r(4909),o=r(69758);t.exports=function(t,e){var r=e.currentTarget.ownerDocument;if(!Boolean(t.props.preserveSelectionOnBlur)&&o(r)===r.body){var a=r.defaultView.getSelection(),s=t.editor;1===a.rangeCount&&i(s,a.anchorNode)&&i(s,a.focusNode)&&a.removeAllRanges()}var u=t._latestEditorState,c=u.getSelection();if(c.getHasFocus()){var l=c.set("hasFocus",!1);t.props.onBlur&&t.props.onBlur(e),t.update(n.acceptSelection(u,l))}}},18227:t=>{"use strict";t.exports=function(t,e,r,n){if(t.size){var i=0;t.reduce((function(t,o,a){return e(t,o)||(r(t)&&n(i,a),i=a),o})),r(t.last())&&n(i,t.count())}}},19127:(t,e,r)=>{"use strict";var n=r(95748),i=r(65224),o=r(77337),a=r(56269),s=r(90646),u=r(53310),c=o.List,l=function(t,e,r,o,a,s){var u=r.first()instanceof i,l=[],f=o.size,p=r.get(a),h=o.first(),d=o.last(),v=d.getLength(),g=d.getKey(),y=u&&(!p.getChildKeys().isEmpty()||!h.getChildKeys().isEmpty());r.forEach((function(t,e){e===a?(y?l.push(t):l.push(function(t,e,r){var n=t.getText(),i=t.getCharacterList(),o=n.slice(0,e),a=i.slice(0,e),s=r.first();return t.merge({text:o+s.getText(),characterList:a.concat(s.getCharacterList()),type:o?t.getType():s.getType(),data:s.getData()})}(t,s,o)),o.slice(y?0:1,f-1).forEach((function(t){return l.push(t)})),l.push(function(t,e,r){var n=t.getText(),i=t.getCharacterList(),o=n.length,a=n.slice(e,o),s=i.slice(e,o),u=r.last();return u.merge({text:u.getText()+a,characterList:u.getCharacterList().concat(s),data:u.getData()})}(t,s,o))):l.push(t)}));var m=n.createFromArray(l);return u&&(m=function(t,e,r,n){return t.withMutations((function(e){var i=r.getKey(),o=n.getKey(),a=r.getNextSiblingKey(),s=r.getParentKey(),u=function(t,e){var r=t.getKey(),n=t,i=[];for(e.get(r)&&i.push(r);n&&n.getNextSiblingKey();){var o=n.getNextSiblingKey();if(!o)break;i.push(o),n=e.get(o)}return i}(n,t),l=u[u.length-1];if(e.get(o)?(e.setIn([i,"nextSibling"],o),e.setIn([o,"prevSibling"],i)):(e.setIn([i,"nextSibling"],n.getNextSiblingKey()),e.setIn([n.getNextSiblingKey(),"prevSibling"],i)),e.setIn([l,"nextSibling"],a),a&&e.setIn([a,"prevSibling"],l),u.forEach((function(t){return e.setIn([t,"parent"],s)})),s){var f=t.get(s).getChildKeys(),p=f.indexOf(i)+1,h=f.toArray();h.splice.apply(h,[p,0].concat(u)),e.setIn([s,"children"],c(h))}}))}(m,0,p,h)),t.merge({blockMap:m,selectionBefore:e,selectionAfter:e.merge({anchorKey:g,anchorOffset:v,focusKey:g,focusOffset:v,isBackward:!1})})};t.exports=function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";e.isCollapsed()||s(!1);var o=t.getBlockMap(),c=u(r),f=e.getStartKey(),p=e.getStartOffset(),h=o.get(f);return h instanceof i&&(h.getChildKeys().isEmpty()||s(!1)),1===c.size?function(t,e,r,n,i,o){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",u=r.get(i),c=u.getText(),l=u.getCharacterList(),f=i,p=o+n.getText().length,h=null;switch(s){case"MERGE_OLD_DATA_TO_NEW_DATA":h=n.getData().merge(u.getData());break;case"REPLACE_WITH_NEW_DATA":h=n.getData()}var d=u.getType();c&&"unstyled"===d&&(d=n.getType());var v=u.merge({text:c.slice(0,o)+n.getText()+c.slice(o),characterList:a(l,n.getCharacterList(),o),type:d,data:h});return t.merge({blockMap:r.set(i,v),selectionBefore:e,selectionAfter:e.merge({anchorKey:f,anchorOffset:p,focusKey:f,focusOffset:p,isBackward:!1})})}(t,e,o,c.first(),f,p,n):l(t,e,o,c,f,p)}},19248:(t,e,r)=>{"use strict";var n=r(14134),i=r(90646),o=n.isBrowser("IE <= 9");t.exports=function(t){var e,r=null;return!o&&document.implementation&&document.implementation.createHTMLDocument&&((e=document.implementation.createHTMLDocument("foo")).documentElement||i(!1),e.documentElement.innerHTML=t,r=e.getElementsByTagName("body")[0]),r}},19677:t=>{"use strict";t.exports=function(t){return t&&t.ownerDocument?t.ownerDocument:document}},19765:(t,e,r)=>{"use strict";r(42791),t.exports=r.g.setImmediate},19981:(t,e,r)=>{"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=r(18227),o=r(679),a=r(77337),s=a.List,u=a.Repeat,c=a.Record,l=function(){return!0},f=c({start:null,end:null}),p=c({start:null,end:null,decoratorKey:null,leaves:null}),h={generate:function(t,e,r){var n=e.getLength();if(!n)return s.of(new p({start:0,end:0,decoratorKey:null,leaves:s.of(new f({start:0,end:0}))}));var o=[],a=r?r.getDecorations(e,t):s(u(null,n)),c=e.getCharacterList();return i(a,v,l,(function(t,e){o.push(new p({start:t,end:e,decoratorKey:a.get(t),leaves:d(c.slice(t,e).toList(),t)}))})),s(o)},fromJS:function(t){var e=t.leaves,r=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,["leaves"]);return new p(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),i.forEach((function(e){n(t,e,r[e])}))}return t}({},r,{leaves:null!=e?s(Array.isArray(e)?e:o(e)).map((function(t){return f(t)})):null}))}};function d(t,e){var r=[],n=t.map((function(t){return t.getStyle()})).toList();return i(n,v,l,(function(t,n){r.push(new f({start:t+e,end:n+e}))})),s(r)}function v(t,e){return t===e}t.exports=h},20070:(t,e,r)=>{"use strict";var n=r(12242);t.exports=function(t){var e=t.getSelection(),r=e.getStartKey();return n.set(t,{selection:e.merge({anchorKey:r,anchorOffset:0,focusKey:r,focusOffset:0,isBackward:!1}),forceSelection:!0})}},20316:(t,e,r)=>{"use strict";var n=r(93816);t.exports=function(t){return!(!t||!t.ownerDocument)&&(n(t)&&"A"===t.nodeName)}},20702:(t,e,r)=>{"use strict";var n=r(50580),i=r(18227),o=function(t,e){return t===e},a=function(t){return!!t},s=[];t.exports=function(t){var e=t.getCharacterList().map((function(t){return t.getStyle()})).toList(),r=e.flatten().toSet().map((function(r){return function(t,e,r){var s=[],u=e.map((function(t){return t.has(r)})).toList();return i(u,o,a,(function(e,i){var o=t.getText();s.push({offset:n.strlen(o.slice(0,e)),length:n.strlen(o.slice(e,i)),style:r})})),s}(t,e,r)}));return Array.prototype.concat.apply(s,r.toJS())}},20781:(t,e,r)=>{"use strict";r.d(e,{Blurhash:()=>O});var n=r(96540),i=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],o=t=>{let e=0;for(let r=0;r<t.length;r++){let n=t[r];e=83*e+i.indexOf(n)}return e},a=t=>{let e=t/255;return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)},s=t=>{let e=Math.max(0,Math.min(1,t));return e<=.0031308?Math.trunc(12.92*e*255+.5):Math.trunc(255*(1.055*Math.pow(e,.4166666666666667)-.055)+.5)},u=(t,e)=>(t=>t<0?-1:1)(t)*Math.pow(Math.abs(t),e),c=class extends Error{constructor(t){super(t),this.name="ValidationError",this.message=t}},l=t=>{if(!t||t.length<6)throw new c("The blurhash string must be at least 6 characters");let e=o(t[0]),r=Math.floor(e/9)+1,n=e%9+1;if(t.length!==4+2*n*r)throw new c(`blurhash length mismatch: length is ${t.length} but it should be ${4+2*n*r}`)},f=t=>{let e=t>>8&255,r=255&t;return[a(t>>16),a(e),a(r)]},p=(t,e)=>{let r=Math.floor(t/361),n=Math.floor(t/19)%19,i=t%19;return[u((r-9)/9,2)*e,u((n-9)/9,2)*e,u((i-9)/9,2)*e]},h=(t,e,r,n)=>{l(t),n|=1;let i=o(t[0]),a=Math.floor(i/9)+1,u=i%9+1,c=(o(t[1])+1)/166,h=new Array(u*a);for(let e=0;e<h.length;e++)if(0===e){let r=o(t.substring(2,6));h[e]=f(r)}else{let r=o(t.substring(4+2*e,6+2*e));h[e]=p(r,c*n)}let d=4*e,v=new Uint8ClampedArray(d*r);for(let t=0;t<r;t++)for(let n=0;n<e;n++){let i=0,o=0,c=0;for(let s=0;s<a;s++)for(let a=0;a<u;a++){let l=Math.cos(Math.PI*n*a/e)*Math.cos(Math.PI*t*s/r),f=h[a+s*u];i+=f[0]*l,o+=f[1]*l,c+=f[2]*l}let l=s(i),f=s(o),p=s(c);v[4*n+0+t*d]=l,v[4*n+1+t*d]=f,v[4*n+2+t*d]=p,v[4*n+3+t*d]=255}return v},d=Object.defineProperty,v=Object.defineProperties,g=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,b=(t,e,r)=>e in t?d(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,S=(t,e)=>{for(var r in e||(e={}))m.call(e,r)&&b(t,r,e[r]);if(y)for(var r of y(e))_.call(e,r)&&b(t,r,e[r]);return t},w=(t,e)=>v(t,g(e)),x=(t,e)=>{var r={};for(var n in t)m.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&y)for(var n of y(t))e.indexOf(n)<0&&_.call(t,n)&&(r[n]=t[n]);return r},E=class extends n.PureComponent{constructor(){super(...arguments),this.canvas=null,this.handleRef=t=>{this.canvas=t,this.draw()},this.draw=()=>{let{hash:t,height:e,punch:r,width:n}=this.props;if(this.canvas){let i=h(t,n,e,r),o=this.canvas.getContext("2d"),a=o.createImageData(n,e);a.data.set(i),o.putImageData(a,0,0)}}}componentDidUpdate(){this.draw()}render(){let t=this.props,{hash:e,height:r,width:i}=t,o=x(t,["hash","height","width"]);return n.createElement("canvas",w(S({},o),{height:r,width:i,ref:this.handleRef}))}};E.defaultProps={height:128,width:128};var M={position:"absolute",top:0,bottom:0,left:0,right:0,width:"100%",height:"100%"},O=class extends n.PureComponent{componentDidUpdate(){if(this.props.resolutionX<=0)throw new Error("resolutionX must be larger than zero");if(this.props.resolutionY<=0)throw new Error("resolutionY must be larger than zero")}render(){let t=this.props,{hash:e,height:r,width:i,punch:o,resolutionX:a,resolutionY:s,style:u}=t,c=x(t,["hash","height","width","punch","resolutionX","resolutionY","style"]);return n.createElement("div",w(S({},c),{style:w(S({display:"inline-block",height:r,width:i},u),{position:"relative"})}),n.createElement(E,{hash:e,height:s,width:a,punch:o,style:M}))}};O.defaultProps={height:128,width:128,resolutionX:32,resolutionY:32}},22784:(t,e,r)=>{"use strict";var n=r(45228);function i(){return i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i.apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){a(t,e,r[e])}))}return t}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s=r(84379),u=r(3885),c=r(96540),l=r(93529),f=r(2935),p=r(78527),h=r(97392),d=r(41401),v=r(77337),g=r(90646),y=r(55291),m=(v.List,function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e}),_=function(t,e){var r=e.get(t.getType())||e.get("unstyled"),n=r.wrapper;return{Element:r.element||e.get("unstyled").element,wrapperTemplate:n}},b=function(t,e){var r=e(t);return r?{CustomComponent:r.component,customProps:r.props,customEditable:r.editable}:{}},S=function(t,e,r,n,i,a){var s={"data-block":!0,"data-editor":e,"data-offset-key":r,key:t.getKey(),ref:a},u=n(t);return u&&(s.className=u),void 0!==i.customEditable&&(s=o({},s,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),s},w=function(t){var e,r;function DraftEditorBlockNode(){for(var e,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return a(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e=t.call.apply(t,[this].concat(n))||this),"wrapperRef",c.createRef()),e}r=t,(e=DraftEditorBlockNode).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var n=DraftEditorBlockNode.prototype;return n.shouldComponentUpdate=function(t){var e=this.props,r=e.block,n=e.direction,i=e.tree,o=!r.getChildKeys().isEmpty(),a=r!==t.block||i!==t.tree||n!==t.direction||m(t.selection,t.block.getKey())&&t.forceSelection;return o||a},n.componentDidMount=function(){var t=this.props.selection,e=t.getEndKey();if(t.getHasFocus()&&e===this.props.block.getKey()){var r=this.wrapperRef.current;if(r){var n,i=f.getScrollParent(r),o=h(i);if(i===window){var a=p(r);(n=a.y+a.height-d().height)>0&&window.scrollTo(o.x,o.y+n+10)}else{y(r)||g(!1);var s=r;(n=s.offsetHeight+s.offsetTop-(i.offsetHeight+o.y))>0&&l.setTop(i,l.getTop(i)+n+10)}}}},n.render=function(){var t=this,e=this.props,r=e.block,n=e.blockRenderMap,a=e.blockRendererFn,l=e.blockStyleFn,f=e.contentState,p=e.decorator,h=e.editorKey,d=e.editorState,v=e.customStyleFn,g=e.customStyleMap,y=e.direction,w=e.forceSelection,x=e.selection,E=e.tree,M=null;r.children.size&&(M=r.children.reduce((function(e,r){var i=u.encode(r,0,0),s=f.getBlockForKey(r),p=b(s,a),v=p.CustomComponent||DraftEditorBlockNode,g=_(s,n),y=g.Element,m=g.wrapperTemplate,w=S(s,h,i,l,p,null),x=o({},t.props,{tree:d.getBlockTree(r),blockProps:p.customProps,offsetKey:i,block:s});return e.push(c.createElement(y,w,c.createElement(v,x))),!m||function(t,e){var r=t.getNextSiblingKey();return!!r&&e.getBlockForKey(r).getType()===t.getType()}(s,f)||function(t,e,r){var n=[],i=!0,o=!1,a=void 0;try{for(var s,l=r.reverse()[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var f=s.value;if(f.type!==e)break;n.push(f)}}catch(t){o=!0,a=t}finally{try{i||null==l.return||l.return()}finally{if(o)throw a}}r.splice(r.indexOf(n[0]),n.length+1);var p=n.reverse(),h=p[0].key;r.push(c.cloneElement(t,{key:"".concat(h,"-wrap"),"data-offset-key":u.encode(h,0,0)},p))}(m,y,e),e}),[]));var O=r.getKey(),k=u.encode(O,0,0),C=b(r,a),D=C.CustomComponent,I=null!=D?c.createElement(D,i({},this.props,{tree:d.getBlockTree(O),blockProps:C.customProps,offsetKey:k,block:r})):c.createElement(s,{block:r,children:M,contentState:f,customStyleFn:v,customStyleMap:g,decorator:p,direction:y,forceSelection:w,hasSelection:m(x,O),selection:x,tree:E});if(r.getParentKey())return I;var A=_(r,n).Element,R=S(r,h,k,l,C,this.wrapperRef);return c.createElement(A,R,I)},DraftEditorBlockNode}(c.Component);t.exports=w},22812:t=>{"use strict";var e=TypeError;t.exports=function(t,r){if(t<r)throw new e("Not enough arguments");return t}},23018:(t,e,r)=>{"use strict";var n=r(77337),i=n.Map,o=n.OrderedSet,a=n.Record,s=o(),u={style:s,entity:null},c=function(t){var e,r;function CharacterMetadata(){return t.apply(this,arguments)||this}r=t,(e=CharacterMetadata).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var n=CharacterMetadata.prototype;return n.getStyle=function(){return this.get("style")},n.getEntity=function(){return this.get("entity")},n.hasStyle=function(t){return this.getStyle().includes(t)},CharacterMetadata.applyStyle=function(t,e){var r=t.set("style",t.getStyle().add(e));return CharacterMetadata.create(r)},CharacterMetadata.removeStyle=function(t,e){var r=t.set("style",t.getStyle().remove(e));return CharacterMetadata.create(r)},CharacterMetadata.applyEntity=function(t,e){var r=t.getEntity()===e?t:t.set("entity",e);return CharacterMetadata.create(r)},CharacterMetadata.create=function(t){if(!t)return l;var e=i({style:s,entity:null}).merge(t),r=f.get(e);if(r)return r;var n=new CharacterMetadata(e);return f=f.set(e,n),n},CharacterMetadata.fromJS=function(t){var e=t.style,r=t.entity;return new CharacterMetadata({style:Array.isArray(e)?o(e):e,entity:Array.isArray(r)?o(r):r})},CharacterMetadata}(a(u)),l=new c,f=i([[i(u),l]]);c.EMPTY=l,t.exports=c},23167:(t,e,r)=>{"use strict";var n=r(94901),i=r(20034),o=r(52967);t.exports=function(t,e,r){var a,s;return o&&n(a=e.constructor)&&a!==r&&i(s=a.prototype)&&s!==r.prototype&&o(t,s),t}},24659:(t,e,r)=>{"use strict";var n=r(79039),i=r(6980);t.exports=!n((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},24712:(t,e,r)=>{"use strict";var n;function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){o(t,e,r[e])}))}return t}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=r(23018),s=r(56840),u=r(65224),c=r(13387),l=r(11608),f=r(25324),p=r(98003),h=r(6991),d=r(19248),v=r(47282),g=r(77337),y=g.List,m=g.Map,_=g.OrderedSet,b=r(20316),S=r(12623),w=r(55291),x=r(7296),E=v("draft_tree_data_support"),M=new RegExp("\r","g"),O=new RegExp("\n","g"),k=new RegExp("^\n","g"),C=new RegExp(" ","g"),D=new RegExp(" ?","g"),I=new RegExp("​?","g"),A=["bold","bolder","500","600","700","800","900"],R=["light","lighter","normal","100","200","300","400"],T=["className","href","rel","target","title"],z=["alt","className","height","src","width"],B=(o(n={},p("public/DraftStyleDefault/depth0"),0),o(n,p("public/DraftStyleDefault/depth1"),1),o(n,p("public/DraftStyleDefault/depth2"),2),o(n,p("public/DraftStyleDefault/depth3"),3),o(n,p("public/DraftStyleDefault/depth4"),4),n),q=m({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),P=function(t){if(w(t)&&t.style.fontFamily.includes("monospace"))return"CODE";return null},j=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(B).some((function(r){t.classList.contains(r)&&(e=B[r])})),e},L=function(t){if(!b(t))return!1;var e=t;if(!e.href||"http:"!==e.protocol&&"https:"!==e.protocol&&"mailto:"!==e.protocol&&"tel:"!==e.protocol)return!1;try{new f(e.href);return!0}catch(t){return!1}},K=function(t){if(!x(t))return!1;var e=t;return!(!e.attributes.getNamedItem("src")||!e.attributes.getNamedItem("src").value)},N=function(t,e){if(!w(t))return e;var r=t,n=r.style.fontWeight,i=r.style.fontStyle,o=r.style.textDecoration;return e.withMutations((function(t){A.indexOf(n)>=0?t.add("BOLD"):R.indexOf(n)>=0&&t.remove("BOLD"),"italic"===i?t.add("ITALIC"):"normal"===i&&t.remove("ITALIC"),"underline"===o&&t.add("UNDERLINE"),"line-through"===o&&t.add("STRIKETHROUGH"),"none"===o&&(t.remove("UNDERLINE"),t.remove("STRIKETHROUGH"))}))},F=function(t){return"ul"===t||"ol"===t},U=function(){function ContentBlocksBuilder(t,e){o(this,"characterList",y()),o(this,"currentBlockType","unstyled"),o(this,"currentDepth",0),o(this,"currentEntity",null),o(this,"currentText",""),o(this,"wrapper",null),o(this,"blockConfigs",[]),o(this,"contentBlocks",[]),o(this,"entityMap",l),o(this,"blockTypeMap",void 0),o(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=t,this.disambiguate=e}var t=ContentBlocksBuilder.prototype;return t.clear=function(){this.characterList=y(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=l,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(t){var e;return this.contentBlocks=[],this.currentDepth=0,(e=this.blockConfigs).push.apply(e,this._toBlockConfigs([t],_())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(E?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=i({key:t.key||h(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:y(),prevSibling:null,nextSibling:null,childConfigs:[]},t);return this.characterList=y(),this.currentBlockType="unstyled",this.currentText="",e},t._toBlockConfigs=function(t,e){for(var r=[],n=0;n<t.length;n++){var i=t[n],o=i.nodeName.toLowerCase();if("body"===o||F(o)){this._trimCurrentText(),""!==this.currentText&&r.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;F(o)&&(this.wrapper=o,F(s)&&this.currentDepth++),r.push.apply(r,this._toBlockConfigs(Array.from(i.childNodes),e)),this.currentDepth=a,this.wrapper=s}else{var u=this.blockTypeMap.get(o);if(void 0===u)if("#text"!==o)if("br"!==o)if(K(i))this._addImgNode(i,e);else if(L(i))this._addAnchorNode(i,r,e);else{var c=e;q.has(o)&&(c=c.add(q.get(o))),c=N(i,c);var l=P(i);null!=l&&(c=c.add(l)),r.push.apply(r,this._toBlockConfigs(Array.from(i.childNodes),c))}else this._addBreakNode(i,e);else this._addTextNode(i,e);else{this._trimCurrentText(),""!==this.currentText&&r.push(this._makeBlockConfig());var f=this.currentDepth,p=this.wrapper;if(this.wrapper="pre"===o?"pre":this.wrapper,"string"!=typeof u&&(u=this.disambiguate(o,this.wrapper)||u[0]||"unstyled"),!E&&w(i)&&("unordered-list-item"===u||"ordered-list-item"===u)){var d=i;this.currentDepth=j(d,this.currentDepth)}var v=h(),g=this._toBlockConfigs(Array.from(i.childNodes),e);this._trimCurrentText(),r.push(this._makeBlockConfig({key:v,childConfigs:g,type:u})),this.currentDepth=f,this.wrapper=p}}}return r},t._appendText=function(t,e){var r;this.currentText+=t;var n=a.create({style:e,entity:this.currentEntity});this.characterList=(r=this.characterList).push.apply(r,Array(t.length).fill(n))},t._trimCurrentText=function(){var t=this.currentText.length,e=t-this.currentText.trimLeft().length,r=this.currentText.trimRight().length,n=this.characterList.findEntry((function(t){return null!==t.getEntity()}));(e=void 0!==n?Math.min(e,n[0]):e)>(r=void 0!==(n=this.characterList.reverse().findEntry((function(t){return null!==t.getEntity()})))?Math.max(r,t-n[0]):r)?(this.currentText="",this.characterList=y()):(this.currentText=this.currentText.slice(e,r),this.characterList=this.characterList.slice(e,r))},t._addTextNode=function(t,e){var r=t.textContent;""===r.trim()&&"pre"!==this.wrapper&&(r=" "),"pre"!==this.wrapper&&(r=(r=r.replace(k,"")).replace(O," ")),this._appendText(r,e)},t._addBreakNode=function(t,e){S(t)&&this._appendText("\n",e)},t._addImgNode=function(t,e){if(x(t)){var r=t,n={};z.forEach((function(t){var e=r.getAttribute(t);e&&(n[t]=e)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",n),v("draftjs_fix_paste_for_img")?"presentation"!==r.getAttribute("role")&&this._appendText("📷",e):this._appendText("📷",e),this.currentEntity=null}},t._addAnchorNode=function(t,e,r){if(b(t)){var n=t,i={};T.forEach((function(t){var e=n.getAttribute(t);e&&(i[t]=e)})),i.url=new f(n.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",i||{}),e.push.apply(e,this._toBlockConfigs(Array.from(t.childNodes),r)),this.currentEntity=null}},t._toContentBlocks=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=t.length-1,n=0;n<=r;n++){var o=t[n];o.parent=e,o.prevSibling=n>0?t[n-1].key:null,o.nextSibling=n<r?t[n+1].key:null,o.children=y(o.childConfigs.map((function(t){return t.key}))),this.contentBlocks.push(new u(i({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(t){var e=this;return y(t).flatMap((function(t){return"unstyled"!==t.type||""!==t.text?[t]:e._hoistContainersInBlockConfigs(t.childConfigs)}))},t._toFlatContentBlocks=function(t){var e=this;this._hoistContainersInBlockConfigs(t).forEach((function(t){var r=e._extractTextFromBlockConfigs(t.childConfigs),n=r.text,o=r.characterList;e.contentBlocks.push(new s(i({},t,{text:t.text+n,characterList:t.characterList.concat(o)})))}))},t._extractTextFromBlockConfigs=function(t){for(var e=t.length-1,r="",n=y(),i=0;i<=e;i++){var o=t[i];r+=o.text,n=n.concat(o.characterList),""!==r&&"unstyled"!==o.type&&(r+="\n",n=n.push(n.last()));var a=this._extractTextFromBlockConfigs(o.childConfigs);r+=a.text,n=n.concat(a.characterList)}return{text:r,characterList:n}},ContentBlocksBuilder}();t.exports=function(t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:d)(t=t.trim().replace(M,"").replace(C," ").replace(D,"").replace(I,""));if(!r)return null;var n=function(t){var e={};return t.mapKeys((function(t,r){var n=[r.element];void 0!==r.aliasedElements&&n.push.apply(n,r.aliasedElements),n.forEach((function(r){void 0===e[r]?e[r]=t:"string"==typeof e[r]?e[r]=[e[r],t]:e[r].push(t)}))})),m(e)}(e);return new U(n,(function(t,e){return"li"===t?"ol"===e?"ordered-list-item":"unordered-list-item":null})).addDOMNode(r).getContentBlocks()}},24809:t=>{"use strict";t.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}},25324:t=>{"use strict";var e=function(){function URI(t){var e,r,n;n=void 0,(r="_uri")in(e=this)?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,this._uri=t}return URI.prototype.toString=function(){return this._uri},URI}();t.exports=e},25377:(t,e,r)=>{"use strict";var n=r(14134),i=r(90646);var o=n.isBrowser("Chrome")?function(t){for(var e=t.cloneRange(),r=[],n=t.endContainer;null!=n;n=n.parentNode){var o=n===t.commonAncestorContainer;o?e.setStart(t.startContainer,t.startOffset):e.setStart(e.endContainer,0);var a,s=Array.from(e.getClientRects());if(r.push(s),o)return r.reverse(),(a=[]).concat.apply(a,r);e.setEndBefore(n)}i(!1)}:function(t){return Array.from(t.getClientRects())};t.exports=o},25935:(t,e,r)=>{"use strict";var n=r(49938),i=r(12242),o=r(30866);t.exports=function(t){var e=t.getSelection();if(!e.isCollapsed())return t;var r=e.getAnchorOffset();if(0===r)return t;var a,s,u=e.getAnchorKey(),c=t.getCurrentContent(),l=c.getBlockForKey(u).getLength();if(l<=1)return t;r===l?(a=e.set("anchorOffset",r-1),s=e):s=(a=e.set("focusOffset",r+1)).set("anchorOffset",r+1);var f=o(c,a),p=n.removeRange(c,a,"backward"),h=p.getSelectionAfter(),d=h.getAnchorOffset()-1,v=h.merge({anchorOffset:d,focusOffset:d}),g=n.replaceWithFragment(p,v,f),y=i.push(t,g,"insert-fragment");return i.acceptSelection(y,s)}},26269:t=>{"use strict";t.exports={}},27431:(t,e)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var t="",e=0;e<arguments.length;e++){var r=arguments[e];r&&(t=a(t,o(r)))}return t}function o(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return i.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var r in t)n.call(t,r)&&t[r]&&(e=a(e,r));return e}function a(t,e){return e?t?t+" "+e:t+e:t}t.exports?(i.default=i,t.exports=i):void 0===(r=function(){return i}.apply(e,[]))||(t.exports=r)}()},29215:(t,e,r)=>{"use strict";var n=r(88372),i=r(74453),o=r(79450),a=r(90646),s=r(93816),u=r(56408);function c(t,e,r){var o=e,c=n(o);(null!=c||t&&(t===o||t.firstChild===o)||a(!1),t===o)&&(o=o.firstChild,s(o)||a(!1),"true"!==(o=o).getAttribute("data-contents")&&a(!1),r>0&&(r=o.childNodes.length));if(0===r){var f=null;if(null!=c)f=c;else{var p=function(t){for(;t.firstChild&&(s(t.firstChild)&&"true"===t.firstChild.getAttribute("data-blocks")||i(t.firstChild));)t=t.firstChild;return t}(o);f=u(i(p))}return{key:f,offset:0}}var h=o.childNodes[r-1],d=null,v=null;if(i(h)){var g=function(t){for(;t.lastChild&&(s(t.lastChild)&&"true"===t.lastChild.getAttribute("data-blocks")||i(t.lastChild));)t=t.lastChild;return t}(h);d=u(i(g)),v=l(g)}else d=u(c),v=l(h);return{key:d,offset:v}}function l(t){var e=t.textContent;return"\n"===e?0:e.length}t.exports=function(t,e,r,i,a,s){var l=r.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(l&&f)return{selectionState:o(t,u(n(r)),i,u(n(a)),s),needsRecovery:!1};var p=null,h=null,d=!0;return l?(p={key:u(n(r)),offset:i},h=c(e,a,s)):f?(h={key:u(n(a)),offset:s},p=c(e,r,i)):(p=c(e,r,i),h=c(e,a,s),r===a&&i===s&&(d=!!r.firstChild&&"BR"!==r.firstChild.nodeName)),{selectionState:o(t,p.key,p.offset,h.key,h.offset),needsRecovery:d}}},30866:(t,e,r)=>{"use strict";var n=r(53310),i=r(86044);t.exports=function(t,e){var r=e.getStartKey(),o=e.getStartOffset(),a=e.getEndKey(),s=e.getEndOffset(),u=i(t,e).getBlockMap(),c=u.keySeq(),l=c.indexOf(r),f=c.indexOf(a)+1;return n(u.slice(l,f).map((function(t,e){var n=t.getText(),i=t.getCharacterList();return r===a?t.merge({text:n.slice(o,s),characterList:i.slice(o,s)}):e===r?t.merge({text:n.slice(o),characterList:i.slice(o)}):e===a?t.merge({text:n.slice(0,s),characterList:i.slice(0,s)}):t})))}},30894:(t,e,r)=>{"use strict";var n=r(64658);t.exports=function(t){var e=t.getSelection();if(!e.rangeCount)return null;var r=e.getRangeAt(0),i=n(r),o=i.top,a=i.right,s=i.bottom,u=i.left;return 0===o&&0===a&&0===s&&0===u?null:i}},31296:(t,e,r)=>{"use strict";var n=r(30866);t.exports=function(t){var e=t.getSelection();return e.isCollapsed()?null:n(t.getCurrentContent(),e)}},31357:(t,e,r)=>{"use strict";r.d(e,{parseToRgb:()=>E,readableColor:()=>G,rgbToColorString:()=>H,rgba:()=>z});var n=r(58168),i=r(9417),o=r(77387),a=r(88593);var s=function(t){function PolishedError(e){var r;return r=t.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+e+" for more information.")||this,(0,i.default)(r)}return(0,o.default)(PolishedError,t),PolishedError}((0,a.default)(Error));function u(t,e){return t.substr(-e.length)===e}var c=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function l(t){return"string"!=typeof t?t:t.match(c)?parseFloat(t):t}var f=function(t){return function(e,r){void 0===r&&(r="16px");var n=e,i=r;if("string"==typeof e){if(!u(e,"px"))throw new s(69,t,e);n=l(e)}if("string"==typeof r){if(!u(r,"px"))throw new s(70,t,r);i=l(r)}if("string"==typeof n)throw new s(71,e,t);if("string"==typeof i)throw new s(72,r,t);return""+n/i+t}};f("em");f("rem");function p(t){return Math.round(255*t)}function h(t,e,r){return p(t)+","+p(e)+","+p(r)}function d(t,e,r,n){if(void 0===n&&(n=h),0===e)return n(r,r,r);var i=(t%360+360)%360/60,o=(1-Math.abs(2*r-1))*e,a=o*(1-Math.abs(i%2-1)),s=0,u=0,c=0;i>=0&&i<1?(s=o,u=a):i>=1&&i<2?(s=a,u=o):i>=2&&i<3?(u=o,c=a):i>=3&&i<4?(u=a,c=o):i>=4&&i<5?(s=a,c=o):i>=5&&i<6&&(s=o,c=a);var l=r-o/2;return n(s+l,u+l,c+l)}var v={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var g=/^#[a-fA-F0-9]{6}$/,y=/^#[a-fA-F0-9]{8}$/,m=/^#[a-fA-F0-9]{3}$/,_=/^#[a-fA-F0-9]{4}$/,b=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,S=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,w=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,x=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function E(t){if("string"!=typeof t)throw new s(3);var e=function(t){if("string"!=typeof t)return t;var e=t.toLowerCase();return v[e]?"#"+v[e]:t}(t);if(e.match(g))return{red:parseInt(""+e[1]+e[2],16),green:parseInt(""+e[3]+e[4],16),blue:parseInt(""+e[5]+e[6],16)};if(e.match(y)){var r=parseFloat((parseInt(""+e[7]+e[8],16)/255).toFixed(2));return{red:parseInt(""+e[1]+e[2],16),green:parseInt(""+e[3]+e[4],16),blue:parseInt(""+e[5]+e[6],16),alpha:r}}if(e.match(m))return{red:parseInt(""+e[1]+e[1],16),green:parseInt(""+e[2]+e[2],16),blue:parseInt(""+e[3]+e[3],16)};if(e.match(_)){var n=parseFloat((parseInt(""+e[4]+e[4],16)/255).toFixed(2));return{red:parseInt(""+e[1]+e[1],16),green:parseInt(""+e[2]+e[2],16),blue:parseInt(""+e[3]+e[3],16),alpha:n}}var i=b.exec(e);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10)};var o=S.exec(e.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var a=w.exec(e);if(a){var u="rgb("+d(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",c=b.exec(u);if(!c)throw new s(4,e,u);return{red:parseInt(""+c[1],10),green:parseInt(""+c[2],10),blue:parseInt(""+c[3],10)}}var l=x.exec(e.substring(0,50));if(l){var f="rgb("+d(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",p=b.exec(f);if(!p)throw new s(4,e,f);return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10),alpha:parseFloat(""+l[4])>1?parseFloat(""+l[4])/100:parseFloat(""+l[4])}}throw new s(5)}function M(t){return function(t){var e,r=t.red/255,n=t.green/255,i=t.blue/255,o=Math.max(r,n,i),a=Math.min(r,n,i),s=(o+a)/2;if(o===a)return void 0!==t.alpha?{hue:0,saturation:0,lightness:s,alpha:t.alpha}:{hue:0,saturation:0,lightness:s};var u=o-a,c=s>.5?u/(2-o-a):u/(o+a);switch(o){case r:e=(n-i)/u+(n<i?6:0);break;case n:e=(i-r)/u+2;break;default:e=(r-n)/u+4}return e*=60,void 0!==t.alpha?{hue:e,saturation:c,lightness:s,alpha:t.alpha}:{hue:e,saturation:c,lightness:s}}(E(t))}var O=function(t){return 7===t.length&&t[1]===t[2]&&t[3]===t[4]&&t[5]===t[6]?"#"+t[1]+t[3]+t[5]:t};function k(t){var e=t.toString(16);return 1===e.length?"0"+e:e}function C(t){return k(Math.round(255*t))}function D(t,e,r){return O("#"+C(t)+C(e)+C(r))}function I(t,e,r){return d(t,e,r,D)}function A(t,e,r){if("number"==typeof t&&"number"==typeof e&&"number"==typeof r)return I(t,e,r);if("object"==typeof t&&void 0===e&&void 0===r)return I(t.hue,t.saturation,t.lightness);throw new s(1)}function R(t,e,r,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof r&&"number"==typeof n)return n>=1?I(t,e,r):"rgba("+d(t,e,r)+","+n+")";if("object"==typeof t&&void 0===e&&void 0===r&&void 0===n)return t.alpha>=1?I(t.hue,t.saturation,t.lightness):"rgba("+d(t.hue,t.saturation,t.lightness)+","+t.alpha+")";throw new s(2)}function T(t,e,r){if("number"==typeof t&&"number"==typeof e&&"number"==typeof r)return O("#"+k(t)+k(e)+k(r));if("object"==typeof t&&void 0===e&&void 0===r)return O("#"+k(t.red)+k(t.green)+k(t.blue));throw new s(6)}function z(t,e,r,n){if("string"==typeof t&&"number"==typeof e){var i=E(t);return"rgba("+i.red+","+i.green+","+i.blue+","+e+")"}if("number"==typeof t&&"number"==typeof e&&"number"==typeof r&&"number"==typeof n)return n>=1?T(t,e,r):"rgba("+t+","+e+","+r+","+n+")";if("object"==typeof t&&void 0===e&&void 0===r&&void 0===n)return t.alpha>=1?T(t.red,t.green,t.blue):"rgba("+t.red+","+t.green+","+t.blue+","+t.alpha+")";throw new s(7)}function B(t){if("object"!=typeof t)throw new s(8);if(function(t){return"number"==typeof t.red&&"number"==typeof t.green&&"number"==typeof t.blue&&"number"==typeof t.alpha}(t))return z(t);if(function(t){return"number"==typeof t.red&&"number"==typeof t.green&&"number"==typeof t.blue&&("number"!=typeof t.alpha||void 0===t.alpha)}(t))return T(t);if(function(t){return"number"==typeof t.hue&&"number"==typeof t.saturation&&"number"==typeof t.lightness&&"number"==typeof t.alpha}(t))return R(t);if(function(t){return"number"==typeof t.hue&&"number"==typeof t.saturation&&"number"==typeof t.lightness&&("number"!=typeof t.alpha||void 0===t.alpha)}(t))return A(t);throw new s(8)}function q(t,e,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=e?t.apply(this,n):q(t,e,n)}}function P(t){return q(t,t.length,[])}P((function(t,e){if("transparent"===e)return e;var r=M(e);return B((0,n.default)({},r,{hue:r.hue+parseFloat(t)}))}));function j(t,e,r){return Math.max(t,Math.min(e,r))}P((function(t,e){if("transparent"===e)return e;var r=M(e);return B((0,n.default)({},r,{lightness:j(0,1,r.lightness-parseFloat(t))}))}));P((function(t,e){if("transparent"===e)return e;var r=M(e);return B((0,n.default)({},r,{saturation:j(0,1,r.saturation-parseFloat(t))}))}));function L(t){if("transparent"===t)return 0;var e=E(t),r=Object.keys(e).map((function(t){var r=e[t]/255;return r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)})),n=r[0],i=r[1],o=r[2];return parseFloat((.2126*n+.7152*i+.0722*o).toFixed(3))}function K(t,e){var r=L(t),n=L(e);return parseFloat((r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)).toFixed(2))}P((function(t,e){if("transparent"===e)return e;var r=M(e);return B((0,n.default)({},r,{lightness:j(0,1,r.lightness+parseFloat(t))}))}));var N=P((function(t,e,r){if("transparent"===e)return r;if("transparent"===r)return e;if(0===t)return r;var i=E(e),o=(0,n.default)({},i,{alpha:"number"==typeof i.alpha?i.alpha:1}),a=E(r),s=(0,n.default)({},a,{alpha:"number"==typeof a.alpha?a.alpha:1}),u=o.alpha-s.alpha,c=2*parseFloat(t)-1,l=((c*u==-1?c:c+u)/(1+c*u)+1)/2,f=1-l;return z({red:Math.floor(o.red*l+s.red*f),green:Math.floor(o.green*l+s.green*f),blue:Math.floor(o.blue*l+s.blue*f),alpha:o.alpha*parseFloat(t)+s.alpha*(1-parseFloat(t))})}));P((function(t,e){if("transparent"===e)return e;var r=E(e),i="number"==typeof r.alpha?r.alpha:1;return z((0,n.default)({},r,{alpha:j(0,1,(100*i+100*parseFloat(t))/100)}))}));var F="#000",U="#fff";function G(t,e,r,n){void 0===e&&(e=F),void 0===r&&(r=U),void 0===n&&(n=!0);var i=L(t)>.179,o=i?e:r;return!n||K(t,o)>=4.5?o:i?F:U}function H(t){if("object"==typeof t&&"number"==typeof t.red&&"number"==typeof t.green&&"number"==typeof t.blue)return"number"==typeof t.alpha?z({red:t.red,green:t.green,blue:t.blue,alpha:t.alpha}):T({red:t.red,green:t.green,blue:t.blue});throw new s(46)}P((function(t,e){if("transparent"===e)return e;var r=M(e);return B((0,n.default)({},r,{saturation:j(0,1,r.saturation+parseFloat(t))}))}));P((function(t,e){return"transparent"===e?e:B((0,n.default)({},M(e),{hue:parseFloat(t)}))}));P((function(t,e){return"transparent"===e?e:B((0,n.default)({},M(e),{lightness:parseFloat(t)}))}));P((function(t,e){return"transparent"===e?e:B((0,n.default)({},M(e),{saturation:parseFloat(t)}))}));P((function(t,e){return"transparent"===e?e:N(parseFloat(t),"rgb(0, 0, 0)",e)}));P((function(t,e){return"transparent"===e?e:N(parseFloat(t),"rgb(255, 255, 255)",e)}));P((function(t,e){if("transparent"===e)return e;var r=E(e),i="number"==typeof r.alpha?r.alpha:1;return z((0,n.default)({},r,{alpha:j(0,1,+(100*i-100*parseFloat(t)).toFixed(2)/100)}))}))},32603:(t,e,r)=>{"use strict";var n=r(655);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},33517:(t,e,r)=>{"use strict";var n=r(79504),i=r(79039),o=r(94901),a=r(36955),s=r(97751),u=r(33706),c=function(){},l=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,p=n(f.exec),h=!f.test(c),d=function(t){if(!o(t))return!1;try{return l(c,[],t),!0}catch(t){return!1}},v=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!p(f,u(t))}catch(t){return!0}};v.sham=!0,t.exports=!l||i((function(){var t;return d(d.call)||!d(Object)||!d((function(){t=!0}))||t}))?v:d},33830:(t,e,r)=>{"use strict";var n=r(50580),i=r(77337).OrderedSet,o=n.substr,a=i();t.exports=function(t,e){var r=Array(t.length).fill(a);return e&&e.forEach((function(e){for(var n=o(t,0,e.offset).length,i=n+o(t,e.offset,e.length).length;n<i;)r[n]=r[n].add(e.style),n++})),r}},34154:(t,e,r)=>{"use strict";var n=r(36955),i=TypeError;t.exports=function(t){if("Uint8Array"===n(t))return t;throw new i("Argument is not an Uint8Array")}},35143:(t,e,r)=>{"use strict";var n=r(85889),i=r(95748),o=r(23018),a=r(69083),s=r(56840),u=r(97656),c=r(13387),l=r(87918),f=r(63299),p=r(81124),h=r(11608),d=r(49938),v=r(5407),g=r(12242),y=r(59414),m=r(66429),_=r(7018),b=r(91381),S=r(7470),w=r(50428),x=r(6991),E=r(57811),M=r(30894),O={Editor:f,EditorBlock:p,EditorState:g,CompositeDecorator:a,Entity:h,EntityInstance:v,BlockMapBuilder:i,CharacterMetadata:o,ContentBlock:s,ContentState:u,RawDraftContentState:m,SelectionState:b,AtomicBlockUtils:n,KeyBindingUtil:y,Modifier:d,RichUtils:_,DefaultDraftBlockRenderMap:c,DefaultDraftInlineStyle:l,convertFromHTML:r(24712),convertFromRaw:w,convertToRaw:S,genKey:x,getDefaultKeyBinding:E,getVisibleSelectionRect:M};t.exports=O},35389:t=>{"use strict";t.exports=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:window}},35623:(t,e,r)=>{"use strict";var n=r(46518),i=r(44576),o=r(79504),a=r(34154),s=r(55169),u=o(1..toString);i.Uint8Array&&n({target:"Uint8Array",proto:!0},{toHex:function(){a(this),s(this.buffer);for(var t="",e=0,r=this.length;e<r;e++){var n=u(this[e],16);t+=1===n.length?"0"+n:n}return t}})},35822:(t,e,r)=>{"use strict";r.d(e,{useVirtual:()=>g});var n=r(96540);function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i.apply(this,arguments)}var o,a=["bottom","height","left","right","top","width"],s=new Map,u=function t(){var e=[];s.forEach((function(t,r){var n,i,o=r.getBoundingClientRect();n=o,i=t.rect,void 0===n&&(n={}),void 0===i&&(i={}),a.some((function(t){return n[t]!==i[t]}))&&(t.rect=o,e.push(t))})),e.forEach((function(t){t.callbacks.forEach((function(e){return e(t.rect)}))})),o=window.requestAnimationFrame(t)};var c="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;function l(t,e){void 0===e&&(e={width:0,height:0});var r=n.useState(t.current),i=r[0],a=r[1],l=n.useReducer(f,e),p=l[0],h=l[1],d=n.useRef(!1);return c((function(){t.current!==i&&a(t.current)})),c((function(){if(i&&!d.current){d.current=!0;var t=i.getBoundingClientRect();h({rect:t})}}),[i]),n.useEffect((function(){if(i){var t,e,r=(t=i,e=function(t){h({rect:t})},{observe:function(){var r=0===s.size;s.has(t)?s.get(t).callbacks.push(e):s.set(t,{rect:void 0,hasRectChanged:!1,callbacks:[e]}),r&&u()},unobserve:function(){var r=s.get(t);if(r){var n=r.callbacks.indexOf(e);n>=0&&r.callbacks.splice(n,1),r.callbacks.length||s.delete(t),s.size||cancelAnimationFrame(o)}}});return r.observe(),function(){r.unobserve()}}}),[i]),p}function f(t,e){var r=e.rect;return t.height!==r.height||t.width!==r.width?r:t}var p=function(){return 50},h=function(t){return t},d=function(t,e){return t[e?"offsetWidth":"offsetHeight"]},v=function(t){for(var e=Math.max(t.start-t.overscan,0),r=Math.min(t.end+t.overscan,t.size-1),n=[],i=e;i<=r;i++)n.push(i);return n};function g(t){var e,r=t.size,o=void 0===r?0:r,a=t.estimateSize,s=void 0===a?p:a,u=t.overscan,f=void 0===u?1:u,g=t.paddingStart,m=void 0===g?0:g,_=t.paddingEnd,b=void 0===_?0:_,S=t.parentRef,w=t.horizontal,x=t.scrollToFn,E=t.useObserver,M=t.initialRect,O=t.onScrollElement,k=t.scrollOffsetFn,C=t.keyExtractor,D=void 0===C?h:C,I=t.measureSize,A=void 0===I?d:I,R=t.rangeExtractor,T=void 0===R?v:R,z=w?"width":"height",B=w?"scrollLeft":"scrollTop",q=n.useRef({scrollOffset:0,measurements:[]}),P=n.useState(0),j=P[0],L=P[1];q.current.scrollOffset=j;var K=(E||l)(S,M)[z];q.current.outerSize=K;var N=n.useCallback((function(t){S.current&&(S.current[B]=t)}),[S,B]),F=x||N;x=n.useCallback((function(t){F(t,N)}),[N,F]);var U=n.useState({}),G=U[0],H=U[1],W=n.useCallback((function(){return H({})}),[]),V=n.useRef([]),X=n.useMemo((function(){var t=V.current.length>0?Math.min.apply(Math,V.current):0;V.current=[];for(var e=q.current.measurements.slice(0,t),r=t;r<o;r++){var n=D(r),i=G[n],a=e[r-1]?e[r-1].end:m,u="number"==typeof i?i:s(r),c=a+u;e[r]={index:r,start:a,size:u,end:c,key:n}}return e}),[s,G,m,o,D]),Y=((null==(e=X[o-1])?void 0:e.end)||m)+b;q.current.measurements=X,q.current.totalSize=Y;var $=O?O.current:S.current,J=n.useRef(k);J.current=k,c((function(){if($){var t=function(t){var e=J.current?J.current(t):$[B];L(e)};return t(),$.addEventListener("scroll",t,{capture:!1,passive:!0}),function(){$.removeEventListener("scroll",t)}}L(0)}),[$,B]);var Z=function(t){var e=t.measurements,r=t.outerSize,n=t.scrollOffset,i=e.length-1,o=function(t){return e[t].start},a=y(0,i,o,n),s=a;for(;s<i&&e[s].end<n+r;)s++;return{start:a,end:s}}(q.current),Q=Z.start,tt=Z.end,et=n.useMemo((function(){return T({start:Q,end:tt,overscan:f,size:X.length})}),[Q,tt,f,X.length,T]),rt=n.useRef(A);rt.current=A;var nt=n.useMemo((function(){for(var t=[],e=function(e,r){var n=et[e],o=i(i({},X[n]),{},{measureRef:function(t){if(t){var e=rt.current(t,w);if(e!==o.size){var r=q.current.scrollOffset;o.start<r&&N(r+(e-o.size)),V.current.push(n),H((function(t){var r;return i(i({},t),{},((r={})[o.key]=e,r))}))}}}});t.push(o)},r=0,n=et.length;r<n;r++)e(r);return t}),[et,N,w,X]),it=n.useRef(!1);c((function(){it.current&&H({}),it.current=!0}),[s]);var ot=n.useCallback((function(t,e){var r=(void 0===e?{}:e).align,n=void 0===r?"start":r,i=q.current,o=i.scrollOffset,a=i.outerSize;"auto"===n&&(n=t<=o?"start":t>=o+a?"end":"start"),"start"===n?x(t):"end"===n?x(t-a):"center"===n&&x(t-a/2)}),[x]),at=n.useCallback((function(t,e){var r=void 0===e?{}:e,n=r.align,a=void 0===n?"auto":n,s=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(r,["align"]),u=q.current,c=u.measurements,l=u.scrollOffset,f=u.outerSize,p=c[Math.max(0,Math.min(t,o-1))];if(p){if("auto"===a)if(p.end>=l+f)a="end";else{if(!(p.start<=l))return;a="start"}var h="center"===a?p.start+p.size/2:"end"===a?p.end:p.start;ot(h,i({align:a},s))}}),[ot,o]),st=n.useCallback((function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];at.apply(void 0,e),requestAnimationFrame((function(){at.apply(void 0,e)}))}),[at]);return{virtualItems:nt,totalSize:Y,scrollToOffset:ot,scrollToIndex:st,measure:W}}var y=function(t,e,r,n){for(;t<=e;){var i=(t+e)/2|0,o=r(i);if(o<n)t=i+1;else{if(!(o>n))return i;e=i-1}}return t>0?t-1:0}},37458:t=>{"use strict";t.exports=function(t){return t.Window&&t instanceof t.Window?{x:t.pageXOffset||t.document.documentElement.scrollLeft,y:t.pageYOffset||t.document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}},38021:function(t,e){!function(t){"use strict";function e(t){var e,r=t.toLowerCase();if("rgb"===r.substring(0,3)){var n=/^rgba?\s*\((\d+),\s*(\d+),\s*(\d+)([^)]*)\)$/.exec(r);e={r:n[1]/255,g:n[2]/255,b:n[3]/255,a:1},n[4]&&(e.a=parseFloat(/^,\s*(.*)$/.exec(n[4])[1]))}else"#"===r.charAt(0)&&(r=r.substr(1)),3===r.length&&(r=r.replace(/^(.)(.)(.)$/,"$1$1$2$2$3$3")),4===r.length&&(r=r.replace(/^(.)(.)(.)(.)$/,"$1$1$2$2$3$3$4$4")),e={r:parseInt(r.substr(0,2),16)/255,g:parseInt(r.substr(2,2),16)/255,b:parseInt(r.substr(4,2),16)/255,a:1},8===r.length&&(e.a=parseInt(r.substr(6,2),16)/255);return e}function r(t){var e,r,n,i=t.r,o=t.g,a=t.b,s=t.a,u=Math.min(i,o,a),c=Math.max(i,o,a),l=c-u;return c===u?e=0:i===c?e=(o-a)/l:o===c?e=2+(a-i)/l:a===c&&(e=4+(i-o)/l),(e=Math.min(60*e,360))<0&&(e+=360),n=(u+c)/2,r=c===u?0:n<=.5?l/(c+u):l/(2-c-u),{h:e,s:r*=100,l:n*=100,a:s}}function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function a(t,e){return s(t)||u(t,e)||c(t,e)||_nonIterableRest()}function s(t){if(Array.isArray(t))return t}function u(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}}function c(t,e){if(t){if("string"==typeof t)return l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(t){var e=r(o(o({},t),{},{a:1}));return{h:e.h,s:e.s,l:e.l}}function p(t){var e,r,n,i,o,a,s=t.h,u=t.s,c=t.l,l=t.a;return isFinite(s)||(s=0),isFinite(u)||(u=0),isFinite(c)||(c=0),(s/=60)<0&&(s=6- -s%6),s%=6,u=Math.max(0,Math.min(1,u/100)),c=Math.max(0,Math.min(1,c/100)),a=(o=(1-Math.abs(2*c-1))*u)*(1-Math.abs(s%2-1)),s<1?(e=o,r=a,n=0):s<2?(e=a,r=o,n=0):s<3?(e=0,r=o,n=a):s<4?(e=0,r=a,n=o):s<5?(e=a,r=0,n=o):(e=o,r=0,n=a),{r:e+=i=c-o/2,g:r+=i,b:n+=i,a:l}}function h(t){var e=p(o(o({},t),{},{a:1}));return{r:e.r,g:e.g,b:e.b}}function d(t){var e=t.r,r=t.g,n=t.b,i=t.a;return"#"+(255*e|256).toString(16).slice(1)+(255*r|256).toString(16).slice(1)+(255*n|256).toString(16).slice(1)+(255*i|256).toString(16).slice(1)}function v(t){return d(o(o({},t),{},{a:1})).slice(0,7)}function g(t,e){return(Math.max(t,e)+.05)/(Math.min(t,e)+.05)}function y(t){var e=t.r,r=t.g,n=t.b,i=t.a,o=a([e,r,n].map((function(t){return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),3);return(.2126*o[0]+.7152*o[1]+.0722*o[2])*i}var m={"min-ratio-3":{description:"(WCAG AA, large text)",minRatio:3},"min-ratio-4.5":{description:"(WCAG AA, normal text / WCAG AAA, large text)",minRatio:4.5},"min-ratio-7":{description:"(WCAG AAA, normal text)",minRatio:7},"AA-large":{description:"(WCAG AA, large text)",minRatio:3},AA:{description:"(WCAG AA, normal text)",minRatio:4.5},AAA:{description:"(WCAG AAA, normal text)",minRatio:7}};function _(t){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t>=3&&(arguments.length>1&&void 0!==arguments[1]?arguments[1]:16)>=18?(e&&console.log(m["min-ratio-3"]),!0):t>=4.5&&(e&&console.log(m["min-ratio-4.5"]),!0)}function b(t){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t>=4.5&&(arguments.length>1&&void 0!==arguments[1]?arguments[1]:16)>=18?(e&&console.log(m["min-ratio-4.5"]),!0):t>=7&&(e&&console.log(m["min-ratio-7"]),!0)}function S(t,e){var r=t.h,n=t.s,i=t.l,o=t.a,a=e[0],s=e[1],u=e[2],c=(r+a)%360;return c<0&&(c+=360),{h:c,s:Math.min(Math.max(n+s,0),100),l:Math.min(Math.max(i+u,0),100),a:o}}var w=.1;function x(t,n,i){var o,a=t;do{o=g(y(e(d(a=p(S(r(a),[0,0,w]))))),y(n))}while(Math.round(100*o)/100<=i);return a}t.aa=_,t.aaa=b,t.contrast=g,t.getAccesibleHexColor=x,t.hsl2rgb=h,t.hsla2rgba=p,t.hslaVector3=S,t.ratios=m,t.relativeLuminance=y,t.rgb2hex=v,t.rgb2hsl=f,t.rgba2hex=d,t.rgba2hsla=r,t.str2rgba=e,Object.defineProperty(t,"__esModule",{value:!0})}(e)},38469:(t,e,r)=>{"use strict";var n=r(79504),i=r(40507),o=r(94402),a=o.Set,s=o.proto,u=n(s.forEach),c=n(s.keys),l=c(new a).next;t.exports=function(t,e,r){return r?i({iterator:c(t),next:l},e):u(t,e)}},38574:(t,e,r)=>{"use strict";var n=r(84215);t.exports="NODE"===n},38923:(t,e,r)=>{"use strict";function n(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(t,e){var r=Object.keys(t);return Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(t)),e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(r,!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}(t,e)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}r.d(e,{stateToHTML:()=>U});const u=function(t,e){if(null==t)return e;for(var r=s(e,2),i=r[0],a=r[1],u=o({},i),c=n(a),l=0,f=Object.keys(t);l<f.length;l++){var p=f[l];if(i.hasOwnProperty(p)){var h=i[p];u[p]=o({},h,{},t[p])}else u[p]=t[p],c.push(p)}return[u,c]};var c={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"};const helpers_normalizeAttributes=function(t){if(null==t)return t;for(var e={},r=!1,n=0,i=Object.keys(t);n<i.length;n++){var o=i[n],a=o;c.hasOwnProperty(o)&&(a=c[o],r=!0),e[a]=t[o]}return r?e:t};var l=/^(moz|ms|o|webkit)-/,f=/^\d+$/,p=/([A-Z])/g,h={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const d=function(t){return Object.keys(t).map((function(e){var r=function(t,e){var r;return"string"==typeof e?r=f.test(e):(r=!0,e=String(e)),r&&"0"!==e&&!0!==h[t]?e+"px":e}(e,t[e]),n=function(t){return t.replace(p,"-$1").toLowerCase().replace(l,"-$1-")}(e);return"".concat(n,": ").concat(r)})).join("; ")};var v={UNSTYLED:"unstyled",HEADER_ONE:"header-one",HEADER_TWO:"header-two",HEADER_THREE:"header-three",HEADER_FOUR:"header-four",HEADER_FIVE:"header-five",HEADER_SIX:"header-six",UNORDERED_LIST_ITEM:"unordered-list-item",ORDERED_LIST_ITEM:"ordered-list-item",BLOCKQUOTE:"blockquote",PULLQUOTE:"pullquote",CODE:"code-block",ATOMIC:"atomic"},g={LINK:"LINK",IMAGE:"IMAGE",EMBED:"embed"},y={BOLD:"BOLD",CODE:"CODE",ITALIC:"ITALIC",STRIKETHROUGH:"STRIKETHROUGH",UNDERLINE:"UNDERLINE"};var m=r(49568),_=new m.OrderedSet;function b(t,e){for(var r=_,n=_,i=[],o=0,a=0,s=t.length;a<s;a++){n=r;var u=e.get(a);r=u?u.getStyle():_,a>0&&!(0,m.is)(r,n)&&(i.push([t.slice(o,a),n]),o=a)}return i.push([t.slice(o),r]),i}r(35143);var S,w,x;function E(t,e){var r=Object.keys(t);return Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(t)),e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r}function M(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?E(r,!0).forEach((function(e){C(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):E(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function O(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}(t,e)||function stateToHTML_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function k(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function C(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var D=y.BOLD,I=y.CODE,A=y.ITALIC,R=y.STRIKETHROUGH,T=y.UNDERLINE,z="<br>",B=/^data-([a-z0-9-]+)$/,q=(C(S={},D,{element:"strong"}),C(S,I,{element:"code"}),C(S,A,{element:"em"}),C(S,R,{element:"del"}),C(S,T,{element:"u"}),S),P=[D,A,T,R,I],j=(C(w={},g.LINK,{url:"href",href:"href",rel:"rel",target:"target",title:"title",className:"class"}),C(w,g.IMAGE,{src:"src",height:"height",width:"width",alt:"alt",className:"class"}),w),L=(C(x={},g.LINK,(function(t,e){for(var r=j.hasOwnProperty(t)?j[t]:{},n=e.getData(),i={},o=0,a=Object.keys(n);o<a.length;o++){var s=a[o],u=n[s];if(r.hasOwnProperty(s))i[r[s]]=u;else B.test(s)&&(i[s]=u)}return i})),C(x,g.IMAGE,(function(t,e){for(var r=j.hasOwnProperty(t)?j[t]:{},n=e.getData(),i={},o=0,a=Object.keys(n);o<a.length;o++){var s=a[o],u=n[s];if(r.hasOwnProperty(s))i[r[s]]=u;else B.test(s)&&(i[s]=u)}return i})),x);function K(t,e){switch(t){case v.HEADER_ONE:return["h1"];case v.HEADER_TWO:return["h2"];case v.HEADER_THREE:return["h3"];case v.HEADER_FOUR:return["h4"];case v.HEADER_FIVE:return["h5"];case v.HEADER_SIX:return["h6"];case v.UNORDERED_LIST_ITEM:case v.ORDERED_LIST_ITEM:return["li"];case v.BLOCKQUOTE:return["blockquote"];case v.CODE:return["pre","code"];case v.ATOMIC:return["figure"];default:return null===e?[]:[e||"p"]}}var N=function(){function MarkupGenerator(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,MarkupGenerator),C(this,"blocks",void 0),C(this,"contentState",void 0),C(this,"currentBlock",void 0),C(this,"indentLevel",void 0),C(this,"output",void 0),C(this,"totalBlocks",void 0),C(this,"wrapperTag",void 0),C(this,"options",void 0),C(this,"inlineStyles",void 0),C(this,"inlineStyleFn",void 0),C(this,"styleOrder",void 0),null==e&&(e={}),this.contentState=t,this.options=e;var r=O(u(e.inlineStyles,[q,P]),2),n=r[0],i=r[1];this.inlineStyles=n,this.inlineStyleFn=e.inlineStyleFn,this.styleOrder=i}var t,e,r;return t=MarkupGenerator,(e=[{key:"generate",value:function(){for(this.output=[],this.blocks=this.contentState.getBlocksAsArray(),this.totalBlocks=this.blocks.length,this.currentBlock=0,this.indentLevel=0,this.wrapperTag=null;this.currentBlock<this.totalBlocks;)this.processBlock();return this.closeWrapperTag(),this.output.join("").trim()}},{key:"processBlock",value:function(){var t=this.options,e=t.blockRenderers,r=t.defaultBlockTag,n=this.blocks[this.currentBlock],i=n.getType(),o=function(t){switch(t){case v.UNORDERED_LIST_ITEM:return"ul";case v.ORDERED_LIST_ITEM:return"ol";default:return null}}(i);this.wrapperTag!==o&&(this.wrapperTag&&this.closeWrapperTag(),o&&this.openWrapperTag(o)),this.indent();var a=null!=e&&e.hasOwnProperty(i)?e[i]:null,s=a?a(n):null;if(null!=s)return this.output.push(s),this.output.push("\n"),void(this.currentBlock+=1);this.writeStartTag(n,r),this.output.push(this.renderBlockContent(n));var u=this.getNextBlock();if(function(t){switch(t){case v.UNORDERED_LIST_ITEM:case v.ORDERED_LIST_ITEM:return!0;default:return!1}}(i)&&u&&u.getDepth()===n.getDepth()+1){this.output.push("\n");var c=this.wrapperTag;this.wrapperTag=null,this.indentLevel+=1,this.currentBlock+=1,this.processBlocksAtDepth(u.getDepth()),this.wrapperTag=c,this.indentLevel-=1,this.indent()}else this.currentBlock+=1;this.writeEndTag(n,r)}},{key:"processBlocksAtDepth",value:function(t){for(var e=this.blocks[this.currentBlock];e&&e.getDepth()===t;)this.processBlock(),e=this.blocks[this.currentBlock];this.closeWrapperTag()}},{key:"getNextBlock",value:function(){return this.blocks[this.currentBlock+1]}},{key:"writeStartTag",value:function(t,e){var r,n=K(t.getType(),e);if(this.options.blockStyleFn){var i=this.options.blockStyleFn(t)||{},o=i.attributes,a=i.style;if(o=helpers_normalizeAttributes(o),null!=a){var s=d(a);o=null==o?{style:s}:M({},o,{style:s})}r=F(o)}else r="";var u=!0,c=!1,l=void 0;try{for(var f,p=n[Symbol.iterator]();!(u=(f=p.next()).done);u=!0){var h=f.value;this.output.push("<".concat(h).concat(r,">"))}}catch(t){c=!0,l=t}finally{try{u||null==p.return||p.return()}finally{if(c)throw l}}}},{key:"writeEndTag",value:function(t,e){var r=K(t.getType(),e);if(1===r.length)this.output.push("</".concat(r[0],">\n"));else{var n=[],i=!0,o=!1,a=void 0;try{for(var s,u=r[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var c=s.value;n.unshift("</".concat(c,">"))}}catch(t){o=!0,a=t}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}this.output.push(n.join("")+"\n")}}},{key:"openWrapperTag",value:function(t){this.wrapperTag=t,this.indent(),this.output.push("<".concat(t,">\n")),this.indentLevel+=1}},{key:"closeWrapperTag",value:function(){var t=this.wrapperTag;t&&(this.indentLevel-=1,this.indent(),this.output.push("</".concat(t,">\n")),this.wrapperTag=null)}},{key:"indent",value:function(){this.output.push(" ".repeat(this.indentLevel))}},{key:"withCustomInlineStyles",value:function(t,e){if(!this.inlineStyleFn)return t;var r=this.inlineStyleFn(e);if(!r)return t;var n=r.element,i=void 0===n?"span":n,o=r.attributes,a=r.style,s=F(M({},o,{style:a&&d(a)}));return"<".concat(i).concat(s,">").concat(t,"</").concat(i,">")}},{key:"renderBlockContent",value:function(t){var e=this,r=t.getType(),n=t.getText();if(""===n)return z;var i=function(t,e){for(var r=null,n=null,i=[],o=0,a=0,s=t.length;a<s;a++){n=r;var u=e.get(a);r=u?u.getEntity():null,a>0&&r!==n&&(i.push([n,b(t.slice(o,a),e.slice(o,a))]),o=a)}return i.push([r,b(t.slice(o),e.slice(o))]),i}(n=this.preserveWhitespace(n),t.getCharacterList());return i.map((function(t){var n,i=O(t,2),o=i[0],a=i[1].map((function(t){var n=O(t,2),i=n[0],o=n[1],a=function(t){return t.split("&").join("&").split("<").join("<").split(">").join(">").split(" ").join(" ").split("\n").join(z+"\n")}(i),s=!0,u=!1,c=void 0;try{for(var l,f=e.styleOrder[Symbol.iterator]();!(s=(l=f.next()).done);s=!0){var p=l.value;if((p!==I||r!==v.CODE)&&o.has(p)){var h=e.inlineStyles[p],g=h.element,y=h.attributes,m=h.style;if(null==g&&(g="span"),y=helpers_normalizeAttributes(y),null!=m){var _=d(m);y=null==y?{style:_}:M({},y,{style:_})}var b=F(y);a="<".concat(g).concat(b,">").concat(a,"</").concat(g,">")}}}catch(t){u=!0,c=t}finally{try{s||null==f.return||f.return()}finally{if(u)throw c}}return e.withCustomInlineStyles(a,o)})).join(""),s=o?e.contentState.getEntity(o):null,u=null==s?null:s.getType().toUpperCase();if(null!=s&&e.options.entityStyleFn&&(n=e.options.entityStyleFn(s))){var c=n,l=c.element,f=c.attributes,p=c.style;if(null==l&&(l="span"),f=helpers_normalizeAttributes(f),null!=p){var h=d(p);f=null==f?{style:h}:M({},f,{style:h})}var y=F(f);return"<".concat(l).concat(y,">").concat(a,"</").concat(l,">")}if(null!=u&&u===g.LINK){var m=F(L.hasOwnProperty(u)?L[u](u,s):null);return"<a".concat(m,">").concat(a,"</a>")}if(null!=u&&u===g.IMAGE){var _=F(L.hasOwnProperty(u)?L[u](u,s):null);return"<img".concat(_,"/>")}return a})).join("")}},{key:"preserveWhitespace",value:function(t){for(var e=t.length,r=new Array(e),n=0;n<e;n++)" "!==t[n]||0!==n&&n!==e-1&&" "!==t[n-1]?r[n]=t[n]:r[n]=" ";return r.join("")}}])&&k(t.prototype,e),r&&k(t,r),MarkupGenerator}();function F(t){if(null==t)return"";for(var e=[],r=0,n=Object.keys(t);r<n.length;r++){var i=n[r],o=t[i];null!=o&&e.push(" ".concat(i,'="').concat((o+"").split("&").join("&").split("<").join("<").split(">").join(">").split('"').join("""),'"'))}return e.join("")}function U(t,e){return new N(t,e).generate()}},39499:function(t,e,r){var n,i;!function(){"use strict";void 0===(i="function"==typeof(n=function(){var t={};function Vector(t,e){this.x=t||0,this.y=e||0}function Circle(t,e){this.pos=t||new Vector,this.r=e||0,this.offset=new Vector}function Polygon(t,e){this.pos=t||new Vector,this.angle=0,this.offset=new Vector,this.setPoints(e||[])}function Box(t,e,r){this.pos=t||new Vector,this.w=e||0,this.h=r||0}function Response(){this.a=null,this.b=null,this.overlapN=new Vector,this.overlapV=new Vector,this.clear()}t.Vector=Vector,t.V=Vector,Vector.prototype.copy=Vector.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},Vector.prototype.clone=Vector.prototype.clone=function(){return new Vector(this.x,this.y)},Vector.prototype.perp=Vector.prototype.perp=function(){var t=this.x;return this.x=this.y,this.y=-t,this},Vector.prototype.rotate=Vector.prototype.rotate=function(t){var e=this.x,r=this.y;return this.x=e*Math.cos(t)-r*Math.sin(t),this.y=e*Math.sin(t)+r*Math.cos(t),this},Vector.prototype.reverse=Vector.prototype.reverse=function(){return this.x=-this.x,this.y=-this.y,this},Vector.prototype.normalize=Vector.prototype.normalize=function(){var t=this.len();return t>0&&(this.x=this.x/t,this.y=this.y/t),this},Vector.prototype.add=Vector.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},Vector.prototype.sub=Vector.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},Vector.prototype.scale=Vector.prototype.scale=function(t,e){return this.x*=t,this.y*=void 0!==e?e:t,this},Vector.prototype.project=Vector.prototype.project=function(t){var e=this.dot(t)/t.len2();return this.x=e*t.x,this.y=e*t.y,this},Vector.prototype.projectN=Vector.prototype.projectN=function(t){var e=this.dot(t);return this.x=e*t.x,this.y=e*t.y,this},Vector.prototype.reflect=Vector.prototype.reflect=function(t){var e=this.x,r=this.y;return this.project(t).scale(2),this.x-=e,this.y-=r,this},Vector.prototype.reflectN=Vector.prototype.reflectN=function(t){var e=this.x,r=this.y;return this.projectN(t).scale(2),this.x-=e,this.y-=r,this},Vector.prototype.dot=Vector.prototype.dot=function(t){return this.x*t.x+this.y*t.y},Vector.prototype.len2=Vector.prototype.len2=function(){return this.dot(this)},Vector.prototype.len=Vector.prototype.len=function(){return Math.sqrt(this.len2())},t.Circle=Circle,Circle.prototype.getAABBAsBox=Circle.prototype.getAABBAsBox=function(){var t=this.r;return new Box(this.pos.clone().add(this.offset).sub(new Vector(t,t)),2*t,2*t)},Circle.prototype.getAABB=Circle.prototype.getAABB=function(){return this.getAABBAsBox().toPolygon()},Circle.prototype.setOffset=Circle.prototype.setOffset=function(t){return this.offset=t,this},t.Polygon=Polygon,Polygon.prototype.setPoints=Polygon.prototype.setPoints=function(t){if(!this.points||this.points.length!==t.length){var e,r=this.calcPoints=[],n=this.edges=[],i=this.normals=[];for(e=0;e<t.length;e++){var o=t[e],a=e<t.length-1?t[e+1]:t[0];o===a||o.x!==a.x||o.y!==a.y?(r.push(new Vector),n.push(new Vector),i.push(new Vector)):(t.splice(e,1),e-=1)}}return this.points=t,this._recalc(),this},Polygon.prototype.setAngle=Polygon.prototype.setAngle=function(t){return this.angle=t,this._recalc(),this},Polygon.prototype.setOffset=Polygon.prototype.setOffset=function(t){return this.offset=t,this._recalc(),this},Polygon.prototype.rotate=Polygon.prototype.rotate=function(t){for(var e=this.points,r=e.length,n=0;n<r;n++)e[n].rotate(t);return this._recalc(),this},Polygon.prototype.translate=Polygon.prototype.translate=function(t,e){for(var r=this.points,n=r.length,i=0;i<n;i++)r[i].x+=t,r[i].y+=e;return this._recalc(),this},Polygon.prototype._recalc=function(){var t,e=this.calcPoints,r=this.edges,n=this.normals,i=this.points,o=this.offset,a=this.angle,s=i.length;for(t=0;t<s;t++){var u=e[t].copy(i[t]);u.x+=o.x,u.y+=o.y,0!==a&&u.rotate(a)}for(t=0;t<s;t++){var c=e[t],l=t<s-1?e[t+1]:e[0],f=r[t].copy(l).sub(c);n[t].copy(f).perp().normalize()}return this},Polygon.prototype.getAABBAsBox=Polygon.prototype.getAABBAsBox=function(){for(var t=this.calcPoints,e=t.length,r=t[0].x,n=t[0].y,i=t[0].x,o=t[0].y,a=1;a<e;a++){var s=t[a];s.x<r?r=s.x:s.x>i&&(i=s.x),s.y<n?n=s.y:s.y>o&&(o=s.y)}return new Box(this.pos.clone().add(new Vector(r,n)),i-r,o-n)},Polygon.prototype.getAABB=Polygon.prototype.getAABB=function(){return this.getAABBAsBox().toPolygon()},Polygon.prototype.getCentroid=Polygon.prototype.getCentroid=function(){for(var t=this.calcPoints,e=t.length,r=0,n=0,i=0,o=0;o<e;o++){var a=t[o],s=o===e-1?t[0]:t[o+1],u=a.x*s.y-s.x*a.y;r+=(a.x+s.x)*u,n+=(a.y+s.y)*u,i+=u}return new Vector(r/=i*=3,n/=i)},t.Box=Box,Box.prototype.toPolygon=Box.prototype.toPolygon=function(){var t=this.pos,e=this.w,r=this.h;return new Polygon(new Vector(t.x,t.y),[new Vector,new Vector(e,0),new Vector(e,r),new Vector(0,r)])},t.Response=Response,Response.prototype.clear=Response.prototype.clear=function(){return this.aInB=!0,this.bInA=!0,this.overlap=Number.MAX_VALUE,this};for(var e=[],r=0;r<10;r++)e.push(new Vector);var n=[];for(r=0;r<5;r++)n.push([]);var i=new Response,o=new Box(new Vector,1e-6,1e-6).toPolygon();function a(t,e,r){for(var n=Number.MAX_VALUE,i=-Number.MAX_VALUE,o=t.length,a=0;a<o;a++){var s=t[a].dot(e);s<n&&(n=s),s>i&&(i=s)}r[0]=n,r[1]=i}function s(t,r,i,o,s,u){var c=n.pop(),l=n.pop(),f=e.pop().copy(r).sub(t),p=f.dot(s);if(a(i,s,c),a(o,s,l),l[0]+=p,l[1]+=p,c[0]>l[1]||l[0]>c[1])return e.push(f),n.push(c),n.push(l),!0;if(u){var h,d,v=0;if(c[0]<l[0])if(u.aInB=!1,c[1]<l[1])v=c[1]-l[0],u.bInA=!1;else v=(h=c[1]-l[0])<(d=l[1]-c[0])?h:-d;else if(u.bInA=!1,c[1]>l[1])v=c[0]-l[1],u.aInB=!1;else v=(h=c[1]-l[0])<(d=l[1]-c[0])?h:-d;var g=Math.abs(v);g<u.overlap&&(u.overlap=g,u.overlapN.copy(s),v<0&&u.overlapN.reverse())}return e.push(f),n.push(c),n.push(l),!1}function u(t,e){var r=t.len2(),n=e.dot(t);return n<0?c:n>r?f:l}t.isSeparatingAxis=s;var c=-1,l=0,f=1;function p(t,r){var n=e.pop().copy(t).sub(r.pos).sub(r.offset),i=r.r*r.r,o=n.len2();return e.push(n),o<=i}function h(t,e){o.pos.copy(t),i.clear();var r=y(o,e,i);return r&&(r=i.aInB),r}function d(t,r,n){var i=e.pop().copy(r.pos).add(r.offset).sub(t.pos).sub(t.offset),o=t.r+r.r,a=o*o,s=i.len2();if(s>a)return e.push(i),!1;if(n){var u=Math.sqrt(s);n.a=t,n.b=r,n.overlap=o-u,n.overlapN.copy(i.normalize()),n.overlapV.copy(i).scale(n.overlap),n.aInB=t.r<=r.r&&u<=r.r-t.r,n.bInA=r.r<=t.r&&u<=t.r-r.r}return e.push(i),!0}function v(t,r,n){for(var i=e.pop().copy(r.pos).add(r.offset).sub(t.pos),o=r.r,a=o*o,s=t.calcPoints,l=s.length,p=e.pop(),h=e.pop(),d=0;d<l;d++){var v=d===l-1?0:d+1,g=0===d?l-1:d-1,y=0,m=null;p.copy(t.edges[d]),h.copy(i).sub(s[d]),n&&h.len2()>a&&(n.aInB=!1);var _=u(p,h);if(_===c){p.copy(t.edges[g]);var b=e.pop().copy(i).sub(s[g]);if((_=u(p,b))===f){if((w=h.len())>o)return e.push(i),e.push(p),e.push(h),e.push(b),!1;n&&(n.bInA=!1,m=h.normalize(),y=o-w)}e.push(b)}else if(_===f){if(p.copy(t.edges[v]),h.copy(i).sub(s[v]),(_=u(p,h))===c){if((w=h.len())>o)return e.push(i),e.push(p),e.push(h),!1;n&&(n.bInA=!1,m=h.normalize(),y=o-w)}}else{var S=p.perp().normalize(),w=h.dot(S),x=Math.abs(w);if(w>0&&x>o)return e.push(i),e.push(S),e.push(h),!1;n&&(m=S,y=o-w,(w>=0||y<2*o)&&(n.bInA=!1))}m&&n&&Math.abs(y)<Math.abs(n.overlap)&&(n.overlap=y,n.overlapN.copy(m))}return n&&(n.a=t,n.b=r,n.overlapV.copy(n.overlapN).scale(n.overlap)),e.push(i),e.push(p),e.push(h),!0}function g(t,e,r){var n=v(e,t,r);if(n&&r){var i=r.a,o=r.aInB;r.overlapN.reverse(),r.overlapV.reverse(),r.a=r.b,r.b=i,r.aInB=r.bInA,r.bInA=o}return n}function y(t,e,r){for(var n=t.calcPoints,i=n.length,o=e.calcPoints,a=o.length,u=0;u<i;u++)if(s(t.pos,e.pos,n,o,t.normals[u],r))return!1;for(u=0;u<a;u++)if(s(t.pos,e.pos,n,o,e.normals[u],r))return!1;return r&&(r.a=t,r.b=e,r.overlapV.copy(r.overlapN).scale(r.overlap)),!0}return t.pointInCircle=p,t.pointInPolygon=h,t.testCircleCircle=d,t.testPolygonCircle=v,t.testCirclePolygon=g,t.testPolygonPolygon=y,t})?n.call(e,r,e,t):n)||(t.exports=i)}()},39778:(t,e,r)=>{"use strict";let n=r(57438);t.exports=new n(r(44121))},40507:(t,e,r)=>{"use strict";var n=r(69565);t.exports=function(t,e,r){for(var i,o,a=r?t:t.iterator,s=t.next;!(i=n(s,a)).done;)if(void 0!==(o=e(i.value)))return o}},40803:(t,e,r)=>{"use strict";var n=r(23018),i=r(77337).List;t.exports=function(t,e){var r=t.map((function(t,r){var i=e[r];return n.create({style:t,entity:i})}));return i(r)}},40961:(t,e,r)=>{"use strict";!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(t){console.error(t)}}(),t.exports=r(22551)},41401:t=>{"use strict";function e(){var t;return document.documentElement&&(t=document.documentElement.clientWidth),!t&&document.body&&(t=document.body.clientWidth),t||0}function r(){var t;return document.documentElement&&(t=document.documentElement.clientHeight),!t&&document.body&&(t=document.body.clientHeight),t||0}function n(){return{width:window.innerWidth||e(),height:window.innerHeight||r()}}n.withoutScrollbars=function(){return{width:e(),height:r()}},t.exports=n},41549:(t,e,r)=>{"use strict";var n=r(46518),i=r(44576),o=r(59143),a=r(34154),s=i.Uint8Array,u=!s||!s.prototype.setFromBase64||!function(){var t=new s([255,255,255,255,255]);try{t.setFromBase64("MjYyZg===")}catch(e){return 50===t[0]&&54===t[1]&&50===t[2]&&255===t[3]&&255===t[4]}}();s&&n({target:"Uint8Array",proto:!0,forced:u},{setFromBase64:function(t){a(this);var e=o(t,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:e.read,written:e.written}}})},41952:(t,e,r)=>{"use strict";var n=r(23018);t.exports=function(t,e,r,i){for(var o=e,a=t.getCharacterList();o<r;)a=a.set(o,n.applyEntity(a.get(o),i)),o++;return t.set("characterList",a)}},42303:(t,e,r)=>{"use strict";var n=r(44576),i=r(79504),o=n.Uint8Array,a=n.SyntaxError,s=n.parseInt,u=Math.min,c=/[^\da-f]/i,l=i(c.exec),f=i("".slice);t.exports=function(t,e){var r=t.length;if(r%2!=0)throw new a("String should be an even number of characters");for(var n=e?u(e.length,r/2):r/2,i=e||new o(n),p=0,h=0;h<n;){var d=f(t,p,p+=2);if(l(c,d))throw new a("String should only contain hex characters");i[h++]=s(d,16)}return{bytes:i,read:p}}},42474:(t,e,r)=>{"use strict";var n=r(92395),i=r(49938),o=r(12242),a=r(88372),s=r(19677),u=r(723),c=r(79450),l=r(35389),f=r(73680),p=r(56408);var h={onDragEnd:function(t){t.exitCurrentMode(),d(t)},onDrop:function(t,e){var r=new n(e.nativeEvent.dataTransfer),l=t._latestEditorState,h=function(t,e){var r=null,n=null,i=s(t.currentTarget);if("function"==typeof i.caretRangeFromPoint){var o=i.caretRangeFromPoint(t.x,t.y);r=o.startContainer,n=o.startOffset}else{if(!t.rangeParent)return null;r=t.rangeParent,n=t.rangeOffset}r=p(r),n=p(n);var u=p(a(r));return c(e,u,n,u,n)}(e.nativeEvent,l);if(e.preventDefault(),t._dragCount=0,t.exitCurrentMode(),null!=h){var g=r.getFiles();if(g.length>0){if(t.props.handleDroppedFiles&&f(t.props.handleDroppedFiles(h,g)))return;u(g,(function(e){e&&t.update(v(l,h,e))}))}else{var y=t._internalDrag?"internal":"external";t.props.handleDrop&&f(t.props.handleDrop(h,r,y))||(t._internalDrag?t.update(function(t,e){var r=i.moveText(t.getCurrentContent(),t.getSelection(),e);return o.push(t,r,"insert-fragment")}(l,h)):t.update(v(l,h,r.getText()))),d(t)}}}};function d(t){t._internalDrag=!1;var e=t.editorContainer;if(e){var r=new MouseEvent("mouseup",{view:l(e),bubbles:!0,cancelable:!0});e.dispatchEvent(r)}}function v(t,e,r){var n=i.insertText(t.getCurrentContent(),e,r,t.getCurrentInlineStyle());return o.push(t,n,"insert-fragment")}t.exports=h},42791:function(t,e,r){!function(t){"use strict";if(!t.setImmediate){var e,r,n,i,o,a=1,s={},u=!1,c=t.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(t);l=l&&l.setTimeout?l:t,"[object process]"==={}.toString.call(t.process)?e=function(t){process.nextTick((function(){p(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?t.MessageChannel?((n=new MessageChannel).port1.onmessage=function(t){p(t.data)},e=function(t){n.port2.postMessage(t)}):c&&"onreadystatechange"in c.createElement("script")?(r=c.documentElement,e=function(t){var e=c.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):e=function(t){setTimeout(p,0,t)}:(i="setImmediate$"+Math.random()+"$",o=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(i)&&p(+e.data.slice(i.length))},t.addEventListener?t.addEventListener("message",o,!1):t.attachEvent("onmessage",o),e=function(e){t.postMessage(i+e,"*")}),l.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var r=new Array(arguments.length-1),n=0;n<r.length;n++)r[n]=arguments[n+1];var i={callback:t,args:r};return s[a]=i,e(a),a++},l.clearImmediate=f}function f(t){delete s[t]}function p(t){if(u)setTimeout(p,0,t);else{var e=s[t];if(e){u=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(void 0,r)}}(e)}finally{f(t),u=!1}}}}}("undefined"==typeof self?void 0===r.g?this:r.g:self)},44121:t=>{t.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},44209:(t,e,r)=>{"use strict";var n=r(78227),i=r(26269),o=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},44447:(t,e,r)=>{"use strict";var n=r(12242),i=r(14134);t.exports=function(t,e){var r=t._latestEditorState,o=r.getSelection();if(!o.getHasFocus()){var a=o.set("hasFocus",!0);t.props.onFocus&&t.props.onFocus(e),i.isBrowser("Chrome < 60.0.3081.0")?t.update(n.forceSelection(r,a)):t.update(n.acceptSelection(r,a))}}},45170:(t,e,r)=>{"use strict";var n=r(49938),i=r(12242),o=r(30866),a=r(56408),s=null,u={cut:function(t){var e=t.getCurrentContent(),r=t.getSelection(),u=null;if(r.isCollapsed()){var c=r.getAnchorKey(),l=e.getBlockForKey(c).getLength();if(l===r.getAnchorOffset()){var f=e.getKeyAfter(c);if(null==f)return t;u=r.set("focusKey",f).set("focusOffset",0)}else u=r.set("focusOffset",l)}else u=r;u=a(u),s=o(e,u);var p=n.removeRange(e,u,"forward");return p===e?t:i.push(t,p,"remove-range")},paste:function(t){if(!s)return t;var e=n.replaceWithFragment(t.getCurrentContent(),t.getSelection(),s);return i.push(t,e,"insert-fragment")}};t.exports=u},45852:t=>{"use strict";t.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},46059:(t,e,r)=>{"use strict";var n=r(65224),i=r(7376),o=r(77337),a=r(90646),s=o.OrderedMap,u=o.List,c=function(t,e,r){if(t){var n=e.get(t);n&&e.set(t,r(n))}},l=function(t,e,r,n,i){if(!i)return t;var o="after"===n,a=e.getKey(),s=r.getKey(),l=e.getParentKey(),f=e.getNextSiblingKey(),p=e.getPrevSiblingKey(),h=r.getParentKey(),d=o?r.getNextSiblingKey():s,v=o?s:r.getPrevSiblingKey();return t.withMutations((function(t){c(l,t,(function(t){var e=t.getChildKeys();return t.merge({children:e.delete(e.indexOf(a))})})),c(p,t,(function(t){return t.merge({nextSibling:f})})),c(f,t,(function(t){return t.merge({prevSibling:p})})),c(d,t,(function(t){return t.merge({prevSibling:a})})),c(v,t,(function(t){return t.merge({nextSibling:a})})),c(h,t,(function(t){var e=t.getChildKeys(),r=e.indexOf(s),n=o?r+1:0!==r?r-1:0,i=e.toArray();return i.splice(n,0,a),t.merge({children:u(i)})})),c(a,t,(function(t){return t.merge({nextSibling:d,prevSibling:v,parent:h})}))}))};t.exports=function(t,e,r,o){"replace"===o&&a(!1);var u=r.getKey(),c=e.getKey();c===u&&a(!1);var f=t.getBlockMap(),p=e instanceof n,h=[e],d=f.delete(c);p&&(h=[],d=f.withMutations((function(t){var r=e.getNextSiblingKey(),n=i(e,t);t.toSeq().skipUntil((function(t){return t.getKey()===c})).takeWhile((function(t){var e=t.getKey(),i=e===c,o=r&&e!==r,a=!r&&t.getParentKey()&&(!n||e!==n);return!!(i||o||a)})).forEach((function(e){h.push(e),t.delete(e.getKey())}))})));var v=d.toSeq().takeUntil((function(t){return t===r})),g=d.toSeq().skipUntil((function(t){return t===r})).skip(1),y=h.map((function(t){return[t.getKey(),t]})),m=s();if("before"===o){var _=t.getBlockBefore(u);_&&_.getKey()===e.getKey()&&a(!1),m=v.concat([].concat(y,[[u,r]]),g).toOrderedMap()}else if("after"===o){var b=t.getBlockAfter(u);b&&b.getKey()===c&&a(!1),m=v.concat([[u,r]].concat(y),g).toOrderedMap()}return t.merge({blockMap:l(m,e,r,o,p),selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:c,focusKey:c})})}},46706:(t,e,r)=>{"use strict";var n=r(79504),i=r(79306);t.exports=function(t,e,r){try{return n(i(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},46884:(t,e,r)=>{"use strict";r.d(e,{current:()=>U,produce:()=>W});var n=Symbol.for("immer-nothing"),i=Symbol.for("immer-draftable"),o=Symbol.for("immer-state");function a(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var s=Object.getPrototypeOf;function u(t){return!!t&&!!t[o]}function c(t){return!!t&&(f(t)||Array.isArray(t)||!!t[i]||!!t.constructor?.[i]||g(t)||y(t))}var l=Object.prototype.constructor.toString();function f(t){if(!t||"object"!=typeof t)return!1;const e=s(t);if(null===e)return!0;const r=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===l}function p(t,e){0===h(t)?Reflect.ownKeys(t).forEach((r=>{e(r,t[r],t)})):t.forEach(((r,n)=>e(n,r,t)))}function h(t){const e=t[o];return e?e.type_:Array.isArray(t)?1:g(t)?2:y(t)?3:0}function d(t,e){return 2===h(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function v(t,e,r){const n=h(t);2===n?t.set(e,r):3===n?t.add(r):t[e]=r}function g(t){return t instanceof Map}function y(t){return t instanceof Set}function m(t){return t.copy_||t.base_}function _(t,e){if(g(t))return new Map(t);if(y(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);const r=f(t);if(!0===e||"class_only"===e&&!r){const e=Object.getOwnPropertyDescriptors(t);delete e[o];let r=Reflect.ownKeys(e);for(let n=0;n<r.length;n++){const i=r[n],o=e[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[i]})}return Object.create(s(t),e)}{const e=s(t);if(null!==e&&r)return{...t};const n=Object.create(e);return Object.assign(n,t)}}function b(t,e=!1){return w(t)||u(t)||!c(t)||(h(t)>1&&(t.set=t.add=t.clear=t.delete=S),Object.freeze(t),e&&Object.entries(t).forEach((([t,e])=>b(e,!0)))),t}function S(){a(2)}function w(t){return Object.isFrozen(t)}var x,E={};function M(t){const e=E[t];return e||a(0),e}function O(){return x}function k(t,e){e&&(M("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function C(t){D(t),t.drafts_.forEach(A),t.drafts_=null}function D(t){t===x&&(x=t.parent_)}function I(t){return x={drafts_:[],parent_:x,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function A(t){const e=t[o];0===e.type_||1===e.type_?e.revoke_():e.revoked_=!0}function R(t,e){e.unfinalizedDrafts_=e.drafts_.length;const r=e.drafts_[0];return void 0!==t&&t!==r?(r[o].modified_&&(C(e),a(4)),c(t)&&(t=T(e,t),e.parent_||B(e,t)),e.patches_&&M("Patches").generateReplacementPatches_(r[o].base_,t,e.patches_,e.inversePatches_)):t=T(e,r,[]),C(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==n?t:void 0}function T(t,e,r){if(w(e))return e;const n=e[o];if(!n)return p(e,((i,o)=>z(t,n,e,i,o,r))),e;if(n.scope_!==t)return e;if(!n.modified_)return B(t,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const e=n.copy_;let i=e,o=!1;3===n.type_&&(i=new Set(e),e.clear(),o=!0),p(i,((i,a)=>z(t,n,e,i,a,r,o))),B(t,e,!1),r&&t.patches_&&M("Patches").generatePatches_(n,r,t.patches_,t.inversePatches_)}return n.copy_}function z(t,e,r,n,i,o,a){if(u(i)){const a=T(t,i,o&&e&&3!==e.type_&&!d(e.assigned_,n)?o.concat(n):void 0);if(v(r,n,a),!u(a))return;t.canAutoFreeze_=!1}else a&&r.add(i);if(c(i)&&!w(i)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;T(t,i),e&&e.scope_.parent_||"symbol"==typeof n||!Object.prototype.propertyIsEnumerable.call(r,n)||B(t,i)}}function B(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&b(e,r)}var q={get(t,e){if(e===o)return t;const r=m(t);if(!d(r,e))return function(t,e,r){const n=L(e,r);return n?"value"in n?n.value:n.get?.call(t.draft_):void 0}(t,r,e);const n=r[e];return t.finalized_||!c(n)?n:n===j(t.base_,e)?(N(t),t.copy_[e]=F(n,t)):n},has:(t,e)=>e in m(t),ownKeys:t=>Reflect.ownKeys(m(t)),set(t,e,r){const n=L(m(t),e);if(n?.set)return n.set.call(t.draft_,r),!0;if(!t.modified_){const n=j(m(t),e),s=n?.[o];if(s&&s.base_===r)return t.copy_[e]=r,t.assigned_[e]=!1,!0;if(((i=r)===(a=n)?0!==i||1/i==1/a:i!=i&&a!=a)&&(void 0!==r||d(t.base_,e)))return!0;N(t),K(t)}var i,a;return t.copy_[e]===r&&(void 0!==r||e in t.copy_)||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_[e]=!0),!0},deleteProperty:(t,e)=>(void 0!==j(t.base_,e)||e in t.base_?(t.assigned_[e]=!1,N(t),K(t)):delete t.assigned_[e],t.copy_&&delete t.copy_[e],!0),getOwnPropertyDescriptor(t,e){const r=m(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n?{writable:!0,configurable:1!==t.type_||"length"!==e,enumerable:n.enumerable,value:r[e]}:n},defineProperty(){a(11)},getPrototypeOf:t=>s(t.base_),setPrototypeOf(){a(12)}},P={};function j(t,e){const r=t[o];return(r?m(r):t)[e]}function L(t,e){if(!(e in t))return;let r=s(t);for(;r;){const t=Object.getOwnPropertyDescriptor(r,e);if(t)return t;r=s(r)}}function K(t){t.modified_||(t.modified_=!0,t.parent_&&K(t.parent_))}function N(t){t.copy_||(t.copy_=_(t.base_,t.scope_.immer_.useStrictShallowCopy_))}p(q,((t,e)=>{P[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),P.deleteProperty=function(t,e){return P.set.call(this,t,e,void 0)},P.set=function(t,e,r){return q.set.call(this,t[0],e,r,t[0])};function F(t,e){const r=g(t)?M("MapSet").proxyMap_(t,e):y(t)?M("MapSet").proxySet_(t,e):function(t,e){const r=Array.isArray(t),n={type_:r?1:0,scope_:e?e.scope_:O(),modified_:!1,finalized_:!1,assigned_:{},parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,o=q;r&&(i=[n],o=P);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return n.draft_=s,n.revoke_=a,s}(t,e);return(e?e.scope_:O()).drafts_.push(r),r}function U(t){return u(t)||a(10),G(t)}function G(t){if(!c(t)||w(t))return t;const e=t[o];let r;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=_(t,e.scope_.immer_.useStrictShallowCopy_)}else r=_(t,!0);return p(r,((t,e)=>{v(r,t,G(e))})),e&&(e.finalized_=!1),r}var H=new class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,e,r)=>{if("function"==typeof t&&"function"!=typeof e){const r=e;e=t;const n=this;return function(t=r,...i){return n.produce(t,(t=>e.call(this,t,...i)))}}let i;if("function"!=typeof e&&a(6),void 0!==r&&"function"!=typeof r&&a(7),c(t)){const n=I(this),o=F(t,void 0);let a=!0;try{i=e(o),a=!1}finally{a?C(n):D(n)}return k(n,r),R(i,n)}if(!t||"object"!=typeof t){if(i=e(t),void 0===i&&(i=t),i===n&&(i=void 0),this.autoFreeze_&&b(i,!0),r){const e=[],n=[];M("Patches").generateReplacementPatches_(t,i,e,n),r(e,n)}return i}a(1)},this.produceWithPatches=(t,e)=>{if("function"==typeof t)return(e,...r)=>this.produceWithPatches(e,(e=>t(e,...r)));let r,n;return[this.produce(t,e,((t,e)=>{r=t,n=e})),r,n]},"boolean"==typeof t?.autoFreeze&&this.setAutoFreeze(t.autoFreeze),"boolean"==typeof t?.useStrictShallowCopy&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){c(t)||a(8),u(t)&&(t=U(t));const e=I(this),r=F(t,void 0);return r[o].isManual_=!0,D(e),r}finishDraft(t,e){const r=t&&t[o];r&&r.isManual_||a(9);const{scope_:n}=r;return k(n,e),R(void 0,n)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){const n=e[r];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}r>-1&&(e=e.slice(r+1));const n=M("Patches").applyPatches_;return u(t)?n(t,e):this.produce(t,(t=>n(t,e)))}},W=H.produce;H.produceWithPatches.bind(H),H.setAutoFreeze.bind(H),H.setUseStrictShallowCopy.bind(H),H.applyPatches.bind(H),H.createDraft.bind(H),H.finishDraft.bind(H)},46892:(t,e,r)=>{"use strict";var n=r(8748),i=r(13998);function o(t){return null==t?t:String(t)}t.exports=function(t,e){var r;if(window.getComputedStyle&&(r=window.getComputedStyle(t,null)))return o(r.getPropertyValue(i(e)));if(document.defaultView&&document.defaultView.getComputedStyle){if(r=document.defaultView.getComputedStyle(t,null))return o(r.getPropertyValue(i(e)));if("display"===e)return"none"}return t.currentStyle?o("float"===e?t.currentStyle.cssFloat||t.currentStyle.styleFloat:t.currentStyle[n(e)]):o(t.style&&t.style[n(e)])}},47217:(t,e,r)=>{"use strict";r.d(e,{FlagsProvider:()=>FlagsProvider,useFeature:()=>u,useFeatures:()=>s});var n=r(96540);function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i.apply(this,arguments)}var o=(0,n.createContext)({});function a(t){return Array.isArray(t)?Object.fromEntries(t.map((function(t){return[t,!0]}))):t}function FlagsProvider(t){var e,r,u=t.features,c=void 0===u?{}:u,l=t.children,f=s();return(0,n.createElement)(o.Provider,{value:(e=a(f),r=a(c),i({},e,r))},l)}function s(){return(0,n.useContext)(o)}function u(t){var e=s();return Array.isArray(e)?e.includes(t):"boolean"==typeof e[t]?e[t]:t.split("/").reduce((function(t,e){return"boolean"==typeof t?t:void 0!==t[e]&&t[e]}),e)}},47282:t=>{"use strict";t.exports=function(t){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[t]}},47378:(t,e,r)=>{"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=r(14134),o=r(88372),a=r(35389),s=r(77337),u=r(90646),c=r(56408),l=s.Map,f={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},p=i.isBrowser("IE <= 11"),h=function(){function DOMObserver(t){var e=this;n(this,"observer",void 0),n(this,"container",void 0),n(this,"mutations",void 0),n(this,"onCharData",void 0),this.container=t,this.mutations=l();var r=a(t);r.MutationObserver&&!p?this.observer=new r.MutationObserver((function(t){return e.registerMutations(t)})):this.onCharData=function(t){t.target instanceof Node||u(!1),e.registerMutation({type:"characterData",target:t.target})}}var t=DOMObserver.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,f):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var t=this.observer;t?(this.registerMutations(t.takeRecords()),t.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var e=this.mutations;return this.mutations=l(),e},t.registerMutations=function(t){for(var e=0;e<t.length;e++)this.registerMutation(t[e])},t.getMutationTextContent=function(t){var e=t.type,r=t.target,n=t.removedNodes;if("characterData"===e){if(""!==r.textContent)return p?r.textContent.replace("\n",""):r.textContent}else if("childList"===e){if(n&&n.length)return"";if(""!==r.textContent)return r.textContent}return null},t.registerMutation=function(t){var e=this.getMutationTextContent(t);if(null!=e){var r=c(o(t.target));this.mutations=this.mutations.set(r,e)}},DOMObserver}();t.exports=h},47381:(t,e,r)=>{"use strict";var n=r(12242),i=r(50580),o=r(58488),a=r(5188);t.exports=function(t){var e=a(t,(function(t){var e=t.getSelection(),r=t.getCurrentContent(),n=e.getAnchorKey(),a=e.getAnchorOffset(),s=r.getBlockForKey(n).getText()[a-1];return o(t,s?i.getUTF16Length(s,0):1)}),"backward");if(e===t.getCurrentContent())return t;var r=t.getSelection();return n.push(t,e.set("selectionBefore",r),r.isCollapsed()?"backspace-character":"remove-range")}},47478:(t,e,r)=>{"use strict";r.d(e,{default:()=>u});const n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let i;const o=new Uint8Array(16);const a=[];for(let t=0;t<256;++t)a.push((t+256).toString(16).slice(1));function s(t,e=0){return(a[t[e+0]]+a[t[e+1]]+a[t[e+2]]+a[t[e+3]]+"-"+a[t[e+4]]+a[t[e+5]]+"-"+a[t[e+6]]+a[t[e+7]]+"-"+a[t[e+8]]+a[t[e+9]]+"-"+a[t[e+10]]+a[t[e+11]]+a[t[e+12]]+a[t[e+13]]+a[t[e+14]]+a[t[e+15]]).toLowerCase()}const u=function(t,e,r){if(n.randomUUID&&!e&&!t)return n.randomUUID();const a=(t=t||{}).random??t.rng?.()??function(){if(!i){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");i=crypto.getRandomValues.bind(crypto)}return i(o)}();if(a.length<16)throw new Error("Random bytes length must be >= 16");if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e){if((r=r||0)<0||r+16>e.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let t=0;t<16;++t)e[r+t]=a[t];return e}return s(a)}},48136:(t,e,r)=>{"use strict";var n=r(49938),i=r(12242),o=r(59414),a=r(45852),s=r(45170),u=r(14134),c=r(73680),l=r(88771),f=r(94143),p=r(70525),h=r(64071),d=r(15169),v=r(20070),g=r(47381),y=r(2383),m=r(25935),_=r(8976),b=o.isOptionKeyCommand,S=u.isBrowser("Chrome");t.exports=function(t,e){var r=e.which,o=t._latestEditorState;function u(r){var n=t.props[r];return!!n&&(n(e),!0)}switch(r){case a.RETURN:if(e.preventDefault(),t.props.handleReturn&&c(t.props.handleReturn(e,o)))return;break;case a.ESC:if(e.preventDefault(),u("onEscape"))return;break;case a.TAB:if(u("onTab"))return;break;case a.UP:if(u("onUpArrow"))return;break;case a.RIGHT:if(u("onRightArrow"))return;break;case a.DOWN:if(u("onDownArrow"))return;break;case a.LEFT:if(u("onLeftArrow"))return;break;case a.SPACE:S&&b(e)&&e.preventDefault()}var w=t.props.keyBindingFn(e);if(null!=w&&""!==w)if("undo"!==w){if(e.preventDefault(),!t.props.handleKeyCommand||!c(t.props.handleKeyCommand(w,o,e.timeStamp))){var x=function(t,e,r){switch(t){case"redo":return i.redo(e);case"delete":return y(e);case"delete-word":return p(e);case"backspace":return g(e);case"backspace-word":return f(e);case"backspace-to-start-of-line":return l(e,r);case"split-block":return h(e);case"transpose-characters":return m(e);case"move-selection-to-start-of-block":return v(e);case"move-selection-to-end-of-block":return d(e);case"secondary-cut":return s.cut(e);case"secondary-paste":return s.paste(e);default:return e}}(w,o,e);x!==o&&t.update(x)}}else _(e,o,t.update);else if(r===a.SPACE&&S&&b(e)){var E=n.replaceText(o.getCurrentContent(),o.getSelection()," ");t.update(i.push(o,E,"insert-characters"))}}},49568:(t,e,r)=>{"use strict";r.d(e,{List:()=>Ve,Map:()=>xe,OrderedSet:()=>Wr,Repeat:()=>on,Seq:()=>H,is:()=>st});var n="delete",i=32,o=31,a={};function SetRef(t){t&&(t.value=!0)}function OwnerID(){}function s(t){return void 0===t.size&&(t.size=t.__iterate(c)),t.size}function u(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return e<0?s(t)+e:e}function c(){return!0}function l(t,e,r){return(0===t&&!d(t)||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function f(t,e){return h(t,e,0)}function p(t,e){return h(t,e,e)}function h(t,e,r){return void 0===t?r:d(t)?e===1/0?e:0|Math.max(0,e+t):void 0===e||e===t?t:0|Math.min(e,t)}function d(t){return t<0||0===t&&1/t==-1/0}var v="@@__IMMUTABLE_ITERABLE__@@";function g(t){return Boolean(t&&t[v])}var y="@@__IMMUTABLE_KEYED__@@";function m(t){return Boolean(t&&t[y])}var _="@@__IMMUTABLE_INDEXED__@@";function b(t){return Boolean(t&&t[_])}function S(t){return m(t)||b(t)}var w=function Collection(t){return g(t)?t:H(t)},x=function(t){function KeyedCollection(t){return m(t)?t:W(t)}return t&&(KeyedCollection.__proto__=t),KeyedCollection.prototype=Object.create(t&&t.prototype),KeyedCollection.prototype.constructor=KeyedCollection,KeyedCollection}(w),E=function(t){function IndexedCollection(t){return b(t)?t:V(t)}return t&&(IndexedCollection.__proto__=t),IndexedCollection.prototype=Object.create(t&&t.prototype),IndexedCollection.prototype.constructor=IndexedCollection,IndexedCollection}(w),M=function(t){function SetCollection(t){return g(t)&&!S(t)?t:X(t)}return t&&(SetCollection.__proto__=t),SetCollection.prototype=Object.create(t&&t.prototype),SetCollection.prototype.constructor=SetCollection,SetCollection}(w);w.Keyed=x,w.Indexed=E,w.Set=M;var O="@@__IMMUTABLE_SEQ__@@";function k(t){return Boolean(t&&t[O])}var C="@@__IMMUTABLE_RECORD__@@";function D(t){return Boolean(t&&t[C])}function I(t){return g(t)||D(t)}var A="@@__IMMUTABLE_ORDERED__@@";function R(t){return Boolean(t&&t[A])}var T="function"==typeof Symbol&&Symbol.iterator,z="@@iterator",B=T||z,q=function Iterator(t){this.next=t};function P(t,e,r,n){var i=0===t?e:1===t?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function j(){return{value:void 0,done:!0}}function L(t){return!!Array.isArray(t)||!!F(t)}function K(t){return t&&"function"==typeof t.next}function N(t){var e=F(t);return e&&e.call(t)}function F(t){var e=t&&(T&&t[T]||t[z]);if("function"==typeof e)return e}q.prototype.toString=function(){return"[Iterator]"},q.KEYS=0,q.VALUES=1,q.ENTRIES=2,q.prototype.inspect=q.prototype.toSource=function(){return this.toString()},q.prototype[B]=function(){return this};var U=Object.prototype.hasOwnProperty;function G(t){return!(!Array.isArray(t)&&"string"!=typeof t)||t&&"object"==typeof t&&Number.isInteger(t.length)&&t.length>=0&&(0===t.length?1===Object.keys(t).length:t.hasOwnProperty(t.length-1))}var H=function(t){function Seq(t){return null==t?Q():I(t)?t.toSeq():function(t){var e=rt(t);if(e)return(n=F(r=t))&&n===r.entries?e.fromEntrySeq():function(t){var e=F(t);return e&&e===t.keys}(t)?e.toSetSeq():e;var r,n;if("object"==typeof t)return new $(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}(t)}return t&&(Seq.__proto__=t),Seq.prototype=Object.create(t&&t.prototype),Seq.prototype.constructor=Seq,Seq.prototype.toSeq=function(){return this},Seq.prototype.toString=function(){return this.__toString("Seq {","}")},Seq.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Seq.prototype.__iterate=function __iterate(t,e){var r=this._cache;if(r){for(var n=r.length,i=0;i!==n;){var o=r[e?n-++i:i++];if(!1===t(o[1],o[0],this))break}return i}return this.__iterateUncached(t,e)},Seq.prototype.__iterator=function __iterator(t,e){var r=this._cache;if(r){var n=r.length,i=0;return new q((function(){if(i===n)return{value:void 0,done:!0};var o=r[e?n-++i:i++];return P(t,o[0],o[1])}))}return this.__iteratorUncached(t,e)},Seq}(w),W=function(t){function KeyedSeq(t){return null==t?Q().toKeyedSeq():g(t)?m(t)?t.toSeq():t.fromEntrySeq():D(t)?t.toSeq():tt(t)}return t&&(KeyedSeq.__proto__=t),KeyedSeq.prototype=Object.create(t&&t.prototype),KeyedSeq.prototype.constructor=KeyedSeq,KeyedSeq.prototype.toKeyedSeq=function(){return this},KeyedSeq}(H),V=function(t){function IndexedSeq(t){return null==t?Q():g(t)?m(t)?t.entrySeq():t.toIndexedSeq():D(t)?t.toSeq().entrySeq():et(t)}return t&&(IndexedSeq.__proto__=t),IndexedSeq.prototype=Object.create(t&&t.prototype),IndexedSeq.prototype.constructor=IndexedSeq,IndexedSeq.of=function(){return IndexedSeq(arguments)},IndexedSeq.prototype.toIndexedSeq=function(){return this},IndexedSeq.prototype.toString=function(){return this.__toString("Seq [","]")},IndexedSeq}(H),X=function(t){function SetSeq(t){return(g(t)&&!S(t)?t:V(t)).toSetSeq()}return t&&(SetSeq.__proto__=t),SetSeq.prototype=Object.create(t&&t.prototype),SetSeq.prototype.constructor=SetSeq,SetSeq.of=function(){return SetSeq(arguments)},SetSeq.prototype.toSetSeq=function(){return this},SetSeq}(H);H.isSeq=k,H.Keyed=W,H.Set=X,H.Indexed=V,H.prototype[O]=!0;var Y=function(t){function ArraySeq(t){this._array=t,this.size=t.length}return t&&(ArraySeq.__proto__=t),ArraySeq.prototype=Object.create(t&&t.prototype),ArraySeq.prototype.constructor=ArraySeq,ArraySeq.prototype.get=function(t,e){return this.has(t)?this._array[u(this,t)]:e},ArraySeq.prototype.__iterate=function __iterate(t,e){for(var r=this._array,n=r.length,i=0;i!==n;){var o=e?n-++i:i++;if(!1===t(r[o],o,this))break}return i},ArraySeq.prototype.__iterator=function __iterator(t,e){var r=this._array,n=r.length,i=0;return new q((function(){if(i===n)return{value:void 0,done:!0};var o=e?n-++i:i++;return P(t,o,r[o])}))},ArraySeq}(V),$=function(t){function ObjectSeq(t){var e=Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]);this._object=t,this._keys=e,this.size=e.length}return t&&(ObjectSeq.__proto__=t),ObjectSeq.prototype=Object.create(t&&t.prototype),ObjectSeq.prototype.constructor=ObjectSeq,ObjectSeq.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},ObjectSeq.prototype.has=function(t){return U.call(this._object,t)},ObjectSeq.prototype.__iterate=function __iterate(t,e){for(var r=this._object,n=this._keys,i=n.length,o=0;o!==i;){var a=n[e?i-++o:o++];if(!1===t(r[a],a,this))break}return o},ObjectSeq.prototype.__iterator=function __iterator(t,e){var r=this._object,n=this._keys,i=n.length,o=0;return new q((function(){if(o===i)return{value:void 0,done:!0};var a=n[e?i-++o:o++];return P(t,a,r[a])}))},ObjectSeq}(W);$.prototype[A]=!0;var J,Z=function(t){function CollectionSeq(t){this._collection=t,this.size=t.length||t.size}return t&&(CollectionSeq.__proto__=t),CollectionSeq.prototype=Object.create(t&&t.prototype),CollectionSeq.prototype.constructor=CollectionSeq,CollectionSeq.prototype.__iterateUncached=function __iterateUncached(t,e){if(e)return this.cacheResult().__iterate(t,e);var r=N(this._collection),n=0;if(K(r))for(var i;!(i=r.next()).done&&!1!==t(i.value,n++,this););return n},CollectionSeq.prototype.__iteratorUncached=function __iteratorUncached(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=N(this._collection);if(!K(r))return new q(j);var n=0;return new q((function(){var e=r.next();return e.done?e:P(t,n++,e.value)}))},CollectionSeq}(V);function Q(){return J||(J=new Y([]))}function tt(t){var e=rt(t);if(e)return e.fromEntrySeq();if("object"==typeof t)return new $(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function et(t){var e=rt(t);if(e)return e;throw new TypeError("Expected Array or collection object of values: "+t)}function rt(t){return G(t)?new Y(t):L(t)?new Z(t):void 0}var nt="@@__IMMUTABLE_MAP__@@";function it(t){return Boolean(t&&t[nt])}function ot(t){return it(t)&&R(t)}function at(t){return Boolean(t&&"function"==typeof t.equals&&"function"==typeof t.hashCode)}function st(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!!(at(t)&&at(e)&&t.equals(e))}var ut="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var r=65535&(t|=0),n=65535&(e|=0);return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0};function ct(t){return t>>>1&1073741824|3221225471&t}var lt=Object.prototype.valueOf;function ft(t){if(null==t)return pt(t);if("function"==typeof t.hashCode)return ct(t.hashCode(t));var e,r=(e=t).valueOf!==lt&&"function"==typeof e.valueOf?e.valueOf(e):e;if(null==r)return pt(r);switch(typeof r){case"boolean":return r?1108378657:1108378656;case"number":return function(t){if(t!=t||t===1/0)return 0;var e=0|t;e!==t&&(e^=4294967295*t);for(;t>4294967295;)e^=t/=4294967295;return ct(e)}(r);case"string":return r.length>wt?function(t){var e=Mt[t];void 0===e&&(e=ht(t),Et===xt&&(Et=0,Mt={}),Et++,Mt[t]=e);return e}(r):ht(r);case"object":case"function":return function(t){var e;if(mt&&void 0!==(e=yt.get(t)))return e;if(e=t[St],void 0!==e)return e;if(!vt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[St]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=gt(),mt)yt.set(t,e);else{if(void 0!==dt&&!1===dt(t))throw new Error("Non-extensible objects are not allowed as keys.");if(vt)Object.defineProperty(t,St,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[St]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[St]=e}}return e}(r);case"symbol":return function(t){var e=_t[t];if(void 0!==e)return e;return e=gt(),_t[t]=e,e}(r);default:if("function"==typeof r.toString)return ht(r.toString());throw new Error("Value type "+typeof r+" cannot be hashed.")}}function pt(t){return null===t?1108378658:1108378659}function ht(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return ct(e)}var dt=Object.isExtensible,vt=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();function gt(){var t=++bt;return 1073741824&bt&&(bt=0),t}var yt,mt="function"==typeof WeakMap;mt&&(yt=new WeakMap);var _t=Object.create(null),bt=0,St="__immutablehash__";"function"==typeof Symbol&&(St=Symbol(St));var wt=16,xt=255,Et=0,Mt={},Ot=function(t){function ToKeyedSequence(t,e){this._iter=t,this._useKeys=e,this.size=t.size}return t&&(ToKeyedSequence.__proto__=t),ToKeyedSequence.prototype=Object.create(t&&t.prototype),ToKeyedSequence.prototype.constructor=ToKeyedSequence,ToKeyedSequence.prototype.get=function(t,e){return this._iter.get(t,e)},ToKeyedSequence.prototype.has=function(t){return this._iter.has(t)},ToKeyedSequence.prototype.valueSeq=function(){return this._iter.valueSeq()},ToKeyedSequence.prototype.reverse=function(){var t=this,e=Rt(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},ToKeyedSequence.prototype.map=function(t,e){var r=this,n=At(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},ToKeyedSequence.prototype.__iterate=function __iterate(t,e){var r=this;return this._iter.__iterate((function(e,n){return t(e,n,r)}),e)},ToKeyedSequence.prototype.__iterator=function __iterator(t,e){return this._iter.__iterator(t,e)},ToKeyedSequence}(W);Ot.prototype[A]=!0;var kt=function(t){function ToIndexedSequence(t){this._iter=t,this.size=t.size}return t&&(ToIndexedSequence.__proto__=t),ToIndexedSequence.prototype=Object.create(t&&t.prototype),ToIndexedSequence.prototype.constructor=ToIndexedSequence,ToIndexedSequence.prototype.includes=function(t){return this._iter.includes(t)},ToIndexedSequence.prototype.__iterate=function __iterate(t,e){var r=this,n=0;return e&&s(this),this._iter.__iterate((function(i){return t(i,e?r.size-++n:n++,r)}),e)},ToIndexedSequence.prototype.__iterator=function __iterator(t,e){var r=this,n=this._iter.__iterator(1,e),i=0;return e&&s(this),new q((function(){var o=n.next();return o.done?o:P(t,e?r.size-++i:i++,o.value,o)}))},ToIndexedSequence}(V),Ct=function(t){function ToSetSequence(t){this._iter=t,this.size=t.size}return t&&(ToSetSequence.__proto__=t),ToSetSequence.prototype=Object.create(t&&t.prototype),ToSetSequence.prototype.constructor=ToSetSequence,ToSetSequence.prototype.has=function(t){return this._iter.includes(t)},ToSetSequence.prototype.__iterate=function __iterate(t,e){var r=this;return this._iter.__iterate((function(e){return t(e,e,r)}),e)},ToSetSequence.prototype.__iterator=function __iterator(t,e){var r=this._iter.__iterator(1,e);return new q((function(){var e=r.next();return e.done?e:P(t,e.value,e.value,e)}))},ToSetSequence}(X),Dt=function(t){function FromEntriesSequence(t){this._iter=t,this.size=t.size}return t&&(FromEntriesSequence.__proto__=t),FromEntriesSequence.prototype=Object.create(t&&t.prototype),FromEntriesSequence.prototype.constructor=FromEntriesSequence,FromEntriesSequence.prototype.entrySeq=function(){return this._iter.toSeq()},FromEntriesSequence.prototype.__iterate=function __iterate(t,e){var r=this;return this._iter.__iterate((function(e){if(e){Ft(e);var n=g(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}}),e)},FromEntriesSequence.prototype.__iterator=function __iterator(t,e){var r=this._iter.__iterator(1,e);return new q((function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){Ft(n);var i=g(n);return P(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}}))},FromEntriesSequence}(W);function It(t){var e=Gt(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=Ht,e.__iterateUncached=function(e,r){var n=this;return t.__iterate((function(t,r){return!1!==e(r,t,n)}),r)},e.__iteratorUncached=function(e,r){if(2===e){var n=t.__iterator(e,r);return new q((function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t}))}return t.__iterator(1===e?0:1,r)},e}function At(t,e,r){var n=Gt(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,a);return o===a?i:e.call(r,o,n,t)},n.__iterateUncached=function(n,i){var o=this;return t.__iterate((function(t,i,a){return!1!==n(e.call(r,t,i,a),i,o)}),i)},n.__iteratorUncached=function(n,i){var o=t.__iterator(2,i);return new q((function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return P(n,s,e.call(r,a[1],s,t),i)}))},n}function Rt(t,e){var r=this,n=Gt(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=It(t);return e.reverse=function(){return t.flip()},e}),n.get=function(r,n){return t.get(e?r:-1-r,n)},n.has=function(r){return t.has(e?r:-1-r)},n.includes=function(e){return t.includes(e)},n.cacheResult=Ht,n.__iterate=function(r,n){var i=this,o=0;return n&&s(t),t.__iterate((function(t,a){return r(t,e?a:n?i.size-++o:o++,i)}),!n)},n.__iterator=function(n,i){var o=0;i&&s(t);var a=t.__iterator(2,!i);return new q((function(){var t=a.next();if(t.done)return t;var s=t.value;return P(n,e?s[0]:i?r.size-++o:o++,s[1],t)}))},n}function Tt(t,e,r,n){var i=Gt(t);return n&&(i.has=function(n){var i=t.get(n,a);return i!==a&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,a);return o!==a&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return t.__iterate((function(t,o,u){if(e.call(r,t,o,u))return s++,i(t,n?o:s-1,a)}),o),s},i.__iteratorUncached=function(i,o){var a=t.__iterator(2,o),s=0;return new q((function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,c=u[0],l=u[1];if(e.call(r,l,c,t))return P(i,n?c:s++,l,o)}}))},i}function zt(t,e,r,n){var i=t.size;if(l(e,r,i))return t;if(void 0===i&&(e<0||r<0))return zt(t.toSeq().cacheResult(),e,r,n);var o,a=f(e,i),s=p(r,i)-a;s==s&&(o=s<0?0:s);var c=Gt(t);return c.size=0===o?o:t.size&&o||void 0,!n&&k(t)&&o>=0&&(c.get=function(e,r){return(e=u(this,e))>=0&&e<o?t.get(e+a,r):r}),c.__iterateUncached=function(e,r){var i=this;if(0===o)return 0;if(r)return this.cacheResult().__iterate(e,r);var s=0,u=!0,c=0;return t.__iterate((function(t,r){if(!u||!(u=s++<a))return c++,!1!==e(t,n?r:c-1,i)&&c!==o})),c},c.__iteratorUncached=function(e,r){if(0!==o&&r)return this.cacheResult().__iterator(e,r);if(0===o)return new q(j);var i=t.__iterator(e,r),s=0,u=0;return new q((function(){for(;s++<a;)i.next();if(++u>o)return{value:void 0,done:!0};var t=i.next();return n||1===e||t.done?t:P(e,u-1,0===e?void 0:t.value[1],t)}))},c}function Bt(t,e,r,n){var i=Gt(t);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return t.__iterate((function(t,o,c){if(!s||!(s=e.call(r,t,o,c)))return u++,i(t,n?o:u-1,a)})),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(2,o),u=!0,c=0;return new q((function(){var t,o,l;do{if((t=s.next()).done)return n||1===i?t:P(i,c++,0===i?void 0:t.value[1],t);var f=t.value;o=f[0],l=f[1],u&&(u=e.call(r,l,o,a))}while(u);return 2===i?t:P(i,o,l,t)}))},i}function qt(t,e,r){var n=Gt(t);return n.__iterateUncached=function(i,o){if(o)return this.cacheResult().__iterate(i,o);var a=0,s=!1;return function t(u,c){u.__iterate((function(o,u){return(!e||c<e)&&g(o)?t(o,c+1):(a++,!1===i(o,r?u:a-1,n)&&(s=!0)),!s}),o)}(t,0),a},n.__iteratorUncached=function(n,i){if(i)return this.cacheResult().__iterator(n,i);var o=t.__iterator(n,i),a=[],s=0;return new q((function(){for(;o;){var t=o.next();if(!1===t.done){var u=t.value;if(2===n&&(u=u[1]),e&&!(a.length<e)||!g(u))return r?t:P(n,s++,u,t);a.push(o),o=u.__iterator(n,i)}else o=a.pop()}return{value:void 0,done:!0}}))},n}function Pt(t,e,r){e||(e=Wt);var n=m(t),i=0,o=t.toSeq().map((function(e,n){return[n,e,i++,r?r(e,n,t):e]})).valueSeq().toArray();return o.sort((function(t,r){return e(t[3],r[3])||t[2]-r[2]})).forEach(n?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),n?W(o):b(t)?V(o):X(o)}function jt(t,e,r){if(e||(e=Wt),r){var n=t.toSeq().map((function(e,n){return[e,r(e,n,t)]})).reduce((function(t,r){return Lt(e,t[1],r[1])?r:t}));return n&&n[0]}return t.reduce((function(t,r){return Lt(e,t,r)?r:t}))}function Lt(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(null==r||r!=r)||n>0}function Kt(t,e,r,n){var i=Gt(t),o=new Y(r).map((function(t){return t.size}));return i.size=n?o.max():o.min(),i.__iterate=function(t,e){for(var r,n=this.__iterator(1,e),i=0;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},i.__iteratorUncached=function(t,i){var o=r.map((function(t){return t=w(t),N(i?t.reverse():t)})),a=0,s=!1;return new q((function(){var r;return s||(r=o.map((function(t){return t.next()})),s=n?r.every((function(t){return t.done})):r.some((function(t){return t.done}))),s?{value:void 0,done:!0}:P(t,a++,e.apply(null,r.map((function(t){return t.value}))))}))},i}function Nt(t,e){return t===e?t:k(t)?e:t.constructor(e)}function Ft(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Ut(t){return m(t)?x:b(t)?E:M}function Gt(t){return Object.create((m(t)?W:b(t)?V:X).prototype)}function Ht(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):H.prototype.cacheResult.call(this)}function Wt(t,e){return void 0===t&&void 0===e?0:void 0===t?1:void 0===e?-1:t>e?1:t<e?-1:0}function Vt(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=new Array(r),i=0;i<r;i++)n[i]=t[i+e];return n}function Xt(t,e){if(!t)throw new Error(e)}function Yt(t){Xt(t!==1/0,"Cannot perform this action with an infinite size.")}function $t(t){if(G(t)&&"string"!=typeof t)return t;if(R(t))return t.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+t)}kt.prototype.cacheResult=Ot.prototype.cacheResult=Ct.prototype.cacheResult=Dt.prototype.cacheResult=Ht;var Jt=Object.prototype.toString;function Zt(t){if(!t||"object"!=typeof t||"[object Object]"!==Jt.call(t))return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var r=e,n=Object.getPrototypeOf(e);null!==n;)r=n,n=Object.getPrototypeOf(r);return r===e}function Qt(t){return"object"==typeof t&&(I(t)||Array.isArray(t)||Zt(t))}function te(t){try{return"string"==typeof t?JSON.stringify(t):String(t)}catch(e){return JSON.stringify(t)}}function ee(t,e,r){return I(t)?t.get(e,r):function(t,e){return I(t)?t.has(e):Qt(t)&&U.call(t,e)}(t,e)?"function"==typeof t.get?t.get(e):t[e]:r}function re(t){if(Array.isArray(t))return Vt(t);var e={};for(var r in t)U.call(t,r)&&(e[r]=t[r]);return e}function ne(t,e,r,n){n||(n=r,r=void 0);var i=ie(I(t),t,$t(e),0,r,n);return i===a?r:i}function ie(t,e,r,n,i,o){var s=e===a;if(n===r.length){var u=s?i:e,c=o(u);return c===u?e:c}if(!s&&!Qt(e))throw new TypeError("Cannot update within non-data-structure value in path ["+r.slice(0,n).map(te)+"]: "+e);var l=r[n],f=s?a:ee(e,l,a),p=ie(f===a?t:I(f),f,r,n+1,i,o);return p===f?e:p===a?function(t,e){if(!Qt(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(I(t)){if(!t.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+t);return t.remove(e)}if(!U.call(t,e))return t;var r=re(t);return Array.isArray(r)?r.splice(e,1):delete r[e],r}(e,l):function(t,e,r){if(!Qt(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(I(t)){if(!t.set)throw new TypeError("Cannot update immutable value without .set() method: "+t);return t.set(e,r)}if(U.call(t,e)&&r===t[e])return t;var n=re(t);return n[e]=r,n}(s?t?Be():{}:e,l,p)}function oe(t,e){return function(t,e,r){return ne(t,e,a,(function(){return r}))}(this,t,e)}function ae(t){return function(t,e){return ne(t,e,(function(){return a}))}(this,t)}function se(t,e,r,n){return ne(t,[e],r,n)}function ue(t,e,r){return 1===arguments.length?t(this):se(this,t,e,r)}function ce(t,e,r){return ne(this,t,e,r)}function le(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return pe(this,t)}function fe(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];if("function"!=typeof t)throw new TypeError("Invalid merger function: "+t);return pe(this,e,t)}function pe(t,e,r){for(var n=[],i=0;i<e.length;i++){var o=x(e[i]);0!==o.size&&n.push(o)}return 0===n.length?t:0!==t.toSeq().size||t.__ownerID||1!==n.length?t.withMutations((function(t){for(var e=r?function(e,n){se(t,n,a,(function(t){return t===a?e:r(t,e,n)}))}:function(e,r){t.set(r,e)},i=0;i<n.length;i++)n[i].forEach(e)})):t.constructor(n[0])}function he(t,e,r){return de(t,e,function(t){function e(r,n,i){return Qt(r)&&Qt(n)&&(o=n,a=H(r),s=H(o),b(a)===b(s)&&m(a)===m(s))?de(r,[n],e):t?t(r,n,i):n;var o,a,s}return e}(r))}function de(t,e,r){if(!Qt(t))throw new TypeError("Cannot merge into non-data-structure value: "+t);if(I(t))return"function"==typeof r&&t.mergeWith?t.mergeWith.apply(t,[r].concat(e)):t.merge?t.merge.apply(t,e):t.concat.apply(t,e);for(var n=Array.isArray(t),i=t,o=n?E:x,a=n?function(e){i===t&&(i=re(i)),i.push(e)}:function(e,n){var o=U.call(i,n),a=o&&r?r(i[n],e,n):e;o&&a===i[n]||(i===t&&(i=re(i)),i[n]=a)},s=0;s<e.length;s++)o(e[s]).forEach(a);return i}function ve(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return he(this,t)}function ge(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return he(this,e,t)}function ye(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return ne(this,t,Be(),(function(t){return de(t,e)}))}function me(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return ne(this,t,Be(),(function(t){return he(t,e)}))}function _e(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this}function be(){return this.__ownerID?this:this.__ensureOwner(new OwnerID)}function Se(){return this.__ensureOwner()}function we(){return this.__altered}var xe=function(t){function Map(e){return null==e?Be():it(e)&&!R(e)?e:Be().withMutations((function(r){var n=t(e);Yt(n.size),n.forEach((function(t,e){return r.set(e,t)}))}))}return t&&(Map.__proto__=t),Map.prototype=Object.create(t&&t.prototype),Map.prototype.constructor=Map,Map.prototype.toString=function(){return this.__toString("Map {","}")},Map.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},Map.prototype.set=function(t,e){return qe(this,t,e)},Map.prototype.remove=function(t){return qe(this,t,a)},Map.prototype.deleteAll=function(t){var e=w(t);return 0===e.size?this:this.withMutations((function(t){e.forEach((function(e){return t.remove(e)}))}))},Map.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Be()},Map.prototype.sort=function(t){return ar(Pt(this,t))},Map.prototype.sortBy=function(t,e){return ar(Pt(this,e,t))},Map.prototype.map=function(t,e){var r=this;return this.withMutations((function(n){n.forEach((function(i,o){n.set(o,t.call(e,i,o,r))}))}))},Map.prototype.__iterator=function __iterator(t,e){return new Ae(this,t,e)},Map.prototype.__iterate=function __iterate(t,e){var r=this,n=0;return this._root&&this._root.iterate((function(e){return n++,t(e[1],e[0],r)}),e),n},Map.prototype.__ensureOwner=function __ensureOwner(t){return t===this.__ownerID?this:t?ze(this.size,this._root,t,this.__hash):0===this.size?Be():(this.__ownerID=t,this.__altered=!1,this)},Map}(x);xe.isMap=it;var Ee=xe.prototype;Ee[nt]=!0,Ee[n]=Ee.remove,Ee.removeAll=Ee.deleteAll,Ee.setIn=oe,Ee.removeIn=Ee.deleteIn=ae,Ee.update=ue,Ee.updateIn=ce,Ee.merge=Ee.concat=le,Ee.mergeWith=fe,Ee.mergeDeep=ve,Ee.mergeDeepWith=ge,Ee.mergeIn=ye,Ee.mergeDeepIn=me,Ee.withMutations=_e,Ee.wasAltered=we,Ee.asImmutable=Se,Ee["@@transducer/init"]=Ee.asMutable=be,Ee["@@transducer/step"]=function(t,e){return t.set(e[0],e[1])},Ee["@@transducer/result"]=function(t){return t.asImmutable()};var Me=function ArrayMapNode(t,e){this.ownerID=t,this.entries=e};Me.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(st(r,i[o][0]))return i[o][1];return n},Me.prototype.update=function(t,e,r,n,i,o,s){for(var u=i===a,c=this.entries,l=0,f=c.length;l<f&&!st(n,c[l][0]);l++);var p=l<f;if(p?c[l][1]===i:u)return this;if(SetRef(s),(u||!p)&&SetRef(o),!u||1!==c.length){if(!p&&!u&&c.length>=Fe)return function(t,e,r,n){t||(t=new OwnerID);for(var i=new De(t,ft(r),[r,n]),o=0;o<e.length;o++){var a=e[o];i=i.update(t,0,void 0,a[0],a[1])}return i}(t,c,n,i);var h=t&&t===this.ownerID,d=h?c:Vt(c);return p?u?l===f-1?d.pop():d[l]=d.pop():d[l]=[n,i]:d.push([n,i]),h?(this.entries=d,this):new Me(t,d)}};var Oe=function BitmapIndexedNode(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r};Oe.prototype.get=function(t,e,r,n){void 0===e&&(e=ft(r));var i=1<<((0===t?e:e>>>t)&o),a=this.bitmap;return a&i?this.nodes[Ke(a&i-1)].get(t+5,e,r,n):n},Oe.prototype.update=function(t,e,r,n,s,u,c){void 0===r&&(r=ft(n));var l=(0===e?r:r>>>e)&o,f=1<<l,p=this.bitmap,h=!!(p&f);if(!h&&s===a)return this;var d=Ke(p&f-1),v=this.nodes,g=h?v[d]:void 0,y=Pe(g,t,e+5,r,n,s,u,c);if(y===g)return this;if(!h&&y&&v.length>=Ue)return function(t,e,r,n,o){for(var a=0,s=new Array(i),u=0;0!==r;u++,r>>>=1)s[u]=1&r?e[a++]:void 0;return s[n]=o,new ke(t,a+1,s)}(t,v,p,l,y);if(h&&!y&&2===v.length&&je(v[1^d]))return v[1^d];if(h&&y&&1===v.length&&je(y))return y;var m=t&&t===this.ownerID,_=h?y?p:p^f:p|f,b=h?y?Ne(v,d,y,m):function(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=new Array(n),o=0,a=0;a<n;a++)a===e&&(o=1),i[a]=t[a+o];return i}(v,d,m):function(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=new Array(i),a=0,s=0;s<i;s++)s===e?(o[s]=r,a=-1):o[s]=t[s+a];return o}(v,d,y,m);return m?(this.bitmap=_,this.nodes=b,this):new Oe(t,_,b)};var ke=function HashArrayMapNode(t,e,r){this.ownerID=t,this.count=e,this.nodes=r};ke.prototype.get=function(t,e,r,n){void 0===e&&(e=ft(r));var i=(0===t?e:e>>>t)&o,a=this.nodes[i];return a?a.get(t+5,e,r,n):n},ke.prototype.update=function(t,e,r,n,i,s,u){void 0===r&&(r=ft(n));var c=(0===e?r:r>>>e)&o,l=i===a,f=this.nodes,p=f[c];if(l&&!p)return this;var h=Pe(p,t,e+5,r,n,i,s,u);if(h===p)return this;var d=this.count;if(p){if(!h&&--d<Ge)return function(t,e,r,n){for(var i=0,o=0,a=new Array(r),s=0,u=1,c=e.length;s<c;s++,u<<=1){var l=e[s];void 0!==l&&s!==n&&(i|=u,a[o++]=l)}return new Oe(t,i,a)}(t,f,d,c)}else d++;var v=t&&t===this.ownerID,g=Ne(f,c,h,v);return v?(this.count=d,this.nodes=g,this):new ke(t,d,g)};var Ce=function HashCollisionNode(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r};Ce.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(st(r,i[o][0]))return i[o][1];return n},Ce.prototype.update=function(t,e,r,n,i,o,s){void 0===r&&(r=ft(n));var u=i===a;if(r!==this.keyHash)return u?this:(SetRef(s),SetRef(o),Le(this,t,e,r,[n,i]));for(var c=this.entries,l=0,f=c.length;l<f&&!st(n,c[l][0]);l++);var p=l<f;if(p?c[l][1]===i:u)return this;if(SetRef(s),(u||!p)&&SetRef(o),u&&2===f)return new De(t,this.keyHash,c[1^l]);var h=t&&t===this.ownerID,d=h?c:Vt(c);return p?u?l===f-1?d.pop():d[l]=d.pop():d[l]=[n,i]:d.push([n,i]),h?(this.entries=d,this):new Ce(t,this.keyHash,d)};var De=function ValueNode(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r};De.prototype.get=function(t,e,r,n){return st(r,this.entry[0])?this.entry[1]:n},De.prototype.update=function(t,e,r,n,i,o,s){var u=i===a,c=st(n,this.entry[0]);return(c?i===this.entry[1]:u)?this:(SetRef(s),u?void SetRef(o):c?t&&t===this.ownerID?(this.entry[1]=i,this):new De(t,this.keyHash,[n,i]):(SetRef(o),Le(this,t,e,ft(n),[n,i])))},Me.prototype.iterate=Ce.prototype.iterate=function(t,e){for(var r=this.entries,n=0,i=r.length-1;n<=i;n++)if(!1===t(r[e?i-n:n]))return!1},Oe.prototype.iterate=ke.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,i=r.length-1;n<=i;n++){var o=r[e?i-n:n];if(o&&!1===o.iterate(t,e))return!1}},De.prototype.iterate=function(t,e){return t(this.entry)};var Ie,Ae=function(t){function MapIterator(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&Te(t._root)}return t&&(MapIterator.__proto__=t),MapIterator.prototype=Object.create(t&&t.prototype),MapIterator.prototype.constructor=MapIterator,MapIterator.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var r=e.node,n=e.index++,i=void 0;if(r.entry){if(0===n)return Re(t,r.entry)}else if(r.entries){if(n<=(i=r.entries.length-1))return Re(t,r.entries[this._reverse?i-n:n])}else if(n<=(i=r.nodes.length-1)){var o=r.nodes[this._reverse?i-n:n];if(o){if(o.entry)return Re(t,o.entry);e=this._stack=Te(o,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}},MapIterator}(q);function Re(t,e){return P(t,e[0],e[1])}function Te(t,e){return{node:t,index:0,__prev:e}}function ze(t,e,r,n){var i=Object.create(Ee);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Be(){return Ie||(Ie=ze(0))}function qe(t,e,r){var n,i;if(t._root){var o={value:!1},s={value:!1};if(n=Pe(t._root,t.__ownerID,0,void 0,e,r,o,s),!s.value)return t;i=t.size+(o.value?r===a?-1:1:0)}else{if(r===a)return t;i=1,n=new Me(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?ze(i,n):Be()}function Pe(t,e,r,n,i,o,s,u){return t?t.update(e,r,n,i,o,s,u):o===a?t:(SetRef(u),SetRef(s),new De(e,n,[i,o]))}function je(t){return t.constructor===De||t.constructor===Ce}function Le(t,e,r,n,i){if(t.keyHash===n)return new Ce(e,n,[t.entry,i]);var a,s=(0===r?t.keyHash:t.keyHash>>>r)&o,u=(0===r?n:n>>>r)&o,c=s===u?[Le(t,e,r+5,n,i)]:(a=new De(e,n,i),s<u?[t,a]:[a,t]);return new Oe(e,1<<s|1<<u,c)}function Ke(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function Ne(t,e,r,n){var i=n?t:Vt(t);return i[e]=r,i}var Fe=8,Ue=16,Ge=8,He="@@__IMMUTABLE_LIST__@@";function We(t){return Boolean(t&&t[He])}var Ve=function(t){function List(e){var r=Qe();if(null==e)return r;if(We(e))return e;var n=t(e),o=n.size;return 0===o?r:(Yt(o),o>0&&o<i?Ze(0,o,5,null,new Ye(n.toArray())):r.withMutations((function(t){t.setSize(o),n.forEach((function(e,r){return t.set(r,e)}))})))}return t&&(List.__proto__=t),List.prototype=Object.create(t&&t.prototype),List.prototype.constructor=List,List.of=function(){return this(arguments)},List.prototype.toString=function(){return this.__toString("List [","]")},List.prototype.get=function(t,e){if((t=u(this,t))>=0&&t<this.size){var r=rr(this,t+=this._origin);return r&&r.array[t&o]}return e},List.prototype.set=function(t,e){return function(t,e,r){if(e=u(t,e),e!=e)return t;if(e>=t.size||e<0)return t.withMutations((function(t){e<0?nr(t,e).set(0,r):nr(t,0,e+1).set(e,r)}));e+=t._origin;var n=t._tail,i=t._root,o={value:!1};e>=ir(t._capacity)?n=tr(n,t.__ownerID,0,e,r,o):i=tr(i,t.__ownerID,t._level,e,r,o);if(!o.value)return t;if(t.__ownerID)return t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t;return Ze(t._origin,t._capacity,t._level,i,n)}(this,t,e)},List.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},List.prototype.insert=function(t,e){return this.splice(t,0,e)},List.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):Qe()},List.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(r){nr(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])}))},List.prototype.pop=function(){return nr(this,0,-1)},List.prototype.unshift=function(){var t=arguments;return this.withMutations((function(e){nr(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])}))},List.prototype.shift=function(){return nr(this,1)},List.prototype.concat=function(){for(var e=arguments,r=[],n=0;n<arguments.length;n++){var i=e[n],o=t("string"!=typeof i&&L(i)?i:[i]);0!==o.size&&r.push(o)}return 0===r.length?this:0!==this.size||this.__ownerID||1!==r.length?this.withMutations((function(t){r.forEach((function(e){return e.forEach((function(e){return t.push(e)}))}))})):this.constructor(r[0])},List.prototype.setSize=function(t){return nr(this,0,t)},List.prototype.map=function(t,e){var r=this;return this.withMutations((function(n){for(var i=0;i<r.size;i++)n.set(i,t.call(e,n.get(i),i,r))}))},List.prototype.slice=function(t,e){var r=this.size;return l(t,e,r)?this:nr(this,f(t,r),p(e,r))},List.prototype.__iterator=function __iterator(t,e){var r=e?this.size:0,n=Je(this,e);return new q((function(){var i=n();return i===$e?{value:void 0,done:!0}:P(t,e?--r:r++,i)}))},List.prototype.__iterate=function __iterate(t,e){for(var r,n=e?this.size:0,i=Je(this,e);(r=i())!==$e&&!1!==t(r,e?--n:n++,this););return n},List.prototype.__ensureOwner=function __ensureOwner(t){return t===this.__ownerID?this:t?Ze(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):0===this.size?Qe():(this.__ownerID=t,this.__altered=!1,this)},List}(E);Ve.isList=We;var Xe=Ve.prototype;Xe[He]=!0,Xe[n]=Xe.remove,Xe.merge=Xe.concat,Xe.setIn=oe,Xe.deleteIn=Xe.removeIn=ae,Xe.update=ue,Xe.updateIn=ce,Xe.mergeIn=ye,Xe.mergeDeepIn=me,Xe.withMutations=_e,Xe.wasAltered=we,Xe.asImmutable=Se,Xe["@@transducer/init"]=Xe.asMutable=be,Xe["@@transducer/step"]=function(t,e){return t.push(e)},Xe["@@transducer/result"]=function(t){return t.asImmutable()};var Ye=function VNode(t,e){this.array=t,this.ownerID=e};Ye.prototype.removeBefore=function(t,e,r){if(!(r&(1<<e+5)-1)||0===this.array.length)return this;var n=r>>>e&o;if(n>=this.array.length)return new Ye([],t);var i,a=0===n;if(e>0){var s=this.array[n];if((i=s&&s.removeBefore(t,e-5,r))===s&&a)return this}if(a&&!i)return this;var u=er(this,t);if(!a)for(var c=0;c<n;c++)u.array[c]=void 0;return i&&(u.array[n]=i),u},Ye.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e+5:i)||0===this.array.length)return this;var n,a=r-1>>>e&o;if(a>=this.array.length)return this;if(e>0){var s=this.array[a];if((n=s&&s.removeAfter(t,e-5,r))===s&&a===this.array.length-1)return this}var u=er(this,t);return u.array.splice(a+1),n&&(u.array[a]=n),u};var $e={};function Je(t,e){var r=t._origin,n=t._capacity,o=ir(n),a=t._tail;return s(t._root,t._level,0);function s(t,u,c){return 0===u?function(t,s){var u=s===o?a&&a.array:t&&t.array,c=s>r?0:r-s,l=n-s;l>i&&(l=i);return function(){if(c===l)return $e;var t=e?--l:c++;return u&&u[t]}}(t,c):function(t,o,a){var u,c=t&&t.array,l=a>r?0:r-a>>o,f=1+(n-a>>o);f>i&&(f=i);return function(){for(;;){if(u){var t=u();if(t!==$e)return t;u=null}if(l===f)return $e;var r=e?--f:l++;u=s(c&&c[r],o-5,a+(r<<o))}}}(t,u,c)}}function Ze(t,e,r,n,i,o,a){var s=Object.create(Xe);return s.size=e-t,s._origin=t,s._capacity=e,s._level=r,s._root=n,s._tail=i,s.__ownerID=o,s.__hash=a,s.__altered=!1,s}function Qe(){return Ze(0,0,5)}function tr(t,e,r,n,i,a){var s,u=n>>>r&o,c=t&&u<t.array.length;if(!c&&void 0===i)return t;if(r>0){var l=t&&t.array[u],f=tr(l,e,r-5,n,i,a);return f===l?t:((s=er(t,e)).array[u]=f,s)}return c&&t.array[u]===i?t:(a&&SetRef(a),s=er(t,e),void 0===i&&u===s.array.length-1?s.array.pop():s.array[u]=i,s)}function er(t,e){return e&&t&&e===t.ownerID?t:new Ye(t?t.array.slice():[],e)}function rr(t,e){if(e>=ir(t._capacity))return t._tail;if(e<1<<t._level+5){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&o],n-=5;return r}}function nr(t,e,r){void 0!==e&&(e|=0),void 0!==r&&(r|=0);var n=t.__ownerID||new OwnerID,i=t._origin,a=t._capacity,s=i+e,u=void 0===r?a:r<0?a+r:i+r;if(s===i&&u===a)return t;if(s>=u)return t.clear();for(var c=t._level,l=t._root,f=0;s+f<0;)l=new Ye(l&&l.array.length?[void 0,l]:[],n),f+=1<<(c+=5);f&&(s+=f,i+=f,u+=f,a+=f);for(var p=ir(a),h=ir(u);h>=1<<c+5;)l=new Ye(l&&l.array.length?[l]:[],n),c+=5;var d=t._tail,v=h<p?rr(t,u-1):h>p?new Ye([],n):d;if(d&&h>p&&s<a&&d.array.length){for(var g=l=er(l,n),y=c;y>5;y-=5){var m=p>>>y&o;g=g.array[m]=er(g.array[m],n)}g.array[p>>>5&o]=d}if(u<a&&(v=v&&v.removeAfter(n,0,u)),s>=h)s-=h,u-=h,c=5,l=null,v=v&&v.removeBefore(n,0,s);else if(s>i||h<p){for(f=0;l;){var _=s>>>c&o;if(_!==h>>>c&o)break;_&&(f+=(1<<c)*_),c-=5,l=l.array[_]}l&&s>i&&(l=l.removeBefore(n,c,s-f)),l&&h<p&&(l=l.removeAfter(n,c,h-f)),f&&(s-=f,u-=f)}return t.__ownerID?(t.size=u-s,t._origin=s,t._capacity=u,t._level=c,t._root=l,t._tail=v,t.__hash=void 0,t.__altered=!0,t):Ze(s,u,c,l,v)}function ir(t){return t<i?0:t-1>>>5<<5}var or,ar=function(t){function OrderedMap(t){return null==t?ur():ot(t)?t:ur().withMutations((function(e){var r=x(t);Yt(r.size),r.forEach((function(t,r){return e.set(r,t)}))}))}return t&&(OrderedMap.__proto__=t),OrderedMap.prototype=Object.create(t&&t.prototype),OrderedMap.prototype.constructor=OrderedMap,OrderedMap.of=function(){return this(arguments)},OrderedMap.prototype.toString=function(){return this.__toString("OrderedMap {","}")},OrderedMap.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},OrderedMap.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):ur()},OrderedMap.prototype.set=function(t,e){return cr(this,t,e)},OrderedMap.prototype.remove=function(t){return cr(this,t,a)},OrderedMap.prototype.__iterate=function __iterate(t,e){var r=this;return this._list.__iterate((function(e){return e&&t(e[1],e[0],r)}),e)},OrderedMap.prototype.__iterator=function __iterator(t,e){return this._list.fromEntrySeq().__iterator(t,e)},OrderedMap.prototype.__ensureOwner=function __ensureOwner(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?sr(e,r,t,this.__hash):0===this.size?ur():(this.__ownerID=t,this.__altered=!1,this._map=e,this._list=r,this)},OrderedMap}(xe);function sr(t,e,r,n){var i=Object.create(ar.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function ur(){return or||(or=sr(Be(),Qe()))}function cr(t,e,r){var n,o,s=t._map,u=t._list,c=s.get(e),l=void 0!==c;if(r===a){if(!l)return t;u.size>=i&&u.size>=2*s.size?(n=(o=u.filter((function(t,e){return void 0!==t&&c!==e}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(n.__ownerID=o.__ownerID=t.__ownerID)):(n=s.remove(e),o=c===u.size-1?u.pop():u.set(c,void 0))}else if(l){if(r===u.get(c)[1])return t;n=s,o=u.set(c,[e,r])}else n=s.set(e,u.size),o=u.set(u.size,[e,r]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=o,t.__hash=void 0,t.__altered=!0,t):sr(n,o)}ar.isOrderedMap=ot,ar.prototype[A]=!0,ar.prototype[n]=ar.prototype.remove;var lr="@@__IMMUTABLE_STACK__@@";function fr(t){return Boolean(t&&t[lr])}var pr=function(t){function Stack(t){return null==t?gr():fr(t)?t:gr().pushAll(t)}return t&&(Stack.__proto__=t),Stack.prototype=Object.create(t&&t.prototype),Stack.prototype.constructor=Stack,Stack.of=function(){return this(arguments)},Stack.prototype.toString=function(){return this.__toString("Stack [","]")},Stack.prototype.get=function(t,e){var r=this._head;for(t=u(this,t);r&&t--;)r=r.next;return r?r.value:e},Stack.prototype.peek=function(){return this._head&&this._head.value},Stack.prototype.push=function(){var t=arguments;if(0===arguments.length)return this;for(var e=this.size+arguments.length,r=this._head,n=arguments.length-1;n>=0;n--)r={value:t[n],next:r};return this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):vr(e,r)},Stack.prototype.pushAll=function(e){if(0===(e=t(e)).size)return this;if(0===this.size&&fr(e))return e;Yt(e.size);var r=this.size,n=this._head;return e.__iterate((function(t){r++,n={value:t,next:n}}),!0),this.__ownerID?(this.size=r,this._head=n,this.__hash=void 0,this.__altered=!0,this):vr(r,n)},Stack.prototype.pop=function(){return this.slice(1)},Stack.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):gr()},Stack.prototype.slice=function(e,r){if(l(e,r,this.size))return this;var n=f(e,this.size);if(p(r,this.size)!==this.size)return t.prototype.slice.call(this,e,r);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):vr(i,o)},Stack.prototype.__ensureOwner=function __ensureOwner(t){return t===this.__ownerID?this:t?vr(this.size,this._head,t,this.__hash):0===this.size?gr():(this.__ownerID=t,this.__altered=!1,this)},Stack.prototype.__iterate=function __iterate(t,e){var r=this;if(e)return new Y(this.toArray()).__iterate((function(e,n){return t(e,n,r)}),e);for(var n=0,i=this._head;i&&!1!==t(i.value,n++,this);)i=i.next;return n},Stack.prototype.__iterator=function __iterator(t,e){if(e)return new Y(this.toArray()).__iterator(t,e);var r=0,n=this._head;return new q((function(){if(n){var e=n.value;return n=n.next,P(t,r++,e)}return{value:void 0,done:!0}}))},Stack}(E);pr.isStack=fr;var hr,dr=pr.prototype;function vr(t,e,r,n){var i=Object.create(dr);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function gr(){return hr||(hr=vr(0))}dr[lr]=!0,dr.shift=dr.pop,dr.unshift=dr.push,dr.unshiftAll=dr.pushAll,dr.withMutations=_e,dr.wasAltered=we,dr.asImmutable=Se,dr["@@transducer/init"]=dr.asMutable=be,dr["@@transducer/step"]=function(t,e){return t.unshift(e)},dr["@@transducer/result"]=function(t){return t.asImmutable()};var yr="@@__IMMUTABLE_SET__@@";function mr(t){return Boolean(t&&t[yr])}function _r(t){return mr(t)&&R(t)}function br(t,e){if(t===e)return!0;if(!g(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||m(t)!==m(e)||b(t)!==b(e)||R(t)!==R(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!S(t);if(R(t)){var n=t.entries();return e.every((function(t,e){var i=n.next().value;return i&&st(i[1],t)&&(r||st(i[0],e))}))&&n.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var o=t;t=e,e=o}var s=!0,u=e.__iterate((function(e,n){if(r?!t.has(e):i?!st(e,t.get(n,a)):!st(t.get(n,a),e))return s=!1,!1}));return s&&t.size===u}function Sr(t,e){var r=function(r){t.prototype[r]=e[r]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}function wr(t){if(!t||"object"!=typeof t)return t;if(!g(t)){if(!Qt(t))return t;t=H(t)}if(m(t)){var e={};return t.__iterate((function(t,r){e[r]=wr(t)})),e}var r=[];return t.__iterate((function(t){r.push(wr(t))})),r}var xr=function(t){function Set(e){return null==e?Cr():mr(e)&&!R(e)?e:Cr().withMutations((function(r){var n=t(e);Yt(n.size),n.forEach((function(t){return r.add(t)}))}))}return t&&(Set.__proto__=t),Set.prototype=Object.create(t&&t.prototype),Set.prototype.constructor=Set,Set.of=function(){return this(arguments)},Set.fromKeys=function(t){return this(x(t).keySeq())},Set.intersect=function(t){return(t=w(t).toArray()).length?Mr.intersect.apply(Set(t.pop()),t):Cr()},Set.union=function(t){return(t=w(t).toArray()).length?Mr.union.apply(Set(t.pop()),t):Cr()},Set.prototype.toString=function(){return this.__toString("Set {","}")},Set.prototype.has=function(t){return this._map.has(t)},Set.prototype.add=function(t){return Or(this,this._map.set(t,t))},Set.prototype.remove=function(t){return Or(this,this._map.remove(t))},Set.prototype.clear=function(){return Or(this,this._map.clear())},Set.prototype.map=function(t,e){var r=this,n=!1,i=Or(this,this._map.mapEntries((function(i){var o=i[1],a=t.call(e,o,o,r);return a!==o&&(n=!0),[a,a]}),e));return n?i:this},Set.prototype.union=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return 0===(e=e.filter((function(t){return 0!==t.size}))).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations((function(r){for(var n=0;n<e.length;n++)"string"==typeof e[n]?r.add(e[n]):t(e[n]).forEach((function(t){return r.add(t)}))})):this.constructor(e[0])},Set.prototype.intersect=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];if(0===e.length)return this;e=e.map((function(e){return t(e)}));var n=[];return this.forEach((function(t){e.every((function(e){return e.includes(t)}))||n.push(t)})),this.withMutations((function(t){n.forEach((function(e){t.remove(e)}))}))},Set.prototype.subtract=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];if(0===e.length)return this;e=e.map((function(e){return t(e)}));var n=[];return this.forEach((function(t){e.some((function(e){return e.includes(t)}))&&n.push(t)})),this.withMutations((function(t){n.forEach((function(e){t.remove(e)}))}))},Set.prototype.sort=function(t){return Wr(Pt(this,t))},Set.prototype.sortBy=function(t,e){return Wr(Pt(this,e,t))},Set.prototype.wasAltered=function(){return this._map.wasAltered()},Set.prototype.__iterate=function __iterate(t,e){var r=this;return this._map.__iterate((function(e){return t(e,e,r)}),e)},Set.prototype.__iterator=function __iterator(t,e){return this._map.__iterator(t,e)},Set.prototype.__ensureOwner=function __ensureOwner(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):0===this.size?this.__empty():(this.__ownerID=t,this._map=e,this)},Set}(M);xr.isSet=mr;var Er,Mr=xr.prototype;function Or(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function kr(t,e){var r=Object.create(Mr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Cr(){return Er||(Er=kr(Be()))}Mr[yr]=!0,Mr[n]=Mr.remove,Mr.merge=Mr.concat=Mr.union,Mr.withMutations=_e,Mr.asImmutable=Se,Mr["@@transducer/init"]=Mr.asMutable=be,Mr["@@transducer/step"]=function(t,e){return t.add(e)},Mr["@@transducer/result"]=function(t){return t.asImmutable()},Mr.__empty=Cr,Mr.__make=kr;var Dr,Ir=function(t){function Range(t,e,r){if(void 0===r&&(r=1),!(this instanceof Range))return new Range(t,e,r);if(Xt(0!==r,"Cannot step a Range by 0"),Xt(void 0!==t,"You must define a start value when using Range"),Xt(void 0!==e,"You must define an end value when using Range"),r=Math.abs(r),e<t&&(r=-r),this._start=t,this._end=e,this._step=r,this.size=Math.max(0,Math.ceil((e-t)/r-1)+1),0===this.size){if(Dr)return Dr;Dr=this}}return t&&(Range.__proto__=t),Range.prototype=Object.create(t&&t.prototype),Range.prototype.constructor=Range,Range.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},Range.prototype.get=function(t,e){return this.has(t)?this._start+u(this,t)*this._step:e},Range.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},Range.prototype.slice=function(t,e){return l(t,e,this.size)?this:(t=f(t,this.size),(e=p(e,this.size))<=t?new Range(0,0):new Range(this.get(t,this._end),this.get(e,this._end),this._step))},Range.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var r=e/this._step;if(r>=0&&r<this.size)return r}return-1},Range.prototype.lastIndexOf=function(t){return this.indexOf(t)},Range.prototype.__iterate=function __iterate(t,e){for(var r=this.size,n=this._step,i=e?this._start+(r-1)*n:this._start,o=0;o!==r&&!1!==t(i,e?r-++o:o++,this);)i+=e?-n:n;return o},Range.prototype.__iterator=function __iterator(t,e){var r=this.size,n=this._step,i=e?this._start+(r-1)*n:this._start,o=0;return new q((function(){if(o===r)return{value:void 0,done:!0};var a=i;return i+=e?-n:n,P(t,e?r-++o:o++,a)}))},Range.prototype.equals=function(t){return t instanceof Range?this._start===t._start&&this._end===t._end&&this._step===t._step:br(this,t)},Range}(V);function Ar(t,e,r){for(var n=$t(e),i=0;i!==n.length;)if((t=ee(t,n[i++],a))===a)return r;return t}function Rr(t,e){return Ar(this,t,e)}function Tr(){Yt(this.size);var t={};return this.__iterate((function(e,r){t[r]=e})),t}w.Iterator=q,Sr(w,{toArray:function(){Yt(this.size);var t=new Array(this.size||0),e=m(this),r=0;return this.__iterate((function(n,i){t[r++]=e?[i,n]:n})),t},toIndexedSeq:function(){return new kt(this)},toJS:function(){return wr(this)},toKeyedSeq:function(){return new Ot(this,!0)},toMap:function(){return xe(this.toKeyedSeq())},toObject:Tr,toOrderedMap:function(){return ar(this.toKeyedSeq())},toOrderedSet:function(){return Wr(m(this)?this.valueSeq():this)},toSet:function(){return xr(m(this)?this.valueSeq():this)},toSetSeq:function(){return new Ct(this)},toSeq:function(){return b(this)?this.toIndexedSeq():m(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return pr(m(this)?this.valueSeq():this)},toList:function(){return Ve(m(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function __toString(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Nt(this,function(t,e){var r=m(t),n=[t].concat(e).map((function(t){return g(t)?r&&(t=x(t)):t=r?tt(t):et(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===n.length)return t;if(1===n.length){var i=n[0];if(i===t||r&&m(i)||b(t)&&b(i))return i}var o=new Y(n);return r?o=o.toKeyedSeq():b(t)||(o=o.toSetSeq()),(o=o.flatten(!0)).size=n.reduce((function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}}),0),o}(this,t))},includes:function(t){return this.some((function(e){return st(e,t)}))},entries:function(){return this.__iterator(2)},every:function(t,e){Yt(this.size);var r=!0;return this.__iterate((function(n,i,o){if(!t.call(e,n,i,o))return r=!1,!1})),r},filter:function(t,e){return Nt(this,Tt(this,t,e,!0))},partition:function(t,e){return function(t,e,r){var n=m(t),i=[[],[]];t.__iterate((function(o,a){i[e.call(r,o,a,t)?1:0].push(n?[a,o]:o)}));var o=Ut(t);return i.map((function(e){return Nt(t,o(e))}))}(this,t,e)},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},forEach:function(t,e){return Yt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Yt(this.size),t=void 0!==t?""+t:",";var e="",r=!0;return this.__iterate((function(n){r?r=!1:e+=t,e+=null!=n?n.toString():""})),e},keys:function(){return this.__iterator(0)},map:function(t,e){return Nt(this,At(this,t,e))},reduce:function(t,e,r){return jr(this,t,e,r,arguments.length<2,!1)},reduceRight:function(t,e,r){return jr(this,t,e,r,arguments.length<2,!0)},reverse:function(){return Nt(this,Rt(this,!0))},slice:function(t,e){return Nt(this,zt(this,t,e,!0))},some:function(t,e){Yt(this.size);var r=!1;return this.__iterate((function(n,i,o){if(t.call(e,n,i,o))return r=!0,!1})),r},sort:function(t){return Nt(this,Pt(this,t))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(t,e){return s(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,r){var n=xe().asMutable();return t.__iterate((function(i,o){n.update(e.call(r,i,o,t),0,(function(t){return t+1}))})),n.asImmutable()}(this,t,e)},equals:function(t){return br(this,t)},entrySeq:function(){var t=this;if(t._cache)return new Y(t._cache);var e=t.toSeq().map(Kr).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Nr(t),e)},findEntry:function(t,e,r){var n=r;return this.__iterate((function(r,i,o){if(t.call(e,r,i,o))return n=[i,r],!1})),n},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},findLastEntry:function(t,e,r){return this.toKeyedSeq().reverse().findEntry(t,e,r)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(t){return this.find(c,null,t)},flatMap:function(t,e){return Nt(this,function(t,e,r){var n=Ut(t);return t.toSeq().map((function(i,o){return n(e.call(r,i,o,t))})).flatten(!0)}(this,t,e))},flatten:function(t){return Nt(this,qt(this,t,!0))},fromEntrySeq:function(){return new Dt(this)},get:function(t,e){return this.find((function(e,r){return st(r,t)}),void 0,e)},getIn:Rr,groupBy:function(t,e){return function(t,e,r){var n=m(t),i=(R(t)?ar():xe()).asMutable();t.__iterate((function(o,a){i.update(e.call(r,o,a,t),(function(t){return(t=t||[]).push(n?[a,o]:o),t}))}));var o=Ut(t);return i.map((function(e){return Nt(t,o(e))})).asImmutable()}(this,t,e)},has:function(t){return this.get(t,a)!==a},hasIn:function(t){return Ar(this,t,a)!==a},isSubset:function(t){return t="function"==typeof t.includes?t:w(t),this.every((function(e){return t.includes(e)}))},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:w(t)).isSubset(this)},keyOf:function(t){return this.findKey((function(e){return st(e,t)}))},keySeq:function(){return this.toSeq().map(Lr).toIndexedSeq()},last:function(t){return this.toSeq().reverse().first(t)},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return jt(this,t)},maxBy:function(t,e){return jt(this,e,t)},min:function(t){return jt(this,t?Fr(t):Gr)},minBy:function(t,e){return jt(this,e?Fr(e):Gr,t)},rest:function(){return this.slice(1)},skip:function(t){return 0===t?this:this.slice(Math.max(0,t))},skipLast:function(t){return 0===t?this:this.slice(0,-Math.max(0,t))},skipWhile:function(t,e){return Nt(this,Bt(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Nr(t),e)},sortBy:function(t,e){return Nt(this,Pt(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return this.slice(-Math.max(0,t))},takeWhile:function(t,e){return Nt(this,function(t,e,r){var n=Gt(t);return n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var a=0;return t.__iterate((function(t,i,s){return e.call(r,t,i,s)&&++a&&n(t,i,o)})),a},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var a=t.__iterator(2,i),s=!0;return new q((function(){if(!s)return{value:void 0,done:!0};var t=a.next();if(t.done)return t;var i=t.value,u=i[0],c=i[1];return e.call(r,c,u,o)?2===n?t:P(n,u,c,t):(s=!1,{value:void 0,done:!0})}))},n}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Nr(t),e)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=R(t),r=m(t),n=e?1:0;return t.__iterate(r?e?function(t,e){n=31*n+Hr(ft(t),ft(e))|0}:function(t,e){n=n+Hr(ft(t),ft(e))|0}:e?function(t){n=31*n+ft(t)|0}:function(t){n=n+ft(t)|0}),function(t,e){return e=ut(e,3432918353),e=ut(e<<15|e>>>-15,461845907),e=ut(e<<13|e>>>-13,5),e=ut((e=e+3864292196^t)^e>>>16,2246822507),e=ct((e=ut(e^e>>>13,3266489909))^e>>>16)}(t.size,n)}(this))}});var zr=w.prototype;zr[v]=!0,zr[B]=zr.values,zr.toJSON=zr.toArray,zr.__toStringMapper=te,zr.inspect=zr.toSource=function(){return this.toString()},zr.chain=zr.flatMap,zr.contains=zr.includes,Sr(x,{flip:function(){return Nt(this,It(this))},mapEntries:function(t,e){var r=this,n=0;return Nt(this,this.toSeq().map((function(i,o){return t.call(e,[o,i],n++,r)})).fromEntrySeq())},mapKeys:function(t,e){var r=this;return Nt(this,this.toSeq().flip().map((function(n,i){return t.call(e,n,i,r)})).flip())}});var Br=x.prototype;Br[y]=!0,Br[B]=zr.entries,Br.toJSON=Tr,Br.__toStringMapper=function(t,e){return te(e)+": "+te(t)},Sr(E,{toKeyedSeq:function(){return new Ot(this,!1)},filter:function(t,e){return Nt(this,Tt(this,t,e,!1))},findIndex:function(t,e){var r=this.findEntry(t,e);return r?r[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return Nt(this,Rt(this,!1))},slice:function(t,e){return Nt(this,zt(this,t,e,!1))},splice:function(t,e){var r=arguments.length;if(e=Math.max(e||0,0),0===r||2===r&&!e)return this;t=f(t,t<0?this.count():this.size);var n=this.slice(0,t);return Nt(this,1===r?n:n.concat(Vt(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.findLastEntry(t,e);return r?r[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return Nt(this,qt(this,t,!1))},get:function(t,e){return(t=u(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find((function(e,r){return r===t}),void 0,e)},has:function(t){return(t=u(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return Nt(this,function(t,e){var r=Gt(t);return r.size=t.size&&2*t.size-1,r.__iterateUncached=function(r,n){var i=this,o=0;return t.__iterate((function(t){return(!o||!1!==r(e,o++,i))&&!1!==r(t,o++,i)}),n),o},r.__iteratorUncached=function(r,n){var i,o=t.__iterator(1,n),a=0;return new q((function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?P(r,a++,e):P(r,a++,i.value,i)}))},r}(this,t))},interleave:function(){var t=[this].concat(Vt(arguments)),e=Kt(this.toSeq(),V.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),Nt(this,r)},keySeq:function(){return Ir(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,e){return Nt(this,Bt(this,t,e,!1))},zip:function(){return Nt(this,Kt(this,Ur,[this].concat(Vt(arguments))))},zipAll:function(){return Nt(this,Kt(this,Ur,[this].concat(Vt(arguments)),!0))},zipWith:function(t){var e=Vt(arguments);return e[0]=this,Nt(this,Kt(this,t,e))}});var qr=E.prototype;qr[_]=!0,qr[A]=!0,Sr(M,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}});var Pr=M.prototype;function jr(t,e,r,n,i,o){return Yt(t.size),t.__iterate((function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),o),r}function Lr(t,e){return e}function Kr(t,e){return[e,t]}function Nr(t){return function(){return!t.apply(this,arguments)}}function Fr(t){return function(){return-t.apply(this,arguments)}}function Ur(){return Vt(arguments)}function Gr(t,e){return t<e?1:t>e?-1:0}function Hr(t,e){return t^e+2654435769+(t<<6)+(t>>2)}Pr.has=zr.includes,Pr.contains=Pr.includes,Pr.keys=Pr.values,Sr(W,Br),Sr(V,qr),Sr(X,Pr);var Wr=function(t){function OrderedSet(t){return null==t?$r():_r(t)?t:$r().withMutations((function(e){var r=M(t);Yt(r.size),r.forEach((function(t){return e.add(t)}))}))}return t&&(OrderedSet.__proto__=t),OrderedSet.prototype=Object.create(t&&t.prototype),OrderedSet.prototype.constructor=OrderedSet,OrderedSet.of=function(){return this(arguments)},OrderedSet.fromKeys=function(t){return this(x(t).keySeq())},OrderedSet.prototype.toString=function(){return this.__toString("OrderedSet {","}")},OrderedSet}(xr);Wr.isOrderedSet=_r;var Vr,Xr=Wr.prototype;function Yr(t,e){var r=Object.create(Xr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function $r(){return Vr||(Vr=Yr(ur()))}Xr[A]=!0,Xr.zip=qr.zip,Xr.zipWith=qr.zipWith,Xr.zipAll=qr.zipAll,Xr.__empty=$r,Xr.__make=Yr;var Jr=function Record(t,e){var r;!function(t){if(D(t))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(I(t))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===t||"object"!=typeof t)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(t);var n=function Record(o){var a=this;if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var s=Object.keys(t),u=i._indices={};i._name=e,i._keys=s,i._defaultValues=t;for(var c=0;c<s.length;c++){var l=s[c];u[l]=c,i[l]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+tn(this)+' with property "'+l+'" since that property name is part of the Record API.'):rn(i,l)}}return this.__ownerID=void 0,this._values=Ve().withMutations((function(t){t.setSize(a._keys.length),x(o).forEach((function(e,r){t.set(a._indices[r],e===a._defaultValues[r]?void 0:e)}))})),this},i=n.prototype=Object.create(Zr);return i.constructor=n,e&&(n.displayName=e),n};Jr.prototype.toString=function(){for(var t,e=tn(this)+" { ",r=this._keys,n=0,i=r.length;n!==i;n++)e+=(n?", ":"")+(t=r[n])+": "+te(this.get(t));return e+" }"},Jr.prototype.equals=function(t){return this===t||D(t)&&en(this).equals(en(t))},Jr.prototype.hashCode=function(){return en(this).hashCode()},Jr.prototype.has=function(t){return this._indices.hasOwnProperty(t)},Jr.prototype.get=function(t,e){if(!this.has(t))return e;var r=this._indices[t],n=this._values.get(r);return void 0===n?this._defaultValues[t]:n},Jr.prototype.set=function(t,e){if(this.has(t)){var r=this._values.set(this._indices[t],e===this._defaultValues[t]?void 0:e);if(r!==this._values&&!this.__ownerID)return Qr(this,r)}return this},Jr.prototype.remove=function(t){return this.set(t)},Jr.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:Qr(this,t)},Jr.prototype.wasAltered=function(){return this._values.wasAltered()},Jr.prototype.toSeq=function(){return en(this)},Jr.prototype.toJS=function(){return wr(this)},Jr.prototype.entries=function(){return this.__iterator(2)},Jr.prototype.__iterator=function __iterator(t,e){return en(this).__iterator(t,e)},Jr.prototype.__iterate=function __iterate(t,e){return en(this).__iterate(t,e)},Jr.prototype.__ensureOwner=function __ensureOwner(t){if(t===this.__ownerID)return this;var e=this._values.__ensureOwner(t);return t?Qr(this,e,t):(this.__ownerID=t,this._values=e,this)},Jr.isRecord=D,Jr.getDescriptiveName=tn;var Zr=Jr.prototype;function Qr(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._values=e,n.__ownerID=r,n}function tn(t){return t.constructor.displayName||t.constructor.name||"Record"}function en(t){return tt(t._keys.map((function(e){return[e,t.get(e)]})))}function rn(t,e){try{Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){Xt(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}catch(t){}}Zr[C]=!0,Zr[n]=Zr.remove,Zr.deleteIn=Zr.removeIn=ae,Zr.getIn=Rr,Zr.hasIn=zr.hasIn,Zr.merge=le,Zr.mergeWith=fe,Zr.mergeIn=ye,Zr.mergeDeep=ve,Zr.mergeDeepWith=ge,Zr.mergeDeepIn=me,Zr.setIn=oe,Zr.update=ue,Zr.updateIn=ce,Zr.withMutations=_e,Zr.asMutable=be,Zr.asImmutable=Se,Zr[B]=Zr.entries,Zr.toJSON=Zr.toObject=zr.toObject,Zr.inspect=Zr.toSource=function(){return this.toString()};var nn,on=function(t){function Repeat(t,e){if(!(this instanceof Repeat))return new Repeat(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(nn)return nn;nn=this}}return t&&(Repeat.__proto__=t),Repeat.prototype=Object.create(t&&t.prototype),Repeat.prototype.constructor=Repeat,Repeat.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Repeat.prototype.get=function(t,e){return this.has(t)?this._value:e},Repeat.prototype.includes=function(t){return st(this._value,t)},Repeat.prototype.slice=function(t,e){var r=this.size;return l(t,e,r)?this:new Repeat(this._value,p(e,r)-f(t,r))},Repeat.prototype.reverse=function(){return this},Repeat.prototype.indexOf=function(t){return st(this._value,t)?0:-1},Repeat.prototype.lastIndexOf=function(t){return st(this._value,t)?this.size:-1},Repeat.prototype.__iterate=function __iterate(t,e){for(var r=this.size,n=0;n!==r&&!1!==t(this._value,e?r-++n:n++,this););return n},Repeat.prototype.__iterator=function __iterator(t,e){var r=this,n=this.size,i=0;return new q((function(){return i===n?{value:void 0,done:!0}:P(t,e?n-++i:i++,r._value)}))},Repeat.prototype.equals=function(t){return t instanceof Repeat?st(this._value,t._value):br(this,t)},Repeat}(V)},49631:(t,e,r)=>{"use strict";var n=r(46518),i=r(44576),o=r(79504),a=r(83972),s=r(34154),u=r(55169),c=r(92804),l=r(944),f=c.i2c,p=c.i2cUrl,h=o("".charAt);i.Uint8Array&&n({target:"Uint8Array",proto:!0},{toBase64:function(){var t=s(this),e=arguments.length?a(arguments[0]):void 0,r="base64"===l(e)?f:p,n=!!e&&!!e.omitPadding;u(this.buffer);for(var i,o="",c=0,d=t.length,v=function(t){return h(r,i>>6*t&63)};c+2<d;c+=3)i=(t[c]<<16)+(t[c+1]<<8)+t[c+2],o+=v(3)+v(2)+v(1)+v(0);return c+2===d?(i=(t[c]<<16)+(t[c+1]<<8),o+=v(3)+v(2)+v(1)+(n?"":"=")):c+1===d&&(i=t[c]<<16,o+=v(3)+v(2)+(n?"":"==")),o}})},49797:(t,e,r)=>{"use strict";var n=r(46518),i=r(44576),o=r(63463),a=r(34154),s=r(55169),u=r(42303);i.Uint8Array&&n({target:"Uint8Array",proto:!0},{setFromHex:function(t){a(this),o(t),s(this.buffer);var e=u(t,this).read;return{read:e,written:e/2}}})},49884:(t,e,r)=>{"use strict";var n=r(96540),i=r(98003),o=function(t){var e,r;function DraftEditorPlaceholder(){return t.apply(this,arguments)||this}r=t,(e=DraftEditorPlaceholder).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var o=DraftEditorPlaceholder.prototype;return o.shouldComponentUpdate=function(t){return this.props.text!==t.text||this.props.editorState.getSelection().getHasFocus()!==t.editorState.getSelection().getHasFocus()},o.render=function(){var t=this.props.editorState.getSelection().getHasFocus(),e=i({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":t});return n.createElement("div",{className:e},n.createElement("div",{className:i("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},DraftEditorPlaceholder}(n.Component);t.exports=o},49938:(t,e,r)=>{"use strict";var n=r(23018),i=r(94092),o=r(16416),a=r(80508),s=r(30866),u=r(77337),c=r(19127),l=r(3136),f=r(90646),p=r(5462),h=r(86044),d=r(54435),v=r(53222),g=u.OrderedSet,y={replaceText:function(t,e,r,i,o){var a=h(t,e),s=d(a,e),u=n.create({style:i||g(),entity:o||null});return l(s,s.getSelectionAfter(),r,u)},insertText:function(t,e,r,n,i){return e.isCollapsed()||f(!1),y.replaceText(t,e,r,n,i)},moveText:function(t,e,r){var n=s(t,e),i=y.removeRange(t,e,"backward");return y.replaceWithFragment(i,r,n)},replaceWithFragment:function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",i=h(t,e),o=d(i,e);return c(o,o.getSelectionAfter(),r,n)},removeRange:function(t,e,r){var n,i,o,s;e.getIsBackward()&&(e=e.merge({anchorKey:e.getFocusKey(),anchorOffset:e.getFocusOffset(),focusKey:e.getAnchorKey(),focusOffset:e.getAnchorOffset(),isBackward:!1})),n=e.getAnchorKey(),i=e.getFocusKey(),o=t.getBlockForKey(n),s=t.getBlockForKey(i);var u=e.getStartOffset(),c=e.getEndOffset(),l=o.getEntityAt(u),f=s.getEntityAt(c-1);if(n===i&&l&&l===f){var p=a(t.getEntityMap(),o,s,e,r);return d(t,p)}var v=h(t,e);return d(v,e)},splitBlock:function(t,e){var r=h(t,e),n=d(r,e);return v(n,n.getSelectionAfter())},applyInlineStyle:function(t,e,r){return i.add(t,e,r)},removeInlineStyle:function(t,e,r){return i.remove(t,e,r)},setBlockType:function(t,e,r){return p(t,e,(function(t){return t.merge({type:r,depth:0})}))},setBlockData:function(t,e,r){return p(t,e,(function(t){return t.merge({data:r})}))},mergeBlockData:function(t,e,r){return p(t,e,(function(t){return t.merge({data:t.getData().merge(r)})}))},applyEntity:function(t,e,r){var n=h(t,e);return o(n,e,r)}};t.exports=y},50046:(t,e,r)=>{"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=r(56840),o=r(65224),a=r(24712),s=r(6991),u=r(19248),c=r(47282),l=r(77337),f=r(91721),p=l.List,h=l.Repeat,d=c("draft_tree_data_support"),v=d?o:i,g={processHTML:function(t,e){return a(t,u,e)},processText:function(t,e,r){return t.reduce((function(t,i,o){i=f(i);var a=s(),u={key:a,type:r,text:i,characterList:p(h(e,i.length))};if(d&&0!==o){var c=o-1;u=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),i.forEach((function(e){n(t,e,r[e])}))}return t}({},u,{prevSibling:(t[c]=t[c].merge({nextSibling:a})).getKey()})}return t.push(new v(u)),t}),[])}};t.exports=g},50428:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){i(t,e,r[e])}))}return t}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(56840),a=r(65224),s=r(97656),u=r(11608),c=r(62396),l=(r(72490),r(91381)),f=r(40803),p=r(52401),h=r(33830),d=r(6991),v=r(47282),g=r(77337),y=r(90646),m=v("draft_tree_data_support"),_=g.List,b=g.Map,S=g.OrderedMap,w=function(t,e){var r=t.key,n=t.type,i=t.data;return{text:t.text,depth:t.depth||0,type:n||"unstyled",key:r||d(),data:b(i),characterList:x(t,e)}},x=function(t,e){var r=t.text,i=t.entityRanges,o=t.inlineStyleRanges,a=i||[];return f(h(r,o||[]),p(r,a.filter((function(t){return e.hasOwnProperty(t.key)})).map((function(t){return n({},t,{key:e[t.key]})}))))},E=function(t){return n({},t,{key:t.key||d()})},M=function(t,e,r){var i=e.map((function(t){return n({},t,{parentRef:r})}));return t.concat(i.reverse())},O=function(t,e){var r=t.blocks.find((function(t){return Array.isArray(t.children)&&t.children.length>0})),i=m&&!r?c.fromRawStateToRawTreeState(t).blocks:t.blocks;if(!m)return function(t,e){return S(t.map((function(t){var r=new o(w(t,e));return[r.getKey(),r]})))}(r?c.fromRawTreeStateToRawState(t).blocks:i,e);var s=function(t,e){return t.map(E).reduce((function(r,i,o){Array.isArray(i.children)||y(!1);var s=i.children.map(E),u=new a(n({},w(i,e),{prevSibling:0===o?null:t[o-1].key,nextSibling:o===t.length-1?null:t[o+1].key,children:_(s.map((function(t){return t.key})))}));r=r.set(u.getKey(),u);for(var c=M([],s,u);c.length>0;){var l=c.pop(),f=l.parentRef,p=f.getChildKeys(),h=p.indexOf(l.key),d=Array.isArray(l.children);if(!d){d||y(!1);break}var v=l.children.map(E),g=new a(n({},w(l,e),{parent:f.getKey(),children:_(v.map((function(t){return t.key}))),prevSibling:0===h?null:p.get(h-1),nextSibling:h===p.size-1?null:p.get(h+1)}));r=r.set(g.getKey(),g),c=M(c,v,g)}return r}),S())}(i,e);return s};t.exports=function(t){Array.isArray(t.blocks)||y(!1);var e=function(t){var e=t.entityMap,r={};return Object.keys(e).forEach((function(t){var n=e[t],i=n.type,o=n.mutability,a=n.data;r[t]=u.__create(i,o,a||{})})),r}(t),r=O(t,e),n=r.isEmpty()?new l:l.createEmpty(r.first().getKey());return new s({blockMap:r,entityMap:e,selectionBefore:n,selectionAfter:n})}},50580:(t,e,r)=>{"use strict";var n=r(90646),i=/[\uD800-\uDFFF]/;function o(t){return 55296<=t&&t<=57343}function a(t){return i.test(t)}function s(t,e){return 1+o(t.charCodeAt(e))}function u(t,e,r){if(e=e||0,r=void 0===r?1/0:r||0,!a(t))return t.substr(e,r);var n=t.length;if(n<=0||e>n||r<=0)return"";var i=0;if(e>0){for(;e>0&&i<n;e--)i+=s(t,i);if(i>=n)return""}else if(e<0){for(i=n;e<0&&0<i;e++)i-=s(t,i-1);i<0&&(i=0)}var o=n;if(r<n)for(o=i;r>0&&o<n;r--)o+=s(t,o);return t.substring(i,o)}var c={getCodePoints:function(t){for(var e=[],r=0;r<t.length;r+=s(t,r))e.push(t.codePointAt(r));return e},getUTF16Length:s,hasSurrogateUnit:a,isCodeUnitInSurrogateRange:o,isSurrogatePair:function(t,e){if(0<=e&&e<t.length||n(!1),e+1===t.length)return!1;var r=t.charCodeAt(e),i=t.charCodeAt(e+1);return 55296<=r&&r<=56319&&56320<=i&&i<=57343},strlen:function(t){if(!a(t))return t.length;for(var e=0,r=0;r<t.length;r+=s(t,r))e++;return e},substring:function(t,e,r){(e=e||0)<0&&(e=0),(r=void 0===r?1/0:r||0)<0&&(r=0);var n=Math.abs(r-e);return u(t,e=e<r?e:r,n)},substr:u};t.exports=c},50798:t=>{"use strict";t.exports=function(t){var e=t||"",r=arguments.length;if(r>1)for(var n=1;n<r;n++){var i=arguments[n];i&&(e=(e?e+" ":"")+i)}return e}},50851:(t,e,r)=>{"use strict";var n=r(36955),i=r(55966),o=r(64117),a=r(26269),s=r(78227)("iterator");t.exports=function(t){if(!o(t))return i(t,s)||i(t,"@@iterator")||a[n(t)]}},50953:(t,e,r)=>{"use strict";var n=r(90646),i=/\./,o=/\|\|/,a=/\s+\-\s+/,s=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,u=/^(\d*)(.*)/;function c(t,e){var r=t.split(o);return r.length>1?r.some((function(t){return b.contains(t,e)})):function(t,e){var r=t.split(a);if(r.length>0&&r.length<=2||n(!1),1===r.length)return l(r[0],e);var i=r[0],o=r[1];return v(i)&&v(o)||n(!1),l(">="+i,e)&&l("<="+o,e)}(t=r[0].trim(),e)}function l(t,e){if(""===(t=t.trim()))return!0;var r,n=e.split(i),o=h(t),a=o.modifier,s=o.rangeComponents;switch(a){case"<":return f(n,s);case"<=":return-1===(r=_(n,s))||0===r;case">=":return p(n,s);case">":return function(t,e){return 1===_(t,e)}(n,s);case"~":case"~>":return function(t,e){var r=e.slice(),n=e.slice();n.length>1&&n.pop();var i=n.length-1,o=parseInt(n[i],10);d(o)&&(n[i]=o+1+"");return p(t,r)&&f(t,n)}(n,s);default:return function(t,e){return 0===_(t,e)}(n,s)}}function f(t,e){return-1===_(t,e)}function p(t,e){var r=_(t,e);return 1===r||0===r}function h(t){var e=t.split(i),r=e[0].match(s);return r||n(!1),{modifier:r[1],rangeComponents:[r[2]].concat(e.slice(1))}}function d(t){return!isNaN(t)&&isFinite(t)}function v(t){return!h(t).modifier}function g(t,e){for(var r=t.length;r<e;r++)t[r]="0"}function y(t,e){var r=t.match(u)[1],n=e.match(u)[1],i=parseInt(r,10),o=parseInt(n,10);return d(i)&&d(o)&&i!==o?m(i,o):m(t,e)}function m(t,e){return typeof t!=typeof e&&n(!1),t>e?1:t<e?-1:0}function _(t,e){for(var r=function(t,e){g(t=t.slice(),(e=e.slice()).length);for(var r=0;r<e.length;r++){var n=e[r].match(/^[x*]$/i);if(n&&(e[r]=t[r]="0","*"===n[0]&&r===e.length-1))for(var i=r;i<t.length;i++)t[i]="0"}return g(e,t.length),[t,e]}(t,e),n=r[0],i=r[1],o=0;o<i.length;o++){var a=y(n[o],i[o]);if(a)return a}return 0}var b={contains:function(t,e){return c(t.trim(),e.trim())}};t.exports=b},51103:t=>{"use strict";t.exports={notEmptyKey:function(t){return null!=t&&""!=t}}},52401:(t,e,r)=>{"use strict";var n=r(50580).substr;t.exports=function(t,e){var r=Array(t.length).fill(null);return e&&e.forEach((function(e){for(var i=n(t,0,e.offset).length,o=i+n(t,e.offset,e.length).length,a=i;a<o;a++)r[a]=e.key})),r}},52967:(t,e,r)=>{"use strict";var n=r(46706),i=r(20034),o=r(67750),a=r(73506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return o(r),a(n),i(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0)},53222:(t,e,r)=>{"use strict";var n=r(65224),i=r(6991),o=r(77337),a=r(90646),s=r(5462),u=o.List,c=o.Map,l=function(t,e,r){if(t){var n=e.get(t);n&&e.set(t,r(n))}};t.exports=function(t,e){e.isCollapsed()||a(!1);var r=e.getAnchorKey(),o=t.getBlockMap(),f=o.get(r),p=f.getText();if(!p){var h=f.getType();if("unordered-list-item"===h||"ordered-list-item"===h)return s(t,e,(function(t){return t.merge({type:"unstyled",depth:0})}))}var d=e.getAnchorOffset(),v=f.getCharacterList(),g=i(),y=f instanceof n,m=f.merge({text:p.slice(0,d),characterList:v.slice(0,d)}),_=m.merge({key:g,text:p.slice(d),characterList:v.slice(d),data:c()}),b=o.toSeq().takeUntil((function(t){return t===f})),S=o.toSeq().skipUntil((function(t){return t===f})).rest(),w=b.concat([[r,m],[g,_]],S).toOrderedMap();return y&&(f.getChildKeys().isEmpty()||a(!1),w=function(t,e,r){return t.withMutations((function(t){var n=e.getKey(),i=r.getKey();l(e.getParentKey(),t,(function(t){var e=t.getChildKeys(),r=e.indexOf(n)+1,o=e.toArray();return o.splice(r,0,i),t.merge({children:u(o)})})),l(e.getNextSiblingKey(),t,(function(t){return t.merge({prevSibling:i})})),l(n,t,(function(t){return t.merge({nextSibling:i})})),l(i,t,(function(t){return t.merge({prevSibling:n})}))}))}(w,m,_)),t.merge({blockMap:w,selectionBefore:e,selectionAfter:e.merge({anchorKey:g,anchorOffset:0,focusKey:g,focusOffset:0,isBackward:!1})})}},53310:(t,e,r)=>{"use strict";var n=r(65224),i=r(6991),o=r(77337).OrderedMap;t.exports=function(t){return t.first()instanceof n?function(t){var e,r={};return o(t.withMutations((function(t){t.forEach((function(n,o){var a=n.getKey(),s=n.getNextSiblingKey(),u=n.getPrevSiblingKey(),c=n.getChildKeys(),l=n.getParentKey(),f=i();if(r[a]=f,s&&(t.get(s)?t.setIn([s,"prevSibling"],f):t.setIn([a,"nextSibling"],null)),u&&(t.get(u)?t.setIn([u,"nextSibling"],f):t.setIn([a,"prevSibling"],null)),l&&t.get(l)){var p=t.get(l).getChildKeys();t.setIn([l,"children"],p.set(p.indexOf(n.getKey()),f))}else t.setIn([a,"parent"],null),e&&(t.setIn([e.getKey(),"nextSibling"],f),t.setIn([a,"prevSibling"],r[e.getKey()])),e=t.get(a);c.forEach((function(e){t.get(e)?t.setIn([e,"parent"],f):t.setIn([a,"children"],n.getChildKeys().filter((function(t){return t!==e})))}))}))})).toArray().map((function(t){return[r[t.getKey()],t.set("key",r[t.getKey()])]})))}(t):function(t){return o(t.toArray().map((function(t){var e=i();return[e,t.set("key",e)]})))}(t)}},54435:(t,e,r)=>{"use strict";var n=r(65224),i=r(7376),o=r(77337),a=(o.List,o.Map),s=function(t,e,r){if(t){var n=e.get(t);n&&e.set(t,r(n))}},u=function(t,e){var r=[];if(!t)return r;for(var n=e.get(t);n&&n.getParentKey();){var i=n.getParentKey();i&&r.push(i),n=i?e.get(i):null}return r},c=function(t,e,r){if(!t)return null;for(var n=r.get(t.getKey()).getNextSiblingKey();n&&!e.get(n);)n=r.get(n).getNextSiblingKey()||null;return n},l=function(t,e,r){if(!t)return null;for(var n=r.get(t.getKey()).getPrevSiblingKey();n&&!e.get(n);)n=r.get(n).getPrevSiblingKey()||null;return n},f=function(t,e,r,n){return t.withMutations((function(o){if(s(e.getKey(),o,(function(t){return t.merge({nextSibling:c(t,o,n),prevSibling:l(t,o,n)})})),s(r.getKey(),o,(function(t){return t.merge({nextSibling:c(t,o,n),prevSibling:l(t,o,n)})})),u(e.getKey(),n).forEach((function(t){return s(t,o,(function(t){return t.merge({children:t.getChildKeys().filter((function(t){return o.get(t)})),nextSibling:c(t,o,n),prevSibling:l(t,o,n)})}))})),s(e.getNextSiblingKey(),o,(function(t){return t.merge({prevSibling:e.getPrevSiblingKey()})})),s(e.getPrevSiblingKey(),o,(function(t){return t.merge({nextSibling:c(t,o,n)})})),s(r.getNextSiblingKey(),o,(function(t){return t.merge({prevSibling:l(t,o,n)})})),s(r.getPrevSiblingKey(),o,(function(t){return t.merge({nextSibling:r.getNextSiblingKey()})})),u(r.getKey(),n).forEach((function(t){s(t,o,(function(t){return t.merge({children:t.getChildKeys().filter((function(t){return o.get(t)})),nextSibling:c(t,o,n),prevSibling:l(t,o,n)})}))})),function(t,e){var r=[];if(!t)return r;for(var n=i(t,e);n&&e.get(n);){var o=e.get(n);r.push(n),n=o.getParentKey()?i(o,e):null}return r}(r,n).forEach((function(t){return s(t,o,(function(t){return t.merge({nextSibling:c(t,o,n),prevSibling:l(t,o,n)})}))})),null==t.get(e.getKey())&&null!=t.get(r.getKey())&&r.getParentKey()===e.getKey()&&null==r.getPrevSiblingKey()){var a=e.getPrevSiblingKey();s(r.getKey(),o,(function(t){return t.merge({prevSibling:a})})),s(a,o,(function(t){return t.merge({nextSibling:r.getKey()})}));var f=a?t.get(a):null,p=f?f.getParentKey():null;if(e.getChildKeys().forEach((function(t){s(t,o,(function(t){return t.merge({parent:p})}))})),null!=p){var h=t.get(p);s(p,o,(function(t){return t.merge({children:h.getChildKeys().concat(e.getChildKeys())})}))}s(e.getChildKeys().find((function(e){return null===t.get(e).getNextSiblingKey()})),o,(function(t){return t.merge({nextSibling:e.getNextSiblingKey()})}))}}))},p=function(t,e,r){if(0===e)for(;e<r;)t=t.shift(),e++;else if(r===t.count())for(;r>e;)t=t.pop(),r--;else{var n=t.slice(0,e),i=t.slice(r);t=n.concat(i).toList()}return t};t.exports=function(t,e){if(e.isCollapsed())return t;var r,o=t.getBlockMap(),s=e.getStartKey(),c=e.getStartOffset(),l=e.getEndKey(),h=e.getEndOffset(),d=o.get(s),v=o.get(l),g=d instanceof n,y=[];if(g){var m=v.getChildKeys(),_=u(l,o);v.getNextSiblingKey()&&(y=y.concat(_)),m.isEmpty()||(y=y.concat(_.concat([l]))),y=y.concat(u(i(v,o),o))}r=d===v?p(d.getCharacterList(),c,h):d.getCharacterList().slice(0,c).concat(v.getCharacterList().slice(h));var b=d.merge({text:d.getText().slice(0,c)+v.getText().slice(h),characterList:r}),S=g&&0===c&&0===h&&v.getParentKey()===s&&null==v.getPrevSiblingKey()?a([[s,null]]):o.toSeq().skipUntil((function(t,e){return e===s})).takeUntil((function(t,e){return e===l})).filter((function(t,e){return-1===y.indexOf(e)})).concat(a([[l,null]])).map((function(t,e){return e===s?b:null})),w=o.merge(S).filter((function(t){return!!t}));return g&&d!==v&&(w=f(w,d,v,o)),t.merge({blockMap:w,selectionBefore:e,selectionAfter:e.merge({anchorKey:s,anchorOffset:c,focusKey:s,focusOffset:c,isBackward:!1})})}},55002:t=>{"use strict";t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},55169:(t,e,r)=>{"use strict";var n=r(3238),i=TypeError;t.exports=function(t){if(n(t))throw new i("ArrayBuffer is detached");return t}},55203:(t,e,r)=>{"use strict";var n=r(45228);var i=r(16268),o=r(96540),a=r(90646),s=r(12623),u=r(94660).setDraftEditorSelection,c=function(t){var e,r;function DraftEditorLeaf(){for(var e,r,n,i,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return e=t.call.apply(t,[this].concat(a))||this,r=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e),i=void 0,(n="leaf")in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,e}r=t,(e=DraftEditorLeaf).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var c=DraftEditorLeaf.prototype;return c._setSelection=function(){var t=this.props.selection;if(null!=t&&t.getHasFocus()){var e=this.props,r=e.block,n=e.start,i=e.text,o=r.getKey(),c=n+i.length;if(t.hasEdgeWithin(o,n,c)){var l=this.leaf;l||a(!1);var f,p=l.firstChild;p||a(!1),p.nodeType===Node.TEXT_NODE?f=p:s(p)?f=l:(f=p.firstChild)||a(!1),u(t,f,o,n,c)}}},c.shouldComponentUpdate=function(t){var e=this.leaf;return e||a(!1),e.textContent!==t.text||t.styleSet!==this.props.styleSet||t.forceSelection},c.componentDidUpdate=function(){this._setSelection()},c.componentDidMount=function(){this._setSelection()},c.render=function(){var t=this,e=this.props.block,r=this.props.text;r.endsWith("\n")&&this.props.isLast&&(r+="\n");var a=this.props,s=a.customStyleMap,u=a.customStyleFn,c=a.offsetKey,l=a.styleSet,f=l.reduce((function(t,e){var r={},i=s[e];return void 0!==i&&t.textDecoration!==i.textDecoration&&(r.textDecoration=[t.textDecoration,i.textDecoration].join(" ").trim()),n(t,i,r)}),{});if(u){var p=u(l,e);f=n(f,p)}return o.createElement("span",{"data-offset-key":c,ref:function(e){return t.leaf=e},style:f},o.createElement(i,null,r))},DraftEditorLeaf}(o.Component);t.exports=c},55291:t=>{"use strict";t.exports=function(t){return!(!t||!t.ownerDocument)&&(t.ownerDocument.defaultView?t instanceof t.ownerDocument.defaultView.HTMLElement:t instanceof HTMLElement)}},55481:(t,e,r)=>{"use strict";var n=r(91439),i=r(50580).strlen;t.exports=function(t,e){var r=[];return t.findEntityRanges((function(t){return!!t.getEntity()}),(function(o,a){var s=t.getText(),u=t.getEntityAt(o);r.push({offset:i(s.slice(0,o)),length:i(s.slice(o,a)),key:Number(e[n.stringify(u)])})})),r}},55512:t=>{"use strict";t.exports=function(t,e,r,n){var i=self||window;try{try{var o;try{o=new i.Blob([t])}catch(e){(o=new(i.BlobBuilder||i.WebKitBlobBuilder||i.MozBlobBuilder||i.MSBlobBuilder)).append(t),o=o.getBlob()}var a=i.URL||i.webkitURL,s=a.createObjectURL(o),u=new i[e](s,r);return a.revokeObjectURL(s),u}catch(n){return new i[e]("data:application/javascript,".concat(encodeURIComponent(t)),r)}}catch(t){if(!n)throw Error("Inline worker is not supported");return new i[e](n,r)}}},55815:(t,e,r)=>{"use strict";r.d(e,{default:()=>u});const n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let i;const o=new Uint8Array(16);const a=[];for(let t=0;t<256;++t)a.push((t+256).toString(16).slice(1));function s(t,e=0){return(a[t[e+0]]+a[t[e+1]]+a[t[e+2]]+a[t[e+3]]+"-"+a[t[e+4]]+a[t[e+5]]+"-"+a[t[e+6]]+a[t[e+7]]+"-"+a[t[e+8]]+a[t[e+9]]+"-"+a[t[e+10]]+a[t[e+11]]+a[t[e+12]]+a[t[e+13]]+a[t[e+14]]+a[t[e+15]]).toLowerCase()}const u=function(t,e,r){if(n.randomUUID&&!e&&!t)return n.randomUUID();const a=(t=t||{}).random??t.rng?.()??function(){if(!i){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");i=crypto.getRandomValues.bind(crypto)}return i(o)}();if(a.length<16)throw new Error("Random bytes length must be >= 16");if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e){if((r=r||0)<0||r+16>e.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let t=0;t<16;++t)e[r+t]=a[t];return e}return s(a)}},55822:(t,e,r)=>{"use strict";var n=r(90646),i="LTR",o=null;function a(t){return t===i||"RTL"===t}function s(t){return a(t)||n(!1),t===i?"ltr":"rtl"}function u(t){o=t}var c={NEUTRAL:"NEUTRAL",LTR:i,RTL:"RTL",isStrong:a,getHTMLDir:s,getHTMLDirIfDifferent:function(t,e){return a(t)||n(!1),a(e)||n(!1),t===e?null:s(t)},setGlobalDir:u,initGlobalDir:function(){u(i)},getGlobalDir:function(){return o||this.initGlobalDir(),o||n(!1),o}};t.exports=c},56269:t=>{"use strict";t.exports=function(t,e,r){var n=t;if(r===n.count())e.forEach((function(t){n=n.push(t)}));else if(0===r)e.reverse().forEach((function(t){n=n.unshift(t)}));else{var i=n.slice(0,r),o=n.slice(r);n=i.concat(e,o).toList()}return n}},56408:t=>{"use strict";t.exports=function(t){if(null!=t)return t;throw new Error("Got unexpected null or undefined")}},56840:(t,e,r)=>{"use strict";var n=r(23018),i=r(18227),o=r(77337),a=o.List,s=o.Map,u=o.OrderedSet,c=o.Record,l=o.Repeat,f=u(),p=c({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:s()}),h=function(t){var e,r;function ContentBlock(e){return t.call(this,function(t){if(!t)return t;var e=t.characterList,r=t.text;return r&&!e&&(t.characterList=a(l(n.EMPTY,r.length))),t}(e))||this}r=t,(e=ContentBlock).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var o=ContentBlock.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():f},o.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},o.findStyleRanges=function(t,e){i(this.getCharacterList(),d,t,e)},o.findEntityRanges=function(t,e){i(this.getCharacterList(),v,t,e)},ContentBlock}(p);function d(t,e){return t.getStyle()===e.getStyle()}function v(t,e){return t.getEntity()===e.getEntity()}t.exports=h},57259:(t,e,r)=>{const n=r(96540);function i(t){return t&&!Array.isArray(t)&&Object(t)===t}function o(t){let e=null;if(navigator.mediaDevices&&(e=navigator.mediaDevices.getSupportedConstraints()),null===e)return;let r=Object.keys(t).filter((t=>!e[t]));if(0!==r.length){let t=r.join(",");console.error(`The following constraints ${t} are not supported on this browser.`)}}const a=()=>{};t.exports=function({blobOptions:t,recordScreen:e,customMediaStream:r,onStop:s=a,onStart:u=a,onError:c=a,mediaRecorderOptions:l,onDataAvailable:f=a,mediaStreamConstraints:p={}}){let h=n.useRef([]),d=n.useRef(null),v=n.useRef(null),[g,y]=n.useState("idle"),[m,_]=n.useState(null),[b,S]=n.useState(null),[w,x]=n.useState(!1);async function E(){if(m&&_(null),y("acquiring_media"),r&&r instanceof MediaStream)return d.current=r,r;try{let t;if(t=e?await window.navigator.mediaDevices.getDisplayMedia(p):await window.navigator.mediaDevices.getUserMedia(p),e&&p.audio){(await window.navigator.mediaDevices.getUserMedia({audio:p.audio})).getAudioTracks().forEach((e=>t.addTrack(e)))}return d.current=t,y("ready"),t}catch(t){_(t),y("failed")}}function M(){d.current&&(d.current.getTracks().forEach((t=>t.stop())),d.current=null,y("idle"))}function O(t){t.data.size&&h.current.push(t.data),f(t.data)}function k(){let e=new Blob,r=new Blob;if(h.current.length){[r]=h.current;let n=Object.assign({type:r.type},t);e=new Blob(h.current,n),S(e)}y("stopped"),s(e)}function C(t){_(t.error),y("idle"),c(t.error)}function D(t){x(t),d.current&&d.current.getAudioTracks().forEach((e=>{e.enabled=!t}))}return n.useEffect((()=>{if(!window.MediaRecorder)throw new ReferenceError("MediaRecorder is not supported in this browser. Please ensure that you are running the latest version of chrome/firefox/edge.");if(e&&!window.navigator.mediaDevices.getDisplayMedia)throw new ReferenceError("This browser does not support screen capturing.");i(p.video)&&o(p.video),i(p.audio)&&o(p.audio),l&&l.mimeType&&(MediaRecorder.isTypeSupported(l.mimeType)||console.error("The specified MIME type supplied to MediaRecorder is not supported by this browser."))}),[p,l,e]),{error:m,status:g,mediaBlob:b,isAudioMuted:w,stopRecording:function(){v.current&&(y("stopping"),v.current.stop(),v.current.removeEventListener("dataavailable",O),v.current.removeEventListener("stop",k),v.current.removeEventListener("error",C),v.current=null,r||M())},getMediaStream:E,startRecording:async function(t){if(m&&_(null),d.current||await E(),h.current=[],d.current){v.current=new MediaRecorder(d.current,l),v.current.addEventListener("dataavailable",O),v.current.addEventListener("stop",k),v.current.addEventListener("error",C);try{v.current.start(t),y("recording"),u()}catch(t){C({error:t})}}},pauseRecording:function(){v.current&&"recording"===v.current.state&&(v.current.pause(),y("paused"))},resumeRecording:function(){v.current&&"paused"===v.current.state&&(v.current.resume(),y("recording"))},clearMediaStream:M,clearMediaBlob:function(){S(null)},muteAudio:()=>D(!0),unMuteAudio:()=>D(!1),get liveStream(){return d.current?new MediaStream(d.current.getTracks()):null}}}},57438:t=>{"use strict";function Mime(){this._types=Object.create(null),this._extensions=Object.create(null);for(let t=0;t<arguments.length;t++)this.define(arguments[t]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}Mime.prototype.define=function(t,e){for(let r in t){let n=t[r].map((function(t){return t.toLowerCase()}));r=r.toLowerCase();for(let t=0;t<n.length;t++){const i=n[t];if("*"!==i[0]){if(!e&&i in this._types)throw new Error('Attempt to change mapping for "'+i+'" extension from "'+this._types[i]+'" to "'+r+'". Pass `force=true` to allow this, otherwise remove "'+i+'" from the list of extensions for "'+r+'".');this._types[i]=r}}if(e||!this._extensions[r]){const t=n[0];this._extensions[r]="*"!==t[0]?t:t.substr(1)}}},Mime.prototype.getType=function(t){let e=(t=String(t)).replace(/^.*[/\\]/,"").toLowerCase(),r=e.replace(/^.*\./,"").toLowerCase(),n=e.length<t.length;return(r.length<e.length-1||!n)&&this._types[r]||null},Mime.prototype.getExtension=function(t){return(t=/^\s*([^;\s]*)/.test(t)&&RegExp.$1)&&this._extensions[t.toLowerCase()]||null},t.exports=Mime},57811:(t,e,r)=>{"use strict";var n=r(59414),i=r(45852),o=r(14134),a=o.isPlatform("Mac OS X"),s=a&&o.isBrowser("Firefox < 29"),u=n.hasCommandModifier,c=n.isCtrlKeyCommand;function l(t){return a&&t.altKey||c(t)}t.exports=function(t){switch(t.keyCode){case 66:return u(t)?"bold":null;case 68:return c(t)?"delete":null;case 72:return c(t)?"backspace":null;case 73:return u(t)?"italic":null;case 74:return u(t)?"code":null;case 75:return a&&c(t)?"secondary-cut":null;case 77:case 79:return c(t)?"split-block":null;case 84:return a&&c(t)?"transpose-characters":null;case 85:return u(t)?"underline":null;case 87:return a&&c(t)?"backspace-word":null;case 89:return c(t)?a?"secondary-paste":"redo":null;case 90:return function(t){return u(t)?t.shiftKey?"redo":"undo":null}(t)||null;case i.RETURN:return"split-block";case i.DELETE:return function(t){return!a&&t.shiftKey?null:l(t)?"delete-word":"delete"}(t);case i.BACKSPACE:return function(t){return u(t)&&a?"backspace-to-start-of-line":l(t)?"backspace-word":"backspace"}(t);case i.LEFT:return s&&u(t)?"move-selection-to-start-of-block":null;case i.RIGHT:return s&&u(t)?"move-selection-to-end-of-block":null;default:return null}}},58488:(t,e,r)=>{"use strict";r(14594);t.exports=function(t,e){var r=t.getSelection(),n=t.getCurrentContent(),i=r.getStartKey(),o=r.getStartOffset(),a=i,s=0;if(e>o){var u=n.getKeyBefore(i);if(null==u)a=i;else a=u,s=n.getBlockForKey(u).getText().length}else s=o-e;return r.merge({focusKey:a,focusOffset:s,isBackward:!0})}},59143:(t,e,r)=>{"use strict";var n=r(44576),i=r(79504),o=r(83972),a=r(63463),s=r(39297),u=r(92804),c=r(944),l=r(55169),f=u.c2i,p=u.c2iUrl,h=n.SyntaxError,d=n.TypeError,v=i("".charAt),g=function(t,e){for(var r=t.length;e<r;e++){var n=v(t,e);if(" "!==n&&"\t"!==n&&"\n"!==n&&"\f"!==n&&"\r"!==n)break}return e},y=function(t,e,r){var n=t.length;n<4&&(t+=2===n?"AA":"A");var i=(e[v(t,0)]<<18)+(e[v(t,1)]<<12)+(e[v(t,2)]<<6)+e[v(t,3)],o=[i>>16&255,i>>8&255,255&i];if(2===n){if(r&&0!==o[1])throw new h("Extra bits");return[o[0]]}if(3===n){if(r&&0!==o[2])throw new h("Extra bits");return[o[0],o[1]]}return o},m=function(t,e,r){for(var n=e.length,i=0;i<n;i++)t[r+i]=e[i];return r+n};t.exports=function(t,e,r,n){a(t),o(e);var i="base64"===c(e)?f:p,u=e?e.lastChunkHandling:void 0;if(void 0===u&&(u="loose"),"loose"!==u&&"strict"!==u&&"stop-before-partial"!==u)throw new d("Incorrect `lastChunkHandling` option");r&&l(r.buffer);var _=r||[],b=0,S=0,w="",x=0;if(n)for(;;){if((x=g(t,x))===t.length){if(w.length>0){if("stop-before-partial"===u)break;if("loose"!==u)throw new h("Missing padding");if(1===w.length)throw new h("Malformed padding: exactly one additional character");b=m(_,y(w,i,!1),b)}S=t.length;break}var E=v(t,x);if(++x,"="===E){if(w.length<2)throw new h("Padding is too early");if(x=g(t,x),2===w.length){if(x===t.length){if("stop-before-partial"===u)break;throw new h("Malformed padding: only one =")}"="===v(t,x)&&(++x,x=g(t,x))}if(x<t.length)throw new h("Unexpected character after padding");b=m(_,y(w,i,"strict"===u),b),S=t.length;break}if(!s(i,E))throw new h("Unexpected character");var M=n-b;if(1===M&&2===w.length||2===M&&3===w.length)break;if(4===(w+=E).length&&(b=m(_,y(w,i,!1),b),w="",S=x,b===n))break}return{bytes:_,read:S,written:b}}},59395:t=>{"use strict";function e(t){return function(){return t}}var r=function(){};r.thatReturns=e,r.thatReturnsFalse=e(!1),r.thatReturnsTrue=e(!0),r.thatReturnsNull=e(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},59414:(t,e,r)=>{"use strict";var n=r(14134),i=r(83174),o=n.isPlatform("Mac OS X"),a={isCtrlKeyCommand:function(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function(t){return o&&t.altKey},usesMacOSHeuristics:function(){return o},hasCommandModifier:function(t){return o?!!t.metaKey&&!t.altKey:a.isCtrlKeyCommand(t)},isSoftNewlineEvent:i};t.exports=a},59824:t=>{"use strict";var e="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;t.exports=function(t){return(t=t||document).scrollingElement?t.scrollingElement:e||"CSS1Compat"!==t.compatMode?t.body:t.documentElement}},60286:t=>{"use strict";t.exports=function(t,e,r,n){var i=e.getStartKey(),o=e.getEndKey(),a=t.getBlockMap(),s=a.toSeq().skipUntil((function(t,e){return e===i})).takeUntil((function(t,e){return e===o})).concat([[o,a.get(o)]]).map((function(t){var e=t.getDepth()+r;return e=Math.max(0,Math.min(e,n)),t.set("depth",e)}));return a=a.merge(s),t.merge({blockMap:a,selectionBefore:e,selectionAfter:e})}},61034:(t,e,r)=>{"use strict";var n=r(69565),i=r(39297),o=r(1625),a=r(67979),s=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in s||i(t,"flags")||!o(s,t)?e:n(a,t)}},61708:(t,e,r)=>{"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=r(68307),o=r(55822),a=r(90646),s=function(){function UnicodeBidiService(t){n(this,"_defaultDir",void 0),n(this,"_lastDir",void 0),t?o.isStrong(t)||a(!1):t=o.getGlobalDir(),this._defaultDir=t,this.reset()}var t=UnicodeBidiService.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(t){return this._lastDir=i.getDirection(t,this._lastDir),this._lastDir},UnicodeBidiService}();t.exports=s},62396:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){i(t,e,r[e])}))}return t}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(6991),a=r(90646),s=function(t){if(!t||!t.type)return!1;var e=t.type;return"unordered-list-item"===e||"ordered-list-item"===e},u={fromRawTreeStateToRawState:function(t){var e=t.blocks,r=[];return Array.isArray(e)||a(!1),Array.isArray(e)&&e.length?(function(t,e){for(var r=[].concat(t).reverse();r.length;){var n=r.pop();e(n);var i=n.children;Array.isArray(i)||a(!1),r=r.concat([].concat(i.reverse()))}}(e,(function(t){var e=n({},t);s(t)&&(e.depth=e.depth||0,function(t){Array.isArray(t.children)&&(t.children=t.children.map((function(e){return e.type===t.type?n({},e,{depth:(t.depth||0)+1}):e})))}(t),null!=t.children&&t.children.length>0)||(delete e.children,r.push(e))})),t.blocks=r,n({},t,{blocks:r})):t},fromRawStateToRawTreeState:function(t){var e=[],r=[];return t.blocks.forEach((function(t){var i=s(t),a=t.depth||0,u=n({},t,{children:[]});if(i){var c=r[0];if(null==c&&0===a)e.push(u);else if(null==c||c.depth<a-1){var l={key:o(),text:"",depth:a-1,type:t.type,children:[],entityRanges:[],inlineStyleRanges:[]};r.unshift(l),1===a?e.push(l):null!=c&&c.children.push(l),l.children.push(u)}else if(c.depth===a-1)c.children.push(u);else{for(;null!=c&&c.depth>=a;)r.shift(),c=r[0];a>0?c.children.push(u):e.push(u)}}else e.push(u)})),n({},t,{blocks:e})}};t.exports=u},63299:(t,e,r)=>{"use strict";var n=r(45228);function i(){return i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i.apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){s(t,e,r[e])}))}return t}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var c=r(13387),l=r(87918),f=r(13136),p=r(79777),h=r(42474),d=r(97784),v=r(74576),g=r(49884),y=r(953),m=r(12242),_=r(96540),b=r(93529),S=r(2935),w=r(14134),x=r(98003),E=r(6991),M=r(57811),O=r(97392),k=r(47282),C=r(90646),D=r(55291),I=r(56408),A=w.isBrowser("IE"),R=!A,T={edit:d,composite:f,drag:h,cut:null,render:null},z=!1,B=function(t){function UpdateDraftEditorFlags(){return t.apply(this,arguments)||this}u(UpdateDraftEditorFlags,t);var e=UpdateDraftEditorFlags.prototype;return e.render=function(){return null},e.componentDidMount=function(){this._update()},e.componentDidUpdate=function(){this._update()},e._update=function(){var t=this.props.editor;t._latestEditorState=this.props.editorState,t._blockSelectEvents=!0},UpdateDraftEditorFlags}(_.Component),q=function(t){function DraftEditor(e){var r;return s(a(r=t.call(this,e)||this),"_blockSelectEvents",void 0),s(a(r),"_clipboard",void 0),s(a(r),"_handler",void 0),s(a(r),"_dragCount",void 0),s(a(r),"_internalDrag",void 0),s(a(r),"_editorKey",void 0),s(a(r),"_placeholderAccessibilityID",void 0),s(a(r),"_latestEditorState",void 0),s(a(r),"_latestCommittedEditorState",void 0),s(a(r),"_pendingStateFromBeforeInput",void 0),s(a(r),"_onBeforeInput",void 0),s(a(r),"_onBlur",void 0),s(a(r),"_onCharacterData",void 0),s(a(r),"_onCompositionEnd",void 0),s(a(r),"_onCompositionStart",void 0),s(a(r),"_onCopy",void 0),s(a(r),"_onCut",void 0),s(a(r),"_onDragEnd",void 0),s(a(r),"_onDragOver",void 0),s(a(r),"_onDragStart",void 0),s(a(r),"_onDrop",void 0),s(a(r),"_onInput",void 0),s(a(r),"_onFocus",void 0),s(a(r),"_onKeyDown",void 0),s(a(r),"_onKeyPress",void 0),s(a(r),"_onKeyUp",void 0),s(a(r),"_onMouseDown",void 0),s(a(r),"_onMouseUp",void 0),s(a(r),"_onPaste",void 0),s(a(r),"_onSelect",void 0),s(a(r),"editor",void 0),s(a(r),"editorContainer",void 0),s(a(r),"focus",void 0),s(a(r),"blur",void 0),s(a(r),"setMode",void 0),s(a(r),"exitCurrentMode",void 0),s(a(r),"restoreEditorDOM",void 0),s(a(r),"setClipboard",void 0),s(a(r),"getClipboard",void 0),s(a(r),"getEditorKey",void 0),s(a(r),"update",void 0),s(a(r),"onDragEnter",void 0),s(a(r),"onDragLeave",void 0),s(a(r),"_handleEditorContainerRef",(function(t){r.editorContainer=t,r.editor=null!==t?t.firstChild:null})),s(a(r),"focus",(function(t){var e=r.props.editorState,n=e.getSelection().getHasFocus(),i=r.editor;if(i){var o=S.getScrollParent(i),a=t||O(o),s=a.x,u=a.y;D(i)||C(!1),i.focus(),o===window?window.scrollTo(s,u):b.setTop(o,u),n||r.update(m.forceSelection(e,e.getSelection()))}})),s(a(r),"blur",(function(){var t=r.editor;t&&(D(t)||C(!1),t.blur())})),s(a(r),"setMode",(function(t){var e=r.props,n=e.onPaste,i=e.onCut,a=e.onCopy,s=o({},T.edit);n&&(s.onPaste=n),i&&(s.onCut=i),a&&(s.onCopy=a);var u=o({},T,{edit:s});r._handler=u[t]})),s(a(r),"exitCurrentMode",(function(){r.setMode("edit")})),s(a(r),"restoreEditorDOM",(function(t){r.setState({contentsKey:r.state.contentsKey+1},(function(){r.focus(t)}))})),s(a(r),"setClipboard",(function(t){r._clipboard=t})),s(a(r),"getClipboard",(function(){return r._clipboard})),s(a(r),"update",(function(t){r._latestEditorState=t,r.props.onChange(t)})),s(a(r),"onDragEnter",(function(){r._dragCount++})),s(a(r),"onDragLeave",(function(){r._dragCount--,0===r._dragCount&&r.exitCurrentMode()})),r._blockSelectEvents=!1,r._clipboard=null,r._handler=null,r._dragCount=0,r._editorKey=e.editorKey||E(),r._placeholderAccessibilityID="placeholder-"+r._editorKey,r._latestEditorState=e.editorState,r._latestCommittedEditorState=e.editorState,r._onBeforeInput=r._buildHandler("onBeforeInput"),r._onBlur=r._buildHandler("onBlur"),r._onCharacterData=r._buildHandler("onCharacterData"),r._onCompositionEnd=r._buildHandler("onCompositionEnd"),r._onCompositionStart=r._buildHandler("onCompositionStart"),r._onCopy=r._buildHandler("onCopy"),r._onCut=r._buildHandler("onCut"),r._onDragEnd=r._buildHandler("onDragEnd"),r._onDragOver=r._buildHandler("onDragOver"),r._onDragStart=r._buildHandler("onDragStart"),r._onDrop=r._buildHandler("onDrop"),r._onInput=r._buildHandler("onInput"),r._onFocus=r._buildHandler("onFocus"),r._onKeyDown=r._buildHandler("onKeyDown"),r._onKeyPress=r._buildHandler("onKeyPress"),r._onKeyUp=r._buildHandler("onKeyUp"),r._onMouseDown=r._buildHandler("onMouseDown"),r._onMouseUp=r._buildHandler("onMouseUp"),r._onPaste=r._buildHandler("onPaste"),r._onSelect=r._buildHandler("onSelect"),r.getEditorKey=function(){return r._editorKey},r.state={contentsKey:0},r}u(DraftEditor,t);var e=DraftEditor.prototype;return e._buildHandler=function(t){var e=this;return function(r){if(!e.props.readOnly){var n=e._handler&&e._handler[t];n&&(v?v((function(){return n(e,r)})):n(e,r))}}},e._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},e._renderPlaceholder=function(){if(this._showPlaceholder()){var t={text:I(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return _.createElement(g,t)}return null},e._renderARIADescribedBy=function(){var t=this.props.ariaDescribedBy||"",e=this._showPlaceholder()?this._placeholderAccessibilityID:"";return t.replace("{{editor_id_placeholder}}",e)||void 0},e.render=function(){var t=this.props,e=t.blockRenderMap,r=t.blockRendererFn,n=t.blockStyleFn,a=t.customStyleFn,s=t.customStyleMap,u=t.editorState,c=t.preventScroll,f=t.readOnly,h=t.textAlignment,d=t.textDirectionality,v=x({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===h,"DraftEditor/alignRight":"right"===h,"DraftEditor/alignCenter":"center"===h}),g=this.props.role||"textbox",y="combobox"===g?!!this.props.ariaExpanded:null,m={blockRenderMap:e,blockRendererFn:r,blockStyleFn:n,customStyleMap:o({},l,s),customStyleFn:a,editorKey:this._editorKey,editorState:u,preventScroll:c,textDirectionality:d};return _.createElement("div",{className:v},this._renderPlaceholder(),_.createElement("div",{className:x("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},_.createElement("div",{"aria-activedescendant":f?null:this.props.ariaActiveDescendantID,"aria-autocomplete":f?null:this.props.ariaAutoComplete,"aria-controls":f?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":f?null:y,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":f?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:x({notranslate:!f,"public/DraftEditor/content":!0}),contentEditable:!f,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:f?null:g,spellCheck:R&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},_.createElement(B,{editor:this,editorState:u}),_.createElement(p,i({},m,{key:"contents"+this.state.contentsKey})))))},e.componentDidMount=function(){this._blockSelectEvents=!1,!z&&k("draft_ods_enabled")&&(z=!0,y.initODS()),this.setMode("edit"),A&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):r.g.execCommand("AutoUrlDetect",!1,!1))},e.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},DraftEditor}(_.Component);s(q,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:c,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:M,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),t.exports=q},63463:t=>{"use strict";var e=TypeError;t.exports=function(t){if("string"==typeof t)return t;throw new e("Argument is not a string")}},63564:(t,e,r)=>{"use strict";var n=r(90646),i=r(55291);t.exports=function(t){var e=t.editorContainer;return e||n(!1),i(e.firstChild)||n(!1),e.firstChild}},64071:(t,e,r)=>{"use strict";var n=r(49938),i=r(12242);t.exports=function(t){var e=n.splitBlock(t.getCurrentContent(),t.getSelection());return i.push(t,e,"split-block")}},64316:t=>{"use strict";t.exports=function(t){if(!t||!("ownerDocument"in t))return!1;if("ownerDocument"in t){var e=t;if(!e.ownerDocument.defaultView)return e instanceof Node;if(e instanceof e.ownerDocument.defaultView.Node)return!0}return!1}},64658:(t,e,r)=>{"use strict";var n=r(25377);t.exports=function(t){var e=n(t),r=0,i=0,o=0,a=0;if(e.length){if(e.length>1&&0===e[0].width){var s=e[1];r=s.top,i=s.right,o=s.bottom,a=s.left}else{var u=e[0];r=u.top,i=u.right,o=u.bottom,a=u.left}for(var c=1;c<e.length;c++){var l=e[c];0!==l.height&&0!==l.width&&(r=Math.min(r,l.top),i=Math.max(i,l.right),o=Math.max(o,l.bottom),a=Math.min(a,l.left))}}return{top:r,right:i,bottom:o,left:a,width:i-a,height:o-r}}},64979:(t,e,r)=>{"use strict";var n=r(46518),i=r(44576),o=r(97751),a=r(6980),s=r(24913).f,u=r(39297),c=r(90679),l=r(23167),f=r(32603),p=r(55002),h=r(16193),d=r(43724),v=r(96395),g="DOMException",y=o("Error"),m=o(g),_=function DOMException(){c(this,b);var t=arguments.length,e=f(t<1?void 0:arguments[0]),r=f(t<2?void 0:arguments[1],"Error"),n=new m(e,r),i=new y(e);return i.name=g,s(n,"stack",a(1,h(i.stack,1))),l(n,this,_),n},b=_.prototype=m.prototype,S="stack"in new y(g),w="stack"in new m(1,2),x=m&&d&&Object.getOwnPropertyDescriptor(i,g),E=!(!x||x.writable&&x.configurable),M=S&&!E&&!w;n({global:!0,constructor:!0,forced:v||M},{DOMException:M?_:m});var O=o(g),k=O.prototype;if(k.constructor!==O)for(var C in v||s(k,"constructor",a(1,O)),p)if(u(p,C)){var D=p[C],I=D.s;u(O,I)||s(O,I,a(6,D.c))}},65224:(t,e,r)=>{"use strict";var n=r(23018),i=r(18227),o=r(77337),a=o.List,s=o.Map,u=o.OrderedSet,c=o.Record,l=o.Repeat,f=u(),p={parent:null,characterList:a(),data:s(),depth:0,key:"",text:"",type:"unstyled",children:a(),prevSibling:null,nextSibling:null},h=function(t,e){return t.getStyle()===e.getStyle()},d=function(t,e){return t.getEntity()===e.getEntity()},v=function(t){var e,r;function ContentBlockNode(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;return t.call(this,function(t){if(!t)return t;var e=t.characterList,r=t.text;return r&&!e&&(t.characterList=a(l(n.EMPTY,r.length))),t}(e))||this}r=t,(e=ContentBlockNode).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var o=ContentBlockNode.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():f},o.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},o.getChildKeys=function(){return this.get("children")},o.getParentKey=function(){return this.get("parent")},o.getPrevSiblingKey=function(){return this.get("prevSibling")},o.getNextSiblingKey=function(){return this.get("nextSibling")},o.findStyleRanges=function(t,e){i(this.getCharacterList(),h,t,e)},o.findEntityRanges=function(t,e){i(this.getCharacterList(),d,t,e)},ContentBlockNode}(c(p));t.exports=v},65848:(t,e,r)=>{"use strict";t.exports=r(72911)},66429:()=>{},67204:t=>{"use strict";t.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},67309:(t,e,r)=>{"use strict";r.d(e,{default:()=>u});const n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let i;const o=new Uint8Array(16);const a=[];for(let t=0;t<256;++t)a.push((t+256).toString(16).slice(1));function s(t,e=0){return(a[t[e+0]]+a[t[e+1]]+a[t[e+2]]+a[t[e+3]]+"-"+a[t[e+4]]+a[t[e+5]]+"-"+a[t[e+6]]+a[t[e+7]]+"-"+a[t[e+8]]+a[t[e+9]]+"-"+a[t[e+10]]+a[t[e+11]]+a[t[e+12]]+a[t[e+13]]+a[t[e+14]]+a[t[e+15]]).toLowerCase()}const u=function(t,e,r){if(n.randomUUID&&!e&&!t)return n.randomUUID();const a=(t=t||{}).random??t.rng?.()??function(){if(!i){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");i=crypto.getRandomValues.bind(crypto)}return i(o)}();if(a.length<16)throw new Error("Random bytes length must be >= 16");if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e){if((r=r||0)<0||r+16>e.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let t=0;t<16;++t)e[r+t]=a[t];return e}return s(a)}},67394:(t,e,r)=>{"use strict";var n=r(44576),i=r(46706),o=r(22195),a=n.ArrayBuffer,s=n.TypeError;t.exports=a&&i(a.prototype,"byteLength","get")||function(t){if("ArrayBuffer"!==o(t))throw new s("ArrayBuffer expected");return t.byteLength}},67979:(t,e,r)=>{"use strict";var n=r(28551);t.exports=function(){var t=n(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},68307:(t,e,r)=>{"use strict";var n=r(55822),i=r(90646),o="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",a="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",s=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+o+a+"]"),u=new RegExp("["+o+a+"]");function c(t){var e=s.exec(t);return null==e?null:e[0]}function l(t){var e=c(t);return null==e?n.NEUTRAL:u.exec(e)?n.RTL:n.LTR}function f(t,e){if(e=e||n.NEUTRAL,!t.length)return e;var r=l(t);return r===n.NEUTRAL?e:r}function p(t,e){return e||(e=n.getGlobalDir()),n.isStrong(e)||i(!1),f(t,e)}var h={firstStrongChar:c,firstStrongCharDir:l,resolveBlockDir:f,getDirection:p,isDirectionLTR:function(t,e){return p(t,e)===n.LTR},isDirectionRTL:function(t,e){return p(t,e)===n.RTL}};t.exports=h},68382:t=>{"use strict";t.exports={getRemovalRange:function(t,e,r,n,i){var o=r.split(" ");o=o.map((function(t,e){if("forward"===i){if(e>0)return" "+t}else if(e<o.length-1)return t+" ";return t}));for(var a,s=n,u=null,c=null,l=0;l<o.length;l++){if(t<(a=s+o[l].length)&&s<e)null!==u||(u=s),c=a;else if(null!==u)break;s=a}var f=n+r.length,p=u===n,h=c===f;return(!p&&h||p&&!h)&&("forward"===i?c!==f&&c++:u!==n&&u--),{start:u,end:c}}}},69083:(t,e,r)=>{"use strict";var n=r(77337).List,i=function(){function CompositeDraftDecorator(t){var e,r,n;n=void 0,(r="_decorators")in(e=this)?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,this._decorators=t.slice()}var t=CompositeDraftDecorator.prototype;return t.getDecorations=function(t,e){var r=Array(t.getText().length).fill(null);return this._decorators.forEach((function(n,i){var o=0;(0,n.strategy)(t,(function(t,e){(function(t,e,r){for(var n=e;n<r;n++)if(null!=t[n])return!1;return!0})(r,t,e)&&(!function(t,e,r,n){for(var i=e;i<r;i++)t[i]=n}(r,t,e,i+"."+o),o++)}),e)})),n(r)},t.getComponentForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].component},t.getPropsForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].props},CompositeDraftDecorator}();t.exports=i},69311:(t,e,r)=>{"use strict";var n=r(90646);t.exports=function(t,e){var r=[];return t.findEntityRanges((function(t){return t.getEntity()===e}),(function(t,e){r.push({start:t,end:e})})),r.length||n(!1),r}},69758:t=>{"use strict";t.exports=function(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}},70081:(t,e,r)=>{"use strict";var n=r(69565),i=r(79306),o=r(28551),a=r(16823),s=r(50851),u=TypeError;t.exports=function(t,e){var r=arguments.length<2?s(t):e;if(i(r))return o(n(r,t));throw new u(a(t)+" is not iterable")}},70525:(t,e,r)=>{"use strict";var n=r(73998),i=r(12242),o=r(77800),a=r(5188);t.exports=function(t){var e=a(t,(function(t){var e=t.getSelection(),r=e.getStartOffset(),i=e.getStartKey(),a=t.getCurrentContent().getBlockForKey(i).getText().slice(r),s=n.getForward(a);return o(t,s.length||1)}),"forward");return e===t.getCurrentContent()?t:i.push(t,e,"remove-range")}},70731:t=>{var e={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},r=Object.keys(e).join("|"),n=new RegExp(r,"g"),i=new RegExp(r,"");function o(t){return e[t]}var a=function(t){return t.replace(n,o)};t.exports=a,t.exports.has=function(t){return!!t.match(i)},t.exports.remove=a},71678:(t,e,r)=>{"use strict";var n,i=r(96395),o=r(46518),a=r(44576),s=r(97751),u=r(79504),c=r(79039),l=r(33392),f=r(94901),p=r(33517),h=r(64117),d=r(20034),v=r(10757),g=r(72652),y=r(28551),m=r(36955),_=r(39297),b=r(97040),S=r(66699),w=r(26198),x=r(22812),E=r(61034),M=r(72248),O=r(94402),k=r(38469),C=r(94483),D=r(24659),I=r(1548),A=a.Object,R=a.Array,T=a.Date,z=a.Error,B=a.TypeError,q=a.PerformanceMark,P=s("DOMException"),j=M.Map,L=M.has,K=M.get,N=M.set,F=O.Set,U=O.add,G=O.has,H=s("Object","keys"),W=u([].push),V=u((!0).valueOf),X=u(1..valueOf),Y=u("".valueOf),$=u(T.prototype.getTime),J=l("structuredClone"),Z="DataCloneError",Q="Transferring",tt=function(t){return!c((function(){var e=new a.Set([7]),r=t(e),n=t(A(7));return r===e||!r.has(7)||!d(n)||7!=+n}))&&t},et=function(t,e){return!c((function(){var r=new e,n=t({a:r,b:r});return!(n&&n.a===n.b&&n.a instanceof e&&n.a.stack===r.stack)}))},rt=a.structuredClone,nt=i||!et(rt,z)||!et(rt,P)||(n=rt,!!c((function(){var t=n(new a.AggregateError([1],J,{cause:3}));return"AggregateError"!==t.name||1!==t.errors[0]||t.message!==J||3!==t.cause}))),it=!rt&&tt((function(t){return new q(J,{detail:t}).detail})),ot=tt(rt)||it,at=function(t){throw new P("Uncloneable type: "+t,Z)},st=function(t,e){throw new P((e||"Cloning")+" of "+t+" cannot be properly polyfilled in this engine",Z)},ut=function(t,e){return ot||st(e),ot(t)},ct=function(t,e,r){if(L(e,t))return K(e,t);var n,i,o,s,u,c;if("SharedArrayBuffer"===(r||m(t)))n=ot?ot(t):t;else{var l=a.DataView;l||f(t.slice)||st("ArrayBuffer");try{if(f(t.slice)&&!t.resizable)n=t.slice(0);else{i=t.byteLength,o="maxByteLength"in t?{maxByteLength:t.maxByteLength}:void 0,n=new ArrayBuffer(i,o),s=new l(t),u=new l(n);for(c=0;c<i;c++)u.setUint8(c,s.getUint8(c))}}catch(t){throw new P("ArrayBuffer is detached",Z)}}return N(e,t,n),n},lt=function(t,e){if(v(t)&&at("Symbol"),!d(t))return t;if(e){if(L(e,t))return K(e,t)}else e=new j;var r,n,i,o,u,c,l,p,h=m(t);switch(h){case"Array":i=R(w(t));break;case"Object":i={};break;case"Map":i=new j;break;case"Set":i=new F;break;case"RegExp":i=new RegExp(t.source,E(t));break;case"Error":switch(n=t.name){case"AggregateError":i=new(s(n))([]);break;case"EvalError":case"RangeError":case"ReferenceError":case"SuppressedError":case"SyntaxError":case"TypeError":case"URIError":i=new(s(n));break;case"CompileError":case"LinkError":case"RuntimeError":i=new(s("WebAssembly",n));break;default:i=new z}break;case"DOMException":i=new P(t.message,t.name);break;case"ArrayBuffer":case"SharedArrayBuffer":i=ct(t,e,h);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":c="DataView"===h?t.byteLength:t.length,i=function(t,e,r,n,i){var o=a[e];return d(o)||st(e),new o(ct(t.buffer,i),r,n)}(t,h,t.byteOffset,c,e);break;case"DOMQuad":try{i=new DOMQuad(lt(t.p1,e),lt(t.p2,e),lt(t.p3,e),lt(t.p4,e))}catch(e){i=ut(t,h)}break;case"File":if(ot)try{i=ot(t),m(i)!==h&&(i=void 0)}catch(t){}if(!i)try{i=new File([t],t.name,t)}catch(t){}i||st(h);break;case"FileList":if(o=function(){var t;try{t=new a.DataTransfer}catch(e){try{t=new a.ClipboardEvent("").clipboardData}catch(t){}}return t&&t.items&&t.files?t:null}()){for(u=0,c=w(t);u<c;u++)o.items.add(lt(t[u],e));i=o.files}else i=ut(t,h);break;case"ImageData":try{i=new ImageData(lt(t.data,e),t.width,t.height,{colorSpace:t.colorSpace})}catch(e){i=ut(t,h)}break;default:if(ot)i=ot(t);else switch(h){case"BigInt":i=A(t.valueOf());break;case"Boolean":i=A(V(t));break;case"Number":i=A(X(t));break;case"String":i=A(Y(t));break;case"Date":i=new T($(t));break;case"Blob":try{i=t.slice(0,t.size,t.type)}catch(t){st(h)}break;case"DOMPoint":case"DOMPointReadOnly":r=a[h];try{i=r.fromPoint?r.fromPoint(t):new r(t.x,t.y,t.z,t.w)}catch(t){st(h)}break;case"DOMRect":case"DOMRectReadOnly":r=a[h];try{i=r.fromRect?r.fromRect(t):new r(t.x,t.y,t.width,t.height)}catch(t){st(h)}break;case"DOMMatrix":case"DOMMatrixReadOnly":r=a[h];try{i=r.fromMatrix?r.fromMatrix(t):new r(t)}catch(t){st(h)}break;case"AudioData":case"VideoFrame":f(t.clone)||st(h);try{i=t.clone()}catch(t){at(h)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":st(h);default:at(h)}}switch(N(e,t,i),h){case"Array":case"Object":for(l=H(t),u=0,c=w(l);u<c;u++)p=l[u],b(i,p,lt(t[p],e));break;case"Map":t.forEach((function(t,r){N(i,lt(r,e),lt(t,e))}));break;case"Set":t.forEach((function(t){U(i,lt(t,e))}));break;case"Error":S(i,"message",lt(t.message,e)),_(t,"cause")&&S(i,"cause",lt(t.cause,e)),"AggregateError"===n?i.errors=lt(t.errors,e):"SuppressedError"===n&&(i.error=lt(t.error,e),i.suppressed=lt(t.suppressed,e));case"DOMException":D&&S(i,"stack",lt(t.stack,e))}return i};o({global:!0,enumerable:!0,sham:!I,forced:nt},{structuredClone:function(t){var e,r,n=x(arguments.length,1)>1&&!h(arguments[1])?y(arguments[1]):void 0,i=n?n.transfer:void 0;void 0!==i&&(r=function(t,e){if(!d(t))throw new B("Transfer option cannot be converted to a sequence");var r=[];g(t,(function(t){W(r,y(t))}));for(var n,i,o,s,u,c=0,l=w(r),h=new F;c<l;){if(n=r[c++],"ArrayBuffer"===(i=m(n))?G(h,n):L(e,n))throw new P("Duplicate transferable",Z);if("ArrayBuffer"!==i){if(I)s=rt(n,{transfer:[n]});else switch(i){case"ImageBitmap":o=a.OffscreenCanvas,p(o)||st(i,Q);try{(u=new o(n.width,n.height)).getContext("bitmaprenderer").transferFromImageBitmap(n),s=u.transferToImageBitmap()}catch(t){}break;case"AudioData":case"VideoFrame":f(n.clone)&&f(n.close)||st(i,Q);try{s=n.clone(),n.close()}catch(t){}break;case"MediaSourceHandle":case"MessagePort":case"MIDIAccess":case"OffscreenCanvas":case"ReadableStream":case"RTCDataChannel":case"TransformStream":case"WebTransportReceiveStream":case"WebTransportSendStream":case"WritableStream":st(i,Q)}if(void 0===s)throw new P("This object cannot be transferred: "+i,Z);N(e,n,s)}else U(h,n)}return h}(i,e=new j));var o=lt(t,e);return r&&function(t){k(t,(function(t){I?ot(t,{transfer:[t]}):f(t.transfer)?t.transfer():C?C(t):st("ArrayBuffer",Q)}))}(r),o}})},71803:(t,e,r)=>{"use strict";var n=r(45228);function i(){return i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i.apply(this,arguments)}var o=r(22784),a=r(3885),s=r(96540),u=r(56408),c=function(t){var e,r;function DraftEditorContentsExperimental(){return t.apply(this,arguments)||this}r=t,(e=DraftEditorContentsExperimental).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var n=DraftEditorContentsExperimental.prototype;return n.shouldComponentUpdate=function(t){var e=this.props.editorState,r=t.editorState;if(e.getDirectionMap()!==r.getDirectionMap())return!0;if(e.getSelection().getHasFocus()!==r.getSelection().getHasFocus())return!0;var n=r.getNativelyRenderedContent(),i=e.isInCompositionMode(),o=r.isInCompositionMode();if(e===r||null!==n&&r.getCurrentContent()===n||i&&o)return!1;var a=e.getCurrentContent(),s=r.getCurrentContent(),u=e.getDecorator(),c=r.getDecorator();return i!==o||a!==s||u!==c||r.mustForceSelection()},n.render=function(){for(var t=this.props,e=t.blockRenderMap,r=t.blockRendererFn,n=t.blockStyleFn,c=t.customStyleMap,l=t.customStyleFn,f=t.editorState,p=t.editorKey,h=t.textDirectionality,d=f.getCurrentContent(),v=f.getSelection(),g=f.mustForceSelection(),y=f.getDecorator(),m=u(f.getDirectionMap()),_=[],b=d.getBlocksAsArray()[0];b;){var S=b.getKey(),w={blockRenderMap:e,blockRendererFn:r,blockStyleFn:n,contentState:d,customStyleFn:l,customStyleMap:c,decorator:y,editorKey:p,editorState:f,forceSelection:g,selection:v,block:b,direction:h||m.get(S),tree:f.getBlockTree(S)},x=(e.get(b.getType())||e.get("unstyled")).wrapper;_.push({block:s.createElement(o,i({key:S},w)),wrapperTemplate:x,key:S,offsetKey:a.encode(S,0,0)});var E=b.getNextSiblingKey();b=E?d.getBlockForKey(E):null}for(var M=[],O=0;O<_.length;){var k=_[O];if(k.wrapperTemplate){var C=[];do{C.push(_[O].block),O++}while(O<_.length&&_[O].wrapperTemplate===k.wrapperTemplate);var D=s.cloneElement(k.wrapperTemplate,{key:k.key+"-wrap","data-offset-key":k.offsetKey},C);M.push(D)}else M.push(k.block),O++}return s.createElement("div",{"data-contents":"true"},M)},DraftEditorContentsExperimental}(s.Component);t.exports=c},71864:(t,e,r)=>{"use strict";var n=r(90646);t.exports=function(t){return function(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"length"in t&&!("setInterval"in t)&&"number"!=typeof t.nodeType&&(Array.isArray(t)||"callee"in t||"item"in t)}(t)?Array.isArray(t)?t.slice():function(t){var e=t.length;if((Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t)&&n(!1),"number"!=typeof e&&n(!1),0===e||e-1 in t||n(!1),"function"==typeof t.callee&&n(!1),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(var r=Array(e),i=0;i<e;i++)r[i]=t[i];return r}(t):[t]}},71988:(t,e,r)=>{"use strict";var n=r(45228);function i(){return i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i.apply(this,arguments)}var o=r(3885),a=r(96540),s=r(68307),u=r(55822),c=function(t){var e,r;function DraftEditorDecoratedLeaves(){return t.apply(this,arguments)||this}return r=t,(e=DraftEditorDecoratedLeaves).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,DraftEditorDecoratedLeaves.prototype.render=function(){var t=this.props,e=t.block,r=t.children,n=t.contentState,c=t.decorator,l=t.decoratorKey,f=t.direction,p=t.leafSet,h=t.text,d=e.getKey(),v=p.get("leaves"),g=c.getComponentForKey(l),y=c.getPropsForKey(l),m=o.encode(d,parseInt(l,10),0),_=h.slice(v.first().get("start"),v.last().get("end")),b=u.getHTMLDirIfDifferent(s.getDirection(_),f);return a.createElement(g,i({},y,{contentState:n,decoratedText:_,dir:b,key:m,entityKey:e.getEntityAt(p.get("start")),offsetKey:m}),r)},DraftEditorDecoratedLeaves}(a.Component);t.exports=c},72208:(t,e,r)=>{"use strict";var n=r(95748),i=r(23018),o=r(92395),a=r(49938),s=r(50046),u=r(12242),c=r(7018),l=r(9927),f=r(723),p=r(73680),h=r(73676);function d(t,e,r){var n=a.replaceWithFragment(t.getCurrentContent(),t.getSelection(),e);return u.push(t,n.set("entityMap",r),"insert-fragment")}t.exports=function(t,e){e.preventDefault();var r=new o(e.clipboardData);if(!r.isRichText()){var v=r.getFiles(),g=r.getText();if(v.length>0){if(t.props.handlePastedFiles&&p(t.props.handlePastedFiles(v)))return;return void f(v,(function(e){if(e=e||g){var r=t._latestEditorState,o=h(e),f=i.create({style:r.getCurrentInlineStyle(),entity:l(r.getCurrentContent(),r.getSelection())}),p=c.getCurrentBlockType(r),d=s.processText(o,f,p),v=n.createFromArray(d),y=a.replaceWithFragment(r.getCurrentContent(),r.getSelection(),v);t.update(u.push(r,y,"insert-fragment"))}}))}}var y=[],m=r.getText(),_=r.getHTML(),b=t._latestEditorState;if(t.props.formatPastedText){var S=t.props.formatPastedText(m,_);m=S.text,_=S.html}if(!t.props.handlePastedText||!p(t.props.handlePastedText(m,_,b))){if(m&&(y=h(m)),!t.props.stripPastedStyles){var w,x=t.getClipboard();if(!t.props.formatPastedText&&r.isRichText()&&x){if(-1!==(null===(w=_)||void 0===w?void 0:w.indexOf(t.getEditorKey()))||1===y.length&&1===x.size&&x.first().getText()===m)return void t.update(d(t._latestEditorState,x))}else if(x&&r.types.includes("com.apple.webarchive")&&!r.types.includes("text/html")&&function(t,e){return t.length===e.size&&e.valueSeq().every((function(e,r){return e.getText()===t[r]}))}(y,x))return void t.update(d(t._latestEditorState,x));if(_){var E=s.processHTML(_,t.props.blockRenderMap);if(E){var M=E.contentBlocks,O=E.entityMap;if(M){var k=n.createFromArray(M);return void t.update(d(t._latestEditorState,k,O))}}}t.setClipboard(null)}if(y.length){var C=i.create({style:b.getCurrentInlineStyle(),entity:l(b.getCurrentContent(),b.getSelection())}),D=c.getCurrentBlockType(b),I=s.processText(y,C,D),A=n.createFromArray(I);t.update(d(t._latestEditorState,A))}}}},72248:(t,e,r)=>{"use strict";var n=r(79504),i=Map.prototype;t.exports={Map,set:n(i.set),get:n(i.get),has:n(i.has),remove:n(i.delete),proto:i}},72490:(t,e,r)=>{"use strict";r(14594);t.exports={isValidBlock:function(t,e){var r=t.getKey(),n=t.getParentKey();if(null!=n&&!e.get(n).getChildKeys().includes(r))return!1;if(!t.getChildKeys().map((function(t){return e.get(t)})).every((function(t){return t.getParentKey()===r})))return!1;var i=t.getPrevSiblingKey();if(null!=i&&e.get(i).getNextSiblingKey()!==r)return!1;var o=t.getNextSiblingKey();if(null!=o&&e.get(o).getPrevSiblingKey()!==r)return!1;return(null===o||null===i||i!==o)&&!(""!=t.text&&t.getChildKeys().size>0)},isConnectedTree:function(t){var e=t.toArray().filter((function(t){return null==t.getParentKey()&&null==t.getPrevSiblingKey()}));if(1!==e.length)return!1;for(var r=0,n=e.shift().getKey(),i=[];null!=n;){var o=t.get(n),a=o.getChildKeys(),s=o.getNextSiblingKey();if(a.size>0){null!=s&&i.unshift(s);var u=a.map((function(e){return t.get(e)})).find((function(t){return null==t.getPrevSiblingKey()}));if(null==u)return!1;n=u.getKey()}else n=null!=o.getNextSiblingKey()?o.getNextSiblingKey():i.shift();r++}return r===t.size},isValidTree:function(t){var e=this;return!!t.toArray().every((function(r){return e.isValidBlock(r,t)}))&&this.isConnectedTree(t)}}},72652:(t,e,r)=>{"use strict";var n=r(76080),i=r(69565),o=r(28551),a=r(16823),s=r(44209),u=r(26198),c=r(1625),l=r(70081),f=r(50851),p=r(9539),h=TypeError,Result=function(t,e){this.stopped=t,this.result=e},d=Result.prototype;t.exports=function(t,e,r){var v,g,y,m,_,b,S,w=r&&r.that,x=!(!r||!r.AS_ENTRIES),E=!(!r||!r.IS_RECORD),M=!(!r||!r.IS_ITERATOR),O=!(!r||!r.INTERRUPTED),k=n(e,w),C=function(t){return v&&p(v,"normal",t),new Result(!0,t)},D=function(t){return x?(o(t),O?k(t[0],t[1],C):k(t[0],t[1])):O?k(t,C):k(t)};if(E)v=t.iterator;else if(M)v=t;else{if(!(g=f(t)))throw new h(a(t)+" is not iterable");if(s(g)){for(y=0,m=u(t);m>y;y++)if((_=D(t[y]))&&c(d,_))return _;return new Result(!1)}v=l(t,g)}for(b=E?t.next:v.next;!(S=i(b,v)).done;){try{_=D(S.value)}catch(t){p(v,"throw",t)}if("object"==typeof _&&_&&c(d,_))return _}return new Result(!1)}},72911:(t,e,r)=>{"use strict";var n=r(45228),i=r(96540);function o(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=60106,s=60107,u=60108,c=60114,l=60109,f=60110,p=60112,h=60113,d=60120,v=60115,g=60116,y=60121,m=60117,_=60119,b=60129,S=60131;if("function"==typeof Symbol&&Symbol.for){var w=Symbol.for;a=w("react.portal"),s=w("react.fragment"),u=w("react.strict_mode"),c=w("react.profiler"),l=w("react.provider"),f=w("react.context"),p=w("react.forward_ref"),h=w("react.suspense"),d=w("react.suspense_list"),v=w("react.memo"),g=w("react.lazy"),y=w("react.block"),m=w("react.fundamental"),_=w("react.scope"),b=w("react.debug_trace_mode"),S=w("react.legacy_hidden")}function x(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case s:return"Fragment";case a:return"Portal";case c:return"Profiler";case u:return"StrictMode";case h:return"Suspense";case d:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case f:return(t.displayName||"Context")+".Consumer";case l:return(t._context.displayName||"Context")+".Provider";case p:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case v:return x(t.type);case y:return x(t._render);case g:e=t._payload,t=t._init;try{return x(t(e))}catch(t){}}return null}var E=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,M={};function O(t,e){for(var r=0|t._threadCount;r<=e;r++)t[r]=t._currentValue2,t._threadCount=r+1}for(var k=new Uint16Array(16),C=0;15>C;C++)k[C]=C+1;k[15]=0;var D=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,I=Object.prototype.hasOwnProperty,A={},R={};function T(t){return!!I.call(R,t)||!I.call(A,t)&&(D.test(t)?R[t]=!0:(A[t]=!0,!1))}function z(t,e,r,n,i,o,a){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=a}var B={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){B[t]=new z(t,0,!1,t,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];B[e]=new z(e,1,!1,t[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){B[t]=new z(t,2,!1,t.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){B[t]=new z(t,2,!1,t,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){B[t]=new z(t,3,!1,t.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(t){B[t]=new z(t,3,!0,t,null,!1,!1)})),["capture","download"].forEach((function(t){B[t]=new z(t,4,!1,t,null,!1,!1)})),["cols","rows","size","span"].forEach((function(t){B[t]=new z(t,6,!1,t,null,!1,!1)})),["rowSpan","start"].forEach((function(t){B[t]=new z(t,5,!1,t.toLowerCase(),null,!1,!1)}));var q=/[\-:]([a-z])/g;function P(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(t){var e=t.replace(q,P);B[e]=new z(e,1,!1,t,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(q,P);B[e]=new z(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(q,P);B[e]=new z(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(t){B[t]=new z(t,1,!1,t.toLowerCase(),null,!1,!1)})),B.xlinkHref=new z("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(t){B[t]=new z(t,1,!1,t.toLowerCase(),null,!0,!0)}));var j=/["'&<>]/;function L(t){if("boolean"==typeof t||"number"==typeof t)return""+t;t=""+t;var e=j.exec(t);if(e){var r,n="",i=0;for(r=e.index;r<t.length;r++){switch(t.charCodeAt(r)){case 34:e=""";break;case 38:e="&";break;case 39:e="'";break;case 60:e="<";break;case 62:e=">";break;default:continue}i!==r&&(n+=t.substring(i,r)),i=r+1,n+=e}t=i!==r?n+t.substring(i,r):n}return t}function K(t,e){var r,n=B.hasOwnProperty(t)?B[t]:null;return(r="style"!==t)&&(r=null!==n?0===n.type:2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])),r||function(t,e,r,n){if(null==e||function(t,e,r,n){if(null!==r&&0===r.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(t,e,n,!1)?"":null!==n?(t=n.attributeName,3===(r=n.type)||4===r&&!0===e?t+'=""':(n.sanitizeURL&&(e=""+e),t+'="'+L(e)+'"')):T(t)?t+'="'+L(e)+'"':""}var N="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},F=null,U=null,G=null,H=!1,W=!1,V=null,X=0;function Y(){if(null===F)throw Error(o(321));return F}function Ba(){if(0<X)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function Ca(){return null===G?null===U?(H=!1,U=G=Ba()):(H=!0,G=U):null===G.next?(H=!1,G=G.next=Ba()):(H=!0,G=G.next),G}function Da(t,e,r,n){for(;W;)W=!1,X+=1,G=null,r=t(e,n);return Ea(),r}function Ea(){F=null,W=!1,U=null,X=0,G=V=null}function Fa(t,e){return"function"==typeof e?e(t):e}function Ga(t,e,r){if(F=Y(),G=Ca(),H){var n=G.queue;if(e=n.dispatch,null!==V&&void 0!==(r=V.get(n))){V.delete(n),n=G.memoizedState;do{n=t(n,r.action),r=r.next}while(null!==r);return G.memoizedState=n,[n,e]}return[G.memoizedState,e]}return t=t===Fa?"function"==typeof e?e():e:void 0!==r?r(e):e,G.memoizedState=t,t=(t=G.queue={last:null,dispatch:null}).dispatch=Ha.bind(null,F,t),[G.memoizedState,t]}function Ia(t,e){if(F=Y(),e=void 0===e?null:e,null!==(G=Ca())){var r=G.memoizedState;if(null!==r&&null!==e){var n=r[1];t:if(null===n)n=!1;else{for(var i=0;i<n.length&&i<e.length;i++)if(!N(e[i],n[i])){n=!1;break t}n=!0}if(n)return r[0]}}return t=t(),G.memoizedState=[t,e],t}function Ha(t,e,r){if(!(25>X))throw Error(o(301));if(t===F)if(W=!0,t={action:r,next:null},null===V&&(V=new Map),void 0===(r=V.get(e)))V.set(e,t);else{for(e=r;null!==e.next;)e=e.next;e.next=t}}function Ja(){}var $=null,J={readContext:function(t){var e=$.threadID;return O(t,e),t[e]},useContext:function(t){Y();var e=$.threadID;return O(t,e),t[e]},useMemo:Ia,useReducer:Ga,useRef:function(t){F=Y();var e=(G=Ca()).memoizedState;return null===e?(t={current:t},G.memoizedState=t):e},useState:function(t){return Ga(Fa,t)},useLayoutEffect:function(){},useCallback:function(t,e){return Ia((function(){return t}),e)},useImperativeHandle:Ja,useEffect:Ja,useDebugValue:Ja,useDeferredValue:function(t){return Y(),t},useTransition:function(){return Y(),[function(t){t()},!1]},useOpaqueIdentifier:function(){return($.identifierPrefix||"")+"R:"+($.uniqueID++).toString(36)},useMutableSource:function(t,e){return Y(),e(t._source)}},Z="http://www.w3.org/1999/xhtml";function Ma(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var Q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},tt=n({menuitem:!0},Q),et={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},rt=["Webkit","ms","Moz","O"];Object.keys(et).forEach((function(t){rt.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),et[e]=et[t]}))}));var nt=/([A-Z])/g,it=/^ms-/,ot=i.Children.toArray,at=E.ReactCurrentDispatcher,st={listing:!0,pre:!0,textarea:!0},ut=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ct={},lt={};var ft=Object.prototype.hasOwnProperty,pt={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function ht(t,e){if(void 0===t)throw Error(o(152,x(e)||"Component"))}function dt(t,e,r){function a(i,a){var s=a.prototype&&a.prototype.isReactComponent,u=function(t,e,r,n){if(n&&"object"==typeof(n=t.contextType)&&null!==n)return O(n,r),n[r];if(t=t.contextTypes){for(var i in r={},t)r[i]=e[i];e=r}else e=M;return e}(a,e,r,s),c=[],l=!1,f={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===c)return null},enqueueReplaceState:function(t,e){l=!0,c=[e]},enqueueSetState:function(t,e){if(null===c)return null;c.push(e)}};if(s){if(s=new a(i.props,u,f),"function"==typeof a.getDerivedStateFromProps){var p=a.getDerivedStateFromProps.call(null,i.props,s.state);null!=p&&(s.state=n({},s.state,p))}}else if(F={},s=a(i.props,u,f),null==(s=Da(a,i.props,s,u))||null==s.render)return void ht(t=s,a);if(s.props=i.props,s.context=u,s.updater=f,void 0===(f=s.state)&&(s.state=f=null),"function"==typeof s.UNSAFE_componentWillMount||"function"==typeof s.componentWillMount)if("function"==typeof s.componentWillMount&&"function"!=typeof a.getDerivedStateFromProps&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&"function"!=typeof a.getDerivedStateFromProps&&s.UNSAFE_componentWillMount(),c.length){f=c;var h=l;if(c=null,l=!1,h&&1===f.length)s.state=f[0];else{p=h?f[0]:s.state;var d=!0;for(h=h?1:0;h<f.length;h++){var v=f[h];null!=(v="function"==typeof v?v.call(s,p,i.props,u):v)&&(d?(d=!1,p=n({},p,v)):n(p,v))}s.state=p}}else c=null;if(ht(t=s.render(),a),"function"==typeof s.getChildContext&&"object"==typeof(i=a.childContextTypes)){var g=s.getChildContext();for(var y in g)if(!(y in i))throw Error(o(108,x(a)||"Unknown",y))}g&&(e=n({},e,g))}for(;i.isValidElement(t);){var s=t,u=s.type;if("function"!=typeof u)break;a(s,u)}return{child:t,context:e}}var vt=function(){function t(t,e,r){i.isValidElement(t)?t.type!==s?t=[t]:(t=t.props.children,t=i.isValidElement(t)?[t]:ot(t)):t=ot(t),t={type:null,domNamespace:Z,children:t,childIndex:0,context:M,footer:""};var n=k[0];if(0===n){var a=k,u=2*(n=a.length);if(!(65536>=u))throw Error(o(304));var c=new Uint16Array(u);for(c.set(a),(k=c)[0]=n+1,a=n;a<u-1;a++)k[a]=a+1;k[u-1]=0}else k[0]=k[n];this.threadID=n,this.stack=[t],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=e,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[],this.uniqueID=0,this.identifierPrefix=r&&r.identifierPrefix||""}var e=t.prototype;return e.destroy=function(){if(!this.exhausted){this.exhausted=!0,this.clearProviders();var t=this.threadID;k[t]=k[0],k[0]=t}},e.pushProvider=function(t){var e=++this.contextIndex,r=t.type._context,n=this.threadID;O(r,n);var i=r[n];this.contextStack[e]=r,this.contextValueStack[e]=i,r[n]=t.props.value},e.popProvider=function(){var t=this.contextIndex,e=this.contextStack[t],r=this.contextValueStack[t];this.contextStack[t]=null,this.contextValueStack[t]=null,this.contextIndex--,e[this.threadID]=r},e.clearProviders=function(){for(var t=this.contextIndex;0<=t;t--)this.contextStack[t][this.threadID]=this.contextValueStack[t]},e.read=function(t){if(this.exhausted)return null;var e=$;$=this;var r=at.current;at.current=J;try{for(var n=[""],i=!1;n[0].length<t;){if(0===this.stack.length){this.exhausted=!0;var a=this.threadID;k[a]=k[0],k[0]=a;break}var s=this.stack[this.stack.length-1];if(i||s.childIndex>=s.children.length){var u=s.footer;if(""!==u&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===s.type)this.currentSelectValue=null;else if(null!=s.type&&null!=s.type.type&&s.type.type.$$typeof===l)this.popProvider(s.type);else if(s.type===h){this.suspenseDepth--;var c=n.pop();if(i){i=!1;var f=s.fallbackFrame;if(!f)throw Error(o(303));this.stack.push(f),n[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}n[this.suspenseDepth]+=c}n[this.suspenseDepth]+=u}else{var p=s.children[s.childIndex++],d="";try{d+=this.render(p,s.context,s.domNamespace)}catch(t){if(null!=t&&"function"==typeof t.then)throw Error(o(294));throw t}n.length<=this.suspenseDepth&&n.push(""),n[this.suspenseDepth]+=d}}return n[0]}finally{at.current=r,$=e,Ea()}},e.render=function(t,e,r){if("string"==typeof t||"number"==typeof t)return""===(r=""+t)?"":this.makeStaticMarkup?L(r):this.previousWasTextNode?"\x3c!-- --\x3e"+L(r):(this.previousWasTextNode=!0,L(r));if(t=(e=dt(t,e,this.threadID)).child,e=e.context,null===t||!1===t)return"";if(!i.isValidElement(t)){if(null!=t&&null!=t.$$typeof){if((r=t.$$typeof)===a)throw Error(o(257));throw Error(o(258,r.toString()))}return t=ot(t),this.stack.push({type:null,domNamespace:r,children:t,childIndex:0,context:e,footer:""}),""}var y=t.type;if("string"==typeof y)return this.renderDOM(t,e,r);switch(y){case S:case b:case u:case c:case d:case s:return t=ot(t.props.children),this.stack.push({type:null,domNamespace:r,children:t,childIndex:0,context:e,footer:""}),"";case h:throw Error(o(294));case _:throw Error(o(343))}if("object"==typeof y&&null!==y)switch(y.$$typeof){case p:F={};var w=y.render(t.props,t.ref);return w=Da(y.render,t.props,w,t.ref),w=ot(w),this.stack.push({type:null,domNamespace:r,children:w,childIndex:0,context:e,footer:""}),"";case v:return t=[i.createElement(y.type,n({ref:t.ref},t.props))],this.stack.push({type:null,domNamespace:r,children:t,childIndex:0,context:e,footer:""}),"";case l:return r={type:t,domNamespace:r,children:y=ot(t.props.children),childIndex:0,context:e,footer:""},this.pushProvider(t),this.stack.push(r),"";case f:y=t.type,w=t.props;var x=this.threadID;return O(y,x),y=ot(w.children(y[x])),this.stack.push({type:t,domNamespace:r,children:y,childIndex:0,context:e,footer:""}),"";case m:throw Error(o(338));case g:return y=(w=(y=t.type)._init)(y._payload),t=[i.createElement(y,n({ref:t.ref},t.props))],this.stack.push({type:null,domNamespace:r,children:t,childIndex:0,context:e,footer:""}),""}throw Error(o(130,null==y?y:typeof y,""))},e.renderDOM=function(t,e,r){var a=t.type.toLowerCase();if(r===Z&&Ma(a),!ct.hasOwnProperty(a)){if(!ut.test(a))throw Error(o(65,a));ct[a]=!0}var s=t.props;if("input"===a)s=n({type:void 0},s,{defaultChecked:void 0,defaultValue:void 0,value:null!=s.value?s.value:s.defaultValue,checked:null!=s.checked?s.checked:s.defaultChecked});else if("textarea"===a){var u=s.value;if(null==u){u=s.defaultValue;var c=s.children;if(null!=c){if(null!=u)throw Error(o(92));if(Array.isArray(c)){if(!(1>=c.length))throw Error(o(93));c=c[0]}u=""+c}null==u&&(u="")}s=n({},s,{value:void 0,children:""+u})}else if("select"===a)this.currentSelectValue=null!=s.value?s.value:s.defaultValue,s=n({},s,{value:void 0});else if("option"===a){c=this.currentSelectValue;var l=function Xa(t){if(null==t)return t;var e="";return i.Children.forEach(t,(function(t){null!=t&&(e+=t)})),e}(s.children);if(null!=c){var f=null!=s.value?s.value+"":l;if(u=!1,Array.isArray(c)){for(var p=0;p<c.length;p++)if(""+c[p]===f){u=!0;break}}else u=""+c===f;s=n({selected:void 0,children:void 0},s,{selected:u,children:l})}}if(u=s){if(tt[a]&&(null!=u.children||null!=u.dangerouslySetInnerHTML))throw Error(o(137,a));if(null!=u.dangerouslySetInnerHTML){if(null!=u.children)throw Error(o(60));if("object"!=typeof u.dangerouslySetInnerHTML||!("__html"in u.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=u.style&&"object"!=typeof u.style)throw Error(o(62))}u=s,c=this.makeStaticMarkup,l=1===this.stack.length,f="<"+t.type;t:if(-1===a.indexOf("-"))p="string"==typeof u.is;else switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":p=!1;break t;default:p=!0}for(S in u)if(ft.call(u,S)){var h=u[S];if(null!=h){if("style"===S){var d=void 0,v="",g="";for(d in h)if(h.hasOwnProperty(d)){var y=0===d.indexOf("--"),m=h[d];if(null!=m){if(y)var _=d;else if(_=d,lt.hasOwnProperty(_))_=lt[_];else{var b=_.replace(nt,"-$1").toLowerCase().replace(it,"-ms-");_=lt[_]=b}v+=g+_+":",g=d,v+=y=null==m||"boolean"==typeof m||""===m?"":y||"number"!=typeof m||0===m||et.hasOwnProperty(g)&&et[g]?(""+m).trim():m+"px",g=";"}}h=v||null}d=null,p?pt.hasOwnProperty(S)||(d=T(d=S)&&null!=h?d+'="'+L(h)+'"':""):d=K(S,h),d&&(f+=" "+d)}}c||l&&(f+=' data-reactroot=""');var S=f;u="",Q.hasOwnProperty(a)?S+="/>":(S+=">",u="</"+t.type+">");t:{if(null!=(c=s.dangerouslySetInnerHTML)){if(null!=c.__html){c=c.__html;break t}}else if("string"==typeof(c=s.children)||"number"==typeof c){c=L(c);break t}c=null}return null!=c?(s=[],st.hasOwnProperty(a)&&"\n"===c.charAt(0)&&(S+="\n"),S+=c):s=ot(s.children),t=t.type,r=null==r||"http://www.w3.org/1999/xhtml"===r?Ma(t):"http://www.w3.org/2000/svg"===r&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":r,this.stack.push({domNamespace:r,type:a,children:s,childIndex:0,context:e,footer:u}),this.previousWasTextNode=!1,S},t}();e.renderToStaticMarkup=function(t,e){t=new vt(t,!0,e);try{return t.read(1/0)}finally{t.destroy()}}},73506:(t,e,r)=>{"use strict";var n=r(13925),i=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw new o("Can't set "+i(t)+" as a prototype")}},73676:t=>{"use strict";var e=/\r\n?|\n/g;t.exports=function(t){return t.split(e)}},73680:t=>{"use strict";t.exports=function(t){return"handled"===t||!0===t}},73722:(t,e,r)=>{"use strict";var n=r(49938),i=r(12242),o=r(14134),a=r(9927),s=r(73680),u=r(17759),c=r(56408),l=r(19765),f=o.isBrowser("Firefox");function p(t,e,r,o,a){var s=n.replaceText(t.getCurrentContent(),t.getSelection(),e,r,o);return i.push(t,s,"insert-characters",a)}t.exports=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var r=t._latestEditorState,n=e.data;if(n)if(t.props.handleBeforeInput&&s(t.props.handleBeforeInput(n,r,e.timeStamp)))e.preventDefault();else{var o=r.getSelection(),h=o.getStartOffset(),d=o.getAnchorKey();if(!o.isCollapsed())return e.preventDefault(),void t.update(p(r,n,r.getCurrentInlineStyle(),a(r.getCurrentContent(),r.getSelection()),!0));var v,g=p(r,n,r.getCurrentInlineStyle(),a(r.getCurrentContent(),r.getSelection()),!1),y=!1;if(y||(y=u(t._latestCommittedEditorState)),!y){var m=r.getBlockTree(d),_=g.getBlockTree(d);y=m.size!==_.size||m.zip(_).some((function(t){var e=t[0],r=t[1],i=e.get("start"),o=i+(i>=h?n.length:0),a=e.get("end"),s=a+(a>=h?n.length:0),u=r.get("start"),c=r.get("end"),l=r.get("decoratorKey");return e.get("decoratorKey")!==l||e.get("leaves").size!==r.get("leaves").size||o!==u||s!==c||null!=l&&c-u!=a-i}))}if(y||(v=n,y=f&&("'"==v||"/"==v)),y||(y=c(g.getDirectionMap()).get(d)!==c(r.getDirectionMap()).get(d)),y)return e.preventDefault(),g=i.set(g,{forceSelection:!0}),void t.update(g);g=i.set(g,{nativelyRenderedContent:g.getCurrentContent()}),t._pendingStateFromBeforeInput=g,l((function(){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0)}))}}},73919:(t,e,r)=>{"use strict";var n=r(49938),i=r(12242),o=r(2935),a=r(31296),s=r(97392),u=r(64316);t.exports=function(t,e){var r,c=t._latestEditorState,l=c.getSelection(),f=e.target;if(l.isCollapsed())e.preventDefault();else{if(u(f)){var p=f;r=s(o.getScrollParent(p))}var h=a(c);t.setClipboard(h),t.setMode("cut"),setTimeout((function(){t.restoreEditorDOM(r),t.exitCurrentMode(),t.update(function(t){var e=n.removeRange(t.getCurrentContent(),t.getSelection(),"forward");return i.push(t,e,"remove-range")}(c))}),0)}}},73998:(t,e,r)=>{"use strict";var n="['‘’]",i="\\s|(?![_])"+r(77405).getPunctuation(),o=new RegExp("^(?:"+i+")*(?:"+n+"|(?!"+i+").)*(?:(?!"+i+").)"),a=new RegExp("(?:(?!"+i+").)(?:"+n+"|(?!"+i+").)*(?:"+i+")*$");function s(t,e){var r=e?a.exec(t):o.exec(t);return r?r[0]:t}var u={getBackward:function(t){return s(t,!0)},getForward:function(t){return s(t,!1)}};t.exports=u},74453:(t,e,r)=>{"use strict";var n=r(93816);t.exports=function t(e){if(n(e)){var r=e,i=r.getAttribute("data-offset-key");if(i)return i;for(var o=0;o<r.childNodes.length;o++){var a=t(r.childNodes[o]);if(a)return a}}return null}},74576:(t,e,r)=>{"use strict";var n=r(40961).unstable_flushControlled;t.exports=n},74861:t=>{"use strict";t.exports=function(t){t._internalDrag=!0,t.setMode("drag")}},77232:function(t,e,r){var n;!function(i,o){"use strict";var a="function",s="undefined",u="object",c="string",l="major",f="model",p="name",h="type",d="vendor",v="version",g="architecture",y="console",m="mobile",_="tablet",b="smarttv",S="wearable",w="embedded",x="Amazon",E="Apple",M="ASUS",O="BlackBerry",k="Browser",C="Chrome",D="Firefox",I="Google",A="Huawei",R="LG",T="Microsoft",z="Motorola",B="Opera",q="Samsung",P="Sharp",j="Sony",L="Xiaomi",K="Zebra",N="Facebook",F="Chromium OS",U="Mac OS",G=function(t){for(var e={},r=0;r<t.length;r++)e[t[r].toUpperCase()]=t[r];return e},H=function(t,e){return typeof t===c&&-1!==W(e).indexOf(W(t))},W=function(t){return t.toLowerCase()},V=function(t,e){if(typeof t===c)return t=t.replace(/^\s\s*/,""),typeof e===s?t:t.substring(0,500)},X=function(t,e){for(var r,n,i,s,c,l,f=0;f<e.length&&!c;){var p=e[f],h=e[f+1];for(r=n=0;r<p.length&&!c&&p[r];)if(c=p[r++].exec(t))for(i=0;i<h.length;i++)l=c[++n],typeof(s=h[i])===u&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):o:this[s[0]]=l?s[1].call(this,l,s[2]):o:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):o):this[s]=l||o;f+=2}},Y=function(t,e){for(var r in e)if(typeof e[r]===u&&e[r].length>0){for(var n=0;n<e[r].length;n++)if(H(e[r][n],t))return"?"===r?o:r}else if(H(e[r],t))return"?"===r?o:r;return t},$={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},J={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[v,[p,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[p,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,v],[/opios[\/ ]+([\w\.]+)/i],[v,[p,B+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[v,[p,B+" GX"]],[/\bopr\/([\w\.]+)/i],[v,[p,B]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[v,[p,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[p,v],[/\bddg\/([\w\.]+)/i],[v,[p,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[p,"UC"+k]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[v,[p,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[p,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[p,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[v,[p,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[v,[p,"Smart Lenovo "+k]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,"$1 Secure "+k],v],[/\bfocus\/([\w\.]+)/i],[v,[p,D+" Focus"]],[/\bopt\/([\w\.]+)/i],[v,[p,B+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[p,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[p,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[p,B+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[p,"MIUI "+k]],[/fxios\/([-\w\.]+)/i],[v,[p,D]],[/\bqihu|(qi?ho?o?|360)browser/i],[[p,"360 "+k]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[p,/(.+)/,"$1 "+k],v],[/samsungbrowser\/([\w\.]+)/i],[v,[p,q+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[p,/_/g," "],v],[/metasr[\/ ]?([\d\.]+)/i],[v,[p,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[p,"Sogou Mobile"],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[p,v],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,N],v],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[p,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[p,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[v,[p,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[p,C+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,C+" WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[p,"Android "+k]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,v],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[v,[p,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[v,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[v,Y,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[p,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,"Netscape"],v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[p,D+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[p,v],[/(cobalt)\/([\w\.]+)/i],[p,[v,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,W]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,"",W]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,W]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[f,[d,q],[h,_]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[d,q],[h,m]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[d,E],[h,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[d,E],[h,_]],[/(macintosh);/i],[f,[d,E]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[d,P],[h,m]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[d,A],[h,_]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[d,A],[h,m]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[f,/_/g," "],[d,L],[h,m]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[d,L],[h,_]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[d,"OPPO"],[h,m]],[/\b(opd2\d{3}a?) bui/i],[f,[d,"OPPO"],[h,_]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[d,"Vivo"],[h,m]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[f,[d,"Realme"],[h,m]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[d,z],[h,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[d,z],[h,_]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[d,R],[h,_]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[d,R],[h,m]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[d,"Lenovo"],[h,_]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[d,"Nokia"],[h,m]],[/(pixel c)\b/i],[f,[d,I],[h,_]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[d,I],[h,m]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[f,[d,j],[h,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[d,j],[h,_]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[d,"OnePlus"],[h,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[d,x],[h,_]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[d,x],[h,m]],[/(playbook);[-\w\),; ]+(rim)/i],[f,d,[h,_]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[d,O],[h,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[d,M],[h,_]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[d,M],[h,m]],[/(nexus 9)/i],[f,[d,"HTC"],[h,_]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[f,/_/g," "],[h,m]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[d,"Acer"],[h,_]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[d,"Meizu"],[h,m]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[f,[d,"Ulefone"],[h,m]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,f,[h,m]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,f,[h,_]],[/(surface duo)/i],[f,[d,T],[h,_]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[d,"Fairphone"],[h,m]],[/(u304aa)/i],[f,[d,"AT&T"],[h,m]],[/\bsie-(\w*)/i],[f,[d,"Siemens"],[h,m]],[/\b(rct\w+) b/i],[f,[d,"RCA"],[h,_]],[/\b(venue[\d ]{2,7}) b/i],[f,[d,"Dell"],[h,_]],[/\b(q(?:mv|ta)\w+) b/i],[f,[d,"Verizon"],[h,_]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[d,"Barnes & Noble"],[h,_]],[/\b(tm\d{3}\w+) b/i],[f,[d,"NuVision"],[h,_]],[/\b(k88) b/i],[f,[d,"ZTE"],[h,_]],[/\b(nx\d{3}j) b/i],[f,[d,"ZTE"],[h,m]],[/\b(gen\d{3}) b.+49h/i],[f,[d,"Swiss"],[h,m]],[/\b(zur\d{3}) b/i],[f,[d,"Swiss"],[h,_]],[/\b((zeki)?tb.*\b) b/i],[f,[d,"Zeki"],[h,_]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],f,[h,_]],[/\b(ns-?\w{0,9}) b/i],[f,[d,"Insignia"],[h,_]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[d,"NextBook"],[h,_]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],f,[h,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],f,[h,m]],[/\b(ph-1) /i],[f,[d,"Essential"],[h,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[d,"Envizen"],[h,_]],[/\b(trio[-\w\. ]+) b/i],[f,[d,"MachSpeed"],[h,_]],[/\btu_(1491) b/i],[f,[d,"Rotor"],[h,_]],[/(shield[\w ]+) b/i],[f,[d,"Nvidia"],[h,_]],[/(sprint) (\w+)/i],[d,f,[h,m]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[d,T],[h,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[d,K],[h,_]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[d,K],[h,m]],[/smart-tv.+(samsung)/i],[d,[h,b]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[d,q],[h,b]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,R],[h,b]],[/(apple) ?tv/i],[d,[f,E+" TV"],[h,b]],[/crkey/i],[[f,C+"cast"],[d,I],[h,b]],[/droid.+aft(\w+)( bui|\))/i],[f,[d,x],[h,b]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[d,P],[h,b]],[/(bravia[\w ]+)( bui|\))/i],[f,[d,j],[h,b]],[/(mitv-\w{5}) bui/i],[f,[d,L],[h,b]],[/Hbbtv.*(technisat) (.*);/i],[d,f,[h,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,V],[f,V],[h,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,f,[h,y]],[/droid.+; (shield) bui/i],[f,[d,"Nvidia"],[h,y]],[/(playstation [345portablevi]+)/i],[f,[d,j],[h,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[d,T],[h,y]],[/((pebble))app/i],[d,f,[h,S]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[d,E],[h,S]],[/droid.+; (glass) \d/i],[f,[d,I],[h,S]],[/droid.+; (wt63?0{2,3})\)/i],[f,[d,K],[h,S]],[/(quest( \d| pro)?)/i],[f,[d,N],[h,S]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[h,w]],[/(aeobc)\b/i],[f,[d,x],[h,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[f,[h,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[h,_]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,_]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,m]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[p,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[p,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[p,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,v],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[p,[v,Y,$]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[v,Y,$],[p,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,U],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[v,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[p,v],[/\(bb(10);/i],[v,[p,O]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[p,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[p,D+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[p,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[v,[p,"watchOS"]],[/crkey\/([\d\.]+)/i],[v,[p,C+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[p,F],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[p,v],[/(sunos) ?([\w\.\d]*)/i],[[p,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[p,v]]},UAParser=function(t,e){if(typeof t===u&&(e=t,t=o),!(this instanceof UAParser))return new UAParser(t,e).getResult();var r=typeof i!==s&&i.navigator?i.navigator:o,n=t||(r&&r.userAgent?r.userAgent:""),y=r&&r.userAgentData?r.userAgentData:o,b=e?function(t,e){var r={};for(var n in t)e[n]&&e[n].length%2==0?r[n]=e[n].concat(t[n]):r[n]=t[n];return r}(J,e):J,S=r&&r.userAgent==n;return this.getBrowser=function(){var t={};return t[p]=o,t[v]=o,X.call(t,n,b.browser),t[l]=function(t){return typeof t===c?t.replace(/[^\d\.]/g,"").split(".")[0]:o}(t[v]),S&&r&&r.brave&&typeof r.brave.isBrave==a&&(t[p]="Brave"),t},this.getCPU=function(){var t={};return t[g]=o,X.call(t,n,b.cpu),t},this.getDevice=function(){var t={};return t[d]=o,t[f]=o,t[h]=o,X.call(t,n,b.device),S&&!t[h]&&y&&y.mobile&&(t[h]=m),S&&"Macintosh"==t[f]&&r&&typeof r.standalone!==s&&r.maxTouchPoints&&r.maxTouchPoints>2&&(t[f]="iPad",t[h]=_),t},this.getEngine=function(){var t={};return t[p]=o,t[v]=o,X.call(t,n,b.engine),t},this.getOS=function(){var t={};return t[p]=o,t[v]=o,X.call(t,n,b.os),S&&!t[p]&&y&&y.platform&&"Unknown"!=y.platform&&(t[p]=y.platform.replace(/chrome os/i,F).replace(/macos/i,U)),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(t){return n=typeof t===c&&t.length>500?V(t,500):t,this},this.setUA(n),this};UAParser.VERSION="0.7.38",UAParser.BROWSER=G([p,v,l]),UAParser.CPU=G([g]),UAParser.DEVICE=G([f,d,h,y,m,b,_,S,w]),UAParser.ENGINE=UAParser.OS=G([p,v]),typeof e!==s?(t.exports&&(e=t.exports=UAParser),e.UAParser=UAParser):r.amdO?(n=function(){return UAParser}.call(e,r,e,t))===o||(t.exports=n):typeof i!==s&&(i.UAParser=UAParser);var Z=typeof i!==s&&(i.jQuery||i.Zepto);if(Z&&!Z.ua){var Q=new UAParser;Z.ua=Q.getResult(),Z.ua.get=function(){return Q.getUA()},Z.ua.set=function(t){Q.setUA(t);var e=Q.getResult();for(var r in e)Z.ua[r]=e[r]}}}("object"==typeof window?window:this)},77337:function(t){t.exports=function(){"use strict";var t=Array.prototype.slice;function e(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function Iterable(t){return r(t)?t:Seq(t)}function KeyedIterable(t){return n(t)?t:KeyedSeq(t)}function IndexedIterable(t){return i(t)?t:IndexedSeq(t)}function SetIterable(t){return r(t)&&!o(t)?t:SetSeq(t)}function r(t){return!(!t||!t[s])}function n(t){return!(!t||!t[u])}function i(t){return!(!t||!t[c])}function o(t){return n(t)||i(t)}function a(t){return!(!t||!t[l])}e(KeyedIterable,Iterable),e(IndexedIterable,Iterable),e(SetIterable,Iterable),Iterable.isIterable=r,Iterable.isKeyed=n,Iterable.isIndexed=i,Iterable.isAssociative=o,Iterable.isOrdered=a,Iterable.Keyed=KeyedIterable,Iterable.Indexed=IndexedIterable,Iterable.Set=SetIterable;var s="@@__IMMUTABLE_ITERABLE__@@",u="@@__IMMUTABLE_KEYED__@@",c="@@__IMMUTABLE_INDEXED__@@",l="@@__IMMUTABLE_ORDERED__@@",f="delete",p=5,h=1<<p,d=h-1,v={},g={value:!1},y={value:!1};function MakeRef(t){return t.value=!1,t}function SetRef(t){t&&(t.value=!0)}function OwnerID(){}function m(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=new Array(r),i=0;i<r;i++)n[i]=t[i+e];return n}function _(t){return void 0===t.size&&(t.size=t.__iterate(S)),t.size}function b(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return e<0?_(t)+e:e}function S(){return!0}function w(t,e,r){return(0===t||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function x(t,e){return M(t,e,0)}function E(t,e){return M(t,e,e)}function M(t,e,r){return void 0===t?r:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var O=0,k=1,C=2,D="function"==typeof Symbol&&Symbol.iterator,I="@@iterator",A=D||I;function Iterator(t){this.next=t}function R(t,e,r,n){var i=0===t?e:1===t?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function T(){return{value:void 0,done:!0}}function z(t){return!!P(t)}function B(t){return t&&"function"==typeof t.next}function q(t){var e=P(t);return e&&e.call(t)}function P(t){var e=t&&(D&&t[D]||t[I]);if("function"==typeof e)return e}function j(t){return t&&"number"==typeof t.length}function Seq(t){return null==t?G():r(t)?t.toSeq():V(t)}function KeyedSeq(t){return null==t?G().toKeyedSeq():r(t)?n(t)?t.toSeq():t.fromEntrySeq():H(t)}function IndexedSeq(t){return null==t?G():r(t)?n(t)?t.entrySeq():t.toIndexedSeq():W(t)}function SetSeq(t){return(null==t?G():r(t)?n(t)?t.entrySeq():t:W(t)).toSetSeq()}Iterator.prototype.toString=function(){return"[Iterator]"},Iterator.KEYS=O,Iterator.VALUES=k,Iterator.ENTRIES=C,Iterator.prototype.inspect=Iterator.prototype.toSource=function(){return this.toString()},Iterator.prototype[A]=function(){return this},e(Seq,Iterable),Seq.of=function(){return Seq(arguments)},Seq.prototype.toSeq=function(){return this},Seq.prototype.toString=function(){return this.__toString("Seq {","}")},Seq.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Seq.prototype.__iterate=function(t,e){return Y(this,t,e,!0)},Seq.prototype.__iterator=function(t,e){return $(this,t,e,!0)},e(KeyedSeq,Seq),KeyedSeq.prototype.toKeyedSeq=function(){return this},e(IndexedSeq,Seq),IndexedSeq.of=function(){return IndexedSeq(arguments)},IndexedSeq.prototype.toIndexedSeq=function(){return this},IndexedSeq.prototype.toString=function(){return this.__toString("Seq [","]")},IndexedSeq.prototype.__iterate=function(t,e){return Y(this,t,e,!1)},IndexedSeq.prototype.__iterator=function(t,e){return $(this,t,e,!1)},e(SetSeq,Seq),SetSeq.of=function(){return SetSeq(arguments)},SetSeq.prototype.toSetSeq=function(){return this},Seq.isSeq=U,Seq.Keyed=KeyedSeq,Seq.Set=SetSeq,Seq.Indexed=IndexedSeq;var L,K,N,F="@@__IMMUTABLE_SEQ__@@";function ArraySeq(t){this._array=t,this.size=t.length}function ObjectSeq(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function IterableSeq(t){this._iterable=t,this.size=t.length||t.size}function IteratorSeq(t){this._iterator=t,this._iteratorCache=[]}function U(t){return!(!t||!t[F])}function G(){return L||(L=new ArraySeq([]))}function H(t){var e=Array.isArray(t)?new ArraySeq(t).fromEntrySeq():B(t)?new IteratorSeq(t).fromEntrySeq():z(t)?new IterableSeq(t).fromEntrySeq():"object"==typeof t?new ObjectSeq(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function W(t){var e=X(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function V(t){var e=X(t)||"object"==typeof t&&new ObjectSeq(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}function X(t){return j(t)?new ArraySeq(t):B(t)?new IteratorSeq(t):z(t)?new IterableSeq(t):void 0}function Y(t,e,r,n){var i=t._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[r?o-a:a];if(!1===e(s[1],n?s[0]:a,t))return a+1}return a}return t.__iterateUncached(e,r)}function $(t,e,r,n){var i=t._cache;if(i){var o=i.length-1,a=0;return new Iterator((function(){var t=i[r?o-a:a];return a++>o?T():R(e,n?t[0]:a-1,t[1])}))}return t.__iteratorUncached(e,r)}function J(t,e){return e?Z(e,t,"",{"":t}):Q(t)}function Z(t,e,r,n){return Array.isArray(e)?t.call(n,r,IndexedSeq(e).map((function(r,n){return Z(t,r,n,e)}))):tt(e)?t.call(n,r,KeyedSeq(e).map((function(r,n){return Z(t,r,n,e)}))):e}function Q(t){return Array.isArray(t)?IndexedSeq(t).map(Q).toList():tt(t)?KeyedSeq(t).map(Q).toMap():t}function tt(t){return t&&(t.constructor===Object||void 0===t.constructor)}function et(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function rt(t,e){if(t===e)return!0;if(!r(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||n(t)!==n(e)||i(t)!==i(e)||a(t)!==a(e))return!1;if(0===t.size&&0===e.size)return!0;var s=!o(t);if(a(t)){var u=t.entries();return e.every((function(t,e){var r=u.next().value;return r&&et(r[1],t)&&(s||et(r[0],e))}))&&u.next().done}var c=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{c=!0;var l=t;t=e,e=l}var f=!0,p=e.__iterate((function(e,r){if(s?!t.has(e):c?!et(e,t.get(r,v)):!et(t.get(r,v),e))return f=!1,!1}));return f&&t.size===p}function Repeat(t,e){if(!(this instanceof Repeat))return new Repeat(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(K)return K;K=this}}function nt(t,e){if(!t)throw new Error(e)}function Range(t,e,r){if(!(this instanceof Range))return new Range(t,e,r);if(nt(0!==r,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),r=void 0===r?1:Math.abs(r),e<t&&(r=-r),this._start=t,this._end=e,this._step=r,this.size=Math.max(0,Math.ceil((e-t)/r-1)+1),0===this.size){if(N)return N;N=this}}function Collection(){throw TypeError("Abstract")}function KeyedCollection(){}function IndexedCollection(){}function SetCollection(){}Seq.prototype[F]=!0,e(ArraySeq,IndexedSeq),ArraySeq.prototype.get=function(t,e){return this.has(t)?this._array[b(this,t)]:e},ArraySeq.prototype.__iterate=function(t,e){for(var r=this._array,n=r.length-1,i=0;i<=n;i++)if(!1===t(r[e?n-i:i],i,this))return i+1;return i},ArraySeq.prototype.__iterator=function(t,e){var r=this._array,n=r.length-1,i=0;return new Iterator((function(){return i>n?T():R(t,i,r[e?n-i++:i++])}))},e(ObjectSeq,KeyedSeq),ObjectSeq.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},ObjectSeq.prototype.has=function(t){return this._object.hasOwnProperty(t)},ObjectSeq.prototype.__iterate=function(t,e){for(var r=this._object,n=this._keys,i=n.length-1,o=0;o<=i;o++){var a=n[e?i-o:o];if(!1===t(r[a],a,this))return o+1}return o},ObjectSeq.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length-1,o=0;return new Iterator((function(){var a=n[e?i-o:o];return o++>i?T():R(t,a,r[a])}))},ObjectSeq.prototype[l]=!0,e(IterableSeq,IndexedSeq),IterableSeq.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r=q(this._iterable),n=0;if(B(r))for(var i;!(i=r.next()).done&&!1!==t(i.value,n++,this););return n},IterableSeq.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=q(this._iterable);if(!B(r))return new Iterator(T);var n=0;return new Iterator((function(){var e=r.next();return e.done?e:R(t,n++,e.value)}))},e(IteratorSeq,IndexedSeq),IteratorSeq.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var r,n=this._iterator,i=this._iteratorCache,o=0;o<i.length;)if(!1===t(i[o],o++,this))return o;for(;!(r=n.next()).done;){var a=r.value;if(i[o]=a,!1===t(a,o++,this))break}return o},IteratorSeq.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterator,n=this._iteratorCache,i=0;return new Iterator((function(){if(i>=n.length){var e=r.next();if(e.done)return e;n[i]=e.value}return R(t,i,n[i++])}))},e(Repeat,IndexedSeq),Repeat.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Repeat.prototype.get=function(t,e){return this.has(t)?this._value:e},Repeat.prototype.includes=function(t){return et(this._value,t)},Repeat.prototype.slice=function(t,e){var r=this.size;return w(t,e,r)?this:new Repeat(this._value,E(e,r)-x(t,r))},Repeat.prototype.reverse=function(){return this},Repeat.prototype.indexOf=function(t){return et(this._value,t)?0:-1},Repeat.prototype.lastIndexOf=function(t){return et(this._value,t)?this.size:-1},Repeat.prototype.__iterate=function(t,e){for(var r=0;r<this.size;r++)if(!1===t(this._value,r,this))return r+1;return r},Repeat.prototype.__iterator=function(t,e){var r=this,n=0;return new Iterator((function(){return n<r.size?R(t,n++,r._value):T()}))},Repeat.prototype.equals=function(t){return t instanceof Repeat?et(this._value,t._value):rt(t)},e(Range,IndexedSeq),Range.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},Range.prototype.get=function(t,e){return this.has(t)?this._start+b(this,t)*this._step:e},Range.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},Range.prototype.slice=function(t,e){return w(t,e,this.size)?this:(t=x(t,this.size),(e=E(e,this.size))<=t?new Range(0,0):new Range(this.get(t,this._end),this.get(e,this._end),this._step))},Range.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var r=e/this._step;if(r>=0&&r<this.size)return r}return-1},Range.prototype.lastIndexOf=function(t){return this.indexOf(t)},Range.prototype.__iterate=function(t,e){for(var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;o<=r;o++){if(!1===t(i,o,this))return o+1;i+=e?-n:n}return o},Range.prototype.__iterator=function(t,e){var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;return new Iterator((function(){var a=i;return i+=e?-n:n,o>r?T():R(t,o++,a)}))},Range.prototype.equals=function(t){return t instanceof Range?this._start===t._start&&this._end===t._end&&this._step===t._step:rt(this,t)},e(Collection,Iterable),e(KeyedCollection,Collection),e(IndexedCollection,Collection),e(SetCollection,Collection),Collection.Keyed=KeyedCollection,Collection.Indexed=IndexedCollection,Collection.Set=SetCollection;var it="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var r=65535&(t|=0),n=65535&(e|=0);return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0};function ot(t){return t>>>1&1073741824|3221225471&t}function at(t){if(!1===t||null==t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null==t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){var r=0|t;for(r!==t&&(r^=4294967295*t);t>4294967295;)r^=t/=4294967295;return ot(r)}if("string"===e)return t.length>yt?st(t):ut(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return ct(t);if("function"==typeof t.toString)return ut(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function st(t){var e=bt[t];return void 0===e&&(e=ut(t),_t===mt&&(_t=0,bt={}),_t++,bt[t]=e),e}function ut(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return ot(e)}function ct(t){var e;if(dt&&void 0!==(e=ht.get(t)))return e;if(void 0!==(e=t[gt]))return e;if(!ft){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[gt]))return e;if(void 0!==(e=pt(t)))return e}if(e=++vt,1073741824&vt&&(vt=0),dt)ht.set(t,e);else{if(void 0!==lt&&!1===lt(t))throw new Error("Non-extensible objects are not allowed as keys.");if(ft)Object.defineProperty(t,gt,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[gt]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[gt]=e}}return e}var lt=Object.isExtensible,ft=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();function pt(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}var ht,dt="function"==typeof WeakMap;dt&&(ht=new WeakMap);var vt=0,gt="__immutablehash__";"function"==typeof Symbol&&(gt=Symbol(gt));var yt=16,mt=255,_t=0,bt={};function St(t){nt(t!==1/0,"Cannot perform this action with an infinite size.")}function Map(t){return null==t?Dt():wt(t)&&!a(t)?t:Dt().withMutations((function(e){var r=KeyedIterable(t);St(r.size),r.forEach((function(t,r){return e.set(r,t)}))}))}function wt(t){return!(!t||!t[Et])}e(Map,KeyedCollection),Map.prototype.toString=function(){return this.__toString("Map {","}")},Map.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},Map.prototype.set=function(t,e){return It(this,t,e)},Map.prototype.setIn=function(t,e){return this.updateIn(t,v,(function(){return e}))},Map.prototype.remove=function(t){return It(this,t,v)},Map.prototype.deleteIn=function(t){return this.updateIn(t,(function(){return v}))},Map.prototype.update=function(t,e,r){return 1===arguments.length?t(this):this.updateIn([t],e,r)},Map.prototype.updateIn=function(t,e,r){r||(r=e,e=void 0);var n=Nt(this,Le(t),e,r);return n===v?void 0:n},Map.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Dt()},Map.prototype.merge=function(){return Pt(this,void 0,arguments)},Map.prototype.mergeWith=function(e){return Pt(this,e,t.call(arguments,1))},Map.prototype.mergeIn=function(e){var r=t.call(arguments,1);return this.updateIn(e,Dt(),(function(t){return"function"==typeof t.merge?t.merge.apply(t,r):r[r.length-1]}))},Map.prototype.mergeDeep=function(){return Pt(this,jt,arguments)},Map.prototype.mergeDeepWith=function(e){var r=t.call(arguments,1);return Pt(this,Lt(e),r)},Map.prototype.mergeDeepIn=function(e){var r=t.call(arguments,1);return this.updateIn(e,Dt(),(function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,r):r[r.length-1]}))},Map.prototype.sort=function(t){return OrderedMap(Ce(this,t))},Map.prototype.sortBy=function(t,e){return OrderedMap(Ce(this,e,t))},Map.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},Map.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new OwnerID)},Map.prototype.asImmutable=function(){return this.__ensureOwner()},Map.prototype.wasAltered=function(){return this.__altered},Map.prototype.__iterator=function(t,e){return new MapIterator(this,t,e)},Map.prototype.__iterate=function(t,e){var r=this,n=0;return this._root&&this._root.iterate((function(e){return n++,t(e[1],e[0],r)}),e),n},Map.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ct(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Map.isMap=wt;var xt,Et="@@__IMMUTABLE_MAP__@@",Mt=Map.prototype;function ArrayMapNode(t,e){this.ownerID=t,this.entries=e}function BitmapIndexedNode(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r}function HashArrayMapNode(t,e,r){this.ownerID=t,this.count=e,this.nodes=r}function HashCollisionNode(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r}function ValueNode(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r}function MapIterator(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&kt(t._root)}function Ot(t,e){return R(t,e[0],e[1])}function kt(t,e){return{node:t,index:0,__prev:e}}function Ct(t,e,r,n){var i=Object.create(Mt);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Dt(){return xt||(xt=Ct(0))}function It(t,e,r){var n,i;if(t._root){var o=MakeRef(g),a=MakeRef(y);if(n=At(t._root,t.__ownerID,0,void 0,e,r,o,a),!a.value)return t;i=t.size+(o.value?r===v?-1:1:0)}else{if(r===v)return t;i=1,n=new ArrayMapNode(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?Ct(i,n):Dt()}function At(t,e,r,n,i,o,a,s){return t?t.update(e,r,n,i,o,a,s):o===v?t:(SetRef(s),SetRef(a),new ValueNode(e,n,[i,o]))}function Rt(t){return t.constructor===ValueNode||t.constructor===HashCollisionNode}function Tt(t,e,r,n,i){if(t.keyHash===n)return new HashCollisionNode(e,n,[t.entry,i]);var o,a=(0===r?t.keyHash:t.keyHash>>>r)&d,s=(0===r?n:n>>>r)&d;return new BitmapIndexedNode(e,1<<a|1<<s,a===s?[Tt(t,e,r+p,n,i)]:(o=new ValueNode(e,n,i),a<s?[t,o]:[o,t]))}function zt(t,e,r,n){t||(t=new OwnerID);for(var i=new ValueNode(t,at(r),[r,n]),o=0;o<e.length;o++){var a=e[o];i=i.update(t,0,void 0,a[0],a[1])}return i}function Bt(t,e,r,n){for(var i=0,o=0,a=new Array(r),s=0,u=1,c=e.length;s<c;s++,u<<=1){var l=e[s];void 0!==l&&s!==n&&(i|=u,a[o++]=l)}return new BitmapIndexedNode(t,i,a)}function qt(t,e,r,n,i){for(var o=0,a=new Array(h),s=0;0!==r;s++,r>>>=1)a[s]=1&r?e[o++]:void 0;return a[n]=i,new HashArrayMapNode(t,o+1,a)}function Pt(t,e,n){for(var i=[],o=0;o<n.length;o++){var a=n[o],s=KeyedIterable(a);r(a)||(s=s.map((function(t){return J(t)}))),i.push(s)}return Kt(t,e,i)}function jt(t,e,n){return t&&t.mergeDeep&&r(e)?t.mergeDeep(e):et(t,e)?t:e}function Lt(t){return function(e,n,i){if(e&&e.mergeDeepWith&&r(n))return e.mergeDeepWith(t,n);var o=t(e,n,i);return et(e,o)?e:o}}function Kt(t,e,r){return 0===(r=r.filter((function(t){return 0!==t.size}))).length?t:0!==t.size||t.__ownerID||1!==r.length?t.withMutations((function(t){for(var n=e?function(r,n){t.update(n,v,(function(t){return t===v?r:e(t,r,n)}))}:function(e,r){t.set(r,e)},i=0;i<r.length;i++)r[i].forEach(n)})):t.constructor(r[0])}function Nt(t,e,r,n){var i=t===v,o=e.next();if(o.done){var a=i?r:t,s=n(a);return s===a?t:s}nt(i||t&&t.set,"invalid keyPath");var u=o.value,c=i?v:t.get(u,v),l=Nt(c,e,r,n);return l===c?t:l===v?t.remove(u):(i?Dt():t).set(u,l)}function Ft(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function Ut(t,e,r,n){var i=n?t:m(t);return i[e]=r,i}function Gt(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=new Array(i),a=0,s=0;s<i;s++)s===e?(o[s]=r,a=-1):o[s]=t[s+a];return o}function Ht(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=new Array(n),o=0,a=0;a<n;a++)a===e&&(o=1),i[a]=t[a+o];return i}Mt[Et]=!0,Mt[f]=Mt.remove,Mt.removeIn=Mt.deleteIn,ArrayMapNode.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(et(r,i[o][0]))return i[o][1];return n},ArrayMapNode.prototype.update=function(t,e,r,n,i,o,a){for(var s=i===v,u=this.entries,c=0,l=u.length;c<l&&!et(n,u[c][0]);c++);var f=c<l;if(f?u[c][1]===i:s)return this;if(SetRef(a),(s||!f)&&SetRef(o),!s||1!==u.length){if(!f&&!s&&u.length>=Wt)return zt(t,u,n,i);var p=t&&t===this.ownerID,h=p?u:m(u);return f?s?c===l-1?h.pop():h[c]=h.pop():h[c]=[n,i]:h.push([n,i]),p?(this.entries=h,this):new ArrayMapNode(t,h)}},BitmapIndexedNode.prototype.get=function(t,e,r,n){void 0===e&&(e=at(r));var i=1<<((0===t?e:e>>>t)&d),o=this.bitmap;return o&i?this.nodes[Ft(o&i-1)].get(t+p,e,r,n):n},BitmapIndexedNode.prototype.update=function(t,e,r,n,i,o,a){void 0===r&&(r=at(n));var s=(0===e?r:r>>>e)&d,u=1<<s,c=this.bitmap,l=!!(c&u);if(!l&&i===v)return this;var f=Ft(c&u-1),h=this.nodes,g=l?h[f]:void 0,y=At(g,t,e+p,r,n,i,o,a);if(y===g)return this;if(!l&&y&&h.length>=Vt)return qt(t,h,c,s,y);if(l&&!y&&2===h.length&&Rt(h[1^f]))return h[1^f];if(l&&y&&1===h.length&&Rt(y))return y;var m=t&&t===this.ownerID,_=l?y?c:c^u:c|u,b=l?y?Ut(h,f,y,m):Ht(h,f,m):Gt(h,f,y,m);return m?(this.bitmap=_,this.nodes=b,this):new BitmapIndexedNode(t,_,b)},HashArrayMapNode.prototype.get=function(t,e,r,n){void 0===e&&(e=at(r));var i=(0===t?e:e>>>t)&d,o=this.nodes[i];return o?o.get(t+p,e,r,n):n},HashArrayMapNode.prototype.update=function(t,e,r,n,i,o,a){void 0===r&&(r=at(n));var s=(0===e?r:r>>>e)&d,u=i===v,c=this.nodes,l=c[s];if(u&&!l)return this;var f=At(l,t,e+p,r,n,i,o,a);if(f===l)return this;var h=this.count;if(l){if(!f&&--h<Xt)return Bt(t,c,h,s)}else h++;var g=t&&t===this.ownerID,y=Ut(c,s,f,g);return g?(this.count=h,this.nodes=y,this):new HashArrayMapNode(t,h,y)},HashCollisionNode.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(et(r,i[o][0]))return i[o][1];return n},HashCollisionNode.prototype.update=function(t,e,r,n,i,o,a){void 0===r&&(r=at(n));var s=i===v;if(r!==this.keyHash)return s?this:(SetRef(a),SetRef(o),Tt(this,t,e,r,[n,i]));for(var u=this.entries,c=0,l=u.length;c<l&&!et(n,u[c][0]);c++);var f=c<l;if(f?u[c][1]===i:s)return this;if(SetRef(a),(s||!f)&&SetRef(o),s&&2===l)return new ValueNode(t,this.keyHash,u[1^c]);var p=t&&t===this.ownerID,h=p?u:m(u);return f?s?c===l-1?h.pop():h[c]=h.pop():h[c]=[n,i]:h.push([n,i]),p?(this.entries=h,this):new HashCollisionNode(t,this.keyHash,h)},ValueNode.prototype.get=function(t,e,r,n){return et(r,this.entry[0])?this.entry[1]:n},ValueNode.prototype.update=function(t,e,r,n,i,o,a){var s=i===v,u=et(n,this.entry[0]);return(u?i===this.entry[1]:s)?this:(SetRef(a),s?void SetRef(o):u?t&&t===this.ownerID?(this.entry[1]=i,this):new ValueNode(t,this.keyHash,[n,i]):(SetRef(o),Tt(this,t,e,at(n),[n,i])))},ArrayMapNode.prototype.iterate=HashCollisionNode.prototype.iterate=function(t,e){for(var r=this.entries,n=0,i=r.length-1;n<=i;n++)if(!1===t(r[e?i-n:n]))return!1},BitmapIndexedNode.prototype.iterate=HashArrayMapNode.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,i=r.length-1;n<=i;n++){var o=r[e?i-n:n];if(o&&!1===o.iterate(t,e))return!1}},ValueNode.prototype.iterate=function(t,e){return t(this.entry)},e(MapIterator,Iterator),MapIterator.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var r,n=e.node,i=e.index++;if(n.entry){if(0===i)return Ot(t,n.entry)}else if(n.entries){if(i<=(r=n.entries.length-1))return Ot(t,n.entries[this._reverse?r-i:i])}else if(i<=(r=n.nodes.length-1)){var o=n.nodes[this._reverse?r-i:i];if(o){if(o.entry)return Ot(t,o.entry);e=this._stack=kt(o,e)}continue}e=this._stack=this._stack.__prev}return T()};var Wt=h/4,Vt=h/2,Xt=h/4;function List(t){var e=ne();if(null==t)return e;if(Yt(t))return t;var r=IndexedIterable(t),n=r.size;return 0===n?e:(St(n),n>0&&n<h?re(0,n,p,null,new VNode(r.toArray())):e.withMutations((function(t){t.setSize(n),r.forEach((function(e,r){return t.set(r,e)}))})))}function Yt(t){return!(!t||!t[$t])}e(List,IndexedCollection),List.of=function(){return this(arguments)},List.prototype.toString=function(){return this.__toString("List [","]")},List.prototype.get=function(t,e){if((t=b(this,t))>=0&&t<this.size){var r=se(this,t+=this._origin);return r&&r.array[t&d]}return e},List.prototype.set=function(t,e){return ie(this,t,e)},List.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},List.prototype.insert=function(t,e){return this.splice(t,0,e)},List.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=p,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):ne()},List.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(r){ue(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])}))},List.prototype.pop=function(){return ue(this,0,-1)},List.prototype.unshift=function(){var t=arguments;return this.withMutations((function(e){ue(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])}))},List.prototype.shift=function(){return ue(this,1)},List.prototype.merge=function(){return ce(this,void 0,arguments)},List.prototype.mergeWith=function(e){return ce(this,e,t.call(arguments,1))},List.prototype.mergeDeep=function(){return ce(this,jt,arguments)},List.prototype.mergeDeepWith=function(e){var r=t.call(arguments,1);return ce(this,Lt(e),r)},List.prototype.setSize=function(t){return ue(this,0,t)},List.prototype.slice=function(t,e){var r=this.size;return w(t,e,r)?this:ue(this,x(t,r),E(e,r))},List.prototype.__iterator=function(t,e){var r=0,n=ee(this,e);return new Iterator((function(){var e=n();return e===te?T():R(t,r++,e)}))},List.prototype.__iterate=function(t,e){for(var r,n=0,i=ee(this,e);(r=i())!==te&&!1!==t(r,n++,this););return n},List.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?re(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},List.isList=Yt;var $t="@@__IMMUTABLE_LIST__@@",Jt=List.prototype;function VNode(t,e){this.array=t,this.ownerID=e}Jt[$t]=!0,Jt[f]=Jt.remove,Jt.setIn=Mt.setIn,Jt.deleteIn=Jt.removeIn=Mt.removeIn,Jt.update=Mt.update,Jt.updateIn=Mt.updateIn,Jt.mergeIn=Mt.mergeIn,Jt.mergeDeepIn=Mt.mergeDeepIn,Jt.withMutations=Mt.withMutations,Jt.asMutable=Mt.asMutable,Jt.asImmutable=Mt.asImmutable,Jt.wasAltered=Mt.wasAltered,VNode.prototype.removeBefore=function(t,e,r){if(r===e?1<<e:0===this.array.length)return this;var n=r>>>e&d;if(n>=this.array.length)return new VNode([],t);var i,o=0===n;if(e>0){var a=this.array[n];if((i=a&&a.removeBefore(t,e-p,r))===a&&o)return this}if(o&&!i)return this;var s=ae(this,t);if(!o)for(var u=0;u<n;u++)s.array[u]=void 0;return i&&(s.array[n]=i),s},VNode.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e:0)||0===this.array.length)return this;var n,i=r-1>>>e&d;if(i>=this.array.length)return this;if(e>0){var o=this.array[i];if((n=o&&o.removeAfter(t,e-p,r))===o&&i===this.array.length-1)return this}var a=ae(this,t);return a.array.splice(i+1),n&&(a.array[i]=n),a};var Zt,Qt,te={};function ee(t,e){var r=t._origin,n=t._capacity,i=le(n),o=t._tail;return a(t._root,t._level,0);function a(t,e,r){return 0===e?s(t,r):u(t,e,r)}function s(t,a){var s=a===i?o&&o.array:t&&t.array,u=a>r?0:r-a,c=n-a;return c>h&&(c=h),function(){if(u===c)return te;var t=e?--c:u++;return s&&s[t]}}function u(t,i,o){var s,u=t&&t.array,c=o>r?0:r-o>>i,l=1+(n-o>>i);return l>h&&(l=h),function(){for(;;){if(s){var t=s();if(t!==te)return t;s=null}if(c===l)return te;var r=e?--l:c++;s=a(u&&u[r],i-p,o+(r<<i))}}}}function re(t,e,r,n,i,o,a){var s=Object.create(Jt);return s.size=e-t,s._origin=t,s._capacity=e,s._level=r,s._root=n,s._tail=i,s.__ownerID=o,s.__hash=a,s.__altered=!1,s}function ne(){return Zt||(Zt=re(0,0,p))}function ie(t,e,r){if((e=b(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations((function(t){e<0?ue(t,e).set(0,r):ue(t,0,e+1).set(e,r)}));e+=t._origin;var n=t._tail,i=t._root,o=MakeRef(y);return e>=le(t._capacity)?n=oe(n,t.__ownerID,0,e,r,o):i=oe(i,t.__ownerID,t._level,e,r,o),o.value?t.__ownerID?(t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t):re(t._origin,t._capacity,t._level,i,n):t}function oe(t,e,r,n,i,o){var a,s=n>>>r&d,u=t&&s<t.array.length;if(!u&&void 0===i)return t;if(r>0){var c=t&&t.array[s],l=oe(c,e,r-p,n,i,o);return l===c?t:((a=ae(t,e)).array[s]=l,a)}return u&&t.array[s]===i?t:(SetRef(o),a=ae(t,e),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function ae(t,e){return e&&t&&e===t.ownerID?t:new VNode(t?t.array.slice():[],e)}function se(t,e){if(e>=le(t._capacity))return t._tail;if(e<1<<t._level+p){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&d],n-=p;return r}}function ue(t,e,r){void 0!==e&&(e|=0),void 0!==r&&(r|=0);var n=t.__ownerID||new OwnerID,i=t._origin,o=t._capacity,a=i+e,s=void 0===r?o:r<0?o+r:i+r;if(a===i&&s===o)return t;if(a>=s)return t.clear();for(var u=t._level,c=t._root,l=0;a+l<0;)c=new VNode(c&&c.array.length?[void 0,c]:[],n),l+=1<<(u+=p);l&&(a+=l,i+=l,s+=l,o+=l);for(var f=le(o),h=le(s);h>=1<<u+p;)c=new VNode(c&&c.array.length?[c]:[],n),u+=p;var v=t._tail,g=h<f?se(t,s-1):h>f?new VNode([],n):v;if(v&&h>f&&a<o&&v.array.length){for(var y=c=ae(c,n),m=u;m>p;m-=p){var _=f>>>m&d;y=y.array[_]=ae(y.array[_],n)}y.array[f>>>p&d]=v}if(s<o&&(g=g&&g.removeAfter(n,0,s)),a>=h)a-=h,s-=h,u=p,c=null,g=g&&g.removeBefore(n,0,a);else if(a>i||h<f){for(l=0;c;){var b=a>>>u&d;if(b!==h>>>u&d)break;b&&(l+=(1<<u)*b),u-=p,c=c.array[b]}c&&a>i&&(c=c.removeBefore(n,u,a-l)),c&&h<f&&(c=c.removeAfter(n,u,h-l)),l&&(a-=l,s-=l)}return t.__ownerID?(t.size=s-a,t._origin=a,t._capacity=s,t._level=u,t._root=c,t._tail=g,t.__hash=void 0,t.__altered=!0,t):re(a,s,u,c,g)}function ce(t,e,n){for(var i=[],o=0,a=0;a<n.length;a++){var s=n[a],u=IndexedIterable(s);u.size>o&&(o=u.size),r(s)||(u=u.map((function(t){return J(t)}))),i.push(u)}return o>t.size&&(t=t.setSize(o)),Kt(t,e,i)}function le(t){return t<h?0:t-1>>>p<<p}function OrderedMap(t){return null==t?he():fe(t)?t:he().withMutations((function(e){var r=KeyedIterable(t);St(r.size),r.forEach((function(t,r){return e.set(r,t)}))}))}function fe(t){return wt(t)&&a(t)}function pe(t,e,r,n){var i=Object.create(OrderedMap.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=r,i.__hash=n,i}function he(){return Qt||(Qt=pe(Dt(),ne()))}function de(t,e,r){var n,i,o=t._map,a=t._list,s=o.get(e),u=void 0!==s;if(r===v){if(!u)return t;a.size>=h&&a.size>=2*o.size?(n=(i=a.filter((function(t,e){return void 0!==t&&s!==e}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=o.remove(e),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(r===a.get(s)[1])return t;n=o,i=a.set(s,[e,r])}else n=o.set(e,a.size),i=a.set(a.size,[e,r]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=i,t.__hash=void 0,t):pe(n,i)}function ToKeyedSequence(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function ToIndexedSequence(t){this._iter=t,this.size=t.size}function ToSetSequence(t){this._iter=t,this.size=t.size}function FromEntriesSequence(t){this._iter=t,this.size=t.size}function ve(t){var e=qe(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=Pe,e.__iterateUncached=function(e,r){var n=this;return t.__iterate((function(t,r){return!1!==e(r,t,n)}),r)},e.__iteratorUncached=function(e,r){if(e===C){var n=t.__iterator(e,r);return new Iterator((function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t}))}return t.__iterator(e===k?O:k,r)},e}function ge(t,e,r){var n=qe(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,v);return o===v?i:e.call(r,o,n,t)},n.__iterateUncached=function(n,i){var o=this;return t.__iterate((function(t,i,a){return!1!==n(e.call(r,t,i,a),i,o)}),i)},n.__iteratorUncached=function(n,i){var o=t.__iterator(C,i);return new Iterator((function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return R(n,s,e.call(r,a[1],s,t),i)}))},n}function ye(t,e){var r=qe(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=ve(t);return e.reverse=function(){return t.flip()},e}),r.get=function(r,n){return t.get(e?r:-1-r,n)},r.has=function(r){return t.has(e?r:-1-r)},r.includes=function(e){return t.includes(e)},r.cacheResult=Pe,r.__iterate=function(e,r){var n=this;return t.__iterate((function(t,r){return e(t,r,n)}),!r)},r.__iterator=function(e,r){return t.__iterator(e,!r)},r}function me(t,e,r,n){var i=qe(t);return n&&(i.has=function(n){var i=t.get(n,v);return i!==v&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,v);return o!==v&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return t.__iterate((function(t,o,u){if(e.call(r,t,o,u))return s++,i(t,n?o:s-1,a)}),o),s},i.__iteratorUncached=function(i,o){var a=t.__iterator(C,o),s=0;return new Iterator((function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,c=u[0],l=u[1];if(e.call(r,l,c,t))return R(i,n?c:s++,l,o)}}))},i}function _e(t,e,r){var n=Map().asMutable();return t.__iterate((function(i,o){n.update(e.call(r,i,o,t),0,(function(t){return t+1}))})),n.asImmutable()}function be(t,e,r){var i=n(t),o=(a(t)?OrderedMap():Map()).asMutable();t.__iterate((function(n,a){o.update(e.call(r,n,a,t),(function(t){return(t=t||[]).push(i?[a,n]:n),t}))}));var s=Be(t);return o.map((function(e){return Re(t,s(e))}))}function Se(t,e,r,n){var i=t.size;if(void 0!==e&&(e|=0),void 0!==r&&(r|=0),w(e,r,i))return t;var o=x(e,i),a=E(r,i);if(o!=o||a!=a)return Se(t.toSeq().cacheResult(),e,r,n);var s,u=a-o;u==u&&(s=u<0?0:u);var c=qe(t);return c.size=0===s?s:t.size&&s||void 0,!n&&U(t)&&s>=0&&(c.get=function(e,r){return(e=b(this,e))>=0&&e<s?t.get(e+o,r):r}),c.__iterateUncached=function(e,r){var i=this;if(0===s)return 0;if(r)return this.cacheResult().__iterate(e,r);var a=0,u=!0,c=0;return t.__iterate((function(t,r){if(!u||!(u=a++<o))return c++,!1!==e(t,n?r:c-1,i)&&c!==s})),c},c.__iteratorUncached=function(e,r){if(0!==s&&r)return this.cacheResult().__iterator(e,r);var i=0!==s&&t.__iterator(e,r),a=0,u=0;return new Iterator((function(){for(;a++<o;)i.next();if(++u>s)return T();var t=i.next();return n||e===k?t:R(e,u-1,e===O?void 0:t.value[1],t)}))},c}function we(t,e,r){var n=qe(t);return n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var a=0;return t.__iterate((function(t,i,s){return e.call(r,t,i,s)&&++a&&n(t,i,o)})),a},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var a=t.__iterator(C,i),s=!0;return new Iterator((function(){if(!s)return T();var t=a.next();if(t.done)return t;var i=t.value,u=i[0],c=i[1];return e.call(r,c,u,o)?n===C?t:R(n,u,c,t):(s=!1,T())}))},n}function xe(t,e,r,n){var i=qe(t);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return t.__iterate((function(t,o,c){if(!s||!(s=e.call(r,t,o,c)))return u++,i(t,n?o:u-1,a)})),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(C,o),u=!0,c=0;return new Iterator((function(){var t,o,l;do{if((t=s.next()).done)return n||i===k?t:R(i,c++,i===O?void 0:t.value[1],t);var f=t.value;o=f[0],l=f[1],u&&(u=e.call(r,l,o,a))}while(u);return i===C?t:R(i,o,l,t)}))},i}function Ee(t,e){var o=n(t),a=[t].concat(e).map((function(t){return r(t)?o&&(t=KeyedIterable(t)):t=o?H(t):W(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===a.length)return t;if(1===a.length){var s=a[0];if(s===t||o&&n(s)||i(t)&&i(s))return s}var u=new ArraySeq(a);return o?u=u.toKeyedSeq():i(t)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=a.reduce((function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}}),0),u}function Me(t,e,n){var i=qe(t);return i.__iterateUncached=function(i,o){var a=0,s=!1;function u(t,c){var l=this;t.__iterate((function(t,o){return(!e||c<e)&&r(t)?u(t,c+1):!1===i(t,n?o:a++,l)&&(s=!0),!s}),o)}return u(t,0),a},i.__iteratorUncached=function(i,o){var a=t.__iterator(i,o),s=[],u=0;return new Iterator((function(){for(;a;){var t=a.next();if(!1===t.done){var c=t.value;if(i===C&&(c=c[1]),e&&!(s.length<e)||!r(c))return n?t:R(i,u++,c,t);s.push(a),a=c.__iterator(i,o)}else a=s.pop()}return T()}))},i}function Oe(t,e,r){var n=Be(t);return t.toSeq().map((function(i,o){return n(e.call(r,i,o,t))})).flatten(!0)}function ke(t,e){var r=qe(t);return r.size=t.size&&2*t.size-1,r.__iterateUncached=function(r,n){var i=this,o=0;return t.__iterate((function(t,n){return(!o||!1!==r(e,o++,i))&&!1!==r(t,o++,i)}),n),o},r.__iteratorUncached=function(r,n){var i,o=t.__iterator(k,n),a=0;return new Iterator((function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?R(r,a++,e):R(r,a++,i.value,i)}))},r}function Ce(t,e,r){e||(e=je);var o=n(t),a=0,s=t.toSeq().map((function(e,n){return[n,e,a++,r?r(e,n,t):e]})).toArray();return s.sort((function(t,r){return e(t[3],r[3])||t[2]-r[2]})).forEach(o?function(t,e){s[e].length=2}:function(t,e){s[e]=t[1]}),o?KeyedSeq(s):i(t)?IndexedSeq(s):SetSeq(s)}function De(t,e,r){if(e||(e=je),r){var n=t.toSeq().map((function(e,n){return[e,r(e,n,t)]})).reduce((function(t,r){return Ie(e,t[1],r[1])?r:t}));return n&&n[0]}return t.reduce((function(t,r){return Ie(e,t,r)?r:t}))}function Ie(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(null==r||r!=r)||n>0}function Ae(t,e,r){var n=qe(t);return n.size=new ArraySeq(r).map((function(t){return t.size})).min(),n.__iterate=function(t,e){for(var r,n=this.__iterator(k,e),i=0;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},n.__iteratorUncached=function(t,n){var i=r.map((function(t){return t=Iterable(t),q(n?t.reverse():t)})),o=0,a=!1;return new Iterator((function(){var r;return a||(r=i.map((function(t){return t.next()})),a=r.some((function(t){return t.done}))),a?T():R(t,o++,e.apply(null,r.map((function(t){return t.value}))))}))},n}function Re(t,e){return U(t)?e:t.constructor(e)}function Te(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function ze(t){return St(t.size),_(t)}function Be(t){return n(t)?KeyedIterable:i(t)?IndexedIterable:SetIterable}function qe(t){return Object.create((n(t)?KeyedSeq:i(t)?IndexedSeq:SetSeq).prototype)}function Pe(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Seq.prototype.cacheResult.call(this)}function je(t,e){return t>e?1:t<e?-1:0}function Le(t){var e=q(t);if(!e){if(!j(t))throw new TypeError("Expected iterable or array-like: "+t);e=q(Iterable(t))}return e}function Record(t,e){var r,n=function Record(o){if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var a=Object.keys(t);Ue(i,a),i.size=a.length,i._name=e,i._keys=a,i._defaultValues=t}this._map=Map(o)},i=n.prototype=Object.create(Ke);return i.constructor=n,n}e(OrderedMap,Map),OrderedMap.of=function(){return this(arguments)},OrderedMap.prototype.toString=function(){return this.__toString("OrderedMap {","}")},OrderedMap.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},OrderedMap.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):he()},OrderedMap.prototype.set=function(t,e){return de(this,t,e)},OrderedMap.prototype.remove=function(t){return de(this,t,v)},OrderedMap.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},OrderedMap.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate((function(e){return e&&t(e[1],e[0],r)}),e)},OrderedMap.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},OrderedMap.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?pe(e,r,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=r,this)},OrderedMap.isOrderedMap=fe,OrderedMap.prototype[l]=!0,OrderedMap.prototype[f]=OrderedMap.prototype.remove,e(ToKeyedSequence,KeyedSeq),ToKeyedSequence.prototype.get=function(t,e){return this._iter.get(t,e)},ToKeyedSequence.prototype.has=function(t){return this._iter.has(t)},ToKeyedSequence.prototype.valueSeq=function(){return this._iter.valueSeq()},ToKeyedSequence.prototype.reverse=function(){var t=this,e=ye(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},ToKeyedSequence.prototype.map=function(t,e){var r=this,n=ge(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},ToKeyedSequence.prototype.__iterate=function(t,e){var r,n=this;return this._iter.__iterate(this._useKeys?function(e,r){return t(e,r,n)}:(r=e?ze(this):0,function(i){return t(i,e?--r:r++,n)}),e)},ToKeyedSequence.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var r=this._iter.__iterator(k,e),n=e?ze(this):0;return new Iterator((function(){var i=r.next();return i.done?i:R(t,e?--n:n++,i.value,i)}))},ToKeyedSequence.prototype[l]=!0,e(ToIndexedSequence,IndexedSeq),ToIndexedSequence.prototype.includes=function(t){return this._iter.includes(t)},ToIndexedSequence.prototype.__iterate=function(t,e){var r=this,n=0;return this._iter.__iterate((function(e){return t(e,n++,r)}),e)},ToIndexedSequence.prototype.__iterator=function(t,e){var r=this._iter.__iterator(k,e),n=0;return new Iterator((function(){var e=r.next();return e.done?e:R(t,n++,e.value,e)}))},e(ToSetSequence,SetSeq),ToSetSequence.prototype.has=function(t){return this._iter.includes(t)},ToSetSequence.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate((function(e){return t(e,e,r)}),e)},ToSetSequence.prototype.__iterator=function(t,e){var r=this._iter.__iterator(k,e);return new Iterator((function(){var e=r.next();return e.done?e:R(t,e.value,e.value,e)}))},e(FromEntriesSequence,KeyedSeq),FromEntriesSequence.prototype.entrySeq=function(){return this._iter.toSeq()},FromEntriesSequence.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate((function(e){if(e){Te(e);var i=r(e);return t(i?e.get(1):e[1],i?e.get(0):e[0],n)}}),e)},FromEntriesSequence.prototype.__iterator=function(t,e){var n=this._iter.__iterator(k,e);return new Iterator((function(){for(;;){var e=n.next();if(e.done)return e;var i=e.value;if(i){Te(i);var o=r(i);return R(t,o?i.get(0):i[0],o?i.get(1):i[1],e)}}}))},ToIndexedSequence.prototype.cacheResult=ToKeyedSequence.prototype.cacheResult=ToSetSequence.prototype.cacheResult=FromEntriesSequence.prototype.cacheResult=Pe,e(Record,KeyedCollection),Record.prototype.toString=function(){return this.__toString(Fe(this)+" {","}")},Record.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},Record.prototype.get=function(t,e){if(!this.has(t))return e;var r=this._defaultValues[t];return this._map?this._map.get(t,r):r},Record.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=Ne(this,Dt()))},Record.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+Fe(this));var r=this._map&&this._map.set(t,e);return this.__ownerID||r===this._map?this:Ne(this,r)},Record.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:Ne(this,e)},Record.prototype.wasAltered=function(){return this._map.wasAltered()},Record.prototype.__iterator=function(t,e){var r=this;return KeyedIterable(this._defaultValues).map((function(t,e){return r.get(e)})).__iterator(t,e)},Record.prototype.__iterate=function(t,e){var r=this;return KeyedIterable(this._defaultValues).map((function(t,e){return r.get(e)})).__iterate(t,e)},Record.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?Ne(this,e,t):(this.__ownerID=t,this._map=e,this)};var Ke=Record.prototype;function Ne(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._map=e,n.__ownerID=r,n}function Fe(t){return t._name||t.constructor.name||"Record"}function Ue(t,e){try{e.forEach(Ge.bind(void 0,t))}catch(t){}}function Ge(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){nt(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function Set(t){return null==t?Je():He(t)&&!a(t)?t:Je().withMutations((function(e){var r=SetIterable(t);St(r.size),r.forEach((function(t){return e.add(t)}))}))}function He(t){return!(!t||!t[Ve])}Ke[f]=Ke.remove,Ke.deleteIn=Ke.removeIn=Mt.removeIn,Ke.merge=Mt.merge,Ke.mergeWith=Mt.mergeWith,Ke.mergeIn=Mt.mergeIn,Ke.mergeDeep=Mt.mergeDeep,Ke.mergeDeepWith=Mt.mergeDeepWith,Ke.mergeDeepIn=Mt.mergeDeepIn,Ke.setIn=Mt.setIn,Ke.update=Mt.update,Ke.updateIn=Mt.updateIn,Ke.withMutations=Mt.withMutations,Ke.asMutable=Mt.asMutable,Ke.asImmutable=Mt.asImmutable,e(Set,SetCollection),Set.of=function(){return this(arguments)},Set.fromKeys=function(t){return this(KeyedIterable(t).keySeq())},Set.prototype.toString=function(){return this.__toString("Set {","}")},Set.prototype.has=function(t){return this._map.has(t)},Set.prototype.add=function(t){return Ye(this,this._map.set(t,!0))},Set.prototype.remove=function(t){return Ye(this,this._map.remove(t))},Set.prototype.clear=function(){return Ye(this,this._map.clear())},Set.prototype.union=function(){var e=t.call(arguments,0);return 0===(e=e.filter((function(t){return 0!==t.size}))).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations((function(t){for(var r=0;r<e.length;r++)SetIterable(e[r]).forEach((function(e){return t.add(e)}))})):this.constructor(e[0])},Set.prototype.intersect=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map((function(t){return SetIterable(t)}));var r=this;return this.withMutations((function(t){r.forEach((function(r){e.every((function(t){return t.includes(r)}))||t.remove(r)}))}))},Set.prototype.subtract=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map((function(t){return SetIterable(t)}));var r=this;return this.withMutations((function(t){r.forEach((function(r){e.some((function(t){return t.includes(r)}))&&t.remove(r)}))}))},Set.prototype.merge=function(){return this.union.apply(this,arguments)},Set.prototype.mergeWith=function(e){var r=t.call(arguments,1);return this.union.apply(this,r)},Set.prototype.sort=function(t){return OrderedSet(Ce(this,t))},Set.prototype.sortBy=function(t,e){return OrderedSet(Ce(this,e,t))},Set.prototype.wasAltered=function(){return this._map.wasAltered()},Set.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate((function(e,n){return t(n,n,r)}),e)},Set.prototype.__iterator=function(t,e){return this._map.map((function(t,e){return e})).__iterator(t,e)},Set.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},Set.isSet=He;var We,Ve="@@__IMMUTABLE_SET__@@",Xe=Set.prototype;function Ye(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function $e(t,e){var r=Object.create(Xe);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Je(){return We||(We=$e(Dt()))}function OrderedSet(t){return null==t?rr():Ze(t)?t:rr().withMutations((function(e){var r=SetIterable(t);St(r.size),r.forEach((function(t){return e.add(t)}))}))}function Ze(t){return He(t)&&a(t)}Xe[Ve]=!0,Xe[f]=Xe.remove,Xe.mergeDeep=Xe.merge,Xe.mergeDeepWith=Xe.mergeWith,Xe.withMutations=Mt.withMutations,Xe.asMutable=Mt.asMutable,Xe.asImmutable=Mt.asImmutable,Xe.__empty=Je,Xe.__make=$e,e(OrderedSet,Set),OrderedSet.of=function(){return this(arguments)},OrderedSet.fromKeys=function(t){return this(KeyedIterable(t).keySeq())},OrderedSet.prototype.toString=function(){return this.__toString("OrderedSet {","}")},OrderedSet.isOrderedSet=Ze;var Qe,tr=OrderedSet.prototype;function er(t,e){var r=Object.create(tr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function rr(){return Qe||(Qe=er(he()))}function Stack(t){return null==t?ur():nr(t)?t:ur().unshiftAll(t)}function nr(t){return!(!t||!t[or])}tr[l]=!0,tr.__empty=rr,tr.__make=er,e(Stack,IndexedCollection),Stack.of=function(){return this(arguments)},Stack.prototype.toString=function(){return this.__toString("Stack [","]")},Stack.prototype.get=function(t,e){var r=this._head;for(t=b(this,t);r&&t--;)r=r.next;return r?r.value:e},Stack.prototype.peek=function(){return this._head&&this._head.value},Stack.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,r=arguments.length-1;r>=0;r--)e={value:arguments[r],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):sr(t,e)},Stack.prototype.pushAll=function(t){if(0===(t=IndexedIterable(t)).size)return this;St(t.size);var e=this.size,r=this._head;return t.reverse().forEach((function(t){e++,r={value:t,next:r}})),this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):sr(e,r)},Stack.prototype.pop=function(){return this.slice(1)},Stack.prototype.unshift=function(){return this.push.apply(this,arguments)},Stack.prototype.unshiftAll=function(t){return this.pushAll(t)},Stack.prototype.shift=function(){return this.pop.apply(this,arguments)},Stack.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):ur()},Stack.prototype.slice=function(t,e){if(w(t,e,this.size))return this;var r=x(t,this.size);if(E(e,this.size)!==this.size)return IndexedCollection.prototype.slice.call(this,t,e);for(var n=this.size-r,i=this._head;r--;)i=i.next;return this.__ownerID?(this.size=n,this._head=i,this.__hash=void 0,this.__altered=!0,this):sr(n,i)},Stack.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?sr(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Stack.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var r=0,n=this._head;n&&!1!==t(n.value,r++,this);)n=n.next;return r},Stack.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var r=0,n=this._head;return new Iterator((function(){if(n){var e=n.value;return n=n.next,R(t,r++,e)}return T()}))},Stack.isStack=nr;var ir,or="@@__IMMUTABLE_STACK__@@",ar=Stack.prototype;function sr(t,e,r,n){var i=Object.create(ar);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function ur(){return ir||(ir=sr(0))}function cr(t,e){var r=function(r){t.prototype[r]=e[r]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}ar[or]=!0,ar.withMutations=Mt.withMutations,ar.asMutable=Mt.asMutable,ar.asImmutable=Mt.asImmutable,ar.wasAltered=Mt.wasAltered,Iterable.Iterator=Iterator,cr(Iterable,{toArray:function(){St(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate((function(e,r){t[r]=e})),t},toIndexedSeq:function(){return new ToIndexedSequence(this)},toJS:function(){return this.toSeq().map((function(t){return t&&"function"==typeof t.toJS?t.toJS():t})).__toJS()},toJSON:function(){return this.toSeq().map((function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t})).__toJS()},toKeyedSeq:function(){return new ToKeyedSequence(this,!0)},toMap:function(){return Map(this.toKeyedSeq())},toObject:function(){St(this.size);var t={};return this.__iterate((function(e,r){t[r]=e})),t},toOrderedMap:function(){return OrderedMap(this.toKeyedSeq())},toOrderedSet:function(){return OrderedSet(n(this)?this.valueSeq():this)},toSet:function(){return Set(n(this)?this.valueSeq():this)},toSetSeq:function(){return new ToSetSequence(this)},toSeq:function(){return i(this)?this.toIndexedSeq():n(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Stack(n(this)?this.valueSeq():this)},toList:function(){return List(n(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){return Re(this,Ee(this,t.call(arguments,0)))},includes:function(t){return this.some((function(e){return et(e,t)}))},entries:function(){return this.__iterator(C)},every:function(t,e){St(this.size);var r=!0;return this.__iterate((function(n,i,o){if(!t.call(e,n,i,o))return r=!1,!1})),r},filter:function(t,e){return Re(this,me(this,t,e,!0))},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},findEntry:function(t,e){var r;return this.__iterate((function(n,i,o){if(t.call(e,n,i,o))return r=[i,n],!1})),r},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){return St(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){St(this.size),t=void 0!==t?""+t:",";var e="",r=!0;return this.__iterate((function(n){r?r=!1:e+=t,e+=null!=n?n.toString():""})),e},keys:function(){return this.__iterator(O)},map:function(t,e){return Re(this,ge(this,t,e))},reduce:function(t,e,r){var n,i;return St(this.size),arguments.length<2?i=!0:n=e,this.__iterate((function(e,o,a){i?(i=!1,n=e):n=t.call(r,n,e,o,a)})),n},reduceRight:function(t,e,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return Re(this,ye(this,!0))},slice:function(t,e){return Re(this,Se(this,t,e,!0))},some:function(t,e){return!this.every(dr(t),e)},sort:function(t){return Re(this,Ce(this,t))},values:function(){return this.__iterator(k)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(t,e){return _(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return _e(this,t,e)},equals:function(t){return rt(this,t)},entrySeq:function(){var t=this;if(t._cache)return new ArraySeq(t._cache);var e=t.toSeq().map(hr).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(dr(t),e)},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},first:function(){return this.find(S)},flatMap:function(t,e){return Re(this,Oe(this,t,e))},flatten:function(t){return Re(this,Me(this,t,!0))},fromEntrySeq:function(){return new FromEntriesSequence(this)},get:function(t,e){return this.find((function(e,r){return et(r,t)}),void 0,e)},getIn:function(t,e){for(var r,n=this,i=Le(t);!(r=i.next()).done;){var o=r.value;if((n=n&&n.get?n.get(o,v):v)===v)return e}return n},groupBy:function(t,e){return be(this,t,e)},has:function(t){return this.get(t,v)!==v},hasIn:function(t){return this.getIn(t,v)!==v},isSubset:function(t){return t="function"==typeof t.includes?t:Iterable(t),this.every((function(e){return t.includes(e)}))},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:Iterable(t)).isSubset(this)},keySeq:function(){return this.toSeq().map(pr).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return De(this,t)},maxBy:function(t,e){return De(this,e,t)},min:function(t){return De(this,t?vr(t):mr)},minBy:function(t,e){return De(this,e?vr(e):mr,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return Re(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return Re(this,xe(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(dr(t),e)},sortBy:function(t,e){return Re(this,Ce(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return Re(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return Re(this,we(this,t,e))},takeUntil:function(t,e){return this.takeWhile(dr(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=_r(this))}});var lr=Iterable.prototype;lr[s]=!0,lr[A]=lr.values,lr.__toJS=lr.toArray,lr.__toStringMapper=gr,lr.inspect=lr.toSource=function(){return this.toString()},lr.chain=lr.flatMap,lr.contains=lr.includes,function(){try{Object.defineProperty(lr,"length",{get:function(){if(!Iterable.noLengthWarning){var t;try{throw new Error}catch(e){t=e.stack}if(-1===t.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+t),this.size}}})}catch(t){}}(),cr(KeyedIterable,{flip:function(){return Re(this,ve(this))},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLastKey:function(t,e){return this.toSeq().reverse().findKey(t,e)},keyOf:function(t){return this.findKey((function(e){return et(e,t)}))},lastKeyOf:function(t){return this.findLastKey((function(e){return et(e,t)}))},mapEntries:function(t,e){var r=this,n=0;return Re(this,this.toSeq().map((function(i,o){return t.call(e,[o,i],n++,r)})).fromEntrySeq())},mapKeys:function(t,e){var r=this;return Re(this,this.toSeq().flip().map((function(n,i){return t.call(e,n,i,r)})).flip())}});var fr=KeyedIterable.prototype;function pr(t,e){return e}function hr(t,e){return[e,t]}function dr(t){return function(){return!t.apply(this,arguments)}}function vr(t){return function(){return-t.apply(this,arguments)}}function gr(t){return"string"==typeof t?JSON.stringify(t):t}function yr(){return m(arguments)}function mr(t,e){return t<e?1:t>e?-1:0}function _r(t){if(t.size===1/0)return 0;var e=a(t),r=n(t),i=e?1:0;return br(t.__iterate(r?e?function(t,e){i=31*i+Sr(at(t),at(e))|0}:function(t,e){i=i+Sr(at(t),at(e))|0}:e?function(t){i=31*i+at(t)|0}:function(t){i=i+at(t)|0}),i)}function br(t,e){return e=it(e,3432918353),e=it(e<<15|e>>>-15,461845907),e=it(e<<13|e>>>-13,5),e=it((e=e+3864292196^t)^e>>>16,2246822507),e=ot((e=it(e^e>>>13,3266489909))^e>>>16)}function Sr(t,e){return t^e+2654435769+(t<<6)+(t>>2)}return fr[u]=!0,fr[A]=lr.entries,fr.__toJS=lr.toObject,fr.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+gr(t)},cr(IndexedIterable,{toKeyedSeq:function(){return new ToKeyedSequence(this,!1)},filter:function(t,e){return Re(this,me(this,t,e,!1))},findIndex:function(t,e){var r=this.findEntry(t,e);return r?r[0]:-1},indexOf:function(t){var e=this.toKeyedSeq().keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.toKeyedSeq().reverse().keyOf(t);return void 0===e?-1:e},reverse:function(){return Re(this,ye(this,!1))},slice:function(t,e){return Re(this,Se(this,t,e,!1))},splice:function(t,e){var r=arguments.length;if(e=Math.max(0|e,0),0===r||2===r&&!e)return this;t=x(t,t<0?this.count():this.size);var n=this.slice(0,t);return Re(this,1===r?n:n.concat(m(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.toKeyedSeq().findLastKey(t,e);return void 0===r?-1:r},first:function(){return this.get(0)},flatten:function(t){return Re(this,Me(this,t,!1))},get:function(t,e){return(t=b(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find((function(e,r){return r===t}),void 0,e)},has:function(t){return(t=b(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return Re(this,ke(this,t))},interleave:function(){var t=[this].concat(m(arguments)),e=Ae(this.toSeq(),IndexedSeq.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),Re(this,r)},last:function(){return this.get(-1)},skipWhile:function(t,e){return Re(this,xe(this,t,e,!1))},zip:function(){return Re(this,Ae(this,yr,[this].concat(m(arguments))))},zipWith:function(t){var e=m(arguments);return e[0]=this,Re(this,Ae(this,t,e))}}),IndexedIterable.prototype[c]=!0,IndexedIterable.prototype[l]=!0,cr(SetIterable,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),SetIterable.prototype.has=lr.includes,cr(KeyedSeq,KeyedIterable.prototype),cr(IndexedSeq,IndexedIterable.prototype),cr(SetSeq,SetIterable.prototype),cr(KeyedCollection,KeyedIterable.prototype),cr(IndexedCollection,IndexedIterable.prototype),cr(SetCollection,SetIterable.prototype),{Iterable,Seq,Collection,Map,OrderedMap,List,Stack,Set,OrderedSet,Record,Range,Repeat,is:et,fromJS:J}}()},77405:t=>{"use strict";t.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},77800:(t,e,r)=>{"use strict";r(14594);t.exports=function(t,e){var r,n=t.getSelection(),i=n.getStartKey(),o=n.getStartOffset(),a=t.getCurrentContent(),s=i;return e>a.getBlockForKey(i).getText().length-o?(s=a.getKeyAfter(i),r=0):r=o+e,n.merge({focusKey:s,focusOffset:r})}},77811:t=>{"use strict";t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},78527:(t,e,r)=>{"use strict";var n=r(17078);t.exports=function(t){var e=n(t);return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}},78840:(t,e,r)=>{"use strict";function n(t,e,r){for(var n=t.text,o=t.characterMeta,a=e.length,s=r.length,u=[],c=o.slice(0,0),l=0,f=n.indexOf(e);-1!==f;)u.push(n.slice(l,f)+r),c=c.concat(o.slice(l,f),i(o.slice(f,f+1),s)),l=f+a,f=n.indexOf(e,l);return u.push(n.slice(l)),c=c.concat(o.slice(l)),{text:u.join(""),characterMeta:c}}function i(t,e){for(var r=t.slice(0,0);e-- >0;)r=r.concat(t);return r}r.d(e,{stateFromHTML:()=>R});var o=r(35143),a=r(49568),s={UNSTYLED:"unstyled",HEADER_ONE:"header-one",HEADER_TWO:"header-two",HEADER_THREE:"header-three",HEADER_FOUR:"header-four",HEADER_FIVE:"header-five",HEADER_SIX:"header-six",UNORDERED_LIST_ITEM:"unordered-list-item",ORDERED_LIST_ITEM:"ordered-list-item",BLOCKQUOTE:"blockquote",PULLQUOTE:"pullquote",CODE:"code-block",ATOMIC:"atomic"},u={LINK:"LINK",IMAGE:"IMAGE",EMBED:"embed"},c={BOLD:"BOLD",CODE:"CODE",ITALIC:"ITALIC",STRIKETHROUGH:"STRIKETHROUGH",UNDERLINE:"UNDERLINE"};new a.OrderedSet;var l={a:1,abbr:1,area:1,audio:1,b:1,bdi:1,bdo:1,br:1,button:1,canvas:1,cite:1,code:1,command:1,datalist:1,del:1,dfn:1,em:1,embed:1,i:1,iframe:1,img:1,input:1,ins:1,kbd:1,keygen:1,label:1,map:1,mark:1,meter:1,noscript:1,object:1,output:1,progress:1,q:1,ruby:1,s:1,samp:1,script:1,select:1,small:1,span:1,strong:1,sub:1,sup:1,textarea:1,time:1,u:1,var:1,video:1,wbr:1,acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1},f={area:1,base:1,br:1,col:1,colgroup:1,command:1,dl:1,embed:1,head:1,hgroup:1,hr:1,iframe:1,img:1,input:1,keygen:1,link:1,meta:1,ol:1,optgroup:1,option:1,param:1,script:1,select:1,source:1,style:1,table:1,tbody:1,textarea:1,tfoot:1,thead:1,title:1,tr:1,track:1,ul:1,wbr:1,basefont:1,dialog:1,dir:1,isindex:1},p={img:1};function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function d(t,e){var r=Object.keys(t);return Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(t)),e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r}function v(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function g(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var y=/^data:/i,m=(0,a.OrderedSet)(),_=new o.ContentBlock({key:(0,o.genKey)(),text:"",type:s.UNSTYLED,characterList:(0,a.List)(),depth:0}),b=/(\r\n|\r|\n)/g,S="\r",w=/^data-([a-z0-9-]+)$/,x={a:{href:"url",rel:"rel",target:"target",title:"title"},img:{src:"src",alt:"alt",width:"width",height:"height"}},E=function(t,e){var r={};if(x.hasOwnProperty(t))for(var n=x[t],i=0;i<e.attributes.length;i++){var o=e.attributes[i],a=o.name,s=o.value;if("string"==typeof s){var u=s;if(n.hasOwnProperty(a))r[n[a]]=u;else w.test(a)&&(r[a]=u)}}return r},M={a:function(t,e,r){var n,i=E(e,r);if(null!=(n=i.url)&&!n.match(y))return t.createEntity(u.LINK,i)},img:function(t,e,r){var n=E(e,r);if(null!=n.src)return t.createEntity(u.IMAGE,n)}},O=function(){function ContentGenerator(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,ContentGenerator),g(this,"contentStateForEntities",void 0),g(this,"blockStack",void 0),g(this,"blockList",void 0),g(this,"depth",void 0),g(this,"options",void 0),g(this,"inlineCreators",{Style:function(t){function Style(e){return t.apply(this,arguments)}return Style.toString=function(){return t.toString()},Style}((function(t){return{type:"STYLE",style:t}})),Entity:function Entity(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"MUTABLE";return{type:"ENTITY",entityKey:t.createEntity(e,k(r),n)}}}),this.options=e,this.contentStateForEntities=o.ContentState.createFromBlockArray([]),this.blockStack=[],this.blockList=[],this.depth=0}var t,e,r;return t=ContentGenerator,e=[{key:"process",value:function(t){this.processBlockElement(t);var e=[];return this.blockList.forEach((function(t){var r=function(t){var e="",r=(0,a.Seq)();return t.forEach((function(t){e+=t.text,r=r.concat(t.characterMeta)})),{text:e,characterMeta:r}}(t.textFragments),i=r.text,s=r.characterMeta,u=!1;if(i===S&&(u=!0,i=""),"pre"===t.tagName){var c=function(t,e){return"\n"===t.charAt(0)&&(t=t.slice(1),e=e.slice(1)),{text:t,characterMeta:e}}(i,s);i=c.text,s=c.characterMeta}else{var l=function(t,e){var r=function(t,e){for(;" "===t.charAt(0);)t=t.slice(1),e=e.slice(1);return{text:t,characterMeta:e}}(t=t.replace(/[ \t\n]/g," "),e);t=r.text,e=r.characterMeta;var i=function(t,e){for(;" "===t.slice(-1);)t=t.slice(0,-1),e=e.slice(0,-1);return{text:t,characterMeta:e}}(t,e);t=i.text,e=i.characterMeta;for(var o=t.length;o--;)" "===t.charAt(o)&&" "===t.charAt(o-1)&&(t=t.slice(0,o)+t.slice(o+1),e=e.slice(0,o).concat(e.slice(o+1)));var a=n({text:t,characterMeta:e},"\r ",S);t=a.text,e=a.characterMeta;var s=n({text:t,characterMeta:e}," \r",S);return t=s.text,e=s.characterMeta,{text:t,characterMeta:e}}(i,s);i=l.text,s=l.characterMeta}((i=i.split(S).join("\n")).length||u)&&e.push(new o.ContentBlock({key:(0,o.genKey)(),text:i,type:t.type,characterList:s.toList(),depth:t.depth,data:t.data?(0,a.Map)(t.data):(0,a.Map)()}))})),e.length||(e=[_]),o.ContentState.createFromBlockArray(e,this.contentStateForEntities.getEntityMap())}},{key:"getBlockTypeFromTagName",value:function(t){var e=this.options.blockTypes;if(e&&e[t])return e[t];switch(t){case"li":return"ol"===this.blockStack.slice(-1)[0].tagName?s.ORDERED_LIST_ITEM:s.UNORDERED_LIST_ITEM;case"blockquote":return s.BLOCKQUOTE;case"h1":return s.HEADER_ONE;case"h2":return s.HEADER_TWO;case"h3":return s.HEADER_THREE;case"h4":return s.HEADER_FOUR;case"h5":return s.HEADER_FIVE;case"h6":return s.HEADER_SIX;case"pre":return s.CODE;case"figure":return s.ATOMIC;default:return s.UNSTYLED}}},{key:"processBlockElement",value:function(t){if(t){var e,r,n=this.options.customBlockFn,i=t.nodeName.toLowerCase();if(n){var o=n(t);null!=o&&(e=o.type,r=o.data)}var a=!0;if(null==e&&(a=!1,e=this.getBlockTypeFromTagName(i)),e===s.CODE){var u=t.getAttribute("data-language");u&&(r=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(r,!0).forEach((function(e){g(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},r,{language:u}))}var c=function(t){switch(t){case s.UNORDERED_LIST_ITEM:case s.ORDERED_LIST_ITEM:return!0;default:return!1}}(e),l=!f.hasOwnProperty(i);if(!a&&e===s.UNSTYLED){var p=this.blockStack.slice(-1)[0];p&&(e=p.type)}var h={tagName:i,textFragments:[],type:e,styleStack:[m],entityStack:[null],depth:c?this.depth:0,data:r};l&&(this.blockList.push(h),c&&(this.depth+=1)),this.blockStack.push(h),null!=t.childNodes&&Array.from(t.childNodes).forEach(this.processNode,this),this.blockStack.pop(),l&&c&&(this.depth-=1)}}},{key:"processInlineElement",value:function(t){var e=t.nodeName.toLowerCase();if("br"!==e){var r=this.blockStack.slice(-1)[0],n=r.styleStack.slice(-1)[0],i=r.entityStack.slice(-1)[0],o=this.options.customInlineFn,a=o?o(t,this.inlineCreators):null;if(null!=a)switch(a.type){case"STYLE":[].concat(a.style).forEach((t=>{n=n.add(t)}));break;case"ENTITY":i=a.entityKey}else n=function(t,e,r){switch(e){case"b":case"strong":return t.add(c.BOLD);case"i":case"em":return t.add(c.ITALIC);case"u":case"ins":return t.add(c.UNDERLINE);case"code":return t.add(c.CODE);case"s":case"del":return t.add(c.STRIKETHROUGH);default:return r&&r[e]?t.add(r[e]):t}}(n,e,this.options.elementStyles),M.hasOwnProperty(e)&&(i=M[e](this,e,t)||i);r.styleStack.push(n),r.entityStack.push(i),null!=t.childNodes&&Array.from(t.childNodes).forEach(this.processNode,this),p.hasOwnProperty(e)&&this.processText(" "),r.entityStack.pop(),r.styleStack.pop()}else this.processText(S)}},{key:"processTextNode",value:function(t){var e=t.nodeValue;e=(e=e.replace(b,"\n")).split("").join(S),this.processText(e)}},{key:"processText",value:function(t){var e=this.blockStack.slice(-1)[0],r=e.styleStack.slice(-1)[0],n=e.entityStack.slice(-1)[0],i=o.CharacterMetadata.create({style:r,entity:n}),s=(0,a.Repeat)(i,t.length);e.textFragments.push({text:t,characterMeta:s})}},{key:"processNode",value:function(t){if(1===t.nodeType){var e=t,r=e.nodeName.toLowerCase();l.hasOwnProperty(r)?this.processInlineElement(e):this.processBlockElement(e)}else 3===t.nodeType&&this.processTextNode(t)}},{key:"createEntity",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"MUTABLE";return this.contentStateForEntities=this.contentStateForEntities.createEntity(t,r,e),this.contentStateForEntities.getLastCreatedEntityKey()}}],e&&v(t.prototype,e),r&&v(t,r),ContentGenerator}();function k(t){var e={};if(null!==t&&"object"===h(t)&&!Array.isArray(t))for(var r=t,n=0,i=Object.keys(r);n<i.length;n++){var o=i[n],a=r[o];"string"==typeof a&&(e[o]=a)}return e}function C(t,e){return new O(e).process(t)}function D(t){var e;"undefined"!=typeof DOMParser?e=(new DOMParser).parseFromString(t,"text/html"):(e=document.implementation.createHTMLDocument("")).documentElement&&(e.documentElement.innerHTML=t);return e.body||e.createElement("body")}function I(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var A={};function R(t,e){var r=e||A,n=r.parser,i=I(r,["parser"]);return null==n&&(n=D),C(n(t),i)}},78845:(t,e,r)=>{"use strict";r.d(e,{filterEditorState:()=>S});var n=r(35143);const i="atomic",o="unstyled",a="unordered-list-item",s="ordered-list-item",u=t=>{const e=t.getBlockMap(),r=e.filter((t=>{const e=t.getText(),r=t.getEntityAt(0);return Boolean(r)&&["📷"," ","📷 "].includes(e)})).map((t=>t.set("type",i)));return 0!==r.size?t.merge({blockMap:e.merge(r)}):t},c=t=>{let e=t.getBlockMap();const r=e.filter((t=>t.getType()===i&&(" "!==t.getText()||0!==t.getInlineStyleAt(0).size))).map((t=>{const e=t.getCharacterList().slice(0,1).map((t=>{let e=t;return t.getStyle().forEach((t=>{e=n.CharacterMetadata.removeStyle(e,t)})),e}));return t.merge({text:" ",characterList:e})}));return 0!==r.size&&(e=e.merge(r)),t.merge({blockMap:e})},l=(t,e)=>{const r=e.getBlockMap(),n=r.filter((r=>{if(r.getType()!==i)return!0;const n=r.getEntityAt(0);let o;if(n){const r=e.getEntity(n).getType();o=t.some((t=>t.type===r))}else o=!1;return o}));return n.size!==r.size?e.merge({blockMap:n}):e},f=t=>{const e=t.getBlockMap(),r=e.filter((t=>[a,s].includes(t.getType())||0===t.getDepth()));return r.size!==e.size?t.merge({blockMap:r}):t},p=(t,e)=>{const r=e.getBlockMap(),n=r.filter((t=>"unstyled"===t.getType())).map((e=>{const r=e.getText();let n,i=e;const o=t.find((t=>(n=new RegExp(t.test).exec(r),null!==n)));if(o&&n&&n[0]){const t=i.getText();if(i.getEntityAt(0)&&n[0]===t)return i;const e=n[0].length;let r=i.getCharacterList(),a=0;for(;a<e;)r=r.shift(),a++;i=i.merge({type:o.type,depth:o.depth,text:t.slice(e),characterList:r})}return i}));return 0===n.size?e:e.merge({blockMap:r.merge(n)})},h=(t,e)=>{const r=e.getBlockMap(),n=r.filter((e=>e.getDepth()>t)).map((e=>e.set("depth",t)));return 0===n.size?e:e.merge({blockMap:r.merge(n)})},d=(t,e)=>{const r=e.getBlockMap(),n=r.filter((e=>!t.includes(e.getType()))).map((t=>t.merge({type:o,depth:0})));return 0===n.size?e:e.merge({blockMap:r.merge(n)})},v=(t,e)=>{const r=e.getBlockMap(),i=r.map((e=>{let r=!1;const i=e.getCharacterList().map((e=>{let i=e;return e.getStyle().filter((e=>!t.includes(e))).forEach((t=>{r=!0,i=n.CharacterMetadata.removeStyle(i,t)})),i}));return r?e.set("characterList",i):e}));return e.merge({blockMap:r.merge(i)})},g=t=>{let e=t;const r=e.getBlockMap(),i=[],o=t=>{const e=t.getEntity();if(e){if(i.includes(e))return!0;i.push(e)}return!1},a=r.map((t=>{let r=t.getCharacterList(),i=!1;return t.findEntityRanges(o,((t,o)=>{const a=r.get(t).getEntity(),s=e.getEntity(a);e=e.createEntity(s.getType(),s.getMutability(),s.getData());const u=e.getLastCreatedEntityKey();r=r.map(((e,r)=>t<=r&&r<=o?n.CharacterMetadata.applyEntity(e,u):e)),i=!0})),i?t.set("characterList",r):t}));return e.merge({blockMap:r.merge(a)})},y=(t,e)=>{const r=e.getBlockMap(),i=r.map((r=>{let i=!1;const o=r.getCharacterList().map((o=>{const a=o.getEntity();if(a){if(!t(e,a,r))return i=!0,n.CharacterMetadata.applyEntity(o,null)}return o}));return i?r.set("characterList",o):r}));return e.merge({blockMap:r.merge(i)})},m=(t,e)=>{let r=e;const n={};return r.getBlockMap().forEach((t=>{t.findEntityRanges((t=>{const e=t.getEntity();if(e){const t=r.getEntity(e);n[e]=t}return!1}))})),Object.keys(n).forEach((e=>{const i=n[e],o=i.getData(),a=t.find((t=>t.type===i.getType())),s=a?a.attributes:null;if(!s)return o;const u=s.reduce(((t,e)=>(o.hasOwnProperty(e)&&(t[e]=o[e]),t)),{});r=r.replaceEntityData(e,u)})),r},_=(t,e)=>{const r=e.getBlockMap(),n=r.map((e=>{const r=e.getText(),n=t.reduce(((t,e)=>t.replace(new RegExp(e,"g")," ".repeat(e.length))),r);return r!==n?e.set("text",n):e}));return e.merge({blockMap:r.merge(n)})},b=[{test:"^(· |•\t|•|📷 |\t| \t)",type:"unordered-list-item",depth:0},{test:"^(◦|o |o\t)",type:"unordered-list-item",depth:1},{test:"^(§ |\t|◾)",type:"unordered-list-item",depth:2},{test:"^1{0,1}\\d\\.[ \t]",type:"ordered-list-item",depth:0},{test:"^x{0,1}(i|ii|iii|iv|v|vi|vii|viii|ix|x)\\.[ \t]",type:"ordered-list-item",depth:2},{test:"^[a-z]\\.[ \t]",type:"ordered-list-item",depth:1}],S=(t,e)=>{const{blocks:r,styles:a,entities:s,maxNesting:S,whitespacedCharacters:w,blockTextRules:x=b}=t,E=[f,p.bind(null,x),h.bind(null,S),v.bind(null,a),d.bind(null,r.concat([o,i])),u,c,y.bind(null,((t,e,r)=>{const n=t.getEntity(e),o=n.getData(),a=n.getType(),u=r.getType();return c=a,s.some((t=>t.type===c))&&((t,e,r)=>{const n=t.find((t=>t.type===e)),i=n&&n.allowlist?n.allowlist:n&&n.whitelist?n.whitelist:{};return Object.keys(i).every((t=>{const e=i[t];if("boolean"==typeof e){const n=r.hasOwnProperty(t);return e?n:!n}return new RegExp(e).test(r[t])}))})(s,a,o)&&!((t,e)=>"IMAGE"===t&&e!==i)(a,u);var c})),l.bind(null,s),m.bind(null,s),g,_.bind(null,w)],M=e.getCurrentContent();return((t,e,r)=>{if(r===e)return t;if(0===r.getBlockMap().size)return n.EditorState.moveFocusToEnd(n.EditorState.set(t,{currentContent:n.ContentState.createFromText("")}));const i=n.EditorState.set(t,{currentContent:r}),o=t.getSelection(),a=o.getAnchorKey(),s=r.getBlockForKey(a);if(!o.isCollapsed()||s)return i;const u=r.getBlockMap().keySeq().reverse().find((t=>e.getKeyAfter(t)!==r.getKeyAfter(t)));if(u){const t=r.getBlockForKey(u).getText().length,e=o.merge({anchorKey:u,focusKey:u,anchorOffset:t,focusOffset:t});return n.EditorState.acceptSelection(i,e)}return i})(e,M,E.reduce(((t,e)=>e(t)),M))}},79450:(t,e,r)=>{"use strict";var n=r(3885),i=r(56408);t.exports=function(t,e,r,o,a){var s=i(t.getSelection());if(!e||!o)return s;var u=n.decode(e),c=u.blockKey,l=t.getBlockTree(c),f=l&&l.getIn([u.decoratorKey,"leaves",u.leafKey]),p=n.decode(o),h=p.blockKey,d=t.getBlockTree(h),v=d&&d.getIn([p.decoratorKey,"leaves",p.leafKey]);if(!f||!v)return s;var g=f.get("start"),y=v.get("start"),m=f?g+r:null,_=v?y+a:null;if(s.getAnchorKey()===c&&s.getAnchorOffset()===m&&s.getFocusKey()===h&&s.getFocusOffset()===_)return s;var b=!1;if(c===h){var S=f.get("end"),w=v.get("end");b=y===g&&w===S?a<r:y<g}else{b=t.getCurrentContent().getBlockMap().keySeq().skipUntil((function(t){return t===c||t===h})).first()===h}return s.merge({anchorKey:c,anchorOffset:m,focusKey:h,focusOffset:_,isBackward:b})}},79672:(t,e,r)=>{"use strict";r.d(e,{default:()=>o});var n=r(10123),i=r(70551);function o(t,e){(0,i.default)(2,arguments);var r=(0,n.default)(t),o=(0,n.default)(e);return r.getTime()>o.getTime()}},79777:(t,e,r)=>{"use strict";var n=r(47282)("draft_tree_data_support");t.exports=r(n?71803:93659)},80120:(t,e,r)=>{"use strict";var n=r(29215);t.exports=function(t,e){var r=e.ownerDocument.defaultView.getSelection(),i=r.anchorNode,o=r.anchorOffset,a=r.focusNode,s=r.focusOffset;return 0===r.rangeCount||null==i||null==a?{selectionState:t.getSelection().set("hasFocus",!1),needsRecovery:!1}:n(t,e,i,o,a,s)}},80508:(t,e,r)=>{"use strict";var n=r(68382),i=r(69311),o=r(90646);function a(t,e,r,a,s,u,c){var l=r.getStartOffset(),f=r.getEndOffset(),p=t.__get(s).getMutability(),h=c?l:f;if("MUTABLE"===p)return r;var d=i(e,s).filter((function(t){return h<=t.end&&h>=t.start}));1!=d.length&&o(!1);var v=d[0];if("IMMUTABLE"===p)return r.merge({anchorOffset:v.start,focusOffset:v.end,isBackward:!1});u||(c?f=v.end:l=v.start);var g=n.getRemovalRange(l,f,e.getText().slice(v.start,v.end),v.start,a);return r.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1})}t.exports=function(t,e,r,n,i){var o=n.getStartOffset(),s=n.getEndOffset(),u=e.getEntityAt(o),c=r.getEntityAt(s-1);if(!u&&!c)return n;var l=n;if(u&&u===c)l=a(t,e,l,i,u,!0,!0);else if(u&&c){var f=a(t,e,l,i,u,!1,!0),p=a(t,r,l,i,c,!1,!1);l=l.merge({anchorOffset:f.getAnchorOffset(),focusOffset:p.getFocusOffset(),isBackward:!1})}else if(u){var h=a(t,e,l,i,u,!1,!0);l=l.merge({anchorOffset:h.getStartOffset(),isBackward:!1})}else if(c){var d=a(t,r,l,i,c,!1,!1);l=l.merge({focusOffset:d.getEndOffset(),isBackward:!1})}return l}},81124:(t,e,r)=>{"use strict";var n=r(45228);function i(){return i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i.apply(this,arguments)}var o=r(55203),a=r(3885),s=r(96540),u=r(93529),c=r(2935),l=r(68307),f=r(55822),p=r(98003),h=r(78527),d=r(97392),v=r(41401),g=r(90646),y=r(55291),m=r(56408),_=function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e},b=function(t){var e,r;function DraftEditorBlock(){for(var e,r,n,i,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return e=t.call.apply(t,[this].concat(a))||this,r=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e),i=void 0,(n="_node")in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,e}r=t,(e=DraftEditorBlock).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var n=DraftEditorBlock.prototype;return n.shouldComponentUpdate=function(t){return this.props.block!==t.block||this.props.tree!==t.tree||this.props.direction!==t.direction||_(t.selection,t.block.getKey())&&t.forceSelection},n.componentDidMount=function(){if(!this.props.preventScroll){var t=this.props.selection,e=t.getEndKey();if(t.getHasFocus()&&e===this.props.block.getKey()){var r=this._node;if(null!=r){var n,i=c.getScrollParent(r),o=d(i);if(i===window){var a=h(r);(n=a.y+a.height-v().height)>0&&window.scrollTo(o.x,o.y+n+10)}else{y(r)||g(!1),(n=r.offsetHeight+r.offsetTop-(i.offsetTop+i.offsetHeight+o.y))>0&&u.setTop(i,u.getTop(i)+n+10)}}}}},n._renderChildren=function(){var t=this,e=this.props.block,r=e.getKey(),n=e.getText(),u=this.props.tree.size-1,c=_(this.props.selection,r);return this.props.tree.map((function(p,h){var d=p.get("leaves");if(0===d.size)return null;var v=d.size-1,g=d.map((function(i,l){var f=a.encode(r,h,l),p=i.get("start"),d=i.get("end");return s.createElement(o,{key:f,offsetKey:f,block:e,start:p,selection:c?t.props.selection:null,forceSelection:t.props.forceSelection,text:n.slice(p,d),styleSet:e.getInlineStyleAt(p),customStyleMap:t.props.customStyleMap,customStyleFn:t.props.customStyleFn,isLast:h===u&&l===v})})).toArray(),y=p.get("decoratorKey");if(null==y)return g;if(!t.props.decorator)return g;var _=m(t.props.decorator),b=_.getComponentForKey(y);if(!b)return g;var S=_.getPropsForKey(y),w=a.encode(r,h,0),x=d.first().get("start"),E=d.last().get("end"),M=n.slice(x,E),O=e.getEntityAt(p.get("start")),k=f.getHTMLDirIfDifferent(l.getDirection(M),t.props.direction),C={contentState:t.props.contentState,decoratedText:M,dir:k,start:x,end:E,blockKey:r,entityKey:O,offsetKey:w};return s.createElement(b,i({},S,C,{key:w}),g)})).toArray()},n.render=function(){var t=this,e=this.props,r=e.direction,n=e.offsetKey,i=p({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===r,"public/DraftStyleDefault/rtl":"RTL"===r});return s.createElement("div",{"data-offset-key":n,className:i,ref:function(e){return t._node=e}},this._renderChildren())},DraftEditorBlock}(s.Component);t.exports=b},81746:(t,e)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var t="",e=0;e<arguments.length;e++){var r=arguments[e];r&&(t=a(t,o(r)))}return t}function o(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return i.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var r in t)n.call(t,r)&&t[r]&&(e=a(e,r));return e}function a(t,e){return e?t?t+" "+e:t+e:t}t.exports?(i.default=i,t.exports=i):void 0===(r=function(){return i}.apply(e,[]))||(t.exports=r)}()},83174:(t,e,r)=>{"use strict";var n=r(45852);t.exports=function(t){return t.which===n.RETURN&&(t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Control"))}},83731:t=>{"use strict";var e=Object.prototype.hasOwnProperty;t.exports=function(t,r,n){if(!t)return null;var i={};for(var o in t)e.call(t,o)&&(i[o]=r.call(n,t[o],o,t));return i}},83972:(t,e,r)=>{"use strict";var n=r(20034),i=String,o=TypeError;t.exports=function(t){if(void 0===t||n(t))return t;throw new o(i(t)+" is not an object or undefined")}},84215:(t,e,r)=>{"use strict";var n=r(44576),i=r(82839),o=r(22195),a=function(t){return i.slice(0,t.length)===t};t.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},84379:(t,e,r)=>{"use strict";var n=r(71988),i=r(55203),o=r(3885),a=r(77337),s=r(96540),u=r(98003),c=(a.List,function(t){var e,r;function DraftEditorNode(){return t.apply(this,arguments)||this}return r=t,(e=DraftEditorNode).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,DraftEditorNode.prototype.render=function(){var t=this.props,e=t.block,r=t.contentState,a=t.customStyleFn,c=t.customStyleMap,l=t.decorator,f=t.direction,p=t.forceSelection,h=t.hasSelection,d=t.selection,v=t.tree,g=e.getKey(),y=e.getText(),m=v.size-1,_=this.props.children||v.map((function(t,u){var v=t.get("decoratorKey"),_=t.get("leaves"),b=_.size-1,S=_.map((function(t,r){var n=o.encode(g,u,r),l=t.get("start"),f=t.get("end");return s.createElement(i,{key:n,offsetKey:n,block:e,start:l,selection:h?d:null,forceSelection:p,text:y.slice(l,f),styleSet:e.getInlineStyleAt(l),customStyleMap:c,customStyleFn:a,isLast:v===m&&r===b})})).toArray();return v&&l?s.createElement(n,{block:e,children:S,contentState:r,decorator:l,decoratorKey:v,direction:f,leafSet:t,text:y,key:u}):S})).toArray();return s.createElement("div",{"data-offset-key":o.encode(g,0,0),className:u({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},_)},DraftEditorNode}(s.Component));t.exports=c},85889:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){i(t,e,r[e])}))}return t}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(95748),a=r(23018),s=r(56840),u=r(65224),c=r(49938),l=r(12242),f=r(6991),p=r(47282),h=r(77337),d=r(46059),v=p("draft_tree_data_support"),g=v?u:s,y=h.List,m=h.Repeat,_={insertAtomicBlock:function(t,e,r){var i=t.getCurrentContent(),s=t.getSelection(),u=c.removeRange(i,s,"backward"),p=u.getSelectionAfter(),h=c.splitBlock(u,p),d=h.getSelectionAfter(),_=c.setBlockType(h,d,"atomic"),b=a.create({entity:e}),S={key:f(),type:"atomic",text:r,characterList:y(m(b,r.length))},w={key:f(),type:"unstyled"};v&&(S=n({},S,{nextSibling:w.key}),w=n({},w,{prevSibling:S.key}));var x=[new g(S),new g(w)],E=o.createFromArray(x),M=c.replaceWithFragment(_,d,E),O=M.merge({selectionBefore:s,selectionAfter:M.getSelectionAfter().set("hasFocus",!0)});return l.push(t,O,"insert-fragment")},moveAtomicBlock:function(t,e,r,n){var i,o=t.getCurrentContent(),a=t.getSelection();if("before"===n||"after"===n){var s=o.getBlockForKey("before"===n?r.getStartKey():r.getEndKey());i=d(o,e,s,n)}else{var u=c.removeRange(o,r,"backward"),f=u.getSelectionAfter(),p=u.getBlockForKey(f.getFocusKey());if(0===f.getStartOffset())i=d(u,e,p,"before");else if(f.getEndOffset()===p.getLength())i=d(u,e,p,"after");else{var h=c.splitBlock(u,f),v=h.getSelectionAfter(),g=h.getBlockForKey(v.getFocusKey());i=d(h,e,g,"before")}}var y=i.merge({selectionBefore:a,selectionAfter:i.getSelectionAfter().set("hasFocus",!0)});return l.push(t,y,"move-block")}};t.exports=_},85989:(t,e,r)=>{"use strict";var n=r(50580),i=r(19677),o=r(25377),a=r(90646);function s(t,e){for(var r=1/0,n=1/0,i=-1/0,o=-1/0,a=0;a<t.length;a++){var s=t[a];0!==s.width&&1!==s.width&&(r=Math.min(r,s.top),n=Math.min(n,s.bottom),i=Math.max(i,s.top),o=Math.max(o,s.bottom))}return i<=n&&i-r<e&&o-n<e}function u(t){switch(t.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return t.length;default:return t.childNodes.length}}t.exports=function(t){t.collapsed||a(!1);var e=(t=t.cloneRange()).startContainer;1!==e.nodeType&&(e=e.parentNode);var r=function(t){var e=getComputedStyle(t),r=i(t),n=r.createElement("div");n.style.fontFamily=e.fontFamily,n.style.fontSize=e.fontSize,n.style.fontStyle=e.fontStyle,n.style.fontWeight=e.fontWeight,n.style.lineHeight=e.lineHeight,n.style.position="absolute",n.textContent="M";var o=r.body;o||a(!1),o.appendChild(n);var s=n.getBoundingClientRect();return o.removeChild(n),s.height}(e),c=t.endContainer,l=t.endOffset;for(t.setStart(t.startContainer,0);s(o(t),r)&&(c=t.startContainer,l=t.startOffset,c.parentNode||a(!1),t.setStartBefore(c),1!==c.nodeType||"inline"===getComputedStyle(c).display););for(var f=c,p=l-1;;){for(var h=f.nodeValue,d=p;d>=0;d--)if(!(null!=h&&d>0&&n.isSurrogatePair(h,d-1))){if(t.setStart(f,d),!s(o(t),r))break;c=f,l=d}if(-1===d||0===f.childNodes.length)break;p=u(f=f.childNodes[d])}return t.setStart(c,l),t}},86044:(t,e,r)=>{"use strict";var n=r(23018),i=r(18227),o=r(90646);function a(t,e,r){var a=e.getCharacterList(),s=r>0?a.get(r-1):void 0,u=r<a.count()?a.get(r):void 0,c=s?s.getEntity():void 0,l=u?u.getEntity():void 0;if(l&&l===c&&"MUTABLE"!==t.__get(l).getMutability()){for(var f,p=function(t,e,r){var n;return i(t,(function(t,e){return t.getEntity()===e.getEntity()}),(function(t){return t.getEntity()===e}),(function(t,e){t<=r&&e>=r&&(n={start:t,end:e})})),"object"!=typeof n&&o(!1),n}(a,l,r),h=p.start,d=p.end;h<d;)f=a.get(h),a=a.set(h,n.applyEntity(f,null)),h++;return e.set("characterList",a)}return e}t.exports=function(t,e){var r=t.getBlockMap(),n=t.getEntityMap(),i={},o=e.getStartKey(),s=e.getStartOffset(),u=r.get(o),c=a(n,u,s);c!==u&&(i[o]=c);var l=e.getEndKey(),f=e.getEndOffset(),p=r.get(l);o===l&&(p=c);var h=a(n,p,f);return h!==p&&(i[l]=h),Object.keys(i).length?t.merge({blockMap:r.merge(i),selectionAfter:e}):t.set("selectionAfter",e)}},87141:(t,e,r)=>{"use strict";var n=r(12242);t.exports=function(t,e){t.setMode("composite"),t.update(n.set(t._latestEditorState,{inCompositionMode:!0})),t._onCompositionStart(e)}},87843:(t,e,r)=>{"use strict";function n(t,e){for(var r=t.length,n=0;n<r;++n)if(e(t[n],n))return!0;return!1}function i(t,e){for(var r=t.length,n=0;n<r;++n)if(e(t[n],n))return t[n];return null}function o(t){var e=t;if(void 0===e){if("undefined"==typeof navigator||!navigator)return"";e=navigator.userAgent||""}return e.toLowerCase()}function a(t,e){try{return new RegExp(t,"g").exec(e)}catch(t){return null}}function s(){if("undefined"==typeof navigator||!navigator||!navigator.userAgentData)return!1;var t=navigator.userAgentData,e=t.brands||t.uaList;return!(!e||!e.length)}function u(t){return t.replace(/_/g,".")}function c(t,e){var r=null,i="-1";return n(t,(function(t){var n=a("("+t.test+")((?:\\/|\\s|:)([0-9|\\.|_]+))?",e);return!(!n||t.brand)&&(r=t,i=n[3]||"-1",t.versionAlias?i=t.versionAlias:t.versionTest&&(i=function(t,e){var r=a("("+t+")((?:\\/|\\s|:)([0-9|\\.|_]+))",e);return r?r[3]:""}(t.versionTest.toLowerCase(),e)||i),i=u(i),!0)})),{preset:r,version:i}}function l(t,e){var r={brand:"",version:"-1"};return n(t,(function(t){var n=f(e,t);return!!n&&(r.brand=t.id,r.version=t.versionAlias||n.version,"-1"!==r.version)})),r}function f(t,e){return i(t,(function(t){var r=t.brand;return a(""+e.test,r.toLowerCase())}))}r.d(e,{default:()=>xs});var p=[{test:"phantomjs",id:"phantomjs"},{test:"whale",id:"whale"},{test:"edgios|edge|edg",id:"edge"},{test:"msie|trident|windows phone",id:"ie",versionTest:"iemobile|msie|rv"},{test:"miuibrowser",id:"miui browser"},{test:"samsungbrowser",id:"samsung internet"},{test:"samsung",id:"samsung internet",versionTest:"version"},{test:"chrome|crios",id:"chrome"},{test:"firefox|fxios",id:"firefox"},{test:"android",id:"android browser",versionTest:"version"},{test:"safari|iphone|ipad|ipod",id:"safari",versionTest:"version"}],h=[{test:"(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)",id:"chrome",versionTest:"chrome"},{test:"chromium",id:"chrome"},{test:"whale",id:"chrome",versionAlias:"-1",brand:!0}],d=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],v=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],g=[{test:"windows phone",id:"windows phone"},{test:"windows 2000",id:"window",versionAlias:"5.0"},{test:"windows nt",id:"window"},{test:"win32|windows",id:"window"},{test:"iphone|ipad|ipod",id:"ios",versionTest:"iphone os|cpu os"},{test:"macos|macintel|mac os x",id:"mac"},{test:"android|linux armv81",id:"android"},{test:"tizen",id:"tizen"},{test:"webos|web0s",id:"webos"}];function y(t){return!!c(v,t).preset}function m(t){var e=navigator.userAgentData,r=(e.uaList||e.brands).slice(),a=t&&t.fullVersionList,s=e.mobile||!1,c=r[0],m=(t&&t.platform||e.platform||navigator.platform).toLowerCase(),_={name:c.brand,version:c.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!l(v,r).brand||y(o())},b={name:"unknown",version:"-1",majorVersion:-1};_.webkit=!_.chromium&&n(d,(function(t){return f(r,t)}));var S=l(h,r);if(_.chromium=!!S.brand,_.chromiumVersion=S.version,!_.chromium){var w=l(d,r);_.webkit=!!w.brand,_.webkitVersion=w.version}var x=i(g,(function(t){return new RegExp(""+t.test,"g").exec(m)}));if(b.name=x?x.id:"",t&&(b.version=t.platformVersion),a&&a.length){var E=l(p,a);_.name=E.brand||_.name,_.version=E.version||_.version}else{var M=l(p,r);_.name=M.brand||_.name,_.version=M.brand&&t?t.uaFullVersion:M.version}return _.webkit&&(b.name=s?"ios":"mac"),"ios"===b.name&&_.webview&&(_.version="-1"),b.version=u(b.version),_.version=u(_.version),b.majorVersion=parseInt(b.version,10),_.majorVersion=parseInt(_.version,10),{browser:_,os:b,isMobile:s,isHints:!0}}function _(t){return void 0===t&&s()?m():function(t){var e=o(t),r=!!/mobi/g.exec(e),n={name:"unknown",version:"-1",majorVersion:-1,webview:y(e),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},i={name:"unknown",version:"-1",majorVersion:-1},a=c(p,e),s=a.preset,u=a.version,l=c(g,e),f=l.preset,v=l.version,m=c(h,e);if(n.chromium=!!m.preset,n.chromiumVersion=m.version,!n.chromium){var _=c(d,e);n.webkit=!!_.preset,n.webkitVersion=_.version}return f&&(i.name=f.id,i.version=v,i.majorVersion=parseInt(v,10)),s&&(n.name=s.id,n.version=u,n.webview&&"ios"===i.name&&"safari"!==n.name&&(n.webview=!1)),n.majorVersion=parseInt(n.version,10),{browser:n,os:i,isMobile:r,isHints:!1}}(t)}const b=_;function S(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.map((function(e){return e.split(" ").map((function(e){return e?""+t+e:""})).join(" ")})).join(" ")}function w(t,e){return function(r){r&&(t[e]=r)}}function x(t,e,r){return function(n){n&&(t[e][r]=n)}}var E="undefined",M=typeof window!==E,O=typeof document!==E&&document,k=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],C=1e-7,D={cm:function(t){return 96*t/2.54},mm:function(t){return 96*t/254},in:function(t){return 96*t},pt:function(t){return 96*t/72},pc:function(t){return 96*t/6},"%":function(t,e){return t*e/100},vw:function(t,e){return void 0===e&&(e=window.innerWidth),t/100*e},vh:function(t,e){return void 0===e&&(e=window.innerHeight),t/100*e},vmax:function(t,e){return void 0===e&&(e=Math.max(window.innerWidth,window.innerHeight)),t/100*e},vmin:function(t,e){return void 0===e&&(e=Math.min(window.innerWidth,window.innerHeight)),t/100*e}};function I(t,e,r,n){return(t*n+e*r)/(r+n)}function A(t){return typeof t===E}function R(t){return t&&"object"==typeof t}function T(t){return Array.isArray(t)}function z(t){return"string"==typeof t}function B(t){return"number"==typeof t}function q(t){return"function"==typeof t}function P(t,e,r,n,i){return j(t,e,r)?r:function(t,e,r,n,i){for(var o,a=function(r){var a=e[r].trim();if(a===t.close&&!j(t,e,r))return{value:r};var s=r,u=W(i,(function(t){return t.open===a}));if(u&&(s=P(u,e,r,n,i)),-1===s)return o=r,"break";o=r=s},s=r;s<n;++s){var u=a(s);if(s=o,"object"==typeof u)return u.value;if("break"===u)break}return-1}(t,e,r+1,n,i)}function j(t,e,r){if(!t.ignore)return null;var n=e.slice(Math.max(r-3,0),r+3).join("");return new RegExp(t.ignore).exec(n)}function L(t,e){var r=z(e)?{separator:e}:e,n=r.separator,i=void 0===n?",":n,o=r.isSeparateFirst,a=r.isSeparateOnlyOpenClose,s=r.isSeparateOpenClose,u=void 0===s?a:s,c=r.openCloseCharacters,l=void 0===c?k:c,f=l.map((function(t){var e=t.open,r=t.close;return e===r?e:e+"|"+r})).join("|"),p=new RegExp("(\\s*"+i+"\\s*|"+f+"|\\s+)","g"),h=t.split(p).filter((function(t){return t&&"undefined"!==t})),d=h.length,v=[],g=[];function y(){return!!g.length&&(v.push(g.join("")),g=[],!0)}for(var m,_=function(e){var r=h[e].trim(),n=e,s=W(l,(function(t){return t.open===r})),c=W(l,(function(t){return t.close===r}));if(s){if(-1!==(n=P(s,h,e,d,l))&&u)return y()&&o?(m=e,"break"):(v.push(h.slice(e,n+1).join("")),e=n,o?(m=e,"break"):(m=e,"continue"))}else{if(c&&!j(c,h,e)){var f=function __spreadArrays(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var n=Array(t),i=0;for(e=0;e<r;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}(l);return f.splice(l.indexOf(c),1),{value:L(t,{separator:i,isSeparateFirst:o,isSeparateOnlyOpenClose:a,isSeparateOpenClose:u,openCloseCharacters:f})}}if(function(t,e){return(""===e||" "==e)&&(""===t||" "==t)||t===e}(r,i)&&!a)return y(),o?(m=e,"break"):(m=e,"continue")}-1===n&&(n=d-1),g.push(h.slice(e,n+1).join("")),m=e=n},b=0;b<d;++b){var S=_(b);if(b=m,"object"==typeof S)return S.value;if("break"===S)break}return g.length&&v.push(g.join("")),v}function K(t){return L(t,"")}function N(t){return L(t,",")}function F(t){var e=/([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(t);return!e||e.length<4?{}:{prefix:e[1],value:e[2],suffix:e[3]}}function U(t){var e=/^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(t);if(!e)return{prefix:"",unit:"",value:NaN};var r=e[1],n=e[2];return{prefix:r,unit:e[3],value:parseFloat(n)}}function G(){return Date.now?Date.now():(new Date).getTime()}function H(t,e,r){void 0===r&&(r=-1);for(var n=t.length,i=0;i<n;++i)if(e(t[i],i,t))return i;return r}function W(t,e,r){var n=H(t,e);return n>-1?t[n]:r}var V=function(){var t=G(),e=M&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame);return e?e.bind(window):function(e){var r=G();return setTimeout((function(){e(r-t)}),1e3/60)}}(),X=function(){var t=M&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame);return t?t.bind(window):function(t){clearTimeout(t)}}();function Y(t){return Object.keys(t)}function $(t,e){var r=U(t),n=r.value,i=r.unit;if(R(e)){var o=e[i];if(o){if(q(o))return o(n);if(D[i])return D[i](n,o)}}else if("%"===i)return n*e/100;return D[i]?D[i](n):n}function J(t,e,r){return Math.max(e,Math.min(t,r))}function Z(t,e,r,n){return void 0===n&&(n=t[0]/t[1]),[[it(e[0],C),it(e[0]/n,C)],[it(e[1]*n,C),it(e[1],C)]].filter((function(t){return t.every((function(t,n){var i=e[n],o=it(i,C);return r?t<=i||t<=o:t>=i||t>=o}))}))[0]||t}function Q(t,e,r,n){if(!n)return t.map((function(t,n){return J(t,e[n],r[n])}));var i=t[0],o=t[1],a=!0===n?i/o:n,s=Z(t,e,!1,a),u=s[0],c=s[1],l=Z(t,r,!0,a),f=l[0],p=l[1];return i<u||o<c?(i=u,o=c):(i>f||o>p)&&(i=f,o=p),[i,o]}function tt(t){for(var e=t.length,r=0,n=e-1;n>=0;--n)r+=t[n];return e?r/e:0}function et(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=Math.atan2(n,r);return i>=0?i:i+2*Math.PI}function rt(t){var e=function(t){return[0,1].map((function(e){return tt(t.map((function(t){return t[e]})))}))}(t),r=et(e,t[0]),n=et(e,t[1]);return r<n&&n-r<Math.PI||r>n&&n-r<-Math.PI?1:-1}function nt(t,e){return Math.sqrt(Math.pow((e?e[0]:0)-t[0],2)+Math.pow((e?e[1]:0)-t[1],2))}function it(t,e){if(!e)return t;var r=1/e;return Math.round(t/e)/r}function ot(t,e){return t.forEach((function(r,n){t[n]=it(t[n],e)})),t}function at(t,e){return t.classList?t.classList.contains(e):!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function st(t,e){t.classList?t.classList.add(e):t.className+=" "+e}function ut(t,e){if(t.classList)t.classList.remove(e);else{var r=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(r," ")}}function ct(t,e,r,n){t.addEventListener(e,r,n)}function lt(t,e,r,n){t.removeEventListener(e,r,n)}function ft(t){return(null==t?void 0:t.ownerDocument)||O}function pt(t){return ft(t).documentElement}function ht(t){return ft(t).body}function dt(t){var e;return(null===(e=null==t?void 0:t.ownerDocument)||void 0===e?void 0:e.defaultView)||window}function vt(t){return t&&"postMessage"in t&&"blur"in t&&"self"in t}function gt(t){return R(t)&&t.nodeName&&t.nodeType&&"ownerDocument"in t}function yt(t,e,r,n,i,o){for(var a=0;a<i;++a){var s=r+a*i,u=n+a*i;t[s]+=t[u]*o,e[s]+=e[u]*o}}function mt(t,e,r,n,i){for(var o=0;o<i;++o){var a=r+o*i,s=n+o*i,u=t[a],c=e[a];t[a]=t[s],t[s]=u,e[a]=e[s],e[s]=c}}function _t(t,e,r,n,i){for(var o=0;o<n;++o){var a=r+o*n;t[a]/=i,e[a]/=i}}function bt(t,e,r){void 0===r&&(r=Math.sqrt(t.length));for(var n=t.slice(),i=0;i<r;++i)n[i*r+e-1]=0,n[(e-1)*r+i]=0;return n[(e-1)*(r+1)]=1,n}function St(t,e){void 0===e&&(e=Math.sqrt(t.length));for(var r=t.slice(),n=Lt(e),i=0;i<e;++i){var o=e*i+i;if(!it(r[o],C))for(var a=i+1;a<e;++a)if(r[e*i+a]){mt(r,n,i,a,e);break}if(!it(r[o],C))return[];_t(r,n,i,e,r[o]);for(a=0;a<e;++a){var s=a,u=r[a+i*e];it(u,C)&&i!==a&&yt(r,n,s,i,e,-u)}}return n}function wt(t,e){void 0===e&&(e=Math.sqrt(t.length));for(var r=[],n=t[e*e-1],i=0;i<e-1;++i)r[i]=t[e*(e-1)+i]/n;return r[e-1]=0,r}function xt(t,e){for(var r=t.slice(),n=t.length;n<e-1;++n)r[n]=0;return r[e-1]=1,r}function Et(t,e,r){if(void 0===e&&(e=Math.sqrt(t.length)),e===r)return t;for(var n=Lt(r),i=Math.min(e,r),o=0;o<i-1;++o){for(var a=0;a<i-1;++a)n[o*r+a]=t[o*e+a];n[(o+1)*r-1]=t[(o+1)*e-1],n[(r-1)*r+o]=t[(e-1)*e+o]}return n[r*r-1]=t[e*e-1],n}function Mt(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=Lt(t);return e.forEach((function(e){n=Ot(n,e,t)})),n}function Ot(t,e,r){void 0===r&&(r=Math.sqrt(t.length));var n=[],i=t.length/r,o=e.length/i;if(!i)return e;if(!o)return t;for(var a=0;a<r;++a)for(var s=0;s<o;++s){n[s*r+a]=0;for(var u=0;u<i;++u)n[s*r+a]+=t[u*r+a]*e[s*i+u]}return n}function kt(t,e){for(var r=Math.min(t.length,e.length),n=t.slice(),i=0;i<r;++i)n[i]=n[i]+e[i];return n}function Ct(t,e){for(var r=Math.min(t.length,e.length),n=t.slice(),i=0;i<r;++i)n[i]=n[i]-e[i];return n}function Dt(t,e){return void 0===e&&(e=9===t.length),e?[t[0],t[1],t[3],t[4],t[6],t[7]]:t}function It(t,e,r){void 0===r&&(r=e.length);var n=Ot(t,e,r),i=n[r-1];return n.map((function(t){return t/i}))}function At(t,e){return Ot(t,[1,0,0,0,0,Math.cos(e),Math.sin(e),0,0,-Math.sin(e),Math.cos(e),0,0,0,0,1],4)}function Rt(t,e){return Ot(t,[Math.cos(e),0,-Math.sin(e),0,0,1,0,0,Math.sin(e),0,Math.cos(e),0,0,0,0,1],4)}function Tt(t,e){return Ot(t,jt(e,4))}function zt(t,e){var r=e[0],n=void 0===r?1:r,i=e[1],o=void 0===i?1:i,a=e[2];return Ot(t,[n,0,0,0,0,o,0,0,0,0,void 0===a?1:a,0,0,0,0,1],4)}function Bt(t,e){return It(jt(e,3),xt(t,3))}function qt(t,e){var r=e[0],n=void 0===r?0:r,i=e[1],o=void 0===i?0:i,a=e[2];return Ot(t,[1,0,0,0,0,1,0,0,0,0,1,0,n,o,void 0===a?0:a,1],4)}function Pt(t,e){return Ot(t,e,4)}function jt(t,e){var r=Math.cos(t),n=Math.sin(t),i=Lt(e);return i[0]=r,i[1]=n,i[e]=-n,i[e+1]=r,i}function Lt(t){for(var e=t*t,r=[],n=0;n<e;++n)r[n]=n%(t+1)?0:1;return r}function Kt(t,e){for(var r=Lt(e),n=Math.min(t.length,e-1),i=0;i<n;++i)r[(e+1)*i]=t[i];return r}function Nt(t,e){for(var r=Lt(e),n=Math.min(t.length,e-1),i=0;i<n;++i)r[e*(e-1)+i]=t[i];return r}function Ft(t,e,r,n,i,o,a,s){var u=t[0],c=t[1],l=e[0],f=e[1],p=r[0],h=r[1],d=n[0],v=n[1],g=i[0],y=i[1],m=o[0],_=o[1],b=a[0],S=a[1],w=s[0],x=s[1],E=St([u,0,l,0,p,0,d,0,c,0,f,0,h,0,v,0,1,0,1,0,1,0,1,0,0,u,0,l,0,p,0,d,0,c,0,f,0,h,0,v,0,1,0,1,0,1,0,1,-g*u,-y*u,-m*l,-_*l,-b*p,-S*p,-w*d,-x*d,-g*c,-y*c,-m*f,-_*f,-b*h,-S*h,-w*v,-x*v],8);if(!E.length)return[];var M=Ot(E,[g,y,m,_,b,S,w,x],8);return M[8]=1,Et(function(t,e){void 0===e&&(e=Math.sqrt(t.length));for(var r=[],n=0;n<e;++n)for(var i=0;i<e;++i)r[i*e+n]=t[e*n+i];return r}(M),3,4)}var __assign=function(){return __assign=Object.assign||function __assign(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},__assign.apply(this,arguments)};function Ut(t,e){return void 0===e&&(e=0),Gt(Ht(t,e))}function Gt(t){var e=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach((function(t){var r=t.matrixFunction,n=t.functionValue;r&&(e=r(e,n))})),e}function Ht(t,e){return void 0===e&&(e=0),(T(t)?t:K(t)).map((function(t){var r=F(t),n=r.prefix,i=r.value,o=null,a=n,s="";if("translate"===n||"translateX"===n||"translate3d"===n){var u=R(e)?__assign(__assign({},e),{"o%":e["%"]}):{"%":e,"o%":e},c=N(i).map((function(t,r){return u["%"]=0===r&&"x%"in u?e["x%"]:1===r&&"y%"in u?e["y%"]:e["o%"],$(t,u)})),l=c[0],f=c[1],p=void 0===f?0:f,h=c[2];o=qt,s=[l,p,void 0===h?0:h]}else if("translateY"===n){o=qt,s=[0,p=$(i,R(e)?__assign({"%":e["y%"]},e):{"%":e}),0]}else if("translateZ"===n){o=qt,s=[0,0,parseFloat(i)]}else if("scale"===n||"scale3d"===n){var d=N(i).map((function(t){return parseFloat(t)})),v=d[0],g=d[1],y=void 0===g?v:g,m=d[2];o=zt,s=[v,y,void 0===m?1:m]}else if("scaleX"===n){o=zt,s=[v=parseFloat(i),1,1]}else if("scaleY"===n){o=zt,s=[1,y=parseFloat(i),1]}else if("scaleZ"===n){o=zt,s=[1,1,parseFloat(i)]}else if("rotate"===n||"rotateZ"===n||"rotateX"===n||"rotateY"===n){var _=U(i),b=_.unit,S=_.value;"rotate"===n||"rotateZ"===n?(a="rotateZ",o=Tt):"rotateX"===n?o=At:"rotateY"===n&&(o=Rt),s="rad"===b?S:S*Math.PI/180}else if("matrix3d"===n)o=Pt,s=N(i).map((function(t){return parseFloat(t)}));else if("matrix"===n){var w=N(i).map((function(t){return parseFloat(t)}));o=Pt,s=[w[0],w[1],0,0,w[2],w[3],0,0,0,0,1,0,w[4],w[5],0,1]}else a="";return{name:n,functionName:a,value:i,matrixFunction:o,functionValue:s}}))}var Wt=function(){function PolyMap(){this.keys=[],this.values=[]}var t=PolyMap.prototype;return t.get=function(t){return this.values[this.keys.indexOf(t)]},t.set=function(t,e){var r=this.keys,n=this.values,i=r.indexOf(t),o=-1===i?r.length:i;r[o]=t,n[o]=e},PolyMap}(),Vt=function(){function HashMap(){this.object={}}var t=HashMap.prototype;return t.get=function(t){return this.object[t]},t.set=function(t,e){this.object[t]=e},HashMap}(),Xt="function"==typeof Map,Yt=function(){function Link(){}var t=Link.prototype;return t.connect=function(t,e){this.prev=t,this.next=e,t&&(t.next=this),e&&(e.prev=this)},t.disconnect=function(){var t=this.prev,e=this.next;t&&(t.next=e),e&&(e.prev=t)},t.getIndex=function(){for(var t=this,e=-1;t;)t=t.prev,++e;return e},Link}();var $t=function(){function Result(t,e,r,n,i,o,a,s){this.prevList=t,this.list=e,this.added=r,this.removed=n,this.changed=i,this.maintained=o,this.changedBeforeAdded=a,this.fixed=s}var t=Result.prototype;return Object.defineProperty(t,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(t,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),t.caculateOrdered=function(){var t=function(t,e){var r=[],n=[];return t.forEach((function(t){var e=t[0],i=t[1],o=new Yt;r[e]=o,n[i]=o})),r.forEach((function(t,e){t.connect(r[e-1])})),t.filter((function(t,r){return!e[r]})).map((function(t,e){var i=t[0],o=t[1];if(i===o)return[0,0];var a=r[i],s=n[o-1],u=a.getIndex();return a.disconnect(),s?a.connect(s,s.next):a.connect(void 0,r[0]),[u,a.getIndex()]}))}(this.changedBeforeAdded,this.fixed),e=this.changed,r=[];this.cacheOrdered=t.filter((function(t,n){var i=t[0],o=t[1],a=e[n],s=a[0],u=a[1];if(i!==o)return r.push([s,u]),!0})),this.cachePureChanged=r},Result}();function Jt(t,e,r){var n=Xt?Map:r?Vt:Wt,i=r||function(t){return t},o=[],a=[],s=[],u=t.map(i),c=e.map(i),l=new n,f=new n,p=[],h=[],d={},v=[],g=0,y=0;return u.forEach((function(t,e){l.set(t,e)})),c.forEach((function(t,e){f.set(t,e)})),u.forEach((function(t,e){var r=f.get(t);void 0===r?(++y,a.push(e)):d[r]=y})),c.forEach((function(t,e){var r=l.get(t);void 0===r?(o.push(e),++g):(s.push([r,e]),y=d[e]||0,p.push([r-y,e-g]),h.push(e===r),r!==e&&v.push([r,e]))})),a.reverse(),new $t(t,e,o,a,v,s,p,h)}var Zt=function(){function ListDiffer(t,e){void 0===t&&(t=[]),this.findKeyCallback=e,this.list=[].slice.call(t)}return ListDiffer.prototype.update=function(t){var e=[].slice.call(t),r=Jt(this.list,e,this.findKeyCallback);return this.list=e,r},ListDiffer}();var Qt=function(t,e){return Qt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},Qt(t,e)};var te,ee="function"==typeof Map?void 0:(te=0,function(t){return t.__DIFF_KEY__||(t.__DIFF_KEY__=++te)});const re=function(t){function ChildrenDiffer(e){return void 0===e&&(e=[]),t.call(this,e,ee)||this}return function __extends(t,e){function __(){this.constructor=t}Qt(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}(ChildrenDiffer,t),ChildrenDiffer}(Zt);var ne=function(){return ne=Object.assign||function __assign(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},ne.apply(this,arguments)};const ie=function(){function EventEmitter(){this._events={}}var t=EventEmitter.prototype;return t.on=function(t,e){if(R(t))for(var r in t)this.on(r,t[r]);else this._addEvent(t,e,{});return this},t.off=function(t,e){if(t)if(R(t))for(var r in t)this.off(r);else if(e){var n=this._events[t];if(n){var i=H(n,(function(t){return t.listener===e}));i>-1&&n.splice(i,1)}}else this._events[t]=[];else this._events={};return this},t.once=function(t,e){var r=this;return e&&this._addEvent(t,e,{once:!0}),new Promise((function(e){r._addEvent(t,e,{once:!0})}))},t.emit=function(t,e){var r=this;void 0===e&&(e={});var n=this._events[t];if(!t||!n)return!0;var i=!1;return e.eventType=t,e.stop=function(){i=!0},e.currentTarget=this,function(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var n=Array(t),i=0;for(e=0;e<r;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}(n).forEach((function(n){n.listener(e),n.once&&r.off(t,n.listener)})),!i},t.trigger=function(t,e){return void 0===e&&(e={}),this.emit(t,e)},t._addEvent=function(t,e,r){var n=this._events;n[t]=n[t]||[],n[t].push(ne({listener:e},r))},EventEmitter}();var oe=function(t,e){return oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},oe(t,e)};var ae=function(){return ae=Object.assign||function __assign(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},ae.apply(this,arguments)};function se(t){var e=t.container;return e===document.body?[e.scrollLeft||document.documentElement.scrollLeft,e.scrollTop||document.documentElement.scrollTop]:[e.scrollLeft,e.scrollTop]}function ue(t,e){return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}function ce(t){return t?z(t)?document.querySelector(t):q(t)?t():t instanceof Element?t:"current"in t?t.current:"value"in t?t.value:void 0:null}const le=function(t){function DragScroll(){var e=null!==t&&t.apply(this,arguments)||this;return e._startRect=null,e._startPos=[],e._prevTime=0,e._timer=0,e._prevScrollPos=[0,0],e._isWait=!1,e._flag=!1,e._currentOptions=null,e._lock=!1,e._unregister=null,e._onScroll=function(){var t=e._currentOptions;!e._lock&&t&&e.emit("scrollDrag",{next:function(r){e.checkScroll({container:t.container,inputEvent:r})}})},e}!function(t,e){function __(){this.constructor=t}oe(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}(DragScroll,t);var e=DragScroll.prototype;return e.dragStart=function(t,e){var r=ce(e.container);if(r){var n=0,i=0,o=0,a=0;if(r===document.body)o=window.innerWidth,a=window.innerHeight;else{var s=r.getBoundingClientRect();n=s.top,i=s.left,o=s.width,a=s.height}this._flag=!0,this._startPos=[t.clientX,t.clientY],this._startRect={top:n,left:i,width:o,height:a},this._prevScrollPos=this._getScrollPosition([0,0],e),this._currentOptions=e,this._registerScrollEvent(e)}else this._flag=!1},e.drag=function(t,e){if(clearTimeout(this._timer),this._flag){var r=t.clientX,n=t.clientY,i=e.threshold,o=void 0===i?0:i,a=this._startRect,s=this._startPos;this._currentOptions=e;var u=[0,0];return a.top>n-o?(s[1]>a.top||n<s[1])&&(u[1]=-1):a.top+a.height<n+o&&(s[1]<a.top+a.height||n>s[1])&&(u[1]=1),a.left>r-o?(s[0]>a.left||r<s[0])&&(u[0]=-1):a.left+a.width<r+o&&(s[0]<a.left+a.width||r>s[0])&&(u[0]=1),!(!u[0]&&!u[1])&&this._continueDrag(ae(ae({},e),{direction:u,inputEvent:t,isDrag:!0}))}},e.checkScroll=function(t){var e=this;if(this._isWait)return!1;var r=t.prevScrollPos,n=void 0===r?this._prevScrollPos:r,i=t.direction,o=t.throttleTime,a=void 0===o?0:o,s=t.inputEvent,u=t.isDrag,c=this._getScrollPosition(i||[0,0],t),l=c[0]-n[0],f=c[1]-n[1],p=i||[l?Math.abs(l)/l:0,f?Math.abs(f)/f:0];return this._prevScrollPos=c,this._lock=!1,!(!l&&!f)&&(this.emit("move",{offsetX:p[0]?l:0,offsetY:p[1]?f:0,inputEvent:s}),a&&u&&(clearTimeout(this._timer),this._timer=window.setTimeout((function(){e._continueDrag(t)}),a)),!0)},e.dragEnd=function(){this._flag=!1,this._lock=!1,clearTimeout(this._timer),this._unregisterScrollEvent()},e._getScrollPosition=function(t,e){var r=e.container,n=e.getScrollPosition;return(void 0===n?se:n)({container:ce(r),direction:t})},e._continueDrag=function(t){var e,r=this,n=t.container,i=t.direction,o=t.throttleTime,a=t.useScroll,s=t.isDrag,u=t.inputEvent;if(!(!this._flag||s&&this._isWait)){var c=G(),l=Math.max(o+this._prevTime-c,0);if(l>0)return clearTimeout(this._timer),this._timer=window.setTimeout((function(){r._continueDrag(t)}),l),!1;this._prevTime=c;var f=this._getScrollPosition(i,t);this._prevScrollPos=f,s&&(this._isWait=!0),a||(this._lock=!0);var p={container:ce(n),direction:i,inputEvent:u};return null===(e=t.requestScroll)||void 0===e||e.call(t,p),this.emit("scroll",p),this._isWait=!1,a||this.checkScroll(ae(ae({},t),{prevScrollPos:f,direction:i,inputEvent:u}))}},e._registerScrollEvent=function(t){this._unregisterScrollEvent();var e=t.checkScrollEvent;if(e){var r=!0===e?ue:e,n=ce(t.container);!0!==e||n!==document.body&&n!==document.documentElement?this._unregister=r(n,this._onScroll):this._unregister=ue(window,this._onScroll)}},e._unregisterScrollEvent=function(){var t;null===(t=this._unregister)||void 0===t||t.call(this),this._unregister=null},DragScroll}(ie);function fe(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var n=Array(t),i=0;for(e=0;e<r;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}function pe(t){return it(t,C)}function he(t){return t.length<3?0:Math.abs(function(t){for(var e=0,r=t.length-1;r>=0;--r)e+=t[r];return e}(t.map((function(e,r){var n=t[r+1]||t[0];return e[0]*n[1]-n[0]*e[1]}))))/2}function de(t,e){var r=e.width,n=e.height,i=e.left,o=e.top,a=ve(t),s=a.minX,u=a.minY,c=a.maxX,l=a.maxY,f=r/(c-s),p=n/(l-u);return t.map((function(t){return[i+(t[0]-s)*f,o+(t[1]-u)*p]}))}function ve(t){var e=t.map((function(t){return t[0]})),r=t.map((function(t){return t[1]}));return{minX:Math.min.apply(Math,e),minY:Math.min.apply(Math,r),maxX:Math.max.apply(Math,e),maxY:Math.max.apply(Math,r)}}function ge(t,e,r){var n=t[0],i=t[1],o=ve(e),a=o.minX,s=o.maxX,u=[[a,i],[s,i]],c=ye(u[0],u[1]),l=be(e),f=[];if(l.forEach((function(e){var r,n=ye(e[0],e[1]),o=e[0];(r=n,c.every((function(t,e){return 0===pe(t-r[e])})))?f.push({pos:t,line:e,type:"line"}):_e(me(c,n),[u,e]).forEach((function(t){e.some((function(e){return n=t,!pe((r=e)[0]-n[0])&&!pe(r[1]-n[1]);var r,n}))?f.push({pos:t,line:e,type:"point"}):0!==pe(o[1]-i)&&f.push({pos:t,line:e,type:"intersection"})}))})),!r&&W(f,(function(t){return t[0]===n})))return!0;var p=0,h={};return f.forEach((function(t){var e=t.pos,r=t.type,o=t.line;if(!(e[0]>n))if("intersection"===r)++p;else{if("line"===r)return;if("point"===r){var a=W(o,(function(t){return t[1]!==i})),s=h[e[0]],u=a[1]>i?1:-1;s?s!==u&&++p:h[e[0]]=u}}})),p%2==1}function ye(t,e){var r=t[0],n=t[1],i=e[0]-r,o=e[1]-n;Math.abs(i)<C&&(i=0),Math.abs(o)<C&&(o=0);var a=0,s=0,u=0;return i?o?(s=1,u=-(a=-o/i)*r-n):(s=1,u=-n):o&&(a=-1,u=r),[a,s,u]}function me(t,e){var r=t[0],n=t[1],i=t[2],o=e[0],a=e[1],s=e[2],u=0===r&&0===o,c=0===n&&0===a,l=[];if(u&&c)return[];if(u){var f=-i/n;return f!==-s/a?[]:[[-1/0,f],[1/0,f]]}if(c){var p=-i/r;return p!==-s/o?[]:[[p,-1/0],[p,1/0]]}if(0===r)l=[[h=-(a*(d=-i/n)+s)/o,d]];else if(0===o){l=[[h=-(n*(d=-s/a)+i)/r,d]]}else if(0===n){l=[[h=-i/r,d=-(o*h+s)/a]]}else if(0===a){l=[[h=-s/o,d=-(r*h+i)/n]]}else{var h,d;l=[[h=(n*s-a*i)/(a*r-n*o),d=-(r*h+i)/n]]}return l.map((function(t){return[t[0],t[1]]}))}function _e(t,e){var r=e.map((function(t){return[0,1].map((function(e){return[Math.min(t[0][e],t[1][e]),Math.max(t[0][e],t[1][e])]}))})),n=[];if(2===t.length){var i=t[0],o=i[0],a=i[1];if(pe(o-t[1][0])){if(!pe(a-t[1][1])){var s=Math.max.apply(Math,r.map((function(t){return t[0][0]}))),u=Math.min.apply(Math,r.map((function(t){return t[0][1]})));if(pe(s-u)>0)return[];n=[[s,a],[u,a]]}}else{var c=Math.max.apply(Math,r.map((function(t){return t[1][0]}))),l=Math.min.apply(Math,r.map((function(t){return t[1][1]})));if(pe(c-l)>0)return[];n=[[o,c],[o,l]]}}return n.length||(n=t.filter((function(t){var e=t[0],n=t[1];return r.every((function(t){return 0<=pe(e-t[0][0])&&0<=pe(t[0][1]-e)&&0<=pe(n-t[1][0])&&0<=pe(t[1][1]-n)}))}))),n.map((function(t){return[pe(t[0]),pe(t[1])]}))}function be(t){return fe(t.slice(1),[t[0]]).map((function(e,r){return[t[r],e]}))}function Se(t,e){var r=t.slice(),n=e.slice();-1===rt(r)&&r.reverse(),-1===rt(n)&&n.reverse();var i=be(r),o=be(n),a=i.map((function(t){return ye(t[0],t[1])})),s=o.map((function(t){return ye(t[0],t[1])})),u=[];a.forEach((function(t,e){var r=i[e],a=[];s.forEach((function(n,i){var s=_e(me(t,n),[r,o[i]]);a.push.apply(a,s.map((function(t){return{index1:e,index2:i,pos:t,type:"intersection"}})))})),a.sort((function(t,e){return nt(r[0],t.pos)-nt(r[0],e.pos)})),u.push.apply(u,a),ge(r[1],n)&&u.push({index1:e,index2:-1,pos:r[1],type:"inside"})})),o.forEach((function(t,e){if(ge(t[1],r)){var n=!1,i=H(u,(function(t){return t.index2===e?(n=!0,!1):!!n}));-1===i&&(n=!1,i=H(u,(function(t){var r=t.index1,i=t.index2;return-1===r&&i+1===e?(n=!0,!1):!!n}))),-1===i?u.push({index1:-1,index2:e,pos:t[1],type:"inside"}):u.splice(i,0,{index1:-1,index2:e,pos:t[1],type:"inside"})}}));var c={};return u.filter((function(t){var e=t.pos,r=e[0]+"x"+e[1];return!c[r]&&(c[r]=!0,!0)}))}function we(t,e){var r=function(t,e){return Se(t,e).map((function(t){return t.pos}))}(t,e);return he(r)}var xe=r(96540),Ee=function(t,e){return Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},Ee(t,e)};var Me=function(){return Me=Object.assign||function __assign(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Me.apply(this,arguments)};function Oe(t){return 180*(e=[t[0].clientX,t[0].clientY],r=[t[1].clientX,t[1].clientY],n=r[0]-e[0],i=r[1]-e[1],((o=Math.atan2(i,n))>=0?o:o+2*Math.PI)/Math.PI);var e,r,n,i,o}function ke(t){return t?t.touches?function(t){for(var e=Math.min(t.length,2),r=[],n=0;n<e;++n)r.push(Ie(t[n]));return r}(t.touches):[Ie(t)]:[]}function Ce(t,e,r){var n=r.length,i=Ae(t,n),o=i.clientX,a=i.clientY,s=i.originalClientX,u=i.originalClientY,c=Ae(e,n),l=c.clientX,f=c.clientY,p=Ae(r,n);return{clientX:s,clientY:u,deltaX:o-l,deltaY:a-f,distX:o-p.clientX,distY:a-p.clientY}}function De(t){return Math.sqrt(Math.pow(t[0].clientX-t[1].clientX,2)+Math.pow(t[0].clientY-t[1].clientY,2))}function Ie(t){return{clientX:t.clientX,clientY:t.clientY}}function Ae(t,e){void 0===e&&(e=t.length);for(var r={clientX:0,clientY:0,originalClientX:0,originalClientY:0},n=Math.min(t.length,e),i=0;i<n;++i){var o=t[i];r.originalClientX+="originalClientX"in o?o.originalClientX:o.clientX,r.originalClientY+="originalClientY"in o?o.originalClientY:o.clientY,r.clientX+=o.clientX,r.clientY+=o.clientY}return e?{clientX:r.clientX/e,clientY:r.clientY/e,originalClientX:r.originalClientX/e,originalClientY:r.originalClientY/e}:r}var Re=function(){function ClientStore(t){this.prevClients=[],this.startClients=[],this.movement=0,this.length=0,this.startClients=t,this.prevClients=t,this.length=t.length}return ClientStore.prototype.getAngle=function(t){return void 0===t&&(t=this.prevClients),Oe(t)},ClientStore.prototype.getRotation=function(t){return void 0===t&&(t=this.prevClients),Oe(t)-Oe(this.startClients)},ClientStore.prototype.getPosition=function(t,e){void 0===t&&(t=this.prevClients);var r=Ce(t||this.prevClients,this.prevClients,this.startClients),n=r.deltaX,i=r.deltaY;return this.movement+=Math.sqrt(n*n+i*i),this.prevClients=t,r},ClientStore.prototype.getPositions=function(t){void 0===t&&(t=this.prevClients);for(var e=this.prevClients,r=this.startClients,n=Math.min(this.length,e.length),i=[],o=0;o<n;++o)i[o]=Ce([t[o]],[e[o]],[r[o]]);return i},ClientStore.prototype.getMovement=function(t){var e=this.movement;if(!t)return e;var r=Ae(t,this.length),n=Ae(this.prevClients,this.length),i=r.clientX-n.clientX,o=r.clientY-n.clientY;return Math.sqrt(i*i+o*o)+e},ClientStore.prototype.getDistance=function(t){return void 0===t&&(t=this.prevClients),De(t)},ClientStore.prototype.getScale=function(t){return void 0===t&&(t=this.prevClients),De(t)/De(this.startClients)},ClientStore.prototype.move=function(t,e){this.startClients.forEach((function(r){r.clientX-=t,r.clientY-=e})),this.prevClients.forEach((function(r){r.clientX-=t,r.clientY-=e}))},ClientStore}(),Te=["textarea","input"],ze=function(t){function Gesto(e,r){void 0===r&&(r={});var n=t.call(this)||this;n.options={},n.flag=!1,n.pinchFlag=!1,n.data={},n.isDrag=!1,n.isPinch=!1,n.clientStores=[],n.targets=[],n.prevTime=0,n.doubleFlag=!1,n._useMouse=!1,n._useTouch=!1,n._useDrag=!1,n._dragFlag=!1,n._isTrusted=!1,n._isMouseEvent=!1,n._isSecondaryButton=!1,n._preventMouseEvent=!1,n._prevInputEvent=null,n._isDragAPI=!1,n._isIdle=!0,n._preventMouseEventId=0,n._window=window,n.onDragStart=function(t,e){if(void 0===e&&(e=!0),n.flag||!1!==t.cancelable){var r=t.type.indexOf("drag")>=-1;if(!n.flag||!r){n._isDragAPI=!0;var i=n.options,o=i.container,a=i.pinchOutside,s=i.preventWheelClick,u=i.preventRightClick,c=i.preventDefault,l=i.checkInput,f=i.dragFocusedInput,p=i.preventClickEventOnDragStart,h=i.preventClickEventOnDrag,d=i.preventClickEventByCondition,v=n._useTouch,g=!n.flag;if(n._isSecondaryButton=3===t.which||2===t.button,s&&(2===t.which||1===t.button)||u&&(3===t.which||2===t.button))return n.stop(),!1;if(g){var y=n._window.document.activeElement,m=t.target;if(m){var _=m.tagName.toLowerCase(),b=Te.indexOf(_)>-1,S=m.isContentEditable;if(b||S){if(l||!f&&y===m)return!1;if(y&&(y===m||S&&y.isContentEditable&&y.contains(m))){if(!f)return!1;m.blur()}}else if((c||"touchstart"===t.type)&&y){var w=y.tagName.toLowerCase();(y.isContentEditable||Te.indexOf(w)>-1)&&y.blur()}(p||h||d)&&ct(n._window,"click",n._onClick,!0)}n.clientStores=[new Re(ke(t))],n._isIdle=!1,n.flag=!0,n.isDrag=!1,n._isTrusted=e,n._dragFlag=!0,n._prevInputEvent=t,n.data={},n.doubleFlag=G()-n.prevTime<200,n._isMouseEvent=function(t){return t&&(t.type.indexOf("mouse")>-1||"button"in t)}(t),!n._isMouseEvent&&n._preventMouseEvent&&n._allowMouseEvent(),!1===(n._preventMouseEvent||n.emit("dragStart",Me(Me({data:n.data,datas:n.data,inputEvent:t,isMouseEvent:n._isMouseEvent,isSecondaryButton:n._isSecondaryButton,isTrusted:e,isDouble:n.doubleFlag},n.getCurrentStore().getPosition()),{preventDefault:function(){t.preventDefault()},preventDrag:function(){n._dragFlag=!1}})))&&n.stop(),n._isMouseEvent&&n.flag&&c&&t.preventDefault()}if(!n.flag)return!1;var x=0;if(g?(n._attchDragEvent(),v&&a&&(x=setTimeout((function(){ct(o,"touchstart",n.onDragStart,{passive:!1})})))):v&&a&<(o,"touchstart",n.onDragStart),n.flag&&function(t){return t.touches&&t.touches.length>=2}(t)){if(clearTimeout(x),g&&t.touches.length!==t.changedTouches.length)return;n.pinchFlag||n.onPinchStart(t)}}}},n.onDrag=function(t,e){if(n.flag){var r=n.options.preventDefault;!n._isMouseEvent&&r&&t.preventDefault(),n._prevInputEvent=t;var i=ke(t),o=n.moveClients(i,t,!1);if(n._dragFlag){if(n.pinchFlag||o.deltaX||o.deltaY)if(!1===(n._preventMouseEvent||n.emit("drag",Me(Me({},o),{isScroll:!!e,inputEvent:t}))))return void n.stop();n.pinchFlag&&n.onPinch(t,i)}n.getCurrentStore().getPosition(i,!0)}},n.onDragEnd=function(t){if(n.flag){var e=n.options,r=e.pinchOutside,i=e.container,o=e.preventClickEventOnDrag,a=e.preventClickEventOnDragStart,s=e.preventClickEventByCondition,u=n.isDrag;(o||a||s)&&requestAnimationFrame((function(){n._allowClickEvent()})),s||a||!o||u||n._allowClickEvent(),n._useTouch&&r&<(i,"touchstart",n.onDragStart),n.pinchFlag&&n.onPinchEnd(t);var c=(null==t?void 0:t.touches)?ke(t):[];0!==c.length&&n.options.keepDragging?n._addStore(new Re(c)):n.flag=!1;var l=n._getPosition(),f=G(),p=!u&&n.doubleFlag;n._prevInputEvent=null,n.prevTime=u||p?0:f,n.flag||(n._dettachDragEvent(),n._preventMouseEvent||n.emit("dragEnd",Me({data:n.data,datas:n.data,isDouble:p,isDrag:u,isClick:!u,isMouseEvent:n._isMouseEvent,isSecondaryButton:n._isSecondaryButton,inputEvent:t,isTrusted:n._isTrusted},l)),n.clientStores=[],n._isMouseEvent||(n._preventMouseEvent=!0,clearTimeout(n._preventMouseEventId),n._preventMouseEventId=setTimeout((function(){n._preventMouseEvent=!1}),200)),n._isIdle=!0)}},n.onBlur=function(){n.onDragEnd()},n._allowClickEvent=function(){lt(n._window,"click",n._onClick,!0)},n._onClick=function(t){n._allowClickEvent(),n._allowMouseEvent();var e=n.options.preventClickEventByCondition;(null==e?void 0:e(t))||(t.stopPropagation(),t.preventDefault())},n._onContextMenu=function(t){n.options.preventRightClick?n.onDragEnd(t):t.preventDefault()},n._passCallback=function(){};var i=[].concat(e),o=i[0];n._window=vt(o)?o:dt(o),n.options=Me({checkInput:!1,container:o&&!("document"in o)?dt(o):o,preventRightClick:!0,preventWheelClick:!0,preventClickEventOnDragStart:!1,preventClickEventOnDrag:!1,preventClickEventByCondition:null,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},r);var a=n.options,s=a.container,u=a.events,c=a.checkWindowBlur;if(n._useDrag=u.indexOf("drag")>-1,n._useTouch=u.indexOf("touch")>-1,n._useMouse=u.indexOf("mouse")>-1,n.targets=i,n._useDrag&&i.forEach((function(t){ct(t,"dragstart",n.onDragStart)})),n._useMouse&&(i.forEach((function(t){ct(t,"mousedown",n.onDragStart),ct(t,"mousemove",n._passCallback)})),ct(s,"contextmenu",n._onContextMenu)),c&&ct(dt(),"blur",n.onBlur),n._useTouch){var l={passive:!1};i.forEach((function(t){ct(t,"touchstart",n.onDragStart,l),ct(t,"touchmove",n._passCallback,l)}))}return n}return function(t,e){function __(){this.constructor=t}Ee(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}(Gesto,t),Gesto.prototype.stop=function(){this.isDrag=!1,this.data={},this.clientStores=[],this.pinchFlag=!1,this.doubleFlag=!1,this.prevTime=0,this.flag=!1,this._isIdle=!0,this._allowClickEvent(),this._dettachDragEvent(),this._isDragAPI=!1},Gesto.prototype.getMovement=function(t){return this.getCurrentStore().getMovement(t)+this.clientStores.slice(1).reduce((function(t,e){return t+e.movement}),0)},Gesto.prototype.isDragging=function(){return this.isDrag},Gesto.prototype.isIdle=function(){return this._isIdle},Gesto.prototype.isFlag=function(){return this.flag},Gesto.prototype.isPinchFlag=function(){return this.pinchFlag},Gesto.prototype.isDoubleFlag=function(){return this.doubleFlag},Gesto.prototype.isPinching=function(){return this.isPinch},Gesto.prototype.scrollBy=function(t,e,r,n){void 0===n&&(n=!0),this.flag&&(this.clientStores[0].move(t,e),n&&this.onDrag(r,!0))},Gesto.prototype.move=function(t,e){var r=t[0],n=t[1],i=this.getCurrentStore().prevClients;return this.moveClients(i.map((function(t){var e=t.clientX,i=t.clientY;return{clientX:e+r,clientY:i+n,originalClientX:e,originalClientY:i}})),e,!0)},Gesto.prototype.triggerDragStart=function(t){this.onDragStart(t,!1)},Gesto.prototype.setEventData=function(t){var e=this.data;for(var r in t)e[r]=t[r];return this},Gesto.prototype.setEventDatas=function(t){return this.setEventData(t)},Gesto.prototype.getCurrentEvent=function(t){return void 0===t&&(t=this._prevInputEvent),Me(Me({data:this.data,datas:this.data},this._getPosition()),{movement:this.getMovement(),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:t})},Gesto.prototype.getEventData=function(){return this.data},Gesto.prototype.getEventDatas=function(){return this.data},Gesto.prototype.unset=function(){var t=this,e=this.targets,r=this.options.container;this.off(),lt(this._window,"blur",this.onBlur),this._useDrag&&e.forEach((function(e){lt(e,"dragstart",t.onDragStart)})),this._useMouse&&(e.forEach((function(e){lt(e,"mousedown",t.onDragStart)})),lt(r,"contextmenu",this._onContextMenu)),this._useTouch&&(e.forEach((function(e){lt(e,"touchstart",t.onDragStart)})),lt(r,"touchstart",this.onDragStart)),this._prevInputEvent=null,this._allowClickEvent(),this._dettachDragEvent()},Gesto.prototype.onPinchStart=function(t){var e=this,r=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>r)){var n=new Re(ke(t));this.pinchFlag=!0,this._addStore(n),!1===this.emit("pinchStart",Me(Me({data:this.data,datas:this.data,angle:n.getAngle(),touches:this.getCurrentStore().getPositions()},n.getPosition()),{inputEvent:t,isTrusted:this._isTrusted,preventDefault:function(){t.preventDefault()},preventDrag:function(){e._dragFlag=!1}}))&&(this.pinchFlag=!1)}},Gesto.prototype.onPinch=function(t,e){if(this.flag&&this.pinchFlag&&!(e.length<2)){var r=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",Me(Me({data:this.data,datas:this.data,movement:this.getMovement(e),angle:r.getAngle(e),rotation:r.getRotation(e),touches:r.getPositions(e),scale:r.getScale(e),distance:r.getDistance(e)},r.getPosition(e)),{inputEvent:t,isTrusted:this._isTrusted}))}},Gesto.prototype.onPinchEnd=function(t){if(this.pinchFlag){var e=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var r=this.getCurrentStore();this.emit("pinchEnd",Me(Me({data:this.data,datas:this.data,isPinch:e,touches:r.getPositions()},r.getPosition()),{inputEvent:t}))}},Gesto.prototype.getCurrentStore=function(){return this.clientStores[0]},Gesto.prototype.moveClients=function(t,e,r){var n=this._getPosition(t,r),i=this.isDrag;(n.deltaX||n.deltaY)&&(this.isDrag=!0);var o=!1;return!i&&this.isDrag&&(o=!0),Me(Me({data:this.data,datas:this.data},n),{movement:this.getMovement(t),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,isMouseEvent:this._isMouseEvent,isSecondaryButton:this._isSecondaryButton,inputEvent:e,isTrusted:this._isTrusted,isFirstDrag:o})},Gesto.prototype._addStore=function(t){this.clientStores.splice(0,0,t)},Gesto.prototype._getPosition=function(t,e){var r=this.getCurrentStore().getPosition(t,e),n=this.clientStores.slice(1).reduce((function(t,e){var r=e.getPosition();return t.distX+=r.distX,t.distY+=r.distY,t}),r),i=n.distX,o=n.distY;return Me(Me({},r),{distX:i,distY:o})},Gesto.prototype._attchDragEvent=function(){var t=this._window,e=this.options.container,r={passive:!1};this._isDragAPI&&(ct(e,"dragover",this.onDrag,r),ct(t,"dragend",this.onDragEnd)),this._useMouse&&(ct(e,"mousemove",this.onDrag),ct(t,"mouseup",this.onDragEnd)),this._useTouch&&(ct(e,"touchmove",this.onDrag,r),ct(t,"touchend",this.onDragEnd,r),ct(t,"touchcancel",this.onDragEnd,r))},Gesto.prototype._dettachDragEvent=function(){var t=this._window,e=this.options.container;this._isDragAPI&&(lt(e,"dragover",this.onDrag),lt(t,"dragend",this.onDragEnd)),this._useMouse&&(lt(e,"mousemove",this.onDrag),lt(t,"mouseup",this.onDragEnd)),this._useTouch&&(lt(e,"touchstart",this.onDragStart),lt(e,"touchmove",this.onDrag),lt(t,"touchend",this.onDragEnd),lt(t,"touchcancel",this.onDragEnd))},Gesto.prototype._allowMouseEvent=function(){this._preventMouseEvent=!1,clearTimeout(this._preventMouseEventId)},Gesto}(ie);var Be=function(t){for(var e=5381,r=t.length;r;)e=33*e^t.charCodeAt(--r);return e>>>0};function qe(t,e,r,n,i){var o=ft(n),a=o.createElement("style");return a.setAttribute("type","text/css"),a.setAttribute("data-styled-id",t),a.setAttribute("data-styled-count","1"),r.nonce&&a.setAttribute("nonce",r.nonce),a.innerHTML=function(t,e,r){return r.original?e:e.replace(/([^};{\s}][^};{]*|^\s*){/gm,(function(e,r){var n=r.trim();return(n?N(n):[""]).map((function(e){var r=e.trim();return 0===r.indexOf("@")?r:r.indexOf(":global")>-1?r.replace(/\:global/g,""):r.indexOf(":host")>-1?"".concat(r.replace(/\:host/g,".".concat(t))):r?".".concat(t," ").concat(r):".".concat(t)})).join(", ")+" {"}))}(t,e,r),(i||o.head||o.body).appendChild(a),a}const Pe=function(t){var e="rCS"+Be(t).toString(36);return{className:e,inject:function(r,n){void 0===n&&(n={});var i=function(t){if(t&&t.getRootNode){var e=t.getRootNode();if(11===e.nodeType)return e}}(r),o=(i||r.ownerDocument||document).querySelector('style[data-styled-id="'.concat(e,'"]'));if(o){var a=parseFloat(o.getAttribute("data-styled-count"))||0;o.setAttribute("data-styled-count","".concat(a+1))}else o=qe(e,t,n,r,i);return{destroy:function(){var t,e=parseFloat(o.getAttribute("data-styled-count"))||0;e<=1?(o.remove?o.remove():null===(t=o.parentNode)||void 0===t||t.removeChild(o),o=null):o.setAttribute("data-styled-count","".concat(e-1))}}}}};var je=function(){return je=Object.assign||function __assign(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},je.apply(this,arguments)};function __rest(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}function Le(t,e){var r=Pe(e),n=r.className;return(0,xe.forwardRef)((function(e,i){var o=e.className,a=void 0===o?"":o,s=(e.cspNonce,__rest(e,["className","cspNonce"])),u=(0,xe.useRef)();return(0,xe.useImperativeHandle)(i,(function(){return u.current}),[]),(0,xe.useEffect)((function(){var t=r.inject(u.current,{nonce:e.cspNonce});return function(){t.destroy()}}),[]),(0,xe.createElement)(t,je({ref:u,"data-styled-id":n,className:"".concat(a," ").concat(n)},s))}))}var Ke=function(t,e){return Ke=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},Ke(t,e)};function Ne(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}Ke(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}var Fe=function(){return Fe=Object.assign||function __assign(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Fe.apply(this,arguments)};function __read(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function __spreadArray(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}function Ue(t,e){return Fe({events:[],props:[],name:t},e)}var Ge=["n","w","s","e"],He=["n","w","s","e","nw","ne","sw","se"];var We,Ve,Xe=b(),Ye=Xe.browser.webkit,$e=Ye&&(We="undefined"==typeof window?{userAgent:""}:window.navigator,!!(Ve=/applewebkit\/([^\s]+)/g.exec(We.userAgent.toLowerCase()))&&parseFloat(Ve[1])<605),Je=Xe.browser.name,Ze=parseInt(Xe.browser.version,10),Qe="chrome"===Je,tr=Xe.browser.chromium,er=parseInt(Xe.browser.chromiumVersion,10)||0,rr=Qe&&Ze>=109||tr&&er>=109,nr="firefox"===Je,ir=parseInt(Xe.browser.webkitVersion,10)>=612||Ze>=15,or="moveable-",ar=He.map((function(t){var e="",r="",n="center",i="center",o="calc(var(--moveable-control-padding, 20) * -1px)";return t.indexOf("n")>-1&&(e="top: ".concat(o,";"),i="bottom"),t.indexOf("s")>-1&&(e="top: 0px;",i="top"),t.indexOf("w")>-1&&(r="left: ".concat(o,";"),n="right"),t.indexOf("e")>-1&&(r="left: 0px;",n="left"),'.around-control[data-direction*="'.concat(t,'"] {\n ').concat(r).concat(e,"\n transform-origin: ").concat(n," ").concat(i,";\n }")})).join("\n"),sr="\n{\nposition: absolute;\nwidth: 1px;\nheight: 1px;\nleft: 0;\ntop: 0;\nz-index: 3000;\n--moveable-color: #4af;\n--zoom: 1;\n--zoompx: 1px;\n--moveable-line-padding: 0;\n--moveable-control-padding: 0;\nwill-change: transform;\noutline: 1px solid transparent;\n}\n.control-box {\nz-index: 0;\n}\n.line, .control {\nposition: absolute;\nleft: 0;\ntop: 0;\nwill-change: transform;\n}\n.control {\nwidth: 14px;\nheight: 14px;\nborder-radius: 50%;\nborder: 2px solid #fff;\nbox-sizing: border-box;\nbackground: #4af;\nbackground: var(--moveable-color);\nmargin-top: -7px;\nmargin-left: -7px;\nborder: 2px solid #fff;\nz-index: 10;\n}\n.around-control {\nposition: absolute;\nwill-change: transform;\nwidth: calc(var(--moveable-control-padding, 20) * 1px);\nheight: calc(var(--moveable-control-padding, 20) * 1px);\nleft: calc(var(--moveable-control-padding, 20) * -0.5px);\ntop: calc(var(--moveable-control-padding, 20) * -0.5px);\nbox-sizing: border-box;\nbackground: transparent;\nz-index: 8;\ncursor: alias;\ntransform-origin: center center;\n}\n".concat(ar,"\n.padding {\nposition: absolute;\ntop: 0px;\nleft: 0px;\nwidth: 100px;\nheight: 100px;\ntransform-origin: 0 0;\n}\n.line {\nwidth: 1px;\nheight: 1px;\nbackground: #4af;\nbackground: var(--moveable-color);\ntransform-origin: 0px 50%;\n}\n.line.edge {\nz-index: 1;\nbackground: transparent;\n}\n.line.dashed {\nbox-sizing: border-box;\nbackground: transparent;\n}\n.line.dashed.horizontal {\nborder-top: 1px dashed #4af;\nborder-top-color: #4af;\nborder-top-color: var(--moveable-color);\n}\n.line.dashed.vertical {\nborder-left: 1px dashed #4af;\nborder-left-color: #4af;\nborder-left-color: var(--moveable-color);\n}\n.line.vertical {\ntransform: translateX(-50%);\n}\n.line.horizontal {\ntransform: translateY(-50%);\n}\n.line.vertical.bold {\nwidth: 2px;\n}\n.line.horizontal.bold {\nheight: 2px;\n}\n\n.control.origin {\nborder-color: #f55;\nbackground: #fff;\nwidth: 12px;\nheight: 12px;\nmargin-top: -6px;\nmargin-left: -6px;\npointer-events: none;\n}\n").concat([0,15,30,45,60,75,90,105,120,135,150,165].map((function(t){return'\n.direction[data-rotation="'.concat(t,'"], :global .view-control-rotation').concat(t," {\n").concat(function(t){var e=function(t,e){return'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(32*t,'px" height="').concat(32*t,'px" viewBox="0 0 32 32" ><path d="M 16,5 L 12,10 L 14.5,10 L 14.5,22 L 12,22 L 16,27 L 20,22 L 17.5,22 L 17.5,10 L 20, 10 L 16,5 Z" stroke-linejoin="round" stroke-width="1.2" fill="black" stroke="white" style="transform:rotate(').concat(e,'deg);transform-origin: 16px 16px"></path></svg>')}(1,t),r=45*Math.round(t/45)%180,n="ns-resize";return 135===r?n="nwse-resize":45===r?n="nesw-resize":90===r&&(n="ew-resize"),"cursor:".concat(n,";cursor: url('").concat(e,"') 16 16, ").concat(n,";")}(t),"\n}\n")})).join("\n"),'\n\n.line.direction:before {\ncontent: "";\nposition: absolute;\nwidth: 100%;\nheight: calc(var(--moveable-line-padding, 0) * 1px);\nbottom: 0;\nleft: 0;\n}\n.group {\nz-index: -1;\n}\n.area {\nposition: absolute;\n}\n.area-pieces {\nposition: absolute;\ntop: 0;\nleft: 0;\ndisplay: none;\n}\n.area.avoid, .area.pass {\npointer-events: none;\n}\n.area.avoid+.area-pieces {\ndisplay: block;\n}\n.area-piece {\nposition: absolute;\n}\n\n').concat($e?':global svg *:before {\ncontent:"";\ntransform-origin: inherit;\n}':"","\n"),ur=[[0,1,2],[1,0,3],[2,0,3],[3,1,2]],cr=1e-4,lr=1e-7,fr=1e-9,pr=Math.pow(10,10),hr=-pr,dr={n:[0,-1],e:[1,0],s:[0,1],w:[-1,0],nw:[-1,-1],ne:[1,-1],sw:[-1,1],se:[1,1]},vr={n:[0,1],e:[1,3],s:[3,2],w:[2,0],nw:[0],ne:[1],sw:[2],se:[3]},gr={n:0,s:180,w:270,e:90,nw:315,ne:45,sw:225,se:135},yr=["isMoveableElement","updateRect","updateTarget","destroy","dragStart","isInside","hitTest","setState","getRect","request","isDragging","getManager","forceUpdate","waitToChangeTarget","updateSelectors","getTargets","stopDrag","getControlBoxElement","getMoveables","getDragElement"];function mr(t,e,r,n,i,o){var a,s;void 0===o&&(o="draggable");var u=null!==(s=null===(a=e.gestos[o])||void 0===a?void 0:a.move(r,t.inputEvent))&&void 0!==s?s:{},c=u.originalDatas||u.datas,l=c[o]||(c[o]={});return Fe(Fe({},i?Io(e,u):u),{isPinch:!!n,parentEvent:!0,datas:l,originalDatas:t.originalDatas})}var _r=function(){function CustomGesto(t){var e;void 0===t&&(t="draggable"),this.ableName=t,this.prevX=0,this.prevY=0,this.startX=0,this.startY=0,this.isDrag=!1,this.isFlag=!1,this.datas={draggable:{}},this.datas=((e={})[t]={},e)}return CustomGesto.prototype.dragStart=function(t,e){this.isDrag=!1,this.isFlag=!1;var r=e.originalDatas;return this.datas=r,r[this.ableName]||(r[this.ableName]={}),Fe(Fe({},this.move(t,e.inputEvent)),{type:"dragstart"})},CustomGesto.prototype.drag=function(t,e){return this.move([t[0]-this.prevX,t[1]-this.prevY],e)},CustomGesto.prototype.move=function(t,e){var r,n,i=!1;if(this.isFlag){var o=this.isDrag;r=this.prevX+t[0],n=this.prevY+t[1],(t[0]||t[1])&&(this.isDrag=!0),!o&&this.isDrag&&(i=!0)}else this.prevX=t[0],this.prevY=t[1],this.startX=t[0],this.startY=t[1],r=t[0],n=t[1],this.isFlag=!0;return this.prevX=r,this.prevY=n,{type:"drag",clientX:r,clientY:n,inputEvent:e,isFirstDrag:i,isDrag:this.isDrag,distX:r-this.startX,distY:n-this.startY,deltaX:t[0],deltaY:t[1],datas:this.datas[this.ableName],originalDatas:this.datas,parentEvent:!0,parentGesto:this}},CustomGesto}();function br(t,e,r,n){var i=16===t.length?4:3,o=__read($i(t,r,n,i),4),a=__read(o[0],2),s=a[0],u=a[1],c=__read(o[1],2),l=c[0],f=c[1],p=__read(o[2],2),h=p[0],d=p[1],v=__read(o[3],2),g=v[0],y=v[1],m=__read(Yi(t,e,i),2),_=m[0],b=m[1],S=Math.min(s,l,h,g),w=Math.min(u,f,d,y),x=Math.max(s,l,h,g);return s=s-S||0,{left:S,top:w,right:x,bottom:Math.max(u,f,d,y),origin:[_=_-S||0,b=b-w||0],pos1:[s,u=u-w||0],pos2:[l=l-S||0,f=f-w||0],pos3:[h=h-S||0,d=d-w||0],pos4:[g=g-S||0,y=y-w||0],direction:Ho(t[0]*t[i+1])}}function Sr(t,e){var r=e.clientX,n=e.clientY,i=e.datas,o=t.state,a=o.moveableClientRect,s=o.rootMatrix,u=o.is3d,c=o.pos1,l=__read(Ct(Do(s,[r-a.left,n-a.top],u?4:3),c),2),f=__read(Cr({datas:i,distX:l[0],distY:l[1]}),2);return[f[0],f[1]]}function wr(t,e){var r=e.datas,n=t.state,i=n.allMatrix,o=n.beforeMatrix,a=n.is3d,s=n.left,u=n.top,c=n.origin,l=n.offsetMatrix,f=n.targetMatrix,p=n.transformOrigin,h=a?4:3;r.is3d=a,r.matrix=i,r.targetMatrix=f,r.beforeMatrix=o,r.offsetMatrix=l,r.transformOrigin=p,r.inverseMatrix=St(i,h),r.inverseBeforeMatrix=St(o,h),r.absoluteOrigin=xt(kt([s,u],c),h),r.startDragBeforeDist=It(r.inverseBeforeMatrix,r.absoluteOrigin,h),r.startDragDist=It(r.inverseMatrix,r.absoluteOrigin,h)}function xr(t,e,r){var n=e.datas,i=e.originalDatas.beforeRenderable,o=n.transformIndex,a=i.nextTransforms,s=a.length,u=i.nextTransformAppendedIndexes,c=-1;-1===o?("translate"===r?c=0:"rotate"===r&&(c=H(a,(function(t){return t.match(/scale\(/g)}))),-1===c&&(c=a.length),n.transformIndex=c):c=W(u,(function(t){return t.index===o&&t.functionName===r}))?o:o+u.filter((function(t){return t.index<o})).length;var l=function(t,e,r){var n,i=Ht(t,{"x%":function(t){return t/100*e.offsetWidth},"y%":function(t){return t/100*e.offsetHeight}}),o=t.slice(0,r<0?void 0:r),a=t.slice(0,r<0?void 0:r+1),s=t[r]||"",u=r<0?[]:t.slice(r),c=r<0?[]:t.slice(r+1),l=i.slice(0,r<0?void 0:r),f=i.slice(0,r<0?void 0:r+1),p=null!==(n=i[r])&&void 0!==n?n:Ht([""])[0],h=r<0?[]:i.slice(r),d=r<0?[]:i.slice(r+1),v=p?[p]:[],g=Gt(l),y=Gt(f),m=Gt(h),_=Gt(d),b=Ot(g,m,4);return{transforms:t,beforeFunctionMatrix:g,beforeFunctionMatrix2:y,targetFunctionMatrix:Gt(v),afterFunctionMatrix:m,afterFunctionMatrix2:_,allFunctionMatrix:b,beforeFunctions:l,beforeFunctions2:f,targetFunction:v[0],afterFunctions:h,afterFunctions2:d,beforeFunctionTexts:o,beforeFunctionTexts2:a,targetFunctionText:s,afterFunctionTexts:u,afterFunctionTexts2:c}}(a,t.state,c),f=l.targetFunction,p="rotate"===r?"rotateZ":r;n.beforeFunctionTexts=l.beforeFunctionTexts,n.afterFunctionTexts=l.afterFunctionTexts,n.beforeTransform=l.beforeFunctionMatrix,n.beforeTransform2=l.beforeFunctionMatrix2,n.targetTansform=l.targetFunctionMatrix,n.afterTransform=l.afterFunctionMatrix,n.afterTransform2=l.afterFunctionMatrix2,n.targetAllTransform=l.allFunctionMatrix,f.functionName===p?(n.afterFunctionTexts.splice(0,1),n.isAppendTransform=!1):s>c&&(n.isAppendTransform=!0,i.nextTransformAppendedIndexes=__spreadArray(__spreadArray([],__read(u),!1),[{functionName:r,index:c,isAppend:!0}],!1))}function Er(t,e,r){return"".concat(t.beforeFunctionTexts.join(" ")," ").concat(t.isAppendTransform?r:e," ").concat(t.afterFunctionTexts.join(" "))}function Mr(t){var e=t.datas,r=__read(kr({datas:e,distX:t.distX,distY:t.distY}),2);return It(Or(e,function(t,e){for(var r=Lt(e),n=0;n<e-1;++n)r[e*(e-1)+n]=t[n]||0;return r}([r[0],r[1]],4)),xt([0,0,0],4),4)}function Or(t,e,r){var n=t.beforeTransform,i=t.afterTransform,o=t.beforeTransform2,a=t.afterTransform2,s=t.targetAllTransform,u=r?Ot(s,e,4):Ot(e,s,4),c=Ot(St(r?o:n,4),u,4);return Ot(c,St(r?a:i,4),4)}function kr(t){var e=t.datas,r=t.distX,n=t.distY,i=e.inverseBeforeMatrix,o=e.is3d,a=e.startDragBeforeDist,s=o?4:3;return Ct(It(i,kt(e.absoluteOrigin,[r,n]),s),a)}function Cr(t,e){var r=t.datas,n=t.distX,i=t.distY,o=r.inverseBeforeMatrix,a=r.inverseMatrix,s=r.is3d,u=r.startDragBeforeDist,c=r.startDragDist,l=s?4:3;return Ct(It(e?o:a,kt(r.absoluteOrigin,[n,i]),l),e?u:c)}function Dr(t){var e=[];return t[1]>=0&&(t[0]>=0&&e.push(3),t[0]<=0&&e.push(2)),t[1]<=0&&(t[0]>=0&&e.push(1),t[0]<=0&&e.push(0)),e}function Ir(t,e){var r=(e+1)/2;return[I(t[0][0],t[1][0],r,1-r),I(t[0][1],t[1][1],r,1-r)]}function Ar(t,e){var r=Ir([t[0],t[1]],e[0]),n=Ir([t[2],t[3]],e[0]);return Ir([r,n],e[1])}function Rr(t,e,r,n){return Ot(t,Pi(e,n,r),n)}function Tr(t,e){var r=Pr(e);return{setTransform:function(n,i){void 0===i&&(i=-1),r.startTransforms=T(n)?n:K(n),Br(t,e,i)},setTransformIndex:function(r){Br(t,e,r)}}}function zr(t,e,r){Br(t,e,H(Pr(e).startTransforms,(function(t){return 0===t.indexOf("".concat(r,"("))})))}function Br(t,e,r){var n=Pr(e),i=e.datas;if(i.transformIndex=r,-1!==r){var o=n.startTransforms[r];if(o){var a=t.state,s=Ht([o],{"x%":function(t){return t/100*a.offsetWidth},"y%":function(t){return t/100*a.offsetHeight}});i.startValue=s[0].functionValue}}}function qr(t,e){Pr(t).nextTransforms=K(e)}function Pr(t){return t.originalDatas.beforeRenderable}function jr(t){return t.originalDatas.beforeRenderable.nextTransforms}function Lr(t){return(jr(t)||[]).join(" ")}function Kr(t){return Pr(t).nextStyle}function Nr(t,e,r,n,i){qr(i,e);var o=ti.drag(t,mr(i,t.state,r,n,!1)),a=o?o.transform:e;return Fe(Fe({transform:e,drag:o},go({transform:a},i)),{afterTransform:a})}function Fr(t,e,r,n,i,o){var a=function(t,e,r,n){var i,o=t.transformOrigin,a=t.offsetMatrix,s=t.is3d?4:3;if(z(r)){var u=e.beforeTransform,c=e.afterTransform;i=Et(n?Ut(r):Ot(Ot(u,Ut([r]),4),c,4),4,s)}else i=r;return Rr(a,i,o,s)}(t.state,i,e,o),s=function(t,e,r,n){void 0===n&&(n=t.state.allMatrix);var i=t.state,o=i.width,a=i.height,s=i.is3d?4:3,u=[o/2*(1+e[0])+r[0],a/2*(1+e[1])+r[1]];return Yi(n,u,s)}(t,r,n,a);return s}function Ur(t,e,r,n,i,o,a){var s=Fr(t,e,r,i,o,a),u=t.state,c=u.left,l=u.top,f=t.props.groupable,p=f?c:0,h=f?l:0,d=Ct(n,s);return Ct(d,[p,h])}function Gr(t,e,r,n,i,o){var a=t.props.groupable,s=t.state,u=s.transformOrigin,c=s.offsetMatrix,l=s.is3d,f=s.width,p=s.height,h=s.left,d=s.top,v=o.fixedDirection,g=o.nextTargetMatrix||s.targetMatrix,y=l?4:3,m=function(t,e,r,n,i,o){return void 0===n&&(n=e),void 0===i&&(i=r),void 0===o&&(o=[0,0]),t?t.map((function(t,a){var s=U(t),u=s.value,c=s.unit,l=a?i:n,f=a?r:e;return"%"===t||isNaN(u)?f*(l?o[a]/l:0):"%"!==c?u:f*u/100})):o}(i,e,r,f,p,u),_=a?h:0,b=a?d:0,S=function(t,e,r,n,i,o){var a=Ar($i(e,r,n,i),o);return[t[0]-a[0],t[1]-a[1]]}(n,Rr(c,g,m,y),e,r,y,v);return Ct(S,[_,b])}function Hr(t){if(t&&t.getRootNode){var e=t.getRootNode();if(11===e.nodeType)return e}}function Wr(t){var e=t("scale"),r=t("rotate"),n=t("translate"),i=[];return n&&"0px"!==n&&"none"!==n&&i.push("translate(".concat(n.split(/\s+/).join(","),")")),r&&"1"!==r&&"none"!==r&&i.push("rotate(".concat(r,")")),e&&"1"!==e&&"none"!==e&&i.push("scale(".concat(e.split(/\s+/).join(","),")")),i}function Vr(t,e,r){for(var n,i,o,a,s,u=t,c=[],l=pt(t)||ht(t),f=!r&&t===e||t===l,p=f,h=!1,d=3,v=!1,g=Ni(e,e,!0).offsetParent,y=1;u&&!p;){p=f;var m=Zr(u),_=m("position"),b=Ki(u),S="fixed"===_,w=Wr(m),x=(a=qi(b),void 0===(s=void 0)&&(s=6===a.length),s?[a[0],a[1],0,a[2],a[3],0,a[4],a[5],1]:a),E=void 0,M=!1,O=!1,k=0,C=0,D=0,I=0,A={hasTransform:!1,fixedContainer:null};S&&(v=!0,g=(A=Hi(u)).fixedContainer);var R=x.length;h||16!==R&&!w.length||(h=!0,d=4,Gi(c),o&&(o=Et(o,3,4))),h&&9===R&&(x=Et(x,3,4));var T=Fi(u,t),z=T.tagName,B=T.hasOffset,q=T.isSVG,P=T.origin,j=T.targetOrigin,L=__read(T.offset,2),K=L[0],N=L[1];"svg"===z&&!u.ownerSVGElement&&o&&(c.push({type:"target",target:u,matrix:Xi(u,d)}),c.push({type:"offset",target:u,matrix:Lt(d)}));var F=parseFloat(m("zoom"))||1;if(S)E=A.fixedContainer,M=!0;else{var U=Ni(u,e,!1,!0,m),G=U.offsetZoom;if(E=U.offsetParent,M=U.isEnd,O=U.isStatic,y*=G,(U.isCustomElement||1!==G)&&O)K-=E.offsetLeft,N-=E.offsetTop;else if(nr||rr){if(U.parentSlotElement){for(var H=E,W=0,V=0;H&&Hr(H);)W+=H.offsetLeft,V+=H.offsetTop,H=H.offsetParent;K-=W,N-=V}}}if(!Ye||ir||!B||q||!O||"relative"!==_&&"static"!==_||(K-=E.offsetLeft,N-=E.offsetTop,f=f||M),S)B&&A.hasTransform&&(D=E.clientLeft,I=E.clientTop);else if(B&&g!==E&&(k=E.clientLeft,C=E.clientTop),B&&E===l){var X=Ui(u,!1);K+=X[0],N+=X[1]}if(c.push({type:"target",target:u,matrix:Pi(x,d,P)}),w.length&&(c.push({type:"offset",target:u,matrix:Lt(d)}),c.push({type:"target",target:u,matrix:Pi(Ut(w),d,P)})),B){var Y=u===t,$=Y?0:u.scrollLeft,J=Y?0:u.scrollTop;c.push({type:"offset",target:u,matrix:Nt([K-$+k-D,N-J+C-I],d)})}else c.push({type:"offset",target:u,origin:P});if(1!==F&&c.push({type:"zoom",target:u,matrix:Pi(Kt([F,F],d),d,[0,0])}),o||(o=x),n||(n=P),i||(i=j),p||S)break;u=E,f=M,r&&u!==l||(p=f)}return o||(o=Lt(d)),n||(n=[0,0]),i||(i=[0,0]),{zoom:y,offsetContainer:g,matrixes:c,targetMatrix:o,transformOrigin:n,targetOrigin:i,is3d:h,hasFixed:v}}var Xr=null,Yr=null,$r=null;function Jr(t){t?(window.Map&&(Xr=new Map,Yr=new Map),$r=[]):(Xr=null,$r=null,Yr=null)}function Zr(t){var e=null==Xr?void 0:Xr.get(t);if(!e){var r=dt(t).getComputedStyle(t);if(!Xr)return function(t){return r[t]};e={style:r,cached:{}},Xr.set(t,e)}var n=e.cached,i=e.style;return function(t){return t in n||(n[t]=i[t]),n[t]}}function Qr(t,e,r){var n=r.originalDatas;n.groupable=n.groupable||{};var i=n.groupable;i.childDatas=i.childDatas||[];var o=i.childDatas;return t.moveables.map((function(t,n){return o[n]=o[n]||{},o[n][e]=o[n][e]||{},Fe(Fe({},r),{isRequestChild:!0,datas:o[n][e],originalDatas:o[n]})}))}function tn(t,e,r,n,i,o,a){var s=!!r.match(/Start$/g),u=!!r.match(/End$/g),c=i.isPinch,l=i.datas,f=Qr(t,e.name,i),p=t.moveables,h=[],d=f.map((function(t,i){var f=p[i],d=f.state,v=d.gestos,g=t;if(s)g=new _r(a).dragStart(n,t),h.push(g);else{if(v[a]||(v[a]=l.childGestos[i]),!v[a])return;g=mr(t,d,n,c,o,a),h.push(g)}var y=e[r](f,Fe(Fe({},g),{parentFlag:!0}));return u&&(v[a]=null),y}));return s&&(l.childGestos=p.map((function(t){return t.state.gestos[a]}))),{eventParams:d,childEvents:h}}function en(t,e,r,n,i,o){void 0===i&&(i=function(t,e){return e});var a=!!r.match(/End$/g),s=Qr(t,e.name,n),u=t.moveables;return s.map((function(t,n){var s,c=u[n];s=i(c,t);var l=e[r](c,Fe(Fe({},s),{parentFlag:!0}));return l&&o&&o(c,t,l,n),a&&(c.state.gestos={}),l}))}function rn(t,e,r,n){var i=r.fixedDirection,o=r.fixedPosition,a=Ar(n.datas.startPositions||po(e.state),i),s=__read(It(jt(-t.rotation/180*Math.PI,3),[a[0]-o[0],a[1]-o[1],1],3),2),u=s[0],c=s[1];return n.datas.originalX=u,n.datas.originalY=c,n}function nn(t,e,r,n){var i=t.getState(),o=i.renderPoses,a=i.rotation,s=i.direction,u=no(t.props,e).zoom,c=Oi(a/Math.PI*180),l={},f=t.renderState;f.renderDirectionMap||(f.renderDirectionMap={});var p=f.renderDirectionMap;r.forEach((function(t){var e=t.dir;l[e]=!0}));var h=Ho(s);return r.map((function(t){var r=t.data,i=t.classNames,s=t.dir,f=vr[s];if(!f||!l[s])return null;p[s]=!0;var d=(it(c,15)+h*gr[s]+720)%180,v={};return Y(r).forEach((function(t){v["data-".concat(t)]=r[t]})),n.createElement("div",Fe({className:zi.apply(void 0,__spreadArray(["control","direction",s,e],__read(i),!1)),"data-rotation":d,"data-direction":s},v,{key:"direction-".concat(s),style:ro.apply(void 0,__spreadArray([a,u],__read(f.map((function(t){return o[t]}))),!1))}))}))}function on(t,e,r,n){var i=no(t.props,r),o=i.renderDirections,a=void 0===o?e:o,s=i.displayAroundControls;if(!a)return[];var u=!0===a?He:a;return __spreadArray(__spreadArray([],__read(s?ln(t,n,r,u):[]),!1),__read(nn(t,r,u.map((function(t){return{data:{},classNames:[],dir:t}})),n)),!1)}function an(t,e,r,n,i,o){for(var a=[],s=6;s<arguments.length;s++)a[s-6]=arguments[s];var u=et(r,n),c=e?it(u/Math.PI*180,15)%180:-1;return t.createElement("div",{key:"line-".concat(o),className:zi.apply(void 0,__spreadArray(["line","direction",e?"edge":"",e],__read(a),!1)),"data-rotation":c,"data-line-key":o,"data-direction":e,style:eo(r,n,i,u)})}function sn(t,e,r,n,i){return(!0===r?Ge:r).map((function(r,o){var a=__read(vr[r],2),s=a[0],u=a[1];if(null!=u)return an(t,r,n[s],n[u],i,"".concat(e,"Edge").concat(o),e)})).filter(Boolean)}function un(t){return function(e,r){var n=no(e.props,t).edge;return n&&(!0===n||n.length)?__spreadArray(__spreadArray([],__read(sn(r,t,n,e.getState().renderPoses,e.props.zoom)),!1),__read(function(t,e,r){return on(t,["nw","ne","sw","se"],e,r)}(e,t,r)),!1):cn(e,t,r)}}function cn(t,e,r){return on(t,He,e,r)}function ln(t,e,r,n){var i=t.renderState;i.renderDirectionMap||(i.renderDirectionMap={});var o=t.getState(),a=o.renderPoses,s=o.rotation,u=o.direction,c=i.renderDirectionMap,l=t.props.zoom,f=Ho(u),p=s/Math.PI*180;return(n||Y(c)).map((function(t){var n=vr[t];if(!n)return null;var i=(it(p,15)+f*gr[t]+720)%180,o=["around-control"];return r&&o.push("direction",r),e.createElement("div",{className:zi.apply(void 0,__spreadArray([],__read(o),!1)),"data-rotation":i,"data-direction":t,key:"direction-around-".concat(t),style:ro.apply(void 0,__spreadArray([s,l],__read(n.map((function(t){return a[t]}))),!1))})}))}function fn(t,e,r){var n=t||{},i=n.position,o=void 0===i?"client":i,a=n.left,s=void 0===a?-1/0:a,u=n.top,c=void 0===u?-1/0:u,l=n.right,f=void 0===l?1/0:l,p=n.bottom,h={position:o,left:s,top:c,right:f,bottom:void 0===p?1/0:p};return{vertical:hn(h,e,!0),horizontal:hn(h,r,!1)}}function pn(t,e){var r=t.state,n=r.containerClientRect,i=n.clientHeight,o=n.clientWidth,a=n.clientLeft,s=n.clientTop,u=r.snapOffset,c=u.left,l=u.top,f=u.right,p=u.bottom,h=e||t.props.bounds||{},d="css"===(h.position||"client"),v=h.left,g=void 0===v?-1/0:v,y=h.top,m=void 0===y?-1/0:y,_=h.right,b=void 0===_?d?-1/0:1/0:_,S=h.bottom,w=void 0===S?d?-1/0:1/0:S;return d&&(b=o+f-c-b,w=i+p-l-w),{left:g+c-a,right:b+c-a,top:m+l-s,bottom:w+l-s}}function hn(t,e,r){var n=t[r?"left":"top"],i=t[r?"right":"bottom"],o=Math.min.apply(Math,__spreadArray([],__read(e),!1)),a=Math.max.apply(Math,__spreadArray([],__read(e),!1)),s=[];return n+1>o&&s.push({direction:"start",isBound:!0,offset:o-n,pos:n}),i-1<a&&s.push({direction:"end",isBound:!0,offset:a-i,pos:i}),s.length||s.push({isBound:!1,offset:0,pos:0}),s.sort((function(t,e){return Wo(e.offset)-Wo(t.offset)}))}function dn(t,e,r){return(r?t.map((function(t){return Bt(t,r)})):t).some((function(t){return t[0]<e.left&&Wo(t[0]-e.left)>.1||t[0]>e.right&&Wo(t[0]-e.right)>.1||t[1]<e.top&&Wo(t[1]-e.top)>.1||t[1]>e.bottom&&Wo(t[1]-e.bottom)>.1}))}function vn(t,e,r,n,i){if(!t.props.bounds)return[];var o=i*Math.PI/180,a=pn(t),s=a.left,u=a.top,c=a.right,l=a.bottom,f=s-n[0],p=c-n[0],h=u-n[1],d=l-n[1],v={left:f,top:h,right:p,bottom:d};if(!dn(r,v,0))return[];var g=[];return[[f,0],[p,0],[h,1],[d,1]].forEach((function(t){var n=__read(t,2),i=n[0],a=n[1];r.forEach((function(t){var r=et([0,0],t);g.push.apply(g,__spreadArray([],__read(function(t,e,r){var n=Qi(t),i=Math.sqrt(n*n-e*e)||0;return[i,-i].sort((function(e,n){return Wo(e-t[r?0:1])-Wo(n-t[r?0:1])})).map((function(t){return et([0,0],r?[t,e]:[e,t])}))}(t,i,a).map((function(t){return o+t-r})).filter((function(t){return!dn(e,v,t)})).map((function(t){return it(180*t/Math.PI,lr)}))),!1))}))})),g}var gn=["left","right","center"],yn=["top","bottom","middle"],mn={left:"start",right:"end",center:"center",top:"start",bottom:"end",middle:"center"},_n={start:"left",end:"right",center:"center"},bn={start:"top",end:"bottom",center:"middle"};function Sn(t,e){var r=t.props,n=r.snappable,i=r.bounds,o=r.innerBounds,a=r.verticalGuidelines,s=r.horizontalGuidelines,u=r.snapGridWidth,c=r.snapGridHeight,l=t.state,f=l.guidelines,p=l.enableSnap;return!(!n||!p||e&&!0!==n&&n.indexOf(e)<0)&&!!(u||c||i||o||f&&f.length||a&&a.length||s&&s.length)}function wn(t){return!1===t?{}:!0!==t&&t?t:{left:!0,right:!0,top:!0,bottom:!0}}function xn(t,e){var r=function(t,e){var r=wn(t),n={};for(var i in r)i in e&&r[i]&&(n[i]=e[i]);return n}(t,e),n=yn.filter((function(t){return t in r})),i=gn.filter((function(t){return t in r}));return{horizontalNames:n,verticalNames:i,horizontal:n.map((function(t){return r[t]})),vertical:i.map((function(t){return r[t]}))}}var En="snapRotationThreshold",Mn="snapRotationDegrees",On="snapHorizontalThreshold",kn="snapVerticalThreshold";function Cn(t,e,r,n,i,o,a){var s;void 0===n&&(n=[]),void 0===i&&(i=[]);var u=t.props,c=(null===(s=t.state.snapThresholdInfo)||void 0===s?void 0:s.multiples)||[1,1],l=Mo(a,u[On],5),f=Mo(o,u[kn],5);return Dn(t.state.guidelines,e,r,n,i,l,f,c)}function Dn(t,e,r,n,i,o,a,s){return{vertical:Tn(t,"vertical",e,a*s[0],n),horizontal:Tn(t,"horizontal",r,o*s[1],i)}}function In(t){var e="";return-1===t||"top"===t||"left"===t?e="start":0===t||"center"===t||"middle"===t?e="center":1!==t&&"right"!==t&&"bottom"!==t||(e="end"),e}function An(t,e,r,n){var i=xn(t.props.snapDirections,e),o=Cn(t,i.vertical,i.horizontal,i.verticalNames.map((function(t){return In(t)})),i.horizontalNames.map((function(t){return In(t)})),r,n),a=In(i.horizontalNames[o.horizontal.index]),s=In(i.verticalNames[o.vertical.index]);return{vertical:Fe(Fe({},o.vertical),{direction:s}),horizontal:Fe(Fe({},o.horizontal),{direction:a})}}function Rn(t){var e=t.isSnap;if(!e)return{isSnap:!1,offset:0,dist:-1,pos:0,guideline:null};var r=t.posInfos[0],n=r.guidelineInfos[0],i=n.offset,o=n.dist,a=n.guideline;return{isSnap:e,offset:i,dist:o,pos:r.pos,guideline:a}}function Tn(t,e,r,n,i){var o,a;if(void 0===i&&(i=[]),!t||!t.length)return{isSnap:!1,index:-1,direction:"",posInfos:[]};var s="vertical"===e?0:1,u=r.map((function(r,o){var a=i[o]||"",u=t.map((function(t){var e=t.pos,n=r-e[s];return{offset:n,dist:Wo(n),guideline:t,direction:a}})).filter((function(t){var r=t.guideline,i=t.dist;return!(r.type!==e||i>n)})).sort((function(t,e){return t.dist-e.dist}));return{pos:r,index:o,guidelineInfos:u,direction:a}})).filter((function(t){return t.guidelineInfos.length>0})).sort((function(t,e){return t.guidelineInfos[0].dist-e.guidelineInfos[0].dist})),c=u.length>0;return{isSnap:c,index:c?u[0].index:-1,direction:null!==(a=null===(o=u[0])||void 0===o?void 0:o.direction)&&void 0!==a?a:"",posInfos:u}}function zn(t,e,r,n,i){var o=[];r[0]&&r[1]?o=[r,[-r[0],r[1]],[r[0],-r[1]]]:r[0]||r[1]?t.props.keepRatio?o.push([-1,-1],[-1,1],[1,-1],[1,1],r):(o.push.apply(o,__spreadArray([],__read(function(t,e){return Dr(e).map((function(e){return t[e]}))}([[-1,-1],[1,-1],[-1,-1],[1,1]],r)),!1)),o.length>1&&o.push([(o[0][0]+o[1][0])/2,(o[0][1]+o[1][1])/2])):[[-1,-1],[1,-1],[1,1],[-1,1]].forEach((function(t,e,r){var n=r[e+1]||r[0];o.push(t),o.push([(t[0]+n[0])/2,(t[1]+n[1])/2])}));var a=o.map((function(t){return Ar(e,t)})),s=Cn(t,a.map((function(t){return t[0]})),a.map((function(t){return t[1]})),o.map((function(t){return In(t[0])})),o.map((function(t){return In(t[1])})),n,i),u=In(o.map((function(t){return t[0]}))[s.vertical.index]),c=In(o.map((function(t){return t[1]}))[s.horizontal.index]);return{vertical:Fe(Fe({},s.vertical),{direction:u}),horizontal:Fe(Fe({},s.horizontal),{direction:c})}}function Bn(t,e){var r=Wo(t.offset),n=Wo(e.offset);return t.isBound&&e.isBound?n-r:t.isBound?-1:e.isBound?1:t.isSnap&&e.isSnap?n-r:t.isSnap?-1:e.isSnap||r<lr?1:n<lr?-1:r-n}function qn(t,e){return t.slice().sort((function(t,r){var n=t.sign[e],i=r.sign[e],o=t.offset[e],a=r.offset[e];return n?i?Bn({isBound:t.isBound,isSnap:t.isSnap,offset:o},{isBound:r.isBound,isSnap:r.isSnap,offset:a}):-1:1}))[0]}function Pn(t,e){var r=tt([e[0][0],e[1][0]]),n=tt([e[0][1],e[1][1]]);return{vertical:r<=t[0],horizontal:n<=t[1]}}function jn(t,e){var r,n,i=__read(e,2),o=i[0],a=i[1],s=a[0]-o[0],u=a[1]-o[1];if(Wo(s)<lr&&(s=0),Wo(u)<lr&&(u=0),s)if(u){r=u/s*(t[0]-o[0])+o[1],n=t[1]}else r=o[1],n=t[1];else r=o[0],n=t[0];return r-n}function Ln(t,e,r,n){return void 0===n&&(n=lr),t.every((function(t){var i=jn(t,e);return i<=0===r||Wo(i)<=n}))}function Kn(t,e,r,n,i){return void 0===i&&(i=0),n&&e-i<=t||!n&&t<=r+i?{isBound:!0,offset:n?e-t:r-t}:{isBound:!1,offset:0}}function Nn(t,e,r,n,i,o){var a,s,u=__read(e,2),c=u[0],l=u[1],f=t[0],p=r[0],h=r[1],d=To(h[1]-p[1]),v=l,g=c,y=-c/l;return To(h[0]-p[0])?d||o&&!v?{isBound:!1,offset:0}:g?Kn((p[1]-f[1])/y+f[0],p[0],h[0],n,i):{isBound:s=Wo(a=p[1]-f[1])<=(i||0),offset:s?a:0}:o&&!g?{isBound:!1,offset:0}:v?Kn(y*(p[0]-f[0])+f[1],p[1],h[1],n,i):{isBound:s=Wo(a=p[0]-f[0])<=(i||0),offset:s?a:0}}function Fn(t,e,r){return e.map((function(e){var n=function(t,e){var r=e.line,n=e.centerSign,i=e.verticalSign,o=e.horizontalSign,a=e.lineConstants,s=t.props.innerBounds;if(!s)return{isAllBound:!1,isBound:!1,isVerticalBound:!1,isHorizontalBound:!1,offset:[0,0]};var u=s.left,c=s.top,l=s.width,f=s.height,p=[[u,c],[u,c+f]],h=[[u,c],[u+l,c]],d=[[u+l,c],[u+l,c+f]],v=[[u,c+f],[u+l,c+f]];if(Ln([[u,c],[u+l,c],[u,c+f],[u+l,c+f]],r,n))return{isAllBound:!1,isBound:!1,isVerticalBound:!1,isHorizontalBound:!1,offset:[0,0]};var g=Nn(r,a,h,i),y=Nn(r,a,v,i),m=Nn(r,a,p,o),_=Nn(r,a,d,o),b=g.isBound&&y.isBound,S=g.isBound||y.isBound,w=m.isBound&&_.isBound,x=m.isBound||_.isBound,E=Co(g.offset,y.offset),M=Co(m.offset,_.offset),O=[0,0],k=!1,C=!1;return Wo(M)<Wo(E)?(O=[E,0],k=S,C=b):(O=[0,M],k=x,C=w),{isAllBound:C,isVerticalBound:S,isHorizontalBound:x,isBound:k,offset:O}}(t,e),i=n.isBound,o=n.offset,a=n.isVerticalBound,s=n.isHorizontalBound,u=e.multiple,c=Cr({datas:r,distX:o[0],distY:o[1]}).map((function(t,e){return t*(u[e]?2/u[e]:0)}));return{sign:u,isBound:i,isVerticalBound:a,isHorizontalBound:s,isSnap:!1,offset:c}}))}function Un(t,e,r){var n,i=Fn(t,Gn(t,e,[0,0],!1).map((function(t){return Fe(Fe({},t),{multiple:t.multiple.map((function(t){return 2*Wo(t)}))})})),r),o=qn(i,0),a=qn(i,1),s=0,u=0,c=o.isVerticalBound||a.isVerticalBound,l=o.isHorizontalBound||a.isHorizontalBound;return(c||l)&&(n=__read(function(t,e){var r=t.datas,n=t.distX,i=t.distY,o=r.beforeMatrix,a=r.matrix,s=r.is3d,u=r.startDragBeforeDist,c=r.startDragDist,l=r.absoluteOrigin,f=s?4:3;return Ct(It(e?o:a,kt(e?u:c,[n,i]),f),l)}({datas:r,distX:-o.offset[0],distY:-a.offset[1]}),2),s=n[0],u=n[1]),{vertical:{isBound:c,offset:s},horizontal:{isBound:l,offset:u}}}function Gn(t,e,r,n){var i=t.state,o=$i(i.allMatrix,100,100,i.is3d?4:3),a=Ar(o,[0,0]);return function(t,e){var r=[],n=t[0],i=t[1];return n&&i?r.push([[0,2*i],t,[-n,i]],[[2*n,0],t,[n,-i]]):n?(r.push([[2*n,0],[n,1],[n,-1]]),e&&r.push([[0,-1],[n,-1],[-n,-1]],[[0,1],[n,1],[-n,1]])):i?(r.push([[0,2*i],[1,i],[-1,i]]),e&&r.push([[-1,0],[-1,i],[-1,-i]],[[1,0],[1,i],[1,-i]])):r.push([[-1,0],[-1,-1],[-1,1]],[[1,0],[1,-1],[1,1]],[[0,-1],[-1,-1],[1,-1]],[[0,1],[-1,1],[1,1]]),r}(r,n).map((function(t){var r=__read(t,3),n=r[0],i=r[1],s=r[2],u=[Ar(o,i),Ar(o,s)],c=function(t){var e=__read(t,2),r=e[0],n=e[1],i=n[0]-r[0],o=n[1]-r[1];Math.abs(i)<C&&(i=0),Math.abs(o)<C&&(o=0);var a=0,s=0,u=0;return i?o?(s=1,u=(a=-o/i)*r[0]-r[1]):(s=1,u=-r[1]):(a=-1,u=r[0]),[a,s,u].map((function(t){return it(t,C)}))}(u),l=Pn(a,u),f=l.vertical,p=l.horizontal;return{multiple:n,centerSign:jn(a,u)<=0,verticalSign:f,horizontalSign:p,lineConstants:c,line:[Ar(e,i),Ar(e,s)]}}))}function Hn(t,e,r,n){var i=n?t.map((function(t){return Bt(t,n)})):t;return[[i[0],i[1]],[i[1],i[3]],[i[3],i[2]],[i[2],i[0]]].some((function(t){var n=jn(r,t)<=0;return!Ln(e,t,n)}))}function Wn(t,e,r,n,i){var o=t.props.innerBounds,a=i*Math.PI/180;if(!o)return[];var s=o.left,u=o.top,c=o.width,l=o.height,f=s-n[0],p=s+c-n[0],h=u-n[1],d=u+l-n[1],v=[[f,h],[p,h],[f,d],[p,d]],g=Ar(r,[0,0]);if(!Hn(r,v,g,0))return[];var y=[],m=v.map((function(t){return[Qi(t),et([0,0],t)]}));return[[r[0],r[1]],[r[1],r[3]],[r[3],r[2]],[r[2],r[0]]].forEach((function(t){var r=et([0,0],function(t){var e=__read(t,2),r=e[0],n=e[1],i=n[0]-r[0],o=n[1]-r[1];if(!i)return[r[0],0];if(!o)return[0,r[1]];var a=o/i,s=-a*r[0]+r[1];return[-s/(a+1/a),s/(a*a+1)]}(t)),n=function(t){var e=__read(t,2),r=e[0],n=e[1],i=n[0]-r[0],o=n[1]-r[1];if(!i)return Wo(r[0]);if(!o)return Wo(r[1]);var a=o/i;return Wo((-a*r[0]+r[1])/Math.sqrt(Math.pow(a,2)+1))}(t);y.push.apply(y,__spreadArray([],__read(m.filter((function(t){var e=__read(t,1)[0];return e&&n<=e})).map((function(t){var e=__read(t,2),i=e[0],o=e[1],s=Math.acos(i?n/i:0);return[a+(o+s)-r,a+(o-s)-r]})).reduce((function(t,e){return t.push.apply(t,__spreadArray([],__read(e),!1)),t}),[]).filter((function(t){return!Hn(e,v,g,t)})).map((function(t){return it(180*t/Math.PI,lr)}))),!1))})),y}function Vn(t,e,r,n,i){var o=function(t,e,r,n){var i=e[0]-t[0],o=e[1]-t[1];if(Wo(i)<C&&(i=0),Wo(o)<C&&(o=0),!i)return n?[0,0]:[0,r];if(!o)return n?[r,0]:[0,0];var a=o/i,s=t[1]-a*t[0];return n?[r,a*(e[0]+r)+s-e[1]]:[(e[1]+r-s)/a-e[0],r]}(t,e,r,n);if(!o)return{isOutside:!1,offset:[0,0]};var a=nt(t,e),s=nt(o,t),u=nt(o,e),c=s>a||u>a,l=__read(Cr({datas:i,distX:o[0],distY:o[1]}),2);return{offset:[l[0],l[1]],isOutside:c}}function Xn(t,e){return t.isBound?t.offset:e.isSnap?Rn(e).offset:0}function Yn(t,e,r,n,i,o){if(!Sn(t,"draggable"))return[{isSnap:!1,isBound:!1,offset:0},{isSnap:!1,isBound:!1,offset:0}];var a=fo(o.absolutePoses,[e,r]),s=Ji(a),u=s.left,c=s.right,l=s.top,f=s.bottom,p={horizontal:a.map((function(t){return t[1]})),vertical:a.map((function(t){return t[0]}))},h=$n(t,i,xn(wn(t.props.snapDirections),{left:u,right:c,top:l,bottom:f,center:(u+c)/2,middle:(l+f)/2}),p),d=h.vertical,v=h.horizontal,g=Un(t,a,o),y=g.vertical,m=g.horizontal,_=d.isSnap,b=v.isSnap,S=d.isBound||y.isBound,w=v.isBound||m.isBound,x=__read(function(t,e,r,n,i){var o=__read(e,2),a=o[0],s=o[1],u=__read(r,2),c=u[0],l=u[1],f=__read(n,2),p=f[0],h=f[1],d=__read(i,2),v=d[0],g=d[1],y=-v,m=-g;if(t&&a&&s){y=0,m=0;var _=[];if(c&&l?_.push([0,g],[v,0]):c?_.push([v,0]):l?_.push([0,g]):p&&h?_.push([0,g],[v,0]):p?_.push([v,0]):h&&_.push([0,g]),_.length){_.sort((function(t,e){return Qi(Ct([a,s],t))-Qi(Ct([a,s],e))}));var b=_[0];if(b[0]&&Wo(a)>C)y=-b[0],m=s*Wo(a+y)/Wo(a)-s;else if(b[1]&&Wo(s)>C){var S=s;m=-b[1],y=a*Wo(s+m)/Wo(S)-a}if(t&&l&&c)if(Wo(y)>C&&Wo(y)<Wo(v))y*=w=Wo(v)/Wo(y),m*=w;else if(Wo(m)>C&&Wo(m)<Wo(g)){var w;y*=w=Wo(g)/Wo(m),m*=w}else y=Co(-v,y),m=Co(-g,m)}}else y=a||c?-v:0,m=s||l?-g:0;return[y,m]}(n,[e,r],[S,w],[_,b],[Co(d.offset,y.offset),Co(v.offset,m.offset)]),2);return[{isBound:S,isSnap:_,offset:x[0]},{isBound:w,isSnap:b,offset:x[1]}]}function $n(t,e,r,n){void 0===n&&(n=r);var i=fn(pn(t),n.vertical,n.horizontal),o=i.horizontal,a=i.vertical,s=e?{horizontal:{isSnap:!1,index:-1},vertical:{isSnap:!1,index:-1}}:Cn(t,r.vertical,r.horizontal,void 0,void 0,void 0,void 0),u=s.horizontal,c=s.vertical,l=Xn(o[0],u),f=Xn(a[0],c),p=Wo(l),h=Wo(f);return{horizontal:{isBound:o[0].isBound,isSnap:u.isSnap,snapIndex:u.index,offset:l,dist:p,bounds:o,snap:u},vertical:{isBound:a[0].isBound,isSnap:c.isSnap,snapIndex:c.index,offset:f,dist:h,bounds:a,snap:c}}}function Jn(t,e,r,n,i,o,a){void 0===a&&(a=[1,1]);var s=fn(e,r,n),u=s.horizontal,c=s.vertical,l=Dn(t,r,n,[],[],i,o,a),f=l.horizontal,p=l.vertical,h=Xn(u[0],f),d=Xn(c[0],p),v=Wo(h),g=Wo(d);return{horizontal:{isBound:u[0].isBound,isSnap:f.isSnap,snapIndex:f.index,offset:h,dist:v,bounds:u,snap:f},vertical:{isBound:c[0].isBound,isSnap:p.isSnap,snapIndex:p.index,offset:d,dist:g,bounds:c,snap:p}}}function Zn(t,e,r,n,i,o){return r.map((function(r){var a=__read(r,2),s=a[0],u=a[1],c=Ar(e,s),l=Ar(e,u),f=n?function(t,e,r,n){var i=function(t,e,r){var n=pn(t),i=n.left,o=n.top,a=n.right,s=n.bottom,u=__read(r,2),c=u[0],l=u[1],f=__read(Ct(r,e),2),p=f[0],h=f[1];Wo(p)<lr&&(p=0),Wo(h)<lr&&(h=0);var d=h>0,v=p>0,g={isBound:!1,offset:0,pos:0},y={isBound:!1,offset:0,pos:0};if(0===p&&0===h)return{vertical:g,horizontal:y};if(0===p)d?s<l&&(y.pos=s,y.offset=l-s):o>l&&(y.pos=o,y.offset=l-o);else if(0===h)v?a<c&&(g.pos=a,g.offset=c-a):i>c&&(g.pos=i,g.offset=c-i);else{var m=h/p,_=r[1]-m*c,b=0,S=0,w=!1;v&&a<=c?(b=m*a+_,S=a,w=!0):!v&&c<=i&&(b=m*i+_,S=i,w=!0),w&&(b<o||b>s)&&(w=!1),w||(d&&s<=l?(S=((b=s)-_)/m,w=!0):!d&&l<=o&&(S=((b=o)-_)/m,w=!0)),w&&(g.isBound=!0,g.pos=S,g.offset=c-S,y.isBound=!0,y.pos=b,y.offset=l-b)}return{vertical:g,horizontal:y}}(t,e,r),o=i.horizontal,a=i.vertical,s=n?{horizontal:{isSnap:!1},vertical:{isSnap:!1}}:function(t,e,r){var n=__read(r,2),i=n[0],o=n[1],a=__read(e,2),s=a[0],u=a[1],c=__read(Ct(r,e),2),l=c[0],f=c[1],p=f>0,h=l>0;l=To(l),f=To(f);var d={isSnap:!1,offset:0,pos:0},v={isSnap:!1,offset:0,pos:0};if(0===l&&0===f)return{vertical:d,horizontal:v};var g=Cn(t,l?[i]:[],f?[o]:[],[],[],void 0,void 0),y=g.vertical,m=g.horizontal;y.posInfos.filter((function(t){var e=t.pos;return h?e>=s:e<=s})),m.posInfos.filter((function(t){var e=t.pos;return p?e>=u:e<=u})),y.isSnap=y.posInfos.length>0,m.isSnap=m.posInfos.length>0;var _=Rn(y),b=_.isSnap,S=_.guideline,w=Rn(m),x=w.isSnap,E=w.guideline,M=x?E.pos[1]:0,O=b?S.pos[0]:0;if(0===l)x&&(v.isSnap=!0,v.pos=E.pos[1],v.offset=o-v.pos);else if(0===f)b&&(d.isSnap=!0,d.pos=O,d.offset=i-O);else{var k=f/l,C=r[1]-k*i,D=0,I=0,A=!1;b?(D=k*(I=O)+C,A=!0):x&&(I=((D=M)-C)/k,A=!0),A&&(d.isSnap=!0,d.pos=I,d.offset=i-I,v.isSnap=!0,v.pos=D,v.offset=o-D)}return{vertical:d,horizontal:v}}(t,e,r),u=s.horizontal,c=s.vertical,l=Qn(o,u),f=Qn(a,c),p=Wo(l),h=Wo(f);return{horizontal:{isBound:o.isBound,isSnap:u.isSnap,offset:l,dist:p},vertical:{isBound:a.isBound,isSnap:c.isSnap,offset:f,dist:h}}}(t,c,l,i):$n(t,i,{vertical:[l[0]],horizontal:[l[1]]}),p=f.horizontal,h=p.offset,d=p.isBound,v=p.isSnap,g=f.vertical,y=g.offset,m=g.isBound,_=g.isSnap,b=Ct(u,s);if(!y&&!h)return{isBound:m||d,isSnap:_||v,sign:b,offset:[0,0]};var S=function(t,e,r,n){var i=et(t,e)/Math.PI*180,o=r.vertical,a=o.isBound,s=o.isSnap,u=o.dist,c=r.horizontal,l=c.isBound,f=c.isSnap,p=i%180,h=p<3||p>177,d=p>87&&p<93;return c.dist<u&&(a||s&&!d&&(!n||!h))?"vertical":!l&&(!f||h||n&&d)?"":"horizontal"}(c,l,f,n);if(!S)return{sign:b,isBound:!1,isSnap:!1,offset:[0,0]};var w="vertical"===S,x=[0,0];return x=(x=n||1!==Wo(u[0])||1!==Wo(u[1])||s[0]===u[0]||s[1]===u[1]?Vn(c,l,-(w?y:h),w,o).offset:Cr({datas:o,distX:-y,distY:-h})).map((function(t,e){return t*(b[e]?2/b[e]:0)})),{sign:b,isBound:w?m:d,isSnap:w?_:v,offset:x}}))}function Qn(t,e){return t.isBound?t.offset:e.isSnap?e.offset:0}var ti={name:"draggable",props:["draggable","throttleDrag","throttleDragRotate","hideThrottleDragRotateLine","startDragRotate","edgeDraggable"],events:["dragStart","drag","dragEnd","dragGroupStart","dragGroup","dragGroupEnd"],requestStyle:function(){return["left","top","right","bottom"]},requestChildStyle:function(){return["left","top","right","bottom"]},render:function(t,e){var r=t.props,n=r.hideThrottleDragRotateLine,i=r.throttleDragRotate,o=r.zoom,a=t.getState(),s=a.dragInfo,u=a.beforeOrigin;if(n||!i||!s)return[];var c=s.dist;if(!c[0]&&!c[1])return[];var l=Qi(c),f=et(c,[0,0]);return[e.createElement("div",{className:zi("line","horizontal","dragline","dashed"),key:"dragRotateGuideline",style:{width:"".concat(l,"px"),transform:"translate(".concat(u[0],"px, ").concat(u[1],"px) rotate(").concat(f,"rad) scaleY(").concat(o,")")}})]},dragStart:function(t,e){var r=e.datas,n=e.parentEvent,i=e.parentGesto,o=t.state,a=o.gestos,s=o.style;if(a.draggable)return!1;a.draggable=i||t.targetGesto,r.datas={},r.left=parseFloat(s.left||"")||0,r.top=parseFloat(s.top||"")||0,r.bottom=parseFloat(s.bottom||"")||0,r.right=parseFloat(s.right||"")||0,r.startValue=[0,0],wr(t,e),zr(t,e,"translate"),function(t,e){e.absolutePoses=po(t.state)}(t,r),r.prevDist=[0,0],r.prevBeforeDist=[0,0],r.isDrag=!1,r.deltaOffset=[0,0];var u=mo(t,e,Fe({set:function(t){r.startValue=t}},Tr(t,e)));return!1!==(n||So(t,"onDragStart",u))?(r.isDrag=!0,t.state.dragInfo={startRect:t.getRect(),dist:[0,0]}):(a.draggable=null,r.isPinch=!1),!!r.isDrag&&u},drag:function(t,e){if(e){xr(t,e,"translate");var r=e.datas,n=e.parentEvent,i=e.parentFlag,o=e.isPinch,a=e.deltaOffset,s=e.useSnap,u=e.isRequest,c=e.isGroup,l=e.parentThrottleDrag,f=e.distX,p=e.distY,h=r.isDrag,d=r.prevDist,v=r.prevBeforeDist,g=r.startValue;if(h){a&&(f+=a[0],p+=a[1]);var y=t.props,m=y.parentMoveable,_=c?0:y.throttleDrag||l||0,b=n?0:y.throttleDragRotate||0,S=0,w=!1,x=!1,E=!1,M=!1;if(!n&&b>0&&(f||p)){var O=y.startDragRotate||0,k=it(O+180*et([0,0],[f,p])/Math.PI,b)-O,C=p*Math.abs(Math.cos((k-90)/180*Math.PI)),D=Qi([f*Math.abs(Math.cos(k/180*Math.PI)),C]);S=k*Math.PI/180,f=D*Math.cos(S),p=D*Math.sin(S)}if(!o&&!n&&!i){var I=__read(Yn(t,f,p,b,!s&&u||a,r),2),A=I[0],R=I[1];w=A.isSnap,x=A.isBound,E=R.isSnap,M=R.isBound,f+=A.offset,p+=R.offset}var T=kt(kr({datas:r,distX:f,distY:p}),g),z=kt(Mr({datas:r,distX:f,distY:p}),g);ot(z,lr),ot(T,lr),b||(w||x||(z[0]=it(z[0],_),T[0]=it(T[0],_)),E||M||(z[1]=it(z[1],_),T[1]=it(T[1],_)));var B=Ct(T,g),q=Ct(z,g),P=Ct(q,d),j=Ct(B,v);r.prevDist=q,r.prevBeforeDist=B,r.passDelta=P,r.passDist=q;var L=r.left+B[0],K=r.top+B[1],N=r.right-B[0],F=r.bottom-B[1],U=Er(r,"translate(".concat(z[0],"px, ").concat(z[1],"px)"),"translate(".concat(q[0],"px, ").concat(q[1],"px)"));if(qr(e,U),t.state.dragInfo.dist=n?[0,0]:q,n||m||!P.every((function(t){return!t}))||!j.some((function(t){return!t}))){var G=t.state,H=G.width,W=G.height,V=mo(t,e,Fe({transform:U,dist:q,delta:P,translate:z,beforeDist:B,beforeDelta:j,beforeTranslate:T,left:L,top:K,right:N,bottom:F,width:H,height:W,isPinch:o},go({transform:U},e)));return!n&&So(t,"onDrag",V),V}}}},dragAfter:function(t,e){var r=e.datas,n=r.deltaOffset;return!(!n[0]&&!n[1])&&(r.deltaOffset=[0,0],this.drag(t,Fe(Fe({},e),{deltaOffset:n})))},dragEnd:function(t,e){var r=e.parentEvent,n=e.datas;if(t.state.dragInfo=null,n.isDrag){n.isDrag=!1;var i=_o(t,e,{});return!r&&So(t,"onDragEnd",i),i}},dragGroupStart:function(t,e){var r,n,i=e.datas,o=e.clientX,a=e.clientY,s=this.dragStart(t,e);if(!s)return!1;var u=tn(t,this,"dragStart",[o||0,a||0],e,!1,"draggable"),c=u.childEvents,l=u.eventParams,f=So(t,"onDragGroupStart",Fe(Fe({},s),{targets:t.props.targets,events:l}));i.isDrag=!1!==f;var p=null!==(n=null===(r=c[0])||void 0===r?void 0:r.datas.startValue)&&void 0!==n?n:[0,0];return i.throttleOffset=[p[0]%1,p[1]%1],!!i.isDrag&&s},dragGroup:function(t,e){if(e.datas.isDrag){var r=this.drag(t,Fe(Fe({},e),{parentThrottleDrag:t.props.throttleDrag})),n=tn(t,this,"drag",e.datas.passDelta,e,!1,"draggable").eventParams;if(r){var i=Fe({targets:t.props.targets,events:n},r);return So(t,"onDragGroup",i),i}}},dragGroupEnd:function(t,e){var r=e.isDrag;if(e.datas.isDrag){this.dragEnd(t,e);var n=tn(t,this,"dragEnd",[0,0],e,!1,"draggable").eventParams;return So(t,"onDragGroupEnd",_o(t,e,{targets:t.props.targets,events:n})),r}},request:function(t){var e={},r=t.getRect(),n=0,i=0,o=!1;return{isControl:!1,requestStart:function(t){return o=t.useSnap,{datas:e,useSnap:o}},request:function(t){return"x"in t?n=t.x-r.left:"deltaX"in t&&(n+=t.deltaX),"y"in t?i=t.y-r.top:"deltaY"in t&&(i+=t.deltaY),{datas:e,distX:n,distY:i,useSnap:o}},requestEnd:function(){return{datas:e,isDrag:!0,useSnap:o}}}},unset:function(t){t.state.gestos.draggable=null,t.state.dragInfo=null}};function ei(t,e){return{fixedPosition:Ar(t,e),fixedDirection:e,fixedOffset:[0,0]}}function ri(t,e){var r=t.allMatrix,n=t.is3d,i=t.width,o=t.height,a=n?4:3,s=function(t,e,r){return[e?t[0]/(e/2)-1:0,r?t[1]/(r/2)-1:0]}(e,i,o);return{fixedPosition:Yi(r,e,a),fixedDirection:s,fixedOffset:[i?0:e[0],o?0:e[1]]}}var ni=Bo("resizable"),ii={name:"resizable",ableGroup:"size",canPinch:!0,props:["resizable","throttleResize","renderDirections","displayAroundControls","keepRatio","resizeFormat","keepRatioFinally","edge","checkResizableError"],events:["resizeStart","beforeResize","resize","resizeEnd","resizeGroupStart","beforeResizeGroup","resizeGroup","resizeGroupEnd"],render:un("resizable"),dragControlCondition:ni,viewClassName:zo("resizable"),dragControlStart:function(t,e){var r,n=e.inputEvent,i=e.isPinch,o=e.isGroup,a=e.parentDirection,s=e.parentGesto,u=e.datas,c=e.parentFixedDirection,l=e.parentEvent,f=co(a,i,n,u),p=t.state,h=p.target,d=p.width,v=p.height,g=p.gestos;if(!f||!h)return!1;if(g.resizable)return!1;g.resizable=s||t.controlGesto,!i&&wr(t,e),u.datas={},u.direction=f,u.startOffsetWidth=d,u.startOffsetHeight=v,u.prevWidth=0,u.prevHeight=0,u.minSize=[0,0],u.startWidth=p.inlineCSSWidth||p.cssWidth,u.startHeight=p.inlineCSSHeight||p.cssHeight,u.maxSize=[1/0,1/0],o||(u.minSize=[p.minOffsetWidth,p.minOffsetHeight],u.maxSize=[p.maxOffsetWidth,p.maxOffsetHeight]);var y=t.props.transformOrigin||"% %";function m(t){u.ratio=t&&isFinite(t)?t:0}function _(t){var e=ei(u.startPositions,t);u.fixedDirection=e.fixedDirection,u.fixedPosition=e.fixedPosition,u.fixedOffset=e.fixedOffset}function b(e){var r=ri(t.state,e);u.fixedDirection=r.fixedDirection,u.fixedPosition=r.fixedPosition,u.fixedOffset=r.fixedOffset}function S(t){u.minSize=[$("".concat(t[0]),0)||0,$("".concat(t[1]),0)||0]}function w(t){var e=[t[0]||1/0,t[1]||1/0];B(e[0])&&!isFinite(e[0])||(e[0]=$("".concat(e[0]),0)||1/0),B(e[1])&&!isFinite(e[1])||(e[1]=$("".concat(e[1]),0)||1/0),u.maxSize=e}u.transformOrigin=y&&z(y)?y.split(" "):y,u.startOffsetMatrix=p.offsetMatrix,u.startTransformOrigin=p.transformOrigin,u.isWidth=null!==(r=null==e?void 0:e.parentIsWidth)&&void 0!==r?r:!f[0]&&!f[1]||f[0]||!f[1],u.startPositions=po(t.state),m(d/v),_(c||[-f[0],-f[1]]),u.setFixedDirection=_,u.setFixedPosition=b,u.setMin=S,u.setMax=w;var x=mo(t,e,{direction:f,startRatio:u.ratio,set:function(t){var e=__read(t,2),r=e[0],n=e[1];u.startWidth=r,u.startHeight=n},setMin:S,setMax:w,setRatio:m,setFixedDirection:_,setFixedPosition:b,setOrigin:function(t){u.transformOrigin=t},dragStart:ti.dragStart(t,(new _r).dragStart([0,0],e))}),E=l||So(t,"onResizeStart",x);return u.startFixedDirection=u.fixedDirection,u.startFixedPosition=u.fixedPosition,!1!==E&&(u.isResize=!0,t.state.snapRenderInfo={request:e.isRequest,direction:f}),!!u.isResize&&x},dragControl:function(t,e){var r,n=e.datas,i=e.parentFlag,o=e.isPinch,a=e.parentKeepRatio,s=e.dragClient,u=e.parentDist,c=e.useSnap,l=e.isRequest,f=e.isGroup,p=e.parentEvent,h=e.resolveMatrix,d=n.isResize,v=n.transformOrigin,g=n.startWidth,y=n.startHeight,m=n.prevWidth,_=n.prevHeight,b=n.minSize,S=n.maxSize,w=n.ratio,x=n.startOffsetWidth,E=n.startOffsetHeight,M=n.isWidth;if(d){if(h){var O=t.state.is3d,k=n.startOffsetMatrix,C=n.startTransformOrigin,D=O?4:3,I=Ut(jr(e)),A=Math.sqrt(I.length);D!==A&&(I=Et(I,A,D));var R=Rr(k,I,C,D),T=$i(R,x,E,D);n.startPositions=T,n.nextTargetMatrix=I,n.nextAllMatrix=R}var z=no(t.props,"resizable"),B=z.resizeFormat,q=z.throttleResize,P=void 0===q?i?0:1:q,j=z.parentMoveable,L=z.keepRatioFinally,K=n.direction,N=K,F=0,U=0;K[0]||K[1]||(N=[1,1]);var G=w&&(null!=a?a:z.keepRatio)||!1,H=__read(at(),2),W=H[0],V=H[1];p||(n.setFixedDirection(n.fixedDirection),So(t,"onBeforeResize",mo(t,e,{startFixedDirection:n.startFixedDirection,startFixedPosition:n.startFixedPosition,setFixedDirection:function(t){var e;return n.setFixedDirection(t),e=__read(at(),2),W=e[0],V=e[1],[W,V]},setFixedPosition:function(t){var e;return n.setFixedPosition(t),e=__read(at(),2),W=e[0],V=e[1],[W,V]},boundingWidth:W,boundingHeight:V,setSize:function(t){var e;e=__read(t,2),W=e[0],V=e[1]}},!0)));var X=s;s||(X=!i&&o?function(t,e){return Ar(po(t.state),e)}(t,[0,0]):n.fixedPosition);var Y=[0,0];if(o||(Y=function(t,e,r,n,i,o,a){if(!Sn(t,"resizable"))return[0,0];var s=a.fixedDirection,u=a.nextAllMatrix,c=t.state,l=c.allMatrix,f=c.is3d;return Mi(t,(function(t,n){return wi(u||l,e+t,r+n,s,i,f)}),e,r,n,i,o,a)}(t,W,V,K,X,!c&&l,n)),u&&(!u[0]&&(Y[0]=0),!u[1]&&(Y[1]=0)),G){N[0]&&N[1]&&Y[0]&&Y[1]&&(Wo(Y[0])>Wo(Y[1])?Y[1]=0:Y[0]=0);var $=!Y[0]&&!Y[1];$&&st(),N[0]&&!N[1]||Y[0]&&!Y[1]||$&&M?(W+=Y[0],V=W/w):(!N[0]&&N[1]||!Y[0]&&Y[1]||$&&!M)&&(V+=Y[1],W=V*w)}else W+=Y[0],V+=Y[1],W=Math.max(0,W),V=Math.max(0,V);r=__read(Q([W,V],b,S,!!G&&w),2),W=r[0],V=r[1],st(),G&&(f||L)&&(M?V=W/w:W=V*w);var J=[(F=W-x)-m,(U=V-E)-_];n.prevWidth=F,n.prevHeight=U;var Z=Gr(t,W,V,X,v,n);if(j||!J.every((function(t){return!t}))||!Z.every((function(t){return!t}))){var tt=ti.drag(t,mr(e,t.state,Z,!!o,!1,"draggable")),et=tt.transform,rt=g+F,nt=y+U,ot=mo(t,e,Fe({width:rt,height:nt,offsetWidth:Math.round(W),offsetHeight:Math.round(V),startRatio:w,boundingWidth:W,boundingHeight:V,direction:K,dist:[F,U],delta:J,isPinch:!!o,drag:tt},yo({style:{width:"".concat(rt,"px"),height:"".concat(nt,"px")},transform:et},tt,e)));return!p&&So(t,"onResize",ot),ot}}function at(){var t=n.fixedDirection,r=Ko(N,G,n,e);F=r.distWidth,U=r.distHeight;var i=N[0]-t[0]||G?Math.max(x+F,lr):x,o=N[1]-t[1]||G?Math.max(E+U,lr):E;return G&&x&&E&&(M?o=i/w:i=o*w),[i,o]}function st(){var t;B&&(t=__read(B([W,V]),2),W=t[0],V=t[1]),W=it(W,P),V=it(V,P)}},dragControlAfter:function(t,e){var r=e.datas,n=r.isResize,i=r.startOffsetWidth,o=r.startOffsetHeight,a=r.prevWidth,s=r.prevHeight;if(n&&!1!==t.props.checkResizableError){var u=t.state,c=u.width-(i+a),l=u.height-(o+s),f=Wo(c)>3,p=Wo(l)>3;return f&&(r.startWidth+=c,r.startOffsetWidth+=c,r.prevWidth+=c),p&&(r.startHeight+=l,r.startOffsetHeight+=l,r.prevHeight+=l),f||p?this.dragControl(t,e):void 0}},dragControlEnd:function(t,e){var r=e.datas,n=e.parentEvent;if(r.isResize){r.isResize=!1;var i=_o(t,e,{});return!n&&So(t,"onResizeEnd",i),i}},dragGroupControlCondition:ni,dragGroupControlStart:function(t,e){var r=e.datas,n=this.dragControlStart(t,Fe(Fe({},e),{isGroup:!0}));if(!n)return!1;var i=Qr(t,"resizable",e),o=r.startOffsetWidth,a=r.startOffsetHeight;function s(){var t=r.minSize;i.forEach((function(e){var r=e.datas,n=r.minSize,i=r.startOffsetWidth,s=r.startOffsetHeight,u=o*(i?n[0]/i:0),c=a*(s?n[1]/s:0);t[0]=Math.max(t[0],u),t[1]=Math.max(t[1],c)}))}function u(){var t=r.maxSize;i.forEach((function(e){var r=e.datas,n=r.maxSize,i=r.startOffsetWidth,s=r.startOffsetHeight,u=o*(i?n[0]/i:0),c=a*(s?n[1]/s:0);t[0]=Math.min(t[0],u),t[1]=Math.min(t[1],c)}))}var c=en(t,this,"dragControlStart",e,(function(e,n){return rn(t,e,r,n)}));s(),u();var l=function(e){n.setFixedDirection(e),c.forEach((function(n,o){n.setFixedDirection(e),rn(t,n.moveable,r,i[o])}))};r.setFixedDirection=l;var f=Fe(Fe({},n),{targets:t.props.targets,events:c.map((function(t){return Fe(Fe({},t),{setMin:function(e){t.setMin(e),s()},setMax:function(e){t.setMax(e),u()}})})),setFixedDirection:l,setMin:function(t){n.setMin(t),s()},setMax:function(t){n.setMax(t),u()}}),p=So(t,"onResizeGroupStart",f);return r.isResize=!1!==p,!!r.isResize&&n},dragGroupControl:function(t,e){var r=e.datas;if(r.isResize){var n=no(t.props,"resizable");bo(t,"onBeforeResize",(function(r){So(t,"onBeforeResizeGroup",mo(t,e,Fe(Fe({},r),{targets:n.targets}),!0))}));var i=this.dragControl(t,Fe(Fe({},e),{isGroup:!0}));if(i){var o=i.boundingWidth,a=i.boundingHeight,s=i.dist,u=n.keepRatio,c=[o/(o-s[0]),a/(a-s[1])],l=r.fixedPosition,f=en(t,this,"dragControl",e,(function(e,r){var n=__read(It(jt(t.rotation/180*Math.PI,3),[r.datas.originalX*c[0],r.datas.originalY*c[1],1],3),2),i=n[0],o=n[1];return Fe(Fe({},r),{parentDist:null,parentScale:c,dragClient:kt(l,[i,o]),parentKeepRatio:u})})),p=Fe({targets:n.targets,events:f},i);return So(t,"onResizeGroup",p),p}}},dragGroupControlEnd:function(t,e){var r=e.isDrag;if(e.datas.isResize){this.dragControlEnd(t,e);var n=en(t,this,"dragControlEnd",e);return So(t,"onResizeGroupEnd",_o(t,e,{targets:t.props.targets,events:n})),r}},request:function(t){var e={},r=0,n=0,i=!1,o=t.getRect();return{isControl:!0,requestStart:function(t){var r;return i=t.useSnap,{datas:e,parentDirection:t.direction||[1,1],parentIsWidth:null===(r=null==t?void 0:t.horizontal)||void 0===r||r,useSnap:i}},request:function(t){return"offsetWidth"in t?r=t.offsetWidth-o.offsetWidth:"deltaWidth"in t&&(r+=t.deltaWidth),"offsetHeight"in t?n=t.offsetHeight-o.offsetHeight:"deltaHeight"in t&&(n+=t.deltaHeight),{datas:e,parentDist:[r,n],parentKeepRatio:t.keepRatio,useSnap:i}},requestEnd:function(){return{datas:e,isDrag:!0,useSnap:i}}}},unset:function(t){t.state.gestos.resizable=null}};function oi(t,e,r,n,i){var o=t.props.groupable,a=t.state,s=a.is3d?4:3,u=e.origin,c=Yi(t.state.rootMatrix,Ct([u[0],u[1]],o?[0,0]:[a.left,a.top]),s),l=kt([i.left,i.top],c);e.startAbsoluteOrigin=l,e.prevDeg=et(l,[r,n])/Math.PI*180,e.defaultDeg=e.prevDeg,e.prevSnapDeg=0,e.loop=0,e.startDist=nt(l,[r,n])}function ai(t,e,r){var n=r.defaultDeg,i=r.prevDeg,o=i%360,a=Math.floor(i/360);o<0&&(o+=360),o>t&&o>270&&t<90?++a:o<t&&o<90&&t>270&&--a;var s=e*(360*a+t-n);return r.prevDeg=n+s,s}function si(t,e,r,n){return ai(et(n.startAbsoluteOrigin,[t,e])/Math.PI*180,r,n)}function ui(t,e,r,n,i,o){var a=t.props.throttleRotate,s=void 0===a?0:a,u=r.prevSnapDeg,c=0,l=!1;if(o){var f=function(t,e,r,n){var i,o=t.props,a=null!==(i=o[En])&&void 0!==i?i:5,s=o[Mn];if(Sn(t,"rotatable")){var u=e.pos1,c=e.pos2,l=e.pos3,f=e.pos4,p=e.origin,h=r*Math.PI/180,d=[u,c,l,f].map((function(t){return Ct(t,p)})),v=d.map((function(t){return Bt(t,h)})),g=__spreadArray(__spreadArray([],__read(vn(t,d,v,p,r)),!1),__read(Wn(t,d,v,p,r)),!1);g.sort((function(t,e){return Wo(t-r)-Wo(e-r)}));var y=g.length>0;if(y)return{isSnap:y,dist:y?g[0]:r}}if((null==s?void 0:s.length)&&a){var m=s.slice().sort((function(t,e){return Ci(t,n)-Ci(e,n)}))[0];if(Ci(m,n)<=a)return{isSnap:!0,dist:r+ki(n,m)-n}}return{isSnap:!1,dist:r}}(t,e,n,i+n);l=f.isSnap,c=i+f.dist}l||(c=it(i+n,s));var p=c-i;return r.prevSnapDeg=p,[p-u,p,c]}function ci(t,e,r){var n=__read(e,4),i=n[0],o=n[1],a=n[2],s=n[3];if("none"===t)return[];if(T(t))return t.map((function(t){return ci(t,[i,o,a,s],r)[0]}));var u=__read((t||"top").split("-"),2),c=u[0],l=u[1],f=[i,o];"left"===c?f=[a,i]:"right"===c?f=[o,s]:"bottom"===c&&(f=[s,a]);var p=[(f[0][0]+f[1][0])/2,(f[0][1]+f[1][1])/2],h=oo(f,r);if(l){var d="top"===l||"left"===l,v="bottom"===c||"left"===c;p=f[d&&!v||!d&&v?0:1]}return[[p,h]]}function li(t,e){if(e.isRequest)return"rotatable"===e.requestAble;var r=e.inputEvent.target;if(at(r,zi("rotation-control"))||t.props.rotateAroundControls&&at(r,zi("around-control"))||at(r,zi("control"))&&at(r,zi("rotatable")))return!0;var n=t.props.rotationTarget;return!!n&&Po(n,!0).some((function(t){return!!t&&(r===t||r.contains(t))}))}var fi={name:"rotatable",canPinch:!0,props:["rotatable","rotationPosition","throttleRotate","renderDirections","rotationTarget","rotateAroundControls","edge","resolveAblesWithRotatable","displayAroundControls"],events:["rotateStart","beforeRotate","rotate","rotateEnd","rotateGroupStart","beforeRotateGroup","rotateGroup","rotateGroupEnd"],css:[".rotation {\nposition: absolute;\nheight: 40px;\nwidth: 1px;\ntransform-origin: 50% 100%;\nheight: calc(40px * var(--zoom));\ntop: auto;\nleft: 0;\nbottom: 100%;\nwill-change: transform;\n}\n.rotation .rotation-line {\ndisplay: block;\nwidth: 100%;\nheight: 100%;\ntransform-origin: 50% 50%;\n}\n.rotation .rotation-control {\nborder-color: #4af;\nborder-color: var(--moveable-color);\nbackground:#fff;\ncursor: alias;\n}\n:global .view-rotation-dragging, .rotatable.direction.control {\ncursor: alias;\n}\n.rotatable.direction.control.move {\ncursor: move;\n}\n"],viewClassName:function(t){return t.isDragging("rotatable")?zi("view-rotation-dragging"):""},render:function(t,e){var r=no(t.props,"rotatable"),n=r.rotatable,i=r.rotationPosition,o=r.zoom,a=r.renderDirections,s=r.rotateAroundControls,u=r.resolveAblesWithRotatable,c=t.getState(),l=c.renderPoses,f=c.direction;if(!n)return null;var p=ci(i,l,f),h=[];if(p.forEach((function(t,r){var n=__read(t,2),i=n[0],a=n[1];h.push(e.createElement("div",{key:"rotation".concat(r),className:zi("rotation"),style:{transform:"translate(-50%) translate(".concat(i[0],"px, ").concat(i[1],"px) rotate(").concat(a,"rad)")}},e.createElement("div",{className:zi("line rotation-line"),style:{transform:"scaleX(".concat(o,")")}}),e.createElement("div",{className:zi("control rotation-control"),style:{transform:"translate(0.5px) scale(".concat(o,")")}})))})),a){var d=Y(u||{}),v={};d.forEach((function(t){u[t].forEach((function(e){v[e]=t}))}));var g=[];T(a)&&(g=a.map((function(t){var e=v[t];return{data:e?{resolve:e}:{},classNames:e?["move"]:[],dir:t}}))),h.push.apply(h,__spreadArray([],__read(nn(t,"rotatable",g,e)),!1))}return s&&h.push.apply(h,__spreadArray([],__read(ln(t,e)),!1)),h},dragControlCondition:li,dragControlStart:function(t,e){var r,n,i=e.datas,o=e.clientX,a=e.clientY,s=e.parentRotate,u=e.parentFlag,c=e.isPinch,l=e.isRequest,f=t.state,p=f.target,h=f.left,d=f.top,v=f.direction,g=f.beforeDirection,y=f.targetTransform,m=f.moveableClientRect,_=f.offsetMatrix,b=f.targetMatrix,S=f.allMatrix,w=f.width,x=f.height;if(!l&&!p)return!1;var E=t.getRect();i.rect=E,i.transform=y,i.left=h,i.top=d;var M=function(e){var r=ri(t.state,e);i.fixedDirection=r.fixedDirection,i.fixedOffset=r.fixedOffset,i.fixedPosition=r.fixedPosition,P&&P.setFixedPosition(e)},O=function(e){var r=function(t,e){var r=t.allMatrix,n=t.is3d,i=t.width,o=t.height,a=n?4:3;return{fixedPosition:Yi(r,[i/2*(1+e[0]),o/2*(1+e[1])],a),fixedDirection:e,fixedOffset:[0,0]}}(t.state,e);i.fixedDirection=r.fixedDirection,i.fixedOffset=r.fixedOffset,i.fixedPosition=r.fixedPosition,P&&P.setFixedDirection(e)},k=o,C=a;if(l||c||u){var D=s||0;i.beforeInfo={origin:E.beforeOrigin,prevDeg:D,defaultDeg:D,prevSnapDeg:0,startDist:0},i.afterInfo=Fe(Fe({},i.beforeInfo),{origin:E.origin}),i.absoluteInfo=Fe(Fe({},i.beforeInfo),{origin:E.origin,startValue:D})}else{var I=null===(n=e.inputEvent)||void 0===n?void 0:n.target;if(I){var A=I.getAttribute("data-direction")||"",R=dr[A];if(R){i.isControl=!0,i.isAroundControl=at(I,zi("around-control")),i.controlDirection=R;var T=I.getAttribute("data-resolve");T&&(i.resolveAble=T);var z=function(t,e,r){var n=16===t.length?4:3,i=e.map((function(e){return Yi(t,e,n)})),o=r.left,a=r.top;return i.map((function(t){return[t[0]+o,t[1]+a]}))}(f.rootMatrix,f.renderPoses,m);r=__read(Ar(z,R),2),k=r[0],C=r[1]}}i.beforeInfo={origin:E.beforeOrigin},i.afterInfo={origin:E.origin},i.absoluteInfo={origin:E.origin,startValue:E.rotation};var B=M;M=function(e){var r=f.is3d?4:3,n=__read(kt(wt(b,r),e),2),o=n[0],a=n[1],s=It(_,xt([o,a],r)),u=It(S,xt([e[0],e[1]],r));B(e);var c=f.posDelta;i.beforeInfo.origin=Ct(s,c),i.afterInfo.origin=Ct(u,c),i.absoluteInfo.origin=Ct(u,c),oi(t,i.beforeInfo,k,C,m),oi(t,i.afterInfo,k,C,m),oi(t,i.absoluteInfo,k,C,m)},O=function(t){var e=Ar([[0,0],[w,0],[0,x],[w,x]],t);M(e)}}i.startClientX=k,i.startClientY=C,i.direction=v,i.beforeDirection=g,i.startValue=0,i.datas={},zr(t,e,"rotate");var q=!1,P=!1;i.isControl&&i.resolveAble&&("resizable"===i.resolveAble&&(P=ii.dragControlStart(t,Fe(Fe({},new _r("resizable").dragStart([0,0],e)),{parentPosition:i.controlPosition,parentFixedPosition:i.fixedPosition}))));P||(q=ti.dragStart(t,(new _r).dragStart([0,0],e))),M(function(t){var e=t.props,r=e.groupable,n=e.svgOrigin,i=t.getState(),o=i.offsetWidth,a=i.offsetHeight,s=i.svg,u=i.transformOrigin;if(!r&&s&&n)return Fo(n,o,a);return u}(t));var j=mo(t,e,Fe(Fe({set:function(t){i.startValue=t*Math.PI/180},setFixedDirection:O,setFixedPosition:M},Tr(t,e)),{dragStart:q,resizeStart:P})),L=So(t,"onRotateStart",j);return i.isRotate=!1!==L,f.snapRenderInfo={request:e.isRequest},!!i.isRotate&&j},dragControl:function(t,e){var r,n,i,o=e.datas,a=e.clientDistX,s=e.clientDistY,u=e.parentRotate,c=e.parentFlag,l=e.isPinch,f=e.groupDelta,p=e.resolveMatrix,h=o.beforeDirection,d=o.beforeInfo,v=o.afterInfo,g=o.absoluteInfo,y=o.isRotate,m=o.startValue,_=o.rect,b=o.startClientX,S=o.startClientY;if(y){xr(t,e,"rotate");var w,x,E,M,O,k,C,D,I,A=function(t){return br(t.datas.beforeTransform,[50,50],100,100).direction}(e),R=h*A,T=t.props.parentMoveable,z=180/Math.PI*m,B=g.startValue,q=!1,P=b+a,j=S+s;if(!c&&"parentDist"in e){var L=e.parentDist;x=L,O=L,D=L}else l||c?(x=ai(u,h,d),O=ai(u,R,v),D=ai(u,R,g)):(x=si(P,j,h,d),O=si(P,j,R,v),D=si(P,j,R,g),q=!0);if(So(t,"onBeforeRotate",mo(t,e,{beforeRotation:E=z+x,rotation:k=z+O,absoluteRotation:I=B+D,setRotation:function(t){x=O=t-z,D=O}},!0)),w=(r=__read(ui(t,_,d,x,z,q),3))[0],x=r[1],E=r[2],M=(n=__read(ui(t,_,v,O,z,q),3))[0],O=n[1],k=n[2],C=(i=__read(ui(t,_,g,D,B,q),3))[0],D=i[1],I=i[2],C||M||w||T||p){var K=Er(o,"rotate(".concat(k,"deg)"),"rotate(".concat(O,"deg)"));p&&(o.fixedPosition=Fr(t,o.targetAllTransform,o.fixedDirection,o.fixedOffset,o));var N=function(t,e,r){var n=r.fixedDirection,i=r.fixedPosition,o=r.fixedOffset;return Ur(t,"rotate(".concat(e,"deg)"),n,i,o,r)}(t,O,o),F=Ct(kt(f||[0,0],N),o.prevInverseDist||[0,0]);o.prevInverseDist=N,o.requestValue=null;var U=Nr(t,K,F,l,e),G=U,H=nt([P,j],g.startAbsoluteOrigin)-g.startDist,W=void 0;if("resizable"===o.resolveAble){var V=ii.dragControl(t,Fe(Fe({},mr(e,t.state,[e.deltaX,e.deltaY],!!l,!1,"resizable")),{resolveMatrix:!0,parentDistance:H}));V&&(W=V,G=yo(G,V,e))}var X=mo(t,e,Fe(Fe({delta:M,dist:O,rotate:k,rotation:k,beforeDist:x,beforeDelta:w,beforeRotate:E,beforeRotation:E,absoluteDist:D,absoluteDelta:C,absoluteRotate:I,absoluteRotation:I,isPinch:!!l,resize:W},U),G));return So(t,"onRotate",X),X}}},dragControlEnd:function(t,e){var r=e.datas;if(r.isRotate){r.isRotate=!1;var n=_o(t,e,{});return So(t,"onRotateEnd",n),n}},dragGroupControlCondition:li,dragGroupControlStart:function(t,e){var r=e.datas,n=t.state,i=n.left,o=n.top,a=n.beforeOrigin,s=this.dragControlStart(t,e);if(!s)return!1;s.set(r.beforeDirection*t.rotation);var u=en(t,this,"dragControlStart",e,(function(t,e){var r=t.state,n=r.left,s=r.top,u=r.beforeOrigin,c=kt(Ct([n,s],[i,o]),Ct(u,a));return e.datas.startGroupClient=c,e.datas.groupClient=c,Fe(Fe({},e),{parentRotate:0})})),c=So(t,"onRotateGroupStart",Fe(Fe({},s),{targets:t.props.targets,events:u}));return r.isRotate=!1!==c,!!r.isRotate&&s},dragGroupControl:function(t,e){var r=e.datas;if(r.isRotate){bo(t,"onBeforeRotate",(function(r){So(t,"onBeforeRotateGroup",mo(t,e,Fe(Fe({},r),{targets:t.props.targets}),!0))}));var n=this.dragControl(t,e);if(n){var i=r.beforeDirection,o=n.beforeDist,a=o/180*Math.PI,s=en(t,this,"dragControl",e,(function(t,e){var r=e.datas.startGroupClient,n=__read(e.datas.groupClient,2),s=n[0],u=n[1],c=__read(Bt(r,a*i),2),l=c[0],f=c[1],p=[l-s,f-u];return e.datas.groupClient=[l,f],Fe(Fe({},e),{parentRotate:o,groupDelta:p})}));t.rotation=i*n.beforeRotation;var u=Fe({targets:t.props.targets,events:s,set:function(e){t.rotation=e},setGroupRotation:function(e){t.rotation=e}},n);return So(t,"onRotateGroup",u),u}}},dragGroupControlEnd:function(t,e){var r=e.isDrag;if(e.datas.isRotate){this.dragControlEnd(t,e);var n=en(t,this,"dragControlEnd",e);return So(t,"onRotateGroupEnd",_o(t,e,{targets:t.props.targets,events:n})),r}},request:function(t){var e={},r=0,n=t.getRotation();return{isControl:!0,requestStart:function(){return{datas:e}},request:function(t){return"deltaRotate"in t?r+=t.deltaRotate:"rotate"in t&&(r=t.rotate-n),{datas:e,parentDist:r}},requestEnd:function(){return{datas:e,isDrag:!0}}}}};function pi(t,e){return function(t,e){var r,n=t.direction,i=t.classNames,o=t.size,a=t.pos,s=t.zoom,u=t.key,c="horizontal"===n,l=c?"Y":"X";return e.createElement("div",{key:u,className:i.join(" "),style:(r={},r[c?"width":"height"]="".concat(o),r.transform="translate(".concat(a[0],", ").concat(a[1],") translate").concat(l,"(-50%) scale").concat(l,"(").concat(s,")"),r)})}(Fe(Fe({},t),{classNames:__spreadArray([zi("line","guideline",t.direction)],__read(t.classNames),!1).filter((function(t){return t})),size:t.size||"".concat(t.sizeValue,"px"),pos:t.pos||t.posValue.map((function(t){return"".concat(it(t,.1),"px")}))}),e)}function hi(t,e,r,n,i,o,a,s){var u=t.props.zoom;return r.map((function(t,r){var c=t.type,l=t.pos,f=[0,0];return f[a]=n,f[a?0:1]=-i+l,pi({key:"".concat(e,"TargetGuideline").concat(r),classNames:[zi("target","bold",c)],posValue:f,sizeValue:o,zoom:u,direction:e},s)}))}function di(t,e,r,n,i,o){var a=t.props,s=a.zoom,u=a.isDisplayInnerSnapDigit,c="horizontal"===e?_n:bn,l=i[c.start],f=i[c.end];return r.filter((function(t){var e=t.hide,r=t.elementRect;if(e)return!1;if(u&&r){var n=r.rect;if(n[c.start]<=l&&f<=n[c.end])return!1}return!0})).map((function(t,r){var i=t.pos,a=t.size,u=t.element,c=t.className,l=[-n[0]+i[0],-n[1]+i[1]];return pi({key:"".concat(e,"-default-guideline-").concat(r),classNames:u?[zi("bold"),c]:[zi("normal"),c],direction:e,posValue:l,sizeValue:a,zoom:s},o)}))}function vi(t,e,r,n,i,o,a,s){var u,c=t.props,l=c.snapDigit,f=void 0===l?0:l,p=c.isDisplaySnapDigit,h=void 0===p||p,d=c.snapDistFormat,v=void 0===d?function(t,e){return t}:d,g=c.zoom,y="horizontal"===e?"X":"Y",m="vertical"===e?"height":"width",_=Math.abs(i),b=h?parseFloat(_.toFixed(f)):0;return s.createElement("div",{key:"".concat(e,"-").concat(r,"-guideline-").concat(n),className:zi("guideline-group",e),style:(u={left:"".concat(o[0],"px"),top:"".concat(o[1],"px")},u[m]="".concat(_,"px"),u)},pi({direction:e,classNames:[zi(r),a],size:"100%",posValue:[0,0],sizeValue:_,zoom:g},s),s.createElement("div",{className:zi("size-value","gap"),style:{transform:"translate".concat(y,"(-50%) scale(").concat(g,")")}},b>0?v(b,e):""))}function gi(t,e,r,n,i){var o=t.props.isDisplayInnerSnapDigit,a=[];return["vertical","horizontal"].forEach((function(s){var u=e.filter((function(t){return t.type===s})),c="vertical"===s?1:0,l=c?0:1,f=function(t,e,r,n){var i="vertical"===t?0:1,o="vertical"===t?1:0,a=i?_n:bn,s=r[a.start],u=r[a.end];return Oo(e,(function(t){return t.pos[i]})).map((function(e){var r=[],c=[];return e.forEach((function(e){var l,f,p=e.element,h=e.elementRect.rect;if(h[a.end]<s)r.push(e);else if(u<h[a.start])c.push(e);else if(h[a.start]<=s&&u<=h[a.end]&&n){var d=e.pos,v={element:p,rect:Fe(Fe({},h),(l={},l[a.end]=h[a.start],l))},g={element:p,rect:Fe(Fe({},h),(f={},f[a.start]=h[a.end],f))},y=[0,0],m=[0,0];y[i]=d[i],y[o]=d[o],m[i]=d[i],m[o]=d[o]+e.size,r.push({type:t,pos:y,size:0,elementRect:v,direction:"",elementDirection:"end"}),c.push({type:t,pos:m,size:0,elementRect:g,direction:"",elementDirection:"start"})}})),r.sort((function(t,e){return e.pos[o]-t.pos[o]})),c.sort((function(t,e){return t.pos[o]-e.pos[o]})),{total:e,start:r,end:c,inner:[]}}))}(s,u,n,o),p=c?bn:_n,h=c?_n:bn,d=n[p.start],v=n[p.end];f.forEach((function(e){var o=e.total,u=e.start,f=e.end,g=e.inner,y=r[l]+o[0].pos[l]-n[h.start],m=n;u.forEach((function(e){var n=e.elementRect.rect,o=m[p.start]-n[p.end];if(o>0){var u=[0,0];u[c]=r[c]+m[p.start]-d-o,u[l]=y,a.push(vi(t,s,"dashed",a.length,o,u,e.className,i))}m=n})),m=n,f.forEach((function(e){var n=e.elementRect.rect,o=n[p.start]-m[p.end];if(o>0){var u=[0,0];u[c]=r[c]+m[p.end]-d,u[l]=y,a.push(vi(t,s,"dashed",a.length,o,u,e.className,i))}m=n})),g.forEach((function(e){var n=e.elementRect.rect,o=d-n[p.start],u=n[p.end]-v,f=[0,0],h=[0,0];f[c]=r[c]-o,f[l]=y,h[c]=r[c]+v-d,h[l]=y,a.push(vi(t,s,"dashed",a.length,o,f,e.className,i)),a.push(vi(t,s,"dashed",a.length,u,h,e.className,i))}))}))})),a}function yi(t){var e,r,n=t.state,i=n.containerClientRect,o=n.hasFixed,a=i.overflow,s=i.scrollHeight,u=i.scrollWidth,c=i.clientHeight,l=i.clientWidth,f=i.clientLeft,p=i.clientTop,h=t.props,d=h.snapGap,v=void 0===d||d,g=h.verticalGuidelines,y=h.horizontalGuidelines,m=h.snapThreshold,_=void 0===m?5:m,b=h.maxSnapElementGuidelineDistance,S=void 0===b?1/0:b,w=h.isDisplayGridGuidelines,x=Ji(po(t.state)),E=x.top,M=x.left,O=x.bottom,k=x.right,C={top:E,left:M,bottom:O,right:k,center:(M+k)/2,middle:(E+O)/2},D=function(t){var e=t.state,r=t.props.elementGuidelines,n=void 0===r?[]:r;if(!n.length)return e.elementRects=[],[];var i=(e.elementRects||[]).filter((function(t){return!t.refresh})),o=n.map((function(t){return R(t)&&"element"in t?Fe(Fe({},t),{element:qo(t.element,!0)}):{element:qo(t,!0)}})).filter((function(t){return t.element})),a=(l=i.map((function(t){return t.element})),f=o.map((function(t){return t.element})),Jt(l,f,ee)),s=a.maintained,u=a.added,c=[];var l,f;s.forEach((function(t){var e=__read(t,2),r=e[0],n=e[1];c[n]=i[r]})),function(t,e){if(!e.length)return[];var r=t.props.groupable,n=t.state,i=n.containerClientRect,o=n.rootMatrix,a=n.is3d,s=n.offsetDelta,u=a?4:3,c=__read(function(t,e,r){var n=Yi(t,[e.clientLeft,e.clientTop],r);return[e.left+n[0],e.top+n[1]]}(o,i,u),2),l=c[0],f=c[1],p=r?0:s[0],h=r?0:s[1];return e.map((function(t){var e=t.element.getBoundingClientRect(),r=e.left-l-p,n=e.top-f-h,i=n+e.height,a=r+e.width,s=__read(Do(o,[r,n],u),2),c=s[0],d=s[1],v=__read(Do(o,[a,i],u),2),g=v[0],y=v[1];return Fe(Fe({},t),{rect:{left:c,right:g,top:d,bottom:y,center:(c+g)/2,middle:(d+y)/2}})}))}(t,u.map((function(t){return o[t]}))).map((function(t,e){c[u[e]]=t})),e.elementRects=c;var p=wn(t.props.elementSnapDirections),h=[];return c.forEach((function(t){var e=t.element,r=t.top,n=void 0===r?p.top:r,i=t.left,o=void 0===i?p.left:i,a=t.right,s=void 0===a?p.right:a,u=t.bottom,c=void 0===u?p.bottom:u,l=t.center,f=void 0===l?p.center:l,d=t.middle,v=void 0===d?p.middle:d,g=t.className,y=t.rect,m=xn({top:n,right:s,left:o,bottom:c,center:f,middle:v},y),_=m.horizontal,b=m.vertical,S=m.horizontalNames,w=m.verticalNames,x=y.top,E=y.left,M=y.right-E,O=y.bottom-x,k=[M,O];b.forEach((function(r,n){h.push({type:"vertical",element:e,pos:[it(r,.1),x],size:O,sizes:k,className:g,elementRect:t,elementDirection:mn[w[n]]||w[n],direction:""})})),_.forEach((function(r,n){h.push({type:"horizontal",element:e,pos:[E,it(r,.1)],size:M,sizes:k,className:g,elementRect:t,elementDirection:mn[S[n]]||S[n],direction:""})}))})),h}(t),A=__spreadArray([],__read(D),!1),T=(null!==(r=null===(e=n.snapThresholdInfo)||void 0===e?void 0:e.multiples)&&void 0!==r?r:[1,1]).map((function(t){return t*_}));v&&A.push.apply(A,__spreadArray([],__read(function(t,e,r){var n=t.props,i=n.maxSnapElementGuidelineDistance,o=void 0===i?1/0:i,a=n.maxSnapElementGapDistance,s=void 0===a?1/0:a,u=t.state.elementRects,c=[];return[["vertical",_n,bn],["horizontal",bn,_n]].forEach((function(t){var n=__read(t,3),i=n[0],a=n[1],l=n[2],f=e[a.start],p=e[a.end],h=e[a.center],d=e[l.start],v=e[l.end],g={left:r[0],top:r[1]};function y(t){var e=t.rect,r=g[a.start];return e[a.end]<f+r?f-e[a.end]:p-r<e[a.start]?e[a.start]-p:-1}var m=u.filter((function(t){var e=t.rect;return!(e[l.start]>v||e[l.end]<d)&&y(t)>0})).sort((function(t,e){return y(t)-y(e)})),_=[];m.forEach((function(t){m.forEach((function(e){if(t!==e){var r=t.rect,n=e.rect,i=r[l.start],o=r[l.end],a=n[l.start];i>n[l.end]||a>o||_.push([t,e])}}))})),_.forEach((function(t){var r=__read(t,2),n=r[0],u=r[1],l=n.rect,d=u.rect,v=l[a.start],y=l[a.end],m=d[a.start],_=d[a.end],b=g[a.start],S=0,w=0,x=!1,E=!1,M=!1;if(y<=f&&p<=m){if(E=!0,Wo((w=y+(S=(m-y-(p-f))/2)+(p-f)/2)-h)>b)return}else if(y<m&&_<f+b){if(x=!0,Wo((w=_+(S=m-y))-f)>b)return}else{if(!(y<m&&p-b<v))return;if(M=!0,Wo((w=v-(S=m-y))-p)>b)return}S&&mi(e,d,i,o)&&(S>s||c.push({type:i,pos:"vertical"===i?[w,0]:[0,w],element:u.element,size:0,className:u.className,isStart:x,isCenter:E,isEnd:M,gap:S,hide:!0,gapRects:[n,u],direction:"",elementDirection:""}))}))})),c}(t,C,T)),!1));var z=Fe({},n.snapOffset||{left:0,top:0,bottom:0,right:0});if(A.push.apply(A,__spreadArray([],__read(function(t,e,r,n,i,o,a){void 0===n&&(n=0);void 0===i&&(i=0);var s=t.props,u=t.state,c=s.snapGridWidth,l=void 0===c?0:c,f=s.snapGridHeight,p=void 0===f?0:f,h=[],d=o.left,v=o.top,g=[0,0];!function(t,e,r,n){var i,o,a=t.props,s=t.state,u=a.snapGridAll,c=a.snapGridWidth,l=void 0===c?0:c,f=a.snapGridHeight,p=void 0===f?0:f,h=s.snapRenderInfo,d=h&&((null===(i=h.direction)||void 0===i?void 0:i[0])||(null===(o=h.direction)||void 0===o?void 0:o[1])),v=t.moveables;if(u&&v&&d&&(l||p)){if(s.snapThresholdInfo)return;s.snapThresholdInfo={multiples:[1,1],offset:[0,0]};var g=t.getRect(),y=g.children,m=h.direction;if(y){var _=m.map((function(t,i){var o=0===i?{snapSize:l,posName:"left",sizeName:"width",clientOffset:n.left-e}:{snapSize:p,posName:"top",sizeName:"height",clientOffset:n.top-r},a=o.snapSize,s=o.posName,u=o.sizeName,c=o.clientOffset;if(!a)return{dir:t,multiple:1,snapSize:a,snapOffset:0};var f,h=g[u],d=g[s],v=(f=y.map((function(t){return[t[s]-d,t[u],h-t[u]-t[s]+d]})),f.reduce((function(t,e){return t.concat(e)}),[])).filter((function(t){return t})).sort((function(t,e){return t-e})),m=v[0],_=v.map((function(t){return it(t/m,.1)*a})),b=1,S=it(h/m,.1);for(b=1;b<=10&&!_.every((function(t){return t*b%1==0}));++b);var w=(1-t)/2,x=I(d-c,d-c+h,w,1-w);return{multiple:S*b,dir:t,snapSize:a,snapOffset:Math.round(x/a)}})),b=_.map((function(t){return t.multiple||1}));s.snapThresholdInfo.multiples=b,s.snapThresholdInfo.offset=_.map((function(t){return t.snapOffset})),_.forEach((function(t,e){t.snapSize}))}}else s.snapThresholdInfo=null}(t,n,i,o);var y=u.snapThresholdInfo,m=l,_=p;y&&(l*=y.multiples[0]||1,p*=y.multiples[1]||1,g=y.offset);if(p){for(var b=function(t){h.push({type:"horizontal",pos:[d,it(g[1]*_+t-i+v,.1)],className:zi("grid-guideline"),size:e,hide:!a,direction:"",grid:!0})},S=0;S<=2*r;S+=p)b(S);for(S=-p;S>=-r;S-=p)b(S)}if(l){for(b=function(t){h.push({type:"vertical",pos:[it(g[0]*m+t-n+d,.1),v],className:zi("grid-guideline"),size:r,hide:!a,direction:"",grid:!0})},S=0;S<=2*e;S+=l)b(S);for(S=-l;S>=-e;S-=l)b(S)}return h}(t,a?u:l,a?s:c,f,p,z,w)),!1)),o){var B=i.left,q=i.top;z.left+=B,z.top+=q,z.right+=B,z.bottom+=q}return A.push.apply(A,__spreadArray([],__read(bi(y||!1,g||!1,a?u:l,a?s:c,f,p,z)),!1)),A=A.filter((function(t){var e=t.element,r=t.elementRect,n=t.type;if(!e||!r)return!0;var i=r.rect;return mi(C,i,n,S)})),A}function mi(t,e,r,n){return"horizontal"===r?Wo(t.right-e.left)<=n||Wo(t.left-e.right)<=n||t.left<=e.right&&e.left<=t.right:"vertical"!==r||(Wo(t.bottom-e.top)<=n||Wo(t.top-e.bottom)<=n||t.top<=e.bottom&&e.top<=t.bottom)}function _i(t,e){return t?t.map((function(t){var r=R(t)?t:{pos:t},n=r.pos;return B(n)?r:Fe(Fe({},r),{pos:$(n,e)})})):[]}function bi(t,e,r,n,i,o,a){void 0===i&&(i=0),void 0===o&&(o=0),void 0===a&&(a={left:0,top:0,right:0,bottom:0});var s=[],u=a.left,c=a.top,l=a.bottom,f=r+a.right-u,p=n+l-c;return _i(t,p).forEach((function(t){s.push({type:"horizontal",pos:[u,it(t.pos-o+c,.1)],size:f,className:t.className,direction:""})})),_i(e,f).forEach((function(t){s.push({type:"vertical",pos:[it(t.pos-i+u,.1),c],size:p,className:t.className,direction:""})})),s}function Si(t){var e=t.state,r=e.container,n=t.props.snapContainer||r;if(e.snapContainer===n&&e.guidelines&&e.guidelines.length)return!1;var i=e.containerClientRect,o={left:0,top:0,bottom:0,right:0};if(r!==n){var a=qo(n,!0);if(a){var s=uo(a),u=jo(e,[s.left-i.left,s.top-i.top]),c=jo(e,[s.right-i.right,s.bottom-i.bottom]);o.left=it(u[0],1e-5),o.top=it(u[1],1e-5),o.right=it(c[0],1e-5),o.bottom=it(c[1],1e-5)}}return e.snapContainer=n,e.snapOffset=o,e.guidelines=yi(t),e.enableSnap=!0,!0}function wi(t,e,r,n,i,o){var a=$i(t,e,r,o?4:3);return fo(a,Ct(i,Ar(a,n)))}function xi(t){return t?t/Wo(t):0}function Ei(t,e,r,n,i,o){var a=function(t,e,r){var n=[];if(r)1!==Wo(e[0])||1!==Wo(e[1])?n.push([e,[-1,-1]],[e,[-1,1]],[e,[1,-1]],[e,[1,1]]):n.push([e,[t[0],-t[1]]],[e,[-t[0],t[1]]]),n.push([e,t]);else if(t[0]&&t[1]||!t[0]&&!t[1]){var i=t[0]?t:[1,1];[1,-1].forEach((function(t){[1,-1].forEach((function(r){var o=[t*i[0],r*i[1]];e[0]===o[0]&&e[1]===o[1]||n.push([e,o])}))}))}else t[0]?(1===Wo(e[0])?[1]:[1,-1]).forEach((function(r){n.push([[e[0],-1],[r*t[0],-1]],[[e[0],0],[r*t[0],0]],[[e[0],1],[r*t[0],1]])})):t[1]&&(1===Wo(e[1])?[1]:[1,-1]).forEach((function(r){n.push([[-1,e[1]],[-1,r*t[1]]],[[0,e[1]],[0,r*t[1]]],[[1,e[1]],[1,r*t[1]]])}));return n}(r,o.fixedDirection,n),s=Gn(t,e,r,n),u=__spreadArray(__spreadArray([],__read(Zn(t,e,a,n,i,o)),!1),__read(Fn(t,s,o)),!1),c=qn(u,0),l=qn(u,1);return{width:{isBound:c.isBound,offset:c.offset[0]},height:{isBound:l.isBound,offset:l.offset[1]}}}function Mi(t,e,r,n,i,o,a,s){for(var u=po(t.state),c=t.props.keepRatio,l=0,f=0,p=0;p<2;++p){var h=Ei(t,e(l,f),i,c,a,s),d=h.width,v=h.height,g=d.isBound,y=v.isBound,m=d.offset,_=v.offset;if(1===p&&(g||(m=0),y||(_=0)),0===p&&a&&!g&&!y)return[0,0];if(c){var b=Wo(m)*(r?1/r:1),S=Wo(_)*(n?1/n:1);(g&&y?b<S:y||!g&&b<S)?m=r*_/n:_=n*m/r}l+=m,f+=_}if(!c&&i[0]&&i[1]){var w=function(t,e,r,n,i){var o=[-r[0],-r[1]],a=t.state,s=a.width,u=a.height,c=t.props.bounds,l=1/0,f=1/0;if(c){var p=[[r[0],-r[1]],[-r[0],r[1]]],h=c.left,d=void 0===h?-1/0:h,v=c.top,g=void 0===v?-1/0:v,y=c.right,m=void 0===y?1/0:y,_=c.bottom,b=void 0===_?1/0:_;p.forEach((function(t){var r=t[0]!==o[0],a=t[1]!==o[1],c=Ar(e,t),p=360*et(n,c)/Math.PI;if(a){var h=c.slice();(Wo(p-360)<2||Wo(p-180)<2)&&(h[1]=n[1]);var v=Vn(n,h,(n[1]<c[1]?b:g)-c[1],!1,i),y=__read(v.offset,2)[1],_=v.isOutside;isNaN(y)||(f=u+(_?1:-1)*Wo(y))}if(r){h=c.slice(),(Wo(p-90)<2||Wo(p-270)<2)&&(h[0]=n[0]);var S=Vn(n,h,(n[0]<c[0]?m:d)-c[0],!0,i),w=__read(S.offset,1)[0],x=S.isOutside;isNaN(w)||(l=s+(x?1:-1)*Wo(w))}}))}return{maxWidth:l,maxHeight:f}}(t,u,i,o,s),x=w.maxWidth,E=w.maxHeight,M=__read(function(t,e,r,n,i,o,a,s,u){var c=Ar(e,a),l=$n(t,s,{vertical:[c[0]],horizontal:[c[1]]}),f=l.horizontal.offset,p=l.vertical.offset;if(it(p,cr)||it(f,cr)){var h=__read(Cr({datas:u,distX:-p,distY:-f}),2),d=h[0],v=h[1];return[Math.min(i||1/0,r+a[0]*d)-r,Math.min(o||1/0,n+a[1]*v)-n]}return[0,0]}(t,e(l,f).map((function(t){return t.map((function(t){return it(t,cr)}))})),r+l,n+f,x,E,i,a,s),2);l+=m=M[0],f+=_=M[1]}return[l,f]}function Oi(t){return t<0&&(t=t%360+360),t%=360}function ki(t,e){e=Oi(e);var r=Math.floor(t/360),n=360*r+360-e,i=360*r+e;return Wo(t-n)<Wo(t-i)?n:i}function Ci(t,e){t=Oi(t),e=Oi(e);var r=Oi(t-e);return Math.min(r,360-r)}function Di(t,e,r,n,i){if(!Sn(t,"scalable"))return[0,0];var o=i.startOffsetWidth,a=i.startOffsetHeight,s=i.fixedPosition,u=i.fixedDirection,c=i.is3d,l=Mi(t,(function(t,r){return wi(function(t,e){var r=t.transformOrigin,n=t.offsetMatrix,i=t.is3d,o=t.targetMatrix,a=i?4:3;return Rr(n,Ot(t.targetAllTransform||o,Kt(e,a),a),r,a)}(i,kt(e,[t/o,r/a])),o,a,u,s,c)}),o,a,r,s,n,i);return[l[0]/o,l[1]/a]}function Ii(t){var e=[];return t.forEach((function(t){t.guidelineInfos.forEach((function(r){var n=r.guideline;W(e,(function(t){return t.guideline===n}))||(n.direction="",e.push({guideline:n,posInfo:t}))}))})),e.map((function(t){var e=t.guideline,r=t.posInfo;return Fe(Fe({},e),{direction:r.direction})}))}function Ai(t,e,r,n,i,o){var a=fn(pn(t,o),e,r),s=a.vertical,u=a.horizontal,c={left:!1,top:!1,right:!1,bottom:!1};s.forEach((function(t){t.isBound&&("start"===t.direction&&(c.left=!0),"end"===t.direction&&(c.right=!0),n.push({type:"bounds",pos:t.pos}))})),u.forEach((function(t){t.isBound&&("start"===t.direction&&(c.top=!0),"end"===t.direction&&(c.bottom=!0),i.push({type:"bounds",pos:t.pos}))}));var l=function(t){var e=t.props.innerBounds,r={left:!1,top:!1,right:!1,bottom:!1};if(!e)return{boundMap:r,vertical:[],horizontal:[]};var n=t.getRect(),i=[n.pos1,n.pos2,n.pos3,n.pos4],o=Ar(i,[0,0]),a=e.left,s=e.top,u=e.width,c=e.height,l=[[a,s],[a,s+c]],f=[[a,s],[a+u,s]],p=[[a+u,s],[a+u,s+c]],h=[[a,s+c],[a+u,s+c]],d=Gn(t,i,[0,0],!1),v=[],g=[];return d.forEach((function(t){var e=t.line,n=t.lineConstants,i=Pn(o,e),d=i.horizontal,y=i.vertical,m=Nn(e,n,f,y,1,!0),_=Nn(e,n,h,y,1,!0),b=Nn(e,n,l,d,1,!0),S=Nn(e,n,p,d,1,!0);m.isBound&&!r.top&&(v.push(s),r.top=!0),_.isBound&&!r.bottom&&(v.push(s+c),r.bottom=!0),b.isBound&&!r.left&&(g.push(a),r.left=!0),S.isBound&&!r.right&&(g.push(a+u),r.right=!0)})),{boundMap:r,horizontal:v,vertical:g}}(t),f=l.boundMap,p=l.vertical,h=l.horizontal;return p.forEach((function(t){H(n,(function(e){var r=e.type,n=e.pos;return"bounds"===r&&n===t}))>=0||n.push({type:"bounds",pos:t})})),h.forEach((function(t){H(i,(function(e){var r=e.type,n=e.pos;return"bounds"===r&&n===t}))>=0||i.push({type:"bounds",pos:t})})),{boundMap:c,innerBoundMap:f}}var Ri=Bo("",["resizable","scalable"]),Ti={name:"snappable",dragRelation:"strong",props:["snappable","snapContainer","snapDirections","elementSnapDirections","snapGap","snapGridWidth","snapGridHeight","isDisplaySnapDigit","isDisplayInnerSnapDigit","isDisplayGridGuidelines","snapDigit","snapThreshold","snapRenderThreshold","snapGridAll",En,Mn,On,kn,"horizontalGuidelines","verticalGuidelines","elementGuidelines","bounds","innerBounds","snapDistFormat","maxSnapElementGuidelineDistance","maxSnapElementGapDistance"],events:["snap","bound"],css:[":host {\n--bounds-color: #d66;\n}\n.guideline {\npointer-events: none;\nz-index: 2;\n}\n.guideline.bounds {\nbackground: #d66;\nbackground: var(--bounds-color);\n}\n.guideline-group {\nposition: absolute;\ntop: 0;\nleft: 0;\n}\n.guideline-group .size-value {\nposition: absolute;\ncolor: #f55;\nfont-size: 12px;\nfont-size: calc(12px * var(--zoom));\nfont-weight: bold;\n}\n.guideline-group.horizontal .size-value {\ntransform-origin: 50% 100%;\ntransform: translateX(-50%);\nleft: 50%;\nbottom: 5px;\nbottom: calc(2px + 3px * var(--zoom));\n}\n.guideline-group.vertical .size-value {\ntransform-origin: 0% 50%;\ntop: 50%;\ntransform: translateY(-50%);\nleft: 5px;\nleft: calc(2px + 3px * var(--zoom));\n}\n.guideline.gap {\nbackground: #f55;\n}\n.size-value.gap {\ncolor: #f55;\n}\n"],render:function(t,e){var r=t.state,n=r.top,i=r.left,o=r.pos1,a=r.pos2,s=r.pos3,u=r.pos4,c=r.snapRenderInfo,l=t.props.snapRenderThreshold,f=void 0===l?1:l;if(!c||!c.render||!Sn(t,""))return Go(t,"boundMap",{left:!1,top:!1,right:!1,bottom:!1},(function(t){return JSON.stringify(t)})),Go(t,"innerBoundMap",{left:!1,top:!1,right:!1,bottom:!1},(function(t){return JSON.stringify(t)})),[];r.guidelines=yi(t);var p=Math.min(o[0],a[0],s[0],u[0]),h=Math.min(o[1],a[1],s[1],u[1]),d=c.externalPoses||[],v=po(t.state),g=[],y=[],m=[],_=[],b=[],S=Ji(v),w=S.width,x=S.height,E=S.top,M=S.left,O=S.bottom,k=S.right,C={left:M,right:k,top:E,bottom:O,center:(M+k)/2,middle:(E+O)/2},D=d.length>0,I=D?Ji(d):{};if(!c.request){if(c.direction&&b.push(zn(t,v,c.direction,f,f)),c.snap){var A=Ji(v);c.center&&(A.middle=(A.top+A.bottom)/2,A.center=(A.left+A.right)/2),b.push(An(t,A,f,f))}D&&(c.center&&(I.middle=(I.top+I.bottom)/2,I.center=(I.left+I.right)/2),b.push(An(t,I,f,f))),b.forEach((function(t){var e=t.vertical.posInfos,r=t.horizontal.posInfos;g.push.apply(g,__spreadArray([],__read(e.filter((function(t){return t.guidelineInfos.some((function(t){return!t.guideline.hide}))})).map((function(t){return{type:"snap",pos:t.pos}}))),!1)),y.push.apply(y,__spreadArray([],__read(r.filter((function(t){return t.guidelineInfos.some((function(t){return!t.guideline.hide}))})).map((function(t){return{type:"snap",pos:t.pos}}))),!1)),m.push.apply(m,__spreadArray([],__read(Ii(e)),!1)),_.push.apply(_,__spreadArray([],__read(Ii(r)),!1))}))}var R=Ai(t,[M,k],[E,O],g,y),T=R.boundMap,z=R.innerBoundMap;D&&Ai(t,[I.left,I.right],[I.top,I.bottom],g,y,c.externalBounds);var B=__spreadArray(__spreadArray([],__read(m),!1),__read(_),!1),q=B.filter((function(t){return t.element&&!t.gapRects})),P=B.filter((function(t){return t.gapRects})).sort((function(t,e){return t.gap-e.gap}));So(t,"onSnap",{guidelines:B.filter((function(t){return!t.element})),elements:q,gaps:P},!0);var j=Go(t,"boundMap",T,(function(t){return JSON.stringify(t)}),{left:!1,top:!1,right:!1,bottom:!1}),L=Go(t,"innerBoundMap",z,(function(t){return JSON.stringify(t)}),{left:!1,top:!1,right:!1,bottom:!1});return T!==j&&z!==L||So(t,"onBound",{bounds:T,innerBounds:z},!0),__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([],__read(gi(t,q,[p,h],C,e)),!1),__read(function(t,e,r,n,i){var o=[];return["horizontal","vertical"].forEach((function(a){var s=e.filter((function(t){return t.type===a})).slice(0,1),u="vertical"===a?0:1,c=u?0:1,l=u?bn:_n,f=u?_n:bn,p=n[l.start],h=n[l.end],d=n[f.start],v=n[f.end];s.forEach((function(e){var n=e.gap,a=e.gapRects,s=Math.max.apply(Math,__spreadArray([d],__read(a.map((function(t){return t.rect[f.start]}))),!1)),g=Math.min.apply(Math,__spreadArray([v],__read(a.map((function(t){return t.rect[f.end]}))),!1)),y=(s+g)/2;s!==g&&y!==(d+v)/2&&a.forEach((function(e){var a=e.rect,s=e.className,f=[r[0],r[1]];if(a[l.end]<p)f[u]+=a[l.end]-p;else{if(!(h<a[l.start]))return;f[u]+=a[l.start]-p-n}f[c]+=y-d,o.push(vi(t,u?"vertical":"horizontal","gap",o.length,n,f,s,i))}))}))})),o}(t,P,[p,h],C,e)),!1),__read(di(t,"horizontal",_,[i,n],C,e)),!1),__read(di(t,"vertical",m,[i,n],C,e)),!1),__read(hi(t,"horizontal",y,p,n,w,0,e)),!1),__read(hi(t,"vertical",g,h,i,x,1,e)),!1)},dragStart:function(t,e){t.state.snapRenderInfo={request:e.isRequest,snap:!0,center:!0},Si(t)},drag:function(t){var e=t.state;Si(t)||(e.guidelines=yi(t)),e.snapRenderInfo&&(e.snapRenderInfo.render=!0)},pinchStart:function(t){this.unset(t)},dragEnd:function(t){this.unset(t)},dragControlCondition:function(t,e){return!(!Ri(t,e)&&!li(t,e))||(!e.isRequest&&e.inputEvent?at(e.inputEvent.target,zi("snap-control")):void 0)},dragControlStart:function(t){t.state.snapRenderInfo=null,Si(t)},dragControl:function(t){this.drag(t)},dragControlEnd:function(t){this.unset(t)},dragGroupStart:function(t,e){this.dragStart(t,e)},dragGroup:function(t){this.drag(t)},dragGroupEnd:function(t){this.unset(t)},dragGroupControlStart:function(t){t.state.snapRenderInfo=null,Si(t)},dragGroupControl:function(t){this.drag(t)},dragGroupControlEnd:function(t){this.unset(t)},unset:function(t){var e=t.state;e.enableSnap=!1,e.guidelines=[],e.snapRenderInfo=null,e.elementRects=[]}};function zi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return S.apply(void 0,__spreadArray([or],__read(t),!1))}function Bi(t){t()}function qi(t){return t&&"none"!==t?R(t)?t:Ut(t):[1,0,0,1,0,0]}function Pi(t,e,r){return Mt(e,Nt(r,e),t,Nt(r.map((function(t){return-t})),e))}function ji(t){return Li(wo(t,":before").transformOrigin).map((function(e,r){var n=U(e),i=n.value,o=n.unit;return i*function(t,e,r){return"%"===e?Vi(t.ownerSVGElement)[r?"width":"height"]/100:1}(t,o,0===r)}))}function Li(t){return t?t.split(" "):["0","0"]}function Ki(t){var e=Zr(t)("transform");if(e&&"none"!==e)return e;if("transform"in t){var r=t.transform.baseVal;if(!r)return"";var n=r.length;if(!n)return"";for(var i=[],o=function(t){var e=r[t].matrix;i.push("matrix(".concat(["a","b","c","d","e","f"].map((function(t){return e[t]})).join(", "),")"))},a=0;a<n;++a)o(a);return i.join(" ")}return""}function Ni(t,e,r,n,i){var o,a,s,u,c=pt(t)||ht(t),l=!1;if(!t||r)s=t;else{var f=null===(o=null==t?void 0:t.assignedSlot)||void 0===o?void 0:o.parentElement,p=t.parentElement;f?(l=!0,u=p,s=f):s=p}for(var h=!1,d=t===e||s===e,v="relative",g=1,y=parseFloat(null==i?void 0:i("zoom"))||1,m=null==i?void 0:i("position");s&&s!==c;){e===s&&(d=!0);var _=Zr(s),b=s.tagName.toLowerCase(),S=Ki(s),w=_("willChange"),x=parseFloat(_("zoom"))||1;if(v=_("position"),n&&1!==x){g=x;break}if(!r&&n&&1!==y&&m&&"absolute"!==m||"svg"===b||"foreignobject"===b||"static"!==v||S&&"none"!==S||"transform"===w)break;var E=null===(a=null==t?void 0:t.assignedSlot)||void 0===a?void 0:a.parentNode,M=s.parentNode;E&&(l=!0,u=M);var O=M;if(O&&11===O.nodeType){h=!0,v=Zr(s=O.host)("position");break}s=O,v="relative"}return{offsetZoom:g,hasSlot:l,parentSlotElement:u,isCustomElement:h,isStatic:"static"===v,isEnd:d||!s||s===c,offsetParent:s||c}}function Fi(t,e){var r,n,i,o=t.tagName.toLowerCase(),a=t.offsetLeft,s=t.offsetTop,u=Zr(t),c=A(a),l=!c;return l||"svg"===o&&!t.ownerSVGElement?i=(n=Li(u("transformOrigin")).map((function(t){return parseFloat(t)}))).slice():(i=(n=$e?ji(t):Li(u("transformOrigin")).map((function(t){return parseFloat(t)}))).slice(),l=!0,"svg"===o?(a=0,s=0):(r=__read(function(t,e,r){var n=t.tagName.toLowerCase();if(!t.getBBox||!r&&"g"===n)return[0,0,0,0];var i=Zr(t),o="fill-box"===i("transform-box"),a=t.getBBox(),s=Vi(t.ownerSVGElement),u=a.x,c=a.y;"foreignobject"!==n||u||c||(u=parseFloat(t.getAttribute("x"))||0,c=parseFloat(t.getAttribute("y"))||0);var l=u-s.x,f=c-s.y,p=o?e[0]:e[0]-l,h=o?e[1]:e[1]-f;return[l,f,p,h]}(t,n,t===e&&"g"===e.tagName.toLowerCase()),4),a=r[0],s=r[1],n[0]=r[2],n[1]=r[3])),{tagName:o,isSVG:c,hasOffset:l,offset:[a||0,s||0],origin:n,targetOrigin:i}}function Ui(t,e){var r=Zr(t),n=Zr(ht(t)),i=n("position");if(!(e||i&&"static"!==i))return[0,0];var o=parseInt(n("marginLeft"),10),a=parseInt(n("marginTop"),10);return"absolute"===r("position")&&("auto"===r("top")&&"auto"===r("bottom")||(a=0),"auto"===r("left")&&"auto"===r("right")||(o=0)),[o,a]}function Gi(t){t.forEach((function(t){var e=t.matrix;e&&(t.matrix=Et(e,3,4))}))}function Hi(t){for(var e=t.parentElement,r=!1,n=ht(t);e;){var i=wo(e).transform;if(i&&"none"!==i){r=!0;break}if(e===n)break;e=e.parentElement}return{fixedContainer:e||n,hasTransform:r}}function Wi(t,e){return void 0===e&&(e=t.length>9),"".concat(e?"matrix3d":"matrix","(").concat(Dt(t,!e).join(","),")")}function Vi(t){var e=t.clientWidth,r=t.clientHeight;if(!t)return{x:0,y:0,width:0,height:0,clientWidth:e,clientHeight:r};var n=t.viewBox,i=n&&n.baseVal||{x:0,y:0,width:0,height:0};return{x:i.x,y:i.y,width:i.width||e,height:i.height||r,clientWidth:e,clientHeight:r}}function Xi(t,e){var r,n=Vi(t),i=n.width,o=n.height,a=n.clientWidth,s=n.clientHeight,u=a/i,c=s/o,l=t.preserveAspectRatio.baseVal,f=l.align,p=l.meetOrSlice,h=[0,0],d=[u,c],v=[0,0];if(1!==f){var g=(f-2)%3,y=Math.floor((f-2)/3);h[0]=i*g/2,h[1]=o*y/2;var m=2===p?Math.max(c,u):Math.min(u,c);d[0]=m,d[1]=m,v[0]=(a-i)/2*g,v[1]=(s-o)/2*y}var _=Kt(d,e);return r=__read(v,2),_[e*(e-1)]=r[0],_[e*(e-1)+1]=r[1],Pi(_,e,h)}function Yi(t,e,r){return It(t,xt(e,r),r)}function $i(t,e,r,n){return[[0,0],[e,0],[0,r],[e,r]].map((function(e){return Yi(t,e,n)}))}function Ji(t){var e=t.map((function(t){return t[0]})),r=t.map((function(t){return t[1]})),n=Math.min.apply(Math,__spreadArray([],__read(e),!1)),i=Math.min.apply(Math,__spreadArray([],__read(r),!1)),o=Math.max.apply(Math,__spreadArray([],__read(e),!1)),a=Math.max.apply(Math,__spreadArray([],__read(r),!1));return{left:n,top:i,right:o,bottom:a,width:o-n,height:a-i}}function Zi(t,e,r,n){return Ji($i(t,e,r,n))}function Qi(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function to(t,e){return Qi([e[0]-t[0],e[1]-t[1]])}function eo(t,e,r,n){void 0===r&&(r=1),void 0===n&&(n=et(t,e));var i=to(t,e);return{transform:"translateY(-50%) translate(".concat(t[0],"px, ").concat(t[1],"px) rotate(").concat(n,"rad) scaleY(").concat(r,")"),width:"".concat(i,"px")}}function ro(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r.length,o=r.reduce((function(t,e){return t+e[0]}),0)/i,a=r.reduce((function(t,e){return t+e[1]}),0)/i;return{transform:"translateZ(0px) translate(".concat(o,"px, ").concat(a,"px) rotate(").concat(t,"rad) scale(").concat(e,")")}}function no(t,e){var r=t[e];return R(r)?Fe(Fe({},t),r):t}function io(t){var e=t&&!A(t.offsetWidth),r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,p=0,h=0,d=1/0,v=1/0,g=1/0,y=1/0,m=0,_=0,b=!1;if(t)if(!e&&t.ownerSVGElement){var S=t.getBBox();b=!0,a=r=S.width,s=n=S.height,u=r,c=n,i=r,o=n}else{var w=Zr(t),x=t.style,E="border-box"===w("boxSizing"),M=parseFloat(w("borderLeftWidth"))||0,O=parseFloat(w("borderRightWidth"))||0,k=parseFloat(w("borderTopWidth"))||0,C=parseFloat(w("borderBottomWidth"))||0,D=(parseFloat(w("paddingLeft"))||0)+(parseFloat(w("paddingRight"))||0),I=(parseFloat(w("paddingTop"))||0)+(parseFloat(w("paddingBottom"))||0),R=D+(M+O),T=I+(k+C),z=w("position"),B=0,q=0;if("clientLeft"in t){var P=null;if("absolute"===z)P=Ni(t,ht(t)).offsetParent;else P=t.parentElement;if(P){var j=Zr(P);B=parseFloat(j("width")),q=parseFloat(j("height"))}}l=Math.max(D,$(w("minWidth"),B)||0),f=Math.max(I,$(w("minHeight"),q)||0),d=$(w("maxWidth"),B),v=$(w("maxHeight"),q),isNaN(d)&&(d=1/0),isNaN(v)&&(v=1/0),m=$(x.width,0)||0,_=$(x.height,0)||0,a=parseFloat(w("width"))||0,s=parseFloat(w("height"))||0,r=u=Wo(a-m)<1?J(l,m||a,d):a,n=c=Wo(s-_)<1?J(f,_||s,v):s,i=u,o=c,E?(g=d,y=v,p=l,h=f,u=r-R,c=n-T):(g=d+R,y=v+T,p=l+R,h=f+T,r=u+R,n=c+T),i=u+D,o=c+I}return{svg:b,offsetWidth:r,offsetHeight:n,clientWidth:i,clientHeight:o,contentWidth:u,contentHeight:c,inlineCSSWidth:m,inlineCSSHeight:_,cssWidth:a,cssHeight:s,minWidth:l,minHeight:f,maxWidth:d,maxHeight:v,minOffsetWidth:p,minOffsetHeight:h,maxOffsetWidth:g,maxOffsetHeight:y}}function oo(t,e){return et(e>0?t[0]:t[1],e>0?t[1]:t[0])}function ao(t,e){var r=t===ht(t)||t===pt(t),n={clientLeft:t.clientLeft,clientTop:t.clientTop,clientWidth:t.clientWidth,clientHeight:t.clientHeight,scrollWidth:t.scrollWidth,scrollHeight:t.scrollHeight,overflow:!1};return r&&(n.clientHeight=Math.max(e.height,n.clientHeight),n.scrollHeight=Math.max(e.height,n.scrollHeight)),n.overflow="visible"!==Zr(t)("overflow"),Fe(Fe({},e),n)}function so(t,e,r,n){var i=t.left,o=t.right,a=t.top,s=t.bottom,u=e.top,c=e.left,l={left:c+i,top:u+a,right:c+o,bottom:u+s,width:o-i,height:s-a};return r&&n?ao(r,l):l}function uo(t,e){var r=0,n=0,i=0,o=0;if(t){var a=t.getBoundingClientRect();r=a.left,n=a.top,i=a.width,o=a.height}var s={left:r,top:n,width:i,height:o,right:r+i,bottom:n+o};return t&&e?ao(t,s):s}function co(t,e,r,n){var i;if(t)i=t;else if(e)i=[0,0];else{i=lo(r.target,n)}return i}function lo(t,e){if(t){var r=t.getAttribute("data-rotation")||"",n=t.getAttribute("data-direction");if(e.deg=r,n){var i=[0,0];return n.indexOf("w")>-1&&(i[0]=-1),n.indexOf("e")>-1&&(i[0]=1),n.indexOf("n")>-1&&(i[1]=-1),n.indexOf("s")>-1&&(i[1]=1),i}}}function fo(t,e){return[kt(e,t[0]),kt(e,t[1]),kt(e,t[2]),kt(e,t[3])]}function po(t){var e=t.left,r=t.top;return fo([t.pos1,t.pos2,t.pos3,t.pos4],[e,r])}function ho(t,e){t[e?"controlAbles":"targetAbles"].forEach((function(e){e.unset&&e.unset(t)}))}function vo(t,e){var r=e?"controlGesto":"targetGesto",n=t[r];!1===(null==n?void 0:n.isIdle())&&ho(t,e),null==n||n.unset(),t[r]=null}function go(t,e){if(e){var r=Pr(e);r.nextStyle=Fe(Fe({},r.nextStyle),t)}return{style:t,cssText:Y(t).map((function(e){return"".concat((r=e,n="-",void 0===n&&(n="-"),r.replace(/([a-z])([A-Z])/g,(function(t,e,r){return""+e+n+r.toLowerCase()}))),": ").concat(t[e],";");var r,n})).join("")}}function yo(t,e,r){var n=e.afterTransform||e.transform;return Fe(Fe({},go(Fe(Fe(Fe({},t.style),e.style),{transform:n}),r)),{afterTransform:n,transform:t.transform})}function mo(t,e,r,n){var i=e.datas;i.datas||(i.datas={});var o=Fe(Fe({},r),{target:t.state.target,clientX:e.clientX,clientY:e.clientY,inputEvent:e.inputEvent,currentTarget:t,moveable:t,datas:i.datas,isRequest:e.isRequest,isRequestChild:e.isRequestChild,isFirstDrag:!!e.isFirstDrag,isTrusted:!1!==e.isTrusted,stopAble:function(){i.isEventStart=!1},stopDrag:function(){var t;null===(t=e.stop)||void 0===t||t.call(e)}});return i.isStartEvent?n||(i.lastEvent=o):i.isStartEvent=!0,o}function _o(t,e,r){var n=e.datas,i="isDrag"in r?r.isDrag:e.isDrag;return n.datas||(n.datas={}),Fe(Fe({isDrag:i},r),{moveable:t,target:t.state.target,clientX:e.clientX,clientY:e.clientY,inputEvent:e.inputEvent,currentTarget:t,lastEvent:n.lastEvent,isDouble:e.isDouble,datas:n.datas,isFirstDrag:!!e.isFirstDrag})}function bo(t,e,r){t._emitter.on(e,r)}function So(t,e,r,n,i){return t.triggerEvent(e,r,n,i)}function wo(t,e){return dt(t).getComputedStyle(t,e)}function xo(t,e,r){var n={},i={};return t.filter((function(t){var o=t.name;if(n[o]||!e.some((function(e){return t[e]})))return!1;if(!r&&t.ableGroup){if(i[t.ableGroup])return!1;i[t.ableGroup]=!0}return n[o]=!0,!0}))}function Eo(t,e){return t===e||null==t&&null==e}function Mo(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=t.length-1,n=0;n<r;++n){var i=t[n];if(!A(i))return i}return t[r]}function Oo(t,e){var r=[],n=[];return t.forEach((function(i,o){var a=e(i,o,t),s=n.indexOf(a),u=r[s]||[];-1===s&&(n.push(a),r.push(u)),u.push(i)})),r}function ko(t){return t.reduce((function(t,e){return t.concat(e)}),[])}function Co(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.sort((function(t,e){return Wo(e)-Wo(t)})),t[0]}function Do(t,e,r){return It(St(t,r),xt(e,r),r)}function Io(t,e){var r,n=t.is3d?4:3;return r=__read(Do(t.rootMatrix,[e.distX,e.distY],n),2),e.distX=r[0],e.distY=r[1],e}function Ao(t,e,r,n){if(!r[0]&&!r[1])return e;var i=Yi(t,[xi(r[0]||1),0],n),o=Yi(t,[0,xi(r[1]||1)],n);return kt(e,Yi(t,[r[0]/Qi(i),r[1]/Qi(o)],n))}function Ro(t,e,r){return r?"".concat(t/e*100,"%"):"".concat(t,"px")}function To(t){return Wo(t)<=lr?0:t}function zo(t){return function(e){if(!e.isDragging(t))return"";var r=function(t,e){var r,n=t.targetGesto,i=t.controlGesto;return(null==n?void 0:n.isFlag())&&(r=n.getEventData()[e]),!r&&(null==i?void 0:i.isFlag())&&(r=i.getEventData()[e]),r||{}}(e,t),n=r.deg;return n?zi("view-control-rotation".concat(n)):""}}function Bo(t,e){return void 0===e&&(e=[t]),function(r,n){if(n.isRequest)return!!e.some((function(t){return n.requestAble===t}))&&n.parentDirection;var i=n.inputEvent.target;return at(i,zi("direction"))&&(!t||at(i,zi(t)))}}function qo(t,e){return t?gt(t)?t:z(t)?e?document.querySelector(t):t:q(t)?t():vt(t)?t:"current"in t?t.current:t:null}function Po(t,e){return t?((r=t)&&R(r)&&!gt(r)&&(T(r)||"length"in r)?[].slice.call(t):[t]).reduce((function(t,r){return z(r)&&e?__spreadArray(__spreadArray([],__read(t),!1),__read([].slice.call(document.querySelectorAll(r))),!1):(T(r)?t.push(Po(r,e)):t.push(qo(r,e)),t)}),[]):[];var r}function jo(t,e){var r=t.rootMatrix,n=t.is3d,i=St(r,n?4:3);return n||(i=Et(i,3,4)),i[12]=0,i[13]=0,i[14]=0,function(t,e){var r=It(t,[e[0],e[1]||0,e[2]||0,1],4),n=r[3]||1;return[r[0]/n,r[1]/n,r[2]/n]}(i,e)}function Lo(t,e,r,n,i){var o=__read(t,2),a=o[0],s=o[1],u=0,c=0;if(i&&a&&s){var l=et([0,0],e),f=et([0,0],n),p=Qi(e),h=Math.cos(l-f)*p;if(n[0])if(n[1]){var d=n[0]*a,v=n[1]*s,g=Math.atan2(d+e[0],v+e[1]),y=Math.atan2(d,v);g<0&&(g+=2*Math.PI),y<0&&(y+=2*Math.PI);var m=0;(m=Wo(g-y)<Math.PI/2||Wo(g-y)>Math.PI/2*3?g-y:g-(y+=Math.PI))>2*Math.PI?m-=2*Math.PI:m>Math.PI?m=2*Math.PI-m:m<-Math.PI&&(m=-2*Math.PI-m);var _=Qi([d+e[0],v+e[1]])*Math.cos(m);u=_*Math.sin(y)-d,c=_*Math.cos(y)-v,n[0]<0&&(u*=-1),n[1]<0&&(c*=-1)}else c=(u=h)/r;else u=(c=h)*r}else u=n[0]*e[0],c=n[1]*e[1];return[u,c]}function Ko(t,e,r,n){var i,o=r.ratio,a=r.startOffsetWidth,s=r.startOffsetHeight,u=0,c=0,l=n.distX,f=n.distY,p=n.pinchScale,h=n.parentDistance,d=n.parentDist,v=n.parentScale,g=r.fixedDirection,y=[0,1].map((function(e){return Wo(t[e]-g[e])})),m=[0,1].map((function(t){var e=y[t];return 0!==e&&(e=2/e),e}));if(d)u=d[0],c=d[1],e&&(u?c||(c=u/o):u=c*o);else if(B(p))u=(p-1)*a,c=(p-1)*s;else if(v)u=(v[0]-1)*a,c=(v[1]-1)*s;else if(h){var _=a*y[0],b=s*y[1],S=Qi([_,b]);u=h/S*_*m[0],c=h/S*b*m[1]}else{var w=Cr({datas:r,distX:l,distY:f});w=m.map((function(t,e){return w[e]*t})),u=(i=__read(Lo([a,s],w,o,t,e),2))[0],c=i[1]}return{distWidth:u,distHeight:c}}function No(t,e){if(e){if("left"===t)return{x:"0%",y:"50%"};if("top"===t)return{x:"50%",y:"50%"};if("center"===t)return{x:"50%",y:"50%"};if("right"===t)return{x:"100%",y:"50%"};if("bottom"===t)return{x:"50%",y:"100%"};var r=__read(t.split(" "),2),n=r[0],i=r[1],o=No(n||""),a=No(i||""),s=Fe(Fe({},o),a),u={x:"50%",y:"50%"};return s.x&&(u.x=s.x),s.y&&(u.y=s.y),s.value&&(s.x&&!s.y&&(u.y=s.value),!s.x&&s.y&&(u.x=s.value)),u}return"left"===t?{x:"0%"}:"right"===t?{x:"100%"}:"top"===t?{y:"0%"}:"bottom"===t?{y:"100%"}:t?"center"===t?{value:"50%"}:{value:t}:{}}function Fo(t,e,r){var n=No(t,!0),i=n.x,o=n.y;return[$(i,e)||0,$(o,r)||0]}function Uo(t,e){return t.length===e.length&&t.every((function(t,r){var n=e[r],i=T(t),o=T(n);return i&&o?Uo(t,n):!i&&!o&&t===n}))}function Go(t,e,r,n,i){var o=t._store,a=o[e];if(!(e in o)){if(null==i)return o[e]=r,r;o[e]=i,a=i}return a===r||n(a)===n(r)?a:(o[e]=r,r)}function Ho(t){return t>=0?1:-1}function Wo(t){return Math.abs(t)}function Vo(t,e){return function(t){for(var e=[],r=0;r<t;++r)e.push(r);return e}(t).map((function(t){return e(t)}))}function Xo(t){return B(t)?{top:t,left:t,right:t,bottom:t}:{left:t.left||0,top:t.top||0,right:t.right||0,bottom:t.bottom||0}}var Yo=Ue("pinchable",{props:["pinchable"],events:["pinchStart","pinch","pinchEnd","pinchGroupStart","pinchGroup","pinchGroupEnd"],dragStart:function(){return!0},pinchStart:function(t,e){var r=e.datas,n=e.targets,i=e.angle,o=e.originalDatas,a=t.props,s=a.pinchable,u=a.ables;if(!s)return!1;var c="onPinch".concat(n?"Group":"","Start"),l="drag".concat(n?"Group":"","ControlStart"),f=(!0===s?t.controlAbles:u.filter((function(t){return s.indexOf(t.name)>-1}))).filter((function(t){return t.canPinch&&t[l]})),p=mo(t,e,{});n&&(p.targets=n);var h=So(t,c,p);r.isPinch=!1!==h,r.ables=f;var d=r.isPinch;return!!d&&(f.forEach((function(r){if(o[r.name]=o[r.name]||{},r[l]){var n=Fe(Fe({},e),{datas:o[r.name],parentRotate:i,isPinch:!0});r[l](t,n)}})),t.state.snapRenderInfo={request:e.isRequest,direction:[0,0]},d)},pinch:function(t,e){var r=e.datas,n=e.scale,i=e.distance,o=e.originalDatas,a=e.inputEvent,s=e.targets,u=e.angle;if(r.isPinch){var c=i*(1-1/n),l=mo(t,e,{});s&&(l.targets=s);var f="onPinch".concat(s?"Group":"");So(t,f,l);var p=r.ables,h="drag".concat(s?"Group":"","Control");return p.forEach((function(r){r[h]&&r[h](t,Fe(Fe({},e),{datas:o[r.name],inputEvent:a,resolveMatrix:!0,pinchScale:n,parentDistance:c,parentRotate:u,isPinch:!0}))})),l}},pinchEnd:function(t,e){var r=e.datas,n=e.isPinch,i=e.inputEvent,o=e.targets,a=e.originalDatas;if(r.isPinch){var s="onPinch".concat(o?"Group":"","End"),u=_o(t,e,{isDrag:n});o&&(u.targets=o),So(t,s,u);var c=r.ables,l="drag".concat(o?"Group":"","ControlEnd");return c.forEach((function(r){r[l]&&r[l](t,Fe(Fe({},e),{isDrag:n,datas:a[r.name],inputEvent:i,isPinch:!0}))})),n}},pinchGroupStart:function(t,e){return this.pinchStart(t,Fe(Fe({},e),{targets:t.props.targets}))},pinchGroup:function(t,e){return this.pinch(t,Fe(Fe({},e),{targets:t.props.targets}))},pinchGroupEnd:function(t,e){return this.pinchEnd(t,Fe(Fe({},e),{targets:t.props.targets}))}}),$o=Bo("scalable"),Jo={name:"scalable",ableGroup:"size",canPinch:!0,props:["scalable","throttleScale","renderDirections","keepRatio","edge","displayAroundControls"],events:["scaleStart","beforeScale","scale","scaleEnd","scaleGroupStart","beforeScaleGroup","scaleGroup","scaleGroupEnd"],render:un("scalable"),dragControlCondition:$o,viewClassName:zo("scalable"),dragControlStart:function(t,e){var r=e.datas,n=e.isPinch,i=e.inputEvent,o=co(e.parentDirection,n,i,r),a=t.state,s=a.width,u=a.height,c=a.targetTransform,l=a.target,f=a.pos1,p=a.pos2,h=a.pos4;if(!o||!l)return!1;n||wr(t,e),r.datas={},r.transform=c,r.prevDist=[1,1],r.direction=o,r.startOffsetWidth=s,r.startOffsetHeight=u,r.startValue=[1,1];var d=!o[0]&&!o[1]||o[0]||!o[1];function v(t){r.ratio=t&&isFinite(t)?t:0}function g(t){var e=ei(r.startPositions,t);r.fixedDirection=e.fixedDirection,r.fixedPosition=e.fixedPosition,r.fixedOffset=e.fixedOffset}zr(t,e,"scale"),r.isWidth=d,r.startPositions=po(t.state),r.setFixedDirection=g,v(nt(f,p)/nt(p,h)),g([-o[0],-o[1]]);var y=function(t){r.minScaleSize=t},m=function(t){r.maxScaleSize=t};y([-1/0,-1/0]),m([1/0,1/0]);var _=mo(t,e,Fe(Fe({direction:o,set:function(t){r.startValue=t},setRatio:v,setFixedDirection:g,setMinScaleSize:y,setMaxScaleSize:m},Tr(t,e)),{dragStart:ti.dragStart(t,(new _r).dragStart([0,0],e))})),b=So(t,"onScaleStart",_);return r.startFixedDirection=r.fixedDirection,!1!==b&&(r.isScale=!0,t.state.snapRenderInfo={request:e.isRequest,direction:o}),!!r.isScale&&_},dragControl:function(t,e){xr(t,e,"scale");var r=e.datas,n=e.parentKeepRatio,i=e.parentFlag,o=e.isPinch,a=e.dragClient,s=e.isRequest,u=e.useSnap,c=e.resolveMatrix,l=r.prevDist,f=r.direction,p=r.startOffsetWidth,h=r.startOffsetHeight,d=r.isScale,v=r.startValue,g=r.isWidth,y=r.ratio;if(!d)return!1;var m=t.props,_=m.throttleScale,b=m.parentMoveable,S=f;f[0]||f[1]||(S=[1,1]);var w=y&&(null!=n?n:m.keepRatio)||!1,x=t.state,E=[v[0],v[1]];function M(){var t=Ko(S,w,r,e),n=t.distWidth,i=t.distHeight,o=p?(p+n)/p:1,a=h?(h+i)/h:1;v[0]||(E[0]=n/p),v[1]||(E[1]=i/h);var s=(S[0]||w?o:1)*E[0],u=(S[1]||w?a:1)*E[1];return 0===s&&(s=Ho(l[0])*fr),0===u&&(u=Ho(l[1])*fr),[s,u]}var O=M();if(!o&&t.props.groupable){var k=(x.snapRenderInfo||{}).direction;T(k)&&(k[0]||k[1])&&(x.snapRenderInfo={direction:f,request:e.isRequest})}So(t,"onBeforeScale",mo(t,e,{scale:O,setFixedDirection:function(t){return r.setFixedDirection(t),O=M()},startFixedDirection:r.startFixedDirection,setScale:function(t){O=t}},!0));var C,D,I=[O[0]/E[0],O[1]/E[1]],A=a,R=[0,0],z=Ho(I[0]*I[1]),B=!a&&!i&&o;if(B||c?A=Fr(t,r.targetAllTransform,[0,0],[0,0],r):a||(A=r.fixedPosition),o||(R=Di(t,I,f,!u&&s,r)),w){S[0]&&S[1]&&R[0]&&R[1]&&(Math.abs(R[0]*p)>Math.abs(R[1]*h)?R[1]=0:R[0]=0);var q=!R[0]&&!R[1];if(q&&(g?I[0]=it(I[0]*E[0],_)/E[0]:I[1]=it(I[1]*E[1],_)/E[1]),S[0]&&!S[1]||R[0]&&!R[1]||q&&g){I[0]+=R[0];var P=p*I[0]*E[0]/y;I[1]=Ho(z*I[0])*Wo(P/h/E[1])}else if(!S[0]&&S[1]||!R[0]&&R[1]||q&&!g){I[1]+=R[1];var j=h*I[1]*E[1]*y;I[0]=Ho(z*I[1])*Wo(j/p/E[0])}}else I[0]+=R[0],I[1]+=R[1],R[0]||(I[0]=it(I[0]*E[0],_)/E[0]),R[1]||(I[1]=it(I[1]*E[1],_)/E[1]);0===I[0]&&(I[0]=Ho(l[0])*fr),0===I[1]&&(I[1]=Ho(l[1])*fr),C=I,D=[E[0],E[1]],O=[C[0]*D[0],C[1]*D[1]];var L=[p,h],K=[p*O[0],h*O[1]];K=Q(K,r.minScaleSize,r.maxScaleSize,!!w&&y),O=Vo(2,(function(t){return L[t]?K[t]/L[t]:K[t]})),I=Vo(2,(function(t){return O[t]/E[t]}));var N=Vo(2,(function(t){return l[t]?I[t]/l[t]:I[t]})),F="scale(".concat(I.join(", "),")"),U="scale(".concat(O.join(", "),")"),G=Er(r,U,F),H=!v[0]||!v[1],W=function(t,e,r,n,i,o,a){return Ur(t,e,r,n,i,o,a)}(t,H?U:F,r.fixedDirection,A,r.fixedOffset,r,H),V=B?W:Ct(W,r.prevInverseDist||[0,0]);if(r.prevDist=I,r.prevInverseDist=W,O[0]===l[0]&&O[1]===l[1]&&V.every((function(t){return!t}))&&!b&&!B)return!1;var X=mo(t,e,Fe({offsetWidth:p,offsetHeight:h,direction:f,scale:O,dist:I,delta:N,isPinch:!!o},Nr(t,G,V,o,e)));return So(t,"onScale",X),X},dragControlEnd:function(t,e){var r=e.datas;if(!r.isScale)return!1;r.isScale=!1;var n=_o(t,e,{});return So(t,"onScaleEnd",n),n},dragGroupControlCondition:$o,dragGroupControlStart:function(t,e){var r=e.datas,n=this.dragControlStart(t,e);if(!n)return!1;var i=Qr(t,"resizable",e);r.moveableScale=t.scale;var o=en(t,this,"dragControlStart",e,(function(e,n){return rn(t,e,r,n)})),a=function(e){n.setFixedDirection(e),o.forEach((function(n,o){n.setFixedDirection(e),rn(t,n.moveable,r,i[o])}))};r.setFixedDirection=a;var s=Fe(Fe({},n),{targets:t.props.targets,events:o,setFixedDirection:a}),u=So(t,"onScaleGroupStart",s);return r.isScale=!1!==u,!!r.isScale&&s},dragGroupControl:function(t,e){var r=e.datas;if(r.isScale){bo(t,"onBeforeScale",(function(r){So(t,"onBeforeScaleGroup",mo(t,e,Fe(Fe({},r),{targets:t.props.targets}),!0))}));var n=this.dragControl(t,e);if(n){var i=n.dist,o=r.moveableScale;t.scale=[i[0]*o[0],i[1]*o[1]];var a=t.props.keepRatio,s=r.fixedPosition,u=en(t,this,"dragControl",e,(function(e,r){var n=__read(It(jt(t.rotation/180*Math.PI,3),[r.datas.originalX*i[0],r.datas.originalY*i[1],1],3),2),o=n[0],u=n[1];return Fe(Fe({},r),{parentDist:null,parentScale:i,parentKeepRatio:a,dragClient:kt(s,[o,u])})})),c=Fe({targets:t.props.targets,events:u},n);return So(t,"onScaleGroup",c),c}}},dragGroupControlEnd:function(t,e){var r=e.isDrag;if(e.datas.isScale){this.dragControlEnd(t,e);var n=en(t,this,"dragControlEnd",e);return So(t,"onScaleGroupEnd",_o(t,e,{targets:t.props.targets,events:n})),r}},request:function(){var t={},e=0,r=0,n=!1;return{isControl:!0,requestStart:function(e){return n=e.useSnap,{datas:t,parentDirection:e.direction||[1,1],useSnap:n}},request:function(i){return e+=i.deltaWidth,r+=i.deltaHeight,{datas:t,parentDist:[e,r],parentKeepRatio:i.keepRatio,useSnap:n}},requestEnd:function(){return{datas:t,isDrag:!0,useSnap:n}}}}};function Zo(t,e){return t.map((function(t,r){return I(t,e[r],1,2)}))}function Qo(t,e,r){var n=et(t,e),i=et(t,r)-n;return i>=0?i:i+2*Math.PI}var ta={name:"warpable",ableGroup:"size",props:["warpable","renderDirections","edge","displayAroundControls"],events:["warpStart","warp","warpEnd"],viewClassName:zo("warpable"),render:function(t,e){var r=t.props,n=r.resizable,i=r.scalable,o=r.warpable,a=r.zoom;if(n||i||!o)return[];var s=t.state,u=s.pos1,c=s.pos2,l=s.pos3,f=s.pos4,p=Zo(u,c),h=Zo(c,u),d=Zo(u,l),v=Zo(l,u),g=Zo(l,f),y=Zo(f,l),m=Zo(c,f),_=Zo(f,c);return __spreadArray([e.createElement("div",{className:zi("line"),key:"middeLine1",style:eo(p,g,a)}),e.createElement("div",{className:zi("line"),key:"middeLine2",style:eo(h,y,a)}),e.createElement("div",{className:zi("line"),key:"middeLine3",style:eo(d,m,a)}),e.createElement("div",{className:zi("line"),key:"middeLine4",style:eo(v,_,a)})],__read(cn(t,"warpable",e)),!1)},dragControlCondition:function(t,e){if(e.isRequest)return!1;var r=e.inputEvent.target;return at(r,zi("direction"))&&at(r,zi("warpable"))},dragControlStart:function(t,e){var r=e.datas,n=e.inputEvent,i=t.props.target,o=lo(n.target,r);if(!o||!i)return!1;var a=t.state,s=a.transformOrigin,u=a.is3d,c=a.targetTransform,l=a.targetMatrix,f=a.width,p=a.height,h=a.left,d=a.top;return r.datas={},r.targetTransform=c,r.warpTargetMatrix=u?l:Et(l,3,4),r.targetInverseMatrix=bt(St(r.warpTargetMatrix,4),3,4),r.direction=o,r.left=h,r.top=d,r.poses=[[0,0],[f,0],[0,p],[f,p]].map((function(t){return Ct(t,s)})),r.nextPoses=r.poses.map((function(t){var e=__read(t,2),n=e[0],i=e[1];return It(r.warpTargetMatrix,[n,i,0,1],4)})),r.startValue=Lt(4),r.prevMatrix=Lt(4),r.absolutePoses=po(a),r.posIndexes=Dr(o),wr(t,e),zr(t,e,"matrix3d"),a.snapRenderInfo={request:e.isRequest,direction:o},!1!==So(t,"onWarpStart",mo(t,e,Fe({set:function(t){r.startValue=t}},Tr(t,e))))&&(r.isWarp=!0),r.isWarp},dragControl:function(t,e){var r=e.datas,n=e.isRequest,i=e.distX,o=e.distY,a=r.targetInverseMatrix,s=r.prevMatrix,u=r.isWarp,c=r.startValue,l=r.poses,f=r.posIndexes,p=r.absolutePoses;if(!u)return!1;if(xr(t,e,"matrix3d"),Sn(t,"warpable")){var h=f.map((function(t){return p[t]}));h.length>1&&h.push([(h[0][0]+h[1][0])/2,(h[0][1]+h[1][1])/2]);var d=$n(t,n,{horizontal:h.map((function(t){return t[1]+o})),vertical:h.map((function(t){return t[0]+i}))}),v=d.horizontal,g=d.vertical;o-=v.offset,i-=g.offset}var y=Cr({datas:r,distX:i,distY:o},!0),m=r.nextPoses.slice();if(f.forEach((function(t){m[t]=kt(m[t],y)})),!ur.every((function(t){return e=t.map((function(t){return l[t]})),r=t.map((function(t){return m[t]})),n=Qo(e[0],e[1],e[2]),i=Qo(r[0],r[1],r[2]),o=Math.PI,!(n>=o&&i<=o||n<=o&&i>=o);var e,r,n,i,o})))return!1;var _=Ft(l[0],l[2],l[1],l[3],m[0],m[2],m[1],m[3]);if(!_.length)return!1;var b=Or(r,Ot(a,_,4),!0),S=Ot(St(s,4),b,4);r.prevMatrix=b;var w=Ot(c,b,4),x=Er(r,"matrix3d(".concat(w.join(", "),")"),"matrix3d(".concat(b.join(", "),")"));return qr(e,x),So(t,"onWarp",mo(t,e,Fe({delta:S,matrix:w,dist:b,multiply:Ot,transform:x},go({transform:x},e)))),!0},dragControlEnd:function(t,e){var r=e.datas,n=e.isDrag;return!!r.isWarp&&(r.isWarp=!1,So(t,"onWarpEnd",_o(t,e,{})),n)}},ea=zi("area-pieces"),ra=zi("area-piece"),na=zi("avoid"),ia=zi("view-dragging");function oa(t){var e=t.areaElement;if(e){var r=t.state,n=r.width,i=r.height;ut(e,na),e.style.cssText+="left: 0px; top: 0px; width: ".concat(n,"px; height: ").concat(i,"px")}}function aa(t){return t.createElement("div",{key:"area_pieces",className:ea},t.createElement("div",{className:ra}),t.createElement("div",{className:ra}),t.createElement("div",{className:ra}),t.createElement("div",{className:ra}))}var sa={name:"dragArea",props:["dragArea","passDragArea"],events:["click","clickGroup"],render:function(t,e){var r=t.props,n=r.target,i=r.dragArea,o=r.groupable,a=r.passDragArea,s=t.getState(),u=s.width,c=s.height,l=s.renderPoses,f=a?zi("area","pass"):zi("area");if(o)return[e.createElement("div",{key:"area",ref:w(t,"areaElement"),className:f}),aa(e)];if(!n||!i)return[];var p=Ft([0,0],[u,0],[0,c],[u,c],l[0],l[1],l[2],l[3]),h=p.length?Wi(p,!0):"none";return[e.createElement("div",{key:"area",ref:w(t,"areaElement"),className:f,style:{top:"0px",left:"0px",width:"".concat(u,"px"),height:"".concat(c,"px"),transformOrigin:"0 0",transform:h}}),aa(e)]},dragStart:function(t,e){var r=e.datas,n=e.clientX,i=e.clientY;if(!e.inputEvent)return!1;r.isDragArea=!1;var o=t.areaElement,a=t.state,s=a.moveableClientRect,u=a.renderPoses,c=a.rootMatrix,l=a.is3d,f=s.left,p=s.top,h=Ji(u),d=h.left,v=h.top,g=h.width,y=h.height,m=__read(Do(c,[n-f,i-p],l?4:3),2),_=m[0],b=m[1],S=[{left:d,top:v,width:g,height:(b-=v)-10},{left:d,top:v,width:(_-=d)-10,height:y},{left:d,top:v+b+10,width:g,height:y-b-10},{left:d+_+10,top:v,width:g-_-10,height:y}],w=[].slice.call(o.nextElementSibling.children);S.forEach((function(t,e){w[e].style.cssText="left: ".concat(t.left,"px;top: ").concat(t.top,"px; width: ").concat(t.width,"px; height: ").concat(t.height,"px;")})),st(o,na),a.disableNativeEvent=!0},drag:function(t,e){var r=e.datas,n=e.inputEvent;if(this.enableNativeEvent(t),!n)return!1;r.isDragArea||(r.isDragArea=!0,oa(t))},dragEnd:function(t,e){this.enableNativeEvent(t);var r=e.inputEvent,n=e.datas;if(!r)return!1;n.isDragArea||oa(t)},dragGroupStart:function(t,e){return this.dragStart(t,e)},dragGroup:function(t,e){return this.drag(t,e)},dragGroupEnd:function(t,e){return this.dragEnd(t,e)},unset:function(t){oa(t),t.state.disableNativeEvent=!1},enableNativeEvent:function(t){var e=t.state;e.disableNativeEvent&&V((function(){e.disableNativeEvent=!1}))}},ua=Ue("origin",{props:["origin","svgOrigin"],render:function(t,e){var r,n=t.props,i=n.zoom,o=n.svgOrigin,a=n.groupable,s=t.getState(),u=s.beforeOrigin,c=s.rotation,l=s.svg,f=s.allMatrix,p=s.is3d,h=s.left,d=s.top,v=s.offsetWidth,g=s.offsetHeight;if(!a&&l&&o){var y=__read(Fo(o,v,g),2);r=ro(c,i,Ct(Yi(f,[y[0],y[1]],p?4:3),[h,d]))}else r=ro(c,i,u);return[e.createElement("div",{className:zi("control","origin"),style:r,key:"beforeOrigin"})]}});function ca(t){var e=t.scrollContainer;return[e.scrollLeft,e.scrollTop]}var la={name:"scrollable",canPinch:!0,props:["scrollable","scrollContainer","scrollThreshold","scrollThrottleTime","getScrollPosition","scrollOptions"],events:["scroll","scrollGroup"],dragRelation:"strong",dragStart:function(t,e){var r=t.props,n=r.scrollContainer,i=void 0===n?t.getContainer():n,o=r.scrollOptions,a=new le,s=qo(i,!0);e.datas.dragScroll=a,t.state.dragScroll=a;var u=e.isControl?"controlGesto":"targetGesto",c=e.targets;a.on("scroll",(function(r){var n=r.container,i=r.direction,o=mo(t,e,{scrollContainer:n,direction:i}),a=c?"onScrollGroup":"onScroll";c&&(o.targets=c),So(t,a,o)})).on("move",(function(e){var r=e.offsetX,n=e.offsetY,i=e.inputEvent;t[u].scrollBy(r,n,i.inputEvent,!1)})).on("scrollDrag",(function(e){(0,e.next)(t[u].getCurrentEvent())})),a.dragStart(e,Fe({container:s},o))},checkScroll:function(t,e){var r=e.datas.dragScroll;if(r){var n=t.props,i=n.scrollContainer,o=void 0===i?t.getContainer():i,a=n.scrollThreshold,s=void 0===a?0:a,u=n.scrollThrottleTime,c=void 0===u?0:u,l=n.getScrollPosition,f=void 0===l?ca:l,p=n.scrollOptions;return r.drag(e,Fe({container:o,threshold:s,throttleTime:c,getScrollPosition:function(t){return f({scrollContainer:t.container,direction:t.direction})}},p)),!0}},drag:function(t,e){return this.checkScroll(t,e)},dragEnd:function(t,e){e.datas.dragScroll.dragEnd(),e.datas.dragScroll=null},dragControlStart:function(t,e){return this.dragStart(t,Fe(Fe({},e),{isControl:!0}))},dragControl:function(t,e){return this.drag(t,e)},dragControlEnd:function(t,e){return this.dragEnd(t,e)},dragGroupStart:function(t,e){return this.dragStart(t,Fe(Fe({},e),{targets:t.props.targets}))},dragGroup:function(t,e){return this.drag(t,Fe(Fe({},e),{targets:t.props.targets}))},dragGroupEnd:function(t,e){return this.dragEnd(t,Fe(Fe({},e),{targets:t.props.targets}))},dragGroupControlStart:function(t,e){return this.dragStart(t,Fe(Fe({},e),{targets:t.props.targets,isControl:!0}))},dragGroupControl:function(t,e){return this.drag(t,Fe(Fe({},e),{targets:t.props.targets}))},dragGroupControEnd:function(t,e){return this.dragEnd(t,Fe(Fe({},e),{targets:t.props.targets}))},unset:function(t){var e,r=t.state;null===(e=r.dragScroll)||void 0===e||e.dragEnd(),r.dragScroll=null}},fa={name:"",props:["target","dragTargetSelf","dragTarget","dragContainer","container","warpSelf","rootContainer","useResizeObserver","useMutationObserver","zoom","dragFocusedInput","transformOrigin","ables","className","pinchThreshold","pinchOutside","triggerAblesSimultaneously","checkInput","cspNonce","translateZ","hideDefaultLines","props","flushSync","stopPropagation","preventClickEventOnDrag","preventClickDefault","viewContainer","persistData","useAccuratePosition","firstRenderState","linePadding","controlPadding","preventDefault","preventRightClick","preventWheelClick","requestStyles"],events:["changeTargets"]},pa=Ue("padding",{props:["padding"],render:function(t,e){var r=t.props;if(r.dragArea)return[];var n=Xo(r.padding||{}),i=n.left,o=n.top,a=n.right,s=n.bottom,u=t.getState(),c=u.renderPoses,l=[u.pos1,u.pos2,u.pos3,u.pos4],f=[];return i>0&&f.push([0,2]),o>0&&f.push([0,1]),a>0&&f.push([1,3]),s>0&&f.push([2,3]),f.map((function(t,r){var n=__read(t,2),i=n[0],o=n[1],a=Ft([0,0],[100,0],[0,100],[100,100],l[i],l[o],c[i],c[o]);if(a.length)return e.createElement("div",{key:"padding".concat(r),className:zi("padding"),style:{transform:Wi(a,!0)}})}))}}),ha=["nw","ne","se","sw"];function da(t,e){var r=t[0]+t[1],n=r>e?e/r:1;return t[0]*=n,t[1]=e-t[1]*n,t}var va=[1,2,5,6],ga=[0,3,4,7],ya=[1,-1,-1,1],ma=[1,1,-1,-1];function _a(t,e,r,n,i,o,a,s){void 0===i&&(i=0),void 0===o&&(o=0),void 0===a&&(a=r),void 0===s&&(s=n);var u=[],c=!1,l=t.filter((function(t){return!t.virtual})),f=l.map((function(t){var l=t.horizontal,f=t.vertical,p=t.pos;if(f&&!c&&(c=!0,u.push("/")),c){var h=Math.max(0,1===f?p[1]-o:s-p[1]);return u.push(Ro(h,n,e)),h}h=Math.max(0,1===l?p[0]-i:a-p[0]);return u.push(Ro(h,r,e)),h}));return{radiusPoses:l,styles:u,raws:f}}function ba(t){for(var e=[0,0],r=[0,0],n=t.length,i=0;i<n;++i){var o=t[i];o.sub&&(o.horizontal&&(0===e[1]&&(e[0]=i),e[1]=i-e[0]+1,r[0]=i+1),o.vertical&&(0===r[1]&&(r[0]=i),r[1]=i-r[0]+1))}return{horizontalRange:e,verticalRange:r}}function Sa(t,e,r,n,i,o,a){var s,u,c,l;void 0===o&&(o=[0,0]),void 0===a&&(a=!1);var f=t.indexOf("/"),p=(f>-1?t.slice(0,f):t).length,h=t.slice(0,p),d=t.slice(p+1),v=h.length,g=d.length,y=g>0,m=__read(h,4),_=m[0],b=void 0===_?"0px":_,S=m[1],w=void 0===S?b:S,x=m[2],E=void 0===x?b:x,M=m[3],O=void 0===M?w:M,k=__read(d,4),C=k[0],D=void 0===C?b:C,I=k[1],A=void 0===I?y?D:w:I,R=k[2],T=void 0===R?y?D:E:R,z=k[3],B=void 0===z?y?A:O:z,q=[b,w,E,O].map((function(t){return $(t,e)})),P=[D,A,T,B].map((function(t){return $(t,r)})),j=q.slice(),L=P.slice();s=__read(da([j[0],j[1]],e),2),j[0]=s[0],j[1]=s[1],u=__read(da([j[3],j[2]],e),2),j[3]=u[0],j[2]=u[1],c=__read(da([L[0],L[3]],r),2),L[0]=c[0],L[3]=c[1],l=__read(da([L[1],L[2]],r),2),L[1]=l[0],L[2]=l[1];var K=a?j:j.slice(0,Math.max(o[0],v)),N=a?L:L.slice(0,Math.max(o[1],g));return __spreadArray(__spreadArray([],__read(K.map((function(t,e){var o=ha[e];return{virtual:e>=v,horizontal:ya[e],vertical:0,pos:[n+t,i+(-1===ma[e]?r:0)],sub:!0,raw:q[e],direction:o}}))),!1),__read(N.map((function(t,r){var o=ha[r];return{virtual:r>=g,horizontal:0,vertical:ma[r],pos:[n+(-1===ya[r]?e:0),i+t],sub:!0,raw:P[r],direction:o}}))),!1)}var wa=[[0,-1,"n"],[1,0,"e"]],xa=[[-1,-1,"nw"],[0,-1,"n"],[1,-1,"ne"],[1,0,"e"],[1,1,"se"],[0,1,"s"],[-1,1,"sw"],[-1,0,"w"]];function Oa(t,e,r){var n=t.props.clipRelative,i=t.state,o=i.width,a=i.height,s=e,u=s.type,c=s.poses,l="rect"===u,f="circle"===u;if("polygon"===u)return r.map((function(t){return"".concat(Ro(t[0],o,n)," ").concat(Ro(t[1],a,n))}));if(l||"inset"===u){var p=r[1][1],h=r[3][0],d=r[7][0],v=r[5][1];if(l)return[p,h,v,d].map((function(t){return"".concat(t,"px")}));var g=[p,o-h,a-v,d].map((function(t,e){return Ro(t,e%2?o:a,n)}));if(r.length>8){var y=__read(Ct(r[4],r[0]),2),m=y[0],_=y[1];g.push.apply(g,__spreadArray(["round"],__read(_a(c.slice(8).map((function(t,e){return Fe(Fe({},t),{pos:r[e]})})),n,m,_,d,p,h,v).styles),!1))}return g}if(f||"ellipse"===u){var b=r[0],S=Ro(Wo(r[1][1]-b[1]),f?Math.sqrt((o*o+a*a)/2):a,n);return(g=f?[S]:[Ro(Wo(r[2][0]-b[0]),o,n),S]).push("at",Ro(b[0],o,n),Ro(b[1],a,n)),g}}function ka(t,e,r,n){var i=[n,(n+e)/2,e],o=[t,(t+r)/2,r];return xa.map((function(t){var e=__read(t,3),r=e[0],n=e[1],a=e[2],s=i[r+1],u=o[n+1];return{vertical:Wo(n),horizontal:Wo(r),direction:a,pos:[s,u]}}))}function Aa(t){var e=[1/0,-1/0],r=[1/0,-1/0];return t.forEach((function(t){var n=t.pos;e[0]=Math.min(e[0],n[0]),e[1]=Math.max(e[1],n[0]),r[0]=Math.min(r[0],n[1]),r[1]=Math.max(r[1],n[1])})),[Wo(e[1]-e[0]),Wo(r[1]-r[0])]}function Ra(t,e,r,n,i){var o,a,s,u,c,l,f,p,h;if(t){var d=i;if(!d){var v=Zr(t),g=v("clipPath");d="none"!==g?g:v("clip")}if(d&&"none"!==d&&"auto"!==d||(d=n)){var y=F(d),m=y.prefix,_=void 0===m?d:m,b=y.value,S=void 0===b?"":b,w="circle"===_,x=" ";if("polygon"===_){x=",";var E=(I=N(S||"0% 0%, 100% 0%, 100% 100%, 0% 100%")).map((function(t){var n=__read(t.split(" "),2),i=n[0],o=n[1];return{vertical:1,horizontal:1,pos:[$(i,e),$(o,r)]}})),M=ve(E.map((function(t){return t.pos})));return{type:_,clipText:d,poses:E,splitter:x,left:M.minX,right:M.maxX,top:M.minY,bottom:M.maxY}}if(w||"ellipse"===_){var O="",k="",C=0,D=0,I=K(S);if(w){var A;A=void 0===(a=(o=__read(I,4))[0])?"50%":a,O=void 0===(s=o[2])?"50%":s,k=void 0===(u=o[3])?"50%":u,C=$(A,Math.sqrt((e*e+r*r)/2)),D=C}else{var R,T;R=void 0===(l=(c=__read(I,5))[0])?"50%":l,T=void 0===(f=c[1])?"50%":f,O=void 0===(p=c[3])?"50%":p,k=void 0===(h=c[4])?"50%":h,C=$(R,e),D=$(T,r)}var z=[$(O,e),$(k,r)];E=__spreadArray([{vertical:1,horizontal:1,pos:z,direction:"nesw"}],__read(wa.slice(0,w?1:2).map((function(t){return{vertical:Wo(t[1]),horizontal:t[0],direction:t[2],sub:!0,pos:[z[0]+t[0]*C,z[1]+t[1]*D]}}))),!1);return{type:_,clipText:d,radiusX:C,radiusY:D,left:z[0]-C,top:z[1]-D,right:z[0]+C,bottom:z[1]+D,poses:E,splitter:x}}if("inset"===_){var B=(I=K(S||"0 0 0 0")).indexOf("round"),q=(B>-1?I.slice(0,B):I).length,P=I.slice(q+1),j=__read(I.slice(0,q),4),L=j[0],G=j[1],H=void 0===G?L:G,W=j[2],V=void 0===W?L:W,X=j[3],Y=void 0===X?H:X,J=__read([L,V].map((function(t){return $(t,r)})),2),Z=J[0],Q=J[1],tt=__read([Y,H].map((function(t){return $(t,e)})),2),et=tt[0],rt=tt[1],nt=e-rt,it=r-Q,ot=Sa(P,nt-et,it-Z,et,Z);return{type:"inset",clipText:d,poses:E=__spreadArray(__spreadArray([],__read(ka(Z,nt,it,et)),!1),__read(ot),!1),top:Z,left:et,right:nt,bottom:it,radius:P,splitter:x}}if("rect"===_){x=",";var at=__read((I=N(S||"0px, ".concat(e,"px, ").concat(r,"px, 0px"))).map((function(t){return U(t).value})),4),st=at[0];return{type:"rect",clipText:d,poses:E=ka(st,rt=at[1],Q=at[2],et=at[3]),top:st,right:rt,bottom:Q,left:et,values:I,splitter:x}}}}}function Ta(t,e){var r=__read(Sr(t,e),2),n=r[0],i=r[1],o=e.datas,a=o.clipPath,s=o.clipIndex,u=a,c=u.type,l=u.poses,f=u.splitter,p=l.map((function(t){return t.pos}));if("polygon"===c)p.splice(s,0,[n,i]);else{if("inset"!==c)return;var h=va.indexOf(s),d=ga.indexOf(s),v=l.length;if(function(t,e,r,n,i,o,a,s,u,c,l){void 0===c&&(c=0),void 0===l&&(l=0);var f=ba(t.slice(r)),p=f.horizontalRange,h=f.verticalRange;if(n>-1)for(var d=1===ya[n]?o-c:s-o,v=p[1];v<=n;++v){var g=1===ma[v]?l:u,y=0;if(n===v?y=o:0===v?y=c+d:-1===ya[v]&&(y=s-(e[r][0]-c)),t.splice(r+v,0,{horizontal:ya[v],vertical:0,pos:[y,g]}),e.splice(r+v,0,[y,g]),0===v)break}else if(i>-1){var m=1===ma[i]?a-l:u-a;if(0===p[1]&&0===h[1]){var _=[c+m,l];t.push({horizontal:ya[0],vertical:0,pos:_}),e.push(_)}var b=h[0];for(v=h[1];v<=i&&(y=1===ya[v]?c:s,g=0,i===v?g=a:0===v?g=l+m:1===ma[v]?g=e[r+b][1]:-1===ma[v]&&(g=u-(e[r+b][1]-l)),t.push({horizontal:0,vertical:ma[v],pos:[y,g]}),e.push([y,g]),0!==v);++v);}}(l,p,8,h,d,n,i,p[4][0],p[4][1],p[0][0],p[0][1]),v===l.length)return}var g=Oa(t,a,p),y="".concat(c,"(").concat(g.join(f),")");So(t,"onClip",mo(t,e,Fe({clipEventType:"added",clipType:c,poses:p,clipStyles:g,clipStyle:y,distX:0,distY:0},go({clipPath:y},e))))}function za(t,e){var r=e.datas,n=r.clipPath,i=r.clipIndex,o=n,a=o.type,s=o.poses,u=o.splitter,c=s.map((function(t){return t.pos})),l=c.length;if("polygon"===a)s.splice(i,1),c.splice(i,1);else{if("inset"!==a)return;if(i<8)return;if(function(t,e,r,n,i){void 0===i&&(i=e.length);var o=ba(t.slice(n)),a=o.horizontalRange,s=o.verticalRange,u=r-n,c=0;if(0===u)c=i;else if(u>0&&u<a[1])c=a[1]-u;else{if(!(u>=s[0]))return;c=s[0]+s[1]-u}t.splice(r,c),e.splice(r,c)}(s,c,i,8,l),l===s.length)return}var f=Oa(t,n,c),p="".concat(a,"(").concat(f.join(u),")");So(t,"onClip",mo(t,e,Fe({clipEventType:"removed",clipType:a,poses:c,clipStyles:f,clipStyle:p,distX:0,distY:0},go({clipPath:p},e))))}var qa={name:"clippable",props:["clippable","defaultClipPath","customClipPath","keepRatio","clipRelative","clipArea","dragWithClip","clipTargetBounds","clipVerticalGuidelines","clipHorizontalGuidelines","clipSnapThreshold"],events:["clipStart","clip","clipEnd"],css:[".control.clip-control {\nbackground: #6d6;\ncursor: pointer;\n}\n.control.clip-control.clip-radius {\nbackground: #d66;\n}\n.line.clip-line {\nbackground: #6e6;\ncursor: move;\nz-index: 1;\n}\n.clip-area {\nposition: absolute;\ntop: 0;\nleft: 0;\n}\n.clip-ellipse {\nposition: absolute;\ncursor: move;\nborder: 1px solid #6d6;\nborder: var(--zoompx) solid #6d6;\nborder-radius: 50%;\ntransform-origin: 0px 0px;\n}",":host {\n--bounds-color: #d66;\n}",".guideline {\npointer-events: none;\nz-index: 2;\n}",".line.guideline.bounds {\nbackground: #d66;\nbackground: var(--bounds-color);\n}"],render:function(t,e){var r=t.props,n=r.customClipPath,i=r.defaultClipPath,o=r.clipArea,a=r.zoom,s=r.groupable,u=t.getState(),c=u.target,l=u.width,f=u.height,p=u.allMatrix,h=u.is3d,d=u.left,v=u.top,g=u.pos1,y=u.pos2,m=u.pos3,_=u.pos4,b=u.clipPathState,S=u.snapBoundInfos,w=u.rotation;if(!c||s)return[];var x=Ra(c,l,f,i||"inset",b||n);if(!x)return[];var E=h?4:3,M=x.type,O=x.poses.map((function(t){var e=Yi(p,t.pos,E);return[e[0]-d,e[1]-v]})),k=[],C=[],D="rect"===M,I="inset"===M,A="polygon"===M;if(D||I||A){var R=I?O.slice(0,8):O;C=R.map((function(t,r){var n=0===r?R[R.length-1]:R[r-1],i=et(n,t),o=to(n,t);return e.createElement("div",{key:"clipLine".concat(r),className:zi("line","clip-line","snap-control"),"data-clip-index":r,style:{width:"".concat(o,"px"),transform:"translate(".concat(n[0],"px, ").concat(n[1],"px) rotate(").concat(i,"rad) scaleY(").concat(a,")")}})}))}if(k=O.map((function(t,r){return e.createElement("div",{key:"clipControl".concat(r),className:zi("control","clip-control","snap-control"),"data-clip-index":r,style:{transform:"translate(".concat(t[0],"px, ").concat(t[1],"px) rotate(").concat(w,"rad) scale(").concat(a,")")}})})),I&&k.push.apply(k,__spreadArray([],__read(O.slice(8).map((function(t,r){return e.createElement("div",{key:"clipRadiusControl".concat(r),className:zi("control","clip-control","clip-radius","snap-control"),"data-clip-index":8+r,style:{transform:"translate(".concat(t[0],"px, ").concat(t[1],"px) rotate(").concat(w,"rad) scale(").concat(a,")")}})}))),!1)),"circle"===M||"ellipse"===M){var T=x.left,z=x.top,B=x.radiusX,q=x.radiusY,P=__read(Ct(Yi(p,[T,z],E),Yi(p,[0,0],E)),2),j=P[0],L=P[1],K="none";if(!o){for(var N=Math.max(10,B/5,q/5),F=[],U=0;U<=N;++U){var G=2*Math.PI/N*U;F.push([B+(B-a)*Math.cos(G),q+(q-a)*Math.sin(G)])}F.push([B,-2]),F.push([-2,-2]),F.push([-2,2*q+2]),F.push([2*B+2,2*q+2]),F.push([2*B+2,-2]),F.push([B,-2]),K="polygon(".concat(F.map((function(t){return"".concat(t[0],"px ").concat(t[1],"px")})).join(", "),")")}k.push(e.createElement("div",{key:"clipEllipse",className:zi("clip-ellipse","snap-control"),style:{width:"".concat(2*B,"px"),height:"".concat(2*q,"px"),clipPath:K,transform:"translate(".concat(-d+j,"px, ").concat(-v+L,"px) ").concat(Wi(p))}}))}if(o){var H=Ji(__spreadArray([g,y,m,_],__read(O),!1)),W=H.width,V=H.height,X=H.left,Y=H.top;if(A||D||I){F=I?O.slice(0,8):O;k.push(e.createElement("div",{key:"clipArea",className:zi("clip-area","snap-control"),style:{width:"".concat(W,"px"),height:"".concat(V,"px"),transform:"translate(".concat(X,"px, ").concat(Y,"px)"),clipPath:"polygon(".concat(F.map((function(t){return"".concat(t[0]-X,"px ").concat(t[1]-Y,"px")})).join(", "),")")}}))}}return S&&["vertical","horizontal"].forEach((function(t){var r=S[t],n="horizontal"===t;r.isSnap&&C.push.apply(C,__spreadArray([],__read(r.snap.posInfos.map((function(r,i){var o=r.pos,s=Ct(Yi(p,n?[0,o]:[o,0],E),[d,v]),u=Ct(Yi(p,n?[l,o]:[o,f],E),[d,v]);return an(e,"",s,u,a,"clip".concat(t,"snap").concat(i),"guideline")}))),!1)),r.isBound&&C.push.apply(C,__spreadArray([],__read(r.bounds.map((function(r,i){var o=r.pos,s=Ct(Yi(p,n?[0,o]:[o,0],E),[d,v]),u=Ct(Yi(p,n?[l,o]:[o,f],E),[d,v]);return an(e,"",s,u,a,"clip".concat(t,"bounds").concat(i),"guideline","bounds","bold")}))),!1))})),__spreadArray(__spreadArray([],__read(k),!1),__read(C),!1)},dragControlCondition:function(t,e){return e.inputEvent&&(e.inputEvent.target.getAttribute("class")||"").indexOf("clip")>-1},dragStart:function(t,e){var r=t.props.dragWithClip;return!(void 0===r||r)&&this.dragControlStart(t,e)},drag:function(t,e){return this.dragControl(t,Fe(Fe({},e),{isDragTarget:!0}))},dragEnd:function(t,e){return this.dragControlEnd(t,e)},dragControlStart:function(t,e){var r=t.state,n=t.props,i=n.defaultClipPath,o=n.customClipPath,a=r.target,s=r.width,u=r.height,c=e.inputEvent?e.inputEvent.target:null,l=c&&c.getAttribute("class")||"",f=e.datas,p=Ra(a,s,u,i||"inset",o);if(!p)return!1;var h=p.clipText;return!1===So(t,"onClipStart",mo(t,e,{clipType:p.type,clipStyle:h,poses:p.poses.map((function(t){return t.pos}))}))?(f.isClipStart=!1,!1):(f.isControl=l&&l.indexOf("clip-control")>-1,f.isLine=l.indexOf("clip-line")>-1,f.isArea=l.indexOf("clip-area")>-1||l.indexOf("clip-ellipse")>-1,f.clipIndex=c?parseInt(c.getAttribute("data-clip-index"),10):-1,f.clipPath=p,f.isClipStart=!0,r.clipPathState=h,wr(t,e),!0)},dragControl:function(t,e){var r,n,i,o=e.datas,a=e.originalDatas,s=e.isDragTarget;if(!o.isClipStart)return!1;var u=o,c=u.isControl,l=u.isLine,f=u.isArea,p=u.clipIndex,h=u.clipPath;if(!h)return!1;var d=no(t.props,"clippable"),v=d.keepRatio,g=0,y=0,m=a.draggable,_=Cr(e);s&&m?(r=__read(m.prevBeforeDist,2),g=r[0],y=r[1]):(n=__read(_,2),g=n[0],y=n[1]);var b=[g,y],S=t.state,w=S.width,x=S.height,E=!f&&!c&&!l,M=h.type,O=h.poses,k=h.splitter,C=O.map((function(t){return t.pos}));E&&(g=-g,y=-y);var D=!c||"nesw"===O[p].direction,I="inset"===M||"rect"===M,A=O.map((function(){return[0,0]}));if(c&&!D){var R=O[p],T=R.horizontal,z=R.vertical,B=[g*Wo(T),y*Wo(z)];A=function(t,e,r,n,i){var o=t[e],a=o.direction,s=o.sub,u=t.map((function(){return[0,0]})),c=a?a.split(""):[];if(n&&e<8){var l=c.filter((function(t){return"w"===t||"e"===t})),f=c.filter((function(t){return"n"===t||"s"===t})),p=l[0],h=f[0];u[e]=r;var d=__read(Aa(t),2),v=d[0],g=d[1],y=v&&g?v/g:0;if(y&&i){var m=t[(e+4)%8].pos,_=[0,0];a.indexOf("w")>-1?_[0]=-1:a.indexOf("e")>-1&&(_[0]=1),a.indexOf("n")>-1?_[1]=-1:a.indexOf("s")>-1&&(_[1]=1);var b=Lo([v,g],r,y,_,!0),S=v+b[0],w=g+b[1],x=m[1],E=m[1],M=m[0],O=m[0];-1===_[0]?M=O-S:1===_[0]?O=M+S:(M-=S/2,O+=S/2),-1===_[1]?x=E-w:E=1===_[1]?x+w:(x=E-w/2)+w;var k=ka(x,O,E,M);t.forEach((function(t,e){u[e][0]=k[e].pos[0]-t.pos[0],u[e][1]=k[e].pos[1]-t.pos[1]}))}else t.forEach((function(t,e){var n=t.direction;n&&(n.indexOf(p)>-1&&(u[e][0]=r[0]),n.indexOf(h)>-1&&(u[e][1]=r[1]))})),p&&(u[1][0]=r[0]/2,u[5][0]=r[0]/2),h&&(u[3][1]=r[1]/2,u[7][1]=r[1]/2)}else a&&!s?c.forEach((function(e){var n="n"===e||"s"===e;t.forEach((function(t,i){var o=t.direction,a=t.horizontal,s=t.vertical;o&&-1!==o.indexOf(e)&&(u[i]=[n||!a?0:r[0],n&&s?r[1]:0])}))})):u[e]=r;return u}(O,p,B,I,v)}else D&&(A=C.map((function(){return[g,y]})));var q=C.map((function(t,e){return kt(t,A[e])})),P=__spreadArray([],__read(q),!1);S.snapBoundInfos=null;var j="circle"===h.type,L="ellipse"===h.type;if(j||L){var K=Wo((nt=Ji(q)).bottom-nt.top),N=Wo(L?nt.right-nt.left:K),F=q[0][1]+K,U=q[0][0]-N,G=q[0][0]+N;j&&(P.push([G,nt.bottom]),A.push([1,0])),P.push([nt.left,F]),A.push([0,1]),P.push([U,nt.bottom]),A.push([1,0])}var H=bi((d.clipHorizontalGuidelines||[]).map((function(t){return $("".concat(t),x)})),(d.clipVerticalGuidelines||[]).map((function(t){return $("".concat(t),w)})),w,x),W=[],V=[];if(j||L)W=[P[4][0],P[2][0]],V=[P[1][1],P[3][1]];else if(I){var X=[P[0],P[2],P[4],P[6]],Y=[A[0],A[2],A[4],A[6]];W=X.filter((function(t,e){return Y[e][0]})).map((function(t){return t[0]})),V=X.filter((function(t,e){return Y[e][1]})).map((function(t){return t[1]}))}else W=P.filter((function(t,e){return A[e][0]})).map((function(t){return t[0]})),V=P.filter((function(t,e){return A[e][1]})).map((function(t){return t[1]}));var J=[0,0],Z=Jn(H,d.clipTargetBounds&&{left:0,top:0,right:w,bottom:x},W,V,5,5),Q=Z.horizontal,tt=Z.vertical,et=Q.offset,rt=tt.offset;if(Q.isBound&&(J[1]+=et),tt.isBound&&(J[0]+=rt),(L||j)&&0===A[0][0]&&0===A[0][1]){var nt,it=(nt=Ji(q)).bottom-nt.top,ot=L?nt.right-nt.left:it;ot-=tt.isBound?Wo(rt):0===tt.snapIndex?-rt:rt,it-=Q.isBound?Wo(et):0===Q.snapIndex?-et:et,j&&(ot=it=Bn(tt,Q)>0?it:ot);var at=P[0];P[1][1]=at[1]-it,P[2][0]=at[0]+ot,P[3][1]=at[1]+it,P[4][0]=at[0]-ot}else if(I&&v&&c){var st=__read(Aa(O),2),ut=st[0],ct=st[1],lt=ut&&ct?ut/ct:0,ft=O[p].direction||"",pt=P[1][1];F=P[5][1],U=P[7][0],G=P[3][0];Wo(et)<=Wo(rt)?et=Ho(et)*Wo(rt)/lt:rt=Ho(rt)*Wo(et)*lt,ft.indexOf("w")>-1?U-=rt:ft.indexOf("e")>-1?G-=rt:(U+=rt/2,G-=rt/2),ft.indexOf("n")>-1?pt-=et:ft.indexOf("s")>-1?F-=et:(pt+=et/2,F-=et/2);var ht=ka(pt,G,F,U);P.forEach((function(t,e){var r;r=__read(ht[e].pos,2),t[0]=r[0],t[1]=r[1]}))}else P.forEach((function(t,e){var r=A[e];r[0]&&(t[0]-=rt),r[1]&&(t[1]-=et)}));var dt=Oa(t,h,q),vt="".concat(M,"(").concat(dt.join(k),")");if(S.clipPathState=vt,j||L)W=[P[4][0],P[2][0]],V=[P[1][1],P[3][1]];else if(I){W=(X=[P[0],P[2],P[4],P[6]]).map((function(t){return t[0]})),V=X.map((function(t){return t[1]}))}else W=P.map((function(t){return t[0]})),V=P.map((function(t){return t[1]}));if(S.snapBoundInfos=Jn(H,d.clipTargetBounds&&{left:0,top:0,right:w,bottom:x},W,V,1,1),m){var gt=S.is3d,yt=S.allMatrix,mt=gt?4:3,_t=J;s&&(_t=[b[0]+J[0]-_[0],b[1]+J[1]-_[1]]),m.deltaOffset=Ot(yt,[_t[0],_t[1],0,0],mt)}return So(t,"onClip",mo(t,e,Fe({clipEventType:"changed",clipType:M,poses:q,clipStyle:vt,clipStyles:dt,distX:g,distY:y},go(((i={})["rect"===M?"clip":"clipPath"]=vt,i),e)))),!0},dragControlEnd:function(t,e){this.unset(t);var r=e.isDrag,n=e.datas,i=e.isDouble,o=n.isLine,a=n.isClipStart,s=n.isControl;return!!a&&(So(t,"onClipEnd",_o(t,e,{})),i&&(s?za(t,e):o&&Ta(t,e)),i||r)},unset:function(t){t.state.clipPathState="",t.state.snapBoundInfos=null}},Pa={name:"originDraggable",props:["originDraggable","originRelative"],events:["dragOriginStart","dragOrigin","dragOriginEnd"],css:[":host[data-able-origindraggable] .control.origin {\npointer-events: auto;\n}"],dragControlCondition:function(t,e){return e.isRequest?"originDraggable"===e.requestAble:at(e.inputEvent.target,zi("origin"))},dragControlStart:function(t,e){var r=e.datas;wr(t,e);var n=mo(t,e,{dragStart:ti.dragStart(t,(new _r).dragStart([0,0],e))}),i=So(t,"onDragOriginStart",n);return r.startOrigin=t.state.transformOrigin,r.startTargetOrigin=t.state.targetOrigin,r.prevOrigin=[0,0],r.isDragOrigin=!0,!1===i?(r.isDragOrigin=!1,!1):n},dragControl:function(t,e){var r=e.datas,n=e.isPinch,i=e.isRequest;if(!r.isDragOrigin)return!1;var o=__read(Cr(e),2),a=o[0],s=o[1],u=t.state,c=u.width,l=u.height,f=u.offsetMatrix,p=u.targetMatrix,h=u.is3d,d=t.props.originRelative,v=void 0===d||d,g=h?4:3,y=[a,s];if(i){var m=e.distOrigin;(m[0]||m[1])&&(y=m)}var _=kt(r.startOrigin,y),b=kt(r.startTargetOrigin,y),S=Ct(y,r.prevOrigin),w=Rr(f,p,_,g),x=t.getRect(),E=Ji($i(w,c,l,g)),M=[x.left-E.left,x.top-E.top];r.prevOrigin=y;var O=[Ro(b[0],c,v),Ro(b[1],l,v)].join(" "),k=ti.drag(t,mr(e,t.state,M,!!n,!1)),C=mo(t,e,Fe(Fe({width:c,height:l,origin:_,dist:y,delta:S,transformOrigin:O,drag:k},go({transformOrigin:O,transform:k.transform},e)),{afterTransform:k.transform}));return So(t,"onDragOrigin",C),C},dragControlEnd:function(t,e){return!!e.datas.isDragOrigin&&(So(t,"onDragOriginEnd",_o(t,e,{})),!0)},dragGroupControlCondition:function(t,e){return this.dragControlCondition(t,e)},dragGroupControlStart:function(t,e){return!!this.dragControlStart(t,e)},dragGroupControl:function(t,e){var r=this.dragControl(t,e);return!!r&&(t.transformOrigin=r.transformOrigin,!0)},request:function(t){var e={},r=t.getRect(),n=0,i=0,o=r.transformOrigin,a=[0,0];return{isControl:!0,requestStart:function(){return{datas:e}},request:function(t){return"deltaOrigin"in t?(a[0]+=t.deltaOrigin[0],a[1]+=t.deltaOrigin[1]):"origin"in t?(a[0]=t.origin[0]-o[0],a[1]=t.origin[1]-o[1]):("x"in t?n=t.x-r.left:"deltaX"in t&&(n+=t.deltaX),"y"in t?i=t.y-r.top:"deltaY"in t&&(i+=t.deltaY)),{datas:e,distX:n,distY:i,distOrigin:a}},requestEnd:function(){return{datas:e,isDrag:!0}}}}};function ja(t,e,r,n,i){void 0===n&&(n=[0,0]);return Sa(t&&"0px"!==t?K(t):[],e,r,0,0,n,i)}function La(t,e,r,n,i){var o=t.state,a=o.width,s=o.height,u=_a(i,t.props.roundRelative,a,s),c=u.raws,l=u.styles,f=function(t,e){return void 0===e&&(e=t.map((function(t){return t.raw}))),{horizontals:t.map((function(t,r){return t.horizontal?e[r]:null})).filter((function(t){return null!=t})),verticals:t.map((function(t,r){return t.vertical?e[r]:null})).filter((function(t){return null!=t}))}}(u.radiusPoses,c),p=f.horizontals,h=f.verticals,d=l.join(" ");o.borderRadiusState=d;var v=mo(t,e,Fe({horizontals:p,verticals:h,borderRadius:d,width:a,height:s,delta:n,dist:r},go({borderRadius:d},e)));return So(t,"onRound",v),v}function Ka(t){var e,r,n=t.getState().style,i=n.borderRadius||"";if(!i&&t.props.groupable){var o=t.moveables[0],a=t.getTargets()[0];a&&((null==o?void 0:o.props.target)===a?(i=null!==(r=null===(e=t.moveables[0])||void 0===e?void 0:e.state.style.borderRadius)&&void 0!==r?r:"",n.borderRadius=i):(i=wo(a).borderRadius,n.borderRadius=i))}return i}var Na={name:"roundable",props:["roundable","roundRelative","minRoundControls","maxRoundControls","roundClickable","roundPadding","isDisplayShadowRoundControls"],events:["roundStart","round","roundEnd","roundGroupStart","roundGroup","roundGroupEnd"],css:[".control.border-radius {\nbackground: #d66;\ncursor: pointer;\nz-index: 3;\n}",".control.border-radius.vertical {\nbackground: #d6d;\nz-index: 2;\n}",".control.border-radius.virtual {\nopacity: 0.5;\nz-index: 1;\n}",":host.round-line-clickable .line.direction {\ncursor: pointer;\n}"],className:function(t){var e=t.props.roundClickable;return!0===e||"line"===e?zi("round-line-clickable"):""},requestStyle:function(){return["borderRadius"]},requestChildStyle:function(){return["borderRadius"]},render:function(t,e){var r=t.getState(),n=r.target,i=r.width,o=r.height,a=r.allMatrix,s=r.is3d,u=r.left,c=r.top,l=r.borderRadiusState,f=t.props,p=f.minRoundControls,h=void 0===p?[0,0]:p,d=f.maxRoundControls,v=void 0===d?[4,4]:d,g=f.zoom,y=f.roundPadding,m=void 0===y?0:y,_=f.isDisplayShadowRoundControls,b=f.groupable;if(!n)return null;var S=l||Ka(t),w=s?4:3,x=ja(S,i,o,h,!0);if(!x)return null;var E=0,M=0,O=b?[0,0]:[u,c];return x.map((function(t,r){var n=t.horizontal,i=t.vertical,o=t.direction||"",s=__spreadArray([],__read(t.pos),!1);M+=Math.abs(n),E+=Math.abs(i),n&&o.indexOf("n")>-1&&(s[1]-=m),i&&o.indexOf("w")>-1&&(s[0]-=m),n&&o.indexOf("s")>-1&&(s[1]+=m),i&&o.indexOf("e")>-1&&(s[0]+=m);var u=Ct(Yi(a,s,w),O),c=_&&"horizontal"!==_,l=t.vertical?E<=v[1]&&(c||!t.virtual):M<=v[0]&&(_||!t.virtual);return e.createElement("div",{key:"borderRadiusControl".concat(r),className:zi("control","border-radius",t.vertical?"vertical":"",t.virtual?"virtual":""),"data-radius-index":r,style:{display:l?"block":"none",transform:"translate(".concat(u[0],"px, ").concat(u[1],"px) scale(").concat(g,")")}})}))},dragControlCondition:function(t,e){if(!e.inputEvent||e.isRequest)return!1;var r=e.inputEvent.target.getAttribute("class")||"";return r.indexOf("border-radius")>-1||r.indexOf("moveable-line")>-1&&r.indexOf("moveable-direction")>-1},dragGroupControlCondition:function(t,e){return this.dragControlCondition(t,e)},dragControlStart:function(t,e){var r=e.inputEvent,n=e.datas,i=r.target,o=i.getAttribute("class")||"",a=o.indexOf("border-radius")>-1,s=o.indexOf("moveable-line")>-1&&o.indexOf("moveable-direction")>-1,u=a?parseInt(i.getAttribute("data-radius-index"),10):-1,c=-1;if(s){var l=i.getAttribute("data-line-key")||"";l&&(c=parseInt(l.replace(/render-line-/g,""),10),isNaN(c)&&(c=-1))}if(!a&&!s)return!1;var f=mo(t,e,{});if(!1===So(t,"onRoundStart",f))return!1;n.lineIndex=c,n.controlIndex=u,n.isControl=a,n.isLine=s,wr(t,e);var p=t.props,h=p.roundRelative,d=p.minRoundControls,v=void 0===d?[0,0]:d,g=t.state,y=g.width,m=g.height;n.isRound=!0,n.prevDist=[0,0];var _=ja(Ka(t)||"",y,m,v,!0)||[];return n.controlPoses=_,g.borderRadiusState=_a(_,h,y,m).styles.join(" "),f},dragControl:function(t,e){var r=e.datas,n=r.controlPoses;if(!r.isRound||!r.isControl||!n.length)return!1;var i=r.controlIndex,o=__read(Cr(e),2),a=o[0],s=o[1],u=[a,s],c=Ct(u,r.prevDist),l=t.props.maxRoundControls,f=void 0===l?[4,4]:l,p=t.state,h=p.width,d=p.height,v=n[i],g=v.vertical,y=v.horizontal,m=n.map((function(t){var e=t.horizontal,r=t.vertical,n=[e*y*u[0],r*g*u[1]];if(e){if(1===f[0])return n;if(f[0]<4&&e!==y)return n}else{if(0===f[1])return n[1]=r*y*u[0]/h*d,n;if(g){if(1===f[1])return n;if(f[1]<4&&r!==g)return n}}return[0,0]}));m[i]=u;var _=n.map((function(t,e){return Fe(Fe({},t),{pos:kt(t.pos,m[e])})}));return i<4?_.slice(0,i+1).forEach((function(t){t.virtual=!1})):_.slice(4,i+1).forEach((function(t){t.virtual=!1})),r.prevDist=[a,s],La(t,e,u,c,_)},dragControlEnd:function(t,e){var r=t.state;r.borderRadiusState="";var n=e.datas,i=e.isDouble;if(!n.isRound)return!1;var o=n.isControl,a=n.controlIndex,s=n.isLine,u=n.lineIndex,c=n.controlPoses,l=c.filter((function(t){return t.virtual})).length,f=t.props.roundClickable,p=void 0===f||f;if(i&&p){if(!o||!0!==p&&"control"!==p){if(s&&(!0===p||"line"===p)){var h=__read(Sr(t,e),2);!function(t,e,r,n){var i=t.filter((function(t){var e=t.virtual;return t.horizontal&&!e})).length,o=t.filter((function(t){var e=t.virtual;return t.vertical&&!e})).length,a=-1;if(0===e&&(0===i?a=0:1===i&&(a=1)),2===e&&(i<=2?a=2:i<=3&&(a=3)),3===e&&(0===o?a=4:o<4&&(a=7)),1===e&&(o<=1?a=5:o<=2&&(a=6)),-1!==a&&t[a].virtual){var s=t[a];!function(t,e){e<4?t.slice(0,e+1).forEach((function(t){t.virtual=!1})):(t[0].virtual&&(t[0].virtual=!1),t.slice(4,e+1).forEach((function(t){t.virtual=!1})))}(t,a),a<4?s.pos[0]=r:s.pos[1]=n}}(c,u,h[0],h[1])}}else!function(t,e){e<4?t.slice(e,4).forEach((function(t){t.virtual=!0})):t.slice(e).forEach((function(t){t.virtual=!0}))}(c,a);l!==c.filter((function(t){return t.virtual})).length&&La(t,e,[0,0],[0,0],c)}var d=_o(t,e,{});return So(t,"onRoundEnd",d),r.borderRadiusState="",d},dragGroupControlStart:function(t,e){var r=this.dragControlStart(t,e);if(!r)return!1;var n=t.moveables,i=t.props.targets,o=Qr(t,"roundable",e);return So(t,"onRoundGroupStart",Fe({targets:t.props.targets,events:o.map((function(t,e){return Fe(Fe({},t),{target:i[e],moveable:n[e],currentTarget:n[e]})}))},r)),r},dragGroupControl:function(t,e){var r=this.dragControl(t,e);if(!r)return!1;var n=t.moveables,i=t.props.targets,o=Qr(t,"roundable",e),a=Fe({targets:t.props.targets,events:o.map((function(t,e){return Fe(Fe(Fe({},t),{target:i[e],moveable:n[e],currentTarget:n[e]}),go({borderRadius:r.borderRadius},t))}))},r);return So(t,"onRoundGroup",a),a},dragGroupControlEnd:function(t,e){var r=t.moveables,n=t.props.targets,i=Qr(t,"roundable",e);bo(t,"onRound",(function(e){var o=Fe({targets:t.props.targets,events:i.map((function(t,i){return Fe(Fe(Fe({},t),{target:n[i],moveable:r[i],currentTarget:r[i]}),go({borderRadius:e.borderRadius},t))}))},e);So(t,"onRoundGroup",o)}));var o=this.dragControlEnd(t,e);if(!o)return!1;var a=Fe({targets:t.props.targets,events:i.map((function(t,e){var i;return Fe(Fe({},t),{target:n[e],moveable:r[e],currentTarget:r[e],lastEvent:null===(i=t.datas)||void 0===i?void 0:i.lastEvent})}))},o);return So(t,"onRoundGroupEnd",a),a},unset:function(t){t.state.borderRadiusState=""}};var Ua={isPinch:!0,name:"beforeRenderable",props:[],events:["beforeRenderStart","beforeRender","beforeRenderEnd","beforeRenderGroupStart","beforeRenderGroup","beforeRenderGroupEnd"],dragRelation:"weak",setTransform:function(t,e){var r=t.state,n=r.is3d,i=r.targetMatrix,o=r.inlineTransform,a=n?"matrix3d(".concat(i.join(","),")"):"matrix(".concat(Dt(i,!0),")"),s=o&&"none"!==o?o:a;e.datas.startTransforms=function(t,e){var r=Lt(e?4:3);return t==="matrix".concat(e?"3d":"","(").concat(r.join(","),")")||"matrix(1,0,0,1,0,0)"===t}(s,n)?[]:K(s)},resetStyle:function(t){var e=t.datas;e.nextStyle={},e.nextTransforms=t.datas.startTransforms,e.nextTransformAppendedIndexes=[]},fillDragStartParams:function(t,e){return mo(t,e,{setTransform:function(t){e.datas.startTransforms=T(t)?t:K(t)},isPinch:!!e.isPinch})},fillDragParams:function(t,e){return mo(t,e,{isPinch:!!e.isPinch})},dragStart:function(t,e){this.setTransform(t,e),this.resetStyle(e),So(t,"onBeforeRenderStart",this.fillDragStartParams(t,e))},drag:function(t,e){e.datas.startTransforms||this.setTransform(t,e),this.resetStyle(e),So(t,"onBeforeRender",mo(t,e,{isPinch:!!e.isPinch}))},dragEnd:function(t,e){e.datas.startTransforms||(this.setTransform(t,e),this.resetStyle(e)),So(t,"onBeforeRenderEnd",mo(t,e,{isPinch:!!e.isPinch,isDrag:e.isDrag}))},dragGroupStart:function(t,e){var r=this;this.dragStart(t,e);var n=Qr(t,"beforeRenderable",e),i=t.moveables,o=n.map((function(t,e){var n=i[e];return r.setTransform(n,t),r.resetStyle(t),r.fillDragStartParams(n,t)}));So(t,"onBeforeRenderGroupStart",mo(t,e,{isPinch:!!e.isPinch,targets:t.props.targets,setTransform:function(){},events:o}))},dragGroup:function(t,e){var r=this;this.drag(t,e);var n=Qr(t,"beforeRenderable",e),i=t.moveables,o=n.map((function(t,e){var n=i[e];return r.resetStyle(t),r.fillDragParams(n,t)}));So(t,"onBeforeRenderGroup",mo(t,e,{isPinch:!!e.isPinch,targets:t.props.targets,events:o}))},dragGroupEnd:function(t,e){this.dragEnd(t,e),So(t,"onBeforeRenderGroupEnd",mo(t,e,{isPinch:!!e.isPinch,isDrag:e.isDrag,targets:t.props.targets}))},dragControlStart:function(t,e){return this.dragStart(t,e)},dragControl:function(t,e){return this.drag(t,e)},dragControlEnd:function(t,e){return this.dragEnd(t,e)},dragGroupControlStart:function(t,e){return this.dragGroupStart(t,e)},dragGroupControl:function(t,e){return this.dragGroup(t,e)},dragGroupControlEnd:function(t,e){return this.dragGroupEnd(t,e)}},Wa={name:"renderable",props:[],events:["renderStart","render","renderEnd","renderGroupStart","renderGroup","renderGroupEnd"],dragRelation:"weak",dragStart:function(t,e){So(t,"onRenderStart",mo(t,e,{isPinch:!!e.isPinch}))},drag:function(t,e){So(t,"onRender",this.fillDragParams(t,e))},dragAfter:function(t,e){return this.drag(t,e)},dragEnd:function(t,e){So(t,"onRenderEnd",this.fillDragEndParams(t,e))},dragGroupStart:function(t,e){So(t,"onRenderGroupStart",mo(t,e,{isPinch:!!e.isPinch,targets:t.props.targets}))},dragGroup:function(t,e){var r=this,n=Qr(t,"beforeRenderable",e),i=t.moveables,o=n.map((function(t,e){var n=i[e];return r.fillDragParams(n,t)}));So(t,"onRenderGroup",mo(t,e,Fe(Fe({isPinch:!!e.isPinch,targets:t.props.targets,transform:Lr(e),transformObject:{}},go(Kr(e))),{events:o})))},dragGroupEnd:function(t,e){var r=this,n=Qr(t,"beforeRenderable",e),i=t.moveables,o=n.map((function(t,e){var n=i[e];return r.fillDragEndParams(n,t)}));So(t,"onRenderGroupEnd",mo(t,e,Fe({isPinch:!!e.isPinch,isDrag:e.isDrag,targets:t.props.targets,events:o,transformObject:{},transform:Lr(e)},go(Kr(e)))))},dragControlStart:function(t,e){return this.dragStart(t,e)},dragControl:function(t,e){return this.drag(t,e)},dragControlAfter:function(t,e){return this.dragAfter(t,e)},dragControlEnd:function(t,e){return this.dragEnd(t,e)},dragGroupControlStart:function(t,e){return this.dragGroupStart(t,e)},dragGroupControl:function(t,e){return this.dragGroup(t,e)},dragGroupControlEnd:function(t,e){return this.dragGroupEnd(t,e)},fillDragParams:function(t,e){var r={};return Ht(jr(e)||[]).forEach((function(t){r[t.name]=t.functionValue})),mo(t,e,Fe({isPinch:!!e.isPinch,transformObject:r,transform:Lr(e)},go(Kr(e))))},fillDragEndParams:function(t,e){var r={};return Ht(jr(e)||[]).forEach((function(t){r[t.name]=t.functionValue})),mo(t,e,Fe({isPinch:!!e.isPinch,isDrag:e.isDrag,transformObject:r,transform:Lr(e)},go(Kr(e))))}};function Va(t,e,r,n,i,o,a){o.clientDistX=o.distX,o.clientDistY=o.distY;var s="Start"===i,u="End"===i,c="After"===i,l=t.state.target,f=o.isRequest,p=n.indexOf("Control")>-1;if(!l||s&&p&&!f&&t.areaElement===o.inputEvent.target)return!1;var h=__spreadArray([],__read(e),!1);if(f){var d=o.requestAble;h.some((function(t){return t.name===d}))||h.push.apply(h,__spreadArray([],__read(t.props.ables.filter((function(t){return t.name===d}))),!1))}if(!h.length||h.every((function(t){return t.dragRelation})))return!1;var v,g=o.inputEvent;u&&g&&(v=document.elementFromPoint(o.clientX,o.clientY)||g.target);var y=!1,m=function(){var t;y=!0,null===(t=o.stop)||void 0===t||t.call(o)},_=s&&(!t.targetGesto||!t.controlGesto||!t.targetGesto.isFlag()||!t.controlGesto.isFlag());_&&t.updateRect(i,!0,!1);var b=o.datas,S=p?"controlGesto":"targetGesto",w=t[S],x=function(e,r,n){if(!(r in e)||w!==t[S])return!1;var i=e.name,a=b[i]||(b[i]={});if(s&&(a.isEventStart=!n||!e[n]||e[n](t,o)),!a.isEventStart)return!1;var u=e[r](t,Fe(Fe({},o),{stop:m,datas:a,originalDatas:b,inputTarget:v}));return t._emitter.off(),s&&!1===u&&(a.isEventStart=!1),u};_&&h.forEach((function(e){e.unset&&e.unset(t)})),x(Ua,"drag".concat(n).concat(i));var E=0,M=0;r.forEach((function(e){if(y)return!1;var r="".concat(e).concat(n).concat(i),a="".concat(e).concat(n,"Condition");""!==i||f||Io(t.state,o);var u=h.filter((function(t){return t[r]})),c=(u=u.filter((function(t,e){return t.name&&u.indexOf(t)===e}))).filter((function(t){return x(t,r,a)})).length;y&&++E,c&&++M,!y&&s&&u.length&&!c&&(E+=u.filter((function(t){var e=t.name;return!!b[e].isEventStart&&"strong"!==t.dragRelation})).length?1:0)})),c&&!M||x(Wa,"drag".concat(n).concat(i));var O=w!==t[S]||E===r.length;if((u||y||O)&&(t.state.gestos={},t.moveables&&t.moveables.forEach((function(t){t.state.gestos={}})),h.forEach((function(e){e.unset&&e.unset(t)}))),s&&!O&&!f&&M&&t.props.preventDefault&&(null==o||o.preventDefault()),t.isUnmounted||O)return!1;(!s&&M&&!a||u)&&(t.props.flushSync||Bi)((function(){t.updateRect(u?i:"",!0,!1),t.forceUpdate()}));return s||u||c||!M||a||Va(t,e,r,n,i+"After",o),!0}function Ya(t,e){return function(r,n){var i;void 0===n&&(n=r.inputEvent.target);var o=n,a=t.areaElement,s=t._dragTarget;return!(!s||!e&&(null===(i=t.controlGesto)||void 0===i?void 0:i.isFlag()))&&(o===s||s.contains(o)||o===a||!t.isMoveableElement(o)&&!t.controlBox.contains(o)||at(o,"moveable-area")||at(o,"moveable-padding")||at(o,"moveable-edgeDraggable"))}}function $a(t,e,r){var n=t.controlBox,i=[],o=t.props,a=o.dragArea,s=t.state.target,u=o.dragTarget;i.push(n),a&&!u||i.push(e),!a&&u&&s&&e!==s&&o.dragTargetSelf&&i.push(s);var c=Ya(t);return Qa(t,i,"targetAbles",r,{dragStart:c,pinchStart:c})}function Za(t,e){var r=t.controlBox,n=[];n.push(r);var i=Ya(t,!0),o=function(t,e){return void 0===e&&(e=t.inputEvent.target),e===r||!i(t,e)};return Qa(t,n,"controlAbles",e,{dragStart:o,pinchStart:o})}function Qa(t,e,r,n,i){void 0===i&&(i={});var o="targetAbles"===r,a=t.props,s=a.pinchOutside,u=a.pinchThreshold,c=a.preventClickEventOnDrag,l=a.preventClickDefault,f=a.checkInput,p=a.dragFocusedInput,h=a.preventDefault,d=void 0===h||h,v=a.preventRightClick,g=void 0===v||v,y=a.preventWheelClick,m={preventDefault:d,preventRightClick:g,preventWheelClick:void 0===y||y,container:qo(a.dragContainer,!0)||dt(t.getControlBoxElement()),pinchThreshold:u,pinchOutside:s,preventClickEventOnDrag:!!o&&c,preventClickEventOnDragStart:!!o&&l,preventClickEventByCondition:o?null:function(e){return t.controlBox.contains(e.target)},checkInput:!!o&&f,dragFocusedInput:p},_=new ze(e,m),b="Control"===n;return["drag","pinch"].forEach((function(e){["Start","","End"].forEach((function(o){_.on("".concat(e).concat(o),(function(a){var s,u=a.eventType,c="drag"===e&&a.isPinch;if(!i[u]||i[u](a)){if(!c){var l="drag"===e?[e]:["drag",e],f=__spreadArray([],__read(t[r]),!1);Va(t,f,l,n,o,a)?(t.props.stopPropagation||"Start"===o&&b)&&(null===(s=null==a?void 0:a.inputEvent)||void 0===s||s.stopPropagation()):a.stop()}}else a.stop()}))}))})),_}var ts=function(){function EventManager(t,e,r){var n=this;this.target=t,this.moveable=e,this.eventName=r,this.ables=[],this._onEvent=function(t){var e=n.eventName,r=n.moveable;r.state.disableNativeEvent||n.ables.forEach((function(n){n[e](r,{inputEvent:t})}))},t.addEventListener(r.toLowerCase(),this._onEvent)}return EventManager.prototype.setAbles=function(t){this.ables=t},EventManager.prototype.destroy=function(){this.target.removeEventListener(this.eventName.toLowerCase(),this._onEvent),this.target=null,this.moveable=null},EventManager}();function es(t,e,r,n){var i;void 0===r&&(r=e);var o=Vr(t,e),a=o.matrixes,s=o.is3d,u=o.targetMatrix,c=o.transformOrigin,l=o.targetOrigin,f=o.offsetContainer,p=o.hasFixed,h=o.zoom,d=function(t,e){if($r){var r=W($r,(function(r){return r[0][0]==t&&r[0][1]==e}));if(r)return r[1]}var n=Vr(t,e,!0);return $r&&$r.push([[t,e],n]),n}(f,r),v=d.matrixes,g=d.is3d,y=d.offsetContainer,m=d.zoom,_=n||g||s,b=_?4:3,S="svg"!==t.tagName.toLowerCase()&&"ownerSVGElement"in t,w=u,x=Lt(b),E=Lt(b),M=Lt(b),O=Lt(b),k=a.length,C=v.map((function(t){return Fe(Fe({},t),{matrix:t.matrix?__spreadArray([],__read(t.matrix),!1):void 0})})).reverse();a.reverse(),!s&&_&&(w=Et(w,3,4),Gi(a)),!g&&_&&Gi(C),C.forEach((function(t){E=Ot(E,t.matrix,b)}));var D=r||ht(t),I=(null===(i=C[0])||void 0===i?void 0:i.target)||Ni(D,D,!0).offsetParent,A=C.slice(1).reduce((function(t,e){return Ot(t,e.matrix,b)}),Lt(b));a.forEach((function(t,e){if(k-2===e&&(M=x.slice()),k-1===e&&(O=x.slice()),!t.matrix){var r=function(t,e,r,n,i){var o,a=t.target,s=t.origin,u=e.matrix,c=io(a),l=c.offsetWidth,f=c.offsetHeight,p=r.getBoundingClientRect(),h=[0,0];r===ht(r)&&(h=Ui(a,!0));for(var d=a.getBoundingClientRect(),v=d.left-p.left+r.scrollLeft-(r.clientLeft||0)+h[0],g=d.top-p.top+r.scrollTop-(r.clientTop||0)+h[1],y=d.width,m=d.height,_=Mt(n,i,u),b=Zi(_,l,f,n),S=b.left,w=b.top,x=b.width,E=b.height,M=Yi(_,s,n),O=Ct(M,[S,w]),k=[v+O[0]*y/x,g+O[1]*m/E],C=[0,0],D=0;++D<10;){var I=St(i,n);o=__read(Ct(Yi(I,k,n),Yi(I,M,n)),2),C[0]=o[0],C[1]=o[1];var A=Zi(Mt(n,i,Nt(C,n),u),l,f,n),R=A.left-v,T=A.top-g;if(Wo(R)<2&&Wo(T)<2)break;k[0]-=R,k[1]-=T}return C.map((function(t){return Math.round(t)}))}(t,a[e+1],I,b,Ot(A,x,b));t.matrix=Nt(r,b)}x=Ot(x,t.matrix,b)}));var R=!S&&s;w||(w=Lt(R?4:3));var T=Wi(S&&16===w.length?Et(w,4,3):w,R),z=E;return E=bt(E,b,b),{hasZoom:1!==h||1!==m,hasFixed:p,matrixes:a,rootMatrix:E,originalRootMatrix:z,beforeMatrix:M,offsetMatrix:O,allMatrix:x,targetMatrix:w,targetTransform:T,inlineTransform:t.style.transform,transformOrigin:c,targetOrigin:l,is3d:_,offsetContainer:f,offsetRootContainer:y}}function rs(t,e,r,n){void 0===r&&(r=e);var i=0,o=0,a=0,s={},u=io(t);if(t&&(i=u.offsetWidth,o=u.offsetHeight),t){var c=es(t,e,r,n),l=br(c.allMatrix,c.transformOrigin,i,o);s=Fe(Fe({},c),l);var f=br(c.allMatrix,[50,50],100,100);a=oo([f.pos1,f.pos2],f.direction)}var p=n?4:3;return Fe(Fe(Fe({hasZoom:!1,width:i,height:o,rotation:a},u),{originalRootMatrix:Lt(p),rootMatrix:Lt(p),beforeMatrix:Lt(p),offsetMatrix:Lt(p),allMatrix:Lt(p),targetMatrix:Lt(p),targetTransform:"",inlineTransform:"",transformOrigin:[0,0],targetOrigin:[0,0],is3d:!!n,left:0,top:0,right:0,bottom:0,origin:[0,0],pos1:[0,0],pos2:[0,0],pos3:[0,0],pos4:[0,0],direction:1,hasFixed:!1,offsetContainer:null,offsetRootContainer:null,matrixes:[]}),s)}function ns(t,e,r,n,i,o){void 0===o&&(o=[]);var a=1,s=[0,0],u={left:0,top:0,width:0,height:0,right:0,bottom:0,clientLeft:0,clientTop:0,clientWidth:0,clientHeight:0,scrollWidth:0,scrollHeight:0},c={left:0,top:0,width:0,height:0,right:0,bottom:0,clientLeft:0,clientTop:0,clientWidth:0,clientHeight:0,scrollWidth:0,scrollHeight:0},l={left:0,top:0,width:0,height:0,right:0,bottom:0,clientLeft:0,clientTop:0,clientWidth:0,clientHeight:0,scrollWidth:0,scrollHeight:0},f={left:0,top:0,width:0,height:0,right:0,bottom:0,clientLeft:0,clientTop:0,clientWidth:0,clientHeight:0,scrollWidth:0,scrollHeight:0},p=[0,0],h={},d=rs(e,r,i,!0);if(e){var v=Zr(e);o.forEach((function(t){h[t]=v(t)}));var g=d.is3d?4:3,y=br(d.offsetMatrix,kt(d.transformOrigin,wt(d.targetMatrix,g)),d.width,d.height);a=y.direction,s=kt(y.origin,[y.left-d.left,y.top-d.top]),f=uo(d.offsetRootContainer);var m=Ni(n,n,!0).offsetParent||d.offsetRootContainer;if(d.hasZoom){var _=br(Ot(d.originalRootMatrix,d.allMatrix),d.transformOrigin,d.width,d.height),b=br(d.originalRootMatrix,Li(Zr(m)("transformOrigin")).map((function(t){return parseFloat(t)})),m.offsetWidth,m.offsetHeight);if(u=so(_,f),l=so(b,f,m,!0),t){var S=_.left,w=_.top;c=so({left:S,top:w,bottom:w,right:w},f)}}else{u=uo(e),l=function(t){var e=null==Yr?void 0:Yr.get(t);if(e)return e;var r=uo(t,!0);return Yr&&Yr.set(t,r),r}(m),t&&(c=uo(t));var x=l.left,E=l.top,M=l.clientLeft,O=l.clientTop,k=[u.left-x,u.top-E];p=Ct(Do(d.rootMatrix,k,4),[M+d.left,O+d.top])}}return Fe({targetClientRect:u,containerClientRect:l,moveableClientRect:c,rootContainerClientRect:f,beforeDirection:a,beforeOrigin:s,originalBeforeOrigin:s,target:e,style:h,offsetDelta:p},d)}function is(t){var e=t.pos1,r=t.pos2,n=t.pos3,i=t.pos4;if(!(e&&r&&n&&i))return null;var o=ve([e,r,n,i]),a=[o.minX,o.minY],s=Ct(t.origin,a);return e=Ct(e,a),r=Ct(r,a),n=Ct(n,a),i=Ct(i,a),Fe(Fe({},t),{left:t.left,top:t.top,posDelta:a,pos1:e,pos2:r,pos3:n,pos4:i,origin:s,beforeOrigin:s,isPersisted:!0})}var os=function(t){function MoveableManager(){var e=null!==t&&t.apply(this,arguments)||this;return e.state=Fe({container:null,gestos:{},renderLines:[[[0,0],[0,0]],[[0,0],[0,0]],[[0,0],[0,0]],[[0,0],[0,0]]],renderPoses:[[0,0],[0,0],[0,0],[0,0]],disableNativeEvent:!1,posDelta:[0,0]},ns(null)),e.renderState={},e.enabledAbles=[],e.targetAbles=[],e.controlAbles=[],e.rotation=0,e.scale=[1,1],e.isMoveableMounted=!1,e.isUnmounted=!1,e.events={mouseEnter:null,mouseLeave:null},e._emitter=new ie,e._prevOriginalDragTarget=null,e._originalDragTarget=null,e._prevDragTarget=null,e._dragTarget=null,e._prevPropTarget=null,e._propTarget=null,e._prevDragArea=!1,e._isPropTargetChanged=!1,e._hasFirstTarget=!1,e._reiszeObserver=null,e._observerId=0,e._mutationObserver=null,e._rootContainer=null,e._viewContainer=null,e._viewClassNames=[],e._store={},e.checkUpdateRect=function(){if(!e.isDragging()){var t=e.props.parentMoveable;t?t.checkUpdateRect():(X(e._observerId),e._observerId=V((function(){e.isDragging()||e.updateRect()})))}},e._onPreventClick=function(t){t.stopPropagation(),t.preventDefault()},e}return Ne(MoveableManager,t),MoveableManager.prototype.render=function(){var t=this.props,e=this.getState(),r=t.parentPosition,n=t.className,i=t.target,o=t.zoom,a=t.cspNonce,s=t.translateZ,u=t.cssStyled,c=t.groupable,l=t.linePadding,f=t.controlPadding;this._checkUpdateRootContainer(),this.checkUpdate(),this.updateRenderPoses();var p=__read(r||[0,0],2),h=p[0],d=p[1],v=e.left,g=e.top,y=e.target,m=e.direction,_=e.hasFixed,b=e.offsetDelta,S=t.targets,x=this.isDragging(),E={};this.getEnabledAbles().forEach((function(t){E["data-able-".concat(t.name.toLowerCase())]=!0}));var M=this._getAbleClassName(),O=S&&S.length&&(y||c)||i||!this._hasFirstTarget&&this.state.isPersisted,k=this.controlBox||this.props.firstRenderState||this.props.persistData,C=[v-h,g-d];!c&&t.useAccuratePosition&&(C[0]+=b[0],C[1]+=b[1]);var D={position:_?"fixed":"absolute",display:O?"block":"none",visibility:k?"visible":"hidden",transform:"translate3d(".concat(C[0],"px, ").concat(C[1],"px, ").concat(s,")"),"--zoom":o,"--zoompx":"".concat(o,"px")};return l&&(D["--moveable-line-padding"]=l),f&&(D["--moveable-control-padding"]=f),xe.createElement(u,Fe({cspNonce:a,ref:w(this,"controlBox"),className:"".concat(zi("control-box",-1===m?"reverse":"",x?"dragging":"")," ").concat(M," ").concat(n)},E,{onClick:this._onPreventClick,style:D}),this.renderAbles(),this._renderLines())},MoveableManager.prototype.componentDidMount=function(){this.isMoveableMounted=!0,this.isUnmounted=!1;var t=this.props,e=t.parentMoveable,r=t.container;this._checkUpdateRootContainer(),this._checkUpdateViewContainer(),this._updateTargets(),this._updateNativeEvents(),this._updateEvents(),this.updateCheckInput(),this._updateObserver(this.props),r||e||this.state.isPersisted||(this.updateRect("",!1,!1),this.forceUpdate())},MoveableManager.prototype.componentDidUpdate=function(t){this._checkUpdateRootContainer(),this._checkUpdateViewContainer(),this._updateNativeEvents(),this._updateTargets(),this._updateEvents(),this.updateCheckInput(),this._updateObserver(t)},MoveableManager.prototype.componentWillUnmount=function(){var t,e;this.isMoveableMounted=!1,this.isUnmounted=!0,this._emitter.off(),null===(t=this._reiszeObserver)||void 0===t||t.disconnect(),null===(e=this._mutationObserver)||void 0===e||e.disconnect(),this._viewContainer&&this._changeAbleViewClassNames([]),vo(this,!1),vo(this,!0);var r=this.events;for(var n in r){var i=r[n];i&&i.destroy()}},MoveableManager.prototype.getTargets=function(){var t=this.props.target;return t?[t]:[]},MoveableManager.prototype.getAble=function(t){return W(this.props.ables||[],(function(e){return e.name===t}))},MoveableManager.prototype.getContainer=function(){var t=this.props,e=t.parentMoveable,r=t.wrapperMoveable;return t.container||r&&r.getContainer()||e&&e.getContainer()||this.controlBox.parentElement},MoveableManager.prototype.getControlBoxElement=function(){return this.controlBox},MoveableManager.prototype.getDragElement=function(){return this._dragTarget},MoveableManager.prototype.isMoveableElement=function(t){var e;return t&&((null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"class"))||"").indexOf(or)>-1},MoveableManager.prototype.dragStart=function(t,e){void 0===e&&(e=t.target);var r=this.targetGesto,n=this.controlGesto;return r&&Ya(this)({inputEvent:t},e)?r.isFlag()||r.triggerDragStart(t):n&&this.isMoveableElement(e)&&(n.isFlag()||n.triggerDragStart(t)),this},MoveableManager.prototype.hitTest=function(t){var e,r=this.state,n=r.target,i=r.pos1,o=r.pos2,a=r.pos3,s=r.pos4,u=r.targetClientRect;if(!n)return 0;if(gt(t)){var c=t.getBoundingClientRect();e={left:c.left,top:c.top,width:c.width,height:c.height}}else e=Fe({width:0,height:0},t);var l=e.left,f=e.top,p=e.width,h=e.height,d=de([i,o,s,a],u),v=we(d,[[l,f],[l+p,f],[l+p,f+h],[l,f+h]]),g=he(d);return v&&g?Math.min(100,v/g*100):0},MoveableManager.prototype.isInside=function(t,e){var r=this.state,n=r.target,i=r.pos1,o=r.pos2,a=r.pos3,s=r.pos4,u=r.targetClientRect;return!!n&&ge([t,e],de([i,o,s,a],u))},MoveableManager.prototype.updateRect=function(t,e,r){void 0===r&&(r=!0);var n=this.props,i=!n.parentPosition&&!n.wrapperMoveable;i&&Jr(!0);var o=n.parentMoveable,a=this.state.target||n.target,s=this.getContainer(),u=o?o._rootContainer:this._rootContainer,c=ns(this.controlBox,a,s,s,u||s,this._getRequestStyles());if(!a&&this._hasFirstTarget&&n.persistData){var l=is(n.persistData);for(var f in l)c[f]=l[f]}i&&Jr(),this.updateState(c,!o&&r)},MoveableManager.prototype.isDragging=function(t){var e,r,n=this.targetGesto,i=this.controlGesto;return(null==n?void 0:n.isFlag())?!t||!!(null===(e=n.getEventData()[t])||void 0===e?void 0:e.isEventStart):!!(null==i?void 0:i.isFlag())&&(!t||!!(null===(r=i.getEventData()[t])||void 0===r?void 0:r.isEventStart))},MoveableManager.prototype.updateTarget=function(t){this.updateRect(t,!0)},MoveableManager.prototype.getRect=function(){var t=this.state,e=po(this.state),r=__read(e,4),n=r[0],i=r[1],o=r[2],a=r[3],s=Ji(e),u=t.width,c=t.height,l=s.width,f=s.height,p=s.left,h=s.top,d=[t.left,t.top],v=kt(d,t.origin);return{width:l,height:f,left:p,top:h,pos1:n,pos2:i,pos3:o,pos4:a,offsetWidth:u,offsetHeight:c,beforeOrigin:kt(d,t.beforeOrigin),origin:v,transformOrigin:t.transformOrigin,rotation:this.getRotation()}},MoveableManager.prototype.getManager=function(){return this},MoveableManager.prototype.stopDrag=function(t){var e;t&&"target"!==t||(!1===(null==(e=this.targetGesto)?void 0:e.isIdle())&&ho(this,!1),null==e||e.stop());t&&"control"!==t||(!1===(null==(e=this.controlGesto)?void 0:e.isIdle())&&ho(this,!0),null==e||e.stop())},MoveableManager.prototype.getRotation=function(){var t=this.state;return function(t,e,r){var n=et(t,e)/Math.PI*180;return(n=r>=0?n:180-n)>=0?n:360+n}(t.pos1,t.pos2,t.direction)},MoveableManager.prototype.request=function(t,e,r){void 0===e&&(e={});var n=this,i=n.props,o=i.parentMoveable||i.wrapperMoveable||n,a=o.props.ables,s=i.groupable,u=W(a,(function(e){return e.name===t}));if(this.isDragging()||!u||!u.request)return{request:function(){return this},requestEnd:function(){return this}};var c=u.request(n),l=r||e.isInstant,f=c.isControl?"controlAbles":"targetAbles",p="".concat(s?"Group":"").concat(c.isControl?"Control":""),h=__spreadArray([],__read(o[f]),!1),d={request:function(e){return Va(n,h,["drag"],p,"",Fe(Fe({},c.request(e)),{requestAble:t,isRequest:!0}),l),d},requestEnd:function(){return Va(n,h,["drag"],p,"End",Fe(Fe({},c.requestEnd()),{requestAble:t,isRequest:!0}),l),d}};return Va(n,h,["drag"],p,"Start",Fe(Fe({},c.requestStart(e)),{requestAble:t,isRequest:!0}),l),l?d.request(e).requestEnd():d},MoveableManager.prototype.getMoveables=function(){return[this]},MoveableManager.prototype.destroy=function(){this.componentWillUnmount()},MoveableManager.prototype.updateRenderPoses=function(){var t=this.getState(),e=this.props,r=e.padding,n=t.originalBeforeOrigin,i=t.transformOrigin,o=t.allMatrix,a=t.is3d,s=t.pos1,u=t.pos2,c=t.pos3,l=t.pos4,f=t.left,p=t.top,h=t.isPersisted,d=e.zoom||1;if(!r&&d<=1)return t.renderPoses=[s,u,c,l],void(t.renderLines=[[s,u],[u,l],[l,c],[c,s]]);var v=Xo(r||{}),g=v.left,y=v.top,m=v.bottom,_=v.right,b=a?4:3,S=Mt(b,Nt((h?i:this.controlBox&&e.groupable?n:kt(n,[f,p])).map((function(t){return-t})),b),o,Nt(i,b)),w=Ao(S,s,[-g,-y],b),x=Ao(S,u,[_,-y],b),E=Ao(S,c,[-g,m],b),M=Ao(S,l,[_,m],b);if(t.renderPoses=[w,x,E,M],t.renderLines=[[w,x],[x,M],[M,E],[E,w]],d){var O=d/2;t.renderLines=[[Ao(S,s,[-g-O,-y],b),Ao(S,u,[_+O,-y],b)],[Ao(S,u,[_,-y-O],b),Ao(S,l,[_,m+O],b)],[Ao(S,l,[_+O,m],b),Ao(S,c,[-g-O,m],b)],[Ao(S,c,[-g,m+O],b),Ao(S,s,[-g,-y-O],b)]]}},MoveableManager.prototype.checkUpdate=function(){this._isPropTargetChanged=!1;var t=this.props,e=t.target,r=t.container,n=t.parentMoveable,i=this.state,o=i.target,a=i.container;if(o||e){this.updateAbles();var s=!Eo(o,e);if(s||!Eo(a,r)){var u=r||this.controlBox;u&&this.unsetAbles(),this.updateState({target:e,container:r}),!n&&u&&this.updateRect("End",!1,!1),this._isPropTargetChanged=s}}},MoveableManager.prototype.waitToChangeTarget=function(){return new Promise((function(){}))},MoveableManager.prototype.triggerEvent=function(t,e){var r=this.props;if(this._emitter.trigger(t,e),r.parentMoveable&&e.isRequest&&!e.isRequestChild)return r.parentMoveable.triggerEvent(t,e,!0);var n=r[t];return n&&n(e)},MoveableManager.prototype.useCSS=function(t,e){var r=this.props.customStyledMap,n=t+e;return r[n]||(r[n]=Le(t,e)),r[n]},MoveableManager.prototype.getState=function(){var t,e=this.props;(e.target||(null===(t=e.targets)||void 0===t?void 0:t.length))&&(this._hasFirstTarget=!0);var r=this.controlBox,n=e.persistData,i=e.firstRenderState;if(i&&!r)return i;if(!this._hasFirstTarget&&n){var o=is(n);if(o)return this.updateState(o,!1),this.state}return this.state.isPersisted=!1,this.state},MoveableManager.prototype.updateSelectors=function(){},MoveableManager.prototype.unsetAbles=function(){var t=this;this.targetAbles.forEach((function(e){e.unset&&e.unset(t)}))},MoveableManager.prototype.updateAbles=function(t,e){void 0===t&&(t=this.props.ables),void 0===e&&(e="");var r=this.props.triggerAblesSimultaneously,n=this.getEnabledAbles(t),i="drag".concat(e,"Start"),o="pinch".concat(e,"Start"),a="drag".concat(e,"ControlStart"),s=xo(n,[i,o],r),u=xo(n,[a],r);this.enabledAbles=n,this.targetAbles=s,this.controlAbles=u},MoveableManager.prototype.updateState=function(t,e){if(e){if(this.isUnmounted)return;this.setState(t)}else{var r=this.state;for(var n in t)r[n]=t[n]}},MoveableManager.prototype.getEnabledAbles=function(t){void 0===t&&(t=this.props.ables);var e=this.props;return t.filter((function(t){return t&&(t.always&&!1!==e[t.name]||e[t.name])}))},MoveableManager.prototype.renderAbles=function(){var t,e,r,n,i=this,o=this.props.triggerAblesSimultaneously,a={createElement:xe.createElement};return this.renderState={},(t=ko(xo(this.getEnabledAbles(),["render"],o).map((function(t){return(0,t.render)(i,a)||[]}))).filter((function(t){return t})),e=function(t){return t.key},r=[],n={},t.forEach((function(i,o){var a=e(i,o,t),s=n[a];s||(s=[],n[a]=s,r.push(s)),s.push(i)})),r).map((function(t){return t[0]}))},MoveableManager.prototype.updateCheckInput=function(){this.targetGesto&&(this.targetGesto.options.checkInput=this.props.checkInput)},MoveableManager.prototype._getRequestStyles=function(){return this.getEnabledAbles().reduce((function(t,e){var r,n,i=null!==(n=null===(r=e.requestStyle)||void 0===r?void 0:r.call(e))&&void 0!==n?n:[];return __spreadArray(__spreadArray([],__read(t),!1),__read(i),!1)}),__spreadArray([],__read(this.props.requestStyles||[]),!1))},MoveableManager.prototype._updateObserver=function(t){this._updateResizeObserver(t),this._updateMutationObserver(t)},MoveableManager.prototype._updateEvents=function(){var t=this.targetAbles.length,e=this.controlAbles.length,r=this._dragTarget;(!t&&this.targetGesto||this._isTargetChanged(!0))&&(vo(this,!1),this.updateState({gestos:{}})),e||vo(this,!0),r&&t&&!this.targetGesto&&(this.targetGesto=$a(this,r,"")),!this.controlGesto&&e&&(this.controlGesto=Za(this,"Control"))},MoveableManager.prototype._updateTargets=function(){var t=this.props;this._prevPropTarget=this._propTarget,this._prevDragTarget=this._dragTarget,this._prevOriginalDragTarget=this._originalDragTarget,this._prevDragArea=t.dragArea,this._propTarget=t.target,this._originalDragTarget=t.dragTarget||t.target,this._dragTarget=qo(this._originalDragTarget,!0)},MoveableManager.prototype._renderLines=function(){var t=this.props,e=t.zoom,r=t.hideDefaultLines,n=t.hideChildMoveableDefaultLines,i=t.parentMoveable;if(r||i&&n)return[];var o=this.getState(),a={createElement:xe.createElement};return o.renderLines.map((function(t,r){return an(a,"",t[0],t[1],e,"render-line-".concat(r))}))},MoveableManager.prototype._isTargetChanged=function(t){var e=this.props,r=e.dragTarget||e.target,n=this._prevOriginalDragTarget,i=this._prevDragArea,o=e.dragArea;return!o&&n!==r||(t||o)&&i!==o||this._prevPropTarget!=this._propTarget},MoveableManager.prototype._updateNativeEvents=function(){var t=this,e=this.props.dragArea?this.areaElement:this.state.target,r=this.events,n=Y(r);if(this._isTargetChanged())for(var i in r){var o=r[i];o&&o.destroy(),r[i]=null}if(e){var a=this.enabledAbles;n.forEach((function(n){var i=xo(a,[n]),o=i.length>0,s=r[n];o?(s||(s=new ts(e,t,n),r[n]=s),s.setAbles(i)):s&&(s.destroy(),r[n]=null)}))}},MoveableManager.prototype._checkUpdateRootContainer=function(){var t=this.props.rootContainer;!this._rootContainer&&t&&(this._rootContainer=qo(t,!0))},MoveableManager.prototype._checkUpdateViewContainer=function(){var t=this.props.viewContainer;!this._viewContainer&&t&&(this._viewContainer=qo(t,!0)),this._viewContainer&&this._changeAbleViewClassNames(__spreadArray(__spreadArray([],__read(this._getAbleViewClassNames()),!1),[this.isDragging()?ia:""],!1))},MoveableManager.prototype._changeAbleViewClassNames=function(t){var e=this._viewContainer,r=Oo(t.filter(Boolean),(function(t){return t})).map((function(t){return __read(t,1)[0]})),n=this._viewClassNames,i=Jt(n,r),o=i.removed,a=i.added;o.forEach((function(t){ut(e,n[t])})),a.forEach((function(t){st(e,r[t])})),this._viewClassNames=r},MoveableManager.prototype._getAbleViewClassNames=function(){var t=this;return(this.getEnabledAbles().map((function(e){var r;return(null===(r=e.viewClassName)||void 0===r?void 0:r.call(e,t))||""})).join(" ")+" ".concat(this._getAbleClassName("-view"))).split(/\s+/g)},MoveableManager.prototype._getAbleClassName=function(t){var e=this;void 0===t&&(t="");var r=this.getEnabledAbles(),n=this.targetGesto,i=this.controlGesto,o=(null==n?void 0:n.isFlag())?n.getEventData():{},a=(null==i?void 0:i.isFlag())?i.getEventData():{};return r.map((function(r){var n,i,s,u=r.name,c=(null===(n=r.className)||void 0===n?void 0:n.call(r,e))||"";return((null===(i=o[u])||void 0===i?void 0:i.isEventStart)||(null===(s=a[u])||void 0===s?void 0:s.isEventStart))&&(c+=" ".concat(zi("".concat(u).concat(t,"-dragging")))),c.trim()})).filter(Boolean).join(" ")},MoveableManager.prototype._updateResizeObserver=function(t){var e,r=this.props,n=r.target,i=dt(this.getControlBoxElement());if(i.ResizeObserver&&n&&r.useResizeObserver){if(t.target!==n||!this._reiszeObserver){var o=new i.ResizeObserver(this.checkUpdateRect);o.observe(n,{box:"border-box"}),this._reiszeObserver=o}}else null===(e=this._reiszeObserver)||void 0===e||e.disconnect()},MoveableManager.prototype._updateMutationObserver=function(t){var e,r=this,n=this.props,i=n.target,o=dt(this.getControlBoxElement());if(o.MutationObserver&&i&&n.useMutationObserver){if(t.target!==i||!this._mutationObserver){var a=new o.MutationObserver((function(t){var e,n;try{for(var i=function __values(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),o=i.next();!o.done;o=i.next()){var a=o.value;"attributes"===a.type&&"style"===a.attributeName&&r.checkUpdateRect()}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}}));a.observe(i,{attributes:!0}),this._mutationObserver=a}}else null===(e=this._mutationObserver)||void 0===e||e.disconnect()},MoveableManager.defaultProps={dragTargetSelf:!1,target:null,dragTarget:null,container:null,rootContainer:null,origin:!0,parentMoveable:null,wrapperMoveable:null,isWrapperMounted:!1,parentPosition:null,warpSelf:!1,svgOrigin:"",dragContainer:null,useResizeObserver:!1,useMutationObserver:!1,preventDefault:!0,preventRightClick:!0,preventWheelClick:!0,linePadding:0,controlPadding:0,ables:[],pinchThreshold:20,dragArea:!1,passDragArea:!1,transformOrigin:"",className:"",zoom:1,triggerAblesSimultaneously:!1,padding:{},pinchOutside:!0,checkInput:!1,dragFocusedInput:!1,groupable:!1,hideDefaultLines:!1,cspNonce:"",translateZ:0,cssStyled:null,customStyledMap:{},props:{},stopPropagation:!1,preventClickDefault:!1,preventClickEventOnDrag:!0,flushSync:Bi,firstRenderState:null,persistData:null,viewContainer:null,requestStyles:[],useAccuratePosition:!1},MoveableManager}(xe.PureComponent),as={name:"groupable",props:["defaultGroupRotate","useDefaultGroupRotate","defaultGroupOrigin","groupable","groupableProps","targetGroups","hideChildMoveableDefaultLines"],events:[],render:function(t,e){var r,n=t.props,i=n.targets||[],o=t.getState(),a=o.left,s=o.top,u=o.isPersisted,c=n.zoom||1,l=t.renderGroupRects,f=(null===(r=n.persistData)||void 0===r?void 0:r.children)||[];u?i=f.map((function(){return null})):f=[];var p=Go(t,"parentPosition",[a,s],(function(t){return t.join(",")})),h=Go(t,"requestStyles",t.getRequestChildStyles(),(function(t){return t.join(",")}));return t.moveables=t.moveables.slice(0,i.length),__spreadArray(__spreadArray([],__read(i.map((function(r,i){return e.createElement(os,{key:"moveable"+i,ref:x(t,"moveables",i),target:r,origin:!1,requestStyles:h,cssStyled:n.cssStyled,customStyledMap:n.customStyledMap,useResizeObserver:n.useResizeObserver,useMutationObserver:n.useMutationObserver,hideChildMoveableDefaultLines:n.hideChildMoveableDefaultLines,parentMoveable:t,parentPosition:[a,s],persistData:f[i],zoom:c})}))),!1),__read(ko(l.map((function(t,r){var n=[t.pos1,t.pos2,t.pos3,t.pos4];return[[0,1],[1,3],[3,2],[2,0]].map((function(t,i){var o=__read(t,2),a=o[0],s=o[1];return an(e,"",Ct(n[a],p),Ct(n[s],p),c,"group-rect-".concat(r,"-").concat(i))}))})))),!1)}},ss=Ue("clickable",{props:["clickable"],events:["click","clickGroup"],always:!0,dragRelation:"weak",dragStart:function(){},dragControlStart:function(){},dragGroupStart:function(t,e){e.datas.inputTarget=e.inputEvent&&e.inputEvent.target},dragEnd:function(t,e){var r=t.props.target,n=e.inputEvent,i=e.inputTarget,o=!t.isMoveableElement(i)&&t.controlBox.contains(i);if(n&&i&&!e.isDrag&&!t.isMoveableElement(i)&&!o){var a=r.contains(i);So(t,"onClick",mo(t,e,{isDouble:e.isDouble,inputTarget:i,isTarget:r===i,moveableTarget:t.props.target,containsTarget:a}))}},dragGroupEnd:function(t,e){var r=e.inputEvent,n=e.inputTarget;if(r&&n&&!e.isDrag&&!t.isMoveableElement(n)&&e.datas.inputTarget!==n){var i=t.props.targets,o=i.indexOf(n),a=o>-1,s=!1;-1===o&&(s=(o=H(i,(function(t){return t.contains(n)})))>-1),So(t,"onClickGroup",mo(t,e,{isDouble:e.isDouble,targets:i,inputTarget:n,targetIndex:o,isTarget:a,containsTarget:s,moveableTarget:i[o]}))}},dragControlEnd:function(t,e){this.dragEnd(t,e)},dragGroupControlEnd:function(t,e){this.dragEnd(t,e)}});function us(t){var e=t.originalDatas.draggable;return e||(t.originalDatas.draggable={},e=t.originalDatas.draggable),Fe(Fe({},t),{datas:e})}var cs=Ue("edgeDraggable",{css:[".edge.edgeDraggable.line {\ncursor: move;\n}"],render:function(t,e){var r=t.props,n=r.edgeDraggable;return n?sn(e,"edgeDraggable",n,t.getState().renderPoses,r.zoom):[]},dragCondition:function(t,e){var r,n=t.props,i=null===(r=e.inputEvent)||void 0===r?void 0:r.target;return!(!n.edgeDraggable||!i)&&(!n.draggable&&at(i,zi("direction"))&&at(i,zi("edge"))&&at(i,zi("edgeDraggable")))},dragStart:function(t,e){return ti.dragStart(t,us(e))},drag:function(t,e){return ti.drag(t,us(e))},dragEnd:function(t,e){return ti.dragEnd(t,us(e))},dragGroupCondition:function(t,e){var r,n=t.props,i=null===(r=e.inputEvent)||void 0===r?void 0:r.target;return!(!n.edgeDraggable||!i)&&(!n.draggable&&at(i,zi("direction"))&&at(i,zi("line")))},dragGroupStart:function(t,e){return ti.dragGroupStart(t,us(e))},dragGroup:function(t,e){return ti.dragGroup(t,us(e))},dragGroupEnd:function(t,e){return ti.dragGroupEnd(t,us(e))},unset:function(t){return ti.unset(t)}}),ls={name:"individualGroupable",props:["individualGroupable","individualGroupableProps"],events:[]},fs=[Ua,fa,Ti,Yo,ti,cs,ii,Jo,ta,fi,la,pa,ua,Pa,qa,Na,as,ls,ss,sa,Wa];function ps(t,e){var r=__read(t,3),n=r[0],i=r[1],o=r[2];return(n*e[0]+i*e[1]+o)/Math.sqrt(n*n+i*i)}function hs(t,e){var r=__read(t,2),n=r[0],i=r[1];return-n*e[0]-i*e[1]}function ds(t,e){return Math.max.apply(Math,__spreadArray([],__read(t.map((function(t){var r=__read(t,4),n=r[0],i=r[1],o=r[2],a=r[3];return Math.max(n[e],i[e],o[e],a[e])}))),!1))}function vs(t,e){return Math.min.apply(Math,__spreadArray([],__read(t.map((function(t){var r=__read(t,4),n=r[0],i=r[1],o=r[2],a=r[3];return Math.min(n[e],i[e],o[e],a[e])}))),!1))}function gs(t,e){var r=e.map((function(e){if(T(e)){var r=gs(t,e),n=r.length;return n>1?r:1===n?r[0]:null}var i=W(t,(function(t){return t.manager.props.target===e}));return i?(i.finded=!0,i.manager):null})).filter(Boolean);return 1===r.length&&T(r[0])?r[0]:r}var ys=function(t){function MoveableGroup(){var e=null!==t&&t.apply(this,arguments)||this;return e.differ=new re,e.moveables=[],e.transformOrigin="50% 50%",e.renderGroupRects=[],e._targetGroups=[],e._hasFirstTargets=!1,e}return Ne(MoveableGroup,t),MoveableGroup.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this)},MoveableGroup.prototype.checkUpdate=function(){this._isPropTargetChanged=!1,this.updateAbles()},MoveableGroup.prototype.getTargets=function(){return this.props.targets},MoveableGroup.prototype.updateRect=function(t,e,r){var n;void 0===r&&(r=!0);var i=this.state;if(this.controlBox&&!i.isPersisted){Jr(!0),this.moveables.forEach((function(e){e.updateRect(t,!1,!1)}));var o=this.props,a=this.moveables,s=i.target||o.target,u=a.map((function(t){return{finded:!1,manager:t}})),c=this.props.targetGroups||[],l=gs(u,c),f=o.useDefaultGroupRotate;l.push.apply(l,__spreadArray([],__read(u.filter((function(t){return!t.finded})).map((function(t){return t.manager}))),!1));var p=[],h=!e||""!==t&&o.updateGroup,d=o.defaultGroupRotate||0;if(!this._hasFirstTargets){var v=null===(n=o.persistData)||void 0===n?void 0:n.rotation;null!=v&&(d=v)}var g=function t(e,r,n){var i=e.map((function(e){if(T(e)){var n=t(e,r),i=[n.pos1,n.pos2,n.pos3,n.pos4];return p.push(n),{poses:i,rotation:n.rotation}}return{poses:po(e.state),rotation:e.getRotation()}})),o=i.map((function(t){return t.rotation})),a=0,s=o[0],u=o.every((function(t){return Math.abs(s-t)<.1}));a=h?!f&&u?s:d:f||n||!u?r:s;var c=i.map((function(t){return t.poses})),l=function(t,e){var r,n,i,o=[0,0],a=[0,0],s=[0,0],u=[0,0],c=0,l=0;if(!t.length)return{pos1:o,pos2:a,pos3:s,pos4:u,minX:0,minY:0,maxX:0,maxY:0,width:c,height:l,rotation:e};var f=it(e,lr);if(f%90){var p=f/180*Math.PI,h=Math.tan(p),d=-1/h,v=[pr,hr],g=[[0,0],[0,0]],y=[pr,hr],m=[[0,0],[0,0]];t.forEach((function(t){t.forEach((function(t){var e=ps([-h,1,0],t),r=ps([-d,1,0],t);v[0]>e&&(g[0]=t,v[0]=e),v[1]<e&&(g[1]=t,v[1]=e),y[0]>r&&(m[0]=t,y[0]=r),y[1]<r&&(m[1]=t,y[1]=r)}))}));var _=__read(g,2),b=_[0],S=_[1],w=__read(m,2),x=w[0],E=w[1],M=[-h,1,hs([-h,1],b)],O=[-h,1,hs([-h,1],S)],k=[-d,1,hs([-d,1],x)],C=[-d,1,hs([-d,1],E)];r=__read([[M,k],[M,C],[O,k],[O,C]].map((function(t){var e=__read(t,2);return me(e[0],e[1])[0]})),4),o=r[0],a=r[1],s=r[2],u=r[3],c=y[1]-y[0],l=v[1]-v[0]}else{var D=vs(t,0),I=vs(t,1),A=ds(t,0),R=ds(t,1);o=[D,I],a=[A,I],s=[D,R],u=[A,R],c=A-D,l=R-I,f%180&&(o=(n=__read([s,o,u,a],4))[0],a=n[1],s=n[2],u=n[3],c=R-I,l=A-D)}f%360>180&&(o=(i=__read([u,s,a,o],4))[0],a=i[1],s=i[2],u=i[3]);var T=ve([o,a,s,u]);return{pos1:o,pos2:a,pos3:s,pos4:u,width:c,height:l,minX:T.minX,minY:T.minY,maxX:T.maxX,maxY:T.maxY,rotation:e}}(c,a);return l}(l,this.rotation,!0);h&&(this.rotation=g.rotation,this.transformOrigin=o.defaultGroupOrigin||"50% 50%",this.scale=[1,1]),this._targetGroups=c,this.renderGroupRects=p;var y,m,_,b,S,w=this.transformOrigin,x=this.rotation,E=this.scale,M=g.width,O=g.height,k=g.minX,C=g.minY,D=(y=[[0,0],[M,0],[0,O],[M,O]],m=Fo(w,M,O),_=this.rotation/180*Math.PI,b=y.map((function(t){return Ct(t,m)})),S=b.map((function(t){return Bt(t,_)})),{prev:b,next:S,result:S.map((function(t){return kt(t,m)}))}),I=ve(D.result),A=I.minX,R=I.minY,z=" rotate(".concat(x,"deg)")+" scale(".concat(Ho(E[0]),", ").concat(Ho(E[1]),")"),B="translate(".concat(-A,"px, ").concat(-R,"px)").concat(z);this.controlBox.style.transform="translate3d(".concat(k,"px, ").concat(C,"px, ").concat(this.props.translateZ||0,")"),s.style.cssText+="left:0px;top:0px;"+"transform-origin:".concat(w,";")+"width:".concat(M,"px;height:").concat(O,"px;")+"transform: ".concat(B),i.width=M,i.height=O;var q=this.getContainer(),P=ns(this.controlBox,s,this.controlBox,this.getContainer(),this._rootContainer||q,[]),j=[P.left,P.top],L=__read(po(P),4),K=L[0],N=L[1],F=L[2],U=L[3],G=ve([K,N,F,U]),H=[G.minX,G.minY],W=Ho(E[0]*E[1]);P.pos1=Ct(K,H),P.pos2=Ct(N,H),P.pos3=Ct(F,H),P.pos4=Ct(U,H),P.left=k-P.left+H[0],P.top=C-P.top+H[1],P.origin=Ct(kt(j,P.origin),H),P.beforeOrigin=Ct(kt(j,P.beforeOrigin),H),P.originalBeforeOrigin=kt(j,P.originalBeforeOrigin),P.transformOrigin=Ct(kt(j,P.transformOrigin),H),s.style.transform="translate(".concat(-A-H[0],"px, ").concat(-R-H[1],"px)")+z,Jr(),this.updateState(Fe(Fe({},P),{posDelta:H,direction:W,beforeDirection:W}),r)}},MoveableGroup.prototype.getRect=function(){return Fe(Fe({},t.prototype.getRect.call(this)),{children:this.moveables.map((function(t){return t.getRect()}))})},MoveableGroup.prototype.triggerEvent=function(e,r,n){if(n||e.indexOf("Group")>-1)return t.prototype.triggerEvent.call(this,e,r);this._emitter.trigger(e,r)},MoveableGroup.prototype.getRequestChildStyles=function(){return this.getEnabledAbles().reduce((function(t,e){var r,n,i=null!==(n=null===(r=e.requestChildStyle)||void 0===r?void 0:r.call(e))&&void 0!==n?n:[];return __spreadArray(__spreadArray([],__read(t),!1),__read(i),!1)}),[])},MoveableGroup.prototype.getMoveables=function(){return __spreadArray([],__read(this.moveables),!1)},MoveableGroup.prototype.updateAbles=function(){t.prototype.updateAbles.call(this,__spreadArray(__spreadArray([],__read(this.props.ables),!1),[as],!1),"Group")},MoveableGroup.prototype._updateTargets=function(){t.prototype._updateTargets.call(this),this._originalDragTarget=this.props.dragTarget||this.areaElement,this._dragTarget=qo(this._originalDragTarget,!0)},MoveableGroup.prototype._updateEvents=function(){var t=this.state,e=this.props,r=this._prevDragTarget,n=e.dragTarget||this.areaElement,i=e.targets,o=this.differ.update(i),a=o.added,s=o.changed,u=o.removed,c=a.length||u.length;(c||this._prevOriginalDragTarget!==this._originalDragTarget)&&(vo(this,!1),vo(this,!0),this.updateState({gestos:{}})),r!==n&&(t.target=null),t.target||(t.target=this.areaElement,this.controlBox.style.display="block"),t.target&&(this.targetGesto||(this.targetGesto=$a(this,this._dragTarget,"Group")),this.controlGesto||(this.controlGesto=Za(this,"GroupControl")));var l=!Eo(t.container,e.container);l&&(t.container=e.container),(l||c||this.transformOrigin!==(e.defaultGroupOrigin||"50% 50%")||s.length||i.length&&!Uo(this._targetGroups,e.targetGroups||[]))&&(this.updateRect(),this._hasFirstTargets=!0),this._isPropTargetChanged=!!c},MoveableGroup.prototype._updateObserver=function(){},MoveableGroup.defaultProps=Fe(Fe({},os.defaultProps),{transformOrigin:["50%","50%"],groupable:!0,dragArea:!0,keepRatio:!0,targets:[],defaultGroupRotate:0,defaultGroupOrigin:"50% 50%"}),MoveableGroup}(os),ms=function(t){function MoveableIndividualGroup(){var e=null!==t&&t.apply(this,arguments)||this;return e.moveables=[],e}return Ne(MoveableIndividualGroup,t),MoveableIndividualGroup.prototype.render=function(){var t,e=this,r=this.props,n=r.cspNonce,i=r.cssStyled,o=r.persistData,a=r.targets||[],s=a.length,u=this.isUnmounted||!s,c=null!==(t=null==o?void 0:o.children)&&void 0!==t?t:[];return u&&!s&&c.length?a=c.map((function(){return null})):u||(c=[]),xe.createElement(i,{cspNonce:n,ref:w(this,"controlBox"),className:zi("control-box")},a.map((function(t,n){var i,o,a=null!==(o=null===(i=r.individualGroupableProps)||void 0===i?void 0:i.call(r,t,n))&&void 0!==o?o:{};return xe.createElement(os,Fe({key:"moveable"+n,ref:x(e,"moveables",n)},r,a,{target:t,wrapperMoveable:e,isWrapperMounted:e.isMoveableMounted,persistData:c[n]}))})))},MoveableIndividualGroup.prototype.componentDidMount=function(){},MoveableIndividualGroup.prototype.componentDidUpdate=function(){},MoveableIndividualGroup.prototype.getTargets=function(){return this.props.targets},MoveableIndividualGroup.prototype.updateRect=function(t,e,r){void 0===r&&(r=!0),Jr(!0),this.moveables.forEach((function(n){n.updateRect(t,e,r)})),Jr()},MoveableIndividualGroup.prototype.getRect=function(){return Fe(Fe({},t.prototype.getRect.call(this)),{children:this.moveables.map((function(t){return t.getRect()}))})},MoveableIndividualGroup.prototype.request=function(t,e,r){void 0===e&&(e={});var n=this.moveables.map((function(r){return r.request(t,Fe(Fe({},e),{isInstant:!1}),!1)})),i={request:function(t){return n.forEach((function(e){return e.request(t)})),this},requestEnd:function(){return n.forEach((function(t){return t.requestEnd()})),this}};return r||e.isInstant?i.request(e).requestEnd():i},MoveableIndividualGroup.prototype.dragStart=function(t,e){void 0===e&&(e=t.target);var r=e,n=W(this.moveables,(function(t){var e=t.getTargets()[0],n=t.getControlBoxElement(),i=t.getDragElement();return!(!e||!i)&&(i===r||i.contains(r)||i!==e&&e===r||e.contains(r)||n===r||n.contains(r))}));return n&&n.dragStart(t,e),this},MoveableIndividualGroup.prototype.hitTest=function(){return 0},MoveableIndividualGroup.prototype.isInside=function(){return!1},MoveableIndividualGroup.prototype.isDragging=function(){return!1},MoveableIndividualGroup.prototype.getDragElement=function(){return null},MoveableIndividualGroup.prototype.getMoveables=function(){return __spreadArray([],__read(this.moveables),!1)},MoveableIndividualGroup.prototype.updateRenderPoses=function(){},MoveableIndividualGroup.prototype.checkUpdate=function(){},MoveableIndividualGroup.prototype.triggerEvent=function(){},MoveableIndividualGroup.prototype.updateAbles=function(){},MoveableIndividualGroup.prototype._updateEvents=function(){},MoveableIndividualGroup.prototype._updateObserver=function(){},MoveableIndividualGroup}(os);function _s(t,e){var r=[];return t.forEach((function(t){t&&(z(t)?e[t]&&r.push.apply(r,__spreadArray([],__read(e[t]),!1)):T(t)?r.push.apply(r,__spreadArray([],__read(_s(t,e)),!1)):r.push(t))})),r}function bs(t,e){var r=[];return t.forEach((function(t){t&&(z(t)?e[t]&&r.push.apply(r,__spreadArray([],__read(e[t]),!1)):T(t)?r.push(bs(t,e)):r.push(t))})),r}function Ss(t,e){return t.length!==e.length||t.some((function(t,r){var n=e[r];return!(!t&&!n)&&(t!=n&&(!T(t)||!T(n)||Ss(t,n)))}))}var ws=function(t){function InitialMoveable(){var e=null!==t&&t.apply(this,arguments)||this;return e.refTargets=[],e.selectorMap={},e._differ=new re,e._elementTargets=[],e._tmpRefTargets=[],e._tmpSelectorMap={},e._onChangeTargets=null,e}var e,r;return Ne(InitialMoveable,t),InitialMoveable.makeStyled=function(){var t={};this.getTotalAbles().forEach((function(e){var r=e.css;r&&r.forEach((function(e){t[e]=!0}))}));var e=Y(t).join("\n");this.defaultStyled=Le("div",function(t,e){return e.replace(/([^}{]*){/gm,(function(e,r){return r.replace(/\.([^{,\s\d.]+)/g,"."+t+"$1")+"{"}))}(or,sr+e))},InitialMoveable.getTotalAbles=function(){return __spreadArray([fa,as,ls,sa],__read(this.defaultAbles),!1)},InitialMoveable.prototype.render=function(){var t,e=this.constructor;e.defaultStyled||e.makeStyled();var r=this.props,n=r.ables,i=r.props,o=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}(r,["ables","props"]),a=__read(this._updateRefs(!0),2),s=a[0],u=a[1],c=_s(s,u),l=c.length>1,f=__spreadArray(__spreadArray([],__read(e.getTotalAbles()),!1),__read(n||[]),!1),p=Fe(Fe(Fe({},o),i||{}),{ables:f,cssStyled:e.defaultStyled,customStyledMap:e.customStyledMap});this._elementTargets=c;var h=null,d=this.moveable,v=o.persistData;if((null==v?void 0:v.children)&&(l=!0),o.individualGroupable)return xe.createElement(ms,Fe({key:"individual-group",ref:w(this,"moveable")},p,{target:null,targets:c}));if(l){var g=bs(s,u);if(d&&!d.props.groupable&&!d.props.individualGroupable){var y=d.props.target;y&&c.indexOf(y)>-1&&(h=Fe({},d.state))}return xe.createElement(ys,Fe({key:"group",ref:w(this,"moveable")},p,null!==(t=o.groupableProps)&&void 0!==t?t:{},{target:null,targets:c,targetGroups:g,firstRenderState:h}))}var m=c[0];if(d&&(d.props.groupable||d.props.individualGroupable)){var _=W(d.moveables||[],(function(t){return t.props.target===m}));_&&(h=Fe({},_.state))}return xe.createElement(os,Fe({key:"single",ref:w(this,"moveable")},p,{target:m,firstRenderState:h}))},InitialMoveable.prototype.componentDidMount=function(){this._checkChangeTargets()},InitialMoveable.prototype.componentDidUpdate=function(){this._checkChangeTargets()},InitialMoveable.prototype.componentWillUnmount=function(){this.selectorMap={},this.refTargets=[]},InitialMoveable.prototype.getTargets=function(){var t,e;return null!==(e=null===(t=this.moveable)||void 0===t?void 0:t.getTargets())&&void 0!==e?e:[]},InitialMoveable.prototype.updateSelectors=function(){this.selectorMap={},this._updateRefs(),this.forceUpdate()},InitialMoveable.prototype.waitToChangeTarget=function(){var t,e=this;return this._onChangeTargets=function(){e._onChangeTargets=null,t()},new Promise((function(e){t=e}))},InitialMoveable.prototype.waitToChangeTargets=function(){return this.waitToChangeTarget()},InitialMoveable.prototype.getManager=function(){return this.moveable},InitialMoveable.prototype.getMoveables=function(){return this.moveable.getMoveables()},InitialMoveable.prototype.getDragElement=function(){return this.moveable.getDragElement()},InitialMoveable.prototype._updateRefs=function(t){var e=this.refTargets,r=Po(this.props.target||this.props.targets),n="undefined"!=typeof document,i=Ss(e,r),o=this.selectorMap,a={};return this.refTargets.forEach((function t(e){z(e)?o[e]?a[e]=o[e]:n&&(i=!0,a[e]=[].slice.call(document.querySelectorAll(e))):T(e)&&e.forEach(t)})),this._tmpRefTargets=r,this._tmpSelectorMap=a,[r,a,!t&&i]},InitialMoveable.prototype._checkChangeTargets=function(){var t,e,r;this.refTargets=this._tmpRefTargets,this.selectorMap=this._tmpSelectorMap;var n=this._differ.update(this._elementTargets),i=n.added,o=n.removed;(i.length||o.length)&&(null===(e=(t=this.props).onChangeTargets)||void 0===e||e.call(t,{moveable:this.moveable,targets:this._elementTargets}),null===(r=this._onChangeTargets)||void 0===r||r.call(this));var a=__read(this._updateRefs(),3),s=a[0],u=a[1],c=a[2];this.refTargets=s,this.selectorMap=u,c&&this.forceUpdate()},InitialMoveable.defaultAbles=[],InitialMoveable.customStyledMap={},InitialMoveable.defaultStyled=null,function __decorate(t,e,r,n){var i,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,r,a):i(e,r))||a);return o>3&&a&&Object.defineProperty(e,r,a),a}([(e=yr,void 0===r&&(r={}),function(t,n){e.forEach((function(e){var i=r[e]||e;i in t||(t[i]=function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=(t=this[n])[e].apply(t,r);return o===this[n]?this:o})}))})],InitialMoveable.prototype,"moveable",void 0),InitialMoveable}(xe.PureComponent),xs=function(t){function Moveable(){return null!==t&&t.apply(this,arguments)||this}return Ne(Moveable,t),Moveable.defaultAbles=fs,Moveable}(ws)},87918:t=>{"use strict";t.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},88372:(t,e,r)=>{"use strict";var n=r(19677),i=r(74453);t.exports=function(t){for(var e=t;e&&e!==n(t).documentElement;){var r=i(e);if(null!=r)return r;e=e.parentNode}return null}},88771:(t,e,r)=>{"use strict";var n=r(12242),i=r(85989),o=r(29215),a=r(58488),s=r(5188);t.exports=function(t,e){var r=s(t,(function(t){var r=t.getSelection();if(r.isCollapsed()&&0===r.getAnchorOffset())return a(t,1);var n=e.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return n=i(n),o(t,null,n.endContainer,n.endOffset,n.startContainer,n.startOffset).selectionState}),"backward");return r===t.getCurrentContent()?t:n.push(t,r,"remove-range")}},89429:(t,e,r)=>{"use strict";var n=r(44576),i=r(38574);t.exports=function(t){if(i){try{return n.process.getBuiltinModule(t)}catch(t){}try{return Function('return require("'+t+'")')()}catch(t){}}}},90646:t=>{"use strict";var e=function(t){};t.exports=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];if(e(r),!t){var a;if(void 0===r)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=0;(a=new Error(r.replace(/%s/g,(function(){return String(i[s++])})))).name="Invariant Violation"}throw a.framesToPop=1,a}}},90679:(t,e,r)=>{"use strict";var n=r(1625),i=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new i("Incorrect invocation")}},91381:(t,e,r)=>{"use strict";var n=function(t){var e,r;function SelectionState(){return t.apply(this,arguments)||this}r=t,(e=SelectionState).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var n=SelectionState.prototype;return n.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},n.getAnchorKey=function(){return this.get("anchorKey")},n.getAnchorOffset=function(){return this.get("anchorOffset")},n.getFocusKey=function(){return this.get("focusKey")},n.getFocusOffset=function(){return this.get("focusOffset")},n.getIsBackward=function(){return this.get("isBackward")},n.getHasFocus=function(){return this.get("hasFocus")},n.hasEdgeWithin=function(t,e,r){var n=this.getAnchorKey(),i=this.getFocusKey();if(n===i&&n===t){var o=this.getStartOffset(),a=this.getEndOffset();return e<=o&&o<=r||e<=a&&a<=r}if(t!==n&&t!==i)return!1;var s=t===n?this.getAnchorOffset():this.getFocusOffset();return e<=s&&r>=s},n.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},n.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},n.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},n.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},n.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},SelectionState.createEmpty=function(t){return new SelectionState({anchorKey:t,anchorOffset:0,focusKey:t,focusOffset:0,isBackward:!1,hasFocus:!1})},SelectionState}((0,r(77337).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));t.exports=n},91439:t=>{"use strict";var e={stringify:function(t){return"_"+String(t)},unstringify:function(t){return t.slice(1)}};t.exports=e},91721:t=>{"use strict";var e=new RegExp("\r","g");t.exports=function(t){return t.replace(e,"")}},92395:(t,e,r)=>{"use strict";var n=r(2505),i=r(71864),o=r(59395),a=new RegExp("\r\n","g"),s={"text/rtf":1,"text/html":1};function u(t){if("file"==t.kind)return t.getAsFile()}var c=function(){function DataTransfer(t){this.data=t,this.types=t.types?i(t.types):[]}var t=DataTransfer.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(t){return s[t]}))},t.getText=function(){var t;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(t=this.data.getData("text/plain")):t=this.data.getData("Text")),t?t.replace(a,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(t){return-1!=t.indexOf("Url")||-1!=t.indexOf("text/uri-list")||t.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var t=this.types.some((function(t){return-1!=t.indexOf("application/x-moz-file")}));if(t)return!0;for(var e=this.getFiles(),r=0;r<e.length;r++){var i=e[r].type;if(!n.isImage(i))return!1}return!0},t.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},t.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(u).filter(o.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},DataTransfer}();t.exports=c},92804:t=>{"use strict";var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=e+"+/",n=e+"-_",i=function(t){for(var e={},r=0;r<64;r++)e[t.charAt(r)]=r;return e};t.exports={i2c:r,c2i:i(r),i2cUrl:n,c2iUrl:i(n)}},93529:t=>{"use strict";function e(t,e){return!!e&&(t===e.documentElement||t===e.body)}var r={getTop:function(t){var r=t.ownerDocument;return e(t,r)?r.body.scrollTop||r.documentElement.scrollTop:t.scrollTop},setTop:function(t,r){var n=t.ownerDocument;e(t,n)?n.body.scrollTop=n.documentElement.scrollTop=r:t.scrollTop=r},getLeft:function(t){var r=t.ownerDocument;return e(t,r)?r.body.scrollLeft||r.documentElement.scrollLeft:t.scrollLeft},setLeft:function(t,r){var n=t.ownerDocument;e(t,n)?n.body.scrollLeft=n.documentElement.scrollLeft=r:t.scrollLeft=r}};t.exports=r},93659:(t,e,r)=>{"use strict";var n=r(45228);function i(){return i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i.apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){a(t,e,r[e])}))}return t}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s=r(81124),u=r(3885),c=r(96540),l=r(98003),f=r(50798),p=r(56408),h=function(t,e,r,n){return l({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===t,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===t,"public/DraftStyleDefault/reset":r,"public/DraftStyleDefault/depth0":0===e,"public/DraftStyleDefault/depth1":1===e,"public/DraftStyleDefault/depth2":2===e,"public/DraftStyleDefault/depth3":3===e,"public/DraftStyleDefault/depth4":e>=4,"public/DraftStyleDefault/listLTR":"LTR"===n,"public/DraftStyleDefault/listRTL":"RTL"===n})},d=function(t){var e,r;function DraftEditorContents(){return t.apply(this,arguments)||this}r=t,(e=DraftEditorContents).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var n=DraftEditorContents.prototype;return n.shouldComponentUpdate=function(t){var e=this.props.editorState,r=t.editorState;if(e.getDirectionMap()!==r.getDirectionMap())return!0;if(e.getSelection().getHasFocus()!==r.getSelection().getHasFocus())return!0;var n=r.getNativelyRenderedContent(),i=e.isInCompositionMode(),o=r.isInCompositionMode();if(e===r||null!==n&&r.getCurrentContent()===n||i&&o)return!1;var a=e.getCurrentContent(),s=r.getCurrentContent(),u=e.getDecorator(),c=r.getDecorator();return i!==o||a!==s||u!==c||r.mustForceSelection()},n.render=function(){for(var t=this.props,e=t.blockRenderMap,r=t.blockRendererFn,n=t.blockStyleFn,a=t.customStyleMap,l=t.customStyleFn,d=t.editorState,v=t.editorKey,g=t.preventScroll,y=t.textDirectionality,m=d.getCurrentContent(),_=d.getSelection(),b=d.mustForceSelection(),S=d.getDecorator(),w=p(d.getDirectionMap()),x=m.getBlocksAsArray(),E=[],M=null,O=null,k=0;k<x.length;k++){var C=x[k],D=C.getKey(),I=C.getType(),A=r(C),R=void 0,T=void 0,z=void 0;A&&(R=A.component,T=A.props,z=A.editable);var B=y||w.get(D),q=u.encode(D,0,0),P={contentState:m,block:C,blockProps:T,blockStyleFn:n,customStyleMap:a,customStyleFn:l,decorator:S,direction:B,forceSelection:b,offsetKey:q,preventScroll:g,selection:_,tree:d.getBlockTree(D)},j=e.get(I)||e.get("unstyled"),L=j.wrapper,K=j.element||e.get("unstyled").element,N=C.getDepth(),F="";if(n&&(F=n(C)),"li"===K)F=f(F,h(I,N,O!==L||null===M||N>M,B));var U=R||s,G={className:F,"data-block":!0,"data-editor":v,"data-offset-key":q,key:D};void 0!==z&&(G=o({},G,{contentEditable:z,suppressContentEditableWarning:!0}));var H=c.createElement(K,G,c.createElement(U,i({},P,{key:D})));E.push({block:H,wrapperTemplate:L,key:D,offsetKey:q}),M=L?C.getDepth():null,O=L}for(var W=[],V=0;V<E.length;){var X=E[V];if(X.wrapperTemplate){var Y=[];do{Y.push(E[V].block),V++}while(V<E.length&&E[V].wrapperTemplate===X.wrapperTemplate);var $=c.cloneElement(X.wrapperTemplate,{key:X.key+"-wrap","data-offset-key":X.offsetKey},Y);W.push($)}else W.push(X.block),V++}return c.createElement("div",{"data-contents":"true"},W)},DraftEditorContents}(c.Component);t.exports=d},93816:t=>{"use strict";t.exports=function(t){return!(!t||!t.ownerDocument)&&t.nodeType===Node.ELEMENT_NODE}},94092:(t,e,r)=>{"use strict";var n=r(23018),i=r(77337).Map,o={add:function(t,e,r){return a(t,e,r,!0)},remove:function(t,e,r){return a(t,e,r,!1)}};function a(t,e,r,o){var a=t.getBlockMap(),s=e.getStartKey(),u=e.getStartOffset(),c=e.getEndKey(),l=e.getEndOffset(),f=a.skipUntil((function(t,e){return e===s})).takeUntil((function(t,e){return e===c})).concat(i([[c,a.get(c)]])).map((function(t,e){var i,a;s===c?(i=u,a=l):(i=e===s?u:0,a=e===c?l:t.getLength());for(var f,p=t.getCharacterList();i<a;)f=p.get(i),p=p.set(i,o?n.applyStyle(f,r):n.removeStyle(f,r)),i++;return t.set("characterList",p)}));return t.merge({blockMap:a.merge(f),selectionBefore:e,selectionAfter:e})}t.exports=o},94143:(t,e,r)=>{"use strict";var n=r(73998),i=r(12242),o=r(58488),a=r(5188);t.exports=function(t){var e=a(t,(function(t){var e=t.getSelection(),r=e.getStartOffset();if(0===r)return o(t,1);var i=e.getStartKey(),a=t.getCurrentContent().getBlockForKey(i).getText().slice(0,r),s=n.getBackward(a);return o(t,s.length||1)}),"backward");return e===t.getCurrentContent()?t:i.push(t,e,"remove-range")}},94402:(t,e,r)=>{"use strict";var n=r(79504),i=Set.prototype;t.exports={Set,add:n(i.add),has:n(i.has),remove:n(i.delete),proto:i}},94483:(t,e,r)=>{"use strict";var n,i,o,a,s=r(44576),u=r(89429),c=r(1548),l=s.structuredClone,f=s.ArrayBuffer,p=s.MessageChannel,h=!1;if(c)h=function(t){l(t,{transfer:[t]})};else if(f)try{p||(n=u("worker_threads"))&&(p=n.MessageChannel),p&&(i=new p,o=new f(2),a=function(t){i.port1.postMessage(null,[t])},2===o.byteLength&&(a(o),0===o.byteLength&&(h=a)))}catch(t){}t.exports=h},94534:(t,e,r)=>{"use strict";var n=r(77232),i="Unknown",o={"Mac OS":"Mac OS X"};var a,s=(new n).getResult(),u=function(t){if(!t)return{major:"",minor:""};var e=t.split(".");return{major:e[0],minor:e[1]}}(s.browser.version),c={browserArchitecture:s.cpu.architecture||i,browserFullVersion:s.browser.version||i,browserMinorVersion:u.minor||i,browserName:s.browser.name||i,browserVersion:s.browser.major||i,deviceName:s.device.model||i,engineName:s.engine.name||i,engineVersion:s.engine.version||i,platformArchitecture:s.cpu.architecture||i,platformName:(a=s.os.name,o[a]||a||i),platformVersion:s.os.version||i,platformFullVersion:s.os.version||i};t.exports=c},94660:(t,e,r)=>{"use strict";var n=r(953),i=r(67204),o=r(14134),a=r(4909),s=r(69758),u=r(19677),c=r(90646),l=r(93816),f=o.isBrowser("IE");function p(t,e){if(!t)return"[empty]";var r=h(t,e);return r.nodeType===Node.TEXT_NODE?r.textContent:(l(r)||c(!1),r.outerHTML)}function h(t,e){var r=void 0!==e?e(t):[];if(t.nodeType===Node.TEXT_NODE){var n=t.textContent.length;return u(t).createTextNode("[text "+n+(r.length?" | "+r.join(", "):"")+"]")}var i=t.cloneNode();1===i.nodeType&&r.length&&i.setAttribute("data-labels",r.join(", "));for(var o=t.childNodes,a=0;a<o.length;a++)i.appendChild(h(o[a],e));return i}function d(t,e){for(var r=t,n=r;r;){if(l(r)&&n.hasAttribute("contenteditable"))return p(r,e);n=r=r.parentNode}return"Could not find contentEditable parent of node"}function v(t){return null===t.nodeValue?t.childNodes.length:t.nodeValue.length}function g(t,e,r,n){var o=s();if(t.extend&&null!=e&&a(o,e)){r>v(e)&&i.logSelectionStateFailure({anonymizedDom:d(e),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(n.toJS())});var u=e===t.focusNode;try{t.rangeCount>0&&t.extend&&t.extend(e,r)}catch(a){throw i.logSelectionStateFailure({anonymizedDom:d(e,(function(e){var r=[];return e===o&&r.push("active element"),e===t.anchorNode&&r.push("selection anchor node"),e===t.focusNode&&r.push("selection focus node"),r})),extraParams:JSON.stringify({activeElementName:o?o.nodeName:null,nodeIsFocus:e===t.focusNode,nodeWasFocus:u,selectionRangeCount:t.rangeCount,selectionAnchorNodeName:t.anchorNode?t.anchorNode.nodeName:null,selectionAnchorOffset:t.anchorOffset,selectionFocusNodeName:t.focusNode?t.focusNode.nodeName:null,selectionFocusOffset:t.focusOffset,message:a?""+a:null,offset:r},null,2),selectionState:JSON.stringify(n.toJS(),null,2)}),a}}else if(e&&t.rangeCount>0){var c=t.getRangeAt(0);c.setEnd(e,r),t.addRange(c.cloneRange())}}function y(t,e,r,o){var a=u(e).createRange();if(r>v(e)&&(i.logSelectionStateFailure({anonymizedDom:d(e),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(o.toJS())}),n.handleExtensionCausedError()),a.setStart(e,r),f)try{t.addRange(a)}catch(t){0}else t.addRange(a)}t.exports={setDraftEditorSelection:function(t,e,r,n,i){var o=u(e);if(a(o.documentElement,e)){var s=o.defaultView.getSelection(),c=t.getAnchorKey(),l=t.getAnchorOffset(),f=t.getFocusKey(),p=t.getFocusOffset(),h=t.getIsBackward();if(!s.extend&&h){var d=c,v=l;c=f,l=p,f=d,p=v,h=!1}var m=c===r&&n<=l&&i>=l,_=f===r&&n<=p&&i>=p;if(m&&_)return s.removeAllRanges(),y(s,e,l-n,t),void g(s,e,p-n,t);if(h){if(_&&(s.removeAllRanges(),y(s,e,p-n,t)),m){var b=s.focusNode,S=s.focusOffset;s.removeAllRanges(),y(s,e,l-n,t),g(s,b,S,t)}}else m&&(s.removeAllRanges(),y(s,e,l-n,t)),_&&g(s,e,p-n,t)}},addFocusToSelection:g}},94793:t=>{"use strict";t.exports=function(t){var e={};return function(r){return e.hasOwnProperty(r)||(e[r]=t.call(this,r)),e[r]}}},95423:(t,e,r)=>{"use strict";var n=r(15504);t.exports=function(t){return n(t)&&3==t.nodeType}},95748:(t,e,r)=>{"use strict";var n=r(77337).OrderedMap,i={createFromArray:function(t){return n(t.map((function(t){return[t.getKey(),t]})))}};t.exports=i},96243:(t,e,r)=>{"use strict";r.d(e,{default:()=>u});const n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let i;const o=new Uint8Array(16);const a=[];for(let t=0;t<256;++t)a.push((t+256).toString(16).slice(1));function s(t,e=0){return(a[t[e+0]]+a[t[e+1]]+a[t[e+2]]+a[t[e+3]]+"-"+a[t[e+4]]+a[t[e+5]]+"-"+a[t[e+6]]+a[t[e+7]]+"-"+a[t[e+8]]+a[t[e+9]]+"-"+a[t[e+10]]+a[t[e+11]]+a[t[e+12]]+a[t[e+13]]+a[t[e+14]]+a[t[e+15]]).toLowerCase()}const u=function(t,e,r){if(n.randomUUID&&!e&&!t)return n.randomUUID();const a=(t=t||{}).random??t.rng?.()??function(){if(!i){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");i=crypto.getRandomValues.bind(crypto)}return i(o)}();if(a.length<16)throw new Error("Random bytes length must be >= 16");if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e){if((r=r||0)<0||r+16>e.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let t=0;t<16;++t)e[r+t]=a[t];return e}return s(a)}},96540:(t,e,r)=>{"use strict";t.exports=r(15287)},97392:(t,e,r)=>{"use strict";var n=r(59824),i=r(37458);t.exports=function(t){var e=n(t.ownerDocument||t.document);t.Window&&t instanceof t.Window&&(t=e);var r=i(t),o=t===e?t.ownerDocument.documentElement:t,a=t.scrollWidth-o.clientWidth,s=t.scrollHeight-o.clientHeight;return r.x=Math.max(0,Math.min(r.x,a)),r.y=Math.max(0,Math.min(r.y,s)),r}},97656:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){i(t,e,r[e])}))}return t}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(95748),a=r(23018),s=r(56840),u=r(65224),c=r(11608),l=r(91381),f=r(6991),p=r(679),h=r(47282),d=r(77337),v=r(91721),g=d.List,y=d.Record,m=d.Repeat,_=d.Map,b=d.OrderedMap,S=y({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),w=h("draft_tree_data_support")?u:s,x=function(t){var e,r;function ContentState(){return t.apply(this,arguments)||this}r=t,(e=ContentState).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i=ContentState.prototype;return i.getEntityMap=function(){return c},i.getBlockMap=function(){return this.get("blockMap")},i.getSelectionBefore=function(){return this.get("selectionBefore")},i.getSelectionAfter=function(){return this.get("selectionAfter")},i.getBlockForKey=function(t){return this.getBlockMap().get(t)},i.getKeyBefore=function(t){return this.getBlockMap().reverse().keySeq().skipUntil((function(e){return e===t})).skip(1).first()},i.getKeyAfter=function(t){return this.getBlockMap().keySeq().skipUntil((function(e){return e===t})).skip(1).first()},i.getBlockAfter=function(t){return this.getBlockMap().skipUntil((function(e,r){return r===t})).skip(1).first()},i.getBlockBefore=function(t){return this.getBlockMap().reverse().skipUntil((function(e,r){return r===t})).skip(1).first()},i.getBlocksAsArray=function(){return this.getBlockMap().toArray()},i.getFirstBlock=function(){return this.getBlockMap().first()},i.getLastBlock=function(){return this.getBlockMap().last()},i.getPlainText=function(t){return this.getBlockMap().map((function(t){return t?t.getText():""})).join(t||"\n")},i.getLastCreatedEntityKey=function(){return c.__getLastCreatedEntityKey()},i.hasText=function(){var t=this.getBlockMap();return t.size>1||escape(t.first().getText()).replace(/%u200B/g,"").length>0},i.createEntity=function(t,e,r){return c.__create(t,e,r),this},i.mergeEntityData=function(t,e){return c.__mergeData(t,e),this},i.replaceEntityData=function(t,e){return c.__replaceData(t,e),this},i.addEntity=function(t){return c.__add(t),this},i.getEntity=function(t){return c.__get(t)},i.getAllEntities=function(){return c.__getAll()},i.loadWithEntities=function(t){return c.__loadWithEntities(t)},ContentState.createFromBlockArray=function(t,e){var r=Array.isArray(t)?t:t.contentBlocks,n=o.createFromArray(r),i=n.isEmpty()?new l:l.createEmpty(n.first().getKey());return new ContentState({blockMap:n,entityMap:e||c,selectionBefore:i,selectionAfter:i})},ContentState.createFromText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,r=t.split(e).map((function(t){return t=v(t),new w({key:f(),text:t,type:"unstyled",characterList:g(m(a.EMPTY,t.length))})}));return ContentState.createFromBlockArray(r)},ContentState.fromJS=function(t){return new ContentState(n({},t,{blockMap:b(t.blockMap).map(ContentState.createContentBlockFromJS),selectionBefore:new l(t.selectionBefore),selectionAfter:new l(t.selectionAfter)}))},ContentState.createContentBlockFromJS=function(t){var e=t.characterList;return new w(n({},t,{data:_(t.data),characterList:null!=e?g((Array.isArray(e)?e:p(e)).map((function(t){return a.fromJS(t)}))):void 0}))},ContentState}(S);t.exports=x},97784:(t,e,r)=>{"use strict";var n=r(14134),i=r(73722),o=r(18058),a=r(87141),s=r(3694),u=r(73919),c=r(16127),l=r(74861),f=r(44447),p=r(5091),h=r(48136),d=r(72208),v=r(16207),g=n.isBrowser("Chrome"),y=n.isBrowser("Firefox"),m=g||y?v:function(t){},_={onBeforeInput:i,onBlur:o,onCompositionStart:a,onCopy:s,onCut:u,onDragOver:c,onDragStart:l,onFocus:f,onInput:p,onKeyDown:h,onPaste:d,onSelect:v,onMouseUp:m,onKeyUp:m};t.exports=_},98003:t=>{"use strict";function e(t){return t.replace(/\//g,"-")}t.exports=function(t){return"object"==typeof t?Object.keys(t).filter((function(e){return t[e]})).map(e).join(" "):Array.prototype.map.call(arguments,e).join(" ")}}}]);
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0.03 |
proxy
|
phpinfo
|
Настройка